From 3ab2f564351dbd3659c16bac49bbde763ec377f6 Mon Sep 17 00:00:00 2001 From: Evan Plaice Date: Thu, 11 Nov 2021 12:40:57 -0700 Subject: [PATCH] Bump 'Monaco Editor' to v0.30.1 --- index.js | 23660 ++++++++++++++++++++++++------------------------- index.min.js | 7987 ++++++++--------- package.json | 2 +- 3 files changed, 15825 insertions(+), 15824 deletions(-) diff --git a/index.js b/index.js index 579d3da..6887380 100644 --- a/index.js +++ b/index.js @@ -1,56 +1,56 @@ // monaco/editor.main.js !function(e) { function t(t2) { - for (var n2, o2, r2 = t2[0], s2 = t2[1], a2 = 0, c = []; a2 < r2.length; a2++) - o2 = r2[a2], Object.prototype.hasOwnProperty.call(i, o2) && i[o2] && c.push(i[o2][0]), i[o2] = 0; + for (var n2, r2, o2 = t2[0], s2 = t2[1], a2 = 0, c = []; a2 < o2.length; a2++) + r2 = o2[a2], Object.prototype.hasOwnProperty.call(i, r2) && i[r2] && c.push(i[r2][0]), i[r2] = 0; for (n2 in s2) Object.prototype.hasOwnProperty.call(s2, n2) && (e[n2] = s2[n2]); for (l && l(t2); c.length; ) c.shift()(); } var n = {}, i = {0: 0}; - function o(t2) { + function r(t2) { if (n[t2]) return n[t2].exports; var i2 = n[t2] = {i: t2, l: false, exports: {}}; - return e[t2].call(i2.exports, i2, i2.exports, o), i2.l = true, i2.exports; + return e[t2].call(i2.exports, i2, i2.exports, r), i2.l = true, i2.exports; } - o.e = function() { + r.e = function() { return Promise.resolve(); - }, o.m = e, o.c = n, o.d = function(e2, t2, n2) { - o.o(e2, t2) || Object.defineProperty(e2, t2, {enumerable: true, get: n2}); - }, o.r = function(e2) { + }, r.m = e, r.c = n, r.d = function(e2, t2, n2) { + r.o(e2, t2) || Object.defineProperty(e2, t2, {enumerable: true, get: n2}); + }, r.r = function(e2) { typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(e2, "__esModule", {value: true}); - }, o.t = function(e2, t2) { - if (1 & t2 && (e2 = o(e2)), 8 & t2) + }, r.t = function(e2, t2) { + if (1 & t2 && (e2 = r(e2)), 8 & t2) return e2; if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) return e2; var n2 = Object.create(null); - if (o.r(n2), Object.defineProperty(n2, "default", {enumerable: true, value: e2}), 2 & t2 && typeof e2 != "string") + if (r.r(n2), Object.defineProperty(n2, "default", {enumerable: true, value: e2}), 2 & t2 && typeof e2 != "string") for (var i2 in e2) - o.d(n2, i2, function(t3) { + r.d(n2, i2, function(t3) { return e2[t3]; }.bind(null, i2)); return n2; - }, o.n = function(e2) { + }, r.n = function(e2) { var t2 = e2 && e2.__esModule ? function() { return e2.default; } : function() { return e2; }; - return o.d(t2, "a", t2), t2; - }, o.o = function(e2, t2) { + return r.d(t2, "a", t2), t2; + }, r.o = function(e2, t2) { return Object.prototype.hasOwnProperty.call(e2, t2); - }, o.p = "/", o.oe = function(e2) { + }, r.p = "/", r.oe = function(e2) { throw console.error(e2), e2; }; - var r = self.webpackJsonp = self.webpackJsonp || [], s = r.push.bind(r); - r.push = t, r = r.slice(); - for (var a = 0; a < r.length; a++) - t(r[a]); + var o = self.webpackJsonp = self.webpackJsonp || [], s = o.push.bind(o); + o.push = t, o = o.slice(); + for (var a = 0; a < o.length; a++) + t(o[a]); var l = s; - o(o.s = 342); + r(r.s = 342); }([function(e, t, n) { "use strict"; function i(e2, t2, ...n2) { @@ -94,9 +94,9 @@ }), n.d(t, "g", function() { return I; }), n.d(t, "h", function() { - return O; - }), n.d(t, "j", function() { return D; + }), n.d(t, "j", function() { + return O; }), n.d(t, "k", function() { return A; }), n.d(t, "W", function() { @@ -134,9 +134,9 @@ }), n.d(t, "E", function() { return ie; }), n.d(t, "x", function() { - return oe; - }), n.d(t, "v", function() { return re; + }), n.d(t, "v", function() { + return oe; }), n.d(t, "u", function() { return le; }), n.d(t, "P", function() { @@ -176,9 +176,9 @@ }), n.d(t, "r", function() { return Ie; }), n.d(t, "q", function() { - return Oe; + return De; }); - var i = n(34), o = n(44), r = n(67), s = n(69), a = n(20), l = n(13), c = n(6), d = n(2), h = n(11), u = n(15), p = n(45), m = n(138); + var i = n(34), r = n(44), o = n(67), s = n(69), a = n(20), l = n(13), c = n(6), d = n(2), h = n(11), u = n(16), p = n(45), m = n(138); function g(e2) { for (; e2.firstChild; ) e2.removeChild(e2.firstChild); @@ -231,22 +231,22 @@ }; } let L = function(e2, t2, n2, i2) { - let o2 = n2; - return t2 === "click" || t2 === "mousedown" ? o2 = T(n2) : t2 !== "keydown" && t2 !== "keypress" && t2 !== "keyup" || (o2 = function(e3) { + let r2 = n2; + return t2 === "click" || t2 === "mousedown" ? r2 = T(n2) : t2 !== "keydown" && t2 !== "keypress" && t2 !== "keyup" || (r2 = function(e3) { return function(t3) { - return e3(new r.a(t3)); + return e3(new o.a(t3)); }; - }(n2)), E(e2, t2, o2, i2); + }(n2)), E(e2, t2, r2, i2); }, N = function(e2, t2, n2) { return I(e2, T(t2), n2); }; function I(e2, t2, n2) { return E(e2, h.c && m.a.pointerEvents ? he.POINTER_DOWN : he.MOUSE_DOWN, t2, n2); } - function O(e2, t2, n2) { + function D(e2, t2, n2) { return E(e2, h.c && m.a.pointerEvents ? he.POINTER_UP : he.MOUSE_UP, t2, n2); } - function D(e2, t2) { + function O(e2, t2) { return E(e2, "mouseout", (n2) => { let i2 = n2.relatedTarget; for (; i2 && i2 !== e2; ) @@ -283,21 +283,21 @@ } } !function() { - let e2 = [], t2 = null, n2 = false, i2 = false, o2 = () => { + let e2 = [], t2 = null, n2 = false, i2 = false, r2 = () => { for (n2 = false, t2 = e2, e2 = [], i2 = true; t2.length > 0; ) { t2.sort(F.sort), t2.shift().execute(); } i2 = false; }; M = (t3, i3 = 0) => { - let r2 = new F(t3, i3); - return e2.push(r2), n2 || (n2 = true, function(e3) { + let o2 = new F(t3, i3); + return e2.push(o2), n2 || (n2 = true, function(e3) { if (!P) { const e4 = (e5) => setTimeout(() => e5(new Date().getTime()), 0); P = self.requestAnimationFrame || self.msRequestAnimationFrame || self.webkitRequestAnimationFrame || self.mozRequestAnimationFrame || self.oRequestAnimationFrame || e4; } P.call(self, e3); - }(o2)), r2; + }(r2)), o2; }, R = (e3, n3) => { if (i2) { let i3 = new F(e3, n3); @@ -310,20 +310,20 @@ return t2; }; class z extends d.a { - constructor(e2, t2, n2, i2 = W, o2 = 16) { + constructor(e2, t2, n2, i2 = W, r2 = 16) { super(); - let r2 = null, s2 = 0, l2 = this._register(new a.e()), c2 = () => { - s2 = new Date().getTime(), n2(r2), r2 = null; + let o2 = null, s2 = 0, l2 = this._register(new a.e()), c2 = () => { + s2 = new Date().getTime(), n2(o2), o2 = null; }; this._register(E(e2, t2, (e3) => { - r2 = i2(r2, e3); + o2 = i2(o2, e3); let t3 = new Date().getTime() - s2; - t3 >= o2 ? (l2.cancel(), c2()) : l2.setIfNotSet(c2, o2 - t3); + t3 >= r2 ? (l2.cancel(), c2()) : l2.setIfNotSet(c2, r2 - t3); })); } } - function B(e2, t2, n2, i2, o2) { - return new z(e2, t2, n2, i2, o2); + function B(e2, t2, n2, i2, r2) { + return new z(e2, t2, n2, i2, r2); } function j(e2) { return document.defaultView.getComputedStyle(e2, null); @@ -348,8 +348,8 @@ return parseFloat(t2) || 0; } static getDimension(e2, t2, n2) { - let i2 = j(e2), o2 = "0"; - return i2 && (o2 = i2.getPropertyValue ? i2.getPropertyValue(t2) : i2.getAttribute(n2)), U.convertToPixels(e2, o2); + let i2 = j(e2), r2 = "0"; + return i2 && (r2 = i2.getPropertyValue ? i2.getPropertyValue(t2) : i2.getAttribute(n2)), U.convertToPixels(e2, r2); } static getBorderLeftWidth(e2) { return U.getDimension(e2, "border-left-width", "borderLeftWidth"); @@ -397,8 +397,8 @@ let t2 = e2.offsetParent, n2 = e2.offsetTop, i2 = e2.offsetLeft; for (; (e2 = e2.parentNode) !== null && e2 !== document.body && e2 !== document.documentElement; ) { n2 -= e2.scrollTop; - const o2 = te(e2) ? null : j(e2); - o2 && (i2 -= o2.direction !== "rtl" ? e2.scrollLeft : -e2.scrollLeft), e2 === t2 && (i2 += U.getBorderLeftWidth(e2), n2 += U.getBorderTopWidth(e2), n2 += e2.offsetTop, i2 += e2.offsetLeft, t2 = e2.offsetParent); + const r2 = te(e2) ? null : j(e2); + r2 && (i2 -= r2.direction !== "rtl" ? e2.scrollLeft : -e2.scrollLeft), e2 === t2 && (i2 += U.getBorderLeftWidth(e2), n2 += U.getBorderTopWidth(e2), n2 += e2.offsetTop, i2 += e2.offsetLeft, t2 = e2.offsetParent); } return {left: i2, top: n2}; } @@ -470,19 +470,19 @@ } return te(e2) ? e2 : null; } - function oe() { + function re() { let e2 = document.activeElement; for (; e2 == null ? void 0 : e2.shadowRoot; ) e2 = e2.shadowRoot.activeElement; return e2; } - function re(e2 = document.getElementsByTagName("head")[0]) { + function oe(e2 = document.getElementsByTagName("head")[0]) { let t2 = document.createElement("style"); return t2.type = "text/css", t2.media = "screen", e2.appendChild(t2), t2; } let se = null; function ae() { - return se || (se = re()), se; + return se || (se = oe()), se; } function le(e2, t2, n2 = ae()) { n2 && t2 && n2.sheet.insertRule(e2 + "{" + t2 + "}", 0); @@ -521,14 +521,14 @@ let t2 = Q(document.activeElement, e2), n2 = false; const i2 = () => { n2 = false, t2 || (t2 = true, this._onDidFocus.fire()); - }, r2 = () => { + }, o2 = () => { t2 && (n2 = true, window.setTimeout(() => { n2 && (n2 = false, t2 = false, this._onDidBlur.fire()); }, 0)); }; this._refreshStateHandler = () => { - Q(document.activeElement, e2) !== t2 && (t2 ? r2() : i2()); - }, this._register(Object(o.a)(e2, he.FOCUS, true)(i2)), this._register(Object(o.a)(e2, he.BLUR, true)(r2)); + Q(document.activeElement, e2) !== t2 && (t2 ? o2() : i2()); + }, this._register(Object(r.a)(e2, he.FOCUS, true)(i2)), this._register(Object(r.a)(e2, he.BLUR, true)(o2)); } } function fe(e2) { @@ -545,17 +545,17 @@ } var we; function ye(e2, t2, n2, ...i2) { - let o2 = _e.exec(t2); - if (!o2) + let r2 = _e.exec(t2); + if (!r2) throw new Error("Bad use of emmet"); n2 = Object.assign({}, n2 || {}); - let r2, s2 = o2[1] || "div"; - return r2 = e2 !== we.HTML ? document.createElementNS(e2, s2) : document.createElement(s2), o2[3] && (r2.id = o2[3]), o2[4] && (r2.className = o2[4].replace(/\./g, " ").trim()), Object.keys(n2).forEach((e3) => { + let o2, s2 = r2[1] || "div"; + return o2 = e2 !== we.HTML ? document.createElementNS(e2, s2) : document.createElement(s2), r2[3] && (o2.id = r2[3]), r2[4] && (o2.className = r2[4].replace(/\./g, " ").trim()), Object.keys(n2).forEach((e3) => { const t3 = n2[e3]; - t3 !== void 0 && (/^on\w+$/.test(e3) ? r2[e3] = t3 : e3 === "selected" ? t3 && r2.setAttribute(e3, "true") : r2.setAttribute(e3, t3)); + t3 !== void 0 && (/^on\w+$/.test(e3) ? o2[e3] = t3 : e3 === "selected" ? t3 && o2.setAttribute(e3, "true") : o2.setAttribute(e3, t3)); }), Object(u.d)(i2).forEach((e3) => { - e3 instanceof Node ? r2.appendChild(e3) : r2.appendChild(document.createTextNode(e3)); - }), r2; + e3 instanceof Node ? o2.appendChild(e3) : o2.appendChild(document.createTextNode(e3)); + }), o2; } function Ce(e2, t2, ...n2) { return ye(we.HTML, e2, t2, ...n2); @@ -609,7 +609,7 @@ function Ie(e2) { return e2 && p.b.vscodeRemote === e2.scheme ? p.a.rewrite(e2) : e2; } - function Oe(e2) { + function De(e2) { return e2 ? `url('${Ie(e2).toString(true).replace(/'/g, "%27")}')` : "url('')"; } !function(e2) { @@ -637,9 +637,9 @@ return p; }); var i = n(37); - function o(e2) { + function r(e2) { } - class r extends Error { + class o extends Error { constructor(e2) { super(`Encounter errors while disposing of store. Errors: [${e2.join(", ")}]`), this.errors = e2; } @@ -660,14 +660,14 @@ if (t2.length === 1) throw t2[0]; if (t2.length > 1) - throw new r(t2); + throw new o(t2); return Array.isArray(e2) ? [] : e2; } if (e2) return e2.dispose(), e2; } function l(...e2) { - return e2.forEach(o), {dispose: () => a(e2)}; + return e2.forEach(r), {dispose: () => a(e2)}; } function c(e2) { const t2 = {dispose: () => { @@ -740,65 +740,65 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(9); - class o { + class r { constructor(e2, t2, n2, i2) { e2 > n2 || e2 === n2 && t2 > i2 ? (this.startLineNumber = n2, this.startColumn = i2, this.endLineNumber = e2, this.endColumn = t2) : (this.startLineNumber = e2, this.startColumn = t2, this.endLineNumber = n2, this.endColumn = i2); } isEmpty() { - return o.isEmpty(this); + return r.isEmpty(this); } static isEmpty(e2) { return e2.startLineNumber === e2.endLineNumber && e2.startColumn === e2.endColumn; } containsPosition(e2) { - return o.containsPosition(this, e2); + return r.containsPosition(this, e2); } static containsPosition(e2, t2) { return !(t2.lineNumber < e2.startLineNumber || t2.lineNumber > e2.endLineNumber) && (!(t2.lineNumber === e2.startLineNumber && t2.column < e2.startColumn) && !(t2.lineNumber === e2.endLineNumber && t2.column > e2.endColumn)); } containsRange(e2) { - return o.containsRange(this, e2); + return r.containsRange(this, e2); } static containsRange(e2, t2) { return !(t2.startLineNumber < e2.startLineNumber || t2.endLineNumber < e2.startLineNumber) && (!(t2.startLineNumber > e2.endLineNumber || t2.endLineNumber > e2.endLineNumber) && (!(t2.startLineNumber === e2.startLineNumber && t2.startColumn < e2.startColumn) && !(t2.endLineNumber === e2.endLineNumber && t2.endColumn > e2.endColumn))); } strictContainsRange(e2) { - return o.strictContainsRange(this, e2); + return r.strictContainsRange(this, e2); } static strictContainsRange(e2, t2) { return !(t2.startLineNumber < e2.startLineNumber || t2.endLineNumber < e2.startLineNumber) && (!(t2.startLineNumber > e2.endLineNumber || t2.endLineNumber > e2.endLineNumber) && (!(t2.startLineNumber === e2.startLineNumber && t2.startColumn <= e2.startColumn) && !(t2.endLineNumber === e2.endLineNumber && t2.endColumn >= e2.endColumn))); } plusRange(e2) { - return o.plusRange(this, e2); + return r.plusRange(this, e2); } static plusRange(e2, t2) { - let n2, i2, r, s; - return t2.startLineNumber < e2.startLineNumber ? (n2 = t2.startLineNumber, i2 = t2.startColumn) : t2.startLineNumber === e2.startLineNumber ? (n2 = t2.startLineNumber, i2 = Math.min(t2.startColumn, e2.startColumn)) : (n2 = e2.startLineNumber, i2 = e2.startColumn), t2.endLineNumber > e2.endLineNumber ? (r = t2.endLineNumber, s = t2.endColumn) : t2.endLineNumber === e2.endLineNumber ? (r = t2.endLineNumber, s = Math.max(t2.endColumn, e2.endColumn)) : (r = e2.endLineNumber, s = e2.endColumn), new o(n2, i2, r, s); + let n2, i2, o, s; + return t2.startLineNumber < e2.startLineNumber ? (n2 = t2.startLineNumber, i2 = t2.startColumn) : t2.startLineNumber === e2.startLineNumber ? (n2 = t2.startLineNumber, i2 = Math.min(t2.startColumn, e2.startColumn)) : (n2 = e2.startLineNumber, i2 = e2.startColumn), t2.endLineNumber > e2.endLineNumber ? (o = t2.endLineNumber, s = t2.endColumn) : t2.endLineNumber === e2.endLineNumber ? (o = t2.endLineNumber, s = Math.max(t2.endColumn, e2.endColumn)) : (o = e2.endLineNumber, s = e2.endColumn), new r(n2, i2, o, s); } intersectRanges(e2) { - return o.intersectRanges(this, e2); + return r.intersectRanges(this, e2); } static intersectRanges(e2, t2) { - let n2 = e2.startLineNumber, i2 = e2.startColumn, r = e2.endLineNumber, s = e2.endColumn, a = t2.startLineNumber, l = t2.startColumn, c = t2.endLineNumber, d = t2.endColumn; - return n2 < a ? (n2 = a, i2 = l) : n2 === a && (i2 = Math.max(i2, l)), r > c ? (r = c, s = d) : r === c && (s = Math.min(s, d)), n2 > r || n2 === r && i2 > s ? null : new o(n2, i2, r, s); + let n2 = e2.startLineNumber, i2 = e2.startColumn, o = e2.endLineNumber, s = e2.endColumn, a = t2.startLineNumber, l = t2.startColumn, c = t2.endLineNumber, d = t2.endColumn; + return n2 < a ? (n2 = a, i2 = l) : n2 === a && (i2 = Math.max(i2, l)), o > c ? (o = c, s = d) : o === c && (s = Math.min(s, d)), n2 > o || n2 === o && i2 > s ? null : new r(n2, i2, o, s); } equalsRange(e2) { - return o.equalsRange(this, e2); + return r.equalsRange(this, e2); } static equalsRange(e2, t2) { return !!e2 && !!t2 && e2.startLineNumber === t2.startLineNumber && e2.startColumn === t2.startColumn && e2.endLineNumber === t2.endLineNumber && e2.endColumn === t2.endColumn; } getEndPosition() { - return o.getEndPosition(this); + return r.getEndPosition(this); } static getEndPosition(e2) { return new i.a(e2.endLineNumber, e2.endColumn); } getStartPosition() { - return o.getStartPosition(this); + return r.getStartPosition(this); } static getStartPosition(e2) { return new i.a(e2.startLineNumber, e2.startColumn); @@ -807,22 +807,22 @@ return "[" + this.startLineNumber + "," + this.startColumn + " -> " + this.endLineNumber + "," + this.endColumn + "]"; } setEndPosition(e2, t2) { - return new o(this.startLineNumber, this.startColumn, e2, t2); + return new r(this.startLineNumber, this.startColumn, e2, t2); } setStartPosition(e2, t2) { - return new o(e2, t2, this.endLineNumber, this.endColumn); + return new r(e2, t2, this.endLineNumber, this.endColumn); } collapseToStart() { - return o.collapseToStart(this); + return r.collapseToStart(this); } static collapseToStart(e2) { - return new o(e2.startLineNumber, e2.startColumn, e2.startLineNumber, e2.startColumn); + return new r(e2.startLineNumber, e2.startColumn, e2.startLineNumber, e2.startColumn); } static fromPositions(e2, t2 = e2) { - return new o(e2.lineNumber, e2.column, t2.lineNumber, t2.column); + return new r(e2.lineNumber, e2.column, t2.lineNumber, t2.column); } static lift(e2) { - return e2 ? new o(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn) : null; + return e2 ? new r(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn) : null; } static isIRange(e2) { return e2 && typeof e2.startLineNumber == "number" && typeof e2.startColumn == "number" && typeof e2.endLineNumber == "number" && typeof e2.endColumn == "number"; @@ -885,9 +885,9 @@ }), n.d(t, "r", function() { return I; }), n.d(t, "n", function() { - return O; - }), n.d(t, "m", function() { return D; + }), n.d(t, "m", function() { + return O; }), n.d(t, "d", function() { return i; }), n.d(t, "i", function() { @@ -897,7 +897,7 @@ }), n.d(t, "h", function() { return F; }); - var i, o = n(0), r = n(13), s = n(23), a = n(41), l = n(9), c = n(64), d = n(122), h = n(24), u = n(27), p = n(10), m = n(92), g = n(56), f = n(120), b = n(14); + var i, r = n(0), o = n(13), s = n(23), a = n(41), l = n(9), c = n(64), d = n(122), h = n(24), u = n(27), p = n(10), m = n(92), g = n(56), f = n(120), b = n(14); class _ { constructor(e2) { this.id = e2.id, this.precondition = e2.precondition, this._kbOpts = e2.kbOpts, this._menuOpts = e2.menuOpts, this._description = e2.description; @@ -993,21 +993,21 @@ } function k(e2, t2) { S(e2, function(e3, n2) { - const {resource: i2, position: o2} = n2; + const {resource: i2, position: r2} = n2; if (!(i2 instanceof s.a)) - throw Object(r.b)("resource"); - if (!l.a.isIPosition(o2)) - throw Object(r.b)("position"); + throw Object(o.b)("resource"); + if (!l.a.isIPosition(r2)) + throw Object(o.b)("position"); const a2 = e3.get(c.a).getModel(i2); if (a2) { - const e4 = l.a.lift(o2); + const e4 = l.a.lift(r2); return t2(a2, e4, n2); } - return e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, r2) => { + return e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, o2) => { try { - i3(t2(e4.object.textEditorModel, l.a.lift(o2), n2)); + i3(t2(e4.object.textEditorModel, l.a.lift(r2), n2)); } catch (e5) { - r2(e5); + o2(e5); } }).finally(() => { e4.dispose(); @@ -1016,18 +1016,18 @@ } function E(e2, t2) { u.a.registerCommand(e2, function(e3, ...n2) { - const [i2, o2] = n2; - Object(b.b)(s.a.isUri(i2)), Object(b.b)(l.a.isIPosition(o2)); - const r2 = e3.get(c.a).getModel(i2); - if (r2) { - const e4 = l.a.lift(o2); - return t2(r2, e4, ...n2.slice(2)); + const [i2, r2] = n2; + Object(b.b)(s.a.isUri(i2)), Object(b.b)(l.a.isIPosition(r2)); + const o2 = e3.get(c.a).getModel(i2); + if (o2) { + const e4 = l.a.lift(r2); + return t2(o2, e4, ...n2.slice(2)); } - return e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, r3) => { + return e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, o3) => { try { - i3(t2(e4.object.textEditorModel, l.a.lift(o2), n2.slice(2))); + i3(t2(e4.object.textEditorModel, l.a.lift(r2), n2.slice(2))); } catch (e5) { - r3(e5); + o3(e5); } }).finally(() => { e4.dispose(); @@ -1038,12 +1038,12 @@ u.a.registerCommand(e2, function(e3, ...n2) { const [i2] = n2; Object(b.b)(s.a.isUri(i2)); - const o2 = e3.get(c.a).getModel(i2); - return o2 ? t2(o2, ...n2.slice(1)) : e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, o3) => { + const r2 = e3.get(c.a).getModel(i2); + return r2 ? t2(r2, ...n2.slice(1)) : e3.get(d.a).createModelReference(i2).then((e4) => new Promise((i3, r3) => { try { i3(t2(e4.object.textEditorModel, n2.slice(1))); } catch (e5) { - o3(e5); + r3(e5); } }).finally(() => { e4.dispose(); @@ -1060,10 +1060,10 @@ function I(e2) { return A.INSTANCE.registerEditorAction(e2), e2; } - function O(e2) { + function D(e2) { A.INSTANCE.registerEditorAction(e2); } - function D(e2, t2) { + function O(e2, t2) { A.INSTANCE.registerEditorContribution(e2, t2); } !function(e2) { @@ -1109,11 +1109,11 @@ return e2.register(), e2; } A.INSTANCE = new A(), g.a.add("editor.contributions", A.INSTANCE); - const M = R(new v({id: "undo", precondition: void 0, kbOpts: {weight: 0, primary: 2104}, menuOpts: [{menuId: h.b.MenubarEditMenu, group: "1_do", title: o.a({key: "miUndo", comment: ["&& denotes a mnemonic"]}, "&&Undo"), order: 1}, {menuId: h.b.CommandPalette, group: "", title: o.a("undo", "Undo"), order: 1}]})); + const M = R(new v({id: "undo", precondition: void 0, kbOpts: {weight: 0, primary: 2104}, menuOpts: [{menuId: h.b.MenubarEditMenu, group: "1_do", title: r.a({key: "miUndo", comment: ["&& denotes a mnemonic"]}, "&&Undo"), order: 1}, {menuId: h.b.CommandPalette, group: "", title: r.a("undo", "Undo"), order: 1}]})); R(new w(M, {id: "default:undo", precondition: void 0})); - const P = R(new v({id: "redo", precondition: void 0, kbOpts: {weight: 0, primary: 2103, secondary: [3128], mac: {primary: 3128}}, menuOpts: [{menuId: h.b.MenubarEditMenu, group: "1_do", title: o.a({key: "miRedo", comment: ["&& denotes a mnemonic"]}, "&&Redo"), order: 2}, {menuId: h.b.CommandPalette, group: "", title: o.a("redo", "Redo"), order: 1}]})); + const P = R(new v({id: "redo", precondition: void 0, kbOpts: {weight: 0, primary: 2103, secondary: [3128], mac: {primary: 3128}}, menuOpts: [{menuId: h.b.MenubarEditMenu, group: "1_do", title: r.a({key: "miRedo", comment: ["&& denotes a mnemonic"]}, "&&Redo"), order: 2}, {menuId: h.b.CommandPalette, group: "", title: r.a("redo", "Redo"), order: 1}]})); R(new w(P, {id: "default:redo", precondition: void 0})); - const F = R(new v({id: "editor.action.selectAll", precondition: void 0, kbOpts: {weight: 0, kbExpr: null, primary: 2079}, menuOpts: [{menuId: h.b.MenubarSelectionMenu, group: "1_basic", title: o.a({key: "miSelectAll", comment: ["&& denotes a mnemonic"]}, "&&Select All"), order: 1}, {menuId: h.b.CommandPalette, group: "", title: o.a("selectAll", "Select All"), order: 1}]})); + const F = R(new v({id: "editor.action.selectAll", precondition: void 0, kbOpts: {weight: 0, kbExpr: null, primary: 2079}, menuOpts: [{menuId: h.b.MenubarSelectionMenu, group: "1_basic", title: r.a({key: "miSelectAll", comment: ["&& denotes a mnemonic"]}, "&&Select All"), order: 1}, {menuId: h.b.CommandPalette, group: "", title: r.a("selectAll", "Select All"), order: 1}]})); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -1159,9 +1159,9 @@ }), n.d(t, "ob", function() { return I; }), n.d(t, "qb", function() { - return O; - }), n.d(t, "pb", function() { return D; + }), n.d(t, "pb", function() { + return O; }), n.d(t, "ib", function() { return A; }), n.d(t, "kb", function() { @@ -1209,9 +1209,9 @@ }), n.d(t, "B", function() { return ie; }), n.d(t, "U", function() { - return oe; - }), n.d(t, "W", function() { return re; + }), n.d(t, "W", function() { + return oe; }), n.d(t, "V", function() { return se; }), n.d(t, "X", function() { @@ -1263,9 +1263,9 @@ }), n.d(t, "N", function() { return Ie; }), n.d(t, "M", function() { - return Oe; - }), n.d(t, "j", function() { return De; + }), n.d(t, "j", function() { + return Oe; }), n.d(t, "k", function() { return Ae; }), n.d(t, "n", function() { @@ -1317,9 +1317,9 @@ }), n.d(t, "Fb", function() { return it; }), n.d(t, "Kb", function() { - return ot; - }), n.d(t, "Ib", function() { return rt; + }), n.d(t, "Ib", function() { + return ot; }), n.d(t, "Jb", function() { return st; }), n.d(t, "Lb", function() { @@ -1367,17 +1367,17 @@ }), n.d(t, "hc", function() { return It; }); - var i = n(56), o = n(16), r = n(6), s = n(0), a = n(188), l = n(20); + var i = n(56), r = n(15), o = n(6), s = n(0), a = n(188), l = n(20); const c = {ColorContribution: "base.contributions.colors"}; const d = new class { constructor() { - this._onDidChangeSchema = new r.a(), this.onDidChangeSchema = this._onDidChangeSchema.event, this.colorSchema = {type: "object", properties: {}}, this.colorReferenceSchema = {type: "string", enum: [], enumDescriptions: []}, this.colorsById = {}; + this._onDidChangeSchema = new o.a(), this.onDidChangeSchema = this._onDidChangeSchema.event, this.colorSchema = {type: "object", properties: {}}, this.colorReferenceSchema = {type: "string", enum: [], enumDescriptions: []}, this.colorsById = {}; } - registerColor(e2, t2, n2, i2 = false, o2) { - let r2 = {id: e2, description: n2, defaults: t2, needsTransparency: i2, deprecationMessage: o2}; - this.colorsById[e2] = r2; + registerColor(e2, t2, n2, i2 = false, r2) { + let o2 = {id: e2, description: n2, defaults: t2, needsTransparency: i2, deprecationMessage: r2}; + this.colorsById[e2] = o2; let s2 = {type: "string", description: n2, format: "color-hex", defaultSnippets: [{body: "${1:#ff0000}"}]}; - return o2 && (s2.deprecationMessage = o2), this.colorSchema.properties[e2] = s2, this.colorReferenceSchema.enum.push(e2), this.colorReferenceSchema.enumDescriptions.push(n2), this._onDidChangeSchema.fire(), e2; + return r2 && (s2.deprecationMessage = r2), this.colorSchema.properties[e2] = s2, this.colorReferenceSchema.enum.push(e2), this.colorReferenceSchema.enumDescriptions.push(n2), this._onDidChangeSchema.fire(), e2; } resolveDefaultColor(e2, t2) { const n2 = this.colorsById[e2]; @@ -1395,11 +1395,11 @@ }).map((e2) => `- \`${e2}\`: ${this.colorsById[e2].description}`).join("\n"); } }(); - function h(e2, t2, n2, i2, o2) { - return d.registerColor(e2, t2, n2, i2, o2); + function h(e2, t2, n2, i2, r2) { + return d.registerColor(e2, t2, n2, i2, r2); } i.a.add(c.ColorContribution, d); - const u = h("foreground", {dark: "#CCCCCC", light: "#616161", hc: "#FFFFFF"}, s.a("foreground", "Overall foreground color. This color is only used if not overridden by a component.")), p = h("errorForeground", {dark: "#F48771", light: "#A1260D", hc: "#F48771"}, s.a("errorForeground", "Overall foreground color for error messages. This color is only used if not overridden by a component.")), m = h("icon.foreground", {dark: "#C5C5C5", light: "#424242", hc: "#FFFFFF"}, s.a("iconForeground", "The default color for icons in the workbench.")), g = h("focusBorder", {dark: "#007FD4", light: "#0090F1", hc: "#F38518"}, s.a("focusBorder", "Overall border color for focused elements. This color is only used if not overridden by a component.")), f = h("contrastBorder", {light: null, dark: null, hc: "#6FC3DF"}, s.a("contrastBorder", "An extra border around elements to separate them from others for greater contrast.")), b = h("contrastActiveBorder", {light: null, dark: null, hc: g}, s.a("activeContrastBorder", "An extra border around active elements to separate them from others for greater contrast.")), _ = h("textLink.foreground", {light: "#006AB1", dark: "#3794FF", hc: "#3794FF"}, s.a("textLinkForeground", "Foreground color for links in text.")), v = h("textCodeBlock.background", {light: "#dcdcdc66", dark: "#0a0a0a66", hc: o.a.black}, s.a("textCodeBlockBackground", "Background color for code blocks in text.")), w = h("widget.shadow", {dark: "#000000", light: "#A8A8A8", hc: null}, s.a("widgetShadow", "Shadow color of widgets such as find/replace inside the editor.")), y = h("input.background", {dark: "#3C3C3C", light: o.a.white, hc: o.a.black}, s.a("inputBoxBackground", "Input box background.")), C = h("input.foreground", {dark: u, light: u, hc: u}, s.a("inputBoxForeground", "Input box foreground.")), x = h("input.border", {dark: null, light: null, hc: f}, s.a("inputBoxBorder", "Input box border.")), S = h("inputOption.activeBorder", {dark: "#007ACC00", light: "#007ACC00", hc: f}, s.a("inputBoxActiveOptionBorder", "Border color of activated options in input fields.")), k = h("inputOption.activeBackground", {dark: Tt(g, 0.4), light: Tt(g, 0.2), hc: o.a.transparent}, s.a("inputOption.activeBackground", "Background color of activated options in input fields.")), E = h("inputOption.activeForeground", {dark: o.a.white, light: o.a.black, hc: null}, s.a("inputOption.activeForeground", "Foreground color of activated options in input fields.")), T = h("inputValidation.infoBackground", {dark: "#063B49", light: "#D6ECF2", hc: o.a.black}, s.a("inputValidationInfoBackground", "Input validation background color for information severity.")), L = h("inputValidation.infoForeground", {dark: null, light: null, hc: null}, s.a("inputValidationInfoForeground", "Input validation foreground color for information severity.")), N = h("inputValidation.infoBorder", {dark: "#007acc", light: "#007acc", hc: f}, s.a("inputValidationInfoBorder", "Input validation border color for information severity.")), I = h("inputValidation.warningBackground", {dark: "#352A05", light: "#F6F5D2", hc: o.a.black}, s.a("inputValidationWarningBackground", "Input validation background color for warning severity.")), O = h("inputValidation.warningForeground", {dark: null, light: null, hc: null}, s.a("inputValidationWarningForeground", "Input validation foreground color for warning severity.")), D = h("inputValidation.warningBorder", {dark: "#B89500", light: "#B89500", hc: f}, s.a("inputValidationWarningBorder", "Input validation border color for warning severity.")), A = h("inputValidation.errorBackground", {dark: "#5A1D1D", light: "#F2DEDE", hc: o.a.black}, s.a("inputValidationErrorBackground", "Input validation background color for error severity.")), R = h("inputValidation.errorForeground", {dark: null, light: null, hc: null}, s.a("inputValidationErrorForeground", "Input validation foreground color for error severity.")), M = h("inputValidation.errorBorder", {dark: "#BE1100", light: "#BE1100", hc: f}, s.a("inputValidationErrorBorder", "Input validation border color for error severity.")), P = h("dropdown.background", {dark: "#3C3C3C", light: o.a.white, hc: o.a.black}, s.a("dropdownBackground", "Dropdown background.")), F = h("dropdown.foreground", {dark: "#F0F0F0", light: null, hc: o.a.white}, s.a("dropdownForeground", "Dropdown foreground.")), W = h("button.foreground", {dark: o.a.white, light: o.a.white, hc: o.a.white}, s.a("buttonForeground", "Button foreground color.")), z = h("button.background", {dark: "#0E639C", light: "#007ACC", hc: null}, s.a("buttonBackground", "Button background color.")), B = h("button.hoverBackground", {dark: Et(z, 0.2), light: kt(z, 0.2), hc: null}, s.a("buttonHoverBackground", "Button background color when hovering.")), j = h("badge.background", {dark: "#4D4D4D", light: "#C4C4C4", hc: o.a.black}, s.a("badgeBackground", "Badge background color. Badges are small information labels, e.g. for search results count.")), V = h("badge.foreground", {dark: o.a.white, light: "#333", hc: o.a.white}, s.a("badgeForeground", "Badge foreground color. Badges are small information labels, e.g. for search results count.")), U = h("scrollbar.shadow", {dark: "#000000", light: "#DDDDDD", hc: null}, s.a("scrollbarShadow", "Scrollbar shadow to indicate that the view is scrolled.")), H = h("scrollbarSlider.background", {dark: o.a.fromHex("#797979").transparent(0.4), light: o.a.fromHex("#646464").transparent(0.4), hc: Tt(f, 0.6)}, s.a("scrollbarSliderBackground", "Scrollbar slider background color.")), q = h("scrollbarSlider.hoverBackground", {dark: o.a.fromHex("#646464").transparent(0.7), light: o.a.fromHex("#646464").transparent(0.7), hc: Tt(f, 0.8)}, s.a("scrollbarSliderHoverBackground", "Scrollbar slider background color when hovering.")), $ = h("scrollbarSlider.activeBackground", {dark: o.a.fromHex("#BFBFBF").transparent(0.4), light: o.a.fromHex("#000000").transparent(0.6), hc: f}, s.a("scrollbarSliderActiveBackground", "Scrollbar slider background color when clicked on.")), K = h("progressBar.background", {dark: o.a.fromHex("#0E70C0"), light: o.a.fromHex("#0E70C0"), hc: f}, s.a("progressBarBackground", "Background color of the progress bar that can show for long running operations.")), G = h("editorError.foreground", {dark: "#F48771", light: "#E51400", hc: null}, s.a("editorError.foreground", "Foreground color of error squigglies in the editor.")), Y = h("editorError.border", {dark: null, light: null, hc: o.a.fromHex("#E47777").transparent(0.8)}, s.a("errorBorder", "Border color of error boxes in the editor.")), Z = h("editorWarning.foreground", {dark: "#CCA700", light: "#E9A700", hc: null}, s.a("editorWarning.foreground", "Foreground color of warning squigglies in the editor.")), X = h("editorWarning.border", {dark: null, light: null, hc: o.a.fromHex("#FFCC00").transparent(0.8)}, s.a("warningBorder", "Border color of warning boxes in the editor.")), Q = h("editorInfo.foreground", {dark: "#75BEFF", light: "#75BEFF", hc: null}, s.a("editorInfo.foreground", "Foreground color of info squigglies in the editor.")), J = h("editorInfo.border", {dark: null, light: null, hc: o.a.fromHex("#75BEFF").transparent(0.8)}, s.a("infoBorder", "Border color of info boxes in the editor.")), ee = h("editorHint.foreground", {dark: o.a.fromHex("#eeeeee").transparent(0.7), light: "#6c6c6c", hc: null}, s.a("editorHint.foreground", "Foreground color of hint squigglies in the editor.")), te = h("editorHint.border", {dark: null, light: null, hc: o.a.fromHex("#eeeeee").transparent(0.8)}, s.a("hintBorder", "Border color of hint boxes in the editor.")), ne = h("editor.background", {light: "#fffffe", dark: "#1E1E1E", hc: o.a.black}, s.a("editorBackground", "Editor background color.")), ie = h("editor.foreground", {light: "#333333", dark: "#BBBBBB", hc: o.a.white}, s.a("editorForeground", "Editor default foreground color.")), oe = h("editorWidget.background", {dark: "#252526", light: "#F3F3F3", hc: "#0C141F"}, s.a("editorWidgetBackground", "Background color of editor widgets, such as find/replace.")), re = h("editorWidget.foreground", {dark: u, light: u, hc: u}, s.a("editorWidgetForeground", "Foreground color of editor widgets, such as find/replace.")), se = h("editorWidget.border", {dark: "#454545", light: "#C8C8C8", hc: f}, s.a("editorWidgetBorder", "Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")), ae = h("editorWidget.resizeBorder", {light: null, dark: null, hc: null}, s.a("editorWidgetResizeBorder", "Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")), le = h("quickInput.background", {dark: oe, light: oe, hc: oe}, s.a("pickerBackground", "Quick picker background color. The quick picker widget is the container for pickers like the command palette.")), ce = h("quickInput.foreground", {dark: re, light: re, hc: re}, s.a("pickerForeground", "Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")), de = h("quickInputTitle.background", {dark: new o.a(new o.c(255, 255, 255, 0.105)), light: new o.a(new o.c(0, 0, 0, 0.06)), hc: "#000000"}, s.a("pickerTitleBackground", "Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")), he = h("pickerGroup.foreground", {dark: "#3794FF", light: "#0066BF", hc: o.a.white}, s.a("pickerGroupForeground", "Quick picker color for grouping labels.")), ue = h("pickerGroup.border", {dark: "#3F3F46", light: "#CCCEDB", hc: o.a.white}, s.a("pickerGroupBorder", "Quick picker color for grouping borders.")), pe = h("editor.selectionBackground", {light: "#ADD6FF", dark: "#264F78", hc: "#f3f518"}, s.a("editorSelectionBackground", "Color of the editor selection.")), me = h("editor.selectionForeground", {light: null, dark: null, hc: "#000000"}, s.a("editorSelectionForeground", "Color of the selected text for high contrast.")), ge = h("editor.inactiveSelectionBackground", {light: Tt(pe, 0.5), dark: Tt(pe, 0.5), hc: Tt(pe, 0.5)}, s.a("editorInactiveSelection", "Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."), true), fe = h("editor.selectionHighlightBackground", {light: Nt(pe, ne, 0.3, 0.6), dark: Nt(pe, ne, 0.3, 0.6), hc: null}, s.a("editorSelectionHighlight", "Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."), true), be = h("editor.selectionHighlightBorder", {light: null, dark: null, hc: b}, s.a("editorSelectionHighlightBorder", "Border color for regions with the same content as the selection.")), _e = h("editor.findMatchBackground", {light: "#A8AC94", dark: "#515C6A", hc: null}, s.a("editorFindMatch", "Color of the current search match.")), ve = h("editor.findMatchHighlightBackground", {light: "#EA5C0055", dark: "#EA5C0055", hc: null}, s.a("findMatchHighlight", "Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."), true), we = h("editor.findRangeHighlightBackground", {dark: "#3a3d4166", light: "#b4b4b44d", hc: null}, s.a("findRangeHighlight", "Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true), ye = h("editor.findMatchBorder", {light: null, dark: null, hc: b}, s.a("editorFindMatchBorder", "Border color of the current search match.")), Ce = h("editor.findMatchHighlightBorder", {light: null, dark: null, hc: b}, s.a("findMatchHighlightBorder", "Border color of the other search matches.")), xe = h("editor.findRangeHighlightBorder", {dark: null, light: null, hc: Tt(b, 0.4)}, s.a("findRangeHighlightBorder", "Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true), Se = h("editor.hoverHighlightBackground", {light: "#ADD6FF26", dark: "#264f7840", hc: "#ADD6FF26"}, s.a("hoverHighlight", "Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."), true), ke = h("editorHoverWidget.background", {light: oe, dark: oe, hc: oe}, s.a("hoverBackground", "Background color of the editor hover.")), Ee = h("editorHoverWidget.foreground", {light: re, dark: re, hc: re}, s.a("hoverForeground", "Foreground color of the editor hover.")), Te = h("editorHoverWidget.border", {light: se, dark: se, hc: se}, s.a("hoverBorder", "Border color of the editor hover.")), Le = h("editorHoverWidget.statusBarBackground", {dark: Et(ke, 0.2), light: kt(ke, 0.05), hc: oe}, s.a("statusBarBackground", "Background color of the editor hover status bar.")), Ne = h("editorLink.activeForeground", {dark: "#4E94CE", light: o.a.blue, hc: o.a.cyan}, s.a("activeLinkForeground", "Color of active links.")), Ie = h("editorLightBulb.foreground", {dark: "#FFCC00", light: "#DDB100", hc: "#FFCC00"}, s.a("editorLightBulbForeground", "The color used for the lightbulb actions icon.")), Oe = h("editorLightBulbAutoFix.foreground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, s.a("editorLightBulbAutoFixForeground", "The color used for the lightbulb auto fix actions icon.")), De = new o.a(new o.c(155, 185, 85, 0.2)), Ae = new o.a(new o.c(255, 0, 0, 0.2)), Re = h("diffEditor.insertedTextBackground", {dark: De, light: De, hc: null}, s.a("diffEditorInserted", "Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."), true), Me = h("diffEditor.removedTextBackground", {dark: Ae, light: Ae, hc: null}, s.a("diffEditorRemoved", "Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."), true), Pe = h("diffEditor.insertedTextBorder", {dark: null, light: null, hc: "#33ff2eff"}, s.a("diffEditorInsertedOutline", "Outline color for the text that got inserted.")), Fe = h("diffEditor.removedTextBorder", {dark: null, light: null, hc: "#FF008F"}, s.a("diffEditorRemovedOutline", "Outline color for text that got removed.")), We = h("diffEditor.border", {dark: null, light: null, hc: f}, s.a("diffEditorBorder", "Border color between the two text editors.")), ze = h("diffEditor.diagonalFill", {dark: "#cccccc33", light: "#22222233", hc: null}, s.a("diffDiagonalFill", "Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")), Be = h("list.focusBackground", {dark: "#062F4A", light: "#D6EBFF", hc: null}, s.a("listFocusBackground", "List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), je = h("list.focusForeground", {dark: null, light: null, hc: null}, s.a("listFocusForeground", "List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), Ve = h("list.activeSelectionBackground", {dark: "#094771", light: "#0074E8", hc: null}, s.a("listActiveSelectionBackground", "List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), Ue = h("list.activeSelectionForeground", {dark: o.a.white, light: o.a.white, hc: null}, s.a("listActiveSelectionForeground", "List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), He = h("list.inactiveSelectionBackground", {dark: "#37373D", light: "#E4E6F1", hc: null}, s.a("listInactiveSelectionBackground", "List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), qe = h("list.inactiveSelectionForeground", {dark: null, light: null, hc: null}, s.a("listInactiveSelectionForeground", "List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), $e = h("list.inactiveFocusBackground", {dark: null, light: null, hc: null}, s.a("listInactiveFocusBackground", "List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), Ke = h("list.hoverBackground", {dark: "#2A2D2E", light: "#F0F0F0", hc: null}, s.a("listHoverBackground", "List/Tree background when hovering over items using the mouse.")), Ge = h("list.hoverForeground", {dark: null, light: null, hc: null}, s.a("listHoverForeground", "List/Tree foreground when hovering over items using the mouse.")), Ye = h("list.dropBackground", {dark: Be, light: Be, hc: null}, s.a("listDropBackground", "List/Tree drag and drop background when moving items around using the mouse.")), Ze = h("list.highlightForeground", {dark: "#0097fb", light: "#0066BF", hc: g}, s.a("highlight", "List/Tree foreground color of the match highlights when searching inside the list/tree.")), Xe = h("listFilterWidget.background", {light: "#efc1ad", dark: "#653723", hc: o.a.black}, s.a("listFilterWidgetBackground", "Background color of the type filter widget in lists and trees.")), Qe = h("listFilterWidget.outline", {dark: o.a.transparent, light: o.a.transparent, hc: "#f38518"}, s.a("listFilterWidgetOutline", "Outline color of the type filter widget in lists and trees.")), Je = h("listFilterWidget.noMatchesOutline", {dark: "#BE1100", light: "#BE1100", hc: f}, s.a("listFilterWidgetNoMatchesOutline", "Outline color of the type filter widget in lists and trees, when there are no matches.")), et = h("tree.indentGuidesStroke", {dark: "#585858", light: "#a9a9a9", hc: "#a9a9a9"}, s.a("treeIndentGuidesStroke", "Tree stroke color for the indentation guides.")), tt = h("menu.border", {dark: null, light: null, hc: f}, s.a("menuBorder", "Border color of menus.")), nt = h("menu.foreground", {dark: F, light: u, hc: F}, s.a("menuForeground", "Foreground color of menu items.")), it = h("menu.background", {dark: P, light: P, hc: P}, s.a("menuBackground", "Background color of menu items.")), ot = h("menu.selectionForeground", {dark: Ue, light: Ue, hc: Ue}, s.a("menuSelectionForeground", "Foreground color of the selected menu item in menus.")), rt = h("menu.selectionBackground", {dark: Ve, light: Ve, hc: Ve}, s.a("menuSelectionBackground", "Background color of the selected menu item in menus.")), st = h("menu.selectionBorder", {dark: null, light: null, hc: b}, s.a("menuSelectionBorder", "Border color of the selected menu item in menus.")), at = h("menu.separatorBackground", {dark: "#BBBBBB", light: "#888888", hc: f}, s.a("menuSeparatorBackground", "Color of a separator menu item in menus.")), lt = h("editor.snippetTabstopHighlightBackground", {dark: new o.a(new o.c(124, 124, 124, 0.3)), light: new o.a(new o.c(10, 50, 100, 0.2)), hc: new o.a(new o.c(124, 124, 124, 0.3))}, s.a("snippetTabstopHighlightBackground", "Highlight background color of a snippet tabstop.")), ct = h("editor.snippetTabstopHighlightBorder", {dark: null, light: null, hc: null}, s.a("snippetTabstopHighlightBorder", "Highlight border color of a snippet tabstop.")), dt = h("editor.snippetFinalTabstopHighlightBackground", {dark: null, light: null, hc: null}, s.a("snippetFinalTabstopHighlightBackground", "Highlight background color of the final tabstop of a snippet.")), ht = h("editor.snippetFinalTabstopHighlightBorder", {dark: "#525252", light: new o.a(new o.c(10, 50, 100, 0.5)), hc: "#525252"}, s.a("snippetFinalTabstopHighlightBorder", "Highlight border color of the final tabstop of a snippet.")), ut = h("editorOverviewRuler.findMatchForeground", {dark: "#d186167e", light: "#d186167e", hc: "#AB5A00"}, s.a("overviewRulerFindMatchForeground", "Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."), true), pt = h("editorOverviewRuler.selectionHighlightForeground", {dark: "#A0A0A0CC", light: "#A0A0A0CC", hc: "#A0A0A0CC"}, s.a("overviewRulerSelectionHighlightForeground", "Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."), true), mt = h("minimap.findMatchHighlight", {light: "#d18616", dark: "#d18616", hc: "#AB5A00"}, s.a("minimapFindMatchHighlight", "Minimap marker color for find matches."), true), gt = h("minimap.selectionHighlight", {light: "#ADD6FF", dark: "#264F78", hc: "#ffffff"}, s.a("minimapSelectionHighlight", "Minimap marker color for the editor selection."), true), ft = h("minimap.errorHighlight", {dark: new o.a(new o.c(255, 18, 18, 0.7)), light: new o.a(new o.c(255, 18, 18, 0.7)), hc: new o.a(new o.c(255, 50, 50, 1))}, s.a("minimapError", "Minimap marker color for errors.")), bt = h("minimap.warningHighlight", {dark: Z, light: Z, hc: X}, s.a("overviewRuleWarning", "Minimap marker color for warnings.")), _t = h("minimap.background", {dark: null, light: null, hc: null}, s.a("minimapBackground", "Minimap background color.")), vt = h("minimapSlider.background", {light: Tt(H, 0.5), dark: Tt(H, 0.5), hc: Tt(H, 0.5)}, s.a("minimapSliderBackground", "Minimap slider background color.")), wt = h("minimapSlider.hoverBackground", {light: Tt(q, 0.5), dark: Tt(q, 0.5), hc: Tt(q, 0.5)}, s.a("minimapSliderHoverBackground", "Minimap slider background color when hovering.")), yt = h("minimapSlider.activeBackground", {light: Tt($, 0.5), dark: Tt($, 0.5), hc: Tt($, 0.5)}, s.a("minimapSliderActiveBackground", "Minimap slider background color when clicked on.")), Ct = h("problemsErrorIcon.foreground", {dark: G, light: G, hc: G}, s.a("problemsErrorIconForeground", "The color used for the problems error icon.")), xt = h("problemsWarningIcon.foreground", {dark: Z, light: Z, hc: Z}, s.a("problemsWarningIconForeground", "The color used for the problems warning icon.")), St = h("problemsInfoIcon.foreground", {dark: Q, light: Q, hc: Q}, s.a("problemsInfoIconForeground", "The color used for the problems info icon.")); + const u = h("foreground", {dark: "#CCCCCC", light: "#616161", hc: "#FFFFFF"}, s.a("foreground", "Overall foreground color. This color is only used if not overridden by a component.")), p = h("errorForeground", {dark: "#F48771", light: "#A1260D", hc: "#F48771"}, s.a("errorForeground", "Overall foreground color for error messages. This color is only used if not overridden by a component.")), m = h("icon.foreground", {dark: "#C5C5C5", light: "#424242", hc: "#FFFFFF"}, s.a("iconForeground", "The default color for icons in the workbench.")), g = h("focusBorder", {dark: "#007FD4", light: "#0090F1", hc: "#F38518"}, s.a("focusBorder", "Overall border color for focused elements. This color is only used if not overridden by a component.")), f = h("contrastBorder", {light: null, dark: null, hc: "#6FC3DF"}, s.a("contrastBorder", "An extra border around elements to separate them from others for greater contrast.")), b = h("contrastActiveBorder", {light: null, dark: null, hc: g}, s.a("activeContrastBorder", "An extra border around active elements to separate them from others for greater contrast.")), _ = h("textLink.foreground", {light: "#006AB1", dark: "#3794FF", hc: "#3794FF"}, s.a("textLinkForeground", "Foreground color for links in text.")), v = h("textCodeBlock.background", {light: "#dcdcdc66", dark: "#0a0a0a66", hc: r.a.black}, s.a("textCodeBlockBackground", "Background color for code blocks in text.")), w = h("widget.shadow", {dark: "#000000", light: "#A8A8A8", hc: null}, s.a("widgetShadow", "Shadow color of widgets such as find/replace inside the editor.")), y = h("input.background", {dark: "#3C3C3C", light: r.a.white, hc: r.a.black}, s.a("inputBoxBackground", "Input box background.")), C = h("input.foreground", {dark: u, light: u, hc: u}, s.a("inputBoxForeground", "Input box foreground.")), x = h("input.border", {dark: null, light: null, hc: f}, s.a("inputBoxBorder", "Input box border.")), S = h("inputOption.activeBorder", {dark: "#007ACC00", light: "#007ACC00", hc: f}, s.a("inputBoxActiveOptionBorder", "Border color of activated options in input fields.")), k = h("inputOption.activeBackground", {dark: Tt(g, 0.4), light: Tt(g, 0.2), hc: r.a.transparent}, s.a("inputOption.activeBackground", "Background color of activated options in input fields.")), E = h("inputOption.activeForeground", {dark: r.a.white, light: r.a.black, hc: null}, s.a("inputOption.activeForeground", "Foreground color of activated options in input fields.")), T = h("inputValidation.infoBackground", {dark: "#063B49", light: "#D6ECF2", hc: r.a.black}, s.a("inputValidationInfoBackground", "Input validation background color for information severity.")), L = h("inputValidation.infoForeground", {dark: null, light: null, hc: null}, s.a("inputValidationInfoForeground", "Input validation foreground color for information severity.")), N = h("inputValidation.infoBorder", {dark: "#007acc", light: "#007acc", hc: f}, s.a("inputValidationInfoBorder", "Input validation border color for information severity.")), I = h("inputValidation.warningBackground", {dark: "#352A05", light: "#F6F5D2", hc: r.a.black}, s.a("inputValidationWarningBackground", "Input validation background color for warning severity.")), D = h("inputValidation.warningForeground", {dark: null, light: null, hc: null}, s.a("inputValidationWarningForeground", "Input validation foreground color for warning severity.")), O = h("inputValidation.warningBorder", {dark: "#B89500", light: "#B89500", hc: f}, s.a("inputValidationWarningBorder", "Input validation border color for warning severity.")), A = h("inputValidation.errorBackground", {dark: "#5A1D1D", light: "#F2DEDE", hc: r.a.black}, s.a("inputValidationErrorBackground", "Input validation background color for error severity.")), R = h("inputValidation.errorForeground", {dark: null, light: null, hc: null}, s.a("inputValidationErrorForeground", "Input validation foreground color for error severity.")), M = h("inputValidation.errorBorder", {dark: "#BE1100", light: "#BE1100", hc: f}, s.a("inputValidationErrorBorder", "Input validation border color for error severity.")), P = h("dropdown.background", {dark: "#3C3C3C", light: r.a.white, hc: r.a.black}, s.a("dropdownBackground", "Dropdown background.")), F = h("dropdown.foreground", {dark: "#F0F0F0", light: null, hc: r.a.white}, s.a("dropdownForeground", "Dropdown foreground.")), W = h("button.foreground", {dark: r.a.white, light: r.a.white, hc: r.a.white}, s.a("buttonForeground", "Button foreground color.")), z = h("button.background", {dark: "#0E639C", light: "#007ACC", hc: null}, s.a("buttonBackground", "Button background color.")), B = h("button.hoverBackground", {dark: Et(z, 0.2), light: kt(z, 0.2), hc: null}, s.a("buttonHoverBackground", "Button background color when hovering.")), j = h("badge.background", {dark: "#4D4D4D", light: "#C4C4C4", hc: r.a.black}, s.a("badgeBackground", "Badge background color. Badges are small information labels, e.g. for search results count.")), V = h("badge.foreground", {dark: r.a.white, light: "#333", hc: r.a.white}, s.a("badgeForeground", "Badge foreground color. Badges are small information labels, e.g. for search results count.")), U = h("scrollbar.shadow", {dark: "#000000", light: "#DDDDDD", hc: null}, s.a("scrollbarShadow", "Scrollbar shadow to indicate that the view is scrolled.")), H = h("scrollbarSlider.background", {dark: r.a.fromHex("#797979").transparent(0.4), light: r.a.fromHex("#646464").transparent(0.4), hc: Tt(f, 0.6)}, s.a("scrollbarSliderBackground", "Scrollbar slider background color.")), q = h("scrollbarSlider.hoverBackground", {dark: r.a.fromHex("#646464").transparent(0.7), light: r.a.fromHex("#646464").transparent(0.7), hc: Tt(f, 0.8)}, s.a("scrollbarSliderHoverBackground", "Scrollbar slider background color when hovering.")), $ = h("scrollbarSlider.activeBackground", {dark: r.a.fromHex("#BFBFBF").transparent(0.4), light: r.a.fromHex("#000000").transparent(0.6), hc: f}, s.a("scrollbarSliderActiveBackground", "Scrollbar slider background color when clicked on.")), K = h("progressBar.background", {dark: r.a.fromHex("#0E70C0"), light: r.a.fromHex("#0E70C0"), hc: f}, s.a("progressBarBackground", "Background color of the progress bar that can show for long running operations.")), G = h("editorError.foreground", {dark: "#F48771", light: "#E51400", hc: null}, s.a("editorError.foreground", "Foreground color of error squigglies in the editor.")), Y = h("editorError.border", {dark: null, light: null, hc: r.a.fromHex("#E47777").transparent(0.8)}, s.a("errorBorder", "Border color of error boxes in the editor.")), Z = h("editorWarning.foreground", {dark: "#CCA700", light: "#E9A700", hc: null}, s.a("editorWarning.foreground", "Foreground color of warning squigglies in the editor.")), X = h("editorWarning.border", {dark: null, light: null, hc: r.a.fromHex("#FFCC00").transparent(0.8)}, s.a("warningBorder", "Border color of warning boxes in the editor.")), Q = h("editorInfo.foreground", {dark: "#75BEFF", light: "#75BEFF", hc: null}, s.a("editorInfo.foreground", "Foreground color of info squigglies in the editor.")), J = h("editorInfo.border", {dark: null, light: null, hc: r.a.fromHex("#75BEFF").transparent(0.8)}, s.a("infoBorder", "Border color of info boxes in the editor.")), ee = h("editorHint.foreground", {dark: r.a.fromHex("#eeeeee").transparent(0.7), light: "#6c6c6c", hc: null}, s.a("editorHint.foreground", "Foreground color of hint squigglies in the editor.")), te = h("editorHint.border", {dark: null, light: null, hc: r.a.fromHex("#eeeeee").transparent(0.8)}, s.a("hintBorder", "Border color of hint boxes in the editor.")), ne = h("editor.background", {light: "#fffffe", dark: "#1E1E1E", hc: r.a.black}, s.a("editorBackground", "Editor background color.")), ie = h("editor.foreground", {light: "#333333", dark: "#BBBBBB", hc: r.a.white}, s.a("editorForeground", "Editor default foreground color.")), re = h("editorWidget.background", {dark: "#252526", light: "#F3F3F3", hc: "#0C141F"}, s.a("editorWidgetBackground", "Background color of editor widgets, such as find/replace.")), oe = h("editorWidget.foreground", {dark: u, light: u, hc: u}, s.a("editorWidgetForeground", "Foreground color of editor widgets, such as find/replace.")), se = h("editorWidget.border", {dark: "#454545", light: "#C8C8C8", hc: f}, s.a("editorWidgetBorder", "Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")), ae = h("editorWidget.resizeBorder", {light: null, dark: null, hc: null}, s.a("editorWidgetResizeBorder", "Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")), le = h("quickInput.background", {dark: re, light: re, hc: re}, s.a("pickerBackground", "Quick picker background color. The quick picker widget is the container for pickers like the command palette.")), ce = h("quickInput.foreground", {dark: oe, light: oe, hc: oe}, s.a("pickerForeground", "Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")), de = h("quickInputTitle.background", {dark: new r.a(new r.c(255, 255, 255, 0.105)), light: new r.a(new r.c(0, 0, 0, 0.06)), hc: "#000000"}, s.a("pickerTitleBackground", "Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")), he = h("pickerGroup.foreground", {dark: "#3794FF", light: "#0066BF", hc: r.a.white}, s.a("pickerGroupForeground", "Quick picker color for grouping labels.")), ue = h("pickerGroup.border", {dark: "#3F3F46", light: "#CCCEDB", hc: r.a.white}, s.a("pickerGroupBorder", "Quick picker color for grouping borders.")), pe = h("editor.selectionBackground", {light: "#ADD6FF", dark: "#264F78", hc: "#f3f518"}, s.a("editorSelectionBackground", "Color of the editor selection.")), me = h("editor.selectionForeground", {light: null, dark: null, hc: "#000000"}, s.a("editorSelectionForeground", "Color of the selected text for high contrast.")), ge = h("editor.inactiveSelectionBackground", {light: Tt(pe, 0.5), dark: Tt(pe, 0.5), hc: Tt(pe, 0.5)}, s.a("editorInactiveSelection", "Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."), true), fe = h("editor.selectionHighlightBackground", {light: Nt(pe, ne, 0.3, 0.6), dark: Nt(pe, ne, 0.3, 0.6), hc: null}, s.a("editorSelectionHighlight", "Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."), true), be = h("editor.selectionHighlightBorder", {light: null, dark: null, hc: b}, s.a("editorSelectionHighlightBorder", "Border color for regions with the same content as the selection.")), _e = h("editor.findMatchBackground", {light: "#A8AC94", dark: "#515C6A", hc: null}, s.a("editorFindMatch", "Color of the current search match.")), ve = h("editor.findMatchHighlightBackground", {light: "#EA5C0055", dark: "#EA5C0055", hc: null}, s.a("findMatchHighlight", "Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."), true), we = h("editor.findRangeHighlightBackground", {dark: "#3a3d4166", light: "#b4b4b44d", hc: null}, s.a("findRangeHighlight", "Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true), ye = h("editor.findMatchBorder", {light: null, dark: null, hc: b}, s.a("editorFindMatchBorder", "Border color of the current search match.")), Ce = h("editor.findMatchHighlightBorder", {light: null, dark: null, hc: b}, s.a("findMatchHighlightBorder", "Border color of the other search matches.")), xe = h("editor.findRangeHighlightBorder", {dark: null, light: null, hc: Tt(b, 0.4)}, s.a("findRangeHighlightBorder", "Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true), Se = h("editor.hoverHighlightBackground", {light: "#ADD6FF26", dark: "#264f7840", hc: "#ADD6FF26"}, s.a("hoverHighlight", "Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."), true), ke = h("editorHoverWidget.background", {light: re, dark: re, hc: re}, s.a("hoverBackground", "Background color of the editor hover.")), Ee = h("editorHoverWidget.foreground", {light: oe, dark: oe, hc: oe}, s.a("hoverForeground", "Foreground color of the editor hover.")), Te = h("editorHoverWidget.border", {light: se, dark: se, hc: se}, s.a("hoverBorder", "Border color of the editor hover.")), Le = h("editorHoverWidget.statusBarBackground", {dark: Et(ke, 0.2), light: kt(ke, 0.05), hc: re}, s.a("statusBarBackground", "Background color of the editor hover status bar.")), Ne = h("editorLink.activeForeground", {dark: "#4E94CE", light: r.a.blue, hc: r.a.cyan}, s.a("activeLinkForeground", "Color of active links.")), Ie = h("editorLightBulb.foreground", {dark: "#FFCC00", light: "#DDB100", hc: "#FFCC00"}, s.a("editorLightBulbForeground", "The color used for the lightbulb actions icon.")), De = h("editorLightBulbAutoFix.foreground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, s.a("editorLightBulbAutoFixForeground", "The color used for the lightbulb auto fix actions icon.")), Oe = new r.a(new r.c(155, 185, 85, 0.2)), Ae = new r.a(new r.c(255, 0, 0, 0.2)), Re = h("diffEditor.insertedTextBackground", {dark: Oe, light: Oe, hc: null}, s.a("diffEditorInserted", "Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."), true), Me = h("diffEditor.removedTextBackground", {dark: Ae, light: Ae, hc: null}, s.a("diffEditorRemoved", "Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."), true), Pe = h("diffEditor.insertedTextBorder", {dark: null, light: null, hc: "#33ff2eff"}, s.a("diffEditorInsertedOutline", "Outline color for the text that got inserted.")), Fe = h("diffEditor.removedTextBorder", {dark: null, light: null, hc: "#FF008F"}, s.a("diffEditorRemovedOutline", "Outline color for text that got removed.")), We = h("diffEditor.border", {dark: null, light: null, hc: f}, s.a("diffEditorBorder", "Border color between the two text editors.")), ze = h("diffEditor.diagonalFill", {dark: "#cccccc33", light: "#22222233", hc: null}, s.a("diffDiagonalFill", "Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")), Be = h("list.focusBackground", {dark: "#062F4A", light: "#D6EBFF", hc: null}, s.a("listFocusBackground", "List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), je = h("list.focusForeground", {dark: null, light: null, hc: null}, s.a("listFocusForeground", "List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), Ve = h("list.activeSelectionBackground", {dark: "#094771", light: "#0074E8", hc: null}, s.a("listActiveSelectionBackground", "List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), Ue = h("list.activeSelectionForeground", {dark: r.a.white, light: r.a.white, hc: null}, s.a("listActiveSelectionForeground", "List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")), He = h("list.inactiveSelectionBackground", {dark: "#37373D", light: "#E4E6F1", hc: null}, s.a("listInactiveSelectionBackground", "List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), qe = h("list.inactiveSelectionForeground", {dark: null, light: null, hc: null}, s.a("listInactiveSelectionForeground", "List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), $e = h("list.inactiveFocusBackground", {dark: null, light: null, hc: null}, s.a("listInactiveFocusBackground", "List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")), Ke = h("list.hoverBackground", {dark: "#2A2D2E", light: "#F0F0F0", hc: null}, s.a("listHoverBackground", "List/Tree background when hovering over items using the mouse.")), Ge = h("list.hoverForeground", {dark: null, light: null, hc: null}, s.a("listHoverForeground", "List/Tree foreground when hovering over items using the mouse.")), Ye = h("list.dropBackground", {dark: Be, light: Be, hc: null}, s.a("listDropBackground", "List/Tree drag and drop background when moving items around using the mouse.")), Ze = h("list.highlightForeground", {dark: "#0097fb", light: "#0066BF", hc: g}, s.a("highlight", "List/Tree foreground color of the match highlights when searching inside the list/tree.")), Xe = h("listFilterWidget.background", {light: "#efc1ad", dark: "#653723", hc: r.a.black}, s.a("listFilterWidgetBackground", "Background color of the type filter widget in lists and trees.")), Qe = h("listFilterWidget.outline", {dark: r.a.transparent, light: r.a.transparent, hc: "#f38518"}, s.a("listFilterWidgetOutline", "Outline color of the type filter widget in lists and trees.")), Je = h("listFilterWidget.noMatchesOutline", {dark: "#BE1100", light: "#BE1100", hc: f}, s.a("listFilterWidgetNoMatchesOutline", "Outline color of the type filter widget in lists and trees, when there are no matches.")), et = h("tree.indentGuidesStroke", {dark: "#585858", light: "#a9a9a9", hc: "#a9a9a9"}, s.a("treeIndentGuidesStroke", "Tree stroke color for the indentation guides.")), tt = h("menu.border", {dark: null, light: null, hc: f}, s.a("menuBorder", "Border color of menus.")), nt = h("menu.foreground", {dark: F, light: u, hc: F}, s.a("menuForeground", "Foreground color of menu items.")), it = h("menu.background", {dark: P, light: P, hc: P}, s.a("menuBackground", "Background color of menu items.")), rt = h("menu.selectionForeground", {dark: Ue, light: Ue, hc: Ue}, s.a("menuSelectionForeground", "Foreground color of the selected menu item in menus.")), ot = h("menu.selectionBackground", {dark: Ve, light: Ve, hc: Ve}, s.a("menuSelectionBackground", "Background color of the selected menu item in menus.")), st = h("menu.selectionBorder", {dark: null, light: null, hc: b}, s.a("menuSelectionBorder", "Border color of the selected menu item in menus.")), at = h("menu.separatorBackground", {dark: "#BBBBBB", light: "#888888", hc: f}, s.a("menuSeparatorBackground", "Color of a separator menu item in menus.")), lt = h("editor.snippetTabstopHighlightBackground", {dark: new r.a(new r.c(124, 124, 124, 0.3)), light: new r.a(new r.c(10, 50, 100, 0.2)), hc: new r.a(new r.c(124, 124, 124, 0.3))}, s.a("snippetTabstopHighlightBackground", "Highlight background color of a snippet tabstop.")), ct = h("editor.snippetTabstopHighlightBorder", {dark: null, light: null, hc: null}, s.a("snippetTabstopHighlightBorder", "Highlight border color of a snippet tabstop.")), dt = h("editor.snippetFinalTabstopHighlightBackground", {dark: null, light: null, hc: null}, s.a("snippetFinalTabstopHighlightBackground", "Highlight background color of the final tabstop of a snippet.")), ht = h("editor.snippetFinalTabstopHighlightBorder", {dark: "#525252", light: new r.a(new r.c(10, 50, 100, 0.5)), hc: "#525252"}, s.a("snippetFinalTabstopHighlightBorder", "Highlight border color of the final tabstop of a snippet.")), ut = h("editorOverviewRuler.findMatchForeground", {dark: "#d186167e", light: "#d186167e", hc: "#AB5A00"}, s.a("overviewRulerFindMatchForeground", "Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."), true), pt = h("editorOverviewRuler.selectionHighlightForeground", {dark: "#A0A0A0CC", light: "#A0A0A0CC", hc: "#A0A0A0CC"}, s.a("overviewRulerSelectionHighlightForeground", "Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."), true), mt = h("minimap.findMatchHighlight", {light: "#d18616", dark: "#d18616", hc: "#AB5A00"}, s.a("minimapFindMatchHighlight", "Minimap marker color for find matches."), true), gt = h("minimap.selectionHighlight", {light: "#ADD6FF", dark: "#264F78", hc: "#ffffff"}, s.a("minimapSelectionHighlight", "Minimap marker color for the editor selection."), true), ft = h("minimap.errorHighlight", {dark: new r.a(new r.c(255, 18, 18, 0.7)), light: new r.a(new r.c(255, 18, 18, 0.7)), hc: new r.a(new r.c(255, 50, 50, 1))}, s.a("minimapError", "Minimap marker color for errors.")), bt = h("minimap.warningHighlight", {dark: Z, light: Z, hc: X}, s.a("overviewRuleWarning", "Minimap marker color for warnings.")), _t = h("minimap.background", {dark: null, light: null, hc: null}, s.a("minimapBackground", "Minimap background color.")), vt = h("minimapSlider.background", {light: Tt(H, 0.5), dark: Tt(H, 0.5), hc: Tt(H, 0.5)}, s.a("minimapSliderBackground", "Minimap slider background color.")), wt = h("minimapSlider.hoverBackground", {light: Tt(q, 0.5), dark: Tt(q, 0.5), hc: Tt(q, 0.5)}, s.a("minimapSliderHoverBackground", "Minimap slider background color when hovering.")), yt = h("minimapSlider.activeBackground", {light: Tt($, 0.5), dark: Tt($, 0.5), hc: Tt($, 0.5)}, s.a("minimapSliderActiveBackground", "Minimap slider background color when clicked on.")), Ct = h("problemsErrorIcon.foreground", {dark: G, light: G, hc: G}, s.a("problemsErrorIconForeground", "The color used for the problems error icon.")), xt = h("problemsWarningIcon.foreground", {dark: Z, light: Z, hc: Z}, s.a("problemsWarningIconForeground", "The color used for the problems warning icon.")), St = h("problemsInfoIcon.foreground", {dark: Q, light: Q, hc: Q}, s.a("problemsInfoIconForeground", "The color used for the problems info icon.")); function kt(e2, t2) { return (n2) => { let i2 = It(e2, n2); @@ -1431,23 +1431,23 @@ }; } function Nt(e2, t2, n2, i2) { - return (r2) => { - let s2 = It(e2, r2); + return (o2) => { + let s2 = It(e2, o2); if (s2) { - let e3 = It(t2, r2); - return e3 ? s2.isDarkerThan(e3) ? o.a.getLighterColor(s2, e3, n2).transparent(i2) : o.a.getDarkerColor(s2, e3, n2).transparent(i2) : s2.transparent(n2 * i2); + let e3 = It(t2, o2); + return e3 ? s2.isDarkerThan(e3) ? r.a.getLighterColor(s2, e3, n2).transparent(i2) : r.a.getDarkerColor(s2, e3, n2).transparent(i2) : s2.transparent(n2 * i2); } }; } function It(e2, t2) { if (e2 !== null) - return typeof e2 == "string" ? e2[0] === "#" ? o.a.fromHex(e2) : t2.getColor(e2) : e2 instanceof o.a ? e2 : typeof e2 == "function" ? e2(t2) : void 0; + return typeof e2 == "string" ? e2[0] === "#" ? r.a.fromHex(e2) : t2.getColor(e2) : e2 instanceof r.a ? e2 : typeof e2 == "function" ? e2(t2) : void 0; } - let Ot = i.a.as(a.a.JSONContribution); - Ot.registerSchema("vscode://schemas/workbench-colors", d.getColorSchema()); - const Dt = new l.d(() => Ot.notifySchemaChanged("vscode://schemas/workbench-colors"), 200); + let Dt = i.a.as(a.a.JSONContribution); + Dt.registerSchema("vscode://schemas/workbench-colors", d.getColorSchema()); + const Ot = new l.d(() => Dt.notifySchemaChanged("vscode://schemas/workbench-colors"), 200); d.onDidChangeSchema(() => { - Dt.isScheduled() || Dt.schedule(); + Ot.isScheduled() || Ot.schedule(); }); }, function(e, t, n) { "use strict"; @@ -1462,31 +1462,31 @@ }), n.d(t, "e", function() { return d; }); - var i, o = n(13), r = n(2), s = n(53); + var i, r = n(13), o = n(2), s = n(53); !function(e2) { function t2(e3) { return (t3, n3 = null, i3) => { - let o3, r2 = false; - return o3 = e3((e4) => { - if (!r2) - return o3 ? o3.dispose() : r2 = true, t3.call(n3, e4); - }, null, i3), r2 && o3.dispose(), o3; + let r3, o2 = false; + return r3 = e3((e4) => { + if (!o2) + return r3 ? r3.dispose() : o2 = true, t3.call(n3, e4); + }, null, i3), o2 && r3.dispose(), r3; }; } function n2(e3, t3) { - return l2((n3, i3 = null, o3) => e3((e4) => n3.call(i3, t3(e4)), null, o3)); + return l2((n3, i3 = null, r3) => e3((e4) => n3.call(i3, t3(e4)), null, r3)); } function i2(e3, t3) { - return l2((n3, i3 = null, o3) => e3((e4) => { + return l2((n3, i3 = null, r3) => e3((e4) => { t3(e4), n3.call(i3, e4); - }, null, o3)); + }, null, r3)); } - function o2(e3, t3) { - return l2((n3, i3 = null, o3) => e3((e4) => t3(e4) && n3.call(i3, e4), null, o3)); + function r2(e3, t3) { + return l2((n3, i3 = null, r3) => e3((e4) => t3(e4) && n3.call(i3, e4), null, r3)); } function s2(e3, t3, i3) { - let o3 = i3; - return n2(e3, (e4) => (o3 = t3(o3, e4), o3)); + let r3 = i3; + return n2(e3, (e4) => (r3 = t3(r3, e4), r3)); } function l2(e3) { let t3; @@ -1497,46 +1497,46 @@ }}); return n3.event; } - function c2(e3, t3, n3 = 100, i3 = false, o3) { - let r2, s3 = void 0, l3 = void 0, c3 = 0; - const d3 = new a({leakWarningThreshold: o3, onFirstListenerAdd() { - r2 = e3((e4) => { + function c2(e3, t3, n3 = 100, i3 = false, r3) { + let o2, s3 = void 0, l3 = void 0, c3 = 0; + const d3 = new a({leakWarningThreshold: r3, onFirstListenerAdd() { + o2 = e3((e4) => { c3++, s3 = t3(s3, e4), i3 && !l3 && (d3.fire(s3), s3 = void 0), clearTimeout(l3), l3 = setTimeout(() => { const e5 = s3; s3 = void 0, l3 = void 0, (!i3 || c3 > 1) && d3.fire(e5), c3 = 0; }, n3); }); }, onLastListenerRemove() { - r2.dispose(); + o2.dispose(); }}); return d3.event; } function d2(e3) { let t3, n3 = true; - return o2(e3, (e4) => { + return r2(e3, (e4) => { const i3 = n3 || e4 !== t3; return n3 = false, t3 = e4, i3; }); } - e2.None = () => r.a.None, e2.once = t2, e2.map = n2, e2.forEach = i2, e2.filter = o2, e2.signal = function(e3) { + e2.None = () => o.a.None, e2.once = t2, e2.map = n2, e2.forEach = i2, e2.filter = r2, e2.signal = function(e3) { return e3; }, e2.any = function(...e3) { - return (t3, n3 = null, i3) => Object(r.e)(...e3.map((e4) => e4((e5) => t3.call(n3, e5), null, i3))); + return (t3, n3 = null, i3) => Object(o.e)(...e3.map((e4) => e4((e5) => t3.call(n3, e5), null, i3))); }, e2.reduce = s2, e2.snapshot = l2, e2.debounce = c2, e2.stopwatch = function(e3) { const i3 = new Date().getTime(); return n2(t2(e3), (e4) => new Date().getTime() - i3); }, e2.latch = d2, e2.buffer = function(e3, t3 = false, n3 = []) { - let i3 = n3.slice(), o3 = e3((e4) => { + let i3 = n3.slice(), r3 = e3((e4) => { i3 ? i3.push(e4) : s3.fire(e4); }); - const r2 = () => { + const o2 = () => { i3 && i3.forEach((e4) => s3.fire(e4)), i3 = null; }, s3 = new a({onFirstListenerAdd() { - o3 || (o3 = e3((e4) => s3.fire(e4))); + r3 || (r3 = e3((e4) => s3.fire(e4))); }, onFirstListenerDidAdd() { - i3 && (t3 ? setTimeout(r2) : r2()); + i3 && (t3 ? setTimeout(o2) : o2()); }, onLastListenerRemove() { - o3 && o3.dispose(), o3 = null; + r3 && r3.dispose(), r3 = null; }}); return s3.event; }; @@ -1551,7 +1551,7 @@ return new h(i2(this.event, e3)); } filter(e3) { - return new h(o2(this.event, e3)); + return new h(r2(this.event, e3)); } reduce(e3, t3) { return new h(s2(this.event, e3, t3)); @@ -1572,11 +1572,11 @@ e2.chain = function(e3) { return new h(e3); }, e2.fromNodeEventEmitter = function(e3, t3, n3 = (e4) => e4) { - const i3 = (...e4) => o3.fire(n3(...e4)), o3 = new a({onFirstListenerAdd: () => e3.on(t3, i3), onLastListenerRemove: () => e3.removeListener(t3, i3)}); - return o3.event; + const i3 = (...e4) => r3.fire(n3(...e4)), r3 = new a({onFirstListenerAdd: () => e3.on(t3, i3), onLastListenerRemove: () => e3.removeListener(t3, i3)}); + return r3.event; }, e2.fromDOMEventEmitter = function(e3, t3, n3 = (e4) => e4) { - const i3 = (...e4) => o3.fire(n3(...e4)), o3 = new a({onFirstListenerAdd: () => e3.addEventListener(t3, i3), onLastListenerRemove: () => e3.removeEventListener(t3, i3)}); - return o3.event; + const i3 = (...e4) => r3.fire(n3(...e4)), r3 = new a({onFirstListenerAdd: () => e3.addEventListener(t3, i3), onLastListenerRemove: () => e3.removeEventListener(t3, i3)}); + return r3.event; }, e2.fromPromise = function(e3) { const t3 = new a(); let n3 = false; @@ -1596,13 +1596,13 @@ this._listeners || (this._listeners = new s.a()); const i2 = this._listeners.isEmpty(); i2 && this._options && this._options.onFirstListenerAdd && this._options.onFirstListenerAdd(this); - const o2 = this._listeners.push(t2 ? [e2, t2] : e2); + const r2 = this._listeners.push(t2 ? [e2, t2] : e2); let l2, c2; return i2 && this._options && this._options.onFirstListenerDidAdd && this._options.onFirstListenerDidAdd(this), this._options && this._options.onListenerDidAdd && this._options.onListenerDidAdd(this, e2, t2), this._leakageMon && (l2 = this._leakageMon.check(this._listeners.size)), c2 = {dispose: () => { - if (l2 && l2(), c2.dispose = a._noop, !this._disposed && (o2(), this._options && this._options.onLastListenerRemove)) { + if (l2 && l2(), c2.dispose = a._noop, !this._disposed && (r2(), this._options && this._options.onLastListenerRemove)) { this._listeners && !this._listeners.isEmpty() || this._options.onLastListenerRemove(this); } - }}, n2 instanceof r.b ? n2.add(c2) : Array.isArray(n2) && n2.push(c2), c2; + }}, n2 instanceof o.b ? n2.add(c2) : Array.isArray(n2) && n2.push(c2), c2; }), this._event; } fire(e2) { @@ -1615,7 +1615,7 @@ try { typeof e3 == "function" ? e3.call(void 0, t2) : e3[0].call(e3[1], t2); } catch (e4) { - Object(o.e)(e4); + Object(r.e)(e4); } } } @@ -1665,7 +1665,7 @@ } class d { constructor() { - this.listening = false, this.inputEvent = i.None, this.inputEventListener = r.a.None, this.emitter = new a({onFirstListenerDidAdd: () => { + this.listening = false, this.inputEvent = i.None, this.inputEventListener = o.a.None, this.emitter = new a({onFirstListenerDidAdd: () => { this.listening = true, this.inputEventListener = this.inputEvent(this.emitter.fire, this.emitter); }, onLastListenerRemove: () => { this.listening = false, this.inputEventListener.dispose(); @@ -1683,25 +1683,25 @@ n.d(t, "a", function() { return i; }); - var i, o = n(10); + var i, r = n(10); !function(e2) { - e2.editorSimpleInput = new o.c("editorSimpleInput", false), e2.editorTextFocus = new o.c("editorTextFocus", false), e2.focus = new o.c("editorFocus", false), e2.textInputFocus = new o.c("textInputFocus", false), e2.readOnly = new o.c("editorReadonly", false), e2.columnSelection = new o.c("editorColumnSelection", false), e2.writable = e2.readOnly.toNegated(), e2.hasNonEmptySelection = new o.c("editorHasSelection", false), e2.hasOnlyEmptySelection = e2.hasNonEmptySelection.toNegated(), e2.hasMultipleSelections = new o.c("editorHasMultipleSelections", false), e2.hasSingleSelection = e2.hasMultipleSelections.toNegated(), e2.tabMovesFocus = new o.c("editorTabMovesFocus", false), e2.tabDoesNotMoveFocus = e2.tabMovesFocus.toNegated(), e2.isInWalkThroughSnippet = new o.c("isInEmbeddedEditor", false), e2.canUndo = new o.c("canUndo", false), e2.canRedo = new o.c("canRedo", false), e2.hoverVisible = new o.c("editorHoverVisible", false), e2.inCompositeEditor = new o.c("inCompositeEditor", void 0), e2.notInCompositeEditor = e2.inCompositeEditor.toNegated(), e2.languageId = new o.c("editorLangId", ""), e2.hasCompletionItemProvider = new o.c("editorHasCompletionItemProvider", false), e2.hasCodeActionsProvider = new o.c("editorHasCodeActionsProvider", false), e2.hasCodeLensProvider = new o.c("editorHasCodeLensProvider", false), e2.hasDefinitionProvider = new o.c("editorHasDefinitionProvider", false), e2.hasDeclarationProvider = new o.c("editorHasDeclarationProvider", false), e2.hasImplementationProvider = new o.c("editorHasImplementationProvider", false), e2.hasTypeDefinitionProvider = new o.c("editorHasTypeDefinitionProvider", false), e2.hasHoverProvider = new o.c("editorHasHoverProvider", false), e2.hasDocumentHighlightProvider = new o.c("editorHasDocumentHighlightProvider", false), e2.hasDocumentSymbolProvider = new o.c("editorHasDocumentSymbolProvider", false), e2.hasReferenceProvider = new o.c("editorHasReferenceProvider", false), e2.hasRenameProvider = new o.c("editorHasRenameProvider", false), e2.hasSignatureHelpProvider = new o.c("editorHasSignatureHelpProvider", false), e2.hasDocumentFormattingProvider = new o.c("editorHasDocumentFormattingProvider", false), e2.hasDocumentSelectionFormattingProvider = new o.c("editorHasDocumentSelectionFormattingProvider", false), e2.hasMultipleDocumentFormattingProvider = new o.c("editorHasMultipleDocumentFormattingProvider", false), e2.hasMultipleDocumentSelectionFormattingProvider = new o.c("editorHasMultipleDocumentSelectionFormattingProvider", false); + e2.editorSimpleInput = new r.c("editorSimpleInput", false), e2.editorTextFocus = new r.c("editorTextFocus", false), e2.focus = new r.c("editorFocus", false), e2.textInputFocus = new r.c("textInputFocus", false), e2.readOnly = new r.c("editorReadonly", false), e2.columnSelection = new r.c("editorColumnSelection", false), e2.writable = e2.readOnly.toNegated(), e2.hasNonEmptySelection = new r.c("editorHasSelection", false), e2.hasOnlyEmptySelection = e2.hasNonEmptySelection.toNegated(), e2.hasMultipleSelections = new r.c("editorHasMultipleSelections", false), e2.hasSingleSelection = e2.hasMultipleSelections.toNegated(), e2.tabMovesFocus = new r.c("editorTabMovesFocus", false), e2.tabDoesNotMoveFocus = e2.tabMovesFocus.toNegated(), e2.isInWalkThroughSnippet = new r.c("isInEmbeddedEditor", false), e2.canUndo = new r.c("canUndo", false), e2.canRedo = new r.c("canRedo", false), e2.hoverVisible = new r.c("editorHoverVisible", false), e2.inCompositeEditor = new r.c("inCompositeEditor", void 0), e2.notInCompositeEditor = e2.inCompositeEditor.toNegated(), e2.languageId = new r.c("editorLangId", ""), e2.hasCompletionItemProvider = new r.c("editorHasCompletionItemProvider", false), e2.hasCodeActionsProvider = new r.c("editorHasCodeActionsProvider", false), e2.hasCodeLensProvider = new r.c("editorHasCodeLensProvider", false), e2.hasDefinitionProvider = new r.c("editorHasDefinitionProvider", false), e2.hasDeclarationProvider = new r.c("editorHasDeclarationProvider", false), e2.hasImplementationProvider = new r.c("editorHasImplementationProvider", false), e2.hasTypeDefinitionProvider = new r.c("editorHasTypeDefinitionProvider", false), e2.hasHoverProvider = new r.c("editorHasHoverProvider", false), e2.hasDocumentHighlightProvider = new r.c("editorHasDocumentHighlightProvider", false), e2.hasDocumentSymbolProvider = new r.c("editorHasDocumentSymbolProvider", false), e2.hasReferenceProvider = new r.c("editorHasReferenceProvider", false), e2.hasRenameProvider = new r.c("editorHasRenameProvider", false), e2.hasSignatureHelpProvider = new r.c("editorHasSignatureHelpProvider", false), e2.hasDocumentFormattingProvider = new r.c("editorHasDocumentFormattingProvider", false), e2.hasDocumentSelectionFormattingProvider = new r.c("editorHasDocumentSelectionFormattingProvider", false), e2.hasMultipleDocumentFormattingProvider = new r.c("editorHasMultipleDocumentFormattingProvider", false), e2.hasMultipleDocumentSelectionFormattingProvider = new r.c("editorHasMultipleDocumentSelectionFormattingProvider", false); }(i || (i = {})); }, function(e, t, n) { "use strict"; function i(e2) { return !e2 || typeof e2 != "string" || e2.trim().length === 0; } - function o(e2, t2, n2 = "0") { - const i2 = "" + e2, o2 = [i2]; + function r(e2, t2, n2 = "0") { + const i2 = "" + e2, r2 = [i2]; for (let e3 = i2.length; e3 < t2; e3++) - o2.push(n2); - return o2.reverse().join(""); + r2.push(n2); + return r2.reverse().join(""); } n.d(t, "D", function() { return i; }), n.d(t, "M", function() { - return o; + return r; }), n.d(t, "x", function() { return s; }), n.d(t, "u", function() { @@ -1749,9 +1749,9 @@ }), n.d(t, "t", function() { return N; }), n.d(t, "T", function() { - return O; - }), n.d(t, "d", function() { return D; + }), n.d(t, "d", function() { + return O; }), n.d(t, "e", function() { return A; }), n.d(t, "F", function() { @@ -1795,11 +1795,11 @@ }), n.d(t, "y", function() { return ie; }), n.d(t, "c", function() { - return oe; + return re; }); - const r = /{(\d+)}/g; + const o = /{(\d+)}/g; function s(e2, ...t2) { - return t2.length === 0 ? e2 : e2.replace(r, function(e3, n2) { + return t2.length === 0 ? e2 : e2.replace(o, function(e3, n2) { const i2 = parseInt(n2, 10); return isNaN(i2) || i2 < 0 || i2 >= t2.length ? e3 : t2[i2]; }); @@ -1841,13 +1841,13 @@ const n2 = t2.length, i2 = e2.length; if (n2 === 0 || i2 === 0) return e2; - let o2 = i2, r2 = -1; - for (; r2 = e2.lastIndexOf(t2, o2 - 1), r2 !== -1 && r2 + n2 === o2; ) { - if (r2 === 0) + let r2 = i2, o2 = -1; + for (; o2 = e2.lastIndexOf(t2, r2 - 1), o2 !== -1 && o2 + n2 === r2; ) { + if (o2 === 0) return ""; - o2 = r2; + r2 = o2; } - return e2.substring(0, o2); + return e2.substring(0, r2); } function u(e2) { return e2.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&").replace(/[\*]/g, ".*"); @@ -1911,30 +1911,30 @@ function C(e2, t2) { return e2 < t2 ? -1 : e2 > t2 ? 1 : 0; } - function x(e2, t2, n2 = 0, i2 = e2.length, o2 = 0, r2 = t2.length) { - for (; n2 < i2 && o2 < r2; n2++, o2++) { - let i3 = e2.charCodeAt(n2), r3 = t2.charCodeAt(o2); - if (i3 < r3) + function x(e2, t2, n2 = 0, i2 = e2.length, r2 = 0, o2 = t2.length) { + for (; n2 < i2 && r2 < o2; n2++, r2++) { + let i3 = e2.charCodeAt(n2), o3 = t2.charCodeAt(r2); + if (i3 < o3) return -1; - if (i3 > r3) + if (i3 > o3) return 1; } - const s2 = i2 - n2, a2 = r2 - o2; + const s2 = i2 - n2, a2 = o2 - r2; return s2 < a2 ? -1 : s2 > a2 ? 1 : 0; } function S(e2, t2) { return k(e2, t2, 0, e2.length, 0, t2.length); } - function k(e2, t2, n2 = 0, i2 = e2.length, o2 = 0, r2 = t2.length) { - for (; n2 < i2 && o2 < r2; n2++, o2++) { - let s3 = e2.charCodeAt(n2), a3 = t2.charCodeAt(o2); + function k(e2, t2, n2 = 0, i2 = e2.length, r2 = 0, o2 = t2.length) { + for (; n2 < i2 && r2 < o2; n2++, r2++) { + let s3 = e2.charCodeAt(n2), a3 = t2.charCodeAt(r2); if (s3 === a3) continue; const l2 = s3 - a3; if ((l2 !== 32 || !T(a3)) && (l2 !== -32 || !T(s3))) - return E(s3) && E(a3) ? l2 : x(e2.toLowerCase(), t2.toLowerCase(), n2, i2, o2, r2); + return E(s3) && E(a3) ? l2 : x(e2.toLowerCase(), t2.toLowerCase(), n2, i2, r2, o2); } - const s2 = i2 - n2, a2 = r2 - o2; + const s2 = i2 - n2, a2 = o2 - r2; return s2 < a2 ? -1 : s2 > a2 ? 1 : 0; } function E(e2) { @@ -1951,23 +1951,23 @@ } function I(e2, t2, n2 = e2.length) { for (let i2 = 0; i2 < n2; i2++) { - const n3 = e2.charCodeAt(i2), o2 = t2.charCodeAt(i2); - if (n3 !== o2) { - if (L(n3) && L(o2)) { - const e3 = Math.abs(n3 - o2); + const n3 = e2.charCodeAt(i2), r2 = t2.charCodeAt(i2); + if (n3 !== r2) { + if (L(n3) && L(r2)) { + const e3 = Math.abs(n3 - r2); if (e3 !== 0 && e3 !== 32) return false; - } else if (String.fromCharCode(n3).toLowerCase() !== String.fromCharCode(o2).toLowerCase()) + } else if (String.fromCharCode(n3).toLowerCase() !== String.fromCharCode(r2).toLowerCase()) return false; } } return true; } - function O(e2, t2) { + function D(e2, t2) { const n2 = t2.length; return !(t2.length > e2.length) && I(e2, t2, n2); } - function D(e2, t2) { + function O(e2, t2) { let n2, i2 = Math.min(e2.length, t2.length); for (n2 = 0; n2 < i2; n2++) if (e2.charCodeAt(n2) !== t2.charCodeAt(n2)) @@ -1976,9 +1976,9 @@ } function A(e2, t2) { let n2, i2 = Math.min(e2.length, t2.length); - const o2 = e2.length - 1, r2 = t2.length - 1; + const r2 = e2.length - 1, o2 = t2.length - 1; for (n2 = 0; n2 < i2; n2++) - if (e2.charCodeAt(o2 - n2) !== t2.charCodeAt(r2 - n2)) + if (e2.charCodeAt(r2 - n2) !== t2.charCodeAt(o2 - n2)) return n2; return i2; } @@ -2010,26 +2010,26 @@ return n2; } function z(e2, t2) { - const n2 = re.getInstance(), i2 = t2, o2 = e2.length, r2 = F(e2, o2, t2); - t2 += r2 >= 65536 ? 2 : 1; - let s2 = n2.getGraphemeBreakType(r2); - for (; t2 < o2; ) { - const i3 = F(e2, o2, t2), r3 = n2.getGraphemeBreakType(i3); - if (oe(s2, r3)) + const n2 = oe.getInstance(), i2 = t2, r2 = e2.length, o2 = F(e2, r2, t2); + t2 += o2 >= 65536 ? 2 : 1; + let s2 = n2.getGraphemeBreakType(o2); + for (; t2 < r2; ) { + const i3 = F(e2, r2, t2), o3 = n2.getGraphemeBreakType(i3); + if (re(s2, o3)) break; - t2 += i3 >= 65536 ? 2 : 1, s2 = r3; + t2 += i3 >= 65536 ? 2 : 1, s2 = o3; } return t2 - i2; } function B(e2, t2) { - const n2 = re.getInstance(), i2 = t2, o2 = W(e2, t2); - t2 -= o2 >= 65536 ? 2 : 1; - let r2 = n2.getGraphemeBreakType(o2); + const n2 = oe.getInstance(), i2 = t2, r2 = W(e2, t2); + t2 -= r2 >= 65536 ? 2 : 1; + let o2 = n2.getGraphemeBreakType(r2); for (; t2 > 0; ) { - const i3 = W(e2, t2), o3 = n2.getGraphemeBreakType(i3); - if (oe(o3, r2)) + const i3 = W(e2, t2), r3 = n2.getGraphemeBreakType(i3); + if (re(r3, o2)) break; - t2 -= i3 >= 65536 ? 2 : 1, r2 = o3; + t2 -= i3 >= 65536 ? 2 : 1, o2 = r3; } return i2 - t2; } @@ -2037,12 +2037,12 @@ const t2 = e2.byteLength, n2 = []; let i2 = 0; for (; i2 < t2; ) { - const o2 = e2[i2]; - let r2; - if (r2 = o2 >= 240 && i2 + 3 < t2 ? (7 & e2[i2++]) << 18 >>> 0 | (63 & e2[i2++]) << 12 >>> 0 | (63 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : o2 >= 224 && i2 + 2 < t2 ? (15 & e2[i2++]) << 12 >>> 0 | (63 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : o2 >= 192 && i2 + 1 < t2 ? (31 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : e2[i2++], r2 >= 0 && r2 <= 55295 || r2 >= 57344 && r2 <= 65535) - n2.push(String.fromCharCode(r2)); - else if (r2 >= 65536 && r2 <= 1114111) { - const e3 = r2 - 65536, t3 = 55296 + ((1047552 & e3) >>> 10), i3 = 56320 + ((1023 & e3) >>> 0); + const r2 = e2[i2]; + let o2; + if (o2 = r2 >= 240 && i2 + 3 < t2 ? (7 & e2[i2++]) << 18 >>> 0 | (63 & e2[i2++]) << 12 >>> 0 | (63 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : r2 >= 224 && i2 + 2 < t2 ? (15 & e2[i2++]) << 12 >>> 0 | (63 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : r2 >= 192 && i2 + 1 < t2 ? (31 & e2[i2++]) << 6 >>> 0 | (63 & e2[i2++]) << 0 >>> 0 : e2[i2++], o2 >= 0 && o2 <= 55295 || o2 >= 57344 && o2 <= 65535) + n2.push(String.fromCharCode(o2)); + else if (o2 >= 65536 && o2 <= 1114111) { + const e3 = o2 - 65536, t3 = 55296 + ((1047552 & e3) >>> 10), i3 = 56320 + ((1023 & e3) >>> 0); n2.push(String.fromCharCode(t3)), n2.push(String.fromCharCode(i3)); } else n2.push(String.fromCharCode(65533)); @@ -2088,17 +2088,17 @@ return (e2 %= 52) < 26 ? String.fromCharCode(97 + e2) : String.fromCharCode(65 + e2 - 26); } function ie(e2) { - return re.getInstance().getGraphemeBreakType(e2); + return oe.getInstance().getGraphemeBreakType(e2); } - function oe(e2, t2) { + function re(e2, t2) { return e2 === 0 ? t2 !== 5 && t2 !== 7 : (e2 !== 2 || t2 !== 3) && (e2 === 4 || e2 === 2 || e2 === 3 || (t2 === 4 || t2 === 2 || t2 === 3 || (e2 !== 8 || t2 !== 8 && t2 !== 9 && t2 !== 11 && t2 !== 12) && ((e2 !== 11 && e2 !== 9 || t2 !== 9 && t2 !== 10) && ((e2 !== 12 && e2 !== 10 || t2 !== 10) && (t2 !== 5 && t2 !== 13 && (t2 !== 7 && (e2 !== 1 && ((e2 !== 13 || t2 !== 14) && (e2 !== 6 || t2 !== 6))))))))); } - class re { + class oe { constructor() { this._data = JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]"); } static getInstance() { - return re._INSTANCE || (re._INSTANCE = new re()), re._INSTANCE; + return oe._INSTANCE || (oe._INSTANCE = new oe()), oe._INSTANCE; } getGraphemeBreakType(e2) { if (e2 < 32) @@ -2118,7 +2118,7 @@ return 0; } } - re._INSTANCE = null; + oe._INSTANCE = null; }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -2183,9 +2183,9 @@ }), n.d(t, "d", function() { return S; }); - var i = n(8), o = n(18), r = n(11); + var i = n(8), r = n(18), o = n(11); const s = new Map(); - s.set("false", false), s.set("true", true), s.set("isMac", r.f), s.set("isLinux", r.d), s.set("isWindows", r.i), s.set("isWeb", r.h), s.set("isMacNative", r.f && !r.h); + s.set("false", false), s.set("true", true), s.set("isMac", o.f), s.set("isLinux", o.d), s.set("isWindows", o.i), s.set("isWeb", o.h), s.set("isMacNative", o.f && !o.h); const a = Object.prototype.hasOwnProperty; class l { static has(e2) { @@ -2251,15 +2251,15 @@ throw new Error("missing regexp-value for =~-expression"); return console.warn("missing regexp-value for =~-expression"), null; } - let n2 = e2.indexOf("/"), o2 = e2.lastIndexOf("/"); - if (n2 === o2 || n2 < 0) { + let n2 = e2.indexOf("/"), r2 = e2.lastIndexOf("/"); + if (n2 === r2 || n2 < 0) { if (t2) throw new Error(`bad regexp-value '${e2}', missing /-enclosure`); return console.warn(`bad regexp-value '${e2}', missing /-enclosure`), null; } - let r2 = e2.slice(n2 + 1, o2), s2 = e2[o2 + 1] === "i" ? "i" : ""; + let o2 = e2.slice(n2 + 1, r2), s2 = e2[r2 + 1] === "i" ? "i" : ""; try { - return new RegExp(r2, s2); + return new RegExp(o2, s2); } catch (n3) { if (t2) throw new Error(`bad regexp-value '${e2}', parse error: ${n3}`); @@ -2678,13 +2678,13 @@ static _normalizeArr(e2) { let t2 = [], n2 = false; if (e2) { - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) { - const o3 = e2[i2]; - if (o3) - if (o3.type !== 0) { - if (o3.type === 1) + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) { + const r3 = e2[i2]; + if (r3) + if (r3.type !== 0) { + if (r3.type === 1) return [h.INSTANCE]; - o3.type !== 9 ? t2.push(o3) : t2 = t2.concat(o3.expr); + r3.type !== 9 ? t2.push(r3) : t2 = t2.concat(r3.expr); } else n2 = true; } @@ -2709,11 +2709,11 @@ e2.push(t3.negate()); const t2 = (e3) => e3.type === 9 ? e3.expr : [e3]; for (; e2.length > 1; ) { - const n2 = e2.shift(), i2 = e2.shift(), o2 = []; + const n2 = e2.shift(), i2 = e2.shift(), r2 = []; for (const e3 of t2(n2)) for (const n3 of t2(i2)) - o2.push(l.and(e3, n3)); - e2.unshift(l.or(...o2)); + r2.push(l.and(e3, n3)); + e2.unshift(l.or(...r2)); } return e2[0]; } @@ -2732,7 +2732,7 @@ return l.not(this.key); } } - const x = Object(o.c)("contextKeyService"), S = "setContext"; + const x = Object(r.c)("contextKeyService"), S = "setContext"; }, function(e, t, n) { "use strict"; (function(e2, i) { @@ -2757,11 +2757,11 @@ }), n.d(t, "e", function() { return T; }); - let o = false, r = false, s = false, a = false, l = false, c = false, d = void 0, h = "en", u = void 0, p = void 0; + let r = false, o = false, s = false, a = false, l = false, c = false, d = void 0, h = "en", u = void 0, p = void 0; const m = e2 !== void 0 && e2.versions !== void 0 && e2.versions.electron !== void 0 && e2.type === "renderer"; if (typeof navigator != "object" || m) { if (typeof e2 == "object") { - o = e2.platform === "win32", r = e2.platform === "darwin", s = e2.platform === "linux", d = "en", h = "en"; + r = e2.platform === "win32", o = e2.platform === "darwin", s = e2.platform === "linux", d = "en", h = "en"; const t2 = e2.env.VSCODE_NLS_CONFIG; if (t2) try { @@ -2772,10 +2772,10 @@ a = true; } } else - p = navigator.userAgent, o = p.indexOf("Windows") >= 0, r = p.indexOf("Macintosh") >= 0, c = (p.indexOf("Macintosh") >= 0 || p.indexOf("iPad") >= 0 || p.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0, s = p.indexOf("Linux") >= 0, l = true, d = navigator.language, h = d; + p = navigator.userAgent, r = p.indexOf("Windows") >= 0, o = p.indexOf("Macintosh") >= 0, c = (p.indexOf("Macintosh") >= 0 || p.indexOf("iPad") >= 0 || p.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0, s = p.indexOf("Linux") >= 0, l = true, d = navigator.language, h = d; let g = 0; - r ? g = 1 : o ? g = 3 : s && (g = 2); - const f = o, b = r, _ = s, v = a, w = l, y = c, C = typeof self == "object" ? self : typeof i == "object" ? i : {}, x = function() { + o ? g = 1 : r ? g = 3 : s && (g = 2); + const f = r, b = o, _ = s, v = a, w = l, y = c, C = typeof self == "object" ? self : typeof i == "object" ? i : {}, x = function() { if (C.setImmediate) return C.setImmediate.bind(C); if (typeof C.postMessage == "function" && !C.importScripts) { @@ -2798,7 +2798,7 @@ return e2.nextTick.bind(e2); const t2 = Promise.resolve(); return (e3) => t2.then(e3); - }(), S = r || c ? 2 : o ? 1 : 3; + }(), S = o || c ? 2 : r ? 1 : 3; let k = true, E = false; function T() { if (!E) { @@ -2848,9 +2848,9 @@ }), n.d(t, "u", function() { return I; }), n.d(t, "f", function() { - return O; - }), n.d(t, "e", function() { return D; + }), n.d(t, "e", function() { + return O; }), n.d(t, "q", function() { return A; }), n.d(t, "D", function() { @@ -2880,22 +2880,22 @@ }), n.d(t, "C", function() { return $; }); - var i = n(23), o = n(3), r = n(6), s = n(2), a = n(187), l = n(42); + var i = n(23), r = n(3), o = n(6), s = n(2), a = n(187), l = n(42); function c(e2, t2, n2, i2) { if (Array.isArray(e2)) { - let o2 = 0; - for (const r2 of e2) { - const e3 = c(r2, t2, n2, i2); + let r2 = 0; + for (const o2 of e2) { + const e3 = c(o2, t2, n2, i2); if (e3 === 10) return e3; - e3 > o2 && (o2 = e3); + e3 > r2 && (r2 = e3); } - return o2; + return r2; } if (typeof e2 == "string") return i2 ? e2 === "*" ? 5 : e2 === n2 ? 10 : 0 : 0; if (e2) { - const {language: o2, pattern: r2, scheme: s2, hasAccessToAllModels: c2} = e2; + const {language: r2, pattern: o2, scheme: s2, hasAccessToAllModels: c2} = e2; if (!i2 && !c2) return 0; let d2 = 0; @@ -2907,17 +2907,17 @@ return 0; d2 = 5; } - if (o2) - if (o2 === n2) + if (r2) + if (r2 === n2) d2 = 10; else { - if (o2 !== "*") + if (r2 !== "*") return 0; d2 = Math.max(d2, 5); } - if (r2) { + if (o2) { let e3; - if (e3 = typeof r2 == "string" ? r2 : Object.assign(Object.assign({}, r2), {base: Object(l.d)(r2.base)}), e3 !== t2.fsPath && !Object(a.a)(e3, t2.fsPath)) + if (e3 = typeof o2 == "string" ? o2 : Object.assign(Object.assign({}, o2), {base: Object(l.d)(o2.base)}), e3 !== t2.fsPath && !Object(a.a)(e3, t2.fsPath)) return 0; d2 = 10; } @@ -2931,7 +2931,7 @@ } class u { constructor() { - this._clock = 0, this._entries = [], this._onDidChange = new r.a(); + this._clock = 0, this._entries = [], this._onDidChange = new o.a(); } get onDidChange() { return this._onDidChange.event; @@ -3021,8 +3021,8 @@ } static getInlineStyleFromMetadata(e2, t2) { const n2 = this.getForeground(e2), i2 = this.getFontStyle(e2); - let o2 = `color: ${t2[n2]};`; - return 1 & i2 && (o2 += "font-style: italic;"), 2 & i2 && (o2 += "font-weight: bold;"), 4 & i2 && (o2 += "text-decoration: underline;"), o2; + let r2 = `color: ${t2[n2]};`; + return 1 & i2 && (r2 += "font-style: italic;"), 2 & i2 && (r2 += "font-weight: bold;"), 4 & i2 && (r2 += "text-decoration: underline;"), r2; } } const f = function() { @@ -3042,7 +3042,7 @@ }(); var _, v, w; function y(e2) { - return e2 && i.a.isUri(e2.uri) && o.a.isIRange(e2.range) && (o.a.isIRange(e2.originSelectionRange) || o.a.isIRange(e2.targetSelectionRange)); + return e2 && i.a.isUri(e2.uri) && r.a.isIRange(e2.range) && (r.a.isIRange(e2.originSelectionRange) || r.a.isIRange(e2.targetSelectionRange)); } !function(e2) { e2[e2.Invoke = 1] = "Invoke", e2[e2.TriggerCharacter = 2] = "TriggerCharacter", e2[e2.ContentChange = 3] = "ContentChange"; @@ -3058,8 +3058,8 @@ return n2.get(e3); }, e2.toCssClassName = function(e3, t3) { const i2 = n2.get(e3); - let o2 = i2 && p.c.get("symbol-" + i2); - return o2 || (console.info("No codicon found for SymbolKind " + e3), o2 = p.a.symbolProperty), `${t3 ? "inline" : "block"} ${o2.classNames}`; + let r2 = i2 && p.c.get("symbol-" + i2); + return r2 || (console.info("No codicon found for SymbolKind " + e3), r2 = p.a.symbolProperty), `${t3 ? "inline" : "block"} ${r2.classNames}`; }; }(w || (w = {})); class C { @@ -3068,9 +3068,9 @@ } } C.Comment = new C("comment"), C.Imports = new C("imports"), C.Region = new C("region"); - const x = new u(), S = new u(), k = new u(), E = new u(), T = new u(), L = new u(), N = new u(), I = new u(), O = new u(), D = new u(), A = new u(), R = new u(), M = new u(), P = new u(), F = new u(), W = new u(), z = new u(), B = new u(), j = new u(), V = new u(), U = new u(), H = new u(), q = new u(), $ = new class { + const x = new u(), S = new u(), k = new u(), E = new u(), T = new u(), L = new u(), N = new u(), I = new u(), D = new u(), O = new u(), A = new u(), R = new u(), M = new u(), P = new u(), F = new u(), W = new u(), z = new u(), B = new u(), j = new u(), V = new u(), U = new u(), H = new u(), q = new u(), $ = new class { constructor() { - this._map = new Map(), this._promises = new Map(), this._onDidChange = new r.a(), this.onDidChange = this._onDidChange.event, this._colorMap = null; + this._map = new Map(), this._promises = new Map(), this._onDidChange = new o.a(), this.onDidChange = this._onDidChange.event, this._colorMap = null; } fire(e2) { this._onDidChange.fire({changedLanguages: e2, changedColorMap: false}); @@ -3111,9 +3111,9 @@ }, function(e, t, n) { "use strict"; n.d(t, "e", function() { - return o; - }), n.d(t, "f", function() { return r; + }), n.d(t, "f", function() { + return o; }), n.d(t, "g", function() { return s; }), n.d(t, "d", function() { @@ -3147,10 +3147,10 @@ this.unexpectedErrorHandler(e2); } }(); - function o(e2) { + function r(e2) { a(e2) || i.onUnexpectedError(e2); } - function r(e2) { + function o(e2) { a(e2) || i.onUnexpectedExternalError(e2); } function s(e2) { @@ -3178,10 +3178,10 @@ function i(e2) { return Array.isArray(e2); } - function o(e2) { + function r(e2) { return typeof e2 == "string"; } - function r(e2) { + function o(e2) { return !(typeof e2 != "object" || e2 === null || Array.isArray(e2) || e2 instanceof RegExp || e2 instanceof Date); } function s(e2) { @@ -3214,7 +3214,7 @@ m(e2[i2], t2[i2]); } function m(e2, t2) { - if (o(t2)) { + if (r(t2)) { if (typeof e2 !== t2) throw new Error("argument does not match constraint: typeof " + t2); } else if (u(t2)) { @@ -3257,9 +3257,9 @@ n.d(t, "e", function() { return i; }), n.d(t, "j", function() { - return o; - }), n.d(t, "i", function() { return r; + }), n.d(t, "i", function() { + return o; }), n.d(t, "h", function() { return s; }), n.d(t, "f", function() { @@ -3283,184 +3283,6 @@ }), n.d(t, "n", function() { return b; }); -}, function(e, t, n) { - "use strict"; - function i(e2, t2 = 0) { - return e2[e2.length - (1 + t2)]; - } - function o(e2) { - if (e2.length === 0) - throw new Error("Invalid tail call"); - return [e2.slice(0, e2.length - 1), e2[e2.length - 1]]; - } - function r(e2, t2, n2 = (e3, t3) => e3 === t3) { - if (e2 === t2) - return true; - if (!e2 || !t2) - return false; - if (e2.length !== t2.length) - return false; - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) - if (!n2(e2[i2], t2[i2])) - return false; - return true; - } - function s(e2, t2, n2) { - let i2 = 0, o2 = e2.length - 1; - for (; i2 <= o2; ) { - const r2 = (i2 + o2) / 2 | 0, s2 = n2(e2[r2], t2); - if (s2 < 0) - i2 = r2 + 1; - else { - if (!(s2 > 0)) - return r2; - o2 = r2 - 1; - } - } - return -(i2 + 1); - } - function a(e2, t2) { - let n2 = 0, i2 = e2.length; - if (i2 === 0) - return 0; - for (; n2 < i2; ) { - const o2 = Math.floor((n2 + i2) / 2); - t2(e2[o2]) ? i2 = o2 : n2 = o2 + 1; - } - return n2; - } - function l(e2, t2) { - return function e3(t3, n2, i2, o2, r2) { - if (o2 <= i2) - return; - const s2 = i2 + (o2 - i2) / 2 | 0; - if (e3(t3, n2, i2, s2, r2), e3(t3, n2, s2 + 1, o2, r2), n2(t3[s2], t3[s2 + 1]) <= 0) - return; - !function(e4, t4, n3, i3, o3, r3) { - let s3 = n3, a2 = i3 + 1; - for (let t5 = n3; t5 <= o3; t5++) - r3[t5] = e4[t5]; - for (let l2 = n3; l2 <= o3; l2++) - s3 > i3 ? e4[l2] = r3[a2++] : a2 > o3 ? e4[l2] = r3[s3++] : t4(r3[a2], r3[s3]) < 0 ? e4[l2] = r3[a2++] : e4[l2] = r3[s3++]; - }(t3, n2, i2, s2, o2, r2); - }(e2, t2, 0, e2.length - 1, []), e2; - } - function c(e2, t2) { - const n2 = []; - let i2 = void 0; - for (const o2 of l(e2.slice(0), t2)) - i2 && t2(i2[0], o2) === 0 ? i2.push(o2) : (i2 = [o2], n2.push(i2)); - return n2; - } - function d(e2) { - return e2.filter((e3) => !!e3); - } - function h(e2) { - return !Array.isArray(e2) || e2.length === 0; - } - function u(e2) { - return Array.isArray(e2) && e2.length > 0; - } - function p(e2, t2) { - if (!t2) - return e2.filter((t3, n3) => e2.indexOf(t3) === n3); - const n2 = Object.create(null); - return e2.filter((e3) => { - const i2 = t2(e3); - return !n2[i2] && (n2[i2] = true, true); - }); - } - function m(e2) { - const t2 = new Set(); - return e2.filter((e3) => !t2.has(e3) && (t2.add(e3), true)); - } - function g(e2, t2) { - for (let n2 = 0; n2 < e2.length; n2++) { - if (t2(e2[n2])) - return n2; - } - return -1; - } - function f(e2, t2, n2) { - const i2 = g(e2, t2); - return i2 < 0 ? n2 : e2[i2]; - } - function b(e2, t2) { - return e2.length > 0 ? e2[0] : t2; - } - function _(e2) { - return [].concat(...e2); - } - function v(e2, t2) { - let n2 = typeof t2 == "number" ? e2 : 0; - typeof t2 == "number" ? n2 = e2 : (n2 = 0, t2 = e2); - const i2 = []; - if (n2 <= t2) - for (let e3 = n2; e3 < t2; e3++) - i2.push(e3); - else - for (let e3 = n2; e3 > t2; e3--) - i2.push(e3); - return i2; - } - function w(e2, t2, n2) { - const i2 = e2.slice(0, t2), o2 = e2.slice(t2); - return i2.concat(n2, o2); - } - function y(e2, t2) { - const n2 = e2.indexOf(t2); - n2 > -1 && (e2.splice(n2, 1), e2.unshift(t2)); - } - function C(e2, t2) { - const n2 = e2.indexOf(t2); - n2 > -1 && (e2.splice(n2, 1), e2.push(t2)); - } - function x(e2) { - return Array.isArray(e2) ? e2 : [e2]; - } - n.d(t, "t", function() { - return i; - }), n.d(t, "u", function() { - return o; - }), n.d(t, "g", function() { - return r; - }), n.d(t, "c", function() { - return s; - }), n.d(t, "h", function() { - return a; - }), n.d(t, "p", function() { - return l; - }), n.d(t, "m", function() { - return c; - }), n.d(t, "d", function() { - return d; - }), n.d(t, "n", function() { - return h; - }), n.d(t, "o", function() { - return u; - }), n.d(t, "e", function() { - return p; - }), n.d(t, "f", function() { - return m; - }), n.d(t, "j", function() { - return g; - }), n.d(t, "i", function() { - return f; - }), n.d(t, "k", function() { - return b; - }), n.d(t, "l", function() { - return _; - }), n.d(t, "s", function() { - return v; - }), n.d(t, "a", function() { - return w; - }), n.d(t, "r", function() { - return y; - }), n.d(t, "q", function() { - return C; - }), n.d(t, "b", function() { - return x; - }); }, function(e, t, n) { "use strict"; function i(e2, t2) { @@ -3468,29 +3290,29 @@ return Math.round(e2 * n2) / n2; } n.d(t, "c", function() { - return o; + return r; }), n.d(t, "b", function() { return s; }), n.d(t, "a", function() { return a; }); - class o { - constructor(e2, t2, n2, o2 = 1) { - this.r = 0 | Math.min(255, Math.max(0, e2)), this.g = 0 | Math.min(255, Math.max(0, t2)), this.b = 0 | Math.min(255, Math.max(0, n2)), this.a = i(Math.max(Math.min(1, o2), 0), 3); + class r { + constructor(e2, t2, n2, r2 = 1) { + this.r = 0 | Math.min(255, Math.max(0, e2)), this.g = 0 | Math.min(255, Math.max(0, t2)), this.b = 0 | Math.min(255, Math.max(0, n2)), this.a = i(Math.max(Math.min(1, r2), 0), 3); } static equals(e2, t2) { return e2.r === t2.r && e2.g === t2.g && e2.b === t2.b && e2.a === t2.a; } } - class r { - constructor(e2, t2, n2, o2) { - this.h = 0 | Math.max(Math.min(360, e2), 0), this.s = i(Math.max(Math.min(1, t2), 0), 3), this.l = i(Math.max(Math.min(1, n2), 0), 3), this.a = i(Math.max(Math.min(1, o2), 0), 3); + class o { + constructor(e2, t2, n2, r2) { + this.h = 0 | Math.max(Math.min(360, e2), 0), this.s = i(Math.max(Math.min(1, t2), 0), 3), this.l = i(Math.max(Math.min(1, n2), 0), 3), this.a = i(Math.max(Math.min(1, r2), 0), 3); } static equals(e2, t2) { return e2.h === t2.h && e2.s === t2.s && e2.l === t2.l && e2.a === t2.a; } static fromRGBA(e2) { - const t2 = e2.r / 255, n2 = e2.g / 255, i2 = e2.b / 255, o2 = e2.a, s2 = Math.max(t2, n2, i2), a2 = Math.min(t2, n2, i2); + const t2 = e2.r / 255, n2 = e2.g / 255, i2 = e2.b / 255, r2 = e2.a, s2 = Math.max(t2, n2, i2), a2 = Math.min(t2, n2, i2); let l = 0, c = 0; const d = (a2 + s2) / 2, h = s2 - a2; if (h > 0) { @@ -3506,7 +3328,7 @@ } l *= 60, l = Math.round(l); } - return new r(l, c, d, o2); + return new o(l, c, d, r2); } static _hue2rgb(e2, t2, n2) { return n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), n2 < 1 / 6 ? e2 + 6 * (t2 - e2) * n2 : n2 < 0.5 ? t2 : n2 < 2 / 3 ? e2 + (t2 - e2) * (2 / 3 - n2) * 6 : e2; @@ -3517,38 +3339,38 @@ if (n2 === 0) a2 = l = c = i2; else { - const e3 = i2 < 0.5 ? i2 * (1 + n2) : i2 + n2 - i2 * n2, o2 = 2 * i2 - e3; - a2 = r._hue2rgb(o2, e3, t2 + 1 / 3), l = r._hue2rgb(o2, e3, t2), c = r._hue2rgb(o2, e3, t2 - 1 / 3); + const e3 = i2 < 0.5 ? i2 * (1 + n2) : i2 + n2 - i2 * n2, r2 = 2 * i2 - e3; + a2 = o._hue2rgb(r2, e3, t2 + 1 / 3), l = o._hue2rgb(r2, e3, t2), c = o._hue2rgb(r2, e3, t2 - 1 / 3); } - return new o(Math.round(255 * a2), Math.round(255 * l), Math.round(255 * c), s2); + return new r(Math.round(255 * a2), Math.round(255 * l), Math.round(255 * c), s2); } } class s { - constructor(e2, t2, n2, o2) { - this.h = 0 | Math.max(Math.min(360, e2), 0), this.s = i(Math.max(Math.min(1, t2), 0), 3), this.v = i(Math.max(Math.min(1, n2), 0), 3), this.a = i(Math.max(Math.min(1, o2), 0), 3); + constructor(e2, t2, n2, r2) { + this.h = 0 | Math.max(Math.min(360, e2), 0), this.s = i(Math.max(Math.min(1, t2), 0), 3), this.v = i(Math.max(Math.min(1, n2), 0), 3), this.a = i(Math.max(Math.min(1, r2), 0), 3); } static equals(e2, t2) { return e2.h === t2.h && e2.s === t2.s && e2.v === t2.v && e2.a === t2.a; } static fromRGBA(e2) { - const t2 = e2.r / 255, n2 = e2.g / 255, i2 = e2.b / 255, o2 = Math.max(t2, n2, i2), r2 = o2 - Math.min(t2, n2, i2), a2 = o2 === 0 ? 0 : r2 / o2; + const t2 = e2.r / 255, n2 = e2.g / 255, i2 = e2.b / 255, r2 = Math.max(t2, n2, i2), o2 = r2 - Math.min(t2, n2, i2), a2 = r2 === 0 ? 0 : o2 / r2; let l; - return l = r2 === 0 ? 0 : o2 === t2 ? ((n2 - i2) / r2 % 6 + 6) % 6 : o2 === n2 ? (i2 - t2) / r2 + 2 : (t2 - n2) / r2 + 4, new s(Math.round(60 * l), a2, o2, e2.a); + return l = o2 === 0 ? 0 : r2 === t2 ? ((n2 - i2) / o2 % 6 + 6) % 6 : r2 === n2 ? (i2 - t2) / o2 + 2 : (t2 - n2) / o2 + 4, new s(Math.round(60 * l), a2, r2, e2.a); } static toRGBA(e2) { - const {h: t2, s: n2, v: i2, a: r2} = e2, s2 = i2 * n2, a2 = s2 * (1 - Math.abs(t2 / 60 % 2 - 1)), l = i2 - s2; + const {h: t2, s: n2, v: i2, a: o2} = e2, s2 = i2 * n2, a2 = s2 * (1 - Math.abs(t2 / 60 % 2 - 1)), l = i2 - s2; let [c, d, h] = [0, 0, 0]; - return t2 < 60 ? (c = s2, d = a2) : t2 < 120 ? (c = a2, d = s2) : t2 < 180 ? (d = s2, h = a2) : t2 < 240 ? (d = a2, h = s2) : t2 < 300 ? (c = a2, h = s2) : t2 < 360 && (c = s2, h = a2), c = Math.round(255 * (c + l)), d = Math.round(255 * (d + l)), h = Math.round(255 * (h + l)), new o(c, d, h, r2); + return t2 < 60 ? (c = s2, d = a2) : t2 < 120 ? (c = a2, d = s2) : t2 < 180 ? (d = s2, h = a2) : t2 < 240 ? (d = a2, h = s2) : t2 < 300 ? (c = a2, h = s2) : t2 < 360 && (c = s2, h = a2), c = Math.round(255 * (c + l)), d = Math.round(255 * (d + l)), h = Math.round(255 * (h + l)), new r(c, d, h, o2); } } class a { constructor(e2) { if (!e2) throw new Error("Color needs a value"); - if (e2 instanceof o) + if (e2 instanceof r) this.rgba = e2; - else if (e2 instanceof r) - this._hsla = e2, this.rgba = r.toRGBA(e2); + else if (e2 instanceof o) + this._hsla = e2, this.rgba = o.toRGBA(e2); else { if (!(e2 instanceof s)) throw new Error("Invalid color ctor argument"); @@ -3559,13 +3381,13 @@ return a.Format.CSS.parseHex(e2) || a.red; } get hsla() { - return this._hsla ? this._hsla : r.fromRGBA(this.rgba); + return this._hsla ? this._hsla : o.fromRGBA(this.rgba); } get hsva() { return this._hsva ? this._hsva : s.fromRGBA(this.rgba); } equals(e2) { - return !!e2 && o.equals(this.rgba, e2.rgba) && r.equals(this.hsla, e2.hsla) && s.equals(this.hsva, e2.hsva); + return !!e2 && r.equals(this.rgba, e2.rgba) && o.equals(this.hsla, e2.hsla) && s.equals(this.hsva, e2.hsva); } getRelativeLuminance() { return i(0.2126 * a._relativeLuminanceForComponent(this.rgba.r) + 0.7152 * a._relativeLuminanceForComponent(this.rgba.g) + 0.0722 * a._relativeLuminanceForComponent(this.rgba.b), 4); @@ -3584,14 +3406,14 @@ return this.getRelativeLuminance() < e2.getRelativeLuminance(); } lighten(e2) { - return new a(new r(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * e2, this.hsla.a)); + return new a(new o(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * e2, this.hsla.a)); } darken(e2) { - return new a(new r(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * e2, this.hsla.a)); + return new a(new o(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * e2, this.hsla.a)); } transparent(e2) { - const {r: t2, g: n2, b: i2, a: r2} = this.rgba; - return new a(new o(t2, n2, i2, r2 * e2)); + const {r: t2, g: n2, b: i2, a: o2} = this.rgba; + return new a(new r(t2, n2, i2, o2 * e2)); } isTransparent() { return this.rgba.a === 0; @@ -3600,7 +3422,7 @@ return this.rgba.a === 1; } opposite() { - return new a(new o(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a)); + return new a(new r(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a)); } toString() { return "" + a.Format.CSS.format(this); @@ -3609,8 +3431,8 @@ if (e2.isLighterThan(t2)) return e2; n2 = n2 || 0.5; - const i2 = e2.getRelativeLuminance(), o2 = t2.getRelativeLuminance(); - return n2 = n2 * (o2 - i2) / o2, e2.lighten(n2); + const i2 = e2.getRelativeLuminance(), r2 = t2.getRelativeLuminance(); + return n2 = n2 * (r2 - i2) / r2, e2.lighten(n2); } static getDarkerColor(e2, t2, n2) { if (e2.isDarkerThan(t2)) @@ -3620,7 +3442,7 @@ return n2 = n2 * (i2 - t2.getRelativeLuminance()) / i2, e2.darken(n2); } } - a.white = new a(new o(255, 255, 255, 1)), a.black = new a(new o(0, 0, 0, 1)), a.red = new a(new o(255, 0, 0, 1)), a.blue = new a(new o(0, 0, 255, 1)), a.cyan = new a(new o(0, 255, 255, 1)), a.lightgrey = new a(new o(211, 211, 211, 1)), a.transparent = new a(new o(0, 0, 0, 0)), function(e2) { + a.white = new a(new r(255, 255, 255, 1)), a.black = new a(new r(0, 0, 0, 1)), a.red = new a(new r(255, 0, 0, 1)), a.blue = new a(new r(0, 0, 255, 1)), a.cyan = new a(new r(0, 255, 255, 1)), a.lightgrey = new a(new r(211, 211, 211, 1)), a.transparent = new a(new r(0, 0, 0, 0)), function(e2) { let t2; !function(t3) { let n2; @@ -3693,26 +3515,204 @@ if (t5.charCodeAt(0) !== 35) return null; if (n4 === 7) { - const n5 = 16 * i2(t5.charCodeAt(1)) + i2(t5.charCodeAt(2)), r2 = 16 * i2(t5.charCodeAt(3)) + i2(t5.charCodeAt(4)), s2 = 16 * i2(t5.charCodeAt(5)) + i2(t5.charCodeAt(6)); - return new e2(new o(n5, r2, s2, 1)); + const n5 = 16 * i2(t5.charCodeAt(1)) + i2(t5.charCodeAt(2)), o2 = 16 * i2(t5.charCodeAt(3)) + i2(t5.charCodeAt(4)), s2 = 16 * i2(t5.charCodeAt(5)) + i2(t5.charCodeAt(6)); + return new e2(new r(n5, o2, s2, 1)); } if (n4 === 9) { - const n5 = 16 * i2(t5.charCodeAt(1)) + i2(t5.charCodeAt(2)), r2 = 16 * i2(t5.charCodeAt(3)) + i2(t5.charCodeAt(4)), s2 = 16 * i2(t5.charCodeAt(5)) + i2(t5.charCodeAt(6)), a2 = 16 * i2(t5.charCodeAt(7)) + i2(t5.charCodeAt(8)); - return new e2(new o(n5, r2, s2, a2 / 255)); + const n5 = 16 * i2(t5.charCodeAt(1)) + i2(t5.charCodeAt(2)), o2 = 16 * i2(t5.charCodeAt(3)) + i2(t5.charCodeAt(4)), s2 = 16 * i2(t5.charCodeAt(5)) + i2(t5.charCodeAt(6)), a2 = 16 * i2(t5.charCodeAt(7)) + i2(t5.charCodeAt(8)); + return new e2(new r(n5, o2, s2, a2 / 255)); } if (n4 === 4) { - const n5 = i2(t5.charCodeAt(1)), r2 = i2(t5.charCodeAt(2)), s2 = i2(t5.charCodeAt(3)); - return new e2(new o(16 * n5 + n5, 16 * r2 + r2, 16 * s2 + s2)); + const n5 = i2(t5.charCodeAt(1)), o2 = i2(t5.charCodeAt(2)), s2 = i2(t5.charCodeAt(3)); + return new e2(new r(16 * n5 + n5, 16 * o2 + o2, 16 * s2 + s2)); } if (n4 === 5) { - const n5 = i2(t5.charCodeAt(1)), r2 = i2(t5.charCodeAt(2)), s2 = i2(t5.charCodeAt(3)), a2 = i2(t5.charCodeAt(4)); - return new e2(new o(16 * n5 + n5, 16 * r2 + r2, 16 * s2 + s2, (16 * a2 + a2) / 255)); + const n5 = i2(t5.charCodeAt(1)), o2 = i2(t5.charCodeAt(2)), s2 = i2(t5.charCodeAt(3)), a2 = i2(t5.charCodeAt(4)); + return new e2(new r(16 * n5 + n5, 16 * o2 + o2, 16 * s2 + s2, (16 * a2 + a2) / 255)); } return null; }; }(n2 = t3.CSS || (t3.CSS = {})); }(t2 = e2.Format || (e2.Format = {})); }(a || (a = {})); +}, function(e, t, n) { + "use strict"; + function i(e2, t2 = 0) { + return e2[e2.length - (1 + t2)]; + } + function r(e2) { + if (e2.length === 0) + throw new Error("Invalid tail call"); + return [e2.slice(0, e2.length - 1), e2[e2.length - 1]]; + } + function o(e2, t2, n2 = (e3, t3) => e3 === t3) { + if (e2 === t2) + return true; + if (!e2 || !t2) + return false; + if (e2.length !== t2.length) + return false; + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) + if (!n2(e2[i2], t2[i2])) + return false; + return true; + } + function s(e2, t2, n2) { + let i2 = 0, r2 = e2.length - 1; + for (; i2 <= r2; ) { + const o2 = (i2 + r2) / 2 | 0, s2 = n2(e2[o2], t2); + if (s2 < 0) + i2 = o2 + 1; + else { + if (!(s2 > 0)) + return o2; + r2 = o2 - 1; + } + } + return -(i2 + 1); + } + function a(e2, t2) { + let n2 = 0, i2 = e2.length; + if (i2 === 0) + return 0; + for (; n2 < i2; ) { + const r2 = Math.floor((n2 + i2) / 2); + t2(e2[r2]) ? i2 = r2 : n2 = r2 + 1; + } + return n2; + } + function l(e2, t2) { + return function e3(t3, n2, i2, r2, o2) { + if (r2 <= i2) + return; + const s2 = i2 + (r2 - i2) / 2 | 0; + if (e3(t3, n2, i2, s2, o2), e3(t3, n2, s2 + 1, r2, o2), n2(t3[s2], t3[s2 + 1]) <= 0) + return; + !function(e4, t4, n3, i3, r3, o3) { + let s3 = n3, a2 = i3 + 1; + for (let t5 = n3; t5 <= r3; t5++) + o3[t5] = e4[t5]; + for (let l2 = n3; l2 <= r3; l2++) + s3 > i3 ? e4[l2] = o3[a2++] : a2 > r3 ? e4[l2] = o3[s3++] : t4(o3[a2], o3[s3]) < 0 ? e4[l2] = o3[a2++] : e4[l2] = o3[s3++]; + }(t3, n2, i2, s2, r2, o2); + }(e2, t2, 0, e2.length - 1, []), e2; + } + function c(e2, t2) { + const n2 = []; + let i2 = void 0; + for (const r2 of l(e2.slice(0), t2)) + i2 && t2(i2[0], r2) === 0 ? i2.push(r2) : (i2 = [r2], n2.push(i2)); + return n2; + } + function d(e2) { + return e2.filter((e3) => !!e3); + } + function h(e2) { + return !Array.isArray(e2) || e2.length === 0; + } + function u(e2) { + return Array.isArray(e2) && e2.length > 0; + } + function p(e2, t2) { + if (!t2) + return e2.filter((t3, n3) => e2.indexOf(t3) === n3); + const n2 = Object.create(null); + return e2.filter((e3) => { + const i2 = t2(e3); + return !n2[i2] && (n2[i2] = true, true); + }); + } + function m(e2) { + const t2 = new Set(); + return e2.filter((e3) => !t2.has(e3) && (t2.add(e3), true)); + } + function g(e2, t2) { + for (let n2 = 0; n2 < e2.length; n2++) { + if (t2(e2[n2])) + return n2; + } + return -1; + } + function f(e2, t2, n2) { + const i2 = g(e2, t2); + return i2 < 0 ? n2 : e2[i2]; + } + function b(e2, t2) { + return e2.length > 0 ? e2[0] : t2; + } + function _(e2) { + return [].concat(...e2); + } + function v(e2, t2) { + let n2 = typeof t2 == "number" ? e2 : 0; + typeof t2 == "number" ? n2 = e2 : (n2 = 0, t2 = e2); + const i2 = []; + if (n2 <= t2) + for (let e3 = n2; e3 < t2; e3++) + i2.push(e3); + else + for (let e3 = n2; e3 > t2; e3--) + i2.push(e3); + return i2; + } + function w(e2, t2, n2) { + const i2 = e2.slice(0, t2), r2 = e2.slice(t2); + return i2.concat(n2, r2); + } + function y(e2, t2) { + const n2 = e2.indexOf(t2); + n2 > -1 && (e2.splice(n2, 1), e2.unshift(t2)); + } + function C(e2, t2) { + const n2 = e2.indexOf(t2); + n2 > -1 && (e2.splice(n2, 1), e2.push(t2)); + } + function x(e2) { + return Array.isArray(e2) ? e2 : [e2]; + } + n.d(t, "t", function() { + return i; + }), n.d(t, "u", function() { + return r; + }), n.d(t, "g", function() { + return o; + }), n.d(t, "c", function() { + return s; + }), n.d(t, "h", function() { + return a; + }), n.d(t, "p", function() { + return l; + }), n.d(t, "m", function() { + return c; + }), n.d(t, "d", function() { + return d; + }), n.d(t, "n", function() { + return h; + }), n.d(t, "o", function() { + return u; + }), n.d(t, "e", function() { + return p; + }), n.d(t, "f", function() { + return m; + }), n.d(t, "j", function() { + return g; + }), n.d(t, "i", function() { + return f; + }), n.d(t, "k", function() { + return b; + }), n.d(t, "l", function() { + return _; + }), n.d(t, "s", function() { + return v; + }), n.d(t, "a", function() { + return w; + }), n.d(t, "r", function() { + return y; + }), n.d(t, "q", function() { + return C; + }), n.d(t, "b", function() { + return x; + }); }, function(e, t, n) { "use strict"; n.d(t, "c", function() { @@ -3732,10 +3732,10 @@ }), n.d(t, "h", function() { return f; }); - var i = n(151), o = n(6); - const r = new class { + var i = n(151), r = n(6); + const o = new class { constructor() { - this._icons = new Map(), this._onDidRegister = new o.a(); + this._icons = new Map(), this._onDidRegister = new r.a(); } add(e2) { this._icons.has(e2.id) ? console.error("Duplicate registration of codicon " + e2.id) : (this._icons.set(e2.id, e2), this._onDidRegister.fire(e2)); @@ -3749,13 +3749,13 @@ get onDidRegister() { return this._onDidRegister.event; } - }(), s = r; + }(), s = o; function a(e2, t2, n2) { return new l(e2, t2); } class l { constructor(e2, t2, n2) { - this.id = e2, this.definition = t2, this.description = n2, r.add(this); + this.id = e2, this.definition = t2, this.description = n2, o.add(this); } get classNames() { return "codicon codicon-" + this.id; @@ -3777,7 +3777,7 @@ } const p = /(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi; function m(e2) { - return e2.replace(p, (e3, t2, n2, i2, o2) => t2 ? `$(${n2})` : ``); + return e2.replace(p, (e3, t2, n2, i2, r2) => t2 ? `$(${n2})` : ``); } const g = /(\s)?(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)(\s)?/gi; function f(e2) { @@ -3789,7 +3789,7 @@ n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }), n.d(t, "c", function() { return s; }), n.d(t, "d", function() { @@ -3799,9 +3799,9 @@ return t2[e2.DI_DEPENDENCIES] || []; }; }(i || (i = {})); - const o = s("instantiationService"); - function r(e2, t2, n2, o2) { - t2[i.DI_TARGET] === t2 ? t2[i.DI_DEPENDENCIES].push({id: e2, index: n2, optional: o2}) : (t2[i.DI_DEPENDENCIES] = [{id: e2, index: n2, optional: o2}], t2[i.DI_TARGET] = t2); + const r = s("instantiationService"); + function o(e2, t2, n2, r2) { + t2[i.DI_TARGET] === t2 ? t2[i.DI_DEPENDENCIES].push({id: e2, index: n2, optional: r2}) : (t2[i.DI_DEPENDENCIES] = [{id: e2, index: n2, optional: r2}], t2[i.DI_TARGET] = t2); } function s(e2) { if (i.serviceIds.has(e2)) @@ -3809,7 +3809,7 @@ const t2 = function(e3, n2, i2) { if (arguments.length !== 3) throw new Error("@IServiceName-decorator can only be used to decorate a parameter"); - r(t2, e3, i2, false); + o(t2, e3, i2, false); }; return t2.toString = () => e2, i.serviceIds.set(e2, t2), t2; } @@ -3817,7 +3817,7 @@ return function(t2, n2, i2) { if (arguments.length !== 3) throw new Error("@optional-decorator can only be used to decorate a parameter"); - r(e2, t2, i2, true); + o(e2, t2, i2, true); }; } }, function(e, t, n) { @@ -3839,7 +3839,7 @@ }), n.d(t, "d", function() { return g; }); - var i = n(18), o = n(2), r = n(56), s = n(6); + var i = n(18), r = n(2), o = n(56), s = n(6); const a = Object(i.c)("themeService"); function l(e2) { return {id: e2}; @@ -3854,16 +3854,16 @@ const n3 = t2.exec(e3); if (!n3) return; - let [, i2, o2] = n3; - return i2 || (i2 = "codicon/"), {id: i2 + o2}; + let [, i2, r2] = n3; + return i2 || (i2 = "codicon/"), {id: i2 + r2}; }; const n2 = /^(codicon\/)?([a-z-]+)(~[a-z]+)?$/i; e2.asClassName = function(e3) { const t3 = n2.exec(e3.id); if (!t3) return; - let [, , i2, o2] = t3, r2 = "codicon codicon-" + i2; - return o2 && (r2 += " " + o2.substr(1)), r2; + let [, , i2, r2] = t3, o2 = "codicon codicon-" + i2; + return r2 && (o2 += " " + r2.substr(1)), o2; }; }(c || (c = {})); const d = "hc"; @@ -3883,7 +3883,7 @@ this.themingParticipants = [], this.themingParticipants = [], this.onThemingParticipantAddedEmitter = new s.a(); } onColorThemeChange(e2) { - return this.themingParticipants.push(e2), this.onThemingParticipantAddedEmitter.fire(e2), Object(o.h)(() => { + return this.themingParticipants.push(e2), this.onThemingParticipantAddedEmitter.fire(e2), Object(r.h)(() => { const t2 = this.themingParticipants.indexOf(e2); this.themingParticipants.splice(t2, 1); }); @@ -3895,8 +3895,8 @@ function m(e2) { return p.onColorThemeChange(e2); } - r.a.add(u.ThemingContribution, p); - class g extends o.a { + o.a.add(u.ThemingContribution, p); + class g extends r.a { constructor(e2) { super(), this.themeService = e2, this.theme = e2.getColorTheme(), this._register(this.themeService.onDidColorThemeChange((e3) => this.onThemeChange(e3))); } @@ -3933,14 +3933,14 @@ }), n.d(t, "b", function() { return b; }); - var i = n(25), o = n(13), r = n(2); + var i = n(25), r = n(13), o = n(2); function s(e2) { return e2 && typeof e2.then == "function"; } function a(e2) { - const t2 = new i.b(), n2 = e2(t2.token), r2 = new Promise((e3, i2) => { + const t2 = new i.b(), n2 = e2(t2.token), o2 = new Promise((e3, i2) => { t2.token.onCancellationRequested(() => { - i2(o.a()); + i2(r.a()); }), Promise.resolve(n2).then((n3) => { t2.dispose(), e3(n3); }, (e4) => { @@ -3952,13 +3952,13 @@ t2.cancel(); } then(e3, t3) { - return r2.then(e3, t3); + return o2.then(e3, t3); } catch(e3) { return this.then(void 0, e3); } finally(e3) { - return r2.finally(e3); + return o2.finally(e3); } }(); } @@ -3985,7 +3985,7 @@ return this.timeout !== null; } cancel() { - this.cancelTimeout(), this.completionPromise && (this.doReject && this.doReject(o.a()), this.completionPromise = null); + this.cancelTimeout(), this.completionPromise && (this.doReject && this.doReject(r.a()), this.completionPromise = null); } cancelTimeout() { this.timeout !== null && (clearTimeout(this.timeout), this.timeout = null); @@ -3996,25 +3996,25 @@ } function d(e2, t2) { return t2 ? new Promise((n2, i2) => { - const r2 = setTimeout(n2, e2); + const o2 = setTimeout(n2, e2); t2.onCancellationRequested(() => { - clearTimeout(r2), i2(o.a()); + clearTimeout(o2), i2(r.a()); }); }) : a((t3) => d(e2, t3)); } function h(e2, t2 = 0) { const n2 = setTimeout(e2, t2); - return Object(r.h)(() => clearTimeout(n2)); + return Object(o.h)(() => clearTimeout(n2)); } function u(e2, t2 = (e3) => !!e3, n2 = null) { let i2 = 0; - const o2 = e2.length, r2 = () => { - if (i2 >= o2) + const r2 = e2.length, o2 = () => { + if (i2 >= r2) return Promise.resolve(n2); const s2 = e2[i2++]; - return Promise.resolve(s2()).then((e3) => t2(e3) ? Promise.resolve(e3) : r2()); + return Promise.resolve(s2()).then((e3) => t2(e3) ? Promise.resolve(e3) : o2()); }; - return r2(); + return o2(); } class p { constructor(e2, t2) { @@ -4120,10 +4120,10 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(9), o = n(3); - class r extends o.a { + var i = n(9), r = n(3); + class o extends r.a { constructor(e2, t2, n2, i2) { super(e2, t2, n2, i2), this.selectionStartLineNumber = e2, this.selectionStartColumn = t2, this.positionLineNumber = n2, this.positionColumn = i2; } @@ -4131,7 +4131,7 @@ return "[" + this.selectionStartLineNumber + "," + this.selectionStartColumn + " -> " + this.positionLineNumber + "," + this.positionColumn + "]"; } equalsSelection(e2) { - return r.selectionsEqual(this, e2); + return o.selectionsEqual(this, e2); } static selectionsEqual(e2, t2) { return e2.selectionStartLineNumber === t2.selectionStartLineNumber && e2.selectionStartColumn === t2.selectionStartColumn && e2.positionLineNumber === t2.positionLineNumber && e2.positionColumn === t2.positionColumn; @@ -4140,19 +4140,19 @@ return this.selectionStartLineNumber === this.startLineNumber && this.selectionStartColumn === this.startColumn ? 0 : 1; } setEndPosition(e2, t2) { - return this.getDirection() === 0 ? new r(this.startLineNumber, this.startColumn, e2, t2) : new r(e2, t2, this.startLineNumber, this.startColumn); + return this.getDirection() === 0 ? new o(this.startLineNumber, this.startColumn, e2, t2) : new o(e2, t2, this.startLineNumber, this.startColumn); } getPosition() { return new i.a(this.positionLineNumber, this.positionColumn); } setStartPosition(e2, t2) { - return this.getDirection() === 0 ? new r(e2, t2, this.endLineNumber, this.endColumn) : new r(this.endLineNumber, this.endColumn, e2, t2); + return this.getDirection() === 0 ? new o(e2, t2, this.endLineNumber, this.endColumn) : new o(this.endLineNumber, this.endColumn, e2, t2); } static fromPositions(e2, t2 = e2) { - return new r(e2.lineNumber, e2.column, t2.lineNumber, t2.column); + return new o(e2.lineNumber, e2.column, t2.lineNumber, t2.column); } static liftSelection(e2) { - return new r(e2.selectionStartLineNumber, e2.selectionStartColumn, e2.positionLineNumber, e2.positionColumn); + return new o(e2.selectionStartLineNumber, e2.selectionStartColumn, e2.positionLineNumber, e2.positionColumn); } static selectionsArrEqual(e2, t2) { if (e2 && !t2 || !e2 && t2) @@ -4169,8 +4169,8 @@ static isISelection(e2) { return e2 && typeof e2.selectionStartLineNumber == "number" && typeof e2.selectionStartColumn == "number" && typeof e2.positionLineNumber == "number" && typeof e2.positionColumn == "number"; } - static createWithDirection(e2, t2, n2, i2, o2) { - return o2 === 0 ? new r(e2, t2, n2, i2) : new r(n2, i2, e2, t2); + static createWithDirection(e2, t2, n2, i2, r2) { + return r2 === 0 ? new o(e2, t2, n2, i2) : new o(n2, i2, e2, t2); } } }, function(e, t, n) { @@ -4190,7 +4190,7 @@ }), n.d(t, "g", function() { return C; }); - var i = n(13), o = n(8), r = n(9), s = n(3), a = n(21), l = n(30), c = n(39); + var i = n(13), r = n(8), o = n(9), s = n(3), a = n(21), l = n(30), c = n(39); const d = () => true, h = () => false, u = (e2) => e2 === " " || e2 === " "; function p(e2, t2, n2) { e2.has(t2) ? e2.get(t2).push(n2) : e2.set(t2, [n2]); @@ -4198,11 +4198,11 @@ class m { constructor(e2, t2, n2) { this._languageIdentifier = e2; - const i2 = n2.options, o2 = i2.get(117); - this.readOnly = i2.get(72), this.tabSize = t2.tabSize, this.indentSize = t2.indentSize, this.insertSpaces = t2.insertSpaces, this.lineHeight = i2.get(51), this.pageSize = Math.max(1, Math.floor(o2.height / this.lineHeight) - 2), this.useTabStops = i2.get(104), this.wordSeparators = i2.get(105), this.emptySelectionClipboard = i2.get(26), this.copyWithSyntaxHighlighting = i2.get(16), this.multiCursorMergeOverlapping = i2.get(60), this.multiCursorPaste = i2.get(62), this.autoClosingBrackets = i2.get(5), this.autoClosingQuotes = i2.get(7), this.autoClosingOvertype = i2.get(6), this.autoSurround = i2.get(10), this.autoIndent = i2.get(8), this.autoClosingPairsOpen2 = new Map(), this.autoClosingPairsClose2 = new Map(), this.surroundingPairs = {}, this._electricChars = null, this.shouldAutoCloseBefore = {quote: m._getShouldAutoClose(e2, this.autoClosingQuotes), bracket: m._getShouldAutoClose(e2, this.autoClosingBrackets)}; - let r2 = m._getAutoClosingPairs(e2); - if (r2) - for (const e3 of r2) + const i2 = n2.options, r2 = i2.get(117); + this.readOnly = i2.get(72), this.tabSize = t2.tabSize, this.indentSize = t2.indentSize, this.insertSpaces = t2.insertSpaces, this.lineHeight = i2.get(51), this.pageSize = Math.max(1, Math.floor(r2.height / this.lineHeight) - 2), this.useTabStops = i2.get(104), this.wordSeparators = i2.get(105), this.emptySelectionClipboard = i2.get(26), this.copyWithSyntaxHighlighting = i2.get(16), this.multiCursorMergeOverlapping = i2.get(60), this.multiCursorPaste = i2.get(62), this.autoClosingBrackets = i2.get(5), this.autoClosingQuotes = i2.get(7), this.autoClosingOvertype = i2.get(6), this.autoSurround = i2.get(10), this.autoIndent = i2.get(8), this.autoClosingPairsOpen2 = new Map(), this.autoClosingPairsClose2 = new Map(), this.surroundingPairs = {}, this._electricChars = null, this.shouldAutoCloseBefore = {quote: m._getShouldAutoClose(e2, this.autoClosingQuotes), bracket: m._getShouldAutoClose(e2, this.autoClosingBrackets)}; + let o2 = m._getAutoClosingPairs(e2); + if (o2) + for (const e3 of o2) p(this.autoClosingPairsOpen2, e3.open.charAt(e3.open.length - 1), e3), e3.close.length === 1 && p(this.autoClosingPairsClose2, e3.close, e3); let s2 = m._getSurroundingPairs(e2); if (s2) @@ -4278,11 +4278,11 @@ return !this.selection.isEmpty() || !this.selectionStart.isEmpty(); } move(e2, t2, n2, i2) { - return e2 ? new g(this.selectionStart, this.selectionStartLeftoverVisibleColumns, new r.a(t2, n2), i2) : new g(new s.a(t2, n2, t2, n2), i2, new r.a(t2, n2), i2); + return e2 ? new g(this.selectionStart, this.selectionStartLeftoverVisibleColumns, new o.a(t2, n2), i2) : new g(new s.a(t2, n2, t2, n2), i2, new o.a(t2, n2), i2); } static _computeSelection(e2, t2) { - let n2, i2, o2, r2; - return e2.isEmpty() ? (n2 = e2.startLineNumber, i2 = e2.startColumn, o2 = t2.lineNumber, r2 = t2.column) : t2.isBeforeOrEqual(e2.getStartPosition()) ? (n2 = e2.endLineNumber, i2 = e2.endColumn, o2 = t2.lineNumber, r2 = t2.column) : (n2 = e2.startLineNumber, i2 = e2.startColumn, o2 = t2.lineNumber, r2 = t2.column), new a.a(n2, i2, o2, r2); + let n2, i2, r2, o2; + return e2.isEmpty() ? (n2 = e2.startLineNumber, i2 = e2.startColumn, r2 = t2.lineNumber, o2 = t2.column) : t2.isBeforeOrEqual(e2.getStartPosition()) ? (n2 = e2.endLineNumber, i2 = e2.endColumn, r2 = t2.lineNumber, o2 = t2.column) : (n2 = e2.startLineNumber, i2 = e2.startColumn, r2 = t2.lineNumber, o2 = t2.column), new a.a(n2, i2, r2, o2); } } class f { @@ -4311,7 +4311,7 @@ return new _(e2); } static fromModelSelection(e2) { - const t2 = e2.selectionStartLineNumber, n2 = e2.selectionStartColumn, i2 = e2.positionLineNumber, o2 = e2.positionColumn, a2 = new g(new s.a(t2, n2, t2, n2), 0, new r.a(i2, o2), 0); + const t2 = e2.selectionStartLineNumber, n2 = e2.selectionStartColumn, i2 = e2.positionLineNumber, r2 = e2.positionColumn, a2 = new g(new s.a(t2, n2, t2, n2), 0, new o.a(i2, r2), 0); return v.fromModelState(a2); } static fromModelSelections(e2) { @@ -4331,21 +4331,21 @@ } class y { static visibleColumnFromColumn(e2, t2, n2) { - const i2 = e2.length, r2 = t2 - 1 < i2 ? t2 - 1 : i2; + const i2 = e2.length, o2 = t2 - 1 < i2 ? t2 - 1 : i2; let s2 = 0, a2 = 0; - for (; a2 < r2; ) { - const t3 = o.A(e2, r2, a2); + for (; a2 < o2; ) { + const t3 = r.A(e2, o2, a2); if (a2 += t3 >= 65536 ? 2 : 1, t3 === 9) s2 = y.nextRenderTabStop(s2, n2); else { - let n3 = o.y(t3); - for (; a2 < r2; ) { - const t4 = o.A(e2, r2, a2), i3 = o.y(t4); - if (o.c(n3, i3)) + let n3 = r.y(t3); + for (; a2 < o2; ) { + const t4 = r.A(e2, o2, a2), i3 = r.y(t4); + if (r.c(n3, i3)) break; a2 += t4 >= 65536 ? 2 : 1, n3 = i3; } - o.E(t3) || o.C(t3) ? s2 += 2 : s2 += 1; + r.E(t3) || r.C(t3) ? s2 += 2 : s2 += 1; } } return s2; @@ -4357,36 +4357,36 @@ if (t2 <= 0) return 1; const i2 = e2.length; - let r2 = 0, s2 = 1, a2 = 0; + let o2 = 0, s2 = 1, a2 = 0; for (; a2 < i2; ) { - const l2 = o.A(e2, i2, a2); + const l2 = r.A(e2, i2, a2); let c2; if (a2 += l2 >= 65536 ? 2 : 1, l2 === 9) - c2 = y.nextRenderTabStop(r2, n2); + c2 = y.nextRenderTabStop(o2, n2); else { - let t3 = o.y(l2); + let t3 = r.y(l2); for (; a2 < i2; ) { - const n3 = o.A(e2, i2, a2), r3 = o.y(n3); - if (o.c(t3, r3)) + const n3 = r.A(e2, i2, a2), o3 = r.y(n3); + if (r.c(t3, o3)) break; - a2 += n3 >= 65536 ? 2 : 1, t3 = r3; + a2 += n3 >= 65536 ? 2 : 1, t3 = o3; } - c2 = o.E(l2) || o.C(l2) ? r2 + 2 : r2 + 1; + c2 = r.E(l2) || r.C(l2) ? o2 + 2 : o2 + 1; } const d2 = a2 + 1; if (c2 >= t2) { - return c2 - t2 < t2 - r2 ? d2 : s2; + return c2 - t2 < t2 - o2 ? d2 : s2; } - r2 = c2, s2 = d2; + o2 = c2, s2 = d2; } return i2 + 1; } static columnFromVisibleColumn2(e2, t2, n2, i2) { - let o2 = this.columnFromVisibleColumn(t2.getLineContent(n2), i2, e2.tabSize), r2 = t2.getLineMinColumn(n2); - if (o2 < r2) - return r2; + let r2 = this.columnFromVisibleColumn(t2.getLineContent(n2), i2, e2.tabSize), o2 = t2.getLineMinColumn(n2); + if (r2 < o2) + return o2; let s2 = t2.getLineMaxColumn(n2); - return o2 > s2 ? s2 : o2; + return r2 > s2 ? s2 : r2; } static nextRenderTabStop(e2, t2) { return e2 + t2 - e2 % t2; @@ -4411,11 +4411,11 @@ }), n.d(t, "b", function() { return f; }); - var i = n(11), o = n(42); - const r = /^\w[\w\d+.-]*$/, s = /^\//, a = /^\/\//; + var i = n(11), r = n(42); + const o = /^\w[\w\d+.-]*$/, s = /^\//, a = /^\/\//; const l = "/", c = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; class d { - constructor(e2, t2, n2, i2, o2, c2 = false) { + constructor(e2, t2, n2, i2, r2, c2 = false) { typeof e2 == "object" ? (this.scheme = e2.scheme || "", this.authority = e2.authority || "", this.path = e2.path || "", this.query = e2.query || "", this.fragment = e2.fragment || "") : (this.scheme = function(e3, t3) { return e3 || t3 ? e3 : "file"; }(e2, c2), this.authority = t2 || "", this.path = function(e3, t3) { @@ -4426,10 +4426,10 @@ t3 ? t3[0] !== l && (t3 = l + t3) : t3 = l; } return t3; - }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = o2 || "", function(e3, t3) { + }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = r2 || "", function(e3, t3) { if (!e3.scheme && t3) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e3.authority}", path: "${e3.path}", query: "${e3.query}", fragment: "${e3.fragment}"}`); - if (e3.scheme && !r.test(e3.scheme)) + if (e3.scheme && !o.test(e3.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); if (e3.path) { if (e3.authority) { @@ -4449,8 +4449,8 @@ with(e2) { if (!e2) return this; - let {scheme: t2, authority: n2, path: i2, query: o2, fragment: r2} = e2; - return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), o2 === void 0 ? o2 = this.query : o2 === null && (o2 = ""), r2 === void 0 ? r2 = this.fragment : r2 === null && (r2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && o2 === this.query && r2 === this.fragment ? this : new u(t2, n2, i2, o2, r2); + let {scheme: t2, authority: n2, path: i2, query: r2, fragment: o2} = e2; + return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), r2 === void 0 ? r2 = this.query : r2 === null && (r2 = ""), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && r2 === this.query && o2 === this.fragment ? this : new u(t2, n2, i2, r2, o2); } static parse(e2, t2 = false) { const n2 = c.exec(e2); @@ -4471,7 +4471,7 @@ if (!e2.path) throw new Error("[UriError]: cannot call joinPaths on URI without path"); let n2; - return n2 = i.i && e2.scheme === "file" ? d.file(o.i.join(f(e2, true), ...t2)).path : o.e.join(e2.path, ...t2), e2.with({path: n2}); + return n2 = i.i && e2.scheme === "file" ? d.file(r.i.join(f(e2, true), ...t2)).path : r.e.join(e2.path, ...t2), e2.with({path: n2}); } toString(e2 = false) { return b(this, e2); @@ -4510,14 +4510,14 @@ const p = {58: "%3A", 47: "%2F", 63: "%3F", 35: "%23", 91: "%5B", 93: "%5D", 64: "%40", 33: "%21", 36: "%24", 38: "%26", 39: "%27", 40: "%28", 41: "%29", 42: "%2A", 43: "%2B", 44: "%2C", 59: "%3B", 61: "%3D", 32: "%20"}; function m(e2, t2) { let n2 = void 0, i2 = -1; - for (let o2 = 0; o2 < e2.length; o2++) { - const r2 = e2.charCodeAt(o2); - if (r2 >= 97 && r2 <= 122 || r2 >= 65 && r2 <= 90 || r2 >= 48 && r2 <= 57 || r2 === 45 || r2 === 46 || r2 === 95 || r2 === 126 || t2 && r2 === 47) - i2 !== -1 && (n2 += encodeURIComponent(e2.substring(i2, o2)), i2 = -1), n2 !== void 0 && (n2 += e2.charAt(o2)); + for (let r2 = 0; r2 < e2.length; r2++) { + const o2 = e2.charCodeAt(r2); + if (o2 >= 97 && o2 <= 122 || o2 >= 65 && o2 <= 90 || o2 >= 48 && o2 <= 57 || o2 === 45 || o2 === 46 || o2 === 95 || o2 === 126 || t2 && o2 === 47) + i2 !== -1 && (n2 += encodeURIComponent(e2.substring(i2, r2)), i2 = -1), n2 !== void 0 && (n2 += e2.charAt(r2)); else { - n2 === void 0 && (n2 = e2.substr(0, o2)); - const t3 = p[r2]; - t3 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e2.substring(i2, o2)), i2 = -1), n2 += t3) : i2 === -1 && (i2 = o2); + n2 === void 0 && (n2 = e2.substr(0, r2)); + const t3 = p[o2]; + t3 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e2.substring(i2, r2)), i2 = -1), n2 += t3) : i2 === -1 && (i2 = r2); } } return i2 !== -1 && (n2 += encodeURIComponent(e2.substring(i2))), n2 !== void 0 ? n2 : e2; @@ -4536,14 +4536,14 @@ } function b(e2, t2) { const n2 = t2 ? g : m; - let i2 = "", {scheme: o2, authority: r2, path: s2, query: a2, fragment: c2} = e2; - if (o2 && (i2 += o2, i2 += ":"), (r2 || o2 === "file") && (i2 += l, i2 += l), r2) { - let e3 = r2.indexOf("@"); + let i2 = "", {scheme: r2, authority: o2, path: s2, query: a2, fragment: c2} = e2; + if (r2 && (i2 += r2, i2 += ":"), (o2 || r2 === "file") && (i2 += l, i2 += l), o2) { + let e3 = o2.indexOf("@"); if (e3 !== -1) { - const t3 = r2.substr(0, e3); - r2 = r2.substr(e3 + 1), e3 = t3.indexOf(":"), e3 === -1 ? i2 += n2(t3, false) : (i2 += n2(t3.substr(0, e3), false), i2 += ":", i2 += n2(t3.substr(e3 + 1), false)), i2 += "@"; + const t3 = o2.substr(0, e3); + o2 = o2.substr(e3 + 1), e3 = t3.indexOf(":"), e3 === -1 ? i2 += n2(t3, false) : (i2 += n2(t3.substr(0, e3), false), i2 += ":", i2 += n2(t3.substr(e3 + 1), false)), i2 += "@"; } - r2 = r2.toLowerCase(), e3 = r2.indexOf(":"), e3 === -1 ? i2 += n2(r2, false) : (i2 += n2(r2.substr(0, e3), false), i2 += r2.substr(e3)); + o2 = o2.toLowerCase(), e3 = o2.indexOf(":"), e3 === -1 ? i2 += n2(o2, false) : (i2 += n2(o2.substr(0, e3), false), i2 += o2.substr(e3)); } if (s2) { if (s2.length >= 3 && s2.charCodeAt(0) === 47 && s2.charCodeAt(2) === 58) { @@ -4582,14 +4582,14 @@ }), n.d(t, "c", function() { return v; }); - var i = n(60), o = n(18), r = n(10), s = n(27), a = n(2), l = n(6), c = n(37), d = n(53), h = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var i = n(60), r = n(18), o = n(10), s = n(27), a = n(2), l = n(6), c = n(37), d = n(53), h = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, u = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -4604,7 +4604,7 @@ } } m._idPool = 0, m.CommandPalette = new m("CommandPalette"), m.EditorContext = new m("EditorContext"), m.EditorContextPeek = new m("EditorContextPeek"), m.MenubarEditMenu = new m("MenubarEditMenu"), m.MenubarGoMenu = new m("MenubarGoMenu"), m.MenubarSelectionMenu = new m("MenubarSelectionMenu"); - const g = Object(o.c)("menuService"), f = new class { + const g = Object(r.c)("menuService"), f = new class { constructor() { this._commands = new Map(), this._menuItems = new Map(), this._onDidChangeMenu = new l.a(), this.onDidChangeMenu = this._onDidChangeMenu.event, this._commandPaletteChangeEvent = {has: (e2) => e2 === m.CommandPalette}; } @@ -4633,9 +4633,9 @@ } appendMenuItems(e2) { const t2 = new Set(), n2 = new d.a(); - for (const {id: i2, item: o2} of e2) { + for (const {id: i2, item: r2} of e2) { let e3 = this._menuItems.get(i2); - e3 || (e3 = new d.a(), this._menuItems.set(i2, e3)), n2.push(e3.push(o2)), t2.add(i2); + e3 || (e3 = new d.a(), this._menuItems.set(i2, e3)), n2.push(e3.push(r2)), t2.add(i2); } return this._onDidChangeMenu.fire(t2), Object(a.h)(() => { if (n2.size > 0) { @@ -4668,25 +4668,25 @@ }; b = h([u(2, s.b)], b); class _ extends i.d { - constructor(e2, t2, n2, o2) { + constructor(e2, t2, n2, r2) { super("submenuitem." + e2.submenu.id, typeof e2.title == "string" ? e2.title : e2.title.value, () => { - const r2 = [], s2 = t2.createMenu(e2.submenu, n2), a2 = s2.getActions(o2); + const o2 = [], s2 = t2.createMenu(e2.submenu, n2), a2 = s2.getActions(r2); s2.dispose(); for (let e3 of a2) { const [, t3] = e3; - t3.length > 0 && (r2.push(...t3), r2.push(new i.c())); + t3.length > 0 && (o2.push(...t3), o2.push(new i.c())); } - return r2.length && r2.pop(), r2; + return o2.length && o2.pop(), o2; }, "submenu"), this.item = e2; } } let v = class e2 extends b { - constructor(t2, n2, i2, o2, r2) { - if (typeof t2.title == "string" ? super(t2.id, t2.title, r2) : super(t2.id, t2.title.value, r2), this._cssClass = void 0, this._enabled = !t2.precondition || o2.contextMatchesRules(t2.precondition), this._tooltip = t2.tooltip ? typeof t2.tooltip == "string" ? t2.tooltip : t2.tooltip.value : void 0, t2.toggled) { + constructor(t2, n2, i2, r2, o2) { + if (typeof t2.title == "string" ? super(t2.id, t2.title, o2) : super(t2.id, t2.title.value, o2), this._cssClass = void 0, this._enabled = !t2.precondition || r2.contextMatchesRules(t2.precondition), this._tooltip = t2.tooltip ? typeof t2.tooltip == "string" ? t2.tooltip : t2.tooltip.value : void 0, t2.toggled) { const e3 = t2.toggled.condition ? t2.toggled : {condition: t2.toggled}; - this._checked = o2.contextMatchesRules(e3.condition), this._checked && e3.tooltip && (this._tooltip = typeof e3.tooltip == "string" ? e3.tooltip : e3.tooltip.value); + this._checked = r2.contextMatchesRules(e3.condition), this._checked && e3.tooltip && (this._tooltip = typeof e3.tooltip == "string" ? e3.tooltip : e3.tooltip.value); } - this._options = i2 || {}, this.item = t2, this.alt = n2 ? new e2(n2, void 0, this._options, o2, r2) : void 0; + this._options = i2 || {}, this.item = t2, this.alt = n2 ? new e2(n2, void 0, this._options, r2, o2) : void 0; } dispose() { this.alt && this.alt.dispose(), super.dispose(); @@ -4696,27 +4696,27 @@ return this._options.arg && (t2 = [...t2, this._options.arg]), this._options.shouldForwardArgs && (t2 = [...t2, ...e3]), super.run(...t2); } }; - v = h([u(3, r.b), u(4, s.b)], v); + v = h([u(3, o.b), u(4, s.b)], v); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }), n.d(t, "b", function() { return a; }); var i = n(6); - const o = Object.freeze(function(e2, t2) { + const r = Object.freeze(function(e2, t2) { const n2 = setTimeout(e2.bind(t2), 0); return {dispose() { clearTimeout(n2); }}; }); - var r; + var o; !function(e2) { e2.isCancellationToken = function(t2) { return t2 === e2.None || t2 === e2.Cancelled || (t2 instanceof s || !(!t2 || typeof t2 != "object") && (typeof t2.isCancellationRequested == "boolean" && typeof t2.onCancellationRequested == "function")); - }, e2.None = Object.freeze({isCancellationRequested: false, onCancellationRequested: i.b.None}), e2.Cancelled = Object.freeze({isCancellationRequested: true, onCancellationRequested: o}); - }(r || (r = {})); + }, e2.None = Object.freeze({isCancellationRequested: false, onCancellationRequested: i.b.None}), e2.Cancelled = Object.freeze({isCancellationRequested: true, onCancellationRequested: r}); + }(o || (o = {})); class s { constructor() { this._isCancelled = false, this._emitter = null; @@ -4728,7 +4728,7 @@ return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? o : (this._emitter || (this._emitter = new i.a()), this._emitter.event); + return this._isCancelled ? r : (this._emitter || (this._emitter = new i.a()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = null); @@ -4742,10 +4742,10 @@ return this._token || (this._token = new s()), this._token; } cancel() { - this._token ? this._token instanceof s && this._token.cancel() : this._token = r.Cancelled; + this._token ? this._token instanceof s && this._token.cancel() : this._token = o.Cancelled; } dispose(e2 = false) { - e2 && this.cancel(), this._parentListener && this._parentListener.dispose(), this._token ? this._token instanceof s && this._token.dispose() : this._token = r.None; + e2 && this.cancel(), this._parentListener && this._parentListener.dispose(), this._token ? this._token instanceof s && this._token.dispose() : this._token = o.None; } } }, function(e, t, n) { @@ -4775,7 +4775,7 @@ }), n.d(t, "g", function() { return N; }); - var i = n(0), o = n(11), r = n(73); + var i = n(0), r = n(11), o = n(73); const s = 8; class a { constructor(e2) { @@ -4843,22 +4843,22 @@ } } class m extends u { - constructor(e2, t2, n2, i2, o2, r2) { - r2 !== void 0 && (r2.type = "integer", r2.default = n2, r2.minimum = i2, r2.maximum = o2), super(e2, t2, n2, r2), this.minimum = i2, this.maximum = o2; + constructor(e2, t2, n2, i2, r2, o2) { + o2 !== void 0 && (o2.type = "integer", o2.default = n2, o2.minimum = i2, o2.maximum = r2), super(e2, t2, n2, o2), this.minimum = i2, this.maximum = r2; } static clampedInt(e2, t2, n2, i2) { if (e2 === void 0) return t2; - let o2 = parseInt(e2, 10); - return isNaN(o2) ? t2 : (o2 = Math.max(n2, o2), o2 = Math.min(i2, o2), 0 | o2); + let r2 = parseInt(e2, 10); + return isNaN(r2) ? t2 : (r2 = Math.max(n2, r2), r2 = Math.min(i2, r2), 0 | r2); } validate(e2) { return m.clampedInt(e2, this.defaultValue, this.minimum, this.maximum); } } class g extends u { - constructor(e2, t2, n2, i2, o2) { - o2 !== void 0 && (o2.type = "number", o2.default = n2), super(e2, t2, n2, o2), this.validationFn = i2; + constructor(e2, t2, n2, i2, r2) { + r2 !== void 0 && (r2.type = "number", r2.default = n2), super(e2, t2, n2, r2), this.validationFn = i2; } static clamp(e2, t2, n2) { return e2 < t2 ? t2 : e2 > n2 ? n2 : e2; @@ -4887,8 +4887,8 @@ } } class b extends u { - constructor(e2, t2, n2, i2, o2) { - o2 !== void 0 && (o2.type = "string", o2.enum = i2, o2.default = n2), super(e2, t2, n2, o2), this._allowedValues = i2; + constructor(e2, t2, n2, i2, r2) { + r2 !== void 0 && (r2.type = "string", r2.enum = i2, r2.default = n2), super(e2, t2, n2, r2), this._allowedValues = i2; } static stringSet(e2, t2, n2) { return typeof e2 != "string" || n2.indexOf(e2) === -1 ? t2 : e2; @@ -4898,8 +4898,8 @@ } } class _ extends d { - constructor(e2, t2, n2, i2, o2, r2, s2) { - s2 !== void 0 && (s2.type = "string", s2.enum = o2, s2.default = i2), super(e2, t2, n2, s2), this._allowedValues = o2, this._convert = r2; + constructor(e2, t2, n2, i2, r2, o2, s2) { + s2 !== void 0 && (s2.type = "string", s2.enum = r2, s2.default = i2), super(e2, t2, n2, s2), this._allowedValues = r2, this._convert = o2; } validate(e2) { return typeof e2 != "string" || this._allowedValues.indexOf(e2) === -1 ? this.defaultValue : this._convert(e2); @@ -4939,40 +4939,40 @@ return {typicalViewportLineCount: t2, extraLinesBeyondLastLine: n2, desiredRatio: i2, minimapLineCount: Math.floor(e2.viewLineCount / i2)}; } static _computeMinimapLayout(e2, t2) { - const n2 = e2.outerWidth, i2 = e2.outerHeight, o2 = e2.pixelRatio; + const n2 = e2.outerWidth, i2 = e2.outerHeight, r2 = e2.pixelRatio; if (!e2.minimap.enabled) - return {renderMinimap: 0, minimapLeft: 0, minimapWidth: 0, minimapHeightIsEditorHeight: false, minimapIsSampling: false, minimapScale: 1, minimapLineHeight: 1, minimapCanvasInnerWidth: 0, minimapCanvasInnerHeight: Math.floor(o2 * i2), minimapCanvasOuterWidth: 0, minimapCanvasOuterHeight: i2}; - const r2 = t2.stableMinimapLayoutInput, a2 = r2 && e2.outerHeight === r2.outerHeight && e2.lineHeight === r2.lineHeight && e2.typicalHalfwidthCharacterWidth === r2.typicalHalfwidthCharacterWidth && e2.pixelRatio === r2.pixelRatio && e2.scrollBeyondLastLine === r2.scrollBeyondLastLine && e2.minimap.enabled === r2.minimap.enabled && e2.minimap.side === r2.minimap.side && e2.minimap.size === r2.minimap.size && e2.minimap.showSlider === r2.minimap.showSlider && e2.minimap.renderCharacters === r2.minimap.renderCharacters && e2.minimap.maxColumn === r2.minimap.maxColumn && e2.minimap.scale === r2.minimap.scale && e2.verticalScrollbarWidth === r2.verticalScrollbarWidth && e2.isViewportWrapping === r2.isViewportWrapping, l2 = e2.lineHeight, c2 = e2.typicalHalfwidthCharacterWidth, d2 = e2.scrollBeyondLastLine, h2 = e2.minimap.renderCharacters; - let u2 = o2 >= 2 ? Math.round(2 * e2.minimap.scale) : e2.minimap.scale; + return {renderMinimap: 0, minimapLeft: 0, minimapWidth: 0, minimapHeightIsEditorHeight: false, minimapIsSampling: false, minimapScale: 1, minimapLineHeight: 1, minimapCanvasInnerWidth: 0, minimapCanvasInnerHeight: Math.floor(r2 * i2), minimapCanvasOuterWidth: 0, minimapCanvasOuterHeight: i2}; + const o2 = t2.stableMinimapLayoutInput, a2 = o2 && e2.outerHeight === o2.outerHeight && e2.lineHeight === o2.lineHeight && e2.typicalHalfwidthCharacterWidth === o2.typicalHalfwidthCharacterWidth && e2.pixelRatio === o2.pixelRatio && e2.scrollBeyondLastLine === o2.scrollBeyondLastLine && e2.minimap.enabled === o2.minimap.enabled && e2.minimap.side === o2.minimap.side && e2.minimap.size === o2.minimap.size && e2.minimap.showSlider === o2.minimap.showSlider && e2.minimap.renderCharacters === o2.minimap.renderCharacters && e2.minimap.maxColumn === o2.minimap.maxColumn && e2.minimap.scale === o2.minimap.scale && e2.verticalScrollbarWidth === o2.verticalScrollbarWidth && e2.isViewportWrapping === o2.isViewportWrapping, l2 = e2.lineHeight, c2 = e2.typicalHalfwidthCharacterWidth, d2 = e2.scrollBeyondLastLine, h2 = e2.minimap.renderCharacters; + let u2 = r2 >= 2 ? Math.round(2 * e2.minimap.scale) : e2.minimap.scale; const p2 = e2.minimap.maxColumn, m2 = e2.minimap.size, g2 = e2.minimap.side, f2 = e2.verticalScrollbarWidth, b2 = e2.viewLineCount, _2 = e2.remainingWidth, v2 = e2.isViewportWrapping, w2 = h2 ? 2 : 3; - let y2 = Math.floor(o2 * i2); - const x2 = y2 / o2; - let S2 = false, k2 = false, E2 = w2 * u2, T2 = u2 / o2, L2 = 1; + let y2 = Math.floor(r2 * i2); + const x2 = y2 / r2; + let S2 = false, k2 = false, E2 = w2 * u2, T2 = u2 / r2, L2 = 1; if (m2 === "fill" || m2 === "fit") { - const {typicalViewportLineCount: n3, extraLinesBeyondLastLine: r3, desiredRatio: s2, minimapLineCount: c3} = C.computeContainedMinimapLineCount({viewLineCount: b2, scrollBeyondLastLine: d2, height: i2, lineHeight: l2, pixelRatio: o2}); + const {typicalViewportLineCount: n3, extraLinesBeyondLastLine: o3, desiredRatio: s2, minimapLineCount: c3} = C.computeContainedMinimapLineCount({viewLineCount: b2, scrollBeyondLastLine: d2, height: i2, lineHeight: l2, pixelRatio: r2}); if (b2 / c3 > 1) - S2 = true, k2 = true, u2 = 1, E2 = 1, T2 = u2 / o2; + S2 = true, k2 = true, u2 = 1, E2 = 1, T2 = u2 / r2; else { let i3 = false, c4 = u2 + 1; if (m2 === "fit") { - const n4 = Math.ceil((b2 + r3) * E2); + const n4 = Math.ceil((b2 + o3) * E2); v2 && a2 && _2 <= t2.stableFitRemainingWidth ? (i3 = true, c4 = t2.stableFitMaxMinimapScale) : (i3 = n4 > y2, v2 && i3 ? (t2.stableMinimapLayoutInput = e2, t2.stableFitRemainingWidth = _2) : (t2.stableMinimapLayoutInput = null, t2.stableFitRemainingWidth = 0)); } if (m2 === "fill" || i3) { S2 = true; const e3 = u2; - E2 = Math.min(l2 * o2, Math.max(1, Math.floor(1 / s2))), u2 = Math.min(c4, Math.max(1, Math.floor(E2 / w2))), u2 > e3 && (L2 = Math.min(2, u2 / e3)), T2 = u2 / o2 / L2, y2 = Math.ceil(Math.max(n3, b2 + r3) * E2), v2 && i3 && (t2.stableFitMaxMinimapScale = u2); + E2 = Math.min(l2 * r2, Math.max(1, Math.floor(1 / s2))), u2 = Math.min(c4, Math.max(1, Math.floor(E2 / w2))), u2 > e3 && (L2 = Math.min(2, u2 / e3)), T2 = u2 / r2 / L2, y2 = Math.ceil(Math.max(n3, b2 + o3) * E2), v2 && i3 && (t2.stableFitMaxMinimapScale = u2); } } } const N2 = Math.floor(p2 * T2), I = Math.min(N2, Math.max(0, Math.floor((_2 - f2 - 2) * T2 / (c2 + T2))) + s); - let O = Math.floor(o2 * I); - const D = O / o2; - O = Math.floor(O * L2); - return {renderMinimap: h2 ? 1 : 2, minimapLeft: g2 === "left" ? 0 : n2 - I - f2, minimapWidth: I, minimapHeightIsEditorHeight: S2, minimapIsSampling: k2, minimapScale: u2, minimapLineHeight: E2, minimapCanvasInnerWidth: O, minimapCanvasInnerHeight: y2, minimapCanvasOuterWidth: D, minimapCanvasOuterHeight: x2}; + let D = Math.floor(r2 * I); + const O = D / r2; + D = Math.floor(D * L2); + return {renderMinimap: h2 ? 1 : 2, minimapLeft: g2 === "left" ? 0 : n2 - I - f2, minimapWidth: I, minimapHeightIsEditorHeight: S2, minimapIsSampling: k2, minimapScale: u2, minimapLineHeight: E2, minimapCanvasInnerWidth: D, minimapCanvasInnerHeight: y2, minimapCanvasOuterWidth: O, minimapCanvasOuterHeight: x2}; } static computeLayout(e2, t2) { - const n2 = 0 | t2.outerWidth, i2 = 0 | t2.outerHeight, o2 = 0 | t2.lineHeight, r2 = 0 | t2.lineNumbersDigitCount, s2 = t2.typicalHalfwidthCharacterWidth, a2 = t2.maxDigitWidth, l2 = t2.pixelRatio, d2 = t2.viewLineCount, h2 = e2.get(106), u2 = e2.get(109), p2 = e2.get(110), g2 = e2.get(2), f2 = t2.isDominatedByLongLines, b2 = e2.get(42), _2 = e2.get(52).renderType !== 0, v2 = e2.get(53), w2 = e2.get(86), y2 = e2.get(56), x2 = e2.get(84), S2 = x2.verticalScrollbarSize, k2 = x2.verticalHasArrows, E2 = x2.arrowSize, T2 = x2.horizontalScrollbarSize, L2 = e2.get(50), N2 = e2.get(31); + const n2 = 0 | t2.outerWidth, i2 = 0 | t2.outerHeight, r2 = 0 | t2.lineHeight, o2 = 0 | t2.lineNumbersDigitCount, s2 = t2.typicalHalfwidthCharacterWidth, a2 = t2.maxDigitWidth, l2 = t2.pixelRatio, d2 = t2.viewLineCount, h2 = e2.get(106), u2 = e2.get(109), p2 = e2.get(110), g2 = e2.get(2), f2 = t2.isDominatedByLongLines, b2 = e2.get(42), _2 = e2.get(52).renderType !== 0, v2 = e2.get(53), w2 = e2.get(86), y2 = e2.get(56), x2 = e2.get(84), S2 = x2.verticalScrollbarSize, k2 = x2.verticalHasArrows, E2 = x2.arrowSize, T2 = x2.horizontalScrollbarSize, L2 = e2.get(50), N2 = e2.get(31); let I; if (typeof L2 == "string" && /^\d+(\.\d+)?ch$/.test(L2)) { const e3 = parseFloat(L2.substr(0, L2.length - 2)); @@ -4980,21 +4980,21 @@ } else I = m.clampedInt(L2, 0, 0, 1e3); N2 && (I += 16); - let O = 0; + let D = 0; if (_2) { - const e3 = Math.max(r2, v2); - O = Math.round(e3 * a2); + const e3 = Math.max(o2, v2); + D = Math.round(e3 * a2); } - let D = 0; - b2 && (D = o2); - let A = 0, R = A + D, M = R + O, P = M + I; - const F = n2 - D - O - I; + let O = 0; + b2 && (O = r2); + let A = 0, R = A + O, M = R + D, P = M + I; + const F = n2 - O - D - I; let W = false, z = false, B = -1; g2 !== 2 && (p2 && f2 ? (W = true, z = true) : h2 === "on" || h2 === "bounded" ? z = true : h2 === "wordWrapColumn" && (B = u2)); - const j = C._computeMinimapLayout({outerWidth: n2, outerHeight: i2, lineHeight: o2, typicalHalfwidthCharacterWidth: s2, pixelRatio: l2, scrollBeyondLastLine: w2, minimap: y2, verticalScrollbarWidth: S2, viewLineCount: d2, remainingWidth: F, isViewportWrapping: z}, t2.memory || new c()); + const j = C._computeMinimapLayout({outerWidth: n2, outerHeight: i2, lineHeight: r2, typicalHalfwidthCharacterWidth: s2, pixelRatio: l2, scrollBeyondLastLine: w2, minimap: y2, verticalScrollbarWidth: S2, viewLineCount: d2, remainingWidth: F, isViewportWrapping: z}, t2.memory || new c()); j.renderMinimap !== 0 && j.minimapLeft === 0 && (A += j.minimapWidth, R += j.minimapWidth, M += j.minimapWidth, P += j.minimapWidth); const V = F - j.minimapWidth, U = Math.max(1, Math.floor((V - S2 - 2) / s2)), H = k2 ? E2 : 0; - return z && (B = Math.max(1, U), h2 === "bounded" && (B = Math.min(B, u2))), {width: n2, height: i2, glyphMarginLeft: A, glyphMarginWidth: D, lineNumbersLeft: R, lineNumbersWidth: O, decorationsLeft: M, decorationsWidth: I, contentLeft: P, contentWidth: V, minimap: j, viewportColumn: U, isWordWrapMinified: W, isViewportWrapping: z, wrappingColumn: B, verticalScrollbarWidth: S2, horizontalScrollbarHeight: T2, overviewRuler: {top: H, width: S2, height: i2 - 2 * H, right: 0}}; + return z && (B = Math.max(1, U), h2 === "bounded" && (B = Math.min(B, u2))), {width: n2, height: i2, glyphMarginLeft: A, glyphMarginWidth: O, lineNumbersLeft: R, lineNumbersWidth: D, decorationsLeft: M, decorationsWidth: I, contentLeft: P, contentWidth: V, minimap: j, viewportColumn: U, isWordWrapMinified: W, isViewportWrapping: z, wrappingColumn: B, verticalScrollbarWidth: S2, horizontalScrollbarHeight: T2, overviewRuler: {top: H, width: S2, height: i2 - 2 * H, right: 0}}; } } function x(e2) { @@ -5013,7 +5013,7 @@ return 1; } } - const k = {fontFamily: o.f ? "Menlo, Monaco, 'Courier New', monospace" : o.d ? "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'" : "Consolas, 'Courier New', monospace", fontWeight: "normal", fontSize: o.f ? 12 : 14, lineHeight: 0, letterSpacing: 0}, E = {tabSize: 4, indentSize: 4, insertSpaces: true, detectIndentation: true, trimAutoWhitespace: true, largeFileOptimizations: true}, T = []; + const k = {fontFamily: r.f ? "Menlo, Monaco, 'Courier New', monospace" : r.d ? "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'" : "Consolas, 'Courier New', monospace", fontWeight: "normal", fontSize: r.f ? 12 : 14, lineHeight: 0, letterSpacing: 0}, E = {tabSize: 4, indentSize: 4, insertSpaces: true, detectIndentation: true, trimAutoWhitespace: true, largeFileOptimizations: true}, T = []; function L(e2) { return T[e2.id] = e2, e2; } @@ -5097,7 +5097,7 @@ }()), extraEditorClassName: L(new f(27, "extraEditorClassName", "")), fastScrollSensitivity: L(new g(28, "fastScrollSensitivity", 5, (e2) => e2 <= 0 ? 5 : e2, {markdownDescription: i.a("fastScrollSensitivity", "Scrolling speed multiplier when pressing `Alt`.")})), find: L(new class extends d { constructor() { const e2 = {cursorMoveOnType: true, seedSearchStringFromSelection: true, autoFindInSelection: "never", globalFindClipboard: false, addExtraSpaceOnTop: true, loop: true}; - super(29, "find", e2, {"editor.find.cursorMoveOnType": {type: "boolean", default: e2.cursorMoveOnType, description: i.a("find.cursorMoveOnType", "Controls whether the cursor should jump to find matches while typing.")}, "editor.find.seedSearchStringFromSelection": {type: "boolean", default: e2.seedSearchStringFromSelection, description: i.a("find.seedSearchStringFromSelection", "Controls whether the search string in the Find Widget is seeded from the editor selection.")}, "editor.find.autoFindInSelection": {type: "string", enum: ["never", "always", "multiline"], default: e2.autoFindInSelection, enumDescriptions: [i.a("editor.find.autoFindInSelection.never", "Never turn on Find in selection automatically (default)"), i.a("editor.find.autoFindInSelection.always", "Always turn on Find in selection automatically"), i.a("editor.find.autoFindInSelection.multiline", "Turn on Find in selection automatically when multiple lines of content are selected.")], description: i.a("find.autoFindInSelection", "Controls the condition for turning on find in selection automatically.")}, "editor.find.globalFindClipboard": {type: "boolean", default: e2.globalFindClipboard, description: i.a("find.globalFindClipboard", "Controls whether the Find Widget should read or modify the shared find clipboard on macOS."), included: o.f}, "editor.find.addExtraSpaceOnTop": {type: "boolean", default: e2.addExtraSpaceOnTop, description: i.a("find.addExtraSpaceOnTop", "Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}, "editor.find.loop": {type: "boolean", default: e2.loop, description: i.a("find.loop", "Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}}); + super(29, "find", e2, {"editor.find.cursorMoveOnType": {type: "boolean", default: e2.cursorMoveOnType, description: i.a("find.cursorMoveOnType", "Controls whether the cursor should jump to find matches while typing.")}, "editor.find.seedSearchStringFromSelection": {type: "boolean", default: e2.seedSearchStringFromSelection, description: i.a("find.seedSearchStringFromSelection", "Controls whether the search string in the Find Widget is seeded from the editor selection.")}, "editor.find.autoFindInSelection": {type: "string", enum: ["never", "always", "multiline"], default: e2.autoFindInSelection, enumDescriptions: [i.a("editor.find.autoFindInSelection.never", "Never turn on Find in selection automatically (default)"), i.a("editor.find.autoFindInSelection.always", "Always turn on Find in selection automatically"), i.a("editor.find.autoFindInSelection.multiline", "Turn on Find in selection automatically when multiple lines of content are selected.")], description: i.a("find.autoFindInSelection", "Controls the condition for turning on find in selection automatically.")}, "editor.find.globalFindClipboard": {type: "boolean", default: e2.globalFindClipboard, description: i.a("find.globalFindClipboard", "Controls whether the Find Widget should read or modify the shared find clipboard on macOS."), included: r.f}, "editor.find.addExtraSpaceOnTop": {type: "boolean", default: e2.addExtraSpaceOnTop, description: i.a("find.addExtraSpaceOnTop", "Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}, "editor.find.loop": {type: "boolean", default: e2.loop, description: i.a("find.loop", "Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}}); } validate(e2) { if (!e2 || typeof e2 != "object") @@ -5129,11 +5129,11 @@ super(43, "gotoLocation", e2, {"editor.gotoLocation.multiple": {deprecationMessage: i.a("editor.gotoLocation.multiple.deprecated", "This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")}, "editor.gotoLocation.multipleDefinitions": Object.assign({description: i.a("editor.editor.gotoLocation.multipleDefinitions", "Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")}, t2), "editor.gotoLocation.multipleTypeDefinitions": Object.assign({description: i.a("editor.editor.gotoLocation.multipleTypeDefinitions", "Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")}, t2), "editor.gotoLocation.multipleDeclarations": Object.assign({description: i.a("editor.editor.gotoLocation.multipleDeclarations", "Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")}, t2), "editor.gotoLocation.multipleImplementations": Object.assign({description: i.a("editor.editor.gotoLocation.multipleImplemenattions", "Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")}, t2), "editor.gotoLocation.multipleReferences": Object.assign({description: i.a("editor.editor.gotoLocation.multipleReferences", "Controls the behavior the 'Go to References'-command when multiple target locations exist.")}, t2), "editor.gotoLocation.alternativeDefinitionCommand": {type: "string", default: e2.alternativeDefinitionCommand, description: i.a("alternativeDefinitionCommand", "Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")}, "editor.gotoLocation.alternativeTypeDefinitionCommand": {type: "string", default: e2.alternativeTypeDefinitionCommand, description: i.a("alternativeTypeDefinitionCommand", "Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")}, "editor.gotoLocation.alternativeDeclarationCommand": {type: "string", default: e2.alternativeDeclarationCommand, description: i.a("alternativeDeclarationCommand", "Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")}, "editor.gotoLocation.alternativeImplementationCommand": {type: "string", default: e2.alternativeImplementationCommand, description: i.a("alternativeImplementationCommand", "Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")}, "editor.gotoLocation.alternativeReferenceCommand": {type: "string", default: e2.alternativeReferenceCommand, description: i.a("alternativeReferenceCommand", "Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}}); } validate(e2) { - var t2, n2, i2, o2, r2; + var t2, n2, i2, r2, o2; if (!e2 || typeof e2 != "object") return this.defaultValue; const s2 = e2; - return {multiple: b.stringSet(s2.multiple, this.defaultValue.multiple, ["peek", "gotoAndPeek", "goto"]), multipleDefinitions: (t2 = s2.multipleDefinitions) !== null && t2 !== void 0 ? t2 : b.stringSet(s2.multipleDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]), multipleTypeDefinitions: (n2 = s2.multipleTypeDefinitions) !== null && n2 !== void 0 ? n2 : b.stringSet(s2.multipleTypeDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]), multipleDeclarations: (i2 = s2.multipleDeclarations) !== null && i2 !== void 0 ? i2 : b.stringSet(s2.multipleDeclarations, "peek", ["peek", "gotoAndPeek", "goto"]), multipleImplementations: (o2 = s2.multipleImplementations) !== null && o2 !== void 0 ? o2 : b.stringSet(s2.multipleImplementations, "peek", ["peek", "gotoAndPeek", "goto"]), multipleReferences: (r2 = s2.multipleReferences) !== null && r2 !== void 0 ? r2 : b.stringSet(s2.multipleReferences, "peek", ["peek", "gotoAndPeek", "goto"]), alternativeDefinitionCommand: f.string(s2.alternativeDefinitionCommand, this.defaultValue.alternativeDefinitionCommand), alternativeTypeDefinitionCommand: f.string(s2.alternativeTypeDefinitionCommand, this.defaultValue.alternativeTypeDefinitionCommand), alternativeDeclarationCommand: f.string(s2.alternativeDeclarationCommand, this.defaultValue.alternativeDeclarationCommand), alternativeImplementationCommand: f.string(s2.alternativeImplementationCommand, this.defaultValue.alternativeImplementationCommand), alternativeReferenceCommand: f.string(s2.alternativeReferenceCommand, this.defaultValue.alternativeReferenceCommand)}; + return {multiple: b.stringSet(s2.multiple, this.defaultValue.multiple, ["peek", "gotoAndPeek", "goto"]), multipleDefinitions: (t2 = s2.multipleDefinitions) !== null && t2 !== void 0 ? t2 : b.stringSet(s2.multipleDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]), multipleTypeDefinitions: (n2 = s2.multipleTypeDefinitions) !== null && n2 !== void 0 ? n2 : b.stringSet(s2.multipleTypeDefinitions, "peek", ["peek", "gotoAndPeek", "goto"]), multipleDeclarations: (i2 = s2.multipleDeclarations) !== null && i2 !== void 0 ? i2 : b.stringSet(s2.multipleDeclarations, "peek", ["peek", "gotoAndPeek", "goto"]), multipleImplementations: (r2 = s2.multipleImplementations) !== null && r2 !== void 0 ? r2 : b.stringSet(s2.multipleImplementations, "peek", ["peek", "gotoAndPeek", "goto"]), multipleReferences: (o2 = s2.multipleReferences) !== null && o2 !== void 0 ? o2 : b.stringSet(s2.multipleReferences, "peek", ["peek", "gotoAndPeek", "goto"]), alternativeDefinitionCommand: f.string(s2.alternativeDefinitionCommand, this.defaultValue.alternativeDefinitionCommand), alternativeTypeDefinitionCommand: f.string(s2.alternativeTypeDefinitionCommand, this.defaultValue.alternativeTypeDefinitionCommand), alternativeDeclarationCommand: f.string(s2.alternativeDeclarationCommand, this.defaultValue.alternativeDeclarationCommand), alternativeImplementationCommand: f.string(s2.alternativeImplementationCommand, this.defaultValue.alternativeImplementationCommand), alternativeReferenceCommand: f.string(s2.alternativeReferenceCommand, this.defaultValue.alternativeReferenceCommand)}; } }()), hideCursorInOverviewRuler: L(new p(44, "hideCursorInOverviewRuler", false, {description: i.a("hideCursorInOverviewRuler", "Controls whether the cursor should be hidden in the overview ruler.")})), highlightActiveIndentGuide: L(new p(45, "highlightActiveIndentGuide", true, {description: i.a("highlightActiveIndentGuide", "Controls whether the editor should highlight the active indent guide.")})), hover: L(new class extends d { constructor() { @@ -5184,7 +5184,7 @@ return {enabled: p.boolean(t2.enabled, this.defaultValue.enabled), size: b.stringSet(t2.size, this.defaultValue.size, ["proportional", "fill", "fit"]), side: b.stringSet(t2.side, this.defaultValue.side, ["right", "left"]), showSlider: b.stringSet(t2.showSlider, this.defaultValue.showSlider, ["always", "mouseover"]), renderCharacters: p.boolean(t2.renderCharacters, this.defaultValue.renderCharacters), scale: m.clampedInt(t2.scale, 1, 1, 3), maxColumn: m.clampedInt(t2.maxColumn, this.defaultValue.maxColumn, 1, 1e4)}; } }()), mouseStyle: L(new b(57, "mouseStyle", "text", ["text", "default", "copy"])), mouseWheelScrollSensitivity: L(new g(58, "mouseWheelScrollSensitivity", 1, (e2) => e2 === 0 ? 1 : e2, {markdownDescription: i.a("mouseWheelScrollSensitivity", "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})), mouseWheelZoom: L(new p(59, "mouseWheelZoom", false, {markdownDescription: i.a("mouseWheelZoom", "Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})), multiCursorMergeOverlapping: L(new p(60, "multiCursorMergeOverlapping", true, {description: i.a("multiCursorMergeOverlapping", "Merge multiple cursors when they are overlapping.")})), multiCursorModifier: L(new _(61, "multiCursorModifier", "altKey", "alt", ["ctrlCmd", "alt"], function(e2) { - return e2 === "ctrlCmd" ? o.f ? "metaKey" : "ctrlKey" : "altKey"; + return e2 === "ctrlCmd" ? r.f ? "metaKey" : "ctrlKey" : "altKey"; }, {markdownEnumDescriptions: [i.a("multiCursorModifier.ctrlCmd", "Maps to `Control` on Windows and Linux and to `Command` on macOS."), i.a("multiCursorModifier.alt", "Maps to `Alt` on Windows and Linux and to `Option` on macOS.")], markdownDescription: i.a({key: "multiCursorModifier", comment: ["- `ctrlCmd` refers to a value the setting can take and should not be localized.", "- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]}, "The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})), multiCursorPaste: L(new b(62, "multiCursorPaste", "spread", ["spread", "full"], {markdownEnumDescriptions: [i.a("multiCursorPaste.spread", "Each cursor pastes a single line of the text."), i.a("multiCursorPaste.full", "Each cursor pastes the full text.")], markdownDescription: i.a("multiCursorPaste", "Controls pasting when the line count of the pasted text matches the cursor count.")})), occurrencesHighlight: L(new p(63, "occurrencesHighlight", true, {description: i.a("occurrencesHighlight", "Controls whether the editor should highlight semantic symbol occurrences.")})), overviewRulerBorder: L(new p(64, "overviewRulerBorder", true, {description: i.a("overviewRulerBorder", "Controls whether a border should be drawn around the overview ruler.")})), overviewRulerLanes: L(new m(65, "overviewRulerLanes", 3, 0, 3)), padding: L(new class extends d { constructor() { super(66, "padding", {top: 0, bottom: 0}, {"editor.padding.top": {type: "number", default: 0, minimum: 0, maximum: 1e3, description: i.a("padding.top", "Controls the amount of space between the top edge of the editor and the first line.")}, "editor.padding.bottom": {type: "number", default: 0, minimum: 0, maximum: 1e3, description: i.a("padding.bottom", "Controls the amount of space between the bottom edge of the editor and the last line.")}}); @@ -5249,7 +5249,7 @@ const t2 = e2, n2 = m.clampedInt(t2.horizontalScrollbarSize, this.defaultValue.horizontalScrollbarSize, 0, 1e3), i2 = m.clampedInt(t2.verticalScrollbarSize, this.defaultValue.verticalScrollbarSize, 0, 1e3); return {arrowSize: m.clampedInt(t2.arrowSize, this.defaultValue.arrowSize, 0, 1e3), vertical: S(t2.vertical, this.defaultValue.vertical), horizontal: S(t2.horizontal, this.defaultValue.horizontal), useShadows: p.boolean(t2.useShadows, this.defaultValue.useShadows), verticalHasArrows: p.boolean(t2.verticalHasArrows, this.defaultValue.verticalHasArrows), horizontalHasArrows: p.boolean(t2.horizontalHasArrows, this.defaultValue.horizontalHasArrows), handleMouseWheel: p.boolean(t2.handleMouseWheel, this.defaultValue.handleMouseWheel), alwaysConsumeMouseWheel: p.boolean(t2.alwaysConsumeMouseWheel, this.defaultValue.alwaysConsumeMouseWheel), horizontalScrollbarSize: n2, horizontalSliderSize: m.clampedInt(t2.horizontalSliderSize, n2, 0, 1e3), verticalScrollbarSize: i2, verticalSliderSize: m.clampedInt(t2.verticalSliderSize, i2, 0, 1e3)}; } - }()), scrollBeyondLastColumn: L(new m(85, "scrollBeyondLastColumn", 5, 0, 1073741824, {description: i.a("scrollBeyondLastColumn", "Controls the number of extra characters beyond which the editor will scroll horizontally.")})), scrollBeyondLastLine: L(new p(86, "scrollBeyondLastLine", true, {description: i.a("scrollBeyondLastLine", "Controls whether the editor will scroll beyond the last line.")})), scrollPredominantAxis: L(new p(87, "scrollPredominantAxis", true, {description: i.a("scrollPredominantAxis", "Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})), selectionClipboard: L(new p(88, "selectionClipboard", true, {description: i.a("selectionClipboard", "Controls whether the Linux primary clipboard should be supported."), included: o.d})), selectionHighlight: L(new p(89, "selectionHighlight", true, {description: i.a("selectionHighlight", "Controls whether the editor should highlight matches similar to the selection.")})), selectOnLineNumbers: L(new p(90, "selectOnLineNumbers", true)), showFoldingControls: L(new b(91, "showFoldingControls", "mouseover", ["always", "mouseover"], {enumDescriptions: [i.a("showFoldingControls.always", "Always show the folding controls."), i.a("showFoldingControls.mouseover", "Only show the folding controls when the mouse is over the gutter.")], description: i.a("showFoldingControls", "Controls when the folding controls on the gutter are shown.")})), showUnused: L(new p(92, "showUnused", true, {description: i.a("showUnused", "Controls fading out of unused code.")})), showDeprecated: L(new p(113, "showDeprecated", true, {description: i.a("showDeprecated", "Controls strikethrough deprecated variables.")})), snippetSuggestions: L(new b(93, "snippetSuggestions", "inline", ["top", "bottom", "inline", "none"], {enumDescriptions: [i.a("snippetSuggestions.top", "Show snippet suggestions on top of other suggestions."), i.a("snippetSuggestions.bottom", "Show snippet suggestions below other suggestions."), i.a("snippetSuggestions.inline", "Show snippets suggestions with other suggestions."), i.a("snippetSuggestions.none", "Do not show snippet suggestions.")], description: i.a("snippetSuggestions", "Controls whether snippets are shown with other suggestions and how they are sorted.")})), smoothScrolling: L(new p(94, "smoothScrolling", false, {description: i.a("smoothScrolling", "Controls whether the editor will scroll using an animation.")})), stopRenderingLineAfter: L(new m(95, "stopRenderingLineAfter", 1e4, -1, 1073741824)), suggest: L(new class extends d { + }()), scrollBeyondLastColumn: L(new m(85, "scrollBeyondLastColumn", 5, 0, 1073741824, {description: i.a("scrollBeyondLastColumn", "Controls the number of extra characters beyond which the editor will scroll horizontally.")})), scrollBeyondLastLine: L(new p(86, "scrollBeyondLastLine", true, {description: i.a("scrollBeyondLastLine", "Controls whether the editor will scroll beyond the last line.")})), scrollPredominantAxis: L(new p(87, "scrollPredominantAxis", true, {description: i.a("scrollPredominantAxis", "Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})), selectionClipboard: L(new p(88, "selectionClipboard", true, {description: i.a("selectionClipboard", "Controls whether the Linux primary clipboard should be supported."), included: r.d})), selectionHighlight: L(new p(89, "selectionHighlight", true, {description: i.a("selectionHighlight", "Controls whether the editor should highlight matches similar to the selection.")})), selectOnLineNumbers: L(new p(90, "selectOnLineNumbers", true)), showFoldingControls: L(new b(91, "showFoldingControls", "mouseover", ["always", "mouseover"], {enumDescriptions: [i.a("showFoldingControls.always", "Always show the folding controls."), i.a("showFoldingControls.mouseover", "Only show the folding controls when the mouse is over the gutter.")], description: i.a("showFoldingControls", "Controls when the folding controls on the gutter are shown.")})), showUnused: L(new p(92, "showUnused", true, {description: i.a("showUnused", "Controls fading out of unused code.")})), showDeprecated: L(new p(113, "showDeprecated", true, {description: i.a("showDeprecated", "Controls strikethrough deprecated variables.")})), snippetSuggestions: L(new b(93, "snippetSuggestions", "inline", ["top", "bottom", "inline", "none"], {enumDescriptions: [i.a("snippetSuggestions.top", "Show snippet suggestions on top of other suggestions."), i.a("snippetSuggestions.bottom", "Show snippet suggestions below other suggestions."), i.a("snippetSuggestions.inline", "Show snippets suggestions with other suggestions."), i.a("snippetSuggestions.none", "Do not show snippet suggestions.")], description: i.a("snippetSuggestions", "Controls whether snippets are shown with other suggestions and how they are sorted.")})), smoothScrolling: L(new p(94, "smoothScrolling", false, {description: i.a("smoothScrolling", "Controls whether the editor will scroll using an animation.")})), stopRenderingLineAfter: L(new m(95, "stopRenderingLineAfter", 1e4, -1, 1073741824)), suggest: L(new class extends d { constructor() { const e2 = {insertMode: "insert", filterGraceful: true, snippetsPreventQuickSuggestions: true, localityBonus: false, shareSuggestSelections: false, showIcons: true, maxVisibleSuggestions: 12, showMethods: true, showFunctions: true, showConstructors: true, showFields: true, showVariables: true, showClasses: true, showStructs: true, showInterfaces: true, showModules: true, showProperties: true, showEvents: true, showOperators: true, showUnits: true, showValues: true, showConstants: true, showEnums: true, showEnumMembers: true, showKeywords: true, showWords: true, showColors: true, showFiles: true, showReferences: true, showFolders: true, showTypeParameters: true, showSnippets: true, showUsers: true, showIssues: true, statusBar: {visible: false}}; super(96, "suggest", e2, {"editor.suggest.insertMode": {type: "string", enum: ["insert", "replace"], enumDescriptions: [i.a("suggest.insertMode.insert", "Insert suggestion without overwriting text right of the cursor."), i.a("suggest.insertMode.replace", "Insert suggestion and overwrite text right of the cursor.")], default: e2.insertMode, description: i.a("suggest.insertMode", "Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")}, "editor.suggest.filterGraceful": {type: "boolean", default: e2.filterGraceful, description: i.a("suggest.filterGraceful", "Controls whether filtering and sorting suggestions accounts for small typos.")}, "editor.suggest.localityBonus": {type: "boolean", default: e2.localityBonus, description: i.a("suggest.localityBonus", "Controls whether sorting favours words that appear close to the cursor.")}, "editor.suggest.shareSuggestSelections": {type: "boolean", default: e2.shareSuggestSelections, markdownDescription: i.a("suggest.shareSuggestSelections", "Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")}, "editor.suggest.snippetsPreventQuickSuggestions": {type: "boolean", default: e2.snippetsPreventQuickSuggestions, description: i.a("suggest.snippetsPreventQuickSuggestions", "Controls whether an active snippet prevents quick suggestions.")}, "editor.suggest.showIcons": {type: "boolean", default: e2.showIcons, description: i.a("suggest.showIcons", "Controls whether to show or hide icons in suggestions.")}, "editor.suggest.maxVisibleSuggestions": {type: "number", default: e2.maxVisibleSuggestions, minimum: 1, maximum: 15, description: i.a("suggest.maxVisibleSuggestions", "Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")}, "editor.suggest.filteredTypes": {type: "object", deprecationMessage: i.a("deprecated", "This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")}, "editor.suggest.showMethods": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showMethods", "When enabled IntelliSense shows `method`-suggestions.")}, "editor.suggest.showFunctions": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showFunctions", "When enabled IntelliSense shows `function`-suggestions.")}, "editor.suggest.showConstructors": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showConstructors", "When enabled IntelliSense shows `constructor`-suggestions.")}, "editor.suggest.showFields": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showFields", "When enabled IntelliSense shows `field`-suggestions.")}, "editor.suggest.showVariables": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showVariables", "When enabled IntelliSense shows `variable`-suggestions.")}, "editor.suggest.showClasses": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showClasss", "When enabled IntelliSense shows `class`-suggestions.")}, "editor.suggest.showStructs": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showStructs", "When enabled IntelliSense shows `struct`-suggestions.")}, "editor.suggest.showInterfaces": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showInterfaces", "When enabled IntelliSense shows `interface`-suggestions.")}, "editor.suggest.showModules": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showModules", "When enabled IntelliSense shows `module`-suggestions.")}, "editor.suggest.showProperties": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showPropertys", "When enabled IntelliSense shows `property`-suggestions.")}, "editor.suggest.showEvents": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showEvents", "When enabled IntelliSense shows `event`-suggestions.")}, "editor.suggest.showOperators": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showOperators", "When enabled IntelliSense shows `operator`-suggestions.")}, "editor.suggest.showUnits": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showUnits", "When enabled IntelliSense shows `unit`-suggestions.")}, "editor.suggest.showValues": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showValues", "When enabled IntelliSense shows `value`-suggestions.")}, "editor.suggest.showConstants": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showConstants", "When enabled IntelliSense shows `constant`-suggestions.")}, "editor.suggest.showEnums": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showEnums", "When enabled IntelliSense shows `enum`-suggestions.")}, "editor.suggest.showEnumMembers": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showEnumMembers", "When enabled IntelliSense shows `enumMember`-suggestions.")}, "editor.suggest.showKeywords": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showKeywords", "When enabled IntelliSense shows `keyword`-suggestions.")}, "editor.suggest.showWords": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showTexts", "When enabled IntelliSense shows `text`-suggestions.")}, "editor.suggest.showColors": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showColors", "When enabled IntelliSense shows `color`-suggestions.")}, "editor.suggest.showFiles": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showFiles", "When enabled IntelliSense shows `file`-suggestions.")}, "editor.suggest.showReferences": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showReferences", "When enabled IntelliSense shows `reference`-suggestions.")}, "editor.suggest.showCustomcolors": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showCustomcolors", "When enabled IntelliSense shows `customcolor`-suggestions.")}, "editor.suggest.showFolders": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showFolders", "When enabled IntelliSense shows `folder`-suggestions.")}, "editor.suggest.showTypeParameters": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showTypeParameters", "When enabled IntelliSense shows `typeParameter`-suggestions.")}, "editor.suggest.showSnippets": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showSnippets", "When enabled IntelliSense shows `snippet`-suggestions.")}, "editor.suggest.showUsers": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showUsers", "When enabled IntelliSense shows `user`-suggestions.")}, "editor.suggest.showIssues": {type: "boolean", default: true, markdownDescription: i.a("editor.suggest.showIssues", "When enabled IntelliSense shows `issues`-suggestions.")}, "editor.suggest.statusBar.visible": {type: "boolean", default: false, markdownDescription: i.a("editor.suggest.statusBar.visible", "Controls the visibility of the status bar at the bottom of the suggest widget.")}}); @@ -5261,7 +5261,7 @@ const n2 = e2; return {insertMode: b.stringSet(n2.insertMode, this.defaultValue.insertMode, ["insert", "replace"]), filterGraceful: p.boolean(n2.filterGraceful, this.defaultValue.filterGraceful), snippetsPreventQuickSuggestions: p.boolean(n2.snippetsPreventQuickSuggestions, this.defaultValue.filterGraceful), localityBonus: p.boolean(n2.localityBonus, this.defaultValue.localityBonus), shareSuggestSelections: p.boolean(n2.shareSuggestSelections, this.defaultValue.shareSuggestSelections), showIcons: p.boolean(n2.showIcons, this.defaultValue.showIcons), maxVisibleSuggestions: m.clampedInt(n2.maxVisibleSuggestions, this.defaultValue.maxVisibleSuggestions, 1, 15), showMethods: p.boolean(n2.showMethods, this.defaultValue.showMethods), showFunctions: p.boolean(n2.showFunctions, this.defaultValue.showFunctions), showConstructors: p.boolean(n2.showConstructors, this.defaultValue.showConstructors), showFields: p.boolean(n2.showFields, this.defaultValue.showFields), showVariables: p.boolean(n2.showVariables, this.defaultValue.showVariables), showClasses: p.boolean(n2.showClasses, this.defaultValue.showClasses), showStructs: p.boolean(n2.showStructs, this.defaultValue.showStructs), showInterfaces: p.boolean(n2.showInterfaces, this.defaultValue.showInterfaces), showModules: p.boolean(n2.showModules, this.defaultValue.showModules), showProperties: p.boolean(n2.showProperties, this.defaultValue.showProperties), showEvents: p.boolean(n2.showEvents, this.defaultValue.showEvents), showOperators: p.boolean(n2.showOperators, this.defaultValue.showOperators), showUnits: p.boolean(n2.showUnits, this.defaultValue.showUnits), showValues: p.boolean(n2.showValues, this.defaultValue.showValues), showConstants: p.boolean(n2.showConstants, this.defaultValue.showConstants), showEnums: p.boolean(n2.showEnums, this.defaultValue.showEnums), showEnumMembers: p.boolean(n2.showEnumMembers, this.defaultValue.showEnumMembers), showKeywords: p.boolean(n2.showKeywords, this.defaultValue.showKeywords), showWords: p.boolean(n2.showWords, this.defaultValue.showWords), showColors: p.boolean(n2.showColors, this.defaultValue.showColors), showFiles: p.boolean(n2.showFiles, this.defaultValue.showFiles), showReferences: p.boolean(n2.showReferences, this.defaultValue.showReferences), showFolders: p.boolean(n2.showFolders, this.defaultValue.showFolders), showTypeParameters: p.boolean(n2.showTypeParameters, this.defaultValue.showTypeParameters), showSnippets: p.boolean(n2.showSnippets, this.defaultValue.showSnippets), showUsers: p.boolean(n2.showUsers, this.defaultValue.showUsers), showIssues: p.boolean(n2.showIssues, this.defaultValue.showIssues), statusBar: {visible: p.boolean((t2 = n2.statusBar) === null || t2 === void 0 ? void 0 : t2.visible, !!this.defaultValue.statusBar.visible)}}; } - }()), suggestFontSize: L(new m(97, "suggestFontSize", 0, 0, 1e3, {markdownDescription: i.a("suggestFontSize", "Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})), suggestLineHeight: L(new m(98, "suggestLineHeight", 0, 0, 1e3, {markdownDescription: i.a("suggestLineHeight", "Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})), suggestOnTriggerCharacters: L(new p(99, "suggestOnTriggerCharacters", true, {description: i.a("suggestOnTriggerCharacters", "Controls whether suggestions should automatically show up when typing trigger characters.")})), suggestSelection: L(new b(100, "suggestSelection", "recentlyUsed", ["first", "recentlyUsed", "recentlyUsedByPrefix"], {markdownEnumDescriptions: [i.a("suggestSelection.first", "Always select the first suggestion."), i.a("suggestSelection.recentlyUsed", "Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."), i.a("suggestSelection.recentlyUsedByPrefix", "Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")], description: i.a("suggestSelection", "Controls how suggestions are pre-selected when showing the suggest list.")})), tabCompletion: L(new b(101, "tabCompletion", "off", ["on", "off", "onlySnippets"], {enumDescriptions: [i.a("tabCompletion.on", "Tab complete will insert the best matching suggestion when pressing tab."), i.a("tabCompletion.off", "Disable tab completions."), i.a("tabCompletion.onlySnippets", "Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")], description: i.a("tabCompletion", "Enables tab completions.")})), tabIndex: L(new m(102, "tabIndex", 0, -1, 1073741824)), unusualLineTerminators: L(new b(103, "unusualLineTerminators", "prompt", ["off", "prompt", "auto"], {enumDescriptions: [i.a("unusualLineTerminators.off", "Unusual line terminators are ignored."), i.a("unusualLineTerminators.prompt", "Unusual line terminators prompt to be removed."), i.a("unusualLineTerminators.auto", "Unusual line terminators are automatically removed.")], description: i.a("unusualLineTerminators", "Remove unusual line terminators that might cause problems.")})), useTabStops: L(new p(104, "useTabStops", true, {description: i.a("useTabStops", "Inserting and deleting whitespace follows tab stops.")})), wordSeparators: L(new f(105, "wordSeparators", r.b, {description: i.a("wordSeparators", "Characters that will be used as word separators when doing word related navigations or operations.")})), wordWrap: L(new b(106, "wordWrap", "off", ["off", "on", "wordWrapColumn", "bounded"], {markdownEnumDescriptions: [i.a("wordWrap.off", "Lines will never wrap."), i.a("wordWrap.on", "Lines will wrap at the viewport width."), i.a({key: "wordWrap.wordWrapColumn", comment: ["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Lines will wrap at `#editor.wordWrapColumn#`."), i.a({key: "wordWrap.bounded", comment: ["- viewport means the edge of the visible window size.", "- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")], description: i.a({key: "wordWrap", comment: ["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.", "- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Controls how lines should wrap.")})), wordWrapBreakAfterCharacters: L(new f(107, "wordWrapBreakAfterCharacters", " })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")), wordWrapBreakBeforeCharacters: L(new f(108, "wordWrapBreakBeforeCharacters", "([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")), wordWrapColumn: L(new m(109, "wordWrapColumn", 80, 1, 1073741824, {markdownDescription: i.a({key: "wordWrapColumn", comment: ["- `editor.wordWrap` refers to a different setting and should not be localized.", "- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]}, "Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})), wordWrapMinified: L(new p(110, "wordWrapMinified", true)), wrappingIndent: L(new _(111, "wrappingIndent", 1, "same", ["none", "same", "indent", "deepIndent"], function(e2) { + }()), suggestFontSize: L(new m(97, "suggestFontSize", 0, 0, 1e3, {markdownDescription: i.a("suggestFontSize", "Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})), suggestLineHeight: L(new m(98, "suggestLineHeight", 0, 0, 1e3, {markdownDescription: i.a("suggestLineHeight", "Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})), suggestOnTriggerCharacters: L(new p(99, "suggestOnTriggerCharacters", true, {description: i.a("suggestOnTriggerCharacters", "Controls whether suggestions should automatically show up when typing trigger characters.")})), suggestSelection: L(new b(100, "suggestSelection", "recentlyUsed", ["first", "recentlyUsed", "recentlyUsedByPrefix"], {markdownEnumDescriptions: [i.a("suggestSelection.first", "Always select the first suggestion."), i.a("suggestSelection.recentlyUsed", "Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."), i.a("suggestSelection.recentlyUsedByPrefix", "Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")], description: i.a("suggestSelection", "Controls how suggestions are pre-selected when showing the suggest list.")})), tabCompletion: L(new b(101, "tabCompletion", "off", ["on", "off", "onlySnippets"], {enumDescriptions: [i.a("tabCompletion.on", "Tab complete will insert the best matching suggestion when pressing tab."), i.a("tabCompletion.off", "Disable tab completions."), i.a("tabCompletion.onlySnippets", "Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")], description: i.a("tabCompletion", "Enables tab completions.")})), tabIndex: L(new m(102, "tabIndex", 0, -1, 1073741824)), unusualLineTerminators: L(new b(103, "unusualLineTerminators", "prompt", ["off", "prompt", "auto"], {enumDescriptions: [i.a("unusualLineTerminators.off", "Unusual line terminators are ignored."), i.a("unusualLineTerminators.prompt", "Unusual line terminators prompt to be removed."), i.a("unusualLineTerminators.auto", "Unusual line terminators are automatically removed.")], description: i.a("unusualLineTerminators", "Remove unusual line terminators that might cause problems.")})), useTabStops: L(new p(104, "useTabStops", true, {description: i.a("useTabStops", "Inserting and deleting whitespace follows tab stops.")})), wordSeparators: L(new f(105, "wordSeparators", o.b, {description: i.a("wordSeparators", "Characters that will be used as word separators when doing word related navigations or operations.")})), wordWrap: L(new b(106, "wordWrap", "off", ["off", "on", "wordWrapColumn", "bounded"], {markdownEnumDescriptions: [i.a("wordWrap.off", "Lines will never wrap."), i.a("wordWrap.on", "Lines will wrap at the viewport width."), i.a({key: "wordWrap.wordWrapColumn", comment: ["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Lines will wrap at `#editor.wordWrapColumn#`."), i.a({key: "wordWrap.bounded", comment: ["- viewport means the edge of the visible window size.", "- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")], description: i.a({key: "wordWrap", comment: ["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.", "- `editor.wordWrapColumn` refers to a different setting and should not be localized."]}, "Controls how lines should wrap.")})), wordWrapBreakAfterCharacters: L(new f(107, "wordWrapBreakAfterCharacters", " })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")), wordWrapBreakBeforeCharacters: L(new f(108, "wordWrapBreakBeforeCharacters", "([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")), wordWrapColumn: L(new m(109, "wordWrapColumn", 80, 1, 1073741824, {markdownDescription: i.a({key: "wordWrapColumn", comment: ["- `editor.wordWrap` refers to a different setting and should not be localized.", "- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]}, "Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})), wordWrapMinified: L(new p(110, "wordWrapMinified", true)), wrappingIndent: L(new _(111, "wrappingIndent", 1, "same", ["none", "same", "indent", "deepIndent"], function(e2) { switch (e2) { case "none": return 0; @@ -5310,8 +5310,8 @@ }), n.d(t, "a", function() { return d; }); - var i = n(2), o = n(14), r = n(18), s = n(6), a = n(53), l = n(37); - const c = Object(r.c)("commandService"), d = new class { + var i = n(2), r = n(14), o = n(18), s = n(6), a = n(53), l = n(37); + const c = Object(o.c)("commandService"), d = new class { constructor() { this._commands = new Map(), this._onDidRegisterCommand = new s.a(), this.onDidRegisterCommand = this._onDidRegisterCommand.event; } @@ -5329,13 +5329,13 @@ t3.push(n4.constraint); const n3 = e2.handler; e2.handler = function(e3, ...i2) { - return Object(o.m)(i2, t3), n3(e3, ...i2); + return Object(r.m)(i2, t3), n3(e3, ...i2); }; } const {id: n2} = e2; - let r2 = this._commands.get(n2); - r2 || (r2 = new a.a(), this._commands.set(n2, r2)); - let s2 = r2.unshift(e2), l2 = Object(i.h)(() => { + let o2 = this._commands.get(n2); + o2 || (o2 = new a.a(), this._commands.set(n2, o2)); + let s2 = o2.unshift(e2), l2 = Object(i.h)(() => { s2(); const e3 = this._commands.get(n2); (e3 == null ? void 0 : e3.isEmpty()) && this._commands.delete(n2); @@ -5363,16 +5363,16 @@ "use strict"; (function(e2) { n.d(t, "a", function() { - return r; + return o; }), n.d(t, "b", function() { return s; }), n.d(t, "c", function() { return a; }); var i = n(11); - const o = e2 === void 0 ? {cwd: () => "/", env: Object.create(null), get platform() { + const r = e2 === void 0 ? {cwd: () => "/", env: Object.create(null), get platform() { return i.i ? "win32" : i.f ? "darwin" : "linux"; - }, nextTick: (e3) => Object(i.j)(e3)} : e2, r = o.cwd, s = o.env, a = o.platform; + }, nextTick: (e3) => Object(i.j)(e3)} : e2, o = r.cwd, s = r.env, a = r.platform; }).call(this, n(86)); }, function(e, t, n) { "use strict"; @@ -5399,24 +5399,24 @@ }), n.d(t, "a", function() { return Ge; }); - var i = n(13), o = n(6), r = n(2), s = n(8), a = n(23), l = n(26), c = n(9), d = n(3), h = n(21), u = n(58), p = n(175); + var i = n(13), r = n(6), o = n(2), s = n(8), a = n(23), l = n(26), c = n(9), d = n(3), h = n(21), u = n(58), p = n(175); class m { constructor() { this.spacesDiff = 0, this.looksLikeAlignment = false; } } - function g(e2, t2, n2, i2, o2) { - let r2; - for (o2.spacesDiff = 0, o2.looksLikeAlignment = false, r2 = 0; r2 < t2 && r2 < i2; r2++) { - if (e2.charCodeAt(r2) !== n2.charCodeAt(r2)) + function g(e2, t2, n2, i2, r2) { + let o2; + for (r2.spacesDiff = 0, r2.looksLikeAlignment = false, o2 = 0; o2 < t2 && o2 < i2; o2++) { + if (e2.charCodeAt(o2) !== n2.charCodeAt(o2)) break; } let s2 = 0, a2 = 0; - for (let n3 = r2; n3 < t2; n3++) { + for (let n3 = o2; n3 < t2; n3++) { e2.charCodeAt(n3) === 32 ? s2++ : a2++; } let l2 = 0, c2 = 0; - for (let e3 = r2; e3 < i2; e3++) { + for (let e3 = o2; e3 < i2; e3++) { n2.charCodeAt(e3) === 32 ? l2++ : c2++; } if (s2 > 0 && a2 > 0) @@ -5425,12 +5425,12 @@ return; let d2 = Math.abs(a2 - c2), h2 = Math.abs(s2 - l2); if (d2 === 0) - return o2.spacesDiff = h2, void (h2 > 0 && 0 <= l2 - 1 && l2 - 1 < e2.length && l2 < n2.length && n2.charCodeAt(l2) !== 32 && e2.charCodeAt(l2 - 1) === 32 && e2.charCodeAt(e2.length - 1) === 44 && (o2.looksLikeAlignment = true)); - h2 % d2 != 0 || (o2.spacesDiff = h2 / d2); + return r2.spacesDiff = h2, void (h2 > 0 && 0 <= l2 - 1 && l2 - 1 < e2.length && l2 < n2.length && n2.charCodeAt(l2) !== 32 && e2.charCodeAt(l2 - 1) === 32 && e2.charCodeAt(e2.length - 1) === 44 && (r2.looksLikeAlignment = true)); + h2 % d2 != 0 || (r2.spacesDiff = h2 / d2); } function f(e2, t2, n2) { const i2 = Math.min(e2.getLineCount(), 1e4); - let o2 = 0, r2 = 0, s2 = "", a2 = 0; + let r2 = 0, o2 = 0, s2 = "", a2 = 0; const l2 = [2, 4, 6, 8, 3, 5, 7]; let c2 = [0, 0, 0, 0, 0, 0, 0, 0, 0], d2 = new m(); for (let l3 = 1; l3 <= i2; l3++) { @@ -5451,13 +5451,13 @@ } if (!p2) continue; - if (b2 > 0 ? o2++ : f2 > 1 && r2++, g(s2, a2, h3, m2, d2), d2.looksLikeAlignment && (!n2 || t2 !== d2.spacesDiff)) + if (b2 > 0 ? r2++ : f2 > 1 && o2++, g(s2, a2, h3, m2, d2), d2.looksLikeAlignment && (!n2 || t2 !== d2.spacesDiff)) continue; let _2 = d2.spacesDiff; _2 <= 8 && c2[_2]++, s2 = h3, a2 = m2; } let h2 = n2; - o2 !== r2 && (h2 = o2 < r2); + r2 !== o2 && (h2 = r2 < o2); let u2 = t2; if (h2) { let e3 = h2 ? 0 : 0.1 * i2; @@ -5523,8 +5523,8 @@ constructor() { this.root = L, this.requestNormalizeDelta = false; } - intervalSearch(e2, t2, n2, i2, o2) { - return this.root === L ? [] : function(e3, t3, n3, i3, o3, r2) { + intervalSearch(e2, t2, n2, i2, r2) { + return this.root === L ? [] : function(e3, t3, n3, i3, r3, o2) { let s2 = e3.root, a2 = 0, l2 = 0, c2 = 0, d2 = 0, h2 = [], u2 = 0; for (; s2 !== L; ) if (v(s2)) @@ -5544,40 +5544,40 @@ w(s2, true); else { if (d2 = a2 + s2.end, d2 >= t3) { - s2.setCachedOffsets(c2, d2, r2); + s2.setCachedOffsets(c2, d2, o2); let e4 = true; - i3 && s2.ownerId && s2.ownerId !== i3 && (e4 = false), o3 && y(s2) && (e4 = false), e4 && (h2[u2++] = s2); + i3 && s2.ownerId && s2.ownerId !== i3 && (e4 = false), r3 && y(s2) && (e4 = false), e4 && (h2[u2++] = s2); } w(s2, true), s2.right === L || v(s2.right) || (a2 += s2.delta, s2 = s2.right); } } return w(e3.root, false), h2; - }(this, e2, t2, n2, i2, o2); + }(this, e2, t2, n2, i2, r2); } search(e2, t2, n2) { return this.root === L ? [] : function(e3, t3, n3, i2) { - let o2 = e3.root, r2 = 0, s2 = 0, a2 = 0, l2 = [], c2 = 0; - for (; o2 !== L; ) { - if (v(o2)) { - w(o2.left, false), w(o2.right, false), o2 === o2.parent.right && (r2 -= o2.parent.delta), o2 = o2.parent; + let r2 = e3.root, o2 = 0, s2 = 0, a2 = 0, l2 = [], c2 = 0; + for (; r2 !== L; ) { + if (v(r2)) { + w(r2.left, false), w(r2.right, false), r2 === r2.parent.right && (o2 -= r2.parent.delta), r2 = r2.parent; continue; } - if (o2.left !== L && !v(o2.left)) { - o2 = o2.left; + if (r2.left !== L && !v(r2.left)) { + r2 = r2.left; continue; } - s2 = r2 + o2.start, a2 = r2 + o2.end, o2.setCachedOffsets(s2, a2, i2); + s2 = o2 + r2.start, a2 = o2 + r2.end, r2.setCachedOffsets(s2, a2, i2); let e4 = true; - t3 && o2.ownerId && o2.ownerId !== t3 && (e4 = false), n3 && y(o2) && (e4 = false), e4 && (l2[c2++] = o2), w(o2, true), o2.right === L || v(o2.right) || (r2 += o2.delta, o2 = o2.right); + t3 && r2.ownerId && r2.ownerId !== t3 && (e4 = false), n3 && y(r2) && (e4 = false), e4 && (l2[c2++] = r2), w(r2, true), r2.right === L || v(r2.right) || (o2 += r2.delta, r2 = r2.right); } return w(e3.root, false), l2; }(this, e2, t2, n2); } collectNodesFromOwner(e2) { return function(e3, t2) { - let n2 = e3.root, i2 = [], o2 = 0; + let n2 = e3.root, i2 = [], r2 = 0; for (; n2 !== L; ) - v(n2) ? (w(n2.left, false), w(n2.right, false), n2 = n2.parent) : n2.left === L || v(n2.left) ? (n2.ownerId === t2 && (i2[o2++] = n2), w(n2, true), n2.right === L || v(n2.right) || (n2 = n2.right)) : n2 = n2.left; + v(n2) ? (w(n2.left, false), w(n2.right, false), n2 = n2.parent) : n2.left === L || v(n2.left) ? (n2.ownerId === t2 && (i2[r2++] = n2), w(n2, true), n2.right === L || v(n2.right) || (n2 = n2.right)) : n2 = n2.left; return w(e3.root, false), i2; }(this, e2); } @@ -5590,7 +5590,7 @@ }(this); } insert(e2) { - D(this, e2), this._normalizeDeltaIfNecessary(); + O(this, e2), this._normalizeDeltaIfNecessary(); } delete(e2) { A(this, e2), this._normalizeDeltaIfNecessary(); @@ -5600,18 +5600,18 @@ let i2 = 0; for (; e2 !== this.root; ) e2 === e2.parent.right && (i2 += e2.parent.delta), e2 = e2.parent; - const o2 = n2.start + i2, r2 = n2.end + i2; - n2.setCachedOffsets(o2, r2, t2); + const r2 = n2.start + i2, o2 = n2.end + i2; + n2.setCachedOffsets(r2, o2, t2); } acceptReplace(e2, t2, n2, i2) { - const o2 = function(e3, t3, n3) { - let i3 = e3.root, o3 = 0, r2 = 0, s2 = 0, a2 = 0, l2 = [], c2 = 0; + const r2 = function(e3, t3, n3) { + let i3 = e3.root, r3 = 0, o2 = 0, s2 = 0, a2 = 0, l2 = [], c2 = 0; for (; i3 !== L; ) if (v(i3)) - w(i3.left, false), w(i3.right, false), i3 === i3.parent.right && (o3 -= i3.parent.delta), i3 = i3.parent; + w(i3.left, false), w(i3.right, false), i3 === i3.parent.right && (r3 -= i3.parent.delta), i3 = i3.parent; else { if (!v(i3.left)) { - if (r2 = o3 + i3.maxEnd, r2 < t3) { + if (o2 = r3 + i3.maxEnd, o2 < t3) { w(i3, true); continue; } @@ -5620,37 +5620,37 @@ continue; } } - s2 = o3 + i3.start, s2 > n3 ? w(i3, true) : (a2 = o3 + i3.end, a2 >= t3 && (i3.setCachedOffsets(s2, a2, 0), l2[c2++] = i3), w(i3, true), i3.right === L || v(i3.right) || (o3 += i3.delta, i3 = i3.right)); + s2 = r3 + i3.start, s2 > n3 ? w(i3, true) : (a2 = r3 + i3.end, a2 >= t3 && (i3.setCachedOffsets(s2, a2, 0), l2[c2++] = i3), w(i3, true), i3.right === L || v(i3.right) || (r3 += i3.delta, i3 = i3.right)); } return w(e3.root, false), l2; }(this, e2, e2 + t2); - for (let e3 = 0, t3 = o2.length; e3 < t3; e3++) { - A(this, o2[e3]); + for (let e3 = 0, t3 = r2.length; e3 < t3; e3++) { + A(this, r2[e3]); } this._normalizeDeltaIfNecessary(), function(e3, t3, n3, i3) { - let o3 = e3.root, r2 = 0, s2 = 0, a2 = 0; + let r3 = e3.root, o2 = 0, s2 = 0, a2 = 0; const l2 = i3 - (n3 - t3); - for (; o3 !== L; ) - if (v(o3)) - w(o3.left, false), w(o3.right, false), o3 === o3.parent.right && (r2 -= o3.parent.delta), W(o3), o3 = o3.parent; + for (; r3 !== L; ) + if (v(r3)) + w(r3.left, false), w(r3.right, false), r3 === r3.parent.right && (o2 -= r3.parent.delta), W(r3), r3 = r3.parent; else { - if (!v(o3.left)) { - if (s2 = r2 + o3.maxEnd, s2 < t3) { - w(o3, true); + if (!v(r3.left)) { + if (s2 = o2 + r3.maxEnd, s2 < t3) { + w(r3, true); continue; } - if (o3.left !== L) { - o3 = o3.left; + if (r3.left !== L) { + r3 = r3.left; continue; } } - a2 = r2 + o3.start, a2 > n3 ? (o3.start += l2, o3.end += l2, o3.delta += l2, (o3.delta < -1073741824 || o3.delta > 1073741824) && (e3.requestNormalizeDelta = true), w(o3, true)) : (w(o3, true), o3.right === L || v(o3.right) || (r2 += o3.delta, o3 = o3.right)); + a2 = o2 + r3.start, a2 > n3 ? (r3.start += l2, r3.end += l2, r3.delta += l2, (r3.delta < -1073741824 || r3.delta > 1073741824) && (e3.requestNormalizeDelta = true), w(r3, true)) : (w(r3, true), r3.right === L || v(r3.right) || (o2 += r3.delta, r3 = r3.right)); } w(e3.root, false); }(this, e2, e2 + t2, n2), this._normalizeDeltaIfNecessary(); - for (let r2 = 0, s2 = o2.length; r2 < s2; r2++) { - const s3 = o2[r2]; - s3.start = s3.cachedAbsoluteStart, s3.end = s3.cachedAbsoluteEnd, O(s3, e2, e2 + t2, n2, i2), s3.maxEnd = s3.end, D(this, s3); + for (let o2 = 0, s2 = r2.length; o2 < s2; o2++) { + const s3 = r2[o2]; + s3.start = s3.cachedAbsoluteStart, s3.end = s3.cachedAbsoluteEnd, D(s3, e2, e2 + t2, n2, i2), s3.maxEnd = s3.end, O(this, s3); } this._normalizeDeltaIfNecessary(); } @@ -5666,10 +5666,10 @@ function I(e2, t2, n2, i2) { return e2 < n2 || !(e2 > n2) && (i2 !== 1 && (i2 === 2 || t2)); } - function O(e2, t2, n2, i2, o2) { - const r2 = function(e3) { + function D(e2, t2, n2, i2, r2) { + const o2 = function(e3) { return (48 & e3.metadata) >>> 4; - }(e2), s2 = r2 === 0 || r2 === 2, a2 = r2 === 1 || r2 === 2, l2 = n2 - t2, c2 = i2, d2 = Math.min(l2, c2), h2 = e2.start; + }(e2), s2 = o2 === 0 || o2 === 2, a2 = o2 === 1 || o2 === 2, l2 = n2 - t2, c2 = i2, d2 = Math.min(l2, c2), h2 = e2.start; let u2 = false; const p2 = e2.end; let m2 = false; @@ -5677,28 +5677,28 @@ return (64 & e3.metadata) >>> 6 == 1; }(e2) && (e2.start = t2, u2 = true, e2.end = t2, m2 = true); { - const e3 = o2 ? 1 : l2 > 0 ? 2 : 0; + const e3 = r2 ? 1 : l2 > 0 ? 2 : 0; !u2 && I(h2, s2, t2, e3) && (u2 = true), !m2 && I(p2, a2, t2, e3) && (m2 = true); } - if (d2 > 0 && !o2) { + if (d2 > 0 && !r2) { const e3 = l2 > c2 ? 2 : 0; !u2 && I(h2, s2, t2 + d2, e3) && (u2 = true), !m2 && I(p2, a2, t2 + d2, e3) && (m2 = true); } { - const i3 = o2 ? 1 : 0; + const i3 = r2 ? 1 : 0; !u2 && I(h2, s2, n2, i3) && (e2.start = t2 + c2, u2 = true), !m2 && I(p2, a2, n2, i3) && (e2.end = t2 + c2, m2 = true); } const g2 = c2 - l2; u2 || (e2.start = Math.max(0, h2 + g2)), m2 || (e2.end = Math.max(0, p2 + g2)), e2.start > e2.end && (e2.end = e2.start); } - function D(e2, t2) { + function O(e2, t2) { if (e2.root === L) return t2.parent = L, t2.left = L, t2.right = L, _(t2, 0), e2.root = t2, e2.root; !function(e3, t3) { let n3 = 0, i2 = e3.root; - const o2 = t3.start, r2 = t3.end; + const r2 = t3.start, o2 = t3.end; for (; ; ) { - if (B(o2, r2, i2.start + n3, i2.end + n3) < 0) { + if (B(r2, o2, i2.start + n3, i2.end + n3) < 0) { if (i2.left === L) { t3.start -= n3, t3.end -= n3, t3.maxEnd -= n3, i2.left = t3; break; @@ -5733,11 +5733,11 @@ return e3; }(t2.right), n2 = i2.right, n2.start += i2.delta, n2.end += i2.delta, n2.delta += i2.delta, (n2.delta < -1073741824 || n2.delta > 1073741824) && (e2.requestNormalizeDelta = true), i2.start += t2.delta, i2.end += t2.delta, i2.delta = t2.delta, (i2.delta < -1073741824 || i2.delta > 1073741824) && (e2.requestNormalizeDelta = true)), i2 === e2.root) return e2.root = n2, _(n2, 0), t2.detach(), R(), W(n2), void (e2.root.parent = L); - let o2, r2 = b(i2) === 1; - if (i2 === i2.parent.left ? i2.parent.left = n2 : i2.parent.right = n2, i2 === t2 ? n2.parent = i2.parent : (i2.parent === t2 ? n2.parent = i2 : n2.parent = i2.parent, i2.left = t2.left, i2.right = t2.right, i2.parent = t2.parent, _(i2, b(t2)), t2 === e2.root ? e2.root = i2 : t2 === t2.parent.left ? t2.parent.left = i2 : t2.parent.right = i2, i2.left !== L && (i2.left.parent = i2), i2.right !== L && (i2.right.parent = i2)), t2.detach(), r2) + let r2, o2 = b(i2) === 1; + if (i2 === i2.parent.left ? i2.parent.left = n2 : i2.parent.right = n2, i2 === t2 ? n2.parent = i2.parent : (i2.parent === t2 ? n2.parent = i2 : n2.parent = i2.parent, i2.left = t2.left, i2.right = t2.right, i2.parent = t2.parent, _(i2, b(t2)), t2 === e2.root ? e2.root = i2 : t2 === t2.parent.left ? t2.parent.left = i2 : t2.parent.right = i2, i2.left !== L && (i2.left.parent = i2), i2.right !== L && (i2.right.parent = i2)), t2.detach(), o2) return z(n2.parent), i2 !== t2 && (z(i2), z(i2.parent)), void R(); for (z(n2), z(n2.parent), i2 !== t2 && (z(i2), z(i2.parent)); n2 !== e2.root && b(n2) === 0; ) - n2 === n2.parent.left ? (o2 = n2.parent.right, b(o2) === 1 && (_(o2, 0), _(n2.parent, 1), M(e2, n2.parent), o2 = n2.parent.right), b(o2.left) === 0 && b(o2.right) === 0 ? (_(o2, 1), n2 = n2.parent) : (b(o2.right) === 0 && (_(o2.left, 0), _(o2, 1), P(e2, o2), o2 = n2.parent.right), _(o2, b(n2.parent)), _(n2.parent, 0), _(o2.right, 0), M(e2, n2.parent), n2 = e2.root)) : (o2 = n2.parent.left, b(o2) === 1 && (_(o2, 0), _(n2.parent, 1), P(e2, n2.parent), o2 = n2.parent.left), b(o2.left) === 0 && b(o2.right) === 0 ? (_(o2, 1), n2 = n2.parent) : (b(o2.left) === 0 && (_(o2.right, 0), _(o2, 1), M(e2, o2), o2 = n2.parent.left), _(o2, b(n2.parent)), _(n2.parent, 0), _(o2.left, 0), P(e2, n2.parent), n2 = e2.root)); + n2 === n2.parent.left ? (r2 = n2.parent.right, b(r2) === 1 && (_(r2, 0), _(n2.parent, 1), M(e2, n2.parent), r2 = n2.parent.right), b(r2.left) === 0 && b(r2.right) === 0 ? (_(r2, 1), n2 = n2.parent) : (b(r2.right) === 0 && (_(r2.left, 0), _(r2, 1), P(e2, r2), r2 = n2.parent.right), _(r2, b(n2.parent)), _(n2.parent, 0), _(r2.right, 0), M(e2, n2.parent), n2 = e2.root)) : (r2 = n2.parent.left, b(r2) === 1 && (_(r2, 0), _(n2.parent, 1), P(e2, n2.parent), r2 = n2.parent.left), b(r2.left) === 0 && b(r2.right) === 0 ? (_(r2, 1), n2 = n2.parent) : (b(r2.left) === 0 && (_(r2.right, 0), _(r2, 1), M(e2, r2), r2 = n2.parent.left), _(r2, b(n2.parent)), _(n2.parent, 0), _(r2.left, 0), P(e2, n2.parent), n2 = e2.root)); _(n2, 0), R(); } function R() { @@ -5833,19 +5833,19 @@ let n2, i2; if (t2.left === V ? (i2 = t2, n2 = i2.right) : t2.right === V ? (i2 = t2, n2 = i2.left) : (i2 = U(t2.right), n2 = i2.right), i2 === e2.root) return e2.root = n2, n2.color = 0, t2.detach(), K(), void (e2.root.parent = V); - let o2, r2 = i2.color === 1; + let r2, o2 = i2.color === 1; if (i2 === i2.parent.left ? i2.parent.left = n2 : i2.parent.right = n2, i2 === t2 ? (n2.parent = i2.parent, J(e2, n2)) : (i2.parent === t2 ? n2.parent = i2 : n2.parent = i2.parent, J(e2, n2), i2.left = t2.left, i2.right = t2.right, i2.parent = t2.parent, i2.color = t2.color, t2 === e2.root ? e2.root = i2 : t2 === t2.parent.left ? t2.parent.left = i2 : t2.parent.right = i2, i2.left !== V && (i2.left.parent = i2), i2.right !== V && (i2.right.parent = i2), i2.size_left = t2.size_left, i2.lf_left = t2.lf_left, J(e2, i2)), t2.detach(), n2.parent.left === n2) { let t3 = q(n2), i3 = $(n2); if (t3 !== n2.parent.size_left || i3 !== n2.parent.lf_left) { - let o3 = t3 - n2.parent.size_left, r3 = i3 - n2.parent.lf_left; - n2.parent.size_left = t3, n2.parent.lf_left = i3, Q(e2, n2.parent, o3, r3); + let r3 = t3 - n2.parent.size_left, o3 = i3 - n2.parent.lf_left; + n2.parent.size_left = t3, n2.parent.lf_left = i3, Q(e2, n2.parent, r3, o3); } } - if (J(e2, n2.parent), r2) + if (J(e2, n2.parent), o2) K(); else { for (; n2 !== e2.root && n2.color === 0; ) - n2 === n2.parent.left ? (o2 = n2.parent.right, o2.color === 1 && (o2.color = 0, n2.parent.color = 1, G(e2, n2.parent), o2 = n2.parent.right), o2.left.color === 0 && o2.right.color === 0 ? (o2.color = 1, n2 = n2.parent) : (o2.right.color === 0 && (o2.left.color = 0, o2.color = 1, Y(e2, o2), o2 = n2.parent.right), o2.color = n2.parent.color, n2.parent.color = 0, o2.right.color = 0, G(e2, n2.parent), n2 = e2.root)) : (o2 = n2.parent.left, o2.color === 1 && (o2.color = 0, n2.parent.color = 1, Y(e2, n2.parent), o2 = n2.parent.left), o2.left.color === 0 && o2.right.color === 0 ? (o2.color = 1, n2 = n2.parent) : (o2.left.color === 0 && (o2.right.color = 0, o2.color = 1, G(e2, o2), o2 = n2.parent.left), o2.color = n2.parent.color, n2.parent.color = 0, o2.left.color = 0, Y(e2, n2.parent), n2 = e2.root)); + n2 === n2.parent.left ? (r2 = n2.parent.right, r2.color === 1 && (r2.color = 0, n2.parent.color = 1, G(e2, n2.parent), r2 = n2.parent.right), r2.left.color === 0 && r2.right.color === 0 ? (r2.color = 1, n2 = n2.parent) : (r2.right.color === 0 && (r2.left.color = 0, r2.color = 1, Y(e2, r2), r2 = n2.parent.right), r2.color = n2.parent.color, n2.parent.color = 0, r2.right.color = 0, G(e2, n2.parent), n2 = e2.root)) : (r2 = n2.parent.left, r2.color === 1 && (r2.color = 0, n2.parent.color = 1, Y(e2, n2.parent), r2 = n2.parent.left), r2.left.color === 0 && r2.right.color === 0 ? (r2.color = 1, n2 = n2.parent) : (r2.left.color === 0 && (r2.right.color = 0, r2.color = 1, G(e2, r2), r2 = n2.parent.left), r2.color = n2.parent.color, n2.parent.color = 0, r2.left.color = 0, Y(e2, n2.parent), n2 = e2.root)); n2.color = 0, K(); } } @@ -5885,24 +5885,24 @@ return t2 = e2[e2.length - 1] < 65536 ? new Uint16Array(e2.length) : new Uint32Array(e2.length), t2.set(e2, 0), t2; } class ne { - constructor(e2, t2, n2, i2, o2) { - this.lineStarts = e2, this.cr = t2, this.lf = n2, this.crlf = i2, this.isBasicASCII = o2; + constructor(e2, t2, n2, i2, r2) { + this.lineStarts = e2, this.cr = t2, this.lf = n2, this.crlf = i2, this.isBasicASCII = r2; } } function ie(e2, t2 = true) { let n2 = [0], i2 = 1; - for (let t3 = 0, o2 = e2.length; t3 < o2; t3++) { - const r2 = e2.charCodeAt(t3); - r2 === 13 ? t3 + 1 < o2 && e2.charCodeAt(t3 + 1) === 10 ? (n2[i2++] = t3 + 2, t3++) : n2[i2++] = t3 + 1 : r2 === 10 && (n2[i2++] = t3 + 1); + for (let t3 = 0, r2 = e2.length; t3 < r2; t3++) { + const o2 = e2.charCodeAt(t3); + o2 === 13 ? t3 + 1 < r2 && e2.charCodeAt(t3 + 1) === 10 ? (n2[i2++] = t3 + 2, t3++) : n2[i2++] = t3 + 1 : o2 === 10 && (n2[i2++] = t3 + 1); } return t2 ? te(n2) : n2; } - class oe { - constructor(e2, t2, n2, i2, o2) { - this.bufferIndex = e2, this.start = t2, this.end = n2, this.lineFeedCnt = i2, this.length = o2; + class re { + constructor(e2, t2, n2, i2, r2) { + this.bufferIndex = e2, this.start = t2, this.end = n2, this.lineFeedCnt = i2, this.length = r2; } } - class re { + class oe { constructor(e2, t2) { this.buffer = e2, this.lineStarts = t2; } @@ -5941,8 +5941,8 @@ validate(e2) { let t2 = false, n2 = this._cache; for (let i2 = 0; i2 < n2.length; i2++) { - let o2 = n2[i2]; - (o2.node.parent === null || o2.nodeStartOffset >= e2) && (n2[i2] = null, t2 = true); + let r2 = n2[i2]; + (r2.node.parent === null || r2.nodeStartOffset >= e2) && (n2[i2] = null, t2 = true); } if (t2) { let e3 = []; @@ -5957,29 +5957,29 @@ this.create(e2, t2, n2); } create(e2, t2, n2) { - this._buffers = [new re("", [0])], this._lastChangeBufferPos = {line: 0, column: 0}, this.root = V, this._lineCnt = 1, this._length = 0, this._EOL = t2, this._EOLLength = t2.length, this._EOLNormalized = n2; + this._buffers = [new oe("", [0])], this._lastChangeBufferPos = {line: 0, column: 0}, this.root = V, this._lineCnt = 1, this._length = 0, this._EOL = t2, this._EOLLength = t2.length, this._EOLNormalized = n2; let i2 = null; for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) if (e2[t3].buffer.length > 0) { e2[t3].lineStarts || (e2[t3].lineStarts = ie(e2[t3].buffer)); - let n4 = new oe(t3 + 1, {line: 0, column: 0}, {line: e2[t3].lineStarts.length - 1, column: e2[t3].buffer.length - e2[t3].lineStarts[e2[t3].lineStarts.length - 1]}, e2[t3].lineStarts.length - 1, e2[t3].buffer.length); + let n4 = new re(t3 + 1, {line: 0, column: 0}, {line: e2[t3].lineStarts.length - 1, column: e2[t3].buffer.length - e2[t3].lineStarts[e2[t3].lineStarts.length - 1]}, e2[t3].lineStarts.length - 1, e2[t3].buffer.length); this._buffers.push(e2[t3]), i2 = this.rbInsertRight(i2, n4); } this._searchCache = new ae(1), this._lastVisitedLine = {lineNumber: 0, value: ""}, this.computeBufferMetadata(); } normalizeEOL(e2) { - let t2 = 65535 - Math.floor(21845), n2 = 2 * t2, i2 = "", o2 = 0, r2 = []; + let t2 = 65535 - Math.floor(21845), n2 = 2 * t2, i2 = "", r2 = 0, o2 = []; if (this.iterate(this.root, (s2) => { let a2 = this.getNodeContent(s2), l2 = a2.length; - if (o2 <= t2 || o2 + l2 < n2) - return i2 += a2, o2 += l2, true; + if (r2 <= t2 || r2 + l2 < n2) + return i2 += a2, r2 += l2, true; let c2 = i2.replace(/\r\n|\r|\n/g, e2); - return r2.push(new re(c2, ie(c2))), i2 = a2, o2 = l2, true; - }), o2 > 0) { + return o2.push(new oe(c2, ie(c2))), i2 = a2, r2 = l2, true; + }), r2 > 0) { let t3 = i2.replace(/\r\n|\r|\n/g, e2); - r2.push(new re(t3, ie(t3))); + o2.push(new oe(t3, ie(t3))); } - this.create(r2, e2, true); + this.create(o2, e2, true); } getEOL() { return this._EOL; @@ -6011,12 +6011,12 @@ t2 = t2.left; else { if (t2.size_left + t2.piece.length >= e2) { - let o2 = this.getIndexOf(t2, e2 - t2.size_left); - if (n2 += t2.lf_left + o2.index, o2.index === 0) { + let r2 = this.getIndexOf(t2, e2 - t2.size_left); + if (n2 += t2.lf_left + r2.index, r2.index === 0) { let e3 = i2 - this.getOffsetAt(n2 + 1, 1); return new c.a(n2 + 1, e3 + 1); } - return new c.a(n2 + 1, o2.remainder + 1); + return new c.a(n2 + 1, r2.remainder + 1); } if (e2 -= t2.size_left + t2.piece.length, n2 += t2.lf_left + t2.piece.lineFeedCnt, t2.right === V) { let t3 = i2 - e2 - this.getOffsetAt(n2 + 1, 1); @@ -6029,36 +6029,36 @@ getValueInRange(e2, t2) { if (e2.startLineNumber === e2.endLineNumber && e2.startColumn === e2.endColumn) return ""; - let n2 = this.nodeAt2(e2.startLineNumber, e2.startColumn), i2 = this.nodeAt2(e2.endLineNumber, e2.endColumn), o2 = this.getValueInRange2(n2, i2); - return t2 ? t2 === this._EOL && this._EOLNormalized && t2 === this.getEOL() && this._EOLNormalized ? o2 : o2.replace(/\r\n|\r|\n/g, t2) : o2; + let n2 = this.nodeAt2(e2.startLineNumber, e2.startColumn), i2 = this.nodeAt2(e2.endLineNumber, e2.endColumn), r2 = this.getValueInRange2(n2, i2); + return t2 ? t2 === this._EOL && this._EOLNormalized && t2 === this.getEOL() && this._EOLNormalized ? r2 : r2.replace(/\r\n|\r|\n/g, t2) : r2; } getValueInRange2(e2, t2) { if (e2.node === t2.node) { - let n3 = e2.node, i3 = this._buffers[n3.piece.bufferIndex].buffer, o3 = this.offsetInBuffer(n3.piece.bufferIndex, n3.piece.start); - return i3.substring(o3 + e2.remainder, o3 + t2.remainder); + let n3 = e2.node, i3 = this._buffers[n3.piece.bufferIndex].buffer, r3 = this.offsetInBuffer(n3.piece.bufferIndex, n3.piece.start); + return i3.substring(r3 + e2.remainder, r3 + t2.remainder); } - let n2 = e2.node, i2 = this._buffers[n2.piece.bufferIndex].buffer, o2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start), r2 = i2.substring(o2 + e2.remainder, o2 + n2.piece.length); + let n2 = e2.node, i2 = this._buffers[n2.piece.bufferIndex].buffer, r2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start), o2 = i2.substring(r2 + e2.remainder, r2 + n2.piece.length); for (n2 = n2.next(); n2 !== V; ) { let e3 = this._buffers[n2.piece.bufferIndex].buffer, i3 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); if (n2 === t2.node) { - r2 += e3.substring(i3, i3 + t2.remainder); + o2 += e3.substring(i3, i3 + t2.remainder); break; } - r2 += e3.substr(i3, n2.piece.length), n2 = n2.next(); + o2 += e3.substr(i3, n2.piece.length), n2 = n2.next(); } - return r2; + return o2; } getLinesContent() { let e2 = [], t2 = 0, n2 = "", i2 = false; - return this.iterate(this.root, (o2) => { - if (o2 === V) + return this.iterate(this.root, (r2) => { + if (r2 === V) return true; - const r2 = o2.piece; - let s2 = r2.length; + const o2 = r2.piece; + let s2 = o2.length; if (s2 === 0) return true; - const a2 = this._buffers[r2.bufferIndex].buffer, l2 = this._buffers[r2.bufferIndex].lineStarts, c2 = r2.start.line, d2 = r2.end.line; - let h2 = l2[c2] + r2.start.column; + const a2 = this._buffers[o2.bufferIndex].buffer, l2 = this._buffers[o2.bufferIndex].lineStarts, c2 = o2.start.line, d2 = o2.end.line; + let h2 = l2[c2] + o2.start.column; if (i2 && (a2.charCodeAt(h2) === 10 && (h2++, s2--), e2[t2++] = n2, n2 = "", i2 = false, s2 === 0)) return true; if (c2 === d2) @@ -6066,7 +6066,7 @@ n2 += this._EOLNormalized ? a2.substring(h2, Math.max(h2, l2[c2 + 1] - this._EOLLength)) : a2.substring(h2, l2[c2 + 1]).replace(/(\r\n|\r|\n)$/, ""), e2[t2++] = n2; for (let i3 = c2 + 1; i3 < d2; i3++) n2 = this._EOLNormalized ? a2.substring(l2[i3], l2[i3 + 1] - this._EOLLength) : a2.substring(l2[i3], l2[i3 + 1]).replace(/(\r\n|\r|\n)$/, ""), e2[t2++] = n2; - return this._EOLNormalized || a2.charCodeAt(l2[d2] + r2.end.column - 1) !== 13 ? n2 = a2.substr(l2[d2], r2.end.column) : (i2 = true, r2.end.column === 0 ? t2-- : n2 = a2.substr(l2[d2], r2.end.column - 1)), true; + return this._EOLNormalized || a2.charCodeAt(l2[d2] + o2.end.column - 1) !== 13 ? n2 = a2.substr(l2[d2], o2.end.column) : (i2 = true, o2.end.column === 0 ? t2-- : n2 = a2.substr(l2[d2], o2.end.column - 1)), true; }), i2 && (e2[t2++] = n2, n2 = ""), e2[t2++] = n2, e2; } getLength() { @@ -6102,16 +6102,16 @@ } return this.getOffsetAt(e2 + 1, 1) - this.getOffsetAt(e2, 1) - this._EOLLength; } - findMatchesInNode(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, h2) { - let u2, p2, m2, g2 = this._buffers[e2.piece.bufferIndex], f2 = this.offsetInBuffer(e2.piece.bufferIndex, e2.piece.start), b2 = this.offsetInBuffer(e2.piece.bufferIndex, o2), _2 = this.offsetInBuffer(e2.piece.bufferIndex, r2), v2 = {line: 0, column: 0}; + findMatchesInNode(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, h2) { + let u2, p2, m2, g2 = this._buffers[e2.piece.bufferIndex], f2 = this.offsetInBuffer(e2.piece.bufferIndex, e2.piece.start), b2 = this.offsetInBuffer(e2.piece.bufferIndex, r2), _2 = this.offsetInBuffer(e2.piece.bufferIndex, o2), v2 = {line: 0, column: 0}; t2._wordSeparators ? (p2 = g2.buffer.substring(b2, _2), m2 = (e3) => e3 + b2, t2.reset(0)) : (p2 = g2.buffer, m2 = (e3) => e3, t2.reset(b2)); do { if (u2 = t2.next(p2), u2) { if (m2(u2.index) >= _2) return c2; this.positionInBuffer(e2, m2(u2.index) - f2, v2); - let t3 = this.getLineFeedCnt(e2.piece.bufferIndex, o2, v2), r3 = v2.line === o2.line ? v2.column - o2.column + i2 : v2.column + 1, s3 = r3 + u2[0].length; - if (h2[c2++] = Object(ee.d)(new d.a(n2 + t3, r3, n2 + t3, s3), u2, a2), m2(u2.index) + u2[0].length >= _2) + let t3 = this.getLineFeedCnt(e2.piece.bufferIndex, r2, v2), o3 = v2.line === r2.line ? v2.column - r2.column + i2 : v2.column + 1, s3 = o3 + u2[0].length; + if (h2[c2++] = Object(ee.d)(new d.a(n2 + t3, o3, n2 + t3, s3), u2, a2), m2(u2.index) + u2[0].length >= _2) return c2; if (c2 >= l2) return c2; @@ -6120,8 +6120,8 @@ return c2; } findMatchesLineByLine(e2, t2, n2, i2) { - const o2 = []; - let r2 = 0; + const r2 = []; + let o2 = 0; const s2 = new ee.b(t2.wordSeparators, t2.regex); let a2 = this.nodeAt2(e2.startLineNumber, e2.startColumn); if (a2 === null) @@ -6131,76 +6131,76 @@ return []; let c2 = this.positionInBuffer(a2.node, a2.remainder), d2 = this.positionInBuffer(l2.node, l2.remainder); if (a2.node === l2.node) - return this.findMatchesInNode(a2.node, s2, e2.startLineNumber, e2.startColumn, c2, d2, t2, n2, i2, r2, o2), o2; + return this.findMatchesInNode(a2.node, s2, e2.startLineNumber, e2.startColumn, c2, d2, t2, n2, i2, o2, r2), r2; let h2 = e2.startLineNumber, u2 = a2.node; for (; u2 !== l2.node; ) { let l3 = this.getLineFeedCnt(u2.piece.bufferIndex, c2, u2.piece.end); if (l3 >= 1) { let a3 = this._buffers[u2.piece.bufferIndex].lineStarts, d4 = this.offsetInBuffer(u2.piece.bufferIndex, u2.piece.start), p3 = a3[c2.line + l3], m2 = h2 === e2.startLineNumber ? e2.startColumn : 1; - if (r2 = this.findMatchesInNode(u2, s2, h2, m2, c2, this.positionInBuffer(u2, p3 - d4), t2, n2, i2, r2, o2), r2 >= i2) - return o2; + if (o2 = this.findMatchesInNode(u2, s2, h2, m2, c2, this.positionInBuffer(u2, p3 - d4), t2, n2, i2, o2, r2), o2 >= i2) + return r2; h2 += l3; } let d3 = h2 === e2.startLineNumber ? e2.startColumn - 1 : 0; if (h2 === e2.endLineNumber) { const a3 = this.getLineContent(h2).substring(d3, e2.endColumn - 1); - return r2 = this._findMatchesInLine(t2, s2, a3, e2.endLineNumber, d3, r2, o2, n2, i2), o2; + return o2 = this._findMatchesInLine(t2, s2, a3, e2.endLineNumber, d3, o2, r2, n2, i2), r2; } - if (r2 = this._findMatchesInLine(t2, s2, this.getLineContent(h2).substr(d3), h2, d3, r2, o2, n2, i2), r2 >= i2) - return o2; + if (o2 = this._findMatchesInLine(t2, s2, this.getLineContent(h2).substr(d3), h2, d3, o2, r2, n2, i2), o2 >= i2) + return r2; h2++, a2 = this.nodeAt2(h2, 1), u2 = a2.node, c2 = this.positionInBuffer(a2.node, a2.remainder); } if (h2 === e2.endLineNumber) { let a3 = h2 === e2.startLineNumber ? e2.startColumn - 1 : 0; const l3 = this.getLineContent(h2).substring(a3, e2.endColumn - 1); - return r2 = this._findMatchesInLine(t2, s2, l3, e2.endLineNumber, a3, r2, o2, n2, i2), o2; + return o2 = this._findMatchesInLine(t2, s2, l3, e2.endLineNumber, a3, o2, r2, n2, i2), r2; } let p2 = h2 === e2.startLineNumber ? e2.startColumn : 1; - return r2 = this.findMatchesInNode(l2.node, s2, h2, p2, c2, d2, t2, n2, i2, r2, o2), o2; + return o2 = this.findMatchesInNode(l2.node, s2, h2, p2, c2, d2, t2, n2, i2, o2, r2), r2; } - _findMatchesInLine(e2, t2, n2, i2, o2, r2, s2, a2, l2) { + _findMatchesInLine(e2, t2, n2, i2, r2, o2, s2, a2, l2) { const c2 = e2.wordSeparators; if (!a2 && e2.simpleSearch) { const t3 = e2.simpleSearch, a3 = t3.length, h3 = n2.length; let p2 = -a3; for (; (p2 = n2.indexOf(t3, p2 + a3)) !== -1; ) - if ((!c2 || Object(ee.e)(c2, n2, h3, p2, a3)) && (s2[r2++] = new u.b(new d.a(i2, p2 + 1 + o2, i2, p2 + 1 + a3 + o2), null), r2 >= l2)) - return r2; - return r2; + if ((!c2 || Object(ee.e)(c2, n2, h3, p2, a3)) && (s2[o2++] = new u.b(new d.a(i2, p2 + 1 + r2, i2, p2 + 1 + a3 + r2), null), o2 >= l2)) + return o2; + return o2; } let h2; t2.reset(0); do { - if (h2 = t2.next(n2), h2 && (s2[r2++] = Object(ee.d)(new d.a(i2, h2.index + 1 + o2, i2, h2.index + 1 + h2[0].length + o2), h2, a2), r2 >= l2)) - return r2; + if (h2 = t2.next(n2), h2 && (s2[o2++] = Object(ee.d)(new d.a(i2, h2.index + 1 + r2, i2, h2.index + 1 + h2[0].length + r2), h2, a2), o2 >= l2)) + return o2; } while (h2); - return r2; + return o2; } insert(e2, t2, n2 = false) { if (this._EOLNormalized = this._EOLNormalized && n2, this._lastVisitedLine.lineNumber = 0, this._lastVisitedLine.value = "", this.root !== V) { - let {node: n3, remainder: i2, nodeStartOffset: o2} = this.nodeAt(e2), r2 = n3.piece, s2 = r2.bufferIndex, a2 = this.positionInBuffer(n3, i2); - if (n3.piece.bufferIndex === 0 && r2.end.line === this._lastChangeBufferPos.line && r2.end.column === this._lastChangeBufferPos.column && o2 + r2.length === e2 && t2.length < 65535) + let {node: n3, remainder: i2, nodeStartOffset: r2} = this.nodeAt(e2), o2 = n3.piece, s2 = o2.bufferIndex, a2 = this.positionInBuffer(n3, i2); + if (n3.piece.bufferIndex === 0 && o2.end.line === this._lastChangeBufferPos.line && o2.end.column === this._lastChangeBufferPos.column && r2 + o2.length === e2 && t2.length < 65535) return this.appendToNode(n3, t2), void this.computeBufferMetadata(); - if (o2 === e2) + if (r2 === e2) this.insertContentToNodeLeft(t2, n3), this._searchCache.validate(e2); - else if (o2 + n3.piece.length > e2) { - let e3 = [], o3 = new oe(r2.bufferIndex, a2, r2.end, this.getLineFeedCnt(r2.bufferIndex, a2, r2.end), this.offsetInBuffer(s2, r2.end) - this.offsetInBuffer(s2, a2)); + else if (r2 + n3.piece.length > e2) { + let e3 = [], r3 = new re(o2.bufferIndex, a2, o2.end, this.getLineFeedCnt(o2.bufferIndex, a2, o2.end), this.offsetInBuffer(s2, o2.end) - this.offsetInBuffer(s2, a2)); if (this.shouldCheckCRLF() && this.endWithCR(t2)) { if (this.nodeCharCodeAt(n3, i2) === 10) { - let e4 = {line: o3.start.line + 1, column: 0}; - o3 = new oe(o3.bufferIndex, e4, o3.end, this.getLineFeedCnt(o3.bufferIndex, e4, o3.end), o3.length - 1), t2 += "\n"; + let e4 = {line: r3.start.line + 1, column: 0}; + r3 = new re(r3.bufferIndex, e4, r3.end, this.getLineFeedCnt(r3.bufferIndex, e4, r3.end), r3.length - 1), t2 += "\n"; } } if (this.shouldCheckCRLF() && this.startWithLF(t2)) { if (this.nodeCharCodeAt(n3, i2 - 1) === 13) { - let o4 = this.positionInBuffer(n3, i2 - 1); - this.deleteNodeTail(n3, o4), t2 = "\r" + t2, n3.piece.length === 0 && e3.push(n3); + let r4 = this.positionInBuffer(n3, i2 - 1); + this.deleteNodeTail(n3, r4), t2 = "\r" + t2, n3.piece.length === 0 && e3.push(n3); } else this.deleteNodeTail(n3, a2); } else this.deleteNodeTail(n3, a2); let l2 = this.createNewPieces(t2); - o3.length > 0 && this.rbInsertRight(n3, o3); + r3.length > 0 && this.rbInsertRight(n3, r3); let c2 = n3; for (let e4 = 0; e4 < l2.length; e4++) c2 = this.rbInsertRight(c2, l2[e4]); @@ -6217,49 +6217,49 @@ delete(e2, t2) { if (this._lastVisitedLine.lineNumber = 0, this._lastVisitedLine.value = "", t2 <= 0 || this.root === V) return; - let n2 = this.nodeAt(e2), i2 = this.nodeAt(e2 + t2), o2 = n2.node, r2 = i2.node; - if (o2 === r2) { - let r3 = this.positionInBuffer(o2, n2.remainder), s3 = this.positionInBuffer(o2, i2.remainder); + let n2 = this.nodeAt(e2), i2 = this.nodeAt(e2 + t2), r2 = n2.node, o2 = i2.node; + if (r2 === o2) { + let o3 = this.positionInBuffer(r2, n2.remainder), s3 = this.positionInBuffer(r2, i2.remainder); if (n2.nodeStartOffset === e2) { - if (t2 === o2.piece.length) { - let e3 = o2.next(); - return Z(this, o2), this.validateCRLFWithPrevNode(e3), void this.computeBufferMetadata(); + if (t2 === r2.piece.length) { + let e3 = r2.next(); + return Z(this, r2), this.validateCRLFWithPrevNode(e3), void this.computeBufferMetadata(); } - return this.deleteNodeHead(o2, s3), this._searchCache.validate(e2), this.validateCRLFWithPrevNode(o2), void this.computeBufferMetadata(); + return this.deleteNodeHead(r2, s3), this._searchCache.validate(e2), this.validateCRLFWithPrevNode(r2), void this.computeBufferMetadata(); } - return n2.nodeStartOffset + o2.piece.length === e2 + t2 ? (this.deleteNodeTail(o2, r3), this.validateCRLFWithNextNode(o2), void this.computeBufferMetadata()) : (this.shrinkNode(o2, r3, s3), void this.computeBufferMetadata()); + return n2.nodeStartOffset + r2.piece.length === e2 + t2 ? (this.deleteNodeTail(r2, o3), this.validateCRLFWithNextNode(r2), void this.computeBufferMetadata()) : (this.shrinkNode(r2, o3, s3), void this.computeBufferMetadata()); } - let s2 = [], a2 = this.positionInBuffer(o2, n2.remainder); - this.deleteNodeTail(o2, a2), this._searchCache.validate(e2), o2.piece.length === 0 && s2.push(o2); - let l2 = this.positionInBuffer(r2, i2.remainder); - this.deleteNodeHead(r2, l2), r2.piece.length === 0 && s2.push(r2); - for (let e3 = o2.next(); e3 !== V && e3 !== r2; e3 = e3.next()) + let s2 = [], a2 = this.positionInBuffer(r2, n2.remainder); + this.deleteNodeTail(r2, a2), this._searchCache.validate(e2), r2.piece.length === 0 && s2.push(r2); + let l2 = this.positionInBuffer(o2, i2.remainder); + this.deleteNodeHead(o2, l2), o2.piece.length === 0 && s2.push(o2); + for (let e3 = r2.next(); e3 !== V && e3 !== o2; e3 = e3.next()) s2.push(e3); - let c2 = o2.piece.length === 0 ? o2.prev() : o2; + let c2 = r2.piece.length === 0 ? r2.prev() : r2; this.deleteNodes(s2), this.validateCRLFWithNextNode(c2), this.computeBufferMetadata(); } insertContentToNodeLeft(e2, t2) { let n2 = []; if (this.shouldCheckCRLF() && this.endWithCR(e2) && this.startWithLF(t2)) { - let i3 = t2.piece, o3 = {line: i3.start.line + 1, column: 0}, r2 = new oe(i3.bufferIndex, o3, i3.end, this.getLineFeedCnt(i3.bufferIndex, o3, i3.end), i3.length - 1); - t2.piece = r2, e2 += "\n", Q(this, t2, -1, -1), t2.piece.length === 0 && n2.push(t2); + let i3 = t2.piece, r3 = {line: i3.start.line + 1, column: 0}, o2 = new re(i3.bufferIndex, r3, i3.end, this.getLineFeedCnt(i3.bufferIndex, r3, i3.end), i3.length - 1); + t2.piece = o2, e2 += "\n", Q(this, t2, -1, -1), t2.piece.length === 0 && n2.push(t2); } - let i2 = this.createNewPieces(e2), o2 = this.rbInsertLeft(t2, i2[i2.length - 1]); + let i2 = this.createNewPieces(e2), r2 = this.rbInsertLeft(t2, i2[i2.length - 1]); for (let e3 = i2.length - 2; e3 >= 0; e3--) - o2 = this.rbInsertLeft(o2, i2[e3]); - this.validateCRLFWithPrevNode(o2), this.deleteNodes(n2); + r2 = this.rbInsertLeft(r2, i2[e3]); + this.validateCRLFWithPrevNode(r2), this.deleteNodes(n2); } insertContentToNodeRight(e2, t2) { this.adjustCarriageReturnFromNext(e2, t2) && (e2 += "\n"); - let n2 = this.createNewPieces(e2), i2 = this.rbInsertRight(t2, n2[0]), o2 = i2; + let n2 = this.createNewPieces(e2), i2 = this.rbInsertRight(t2, n2[0]), r2 = i2; for (let e3 = 1; e3 < n2.length; e3++) - o2 = this.rbInsertRight(o2, n2[e3]); + r2 = this.rbInsertRight(r2, n2[e3]); this.validateCRLFWithPrevNode(i2); } positionInBuffer(e2, t2, n2) { - let i2 = e2.piece, o2 = e2.piece.bufferIndex, r2 = this._buffers[o2].lineStarts, s2 = r2[i2.start.line] + i2.start.column + t2, a2 = i2.start.line, l2 = i2.end.line, c2 = 0, d2 = 0, h2 = 0; - for (; a2 <= l2 && (c2 = a2 + (l2 - a2) / 2 | 0, h2 = r2[c2], c2 !== l2); ) - if (d2 = r2[c2 + 1], s2 < h2) + let i2 = e2.piece, r2 = e2.piece.bufferIndex, o2 = this._buffers[r2].lineStarts, s2 = o2[i2.start.line] + i2.start.column + t2, a2 = i2.start.line, l2 = i2.end.line, c2 = 0, d2 = 0, h2 = 0; + for (; a2 <= l2 && (c2 = a2 + (l2 - a2) / 2 | 0, h2 = o2[c2], c2 !== l2); ) + if (d2 = o2[c2 + 1], s2 < h2) l2 = c2 - 1; else { if (!(s2 >= d2)) @@ -6274,10 +6274,10 @@ let i2 = this._buffers[e2].lineStarts; if (n2.line === i2.length - 1) return n2.line - t2.line; - let o2 = i2[n2.line + 1], r2 = i2[n2.line] + n2.column; - if (o2 > r2 + 1) + let r2 = i2[n2.line + 1], o2 = i2[n2.line] + n2.column; + if (r2 > o2 + 1) return n2.line - t2.line; - let s2 = r2 - 1; + let s2 = o2 - 1; return this._buffers[e2].buffer.charCodeAt(s2) === 13 ? n2.line - t2.line + 1 : n2.line - t2.line; } offsetInBuffer(e2, t2) { @@ -6294,11 +6294,11 @@ const n4 = e2.charCodeAt(65534); let i3; n4 === 13 || n4 >= 55296 && n4 <= 56319 ? (i3 = e2.substring(0, 65534), e2 = e2.substring(65534)) : (i3 = e2.substring(0, 65535), e2 = e2.substring(65535)); - let o3 = ie(i3); - t3.push(new oe(this._buffers.length, {line: 0, column: 0}, {line: o3.length - 1, column: i3.length - o3[o3.length - 1]}, o3.length - 1, i3.length)), this._buffers.push(new re(i3, o3)); + let r3 = ie(i3); + t3.push(new re(this._buffers.length, {line: 0, column: 0}, {line: r3.length - 1, column: i3.length - r3[r3.length - 1]}, r3.length - 1, i3.length)), this._buffers.push(new oe(i3, r3)); } let n3 = ie(e2); - return t3.push(new oe(this._buffers.length, {line: 0, column: 0}, {line: n3.length - 1, column: e2.length - n3[n3.length - 1]}, n3.length - 1, e2.length)), this._buffers.push(new re(e2, n3)), t3; + return t3.push(new re(this._buffers.length, {line: 0, column: 0}, {line: n3.length - 1, column: e2.length - n3[n3.length - 1]}, n3.length - 1, e2.length)), this._buffers.push(new oe(e2, n3)), t3; } let t2 = this._buffers[0].buffer.length; const n2 = ie(e2, false); @@ -6314,44 +6314,44 @@ n2[e3] += t2; this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat(n2.slice(1)), this._buffers[0].buffer += e2; } - const o2 = this._buffers[0].buffer.length; - let r2 = this._buffers[0].lineStarts.length - 1, s2 = {line: r2, column: o2 - this._buffers[0].lineStarts[r2]}, a2 = new oe(0, i2, s2, this.getLineFeedCnt(0, i2, s2), o2 - t2); + const r2 = this._buffers[0].buffer.length; + let o2 = this._buffers[0].lineStarts.length - 1, s2 = {line: o2, column: r2 - this._buffers[0].lineStarts[o2]}, a2 = new re(0, i2, s2, this.getLineFeedCnt(0, i2, s2), r2 - t2); return this._lastChangeBufferPos = s2, [a2]; } getLineRawContent(e2, t2 = 0) { - let n2 = this.root, i2 = "", o2 = this._searchCache.get2(e2); - if (o2) { - n2 = o2.node; - let r2 = this.getAccumulatedValue(n2, e2 - o2.nodeStartLineNumber - 1), s2 = this._buffers[n2.piece.bufferIndex].buffer, a2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); - if (o2.nodeStartLineNumber + n2.piece.lineFeedCnt !== e2) { - let i3 = this.getAccumulatedValue(n2, e2 - o2.nodeStartLineNumber); - return s2.substring(a2 + r2, a2 + i3 - t2); + let n2 = this.root, i2 = "", r2 = this._searchCache.get2(e2); + if (r2) { + n2 = r2.node; + let o2 = this.getAccumulatedValue(n2, e2 - r2.nodeStartLineNumber - 1), s2 = this._buffers[n2.piece.bufferIndex].buffer, a2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); + if (r2.nodeStartLineNumber + n2.piece.lineFeedCnt !== e2) { + let i3 = this.getAccumulatedValue(n2, e2 - r2.nodeStartLineNumber); + return s2.substring(a2 + o2, a2 + i3 - t2); } - i2 = s2.substring(a2 + r2, a2 + n2.piece.length); + i2 = s2.substring(a2 + o2, a2 + n2.piece.length); } else { - let o3 = 0; - const r2 = e2; + let r3 = 0; + const o2 = e2; for (; n2 !== V; ) if (n2.left !== V && n2.lf_left >= e2 - 1) n2 = n2.left; else { if (n2.lf_left + n2.piece.lineFeedCnt > e2 - 1) { let i3 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2), s2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 1), a2 = this._buffers[n2.piece.bufferIndex].buffer, l2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); - return o3 += n2.size_left, this._searchCache.set({node: n2, nodeStartOffset: o3, nodeStartLineNumber: r2 - (e2 - 1 - n2.lf_left)}), a2.substring(l2 + i3, l2 + s2 - t2); + return r3 += n2.size_left, this._searchCache.set({node: n2, nodeStartOffset: r3, nodeStartLineNumber: o2 - (e2 - 1 - n2.lf_left)}), a2.substring(l2 + i3, l2 + s2 - t2); } if (n2.lf_left + n2.piece.lineFeedCnt === e2 - 1) { - let t3 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2), o4 = this._buffers[n2.piece.bufferIndex].buffer, r3 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); - i2 = o4.substring(r3 + t3, r3 + n2.piece.length); + let t3 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2), r4 = this._buffers[n2.piece.bufferIndex].buffer, o3 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); + i2 = r4.substring(o3 + t3, o3 + n2.piece.length); break; } - e2 -= n2.lf_left + n2.piece.lineFeedCnt, o3 += n2.size_left + n2.piece.length, n2 = n2.right; + e2 -= n2.lf_left + n2.piece.lineFeedCnt, r3 += n2.size_left + n2.piece.length, n2 = n2.right; } } for (n2 = n2.next(); n2 !== V; ) { let e3 = this._buffers[n2.piece.bufferIndex].buffer; if (n2.piece.lineFeedCnt > 0) { - let o3 = this.getAccumulatedValue(n2, 0), r2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); - return i2 += e3.substring(r2, r2 + o3 - t2), i2; + let r3 = this.getAccumulatedValue(n2, 0), o2 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); + return i2 += e3.substring(o2, o2 + r3 - t2), i2; } { let t3 = this.offsetInBuffer(n2.piece.bufferIndex, n2.piece.start); @@ -6368,48 +6368,48 @@ this._lineCnt = t2, this._length = n2, this._searchCache.validate(this._length); } getIndexOf(e2, t2) { - let n2 = e2.piece, i2 = this.positionInBuffer(e2, t2), o2 = i2.line - n2.start.line; + let n2 = e2.piece, i2 = this.positionInBuffer(e2, t2), r2 = i2.line - n2.start.line; if (this.offsetInBuffer(n2.bufferIndex, n2.end) - this.offsetInBuffer(n2.bufferIndex, n2.start) === t2) { let t3 = this.getLineFeedCnt(e2.piece.bufferIndex, n2.start, i2); - if (t3 !== o2) + if (t3 !== r2) return {index: t3, remainder: 0}; } - return {index: o2, remainder: i2.column}; + return {index: r2, remainder: i2.column}; } getAccumulatedValue(e2, t2) { if (t2 < 0) return 0; - let n2 = e2.piece, i2 = this._buffers[n2.bufferIndex].lineStarts, o2 = n2.start.line + t2 + 1; - return o2 > n2.end.line ? i2[n2.end.line] + n2.end.column - i2[n2.start.line] - n2.start.column : i2[o2] - i2[n2.start.line] - n2.start.column; + let n2 = e2.piece, i2 = this._buffers[n2.bufferIndex].lineStarts, r2 = n2.start.line + t2 + 1; + return r2 > n2.end.line ? i2[n2.end.line] + n2.end.column - i2[n2.start.line] - n2.start.column : i2[r2] - i2[n2.start.line] - n2.start.column; } deleteNodeTail(e2, t2) { - const n2 = e2.piece, i2 = n2.lineFeedCnt, o2 = this.offsetInBuffer(n2.bufferIndex, n2.end), r2 = t2, s2 = this.offsetInBuffer(n2.bufferIndex, r2), a2 = this.getLineFeedCnt(n2.bufferIndex, n2.start, r2), l2 = a2 - i2, c2 = s2 - o2, d2 = n2.length + c2; - e2.piece = new oe(n2.bufferIndex, n2.start, r2, a2, d2), Q(this, e2, c2, l2); + const n2 = e2.piece, i2 = n2.lineFeedCnt, r2 = this.offsetInBuffer(n2.bufferIndex, n2.end), o2 = t2, s2 = this.offsetInBuffer(n2.bufferIndex, o2), a2 = this.getLineFeedCnt(n2.bufferIndex, n2.start, o2), l2 = a2 - i2, c2 = s2 - r2, d2 = n2.length + c2; + e2.piece = new re(n2.bufferIndex, n2.start, o2, a2, d2), Q(this, e2, c2, l2); } deleteNodeHead(e2, t2) { - const n2 = e2.piece, i2 = n2.lineFeedCnt, o2 = this.offsetInBuffer(n2.bufferIndex, n2.start), r2 = t2, s2 = this.getLineFeedCnt(n2.bufferIndex, r2, n2.end), a2 = s2 - i2, l2 = o2 - this.offsetInBuffer(n2.bufferIndex, r2), c2 = n2.length + l2; - e2.piece = new oe(n2.bufferIndex, r2, n2.end, s2, c2), Q(this, e2, l2, a2); + const n2 = e2.piece, i2 = n2.lineFeedCnt, r2 = this.offsetInBuffer(n2.bufferIndex, n2.start), o2 = t2, s2 = this.getLineFeedCnt(n2.bufferIndex, o2, n2.end), a2 = s2 - i2, l2 = r2 - this.offsetInBuffer(n2.bufferIndex, o2), c2 = n2.length + l2; + e2.piece = new re(n2.bufferIndex, o2, n2.end, s2, c2), Q(this, e2, l2, a2); } shrinkNode(e2, t2, n2) { - const i2 = e2.piece, o2 = i2.start, r2 = i2.end, s2 = i2.length, a2 = i2.lineFeedCnt, l2 = t2, c2 = this.getLineFeedCnt(i2.bufferIndex, i2.start, l2), d2 = this.offsetInBuffer(i2.bufferIndex, t2) - this.offsetInBuffer(i2.bufferIndex, o2); - e2.piece = new oe(i2.bufferIndex, i2.start, l2, c2, d2), Q(this, e2, d2 - s2, c2 - a2); - let h2 = new oe(i2.bufferIndex, n2, r2, this.getLineFeedCnt(i2.bufferIndex, n2, r2), this.offsetInBuffer(i2.bufferIndex, r2) - this.offsetInBuffer(i2.bufferIndex, n2)), u2 = this.rbInsertRight(e2, h2); + const i2 = e2.piece, r2 = i2.start, o2 = i2.end, s2 = i2.length, a2 = i2.lineFeedCnt, l2 = t2, c2 = this.getLineFeedCnt(i2.bufferIndex, i2.start, l2), d2 = this.offsetInBuffer(i2.bufferIndex, t2) - this.offsetInBuffer(i2.bufferIndex, r2); + e2.piece = new re(i2.bufferIndex, i2.start, l2, c2, d2), Q(this, e2, d2 - s2, c2 - a2); + let h2 = new re(i2.bufferIndex, n2, o2, this.getLineFeedCnt(i2.bufferIndex, n2, o2), this.offsetInBuffer(i2.bufferIndex, o2) - this.offsetInBuffer(i2.bufferIndex, n2)), u2 = this.rbInsertRight(e2, h2); this.validateCRLFWithPrevNode(u2); } appendToNode(e2, t2) { this.adjustCarriageReturnFromNext(t2, e2) && (t2 += "\n"); const n2 = this.shouldCheckCRLF() && this.startWithLF(t2) && this.endWithCR(e2), i2 = this._buffers[0].buffer.length; this._buffers[0].buffer += t2; - const o2 = ie(t2, false); - for (let e3 = 0; e3 < o2.length; e3++) - o2[e3] += i2; + const r2 = ie(t2, false); + for (let e3 = 0; e3 < r2.length; e3++) + r2[e3] += i2; if (n2) { let e3 = this._buffers[0].lineStarts[this._buffers[0].lineStarts.length - 2]; this._buffers[0].lineStarts.pop(), this._lastChangeBufferPos = {line: this._lastChangeBufferPos.line - 1, column: i2 - e3}; } - this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat(o2.slice(1)); - const r2 = this._buffers[0].lineStarts.length - 1, s2 = {line: r2, column: this._buffers[0].buffer.length - this._buffers[0].lineStarts[r2]}, a2 = e2.piece.length + t2.length, l2 = e2.piece.lineFeedCnt, c2 = this.getLineFeedCnt(0, e2.piece.start, s2), d2 = c2 - l2; - e2.piece = new oe(e2.piece.bufferIndex, e2.piece.start, s2, c2, a2), this._lastChangeBufferPos = s2, Q(this, e2, t2.length, d2); + this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat(r2.slice(1)); + const o2 = this._buffers[0].lineStarts.length - 1, s2 = {line: o2, column: this._buffers[0].buffer.length - this._buffers[0].lineStarts[o2]}, a2 = e2.piece.length + t2.length, l2 = e2.piece.lineFeedCnt, c2 = this.getLineFeedCnt(0, e2.piece.start, s2), d2 = c2 - l2; + e2.piece = new re(e2.piece.bufferIndex, e2.piece.start, s2, c2, a2), this._lastChangeBufferPos = s2, Q(this, e2, t2.length, d2); } nodeAt(e2) { let t2 = this.root, n2 = this._searchCache.get(e2); @@ -6436,14 +6436,14 @@ n2 = n2.left; else { if (n2.lf_left + n2.piece.lineFeedCnt > e2 - 1) { - let o2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2), r2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 1); - return i2 += n2.size_left, {node: n2, remainder: Math.min(o2 + t2 - 1, r2), nodeStartOffset: i2}; + let r2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2), o2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 1); + return i2 += n2.size_left, {node: n2, remainder: Math.min(r2 + t2 - 1, o2), nodeStartOffset: i2}; } if (n2.lf_left + n2.piece.lineFeedCnt === e2 - 1) { - let o2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2); - if (o2 + t2 - 1 <= n2.piece.length) - return {node: n2, remainder: o2 + t2 - 1, nodeStartOffset: i2}; - t2 -= n2.piece.length - o2; + let r2 = this.getAccumulatedValue(n2, e2 - n2.lf_left - 2); + if (r2 + t2 - 1 <= n2.piece.length) + return {node: n2, remainder: r2 + t2 - 1, nodeStartOffset: i2}; + t2 -= n2.piece.length - r2; break; } e2 -= n2.lf_left + n2.piece.lineFeedCnt, i2 += n2.size_left + n2.piece.length, n2 = n2.right; @@ -6482,8 +6482,8 @@ return e2.charCodeAt(0) === 10; if (e2 === V || e2.piece.lineFeedCnt === 0) return false; - let t2 = e2.piece, n2 = this._buffers[t2.bufferIndex].lineStarts, i2 = t2.start.line, o2 = n2[i2] + t2.start.column; - return i2 !== n2.length - 1 && (!(n2[i2 + 1] > o2 + 1) && this._buffers[t2.bufferIndex].buffer.charCodeAt(o2) === 10); + let t2 = e2.piece, n2 = this._buffers[t2.bufferIndex].lineStarts, i2 = t2.start.line, r2 = n2[i2] + t2.start.column; + return i2 !== n2.length - 1 && (!(n2[i2 + 1] > r2 + 1) && this._buffers[t2.bufferIndex].buffer.charCodeAt(r2) === 10); } endWithCR(e2) { return typeof e2 == "string" ? e2.charCodeAt(e2.length - 1) === 13 : e2 !== V && e2.piece.lineFeedCnt !== 0 && this.nodeCharCodeAt(e2, e2.piece.length - 1) === 13; @@ -6501,13 +6501,13 @@ } } fixCRLF(e2, t2) { - let n2, i2 = [], o2 = this._buffers[e2.piece.bufferIndex].lineStarts; - n2 = e2.piece.end.column === 0 ? {line: e2.piece.end.line - 1, column: o2[e2.piece.end.line] - o2[e2.piece.end.line - 1] - 1} : {line: e2.piece.end.line, column: e2.piece.end.column - 1}; - const r2 = e2.piece.length - 1, s2 = e2.piece.lineFeedCnt - 1; - e2.piece = new oe(e2.piece.bufferIndex, e2.piece.start, n2, s2, r2), Q(this, e2, -1, -1), e2.piece.length === 0 && i2.push(e2); + let n2, i2 = [], r2 = this._buffers[e2.piece.bufferIndex].lineStarts; + n2 = e2.piece.end.column === 0 ? {line: e2.piece.end.line - 1, column: r2[e2.piece.end.line] - r2[e2.piece.end.line - 1] - 1} : {line: e2.piece.end.line, column: e2.piece.end.column - 1}; + const o2 = e2.piece.length - 1, s2 = e2.piece.lineFeedCnt - 1; + e2.piece = new re(e2.piece.bufferIndex, e2.piece.start, n2, s2, o2), Q(this, e2, -1, -1), e2.piece.length === 0 && i2.push(e2); let a2 = {line: t2.piece.start.line + 1, column: 0}; const l2 = t2.piece.length - 1, c2 = this.getLineFeedCnt(t2.piece.bufferIndex, a2, t2.piece.end); - t2.piece = new oe(t2.piece.bufferIndex, a2, t2.piece.end, c2, l2), Q(this, t2, -1, -1), t2.piece.length === 0 && i2.push(t2); + t2.piece = new re(t2.piece.bufferIndex, a2, t2.piece.end, c2, l2), Q(this, t2, -1, -1), t2.piece.length === 0 && i2.push(t2); let d2 = this.createNewPieces("\r\n"); this.rbInsertRight(e2, d2[0]); for (let e3 = 0; e3 < i2.length; e3++) @@ -6520,8 +6520,8 @@ if (e2 += "\n", n2.piece.length === 1) Z(this, n2); else { - const e3 = n2.piece, t3 = {line: e3.start.line + 1, column: 0}, i2 = e3.length - 1, o2 = this.getLineFeedCnt(e3.bufferIndex, t3, e3.end); - n2.piece = new oe(e3.bufferIndex, t3, e3.end, o2, i2), Q(this, n2, -1, -1); + const e3 = n2.piece, t3 = {line: e3.start.line + 1, column: 0}, i2 = e3.length - 1, r2 = this.getLineFeedCnt(e3.bufferIndex, t3, e3.end); + n2.piece = new re(e3.bufferIndex, t3, e3.end, r2, i2), Q(this, n2, -1, -1); } return true; } @@ -6537,8 +6537,8 @@ getNodeContent(e2) { if (e2 === V) return ""; - let t2, n2 = this._buffers[e2.piece.bufferIndex], i2 = e2.piece, o2 = this.offsetInBuffer(i2.bufferIndex, i2.start), r2 = this.offsetInBuffer(i2.bufferIndex, i2.end); - return t2 = n2.buffer.substring(o2, r2), t2; + let t2, n2 = this._buffers[e2.piece.bufferIndex], i2 = e2.piece, r2 = this.offsetInBuffer(i2.bufferIndex, i2.start), o2 = this.offsetInBuffer(i2.bufferIndex, i2.end); + return t2 = n2.buffer.substring(r2, o2), t2; } getPieceContent(e2) { let t2 = this._buffers[e2.bufferIndex], n2 = this.offsetInBuffer(e2.bufferIndex, e2.start), i2 = this.offsetInBuffer(e2.bufferIndex, e2.end); @@ -6571,8 +6571,8 @@ } var ce = n(124), de = n(180); class he { - constructor(e2, t2, n2, i2, r2, s2, a2) { - this._onDidChangeContent = new o.a(), this._BOM = t2, this._mightContainNonBasicASCII = !s2, this._mightContainRTL = i2, this._mightContainUnusualLineTerminators = r2, this._pieceTree = new le(e2, n2, a2); + constructor(e2, t2, n2, i2, o2, s2, a2) { + this._onDidChangeContent = new r.a(), this._BOM = t2, this._mightContainNonBasicASCII = !s2, this._mightContainRTL = i2, this._mightContainUnusualLineTerminators = o2, this._pieceTree = new le(e2, n2, a2); } dispose() { this._onDidChangeContent.dispose(); @@ -6606,8 +6606,8 @@ } getRangeAt(e2, t2) { let n2 = e2 + t2; - const i2 = this.getPositionAt(e2), o2 = this.getPositionAt(n2); - return new d.a(i2.lineNumber, i2.column, o2.lineNumber, o2.column); + const i2 = this.getPositionAt(e2), r2 = this.getPositionAt(n2); + return new d.a(i2.lineNumber, i2.column, r2.lineNumber, r2.column); } getValueInRange(e2, t2 = 0) { if (e2.isEmpty()) @@ -6626,13 +6626,13 @@ getCharacterCountInRange(e2, t2 = 0) { if (this._mightContainNonBasicASCII) { let n2 = 0; - const i2 = e2.startLineNumber, o2 = e2.endLineNumber; - for (let t3 = i2; t3 <= o2; t3++) { - const r2 = this.getLineContent(t3), a2 = t3 === i2 ? e2.startColumn - 1 : 0, l2 = t3 === o2 ? e2.endColumn - 1 : r2.length; + const i2 = e2.startLineNumber, r2 = e2.endLineNumber; + for (let t3 = i2; t3 <= r2; t3++) { + const o2 = this.getLineContent(t3), a2 = t3 === i2 ? e2.startColumn - 1 : 0, l2 = t3 === r2 ? e2.endColumn - 1 : o2.length; for (let e3 = a2; e3 < l2; e3++) - s.F(r2.charCodeAt(e3)) ? (n2 += 1, e3 += 1) : n2 += 1; + s.F(o2.charCodeAt(e3)) ? (n2 += 1, e3 += 1) : n2 += 1; } - return n2 += this._getEndOfLine(t2).length * (o2 - i2), n2; + return n2 += this._getEndOfLine(t2).length * (r2 - i2), n2; } return this.getValueLengthInRange(e2, t2); } @@ -6678,14 +6678,14 @@ this._pieceTree.setEOL(e2); } applyEdits(e2, t2, n2) { - let i2 = this._mightContainRTL, o2 = this._mightContainUnusualLineTerminators, r2 = this._mightContainNonBasicASCII, a2 = true, l2 = []; + let i2 = this._mightContainRTL, r2 = this._mightContainUnusualLineTerminators, o2 = this._mightContainNonBasicASCII, a2 = true, l2 = []; for (let t3 = 0; t3 < e2.length; t3++) { let n3 = e2[t3]; a2 && n3._isTracked && (a2 = false); let c3 = n3.range; if (n3.text) { let e3 = true; - r2 || (e3 = !s.B(n3.text), r2 = e3), !i2 && e3 && (i2 = s.m(n3.text)), !o2 && e3 && (o2 = s.n(n3.text)); + o2 || (e3 = !s.B(n3.text), o2 = e3), !i2 && e3 && (i2 = s.m(n3.text)), !r2 && e3 && (r2 = s.n(n3.text)); } let d3 = "", h3 = 0, u2 = 0, p3 = 0; if (n3.text) { @@ -6722,12 +6722,12 @@ let e3 = 0; p2 = []; for (let t3 = 0; t3 < l2.length; t3++) { - const n3 = l2[t3], i3 = d2[t3], o3 = this.getValueInRange(n3.range), r3 = n3.rangeOffset + e3; - e3 += n3.text.length - o3.length, p2[t3] = {sortIndex: n3.sortIndex, identifier: n3.identifier, range: i3, text: o3, textChange: new de.a(n3.rangeOffset, o3, r3, n3.text)}; + const n3 = l2[t3], i3 = d2[t3], r3 = this.getValueInRange(n3.range), o3 = n3.rangeOffset + e3; + e3 += n3.text.length - r3.length, p2[t3] = {sortIndex: n3.sortIndex, identifier: n3.identifier, range: i3, text: r3, textChange: new de.a(n3.rangeOffset, r3, o3, n3.text)}; } c2 || p2.sort((e4, t3) => e4.sortIndex - t3.sortIndex); } - this._mightContainRTL = i2, this._mightContainUnusualLineTerminators = o2, this._mightContainNonBasicASCII = r2; + this._mightContainRTL = i2, this._mightContainUnusualLineTerminators = r2, this._mightContainNonBasicASCII = o2; const m2 = this._doApplyEdits(l2); let g2 = null; if (t2 && h2.length > 0) { @@ -6747,26 +6747,26 @@ } _toSingleEditOperation(e2) { let t2 = false; - const n2 = e2[0].range, i2 = e2[e2.length - 1].range, o2 = new d.a(n2.startLineNumber, n2.startColumn, i2.endLineNumber, i2.endColumn); - let r2 = n2.startLineNumber, s2 = n2.startColumn; + const n2 = e2[0].range, i2 = e2[e2.length - 1].range, r2 = new d.a(n2.startLineNumber, n2.startColumn, i2.endLineNumber, i2.endColumn); + let o2 = n2.startLineNumber, s2 = n2.startColumn; const a2 = []; for (let n3 = 0, i3 = e2.length; n3 < i3; n3++) { - const i4 = e2[n3], o3 = i4.range; - t2 = t2 || i4.forceMoveMarkers, a2.push(this.getValueInRange(new d.a(r2, s2, o3.startLineNumber, o3.startColumn))), i4.text.length > 0 && a2.push(i4.text), r2 = o3.endLineNumber, s2 = o3.endColumn; + const i4 = e2[n3], r3 = i4.range; + t2 = t2 || i4.forceMoveMarkers, a2.push(this.getValueInRange(new d.a(o2, s2, r3.startLineNumber, r3.startColumn))), i4.text.length > 0 && a2.push(i4.text), o2 = r3.endLineNumber, s2 = r3.endColumn; } const l2 = a2.join(""), [c2, h2, u2] = Object(ce.f)(l2); - return {sortIndex: 0, identifier: e2[0].identifier, range: o2, rangeOffset: this.getOffsetAt(o2.startLineNumber, o2.startColumn), rangeLength: this.getValueLengthInRange(o2, 0), text: l2, eolCount: c2, firstLineLength: h2, lastLineLength: u2, forceMoveMarkers: t2, isAutoWhitespaceEdit: false}; + return {sortIndex: 0, identifier: e2[0].identifier, range: r2, rangeOffset: this.getOffsetAt(r2.startLineNumber, r2.startColumn), rangeLength: this.getValueLengthInRange(r2, 0), text: l2, eolCount: c2, firstLineLength: h2, lastLineLength: u2, forceMoveMarkers: t2, isAutoWhitespaceEdit: false}; } _doApplyEdits(e2) { e2.sort(he._sortOpsDescending); let t2 = []; for (let n2 = 0; n2 < e2.length; n2++) { let i2 = e2[n2]; - const o2 = i2.range.startLineNumber, r2 = i2.range.startColumn, s2 = i2.range.endLineNumber, a2 = i2.range.endColumn; - if (o2 === s2 && r2 === a2 && i2.text.length === 0) + const r2 = i2.range.startLineNumber, o2 = i2.range.startColumn, s2 = i2.range.endLineNumber, a2 = i2.range.endColumn; + if (r2 === s2 && o2 === a2 && i2.text.length === 0) continue; i2.text ? (this._pieceTree.delete(i2.rangeOffset, i2.rangeLength), this._pieceTree.insert(i2.rangeOffset, i2.text, true)) : this._pieceTree.delete(i2.rangeOffset, i2.rangeLength); - const l2 = new d.a(o2, r2, s2, a2); + const l2 = new d.a(r2, o2, s2, a2); t2.push({range: l2, rangeLength: i2.rangeLength, text: i2.text, rangeOffset: i2.rangeOffset, forceMoveMarkers: i2.forceMoveMarkers}); } return t2; @@ -6775,15 +6775,15 @@ return this._pieceTree.findMatchesLineByLine(e2, t2, n2, i2); } static _getInverseEditRanges(e2) { - let t2 = [], n2 = 0, i2 = 0, o2 = null; - for (let r2 = 0, s2 = e2.length; r2 < s2; r2++) { - let s3, a2, l2, c2 = e2[r2]; - if (o2 ? o2.range.endLineNumber === c2.range.startLineNumber ? (s3 = n2, a2 = i2 + (c2.range.startColumn - o2.range.endColumn)) : (s3 = n2 + (c2.range.startLineNumber - o2.range.endLineNumber), a2 = c2.range.startColumn) : (s3 = c2.range.startLineNumber, a2 = c2.range.startColumn), c2.text.length > 0) { + let t2 = [], n2 = 0, i2 = 0, r2 = null; + for (let o2 = 0, s2 = e2.length; o2 < s2; o2++) { + let s3, a2, l2, c2 = e2[o2]; + if (r2 ? r2.range.endLineNumber === c2.range.startLineNumber ? (s3 = n2, a2 = i2 + (c2.range.startColumn - r2.range.endColumn)) : (s3 = n2 + (c2.range.startLineNumber - r2.range.endLineNumber), a2 = c2.range.startColumn) : (s3 = c2.range.startLineNumber, a2 = c2.range.startColumn), c2.text.length > 0) { const e3 = c2.eolCount + 1; l2 = e3 === 1 ? new d.a(s3, a2, s3, a2 + c2.firstLineLength) : new d.a(s3, a2, s3 + e3 - 1, c2.lastLineLength + 1); } else l2 = new d.a(s3, a2, s3, a2); - n2 = l2.endLineNumber, i2 = l2.endColumn, t2.push(l2), o2 = c2; + n2 = l2.endLineNumber, i2 = l2.endColumn, t2.push(l2), r2 = c2; } return t2; } @@ -6797,8 +6797,8 @@ } } class ue { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2) { - this._chunks = e2, this._bom = t2, this._cr = n2, this._lf = i2, this._crlf = o2, this._containsRTL = r2, this._containsUnusualLineTerminators = s2, this._isBasicASCII = a2, this._normalizeEOL = l2; + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2) { + this._chunks = e2, this._bom = t2, this._cr = n2, this._lf = i2, this._crlf = r2, this._containsRTL = o2, this._containsUnusualLineTerminators = s2, this._isBasicASCII = a2, this._normalizeEOL = l2; } _getEOL(e2) { const t2 = this._cr + this._lf + this._crlf, n2 = this._cr + this._crlf; @@ -6809,8 +6809,8 @@ let n2 = this._chunks; if (this._normalizeEOL && (t2 === "\r\n" && (this._cr > 0 || this._lf > 0) || t2 === "\n" && (this._cr > 0 || this._crlf > 0))) for (let e3 = 0, i2 = n2.length; e3 < i2; e3++) { - let i3 = n2[e3].buffer.replace(/\r\n|\r|\n/g, t2), o2 = ie(i3); - n2[e3] = new re(i3, o2); + let i3 = n2[e3].buffer.replace(/\r\n|\r|\n/g, t2), r2 = ie(i3); + n2[e3] = new oe(i3, r2); } return new he(n2, this._bom, t2, this._containsRTL, this._containsUnusualLineTerminators, this._isBasicASCII, this._normalizeEOL); } @@ -6832,15 +6832,15 @@ _acceptChunk2(e2) { const t2 = function(e3, t3) { e3.length = 0, e3[0] = 0; - let n2 = 1, i2 = 0, o2 = 0, r2 = 0, s2 = true; + let n2 = 1, i2 = 0, r2 = 0, o2 = 0, s2 = true; for (let a3 = 0, l2 = t3.length; a3 < l2; a3++) { const c2 = t3.charCodeAt(a3); - c2 === 13 ? a3 + 1 < l2 && t3.charCodeAt(a3 + 1) === 10 ? (r2++, e3[n2++] = a3 + 2, a3++) : (i2++, e3[n2++] = a3 + 1) : c2 === 10 ? (o2++, e3[n2++] = a3 + 1) : s2 && c2 !== 9 && (c2 < 32 || c2 > 126) && (s2 = false); + c2 === 13 ? a3 + 1 < l2 && t3.charCodeAt(a3 + 1) === 10 ? (o2++, e3[n2++] = a3 + 2, a3++) : (i2++, e3[n2++] = a3 + 1) : c2 === 10 ? (r2++, e3[n2++] = a3 + 1) : s2 && c2 !== 9 && (c2 < 32 || c2 > 126) && (s2 = false); } - const a2 = new ne(te(e3), i2, o2, r2, s2); + const a2 = new ne(te(e3), i2, r2, o2, s2); return e3.length = 0, a2; }(this._tmpLineStarts, e2); - this.chunks.push(new re(e2, t2.lineStarts)), this.cr += t2.cr, this.lf += t2.lf, this.crlf += t2.crlf, this.isBasicASCII && (this.isBasicASCII = t2.isBasicASCII), this.isBasicASCII || this.containsRTL || (this.containsRTL = s.m(e2)), this.isBasicASCII || this.containsUnusualLineTerminators || (this.containsUnusualLineTerminators = s.n(e2)); + this.chunks.push(new oe(e2, t2.lineStarts)), this.cr += t2.cr, this.lf += t2.lf, this.crlf += t2.crlf, this.isBasicASCII && (this.isBasicASCII = t2.isBasicASCII), this.isBasicASCII || this.containsRTL || (this.containsRTL = s.m(e2)), this.isBasicASCII || this.containsUnusualLineTerminators || (this.containsUnusualLineTerminators = s.n(e2)); } finish(e2 = true) { return this._finish(), new ue(this.chunks, this.BOM, this.cr, this.lf, this.crlf, this.containsRTL, this.containsUnusualLineTerminators, this.isBasicASCII, e2); @@ -6892,8 +6892,8 @@ return false; } static merge(e2, t2) { - const n2 = [].concat(e2.changes).concat(t2.changes), i2 = t2.versionId, o2 = e2.isUndoing || t2.isUndoing, r2 = e2.isRedoing || t2.isRedoing; - return new ve(n2, i2, o2, r2); + const n2 = [].concat(e2.changes).concat(t2.changes), i2 = t2.versionId, r2 = e2.isUndoing || t2.isUndoing, o2 = e2.isRedoing || t2.isRedoing; + return new ve(n2, i2, r2, o2); } } class we { @@ -6908,7 +6908,7 @@ return {changes: [].concat(e2.changes).concat(t2.changes), eol: t2.eol, versionId: t2.versionId, isUndoing: e2.isUndoing || t2.isUndoing, isRedoing: e2.isRedoing || t2.isRedoing, isFlush: e2.isFlush || t2.isFlush}; } } - var ye = n(15), Ce = n(111), xe = n(12), Se = n(90), ke = n(158), Ee = n(11); + var ye = n(16), Ce = n(111), xe = n(12), Se = n(90), ke = n(158), Ee = n(11); class Te { constructor() { this._beginState = [], this._valid = [], this._len = 0, this._invalidLineStartIndex = 0; @@ -6958,10 +6958,10 @@ const i2 = this.getBeginState(t2 + 1); if (i2 === null || !n2.equals(i2)) return this._setBeginState(t2 + 1, n2), void this._invalidateLine(t2 + 1); - let o2 = t2 + 1; - for (; o2 < e2 && this._isValid(o2); ) - o2++; - this._invalidLineStartIndex = o2; + let r2 = t2 + 1; + for (; r2 < e2 && this._isValid(r2); ) + r2++; + this._invalidLineStartIndex = r2; } setFakeTokens(e2) { this._setValid(e2, false); @@ -6979,7 +6979,7 @@ e2.lineNumber - 1 >= this._len || this._insertLines(e2.lineNumber, t2); } } - class Le extends r.a { + class Le extends o.a { constructor(e2) { super(), this._isDisposed = false, this._textModel = e2, this._tokenizationStateStore = new Te(), this._tokenizationSupport = null, this._register(xe.C.onDidChange((e3) => { const t2 = this._textModel.getLanguageIdentifier(); @@ -7004,14 +7004,14 @@ _resetTokenizationState() { const [e2, t2] = function(e3) { const t3 = e3.getLanguageIdentifier(); - let n2 = e3.isTooLargeForTokenization() ? null : xe.C.get(t3.language), o2 = null; + let n2 = e3.isTooLargeForTokenization() ? null : xe.C.get(t3.language), r2 = null; if (n2) try { - o2 = n2.getInitialState(); + r2 = n2.getInitialState(); } catch (e4) { Object(i.e)(e4), n2 = null; } - return [n2, o2]; + return [n2, r2]; }(this._textModel); this._tokenizationSupport = e2, this._tokenizationStateStore.flush(t2), this._beginBackgroundTokenization(); } @@ -7057,9 +7057,9 @@ _updateTokensUntilLine(e2, t2) { if (!this._tokenizationSupport) return; - const n2 = this._textModel.getLanguageIdentifier(), i2 = this._textModel.getLineCount(), o2 = t2 - 1; - for (let t3 = this._tokenizationStateStore.invalidLineStartIndex; t3 <= o2; t3++) { - const o3 = this._textModel.getLineContent(t3 + 1), r2 = this._tokenizationStateStore.getBeginState(t3), s2 = Ne(n2, this._tokenizationSupport, o3, r2); + const n2 = this._textModel.getLanguageIdentifier(), i2 = this._textModel.getLineCount(), r2 = t2 - 1; + for (let t3 = this._tokenizationStateStore.invalidLineStartIndex; t3 <= r2; t3++) { + const r3 = this._textModel.getLineContent(t3 + 1), o2 = this._tokenizationStateStore.getBeginState(t3), s2 = Ne(n2, this._tokenizationSupport, r3, o2); e2.add(t3 + 1, s2.tokens), this._tokenizationStateStore.setEndState(i2, t3, s2.endState), t3 = this._tokenizationStateStore.invalidLineStartIndex - 1; } } @@ -7070,20 +7070,20 @@ return; if (t2 <= this._tokenizationStateStore.invalidLineStartIndex) return void this._updateTokensUntilLine(e2, n2); - let i2 = this._textModel.getLineFirstNonWhitespaceColumn(t2), o2 = [], r2 = null; + let i2 = this._textModel.getLineFirstNonWhitespaceColumn(t2), r2 = [], o2 = null; for (let e3 = t2 - 1; i2 > 0 && e3 >= 1; e3--) { let t3 = this._textModel.getLineFirstNonWhitespaceColumn(e3); if (t3 !== 0 && t3 < i2) { - if (r2 = this._tokenizationStateStore.getBeginState(e3 - 1), r2) + if (o2 = this._tokenizationStateStore.getBeginState(e3 - 1), o2) break; - o2.push(this._textModel.getLineContent(e3)), i2 = t3; + r2.push(this._textModel.getLineContent(e3)), i2 = t3; } } - r2 || (r2 = this._tokenizationSupport.getInitialState()); + o2 || (o2 = this._tokenizationSupport.getInitialState()); const s2 = this._textModel.getLanguageIdentifier(); - let a2 = r2; - for (let e3 = o2.length - 1; e3 >= 0; e3--) { - a2 = Ne(s2, this._tokenizationSupport, o2[e3], a2).endState; + let a2 = o2; + for (let e3 = r2.length - 1; e3 >= 0; e3--) { + a2 = Ne(s2, this._tokenizationSupport, r2[e3], a2).endState; } for (let i3 = t2; i3 <= n2; i3++) { let t3 = this._textModel.getLineContent(i3), n3 = Ne(s2, this._tokenizationSupport, t3, a2); @@ -7091,17 +7091,17 @@ } } } - function Ne(e2, t2, n2, o2) { - let r2 = null; + function Ne(e2, t2, n2, r2) { + let o2 = null; if (t2) try { - r2 = t2.tokenize2(n2, o2.clone(), 0); + o2 = t2.tokenize2(n2, r2.clone(), 0); } catch (e3) { Object(i.e)(e3); } - return r2 || (r2 = Object(Se.e)(e2.id, n2, o2, 0)), Ce.a.convertToEndOffset(r2.tokens, n2.length), r2; + return o2 || (o2 = Object(Se.e)(e2.id, n2, r2, 0)), Ce.a.convertToEndOffset(o2.tokens, n2.length), o2; } - var Ie = n(73), Oe = n(39), De = n(114), Ae = n(119), Re = n(16); + var Ie = n(73), De = n(39), Oe = n(114), Ae = n(119), Re = n(15); function Me(e2) { const t2 = new pe(); return t2.acceptChunk(e2), t2.finish(); @@ -7139,13 +7139,13 @@ return e2 instanceof Be ? null : e2; } Be.INSTANCE = new Be(); - class Ve extends r.a { - constructor(e2, t2, n2, i2 = null, r2) { - super(), this._onWillDispose = this._register(new o.a()), this.onWillDispose = this._onWillDispose.event, this._onDidChangeDecorations = this._register(new Xe()), this.onDidChangeDecorations = this._onDidChangeDecorations.event, this._onDidChangeLanguage = this._register(new o.a()), this.onDidChangeLanguage = this._onDidChangeLanguage.event, this._onDidChangeLanguageConfiguration = this._register(new o.a()), this.onDidChangeLanguageConfiguration = this._onDidChangeLanguageConfiguration.event, this._onDidChangeTokens = this._register(new o.a()), this.onDidChangeTokens = this._onDidChangeTokens.event, this._onDidChangeOptions = this._register(new o.a()), this.onDidChangeOptions = this._onDidChangeOptions.event, this._onDidChangeAttached = this._register(new o.a()), this.onDidChangeAttached = this._onDidChangeAttached.event, this._eventEmitter = this._register(new Qe()), Fe++, this.id = "$model" + Fe, this.isForSimpleWidget = t2.isForSimpleWidget, this._associatedResource = i2 == null ? a.a.parse("inmemory://model/" + Fe) : i2, this._undoRedoService = r2, this._attachedEditorCount = 0, this._buffer = Pe(e2, t2.defaultEOL), this._options = Ve.resolveOptions(this._buffer, t2); + class Ve extends o.a { + constructor(e2, t2, n2, i2 = null, o2) { + super(), this._onWillDispose = this._register(new r.a()), this.onWillDispose = this._onWillDispose.event, this._onDidChangeDecorations = this._register(new Xe()), this.onDidChangeDecorations = this._onDidChangeDecorations.event, this._onDidChangeLanguage = this._register(new r.a()), this.onDidChangeLanguage = this._onDidChangeLanguage.event, this._onDidChangeLanguageConfiguration = this._register(new r.a()), this.onDidChangeLanguageConfiguration = this._onDidChangeLanguageConfiguration.event, this._onDidChangeTokens = this._register(new r.a()), this.onDidChangeTokens = this._onDidChangeTokens.event, this._onDidChangeOptions = this._register(new r.a()), this.onDidChangeOptions = this._onDidChangeOptions.event, this._onDidChangeAttached = this._register(new r.a()), this.onDidChangeAttached = this._onDidChangeAttached.event, this._eventEmitter = this._register(new Qe()), Fe++, this.id = "$model" + Fe, this.isForSimpleWidget = t2.isForSimpleWidget, this._associatedResource = i2 == null ? a.a.parse("inmemory://model/" + Fe) : i2, this._undoRedoService = o2, this._attachedEditorCount = 0, this._buffer = Pe(e2, t2.defaultEOL), this._options = Ve.resolveOptions(this._buffer, t2); const l2 = this._buffer.getLineCount(), c2 = this._buffer.getValueLengthInRange(new d.a(1, 1, l2, this._buffer.getLineLength(l2) + 1), 0); - t2.largeFileOptimizations ? this._isTooLargeForTokenization = c2 > Ve.LARGE_FILE_SIZE_THRESHOLD || l2 > Ve.LARGE_FILE_LINE_COUNT_THRESHOLD : this._isTooLargeForTokenization = false, this._isTooLargeForSyncing = c2 > Ve.MODEL_SYNC_LIMIT, this._versionId = 1, this._alternativeVersionId = 1, this._initialUndoRedoSnapshot = null, this._isDisposed = false, this._isDisposing = false, this._languageIdentifier = n2 || Se.a, this._languageRegistryListener = Oe.a.onDidChange((e3) => { + t2.largeFileOptimizations ? this._isTooLargeForTokenization = c2 > Ve.LARGE_FILE_SIZE_THRESHOLD || l2 > Ve.LARGE_FILE_LINE_COUNT_THRESHOLD : this._isTooLargeForTokenization = false, this._isTooLargeForSyncing = c2 > Ve.MODEL_SYNC_LIMIT, this._versionId = 1, this._alternativeVersionId = 1, this._initialUndoRedoSnapshot = null, this._isDisposed = false, this._isDisposing = false, this._languageIdentifier = n2 || Se.a, this._languageRegistryListener = De.a.onDidChange((e3) => { e3.languageIdentifier.id === this._languageIdentifier.id && this._onDidChangeLanguageConfiguration.fire({}); - }), this._instanceId = s.R(Fe), this._lastDecorationId = 0, this._decorations = Object.create(null), this._decorationsTree = new Ue(), this._commandManager = new p.a(this, r2), this._isUndoing = false, this._isRedoing = false, this._trimAutoWhitespaceLines = null, this._tokens = new ce.d(), this._tokens2 = new ce.e(), this._tokenization = new Le(this); + }), this._instanceId = s.R(Fe), this._lastDecorationId = 0, this._decorations = Object.create(null), this._decorationsTree = new Ue(), this._commandManager = new p.a(this, o2), this._isUndoing = false, this._isRedoing = false, this._trimAutoWhitespaceLines = null, this._tokens = new ce.d(), this._tokens2 = new ce.e(), this._tokenization = new Le(this); } static resolveOptions(e2, t2) { if (t2.detectIndentation) { @@ -7179,22 +7179,22 @@ const t2 = Pe(e2, this._options.defaultEOL); this.setValueFromTextBuffer(t2); } - _createContentChanged2(e2, t2, n2, i2, o2, r2, s2) { - return {changes: [{range: e2, rangeOffset: t2, rangeLength: n2, text: i2}], eol: this._buffer.getEOL(), versionId: this.getVersionId(), isUndoing: o2, isRedoing: r2, isFlush: s2}; + _createContentChanged2(e2, t2, n2, i2, r2, o2, s2) { + return {changes: [{range: e2, rangeOffset: t2, rangeLength: n2, text: i2}], eol: this._buffer.getEOL(), versionId: this.getVersionId(), isUndoing: r2, isRedoing: o2, isFlush: s2}; } setValueFromTextBuffer(e2) { if (this._assertNotDisposed(), e2 === null) return; - const t2 = this.getFullModelRange(), n2 = this.getValueLengthInRange(t2), i2 = this.getLineCount(), o2 = this.getLineMaxColumn(i2); - this._buffer = e2, this._increaseVersionId(), this._tokens.flush(), this._tokens2.flush(), this._decorations = Object.create(null), this._decorationsTree = new Ue(), this._commandManager.clear(), this._trimAutoWhitespaceLines = null, this._emitContentChangedEvent(new ve([new me()], this._versionId, false, false), this._createContentChanged2(new d.a(1, 1, i2, o2), 0, n2, this.getValue(), false, false, true)); + const t2 = this.getFullModelRange(), n2 = this.getValueLengthInRange(t2), i2 = this.getLineCount(), r2 = this.getLineMaxColumn(i2); + this._buffer = e2, this._increaseVersionId(), this._tokens.flush(), this._tokens2.flush(), this._decorations = Object.create(null), this._decorationsTree = new Ue(), this._commandManager.clear(), this._trimAutoWhitespaceLines = null, this._emitContentChangedEvent(new ve([new me()], this._versionId, false, false), this._createContentChanged2(new d.a(1, 1, i2, r2), 0, n2, this.getValue(), false, false, true)); } setEOL(e2) { this._assertNotDisposed(); const t2 = e2 === 1 ? "\r\n" : "\n"; if (this._buffer.getEOL() === t2) return; - const n2 = this.getFullModelRange(), i2 = this.getValueLengthInRange(n2), o2 = this.getLineCount(), r2 = this.getLineMaxColumn(o2); - this._onBeforeEOLChange(), this._buffer.setEOL(t2), this._increaseVersionId(), this._onAfterEOLChange(), this._emitContentChangedEvent(new ve([new _e()], this._versionId, false, false), this._createContentChanged2(new d.a(1, 1, o2, r2), 0, i2, this.getValue(), false, false, false)); + const n2 = this.getFullModelRange(), i2 = this.getValueLengthInRange(n2), r2 = this.getLineCount(), o2 = this.getLineMaxColumn(r2); + this._onBeforeEOLChange(), this._buffer.setEOL(t2), this._increaseVersionId(), this._onAfterEOLChange(), this._emitContentChangedEvent(new ve([new _e()], this._versionId, false, false), this._createContentChanged2(new d.a(1, 1, r2, o2), 0, i2, this.getValue(), false, false, false)); } _onBeforeEOLChange() { const e2 = this.getVersionId(), t2 = this._decorationsTree.search(0, false, false, e2); @@ -7203,8 +7203,8 @@ _onAfterEOLChange() { const e2 = this.getVersionId(), t2 = this._decorationsTree.collectNodesPostOrder(); for (let n2 = 0, i2 = t2.length; n2 < i2; n2++) { - const i3 = t2[n2], o2 = i3.cachedAbsoluteStart - i3.start, r2 = this._buffer.getOffsetAt(i3.range.startLineNumber, i3.range.startColumn), s2 = this._buffer.getOffsetAt(i3.range.endLineNumber, i3.range.endColumn); - i3.cachedAbsoluteStart = r2, i3.cachedAbsoluteEnd = s2, i3.cachedVersionId = e2, i3.start = r2 - o2, i3.end = s2 - o2, W(i3); + const i3 = t2[n2], r2 = i3.cachedAbsoluteStart - i3.start, o2 = this._buffer.getOffsetAt(i3.range.startLineNumber, i3.range.startColumn), s2 = this._buffer.getOffsetAt(i3.range.endLineNumber, i3.range.endColumn); + i3.cachedAbsoluteStart = o2, i3.cachedAbsoluteEnd = s2, i3.cachedVersionId = e2, i3.start = o2 - r2, i3.end = s2 - r2, W(i3); } } onBeforeAttached() { @@ -7250,11 +7250,11 @@ } updateOptions(e2) { this._assertNotDisposed(); - let t2 = e2.tabSize !== void 0 ? e2.tabSize : this._options.tabSize, n2 = e2.indentSize !== void 0 ? e2.indentSize : this._options.indentSize, i2 = e2.insertSpaces !== void 0 ? e2.insertSpaces : this._options.insertSpaces, o2 = e2.trimAutoWhitespace !== void 0 ? e2.trimAutoWhitespace : this._options.trimAutoWhitespace, r2 = new u.e({tabSize: t2, indentSize: n2, insertSpaces: i2, defaultEOL: this._options.defaultEOL, trimAutoWhitespace: o2}); - if (this._options.equals(r2)) + let t2 = e2.tabSize !== void 0 ? e2.tabSize : this._options.tabSize, n2 = e2.indentSize !== void 0 ? e2.indentSize : this._options.indentSize, i2 = e2.insertSpaces !== void 0 ? e2.insertSpaces : this._options.insertSpaces, r2 = e2.trimAutoWhitespace !== void 0 ? e2.trimAutoWhitespace : this._options.trimAutoWhitespace, o2 = new u.e({tabSize: t2, indentSize: n2, insertSpaces: i2, defaultEOL: this._options.defaultEOL, trimAutoWhitespace: r2}); + if (this._options.equals(o2)) return; - let s2 = this._options.createChangeEvent(r2); - this._options = r2, this._onDidChangeOptions.fire(s2); + let s2 = this._options.createChangeEvent(o2); + this._options = o2, this._onDidChangeOptions.fire(s2); } detectIndentation(e2, t2) { this._assertNotDisposed(); @@ -7265,16 +7265,16 @@ let i2 = 0; for (let n3 = 0; n3 < e2.length; n3++) e2.charAt(n3) === " " ? i2 += t2 : i2++; - let o2 = ""; + let r2 = ""; if (!n2) { let e3 = Math.floor(i2 / t2); i2 %= t2; for (let t3 = 0; t3 < e3; t3++) - o2 += " "; + r2 += " "; } for (let e3 = 0; e3 < i2; e3++) - o2 += " "; - return o2; + r2 += " "; + return r2; } static normalizeIndentation(e2, t2, n2) { let i2 = s.w(e2); @@ -7385,16 +7385,16 @@ } _validateRangeRelaxedNoAllocations(e2) { const t2 = this._buffer.getLineCount(), n2 = e2.startLineNumber, i2 = e2.startColumn; - let o2, r2; + let r2, o2; if (n2 < 1) - o2 = 1, r2 = 1; + r2 = 1, o2 = 1; else if (n2 > t2) - o2 = t2, r2 = this.getLineMaxColumn(o2); - else if (o2 = 0 | n2, i2 <= 1) - r2 = 1; + r2 = t2, o2 = this.getLineMaxColumn(r2); + else if (r2 = 0 | n2, i2 <= 1) + o2 = 1; else { - const e3 = this.getLineMaxColumn(o2); - r2 = i2 >= e3 ? e3 : 0 | i2; + const e3 = this.getLineMaxColumn(r2); + o2 = i2 >= e3 ? e3 : 0 | i2; } const s2 = e2.endLineNumber, a2 = e2.endColumn; let l2, c2; @@ -7408,7 +7408,7 @@ const e3 = this.getLineMaxColumn(l2); c2 = a2 >= e3 ? e3 : 0 | a2; } - return n2 === o2 && i2 === r2 && s2 === l2 && a2 === c2 && e2 instanceof d.a && !(e2 instanceof h.a) ? e2 : new d.a(o2, r2, l2, c2); + return n2 === r2 && i2 === o2 && s2 === l2 && a2 === c2 && e2 instanceof d.a && !(e2 instanceof h.a) ? e2 : new d.a(r2, o2, l2, c2); } _isValidPosition(e2, t2, n2) { if (typeof e2 != "number" || typeof t2 != "number") @@ -7433,34 +7433,34 @@ return true; } _validatePosition(e2, t2, n2) { - const i2 = Math.floor(typeof e2 != "number" || isNaN(e2) ? 1 : e2), o2 = Math.floor(typeof t2 != "number" || isNaN(t2) ? 1 : t2), r2 = this._buffer.getLineCount(); + const i2 = Math.floor(typeof e2 != "number" || isNaN(e2) ? 1 : e2), r2 = Math.floor(typeof t2 != "number" || isNaN(t2) ? 1 : t2), o2 = this._buffer.getLineCount(); if (i2 < 1) return new c.a(1, 1); - if (i2 > r2) - return new c.a(r2, this.getLineMaxColumn(r2)); - if (o2 <= 1) + if (i2 > o2) + return new c.a(o2, this.getLineMaxColumn(o2)); + if (r2 <= 1) return new c.a(i2, 1); const a2 = this.getLineMaxColumn(i2); - if (o2 >= a2) + if (r2 >= a2) return new c.a(i2, a2); if (n2 === 1) { - const e3 = this._buffer.getLineCharCode(i2, o2 - 2); + const e3 = this._buffer.getLineCharCode(i2, r2 - 2); if (s.F(e3)) - return new c.a(i2, o2 - 1); + return new c.a(i2, r2 - 1); } - return new c.a(i2, o2); + return new c.a(i2, r2); } validatePosition(e2) { return this._assertNotDisposed(), e2 instanceof c.a && this._isValidPosition(e2.lineNumber, e2.column, 1) ? e2 : this._validatePosition(e2.lineNumber, e2.column, 1); } _isValidRange(e2, t2) { - const n2 = e2.startLineNumber, i2 = e2.startColumn, o2 = e2.endLineNumber, r2 = e2.endColumn; + const n2 = e2.startLineNumber, i2 = e2.startColumn, r2 = e2.endLineNumber, o2 = e2.endColumn; if (!this._isValidPosition(n2, i2, 0)) return false; - if (!this._isValidPosition(o2, r2, 0)) + if (!this._isValidPosition(r2, o2, 0)) return false; if (t2 === 1) { - const e3 = i2 > 1 ? this._buffer.getLineCharCode(n2, i2 - 2) : 0, t3 = r2 > 1 && r2 <= this._buffer.getLineLength(o2) ? this._buffer.getLineCharCode(o2, r2 - 2) : 0, a2 = s.F(e3), l2 = s.F(t3); + const e3 = i2 > 1 ? this._buffer.getLineCharCode(n2, i2 - 2) : 0, t3 = o2 > 1 && o2 <= this._buffer.getLineLength(r2) ? this._buffer.getLineCharCode(r2, o2 - 2) : 0, a2 = s.F(e3), l2 = s.F(t3); return !a2 && !l2; } return true; @@ -7468,10 +7468,10 @@ validateRange(e2) { if (this._assertNotDisposed(), e2 instanceof d.a && !(e2 instanceof h.a) && this._isValidRange(e2, 1)) return e2; - const t2 = this._validatePosition(e2.startLineNumber, e2.startColumn, 0), n2 = this._validatePosition(e2.endLineNumber, e2.endColumn, 0), i2 = t2.lineNumber, o2 = t2.column, r2 = n2.lineNumber, a2 = n2.column; + const t2 = this._validatePosition(e2.startLineNumber, e2.startColumn, 0), n2 = this._validatePosition(e2.endLineNumber, e2.endColumn, 0), i2 = t2.lineNumber, r2 = t2.column, o2 = n2.lineNumber, a2 = n2.column; { - const e3 = o2 > 1 ? this._buffer.getLineCharCode(i2, o2 - 2) : 0, t3 = a2 > 1 && a2 <= this._buffer.getLineLength(r2) ? this._buffer.getLineCharCode(r2, a2 - 2) : 0, n3 = s.F(e3), l2 = s.F(t3); - return n3 || l2 ? i2 === r2 && o2 === a2 ? new d.a(i2, o2 - 1, r2, a2 - 1) : n3 && l2 ? new d.a(i2, o2 - 1, r2, a2 + 1) : n3 ? new d.a(i2, o2 - 1, r2, a2) : new d.a(i2, o2, r2, a2 + 1) : new d.a(i2, o2, r2, a2); + const e3 = r2 > 1 ? this._buffer.getLineCharCode(i2, r2 - 2) : 0, t3 = a2 > 1 && a2 <= this._buffer.getLineLength(o2) ? this._buffer.getLineCharCode(o2, a2 - 2) : 0, n3 = s.F(e3), l2 = s.F(t3); + return n3 || l2 ? i2 === o2 && r2 === a2 ? new d.a(i2, r2 - 1, o2, a2 - 1) : n3 && l2 ? new d.a(i2, r2 - 1, o2, a2 + 1) : n3 ? new d.a(i2, r2 - 1, o2, a2) : new d.a(i2, r2, o2, a2 + 1) : new d.a(i2, r2, o2, a2); } } modifyPosition(e2, t2) { @@ -7487,38 +7487,38 @@ findMatchesLineByLine(e2, t2, n2, i2) { return this._buffer.findMatchesLineByLine(e2, t2, n2, i2); } - findMatches(e2, t2, n2, i2, o2, r2, s2 = 999) { + findMatches(e2, t2, n2, i2, r2, o2, s2 = 999) { this._assertNotDisposed(); let a2 = null; t2 !== null && (Array.isArray(t2) || (t2 = [t2]), t2.every((e3) => d.a.isIRange(e3)) && (a2 = t2.map((e3) => this.validateRange(e3)))), a2 === null && (a2 = [this.getFullModelRange()]), a2 = a2.sort((e3, t3) => e3.startLineNumber - t3.startLineNumber || e3.startColumn - t3.startColumn); const l2 = []; let c2; if (l2.push(a2.reduce((e3, t3) => d.a.areIntersecting(e3, t3) ? e3.plusRange(t3) : (l2.push(e3), t3))), !n2 && e2.indexOf("\n") < 0) { - const t3 = new ee.a(e2, n2, i2, o2).parseSearchRequest(); + const t3 = new ee.a(e2, n2, i2, r2).parseSearchRequest(); if (!t3) return []; - c2 = (e3) => this.findMatchesLineByLine(e3, t3, r2, s2); + c2 = (e3) => this.findMatchesLineByLine(e3, t3, o2, s2); } else - c2 = (t3) => ee.c.findMatches(this, new ee.a(e2, n2, i2, o2), t3, r2, s2); + c2 = (t3) => ee.c.findMatches(this, new ee.a(e2, n2, i2, r2), t3, o2, s2); return l2.map(c2).reduce((e3, t3) => e3.concat(t3), []); } - findNextMatch(e2, t2, n2, i2, o2, r2) { + findNextMatch(e2, t2, n2, i2, r2, o2) { this._assertNotDisposed(); const s2 = this.validatePosition(t2); if (!n2 && e2.indexOf("\n") < 0) { - const t3 = new ee.a(e2, n2, i2, o2).parseSearchRequest(); + const t3 = new ee.a(e2, n2, i2, r2).parseSearchRequest(); if (!t3) return null; const a2 = this.getLineCount(); - let l2 = new d.a(s2.lineNumber, s2.column, a2, this.getLineMaxColumn(a2)), c2 = this.findMatchesLineByLine(l2, t3, r2, 1); - return ee.c.findNextMatch(this, new ee.a(e2, n2, i2, o2), s2, r2), c2.length > 0 ? c2[0] : (l2 = new d.a(1, 1, s2.lineNumber, this.getLineMaxColumn(s2.lineNumber)), c2 = this.findMatchesLineByLine(l2, t3, r2, 1), c2.length > 0 ? c2[0] : null); + let l2 = new d.a(s2.lineNumber, s2.column, a2, this.getLineMaxColumn(a2)), c2 = this.findMatchesLineByLine(l2, t3, o2, 1); + return ee.c.findNextMatch(this, new ee.a(e2, n2, i2, r2), s2, o2), c2.length > 0 ? c2[0] : (l2 = new d.a(1, 1, s2.lineNumber, this.getLineMaxColumn(s2.lineNumber)), c2 = this.findMatchesLineByLine(l2, t3, o2, 1), c2.length > 0 ? c2[0] : null); } - return ee.c.findNextMatch(this, new ee.a(e2, n2, i2, o2), s2, r2); + return ee.c.findNextMatch(this, new ee.a(e2, n2, i2, r2), s2, o2); } - findPreviousMatch(e2, t2, n2, i2, o2, r2) { + findPreviousMatch(e2, t2, n2, i2, r2, o2) { this._assertNotDisposed(); const s2 = this.validatePosition(t2); - return ee.c.findPreviousMatch(this, new ee.a(e2, n2, i2, o2), s2, r2); + return ee.c.findPreviousMatch(this, new ee.a(e2, n2, i2, r2), s2, o2); } pushStackElement() { this._commandManager.pushStackElement(); @@ -7551,32 +7551,32 @@ if (this._options.trimAutoWhitespace && this._trimAutoWhitespaceLines) { let n3 = t2.map((e3) => ({range: this.validateRange(e3.range), text: e3.text})), i2 = true; if (e2) - for (let t3 = 0, o2 = e2.length; t3 < o2; t3++) { - let o3 = e2[t3], r2 = false; + for (let t3 = 0, r2 = e2.length; t3 < r2; t3++) { + let r3 = e2[t3], o2 = false; for (let e3 = 0, t4 = n3.length; e3 < t4; e3++) { - let t5 = n3[e3].range, i3 = t5.startLineNumber > o3.endLineNumber, s2 = o3.startLineNumber > t5.endLineNumber; + let t5 = n3[e3].range, i3 = t5.startLineNumber > r3.endLineNumber, s2 = r3.startLineNumber > t5.endLineNumber; if (!i3 && !s2) { - r2 = true; + o2 = true; break; } } - if (!r2) { + if (!o2) { i2 = false; break; } } if (i2) for (let e3 = 0, i3 = this._trimAutoWhitespaceLines.length; e3 < i3; e3++) { - let i4 = this._trimAutoWhitespaceLines[e3], o2 = this.getLineMaxColumn(i4), r2 = true; + let i4 = this._trimAutoWhitespaceLines[e3], r2 = this.getLineMaxColumn(i4), o2 = true; for (let e4 = 0, t3 = n3.length; e4 < t3; e4++) { let t4 = n3[e4].range, s2 = n3[e4].text; - if (!(i4 < t4.startLineNumber || i4 > t4.endLineNumber) && !(i4 === t4.startLineNumber && t4.startColumn === o2 && t4.isEmpty() && s2 && s2.length > 0 && s2.charAt(0) === "\n" || i4 === t4.startLineNumber && t4.startColumn === 1 && t4.isEmpty() && s2 && s2.length > 0 && s2.charAt(s2.length - 1) === "\n")) { - r2 = false; + if (!(i4 < t4.startLineNumber || i4 > t4.endLineNumber) && !(i4 === t4.startLineNumber && t4.startColumn === r2 && t4.isEmpty() && s2 && s2.length > 0 && s2.charAt(0) === "\n" || i4 === t4.startLineNumber && t4.startColumn === 1 && t4.isEmpty() && s2 && s2.length > 0 && s2.charAt(s2.length - 1) === "\n")) { + o2 = false; break; } } - if (r2) { - const e4 = new d.a(i4, 1, i4, o2); + if (o2) { + const e4 = new d.a(i4, 1, i4, r2); t2.push(new u.f(null, e4, null, false, false, false)); } } @@ -7585,24 +7585,24 @@ return this._initialUndoRedoSnapshot === null && (this._initialUndoRedoSnapshot = this._undoRedoService.createSnapshot(this.uri)), this._commandManager.pushEditOperation(e2, t2, n2); } _applyUndo(e2, t2, n2, i2) { - const o2 = e2.map((e3) => { + const r2 = e2.map((e3) => { const t3 = this.getPositionAt(e3.newPosition), n3 = this.getPositionAt(e3.newEnd); return {range: new d.a(t3.lineNumber, t3.column, n3.lineNumber, n3.column), text: e3.oldText}; }); - this._applyUndoRedoEdits(o2, t2, true, false, n2, i2); + this._applyUndoRedoEdits(r2, t2, true, false, n2, i2); } _applyRedo(e2, t2, n2, i2) { - const o2 = e2.map((e3) => { + const r2 = e2.map((e3) => { const t3 = this.getPositionAt(e3.oldPosition), n3 = this.getPositionAt(e3.oldEnd); return {range: new d.a(t3.lineNumber, t3.column, n3.lineNumber, n3.column), text: e3.newText}; }); - this._applyUndoRedoEdits(o2, t2, false, true, n2, i2); + this._applyUndoRedoEdits(r2, t2, false, true, n2, i2); } - _applyUndoRedoEdits(e2, t2, n2, i2, o2, r2) { + _applyUndoRedoEdits(e2, t2, n2, i2, r2, o2) { try { - this._onDidChangeDecorations.beginDeferredEmit(), this._eventEmitter.beginDeferredEmit(), this._isUndoing = n2, this._isRedoing = i2, this.applyEdits(e2, false), this.setEOL(t2), this._overwriteAlternativeVersionId(o2); + this._onDidChangeDecorations.beginDeferredEmit(), this._eventEmitter.beginDeferredEmit(), this._isUndoing = n2, this._isRedoing = i2, this.applyEdits(e2, false), this.setEOL(t2), this._overwriteAlternativeVersionId(r2); } finally { - this._isUndoing = false, this._isRedoing = false, this._eventEmitter.endDeferredEmit(r2), this._onDidChangeDecorations.endDeferredEmit(); + this._isUndoing = false, this._isRedoing = false, this._eventEmitter.endDeferredEmit(o2), this._onDidChangeDecorations.endDeferredEmit(); } } applyEdits(e2, t2 = false) { @@ -7615,33 +7615,33 @@ } } _doApplyEdits(e2, t2) { - const n2 = this._buffer.getLineCount(), i2 = this._buffer.applyEdits(e2, this._options.trimAutoWhitespace, t2), o2 = this._buffer.getLineCount(), r2 = i2.changes; - if (this._trimAutoWhitespaceLines = i2.trimAutoWhitespaceLineNumbers, r2.length !== 0) { + const n2 = this._buffer.getLineCount(), i2 = this._buffer.applyEdits(e2, this._options.trimAutoWhitespace, t2), r2 = this._buffer.getLineCount(), o2 = i2.changes; + if (this._trimAutoWhitespaceLines = i2.trimAutoWhitespaceLineNumbers, o2.length !== 0) { let e3 = [], t3 = n2; - for (let n3 = 0, i3 = r2.length; n3 < i3; n3++) { - const i4 = r2[n3], [s2, a2, l2] = Object(ce.f)(i4.text); + for (let n3 = 0, i3 = o2.length; n3 < i3; n3++) { + const i4 = o2[n3], [s2, a2, l2] = Object(ce.f)(i4.text); this._tokens.acceptEdit(i4.range, s2, a2), this._tokens2.acceptEdit(i4.range, s2, a2, l2, i4.text.length > 0 ? i4.text.charCodeAt(0) : 0), this._onDidChangeDecorations.fire(), this._decorationsTree.acceptReplace(i4.rangeOffset, i4.rangeLength, i4.text.length, i4.forceMoveMarkers); const c2 = i4.range.startLineNumber, d2 = i4.range.endLineNumber, h2 = d2 - c2, u2 = s2, p2 = Math.min(h2, u2), m2 = u2 - h2; for (let n4 = p2; n4 >= 0; n4--) { - const i5 = c2 + n4, r3 = o2 - t3 - m2 + i5; - e3.push(new ge(i5, this.getLineContent(r3))); + const i5 = c2 + n4, o3 = r2 - t3 - m2 + i5; + e3.push(new ge(i5, this.getLineContent(o3))); } if (p2 < h2) { const t4 = c2 + p2; e3.push(new fe(t4 + 1, d2)); } if (p2 < u2) { - const n4 = c2 + p2, i5 = u2 - p2, r3 = o2 - t3 - i5 + n4 + 1; + const n4 = c2 + p2, i5 = u2 - p2, o3 = r2 - t3 - i5 + n4 + 1; let s3 = []; for (let e4 = 0; e4 < i5; e4++) { - let t4 = r3 + e4; - s3[t4 - r3] = this.getLineContent(t4); + let t4 = o3 + e4; + s3[t4 - o3] = this.getLineContent(t4); } e3.push(new be(n4 + 1, c2 + u2, s3)); } t3 += m2; } - this._increaseVersionId(), this._emitContentChangedEvent(new ve(e3, this.getVersionId(), this._isUndoing, this._isRedoing), {changes: r2, eol: this._buffer.getEOL(), versionId: this.getVersionId(), isUndoing: this._isUndoing, isRedoing: this._isRedoing, isFlush: false}); + this._increaseVersionId(), this._emitContentChangedEvent(new ve(e3, this.getVersionId(), this._isUndoing, this._isRedoing), {changes: o2, eol: this._buffer.getEOL(), versionId: this.getVersionId(), isUndoing: this._isUndoing, isRedoing: this._isRedoing, isFlush: false}); } return i2.reverseEdits === null ? void 0 : i2.reverseEdits; } @@ -7672,13 +7672,13 @@ this._changeDecorationOptionsImpl(e3, Ze(t3)); }, removeDecoration: (t3) => { this._deltaDecorationsImpl(e2, [t3], []); - }, deltaDecorations: (t3, n3) => t3.length === 0 && n3.length === 0 ? [] : this._deltaDecorationsImpl(e2, t3, n3)}, o2 = null; + }, deltaDecorations: (t3, n3) => t3.length === 0 && n3.length === 0 ? [] : this._deltaDecorationsImpl(e2, t3, n3)}, r2 = null; try { - o2 = t2(n2); + r2 = t2(n2); } catch (e3) { Object(i.e)(e3); } - return n2.addDecoration = ze, n2.changeDecoration = ze, n2.changeDecorationOptions = ze, n2.removeDecoration = ze, n2.deltaDecorations = ze, o2; + return n2.addDecoration = ze, n2.changeDecoration = ze, n2.changeDecorationOptions = ze, n2.removeDecoration = ze, n2.deltaDecorations = ze, r2; } deltaDecorations(e2, t2, n2 = 0) { if (this._assertNotDisposed(), e2 || (e2 = []), e2.length === 0 && t2.length === 0) @@ -7698,8 +7698,8 @@ return t2 ? this._deltaDecorationsImpl(0, [], [{range: t2, options: Ye[n2]}])[0] : null; if (!t2) return this._decorationsTree.delete(i2), delete this._decorations[i2.id], null; - const o2 = this._validateRangeRelaxedNoAllocations(t2), r2 = this._buffer.getOffsetAt(o2.startLineNumber, o2.startColumn), s2 = this._buffer.getOffsetAt(o2.endLineNumber, o2.endColumn); - return this._decorationsTree.delete(i2), i2.reset(this.getVersionId(), r2, s2, o2), i2.setOptions(Ye[n2]), this._decorationsTree.insert(i2), i2.id; + const r2 = this._validateRangeRelaxedNoAllocations(t2), o2 = this._buffer.getOffsetAt(r2.startLineNumber, r2.startColumn), s2 = this._buffer.getOffsetAt(r2.endLineNumber, r2.endColumn); + return this._decorationsTree.delete(i2), i2.reset(this.getVersionId(), o2, s2, r2), i2.setOptions(Ye[n2]), this._decorationsTree.insert(i2), i2.id; } removeAllDecorationsWithOwnerId(e2) { if (this._isDisposed) @@ -7725,8 +7725,8 @@ return e2 < 1 || e2 > this.getLineCount() ? [] : this.getLinesDecorations(e2, e2, t2, n2); } getLinesDecorations(e2, t2, n2 = 0, i2 = false) { - let o2 = this.getLineCount(), r2 = Math.min(o2, Math.max(1, e2)), s2 = Math.min(o2, Math.max(1, t2)), a2 = this.getLineMaxColumn(s2); - return this._getDecorationsInRange(new d.a(r2, 1, s2, a2), n2, i2); + let r2 = this.getLineCount(), o2 = Math.min(r2, Math.max(1, e2)), s2 = Math.min(r2, Math.max(1, t2)), a2 = this.getLineMaxColumn(s2); + return this._getDecorationsInRange(new d.a(o2, 1, s2, a2), n2, i2); } getDecorationsInRange(e2, t2 = 0, n2 = false) { let i2 = this.validateRange(e2); @@ -7741,7 +7741,7 @@ return this._ensureNodesHaveRanges(i2); } _getDecorationsInRange(e2, t2, n2) { - const i2 = this._buffer.getOffsetAt(e2.startLineNumber, e2.startColumn), o2 = this._buffer.getOffsetAt(e2.endLineNumber, e2.endColumn), r2 = this.getVersionId(), s2 = this._decorationsTree.intervalSearch(i2, o2, t2, n2, r2); + const i2 = this._buffer.getOffsetAt(e2.startLineNumber, e2.startColumn), r2 = this._buffer.getOffsetAt(e2.endLineNumber, e2.endColumn), o2 = this.getVersionId(), s2 = this._decorationsTree.intervalSearch(i2, r2, t2, n2, o2); return this._ensureNodesHaveRanges(s2); } _ensureNodesHaveRanges(e2) { @@ -7758,27 +7758,27 @@ const n2 = this._decorations[e2]; if (!n2) return; - const i2 = this._validateRangeRelaxedNoAllocations(t2), o2 = this._buffer.getOffsetAt(i2.startLineNumber, i2.startColumn), r2 = this._buffer.getOffsetAt(i2.endLineNumber, i2.endColumn); - this._decorationsTree.delete(n2), n2.reset(this.getVersionId(), o2, r2, i2), this._decorationsTree.insert(n2), this._onDidChangeDecorations.checkAffectedAndFire(n2.options); + const i2 = this._validateRangeRelaxedNoAllocations(t2), r2 = this._buffer.getOffsetAt(i2.startLineNumber, i2.startColumn), o2 = this._buffer.getOffsetAt(i2.endLineNumber, i2.endColumn); + this._decorationsTree.delete(n2), n2.reset(this.getVersionId(), r2, o2, i2), this._decorationsTree.insert(n2), this._onDidChangeDecorations.checkAffectedAndFire(n2.options); } _changeDecorationOptionsImpl(e2, t2) { const n2 = this._decorations[e2]; if (!n2) return; - const i2 = !(!n2.options.overviewRuler || !n2.options.overviewRuler.color), o2 = !(!t2.overviewRuler || !t2.overviewRuler.color); - this._onDidChangeDecorations.checkAffectedAndFire(n2.options), this._onDidChangeDecorations.checkAffectedAndFire(t2), i2 !== o2 ? (this._decorationsTree.delete(n2), n2.setOptions(t2), this._decorationsTree.insert(n2)) : n2.setOptions(t2); + const i2 = !(!n2.options.overviewRuler || !n2.options.overviewRuler.color), r2 = !(!t2.overviewRuler || !t2.overviewRuler.color); + this._onDidChangeDecorations.checkAffectedAndFire(n2.options), this._onDidChangeDecorations.checkAffectedAndFire(t2), i2 !== r2 ? (this._decorationsTree.delete(n2), n2.setOptions(t2), this._decorationsTree.insert(n2)) : n2.setOptions(t2); } _deltaDecorationsImpl(e2, t2, n2) { - const i2 = this.getVersionId(), o2 = t2.length; - let r2 = 0; + const i2 = this.getVersionId(), r2 = t2.length; + let o2 = 0; const s2 = n2.length; let a2 = 0, l2 = new Array(s2); - for (; r2 < o2 || a2 < s2; ) { + for (; o2 < r2 || a2 < s2; ) { let c2 = null; - if (r2 < o2) { + if (o2 < r2) { do { - c2 = this._decorations[t2[r2++]]; - } while (!c2 && r2 < o2); + c2 = this._decorations[t2[o2++]]; + } while (!c2 && o2 < r2); c2 && (this._decorationsTree.delete(c2), this._onDidChangeDecorations.checkAffectedAndFire(c2.options)); } if (a2 < s2) { @@ -7786,8 +7786,8 @@ const e3 = ++this._lastDecorationId, t4 = `${this._instanceId};${e3}`; c2 = new T(t4, 0, 0), this._decorations[t4] = c2; } - const t3 = n2[a2], o3 = this._validateRangeRelaxedNoAllocations(t3.range), r3 = Ze(t3.options), s3 = this._buffer.getOffsetAt(o3.startLineNumber, o3.startColumn), d2 = this._buffer.getOffsetAt(o3.endLineNumber, o3.endColumn); - c2.ownerId = e2, c2.reset(i2, s3, d2, o3), c2.setOptions(r3), this._onDidChangeDecorations.checkAffectedAndFire(r3), this._decorationsTree.insert(c2), l2[a2] = c2.id, a2++; + const t3 = n2[a2], r3 = this._validateRangeRelaxedNoAllocations(t3.range), o3 = Ze(t3.options), s3 = this._buffer.getOffsetAt(r3.startLineNumber, r3.startColumn), d2 = this._buffer.getOffsetAt(r3.endLineNumber, r3.endColumn); + c2.ownerId = e2, c2.reset(i2, s3, d2, r3), c2.setOptions(o3), this._onDidChangeDecorations.checkAffectedAndFire(o3), this._decorationsTree.insert(c2), l2[a2] = c2.id, a2++; } else c2 && delete this._decorations[c2.id]; } @@ -7799,16 +7799,16 @@ let t2 = []; for (let n2 = 0, i2 = e2.length; n2 < i2; n2++) { const i3 = e2[n2]; - let o2 = 0, r2 = 0, s2 = false; + let r2 = 0, o2 = 0, s2 = false; for (let e3 = 0, t3 = i3.tokens.length; e3 < t3; e3++) { const t4 = i3.startLineNumber + e3; if (s2) - this._tokens.setTokens(this._languageIdentifier.id, t4 - 1, this._buffer.getLineLength(t4), i3.tokens[e3], false), r2 = t4; + this._tokens.setTokens(this._languageIdentifier.id, t4 - 1, this._buffer.getLineLength(t4), i3.tokens[e3], false), o2 = t4; else { - this._tokens.setTokens(this._languageIdentifier.id, t4 - 1, this._buffer.getLineLength(t4), i3.tokens[e3], true) && (s2 = true, o2 = t4, r2 = t4); + this._tokens.setTokens(this._languageIdentifier.id, t4 - 1, this._buffer.getLineLength(t4), i3.tokens[e3], true) && (s2 = true, r2 = t4, o2 = t4); } } - s2 && t2.push({fromLineNumber: o2, toLineNumber: r2}); + s2 && t2.push({fromLineNumber: r2, toLineNumber: o2}); } t2.length > 0 && this._emitModelTokensChangedEvent({tokenizationSupportChanged: false, semanticTokensApplied: false, ranges: t2}); } @@ -7874,11 +7874,11 @@ } getWordAtPosition(e2) { this._assertNotDisposed(); - const t2 = this.validatePosition(e2), n2 = this.getLineContent(t2.lineNumber), i2 = this._getLineTokens(t2.lineNumber), o2 = i2.findTokenIndexAtOffset(t2.column - 1), [r2, s2] = Ve._findLanguageBoundaries(i2, o2), a2 = Object(Ie.d)(t2.column, Oe.a.getWordDefinition(i2.getLanguageId(o2)), n2.substring(r2, s2), r2); + const t2 = this.validatePosition(e2), n2 = this.getLineContent(t2.lineNumber), i2 = this._getLineTokens(t2.lineNumber), r2 = i2.findTokenIndexAtOffset(t2.column - 1), [o2, s2] = Ve._findLanguageBoundaries(i2, r2), a2 = Object(Ie.d)(t2.column, De.a.getWordDefinition(i2.getLanguageId(r2)), n2.substring(o2, s2), o2); if (a2 && a2.startColumn <= e2.column && e2.column <= a2.endColumn) return a2; - if (o2 > 0 && r2 === t2.column - 1) { - const [r3, s3] = Ve._findLanguageBoundaries(i2, o2 - 1), a3 = Object(Ie.d)(t2.column, Oe.a.getWordDefinition(i2.getLanguageId(o2 - 1)), n2.substring(r3, s3), r3); + if (r2 > 0 && o2 === t2.column - 1) { + const [o3, s3] = Ve._findLanguageBoundaries(i2, r2 - 1), a3 = Object(Ie.d)(t2.column, De.a.getWordDefinition(i2.getLanguageId(r2 - 1)), n2.substring(o3, s3), o3); if (a3 && a3.startColumn <= e2.column && e2.column <= a3.endColumn) return a3; } @@ -7887,19 +7887,19 @@ static _findLanguageBoundaries(e2, t2) { const n2 = e2.getLanguageId(t2); let i2 = 0; - for (let o3 = t2; o3 >= 0 && e2.getLanguageId(o3) === n2; o3--) - i2 = e2.getStartOffset(o3); - let o2 = e2.getLineContent().length; - for (let i3 = t2, r2 = e2.getCount(); i3 < r2 && e2.getLanguageId(i3) === n2; i3++) - o2 = e2.getEndOffset(i3); - return [i2, o2]; + for (let r3 = t2; r3 >= 0 && e2.getLanguageId(r3) === n2; r3--) + i2 = e2.getStartOffset(r3); + let r2 = e2.getLineContent().length; + for (let i3 = t2, o2 = e2.getCount(); i3 < o2 && e2.getLanguageId(i3) === n2; i3++) + r2 = e2.getEndOffset(i3); + return [i2, r2]; } getWordUntilPosition(e2) { const t2 = this.getWordAtPosition(e2); return t2 ? {word: t2.word.substr(0, e2.column - t2.startColumn), startColumn: t2.startColumn, endColumn: e2.column} : {word: "", startColumn: e2.column, endColumn: e2.column}; } findMatchingBracketUp(e2, t2) { - let n2 = e2.toLowerCase(), i2 = this.validatePosition(t2), o2 = this._getLineTokens(i2.lineNumber), r2 = o2.getLanguageId(o2.findTokenIndexAtOffset(i2.column - 1)), s2 = Oe.a.getBracketsSupport(r2); + let n2 = e2.toLowerCase(), i2 = this.validatePosition(t2), r2 = this._getLineTokens(i2.lineNumber), o2 = r2.getLanguageId(r2.findTokenIndexAtOffset(i2.column - 1)), s2 = De.a.getBracketsSupport(o2); if (!s2) return null; let a2 = s2.textIsBracket[n2]; @@ -7909,26 +7909,26 @@ return this._matchBracket(this.validatePosition(e2)); } _matchBracket(e2) { - const t2 = e2.lineNumber, n2 = this._getLineTokens(t2), i2 = n2.getCount(), o2 = this._buffer.getLineContent(t2), r2 = n2.findTokenIndexAtOffset(e2.column - 1); - if (r2 < 0) + const t2 = e2.lineNumber, n2 = this._getLineTokens(t2), i2 = n2.getCount(), r2 = this._buffer.getLineContent(t2), o2 = n2.findTokenIndexAtOffset(e2.column - 1); + if (o2 < 0) return null; - const s2 = Oe.a.getBracketsSupport(n2.getLanguageId(r2)); - if (s2 && !Object(De.b)(n2.getStandardTokenType(r2))) { + const s2 = De.a.getBracketsSupport(n2.getLanguageId(o2)); + if (s2 && !Object(Oe.b)(n2.getStandardTokenType(o2))) { let i3 = Math.max(0, e2.column - 1 - s2.maxBracketLength); - for (let e3 = r2 - 1; e3 >= 0; e3--) { + for (let e3 = o2 - 1; e3 >= 0; e3--) { const t3 = n2.getEndOffset(e3); if (t3 <= i3) break; - Object(De.b)(n2.getStandardTokenType(e3)) && (i3 = t3); + Object(Oe.b)(n2.getStandardTokenType(e3)) && (i3 = t3); } - const a2 = Math.min(o2.length, e2.column - 1 + s2.maxBracketLength); + const a2 = Math.min(r2.length, e2.column - 1 + s2.maxBracketLength); let l2 = null; for (; ; ) { - const n3 = Ae.a.findNextBracketInRange(s2.forwardRegex, t2, o2, i3, a2); + const n3 = Ae.a.findNextBracketInRange(s2.forwardRegex, t2, r2, i3, a2); if (!n3) break; if (n3.startColumn <= e2.column && e2.column <= n3.endColumn) { - const e3 = o2.substring(n3.startColumn - 1, n3.endColumn - 1).toLowerCase(), t3 = this._matchFoundBracket(n3, s2.textIsBracket[e3], s2.textIsOpenBracket[e3], null); + const e3 = r2.substring(n3.startColumn - 1, n3.endColumn - 1).toLowerCase(), t3 = this._matchFoundBracket(n3, s2.textIsBracket[e3], s2.textIsOpenBracket[e3], null); if (t3) { if (t3 instanceof Be) return null; @@ -7940,20 +7940,20 @@ if (l2) return l2; } - if (r2 > 0 && n2.getStartOffset(r2) === e2.column - 1) { - const s3 = r2 - 1, a2 = Oe.a.getBracketsSupport(n2.getLanguageId(s3)); - if (a2 && !Object(De.b)(n2.getStandardTokenType(s3))) { - const r3 = Math.max(0, e2.column - 1 - a2.maxBracketLength); - let l2 = Math.min(o2.length, e2.column - 1 + a2.maxBracketLength); + if (o2 > 0 && n2.getStartOffset(o2) === e2.column - 1) { + const s3 = o2 - 1, a2 = De.a.getBracketsSupport(n2.getLanguageId(s3)); + if (a2 && !Object(Oe.b)(n2.getStandardTokenType(s3))) { + const o3 = Math.max(0, e2.column - 1 - a2.maxBracketLength); + let l2 = Math.min(r2.length, e2.column - 1 + a2.maxBracketLength); for (let e3 = s3 + 1; e3 < i2; e3++) { const t3 = n2.getStartOffset(e3); if (t3 >= l2) break; - Object(De.b)(n2.getStandardTokenType(e3)) && (l2 = t3); + Object(Oe.b)(n2.getStandardTokenType(e3)) && (l2 = t3); } - const c2 = Ae.a.findPrevBracketInRange(a2.reversedRegex, t2, o2, r3, l2); + const c2 = Ae.a.findPrevBracketInRange(a2.reversedRegex, t2, r2, o3, l2); if (c2 && c2.startColumn <= e2.column && e2.column <= c2.endColumn) { - const e3 = o2.substring(c2.startColumn - 1, c2.endColumn - 1).toLowerCase(), t3 = this._matchFoundBracket(c2, a2.textIsBracket[e3], a2.textIsOpenBracket[e3], null); + const e3 = r2.substring(c2.startColumn - 1, c2.endColumn - 1).toLowerCase(), t3 = this._matchFoundBracket(c2, a2.textIsBracket[e3], a2.textIsOpenBracket[e3], null); if (t3) return t3 instanceof Be ? null : t3; } @@ -7964,44 +7964,44 @@ _matchFoundBracket(e2, t2, n2, i2) { if (!t2) return null; - const o2 = n2 ? this._findMatchingBracketDown(t2, e2.getEndPosition(), i2) : this._findMatchingBracketUp(t2, e2.getStartPosition(), i2); - return o2 ? o2 instanceof Be ? o2 : [e2, o2] : null; + const r2 = n2 ? this._findMatchingBracketDown(t2, e2.getEndPosition(), i2) : this._findMatchingBracketUp(t2, e2.getStartPosition(), i2); + return r2 ? r2 instanceof Be ? r2 : [e2, r2] : null; } _findMatchingBracketUp(e2, t2, n2) { - const i2 = e2.languageIdentifier.id, o2 = e2.reversedRegex; - let r2 = -1, s2 = 0; + const i2 = e2.languageIdentifier.id, r2 = e2.reversedRegex; + let o2 = -1, s2 = 0; const a2 = (t3, i3, a3, l2) => { for (; ; ) { if (n2 && ++s2 % 100 == 0 && !n2()) return Be.INSTANCE; - const c2 = Ae.a.findPrevBracketInRange(o2, t3, i3, a3, l2); + const c2 = Ae.a.findPrevBracketInRange(r2, t3, i3, a3, l2); if (!c2) break; const d2 = i3.substring(c2.startColumn - 1, c2.endColumn - 1).toLowerCase(); - if (e2.isOpen(d2) ? r2++ : e2.isClose(d2) && r2--, r2 === 0) + if (e2.isOpen(d2) ? o2++ : e2.isClose(d2) && o2--, o2 === 0) return c2; l2 = c2.startColumn - 1; } return null; }; for (let e3 = t2.lineNumber; e3 >= 1; e3--) { - const n3 = this._getLineTokens(e3), o3 = n3.getCount(), r3 = this._buffer.getLineContent(e3); - let s3 = o3 - 1, l2 = r3.length, c2 = r3.length; + const n3 = this._getLineTokens(e3), r3 = n3.getCount(), o3 = this._buffer.getLineContent(e3); + let s3 = r3 - 1, l2 = o3.length, c2 = o3.length; e3 === t2.lineNumber && (s3 = n3.findTokenIndexAtOffset(t2.column - 1), l2 = t2.column - 1, c2 = t2.column - 1); let d2 = true; for (; s3 >= 0; s3--) { - const t3 = n3.getLanguageId(s3) === i2 && !Object(De.b)(n3.getStandardTokenType(s3)); + const t3 = n3.getLanguageId(s3) === i2 && !Object(Oe.b)(n3.getStandardTokenType(s3)); if (t3) d2 ? l2 = n3.getStartOffset(s3) : (l2 = n3.getStartOffset(s3), c2 = n3.getEndOffset(s3)); else if (d2 && l2 !== c2) { - const t4 = a2(e3, r3, l2, c2); + const t4 = a2(e3, o3, l2, c2); if (t4) return t4; } d2 = t3; } if (d2 && l2 !== c2) { - const t3 = a2(e3, r3, l2, c2); + const t3 = a2(e3, o3, l2, c2); if (t3) return t3; } @@ -8009,40 +8009,40 @@ return null; } _findMatchingBracketDown(e2, t2, n2) { - const i2 = e2.languageIdentifier.id, o2 = e2.forwardRegex; - let r2 = 1, s2 = 0; + const i2 = e2.languageIdentifier.id, r2 = e2.forwardRegex; + let o2 = 1, s2 = 0; const a2 = (t3, i3, a3, l3) => { for (; ; ) { if (n2 && ++s2 % 100 == 0 && !n2()) return Be.INSTANCE; - const c2 = Ae.a.findNextBracketInRange(o2, t3, i3, a3, l3); + const c2 = Ae.a.findNextBracketInRange(r2, t3, i3, a3, l3); if (!c2) break; const d2 = i3.substring(c2.startColumn - 1, c2.endColumn - 1).toLowerCase(); - if (e2.isOpen(d2) ? r2++ : e2.isClose(d2) && r2--, r2 === 0) + if (e2.isOpen(d2) ? o2++ : e2.isClose(d2) && o2--, o2 === 0) return c2; a3 = c2.endColumn - 1; } return null; }, l2 = this.getLineCount(); for (let e3 = t2.lineNumber; e3 <= l2; e3++) { - const n3 = this._getLineTokens(e3), o3 = n3.getCount(), r3 = this._buffer.getLineContent(e3); + const n3 = this._getLineTokens(e3), r3 = n3.getCount(), o3 = this._buffer.getLineContent(e3); let s3 = 0, l3 = 0, c2 = 0; e3 === t2.lineNumber && (s3 = n3.findTokenIndexAtOffset(t2.column - 1), l3 = t2.column - 1, c2 = t2.column - 1); let d2 = true; - for (; s3 < o3; s3++) { - const t3 = n3.getLanguageId(s3) === i2 && !Object(De.b)(n3.getStandardTokenType(s3)); + for (; s3 < r3; s3++) { + const t3 = n3.getLanguageId(s3) === i2 && !Object(Oe.b)(n3.getStandardTokenType(s3)); if (t3) d2 || (l3 = n3.getStartOffset(s3)), c2 = n3.getEndOffset(s3); else if (d2 && l3 !== c2) { - const t4 = a2(e3, r3, l3, c2); + const t4 = a2(e3, o3, l3, c2); if (t4) return t4; } d2 = t3; } if (d2 && l3 !== c2) { - const t3 = a2(e3, r3, l3, c2); + const t3 = a2(e3, o3, l3, c2); if (t3) return t3; } @@ -8053,16 +8053,16 @@ const t2 = this.validatePosition(e2); let n2 = -1, i2 = null; for (let e3 = t2.lineNumber; e3 >= 1; e3--) { - const o2 = this._getLineTokens(e3), r2 = o2.getCount(), s2 = this._buffer.getLineContent(e3); - let a2 = r2 - 1, l2 = s2.length, c2 = s2.length; + const r2 = this._getLineTokens(e3), o2 = r2.getCount(), s2 = this._buffer.getLineContent(e3); + let a2 = o2 - 1, l2 = s2.length, c2 = s2.length; if (e3 === t2.lineNumber) { - a2 = o2.findTokenIndexAtOffset(t2.column - 1), l2 = t2.column - 1, c2 = t2.column - 1; - const e4 = o2.getLanguageId(a2); - n2 !== e4 && (n2 = e4, i2 = Oe.a.getBracketsSupport(n2)); + a2 = r2.findTokenIndexAtOffset(t2.column - 1), l2 = t2.column - 1, c2 = t2.column - 1; + const e4 = r2.getLanguageId(a2); + n2 !== e4 && (n2 = e4, i2 = De.a.getBracketsSupport(n2)); } let d2 = true; for (; a2 >= 0; a2--) { - const t3 = o2.getLanguageId(a2); + const t3 = r2.getLanguageId(a2); if (n2 !== t3) { if (i2 && d2 && l2 !== c2) { const t4 = Ae.a.findPrevBracketInRange(i2.reversedRegex, e3, s2, l2, c2); @@ -8070,17 +8070,17 @@ return this._toFoundBracket(i2, t4); d2 = false; } - n2 = t3, i2 = Oe.a.getBracketsSupport(n2); + n2 = t3, i2 = De.a.getBracketsSupport(n2); } - const r3 = !!i2 && !Object(De.b)(o2.getStandardTokenType(a2)); - if (r3) - d2 ? l2 = o2.getStartOffset(a2) : (l2 = o2.getStartOffset(a2), c2 = o2.getEndOffset(a2)); + const o3 = !!i2 && !Object(Oe.b)(r2.getStandardTokenType(a2)); + if (o3) + d2 ? l2 = r2.getStartOffset(a2) : (l2 = r2.getStartOffset(a2), c2 = r2.getEndOffset(a2)); else if (i2 && d2 && l2 !== c2) { const t4 = Ae.a.findPrevBracketInRange(i2.reversedRegex, e3, s2, l2, c2); if (t4) return this._toFoundBracket(i2, t4); } - d2 = r3; + d2 = o3; } if (i2 && d2 && l2 !== c2) { const t3 = Ae.a.findPrevBracketInRange(i2.reversedRegex, e3, s2, l2, c2); @@ -8092,41 +8092,41 @@ } findNextBracket(e2) { const t2 = this.validatePosition(e2), n2 = this.getLineCount(); - let i2 = -1, o2 = null; + let i2 = -1, r2 = null; for (let e3 = t2.lineNumber; e3 <= n2; e3++) { - const n3 = this._getLineTokens(e3), r2 = n3.getCount(), s2 = this._buffer.getLineContent(e3); + const n3 = this._getLineTokens(e3), o2 = n3.getCount(), s2 = this._buffer.getLineContent(e3); let a2 = 0, l2 = 0, c2 = 0; if (e3 === t2.lineNumber) { a2 = n3.findTokenIndexAtOffset(t2.column - 1), l2 = t2.column - 1, c2 = t2.column - 1; const e4 = n3.getLanguageId(a2); - i2 !== e4 && (i2 = e4, o2 = Oe.a.getBracketsSupport(i2)); + i2 !== e4 && (i2 = e4, r2 = De.a.getBracketsSupport(i2)); } let d2 = true; - for (; a2 < r2; a2++) { + for (; a2 < o2; a2++) { const t3 = n3.getLanguageId(a2); if (i2 !== t3) { - if (o2 && d2 && l2 !== c2) { - const t4 = Ae.a.findNextBracketInRange(o2.forwardRegex, e3, s2, l2, c2); + if (r2 && d2 && l2 !== c2) { + const t4 = Ae.a.findNextBracketInRange(r2.forwardRegex, e3, s2, l2, c2); if (t4) - return this._toFoundBracket(o2, t4); + return this._toFoundBracket(r2, t4); d2 = false; } - i2 = t3, o2 = Oe.a.getBracketsSupport(i2); + i2 = t3, r2 = De.a.getBracketsSupport(i2); } - const r3 = !!o2 && !Object(De.b)(n3.getStandardTokenType(a2)); - if (r3) + const o3 = !!r2 && !Object(Oe.b)(n3.getStandardTokenType(a2)); + if (o3) d2 || (l2 = n3.getStartOffset(a2)), c2 = n3.getEndOffset(a2); - else if (o2 && d2 && l2 !== c2) { - const t4 = Ae.a.findNextBracketInRange(o2.forwardRegex, e3, s2, l2, c2); + else if (r2 && d2 && l2 !== c2) { + const t4 = Ae.a.findNextBracketInRange(r2.forwardRegex, e3, s2, l2, c2); if (t4) - return this._toFoundBracket(o2, t4); + return this._toFoundBracket(r2, t4); } - d2 = r3; + d2 = o3; } - if (o2 && d2 && l2 !== c2) { - const t3 = Ae.a.findNextBracketInRange(o2.forwardRegex, e3, s2, l2, c2); + if (r2 && d2 && l2 !== c2) { + const t3 = Ae.a.findNextBracketInRange(r2.forwardRegex, e3, s2, l2, c2); if (t3) - return this._toFoundBracket(o2, t3); + return this._toFoundBracket(r2, t3); } } return null; @@ -8139,65 +8139,65 @@ const e3 = Date.now(); n2 = () => Date.now() - e3 <= t2; } - const i2 = this.validatePosition(e2), o2 = this.getLineCount(), r2 = new Map(); + const i2 = this.validatePosition(e2), r2 = this.getLineCount(), o2 = new Map(); let s2 = []; const a2 = (e3, t3) => { - if (!r2.has(e3)) { + if (!o2.has(e3)) { let n3 = []; for (let e4 = 0, i3 = t3 ? t3.brackets.length : 0; e4 < i3; e4++) n3[e4] = 0; - r2.set(e3, n3); + o2.set(e3, n3); } - s2 = r2.get(e3); + s2 = o2.get(e3); }; let l2 = 0; - const c2 = (e3, t3, i3, o3, r3) => { + const c2 = (e3, t3, i3, r3, o3) => { for (; ; ) { if (n2 && ++l2 % 100 == 0 && !n2()) return Be.INSTANCE; - const a3 = Ae.a.findNextBracketInRange(e3.forwardRegex, t3, i3, o3, r3); + const a3 = Ae.a.findNextBracketInRange(e3.forwardRegex, t3, i3, r3, o3); if (!a3) break; const c3 = i3.substring(a3.startColumn - 1, a3.endColumn - 1).toLowerCase(), d3 = e3.textIsBracket[c3]; if (d3 && (d3.isOpen(c3) ? s2[d3.index]++ : d3.isClose(c3) && s2[d3.index]--, s2[d3.index] === -1)) return this._matchFoundBracket(a3, d3, false, n2); - o3 = a3.endColumn - 1; + r3 = a3.endColumn - 1; } return null; }; let d2 = -1, h2 = null; - for (let e3 = i2.lineNumber; e3 <= o2; e3++) { - const t3 = this._getLineTokens(e3), n3 = t3.getCount(), o3 = this._buffer.getLineContent(e3); - let r3 = 0, s3 = 0, l3 = 0; + for (let e3 = i2.lineNumber; e3 <= r2; e3++) { + const t3 = this._getLineTokens(e3), n3 = t3.getCount(), r3 = this._buffer.getLineContent(e3); + let o3 = 0, s3 = 0, l3 = 0; if (e3 === i2.lineNumber) { - r3 = t3.findTokenIndexAtOffset(i2.column - 1), s3 = i2.column - 1, l3 = i2.column - 1; - const e4 = t3.getLanguageId(r3); - d2 !== e4 && (d2 = e4, h2 = Oe.a.getBracketsSupport(d2), a2(d2, h2)); + o3 = t3.findTokenIndexAtOffset(i2.column - 1), s3 = i2.column - 1, l3 = i2.column - 1; + const e4 = t3.getLanguageId(o3); + d2 !== e4 && (d2 = e4, h2 = De.a.getBracketsSupport(d2), a2(d2, h2)); } let u2 = true; - for (; r3 < n3; r3++) { - const n4 = t3.getLanguageId(r3); + for (; o3 < n3; o3++) { + const n4 = t3.getLanguageId(o3); if (d2 !== n4) { if (h2 && u2 && s3 !== l3) { - const t4 = c2(h2, e3, o3, s3, l3); + const t4 = c2(h2, e3, r3, s3, l3); if (t4) return je(t4); u2 = false; } - d2 = n4, h2 = Oe.a.getBracketsSupport(d2), a2(d2, h2); + d2 = n4, h2 = De.a.getBracketsSupport(d2), a2(d2, h2); } - const i3 = !!h2 && !Object(De.b)(t3.getStandardTokenType(r3)); + const i3 = !!h2 && !Object(Oe.b)(t3.getStandardTokenType(o3)); if (i3) - u2 || (s3 = t3.getStartOffset(r3)), l3 = t3.getEndOffset(r3); + u2 || (s3 = t3.getStartOffset(o3)), l3 = t3.getEndOffset(o3); else if (h2 && u2 && s3 !== l3) { - const t4 = c2(h2, e3, o3, s3, l3); + const t4 = c2(h2, e3, r3, s3, l3); if (t4) return je(t4); } u2 = i3; } if (h2 && u2 && s3 !== l3) { - const t4 = c2(h2, e3, o3, s3, l3); + const t4 = c2(h2, e3, r3, s3, l3); if (t4) return je(t4); } @@ -8213,19 +8213,19 @@ return i2 ? {range: t2, open: i2.open, close: i2.close, isOpen: e2.textIsOpenBracket[n2]} : null; } static computeIndentLevel(e2, t2) { - let n2 = 0, i2 = 0, o2 = e2.length; - for (; i2 < o2; ) { - let o3 = e2.charCodeAt(i2); - if (o3 === 32) + let n2 = 0, i2 = 0, r2 = e2.length; + for (; i2 < r2; ) { + let r3 = e2.charCodeAt(i2); + if (r3 === 32) n2++; else { - if (o3 !== 9) + if (r3 !== 9) break; n2 = n2 - n2 % t2 + t2; } i2++; } - return i2 === o2 ? -1 : n2; + return i2 === r2 ? -1 : n2; } _computeIndentLevel(e2) { return Ve.computeIndentLevel(this._buffer.getLineContent(e2 + 1), this._options.tabSize); @@ -8235,7 +8235,7 @@ const i2 = this.getLineCount(); if (e2 < 1 || e2 > i2) throw new Error("Illegal value for lineNumber"); - const o2 = Oe.a.getFoldingRules(this._languageIdentifier.id), r2 = Boolean(o2 && o2.offSide); + const r2 = De.a.getFoldingRules(this._languageIdentifier.id), o2 = Boolean(r2 && r2.offSide); let s2 = -2, a2 = -1, l2 = -2, c2 = -1; const d2 = (e3) => { if (s2 !== -1 && (s2 === -2 || s2 > e3 - 1)) { @@ -8283,21 +8283,21 @@ } }; let f2 = 0, b2 = true, _2 = 0, v2 = true, w2 = 0, y2 = 0; - for (let o3 = 0; b2 || v2; o3++) { - const s3 = e2 - o3, p3 = e2 + o3; - o3 > 1 && (s3 < 1 || s3 < t2) && (b2 = false), o3 > 1 && (p3 > i2 || p3 > n2) && (v2 = false), o3 > 5e4 && (b2 = false, v2 = false); + for (let r3 = 0; b2 || v2; r3++) { + const s3 = e2 - r3, p3 = e2 + r3; + r3 > 1 && (s3 < 1 || s3 < t2) && (b2 = false), r3 > 1 && (p3 > i2 || p3 > n2) && (v2 = false), r3 > 5e4 && (b2 = false, v2 = false); let C2 = -1; if (b2) { const e3 = this._computeIndentLevel(s3 - 1); - e3 >= 0 ? (l2 = s3 - 1, c2 = e3, C2 = Math.ceil(e3 / this._options.indentSize)) : (d2(s3), C2 = this._getIndentLevelForWhitespaceLine(r2, a2, c2)); + e3 >= 0 ? (l2 = s3 - 1, c2 = e3, C2 = Math.ceil(e3 / this._options.indentSize)) : (d2(s3), C2 = this._getIndentLevelForWhitespaceLine(o2, a2, c2)); } let x2 = -1; if (v2) { const e3 = this._computeIndentLevel(p3 - 1); - e3 >= 0 ? (h2 = p3 - 1, u2 = e3, x2 = Math.ceil(e3 / this._options.indentSize)) : (g2(p3), x2 = this._getIndentLevelForWhitespaceLine(r2, u2, m2)); + e3 >= 0 ? (h2 = p3 - 1, u2 = e3, x2 = Math.ceil(e3 / this._options.indentSize)) : (g2(p3), x2 = this._getIndentLevelForWhitespaceLine(o2, u2, m2)); } - if (o3 !== 0) { - if (o3 === 1) { + if (r3 !== 0) { + if (r3 === 1) { if (p3 <= i2 && x2 >= 0 && y2 + 1 === x2) { b2 = false, f2 = p3, _2 = p3, w2 = x2; continue; @@ -8322,13 +8322,13 @@ throw new Error("Illegal value for startLineNumber"); if (t2 < 1 || t2 > n2) throw new Error("Illegal value for endLineNumber"); - const i2 = Oe.a.getFoldingRules(this._languageIdentifier.id), o2 = Boolean(i2 && i2.offSide); - let r2 = new Array(t2 - e2 + 1), s2 = -2, a2 = -1, l2 = -2, c2 = -1; + const i2 = De.a.getFoldingRules(this._languageIdentifier.id), r2 = Boolean(i2 && i2.offSide); + let o2 = new Array(t2 - e2 + 1), s2 = -2, a2 = -1, l2 = -2, c2 = -1; for (let i3 = e2; i3 <= t2; i3++) { let t3 = i3 - e2; const d2 = this._computeIndentLevel(i3 - 1); if (d2 >= 0) - s2 = i3 - 1, a2 = d2, r2[t3] = Math.ceil(d2 / this._options.indentSize); + s2 = i3 - 1, a2 = d2, o2[t3] = Math.ceil(d2 / this._options.indentSize); else { if (s2 === -2) { s2 = -1, a2 = -1; @@ -8350,10 +8350,10 @@ } } } - r2[t3] = this._getIndentLevelForWhitespaceLine(o2, a2, c2); + o2[t3] = this._getIndentLevelForWhitespaceLine(r2, a2, c2); } } - return r2; + return o2; } _getIndentLevelForWhitespaceLine(e2, t2, n2) { return t2 === -1 || n2 === -1 ? 0 : t2 < n2 ? 1 + Math.floor(t2 / this._options.indentSize) : t2 === n2 || e2 ? Math.ceil(n2 / this._options.indentSize) : 1 + Math.floor(n2 / this._options.indentSize); @@ -8364,16 +8364,16 @@ constructor() { this._decorationsTree0 = new N(), this._decorationsTree1 = new N(); } - intervalSearch(e2, t2, n2, i2, o2) { - const r2 = this._decorationsTree0.intervalSearch(e2, t2, n2, i2, o2), s2 = this._decorationsTree1.intervalSearch(e2, t2, n2, i2, o2); - return r2.concat(s2); + intervalSearch(e2, t2, n2, i2, r2) { + const o2 = this._decorationsTree0.intervalSearch(e2, t2, n2, i2, r2), s2 = this._decorationsTree1.intervalSearch(e2, t2, n2, i2, r2); + return o2.concat(s2); } search(e2, t2, n2, i2) { if (n2) return this._decorationsTree1.search(e2, t2, i2); { - const n3 = this._decorationsTree0.search(e2, t2, i2), o2 = this._decorationsTree1.search(e2, t2, i2); - return n3.concat(o2); + const n3 = this._decorationsTree0.search(e2, t2, i2), r2 = this._decorationsTree1.search(e2, t2, i2); + return n3.concat(r2); } } collectNodesFromOwner(e2) { @@ -8452,9 +8452,9 @@ function Ze(e2) { return e2 instanceof Ge ? e2 : Ge.createDynamic(e2); } - class Xe extends r.a { + class Xe extends o.a { constructor() { - super(), this._actual = this._register(new o.a()), this.event = this._actual.event, this._deferredCnt = 0, this._shouldFire = false, this._affectsMinimap = false, this._affectsOverviewRuler = false; + super(), this._actual = this._register(new r.a()), this.event = this._actual.event, this._deferredCnt = 0, this._shouldFire = false, this._affectsMinimap = false, this._affectsOverviewRuler = false; } beginDeferredEmit() { this._deferredCnt++; @@ -8472,9 +8472,9 @@ this._affectsMinimap = true, this._affectsOverviewRuler = true, this._shouldFire = true; } } - class Qe extends r.a { + class Qe extends o.a { constructor() { - super(), this._fastEmitter = this._register(new o.a()), this.fastEvent = this._fastEmitter.event, this._slowEmitter = this._register(new o.a()), this.slowEvent = this._slowEmitter.event, this._deferredCnt = 0, this._deferredEvent = null; + super(), this._fastEmitter = this._register(new r.a()), this.fastEvent = this._fastEmitter.event, this._slowEmitter = this._register(new r.a()), this.slowEvent = this._slowEmitter.event, this._deferredCnt = 0, this._deferredEvent = null; } beginDeferredEmit() { this._deferredCnt++; @@ -8498,23 +8498,23 @@ return t2[i2] !== void 0 ? t2[i2] : e3; }); } - function o(e2, t2) { - for (var n2 = [], o2 = 2; o2 < arguments.length; o2++) - n2[o2 - 2] = arguments[o2]; + function r(e2, t2) { + for (var n2 = [], r2 = 2; r2 < arguments.length; r2++) + n2[r2 - 2] = arguments[r2]; return i(t2, n2); } - function r(e2) { - return o; + function o(e2) { + return r; } var s, a, l, c, d, h, u, p, m, g, f, b, _, v, w, y, C, x, S, k, E; n.d(t, "g", function() { - return re; + return oe; }), n.d(t, "d", function() { return p; }), n.d(t, "b", function() { return f; }), n.d(t, "a", function() { - return D; + return O; }), n.d(t, "e", function() { return A; }), n.d(t, "c", function() { @@ -8579,9 +8579,9 @@ }(u || (u = {})), function(e2) { e2.Comment = "comment", e2.Imports = "imports", e2.Region = "region"; }(p || (p = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {startLine: e3, endLine: t2}; - return ie.defined(n2) && (r2.startCharacter = n2), ie.defined(i2) && (r2.endCharacter = i2), ie.defined(o2) && (r2.kind = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {startLine: e3, endLine: t2}; + return ie.defined(n2) && (o2.startCharacter = n2), ie.defined(i2) && (o2.endCharacter = i2), ie.defined(r2) && (o2.kind = r2), o2; }, e2.is = function(e3) { var t2 = e3; return ie.number(t2.startLine) && ie.number(t2.startLine) && (ie.undefined(t2.startCharacter) || ie.number(t2.startCharacter)) && (ie.undefined(t2.endCharacter) || ie.number(t2.endCharacter)) && (ie.undefined(t2.kind) || ie.string(t2.kind)); @@ -8603,9 +8603,9 @@ return t2 != null && (ie.number(t2.value) || ie.string(t2.value)) && ie.string(t2.target); }; }(_ || (_ = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { + e2.create = function(e3, t2, n2, i2, r2, o2) { var s2 = {range: e3, message: t2}; - return ie.defined(n2) && (s2.severity = n2), ie.defined(i2) && (s2.code = i2), ie.defined(o2) && (s2.source = o2), ie.defined(r2) && (s2.relatedInformation = r2), s2; + return ie.defined(n2) && (s2.severity = n2), ie.defined(i2) && (s2.code = i2), ie.defined(r2) && (s2.source = r2), ie.defined(o2) && (s2.relatedInformation = o2), s2; }, e2.is = function(e3) { var t2 = e3; return ie.defined(t2) && a.is(t2.range) && ie.string(t2.message) && (ie.number(t2.severity) || ie.undefined(t2.severity)) && (ie.number(t2.code) || ie.string(t2.code) || ie.undefined(t2.code)) && (ie.string(t2.source) || ie.undefined(t2.source)) && (ie.undefined(t2.relatedInformation) || ie.typedArray(t2.relatedInformation, g.is)); @@ -8614,8 +8614,8 @@ e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {title: e3, command: t2}; - return ie.defined(n2) && n2.length > 0 && (o2.arguments = n2), o2; + var r2 = {title: e3, command: t2}; + return ie.defined(n2) && n2.length > 0 && (r2.arguments = n2), r2; }, e2.is = function(e3) { var t2 = e3; return ie.defined(t2) && ie.string(t2.title) && ie.string(t2.command); @@ -8670,7 +8670,7 @@ })); }; }(E || (E = {})); - var T, L, N, I, O, D, A, R, M, P, F, W, z, B, j, V, U, H, q, $, K, G, Y, Z, X, Q, J, ee, te = function() { + var T, L, N, I, D, O, A, R, M, P, F, W, z, B, j, V, U, H, q, $, K, G, Y, Z, X, Q, J, ee, te = function() { function e2(e3) { this.edits = e3; } @@ -8709,8 +8709,8 @@ throw new Error("Workspace edit is not configured for document changes."); var t2 = e3; if (!(i2 = this._textEditChanges[t2.uri])) { - var n2 = {textDocument: t2, edits: o2 = []}; - this._workspaceEdit.documentChanges.push(n2), i2 = new te(o2), this._textEditChanges[t2.uri] = i2; + var n2 = {textDocument: t2, edits: r2 = []}; + this._workspaceEdit.documentChanges.push(n2), i2 = new te(r2), this._textEditChanges[t2.uri] = i2; } return i2; } @@ -8718,8 +8718,8 @@ throw new Error("Workspace edit is not configured for normal text edit changes."); var i2; if (!(i2 = this._textEditChanges[e3])) { - var o2 = []; - this._workspaceEdit.changes[e3] = o2, i2 = new te(o2), this._textEditChanges[e3] = i2; + var r2 = []; + this._workspaceEdit.changes[e3] = r2, i2 = new te(r2), this._textEditChanges[e3] = i2; } return i2; }, e2.prototype.createFile = function(e3, t2) { @@ -8766,9 +8766,9 @@ var t2 = e3; return ie.objectLiteral(e3) && I.is(t2.kind) && ie.string(t2.value); }; - }(O || (O = {})), function(e2) { - e2.Text = 1, e2.Method = 2, e2.Function = 3, e2.Constructor = 4, e2.Field = 5, e2.Variable = 6, e2.Class = 7, e2.Interface = 8, e2.Module = 9, e2.Property = 10, e2.Unit = 11, e2.Value = 12, e2.Enum = 13, e2.Keyword = 14, e2.Snippet = 15, e2.Color = 16, e2.File = 17, e2.Reference = 18, e2.Folder = 19, e2.EnumMember = 20, e2.Constant = 21, e2.Struct = 22, e2.Event = 23, e2.Operator = 24, e2.TypeParameter = 25; }(D || (D = {})), function(e2) { + e2.Text = 1, e2.Method = 2, e2.Function = 3, e2.Constructor = 4, e2.Field = 5, e2.Variable = 6, e2.Class = 7, e2.Interface = 8, e2.Module = 9, e2.Property = 10, e2.Unit = 11, e2.Value = 12, e2.Enum = 13, e2.Keyword = 14, e2.Snippet = 15, e2.Color = 16, e2.File = 17, e2.Reference = 18, e2.Folder = 19, e2.EnumMember = 20, e2.Constant = 21, e2.Struct = 22, e2.Event = 23, e2.Operator = 24, e2.TypeParameter = 25; + }(O || (O = {})), function(e2) { e2.PlainText = 1, e2.Snippet = 2; }(A || (A = {})), function(e2) { e2.Deprecated = 1; @@ -8797,7 +8797,7 @@ }(W || (W = {})), function(e2) { e2.is = function(e3) { var t2 = e3; - return !!t2 && ie.objectLiteral(t2) && (O.is(t2.contents) || W.is(t2.contents) || ie.typedArray(t2.contents, W.is)) && (e3.range === void 0 || a.is(e3.range)); + return !!t2 && ie.objectLiteral(t2) && (D.is(t2.contents) || W.is(t2.contents) || ie.typedArray(t2.contents, W.is)) && (e3.range === void 0 || a.is(e3.range)); }; }(z || (z = {})), function(e2) { e2.create = function(e3, t2) { @@ -8807,8 +8807,8 @@ e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {label: e3}; - return ie.defined(t2) && (o2.documentation = t2), ie.defined(n2) ? o2.parameters = n2 : o2.parameters = [], o2; + var r2 = {label: e3}; + return ie.defined(t2) && (r2.documentation = t2), ie.defined(n2) ? r2.parameters = n2 : r2.parameters = [], r2; }; }(j || (j = {})), function(e2) { e2.Text = 1, e2.Read = 2, e2.Write = 3; @@ -8822,14 +8822,14 @@ }(H || (H = {})), function(e2) { e2.Deprecated = 1; }(q || (q = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; - return o2 && (r2.containerName = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; + return r2 && (o2.containerName = r2), o2; }; }($ || ($ = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { - var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: o2}; - return r2 !== void 0 && (s2.children = r2), s2; + e2.create = function(e3, t2, n2, i2, r2, o2) { + var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: r2}; + return o2 !== void 0 && (s2.children = o2), s2; }, e2.is = function(e3) { var t2 = e3; return t2 && ie.string(t2.name) && ie.number(t2.kind) && a.is(t2.range) && a.is(t2.selectionRange) && (t2.detail === void 0 || ie.string(t2.detail)) && (t2.deprecated === void 0 || ie.boolean(t2.deprecated)) && (t2.children === void 0 || Array.isArray(t2.children)) && (t2.tags === void 0 || Array.isArray(t2.tags)); @@ -8885,7 +8885,7 @@ var ne; !function(e2) { e2.create = function(e3, t2, n2, i2) { - return new oe(e3, t2, n2, i2); + return new re(e3, t2, n2, i2); }, e2.is = function(e3) { var t2 = e3; return !!(ie.defined(t2) && ie.string(t2.uri) && (ie.undefined(t2.languageId) || ie.string(t2.languageId)) && ie.number(t2.lineCount) && ie.func(t2.getText) && ie.func(t2.positionAt) && ie.func(t2.offsetAt)); @@ -8893,31 +8893,31 @@ for (var n2 = e3.getText(), i2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2, function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }), o2 = n2.length, r2 = i2.length - 1; r2 >= 0; r2--) { - var s2 = i2[r2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); - if (!(l2 <= o2)) + }), r2 = n2.length, o2 = i2.length - 1; o2 >= 0; o2--) { + var s2 = i2[o2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); + if (!(l2 <= r2)) throw new Error("Overlapping edit"); - n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), o2 = a2; + n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), r2 = a2; } return n2; }; }(ne || (ne = {})); - var ie, oe = function() { + var ie, re = function() { function e2(e3, t2, n2, i2) { this._uri = e3, this._languageId = t2, this._version = n2, this._content = i2, this._lineOffsets = void 0; } @@ -8939,8 +8939,8 @@ if (this._lineOffsets === void 0) { for (var e3 = [], t2 = this._content, n2 = true, i2 = 0; i2 < t2.length; i2++) { n2 && (e3.push(i2), n2 = false); - var o2 = t2.charAt(i2); - n2 = o2 === "\r" || o2 === "\n", o2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; + var r2 = t2.charAt(i2); + n2 = r2 === "\r" || r2 === "\n", r2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; } n2 && t2.length > 0 && e3.push(t2.length), this._lineOffsets = e3; } @@ -8951,11 +8951,11 @@ if (i2 === 0) return s.create(0, e3); for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2[o2] > e3 ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2[r2] > e3 ? i2 = r2 : n2 = r2 + 1; } - var r2 = n2 - 1; - return s.create(r2, e3 - t2[r2]); + var o2 = n2 - 1; + return s.create(o2, e3 - t2[o2]); }, e2.prototype.offsetAt = function(e3) { var t2 = this.getLineOffsets(); if (e3.line >= t2.length) @@ -8988,7 +8988,7 @@ return Array.isArray(e3) && e3.every(t3); }; }(ie || (ie = {})); - var re, se, ae, le, ce, de = function() { + var oe, se, ae, le, ce, de = function() { function e2(e3, t2, n2, i2) { this._uri = e3, this._languageId = t2, this._version = n2, this._content = i2, this._lineOffsets = void 0; } @@ -9005,25 +9005,25 @@ } return this._content; }, e2.prototype.update = function(t2, n2) { - for (var i2 = 0, o2 = t2; i2 < o2.length; i2++) { - var r2 = o2[i2]; - if (e2.isIncremental(r2)) { - var s2 = ue(r2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); - this._content = this._content.substring(0, a2) + r2.text + this._content.substring(l2, this._content.length); - var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = he(r2.text, false, a2); + for (var i2 = 0, r2 = t2; i2 < r2.length; i2++) { + var o2 = r2[i2]; + if (e2.isIncremental(o2)) { + var s2 = ue(o2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); + this._content = this._content.substring(0, a2) + o2.text + this._content.substring(l2, this._content.length); + var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = he(o2.text, false, a2); if (d2 - c2 === u2.length) for (var p2 = 0, m2 = u2.length; p2 < m2; p2++) h2[p2 + c2 + 1] = u2[p2]; else u2.length < 1e4 ? h2.splice.apply(h2, [c2 + 1, d2 - c2].concat(u2)) : this._lineOffsets = h2 = h2.slice(0, c2 + 1).concat(u2, h2.slice(d2 + 1)); - var g2 = r2.text.length - (l2 - a2); + var g2 = o2.text.length - (l2 - a2); if (g2 !== 0) for (p2 = c2 + 1 + u2.length, m2 = h2.length; p2 < m2; p2++) h2[p2] = h2[p2] + g2; } else { - if (!e2.isFull(r2)) + if (!e2.isFull(o2)) throw new Error("Unknown change event received"); - this._content = r2.text, this._lineOffsets = void 0; + this._content = o2.text, this._lineOffsets = void 0; } } this._version = n2; @@ -9035,11 +9035,11 @@ if (i2 === 0) return {line: 0, character: e3}; for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2[o2] > e3 ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2[r2] > e3 ? i2 = r2 : n2 = r2 + 1; } - var r2 = n2 - 1; - return {line: r2, character: e3 - t2[r2]}; + var o2 = n2 - 1; + return {line: o2, character: e3 - t2[o2]}; }, e2.prototype.offsetAt = function(e3) { var t2 = this.getLineOffsets(); if (e3.line >= t2.length) @@ -9060,9 +9060,9 @@ }(); function he(e2, t2, n2) { n2 === void 0 && (n2 = 0); - for (var i2 = t2 ? [n2] : [], o2 = 0; o2 < e2.length; o2++) { - var r2 = e2.charCodeAt(o2); - r2 !== 13 && r2 !== 10 || (r2 === 13 && o2 + 1 < e2.length && e2.charCodeAt(o2 + 1) === 10 && o2++, i2.push(n2 + o2 + 1)); + for (var i2 = t2 ? [n2] : [], r2 = 0; r2 < e2.length; r2++) { + var o2 = e2.charCodeAt(r2); + o2 !== 13 && o2 !== 10 || (o2 === 13 && r2 + 1 < e2.length && e2.charCodeAt(r2 + 1) === 10 && r2++, i2.push(n2 + r2 + 1)); } return i2; } @@ -9082,40 +9082,40 @@ return e3.update(t2, n2), e3; throw new Error("TextDocument.update: document must be created by TextDocument.create"); }, e2.applyEdits = function(e3, t2) { - for (var n2 = e3.getText(), i2 = 0, o2 = [], r2 = 0, s2 = function e4(t3, n3) { + for (var n2 = e3.getText(), i2 = 0, r2 = [], o2 = 0, s2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2.map(pe), function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }); r2 < s2.length; r2++) { - var a2 = s2[r2], l2 = e3.offsetAt(a2.range.start); + }); o2 < s2.length; o2++) { + var a2 = s2[o2], l2 = e3.offsetAt(a2.range.start); if (l2 < i2) throw new Error("Overlapping edit"); - l2 > i2 && o2.push(n2.substring(i2, l2)), a2.newText.length && o2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); + l2 > i2 && r2.push(n2.substring(i2, l2)), a2.newText.length && r2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); } - return o2.push(n2.substr(i2)), o2.join(""); + return r2.push(n2.substr(i2)), r2.join(""); }; - }(re || (re = {})), function(e2) { + }(oe || (oe = {})), function(e2) { e2[e2.StartCommentTag = 0] = "StartCommentTag", e2[e2.Comment = 1] = "Comment", e2[e2.EndCommentTag = 2] = "EndCommentTag", e2[e2.StartTagOpen = 3] = "StartTagOpen", e2[e2.StartTagClose = 4] = "StartTagClose", e2[e2.StartTagSelfClose = 5] = "StartTagSelfClose", e2[e2.StartTag = 6] = "StartTag", e2[e2.EndTagOpen = 7] = "EndTagOpen", e2[e2.EndTagClose = 8] = "EndTagClose", e2[e2.EndTag = 9] = "EndTag", e2[e2.DelimiterAssign = 10] = "DelimiterAssign", e2[e2.AttributeName = 11] = "AttributeName", e2[e2.AttributeValue = 12] = "AttributeValue", e2[e2.StartDoctypeTag = 13] = "StartDoctypeTag", e2[e2.Doctype = 14] = "Doctype", e2[e2.EndDoctypeTag = 15] = "EndDoctypeTag", e2[e2.Content = 16] = "Content", e2[e2.Whitespace = 17] = "Whitespace", e2[e2.Unknown = 18] = "Unknown", e2[e2.Script = 19] = "Script", e2[e2.Styles = 20] = "Styles", e2[e2.EOS = 21] = "EOS"; }(se || (se = {})), function(e2) { e2[e2.WithinContent = 0] = "WithinContent", e2[e2.AfterOpeningStartTag = 1] = "AfterOpeningStartTag", e2[e2.AfterOpeningEndTag = 2] = "AfterOpeningEndTag", e2[e2.WithinDoctype = 3] = "WithinDoctype", e2[e2.WithinTag = 4] = "WithinTag", e2[e2.WithinEndTag = 5] = "WithinEndTag", e2[e2.WithinComment = 6] = "WithinComment", e2[e2.WithinScriptContent = 7] = "WithinScriptContent", e2[e2.WithinStyleContent = 8] = "WithinStyleContent", e2[e2.AfterAttributeName = 9] = "AfterAttributeName", e2[e2.BeforeAttributeValue = 10] = "BeforeAttributeValue"; }(ae || (ae = {})), (le || (le = {})).LATEST = {textDocument: {completion: {completionItem: {documentationFormat: [I.Markdown, I.PlainText]}}, hover: {contentFormat: [I.Markdown, I.PlainText]}}}, function(e2) { e2[e2.Unknown = 0] = "Unknown", e2[e2.File = 1] = "File", e2[e2.Directory = 2] = "Directory", e2[e2.SymbolicLink = 64] = "SymbolicLink"; }(ce || (ce = {})); - var me = r(), ge = function() { + var me = o(), ge = function() { function e2(e3, t2) { this.source = e3, this.len = e3.length, this.position = t2; } @@ -9181,12 +9181,12 @@ }(), fe = "!".charCodeAt(0), be = "-".charCodeAt(0), _e = "<".charCodeAt(0), ve = ">".charCodeAt(0), we = "/".charCodeAt(0), ye = "=".charCodeAt(0), Ce = '"'.charCodeAt(0), xe = "'".charCodeAt(0), Se = "\n".charCodeAt(0), ke = "\r".charCodeAt(0), Ee = "\f".charCodeAt(0), Te = " ".charCodeAt(0), Le = " ".charCodeAt(0), Ne = {"text/x-handlebars-template": true}; function Ie(e2, t2, n2, i2) { t2 === void 0 && (t2 = 0), n2 === void 0 && (n2 = ae.WithinContent), i2 === void 0 && (i2 = false); - var o2, r2, s2, a2, l2, c2 = new ge(e2, t2), d2 = n2, h2 = 0, u2 = se.Unknown; + var r2, o2, s2, a2, l2, c2 = new ge(e2, t2), d2 = n2, h2 = 0, u2 = se.Unknown; function p2() { return c2.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase(); } function m2(e3, t3, n3) { - return u2 = t3, h2 = e3, o2 = n3, t3; + return u2 = t3, h2 = e3, r2 = n3, t3; } return {scan: function() { var e3 = c2.pos(), t3 = d2, n3 = function e4() { @@ -9221,19 +9221,19 @@ t4 = me("error.closingBracketExpected", "Closing bracket expected."); break; case ae.AfterOpeningStartTag: - return s2 = p2(), l2 = void 0, a2 = void 0, s2.length > 0 ? (r2 = false, d2 = ae.WithinTag, m2(n4, se.StartTag)) : c2.skipWhitespace() ? m2(n4, se.Whitespace, me("error.unexpectedWhitespace", "Tag name must directly follow the open bracket.")) : (d2 = ae.WithinTag, c2.advanceUntilChar(ve), n4 < c2.pos() ? m2(n4, se.Unknown, me("error.startTagNameExpected", "Start tag name expected.")) : e4()); + return s2 = p2(), l2 = void 0, a2 = void 0, s2.length > 0 ? (o2 = false, d2 = ae.WithinTag, m2(n4, se.StartTag)) : c2.skipWhitespace() ? m2(n4, se.Whitespace, me("error.unexpectedWhitespace", "Tag name must directly follow the open bracket.")) : (d2 = ae.WithinTag, c2.advanceUntilChar(ve), n4 < c2.pos() ? m2(n4, se.Unknown, me("error.startTagNameExpected", "Start tag name expected.")) : e4()); case ae.WithinTag: - return c2.skipWhitespace() ? (r2 = true, m2(n4, se.Whitespace)) : r2 && (a2 = c2.advanceIfRegExp(/^[^\s"'> 0 ? (d2 = ae.AfterAttributeName, r2 = false, m2(n4, se.AttributeName)) : c2.advanceIfChars([we, ve]) ? (d2 = ae.WithinContent, m2(n4, se.StartTagSelfClose)) : c2.advanceIfChar(ve) ? (d2 = s2 === "script" ? l2 && Ne[l2] ? ae.WithinContent : ae.WithinScriptContent : s2 === "style" ? ae.WithinStyleContent : ae.WithinContent, m2(n4, se.StartTagClose)) : i2 && c2.peekChar() === _e ? (d2 = ae.WithinContent, m2(n4, se.StartTagClose, me("error.closingBracketMissing", "Closing bracket missing."))) : (c2.advance(1), m2(n4, se.Unknown, me("error.unexpectedCharacterInTag", "Unexpected character in tag."))); + return c2.skipWhitespace() ? (o2 = true, m2(n4, se.Whitespace)) : o2 && (a2 = c2.advanceIfRegExp(/^[^\s"'> 0 ? (d2 = ae.AfterAttributeName, o2 = false, m2(n4, se.AttributeName)) : c2.advanceIfChars([we, ve]) ? (d2 = ae.WithinContent, m2(n4, se.StartTagSelfClose)) : c2.advanceIfChar(ve) ? (d2 = s2 === "script" ? l2 && Ne[l2] ? ae.WithinContent : ae.WithinScriptContent : s2 === "style" ? ae.WithinStyleContent : ae.WithinContent, m2(n4, se.StartTagClose)) : i2 && c2.peekChar() === _e ? (d2 = ae.WithinContent, m2(n4, se.StartTagClose, me("error.closingBracketMissing", "Closing bracket missing."))) : (c2.advance(1), m2(n4, se.Unknown, me("error.unexpectedCharacterInTag", "Unexpected character in tag."))); case ae.AfterAttributeName: - return c2.skipWhitespace() ? (r2 = true, m2(n4, se.Whitespace)) : c2.advanceIfChar(ye) ? (d2 = ae.BeforeAttributeValue, m2(n4, se.DelimiterAssign)) : (d2 = ae.WithinTag, e4()); + return c2.skipWhitespace() ? (o2 = true, m2(n4, se.Whitespace)) : c2.advanceIfChar(ye) ? (d2 = ae.BeforeAttributeValue, m2(n4, se.DelimiterAssign)) : (d2 = ae.WithinTag, e4()); case ae.BeforeAttributeValue: if (c2.skipWhitespace()) return m2(n4, se.Whitespace); - var o3 = c2.advanceIfRegExp(/^[^\s"'`=<>]+/); - if (o3.length > 0) - return c2.peekChar() === ve && c2.peekChar(-1) === we && (c2.goBack(1), o3 = o3.substr(0, o3.length - 1)), a2 === "type" && (l2 = o3), d2 = ae.WithinTag, r2 = false, m2(n4, se.AttributeValue); + var r3 = c2.advanceIfRegExp(/^[^\s"'`=<>]+/); + if (r3.length > 0) + return c2.peekChar() === ve && c2.peekChar(-1) === we && (c2.goBack(1), r3 = r3.substr(0, r3.length - 1)), a2 === "type" && (l2 = r3), d2 = ae.WithinTag, o2 = false, m2(n4, se.AttributeValue); var h3 = c2.peekChar(); - return h3 === xe || h3 === Ce ? (c2.advance(1), c2.advanceUntilChar(h3) && c2.advance(1), a2 === "type" && (l2 = c2.getSource().substring(n4 + 1, c2.pos() - 1)), d2 = ae.WithinTag, r2 = false, m2(n4, se.AttributeValue)) : (d2 = ae.WithinTag, r2 = false, e4()); + return h3 === xe || h3 === Ce ? (c2.advance(1), c2.advanceUntilChar(h3) && c2.advance(1), a2 === "type" && (l2 = c2.getSource().substring(n4 + 1, c2.pos() - 1)), d2 = ae.WithinTag, o2 = false, m2(n4, se.AttributeValue)) : (d2 = ae.WithinTag, o2 = false, e4()); case ae.WithinScriptContent: for (var u3 = 1; !c2.eos(); ) { var g2 = c2.advanceIfRegExp(/|<\/?script\s*\/?>?/i); @@ -9273,34 +9273,34 @@ }, getScannerState: function() { return d2; }, getTokenError: function() { - return o2; + return r2; }}; } - function Oe(e2, t2) { + function De(e2, t2) { var n2 = 0, i2 = e2.length; if (i2 === 0) return 0; for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2(e2[o2]) ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2(e2[r2]) ? i2 = r2 : n2 = r2 + 1; } return n2; } - var De = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"]; + var Oe = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"]; function Ae(e2) { return !!e2 && function(e3, t2, n2) { - for (var i2 = 0, o2 = e3.length - 1; i2 <= o2; ) { - var r2 = (i2 + o2) / 2 | 0, s2 = n2(e3[r2], t2); + for (var i2 = 0, r2 = e3.length - 1; i2 <= r2; ) { + var o2 = (i2 + r2) / 2 | 0, s2 = n2(e3[o2], t2); if (s2 < 0) - i2 = r2 + 1; + i2 = o2 + 1; else { if (!(s2 > 0)) - return r2; - o2 = r2 - 1; + return o2; + r2 = o2 - 1; } } return -(i2 + 1); - }(De, e2.toLowerCase(), function(e3, t2) { + }(Oe, e2.toLowerCase(), function(e3, t2) { return e3.localeCompare(t2); }) >= 0; } @@ -9317,7 +9317,7 @@ }, enumerable: false, configurable: true}), Object.defineProperty(e2.prototype, "lastChild", {get: function() { return this.children.length ? this.children[this.children.length - 1] : void 0; }, enumerable: false, configurable: true}), e2.prototype.findNodeBefore = function(e3) { - var t2 = Oe(this.children, function(t3) { + var t2 = De(this.children, function(t3) { return e3 <= t3.start; }) - 1; if (t2 >= 0) { @@ -9331,7 +9331,7 @@ } return this; }, e2.prototype.findNodeAt = function(e3) { - var t2 = Oe(this.children, function(t3) { + var t2 = De(this.children, function(t3) { return e3 <= t3.start; }) - 1; if (t2 >= 0) { @@ -9343,7 +9343,7 @@ }, e2; }(); function Me(e2) { - for (var t2 = Ie(e2, void 0, void 0, true), n2 = new Re(0, e2.length, [], void 0), i2 = n2, o2 = -1, r2 = void 0, s2 = null, a2 = t2.scan(); a2 !== se.EOS; ) { + for (var t2 = Ie(e2, void 0, void 0, true), n2 = new Re(0, e2.length, [], void 0), i2 = n2, r2 = -1, o2 = void 0, s2 = null, a2 = t2.scan(); a2 !== se.EOS; ) { switch (a2) { case se.StartTagOpen: var l2 = new Re(t2.getTokenOffset(), e2.length, [], i2); @@ -9359,18 +9359,18 @@ i2.parent && (i2.closed = true, i2.end = t2.getTokenEnd(), i2.startTagEnd = t2.getTokenEnd(), i2 = i2.parent); break; case se.EndTagOpen: - o2 = t2.getTokenOffset(), r2 = void 0; + r2 = t2.getTokenOffset(), o2 = void 0; break; case se.EndTag: - r2 = t2.getTokenText().toLowerCase(); + o2 = t2.getTokenText().toLowerCase(); break; case se.EndTagClose: - for (var c2 = i2; !c2.isSameTag(r2) && c2.parent; ) + for (var c2 = i2; !c2.isSameTag(o2) && c2.parent; ) c2 = c2.parent; if (c2.parent) { for (; i2 !== c2; ) - i2.end = o2, i2.closed = false, i2 = i2.parent; - i2.closed = true, i2.endTagStart = o2, i2.end = t2.getTokenEnd(), i2 = i2.parent; + i2.end = r2, i2.closed = false, i2 = i2.parent; + i2.closed = true, i2.endTagStart = r2, i2.end = t2.getTokenEnd(), i2 = i2.parent; } break; case se.AttributeName: @@ -9431,7 +9431,7 @@ }, e2.prototype.provideValues = function(e3, t2) { var n2 = this, i2 = []; t2 = t2.toLowerCase(); - var o2 = function(e4) { + var r2 = function(e4) { e4.forEach(function(e5) { e5.name.toLowerCase() === t2 && (e5.values && e5.values.forEach(function(e6) { i2.push(e6); @@ -9439,8 +9439,8 @@ i2.push(e6); })); }); - }, r2 = this._tagMap[e3.toLowerCase()]; - return r2 ? (o2(r2.attributes), o2(this._globalAttributes), i2) : []; + }, o2 = this._tagMap[e3.toLowerCase()]; + return o2 ? (r2(o2.attributes), r2(this._globalAttributes), i2) : []; }, e2; }(); function Ge(e2, t2) { @@ -9460,90 +9460,90 @@ return n2; } var Ye = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, Ze = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } }, Xe = function() { @@ -9559,33 +9559,33 @@ })(e3.tag, e3.attribute) && this.atributeCompletions.push(e3); }, e2.prototype.computeCompletions = function(e3, t2) { return Ye(this, void 0, void 0, function() { - var n2, i2, o2, r2, s2, l2, c2, d2, h2, u2; + var n2, i2, r2, o2, s2, l2, c2, d2, h2, u2; return Ze(this, function(p2) { switch (p2.label) { case 0: - n2 = {items: [], isIncomplete: false}, i2 = 0, o2 = this.atributeCompletions, p2.label = 1; + n2 = {items: [], isIncomplete: false}, i2 = 0, r2 = this.atributeCompletions, p2.label = 1; case 1: - return i2 < o2.length ? (r2 = o2[i2], function(e4) { + return i2 < r2.length ? (o2 = r2[i2], function(e4) { if (Fe(e4, "http") || Fe(e4, "https") || Fe(e4, "//")) return false; return true; }(s2 = function(e4) { return Fe(e4, "'") || Fe(e4, '"') ? e4.slice(1, -1) : e4; - }(e3.getText(r2.range))) ? s2 !== "." && s2 !== ".." ? [3, 2] : (n2.isIncomplete = true, [3, 4]) : [3, 4]) : [3, 5]; + }(e3.getText(o2.range))) ? s2 !== "." && s2 !== ".." ? [3, 2] : (n2.isIncomplete = true, [3, 4]) : [3, 4]) : [3, 5]; case 2: return l2 = function(e4, t3, n3) { - var i3, o3 = e4.lastIndexOf("/"); - if (o3 === -1) + var i3, r3 = e4.lastIndexOf("/"); + if (r3 === -1) i3 = function(e5, t4, n4) { - var i4 = et(e5.start, t4), o4 = et(e5.end, n4); - return a.create(i4, o4); + var i4 = et(e5.start, t4), r4 = et(e5.end, n4); + return a.create(i4, r4); }(n3, 1, -1); else { - var r3 = t3.slice(o3 + 1), s3 = et(n3.end, -1 - r3.length), l3 = r3.indexOf(" "), c3 = void 0; + var o3 = t3.slice(r3 + 1), s3 = et(n3.end, -1 - o3.length), l3 = o3.indexOf(" "), c3 = void 0; c3 = l3 !== -1 ? et(s3, l3) : et(n3.end, -1), i3 = a.create(s3, c3); } return i3; - }(r2.value, s2, r2.range), [4, this.providePathSuggestions(r2.value, l2, e3, t2)]; + }(o2.value, s2, o2.range), [4, this.providePathSuggestions(o2.value, l2, e3, t2)]; case 3: for (c2 = p2.sent(), d2 = 0, h2 = c2; d2 < h2.length; d2++) u2 = h2[d2], n2.items.push(u2); @@ -9599,15 +9599,15 @@ }); }, e2.prototype.providePathSuggestions = function(e3, t2, n2, i2) { return Ye(this, void 0, void 0, function() { - var o2, r2, s2, a2, l2, c2, d2, h2, u2; + var r2, o2, s2, a2, l2, c2, d2, h2, u2; return Ze(this, function(p2) { switch (p2.label) { case 0: - if (o2 = e3.substring(0, e3.lastIndexOf("/") + 1), !(r2 = i2.resolveReference(o2 || ".", n2.uri))) + if (r2 = e3.substring(0, e3.lastIndexOf("/") + 1), !(o2 = i2.resolveReference(r2 || ".", n2.uri))) return [3, 4]; p2.label = 1; case 1: - return p2.trys.push([1, 3, , 4]), s2 = [], [4, this.readDirectory(r2)]; + return p2.trys.push([1, 3, , 4]), s2 = [], [4, this.readDirectory(o2)]; case 2: for (a2 = p2.sent(), l2 = 0, c2 = a2; l2 < c2.length; l2++) d2 = c2[l2], h2 = d2[0], u2 = d2[1], h2.charCodeAt(0) !== Qe && s2.push(Je(h2, u2 === ce.Directory, t2)); @@ -9622,115 +9622,115 @@ }, e2; }(), Qe = ".".charCodeAt(0); function Je(e2, t2, n2) { - return t2 ? {label: e2 += "/", kind: D.Folder, textEdit: y.replace(n2, e2), command: {title: "Suggest", command: "editor.action.triggerSuggest"}} : {label: e2, kind: D.File, textEdit: y.replace(n2, e2)}; + return t2 ? {label: e2 += "/", kind: O.Folder, textEdit: y.replace(n2, e2), command: {title: "Suggest", command: "editor.action.triggerSuggest"}} : {label: e2, kind: O.File, textEdit: y.replace(n2, e2)}; } function et(e2, t2) { return s.create(e2.line, e2.character + t2); } var tt = {a: "href", area: "href", body: "background", del: "cite", form: "action", frame: ["src", "longdesc"], img: ["src", "longdesc"], ins: "cite", link: "href", object: "data", q: "cite", script: "src", audio: "src", button: "formaction", command: "icon", embed: "src", html: "manifest", input: ["src", "formaction"], source: "src", track: "src", video: ["src", "poster"]}, nt = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, it = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } - }, ot = r(), rt = function() { + }, rt = o(), ot = function() { function e2(e3, t2) { this.lsOptions = e3, this.dataManager = t2, this.completionParticipants = []; } return e2.prototype.setCompletionParticipants = function(e3) { this.completionParticipants = e3 || []; - }, e2.prototype.doComplete2 = function(e3, t2, n2, i2, o2) { + }, e2.prototype.doComplete2 = function(e3, t2, n2, i2, r2) { return nt(this, void 0, void 0, function() { - var r2, s2, a2, l2; + var o2, s2, a2, l2; return it(this, function(c2) { switch (c2.label) { case 0: if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) - return [2, this.doComplete(e3, t2, n2, o2)]; - r2 = new Xe(this.lsOptions.fileSystemProvider.readDirectory), s2 = this.completionParticipants, this.completionParticipants = [r2].concat(s2), a2 = this.doComplete(e3, t2, n2, o2), c2.label = 1; + return [2, this.doComplete(e3, t2, n2, r2)]; + o2 = new Xe(this.lsOptions.fileSystemProvider.readDirectory), s2 = this.completionParticipants, this.completionParticipants = [o2].concat(s2), a2 = this.doComplete(e3, t2, n2, r2), c2.label = 1; case 1: - return c2.trys.push([1, , 3, 4]), [4, r2.computeCompletions(e3, i2)]; + return c2.trys.push([1, , 3, 4]), [4, o2.computeCompletions(e3, i2)]; case 2: return l2 = c2.sent(), [2, {isIncomplete: a2.isIncomplete || l2.isIncomplete, items: l2.items.concat(a2.items)}]; case 3: @@ -9741,14 +9741,14 @@ }); }); }, e2.prototype.doComplete = function(e3, t2, n2, i2) { - var o2 = this._doComplete(e3, t2, n2, i2); - return this.convertCompletionList(o2); + var r2 = this._doComplete(e3, t2, n2, i2); + return this.convertCompletionList(r2); }, e2.prototype._doComplete = function(e3, t2, n2, i2) { - var o2 = {isIncomplete: false, items: []}, r2 = this.completionParticipants, l2 = this.dataManager.getDataProviders().filter(function(t3) { + var r2 = {isIncomplete: false, items: []}, o2 = this.completionParticipants, l2 = this.dataManager.getDataProviders().filter(function(t3) { return t3.isApplicable(e3.languageId) && (!i2 || i2[t3.getId()] !== false); }), c2 = this.doesSupportMarkdown(), d2 = e3.getText(), h2 = e3.offsetAt(t2), u2 = n2.findNodeBefore(h2); if (!u2) - return o2; + return r2; var p2, m2 = Ie(d2, u2.start), g2 = ""; function f2(t3, n3) { return n3 === void 0 && (n3 = h2), t3 > h2 && (t3 = h2), {start: e3.positionAt(t3), end: e3.positionAt(n3)}; @@ -9757,9 +9757,9 @@ var n3 = f2(e4, t3); return l2.forEach(function(e5) { e5.provideTags().forEach(function(e6) { - o2.items.push({label: e6.name, kind: D.Property, documentation: Ge(e6, c2), textEdit: y.replace(n3, e6.name), insertTextFormat: A.PlainText}); + r2.items.push({label: e6.name, kind: O.Property, documentation: Ge(e6, c2), textEdit: y.replace(n3, e6.name), insertTextFormat: A.PlainText}); }); - }), o2; + }), r2; } function _2(e4) { for (var t3 = e4; t3 > 0; ) { @@ -9774,48 +9774,48 @@ } function v2(e4, t3, n3) { n3 === void 0 && (n3 = h2); - var i3 = f2(e4, n3), r3 = at(d2, n3, ae.WithinEndTag, se.EndTagClose) ? "" : ">", s2 = u2; + var i3 = f2(e4, n3), o3 = at(d2, n3, ae.WithinEndTag, se.EndTagClose) ? "" : ">", s2 = u2; for (t3 && (s2 = s2.parent); s2; ) { var a2 = s2.tag; if (a2 && (!s2.closed || s2.endTagStart && s2.endTagStart > h2)) { - var p3 = {label: "/" + a2, kind: D.Property, filterText: "/" + a2, textEdit: y.replace(i3, "/" + a2 + r3), insertTextFormat: A.PlainText}, m3 = _2(s2.start), g3 = _2(e4 - 1); + var p3 = {label: "/" + a2, kind: O.Property, filterText: "/" + a2, textEdit: y.replace(i3, "/" + a2 + o3), insertTextFormat: A.PlainText}, m3 = _2(s2.start), g3 = _2(e4 - 1); if (m3 !== null && g3 !== null && m3 !== g3) { - var b3 = m3 + "", kind: D.Property, filterText: "", textEdit: y.insert(r3, "$0"), insertTextFormat: A.Snippet}); + var o3 = e3.positionAt(t3); + r2.items.push({label: "", kind: O.Property, filterText: "", textEdit: y.insert(o3, "$0"), insertTextFormat: A.Snippet}); } - return o2; + return r2; } function C2(e4, t3) { - return b2(e4, t3), v2(e4, true, t3), o2; + return b2(e4, t3), v2(e4, true, t3), r2; } function x2(e4, t3) { t3 === void 0 && (t3 = h2); for (var i3 = h2; i3 < t3 && d2[i3] !== "<"; ) i3++; - var r3 = f2(e4, i3), s2 = at(d2, t3, ae.AfterAttributeName, se.DelimiterAssign) ? "" : '="$1"', a2 = Object.create(null); + var o3 = f2(e4, i3), s2 = at(d2, t3, ae.AfterAttributeName, se.DelimiterAssign) ? "" : '="$1"', a2 = Object.create(null); return l2.forEach(function(e5) { e5.provideAttributes(g2).forEach(function(e6) { if (!a2[e6.name]) { a2[e6.name] = true; var t4, n3 = e6.name; - e6.valueSet !== "v" && s2.length && (n3 += s2, (e6.valueSet || e6.name === "style") && (t4 = {title: "Suggest", command: "editor.action.triggerSuggest"})), o2.items.push({label: e6.name, kind: e6.valueSet === "handler" ? D.Function : D.Value, documentation: Ge(e6, c2), textEdit: y.replace(r3, n3), insertTextFormat: A.Snippet, command: t4}); + e6.valueSet !== "v" && s2.length && (n3 += s2, (e6.valueSet || e6.name === "style") && (t4 = {title: "Suggest", command: "editor.action.triggerSuggest"})), r2.items.push({label: e6.name, kind: e6.valueSet === "handler" ? O.Function : O.Value, documentation: Ge(e6, c2), textEdit: y.replace(o3, n3), insertTextFormat: A.Snippet, command: t4}); } }); }), function(e5, t4) { @@ -9830,9 +9830,9 @@ }(e6); }); Object.keys(i4).forEach(function(t5) { - return o2.items.push({label: t5, kind: D.Value, textEdit: y.replace(e5, i4[t5]), insertTextFormat: A.Snippet}); + return r2.items.push({label: t5, kind: O.Value, textEdit: y.replace(e5, i4[t5]), insertTextFormat: A.Snippet}); }); - }(r3, a2), o2; + }(o3, a2), r2; } function S2(n3, i3) { var s2, a2, u3, m3; @@ -9851,47 +9851,47 @@ s2 = f2(v3, w3), u3 = h2 >= b3 && h2 <= _3 ? d2.substring(b3, h2) : "", a2 = false; } else s2 = f2(n3, i3), u3 = d2.substring(n3, h2), a2 = true; - if (r2.length > 0) - for (var C3 = g2.toLowerCase(), x3 = p2.toLowerCase(), S3 = f2(n3, i3), k3 = 0, E3 = r2; k3 < E3.length; k3++) { + if (o2.length > 0) + for (var C3 = g2.toLowerCase(), x3 = p2.toLowerCase(), S3 = f2(n3, i3), k3 = 0, E3 = o2; k3 < E3.length; k3++) { var L3 = E3[k3]; L3.onHtmlAttributeValue && L3.onHtmlAttributeValue({document: e3, position: t2, tag: C3, attribute: x3, value: u3, range: S3}); } return l2.forEach(function(e4) { e4.provideValues(g2, p2).forEach(function(e5) { var t3 = a2 ? '"' + e5.name + '"' : e5.name; - o2.items.push({label: e5.name, filterText: t3, kind: D.Unit, documentation: Ge(e5, c2), textEdit: y.replace(s2, t3), insertTextFormat: A.PlainText}); + r2.items.push({label: e5.name, filterText: t3, kind: O.Unit, documentation: Ge(e5, c2), textEdit: y.replace(s2, t3), insertTextFormat: A.PlainText}); }); - }), T2(), o2; + }), T2(), r2; } function k2(e4) { return h2 === m2.getTokenEnd() && (N2 = m2.scan()) === e4 && m2.getTokenOffset() === h2 ? m2.getTokenEnd() : h2; } function E2() { - for (var n3 = 0, i3 = r2; n3 < i3.length; n3++) { - var o3 = i3[n3]; - o3.onHtmlContent && o3.onHtmlContent({document: e3, position: t2}); + for (var n3 = 0, i3 = o2; n3 < i3.length; n3++) { + var r3 = i3[n3]; + r3.onHtmlContent && r3.onHtmlContent({document: e3, position: t2}); } return T2(); } function T2() { - for (var e4, n3, i3, r3 = h2 - 1, l3 = t2.character; r3 >= 0 && qe(d2, r3); ) - r3--, l3--; - if (r3 >= 0 && d2[r3] === "&") { + for (var e4, n3, i3, o3 = h2 - 1, l3 = t2.character; o3 >= 0 && qe(d2, o3); ) + o3--, l3--; + if (o3 >= 0 && d2[o3] === "&") { var c3 = a.create(s.create(t2.line, l3 - 1), t2); for (var u3 in Pe) if (n3 = ";", i3 = void 0, (i3 = (e4 = u3).length - n3.length) > 0 ? e4.lastIndexOf(n3) === i3 : i3 === 0 && e4 === n3) { var p3 = "&" + u3; - o2.items.push({label: p3, kind: D.Keyword, documentation: ot("entity.propose", "Character entity representing '" + Pe[u3] + "'"), textEdit: y.replace(c3, p3), insertTextFormat: A.PlainText}); + r2.items.push({label: p3, kind: O.Keyword, documentation: rt("entity.propose", "Character entity representing '" + Pe[u3] + "'"), textEdit: y.replace(c3, p3), insertTextFormat: A.PlainText}); } } - return o2; + return r2; } for (var L2, N2 = m2.scan(); N2 !== se.EOS && m2.getTokenOffset() <= h2; ) { switch (N2) { case se.StartTagOpen: if (m2.getTokenEnd() === h2) { var I2 = k2(se.StartTag); - return t2.line === 0 && (L2 = void 0, L2 = f2(h2, I2), o2.items.push({label: "!DOCTYPE", kind: D.Property, documentation: "A preamble for an HTML document.", textEdit: y.replace(L2, "!DOCTYPE html>"), insertTextFormat: A.PlainText})), C2(h2, I2); + return t2.line === 0 && (L2 = void 0, L2 = f2(h2, I2), r2.items.push({label: "!DOCTYPE", kind: O.Property, documentation: "A preamble for an HTML document.", textEdit: y.replace(L2, "!DOCTYPE html>"), insertTextFormat: A.PlainText})), C2(h2, I2); } break; case se.StartTag: @@ -9936,13 +9936,13 @@ break; case se.EndTag: if (h2 <= m2.getTokenEnd()) - for (var O2 = m2.getTokenOffset() - 1; O2 >= 0; ) { - var R2 = d2.charAt(O2); + for (var D2 = m2.getTokenOffset() - 1; D2 >= 0; ) { + var R2 = d2.charAt(D2); if (R2 === "/") - return v2(O2, false, m2.getTokenEnd()); + return v2(D2, false, m2.getTokenEnd()); if (!st(R2)) break; - O2--; + D2--; } break; case se.StartTagClose: @@ -9955,32 +9955,32 @@ break; default: if (h2 <= m2.getTokenEnd()) - return o2; + return r2; } N2 = m2.scan(); } - return o2; + return r2; }, e2.prototype.doTagComplete = function(e3, t2, n2) { var i2 = e3.offsetAt(t2); if (i2 <= 0) return null; - var o2 = e3.getText().charAt(i2 - 1); - if (o2 === ">") { + var r2 = e3.getText().charAt(i2 - 1); + if (r2 === ">") { if ((s2 = n2.findNodeBefore(i2)) && s2.tag && !Ae(s2.tag) && s2.start < i2 && (!s2.endTagStart || s2.endTagStart > i2)) - for (var r2 = (a2 = Ie(e3.getText(), s2.start)).scan(); r2 !== se.EOS && a2.getTokenEnd() <= i2; ) { - if (r2 === se.StartTagClose && a2.getTokenEnd() === i2) + for (var o2 = (a2 = Ie(e3.getText(), s2.start)).scan(); o2 !== se.EOS && a2.getTokenEnd() <= i2; ) { + if (o2 === se.StartTagClose && a2.getTokenEnd() === i2) return "$0"; - r2 = a2.scan(); + o2 = a2.scan(); } - } else if (o2 === "/") { + } else if (r2 === "/") { for (var s2 = n2.findNodeBefore(i2); s2 && s2.closed; ) s2 = s2.parent; if (s2 && s2.tag) { var a2; - for (r2 = (a2 = Ie(e3.getText(), s2.start)).scan(); r2 !== se.EOS && a2.getTokenEnd() <= i2; ) { - if (r2 === se.EndTagOpen && a2.getTokenEnd() === i2) + for (o2 = (a2 = Ie(e3.getText(), s2.start)).scan(); o2 !== se.EOS && a2.getTokenEnd() <= i2; ) { + if (o2 === se.EndTagOpen && a2.getTokenEnd() === i2) return s2.tag + ">"; - r2 = a2.scan(); + o2 = a2.scan(); } } } @@ -10004,44 +10004,44 @@ return /^\s*$/.test(e2); } function at(e2, t2, n2, i2) { - for (var o2 = Ie(e2, t2, n2), r2 = o2.scan(); r2 === se.Whitespace; ) - r2 = o2.scan(); - return r2 === i2; + for (var r2 = Ie(e2, t2, n2), o2 = r2.scan(); o2 === se.Whitespace; ) + o2 = r2.scan(); + return o2 === i2; } var lt = function() { function e2(e3, t2) { this.lsOptions = e3, this.dataManager = t2; } return e2.prototype.doHover = function(e3, t2, n2) { - var i2 = this.convertContents.bind(this), o2 = this.doesSupportMarkdown(), r2 = e3.offsetAt(t2), s2 = n2.findNodeAt(r2); + var i2 = this.convertContents.bind(this), r2 = this.doesSupportMarkdown(), o2 = e3.offsetAt(t2), s2 = n2.findNodeAt(o2); if (!s2 || !s2.tag) return null; var a2 = this.dataManager.getDataProviders().filter(function(t3) { return t3.isApplicable(e3.languageId); }); function l2(e4, t3, n3) { - for (var r3 = function(n4) { - var r4 = null; + for (var o3 = function(n4) { + var o4 = null; if (n4.provideTags().forEach(function(n5) { if (n5.name.toLowerCase() === e4.toLowerCase()) { - var i3 = Ge(n5, o2); - i3 || (i3 = {kind: o2 ? "markdown" : "plaintext", value: ""}), r4 = {contents: i3, range: t3}; + var i3 = Ge(n5, r2); + i3 || (i3 = {kind: r2 ? "markdown" : "plaintext", value: ""}), o4 = {contents: i3, range: t3}; } - }), r4) - return r4.contents = i2(r4.contents), {value: r4}; + }), o4) + return o4.contents = i2(o4.contents), {value: o4}; }, s3 = 0, l3 = a2; s3 < l3.length; s3++) { - var c3 = r3(l3[s3]); + var c3 = o3(l3[s3]); if (typeof c3 == "object") return c3.value; } return null; } function c2(t3, n3) { - for (var i3 = Ie(e3.getText(), n3), o3 = i3.scan(); o3 !== se.EOS && (i3.getTokenEnd() < r2 || i3.getTokenEnd() === r2 && o3 !== t3); ) - o3 = i3.scan(); - return o3 === t3 && r2 <= i3.getTokenEnd() ? {start: e3.positionAt(i3.getTokenOffset()), end: e3.positionAt(i3.getTokenEnd())} : null; + for (var i3 = Ie(e3.getText(), n3), r3 = i3.scan(); r3 !== se.EOS && (i3.getTokenEnd() < o2 || i3.getTokenEnd() === o2 && r3 !== t3); ) + r3 = i3.scan(); + return r3 === t3 && o2 <= i3.getTokenEnd() ? {start: e3.positionAt(i3.getTokenOffset()), end: e3.positionAt(i3.getTokenEnd())} : null; } - if (s2.endTagStart && r2 >= s2.endTagStart) { + if (s2.endTagStart && o2 >= s2.endTagStart) { var d2 = c2(se.EndTag, s2.endTagStart); return d2 ? l2(s2.tag, d2) : null; } @@ -10051,17 +10051,17 @@ var u2 = c2(se.AttributeName, s2.start); if (u2) return function(e4, t3, n3) { - for (var r3 = function(r4) { + for (var o3 = function(o4) { var s4 = null; - if (r4.provideAttributes(e4).forEach(function(e5) { + if (o4.provideAttributes(e4).forEach(function(e5) { if (t3 === e5.name && e5.description) { - var i3 = Ge(e5, o2); + var i3 = Ge(e5, r2); s4 = i3 ? {contents: i3, range: n3} : null; } }), s4) return s4.contents = i2(s4.contents), {value: s4}; }, s3 = 0, l3 = a2; s3 < l3.length; s3++) { - var c3 = r3(l3[s3]); + var c3 = o3(l3[s3]); if (typeof c3 == "object") return c3.value; } @@ -10076,18 +10076,18 @@ e4[e4.length - 1] !== "'" && e4[e4.length - 1] !== '"' || (e4 = e4.slice(0, -1)); return e4; }(e3.getText(p2)), f2 = function(t3, n3) { - for (var i3 = Ie(e3.getText(), t3), o3 = i3.scan(), r3 = void 0; o3 !== se.EOS && i3.getTokenEnd() <= n3; ) - (o3 = i3.scan()) === se.AttributeName && (r3 = i3.getTokenText()); - return r3; + for (var i3 = Ie(e3.getText(), t3), r3 = i3.scan(), o3 = void 0; r3 !== se.EOS && i3.getTokenEnd() <= n3; ) + (r3 = i3.scan()) === se.AttributeName && (o3 = i3.getTokenText()); + return o3; }(s2.start, e3.offsetAt(p2.start)); if (f2) - return function(e4, t3, n3, r3) { + return function(e4, t3, n3, o3) { for (var s3 = function(s4) { var a3 = null; if (s4.provideValues(e4, t3).forEach(function(e5) { if (n3 === e5.name && e5.description) { - var t4 = Ge(e5, o2); - a3 = t4 ? {contents: t4, range: r3} : null; + var t4 = Ge(e5, r2); + a3 = t4 ? {contents: t4, range: o3} : null; } }), a3) return a3.contents = i2(a3.contents), {value: a3}; @@ -10132,8 +10132,8 @@ function n2(i2) { if (t2[i2]) return t2[i2].exports; - var o2 = t2[i2] = {i: i2, l: false, exports: {}}; - return e2[i2].call(o2.exports, o2, o2.exports, n2), o2.l = true, o2.exports; + var r2 = t2[i2] = {i: i2, l: false, exports: {}}; + return e2[i2].call(r2.exports, r2, r2.exports, n2), r2.l = true, r2.exports; } return n2.m = e2, n2.c = t2, n2.d = function(e3, t3, i2) { n2.o(e3, t3) || Object.defineProperty(e3, t3, {enumerable: true, get: i2}); @@ -10146,10 +10146,10 @@ return e3; var i2 = Object.create(null); if (n2.r(i2), Object.defineProperty(i2, "default", {enumerable: true, value: e3}), 2 & t3 && typeof e3 != "string") - for (var o2 in e3) - n2.d(i2, o2, function(t4) { + for (var r2 in e3) + n2.d(i2, r2, function(t4) { return e3[t4]; - }.bind(null, o2)); + }.bind(null, r2)); return i2; }, n2.n = function(e3) { var t3 = e3 && e3.__esModule ? function() { @@ -10165,11 +10165,11 @@ function i2(e3) { this.__parent = e3, this.__character_count = 0, this.__indent_count = -1, this.__alignment_count = 0, this.__wrap_point_index = 0, this.__wrap_point_character_count = 0, this.__wrap_point_indent_count = -1, this.__wrap_point_alignment_count = 0, this.__items = []; } - function o2(e3, t3) { + function r2(e3, t3) { this.__cache = [""], this.__indent_size = e3.indent_size, this.__indent_string = e3.indent_char, e3.indent_with_tabs || (this.__indent_string = new Array(e3.indent_size + 1).join(e3.indent_char)), t3 = t3 || "", e3.indent_level > 0 && (t3 = new Array(e3.indent_level + 1).join(this.__indent_string)), this.__base_string = t3, this.__base_string_length = t3.length; } - function r2(e3, t3) { - this.__indent_cache = new o2(e3, t3), this.raw = false, this._end_with_newline = e3.end_with_newline, this.indent_size = e3.indent_size, this.wrap_line_length = e3.wrap_line_length, this.indent_empty_lines = e3.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new i2(this), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false, this.__add_outputline(); + function o2(e3, t3) { + this.__indent_cache = new r2(e3, t3), this.raw = false, this._end_with_newline = e3.end_with_newline, this.indent_size = e3.indent_size, this.wrap_line_length = e3.wrap_line_length, this.indent_empty_lines = e3.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new i2(this), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false, this.__add_outputline(); } i2.prototype.clone_empty = function() { var e3 = new i2(this.__parent); @@ -10215,86 +10215,86 @@ }, i2.prototype.toString = function() { var e3 = ""; return this.is_empty() ? this.__parent.indent_empty_lines && (e3 = this.__parent.get_indent_string(this.__indent_count)) : (e3 = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count), e3 += this.__items.join("")), e3; - }, o2.prototype.get_indent_size = function(e3, t3) { + }, r2.prototype.get_indent_size = function(e3, t3) { var n3 = this.__base_string_length; return t3 = t3 || 0, e3 < 0 && (n3 = 0), n3 += e3 * this.__indent_size, n3 += t3; - }, o2.prototype.get_indent_string = function(e3, t3) { + }, r2.prototype.get_indent_string = function(e3, t3) { var n3 = this.__base_string; return t3 = t3 || 0, e3 < 0 && (e3 = 0, n3 = ""), t3 += e3 * this.__indent_size, this.__ensure_cache(t3), n3 += this.__cache[t3]; - }, o2.prototype.__ensure_cache = function(e3) { + }, r2.prototype.__ensure_cache = function(e3) { for (; e3 >= this.__cache.length; ) this.__add_column(); - }, o2.prototype.__add_column = function() { + }, r2.prototype.__add_column = function() { var e3 = this.__cache.length, t3 = 0, n3 = ""; this.__indent_size && e3 >= this.__indent_size && (e3 -= (t3 = Math.floor(e3 / this.__indent_size)) * this.__indent_size, n3 = new Array(t3 + 1).join(this.__indent_string)), e3 && (n3 += new Array(e3 + 1).join(" ")), this.__cache.push(n3); - }, r2.prototype.__add_outputline = function() { + }, o2.prototype.__add_outputline = function() { this.previous_line = this.current_line, this.current_line = this.next_line.clone_empty(), this.__lines.push(this.current_line); - }, r2.prototype.get_line_number = function() { + }, o2.prototype.get_line_number = function() { return this.__lines.length; - }, r2.prototype.get_indent_string = function(e3, t3) { + }, o2.prototype.get_indent_string = function(e3, t3) { return this.__indent_cache.get_indent_string(e3, t3); - }, r2.prototype.get_indent_size = function(e3, t3) { + }, o2.prototype.get_indent_size = function(e3, t3) { return this.__indent_cache.get_indent_size(e3, t3); - }, r2.prototype.is_empty = function() { + }, o2.prototype.is_empty = function() { return !this.previous_line && this.current_line.is_empty(); - }, r2.prototype.add_new_line = function(e3) { + }, o2.prototype.add_new_line = function(e3) { return !(this.is_empty() || !e3 && this.just_added_newline()) && (this.raw || this.__add_outputline(), true); - }, r2.prototype.get_code = function(e3) { + }, o2.prototype.get_code = function(e3) { this.trim(true); var t3 = this.current_line.pop(); t3 && (t3[t3.length - 1] === "\n" && (t3 = t3.replace(/\n+$/g, "")), this.current_line.push(t3)), this._end_with_newline && this.__add_outputline(); var n3 = this.__lines.join("\n"); return e3 !== "\n" && (n3 = n3.replace(/[\n]/g, e3)), n3; - }, r2.prototype.set_wrap_point = function() { + }, o2.prototype.set_wrap_point = function() { this.current_line._set_wrap_point(); - }, r2.prototype.set_indent = function(e3, t3) { + }, o2.prototype.set_indent = function(e3, t3) { return e3 = e3 || 0, t3 = t3 || 0, this.next_line.set_indent(e3, t3), this.__lines.length > 1 ? (this.current_line.set_indent(e3, t3), true) : (this.current_line.set_indent(), false); - }, r2.prototype.add_raw_token = function(e3) { + }, o2.prototype.add_raw_token = function(e3) { for (var t3 = 0; t3 < e3.newlines; t3++) this.__add_outputline(); this.current_line.set_indent(-1), this.current_line.push(e3.whitespace_before), this.current_line.push(e3.text), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false; - }, r2.prototype.add_token = function(e3) { + }, o2.prototype.add_token = function(e3) { this.__add_space_before_token(), this.current_line.push(e3), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = this.current_line._allow_wrap(); - }, r2.prototype.__add_space_before_token = function() { + }, o2.prototype.__add_space_before_token = function() { this.space_before_token && !this.just_added_newline() && (this.non_breaking_space || this.set_wrap_point(), this.current_line.push(" ")); - }, r2.prototype.remove_indent = function(e3) { + }, o2.prototype.remove_indent = function(e3) { for (var t3 = this.__lines.length; e3 < t3; ) this.__lines[e3]._remove_indent(), e3++; this.current_line._remove_wrap_indent(); - }, r2.prototype.trim = function(e3) { + }, o2.prototype.trim = function(e3) { for (e3 = e3 !== void 0 && e3, this.current_line.trim(); e3 && this.__lines.length > 1 && this.current_line.is_empty(); ) this.__lines.pop(), this.current_line = this.__lines[this.__lines.length - 1], this.current_line.trim(); this.previous_line = this.__lines.length > 1 ? this.__lines[this.__lines.length - 2] : null; - }, r2.prototype.just_added_newline = function() { + }, o2.prototype.just_added_newline = function() { return this.current_line.is_empty(); - }, r2.prototype.just_added_blankline = function() { + }, o2.prototype.just_added_blankline = function() { return this.is_empty() || this.current_line.is_empty() && this.previous_line.is_empty(); - }, r2.prototype.ensure_empty_line_above = function(e3, t3) { + }, o2.prototype.ensure_empty_line_above = function(e3, t3) { for (var n3 = this.__lines.length - 2; n3 >= 0; ) { - var o3 = this.__lines[n3]; - if (o3.is_empty()) + var r3 = this.__lines[n3]; + if (r3.is_empty()) break; - if (o3.item(0).indexOf(e3) !== 0 && o3.item(-1) !== t3) { + if (r3.item(0).indexOf(e3) !== 0 && r3.item(-1) !== t3) { this.__lines.splice(n3 + 1, 0, new i2(this)), this.previous_line = this.__lines[this.__lines.length - 2]; break; } n3--; } - }, e2.exports.Output = r2; + }, e2.exports.Output = o2; }, , , , function(e2, t2, n2) { function i2(e3, t3) { - this.raw_options = o2(e3, t3), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", true), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "django", "erb", "handlebars", "php"], ["auto"]); + this.raw_options = r2(e3, t3), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", true), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "django", "erb", "handlebars", "php"], ["auto"]); } - function o2(e3, t3) { + function r2(e3, t3) { var n3, i3 = {}; - for (n3 in e3 = r2(e3)) + for (n3 in e3 = o2(e3)) n3 !== t3 && (i3[n3] = e3[n3]); if (t3 && e3[t3]) for (n3 in e3[t3]) i3[n3] = e3[t3][n3]; return i3; } - function r2(e3) { + function o2(e3) { var t3, n3 = {}; for (t3 in e3) { n3[t3.replace(/-/g, "_")] = e3[t3]; @@ -10333,58 +10333,58 @@ return e3.length && t3.length && !e3.some(function(e4) { return t3.indexOf(e4) === -1; }); - }, e2.exports.Options = i2, e2.exports.normalizeOpts = r2, e2.exports.mergeOpts = o2; + }, e2.exports.Options = i2, e2.exports.normalizeOpts = o2, e2.exports.mergeOpts = r2; }, , function(e2, t2, n2) { var i2 = RegExp.prototype.hasOwnProperty("sticky"); - function o2(e3) { + function r2(e3) { this.__input = e3 || "", this.__input_length = this.__input.length, this.__position = 0; } - o2.prototype.restart = function() { + r2.prototype.restart = function() { this.__position = 0; - }, o2.prototype.back = function() { + }, r2.prototype.back = function() { this.__position > 0 && (this.__position -= 1); - }, o2.prototype.hasNext = function() { + }, r2.prototype.hasNext = function() { return this.__position < this.__input_length; - }, o2.prototype.next = function() { + }, r2.prototype.next = function() { var e3 = null; return this.hasNext() && (e3 = this.__input.charAt(this.__position), this.__position += 1), e3; - }, o2.prototype.peek = function(e3) { + }, r2.prototype.peek = function(e3) { var t3 = null; return e3 = e3 || 0, (e3 += this.__position) >= 0 && e3 < this.__input_length && (t3 = this.__input.charAt(e3)), t3; - }, o2.prototype.__match = function(e3, t3) { + }, r2.prototype.__match = function(e3, t3) { e3.lastIndex = t3; var n3 = e3.exec(this.__input); return !n3 || i2 && e3.sticky || n3.index !== t3 && (n3 = null), n3; - }, o2.prototype.test = function(e3, t3) { + }, r2.prototype.test = function(e3, t3) { return t3 = t3 || 0, (t3 += this.__position) >= 0 && t3 < this.__input_length && !!this.__match(e3, t3); - }, o2.prototype.testChar = function(e3, t3) { + }, r2.prototype.testChar = function(e3, t3) { var n3 = this.peek(t3); return e3.lastIndex = 0, n3 !== null && e3.test(n3); - }, o2.prototype.match = function(e3) { + }, r2.prototype.match = function(e3) { var t3 = this.__match(e3, this.__position); return t3 ? this.__position += t3[0].length : t3 = null, t3; - }, o2.prototype.read = function(e3, t3, n3) { - var i3, o3 = ""; - return e3 && (i3 = this.match(e3)) && (o3 += i3[0]), !t3 || !i3 && e3 || (o3 += this.readUntil(t3, n3)), o3; - }, o2.prototype.readUntil = function(e3, t3) { + }, r2.prototype.read = function(e3, t3, n3) { + var i3, r3 = ""; + return e3 && (i3 = this.match(e3)) && (r3 += i3[0]), !t3 || !i3 && e3 || (r3 += this.readUntil(t3, n3)), r3; + }, r2.prototype.readUntil = function(e3, t3) { var n3, i3 = this.__position; e3.lastIndex = this.__position; - var o3 = e3.exec(this.__input); - return o3 ? (i3 = o3.index, t3 && (i3 += o3[0].length)) : i3 = this.__input_length, n3 = this.__input.substring(this.__position, i3), this.__position = i3, n3; - }, o2.prototype.readUntilAfter = function(e3) { + var r3 = e3.exec(this.__input); + return r3 ? (i3 = r3.index, t3 && (i3 += r3[0].length)) : i3 = this.__input_length, n3 = this.__input.substring(this.__position, i3), this.__position = i3, n3; + }, r2.prototype.readUntilAfter = function(e3) { return this.readUntil(e3, true); - }, o2.prototype.get_regexp = function(e3, t3) { - var n3 = null, o3 = "g"; - return t3 && i2 && (o3 = "y"), typeof e3 == "string" && e3 !== "" ? n3 = new RegExp(e3, o3) : e3 && (n3 = new RegExp(e3.source, o3)), n3; - }, o2.prototype.get_literal_regexp = function(e3) { + }, r2.prototype.get_regexp = function(e3, t3) { + var n3 = null, r3 = "g"; + return t3 && i2 && (r3 = "y"), typeof e3 == "string" && e3 !== "" ? n3 = new RegExp(e3, r3) : e3 && (n3 = new RegExp(e3.source, r3)), n3; + }, r2.prototype.get_literal_regexp = function(e3) { return RegExp(e3.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")); - }, o2.prototype.peekUntilAfter = function(e3) { + }, r2.prototype.peekUntilAfter = function(e3) { var t3 = this.__position, n3 = this.readUntilAfter(e3); return this.__position = t3, n3; - }, o2.prototype.lookBack = function(e3) { + }, r2.prototype.lookBack = function(e3) { var t3 = this.__position - 1; return t3 >= e3.length && this.__input.substring(t3 - e3.length, t3).toLowerCase() === e3; - }, e2.exports.InputScanner = o2; + }, e2.exports.InputScanner = r2; }, , , , , function(e2, t2, n2) { function i2(e3, t3) { e3 = typeof e3 == "string" ? e3 : e3.source, t3 = typeof t3 == "string" ? t3 : t3.source, this.__directives_block_pattern = new RegExp(e3 + / beautify( \w+[:]\w+)+ /.source + t3, "g"), this.__directive_pattern = / (\w+)[:](\w+)/g, this.__directives_end_ignore_pattern = new RegExp(e3 + /\sbeautify\signore:end\s/.source + t3, "g"); @@ -10401,14 +10401,14 @@ return e3.readUntilAfter(this.__directives_end_ignore_pattern); }, e2.exports.Directives = i2; }, , function(e2, t2, n2) { - var i2 = n2(16).Beautifier, o2 = n2(17).Options; + var i2 = n2(16).Beautifier, r2 = n2(17).Options; e2.exports = function(e3, t3) { return new i2(e3, t3).beautify(); }, e2.exports.defaultOptions = function() { - return new o2(); + return new r2(); }; }, function(e2, t2, n2) { - var i2 = n2(17).Options, o2 = n2(2).Output, r2 = n2(8).InputScanner, s2 = new (0, n2(13).Directives)(/\/\*/, /\*\//), a2 = /\r\n|[\r\n]/, l2 = /\r\n|[\r\n]/g, c2 = /\s/, d2 = /(?:\s|\n)+/g, h2 = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, u2 = /\/\/(?:[^\n\r\u2028\u2029]*)/g; + var i2 = n2(17).Options, r2 = n2(2).Output, o2 = n2(8).InputScanner, s2 = new (0, n2(13).Directives)(/\/\*/, /\*\//), a2 = /\r\n|[\r\n]/, l2 = /\r\n|[\r\n]/g, c2 = /\s/, d2 = /(?:\s|\n)+/g, h2 = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, u2 = /\/\/(?:[^\n\r\u2028\u2029]*)/g; function p2(e3, t3) { this._source_text = e3 || "", this._options = new i2(t3), this._ch = null, this._input = null, this.NESTED_AT_RULE = {"@page": true, "@font-face": true, "@keyframes": true, "@media": true, "@supports": true, "@document": true}, this.CONDITIONAL_GROUP_RULE = {"@media": true, "@supports": true, "@document": true}; } @@ -10455,7 +10455,7 @@ var e3 = this._source_text, t3 = this._options.eol; t3 === "auto" && (t3 = "\n", e3 && a2.test(e3 || "") && (t3 = e3.match(a2)[0])); var n3 = (e3 = e3.replace(l2, "\n")).match(/^[\t ]*/)[0]; - this._output = new o2(this._options, n3), this._input = new r2(e3), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null; + this._output = new r2(this._options, n3), this._input = new o2(e3), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null; for (var i3, p3, m2 = 0, g2 = false, f2 = false, b2 = false, _2 = false, v2 = false, w2 = this._ch; i3 = this._input.read(d2) !== "", p3 = w2, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), w2 = this._ch, this._ch; ) if (this._ch === "/" && this._input.peek() === "*") { this._output.add_new_line(), this._input.back(); @@ -10477,19 +10477,19 @@ }, e2.exports.Beautifier = p2; }, function(e2, t2, n2) { var i2 = n2(6).Options; - function o2(e3) { + function r2(e3) { i2.call(this, e3, "css"), this.selector_separator_newline = this._get_boolean("selector_separator_newline", true), this.newline_between_rules = this._get_boolean("newline_between_rules", true); var t3 = this._get_boolean("space_around_selector_separator"); this.space_around_combinator = this._get_boolean("space_around_combinator") || t3; } - o2.prototype = new i2(), e2.exports.Options = o2; + r2.prototype = new i2(), e2.exports.Options = r2; }]), ht = function(e2) { var t2 = {}; function n2(i2) { if (t2[i2]) return t2[i2].exports; - var o2 = t2[i2] = {i: i2, l: false, exports: {}}; - return e2[i2].call(o2.exports, o2, o2.exports, n2), o2.l = true, o2.exports; + var r2 = t2[i2] = {i: i2, l: false, exports: {}}; + return e2[i2].call(r2.exports, r2, r2.exports, n2), r2.l = true, r2.exports; } return n2.m = e2, n2.c = t2, n2.d = function(e3, t3, i2) { n2.o(e3, t3) || Object.defineProperty(e3, t3, {enumerable: true, get: i2}); @@ -10502,10 +10502,10 @@ return e3; var i2 = Object.create(null); if (n2.r(i2), Object.defineProperty(i2, "default", {enumerable: true, value: e3}), 2 & t3 && typeof e3 != "string") - for (var o2 in e3) - n2.d(i2, o2, function(t4) { + for (var r2 in e3) + n2.d(i2, r2, function(t4) { return e3[t4]; - }.bind(null, o2)); + }.bind(null, r2)); return i2; }, n2.n = function(e3) { var t3 = e3 && e3.__esModule ? function() { @@ -10521,11 +10521,11 @@ function i2(e3) { this.__parent = e3, this.__character_count = 0, this.__indent_count = -1, this.__alignment_count = 0, this.__wrap_point_index = 0, this.__wrap_point_character_count = 0, this.__wrap_point_indent_count = -1, this.__wrap_point_alignment_count = 0, this.__items = []; } - function o2(e3, t3) { + function r2(e3, t3) { this.__cache = [""], this.__indent_size = e3.indent_size, this.__indent_string = e3.indent_char, e3.indent_with_tabs || (this.__indent_string = new Array(e3.indent_size + 1).join(e3.indent_char)), t3 = t3 || "", e3.indent_level > 0 && (t3 = new Array(e3.indent_level + 1).join(this.__indent_string)), this.__base_string = t3, this.__base_string_length = t3.length; } - function r2(e3, t3) { - this.__indent_cache = new o2(e3, t3), this.raw = false, this._end_with_newline = e3.end_with_newline, this.indent_size = e3.indent_size, this.wrap_line_length = e3.wrap_line_length, this.indent_empty_lines = e3.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new i2(this), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false, this.__add_outputline(); + function o2(e3, t3) { + this.__indent_cache = new r2(e3, t3), this.raw = false, this._end_with_newline = e3.end_with_newline, this.indent_size = e3.indent_size, this.wrap_line_length = e3.wrap_line_length, this.indent_empty_lines = e3.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new i2(this), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false, this.__add_outputline(); } i2.prototype.clone_empty = function() { var e3 = new i2(this.__parent); @@ -10571,90 +10571,90 @@ }, i2.prototype.toString = function() { var e3 = ""; return this.is_empty() ? this.__parent.indent_empty_lines && (e3 = this.__parent.get_indent_string(this.__indent_count)) : (e3 = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count), e3 += this.__items.join("")), e3; - }, o2.prototype.get_indent_size = function(e3, t3) { + }, r2.prototype.get_indent_size = function(e3, t3) { var n3 = this.__base_string_length; return t3 = t3 || 0, e3 < 0 && (n3 = 0), n3 += e3 * this.__indent_size, n3 += t3; - }, o2.prototype.get_indent_string = function(e3, t3) { + }, r2.prototype.get_indent_string = function(e3, t3) { var n3 = this.__base_string; return t3 = t3 || 0, e3 < 0 && (e3 = 0, n3 = ""), t3 += e3 * this.__indent_size, this.__ensure_cache(t3), n3 += this.__cache[t3]; - }, o2.prototype.__ensure_cache = function(e3) { + }, r2.prototype.__ensure_cache = function(e3) { for (; e3 >= this.__cache.length; ) this.__add_column(); - }, o2.prototype.__add_column = function() { + }, r2.prototype.__add_column = function() { var e3 = this.__cache.length, t3 = 0, n3 = ""; this.__indent_size && e3 >= this.__indent_size && (e3 -= (t3 = Math.floor(e3 / this.__indent_size)) * this.__indent_size, n3 = new Array(t3 + 1).join(this.__indent_string)), e3 && (n3 += new Array(e3 + 1).join(" ")), this.__cache.push(n3); - }, r2.prototype.__add_outputline = function() { + }, o2.prototype.__add_outputline = function() { this.previous_line = this.current_line, this.current_line = this.next_line.clone_empty(), this.__lines.push(this.current_line); - }, r2.prototype.get_line_number = function() { + }, o2.prototype.get_line_number = function() { return this.__lines.length; - }, r2.prototype.get_indent_string = function(e3, t3) { + }, o2.prototype.get_indent_string = function(e3, t3) { return this.__indent_cache.get_indent_string(e3, t3); - }, r2.prototype.get_indent_size = function(e3, t3) { + }, o2.prototype.get_indent_size = function(e3, t3) { return this.__indent_cache.get_indent_size(e3, t3); - }, r2.prototype.is_empty = function() { + }, o2.prototype.is_empty = function() { return !this.previous_line && this.current_line.is_empty(); - }, r2.prototype.add_new_line = function(e3) { + }, o2.prototype.add_new_line = function(e3) { return !(this.is_empty() || !e3 && this.just_added_newline()) && (this.raw || this.__add_outputline(), true); - }, r2.prototype.get_code = function(e3) { + }, o2.prototype.get_code = function(e3) { this.trim(true); var t3 = this.current_line.pop(); t3 && (t3[t3.length - 1] === "\n" && (t3 = t3.replace(/\n+$/g, "")), this.current_line.push(t3)), this._end_with_newline && this.__add_outputline(); var n3 = this.__lines.join("\n"); return e3 !== "\n" && (n3 = n3.replace(/[\n]/g, e3)), n3; - }, r2.prototype.set_wrap_point = function() { + }, o2.prototype.set_wrap_point = function() { this.current_line._set_wrap_point(); - }, r2.prototype.set_indent = function(e3, t3) { + }, o2.prototype.set_indent = function(e3, t3) { return e3 = e3 || 0, t3 = t3 || 0, this.next_line.set_indent(e3, t3), this.__lines.length > 1 ? (this.current_line.set_indent(e3, t3), true) : (this.current_line.set_indent(), false); - }, r2.prototype.add_raw_token = function(e3) { + }, o2.prototype.add_raw_token = function(e3) { for (var t3 = 0; t3 < e3.newlines; t3++) this.__add_outputline(); this.current_line.set_indent(-1), this.current_line.push(e3.whitespace_before), this.current_line.push(e3.text), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = false; - }, r2.prototype.add_token = function(e3) { + }, o2.prototype.add_token = function(e3) { this.__add_space_before_token(), this.current_line.push(e3), this.space_before_token = false, this.non_breaking_space = false, this.previous_token_wrapped = this.current_line._allow_wrap(); - }, r2.prototype.__add_space_before_token = function() { + }, o2.prototype.__add_space_before_token = function() { this.space_before_token && !this.just_added_newline() && (this.non_breaking_space || this.set_wrap_point(), this.current_line.push(" ")); - }, r2.prototype.remove_indent = function(e3) { + }, o2.prototype.remove_indent = function(e3) { for (var t3 = this.__lines.length; e3 < t3; ) this.__lines[e3]._remove_indent(), e3++; this.current_line._remove_wrap_indent(); - }, r2.prototype.trim = function(e3) { + }, o2.prototype.trim = function(e3) { for (e3 = e3 !== void 0 && e3, this.current_line.trim(); e3 && this.__lines.length > 1 && this.current_line.is_empty(); ) this.__lines.pop(), this.current_line = this.__lines[this.__lines.length - 1], this.current_line.trim(); this.previous_line = this.__lines.length > 1 ? this.__lines[this.__lines.length - 2] : null; - }, r2.prototype.just_added_newline = function() { + }, o2.prototype.just_added_newline = function() { return this.current_line.is_empty(); - }, r2.prototype.just_added_blankline = function() { + }, o2.prototype.just_added_blankline = function() { return this.is_empty() || this.current_line.is_empty() && this.previous_line.is_empty(); - }, r2.prototype.ensure_empty_line_above = function(e3, t3) { + }, o2.prototype.ensure_empty_line_above = function(e3, t3) { for (var n3 = this.__lines.length - 2; n3 >= 0; ) { - var o3 = this.__lines[n3]; - if (o3.is_empty()) + var r3 = this.__lines[n3]; + if (r3.is_empty()) break; - if (o3.item(0).indexOf(e3) !== 0 && o3.item(-1) !== t3) { + if (r3.item(0).indexOf(e3) !== 0 && r3.item(-1) !== t3) { this.__lines.splice(n3 + 1, 0, new i2(this)), this.previous_line = this.__lines[this.__lines.length - 2]; break; } n3--; } - }, e2.exports.Output = r2; + }, e2.exports.Output = o2; }, function(e2, t2, n2) { e2.exports.Token = function(e3, t3, n3, i2) { this.type = e3, this.text = t3, this.comments_before = null, this.newlines = n3 || 0, this.whitespace_before = i2 || "", this.parent = null, this.next = null, this.previous = null, this.opened = null, this.closed = null, this.directives = null; }; }, , , function(e2, t2, n2) { function i2(e3, t3) { - this.raw_options = o2(e3, t3), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", true), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "django", "erb", "handlebars", "php"], ["auto"]); + this.raw_options = r2(e3, t3), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", true), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "django", "erb", "handlebars", "php"], ["auto"]); } - function o2(e3, t3) { + function r2(e3, t3) { var n3, i3 = {}; - for (n3 in e3 = r2(e3)) + for (n3 in e3 = o2(e3)) n3 !== t3 && (i3[n3] = e3[n3]); if (t3 && e3[t3]) for (n3 in e3[t3]) i3[n3] = e3[t3][n3]; return i3; } - function r2(e3) { + function o2(e3) { var t3, n3 = {}; for (t3 in e3) { n3[t3.replace(/-/g, "_")] = e3[t3]; @@ -10693,69 +10693,69 @@ return e3.length && t3.length && !e3.some(function(e4) { return t3.indexOf(e4) === -1; }); - }, e2.exports.Options = i2, e2.exports.normalizeOpts = r2, e2.exports.mergeOpts = o2; + }, e2.exports.Options = i2, e2.exports.normalizeOpts = o2, e2.exports.mergeOpts = r2; }, , function(e2, t2, n2) { var i2 = RegExp.prototype.hasOwnProperty("sticky"); - function o2(e3) { + function r2(e3) { this.__input = e3 || "", this.__input_length = this.__input.length, this.__position = 0; } - o2.prototype.restart = function() { + r2.prototype.restart = function() { this.__position = 0; - }, o2.prototype.back = function() { + }, r2.prototype.back = function() { this.__position > 0 && (this.__position -= 1); - }, o2.prototype.hasNext = function() { + }, r2.prototype.hasNext = function() { return this.__position < this.__input_length; - }, o2.prototype.next = function() { + }, r2.prototype.next = function() { var e3 = null; return this.hasNext() && (e3 = this.__input.charAt(this.__position), this.__position += 1), e3; - }, o2.prototype.peek = function(e3) { + }, r2.prototype.peek = function(e3) { var t3 = null; return e3 = e3 || 0, (e3 += this.__position) >= 0 && e3 < this.__input_length && (t3 = this.__input.charAt(e3)), t3; - }, o2.prototype.__match = function(e3, t3) { + }, r2.prototype.__match = function(e3, t3) { e3.lastIndex = t3; var n3 = e3.exec(this.__input); return !n3 || i2 && e3.sticky || n3.index !== t3 && (n3 = null), n3; - }, o2.prototype.test = function(e3, t3) { + }, r2.prototype.test = function(e3, t3) { return t3 = t3 || 0, (t3 += this.__position) >= 0 && t3 < this.__input_length && !!this.__match(e3, t3); - }, o2.prototype.testChar = function(e3, t3) { + }, r2.prototype.testChar = function(e3, t3) { var n3 = this.peek(t3); return e3.lastIndex = 0, n3 !== null && e3.test(n3); - }, o2.prototype.match = function(e3) { + }, r2.prototype.match = function(e3) { var t3 = this.__match(e3, this.__position); return t3 ? this.__position += t3[0].length : t3 = null, t3; - }, o2.prototype.read = function(e3, t3, n3) { - var i3, o3 = ""; - return e3 && (i3 = this.match(e3)) && (o3 += i3[0]), !t3 || !i3 && e3 || (o3 += this.readUntil(t3, n3)), o3; - }, o2.prototype.readUntil = function(e3, t3) { + }, r2.prototype.read = function(e3, t3, n3) { + var i3, r3 = ""; + return e3 && (i3 = this.match(e3)) && (r3 += i3[0]), !t3 || !i3 && e3 || (r3 += this.readUntil(t3, n3)), r3; + }, r2.prototype.readUntil = function(e3, t3) { var n3, i3 = this.__position; e3.lastIndex = this.__position; - var o3 = e3.exec(this.__input); - return o3 ? (i3 = o3.index, t3 && (i3 += o3[0].length)) : i3 = this.__input_length, n3 = this.__input.substring(this.__position, i3), this.__position = i3, n3; - }, o2.prototype.readUntilAfter = function(e3) { + var r3 = e3.exec(this.__input); + return r3 ? (i3 = r3.index, t3 && (i3 += r3[0].length)) : i3 = this.__input_length, n3 = this.__input.substring(this.__position, i3), this.__position = i3, n3; + }, r2.prototype.readUntilAfter = function(e3) { return this.readUntil(e3, true); - }, o2.prototype.get_regexp = function(e3, t3) { - var n3 = null, o3 = "g"; - return t3 && i2 && (o3 = "y"), typeof e3 == "string" && e3 !== "" ? n3 = new RegExp(e3, o3) : e3 && (n3 = new RegExp(e3.source, o3)), n3; - }, o2.prototype.get_literal_regexp = function(e3) { + }, r2.prototype.get_regexp = function(e3, t3) { + var n3 = null, r3 = "g"; + return t3 && i2 && (r3 = "y"), typeof e3 == "string" && e3 !== "" ? n3 = new RegExp(e3, r3) : e3 && (n3 = new RegExp(e3.source, r3)), n3; + }, r2.prototype.get_literal_regexp = function(e3) { return RegExp(e3.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")); - }, o2.prototype.peekUntilAfter = function(e3) { + }, r2.prototype.peekUntilAfter = function(e3) { var t3 = this.__position, n3 = this.readUntilAfter(e3); return this.__position = t3, n3; - }, o2.prototype.lookBack = function(e3) { + }, r2.prototype.lookBack = function(e3) { var t3 = this.__position - 1; return t3 >= e3.length && this.__input.substring(t3 - e3.length, t3).toLowerCase() === e3; - }, e2.exports.InputScanner = o2; + }, e2.exports.InputScanner = r2; }, function(e2, t2, n2) { - var i2 = n2(8).InputScanner, o2 = n2(3).Token, r2 = n2(10).TokenStream, s2 = n2(11).WhitespacePattern, a2 = {START: "TK_START", RAW: "TK_RAW", EOF: "TK_EOF"}, l2 = function(e3, t3) { + var i2 = n2(8).InputScanner, r2 = n2(3).Token, o2 = n2(10).TokenStream, s2 = n2(11).WhitespacePattern, a2 = {START: "TK_START", RAW: "TK_RAW", EOF: "TK_EOF"}, l2 = function(e3, t3) { this._input = new i2(e3), this._options = t3 || {}, this.__tokens = null, this._patterns = {}, this._patterns.whitespace = new s2(this._input); }; l2.prototype.tokenize = function() { var e3; - this._input.restart(), this.__tokens = new r2(), this._reset(); - for (var t3 = new o2(a2.START, ""), n3 = null, i3 = [], s3 = new r2(); t3.type !== a2.EOF; ) { + this._input.restart(), this.__tokens = new o2(), this._reset(); + for (var t3 = new r2(a2.START, ""), n3 = null, i3 = [], s3 = new o2(); t3.type !== a2.EOF; ) { for (e3 = this._get_next_token(t3, n3); this._is_comment(e3); ) s3.add(e3), e3 = this._get_next_token(t3, n3); - s3.isEmpty() || (e3.comments_before = s3, s3 = new r2()), e3.parent = n3, this._is_opening(e3) ? (i3.push(n3), n3 = e3) : n3 && this._is_closing(e3, n3) && (e3.opened = n3, n3.closed = e3, n3 = i3.pop(), e3.parent = n3), e3.previous = t3, t3.next = e3, this.__tokens.add(e3), t3 = e3; + s3.isEmpty() || (e3.comments_before = s3, s3 = new o2()), e3.parent = n3, this._is_opening(e3) ? (i3.push(n3), n3 = e3) : n3 && this._is_closing(e3, n3) && (e3.opened = n3, n3.closed = e3, n3 = i3.pop(), e3.parent = n3), e3.previous = t3, t3.next = e3, this.__tokens.add(e3), t3 = e3; } return this.__tokens; }, l2.prototype._is_first_token = function() { @@ -10772,7 +10772,7 @@ }, l2.prototype._is_closing = function(e3, t3) { return false; }, l2.prototype._create_token = function(e3, t3) { - return new o2(e3, t3, this._patterns.whitespace.newline_count, this._patterns.whitespace.whitespace_before_token); + return new r2(e3, t3, this._patterns.whitespace.newline_count, this._patterns.whitespace.whitespace_before_token); }, l2.prototype._readWhitespace = function() { return this._patterns.whitespace.read(); }, e2.exports.Tokenizer = l2, e2.exports.TOKEN = a2; @@ -10797,12 +10797,12 @@ }, e2.exports.TokenStream = i2; }, function(e2, t2, n2) { var i2 = n2(12).Pattern; - function o2(e3, t3) { + function r2(e3, t3) { i2.call(this, e3, t3), t3 ? this._line_regexp = this._input.get_regexp(t3._line_regexp) : this.__set_whitespace_patterns("", ""), this.newline_count = 0, this.whitespace_before_token = ""; } - o2.prototype = new i2(), o2.prototype.__set_whitespace_patterns = function(e3, t3) { + r2.prototype = new i2(), r2.prototype.__set_whitespace_patterns = function(e3, t3) { e3 += "\\t ", t3 += "\\n\\r", this._match_pattern = this._input.get_regexp("[" + e3 + t3 + "]+", true), this._newline_regexp = this._input.get_regexp("\\r\\n|[" + t3 + "]"); - }, o2.prototype.read = function() { + }, r2.prototype.read = function() { this.newline_count = 0, this.whitespace_before_token = ""; var e3 = this._input.read(this._match_pattern); if (e3 === " ") @@ -10812,17 +10812,17 @@ this.newline_count = t3.length - 1, this.whitespace_before_token = t3[this.newline_count]; } return e3; - }, o2.prototype.matching = function(e3, t3) { + }, r2.prototype.matching = function(e3, t3) { var n3 = this._create(); return n3.__set_whitespace_patterns(e3, t3), n3._update(), n3; - }, o2.prototype._create = function() { - return new o2(this._input, this); - }, o2.prototype.__split = function(e3, t3) { + }, r2.prototype._create = function() { + return new r2(this._input, this); + }, r2.prototype.__split = function(e3, t3) { e3.lastIndex = 0; - for (var n3 = 0, i3 = [], o3 = e3.exec(t3); o3; ) - i3.push(t3.substring(n3, o3.index)), n3 = o3.index + o3[0].length, o3 = e3.exec(t3); + for (var n3 = 0, i3 = [], r3 = e3.exec(t3); r3; ) + i3.push(t3.substring(n3, r3.index)), n3 = r3.index + r3[0].length, r3 = e3.exec(t3); return n3 < t3.length ? i3.push(t3.substring(n3, t3.length)) : i3.push(""), i3; - }, e2.exports.WhitespacePattern = o2; + }, e2.exports.WhitespacePattern = r2; }, function(e2, t2, n2) { function i2(e3, t3) { this._input = e3, this._starting_pattern = null, this._match_pattern = null, this._until_pattern = null, this._until_after = false, t3 && (this._starting_pattern = this._input.get_regexp(t3._starting_pattern, true), this._match_pattern = this._input.get_regexp(t3._match_pattern, true), this._until_pattern = this._input.get_regexp(t3._until_pattern), this._until_after = t3._until_after); @@ -10864,37 +10864,37 @@ return e3.readUntilAfter(this.__directives_end_ignore_pattern); }, e2.exports.Directives = i2; }, function(e2, t2, n2) { - var i2 = n2(12).Pattern, o2 = {django: false, erb: false, handlebars: false, php: false}; - function r2(e3, t3) { - i2.call(this, e3, t3), this.__template_pattern = null, this._disabled = Object.assign({}, o2), this._excluded = Object.assign({}, o2), t3 && (this.__template_pattern = this._input.get_regexp(t3.__template_pattern), this._excluded = Object.assign(this._excluded, t3._excluded), this._disabled = Object.assign(this._disabled, t3._disabled)); + var i2 = n2(12).Pattern, r2 = {django: false, erb: false, handlebars: false, php: false}; + function o2(e3, t3) { + i2.call(this, e3, t3), this.__template_pattern = null, this._disabled = Object.assign({}, r2), this._excluded = Object.assign({}, r2), t3 && (this.__template_pattern = this._input.get_regexp(t3.__template_pattern), this._excluded = Object.assign(this._excluded, t3._excluded), this._disabled = Object.assign(this._disabled, t3._disabled)); var n3 = new i2(e3); this.__patterns = {handlebars_comment: n3.starting_with(/{{!--/).until_after(/--}}/), handlebars_unescaped: n3.starting_with(/{{{/).until_after(/}}}/), handlebars: n3.starting_with(/{{/).until_after(/}}/), php: n3.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/), erb: n3.starting_with(/<%[^%]/).until_after(/[^%]%>/), django: n3.starting_with(/{%/).until_after(/%}/), django_value: n3.starting_with(/{{/).until_after(/}}/), django_comment: n3.starting_with(/{#/).until_after(/#}/)}; } - r2.prototype = new i2(), r2.prototype._create = function() { - return new r2(this._input, this); - }, r2.prototype._update = function() { + o2.prototype = new i2(), o2.prototype._create = function() { + return new o2(this._input, this); + }, o2.prototype._update = function() { this.__set_templated_pattern(); - }, r2.prototype.disable = function(e3) { + }, o2.prototype.disable = function(e3) { var t3 = this._create(); return t3._disabled[e3] = true, t3._update(), t3; - }, r2.prototype.read_options = function(e3) { + }, o2.prototype.read_options = function(e3) { var t3 = this._create(); - for (var n3 in o2) + for (var n3 in r2) t3._disabled[n3] = e3.templating.indexOf(n3) === -1; return t3._update(), t3; - }, r2.prototype.exclude = function(e3) { + }, o2.prototype.exclude = function(e3) { var t3 = this._create(); return t3._excluded[e3] = true, t3._update(), t3; - }, r2.prototype.read = function() { + }, o2.prototype.read = function() { var e3 = ""; e3 = this._match_pattern ? this._input.read(this._starting_pattern) : this._input.read(this._starting_pattern, this.__template_pattern); for (var t3 = this._read_template(); t3; ) this._match_pattern ? t3 += this._input.read(this._match_pattern) : t3 += this._input.readUntil(this.__template_pattern), e3 += t3, t3 = this._read_template(); return this._until_after && (e3 += this._input.readUntilAfter(this._until_pattern)), e3; - }, r2.prototype.__set_templated_pattern = function() { + }, o2.prototype.__set_templated_pattern = function() { var e3 = []; this._disabled.php || e3.push(this.__patterns.php._starting_pattern.source), this._disabled.handlebars || e3.push(this.__patterns.handlebars._starting_pattern.source), this._disabled.erb || e3.push(this.__patterns.erb._starting_pattern.source), this._disabled.django || (e3.push(this.__patterns.django._starting_pattern.source), e3.push(this.__patterns.django_value._starting_pattern.source), e3.push(this.__patterns.django_comment._starting_pattern.source)), this._until_pattern && e3.push(this._until_pattern.source), this.__template_pattern = this._input.get_regexp("(?:" + e3.join("|") + ")"); - }, r2.prototype._read_template = function() { + }, o2.prototype._read_template = function() { var e3 = "", t3 = this._input.peek(); if (t3 === "<") { var n3 = this._input.peek(1); @@ -10902,17 +10902,17 @@ } else t3 === "{" && (this._disabled.handlebars || this._excluded.handlebars || (e3 = (e3 = (e3 = e3 || this.__patterns.handlebars_comment.read()) || this.__patterns.handlebars_unescaped.read()) || this.__patterns.handlebars.read()), this._disabled.django || (this._excluded.django || this._excluded.handlebars || (e3 = e3 || this.__patterns.django_value.read()), this._excluded.django || (e3 = (e3 = e3 || this.__patterns.django_comment.read()) || this.__patterns.django.read()))); return e3; - }, e2.exports.TemplatablePattern = r2; + }, e2.exports.TemplatablePattern = o2; }, , , , function(e2, t2, n2) { - var i2 = n2(19).Beautifier, o2 = n2(20).Options; - e2.exports = function(e3, t3, n3, o3) { - return new i2(e3, t3, n3, o3).beautify(); + var i2 = n2(19).Beautifier, r2 = n2(20).Options; + e2.exports = function(e3, t3, n3, r3) { + return new i2(e3, t3, n3, r3).beautify(); }, e2.exports.defaultOptions = function() { - return new o2(); + return new r2(); }; }, function(e2, t2, n2) { - var i2 = n2(20).Options, o2 = n2(2).Output, r2 = n2(21).Tokenizer, s2 = n2(21).TOKEN, a2 = /\r\n|[\r\n]/, l2 = /\r\n|[\r\n]/g, c2 = function(e3, t3) { - this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = e3.max_preserve_newlines, this.preserve_newlines = e3.preserve_newlines, this._output = new o2(e3, t3); + var i2 = n2(20).Options, r2 = n2(2).Output, o2 = n2(21).Tokenizer, s2 = n2(21).TOKEN, a2 = /\r\n|[\r\n]/, l2 = /\r\n|[\r\n]/g, c2 = function(e3, t3) { + this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = e3.max_preserve_newlines, this.preserve_newlines = e3.preserve_newlines, this._output = new r2(e3, t3); }; c2.prototype.current_line_has_match = function(e3) { return this._output.current_line.has_match(e3); @@ -10963,10 +10963,10 @@ function p2(e3) { this._printer = e3, this._current_frame = null; } - function m2(e3, t3, n3, o3) { - this._source_text = e3 || "", t3 = t3 || {}, this._js_beautify = n3, this._css_beautify = o3, this._tag_stack = null; - var r3 = new i2(t3, "html"); - this._options = r3, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, "force".length) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, "preserve".length) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned"; + function m2(e3, t3, n3, r3) { + this._source_text = e3 || "", t3 = t3 || {}, this._js_beautify = n3, this._css_beautify = r3, this._tag_stack = null; + var o3 = new i2(t3, "html"); + this._options = o3, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, "force".length) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, "preserve".length) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned"; } p2.prototype.get_parser_token = function() { return this._current_frame ? this._current_frame.parser_token : null; @@ -10996,22 +10996,22 @@ return this._source_text; var e3 = this._source_text, t3 = this._options.eol; this._options.eol === "auto" && (t3 = "\n", e3 && a2.test(e3) && (t3 = e3.match(a2)[0])); - var n3 = (e3 = e3.replace(l2, "\n")).match(/^[\t ]*/)[0], i3 = {text: "", type: ""}, o3 = new g2(), d3 = new c2(this._options, n3), h3 = new r2(e3, this._options).tokenize(); + var n3 = (e3 = e3.replace(l2, "\n")).match(/^[\t ]*/)[0], i3 = {text: "", type: ""}, r3 = new g2(), d3 = new c2(this._options, n3), h3 = new o2(e3, this._options).tokenize(); this._tag_stack = new p2(d3); for (var u3 = null, m3 = h3.next(); m3.type !== s2.EOF; ) - m3.type === s2.TAG_OPEN || m3.type === s2.COMMENT ? o3 = u3 = this._handle_tag_open(d3, m3, o3, i3) : m3.type === s2.ATTRIBUTE || m3.type === s2.EQUALS || m3.type === s2.VALUE || m3.type === s2.TEXT && !o3.tag_complete ? u3 = this._handle_inside_tag(d3, m3, o3, h3) : m3.type === s2.TAG_CLOSE ? u3 = this._handle_tag_close(d3, m3, o3) : m3.type === s2.TEXT ? u3 = this._handle_text(d3, m3, o3) : d3.add_raw_token(m3), i3 = u3, m3 = h3.next(); + m3.type === s2.TAG_OPEN || m3.type === s2.COMMENT ? r3 = u3 = this._handle_tag_open(d3, m3, r3, i3) : m3.type === s2.ATTRIBUTE || m3.type === s2.EQUALS || m3.type === s2.VALUE || m3.type === s2.TEXT && !r3.tag_complete ? u3 = this._handle_inside_tag(d3, m3, r3, h3) : m3.type === s2.TAG_CLOSE ? u3 = this._handle_tag_close(d3, m3, r3) : m3.type === s2.TEXT ? u3 = this._handle_text(d3, m3, r3) : d3.add_raw_token(m3), i3 = u3, m3 = h3.next(); return d3._output.get_code(t3); }, m2.prototype._handle_tag_close = function(e3, t3, n3) { var i3 = {text: t3.text, type: t3.type}; return e3.alignment_size = 0, n3.tag_complete = true, e3.set_space_before_token(t3.newlines || t3.whitespace_before !== "", true), n3.is_unformatted ? e3.add_raw_token(t3) : (n3.tag_start_char === "<" && (e3.set_space_before_token(t3.text[0] === "/", true), this._is_wrap_attributes_force_expand_multiline && n3.has_wrapped_attrs && e3.print_newline(false)), e3.print_token(t3)), !n3.indent_content || n3.is_unformatted || n3.is_content_unformatted || (e3.indent(), n3.indent_content = false), n3.is_inline_element || n3.is_unformatted || n3.is_content_unformatted || e3.set_wrap_point(), i3; }, m2.prototype._handle_inside_tag = function(e3, t3, n3, i3) { - var o3 = n3.has_wrapped_attrs, r3 = {text: t3.text, type: t3.type}; + var r3 = n3.has_wrapped_attrs, o3 = {text: t3.text, type: t3.type}; if (e3.set_space_before_token(t3.newlines || t3.whitespace_before !== "", true), n3.is_unformatted) e3.add_raw_token(t3); else if (n3.tag_start_char === "{" && t3.type === s2.TEXT) e3.print_preserved_newlines(t3) ? (t3.newlines = 0, e3.add_raw_token(t3)) : e3.print_token(t3); else { - if (t3.type === s2.ATTRIBUTE ? (e3.set_space_before_token(true), n3.attr_count += 1) : (t3.type === s2.EQUALS || t3.type === s2.VALUE && t3.previous.type === s2.EQUALS) && e3.set_space_before_token(false), t3.type === s2.ATTRIBUTE && n3.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (e3.traverse_whitespace(t3), o3 = o3 || t3.newlines !== 0), this._is_wrap_attributes_force)) { + if (t3.type === s2.ATTRIBUTE ? (e3.set_space_before_token(true), n3.attr_count += 1) : (t3.type === s2.EQUALS || t3.type === s2.VALUE && t3.previous.type === s2.EQUALS) && e3.set_space_before_token(false), t3.type === s2.ATTRIBUTE && n3.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (e3.traverse_whitespace(t3), r3 = r3 || t3.newlines !== 0), this._is_wrap_attributes_force)) { var a3 = n3.attr_count > 1; if (this._is_wrap_attributes_force_expand_multiline && n3.attr_count === 1) { var l3, c3 = true, d3 = 0; @@ -11024,43 +11024,43 @@ } while (d3 < 4 && l3.type !== s2.EOF && l3.type !== s2.TAG_CLOSE); a3 = !c3; } - a3 && (e3.print_newline(false), o3 = true); + a3 && (e3.print_newline(false), r3 = true); } - e3.print_token(t3), o3 = o3 || e3.previous_token_wrapped(), n3.has_wrapped_attrs = o3; + e3.print_token(t3), r3 = r3 || e3.previous_token_wrapped(), n3.has_wrapped_attrs = r3; } - return r3; + return o3; }, m2.prototype._handle_text = function(e3, t3, n3) { var i3 = {text: t3.text, type: "TK_CONTENT"}; return n3.custom_beautifier_name ? this._print_custom_beatifier_text(e3, t3, n3) : n3.is_unformatted || n3.is_content_unformatted ? e3.add_raw_token(t3) : (e3.traverse_whitespace(t3), e3.print_token(t3)), i3; }, m2.prototype._print_custom_beatifier_text = function(e3, t3, n3) { var i3 = this; if (t3.text !== "") { - var o3, r3 = t3.text, s3 = 1, a3 = "", l3 = ""; - n3.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? o3 = this._js_beautify : n3.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? o3 = this._css_beautify : n3.custom_beautifier_name === "html" && (o3 = function(e4, t4) { + var r3, o3 = t3.text, s3 = 1, a3 = "", l3 = ""; + n3.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? r3 = this._js_beautify : n3.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? r3 = this._css_beautify : n3.custom_beautifier_name === "html" && (r3 = function(e4, t4) { return new m2(e4, t4, i3._js_beautify, i3._css_beautify).beautify(); }), this._options.indent_scripts === "keep" ? s3 = 0 : this._options.indent_scripts === "separate" && (s3 = -e3.indent_level); var c3 = e3.get_full_indent(s3); - if (r3 = r3.replace(/\n[ \t]*$/, ""), n3.custom_beautifier_name !== "html" && r3[0] === "<" && r3.match(/^(|]]>)$/.exec(r3); + if (o3 = o3.replace(/\n[ \t]*$/, ""), n3.custom_beautifier_name !== "html" && o3[0] === "<" && o3.match(/^(|]]>)$/.exec(o3); if (!d3) return void e3.add_raw_token(t3); - a3 = c3 + d3[1] + "\n", r3 = d3[4], d3[5] && (l3 = c3 + d3[5]), r3 = r3.replace(/\n[ \t]*$/, ""), (d3[2] || d3[3].indexOf("\n") !== -1) && (d3 = d3[3].match(/[ \t]+$/)) && (t3.whitespace_before = d3[0]); + a3 = c3 + d3[1] + "\n", o3 = d3[4], d3[5] && (l3 = c3 + d3[5]), o3 = o3.replace(/\n[ \t]*$/, ""), (d3[2] || d3[3].indexOf("\n") !== -1) && (d3 = d3[3].match(/[ \t]+$/)) && (t3.whitespace_before = d3[0]); } - if (r3) - if (o3) { + if (o3) + if (r3) { var h3 = function() { this.eol = "\n"; }; - h3.prototype = this._options.raw_options, r3 = o3(c3 + r3, new h3()); + h3.prototype = this._options.raw_options, o3 = r3(c3 + o3, new h3()); } else { var u3 = t3.whitespace_before; - u3 && (r3 = r3.replace(new RegExp("\n(" + u3 + ")?", "g"), "\n")), r3 = c3 + r3.replace(/\n/g, "\n" + c3); + u3 && (o3 = o3.replace(new RegExp("\n(" + u3 + ")?", "g"), "\n")), o3 = c3 + o3.replace(/\n/g, "\n" + c3); } - a3 && (r3 = r3 ? a3 + r3 + "\n" + l3 : a3 + l3), e3.print_newline(false), r3 && (t3.text = r3, t3.whitespace_before = "", t3.newlines = 0, e3.add_raw_token(t3), e3.print_newline(true)); + a3 && (o3 = o3 ? a3 + o3 + "\n" + l3 : a3 + l3), e3.print_newline(false), o3 && (t3.text = o3, t3.whitespace_before = "", t3.newlines = 0, e3.add_raw_token(t3), e3.print_newline(true)); } }, m2.prototype._handle_tag_open = function(e3, t3, n3, i3) { - var o3 = this._get_tag_open_token(t3); - return (n3.is_unformatted || n3.is_content_unformatted) && t3.type === s2.TAG_OPEN && t3.text.indexOf("/), d2 = function(e3, t3) { + var i2 = n2(9).Tokenizer, r2 = n2(9).TOKEN, o2 = n2(13).Directives, s2 = n2(14).TemplatablePattern, a2 = n2(12).Pattern, l2 = {TAG_OPEN: "TK_TAG_OPEN", TAG_CLOSE: "TK_TAG_CLOSE", ATTRIBUTE: "TK_ATTRIBUTE", EQUALS: "TK_EQUALS", VALUE: "TK_VALUE", COMMENT: "TK_COMMENT", TEXT: "TK_TEXT", UNKNOWN: "TK_UNKNOWN", START: r2.START, RAW: r2.RAW, EOF: r2.EOF}, c2 = new o2(/<\!--/, /-->/), d2 = function(e3, t3) { i2.call(this, e3, t3), this._current_tag_name = ""; - var n3 = new s2(this._input).read_options(this._options), o3 = new a2(this._input); - if (this.__patterns = {word: n3.until(/[\n\r\t <]/), single_quote: n3.until_after(/'/), double_quote: n3.until_after(/"/), attribute: n3.until(/[\n\r\t =>]|\/>/), element_name: n3.until(/[\n\r\t >\/]/), handlebars_comment: o3.starting_with(/{{!--/).until_after(/--}}/), handlebars: o3.starting_with(/{{/).until_after(/}}/), handlebars_open: o3.until(/[\n\r\t }]/), handlebars_raw_close: o3.until(/}}/), comment: o3.starting_with(//), cdata: o3.starting_with(//), conditional_comment: o3.starting_with(//), processing: o3.starting_with(/<\?/).until_after(/\?>/)}, this._options.indent_handlebars && (this.__patterns.word = this.__patterns.word.exclude("handlebars")), this._unformatted_content_delimiter = null, this._options.unformatted_content_delimiter) { - var r3 = this._input.get_literal_regexp(this._options.unformatted_content_delimiter); - this.__patterns.unformatted_content_delimiter = o3.matching(r3).until_after(r3); + var n3 = new s2(this._input).read_options(this._options), r3 = new a2(this._input); + if (this.__patterns = {word: n3.until(/[\n\r\t <]/), single_quote: n3.until_after(/'/), double_quote: n3.until_after(/"/), attribute: n3.until(/[\n\r\t =>]|\/>/), element_name: n3.until(/[\n\r\t >\/]/), handlebars_comment: r3.starting_with(/{{!--/).until_after(/--}}/), handlebars: r3.starting_with(/{{/).until_after(/}}/), handlebars_open: r3.until(/[\n\r\t }]/), handlebars_raw_close: r3.until(/}}/), comment: r3.starting_with(//), cdata: r3.starting_with(//), conditional_comment: r3.starting_with(//), processing: r3.starting_with(/<\?/).until_after(/\?>/)}, this._options.indent_handlebars && (this.__patterns.word = this.__patterns.word.exclude("handlebars")), this._unformatted_content_delimiter = null, this._options.unformatted_content_delimiter) { + var o3 = this._input.get_literal_regexp(this._options.unformatted_content_delimiter); + this.__patterns.unformatted_content_delimiter = r3.matching(o3).until_after(o3); } }; (d2.prototype = new i2())._is_comment = function(e3) { @@ -11144,15 +11144,15 @@ var n3 = null, i3 = null; return t3 && (t3.text[0] === "<" && (e3 === ">" || e3 === "/" && this._input.peek(1) === ">") ? (n3 = this._input.next(), e3 === "/" && (n3 += this._input.next()), i3 = this._create_token(l2.TAG_CLOSE, n3)) : t3.text[0] === "{" && e3 === "}" && this._input.peek(1) === "}" && (this._input.next(), this._input.next(), i3 = this._create_token(l2.TAG_CLOSE, "}}"))), i3; }, d2.prototype._read_attribute = function(e3, t3, n3) { - var i3 = null, o3 = ""; + var i3 = null, r3 = ""; if (n3 && n3.text[0] === "<") if (e3 === "=") i3 = this._create_token(l2.EQUALS, this._input.next()); else if (e3 === '"' || e3 === "'") { - var r3 = this._input.next(); - r3 += e3 === '"' ? this.__patterns.double_quote.read() : this.__patterns.single_quote.read(), i3 = this._create_token(l2.VALUE, r3); + var o3 = this._input.next(); + o3 += e3 === '"' ? this.__patterns.double_quote.read() : this.__patterns.single_quote.read(), i3 = this._create_token(l2.VALUE, o3); } else - (o3 = this.__patterns.attribute.read()) && (i3 = t3.type === l2.EQUALS ? this._create_token(l2.VALUE, o3) : this._create_token(l2.ATTRIBUTE, o3)); + (r3 = this.__patterns.attribute.read()) && (i3 = t3.type === l2.EQUALS ? this._create_token(l2.VALUE, r3) : this._create_token(l2.ATTRIBUTE, r3)); return i3; }, d2.prototype._is_content_unformatted = function(e3) { return this._options.void_elements.indexOf(e3) === -1 && (this._options.content_unformatted.indexOf(e3) !== -1 || this._options.unformatted.indexOf(e3) !== -1); @@ -11161,14 +11161,14 @@ if (n3 && n3.text[0] === "{") i3 = this.__patterns.handlebars_raw_close.read(); else if (t3.type === l2.TAG_CLOSE && t3.opened.text[0] === "<") { - var o3 = t3.opened.text.substr(1).toLowerCase(); - if (o3 === "script" || o3 === "style") { - var r3 = this._read_comment_or_cdata(e3); - if (r3) - return r3.type = l2.TEXT, r3; - i3 = this._input.readUntil(new RegExp("", "ig")); + var r3 = t3.opened.text.substr(1).toLowerCase(); + if (r3 === "script" || r3 === "style") { + var o3 = this._read_comment_or_cdata(e3); + if (o3) + return o3.type = l2.TEXT, o3; + i3 = this._input.readUntil(new RegExp("", "ig")); } else - this._is_content_unformatted(o3) && (i3 = this._input.readUntil(new RegExp("", "ig"))); + this._is_content_unformatted(r3) && (i3 = this._input.readUntil(new RegExp("", "ig"))); } return i3 ? this._create_token(l2.TEXT, i3) : null; }, d2.prototype._read_content_word = function(e3) { @@ -11178,7 +11178,7 @@ }, e2.exports.Tokenizer = d2, e2.exports.TOKEN = l2; }]); function ut(e2, t2, n2) { - var i2 = e2.getText(), o2 = true, r2 = 0, l2 = n2.tabSize || 4; + var i2 = e2.getText(), r2 = true, o2 = 0, l2 = n2.tabSize || 4; if (t2) { for (var c2 = e2.offsetAt(t2.start), d2 = c2; d2 > 0 && ft(i2, d2 - 1); ) d2--; @@ -11189,31 +11189,31 @@ var p2 = i2.substring(0, c2); if (new RegExp(/.*[<][^>]*$/).test(p2)) return [{range: t2, newText: i2 = i2.substring(c2, h2)}]; - if (o2 = h2 === i2.length, i2 = i2.substring(c2, h2), c2 !== 0) { + if (r2 = h2 === i2.length, i2 = i2.substring(c2, h2), c2 !== 0) { var m2 = e2.offsetAt(s.create(t2.start.line, 0)); - r2 = function(e3, t3, n3) { - var i3 = t3, o3 = 0, r3 = n3.tabSize || 4; + o2 = function(e3, t3, n3) { + var i3 = t3, r3 = 0, o3 = n3.tabSize || 4; for (; i3 < e3.length; ) { var s2 = e3.charAt(i3); if (s2 === " ") - o3++; + r3++; else { if (s2 !== " ") break; - o3 += r3; + r3 += o3; } i3++; } - return Math.floor(o3 / r3); + return Math.floor(r3 / o3); }(e2.getText(), m2, n2); } } else t2 = a.create(s.create(0, 0), e2.positionAt(i2.length)); - var g2 = {indent_size: l2, indent_char: n2.insertSpaces ? " " : " ", indent_empty_lines: pt(n2, "indentEmptyLines", false), wrap_line_length: pt(n2, "wrapLineLength", 120), unformatted: mt(n2, "unformatted", void 0), content_unformatted: mt(n2, "contentUnformatted", void 0), indent_inner_html: pt(n2, "indentInnerHtml", false), preserve_newlines: pt(n2, "preserveNewLines", true), max_preserve_newlines: pt(n2, "maxPreserveNewLines", 32786), indent_handlebars: pt(n2, "indentHandlebars", false), end_with_newline: o2 && pt(n2, "endWithNewline", false), extra_liners: mt(n2, "extraLiners", void 0), wrap_attributes: pt(n2, "wrapAttributes", "auto"), wrap_attributes_indent_size: pt(n2, "wrapAttributesIndentSize", void 0), eol: "\n"}, f2 = function(e3, t3) { + var g2 = {indent_size: l2, indent_char: n2.insertSpaces ? " " : " ", indent_empty_lines: pt(n2, "indentEmptyLines", false), wrap_line_length: pt(n2, "wrapLineLength", 120), unformatted: mt(n2, "unformatted", void 0), content_unformatted: mt(n2, "contentUnformatted", void 0), indent_inner_html: pt(n2, "indentInnerHtml", false), preserve_newlines: pt(n2, "preserveNewLines", true), max_preserve_newlines: pt(n2, "maxPreserveNewLines", 32786), indent_handlebars: pt(n2, "indentHandlebars", false), end_with_newline: r2 && pt(n2, "endWithNewline", false), extra_liners: mt(n2, "extraLiners", void 0), wrap_attributes: pt(n2, "wrapAttributes", "auto"), wrap_attributes_indent_size: pt(n2, "wrapAttributesIndentSize", void 0), eol: "\n"}, f2 = function(e3, t3) { return ht(e3, t3, ct, dt); }(i2.replace(/^\s+/, ""), g2); - if (r2 > 0) { - var b2 = n2.insertSpaces ? We(" ", l2 * r2) : We(" ", r2); + if (o2 > 0) { + var b2 = n2.insertSpaces ? We(" ", l2 * o2) : We(" ", o2); f2 = f2.split("\n").join("\n" + b2), t2.start.character === 0 && (f2 = b2 + f2); } return [{range: t2, newText: f2}]; @@ -11243,15 +11243,15 @@ var t2 = e2[0]; return t2 !== e2[e2.length - 1] || t2 !== "'" && t2 !== '"' || (e2 = e2.substr(1, e2.length - 2)), e2; } - function vt(e2, t2, n2, i2, o2, r2) { + function vt(e2, t2, n2, i2, r2, o2) { var s2 = _t(n2); if (l2 = s2, c2 = e2.languageId, l2.length && (c2 !== "handlebars" || !/{{.*}}/.test(l2)) && /\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(l2)) { var l2, c2; - s2.length < n2.length && (i2++, o2--); + s2.length < n2.length && (i2++, r2--); var d2 = function(e3, t3, n3, i3) { if (!/^\s*javascript\:/i.test(t3) && !/[\n\r]/.test(t3)) return t3 = t3.replace(/^\s*/g, ""), /^https?:\/\//i.test(t3) || /^file:\/\//i.test(t3) ? t3 : /^\#/i.test(t3) ? e3 + t3 : /^\/\//i.test(t3) ? (Fe(e3, "https://") ? "https" : "http") + ":" + t3.replace(/^\s*/g, "") : n3 ? n3.resolveReference(t3, i3 || e3) : t3; - }(e2.uri, s2, t2, r2); + }(e2.uri, s2, t2, o2); if (d2 && function(e3) { try { return bt.a.parse(e3), true; @@ -11259,30 +11259,30 @@ return false; } }(d2)) - return {range: a.create(e2.positionAt(i2), e2.positionAt(o2)), target: d2}; + return {range: a.create(e2.positionAt(i2), e2.positionAt(r2)), target: d2}; } } function wt(e2, t2) { - for (var n2 = [], i2 = Ie(e2.getText(), 0), o2 = i2.scan(), r2 = void 0, s2 = false, a2 = void 0, l2 = {}; o2 !== se.EOS; ) { - switch (o2) { + for (var n2 = [], i2 = Ie(e2.getText(), 0), r2 = i2.scan(), o2 = void 0, s2 = false, a2 = void 0, l2 = {}; r2 !== se.EOS; ) { + switch (r2) { case se.StartTag: if (!a2) s2 = i2.getTokenText().toLowerCase() === "base"; break; case se.AttributeName: - r2 = i2.getTokenText().toLowerCase(); + o2 = i2.getTokenText().toLowerCase(); break; case se.AttributeValue: - if (r2 === "src" || r2 === "href") { + if (o2 === "src" || o2 === "href") { var c2 = i2.getTokenText(); if (!s2) (u2 = vt(e2, t2, c2, i2.getTokenOffset(), i2.getTokenEnd(), a2)) && n2.push(u2); - s2 && a2 === void 0 && (a2 = _t(c2)) && t2 && (a2 = t2.resolveReference(a2, e2.uri)), s2 = false, r2 = void 0; - } else if (r2 === "id") { + s2 && a2 === void 0 && (a2 = _t(c2)) && t2 && (a2 = t2.resolveReference(a2, e2.uri)), s2 = false, o2 = void 0; + } else if (o2 === "id") { l2[_t(i2.getTokenText())] = i2.getTokenOffset(); } } - o2 = i2.scan(); + r2 = i2.scan(); } for (var d2 = 0, h2 = n2; d2 < h2.length; d2++) { var u2 = h2[d2], p2 = e2.uri + "#"; @@ -11297,11 +11297,11 @@ return n2; } function yt(e2, t2, n2) { - var i2 = e2.offsetAt(t2), o2 = n2.findNodeAt(i2); - if (!o2.tag) + var i2 = e2.offsetAt(t2), r2 = n2.findNodeAt(i2); + if (!r2.tag) return []; - var r2 = [], s2 = St(se.StartTag, e2, o2.start), a2 = typeof o2.endTagStart == "number" && St(se.EndTag, e2, o2.endTagStart); - return (s2 && xt(s2, t2) || a2 && xt(a2, t2)) && (s2 && r2.push({kind: V.Read, range: s2}), a2 && r2.push({kind: V.Read, range: a2})), r2; + var o2 = [], s2 = St(se.StartTag, e2, r2.start), a2 = typeof r2.endTagStart == "number" && St(se.EndTag, e2, r2.endTagStart); + return (s2 && xt(s2, t2) || a2 && xt(a2, t2)) && (s2 && o2.push({kind: V.Read, range: s2}), a2 && o2.push({kind: V.Read, range: a2})), o2; } function Ct(e2, t2) { return e2.line < t2.line || e2.line === t2.line && e2.character <= t2.character; @@ -11310,15 +11310,15 @@ return Ct(e2.start, t2) && Ct(t2, e2.end); } function St(e2, t2, n2) { - for (var i2 = Ie(t2.getText(), n2), o2 = i2.scan(); o2 !== se.EOS && o2 !== e2; ) - o2 = i2.scan(); - return o2 !== se.EOS ? {start: t2.positionAt(i2.getTokenOffset()), end: t2.positionAt(i2.getTokenEnd())} : null; + for (var i2 = Ie(t2.getText(), n2), r2 = i2.scan(); r2 !== se.EOS && r2 !== e2; ) + r2 = i2.scan(); + return r2 !== se.EOS ? {start: t2.positionAt(i2.getTokenOffset()), end: t2.positionAt(i2.getTokenEnd())} : null; } function kt(e2, t2) { var n2 = []; return t2.roots.forEach(function(t3) { - !function e3(t4, n3, i2, o2) { - var r2 = function(e4) { + !function e3(t4, n3, i2, r2) { + var o2 = function(e4) { var t5 = e4.tag; if (e4.attributes) { var n4 = e4.attributes.id, i3 = e4.attributes.class; @@ -11327,60 +11327,60 @@ }).join("")); } return t5 || "?"; - }(n3), s2 = l.create(t4.uri, a.create(t4.positionAt(n3.start), t4.positionAt(n3.end))), c2 = {name: r2, location: s2, containerName: i2, kind: H.Field}; - o2.push(c2), n3.children.forEach(function(n4) { - e3(t4, n4, r2, o2); + }(n3), s2 = l.create(t4.uri, a.create(t4.positionAt(n3.start), t4.positionAt(n3.end))), c2 = {name: o2, location: s2, containerName: i2, kind: H.Field}; + r2.push(c2), n3.children.forEach(function(n4) { + e3(t4, n4, o2, r2); }); }(e2, t3, "", n2); }), n2; } function Et(e2, t2, n2, i2) { - var o2, r2 = e2.offsetAt(t2), s2 = i2.findNodeAt(r2); + var r2, o2 = e2.offsetAt(t2), s2 = i2.findNodeAt(o2); if (!s2.tag) return null; if (!function(e3, t3, n3) { if (e3.endTagStart && e3.endTagStart + "= 0 && r2[h2].tagName !== s2; ) + for (var h2 = o2.length - 1; h2 >= 0 && o2[h2].tagName !== s2; ) h2--; if (h2 >= 0) { - var u2 = r2[h2]; - r2.length = h2, (g2 = e2.positionAt(n2.getTokenOffset()).line - 1) > (d2 = u2.startLine) && a2 !== d2 && l2({startLine: d2, endLine: g2}); + var u2 = o2[h2]; + o2.length = h2, (g2 = e2.positionAt(n2.getTokenOffset()).line - 1) > (d2 = u2.startLine) && a2 !== d2 && l2({startLine: d2, endLine: g2}); } break; case se.Comment: @@ -11402,14 +11402,14 @@ var m2 = n2.getTokenText().match(/^\s*#(region\b)|(endregion\b)/); if (m2) if (m2[1]) - r2.push({startLine: d2, tagName: ""}); + o2.push({startLine: d2, tagName: ""}); else { - for (h2 = r2.length - 1; h2 >= 0 && r2[h2].tagName.length; ) + for (h2 = o2.length - 1; h2 >= 0 && o2[h2].tagName.length; ) h2--; if (h2 >= 0) { var g2; - u2 = r2[h2]; - r2.length = h2, (g2 = d2) > (d2 = u2.startLine) && a2 !== d2 && l2({startLine: d2, endLine: g2, kind: p.Region}); + u2 = o2[h2]; + o2.length = h2, (g2 = d2) > (d2 = u2.startLine) && a2 !== d2 && l2({startLine: d2, endLine: g2, kind: p.Region}); } } else @@ -11418,13 +11418,13 @@ i2 = n2.scan(); } var f2 = t2 && t2.rangeLimit || Number.MAX_VALUE; - return o2.length > f2 ? function(e3, t3) { + return r2.length > f2 ? function(e3, t3) { e3 = e3.sort(function(e4, t4) { var n4 = e4.startLine - t4.startLine; return n4 === 0 && (n4 = e4.endLine - t4.endLine), n4; }); - for (var n3 = void 0, i3 = [], o3 = [], r3 = [], s3 = function(e4, t4) { - o3[e4] = t4, t4 < 30 && (r3[t4] = (r3[t4] || 0) + 1); + for (var n3 = void 0, i3 = [], r3 = [], o3 = [], s3 = function(e4, t4) { + r3[e4] = t4, t4 < 30 && (o3[t4] = (o3[t4] || 0) + 1); }, a3 = 0; a3 < e3.length; a3++) { var l3 = e3[a3]; if (n3) { @@ -11442,8 +11442,8 @@ n3 = l3, s3(a3, 0); } var c3 = 0, d3 = 0; - for (a3 = 0; a3 < r3.length; a3++) { - var h3 = r3[a3]; + for (a3 = 0; a3 < o3.length; a3++) { + var h3 = o3[a3]; if (h3) { if (h3 + c3 > t3) { d3 = a3; @@ -11454,16 +11454,16 @@ } var u3 = []; for (a3 = 0; a3 < e3.length; a3++) { - var p2 = o3[a3]; + var p2 = r3[a3]; typeof p2 == "number" && (p2 < d3 || p2 === d3 && c3++ < t3) && u3.push(e3[a3]); } return u3; - }(o2, f2) : o2; + }(r2, f2) : r2; } function It(e2, t2) { return t2.map(function(t3) { for (var n2 = function(e3, t4) { - var n3 = Me(e3.getText()), i3 = e3.offsetAt(t4), o3 = n3.findNodeAt(i3), r3 = function(e4) { + var n3 = Me(e3.getText()), i3 = e3.offsetAt(t4), r3 = n3.findNodeAt(i3), o3 = function(e4) { var t5 = e4, n4 = []; for (; t5.parent; ) t5 = t5.parent, (i4 = t5, i4.startTagEnd && i4.endTagStart && i4.startTagEnd < i4.endTagStart ? [[i4.startTagEnd, i4.endTagStart], [i4.start, i4.end]] : [[i4.start, i4.end]]).forEach(function(e5) { @@ -11471,49 +11471,49 @@ }); var i4; return n4; - }(o3); - if (o3.startTagEnd && !o3.endTagStart) { - if (o3.startTagEnd !== o3.end) - return [[o3.start, o3.end]]; - var s3 = a.create(e3.positionAt(o3.startTagEnd - 2), e3.positionAt(o3.startTagEnd)); - e3.getText(s3) === "/>" ? r3.unshift([o3.start + 1, o3.startTagEnd - 2]) : r3.unshift([o3.start + 1, o3.startTagEnd - 1]); - var l2 = Ot(e3, o3, i3); - return r3 = l2.concat(r3); - } - if (!o3.startTagEnd || !o3.endTagStart) - return r3; - if (r3.unshift([o3.start, o3.end]), o3.start < i3 && i3 < o3.startTagEnd) { - r3.unshift([o3.start + 1, o3.startTagEnd - 1]); - l2 = Ot(e3, o3, i3); - return r3 = l2.concat(r3); + }(r3); + if (r3.startTagEnd && !r3.endTagStart) { + if (r3.startTagEnd !== r3.end) + return [[r3.start, r3.end]]; + var s3 = a.create(e3.positionAt(r3.startTagEnd - 2), e3.positionAt(r3.startTagEnd)); + e3.getText(s3) === "/>" ? o3.unshift([r3.start + 1, r3.startTagEnd - 2]) : o3.unshift([r3.start + 1, r3.startTagEnd - 1]); + var l2 = Dt(e3, r3, i3); + return o3 = l2.concat(o3); + } + if (!r3.startTagEnd || !r3.endTagStart) + return o3; + if (o3.unshift([r3.start, r3.end]), r3.start < i3 && i3 < r3.startTagEnd) { + o3.unshift([r3.start + 1, r3.startTagEnd - 1]); + l2 = Dt(e3, r3, i3); + return o3 = l2.concat(o3); } - return o3.startTagEnd <= i3 && i3 <= o3.endTagStart ? (r3.unshift([o3.startTagEnd, o3.endTagStart]), r3) : (i3 >= o3.endTagStart + 2 && r3.unshift([o3.endTagStart + 2, o3.end - 1]), r3); - }(e2, t3), i2 = void 0, o2 = void 0, r2 = n2.length - 1; r2 >= 0; r2--) { - var s2 = n2[r2]; - i2 && s2[0] === i2[0] && s2[1] === i2[1] || (o2 = ee.create(a.create(e2.positionAt(n2[r2][0]), e2.positionAt(n2[r2][1])), o2)), i2 = s2; + return r3.startTagEnd <= i3 && i3 <= r3.endTagStart ? (o3.unshift([r3.startTagEnd, r3.endTagStart]), o3) : (i3 >= r3.endTagStart + 2 && o3.unshift([r3.endTagStart + 2, r3.end - 1]), o3); + }(e2, t3), i2 = void 0, r2 = void 0, o2 = n2.length - 1; o2 >= 0; o2--) { + var s2 = n2[o2]; + i2 && s2[0] === i2[0] && s2[1] === i2[1] || (r2 = ee.create(a.create(e2.positionAt(n2[o2][0]), e2.positionAt(n2[o2][1])), r2)), i2 = s2; } - return o2 || (o2 = ee.create(a.create(t3, t3))), o2; + return r2 || (r2 = ee.create(a.create(t3, t3))), r2; }); } - function Ot(e2, t2, n2) { - for (var i2 = a.create(e2.positionAt(t2.start), e2.positionAt(t2.end)), o2 = e2.getText(i2), r2 = n2 - t2.start, s2 = Ie(o2), l2 = s2.scan(), c2 = t2.start, d2 = [], h2 = false, u2 = -1; l2 !== se.EOS; ) { + function Dt(e2, t2, n2) { + for (var i2 = a.create(e2.positionAt(t2.start), e2.positionAt(t2.end)), r2 = e2.getText(i2), o2 = n2 - t2.start, s2 = Ie(r2), l2 = s2.scan(), c2 = t2.start, d2 = [], h2 = false, u2 = -1; l2 !== se.EOS; ) { switch (l2) { case se.AttributeName: - if (r2 < s2.getTokenOffset()) { + if (o2 < s2.getTokenOffset()) { h2 = false; break; } - r2 <= s2.getTokenEnd() && d2.unshift([s2.getTokenOffset(), s2.getTokenEnd()]), h2 = true, u2 = s2.getTokenOffset(); + o2 <= s2.getTokenEnd() && d2.unshift([s2.getTokenOffset(), s2.getTokenEnd()]), h2 = true, u2 = s2.getTokenOffset(); break; case se.AttributeValue: if (!h2) break; var p2 = s2.getTokenText(); - if (r2 < s2.getTokenOffset()) { + if (o2 < s2.getTokenOffset()) { d2.push([u2, s2.getTokenEnd()]); break; } - r2 >= s2.getTokenOffset() && r2 <= s2.getTokenEnd() && (d2.unshift([s2.getTokenOffset(), s2.getTokenEnd()]), (p2[0] === '"' && p2[p2.length - 1] === '"' || p2[0] === "'" && p2[p2.length - 1] === "'") && r2 >= s2.getTokenOffset() + 1 && r2 <= s2.getTokenEnd() - 1 && d2.unshift([s2.getTokenOffset() + 1, s2.getTokenEnd() - 1]), d2.push([u2, s2.getTokenEnd()])); + o2 >= s2.getTokenOffset() && o2 <= s2.getTokenEnd() && (d2.unshift([s2.getTokenOffset(), s2.getTokenEnd()]), (p2[0] === '"' && p2[p2.length - 1] === '"' || p2[0] === "'" && p2[p2.length - 1] === "'") && o2 >= s2.getTokenOffset() + 1 && o2 <= s2.getTokenEnd() - 1 && d2.unshift([s2.getTokenOffset() + 1, s2.getTokenEnd() - 1]), d2.push([u2, s2.getTokenEnd()])); } l2 = s2.scan(); } @@ -11521,29 +11521,29 @@ return [e3[0] + c2, e3[1] + c2]; }); } - var Dt = {version: 1.1, tags: [{name: "html", description: {kind: "markdown", value: "The html element represents the root of an HTML document."}, attributes: [{name: "manifest", description: {kind: "markdown", value: "Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}}, {name: "version", description: 'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'}, {name: "xmlns", description: 'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/html"}]}, {name: "head", description: {kind: "markdown", value: "The head element represents a collection of metadata for the Document."}, attributes: [{name: "profile", description: "The URIs of one or more metadata profiles, separated by white space."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/head"}]}, {name: "title", description: {kind: "markdown", value: "The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/title"}]}, {name: "base", description: {kind: "markdown", value: "The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."}, attributes: [{name: "href", description: {kind: "markdown", value: "The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}}, {name: "target", description: {kind: "markdown", value: "A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/base"}]}, {name: "link", description: {kind: "markdown", value: "The link element allows authors to link their document to other resources."}, attributes: [{name: "href", description: {kind: "markdown", value: 'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}}, {name: "rel", description: {kind: "markdown", value: "This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}}, {name: "media", description: {kind: "markdown", value: "This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}}, {name: "hreflang", description: {kind: "markdown", value: "This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}}, {name: "type", description: {kind: "markdown", value: 'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}}, {name: "sizes", description: {kind: "markdown", value: "This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `__x__` or `__X__`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}}, {name: "as", description: 'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `` element. It specifies the type of content being loaded by the ``, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'}, {name: "importance", description: "Indicates the relative importance of the resource. Priority hints are delegated using the values:"}, {name: "importance", description: '**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `` element if `rel="preload"` or `rel="prefetch"` is present.'}, {name: "integrity", description: "Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."}, {name: "referrerpolicy", description: 'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'}, {name: "title", description: 'The `title` attribute has special semantics on the `` element. When used on a `` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/link"}]}, {name: "meta", description: {kind: "markdown", value: "The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."}, attributes: [{name: "name", description: {kind: "markdown", value: 'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xA0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}}, {name: "http-equiv", description: {kind: "markdown", value: 'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}}, {name: "content", description: {kind: "markdown", value: "This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}}, {name: "charset", description: {kind: "markdown", value: 'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xA0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}}, {name: "scheme", description: "This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]}, {name: "style", description: {kind: "markdown", value: "The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."}, attributes: [{name: "media", description: {kind: "markdown", value: "This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}}, {name: "nonce", description: {kind: "markdown", value: "A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}}, {name: "type", description: {kind: "markdown", value: "This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}}, {name: "scoped", valueSet: "v"}, {name: "title", description: "This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/style"}]}, {name: "body", description: {kind: "markdown", value: "The body element represents the content of the document."}, attributes: [{name: "onafterprint", description: {kind: "markdown", value: "Function to call after the user has printed the document."}}, {name: "onbeforeprint", description: {kind: "markdown", value: "Function to call when the user requests printing of the document."}}, {name: "onbeforeunload", description: {kind: "markdown", value: "Function to call when the document is about to be unloaded."}}, {name: "onhashchange", description: {kind: "markdown", value: "Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}}, {name: "onlanguagechange", description: {kind: "markdown", value: "Function to call when the preferred languages changed."}}, {name: "onmessage", description: {kind: "markdown", value: "Function to call when the document has received a message."}}, {name: "onoffline", description: {kind: "markdown", value: "Function to call when network communication has failed."}}, {name: "ononline", description: {kind: "markdown", value: "Function to call when network communication has been restored."}}, {name: "onpagehide"}, {name: "onpageshow"}, {name: "onpopstate", description: {kind: "markdown", value: "Function to call when the user has navigated session history."}}, {name: "onstorage", description: {kind: "markdown", value: "Function to call when the storage area has changed."}}, {name: "onunload", description: {kind: "markdown", value: "Function to call when the document is going away."}}, {name: "alink", description: 'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'}, {name: "background", description: 'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'}, {name: "bgcolor", description: 'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'}, {name: "bottommargin", description: 'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "leftmargin", description: 'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "link", description: 'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'}, {name: "onblur", description: "Function to call when the document loses focus."}, {name: "onerror", description: "Function to call when the document fails to load properly."}, {name: "onfocus", description: "Function to call when the document receives focus."}, {name: "onload", description: "Function to call when the document has finished loading."}, {name: "onredo", description: "Function to call when the user has moved forward in undo transaction history."}, {name: "onresize", description: "Function to call when the document has been resized."}, {name: "onundo", description: "Function to call when the user has moved backward in undo transaction history."}, {name: "rightmargin", description: 'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "text", description: 'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'}, {name: "topmargin", description: 'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "vlink", description: 'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/body"}]}, {name: "article", description: {kind: "markdown", value: "The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/article"}]}, {name: "section", description: {kind: "markdown", value: "The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/section"}]}, {name: "nav", description: {kind: "markdown", value: "The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]}, {name: "aside", description: {kind: "markdown", value: "The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]}, {name: "h1", description: {kind: "markdown", value: "The h1 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h2", description: {kind: "markdown", value: "The h2 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h3", description: {kind: "markdown", value: "The h3 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h4", description: {kind: "markdown", value: "The h4 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h5", description: {kind: "markdown", value: "The h5 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h6", description: {kind: "markdown", value: "The h6 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "header", description: {kind: "markdown", value: "The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/header"}]}, {name: "footer", description: {kind: "markdown", value: "The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]}, {name: "address", description: {kind: "markdown", value: "The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/address"}]}, {name: "p", description: {kind: "markdown", value: "The p element represents a paragraph."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/p"}]}, {name: "hr", description: {kind: "markdown", value: "The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."}, attributes: [{name: "align", description: "Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."}, {name: "color", description: "Sets the color of the rule through color name or hexadecimal value."}, {name: "noshade", description: "Sets the rule to have no shading."}, {name: "size", description: "Sets the height, in pixels, of the rule."}, {name: "width", description: "Sets the length of the rule on the page through a pixel or percentage value."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]}, {name: "pre", description: {kind: "markdown", value: "The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."}, attributes: [{name: "cols", description: 'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'}, {name: "width", description: 'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'}, {name: "wrap", description: 'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]}, {name: "blockquote", description: {kind: "markdown", value: "The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."}, attributes: [{name: "cite", description: {kind: "markdown", value: "A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]}, {name: "ol", description: {kind: "markdown", value: "The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."}, attributes: [{name: "reversed", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute specifies that the items of the list are specified in reversed order."}}, {name: "start", description: {kind: "markdown", value: 'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}}, {name: "type", valueSet: "lt", description: {kind: "markdown", value: "Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}}, {name: "compact", description: 'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]}, {name: "ul", description: {kind: "markdown", value: "The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."}, attributes: [{name: "compact", description: 'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xA0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]}, {name: "li", description: {kind: "markdown", value: "The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."}, attributes: [{name: "value", description: {kind: "markdown", value: 'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xA09.0, negative values were incorrectly converted to 0. Starting in Gecko\xA09.0 all integer values are correctly parsed.'}}, {name: "type", description: 'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/li"}]}, {name: "dl", description: {kind: "markdown", value: "The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]}, {name: "dt", description: {kind: "markdown", value: "The dt element represents the term, or name, part of a term-description group in a description list (dl element)."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]}, {name: "dd", description: {kind: "markdown", value: "The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."}, attributes: [{name: "nowrap", description: "If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]}, {name: "figure", description: {kind: "markdown", value: "The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]}, {name: "figcaption", description: {kind: "markdown", value: "The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]}, {name: "main", description: {kind: "markdown", value: "The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/main"}]}, {name: "div", description: {kind: "markdown", value: "The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/div"}]}, {name: "a", description: {kind: "markdown", value: "If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."}, attributes: [{name: "href", description: {kind: "markdown", value: "Contains a URL or a URL fragment that the hyperlink points to."}}, {name: "target", description: {kind: "markdown", value: 'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}}, {name: "download", description: {kind: "markdown", value: "This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}}, {name: "ping", description: {kind: "markdown", value: 'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}}, {name: "rel", description: {kind: "markdown", value: "Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}}, {name: "hreflang", description: {kind: "markdown", value: 'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}}, {name: "type", description: {kind: "markdown", value: 'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xA0MIME type\xA0(now properly called "media type", but\xA0also sometimes "content type") is a string sent along\xA0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xA0audio/ogg, or an image file\xA0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}}, {name: "referrerpolicy", description: "Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/a"}]}, {name: "em", description: {kind: "markdown", value: "The em element represents stress emphasis of its contents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/em"}]}, {name: "strong", description: {kind: "markdown", value: "The strong element represents strong importance, seriousness, or urgency for its contents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]}, {name: "small", description: {kind: "markdown", value: "The small element represents side comments such as small print."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/small"}]}, {name: "s", description: {kind: "markdown", value: "The s element represents contents that are no longer accurate or no longer relevant."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/s"}]}, {name: "cite", description: {kind: "markdown", value: "The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]}, {name: "q", description: {kind: "markdown", value: "The q element represents some phrasing content quoted from another source."}, attributes: [{name: "cite", description: {kind: "markdown", value: "The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/q"}]}, {name: "dfn", description: {kind: "markdown", value: "The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]}, {name: "abbr", description: {kind: "markdown", value: "The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]}, {name: "ruby", description: {kind: "markdown", value: "The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]}, {name: "rb", description: {kind: "markdown", value: "The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]}, {name: "rt", description: {kind: "markdown", value: "The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]}, {name: "rp", description: {kind: "markdown", value: "The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]}, {name: "time", description: {kind: "markdown", value: "The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."}, attributes: [{name: "datetime", description: {kind: "markdown", value: "This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/time"}]}, {name: "code", description: {kind: "markdown", value: "The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/code"}]}, {name: "var", description: {kind: "markdown", value: "The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/var"}]}, {name: "samp", description: {kind: "markdown", value: "The samp element represents sample or quoted output from another program or computing system."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]}, {name: "kbd", description: {kind: "markdown", value: "The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]}, {name: "sub", description: {kind: "markdown", value: "The sub element represents a subscript."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]}, {name: "sup", description: {kind: "markdown", value: "The sup element represents a superscript."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]}, {name: "i", description: {kind: "markdown", value: "The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/i"}]}, {name: "b", description: {kind: "markdown", value: "The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/b"}]}, {name: "u", description: {kind: "markdown", value: "The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/u"}]}, {name: "mark", description: {kind: "markdown", value: "The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]}, {name: "bdi", description: {kind: "markdown", value: "The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]}, {name: "bdo", description: {kind: "markdown", value: "The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"}, attributes: [{name: "dir", description: "The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]}, {name: "span", description: {kind: "markdown", value: "The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/span"}]}, {name: "br", description: {kind: "markdown", value: "The br element represents a line break."}, attributes: [{name: "clear", description: "Indicates where to begin the next line after the break."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/br"}]}, {name: "wbr", description: {kind: "markdown", value: "The wbr element represents a line break opportunity."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]}, {name: "ins", description: {kind: "markdown", value: "The ins element represents an addition to the document."}, attributes: [{name: "cite", description: "This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."}, {name: "datetime", description: 'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]}, {name: "del", description: {kind: "markdown", value: "The del element represents a removal from the document."}, attributes: [{name: "cite", description: {kind: "markdown", value: "A URI for a resource that explains the change (for example, meeting minutes)."}}, {name: "datetime", description: {kind: "markdown", value: 'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/del"}]}, {name: "picture", description: {kind: "markdown", value: "The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]}, {name: "img", description: {kind: "markdown", value: "An img element represents an image."}, attributes: [{name: "alt", description: {kind: "markdown", value: 'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}}, {name: "src", description: {kind: "markdown", value: "The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}}, {name: "srcset", description: {kind: "markdown", value: "A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:'}}, {name: "usemap", description: {kind: "markdown", value: 'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}}, {name: "ismap", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}}, {name: "width", description: {kind: "markdown", value: "The intrinsic width of the image in pixels."}}, {name: "height", description: {kind: "markdown", value: "The intrinsic height of the image in pixels."}}, {name: "decoding", description: "Provides an image decoding hint to the browser. The allowed values are:"}, {name: "decoding", description: "`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."}, {name: "importance", description: "Indicates the relative importance of the resource. Priority hints are delegated using the values:"}, {name: "importance", description: "`auto`: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xA0browser\xA0that the image is of\xA0**high** priority.\n\n`low`:\xA0Indicates to the\xA0browser\xA0that the image is of\xA0**low** priority."}, {name: "intrinsicsize", description: "This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}, {name: "referrerpolicy", description: "A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}, {name: "sizes", description: "A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/img"}]}, {name: "iframe", description: {kind: "markdown", value: "The iframe element represents a nested browsing context."}, attributes: [{name: "src", description: {kind: "markdown", value: 'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}}, {name: "srcdoc", description: {kind: "markdown", value: "Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}}, {name: "name", description: {kind: "markdown", value: 'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xA0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}}, {name: "sandbox", valueSet: "sb", description: {kind: "markdown", value: 'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}}, {name: "seamless", valueSet: "v"}, {name: "allowfullscreen", valueSet: "v", description: {kind: "markdown", value: 'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.'}}, {name: "width", description: {kind: "markdown", value: "The width of the frame in CSS pixels. Default is `300`."}}, {name: "height", description: {kind: "markdown", value: "The height of the frame in CSS pixels. Default is `150`."}}, {name: "allow", description: "Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."}, {name: "allowpaymentrequest", description: "Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."}, {name: "allowpaymentrequest", description: 'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'}, {name: "csp", description: 'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'}, {name: "importance", description: "The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."}, {name: "referrerpolicy", description: 'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]}, {name: "embed", description: {kind: "markdown", value: "The embed element provides an integration point for an external (typically non-HTML) application or interactive content."}, attributes: [{name: "src", description: {kind: "markdown", value: "The URL\xA0of the resource being embedded."}}, {name: "type", description: {kind: "markdown", value: "The MIME\xA0type to use to select the plug-in to instantiate."}}, {name: "width", description: {kind: "markdown", value: "The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}, {name: "height", description: {kind: "markdown", value: "The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]}, {name: "object", description: {kind: "markdown", value: "The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."}, attributes: [{name: "data", description: {kind: "markdown", value: "The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}}, {name: "type", description: {kind: "markdown", value: "The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}}, {name: "typemustmatch", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}}, {name: "name", description: {kind: "markdown", value: "The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}}, {name: "usemap", description: {kind: "markdown", value: "A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}}, {name: "form", description: {kind: "markdown", value: 'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}}, {name: "width", description: {kind: "markdown", value: "The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}}, {name: "height", description: {kind: "markdown", value: "The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}}, {name: "archive", description: "A space-separated list of URIs for archives of resources for the object."}, {name: "border", description: "The width of a border around the control, in pixels."}, {name: "classid", description: "The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."}, {name: "codebase", description: "The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."}, {name: "codetype", description: "The content type of the data specified by **classid**."}, {name: "declare", description: "The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."}, {name: "standby", description: "A message that the browser can show while loading the object's implementation and data."}, {name: "tabindex", description: "The position of the element in the tabbing navigation order for the current document."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/object"}]}, {name: "param", description: {kind: "markdown", value: "The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."}, attributes: [{name: "name", description: {kind: "markdown", value: "Name of the parameter."}}, {name: "value", description: {kind: "markdown", value: "Specifies the value of the parameter."}}, {name: "type", description: 'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'}, {name: "valuetype", description: 'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/param"}]}, {name: "video", description: {kind: "markdown", value: "A video element is used for playing videos or movies, and audio files with captions."}, attributes: [{name: "src"}, {name: "crossorigin", valueSet: "xo"}, {name: "poster"}, {name: "preload", valueSet: "pl"}, {name: "autoplay", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data."}}, {name: "mediagroup"}, {name: "loop", valueSet: "v"}, {name: "muted", valueSet: "v"}, {name: "controls", valueSet: "v"}, {name: "width"}, {name: "height"}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/video"}]}, {name: "audio", description: {kind: "markdown", value: "An audio element represents a sound or audio stream."}, attributes: [{name: "src", description: {kind: "markdown", value: 'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}}, {name: "preload", valueSet: "pl", description: {kind: "markdown", value: "This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xA0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}}, {name: "autoplay", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute:\xA0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}}, {name: "mediagroup"}, {name: "loop", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute:\xA0if specified, the audio player will\xA0automatically seek back to the start\xA0upon reaching the end of the audio."}}, {name: "muted", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}}, {name: "controls", valueSet: "v", description: {kind: "markdown", value: "If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]}, {name: "source", description: {kind: "markdown", value: "The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."}, attributes: [{name: "src", description: {kind: "markdown", value: 'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xA0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}}, {name: "type", description: {kind: "markdown", value: "The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}}, {name: "sizes", description: 'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}, {name: "srcset", description: "A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."}, {name: "media", description: '[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/source"}]}, {name: "track", description: {kind: "markdown", value: "The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."}, attributes: [{name: "default", valueSet: "v", description: {kind: "markdown", value: "This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}}, {name: "kind", valueSet: "tk", description: {kind: "markdown", value: "How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xA0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}}, {name: "label", description: {kind: "markdown", value: "A user-readable title of the text track which is used by the browser when listing available text tracks."}}, {name: "src", description: {kind: "markdown", value: 'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xA0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}}, {name: "srclang", description: {kind: "markdown", value: "Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xA0`subtitles,` then `srclang` must be defined."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/track"}]}, {name: "map", description: {kind: "markdown", value: "The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."}, attributes: [{name: "name", description: {kind: "markdown", value: "The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/map"}]}, {name: "area", description: {kind: "markdown", value: "The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."}, attributes: [{name: "alt"}, {name: "coords"}, {name: "shape", valueSet: "sh"}, {name: "href"}, {name: "target"}, {name: "download"}, {name: "ping"}, {name: "rel"}, {name: "hreflang"}, {name: "type"}, {name: "accesskey", description: "Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/area"}]}, {name: "table", description: {kind: "markdown", value: "The table element represents data with more than one dimension, in the form of a table."}, attributes: [{name: "border"}, {name: "align", description: 'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/table"}]}, {name: "caption", description: {kind: "markdown", value: "The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."}, attributes: [{name: "align", description: 'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]}, {name: "colgroup", description: {kind: "markdown", value: "The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."}, attributes: [{name: "span"}, {name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]}, {name: "col", description: {kind: "markdown", value: "If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."}, attributes: [{name: "span"}, {name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/col"}]}, {name: "tbody", description: {kind: "markdown", value: "The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]}, {name: "thead", description: {kind: "markdown", value: "The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]}, {name: "tfoot", description: {kind: "markdown", value: "The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]}, {name: "tr", description: {kind: "markdown", value: "The tr element represents a row of cells in a table."}, attributes: [{name: "align", description: 'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]}, {name: "td", description: {kind: "markdown", value: "The td element represents a data cell in a table."}, attributes: [{name: "colspan"}, {name: "rowspan"}, {name: "headers"}, {name: "abbr", description: "This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."}, {name: "align", description: 'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'}, {name: "axis", description: "This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."}, {name: "bgcolor", description: 'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xA0\n\n`black` = "#000000"\n\n\xA0\n\n`green` = "#008000"\n\n\xA0\n\n`silver` = "#C0C0C0"\n\n\xA0\n\n`lime` = "#00FF00"\n\n\xA0\n\n`gray` = "#808080"\n\n\xA0\n\n`olive` = "#808000"\n\n\xA0\n\n`white` = "#FFFFFF"\n\n\xA0\n\n`yellow` = "#FFFF00"\n\n\xA0\n\n`maroon` = "#800000"\n\n\xA0\n\n`navy` = "#000080"\n\n\xA0\n\n`red` = "#FF0000"\n\n\xA0\n\n`blue` = "#0000FF"\n\n\xA0\n\n`purple` = "#800080"\n\n\xA0\n\n`teal` = "#008080"\n\n\xA0\n\n`fuchsia` = "#FF00FF"\n\n\xA0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/td"}]}, {name: "th", description: {kind: "markdown", value: "The th element represents a header cell in a table."}, attributes: [{name: "colspan"}, {name: "rowspan"}, {name: "headers"}, {name: "scope", valueSet: "s"}, {name: "sorted"}, {name: "abbr", description: {kind: "markdown", value: "This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}}, {name: "align", description: 'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'}, {name: "axis", description: "This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."}, {name: "bgcolor", description: 'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xA0\n\n`black` = "#000000"\n\n\xA0\n\n`green` = "#008000"\n\n\xA0\n\n`silver` = "#C0C0C0"\n\n\xA0\n\n`lime` = "#00FF00"\n\n\xA0\n\n`gray` = "#808080"\n\n\xA0\n\n`olive` = "#808000"\n\n\xA0\n\n`white` = "#FFFFFF"\n\n\xA0\n\n`yellow` = "#FFFF00"\n\n\xA0\n\n`maroon` = "#800000"\n\n\xA0\n\n`navy` = "#000080"\n\n\xA0\n\n`red` = "#FF0000"\n\n\xA0\n\n`blue` = "#0000FF"\n\n\xA0\n\n`purple` = "#800080"\n\n\xA0\n\n`teal` = "#008080"\n\n\xA0\n\n`fuchsia` = "#FF00FF"\n\n\xA0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/th"}]}, {name: "form", description: {kind: "markdown", value: "The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."}, attributes: [{name: "accept-charset", description: {kind: "markdown", value: 'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}}, {name: "action", description: {kind: "markdown", value: 'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "autocomplete", valueSet: "o", description: {kind: "markdown", value: "Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields)."}}, {name: "enctype", valueSet: "et", description: {kind: "markdown", value: 'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "method", valueSet: "m", description: {kind: "markdown", value: 'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xA0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "name", description: {kind: "markdown", value: "The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}}, {name: "novalidate", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}}, {name: "target", description: {kind: "markdown", value: 'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "accept", description: 'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}, {name: "autocapitalize", description: "This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/form"}]}, {name: "label", description: {kind: "markdown", value: "The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."}, attributes: [{name: "form", description: {kind: "markdown", value: 'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "for", description: {kind: "markdown", value: "The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xA0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/label"}]}, {name: "input", description: {kind: "markdown", value: "The input element represents a typed data field, usually with a form control to allow the user to edit the data."}, attributes: [{name: "accept"}, {name: "alt"}, {name: "autocomplete", valueSet: "inputautocomplete"}, {name: "autofocus", valueSet: "v"}, {name: "checked", valueSet: "v"}, {name: "dirname"}, {name: "disabled", valueSet: "v"}, {name: "form"}, {name: "formaction"}, {name: "formenctype", valueSet: "et"}, {name: "formmethod", valueSet: "fm"}, {name: "formnovalidate", valueSet: "v"}, {name: "formtarget"}, {name: "height"}, {name: "inputmode", valueSet: "im"}, {name: "list"}, {name: "max"}, {name: "maxlength"}, {name: "min"}, {name: "minlength"}, {name: "multiple", valueSet: "v"}, {name: "name"}, {name: "pattern"}, {name: "placeholder"}, {name: "readonly", valueSet: "v"}, {name: "required", valueSet: "v"}, {name: "size"}, {name: "src"}, {name: "step"}, {name: "type", valueSet: "t"}, {name: "value"}, {name: "width"}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/input"}]}, {name: "button", description: {kind: "markdown", value: "The button element represents a button labeled by its contents."}, attributes: [{name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}}, {name: "form", description: {kind: "markdown", value: 'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}}, {name: "formaction", description: {kind: "markdown", value: "The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}}, {name: "formenctype", valueSet: "et", description: {kind: "markdown", value: 'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}}, {name: "formmethod", valueSet: "fm", description: {kind: "markdown", value: "If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}}, {name: "formnovalidate", valueSet: "v", description: {kind: "markdown", value: "If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}}, {name: "formtarget", description: {kind: "markdown", value: "If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}}, {name: "name", description: {kind: "markdown", value: "The name of the button, which is submitted with the form data."}}, {name: "type", valueSet: "bt", description: {kind: "markdown", value: "The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}}, {name: "value", description: {kind: "markdown", value: "The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}}, {name: "autocomplete", description: 'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xA0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/button"}]}, {name: "select", description: {kind: "markdown", value: "The select element represents a control for selecting amongst a set of options."}, attributes: [{name: "autocomplete", valueSet: "inputautocomplete", description: {kind: "markdown", value: 'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}}, {name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}}, {name: "form", description: {kind: "markdown", value: 'This attribute lets you specify the form element to\xA0which\xA0the select element is associated\xA0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "multiple", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}}, {name: "name", description: {kind: "markdown", value: "This attribute is used to specify the name of the control."}}, {name: "required", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute indicating that an option with a non-empty string value must be selected."}}, {name: "size", description: {kind: "markdown", value: "If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/select"}]}, {name: "datalist", description: {kind: "markdown", value: "The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]}, {name: "optgroup", description: {kind: "markdown", value: "The optgroup element represents a group of option elements with a common label."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: "If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}}, {name: "label", description: {kind: "markdown", value: "The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]}, {name: "option", description: {kind: "markdown", value: "The option element represents an option in a select element or as part of a list of suggestions in a datalist element."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}}, {name: "label", description: {kind: "markdown", value: "This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}}, {name: "selected", valueSet: "v", description: {kind: "markdown", value: 'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}}, {name: "value", description: {kind: "markdown", value: "The content of this attribute represents the value to be submitted with the form, should this option be selected.\xA0If this attribute is omitted, the value is taken from the text content of the option element."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/option"}]}, {name: "textarea", description: {kind: "markdown", value: "The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."}, attributes: [{name: "autocomplete", valueSet: "inputautocomplete", description: {kind: "markdown", value: 'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}}, {name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}}, {name: "cols", description: {kind: "markdown", value: "The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}}, {name: "dirname"}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}}, {name: "form", description: {kind: "markdown", value: 'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}}, {name: "inputmode", valueSet: "im"}, {name: "maxlength", description: {kind: "markdown", value: "The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}}, {name: "minlength", description: {kind: "markdown", value: "The minimum number of characters (unicode code points) required that the user should enter."}}, {name: "name", description: {kind: "markdown", value: "The name of the control."}}, {name: "placeholder", description: {kind: "markdown", value: 'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}}, {name: "readonly", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}}, {name: "required", valueSet: "v", description: {kind: "markdown", value: "This attribute specifies that the user must fill in a value before submitting a form."}}, {name: "rows", description: {kind: "markdown", value: "The number of visible text lines for the control."}}, {name: "wrap", valueSet: "w", description: {kind: "markdown", value: "Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}}, {name: "autocapitalize", description: "This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}, {name: "spellcheck", description: "Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]}, {name: "output", description: {kind: "markdown", value: "The output element represents the result of a calculation performed by the application, or the result of a user action."}, attributes: [{name: "for", description: {kind: "markdown", value: "A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}}, {name: "form", description: {kind: "markdown", value: 'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "name", description: {kind: "markdown", value: 'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/output"}]}, {name: "progress", description: {kind: "markdown", value: "The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."}, attributes: [{name: "value", description: {kind: "markdown", value: "This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}}, {name: "max", description: {kind: "markdown", value: "This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]}, {name: "meter", description: {kind: "markdown", value: "The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."}, attributes: [{name: "value", description: {kind: "markdown", value: "The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}}, {name: "min", description: {kind: "markdown", value: "The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}}, {name: "max", description: {kind: "markdown", value: "The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}}, {name: "low", description: {kind: "markdown", value: "The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}}, {name: "high", description: {kind: "markdown", value: "The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}}, {name: "optimum", description: {kind: "markdown", value: "This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}}, {name: "form", description: "This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]}, {name: "fieldset", description: {kind: "markdown", value: "The fieldset element represents a set of form controls optionally grouped under a common name."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: "If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}}, {name: "form", description: {kind: "markdown", value: 'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}}, {name: "name", description: {kind: "markdown", value: 'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]}, {name: "legend", description: {kind: "markdown", value: "The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]}, {name: "details", description: {kind: "markdown", value: "The details element represents a disclosure widget from which the user can obtain additional information or controls."}, attributes: [{name: "open", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/details"}]}, {name: "summary", description: {kind: "markdown", value: "The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]}, {name: "dialog", description: {kind: "markdown", value: "The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."}, attributes: [{name: "open", description: "Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]}, {name: "script", description: {kind: "markdown", value: "The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."}, attributes: [{name: "src", description: {kind: "markdown", value: "This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}}, {name: "type", description: {kind: "markdown", value: 'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xA01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}}, {name: "charset"}, {name: "async", valueSet: "v", description: {kind: "markdown", value: 'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}}, {name: "defer", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}}, {name: "nonce", description: {kind: "markdown", value: "A cryptographic nonce (number used once) to whitelist inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}}, {name: "integrity", description: "This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."}, {name: "nomodule", description: "This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."}, {name: "referrerpolicy", description: 'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xA0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'}, {name: "text", description: "Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/script"}]}, {name: "noscript", description: {kind: "markdown", value: "The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]}, {name: "template", description: {kind: "markdown", value: "The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/template"}]}, {name: "canvas", description: {kind: "markdown", value: "The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."}, attributes: [{name: "width", description: {kind: "markdown", value: "The width of the coordinate space in CSS pixels. Defaults to 300."}}, {name: "height", description: {kind: "markdown", value: "The height of the coordinate space in CSS pixels. Defaults to 150."}}, {name: "moz-opaque", description: "Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]}], globalAttributes: [{name: "accesskey", description: {kind: "markdown", value: "Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]}, {name: "autocapitalize", description: {kind: "markdown", value: "Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]}, {name: "class", description: {kind: "markdown", value: 'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](/en-US/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](/en-US/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]}, {name: "contenteditable", description: {kind: "markdown", value: "An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]}, {name: "contextmenu", description: {kind: "markdown", value: 'The `[**id**](#attr-id)` of a [`<menu>`](/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]}, {name: "dir", description: {kind: "markdown", value: "An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."}, valueSet: "d", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]}, {name: "draggable", description: {kind: "markdown", value: "An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](/en-us/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."}, valueSet: "b", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]}, {name: "dropzone", description: {kind: "markdown", value: "An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](/en-US/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dropzone"}]}, {name: "exportparts", description: {kind: "markdown", value: "Used to transitively export shadow parts from a nested shadow tree into a containing light tree."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]}, {name: "hidden", description: {kind: "markdown", value: "A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."}, valueSet: "v", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]}, {name: "id", description: {kind: "markdown", value: "Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]}, {name: "inputmode", description: {kind: "markdown", value: 'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](/en-US/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]}, {name: "is", description: {kind: "markdown", value: "Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](/en-US/docs/Web/Web_Components/Using_custom_elements) for more details)."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]}, {name: "itemid", description: {kind: "markdown", value: "The unique, global identifier of an item."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]}, {name: "itemprop", description: {kind: "markdown", value: "Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]}, {name: "itemref", description: {kind: "markdown", value: "Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]}, {name: "itemscope", description: {kind: "markdown", value: "`itemscope` (usually) works along with `[itemtype](/en-US/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."}, valueSet: "v", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]}, {name: "itemtype", description: {kind: "markdown", value: "Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](/en-US/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]}, {name: "lang", description: {kind: "markdown", value: "Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201Clanguage tag\u201D (made of hyphen-separated \u201Clanguage subtags\u201D) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]}, {name: "part", description: {kind: "markdown", value: 'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](/en-US/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]}, {name: "role", valueSet: "roles"}, {name: "slot", description: {kind: "markdown", value: "Assigns a slot in a [shadow DOM](/en-US/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](/en-US/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](/en-US/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]}, {name: "spellcheck", description: {kind: "markdown", value: "An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."}, valueSet: "b", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]}, {name: "style", description: {kind: "markdown", value: 'Contains [CSS](/en-US/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](/en-US/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]}, {name: "tabindex", description: {kind: "markdown", value: "An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]}, {name: "title", description: {kind: "markdown", value: "Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]}, {name: "translate", description: {kind: "markdown", value: "An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."}, valueSet: "y", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]}, {name: "onabort", description: {kind: "markdown", value: "The loading of a resource has been aborted."}}, {name: "onblur", description: {kind: "markdown", value: "An element has lost focus (does not bubble)."}}, {name: "oncanplay", description: {kind: "markdown", value: "The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}}, {name: "oncanplaythrough", description: {kind: "markdown", value: "The user agent can play the media up to its end without having to stop for further buffering of content."}}, {name: "onchange", description: {kind: "markdown", value: "The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}}, {name: "onclick", description: {kind: "markdown", value: "A pointing device button has been pressed and released on an element."}}, {name: "oncontextmenu", description: {kind: "markdown", value: "The right button of the mouse is clicked (before the context menu is displayed)."}}, {name: "ondblclick", description: {kind: "markdown", value: "A pointing device button is clicked twice on an element."}}, {name: "ondrag", description: {kind: "markdown", value: "An element or text selection is being dragged (every 350ms)."}}, {name: "ondragend", description: {kind: "markdown", value: "A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}}, {name: "ondragenter", description: {kind: "markdown", value: "A dragged element or text selection enters a valid drop target."}}, {name: "ondragleave", description: {kind: "markdown", value: "A dragged element or text selection leaves a valid drop target."}}, {name: "ondragover", description: {kind: "markdown", value: "An element or text selection is being dragged over a valid drop target (every 350ms)."}}, {name: "ondragstart", description: {kind: "markdown", value: "The user starts dragging an element or text selection."}}, {name: "ondrop", description: {kind: "markdown", value: "An element is dropped on a valid drop target."}}, {name: "ondurationchange", description: {kind: "markdown", value: "The duration attribute has been updated."}}, {name: "onemptied", description: {kind: "markdown", value: "The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}}, {name: "onended", description: {kind: "markdown", value: "Playback has stopped because the end of the media was reached."}}, {name: "onerror", description: {kind: "markdown", value: "A resource failed to load."}}, {name: "onfocus", description: {kind: "markdown", value: "An element has received focus (does not bubble)."}}, {name: "onformchange"}, {name: "onforminput"}, {name: "oninput", description: {kind: "markdown", value: "The value of an element changes or the content of an element with the attribute contenteditable is modified."}}, {name: "oninvalid", description: {kind: "markdown", value: "A submittable element has been checked and doesn't satisfy its constraints."}}, {name: "onkeydown", description: {kind: "markdown", value: "A key is pressed down."}}, {name: "onkeypress", description: {kind: "markdown", value: "A key is pressed down and that key normally produces a character value (use input instead)."}}, {name: "onkeyup", description: {kind: "markdown", value: "A key is released."}}, {name: "onload", description: {kind: "markdown", value: "A resource and its dependent resources have finished loading."}}, {name: "onloadeddata", description: {kind: "markdown", value: "The first frame of the media has finished loading."}}, {name: "onloadedmetadata", description: {kind: "markdown", value: "The metadata has been loaded."}}, {name: "onloadstart", description: {kind: "markdown", value: "Progress has begun."}}, {name: "onmousedown", description: {kind: "markdown", value: "A pointing device button (usually a mouse) is pressed on an element."}}, {name: "onmousemove", description: {kind: "markdown", value: "A pointing device is moved over an element."}}, {name: "onmouseout", description: {kind: "markdown", value: "A pointing device is moved off the element that has the listener attached or off one of its children."}}, {name: "onmouseover", description: {kind: "markdown", value: "A pointing device is moved onto the element that has the listener attached or onto one of its children."}}, {name: "onmouseup", description: {kind: "markdown", value: "A pointing device button is released over an element."}}, {name: "onmousewheel"}, {name: "onpause", description: {kind: "markdown", value: "Playback has been paused."}}, {name: "onplay", description: {kind: "markdown", value: "Playback has begun."}}, {name: "onplaying", description: {kind: "markdown", value: "Playback is ready to start after having been paused or delayed due to lack of data."}}, {name: "onprogress", description: {kind: "markdown", value: "In progress."}}, {name: "onratechange", description: {kind: "markdown", value: "The playback rate has changed."}}, {name: "onreset", description: {kind: "markdown", value: "A form is reset."}}, {name: "onresize", description: {kind: "markdown", value: "The document view has been resized."}}, {name: "onreadystatechange", description: {kind: "markdown", value: "The readyState attribute of a document has changed."}}, {name: "onscroll", description: {kind: "markdown", value: "The document view or an element has been scrolled."}}, {name: "onseeked", description: {kind: "markdown", value: "A seek operation completed."}}, {name: "onseeking", description: {kind: "markdown", value: "A seek operation began."}}, {name: "onselect", description: {kind: "markdown", value: "Some text is being selected."}}, {name: "onshow", description: {kind: "markdown", value: "A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}}, {name: "onstalled", description: {kind: "markdown", value: "The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}}, {name: "onsubmit", description: {kind: "markdown", value: "A form is submitted."}}, {name: "onsuspend", description: {kind: "markdown", value: "Media data loading has been suspended."}}, {name: "ontimeupdate", description: {kind: "markdown", value: "The time indicated by the currentTime attribute has been updated."}}, {name: "onvolumechange", description: {kind: "markdown", value: "The volume has changed."}}, {name: "onwaiting", description: {kind: "markdown", value: "Playback has stopped because of a temporary lack of data."}}, {name: "aria-activedescendant", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}], description: {kind: "markdown", value: "Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}}, {name: "aria-atomic", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}], description: {kind: "markdown", value: "Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}}, {name: "aria-autocomplete", valueSet: "autocomplete", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}], description: {kind: "markdown", value: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}}, {name: "aria-busy", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}], description: {kind: "markdown", value: "Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}}, {name: "aria-checked", valueSet: "tristate", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}], description: {kind: "markdown", value: 'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}}, {name: "aria-colcount", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}], description: {kind: "markdown", value: "Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}}, {name: "aria-colindex", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}], description: {kind: "markdown", value: "Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}}, {name: "aria-colspan", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}], description: {kind: "markdown", value: "Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}}, {name: "aria-controls", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}}, {name: "aria-current", valueSet: "current", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-current"}], description: {kind: "markdown", value: "Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}}, {name: "aria-describedat", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-describedat"}]}, {name: "aria-describedby", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}}, {name: "aria-disabled", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}], description: {kind: "markdown", value: "Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}}, {name: "aria-dropeffect", valueSet: "dropeffect", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}], description: {kind: "markdown", value: "\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}}, {name: "aria-errormessage", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-expanded", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}], description: {kind: "markdown", value: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}}, {name: "aria-flowto", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}], description: {kind: "markdown", value: "Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}}, {name: "aria-grabbed", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}], description: {kind: "markdown", value: `\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}}, {name: "aria-haspopup", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}], description: {kind: "markdown", value: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}}, {name: "aria-hidden", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}], description: {kind: "markdown", value: "Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}}, {name: "aria-invalid", valueSet: "invalid", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}], description: {kind: "markdown", value: "Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}}, {name: "aria-kbdshortcuts", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-kbdshortcuts"}]}, {name: "aria-label", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-label"}], description: {kind: "markdown", value: "Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}}, {name: "aria-labelledby", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-level", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-level"}], description: {kind: "markdown", value: "Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}}, {name: "aria-live", valueSet: "live", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-live"}], description: {kind: "markdown", value: "Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}}, {name: "aria-modal", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}], description: {kind: "markdown", value: "Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}}, {name: "aria-multiline", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}], description: {kind: "markdown", value: "Indicates whether a text box accepts multiple lines of input or only a single line."}}, {name: "aria-multiselectable", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}], description: {kind: "markdown", value: "Indicates that the user may select more than one item from the current selectable descendants."}}, {name: "aria-orientation", valueSet: "orientation", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}], description: {kind: "markdown", value: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}}, {name: "aria-owns", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}], description: {kind: "markdown", value: "Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}}, {name: "aria-placeholder", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}], description: {kind: "markdown", value: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}}, {name: "aria-posinset", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}], description: {kind: "markdown", value: "Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}}, {name: "aria-pressed", valueSet: "tristate", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}], description: {kind: "markdown", value: 'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}}, {name: "aria-readonly", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}], description: {kind: "markdown", value: "Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}}, {name: "aria-relevant", valueSet: "relevant", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}], description: {kind: "markdown", value: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}}, {name: "aria-required", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-required"}], description: {kind: "markdown", value: "Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}}, {name: "aria-roledescription", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}], description: {kind: "markdown", value: "Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}}, {name: "aria-rowcount", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}], description: {kind: "markdown", value: "Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}}, {name: "aria-rowindex", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}], description: {kind: "markdown", value: "Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}}, {name: "aria-rowspan", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}], description: {kind: "markdown", value: "Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}}, {name: "aria-selected", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}], description: {kind: "markdown", value: 'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}}, {name: "aria-setsize", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}], description: {kind: "markdown", value: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}}, {name: "aria-sort", valueSet: "sort", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}], description: {kind: "markdown", value: "Indicates if items in a table or grid are sorted in ascending or descending order."}}, {name: "aria-valuemax", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}], description: {kind: "markdown", value: "Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-valuemin", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}], description: {kind: "markdown", value: "Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-valuenow", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}], description: {kind: "markdown", value: "Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}}, {name: "aria-valuetext", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}], description: {kind: "markdown", value: "Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-details", description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-keyshortcuts", description: {kind: "markdown", value: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}], valueSets: [{name: "b", values: [{name: "true"}, {name: "false"}]}, {name: "u", values: [{name: "true"}, {name: "false"}, {name: "undefined"}]}, {name: "o", values: [{name: "on"}, {name: "off"}]}, {name: "y", values: [{name: "yes"}, {name: "no"}]}, {name: "w", values: [{name: "soft"}, {name: "hard"}]}, {name: "d", values: [{name: "ltr"}, {name: "rtl"}, {name: "auto"}]}, {name: "m", values: [{name: "GET", description: {kind: "markdown", value: "Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}}, {name: "POST", description: {kind: "markdown", value: "Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}}, {name: "dialog", description: {kind: "markdown", value: "Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]}, {name: "fm", values: [{name: "GET"}, {name: "POST"}]}, {name: "s", values: [{name: "row"}, {name: "col"}, {name: "rowgroup"}, {name: "colgroup"}]}, {name: "t", values: [{name: "hidden"}, {name: "text"}, {name: "search"}, {name: "tel"}, {name: "url"}, {name: "email"}, {name: "password"}, {name: "datetime"}, {name: "date"}, {name: "month"}, {name: "week"}, {name: "time"}, {name: "datetime-local"}, {name: "number"}, {name: "range"}, {name: "color"}, {name: "checkbox"}, {name: "radio"}, {name: "file"}, {name: "submit"}, {name: "image"}, {name: "reset"}, {name: "button"}]}, {name: "im", values: [{name: "verbatim"}, {name: "latin"}, {name: "latin-name"}, {name: "latin-prose"}, {name: "full-width-latin"}, {name: "kana"}, {name: "kana-name"}, {name: "katakana"}, {name: "numeric"}, {name: "tel"}, {name: "email"}, {name: "url"}]}, {name: "bt", values: [{name: "button"}, {name: "submit"}, {name: "reset"}, {name: "menu"}]}, {name: "lt", values: [{name: "1"}, {name: "a"}, {name: "A"}, {name: "i"}, {name: "I"}]}, {name: "mt", values: [{name: "context"}, {name: "toolbar"}]}, {name: "mit", values: [{name: "command"}, {name: "checkbox"}, {name: "radio"}]}, {name: "et", values: [{name: "application/x-www-form-urlencoded"}, {name: "multipart/form-data"}, {name: "text/plain"}]}, {name: "tk", values: [{name: "subtitles"}, {name: "captions"}, {name: "descriptions"}, {name: "chapters"}, {name: "metadata"}]}, {name: "pl", values: [{name: "none"}, {name: "metadata"}, {name: "auto"}]}, {name: "sh", values: [{name: "circle"}, {name: "default"}, {name: "poly"}, {name: "rect"}]}, {name: "xo", values: [{name: "anonymous"}, {name: "use-credentials"}]}, {name: "sb", values: [{name: "allow-forms"}, {name: "allow-modals"}, {name: "allow-pointer-lock"}, {name: "allow-popups"}, {name: "allow-popups-to-escape-sandbox"}, {name: "allow-same-origin"}, {name: "allow-scripts"}, {name: "allow-top-navigation"}]}, {name: "tristate", values: [{name: "true"}, {name: "false"}, {name: "mixed"}, {name: "undefined"}]}, {name: "inputautocomplete", values: [{name: "additional-name"}, {name: "address-level1"}, {name: "address-level2"}, {name: "address-level3"}, {name: "address-level4"}, {name: "address-line1"}, {name: "address-line2"}, {name: "address-line3"}, {name: "bday"}, {name: "bday-year"}, {name: "bday-day"}, {name: "bday-month"}, {name: "billing"}, {name: "cc-additional-name"}, {name: "cc-csc"}, {name: "cc-exp"}, {name: "cc-exp-month"}, {name: "cc-exp-year"}, {name: "cc-family-name"}, {name: "cc-given-name"}, {name: "cc-name"}, {name: "cc-number"}, {name: "cc-type"}, {name: "country"}, {name: "country-name"}, {name: "current-password"}, {name: "email"}, {name: "family-name"}, {name: "fax"}, {name: "given-name"}, {name: "home"}, {name: "honorific-prefix"}, {name: "honorific-suffix"}, {name: "impp"}, {name: "language"}, {name: "mobile"}, {name: "name"}, {name: "new-password"}, {name: "nickname"}, {name: "organization"}, {name: "organization-title"}, {name: "pager"}, {name: "photo"}, {name: "postal-code"}, {name: "sex"}, {name: "shipping"}, {name: "street-address"}, {name: "tel-area-code"}, {name: "tel"}, {name: "tel-country-code"}, {name: "tel-extension"}, {name: "tel-local"}, {name: "tel-local-prefix"}, {name: "tel-local-suffix"}, {name: "tel-national"}, {name: "transaction-amount"}, {name: "transaction-currency"}, {name: "url"}, {name: "username"}, {name: "work"}]}, {name: "autocomplete", values: [{name: "inline"}, {name: "list"}, {name: "both"}, {name: "none"}]}, {name: "current", values: [{name: "page"}, {name: "step"}, {name: "location"}, {name: "date"}, {name: "time"}, {name: "true"}, {name: "false"}]}, {name: "dropeffect", values: [{name: "copy"}, {name: "move"}, {name: "link"}, {name: "execute"}, {name: "popup"}, {name: "none"}]}, {name: "invalid", values: [{name: "grammar"}, {name: "false"}, {name: "spelling"}, {name: "true"}]}, {name: "live", values: [{name: "off"}, {name: "polite"}, {name: "assertive"}]}, {name: "orientation", values: [{name: "vertical"}, {name: "horizontal"}, {name: "undefined"}]}, {name: "relevant", values: [{name: "additions"}, {name: "removals"}, {name: "text"}, {name: "all"}, {name: "additions text"}]}, {name: "sort", values: [{name: "ascending"}, {name: "descending"}, {name: "none"}, {name: "other"}]}, {name: "roles", values: [{name: "alert"}, {name: "alertdialog"}, {name: "button"}, {name: "checkbox"}, {name: "dialog"}, {name: "gridcell"}, {name: "link"}, {name: "log"}, {name: "marquee"}, {name: "menuitem"}, {name: "menuitemcheckbox"}, {name: "menuitemradio"}, {name: "option"}, {name: "progressbar"}, {name: "radio"}, {name: "scrollbar"}, {name: "searchbox"}, {name: "slider"}, {name: "spinbutton"}, {name: "status"}, {name: "switch"}, {name: "tab"}, {name: "tabpanel"}, {name: "textbox"}, {name: "timer"}, {name: "tooltip"}, {name: "treeitem"}, {name: "combobox"}, {name: "grid"}, {name: "listbox"}, {name: "menu"}, {name: "menubar"}, {name: "radiogroup"}, {name: "tablist"}, {name: "tree"}, {name: "treegrid"}, {name: "application"}, {name: "article"}, {name: "cell"}, {name: "columnheader"}, {name: "definition"}, {name: "directory"}, {name: "document"}, {name: "feed"}, {name: "figure"}, {name: "group"}, {name: "heading"}, {name: "img"}, {name: "list"}, {name: "listitem"}, {name: "math"}, {name: "none"}, {name: "note"}, {name: "presentation"}, {name: "region"}, {name: "row"}, {name: "rowgroup"}, {name: "rowheader"}, {name: "separator"}, {name: "table"}, {name: "term"}, {name: "text"}, {name: "toolbar"}, {name: "banner"}, {name: "complementary"}, {name: "contentinfo"}, {name: "form"}, {name: "main"}, {name: "navigation"}, {name: "region"}, {name: "search"}, {name: "doc-abstract"}, {name: "doc-acknowledgments"}, {name: "doc-afterword"}, {name: "doc-appendix"}, {name: "doc-backlink"}, {name: "doc-biblioentry"}, {name: "doc-bibliography"}, {name: "doc-biblioref"}, {name: "doc-chapter"}, {name: "doc-colophon"}, {name: "doc-conclusion"}, {name: "doc-cover"}, {name: "doc-credit"}, {name: "doc-credits"}, {name: "doc-dedication"}, {name: "doc-endnote"}, {name: "doc-endnotes"}, {name: "doc-epigraph"}, {name: "doc-epilogue"}, {name: "doc-errata"}, {name: "doc-example"}, {name: "doc-footnote"}, {name: "doc-foreword"}, {name: "doc-glossary"}, {name: "doc-glossref"}, {name: "doc-index"}, {name: "doc-introduction"}, {name: "doc-noteref"}, {name: "doc-notice"}, {name: "doc-pagebreak"}, {name: "doc-pagelist"}, {name: "doc-part"}, {name: "doc-preface"}, {name: "doc-prologue"}, {name: "doc-pullquote"}, {name: "doc-qna"}, {name: "doc-subtitle"}, {name: "doc-tip"}, {name: "doc-toc"}]}, {name: "metanames", values: [{name: "application-name"}, {name: "author"}, {name: "description"}, {name: "format-detection"}, {name: "generator"}, {name: "keywords"}, {name: "publisher"}, {name: "referrer"}, {name: "robots"}, {name: "theme-color"}, {name: "viewport"}]}]}, At = function() { + var Ot = {version: 1.1, tags: [{name: "html", description: {kind: "markdown", value: "The html element represents the root of an HTML document."}, attributes: [{name: "manifest", description: {kind: "markdown", value: "Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}}, {name: "version", description: 'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'}, {name: "xmlns", description: 'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/html"}]}, {name: "head", description: {kind: "markdown", value: "The head element represents a collection of metadata for the Document."}, attributes: [{name: "profile", description: "The URIs of one or more metadata profiles, separated by white space."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/head"}]}, {name: "title", description: {kind: "markdown", value: "The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/title"}]}, {name: "base", description: {kind: "markdown", value: "The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."}, attributes: [{name: "href", description: {kind: "markdown", value: "The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}}, {name: "target", description: {kind: "markdown", value: "A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/base"}]}, {name: "link", description: {kind: "markdown", value: "The link element allows authors to link their document to other resources."}, attributes: [{name: "href", description: {kind: "markdown", value: 'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}}, {name: "rel", description: {kind: "markdown", value: "This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}}, {name: "media", description: {kind: "markdown", value: "This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}}, {name: "hreflang", description: {kind: "markdown", value: "This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}}, {name: "type", description: {kind: "markdown", value: 'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}}, {name: "sizes", description: {kind: "markdown", value: "This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}}, {name: "as", description: 'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'}, {name: "importance", description: "Indicates the relative importance of the resource. Priority hints are delegated using the values:"}, {name: "importance", description: '**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'}, {name: "integrity", description: "Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."}, {name: "referrerpolicy", description: 'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'}, {name: "title", description: 'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/link"}]}, {name: "meta", description: {kind: "markdown", value: "The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."}, attributes: [{name: "name", description: {kind: "markdown", value: 'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xA0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}}, {name: "http-equiv", description: {kind: "markdown", value: 'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}}, {name: "content", description: {kind: "markdown", value: "This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}}, {name: "charset", description: {kind: "markdown", value: 'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xA0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}}, {name: "scheme", description: "This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]}, {name: "style", description: {kind: "markdown", value: "The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."}, attributes: [{name: "media", description: {kind: "markdown", value: "This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}}, {name: "nonce", description: {kind: "markdown", value: "A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}}, {name: "type", description: {kind: "markdown", value: "This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}}, {name: "scoped", valueSet: "v"}, {name: "title", description: "This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/style"}]}, {name: "body", description: {kind: "markdown", value: "The body element represents the content of the document."}, attributes: [{name: "onafterprint", description: {kind: "markdown", value: "Function to call after the user has printed the document."}}, {name: "onbeforeprint", description: {kind: "markdown", value: "Function to call when the user requests printing of the document."}}, {name: "onbeforeunload", description: {kind: "markdown", value: "Function to call when the document is about to be unloaded."}}, {name: "onhashchange", description: {kind: "markdown", value: "Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}}, {name: "onlanguagechange", description: {kind: "markdown", value: "Function to call when the preferred languages changed."}}, {name: "onmessage", description: {kind: "markdown", value: "Function to call when the document has received a message."}}, {name: "onoffline", description: {kind: "markdown", value: "Function to call when network communication has failed."}}, {name: "ononline", description: {kind: "markdown", value: "Function to call when network communication has been restored."}}, {name: "onpagehide"}, {name: "onpageshow"}, {name: "onpopstate", description: {kind: "markdown", value: "Function to call when the user has navigated session history."}}, {name: "onstorage", description: {kind: "markdown", value: "Function to call when the storage area has changed."}}, {name: "onunload", description: {kind: "markdown", value: "Function to call when the document is going away."}}, {name: "alink", description: 'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'}, {name: "background", description: 'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'}, {name: "bgcolor", description: 'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'}, {name: "bottommargin", description: 'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "leftmargin", description: 'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "link", description: 'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'}, {name: "onblur", description: "Function to call when the document loses focus."}, {name: "onerror", description: "Function to call when the document fails to load properly."}, {name: "onfocus", description: "Function to call when the document receives focus."}, {name: "onload", description: "Function to call when the document has finished loading."}, {name: "onredo", description: "Function to call when the user has moved forward in undo transaction history."}, {name: "onresize", description: "Function to call when the document has been resized."}, {name: "onundo", description: "Function to call when the user has moved backward in undo transaction history."}, {name: "rightmargin", description: 'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "text", description: 'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'}, {name: "topmargin", description: 'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'}, {name: "vlink", description: 'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/body"}]}, {name: "article", description: {kind: "markdown", value: "The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/article"}]}, {name: "section", description: {kind: "markdown", value: "The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/section"}]}, {name: "nav", description: {kind: "markdown", value: "The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]}, {name: "aside", description: {kind: "markdown", value: "The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]}, {name: "h1", description: {kind: "markdown", value: "The h1 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h2", description: {kind: "markdown", value: "The h2 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h3", description: {kind: "markdown", value: "The h3 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h4", description: {kind: "markdown", value: "The h4 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h5", description: {kind: "markdown", value: "The h5 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "h6", description: {kind: "markdown", value: "The h6 element represents a section heading."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]}, {name: "header", description: {kind: "markdown", value: "The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/header"}]}, {name: "footer", description: {kind: "markdown", value: "The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]}, {name: "address", description: {kind: "markdown", value: "The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/address"}]}, {name: "p", description: {kind: "markdown", value: "The p element represents a paragraph."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/p"}]}, {name: "hr", description: {kind: "markdown", value: "The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."}, attributes: [{name: "align", description: "Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."}, {name: "color", description: "Sets the color of the rule through color name or hexadecimal value."}, {name: "noshade", description: "Sets the rule to have no shading."}, {name: "size", description: "Sets the height, in pixels, of the rule."}, {name: "width", description: "Sets the length of the rule on the page through a pixel or percentage value."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]}, {name: "pre", description: {kind: "markdown", value: "The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."}, attributes: [{name: "cols", description: 'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'}, {name: "width", description: 'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'}, {name: "wrap", description: 'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]}, {name: "blockquote", description: {kind: "markdown", value: "The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."}, attributes: [{name: "cite", description: {kind: "markdown", value: "A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]}, {name: "ol", description: {kind: "markdown", value: "The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."}, attributes: [{name: "reversed", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute specifies that the items of the list are specified in reversed order."}}, {name: "start", description: {kind: "markdown", value: 'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}}, {name: "type", valueSet: "lt", description: {kind: "markdown", value: "Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}}, {name: "compact", description: 'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]}, {name: "ul", description: {kind: "markdown", value: "The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."}, attributes: [{name: "compact", description: 'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xA0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]}, {name: "li", description: {kind: "markdown", value: "The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."}, attributes: [{name: "value", description: {kind: "markdown", value: 'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xA09.0, negative values were incorrectly converted to 0. Starting in Gecko\xA09.0 all integer values are correctly parsed.'}}, {name: "type", description: 'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/li"}]}, {name: "dl", description: {kind: "markdown", value: "The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]}, {name: "dt", description: {kind: "markdown", value: "The dt element represents the term, or name, part of a term-description group in a description list (dl element)."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]}, {name: "dd", description: {kind: "markdown", value: "The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."}, attributes: [{name: "nowrap", description: "If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]}, {name: "figure", description: {kind: "markdown", value: "The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]}, {name: "figcaption", description: {kind: "markdown", value: "The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]}, {name: "main", description: {kind: "markdown", value: "The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/main"}]}, {name: "div", description: {kind: "markdown", value: "The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/div"}]}, {name: "a", description: {kind: "markdown", value: "If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."}, attributes: [{name: "href", description: {kind: "markdown", value: "Contains a URL or a URL fragment that the hyperlink points to."}}, {name: "target", description: {kind: "markdown", value: 'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}}, {name: "download", description: {kind: "markdown", value: "This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}}, {name: "ping", description: {kind: "markdown", value: 'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}}, {name: "rel", description: {kind: "markdown", value: "Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}}, {name: "hreflang", description: {kind: "markdown", value: 'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}}, {name: "type", description: {kind: "markdown", value: 'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xA0MIME type\xA0(now properly called "media type", but\xA0also sometimes "content type") is a string sent along\xA0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xA0audio/ogg, or an image file\xA0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}}, {name: "referrerpolicy", description: "Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/a"}]}, {name: "em", description: {kind: "markdown", value: "The em element represents stress emphasis of its contents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/em"}]}, {name: "strong", description: {kind: "markdown", value: "The strong element represents strong importance, seriousness, or urgency for its contents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]}, {name: "small", description: {kind: "markdown", value: "The small element represents side comments such as small print."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/small"}]}, {name: "s", description: {kind: "markdown", value: "The s element represents contents that are no longer accurate or no longer relevant."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/s"}]}, {name: "cite", description: {kind: "markdown", value: "The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]}, {name: "q", description: {kind: "markdown", value: "The q element represents some phrasing content quoted from another source."}, attributes: [{name: "cite", description: {kind: "markdown", value: "The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/q"}]}, {name: "dfn", description: {kind: "markdown", value: "The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]}, {name: "abbr", description: {kind: "markdown", value: "The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]}, {name: "ruby", description: {kind: "markdown", value: "The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]}, {name: "rb", description: {kind: "markdown", value: "The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]}, {name: "rt", description: {kind: "markdown", value: "The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]}, {name: "rp", description: {kind: "markdown", value: "The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]}, {name: "time", description: {kind: "markdown", value: "The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."}, attributes: [{name: "datetime", description: {kind: "markdown", value: "This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/time"}]}, {name: "code", description: {kind: "markdown", value: "The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/code"}]}, {name: "var", description: {kind: "markdown", value: "The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/var"}]}, {name: "samp", description: {kind: "markdown", value: "The samp element represents sample or quoted output from another program or computing system."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]}, {name: "kbd", description: {kind: "markdown", value: "The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]}, {name: "sub", description: {kind: "markdown", value: "The sub element represents a subscript."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]}, {name: "sup", description: {kind: "markdown", value: "The sup element represents a superscript."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]}, {name: "i", description: {kind: "markdown", value: "The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/i"}]}, {name: "b", description: {kind: "markdown", value: "The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/b"}]}, {name: "u", description: {kind: "markdown", value: "The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/u"}]}, {name: "mark", description: {kind: "markdown", value: "The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]}, {name: "bdi", description: {kind: "markdown", value: "The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]}, {name: "bdo", description: {kind: "markdown", value: "The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"}, attributes: [{name: "dir", description: "The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]}, {name: "span", description: {kind: "markdown", value: "The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/span"}]}, {name: "br", description: {kind: "markdown", value: "The br element represents a line break."}, attributes: [{name: "clear", description: "Indicates where to begin the next line after the break."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/br"}]}, {name: "wbr", description: {kind: "markdown", value: "The wbr element represents a line break opportunity."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]}, {name: "ins", description: {kind: "markdown", value: "The ins element represents an addition to the document."}, attributes: [{name: "cite", description: "This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."}, {name: "datetime", description: 'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]}, {name: "del", description: {kind: "markdown", value: "The del element represents a removal from the document."}, attributes: [{name: "cite", description: {kind: "markdown", value: "A URI for a resource that explains the change (for example, meeting minutes)."}}, {name: "datetime", description: {kind: "markdown", value: 'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/del"}]}, {name: "picture", description: {kind: "markdown", value: "The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]}, {name: "img", description: {kind: "markdown", value: "An img element represents an image."}, attributes: [{name: "alt", description: {kind: "markdown", value: 'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}}, {name: "src", description: {kind: "markdown", value: "The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}}, {name: "srcset", description: {kind: "markdown", value: "A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:'}}, {name: "usemap", description: {kind: "markdown", value: 'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}}, {name: "ismap", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}}, {name: "width", description: {kind: "markdown", value: "The intrinsic width of the image in pixels."}}, {name: "height", description: {kind: "markdown", value: "The intrinsic height of the image in pixels."}}, {name: "decoding", description: "Provides an image decoding hint to the browser. The allowed values are:"}, {name: "decoding", description: "`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."}, {name: "importance", description: "Indicates the relative importance of the resource. Priority hints are delegated using the values:"}, {name: "importance", description: "`auto`: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xA0browser\xA0that the image is of\xA0**high** priority.\n\n`low`:\xA0Indicates to the\xA0browser\xA0that the image is of\xA0**low** priority."}, {name: "intrinsicsize", description: "This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}, {name: "referrerpolicy", description: "A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}, {name: "sizes", description: "A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/img"}]}, {name: "iframe", description: {kind: "markdown", value: "The iframe element represents a nested browsing context."}, attributes: [{name: "src", description: {kind: "markdown", value: 'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}}, {name: "srcdoc", description: {kind: "markdown", value: "Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}}, {name: "name", description: {kind: "markdown", value: 'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xA0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}}, {name: "sandbox", valueSet: "sb", description: {kind: "markdown", value: 'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}}, {name: "seamless", valueSet: "v"}, {name: "allowfullscreen", valueSet: "v", description: {kind: "markdown", value: 'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.'}}, {name: "width", description: {kind: "markdown", value: "The width of the frame in CSS pixels. Default is `300`."}}, {name: "height", description: {kind: "markdown", value: "The height of the frame in CSS pixels. Default is `150`."}}, {name: "allow", description: "Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."}, {name: "allowpaymentrequest", description: "Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."}, {name: "allowpaymentrequest", description: 'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'}, {name: "csp", description: 'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'}, {name: "importance", description: "The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."}, {name: "referrerpolicy", description: 'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]}, {name: "embed", description: {kind: "markdown", value: "The embed element provides an integration point for an external (typically non-HTML) application or interactive content."}, attributes: [{name: "src", description: {kind: "markdown", value: "The URL\xA0of the resource being embedded."}}, {name: "type", description: {kind: "markdown", value: "The MIME\xA0type to use to select the plug-in to instantiate."}}, {name: "width", description: {kind: "markdown", value: "The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}, {name: "height", description: {kind: "markdown", value: "The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]}, {name: "object", description: {kind: "markdown", value: "The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."}, attributes: [{name: "data", description: {kind: "markdown", value: "The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}}, {name: "type", description: {kind: "markdown", value: "The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}}, {name: "typemustmatch", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}}, {name: "name", description: {kind: "markdown", value: "The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}}, {name: "usemap", description: {kind: "markdown", value: "A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}}, {name: "form", description: {kind: "markdown", value: 'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}}, {name: "width", description: {kind: "markdown", value: "The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}}, {name: "height", description: {kind: "markdown", value: "The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}}, {name: "archive", description: "A space-separated list of URIs for archives of resources for the object."}, {name: "border", description: "The width of a border around the control, in pixels."}, {name: "classid", description: "The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."}, {name: "codebase", description: "The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."}, {name: "codetype", description: "The content type of the data specified by **classid**."}, {name: "declare", description: "The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."}, {name: "standby", description: "A message that the browser can show while loading the object's implementation and data."}, {name: "tabindex", description: "The position of the element in the tabbing navigation order for the current document."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/object"}]}, {name: "param", description: {kind: "markdown", value: "The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."}, attributes: [{name: "name", description: {kind: "markdown", value: "Name of the parameter."}}, {name: "value", description: {kind: "markdown", value: "Specifies the value of the parameter."}}, {name: "type", description: 'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'}, {name: "valuetype", description: 'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/param"}]}, {name: "video", description: {kind: "markdown", value: "A video element is used for playing videos or movies, and audio files with captions."}, attributes: [{name: "src"}, {name: "crossorigin", valueSet: "xo"}, {name: "poster"}, {name: "preload", valueSet: "pl"}, {name: "autoplay", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data."}}, {name: "mediagroup"}, {name: "loop", valueSet: "v"}, {name: "muted", valueSet: "v"}, {name: "controls", valueSet: "v"}, {name: "width"}, {name: "height"}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/video"}]}, {name: "audio", description: {kind: "markdown", value: "An audio element represents a sound or audio stream."}, attributes: [{name: "src", description: {kind: "markdown", value: 'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}}, {name: "preload", valueSet: "pl", description: {kind: "markdown", value: "This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xA0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}}, {name: "autoplay", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute:\xA0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}}, {name: "mediagroup"}, {name: "loop", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute:\xA0if specified, the audio player will\xA0automatically seek back to the start\xA0upon reaching the end of the audio."}}, {name: "muted", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}}, {name: "controls", valueSet: "v", description: {kind: "markdown", value: "If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]}, {name: "source", description: {kind: "markdown", value: "The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."}, attributes: [{name: "src", description: {kind: "markdown", value: 'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xA0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}}, {name: "type", description: {kind: "markdown", value: "The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}}, {name: "sizes", description: 'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}, {name: "srcset", description: "A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."}, {name: "media", description: '[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/source"}]}, {name: "track", description: {kind: "markdown", value: "The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."}, attributes: [{name: "default", valueSet: "v", description: {kind: "markdown", value: "This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}}, {name: "kind", valueSet: "tk", description: {kind: "markdown", value: "How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xA0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}}, {name: "label", description: {kind: "markdown", value: "A user-readable title of the text track which is used by the browser when listing available text tracks."}}, {name: "src", description: {kind: "markdown", value: 'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xA0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}}, {name: "srclang", description: {kind: "markdown", value: "Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xA0`subtitles,` then `srclang` must be defined."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/track"}]}, {name: "map", description: {kind: "markdown", value: "The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."}, attributes: [{name: "name", description: {kind: "markdown", value: "The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/map"}]}, {name: "area", description: {kind: "markdown", value: "The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."}, attributes: [{name: "alt"}, {name: "coords"}, {name: "shape", valueSet: "sh"}, {name: "href"}, {name: "target"}, {name: "download"}, {name: "ping"}, {name: "rel"}, {name: "hreflang"}, {name: "type"}, {name: "accesskey", description: "Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/area"}]}, {name: "table", description: {kind: "markdown", value: "The table element represents data with more than one dimension, in the form of a table."}, attributes: [{name: "border"}, {name: "align", description: 'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/table"}]}, {name: "caption", description: {kind: "markdown", value: "The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."}, attributes: [{name: "align", description: 'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]}, {name: "colgroup", description: {kind: "markdown", value: "The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."}, attributes: [{name: "span"}, {name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]}, {name: "col", description: {kind: "markdown", value: "If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."}, attributes: [{name: "span"}, {name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/col"}]}, {name: "tbody", description: {kind: "markdown", value: "The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]}, {name: "thead", description: {kind: "markdown", value: "The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]}, {name: "tfoot", description: {kind: "markdown", value: "The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."}, attributes: [{name: "align", description: 'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]}, {name: "tr", description: {kind: "markdown", value: "The tr element represents a row of cells in a table."}, attributes: [{name: "align", description: 'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]}, {name: "td", description: {kind: "markdown", value: "The td element represents a data cell in a table."}, attributes: [{name: "colspan"}, {name: "rowspan"}, {name: "headers"}, {name: "abbr", description: "This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."}, {name: "align", description: 'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xA02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'}, {name: "axis", description: "This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."}, {name: "bgcolor", description: 'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xA0\n\n`black` = "#000000"\n\n\xA0\n\n`green` = "#008000"\n\n\xA0\n\n`silver` = "#C0C0C0"\n\n\xA0\n\n`lime` = "#00FF00"\n\n\xA0\n\n`gray` = "#808080"\n\n\xA0\n\n`olive` = "#808000"\n\n\xA0\n\n`white` = "#FFFFFF"\n\n\xA0\n\n`yellow` = "#FFFF00"\n\n\xA0\n\n`maroon` = "#800000"\n\n\xA0\n\n`navy` = "#000080"\n\n\xA0\n\n`red` = "#FF0000"\n\n\xA0\n\n`blue` = "#0000FF"\n\n\xA0\n\n`purple` = "#800080"\n\n\xA0\n\n`teal` = "#008080"\n\n\xA0\n\n`fuchsia` = "#FF00FF"\n\n\xA0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/td"}]}, {name: "th", description: {kind: "markdown", value: "The th element represents a header cell in a table."}, attributes: [{name: "colspan"}, {name: "rowspan"}, {name: "headers"}, {name: "scope", valueSet: "s"}, {name: "sorted"}, {name: "abbr", description: {kind: "markdown", value: "This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}}, {name: "align", description: 'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'}, {name: "axis", description: "This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."}, {name: "bgcolor", description: 'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xA0\n\n`black` = "#000000"\n\n\xA0\n\n`green` = "#008000"\n\n\xA0\n\n`silver` = "#C0C0C0"\n\n\xA0\n\n`lime` = "#00FF00"\n\n\xA0\n\n`gray` = "#808080"\n\n\xA0\n\n`olive` = "#808000"\n\n\xA0\n\n`white` = "#FFFFFF"\n\n\xA0\n\n`yellow` = "#FFFF00"\n\n\xA0\n\n`maroon` = "#800000"\n\n\xA0\n\n`navy` = "#000080"\n\n\xA0\n\n`red` = "#FF0000"\n\n\xA0\n\n`blue` = "#0000FF"\n\n\xA0\n\n`purple` = "#800080"\n\n\xA0\n\n`teal` = "#008080"\n\n\xA0\n\n`fuchsia` = "#FF00FF"\n\n\xA0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/th"}]}, {name: "form", description: {kind: "markdown", value: "The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."}, attributes: [{name: "accept-charset", description: {kind: "markdown", value: 'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}}, {name: "action", description: {kind: "markdown", value: 'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "autocomplete", valueSet: "o", description: {kind: "markdown", value: "Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields)."}}, {name: "enctype", valueSet: "et", description: {kind: "markdown", value: 'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "method", valueSet: "m", description: {kind: "markdown", value: 'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xA0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "name", description: {kind: "markdown", value: "The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}}, {name: "novalidate", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}}, {name: "target", description: {kind: "markdown", value: 'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}}, {name: "accept", description: 'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}, {name: "autocapitalize", description: "This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/form"}]}, {name: "label", description: {kind: "markdown", value: "The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."}, attributes: [{name: "form", description: {kind: "markdown", value: 'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "for", description: {kind: "markdown", value: "The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xA0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/label"}]}, {name: "input", description: {kind: "markdown", value: "The input element represents a typed data field, usually with a form control to allow the user to edit the data."}, attributes: [{name: "accept"}, {name: "alt"}, {name: "autocomplete", valueSet: "inputautocomplete"}, {name: "autofocus", valueSet: "v"}, {name: "checked", valueSet: "v"}, {name: "dirname"}, {name: "disabled", valueSet: "v"}, {name: "form"}, {name: "formaction"}, {name: "formenctype", valueSet: "et"}, {name: "formmethod", valueSet: "fm"}, {name: "formnovalidate", valueSet: "v"}, {name: "formtarget"}, {name: "height"}, {name: "inputmode", valueSet: "im"}, {name: "list"}, {name: "max"}, {name: "maxlength"}, {name: "min"}, {name: "minlength"}, {name: "multiple", valueSet: "v"}, {name: "name"}, {name: "pattern"}, {name: "placeholder"}, {name: "readonly", valueSet: "v"}, {name: "required", valueSet: "v"}, {name: "size"}, {name: "src"}, {name: "step"}, {name: "type", valueSet: "t"}, {name: "value"}, {name: "width"}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/input"}]}, {name: "button", description: {kind: "markdown", value: "The button element represents a button labeled by its contents."}, attributes: [{name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}}, {name: "form", description: {kind: "markdown", value: 'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}}, {name: "formaction", description: {kind: "markdown", value: "The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}}, {name: "formenctype", valueSet: "et", description: {kind: "markdown", value: 'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}}, {name: "formmethod", valueSet: "fm", description: {kind: "markdown", value: "If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}}, {name: "formnovalidate", valueSet: "v", description: {kind: "markdown", value: "If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}}, {name: "formtarget", description: {kind: "markdown", value: "If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}}, {name: "name", description: {kind: "markdown", value: "The name of the button, which is submitted with the form data."}}, {name: "type", valueSet: "bt", description: {kind: "markdown", value: "The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}}, {name: "value", description: {kind: "markdown", value: "The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}}, {name: "autocomplete", description: 'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xA0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/button"}]}, {name: "select", description: {kind: "markdown", value: "The select element represents a control for selecting amongst a set of options."}, attributes: [{name: "autocomplete", valueSet: "inputautocomplete", description: {kind: "markdown", value: 'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}}, {name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}}, {name: "form", description: {kind: "markdown", value: 'This attribute lets you specify the form element to\xA0which\xA0the select element is associated\xA0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "multiple", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}}, {name: "name", description: {kind: "markdown", value: "This attribute is used to specify the name of the control."}}, {name: "required", valueSet: "v", description: {kind: "markdown", value: "A Boolean attribute indicating that an option with a non-empty string value must be selected."}}, {name: "size", description: {kind: "markdown", value: "If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/select"}]}, {name: "datalist", description: {kind: "markdown", value: "The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]}, {name: "optgroup", description: {kind: "markdown", value: "The optgroup element represents a group of option elements with a common label."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: "If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}}, {name: "label", description: {kind: "markdown", value: "The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]}, {name: "option", description: {kind: "markdown", value: "The option element represents an option in a select element or as part of a list of suggestions in a datalist element."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}}, {name: "label", description: {kind: "markdown", value: "This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}}, {name: "selected", valueSet: "v", description: {kind: "markdown", value: 'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}}, {name: "value", description: {kind: "markdown", value: "The content of this attribute represents the value to be submitted with the form, should this option be selected.\xA0If this attribute is omitted, the value is taken from the text content of the option element."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/option"}]}, {name: "textarea", description: {kind: "markdown", value: "The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."}, attributes: [{name: "autocomplete", valueSet: "inputautocomplete", description: {kind: "markdown", value: 'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}}, {name: "autofocus", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}}, {name: "cols", description: {kind: "markdown", value: "The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}}, {name: "dirname"}, {name: "disabled", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}}, {name: "form", description: {kind: "markdown", value: 'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}}, {name: "inputmode", valueSet: "im"}, {name: "maxlength", description: {kind: "markdown", value: "The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}}, {name: "minlength", description: {kind: "markdown", value: "The minimum number of characters (unicode code points) required that the user should enter."}}, {name: "name", description: {kind: "markdown", value: "The name of the control."}}, {name: "placeholder", description: {kind: "markdown", value: 'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}}, {name: "readonly", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}}, {name: "required", valueSet: "v", description: {kind: "markdown", value: "This attribute specifies that the user must fill in a value before submitting a form."}}, {name: "rows", description: {kind: "markdown", value: "The number of visible text lines for the control."}}, {name: "wrap", valueSet: "w", description: {kind: "markdown", value: "Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}}, {name: "autocapitalize", description: "This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}, {name: "spellcheck", description: "Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]}, {name: "output", description: {kind: "markdown", value: "The output element represents the result of a calculation performed by the application, or the result of a user action."}, attributes: [{name: "for", description: {kind: "markdown", value: "A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}}, {name: "form", description: {kind: "markdown", value: 'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}}, {name: "name", description: {kind: "markdown", value: 'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/output"}]}, {name: "progress", description: {kind: "markdown", value: "The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."}, attributes: [{name: "value", description: {kind: "markdown", value: "This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}}, {name: "max", description: {kind: "markdown", value: "This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]}, {name: "meter", description: {kind: "markdown", value: "The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."}, attributes: [{name: "value", description: {kind: "markdown", value: "The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}}, {name: "min", description: {kind: "markdown", value: "The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}}, {name: "max", description: {kind: "markdown", value: "The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}}, {name: "low", description: {kind: "markdown", value: "The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}}, {name: "high", description: {kind: "markdown", value: "The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}}, {name: "optimum", description: {kind: "markdown", value: "This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}}, {name: "form", description: "This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]}, {name: "fieldset", description: {kind: "markdown", value: "The fieldset element represents a set of form controls optionally grouped under a common name."}, attributes: [{name: "disabled", valueSet: "v", description: {kind: "markdown", value: "If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}}, {name: "form", description: {kind: "markdown", value: 'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}}, {name: "name", description: {kind: "markdown", value: 'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]}, {name: "legend", description: {kind: "markdown", value: "The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]}, {name: "details", description: {kind: "markdown", value: "The details element represents a disclosure widget from which the user can obtain additional information or controls."}, attributes: [{name: "open", valueSet: "v", description: {kind: "markdown", value: "This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/details"}]}, {name: "summary", description: {kind: "markdown", value: "The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]}, {name: "dialog", description: {kind: "markdown", value: "The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."}, attributes: [{name: "open", description: "Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]}, {name: "script", description: {kind: "markdown", value: "The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."}, attributes: [{name: "src", description: {kind: "markdown", value: "This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}}, {name: "type", description: {kind: "markdown", value: 'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xA01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}}, {name: "charset"}, {name: "async", valueSet: "v", description: {kind: "markdown", value: 'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}}, {name: "defer", valueSet: "v", description: {kind: "markdown", value: 'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}}, {name: "crossorigin", valueSet: "xo", description: {kind: "markdown", value: 'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}}, {name: "nonce", description: {kind: "markdown", value: "A cryptographic nonce (number used once) to whitelist inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}}, {name: "integrity", description: "This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."}, {name: "nomodule", description: "This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."}, {name: "referrerpolicy", description: 'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xA0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'}, {name: "text", description: "Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/script"}]}, {name: "noscript", description: {kind: "markdown", value: "The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]}, {name: "template", description: {kind: "markdown", value: "The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."}, attributes: [], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/template"}]}, {name: "canvas", description: {kind: "markdown", value: "The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."}, attributes: [{name: "width", description: {kind: "markdown", value: "The width of the coordinate space in CSS pixels. Defaults to 300."}}, {name: "height", description: {kind: "markdown", value: "The height of the coordinate space in CSS pixels. Defaults to 150."}}, {name: "moz-opaque", description: "Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]}], globalAttributes: [{name: "accesskey", description: {kind: "markdown", value: "Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]}, {name: "autocapitalize", description: {kind: "markdown", value: "Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]}, {name: "class", description: {kind: "markdown", value: 'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](/en-US/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](/en-US/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]}, {name: "contenteditable", description: {kind: "markdown", value: "An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]}, {name: "contextmenu", description: {kind: "markdown", value: 'The `[**id**](#attr-id)` of a [`<menu>`](/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]}, {name: "dir", description: {kind: "markdown", value: "An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."}, valueSet: "d", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]}, {name: "draggable", description: {kind: "markdown", value: "An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](/en-us/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."}, valueSet: "b", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]}, {name: "dropzone", description: {kind: "markdown", value: "An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](/en-US/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dropzone"}]}, {name: "exportparts", description: {kind: "markdown", value: "Used to transitively export shadow parts from a nested shadow tree into a containing light tree."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]}, {name: "hidden", description: {kind: "markdown", value: "A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."}, valueSet: "v", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]}, {name: "id", description: {kind: "markdown", value: "Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]}, {name: "inputmode", description: {kind: "markdown", value: 'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](/en-US/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]}, {name: "is", description: {kind: "markdown", value: "Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](/en-US/docs/Web/Web_Components/Using_custom_elements) for more details)."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]}, {name: "itemid", description: {kind: "markdown", value: "The unique, global identifier of an item."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]}, {name: "itemprop", description: {kind: "markdown", value: "Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]}, {name: "itemref", description: {kind: "markdown", value: "Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]}, {name: "itemscope", description: {kind: "markdown", value: "`itemscope` (usually) works along with `[itemtype](/en-US/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."}, valueSet: "v", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]}, {name: "itemtype", description: {kind: "markdown", value: "Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](/en-US/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]}, {name: "lang", description: {kind: "markdown", value: "Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201Clanguage tag\u201D (made of hyphen-separated \u201Clanguage subtags\u201D) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]}, {name: "part", description: {kind: "markdown", value: 'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](/en-US/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]}, {name: "role", valueSet: "roles"}, {name: "slot", description: {kind: "markdown", value: "Assigns a slot in a [shadow DOM](/en-US/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](/en-US/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](/en-US/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]}, {name: "spellcheck", description: {kind: "markdown", value: "An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."}, valueSet: "b", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]}, {name: "style", description: {kind: "markdown", value: 'Contains [CSS](/en-US/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](/en-US/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]}, {name: "tabindex", description: {kind: "markdown", value: "An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]}, {name: "title", description: {kind: "markdown", value: "Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."}, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]}, {name: "translate", description: {kind: "markdown", value: "An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."}, valueSet: "y", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]}, {name: "onabort", description: {kind: "markdown", value: "The loading of a resource has been aborted."}}, {name: "onblur", description: {kind: "markdown", value: "An element has lost focus (does not bubble)."}}, {name: "oncanplay", description: {kind: "markdown", value: "The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}}, {name: "oncanplaythrough", description: {kind: "markdown", value: "The user agent can play the media up to its end without having to stop for further buffering of content."}}, {name: "onchange", description: {kind: "markdown", value: "The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}}, {name: "onclick", description: {kind: "markdown", value: "A pointing device button has been pressed and released on an element."}}, {name: "oncontextmenu", description: {kind: "markdown", value: "The right button of the mouse is clicked (before the context menu is displayed)."}}, {name: "ondblclick", description: {kind: "markdown", value: "A pointing device button is clicked twice on an element."}}, {name: "ondrag", description: {kind: "markdown", value: "An element or text selection is being dragged (every 350ms)."}}, {name: "ondragend", description: {kind: "markdown", value: "A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}}, {name: "ondragenter", description: {kind: "markdown", value: "A dragged element or text selection enters a valid drop target."}}, {name: "ondragleave", description: {kind: "markdown", value: "A dragged element or text selection leaves a valid drop target."}}, {name: "ondragover", description: {kind: "markdown", value: "An element or text selection is being dragged over a valid drop target (every 350ms)."}}, {name: "ondragstart", description: {kind: "markdown", value: "The user starts dragging an element or text selection."}}, {name: "ondrop", description: {kind: "markdown", value: "An element is dropped on a valid drop target."}}, {name: "ondurationchange", description: {kind: "markdown", value: "The duration attribute has been updated."}}, {name: "onemptied", description: {kind: "markdown", value: "The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}}, {name: "onended", description: {kind: "markdown", value: "Playback has stopped because the end of the media was reached."}}, {name: "onerror", description: {kind: "markdown", value: "A resource failed to load."}}, {name: "onfocus", description: {kind: "markdown", value: "An element has received focus (does not bubble)."}}, {name: "onformchange"}, {name: "onforminput"}, {name: "oninput", description: {kind: "markdown", value: "The value of an element changes or the content of an element with the attribute contenteditable is modified."}}, {name: "oninvalid", description: {kind: "markdown", value: "A submittable element has been checked and doesn't satisfy its constraints."}}, {name: "onkeydown", description: {kind: "markdown", value: "A key is pressed down."}}, {name: "onkeypress", description: {kind: "markdown", value: "A key is pressed down and that key normally produces a character value (use input instead)."}}, {name: "onkeyup", description: {kind: "markdown", value: "A key is released."}}, {name: "onload", description: {kind: "markdown", value: "A resource and its dependent resources have finished loading."}}, {name: "onloadeddata", description: {kind: "markdown", value: "The first frame of the media has finished loading."}}, {name: "onloadedmetadata", description: {kind: "markdown", value: "The metadata has been loaded."}}, {name: "onloadstart", description: {kind: "markdown", value: "Progress has begun."}}, {name: "onmousedown", description: {kind: "markdown", value: "A pointing device button (usually a mouse) is pressed on an element."}}, {name: "onmousemove", description: {kind: "markdown", value: "A pointing device is moved over an element."}}, {name: "onmouseout", description: {kind: "markdown", value: "A pointing device is moved off the element that has the listener attached or off one of its children."}}, {name: "onmouseover", description: {kind: "markdown", value: "A pointing device is moved onto the element that has the listener attached or onto one of its children."}}, {name: "onmouseup", description: {kind: "markdown", value: "A pointing device button is released over an element."}}, {name: "onmousewheel"}, {name: "onpause", description: {kind: "markdown", value: "Playback has been paused."}}, {name: "onplay", description: {kind: "markdown", value: "Playback has begun."}}, {name: "onplaying", description: {kind: "markdown", value: "Playback is ready to start after having been paused or delayed due to lack of data."}}, {name: "onprogress", description: {kind: "markdown", value: "In progress."}}, {name: "onratechange", description: {kind: "markdown", value: "The playback rate has changed."}}, {name: "onreset", description: {kind: "markdown", value: "A form is reset."}}, {name: "onresize", description: {kind: "markdown", value: "The document view has been resized."}}, {name: "onreadystatechange", description: {kind: "markdown", value: "The readyState attribute of a document has changed."}}, {name: "onscroll", description: {kind: "markdown", value: "The document view or an element has been scrolled."}}, {name: "onseeked", description: {kind: "markdown", value: "A seek operation completed."}}, {name: "onseeking", description: {kind: "markdown", value: "A seek operation began."}}, {name: "onselect", description: {kind: "markdown", value: "Some text is being selected."}}, {name: "onshow", description: {kind: "markdown", value: "A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}}, {name: "onstalled", description: {kind: "markdown", value: "The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}}, {name: "onsubmit", description: {kind: "markdown", value: "A form is submitted."}}, {name: "onsuspend", description: {kind: "markdown", value: "Media data loading has been suspended."}}, {name: "ontimeupdate", description: {kind: "markdown", value: "The time indicated by the currentTime attribute has been updated."}}, {name: "onvolumechange", description: {kind: "markdown", value: "The volume has changed."}}, {name: "onwaiting", description: {kind: "markdown", value: "Playback has stopped because of a temporary lack of data."}}, {name: "aria-activedescendant", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}], description: {kind: "markdown", value: "Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}}, {name: "aria-atomic", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}], description: {kind: "markdown", value: "Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}}, {name: "aria-autocomplete", valueSet: "autocomplete", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}], description: {kind: "markdown", value: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}}, {name: "aria-busy", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}], description: {kind: "markdown", value: "Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}}, {name: "aria-checked", valueSet: "tristate", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}], description: {kind: "markdown", value: 'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}}, {name: "aria-colcount", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}], description: {kind: "markdown", value: "Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}}, {name: "aria-colindex", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}], description: {kind: "markdown", value: "Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}}, {name: "aria-colspan", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}], description: {kind: "markdown", value: "Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}}, {name: "aria-controls", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}}, {name: "aria-current", valueSet: "current", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-current"}], description: {kind: "markdown", value: "Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}}, {name: "aria-describedat", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-describedat"}]}, {name: "aria-describedby", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}}, {name: "aria-disabled", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}], description: {kind: "markdown", value: "Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}}, {name: "aria-dropeffect", valueSet: "dropeffect", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}], description: {kind: "markdown", value: "\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}}, {name: "aria-errormessage", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-expanded", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}], description: {kind: "markdown", value: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}}, {name: "aria-flowto", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}], description: {kind: "markdown", value: "Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}}, {name: "aria-grabbed", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}], description: {kind: "markdown", value: `\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}}, {name: "aria-haspopup", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}], description: {kind: "markdown", value: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}}, {name: "aria-hidden", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}], description: {kind: "markdown", value: "Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}}, {name: "aria-invalid", valueSet: "invalid", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}], description: {kind: "markdown", value: "Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}}, {name: "aria-kbdshortcuts", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-kbdshortcuts"}]}, {name: "aria-label", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-label"}], description: {kind: "markdown", value: "Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}}, {name: "aria-labelledby", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}], description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-level", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-level"}], description: {kind: "markdown", value: "Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}}, {name: "aria-live", valueSet: "live", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-live"}], description: {kind: "markdown", value: "Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}}, {name: "aria-modal", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}], description: {kind: "markdown", value: "Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}}, {name: "aria-multiline", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}], description: {kind: "markdown", value: "Indicates whether a text box accepts multiple lines of input or only a single line."}}, {name: "aria-multiselectable", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}], description: {kind: "markdown", value: "Indicates that the user may select more than one item from the current selectable descendants."}}, {name: "aria-orientation", valueSet: "orientation", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}], description: {kind: "markdown", value: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}}, {name: "aria-owns", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}], description: {kind: "markdown", value: "Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}}, {name: "aria-placeholder", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}], description: {kind: "markdown", value: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}}, {name: "aria-posinset", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}], description: {kind: "markdown", value: "Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}}, {name: "aria-pressed", valueSet: "tristate", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}], description: {kind: "markdown", value: 'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}}, {name: "aria-readonly", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}], description: {kind: "markdown", value: "Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}}, {name: "aria-relevant", valueSet: "relevant", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}], description: {kind: "markdown", value: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}}, {name: "aria-required", valueSet: "b", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-required"}], description: {kind: "markdown", value: "Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}}, {name: "aria-roledescription", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}], description: {kind: "markdown", value: "Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}}, {name: "aria-rowcount", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}], description: {kind: "markdown", value: "Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}}, {name: "aria-rowindex", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}], description: {kind: "markdown", value: "Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}}, {name: "aria-rowspan", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}], description: {kind: "markdown", value: "Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}}, {name: "aria-selected", valueSet: "u", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}], description: {kind: "markdown", value: 'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}}, {name: "aria-setsize", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}], description: {kind: "markdown", value: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}}, {name: "aria-sort", valueSet: "sort", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}], description: {kind: "markdown", value: "Indicates if items in a table or grid are sorted in ascending or descending order."}}, {name: "aria-valuemax", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}], description: {kind: "markdown", value: "Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-valuemin", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}], description: {kind: "markdown", value: "Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-valuenow", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}], description: {kind: "markdown", value: "Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}}, {name: "aria-valuetext", references: [{name: "WAI-ARIA Reference", url: "https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}], description: {kind: "markdown", value: "Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}}, {name: "aria-details", description: {kind: "markdown", value: "Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}}, {name: "aria-keyshortcuts", description: {kind: "markdown", value: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}], valueSets: [{name: "b", values: [{name: "true"}, {name: "false"}]}, {name: "u", values: [{name: "true"}, {name: "false"}, {name: "undefined"}]}, {name: "o", values: [{name: "on"}, {name: "off"}]}, {name: "y", values: [{name: "yes"}, {name: "no"}]}, {name: "w", values: [{name: "soft"}, {name: "hard"}]}, {name: "d", values: [{name: "ltr"}, {name: "rtl"}, {name: "auto"}]}, {name: "m", values: [{name: "GET", description: {kind: "markdown", value: "Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}}, {name: "POST", description: {kind: "markdown", value: "Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}}, {name: "dialog", description: {kind: "markdown", value: "Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]}, {name: "fm", values: [{name: "GET"}, {name: "POST"}]}, {name: "s", values: [{name: "row"}, {name: "col"}, {name: "rowgroup"}, {name: "colgroup"}]}, {name: "t", values: [{name: "hidden"}, {name: "text"}, {name: "search"}, {name: "tel"}, {name: "url"}, {name: "email"}, {name: "password"}, {name: "datetime"}, {name: "date"}, {name: "month"}, {name: "week"}, {name: "time"}, {name: "datetime-local"}, {name: "number"}, {name: "range"}, {name: "color"}, {name: "checkbox"}, {name: "radio"}, {name: "file"}, {name: "submit"}, {name: "image"}, {name: "reset"}, {name: "button"}]}, {name: "im", values: [{name: "verbatim"}, {name: "latin"}, {name: "latin-name"}, {name: "latin-prose"}, {name: "full-width-latin"}, {name: "kana"}, {name: "kana-name"}, {name: "katakana"}, {name: "numeric"}, {name: "tel"}, {name: "email"}, {name: "url"}]}, {name: "bt", values: [{name: "button"}, {name: "submit"}, {name: "reset"}, {name: "menu"}]}, {name: "lt", values: [{name: "1"}, {name: "a"}, {name: "A"}, {name: "i"}, {name: "I"}]}, {name: "mt", values: [{name: "context"}, {name: "toolbar"}]}, {name: "mit", values: [{name: "command"}, {name: "checkbox"}, {name: "radio"}]}, {name: "et", values: [{name: "application/x-www-form-urlencoded"}, {name: "multipart/form-data"}, {name: "text/plain"}]}, {name: "tk", values: [{name: "subtitles"}, {name: "captions"}, {name: "descriptions"}, {name: "chapters"}, {name: "metadata"}]}, {name: "pl", values: [{name: "none"}, {name: "metadata"}, {name: "auto"}]}, {name: "sh", values: [{name: "circle"}, {name: "default"}, {name: "poly"}, {name: "rect"}]}, {name: "xo", values: [{name: "anonymous"}, {name: "use-credentials"}]}, {name: "sb", values: [{name: "allow-forms"}, {name: "allow-modals"}, {name: "allow-pointer-lock"}, {name: "allow-popups"}, {name: "allow-popups-to-escape-sandbox"}, {name: "allow-same-origin"}, {name: "allow-scripts"}, {name: "allow-top-navigation"}]}, {name: "tristate", values: [{name: "true"}, {name: "false"}, {name: "mixed"}, {name: "undefined"}]}, {name: "inputautocomplete", values: [{name: "additional-name"}, {name: "address-level1"}, {name: "address-level2"}, {name: "address-level3"}, {name: "address-level4"}, {name: "address-line1"}, {name: "address-line2"}, {name: "address-line3"}, {name: "bday"}, {name: "bday-year"}, {name: "bday-day"}, {name: "bday-month"}, {name: "billing"}, {name: "cc-additional-name"}, {name: "cc-csc"}, {name: "cc-exp"}, {name: "cc-exp-month"}, {name: "cc-exp-year"}, {name: "cc-family-name"}, {name: "cc-given-name"}, {name: "cc-name"}, {name: "cc-number"}, {name: "cc-type"}, {name: "country"}, {name: "country-name"}, {name: "current-password"}, {name: "email"}, {name: "family-name"}, {name: "fax"}, {name: "given-name"}, {name: "home"}, {name: "honorific-prefix"}, {name: "honorific-suffix"}, {name: "impp"}, {name: "language"}, {name: "mobile"}, {name: "name"}, {name: "new-password"}, {name: "nickname"}, {name: "organization"}, {name: "organization-title"}, {name: "pager"}, {name: "photo"}, {name: "postal-code"}, {name: "sex"}, {name: "shipping"}, {name: "street-address"}, {name: "tel-area-code"}, {name: "tel"}, {name: "tel-country-code"}, {name: "tel-extension"}, {name: "tel-local"}, {name: "tel-local-prefix"}, {name: "tel-local-suffix"}, {name: "tel-national"}, {name: "transaction-amount"}, {name: "transaction-currency"}, {name: "url"}, {name: "username"}, {name: "work"}]}, {name: "autocomplete", values: [{name: "inline"}, {name: "list"}, {name: "both"}, {name: "none"}]}, {name: "current", values: [{name: "page"}, {name: "step"}, {name: "location"}, {name: "date"}, {name: "time"}, {name: "true"}, {name: "false"}]}, {name: "dropeffect", values: [{name: "copy"}, {name: "move"}, {name: "link"}, {name: "execute"}, {name: "popup"}, {name: "none"}]}, {name: "invalid", values: [{name: "grammar"}, {name: "false"}, {name: "spelling"}, {name: "true"}]}, {name: "live", values: [{name: "off"}, {name: "polite"}, {name: "assertive"}]}, {name: "orientation", values: [{name: "vertical"}, {name: "horizontal"}, {name: "undefined"}]}, {name: "relevant", values: [{name: "additions"}, {name: "removals"}, {name: "text"}, {name: "all"}, {name: "additions text"}]}, {name: "sort", values: [{name: "ascending"}, {name: "descending"}, {name: "none"}, {name: "other"}]}, {name: "roles", values: [{name: "alert"}, {name: "alertdialog"}, {name: "button"}, {name: "checkbox"}, {name: "dialog"}, {name: "gridcell"}, {name: "link"}, {name: "log"}, {name: "marquee"}, {name: "menuitem"}, {name: "menuitemcheckbox"}, {name: "menuitemradio"}, {name: "option"}, {name: "progressbar"}, {name: "radio"}, {name: "scrollbar"}, {name: "searchbox"}, {name: "slider"}, {name: "spinbutton"}, {name: "status"}, {name: "switch"}, {name: "tab"}, {name: "tabpanel"}, {name: "textbox"}, {name: "timer"}, {name: "tooltip"}, {name: "treeitem"}, {name: "combobox"}, {name: "grid"}, {name: "listbox"}, {name: "menu"}, {name: "menubar"}, {name: "radiogroup"}, {name: "tablist"}, {name: "tree"}, {name: "treegrid"}, {name: "application"}, {name: "article"}, {name: "cell"}, {name: "columnheader"}, {name: "definition"}, {name: "directory"}, {name: "document"}, {name: "feed"}, {name: "figure"}, {name: "group"}, {name: "heading"}, {name: "img"}, {name: "list"}, {name: "listitem"}, {name: "math"}, {name: "none"}, {name: "note"}, {name: "presentation"}, {name: "region"}, {name: "row"}, {name: "rowgroup"}, {name: "rowheader"}, {name: "separator"}, {name: "table"}, {name: "term"}, {name: "text"}, {name: "toolbar"}, {name: "banner"}, {name: "complementary"}, {name: "contentinfo"}, {name: "form"}, {name: "main"}, {name: "navigation"}, {name: "region"}, {name: "search"}, {name: "doc-abstract"}, {name: "doc-acknowledgments"}, {name: "doc-afterword"}, {name: "doc-appendix"}, {name: "doc-backlink"}, {name: "doc-biblioentry"}, {name: "doc-bibliography"}, {name: "doc-biblioref"}, {name: "doc-chapter"}, {name: "doc-colophon"}, {name: "doc-conclusion"}, {name: "doc-cover"}, {name: "doc-credit"}, {name: "doc-credits"}, {name: "doc-dedication"}, {name: "doc-endnote"}, {name: "doc-endnotes"}, {name: "doc-epigraph"}, {name: "doc-epilogue"}, {name: "doc-errata"}, {name: "doc-example"}, {name: "doc-footnote"}, {name: "doc-foreword"}, {name: "doc-glossary"}, {name: "doc-glossref"}, {name: "doc-index"}, {name: "doc-introduction"}, {name: "doc-noteref"}, {name: "doc-notice"}, {name: "doc-pagebreak"}, {name: "doc-pagelist"}, {name: "doc-part"}, {name: "doc-preface"}, {name: "doc-prologue"}, {name: "doc-pullquote"}, {name: "doc-qna"}, {name: "doc-subtitle"}, {name: "doc-tip"}, {name: "doc-toc"}]}, {name: "metanames", values: [{name: "application-name"}, {name: "author"}, {name: "description"}, {name: "format-detection"}, {name: "generator"}, {name: "keywords"}, {name: "publisher"}, {name: "referrer"}, {name: "robots"}, {name: "theme-color"}, {name: "viewport"}]}]}, At = function() { function e2(e3) { this.dataProviders = [], this.setDataProviders(e3.useDefaultDataProvider !== false, e3.customDataProviders || []); } return e2.prototype.setDataProviders = function(e3, t2) { var n2; - this.dataProviders = [], e3 && this.dataProviders.push(new Ke("html5", Dt)), (n2 = this.dataProviders).push.apply(n2, t2); + this.dataProviders = [], e3 && this.dataProviders.push(new Ke("html5", Ot)), (n2 = this.dataProviders).push.apply(n2, t2); }, e2.prototype.getDataProviders = function() { return this.dataProviders; }, e2; }(), Rt = {}; function Mt(e2) { e2 === void 0 && (e2 = Rt); - var t2 = new At(e2), n2 = new lt(e2, t2), i2 = new rt(e2, t2); + var t2 = new At(e2), n2 = new lt(e2, t2), i2 = new ot(e2, t2); return {setDataProviders: t2.setDataProviders.bind(t2), createScanner: Ie, parseHTMLDocument: function(e3) { return Me(e3.getText()); }, doComplete: i2.doComplete.bind(i2), doComplete2: i2.doComplete2.bind(i2), setCompletionParticipants: i2.setCompletionParticipants.bind(i2), doHover: n2.doHover.bind(n2), format: ut, findDocumentHighlights: yt, findDocumentLinks: wt, findDocumentSymbols: kt, getFoldingRanges: Nt, getSelectionRanges: It, doTagComplete: i2.doTagComplete.bind(i2), doRename: Et, findMatchingTagPosition: Tt, findOnTypeRenameRanges: Lt}; } }, function(e, t, n) { "use strict"; - var i, o = function() { + var i, r = function() { return i === void 0 && (i = Boolean(window && document && document.all && !window.atob)), i; - }, r = function() { + }, o = function() { var e2 = {}; return function(t2) { if (e2[t2] === void 0) { @@ -11568,10 +11568,10 @@ return t2; } function l(e2, t2) { - for (var n2 = {}, i2 = [], o2 = 0; o2 < e2.length; o2++) { - var r2 = e2[o2], l2 = t2.base ? r2[0] + t2.base : r2[0], c2 = n2[l2] || 0, d2 = "".concat(l2, " ").concat(c2); + for (var n2 = {}, i2 = [], r2 = 0; r2 < e2.length; r2++) { + var o2 = e2[r2], l2 = t2.base ? o2[0] + t2.base : o2[0], c2 = n2[l2] || 0, d2 = "".concat(l2, " ").concat(c2); n2[l2] = c2 + 1; - var h2 = a(d2), u2 = {css: r2[1], media: r2[2], sourceMap: r2[3]}; + var h2 = a(d2), u2 = {css: o2[1], media: o2[2], sourceMap: o2[3]}; h2 !== -1 ? (s[h2].references++, s[h2].updater(u2)) : s.push({identifier: d2, updater: f(u2, t2), references: 1}), i2.push(d2); } return i2; @@ -11579,15 +11579,15 @@ function c(e2) { var t2 = document.createElement("style"), i2 = e2.attributes || {}; if (i2.nonce === void 0) { - var o2 = n.nc; - o2 && (i2.nonce = o2); + var r2 = n.nc; + r2 && (i2.nonce = r2); } if (Object.keys(i2).forEach(function(e3) { t2.setAttribute(e3, i2[e3]); }), typeof e2.insert == "function") e2.insert(t2); else { - var s2 = r(e2.insert || "head"); + var s2 = o(e2.insert || "head"); if (!s2) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); s2.appendChild(t2); @@ -11598,17 +11598,17 @@ return d[e2] = t2, d.filter(Boolean).join("\n"); }); function u(e2, t2, n2, i2) { - var o2 = n2 ? "" : i2.media ? "@media ".concat(i2.media, " {").concat(i2.css, "}") : i2.css; + var r2 = n2 ? "" : i2.media ? "@media ".concat(i2.media, " {").concat(i2.css, "}") : i2.css; if (e2.styleSheet) - e2.styleSheet.cssText = h(t2, o2); + e2.styleSheet.cssText = h(t2, r2); else { - var r2 = document.createTextNode(o2), s2 = e2.childNodes; - s2[t2] && e2.removeChild(s2[t2]), s2.length ? e2.insertBefore(r2, s2[t2]) : e2.appendChild(r2); + var o2 = document.createTextNode(r2), s2 = e2.childNodes; + s2[t2] && e2.removeChild(s2[t2]), s2.length ? e2.insertBefore(o2, s2[t2]) : e2.appendChild(o2); } } function p(e2, t2, n2) { - var i2 = n2.css, o2 = n2.media, r2 = n2.sourceMap; - if (o2 ? e2.setAttribute("media", o2) : e2.removeAttribute("media"), r2 && btoa && (i2 += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r2)))), " */")), e2.styleSheet) + var i2 = n2.css, r2 = n2.media, o2 = n2.sourceMap; + if (r2 ? e2.setAttribute("media", r2) : e2.removeAttribute("media"), o2 && typeof btoa != "undefined" && (i2 += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o2)))), " */")), e2.styleSheet) e2.styleSheet.cssText = i2; else { for (; e2.firstChild; ) @@ -11618,12 +11618,12 @@ } var m = null, g = 0; function f(e2, t2) { - var n2, i2, o2; + var n2, i2, r2; if (t2.singleton) { - var r2 = g++; - n2 = m || (m = c(t2)), i2 = u.bind(null, n2, r2, false), o2 = u.bind(null, n2, r2, true); + var o2 = g++; + n2 = m || (m = c(t2)), i2 = u.bind(null, n2, o2, false), r2 = u.bind(null, n2, o2, true); } else - n2 = c(t2), i2 = p.bind(null, n2, t2), o2 = function() { + n2 = c(t2), i2 = p.bind(null, n2, t2), r2 = function() { !function(e3) { if (e3.parentNode === null) return false; @@ -11636,23 +11636,23 @@ return; i2(e2 = t3); } else - o2(); + r2(); }; } e.exports = function(e2, t2) { - (t2 = t2 || {}).singleton || typeof t2.singleton == "boolean" || (t2.singleton = o()); + (t2 = t2 || {}).singleton || typeof t2.singleton == "boolean" || (t2.singleton = r()); var n2 = l(e2 = e2 || [], t2); return function(e3) { if (e3 = e3 || [], Object.prototype.toString.call(e3) === "[object Array]") { for (var i2 = 0; i2 < n2.length; i2++) { - var o2 = a(n2[i2]); - s[o2].references--; + var r2 = a(n2[i2]); + s[r2].references--; } - for (var r2 = l(e3, t2), c2 = 0; c2 < n2.length; c2++) { + for (var o2 = l(e3, t2), c2 = 0; c2 < n2.length; c2++) { var d2 = a(n2[c2]); s[d2].references === 0 && (s[d2].updater(), s.splice(d2, 1)); } - n2 = r2; + n2 = o2; } }; }; @@ -11667,10 +11667,10 @@ if (!i) return n3; if (t4 && typeof btoa == "function") { - var o = (s = i, a = btoa(unescape(encodeURIComponent(JSON.stringify(s)))), l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a), "/*# ".concat(l, " */")), r = i.sources.map(function(e4) { + var r = (s = i, a = btoa(unescape(encodeURIComponent(JSON.stringify(s)))), l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a), "/*# ".concat(l, " */")), o = i.sources.map(function(e4) { return "/*# sourceURL=".concat(i.sourceRoot || "").concat(e4, " */"); }); - return [n3].concat(r).concat([o]).join("\n"); + return [n3].concat(o).concat([r]).join("\n"); } var s, a, l; return [n3].join("\n"); @@ -11679,22 +11679,22 @@ }).join(""); }, t2.i = function(e3, n2, i) { typeof e3 == "string" && (e3 = [[null, e3, ""]]); - var o = {}; + var r = {}; if (i) - for (var r = 0; r < this.length; r++) { - var s = this[r][0]; - s != null && (o[s] = true); + for (var o = 0; o < this.length; o++) { + var s = this[o][0]; + s != null && (r[s] = true); } for (var a = 0; a < e3.length; a++) { var l = [].concat(e3[a]); - i && o[l[0]] || (n2 && (l[2] ? l[2] = "".concat(n2, " and ").concat(l[2]) : l[2] = n2), t2.push(l)); + i && r[l[0]] || (n2 && (l[2] ? l[2] = "".concat(n2, " and ").concat(l[2]) : l[2] = n2), t2.push(l)); } }, t2; }; }, function(e, t, n) { "use strict"; n.d(t, "d", function() { - return r; + return o; }), n.d(t, "b", function() { return s; }), n.d(t, "n", function() { @@ -11723,7 +11723,7 @@ return v; }); var i = n(6); - class o { + class r { constructor() { this._zoomLevel = 0, this._lastZoomLevelChangeTime = 0, this._onDidChangeZoomLevel = new i.a(), this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event, this._zoomFactor = 1; } @@ -11741,32 +11741,32 @@ return (window.devicePixelRatio || 1) / (e2.webkitBackingStorePixelRatio || e2.mozBackingStorePixelRatio || e2.msBackingStorePixelRatio || e2.oBackingStorePixelRatio || e2.backingStorePixelRatio || 1); } } - function r() { - return o.INSTANCE.getZoomLevel(); + function o() { + return r.INSTANCE.getZoomLevel(); } function s() { - return o.INSTANCE.getTimeSinceLastZoomLevelChanged(); + return r.INSTANCE.getTimeSinceLastZoomLevelChanged(); } function a(e2) { - return o.INSTANCE.onDidChangeZoomLevel(e2); + return r.INSTANCE.onDidChangeZoomLevel(e2); } function l() { - return o.INSTANCE.getZoomFactor(); + return r.INSTANCE.getZoomFactor(); } function c() { - return o.INSTANCE.getPixelRatio(); + return r.INSTANCE.getPixelRatio(); } - o.INSTANCE = new o(); + r.INSTANCE = new r(); const d = navigator.userAgent, h = d.indexOf("Edge/") >= 0, u = d.indexOf("Firefox") >= 0, p = d.indexOf("AppleWebKit") >= 0, m = d.indexOf("Chrome") >= 0, g = !m && d.indexOf("Safari") >= 0, f = !m && !g && p, b = d.indexOf("iPad") >= 0 || g && navigator.maxTouchPoints > 0, _ = h && d.indexOf("WebView/") >= 0, v = window.matchMedia && window.matchMedia("(display-mode: standalone)").matches; }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(1); - class o { + class r { constructor(e2) { this.domNode = e2, this._maxWidth = -1, this._width = -1, this._height = -1, this._top = -1, this._left = -1, this._bottom = -1, this._right = -1, this._fontFamily = "", this._fontWeight = "", this._fontSize = -1, this._fontFeatureSettings = "", this._lineHeight = -1, this._letterSpacing = -100, this._className = "", this._display = "", this._position = "", this._visibility = "", this._backgroundColor = "", this._layerHint = false, this._contain = "none", this._boxShadow = ""; } @@ -11852,21 +11852,21 @@ this.domNode.removeChild(e2.domNode); } } - function r(e2) { - return new o(e2); + function o(e2) { + return new r(e2); } }, function(e, t, n) { "use strict"; function i(e2) { return e2 < 0 ? 0 : e2 > 255 ? 255 : 0 | e2; } - function o(e2) { + function r(e2) { return e2 < 0 ? 0 : e2 > 4294967295 ? 4294967295 : 0 | e2; } n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }); }, function(e, t, n) { "use strict"; @@ -11905,20 +11905,20 @@ const i2 = []; if (n2 === 0) return [i2, t3]; - const o = t3[Symbol.iterator](); + const r = t3[Symbol.iterator](); for (let t4 = 0; t4 < n2; t4++) { - const t5 = o.next(); + const t5 = r.next(); if (t5.done) return [i2, e2.empty()]; i2.push(t5.value); } - return [i2, {[Symbol.iterator]: () => o}]; + return [i2, {[Symbol.iterator]: () => r}]; }; }(i || (i = {})); }, function(e, t, n) { "use strict"; n.d(t, "f", function() { - return re; + return oe; }), n.d(t, "c", function() { return d; }), n.d(t, "b", function() { @@ -11932,7 +11932,7 @@ }), n.d(t, "g", function() { return yt; }); - var i, o, r, s, a, l, c, d, h, u, p, m, g, f, b, _, v, w, y, C, x = n(65); + var i, r, o, s, a, l, c, d, h, u, p, m, g, f, b, _, v, w, y, C, x = n(65); function S(e2, t2) { if (e2 === t2) return true; @@ -11952,17 +11952,17 @@ if (!S(e2[n2], t2[n2])) return false; } else { - var o2 = []; - for (i2 in e2) - o2.push(i2); - o2.sort(); var r2 = []; - for (i2 in t2) + for (i2 in e2) r2.push(i2); - if (r2.sort(), !S(o2, r2)) + r2.sort(); + var o2 = []; + for (i2 in t2) + o2.push(i2); + if (o2.sort(), !S(r2, o2)) return false; - for (n2 = 0; n2 < o2.length; n2++) - if (!S(e2[o2[n2]], t2[o2[n2]])) + for (n2 = 0; n2 < r2.length; n2++) + if (!S(e2[r2[n2]], t2[r2[n2]])) return false; } return true; @@ -11984,29 +11984,29 @@ return ie.objectLiteral(t2) && ie.number(t2.line) && ie.number(t2.character); }; }(i || (i = {})), function(e2) { - e2.create = function(e3, t2, n2, o2) { - if (ie.number(e3) && ie.number(t2) && ie.number(n2) && ie.number(o2)) - return {start: i.create(e3, t2), end: i.create(n2, o2)}; + e2.create = function(e3, t2, n2, r2) { + if (ie.number(e3) && ie.number(t2) && ie.number(n2) && ie.number(r2)) + return {start: i.create(e3, t2), end: i.create(n2, r2)}; if (i.is(e3) && i.is(t2)) return {start: e3, end: t2}; - throw new Error("Range#create called with invalid arguments[" + e3 + ", " + t2 + ", " + n2 + ", " + o2 + "]"); + throw new Error("Range#create called with invalid arguments[" + e3 + ", " + t2 + ", " + n2 + ", " + r2 + "]"); }, e2.is = function(e3) { var t2 = e3; return ie.objectLiteral(t2) && i.is(t2.start) && i.is(t2.end); }; - }(o || (o = {})), function(e2) { + }(r || (r = {})), function(e2) { e2.create = function(e3, t2) { return {uri: e3, range: t2}; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && o.is(t2.range) && (ie.string(t2.uri) || ie.undefined(t2.uri)); + return ie.defined(t2) && r.is(t2.range) && (ie.string(t2.uri) || ie.undefined(t2.uri)); }; - }(r || (r = {})), function(e2) { + }(o || (o = {})), function(e2) { e2.create = function(e3, t2, n2, i2) { return {targetUri: e3, targetRange: t2, targetSelectionRange: n2, originSelectionRange: i2}; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && o.is(t2.targetRange) && ie.string(t2.targetUri) && (o.is(t2.targetSelectionRange) || ie.undefined(t2.targetSelectionRange)) && (o.is(t2.originSelectionRange) || ie.undefined(t2.originSelectionRange)); + return ie.defined(t2) && r.is(t2.targetRange) && ie.string(t2.targetUri) && (r.is(t2.targetSelectionRange) || ie.undefined(t2.targetSelectionRange)) && (r.is(t2.originSelectionRange) || ie.undefined(t2.originSelectionRange)); }; }(s || (s = {})), function(e2) { e2.create = function(e3, t2, n2, i2) { @@ -12020,7 +12020,7 @@ return {range: e3, color: t2}; }, e2.is = function(e3) { var t2 = e3; - return o.is(t2.range) && a.is(t2.color); + return r.is(t2.range) && a.is(t2.color); }; }(l || (l = {})), function(e2) { e2.create = function(e3, t2, n2) { @@ -12032,9 +12032,9 @@ }(c || (c = {})), function(e2) { e2.Comment = "comment", e2.Imports = "imports", e2.Region = "region"; }(d || (d = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {startLine: e3, endLine: t2}; - return ie.defined(n2) && (r2.startCharacter = n2), ie.defined(i2) && (r2.endCharacter = i2), ie.defined(o2) && (r2.kind = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {startLine: e3, endLine: t2}; + return ie.defined(n2) && (o2.startCharacter = n2), ie.defined(i2) && (o2.endCharacter = i2), ie.defined(r2) && (o2.kind = r2), o2; }, e2.is = function(e3) { var t2 = e3; return ie.number(t2.startLine) && ie.number(t2.startLine) && (ie.undefined(t2.startCharacter) || ie.number(t2.startCharacter)) && (ie.undefined(t2.endCharacter) || ie.number(t2.endCharacter)) && (ie.undefined(t2.kind) || ie.string(t2.kind)); @@ -12044,26 +12044,26 @@ return {location: e3, message: t2}; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && r.is(t2.location) && ie.string(t2.message); + return ie.defined(t2) && o.is(t2.location) && ie.string(t2.message); }; }(u || (u = {})), function(e2) { e2.Error = 1, e2.Warning = 2, e2.Information = 3, e2.Hint = 4; }(p || (p = {})), function(e2) { e2.Unnecessary = 1, e2.Deprecated = 2; }(m || (m = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { + e2.create = function(e3, t2, n2, i2, r2, o2) { var s2 = {range: e3, message: t2}; - return ie.defined(n2) && (s2.severity = n2), ie.defined(i2) && (s2.code = i2), ie.defined(o2) && (s2.source = o2), ie.defined(r2) && (s2.relatedInformation = r2), s2; + return ie.defined(n2) && (s2.severity = n2), ie.defined(i2) && (s2.code = i2), ie.defined(r2) && (s2.source = r2), ie.defined(o2) && (s2.relatedInformation = o2), s2; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && o.is(t2.range) && ie.string(t2.message) && (ie.number(t2.severity) || ie.undefined(t2.severity)) && (ie.number(t2.code) || ie.string(t2.code) || ie.undefined(t2.code)) && (ie.string(t2.source) || ie.undefined(t2.source)) && (ie.undefined(t2.relatedInformation) || ie.typedArray(t2.relatedInformation, u.is)); + return ie.defined(t2) && r.is(t2.range) && ie.string(t2.message) && (ie.number(t2.severity) || ie.undefined(t2.severity)) && (ie.number(t2.code) || ie.string(t2.code) || ie.undefined(t2.code)) && (ie.string(t2.source) || ie.undefined(t2.source)) && (ie.undefined(t2.relatedInformation) || ie.typedArray(t2.relatedInformation, u.is)); }; }(g || (g = {})), function(e2) { e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {title: e3, command: t2}; - return ie.defined(n2) && n2.length > 0 && (o2.arguments = n2), o2; + var r2 = {title: e3, command: t2}; + return ie.defined(n2) && n2.length > 0 && (r2.arguments = n2), r2; }, e2.is = function(e3) { var t2 = e3; return ie.defined(t2) && ie.string(t2.title) && ie.string(t2.command); @@ -12077,7 +12077,7 @@ return {range: e3, newText: ""}; }, e2.is = function(e3) { var t2 = e3; - return ie.objectLiteral(t2) && ie.string(t2.newText) && o.is(t2.range); + return ie.objectLiteral(t2) && ie.string(t2.newText) && r.is(t2.range); }; }(b || (b = {})), function(e2) { e2.create = function(e3, t2) { @@ -12118,7 +12118,7 @@ })); }; }(C || (C = {})); - var L, N, I, O, D, A, R, M, P, F, W, z, B, j, V, U, H, q, $, K, G, Y, Z, X, Q, J, ee, te = function() { + var L, N, I, D, O, A, R, M, P, F, W, z, B, j, V, U, H, q, $, K, G, Y, Z, X, Q, J, ee, te = function() { function e2(e3) { this.edits = e3; } @@ -12157,8 +12157,8 @@ throw new Error("Workspace edit is not configured for document changes."); var t2 = e3; if (!(i2 = this._textEditChanges[t2.uri])) { - var n2 = {textDocument: t2, edits: o2 = []}; - this._workspaceEdit.documentChanges.push(n2), i2 = new te(o2), this._textEditChanges[t2.uri] = i2; + var n2 = {textDocument: t2, edits: r2 = []}; + this._workspaceEdit.documentChanges.push(n2), i2 = new te(r2), this._textEditChanges[t2.uri] = i2; } return i2; } @@ -12166,8 +12166,8 @@ throw new Error("Workspace edit is not configured for normal text edit changes."); var i2; if (!(i2 = this._textEditChanges[e3])) { - var o2 = []; - this._workspaceEdit.changes[e3] = o2, i2 = new te(o2), this._textEditChanges[e3] = i2; + var r2 = []; + this._workspaceEdit.changes[e3] = r2, i2 = new te(r2), this._textEditChanges[e3] = i2; } return i2; }, e2.prototype.createFile = function(e3, t2) { @@ -12204,17 +12204,17 @@ }; }(I || (I = {})), function(e2) { e2.PlainText = "plaintext", e2.Markdown = "markdown"; - }(O || (O = {})), function(e2) { + }(D || (D = {})), function(e2) { e2.is = function(t2) { var n2 = t2; return n2 === e2.PlainText || n2 === e2.Markdown; }; - }(O || (O = {})), function(e2) { + }(D || (D = {})), function(e2) { e2.is = function(e3) { var t2 = e3; - return ie.objectLiteral(e3) && O.is(t2.kind) && ie.string(t2.value); + return ie.objectLiteral(e3) && D.is(t2.kind) && ie.string(t2.value); }; - }(D || (D = {})), function(e2) { + }(O || (O = {})), function(e2) { e2.Text = 1, e2.Method = 2, e2.Function = 3, e2.Constructor = 4, e2.Field = 5, e2.Variable = 6, e2.Class = 7, e2.Interface = 8, e2.Module = 9, e2.Property = 10, e2.Unit = 11, e2.Value = 12, e2.Enum = 13, e2.Keyword = 14, e2.Snippet = 15, e2.Color = 16, e2.File = 17, e2.Reference = 18, e2.Folder = 19, e2.EnumMember = 20, e2.Constant = 21, e2.Struct = 22, e2.Event = 23, e2.Operator = 24, e2.TypeParameter = 25; }(A || (A = {})), function(e2) { e2.PlainText = 1, e2.Snippet = 2; @@ -12238,7 +12238,7 @@ }(W || (W = {})), function(e2) { e2.is = function(e3) { var t2 = e3; - return !!t2 && ie.objectLiteral(t2) && (D.is(t2.contents) || W.is(t2.contents) || ie.typedArray(t2.contents, W.is)) && (e3.range === void 0 || o.is(e3.range)); + return !!t2 && ie.objectLiteral(t2) && (O.is(t2.contents) || W.is(t2.contents) || ie.typedArray(t2.contents, W.is)) && (e3.range === void 0 || r.is(e3.range)); }; }(z || (z = {})), function(e2) { e2.create = function(e3, t2) { @@ -12248,8 +12248,8 @@ e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {label: e3}; - return ie.defined(t2) && (o2.documentation = t2), ie.defined(n2) ? o2.parameters = n2 : o2.parameters = [], o2; + var r2 = {label: e3}; + return ie.defined(t2) && (r2.documentation = t2), ie.defined(n2) ? r2.parameters = n2 : r2.parameters = [], r2; }; }(j || (j = {})), function(e2) { e2.Text = 1, e2.Read = 2, e2.Write = 3; @@ -12263,17 +12263,17 @@ }(H || (H = {})), function(e2) { e2.Deprecated = 1; }(q || (q = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; - return o2 && (r2.containerName = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; + return r2 && (o2.containerName = r2), o2; }; }($ || ($ = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { - var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: o2}; - return r2 !== void 0 && (s2.children = r2), s2; + e2.create = function(e3, t2, n2, i2, r2, o2) { + var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: r2}; + return o2 !== void 0 && (s2.children = o2), s2; }, e2.is = function(e3) { var t2 = e3; - return t2 && ie.string(t2.name) && ie.number(t2.kind) && o.is(t2.range) && o.is(t2.selectionRange) && (t2.detail === void 0 || ie.string(t2.detail)) && (t2.deprecated === void 0 || ie.boolean(t2.deprecated)) && (t2.children === void 0 || Array.isArray(t2.children)); + return t2 && ie.string(t2.name) && ie.number(t2.kind) && r.is(t2.range) && r.is(t2.selectionRange) && (t2.detail === void 0 || ie.string(t2.detail)) && (t2.deprecated === void 0 || ie.boolean(t2.deprecated)) && (t2.children === void 0 || Array.isArray(t2.children)); }; }(K || (K = {})), function(e2) { e2.Empty = "", e2.QuickFix = "quickfix", e2.Refactor = "refactor", e2.RefactorExtract = "refactor.extract", e2.RefactorInline = "refactor.inline", e2.RefactorRewrite = "refactor.rewrite", e2.Source = "source", e2.SourceOrganizeImports = "source.organizeImports", e2.SourceFixAll = "source.fixAll"; @@ -12299,7 +12299,7 @@ return ie.defined(t2) && (n2.data = t2), n2; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && o.is(t2.range) && (ie.undefined(t2.command) || f.is(t2.command)); + return ie.defined(t2) && r.is(t2.range) && (ie.undefined(t2.command) || f.is(t2.command)); }; }(X || (X = {})), function(e2) { e2.create = function(e3, t2) { @@ -12313,20 +12313,20 @@ return {range: e3, target: t2, data: n2}; }, e2.is = function(e3) { var t2 = e3; - return ie.defined(t2) && o.is(t2.range) && (ie.undefined(t2.target) || ie.string(t2.target)); + return ie.defined(t2) && r.is(t2.range) && (ie.undefined(t2.target) || ie.string(t2.target)); }; }(J || (J = {})), function(e2) { e2.create = function(e3, t2) { return {range: e3, parent: t2}; }, e2.is = function(t2) { var n2 = t2; - return n2 !== void 0 && o.is(n2.range) && (n2.parent === void 0 || e2.is(n2.parent)); + return n2 !== void 0 && r.is(n2.range) && (n2.parent === void 0 || e2.is(n2.parent)); }; }(ee || (ee = {})); var ne; !function(e2) { e2.create = function(e3, t2, n2, i2) { - return new oe(e3, t2, n2, i2); + return new re(e3, t2, n2, i2); }, e2.is = function(e3) { var t2 = e3; return !!(ie.defined(t2) && ie.string(t2.uri) && (ie.undefined(t2.languageId) || ie.string(t2.languageId)) && ie.number(t2.lineCount) && ie.func(t2.getText) && ie.func(t2.positionAt) && ie.func(t2.offsetAt)); @@ -12334,31 +12334,31 @@ for (var n2 = e3.getText(), i2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2, function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }), o2 = n2.length, r2 = i2.length - 1; r2 >= 0; r2--) { - var s2 = i2[r2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); - if (!(l2 <= o2)) + }), r2 = n2.length, o2 = i2.length - 1; o2 >= 0; o2--) { + var s2 = i2[o2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); + if (!(l2 <= r2)) throw new Error("Overlapping edit"); - n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), o2 = a2; + n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), r2 = a2; } return n2; }; }(ne || (ne = {})); - var ie, oe = function() { + var ie, re = function() { function e2(e3, t2, n2, i2) { this._uri = e3, this._languageId = t2, this._version = n2, this._content = i2, this._lineOffsets = void 0; } @@ -12380,20 +12380,20 @@ if (this._lineOffsets === void 0) { for (var e3 = [], t2 = this._content, n2 = true, i2 = 0; i2 < t2.length; i2++) { n2 && (e3.push(i2), n2 = false); - var o2 = t2.charAt(i2); - n2 = o2 === "\r" || o2 === "\n", o2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; + var r2 = t2.charAt(i2); + n2 = r2 === "\r" || r2 === "\n", r2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; } n2 && t2.length > 0 && e3.push(t2.length), this._lineOffsets = e3; } return this._lineOffsets; }, e2.prototype.positionAt = function(e3) { e3 = Math.max(Math.min(e3, this._content.length), 0); - var t2 = this.getLineOffsets(), n2 = 0, o2 = t2.length; - if (o2 === 0) + var t2 = this.getLineOffsets(), n2 = 0, r2 = t2.length; + if (r2 === 0) return i.create(0, e3); - for (; n2 < o2; ) { - var r2 = Math.floor((n2 + o2) / 2); - t2[r2] > e3 ? o2 = r2 : n2 = r2 + 1; + for (; n2 < r2; ) { + var o2 = Math.floor((n2 + r2) / 2); + t2[o2] > e3 ? r2 = o2 : n2 = o2 + 1; } var s2 = n2 - 1; return i.create(s2, e3 - t2[s2]); @@ -12429,7 +12429,7 @@ return Array.isArray(e3) && e3.every(t3); }; }(ie || (ie = {})); - var re, se, ae, le = function() { + var oe, se, ae, le = function() { function e2(e3, t2, n2, i2) { this._uri = e3, this._languageId = t2, this._version = n2, this._content = i2, this._lineOffsets = void 0; } @@ -12446,25 +12446,25 @@ } return this._content; }, e2.prototype.update = function(t2, n2) { - for (var i2 = 0, o2 = t2; i2 < o2.length; i2++) { - var r2 = o2[i2]; - if (e2.isIncremental(r2)) { - var s2 = de(r2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); - this._content = this._content.substring(0, a2) + r2.text + this._content.substring(l2, this._content.length); - var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = ce(r2.text, false, a2); + for (var i2 = 0, r2 = t2; i2 < r2.length; i2++) { + var o2 = r2[i2]; + if (e2.isIncremental(o2)) { + var s2 = de(o2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); + this._content = this._content.substring(0, a2) + o2.text + this._content.substring(l2, this._content.length); + var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = ce(o2.text, false, a2); if (d2 - c2 === u2.length) for (var p2 = 0, m2 = u2.length; p2 < m2; p2++) h2[p2 + c2 + 1] = u2[p2]; else u2.length < 1e4 ? h2.splice.apply(h2, [c2 + 1, d2 - c2].concat(u2)) : this._lineOffsets = h2 = h2.slice(0, c2 + 1).concat(u2, h2.slice(d2 + 1)); - var g2 = r2.text.length - (l2 - a2); + var g2 = o2.text.length - (l2 - a2); if (g2 !== 0) for (p2 = c2 + 1 + u2.length, m2 = h2.length; p2 < m2; p2++) h2[p2] = h2[p2] + g2; } else { - if (!e2.isFull(r2)) + if (!e2.isFull(o2)) throw new Error("Unknown change event received"); - this._content = r2.text, this._lineOffsets = void 0; + this._content = o2.text, this._lineOffsets = void 0; } } this._version = n2; @@ -12476,11 +12476,11 @@ if (i2 === 0) return {line: 0, character: e3}; for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2[o2] > e3 ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2[r2] > e3 ? i2 = r2 : n2 = r2 + 1; } - var r2 = n2 - 1; - return {line: r2, character: e3 - t2[r2]}; + var o2 = n2 - 1; + return {line: o2, character: e3 - t2[o2]}; }, e2.prototype.offsetAt = function(e3) { var t2 = this.getLineOffsets(); if (e3.line >= t2.length) @@ -12501,9 +12501,9 @@ }(); function ce(e2, t2, n2) { n2 === void 0 && (n2 = 0); - for (var i2 = t2 ? [n2] : [], o2 = 0; o2 < e2.length; o2++) { - var r2 = e2.charCodeAt(o2); - r2 !== 13 && r2 !== 10 || (r2 === 13 && o2 + 1 < e2.length && e2.charCodeAt(o2 + 1) === 10 && o2++, i2.push(n2 + o2 + 1)); + for (var i2 = t2 ? [n2] : [], r2 = 0; r2 < e2.length; r2++) { + var o2 = e2.charCodeAt(r2); + o2 !== 13 && o2 !== 10 || (o2 === 13 && r2 + 1 < e2.length && e2.charCodeAt(r2 + 1) === 10 && r2++, i2.push(n2 + r2 + 1)); } return i2; } @@ -12537,35 +12537,35 @@ return e3.update(t2, n2), e3; throw new Error("TextDocument.update: document must be created by TextDocument.create"); }, e2.applyEdits = function(e3, t2) { - for (var n2 = e3.getText(), i2 = 0, o2 = [], r2 = 0, s2 = function e4(t3, n3) { + for (var n2 = e3.getText(), i2 = 0, r2 = [], o2 = 0, s2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2.map(he), function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }); r2 < s2.length; r2++) { - var a2 = s2[r2], l2 = e3.offsetAt(a2.range.start); + }); o2 < s2.length; o2++) { + var a2 = s2[o2], l2 = e3.offsetAt(a2.range.start); if (l2 < i2) throw new Error("Overlapping edit"); - l2 > i2 && o2.push(n2.substring(i2, l2)), a2.newText.length && o2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); + l2 > i2 && r2.push(n2.substring(i2, l2)), a2.newText.length && r2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); } - return o2.push(n2.substr(i2)), o2.join(""); + return r2.push(n2.substr(i2)), r2.join(""); }; - }(re || (re = {})), function(e2) { + }(oe || (oe = {})), function(e2) { e2[e2.Undefined = 0] = "Undefined", e2[e2.EnumValueMismatch = 1] = "EnumValueMismatch", e2[e2.UnexpectedEndOfComment = 257] = "UnexpectedEndOfComment", e2[e2.UnexpectedEndOfString = 258] = "UnexpectedEndOfString", e2[e2.UnexpectedEndOfNumber = 259] = "UnexpectedEndOfNumber", e2[e2.InvalidUnicode = 260] = "InvalidUnicode", e2[e2.InvalidEscapeCharacter = 261] = "InvalidEscapeCharacter", e2[e2.InvalidCharacter = 262] = "InvalidCharacter", e2[e2.PropertyExpected = 513] = "PropertyExpected", e2[e2.CommaExpected = 514] = "CommaExpected", e2[e2.ColonExpected = 515] = "ColonExpected", e2[e2.ValueExpected = 516] = "ValueExpected", e2[e2.CommaOrCloseBacketExpected = 517] = "CommaOrCloseBacketExpected", e2[e2.CommaOrCloseBraceExpected = 518] = "CommaOrCloseBraceExpected", e2[e2.TrailingComma = 519] = "TrailingComma", e2[e2.DuplicateKey = 520] = "DuplicateKey", e2[e2.CommentNotPermitted = 521] = "CommentNotPermitted", e2[e2.SchemaResolveError = 768] = "SchemaResolveError"; - }(se || (se = {})), (ae || (ae = {})).LATEST = {textDocument: {completion: {completionItem: {documentationFormat: [O.Markdown, O.PlainText], commitCharactersSupport: true}}}}; + }(se || (se = {})), (ae || (ae = {})).LATEST = {textDocument: {completion: {completionItem: {documentationFormat: [D.Markdown, D.PlainText], commitCharactersSupport: true}}}}; var ge, fe, be = (ge = function(e2, t2) { return (ge = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -12595,8 +12595,8 @@ return be(t2, e2), t2; }(we), Ce = function(e2) { function t2(t3, n2, i2) { - var o2 = e2.call(this, t3, i2) || this; - return o2.type = "boolean", o2.value = n2, o2; + var r2 = e2.call(this, t3, i2) || this; + return r2.type = "boolean", r2.value = n2, r2; } return be(t2, e2), t2; }(we), xe = function(e2) { @@ -12615,14 +12615,14 @@ return be(t2, e2), t2; }(we), ke = function(e2) { function t2(t3, n2, i2) { - var o2 = e2.call(this, t3, n2, i2) || this; - return o2.type = "string", o2.value = "", o2; + var r2 = e2.call(this, t3, n2, i2) || this; + return r2.type = "string", r2.value = "", r2; } return be(t2, e2), t2; }(we), Ee = function(e2) { function t2(t3, n2, i2) { - var o2 = e2.call(this, t3, n2) || this; - return o2.type = "property", o2.colonOffset = -1, o2.keyNode = i2, o2; + var r2 = e2.call(this, t3, n2) || this; + return r2.type = "property", r2.colonOffset = -1, r2.keyNode = i2, r2; } return be(t2, e2), Object.defineProperty(t2.prototype, "children", {get: function() { return this.valueNode ? [this.keyNode, this.valueNode] : [this.keyNode]; @@ -12667,7 +12667,7 @@ }, e2.prototype.newSub = function() { return this; }, e2.instance = new e2(), e2; - }(), Oe = function() { + }(), De = function() { function e2() { this.problems = [], this.propertiesMatches = 0, this.propertiesValueMatches = 0, this.primaryValueMatches = 0, this.enumValueMatch = false, this.enumValues = void 0; } @@ -12697,7 +12697,7 @@ return t2 !== e3.hasProblems() ? t2 ? -1 : 1 : this.enumValueMatch !== e3.enumValueMatch ? e3.enumValueMatch ? -1 : 1 : this.primaryValueMatches !== e3.primaryValueMatches ? this.primaryValueMatches - e3.primaryValueMatches : this.propertiesValueMatches !== e3.propertiesValueMatches ? this.propertiesValueMatches - e3.propertiesValueMatches : this.propertiesMatches - e3.propertiesMatches; }, e2; }(); - function De(e2) { + function Oe(e2) { return x.e(e2); } function Ae(e2) { @@ -12716,56 +12716,56 @@ }, e2.prototype.visit = function(e3) { if (this.root) { var t2 = function(n2) { - var i2 = e3(n2), o2 = n2.children; - if (Array.isArray(o2)) - for (var r2 = 0; r2 < o2.length && i2; r2++) - i2 = t2(o2[r2]); + var i2 = e3(n2), r2 = n2.children; + if (Array.isArray(r2)) + for (var o2 = 0; o2 < r2.length && i2; o2++) + i2 = t2(r2[o2]); return i2; }; t2(this.root); } }, e2.prototype.validate = function(e3, t2) { if (this.root && t2) { - var n2 = new Oe(); + var n2 = new De(); return Pe(this.root, t2, n2, Ie.instance), n2.problems.map(function(t3) { - var n3 = o.create(e3.positionAt(t3.location.offset), e3.positionAt(t3.location.offset + t3.location.length)); + var n3 = r.create(e3.positionAt(t3.location.offset), e3.positionAt(t3.location.offset + t3.location.length)); return g.create(n3, t3.message, t3.severity, t3.code); }); } }, e2.prototype.getMatchingSchemas = function(e3, t2, n2) { t2 === void 0 && (t2 = -1); var i2 = new Ne(t2, n2); - return this.root && e3 && Pe(this.root, e3, new Oe(), i2), i2.schemas; + return this.root && e3 && Pe(this.root, e3, new De(), i2), i2.schemas; }, e2; }(); function Pe(e2, t2, n2, i2) { if (e2 && i2.include(e2)) { - var o2 = e2; - switch (o2.type) { + var r2 = e2; + switch (r2.type) { case "object": !function(e3, t3, n3, i3) { - for (var o3 = Object.create(null), r2 = [], s2 = 0, a2 = e3.properties; s2 < a2.length; s2++) { + for (var r3 = Object.create(null), o2 = [], s2 = 0, a2 = e3.properties; s2 < a2.length; s2++) { var l2 = (v2 = a2[s2]).keyNode.value; - o3[l2] = v2.valueNode, r2.push(l2); + r3[l2] = v2.valueNode, o2.push(l2); } if (Array.isArray(t3.required)) for (var c2 = 0, d2 = t3.required; c2 < d2.length; c2++) { var h2 = d2[c2]; - if (!o3[h2]) { + if (!r3[h2]) { var u2 = e3.parent && e3.parent.type === "property" && e3.parent.keyNode, m2 = u2 ? {offset: u2.offset, length: u2.length} : {offset: e3.offset, length: 1}; n3.problems.push({location: m2, severity: p.Warning, message: _e("MissingRequiredPropWarning", 'Missing property "{0}".', h2)}); } } var g2 = function(e4) { - for (var t4 = r2.indexOf(e4); t4 >= 0; ) - r2.splice(t4, 1), t4 = r2.indexOf(e4); + for (var t4 = o2.indexOf(e4); t4 >= 0; ) + o2.splice(t4, 1), t4 = o2.indexOf(e4); }; if (t3.properties) for (var f2 = 0, b2 = Object.keys(t3.properties); f2 < b2.length; f2++) { h2 = b2[f2]; g2(h2); var _2 = t3.properties[h2]; - if (A2 = o3[h2]) + if (A2 = r3[h2]) if (T(_2)) if (_2) n3.propertiesMatches++, n3.propertiesValueMatches++; @@ -12774,16 +12774,16 @@ n3.problems.push({location: {offset: v2.keyNode.offset, length: v2.keyNode.length}, severity: p.Warning, message: t3.errorMessage || _e("DisallowedExtraPropWarning", "Property {0} is not allowed.", h2)}); } else { - var w2 = new Oe(); + var w2 = new De(); Pe(A2, _2, w2, i3), n3.mergePropertyMatch(w2); } } if (t3.patternProperties) for (var y2 = 0, C2 = Object.keys(t3.patternProperties); y2 < C2.length; y2++) - for (var x2 = C2[y2], S2 = new RegExp(x2), E2 = 0, L2 = r2.slice(0); E2 < L2.length; E2++) { + for (var x2 = C2[y2], S2 = new RegExp(x2), E2 = 0, L2 = o2.slice(0); E2 < L2.length; E2++) { h2 = L2[E2]; if (S2.test(h2)) { - if (g2(h2), A2 = o3[h2]) + if (g2(h2), A2 = r3[h2]) if (T(_2 = t3.patternProperties[x2])) if (_2) n3.propertiesMatches++, n3.propertiesValueMatches++; @@ -12792,24 +12792,24 @@ n3.problems.push({location: {offset: v2.keyNode.offset, length: v2.keyNode.length}, severity: p.Warning, message: t3.errorMessage || _e("DisallowedExtraPropWarning", "Property {0} is not allowed.", h2)}); } else { - w2 = new Oe(); + w2 = new De(); Pe(A2, _2, w2, i3), n3.mergePropertyMatch(w2); } } } if (typeof t3.additionalProperties == "object") - for (var N2 = 0, I2 = r2; N2 < I2.length; N2++) { + for (var N2 = 0, I2 = o2; N2 < I2.length; N2++) { h2 = I2[N2]; - if (A2 = o3[h2]) { - w2 = new Oe(); + if (A2 = r3[h2]) { + w2 = new De(); Pe(A2, t3.additionalProperties, w2, i3), n3.mergePropertyMatch(w2); } } - else if (t3.additionalProperties === false && r2.length > 0) - for (var O2 = 0, D2 = r2; O2 < D2.length; O2++) { + else if (t3.additionalProperties === false && o2.length > 0) + for (var D2 = 0, O2 = o2; D2 < O2.length; D2++) { var A2; - h2 = D2[O2]; - if (A2 = o3[h2]) { + h2 = O2[D2]; + if (A2 = r3[h2]) { v2 = A2.parent; n3.problems.push({location: {offset: v2.keyNode.offset, length: v2.keyNode.length}, severity: p.Warning, message: t3.errorMessage || _e("DisallowedExtraPropWarning", "Property {0} is not allowed.", h2)}); } @@ -12819,15 +12819,15 @@ if (t3.dependencies) for (var R2 = 0, M2 = Object.keys(t3.dependencies); R2 < M2.length; R2++) { l2 = M2[R2]; - if (o3[l2]) { + if (r3[l2]) { var P2 = t3.dependencies[l2]; if (Array.isArray(P2)) for (var F2 = 0, W2 = P2; F2 < W2.length; F2++) { var z2 = W2[F2]; - o3[z2] ? n3.propertiesValueMatches++ : n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("RequiredDependentPropWarning", "Object is missing property {0} required by property {1}.", z2, l2)}); + r3[z2] ? n3.propertiesValueMatches++ : n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("RequiredDependentPropWarning", "Object is missing property {0} required by property {1}.", z2, l2)}); } else if (_2 = Le(P2)) { - w2 = new Oe(); + w2 = new De(); Pe(e3, _2, w2, i3), n3.mergePropertyMatch(w2); } } @@ -12838,68 +12838,68 @@ var U2 = V2[j2]; (l2 = U2.keyNode) && Pe(l2, B2, n3, Ie.instance); } - }(o2, t2, n2, i2); + }(r2, t2, n2, i2); break; case "array": !function(e3, t3, n3, i3) { if (Array.isArray(t3.items)) { - for (var o3 = t3.items, r2 = 0; r2 < o3.length; r2++) { - var s2 = Le(o3[r2]), a2 = new Oe(); - (u2 = e3.items[r2]) ? (Pe(u2, s2, a2, i3), n3.mergePropertyMatch(a2)) : e3.items.length >= o3.length && n3.propertiesValueMatches++; + for (var r3 = t3.items, o2 = 0; o2 < r3.length; o2++) { + var s2 = Le(r3[o2]), a2 = new De(); + (u2 = e3.items[o2]) ? (Pe(u2, s2, a2, i3), n3.mergePropertyMatch(a2)) : e3.items.length >= r3.length && n3.propertiesValueMatches++; } - if (e3.items.length > o3.length) + if (e3.items.length > r3.length) if (typeof t3.additionalItems == "object") - for (var l2 = o3.length; l2 < e3.items.length; l2++) { - a2 = new Oe(); + for (var l2 = r3.length; l2 < e3.items.length; l2++) { + a2 = new De(); Pe(e3.items[l2], t3.additionalItems, a2, i3), n3.mergePropertyMatch(a2); } else - t3.additionalItems === false && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("additionalItemsWarning", "Array has too many items according to schema. Expected {0} or fewer.", o3.length)}); + t3.additionalItems === false && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("additionalItemsWarning", "Array has too many items according to schema. Expected {0} or fewer.", r3.length)}); } else { var c2 = Le(t3.items); if (c2) for (var d2 = 0, h2 = e3.items; d2 < h2.length; d2++) { var u2 = h2[d2]; - a2 = new Oe(); + a2 = new De(); Pe(u2, c2, a2, i3), n3.mergePropertyMatch(a2); } } var m2 = Le(t3.contains); if (m2) { e3.items.some(function(e4) { - var t4 = new Oe(); + var t4 = new De(); return Pe(e4, m2, t4, Ie.instance), !t4.hasProblems(); }) || n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: t3.errorMessage || _e("requiredItemMissingWarning", "Array does not contain required item.")}); } k(t3.minItems) && e3.items.length < t3.minItems && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("minItemsWarning", "Array has too few items. Expected {0} or more.", t3.minItems)}); k(t3.maxItems) && e3.items.length > t3.maxItems && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("maxItemsWarning", "Array has too many items. Expected {0} or fewer.", t3.maxItems)}); if (t3.uniqueItems === true) { - var g2 = De(e3); + var g2 = Oe(e3); g2.some(function(e4, t4) { return t4 !== g2.lastIndexOf(e4); }) && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("uniqueItemsWarning", "Array has duplicate items.")}); } - }(o2, t2, n2, i2); + }(r2, t2, n2, i2); break; case "string": !function(e3, t3, n3, i3) { k(t3.minLength) && e3.value.length < t3.minLength && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("minLengthWarning", "String is shorter than the minimum length of {0}.", t3.minLength)}); k(t3.maxLength) && e3.value.length > t3.maxLength && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("maxLengthWarning", "String is longer than the maximum length of {0}.", t3.maxLength)}); - if (o3 = t3.pattern, typeof o3 == "string") { + if (r3 = t3.pattern, typeof r3 == "string") { new RegExp(t3.pattern).test(e3.value) || n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: t3.patternErrorMessage || t3.errorMessage || _e("patternWarning", 'String does not match the pattern of "{0}".', t3.pattern)}); } - var o3; + var r3; if (t3.format) switch (t3.format) { case "uri": case "uri-reference": - var r2 = void 0; + var o2 = void 0; if (e3.value) { var s2 = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e3.value); - s2 ? s2[2] || t3.format !== "uri" || (r2 = _e("uriSchemeMissing", "URI with a scheme is expected.")) : r2 = _e("uriMissing", "URI is expected."); + s2 ? s2[2] || t3.format !== "uri" || (o2 = _e("uriSchemeMissing", "URI with a scheme is expected.")) : o2 = _e("uriMissing", "URI is expected."); } else - r2 = _e("uriEmpty", "URI expected."); - r2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: t3.patternErrorMessage || t3.errorMessage || _e("uriFormatWarning", "String is not a URI: {0}", r2)}); + o2 = _e("uriEmpty", "URI expected."); + o2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: t3.patternErrorMessage || t3.errorMessage || _e("uriFormatWarning", "String is not a URI: {0}", o2)}); break; case "color-hex": case "date-time": @@ -12909,21 +12909,21 @@ var a2 = ve[t3.format]; e3.value && a2.pattern.exec(e3.value) || n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: t3.patternErrorMessage || t3.errorMessage || a2.errorMessage}); } - }(o2, t2, n2); + }(r2, t2, n2); break; case "number": !function(e3, t3, n3, i3) { - var o3 = e3.value; - function r2(e4) { + var r3 = e3.value; + function o2(e4) { var t4, n4 = /^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e4.toString()); return n4 && {value: Number(n4[1] + (n4[2] || "")), multiplier: (((t4 = n4[2]) === null || t4 === void 0 ? void 0 : t4.length) || 0) - (parseInt(n4[3]) || 0)}; } if (k(t3.multipleOf)) { var s2 = -1; if (Number.isInteger(t3.multipleOf)) - s2 = o3 % t3.multipleOf; + s2 = r3 % t3.multipleOf; else { - var a2 = r2(t3.multipleOf), l2 = r2(o3); + var a2 = o2(t3.multipleOf), l2 = o2(r3); if (a2 && l2) { var c2 = Math.pow(10, Math.abs(l2.multiplier - a2.multiplier)); l2.multiplier < a2.multiplier ? l2.value *= c2 : a2.value *= c2, s2 = l2.value % a2.value; @@ -12939,41 +12939,41 @@ return e4; } var u2 = d2(t3.minimum, t3.exclusiveMinimum); - k(u2) && o3 <= u2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("exclusiveMinimumWarning", "Value is below the exclusive minimum of {0}.", u2)}); + k(u2) && r3 <= u2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("exclusiveMinimumWarning", "Value is below the exclusive minimum of {0}.", u2)}); var m2 = d2(t3.maximum, t3.exclusiveMaximum); - k(m2) && o3 >= m2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("exclusiveMaximumWarning", "Value is above the exclusive maximum of {0}.", m2)}); + k(m2) && r3 >= m2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("exclusiveMaximumWarning", "Value is above the exclusive maximum of {0}.", m2)}); var g2 = h2(t3.minimum, t3.exclusiveMinimum); - k(g2) && o3 < g2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("minimumWarning", "Value is below the minimum of {0}.", g2)}); + k(g2) && r3 < g2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("minimumWarning", "Value is below the minimum of {0}.", g2)}); var f2 = h2(t3.maximum, t3.exclusiveMaximum); - k(f2) && o3 > f2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("maximumWarning", "Value is above the maximum of {0}.", f2)}); - }(o2, t2, n2); + k(f2) && r3 > f2 && n3.problems.push({location: {offset: e3.offset, length: e3.length}, severity: p.Warning, message: _e("maximumWarning", "Value is above the maximum of {0}.", f2)}); + }(r2, t2, n2); break; case "property": - return Pe(o2.valueNode, t2, n2, i2); + return Pe(r2.valueNode, t2, n2, i2); } !function() { function e3(e4) { - return o2.type === e4 || e4 === "integer" && o2.type === "number" && o2.isInteger; + return r2.type === e4 || e4 === "integer" && r2.type === "number" && r2.isInteger; } - Array.isArray(t2.type) ? t2.type.some(e3) || n2.problems.push({location: {offset: o2.offset, length: o2.length}, severity: p.Warning, message: t2.errorMessage || _e("typeArrayMismatchWarning", "Incorrect type. Expected one of {0}.", t2.type.join(", "))}) : t2.type && (e3(t2.type) || n2.problems.push({location: {offset: o2.offset, length: o2.length}, severity: p.Warning, message: t2.errorMessage || _e("typeMismatchWarning", 'Incorrect type. Expected "{0}".', t2.type)})); + Array.isArray(t2.type) ? t2.type.some(e3) || n2.problems.push({location: {offset: r2.offset, length: r2.length}, severity: p.Warning, message: t2.errorMessage || _e("typeArrayMismatchWarning", "Incorrect type. Expected one of {0}.", t2.type.join(", "))}) : t2.type && (e3(t2.type) || n2.problems.push({location: {offset: r2.offset, length: r2.length}, severity: p.Warning, message: t2.errorMessage || _e("typeMismatchWarning", 'Incorrect type. Expected "{0}".', t2.type)})); if (Array.isArray(t2.allOf)) - for (var r2 = 0, s2 = t2.allOf; r2 < s2.length; r2++) { - var a2 = s2[r2]; - Pe(o2, Le(a2), n2, i2); + for (var o2 = 0, s2 = t2.allOf; o2 < s2.length; o2++) { + var a2 = s2[o2]; + Pe(r2, Le(a2), n2, i2); } var l2 = Le(t2.not); if (l2) { - var c2 = new Oe(), d2 = i2.newSub(); - Pe(o2, l2, c2, d2), c2.hasProblems() || n2.problems.push({location: {offset: o2.offset, length: o2.length}, severity: p.Warning, message: _e("notSchemaWarning", "Matches a schema that is not allowed.")}); + var c2 = new De(), d2 = i2.newSub(); + Pe(r2, l2, c2, d2), c2.hasProblems() || n2.problems.push({location: {offset: r2.offset, length: r2.length}, severity: p.Warning, message: _e("notSchemaWarning", "Matches a schema that is not allowed.")}); for (var h2 = 0, u2 = d2.schemas; h2 < u2.length; h2++) { var m2 = u2[h2]; m2.inverted = !m2.inverted, i2.add(m2); } } var g2 = function(e4, t3) { - for (var r3 = [], s3 = void 0, a3 = 0, l3 = e4; a3 < l3.length; a3++) { - var c3 = Le(l3[a3]), d3 = new Oe(), h3 = i2.newSub(); - if (Pe(o2, c3, d3, h3), d3.hasProblems() || r3.push(c3), s3) + for (var o3 = [], s3 = void 0, a3 = 0, l3 = e4; a3 < l3.length; a3++) { + var c3 = Le(l3[a3]), d3 = new De(), h3 = i2.newSub(); + if (Pe(r2, c3, d3, h3), d3.hasProblems() || o3.push(c3), s3) if (t3 || d3.hasProblems() || s3.validationResult.hasProblems()) { var u3 = d3.compare(s3.validationResult); u3 > 0 ? s3 = {schema: c3, validationResult: d3, matchingSchemas: h3} : u3 === 0 && (s3.matchingSchemas.merge(h3), s3.validationResult.mergeEnumValues(d3)); @@ -12982,46 +12982,46 @@ else s3 = {schema: c3, validationResult: d3, matchingSchemas: h3}; } - return r3.length > 1 && t3 && n2.problems.push({location: {offset: o2.offset, length: 1}, severity: p.Warning, message: _e("oneOfWarning", "Matches multiple schemas when only one must validate.")}), s3 && (n2.merge(s3.validationResult), n2.propertiesMatches += s3.validationResult.propertiesMatches, n2.propertiesValueMatches += s3.validationResult.propertiesValueMatches, i2.merge(s3.matchingSchemas)), r3.length; + return o3.length > 1 && t3 && n2.problems.push({location: {offset: r2.offset, length: 1}, severity: p.Warning, message: _e("oneOfWarning", "Matches multiple schemas when only one must validate.")}), s3 && (n2.merge(s3.validationResult), n2.propertiesMatches += s3.validationResult.propertiesMatches, n2.propertiesValueMatches += s3.validationResult.propertiesValueMatches, i2.merge(s3.matchingSchemas)), o3.length; }; Array.isArray(t2.anyOf) && g2(t2.anyOf, false); Array.isArray(t2.oneOf) && g2(t2.oneOf, true); var f2 = function(e4) { - var t3 = new Oe(), r3 = i2.newSub(); - Pe(o2, Le(e4), t3, r3), n2.merge(t3), n2.propertiesMatches += t3.propertiesMatches, n2.propertiesValueMatches += t3.propertiesValueMatches, i2.merge(r3); + var t3 = new De(), o3 = i2.newSub(); + Pe(r2, Le(e4), t3, o3), n2.merge(t3), n2.propertiesMatches += t3.propertiesMatches, n2.propertiesValueMatches += t3.propertiesValueMatches, i2.merge(o3); }, b2 = Le(t2.if); b2 && function(e4, t3, n3) { - var r3 = Le(e4), s3 = new Oe(), a3 = i2.newSub(); - Pe(o2, r3, s3, a3), i2.merge(a3), s3.hasProblems() ? n3 && f2(n3) : t3 && f2(t3); + var o3 = Le(e4), s3 = new De(), a3 = i2.newSub(); + Pe(r2, o3, s3, a3), i2.merge(a3), s3.hasProblems() ? n3 && f2(n3) : t3 && f2(t3); }(b2, Le(t2.then), Le(t2.else)); if (Array.isArray(t2.enum)) { - for (var _2 = De(o2), v2 = false, w2 = 0, y2 = t2.enum; w2 < y2.length; w2++) { + for (var _2 = Oe(r2), v2 = false, w2 = 0, y2 = t2.enum; w2 < y2.length; w2++) { var C2 = y2[w2]; if (S(_2, C2)) { v2 = true; break; } } - n2.enumValues = t2.enum, n2.enumValueMatch = v2, v2 || n2.problems.push({location: {offset: o2.offset, length: o2.length}, severity: p.Warning, code: se.EnumValueMismatch, message: t2.errorMessage || _e("enumWarning", "Value is not accepted. Valid values: {0}.", t2.enum.map(function(e4) { + n2.enumValues = t2.enum, n2.enumValueMatch = v2, v2 || n2.problems.push({location: {offset: r2.offset, length: r2.length}, severity: p.Warning, code: se.EnumValueMismatch, message: t2.errorMessage || _e("enumWarning", "Value is not accepted. Valid values: {0}.", t2.enum.map(function(e4) { return JSON.stringify(e4); }).join(", "))}); } if (E(t2.const)) { - S(_2 = De(o2), t2.const) ? n2.enumValueMatch = true : (n2.problems.push({location: {offset: o2.offset, length: o2.length}, severity: p.Warning, code: se.EnumValueMismatch, message: t2.errorMessage || _e("constWarning", "Value must be {0}.", JSON.stringify(t2.const))}), n2.enumValueMatch = false), n2.enumValues = [t2.const]; + S(_2 = Oe(r2), t2.const) ? n2.enumValueMatch = true : (n2.problems.push({location: {offset: r2.offset, length: r2.length}, severity: p.Warning, code: se.EnumValueMismatch, message: t2.errorMessage || _e("constWarning", "Value must be {0}.", JSON.stringify(t2.const))}), n2.enumValueMatch = false), n2.enumValues = [t2.const]; } - t2.deprecationMessage && o2.parent && n2.problems.push({location: {offset: o2.parent.offset, length: o2.parent.length}, severity: p.Warning, message: t2.deprecationMessage}); - }(), i2.add({node: o2, schema: t2}); + t2.deprecationMessage && r2.parent && n2.problems.push({location: {offset: r2.parent.offset, length: r2.parent.length}, severity: p.Warning, message: t2.deprecationMessage}); + }(), i2.add({node: r2, schema: t2}); } } function Fe(e2, t2) { - var n2 = [], i2 = -1, r2 = e2.getText(), s2 = x.a(r2, false), a2 = t2 && t2.collectComments ? [] : void 0; + var n2 = [], i2 = -1, o2 = e2.getText(), s2 = x.a(o2, false), a2 = t2 && t2.collectComments ? [] : void 0; function l2() { for (; ; ) { var t3 = s2.scan(); switch (h2(), t3) { case 12: case 13: - Array.isArray(a2) && a2.push(o.create(e2.positionAt(s2.getTokenOffset()), e2.positionAt(s2.getTokenOffset() + s2.getTokenLength()))); + Array.isArray(a2) && a2.push(r.create(e2.positionAt(s2.getTokenOffset()), e2.positionAt(s2.getTokenOffset() + s2.getTokenLength()))); break; case 15: case 14: @@ -13031,27 +13031,27 @@ } } } - function c2(t3, r3, s3, a3, l3) { + function c2(t3, o3, s3, a3, l3) { if (l3 === void 0 && (l3 = p.Error), n2.length === 0 || s3 !== i2) { - var c3 = o.create(e2.positionAt(s3), e2.positionAt(a3)); - n2.push(g.create(c3, t3, l3, r3, e2.languageId)), i2 = s3; + var c3 = r.create(e2.positionAt(s3), e2.positionAt(a3)); + n2.push(g.create(c3, t3, l3, o3, e2.languageId)), i2 = s3; } } - function d2(e3, t3, n3, i3, o2) { - n3 === void 0 && (n3 = void 0), i3 === void 0 && (i3 = []), o2 === void 0 && (o2 = []); + function d2(e3, t3, n3, i3, r2) { + n3 === void 0 && (n3 = void 0), i3 === void 0 && (i3 = []), r2 === void 0 && (r2 = []); var a3 = s2.getTokenOffset(), d3 = s2.getTokenOffset() + s2.getTokenLength(); if (a3 === d3 && a3 > 0) { - for (a3--; a3 > 0 && /\s/.test(r2.charAt(a3)); ) + for (a3--; a3 > 0 && /\s/.test(o2.charAt(a3)); ) a3--; d3 = a3 + 1; } - if (c2(e3, t3, a3, d3), n3 && u2(n3, false), i3.length + o2.length > 0) + if (c2(e3, t3, a3, d3), n3 && u2(n3, false), i3.length + r2.length > 0) for (var h3 = s2.getToken(); h3 !== 17; ) { if (i3.indexOf(h3) !== -1) { l2(); break; } - if (o2.indexOf(h3) !== -1) + if (r2.indexOf(h3) !== -1) break; h3 = l2(); } @@ -13079,20 +13079,20 @@ } var m2 = new ke(void 0, 0, 0); function f2(t3, n3) { - var i3 = new Ee(t3, s2.getTokenOffset(), m2), o2 = b2(i3); - if (!o2) { + var i3 = new Ee(t3, s2.getTokenOffset(), m2), r2 = b2(i3); + if (!r2) { if (s2.getToken() !== 16) return; d2(_e("DoubleQuotesExpected", "Property keys must be doublequoted"), se.Undefined); - var r3 = new ke(i3, s2.getTokenOffset(), s2.getTokenLength()); - r3.value = s2.getTokenValue(), o2 = r3, l2(); + var o3 = new ke(i3, s2.getTokenOffset(), s2.getTokenLength()); + o3.value = s2.getTokenValue(), r2 = o3, l2(); } - i3.keyNode = o2; - var a3 = n3[o2.value]; - if (a3 ? (c2(_e("DuplicateKeyWarning", "Duplicate object key"), se.DuplicateKey, i3.keyNode.offset, i3.keyNode.offset + i3.keyNode.length, p.Warning), typeof a3 == "object" && c2(_e("DuplicateKeyWarning", "Duplicate object key"), se.DuplicateKey, a3.keyNode.offset, a3.keyNode.offset + a3.keyNode.length, p.Warning), n3[o2.value] = true) : n3[o2.value] = i3, s2.getToken() === 6) + i3.keyNode = r2; + var a3 = n3[r2.value]; + if (a3 ? (c2(_e("DuplicateKeyWarning", "Duplicate object key"), se.DuplicateKey, i3.keyNode.offset, i3.keyNode.offset + i3.keyNode.length, p.Warning), typeof a3 == "object" && c2(_e("DuplicateKeyWarning", "Duplicate object key"), se.DuplicateKey, a3.keyNode.offset, a3.keyNode.offset + a3.keyNode.length, p.Warning), n3[r2.value] = true) : n3[r2.value] = i3, s2.getToken() === 6) i3.colonOffset = s2.getTokenOffset(), l2(); - else if (d2(_e("ColonExpected", "Colon expected"), se.ColonExpected), s2.getToken() === 10 && e2.positionAt(o2.offset + o2.length).line < e2.positionAt(s2.getTokenOffset()).line) - return i3.length = o2.length, i3; + else if (d2(_e("ColonExpected", "Colon expected"), se.ColonExpected), s2.getToken() === 10 && e2.positionAt(r2.offset + r2.length).line < e2.positionAt(s2.getTokenOffset()).line) + return i3.length = r2.length, i3; var h3 = _2(i3); return h3 ? (i3.valueNode = h3, i3.length = h3.offset + h3.length - i3.offset, i3) : d2(_e("ValueExpected", "Value expected"), se.ValueExpected, i3, [], [2, 5]); } @@ -13117,8 +13117,8 @@ } } else n3 && d2(_e("ExpectedComma", "Expected comma"), se.CommaExpected); - var o2 = _2(t3); - o2 ? t3.items.push(o2) : d2(_e("PropertyExpected", "Value expected"), se.ValueExpected, void 0, [], [4, 5]), n3 = true; + var r2 = _2(t3); + r2 ? t3.items.push(r2) : d2(_e("PropertyExpected", "Value expected"), se.ValueExpected, void 0, [], [4, 5]), n3 = true; } return s2.getToken() !== 4 ? d2(_e("ExpectedCloseBracket", "Expected comma or closing bracket"), se.CommaOrCloseBacketExpected, t3) : u2(t3, true); } @@ -13129,15 +13129,15 @@ for (var i3 = false; s2.getToken() !== 2 && s2.getToken() !== 17; ) { if (s2.getToken() === 5) { i3 || d2(_e("PropertyExpected", "Property expected"), se.PropertyExpected); - var o2 = s2.getTokenOffset(); + var r2 = s2.getTokenOffset(); if (l2(), s2.getToken() === 2) { - i3 && c2(_e("TrailingComma", "Trailing comma"), se.TrailingComma, o2, o2 + 1); + i3 && c2(_e("TrailingComma", "Trailing comma"), se.TrailingComma, r2, r2 + 1); continue; } } else i3 && d2(_e("ExpectedComma", "Expected comma"), se.CommaExpected); - var r3 = f2(t3, n3); - r3 ? t3.properties.push(r3) : d2(_e("PropertyExpected", "Property expected"), se.PropertyExpected, void 0, [], [2, 5]), i3 = true; + var o3 = f2(t3, n3); + o3 ? t3.properties.push(o3) : d2(_e("PropertyExpected", "Property expected"), se.PropertyExpected, void 0, [], [2, 5]), i3 = true; } return s2.getToken() !== 2 ? d2(_e("ExpectedCloseBrace", "Expected comma or closing brace"), se.CommaOrCloseBraceExpected, t3) : u2(t3, true); } @@ -13196,9 +13196,9 @@ } return this.promiseConstructor.resolve(e3); }, e2.prototype.doComplete = function(e3, t2, n2) { - var i2 = this, r2 = {items: [], isIncomplete: false}, s2 = e3.getText(), a2 = e3.offsetAt(t2), l2 = n2.getNodeFromOffset(a2, true); + var i2 = this, o2 = {items: [], isIncomplete: false}, s2 = e3.getText(), a2 = e3.offsetAt(t2), l2 = n2.getNodeFromOffset(a2, true); if (this.isInComment(e3, l2 ? l2.offset : 0, a2)) - return Promise.resolve(r2); + return Promise.resolve(o2); if (l2 && a2 === l2.offset + l2.length && a2 > 0) { var c2 = s2[a2 - 1]; (l2.type === "object" && c2 === "}" || l2.type === "array" && c2 === "]") && (l2 = l2.parent); @@ -13206,9 +13206,9 @@ var d2, h2 = this.getCurrentWord(e3, a2); if (!l2 || l2.type !== "string" && l2.type !== "number" && l2.type !== "boolean" && l2.type !== "null") { var u2 = a2 - h2.length; - u2 > 0 && s2[u2 - 1] === '"' && u2--, d2 = o.create(e3.positionAt(u2), t2); + u2 > 0 && s2[u2 - 1] === '"' && u2--, d2 = r.create(e3.positionAt(u2), t2); } else - d2 = o.create(e3.positionAt(l2.offset), e3.positionAt(l2.offset + l2.length)); + d2 = r.create(e3.positionAt(l2.offset), e3.positionAt(l2.offset + l2.length)); var p2 = {}, m2 = {add: function(e4) { var t3 = e4.label, n3 = p2[t3]; if (n3) @@ -13218,26 +13218,26 @@ var i3 = t3.substr(0, 57).trim() + "..."; p2[i3] || (t3 = i3); } - d2 && e4.insertText !== void 0 && (e4.textEdit = b.replace(d2, e4.insertText)), e4.label = t3, p2[t3] = e4, r2.items.push(e4); + d2 && e4.insertText !== void 0 && (e4.textEdit = b.replace(d2, e4.insertText)), e4.label = t3, p2[t3] = e4, o2.items.push(e4); } }, setAsIncomplete: function() { - r2.isIncomplete = true; + o2.isIncomplete = true; }, error: function(e4) { console.error(e4); }, log: function(e4) { console.log(e4); }, getNumberOfProposals: function() { - return r2.items.length; + return o2.items.length; }}; return this.schemaService.getSchemaForResource(e3.uri, n2).then(function(t3) { - var o2 = [], c3 = true, u3 = "", g2 = void 0; + var r2 = [], c3 = true, u3 = "", g2 = void 0; if (l2 && l2.type === "string") { var f2 = l2.parent; f2 && f2.type === "property" && f2.keyNode === l2 && (c3 = !f2.valueNode, g2 = f2, u3 = s2.substr(l2.offset + 1, l2.length - 2), f2 && (l2 = f2.parent)); } if (l2 && l2.type === "object") { if (l2.offset === a2) - return r2; + return o2; l2.properties.forEach(function(e4) { g2 && g2 === e4 || (p2[e4.keyNode.value] = P.create("__")); }); @@ -13246,21 +13246,21 @@ var _2 = Ae(l2); i2.contributions.forEach(function(t4) { var n3 = t4.collectPropertyCompletions(e3.uri, _2, h2, c3, b2 === "", m2); - n3 && o2.push(n3); + n3 && r2.push(n3); }), !t3 && h2.length > 0 && s2.charAt(a2 - h2.length - 1) !== '"' && (m2.add({kind: A.Property, label: i2.getLabelForValue(h2), insertText: i2.getInsertTextForProperty(h2, void 0, false, b2), insertTextFormat: R.Snippet, documentation: ""}), m2.setAsIncomplete()); } var v2 = {}; - return t3 ? i2.getValueCompletions(t3, n2, l2, a2, e3, m2, v2) : i2.getSchemaLessValueCompletions(n2, l2, a2, e3, m2), i2.contributions.length > 0 && i2.getContributedValueCompletions(n2, l2, a2, e3, m2, o2), i2.promiseConstructor.all(o2).then(function() { + return t3 ? i2.getValueCompletions(t3, n2, l2, a2, e3, m2, v2) : i2.getSchemaLessValueCompletions(n2, l2, a2, e3, m2), i2.contributions.length > 0 && i2.getContributedValueCompletions(n2, l2, a2, e3, m2, r2), i2.promiseConstructor.all(r2).then(function() { if (m2.getNumberOfProposals() === 0) { var t4 = a2; !l2 || l2.type !== "string" && l2.type !== "number" && l2.type !== "boolean" && l2.type !== "null" || (t4 = l2.offset + l2.length); var n3 = i2.evaluateSeparatorAfter(e3, t4); i2.addFillerValueCompletions(v2, n3, m2); } - return r2; + return o2; }); }); - }, e2.prototype.getPropertyCompletions = function(e3, t2, n2, i2, o2, r2) { + }, e2.prototype.getPropertyCompletions = function(e3, t2, n2, i2, r2, o2) { var s2 = this; t2.getMatchingSchemas(e3.schema, n2.offset).forEach(function(e4) { if (e4.node === n2 && !e4.inverted) { @@ -13268,16 +13268,16 @@ t3 && Object.keys(t3).forEach(function(e5) { var n3 = t3[e5]; if (typeof n3 == "object" && !n3.deprecationMessage && !n3.doNotSuggest) { - var a3 = {kind: A.Property, label: e5, insertText: s2.getInsertTextForProperty(e5, n3, i2, o2), insertTextFormat: R.Snippet, filterText: s2.getFilterTextForValue(e5), documentation: s2.fromMarkup(n3.markdownDescription) || n3.description || ""}; - n3.suggestSortText !== void 0 && (a3.sortText = n3.suggestSortText), a3.insertText && We(a3.insertText, "$1" + o2) && (a3.command = {title: "Suggest", command: "editor.action.triggerSuggest"}), r2.add(a3); + var a3 = {kind: A.Property, label: e5, insertText: s2.getInsertTextForProperty(e5, n3, i2, r2), insertTextFormat: R.Snippet, filterText: s2.getFilterTextForValue(e5), documentation: s2.fromMarkup(n3.markdownDescription) || n3.description || ""}; + n3.suggestSortText !== void 0 && (a3.sortText = n3.suggestSortText), a3.insertText && We(a3.insertText, "$1" + r2) && (a3.command = {title: "Suggest", command: "editor.action.triggerSuggest"}), o2.add(a3); } }); var a2 = e4.schema.propertyNames; if (typeof a2 == "object" && !a2.deprecationMessage && !a2.doNotSuggest) { var l2 = function(e5, t4) { t4 === void 0 && (t4 = void 0); - var n3 = {kind: A.Property, label: e5, insertText: s2.getInsertTextForProperty(e5, void 0, i2, o2), insertTextFormat: R.Snippet, filterText: s2.getFilterTextForValue(e5), documentation: t4 || s2.fromMarkup(a2.markdownDescription) || a2.description || ""}; - a2.suggestSortText !== void 0 && (n3.sortText = a2.suggestSortText), n3.insertText && We(n3.insertText, "$1" + o2) && (n3.command = {title: "Suggest", command: "editor.action.triggerSuggest"}), r2.add(n3); + var n3 = {kind: A.Property, label: e5, insertText: s2.getInsertTextForProperty(e5, void 0, i2, r2), insertTextFormat: R.Snippet, filterText: s2.getFilterTextForValue(e5), documentation: t4 || s2.fromMarkup(a2.markdownDescription) || a2.description || ""}; + a2.suggestSortText !== void 0 && (n3.sortText = a2.suggestSortText), n3.insertText && We(n3.insertText, "$1" + r2) && (n3.command = {title: "Suggest", command: "editor.action.triggerSuggest"}), o2.add(n3); }; if (a2.enum) for (var c2 = 0; c2 < a2.enum.length; c2++) { @@ -13289,30 +13289,30 @@ } }); }, e2.prototype.getSchemaLessPropertyCompletions = function(e3, t2, n2, i2) { - var o2 = this, r2 = function(e4) { + var r2 = this, o2 = function(e4) { e4.properties.forEach(function(e5) { var t3 = e5.keyNode.value; - i2.add({kind: A.Property, label: t3, insertText: o2.getInsertTextForValue(t3, ""), insertTextFormat: R.Snippet, filterText: o2.getFilterTextForValue(t3), documentation: ""}); + i2.add({kind: A.Property, label: t3, insertText: r2.getInsertTextForValue(t3, ""), insertTextFormat: R.Snippet, filterText: r2.getFilterTextForValue(t3), documentation: ""}); }); }; if (t2.parent) if (t2.parent.type === "property") { var s2 = t2.parent.keyNode.value; e3.visit(function(e4) { - return e4.type === "property" && e4 !== t2.parent && e4.keyNode.value === s2 && e4.valueNode && e4.valueNode.type === "object" && r2(e4.valueNode), true; + return e4.type === "property" && e4 !== t2.parent && e4.keyNode.value === s2 && e4.valueNode && e4.valueNode.type === "object" && o2(e4.valueNode), true; }); } else t2.parent.type === "array" && t2.parent.items.forEach(function(e4) { - e4.type === "object" && e4 !== t2 && r2(e4); + e4.type === "object" && e4 !== t2 && o2(e4); }); else t2.type === "object" && i2.add({kind: A.Property, label: "$schema", insertText: this.getInsertTextForProperty("$schema", void 0, true, ""), insertTextFormat: R.Snippet, documentation: "", filterText: this.getFilterTextForValue("$schema")}); - }, e2.prototype.getSchemaLessValueCompletions = function(e3, t2, n2, i2, o2) { - var r2 = this, s2 = n2; + }, e2.prototype.getSchemaLessValueCompletions = function(e3, t2, n2, i2, r2) { + var o2 = this, s2 = n2; if (!t2 || t2.type !== "string" && t2.type !== "number" && t2.type !== "boolean" && t2.type !== "null" || (s2 = t2.offset + t2.length, t2 = t2.parent), !t2) - return o2.add({kind: this.getSuggestionKind("object"), label: "Empty object", insertText: this.getInsertTextForValue({}, ""), insertTextFormat: R.Snippet, documentation: ""}), void o2.add({kind: this.getSuggestionKind("array"), label: "Empty array", insertText: this.getInsertTextForValue([], ""), insertTextFormat: R.Snippet, documentation: ""}); + return r2.add({kind: this.getSuggestionKind("object"), label: "Empty object", insertText: this.getInsertTextForValue({}, ""), insertTextFormat: R.Snippet, documentation: ""}), void r2.add({kind: this.getSuggestionKind("array"), label: "Empty array", insertText: this.getInsertTextForValue([], ""), insertTextFormat: R.Snippet, documentation: ""}); var a2 = this.evaluateSeparatorAfter(i2, s2), l2 = function(e4) { - e4.parent && !Re(e4.parent, n2, true) && o2.add({kind: r2.getSuggestionKind(e4.type), label: r2.getLabelTextForMatchingNode(e4, i2), insertText: r2.getInsertTextForMatchingNode(e4, i2, a2), insertTextFormat: R.Snippet, documentation: ""}), e4.type === "boolean" && r2.addBooleanValueCompletion(!e4.value, a2, o2); + e4.parent && !Re(e4.parent, n2, true) && r2.add({kind: o2.getSuggestionKind(e4.type), label: o2.getLabelTextForMatchingNode(e4, i2), insertText: o2.getInsertTextForMatchingNode(e4, i2, a2), insertTextFormat: R.Snippet, documentation: ""}), e4.type === "boolean" && o2.addBooleanValueCompletion(!e4.value, a2, r2); }; if (t2.type === "property" && n2 > (t2.colonOffset || 0)) { var c2 = t2.valueNode; @@ -13321,7 +13321,7 @@ var d2 = t2.keyNode.value; e3.visit(function(e4) { return e4.type === "property" && e4.keyNode.value === d2 && e4.valueNode && l2(e4.valueNode), true; - }), d2 === "$schema" && t2.parent && !t2.parent.parent && this.addDollarSchemaCompletions(a2, o2); + }), d2 === "$schema" && t2.parent && !t2.parent.parent && this.addDollarSchemaCompletions(a2, r2); } if (t2.type === "array") if (t2.parent && t2.parent.type === "property") { @@ -13331,7 +13331,7 @@ }); } else t2.items.forEach(l2); - }, e2.prototype.getValueCompletions = function(e3, t2, n2, i2, o2, r2, s2) { + }, e2.prototype.getValueCompletions = function(e3, t2, n2, i2, r2, o2, s2) { var a2 = i2, l2 = void 0, c2 = void 0; if (!n2 || n2.type !== "string" && n2.type !== "number" && n2.type !== "boolean" && n2.type !== "null" || (a2 = n2.offset + n2.length, c2 = n2, n2 = n2.parent), n2) { if (n2.type === "property" && i2 > (n2.colonOffset || 0)) { @@ -13341,85 +13341,85 @@ l2 = n2.keyNode.value, n2 = n2.parent; } if (n2 && (l2 !== void 0 || n2.type === "array")) { - for (var h2 = this.evaluateSeparatorAfter(o2, a2), u2 = 0, p2 = t2.getMatchingSchemas(e3.schema, n2.offset, c2); u2 < p2.length; u2++) { + for (var h2 = this.evaluateSeparatorAfter(r2, a2), u2 = 0, p2 = t2.getMatchingSchemas(e3.schema, n2.offset, c2); u2 < p2.length; u2++) { var m2 = p2[u2]; if (m2.node === n2 && !m2.inverted && m2.schema) { if (n2.type === "array" && m2.schema.items) if (Array.isArray(m2.schema.items)) { - var g2 = this.findItemAtOffset(n2, o2, i2); - g2 < m2.schema.items.length && this.addSchemaValueCompletions(m2.schema.items[g2], h2, r2, s2); + var g2 = this.findItemAtOffset(n2, r2, i2); + g2 < m2.schema.items.length && this.addSchemaValueCompletions(m2.schema.items[g2], h2, o2, s2); } else - this.addSchemaValueCompletions(m2.schema.items, h2, r2, s2); + this.addSchemaValueCompletions(m2.schema.items, h2, o2, s2); if (l2 !== void 0) { var f2 = false; if (m2.schema.properties) - (w2 = m2.schema.properties[l2]) && (f2 = true, this.addSchemaValueCompletions(w2, h2, r2, s2)); + (w2 = m2.schema.properties[l2]) && (f2 = true, this.addSchemaValueCompletions(w2, h2, o2, s2)); if (m2.schema.patternProperties && !f2) for (var b2 = 0, _2 = Object.keys(m2.schema.patternProperties); b2 < _2.length; b2++) { var v2 = _2[b2]; if (new RegExp(v2).test(l2)) { f2 = true; var w2 = m2.schema.patternProperties[v2]; - this.addSchemaValueCompletions(w2, h2, r2, s2); + this.addSchemaValueCompletions(w2, h2, o2, s2); } } if (m2.schema.additionalProperties && !f2) { w2 = m2.schema.additionalProperties; - this.addSchemaValueCompletions(w2, h2, r2, s2); + this.addSchemaValueCompletions(w2, h2, o2, s2); } } } } - l2 !== "$schema" || n2.parent || this.addDollarSchemaCompletions(h2, r2), s2.boolean && (this.addBooleanValueCompletion(true, h2, r2), this.addBooleanValueCompletion(false, h2, r2)), s2.null && this.addNullValueCompletion(h2, r2); + l2 !== "$schema" || n2.parent || this.addDollarSchemaCompletions(h2, o2), s2.boolean && (this.addBooleanValueCompletion(true, h2, o2), this.addBooleanValueCompletion(false, h2, o2)), s2.null && this.addNullValueCompletion(h2, o2); } } else - this.addSchemaValueCompletions(e3.schema, "", r2, s2); - }, e2.prototype.getContributedValueCompletions = function(e3, t2, n2, i2, o2, r2) { + this.addSchemaValueCompletions(e3.schema, "", o2, s2); + }, e2.prototype.getContributedValueCompletions = function(e3, t2, n2, i2, r2, o2) { if (t2) { if (t2.type !== "string" && t2.type !== "number" && t2.type !== "boolean" && t2.type !== "null" || (t2 = t2.parent), t2 && t2.type === "property" && n2 > (t2.colonOffset || 0)) { var s2 = t2.keyNode.value, a2 = t2.valueNode; if ((!a2 || n2 <= a2.offset + a2.length) && t2.parent) { var l2 = Ae(t2.parent); this.contributions.forEach(function(e4) { - var t3 = e4.collectValueCompletions(i2.uri, l2, s2, o2); - t3 && r2.push(t3); + var t3 = e4.collectValueCompletions(i2.uri, l2, s2, r2); + t3 && o2.push(t3); }); } } } else this.contributions.forEach(function(e4) { - var t3 = e4.collectDefaultCompletions(i2.uri, o2); - t3 && r2.push(t3); + var t3 = e4.collectDefaultCompletions(i2.uri, r2); + t3 && o2.push(t3); }); }, e2.prototype.addSchemaValueCompletions = function(e3, t2, n2, i2) { - var o2 = this; + var r2 = this; typeof e3 == "object" && (this.addEnumValueCompletions(e3, t2, n2), this.addDefaultValueCompletions(e3, t2, n2), this.collectTypes(e3, i2), Array.isArray(e3.allOf) && e3.allOf.forEach(function(e4) { - return o2.addSchemaValueCompletions(e4, t2, n2, i2); + return r2.addSchemaValueCompletions(e4, t2, n2, i2); }), Array.isArray(e3.anyOf) && e3.anyOf.forEach(function(e4) { - return o2.addSchemaValueCompletions(e4, t2, n2, i2); + return r2.addSchemaValueCompletions(e4, t2, n2, i2); }), Array.isArray(e3.oneOf) && e3.oneOf.forEach(function(e4) { - return o2.addSchemaValueCompletions(e4, t2, n2, i2); + return r2.addSchemaValueCompletions(e4, t2, n2, i2); })); }, e2.prototype.addDefaultValueCompletions = function(e3, t2, n2, i2) { - var o2 = this; + var r2 = this; i2 === void 0 && (i2 = 0); - var r2 = false; + var o2 = false; if (E(e3.default)) { for (var s2 = e3.type, a2 = e3.default, l2 = i2; l2 > 0; l2--) a2 = [a2], s2 = "array"; - n2.add({kind: this.getSuggestionKind(s2), label: this.getLabelForValue(a2), insertText: this.getInsertTextForValue(a2, t2), insertTextFormat: R.Snippet, detail: Be("json.suggest.default", "Default value")}), r2 = true; + n2.add({kind: this.getSuggestionKind(s2), label: this.getLabelForValue(a2), insertText: this.getInsertTextForValue(a2, t2), insertTextFormat: R.Snippet, detail: Be("json.suggest.default", "Default value")}), o2 = true; } Array.isArray(e3.examples) && e3.examples.forEach(function(s3) { for (var a3 = e3.type, l3 = s3, c2 = i2; c2 > 0; c2--) l3 = [l3], a3 = "array"; - n2.add({kind: o2.getSuggestionKind(a3), label: o2.getLabelForValue(l3), insertText: o2.getInsertTextForValue(l3, t2), insertTextFormat: R.Snippet}), r2 = true; + n2.add({kind: r2.getSuggestionKind(a3), label: r2.getLabelForValue(l3), insertText: r2.getInsertTextForValue(l3, t2), insertTextFormat: R.Snippet}), o2 = true; }), Array.isArray(e3.defaultSnippets) && e3.defaultSnippets.forEach(function(s3) { var a3, l3, c2 = e3.type, d2 = s3.body, h2 = s3.label; if (E(d2)) { e3.type; for (var u2 = i2; u2 > 0; u2--) d2 = [d2], "array"; - a3 = o2.getInsertTextForSnippetValue(d2, t2), l3 = o2.getFilterTextForSnippetValue(d2), h2 = h2 || o2.getLabelForSnippetValue(d2); + a3 = r2.getInsertTextForSnippetValue(d2, t2), l3 = r2.getFilterTextForSnippetValue(d2), h2 = h2 || r2.getLabelForSnippetValue(d2); } else { if (typeof s3.bodyText != "string") return; @@ -13428,13 +13428,13 @@ p2 = p2 + g2 + "[\n", m2 = m2 + "\n" + g2 + "]", g2 += " ", c2 = "array"; a3 = p2 + g2 + s3.bodyText.split("\n").join("\n" + g2) + m2 + t2, h2 = h2 || a3, l3 = a3.replace(/[\n]/g, ""); } - n2.add({kind: o2.getSuggestionKind(c2), label: h2, documentation: o2.fromMarkup(s3.markdownDescription) || s3.description, insertText: a3, insertTextFormat: R.Snippet, filterText: l3}), r2 = true; - }), !r2 && typeof e3.items == "object" && !Array.isArray(e3.items) && i2 < 5 && this.addDefaultValueCompletions(e3.items, t2, n2, i2 + 1); + n2.add({kind: r2.getSuggestionKind(c2), label: h2, documentation: r2.fromMarkup(s3.markdownDescription) || s3.description, insertText: a3, insertTextFormat: R.Snippet, filterText: l3}), o2 = true; + }), !o2 && typeof e3.items == "object" && !Array.isArray(e3.items) && i2 < 5 && this.addDefaultValueCompletions(e3.items, t2, n2, i2 + 1); }, e2.prototype.addEnumValueCompletions = function(e3, t2, n2) { if (E(e3.const) && n2.add({kind: this.getSuggestionKind(e3.type), label: this.getLabelForValue(e3.const), insertText: this.getInsertTextForValue(e3.const, t2), insertTextFormat: R.Snippet, documentation: this.fromMarkup(e3.markdownDescription) || e3.description}), Array.isArray(e3.enum)) - for (var i2 = 0, o2 = e3.enum.length; i2 < o2; i2++) { - var r2 = e3.enum[i2], s2 = this.fromMarkup(e3.markdownDescription) || e3.description; - e3.markdownEnumDescriptions && i2 < e3.markdownEnumDescriptions.length && this.doesSupportMarkdown() ? s2 = this.fromMarkup(e3.markdownEnumDescriptions[i2]) : e3.enumDescriptions && i2 < e3.enumDescriptions.length && (s2 = e3.enumDescriptions[i2]), n2.add({kind: this.getSuggestionKind(e3.type), label: this.getLabelForValue(r2), insertText: this.getInsertTextForValue(r2, t2), insertTextFormat: R.Snippet, documentation: s2}); + for (var i2 = 0, r2 = e3.enum.length; i2 < r2; i2++) { + var o2 = e3.enum[i2], s2 = this.fromMarkup(e3.markdownDescription) || e3.description; + e3.markdownEnumDescriptions && i2 < e3.markdownEnumDescriptions.length && this.doesSupportMarkdown() ? s2 = this.fromMarkup(e3.markdownEnumDescriptions[i2]) : e3.enumDescriptions && i2 < e3.enumDescriptions.length && (s2 = e3.enumDescriptions[i2]), n2.add({kind: this.getSuggestionKind(e3.type), label: this.getLabelForValue(o2), insertText: this.getInsertTextForValue(o2, t2), insertTextFormat: R.Snippet, documentation: s2}); } }, e2.prototype.collectTypes = function(e3, t2) { if (!Array.isArray(e3.enum) && !E(e3.const)) { @@ -13472,22 +13472,22 @@ }, e2.prototype.getInsertTextForSnippetValue = function(e3, t2) { return function e4(t3, n2, i2) { if (t3 !== null && typeof t3 == "object") { - var o2 = n2 + " "; + var r2 = n2 + " "; if (Array.isArray(t3)) { if (t3.length === 0) return "[]"; - for (var r2 = "[\n", s2 = 0; s2 < t3.length; s2++) - r2 += o2 + e4(t3[s2], o2, i2), s2 < t3.length - 1 && (r2 += ","), r2 += "\n"; - return r2 += n2 + "]"; + for (var o2 = "[\n", s2 = 0; s2 < t3.length; s2++) + o2 += r2 + e4(t3[s2], r2, i2), s2 < t3.length - 1 && (o2 += ","), o2 += "\n"; + return o2 += n2 + "]"; } var a2 = Object.keys(t3); if (a2.length === 0) return "{}"; - for (r2 = "{\n", s2 = 0; s2 < a2.length; s2++) { + for (o2 = "{\n", s2 = 0; s2 < a2.length; s2++) { var l2 = a2[s2]; - r2 += o2 + JSON.stringify(l2) + ": " + e4(t3[l2], o2, i2), s2 < a2.length - 1 && (r2 += ","), r2 += "\n"; + o2 += r2 + JSON.stringify(l2) + ": " + e4(t3[l2], r2, i2), s2 < a2.length - 1 && (o2 += ","), o2 += "\n"; } - return r2 += n2 + "}"; + return o2 += n2 + "}"; } return i2(t3); }(e3, "", function(e4) { @@ -13542,46 +13542,46 @@ return this.getInsertTextForPlainText(i2); } }, e2.prototype.getInsertTextForProperty = function(e3, t2, n2, i2) { - var o2 = this.getInsertTextForValue(e3, ""); + var r2 = this.getInsertTextForValue(e3, ""); if (!n2) - return o2; - var r2, s2 = o2 + ": ", a2 = 0; + return r2; + var o2, s2 = r2 + ": ", a2 = 0; if (t2) { if (Array.isArray(t2.defaultSnippets)) { if (t2.defaultSnippets.length === 1) { var l2 = t2.defaultSnippets[0].body; - E(l2) && (r2 = this.getInsertTextForSnippetValue(l2, "")); + E(l2) && (o2 = this.getInsertTextForSnippetValue(l2, "")); } a2 += t2.defaultSnippets.length; } - if (t2.enum && (r2 || t2.enum.length !== 1 || (r2 = this.getInsertTextForGuessedValue(t2.enum[0], "")), a2 += t2.enum.length), E(t2.default) && (r2 || (r2 = this.getInsertTextForGuessedValue(t2.default, "")), a2++), Array.isArray(t2.examples) && t2.examples.length && (r2 || (r2 = this.getInsertTextForGuessedValue(t2.examples[0], "")), a2 += t2.examples.length), a2 === 0) { + if (t2.enum && (o2 || t2.enum.length !== 1 || (o2 = this.getInsertTextForGuessedValue(t2.enum[0], "")), a2 += t2.enum.length), E(t2.default) && (o2 || (o2 = this.getInsertTextForGuessedValue(t2.default, "")), a2++), Array.isArray(t2.examples) && t2.examples.length && (o2 || (o2 = this.getInsertTextForGuessedValue(t2.examples[0], "")), a2 += t2.examples.length), a2 === 0) { var c2 = Array.isArray(t2.type) ? t2.type[0] : t2.type; switch (c2 || (t2.properties ? c2 = "object" : t2.items && (c2 = "array")), c2) { case "boolean": - r2 = "$1"; + o2 = "$1"; break; case "string": - r2 = '"$1"'; + o2 = '"$1"'; break; case "object": - r2 = "{$1}"; + o2 = "{$1}"; break; case "array": - r2 = "[$1]"; + o2 = "[$1]"; break; case "number": case "integer": - r2 = "${1:0}"; + o2 = "${1:0}"; break; case "null": - r2 = "${1:null}"; + o2 = "${1:null}"; break; default: - return o2; + return r2; } } } - return (!r2 || a2 > 1) && (r2 = "$1"), s2 + r2 + i2; + return (!o2 || a2 > 1) && (o2 = "$1"), s2 + o2 + i2; }, e2.prototype.getCurrentWord = function(e3, t2) { for (var n2 = t2 - 1, i2 = e3.getText(); n2 >= 0 && ' \n\r\v":{[,]}'.indexOf(i2.charAt(n2)) === -1; ) n2--; @@ -13598,27 +13598,27 @@ return ","; } }, e2.prototype.findItemAtOffset = function(e3, t2, n2) { - for (var i2 = x.a(t2.getText(), true), o2 = e3.items, r2 = o2.length - 1; r2 >= 0; r2--) { - var s2 = o2[r2]; + for (var i2 = x.a(t2.getText(), true), r2 = e3.items, o2 = r2.length - 1; o2 >= 0; o2--) { + var s2 = r2[o2]; if (n2 > s2.offset + s2.length) - return i2.setPosition(s2.offset + s2.length), i2.scan() === 5 && n2 >= i2.getTokenOffset() + i2.getTokenLength() ? r2 + 1 : r2; + return i2.setPosition(s2.offset + s2.length), i2.scan() === 5 && n2 >= i2.getTokenOffset() + i2.getTokenLength() ? o2 + 1 : o2; if (n2 >= s2.offset) - return r2; + return o2; } return 0; }, e2.prototype.isInComment = function(e3, t2, n2) { var i2 = x.a(e3.getText(), false); i2.setPosition(t2); - for (var o2 = i2.scan(); o2 !== 17 && i2.getTokenOffset() + i2.getTokenLength() < n2; ) - o2 = i2.scan(); - return (o2 === 12 || o2 === 13) && i2.getTokenOffset() <= n2; + for (var r2 = i2.scan(); r2 !== 17 && i2.getTokenOffset() + i2.getTokenLength() < n2; ) + r2 = i2.scan(); + return (r2 === 12 || r2 === 13) && i2.getTokenOffset() <= n2; }, e2.prototype.fromMarkup = function(e3) { if (e3 && this.doesSupportMarkdown()) - return {kind: O.Markdown, value: e3}; + return {kind: D.Markdown, value: e3}; }, e2.prototype.doesSupportMarkdown = function() { if (!E(this.supportsMarkdown)) { var e3 = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion; - this.supportsMarkdown = e3 && e3.completionItem && Array.isArray(e3.completionItem.documentationFormat) && e3.completionItem.documentationFormat.indexOf(O.Markdown) !== -1; + this.supportsMarkdown = e3 && e3.completionItem && Array.isArray(e3.completionItem.documentationFormat) && e3.completionItem.documentationFormat.indexOf(D.Markdown) !== -1; } return this.supportsMarkdown; }, e2.prototype.doesSupportsCommitCharacters = function() { @@ -13633,18 +13633,18 @@ t2 === void 0 && (t2 = []), this.schemaService = e3, this.contributions = t2, this.promise = n2 || Promise; } return e2.prototype.doHover = function(e3, t2, n2) { - var i2 = e3.offsetAt(t2), r2 = n2.getNodeFromOffset(i2); - if (!r2 || (r2.type === "object" || r2.type === "array") && i2 > r2.offset + 1 && i2 < r2.offset + r2.length - 1) + var i2 = e3.offsetAt(t2), o2 = n2.getNodeFromOffset(i2); + if (!o2 || (o2.type === "object" || o2.type === "array") && i2 > o2.offset + 1 && i2 < o2.offset + o2.length - 1) return this.promise.resolve(null); - var s2 = r2; - if (r2.type === "string") { - var a2 = r2.parent; - if (a2 && a2.type === "property" && a2.keyNode === r2 && !(r2 = a2.valueNode)) + var s2 = o2; + if (o2.type === "string") { + var a2 = o2.parent; + if (a2 && a2.type === "property" && a2.keyNode === o2 && !(o2 = a2.valueNode)) return this.promise.resolve(null); } - for (var l2 = o.create(e3.positionAt(s2.offset), e3.positionAt(s2.offset + s2.length)), c2 = function(e4) { + for (var l2 = r.create(e3.positionAt(s2.offset), e3.positionAt(s2.offset + s2.length)), c2 = function(e4) { return {contents: e4, range: l2}; - }, d2 = Ae(r2), h2 = this.contributions.length - 1; h2 >= 0; h2--) { + }, d2 = Ae(o2), h2 = this.contributions.length - 1; h2 >= 0; h2--) { var u2 = this.contributions[h2].getInfoContribution(e3.uri, d2); if (u2) return u2.then(function(e4) { @@ -13652,17 +13652,17 @@ }); } return this.schemaService.getSchemaForResource(e3.uri, n2).then(function(e4) { - if (e4 && r2) { - var t3 = n2.getMatchingSchemas(e4.schema, r2.offset), i3 = void 0, o2 = void 0, s3 = void 0, a3 = void 0; + if (e4 && o2) { + var t3 = n2.getMatchingSchemas(e4.schema, o2.offset), i3 = void 0, r2 = void 0, s3 = void 0, a3 = void 0; t3.every(function(e5) { - if (e5.node === r2 && !e5.inverted && e5.schema && (i3 = i3 || e5.schema.title, o2 = o2 || e5.schema.markdownDescription || Ue(e5.schema.description), e5.schema.enum)) { - var t4 = e5.schema.enum.indexOf(De(r2)); + if (e5.node === o2 && !e5.inverted && e5.schema && (i3 = i3 || e5.schema.title, r2 = r2 || e5.schema.markdownDescription || Ue(e5.schema.description), e5.schema.enum)) { + var t4 = e5.schema.enum.indexOf(Oe(o2)); e5.schema.markdownEnumDescriptions ? s3 = e5.schema.markdownEnumDescriptions[t4] : e5.schema.enumDescriptions && (s3 = Ue(e5.schema.enumDescriptions[t4])), s3 && typeof (a3 = e5.schema.enum[t4]) != "string" && (a3 = JSON.stringify(a3)); } return true; }); var l3 = ""; - return i3 && (l3 = Ue(i3)), o2 && (l3.length > 0 && (l3 += "\n\n"), l3 += o2), s3 && (l3.length > 0 && (l3 += "\n\n"), l3 += "`" + function(e5) { + return i3 && (l3 = Ue(i3)), r2 && (l3.length > 0 && (l3 += "\n\n"), l3 += r2), s3 && (l3.length > 0 && (l3 += "\n\n"), l3 += "`" + function(e5) { if (e5.indexOf("`") !== -1) return "`` " + e5 + " ``"; return e5; @@ -13681,8 +13681,8 @@ this.patternRegExps = [], this.isInclude = []; try { for (var n2 = 0, i2 = e3; n2 < i2.length; n2++) { - var o2 = i2[n2], r2 = o2[0] !== "!"; - r2 || (o2 = o2.substring(1)), this.patternRegExps.push(new RegExp(ze(o2) + "$")), this.isInclude.push(r2); + var r2 = i2[n2], o2 = r2[0] !== "!"; + o2 || (r2 = r2.substring(1)), this.patternRegExps.push(new RegExp(ze(r2) + "$")), this.isInclude.push(o2); } this.uris = t2; } catch (e4) { @@ -13728,10 +13728,10 @@ if (t2.properties && (t2.properties[n2], 1)) return this.getSectionRecursive(e3, t2.properties[n2]); if (t2.patternProperties) - for (var i2 = 0, o2 = Object.keys(t2.patternProperties); i2 < o2.length; i2++) { - var r2 = o2[i2]; - if (new RegExp(r2).test(n2)) - return this.getSectionRecursive(e3, t2.patternProperties[r2]); + for (var i2 = 0, r2 = Object.keys(t2.patternProperties); i2 < r2.length; i2++) { + var o2 = r2[i2]; + if (new RegExp(o2).test(n2)) + return this.getSectionRecursive(e3, t2.patternProperties[o2]); } else { if (typeof t2.additionalProperties == "object") @@ -13761,12 +13761,12 @@ for (; this.callOnDispose.length > 0; ) this.callOnDispose.pop()(); }, e2.prototype.onResourceChange = function(e3) { - for (var t2 = this, n2 = false, i2 = [e3 = Qe(e3)], o2 = Object.keys(this.schemasById).map(function(e4) { + for (var t2 = this, n2 = false, i2 = [e3 = Qe(e3)], r2 = Object.keys(this.schemasById).map(function(e4) { return t2.schemasById[e4]; }); i2.length; ) - for (var r2 = i2.pop(), s2 = 0; s2 < o2.length; s2++) { - var a2 = o2[s2]; - a2 && (a2.url === r2 || a2.dependencies[r2]) && (a2.url !== r2 && i2.push(a2.url), a2.clearSchema(), o2[s2] = void 0, n2 = true); + for (var o2 = i2.pop(), s2 = 0; s2 < r2.length; s2++) { + var a2 = r2[s2]; + a2 && (a2.url === o2 || a2.dependencies[o2]) && (a2.url !== o2 && i2.push(a2.url), a2.clearSchema(), r2[s2] = void 0, n2 = true); } return n2; }, e2.prototype.setSchemaContributions = function(e3) { @@ -13778,8 +13778,8 @@ } } if (Array.isArray(e3.schemaAssociations)) - for (var o2 = 0, r2 = e3.schemaAssociations; o2 < r2.length; o2++) { - var s2 = r2[o2], a2 = s2.uris.map(Qe), l2 = this.addFilePatternAssociation(s2.pattern, a2); + for (var r2 = 0, o2 = e3.schemaAssociations; r2 < o2.length; r2++) { + var s2 = o2[r2], a2 = s2.uris.map(Qe), l2 = this.addFilePatternAssociation(s2.pattern, a2); this.contributionAssociations.push(l2); } }, e2.prototype.addSchemaHandle = function(e3, t2) { @@ -13813,94 +13813,94 @@ var n2 = qe("json.schema.nocontent", "Unable to load schema from '{0}': No content.", Je(e3)); return new Ge({}, [n2]); } - var i2, o2 = []; - i2 = x.f(t3, o2); - var r2 = o2.length ? [qe("json.schema.invalidFormat", "Unable to parse content from '{0}': Parse error at offset {1}.", Je(e3), o2[0].offset)] : []; - return new Ge(i2, r2); + var i2, r2 = []; + i2 = x.f(t3, r2); + var o2 = r2.length ? [qe("json.schema.invalidFormat", "Unable to parse content from '{0}': Parse error at offset {1}.", Je(e3), r2[0].offset)] : []; + return new Ge(i2, o2); }, function(t3) { var n2 = t3.toString(), i2 = t3.toString().split("Error: "); return i2.length > 1 && (n2 = i2[1]), We(n2, ".") && (n2 = n2.substr(0, n2.length - 1)), new Ge({}, [qe("json.schema.nocontent", "Unable to load schema from '{0}': {1}.", Je(e3), n2)]); }); }, e2.prototype.resolveSchemaContent = function(e3, t2, n2) { - var i2 = this, o2 = e3.errors.slice(0), r2 = e3.schema; - if (r2.$schema) { - var s2 = Qe(r2.$schema); + var i2 = this, r2 = e3.errors.slice(0), o2 = e3.schema; + if (o2.$schema) { + var s2 = Qe(o2.$schema); if (s2 === "http://json-schema.org/draft-03/schema") return this.promise.resolve(new Ye({}, [qe("json.schema.draft03.notsupported", "Draft-03 schemas are not supported.")])); - s2 === "https://json-schema.org/draft/2019-09/schema" && o2.push(qe("json.schema.draft201909.notsupported", "Draft 2019-09 schemas are not yet fully supported.")); + s2 === "https://json-schema.org/draft/2019-09/schema" && r2.push(qe("json.schema.draft201909.notsupported", "Draft 2019-09 schemas are not yet fully supported.")); } var a2 = this.contextService, l2 = function(e4, t3, n3, i3) { - var r3 = i3 ? decodeURIComponent(i3) : void 0, s3 = function(e5, t4) { + var o3 = i3 ? decodeURIComponent(i3) : void 0, s3 = function(e5, t4) { if (!t4) return e5; var n4 = e5; return t4[0] === "/" && (t4 = t4.substr(1)), t4.split("/").some(function(e6) { return !(n4 = n4[e6]); }), n4; - }(t3, r3); + }(t3, o3); if (s3) for (var a3 in s3) s3.hasOwnProperty(a3) && !e4.hasOwnProperty(a3) && (e4[a3] = s3[a3]); else - o2.push(qe("json.schema.invalidref", "$ref '{0}' in '{1}' can not be resolved.", r3, n3)); - }, c2 = function(e4, t3, n3, r3, s3) { - a2 && !/^\w+:\/\/.*/.test(t3) && (t3 = a2.resolveRelativePath(t3, r3)), t3 = Qe(t3); + r2.push(qe("json.schema.invalidref", "$ref '{0}' in '{1}' can not be resolved.", o3, n3)); + }, c2 = function(e4, t3, n3, o3, s3) { + a2 && !/^\w+:\/\/.*/.test(t3) && (t3 = a2.resolveRelativePath(t3, o3)), t3 = Qe(t3); var c3 = i2.getOrAddSchemaHandle(t3); return c3.getUnresolvedSchema().then(function(i3) { if (s3[t3] = true, i3.errors.length) { - var r4 = n3 ? t3 + "#" + n3 : t3; - o2.push(qe("json.schema.problemloadingref", "Problems loading reference '{0}': {1}", r4, i3.errors[0])); + var o4 = n3 ? t3 + "#" + n3 : t3; + r2.push(qe("json.schema.problemloadingref", "Problems loading reference '{0}': {1}", o4, i3.errors[0])); } return l2(e4, i3.schema, t3, n3), d2(e4, i3.schema, t3, c3.dependencies); }); - }, d2 = function(e4, t3, n3, o3) { + }, d2 = function(e4, t3, n3, r3) { if (!e4 || typeof e4 != "object") return Promise.resolve(null); - for (var r3 = [e4], s3 = [], a3 = [], d3 = function(e5) { + for (var o3 = [e4], s3 = [], a3 = [], d3 = function(e5) { for (var i3 = []; e5.$ref; ) { var s4 = e5.$ref, d4 = s4.split("#", 2); if (delete e5.$ref, d4[0].length > 0) - return void a3.push(c2(e5, d4[0], d4[1], n3, o3)); + return void a3.push(c2(e5, d4[0], d4[1], n3, r3)); i3.indexOf(s4) === -1 && (l2(e5, t3, n3, d4[1]), i3.push(s4)); } !function() { for (var e6 = [], t4 = 0; t4 < arguments.length; t4++) e6[t4] = arguments[t4]; for (var n4 = 0, i4 = e6; n4 < i4.length; n4++) { - var o4 = i4[n4]; - typeof o4 == "object" && r3.push(o4); + var r4 = i4[n4]; + typeof r4 == "object" && o3.push(r4); } }(e5.items, e5.additionalItems, e5.additionalProperties, e5.not, e5.contains, e5.propertyNames, e5.if, e5.then, e5.else), function() { for (var e6 = [], t4 = 0; t4 < arguments.length; t4++) e6[t4] = arguments[t4]; for (var n4 = 0, i4 = e6; n4 < i4.length; n4++) { - var o4 = i4[n4]; - if (typeof o4 == "object") - for (var s5 in o4) { - var a4 = s5, l3 = o4[a4]; - typeof l3 == "object" && r3.push(l3); + var r4 = i4[n4]; + if (typeof r4 == "object") + for (var s5 in r4) { + var a4 = s5, l3 = r4[a4]; + typeof l3 == "object" && o3.push(l3); } } }(e5.definitions, e5.properties, e5.patternProperties, e5.dependencies), function() { for (var e6 = [], t4 = 0; t4 < arguments.length; t4++) e6[t4] = arguments[t4]; for (var n4 = 0, i4 = e6; n4 < i4.length; n4++) { - var o4 = i4[n4]; - if (Array.isArray(o4)) - for (var s5 = 0, a4 = o4; s5 < a4.length; s5++) { + var r4 = i4[n4]; + if (Array.isArray(r4)) + for (var s5 = 0, a4 = r4; s5 < a4.length; s5++) { var l3 = a4[s5]; - typeof l3 == "object" && r3.push(l3); + typeof l3 == "object" && o3.push(l3); } } }(e5.anyOf, e5.allOf, e5.oneOf, e5.items); - }; r3.length; ) { - var h2 = r3.pop(); + }; o3.length; ) { + var h2 = o3.pop(); s3.indexOf(h2) >= 0 || (s3.push(h2), d3(h2)); } return i2.promise.all(a3); }; - return d2(r2, r2, t2, n2).then(function(e4) { - return new Ye(r2, o2); + return d2(o2, o2, t2, n2).then(function(e4) { + return new Ye(o2, r2); }); }, e2.prototype.getSchemaForResource = function(e3, t2) { if (t2 && t2.root && t2.root.type === "object") { @@ -13910,17 +13910,17 @@ if (n2.length > 0) { var i2 = n2[0].valueNode; if (i2 && i2.type === "string") { - var o2 = De(i2); - if (o2 && function(e4, t3) { + var r2 = Oe(i2); + if (r2 && function(e4, t3) { if (e4.length < t3.length) return false; for (var n3 = 0; n3 < t3.length; n3++) if (e4[n3] !== t3[n3]) return false; return true; - }(o2, ".") && this.contextService && (o2 = this.contextService.resolveRelativePath(o2, e3)), o2) { - var r2 = Qe(o2); - return this.getOrAddSchemaHandle(r2).getResolvedSchema(); + }(r2, ".") && this.contextService && (r2 = this.contextService.resolveRelativePath(r2, e3)), r2) { + var o2 = Qe(r2); + return this.getOrAddSchemaHandle(o2).getResolvedSchema(); } } } @@ -13983,22 +13983,22 @@ return e2.prototype.configure = function(e3) { e3 && (this.validationEnabled = e3.validate, this.commentSeverity = e3.allowComments ? void 0 : p.Error); }, e2.prototype.doValidation = function(e3, t2, n2, i2) { - var r2 = this; + var o2 = this; if (!this.validationEnabled) return this.promise.resolve([]); var s2 = [], a2 = {}, l2 = function(e4) { var t3 = e4.range.start.line + " " + e4.range.start.character + " " + e4.message; a2[t3] || (a2[t3] = true, s2.push(e4)); }, c2 = function(i3) { - var a3 = n2 ? it(n2.trailingCommas) : p.Error, c3 = n2 ? it(n2.comments) : r2.commentSeverity; + var a3 = n2 ? it(n2.trailingCommas) : p.Error, c3 = n2 ? it(n2.comments) : o2.commentSeverity; if (i3) { if (i3.errors.length && t2.root) { var d3 = t2.root, h2 = d3.type === "object" ? d3.properties[0] : void 0; if (h2 && h2.keyNode.value === "$schema") { - var u2 = h2.valueNode || h2, m2 = o.create(e3.positionAt(u2.offset), e3.positionAt(u2.offset + u2.length)); + var u2 = h2.valueNode || h2, m2 = r.create(e3.positionAt(u2.offset), e3.positionAt(u2.offset + u2.length)); l2(g.create(m2, i3.errors[0], p.Warning, se.SchemaResolveError)); } else { - m2 = o.create(e3.positionAt(d3.offset), e3.positionAt(d3.offset + 1)); + m2 = r.create(e3.positionAt(d3.offset), e3.positionAt(d3.offset + 1)); l2(g.create(m2, i3.errors[0], p.Warning, se.SchemaResolveError)); } } else { @@ -14011,9 +14011,9 @@ return t3.allowComments; if (t3.allOf) for (var n3 = 0, i4 = t3.allOf; n3 < i4.length; n3++) { - var o2 = i4[n3], r3 = e4(o2); - if (T(r3)) - return r3; + var r2 = i4[n3], o3 = e4(r2); + if (T(o3)) + return o3; } } return; @@ -14025,8 +14025,8 @@ if (T(n3.allowsTrailingCommas)) return n3.allowsTrailingCommas; if (t3.allOf) - for (var i4 = 0, o2 = t3.allOf; i4 < o2.length; i4++) { - var r3 = o2[i4], s3 = e4(r3); + for (var i4 = 0, r2 = t3.allOf; i4 < r2.length; i4++) { + var o3 = r2[i4], s3 = e4(o3); if (T(s3)) return s3; } @@ -14072,20 +14072,20 @@ return; } } - function ot(e2) { + function rt(e2) { return e2 < 48 ? 0 : e2 <= 57 ? e2 - 48 : (e2 < 97 && (e2 += 32), e2 >= 97 && e2 <= 102 ? e2 - 97 + 10 : 0); } - function rt(e2) { + function ot(e2) { if (e2[0] === "#") switch (e2.length) { case 4: - return {red: 17 * ot(e2.charCodeAt(1)) / 255, green: 17 * ot(e2.charCodeAt(2)) / 255, blue: 17 * ot(e2.charCodeAt(3)) / 255, alpha: 1}; + return {red: 17 * rt(e2.charCodeAt(1)) / 255, green: 17 * rt(e2.charCodeAt(2)) / 255, blue: 17 * rt(e2.charCodeAt(3)) / 255, alpha: 1}; case 5: - return {red: 17 * ot(e2.charCodeAt(1)) / 255, green: 17 * ot(e2.charCodeAt(2)) / 255, blue: 17 * ot(e2.charCodeAt(3)) / 255, alpha: 17 * ot(e2.charCodeAt(4)) / 255}; + return {red: 17 * rt(e2.charCodeAt(1)) / 255, green: 17 * rt(e2.charCodeAt(2)) / 255, blue: 17 * rt(e2.charCodeAt(3)) / 255, alpha: 17 * rt(e2.charCodeAt(4)) / 255}; case 7: - return {red: (16 * ot(e2.charCodeAt(1)) + ot(e2.charCodeAt(2))) / 255, green: (16 * ot(e2.charCodeAt(3)) + ot(e2.charCodeAt(4))) / 255, blue: (16 * ot(e2.charCodeAt(5)) + ot(e2.charCodeAt(6))) / 255, alpha: 1}; + return {red: (16 * rt(e2.charCodeAt(1)) + rt(e2.charCodeAt(2))) / 255, green: (16 * rt(e2.charCodeAt(3)) + rt(e2.charCodeAt(4))) / 255, blue: (16 * rt(e2.charCodeAt(5)) + rt(e2.charCodeAt(6))) / 255, alpha: 1}; case 9: - return {red: (16 * ot(e2.charCodeAt(1)) + ot(e2.charCodeAt(2))) / 255, green: (16 * ot(e2.charCodeAt(3)) + ot(e2.charCodeAt(4))) / 255, blue: (16 * ot(e2.charCodeAt(5)) + ot(e2.charCodeAt(6))) / 255, alpha: (16 * ot(e2.charCodeAt(7)) + ot(e2.charCodeAt(8))) / 255}; + return {red: (16 * rt(e2.charCodeAt(1)) + rt(e2.charCodeAt(2))) / 255, green: (16 * rt(e2.charCodeAt(3)) + rt(e2.charCodeAt(4))) / 255, blue: (16 * rt(e2.charCodeAt(5)) + rt(e2.charCodeAt(6))) / 255, alpha: (16 * rt(e2.charCodeAt(7)) + rt(e2.charCodeAt(8))) / 255}; } } var st = function() { @@ -14095,35 +14095,35 @@ return e2.prototype.findDocumentSymbols = function(e3, t2, n2) { var i2 = this; n2 === void 0 && (n2 = {resultLimit: Number.MAX_VALUE}); - var o2 = t2.root; - if (!o2) + var r2 = t2.root; + if (!r2) return []; var s2 = n2.resultLimit || Number.MAX_VALUE, a2 = e3.uri; - if ((a2 === "vscode://defaultsettings/keybindings.json" || We(a2.toLowerCase(), "/user/keybindings.json")) && o2.type === "array") { - for (var l2 = [], c2 = 0, d2 = o2.items; c2 < d2.length; c2++) { + if ((a2 === "vscode://defaultsettings/keybindings.json" || We(a2.toLowerCase(), "/user/keybindings.json")) && r2.type === "array") { + for (var l2 = [], c2 = 0, d2 = r2.items; c2 < d2.length; c2++) { var h2 = d2[c2]; if (h2.type === "object") for (var u2 = 0, p2 = h2.properties; u2 < p2.length; u2++) { var m2 = p2[u2]; if (m2.keyNode.value === "key" && m2.valueNode) { - var g2 = r.create(e3.uri, at(e3, h2)); - if (l2.push({name: De(m2.valueNode), kind: H.Function, location: g2}), --s2 <= 0) + var g2 = o.create(e3.uri, at(e3, h2)); + if (l2.push({name: Oe(m2.valueNode), kind: H.Function, location: g2}), --s2 <= 0) return n2 && n2.onResultLimitExceeded && n2.onResultLimitExceeded(a2), l2; } } } return l2; } - for (var f2 = [{node: o2, containerName: ""}], b2 = 0, _2 = false, v2 = [], w2 = function(t3, n3) { + for (var f2 = [{node: r2, containerName: ""}], b2 = 0, _2 = false, v2 = [], w2 = function(t3, n3) { t3.type === "array" ? t3.items.forEach(function(e4) { e4 && f2.push({node: e4, containerName: n3}); }) : t3.type === "object" && t3.properties.forEach(function(t4) { - var o3 = t4.valueNode; - if (o3) + var r3 = t4.valueNode; + if (r3) if (s2 > 0) { s2--; - var a3 = r.create(e3.uri, at(e3, t4)), l3 = n3 ? n3 + "." + t4.keyNode.value : t4.keyNode.value; - v2.push({name: i2.getKeyLabel(t4), kind: i2.getSymbolKind(o3.type), location: a3, containerName: n3}), f2.push({node: o3, containerName: l3}); + var a3 = o.create(e3.uri, at(e3, t4)), l3 = n3 ? n3 + "." + t4.keyNode.value : t4.keyNode.value; + v2.push({name: i2.getKeyLabel(t4), kind: i2.getSymbolKind(r3.type), location: a3, containerName: n3}), f2.push({node: r3, containerName: l3}); } else _2 = true; }); @@ -14135,41 +14135,41 @@ }, e2.prototype.findDocumentSymbols2 = function(e3, t2, n2) { var i2 = this; n2 === void 0 && (n2 = {resultLimit: Number.MAX_VALUE}); - var o2 = t2.root; - if (!o2) + var r2 = t2.root; + if (!r2) return []; - var r2 = n2.resultLimit || Number.MAX_VALUE, s2 = e3.uri; - if ((s2 === "vscode://defaultsettings/keybindings.json" || We(s2.toLowerCase(), "/user/keybindings.json")) && o2.type === "array") { - for (var a2 = [], l2 = 0, c2 = o2.items; l2 < c2.length; l2++) { + var o2 = n2.resultLimit || Number.MAX_VALUE, s2 = e3.uri; + if ((s2 === "vscode://defaultsettings/keybindings.json" || We(s2.toLowerCase(), "/user/keybindings.json")) && r2.type === "array") { + for (var a2 = [], l2 = 0, c2 = r2.items; l2 < c2.length; l2++) { var d2 = c2[l2]; if (d2.type === "object") for (var h2 = 0, u2 = d2.properties; h2 < u2.length; h2++) { var p2 = u2[h2]; if (p2.keyNode.value === "key" && p2.valueNode) { var m2 = at(e3, d2), g2 = at(e3, p2.keyNode); - if (a2.push({name: De(p2.valueNode), kind: H.Function, range: m2, selectionRange: g2}), --r2 <= 0) + if (a2.push({name: Oe(p2.valueNode), kind: H.Function, range: m2, selectionRange: g2}), --o2 <= 0) return n2 && n2.onResultLimitExceeded && n2.onResultLimitExceeded(s2), a2; } } } return a2; } - for (var f2 = [], b2 = [{node: o2, result: f2}], _2 = 0, v2 = false, w2 = function(t3, n3) { - t3.type === "array" ? t3.items.forEach(function(t4, o3) { + for (var f2 = [], b2 = [{node: r2, result: f2}], _2 = 0, v2 = false, w2 = function(t3, n3) { + t3.type === "array" ? t3.items.forEach(function(t4, r3) { if (t4) - if (r2 > 0) { - r2--; - var s3 = at(e3, t4), a3 = s3, l3 = {name: String(o3), kind: i2.getSymbolKind(t4.type), range: s3, selectionRange: a3, children: []}; + if (o2 > 0) { + o2--; + var s3 = at(e3, t4), a3 = s3, l3 = {name: String(r3), kind: i2.getSymbolKind(t4.type), range: s3, selectionRange: a3, children: []}; n3.push(l3), b2.push({result: l3.children, node: t4}); } else v2 = true; }) : t3.type === "object" && t3.properties.forEach(function(t4) { - var o3 = t4.valueNode; - if (o3) - if (r2 > 0) { - r2--; - var s3 = at(e3, t4), a3 = at(e3, t4.keyNode), l3 = {name: i2.getKeyLabel(t4), kind: i2.getSymbolKind(o3.type), range: s3, selectionRange: a3, children: []}; - n3.push(l3), b2.push({result: l3.children, node: o3}); + var r3 = t4.valueNode; + if (r3) + if (o2 > 0) { + o2--; + var s3 = at(e3, t4), a3 = at(e3, t4.keyNode), l3 = {name: i2.getKeyLabel(t4), kind: i2.getSymbolKind(r3.type), range: s3, selectionRange: a3, children: []}; + n3.push(l3), b2.push({result: l3.children, node: r3}); } else v2 = true; }); @@ -14198,36 +14198,36 @@ return t2 && (t2 = t2.replace(/[\n]/g, "\u21B5")), t2 && t2.trim() ? t2 : '"' + t2 + '"'; }, e2.prototype.findDocumentColors = function(e3, t2, n2) { return this.schemaService.getSchemaForResource(e3.uri, t2).then(function(i2) { - var o2 = []; + var r2 = []; if (i2) - for (var r2 = n2 && typeof n2.resultLimit == "number" ? n2.resultLimit : Number.MAX_VALUE, s2 = {}, a2 = 0, l2 = t2.getMatchingSchemas(i2.schema); a2 < l2.length; a2++) { + for (var o2 = n2 && typeof n2.resultLimit == "number" ? n2.resultLimit : Number.MAX_VALUE, s2 = {}, a2 = 0, l2 = t2.getMatchingSchemas(i2.schema); a2 < l2.length; a2++) { var c2 = l2[a2]; if (!c2.inverted && c2.schema && (c2.schema.format === "color" || c2.schema.format === "color-hex") && c2.node && c2.node.type === "string") { var d2 = String(c2.node.offset); if (!s2[d2]) { - var h2 = rt(De(c2.node)); + var h2 = ot(Oe(c2.node)); if (h2) { var u2 = at(e3, c2.node); - o2.push({color: h2, range: u2}); + r2.push({color: h2, range: u2}); } - if (s2[d2] = true, --r2 <= 0) - return n2 && n2.onResultLimitExceeded && n2.onResultLimitExceeded(e3.uri), o2; + if (s2[d2] = true, --o2 <= 0) + return n2 && n2.onResultLimitExceeded && n2.onResultLimitExceeded(e3.uri), r2; } } } - return o2; + return r2; }); }, e2.prototype.getColorPresentations = function(e3, t2, n2, i2) { - var o2, r2 = [], s2 = Math.round(255 * n2.red), a2 = Math.round(255 * n2.green), l2 = Math.round(255 * n2.blue); + var r2, o2 = [], s2 = Math.round(255 * n2.red), a2 = Math.round(255 * n2.green), l2 = Math.round(255 * n2.blue); function c2(e4) { var t3 = e4.toString(16); return t3.length !== 2 ? "0" + t3 : t3; } - return o2 = n2.alpha === 1 ? "#" + c2(s2) + c2(a2) + c2(l2) : "#" + c2(s2) + c2(a2) + c2(l2) + c2(Math.round(255 * n2.alpha)), r2.push({label: o2, textEdit: b.replace(i2, JSON.stringify(o2))}), r2; + return r2 = n2.alpha === 1 ? "#" + c2(s2) + c2(a2) + c2(l2) : "#" + c2(s2) + c2(a2) + c2(l2) + c2(Math.round(255 * n2.alpha)), o2.push({label: r2, textEdit: b.replace(i2, JSON.stringify(r2))}), o2; }, e2; }(); function at(e2, t2) { - return o.create(e2.positionAt(t2.offset), e2.positionAt(t2.offset + t2.length)); + return r.create(e2.positionAt(t2.offset), e2.positionAt(t2.offset + t2.length)); } var lt = me(), ct = {schemaAssociations: [], schemas: {"http://json-schema.org/schema#": {$ref: "http://json-schema.org/draft-07/schema#"}, "http://json-schema.org/draft-04/schema#": {title: lt("schema.json", "Describes a JSON file using a schema. See json-schema.org for more info."), $schema: "http://json-schema.org/draft-04/schema#", definitions: {schemaArray: {type: "array", minItems: 1, items: {$ref: "#"}}, positiveInteger: {type: "integer", minimum: 0}, positiveIntegerDefault0: {allOf: [{$ref: "#/definitions/positiveInteger"}, {default: 0}]}, simpleTypes: {type: "string", enum: ["array", "boolean", "integer", "null", "number", "object", "string"]}, stringArray: {type: "array", items: {type: "string"}, minItems: 1, uniqueItems: true}}, type: "object", properties: {id: {type: "string", format: "uri"}, $schema: {type: "string", format: "uri"}, title: {type: "string"}, description: {type: "string"}, default: {}, multipleOf: {type: "number", minimum: 0, exclusiveMinimum: true}, maximum: {type: "number"}, exclusiveMaximum: {type: "boolean", default: false}, minimum: {type: "number"}, exclusiveMinimum: {type: "boolean", default: false}, maxLength: {allOf: [{$ref: "#/definitions/positiveInteger"}]}, minLength: {allOf: [{$ref: "#/definitions/positiveIntegerDefault0"}]}, pattern: {type: "string", format: "regex"}, additionalItems: {anyOf: [{type: "boolean"}, {$ref: "#"}], default: {}}, items: {anyOf: [{$ref: "#"}, {$ref: "#/definitions/schemaArray"}], default: {}}, maxItems: {allOf: [{$ref: "#/definitions/positiveInteger"}]}, minItems: {allOf: [{$ref: "#/definitions/positiveIntegerDefault0"}]}, uniqueItems: {type: "boolean", default: false}, maxProperties: {allOf: [{$ref: "#/definitions/positiveInteger"}]}, minProperties: {allOf: [{$ref: "#/definitions/positiveIntegerDefault0"}]}, required: {allOf: [{$ref: "#/definitions/stringArray"}]}, additionalProperties: {anyOf: [{type: "boolean"}, {$ref: "#"}], default: {}}, definitions: {type: "object", additionalProperties: {$ref: "#"}, default: {}}, properties: {type: "object", additionalProperties: {$ref: "#"}, default: {}}, patternProperties: {type: "object", additionalProperties: {$ref: "#"}, default: {}}, dependencies: {type: "object", additionalProperties: {anyOf: [{$ref: "#"}, {$ref: "#/definitions/stringArray"}]}}, enum: {type: "array", minItems: 1, uniqueItems: true}, type: {anyOf: [{$ref: "#/definitions/simpleTypes"}, {type: "array", items: {$ref: "#/definitions/simpleTypes"}, minItems: 1, uniqueItems: true}]}, format: {anyOf: [{type: "string", enum: ["date-time", "uri", "email", "hostname", "ipv4", "ipv6", "regex"]}, {type: "string"}]}, allOf: {allOf: [{$ref: "#/definitions/schemaArray"}]}, anyOf: {allOf: [{$ref: "#/definitions/schemaArray"}]}, oneOf: {allOf: [{$ref: "#/definitions/schemaArray"}]}, not: {allOf: [{$ref: "#"}]}}, dependencies: {exclusiveMaximum: ["maximum"], exclusiveMinimum: ["minimum"]}, default: {}}, "http://json-schema.org/draft-07/schema#": {title: lt("schema.json", "Describes a JSON file using a schema. See json-schema.org for more info."), definitions: {schemaArray: {type: "array", minItems: 1, items: {$ref: "#"}}, nonNegativeInteger: {type: "integer", minimum: 0}, nonNegativeIntegerDefault0: {allOf: [{$ref: "#/definitions/nonNegativeInteger"}, {default: 0}]}, simpleTypes: {enum: ["array", "boolean", "integer", "null", "number", "object", "string"]}, stringArray: {type: "array", items: {type: "string"}, uniqueItems: true, default: []}}, type: ["object", "boolean"], properties: {$id: {type: "string", format: "uri-reference"}, $schema: {type: "string", format: "uri"}, $ref: {type: "string", format: "uri-reference"}, $comment: {type: "string"}, title: {type: "string"}, description: {type: "string"}, default: true, readOnly: {type: "boolean", default: false}, examples: {type: "array", items: true}, multipleOf: {type: "number", exclusiveMinimum: 0}, maximum: {type: "number"}, exclusiveMaximum: {type: "number"}, minimum: {type: "number"}, exclusiveMinimum: {type: "number"}, maxLength: {$ref: "#/definitions/nonNegativeInteger"}, minLength: {$ref: "#/definitions/nonNegativeIntegerDefault0"}, pattern: {type: "string", format: "regex"}, additionalItems: {$ref: "#"}, items: {anyOf: [{$ref: "#"}, {$ref: "#/definitions/schemaArray"}], default: true}, maxItems: {$ref: "#/definitions/nonNegativeInteger"}, minItems: {$ref: "#/definitions/nonNegativeIntegerDefault0"}, uniqueItems: {type: "boolean", default: false}, contains: {$ref: "#"}, maxProperties: {$ref: "#/definitions/nonNegativeInteger"}, minProperties: {$ref: "#/definitions/nonNegativeIntegerDefault0"}, required: {$ref: "#/definitions/stringArray"}, additionalProperties: {$ref: "#"}, definitions: {type: "object", additionalProperties: {$ref: "#"}, default: {}}, properties: {type: "object", additionalProperties: {$ref: "#"}, default: {}}, patternProperties: {type: "object", additionalProperties: {$ref: "#"}, propertyNames: {format: "regex"}, default: {}}, dependencies: {type: "object", additionalProperties: {anyOf: [{$ref: "#"}, {$ref: "#/definitions/stringArray"}]}}, propertyNames: {$ref: "#"}, const: true, enum: {type: "array", items: true, minItems: 1, uniqueItems: true}, type: {anyOf: [{$ref: "#/definitions/simpleTypes"}, {type: "array", items: {$ref: "#/definitions/simpleTypes"}, minItems: 1, uniqueItems: true}]}, format: {type: "string"}, contentMediaType: {type: "string"}, contentEncoding: {type: "string"}, if: {$ref: "#"}, then: {$ref: "#"}, else: {$ref: "#"}, allOf: {$ref: "#/definitions/schemaArray"}, anyOf: {$ref: "#/definitions/schemaArray"}, oneOf: {$ref: "#/definitions/schemaArray"}, not: {$ref: "#"}}, default: true}}}, dt = {id: lt("schema.json.id", "A unique identifier for the schema."), $schema: lt("schema.json.$schema", "The schema to verify this document against."), title: lt("schema.json.title", "A descriptive title of the element."), description: lt("schema.json.description", "A long description of the element. Used in hover menus and suggestions."), default: lt("schema.json.default", "A default value. Used by suggestions."), multipleOf: lt("schema.json.multipleOf", "A number that should cleanly divide the current value (i.e. have no remainder)."), maximum: lt("schema.json.maximum", "The maximum numerical value, inclusive by default."), exclusiveMaximum: lt("schema.json.exclusiveMaximum", "Makes the maximum property exclusive."), minimum: lt("schema.json.minimum", "The minimum numerical value, inclusive by default."), exclusiveMinimum: lt("schema.json.exclusiveMininum", "Makes the minimum property exclusive."), maxLength: lt("schema.json.maxLength", "The maximum length of a string."), minLength: lt("schema.json.minLength", "The minimum length of a string."), pattern: lt("schema.json.pattern", "A regular expression to match the string against. It is not implicitly anchored."), additionalItems: lt("schema.json.additionalItems", "For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."), items: lt("schema.json.items", "For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."), maxItems: lt("schema.json.maxItems", "The maximum number of items that can be inside an array. Inclusive."), minItems: lt("schema.json.minItems", "The minimum number of items that can be inside an array. Inclusive."), uniqueItems: lt("schema.json.uniqueItems", "If all of the items in the array must be unique. Defaults to false."), maxProperties: lt("schema.json.maxProperties", "The maximum number of properties an object can have. Inclusive."), minProperties: lt("schema.json.minProperties", "The minimum number of properties an object can have. Inclusive."), required: lt("schema.json.required", "An array of strings that lists the names of all properties required on this object."), additionalProperties: lt("schema.json.additionalProperties", "Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."), definitions: lt("schema.json.definitions", "Not used for validation. Place subschemas here that you wish to reference inline with $ref."), properties: lt("schema.json.properties", "A map of property names to schemas for each property."), patternProperties: lt("schema.json.patternProperties", "A map of regular expressions on property names to schemas for matching properties."), dependencies: lt("schema.json.dependencies", "A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."), enum: lt("schema.json.enum", "The set of literal values that are valid."), type: lt("schema.json.type", "Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."), format: lt("schema.json.format", "Describes the format expected for the value."), allOf: lt("schema.json.allOf", "An array of schemas, all of which must match."), anyOf: lt("schema.json.anyOf", "An array of schemas, where at least one must match."), oneOf: lt("schema.json.oneOf", "An array of schemas, exactly one of which must match."), not: lt("schema.json.not", "A schema which must not match."), $id: lt("schema.json.$id", "A unique identifier for the schema."), $ref: lt("schema.json.$ref", "Reference a definition hosted on any location."), $comment: lt("schema.json.$comment", "Comments from schema authors to readers or maintainers of the schema."), readOnly: lt("schema.json.readOnly", "Indicates that the value of the instance is managed exclusively by the owning authority."), examples: lt("schema.json.examples", "Sample JSON values associated with a particular schema, for the purpose of illustrating usage."), contains: lt("schema.json.contains", 'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'), propertyNames: lt("schema.json.propertyNames", "If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."), const: lt("schema.json.const", "An instance validates successfully against this keyword if its value is equal to the value of the keyword."), contentMediaType: lt("schema.json.contentMediaType", "Describes the media type of a string property."), contentEncoding: lt("schema.json.contentEncoding", "Describes the content encoding of a string property."), if: lt("schema.json.if", 'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'), then: lt("schema.json.then", 'The "if" subschema is used for validation when the "if" subschema succeeds.'), else: lt("schema.json.else", 'The "else" subschema is used for validation when the "if" subschema fails.')}; for (var ht in ct.schemas) { @@ -14240,22 +14240,22 @@ } } function ft(e2, t2) { - var n2 = [], o2 = [], r2 = [], s2 = -1, a2 = Object(x.a)(e2.getText(), false), l2 = a2.scan(); + var n2 = [], r2 = [], o2 = [], s2 = -1, a2 = Object(x.a)(e2.getText(), false), l2 = a2.scan(); function c2(e3) { - n2.push(e3), o2.push(r2.length); + n2.push(e3), r2.push(o2.length); } for (; l2 !== 17; ) { switch (l2) { case 1: case 3: var h2 = {startLine: m2 = e2.positionAt(a2.getTokenOffset()).line, endLine: m2, kind: l2 === 1 ? "object" : "array"}; - r2.push(h2); + o2.push(h2); break; case 2: case 4: var u2 = l2 === 2 ? "object" : "array"; - if (r2.length > 0 && r2[r2.length - 1].kind === u2) { - h2 = r2.pop(); + if (o2.length > 0 && o2[o2.length - 1].kind === u2) { + h2 = o2.pop(); var p2 = e2.positionAt(a2.getTokenOffset()).line; h2 && p2 > h2.startLine + 1 && s2 !== h2.startLine && (h2.endLine = p2 - 1, c2(h2), s2 = h2.startLine); } @@ -14270,13 +14270,13 @@ p2 = e2.positionAt(a2.getTokenOffset()).line; if (f2[1]) { h2 = {startLine: p2, endLine: p2, kind: d.Region}; - r2.push(h2); + o2.push(h2); } else { - for (var b2 = r2.length - 1; b2 >= 0 && r2[b2].kind !== d.Region; ) + for (var b2 = o2.length - 1; b2 >= 0 && o2[b2].kind !== d.Region; ) b2--; if (b2 >= 0) { - h2 = r2[b2]; - r2.length = b2, p2 > h2.startLine && s2 !== h2.startLine && (h2.endLine = p2, c2(h2), s2 = h2.startLine); + h2 = o2[b2]; + o2.length = b2, p2 > h2.startLine && s2 !== h2.startLine && (h2.endLine = p2, c2(h2), s2 = h2.startLine); } } } @@ -14287,7 +14287,7 @@ if (typeof _2 != "number" || n2.length <= _2) return n2; t2 && t2.onRangeLimitExceeded && t2.onRangeLimitExceeded(e2.uri); - for (var v2 = [], w2 = 0, y2 = o2; w2 < y2.length; w2++) { + for (var v2 = [], w2 = 0, y2 = r2; w2 < y2.length; w2++) { (T2 = y2[w2]) < 30 && (v2[T2] = (v2[T2] || 0) + 1); } var C2 = 0, S2 = 0; @@ -14304,26 +14304,26 @@ var E2 = []; for (b2 = 0; b2 < n2.length; b2++) { var T2; - typeof (T2 = o2[b2]) == "number" && (T2 < S2 || T2 === S2 && C2++ < _2) && E2.push(n2[b2]); + typeof (T2 = r2[b2]) == "number" && (T2 < S2 || T2 === S2 && C2++ < _2) && E2.push(n2[b2]); } return E2; } function bt(e2, t2, n2) { function i2(t3, n3) { - return o.create(e2.positionAt(t3), e2.positionAt(n3)); + return r.create(e2.positionAt(t3), e2.positionAt(n3)); } - var r2 = Object(x.a)(e2.getText(), true); + var o2 = Object(x.a)(e2.getText(), true); function s2(e3, t3) { - return r2.setPosition(e3), r2.scan() === t3 ? r2.getTokenOffset() + r2.getTokenLength() : -1; + return o2.setPosition(e3), o2.scan() === t3 ? o2.getTokenOffset() + o2.getTokenLength() : -1; } return t2.map(function(t3) { - for (var r3 = e2.offsetAt(t3), a2 = n2.getNodeFromOffset(r3, true), l2 = []; a2; ) { + for (var o3 = e2.offsetAt(t3), a2 = n2.getNodeFromOffset(o3, true), l2 = []; a2; ) { switch (a2.type) { case "string": case "object": case "array": var c2 = a2.offset + 1, d2 = a2.offset + a2.length - 1; - c2 < d2 && r3 >= c2 && r3 <= d2 && l2.push(i2(c2, d2)), l2.push(i2(a2.offset, a2.offset + a2.length)); + c2 < d2 && o3 >= c2 && o3 <= d2 && l2.push(i2(c2, d2)), l2.push(i2(a2.offset, a2.offset + a2.length)); break; case "number": case "boolean": @@ -14339,16 +14339,16 @@ } for (var u2 = void 0, p2 = l2.length - 1; p2 >= 0; p2--) u2 = ee.create(l2[p2], u2); - return u2 || (u2 = ee.create(o.create(t3, t3))), u2; + return u2 || (u2 = ee.create(r.create(t3, t3))), u2; }); } function _t(e2, t2, n2) { - var i2 = e2.offsetAt(t2), o2 = n2.getNodeFromOffset(i2, true); - if (!o2 || !function(e3) { + var i2 = e2.offsetAt(t2), r2 = n2.getNodeFromOffset(i2, true); + if (!r2 || !function(e3) { return e3.type === "string" && e3.parent && e3.parent.type === "property" && e3.parent.valueNode === e3 && e3.parent.keyNode.value === "$ref" || false; - }(o2)) + }(r2)) return Promise.resolve([]); - var r2 = o2.parent.valueNode, s2 = function(e3, t3) { + var o2 = r2.parent.valueNode, s2 = function(e3, t3) { var n3 = function(e4) { if (e4 === "#") return []; @@ -14365,25 +14365,25 @@ return n4; var i3 = t4.shift(); if (n4 && n4.type === "object") { - var o3 = n4.properties.find(function(e5) { + var r3 = n4.properties.find(function(e5) { return e5.keyNode.value === i3; }); - return o3 ? e4(t4, o3.valueNode) : null; + return r3 ? e4(t4, r3.valueNode) : null; } if (n4 && n4.type === "array" && i3.match(/^(0|[1-9][0-9]*)$/)) { - var r3 = Number.parseInt(i3), s3 = n4.items[r3]; + var o3 = Number.parseInt(i3), s3 = n4.items[o3]; return s3 ? e4(t4, s3) : null; } return null; }(n3, e3.root); - }(n2, r2.value); + }(n2, o2.value); if (!s2) return Promise.resolve([]); - var a2 = {targetUri: e2.uri, originSelectionRange: vt(e2, r2), targetRange: vt(e2, s2), targetSelectionRange: vt(e2, s2)}; + var a2 = {targetUri: e2.uri, originSelectionRange: vt(e2, o2), targetRange: vt(e2, s2), targetSelectionRange: vt(e2, s2)}; return Promise.resolve([a2]); } function vt(e2, t2) { - return o.create(e2.positionAt(t2.offset), e2.positionAt(t2.offset + t2.length)); + return r.create(e2.positionAt(t2.offset), e2.positionAt(t2.offset + t2.length)); } function wt(e2) { return e2.replace(/~1/g, "/").replace(/~0/g, "~"); @@ -14391,7 +14391,7 @@ function yt(e2) { var t2 = e2.promiseConstructor || Promise, n2 = new Ze(e2.schemaRequestService, e2.workspaceContext, t2); n2.setSchemaContributions(ct); - var i2 = new je(n2, e2.contributions, t2, e2.clientCapabilities), r2 = new Ve(n2, e2.contributions, t2), s2 = new st(n2), a2 = new tt(n2, t2); + var i2 = new je(n2, e2.contributions, t2, e2.clientCapabilities), o2 = new Ve(n2, e2.contributions, t2), s2 = new st(n2), a2 = new tt(n2, t2); return {configure: function(e3) { n2.clearExternalSchemas(), e3.schemas && e3.schemas.forEach(function(e4) { n2.registerExternalSchema(e4.uri, e4.fileMatch, e4.schema); @@ -14410,15 +14410,15 @@ return e5.range; }); }); - }, findDocumentColors: s2.findDocumentColors.bind(s2), getColorPresentations: s2.getColorPresentations.bind(s2), doHover: r2.doHover.bind(r2), getFoldingRanges: ft, getSelectionRanges: bt, findDefinition: _t, format: function(e3, t3, n3) { + }, findDocumentColors: s2.findDocumentColors.bind(s2), getColorPresentations: s2.getColorPresentations.bind(s2), doHover: o2.doHover.bind(o2), getFoldingRanges: ft, getSelectionRanges: bt, findDefinition: _t, format: function(e3, t3, n3) { var i3 = void 0; if (t3) { - var r3 = e3.offsetAt(t3.start); - i3 = {offset: r3, length: e3.offsetAt(t3.end) - r3}; + var o3 = e3.offsetAt(t3.start); + i3 = {offset: o3, length: e3.offsetAt(t3.end) - o3}; } var s3 = {tabSize: n3 ? n3.tabSize : 4, insertSpaces: !n3 || n3.insertSpaces, eol: "\n"}; return Object(x.c)(e3.getText(), i3, s3).map(function(t4) { - return b.replace(o.create(e3.positionAt(t4.offset), e3.positionAt(t4.offset + t4.length)), t4.content); + return b.replace(r.create(e3.positionAt(t4.offset), e3.positionAt(t4.offset + t4.length)), t4.content); }); }}; } @@ -14427,7 +14427,7 @@ n.d(t, "a", function() { return b; }); - var i = n(6), o = n(2), r = n(8), s = n(73), a = n(75), l = n(114); + var i = n(6), r = n(2), o = n(8), s = n(73), a = n(75), l = n(114); class c { constructor(e2) { if (e2.autoClosingPairs ? this._autoClosingPairs = e2.autoClosingPairs.map((e3) => new a.b(e3)) : e2.brackets ? this._autoClosingPairs = e2.brackets.map((e3) => new a.b({open: e3[0], close: e3[1]})) : this._autoClosingPairs = [], e2.__electricCharacterSupport && e2.__electricCharacterSupport.docComment) { @@ -14445,8 +14445,8 @@ static shouldAutoClosePair(e2, t2, n2) { if (t2.getTokenCount() === 0) return true; - const i2 = t2.findTokenIndexAtOffset(n2 - 2), o2 = t2.getStandardTokenType(i2); - return e2.isOK(o2); + const i2 = t2.findTokenIndexAtOffset(n2 - 2), r2 = t2.getStandardTokenType(i2); + return e2.isOK(r2); } getSurroundingPairs() { return this._surroundingPairs; @@ -14474,10 +14474,10 @@ const i2 = t2.findTokenIndexAtOffset(n2 - 1); if (Object(l.b)(t2.getStandardTokenType(i2))) return null; - const o2 = this._richEditBrackets.reversedRegex, r2 = t2.getLineContent().substring(0, n2 - 1) + e2, s2 = d.a.findPrevBracketInRange(o2, 1, r2, 0, r2.length); + const r2 = this._richEditBrackets.reversedRegex, o2 = t2.getLineContent().substring(0, n2 - 1) + e2, s2 = d.a.findPrevBracketInRange(r2, 1, o2, 0, o2.length); if (!s2) return null; - const a2 = r2.substring(s2.startColumn - 1, s2.endColumn - 1).toLowerCase(); + const a2 = o2.substring(s2.startColumn - 1, s2.endColumn - 1).toLowerCase(); if (this._richEditBrackets.textIsOpenBracket[a2]) return null; const c2 = t2.getActualLineContentBefore(s2.startColumn - 1); @@ -14515,10 +14515,10 @@ } onEnter(e2, t2, n2, i2) { if (e2 >= 3) - for (let e3 = 0, o2 = this._regExpRules.length; e3 < o2; e3++) { - let o3 = this._regExpRules[e3]; - if ([{reg: o3.beforeText, text: n2}, {reg: o3.afterText, text: i2}, {reg: o3.oneLineAboveText, text: t2}].every((e4) => !e4.reg || e4.reg.test(e4.text))) - return o3.action; + for (let e3 = 0, r2 = this._regExpRules.length; e3 < r2; e3++) { + let r3 = this._regExpRules[e3]; + if ([{reg: r3.beforeText, text: n2}, {reg: r3.afterText, text: i2}, {reg: r3.oneLineAboveText, text: t2}].every((e4) => !e4.reg || e4.reg.test(e4.text))) + return r3.action; } if (e2 >= 2 && n2.length > 0 && i2.length > 0) for (let e3 = 0, t3 = this._brackets.length; e3 < t3; e3++) { @@ -14534,11 +14534,11 @@ return null; } static _createOpenBracketRegExp(e2) { - let t2 = r.v(e2); + let t2 = o.v(e2); return /\B/.test(t2.charAt(0)) || (t2 = "\\b" + t2), t2 += "\\s*$", m._safeRegExp(t2); } static _createCloseBracketRegExp(e2) { - let t2 = r.v(e2); + let t2 = o.v(e2); return /\B/.test(t2.charAt(t2.length - 1)) || (t2 += "\\b"), t2 = "^\\s*" + t2, m._safeRegExp(t2); } static _safeRegExp(e2) { @@ -14590,7 +14590,7 @@ } register(e2, t2) { let n2 = this._getRichEditSupport(e2.id), i2 = new g(e2, n2, t2); - return this._entries.set(e2.id, i2), this._onDidChange.fire(new f(e2)), Object(o.h)(() => { + return this._entries.set(e2.id, i2), this._onDidChange.fire(new f(e2)), Object(r.h)(() => { this._entries.get(e2.id) === i2 && (this._entries.set(e2.id, n2), this._onDidChange.fire(new f(e2))); }); } @@ -14610,8 +14610,8 @@ return t2 ? t2.getElectricCharacters() : []; } onElectricCharacter(e2, t2, n2) { - let i2 = Object(l.a)(t2, n2 - 1), o2 = this._getElectricCharacterSupport(i2.languageId); - return o2 ? o2.onElectricCharacter(e2, i2, n2 - i2.firstCharOffset) : null; + let i2 = Object(l.a)(t2, n2 - 1), r2 = this._getElectricCharacterSupport(i2.languageId); + return r2 ? r2.onElectricCharacter(e2, i2, n2 - i2.firstCharOffset) : null; } getComments(e2) { let t2 = this._getRichEditSupport(e2); @@ -14652,14 +14652,14 @@ getPrecedingValidLine(e2, t2, n2) { let i2 = e2.getLanguageIdAtPosition(t2, 0); if (t2 > 1) { - let o2, r2 = -1; - for (o2 = t2 - 1; o2 >= 1; o2--) { - if (e2.getLanguageIdAtPosition(o2, 0) !== i2) - return r2; - let t3 = e2.getLineContent(o2); - if (!n2.shouldIgnore(t3) && !/^\s+$/.test(t3) && t3 !== "") + let r2, o2 = -1; + for (r2 = t2 - 1; r2 >= 1; r2--) { + if (e2.getLanguageIdAtPosition(r2, 0) !== i2) return o2; - r2 = o2; + let t3 = e2.getLineContent(r2); + if (!n2.shouldIgnore(t3) && !/^\s+$/.test(t3) && t3 !== "") + return r2; + o2 = r2; } } return -1; @@ -14667,56 +14667,56 @@ getInheritIndentForLine(e2, t2, n2, i2 = true) { if (e2 < 4) return null; - const o2 = this.getIndentRulesSupport(t2.getLanguageIdentifier().id); - if (!o2) + const r2 = this.getIndentRulesSupport(t2.getLanguageIdentifier().id); + if (!r2) return null; if (n2 <= 1) return {indentation: "", action: null}; - const s2 = this.getPrecedingValidLine(t2, n2, o2); + const s2 = this.getPrecedingValidLine(t2, n2, r2); if (s2 < 0) return null; if (s2 < 1) return {indentation: "", action: null}; const l2 = t2.getLineContent(s2); - if (o2.shouldIncrease(l2) || o2.shouldIndentNextLine(l2)) - return {indentation: r.z(l2), action: a.a.Indent, line: s2}; - if (o2.shouldDecrease(l2)) - return {indentation: r.z(l2), action: null, line: s2}; + if (r2.shouldIncrease(l2) || r2.shouldIndentNextLine(l2)) + return {indentation: o.z(l2), action: a.a.Indent, line: s2}; + if (r2.shouldDecrease(l2)) + return {indentation: o.z(l2), action: null, line: s2}; { if (s2 === 1) - return {indentation: r.z(t2.getLineContent(s2)), action: null, line: s2}; - const e3 = s2 - 1, n3 = o2.getIndentMetadata(t2.getLineContent(e3)); + return {indentation: o.z(t2.getLineContent(s2)), action: null, line: s2}; + const e3 = s2 - 1, n3 = r2.getIndentMetadata(t2.getLineContent(e3)); if (!(3 & n3) && 4 & n3) { let n4 = 0; for (let i3 = e3 - 1; i3 > 0; i3--) - if (!o2.shouldIndentNextLine(t2.getLineContent(i3))) { + if (!r2.shouldIndentNextLine(t2.getLineContent(i3))) { n4 = i3; break; } - return {indentation: r.z(t2.getLineContent(n4 + 1)), action: null, line: n4 + 1}; + return {indentation: o.z(t2.getLineContent(n4 + 1)), action: null, line: n4 + 1}; } if (i2) - return {indentation: r.z(t2.getLineContent(s2)), action: null, line: s2}; + return {indentation: o.z(t2.getLineContent(s2)), action: null, line: s2}; for (let e4 = s2; e4 > 0; e4--) { const n4 = t2.getLineContent(e4); - if (o2.shouldIncrease(n4)) - return {indentation: r.z(n4), action: a.a.Indent, line: e4}; - if (o2.shouldIndentNextLine(n4)) { + if (r2.shouldIncrease(n4)) + return {indentation: o.z(n4), action: a.a.Indent, line: e4}; + if (r2.shouldIndentNextLine(n4)) { let n5 = 0; for (let i3 = e4 - 1; i3 > 0; i3--) - if (!o2.shouldIndentNextLine(t2.getLineContent(e4))) { + if (!r2.shouldIndentNextLine(t2.getLineContent(e4))) { n5 = i3; break; } - return {indentation: r.z(t2.getLineContent(n5 + 1)), action: null, line: n5 + 1}; + return {indentation: o.z(t2.getLineContent(n5 + 1)), action: null, line: n5 + 1}; } - if (o2.shouldDecrease(n4)) - return {indentation: r.z(n4), action: null, line: e4}; + if (r2.shouldDecrease(n4)) + return {indentation: o.z(n4), action: null, line: e4}; } - return {indentation: r.z(t2.getLineContent(1)), action: null, line: 1}; + return {indentation: o.z(t2.getLineContent(1)), action: null, line: 1}; } } - getGoodIndentForLine(e2, t2, n2, i2, o2) { + getGoodIndentForLine(e2, t2, n2, i2, r2) { if (e2 < 4) return null; const s2 = this._getRichEditSupport(n2); @@ -14731,11 +14731,11 @@ if (n3 !== void 0) { const i3 = s2.onEnter(e2, "", t2.getLineContent(n3), ""); if (i3) { - let e3 = r.z(t2.getLineContent(n3)); - return i3.removeText && (e3 = e3.substring(0, e3.length - i3.removeText)), i3.indentAction === a.a.Indent || i3.indentAction === a.a.IndentOutdent ? e3 = o2.shiftIndent(e3) : i3.indentAction === a.a.Outdent && (e3 = o2.unshiftIndent(e3)), l2.shouldDecrease(d2) && (e3 = o2.unshiftIndent(e3)), i3.appendText && (e3 += i3.appendText), r.z(e3); + let e3 = o.z(t2.getLineContent(n3)); + return i3.removeText && (e3 = e3.substring(0, e3.length - i3.removeText)), i3.indentAction === a.a.Indent || i3.indentAction === a.a.IndentOutdent ? e3 = r2.shiftIndent(e3) : i3.indentAction === a.a.Outdent && (e3 = r2.unshiftIndent(e3)), l2.shouldDecrease(d2) && (e3 = r2.unshiftIndent(e3)), i3.appendText && (e3 += i3.appendText), o.z(e3); } } - return l2.shouldDecrease(d2) ? c2.action === a.a.Indent ? c2.indentation : o2.unshiftIndent(c2.indentation) : c2.action === a.a.Indent ? o2.shiftIndent(c2.indentation) : c2.indentation; + return l2.shouldDecrease(d2) ? c2.action === a.a.Indent ? c2.indentation : r2.unshiftIndent(c2.indentation) : c2.action === a.a.Indent ? r2.shiftIndent(c2.indentation) : c2.indentation; } return null; } @@ -14743,9 +14743,9 @@ if (e2 < 4) return null; t2.forceTokenization(n2.startLineNumber); - const o2 = t2.getLineTokens(n2.startLineNumber), s2 = Object(l.a)(o2, n2.startColumn - 1), c2 = s2.getLineContent(); + const r2 = t2.getLineTokens(n2.startLineNumber), s2 = Object(l.a)(r2, n2.startColumn - 1), c2 = s2.getLineContent(); let d2, h2, u2 = false; - if (s2.firstCharOffset > 0 && o2.getLanguageId(0) !== s2.languageId ? (u2 = true, d2 = c2.substr(0, n2.startColumn - 1 - s2.firstCharOffset)) : d2 = o2.getLineContent().substring(0, n2.startColumn - 1), n2.isEmpty()) + if (s2.firstCharOffset > 0 && r2.getLanguageId(0) !== s2.languageId ? (u2 = true, d2 = c2.substr(0, n2.startColumn - 1 - s2.firstCharOffset)) : d2 = r2.getLineContent().substring(0, n2.startColumn - 1), n2.isEmpty()) h2 = c2.substr(n2.startColumn - 1 - s2.firstCharOffset); else { h2 = this.getScopedLineTokens(t2, n2.endLineNumber, n2.endColumn).getLineContent().substr(n2.endColumn - 1 - s2.firstCharOffset); @@ -14753,7 +14753,7 @@ const p2 = this.getIndentRulesSupport(s2.languageId); if (!p2) return null; - const m2 = d2, g2 = r.z(d2), f2 = {getLineTokens: (e3) => t2.getLineTokens(e3), getLanguageIdentifier: () => t2.getLanguageIdentifier(), getLanguageIdAtPosition: (e3, n3) => t2.getLanguageIdAtPosition(e3, n3), getLineContent: (e3) => e3 === n2.startLineNumber ? m2 : t2.getLineContent(e3)}, b2 = r.z(o2.getLineContent()), _ = this.getInheritIndentForLine(e2, f2, n2.startLineNumber + 1); + const m2 = d2, g2 = o.z(d2), f2 = {getLineTokens: (e3) => t2.getLineTokens(e3), getLanguageIdentifier: () => t2.getLanguageIdentifier(), getLanguageIdAtPosition: (e3, n3) => t2.getLanguageIdAtPosition(e3, n3), getLineContent: (e3) => e3 === n2.startLineNumber ? m2 : t2.getLineContent(e3)}, b2 = o.z(r2.getLineContent()), _ = this.getInheritIndentForLine(e2, f2, n2.startLineNumber + 1); if (!_) { const e3 = u2 ? b2 : g2; return {beforeEnter: e3, afterEnter: e3}; @@ -14761,25 +14761,25 @@ let v = u2 ? b2 : _.indentation; return _.action === a.a.Indent && (v = i2.shiftIndent(v)), p2.shouldDecrease(h2) && (v = i2.unshiftIndent(v)), {beforeEnter: u2 ? b2 : g2, afterEnter: v}; } - getIndentActionForType(e2, t2, n2, i2, o2) { + getIndentActionForType(e2, t2, n2, i2, r2) { if (e2 < 4) return null; - const r2 = this.getScopedLineTokens(t2, n2.startLineNumber, n2.startColumn), s2 = this.getIndentRulesSupport(r2.languageId); + const o2 = this.getScopedLineTokens(t2, n2.startLineNumber, n2.startColumn), s2 = this.getIndentRulesSupport(o2.languageId); if (!s2) return null; - const l2 = r2.getLineContent(), c2 = l2.substr(0, n2.startColumn - 1 - r2.firstCharOffset); + const l2 = o2.getLineContent(), c2 = l2.substr(0, n2.startColumn - 1 - o2.firstCharOffset); let d2; if (n2.isEmpty()) - d2 = l2.substr(n2.startColumn - 1 - r2.firstCharOffset); + d2 = l2.substr(n2.startColumn - 1 - o2.firstCharOffset); else { - d2 = this.getScopedLineTokens(t2, n2.endLineNumber, n2.endColumn).getLineContent().substr(n2.endColumn - 1 - r2.firstCharOffset); + d2 = this.getScopedLineTokens(t2, n2.endLineNumber, n2.endColumn).getLineContent().substr(n2.endColumn - 1 - o2.firstCharOffset); } if (!s2.shouldDecrease(c2 + d2) && s2.shouldDecrease(c2 + i2 + d2)) { const i3 = this.getInheritIndentForLine(e2, t2, n2.startLineNumber, false); if (!i3) return null; - let r3 = i3.indentation; - return i3.action !== a.a.Indent && (r3 = o2.unshiftIndent(r3)), r3; + let o3 = i3.indentation; + return i3.action !== a.a.Indent && (o3 = r2.unshiftIndent(o3)), o3; } return null; } @@ -14788,13 +14788,13 @@ return n2 ? t2 < 1 || t2 > e2.getLineCount() ? null : n2.getIndentMetadata(e2.getLineContent(t2)) : null; } getEnterAction(e2, t2, n2) { - const i2 = this.getScopedLineTokens(t2, n2.startLineNumber, n2.startColumn), o2 = this._getRichEditSupport(i2.languageId); - if (!o2) + const i2 = this.getScopedLineTokens(t2, n2.startLineNumber, n2.startColumn), r2 = this._getRichEditSupport(i2.languageId); + if (!r2) return null; - const r2 = i2.getLineContent(), s2 = r2.substr(0, n2.startColumn - 1 - i2.firstCharOffset); + const o2 = i2.getLineContent(), s2 = o2.substr(0, n2.startColumn - 1 - i2.firstCharOffset); let l2; if (n2.isEmpty()) - l2 = r2.substr(n2.startColumn - 1 - i2.firstCharOffset); + l2 = o2.substr(n2.startColumn - 1 - i2.firstCharOffset); else { l2 = this.getScopedLineTokens(t2, n2.endLineNumber, n2.endColumn).getLineContent().substr(n2.endColumn - 1 - i2.firstCharOffset); } @@ -14803,7 +14803,7 @@ const e3 = this.getScopedLineTokens(t2, n2.startLineNumber - 1); e3.languageId === i2.languageId && (c2 = e3.getLineContent()); } - const d2 = o2.onEnter(e2, c2, s2, l2); + const d2 = r2.onEnter(e2, c2, s2, l2); if (!d2) return null; const h2 = d2.indentAction; @@ -14815,13 +14815,13 @@ } getIndentationAtPosition(e2, t2, n2) { const i2 = e2.getLineContent(t2); - let o2 = r.z(i2); - return o2.length > n2 - 1 && (o2 = o2.substring(0, n2 - 1)), o2; + let r2 = o.z(i2); + return r2.length > n2 - 1 && (r2 = r2.substring(0, n2 - 1)), r2; } getScopedLineTokens(e2, t2, n2) { e2.forceTokenization(t2); - const i2 = e2.getLineTokens(t2), o2 = n2 === void 0 ? e2.getLineMaxColumn(t2) - 1 : n2 - 1; - return Object(l.a)(i2, o2); + const i2 = e2.getLineTokens(t2), r2 = n2 === void 0 ? e2.getLineMaxColumn(t2) - 1 : n2 - 1; + return Object(l.a)(i2, r2); } getBracketsSupport(e2) { const t2 = this._getRichEditSupport(e2); @@ -14830,13 +14830,13 @@ }(); }, function(e, t, n) { "use strict"; - var i, o, r, s, a, l, c, d, h, u, p, m, g, f, b, _, v, w, y, C, x, S, k, E, T, L, N, I, O, D, A, R, M; + var i, r, o, s, a, l, c, d, h, u, p, m, g, f, b, _, v, w, y, C, x, S, k, E, T, L, N, I, D, O, A, R, M; n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }), n.d(t, "d", function() { return s; }), n.d(t, "e", function() { @@ -14888,9 +14888,9 @@ }), n.d(t, "B", function() { return I; }), n.d(t, "C", function() { - return O; - }), n.d(t, "D", function() { return D; + }), n.d(t, "D", function() { + return O; }), n.d(t, "E", function() { return A; }), n.d(t, "F", function() { @@ -14901,9 +14901,9 @@ e2[e2.Unknown = 0] = "Unknown", e2[e2.Disabled = 1] = "Disabled", e2[e2.Enabled = 2] = "Enabled"; }(i || (i = {})), function(e2) { e2[e2.KeepWhitespace = 1] = "KeepWhitespace", e2[e2.InsertAsSnippet = 4] = "InsertAsSnippet"; - }(o || (o = {})), function(e2) { - e2[e2.Method = 0] = "Method", e2[e2.Function = 1] = "Function", e2[e2.Constructor = 2] = "Constructor", e2[e2.Field = 3] = "Field", e2[e2.Variable = 4] = "Variable", e2[e2.Class = 5] = "Class", e2[e2.Struct = 6] = "Struct", e2[e2.Interface = 7] = "Interface", e2[e2.Module = 8] = "Module", e2[e2.Property = 9] = "Property", e2[e2.Event = 10] = "Event", e2[e2.Operator = 11] = "Operator", e2[e2.Unit = 12] = "Unit", e2[e2.Value = 13] = "Value", e2[e2.Constant = 14] = "Constant", e2[e2.Enum = 15] = "Enum", e2[e2.EnumMember = 16] = "EnumMember", e2[e2.Keyword = 17] = "Keyword", e2[e2.Text = 18] = "Text", e2[e2.Color = 19] = "Color", e2[e2.File = 20] = "File", e2[e2.Reference = 21] = "Reference", e2[e2.Customcolor = 22] = "Customcolor", e2[e2.Folder = 23] = "Folder", e2[e2.TypeParameter = 24] = "TypeParameter", e2[e2.User = 25] = "User", e2[e2.Issue = 26] = "Issue", e2[e2.Snippet = 27] = "Snippet"; }(r || (r = {})), function(e2) { + e2[e2.Method = 0] = "Method", e2[e2.Function = 1] = "Function", e2[e2.Constructor = 2] = "Constructor", e2[e2.Field = 3] = "Field", e2[e2.Variable = 4] = "Variable", e2[e2.Class = 5] = "Class", e2[e2.Struct = 6] = "Struct", e2[e2.Interface = 7] = "Interface", e2[e2.Module = 8] = "Module", e2[e2.Property = 9] = "Property", e2[e2.Event = 10] = "Event", e2[e2.Operator = 11] = "Operator", e2[e2.Unit = 12] = "Unit", e2[e2.Value = 13] = "Value", e2[e2.Constant = 14] = "Constant", e2[e2.Enum = 15] = "Enum", e2[e2.EnumMember = 16] = "EnumMember", e2[e2.Keyword = 17] = "Keyword", e2[e2.Text = 18] = "Text", e2[e2.Color = 19] = "Color", e2[e2.File = 20] = "File", e2[e2.Reference = 21] = "Reference", e2[e2.Customcolor = 22] = "Customcolor", e2[e2.Folder = 23] = "Folder", e2[e2.TypeParameter = 24] = "TypeParameter", e2[e2.User = 25] = "User", e2[e2.Issue = 26] = "Issue", e2[e2.Snippet = 27] = "Snippet"; + }(o || (o = {})), function(e2) { e2[e2.Deprecated = 1] = "Deprecated"; }(s || (s = {})), function(e2) { e2[e2.Invoke = 0] = "Invoke", e2[e2.TriggerCharacter = 1] = "TriggerCharacter", e2[e2.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions"; @@ -14955,9 +14955,9 @@ e2[e2.File = 0] = "File", e2[e2.Module = 1] = "Module", e2[e2.Namespace = 2] = "Namespace", e2[e2.Package = 3] = "Package", e2[e2.Class = 4] = "Class", e2[e2.Method = 5] = "Method", e2[e2.Property = 6] = "Property", e2[e2.Field = 7] = "Field", e2[e2.Constructor = 8] = "Constructor", e2[e2.Enum = 9] = "Enum", e2[e2.Interface = 10] = "Interface", e2[e2.Function = 11] = "Function", e2[e2.Variable = 12] = "Variable", e2[e2.Constant = 13] = "Constant", e2[e2.String = 14] = "String", e2[e2.Number = 15] = "Number", e2[e2.Boolean = 16] = "Boolean", e2[e2.Array = 17] = "Array", e2[e2.Object = 18] = "Object", e2[e2.Key = 19] = "Key", e2[e2.Null = 20] = "Null", e2[e2.EnumMember = 21] = "EnumMember", e2[e2.Struct = 22] = "Struct", e2[e2.Event = 23] = "Event", e2[e2.Operator = 24] = "Operator", e2[e2.TypeParameter = 25] = "TypeParameter"; }(I || (I = {})), function(e2) { e2[e2.Deprecated = 1] = "Deprecated"; - }(O || (O = {})), function(e2) { - e2[e2.Hidden = 0] = "Hidden", e2[e2.Blink = 1] = "Blink", e2[e2.Smooth = 2] = "Smooth", e2[e2.Phase = 3] = "Phase", e2[e2.Expand = 4] = "Expand", e2[e2.Solid = 5] = "Solid"; }(D || (D = {})), function(e2) { + e2[e2.Hidden = 0] = "Hidden", e2[e2.Blink = 1] = "Blink", e2[e2.Smooth = 2] = "Smooth", e2[e2.Phase = 3] = "Phase", e2[e2.Expand = 4] = "Expand", e2[e2.Solid = 5] = "Solid"; + }(O || (O = {})), function(e2) { e2[e2.Line = 1] = "Line", e2[e2.Block = 2] = "Block", e2[e2.Underline = 3] = "Underline", e2[e2.LineThin = 4] = "LineThin", e2[e2.BlockOutline = 5] = "BlockOutline", e2[e2.UnderlineThin = 6] = "UnderlineThin"; }(A || (A = {})), function(e2) { e2[e2.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", e2[e2.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", e2[e2.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", e2[e2.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter"; @@ -14967,10 +14967,10 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("codeEditorService"); + const r = Object(i.c)("codeEditorService"); }, function(e, t, n) { "use strict"; n.d(t, "i", function() { @@ -14993,18 +14993,18 @@ return v; }); var i = n(28); - class o extends Error { + class r extends Error { constructor(e2, t2, n2) { let i2; typeof t2 == "string" && t2.indexOf("not ") === 0 ? (i2 = "must not be", t2 = t2.replace(/^not /, "")) : i2 = "must be"; - const o2 = e2.indexOf(".") !== -1 ? "property" : "argument"; - let r2 = `The "${e2}" ${o2} ${i2} of type ${t2}`; - r2 += ". Received type " + typeof n2, super(r2), this.code = "ERR_INVALID_ARG_TYPE"; + const r2 = e2.indexOf(".") !== -1 ? "property" : "argument"; + let o2 = `The "${e2}" ${r2} ${i2} of type ${t2}`; + o2 += ". Received type " + typeof n2, super(o2), this.code = "ERR_INVALID_ARG_TYPE"; } } - function r(e2, t2) { + function o(e2, t2) { if (typeof e2 != "string") - throw new o(t2, "string", e2); + throw new r(t2, "string", e2); } function s(e2) { return e2 === 47 || e2 === 92; @@ -15016,7 +15016,7 @@ return e2 >= 65 && e2 <= 90 || e2 >= 97 && e2 <= 122; } function c(e2, t2, n2, i2) { - let o2 = "", r2 = 0, s2 = -1, a2 = 0, l2 = 0; + let r2 = "", o2 = 0, s2 = -1, a2 = 0, l2 = 0; for (let c2 = 0; c2 <= e2.length; ++c2) { if (c2 < e2.length) l2 = e2.charCodeAt(c2); @@ -15029,38 +15029,38 @@ if (s2 === c2 - 1 || a2 === 1) ; else if (a2 === 2) { - if (o2.length < 2 || r2 !== 2 || o2.charCodeAt(o2.length - 1) !== 46 || o2.charCodeAt(o2.length - 2) !== 46) { - if (o2.length > 2) { - const e3 = o2.lastIndexOf(n2); - e3 === -1 ? (o2 = "", r2 = 0) : (o2 = o2.slice(0, e3), r2 = o2.length - 1 - o2.lastIndexOf(n2)), s2 = c2, a2 = 0; + if (r2.length < 2 || o2 !== 2 || r2.charCodeAt(r2.length - 1) !== 46 || r2.charCodeAt(r2.length - 2) !== 46) { + if (r2.length > 2) { + const e3 = r2.lastIndexOf(n2); + e3 === -1 ? (r2 = "", o2 = 0) : (r2 = r2.slice(0, e3), o2 = r2.length - 1 - r2.lastIndexOf(n2)), s2 = c2, a2 = 0; continue; } - if (o2.length !== 0) { - o2 = "", r2 = 0, s2 = c2, a2 = 0; + if (r2.length !== 0) { + r2 = "", o2 = 0, s2 = c2, a2 = 0; continue; } } - t2 && (o2 += o2.length > 0 ? n2 + ".." : "..", r2 = 2); + t2 && (r2 += r2.length > 0 ? n2 + ".." : "..", o2 = 2); } else - o2.length > 0 ? o2 += `${n2}${e2.slice(s2 + 1, c2)}` : o2 = e2.slice(s2 + 1, c2), r2 = c2 - s2 - 1; + r2.length > 0 ? r2 += `${n2}${e2.slice(s2 + 1, c2)}` : r2 = e2.slice(s2 + 1, c2), o2 = c2 - s2 - 1; s2 = c2, a2 = 0; } else l2 === 46 && a2 !== -1 ? ++a2 : a2 = -1; } - return o2; + return r2; } function d(e2, t2) { if (t2 === null || typeof t2 != "object") - throw new o("pathObject", "Object", t2); + throw new r("pathObject", "Object", t2); const n2 = t2.dir || t2.root, i2 = t2.base || `${t2.name || ""}${t2.ext || ""}`; return n2 ? n2 === t2.root ? `${n2}${i2}` : `${n2}${e2}${i2}` : i2; } const h = {resolve(...e2) { - let t2 = "", n2 = "", o2 = false; + let t2 = "", n2 = "", r2 = false; for (let a2 = e2.length - 1; a2 >= -1; a2--) { let c2; if (a2 >= 0) { - if (c2 = e2[a2], r(c2, "path"), c2.length === 0) + if (c2 = e2[a2], o(c2, "path"), c2.length === 0) continue; } else t2.length === 0 ? c2 = i.a() : (c2 = i.b["=" + t2] || i.a(), (c2 === void 0 || c2.slice(0, 2).toLowerCase() !== t2.toLowerCase() && c2.charCodeAt(2) === 92) && (c2 = t2 + "\\")); @@ -15094,47 +15094,47 @@ continue; } else t2 = u2; - if (o2) { + if (r2) { if (t2.length > 0) break; - } else if (n2 = `${c2.slice(h2)}\\${n2}`, o2 = p2, p2 && t2.length > 0) + } else if (n2 = `${c2.slice(h2)}\\${n2}`, r2 = p2, p2 && t2.length > 0) break; } - return n2 = c(n2, !o2, "\\", s), o2 ? `${t2}\\${n2}` : `${t2}${n2}` || "."; + return n2 = c(n2, !r2, "\\", s), r2 ? `${t2}\\${n2}` : `${t2}${n2}` || "."; }, normalize(e2) { - r(e2, "path"); + o(e2, "path"); const t2 = e2.length; if (t2 === 0) return "."; - let n2, i2 = 0, o2 = false; + let n2, i2 = 0, r2 = false; const d2 = e2.charCodeAt(0); if (t2 === 1) return a(d2) ? "\\" : e2; if (s(d2)) - if (o2 = true, s(e2.charCodeAt(1))) { - let o3 = 2, r2 = o3; - for (; o3 < t2 && !s(e2.charCodeAt(o3)); ) - o3++; - if (o3 < t2 && o3 !== r2) { - const a2 = e2.slice(r2, o3); - for (r2 = o3; o3 < t2 && s(e2.charCodeAt(o3)); ) - o3++; - if (o3 < t2 && o3 !== r2) { - for (r2 = o3; o3 < t2 && !s(e2.charCodeAt(o3)); ) - o3++; - if (o3 === t2) - return `\\\\${a2}\\${e2.slice(r2)}\\`; - o3 !== r2 && (n2 = `\\\\${a2}\\${e2.slice(r2, o3)}`, i2 = o3); + if (r2 = true, s(e2.charCodeAt(1))) { + let r3 = 2, o2 = r3; + for (; r3 < t2 && !s(e2.charCodeAt(r3)); ) + r3++; + if (r3 < t2 && r3 !== o2) { + const a2 = e2.slice(o2, r3); + for (o2 = r3; r3 < t2 && s(e2.charCodeAt(r3)); ) + r3++; + if (r3 < t2 && r3 !== o2) { + for (o2 = r3; r3 < t2 && !s(e2.charCodeAt(r3)); ) + r3++; + if (r3 === t2) + return `\\\\${a2}\\${e2.slice(o2)}\\`; + r3 !== o2 && (n2 = `\\\\${a2}\\${e2.slice(o2, r3)}`, i2 = r3); } } } else i2 = 1; else - l(d2) && e2.charCodeAt(1) === 58 && (n2 = e2.slice(0, 2), i2 = 2, t2 > 2 && s(e2.charCodeAt(2)) && (o2 = true, i2 = 3)); - let h2 = i2 < t2 ? c(e2.slice(i2), !o2, "\\", s) : ""; - return h2.length !== 0 || o2 || (h2 = "."), h2.length > 0 && s(e2.charCodeAt(t2 - 1)) && (h2 += "\\"), n2 === void 0 ? o2 ? "\\" + h2 : h2 : o2 ? `${n2}\\${h2}` : `${n2}${h2}`; + l(d2) && e2.charCodeAt(1) === 58 && (n2 = e2.slice(0, 2), i2 = 2, t2 > 2 && s(e2.charCodeAt(2)) && (r2 = true, i2 = 3)); + let h2 = i2 < t2 ? c(e2.slice(i2), !r2, "\\", s) : ""; + return h2.length !== 0 || r2 || (h2 = "."), h2.length > 0 && s(e2.charCodeAt(t2 - 1)) && (h2 += "\\"), n2 === void 0 ? r2 ? "\\" + h2 : h2 : r2 ? `${n2}\\${h2}` : `${n2}${h2}`; }, isAbsolute(e2) { - r(e2, "path"); + o(e2, "path"); const t2 = e2.length; if (t2 === 0) return false; @@ -15145,38 +15145,38 @@ return "."; let t2, n2; for (let i3 = 0; i3 < e2.length; ++i3) { - const o3 = e2[i3]; - r(o3, "path"), o3.length > 0 && (t2 === void 0 ? t2 = n2 = o3 : t2 += "\\" + o3); + const r3 = e2[i3]; + o(r3, "path"), r3.length > 0 && (t2 === void 0 ? t2 = n2 = r3 : t2 += "\\" + r3); } if (t2 === void 0) return "."; - let i2 = true, o2 = 0; + let i2 = true, r2 = 0; if (typeof n2 == "string" && s(n2.charCodeAt(0))) { - ++o2; + ++r2; const e3 = n2.length; - e3 > 1 && s(n2.charCodeAt(1)) && (++o2, e3 > 2 && (s(n2.charCodeAt(2)) ? ++o2 : i2 = false)); + e3 > 1 && s(n2.charCodeAt(1)) && (++r2, e3 > 2 && (s(n2.charCodeAt(2)) ? ++r2 : i2 = false)); } if (i2) { - for (; o2 < t2.length && s(t2.charCodeAt(o2)); ) - o2++; - o2 >= 2 && (t2 = "\\" + t2.slice(o2)); + for (; r2 < t2.length && s(t2.charCodeAt(r2)); ) + r2++; + r2 >= 2 && (t2 = "\\" + t2.slice(r2)); } return h.normalize(t2); }, relative(e2, t2) { - if (r(e2, "from"), r(t2, "to"), e2 === t2) + if (o(e2, "from"), o(t2, "to"), e2 === t2) return ""; const n2 = h.resolve(e2), i2 = h.resolve(t2); if (n2 === i2) return ""; if ((e2 = n2.toLowerCase()) === (t2 = i2.toLowerCase())) return ""; - let o2 = 0; - for (; o2 < e2.length && e2.charCodeAt(o2) === 92; ) - o2++; + let r2 = 0; + for (; r2 < e2.length && e2.charCodeAt(r2) === 92; ) + r2++; let s2 = e2.length; - for (; s2 - 1 > o2 && e2.charCodeAt(s2 - 1) === 92; ) + for (; s2 - 1 > r2 && e2.charCodeAt(s2 - 1) === 92; ) s2--; - const a2 = s2 - o2; + const a2 = s2 - r2; let l2 = 0; for (; l2 < t2.length && t2.charCodeAt(l2) === 92; ) l2++; @@ -15186,7 +15186,7 @@ const d2 = c2 - l2, u2 = a2 < d2 ? a2 : d2; let p2 = -1, m2 = 0; for (; m2 < u2; m2++) { - const n3 = e2.charCodeAt(o2 + m2); + const n3 = e2.charCodeAt(r2 + m2); if (n3 !== t2.charCodeAt(l2 + m2)) break; n3 === 92 && (p2 = m2); @@ -15201,10 +15201,10 @@ if (m2 === 2) return i2.slice(l2 + m2); } - a2 > u2 && (e2.charCodeAt(o2 + m2) === 92 ? p2 = m2 : m2 === 2 && (p2 = 3)), p2 === -1 && (p2 = 0); + a2 > u2 && (e2.charCodeAt(r2 + m2) === 92 ? p2 = m2 : m2 === 2 && (p2 = 3)), p2 === -1 && (p2 = 0); } let g2 = ""; - for (m2 = o2 + p2 + 1; m2 <= s2; ++m2) + for (m2 = r2 + p2 + 1; m2 <= s2; ++m2) m2 !== s2 && e2.charCodeAt(m2) !== 92 || (g2 += g2.length === 0 ? ".." : "\\.."); return l2 += p2, g2.length > 0 ? `${g2}${i2.slice(l2, c2)}` : (i2.charCodeAt(l2) === 92 && ++l2, i2.slice(l2, c2)); }, toNamespacedPath(e2) { @@ -15225,33 +15225,33 @@ return "\\\\?\\" + t2; return e2; }, dirname(e2) { - r(e2, "path"); + o(e2, "path"); const t2 = e2.length; if (t2 === 0) return "."; let n2 = -1, i2 = 0; - const o2 = e2.charCodeAt(0); + const r2 = e2.charCodeAt(0); if (t2 === 1) - return s(o2) ? e2 : "."; - if (s(o2)) { + return s(r2) ? e2 : "."; + if (s(r2)) { if (n2 = i2 = 1, s(e2.charCodeAt(1))) { - let o3 = 2, r2 = o3; - for (; o3 < t2 && !s(e2.charCodeAt(o3)); ) - o3++; - if (o3 < t2 && o3 !== r2) { - for (r2 = o3; o3 < t2 && s(e2.charCodeAt(o3)); ) - o3++; - if (o3 < t2 && o3 !== r2) { - for (r2 = o3; o3 < t2 && !s(e2.charCodeAt(o3)); ) - o3++; - if (o3 === t2) + let r3 = 2, o2 = r3; + for (; r3 < t2 && !s(e2.charCodeAt(r3)); ) + r3++; + if (r3 < t2 && r3 !== o2) { + for (o2 = r3; r3 < t2 && s(e2.charCodeAt(r3)); ) + r3++; + if (r3 < t2 && r3 !== o2) { + for (o2 = r3; r3 < t2 && !s(e2.charCodeAt(r3)); ) + r3++; + if (r3 === t2) return e2; - o3 !== r2 && (n2 = i2 = o3 + 1); + r3 !== o2 && (n2 = i2 = r3 + 1); } } } } else - l(o2) && e2.charCodeAt(1) === 58 && (n2 = t2 > 2 && s(e2.charCodeAt(2)) ? 3 : 2, i2 = n2); + l(r2) && e2.charCodeAt(1) === 58 && (n2 = t2 > 2 && s(e2.charCodeAt(2)) ? 3 : 2, i2 = n2); let a2 = -1, c2 = true; for (let n3 = t2 - 1; n3 >= i2; --n3) if (s(e2.charCodeAt(n3))) { @@ -15268,12 +15268,12 @@ } return e2.slice(0, a2); }, basename(e2, t2) { - t2 !== void 0 && r(t2, "ext"), r(e2, "path"); - let n2, i2 = 0, o2 = -1, a2 = true; + t2 !== void 0 && o(t2, "ext"), o(e2, "path"); + let n2, i2 = 0, r2 = -1, a2 = true; if (e2.length >= 2 && l(e2.charCodeAt(0)) && e2.charCodeAt(1) === 58 && (i2 = 2), t2 !== void 0 && t2.length > 0 && t2.length <= e2.length) { if (t2 === e2) return ""; - let r2 = t2.length - 1, l2 = -1; + let o2 = t2.length - 1, l2 = -1; for (n2 = e2.length - 1; n2 >= i2; --n2) { const c2 = e2.charCodeAt(n2); if (s(c2)) { @@ -15282,9 +15282,9 @@ break; } } else - l2 === -1 && (a2 = false, l2 = n2 + 1), r2 >= 0 && (c2 === t2.charCodeAt(r2) ? --r2 == -1 && (o2 = n2) : (r2 = -1, o2 = l2)); + l2 === -1 && (a2 = false, l2 = n2 + 1), o2 >= 0 && (c2 === t2.charCodeAt(o2) ? --o2 == -1 && (r2 = n2) : (o2 = -1, r2 = l2)); } - return i2 === o2 ? o2 = l2 : o2 === -1 && (o2 = e2.length), e2.slice(i2, o2); + return i2 === r2 ? r2 = l2 : r2 === -1 && (r2 = e2.length), e2.slice(i2, r2); } for (n2 = e2.length - 1; n2 >= i2; --n2) if (s(e2.charCodeAt(n2))) { @@ -15293,48 +15293,48 @@ break; } } else - o2 === -1 && (a2 = false, o2 = n2 + 1); - return o2 === -1 ? "" : e2.slice(i2, o2); + r2 === -1 && (a2 = false, r2 = n2 + 1); + return r2 === -1 ? "" : e2.slice(i2, r2); }, extname(e2) { - r(e2, "path"); - let t2 = 0, n2 = -1, i2 = 0, o2 = -1, a2 = true, c2 = 0; + o(e2, "path"); + let t2 = 0, n2 = -1, i2 = 0, r2 = -1, a2 = true, c2 = 0; e2.length >= 2 && e2.charCodeAt(1) === 58 && l(e2.charCodeAt(0)) && (t2 = i2 = 2); - for (let r2 = e2.length - 1; r2 >= t2; --r2) { - const t3 = e2.charCodeAt(r2); + for (let o2 = e2.length - 1; o2 >= t2; --o2) { + const t3 = e2.charCodeAt(o2); if (s(t3)) { if (!a2) { - i2 = r2 + 1; + i2 = o2 + 1; break; } } else - o2 === -1 && (a2 = false, o2 = r2 + 1), t3 === 46 ? n2 === -1 ? n2 = r2 : c2 !== 1 && (c2 = 1) : n2 !== -1 && (c2 = -1); + r2 === -1 && (a2 = false, r2 = o2 + 1), t3 === 46 ? n2 === -1 ? n2 = o2 : c2 !== 1 && (c2 = 1) : n2 !== -1 && (c2 = -1); } - return n2 === -1 || o2 === -1 || c2 === 0 || c2 === 1 && n2 === o2 - 1 && n2 === i2 + 1 ? "" : e2.slice(n2, o2); + return n2 === -1 || r2 === -1 || c2 === 0 || c2 === 1 && n2 === r2 - 1 && n2 === i2 + 1 ? "" : e2.slice(n2, r2); }, format: d.bind(null, "\\"), parse(e2) { - r(e2, "path"); + o(e2, "path"); const t2 = {root: "", dir: "", base: "", ext: "", name: ""}; if (e2.length === 0) return t2; const n2 = e2.length; - let i2 = 0, o2 = e2.charCodeAt(0); + let i2 = 0, r2 = e2.charCodeAt(0); if (n2 === 1) - return s(o2) ? (t2.root = t2.dir = e2, t2) : (t2.base = t2.name = e2, t2); - if (s(o2)) { + return s(r2) ? (t2.root = t2.dir = e2, t2) : (t2.base = t2.name = e2, t2); + if (s(r2)) { if (i2 = 1, s(e2.charCodeAt(1))) { - let t3 = 2, o3 = t3; + let t3 = 2, r3 = t3; for (; t3 < n2 && !s(e2.charCodeAt(t3)); ) t3++; - if (t3 < n2 && t3 !== o3) { - for (o3 = t3; t3 < n2 && s(e2.charCodeAt(t3)); ) + if (t3 < n2 && t3 !== r3) { + for (r3 = t3; t3 < n2 && s(e2.charCodeAt(t3)); ) t3++; - if (t3 < n2 && t3 !== o3) { - for (o3 = t3; t3 < n2 && !s(e2.charCodeAt(t3)); ) + if (t3 < n2 && t3 !== r3) { + for (r3 = t3; t3 < n2 && !s(e2.charCodeAt(t3)); ) t3++; - t3 === n2 ? i2 = t3 : t3 !== o3 && (i2 = t3 + 1); + t3 === n2 ? i2 = t3 : t3 !== r3 && (i2 = t3 + 1); } } } - } else if (l(o2) && e2.charCodeAt(1) === 58) { + } else if (l(r2) && e2.charCodeAt(1) === 58) { if (n2 <= 2) return t2.root = t2.dir = e2, t2; if (i2 = 2, s(e2.charCodeAt(2))) { @@ -15346,41 +15346,41 @@ i2 > 0 && (t2.root = e2.slice(0, i2)); let a2 = -1, c2 = i2, d2 = -1, h2 = true, u2 = e2.length - 1, p2 = 0; for (; u2 >= i2; --u2) - if (o2 = e2.charCodeAt(u2), s(o2)) { + if (r2 = e2.charCodeAt(u2), s(r2)) { if (!h2) { c2 = u2 + 1; break; } } else - d2 === -1 && (h2 = false, d2 = u2 + 1), o2 === 46 ? a2 === -1 ? a2 = u2 : p2 !== 1 && (p2 = 1) : a2 !== -1 && (p2 = -1); + d2 === -1 && (h2 = false, d2 = u2 + 1), r2 === 46 ? a2 === -1 ? a2 = u2 : p2 !== 1 && (p2 = 1) : a2 !== -1 && (p2 = -1); return d2 !== -1 && (a2 === -1 || p2 === 0 || p2 === 1 && a2 === d2 - 1 && a2 === c2 + 1 ? t2.base = t2.name = e2.slice(c2, d2) : (t2.name = e2.slice(c2, a2), t2.base = e2.slice(c2, d2), t2.ext = e2.slice(a2, d2))), t2.dir = c2 > 0 && c2 !== i2 ? e2.slice(0, c2 - 1) : t2.root, t2; }, sep: "\\", delimiter: ";", win32: null, posix: null}, u = {resolve(...e2) { let t2 = "", n2 = false; - for (let o2 = e2.length - 1; o2 >= -1 && !n2; o2--) { - const s2 = o2 >= 0 ? e2[o2] : i.a(); - r(s2, "path"), s2.length !== 0 && (t2 = `${s2}/${t2}`, n2 = s2.charCodeAt(0) === 47); + for (let r2 = e2.length - 1; r2 >= -1 && !n2; r2--) { + const s2 = r2 >= 0 ? e2[r2] : i.a(); + o(s2, "path"), s2.length !== 0 && (t2 = `${s2}/${t2}`, n2 = s2.charCodeAt(0) === 47); } return t2 = c(t2, !n2, "/", a), n2 ? "/" + t2 : t2.length > 0 ? t2 : "."; }, normalize(e2) { - if (r(e2, "path"), e2.length === 0) + if (o(e2, "path"), e2.length === 0) return "."; const t2 = e2.charCodeAt(0) === 47, n2 = e2.charCodeAt(e2.length - 1) === 47; return (e2 = c(e2, !t2, "/", a)).length === 0 ? t2 ? "/" : n2 ? "./" : "." : (n2 && (e2 += "/"), t2 ? "/" + e2 : e2); - }, isAbsolute: (e2) => (r(e2, "path"), e2.length > 0 && e2.charCodeAt(0) === 47), join(...e2) { + }, isAbsolute: (e2) => (o(e2, "path"), e2.length > 0 && e2.charCodeAt(0) === 47), join(...e2) { if (e2.length === 0) return "."; let t2; for (let n2 = 0; n2 < e2.length; ++n2) { const i2 = e2[n2]; - r(i2, "path"), i2.length > 0 && (t2 === void 0 ? t2 = i2 : t2 += "/" + i2); + o(i2, "path"), i2.length > 0 && (t2 === void 0 ? t2 = i2 : t2 += "/" + i2); } return t2 === void 0 ? "." : u.normalize(t2); }, relative(e2, t2) { - if (r(e2, "from"), r(t2, "to"), e2 === t2) + if (o(e2, "from"), o(t2, "to"), e2 === t2) return ""; if ((e2 = u.resolve(e2)) === (t2 = u.resolve(t2))) return ""; - const n2 = e2.length, i2 = n2 - 1, o2 = t2.length - 1, s2 = i2 < o2 ? i2 : o2; + const n2 = e2.length, i2 = n2 - 1, r2 = t2.length - 1, s2 = i2 < r2 ? i2 : r2; let a2 = -1, l2 = 0; for (; l2 < s2; l2++) { const n3 = e2.charCodeAt(1 + l2); @@ -15389,7 +15389,7 @@ n3 === 47 && (a2 = l2); } if (l2 === s2) - if (o2 > s2) { + if (r2 > s2) { if (t2.charCodeAt(1 + l2) === 47) return t2.slice(1 + l2 + 1); if (l2 === 0) @@ -15401,7 +15401,7 @@ l2 !== n2 && e2.charCodeAt(l2) !== 47 || (c2 += c2.length === 0 ? ".." : "/.."); return `${c2}${t2.slice(1 + a2)}`; }, toNamespacedPath: (e2) => e2, dirname(e2) { - if (r(e2, "path"), e2.length === 0) + if (o(e2, "path"), e2.length === 0) return "."; const t2 = e2.charCodeAt(0) === 47; let n2 = -1, i2 = true; @@ -15415,12 +15415,12 @@ i2 = false; return n2 === -1 ? t2 ? "/" : "." : t2 && n2 === 1 ? "//" : e2.slice(0, n2); }, basename(e2, t2) { - t2 !== void 0 && r(t2, "ext"), r(e2, "path"); - let n2, i2 = 0, o2 = -1, s2 = true; + t2 !== void 0 && o(t2, "ext"), o(e2, "path"); + let n2, i2 = 0, r2 = -1, s2 = true; if (t2 !== void 0 && t2.length > 0 && t2.length <= e2.length) { if (t2 === e2) return ""; - let r2 = t2.length - 1, a2 = -1; + let o2 = t2.length - 1, a2 = -1; for (n2 = e2.length - 1; n2 >= 0; --n2) { const l2 = e2.charCodeAt(n2); if (l2 === 47) { @@ -15429,9 +15429,9 @@ break; } } else - a2 === -1 && (s2 = false, a2 = n2 + 1), r2 >= 0 && (l2 === t2.charCodeAt(r2) ? --r2 == -1 && (o2 = n2) : (r2 = -1, o2 = a2)); + a2 === -1 && (s2 = false, a2 = n2 + 1), o2 >= 0 && (l2 === t2.charCodeAt(o2) ? --o2 == -1 && (r2 = n2) : (o2 = -1, r2 = a2)); } - return i2 === o2 ? o2 = a2 : o2 === -1 && (o2 = e2.length), e2.slice(i2, o2); + return i2 === r2 ? r2 = a2 : r2 === -1 && (r2 = e2.length), e2.slice(i2, r2); } for (n2 = e2.length - 1; n2 >= 0; --n2) if (e2.charCodeAt(n2) === 47) { @@ -15440,34 +15440,34 @@ break; } } else - o2 === -1 && (s2 = false, o2 = n2 + 1); - return o2 === -1 ? "" : e2.slice(i2, o2); + r2 === -1 && (s2 = false, r2 = n2 + 1); + return r2 === -1 ? "" : e2.slice(i2, r2); }, extname(e2) { - r(e2, "path"); - let t2 = -1, n2 = 0, i2 = -1, o2 = true, s2 = 0; - for (let r2 = e2.length - 1; r2 >= 0; --r2) { - const a2 = e2.charCodeAt(r2); + o(e2, "path"); + let t2 = -1, n2 = 0, i2 = -1, r2 = true, s2 = 0; + for (let o2 = e2.length - 1; o2 >= 0; --o2) { + const a2 = e2.charCodeAt(o2); if (a2 !== 47) - i2 === -1 && (o2 = false, i2 = r2 + 1), a2 === 46 ? t2 === -1 ? t2 = r2 : s2 !== 1 && (s2 = 1) : t2 !== -1 && (s2 = -1); - else if (!o2) { - n2 = r2 + 1; + i2 === -1 && (r2 = false, i2 = o2 + 1), a2 === 46 ? t2 === -1 ? t2 = o2 : s2 !== 1 && (s2 = 1) : t2 !== -1 && (s2 = -1); + else if (!r2) { + n2 = o2 + 1; break; } } return t2 === -1 || i2 === -1 || s2 === 0 || s2 === 1 && t2 === i2 - 1 && t2 === n2 + 1 ? "" : e2.slice(t2, i2); }, format: d.bind(null, "/"), parse(e2) { - r(e2, "path"); + o(e2, "path"); const t2 = {root: "", dir: "", base: "", ext: "", name: ""}; if (e2.length === 0) return t2; const n2 = e2.charCodeAt(0) === 47; let i2; n2 ? (t2.root = "/", i2 = 1) : i2 = 0; - let o2 = -1, s2 = 0, a2 = -1, l2 = true, c2 = e2.length - 1, d2 = 0; + let r2 = -1, s2 = 0, a2 = -1, l2 = true, c2 = e2.length - 1, d2 = 0; for (; c2 >= i2; --c2) { const t3 = e2.charCodeAt(c2); if (t3 !== 47) - a2 === -1 && (l2 = false, a2 = c2 + 1), t3 === 46 ? o2 === -1 ? o2 = c2 : d2 !== 1 && (d2 = 1) : o2 !== -1 && (d2 = -1); + a2 === -1 && (l2 = false, a2 = c2 + 1), t3 === 46 ? r2 === -1 ? r2 = c2 : d2 !== 1 && (d2 = 1) : r2 !== -1 && (d2 = -1); else if (!l2) { s2 = c2 + 1; break; @@ -15475,7 +15475,7 @@ } if (a2 !== -1) { const i3 = s2 === 0 && n2 ? 1 : s2; - o2 === -1 || d2 === 0 || d2 === 1 && o2 === a2 - 1 && o2 === s2 + 1 ? t2.base = t2.name = e2.slice(i3, a2) : (t2.name = e2.slice(i3, o2), t2.base = e2.slice(i3, a2), t2.ext = e2.slice(o2, a2)); + r2 === -1 || d2 === 0 || d2 === 1 && r2 === a2 - 1 && r2 === s2 + 1 ? t2.base = t2.name = e2.slice(i3, a2) : (t2.name = e2.slice(i3, r2), t2.base = e2.slice(i3, a2), t2.ext = e2.slice(r2, a2)); } return s2 > 0 ? t2.dir = e2.slice(0, s2 - 1) : n2 && (t2.dir = "/"), t2; }, sep: "/", delimiter: ":", win32: null, posix: null}; @@ -15497,7 +15497,7 @@ return g; }); var i = n(13); - class o { + class r { constructor() { this._keyCodeToStr = [], this._strToKeyCode = Object.create(null); } @@ -15511,7 +15511,7 @@ return this._strToKeyCode[e2.toLowerCase()] || 0; } } - const r = new o(), s = new o(), a = new o(); + const o = new r(), s = new r(), a = new r(); var l; function c(e2, t2) { return (e2 | (65535 & t2) << 16 >>> 0) >>> 0; @@ -15528,14 +15528,14 @@ } !function() { function e2(e3, t2, n2 = t2, i2 = n2) { - r.define(e3, t2), s.define(e3, n2), a.define(e3, i2); + o.define(e3, t2), s.define(e3, n2), a.define(e3, i2); } e2(0, "unknown"), e2(1, "Backspace"), e2(2, "Tab"), e2(3, "Enter"), e2(4, "Shift"), e2(5, "Ctrl"), e2(6, "Alt"), e2(7, "PauseBreak"), e2(8, "CapsLock"), e2(9, "Escape"), e2(10, "Space"), e2(11, "PageUp"), e2(12, "PageDown"), e2(13, "End"), e2(14, "Home"), e2(15, "LeftArrow", "Left"), e2(16, "UpArrow", "Up"), e2(17, "RightArrow", "Right"), e2(18, "DownArrow", "Down"), e2(19, "Insert"), e2(20, "Delete"), e2(21, "0"), e2(22, "1"), e2(23, "2"), e2(24, "3"), e2(25, "4"), e2(26, "5"), e2(27, "6"), e2(28, "7"), e2(29, "8"), e2(30, "9"), e2(31, "A"), e2(32, "B"), e2(33, "C"), e2(34, "D"), e2(35, "E"), e2(36, "F"), e2(37, "G"), e2(38, "H"), e2(39, "I"), e2(40, "J"), e2(41, "K"), e2(42, "L"), e2(43, "M"), e2(44, "N"), e2(45, "O"), e2(46, "P"), e2(47, "Q"), e2(48, "R"), e2(49, "S"), e2(50, "T"), e2(51, "U"), e2(52, "V"), e2(53, "W"), e2(54, "X"), e2(55, "Y"), e2(56, "Z"), e2(57, "Meta"), e2(58, "ContextMenu"), e2(59, "F1"), e2(60, "F2"), e2(61, "F3"), e2(62, "F4"), e2(63, "F5"), e2(64, "F6"), e2(65, "F7"), e2(66, "F8"), e2(67, "F9"), e2(68, "F10"), e2(69, "F11"), e2(70, "F12"), e2(71, "F13"), e2(72, "F14"), e2(73, "F15"), e2(74, "F16"), e2(75, "F17"), e2(76, "F18"), e2(77, "F19"), e2(78, "NumLock"), e2(79, "ScrollLock"), e2(80, ";", ";", "OEM_1"), e2(81, "=", "=", "OEM_PLUS"), e2(82, ",", ",", "OEM_COMMA"), e2(83, "-", "-", "OEM_MINUS"), e2(84, ".", ".", "OEM_PERIOD"), e2(85, "/", "/", "OEM_2"), e2(86, "`", "`", "OEM_3"), e2(110, "ABNT_C1"), e2(111, "ABNT_C2"), e2(87, "[", "[", "OEM_4"), e2(88, "\\", "\\", "OEM_5"), e2(89, "]", "]", "OEM_6"), e2(90, "'", "'", "OEM_7"), e2(91, "OEM_8"), e2(92, "OEM_102"), e2(93, "NumPad0"), e2(94, "NumPad1"), e2(95, "NumPad2"), e2(96, "NumPad3"), e2(97, "NumPad4"), e2(98, "NumPad5"), e2(99, "NumPad6"), e2(100, "NumPad7"), e2(101, "NumPad8"), e2(102, "NumPad9"), e2(103, "NumPad_Multiply"), e2(104, "NumPad_Add"), e2(105, "NumPad_Separator"), e2(106, "NumPad_Subtract"), e2(107, "NumPad_Decimal"), e2(108, "NumPad_Divide"); }(), function(e2) { e2.toString = function(e3) { - return r.keyCodeToStr(e3); + return o.keyCodeToStr(e3); }, e2.fromString = function(e3) { - return r.strToKeyCode(e3); + return o.strToKeyCode(e3); }, e2.toUserSettingsUS = function(e3) { return s.keyCodeToStr(e3); }, e2.toUserSettingsGeneral = function(e3) { @@ -15545,8 +15545,8 @@ }; }(l || (l = {})); class u { - constructor(e2, t2, n2, i2, o2) { - this.ctrlKey = e2, this.shiftKey = t2, this.altKey = n2, this.metaKey = i2, this.keyCode = o2; + constructor(e2, t2, n2, i2, r2) { + this.ctrlKey = e2, this.shiftKey = t2, this.altKey = n2, this.metaKey = i2, this.keyCode = r2; } equals(e2) { return this.ctrlKey === e2.ctrlKey && this.shiftKey === e2.shiftKey && this.altKey === e2.altKey && this.metaKey === e2.metaKey && this.keyCode === e2.keyCode; @@ -15569,8 +15569,8 @@ } } class m { - constructor(e2, t2, n2, i2, o2, r2) { - this.ctrlKey = e2, this.shiftKey = t2, this.altKey = n2, this.metaKey = i2, this.keyLabel = o2, this.keyAriaLabel = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.ctrlKey = e2, this.shiftKey = t2, this.altKey = n2, this.metaKey = i2, this.keyLabel = r2, this.keyAriaLabel = o2; } } class g { @@ -15578,20 +15578,20 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(6); - const o = (e2, t2, n2) => { - const o2 = (e3) => r2.fire(e3), r2 = new i.a({onFirstListenerAdd: () => { - e2.addEventListener(t2, o2, n2); + const r = (e2, t2, n2) => { + const r2 = (e3) => o2.fire(e3), o2 = new i.a({onFirstListenerAdd: () => { + e2.addEventListener(t2, r2, n2); }, onLastListenerRemove: () => { - e2.removeEventListener(t2, o2, n2); + e2.removeEventListener(t2, r2, n2); }}); - return r2.event; + return o2.event; }; - function r(e2) { + function o(e2) { return i.b.map(e2, (e3) => (e3.preventDefault(), e3.stopPropagation(), e3)); } }, function(e, t, n) { @@ -15601,7 +15601,7 @@ }), n.d(t, "a", function() { return s; }); - var i, o = n(23), r = n(11); + var i, r = n(23), o = n(11); !function(e2) { e2.inMemory = "inmemory", e2.vscode = "vscode", e2.internal = "private", e2.walkThrough = "walkThrough", e2.walkThroughSnippet = "walkThroughSnippet", e2.http = "http", e2.https = "https", e2.file = "file", e2.mailto = "mailto", e2.untitled = "untitled", e2.data = "data", e2.command = "command", e2.vscodeRemote = "vscode-remote", e2.vscodeRemoteResource = "vscode-remote-resource", e2.userData = "vscode-userdata", e2.vscodeCustomEditor = "vscode-custom-editor", e2.vscodeNotebook = "vscode-notebook", e2.vscodeNotebookCell = "vscode-notebook-cell", e2.vscodeSettings = "vscode-settings", e2.webviewPanel = "webview-panel", e2.vscodeWebview = "vscode-webview", e2.vscodeWebviewResource = "vscode-webview-resource", e2.extension = "extension"; }(i || (i = {})); @@ -15620,15 +15620,15 @@ n2 && n2.indexOf(":") !== -1 && (n2 = `[${n2}]`); const s2 = this._ports[t2], a = this._connectionTokens[t2]; let l = "path=" + encodeURIComponent(e2.path); - return typeof a == "string" && (l += "&tkn=" + encodeURIComponent(a)), o.a.from({scheme: r.h ? this._preferredWebSchema : i.vscodeRemoteResource, authority: `${n2}:${s2}`, path: "/vscode-remote-resource", query: l}); + return typeof a == "string" && (l += "&tkn=" + encodeURIComponent(a)), r.a.from({scheme: o.h ? this._preferredWebSchema : i.vscodeRemoteResource, authority: `${n2}:${s2}`, path: "/vscode-remote-resource", query: l}); } }(); }, function(e, t, n) { "use strict"; n.d(t, "c", function() { - return o; - }), n.d(t, "d", function() { return r; + }), n.d(t, "d", function() { + return o; }), n.d(t, "b", function() { return a; }), n.d(t, "g", function() { @@ -15641,17 +15641,17 @@ return h; }); var i = n(14); - function o(e2) { + function r(e2) { if (!e2 || typeof e2 != "object") return e2; if (e2 instanceof RegExp) return e2; const t2 = Array.isArray(e2) ? [] : {}; return Object.keys(e2).forEach((n2) => { - e2[n2] && typeof e2[n2] == "object" ? t2[n2] = o(e2[n2]) : t2[n2] = e2[n2]; + e2[n2] && typeof e2[n2] == "object" ? t2[n2] = r(e2[n2]) : t2[n2] = e2[n2]; }), t2; } - function r(e2) { + function o(e2) { if (!e2 || typeof e2 != "object") return e2; const t2 = [e2]; @@ -15668,33 +15668,33 @@ } const s = Object.prototype.hasOwnProperty; function a(e2, t2) { - return function e3(t3, n2, o2) { + return function e3(t3, n2, r2) { if (Object(i.l)(t3)) return t3; - const r2 = n2(t3); - if (r2 !== void 0) - return r2; + const o2 = n2(t3); + if (o2 !== void 0) + return o2; if (Object(i.e)(t3)) { const i2 = []; - for (const r3 of t3) - i2.push(e3(r3, n2, o2)); + for (const o3 of t3) + i2.push(e3(o3, n2, r2)); return i2; } if (Object(i.i)(t3)) { - if (o2.has(t3)) + if (r2.has(t3)) throw new Error("Cannot clone recursive data-structure"); - o2.add(t3); + r2.add(t3); const i2 = {}; - for (let r3 in t3) - s.call(t3, r3) && (i2[r3] = e3(t3[r3], n2, o2)); - return o2.delete(t3), i2; + for (let o3 in t3) + s.call(t3, o3) && (i2[o3] = e3(t3[o3], n2, r2)); + return r2.delete(t3), i2; } return t3; }(e2, t2, new Set()); } function l(e2, t2, n2 = true) { - return Object(i.i)(e2) ? (Object(i.i)(t2) && Object.keys(t2).forEach((o2) => { - o2 in e2 ? n2 && (Object(i.i)(e2[o2]) && Object(i.i)(t2[o2]) ? l(e2[o2], t2[o2], n2) : e2[o2] = t2[o2]) : e2[o2] = t2[o2]; + return Object(i.i)(e2) ? (Object(i.i)(t2) && Object.keys(t2).forEach((r2) => { + r2 in e2 ? n2 && (Object(i.i)(e2[r2]) && Object(i.i)(t2[r2]) ? l(e2[r2], t2[r2], n2) : e2[r2] = t2[r2]) : e2[r2] = t2[r2]; }), e2) : t2; } function c(e2, ...t2) { @@ -15719,17 +15719,17 @@ if (!d(e2[n2], t2[n2])) return false; } else { - const o2 = []; - for (i2 in e2) - o2.push(i2); - o2.sort(); const r2 = []; - for (i2 in t2) + for (i2 in e2) r2.push(i2); - if (r2.sort(), !d(o2, r2)) + r2.sort(); + const o2 = []; + for (i2 in t2) + o2.push(i2); + if (o2.sort(), !d(r2, o2)) return false; - for (n2 = 0; n2 < o2.length; n2++) - if (!d(e2[o2[n2]], t2[o2[n2]])) + for (n2 = 0; n2 < r2.length; n2++) + if (!d(e2[r2[n2]], t2[r2[n2]])) return false; } return true; @@ -15772,15 +15772,15 @@ }), n.d(t, "f", function() { return Xn; }), n.d(t, "h", function() { - return Hr; + return Ho; }), n.d(t, "j", function() { - return qr; + return qo; }), n.d(t, "i", function() { - return $r; + return $o; }), function(e2) { e2[e2.Ident = 0] = "Ident", e2[e2.AtKeyword = 1] = "AtKeyword", e2[e2.String = 2] = "String", e2[e2.BadString = 3] = "BadString", e2[e2.UnquotedString = 4] = "UnquotedString", e2[e2.Hash = 5] = "Hash", e2[e2.Num = 6] = "Num", e2[e2.Percentage = 7] = "Percentage", e2[e2.Dimension = 8] = "Dimension", e2[e2.UnicodeRange = 9] = "UnicodeRange", e2[e2.CDO = 10] = "CDO", e2[e2.CDC = 11] = "CDC", e2[e2.Colon = 12] = "Colon", e2[e2.SemiColon = 13] = "SemiColon", e2[e2.CurlyL = 14] = "CurlyL", e2[e2.CurlyR = 15] = "CurlyR", e2[e2.ParenthesisL = 16] = "ParenthesisL", e2[e2.ParenthesisR = 17] = "ParenthesisR", e2[e2.BracketL = 18] = "BracketL", e2[e2.BracketR = 19] = "BracketR", e2[e2.Whitespace = 20] = "Whitespace", e2[e2.Includes = 21] = "Includes", e2[e2.Dashmatch = 22] = "Dashmatch", e2[e2.SubstringOperator = 23] = "SubstringOperator", e2[e2.PrefixOperator = 24] = "PrefixOperator", e2[e2.SuffixOperator = 25] = "SuffixOperator", e2[e2.Delim = 26] = "Delim", e2[e2.EMS = 27] = "EMS", e2[e2.EXS = 28] = "EXS", e2[e2.Length = 29] = "Length", e2[e2.Angle = 30] = "Angle", e2[e2.Time = 31] = "Time", e2[e2.Freq = 32] = "Freq", e2[e2.Exclamation = 33] = "Exclamation", e2[e2.Resolution = 34] = "Resolution", e2[e2.Comma = 35] = "Comma", e2[e2.Charset = 36] = "Charset", e2[e2.EscapedJavaScript = 37] = "EscapedJavaScript", e2[e2.BadEscapedJavaScript = 38] = "BadEscapedJavaScript", e2[e2.Comment = 39] = "Comment", e2[e2.SingleLineComment = 40] = "SingleLineComment", e2[e2.EOF = 41] = "EOF", e2[e2.CustomToken = 42] = "CustomToken"; }(i || (i = {})); - var o = function() { + var r = function() { function e2(e3) { this.source = e3, this.len = e3.length, this.position = 0; } @@ -15816,16 +15816,16 @@ this.position++; return this.position - t2; }, e2; - }(), r = "a".charCodeAt(0), s = "f".charCodeAt(0), a = "z".charCodeAt(0), l = "A".charCodeAt(0), c = "F".charCodeAt(0), d = "Z".charCodeAt(0), h = "0".charCodeAt(0), u = "9".charCodeAt(0), p = "~".charCodeAt(0), m = "^".charCodeAt(0), g = "=".charCodeAt(0), f = "|".charCodeAt(0), b = "-".charCodeAt(0), _ = "_".charCodeAt(0), v = "%".charCodeAt(0), w = "*".charCodeAt(0), y = "(".charCodeAt(0), C = ")".charCodeAt(0), x = "<".charCodeAt(0), S = ">".charCodeAt(0), k = "@".charCodeAt(0), E = "#".charCodeAt(0), T = "$".charCodeAt(0), L = "\\".charCodeAt(0), N = "/".charCodeAt(0), I = "\n".charCodeAt(0), O = "\r".charCodeAt(0), D = "\f".charCodeAt(0), A = '"'.charCodeAt(0), R = "'".charCodeAt(0), M = " ".charCodeAt(0), P = " ".charCodeAt(0), F = ";".charCodeAt(0), W = ":".charCodeAt(0), z = "{".charCodeAt(0), B = "}".charCodeAt(0), j = "[".charCodeAt(0), V = "]".charCodeAt(0), U = ",".charCodeAt(0), H = ".".charCodeAt(0), q = "!".charCodeAt(0), $ = {}; + }(), o = "a".charCodeAt(0), s = "f".charCodeAt(0), a = "z".charCodeAt(0), l = "A".charCodeAt(0), c = "F".charCodeAt(0), d = "Z".charCodeAt(0), h = "0".charCodeAt(0), u = "9".charCodeAt(0), p = "~".charCodeAt(0), m = "^".charCodeAt(0), g = "=".charCodeAt(0), f = "|".charCodeAt(0), b = "-".charCodeAt(0), _ = "_".charCodeAt(0), v = "%".charCodeAt(0), w = "*".charCodeAt(0), y = "(".charCodeAt(0), C = ")".charCodeAt(0), x = "<".charCodeAt(0), S = ">".charCodeAt(0), k = "@".charCodeAt(0), E = "#".charCodeAt(0), T = "$".charCodeAt(0), L = "\\".charCodeAt(0), N = "/".charCodeAt(0), I = "\n".charCodeAt(0), D = "\r".charCodeAt(0), O = "\f".charCodeAt(0), A = '"'.charCodeAt(0), R = "'".charCodeAt(0), M = " ".charCodeAt(0), P = " ".charCodeAt(0), F = ";".charCodeAt(0), W = ":".charCodeAt(0), z = "{".charCodeAt(0), B = "}".charCodeAt(0), j = "[".charCodeAt(0), V = "]".charCodeAt(0), U = ",".charCodeAt(0), H = ".".charCodeAt(0), q = "!".charCodeAt(0), $ = {}; $[F] = i.SemiColon, $[W] = i.Colon, $[z] = i.CurlyL, $[B] = i.CurlyR, $[V] = i.BracketR, $[j] = i.BracketL, $[y] = i.ParenthesisL, $[C] = i.ParenthesisR, $[U] = i.Comma; var K = {}; K.em = i.EMS, K.ex = i.EXS, K.px = i.Length, K.cm = i.Length, K.mm = i.Length, K.in = i.Length, K.pt = i.Length, K.pc = i.Length, K.deg = i.Angle, K.rad = i.Angle, K.grad = i.Angle, K.ms = i.Time, K.s = i.Time, K.hz = i.Freq, K.khz = i.Freq, K["%"] = i.Percentage, K.fr = i.Percentage, K.dpi = i.Resolution, K.dpcm = i.Resolution; var G = function() { function e2() { - this.stream = new o(""), this.ignoreComment = true, this.ignoreWhitespace = true, this.inURL = false; + this.stream = new r(""), this.ignoreComment = true, this.ignoreWhitespace = true, this.inURL = false; } return e2.prototype.setSource = function(e3) { - this.stream = new o(e3); + this.stream = new r(e3); }, e2.prototype.finishToken = function(e3, t2, n2) { return {offset: e3, len: this.stream.pos() - e3, type: t2, text: n2 || this.stream.substring(e3)}; }, e2.prototype.substring = function(e3, t2) { @@ -15863,11 +15863,11 @@ if (this.stream.advanceIfChar(q)) return this.finishToken(e3, i.Exclamation); if (this._number()) { - var o2 = this.stream.pos(); - if (t2 = [this.stream.substring(e3, o2)], this.stream.advanceIfChar(v)) + var r2 = this.stream.pos(); + if (t2 = [this.stream.substring(e3, r2)], this.stream.advanceIfChar(v)) return this.finishToken(e3, i.Percentage); if (this.ident(t2)) { - var r2 = this.stream.substring(o2).toLowerCase(), s2 = K[r2]; + var o2 = this.stream.substring(r2).toLowerCase(), s2 = K[o2]; return s2 !== void 0 ? this.finishToken(e3, s2, t2.join("")) : this.finishToken(e3, i.Dimension, t2.join("")); } return this.finishToken(e3, i.Num); @@ -15904,27 +15904,27 @@ }, e2.prototype._newline = function(e3) { var t2 = this.stream.peekChar(); switch (t2) { - case O: case D: + case O: case I: - return this.stream.advance(1), e3.push(String.fromCharCode(t2)), t2 === O && this.stream.advanceIfChar(I) && e3.push("\n"), true; + return this.stream.advance(1), e3.push(String.fromCharCode(t2)), t2 === D && this.stream.advanceIfChar(I) && e3.push("\n"), true; } return false; }, e2.prototype._escape = function(e3, t2) { var n2 = this.stream.peekChar(); if (n2 === L) { this.stream.advance(1), n2 = this.stream.peekChar(); - for (var i2 = 0; i2 < 6 && (n2 >= h && n2 <= u || n2 >= r && n2 <= s || n2 >= l && n2 <= c); ) + for (var i2 = 0; i2 < 6 && (n2 >= h && n2 <= u || n2 >= o && n2 <= s || n2 >= l && n2 <= c); ) this.stream.advance(1), n2 = this.stream.peekChar(), i2++; if (i2 > 0) { try { - var o2 = parseInt(this.stream.substring(this.stream.pos() - i2), 16); - o2 && e3.push(String.fromCharCode(o2)); + var r2 = parseInt(this.stream.substring(this.stream.pos() - i2), 16); + r2 && e3.push(String.fromCharCode(r2)); } catch (e4) { } return n2 === M || n2 === P ? this.stream.advance(1) : this._newline([]), true; } - if (n2 !== O && n2 !== D && n2 !== I) + if (n2 !== D && n2 !== O && n2 !== I) return this.stream.advance(1), e3.push(String.fromCharCode(n2)), true; if (t2) return this._newline(e3); @@ -15932,7 +15932,7 @@ return false; }, e2.prototype._stringChar = function(e3, t2) { var n2 = this.stream.peekChar(); - return n2 !== 0 && n2 !== e3 && n2 !== L && n2 !== O && n2 !== D && n2 !== I && (this.stream.advance(1), t2.push(String.fromCharCode(n2)), true); + return n2 !== 0 && n2 !== e3 && n2 !== L && n2 !== D && n2 !== O && n2 !== I && (this.stream.advance(1), t2.push(String.fromCharCode(n2)), true); }, e2.prototype._string = function(e3) { if (this.stream.peekChar() === R || this.stream.peekChar() === A) { var t2 = this.stream.nextChar(); @@ -15943,14 +15943,14 @@ return null; }, e2.prototype._unquotedChar = function(e3) { var t2 = this.stream.peekChar(); - return t2 !== 0 && t2 !== L && t2 !== R && t2 !== A && t2 !== y && t2 !== C && t2 !== M && t2 !== P && t2 !== I && t2 !== D && t2 !== O && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); + return t2 !== 0 && t2 !== L && t2 !== R && t2 !== A && t2 !== y && t2 !== C && t2 !== M && t2 !== P && t2 !== I && t2 !== O && t2 !== D && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); }, e2.prototype._unquotedString = function(e3) { for (var t2 = false; this._unquotedChar(e3) || this._escape(e3); ) t2 = true; return t2; }, e2.prototype._whitespace = function() { return this.stream.advanceWhileChar(function(e3) { - return e3 === M || e3 === P || e3 === I || e3 === D || e3 === O; + return e3 === M || e3 === P || e3 === I || e3 === O || e3 === D; }) > 0; }, e2.prototype._name = function(e3) { for (var t2 = false; this._identChar(e3) || this._escape(e3); ) @@ -15972,13 +15972,13 @@ return this.stream.goBackTo(t2), false; }, e2.prototype._identFirstChar = function(e3) { var t2 = this.stream.peekChar(); - return (t2 === _ || t2 >= r && t2 <= a || t2 >= l && t2 <= d || t2 >= 128 && t2 <= 65535) && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); + return (t2 === _ || t2 >= o && t2 <= a || t2 >= l && t2 <= d || t2 >= 128 && t2 <= 65535) && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); }, e2.prototype._minus = function(e3) { var t2 = this.stream.peekChar(); return t2 === b && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); }, e2.prototype._identChar = function(e3) { var t2 = this.stream.peekChar(); - return (t2 === _ || t2 === b || t2 >= r && t2 <= a || t2 >= l && t2 <= d || t2 >= h && t2 <= u || t2 >= 128 && t2 <= 65535) && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); + return (t2 === _ || t2 === b || t2 >= o && t2 <= a || t2 >= l && t2 <= d || t2 >= h && t2 <= u || t2 >= 128 && t2 <= 65535) && (this.stream.advance(1), e3.push(String.fromCharCode(t2)), true); }, e2; }(); function Y(e2, t2) { @@ -16025,7 +16025,7 @@ }(J || (J = {})), function(e2) { e2[e2.Mixin = 0] = "Mixin", e2[e2.Rule = 1] = "Rule", e2[e2.Variable = 2] = "Variable", e2[e2.Function = 3] = "Function", e2[e2.Keyframe = 4] = "Keyframe", e2[e2.Unknown = 5] = "Unknown", e2[e2.Module = 6] = "Module", e2[e2.Forward = 7] = "Forward", e2[e2.ForwardVisibility = 8] = "ForwardVisibility"; }(ee || (ee = {})); - var oe, re = function() { + var re, oe = function() { function e2(e3, t2, n2) { e3 === void 0 && (e3 = -1), t2 === void 0 && (t2 = -1), this.parent = null, this.offset = e3, this.length = t2, n2 && (this.nodeType = n2); } @@ -16137,7 +16137,7 @@ return i2.attachTo(t3, n2), i2.offset = -1, i2.length = -1, i2; } return te(t2, e2), t2; - }(re), ae = function(e2) { + }(oe), ae = function(e2) { function t2(t3, n2) { var i2 = e2.call(this, t3, n2) || this; return i2.isCustomProperty = false, i2; @@ -16147,21 +16147,21 @@ }, enumerable: true, configurable: true}), t2.prototype.containsInterpolation = function() { return this.hasChildren(); }, t2; - }(re), le = function(e2) { + }(oe), le = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Stylesheet; }, enumerable: true, configurable: true}), t2; - }(re), ce = function(e2) { + }(oe), ce = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Declarations; }, enumerable: true, configurable: true}), t2; - }(re), de = function(e2) { + }(oe), de = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16170,7 +16170,7 @@ }, t2.prototype.setDeclarations = function(e3) { return this.setNode("declarations", e3); }, t2; - }(re), he = function(e2) { + }(oe), he = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16188,14 +16188,14 @@ return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Selector; }, enumerable: true, configurable: true}), t2; - }(re), pe = function(e2) { + }(oe), pe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.SimpleSelector; }, enumerable: true, configurable: true}), t2; - }(re), me = function(e2) { + }(oe), me = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16208,12 +16208,12 @@ }, t2.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, t2; - }(re), ge = function(e2) { + }(oe), ge = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), t2; - }(re), fe = function(e2) { + }(oe), fe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16252,7 +16252,7 @@ return this.property; }, t2.prototype.getFullPropertyName = function() { var e3 = this.property ? this.property.getName() : "unknown"; - if (this.parent instanceof ce && this.parent.getParent() instanceof Oe) { + if (this.parent instanceof ce && this.parent.getParent() instanceof De) { var n2 = this.parent.getParent().getParent(); if (n2 instanceof t2) return n2.getFullPropertyName() + e3; @@ -16291,7 +16291,7 @@ }, t2.prototype.isCustomProperty = function() { return !!this.identifier && this.identifier.isCustomProperty; }, t2; - }(re), we = function(e2) { + }(oe), we = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16313,7 +16313,7 @@ }, enumerable: true, configurable: true}), t2.prototype.getArguments = function() { return this.arguments || (this.arguments = new se(this)), this.arguments; }, t2; - }(re)), ye = function(e2) { + }(oe)), ye = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16330,7 +16330,7 @@ }, t2.prototype.getDefaultValue = function() { return this.defaultValue; }, t2; - }(re), Ce = function(e2) { + }(oe), Ce = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16347,7 +16347,7 @@ }, t2.prototype.getValue = function() { return this.value; }, t2; - }(re), xe = function(e2) { + }(oe), xe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16419,14 +16419,14 @@ return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.FontFace; }, enumerable: true, configurable: true}), t2; - }(de), Oe = function(e2) { + }(de), De = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.NestedProperties; }, enumerable: true, configurable: true}), t2; - }(de), De = function(e2) { + }(de), Oe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16459,7 +16459,7 @@ }, enumerable: true, configurable: true}), t2.prototype.setMedialist = function(e3) { return !!e3 && (e3.attachTo(this), true); }, t2; - }(re), Me = function(e2) { + }(oe), Me = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } @@ -16472,7 +16472,7 @@ }, t2.prototype.getIdentifier = function() { return this.identifier; }, t2; - }(re), Pe = function(e2) { + }(oe), Pe = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } @@ -16489,7 +16489,7 @@ }, t2.prototype.getValue = function() { return this.value; }, t2; - }(re), Fe = function(e2) { + }(oe), Fe = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } @@ -16500,7 +16500,7 @@ }, t2.prototype.getIdentifier = function() { return this.identifier; }, t2; - }(re), We = function(e2) { + }(oe), We = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } @@ -16511,14 +16511,14 @@ }, t2.prototype.getIdentifier = function() { return this.identifier; }, t2; - }(re), ze = function(e2) { + }(oe), ze = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Namespace; }, enumerable: true, configurable: true}), t2; - }(re), Be = function(e2) { + }(oe), Be = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16546,21 +16546,21 @@ return te(t2, e2), t2.prototype.getMediums = function() { return this.mediums || (this.mediums = new se(this)), this.mediums; }, t2; - }(re), He = function(e2) { + }(oe), He = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.MediaQuery; }, enumerable: true, configurable: true}), t2; - }(re), qe = function(e2) { + }(oe), qe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.SupportsCondition; }, enumerable: true, configurable: true}), t2; - }(re), $e = function(e2) { + }(oe), $e = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16581,7 +16581,7 @@ return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Expression; }, enumerable: true, configurable: true}), t2; - }(re), Ye = function(e2) { + }(oe), Ye = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16600,7 +16600,7 @@ }, t2.prototype.getOperator = function() { return this.operator; }, t2; - }(re), Ze = function(e2) { + }(oe), Ze = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16615,7 +16615,7 @@ }, t2.prototype.getExpression = function() { return this.expression; }, t2; - }(re), Xe = function(e2) { + }(oe), Xe = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16638,32 +16638,32 @@ }, t2.prototype.getValue = function() { return this.value; }, t2; - }(re), Qe = (function(e2) { + }(oe), Qe = (function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Operator; }, enumerable: true, configurable: true}); - }(re), function(e2) { + }(oe), function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.HexColorValue; }, enumerable: true, configurable: true}), t2; - }(re)), Je = ".".charCodeAt(0), et = "0".charCodeAt(0), tt = "9".charCodeAt(0), nt = function(e2) { + }(oe)), Je = ".".charCodeAt(0), et = "0".charCodeAt(0), tt = "9".charCodeAt(0), nt = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.NumericValue; }, enumerable: true, configurable: true}), t2.prototype.getValue = function() { - for (var e3, t3 = this.getText(), n2 = 0, i2 = 0, o2 = t3.length; i2 < o2 && (e3 = t3.charCodeAt(i2), et <= e3 && e3 <= tt || e3 === Je); i2++) + for (var e3, t3 = this.getText(), n2 = 0, i2 = 0, r2 = t3.length; i2 < r2 && (e3 = t3.charCodeAt(i2), et <= e3 && e3 <= tt || e3 === Je); i2++) n2 += 1; return {value: t3.substring(0, n2), unit: n2 < t3.length ? t3.substring(n2) : void 0}; }, t2; - }(re), it = function(e2) { + }(oe), it = function(e2) { function t2(t3, n2) { var i2 = e2.call(this, t3, n2) || this; return i2.variable = null, i2.value = null, i2.needsSemicolon = true, i2; @@ -16681,14 +16681,14 @@ }, t2.prototype.getValue = function() { return this.value; }, t2; - }(ge), ot = function(e2) { + }(ge), rt = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } return te(t2, e2), Object.defineProperty(t2.prototype, "type", {get: function() { return J.Interpolation; }, enumerable: true, configurable: true}), t2; - }(re), rt = function(e2) { + }(oe), ot = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16697,7 +16697,7 @@ }, enumerable: true, configurable: true}), t2.prototype.getName = function() { return this.getText(); }, t2; - }(re), st = function(e2) { + }(oe), st = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16706,7 +16706,7 @@ }, enumerable: true, configurable: true}), t2.prototype.getSelectors = function() { return this.selectors || (this.selectors = new se(this)), this.selectors; }, t2; - }(re), at = function(e2) { + }(oe), at = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16715,7 +16715,7 @@ }, enumerable: true, configurable: true}), t2.prototype.getArguments = function() { return this.arguments || (this.arguments = new se(this)), this.arguments; }, t2; - }(re), lt = function(e2) { + }(oe), lt = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16745,7 +16745,7 @@ }, t2.prototype.getContent = function() { return this.content; }, t2; - }(re), dt = function(e2) { + }(oe), dt = function(e2) { function t2(t3, n2) { return e2.call(this, t3, n2) || this; } @@ -16784,21 +16784,21 @@ }, t2.prototype.setValue = function(e3) { return this.setNode("value", e3, 1); }, t2; - }(re), pt = function(e2) { + }(oe), pt = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return te(t2, e2), t2.prototype.getConditions = function() { return this.conditions || (this.conditions = new se(this)), this.conditions; }, t2; - }(re), mt = function(e2) { + }(oe), mt = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return te(t2, e2), t2.prototype.setVariable = function(e3) { return this.setNode("variable", e3); }, t2; - }(re), gt = function(e2) { + }(oe), gt = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } @@ -16809,13 +16809,13 @@ }, t2.prototype.getIdentifier = function() { return this.identifier; }, t2; - }(re); + }(oe); !function(e2) { e2[e2.Ignore = 1] = "Ignore", e2[e2.Warning = 2] = "Warning", e2[e2.Error = 4] = "Error"; - }(oe || (oe = {})); + }(re || (re = {})); var ft = function() { - function e2(e3, t2, n2, i2, o2, r2) { - o2 === void 0 && (o2 = e3.offset), r2 === void 0 && (r2 = e3.length), this.node = e3, this.rule = t2, this.level = n2, this.message = i2 || t2.message, this.offset = o2, this.length = r2; + function e2(e3, t2, n2, i2, r2, o2) { + r2 === void 0 && (r2 = e3.offset), o2 === void 0 && (o2 = e3.length), this.node = e3, this.rule = t2, this.level = n2, this.message = i2 || t2.message, this.offset = r2, this.length = o2; } return e2.prototype.getRule = function() { return this.rule; @@ -16902,11 +16902,11 @@ } function It(e2) { return e2 === void 0 && (e2 = []), e2.length === 0 ? null : e2.map(function(e3) { - var t2 = "", n2 = e3.match(/([A-Z]+)(\d+)?/), i2 = n2[1], o2 = n2[2]; - return i2 in St && (t2 += St[i2]), o2 && (t2 += " " + o2), t2; + var t2 = "", n2 = e3.match(/([A-Z]+)(\d+)?/), i2 = n2[1], r2 = n2[2]; + return i2 in St && (t2 += St[i2]), r2 && (t2 += " " + r2), t2; }).join(", "); } - var Ot = wt(), Dt = [{func: "rgb($red, $green, $blue)", desc: Ot("css.builtin.rgb", "Creates a Color from red, green, and blue values.")}, {func: "rgba($red, $green, $blue, $alpha)", desc: Ot("css.builtin.rgba", "Creates a Color from red, green, blue, and alpha values.")}, {func: "hsl($hue, $saturation, $lightness)", desc: Ot("css.builtin.hsl", "Creates a Color from hue, saturation, and lightness values.")}, {func: "hsla($hue, $saturation, $lightness, $alpha)", desc: Ot("css.builtin.hsla", "Creates a Color from hue, saturation, lightness, and alpha values.")}], At = {aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgrey: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgray: "#d3d3d3", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", red: "#ff0000", rebeccapurple: "#663399", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", slategrey: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32"}, Rt = {currentColor: "The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.", transparent: "Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."}; + var Dt = wt(), Ot = [{func: "rgb($red, $green, $blue)", desc: Dt("css.builtin.rgb", "Creates a Color from red, green, and blue values.")}, {func: "rgba($red, $green, $blue, $alpha)", desc: Dt("css.builtin.rgba", "Creates a Color from red, green, blue, and alpha values.")}, {func: "hsl($hue, $saturation, $lightness)", desc: Dt("css.builtin.hsl", "Creates a Color from hue, saturation, and lightness values.")}, {func: "hsla($hue, $saturation, $lightness, $alpha)", desc: Dt("css.builtin.hsla", "Creates a Color from hue, saturation, lightness, and alpha values.")}], At = {aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgrey: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgray: "#d3d3d3", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", red: "#ff0000", rebeccapurple: "#663399", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", slategrey: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32"}, Rt = {currentColor: "The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.", transparent: "Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."}; function Mt(e2, t2) { var n2 = e2.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/); if (n2) { @@ -16947,36 +16947,36 @@ if (!n2 || i2.length < 3 || i2.length > 4) return null; try { - var o2 = i2.length === 4 ? Mt(i2[3], 1) : 1; + var r2 = i2.length === 4 ? Mt(i2[3], 1) : 1; if (n2 === "rgb" || n2 === "rgba") - return {red: Mt(i2[0], 255), green: Mt(i2[1], 255), blue: Mt(i2[2], 255), alpha: o2}; + return {red: Mt(i2[0], 255), green: Mt(i2[1], 255), blue: Mt(i2[2], 255), alpha: r2}; if (n2 === "hsl" || n2 === "hsla") return function(e3, t3, n3, i3) { if (i3 === void 0 && (i3 = 1), t3 === 0) return {red: n3, green: n3, blue: n3, alpha: i3}; - var o3 = function(e4, t4, n4) { + var r3 = function(e4, t4, n4) { for (; n4 < 0; ) n4 += 6; for (; n4 >= 6; ) n4 -= 6; return n4 < 1 ? (t4 - e4) * n4 + e4 : n4 < 3 ? t4 : n4 < 4 ? (t4 - e4) * (4 - n4) + e4 : e4; - }, r3 = n3 <= 0.5 ? n3 * (t3 + 1) : n3 + t3 - n3 * t3, s3 = 2 * n3 - r3; - return {red: o3(s3, r3, (e3 /= 60) + 2), green: o3(s3, r3, e3), blue: o3(s3, r3, e3 - 2), alpha: i3}; + }, o3 = n3 <= 0.5 ? n3 * (t3 + 1) : n3 + t3 - n3 * t3, s3 = 2 * n3 - o3; + return {red: r3(s3, o3, (e3 /= 60) + 2), green: r3(s3, o3, e3), blue: r3(s3, o3, e3 - 2), alpha: i3}; }(function(e3) { var t3 = e3.getText(); if (t3.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/)) return parseFloat(t3) % 360; throw new Error(); - }(i2[0]), Mt(i2[1], 100), Mt(i2[2], 100), o2); + }(i2[0]), Mt(i2[1], 100), Mt(i2[2], 100), r2); } catch (e3) { return null; } } else if (e2.type === J.Identifier) { if (e2.parent && e2.parent.type !== J.Term) return null; - var r2 = e2.parent; - if (r2 && r2.parent && r2.parent.type === J.BinaryExpression) { - var s2 = r2.parent; + var o2 = e2.parent; + if (o2 && o2.parent && o2.parent.type === J.BinaryExpression) { + var s2 = o2.parent; if (s2.parent && s2.parent.type === J.ListEntry && s2.parent.key === s2) return null; } @@ -17001,12 +17001,12 @@ var nn = function() { for (var e2 = 0, t2 = 0, n2 = arguments.length; t2 < n2; t2++) e2 += arguments[t2].length; - var i2 = Array(e2), o2 = 0; + var i2 = Array(e2), r2 = 0; for (t2 = 0; t2 < n2; t2++) - for (var r2 = arguments[t2], s2 = 0, a2 = r2.length; s2 < a2; s2++, o2++) - i2[o2] = r2[s2]; + for (var o2 = arguments[t2], s2 = 0, a2 = o2.length; s2 < a2; s2++, r2++) + i2[r2] = o2[s2]; return i2; - }, on = function() { + }, rn = function() { function e2(e3) { e3 === void 0 && (e3 = new G()), this.keyframeRegex = /^@(\-(webkit|ms|moz|o)\-)?keyframes$/i, this.scanner = e3, this.token = {type: i.EOF, offset: -1, len: 0, text: ""}, this.prevToken = void 0; } @@ -17034,8 +17034,8 @@ }, e2.prototype.acceptOneKeyword = function(e3) { if (i.AtKeyword === this.token.type) for (var t2 = 0, n2 = e3; t2 < n2.length; t2++) { - var o2 = n2[t2]; - if (o2.length === this.token.text.length && o2 === this.token.text.toLowerCase()) + var r2 = n2[t2]; + if (r2.length === this.token.text.length && r2 === this.token.text.toLowerCase()) return this.consumeToken(), true; } return false; @@ -17070,23 +17070,23 @@ this.token = this.scanner.scan(); } }, e2.prototype.createNode = function(e3) { - return new re(this.token.offset, this.token.len, e3); + return new oe(this.token.offset, this.token.len, e3); }, e2.prototype.create = function(e3) { return new e3(this.token.offset, this.token.len); }, e2.prototype.finish = function(e3, t2, n2, i2) { if (!(e3 instanceof se) && (t2 && this.markError(e3, t2, n2, i2), this.prevToken)) { - var o2 = this.prevToken.offset + this.prevToken.len; - e3.length = o2 > e3.offset ? o2 - e3.offset : 0; + var r2 = this.prevToken.offset + this.prevToken.len; + e3.length = r2 > e3.offset ? r2 - e3.offset : 0; } return e3; }, e2.prototype.markError = function(e3, t2, n2, i2) { - this.token !== this.lastErrorToken && (e3.addIssue(new ft(e3, t2, oe.Error, void 0, this.token.offset, this.token.len)), this.lastErrorToken = this.token), (n2 || i2) && this.resync(n2, i2); + this.token !== this.lastErrorToken && (e3.addIssue(new ft(e3, t2, re.Error, void 0, this.token.offset, this.token.len)), this.lastErrorToken = this.token), (n2 || i2) && this.resync(n2, i2); }, e2.prototype.parseStylesheet = function(e3) { var t2 = e3.version, n2 = e3.getText(); - return this.internalParse(n2, this._parseStylesheet, function(i2, o2) { + return this.internalParse(n2, this._parseStylesheet, function(i2, r2) { if (e3.version !== t2) throw new Error("Underlying model has changed, AST is no longer valid"); - return n2.substr(i2, o2); + return n2.substr(i2, r2); }); }, e2.prototype.internalParse = function(e3, t2, n2) { this.scanner.setSource(e3), this.token = this.scanner.scan(); @@ -17102,8 +17102,8 @@ var n2 = false; do { n2 = false; - var o2 = this._parseStylesheetStatement(); - for (o2 && (e3.addChild(o2), n2 = true, t2 = false, this.peek(i.EOF) || !this._needsSemicolonAfter(o2) || this.accept(i.SemiColon) || this.markError(e3, xt.SemiColonExpected)); this.accept(i.SemiColon) || this.accept(i.CDO) || this.accept(i.CDC); ) + var r2 = this._parseStylesheetStatement(); + for (r2 && (e3.addChild(r2), n2 = true, t2 = false, this.peek(i.EOF) || !this._needsSemicolonAfter(r2) || this.accept(i.SemiColon) || this.markError(e3, xt.SemiColonExpected)); this.accept(i.SemiColon) || this.accept(i.CDO) || this.accept(i.CDC); ) n2 = true, t2 = false; } while (n2); if (this.peek(i.EOF)) @@ -17215,17 +17215,17 @@ this.prevToken && (e3.colonPosition = this.prevToken.offset); var t2 = this.mark(); if (this.peek(i.CurlyL)) { - var n2 = this.create(be), o2 = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this)); - if (n2.setDeclarations(o2) && !o2.isErroneous(true) && (n2.addChild(this._parsePrio()), this.peek(i.SemiColon))) + var n2 = this.create(be), r2 = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this)); + if (n2.setDeclarations(r2) && !r2.isErroneous(true) && (n2.addChild(this._parsePrio()), this.peek(i.SemiColon))) return this.finish(n2), e3.setPropertySet(n2), e3.semicolonPosition = this.token.offset, this.finish(e3); this.restoreAtMark(t2); } - var r2 = this._parseExpr(); - return r2 && !r2.isErroneous(true) && (this._parsePrio(), this.peek(i.SemiColon)) ? (e3.setValue(r2), e3.semicolonPosition = this.token.offset, this.finish(e3)) : (this.restoreAtMark(t2), e3.addChild(this._parseCustomPropertyValue()), e3.addChild(this._parsePrio()), tn(e3.colonPosition) && this.token.offset === e3.colonPosition + 1 ? this.finish(e3, xt.PropertyValueExpected) : this.finish(e3)); + var o2 = this._parseExpr(); + return o2 && !o2.isErroneous(true) && (this._parsePrio(), this.peek(i.SemiColon)) ? (e3.setValue(o2), e3.semicolonPosition = this.token.offset, this.finish(e3)) : (this.restoreAtMark(t2), e3.addChild(this._parseCustomPropertyValue()), e3.addChild(this._parsePrio()), tn(e3.colonPosition) && this.token.offset === e3.colonPosition + 1 ? this.finish(e3, xt.PropertyValueExpected) : this.finish(e3)); }, e2.prototype._parseCustomPropertyValue = function() { - var e3 = this.create(re), t2 = function() { - return n2 === 0 && o2 === 0 && r2 === 0; - }, n2 = 0, o2 = 0, r2 = 0; + var e3 = this.create(oe), t2 = function() { + return n2 === 0 && r2 === 0 && o2 === 0; + }, n2 = 0, r2 = 0, o2 = 0; e: for (; ; ) { switch (this.token.type) { @@ -17239,30 +17239,30 @@ break; case i.CurlyR: if (--n2 < 0) { - if (o2 === 0 && r2 === 0) + if (r2 === 0 && o2 === 0) break e; return this.finish(e3, xt.LeftCurlyExpected); } break; case i.ParenthesisL: - o2++; + r2++; break; case i.ParenthesisR: - if (--o2 < 0) + if (--r2 < 0) return this.finish(e3, xt.LeftParenthesisExpected); break; case i.BracketL: - r2++; + o2++; break; case i.BracketR: - if (--r2 < 0) + if (--o2 < 0) return this.finish(e3, xt.LeftSquareBracketExpected); break; case i.BadString: break e; case i.EOF: var s2 = xt.RightCurlyExpected; - return r2 > 0 ? s2 = xt.RightSquareBracketExpected : o2 > 0 && (s2 = xt.RightParenthesisExpected), this.finish(e3, s2); + return o2 > 0 ? s2 = xt.RightSquareBracketExpected : r2 > 0 && (s2 = xt.RightParenthesisExpected), this.finish(e3, s2); } this.consumeToken(); } @@ -17278,7 +17278,7 @@ }, e2.prototype._parseCharset = function() { if (!this.peek(i.Charset)) return null; - var e3 = this.create(re); + var e3 = this.create(oe); return this.consumeToken(), this.accept(i.String) ? this.accept(i.SemiColon) ? this.finish(e3) : this.finish(e3, xt.SemiColonExpected) : this.finish(e3, xt.IdentifierExpected); }, e2.prototype._parseImport = function() { if (!this.peekKeyword("@import")) @@ -17303,7 +17303,7 @@ }, e2.prototype._parseKeyframe = function() { if (!this.peekRegExp(i.AtKeyword, this.keyframeRegex)) return null; - var e3 = this.create(De), t2 = this.create(re); + var e3 = this.create(Oe), t2 = this.create(oe); return this.consumeToken(), e3.setKeyword(this.finish(t2)), t2.matches("@-ms-keyframes") && this.markError(t2, xt.UnknownKeyword), e3.setIdentifier(this._parseKeyframeIdent()) ? this._parseBody(e3, this._parseKeyframeSelector.bind(this)) : this.finish(e3, xt.IdentifierExpected, [i.CurlyR]); }, e2.prototype._parseKeyframeIdent = function() { return this._parseIdent([ee.Keyframe]); @@ -17368,18 +17368,18 @@ return this.finish(e3, xt.MediaQueryExpected); return this.finish(e3); }, e2.prototype._parseMediaQuery = function(e3) { - var t2 = this.create(He), n2 = true, o2 = false; + var t2 = this.create(He), n2 = true, r2 = false; if (!this.peek(i.ParenthesisL)) { if (this.acceptIdent("only") || this.acceptIdent("not"), !t2.addChild(this._parseIdent())) return null; - o2 = true, n2 = this.acceptIdent("and"); + r2 = true, n2 = this.acceptIdent("and"); } for (; n2; ) if (t2.addChild(this._parseMediaContentStart())) n2 = this.acceptIdent("and"); else { if (!this.accept(i.ParenthesisL)) - return o2 ? this.finish(t2, xt.LeftParenthesisExpected, [], e3) : null; + return r2 ? this.finish(t2, xt.LeftParenthesisExpected, [], e3) : null; if (!t2.addChild(this._parseMediaFeatureName())) return this.finish(t2, xt.IdentifierExpected, [], e3); if (this.accept(i.Colon) && !t2.addChild(this._parseExpr())) @@ -17394,7 +17394,7 @@ }, e2.prototype._parseMediaFeatureName = function() { return this._parseIdent(); }, e2.prototype._parseMedium = function() { - var e3 = this.create(re); + var e3 = this.create(oe); return e3.addChild(this._parseIdent()) ? this.finish(e3) : null; }, e2.prototype._parsePageDeclaration = function() { return this._parsePageMarginBox() || this._parseRuleSetDeclaration(); @@ -17416,7 +17416,7 @@ }, e2.prototype._parsePageSelector = function() { if (!this.peek(i.Ident) && !this.peek(i.Colon)) return null; - var e3 = this.create(re); + var e3 = this.create(oe); return e3.addChild(this._parseIdent()), this.accept(i.Colon) && !e3.addChild(this._parseIdent()) ? this.finish(e3, xt.IdentifierExpected) : this.finish(e3); }, e2.prototype._parseDocument = function() { if (!this.peekKeyword("@-moz-document")) @@ -17428,52 +17428,52 @@ return null; var e3 = this.create(ht); e3.addChild(this._parseUnknownAtRuleName()); - var t2 = 0, n2 = 0, o2 = 0, r2 = 0; + var t2 = 0, n2 = 0, r2 = 0, o2 = 0; e: for (; ; ) { switch (this.token.type) { case i.SemiColon: - if (n2 === 0 && o2 === 0 && r2 === 0) + if (n2 === 0 && r2 === 0 && o2 === 0) break e; break; case i.EOF: - return n2 > 0 ? this.finish(e3, xt.RightCurlyExpected) : r2 > 0 ? this.finish(e3, xt.RightSquareBracketExpected) : o2 > 0 ? this.finish(e3, xt.RightParenthesisExpected) : this.finish(e3); + return n2 > 0 ? this.finish(e3, xt.RightCurlyExpected) : o2 > 0 ? this.finish(e3, xt.RightSquareBracketExpected) : r2 > 0 ? this.finish(e3, xt.RightParenthesisExpected) : this.finish(e3); case i.CurlyL: t2++, n2++; break; case i.CurlyR: if (n2--, t2 > 0 && n2 === 0) { - if (this.consumeToken(), r2 > 0) + if (this.consumeToken(), o2 > 0) return this.finish(e3, xt.RightSquareBracketExpected); - if (o2 > 0) + if (r2 > 0) return this.finish(e3, xt.RightParenthesisExpected); break e; } if (n2 < 0) { - if (o2 === 0 && r2 === 0) + if (r2 === 0 && o2 === 0) break e; return this.finish(e3, xt.LeftCurlyExpected); } break; case i.ParenthesisL: - o2++; + r2++; break; case i.ParenthesisR: - if (--o2 < 0) + if (--r2 < 0) return this.finish(e3, xt.LeftParenthesisExpected); break; case i.BracketL: - r2++; + o2++; break; case i.BracketR: - if (--r2 < 0) + if (--o2 < 0) return this.finish(e3, xt.LeftSquareBracketExpected); } this.consumeToken(); } return e3; }, e2.prototype._parseUnknownAtRuleName = function() { - var e3 = this.create(re); + var e3 = this.create(oe); return this.accept(i.AtKeyword) ? this.finish(e3) : e3; }, e2.prototype._parseOperator = function() { if (this.peekDelim("/") || this.peekDelim("*") || this.peekDelim("+") || this.peekDelim("-") || this.peek(i.Dashmatch) || this.peek(i.Includes) || this.peek(i.SubstringOperator) || this.peek(i.PrefixOperator) || this.peek(i.SuffixOperator) || this.peekDelim("=")) { @@ -17484,11 +17484,11 @@ }, e2.prototype._parseUnaryOperator = function() { if (!this.peekDelim("+") && !this.peekDelim("-")) return null; - var e3 = this.create(re); + var e3 = this.create(oe); return this.consumeToken(), this.finish(e3); }, e2.prototype._parseCombinator = function() { if (this.peekDelim(">")) { - var e3 = this.create(re); + var e3 = this.create(oe); this.consumeToken(); var t2 = this.mark(); if (!this.hasWhitespace() && this.acceptDelim(">")) { @@ -17499,15 +17499,15 @@ return e3.type = J.SelectorCombinatorParent, this.finish(e3); } if (this.peekDelim("+")) { - e3 = this.create(re); + e3 = this.create(oe); return this.consumeToken(), e3.type = J.SelectorCombinatorSibling, this.finish(e3); } if (this.peekDelim("~")) { - e3 = this.create(re); + e3 = this.create(oe); return this.consumeToken(), e3.type = J.SelectorCombinatorAllSiblings, this.finish(e3); } if (this.peekDelim("/")) { - e3 = this.create(re); + e3 = this.create(oe); this.consumeToken(); t2 = this.mark(); if (!this.hasWhitespace() && this.acceptIdent("deep") && !this.hasWhitespace() && this.acceptDelim("/")) @@ -17555,7 +17555,7 @@ if (t2) { if (!this.hasWhitespace() && this.accept(i.ParenthesisL)) { if (t2.addChild(this.try(function() { - var t3 = e3.create(re); + var t3 = e3.create(oe); if (!t3.addChild(e3._parseSelector(false))) return null; for (; e3.accept(i.Comma) && t3.addChild(e3._parseSelector(false)); ) @@ -17621,7 +17621,7 @@ }, e2.prototype._parseOperation = function() { if (!this.peek(i.ParenthesisL)) return null; - var e3 = this.create(re); + var e3 = this.create(oe); return this.consumeToken(), e3.addChild(this._parseExpr()), this.accept(i.ParenthesisR) ? this.finish(e3) : this.finish(e3, xt.RightParenthesisExpected); }, e2.prototype._parseNumeric = function() { if (this.peek(i.Num) || this.peek(i.Percentage) || this.peek(i.Resolution) || this.peek(i.Length) || this.peek(i.EMS) || this.peek(i.EXS) || this.peek(i.Angle) || this.peek(i.Time) || this.peek(i.Dimension) || this.peek(i.Freq)) { @@ -17640,7 +17640,7 @@ var e3 = this.mark(), t2 = this.createNode(J.URILiteral); return this.accept(i.Ident), this.hasWhitespace() || !this.peek(i.ParenthesisL) ? (this.restoreAtMark(e3), null) : (this.scanner.inURL = true, this.consumeToken(), t2.addChild(this._parseURLArgument()), this.scanner.inURL = false, this.accept(i.ParenthesisR) ? this.finish(t2) : this.finish(t2, xt.RightParenthesisExpected)); }, e2.prototype._parseURLArgument = function() { - var e3 = this.create(re); + var e3 = this.create(oe); return this.accept(i.String) || this.accept(i.BadString) || this.acceptUnquotedString() ? this.finish(e3) : null; }, e2.prototype._parseIdent = function(e3) { if (!this.peek(i.Ident)) @@ -17679,16 +17679,16 @@ return null; }, e2; }(); - function rn(e2, t2) { + function on(e2, t2) { return e2.indexOf(t2) !== -1; } function sn() { for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2]; - for (var n2 = [], i2 = 0, o2 = e2; i2 < o2.length; i2++) - for (var r2 = o2[i2], s2 = 0, a2 = r2; s2 < a2.length; s2++) { + for (var n2 = [], i2 = 0, r2 = e2; i2 < r2.length; i2++) + for (var o2 = r2[i2], s2 = 0, a2 = o2; s2 < a2.length; s2++) { var l2 = a2[s2]; - rn(n2, l2) || n2.push(l2); + on(n2, l2) || n2.push(l2); } return n2; } @@ -17724,8 +17724,8 @@ if (i3 === 0) return 0; for (; n3 < i3; ) { - var o3 = Math.floor((n3 + i3) / 2); - t3(e4[o3]) ? i3 = o3 : n3 = o3 + 1; + var r3 = Math.floor((n3 + i3) / 2); + t3(e4[r3]) ? i3 = r3 : n3 = r3 + 1; } return n3; }(this.children, function(e4) { @@ -17733,8 +17733,8 @@ }); if (i2 === 0) return this; - var o2 = this.children[i2 - 1]; - return o2.offset <= e3 && o2.offset + o2.length >= e3 + t2 ? o2.findInScope(e3, t2) : this; + var r2 = this.children[i2 - 1]; + return r2.offset <= e3 && r2.offset + r2.length >= e3 + t2 ? r2.findInScope(e3, t2) : this; }, e2.prototype.addSymbol = function(e3) { this.symbols.push(e3); }, e2.prototype.getSymbol = function(e3, t2) { @@ -17752,16 +17752,16 @@ return e2.call(this, 0, Number.MAX_VALUE) || this; } return Ln(t2, e2), t2; - }(Nn), On = function(e2, t2, n2, i2) { + }(Nn), Dn = function(e2, t2, n2, i2) { this.name = e2, this.value = t2, this.node = n2, this.type = i2; - }, Dn = function() { + }, On = function() { function e2(e3) { this.scope = e3; } return e2.prototype.addSymbol = function(e3, t2, n2, i2) { if (e3.offset !== -1) { - var o2 = this.scope.findScope(e3.offset, e3.length); - o2 && o2.addSymbol(new On(t2, n2, e3, i2)); + var r2 = this.scope.findScope(e3.offset, e3.length); + r2 && r2.addSymbol(new Dn(t2, n2, e3, i2)); } }, e2.prototype.addScope = function(e3) { if (e3.offset !== -1) { @@ -17773,10 +17773,10 @@ return t2; } return null; - }, e2.prototype.addSymbolToChildScope = function(e3, t2, n2, i2, o2) { + }, e2.prototype.addSymbolToChildScope = function(e3, t2, n2, i2, r2) { if (e3 && e3.offset !== -1) { - var r2 = this.addScope(e3); - r2 && r2.addSymbol(new On(n2, i2, t2, o2)); + var o2 = this.addScope(e3); + o2 && o2.addSymbol(new Dn(n2, i2, t2, r2)); } }, e2.prototype.visitNode = function(e3) { switch (e3.type) { @@ -17800,11 +17800,11 @@ var t2 = e3, n2 = t2.getDeclarations(); return n2 && t2.variable && this.addSymbolToChildScope(n2, t2.variable, t2.variable.getName(), void 0, ee.Variable), true; case J.Each: - var i2 = e3, o2 = i2.getDeclarations(); - if (o2) - for (var r2 = 0, s2 = i2.getVariables().getChildren(); r2 < s2.length; r2++) { - var a2 = s2[r2]; - this.addSymbolToChildScope(o2, a2, a2.getName(), void 0, ee.Variable); + var i2 = e3, r2 = i2.getDeclarations(); + if (r2) + for (var o2 = 0, s2 = i2.getVariables().getChildren(); o2 < s2.length; o2++) { + var a2 = s2[o2]; + this.addSymbolToChildScope(r2, a2, a2.getName(), void 0, ee.Variable); } return true; } @@ -17813,8 +17813,8 @@ var t2 = this.scope.findScope(e3.offset, e3.length); if (t2) for (var n2 = 0, i2 = e3.getSelectors().getChildren(); n2 < i2.length; n2++) { - var o2 = i2[n2]; - o2 instanceof ue && o2.getChildren().length === 1 && t2.addSymbol(new On(o2.getChild(0).getText(), void 0, o2, ee.Rule)); + var r2 = i2[n2]; + r2 instanceof ue && r2.getChildren().length === 1 && t2.addSymbol(new Dn(r2.getChild(0).getText(), void 0, r2, ee.Rule)); } return true; }, e2.prototype.visitVariableDeclarationNode = function(e3) { @@ -17831,17 +17831,17 @@ var t2 = e3.getValue() ? e3.getValue().getText() : ""; return this.addCSSVariable(e3.getProperty(), e3.getProperty().getName(), t2, ee.Variable), true; }, e2.prototype.addCSSVariable = function(e3, t2, n2, i2) { - e3.offset !== -1 && this.scope.addSymbol(new On(t2, n2, e3, i2)); + e3.offset !== -1 && this.scope.addSymbol(new Dn(t2, n2, e3, i2)); }, e2; }(), An = function() { function e2(e3) { - this.global = new In(), e3.acceptVisitor(new Dn(this.global)); + this.global = new In(), e3.acceptVisitor(new On(this.global)); } return e2.prototype.findSymbolsAtOffset = function(e3, t2) { - for (var n2 = this.global.findScope(e3, 0), i2 = [], o2 = {}; n2; ) { - for (var r2 = n2.getSymbols(), s2 = 0; s2 < r2.length; s2++) { - var a2 = r2[s2]; - a2.type !== t2 || o2[a2.name] || (i2.push(a2), o2[a2.name] = true); + for (var n2 = this.global.findScope(e3, 0), i2 = [], r2 = {}; n2; ) { + for (var o2 = n2.getSymbols(), s2 = 0; s2 < o2.length; s2++) { + var a2 = o2[s2]; + a2.type !== t2 || r2[a2.name] || (i2.push(a2), r2[a2.name] = true); } n2 = n2.parent; } @@ -17851,15 +17851,15 @@ if (e3.parent instanceof ye && e3.parent.getParent() instanceof de && (n2 = e3.parent.getParent().getDeclarations()), e3.parent instanceof Ce && e3.parent.getParent() instanceof we) { var i2 = e3.parent.getParent().getIdentifier(); if (i2) { - var o2 = this.internalFindSymbol(i2, [ee.Function]); - o2 && (n2 = o2.node.getDeclarations()); + var r2 = this.internalFindSymbol(i2, [ee.Function]); + r2 && (n2 = r2.node.getDeclarations()); } } if (!n2) return null; - for (var r2 = e3.getText(), s2 = this.global.findScope(n2.offset, n2.length); s2; ) { + for (var o2 = e3.getText(), s2 = this.global.findScope(n2.offset, n2.length); s2; ) { for (var a2 = 0; a2 < t2.length; a2++) { - var l2 = t2[a2], c2 = s2.getSymbol(r2, l2); + var l2 = t2[a2], c2 = s2.getSymbol(o2, l2); if (c2) return c2; } @@ -17882,7 +17882,7 @@ if ((i2 === "animation" || i2 === "animation-name") && n2.getValue() && n2.getValue().offset === e3.offset) return [ee.Keyframe]; } - } else if (e3 instanceof rt) + } else if (e3 instanceof ot) return [ee.Variable]; return e3.findAParent(J.Selector, J.ExtendsReference) ? [ee.Rule] : null; }, e2.prototype.findSymbolFromNode = function(e3) { @@ -17903,9 +17903,9 @@ return !(!n2 || n2.indexOf(t2.type) === -1) && this.internalFindSymbol(e3, n2) === t2; }, e2.prototype.findSymbol = function(e3, t2, n2) { for (var i2 = this.global.findScope(n2); i2; ) { - var o2 = i2.getSymbol(e3, t2); - if (o2) - return o2; + var r2 = i2.getSymbol(e3, t2); + if (r2) + return r2; i2 = i2.parent; } return null; @@ -17967,9 +17967,9 @@ }(pn || (pn = {})), function(e2) { e2.Comment = "comment", e2.Imports = "imports", e2.Region = "region"; }(mn || (mn = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {startLine: e3, endLine: t2}; - return di.defined(n2) && (r2.startCharacter = n2), di.defined(i2) && (r2.endCharacter = i2), di.defined(o2) && (r2.kind = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {startLine: e3, endLine: t2}; + return di.defined(n2) && (o2.startCharacter = n2), di.defined(i2) && (o2.endCharacter = i2), di.defined(r2) && (o2.kind = r2), o2; }, e2.is = function(e3) { var t2 = e3; return di.number(t2.startLine) && di.number(t2.startLine) && (di.undefined(t2.startCharacter) || di.number(t2.startCharacter)) && (di.undefined(t2.endCharacter) || di.number(t2.endCharacter)) && (di.undefined(t2.kind) || di.string(t2.kind)); @@ -17991,9 +17991,9 @@ return t2 != null && (di.number(t2.value) || di.string(t2.value)) && di.string(t2.target); }; }(vn || (vn = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { + e2.create = function(e3, t2, n2, i2, r2, o2) { var s2 = {range: e3, message: t2}; - return di.defined(n2) && (s2.severity = n2), di.defined(i2) && (s2.code = i2), di.defined(o2) && (s2.source = o2), di.defined(r2) && (s2.relatedInformation = r2), s2; + return di.defined(n2) && (s2.severity = n2), di.defined(i2) && (s2.code = i2), di.defined(r2) && (s2.source = r2), di.defined(o2) && (s2.relatedInformation = o2), s2; }, e2.is = function(e3) { var t2 = e3; return di.defined(t2) && ln.is(t2.range) && di.string(t2.message) && (di.number(t2.severity) || di.undefined(t2.severity)) && (di.number(t2.code) || di.string(t2.code) || di.undefined(t2.code)) && (di.string(t2.source) || di.undefined(t2.source)) && (di.undefined(t2.relatedInformation) || di.typedArray(t2.relatedInformation, fn.is)); @@ -18002,8 +18002,8 @@ e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {title: e3, command: t2}; - return di.defined(n2) && n2.length > 0 && (o2.arguments = n2), o2; + var r2 = {title: e3, command: t2}; + return di.defined(n2) && n2.length > 0 && (r2.arguments = n2), r2; }, e2.is = function(e3) { var t2 = e3; return di.defined(t2) && di.string(t2.title) && di.string(t2.command); @@ -18058,7 +18058,7 @@ })); }; }(Tn || (Tn = {})); - var Rn, Mn, Pn, Fn, Wn, zn, Bn, jn, Vn, Un, Hn, qn, $n, Kn, Gn, Yn, Zn, Xn, Qn, Jn, ei, ti, ni, ii, oi, ri, si, ai, li = function() { + var Rn, Mn, Pn, Fn, Wn, zn, Bn, jn, Vn, Un, Hn, qn, $n, Kn, Gn, Yn, Zn, Xn, Qn, Jn, ei, ti, ni, ii, ri, oi, si, ai, li = function() { function e2(e3) { this.edits = e3; } @@ -18097,8 +18097,8 @@ throw new Error("Workspace edit is not configured for document changes."); var t2 = e3; if (!(i2 = this._textEditChanges[t2.uri])) { - var n2 = {textDocument: t2, edits: o2 = []}; - this._workspaceEdit.documentChanges.push(n2), i2 = new li(o2), this._textEditChanges[t2.uri] = i2; + var n2 = {textDocument: t2, edits: r2 = []}; + this._workspaceEdit.documentChanges.push(n2), i2 = new li(r2), this._textEditChanges[t2.uri] = i2; } return i2; } @@ -18106,8 +18106,8 @@ throw new Error("Workspace edit is not configured for normal text edit changes."); var i2; if (!(i2 = this._textEditChanges[e3])) { - var o2 = []; - this._workspaceEdit.changes[e3] = o2, i2 = new li(o2), this._textEditChanges[e3] = i2; + var r2 = []; + this._workspaceEdit.changes[e3] = r2, i2 = new li(r2), this._textEditChanges[e3] = i2; } return i2; }, e2.prototype.createFile = function(e3, t2) { @@ -18195,8 +18195,8 @@ e2.create = function(e3, t2) { for (var n2 = [], i2 = 2; i2 < arguments.length; i2++) n2[i2 - 2] = arguments[i2]; - var o2 = {label: e3}; - return di.defined(t2) && (o2.documentation = t2), di.defined(n2) ? o2.parameters = n2 : o2.parameters = [], o2; + var r2 = {label: e3}; + return di.defined(t2) && (r2.documentation = t2), di.defined(n2) ? r2.parameters = n2 : r2.parameters = [], r2; }; }(Gn || (Gn = {})), function(e2) { e2.Text = 1, e2.Read = 2, e2.Write = 3; @@ -18210,14 +18210,14 @@ }(Xn || (Xn = {})), function(e2) { e2.Deprecated = 1; }(Qn || (Qn = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2) { - var r2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; - return o2 && (r2.containerName = o2), r2; + e2.create = function(e3, t2, n2, i2, r2) { + var o2 = {name: e3, kind: t2, location: {uri: i2, range: n2}}; + return r2 && (o2.containerName = r2), o2; }; }(Jn || (Jn = {})), function(e2) { - e2.create = function(e3, t2, n2, i2, o2, r2) { - var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: o2}; - return r2 !== void 0 && (s2.children = r2), s2; + e2.create = function(e3, t2, n2, i2, r2, o2) { + var s2 = {name: e3, detail: t2, kind: n2, range: i2, selectionRange: r2}; + return o2 !== void 0 && (s2.children = o2), s2; }, e2.is = function(e3) { var t2 = e3; return t2 && di.string(t2.name) && di.number(t2.kind) && ln.is(t2.range) && ln.is(t2.selectionRange) && (t2.detail === void 0 || di.string(t2.detail)) && (t2.deprecated === void 0 || di.boolean(t2.deprecated)) && (t2.children === void 0 || Array.isArray(t2.children)) && (t2.tags === void 0 || Array.isArray(t2.tags)); @@ -18248,14 +18248,14 @@ var t2 = e3; return di.defined(t2) && ln.is(t2.range) && (di.undefined(t2.command) || yn.is(t2.command)); }; - }(oi || (oi = {})), function(e2) { + }(ri || (ri = {})), function(e2) { e2.create = function(e3, t2) { return {tabSize: e3, insertSpaces: t2}; }, e2.is = function(e3) { var t2 = e3; return di.defined(t2) && di.number(t2.tabSize) && di.boolean(t2.insertSpaces); }; - }(ri || (ri = {})), function(e2) { + }(oi || (oi = {})), function(e2) { e2.create = function(e3, t2, n2) { return {range: e3, target: t2, data: n2}; }, e2.is = function(e3) { @@ -18281,26 +18281,26 @@ for (var n2 = e3.getText(), i2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2, function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }), o2 = n2.length, r2 = i2.length - 1; r2 >= 0; r2--) { - var s2 = i2[r2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); - if (!(l2 <= o2)) + }), r2 = n2.length, o2 = i2.length - 1; o2 >= 0; o2--) { + var s2 = i2[o2], a2 = e3.offsetAt(s2.range.start), l2 = e3.offsetAt(s2.range.end); + if (!(l2 <= r2)) throw new Error("Overlapping edit"); - n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), o2 = a2; + n2 = n2.substring(0, a2) + s2.newText + n2.substring(l2, n2.length), r2 = a2; } return n2; }; @@ -18327,8 +18327,8 @@ if (this._lineOffsets === void 0) { for (var e3 = [], t2 = this._content, n2 = true, i2 = 0; i2 < t2.length; i2++) { n2 && (e3.push(i2), n2 = false); - var o2 = t2.charAt(i2); - n2 = o2 === "\r" || o2 === "\n", o2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; + var r2 = t2.charAt(i2); + n2 = r2 === "\r" || r2 === "\n", r2 === "\r" && i2 + 1 < t2.length && t2.charAt(i2 + 1) === "\n" && i2++; } n2 && t2.length > 0 && e3.push(t2.length), this._lineOffsets = e3; } @@ -18339,11 +18339,11 @@ if (i2 === 0) return an.create(0, e3); for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2[o2] > e3 ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2[r2] > e3 ? i2 = r2 : n2 = r2 + 1; } - var r2 = n2 - 1; - return an.create(r2, e3 - t2[r2]); + var o2 = n2 - 1; + return an.create(o2, e3 - t2[o2]); }, e2.prototype.offsetAt = function(e3) { var t2 = this.getLineOffsets(); if (e3.line >= t2.length) @@ -18393,25 +18393,25 @@ } return this._content; }, e2.prototype.update = function(t2, n2) { - for (var i2 = 0, o2 = t2; i2 < o2.length; i2++) { - var r2 = o2[i2]; - if (e2.isIncremental(r2)) { - var s2 = bi(r2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); - this._content = this._content.substring(0, a2) + r2.text + this._content.substring(l2, this._content.length); - var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = fi(r2.text, false, a2); + for (var i2 = 0, r2 = t2; i2 < r2.length; i2++) { + var o2 = r2[i2]; + if (e2.isIncremental(o2)) { + var s2 = bi(o2.range), a2 = this.offsetAt(s2.start), l2 = this.offsetAt(s2.end); + this._content = this._content.substring(0, a2) + o2.text + this._content.substring(l2, this._content.length); + var c2 = Math.max(s2.start.line, 0), d2 = Math.max(s2.end.line, 0), h2 = this._lineOffsets, u2 = fi(o2.text, false, a2); if (d2 - c2 === u2.length) for (var p2 = 0, m2 = u2.length; p2 < m2; p2++) h2[p2 + c2 + 1] = u2[p2]; else u2.length < 1e4 ? h2.splice.apply(h2, [c2 + 1, d2 - c2].concat(u2)) : this._lineOffsets = h2 = h2.slice(0, c2 + 1).concat(u2, h2.slice(d2 + 1)); - var g2 = r2.text.length - (l2 - a2); + var g2 = o2.text.length - (l2 - a2); if (g2 !== 0) for (p2 = c2 + 1 + u2.length, m2 = h2.length; p2 < m2; p2++) h2[p2] = h2[p2] + g2; } else { - if (!e2.isFull(r2)) + if (!e2.isFull(o2)) throw new Error("Unknown change event received"); - this._content = r2.text, this._lineOffsets = void 0; + this._content = o2.text, this._lineOffsets = void 0; } } this._version = n2; @@ -18423,11 +18423,11 @@ if (i2 === 0) return {line: 0, character: e3}; for (; n2 < i2; ) { - var o2 = Math.floor((n2 + i2) / 2); - t2[o2] > e3 ? i2 = o2 : n2 = o2 + 1; + var r2 = Math.floor((n2 + i2) / 2); + t2[r2] > e3 ? i2 = r2 : n2 = r2 + 1; } - var r2 = n2 - 1; - return {line: r2, character: e3 - t2[r2]}; + var o2 = n2 - 1; + return {line: o2, character: e3 - t2[o2]}; }, e2.prototype.offsetAt = function(e3) { var t2 = this.getLineOffsets(); if (e3.line >= t2.length) @@ -18448,9 +18448,9 @@ }(); function fi(e2, t2, n2) { n2 === void 0 && (n2 = 0); - for (var i2 = t2 ? [n2] : [], o2 = 0; o2 < e2.length; o2++) { - var r2 = e2.charCodeAt(o2); - r2 !== 13 && r2 !== 10 || (r2 === 13 && o2 + 1 < e2.length && e2.charCodeAt(o2 + 1) === 10 && o2++, i2.push(n2 + o2 + 1)); + for (var i2 = t2 ? [n2] : [], r2 = 0; r2 < e2.length; r2++) { + var o2 = e2.charCodeAt(r2); + o2 !== 13 && o2 !== 10 || (o2 === 13 && r2 + 1 < e2.length && e2.charCodeAt(r2 + 1) === 10 && r2++, i2.push(n2 + r2 + 1)); } return i2; } @@ -18470,31 +18470,31 @@ return e3.update(t2, n2), e3; throw new Error("TextDocument.update: document must be created by TextDocument.create"); }, e2.applyEdits = function(e3, t2) { - for (var n2 = e3.getText(), i2 = 0, o2 = [], r2 = 0, s2 = function e4(t3, n3) { + for (var n2 = e3.getText(), i2 = 0, r2 = [], o2 = 0, s2 = function e4(t3, n3) { if (t3.length <= 1) return t3; - var i3 = t3.length / 2 | 0, o3 = t3.slice(0, i3), r3 = t3.slice(i3); - e4(o3, n3), e4(r3, n3); + var i3 = t3.length / 2 | 0, r3 = t3.slice(0, i3), o3 = t3.slice(i3); + e4(r3, n3), e4(o3, n3); var s3 = 0, a3 = 0, l3 = 0; - for (; s3 < o3.length && a3 < r3.length; ) { - var c2 = n3(o3[s3], r3[a3]); - t3[l3++] = c2 <= 0 ? o3[s3++] : r3[a3++]; - } - for (; s3 < o3.length; ) - t3[l3++] = o3[s3++]; - for (; a3 < r3.length; ) - t3[l3++] = r3[a3++]; + for (; s3 < r3.length && a3 < o3.length; ) { + var c2 = n3(r3[s3], o3[a3]); + t3[l3++] = c2 <= 0 ? r3[s3++] : o3[a3++]; + } + for (; s3 < r3.length; ) + t3[l3++] = r3[s3++]; + for (; a3 < o3.length; ) + t3[l3++] = o3[a3++]; return t3; }(t2.map(_i), function(e4, t3) { var n3 = e4.range.start.line - t3.range.start.line; return n3 === 0 ? e4.range.start.character - t3.range.start.character : n3; - }); r2 < s2.length; r2++) { - var a2 = s2[r2], l2 = e3.offsetAt(a2.range.start); + }); o2 < s2.length; o2++) { + var a2 = s2[o2], l2 = e3.offsetAt(a2.range.start); if (l2 < i2) throw new Error("Overlapping edit"); - l2 > i2 && o2.push(n2.substring(i2, l2)), a2.newText.length && o2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); + l2 > i2 && r2.push(n2.substring(i2, l2)), a2.newText.length && r2.push(a2.newText), i2 = e3.offsetAt(a2.range.end); } - return o2.push(n2.substr(i2)), o2.join(""); + return r2.push(n2.substr(i2)), r2.join(""); }; }(ui || (ui = {})), (pi || (pi = {})).LATEST = {textDocument: {completion: {completionItem: {documentationFormat: [Fn.Markdown, Fn.PlainText]}}, hover: {contentFormat: [Fn.Markdown, Fn.PlainText]}}}, function(e2) { e2[e2.Unknown = 0] = "Unknown", e2[e2.File = 1] = "File", e2[e2.Directory = 2] = "Directory", e2[e2.SymbolicLink = 64] = "SymbolicLink"; @@ -18506,107 +18506,107 @@ } function xi(e2) { for (var t2 = [], n2 = 0, i2 = e2; n2 < i2.length; n2++) { - var o2 = i2[n2]; - o2.length === 0 || o2.length === 1 && o2.charCodeAt(0) === yi || (o2.length === 2 && o2.charCodeAt(0) === yi && o2.charCodeAt(1) === yi ? t2.pop() : t2.push(o2)); + var r2 = i2[n2]; + r2.length === 0 || r2.length === 1 && r2.charCodeAt(0) === yi || (r2.length === 2 && r2.charCodeAt(0) === yi && r2.charCodeAt(1) === yi ? t2.pop() : t2.push(r2)); } e2.length > 1 && e2[e2.length - 1].length === 0 && t2.push(""); - var r2 = t2.join("/"); - return e2[0].length === 0 && (r2 = "/" + r2), r2; + var o2 = t2.join("/"); + return e2[0].length === 0 && (o2 = "/" + o2), o2; } function Si(e2) { for (var t2 = [], n2 = 1; n2 < arguments.length; n2++) t2[n2 - 1] = arguments[n2]; - for (var i2 = vi.a.parse(e2), o2 = i2.path.split("/"), r2 = 0, s2 = t2; r2 < s2.length; r2++) { - var a2 = s2[r2]; - o2.push.apply(o2, a2.split("/")); + for (var i2 = vi.a.parse(e2), r2 = i2.path.split("/"), o2 = 0, s2 = t2; o2 < s2.length; o2++) { + var a2 = s2[o2]; + r2.push.apply(r2, a2.split("/")); } - return i2.with({path: xi(o2)}).toString(); + return i2.with({path: xi(r2)}).toString(); } var ki = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, Ei = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } }, Ti = function() { @@ -18619,15 +18619,15 @@ this.importCompletions.push(e3); }, e2.prototype.computeCompletions = function(e3, t2) { return ki(this, void 0, void 0, function() { - var n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2; + var n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2; return Ei(this, function(v2) { switch (v2.label) { case 0: - n2 = {items: [], isIncomplete: false}, i2 = 0, o2 = this.literalCompletions, v2.label = 1; + n2 = {items: [], isIncomplete: false}, i2 = 0, r2 = this.literalCompletions, v2.label = 1; case 1: - return i2 < o2.length ? (r2 = o2[i2], s2 = r2.uriValue, (m2 = Ni(s2)) !== "." && m2 !== ".." ? [3, 2] : (n2.isIncomplete = true, [3, 4])) : [3, 5]; + return i2 < r2.length ? (o2 = r2[i2], s2 = o2.uriValue, (m2 = Ni(s2)) !== "." && m2 !== ".." ? [3, 2] : (n2.isIncomplete = true, [3, 4])) : [3, 5]; case 2: - return [4, this.providePathSuggestions(s2, r2.position, r2.range, e3, t2)]; + return [4, this.providePathSuggestions(s2, o2.position, o2.range, e3, t2)]; case 3: for (a2 = v2.sent(), l2 = 0, c2 = a2; l2 < c2.length; l2++) _2 = c2[l2], n2.items.push(_2); @@ -18653,25 +18653,25 @@ } }); }); - }, e2.prototype.providePathSuggestions = function(e3, t2, n2, i2, o2) { + }, e2.prototype.providePathSuggestions = function(e3, t2, n2, i2, r2) { return ki(this, void 0, void 0, function() { - var r2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2, v2; + var o2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2, v2; return Ei(this, function(w2) { switch (w2.label) { case 0: - if (r2 = Ni(e3), s2 = Y(e3, "'") || Y(e3, '"'), a2 = s2 ? r2.slice(0, t2.character - (n2.start.character + 1)) : r2.slice(0, t2.character - n2.start.character), l2 = i2.uri, c2 = s2 ? function(e4, t3, n3) { - var i3 = Di(e4.start, t3), o3 = Di(e4.end, n3); - return ln.create(i3, o3); + if (o2 = Ni(e3), s2 = Y(e3, "'") || Y(e3, '"'), a2 = s2 ? o2.slice(0, t2.character - (n2.start.character + 1)) : o2.slice(0, t2.character - n2.start.character), l2 = i2.uri, c2 = s2 ? function(e4, t3, n3) { + var i3 = Oi(e4.start, t3), r3 = Oi(e4.end, n3); + return ln.create(i3, r3); }(n2, 1, -1) : n2, d2 = function(e4, t3, n3) { - var i3, o3 = e4.lastIndexOf("/"); - if (o3 === -1) + var i3, r3 = e4.lastIndexOf("/"); + if (r3 === -1) i3 = n3; else { - var r3 = t3.slice(o3 + 1), s3 = Di(n3.end, -r3.length), a3 = r3.indexOf(" "), l3 = void 0; - l3 = a3 !== -1 ? Di(s3, a3) : n3.end, i3 = ln.create(s3, l3); + var o3 = t3.slice(r3 + 1), s3 = Oi(n3.end, -o3.length), a3 = o3.indexOf(" "), l3 = void 0; + l3 = a3 !== -1 ? Oi(s3, a3) : n3.end, i3 = ln.create(s3, l3); } return i3; - }(a2, r2, c2), h2 = a2.substring(0, a2.lastIndexOf("/") + 1), !(u2 = o2.resolveReference(h2 || ".", l2))) + }(a2, o2, c2), h2 = a2.substring(0, a2.lastIndexOf("/") + 1), !(u2 = r2.resolveReference(h2 || ".", l2))) return [3, 4]; w2.label = 1; case 1: @@ -18693,99 +18693,99 @@ return Y(e2, "'") || Y(e2, '"') ? e2.slice(1, -1) : e2; } function Ii(e2, t2, n2) { - return t2 ? {label: Oi(e2 += "/"), kind: zn.Folder, textEdit: Cn.replace(n2, Oi(e2)), command: {title: "Suggest", command: "editor.action.triggerSuggest"}} : {label: Oi(e2), kind: zn.File, textEdit: Cn.replace(n2, Oi(e2))}; + return t2 ? {label: Di(e2 += "/"), kind: zn.Folder, textEdit: Cn.replace(n2, Di(e2)), command: {title: "Suggest", command: "editor.action.triggerSuggest"}} : {label: Di(e2), kind: zn.File, textEdit: Cn.replace(n2, Di(e2))}; } - function Oi(e2) { + function Di(e2) { return e2.replace(/(\s|\(|\)|,|"|')/g, "\\$1"); } - function Di(e2, t2) { + function Oi(e2, t2) { return an.create(e2.line, e2.character + t2); } var Ai, Ri = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, Mi = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } }, Pi = wt(), Fi = Bn.Snippet; @@ -18804,19 +18804,19 @@ this.completionParticipants = e3 || []; }, e2.prototype.doComplete2 = function(e3, t2, n2, i2) { return Ri(this, void 0, void 0, function() { - var o2, r2, s2, a2; + var r2, o2, s2, a2; return Mi(this, function(l2) { switch (l2.label) { case 0: if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) return [2, this.doComplete(e3, t2, n2)]; - o2 = new Ti(this.lsOptions.fileSystemProvider.readDirectory), r2 = this.completionParticipants, this.completionParticipants = [o2].concat(r2), s2 = this.doComplete(e3, t2, n2), l2.label = 1; + r2 = new Ti(this.lsOptions.fileSystemProvider.readDirectory), o2 = this.completionParticipants, this.completionParticipants = [r2].concat(o2), s2 = this.doComplete(e3, t2, n2), l2.label = 1; case 1: - return l2.trys.push([1, , 3, 4]), [4, o2.computeCompletions(e3, i2)]; + return l2.trys.push([1, , 3, 4]), [4, r2.computeCompletions(e3, i2)]; case 2: return a2 = l2.sent(), [2, {isIncomplete: s2.isIncomplete || a2.isIncomplete, items: a2.items.concat(s2.items)}]; case 3: - return this.completionParticipants = r2, [7]; + return this.completionParticipants = o2, [7]; case 4: return [2]; } @@ -18832,53 +18832,53 @@ try { var i2 = {isIncomplete: false, items: []}; this.nodePath = ie(this.styleSheet, this.offset); - for (var o2 = this.nodePath.length - 1; o2 >= 0; o2--) { - var r2 = this.nodePath[o2]; - if (r2 instanceof ve) - this.getCompletionsForDeclarationProperty(r2.getParent(), i2); - else if (r2 instanceof Ge) - r2.parent instanceof ot ? this.getVariableProposals(null, i2) : this.getCompletionsForExpression(r2, i2); - else if (r2 instanceof pe) { - var s2 = r2.findAParent(J.ExtendsReference, J.Ruleset); + for (var r2 = this.nodePath.length - 1; r2 >= 0; r2--) { + var o2 = this.nodePath[r2]; + if (o2 instanceof ve) + this.getCompletionsForDeclarationProperty(o2.getParent(), i2); + else if (o2 instanceof Ge) + o2.parent instanceof rt ? this.getVariableProposals(null, i2) : this.getCompletionsForExpression(o2, i2); + else if (o2 instanceof pe) { + var s2 = o2.findAParent(J.ExtendsReference, J.Ruleset); if (s2) if (s2.type === J.ExtendsReference) - this.getCompletionsForExtendsReference(s2, r2, i2); + this.getCompletionsForExtendsReference(s2, o2, i2); else { var a2 = s2; this.getCompletionsForSelector(a2, a2 && a2.isNested(), i2); } - } else if (r2 instanceof Ce) - this.getCompletionsForFunctionArgument(r2, r2.getParent(), i2); - else if (r2 instanceof ce) - this.getCompletionsForDeclarations(r2, i2); - else if (r2 instanceof it) - this.getCompletionsForVariableDeclaration(r2, i2); - else if (r2 instanceof he) - this.getCompletionsForRuleSet(r2, i2); - else if (r2 instanceof ot) - this.getCompletionsForInterpolation(r2, i2); - else if (r2 instanceof Le) - this.getCompletionsForFunctionDeclaration(r2, i2); - else if (r2 instanceof ct) - this.getCompletionsForMixinReference(r2, i2); - else if (r2 instanceof we) - this.getCompletionsForFunctionArgument(null, r2, i2); - else if (r2 instanceof je) - this.getCompletionsForSupports(r2, i2); - else if (r2 instanceof qe) - this.getCompletionsForSupportsCondition(r2, i2); - else if (r2 instanceof st) - this.getCompletionsForExtendsReference(r2, null, i2); - else if (r2.type === J.URILiteral) - this.getCompletionForUriLiteralValue(r2, i2); - else if (r2.parent === null) + } else if (o2 instanceof Ce) + this.getCompletionsForFunctionArgument(o2, o2.getParent(), i2); + else if (o2 instanceof ce) + this.getCompletionsForDeclarations(o2, i2); + else if (o2 instanceof it) + this.getCompletionsForVariableDeclaration(o2, i2); + else if (o2 instanceof he) + this.getCompletionsForRuleSet(o2, i2); + else if (o2 instanceof rt) + this.getCompletionsForInterpolation(o2, i2); + else if (o2 instanceof Le) + this.getCompletionsForFunctionDeclaration(o2, i2); + else if (o2 instanceof ct) + this.getCompletionsForMixinReference(o2, i2); + else if (o2 instanceof we) + this.getCompletionsForFunctionArgument(null, o2, i2); + else if (o2 instanceof je) + this.getCompletionsForSupports(o2, i2); + else if (o2 instanceof qe) + this.getCompletionsForSupportsCondition(o2, i2); + else if (o2 instanceof st) + this.getCompletionsForExtendsReference(o2, null, i2); + else if (o2.type === J.URILiteral) + this.getCompletionForUriLiteralValue(o2, i2); + else if (o2.parent === null) this.getCompletionForTopLevel(i2); else { - if (r2.type !== J.StringLiteral || !this.isImportPathParent(r2.parent.type)) + if (o2.type !== J.StringLiteral || !this.isImportPathParent(o2.parent.type)) continue; - this.getCompletionForImportPath(r2, i2); + this.getCompletionForImportPath(o2, i2); } - if (i2.items.length > 0 || this.offset > r2.offset) + if (i2.items.length > 0 || this.offset > o2.offset) return this.finalize(i2); } return this.getCompletionsForStylesheet(i2), i2.items.length === 0 && this.variablePrefix && this.currentWord.indexOf(this.variablePrefix) === 0 && this.getVariableProposals(null, i2), this.finalize(i2); @@ -18901,13 +18901,13 @@ }, e2.prototype.getCompletionsForDeclarationProperty = function(e3, t2) { return this.getPropertyProposals(e3, t2); }, e2.prototype.getPropertyProposals = function(e3, t2) { - var n2 = this, i2 = this.isTriggerPropertyValueCompletionEnabled, o2 = this.isCompletePropertyWithSemicolonEnabled; - return this.cssDataManager.getProperties().forEach(function(r2) { + var n2 = this, i2 = this.isTriggerPropertyValueCompletionEnabled, r2 = this.isCompletePropertyWithSemicolonEnabled; + return this.cssDataManager.getProperties().forEach(function(o2) { var s2, a2, l2 = false; - e3 ? (s2 = n2.getCompletionRange(e3.getProperty()), a2 = r2.name, tn(e3.colonPosition) || (a2 += ": ", l2 = true)) : (s2 = n2.getCompletionRange(null), a2 = r2.name + ": ", l2 = true), !e3 && o2 && (a2 += "$0;"), e3 && !e3.semicolonPosition && o2 && n2.offset >= n2.textDocument.offsetAt(s2.end) && (a2 += "$0;"); - var c2 = {label: r2.name, documentation: Et(r2, n2.doesSupportMarkdown()), tags: zi(r2) ? [jn.Deprecated] : [], textEdit: Cn.replace(s2, a2), insertTextFormat: Bn.Snippet, kind: zn.Property}; - r2.restrictions || (l2 = false), i2 && l2 && (c2.command = {title: "Suggest", command: "editor.action.triggerSuggest"}); - var d2 = (255 - (typeof r2.relevance == "number" ? Math.min(Math.max(r2.relevance, 0), 99) : 50)).toString(16), h2 = Y(r2.name, "-") ? Ai.VendorPrefixed : Ai.Normal; + e3 ? (s2 = n2.getCompletionRange(e3.getProperty()), a2 = o2.name, tn(e3.colonPosition) || (a2 += ": ", l2 = true)) : (s2 = n2.getCompletionRange(null), a2 = o2.name + ": ", l2 = true), !e3 && r2 && (a2 += "$0;"), e3 && !e3.semicolonPosition && r2 && n2.offset >= n2.textDocument.offsetAt(s2.end) && (a2 += "$0;"); + var c2 = {label: o2.name, documentation: Et(o2, n2.doesSupportMarkdown()), tags: zi(o2) ? [jn.Deprecated] : [], textEdit: Cn.replace(s2, a2), insertTextFormat: Bn.Snippet, kind: zn.Property}; + o2.restrictions || (l2 = false), i2 && l2 && (c2.command = {title: "Suggest", command: "editor.action.triggerSuggest"}); + var d2 = (255 - (typeof o2.relevance == "number" ? Math.min(Math.max(o2.relevance, 0), 99) : 50)).toString(16), h2 = Y(o2.name, "-") ? Ai.VendorPrefixed : Ai.Normal; c2.sortText = h2 + "_" + d2, t2.items.push(c2); }), this.completionParticipants.forEach(function(e4) { e4.onCssProperty && e4.onCssProperty({propertyName: n2.currentWord, range: n2.defaultReplaceRange}); @@ -18917,50 +18917,50 @@ }, enumerable: true, configurable: true}), Object.defineProperty(e2.prototype, "isCompletePropertyWithSemicolonEnabled", {get: function() { return !this.settings || !this.settings.completion || this.settings.completion.completePropertyWithSemicolon === void 0 || this.settings.completion.completePropertyWithSemicolon; }, enumerable: true, configurable: true}), e2.prototype.getCompletionsForDeclarationValue = function(e3, t2) { - for (var n2 = this, i2 = e3.getFullPropertyName(), o2 = this.cssDataManager.getProperty(i2), r2 = e3.getValue() || null; r2 && r2.hasChildren(); ) - r2 = r2.findChildAtOffset(this.offset, false); + for (var n2 = this, i2 = e3.getFullPropertyName(), r2 = this.cssDataManager.getProperty(i2), o2 = e3.getValue() || null; o2 && o2.hasChildren(); ) + o2 = o2.findChildAtOffset(this.offset, false); if (this.completionParticipants.forEach(function(e4) { - e4.onCssPropertyValue && e4.onCssPropertyValue({propertyName: i2, propertyValue: n2.currentWord, range: n2.getCompletionRange(r2)}); - }), o2) { - if (o2.restrictions) - for (var s2 = 0, a2 = o2.restrictions; s2 < a2.length; s2++) { + e4.onCssPropertyValue && e4.onCssPropertyValue({propertyName: i2, propertyValue: n2.currentWord, range: n2.getCompletionRange(o2)}); + }), r2) { + if (r2.restrictions) + for (var s2 = 0, a2 = r2.restrictions; s2 < a2.length; s2++) { switch (a2[s2]) { case "color": - this.getColorProposals(o2, r2, t2); + this.getColorProposals(r2, o2, t2); break; case "position": - this.getPositionProposals(o2, r2, t2); + this.getPositionProposals(r2, o2, t2); break; case "repeat": - this.getRepeatStyleProposals(o2, r2, t2); + this.getRepeatStyleProposals(r2, o2, t2); break; case "line-style": - this.getLineStyleProposals(o2, r2, t2); + this.getLineStyleProposals(r2, o2, t2); break; case "line-width": - this.getLineWidthProposals(o2, r2, t2); + this.getLineWidthProposals(r2, o2, t2); break; case "geometry-box": - this.getGeometryBoxProposals(o2, r2, t2); + this.getGeometryBoxProposals(r2, o2, t2); break; case "box": - this.getBoxProposals(o2, r2, t2); + this.getBoxProposals(r2, o2, t2); break; case "image": - this.getImageProposals(o2, r2, t2); + this.getImageProposals(r2, o2, t2); break; case "timing-function": - this.getTimingFunctionProposals(o2, r2, t2); + this.getTimingFunctionProposals(r2, o2, t2); break; case "shape": - this.getBasicShapeProposals(o2, r2, t2); + this.getBasicShapeProposals(r2, o2, t2); } } - this.getValueEnumProposals(o2, r2, t2), this.getCSSWideKeywordProposals(o2, r2, t2), this.getUnitProposals(o2, r2, t2); + this.getValueEnumProposals(r2, o2, t2), this.getCSSWideKeywordProposals(r2, o2, t2), this.getUnitProposals(r2, o2, t2); } else for (var l2 = 0, c2 = function(e4, t3) { var n3 = t3.getFullPropertyName(), i3 = new Bi(); - function o3(e5) { + function r3(e5) { return (e5 instanceof ae || e5 instanceof nt || e5 instanceof Qe) && i3.add(e5.getText()), true; } return e4.accept(function(e5) { @@ -18969,26 +18969,26 @@ return n3 === t4; }(e5)) { var i4 = e5.getValue(); - i4 && i4.accept(o3); + i4 && i4.accept(r3); } return true; }), i3; }(this.styleSheet, e3).getEntries(); l2 < c2.length; l2++) { var d2 = c2[l2]; - t2.items.push({label: d2, textEdit: Cn.replace(this.getCompletionRange(r2), d2), kind: zn.Value}); + t2.items.push({label: d2, textEdit: Cn.replace(this.getCompletionRange(o2), d2), kind: zn.Value}); } - return this.getVariableProposals(r2, t2), this.getTermProposals(o2, r2, t2), t2; + return this.getVariableProposals(o2, t2), this.getTermProposals(r2, o2, t2), t2; }, e2.prototype.getValueEnumProposals = function(e3, t2, n2) { if (e3.values) - for (var i2 = 0, o2 = e3.values; i2 < o2.length; i2++) { - var r2 = o2[i2], s2 = r2.name, a2 = void 0; + for (var i2 = 0, r2 = e3.values; i2 < r2.length; i2++) { + var o2 = r2[i2], s2 = o2.name, a2 = void 0; if (Z(s2, ")")) { var l2 = s2.lastIndexOf("("); l2 !== -1 && (s2 = s2.substr(0, l2) + "($1)", a2 = Fi); } var c2 = Ai.Enums; - Y(r2.name, "-") && (c2 += Ai.VendorPrefixed); - var d2 = {label: r2.name, documentation: Et(r2, this.doesSupportMarkdown()), tags: zi(e3) ? [jn.Deprecated] : [], textEdit: Cn.replace(this.getCompletionRange(t2), s2), sortText: c2, kind: zn.Value, insertTextFormat: a2}; + Y(o2.name, "-") && (c2 += Ai.VendorPrefixed); + var d2 = {label: o2.name, documentation: Et(o2, this.doesSupportMarkdown()), tags: zi(e3) ? [jn.Deprecated] : [], textEdit: Cn.replace(this.getCompletionRange(t2), s2), sortText: c2, kind: zn.Value, insertTextFormat: a2}; n2.items.push(d2); } return n2; @@ -19000,9 +19000,9 @@ return this.offset >= e3.offset + 2 && this.getVariableProposals(null, t2), t2; }, e2.prototype.getVariableProposals = function(e3, t2) { for (var n2 = 0, i2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Variable); n2 < i2.length; n2++) { - var o2 = i2[n2], r2 = Y(o2.name, "--") ? "var(" + o2.name + ")" : o2.name, s2 = {label: o2.name, documentation: o2.value ? X(o2.value) : o2.value, textEdit: Cn.replace(this.getCompletionRange(e3), r2), kind: zn.Variable, sortText: Ai.Variable}; - if (typeof s2.documentation == "string" && Ui(s2.documentation) && (s2.kind = zn.Color), o2.node.type === J.FunctionParameter) { - var a2 = o2.node.getParent(); + var r2 = i2[n2], o2 = Y(r2.name, "--") ? "var(" + r2.name + ")" : r2.name, s2 = {label: r2.name, documentation: r2.value ? X(r2.value) : r2.value, textEdit: Cn.replace(this.getCompletionRange(e3), o2), kind: zn.Variable, sortText: Ai.Variable}; + if (typeof s2.documentation == "string" && Ui(s2.documentation) && (s2.kind = zn.Color), r2.node.type === J.FunctionParameter) { + var a2 = r2.node.getParent(); a2.type === J.MixinDeclaration && (s2.detail = Pi("completion.argument", "argument from '{0}'", a2.getName())); } t2.items.push(s2); @@ -19012,20 +19012,20 @@ for (var t2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Variable), n2 = 0, i2 = t2 = t2.filter(function(e4) { return Y(e4.name, "--"); }); n2 < i2.length; n2++) { - var o2 = i2[n2], r2 = {label: o2.name, documentation: o2.value ? X(o2.value) : o2.value, textEdit: Cn.replace(this.getCompletionRange(null), o2.name), kind: zn.Variable}; - typeof r2.documentation == "string" && Ui(r2.documentation) && (r2.kind = zn.Color), e3.items.push(r2); + var r2 = i2[n2], o2 = {label: r2.name, documentation: r2.value ? X(r2.value) : r2.value, textEdit: Cn.replace(this.getCompletionRange(null), r2.name), kind: zn.Variable}; + typeof o2.documentation == "string" && Ui(o2.documentation) && (o2.kind = zn.Color), e3.items.push(o2); } return e3; }, e2.prototype.getUnitProposals = function(e3, t2, n2) { var i2 = "0"; if (this.currentWord.length > 0) { - var o2 = this.currentWord.match(/^-?\d[\.\d+]*/); - o2 && (i2 = o2[0], n2.isIncomplete = i2.length === this.currentWord.length); + var r2 = this.currentWord.match(/^-?\d[\.\d+]*/); + r2 && (i2 = r2[0], n2.isIncomplete = i2.length === this.currentWord.length); } else this.currentWord.length === 0 && (n2.isIncomplete = true); if (t2 && t2.parent && t2.parent.type === J.Term && (t2 = t2.getParent()), e3.restrictions) - for (var r2 = 0, s2 = e3.restrictions; r2 < s2.length; r2++) { - var a2 = s2[r2], l2 = Zt[a2]; + for (var o2 = 0, s2 = e3.restrictions; o2 < s2.length; o2++) { + var a2 = s2[o2], l2 = Zt[a2]; if (l2) for (var c2 = 0, d2 = l2; c2 < d2.length; c2++) { var h2 = i2 + d2[c2]; @@ -19045,18 +19045,18 @@ n2.items.push({label: i2, documentation: At[i2], textEdit: Cn.replace(this.getCompletionRange(t2), i2), kind: zn.Color}); for (var i2 in Rt) n2.items.push({label: i2, documentation: Rt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), i2), kind: zn.Value}); - var o2 = new Bi(); - this.styleSheet.acceptVisitor(new Vi(o2, this.offset)); - for (var r2 = 0, s2 = o2.getEntries(); r2 < s2.length; r2++) { - i2 = s2[r2]; + var r2 = new Bi(); + this.styleSheet.acceptVisitor(new Vi(r2, this.offset)); + for (var o2 = 0, s2 = r2.getEntries(); o2 < s2.length; o2++) { + i2 = s2[o2]; n2.items.push({label: i2, textEdit: Cn.replace(this.getCompletionRange(t2), i2), kind: zn.Color}); } for (var a2 = function(e4) { - var i3 = 1, o3 = e4.func.replace(/\[?\$(\w+)\]?/g, function(e5, t3) { + var i3 = 1, r3 = e4.func.replace(/\[?\$(\w+)\]?/g, function(e5, t3) { return "${" + i3++ + ":" + t3 + "}"; }); - n2.items.push({label: e4.func.substr(0, e4.func.indexOf("(")), detail: e4.func, documentation: e4.desc, textEdit: Cn.replace(l2.getCompletionRange(t2), o3), insertTextFormat: Fi, kind: zn.Function}); - }, l2 = this, c2 = 0, d2 = Dt; c2 < d2.length; c2++) { + n2.items.push({label: e4.func.substr(0, e4.func.indexOf("(")), detail: e4.func, documentation: e4.desc, textEdit: Cn.replace(l2.getCompletionRange(t2), r3), insertTextFormat: Fi, kind: zn.Function}); + }, l2 = this, c2 = 0, d2 = Ot; c2 < d2.length; c2++) { a2(d2[c2]); } return n2; @@ -19073,9 +19073,9 @@ n2.items.push({label: i2, documentation: Vt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), i2), kind: zn.Value}); return n2; }, e2.prototype.getLineWidthProposals = function(e3, t2, n2) { - for (var i2 = 0, o2 = Ut; i2 < o2.length; i2++) { - var r2 = o2[i2]; - n2.items.push({label: r2, textEdit: Cn.replace(this.getCompletionRange(t2), r2), kind: zn.Value}); + for (var i2 = 0, r2 = Ut; i2 < r2.length; i2++) { + var o2 = r2[i2]; + n2.items.push({label: o2, textEdit: Cn.replace(this.getCompletionRange(t2), o2), kind: zn.Value}); } return n2; }, e2.prototype.getGeometryBoxProposals = function(e3, t2, n2) { @@ -19088,20 +19088,20 @@ return n2; }, e2.prototype.getImageProposals = function(e3, t2, n2) { for (var i2 in Kt) { - var o2 = ji(i2); - n2.items.push({label: i2, documentation: Kt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), o2), kind: zn.Function, insertTextFormat: i2 !== o2 ? Fi : void 0}); + var r2 = ji(i2); + n2.items.push({label: i2, documentation: Kt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), r2), kind: zn.Function, insertTextFormat: i2 !== r2 ? Fi : void 0}); } return n2; }, e2.prototype.getTimingFunctionProposals = function(e3, t2, n2) { for (var i2 in Gt) { - var o2 = ji(i2); - n2.items.push({label: i2, documentation: Gt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), o2), kind: zn.Function, insertTextFormat: i2 !== o2 ? Fi : void 0}); + var r2 = ji(i2); + n2.items.push({label: i2, documentation: Gt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), r2), kind: zn.Function, insertTextFormat: i2 !== r2 ? Fi : void 0}); } return n2; }, e2.prototype.getBasicShapeProposals = function(e3, t2, n2) { for (var i2 in Yt) { - var o2 = ji(i2); - n2.items.push({label: i2, documentation: Yt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), o2), kind: zn.Function, insertTextFormat: i2 !== o2 ? Fi : void 0}); + var r2 = ji(i2); + n2.items.push({label: i2, documentation: Yt[i2], textEdit: Cn.replace(this.getCompletionRange(t2), r2), kind: zn.Function, insertTextFormat: i2 !== r2 ? Fi : void 0}); } return n2; }, e2.prototype.getCompletionsForStylesheet = function(e3) { @@ -19116,21 +19116,21 @@ var n2 = e3.getDeclarations(); return n2 && n2.endsWith("}") && this.offset >= n2.end ? this.getCompletionForTopLevel(t2) : !n2 || this.offset <= n2.offset ? this.getCompletionsForSelector(e3, e3.isNested(), t2) : this.getCompletionsForDeclarations(e3.getDeclarations(), t2); }, e2.prototype.getCompletionsForSelector = function(e3, t2, n2) { - var i2 = this, o2 = this.findInNodePath(J.PseudoSelector, J.IdentifierSelector, J.ClassSelector, J.ElementNameSelector); - if (!o2 && this.offset - this.currentWord.length > 0 && this.textDocument.getText()[this.offset - this.currentWord.length - 1] === ":" && (this.currentWord = ":" + this.currentWord, this.defaultReplaceRange = ln.create(an.create(this.position.line, this.position.character - this.currentWord.length), this.position)), this.cssDataManager.getPseudoClasses().forEach(function(e4) { - var t3 = ji(e4.name), r3 = {label: e4.name, textEdit: Cn.replace(i2.getCompletionRange(o2), t3), documentation: Et(e4, i2.doesSupportMarkdown()), tags: zi(e4) ? [jn.Deprecated] : [], kind: zn.Function, insertTextFormat: e4.name !== t3 ? Fi : void 0}; - Y(e4.name, ":-") && (r3.sortText = Ai.VendorPrefixed), n2.items.push(r3); + var i2 = this, r2 = this.findInNodePath(J.PseudoSelector, J.IdentifierSelector, J.ClassSelector, J.ElementNameSelector); + if (!r2 && this.offset - this.currentWord.length > 0 && this.textDocument.getText()[this.offset - this.currentWord.length - 1] === ":" && (this.currentWord = ":" + this.currentWord, this.defaultReplaceRange = ln.create(an.create(this.position.line, this.position.character - this.currentWord.length), this.position)), this.cssDataManager.getPseudoClasses().forEach(function(e4) { + var t3 = ji(e4.name), o3 = {label: e4.name, textEdit: Cn.replace(i2.getCompletionRange(r2), t3), documentation: Et(e4, i2.doesSupportMarkdown()), tags: zi(e4) ? [jn.Deprecated] : [], kind: zn.Function, insertTextFormat: e4.name !== t3 ? Fi : void 0}; + Y(e4.name, ":-") && (o3.sortText = Ai.VendorPrefixed), n2.items.push(o3); }), this.cssDataManager.getPseudoElements().forEach(function(e4) { - var t3 = ji(e4.name), r3 = {label: e4.name, textEdit: Cn.replace(i2.getCompletionRange(o2), t3), documentation: Et(e4, i2.doesSupportMarkdown()), tags: zi(e4) ? [jn.Deprecated] : [], kind: zn.Function, insertTextFormat: e4.name !== t3 ? Fi : void 0}; - Y(e4.name, "::-") && (r3.sortText = Ai.VendorPrefixed), n2.items.push(r3); + var t3 = ji(e4.name), o3 = {label: e4.name, textEdit: Cn.replace(i2.getCompletionRange(r2), t3), documentation: Et(e4, i2.doesSupportMarkdown()), tags: zi(e4) ? [jn.Deprecated] : [], kind: zn.Function, insertTextFormat: e4.name !== t3 ? Fi : void 0}; + Y(e4.name, "::-") && (o3.sortText = Ai.VendorPrefixed), n2.items.push(o3); }), !t2) { - for (var r2 = 0, s2 = Xt; r2 < s2.length; r2++) { - var a2 = s2[r2]; - n2.items.push({label: a2, textEdit: Cn.replace(this.getCompletionRange(o2), a2), kind: zn.Keyword}); + for (var o2 = 0, s2 = Xt; o2 < s2.length; o2++) { + var a2 = s2[o2]; + n2.items.push({label: a2, textEdit: Cn.replace(this.getCompletionRange(r2), a2), kind: zn.Keyword}); } for (var l2 = 0, c2 = Qt; l2 < c2.length; l2++) { a2 = c2[l2]; - n2.items.push({label: a2, textEdit: Cn.replace(this.getCompletionRange(o2), a2), kind: zn.Keyword}); + n2.items.push({label: a2, textEdit: Cn.replace(this.getCompletionRange(r2), a2), kind: zn.Keyword}); } } var d2 = {}; @@ -19139,7 +19139,7 @@ if (this.styleSheet.accept(function(e4) { if (e4.type === J.SimpleSelector && e4.length > 0) { var t3 = h2.substr(e4.offset, e4.length); - return t3.charAt(0) !== "." || d2[t3] || (d2[t3] = true, n2.items.push({label: t3, textEdit: Cn.replace(i2.getCompletionRange(o2), t3), kind: zn.Keyword})), false; + return t3.charAt(0) !== "." || d2[t3] || (d2[t3] = true, n2.items.push({label: t3, textEdit: Cn.replace(i2.getCompletionRange(r2), t3), kind: zn.Keyword})), false; } return true; }), e3 && e3.isNested()) { @@ -19173,8 +19173,8 @@ var i2 = e3.findParent(J.Declaration); if (!i2) return this.getTermProposals(void 0, null, t2), t2; - var o2 = e3.findChildAtOffset(this.offset, true); - return o2 ? o2 instanceof nt || o2 instanceof ae ? this.getCompletionsForDeclarationValue(i2, t2) : t2 : this.getCompletionsForDeclarationValue(i2, t2); + var r2 = e3.findChildAtOffset(this.offset, true); + return r2 ? r2 instanceof nt || r2 instanceof ae ? this.getCompletionsForDeclarationValue(i2, t2) : t2 : this.getCompletionsForDeclarationValue(i2, t2); }, e2.prototype.getCompletionsForFunctionArgument = function(e3, t2, n2) { var i2 = t2.getIdentifier(); return i2 && i2.matches("var") && (t2.getArguments().hasChildren() && t2.getArguments().getChild(0) !== e3 || this.getVariableProposalsForCSSVarFunction(n2)), n2; @@ -19182,28 +19182,28 @@ var n2 = e3.getDeclarations(); return n2 && this.offset > n2.offset && this.offset < n2.end && this.getTermProposals(void 0, null, t2), t2; }, e2.prototype.getCompletionsForMixinReference = function(e3, t2) { - for (var n2 = this, i2 = 0, o2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Mixin); i2 < o2.length; i2++) { - var r2 = o2[i2]; - r2.node instanceof dt && t2.items.push(this.makeTermProposal(r2, r2.node.getParameters(), null)); + for (var n2 = this, i2 = 0, r2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Mixin); i2 < r2.length; i2++) { + var o2 = r2[i2]; + o2.node instanceof dt && t2.items.push(this.makeTermProposal(o2, o2.node.getParameters(), null)); } var s2 = e3.getIdentifier() || null; return this.completionParticipants.forEach(function(e4) { e4.onCssMixinReference && e4.onCssMixinReference({mixinName: n2.currentWord, range: n2.getCompletionRange(s2)}); }), t2; }, e2.prototype.getTermProposals = function(e3, t2, n2) { - for (var i2 = 0, o2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Function); i2 < o2.length; i2++) { - var r2 = o2[i2]; - r2.node instanceof Le && n2.items.push(this.makeTermProposal(r2, r2.node.getParameters(), t2)); + for (var i2 = 0, r2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Function); i2 < r2.length; i2++) { + var o2 = r2[i2]; + o2.node instanceof Le && n2.items.push(this.makeTermProposal(o2, o2.node.getParameters(), t2)); } return n2; }, e2.prototype.makeTermProposal = function(e3, t2, n2) { e3.node; var i2 = t2.getChildren().map(function(e4) { return e4 instanceof ye ? e4.getName() : e4.getText(); - }), o2 = e3.name + "(" + i2.map(function(e4, t3) { + }), r2 = e3.name + "(" + i2.map(function(e4, t3) { return "${" + (t3 + 1) + ":" + e4 + "}"; }).join(", ") + ")"; - return {label: e3.name, detail: e3.name + "(" + i2.join(", ") + ")", textEdit: Cn.replace(this.getCompletionRange(n2), o2), insertTextFormat: Fi, kind: zn.Function, sortText: Ai.Term}; + return {label: e3.name, detail: e3.name + "(" + i2.join(", ") + ")", textEdit: Cn.replace(this.getCompletionRange(n2), r2), insertTextFormat: Fi, kind: zn.Function, sortText: Ai.Term}; }, e2.prototype.getCompletionsForSupportsCondition = function(e3, t2) { var n2 = e3.findFirstChildBeforeOffset(this.offset); if (n2) { @@ -19223,17 +19223,17 @@ }, e2.prototype.getCompletionsForExtendsReference = function(e3, t2, n2) { return n2; }, e2.prototype.getCompletionForUriLiteralValue = function(e3, t2) { - var n2, i2, o2; + var n2, i2, r2; if (e3.hasChildren()) { - var r2 = e3.getChild(0); - n2 = r2.getText(), i2 = this.position, o2 = this.getCompletionRange(r2); + var o2 = e3.getChild(0); + n2 = o2.getText(), i2 = this.position, r2 = this.getCompletionRange(o2); } else { n2 = "", i2 = this.position; var s2 = this.textDocument.positionAt(e3.offset + "url(".length); - o2 = ln.create(s2, s2); + r2 = ln.create(s2, s2); } return this.completionParticipants.forEach(function(e4) { - e4.onCssURILiteralValue && e4.onCssURILiteralValue({uriValue: n2, position: i2, range: o2}); + e4.onCssURILiteralValue && e4.onCssURILiteralValue({uriValue: n2, position: i2, range: r2}); }), t2; }, e2.prototype.getCompletionForImportPath = function(e3, t2) { var n2 = this; @@ -19331,9 +19331,9 @@ }, e2.prototype.addAttr = function(e3, t2) { this.attributes || (this.attributes = []); for (var n2 = 0, i2 = this.attributes; n2 < i2.length; n2++) { - var o2 = i2[n2]; - if (o2.name === e3) - return void (o2.value += " " + t2); + var r2 = i2[n2]; + if (r2.name === e3) + return void (r2.value += " " + t2); } this.attributes.push({name: e3, value: t2}); }, e2.prototype.clone = function(t2) { @@ -19341,9 +19341,9 @@ var n2 = new e2(); if (this.attributes) { n2.attributes = []; - for (var i2 = 0, o2 = this.attributes; i2 < o2.length; i2++) { - var r2 = o2[i2]; - n2.addAttr(r2.name, r2.value); + for (var i2 = 0, r2 = this.attributes; i2 < r2.length; i2++) { + var o2 = r2[i2]; + n2.addAttr(o2.name, o2.value); } } if (t2 && this.children) { @@ -19376,8 +19376,8 @@ return this.result = [], e3 instanceof Gi ? e3.children && this.doPrint(e3.children, 0) : this.doPrint([e3], 0), [{language: "html", value: this.result.join("\n")}]; }, e2.prototype.doPrint = function(e3, t2) { for (var n2 = 0, i2 = e3; n2 < i2.length; n2++) { - var o2 = i2[n2]; - this.doPrintElement(o2, t2), o2.children && this.doPrint(o2.children, t2 + 1); + var r2 = i2[n2]; + this.doPrintElement(r2, t2), r2.children && this.doPrint(r2.children, t2 + 1); } }, e2.prototype.writeLine = function(e3, t2) { var n2 = new Array(e3 + 1).join(" "); @@ -19389,8 +19389,8 @@ else { var i2 = ["<"]; if (n2 ? i2.push(n2) : i2.push("element"), e3.attributes) - for (var o2 = 0, r2 = e3.attributes; o2 < r2.length; o2++) { - var s2 = r2[o2]; + for (var r2 = 0, o2 = e3.attributes; r2 < o2.length; r2++) { + var s2 = o2[r2]; if (s2.name !== "name") { i2.push(" "), i2.push(s2.name); var a2 = s2.value; @@ -19414,12 +19414,12 @@ this.id = 0, this.attr = 0, this.tag = 0; }; function Qi(e2, t2) { - for (var n2 = new Ki(), i2 = 0, o2 = e2.getChildren(); i2 < o2.length; i2++) { - var r2 = o2[i2]; - switch (r2.type) { + for (var n2 = new Ki(), i2 = 0, r2 = e2.getChildren(); i2 < r2.length; i2++) { + var o2 = r2[i2]; + switch (o2.type) { case J.SelectorCombinator: if (t2) { - var s2 = r2.getText().split("&"); + var s2 = o2.getText().split("&"); if (s2.length === 1) { n2.addAttr("name", s2[0]); break; @@ -19436,26 +19436,26 @@ } break; case J.SelectorPlaceholder: - if (r2.matches("@at-root")) + if (o2.matches("@at-root")) return n2; case J.ElementNameSelector: - var c2 = r2.getText(); + var c2 = o2.getText(); n2.addAttr("name", c2 === "*" ? "element" : Ji(c2)); break; case J.ClassSelector: - n2.addAttr("class", Ji(r2.getText().substring(1))); + n2.addAttr("class", Ji(o2.getText().substring(1))); break; case J.IdentifierSelector: - n2.addAttr("id", Ji(r2.getText().substring(1))); + n2.addAttr("id", Ji(o2.getText().substring(1))); break; case J.MixinDeclaration: - n2.addAttr("class", r2.getName()); + n2.addAttr("class", o2.getName()); break; case J.PseudoSelector: - n2.addAttr(Ji(r2.getText()), ""); + n2.addAttr(Ji(o2.getText()), ""); break; case J.AttributeSelector: - var d2 = r2, h2 = d2.getIdentifier(); + var d2 = o2, h2 = d2.getIdentifier(); if (h2) { var u2 = d2.getValue(), p2 = d2.getOperator(), m2 = void 0; if (u2 && p2) @@ -19490,7 +19490,7 @@ var n2 = t2.scanUnquotedString(); return n2 ? n2.text : e2; } - var eo = function() { + var er = function() { function e2(e3) { this.cssDataManager = e3; } @@ -19500,19 +19500,19 @@ return null; var t3 = new Gi(), n3 = [], i2 = e4.getParent(); if (i2 instanceof he) - for (var o2 = i2.getParent(); o2 && !no(o2); ) { - if (o2 instanceof he) { - if (o2.getSelectors().matches("@at-root")) + for (var r2 = i2.getParent(); r2 && !nr(r2); ) { + if (r2 instanceof he) { + if (r2.getSelectors().matches("@at-root")) break; - n3.push(o2); + n3.push(r2); } - o2 = o2.getParent(); + r2 = r2.getParent(); } - for (var r2 = new to(t3), s2 = n3.length - 1; s2 >= 0; s2--) { + for (var o2 = new tr(t3), s2 = n3.length - 1; s2 >= 0; s2--) { var a2 = n3[s2].getSelectors().getChild(0); - a2 && r2.processSelector(a2); + a2 && o2.processSelector(a2); } - return r2.processSelector(e4), t3; + return o2.processSelector(e4), t3; }(e3); if (t2) { var n2 = new Zi('"').print(t2); @@ -19527,8 +19527,8 @@ return !!t2 && !!this.cssDataManager.getPseudoElement("::" + t2[1]); }, e2.prototype.selectorToSpecificityMarkedString = function(e3) { var t2 = this, n2 = function(e4) { - for (var o2 = 0, r2 = e4.getChildren(); o2 < r2.length; o2++) { - var s2 = r2[o2]; + for (var r2 = 0, o2 = e4.getChildren(); r2 < o2.length; r2++) { + var s2 = o2[r2]; switch (s2.type) { case J.IdentifierSelector: i2.id++; @@ -19557,7 +19557,7 @@ }, i2 = new Xi(); return n2(e3), $i("specificity", "[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})", i2.id, i2.attr, i2.tag); }, e2; - }(), to = function() { + }(), tr = function() { function e2(e3) { this.prev = null, this.element = e3; } @@ -19569,23 +19569,23 @@ var n2 = this.element.findRoot(); n2.parent instanceof Gi && (t2 = this.element, this.element = n2.parent, this.element.removeChild(n2), this.prev = null); } - for (var i2 = 0, o2 = e3.getChildren(); i2 < o2.length; i2++) { - var r2 = o2[i2]; - if (r2 instanceof pe) { + for (var i2 = 0, r2 = e3.getChildren(); i2 < r2.length; i2++) { + var o2 = r2[i2]; + if (o2 instanceof pe) { if (this.prev instanceof pe) { var s2 = new Yi("\u2026"); this.element.addChild(s2), this.element = s2; } else this.prev && (this.prev.matches("+") || this.prev.matches("~")) && this.element.parent && (this.element = this.element.parent); - this.prev && this.prev.matches("~") && (this.element.addChild(Qi(r2)), this.element.addChild(new Yi("\u22EE"))); - var a2 = Qi(r2, t2), l2 = a2.findRoot(); + this.prev && this.prev.matches("~") && (this.element.addChild(Qi(o2)), this.element.addChild(new Yi("\u22EE"))); + var a2 = Qi(o2, t2), l2 = a2.findRoot(); this.element.addChild(l2), this.element = a2; } - (r2 instanceof pe || r2.type === J.SelectorCombinatorParent || r2.type === J.SelectorCombinatorShadowPiercingDescendant || r2.type === J.SelectorCombinatorSibling || r2.type === J.SelectorCombinatorAllSiblings) && (this.prev = r2); + (o2 instanceof pe || o2.type === J.SelectorCombinatorParent || o2.type === J.SelectorCombinatorShadowPiercingDescendant || o2.type === J.SelectorCombinatorSibling || o2.type === J.SelectorCombinatorAllSiblings) && (this.prev = o2); } }, e2; }(); - function no(e2) { + function nr(e2) { switch (e2.type) { case J.MixinDeclaration: case J.Stylesheet: @@ -19593,37 +19593,37 @@ } return false; } - var io = function() { + var ir = function() { function e2(e3, t2) { - this.clientCapabilities = e3, this.cssDataManager = t2, this.selectorPrinting = new eo(t2); + this.clientCapabilities = e3, this.cssDataManager = t2, this.selectorPrinting = new er(t2); } return e2.prototype.doHover = function(e3, t2, n2) { function i2(t3) { return ln.create(e3.positionAt(t3.offset), e3.positionAt(t3.end)); } - for (var o2 = ie(n2, e3.offsetAt(t2)), r2 = null, s2 = 0; s2 < o2.length; s2++) { - var a2 = o2[s2]; + for (var r2 = ie(n2, e3.offsetAt(t2)), o2 = null, s2 = 0; s2 < r2.length; s2++) { + var a2 = r2[s2]; if (a2 instanceof ue) { - r2 = {contents: this.selectorPrinting.selectorToMarkedString(a2), range: i2(a2)}; + o2 = {contents: this.selectorPrinting.selectorToMarkedString(a2), range: i2(a2)}; break; } if (a2 instanceof pe) { - Y(a2.getText(), "@") || (r2 = {contents: this.selectorPrinting.simpleSelectorToMarkedString(a2), range: i2(a2)}); + Y(a2.getText(), "@") || (o2 = {contents: this.selectorPrinting.simpleSelectorToMarkedString(a2), range: i2(a2)}); break; } if (a2 instanceof _e) { var l2 = a2.getFullPropertyName(); - (d2 = this.cssDataManager.getProperty(l2)) && (r2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); + (d2 = this.cssDataManager.getProperty(l2)) && (o2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); } else if (a2 instanceof ht) { var c2 = a2.getText(); - (d2 = this.cssDataManager.getAtDirective(c2)) && (r2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); - } else if (a2 instanceof re && a2.type === J.PseudoSelector) { + (d2 = this.cssDataManager.getAtDirective(c2)) && (o2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); + } else if (a2 instanceof oe && a2.type === J.PseudoSelector) { var d2, h2, u2 = a2.getText(); - (d2 = u2.slice(0, 2) === "::" ? this.cssDataManager.getPseudoElement(u2) : this.cssDataManager.getPseudoClass(u2)) && (r2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); + (d2 = u2.slice(0, 2) === "::" ? this.cssDataManager.getPseudoElement(u2) : this.cssDataManager.getPseudoClass(u2)) && (o2 = (h2 = Et(d2, this.doesSupportMarkdown())) ? {contents: h2, range: i2(a2)} : null); } else ; } - return r2 && (r2.contents = this.convertContents(r2.contents)), r2; + return o2 && (o2.contents = this.convertContents(o2.contents)), o2; }, e2.prototype.convertContents = function(e3) { return this.doesSupportMarkdown() || typeof e3 == "string" ? e3 : "kind" in e3 ? {kind: "plaintext", value: e3.value} : Array.isArray(e3) ? e3.map(function(e4) { return typeof e4 == "string" ? e4 : e4.value; @@ -19637,189 +19637,189 @@ } return this.supportsMarkdown; }, e2; - }(), oo = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }(), rr = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); - }, ro = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + }, or = function(e2, t2) { + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } - }, so = wt(), ao = function() { + }, sr = wt(), ar = function() { function e2(e3) { this.fileSystemProvider = e3; } return e2.prototype.findDefinition = function(e3, t2, n2) { - var i2 = new An(n2), o2 = ne(n2, e3.offsetAt(t2)); - if (!o2) + var i2 = new An(n2), r2 = ne(n2, e3.offsetAt(t2)); + if (!r2) return null; - var r2 = i2.findSymbolFromNode(o2); - return r2 ? {uri: e3.uri, range: lo(r2.node, e3)} : null; + var o2 = i2.findSymbolFromNode(r2); + return o2 ? {uri: e3.uri, range: lr(o2.node, e3)} : null; }, e2.prototype.findReferences = function(e3, t2, n2) { return this.findDocumentHighlights(e3, t2, n2).map(function(t3) { return {uri: e3.uri, range: t3.range}; }); }, e2.prototype.findDocumentHighlights = function(e3, t2, n2) { - var i2 = [], o2 = ne(n2, e3.offsetAt(t2)); - if (!o2 || o2.type === J.Stylesheet || o2.type === J.Declarations) + var i2 = [], r2 = ne(n2, e3.offsetAt(t2)); + if (!r2 || r2.type === J.Stylesheet || r2.type === J.Declarations) return i2; - o2.type === J.Identifier && o2.parent && o2.parent.type === J.ClassSelector && (o2 = o2.parent); - var r2 = new An(n2), s2 = r2.findSymbolFromNode(o2), a2 = o2.getText(); + r2.type === J.Identifier && r2.parent && r2.parent.type === J.ClassSelector && (r2 = r2.parent); + var o2 = new An(n2), s2 = o2.findSymbolFromNode(r2), a2 = r2.getText(); return n2.accept(function(t3) { if (s2) { - if (r2.matchesSymbol(t3, s2)) - return i2.push({kind: co(t3), range: lo(t3, e3)}), false; + if (o2.matchesSymbol(t3, s2)) + return i2.push({kind: cr(t3), range: lr(t3, e3)}), false; } else - o2 && o2.type === t3.type && t3.matches(a2) && i2.push({kind: co(t3), range: lo(t3, e3)}); + r2 && r2.type === t3.type && t3.matches(a2) && i2.push({kind: cr(t3), range: lr(t3, e3)}); return true; }), i2; }, e2.prototype.isRawStringDocumentLinkNode = function(e3) { return e3.type === J.Import; }, e2.prototype.findDocumentLinks = function(e3, t2, n2) { - for (var i2 = this.findUnresolvedLinks(e3, t2), o2 = 0; o2 < i2.length; o2++) { - var r2 = i2[o2].target; - if (r2 && !/^\w+:\/\//g.test(r2)) { - var s2 = n2.resolveReference(r2, e3.uri); - s2 && (i2[o2].target = s2); + for (var i2 = this.findUnresolvedLinks(e3, t2), r2 = 0; r2 < i2.length; r2++) { + var o2 = i2[r2].target; + if (o2 && !/^\w+:\/\//g.test(o2)) { + var s2 = n2.resolveReference(o2, e3.uri); + s2 && (i2[r2].target = s2); } } return i2; }, e2.prototype.findDocumentLinks2 = function(e3, t2, n2) { - return oo(this, void 0, void 0, function() { - var i2, o2, r2, s2, a2, l2, c2; - return ro(this, function(d2) { + return rr(this, void 0, void 0, function() { + var i2, r2, o2, s2, a2, l2, c2; + return or(this, function(d2) { switch (d2.label) { case 0: - i2 = this.findUnresolvedLinks(e3, t2), o2 = [], r2 = 0, s2 = i2, d2.label = 1; + i2 = this.findUnresolvedLinks(e3, t2), r2 = [], o2 = 0, s2 = i2, d2.label = 1; case 1: - return r2 < s2.length ? (a2 = s2[r2], !(l2 = a2.target) || /^\w+:\/\//g.test(l2) ? [3, 3] : [4, this.resolveRelativeReference(l2, e3.uri, n2)]) : [3, 5]; + return o2 < s2.length ? (a2 = s2[o2], !(l2 = a2.target) || /^\w+:\/\//g.test(l2) ? [3, 3] : [4, this.resolveRelativeReference(l2, e3.uri, n2)]) : [3, 5]; case 2: - return (c2 = d2.sent()) !== void 0 && (a2.target = c2, o2.push(a2)), [3, 4]; + return (c2 = d2.sent()) !== void 0 && (a2.target = c2, r2.push(a2)), [3, 4]; case 3: - o2.push(a2), d2.label = 4; + r2.push(a2), d2.label = 4; case 4: - return r2++, [3, 1]; + return o2++, [3, 1]; case 5: - return [2, o2]; + return [2, r2]; } }); }); }, e2.prototype.findUnresolvedLinks = function(e3, t2) { - var n2 = this, i2 = [], o2 = function(t3) { - var n3 = t3.getText(), o3 = lo(t3, e3); - o3.start.line === o3.end.line && o3.start.character === o3.end.character || ((Y(n3, "'") || Y(n3, '"')) && (n3 = n3.slice(1, -1)), i2.push({target: n3, range: o3})); + var n2 = this, i2 = [], r2 = function(t3) { + var n3 = t3.getText(), r3 = lr(t3, e3); + r3.start.line === r3.end.line && r3.start.character === r3.end.character || ((Y(n3, "'") || Y(n3, '"')) && (n3 = n3.slice(1, -1)), i2.push({target: n3, range: r3})); }; return t2.accept(function(e4) { if (e4.type === J.URILiteral) { var t3 = e4.getChild(0); - return t3 && o2(t3), false; + return t3 && r2(t3), false; } if (e4.parent && n2.isRawStringDocumentLinkNode(e4.parent)) { var i3 = e4.getText(); - return (Y(i3, "'") || Y(i3, '"')) && o2(e4), false; + return (Y(i3, "'") || Y(i3, '"')) && r2(e4), false; } return true; }), i2; }, e2.prototype.findDocumentSymbols = function(e3, t2) { var n2 = []; return t2.accept(function(t3) { - var i2 = {name: null, kind: Xn.Class, location: null}, o2 = t3; + var i2 = {name: null, kind: Xn.Class, location: null}, r2 = t3; if (t3 instanceof ue) - return i2.name = t3.getText(), (o2 = t3.findAParent(J.Ruleset, J.ExtendsReference)) && (i2.location = cn.create(e3.uri, lo(o2, e3)), n2.push(i2)), false; + return i2.name = t3.getText(), (r2 = t3.findAParent(J.Ruleset, J.ExtendsReference)) && (i2.location = cn.create(e3.uri, lr(r2, e3)), n2.push(i2)), false; if (t3 instanceof it) i2.name = t3.getName(), i2.kind = Xn.Variable; else if (t3 instanceof dt) i2.name = t3.getName(), i2.kind = Xn.Method; else if (t3 instanceof Le) i2.name = t3.getName(), i2.kind = Xn.Function; - else if (t3 instanceof De) - i2.name = so("literal.keyframes", "@keyframes {0}", t3.getName()); + else if (t3 instanceof Oe) + i2.name = sr("literal.keyframes", "@keyframes {0}", t3.getName()); else if (t3 instanceof Ie) - i2.name = so("literal.fontface", "@font-face"); + i2.name = sr("literal.fontface", "@font-face"); else if (t3 instanceof Be) { - var r2 = t3.getChild(0); - r2 instanceof Ue && (i2.name = "@media " + r2.getText(), i2.kind = Xn.Module); + var o2 = t3.getChild(0); + o2 instanceof Ue && (i2.name = "@media " + o2.getText(), i2.kind = Xn.Module); } - return i2.name && (i2.location = cn.create(e3.uri, lo(o2, e3)), n2.push(i2)), true; + return i2.name && (i2.location = cn.create(e3.uri, lr(r2, e3)), n2.push(i2)), true; }), n2; }, e2.prototype.findDocumentColors = function(e3, t2) { var n2 = []; @@ -19827,7 +19827,7 @@ var i2 = function(e4, t4) { var n3 = zt(e4); if (n3) { - var i3 = lo(e4, t4); + var i3 = lr(e4, t4); return {color: n3, range: i3}; } return null; @@ -19835,12 +19835,12 @@ return i2 && n2.push(i2), true; }), n2; }, e2.prototype.getColorPresentations = function(e3, t2, n2, i2) { - var o2, r2 = [], s2 = Math.round(255 * n2.red), a2 = Math.round(255 * n2.green), l2 = Math.round(255 * n2.blue); - o2 = n2.alpha === 1 ? "rgb(" + s2 + ", " + a2 + ", " + l2 + ")" : "rgba(" + s2 + ", " + a2 + ", " + l2 + ", " + n2.alpha + ")", r2.push({label: o2, textEdit: Cn.replace(i2, o2)}), o2 = n2.alpha === 1 ? "#" + ho(s2) + ho(a2) + ho(l2) : "#" + ho(s2) + ho(a2) + ho(l2) + ho(Math.round(255 * n2.alpha)), r2.push({label: o2, textEdit: Cn.replace(i2, o2)}); + var r2, o2 = [], s2 = Math.round(255 * n2.red), a2 = Math.round(255 * n2.green), l2 = Math.round(255 * n2.blue); + r2 = n2.alpha === 1 ? "rgb(" + s2 + ", " + a2 + ", " + l2 + ")" : "rgba(" + s2 + ", " + a2 + ", " + l2 + ", " + n2.alpha + ")", o2.push({label: r2, textEdit: Cn.replace(i2, r2)}), r2 = n2.alpha === 1 ? "#" + dr(s2) + dr(a2) + dr(l2) : "#" + dr(s2) + dr(a2) + dr(l2) + dr(Math.round(255 * n2.alpha)), o2.push({label: r2, textEdit: Cn.replace(i2, r2)}); var c2 = function(e4) { - var t3 = e4.red, n3 = e4.green, i3 = e4.blue, o3 = e4.alpha, r3 = Math.max(t3, n3, i3), s3 = Math.min(t3, n3, i3), a3 = 0, l3 = 0, c3 = (s3 + r3) / 2, d2 = r3 - s3; + var t3 = e4.red, n3 = e4.green, i3 = e4.blue, r3 = e4.alpha, o3 = Math.max(t3, n3, i3), s3 = Math.min(t3, n3, i3), a3 = 0, l3 = 0, c3 = (s3 + o3) / 2, d2 = o3 - s3; if (d2 > 0) { - switch (l3 = Math.min(c3 <= 0.5 ? d2 / (2 * c3) : d2 / (2 - 2 * c3), 1), r3) { + switch (l3 = Math.min(c3 <= 0.5 ? d2 / (2 * c3) : d2 / (2 - 2 * c3), 1), o3) { case t3: a3 = (n3 - i3) / d2 + (n3 < i3 ? 6 : 0); break; @@ -19852,25 +19852,25 @@ } a3 *= 60, a3 = Math.round(a3); } - return {h: a3, s: l3, l: c3, a: o3}; + return {h: a3, s: l3, l: c3, a: r3}; }(n2); - return o2 = c2.a === 1 ? "hsl(" + c2.h + ", " + Math.round(100 * c2.s) + "%, " + Math.round(100 * c2.l) + "%)" : "hsla(" + c2.h + ", " + Math.round(100 * c2.s) + "%, " + Math.round(100 * c2.l) + "%, " + c2.a + ")", r2.push({label: o2, textEdit: Cn.replace(i2, o2)}), r2; + return r2 = c2.a === 1 ? "hsl(" + c2.h + ", " + Math.round(100 * c2.s) + "%, " + Math.round(100 * c2.l) + "%)" : "hsla(" + c2.h + ", " + Math.round(100 * c2.s) + "%, " + Math.round(100 * c2.l) + "%, " + c2.a + ")", o2.push({label: r2, textEdit: Cn.replace(i2, r2)}), o2; }, e2.prototype.doRename = function(e3, t2, n2, i2) { - var o2, r2 = this.findDocumentHighlights(e3, t2, i2).map(function(e4) { + var r2, o2 = this.findDocumentHighlights(e3, t2, i2).map(function(e4) { return Cn.replace(e4.range, n2); }); - return {changes: (o2 = {}, o2[e3.uri] = r2, o2)}; + return {changes: (r2 = {}, r2[e3.uri] = o2, r2)}; }, e2.prototype.resolveRelativeReference = function(e3, t2, n2) { - return oo(this, void 0, void 0, function() { - var i2, o2, r2, s2, a2; - return ro(this, function(l2) { + return rr(this, void 0, void 0, function() { + var i2, r2, o2, s2, a2; + return or(this, function(l2) { switch (l2.label) { case 0: return e3[0] === "~" && e3[1] !== "/" && this.fileSystemProvider ? (e3 = e3.substring(1), Y(t2, "file://") ? (i2 = function(e4) { if (e4[0] === "@") return e4.substring(0, e4.indexOf("/", e4.indexOf("/") + 1)); return e4.substring(0, e4.indexOf("/")); - }(e3), o2 = n2.resolveReference("/", t2), r2 = Ci(t2), [4, this.resolvePathToModule(i2, r2, o2)]) : [3, 2]) : [3, 3]; + }(e3), r2 = n2.resolveReference("/", t2), o2 = Ci(t2), [4, this.resolvePathToModule(i2, o2, r2)]) : [3, 2]) : [3, 3]; case 1: if (s2 = l2.sent()) return a2 = e3.substring(i2.length + 1), [2, Si(s2, a2)]; @@ -19882,21 +19882,21 @@ }); }); }, e2.prototype.resolvePathToModule = function(e3, t2, n2) { - return oo(this, void 0, void 0, function() { + return rr(this, void 0, void 0, function() { var i2; - return ro(this, function(o2) { - switch (o2.label) { + return or(this, function(r2) { + switch (r2.label) { case 0: return i2 = Si(t2, "node_modules", e3, "package.json"), [4, this.fileExists(i2)]; case 1: - return o2.sent() ? [2, Ci(i2)] : n2 && t2.startsWith(n2) && t2.length !== n2.length ? [2, this.resolvePathToModule(e3, Ci(t2), n2)] : [2, void 0]; + return r2.sent() ? [2, Ci(i2)] : n2 && t2.startsWith(n2) && t2.length !== n2.length ? [2, this.resolvePathToModule(e3, Ci(t2), n2)] : [2, void 0]; } }); }); }, e2.prototype.fileExists = function(e3) { - return oo(this, void 0, void 0, function() { + return rr(this, void 0, void 0, function() { var t2; - return ro(this, function(n2) { + return or(this, function(n2) { switch (n2.label) { case 0: if (!this.fileSystemProvider) @@ -19915,10 +19915,10 @@ }); }, e2; }(); - function lo(e2, t2) { + function lr(e2, t2) { return ln.create(t2.positionAt(e2.offset), t2.positionAt(e2.end)); } - function co(e2) { + function cr(e2) { if (e2.type === J.Selector) return Yn.Write; if (e2 instanceof ae && e2.parent && e2.parent instanceof ve && e2.isCustomProperty) @@ -19934,15 +19934,15 @@ } return Yn.Read; } - function ho(e2) { + function dr(e2) { var t2 = e2.toString(16); return t2.length !== 2 ? "0" + t2 : t2; } - var uo = wt(), po = oe.Warning, mo = oe.Error, go = oe.Ignore, fo = function(e2, t2, n2) { + var hr = wt(), ur = re.Warning, pr = re.Error, mr = re.Ignore, gr = function(e2, t2, n2) { this.id = e2, this.message = t2, this.defaultValue = n2; - }, bo = function(e2, t2, n2) { + }, fr = function(e2, t2, n2) { this.id = e2, this.message = t2, this.defaultValue = n2; - }, _o = {AllVendorPrefixes: new fo("compatibleVendorPrefixes", uo("rule.vendorprefixes.all", "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"), go), IncludeStandardPropertyWhenUsingVendorPrefix: new fo("vendorPrefix", uo("rule.standardvendorprefix.all", "When using a vendor-specific prefix also include the standard property"), po), DuplicateDeclarations: new fo("duplicateProperties", uo("rule.duplicateDeclarations", "Do not use duplicate style definitions"), go), EmptyRuleSet: new fo("emptyRules", uo("rule.emptyRuleSets", "Do not use empty rulesets"), po), ImportStatemement: new fo("importStatement", uo("rule.importDirective", "Import statements do not load in parallel"), go), BewareOfBoxModelSize: new fo("boxModel", uo("rule.bewareOfBoxModelSize", "Do not use width or height when using padding or border"), go), UniversalSelector: new fo("universalSelector", uo("rule.universalSelector", "The universal selector (*) is known to be slow"), go), ZeroWithUnit: new fo("zeroUnits", uo("rule.zeroWidthUnit", "No unit for zero needed"), go), RequiredPropertiesForFontFace: new fo("fontFaceProperties", uo("rule.fontFaceProperties", "@font-face rule must define 'src' and 'font-family' properties"), po), HexColorLength: new fo("hexColorLength", uo("rule.hexColor", "Hex colors must consist of three, four, six or eight hex numbers"), mo), ArgsInColorFunction: new fo("argumentsInColorFunction", uo("rule.colorFunction", "Invalid number of parameters"), mo), UnknownProperty: new fo("unknownProperties", uo("rule.unknownProperty", "Unknown property."), po), UnknownAtRules: new fo("unknownAtRules", uo("rule.unknownAtRules", "Unknown at-rule."), po), IEStarHack: new fo("ieHack", uo("rule.ieHack", "IE hacks are only necessary when supporting IE7 and older"), go), UnknownVendorSpecificProperty: new fo("unknownVendorSpecificProperties", uo("rule.unknownVendorSpecificProperty", "Unknown vendor specific property."), go), PropertyIgnoredDueToDisplay: new fo("propertyIgnoredDueToDisplay", uo("rule.propertyIgnoredDueToDisplay", "Property is ignored due to the display."), po), AvoidImportant: new fo("important", uo("rule.avoidImportant", "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."), go), AvoidFloat: new fo("float", uo("rule.avoidFloat", "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."), go), AvoidIdSelector: new fo("idSelector", uo("rule.avoidIdSelector", "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), go)}, vo = {ValidProperties: new bo("validProperties", uo("rule.validProperties", "A list of properties that are not validated against the `unknownProperties` rule."), [])}, wo = function() { + }, br = {AllVendorPrefixes: new gr("compatibleVendorPrefixes", hr("rule.vendorprefixes.all", "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"), mr), IncludeStandardPropertyWhenUsingVendorPrefix: new gr("vendorPrefix", hr("rule.standardvendorprefix.all", "When using a vendor-specific prefix also include the standard property"), ur), DuplicateDeclarations: new gr("duplicateProperties", hr("rule.duplicateDeclarations", "Do not use duplicate style definitions"), mr), EmptyRuleSet: new gr("emptyRules", hr("rule.emptyRuleSets", "Do not use empty rulesets"), ur), ImportStatemement: new gr("importStatement", hr("rule.importDirective", "Import statements do not load in parallel"), mr), BewareOfBoxModelSize: new gr("boxModel", hr("rule.bewareOfBoxModelSize", "Do not use width or height when using padding or border"), mr), UniversalSelector: new gr("universalSelector", hr("rule.universalSelector", "The universal selector (*) is known to be slow"), mr), ZeroWithUnit: new gr("zeroUnits", hr("rule.zeroWidthUnit", "No unit for zero needed"), mr), RequiredPropertiesForFontFace: new gr("fontFaceProperties", hr("rule.fontFaceProperties", "@font-face rule must define 'src' and 'font-family' properties"), ur), HexColorLength: new gr("hexColorLength", hr("rule.hexColor", "Hex colors must consist of three, four, six or eight hex numbers"), pr), ArgsInColorFunction: new gr("argumentsInColorFunction", hr("rule.colorFunction", "Invalid number of parameters"), pr), UnknownProperty: new gr("unknownProperties", hr("rule.unknownProperty", "Unknown property."), ur), UnknownAtRules: new gr("unknownAtRules", hr("rule.unknownAtRules", "Unknown at-rule."), ur), IEStarHack: new gr("ieHack", hr("rule.ieHack", "IE hacks are only necessary when supporting IE7 and older"), mr), UnknownVendorSpecificProperty: new gr("unknownVendorSpecificProperties", hr("rule.unknownVendorSpecificProperty", "Unknown vendor specific property."), mr), PropertyIgnoredDueToDisplay: new gr("propertyIgnoredDueToDisplay", hr("rule.propertyIgnoredDueToDisplay", "Property is ignored due to the display."), ur), AvoidImportant: new gr("important", hr("rule.avoidImportant", "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."), mr), AvoidFloat: new gr("float", hr("rule.avoidFloat", "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."), mr), AvoidIdSelector: new gr("idSelector", hr("rule.avoidIdSelector", "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), mr)}, _r = {ValidProperties: new fr("validProperties", hr("rule.validProperties", "A list of properties that are not validated against the `unknownProperties` rule."), [])}, vr = function() { function e2(e3) { e3 === void 0 && (e3 = {}), this.conf = e3; } @@ -19951,11 +19951,11 @@ var t2 = function(e4) { switch (e4) { case "ignore": - return oe.Ignore; + return re.Ignore; case "warning": - return oe.Warning; + return re.Warning; case "error": - return oe.Error; + return re.Error; } return null; }(this.conf[e3.id]); @@ -19967,7 +19967,7 @@ return this.conf[e3.id]; }, e2; }(); - var yo = wt(), Co = function() { + var wr = wt(), yr = function() { function e2(e3) { this.cssDataManager = e3; } @@ -19977,114 +19977,114 @@ return yn.create(t3.title, "_css.applyCodeAction", e3.uri, e3.version, n3 && n3.edits); }); }, e2.prototype.doCodeActions2 = function(e3, t2, n2, i2) { - var o2 = []; + var r2 = []; if (n2.diagnostics) - for (var r2 = 0, s2 = n2.diagnostics; r2 < s2.length; r2++) { - var a2 = s2[r2]; - this.appendFixesForMarker(e3, i2, a2, o2); + for (var o2 = 0, s2 = n2.diagnostics; o2 < s2.length; o2++) { + var a2 = s2[o2]; + this.appendFixesForMarker(e3, i2, a2, r2); } - return o2; + return r2; }, e2.prototype.getFixesForUnknownProperty = function(e3, t2, n2, i2) { - var o2 = t2.getName(), r2 = []; + var r2 = t2.getName(), o2 = []; this.cssDataManager.getProperties().forEach(function(e4) { var t3 = function(e5, t4, n3) { n3 === void 0 && (n3 = 4); var i3 = Math.abs(e5.length - t4.length); if (i3 > n3) return 0; - var o3, r3, s3 = [], a3 = []; - for (o3 = 0; o3 < t4.length + 1; ++o3) + var r3, o3, s3 = [], a3 = []; + for (r3 = 0; r3 < t4.length + 1; ++r3) a3.push(0); - for (o3 = 0; o3 < e5.length + 1; ++o3) + for (r3 = 0; r3 < e5.length + 1; ++r3) s3.push(a3); - for (o3 = 1; o3 < e5.length + 1; ++o3) - for (r3 = 1; r3 < t4.length + 1; ++r3) - e5[o3 - 1] === t4[r3 - 1] ? s3[o3][r3] = s3[o3 - 1][r3 - 1] + 1 : s3[o3][r3] = Math.max(s3[o3 - 1][r3], s3[o3][r3 - 1]); + for (r3 = 1; r3 < e5.length + 1; ++r3) + for (o3 = 1; o3 < t4.length + 1; ++o3) + e5[r3 - 1] === t4[o3 - 1] ? s3[r3][o3] = s3[r3 - 1][o3 - 1] + 1 : s3[r3][o3] = Math.max(s3[r3 - 1][o3], s3[r3][o3 - 1]); return s3[e5.length][t4.length] - Math.sqrt(i3); - }(o2, e4.name); - t3 >= o2.length / 2 && r2.push({property: e4.name, score: t3}); - }), r2.sort(function(e4, t3) { + }(r2, e4.name); + t3 >= r2.length / 2 && o2.push({property: e4.name, score: t3}); + }), o2.sort(function(e4, t3) { return t3.score - e4.score || e4.property.localeCompare(t3.property); }); - for (var s2 = 3, a2 = 0, l2 = r2; a2 < l2.length; a2++) { - var c2 = l2[a2].property, d2 = yo("css.codeaction.rename", "Rename to '{0}'", c2), h2 = Cn.replace(n2.range, c2), u2 = Mn.create(e3.uri, e3.version), p2 = {documentChanges: [xn.create(u2, [h2])]}, m2 = ii.create(d2, p2, ti.QuickFix); + for (var s2 = 3, a2 = 0, l2 = o2; a2 < l2.length; a2++) { + var c2 = l2[a2].property, d2 = wr("css.codeaction.rename", "Rename to '{0}'", c2), h2 = Cn.replace(n2.range, c2), u2 = Mn.create(e3.uri, e3.version), p2 = {documentChanges: [xn.create(u2, [h2])]}, m2 = ii.create(d2, p2, ti.QuickFix); if (m2.diagnostics = [n2], i2.push(m2), --s2 <= 0) return; } }, e2.prototype.appendFixesForMarker = function(e3, t2, n2, i2) { - if (n2.code === _o.UnknownProperty.id) - for (var o2 = e3.offsetAt(n2.range.start), r2 = e3.offsetAt(n2.range.end), s2 = ie(t2, o2), a2 = s2.length - 1; a2 >= 0; a2--) { + if (n2.code === br.UnknownProperty.id) + for (var r2 = e3.offsetAt(n2.range.start), o2 = e3.offsetAt(n2.range.end), s2 = ie(t2, r2), a2 = s2.length - 1; a2 >= 0; a2--) { var l2 = s2[a2]; if (l2 instanceof _e) { var c2 = l2.getProperty(); - if (c2 && c2.offset === o2 && c2.end === r2) + if (c2 && c2.offset === r2 && c2.end === o2) return void this.getFixesForUnknownProperty(e3, c2, n2, i2); } } }, e2; - }(), xo = function(e2) { + }(), Cr = function(e2) { this.fullPropertyName = e2.getFullPropertyName().toLowerCase(), this.node = e2; }; - function So(e2, t2, n2, i2) { - var o2 = e2[t2]; - o2.value = n2, n2 && (rn(o2.properties, i2) || o2.properties.push(i2)); + function xr(e2, t2, n2, i2) { + var r2 = e2[t2]; + r2.value = n2, n2 && (on(r2.properties, i2) || r2.properties.push(i2)); } - function ko(e2, t2, n2, i2) { - t2 === "top" || t2 === "right" || t2 === "bottom" || t2 === "left" ? So(e2, t2, n2, i2) : function(e3, t3, n3) { - So(e3, "top", t3, n3), So(e3, "right", t3, n3), So(e3, "bottom", t3, n3), So(e3, "left", t3, n3); + function Sr(e2, t2, n2, i2) { + t2 === "top" || t2 === "right" || t2 === "bottom" || t2 === "left" ? xr(e2, t2, n2, i2) : function(e3, t3, n3) { + xr(e3, "top", t3, n3), xr(e3, "right", t3, n3), xr(e3, "bottom", t3, n3), xr(e3, "left", t3, n3); }(e2, n2, i2); } - function Eo(e2, t2, n2) { + function kr(e2, t2, n2) { switch (t2.length) { case 1: - ko(e2, void 0, t2[0], n2); + Sr(e2, void 0, t2[0], n2); break; case 2: - ko(e2, "top", t2[0], n2), ko(e2, "bottom", t2[0], n2), ko(e2, "right", t2[1], n2), ko(e2, "left", t2[1], n2); + Sr(e2, "top", t2[0], n2), Sr(e2, "bottom", t2[0], n2), Sr(e2, "right", t2[1], n2), Sr(e2, "left", t2[1], n2); break; case 3: - ko(e2, "top", t2[0], n2), ko(e2, "right", t2[1], n2), ko(e2, "left", t2[1], n2), ko(e2, "bottom", t2[2], n2); + Sr(e2, "top", t2[0], n2), Sr(e2, "right", t2[1], n2), Sr(e2, "left", t2[1], n2), Sr(e2, "bottom", t2[2], n2); break; case 4: - ko(e2, "top", t2[0], n2), ko(e2, "right", t2[1], n2), ko(e2, "bottom", t2[2], n2), ko(e2, "left", t2[3], n2); + Sr(e2, "top", t2[0], n2), Sr(e2, "right", t2[1], n2), Sr(e2, "bottom", t2[2], n2), Sr(e2, "left", t2[3], n2); } } - function To(e2, t2) { + function Er(e2, t2) { for (var n2 = 0, i2 = t2; n2 < i2.length; n2++) { - var o2 = i2[n2]; - if (e2.matches(o2)) + var r2 = i2[n2]; + if (e2.matches(r2)) return true; } return false; } - function Lo(e2, t2) { - return t2 === void 0 && (t2 = true), (!t2 || !To(e2, ["initial", "unset"])) && parseFloat(e2.getText()) !== 0; + function Tr(e2, t2) { + return t2 === void 0 && (t2 = true), (!t2 || !Er(e2, ["initial", "unset"])) && parseFloat(e2.getText()) !== 0; } - function No(e2, t2) { + function Lr(e2, t2) { return t2 === void 0 && (t2 = true), e2.map(function(e3) { - return Lo(e3, t2); + return Tr(e3, t2); }); } - function Io(e2, t2) { - return t2 === void 0 && (t2 = true), !To(e2, ["none", "hidden"]) && (!t2 || !To(e2, ["initial", "unset"])); + function Nr(e2, t2) { + return t2 === void 0 && (t2 = true), !Er(e2, ["none", "hidden"]) && (!t2 || !Er(e2, ["initial", "unset"])); } - function Oo(e2, t2) { + function Ir(e2, t2) { return t2 === void 0 && (t2 = true), e2.map(function(e3) { - return Io(e3, t2); + return Nr(e3, t2); }); } - function Do(e2) { + function Dr(e2) { var t2 = e2.getChildren(); if (t2.length === 1) - return Lo(o2 = t2[0]) && Io(o2); + return Tr(r2 = t2[0]) && Nr(r2); for (var n2 = 0, i2 = t2; n2 < i2.length; n2++) { - var o2; - if (!Lo(o2 = i2[n2], false) || !Io(o2, false)) + var r2; + if (!Tr(r2 = i2[n2], false) || !Nr(r2, false)) return false; } return true; } - var Ao = wt(), Ro = function() { + var Or = wt(), Ar = function() { function e2() { this.data = {}; } @@ -20092,33 +20092,33 @@ var i2 = this.data[e3]; i2 || (i2 = {nodes: [], names: []}, this.data[e3] = i2), i2.names.push(t2), n2 && i2.nodes.push(n2); }, e2; - }(), Mo = function() { + }(), Rr = function() { function e2(e3, t2, n2) { var i2 = this; - this.cssDataManager = n2, this.warnings = [], this.settings = t2, this.documentText = e3.getText(), this.keyframes = new Ro(), this.validProperties = {}; - var o2 = t2.getSetting(vo.ValidProperties); - Array.isArray(o2) && o2.forEach(function(e4) { + this.cssDataManager = n2, this.warnings = [], this.settings = t2, this.documentText = e3.getText(), this.keyframes = new Ar(), this.validProperties = {}; + var r2 = t2.getSetting(_r.ValidProperties); + Array.isArray(r2) && r2.forEach(function(e4) { if (typeof e4 == "string") { var t3 = e4.trim().toLowerCase(); t3.length && (i2.validProperties[t3] = true); } }); } - return e2.entries = function(t2, n2, i2, o2, r2) { - var s2 = new e2(n2, i2, o2); - return t2.acceptVisitor(s2), s2.completeValidations(), s2.getEntries(r2); + return e2.entries = function(t2, n2, i2, r2, o2) { + var s2 = new e2(n2, i2, r2); + return t2.acceptVisitor(s2), s2.completeValidations(), s2.getEntries(o2); }, e2.prototype.isValidPropertyDeclaration = function(e3) { var t2 = e3.fullPropertyName; return this.validProperties[t2]; }, e2.prototype.fetch = function(e3, t2) { - for (var n2 = [], i2 = 0, o2 = e3; i2 < o2.length; i2++) { - var r2 = o2[i2]; - r2.fullPropertyName === t2 && n2.push(r2); + for (var n2 = [], i2 = 0, r2 = e3; i2 < r2.length; i2++) { + var o2 = r2[i2]; + o2.fullPropertyName === t2 && n2.push(o2); } return n2; }, e2.prototype.fetchWithValue = function(e3, t2, n2) { - for (var i2 = [], o2 = 0, r2 = e3; o2 < r2.length; o2++) { - var s2 = r2[o2]; + for (var i2 = [], r2 = 0, o2 = e3; r2 < o2.length; r2++) { + var s2 = o2[r2]; if (s2.fullPropertyName === t2) { var a2 = s2.node.getValue(); a2 && this.findValueInExpression(a2, n2) && i2.push(s2); @@ -20131,7 +20131,7 @@ return e4.type === J.Identifier && e4.matches(t2) && (n2 = true), !n2; }), n2; }, e2.prototype.getEntries = function(e3) { - return e3 === void 0 && (e3 = oe.Warning | oe.Error), this.warnings.filter(function(t2) { + return e3 === void 0 && (e3 = re.Warning | re.Error), this.warnings.filter(function(t2) { return (t2.getLevel() & e3) != 0; }); }, e2.prototype.addEntry = function(e3, t2, n2) { @@ -20139,15 +20139,15 @@ this.warnings.push(i2); }, e2.prototype.getMissingNames = function(e3, t2) { for (var n2 = e3.slice(0), i2 = 0; i2 < t2.length; i2++) { - var o2 = n2.indexOf(t2[i2]); - o2 !== -1 && (n2[o2] = null); + var r2 = n2.indexOf(t2[i2]); + r2 !== -1 && (n2[r2] = null); } - var r2 = null; + var o2 = null; for (i2 = 0; i2 < n2.length; i2++) { var s2 = n2[i2]; - s2 && (r2 = r2 === null ? Ao("namelist.single", "'{0}'", s2) : Ao("namelist.concatenated", "{0}, '{1}'", r2, s2)); + s2 && (o2 = o2 === null ? Or("namelist.single", "'{0}'", s2) : Or("namelist.concatenated", "{0}, '{1}'", o2, s2)); } - return r2; + return o2; }, e2.prototype.visitNode = function(e3) { switch (e3.type) { case J.UnknownAtRule: @@ -20176,7 +20176,7 @@ this.validateKeyframes(); }, e2.prototype.visitUnknownAtRule = function(e3) { var t2 = e3.getChild(0); - return !!t2 && (!this.cssDataManager.getAtDirective(t2.getText()) && (this.addEntry(t2, _o.UnknownAtRules, "Unknown at rule " + t2.getText()), true)); + return !!t2 && (!this.cssDataManager.getAtDirective(t2.getText()) && (this.addEntry(t2, br.UnknownAtRules, "Unknown at rule " + t2.getText()), true)); }, e2.prototype.visitKeyframe = function(e3) { var t2 = e3.getKeyword(); if (!t2) @@ -20188,17 +20188,17 @@ for (var t2 in this.keyframes.data) { var n2 = this.keyframes.data[t2].names, i2 = n2.indexOf("@keyframes") === -1; if (i2 || n2.length !== 1) { - var o2 = this.getMissingNames(e3, n2); - if (o2 || i2) - for (var r2 = 0, s2 = this.keyframes.data[t2].nodes; r2 < s2.length; r2++) { - var a2 = s2[r2]; + var r2 = this.getMissingNames(e3, n2); + if (r2 || i2) + for (var o2 = 0, s2 = this.keyframes.data[t2].nodes; o2 < s2.length; o2++) { + var a2 = s2[o2]; if (i2) { - var l2 = Ao("keyframes.standardrule.missing", "Always define standard rule '@keyframes' when defining keyframes."); - this.addEntry(a2, _o.IncludeStandardPropertyWhenUsingVendorPrefix, l2); + var l2 = Or("keyframes.standardrule.missing", "Always define standard rule '@keyframes' when defining keyframes."); + this.addEntry(a2, br.IncludeStandardPropertyWhenUsingVendorPrefix, l2); } - if (o2) { - l2 = Ao("keyframes.vendorspecific.missing", "Always include all vendor specific rules: Missing: {0}", o2); - this.addEntry(a2, _o.AllVendorPrefixes, l2); + if (r2) { + l2 = Or("keyframes.vendorspecific.missing", "Always include all vendor specific rules: Missing: {0}", r2); + this.addEntry(a2, br.AllVendorPrefixes, l2); } } } @@ -20206,32 +20206,32 @@ return true; }, e2.prototype.visitSimpleSelector = function(e3) { var t2 = this.documentText.charAt(e3.offset); - return e3.length === 1 && t2 === "*" && this.addEntry(e3, _o.UniversalSelector), t2 === "#" && this.addEntry(e3, _o.AvoidIdSelector), true; + return e3.length === 1 && t2 === "*" && this.addEntry(e3, br.UniversalSelector), t2 === "#" && this.addEntry(e3, br.AvoidIdSelector), true; }, e2.prototype.visitImport = function(e3) { - return this.addEntry(e3, _o.ImportStatemement), true; + return this.addEntry(e3, br.ImportStatemement), true; }, e2.prototype.visitRuleSet = function(t2) { var n2 = t2.getDeclarations(); if (!n2) return false; - n2.hasChildren() || this.addEntry(t2.getSelectors(), _o.EmptyRuleSet); - for (var i2 = [], o2 = 0, r2 = n2.getChildren(); o2 < r2.length; o2++) { - (x2 = r2[o2]) instanceof _e && i2.push(new xo(x2)); + n2.hasChildren() || this.addEntry(t2.getSelectors(), br.EmptyRuleSet); + for (var i2 = [], r2 = 0, o2 = n2.getChildren(); r2 < o2.length; r2++) { + (x2 = o2[r2]) instanceof _e && i2.push(new Cr(x2)); } var s2 = function(e3) { for (var t3 = {top: {value: false, properties: []}, right: {value: false, properties: []}, bottom: {value: false, properties: []}, left: {value: false, properties: []}}, n3 = 0, i3 = e3; n3 < i3.length; n3++) { - var o3 = i3[n3], r3 = o3.node.value; - if (r3 !== void 0) - switch (o3.fullPropertyName) { + var r3 = i3[n3], o3 = r3.node.value; + if (o3 !== void 0) + switch (r3.fullPropertyName) { case "box-sizing": return {top: {value: false, properties: []}, right: {value: false, properties: []}, bottom: {value: false, properties: []}, left: {value: false, properties: []}}; case "width": - t3.width = o3; + t3.width = r3; break; case "height": - t3.height = o3; + t3.height = r3; break; default: - var s3 = o3.fullPropertyName.split("-"); + var s3 = r3.fullPropertyName.split("-"); switch (s3[0]) { case "border": switch (s3[1]) { @@ -20242,24 +20242,24 @@ case "left": switch (s3[2]) { case void 0: - ko(t3, s3[1], Do(r3), o3); + Sr(t3, s3[1], Dr(o3), r3); break; case "width": - ko(t3, s3[1], Lo(r3, false), o3); + Sr(t3, s3[1], Tr(o3, false), r3); break; case "style": - ko(t3, s3[1], Io(r3, true), o3); + Sr(t3, s3[1], Nr(o3, true), r3); } break; case "width": - Eo(t3, No(r3.getChildren(), false), o3); + kr(t3, Lr(o3.getChildren(), false), r3); break; case "style": - Eo(t3, Oo(r3.getChildren(), true), o3); + kr(t3, Ir(o3.getChildren(), true), r3); } break; case "padding": - s3.length === 1 ? Eo(t3, No(r3.getChildren(), true), o3) : ko(t3, s3[1], Lo(r3, true), o3); + s3.length === 1 ? kr(t3, Lr(o3.getChildren(), true), r3) : Sr(t3, s3[1], Tr(o3, true), r3); } } } @@ -20270,9 +20270,9 @@ if (s2.right.value && (a2 = sn(a2, s2.right.properties)), s2.left.value && (a2 = sn(a2, s2.left.properties)), a2.length !== 0) { for (var l2 = 0, c2 = a2; l2 < c2.length; l2++) { var d2 = c2[l2]; - this.addEntry(d2.node, _o.BewareOfBoxModelSize); + this.addEntry(d2.node, br.BewareOfBoxModelSize); } - this.addEntry(s2.width.node, _o.BewareOfBoxModelSize); + this.addEntry(s2.width.node, br.BewareOfBoxModelSize); } } if (s2.height) { @@ -20280,9 +20280,9 @@ if (s2.top.value && (a2 = sn(a2, s2.top.properties)), s2.bottom.value && (a2 = sn(a2, s2.bottom.properties)), a2.length !== 0) { for (var h2 = 0, u2 = a2; h2 < u2.length; h2++) { d2 = u2[h2]; - this.addEntry(d2.node, _o.BewareOfBoxModelSize); + this.addEntry(d2.node, br.BewareOfBoxModelSize); } - this.addEntry(s2.height.node, _o.BewareOfBoxModelSize); + this.addEntry(s2.height.node, br.BewareOfBoxModelSize); } } var p2 = this.fetchWithValue(i2, "display", "inline"); @@ -20290,20 +20290,20 @@ for (var m2 = 0, g2 = ["width", "height", "margin-top", "margin-bottom", "float"]; m2 < g2.length; m2++) for (var f2 = g2[m2], b2 = this.fetch(i2, f2), _2 = 0; _2 < b2.length; _2++) { var v2 = b2[_2].node, w2 = v2.getValue(); - (f2 !== "float" || w2 && !w2.matches("none")) && this.addEntry(v2, _o.PropertyIgnoredDueToDisplay, Ao("rule.propertyIgnoredDueToDisplayInline", "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.")); + (f2 !== "float" || w2 && !w2.matches("none")) && this.addEntry(v2, br.PropertyIgnoredDueToDisplay, Or("rule.propertyIgnoredDueToDisplayInline", "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.")); } if ((p2 = this.fetchWithValue(i2, "display", "inline-block")).length > 0) for (b2 = this.fetch(i2, "float"), _2 = 0; _2 < b2.length; _2++) { var y2 = b2[_2].node; - (w2 = y2.getValue()) && !w2.matches("none") && this.addEntry(y2, _o.PropertyIgnoredDueToDisplay, Ao("rule.propertyIgnoredDueToDisplayInlineBlock", "inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'")); + (w2 = y2.getValue()) && !w2.matches("none") && this.addEntry(y2, br.PropertyIgnoredDueToDisplay, Or("rule.propertyIgnoredDueToDisplayInlineBlock", "inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'")); } if ((p2 = this.fetchWithValue(i2, "display", "block")).length > 0) for (b2 = this.fetch(i2, "vertical-align"), _2 = 0; _2 < b2.length; _2++) - this.addEntry(b2[_2].node, _o.PropertyIgnoredDueToDisplay, Ao("rule.propertyIgnoredDueToDisplayBlock", "Property is ignored due to the display. With 'display: block', vertical-align should not be used.")); + this.addEntry(b2[_2].node, br.PropertyIgnoredDueToDisplay, Or("rule.propertyIgnoredDueToDisplayBlock", "Property is ignored due to the display. With 'display: block', vertical-align should not be used.")); var C2 = this.fetch(i2, "float"); for (_2 = 0; _2 < C2.length; _2++) { var x2 = C2[_2]; - this.isValidPropertyDeclaration(x2) || this.addEntry(x2.node, _o.AvoidFloat); + this.isValidPropertyDeclaration(x2) || this.addEntry(x2.node, br.AvoidFloat); } for (var S2 = 0; S2 < i2.length; S2++) { if ((x2 = i2[S2]).fullPropertyName !== "background" && !this.validProperties[x2.fullPropertyName]) { @@ -20312,25 +20312,25 @@ if (k2.length > 1) for (var E2 = 0; E2 < k2.length; E2++) { var T2 = k2[E2].node.getValue(); - T2 && this.documentText.charAt(T2.offset) !== "-" && k2[E2] !== x2 && this.addEntry(x2.node, _o.DuplicateDeclarations); + T2 && this.documentText.charAt(T2.offset) !== "-" && k2[E2] !== x2 && this.addEntry(x2.node, br.DuplicateDeclarations); } } } } if (!t2.getSelectors().matches(":export")) { - for (var L2 = new Ro(), N2 = false, I2 = 0, O2 = i2; I2 < O2.length; I2++) { - var D2 = (x2 = O2[I2]).node; - if (this.isCSSDeclaration(D2)) { + for (var L2 = new Ar(), N2 = false, I2 = 0, D2 = i2; I2 < D2.length; I2++) { + var O2 = (x2 = D2[I2]).node; + if (this.isCSSDeclaration(O2)) { var A2 = x2.fullPropertyName, R2 = A2.charAt(0); if (R2 === "-") { if (A2.charAt(1) !== "-") { - this.cssDataManager.isKnownProperty(A2) || this.validProperties[A2] || this.addEntry(D2.getProperty(), _o.UnknownVendorSpecificProperty); - var M2 = D2.getNonPrefixedPropertyName(); - L2.add(M2, A2, D2.getProperty()); + this.cssDataManager.isKnownProperty(A2) || this.validProperties[A2] || this.addEntry(O2.getProperty(), br.UnknownVendorSpecificProperty); + var M2 = O2.getNonPrefixedPropertyName(); + L2.add(M2, A2, O2.getProperty()); } } else { var P2 = A2; - R2 !== "*" && R2 !== "_" || (this.addEntry(D2.getProperty(), _o.IEStarHack), A2 = A2.substr(1)), this.cssDataManager.isKnownProperty(P2) || this.cssDataManager.isKnownProperty(A2) || this.validProperties[A2] || this.addEntry(D2.getProperty(), _o.UnknownProperty, Ao("property.unknownproperty.detailed", "Unknown property: '{0}'", D2.getFullPropertyName())), L2.add(A2, A2, null); + R2 !== "*" && R2 !== "_" || (this.addEntry(O2.getProperty(), br.IEStarHack), A2 = A2.substr(1)), this.cssDataManager.isKnownProperty(P2) || this.cssDataManager.isKnownProperty(A2) || this.validProperties[A2] || this.addEntry(O2.getProperty(), br.UnknownProperty, Or("property.unknownproperty.detailed", "Unknown property: '{0}'", O2.getFullPropertyName())), L2.add(A2, A2, null); } } else N2 = true; @@ -20348,12 +20348,12 @@ for (var q2 = 0, $2 = W2.nodes; q2 < $2.length; q2++) { var K2 = $2[q2]; if (B2) { - var G2 = Ao("property.standard.missing", "Also define the standard property '{0}' for compatibility", F2); - this.addEntry(K2, _o.IncludeStandardPropertyWhenUsingVendorPrefix, G2); + var G2 = Or("property.standard.missing", "Also define the standard property '{0}' for compatibility", F2); + this.addEntry(K2, br.IncludeStandardPropertyWhenUsingVendorPrefix, G2); } if (H2) { - G2 = Ao("property.vendorspecific.missing", "Always include all vendor specific properties: Missing: {0}", H2); - this.addEntry(K2, _o.AllVendorPrefixes, G2); + G2 = Or("property.vendorspecific.missing", "Always include all vendor specific properties: Missing: {0}", H2); + this.addEntry(K2, br.AllVendorPrefixes, G2); } } } @@ -20361,7 +20361,7 @@ } return true; }, e2.prototype.visitPrio = function(e3) { - return this.addEntry(e3, _o.AvoidImportant), true; + return this.addEntry(e3, br.AvoidImportant), true; }, e2.prototype.visitNumericValue = function(e3) { var t2 = e3.findParent(J.Function); if (t2 && t2.getName() === "calc") @@ -20371,22 +20371,22 @@ var i2 = e3.getValue(); if (!i2.unit || Zt.length.indexOf(i2.unit.toLowerCase()) === -1) return true; - parseFloat(i2.value) === 0 && i2.unit && !this.validProperties[n2.getFullPropertyName()] && this.addEntry(e3, _o.ZeroWithUnit); + parseFloat(i2.value) === 0 && i2.unit && !this.validProperties[n2.getFullPropertyName()] && this.addEntry(e3, br.ZeroWithUnit); } return true; }, e2.prototype.visitFontFace = function(e3) { var t2 = e3.getDeclarations(); if (!t2) return false; - for (var n2 = false, i2 = false, o2 = false, r2 = 0, s2 = t2.getChildren(); r2 < s2.length; r2++) { - var a2 = s2[r2]; + for (var n2 = false, i2 = false, r2 = false, o2 = 0, s2 = t2.getChildren(); o2 < s2.length; o2++) { + var a2 = s2[o2]; if (this.isCSSDeclaration(a2)) { var l2 = a2.getProperty().getName().toLowerCase(); l2 === "src" && (n2 = true), l2 === "font-family" && (i2 = true); } else - o2 = true; + r2 = true; } - return o2 || n2 && i2 || this.addEntry(e3, _o.RequiredPropertiesForFontFace), true; + return r2 || n2 && i2 || this.addEntry(e3, br.RequiredPropertiesForFontFace), true; }, e2.prototype.isCSSDeclaration = function(e3) { if (e3 instanceof _e) { if (!e3.getValue()) @@ -20400,7 +20400,7 @@ return false; }, e2.prototype.visitHexColorValue = function(e3) { var t2 = e3.length; - return t2 !== 9 && t2 !== 7 && t2 !== 5 && t2 !== 4 && this.addEntry(e3, _o.HexColorLength), false; + return t2 !== 9 && t2 !== 7 && t2 !== 5 && t2 !== 4 && this.addEntry(e3, br.HexColorLength), false; }, e2.prototype.visitFunction = function(e3) { var t2 = e3.getName().toLowerCase(), n2 = -1, i2 = 0; switch (t2) { @@ -20414,9 +20414,9 @@ } return n2 !== -1 && (e3.getArguments().accept(function(e4) { return !(e4 instanceof Ye) || (i2 += 1, false); - }), i2 !== n2 && this.addEntry(e3, _o.ArgsInColorFunction)), true; + }), i2 !== n2 && this.addEntry(e3, br.ArgsInColorFunction)), true; }, e2.prefixes = ["-ms-", "-moz-", "-o-", "-webkit-"], e2; - }(), Po = function() { + }(), Mr = function() { function e2(e3) { this.cssDataManager = e3; } @@ -20426,18 +20426,18 @@ if (n2 === void 0 && (n2 = this.settings), n2 && n2.validate === false) return []; var i2 = []; - i2.push.apply(i2, bt.entries(t2)), i2.push.apply(i2, Mo.entries(t2, e3, new wo(n2 && n2.lint), this.cssDataManager)); - var o2 = []; - for (var r2 in _o) - o2.push(_o[r2].id); + i2.push.apply(i2, bt.entries(t2)), i2.push.apply(i2, Rr.entries(t2, e3, new vr(n2 && n2.lint), this.cssDataManager)); + var r2 = []; + for (var o2 in br) + r2.push(br[o2].id); return i2.filter(function(e4) { - return e4.getLevel() !== oe.Ignore; + return e4.getLevel() !== re.Ignore; }).map(function(t3) { var n3 = ln.create(e3.positionAt(t3.getOffset()), e3.positionAt(t3.getOffset() + t3.getLength())), i3 = e3.languageId; - return {code: t3.getRule().id, source: i3, message: t3.getMessage(), severity: t3.getLevel() === oe.Warning ? bn.Warning : bn.Error, range: n3}; + return {code: t3.getRule().id, source: i3, message: t3.getMessage(), severity: t3.getLevel() === re.Warning ? bn.Warning : bn.Error, range: n3}; }); }, e2; - }(), Fo = function() { + }(), Pr = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -20452,33 +20452,33 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), Wo = "/".charCodeAt(0), zo = "\n".charCodeAt(0), Bo = "\r".charCodeAt(0), jo = "\f".charCodeAt(0), Vo = "$".charCodeAt(0), Uo = "#".charCodeAt(0), Ho = "{".charCodeAt(0), qo = "=".charCodeAt(0), $o = "!".charCodeAt(0), Ko = "<".charCodeAt(0), Go = ">".charCodeAt(0), Yo = ".".charCodeAt(0), Zo = ("@".charCodeAt(0), i.CustomToken), Xo = Zo++, Qo = Zo++, Jo = (Zo++, Zo++), er = Zo++, tr = Zo++, nr = Zo++, ir = Zo++, or = (Zo++, function(e2) { + }(), Fr = "/".charCodeAt(0), Wr = "\n".charCodeAt(0), zr = "\r".charCodeAt(0), Br = "\f".charCodeAt(0), jr = "$".charCodeAt(0), Vr = "#".charCodeAt(0), Ur = "{".charCodeAt(0), Hr = "=".charCodeAt(0), qr = "!".charCodeAt(0), $r = "<".charCodeAt(0), Kr = ">".charCodeAt(0), Gr = ".".charCodeAt(0), Yr = ("@".charCodeAt(0), i.CustomToken), Zr = Yr++, Xr = Yr++, Qr = (Yr++, Yr++), Jr = Yr++, eo = Yr++, to = Yr++, no = Yr++, io = (Yr++, function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } - return Fo(t2, e2), t2.prototype.scanNext = function(t3) { - if (this.stream.advanceIfChar(Vo)) { + return Pr(t2, e2), t2.prototype.scanNext = function(t3) { + if (this.stream.advanceIfChar(jr)) { var n2 = ["$"]; if (this.ident(n2)) - return this.finishToken(t3, Xo, n2.join("")); + return this.finishToken(t3, Zr, n2.join("")); this.stream.goBackTo(t3); } - return this.stream.advanceIfChars([Uo, Ho]) ? this.finishToken(t3, Qo) : this.stream.advanceIfChars([qo, qo]) ? this.finishToken(t3, Jo) : this.stream.advanceIfChars([$o, qo]) ? this.finishToken(t3, er) : this.stream.advanceIfChar(Ko) ? this.stream.advanceIfChar(qo) ? this.finishToken(t3, nr) : this.finishToken(t3, i.Delim) : this.stream.advanceIfChar(Go) ? this.stream.advanceIfChar(qo) ? this.finishToken(t3, tr) : this.finishToken(t3, i.Delim) : this.stream.advanceIfChars([Yo, Yo, Yo]) ? this.finishToken(t3, ir) : e2.prototype.scanNext.call(this, t3); + return this.stream.advanceIfChars([Vr, Ur]) ? this.finishToken(t3, Xr) : this.stream.advanceIfChars([Hr, Hr]) ? this.finishToken(t3, Qr) : this.stream.advanceIfChars([qr, Hr]) ? this.finishToken(t3, Jr) : this.stream.advanceIfChar($r) ? this.stream.advanceIfChar(Hr) ? this.finishToken(t3, to) : this.finishToken(t3, i.Delim) : this.stream.advanceIfChar(Kr) ? this.stream.advanceIfChar(Hr) ? this.finishToken(t3, eo) : this.finishToken(t3, i.Delim) : this.stream.advanceIfChars([Gr, Gr, Gr]) ? this.finishToken(t3, no) : e2.prototype.scanNext.call(this, t3); }, t2.prototype.comment = function() { - return !!e2.prototype.comment.call(this) || !(this.inURL || !this.stream.advanceIfChars([Wo, Wo])) && (this.stream.advanceWhileChar(function(e3) { + return !!e2.prototype.comment.call(this) || !(this.inURL || !this.stream.advanceIfChars([Fr, Fr])) && (this.stream.advanceWhileChar(function(e3) { switch (e3) { - case zo: - case Bo: - case jo: + case Wr: + case zr: + case Br: return false; default: return true; } }), true); }, t2; - }(G)), rr = wt(), sr = function(e2, t2) { + }(G)), ro = wt(), oo = function(e2, t2) { this.id = e2, this.message = t2; - }, ar = {FromExpected: new sr("scss-fromexpected", rr("expected.from", "'from' expected")), ThroughOrToExpected: new sr("scss-throughexpected", rr("expected.through", "'through' or 'to' expected")), InExpected: new sr("scss-fromexpected", rr("expected.in", "'in' expected"))}, lr = function() { + }, so = {FromExpected: new oo("scss-fromexpected", ro("expected.from", "'from' expected")), ThroughOrToExpected: new oo("scss-throughexpected", ro("expected.through", "'through' or 'to' expected")), InExpected: new oo("scss-fromexpected", ro("expected.in", "'in' expected"))}, ao = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -20493,11 +20493,11 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), cr = function(e2) { + }(), lo = function(e2) { function t2() { - return e2.call(this, new or()) || this; + return e2.call(this, new io()) || this; } - return lr(t2, e2), t2.prototype._parseStylesheetStatement = function(t3) { + return ao(t2, e2), t2.prototype._parseStylesheetStatement = function(t3) { return t3 === void 0 && (t3 = false), this.peek(i.AtKeyword) ? this._parseWarnAndDebug() || this._parseControlStatement() || this._parseMixinDeclaration() || this._parseMixinContent() || this._parseMixinReference() || this._parseFunctionDeclaration() || this._parseForward() || this._parseUse() || this._parseRuleset(t3) || e2.prototype._parseStylesheetAtStatement.call(this, t3) : this._parseRuleset(true) || this._parseVariableDeclaration(); }, t2.prototype._parseImport = function() { if (!this.peekKeyword("@import")) @@ -20510,7 +20510,7 @@ return this.finish(e3, xt.URIOrStringExpected); return this.peek(i.SemiColon) || this.peek(i.EOF) || e3.setMedialist(this._parseMediaQueryList()), this.finish(e3); }, t2.prototype._parseVariableDeclaration = function(e3) { - if (e3 === void 0 && (e3 = []), !this.peek(Xo)) + if (e3 === void 0 && (e3 = []), !this.peek(Zr)) return null; var t3 = this.create(it); if (!t3.setVariable(this._parseVariable())) @@ -20535,39 +20535,39 @@ }, t2.prototype._parseKeyframeSelector = function() { return this._tryParseKeyframeSelector() || this._parseControlStatement(this._parseKeyframeSelector.bind(this)) || this._parseVariableDeclaration() || this._parseMixinContent(); }, t2.prototype._parseVariable = function() { - if (!this.peek(Xo)) + if (!this.peek(Zr)) return null; - var e3 = this.create(rt); + var e3 = this.create(ot); return this.consumeToken(), e3; }, t2.prototype._parseModuleMember = function() { var e3 = this.mark(), t3 = this.create(gt); return t3.setIdentifier(this._parseIdent([ee.Module])) ? this.hasWhitespace() || !this.acceptDelim(".") || this.hasWhitespace() ? (this.restoreAtMark(e3), null) : t3.addChild(this._parseVariable() || this._parseFunction()) ? t3 : this.finish(t3, xt.IdentifierOrVariableExpected) : null; }, t2.prototype._parseIdent = function(e3) { var t3 = this; - if (!this.peek(i.Ident) && !this.peek(Qo) && !this.peekDelim("-")) + if (!this.peek(i.Ident) && !this.peek(Xr) && !this.peekDelim("-")) return null; var n2 = this.create(ae); n2.referenceTypes = e3, n2.isCustomProperty = this.peekRegExp(i.Ident, /^--/); - for (var o2, r2 = false; (this.accept(i.Ident) || n2.addChild((o2 = void 0, o2 = t3.mark(), t3.acceptDelim("-") && (t3.hasWhitespace() || t3.acceptDelim("-"), t3.hasWhitespace()) ? (t3.restoreAtMark(o2), null) : t3._parseInterpolation())) || r2 && this.acceptRegexp(/[\w-]/)) && (r2 = true, !this.hasWhitespace()); ) + for (var r2, o2 = false; (this.accept(i.Ident) || n2.addChild((r2 = void 0, r2 = t3.mark(), t3.acceptDelim("-") && (t3.hasWhitespace() || t3.acceptDelim("-"), t3.hasWhitespace()) ? (t3.restoreAtMark(r2), null) : t3._parseInterpolation())) || o2 && this.acceptRegexp(/[\w-]/)) && (o2 = true, !this.hasWhitespace()); ) ; - return r2 ? this.finish(n2) : null; + return o2 ? this.finish(n2) : null; }, t2.prototype._parseTermExpression = function() { return this._parseModuleMember() || this._parseVariable() || this._parseSelectorCombinator() || e2.prototype._parseTermExpression.call(this); }, t2.prototype._parseInterpolation = function() { - if (this.peek(Qo)) { - var e3 = this.create(ot); + if (this.peek(Xr)) { + var e3 = this.create(rt); return this.consumeToken(), e3.addChild(this._parseExpr()) || this._parseSelectorCombinator() ? this.accept(i.CurlyR) ? this.finish(e3) : this.finish(e3, xt.RightCurlyExpected) : this.accept(i.CurlyR) ? this.finish(e3) : this.finish(e3, xt.ExpressionExpected); } return null; }, t2.prototype._parseOperator = function() { - if (this.peek(Jo) || this.peek(er) || this.peek(tr) || this.peek(nr) || this.peekDelim(">") || this.peekDelim("<") || this.peekIdent("and") || this.peekIdent("or") || this.peekDelim("%")) { + if (this.peek(Qr) || this.peek(Jr) || this.peek(eo) || this.peek(to) || this.peekDelim(">") || this.peekDelim("<") || this.peekIdent("and") || this.peekIdent("or") || this.peekDelim("%")) { var t3 = this.createNode(J.Operator); return this.consumeToken(), this.finish(t3); } return e2.prototype._parseOperator.call(this); }, t2.prototype._parseUnaryOperator = function() { if (this.peekIdent("not")) { - var t3 = this.create(re); + var t3 = this.create(oe); return this.consumeToken(), this.finish(t3); } return e2.prototype._parseUnaryOperator.call(this); @@ -20587,7 +20587,7 @@ return this.finish(t3, xt.PropertyValueExpected); return this.peek(i.SemiColon) && (t3.semicolonPosition = this.token.offset), this.finish(t3); }, t2.prototype._parseNestedProperties = function() { - var e3 = this.create(Oe); + var e3 = this.create(De); return this._parseBody(e3, this._parseDeclaration.bind(this)); }, t2.prototype._parseExtends = function() { if (this.peekKeyword("@extend")) { @@ -20650,7 +20650,7 @@ if (!this.peekKeyword("@for")) return null; var t3 = this.create(Se); - return this.consumeToken(), t3.setVariable(this._parseVariable()) ? this.acceptIdent("from") ? t3.addChild(this._parseBinaryExpr()) ? this.acceptIdent("to") || this.acceptIdent("through") ? t3.addChild(this._parseBinaryExpr()) ? this._parseBody(t3, e3) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, ar.ThroughOrToExpected, [i.CurlyR]) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, ar.FromExpected, [i.CurlyR]) : this.finish(t3, xt.VariableNameExpected, [i.CurlyR]); + return this.consumeToken(), t3.setVariable(this._parseVariable()) ? this.acceptIdent("from") ? t3.addChild(this._parseBinaryExpr()) ? this.acceptIdent("to") || this.acceptIdent("through") ? t3.addChild(this._parseBinaryExpr()) ? this._parseBody(t3, e3) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, so.ThroughOrToExpected, [i.CurlyR]) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, so.FromExpected, [i.CurlyR]) : this.finish(t3, xt.VariableNameExpected, [i.CurlyR]); }, t2.prototype._parseEachStatement = function(e3) { if (!this.peekKeyword("@each")) return null; @@ -20662,7 +20662,7 @@ for (; this.accept(i.Comma); ) if (!n2.addChild(this._parseVariable())) return this.finish(t3, xt.VariableNameExpected, [i.CurlyR]); - return this.finish(n2), this.acceptIdent("in") ? t3.addChild(this._parseExpr()) ? this._parseBody(t3, e3) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, ar.InExpected, [i.CurlyR]); + return this.finish(n2), this.acceptIdent("in") ? t3.addChild(this._parseExpr()) ? this._parseBody(t3, e3) : this.finish(t3, xt.ExpressionExpected, [i.CurlyR]) : this.finish(t3, so.InExpected, [i.CurlyR]); }, t2.prototype._parseWhileStatement = function(e3) { if (!this.peekKeyword("@while")) return null; @@ -20707,7 +20707,7 @@ return this._parseBody(e3, this._parseRuleSetDeclaration.bind(this)); }, t2.prototype._parseParameterDeclaration = function() { var e3 = this.create(ye); - return e3.setIdentifier(this._parseVariable()) ? (this.accept(ir), this.accept(i.Colon) && !e3.setDefaultValue(this._parseExpr(true)) ? this.finish(e3, xt.VariableValueExpected, [], [i.Comma, i.ParenthesisR]) : this.finish(e3)) : null; + return e3.setIdentifier(this._parseVariable()) ? (this.accept(no), this.accept(i.Colon) && !e3.setDefaultValue(this._parseExpr(true)) ? this.finish(e3, xt.VariableValueExpected, [], [i.Comma, i.ParenthesisR]) : this.finish(e3)) : null; }, t2.prototype._parseMixinContent = function() { if (!this.peekKeyword("@content")) return null; @@ -20734,8 +20734,8 @@ var n2 = this._parseIdent([ee.Mixin]); if (!n2) return this.finish(e3, xt.IdentifierExpected, [i.CurlyR]); - var o2 = this.create(gt); - t3.referenceTypes = [ee.Module], o2.setIdentifier(t3), e3.setIdentifier(n2), e3.addChild(o2); + var r2 = this.create(gt); + t3.referenceTypes = [ee.Module], r2.setIdentifier(t3), e3.setIdentifier(n2), e3.addChild(r2); } if (this.accept(i.ParenthesisL)) { if (e3.getArguments().addChild(this._parseFunctionArgument())) { @@ -20769,23 +20769,23 @@ if (this.accept(i.Colon)) e3.setIdentifier(n2); else { - if (this.accept(ir)) + if (this.accept(no)) return e3.setValue(n2), this.finish(e3); this.restoreAtMark(t3); } - return e3.setValue(this._parseExpr(true)) ? (this.accept(ir), e3.addChild(this._parsePrio()), this.finish(e3)) : e3.setValue(this._tryParsePrio()) ? this.finish(e3) : null; + return e3.setValue(this._parseExpr(true)) ? (this.accept(no), e3.addChild(this._parsePrio()), this.finish(e3)) : e3.setValue(this._tryParsePrio()) ? this.finish(e3) : null; }, t2.prototype._parseURLArgument = function() { var t3 = this.mark(), n2 = e2.prototype._parseURLArgument.call(this); if (!n2 || !this.peek(i.ParenthesisR)) { this.restoreAtMark(t3); - var o2 = this.create(re); - return o2.addChild(this._parseBinaryExpr()), this.finish(o2); + var r2 = this.create(oe); + return r2.addChild(this._parseBinaryExpr()), this.finish(r2); } return n2; }, t2.prototype._parseOperation = function() { if (!this.peek(i.ParenthesisL)) return null; - var e3 = this.create(re); + var e3 = this.create(oe); for (this.consumeToken(); e3.addChild(this._parseListElement()); ) this.accept(i.Comma); return this.accept(i.ParenthesisR) ? this.finish(e3) : this.finish(e3, xt.RightParenthesisExpected); @@ -20854,7 +20854,7 @@ }, t2.prototype._parseSupportsCondition = function() { return this._parseInterpolation() || e2.prototype._parseSupportsCondition.call(this); }, t2; - }(on), dr = function() { + }(rn), co = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -20869,18 +20869,18 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), hr = wt(), ur = function(e2) { + }(), ho = wt(), uo = function(e2) { function t2(n2, i2) { - var o2 = e2.call(this, "$", n2, i2) || this; - return pr(t2.scssModuleLoaders), pr(t2.scssModuleBuiltIns), o2; + var r2 = e2.call(this, "$", n2, i2) || this; + return po(t2.scssModuleLoaders), po(t2.scssModuleBuiltIns), r2; } - return dr(t2, e2), t2.prototype.isImportPathParent = function(t3) { + return co(t2, e2), t2.prototype.isImportPathParent = function(t3) { return t3 === J.Forward || t3 === J.Use || e2.prototype.isImportPathParent.call(this, t3); }, t2.prototype.getCompletionForImportPath = function(n2, i2) { - var o2 = n2.getParent().type; - if (o2 === J.Forward || o2 === J.Use) - for (var r2 = 0, s2 = t2.scssModuleBuiltIns; r2 < s2.length; r2++) { - var a2 = s2[r2], l2 = {label: a2.label, documentation: a2.documentation, textEdit: Cn.replace(this.getCompletionRange(n2), "'" + a2.label + "'"), kind: zn.Module}; + var r2 = n2.getParent().type; + if (r2 === J.Forward || r2 === J.Use) + for (var o2 = 0, s2 = t2.scssModuleBuiltIns; o2 < s2.length; o2++) { + var a2 = s2[o2], l2 = {label: a2.label, documentation: a2.documentation, textEdit: Cn.replace(this.getCompletionRange(n2), "'" + a2.label + "'"), kind: zn.Module}; i2.items.push(l2); } return e2.prototype.getCompletionForImportPath.call(this, n2, i2); @@ -20890,25 +20890,25 @@ return "\\" + i2 + ": ${" + e3++ + ":" + (t2.variableDefaults[i2] || "") + "}"; }; }, t2.prototype.createFunctionProposals = function(e3, t3, n2, i2) { - for (var o2 = 0, r2 = e3; o2 < r2.length; o2++) { - var s2 = r2[o2], a2 = s2.func.replace(/\[?(\$\w+)\]?/g, this.createReplaceFunction()), l2 = {label: s2.func.substr(0, s2.func.indexOf("(")), detail: s2.func, documentation: s2.desc, textEdit: Cn.replace(this.getCompletionRange(t3), a2), insertTextFormat: Bn.Snippet, kind: zn.Function}; + for (var r2 = 0, o2 = e3; r2 < o2.length; r2++) { + var s2 = o2[r2], a2 = s2.func.replace(/\[?(\$\w+)\]?/g, this.createReplaceFunction()), l2 = {label: s2.func.substr(0, s2.func.indexOf("(")), detail: s2.func, documentation: s2.desc, textEdit: Cn.replace(this.getCompletionRange(t3), a2), insertTextFormat: Bn.Snippet, kind: zn.Function}; n2 && (l2.sortText = "z"), i2.items.push(l2); } return i2; - }, t2.prototype.getCompletionsForSelector = function(n2, i2, o2) { - return this.createFunctionProposals(t2.selectorFuncs, null, true, o2), e2.prototype.getCompletionsForSelector.call(this, n2, i2, o2); - }, t2.prototype.getTermProposals = function(n2, i2, o2) { - var r2 = t2.builtInFuncs; - return n2 && (r2 = r2.filter(function(e3) { + }, t2.prototype.getCompletionsForSelector = function(n2, i2, r2) { + return this.createFunctionProposals(t2.selectorFuncs, null, true, r2), e2.prototype.getCompletionsForSelector.call(this, n2, i2, r2); + }, t2.prototype.getTermProposals = function(n2, i2, r2) { + var o2 = t2.builtInFuncs; + return n2 && (o2 = o2.filter(function(e3) { return !e3.type || !n2.restrictions || n2.restrictions.indexOf(e3.type) !== -1; - })), this.createFunctionProposals(r2, i2, true, o2), e2.prototype.getTermProposals.call(this, n2, i2, o2); - }, t2.prototype.getColorProposals = function(n2, i2, o2) { - return this.createFunctionProposals(t2.colorProposals, i2, false, o2), e2.prototype.getColorProposals.call(this, n2, i2, o2); + })), this.createFunctionProposals(o2, i2, true, r2), e2.prototype.getTermProposals.call(this, n2, i2, r2); + }, t2.prototype.getColorProposals = function(n2, i2, r2) { + return this.createFunctionProposals(t2.colorProposals, i2, false, r2), e2.prototype.getColorProposals.call(this, n2, i2, r2); }, t2.prototype.getCompletionsForDeclarationProperty = function(t3, n2) { return this.getCompletionForAtDirectives(n2), this.getCompletionsForSelector(null, true, n2), e2.prototype.getCompletionsForDeclarationProperty.call(this, t3, n2); }, t2.prototype.getCompletionsForExtendsReference = function(e3, t3, n2) { - for (var i2 = 0, o2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Rule); i2 < o2.length; i2++) { - var r2 = o2[i2], s2 = {label: r2.name, textEdit: Cn.replace(this.getCompletionRange(t3), r2.name), kind: zn.Function}; + for (var i2 = 0, r2 = this.getSymbolContext().findSymbolsAtOffset(this.offset, ee.Rule); i2 < r2.length; i2++) { + var o2 = r2[i2], s2 = {label: o2.name, textEdit: Cn.replace(this.getCompletionRange(t3), o2.name), kind: zn.Function}; n2.items.push(s2); } return n2; @@ -20920,9 +20920,9 @@ }, t2.prototype.getCompletionForModuleLoaders = function(e3) { var n2; return (n2 = e3.items).push.apply(n2, t2.scssModuleLoaders), e3; - }, t2.variableDefaults = {$red: "1", $green: "2", $blue: "3", $alpha: "1.0", $color: "#000000", $weight: "0.5", $hue: "0", $saturation: "0%", $lightness: "0%", $degrees: "0", $amount: "0", $string: '""', $substring: '"s"', $number: "0", $limit: "1"}, t2.colorProposals = [{func: "red($color)", desc: hr("scss.builtin.red", "Gets the red component of a color.")}, {func: "green($color)", desc: hr("scss.builtin.green", "Gets the green component of a color.")}, {func: "blue($color)", desc: hr("scss.builtin.blue", "Gets the blue component of a color.")}, {func: "mix($color, $color, [$weight])", desc: hr("scss.builtin.mix", "Mixes two colors together.")}, {func: "hue($color)", desc: hr("scss.builtin.hue", "Gets the hue component of a color.")}, {func: "saturation($color)", desc: hr("scss.builtin.saturation", "Gets the saturation component of a color.")}, {func: "lightness($color)", desc: hr("scss.builtin.lightness", "Gets the lightness component of a color.")}, {func: "adjust-hue($color, $degrees)", desc: hr("scss.builtin.adjust-hue", "Changes the hue of a color.")}, {func: "lighten($color, $amount)", desc: hr("scss.builtin.lighten", "Makes a color lighter.")}, {func: "darken($color, $amount)", desc: hr("scss.builtin.darken", "Makes a color darker.")}, {func: "saturate($color, $amount)", desc: hr("scss.builtin.saturate", "Makes a color more saturated.")}, {func: "desaturate($color, $amount)", desc: hr("scss.builtin.desaturate", "Makes a color less saturated.")}, {func: "grayscale($color)", desc: hr("scss.builtin.grayscale", "Converts a color to grayscale.")}, {func: "complement($color)", desc: hr("scss.builtin.complement", "Returns the complement of a color.")}, {func: "invert($color)", desc: hr("scss.builtin.invert", "Returns the inverse of a color.")}, {func: "alpha($color)", desc: hr("scss.builtin.alpha", "Gets the opacity component of a color.")}, {func: "opacity($color)", desc: "Gets the alpha component (opacity) of a color."}, {func: "rgba($color, $alpha)", desc: hr("scss.builtin.rgba", "Changes the alpha component for a color.")}, {func: "opacify($color, $amount)", desc: hr("scss.builtin.opacify", "Makes a color more opaque.")}, {func: "fade-in($color, $amount)", desc: hr("scss.builtin.fade-in", "Makes a color more opaque.")}, {func: "transparentize($color, $amount)", desc: hr("scss.builtin.transparentize", "Makes a color more transparent.")}, {func: "fade-out($color, $amount)", desc: hr("scss.builtin.fade-out", "Makes a color more transparent.")}, {func: "adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: hr("scss.builtin.adjust-color", "Increases or decreases one or more components of a color.")}, {func: "scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])", desc: hr("scss.builtin.scale-color", "Fluidly scales one or more properties of a color.")}, {func: "change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: hr("scss.builtin.change-color", "Changes one or more properties of a color.")}, {func: "ie-hex-str($color)", desc: hr("scss.builtin.ie-hex-str", "Converts a color into the format understood by IE filters.")}], t2.selectorFuncs = [{func: "selector-nest($selectors\u2026)", desc: hr("scss.builtin.selector-nest", "Nests selector beneath one another like they would be nested in the stylesheet.")}, {func: "selector-append($selectors\u2026)", desc: hr("scss.builtin.selector-append", "Appends selectors to one another without spaces in between.")}, {func: "selector-extend($selector, $extendee, $extender)", desc: hr("scss.builtin.selector-extend", "Extends $extendee with $extender within $selector.")}, {func: "selector-replace($selector, $original, $replacement)", desc: hr("scss.builtin.selector-replace", "Replaces $original with $replacement within $selector.")}, {func: "selector-unify($selector1, $selector2)", desc: hr("scss.builtin.selector-unify", "Unifies two selectors to produce a selector that matches elements matched by both.")}, {func: "is-superselector($super, $sub)", desc: hr("scss.builtin.is-superselector", "Returns whether $super matches all the elements $sub does, and possibly more.")}, {func: "simple-selectors($selector)", desc: hr("scss.builtin.simple-selectors", "Returns the simple selectors that comprise a compound selector.")}, {func: "selector-parse($selector)", desc: hr("scss.builtin.selector-parse", "Parses a selector into the format returned by &.")}], t2.builtInFuncs = [{func: "unquote($string)", desc: hr("scss.builtin.unquote", "Removes quotes from a string.")}, {func: "quote($string)", desc: hr("scss.builtin.quote", "Adds quotes to a string.")}, {func: "str-length($string)", desc: hr("scss.builtin.str-length", "Returns the number of characters in a string.")}, {func: "str-insert($string, $insert, $index)", desc: hr("scss.builtin.str-insert", "Inserts $insert into $string at $index.")}, {func: "str-index($string, $substring)", desc: hr("scss.builtin.str-index", "Returns the index of the first occurance of $substring in $string.")}, {func: "str-slice($string, $start-at, [$end-at])", desc: hr("scss.builtin.str-slice", "Extracts a substring from $string.")}, {func: "to-upper-case($string)", desc: hr("scss.builtin.to-upper-case", "Converts a string to upper case.")}, {func: "to-lower-case($string)", desc: hr("scss.builtin.to-lower-case", "Converts a string to lower case.")}, {func: "percentage($number)", desc: hr("scss.builtin.percentage", "Converts a unitless number to a percentage."), type: "percentage"}, {func: "round($number)", desc: hr("scss.builtin.round", "Rounds a number to the nearest whole number.")}, {func: "ceil($number)", desc: hr("scss.builtin.ceil", "Rounds a number up to the next whole number.")}, {func: "floor($number)", desc: hr("scss.builtin.floor", "Rounds a number down to the previous whole number.")}, {func: "abs($number)", desc: hr("scss.builtin.abs", "Returns the absolute value of a number.")}, {func: "min($numbers)", desc: hr("scss.builtin.min", "Finds the minimum of several numbers.")}, {func: "max($numbers)", desc: hr("scss.builtin.max", "Finds the maximum of several numbers.")}, {func: "random([$limit])", desc: hr("scss.builtin.random", "Returns a random number.")}, {func: "length($list)", desc: hr("scss.builtin.length", "Returns the length of a list.")}, {func: "nth($list, $n)", desc: hr("scss.builtin.nth", "Returns a specific item in a list.")}, {func: "set-nth($list, $n, $value)", desc: hr("scss.builtin.set-nth", "Replaces the nth item in a list.")}, {func: "join($list1, $list2, [$separator])", desc: hr("scss.builtin.join", "Joins together two lists into one.")}, {func: "append($list1, $val, [$separator])", desc: hr("scss.builtin.append", "Appends a single value onto the end of a list.")}, {func: "zip($lists)", desc: hr("scss.builtin.zip", "Combines several lists into a single multidimensional list.")}, {func: "index($list, $value)", desc: hr("scss.builtin.index", "Returns the position of a value within a list.")}, {func: "list-separator(#list)", desc: hr("scss.builtin.list-separator", "Returns the separator of a list.")}, {func: "map-get($map, $key)", desc: hr("scss.builtin.map-get", "Returns the value in a map associated with a given key.")}, {func: "map-merge($map1, $map2)", desc: hr("scss.builtin.map-merge", "Merges two maps together into a new map.")}, {func: "map-remove($map, $keys)", desc: hr("scss.builtin.map-remove", "Returns a new map with keys removed.")}, {func: "map-keys($map)", desc: hr("scss.builtin.map-keys", "Returns a list of all keys in a map.")}, {func: "map-values($map)", desc: hr("scss.builtin.map-values", "Returns a list of all values in a map.")}, {func: "map-has-key($map, $key)", desc: hr("scss.builtin.map-has-key", "Returns whether a map has a value associated with a given key.")}, {func: "keywords($args)", desc: hr("scss.builtin.keywords", "Returns the keywords passed to a function that takes variable arguments.")}, {func: "feature-exists($feature)", desc: hr("scss.builtin.feature-exists", "Returns whether a feature exists in the current Sass runtime.")}, {func: "variable-exists($name)", desc: hr("scss.builtin.variable-exists", "Returns whether a variable with the given name exists in the current scope.")}, {func: "global-variable-exists($name)", desc: hr("scss.builtin.global-variable-exists", "Returns whether a variable with the given name exists in the global scope.")}, {func: "function-exists($name)", desc: hr("scss.builtin.function-exists", "Returns whether a function with the given name exists.")}, {func: "mixin-exists($name)", desc: hr("scss.builtin.mixin-exists", "Returns whether a mixin with the given name exists.")}, {func: "inspect($value)", desc: hr("scss.builtin.inspect", "Returns the string representation of a value as it would be represented in Sass.")}, {func: "type-of($value)", desc: hr("scss.builtin.type-of", "Returns the type of a value.")}, {func: "unit($number)", desc: hr("scss.builtin.unit", "Returns the unit(s) associated with a number.")}, {func: "unitless($number)", desc: hr("scss.builtin.unitless", "Returns whether a number has units.")}, {func: "comparable($number1, $number2)", desc: hr("scss.builtin.comparable", "Returns whether two numbers can be added, subtracted, or compared.")}, {func: "call($name, $args\u2026)", desc: hr("scss.builtin.call", "Dynamically calls a Sass function.")}], t2.scssAtDirectives = [{label: "@extend", documentation: hr("scss.builtin.@extend", "Inherits the styles of another selector."), kind: zn.Keyword}, {label: "@at-root", documentation: hr("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."), kind: zn.Keyword}, {label: "@debug", documentation: hr("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."), kind: zn.Keyword}, {label: "@warn", documentation: hr("scss.builtin.@warn", "Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."), kind: zn.Keyword}, {label: "@error", documentation: hr("scss.builtin.@error", "Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."), kind: zn.Keyword}, {label: "@if", documentation: hr("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."), insertText: "@if ${1:expr} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@for", documentation: hr("scss.builtin.@for", "For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."), insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@each", documentation: hr("scss.builtin.@each", "Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."), insertText: "@each \\$${1:var} in ${2:list} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@while", documentation: hr("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."), insertText: "@while ${1:condition} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@mixin", documentation: hr("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."), insertText: "@mixin ${1:name} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@include", documentation: hr("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."), kind: zn.Keyword}, {label: "@function", documentation: hr("scss.builtin.@function", "Defines complex operations that can be re-used throughout stylesheets."), kind: zn.Keyword}], t2.scssModuleLoaders = [{label: "@use", documentation: hr("scss.builtin.@use", "Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/use"}], insertText: "@use '$0';", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@forward", documentation: hr("scss.builtin.@forward", "Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/forward"}], insertText: "@forward '$0';", insertTextFormat: Bn.Snippet, kind: zn.Keyword}], t2.scssModuleBuiltIns = [{label: "sass:math", documentation: hr("scss.builtin.sass:math", "Provides functions that operate on numbers."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/math"}]}, {label: "sass:string", documentation: hr("scss.builtin.sass:string", "Makes it easy to combine, search, or split apart strings."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/string"}]}, {label: "sass:color", documentation: hr("scss.builtin.sass:color", "Generates new colors based on existing ones, making it easy to build color themes."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/color"}]}, {label: "sass:list", documentation: hr("scss.builtin.sass:list", "Lets you access and modify values in lists."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/list"}]}, {label: "sass:map", documentation: hr("scss.builtin.sass:map", "Makes it possible to look up the value associated with a key in a map, and much more."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/map"}]}, {label: "sass:selector", documentation: hr("scss.builtin.sass:selector", "Provides access to Sass\u2019s powerful selector engine."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/selector"}]}, {label: "sass:meta", documentation: hr("scss.builtin.sass:meta", "Exposes the details of Sass\u2019s inner workings."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/meta"}]}], t2; + }, t2.variableDefaults = {$red: "1", $green: "2", $blue: "3", $alpha: "1.0", $color: "#000000", $weight: "0.5", $hue: "0", $saturation: "0%", $lightness: "0%", $degrees: "0", $amount: "0", $string: '""', $substring: '"s"', $number: "0", $limit: "1"}, t2.colorProposals = [{func: "red($color)", desc: ho("scss.builtin.red", "Gets the red component of a color.")}, {func: "green($color)", desc: ho("scss.builtin.green", "Gets the green component of a color.")}, {func: "blue($color)", desc: ho("scss.builtin.blue", "Gets the blue component of a color.")}, {func: "mix($color, $color, [$weight])", desc: ho("scss.builtin.mix", "Mixes two colors together.")}, {func: "hue($color)", desc: ho("scss.builtin.hue", "Gets the hue component of a color.")}, {func: "saturation($color)", desc: ho("scss.builtin.saturation", "Gets the saturation component of a color.")}, {func: "lightness($color)", desc: ho("scss.builtin.lightness", "Gets the lightness component of a color.")}, {func: "adjust-hue($color, $degrees)", desc: ho("scss.builtin.adjust-hue", "Changes the hue of a color.")}, {func: "lighten($color, $amount)", desc: ho("scss.builtin.lighten", "Makes a color lighter.")}, {func: "darken($color, $amount)", desc: ho("scss.builtin.darken", "Makes a color darker.")}, {func: "saturate($color, $amount)", desc: ho("scss.builtin.saturate", "Makes a color more saturated.")}, {func: "desaturate($color, $amount)", desc: ho("scss.builtin.desaturate", "Makes a color less saturated.")}, {func: "grayscale($color)", desc: ho("scss.builtin.grayscale", "Converts a color to grayscale.")}, {func: "complement($color)", desc: ho("scss.builtin.complement", "Returns the complement of a color.")}, {func: "invert($color)", desc: ho("scss.builtin.invert", "Returns the inverse of a color.")}, {func: "alpha($color)", desc: ho("scss.builtin.alpha", "Gets the opacity component of a color.")}, {func: "opacity($color)", desc: "Gets the alpha component (opacity) of a color."}, {func: "rgba($color, $alpha)", desc: ho("scss.builtin.rgba", "Changes the alpha component for a color.")}, {func: "opacify($color, $amount)", desc: ho("scss.builtin.opacify", "Makes a color more opaque.")}, {func: "fade-in($color, $amount)", desc: ho("scss.builtin.fade-in", "Makes a color more opaque.")}, {func: "transparentize($color, $amount)", desc: ho("scss.builtin.transparentize", "Makes a color more transparent.")}, {func: "fade-out($color, $amount)", desc: ho("scss.builtin.fade-out", "Makes a color more transparent.")}, {func: "adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: ho("scss.builtin.adjust-color", "Increases or decreases one or more components of a color.")}, {func: "scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])", desc: ho("scss.builtin.scale-color", "Fluidly scales one or more properties of a color.")}, {func: "change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: ho("scss.builtin.change-color", "Changes one or more properties of a color.")}, {func: "ie-hex-str($color)", desc: ho("scss.builtin.ie-hex-str", "Converts a color into the format understood by IE filters.")}], t2.selectorFuncs = [{func: "selector-nest($selectors\u2026)", desc: ho("scss.builtin.selector-nest", "Nests selector beneath one another like they would be nested in the stylesheet.")}, {func: "selector-append($selectors\u2026)", desc: ho("scss.builtin.selector-append", "Appends selectors to one another without spaces in between.")}, {func: "selector-extend($selector, $extendee, $extender)", desc: ho("scss.builtin.selector-extend", "Extends $extendee with $extender within $selector.")}, {func: "selector-replace($selector, $original, $replacement)", desc: ho("scss.builtin.selector-replace", "Replaces $original with $replacement within $selector.")}, {func: "selector-unify($selector1, $selector2)", desc: ho("scss.builtin.selector-unify", "Unifies two selectors to produce a selector that matches elements matched by both.")}, {func: "is-superselector($super, $sub)", desc: ho("scss.builtin.is-superselector", "Returns whether $super matches all the elements $sub does, and possibly more.")}, {func: "simple-selectors($selector)", desc: ho("scss.builtin.simple-selectors", "Returns the simple selectors that comprise a compound selector.")}, {func: "selector-parse($selector)", desc: ho("scss.builtin.selector-parse", "Parses a selector into the format returned by &.")}], t2.builtInFuncs = [{func: "unquote($string)", desc: ho("scss.builtin.unquote", "Removes quotes from a string.")}, {func: "quote($string)", desc: ho("scss.builtin.quote", "Adds quotes to a string.")}, {func: "str-length($string)", desc: ho("scss.builtin.str-length", "Returns the number of characters in a string.")}, {func: "str-insert($string, $insert, $index)", desc: ho("scss.builtin.str-insert", "Inserts $insert into $string at $index.")}, {func: "str-index($string, $substring)", desc: ho("scss.builtin.str-index", "Returns the index of the first occurance of $substring in $string.")}, {func: "str-slice($string, $start-at, [$end-at])", desc: ho("scss.builtin.str-slice", "Extracts a substring from $string.")}, {func: "to-upper-case($string)", desc: ho("scss.builtin.to-upper-case", "Converts a string to upper case.")}, {func: "to-lower-case($string)", desc: ho("scss.builtin.to-lower-case", "Converts a string to lower case.")}, {func: "percentage($number)", desc: ho("scss.builtin.percentage", "Converts a unitless number to a percentage."), type: "percentage"}, {func: "round($number)", desc: ho("scss.builtin.round", "Rounds a number to the nearest whole number.")}, {func: "ceil($number)", desc: ho("scss.builtin.ceil", "Rounds a number up to the next whole number.")}, {func: "floor($number)", desc: ho("scss.builtin.floor", "Rounds a number down to the previous whole number.")}, {func: "abs($number)", desc: ho("scss.builtin.abs", "Returns the absolute value of a number.")}, {func: "min($numbers)", desc: ho("scss.builtin.min", "Finds the minimum of several numbers.")}, {func: "max($numbers)", desc: ho("scss.builtin.max", "Finds the maximum of several numbers.")}, {func: "random([$limit])", desc: ho("scss.builtin.random", "Returns a random number.")}, {func: "length($list)", desc: ho("scss.builtin.length", "Returns the length of a list.")}, {func: "nth($list, $n)", desc: ho("scss.builtin.nth", "Returns a specific item in a list.")}, {func: "set-nth($list, $n, $value)", desc: ho("scss.builtin.set-nth", "Replaces the nth item in a list.")}, {func: "join($list1, $list2, [$separator])", desc: ho("scss.builtin.join", "Joins together two lists into one.")}, {func: "append($list1, $val, [$separator])", desc: ho("scss.builtin.append", "Appends a single value onto the end of a list.")}, {func: "zip($lists)", desc: ho("scss.builtin.zip", "Combines several lists into a single multidimensional list.")}, {func: "index($list, $value)", desc: ho("scss.builtin.index", "Returns the position of a value within a list.")}, {func: "list-separator(#list)", desc: ho("scss.builtin.list-separator", "Returns the separator of a list.")}, {func: "map-get($map, $key)", desc: ho("scss.builtin.map-get", "Returns the value in a map associated with a given key.")}, {func: "map-merge($map1, $map2)", desc: ho("scss.builtin.map-merge", "Merges two maps together into a new map.")}, {func: "map-remove($map, $keys)", desc: ho("scss.builtin.map-remove", "Returns a new map with keys removed.")}, {func: "map-keys($map)", desc: ho("scss.builtin.map-keys", "Returns a list of all keys in a map.")}, {func: "map-values($map)", desc: ho("scss.builtin.map-values", "Returns a list of all values in a map.")}, {func: "map-has-key($map, $key)", desc: ho("scss.builtin.map-has-key", "Returns whether a map has a value associated with a given key.")}, {func: "keywords($args)", desc: ho("scss.builtin.keywords", "Returns the keywords passed to a function that takes variable arguments.")}, {func: "feature-exists($feature)", desc: ho("scss.builtin.feature-exists", "Returns whether a feature exists in the current Sass runtime.")}, {func: "variable-exists($name)", desc: ho("scss.builtin.variable-exists", "Returns whether a variable with the given name exists in the current scope.")}, {func: "global-variable-exists($name)", desc: ho("scss.builtin.global-variable-exists", "Returns whether a variable with the given name exists in the global scope.")}, {func: "function-exists($name)", desc: ho("scss.builtin.function-exists", "Returns whether a function with the given name exists.")}, {func: "mixin-exists($name)", desc: ho("scss.builtin.mixin-exists", "Returns whether a mixin with the given name exists.")}, {func: "inspect($value)", desc: ho("scss.builtin.inspect", "Returns the string representation of a value as it would be represented in Sass.")}, {func: "type-of($value)", desc: ho("scss.builtin.type-of", "Returns the type of a value.")}, {func: "unit($number)", desc: ho("scss.builtin.unit", "Returns the unit(s) associated with a number.")}, {func: "unitless($number)", desc: ho("scss.builtin.unitless", "Returns whether a number has units.")}, {func: "comparable($number1, $number2)", desc: ho("scss.builtin.comparable", "Returns whether two numbers can be added, subtracted, or compared.")}, {func: "call($name, $args\u2026)", desc: ho("scss.builtin.call", "Dynamically calls a Sass function.")}], t2.scssAtDirectives = [{label: "@extend", documentation: ho("scss.builtin.@extend", "Inherits the styles of another selector."), kind: zn.Keyword}, {label: "@at-root", documentation: ho("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."), kind: zn.Keyword}, {label: "@debug", documentation: ho("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."), kind: zn.Keyword}, {label: "@warn", documentation: ho("scss.builtin.@warn", "Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."), kind: zn.Keyword}, {label: "@error", documentation: ho("scss.builtin.@error", "Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."), kind: zn.Keyword}, {label: "@if", documentation: ho("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."), insertText: "@if ${1:expr} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@for", documentation: ho("scss.builtin.@for", "For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."), insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@each", documentation: ho("scss.builtin.@each", "Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."), insertText: "@each \\$${1:var} in ${2:list} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@while", documentation: ho("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."), insertText: "@while ${1:condition} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@mixin", documentation: ho("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."), insertText: "@mixin ${1:name} {\n $0\n}", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@include", documentation: ho("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."), kind: zn.Keyword}, {label: "@function", documentation: ho("scss.builtin.@function", "Defines complex operations that can be re-used throughout stylesheets."), kind: zn.Keyword}], t2.scssModuleLoaders = [{label: "@use", documentation: ho("scss.builtin.@use", "Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/use"}], insertText: "@use '$0';", insertTextFormat: Bn.Snippet, kind: zn.Keyword}, {label: "@forward", documentation: ho("scss.builtin.@forward", "Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/forward"}], insertText: "@forward '$0';", insertTextFormat: Bn.Snippet, kind: zn.Keyword}], t2.scssModuleBuiltIns = [{label: "sass:math", documentation: ho("scss.builtin.sass:math", "Provides functions that operate on numbers."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/math"}]}, {label: "sass:string", documentation: ho("scss.builtin.sass:string", "Makes it easy to combine, search, or split apart strings."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/string"}]}, {label: "sass:color", documentation: ho("scss.builtin.sass:color", "Generates new colors based on existing ones, making it easy to build color themes."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/color"}]}, {label: "sass:list", documentation: ho("scss.builtin.sass:list", "Lets you access and modify values in lists."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/list"}]}, {label: "sass:map", documentation: ho("scss.builtin.sass:map", "Makes it possible to look up the value associated with a key in a map, and much more."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/map"}]}, {label: "sass:selector", documentation: ho("scss.builtin.sass:selector", "Provides access to Sass\u2019s powerful selector engine."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/selector"}]}, {label: "sass:meta", documentation: ho("scss.builtin.sass:meta", "Exposes the details of Sass\u2019s inner workings."), references: [{name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/meta"}]}], t2; }(Wi); - function pr(e2) { + function po(e2) { e2.forEach(function(e3) { if (e3.documentation && e3.references && e3.references.length > 0) { var t2 = typeof e3.documentation == "string" ? {kind: "markdown", value: e3.documentation} : {kind: "markdown", value: e3.documentation.value}; @@ -20932,7 +20932,7 @@ } }); } - var mr = function() { + var mo = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -20947,30 +20947,30 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), gr = "/".charCodeAt(0), fr = "\n".charCodeAt(0), br = "\r".charCodeAt(0), _r = "\f".charCodeAt(0), vr = "`".charCodeAt(0), wr = ".".charCodeAt(0), yr = i.CustomToken, Cr = yr++, xr = function(e2) { + }(), go = "/".charCodeAt(0), fo = "\n".charCodeAt(0), bo = "\r".charCodeAt(0), _o = "\f".charCodeAt(0), vo = "`".charCodeAt(0), wo = ".".charCodeAt(0), yo = i.CustomToken, Co = yo++, xo = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } - return mr(t2, e2), t2.prototype.scanNext = function(t3) { + return mo(t2, e2), t2.prototype.scanNext = function(t3) { var n2 = this.escapedJavaScript(); - return n2 !== null ? this.finishToken(t3, n2) : this.stream.advanceIfChars([wr, wr, wr]) ? this.finishToken(t3, Cr) : e2.prototype.scanNext.call(this, t3); + return n2 !== null ? this.finishToken(t3, n2) : this.stream.advanceIfChars([wo, wo, wo]) ? this.finishToken(t3, Co) : e2.prototype.scanNext.call(this, t3); }, t2.prototype.comment = function() { - return !!e2.prototype.comment.call(this) || !(this.inURL || !this.stream.advanceIfChars([gr, gr])) && (this.stream.advanceWhileChar(function(e3) { + return !!e2.prototype.comment.call(this) || !(this.inURL || !this.stream.advanceIfChars([go, go])) && (this.stream.advanceWhileChar(function(e3) { switch (e3) { - case fr: - case br: - case _r: + case fo: + case bo: + case _o: return false; default: return true; } }), true); }, t2.prototype.escapedJavaScript = function() { - return this.stream.peekChar() === vr ? (this.stream.advance(1), this.stream.advanceWhileChar(function(e3) { - return e3 !== vr; - }), this.stream.advanceIfChar(vr) ? i.EscapedJavaScript : i.BadEscapedJavaScript) : null; + return this.stream.peekChar() === vo ? (this.stream.advance(1), this.stream.advanceWhileChar(function(e3) { + return e3 !== vo; + }), this.stream.advanceIfChar(vo) ? i.EscapedJavaScript : i.BadEscapedJavaScript) : null; }, t2; - }(G), Sr = function() { + }(G), So = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -20985,11 +20985,11 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), kr = function(e2) { + }(), ko = function(e2) { function t2() { - return e2.call(this, new xr()) || this; + return e2.call(this, new xo()) || this; } - return Sr(t2, e2), t2.prototype._parseStylesheetStatement = function(t3) { + return So(t2, e2), t2.prototype._parseStylesheetStatement = function(t3) { return t3 === void 0 && (t3 = false), this.peek(i.AtKeyword) ? this._parseVariableDeclaration() || this._parsePlugin() || e2.prototype._parseStylesheetAtStatement.call(this, t3) : this._tryParseMixinDeclaration() || this._tryParseMixinReference() || this._parseFunction() || this._parseRuleset(true); }, t2.prototype._parseImport = function() { if (!this.peekKeyword("@import") && !this.peekKeyword("@import-once")) @@ -21059,17 +21059,17 @@ t3 = false; return !t3; }, t2.prototype._parseLookupValue = function() { - var e3 = this.create(re), t3 = this.mark(); + var e3 = this.create(oe), t3 = this.mark(); return this.accept(i.BracketL) && ((e3.addChild(this._parseVariable(false, true)) || e3.addChild(this._parsePropertyIdentifier())) && this.accept(i.BracketR) || this.accept(i.BracketR)) ? e3 : (this.restoreAtMark(t3), null); }, t2.prototype._parseVariable = function(e3, t3) { e3 === void 0 && (e3 = false), t3 === void 0 && (t3 = false); var n2 = !e3 && this.peekDelim("$"); if (!this.peekDelim("@") && !n2 && !this.peek(i.AtKeyword)) return null; - for (var o2 = this.create(rt), r2 = this.mark(); this.acceptDelim("@") || !e3 && this.acceptDelim("$"); ) + for (var r2 = this.create(ot), o2 = this.mark(); this.acceptDelim("@") || !e3 && this.acceptDelim("$"); ) if (this.hasWhitespace()) - return this.restoreAtMark(r2), null; - return (this.accept(i.AtKeyword) || this.accept(i.Ident)) && (t3 || !this.peek(i.BracketL) || this._addLookupChildren(o2)) ? o2 : (this.restoreAtMark(r2), null); + return this.restoreAtMark(o2), null; + return (this.accept(i.AtKeyword) || this.accept(i.Ident)) && (t3 || !this.peek(i.BracketL) || this._addLookupChildren(r2)) ? r2 : (this.restoreAtMark(o2), null); }, t2.prototype._parseTermExpression = function() { return this._parseVariable() || this._parseEscaped() || e2.prototype._parseTermExpression.call(this) || this._tryParseMixinReference(false); }, t2.prototype._parseEscaped = function() { @@ -21111,10 +21111,10 @@ var t3 = this.create(ue), n2 = false; for (e3 && (n2 = t3.addChild(this._parseCombinator())); t3.addChild(this._parseSimpleSelector()); ) { n2 = true; - var o2 = this.mark(); + var r2 = this.mark(); if (t3.addChild(this._parseGuard()) && this.peek(i.CurlyL)) break; - this.restoreAtMark(o2), t3.addChild(this._parseCombinator()); + this.restoreAtMark(r2), t3.addChild(this._parseCombinator()); } return n2 ? this.finish(t3) : null; }, t2.prototype._parseSelectorCombinator = function() { @@ -21141,16 +21141,16 @@ }, t2.prototype.peekInterpolatedIdent = function() { return this.peek(i.Ident) || this.peekDelim("@") || this.peekDelim("$") || this.peekDelim("-"); }, t2.prototype._acceptInterpolatedIdent = function(e3, t3) { - for (var n2 = this, o2 = false, r2 = function() { + for (var n2 = this, r2 = false, o2 = function() { var e4 = n2.mark(); return n2.acceptDelim("-") && (n2.hasWhitespace() || n2.acceptDelim("-"), n2.hasWhitespace()) ? (n2.restoreAtMark(e4), null) : n2._parseInterpolation(); }, s2 = t3 ? function() { return n2.acceptRegexp(t3); } : function() { return n2.accept(i.Ident); - }; (s2() || e3.addChild(this._parseInterpolation() || this.try(r2))) && (o2 = true, !this.hasWhitespace()); ) + }; (s2() || e3.addChild(this._parseInterpolation() || this.try(o2))) && (r2 = true, !this.hasWhitespace()); ) ; - return o2; + return r2; }, t2.prototype._parseInterpolation = function() { var e3 = this.mark(); if (this.peekDelim("@") || this.peekDelim("$")) { @@ -21206,14 +21206,14 @@ return !t3.addChild(this._parseVariable(true)) || !this.hasWhitespace() && this.accept(i.ParenthesisL) ? this.accept(i.ParenthesisR) ? this.finish(t3) : this.finish(t3, xt.RightParenthesisExpected) : (this.restoreAtMark(e3), null); }, t2.prototype._tryParseMixinReference = function(e3) { e3 === void 0 && (e3 = true); - for (var t3 = this.mark(), n2 = this.create(ct), o2 = this._parseMixinDeclarationIdentifier(); o2; ) { + for (var t3 = this.mark(), n2 = this.create(ct), r2 = this._parseMixinDeclarationIdentifier(); r2; ) { this.acceptDelim(">"); - var r2 = this._parseMixinDeclarationIdentifier(); - if (!r2) + var o2 = this._parseMixinDeclarationIdentifier(); + if (!o2) break; - n2.getNamespaces().addChild(o2), o2 = r2; + n2.getNamespaces().addChild(r2), r2 = o2; } - if (!n2.setIdentifier(o2)) + if (!n2.setIdentifier(r2)) return this.restoreAtMark(t3), null; var s2 = false; if (this.accept(i.ParenthesisL)) { @@ -21224,9 +21224,9 @@ } if (!this.accept(i.ParenthesisR)) return this.finish(n2, xt.RightParenthesisExpected); - o2.referenceTypes = [ee.Mixin]; + r2.referenceTypes = [ee.Mixin]; } else - o2.referenceTypes = [ee.Mixin, ee.Rule]; + r2.referenceTypes = [ee.Mixin, ee.Rule]; return this.peek(i.BracketL) ? e3 || this._addLookupChildren(n2) : n2.addChild(this._parsePrio()), s2 || this.peek(i.SemiColon) || this.peek(i.CurlyR) || this.peek(i.EOF) ? this.finish(n2) : (this.restoreAtMark(t3), null); }, t2.prototype._parseMixinArgument = function() { var e3 = this.create(Ce), t3 = this.mark(), n2 = this._parseVariable(); @@ -21234,15 +21234,15 @@ }, t2.prototype._parseMixinParameter = function() { var e3 = this.create(ye); if (this.peekKeyword("@rest")) { - var t3 = this.create(re); - return this.consumeToken(), this.accept(Cr) ? (e3.setIdentifier(this.finish(t3)), this.finish(e3)) : this.finish(e3, xt.DotExpected, [], [i.Comma, i.ParenthesisR]); + var t3 = this.create(oe); + return this.consumeToken(), this.accept(Co) ? (e3.setIdentifier(this.finish(t3)), this.finish(e3)) : this.finish(e3, xt.DotExpected, [], [i.Comma, i.ParenthesisR]); } - if (this.peek(Cr)) { - var n2 = this.create(re); + if (this.peek(Co)) { + var n2 = this.create(oe); return this.consumeToken(), e3.setIdentifier(this.finish(n2)), this.finish(e3); } - var o2 = false; - return e3.setIdentifier(this._parseVariable()) && (this.accept(i.Colon), o2 = true), e3.setDefaultValue(this._parseDetachedRuleSet() || this._parseExpr(true)) || o2 ? this.finish(e3) : null; + var r2 = false; + return e3.setIdentifier(this._parseVariable()) && (this.accept(i.Colon), r2 = true), e3.setDefaultValue(this._parseDetachedRuleSet() || this._parseExpr(true)) || r2 ? this.finish(e3) : null; }, t2.prototype._parseGuard = function() { if (!this.peekIdent("when")) return null; @@ -21280,12 +21280,12 @@ var t3 = this.mark(), n2 = e2.prototype._parseURLArgument.call(this); if (!n2 || !this.peek(i.ParenthesisR)) { this.restoreAtMark(t3); - var o2 = this.create(re); - return o2.addChild(this._parseBinaryExpr()), this.finish(o2); + var r2 = this.create(oe); + return r2.addChild(this._parseBinaryExpr()), this.finish(r2); } return n2; }, t2; - }(on), Er = function() { + }(rn), Eo = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -21300,36 +21300,36 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), Tr = wt(), Lr = function(e2) { + }(), To = wt(), Lo = function(e2) { function t2(t3, n2) { return e2.call(this, "@", t3, n2) || this; } - return Er(t2, e2), t2.prototype.createFunctionProposals = function(e3, t3, n2, i2) { - for (var o2 = 0, r2 = e3; o2 < r2.length; o2++) { - var s2 = r2[o2], a2 = {label: s2.name, detail: s2.example, documentation: s2.description, textEdit: Cn.replace(this.getCompletionRange(t3), s2.name + "($0)"), insertTextFormat: Bn.Snippet, kind: zn.Function}; + return Eo(t2, e2), t2.prototype.createFunctionProposals = function(e3, t3, n2, i2) { + for (var r2 = 0, o2 = e3; r2 < o2.length; r2++) { + var s2 = o2[r2], a2 = {label: s2.name, detail: s2.example, documentation: s2.description, textEdit: Cn.replace(this.getCompletionRange(t3), s2.name + "($0)"), insertTextFormat: Bn.Snippet, kind: zn.Function}; n2 && (a2.sortText = "z"), i2.items.push(a2); } return i2; - }, t2.prototype.getTermProposals = function(n2, i2, o2) { - var r2 = t2.builtInProposals; - return n2 && (r2 = r2.filter(function(e3) { + }, t2.prototype.getTermProposals = function(n2, i2, r2) { + var o2 = t2.builtInProposals; + return n2 && (o2 = o2.filter(function(e3) { return !e3.type || !n2.restrictions || n2.restrictions.indexOf(e3.type) !== -1; - })), this.createFunctionProposals(r2, i2, true, o2), e2.prototype.getTermProposals.call(this, n2, i2, o2); - }, t2.prototype.getColorProposals = function(n2, i2, o2) { - return this.createFunctionProposals(t2.colorProposals, i2, false, o2), e2.prototype.getColorProposals.call(this, n2, i2, o2); + })), this.createFunctionProposals(o2, i2, true, r2), e2.prototype.getTermProposals.call(this, n2, i2, r2); + }, t2.prototype.getColorProposals = function(n2, i2, r2) { + return this.createFunctionProposals(t2.colorProposals, i2, false, r2), e2.prototype.getColorProposals.call(this, n2, i2, r2); }, t2.prototype.getCompletionsForDeclarationProperty = function(t3, n2) { return this.getCompletionsForSelector(null, true, n2), e2.prototype.getCompletionsForDeclarationProperty.call(this, t3, n2); - }, t2.builtInProposals = [{name: "if", example: "if(condition, trueValue [, falseValue]);", description: Tr("less.builtin.if", "returns one of two values depending on a condition.")}, {name: "boolean", example: "boolean(condition);", description: Tr("less.builtin.boolean", '"store" a boolean test for later evaluation in a guard or if().')}, {name: "length", example: "length(@list);", description: Tr("less.builtin.length", "returns the number of elements in a value list")}, {name: "extract", example: "extract(@list, index);", description: Tr("less.builtin.extract", "returns a value at the specified position in the list")}, {name: "range", example: "range([start, ] end [, step]);", description: Tr("less.builtin.range", "generate a list spanning a range of values")}, {name: "each", example: "each(@list, ruleset);", description: Tr("less.builtin.each", "bind the evaluation of a ruleset to each member of a list.")}, {name: "escape", example: "escape(@string);", description: Tr("less.builtin.escape", "URL encodes a string")}, {name: "e", example: "e(@string);", description: Tr("less.builtin.e", "escape string content")}, {name: "replace", example: "replace(@string, @pattern, @replacement[, @flags]);", description: Tr("less.builtin.replace", "string replace")}, {name: "unit", example: "unit(@dimension, [@unit: '']);", description: Tr("less.builtin.unit", "remove or change the unit of a dimension")}, {name: "color", example: "color(@string);", description: Tr("less.builtin.color", "parses a string to a color"), type: "color"}, {name: "convert", example: "convert(@value, unit);", description: Tr("less.builtin.convert", "converts numbers from one type into another")}, {name: "data-uri", example: "data-uri([mimetype,] url);", description: Tr("less.builtin.data-uri", "inlines a resource and falls back to `url()`"), type: "url"}, {name: "abs", description: Tr("less.builtin.abs", "absolute value of a number"), example: "abs(number);"}, {name: "acos", description: Tr("less.builtin.acos", "arccosine - inverse of cosine function"), example: "acos(number);"}, {name: "asin", description: Tr("less.builtin.asin", "arcsine - inverse of sine function"), example: "asin(number);"}, {name: "ceil", example: "ceil(@number);", description: Tr("less.builtin.ceil", "rounds up to an integer")}, {name: "cos", description: Tr("less.builtin.cos", "cosine function"), example: "cos(number);"}, {name: "floor", description: Tr("less.builtin.floor", "rounds down to an integer"), example: "floor(@number);"}, {name: "percentage", description: Tr("less.builtin.percentage", "converts to a %, e.g. 0.5 > 50%"), example: "percentage(@number);", type: "percentage"}, {name: "round", description: Tr("less.builtin.round", "rounds a number to a number of places"), example: "round(number, [places: 0]);"}, {name: "sqrt", description: Tr("less.builtin.sqrt", "calculates square root of a number"), example: "sqrt(number);"}, {name: "sin", description: Tr("less.builtin.sin", "sine function"), example: "sin(number);"}, {name: "tan", description: Tr("less.builtin.tan", "tangent function"), example: "tan(number);"}, {name: "atan", description: Tr("less.builtin.atan", "arctangent - inverse of tangent function"), example: "atan(number);"}, {name: "pi", description: Tr("less.builtin.pi", "returns pi"), example: "pi();"}, {name: "pow", description: Tr("less.builtin.pow", "first argument raised to the power of the second argument"), example: "pow(@base, @exponent);"}, {name: "mod", description: Tr("less.builtin.mod", "first argument modulus second argument"), example: "mod(number, number);"}, {name: "min", description: Tr("less.builtin.min", "returns the lowest of one or more values"), example: "min(@x, @y);"}, {name: "max", description: Tr("less.builtin.max", "returns the lowest of one or more values"), example: "max(@x, @y);"}], t2.colorProposals = [{name: "argb", example: "argb(@color);", description: Tr("less.builtin.argb", "creates a #AARRGGBB")}, {name: "hsl", example: "hsl(@hue, @saturation, @lightness);", description: Tr("less.builtin.hsl", "creates a color")}, {name: "hsla", example: "hsla(@hue, @saturation, @lightness, @alpha);", description: Tr("less.builtin.hsla", "creates a color")}, {name: "hsv", example: "hsv(@hue, @saturation, @value);", description: Tr("less.builtin.hsv", "creates a color")}, {name: "hsva", example: "hsva(@hue, @saturation, @value, @alpha);", description: Tr("less.builtin.hsva", "creates a color")}, {name: "hue", example: "hue(@color);", description: Tr("less.builtin.hue", "returns the `hue` channel of `@color` in the HSL space")}, {name: "saturation", example: "saturation(@color);", description: Tr("less.builtin.saturation", "returns the `saturation` channel of `@color` in the HSL space")}, {name: "lightness", example: "lightness(@color);", description: Tr("less.builtin.lightness", "returns the `lightness` channel of `@color` in the HSL space")}, {name: "hsvhue", example: "hsvhue(@color);", description: Tr("less.builtin.hsvhue", "returns the `hue` channel of `@color` in the HSV space")}, {name: "hsvsaturation", example: "hsvsaturation(@color);", description: Tr("less.builtin.hsvsaturation", "returns the `saturation` channel of `@color` in the HSV space")}, {name: "hsvvalue", example: "hsvvalue(@color);", description: Tr("less.builtin.hsvvalue", "returns the `value` channel of `@color` in the HSV space")}, {name: "red", example: "red(@color);", description: Tr("less.builtin.red", "returns the `red` channel of `@color`")}, {name: "green", example: "green(@color);", description: Tr("less.builtin.green", "returns the `green` channel of `@color`")}, {name: "blue", example: "blue(@color);", description: Tr("less.builtin.blue", "returns the `blue` channel of `@color`")}, {name: "alpha", example: "alpha(@color);", description: Tr("less.builtin.alpha", "returns the `alpha` channel of `@color`")}, {name: "luma", example: "luma(@color);", description: Tr("less.builtin.luma", "returns the `luma` value (perceptual brightness) of `@color`")}, {name: "saturate", example: "saturate(@color, 10%);", description: Tr("less.builtin.saturate", "return `@color` 10% points more saturated")}, {name: "desaturate", example: "desaturate(@color, 10%);", description: Tr("less.builtin.desaturate", "return `@color` 10% points less saturated")}, {name: "lighten", example: "lighten(@color, 10%);", description: Tr("less.builtin.lighten", "return `@color` 10% points lighter")}, {name: "darken", example: "darken(@color, 10%);", description: Tr("less.builtin.darken", "return `@color` 10% points darker")}, {name: "fadein", example: "fadein(@color, 10%);", description: Tr("less.builtin.fadein", "return `@color` 10% points less transparent")}, {name: "fadeout", example: "fadeout(@color, 10%);", description: Tr("less.builtin.fadeout", "return `@color` 10% points more transparent")}, {name: "fade", example: "fade(@color, 50%);", description: Tr("less.builtin.fade", "return `@color` with 50% transparency")}, {name: "spin", example: "spin(@color, 10);", description: Tr("less.builtin.spin", "return `@color` with a 10 degree larger in hue")}, {name: "mix", example: "mix(@color1, @color2, [@weight: 50%]);", description: Tr("less.builtin.mix", "return a mix of `@color1` and `@color2`")}, {name: "greyscale", example: "greyscale(@color);", description: Tr("less.builtin.greyscale", "returns a grey, 100% desaturated color")}, {name: "contrast", example: "contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);", description: Tr("less.builtin.contrast", "return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")}, {name: "multiply", example: "multiply(@color1, @color2);"}, {name: "screen", example: "screen(@color1, @color2);"}, {name: "overlay", example: "overlay(@color1, @color2);"}, {name: "softlight", example: "softlight(@color1, @color2);"}, {name: "hardlight", example: "hardlight(@color1, @color2);"}, {name: "difference", example: "difference(@color1, @color2);"}, {name: "exclusion", example: "exclusion(@color1, @color2);"}, {name: "average", example: "average(@color1, @color2);"}, {name: "negation", example: "negation(@color1, @color2);"}], t2; + }, t2.builtInProposals = [{name: "if", example: "if(condition, trueValue [, falseValue]);", description: To("less.builtin.if", "returns one of two values depending on a condition.")}, {name: "boolean", example: "boolean(condition);", description: To("less.builtin.boolean", '"store" a boolean test for later evaluation in a guard or if().')}, {name: "length", example: "length(@list);", description: To("less.builtin.length", "returns the number of elements in a value list")}, {name: "extract", example: "extract(@list, index);", description: To("less.builtin.extract", "returns a value at the specified position in the list")}, {name: "range", example: "range([start, ] end [, step]);", description: To("less.builtin.range", "generate a list spanning a range of values")}, {name: "each", example: "each(@list, ruleset);", description: To("less.builtin.each", "bind the evaluation of a ruleset to each member of a list.")}, {name: "escape", example: "escape(@string);", description: To("less.builtin.escape", "URL encodes a string")}, {name: "e", example: "e(@string);", description: To("less.builtin.e", "escape string content")}, {name: "replace", example: "replace(@string, @pattern, @replacement[, @flags]);", description: To("less.builtin.replace", "string replace")}, {name: "unit", example: "unit(@dimension, [@unit: '']);", description: To("less.builtin.unit", "remove or change the unit of a dimension")}, {name: "color", example: "color(@string);", description: To("less.builtin.color", "parses a string to a color"), type: "color"}, {name: "convert", example: "convert(@value, unit);", description: To("less.builtin.convert", "converts numbers from one type into another")}, {name: "data-uri", example: "data-uri([mimetype,] url);", description: To("less.builtin.data-uri", "inlines a resource and falls back to `url()`"), type: "url"}, {name: "abs", description: To("less.builtin.abs", "absolute value of a number"), example: "abs(number);"}, {name: "acos", description: To("less.builtin.acos", "arccosine - inverse of cosine function"), example: "acos(number);"}, {name: "asin", description: To("less.builtin.asin", "arcsine - inverse of sine function"), example: "asin(number);"}, {name: "ceil", example: "ceil(@number);", description: To("less.builtin.ceil", "rounds up to an integer")}, {name: "cos", description: To("less.builtin.cos", "cosine function"), example: "cos(number);"}, {name: "floor", description: To("less.builtin.floor", "rounds down to an integer"), example: "floor(@number);"}, {name: "percentage", description: To("less.builtin.percentage", "converts to a %, e.g. 0.5 > 50%"), example: "percentage(@number);", type: "percentage"}, {name: "round", description: To("less.builtin.round", "rounds a number to a number of places"), example: "round(number, [places: 0]);"}, {name: "sqrt", description: To("less.builtin.sqrt", "calculates square root of a number"), example: "sqrt(number);"}, {name: "sin", description: To("less.builtin.sin", "sine function"), example: "sin(number);"}, {name: "tan", description: To("less.builtin.tan", "tangent function"), example: "tan(number);"}, {name: "atan", description: To("less.builtin.atan", "arctangent - inverse of tangent function"), example: "atan(number);"}, {name: "pi", description: To("less.builtin.pi", "returns pi"), example: "pi();"}, {name: "pow", description: To("less.builtin.pow", "first argument raised to the power of the second argument"), example: "pow(@base, @exponent);"}, {name: "mod", description: To("less.builtin.mod", "first argument modulus second argument"), example: "mod(number, number);"}, {name: "min", description: To("less.builtin.min", "returns the lowest of one or more values"), example: "min(@x, @y);"}, {name: "max", description: To("less.builtin.max", "returns the lowest of one or more values"), example: "max(@x, @y);"}], t2.colorProposals = [{name: "argb", example: "argb(@color);", description: To("less.builtin.argb", "creates a #AARRGGBB")}, {name: "hsl", example: "hsl(@hue, @saturation, @lightness);", description: To("less.builtin.hsl", "creates a color")}, {name: "hsla", example: "hsla(@hue, @saturation, @lightness, @alpha);", description: To("less.builtin.hsla", "creates a color")}, {name: "hsv", example: "hsv(@hue, @saturation, @value);", description: To("less.builtin.hsv", "creates a color")}, {name: "hsva", example: "hsva(@hue, @saturation, @value, @alpha);", description: To("less.builtin.hsva", "creates a color")}, {name: "hue", example: "hue(@color);", description: To("less.builtin.hue", "returns the `hue` channel of `@color` in the HSL space")}, {name: "saturation", example: "saturation(@color);", description: To("less.builtin.saturation", "returns the `saturation` channel of `@color` in the HSL space")}, {name: "lightness", example: "lightness(@color);", description: To("less.builtin.lightness", "returns the `lightness` channel of `@color` in the HSL space")}, {name: "hsvhue", example: "hsvhue(@color);", description: To("less.builtin.hsvhue", "returns the `hue` channel of `@color` in the HSV space")}, {name: "hsvsaturation", example: "hsvsaturation(@color);", description: To("less.builtin.hsvsaturation", "returns the `saturation` channel of `@color` in the HSV space")}, {name: "hsvvalue", example: "hsvvalue(@color);", description: To("less.builtin.hsvvalue", "returns the `value` channel of `@color` in the HSV space")}, {name: "red", example: "red(@color);", description: To("less.builtin.red", "returns the `red` channel of `@color`")}, {name: "green", example: "green(@color);", description: To("less.builtin.green", "returns the `green` channel of `@color`")}, {name: "blue", example: "blue(@color);", description: To("less.builtin.blue", "returns the `blue` channel of `@color`")}, {name: "alpha", example: "alpha(@color);", description: To("less.builtin.alpha", "returns the `alpha` channel of `@color`")}, {name: "luma", example: "luma(@color);", description: To("less.builtin.luma", "returns the `luma` value (perceptual brightness) of `@color`")}, {name: "saturate", example: "saturate(@color, 10%);", description: To("less.builtin.saturate", "return `@color` 10% points more saturated")}, {name: "desaturate", example: "desaturate(@color, 10%);", description: To("less.builtin.desaturate", "return `@color` 10% points less saturated")}, {name: "lighten", example: "lighten(@color, 10%);", description: To("less.builtin.lighten", "return `@color` 10% points lighter")}, {name: "darken", example: "darken(@color, 10%);", description: To("less.builtin.darken", "return `@color` 10% points darker")}, {name: "fadein", example: "fadein(@color, 10%);", description: To("less.builtin.fadein", "return `@color` 10% points less transparent")}, {name: "fadeout", example: "fadeout(@color, 10%);", description: To("less.builtin.fadeout", "return `@color` 10% points more transparent")}, {name: "fade", example: "fade(@color, 50%);", description: To("less.builtin.fade", "return `@color` with 50% transparency")}, {name: "spin", example: "spin(@color, 10);", description: To("less.builtin.spin", "return `@color` with a 10 degree larger in hue")}, {name: "mix", example: "mix(@color1, @color2, [@weight: 50%]);", description: To("less.builtin.mix", "return a mix of `@color1` and `@color2`")}, {name: "greyscale", example: "greyscale(@color);", description: To("less.builtin.greyscale", "returns a grey, 100% desaturated color")}, {name: "contrast", example: "contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);", description: To("less.builtin.contrast", "return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")}, {name: "multiply", example: "multiply(@color1, @color2);"}, {name: "screen", example: "screen(@color1, @color2);"}, {name: "overlay", example: "overlay(@color1, @color2);"}, {name: "softlight", example: "softlight(@color1, @color2);"}, {name: "hardlight", example: "hardlight(@color1, @color2);"}, {name: "difference", example: "difference(@color1, @color2);"}, {name: "exclusion", example: "exclusion(@color1, @color2);"}, {name: "average", example: "average(@color1, @color2);"}, {name: "negation", example: "negation(@color1, @color2);"}], t2; }(Wi); - function Nr(e2, t2) { + function No(e2, t2) { return function(e3, t3) { var n2 = t3 && t3.rangeLimit || Number.MAX_VALUE, i2 = e3.sort(function(e4, t4) { var n3 = e4.startLine - t4.startLine; return n3 === 0 && (n3 = e4.endLine - t4.endLine), n3; - }), o2 = [], r2 = -1; + }), r2 = [], o2 = -1; return i2.forEach(function(e4) { - e4.startLine < r2 && r2 < e4.endLine || (o2.push(e4), r2 = e4.endLine); - }), o2.length < n2 ? o2 : o2.slice(0, n2); + e4.startLine < o2 && o2 < e4.endLine || (r2.push(e4), o2 = e4.endLine); + }), r2.length < n2 ? r2 : r2.slice(0, n2); }(function(e3) { function t3(t4) { return e3.positionAt(t4.offset).line; @@ -21337,12 +21337,12 @@ function n2(t4) { return e3.positionAt(t4.offset + t4.len).line; } - var o2 = [], r2 = [], s2 = function() { + var r2 = [], o2 = [], s2 = function() { switch (e3.languageId) { case "scss": - return new or(); + return new io(); case "less": - return new xr(); + return new xo(); default: return new G(); } @@ -21351,15 +21351,15 @@ var a2 = s2.scan(), l2 = null, c2 = function() { switch (a2.type) { case i.CurlyL: - case Qo: - r2.push({line: t3(a2), type: "brace", isStart: true}); + case Xr: + o2.push({line: t3(a2), type: "brace", isStart: true}); break; case i.CurlyR: - if (r2.length !== 0) { - if (!(u2 = Ir(r2, "brace"))) + if (o2.length !== 0) { + if (!(u2 = Io(o2, "brace"))) break; var c3 = n2(a2); - u2.type === "brace" && (l2 && n2(l2) !== c3 && c3--, u2.line !== c3 && o2.push({startLine: u2.line, endLine: c3, kind: void 0})); + u2.type === "brace" && (l2 && n2(l2) !== c3 && c3--, u2.line !== c3 && r2.push({startLine: u2.line, endLine: c3, kind: void 0})); } break; case i.Comment: @@ -21378,29 +21378,29 @@ }(a2); if (h2) if (h2.isStart) - r2.push(h2); + o2.push(h2); else { var u2; - if (!(u2 = Ir(r2, "comment"))) + if (!(u2 = Io(o2, "comment"))) break; - u2.type === "comment" && u2.line !== h2.line && o2.push({startLine: u2.line, endLine: h2.line, kind: "region"}); + u2.type === "comment" && u2.line !== h2.line && r2.push({startLine: u2.line, endLine: h2.line, kind: "region"}); } else { var p2 = function(e4, i2) { - var o3 = t3(e4), r3 = n2(e4); - return o3 !== r3 ? {startLine: o3, endLine: r3, kind: i2} : null; + var r3 = t3(e4), o3 = n2(e4); + return r3 !== o3 ? {startLine: r3, endLine: o3, kind: i2} : null; }(a2, "comment"); - p2 && o2.push(p2); + p2 && r2.push(p2); } } l2 = a2, a2 = s2.scan(); }; for (; a2.type !== i.EOF; ) c2(); - return o2; + return r2; }(e2), t2); } - function Ir(e2, t2) { + function Io(e2, t2) { if (e2.length === 0) return null; for (var n2 = e2.length - 1; n2 >= 0; n2--) @@ -21408,7 +21408,7 @@ return e2.splice(n2, 1)[0]; return null; } - var Or = {version: 1.1, properties: [{name: "additive-symbols", browsers: ["FF33"], syntax: "[ <integer> && <symbol> ]#", relevance: 50, description: "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.", restrictions: ["integer", "string", "image", "identifier"]}, {name: "align-content", values: [{name: "center", description: "Lines are packed toward the center of the flex container."}, {name: "flex-end", description: "Lines are packed toward the end of the flex container."}, {name: "flex-start", description: "Lines are packed toward the start of the flex container."}, {name: "space-around", description: "Lines are evenly distributed in the flex container, with half-size spaces on either end."}, {name: "space-between", description: "Lines are evenly distributed in the flex container."}, {name: "stretch", description: "Lines stretch to take up the remaining space."}], syntax: "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>", relevance: 59, description: "Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.", restrictions: ["enum"]}, {name: "align-items", values: [{name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "flex-end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "flex-start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], syntax: "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]", relevance: 81, description: "Aligns flex items along the cross axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "justify-items", values: [{name: "auto"}, {name: "normal"}, {name: "end"}, {name: "start"}, {name: "flex-end", description: '"Flex items are packed toward the end of the line."'}, {name: "flex-start", description: '"Flex items are packed toward the start of the line."'}, {name: "self-end", description: "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."}, {name: "self-start", description: "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."}, {name: "center", description: "The items are packed flush to each other toward the center of the of the alignment container."}, {name: "left"}, {name: "right"}, {name: "baseline"}, {name: "first baseline"}, {name: "last baseline"}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}, {name: "save"}, {name: "unsave"}, {name: "legacy"}], syntax: "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]", relevance: 50, description: "Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis", restrictions: ["enum"]}, {name: "justify-self", browsers: ["E16", "FF45", "S10.1", "C57", "O44"], values: [{name: "auto"}, {name: "normal"}, {name: "end"}, {name: "start"}, {name: "flex-end", description: '"Flex items are packed toward the end of the line."'}, {name: "flex-start", description: '"Flex items are packed toward the start of the line."'}, {name: "self-end", description: "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."}, {name: "self-start", description: "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."}, {name: "center", description: "The items are packed flush to each other toward the center of the of the alignment container."}, {name: "left"}, {name: "right"}, {name: "baseline"}, {name: "first baseline"}, {name: "last baseline"}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}, {name: "save"}, {name: "unsave"}], syntax: "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]", relevance: 52, description: "Defines the way of justifying a box inside its container along the appropriate axis.", restrictions: ["enum"]}, {name: "align-self", values: [{name: "auto", description: "Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."}, {name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "flex-end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "flex-start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], syntax: "auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>", relevance: 69, description: "Allows the default alignment along the cross axis to be overridden for individual flex items.", restrictions: ["enum"]}, {name: "all", browsers: ["E79", "FF27", "S9.1", "C37", "O24"], values: [], syntax: "initial | inherit | unset | revert", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/all"}], description: "Shorthand that resets all properties except 'direction' and 'unicode-bidi'.", restrictions: ["enum"]}, {name: "alt", browsers: ["S9"], values: [], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/alt"}], description: "Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.", restrictions: ["string", "enum"]}, {name: "animation", values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], syntax: "<single-animation>#", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation"}], description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "timing-function", "enum", "identifier", "number"]}, {name: "animation-delay", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-delay"}], description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "animation-direction", values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], syntax: "<single-animation-direction>#", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-direction"}], description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "animation-duration", syntax: "<time>#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-duration"}], description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "animation-fill-mode", values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], syntax: "<single-animation-fill-mode>#", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}], description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "animation-iteration-count", values: [{name: "infinite", description: "Causes the animation to repeat forever."}], syntax: "<single-animation-iteration-count>#", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}], description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "animation-name", values: [{name: "none", description: "No animation is performed"}], syntax: "[ none | <keyframes-name> ]#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-name"}], description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "animation-play-state", values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], syntax: "<single-animation-play-state>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}], description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "animation-timing-function", syntax: "<timing-function>#", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}], description: "Describes how the animation will progress over one cycle of its duration.", restrictions: ["timing-function"]}, {name: "backface-visibility", values: [{name: "hidden", description: "Back side is hidden."}, {name: "visible", description: "Back side is visible."}], syntax: "visible | hidden", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}], description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "background", values: [{name: "fixed", description: "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."}, {name: "local", description: "The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."}, {name: "none", description: "A value of 'none' counts as an image layer but draws nothing."}, {name: "scroll", description: "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}], syntax: "[ <bg-layer> , ]* <final-bg-layer>", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background"}], description: "Shorthand property for setting most background properties at the same place in the style sheet.", restrictions: ["enum", "image", "color", "position", "length", "repeat", "percentage", "box"]}, {name: "background-attachment", values: [{name: "fixed", description: "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."}, {name: "local", description: "The background is fixed with regard to the element\u2019s contents: if the element has a scrolling mechanism, the background scrolls with the element\u2019s contents."}, {name: "scroll", description: "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element\u2019s border.)"}], syntax: "<attachment>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-attachment"}], description: "Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').", restrictions: ["enum"]}, {name: "background-blend-mode", browsers: ["E79", "FF30", "S8", "C35", "O22"], values: [{name: "normal", description: "Default attribute which specifies no blending"}, {name: "multiply", description: "The source color is multiplied by the destination color and replaces the destination."}, {name: "screen", description: "Multiplies the complements of the backdrop and source color values, then complements the result."}, {name: "overlay", description: "Multiplies or screens the colors, depending on the backdrop color value."}, {name: "darken", description: "Selects the darker of the backdrop and source colors."}, {name: "lighten", description: "Selects the lighter of the backdrop and source colors."}, {name: "color-dodge", description: "Brightens the backdrop color to reflect the source color."}, {name: "color-burn", description: "Darkens the backdrop color to reflect the source color."}, {name: "hard-light", description: "Multiplies or screens the colors, depending on the source color value."}, {name: "soft-light", description: "Darkens or lightens the colors, depending on the source color value."}, {name: "difference", description: "Subtracts the darker of the two constituent colors from the lighter color.."}, {name: "exclusion", description: "Produces an effect similar to that of the Difference mode but lower in contrast."}, {name: "hue", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."}, {name: "saturation", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."}, {name: "color", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."}, {name: "luminosity", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}], syntax: "<blend-mode>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}], description: "Defines the blending mode of each background layer.", restrictions: ["enum"]}, {name: "background-clip", syntax: "<box>#", relevance: 67, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-clip"}], description: "Determines the background painting area.", restrictions: ["box"]}, {name: "background-color", syntax: "<color>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-color"}], description: "Sets the background color of an element.", restrictions: ["color"]}, {name: "background-image", values: [{name: "none", description: "Counts as an image layer but draws nothing."}], syntax: "<bg-image>#", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-image"}], description: "Sets the background image(s) of an element.", restrictions: ["image", "enum"]}, {name: "background-origin", syntax: "<box>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-origin"}], description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "background-position", syntax: "<bg-position>#", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position"}], description: "Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.", restrictions: ["position", "length", "percentage"]}, {name: "background-position-x", values: [{name: "center", description: "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."}, {name: "left", description: "Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."}, {name: "right", description: "Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}], status: "experimental", syntax: "[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position-x"}], description: "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", restrictions: ["length", "percentage"]}, {name: "background-position-y", values: [{name: "bottom", description: "Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."}, {name: "center", description: "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."}, {name: "top", description: "Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}], status: "experimental", syntax: "[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position-y"}], description: "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", restrictions: ["length", "percentage"]}, {name: "background-repeat", values: [], syntax: "<repeat-style>#", relevance: 85, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-repeat"}], description: "Specifies how background images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "background-size", values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], syntax: "<bg-size>#", relevance: 85, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-size"}], description: "Specifies the size of the background images.", restrictions: ["length", "percentage"]}, {name: "behavior", browsers: ["IE6"], relevance: 50, description: "IE only. Used to extend behaviors of the browser.", restrictions: ["url"]}, {name: "block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "auto", description: "Depends on the values of other properties."}], syntax: "<'width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/block-size"}], description: "Logical 'width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "border", syntax: "<line-width> || <line-style> || <color>", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border"}], description: "Shorthand property for setting border width, style, and color.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end"}], description: "Logical 'border-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start"}], description: "Logical 'border-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-end-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}], description: "Logical 'border-bottom-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-block-start-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}], description: "Logical 'border-top-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-block-end-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}], description: "Logical 'border-bottom-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-block-start-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}], description: "Logical 'border-top-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-block-end-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}], description: "Logical 'border-bottom-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-block-start-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}], description: "Logical 'border-top-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-bottom", syntax: "<line-width> || <line-style> || <color>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom"}], description: "Shorthand property for setting border width, style and color.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-bottom-color", syntax: "<'border-top-color'>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}], description: "Sets the color of the bottom border.", restrictions: ["color"]}, {name: "border-bottom-left-radius", syntax: "<length-percentage>{1,2}", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}], description: "Defines the radii of the bottom left outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-bottom-right-radius", syntax: "<length-percentage>{1,2}", relevance: 73, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}], description: "Defines the radii of the bottom right outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-bottom-style", syntax: "<line-style>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}], description: "Sets the style of the bottom border.", restrictions: ["line-style"]}, {name: "border-bottom-width", syntax: "<line-width>", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}], description: "Sets the thickness of the bottom border.", restrictions: ["length", "line-width"]}, {name: "border-collapse", values: [{name: "collapse", description: "Selects the collapsing borders model."}, {name: "separate", description: "Selects the separated borders border model."}], syntax: "collapse | separate", relevance: 75, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-collapse"}], description: "Selects a table's border model.", restrictions: ["enum"]}, {name: "border-color", values: [], syntax: "<color>{1,4}", relevance: 86, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-color"}], description: "The color of the border around all four edges of an element.", restrictions: ["color"]}, {name: "border-image", values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none", description: "Use the border styles."}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], syntax: "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image"}], description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "border-image-outset", syntax: "[ <length> | <number> ]{1,4}", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}], description: "The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.", restrictions: ["length", "number"]}, {name: "border-image-repeat", values: [{name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}], syntax: "[ stretch | repeat | round | space ]{1,2}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}], description: "Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.", restrictions: ["enum"]}, {name: "border-image-slice", values: [{name: "fill", description: "Causes the middle part of the border-image to be preserved."}], syntax: "<number-percentage>{1,4} && fill?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}], description: "Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.", restrictions: ["number", "percentage"]}, {name: "border-image-source", values: [{name: "none", description: "Use the border styles."}], syntax: "none | <image>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-source"}], description: "Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.", restrictions: ["image"]}, {name: "border-image-width", values: [{name: "auto", description: "The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}], syntax: "[ <length-percentage> | <number> | auto ]{1,4}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-width"}], description: "The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.", restrictions: ["length", "percentage", "number"]}, {name: "border-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}], description: "Logical 'border-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}], description: "Logical 'border-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-inline-end-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}], description: "Logical 'border-right-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-inline-start-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}], description: "Logical 'border-left-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-inline-end-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}], description: "Logical 'border-right-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-inline-start-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}], description: "Logical 'border-left-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-inline-end-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}], description: "Logical 'border-right-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-inline-start-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}], description: "Logical 'border-left-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-left", syntax: "<line-width> || <line-style> || <color>", relevance: 82, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-left-color", syntax: "<color>", relevance: 65, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-color"}], description: "Sets the color of the left border.", restrictions: ["color"]}, {name: "border-left-style", syntax: "<line-style>", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-style"}], description: "Sets the style of the left border.", restrictions: ["line-style"]}, {name: "border-left-width", syntax: "<line-width>", relevance: 58, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-width"}], description: "Sets the thickness of the left border.", restrictions: ["length", "line-width"]}, {name: "border-radius", syntax: "<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-radius"}], description: "Defines the radii of the outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-right", syntax: "<line-width> || <line-style> || <color>", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-right-color", syntax: "<color>", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-color"}], description: "Sets the color of the right border.", restrictions: ["color"]}, {name: "border-right-style", syntax: "<line-style>", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-style"}], description: "Sets the style of the right border.", restrictions: ["line-style"]}, {name: "border-right-width", syntax: "<line-width>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-width"}], description: "Sets the thickness of the right border.", restrictions: ["length", "line-width"]}, {name: "border-spacing", syntax: "<length> <length>?", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-spacing"}], description: "The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.", restrictions: ["length"]}, {name: "border-style", values: [], syntax: "<line-style>{1,4}", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-style"}], description: "The style of the border around edges of an element.", restrictions: ["line-style"]}, {name: "border-top", syntax: "<line-width> || <line-style> || <color>", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-top-color", syntax: "<color>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-color"}], description: "Sets the color of the top border.", restrictions: ["color"]}, {name: "border-top-left-radius", syntax: "<length-percentage>{1,2}", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}], description: "Defines the radii of the top left outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-top-right-radius", syntax: "<length-percentage>{1,2}", relevance: 72, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}], description: "Defines the radii of the top right outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-top-style", syntax: "<line-style>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-style"}], description: "Sets the style of the top border.", restrictions: ["line-style"]}, {name: "border-top-width", syntax: "<line-width>", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-width"}], description: "Sets the thickness of the top border.", restrictions: ["length", "line-width"]}, {name: "border-width", values: [], syntax: "<line-width>{1,4}", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-width"}], description: "Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.", restrictions: ["length", "line-width"]}, {name: "bottom", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/bottom"}], description: "Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "box-decoration-break", browsers: ["E79", "FF32", "S6.1", "C22", "O15"], values: [{name: "clone", description: "Each box is independently wrapped with the border and padding."}, {name: "slice", description: "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}], syntax: "slice | clone", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}], description: "Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.", restrictions: ["enum"]}, {name: "box-shadow", values: [{name: "inset", description: "Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."}, {name: "none", description: "No shadow."}], syntax: "none | <shadow>#", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-shadow"}], description: "Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.", restrictions: ["length", "color", "enum"]}, {name: "box-sizing", values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}], syntax: "content-box | border-box", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-sizing"}], description: "Specifies the behavior of the 'width' and 'height' properties.", restrictions: ["enum"]}, {name: "break-after", values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the principal box."}, {name: "avoid", description: "Avoid a break before/after the principal box."}, {name: "avoid-column", description: "Avoid a column break before/after the principal box."}, {name: "avoid-page", description: "Avoid a page break before/after the principal box."}, {name: "column", description: "Always force a column break before/after the principal box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the principal box."}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], syntax: "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", relevance: 50, description: "Describes the page/column/region break behavior after the generated box.", restrictions: ["enum"]}, {name: "break-before", values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the principal box."}, {name: "avoid", description: "Avoid a break before/after the principal box."}, {name: "avoid-column", description: "Avoid a column break before/after the principal box."}, {name: "avoid-page", description: "Avoid a page break before/after the principal box."}, {name: "column", description: "Always force a column break before/after the principal box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the principal box."}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], syntax: "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", relevance: 50, description: "Describes the page/column/region break behavior before the generated box.", restrictions: ["enum"]}, {name: "break-inside", values: [{name: "auto", description: "Impose no additional breaking constraints within the box."}, {name: "avoid", description: "Avoid breaks within the box."}, {name: "avoid-column", description: "Avoid a column break within the box."}, {name: "avoid-page", description: "Avoid a page break within the box."}], syntax: "auto | avoid | avoid-page | avoid-column | avoid-region", relevance: 50, description: "Describes the page/column/region break behavior inside the principal box.", restrictions: ["enum"]}, {name: "caption-side", values: [{name: "bottom", description: "Positions the caption box below the table box."}, {name: "top", description: "Positions the caption box above the table box."}], syntax: "top | bottom | block-start | block-end | inline-start | inline-end", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/caption-side"}], description: "Specifies the position of the caption box with respect to the table box.", restrictions: ["enum"]}, {name: "caret-color", browsers: ["E79", "FF53", "S11.1", "C57", "O44"], values: [{name: "auto", description: "The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}], syntax: "auto | <color>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/caret-color"}], description: "Controls the color of the text insertion indicator.", restrictions: ["color", "enum"]}, {name: "clear", values: [{name: "both", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."}, {name: "left", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."}, {name: "none", description: "No constraint on the box's position with respect to floats."}, {name: "right", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}], syntax: "none | left | right | both | inline-start | inline-end", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clear"}], description: "Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.", restrictions: ["enum"]}, {name: "clip", values: [{name: "auto", description: "The element does not clip."}, {name: "rect()", description: "Specifies offsets from the edges of the border box."}], syntax: "<shape> | auto", relevance: 73, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clip"}], description: "Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element\u2019s box.", restrictions: ["enum"]}, {name: "clip-path", values: [{name: "none", description: "No clipping path gets created."}, {name: "url()", description: "References a <clipPath> element to create a clipping path."}], syntax: "<clip-source> | [ <basic-shape> || <geometry-box> ] | none", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clip-path"}], description: "Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.", restrictions: ["url", "shape", "geometry-box", "enum"]}, {name: "clip-rule", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], values: [{name: "evenodd", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."}, {name: "nonzero", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}], relevance: 50, description: "Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.", restrictions: ["enum"]}, {name: "color", syntax: "<color>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/color"}], description: "Sets the color of an element's text", restrictions: ["color"]}, {name: "color-interpolation-filters", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], values: [{name: "auto", description: "Color operations are not required to occur in a particular color space."}, {name: "linearRGB", description: "Color operations should occur in the linearized RGB color space."}, {name: "sRGB", description: "Color operations should occur in the sRGB color space."}], relevance: 50, description: "Specifies the color space for imaging operations performed via filter effects.", restrictions: ["enum"]}, {name: "column-count", values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], syntax: "<integer> | auto", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-count"}], description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer", "enum"]}, {name: "column-fill", values: [{name: "auto", description: "Fills columns sequentially."}, {name: "balance", description: "Balance content equally between columns, if possible."}], syntax: "auto | balance | balance-all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-fill"}], description: "In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.", restrictions: ["enum"]}, {name: "column-gap", values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], syntax: "normal | <length-percentage>", relevance: 52, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length", "enum"]}, {name: "column-rule", syntax: "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule"}], description: "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "column-rule-color", syntax: "<color>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}], description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "column-rule-style", syntax: "<'border-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}], description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "column-rule-width", syntax: "<'border-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}], description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "columns", values: [{name: "auto", description: "The width depends on the values of other properties."}], syntax: "<'column-width'> || <'column-count'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/columns"}], description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer", "enum"]}, {name: "column-span", values: [{name: "all", description: "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."}, {name: "none", description: "The element does not span multiple columns."}], syntax: "none | all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-span"}], description: "Describes the page/column break behavior after the generated box.", restrictions: ["enum"]}, {name: "column-width", values: [{name: "auto", description: "The width depends on the values of other properties."}], syntax: "<length> | auto", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-width"}], description: "Describes the width of columns in multicol elements.", restrictions: ["length", "enum"]}, {name: "contain", browsers: ["E79", "FF69", "C52", "O40"], values: [{name: "none", description: "Indicates that the property has no effect."}, {name: "strict", description: "Turns on all forms of containment for the element."}, {name: "content", description: "All containment rules except size are applied to the element."}, {name: "size", description: "For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."}, {name: "layout", description: "Turns on layout containment for the element."}, {name: "style", description: "Turns on style containment for the element."}, {name: "paint", description: "Turns on paint containment for the element."}], syntax: "none | strict | content | [ size || layout || style || paint ]", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/contain"}], description: "Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.", restrictions: ["enum"]}, {name: "content", values: [{name: "attr()", description: "The attr(n) function returns as a string the value of attribute n for the subject of the selector."}, {name: "counter(name)", description: "Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."}, {name: "icon", description: "The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."}, {name: "none", description: "On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."}, {name: "normal", description: "See http://www.w3.org/TR/css3-content/#content for computation rules."}, {name: "url()"}], syntax: "normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/content"}], description: "Determines which page-based occurrence of a given element is applied to a counter or string value.", restrictions: ["string", "url"]}, {name: "counter-increment", values: [{name: "none", description: "This element does not alter the value of any counters."}], syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-increment"}], description: "Manipulate the value of existing counters.", restrictions: ["identifier", "integer"]}, {name: "counter-reset", values: [{name: "none", description: "The counter is not modified."}], syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-reset"}], description: "Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.", restrictions: ["identifier", "integer"]}, {name: "cursor", values: [{name: "alias", description: "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."}, {name: "all-scroll", description: "Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."}, {name: "auto", description: "The UA determines the cursor to display based on the current context."}, {name: "cell", description: "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."}, {name: "col-resize", description: "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."}, {name: "context-menu", description: "A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."}, {name: "copy", description: "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."}, {name: "crosshair", description: "A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."}, {name: "default", description: "The platform-dependent default cursor. Often rendered as an arrow."}, {name: "e-resize", description: "Indicates that east edge is to be moved."}, {name: "ew-resize", description: "Indicates a bidirectional east-west resize cursor."}, {name: "grab", description: "Indicates that something can be grabbed."}, {name: "grabbing", description: "Indicates that something is being grabbed."}, {name: "help", description: "Help is available for the object under the cursor. Often rendered as a question mark or a balloon."}, {name: "move", description: "Indicates something is to be moved."}, {name: "-moz-grab", description: "Indicates that something can be grabbed."}, {name: "-moz-grabbing", description: "Indicates that something is being grabbed."}, {name: "-moz-zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "-moz-zoom-out", description: "Indicates that something can be zoomed (magnified) out."}, {name: "ne-resize", description: "Indicates that movement starts from north-east corner."}, {name: "nesw-resize", description: "Indicates a bidirectional north-east/south-west cursor."}, {name: "no-drop", description: "Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."}, {name: "none", description: "No cursor is rendered for the element."}, {name: "not-allowed", description: "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."}, {name: "n-resize", description: "Indicates that north edge is to be moved."}, {name: "ns-resize", description: "Indicates a bidirectional north-south cursor."}, {name: "nw-resize", description: "Indicates that movement starts from north-west corner."}, {name: "nwse-resize", description: "Indicates a bidirectional north-west/south-east cursor."}, {name: "pointer", description: "The cursor is a pointer that indicates a link."}, {name: "progress", description: "A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."}, {name: "row-resize", description: "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."}, {name: "se-resize", description: "Indicates that movement starts from south-east corner."}, {name: "s-resize", description: "Indicates that south edge is to be moved."}, {name: "sw-resize", description: "Indicates that movement starts from south-west corner."}, {name: "text", description: "Indicates text that may be selected. Often rendered as a vertical I-beam."}, {name: "vertical-text", description: "Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."}, {name: "wait", description: "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."}, {name: "-webkit-grab", description: "Indicates that something can be grabbed."}, {name: "-webkit-grabbing", description: "Indicates that something is being grabbed."}, {name: "-webkit-zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "-webkit-zoom-out", description: "Indicates that something can be zoomed (magnified) out."}, {name: "w-resize", description: "Indicates that west edge is to be moved."}, {name: "zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "zoom-out", description: "Indicates that something can be zoomed (magnified) out."}], syntax: "[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/cursor"}], description: "Allows control over cursor appearance in an element", restrictions: ["url", "number", "enum"]}, {name: "direction", values: [{name: "ltr", description: "Left-to-right direction."}, {name: "rtl", description: "Right-to-left direction."}], syntax: "ltr | rtl", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/direction"}], description: "Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.", restrictions: ["enum"]}, {name: "display", values: [{name: "block", description: "The element generates a block-level box"}, {name: "contents", description: "The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."}, {name: "flex", description: "The element generates a principal flex container box and establishes a flex formatting context."}, {name: "flexbox", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "flow-root", description: "The element generates a block container box, and lays out its contents using flow layout."}, {name: "grid", description: "The element generates a principal grid container box, and establishes a grid formatting context."}, {name: "inline", description: "The element generates an inline-level box."}, {name: "inline-block", description: "A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."}, {name: "inline-flex", description: "Inline-level flex container."}, {name: "inline-flexbox", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "inline-table", description: "Inline-level table wrapper box containing table box."}, {name: "list-item", description: "One or more block boxes and one marker box."}, {name: "-moz-box", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-moz-deck"}, {name: "-moz-grid"}, {name: "-moz-grid-group"}, {name: "-moz-grid-line"}, {name: "-moz-groupbox"}, {name: "-moz-inline-box", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-moz-inline-grid"}, {name: "-moz-inline-stack"}, {name: "-moz-marker"}, {name: "-moz-popup"}, {name: "-moz-stack"}, {name: "-ms-flexbox", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-ms-grid", description: "The element generates a principal grid container box, and establishes a grid formatting context."}, {name: "-ms-inline-flexbox", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-ms-inline-grid", description: "Inline-level grid container."}, {name: "none", description: "The element and its descendants generates no boxes."}, {name: "ruby", description: "The element generates a principal ruby container box, and establishes a ruby formatting context."}, {name: "ruby-base"}, {name: "ruby-base-container"}, {name: "ruby-text"}, {name: "ruby-text-container"}, {name: "run-in", description: "The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."}, {name: "table", description: "The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."}, {name: "table-caption"}, {name: "table-cell"}, {name: "table-column"}, {name: "table-column-group"}, {name: "table-footer-group"}, {name: "table-header-group"}, {name: "table-row"}, {name: "table-row-group"}, {name: "-webkit-box", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-webkit-flex", description: "The element lays out its contents using flow layout (block-and-inline layout)."}, {name: "-webkit-inline-box", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-webkit-inline-flex", description: "Inline-level flex container."}], syntax: "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/display"}], description: "In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.", restrictions: ["enum"]}, {name: "empty-cells", values: [{name: "hide", description: "No borders or backgrounds are drawn around/behind empty cells."}, {name: "-moz-show-background"}, {name: "show", description: "Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}], syntax: "show | hide", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/empty-cells"}], description: "In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.", restrictions: ["enum"]}, {name: "enable-background", values: [{name: "accumulate", description: "If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."}, {name: "new", description: "Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}], relevance: 50, description: "Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.", restrictions: ["integer", "length", "percentage", "enum"]}, {name: "fallback", browsers: ["FF33"], syntax: "<counter-style-name>", relevance: 50, description: "@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can\u2019t create a representation for a given counter value.", restrictions: ["identifier"]}, {name: "fill", values: [{name: "url()", description: "A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."}, {name: "none", description: "No paint is applied in this layer."}], relevance: 74, description: "Paints the interior of the given graphical element.", restrictions: ["color", "enum", "url"]}, {name: "fill-opacity", relevance: 52, description: "Specifies the opacity of the painting operation used to paint the interior the current object.", restrictions: ["number(0-1)"]}, {name: "fill-rule", values: [{name: "evenodd", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."}, {name: "nonzero", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}], relevance: 50, description: "Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.", restrictions: ["enum"]}, {name: "filter", browsers: ["E12", "FF35", "S9.1", "C53", "O40"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", browsers: ["E12", "FF35", "S9.1", "C53", "O40"], description: "A filter reference to a <filter> element."}], syntax: "none | <filter-function-list>", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/filter"}], description: "Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.", restrictions: ["enum", "url"]}, {name: "flex", values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "content", description: "Indicates automatic sizing, based on the flex item\u2019s content."}, {name: "none", description: "Expands to '0 0 auto'."}], syntax: "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]", relevance: 77, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex"}], description: "Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.", restrictions: ["length", "number", "percentage"]}, {name: "flex-basis", values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "content", description: "Indicates automatic sizing, based on the flex item\u2019s content."}], syntax: "content | <'width'>", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-basis"}], description: "Sets the flex basis.", restrictions: ["length", "number", "percentage"]}, {name: "flex-direction", values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}], syntax: "row | row-reverse | column | column-reverse", relevance: 78, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-direction"}], description: "Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.", restrictions: ["enum"]}, {name: "flex-flow", values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "nowrap", description: "The flex container is single-line."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], syntax: "<'flex-direction'> || <'flex-wrap'>", relevance: 58, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-flow"}], description: "Specifies how flexbox items are placed in the flexbox.", restrictions: ["enum"]}, {name: "flex-grow", syntax: "<number>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-grow"}], description: "Sets the flex grow factor. Negative numbers are invalid.", restrictions: ["number"]}, {name: "flex-shrink", syntax: "<number>", relevance: 69, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}], description: "Sets the flex shrink factor. Negative numbers are invalid.", restrictions: ["number"]}, {name: "flex-wrap", values: [{name: "nowrap", description: "The flex container is single-line."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], syntax: "nowrap | wrap | wrap-reverse", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}], description: "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.", restrictions: ["enum"]}, {name: "float", values: [{name: "inline-end", description: "A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."}, {name: "inline-start", description: "A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."}, {name: "left", description: "The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."}, {name: "none", description: "The box is not floated."}, {name: "right", description: "Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}], syntax: "left | right | none | inline-start | inline-end", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/float"}], description: "Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.", restrictions: ["enum"]}, {name: "flood-color", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Indicates what color to use to flood the current filter primitive subregion.", restrictions: ["color"]}, {name: "flood-opacity", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Indicates what opacity to use to flood the current filter primitive subregion.", restrictions: ["number(0-1)", "percentage"]}, {name: "font", values: [{name: "100", description: "Thin"}, {name: "200", description: "Extra Light (Ultra Light)"}, {name: "300", description: "Light"}, {name: "400", description: "Normal"}, {name: "500", description: "Medium"}, {name: "600", description: "Semi Bold (Demi Bold)"}, {name: "700", description: "Bold"}, {name: "800", description: "Extra Bold (Ultra Bold)"}, {name: "900", description: "Black (Heavy)"}, {name: "bold", description: "Same as 700"}, {name: "bolder", description: "Specifies the weight of the face bolder than the inherited value."}, {name: "caption", description: "The font used for captioned controls (e.g., buttons, drop-downs, etc.)."}, {name: "icon", description: "The font used to label icons."}, {name: "italic", description: "Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."}, {name: "large"}, {name: "larger"}, {name: "lighter", description: "Specifies the weight of the face lighter than the inherited value."}, {name: "medium"}, {name: "menu", description: "The font used in menus (e.g., dropdown menus and menu lists)."}, {name: "message-box", description: "The font used in dialog boxes."}, {name: "normal", description: "Specifies a face that is not labeled as a small-caps font."}, {name: "oblique", description: "Selects a font that is labeled 'oblique'."}, {name: "small"}, {name: "small-caps", description: "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}, {name: "small-caption", description: "The font used for labeling small controls."}, {name: "smaller"}, {name: "status-bar", description: "The font used in window status bars."}, {name: "x-large"}, {name: "x-small"}, {name: "xx-large"}, {name: "xx-small"}], syntax: "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar", relevance: 82, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font"}], description: "Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.", restrictions: ["font"]}, {name: "font-family", values: [{name: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"}, {name: "Arial, Helvetica, sans-serif"}, {name: "Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"}, {name: "'Courier New', Courier, monospace"}, {name: "cursive"}, {name: "fantasy"}, {name: "'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"}, {name: "Georgia, 'Times New Roman', Times, serif"}, {name: "'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"}, {name: "Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"}, {name: "'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"}, {name: "monospace"}, {name: "sans-serif"}, {name: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"}, {name: "serif"}, {name: "'Times New Roman', Times, serif"}, {name: "'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"}, {name: "Verdana, Geneva, Tahoma, sans-serif"}], syntax: "<family-name>", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-family"}], description: "Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.", restrictions: ["font"]}, {name: "font-feature-settings", values: [{name: '"aalt"', description: "Access All Alternates."}, {name: '"abvf"', description: "Above-base Forms. Required in Khmer script."}, {name: '"abvm"', description: "Above-base Mark Positioning. Required in Indic scripts."}, {name: '"abvs"', description: "Above-base Substitutions. Required in Indic scripts."}, {name: '"afrc"', description: "Alternative Fractions."}, {name: '"akhn"', description: "Akhand. Required in most Indic scripts."}, {name: '"blwf"', description: "Below-base Form. Required in a number of Indic scripts."}, {name: '"blwm"', description: "Below-base Mark Positioning. Required in Indic scripts."}, {name: '"blws"', description: "Below-base Substitutions. Required in Indic scripts."}, {name: '"calt"', description: "Contextual Alternates."}, {name: '"case"', description: "Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."}, {name: '"ccmp"', description: "Glyph Composition/Decomposition."}, {name: '"cfar"', description: "Conjunct Form After Ro. Required in Khmer scripts."}, {name: '"cjct"', description: "Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."}, {name: '"clig"', description: "Contextual Ligatures."}, {name: '"cpct"', description: "Centered CJK Punctuation. Used primarily in Chinese fonts."}, {name: '"cpsp"', description: "Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."}, {name: '"cswh"', description: "Contextual Swash."}, {name: '"curs"', description: "Cursive Positioning. Can be used in any cursive script."}, {name: '"c2pc"', description: "Petite Capitals From Capitals. Applies only to bicameral scripts."}, {name: '"c2sc"', description: "Small Capitals From Capitals. Applies only to bicameral scripts."}, {name: '"dist"', description: "Distances. Required in Indic scripts."}, {name: '"dlig"', description: "Discretionary ligatures."}, {name: '"dnom"', description: "Denominators."}, {name: '"dtls"', description: "Dotless Forms. Applied to math formula layout."}, {name: '"expt"', description: "Expert Forms. Applies only to Japanese."}, {name: '"falt"', description: "Final Glyph on Line Alternates. Can be used in any cursive script."}, {name: '"fin2"', description: "Terminal Form #2. Used only with the Syriac script."}, {name: '"fin3"', description: "Terminal Form #3. Used only with the Syriac script."}, {name: '"fina"', description: "Terminal Forms. Can be used in any alphabetic script."}, {name: '"flac"', description: "Flattened ascent forms. Applied to math formula layout."}, {name: '"frac"', description: "Fractions."}, {name: '"fwid"', description: "Full Widths. Applies to any script which can use monospaced forms."}, {name: '"half"', description: "Half Forms. Required in Indic scripts that show similarity to Devanagari."}, {name: '"haln"', description: "Halant Forms. Required in Indic scripts."}, {name: '"halt"', description: "Alternate Half Widths. Used only in CJKV fonts."}, {name: '"hist"', description: "Historical Forms."}, {name: '"hkna"', description: "Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."}, {name: '"hlig"', description: "Historical Ligatures."}, {name: '"hngl"', description: "Hangul. Korean only."}, {name: '"hojo"', description: "Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."}, {name: '"hwid"', description: "Half Widths. Generally used only in CJKV fonts."}, {name: '"init"', description: "Initial Forms. Can be used in any alphabetic script."}, {name: '"isol"', description: "Isolated Forms. Can be used in any cursive script."}, {name: '"ital"', description: "Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."}, {name: '"jalt"', description: "Justification Alternates. Can be used in any cursive script."}, {name: '"jp78"', description: "JIS78 Forms. Applies only to Japanese."}, {name: '"jp83"', description: "JIS83 Forms. Applies only to Japanese."}, {name: '"jp90"', description: "JIS90 Forms. Applies only to Japanese."}, {name: '"jp04"', description: "JIS2004 Forms. Applies only to Japanese."}, {name: '"kern"', description: "Kerning."}, {name: '"lfbd"', description: "Left Bounds."}, {name: '"liga"', description: "Standard Ligatures."}, {name: '"ljmo"', description: "Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"lnum"', description: "Lining Figures."}, {name: '"locl"', description: "Localized Forms."}, {name: '"ltra"', description: "Left-to-right glyph alternates."}, {name: '"ltrm"', description: "Left-to-right mirrored forms."}, {name: '"mark"', description: "Mark Positioning."}, {name: '"med2"', description: "Medial Form #2. Used only with the Syriac script."}, {name: '"medi"', description: "Medial Forms."}, {name: '"mgrk"', description: "Mathematical Greek."}, {name: '"mkmk"', description: "Mark to Mark Positioning."}, {name: '"nalt"', description: "Alternate Annotation Forms."}, {name: '"nlck"', description: "NLC Kanji Forms. Used only with Kanji script."}, {name: '"nukt"', description: "Nukta Forms. Required in Indic scripts.."}, {name: '"numr"', description: "Numerators."}, {name: '"onum"', description: "Oldstyle Figures."}, {name: '"opbd"', description: "Optical Bounds."}, {name: '"ordn"', description: "Ordinals. Applies mostly to Latin script."}, {name: '"ornm"', description: "Ornaments."}, {name: '"palt"', description: "Proportional Alternate Widths. Used mostly in CJKV fonts."}, {name: '"pcap"', description: "Petite Capitals."}, {name: '"pkna"', description: "Proportional Kana. Generally used only in Japanese fonts."}, {name: '"pnum"', description: "Proportional Figures."}, {name: '"pref"', description: "Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."}, {name: '"pres"', description: "Pre-base Substitutions. Required in Indic scripts."}, {name: '"pstf"', description: "Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."}, {name: '"psts"', description: "Post-base Substitutions."}, {name: '"pwid"', description: "Proportional Widths."}, {name: '"qwid"', description: "Quarter Widths. Generally used only in CJKV fonts."}, {name: '"rand"', description: "Randomize."}, {name: '"rclt"', description: "Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."}, {name: '"rlig"', description: "Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."}, {name: '"rkrf"', description: "Rakar Forms. Required in Devanagari and Gujarati scripts."}, {name: '"rphf"', description: "Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."}, {name: '"rtbd"', description: "Right Bounds."}, {name: '"rtla"', description: "Right-to-left alternates."}, {name: '"rtlm"', description: "Right-to-left mirrored forms."}, {name: '"ruby"', description: "Ruby Notation Forms. Applies only to Japanese."}, {name: '"salt"', description: "Stylistic Alternates."}, {name: '"sinf"', description: "Scientific Inferiors."}, {name: '"size"', description: "Optical size."}, {name: '"smcp"', description: "Small Capitals. Applies only to bicameral scripts."}, {name: '"smpl"', description: "Simplified Forms. Applies only to Chinese and Japanese."}, {name: '"ssty"', description: "Math script style alternates."}, {name: '"stch"', description: "Stretching Glyph Decomposition."}, {name: '"subs"', description: "Subscript."}, {name: '"sups"', description: "Superscript."}, {name: '"swsh"', description: "Swash. Does not apply to ideographic scripts."}, {name: '"titl"', description: "Titling."}, {name: '"tjmo"', description: "Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"tnam"', description: "Traditional Name Forms. Applies only to Japanese."}, {name: '"tnum"', description: "Tabular Figures."}, {name: '"trad"', description: "Traditional Forms. Applies only to Chinese and Japanese."}, {name: '"twid"', description: "Third Widths. Generally used only in CJKV fonts."}, {name: '"unic"', description: "Unicase."}, {name: '"valt"', description: "Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."}, {name: '"vatu"', description: "Vattu Variants. Used for Indic scripts. E.g. Devanagari."}, {name: '"vert"', description: "Vertical Alternates. Applies only to scripts with vertical writing modes."}, {name: '"vhal"', description: "Alternate Vertical Half Metrics. Used only in CJKV fonts."}, {name: '"vjmo"', description: "Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"vkna"', description: "Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."}, {name: '"vkrn"', description: "Vertical Kerning."}, {name: '"vpal"', description: "Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."}, {name: '"vrt2"', description: "Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."}, {name: '"zero"', description: "Slashed Zero."}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off", description: "Disable feature."}, {name: "on", description: "Enable feature."}], syntax: "normal | <feature-tag-value>#", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}], description: "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "font-kerning", browsers: ["E79", "FF32", "S9", "C33", "O20"], values: [{name: "auto", description: "Specifies that kerning is applied at the discretion of the user agent."}, {name: "none", description: "Specifies that kerning is not applied."}, {name: "normal", description: "Specifies that kerning is applied."}], syntax: "auto | normal | none", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-kerning"}], description: "Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.", restrictions: ["enum"]}, {name: "font-language-override", browsers: ["FF34"], values: [{name: "normal", description: "Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}], syntax: "normal | <string>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-language-override"}], description: "The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.", restrictions: ["string"]}, {name: "font-size", values: [{name: "large"}, {name: "larger"}, {name: "medium"}, {name: "small"}, {name: "smaller"}, {name: "x-large"}, {name: "x-small"}, {name: "xx-large"}, {name: "xx-small"}], syntax: "<absolute-size> | <relative-size> | <length-percentage>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-size"}], description: "Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.", restrictions: ["length", "percentage"]}, {name: "font-size-adjust", browsers: ["E79", "FF40", "C43", "O30"], values: [{name: "none", description: "Do not preserve the font\u2019s x-height."}], syntax: "none | <number>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}], description: "Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.", restrictions: ["number"]}, {name: "font-stretch", values: [{name: "condensed"}, {name: "expanded"}, {name: "extra-condensed"}, {name: "extra-expanded"}, {name: "narrower", description: "Indicates a narrower value relative to the width of the parent element."}, {name: "normal"}, {name: "semi-condensed"}, {name: "semi-expanded"}, {name: "ultra-condensed"}, {name: "ultra-expanded"}, {name: "wider", description: "Indicates a wider value relative to the width of the parent element."}], syntax: "<font-stretch-absolute>{1,2}", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-stretch"}], description: "Selects a normal, condensed, or expanded face from a font family.", restrictions: ["enum"]}, {name: "font-style", values: [{name: "italic", description: "Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"}, {name: "normal", description: "Selects a face that is classified as 'normal'."}, {name: "oblique", description: "Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}], syntax: "normal | italic | oblique <angle>{0,2}", relevance: 83, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-style"}], description: "Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.", restrictions: ["enum"]}, {name: "font-synthesis", browsers: ["FF34", "S9"], values: [{name: "none", description: "Disallow all synthetic faces."}, {name: "style", description: "Allow synthetic italic faces."}, {name: "weight", description: "Allow synthetic bold faces."}], syntax: "none | [ weight || style ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}], description: "Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.", restrictions: ["enum"]}, {name: "font-variant", values: [{name: "normal", description: "Specifies a face that is not labeled as a small-caps font."}, {name: "small-caps", description: "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}], syntax: "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]", relevance: 63, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant"}], description: "Specifies variant representations of the font", restrictions: ["enum"]}, {name: "font-variant-alternates", browsers: ["FF34"], values: [{name: "annotation()", description: "Enables display of alternate annotation forms."}, {name: "character-variant()", description: "Enables display of specific character variants."}, {name: "historical-forms", description: "Enables display of historical forms."}, {name: "normal", description: "None of the features are enabled."}, {name: "ornaments()", description: "Enables replacement of default glyphs with ornaments, if provided in the font."}, {name: "styleset()", description: "Enables display with stylistic sets."}, {name: "stylistic()", description: "Enables display of stylistic alternates."}, {name: "swash()", description: "Enables display of swash glyphs."}], syntax: "normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}], description: "For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.", restrictions: ["enum"]}, {name: "font-variant-caps", browsers: ["E79", "FF34", "C52", "O39"], values: [{name: "all-petite-caps", description: "Enables display of petite capitals for both upper and lowercase letters."}, {name: "all-small-caps", description: "Enables display of small capitals for both upper and lowercase letters."}, {name: "normal", description: "None of the features are enabled."}, {name: "petite-caps", description: "Enables display of petite capitals."}, {name: "small-caps", description: "Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."}, {name: "titling-caps", description: "Enables display of titling capitals."}, {name: "unicase", description: "Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}], syntax: "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}], description: "Specifies control over capitalized forms.", restrictions: ["enum"]}, {name: "font-variant-east-asian", browsers: ["E79", "FF34", "C63", "O50"], values: [{name: "full-width", description: "Enables rendering of full-width variants."}, {name: "jis04", description: "Enables rendering of JIS04 forms."}, {name: "jis78", description: "Enables rendering of JIS78 forms."}, {name: "jis83", description: "Enables rendering of JIS83 forms."}, {name: "jis90", description: "Enables rendering of JIS90 forms."}, {name: "normal", description: "None of the features are enabled."}, {name: "proportional-width", description: "Enables rendering of proportionally-spaced variants."}, {name: "ruby", description: "Enables display of ruby variant glyphs."}, {name: "simplified", description: "Enables rendering of simplified forms."}, {name: "traditional", description: "Enables rendering of traditional forms."}], syntax: "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}], description: "Allows control of glyph substitute and positioning in East Asian text.", restrictions: ["enum"]}, {name: "font-variant-ligatures", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], values: [{name: "additional-ligatures", description: "Enables display of additional ligatures."}, {name: "common-ligatures", description: "Enables display of common ligatures."}, {name: "contextual", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Enables display of contextual alternates."}, {name: "discretionary-ligatures", description: "Enables display of discretionary ligatures."}, {name: "historical-ligatures", description: "Enables display of historical ligatures."}, {name: "no-additional-ligatures", description: "Disables display of additional ligatures."}, {name: "no-common-ligatures", description: "Disables display of common ligatures."}, {name: "no-contextual", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Disables display of contextual alternates."}, {name: "no-discretionary-ligatures", description: "Disables display of discretionary ligatures."}, {name: "no-historical-ligatures", description: "Disables display of historical ligatures."}, {name: "none", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Disables all ligatures."}, {name: "normal", description: "Implies that the defaults set by the font are used."}], syntax: "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}], description: "Specifies control over which ligatures are enabled or disabled. A value of \u2018normal\u2019 implies that the defaults set by the font are used.", restrictions: ["enum"]}, {name: "font-variant-numeric", browsers: ["E79", "FF34", "S9.1", "C52", "O39"], values: [{name: "diagonal-fractions", description: "Enables display of lining diagonal fractions."}, {name: "lining-nums", description: "Enables display of lining numerals."}, {name: "normal", description: "None of the features are enabled."}, {name: "oldstyle-nums", description: "Enables display of old-style numerals."}, {name: "ordinal", description: "Enables display of letter forms used with ordinal numbers."}, {name: "proportional-nums", description: "Enables display of proportional numerals."}, {name: "slashed-zero", description: "Enables display of slashed zeros."}, {name: "stacked-fractions", description: "Enables display of lining stacked fractions."}, {name: "tabular-nums", description: "Enables display of tabular numerals."}], syntax: "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}], description: "Specifies control over numerical forms.", restrictions: ["enum"]}, {name: "font-variant-position", browsers: ["FF34"], values: [{name: "normal", description: "None of the features are enabled."}, {name: "sub", description: "Enables display of subscript variants (OpenType feature: subs)."}, {name: "super", description: "Enables display of superscript variants (OpenType feature: sups)."}], syntax: "normal | sub | super", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}], description: "Specifies the vertical position", restrictions: ["enum"]}, {name: "font-weight", values: [{name: "100", description: "Thin"}, {name: "200", description: "Extra Light (Ultra Light)"}, {name: "300", description: "Light"}, {name: "400", description: "Normal"}, {name: "500", description: "Medium"}, {name: "600", description: "Semi Bold (Demi Bold)"}, {name: "700", description: "Bold"}, {name: "800", description: "Extra Bold (Ultra Bold)"}, {name: "900", description: "Black (Heavy)"}, {name: "bold", description: "Same as 700"}, {name: "bolder", description: "Specifies the weight of the face bolder than the inherited value."}, {name: "lighter", description: "Specifies the weight of the face lighter than the inherited value."}, {name: "normal", description: "Same as 400"}], syntax: "<font-weight-absolute>{1,2}", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-weight"}], description: "Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.", restrictions: ["enum"]}, {name: "glyph-orientation-horizontal", relevance: 50, description: "Controls glyph orientation when the inline-progression-direction is horizontal.", restrictions: ["angle", "number"]}, {name: "glyph-orientation-vertical", values: [{name: "auto", description: "Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}], relevance: 50, description: "Controls glyph orientation when the inline-progression-direction is vertical.", restrictions: ["angle", "number", "enum"]}, {name: "grid-area", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]{0,3}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-area"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.", restrictions: ["identifier", "integer"]}, {name: "grid", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], syntax: "<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid"}], description: "The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "grid-auto-columns", values: [{name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}], syntax: "<track-size>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}], description: "Specifies the size of implicitly created columns.", restrictions: ["length", "percentage"]}, {name: "grid-auto-flow", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "row", description: "The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."}, {name: "column", description: "The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."}, {name: "dense", description: "If specified, the auto-placement algorithm uses a \u201Cdense\u201D packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later."}], syntax: "[ row | column ] || dense", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}], description: "Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.", restrictions: ["enum"]}, {name: "grid-auto-rows", values: [{name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}], syntax: "<track-size>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}], description: "Specifies the size of implicitly created rows.", restrictions: ["length", "percentage"]}, {name: "grid-column", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column"}], description: "Shorthand for 'grid-column-start' and 'grid-column-end'.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-column-end", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-column-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<length-percentage>", relevance: 1, description: "Specifies the gutters between grid columns. Replaced by 'column-gap' property.", restrictions: ["length"]}, {name: "grid-column-start", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<'grid-row-gap'> <'grid-column-gap'>?", relevance: 1, description: "Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.", restrictions: ["length"]}, {name: "grid-row", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row"}], description: "Shorthand for 'grid-row-start' and 'grid-row-end'.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-row-end", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-row-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<length-percentage>", relevance: 1, description: "Specifies the gutters between grid rows. Replaced by 'row-gap' property.", restrictions: ["length"]}, {name: "grid-row-start", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-template", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "Sets all three properties to their initial values."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template"}], description: "Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "grid-template-areas", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "The grid container doesn\u2019t define any named grid areas."}], syntax: "none | <string>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}], description: "Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.", restrictions: ["string"]}, {name: "grid-template-columns", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "There is no explicit grid; any rows/columns will be implicitly generated."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Indicates that the grid will align to its parent grid in that axis."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}], description: "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", restrictions: ["identifier", "length", "percentage", "enum"]}, {name: "grid-template-rows", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "There is no explicit grid; any rows/columns will be implicitly generated."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Indicates that the grid will align to its parent grid in that axis."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}], description: "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "height", values: [{name: "auto", description: "The height depends on the values of other properties."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>{1,2}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/height"}], description: "Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", restrictions: ["length", "percentage"]}, {name: "hyphens", values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], syntax: "none | manual | auto", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/hyphens"}], description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "image-orientation", browsers: ["E81", "FF26", "S13.1", "C81", "O67"], values: [{name: "flip", description: "After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."}, {name: "from-image", description: "If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}], syntax: "from-image | <angle> | [ <angle>? flip ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/image-orientation"}], description: "Specifies an orthogonal rotation to be applied to an image before it is laid out.", restrictions: ["angle"]}, {name: "image-rendering", browsers: ["E79", "FF3.6", "S6", "C13", "O15"], values: [{name: "auto", description: "The image should be scaled with an algorithm that maximizes the appearance of the image."}, {name: "crisp-edges", description: "The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."}, {name: "-moz-crisp-edges", browsers: ["E79", "FF3.6", "S6", "C13", "O15"]}, {name: "optimizeQuality", description: "Deprecated."}, {name: "optimizeSpeed", description: "Deprecated."}, {name: "pixelated", description: "When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}], syntax: "auto | crisp-edges | pixelated", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/image-rendering"}], description: "Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.", restrictions: ["enum"]}, {name: "ime-mode", browsers: ["E12", "FF3", "IE5"], values: [{name: "active", description: "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."}, {name: "auto", description: "No change is made to the current input method editor state. This is the default."}, {name: "disabled", description: "The input method editor is disabled and may not be activated by the user."}, {name: "inactive", description: "The input method editor is initially inactive, but the user may activate it if they wish."}, {name: "normal", description: "The IME state should be normal; this value can be used in a user style sheet to override the page setting."}], status: "obsolete", syntax: "auto | normal | active | inactive | disabled", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ime-mode"}], description: "Controls the state of the input method editor for text fields.", restrictions: ["enum"]}, {name: "inline-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "auto", description: "Depends on the values of other properties."}], syntax: "<'width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inline-size"}], description: "Logical 'height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "isolation", browsers: ["E79", "FF36", "S8", "C41", "O30"], values: [{name: "auto", description: "Elements are not isolated unless an operation is applied that causes the creation of a stacking context."}, {name: "isolate", description: "In CSS will turn the element into a stacking context."}], syntax: "auto | isolate", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/isolation"}], description: "In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.", restrictions: ["enum"]}, {name: "justify-content", values: [{name: "center", description: "Flex items are packed toward the center of the line."}, {name: "start", description: "The items are packed flush to each other toward the start edge of the alignment container in the main axis."}, {name: "end", description: "The items are packed flush to each other toward the end edge of the alignment container in the main axis."}, {name: "left", description: "The items are packed flush to each other toward the left edge of the alignment container in the main axis."}, {name: "right", description: "The items are packed flush to each other toward the right edge of the alignment container in the main axis."}, {name: "safe", description: "If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."}, {name: "unsafe", description: "Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."}, {name: "stretch", description: "If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."}, {name: "space-evenly", description: "The items are evenly distributed within the alignment container along the main axis."}, {name: "flex-end", description: "Flex items are packed toward the end of the line."}, {name: "flex-start", description: "Flex items are packed toward the start of the line."}, {name: "space-around", description: "Flex items are evenly distributed in the line, with half-size spaces on either end."}, {name: "space-between", description: "Flex items are evenly distributed in the line."}, {name: "baseline", description: "Specifies participation in first-baseline alignment."}, {name: "first baseline", description: "Specifies participation in first-baseline alignment."}, {name: "last baseline", description: "Specifies participation in last-baseline alignment."}], syntax: "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]", relevance: 82, description: "Aligns flex items along the main axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "kerning", values: [{name: "auto", description: "Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}], relevance: 50, description: "Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.", restrictions: ["length", "enum"]}, {name: "left", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/left"}], description: "Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "letter-spacing", values: [{name: "normal", description: "The spacing is the normal spacing for the current font. It is typically zero-length."}], syntax: "normal | <length>", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}], description: "Specifies the minimum, maximum, and optimal spacing between grapheme clusters.", restrictions: ["length"]}, {name: "lighting-color", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.", restrictions: ["color"]}, {name: "line-break", values: [{name: "auto", description: "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."}, {name: "loose", description: "Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."}, {name: "normal", description: "Breaks text using the most common set of line-breaking rules."}, {name: "strict", description: "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}], syntax: "auto | loose | normal | strict | anywhere", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-break"}], description: "Specifies what set of line breaking restrictions are in effect within the element.", restrictions: ["enum"]}, {name: "line-height", values: [{name: "normal", description: "Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}], syntax: "normal | <number> | <length> | <percentage>", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-height"}], description: "Determines the block-progression dimension of the text content area of an inline box.", restrictions: ["number", "length", "percentage"]}, {name: "list-style", values: [{name: "armenian"}, {name: "circle", description: "A hollow circle."}, {name: "decimal"}, {name: "decimal-leading-zero"}, {name: "disc", description: "A filled circle."}, {name: "georgian"}, {name: "inside", description: "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."}, {name: "lower-alpha"}, {name: "lower-greek"}, {name: "lower-latin"}, {name: "lower-roman"}, {name: "none"}, {name: "outside", description: "The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}, {name: "square", description: "A filled square."}, {name: "symbols()", description: "Allows a counter style to be defined inline."}, {name: "upper-alpha"}, {name: "upper-latin"}, {name: "upper-roman"}, {name: "url()"}], syntax: "<'list-style-type'> || <'list-style-position'> || <'list-style-image'>", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style"}], description: "Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'", restrictions: ["image", "enum", "url"]}, {name: "list-style-image", values: [{name: "none", description: "The default contents of the of the list item\u2019s marker are given by 'list-style-type' instead."}], syntax: "<url> | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-image"}], description: "Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.", restrictions: ["image"]}, {name: "list-style-position", values: [{name: "inside", description: "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."}, {name: "outside", description: "The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}], syntax: "inside | outside", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-position"}], description: "Specifies the position of the '::marker' pseudo-element's box in the list item.", restrictions: ["enum"]}, {name: "list-style-type", values: [{name: "armenian", description: "Traditional uppercase Armenian numbering."}, {name: "circle", description: "A hollow circle."}, {name: "decimal", description: "Western decimal numbers."}, {name: "decimal-leading-zero", description: "Decimal numbers padded by initial zeros."}, {name: "disc", description: "A filled circle."}, {name: "georgian", description: "Traditional Georgian numbering."}, {name: "lower-alpha", description: "Lowercase ASCII letters."}, {name: "lower-greek", description: "Lowercase classical Greek."}, {name: "lower-latin", description: "Lowercase ASCII letters."}, {name: "lower-roman", description: "Lowercase ASCII Roman numerals."}, {name: "none", description: "No marker"}, {name: "square", description: "A filled square."}, {name: "symbols()", description: "Allows a counter style to be defined inline."}, {name: "upper-alpha", description: "Uppercase ASCII letters."}, {name: "upper-latin", description: "Uppercase ASCII letters."}, {name: "upper-roman", description: "Uppercase ASCII Roman numerals."}], syntax: "<counter-style> | <string> | none", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-type"}], description: "Used to construct the default contents of a list item\u2019s marker", restrictions: ["enum", "string"]}, {name: "margin", values: [{name: "auto"}], syntax: "[ <length> | <percentage> | auto ]{1,4}", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.", restrictions: ["length", "percentage"]}, {name: "margin-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}], description: "Logical 'margin-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}], description: "Logical 'margin-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-bottom", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}], description: "Logical 'margin-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}], description: "Logical 'margin-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-left", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-left"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-right", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-right"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-top", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-top"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "marker", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given \u2018path\u2019 element or basic shape.", restrictions: ["url"]}, {name: "marker-end", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at the last vertices of the given markable element.", restrictions: ["url"]}, {name: "marker-mid", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at all vertices except the first and last.", restrictions: ["url"]}, {name: "marker-start", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at the first vertices of the given markable element.", restrictions: ["url"]}, {name: "mask-image", browsers: ["E16", "FF53", "S4", "C1", "O15"], values: [{name: "none", description: "Counts as a transparent black image layer."}, {name: "url()", description: "Reference to a <mask element or to a CSS image."}], syntax: "<mask-reference>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-image"}], description: "Sets the mask layer image of an element.", restrictions: ["url", "image", "enum"]}, {name: "mask-mode", browsers: ["FF53"], values: [{name: "alpha", description: "Alpha values of the mask layer image should be used as the mask values."}, {name: "auto", description: "Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."}, {name: "luminance", description: "Luminance values of the mask layer image should be used as the mask values."}], syntax: "<masking-mode>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-mode"}], description: "Indicates whether the mask layer image is treated as luminance mask or alpha mask.", restrictions: ["url", "image", "enum"]}, {name: "mask-origin", browsers: ["E79", "FF53", "S4", "C1", "O15"], syntax: "<geometry-box>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-origin"}], description: "Specifies the mask positioning area.", restrictions: ["geometry-box", "enum"]}, {name: "mask-position", browsers: ["E18", "FF53", "S3.2", "C1", "O15"], syntax: "<position>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-position"}], description: "Specifies how mask layer images are positioned.", restrictions: ["position", "length", "percentage"]}, {name: "mask-repeat", browsers: ["E18", "FF53", "S3.2", "C1", "O15"], syntax: "<repeat-style>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}], description: "Specifies how mask layer images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "mask-size", browsers: ["E18", "FF53", "S4", "C4", "O15"], values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], syntax: "<bg-size>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-size"}], description: "Specifies the size of the mask layer images.", restrictions: ["length", "percentage", "enum"]}, {name: "mask-type", browsers: ["E79", "FF35", "S6.1", "C24", "O15"], values: [{name: "alpha", description: "Indicates that the alpha values of the mask should be used."}, {name: "luminance", description: "Indicates that the luminance values of the mask should be used."}], syntax: "luminance | alpha", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-type"}], description: "Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.", restrictions: ["enum"]}, {name: "max-block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "none", description: "No limit on the width of the box."}], syntax: "<'max-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-block-size"}], description: "Logical 'max-width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "max-height", values: [{name: "none", description: "No limit on the height of the box."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-height"}], description: "Allows authors to constrain content height to a certain range.", restrictions: ["length", "percentage"]}, {name: "max-inline-size", browsers: ["E79", "FF41", "S10.1", "C57", "O44"], values: [{name: "none", description: "No limit on the height of the box."}], syntax: "<'max-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}], description: "Logical 'max-height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "max-width", values: [{name: "none", description: "No limit on the width of the box."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-width"}], description: "Allows authors to constrain content width to a certain range.", restrictions: ["length", "percentage"]}, {name: "min-block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], syntax: "<'min-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-block-size"}], description: "Logical 'min-width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "min-height", values: [{name: "auto"}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-height"}], description: "Allows authors to constrain content height to a certain range.", restrictions: ["length", "percentage"]}, {name: "min-inline-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], syntax: "<'min-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}], description: "Logical 'min-height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "min-width", values: [{name: "auto"}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-width"}], description: "Allows authors to constrain content width to a certain range.", restrictions: ["length", "percentage"]}, {name: "mix-blend-mode", browsers: ["E79", "FF32", "S8", "C41", "O28"], values: [{name: "normal", description: "Default attribute which specifies no blending"}, {name: "multiply", description: "The source color is multiplied by the destination color and replaces the destination."}, {name: "screen", description: "Multiplies the complements of the backdrop and source color values, then complements the result."}, {name: "overlay", description: "Multiplies or screens the colors, depending on the backdrop color value."}, {name: "darken", description: "Selects the darker of the backdrop and source colors."}, {name: "lighten", description: "Selects the lighter of the backdrop and source colors."}, {name: "color-dodge", description: "Brightens the backdrop color to reflect the source color."}, {name: "color-burn", description: "Darkens the backdrop color to reflect the source color."}, {name: "hard-light", description: "Multiplies or screens the colors, depending on the source color value."}, {name: "soft-light", description: "Darkens or lightens the colors, depending on the source color value."}, {name: "difference", description: "Subtracts the darker of the two constituent colors from the lighter color.."}, {name: "exclusion", description: "Produces an effect similar to that of the Difference mode but lower in contrast."}, {name: "hue", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."}, {name: "saturation", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."}, {name: "color", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."}, {name: "luminosity", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}], syntax: "<blend-mode>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}], description: "Defines the formula that must be used to mix the colors with the backdrop.", restrictions: ["enum"]}, {name: "motion", browsers: ["C46", "O33"], values: [{name: "none", description: "No motion path gets created."}, {name: "path()", description: "Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}, {name: "auto", description: "Indicates that the object is rotated by the angle of the direction of the motion path."}, {name: "reverse", description: "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}], relevance: 50, description: "Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.", restrictions: ["url", "length", "percentage", "angle", "shape", "geometry-box", "enum"]}, {name: "motion-offset", browsers: ["C46", "O33"], relevance: 50, description: "A distance that describes the position along the specified motion path.", restrictions: ["length", "percentage"]}, {name: "motion-path", browsers: ["C46", "O33"], values: [{name: "none", description: "No motion path gets created."}, {name: "path()", description: "Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}], relevance: 50, description: "Specifies the motion path the element gets positioned at.", restrictions: ["url", "shape", "geometry-box", "enum"]}, {name: "motion-rotation", browsers: ["C46", "O33"], values: [{name: "auto", description: "Indicates that the object is rotated by the angle of the direction of the motion path."}, {name: "reverse", description: "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}], relevance: 50, description: "Defines the direction of the element while positioning along the motion path.", restrictions: ["angle"]}, {name: "-moz-animation", browsers: ["FF9"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-moz-animation-delay", browsers: ["FF9"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-moz-animation-direction", browsers: ["FF9"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-moz-animation-duration", browsers: ["FF9"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-moz-animation-iteration-count", browsers: ["FF9"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-moz-animation-name", browsers: ["FF9"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-moz-animation-play-state", browsers: ["FF9"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-moz-animation-timing-function", browsers: ["FF9"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "-moz-appearance", browsers: ["FF1"], values: [{name: "button"}, {name: "button-arrow-down"}, {name: "button-arrow-next"}, {name: "button-arrow-previous"}, {name: "button-arrow-up"}, {name: "button-bevel"}, {name: "checkbox"}, {name: "checkbox-container"}, {name: "checkbox-label"}, {name: "dialog"}, {name: "groupbox"}, {name: "listbox"}, {name: "menuarrow"}, {name: "menuimage"}, {name: "menuitem"}, {name: "menuitemtext"}, {name: "menulist"}, {name: "menulist-button"}, {name: "menulist-text"}, {name: "menulist-textfield"}, {name: "menupopup"}, {name: "menuradio"}, {name: "menuseparator"}, {name: "-moz-mac-unified-toolbar"}, {name: "-moz-win-borderless-glass"}, {name: "-moz-win-browsertabbar-toolbox"}, {name: "-moz-win-communications-toolbox"}, {name: "-moz-win-glass"}, {name: "-moz-win-media-toolbox"}, {name: "none"}, {name: "progressbar"}, {name: "progresschunk"}, {name: "radio"}, {name: "radio-container"}, {name: "radio-label"}, {name: "radiomenuitem"}, {name: "resizer"}, {name: "resizerpanel"}, {name: "scrollbarbutton-down"}, {name: "scrollbarbutton-left"}, {name: "scrollbarbutton-right"}, {name: "scrollbarbutton-up"}, {name: "scrollbar-small"}, {name: "scrollbartrack-horizontal"}, {name: "scrollbartrack-vertical"}, {name: "separator"}, {name: "spinner"}, {name: "spinner-downbutton"}, {name: "spinner-textfield"}, {name: "spinner-upbutton"}, {name: "statusbar"}, {name: "statusbarpanel"}, {name: "tab"}, {name: "tabpanels"}, {name: "tab-scroll-arrow-back"}, {name: "tab-scroll-arrow-forward"}, {name: "textfield"}, {name: "textfield-multiline"}, {name: "toolbar"}, {name: "toolbox"}, {name: "tooltip"}, {name: "treeheadercell"}, {name: "treeheadersortarrow"}, {name: "treeitem"}, {name: "treetwistyopen"}, {name: "treeview"}, {name: "treewisty"}, {name: "window"}], status: "nonstandard", syntax: "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized", relevance: 0, description: "Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.", restrictions: ["enum"]}, {name: "-moz-backface-visibility", browsers: ["FF10"], values: [{name: "hidden"}, {name: "visible"}], relevance: 50, description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "-moz-background-clip", browsers: ["FF1-3.6"], values: [{name: "padding"}], relevance: 50, description: "Determines the background painting area.", restrictions: ["box", "enum"]}, {name: "-moz-background-inline-policy", browsers: ["FF1"], values: [{name: "bounding-box"}, {name: "continuous"}, {name: "each-box"}], relevance: 50, description: "In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.", restrictions: ["enum"]}, {name: "-moz-background-origin", browsers: ["FF1"], relevance: 50, description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "-moz-border-bottom-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-image", browsers: ["FF3.6"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "-moz-border-left-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-right-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-top-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-box-align", browsers: ["FF1"], values: [{name: "baseline", description: "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."}, {name: "center", description: "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."}, {name: "end", description: "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."}, {name: "start", description: "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."}, {name: "stretch", description: "The height of each child is adjusted to that of the containing block."}], relevance: 50, description: "Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.", restrictions: ["enum"]}, {name: "-moz-box-direction", browsers: ["FF1"], values: [{name: "normal", description: "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."}, {name: "reverse", description: "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}], relevance: 50, description: "Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).", restrictions: ["enum"]}, {name: "-moz-box-flex", browsers: ["FF1"], relevance: 50, description: "Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.", restrictions: ["number"]}, {name: "-moz-box-flexgroup", browsers: ["FF1"], relevance: 50, description: "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", restrictions: ["integer"]}, {name: "-moz-box-ordinal-group", browsers: ["FF1"], relevance: 50, description: "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", restrictions: ["integer"]}, {name: "-moz-box-orient", browsers: ["FF1"], values: [{name: "block-axis", description: "Elements are oriented along the box's axis."}, {name: "horizontal", description: "The box displays its children from left to right in a horizontal line."}, {name: "inline-axis", description: "Elements are oriented vertically."}, {name: "vertical", description: "The box displays its children from stacked from top to bottom vertically."}], relevance: 50, description: "In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.", restrictions: ["enum"]}, {name: "-moz-box-pack", browsers: ["FF1"], values: [{name: "center", description: "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."}, {name: "end", description: "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."}, {name: "justify", description: "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."}, {name: "start", description: "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}], relevance: 50, description: "Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.", restrictions: ["enum"]}, {name: "-moz-box-sizing", browsers: ["FF1"], values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}, {name: "padding-box", description: "The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}], relevance: 50, description: "Box Model addition in CSS3.", restrictions: ["enum"]}, {name: "-moz-column-count", browsers: ["FF3.5"], values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], relevance: 50, description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer"]}, {name: "-moz-column-gap", browsers: ["FF3.5"], values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], relevance: 50, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length"]}, {name: "-moz-column-rule", browsers: ["FF3.5"], relevance: 50, description: "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "-moz-column-rule-color", browsers: ["FF3.5"], relevance: 50, description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "-moz-column-rule-style", browsers: ["FF3.5"], relevance: 50, description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "-moz-column-rule-width", browsers: ["FF3.5"], relevance: 50, description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "-moz-columns", browsers: ["FF9"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer"]}, {name: "-moz-column-width", browsers: ["FF3.5"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "This property describes the width of columns in multicol elements.", restrictions: ["length"]}, {name: "-moz-font-feature-settings", browsers: ["FF4"], values: [{name: '"c2cs"'}, {name: '"dlig"'}, {name: '"kern"'}, {name: '"liga"'}, {name: '"lnum"'}, {name: '"onum"'}, {name: '"smcp"'}, {name: '"swsh"'}, {name: '"tnum"'}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off", browsers: ["FF4"]}, {name: "on", browsers: ["FF4"]}], relevance: 50, description: "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "-moz-hyphens", browsers: ["FF9"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-moz-perspective", browsers: ["FF10"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-moz-perspective-origin", browsers: ["FF10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-moz-text-align-last", browsers: ["FF12"], values: [{name: "auto"}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], relevance: 50, description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "-moz-text-decoration-color", browsers: ["FF6"], relevance: 50, description: "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", restrictions: ["color"]}, {name: "-moz-text-decoration-line", browsers: ["FF6"], values: [{name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Neither produces nor inhibits text decoration."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "underline", description: "Each line of text is underlined."}], relevance: 50, description: "Specifies what line decorations, if any, are added to the element.", restrictions: ["enum"]}, {name: "-moz-text-decoration-style", browsers: ["FF6"], values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "none", description: "Produces no line."}, {name: "solid", description: "Produces a solid line."}, {name: "wavy", description: "Produces a wavy line."}], relevance: 50, description: "Specifies the line style for underline, line-through and overline text decoration.", restrictions: ["enum"]}, {name: "-moz-text-size-adjust", browsers: ["FF"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["enum", "percentage"]}, {name: "-moz-transform", browsers: ["FF3.5"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-moz-transform-origin", browsers: ["FF3.5"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-moz-transition", browsers: ["FF4"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-moz-transition-delay", browsers: ["FF4"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-moz-transition-duration", browsers: ["FF4"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-moz-transition-property", browsers: ["FF4"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-moz-transition-timing-function", browsers: ["FF4"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "-moz-user-focus", browsers: ["FF1"], values: [{name: "ignore"}, {name: "normal"}], status: "nonstandard", syntax: "ignore | normal | select-after | select-before | select-menu | select-same | select-all | none", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}], description: "Used to indicate whether the element can have focus."}, {name: "-moz-user-select", browsers: ["FF1.5"], values: [{name: "all"}, {name: "element"}, {name: "elements"}, {name: "-moz-all"}, {name: "-moz-none"}, {name: "none"}, {name: "text"}, {name: "toggle"}], relevance: 50, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "-ms-accelerator", browsers: ["E", "IE10"], values: [{name: "false", description: "The element does not contain an accelerator key sequence."}, {name: "true", description: "The element contains an accelerator key sequence."}], status: "nonstandard", syntax: "false | true", relevance: 0, description: "IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed", restrictions: ["enum"]}, {name: "-ms-behavior", browsers: ["IE8"], relevance: 50, description: "IE only. Used to extend behaviors of the browser", restrictions: ["url"]}, {name: "-ms-block-progression", browsers: ["IE8"], values: [{name: "bt", description: "Bottom-to-top block flow. Layout is horizontal."}, {name: "lr", description: "Left-to-right direction. The flow orientation is vertical."}, {name: "rl", description: "Right-to-left direction. The flow orientation is vertical."}, {name: "tb", description: "Top-to-bottom direction. The flow orientation is horizontal."}], status: "nonstandard", syntax: "tb | rl | bt | lr", relevance: 0, description: "Sets the block-progression value and the flow orientation", restrictions: ["enum"]}, {name: "-ms-content-zoom-chaining", browsers: ["E", "IE10"], values: [{name: "chained", description: "The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."}, {name: "none", description: "A bounce effect is shown when the user hits a zoom limit during a manipulation."}], status: "nonstandard", syntax: "none | chained", relevance: 0, description: "Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."}, {name: "-ms-content-zooming", browsers: ["E", "IE10"], values: [{name: "none", description: "The element is not zoomable."}, {name: "zoom", description: "The element is zoomable."}], status: "nonstandard", syntax: "none | zoom", relevance: 0, description: "Specifies whether zooming is enabled.", restrictions: ["enum"]}, {name: "-ms-content-zoom-limit", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>", relevance: 0, description: "Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-limit-max", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage>", relevance: 0, description: "Specifies the maximum zoom factor.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-limit-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage>", relevance: 0, description: "Specifies the minimum zoom factor.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-snap", browsers: ["E", "IE10"], values: [{name: "mandatory", description: "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."}, {name: "none", description: "Indicates that zooming is unaffected by any defined snap-points."}, {name: "proximity", description: 'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}, {name: "snapInterval(100%, 100%)", description: "Specifies where the snap-points will be placed."}, {name: "snapList()", description: "Specifies the position of individual snap-points as a comma-separated list of zoom factors."}], status: "nonstandard", syntax: "<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>", relevance: 0, description: "Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."}, {name: "-ms-content-zoom-snap-points", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)", description: "Specifies where the snap-points will be placed."}, {name: "snapList()", description: "Specifies the position of individual snap-points as a comma-separated list of zoom factors."}], status: "nonstandard", syntax: "snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )", relevance: 0, description: "Defines where zoom snap-points are located."}, {name: "-ms-content-zoom-snap-type", browsers: ["E", "IE10"], values: [{name: "mandatory", description: "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."}, {name: "none", description: "Indicates that zooming is unaffected by any defined snap-points."}, {name: "proximity", description: 'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}], status: "nonstandard", syntax: "none | proximity | mandatory", relevance: 0, description: "Specifies how zooming is affected by defined snap-points.", restrictions: ["enum"]}, {name: "-ms-filter", browsers: ["IE8-9"], status: "nonstandard", syntax: "<string>", relevance: 0, description: "IE only. Used to produce visual effects.", restrictions: ["string"]}, {name: "-ms-flex", browsers: ["IE10"], values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "none", description: "Expands to '0 0 auto'."}], relevance: 50, description: "specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.", restrictions: ["length", "number", "percentage"]}, {name: "-ms-flex-align", browsers: ["IE10"], values: [{name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "start", description: "The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}], relevance: 50, description: "Aligns flex items along the cross axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "-ms-flex-direction", browsers: ["IE10"], values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}], relevance: 50, description: "Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.", restrictions: ["enum"]}, {name: "-ms-flex-flow", browsers: ["IE10"], values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "nowrap", description: "The flex container is single-line."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], relevance: 50, description: "Specifies how flexbox items are placed in the flexbox.", restrictions: ["enum"]}, {name: "-ms-flex-item-align", browsers: ["IE10"], values: [{name: "auto", description: "Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."}, {name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], relevance: 50, description: "Allows the default alignment along the cross axis to be overridden for individual flex items.", restrictions: ["enum"]}, {name: "-ms-flex-line-pack", browsers: ["IE10"], values: [{name: "center", description: "Lines are packed toward the center of the flex container."}, {name: "distribute", description: "Lines are evenly distributed in the flex container, with half-size spaces on either end."}, {name: "end", description: "Lines are packed toward the end of the flex container."}, {name: "justify", description: "Lines are evenly distributed in the flex container."}, {name: "start", description: "Lines are packed toward the start of the flex container."}, {name: "stretch", description: "Lines stretch to take up the remaining space."}], relevance: 50, description: "Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.", restrictions: ["enum"]}, {name: "-ms-flex-order", browsers: ["IE10"], relevance: 50, description: "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", restrictions: ["integer"]}, {name: "-ms-flex-pack", browsers: ["IE10"], values: [{name: "center", description: "Flex items are packed toward the center of the line."}, {name: "distribute", description: "Flex items are evenly distributed in the line, with half-size spaces on either end."}, {name: "end", description: "Flex items are packed toward the end of the line."}, {name: "justify", description: "Flex items are evenly distributed in the line."}, {name: "start", description: "Flex items are packed toward the start of the line."}], relevance: 50, description: "Aligns flex items along the main axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "-ms-flex-wrap", browsers: ["IE10"], values: [{name: "nowrap", description: "The flex container is single-line."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], relevance: 50, description: "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.", restrictions: ["enum"]}, {name: "-ms-flow-from", browsers: ["E", "IE10"], values: [{name: "none", description: "The block container is not a CSS Region."}], status: "nonstandard", syntax: "[ none | <custom-ident> ]#", relevance: 0, description: "Makes a block container a region and associates it with a named flow.", restrictions: ["identifier"]}, {name: "-ms-flow-into", browsers: ["E", "IE10"], values: [{name: "none", description: "The element is not moved to a named flow and normal CSS processing takes place."}], status: "nonstandard", syntax: "[ none | <custom-ident> ]#", relevance: 0, description: "Places an element or its contents into a named flow.", restrictions: ["identifier"]}, {name: "-ms-grid-column", browsers: ["E12", "IE10"], values: [{name: "auto"}, {name: "end"}, {name: "start"}], relevance: 50, description: "Used to place grid items and explicitly defined grid cells in the Grid.", restrictions: ["integer", "string", "enum"]}, {name: "-ms-grid-column-align", browsers: ["E12", "IE10"], values: [{name: "center", description: "Places the center of the Grid Item's margin box at the center of the Grid Item's column."}, {name: "end", description: "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."}, {name: "start", description: "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."}, {name: "stretch", description: "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}], relevance: 50, description: "Aligns the columns in a grid.", restrictions: ["enum"]}, {name: "-ms-grid-columns", browsers: ["E12", "IE10"], relevance: 50, description: "Lays out the columns of the grid."}, {name: "-ms-grid-column-span", browsers: ["E12", "IE10"], relevance: 50, description: "Specifies the number of columns to span.", restrictions: ["integer"]}, {name: "-ms-grid-layer", browsers: ["E", "IE10"], relevance: 50, description: "Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.", restrictions: ["integer"]}, {name: "-ms-grid-row", browsers: ["E12", "IE10"], values: [{name: "auto"}, {name: "end"}, {name: "start"}], relevance: 50, description: "grid-row is used to place grid items and explicitly defined grid cells in the Grid.", restrictions: ["integer", "string", "enum"]}, {name: "-ms-grid-row-align", browsers: ["E12", "IE10"], values: [{name: "center", description: "Places the center of the Grid Item's margin box at the center of the Grid Item's row."}, {name: "end", description: "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."}, {name: "start", description: "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."}, {name: "stretch", description: "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}], relevance: 50, description: "Aligns the rows in a grid.", restrictions: ["enum"]}, {name: "-ms-grid-rows", browsers: ["E12", "IE10"], relevance: 50, description: "Lays out the columns of the grid."}, {name: "-ms-grid-row-span", browsers: ["E12", "IE10"], relevance: 50, description: "Specifies the number of rows to span.", restrictions: ["integer"]}, {name: "-ms-high-contrast-adjust", browsers: ["E", "IE10"], values: [{name: "auto", description: "Properties will be adjusted as applicable."}, {name: "none", description: "No adjustments will be applied."}], status: "nonstandard", syntax: "auto | none", relevance: 0, description: "Specifies if properties should be adjusted in high contrast mode.", restrictions: ["enum"]}, {name: "-ms-hyphenate-limit-chars", browsers: ["E", "IE10"], values: [{name: "auto", description: "The user agent chooses a value that adapts to the current layout."}], status: "nonstandard", syntax: "auto | <integer>{1,3}", relevance: 0, description: "Specifies the minimum number of characters in a hyphenated word.", restrictions: ["integer"]}, {name: "-ms-hyphenate-limit-lines", browsers: ["E", "IE10"], values: [{name: "no-limit", description: "There is no limit."}], status: "nonstandard", syntax: "no-limit | <integer>", relevance: 0, description: "Indicates the maximum number of successive hyphenated lines in an element.", restrictions: ["integer"]}, {name: "-ms-hyphenate-limit-zone", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage> | <length>", relevance: 0, description: "Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.", restrictions: ["percentage", "length"]}, {name: "-ms-hyphens", browsers: ["E", "IE10"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-ms-ime-mode", browsers: ["IE10"], values: [{name: "active", description: "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."}, {name: "auto", description: "No change is made to the current input method editor state. This is the default."}, {name: "disabled", description: "The input method editor is disabled and may not be activated by the user."}, {name: "inactive", description: "The input method editor is initially inactive, but the user may activate it if they wish."}, {name: "normal", description: "The IME state should be normal; this value can be used in a user style sheet to override the page setting."}], relevance: 50, description: "Controls the state of the input method editor for text fields.", restrictions: ["enum"]}, {name: "-ms-interpolation-mode", browsers: ["IE7"], values: [{name: "bicubic"}, {name: "nearest-neighbor"}], relevance: 50, description: "Gets or sets the interpolation (resampling) method used to stretch images.", restrictions: ["enum"]}, {name: "-ms-layout-grid", browsers: ["E", "IE10"], values: [{name: "char", description: "Any of the range of character values available to the -ms-layout-grid-char property."}, {name: "line", description: "Any of the range of line values available to the -ms-layout-grid-line property."}, {name: "mode", description: "Any of the range of mode values available to the -ms-layout-grid-mode property."}, {name: "type", description: "Any of the range of type values available to the -ms-layout-grid-type property."}], relevance: 50, description: "Sets or retrieves the composite document grid properties that specify the layout of text characters."}, {name: "-ms-layout-grid-char", browsers: ["E", "IE10"], values: [{name: "auto", description: "Largest character in the font of the element is used to set the character grid."}, {name: "none", description: "Default. No character grid is set."}], relevance: 50, description: "Sets or retrieves the size of the character grid used for rendering the text content of an element.", restrictions: ["enum", "length", "percentage"]}, {name: "-ms-layout-grid-line", browsers: ["E", "IE10"], values: [{name: "auto", description: "Largest character in the font of the element is used to set the character grid."}, {name: "none", description: "Default. No grid line is set."}], relevance: 50, description: "Sets or retrieves the gridline value used for rendering the text content of an element.", restrictions: ["length"]}, {name: "-ms-layout-grid-mode", browsers: ["E", "IE10"], values: [{name: "both", description: "Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."}, {name: "char", description: "Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."}, {name: "line", description: "Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."}, {name: "none", description: "No grid is used."}], relevance: 50, description: "Gets or sets whether the text layout grid uses two dimensions.", restrictions: ["enum"]}, {name: "-ms-layout-grid-type", browsers: ["E", "IE10"], values: [{name: "fixed", description: "Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."}, {name: "loose", description: "Default. Grid used for Japanese and Korean characters."}, {name: "strict", description: "Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}], relevance: 50, description: "Sets or retrieves the type of grid used for rendering the text content of an element.", restrictions: ["enum"]}, {name: "-ms-line-break", browsers: ["E", "IE10"], values: [{name: "auto", description: "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."}, {name: "keep-all", description: "Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."}, {name: "newspaper", description: "Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."}, {name: "normal", description: "Breaks CJK scripts using a normal set of line-breaking rules."}, {name: "strict", description: "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}], relevance: 50, description: "Specifies what set of line breaking restrictions are in effect within the element.", restrictions: ["enum"]}, {name: "-ms-overflow-style", browsers: ["E", "IE10"], values: [{name: "auto", description: "No preference, UA should use the first scrolling method in the list that it supports."}, {name: "-ms-autohiding-scrollbar", description: "Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."}, {name: "none", description: "Indicates the element does not display scrollbars or panning indicators, even when its content overflows."}, {name: "scrollbar", description: 'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}], status: "nonstandard", syntax: "auto | none | scrollbar | -ms-autohiding-scrollbar", relevance: 0, description: "Specify whether content is clipped when it overflows the element's content area.", restrictions: ["enum"]}, {name: "-ms-perspective", browsers: ["IE10"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-ms-perspective-origin", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-perspective-origin-x", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-perspective-origin-y", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-progress-appearance", browsers: ["IE10"], values: [{name: "bar"}, {name: "ring"}], relevance: 50, description: "Gets or sets a value that specifies whether a progress control displays as a bar or a ring.", restrictions: ["enum"]}, {name: "-ms-scrollbar-3dlight-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-arrow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the arrow elements of a scroll arrow.", restrictions: ["color"]}, {name: "-ms-scrollbar-base-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", restrictions: ["color"]}, {name: "-ms-scrollbar-darkshadow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the gutter of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-face-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-highlight-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-shadow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-track-color", browsers: ["IE5"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"}], description: "Determines the color of the track element of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scroll-chaining", browsers: ["E", "IE10"], values: [{name: "chained"}, {name: "none"}], status: "nonstandard", syntax: "chained | none", relevance: 0, description: "Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.", restrictions: ["enum", "length"]}, {name: "-ms-scroll-limit", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.", restrictions: ["length"]}, {name: "-ms-scroll-limit-x-max", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "auto | <length>", relevance: 0, description: "Gets or sets a value that specifies the maximum value for the scrollLeft property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-x-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that specifies the minimum value for the scrollLeft property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-y-max", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "auto | <length>", relevance: 0, description: "Gets or sets a value that specifies the maximum value for the scrollTop property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-y-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that specifies the minimum value for the scrollTop property.", restrictions: ["length"]}, {name: "-ms-scroll-rails", browsers: ["E", "IE10"], values: [{name: "none"}, {name: "railed"}], status: "nonstandard", syntax: "none | railed", relevance: 0, description: "Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).", restrictions: ["enum", "length"]}, {name: "-ms-scroll-snap-points-x", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", relevance: 0, description: "Gets or sets a value that defines where snap-points will be located along the x-axis.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-points-y", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", relevance: 0, description: "Gets or sets a value that defines where snap-points will be located along the y-axis.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-type", browsers: ["E", "IE10"], values: [{name: "none", description: "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."}, {name: "mandatory", description: "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."}, {name: "proximity", description: "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}], status: "nonstandard", syntax: "none | proximity | mandatory", relevance: 0, description: "Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-x", browsers: ["E", "IE10"], values: [{name: "mandatory"}, {name: "none"}, {name: "proximity"}, {name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-y", browsers: ["E", "IE10"], values: [{name: "mandatory"}, {name: "none"}, {name: "proximity"}, {name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.", restrictions: ["enum"]}, {name: "-ms-scroll-translation", browsers: ["E", "IE10"], values: [{name: "none"}, {name: "vertical-to-horizontal"}], status: "nonstandard", syntax: "none | vertical-to-horizontal", relevance: 0, description: "Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.", restrictions: ["enum"]}, {name: "-ms-text-align-last", browsers: ["E", "IE8"], values: [{name: "auto"}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], relevance: 50, description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "-ms-text-autospace", browsers: ["E", "IE8"], values: [{name: "ideograph-alpha", description: "Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."}, {name: "ideograph-numeric", description: "Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."}, {name: "ideograph-parenthesis", description: "Creates extra spacing between normal (non wide) parenthesis and ideographs."}, {name: "ideograph-space", description: "Extends the width of the space character while surrounded by ideographs."}, {name: "none", description: "No extra space is created."}, {name: "punctuation", description: "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}], status: "nonstandard", syntax: "none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space", relevance: 0, description: "Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.", restrictions: ["enum"]}, {name: "-ms-text-combine-horizontal", browsers: ["E", "IE11"], values: [{name: "all", description: "Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."}, {name: "digits", description: "Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030\u2013U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."}, {name: "none", description: "No special processing."}], relevance: 50, description: "This property specifies the combination of multiple characters into the space of a single character.", restrictions: ["enum", "integer"]}, {name: "-ms-text-justify", browsers: ["E", "IE8"], values: [{name: "auto", description: "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."}, {name: "distribute", description: "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."}, {name: "inter-cluster", description: "Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."}, {name: "inter-ideograph", description: "Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."}, {name: "inter-word", description: "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."}, {name: "kashida", description: "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}], relevance: 50, description: "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.", restrictions: ["enum"]}, {name: "-ms-text-kashida-space", browsers: ["E", "IE10"], relevance: 50, description: "Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.", restrictions: ["percentage"]}, {name: "-ms-text-overflow", browsers: ["IE10"], values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], relevance: 50, description: "Text can overflow for example when it is prevented from wrapping", restrictions: ["enum"]}, {name: "-ms-text-size-adjust", browsers: ["E", "IE10"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["enum", "percentage"]}, {name: "-ms-text-underline-position", browsers: ["E", "IE10"], values: [{name: "alphabetic", description: "The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."}, {name: "auto", description: "The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."}, {name: "over", description: "The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."}, {name: "under", description: "The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}], relevance: 50, description: "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text", restrictions: ["enum"]}, {name: "-ms-touch-action", browsers: ["IE10"], values: [{name: "auto", description: "The element is a passive element, with several exceptions."}, {name: "double-tap-zoom", description: "The element will zoom on double-tap."}, {name: "manipulation", description: "The element is a manipulation-causing element."}, {name: "none", description: "The element is a manipulation-blocking element."}, {name: "pan-x", description: "The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."}, {name: "pan-y", description: "The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."}, {name: "pinch-zoom", description: "The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}], relevance: 50, description: "Gets or sets a value that indicates whether and how a given region can be manipulated by the user.", restrictions: ["enum"]}, {name: "-ms-touch-select", browsers: ["E", "IE10"], values: [{name: "grippers", description: "Grippers are always on."}, {name: "none", description: "Grippers are always off."}], status: "nonstandard", syntax: "grippers | none", relevance: 0, description: "Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.", restrictions: ["enum"]}, {name: "-ms-transform", browsers: ["IE9-9"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-ms-transform-origin", browsers: ["IE9-9"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-ms-transform-origin-x", browsers: ["IE10"], relevance: 50, description: "The x coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-transform-origin-y", browsers: ["IE10"], relevance: 50, description: "The y coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-transform-origin-z", browsers: ["IE10"], relevance: 50, description: "The z coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-user-select", browsers: ["E", "IE10"], values: [{name: "element"}, {name: "none"}, {name: "text"}], status: "nonstandard", syntax: "none | element | text", relevance: 0, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "-ms-word-break", browsers: ["IE8"], values: [{name: "break-all", description: "Lines may break between any two grapheme clusters for non-CJK scripts."}, {name: "keep-all", description: "Block characters can no longer create implied break points."}, {name: "normal", description: "Breaks non-CJK scripts according to their own rules."}], relevance: 50, description: "Specifies line break opportunities for non-CJK scripts.", restrictions: ["enum"]}, {name: "-ms-word-wrap", browsers: ["IE8"], values: [{name: "break-word", description: "An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], relevance: 50, description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", restrictions: ["enum"]}, {name: "-ms-wrap-flow", browsers: ["E", "IE10"], values: [{name: "auto", description: "For floats an exclusion is created, for all other elements an exclusion is not created."}, {name: "both", description: "Inline flow content can flow on all sides of the exclusion."}, {name: "clear", description: "Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."}, {name: "end", description: "Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."}, {name: "maximum", description: "Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."}, {name: "minimum", description: "Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content\u2019s containing block, and must leave the other edge of the exclusion empty."}, {name: "start", description: "Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}], status: "nonstandard", syntax: "auto | both | start | end | maximum | clear", relevance: 0, description: "An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.", restrictions: ["enum"]}, {name: "-ms-wrap-margin", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that is used to offset the inner wrap shape from other shapes.", restrictions: ["length", "percentage"]}, {name: "-ms-wrap-through", browsers: ["E", "IE10"], values: [{name: "none", description: "The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."}, {name: "wrap", description: "The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}], status: "nonstandard", syntax: "wrap | none", relevance: 0, description: "Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.", restrictions: ["enum"]}, {name: "-ms-writing-mode", browsers: ["IE8"], values: [{name: "bt-lr"}, {name: "bt-rl"}, {name: "lr-bt"}, {name: "lr-tb"}, {name: "rl-bt"}, {name: "rl-tb"}, {name: "tb-lr"}, {name: "tb-rl"}], relevance: 50, description: "Shorthand property for both 'direction' and 'block-progression'.", restrictions: ["enum"]}, {name: "-ms-zoom", browsers: ["IE8"], values: [{name: "normal"}], relevance: 50, description: "Sets or retrieves the magnification scale of the object.", restrictions: ["enum", "integer", "number", "percentage"]}, {name: "-ms-zoom-animation", browsers: ["IE10"], values: [{name: "default"}, {name: "none"}], relevance: 50, description: "Gets or sets a value that indicates whether an animation is used when zooming.", restrictions: ["enum"]}, {name: "nav-down", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-index", browsers: ["O9.5"], values: [{name: "auto", description: "The element's sequential navigation order is assigned automatically by the user agent."}], relevance: 50, description: "Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').", restrictions: ["number"]}, {name: "nav-left", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-right", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-up", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "negative", browsers: ["FF33"], syntax: "<symbol> <symbol>?", relevance: 50, description: "@counter-style descriptor. Defines how to alter the representation when the counter value is negative.", restrictions: ["image", "identifier", "string"]}, {name: "-o-animation", browsers: ["O12"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-o-animation-delay", browsers: ["O12"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-o-animation-direction", browsers: ["O12"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-o-animation-duration", browsers: ["O12"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-o-animation-fill-mode", browsers: ["O12"], values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], relevance: 50, description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "-o-animation-iteration-count", browsers: ["O12"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-o-animation-name", browsers: ["O12"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-o-animation-play-state", browsers: ["O12"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-o-animation-timing-function", browsers: ["O12"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "object-fit", browsers: ["E16", "FF36", "S10", "C31", "O19"], values: [{name: "contain", description: "The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."}, {name: "cover", description: "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."}, {name: "fill", description: "The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."}, {name: "none", description: "The replaced content is not resized to fit inside the element's content box"}, {name: "scale-down", description: "Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}], syntax: "fill | contain | cover | none | scale-down", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/object-fit"}], description: "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", restrictions: ["enum"]}, {name: "object-position", browsers: ["E16", "FF36", "S10", "C31", "O19"], syntax: "<position>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/object-position"}], description: "Determines the alignment of the replaced element inside its box.", restrictions: ["position", "length", "percentage"]}, {name: "-o-border-image", browsers: ["O11.6"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "image", "enum"]}, {name: "-o-object-fit", browsers: ["O10.6"], values: [{name: "contain", description: "The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."}, {name: "cover", description: "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."}, {name: "fill", description: "The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."}, {name: "none", description: "The replaced content is not resized to fit inside the element's content box"}, {name: "scale-down", description: "Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}], relevance: 50, description: "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", restrictions: ["enum"]}, {name: "-o-object-position", browsers: ["O10.6"], relevance: 50, description: "Determines the alignment of the replaced element inside its box.", restrictions: ["position", "length", "percentage"]}, {name: "opacity", syntax: "<alpha-value>", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/opacity"}], description: "Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.", restrictions: ["number(0-1)"]}, {name: "order", syntax: "<integer>", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/order"}], description: "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", restrictions: ["integer"]}, {name: "orphans", browsers: ["E12", "S1.3", "C25", "IE8", "O9.2"], syntax: "<integer>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/orphans"}], description: "Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.", restrictions: ["integer"]}, {name: "-o-table-baseline", browsers: ["O9.6"], relevance: 50, description: "Determines which row of a inline-table should be used as baseline of inline-table.", restrictions: ["integer"]}, {name: "-o-tab-size", browsers: ["O10.6"], relevance: 50, description: "This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", restrictions: ["integer", "length"]}, {name: "-o-text-overflow", browsers: ["O10"], values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], relevance: 50, description: "Text can overflow for example when it is prevented from wrapping", restrictions: ["enum"]}, {name: "-o-transform", browsers: ["O10.5"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-o-transform-origin", browsers: ["O10.5"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["positon", "length", "percentage"]}, {name: "-o-transition", browsers: ["O11.5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-o-transition-delay", browsers: ["O11.5"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-o-transition-duration", browsers: ["O11.5"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-o-transition-property", browsers: ["O11.5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-o-transition-timing-function", browsers: ["O11.5"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "offset-block-end", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-block-start", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-inline-end", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-inline-start", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "outline", values: [{name: "auto", description: "Permits the user agent to render a custom outline style, typically the default platform style."}, {name: "invert", description: "Performs a color inversion on the pixels on the screen."}], syntax: "[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline"}], description: "Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.", restrictions: ["length", "line-width", "line-style", "color", "enum"]}, {name: "outline-color", values: [{name: "invert", description: "Performs a color inversion on the pixels on the screen."}], syntax: "<color> | invert", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-color"}], description: "The color of the outline.", restrictions: ["enum", "color"]}, {name: "outline-offset", browsers: ["E15", "FF1.5", "S1.2", "C1", "O9.5"], syntax: "<length>", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-offset"}], description: "Offset the outline and draw it beyond the border edge.", restrictions: ["length"]}, {name: "outline-style", values: [{name: "auto", description: "Permits the user agent to render a custom outline style, typically the default platform style."}], syntax: "auto | <'border-style'>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-style"}], description: "Style of the outline.", restrictions: ["line-style", "enum"]}, {name: "outline-width", syntax: "<line-width>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-width"}], description: "Width of the outline.", restrictions: ["length", "line-width"]}, {name: "overflow", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "-moz-hidden-unscrollable", description: "Same as the standardized 'clip', except doesn\u2019t establish a block formatting context."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "[ visible | hidden | clip | scroll | auto ]{1,2}", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow"}], description: "Shorthand for setting 'overflow-x' and 'overflow-y'.", restrictions: ["enum"]}, {name: "overflow-wrap", values: [{name: "break-word", description: "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], syntax: "normal | break-word | anywhere", relevance: 63, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}], description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.", restrictions: ["enum"]}, {name: "overflow-x", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "visible | hidden | clip | scroll | auto", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-x"}], description: "Specifies the handling of overflow in the horizontal direction.", restrictions: ["enum"]}, {name: "overflow-y", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "visible | hidden | clip | scroll | auto", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-y"}], description: "Specifies the handling of overflow in the vertical direction.", restrictions: ["enum"]}, {name: "pad", browsers: ["FF33"], syntax: "<integer> && <symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a \u201Cfixed-width\u201D counter style, where representations shorter than the pad value are padded with a particular <symbol>", restrictions: ["integer", "image", "string", "identifier"]}, {name: "padding", values: [], syntax: "[ <length> | <percentage> ]{1,4}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-bottom", syntax: "<length> | <percentage>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}], description: "Logical 'padding-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}], description: "Logical 'padding-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}], description: "Logical 'padding-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}], description: "Logical 'padding-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-left", syntax: "<length> | <percentage>", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-left"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-right", syntax: "<length> | <percentage>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-right"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-top", syntax: "<length> | <percentage>", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-top"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "page-break-after", values: [{name: "always", description: "Always force a page break after the generated box."}, {name: "auto", description: "Neither force nor forbid a page break after generated box."}, {name: "avoid", description: "Avoid a page break after the generated box."}, {name: "left", description: "Force one or two page breaks after the generated box so that the next page is formatted as a left page."}, {name: "right", description: "Force one or two page breaks after the generated box so that the next page is formatted as a right page."}], syntax: "auto | always | avoid | left | right | recto | verso", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-after"}], description: "Defines rules for page breaks after an element.", restrictions: ["enum"]}, {name: "page-break-before", values: [{name: "always", description: "Always force a page break before the generated box."}, {name: "auto", description: "Neither force nor forbid a page break before the generated box."}, {name: "avoid", description: "Avoid a page break before the generated box."}, {name: "left", description: "Force one or two page breaks before the generated box so that the next page is formatted as a left page."}, {name: "right", description: "Force one or two page breaks before the generated box so that the next page is formatted as a right page."}], syntax: "auto | always | avoid | left | right | recto | verso", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-before"}], description: "Defines rules for page breaks before an element.", restrictions: ["enum"]}, {name: "page-break-inside", values: [{name: "auto", description: "Neither force nor forbid a page break inside the generated box."}, {name: "avoid", description: "Avoid a page break inside the generated box."}], syntax: "auto | avoid", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}], description: "Defines rules for page breaks inside an element.", restrictions: ["enum"]}, {name: "paint-order", browsers: ["E17", "FF60", "S8", "C35", "O22"], values: [{name: "fill"}, {name: "markers"}, {name: "normal", description: "The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."}, {name: "stroke"}], syntax: "normal | [ fill || stroke || markers ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/paint-order"}], description: "Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.", restrictions: ["enum"]}, {name: "perspective", values: [{name: "none", description: "No perspective transform is applied."}], syntax: "none | <length>", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/perspective"}], description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length", "enum"]}, {name: "perspective-origin", syntax: "<position>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}], description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "pointer-events", values: [{name: "all", description: "The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."}, {name: "fill", description: "The given element can be the target element for pointer events whenever the pointer is over the interior of the element."}, {name: "none", description: "The given element does not receive pointer events."}, {name: "painted", description: 'The given element can be the target element for pointer events when the pointer is over a "painted" area. '}, {name: "stroke", description: "The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."}, {name: "visible", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and the pointer is over either the interior or the perimete of the element."}, {name: "visibleFill", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the interior of the element."}, {name: "visiblePainted", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over a \u2018painted\u2019 area."}, {name: "visibleStroke", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the perimeter of the element."}], syntax: "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit", relevance: 80, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/pointer-events"}], description: "Specifies under what circumstances a given element can be the target element for a pointer event.", restrictions: ["enum"]}, {name: "position", values: [{name: "absolute", description: "The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."}, {name: "fixed", description: "The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."}, {name: "-ms-page", description: "The box's position is calculated according to the 'absolute' model."}, {name: "relative", description: "The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."}, {name: "static", description: "The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."}, {name: "sticky", description: "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}, {name: "-webkit-sticky", description: "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}], syntax: "static | relative | absolute | sticky | fixed", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/position"}], description: "The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.", restrictions: ["enum"]}, {name: "prefix", browsers: ["FF33"], syntax: "<symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.", restrictions: ["image", "string", "identifier"]}, {name: "quotes", values: [{name: "none", description: "The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}], syntax: "none | auto | [ <string> <string> ]+", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/quotes"}], description: "Specifies quotation marks for any number of embedded quotations.", restrictions: ["string"]}, {name: "range", browsers: ["FF33"], values: [{name: "auto", description: "The range depends on the counter system."}, {name: "infinite", description: "If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}], syntax: "[ [ <integer> | infinite ]{2} ]# | auto", relevance: 50, description: "@counter-style descriptor. Defines the ranges over which the counter style is defined.", restrictions: ["integer", "enum"]}, {name: "resize", browsers: ["E79", "FF4", "S3", "C1", "O12.1"], values: [{name: "both", description: "The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."}, {name: "horizontal", description: "The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."}, {name: "none", description: "The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."}, {name: "vertical", description: "The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}], syntax: "none | both | horizontal | vertical | block | inline", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/resize"}], description: "Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.", restrictions: ["enum"]}, {name: "right", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/right"}], description: "Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "ruby-align", browsers: ["FF38"], values: [{name: "auto", browsers: ["FF38"], description: "The user agent determines how the ruby contents are aligned. This is the initial value."}, {name: "center", description: "The ruby content is centered within its box."}, {name: "distribute-letter", browsers: ["FF38"], description: "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."}, {name: "distribute-space", browsers: ["FF38"], description: "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."}, {name: "left", description: "The ruby text content is aligned with the start edge of the base."}, {name: "line-edge", browsers: ["FF38"], description: "If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."}, {name: "right", browsers: ["FF38"], description: "The ruby text content is aligned with the end edge of the base."}, {name: "start", browsers: ["FF38"], description: "The ruby text content is aligned with the start edge of the base."}, {name: "space-between", browsers: ["FF38"], description: "The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"}, {name: "space-around", browsers: ["FF38"], description: "As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}], status: "experimental", syntax: "start | center | space-between | space-around", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ruby-align"}], description: "Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.", restrictions: ["enum"]}, {name: "ruby-overhang", browsers: ["FF10", "IE5"], values: [{name: "auto", description: "The ruby text can overhang text adjacent to the base on either side. This is the initial value."}, {name: "end", description: "The ruby text can overhang the text that follows it."}, {name: "none", description: "The ruby text cannot overhang any text adjacent to its base, only its own base."}, {name: "start", description: "The ruby text can overhang the text that precedes it."}], relevance: 50, description: "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.", restrictions: ["enum"]}, {name: "ruby-position", browsers: ["E12", "FF38"], values: [{name: "after", description: "The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."}, {name: "before", description: "The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."}, {name: "inline"}, {name: "right", description: "The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}], status: "experimental", syntax: "over | under | inter-character", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ruby-position"}], description: "Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.", restrictions: ["enum"]}, {name: "ruby-span", browsers: ["FF10"], values: [{name: "attr(x)", description: "The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."}, {name: "none", description: "No spanning. The computed value is '1'."}], relevance: 50, description: "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.", restrictions: ["enum"]}, {name: "scrollbar-3dlight-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}], description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-arrow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}], description: "Determines the color of the arrow elements of a scroll arrow.", restrictions: ["color"]}, {name: "scrollbar-base-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}], description: "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", restrictions: ["color"]}, {name: "scrollbar-darkshadow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}], description: "Determines the color of the gutter of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-face-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}], description: "Determines the color of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-highlight-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}], description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-shadow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}], description: "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-track-color", browsers: ["IE6"], relevance: 50, description: "Determines the color of the track element of a scroll bar.", restrictions: ["color"]}, {name: "scroll-behavior", browsers: ["E79", "FF36", "C61", "O48"], values: [{name: "auto", description: "Scrolls in an instant fashion."}, {name: "smooth", description: "Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}], syntax: "auto | smooth", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}], description: "Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.", restrictions: ["enum"]}, {name: "scroll-snap-coordinate", browsers: ["FF39"], values: [{name: "none", description: "Specifies that this element does not contribute a snap point."}], status: "obsolete", syntax: "none | <position>#", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"}], description: "Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container\u2019s snap-destination for the respective axis.", restrictions: ["position", "length", "percentage", "enum"]}, {name: "scroll-snap-destination", browsers: ["FF39"], status: "obsolete", syntax: "<position>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"}], description: "Define the x and y coordinate within the scroll container\u2019s visual viewport which element snap points will align with.", restrictions: ["position", "length", "percentage"]}, {name: "scroll-snap-points-x", browsers: ["FF39", "S9"], values: [{name: "none", description: "No snap points are defined by this scroll container."}, {name: "repeat()", description: "Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}], status: "obsolete", syntax: "none | repeat( <length-percentage> )", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"}], description: "Defines the positioning of snap points along the x axis of the scroll container it is applied to.", restrictions: ["enum"]}, {name: "scroll-snap-points-y", browsers: ["FF39", "S9"], values: [{name: "none", description: "No snap points are defined by this scroll container."}, {name: "repeat()", description: "Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}], status: "obsolete", syntax: "none | repeat( <length-percentage> )", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"}], description: "Defines the positioning of snap points along the y axis of the scroll container it is applied to.", restrictions: ["enum"]}, {name: "scroll-snap-type", values: [{name: "none", description: "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."}, {name: "mandatory", description: "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."}, {name: "proximity", description: "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}], syntax: "none | [ x | y | block | inline | both ] [ mandatory | proximity ]?", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}], description: "Defines how strictly snap points are enforced on the scroll container.", restrictions: ["enum"]}, {name: "shape-image-threshold", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], syntax: "<alpha-value>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}], description: "Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.", restrictions: ["number"]}, {name: "shape-margin", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], syntax: "<length-percentage>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-margin"}], description: "Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.", restrictions: ["url", "length", "percentage"]}, {name: "shape-outside", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], values: [{name: "margin-box", description: "The background is painted within (clipped to) the margin box."}, {name: "none", description: "The float area is unaffected."}], syntax: "none | <shape-box> || <basic-shape> | <image>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-outside"}], description: "Specifies an orthogonal rotation to be applied to an image before it is laid out.", restrictions: ["image", "box", "shape", "enum"]}, {name: "shape-rendering", values: [{name: "auto", description: "Suppresses aural rendering."}, {name: "crispEdges", description: "Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."}, {name: "geometricPrecision", description: "Emphasize geometric precision over speed and crisp edges."}, {name: "optimizeSpeed", description: "Emphasize rendering speed over geometric precision and crisp edges."}], relevance: 50, description: "Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.", restrictions: ["enum"]}, {name: "size", browsers: ["C", "O8"], syntax: "<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]", relevance: 52, description: "The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.", restrictions: ["length"]}, {name: "src", values: [{name: "url()", description: "Reference font by URL"}, {name: "format()", description: "Optional hint describing the format of the font resource."}, {name: "local()", description: "Format-specific string that identifies a locally available copy of a given font."}], syntax: "[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#", relevance: 67, description: "@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.", restrictions: ["enum", "url", "identifier"]}, {name: "stop-color", relevance: 51, description: "Indicates what color to use at that gradient stop.", restrictions: ["color"]}, {name: "stop-opacity", relevance: 50, description: "Defines the opacity of a given gradient stop.", restrictions: ["number(0-1)"]}, {name: "stroke", values: [{name: "url()", description: "A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."}, {name: "none", description: "No paint is applied in this layer."}], relevance: 63, description: "Paints along the outline of the given graphical element.", restrictions: ["color", "enum", "url"]}, {name: "stroke-dasharray", values: [{name: "none", description: "Indicates that no dashing is used."}], relevance: 58, description: "Controls the pattern of dashes and gaps used to stroke paths.", restrictions: ["length", "percentage", "number", "enum"]}, {name: "stroke-dashoffset", relevance: 58, description: "Specifies the distance into the dash pattern to start the dash.", restrictions: ["percentage", "length"]}, {name: "stroke-linecap", values: [{name: "butt", description: "Indicates that the stroke for each subpath does not extend beyond its two endpoints."}, {name: "round", description: "Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."}, {name: "square", description: "Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}], relevance: 53, description: "Specifies the shape to be used at the end of open subpaths when they are stroked.", restrictions: ["enum"]}, {name: "stroke-linejoin", values: [{name: "bevel", description: "Indicates that a bevelled corner is to be used to join path segments."}, {name: "miter", description: "Indicates that a sharp corner is to be used to join path segments."}, {name: "round", description: "Indicates that a round corner is to be used to join path segments."}], relevance: 50, description: "Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.", restrictions: ["enum"]}, {name: "stroke-miterlimit", relevance: 50, description: "When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.", restrictions: ["number"]}, {name: "stroke-opacity", relevance: 51, description: "Specifies the opacity of the painting operation used to stroke the current object.", restrictions: ["number(0-1)"]}, {name: "stroke-width", relevance: 60, description: "Specifies the width of the stroke on the current object.", restrictions: ["percentage", "length"]}, {name: "suffix", browsers: ["FF33"], syntax: "<symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.", restrictions: ["image", "string", "identifier"]}, {name: "system", browsers: ["FF33"], values: [{name: "additive", description: "Represents \u201Csign-value\u201D numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together."}, {name: "alphabetic", description: 'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'}, {name: "cyclic", description: "Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."}, {name: "extends", description: "Use the algorithm of another counter style, but alter other aspects."}, {name: "fixed", description: "Runs through its list of counter symbols once, then falls back."}, {name: "numeric", description: `interprets the list of counter symbols as digits to a "place-value" numbering system, similar to the default 'decimal' counter style.`}, {name: "symbolic", description: "Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}], syntax: "cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]", relevance: 50, description: "@counter-style descriptor. Specifies which algorithm will be used to construct the counter\u2019s representation based on the counter value.", restrictions: ["enum", "integer"]}, {name: "symbols", browsers: ["FF33"], syntax: "<symbol>+", relevance: 50, description: "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.", restrictions: ["image", "string", "identifier"]}, {name: "table-layout", values: [{name: "auto", description: "Use any automatic table layout algorithm."}, {name: "fixed", description: "Use the fixed table layout algorithm."}], syntax: "auto | fixed", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/table-layout"}], description: "Controls the algorithm used to lay out the table cells, rows, and columns.", restrictions: ["enum"]}, {name: "tab-size", browsers: ["E79", "FF4", "S6.1", "C21", "O15"], syntax: "<integer> | <length>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/tab-size"}], description: "Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", restrictions: ["integer", "length"]}, {name: "text-align", values: [{name: "center", description: "The inline contents are centered within the line box."}, {name: "end", description: "The inline contents are aligned to the end edge of the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}, {name: "start", description: "The inline contents are aligned to the start edge of the line box."}], syntax: "start | end | left | right | center | justify | match-parent", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-align"}], description: "Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.", restrictions: ["string"]}, {name: "text-align-last", browsers: ["E12", "FF49", "C47", "IE5.5", "O34"], values: [{name: "auto", description: "Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], syntax: "auto | start | end | left | right | center | justify", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-align-last"}], description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "text-anchor", values: [{name: "end", description: "The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."}, {name: "middle", description: "The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."}, {name: "start", description: "The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}], relevance: 50, description: "Used to align (start-, middle- or end-alignment) a string of text relative to a given point.", restrictions: ["enum"]}, {name: "text-decoration", values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Produces no line."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "solid", description: "Produces a solid line."}, {name: "underline", description: "Each line of text is underlined."}, {name: "wavy", description: "Produces a wavy line."}], syntax: "<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration"}], description: "Decorations applied to font used for an element's text.", restrictions: ["enum", "color"]}, {name: "text-decoration-color", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], syntax: "<color>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}], description: "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", restrictions: ["color"]}, {name: "text-decoration-line", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], values: [{name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Neither produces nor inhibits text decoration."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "underline", description: "Each line of text is underlined."}], syntax: "none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}], description: "Specifies what line decorations, if any, are added to the element.", restrictions: ["enum"]}, {name: "text-decoration-style", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "none", description: "Produces no line."}, {name: "solid", description: "Produces a solid line."}, {name: "wavy", description: "Produces a wavy line."}], syntax: "solid | double | dotted | dashed | wavy", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}], description: "Specifies the line style for underline, line-through and overline text decoration.", restrictions: ["enum"]}, {name: "text-indent", values: [], syntax: "<length-percentage> && hanging? && each-line?", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-indent"}], description: "Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.", restrictions: ["percentage", "length"]}, {name: "text-justify", browsers: ["E12", "FF55", "C32", "IE11", "O19"], values: [{name: "auto", description: "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."}, {name: "distribute", description: "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."}, {name: "distribute-all-lines"}, {name: "inter-cluster", description: "Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."}, {name: "inter-ideograph", description: "Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."}, {name: "inter-word", description: "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."}, {name: "kashida", description: "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}, {name: "newspaper"}], syntax: "auto | inter-character | inter-word | none", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-justify"}], description: "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.", restrictions: ["enum"]}, {name: "text-orientation", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], values: [{name: "sideways", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], description: "This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."}, {name: "sideways-right", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], description: "In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xB0 clockwise."}, {name: "upright", description: "In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}], syntax: "mixed | upright | sideways", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-orientation"}], description: "Specifies the orientation of text within a line.", restrictions: ["enum"]}, {name: "text-overflow", values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], syntax: "[ clip | ellipsis | <string> ]{1,2}", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-overflow"}], description: "Text can overflow for example when it is prevented from wrapping.", restrictions: ["enum", "string"]}, {name: "text-rendering", browsers: ["E79", "FF1", "S5", "C4", "O15"], values: [{name: "auto"}, {name: "geometricPrecision", description: "Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."}, {name: "optimizeLegibility", description: "Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."}, {name: "optimizeSpeed", description: "Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}], syntax: "auto | optimizeSpeed | optimizeLegibility | geometricPrecision", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-rendering"}], description: "The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The \u2018text-rendering\u2019 property provides these hints.", restrictions: ["enum"]}, {name: "text-shadow", values: [{name: "none", description: "No shadow."}], syntax: "none | <shadow-t>#", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-shadow"}], description: "Enables shadow effects to be applied to the text of the element.", restrictions: ["length", "color"]}, {name: "text-transform", values: [{name: "capitalize", description: "Puts the first typographic letter unit of each word in titlecase."}, {name: "lowercase", description: "Puts all letters in lowercase."}, {name: "none", description: "No effects."}, {name: "uppercase", description: "Puts all letters in uppercase."}], syntax: "none | capitalize | uppercase | lowercase | full-width | full-size-kana", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-transform"}], description: "Controls capitalization effects of an element\u2019s text.", restrictions: ["enum"]}, {name: "text-underline-position", values: [{name: "above"}, {name: "auto", description: "The user agent may use any algorithm to determine the underline\u2019s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."}, {name: "below", description: "The underline is aligned with the under edge of the element\u2019s content box."}], syntax: "auto | from-font | [ under || [ left | right ] ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}], description: "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text", restrictions: ["enum"]}, {name: "top", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/top"}], description: "Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "touch-action", values: [{name: "auto", description: "The user agent may determine any permitted touch behaviors for touches that begin on the element."}, {name: "cross-slide-x"}, {name: "cross-slide-y"}, {name: "double-tap-zoom"}, {name: "manipulation", description: "The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."}, {name: "none", description: "Touches that begin on the element must not trigger default touch behaviors."}, {name: "pan-x", description: "The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element\u2019s nearest ancestor with horizontally scrollable content."}, {name: "pan-y", description: "The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element\u2019s nearest ancestor with vertically scrollable content."}, {name: "pinch-zoom"}], syntax: "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation", relevance: 65, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/touch-action"}], description: "Determines whether touch input may trigger default behavior supplied by user agent.", restrictions: ["enum"]}, {name: "transform", values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective()", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], syntax: "none | <transform-list>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform"}], description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "transform-origin", syntax: "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-origin"}], description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "transform-style", browsers: ["E12", "FF16", "S9", "C36", "O23"], values: [{name: "flat", description: "All children of this element are rendered flattened into the 2D plane of the element."}, {name: "preserve-3d", browsers: ["E12", "FF16", "S9", "C36", "O23"], description: "Flattening is not performed, so children maintain their position in 3D space."}], syntax: "flat | preserve-3d", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-style"}], description: "Defines how nested elements are rendered in 3D space.", restrictions: ["enum"]}, {name: "transition", values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], syntax: "<single-transition>#", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition"}], description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "transition-delay", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-delay"}], description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "transition-duration", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-duration"}], description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "transition-property", values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], syntax: "none | <single-transition-property>#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-property"}], description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "transition-timing-function", syntax: "<timing-function>#", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}], description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "unicode-bidi", values: [{name: "bidi-override", description: "Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."}, {name: "embed", description: "If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."}, {name: "isolate", description: "The contents of the element are considered to be inside a separate, independent paragraph."}, {name: "isolate-override", description: "This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"}, {name: "normal", description: "The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."}, {name: "plaintext", description: "For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}], syntax: "normal | embed | isolate | bidi-override | isolate-override | plaintext", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}], description: "The level of embedding with respect to the bidirectional algorithm.", restrictions: ["enum"]}, {name: "unicode-range", values: [{name: "U+26", description: "Ampersand."}, {name: "U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00\u2013FB4F", description: "WGL4 character set (Pan-European)."}, {name: "U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF", description: "The Multilingual European Subset No. 1. Latin. Covers ~44 languages."}, {name: "U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD", description: "The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."}, {name: "U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD", description: "The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."}, {name: "U+00-7F", description: "Basic Latin (ASCII)."}, {name: "U+80-FF", description: "Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."}, {name: "U+100-17F", description: "Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."}, {name: "U+180-24F", description: "Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."}, {name: "U+1E00-1EFF", description: "Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."}, {name: "U+250-2AF", description: "International Phonetic Alphabet Extensions."}, {name: "U+370-3FF", description: "Greek and Coptic."}, {name: "U+1F00-1FFF", description: "Greek Extended. Accented characters for polytonic Greek."}, {name: "U+400-4FF", description: "Cyrillic."}, {name: "U+500-52F", description: "Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."}, {name: "U+00-52F, U+1E00-1FFF, U+2200\u201322FF", description: "Latin, Greek, Cyrillic, some punctuation and symbols."}, {name: "U+530\u201358F", description: "Armenian."}, {name: "U+590\u20135FF", description: "Hebrew."}, {name: "U+600\u20136FF", description: "Arabic."}, {name: "U+750\u201377F", description: "Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."}, {name: "U+8A0\u20138FF", description: "Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."}, {name: "U+700\u201374F", description: "Syriac."}, {name: "U+900\u201397F", description: "Devanagari."}, {name: "U+980\u20139FF", description: "Bengali."}, {name: "U+A00\u2013A7F", description: "Gurmukhi."}, {name: "U+A80\u2013AFF", description: "Gujarati."}, {name: "U+B00\u2013B7F", description: "Oriya."}, {name: "U+B80\u2013BFF", description: "Tamil."}, {name: "U+C00\u2013C7F", description: "Telugu."}, {name: "U+C80\u2013CFF", description: "Kannada."}, {name: "U+D00\u2013D7F", description: "Malayalam."}, {name: "U+D80\u2013DFF", description: "Sinhala."}, {name: "U+118A0\u2013118FF", description: "Warang Citi."}, {name: "U+E00\u2013E7F", description: "Thai."}, {name: "U+1A20\u20131AAF", description: "Tai Tham."}, {name: "U+AA80\u2013AADF", description: "Tai Viet."}, {name: "U+E80\u2013EFF", description: "Lao."}, {name: "U+F00\u2013FFF", description: "Tibetan."}, {name: "U+1000\u2013109F", description: "Myanmar (Burmese)."}, {name: "U+10A0\u201310FF", description: "Georgian."}, {name: "U+1200\u2013137F", description: "Ethiopic."}, {name: "U+1380\u2013139F", description: "Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"}, {name: "U+2D80\u20132DDF", description: "Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."}, {name: "U+AB00\u2013AB2F", description: "Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."}, {name: "U+1780\u201317FF", description: "Khmer."}, {name: "U+1800\u201318AF", description: "Mongolian."}, {name: "U+1B80\u20131BBF", description: "Sundanese."}, {name: "U+1CC0\u20131CCF", description: "Sundanese Supplement. Punctuation."}, {name: "U+4E00\u20139FD5", description: "CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."}, {name: "U+3400\u20134DB5", description: "CJK Unified Ideographs Extension A. Rare ideographs."}, {name: "U+2F00\u20132FDF", description: "Kangxi Radicals."}, {name: "U+2E80\u20132EFF", description: "CJK Radicals Supplement. Alternative forms of Kangxi Radicals."}, {name: "U+1100\u201311FF", description: "Hangul Jamo."}, {name: "U+AC00\u2013D7AF", description: "Hangul Syllables."}, {name: "U+3040\u2013309F", description: "Hiragana."}, {name: "U+30A0\u201330FF", description: "Katakana."}, {name: "U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F", description: "Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."}, {name: "U+A4D0\u2013A4FF", description: "Lisu."}, {name: "U+A000\u2013A48F", description: "Yi Syllables."}, {name: "U+A490\u2013A4CF", description: "Yi Radicals."}, {name: "U+2000-206F", description: "General Punctuation."}, {name: "U+3000\u2013303F", description: "CJK Symbols and Punctuation."}, {name: "U+2070\u2013209F", description: "Superscripts and Subscripts."}, {name: "U+20A0\u201320CF", description: "Currency Symbols."}, {name: "U+2100\u2013214F", description: "Letterlike Symbols."}, {name: "U+2150\u2013218F", description: "Number Forms."}, {name: "U+2190\u201321FF", description: "Arrows."}, {name: "U+2200\u201322FF", description: "Mathematical Operators."}, {name: "U+2300\u201323FF", description: "Miscellaneous Technical."}, {name: "U+E000-F8FF", description: "Private Use Area."}, {name: "U+FB00\u2013FB4F", description: "Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."}, {name: "U+FB50\u2013FDFF", description: "Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."}, {name: "U+1F600\u20131F64F", description: "Emoji: Emoticons."}, {name: "U+2600\u201326FF", description: "Emoji: Miscellaneous Symbols."}, {name: "U+1F300\u20131F5FF", description: "Emoji: Miscellaneous Symbols and Pictographs."}, {name: "U+1F900\u20131F9FF", description: "Emoji: Supplemental Symbols and Pictographs."}, {name: "U+1F680\u20131F6FF", description: "Emoji: Transport and Map Symbols."}], syntax: "<unicode-range>#", relevance: 58, description: "@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.", restrictions: ["unicode-range"]}, {name: "user-select", values: [{name: "all", description: "The content of the element must be selected atomically"}, {name: "auto"}, {name: "contain", description: "UAs must not allow a selection which is started in this element to be extended outside of this element."}, {name: "none", description: "The UA must not allow selections to be started in this element."}, {name: "text", description: "The element imposes no constraint on the selection."}], status: "nonstandard", syntax: "auto | text | none | contain | all", relevance: 24, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/user-select"}], description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "vertical-align", values: [{name: "auto", description: "Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."}, {name: "baseline", description: "Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."}, {name: "bottom", description: "Align the after edge of the extended inline box with the after-edge of the line box."}, {name: "middle", description: "Align the 'middle' baseline of the inline element with the middle baseline of the parent."}, {name: "sub", description: "Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"}, {name: "super", description: "Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"}, {name: "text-bottom", description: "Align the bottom of the box with the after-edge of the parent element's font."}, {name: "text-top", description: "Align the top of the box with the before-edge of the parent element's font."}, {name: "top", description: "Align the before edge of the extended inline box with the before-edge of the line box."}, {name: "-webkit-baseline-middle"}], syntax: "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/vertical-align"}], description: "Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.", restrictions: ["percentage", "length"]}, {name: "visibility", values: [{name: "collapse", description: "Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."}, {name: "hidden", description: "The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."}, {name: "visible", description: "The generated box is visible."}], syntax: "visible | hidden | collapse", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/visibility"}], description: "Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the \u2018display\u2019 property to \u2018none\u2019 to suppress box generation altogether).", restrictions: ["enum"]}, {name: "-webkit-animation", browsers: ["C", "S5"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-webkit-animation-delay", browsers: ["C", "S5"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-webkit-animation-direction", browsers: ["C", "S5"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-webkit-animation-duration", browsers: ["C", "S5"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-webkit-animation-fill-mode", browsers: ["C", "S5"], values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], relevance: 50, description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "-webkit-animation-iteration-count", browsers: ["C", "S5"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-webkit-animation-name", browsers: ["C", "S5"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-webkit-animation-play-state", browsers: ["C", "S5"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-webkit-animation-timing-function", browsers: ["C", "S5"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "-webkit-appearance", browsers: ["C", "S3"], values: [{name: "button"}, {name: "button-bevel"}, {name: "caps-lock-indicator"}, {name: "caret"}, {name: "checkbox"}, {name: "default-button"}, {name: "listbox"}, {name: "listitem"}, {name: "media-fullscreen-button"}, {name: "media-mute-button"}, {name: "media-play-button"}, {name: "media-seek-back-button"}, {name: "media-seek-forward-button"}, {name: "media-slider"}, {name: "media-sliderthumb"}, {name: "menulist"}, {name: "menulist-button"}, {name: "menulist-text"}, {name: "menulist-textfield"}, {name: "none"}, {name: "push-button"}, {name: "radio"}, {name: "scrollbarbutton-down"}, {name: "scrollbarbutton-left"}, {name: "scrollbarbutton-right"}, {name: "scrollbarbutton-up"}, {name: "scrollbargripper-horizontal"}, {name: "scrollbargripper-vertical"}, {name: "scrollbarthumb-horizontal"}, {name: "scrollbarthumb-vertical"}, {name: "scrollbartrack-horizontal"}, {name: "scrollbartrack-vertical"}, {name: "searchfield"}, {name: "searchfield-cancel-button"}, {name: "searchfield-decoration"}, {name: "searchfield-results-button"}, {name: "searchfield-results-decoration"}, {name: "slider-horizontal"}, {name: "sliderthumb-horizontal"}, {name: "sliderthumb-vertical"}, {name: "slider-vertical"}, {name: "square-button"}, {name: "textarea"}, {name: "textfield"}], status: "nonstandard", syntax: "none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield", relevance: 0, description: "Changes the appearance of buttons and other controls to resemble native controls.", restrictions: ["enum"]}, {name: "-webkit-backdrop-filter", browsers: ["S9"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", description: "A filter reference to a <filter> element."}], relevance: 50, description: "Applies a filter effect where the first filter in the list takes the element's background image as the input image.", restrictions: ["enum", "url"]}, {name: "-webkit-backface-visibility", browsers: ["C", "S5"], values: [{name: "hidden"}, {name: "visible"}], relevance: 50, description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "-webkit-background-clip", browsers: ["C", "S3"], relevance: 50, description: "Determines the background painting area.", restrictions: ["box"]}, {name: "-webkit-background-composite", browsers: ["C", "S3"], values: [{name: "border"}, {name: "padding"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-background-origin", browsers: ["C", "S3"], relevance: 50, description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "-webkit-border-image", browsers: ["C", "S5"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "-webkit-box-align", browsers: ["C", "S3"], values: [{name: "baseline", description: "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."}, {name: "center", description: "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."}, {name: "end", description: "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."}, {name: "start", description: "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."}, {name: "stretch", description: "The height of each child is adjusted to that of the containing block."}], relevance: 50, description: "Specifies the alignment of nested elements within an outer flexible box element.", restrictions: ["enum"]}, {name: "-webkit-box-direction", browsers: ["C", "S3"], values: [{name: "normal", description: "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."}, {name: "reverse", description: "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}], relevance: 50, description: "In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).", restrictions: ["enum"]}, {name: "-webkit-box-flex", browsers: ["C", "S3"], relevance: 50, description: "Specifies an element's flexibility.", restrictions: ["number"]}, {name: "-webkit-box-flex-group", browsers: ["C", "S3"], relevance: 50, description: "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", restrictions: ["integer"]}, {name: "-webkit-box-ordinal-group", browsers: ["C", "S3"], relevance: 50, description: "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", restrictions: ["integer"]}, {name: "-webkit-box-orient", browsers: ["C", "S3"], values: [{name: "block-axis", description: "Elements are oriented along the box's axis."}, {name: "horizontal", description: "The box displays its children from left to right in a horizontal line."}, {name: "inline-axis", description: "Elements are oriented vertically."}, {name: "vertical", description: "The box displays its children from stacked from top to bottom vertically."}], relevance: 50, description: "In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.", restrictions: ["enum"]}, {name: "-webkit-box-pack", browsers: ["C", "S3"], values: [{name: "center", description: "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."}, {name: "end", description: "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."}, {name: "justify", description: "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."}, {name: "start", description: "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}], relevance: 50, description: "Specifies alignment of child elements within the current element in the direction of orientation.", restrictions: ["enum"]}, {name: "-webkit-box-reflect", browsers: ["E79", "S4", "C4", "O15"], values: [{name: "above", description: "The reflection appears above the border box."}, {name: "below", description: "The reflection appears below the border box."}, {name: "left", description: "The reflection appears to the left of the border box."}, {name: "right", description: "The reflection appears to the right of the border box."}], status: "nonstandard", syntax: "[ above | below | right | left ]? <length>? <image>?", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}], description: "Defines a reflection of a border box."}, {name: "-webkit-box-sizing", browsers: ["C", "S3"], values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}], relevance: 50, description: "Box Model addition in CSS3.", restrictions: ["enum"]}, {name: "-webkit-break-after", browsers: ["S7"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-break-before", browsers: ["S7"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-break-inside", browsers: ["S7"], values: [{name: "auto", description: "Neither force nor forbid a page/column break inside the generated box."}, {name: "avoid", description: "Avoid a page/column break inside the generated box."}, {name: "avoid-column", description: "Avoid a column break inside the generated box."}, {name: "avoid-page", description: "Avoid a page break inside the generated box."}, {name: "avoid-region"}], relevance: 50, description: "Describes the page/column break behavior inside the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-after", browsers: ["C", "S3"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-before", browsers: ["C", "S3"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-inside", browsers: ["C", "S3"], values: [{name: "auto", description: "Neither force nor forbid a page/column break inside the generated box."}, {name: "avoid", description: "Avoid a page/column break inside the generated box."}, {name: "avoid-column", description: "Avoid a column break inside the generated box."}, {name: "avoid-page", description: "Avoid a page break inside the generated box."}, {name: "avoid-region"}], relevance: 50, description: "Describes the page/column break behavior inside the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-count", browsers: ["C", "S3"], values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], relevance: 50, description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer"]}, {name: "-webkit-column-gap", browsers: ["C", "S3"], values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], relevance: 50, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length"]}, {name: "-webkit-column-rule", browsers: ["C", "S3"], relevance: 50, description: "This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "-webkit-column-rule-color", browsers: ["C", "S3"], relevance: 50, description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "-webkit-column-rule-style", browsers: ["C", "S3"], relevance: 50, description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "-webkit-column-rule-width", browsers: ["C", "S3"], relevance: 50, description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "-webkit-columns", browsers: ["C", "S3"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer"]}, {name: "-webkit-column-span", browsers: ["C", "S3"], values: [{name: "all", description: "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."}, {name: "none", description: "The element does not span multiple columns."}], relevance: 50, description: "Describes the page/column break behavior after the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-width", browsers: ["C", "S3"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "This property describes the width of columns in multicol elements.", restrictions: ["length"]}, {name: "-webkit-filter", browsers: ["C18", "O15", "S6"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", description: "A filter reference to a <filter> element."}], relevance: 50, description: "Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.", restrictions: ["enum", "url"]}, {name: "-webkit-flow-from", browsers: ["S6.1"], values: [{name: "none", description: "The block container is not a CSS Region."}], relevance: 50, description: "Makes a block container a region and associates it with a named flow.", restrictions: ["identifier"]}, {name: "-webkit-flow-into", browsers: ["S6.1"], values: [{name: "none", description: "The element is not moved to a named flow and normal CSS processing takes place."}], relevance: 50, description: "Places an element or its contents into a named flow.", restrictions: ["identifier"]}, {name: "-webkit-font-feature-settings", browsers: ["C16"], values: [{name: '"c2cs"'}, {name: '"dlig"'}, {name: '"kern"'}, {name: '"liga"'}, {name: '"lnum"'}, {name: '"onum"'}, {name: '"smcp"'}, {name: '"swsh"'}, {name: '"tnum"'}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off"}, {name: "on"}], relevance: 50, description: "This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "-webkit-hyphens", browsers: ["S5.1"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-webkit-line-break", browsers: ["C", "S3"], values: [{name: "after-white-space"}, {name: "normal"}], relevance: 50, description: "Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."}, {name: "-webkit-margin-bottom-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-margin-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-margin-start", browsers: ["C", "S3"], values: [{name: "auto"}], relevance: 50, restrictions: ["percentage", "length"]}, {name: "-webkit-margin-top-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-mask-clip", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "[ <box> | border | padding | content | text ]#", relevance: 0, description: "Determines the mask painting area, which determines the area that is affected by the mask.", restrictions: ["box"]}, {name: "-webkit-mask-image", browsers: ["C", "O15", "S4"], values: [{name: "none", description: "Counts as a transparent black image layer."}, {name: "url()", description: "Reference to a <mask element or to a CSS image."}], status: "nonstandard", syntax: "<mask-reference>#", relevance: 0, description: "Sets the mask layer image of an element.", restrictions: ["url", "image", "enum"]}, {name: "-webkit-mask-origin", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "[ <box> | border | padding | content ]#", relevance: 0, description: "Specifies the mask positioning area.", restrictions: ["box"]}, {name: "-webkit-mask-repeat", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "<repeat-style>#", relevance: 0, description: "Specifies how mask layer images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "-webkit-mask-size", browsers: ["C", "O15", "S4"], values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], status: "nonstandard", syntax: "<bg-size>#", relevance: 0, description: "Specifies the size of the mask layer images.", restrictions: ["length", "percentage", "enum"]}, {name: "-webkit-nbsp-mode", browsers: ["C", "S3"], values: [{name: "normal"}, {name: "space"}], relevance: 50, description: "Defines the behavior of nonbreaking spaces within text."}, {name: "-webkit-overflow-scrolling", browsers: ["C", "S5"], values: [{name: "auto"}, {name: "touch"}], status: "nonstandard", syntax: "auto | touch", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}], description: "Specifies whether to use native-style scrolling in an overflow:scroll element."}, {name: "-webkit-padding-start", browsers: ["C", "S3"], relevance: 50, restrictions: ["percentage", "length"]}, {name: "-webkit-perspective", browsers: ["C", "S4"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-webkit-perspective-origin", browsers: ["C", "S4"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-webkit-region-fragment", browsers: ["S7"], values: [{name: "auto", description: "Content flows as it would in a regular content box."}, {name: "break", description: "If the content fits within the CSS Region, then this property has no effect."}], relevance: 50, description: "The 'region-fragment' property controls the behavior of the last region associated with a named flow.", restrictions: ["enum"]}, {name: "-webkit-tap-highlight-color", browsers: ["E12", "C16", "O\u226415"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}], restrictions: ["color"]}, {name: "-webkit-text-fill-color", browsers: ["E12", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}], restrictions: ["color"]}, {name: "-webkit-text-size-adjust", browsers: ["E", "C", "S3"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["percentage"]}, {name: "-webkit-text-stroke", browsers: ["E15", "FF49", "S3", "C4", "O15"], status: "nonstandard", syntax: "<length> || <color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}], restrictions: ["length", "line-width", "color", "percentage"]}, {name: "-webkit-text-stroke-color", browsers: ["E15", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}], restrictions: ["color"]}, {name: "-webkit-text-stroke-width", browsers: ["E15", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<length>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}], restrictions: ["length", "line-width", "percentage"]}, {name: "-webkit-touch-callout", browsers: ["S3"], values: [{name: "none"}], status: "nonstandard", syntax: "default | none", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}], restrictions: ["enum"]}, {name: "-webkit-transform", browsers: ["C", "O12", "S3.1"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective()", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-webkit-transform-origin", browsers: ["C", "O15", "S3.1"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-webkit-transform-origin-x", browsers: ["C", "S3.1"], relevance: 50, description: "The x coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-origin-y", browsers: ["C", "S3.1"], relevance: 50, description: "The y coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-origin-z", browsers: ["C", "S4"], relevance: 50, description: "The z coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-style", browsers: ["C", "S4"], values: [{name: "flat", description: "All children of this element are rendered flattened into the 2D plane of the element."}], relevance: 50, description: "Defines how nested elements are rendered in 3D space.", restrictions: ["enum"]}, {name: "-webkit-transition", browsers: ["C", "O12", "S5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-webkit-transition-delay", browsers: ["C", "O12", "S5"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-webkit-transition-duration", browsers: ["C", "O12", "S5"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-webkit-transition-property", browsers: ["C", "O12", "S5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-webkit-transition-timing-function", browsers: ["C", "O12", "S5"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "-webkit-user-drag", browsers: ["S3"], values: [{name: "auto"}, {name: "element"}, {name: "none"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-user-modify", browsers: ["C", "S3"], values: [{name: "read-only"}, {name: "read-write"}, {name: "read-write-plaintext-only"}], status: "nonstandard", syntax: "read-only | read-write | read-write-plaintext-only", relevance: 0, description: "Determines whether a user can edit the content of an element.", restrictions: ["enum"]}, {name: "-webkit-user-select", browsers: ["C", "S3"], values: [{name: "auto"}, {name: "none"}, {name: "text"}], relevance: 50, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "white-space", values: [{name: "normal", description: "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'."}, {name: "nowrap", description: "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'."}, {name: "pre", description: "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'."}, {name: "pre-line", description: "Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'."}, {name: "pre-wrap", description: "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'."}], syntax: "normal | pre | nowrap | pre-wrap | pre-line | break-spaces", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/white-space"}], description: "Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.", restrictions: ["enum"]}, {name: "widows", browsers: ["E12", "S1.3", "C25", "IE8", "O9.2"], syntax: "<integer>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/widows"}], description: "Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.", restrictions: ["integer"]}, {name: "width", values: [{name: "auto", description: "The width depends on the values of other properties."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>{1,2}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/width"}], description: "Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", restrictions: ["length", "percentage"]}, {name: "will-change", browsers: ["E79", "FF36", "S9.1", "C36", "O24"], values: [{name: "auto", description: "Expresses no particular intent."}, {name: "contents", description: "Indicates that the author expects to animate or change something about the element\u2019s contents in the near future."}, {name: "scroll-position", description: "Indicates that the author expects to animate or change the scroll position of the element in the near future."}], syntax: "auto | <animateable-feature>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/will-change"}], description: "Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.", restrictions: ["enum", "identifier"]}, {name: "word-break", values: [{name: "break-all", description: "Lines may break between any two grapheme clusters for non-CJK scripts."}, {name: "keep-all", description: "Block characters can no longer create implied break points."}, {name: "normal", description: "Breaks non-CJK scripts according to their own rules."}], syntax: "normal | break-all | keep-all | break-word", relevance: 72, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/word-break"}], description: "Specifies line break opportunities for non-CJK scripts.", restrictions: ["enum"]}, {name: "word-spacing", values: [{name: "normal", description: "No additional spacing is applied. Computes to zero."}], syntax: "normal | <length-percentage>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/word-spacing"}], description: "Specifies additional spacing between \u201Cwords\u201D.", restrictions: ["length", "percentage"]}, {name: "word-wrap", values: [{name: "break-word", description: "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], syntax: "normal | break-word", relevance: 77, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}], description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", restrictions: ["enum"]}, {name: "writing-mode", values: [{name: "horizontal-tb", description: "Top-to-bottom block flow direction. The writing mode is horizontal."}, {name: "sideways-lr", description: "Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."}, {name: "sideways-rl", description: "Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."}, {name: "vertical-lr", description: "Left-to-right block flow direction. The writing mode is vertical."}, {name: "vertical-rl", description: "Right-to-left block flow direction. The writing mode is vertical."}], syntax: "horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/writing-mode"}], description: "This is a shorthand property for both 'direction' and 'block-progression'.", restrictions: ["enum"]}, {name: "z-index", values: [{name: "auto", description: "The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}], syntax: "auto | <integer>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/z-index"}], description: "For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.", restrictions: ["integer"]}, {name: "zoom", browsers: ["E12", "S3.1", "C1", "IE5.5", "O15"], values: [{name: "normal"}], syntax: "auto | <number> | <percentage>", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/zoom"}], description: "Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.", restrictions: ["enum", "integer", "number", "percentage"]}, {name: "-ms-ime-align", status: "nonstandard", syntax: "auto | after", relevance: 0, description: "Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."}, {name: "-moz-binding", status: "nonstandard", syntax: "<url> | none", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-binding"}], description: "The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."}, {name: "-moz-context-properties", status: "nonstandard", syntax: "none | [ fill | fill-opacity | stroke | stroke-opacity ]#", relevance: 0, browsers: ["FF55"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"}], description: "If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."}, {name: "-moz-float-edge", status: "nonstandard", syntax: "border-box | content-box | margin-box | padding-box", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}], description: "The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."}, {name: "-moz-force-broken-image-icon", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}], description: "The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."}, {name: "-moz-image-region", status: "nonstandard", syntax: "<shape> | auto", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}], description: "For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."}, {name: "-moz-orient", status: "nonstandard", syntax: "inline | block | horizontal | vertical", relevance: 0, browsers: ["FF6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}], description: "The -moz-orient CSS property specifies the orientation of the element to which it's applied."}, {name: "-moz-outline-radius", status: "nonstandard", syntax: "<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"}], description: "In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."}, {name: "-moz-outline-radius-bottomleft", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"}], description: "In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."}, {name: "-moz-outline-radius-bottomright", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"}], description: "In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."}, {name: "-moz-outline-radius-topleft", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"}], description: "In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."}, {name: "-moz-outline-radius-topright", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"}], description: "In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."}, {name: "-moz-stack-sizing", status: "nonstandard", syntax: "ignore | stretch-to-fit", relevance: 0, description: "-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."}, {name: "-moz-text-blink", status: "nonstandard", syntax: "none | blink", relevance: 0, description: "The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."}, {name: "-moz-user-input", status: "nonstandard", syntax: "auto | none | enabled | disabled", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}], description: "In Mozilla applications, -moz-user-input determines if an element will accept user input."}, {name: "-moz-user-modify", status: "nonstandard", syntax: "read-only | read-write | write-only", relevance: 0, description: "The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."}, {name: "-moz-window-dragging", status: "nonstandard", syntax: "drag | no-drag", relevance: 0, description: "The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."}, {name: "-moz-window-shadow", status: "nonstandard", syntax: "default | menu | tooltip | sheet | none", relevance: 0, description: "The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."}, {name: "-webkit-border-before", status: "nonstandard", syntax: "<'border-width'> || <'border-style'> || <'color'>", relevance: 0, browsers: ["E79", "S5.1", "C8", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}], description: "The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."}, {name: "-webkit-border-before-color", status: "nonstandard", syntax: "<'color'>", relevance: 0, description: "The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-border-before-style", status: "nonstandard", syntax: "<'border-style'>", relevance: 0, description: "The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-border-before-width", status: "nonstandard", syntax: "<'border-width'>", relevance: 0, description: "The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-line-clamp", syntax: "none | <integer>", relevance: 50, browsers: ["E17", "FF68", "S5", "C6", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}], description: "The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."}, {name: "-webkit-mask", status: "nonstandard", syntax: "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#", relevance: 0, description: "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."}, {name: "-webkit-mask-attachment", status: "nonstandard", syntax: "<attachment>#", relevance: 0, browsers: ["S4", "C1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}], description: "If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."}, {name: "-webkit-mask-composite", status: "nonstandard", syntax: "<composite-style>#", relevance: 0, browsers: ["E18", "FF53", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}], description: "The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."}, {name: "-webkit-mask-position", status: "nonstandard", syntax: "<position>#", relevance: 0, description: "The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."}, {name: "-webkit-mask-position-x", status: "nonstandard", syntax: "[ <length-percentage> | left | center | right ]#", relevance: 0, browsers: ["E18", "FF49", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}], description: "The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."}, {name: "-webkit-mask-position-y", status: "nonstandard", syntax: "[ <length-percentage> | top | center | bottom ]#", relevance: 0, browsers: ["E18", "FF49", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}], description: "The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."}, {name: "-webkit-mask-repeat-x", status: "nonstandard", syntax: "repeat | no-repeat | space | round", relevance: 0, browsers: ["E18", "S5", "C3", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}], description: "The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."}, {name: "-webkit-mask-repeat-y", status: "nonstandard", syntax: "repeat | no-repeat | space | round", relevance: 0, browsers: ["E18", "S5", "C3", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}], description: "The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."}, {name: "appearance", status: "experimental", syntax: "none | auto | button | textfield | menulist-button | <compat-auto>", relevance: 60, browsers: ["E84", "FF1", "S3", "C84", "O70"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/appearance"}], description: "Changes the appearance of buttons and other controls to resemble native controls."}, {name: "aspect-ratio", status: "experimental", syntax: "auto | <ratio>", relevance: 50, browsers: ["E79", "FF71", "C79"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}], description: "The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."}, {name: "azimuth", status: "obsolete", syntax: "<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/azimuth"}], description: "In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."}, {name: "backdrop-filter", syntax: "none | <filter-function-list>", relevance: 51, browsers: ["E17", "FF70", "S9", "C76", "O34"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}], description: "The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."}, {name: "border-block", syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block"}], description: "The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."}, {name: "border-block-color", syntax: "<'border-top-color'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-color"}], description: "The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-block-style", syntax: "<'border-top-style'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-style"}], description: "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-block-width", syntax: "<'border-top-width'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-width"}], description: "The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-end-end-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}], description: "The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."}, {name: "border-end-start-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}], description: "The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."}, {name: "border-inline", syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline"}], description: "The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."}, {name: "border-inline-color", syntax: "<'border-top-color'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}], description: "The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-inline-style", syntax: "<'border-top-style'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}], description: "The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-inline-width", syntax: "<'border-top-width'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}], description: "The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-start-end-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}], description: "The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."}, {name: "border-start-start-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}], description: "The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."}, {name: "box-align", status: "nonstandard", syntax: "start | center | end | baseline | stretch", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-align"}], description: "The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."}, {name: "box-direction", status: "nonstandard", syntax: "normal | reverse | inherit", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-direction"}], description: "The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."}, {name: "box-flex", status: "nonstandard", syntax: "<number>", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-flex"}], description: "The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."}, {name: "box-flex-group", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}], description: "The box-flex-group CSS property assigns the flexbox's child elements to a flex group."}, {name: "box-lines", status: "nonstandard", syntax: "single | multiple", relevance: 0, browsers: ["S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-lines"}], description: "The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."}, {name: "box-ordinal-group", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}], description: "The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."}, {name: "box-orient", status: "nonstandard", syntax: "horizontal | vertical | inline-axis | block-axis | inherit", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-orient"}], description: "The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."}, {name: "box-pack", status: "nonstandard", syntax: "start | center | end | justify", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-pack"}], description: "The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."}, {name: "color-adjust", syntax: "economy | exact", relevance: 50, browsers: ["E79", "FF48", "S6", "C49", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/color-adjust"}], description: "The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine."}, {name: "counter-set", syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 50, browsers: ["FF68"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-set"}], description: "The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."}, {name: "font-optical-sizing", syntax: "auto | none", relevance: 50, browsers: ["E17", "FF62", "S11", "C79", "O66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}], description: "The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."}, {name: "font-variation-settings", syntax: "normal | [ <string> <number> ]#", relevance: 50, browsers: ["E17", "FF62", "S11", "C62", "O49"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}], description: "The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."}, {name: "font-smooth", status: "nonstandard", syntax: "auto | never | always | <absolute-size> | <length>", relevance: 0, browsers: ["E79", "FF25", "S4", "C5", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-smooth"}], description: ""}, {name: "gap", syntax: "<'row-gap'> <'column-gap'>?", relevance: 50, browsers: ["E84", "FF63", "S10.1", "C84", "O70"], description: "The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."}, {name: "hanging-punctuation", syntax: "none | [ first || [ force-end | allow-end ] || last ]", relevance: 50, browsers: ["S10"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}], description: "The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."}, {name: "image-resolution", status: "experimental", syntax: "[ from-image || <resolution> ] && snap?", relevance: 50, description: "The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."}, {name: "initial-letter", status: "experimental", syntax: "normal | [ <number> <integer>? ]", relevance: 50, browsers: ["S9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/initial-letter"}], description: "The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."}, {name: "initial-letter-align", status: "experimental", syntax: "[ auto | alphabetic | hanging | ideographic ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}], description: "The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."}, {name: "inset", syntax: "<'top'>{1,4}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset"}], description: "The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block", syntax: "<'top'>{1,2}", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block"}], description: "The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block-end", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}], description: "The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block-start", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}], description: "The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline", syntax: "<'top'>{1,2}", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline"}], description: "The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline-end", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}], description: "The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline-start", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}], description: "The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "line-clamp", status: "experimental", syntax: "none | <integer>", relevance: 50, description: "The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."}, {name: "line-height-step", status: "experimental", syntax: "<length>", relevance: 50, browsers: ["E79", "C60", "O47"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-height-step"}], description: "The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."}, {name: "margin-block", syntax: "<'margin-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block"}], description: "The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."}, {name: "margin-inline", syntax: "<'margin-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline"}], description: "The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."}, {name: "margin-trim", status: "experimental", syntax: "none | in-flow | all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-trim"}], description: "The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."}, {name: "mask", syntax: "<mask-layer>#", relevance: 50, browsers: ["E12", "FF2", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask"}], description: "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."}, {name: "mask-border", syntax: "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>", relevance: 50, description: "The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."}, {name: "mask-border-mode", syntax: "luminance | alpha", relevance: 50, description: "The mask-border-mode CSS property specifies the blending mode used in a mask border."}, {name: "mask-border-outset", syntax: "[ <length> | <number> ]{1,4}", relevance: 50, description: "The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."}, {name: "mask-border-repeat", syntax: "[ stretch | repeat | round | space ]{1,2}", relevance: 50, description: "The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."}, {name: "mask-border-slice", syntax: "<number-percentage>{1,4} fill?", relevance: 50, description: "The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."}, {name: "mask-border-source", syntax: "none | <image>", relevance: 50, description: "The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."}, {name: "mask-border-width", syntax: "[ <length-percentage> | <number> | auto ]{1,4}", relevance: 50, description: "The mask-border-width CSS property specifies the width of an element's mask border."}, {name: "mask-clip", syntax: "[ <geometry-box> | no-clip ]#", relevance: 50, browsers: ["E79", "FF53", "S4", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-clip"}], description: "The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."}, {name: "mask-composite", syntax: "<compositing-operator>#", relevance: 50, browsers: ["E18", "FF53"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-composite"}], description: "The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."}, {name: "max-lines", status: "experimental", syntax: "none | <integer>", relevance: 50, description: "The max-liens property forces a break after a set number of lines"}, {name: "offset", syntax: "[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?", relevance: 50, browsers: ["E79", "FF72", "C55", "O42"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset"}], description: "The offset CSS property is a shorthand property for animating an element along a defined path."}, {name: "offset-anchor", syntax: "auto | <position>", relevance: 50, browsers: ["E79", "FF72", "C79"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}], description: "Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."}, {name: "offset-distance", syntax: "<length-percentage>", relevance: 50, browsers: ["E79", "FF72", "C55", "O42"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-distance"}], description: "The offset-distance CSS property specifies a position along an offset-path."}, {name: "offset-path", syntax: "none | ray( [ <angle> && <size>? && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]", relevance: 50, browsers: ["E79", "FF72", "C55", "O45"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-path"}], description: 'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'}, {name: "offset-position", status: "experimental", syntax: "auto | <position>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-position"}], description: "Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."}, {name: "offset-rotate", syntax: "[ auto | reverse ] || <angle>", relevance: 50, browsers: ["E79", "FF72", "C56", "O43"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}], description: "The offset-rotate CSS property defines the direction of the element while positioning along the offset path."}, {name: "overflow-anchor", syntax: "auto | none", relevance: 51, browsers: ["E79", "FF66", "C56", "O43"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}], description: "The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."}, {name: "overflow-block", syntax: "visible | hidden | clip | scroll | auto", relevance: 50, browsers: ["FF69"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-block"}], description: "The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."}, {name: "overflow-clip-box", status: "nonstandard", syntax: "padding-box | content-box", relevance: 0, browsers: ["FF29"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box"}], description: "The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."}, {name: "overflow-inline", syntax: "visible | hidden | clip | scroll | auto", relevance: 50, browsers: ["FF69"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}], description: "The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."}, {name: "overscroll-behavior", syntax: "[ contain | none | auto ]{1,2}", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}], description: "The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."}, {name: "overscroll-behavior-block", syntax: "contain | none | auto", relevance: 50, browsers: ["E79", "FF73", "C77", "O64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}], description: "The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."}, {name: "overscroll-behavior-inline", syntax: "contain | none | auto", relevance: 50, browsers: ["E79", "FF73", "C77", "O64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}], description: "The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."}, {name: "overscroll-behavior-x", syntax: "contain | none | auto", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}], description: "The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."}, {name: "overscroll-behavior-y", syntax: "contain | none | auto", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}], description: "The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."}, {name: "padding-block", syntax: "<'padding-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block"}], description: "The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."}, {name: "padding-inline", syntax: "<'padding-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline"}], description: "The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."}, {name: "place-content", syntax: "<'align-content'> <'justify-content'>?", relevance: 50, browsers: ["E79", "FF53", "S9", "C59", "O46"], description: "The place-content CSS shorthand property sets both the align-content and justify-content properties."}, {name: "place-items", syntax: "<'align-items'> <'justify-items'>?", relevance: 50, browsers: ["E79", "FF45", "S11", "C59", "O46"], description: "The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."}, {name: "place-self", syntax: "<'align-self'> <'justify-self'>?", relevance: 50, browsers: ["E79", "FF45", "C59", "O46"], description: "The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."}, {name: "rotate", syntax: "none | <angle> | [ x | y | z | <number>{3} ] && <angle>", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/rotate"}], description: "The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "row-gap", syntax: "normal | <length-percentage>", relevance: 50, browsers: ["E84", "FF63", "S10.1", "C84", "O70"], description: "The row-gap CSS property specifies the gutter between grid rows."}, {name: "ruby-merge", status: "experimental", syntax: "separate | collapse | auto", relevance: 50, description: "This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."}, {name: "scale", syntax: "none | <number>{1,3}", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scale"}], description: "The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "scrollbar-color", syntax: "auto | dark | light | <color>{2}", relevance: 50, browsers: ["FF64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}], description: "The scrollbar-color CSS property sets the color of the scrollbar track and thumb."}, {name: "scrollbar-width", syntax: "auto | thin | none", relevance: 50, browsers: ["FF64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}], description: "The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "}, {name: "scroll-margin", syntax: "<length>{1,4}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}], description: "The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."}, {name: "scroll-margin-block", syntax: "<length>{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}], description: "The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."}, {name: "scroll-margin-block-start", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}], description: "The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-block-end", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}], description: "The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-bottom", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}], description: "The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-inline", syntax: "<length>{1,2}", relevance: 50, browsers: ["FF68"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}], description: "The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."}, {name: "scroll-margin-inline-start", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}], description: "The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-inline-end", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}], description: "The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-left", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}], description: "The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-right", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}], description: "The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-top", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}], description: "The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-padding", syntax: "[ auto | <length-percentage> ]{1,4}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}], description: "The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."}, {name: "scroll-padding-block", syntax: "[ auto | <length-percentage> ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}], description: "The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."}, {name: "scroll-padding-block-start", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}], description: "The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-block-end", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}], description: "The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-bottom", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}], description: "The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-inline", syntax: "[ auto | <length-percentage> ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}], description: "The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."}, {name: "scroll-padding-inline-start", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}], description: "The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-inline-end", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}], description: "The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-left", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}], description: "The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-right", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}], description: "The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-top", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}], description: "The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-snap-align", syntax: "[ none | start | end | center ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}], description: "The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."}, {name: "scroll-snap-stop", syntax: "normal | always", relevance: 50, browsers: ["E79", "C75", "O62"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}], description: 'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'}, {name: "scroll-snap-type-x", status: "obsolete", syntax: "none | mandatory | proximity", relevance: 0, browsers: ["FF39", "S9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"}], description: "The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."}, {name: "scroll-snap-type-y", status: "obsolete", syntax: "none | mandatory | proximity", relevance: 0, browsers: ["FF39"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"}], description: "The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."}, {name: "text-combine-upright", syntax: "none | all | [ digits <integer>? ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}], description: "The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016B-yoko (\u7E26\u4E2D\u6A2A) in Japanese, or as \u76F4\u66F8\u6A6B\u5411 in Chinese."}, {name: "text-decoration-skip", status: "experimental", syntax: "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]", relevance: 52, browsers: ["S12.1", "C57", "O44"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}], description: "The text-decoration-skip CSS property specifies what parts of the element\u2019s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."}, {name: "text-decoration-skip-ink", syntax: "auto | all | none", relevance: 50, browsers: ["E79", "FF70", "C64", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}], description: "The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."}, {name: "text-decoration-thickness", syntax: "auto | from-font | <length> | <percentage> ", relevance: 50, browsers: ["FF70", "S12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}], description: "The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."}, {name: "text-emphasis", syntax: "<'text-emphasis-style'> || <'text-emphasis-color'>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}], description: "The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."}, {name: "text-emphasis-color", syntax: "<color>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}], description: "The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."}, {name: "text-emphasis-position", syntax: "[ over | under ] && [ right | left ]", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}], description: "The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."}, {name: "text-emphasis-style", syntax: "none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}], description: "The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."}, {name: "text-size-adjust", status: "experimental", syntax: "none | auto | <percentage>", relevance: 56, browsers: ["E79", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}], description: "The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."}, {name: "text-underline-offset", syntax: "auto | <length> | <percentage> ", relevance: 50, browsers: ["FF70", "S12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}], description: "The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."}, {name: "transform-box", syntax: "content-box | border-box | fill-box | stroke-box | view-box", relevance: 50, browsers: ["E79", "FF55", "S11", "C64", "O51"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-box"}], description: "The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."}, {name: "translate", syntax: "none | <length-percentage> [ <length-percentage> <length>? ]?", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/translate"}], description: "The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "speak-as", syntax: "auto | bullets | numbers | words | spell-out | <counter-style-name>", relevance: 50, description: "The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."}, {name: "font-display", status: "experimental", syntax: "[ auto | block | swap | fallback | optional ]", relevance: 54, description: "The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."}, {name: "bleed", syntax: "auto | <length>", relevance: 50, description: "The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."}, {name: "marks", syntax: "none | [ crop || cross ]", relevance: 50, description: "The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."}, {name: "max-zoom", syntax: "auto | <number> | <percentage>", relevance: 50, description: "The max-zoom CSS descriptor sets the maximum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom in any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."}, {name: "min-zoom", syntax: "auto | <number> | <percentage>", relevance: 50, description: "The min-zoom CSS descriptor sets the minimum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom out any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."}, {name: "orientation", syntax: "auto | portrait | landscape", relevance: 50, description: "The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."}, {name: "user-zoom", syntax: "zoom | fixed", relevance: 50, description: "The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."}, {name: "viewport-fit", syntax: "auto | contain | cover", relevance: 50, description: "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}], atDirectives: [{name: "@charset", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@charset"}], description: "Defines character set of the document."}, {name: "@counter-style", browsers: ["FF33"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@counter-style"}], description: "Defines a custom counter style."}, {name: "@font-face", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@font-face"}], description: "Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."}, {name: "@font-feature-values", browsers: ["FF34", "S9.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}], description: "Defines named values for the indices used to select alternate glyphs for a given font family."}, {name: "@import", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@import"}], description: "Includes content of another file."}, {name: "@keyframes", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@keyframes"}], description: "Defines set of animation key frames."}, {name: "@media", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@media"}], description: "Defines a stylesheet for a particular media type."}, {name: "@-moz-document", browsers: ["FF1.8"], description: "Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."}, {name: "@-moz-keyframes", browsers: ["FF5"], description: "Defines set of animation key frames."}, {name: "@-ms-viewport", browsers: ["E", "IE10"], description: "Specifies the size, zoom factor, and orientation of the viewport."}, {name: "@namespace", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@namespace"}], description: "Declares a prefix and associates it with a namespace name."}, {name: "@-o-keyframes", browsers: ["O12"], description: "Defines set of animation key frames."}, {name: "@-o-viewport", browsers: ["O11"], description: "Specifies the size, zoom factor, and orientation of the viewport."}, {name: "@page", browsers: ["E12", "FF19", "C2", "IE8", "O6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@page"}], description: "Directive defines various page parameters."}, {name: "@supports", browsers: ["E12", "FF22", "S9", "C28", "O12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@supports"}], description: "A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."}, {name: "@-webkit-keyframes", browsers: ["C", "S4"], description: "Defines set of animation key frames."}], pseudoClasses: [{name: ":active", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:active"}], description: "Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."}, {name: ":any-link", browsers: ["E79", "FF50", "S9", "C65", "O52"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:any-link"}], description: "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."}, {name: ":checked", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:checked"}], description: "Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."}, {name: ":corner-present", browsers: ["C", "S5"], description: "Non-standard. Indicates whether or not a scrollbar corner is present."}, {name: ":decrement", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view\u2019s position when used."}, {name: ":default", browsers: ["E79", "FF4", "S5", "C10", "O10"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:default"}], description: "Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."}, {name: ":disabled", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:disabled"}], description: "Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."}, {name: ":double-button", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."}, {name: ":empty", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:empty"}], description: "Represents an element that has no children at all."}, {name: ":enabled", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:enabled"}], description: "Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."}, {name: ":end", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."}, {name: ":first", browsers: ["E12", "S6", "C18", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":first-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first-child"}], description: "Same as :nth-child(1). Represents an element that is the first child of some other element."}, {name: ":first-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}], description: "Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."}, {name: ":focus", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus"}], description: "Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."}, {name: ":fullscreen", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}], description: "Matches any element that has its fullscreen flag set."}, {name: ":future", browsers: ["C", "O16", "S6"], description: "Represents any element that is defined to occur entirely after a :current element."}, {name: ":horizontal", browsers: ["C", "S5"], description: "Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."}, {name: ":host", browsers: ["E79", "FF63", "S10", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:host"}], description: "When evaluated in the context of a shadow tree, matches the shadow tree\u2019s host element."}, {name: ":host()", browsers: ["C35", "O22"], description: "When evaluated in the context of a shadow tree, it matches the shadow tree\u2019s host element if the host element, in its normal context, matches the selector argument."}, {name: ":host-context()", browsers: ["C35", "O22"], description: "Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."}, {name: ":hover", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:hover"}], description: "Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."}, {name: ":increment", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view\u2019s position when used."}, {name: ":indeterminate", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}], description: "Applies to UI elements whose value is in an indeterminate state."}, {name: ":in-range", browsers: ["E13", "FF29", "S5.1", "C10", "O11"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:in-range"}], description: "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."}, {name: ":invalid", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:invalid"}], description: "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."}, {name: ":lang()", browsers: ["E", "C", "FF1", "IE8", "O8", "S3"], description: "Represents an element that is in language specified."}, {name: ":last-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:last-child"}], description: "Same as :nth-last-child(1). Represents an element that is the last child of some other element."}, {name: ":last-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}], description: "Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."}, {name: ":left", browsers: ["E12", "S5.1", "C6", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:left"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":link", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:link"}], description: "Applies to links that have not yet been visited."}, {name: ":matches()", browsers: ["S9"], description: "Takes a selector list as its argument. It represents an element that is represented by its argument."}, {name: ":-moz-any()", browsers: ["FF4"], description: "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."}, {name: ":-moz-any-link", browsers: ["FF1"], description: "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."}, {name: ":-moz-broken", browsers: ["FF3"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}], description: "Non-standard. Matches elements representing broken images."}, {name: ":-moz-drag-over", browsers: ["FF1"], description: "Non-standard. Matches elements when a drag-over event applies to it."}, {name: ":-moz-first-node", browsers: ["FF1"], description: "Non-standard. Represents an element that is the first child node of some other element."}, {name: ":-moz-focusring", browsers: ["FF4"], description: "Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."}, {name: ":-moz-full-screen", browsers: ["FF9"], description: "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."}, {name: ":-moz-last-node", browsers: ["FF1"], description: "Non-standard. Represents an element that is the last child node of some other element."}, {name: ":-moz-loading", browsers: ["FF3"], description: "Non-standard. Matches elements, such as images, that haven\u2019t started loading yet."}, {name: ":-moz-only-whitespace", browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}], description: "The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."}, {name: ":-moz-placeholder", browsers: ["FF4"], description: "Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."}, {name: ":-moz-submit-invalid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}], description: "Non-standard. Represents any submit button when the contents of the associated form are not valid."}, {name: ":-moz-suppressed", browsers: ["FF3"], description: "Non-standard. Matches elements representing images that have been blocked from loading."}, {name: ":-moz-ui-invalid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-invalid"}], description: "Non-standard. Represents any validated form element whose value isn't valid "}, {name: ":-moz-ui-valid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-valid"}], description: "Non-standard. Represents any validated form element whose value is valid "}, {name: ":-moz-user-disabled", browsers: ["FF3"], description: "Non-standard. Matches elements representing images that have been disabled due to the user\u2019s preferences."}, {name: ":-moz-window-inactive", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}], description: "Non-standard. Matches elements in an inactive window."}, {name: ":-ms-fullscreen", browsers: ["IE11"], description: "Matches any element that has its fullscreen flag set."}, {name: ":-ms-input-placeholder", browsers: ["IE10"], description: "Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."}, {name: ":-ms-keyboard-active", browsers: ["IE10"], description: "Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."}, {name: ":-ms-lang()", browsers: ["E", "IE10"], description: "Represents an element that is in the language specified. Accepts a comma separated list of language tokens."}, {name: ":no-button", browsers: ["C", "S5"], description: "Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."}, {name: ":not()", browsers: ["E", "C", "FF1", "IE9", "O9.5", "S2"], description: "The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."}, {name: ":nth-child()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."}, {name: ":nth-last-child()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."}, {name: ":nth-last-of-type()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."}, {name: ":nth-of-type()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."}, {name: ":only-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:only-child"}], description: "Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."}, {name: ":only-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}], description: "Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."}, {name: ":optional", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:optional"}], description: "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."}, {name: ":out-of-range", browsers: ["E13", "FF29", "S5.1", "C10", "O11"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}], description: "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."}, {name: ":past", browsers: ["C", "O16", "S6"], description: "Represents any element that is defined to occur entirely prior to a :current element."}, {name: ":read-only", browsers: ["E13", "FF78", "S4", "C1", "O9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:read-only"}], description: "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."}, {name: ":read-write", browsers: ["E13", "FF78", "S4", "C1", "O9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:read-write"}], description: "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."}, {name: ":required", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:required"}], description: "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."}, {name: ":right", browsers: ["E12", "S5.1", "C6", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:right"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":root", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:root"}], description: "Represents an element that is the root of the document. In HTML 4, this is always the HTML element."}, {name: ":scope", browsers: ["E79", "FF32", "S7", "C27", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:scope"}], description: "Represents any element that is in the contextual reference element set."}, {name: ":single-button", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."}, {name: ":start", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."}, {name: ":target", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:target"}], description: "Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."}, {name: ":valid", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:valid"}], description: "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."}, {name: ":vertical", browsers: ["C", "S5"], description: "Non-standard. Applies to any scrollbar pieces that have a vertical orientation."}, {name: ":visited", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:visited"}], description: "Applies once the link has been visited by the user."}, {name: ":-webkit-any()", browsers: ["C", "S5"], description: "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."}, {name: ":-webkit-full-screen", browsers: ["C", "S6"], description: "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."}, {name: ":window-inactive", browsers: ["C", "S3"], description: "Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."}, {name: ":blank", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:blank"}], description: "The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."}, {name: ":defined", status: "experimental", browsers: ["E79", "FF63", "S10", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:defined"}], description: "The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."}, {name: ":dir", browsers: ["FF49"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:dir"}], description: "The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."}, {name: ":focus-visible", status: "experimental", browsers: ["E79", "FF4", "C67", "O54"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}], description: "The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."}, {name: ":focus-within", status: "experimental", browsers: ["E79", "FF52", "S10.1", "C60", "O47"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus-within"}], description: "The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."}, {name: ":has", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:has"}], description: ":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."}, {name: ":is", status: "experimental", browsers: ["E79", "FF78", "S9", "C68", "O55"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:is"}], description: "The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."}, {name: ":placeholder-shown", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}], description: "The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."}, {name: ":where", status: "experimental", browsers: ["FF78", "C72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:where"}], description: "The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."}], pseudoElements: [{name: "::after", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::after"}], description: "Represents a styleable child pseudo-element immediately after the originating element\u2019s actual content."}, {name: "::backdrop", browsers: ["E12", "FF47", "C37", "IE11", "O24"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::backdrop"}], description: "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."}, {name: "::before", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::before"}], description: "Represents a styleable child pseudo-element immediately before the originating element\u2019s actual content."}, {name: "::content", browsers: ["C35", "O22"], description: "Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."}, {name: "::cue", browsers: ["E79", "FF55", "S6.1", "C26", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::cue"}]}, {name: "::cue()", browsers: ["C", "O16", "S6"]}, {name: "::cue-region", browsers: ["C", "O16", "S6"]}, {name: "::cue-region()", browsers: ["C", "O16", "S6"]}, {name: "::first-letter", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::first-letter"}], description: "Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."}, {name: "::first-line", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::first-line"}], description: "Describes the contents of the first formatted line of its originating element."}, {name: "::-moz-focus-inner", browsers: ["FF4"]}, {name: "::-moz-focus-outer", browsers: ["FF4"]}, {name: "::-moz-list-bullet", browsers: ["FF1"], description: "Used to style the bullet of a list element. Similar to the standardized ::marker."}, {name: "::-moz-list-number", browsers: ["FF1"], description: "Used to style the numbers of a list element. Similar to the standardized ::marker."}, {name: "::-moz-placeholder", browsers: ["FF19"], description: "Represents placeholder text in an input field"}, {name: "::-moz-progress-bar", browsers: ["FF9"], description: "Represents the bar portion of a progress bar."}, {name: "::-moz-selection", browsers: ["FF1"], description: "Represents the portion of a document that has been highlighted by the user."}, {name: "::-ms-backdrop", browsers: ["IE11"], description: "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."}, {name: "::-ms-browse", browsers: ["E", "IE10"], description: "Represents the browse button of an input type=file control."}, {name: "::-ms-check", browsers: ["E", "IE10"], description: "Represents the check of a checkbox or radio button input control."}, {name: "::-ms-clear", browsers: ["E", "IE10"], description: "Represents the clear button of a text input control"}, {name: "::-ms-expand", browsers: ["E", "IE10"], description: "Represents the drop-down button of a select control."}, {name: "::-ms-fill", browsers: ["E", "IE10"], description: "Represents the bar portion of a progress bar."}, {name: "::-ms-fill-lower", browsers: ["E", "IE10"], description: "Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."}, {name: "::-ms-fill-upper", browsers: ["E", "IE10"], description: "Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."}, {name: "::-ms-reveal", browsers: ["E", "IE10"], description: "Represents the password reveal button of an input type=password control."}, {name: "::-ms-thumb", browsers: ["E", "IE10"], description: "Represents the portion of range input control (also known as a slider control) that the user drags."}, {name: "::-ms-ticks-after", browsers: ["E", "IE10"], description: "Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."}, {name: "::-ms-ticks-before", browsers: ["E", "IE10"], description: "Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."}, {name: "::-ms-tooltip", browsers: ["E", "IE10"], description: "Represents the tooltip of a slider (input type=range)."}, {name: "::-ms-track", browsers: ["E", "IE10"], description: "Represents the track of a slider."}, {name: "::-ms-value", browsers: ["E", "IE10"], description: "Represents the content of a text or password input control, or a select control."}, {name: "::selection", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::selection"}], description: "Represents the portion of a document that has been highlighted by the user."}, {name: "::shadow", browsers: ["C35", "O22"], description: "Matches the shadow root if an element has a shadow tree."}, {name: "::-webkit-file-upload-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-file-upload-button"}]}, {name: "::-webkit-inner-spin-button", browsers: ["E79", "S5", "C6", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]}, {name: "::-webkit-input-placeholder", browsers: ["C", "S4"]}, {name: "::-webkit-keygen-select", browsers: ["C", "O", "S6"]}, {name: "::-webkit-meter-bar", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]}, {name: "::-webkit-meter-even-less-good-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]}, {name: "::-webkit-meter-optimum-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]}, {name: "::-webkit-meter-suboptimum-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]}, {name: "::-webkit-outer-spin-button", browsers: ["S5", "C6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]}, {name: "::-webkit-progress-bar", browsers: ["E79", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]}, {name: "::-webkit-progress-inner-element", browsers: ["E79", "S6.1", "C23", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]}, {name: "::-webkit-progress-value", browsers: ["E79", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]}, {name: "::-webkit-resizer", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-button", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-corner", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-thumb", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-track", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-track-piece", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-search-cancel-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]}, {name: "::-webkit-search-decoration", browsers: ["C", "S4"]}, {name: "::-webkit-search-results-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]}, {name: "::-webkit-search-results-decoration", browsers: ["C", "S4"]}, {name: "::-webkit-slider-runnable-track", browsers: ["C", "O", "S6"]}, {name: "::-webkit-slider-thumb", browsers: ["C", "O", "S6"]}, {name: "::-webkit-textfield-decoration-container", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-arrow", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-arrow-clipper", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-heading", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-message", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-text-block", browsers: ["C", "O", "S6"]}, {name: "::-moz-range-progress", status: "nonstandard", browsers: ["FF22"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}], description: 'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'}, {name: "::-moz-range-thumb", status: "nonstandard", browsers: ["FF21"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}], description: `The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.`}, {name: "::-moz-range-track", status: "nonstandard", browsers: ["FF21"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}], description: 'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'}, {name: "::-webkit-progress-inner-value", status: "nonstandard", description: "The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.\n\nIn order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element."}, {name: "::grammar-error", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}], description: "The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."}, {name: "::marker", browsers: ["E80", "FF68", "S11.1", "C80"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::marker"}], description: "The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."}, {name: "::part", status: "experimental", browsers: ["E79", "FF72", "S13.1", "C73", "O60"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::part"}], description: "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."}, {name: "::placeholder", browsers: ["E12", "FF51", "S10.1", "C57", "O44"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::placeholder"}], description: "The ::placeholder CSS pseudo-element represents the placeholder text of a form element."}, {name: "::slotted", browsers: ["E79", "FF63", "S10", "C50", "O37"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::slotted"}], description: "The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."}, {name: "::spelling-error", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}], description: "The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]}, Dr = function() { + var Do = {version: 1.1, properties: [{name: "additive-symbols", browsers: ["FF33"], syntax: "[ <integer> && <symbol> ]#", relevance: 50, description: "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.", restrictions: ["integer", "string", "image", "identifier"]}, {name: "align-content", values: [{name: "center", description: "Lines are packed toward the center of the flex container."}, {name: "flex-end", description: "Lines are packed toward the end of the flex container."}, {name: "flex-start", description: "Lines are packed toward the start of the flex container."}, {name: "space-around", description: "Lines are evenly distributed in the flex container, with half-size spaces on either end."}, {name: "space-between", description: "Lines are evenly distributed in the flex container."}, {name: "stretch", description: "Lines stretch to take up the remaining space."}], syntax: "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>", relevance: 59, description: "Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.", restrictions: ["enum"]}, {name: "align-items", values: [{name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "flex-end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "flex-start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], syntax: "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]", relevance: 81, description: "Aligns flex items along the cross axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "justify-items", values: [{name: "auto"}, {name: "normal"}, {name: "end"}, {name: "start"}, {name: "flex-end", description: '"Flex items are packed toward the end of the line."'}, {name: "flex-start", description: '"Flex items are packed toward the start of the line."'}, {name: "self-end", description: "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."}, {name: "self-start", description: "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."}, {name: "center", description: "The items are packed flush to each other toward the center of the of the alignment container."}, {name: "left"}, {name: "right"}, {name: "baseline"}, {name: "first baseline"}, {name: "last baseline"}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}, {name: "save"}, {name: "unsave"}, {name: "legacy"}], syntax: "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]", relevance: 50, description: "Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis", restrictions: ["enum"]}, {name: "justify-self", browsers: ["E16", "FF45", "S10.1", "C57", "O44"], values: [{name: "auto"}, {name: "normal"}, {name: "end"}, {name: "start"}, {name: "flex-end", description: '"Flex items are packed toward the end of the line."'}, {name: "flex-start", description: '"Flex items are packed toward the start of the line."'}, {name: "self-end", description: "The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."}, {name: "self-start", description: "The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."}, {name: "center", description: "The items are packed flush to each other toward the center of the of the alignment container."}, {name: "left"}, {name: "right"}, {name: "baseline"}, {name: "first baseline"}, {name: "last baseline"}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}, {name: "save"}, {name: "unsave"}], syntax: "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]", relevance: 52, description: "Defines the way of justifying a box inside its container along the appropriate axis.", restrictions: ["enum"]}, {name: "align-self", values: [{name: "auto", description: "Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."}, {name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "flex-end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "flex-start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], syntax: "auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>", relevance: 69, description: "Allows the default alignment along the cross axis to be overridden for individual flex items.", restrictions: ["enum"]}, {name: "all", browsers: ["E79", "FF27", "S9.1", "C37", "O24"], values: [], syntax: "initial | inherit | unset | revert", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/all"}], description: "Shorthand that resets all properties except 'direction' and 'unicode-bidi'.", restrictions: ["enum"]}, {name: "alt", browsers: ["S9"], values: [], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/alt"}], description: "Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.", restrictions: ["string", "enum"]}, {name: "animation", values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], syntax: "<single-animation>#", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation"}], description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "timing-function", "enum", "identifier", "number"]}, {name: "animation-delay", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-delay"}], description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "animation-direction", values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], syntax: "<single-animation-direction>#", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-direction"}], description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "animation-duration", syntax: "<time>#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-duration"}], description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "animation-fill-mode", values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], syntax: "<single-animation-fill-mode>#", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}], description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "animation-iteration-count", values: [{name: "infinite", description: "Causes the animation to repeat forever."}], syntax: "<single-animation-iteration-count>#", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}], description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "animation-name", values: [{name: "none", description: "No animation is performed"}], syntax: "[ none | <keyframes-name> ]#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-name"}], description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "animation-play-state", values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], syntax: "<single-animation-play-state>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}], description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "animation-timing-function", syntax: "<timing-function>#", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}], description: "Describes how the animation will progress over one cycle of its duration.", restrictions: ["timing-function"]}, {name: "backface-visibility", values: [{name: "hidden", description: "Back side is hidden."}, {name: "visible", description: "Back side is visible."}], syntax: "visible | hidden", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}], description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "background", values: [{name: "fixed", description: "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."}, {name: "local", description: "The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."}, {name: "none", description: "A value of 'none' counts as an image layer but draws nothing."}, {name: "scroll", description: "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}], syntax: "[ <bg-layer> , ]* <final-bg-layer>", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background"}], description: "Shorthand property for setting most background properties at the same place in the style sheet.", restrictions: ["enum", "image", "color", "position", "length", "repeat", "percentage", "box"]}, {name: "background-attachment", values: [{name: "fixed", description: "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."}, {name: "local", description: "The background is fixed with regard to the element\u2019s contents: if the element has a scrolling mechanism, the background scrolls with the element\u2019s contents."}, {name: "scroll", description: "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element\u2019s border.)"}], syntax: "<attachment>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-attachment"}], description: "Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').", restrictions: ["enum"]}, {name: "background-blend-mode", browsers: ["E79", "FF30", "S8", "C35", "O22"], values: [{name: "normal", description: "Default attribute which specifies no blending"}, {name: "multiply", description: "The source color is multiplied by the destination color and replaces the destination."}, {name: "screen", description: "Multiplies the complements of the backdrop and source color values, then complements the result."}, {name: "overlay", description: "Multiplies or screens the colors, depending on the backdrop color value."}, {name: "darken", description: "Selects the darker of the backdrop and source colors."}, {name: "lighten", description: "Selects the lighter of the backdrop and source colors."}, {name: "color-dodge", description: "Brightens the backdrop color to reflect the source color."}, {name: "color-burn", description: "Darkens the backdrop color to reflect the source color."}, {name: "hard-light", description: "Multiplies or screens the colors, depending on the source color value."}, {name: "soft-light", description: "Darkens or lightens the colors, depending on the source color value."}, {name: "difference", description: "Subtracts the darker of the two constituent colors from the lighter color.."}, {name: "exclusion", description: "Produces an effect similar to that of the Difference mode but lower in contrast."}, {name: "hue", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."}, {name: "saturation", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."}, {name: "color", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."}, {name: "luminosity", browsers: ["E79", "FF30", "S8", "C35", "O22"], description: "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}], syntax: "<blend-mode>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}], description: "Defines the blending mode of each background layer.", restrictions: ["enum"]}, {name: "background-clip", syntax: "<box>#", relevance: 67, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-clip"}], description: "Determines the background painting area.", restrictions: ["box"]}, {name: "background-color", syntax: "<color>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-color"}], description: "Sets the background color of an element.", restrictions: ["color"]}, {name: "background-image", values: [{name: "none", description: "Counts as an image layer but draws nothing."}], syntax: "<bg-image>#", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-image"}], description: "Sets the background image(s) of an element.", restrictions: ["image", "enum"]}, {name: "background-origin", syntax: "<box>#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-origin"}], description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "background-position", syntax: "<bg-position>#", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position"}], description: "Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.", restrictions: ["position", "length", "percentage"]}, {name: "background-position-x", values: [{name: "center", description: "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."}, {name: "left", description: "Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."}, {name: "right", description: "Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}], status: "experimental", syntax: "[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position-x"}], description: "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", restrictions: ["length", "percentage"]}, {name: "background-position-y", values: [{name: "bottom", description: "Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."}, {name: "center", description: "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."}, {name: "top", description: "Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}], status: "experimental", syntax: "[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-position-y"}], description: "If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.", restrictions: ["length", "percentage"]}, {name: "background-repeat", values: [], syntax: "<repeat-style>#", relevance: 85, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-repeat"}], description: "Specifies how background images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "background-size", values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], syntax: "<bg-size>#", relevance: 85, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/background-size"}], description: "Specifies the size of the background images.", restrictions: ["length", "percentage"]}, {name: "behavior", browsers: ["IE6"], relevance: 50, description: "IE only. Used to extend behaviors of the browser.", restrictions: ["url"]}, {name: "block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "auto", description: "Depends on the values of other properties."}], syntax: "<'width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/block-size"}], description: "Logical 'width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "border", syntax: "<line-width> || <line-style> || <color>", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border"}], description: "Shorthand property for setting border width, style, and color.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end"}], description: "Logical 'border-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start"}], description: "Logical 'border-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-block-end-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}], description: "Logical 'border-bottom-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-block-start-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}], description: "Logical 'border-top-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-block-end-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}], description: "Logical 'border-bottom-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-block-start-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}], description: "Logical 'border-top-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-block-end-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}], description: "Logical 'border-bottom-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-block-start-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}], description: "Logical 'border-top-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-bottom", syntax: "<line-width> || <line-style> || <color>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom"}], description: "Shorthand property for setting border width, style and color.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-bottom-color", syntax: "<'border-top-color'>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}], description: "Sets the color of the bottom border.", restrictions: ["color"]}, {name: "border-bottom-left-radius", syntax: "<length-percentage>{1,2}", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}], description: "Defines the radii of the bottom left outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-bottom-right-radius", syntax: "<length-percentage>{1,2}", relevance: 73, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}], description: "Defines the radii of the bottom right outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-bottom-style", syntax: "<line-style>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}], description: "Sets the style of the bottom border.", restrictions: ["line-style"]}, {name: "border-bottom-width", syntax: "<line-width>", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}], description: "Sets the thickness of the bottom border.", restrictions: ["length", "line-width"]}, {name: "border-collapse", values: [{name: "collapse", description: "Selects the collapsing borders model."}, {name: "separate", description: "Selects the separated borders border model."}], syntax: "collapse | separate", relevance: 75, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-collapse"}], description: "Selects a table's border model.", restrictions: ["enum"]}, {name: "border-color", values: [], syntax: "<color>{1,4}", relevance: 86, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-color"}], description: "The color of the border around all four edges of an element.", restrictions: ["color"]}, {name: "border-image", values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none", description: "Use the border styles."}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], syntax: "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image"}], description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "border-image-outset", syntax: "[ <length> | <number> ]{1,4}", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}], description: "The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.", restrictions: ["length", "number"]}, {name: "border-image-repeat", values: [{name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}], syntax: "[ stretch | repeat | round | space ]{1,2}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}], description: "Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.", restrictions: ["enum"]}, {name: "border-image-slice", values: [{name: "fill", description: "Causes the middle part of the border-image to be preserved."}], syntax: "<number-percentage>{1,4} && fill?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}], description: "Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.", restrictions: ["number", "percentage"]}, {name: "border-image-source", values: [{name: "none", description: "Use the border styles."}], syntax: "none | <image>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-source"}], description: "Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.", restrictions: ["image"]}, {name: "border-image-width", values: [{name: "auto", description: "The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}], syntax: "[ <length-percentage> | <number> | auto ]{1,4}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-image-width"}], description: "The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.", restrictions: ["length", "percentage", "number"]}, {name: "border-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}], description: "Logical 'border-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}], description: "Logical 'border-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-inline-end-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}], description: "Logical 'border-right-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-inline-start-color", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-color'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}], description: "Logical 'border-left-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["color"]}, {name: "border-inline-end-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}], description: "Logical 'border-right-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-inline-start-style", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}], description: "Logical 'border-left-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["line-style"]}, {name: "border-inline-end-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}], description: "Logical 'border-right-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-inline-start-width", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'border-top-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}], description: "Logical 'border-left-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "line-width"]}, {name: "border-left", syntax: "<line-width> || <line-style> || <color>", relevance: 82, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-left-color", syntax: "<color>", relevance: 65, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-color"}], description: "Sets the color of the left border.", restrictions: ["color"]}, {name: "border-left-style", syntax: "<line-style>", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-style"}], description: "Sets the style of the left border.", restrictions: ["line-style"]}, {name: "border-left-width", syntax: "<line-width>", relevance: 58, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-left-width"}], description: "Sets the thickness of the left border.", restrictions: ["length", "line-width"]}, {name: "border-radius", syntax: "<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-radius"}], description: "Defines the radii of the outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-right", syntax: "<line-width> || <line-style> || <color>", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-right-color", syntax: "<color>", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-color"}], description: "Sets the color of the right border.", restrictions: ["color"]}, {name: "border-right-style", syntax: "<line-style>", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-style"}], description: "Sets the style of the right border.", restrictions: ["line-style"]}, {name: "border-right-width", syntax: "<line-width>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-right-width"}], description: "Sets the thickness of the right border.", restrictions: ["length", "line-width"]}, {name: "border-spacing", syntax: "<length> <length>?", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-spacing"}], description: "The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.", restrictions: ["length"]}, {name: "border-style", values: [], syntax: "<line-style>{1,4}", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-style"}], description: "The style of the border around edges of an element.", restrictions: ["line-style"]}, {name: "border-top", syntax: "<line-width> || <line-style> || <color>", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top"}], description: "Shorthand property for setting border width, style and color", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "border-top-color", syntax: "<color>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-color"}], description: "Sets the color of the top border.", restrictions: ["color"]}, {name: "border-top-left-radius", syntax: "<length-percentage>{1,2}", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}], description: "Defines the radii of the top left outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-top-right-radius", syntax: "<length-percentage>{1,2}", relevance: 72, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}], description: "Defines the radii of the top right outer border edge.", restrictions: ["length", "percentage"]}, {name: "border-top-style", syntax: "<line-style>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-style"}], description: "Sets the style of the top border.", restrictions: ["line-style"]}, {name: "border-top-width", syntax: "<line-width>", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-top-width"}], description: "Sets the thickness of the top border.", restrictions: ["length", "line-width"]}, {name: "border-width", values: [], syntax: "<line-width>{1,4}", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-width"}], description: "Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.", restrictions: ["length", "line-width"]}, {name: "bottom", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/bottom"}], description: "Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "box-decoration-break", browsers: ["E79", "FF32", "S6.1", "C22", "O15"], values: [{name: "clone", description: "Each box is independently wrapped with the border and padding."}, {name: "slice", description: "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}], syntax: "slice | clone", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}], description: "Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.", restrictions: ["enum"]}, {name: "box-shadow", values: [{name: "inset", description: "Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."}, {name: "none", description: "No shadow."}], syntax: "none | <shadow>#", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-shadow"}], description: "Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.", restrictions: ["length", "color", "enum"]}, {name: "box-sizing", values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}], syntax: "content-box | border-box", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-sizing"}], description: "Specifies the behavior of the 'width' and 'height' properties.", restrictions: ["enum"]}, {name: "break-after", values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the principal box."}, {name: "avoid", description: "Avoid a break before/after the principal box."}, {name: "avoid-column", description: "Avoid a column break before/after the principal box."}, {name: "avoid-page", description: "Avoid a page break before/after the principal box."}, {name: "column", description: "Always force a column break before/after the principal box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the principal box."}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], syntax: "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", relevance: 50, description: "Describes the page/column/region break behavior after the generated box.", restrictions: ["enum"]}, {name: "break-before", values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the principal box."}, {name: "avoid", description: "Avoid a break before/after the principal box."}, {name: "avoid-column", description: "Avoid a column break before/after the principal box."}, {name: "avoid-page", description: "Avoid a page break before/after the principal box."}, {name: "column", description: "Always force a column break before/after the principal box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the principal box."}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], syntax: "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region", relevance: 50, description: "Describes the page/column/region break behavior before the generated box.", restrictions: ["enum"]}, {name: "break-inside", values: [{name: "auto", description: "Impose no additional breaking constraints within the box."}, {name: "avoid", description: "Avoid breaks within the box."}, {name: "avoid-column", description: "Avoid a column break within the box."}, {name: "avoid-page", description: "Avoid a page break within the box."}], syntax: "auto | avoid | avoid-page | avoid-column | avoid-region", relevance: 50, description: "Describes the page/column/region break behavior inside the principal box.", restrictions: ["enum"]}, {name: "caption-side", values: [{name: "bottom", description: "Positions the caption box below the table box."}, {name: "top", description: "Positions the caption box above the table box."}], syntax: "top | bottom | block-start | block-end | inline-start | inline-end", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/caption-side"}], description: "Specifies the position of the caption box with respect to the table box.", restrictions: ["enum"]}, {name: "caret-color", browsers: ["E79", "FF53", "S11.1", "C57", "O44"], values: [{name: "auto", description: "The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}], syntax: "auto | <color>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/caret-color"}], description: "Controls the color of the text insertion indicator.", restrictions: ["color", "enum"]}, {name: "clear", values: [{name: "both", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."}, {name: "left", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."}, {name: "none", description: "No constraint on the box's position with respect to floats."}, {name: "right", description: "The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}], syntax: "none | left | right | both | inline-start | inline-end", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clear"}], description: "Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.", restrictions: ["enum"]}, {name: "clip", values: [{name: "auto", description: "The element does not clip."}, {name: "rect()", description: "Specifies offsets from the edges of the border box."}], syntax: "<shape> | auto", relevance: 73, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clip"}], description: "Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element\u2019s box.", restrictions: ["enum"]}, {name: "clip-path", values: [{name: "none", description: "No clipping path gets created."}, {name: "url()", description: "References a <clipPath> element to create a clipping path."}], syntax: "<clip-source> | [ <basic-shape> || <geometry-box> ] | none", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/clip-path"}], description: "Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.", restrictions: ["url", "shape", "geometry-box", "enum"]}, {name: "clip-rule", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], values: [{name: "evenodd", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."}, {name: "nonzero", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}], relevance: 50, description: "Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.", restrictions: ["enum"]}, {name: "color", syntax: "<color>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/color"}], description: "Sets the color of an element's text", restrictions: ["color"]}, {name: "color-interpolation-filters", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], values: [{name: "auto", description: "Color operations are not required to occur in a particular color space."}, {name: "linearRGB", description: "Color operations should occur in the linearized RGB color space."}, {name: "sRGB", description: "Color operations should occur in the sRGB color space."}], relevance: 50, description: "Specifies the color space for imaging operations performed via filter effects.", restrictions: ["enum"]}, {name: "column-count", values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], syntax: "<integer> | auto", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-count"}], description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer", "enum"]}, {name: "column-fill", values: [{name: "auto", description: "Fills columns sequentially."}, {name: "balance", description: "Balance content equally between columns, if possible."}], syntax: "auto | balance | balance-all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-fill"}], description: "In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.", restrictions: ["enum"]}, {name: "column-gap", values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], syntax: "normal | <length-percentage>", relevance: 52, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length", "enum"]}, {name: "column-rule", syntax: "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule"}], description: "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "column-rule-color", syntax: "<color>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}], description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "column-rule-style", syntax: "<'border-style'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}], description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "column-rule-width", syntax: "<'border-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}], description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "columns", values: [{name: "auto", description: "The width depends on the values of other properties."}], syntax: "<'column-width'> || <'column-count'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/columns"}], description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer", "enum"]}, {name: "column-span", values: [{name: "all", description: "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."}, {name: "none", description: "The element does not span multiple columns."}], syntax: "none | all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-span"}], description: "Describes the page/column break behavior after the generated box.", restrictions: ["enum"]}, {name: "column-width", values: [{name: "auto", description: "The width depends on the values of other properties."}], syntax: "<length> | auto", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/column-width"}], description: "Describes the width of columns in multicol elements.", restrictions: ["length", "enum"]}, {name: "contain", browsers: ["E79", "FF69", "C52", "O40"], values: [{name: "none", description: "Indicates that the property has no effect."}, {name: "strict", description: "Turns on all forms of containment for the element."}, {name: "content", description: "All containment rules except size are applied to the element."}, {name: "size", description: "For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."}, {name: "layout", description: "Turns on layout containment for the element."}, {name: "style", description: "Turns on style containment for the element."}, {name: "paint", description: "Turns on paint containment for the element."}], syntax: "none | strict | content | [ size || layout || style || paint ]", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/contain"}], description: "Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.", restrictions: ["enum"]}, {name: "content", values: [{name: "attr()", description: "The attr(n) function returns as a string the value of attribute n for the subject of the selector."}, {name: "counter(name)", description: "Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."}, {name: "icon", description: "The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."}, {name: "none", description: "On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."}, {name: "normal", description: "See http://www.w3.org/TR/css3-content/#content for computation rules."}, {name: "url()"}], syntax: "normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/content"}], description: "Determines which page-based occurrence of a given element is applied to a counter or string value.", restrictions: ["string", "url"]}, {name: "counter-increment", values: [{name: "none", description: "This element does not alter the value of any counters."}], syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-increment"}], description: "Manipulate the value of existing counters.", restrictions: ["identifier", "integer"]}, {name: "counter-reset", values: [{name: "none", description: "The counter is not modified."}], syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-reset"}], description: "Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.", restrictions: ["identifier", "integer"]}, {name: "cursor", values: [{name: "alias", description: "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."}, {name: "all-scroll", description: "Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."}, {name: "auto", description: "The UA determines the cursor to display based on the current context."}, {name: "cell", description: "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."}, {name: "col-resize", description: "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."}, {name: "context-menu", description: "A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."}, {name: "copy", description: "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."}, {name: "crosshair", description: "A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."}, {name: "default", description: "The platform-dependent default cursor. Often rendered as an arrow."}, {name: "e-resize", description: "Indicates that east edge is to be moved."}, {name: "ew-resize", description: "Indicates a bidirectional east-west resize cursor."}, {name: "grab", description: "Indicates that something can be grabbed."}, {name: "grabbing", description: "Indicates that something is being grabbed."}, {name: "help", description: "Help is available for the object under the cursor. Often rendered as a question mark or a balloon."}, {name: "move", description: "Indicates something is to be moved."}, {name: "-moz-grab", description: "Indicates that something can be grabbed."}, {name: "-moz-grabbing", description: "Indicates that something is being grabbed."}, {name: "-moz-zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "-moz-zoom-out", description: "Indicates that something can be zoomed (magnified) out."}, {name: "ne-resize", description: "Indicates that movement starts from north-east corner."}, {name: "nesw-resize", description: "Indicates a bidirectional north-east/south-west cursor."}, {name: "no-drop", description: "Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."}, {name: "none", description: "No cursor is rendered for the element."}, {name: "not-allowed", description: "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."}, {name: "n-resize", description: "Indicates that north edge is to be moved."}, {name: "ns-resize", description: "Indicates a bidirectional north-south cursor."}, {name: "nw-resize", description: "Indicates that movement starts from north-west corner."}, {name: "nwse-resize", description: "Indicates a bidirectional north-west/south-east cursor."}, {name: "pointer", description: "The cursor is a pointer that indicates a link."}, {name: "progress", description: "A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."}, {name: "row-resize", description: "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."}, {name: "se-resize", description: "Indicates that movement starts from south-east corner."}, {name: "s-resize", description: "Indicates that south edge is to be moved."}, {name: "sw-resize", description: "Indicates that movement starts from south-west corner."}, {name: "text", description: "Indicates text that may be selected. Often rendered as a vertical I-beam."}, {name: "vertical-text", description: "Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."}, {name: "wait", description: "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."}, {name: "-webkit-grab", description: "Indicates that something can be grabbed."}, {name: "-webkit-grabbing", description: "Indicates that something is being grabbed."}, {name: "-webkit-zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "-webkit-zoom-out", description: "Indicates that something can be zoomed (magnified) out."}, {name: "w-resize", description: "Indicates that west edge is to be moved."}, {name: "zoom-in", description: "Indicates that something can be zoomed (magnified) in."}, {name: "zoom-out", description: "Indicates that something can be zoomed (magnified) out."}], syntax: "[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/cursor"}], description: "Allows control over cursor appearance in an element", restrictions: ["url", "number", "enum"]}, {name: "direction", values: [{name: "ltr", description: "Left-to-right direction."}, {name: "rtl", description: "Right-to-left direction."}], syntax: "ltr | rtl", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/direction"}], description: "Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.", restrictions: ["enum"]}, {name: "display", values: [{name: "block", description: "The element generates a block-level box"}, {name: "contents", description: "The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."}, {name: "flex", description: "The element generates a principal flex container box and establishes a flex formatting context."}, {name: "flexbox", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "flow-root", description: "The element generates a block container box, and lays out its contents using flow layout."}, {name: "grid", description: "The element generates a principal grid container box, and establishes a grid formatting context."}, {name: "inline", description: "The element generates an inline-level box."}, {name: "inline-block", description: "A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."}, {name: "inline-flex", description: "Inline-level flex container."}, {name: "inline-flexbox", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "inline-table", description: "Inline-level table wrapper box containing table box."}, {name: "list-item", description: "One or more block boxes and one marker box."}, {name: "-moz-box", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-moz-deck"}, {name: "-moz-grid"}, {name: "-moz-grid-group"}, {name: "-moz-grid-line"}, {name: "-moz-groupbox"}, {name: "-moz-inline-box", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-moz-inline-grid"}, {name: "-moz-inline-stack"}, {name: "-moz-marker"}, {name: "-moz-popup"}, {name: "-moz-stack"}, {name: "-ms-flexbox", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-ms-grid", description: "The element generates a principal grid container box, and establishes a grid formatting context."}, {name: "-ms-inline-flexbox", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-ms-inline-grid", description: "Inline-level grid container."}, {name: "none", description: "The element and its descendants generates no boxes."}, {name: "ruby", description: "The element generates a principal ruby container box, and establishes a ruby formatting context."}, {name: "ruby-base"}, {name: "ruby-base-container"}, {name: "ruby-text"}, {name: "ruby-text-container"}, {name: "run-in", description: "The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."}, {name: "table", description: "The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."}, {name: "table-caption"}, {name: "table-cell"}, {name: "table-column"}, {name: "table-column-group"}, {name: "table-footer-group"}, {name: "table-header-group"}, {name: "table-row"}, {name: "table-row-group"}, {name: "-webkit-box", description: "The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."}, {name: "-webkit-flex", description: "The element lays out its contents using flow layout (block-and-inline layout)."}, {name: "-webkit-inline-box", description: "Inline-level flex container. Standardized as 'inline-flex'"}, {name: "-webkit-inline-flex", description: "Inline-level flex container."}], syntax: "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/display"}], description: "In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.", restrictions: ["enum"]}, {name: "empty-cells", values: [{name: "hide", description: "No borders or backgrounds are drawn around/behind empty cells."}, {name: "-moz-show-background"}, {name: "show", description: "Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}], syntax: "show | hide", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/empty-cells"}], description: "In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.", restrictions: ["enum"]}, {name: "enable-background", values: [{name: "accumulate", description: "If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."}, {name: "new", description: "Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}], relevance: 50, description: "Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.", restrictions: ["integer", "length", "percentage", "enum"]}, {name: "fallback", browsers: ["FF33"], syntax: "<counter-style-name>", relevance: 50, description: "@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can\u2019t create a representation for a given counter value.", restrictions: ["identifier"]}, {name: "fill", values: [{name: "url()", description: "A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."}, {name: "none", description: "No paint is applied in this layer."}], relevance: 74, description: "Paints the interior of the given graphical element.", restrictions: ["color", "enum", "url"]}, {name: "fill-opacity", relevance: 52, description: "Specifies the opacity of the painting operation used to paint the interior the current object.", restrictions: ["number(0-1)"]}, {name: "fill-rule", values: [{name: "evenodd", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."}, {name: "nonzero", description: "Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}], relevance: 50, description: "Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.", restrictions: ["enum"]}, {name: "filter", browsers: ["E12", "FF35", "S9.1", "C53", "O40"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", browsers: ["E12", "FF35", "S9.1", "C53", "O40"], description: "A filter reference to a <filter> element."}], syntax: "none | <filter-function-list>", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/filter"}], description: "Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.", restrictions: ["enum", "url"]}, {name: "flex", values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "content", description: "Indicates automatic sizing, based on the flex item\u2019s content."}, {name: "none", description: "Expands to '0 0 auto'."}], syntax: "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]", relevance: 77, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex"}], description: "Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.", restrictions: ["length", "number", "percentage"]}, {name: "flex-basis", values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "content", description: "Indicates automatic sizing, based on the flex item\u2019s content."}], syntax: "content | <'width'>", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-basis"}], description: "Sets the flex basis.", restrictions: ["length", "number", "percentage"]}, {name: "flex-direction", values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}], syntax: "row | row-reverse | column | column-reverse", relevance: 78, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-direction"}], description: "Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.", restrictions: ["enum"]}, {name: "flex-flow", values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "nowrap", description: "The flex container is single-line."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], syntax: "<'flex-direction'> || <'flex-wrap'>", relevance: 58, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-flow"}], description: "Specifies how flexbox items are placed in the flexbox.", restrictions: ["enum"]}, {name: "flex-grow", syntax: "<number>", relevance: 71, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-grow"}], description: "Sets the flex grow factor. Negative numbers are invalid.", restrictions: ["number"]}, {name: "flex-shrink", syntax: "<number>", relevance: 69, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}], description: "Sets the flex shrink factor. Negative numbers are invalid.", restrictions: ["number"]}, {name: "flex-wrap", values: [{name: "nowrap", description: "The flex container is single-line."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], syntax: "nowrap | wrap | wrap-reverse", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}], description: "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.", restrictions: ["enum"]}, {name: "float", values: [{name: "inline-end", description: "A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."}, {name: "inline-start", description: "A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."}, {name: "left", description: "The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."}, {name: "none", description: "The box is not floated."}, {name: "right", description: "Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}], syntax: "left | right | none | inline-start | inline-end", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/float"}], description: "Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.", restrictions: ["enum"]}, {name: "flood-color", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Indicates what color to use to flood the current filter primitive subregion.", restrictions: ["color"]}, {name: "flood-opacity", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Indicates what opacity to use to flood the current filter primitive subregion.", restrictions: ["number(0-1)", "percentage"]}, {name: "font", values: [{name: "100", description: "Thin"}, {name: "200", description: "Extra Light (Ultra Light)"}, {name: "300", description: "Light"}, {name: "400", description: "Normal"}, {name: "500", description: "Medium"}, {name: "600", description: "Semi Bold (Demi Bold)"}, {name: "700", description: "Bold"}, {name: "800", description: "Extra Bold (Ultra Bold)"}, {name: "900", description: "Black (Heavy)"}, {name: "bold", description: "Same as 700"}, {name: "bolder", description: "Specifies the weight of the face bolder than the inherited value."}, {name: "caption", description: "The font used for captioned controls (e.g., buttons, drop-downs, etc.)."}, {name: "icon", description: "The font used to label icons."}, {name: "italic", description: "Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."}, {name: "large"}, {name: "larger"}, {name: "lighter", description: "Specifies the weight of the face lighter than the inherited value."}, {name: "medium"}, {name: "menu", description: "The font used in menus (e.g., dropdown menus and menu lists)."}, {name: "message-box", description: "The font used in dialog boxes."}, {name: "normal", description: "Specifies a face that is not labeled as a small-caps font."}, {name: "oblique", description: "Selects a font that is labeled 'oblique'."}, {name: "small"}, {name: "small-caps", description: "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}, {name: "small-caption", description: "The font used for labeling small controls."}, {name: "smaller"}, {name: "status-bar", description: "The font used in window status bars."}, {name: "x-large"}, {name: "x-small"}, {name: "xx-large"}, {name: "xx-small"}], syntax: "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar", relevance: 82, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font"}], description: "Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.", restrictions: ["font"]}, {name: "font-family", values: [{name: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"}, {name: "Arial, Helvetica, sans-serif"}, {name: "Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"}, {name: "'Courier New', Courier, monospace"}, {name: "cursive"}, {name: "fantasy"}, {name: "'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"}, {name: "Georgia, 'Times New Roman', Times, serif"}, {name: "'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"}, {name: "Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"}, {name: "'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"}, {name: "monospace"}, {name: "sans-serif"}, {name: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"}, {name: "serif"}, {name: "'Times New Roman', Times, serif"}, {name: "'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"}, {name: "Verdana, Geneva, Tahoma, sans-serif"}], syntax: "<family-name>", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-family"}], description: "Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.", restrictions: ["font"]}, {name: "font-feature-settings", values: [{name: '"aalt"', description: "Access All Alternates."}, {name: '"abvf"', description: "Above-base Forms. Required in Khmer script."}, {name: '"abvm"', description: "Above-base Mark Positioning. Required in Indic scripts."}, {name: '"abvs"', description: "Above-base Substitutions. Required in Indic scripts."}, {name: '"afrc"', description: "Alternative Fractions."}, {name: '"akhn"', description: "Akhand. Required in most Indic scripts."}, {name: '"blwf"', description: "Below-base Form. Required in a number of Indic scripts."}, {name: '"blwm"', description: "Below-base Mark Positioning. Required in Indic scripts."}, {name: '"blws"', description: "Below-base Substitutions. Required in Indic scripts."}, {name: '"calt"', description: "Contextual Alternates."}, {name: '"case"', description: "Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."}, {name: '"ccmp"', description: "Glyph Composition/Decomposition."}, {name: '"cfar"', description: "Conjunct Form After Ro. Required in Khmer scripts."}, {name: '"cjct"', description: "Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."}, {name: '"clig"', description: "Contextual Ligatures."}, {name: '"cpct"', description: "Centered CJK Punctuation. Used primarily in Chinese fonts."}, {name: '"cpsp"', description: "Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."}, {name: '"cswh"', description: "Contextual Swash."}, {name: '"curs"', description: "Cursive Positioning. Can be used in any cursive script."}, {name: '"c2pc"', description: "Petite Capitals From Capitals. Applies only to bicameral scripts."}, {name: '"c2sc"', description: "Small Capitals From Capitals. Applies only to bicameral scripts."}, {name: '"dist"', description: "Distances. Required in Indic scripts."}, {name: '"dlig"', description: "Discretionary ligatures."}, {name: '"dnom"', description: "Denominators."}, {name: '"dtls"', description: "Dotless Forms. Applied to math formula layout."}, {name: '"expt"', description: "Expert Forms. Applies only to Japanese."}, {name: '"falt"', description: "Final Glyph on Line Alternates. Can be used in any cursive script."}, {name: '"fin2"', description: "Terminal Form #2. Used only with the Syriac script."}, {name: '"fin3"', description: "Terminal Form #3. Used only with the Syriac script."}, {name: '"fina"', description: "Terminal Forms. Can be used in any alphabetic script."}, {name: '"flac"', description: "Flattened ascent forms. Applied to math formula layout."}, {name: '"frac"', description: "Fractions."}, {name: '"fwid"', description: "Full Widths. Applies to any script which can use monospaced forms."}, {name: '"half"', description: "Half Forms. Required in Indic scripts that show similarity to Devanagari."}, {name: '"haln"', description: "Halant Forms. Required in Indic scripts."}, {name: '"halt"', description: "Alternate Half Widths. Used only in CJKV fonts."}, {name: '"hist"', description: "Historical Forms."}, {name: '"hkna"', description: "Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."}, {name: '"hlig"', description: "Historical Ligatures."}, {name: '"hngl"', description: "Hangul. Korean only."}, {name: '"hojo"', description: "Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."}, {name: '"hwid"', description: "Half Widths. Generally used only in CJKV fonts."}, {name: '"init"', description: "Initial Forms. Can be used in any alphabetic script."}, {name: '"isol"', description: "Isolated Forms. Can be used in any cursive script."}, {name: '"ital"', description: "Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."}, {name: '"jalt"', description: "Justification Alternates. Can be used in any cursive script."}, {name: '"jp78"', description: "JIS78 Forms. Applies only to Japanese."}, {name: '"jp83"', description: "JIS83 Forms. Applies only to Japanese."}, {name: '"jp90"', description: "JIS90 Forms. Applies only to Japanese."}, {name: '"jp04"', description: "JIS2004 Forms. Applies only to Japanese."}, {name: '"kern"', description: "Kerning."}, {name: '"lfbd"', description: "Left Bounds."}, {name: '"liga"', description: "Standard Ligatures."}, {name: '"ljmo"', description: "Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"lnum"', description: "Lining Figures."}, {name: '"locl"', description: "Localized Forms."}, {name: '"ltra"', description: "Left-to-right glyph alternates."}, {name: '"ltrm"', description: "Left-to-right mirrored forms."}, {name: '"mark"', description: "Mark Positioning."}, {name: '"med2"', description: "Medial Form #2. Used only with the Syriac script."}, {name: '"medi"', description: "Medial Forms."}, {name: '"mgrk"', description: "Mathematical Greek."}, {name: '"mkmk"', description: "Mark to Mark Positioning."}, {name: '"nalt"', description: "Alternate Annotation Forms."}, {name: '"nlck"', description: "NLC Kanji Forms. Used only with Kanji script."}, {name: '"nukt"', description: "Nukta Forms. Required in Indic scripts.."}, {name: '"numr"', description: "Numerators."}, {name: '"onum"', description: "Oldstyle Figures."}, {name: '"opbd"', description: "Optical Bounds."}, {name: '"ordn"', description: "Ordinals. Applies mostly to Latin script."}, {name: '"ornm"', description: "Ornaments."}, {name: '"palt"', description: "Proportional Alternate Widths. Used mostly in CJKV fonts."}, {name: '"pcap"', description: "Petite Capitals."}, {name: '"pkna"', description: "Proportional Kana. Generally used only in Japanese fonts."}, {name: '"pnum"', description: "Proportional Figures."}, {name: '"pref"', description: "Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."}, {name: '"pres"', description: "Pre-base Substitutions. Required in Indic scripts."}, {name: '"pstf"', description: "Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."}, {name: '"psts"', description: "Post-base Substitutions."}, {name: '"pwid"', description: "Proportional Widths."}, {name: '"qwid"', description: "Quarter Widths. Generally used only in CJKV fonts."}, {name: '"rand"', description: "Randomize."}, {name: '"rclt"', description: "Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."}, {name: '"rlig"', description: "Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."}, {name: '"rkrf"', description: "Rakar Forms. Required in Devanagari and Gujarati scripts."}, {name: '"rphf"', description: "Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."}, {name: '"rtbd"', description: "Right Bounds."}, {name: '"rtla"', description: "Right-to-left alternates."}, {name: '"rtlm"', description: "Right-to-left mirrored forms."}, {name: '"ruby"', description: "Ruby Notation Forms. Applies only to Japanese."}, {name: '"salt"', description: "Stylistic Alternates."}, {name: '"sinf"', description: "Scientific Inferiors."}, {name: '"size"', description: "Optical size."}, {name: '"smcp"', description: "Small Capitals. Applies only to bicameral scripts."}, {name: '"smpl"', description: "Simplified Forms. Applies only to Chinese and Japanese."}, {name: '"ssty"', description: "Math script style alternates."}, {name: '"stch"', description: "Stretching Glyph Decomposition."}, {name: '"subs"', description: "Subscript."}, {name: '"sups"', description: "Superscript."}, {name: '"swsh"', description: "Swash. Does not apply to ideographic scripts."}, {name: '"titl"', description: "Titling."}, {name: '"tjmo"', description: "Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"tnam"', description: "Traditional Name Forms. Applies only to Japanese."}, {name: '"tnum"', description: "Tabular Figures."}, {name: '"trad"', description: "Traditional Forms. Applies only to Chinese and Japanese."}, {name: '"twid"', description: "Third Widths. Generally used only in CJKV fonts."}, {name: '"unic"', description: "Unicase."}, {name: '"valt"', description: "Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."}, {name: '"vatu"', description: "Vattu Variants. Used for Indic scripts. E.g. Devanagari."}, {name: '"vert"', description: "Vertical Alternates. Applies only to scripts with vertical writing modes."}, {name: '"vhal"', description: "Alternate Vertical Half Metrics. Used only in CJKV fonts."}, {name: '"vjmo"', description: "Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."}, {name: '"vkna"', description: "Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."}, {name: '"vkrn"', description: "Vertical Kerning."}, {name: '"vpal"', description: "Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."}, {name: '"vrt2"', description: "Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."}, {name: '"zero"', description: "Slashed Zero."}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off", description: "Disable feature."}, {name: "on", description: "Enable feature."}], syntax: "normal | <feature-tag-value>#", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}], description: "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "font-kerning", browsers: ["E79", "FF32", "S9", "C33", "O20"], values: [{name: "auto", description: "Specifies that kerning is applied at the discretion of the user agent."}, {name: "none", description: "Specifies that kerning is not applied."}, {name: "normal", description: "Specifies that kerning is applied."}], syntax: "auto | normal | none", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-kerning"}], description: "Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.", restrictions: ["enum"]}, {name: "font-language-override", browsers: ["FF34"], values: [{name: "normal", description: "Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}], syntax: "normal | <string>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-language-override"}], description: "The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.", restrictions: ["string"]}, {name: "font-size", values: [{name: "large"}, {name: "larger"}, {name: "medium"}, {name: "small"}, {name: "smaller"}, {name: "x-large"}, {name: "x-small"}, {name: "xx-large"}, {name: "xx-small"}], syntax: "<absolute-size> | <relative-size> | <length-percentage>", relevance: 94, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-size"}], description: "Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.", restrictions: ["length", "percentage"]}, {name: "font-size-adjust", browsers: ["E79", "FF40", "C43", "O30"], values: [{name: "none", description: "Do not preserve the font\u2019s x-height."}], syntax: "none | <number>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}], description: "Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.", restrictions: ["number"]}, {name: "font-stretch", values: [{name: "condensed"}, {name: "expanded"}, {name: "extra-condensed"}, {name: "extra-expanded"}, {name: "narrower", description: "Indicates a narrower value relative to the width of the parent element."}, {name: "normal"}, {name: "semi-condensed"}, {name: "semi-expanded"}, {name: "ultra-condensed"}, {name: "ultra-expanded"}, {name: "wider", description: "Indicates a wider value relative to the width of the parent element."}], syntax: "<font-stretch-absolute>{1,2}", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-stretch"}], description: "Selects a normal, condensed, or expanded face from a font family.", restrictions: ["enum"]}, {name: "font-style", values: [{name: "italic", description: "Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"}, {name: "normal", description: "Selects a face that is classified as 'normal'."}, {name: "oblique", description: "Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}], syntax: "normal | italic | oblique <angle>{0,2}", relevance: 83, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-style"}], description: "Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.", restrictions: ["enum"]}, {name: "font-synthesis", browsers: ["FF34", "S9"], values: [{name: "none", description: "Disallow all synthetic faces."}, {name: "style", description: "Allow synthetic italic faces."}, {name: "weight", description: "Allow synthetic bold faces."}], syntax: "none | [ weight || style ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}], description: "Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.", restrictions: ["enum"]}, {name: "font-variant", values: [{name: "normal", description: "Specifies a face that is not labeled as a small-caps font."}, {name: "small-caps", description: "Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}], syntax: "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]", relevance: 63, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant"}], description: "Specifies variant representations of the font", restrictions: ["enum"]}, {name: "font-variant-alternates", browsers: ["FF34"], values: [{name: "annotation()", description: "Enables display of alternate annotation forms."}, {name: "character-variant()", description: "Enables display of specific character variants."}, {name: "historical-forms", description: "Enables display of historical forms."}, {name: "normal", description: "None of the features are enabled."}, {name: "ornaments()", description: "Enables replacement of default glyphs with ornaments, if provided in the font."}, {name: "styleset()", description: "Enables display with stylistic sets."}, {name: "stylistic()", description: "Enables display of stylistic alternates."}, {name: "swash()", description: "Enables display of swash glyphs."}], syntax: "normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}], description: "For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.", restrictions: ["enum"]}, {name: "font-variant-caps", browsers: ["E79", "FF34", "C52", "O39"], values: [{name: "all-petite-caps", description: "Enables display of petite capitals for both upper and lowercase letters."}, {name: "all-small-caps", description: "Enables display of small capitals for both upper and lowercase letters."}, {name: "normal", description: "None of the features are enabled."}, {name: "petite-caps", description: "Enables display of petite capitals."}, {name: "small-caps", description: "Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."}, {name: "titling-caps", description: "Enables display of titling capitals."}, {name: "unicase", description: "Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}], syntax: "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}], description: "Specifies control over capitalized forms.", restrictions: ["enum"]}, {name: "font-variant-east-asian", browsers: ["E79", "FF34", "C63", "O50"], values: [{name: "full-width", description: "Enables rendering of full-width variants."}, {name: "jis04", description: "Enables rendering of JIS04 forms."}, {name: "jis78", description: "Enables rendering of JIS78 forms."}, {name: "jis83", description: "Enables rendering of JIS83 forms."}, {name: "jis90", description: "Enables rendering of JIS90 forms."}, {name: "normal", description: "None of the features are enabled."}, {name: "proportional-width", description: "Enables rendering of proportionally-spaced variants."}, {name: "ruby", description: "Enables display of ruby variant glyphs."}, {name: "simplified", description: "Enables rendering of simplified forms."}, {name: "traditional", description: "Enables rendering of traditional forms."}], syntax: "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}], description: "Allows control of glyph substitute and positioning in East Asian text.", restrictions: ["enum"]}, {name: "font-variant-ligatures", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], values: [{name: "additional-ligatures", description: "Enables display of additional ligatures."}, {name: "common-ligatures", description: "Enables display of common ligatures."}, {name: "contextual", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Enables display of contextual alternates."}, {name: "discretionary-ligatures", description: "Enables display of discretionary ligatures."}, {name: "historical-ligatures", description: "Enables display of historical ligatures."}, {name: "no-additional-ligatures", description: "Disables display of additional ligatures."}, {name: "no-common-ligatures", description: "Disables display of common ligatures."}, {name: "no-contextual", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Disables display of contextual alternates."}, {name: "no-discretionary-ligatures", description: "Disables display of discretionary ligatures."}, {name: "no-historical-ligatures", description: "Disables display of historical ligatures."}, {name: "none", browsers: ["E79", "FF34", "S9.1", "C34", "O21"], description: "Disables all ligatures."}, {name: "normal", description: "Implies that the defaults set by the font are used."}], syntax: "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}], description: "Specifies control over which ligatures are enabled or disabled. A value of \u2018normal\u2019 implies that the defaults set by the font are used.", restrictions: ["enum"]}, {name: "font-variant-numeric", browsers: ["E79", "FF34", "S9.1", "C52", "O39"], values: [{name: "diagonal-fractions", description: "Enables display of lining diagonal fractions."}, {name: "lining-nums", description: "Enables display of lining numerals."}, {name: "normal", description: "None of the features are enabled."}, {name: "oldstyle-nums", description: "Enables display of old-style numerals."}, {name: "ordinal", description: "Enables display of letter forms used with ordinal numbers."}, {name: "proportional-nums", description: "Enables display of proportional numerals."}, {name: "slashed-zero", description: "Enables display of slashed zeros."}, {name: "stacked-fractions", description: "Enables display of lining stacked fractions."}, {name: "tabular-nums", description: "Enables display of tabular numerals."}], syntax: "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}], description: "Specifies control over numerical forms.", restrictions: ["enum"]}, {name: "font-variant-position", browsers: ["FF34"], values: [{name: "normal", description: "None of the features are enabled."}, {name: "sub", description: "Enables display of subscript variants (OpenType feature: subs)."}, {name: "super", description: "Enables display of superscript variants (OpenType feature: sups)."}], syntax: "normal | sub | super", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}], description: "Specifies the vertical position", restrictions: ["enum"]}, {name: "font-weight", values: [{name: "100", description: "Thin"}, {name: "200", description: "Extra Light (Ultra Light)"}, {name: "300", description: "Light"}, {name: "400", description: "Normal"}, {name: "500", description: "Medium"}, {name: "600", description: "Semi Bold (Demi Bold)"}, {name: "700", description: "Bold"}, {name: "800", description: "Extra Bold (Ultra Bold)"}, {name: "900", description: "Black (Heavy)"}, {name: "bold", description: "Same as 700"}, {name: "bolder", description: "Specifies the weight of the face bolder than the inherited value."}, {name: "lighter", description: "Specifies the weight of the face lighter than the inherited value."}, {name: "normal", description: "Same as 400"}], syntax: "<font-weight-absolute>{1,2}", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-weight"}], description: "Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.", restrictions: ["enum"]}, {name: "glyph-orientation-horizontal", relevance: 50, description: "Controls glyph orientation when the inline-progression-direction is horizontal.", restrictions: ["angle", "number"]}, {name: "glyph-orientation-vertical", values: [{name: "auto", description: "Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}], relevance: 50, description: "Controls glyph orientation when the inline-progression-direction is vertical.", restrictions: ["angle", "number", "enum"]}, {name: "grid-area", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]{0,3}", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-area"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.", restrictions: ["identifier", "integer"]}, {name: "grid", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], syntax: "<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid"}], description: "The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "grid-auto-columns", values: [{name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}], syntax: "<track-size>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}], description: "Specifies the size of implicitly created columns.", restrictions: ["length", "percentage"]}, {name: "grid-auto-flow", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "row", description: "The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."}, {name: "column", description: "The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."}, {name: "dense", description: "If specified, the auto-placement algorithm uses a \u201Cdense\u201D packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later."}], syntax: "[ row | column ] || dense", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}], description: "Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.", restrictions: ["enum"]}, {name: "grid-auto-rows", values: [{name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}], syntax: "<track-size>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}], description: "Specifies the size of implicitly created rows.", restrictions: ["length", "percentage"]}, {name: "grid-column", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column"}], description: "Shorthand for 'grid-column-start' and 'grid-column-end'.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-column-end", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-column-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<length-percentage>", relevance: 1, description: "Specifies the gutters between grid columns. Replaced by 'column-gap' property.", restrictions: ["length"]}, {name: "grid-column-start", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<'grid-row-gap'> <'grid-column-gap'>?", relevance: 1, description: "Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.", restrictions: ["length"]}, {name: "grid-row", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line> [ / <grid-line> ]?", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row"}], description: "Shorthand for 'grid-row-start' and 'grid-row-end'.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-row-end", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-row-gap", browsers: ["FF52", "C57", "S10.1", "O44"], status: "obsolete", syntax: "<length-percentage>", relevance: 1, description: "Specifies the gutters between grid rows. Replaced by 'row-gap' property.", restrictions: ["length"]}, {name: "grid-row-start", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "auto", description: "The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."}, {name: "span", description: "Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}], syntax: "<grid-line>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}], description: "Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.", restrictions: ["identifier", "integer", "enum"]}, {name: "grid-template", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "Sets all three properties to their initial values."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template"}], description: "Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "grid-template-areas", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "The grid container doesn\u2019t define any named grid areas."}], syntax: "none | <string>+", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}], description: "Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.", restrictions: ["string"]}, {name: "grid-template-columns", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "There is no explicit grid; any rows/columns will be implicitly generated."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Indicates that the grid will align to its parent grid in that axis."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}], description: "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", restrictions: ["identifier", "length", "percentage", "enum"]}, {name: "grid-template-rows", browsers: ["E16", "FF52", "S10.1", "C57", "O44"], values: [{name: "none", description: "There is no explicit grid; any rows/columns will be implicitly generated."}, {name: "min-content", description: "Represents the largest min-content contribution of the grid items occupying the grid track."}, {name: "max-content", description: "Represents the largest max-content contribution of the grid items occupying the grid track."}, {name: "auto", description: "As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."}, {name: "subgrid", description: "Indicates that the grid will align to its parent grid in that axis."}, {name: "minmax()", description: "Defines a size range greater than or equal to min and less than or equal to max."}, {name: "repeat()", description: "Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}], syntax: "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}], description: "specifies, as a space-separated track list, the line names and track sizing functions of the grid.", restrictions: ["identifier", "length", "percentage", "string", "enum"]}, {name: "height", values: [{name: "auto", description: "The height depends on the values of other properties."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>{1,2}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/height"}], description: "Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", restrictions: ["length", "percentage"]}, {name: "hyphens", values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], syntax: "none | manual | auto", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/hyphens"}], description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "image-orientation", browsers: ["E81", "FF26", "S13.1", "C81", "O67"], values: [{name: "flip", description: "After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."}, {name: "from-image", description: "If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}], syntax: "from-image | <angle> | [ <angle>? flip ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/image-orientation"}], description: "Specifies an orthogonal rotation to be applied to an image before it is laid out.", restrictions: ["angle"]}, {name: "image-rendering", browsers: ["E79", "FF3.6", "S6", "C13", "O15"], values: [{name: "auto", description: "The image should be scaled with an algorithm that maximizes the appearance of the image."}, {name: "crisp-edges", description: "The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."}, {name: "-moz-crisp-edges", browsers: ["E79", "FF3.6", "S6", "C13", "O15"]}, {name: "optimizeQuality", description: "Deprecated."}, {name: "optimizeSpeed", description: "Deprecated."}, {name: "pixelated", description: "When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}], syntax: "auto | crisp-edges | pixelated", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/image-rendering"}], description: "Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.", restrictions: ["enum"]}, {name: "ime-mode", browsers: ["E12", "FF3", "IE5"], values: [{name: "active", description: "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."}, {name: "auto", description: "No change is made to the current input method editor state. This is the default."}, {name: "disabled", description: "The input method editor is disabled and may not be activated by the user."}, {name: "inactive", description: "The input method editor is initially inactive, but the user may activate it if they wish."}, {name: "normal", description: "The IME state should be normal; this value can be used in a user style sheet to override the page setting."}], status: "obsolete", syntax: "auto | normal | active | inactive | disabled", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ime-mode"}], description: "Controls the state of the input method editor for text fields.", restrictions: ["enum"]}, {name: "inline-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "auto", description: "Depends on the values of other properties."}], syntax: "<'width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inline-size"}], description: "Logical 'height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "isolation", browsers: ["E79", "FF36", "S8", "C41", "O30"], values: [{name: "auto", description: "Elements are not isolated unless an operation is applied that causes the creation of a stacking context."}, {name: "isolate", description: "In CSS will turn the element into a stacking context."}], syntax: "auto | isolate", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/isolation"}], description: "In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.", restrictions: ["enum"]}, {name: "justify-content", values: [{name: "center", description: "Flex items are packed toward the center of the line."}, {name: "start", description: "The items are packed flush to each other toward the start edge of the alignment container in the main axis."}, {name: "end", description: "The items are packed flush to each other toward the end edge of the alignment container in the main axis."}, {name: "left", description: "The items are packed flush to each other toward the left edge of the alignment container in the main axis."}, {name: "right", description: "The items are packed flush to each other toward the right edge of the alignment container in the main axis."}, {name: "safe", description: "If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."}, {name: "unsafe", description: "Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."}, {name: "stretch", description: "If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."}, {name: "space-evenly", description: "The items are evenly distributed within the alignment container along the main axis."}, {name: "flex-end", description: "Flex items are packed toward the end of the line."}, {name: "flex-start", description: "Flex items are packed toward the start of the line."}, {name: "space-around", description: "Flex items are evenly distributed in the line, with half-size spaces on either end."}, {name: "space-between", description: "Flex items are evenly distributed in the line."}, {name: "baseline", description: "Specifies participation in first-baseline alignment."}, {name: "first baseline", description: "Specifies participation in first-baseline alignment."}, {name: "last baseline", description: "Specifies participation in last-baseline alignment."}], syntax: "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]", relevance: 82, description: "Aligns flex items along the main axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "kerning", values: [{name: "auto", description: "Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}], relevance: 50, description: "Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.", restrictions: ["length", "enum"]}, {name: "left", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/left"}], description: "Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "letter-spacing", values: [{name: "normal", description: "The spacing is the normal spacing for the current font. It is typically zero-length."}], syntax: "normal | <length>", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}], description: "Specifies the minimum, maximum, and optimal spacing between grapheme clusters.", restrictions: ["length"]}, {name: "lighting-color", browsers: ["E", "C5", "FF3", "IE10", "O9", "S6"], relevance: 50, description: "Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.", restrictions: ["color"]}, {name: "line-break", values: [{name: "auto", description: "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."}, {name: "loose", description: "Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."}, {name: "normal", description: "Breaks text using the most common set of line-breaking rules."}, {name: "strict", description: "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}], syntax: "auto | loose | normal | strict | anywhere", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-break"}], description: "Specifies what set of line breaking restrictions are in effect within the element.", restrictions: ["enum"]}, {name: "line-height", values: [{name: "normal", description: "Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}], syntax: "normal | <number> | <length> | <percentage>", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-height"}], description: "Determines the block-progression dimension of the text content area of an inline box.", restrictions: ["number", "length", "percentage"]}, {name: "list-style", values: [{name: "armenian"}, {name: "circle", description: "A hollow circle."}, {name: "decimal"}, {name: "decimal-leading-zero"}, {name: "disc", description: "A filled circle."}, {name: "georgian"}, {name: "inside", description: "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."}, {name: "lower-alpha"}, {name: "lower-greek"}, {name: "lower-latin"}, {name: "lower-roman"}, {name: "none"}, {name: "outside", description: "The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}, {name: "square", description: "A filled square."}, {name: "symbols()", description: "Allows a counter style to be defined inline."}, {name: "upper-alpha"}, {name: "upper-latin"}, {name: "upper-roman"}, {name: "url()"}], syntax: "<'list-style-type'> || <'list-style-position'> || <'list-style-image'>", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style"}], description: "Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'", restrictions: ["image", "enum", "url"]}, {name: "list-style-image", values: [{name: "none", description: "The default contents of the of the list item\u2019s marker are given by 'list-style-type' instead."}], syntax: "<url> | none", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-image"}], description: "Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.", restrictions: ["image"]}, {name: "list-style-position", values: [{name: "inside", description: "The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."}, {name: "outside", description: "The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}], syntax: "inside | outside", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-position"}], description: "Specifies the position of the '::marker' pseudo-element's box in the list item.", restrictions: ["enum"]}, {name: "list-style-type", values: [{name: "armenian", description: "Traditional uppercase Armenian numbering."}, {name: "circle", description: "A hollow circle."}, {name: "decimal", description: "Western decimal numbers."}, {name: "decimal-leading-zero", description: "Decimal numbers padded by initial zeros."}, {name: "disc", description: "A filled circle."}, {name: "georgian", description: "Traditional Georgian numbering."}, {name: "lower-alpha", description: "Lowercase ASCII letters."}, {name: "lower-greek", description: "Lowercase classical Greek."}, {name: "lower-latin", description: "Lowercase ASCII letters."}, {name: "lower-roman", description: "Lowercase ASCII Roman numerals."}, {name: "none", description: "No marker"}, {name: "square", description: "A filled square."}, {name: "symbols()", description: "Allows a counter style to be defined inline."}, {name: "upper-alpha", description: "Uppercase ASCII letters."}, {name: "upper-latin", description: "Uppercase ASCII letters."}, {name: "upper-roman", description: "Uppercase ASCII Roman numerals."}], syntax: "<counter-style> | <string> | none", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/list-style-type"}], description: "Used to construct the default contents of a list item\u2019s marker", restrictions: ["enum", "string"]}, {name: "margin", values: [{name: "auto"}], syntax: "[ <length> | <percentage> | auto ]{1,4}", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.", restrictions: ["length", "percentage"]}, {name: "margin-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}], description: "Logical 'margin-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}], description: "Logical 'margin-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-bottom", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}], description: "Logical 'margin-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], values: [{name: "auto"}], syntax: "<'margin-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}], description: "Logical 'margin-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "margin-left", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-left"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-right", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-right"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "margin-top", values: [{name: "auto"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-top"}], description: "Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..", restrictions: ["length", "percentage"]}, {name: "marker", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given \u2018path\u2019 element or basic shape.", restrictions: ["url"]}, {name: "marker-end", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at the last vertices of the given markable element.", restrictions: ["url"]}, {name: "marker-mid", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at all vertices except the first and last.", restrictions: ["url"]}, {name: "marker-start", values: [{name: "none", description: "Indicates that no marker symbol will be drawn at the given vertex or vertices."}, {name: "url()", description: "Indicates that the <marker> element referenced will be used."}], relevance: 50, description: "Specifies the marker that will be drawn at the first vertices of the given markable element.", restrictions: ["url"]}, {name: "mask-image", browsers: ["E16", "FF53", "S4", "C1", "O15"], values: [{name: "none", description: "Counts as a transparent black image layer."}, {name: "url()", description: "Reference to a <mask element or to a CSS image."}], syntax: "<mask-reference>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-image"}], description: "Sets the mask layer image of an element.", restrictions: ["url", "image", "enum"]}, {name: "mask-mode", browsers: ["FF53"], values: [{name: "alpha", description: "Alpha values of the mask layer image should be used as the mask values."}, {name: "auto", description: "Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."}, {name: "luminance", description: "Luminance values of the mask layer image should be used as the mask values."}], syntax: "<masking-mode>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-mode"}], description: "Indicates whether the mask layer image is treated as luminance mask or alpha mask.", restrictions: ["url", "image", "enum"]}, {name: "mask-origin", browsers: ["E79", "FF53", "S4", "C1", "O15"], syntax: "<geometry-box>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-origin"}], description: "Specifies the mask positioning area.", restrictions: ["geometry-box", "enum"]}, {name: "mask-position", browsers: ["E18", "FF53", "S3.2", "C1", "O15"], syntax: "<position>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-position"}], description: "Specifies how mask layer images are positioned.", restrictions: ["position", "length", "percentage"]}, {name: "mask-repeat", browsers: ["E18", "FF53", "S3.2", "C1", "O15"], syntax: "<repeat-style>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}], description: "Specifies how mask layer images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "mask-size", browsers: ["E18", "FF53", "S4", "C4", "O15"], values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], syntax: "<bg-size>#", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-size"}], description: "Specifies the size of the mask layer images.", restrictions: ["length", "percentage", "enum"]}, {name: "mask-type", browsers: ["E79", "FF35", "S6.1", "C24", "O15"], values: [{name: "alpha", description: "Indicates that the alpha values of the mask should be used."}, {name: "luminance", description: "Indicates that the luminance values of the mask should be used."}], syntax: "luminance | alpha", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-type"}], description: "Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.", restrictions: ["enum"]}, {name: "max-block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], values: [{name: "none", description: "No limit on the width of the box."}], syntax: "<'max-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-block-size"}], description: "Logical 'max-width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "max-height", values: [{name: "none", description: "No limit on the height of the box."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-height"}], description: "Allows authors to constrain content height to a certain range.", restrictions: ["length", "percentage"]}, {name: "max-inline-size", browsers: ["E79", "FF41", "S10.1", "C57", "O44"], values: [{name: "none", description: "No limit on the height of the box."}], syntax: "<'max-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}], description: "Logical 'max-height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "max-width", values: [{name: "none", description: "No limit on the width of the box."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 89, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/max-width"}], description: "Allows authors to constrain content width to a certain range.", restrictions: ["length", "percentage"]}, {name: "min-block-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], syntax: "<'min-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-block-size"}], description: "Logical 'min-width'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "min-height", values: [{name: "auto"}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-height"}], description: "Allows authors to constrain content height to a certain range.", restrictions: ["length", "percentage"]}, {name: "min-inline-size", browsers: ["E79", "FF41", "S12.1", "C57", "O44"], syntax: "<'min-width'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}], description: "Logical 'min-height'. Mapping depends on the element\u2019s 'writing-mode'.", restrictions: ["length", "percentage"]}, {name: "min-width", values: [{name: "auto"}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/min-width"}], description: "Allows authors to constrain content width to a certain range.", restrictions: ["length", "percentage"]}, {name: "mix-blend-mode", browsers: ["E79", "FF32", "S8", "C41", "O28"], values: [{name: "normal", description: "Default attribute which specifies no blending"}, {name: "multiply", description: "The source color is multiplied by the destination color and replaces the destination."}, {name: "screen", description: "Multiplies the complements of the backdrop and source color values, then complements the result."}, {name: "overlay", description: "Multiplies or screens the colors, depending on the backdrop color value."}, {name: "darken", description: "Selects the darker of the backdrop and source colors."}, {name: "lighten", description: "Selects the lighter of the backdrop and source colors."}, {name: "color-dodge", description: "Brightens the backdrop color to reflect the source color."}, {name: "color-burn", description: "Darkens the backdrop color to reflect the source color."}, {name: "hard-light", description: "Multiplies or screens the colors, depending on the source color value."}, {name: "soft-light", description: "Darkens or lightens the colors, depending on the source color value."}, {name: "difference", description: "Subtracts the darker of the two constituent colors from the lighter color.."}, {name: "exclusion", description: "Produces an effect similar to that of the Difference mode but lower in contrast."}, {name: "hue", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."}, {name: "saturation", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."}, {name: "color", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."}, {name: "luminosity", browsers: ["E79", "FF32", "S8", "C41", "O28"], description: "Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}], syntax: "<blend-mode>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}], description: "Defines the formula that must be used to mix the colors with the backdrop.", restrictions: ["enum"]}, {name: "motion", browsers: ["C46", "O33"], values: [{name: "none", description: "No motion path gets created."}, {name: "path()", description: "Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}, {name: "auto", description: "Indicates that the object is rotated by the angle of the direction of the motion path."}, {name: "reverse", description: "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}], relevance: 50, description: "Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.", restrictions: ["url", "length", "percentage", "angle", "shape", "geometry-box", "enum"]}, {name: "motion-offset", browsers: ["C46", "O33"], relevance: 50, description: "A distance that describes the position along the specified motion path.", restrictions: ["length", "percentage"]}, {name: "motion-path", browsers: ["C46", "O33"], values: [{name: "none", description: "No motion path gets created."}, {name: "path()", description: "Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}], relevance: 50, description: "Specifies the motion path the element gets positioned at.", restrictions: ["url", "shape", "geometry-box", "enum"]}, {name: "motion-rotation", browsers: ["C46", "O33"], values: [{name: "auto", description: "Indicates that the object is rotated by the angle of the direction of the motion path."}, {name: "reverse", description: "Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}], relevance: 50, description: "Defines the direction of the element while positioning along the motion path.", restrictions: ["angle"]}, {name: "-moz-animation", browsers: ["FF9"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-moz-animation-delay", browsers: ["FF9"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-moz-animation-direction", browsers: ["FF9"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-moz-animation-duration", browsers: ["FF9"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-moz-animation-iteration-count", browsers: ["FF9"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-moz-animation-name", browsers: ["FF9"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-moz-animation-play-state", browsers: ["FF9"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-moz-animation-timing-function", browsers: ["FF9"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "-moz-appearance", browsers: ["FF1"], values: [{name: "button"}, {name: "button-arrow-down"}, {name: "button-arrow-next"}, {name: "button-arrow-previous"}, {name: "button-arrow-up"}, {name: "button-bevel"}, {name: "checkbox"}, {name: "checkbox-container"}, {name: "checkbox-label"}, {name: "dialog"}, {name: "groupbox"}, {name: "listbox"}, {name: "menuarrow"}, {name: "menuimage"}, {name: "menuitem"}, {name: "menuitemtext"}, {name: "menulist"}, {name: "menulist-button"}, {name: "menulist-text"}, {name: "menulist-textfield"}, {name: "menupopup"}, {name: "menuradio"}, {name: "menuseparator"}, {name: "-moz-mac-unified-toolbar"}, {name: "-moz-win-borderless-glass"}, {name: "-moz-win-browsertabbar-toolbox"}, {name: "-moz-win-communications-toolbox"}, {name: "-moz-win-glass"}, {name: "-moz-win-media-toolbox"}, {name: "none"}, {name: "progressbar"}, {name: "progresschunk"}, {name: "radio"}, {name: "radio-container"}, {name: "radio-label"}, {name: "radiomenuitem"}, {name: "resizer"}, {name: "resizerpanel"}, {name: "scrollbarbutton-down"}, {name: "scrollbarbutton-left"}, {name: "scrollbarbutton-right"}, {name: "scrollbarbutton-up"}, {name: "scrollbar-small"}, {name: "scrollbartrack-horizontal"}, {name: "scrollbartrack-vertical"}, {name: "separator"}, {name: "spinner"}, {name: "spinner-downbutton"}, {name: "spinner-textfield"}, {name: "spinner-upbutton"}, {name: "statusbar"}, {name: "statusbarpanel"}, {name: "tab"}, {name: "tabpanels"}, {name: "tab-scroll-arrow-back"}, {name: "tab-scroll-arrow-forward"}, {name: "textfield"}, {name: "textfield-multiline"}, {name: "toolbar"}, {name: "toolbox"}, {name: "tooltip"}, {name: "treeheadercell"}, {name: "treeheadersortarrow"}, {name: "treeitem"}, {name: "treetwistyopen"}, {name: "treeview"}, {name: "treewisty"}, {name: "window"}], status: "nonstandard", syntax: "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized", relevance: 0, description: "Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.", restrictions: ["enum"]}, {name: "-moz-backface-visibility", browsers: ["FF10"], values: [{name: "hidden"}, {name: "visible"}], relevance: 50, description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "-moz-background-clip", browsers: ["FF1-3.6"], values: [{name: "padding"}], relevance: 50, description: "Determines the background painting area.", restrictions: ["box", "enum"]}, {name: "-moz-background-inline-policy", browsers: ["FF1"], values: [{name: "bounding-box"}, {name: "continuous"}, {name: "each-box"}], relevance: 50, description: "In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.", restrictions: ["enum"]}, {name: "-moz-background-origin", browsers: ["FF1"], relevance: 50, description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "-moz-border-bottom-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-image", browsers: ["FF3.6"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "-moz-border-left-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-right-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-border-top-colors", browsers: ["FF1"], status: "nonstandard", syntax: "<color>+ | none", relevance: 0, description: "Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.", restrictions: ["color"]}, {name: "-moz-box-align", browsers: ["FF1"], values: [{name: "baseline", description: "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."}, {name: "center", description: "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."}, {name: "end", description: "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."}, {name: "start", description: "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."}, {name: "stretch", description: "The height of each child is adjusted to that of the containing block."}], relevance: 50, description: "Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.", restrictions: ["enum"]}, {name: "-moz-box-direction", browsers: ["FF1"], values: [{name: "normal", description: "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."}, {name: "reverse", description: "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}], relevance: 50, description: "Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).", restrictions: ["enum"]}, {name: "-moz-box-flex", browsers: ["FF1"], relevance: 50, description: "Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.", restrictions: ["number"]}, {name: "-moz-box-flexgroup", browsers: ["FF1"], relevance: 50, description: "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", restrictions: ["integer"]}, {name: "-moz-box-ordinal-group", browsers: ["FF1"], relevance: 50, description: "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", restrictions: ["integer"]}, {name: "-moz-box-orient", browsers: ["FF1"], values: [{name: "block-axis", description: "Elements are oriented along the box's axis."}, {name: "horizontal", description: "The box displays its children from left to right in a horizontal line."}, {name: "inline-axis", description: "Elements are oriented vertically."}, {name: "vertical", description: "The box displays its children from stacked from top to bottom vertically."}], relevance: 50, description: "In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.", restrictions: ["enum"]}, {name: "-moz-box-pack", browsers: ["FF1"], values: [{name: "center", description: "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."}, {name: "end", description: "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."}, {name: "justify", description: "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."}, {name: "start", description: "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}], relevance: 50, description: "Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.", restrictions: ["enum"]}, {name: "-moz-box-sizing", browsers: ["FF1"], values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}, {name: "padding-box", description: "The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}], relevance: 50, description: "Box Model addition in CSS3.", restrictions: ["enum"]}, {name: "-moz-column-count", browsers: ["FF3.5"], values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], relevance: 50, description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer"]}, {name: "-moz-column-gap", browsers: ["FF3.5"], values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], relevance: 50, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length"]}, {name: "-moz-column-rule", browsers: ["FF3.5"], relevance: 50, description: "Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "-moz-column-rule-color", browsers: ["FF3.5"], relevance: 50, description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "-moz-column-rule-style", browsers: ["FF3.5"], relevance: 50, description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "-moz-column-rule-width", browsers: ["FF3.5"], relevance: 50, description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "-moz-columns", browsers: ["FF9"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer"]}, {name: "-moz-column-width", browsers: ["FF3.5"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "This property describes the width of columns in multicol elements.", restrictions: ["length"]}, {name: "-moz-font-feature-settings", browsers: ["FF4"], values: [{name: '"c2cs"'}, {name: '"dlig"'}, {name: '"kern"'}, {name: '"liga"'}, {name: '"lnum"'}, {name: '"onum"'}, {name: '"smcp"'}, {name: '"swsh"'}, {name: '"tnum"'}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off", browsers: ["FF4"]}, {name: "on", browsers: ["FF4"]}], relevance: 50, description: "Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "-moz-hyphens", browsers: ["FF9"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-moz-perspective", browsers: ["FF10"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-moz-perspective-origin", browsers: ["FF10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-moz-text-align-last", browsers: ["FF12"], values: [{name: "auto"}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], relevance: 50, description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "-moz-text-decoration-color", browsers: ["FF6"], relevance: 50, description: "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", restrictions: ["color"]}, {name: "-moz-text-decoration-line", browsers: ["FF6"], values: [{name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Neither produces nor inhibits text decoration."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "underline", description: "Each line of text is underlined."}], relevance: 50, description: "Specifies what line decorations, if any, are added to the element.", restrictions: ["enum"]}, {name: "-moz-text-decoration-style", browsers: ["FF6"], values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "none", description: "Produces no line."}, {name: "solid", description: "Produces a solid line."}, {name: "wavy", description: "Produces a wavy line."}], relevance: 50, description: "Specifies the line style for underline, line-through and overline text decoration.", restrictions: ["enum"]}, {name: "-moz-text-size-adjust", browsers: ["FF"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["enum", "percentage"]}, {name: "-moz-transform", browsers: ["FF3.5"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-moz-transform-origin", browsers: ["FF3.5"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-moz-transition", browsers: ["FF4"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-moz-transition-delay", browsers: ["FF4"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-moz-transition-duration", browsers: ["FF4"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-moz-transition-property", browsers: ["FF4"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-moz-transition-timing-function", browsers: ["FF4"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "-moz-user-focus", browsers: ["FF1"], values: [{name: "ignore"}, {name: "normal"}], status: "nonstandard", syntax: "ignore | normal | select-after | select-before | select-menu | select-same | select-all | none", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}], description: "Used to indicate whether the element can have focus."}, {name: "-moz-user-select", browsers: ["FF1.5"], values: [{name: "all"}, {name: "element"}, {name: "elements"}, {name: "-moz-all"}, {name: "-moz-none"}, {name: "none"}, {name: "text"}, {name: "toggle"}], relevance: 50, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "-ms-accelerator", browsers: ["E", "IE10"], values: [{name: "false", description: "The element does not contain an accelerator key sequence."}, {name: "true", description: "The element contains an accelerator key sequence."}], status: "nonstandard", syntax: "false | true", relevance: 0, description: "IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed", restrictions: ["enum"]}, {name: "-ms-behavior", browsers: ["IE8"], relevance: 50, description: "IE only. Used to extend behaviors of the browser", restrictions: ["url"]}, {name: "-ms-block-progression", browsers: ["IE8"], values: [{name: "bt", description: "Bottom-to-top block flow. Layout is horizontal."}, {name: "lr", description: "Left-to-right direction. The flow orientation is vertical."}, {name: "rl", description: "Right-to-left direction. The flow orientation is vertical."}, {name: "tb", description: "Top-to-bottom direction. The flow orientation is horizontal."}], status: "nonstandard", syntax: "tb | rl | bt | lr", relevance: 0, description: "Sets the block-progression value and the flow orientation", restrictions: ["enum"]}, {name: "-ms-content-zoom-chaining", browsers: ["E", "IE10"], values: [{name: "chained", description: "The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."}, {name: "none", description: "A bounce effect is shown when the user hits a zoom limit during a manipulation."}], status: "nonstandard", syntax: "none | chained", relevance: 0, description: "Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."}, {name: "-ms-content-zooming", browsers: ["E", "IE10"], values: [{name: "none", description: "The element is not zoomable."}, {name: "zoom", description: "The element is zoomable."}], status: "nonstandard", syntax: "none | zoom", relevance: 0, description: "Specifies whether zooming is enabled.", restrictions: ["enum"]}, {name: "-ms-content-zoom-limit", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>", relevance: 0, description: "Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-limit-max", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage>", relevance: 0, description: "Specifies the maximum zoom factor.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-limit-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage>", relevance: 0, description: "Specifies the minimum zoom factor.", restrictions: ["percentage"]}, {name: "-ms-content-zoom-snap", browsers: ["E", "IE10"], values: [{name: "mandatory", description: "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."}, {name: "none", description: "Indicates that zooming is unaffected by any defined snap-points."}, {name: "proximity", description: 'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}, {name: "snapInterval(100%, 100%)", description: "Specifies where the snap-points will be placed."}, {name: "snapList()", description: "Specifies the position of individual snap-points as a comma-separated list of zoom factors."}], status: "nonstandard", syntax: "<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>", relevance: 0, description: "Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."}, {name: "-ms-content-zoom-snap-points", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)", description: "Specifies where the snap-points will be placed."}, {name: "snapList()", description: "Specifies the position of individual snap-points as a comma-separated list of zoom factors."}], status: "nonstandard", syntax: "snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )", relevance: 0, description: "Defines where zoom snap-points are located."}, {name: "-ms-content-zoom-snap-type", browsers: ["E", "IE10"], values: [{name: "mandatory", description: "Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."}, {name: "none", description: "Indicates that zooming is unaffected by any defined snap-points."}, {name: "proximity", description: 'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}], status: "nonstandard", syntax: "none | proximity | mandatory", relevance: 0, description: "Specifies how zooming is affected by defined snap-points.", restrictions: ["enum"]}, {name: "-ms-filter", browsers: ["IE8-9"], status: "nonstandard", syntax: "<string>", relevance: 0, description: "IE only. Used to produce visual effects.", restrictions: ["string"]}, {name: "-ms-flex", browsers: ["IE10"], values: [{name: "auto", description: "Retrieves the value of the main size property as the used 'flex-basis'."}, {name: "none", description: "Expands to '0 0 auto'."}], relevance: 50, description: "specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.", restrictions: ["length", "number", "percentage"]}, {name: "-ms-flex-align", browsers: ["IE10"], values: [{name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "start", description: "The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}], relevance: 50, description: "Aligns flex items along the cross axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "-ms-flex-direction", browsers: ["IE10"], values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "row-reverse", description: "Same as 'row', except the main-start and main-end directions are swapped."}], relevance: 50, description: "Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.", restrictions: ["enum"]}, {name: "-ms-flex-flow", browsers: ["IE10"], values: [{name: "column", description: "The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."}, {name: "column-reverse", description: "Same as 'column', except the main-start and main-end directions are swapped."}, {name: "nowrap", description: "The flex container is single-line."}, {name: "row", description: "The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], relevance: 50, description: "Specifies how flexbox items are placed in the flexbox.", restrictions: ["enum"]}, {name: "-ms-flex-item-align", browsers: ["IE10"], values: [{name: "auto", description: "Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."}, {name: "baseline", description: "If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."}, {name: "center", description: "The flex item\u2019s margin box is centered in the cross axis within the line."}, {name: "end", description: "The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."}, {name: "start", description: "The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."}, {name: "stretch", description: "If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}], relevance: 50, description: "Allows the default alignment along the cross axis to be overridden for individual flex items.", restrictions: ["enum"]}, {name: "-ms-flex-line-pack", browsers: ["IE10"], values: [{name: "center", description: "Lines are packed toward the center of the flex container."}, {name: "distribute", description: "Lines are evenly distributed in the flex container, with half-size spaces on either end."}, {name: "end", description: "Lines are packed toward the end of the flex container."}, {name: "justify", description: "Lines are evenly distributed in the flex container."}, {name: "start", description: "Lines are packed toward the start of the flex container."}, {name: "stretch", description: "Lines stretch to take up the remaining space."}], relevance: 50, description: "Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.", restrictions: ["enum"]}, {name: "-ms-flex-order", browsers: ["IE10"], relevance: 50, description: "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", restrictions: ["integer"]}, {name: "-ms-flex-pack", browsers: ["IE10"], values: [{name: "center", description: "Flex items are packed toward the center of the line."}, {name: "distribute", description: "Flex items are evenly distributed in the line, with half-size spaces on either end."}, {name: "end", description: "Flex items are packed toward the end of the line."}, {name: "justify", description: "Flex items are evenly distributed in the line."}, {name: "start", description: "Flex items are packed toward the start of the line."}], relevance: 50, description: "Aligns flex items along the main axis of the current line of the flex container.", restrictions: ["enum"]}, {name: "-ms-flex-wrap", browsers: ["IE10"], values: [{name: "nowrap", description: "The flex container is single-line."}, {name: "wrap", description: "The flexbox is multi-line."}, {name: "wrap-reverse", description: "Same as 'wrap', except the cross-start and cross-end directions are swapped."}], relevance: 50, description: "Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.", restrictions: ["enum"]}, {name: "-ms-flow-from", browsers: ["E", "IE10"], values: [{name: "none", description: "The block container is not a CSS Region."}], status: "nonstandard", syntax: "[ none | <custom-ident> ]#", relevance: 0, description: "Makes a block container a region and associates it with a named flow.", restrictions: ["identifier"]}, {name: "-ms-flow-into", browsers: ["E", "IE10"], values: [{name: "none", description: "The element is not moved to a named flow and normal CSS processing takes place."}], status: "nonstandard", syntax: "[ none | <custom-ident> ]#", relevance: 0, description: "Places an element or its contents into a named flow.", restrictions: ["identifier"]}, {name: "-ms-grid-column", browsers: ["E12", "IE10"], values: [{name: "auto"}, {name: "end"}, {name: "start"}], relevance: 50, description: "Used to place grid items and explicitly defined grid cells in the Grid.", restrictions: ["integer", "string", "enum"]}, {name: "-ms-grid-column-align", browsers: ["E12", "IE10"], values: [{name: "center", description: "Places the center of the Grid Item's margin box at the center of the Grid Item's column."}, {name: "end", description: "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."}, {name: "start", description: "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."}, {name: "stretch", description: "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}], relevance: 50, description: "Aligns the columns in a grid.", restrictions: ["enum"]}, {name: "-ms-grid-columns", browsers: ["E12", "IE10"], relevance: 50, description: "Lays out the columns of the grid."}, {name: "-ms-grid-column-span", browsers: ["E12", "IE10"], relevance: 50, description: "Specifies the number of columns to span.", restrictions: ["integer"]}, {name: "-ms-grid-layer", browsers: ["E", "IE10"], relevance: 50, description: "Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.", restrictions: ["integer"]}, {name: "-ms-grid-row", browsers: ["E12", "IE10"], values: [{name: "auto"}, {name: "end"}, {name: "start"}], relevance: 50, description: "grid-row is used to place grid items and explicitly defined grid cells in the Grid.", restrictions: ["integer", "string", "enum"]}, {name: "-ms-grid-row-align", browsers: ["E12", "IE10"], values: [{name: "center", description: "Places the center of the Grid Item's margin box at the center of the Grid Item's row."}, {name: "end", description: "Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."}, {name: "start", description: "Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."}, {name: "stretch", description: "Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}], relevance: 50, description: "Aligns the rows in a grid.", restrictions: ["enum"]}, {name: "-ms-grid-rows", browsers: ["E12", "IE10"], relevance: 50, description: "Lays out the columns of the grid."}, {name: "-ms-grid-row-span", browsers: ["E12", "IE10"], relevance: 50, description: "Specifies the number of rows to span.", restrictions: ["integer"]}, {name: "-ms-high-contrast-adjust", browsers: ["E", "IE10"], values: [{name: "auto", description: "Properties will be adjusted as applicable."}, {name: "none", description: "No adjustments will be applied."}], status: "nonstandard", syntax: "auto | none", relevance: 0, description: "Specifies if properties should be adjusted in high contrast mode.", restrictions: ["enum"]}, {name: "-ms-hyphenate-limit-chars", browsers: ["E", "IE10"], values: [{name: "auto", description: "The user agent chooses a value that adapts to the current layout."}], status: "nonstandard", syntax: "auto | <integer>{1,3}", relevance: 0, description: "Specifies the minimum number of characters in a hyphenated word.", restrictions: ["integer"]}, {name: "-ms-hyphenate-limit-lines", browsers: ["E", "IE10"], values: [{name: "no-limit", description: "There is no limit."}], status: "nonstandard", syntax: "no-limit | <integer>", relevance: 0, description: "Indicates the maximum number of successive hyphenated lines in an element.", restrictions: ["integer"]}, {name: "-ms-hyphenate-limit-zone", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<percentage> | <length>", relevance: 0, description: "Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.", restrictions: ["percentage", "length"]}, {name: "-ms-hyphens", browsers: ["E", "IE10"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-ms-ime-mode", browsers: ["IE10"], values: [{name: "active", description: "The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."}, {name: "auto", description: "No change is made to the current input method editor state. This is the default."}, {name: "disabled", description: "The input method editor is disabled and may not be activated by the user."}, {name: "inactive", description: "The input method editor is initially inactive, but the user may activate it if they wish."}, {name: "normal", description: "The IME state should be normal; this value can be used in a user style sheet to override the page setting."}], relevance: 50, description: "Controls the state of the input method editor for text fields.", restrictions: ["enum"]}, {name: "-ms-interpolation-mode", browsers: ["IE7"], values: [{name: "bicubic"}, {name: "nearest-neighbor"}], relevance: 50, description: "Gets or sets the interpolation (resampling) method used to stretch images.", restrictions: ["enum"]}, {name: "-ms-layout-grid", browsers: ["E", "IE10"], values: [{name: "char", description: "Any of the range of character values available to the -ms-layout-grid-char property."}, {name: "line", description: "Any of the range of line values available to the -ms-layout-grid-line property."}, {name: "mode", description: "Any of the range of mode values available to the -ms-layout-grid-mode property."}, {name: "type", description: "Any of the range of type values available to the -ms-layout-grid-type property."}], relevance: 50, description: "Sets or retrieves the composite document grid properties that specify the layout of text characters."}, {name: "-ms-layout-grid-char", browsers: ["E", "IE10"], values: [{name: "auto", description: "Largest character in the font of the element is used to set the character grid."}, {name: "none", description: "Default. No character grid is set."}], relevance: 50, description: "Sets or retrieves the size of the character grid used for rendering the text content of an element.", restrictions: ["enum", "length", "percentage"]}, {name: "-ms-layout-grid-line", browsers: ["E", "IE10"], values: [{name: "auto", description: "Largest character in the font of the element is used to set the character grid."}, {name: "none", description: "Default. No grid line is set."}], relevance: 50, description: "Sets or retrieves the gridline value used for rendering the text content of an element.", restrictions: ["length"]}, {name: "-ms-layout-grid-mode", browsers: ["E", "IE10"], values: [{name: "both", description: "Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."}, {name: "char", description: "Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."}, {name: "line", description: "Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."}, {name: "none", description: "No grid is used."}], relevance: 50, description: "Gets or sets whether the text layout grid uses two dimensions.", restrictions: ["enum"]}, {name: "-ms-layout-grid-type", browsers: ["E", "IE10"], values: [{name: "fixed", description: "Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."}, {name: "loose", description: "Default. Grid used for Japanese and Korean characters."}, {name: "strict", description: "Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}], relevance: 50, description: "Sets or retrieves the type of grid used for rendering the text content of an element.", restrictions: ["enum"]}, {name: "-ms-line-break", browsers: ["E", "IE10"], values: [{name: "auto", description: "The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."}, {name: "keep-all", description: "Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."}, {name: "newspaper", description: "Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."}, {name: "normal", description: "Breaks CJK scripts using a normal set of line-breaking rules."}, {name: "strict", description: "Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}], relevance: 50, description: "Specifies what set of line breaking restrictions are in effect within the element.", restrictions: ["enum"]}, {name: "-ms-overflow-style", browsers: ["E", "IE10"], values: [{name: "auto", description: "No preference, UA should use the first scrolling method in the list that it supports."}, {name: "-ms-autohiding-scrollbar", description: "Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."}, {name: "none", description: "Indicates the element does not display scrollbars or panning indicators, even when its content overflows."}, {name: "scrollbar", description: 'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}], status: "nonstandard", syntax: "auto | none | scrollbar | -ms-autohiding-scrollbar", relevance: 0, description: "Specify whether content is clipped when it overflows the element's content area.", restrictions: ["enum"]}, {name: "-ms-perspective", browsers: ["IE10"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-ms-perspective-origin", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-perspective-origin-x", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-perspective-origin-y", browsers: ["IE10"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-ms-progress-appearance", browsers: ["IE10"], values: [{name: "bar"}, {name: "ring"}], relevance: 50, description: "Gets or sets a value that specifies whether a progress control displays as a bar or a ring.", restrictions: ["enum"]}, {name: "-ms-scrollbar-3dlight-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-arrow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the arrow elements of a scroll arrow.", restrictions: ["color"]}, {name: "-ms-scrollbar-base-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", restrictions: ["color"]}, {name: "-ms-scrollbar-darkshadow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the gutter of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-face-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-highlight-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-shadow-color", browsers: ["IE8"], status: "nonstandard", syntax: "<color>", relevance: 0, description: "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scrollbar-track-color", browsers: ["IE5"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"}], description: "Determines the color of the track element of a scroll bar.", restrictions: ["color"]}, {name: "-ms-scroll-chaining", browsers: ["E", "IE10"], values: [{name: "chained"}, {name: "none"}], status: "nonstandard", syntax: "chained | none", relevance: 0, description: "Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.", restrictions: ["enum", "length"]}, {name: "-ms-scroll-limit", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.", restrictions: ["length"]}, {name: "-ms-scroll-limit-x-max", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "auto | <length>", relevance: 0, description: "Gets or sets a value that specifies the maximum value for the scrollLeft property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-x-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that specifies the minimum value for the scrollLeft property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-y-max", browsers: ["E", "IE10"], values: [{name: "auto"}], status: "nonstandard", syntax: "auto | <length>", relevance: 0, description: "Gets or sets a value that specifies the maximum value for the scrollTop property.", restrictions: ["length"]}, {name: "-ms-scroll-limit-y-min", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that specifies the minimum value for the scrollTop property.", restrictions: ["length"]}, {name: "-ms-scroll-rails", browsers: ["E", "IE10"], values: [{name: "none"}, {name: "railed"}], status: "nonstandard", syntax: "none | railed", relevance: 0, description: "Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).", restrictions: ["enum", "length"]}, {name: "-ms-scroll-snap-points-x", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", relevance: 0, description: "Gets or sets a value that defines where snap-points will be located along the x-axis.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-points-y", browsers: ["E", "IE10"], values: [{name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )", relevance: 0, description: "Gets or sets a value that defines where snap-points will be located along the y-axis.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-type", browsers: ["E", "IE10"], values: [{name: "none", description: "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."}, {name: "mandatory", description: "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."}, {name: "proximity", description: "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}], status: "nonstandard", syntax: "none | proximity | mandatory", relevance: 0, description: "Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-x", browsers: ["E", "IE10"], values: [{name: "mandatory"}, {name: "none"}, {name: "proximity"}, {name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.", restrictions: ["enum"]}, {name: "-ms-scroll-snap-y", browsers: ["E", "IE10"], values: [{name: "mandatory"}, {name: "none"}, {name: "proximity"}, {name: "snapInterval(100%, 100%)"}, {name: "snapList()"}], status: "nonstandard", syntax: "<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>", relevance: 0, description: "Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.", restrictions: ["enum"]}, {name: "-ms-scroll-translation", browsers: ["E", "IE10"], values: [{name: "none"}, {name: "vertical-to-horizontal"}], status: "nonstandard", syntax: "none | vertical-to-horizontal", relevance: 0, description: "Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.", restrictions: ["enum"]}, {name: "-ms-text-align-last", browsers: ["E", "IE8"], values: [{name: "auto"}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], relevance: 50, description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "-ms-text-autospace", browsers: ["E", "IE8"], values: [{name: "ideograph-alpha", description: "Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."}, {name: "ideograph-numeric", description: "Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."}, {name: "ideograph-parenthesis", description: "Creates extra spacing between normal (non wide) parenthesis and ideographs."}, {name: "ideograph-space", description: "Extends the width of the space character while surrounded by ideographs."}, {name: "none", description: "No extra space is created."}, {name: "punctuation", description: "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}], status: "nonstandard", syntax: "none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space", relevance: 0, description: "Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.", restrictions: ["enum"]}, {name: "-ms-text-combine-horizontal", browsers: ["E", "IE11"], values: [{name: "all", description: "Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."}, {name: "digits", description: "Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030\u2013U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."}, {name: "none", description: "No special processing."}], relevance: 50, description: "This property specifies the combination of multiple characters into the space of a single character.", restrictions: ["enum", "integer"]}, {name: "-ms-text-justify", browsers: ["E", "IE8"], values: [{name: "auto", description: "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."}, {name: "distribute", description: "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."}, {name: "inter-cluster", description: "Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."}, {name: "inter-ideograph", description: "Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."}, {name: "inter-word", description: "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."}, {name: "kashida", description: "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}], relevance: 50, description: "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.", restrictions: ["enum"]}, {name: "-ms-text-kashida-space", browsers: ["E", "IE10"], relevance: 50, description: "Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.", restrictions: ["percentage"]}, {name: "-ms-text-overflow", browsers: ["IE10"], values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], relevance: 50, description: "Text can overflow for example when it is prevented from wrapping", restrictions: ["enum"]}, {name: "-ms-text-size-adjust", browsers: ["E", "IE10"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["enum", "percentage"]}, {name: "-ms-text-underline-position", browsers: ["E", "IE10"], values: [{name: "alphabetic", description: "The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."}, {name: "auto", description: "The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."}, {name: "over", description: "The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."}, {name: "under", description: "The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}], relevance: 50, description: "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text", restrictions: ["enum"]}, {name: "-ms-touch-action", browsers: ["IE10"], values: [{name: "auto", description: "The element is a passive element, with several exceptions."}, {name: "double-tap-zoom", description: "The element will zoom on double-tap."}, {name: "manipulation", description: "The element is a manipulation-causing element."}, {name: "none", description: "The element is a manipulation-blocking element."}, {name: "pan-x", description: "The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."}, {name: "pan-y", description: "The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."}, {name: "pinch-zoom", description: "The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}], relevance: 50, description: "Gets or sets a value that indicates whether and how a given region can be manipulated by the user.", restrictions: ["enum"]}, {name: "-ms-touch-select", browsers: ["E", "IE10"], values: [{name: "grippers", description: "Grippers are always on."}, {name: "none", description: "Grippers are always off."}], status: "nonstandard", syntax: "grippers | none", relevance: 0, description: "Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.", restrictions: ["enum"]}, {name: "-ms-transform", browsers: ["IE9-9"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-ms-transform-origin", browsers: ["IE9-9"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-ms-transform-origin-x", browsers: ["IE10"], relevance: 50, description: "The x coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-transform-origin-y", browsers: ["IE10"], relevance: 50, description: "The y coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-transform-origin-z", browsers: ["IE10"], relevance: 50, description: "The z coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-ms-user-select", browsers: ["E", "IE10"], values: [{name: "element"}, {name: "none"}, {name: "text"}], status: "nonstandard", syntax: "none | element | text", relevance: 0, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "-ms-word-break", browsers: ["IE8"], values: [{name: "break-all", description: "Lines may break between any two grapheme clusters for non-CJK scripts."}, {name: "keep-all", description: "Block characters can no longer create implied break points."}, {name: "normal", description: "Breaks non-CJK scripts according to their own rules."}], relevance: 50, description: "Specifies line break opportunities for non-CJK scripts.", restrictions: ["enum"]}, {name: "-ms-word-wrap", browsers: ["IE8"], values: [{name: "break-word", description: "An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], relevance: 50, description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", restrictions: ["enum"]}, {name: "-ms-wrap-flow", browsers: ["E", "IE10"], values: [{name: "auto", description: "For floats an exclusion is created, for all other elements an exclusion is not created."}, {name: "both", description: "Inline flow content can flow on all sides of the exclusion."}, {name: "clear", description: "Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."}, {name: "end", description: "Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."}, {name: "maximum", description: "Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."}, {name: "minimum", description: "Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content\u2019s containing block, and must leave the other edge of the exclusion empty."}, {name: "start", description: "Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}], status: "nonstandard", syntax: "auto | both | start | end | maximum | clear", relevance: 0, description: "An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.", restrictions: ["enum"]}, {name: "-ms-wrap-margin", browsers: ["E", "IE10"], status: "nonstandard", syntax: "<length>", relevance: 0, description: "Gets or sets a value that is used to offset the inner wrap shape from other shapes.", restrictions: ["length", "percentage"]}, {name: "-ms-wrap-through", browsers: ["E", "IE10"], values: [{name: "none", description: "The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."}, {name: "wrap", description: "The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}], status: "nonstandard", syntax: "wrap | none", relevance: 0, description: "Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.", restrictions: ["enum"]}, {name: "-ms-writing-mode", browsers: ["IE8"], values: [{name: "bt-lr"}, {name: "bt-rl"}, {name: "lr-bt"}, {name: "lr-tb"}, {name: "rl-bt"}, {name: "rl-tb"}, {name: "tb-lr"}, {name: "tb-rl"}], relevance: 50, description: "Shorthand property for both 'direction' and 'block-progression'.", restrictions: ["enum"]}, {name: "-ms-zoom", browsers: ["IE8"], values: [{name: "normal"}], relevance: 50, description: "Sets or retrieves the magnification scale of the object.", restrictions: ["enum", "integer", "number", "percentage"]}, {name: "-ms-zoom-animation", browsers: ["IE10"], values: [{name: "default"}, {name: "none"}], relevance: 50, description: "Gets or sets a value that indicates whether an animation is used when zooming.", restrictions: ["enum"]}, {name: "nav-down", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-index", browsers: ["O9.5"], values: [{name: "auto", description: "The element's sequential navigation order is assigned automatically by the user agent."}], relevance: 50, description: "Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').", restrictions: ["number"]}, {name: "nav-left", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-right", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "nav-up", browsers: ["O9.5"], values: [{name: "auto", description: "The user agent automatically determines which element to navigate the focus to in response to directional navigational input."}, {name: "current", description: "Indicates that the user agent should target the frame that the element is in."}, {name: "root", description: "Indicates that the user agent should target the full window."}], relevance: 50, description: "Provides an way to control directional focus navigation.", restrictions: ["enum", "identifier", "string"]}, {name: "negative", browsers: ["FF33"], syntax: "<symbol> <symbol>?", relevance: 50, description: "@counter-style descriptor. Defines how to alter the representation when the counter value is negative.", restrictions: ["image", "identifier", "string"]}, {name: "-o-animation", browsers: ["O12"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-o-animation-delay", browsers: ["O12"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-o-animation-direction", browsers: ["O12"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-o-animation-duration", browsers: ["O12"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-o-animation-fill-mode", browsers: ["O12"], values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], relevance: 50, description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "-o-animation-iteration-count", browsers: ["O12"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-o-animation-name", browsers: ["O12"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-o-animation-play-state", browsers: ["O12"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-o-animation-timing-function", browsers: ["O12"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "object-fit", browsers: ["E16", "FF36", "S10", "C31", "O19"], values: [{name: "contain", description: "The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."}, {name: "cover", description: "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."}, {name: "fill", description: "The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."}, {name: "none", description: "The replaced content is not resized to fit inside the element's content box"}, {name: "scale-down", description: "Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}], syntax: "fill | contain | cover | none | scale-down", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/object-fit"}], description: "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", restrictions: ["enum"]}, {name: "object-position", browsers: ["E16", "FF36", "S10", "C31", "O19"], syntax: "<position>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/object-position"}], description: "Determines the alignment of the replaced element inside its box.", restrictions: ["position", "length", "percentage"]}, {name: "-o-border-image", browsers: ["O11.6"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "image", "enum"]}, {name: "-o-object-fit", browsers: ["O10.6"], values: [{name: "contain", description: "The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."}, {name: "cover", description: "The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."}, {name: "fill", description: "The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."}, {name: "none", description: "The replaced content is not resized to fit inside the element's content box"}, {name: "scale-down", description: "Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}], relevance: 50, description: "Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.", restrictions: ["enum"]}, {name: "-o-object-position", browsers: ["O10.6"], relevance: 50, description: "Determines the alignment of the replaced element inside its box.", restrictions: ["position", "length", "percentage"]}, {name: "opacity", syntax: "<alpha-value>", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/opacity"}], description: "Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.", restrictions: ["number(0-1)"]}, {name: "order", syntax: "<integer>", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/order"}], description: "Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.", restrictions: ["integer"]}, {name: "orphans", browsers: ["E12", "S1.3", "C25", "IE8", "O9.2"], syntax: "<integer>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/orphans"}], description: "Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.", restrictions: ["integer"]}, {name: "-o-table-baseline", browsers: ["O9.6"], relevance: 50, description: "Determines which row of a inline-table should be used as baseline of inline-table.", restrictions: ["integer"]}, {name: "-o-tab-size", browsers: ["O10.6"], relevance: 50, description: "This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", restrictions: ["integer", "length"]}, {name: "-o-text-overflow", browsers: ["O10"], values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], relevance: 50, description: "Text can overflow for example when it is prevented from wrapping", restrictions: ["enum"]}, {name: "-o-transform", browsers: ["O10.5"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-o-transform-origin", browsers: ["O10.5"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["positon", "length", "percentage"]}, {name: "-o-transition", browsers: ["O11.5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-o-transition-delay", browsers: ["O11.5"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-o-transition-duration", browsers: ["O11.5"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-o-transition-property", browsers: ["O11.5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-o-transition-timing-function", browsers: ["O11.5"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "offset-block-end", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-block-start", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-inline-end", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "offset-inline-start", browsers: ["FF41"], values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}], relevance: 50, description: "Logical 'left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "outline", values: [{name: "auto", description: "Permits the user agent to render a custom outline style, typically the default platform style."}, {name: "invert", description: "Performs a color inversion on the pixels on the screen."}], syntax: "[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline"}], description: "Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.", restrictions: ["length", "line-width", "line-style", "color", "enum"]}, {name: "outline-color", values: [{name: "invert", description: "Performs a color inversion on the pixels on the screen."}], syntax: "<color> | invert", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-color"}], description: "The color of the outline.", restrictions: ["enum", "color"]}, {name: "outline-offset", browsers: ["E15", "FF1.5", "S1.2", "C1", "O9.5"], syntax: "<length>", relevance: 59, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-offset"}], description: "Offset the outline and draw it beyond the border edge.", restrictions: ["length"]}, {name: "outline-style", values: [{name: "auto", description: "Permits the user agent to render a custom outline style, typically the default platform style."}], syntax: "auto | <'border-style'>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-style"}], description: "Style of the outline.", restrictions: ["line-style", "enum"]}, {name: "outline-width", syntax: "<line-width>", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/outline-width"}], description: "Width of the outline.", restrictions: ["length", "line-width"]}, {name: "overflow", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "-moz-hidden-unscrollable", description: "Same as the standardized 'clip', except doesn\u2019t establish a block formatting context."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "[ visible | hidden | clip | scroll | auto ]{1,2}", relevance: 92, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow"}], description: "Shorthand for setting 'overflow-x' and 'overflow-y'.", restrictions: ["enum"]}, {name: "overflow-wrap", values: [{name: "break-word", description: "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], syntax: "normal | break-word | anywhere", relevance: 63, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}], description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.", restrictions: ["enum"]}, {name: "overflow-x", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "visible | hidden | clip | scroll | auto", relevance: 79, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-x"}], description: "Specifies the handling of overflow in the horizontal direction.", restrictions: ["enum"]}, {name: "overflow-y", values: [{name: "auto", description: "The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."}, {name: "hidden", description: "Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."}, {name: "scroll", description: "Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."}, {name: "visible", description: "Content is not clipped, i.e., it may be rendered outside the content box."}], syntax: "visible | hidden | clip | scroll | auto", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-y"}], description: "Specifies the handling of overflow in the vertical direction.", restrictions: ["enum"]}, {name: "pad", browsers: ["FF33"], syntax: "<integer> && <symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a \u201Cfixed-width\u201D counter style, where representations shorter than the pad value are padded with a particular <symbol>", restrictions: ["integer", "image", "string", "identifier"]}, {name: "padding", values: [], syntax: "[ <length> | <percentage> ]{1,4}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-bottom", syntax: "<length> | <percentage>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-block-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}], description: "Logical 'padding-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-block-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}], description: "Logical 'padding-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-inline-end", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}], description: "Logical 'padding-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-inline-start", browsers: ["E79", "FF41", "S12.1", "C69", "O56"], syntax: "<'padding-left'>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}], description: "Logical 'padding-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.", restrictions: ["length", "percentage"]}, {name: "padding-left", syntax: "<length> | <percentage>", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-left"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-right", syntax: "<length> | <percentage>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-right"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "padding-top", syntax: "<length> | <percentage>", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-top"}], description: "Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.", restrictions: ["length", "percentage"]}, {name: "page-break-after", values: [{name: "always", description: "Always force a page break after the generated box."}, {name: "auto", description: "Neither force nor forbid a page break after generated box."}, {name: "avoid", description: "Avoid a page break after the generated box."}, {name: "left", description: "Force one or two page breaks after the generated box so that the next page is formatted as a left page."}, {name: "right", description: "Force one or two page breaks after the generated box so that the next page is formatted as a right page."}], syntax: "auto | always | avoid | left | right | recto | verso", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-after"}], description: "Defines rules for page breaks after an element.", restrictions: ["enum"]}, {name: "page-break-before", values: [{name: "always", description: "Always force a page break before the generated box."}, {name: "auto", description: "Neither force nor forbid a page break before the generated box."}, {name: "avoid", description: "Avoid a page break before the generated box."}, {name: "left", description: "Force one or two page breaks before the generated box so that the next page is formatted as a left page."}, {name: "right", description: "Force one or two page breaks before the generated box so that the next page is formatted as a right page."}], syntax: "auto | always | avoid | left | right | recto | verso", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-before"}], description: "Defines rules for page breaks before an element.", restrictions: ["enum"]}, {name: "page-break-inside", values: [{name: "auto", description: "Neither force nor forbid a page break inside the generated box."}, {name: "avoid", description: "Avoid a page break inside the generated box."}], syntax: "auto | avoid", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}], description: "Defines rules for page breaks inside an element.", restrictions: ["enum"]}, {name: "paint-order", browsers: ["E17", "FF60", "S8", "C35", "O22"], values: [{name: "fill"}, {name: "markers"}, {name: "normal", description: "The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."}, {name: "stroke"}], syntax: "normal | [ fill || stroke || markers ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/paint-order"}], description: "Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.", restrictions: ["enum"]}, {name: "perspective", values: [{name: "none", description: "No perspective transform is applied."}], syntax: "none | <length>", relevance: 55, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/perspective"}], description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length", "enum"]}, {name: "perspective-origin", syntax: "<position>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}], description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "pointer-events", values: [{name: "all", description: "The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."}, {name: "fill", description: "The given element can be the target element for pointer events whenever the pointer is over the interior of the element."}, {name: "none", description: "The given element does not receive pointer events."}, {name: "painted", description: 'The given element can be the target element for pointer events when the pointer is over a "painted" area. '}, {name: "stroke", description: "The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."}, {name: "visible", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and the pointer is over either the interior or the perimete of the element."}, {name: "visibleFill", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the interior of the element."}, {name: "visiblePainted", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over a \u2018painted\u2019 area."}, {name: "visibleStroke", description: "The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the perimeter of the element."}], syntax: "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit", relevance: 80, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/pointer-events"}], description: "Specifies under what circumstances a given element can be the target element for a pointer event.", restrictions: ["enum"]}, {name: "position", values: [{name: "absolute", description: "The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."}, {name: "fixed", description: "The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."}, {name: "-ms-page", description: "The box's position is calculated according to the 'absolute' model."}, {name: "relative", description: "The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."}, {name: "static", description: "The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."}, {name: "sticky", description: "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}, {name: "-webkit-sticky", description: "The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}], syntax: "static | relative | absolute | sticky | fixed", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/position"}], description: "The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.", restrictions: ["enum"]}, {name: "prefix", browsers: ["FF33"], syntax: "<symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.", restrictions: ["image", "string", "identifier"]}, {name: "quotes", values: [{name: "none", description: "The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}], syntax: "none | auto | [ <string> <string> ]+", relevance: 53, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/quotes"}], description: "Specifies quotation marks for any number of embedded quotations.", restrictions: ["string"]}, {name: "range", browsers: ["FF33"], values: [{name: "auto", description: "The range depends on the counter system."}, {name: "infinite", description: "If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}], syntax: "[ [ <integer> | infinite ]{2} ]# | auto", relevance: 50, description: "@counter-style descriptor. Defines the ranges over which the counter style is defined.", restrictions: ["integer", "enum"]}, {name: "resize", browsers: ["E79", "FF4", "S3", "C1", "O12.1"], values: [{name: "both", description: "The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."}, {name: "horizontal", description: "The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."}, {name: "none", description: "The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."}, {name: "vertical", description: "The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}], syntax: "none | both | horizontal | vertical | block | inline", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/resize"}], description: "Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.", restrictions: ["enum"]}, {name: "right", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 90, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/right"}], description: "Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "ruby-align", browsers: ["FF38"], values: [{name: "auto", browsers: ["FF38"], description: "The user agent determines how the ruby contents are aligned. This is the initial value."}, {name: "center", description: "The ruby content is centered within its box."}, {name: "distribute-letter", browsers: ["FF38"], description: "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."}, {name: "distribute-space", browsers: ["FF38"], description: "If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."}, {name: "left", description: "The ruby text content is aligned with the start edge of the base."}, {name: "line-edge", browsers: ["FF38"], description: "If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."}, {name: "right", browsers: ["FF38"], description: "The ruby text content is aligned with the end edge of the base."}, {name: "start", browsers: ["FF38"], description: "The ruby text content is aligned with the start edge of the base."}, {name: "space-between", browsers: ["FF38"], description: "The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"}, {name: "space-around", browsers: ["FF38"], description: "As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}], status: "experimental", syntax: "start | center | space-between | space-around", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ruby-align"}], description: "Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.", restrictions: ["enum"]}, {name: "ruby-overhang", browsers: ["FF10", "IE5"], values: [{name: "auto", description: "The ruby text can overhang text adjacent to the base on either side. This is the initial value."}, {name: "end", description: "The ruby text can overhang the text that follows it."}, {name: "none", description: "The ruby text cannot overhang any text adjacent to its base, only its own base."}, {name: "start", description: "The ruby text can overhang the text that precedes it."}], relevance: 50, description: "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.", restrictions: ["enum"]}, {name: "ruby-position", browsers: ["E12", "FF38"], values: [{name: "after", description: "The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."}, {name: "before", description: "The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."}, {name: "inline"}, {name: "right", description: "The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}], status: "experimental", syntax: "over | under | inter-character", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/ruby-position"}], description: "Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.", restrictions: ["enum"]}, {name: "ruby-span", browsers: ["FF10"], values: [{name: "attr(x)", description: "The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."}, {name: "none", description: "No spanning. The computed value is '1'."}], relevance: 50, description: "Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.", restrictions: ["enum"]}, {name: "scrollbar-3dlight-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}], description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-arrow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}], description: "Determines the color of the arrow elements of a scroll arrow.", restrictions: ["color"]}, {name: "scrollbar-base-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}], description: "Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.", restrictions: ["color"]}, {name: "scrollbar-darkshadow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}], description: "Determines the color of the gutter of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-face-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}], description: "Determines the color of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-highlight-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}], description: "Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-shadow-color", browsers: ["IE5"], relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}], description: "Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.", restrictions: ["color"]}, {name: "scrollbar-track-color", browsers: ["IE6"], relevance: 50, description: "Determines the color of the track element of a scroll bar.", restrictions: ["color"]}, {name: "scroll-behavior", browsers: ["E79", "FF36", "C61", "O48"], values: [{name: "auto", description: "Scrolls in an instant fashion."}, {name: "smooth", description: "Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}], syntax: "auto | smooth", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}], description: "Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.", restrictions: ["enum"]}, {name: "scroll-snap-coordinate", browsers: ["FF39"], values: [{name: "none", description: "Specifies that this element does not contribute a snap point."}], status: "obsolete", syntax: "none | <position>#", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"}], description: "Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container\u2019s snap-destination for the respective axis.", restrictions: ["position", "length", "percentage", "enum"]}, {name: "scroll-snap-destination", browsers: ["FF39"], status: "obsolete", syntax: "<position>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"}], description: "Define the x and y coordinate within the scroll container\u2019s visual viewport which element snap points will align with.", restrictions: ["position", "length", "percentage"]}, {name: "scroll-snap-points-x", browsers: ["FF39", "S9"], values: [{name: "none", description: "No snap points are defined by this scroll container."}, {name: "repeat()", description: "Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}], status: "obsolete", syntax: "none | repeat( <length-percentage> )", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"}], description: "Defines the positioning of snap points along the x axis of the scroll container it is applied to.", restrictions: ["enum"]}, {name: "scroll-snap-points-y", browsers: ["FF39", "S9"], values: [{name: "none", description: "No snap points are defined by this scroll container."}, {name: "repeat()", description: "Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}], status: "obsolete", syntax: "none | repeat( <length-percentage> )", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"}], description: "Defines the positioning of snap points along the y axis of the scroll container it is applied to.", restrictions: ["enum"]}, {name: "scroll-snap-type", values: [{name: "none", description: "The visual viewport of this scroll container must ignore snap points, if any, when scrolled."}, {name: "mandatory", description: "The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."}, {name: "proximity", description: "The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}], syntax: "none | [ x | y | block | inline | both ] [ mandatory | proximity ]?", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}], description: "Defines how strictly snap points are enforced on the scroll container.", restrictions: ["enum"]}, {name: "shape-image-threshold", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], syntax: "<alpha-value>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}], description: "Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.", restrictions: ["number"]}, {name: "shape-margin", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], syntax: "<length-percentage>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-margin"}], description: "Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.", restrictions: ["url", "length", "percentage"]}, {name: "shape-outside", browsers: ["E79", "FF62", "S10.1", "C37", "O24"], values: [{name: "margin-box", description: "The background is painted within (clipped to) the margin box."}, {name: "none", description: "The float area is unaffected."}], syntax: "none | <shape-box> || <basic-shape> | <image>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/shape-outside"}], description: "Specifies an orthogonal rotation to be applied to an image before it is laid out.", restrictions: ["image", "box", "shape", "enum"]}, {name: "shape-rendering", values: [{name: "auto", description: "Suppresses aural rendering."}, {name: "crispEdges", description: "Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."}, {name: "geometricPrecision", description: "Emphasize geometric precision over speed and crisp edges."}, {name: "optimizeSpeed", description: "Emphasize rendering speed over geometric precision and crisp edges."}], relevance: 50, description: "Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.", restrictions: ["enum"]}, {name: "size", browsers: ["C", "O8"], syntax: "<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]", relevance: 52, description: "The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.", restrictions: ["length"]}, {name: "src", values: [{name: "url()", description: "Reference font by URL"}, {name: "format()", description: "Optional hint describing the format of the font resource."}, {name: "local()", description: "Format-specific string that identifies a locally available copy of a given font."}], syntax: "[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#", relevance: 67, description: "@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.", restrictions: ["enum", "url", "identifier"]}, {name: "stop-color", relevance: 51, description: "Indicates what color to use at that gradient stop.", restrictions: ["color"]}, {name: "stop-opacity", relevance: 50, description: "Defines the opacity of a given gradient stop.", restrictions: ["number(0-1)"]}, {name: "stroke", values: [{name: "url()", description: "A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."}, {name: "none", description: "No paint is applied in this layer."}], relevance: 63, description: "Paints along the outline of the given graphical element.", restrictions: ["color", "enum", "url"]}, {name: "stroke-dasharray", values: [{name: "none", description: "Indicates that no dashing is used."}], relevance: 58, description: "Controls the pattern of dashes and gaps used to stroke paths.", restrictions: ["length", "percentage", "number", "enum"]}, {name: "stroke-dashoffset", relevance: 58, description: "Specifies the distance into the dash pattern to start the dash.", restrictions: ["percentage", "length"]}, {name: "stroke-linecap", values: [{name: "butt", description: "Indicates that the stroke for each subpath does not extend beyond its two endpoints."}, {name: "round", description: "Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."}, {name: "square", description: "Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}], relevance: 53, description: "Specifies the shape to be used at the end of open subpaths when they are stroked.", restrictions: ["enum"]}, {name: "stroke-linejoin", values: [{name: "bevel", description: "Indicates that a bevelled corner is to be used to join path segments."}, {name: "miter", description: "Indicates that a sharp corner is to be used to join path segments."}, {name: "round", description: "Indicates that a round corner is to be used to join path segments."}], relevance: 50, description: "Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.", restrictions: ["enum"]}, {name: "stroke-miterlimit", relevance: 50, description: "When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.", restrictions: ["number"]}, {name: "stroke-opacity", relevance: 51, description: "Specifies the opacity of the painting operation used to stroke the current object.", restrictions: ["number(0-1)"]}, {name: "stroke-width", relevance: 60, description: "Specifies the width of the stroke on the current object.", restrictions: ["percentage", "length"]}, {name: "suffix", browsers: ["FF33"], syntax: "<symbol>", relevance: 50, description: "@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.", restrictions: ["image", "string", "identifier"]}, {name: "system", browsers: ["FF33"], values: [{name: "additive", description: "Represents \u201Csign-value\u201D numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together."}, {name: "alphabetic", description: 'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'}, {name: "cyclic", description: "Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."}, {name: "extends", description: "Use the algorithm of another counter style, but alter other aspects."}, {name: "fixed", description: "Runs through its list of counter symbols once, then falls back."}, {name: "numeric", description: `interprets the list of counter symbols as digits to a "place-value" numbering system, similar to the default 'decimal' counter style.`}, {name: "symbolic", description: "Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}], syntax: "cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]", relevance: 50, description: "@counter-style descriptor. Specifies which algorithm will be used to construct the counter\u2019s representation based on the counter value.", restrictions: ["enum", "integer"]}, {name: "symbols", browsers: ["FF33"], syntax: "<symbol>+", relevance: 50, description: "@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.", restrictions: ["image", "string", "identifier"]}, {name: "table-layout", values: [{name: "auto", description: "Use any automatic table layout algorithm."}, {name: "fixed", description: "Use the fixed table layout algorithm."}], syntax: "auto | fixed", relevance: 61, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/table-layout"}], description: "Controls the algorithm used to lay out the table cells, rows, and columns.", restrictions: ["enum"]}, {name: "tab-size", browsers: ["E79", "FF4", "S6.1", "C21", "O15"], syntax: "<integer> | <length>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/tab-size"}], description: "Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.", restrictions: ["integer", "length"]}, {name: "text-align", values: [{name: "center", description: "The inline contents are centered within the line box."}, {name: "end", description: "The inline contents are aligned to the end edge of the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}, {name: "start", description: "The inline contents are aligned to the start edge of the line box."}], syntax: "start | end | left | right | center | justify | match-parent", relevance: 93, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-align"}], description: "Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.", restrictions: ["string"]}, {name: "text-align-last", browsers: ["E12", "FF49", "C47", "IE5.5", "O34"], values: [{name: "auto", description: "Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."}, {name: "center", description: "The inline contents are centered within the line box."}, {name: "justify", description: "The text is justified according to the method specified by the 'text-justify' property."}, {name: "left", description: "The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."}, {name: "right", description: "The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}], syntax: "auto | start | end | left | right | center | justify", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-align-last"}], description: "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.", restrictions: ["enum"]}, {name: "text-anchor", values: [{name: "end", description: "The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."}, {name: "middle", description: "The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."}, {name: "start", description: "The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}], relevance: 50, description: "Used to align (start-, middle- or end-alignment) a string of text relative to a given point.", restrictions: ["enum"]}, {name: "text-decoration", values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Produces no line."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "solid", description: "Produces a solid line."}, {name: "underline", description: "Each line of text is underlined."}, {name: "wavy", description: "Produces a wavy line."}], syntax: "<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration"}], description: "Decorations applied to font used for an element's text.", restrictions: ["enum", "color"]}, {name: "text-decoration-color", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], syntax: "<color>", relevance: 52, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}], description: "Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.", restrictions: ["color"]}, {name: "text-decoration-line", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], values: [{name: "line-through", description: "Each line of text has a line through the middle."}, {name: "none", description: "Neither produces nor inhibits text decoration."}, {name: "overline", description: "Each line of text has a line above it."}, {name: "underline", description: "Each line of text is underlined."}], syntax: "none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}], description: "Specifies what line decorations, if any, are added to the element.", restrictions: ["enum"]}, {name: "text-decoration-style", browsers: ["E79", "FF36", "S12.1", "C57", "O44"], values: [{name: "dashed", description: "Produces a dashed line style."}, {name: "dotted", description: "Produces a dotted line."}, {name: "double", description: "Produces a double line."}, {name: "none", description: "Produces no line."}, {name: "solid", description: "Produces a solid line."}, {name: "wavy", description: "Produces a wavy line."}], syntax: "solid | double | dotted | dashed | wavy", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}], description: "Specifies the line style for underline, line-through and overline text decoration.", restrictions: ["enum"]}, {name: "text-indent", values: [], syntax: "<length-percentage> && hanging? && each-line?", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-indent"}], description: "Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.", restrictions: ["percentage", "length"]}, {name: "text-justify", browsers: ["E12", "FF55", "C32", "IE11", "O19"], values: [{name: "auto", description: "The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."}, {name: "distribute", description: "Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."}, {name: "distribute-all-lines"}, {name: "inter-cluster", description: "Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."}, {name: "inter-ideograph", description: "Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."}, {name: "inter-word", description: "Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."}, {name: "kashida", description: "Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}, {name: "newspaper"}], syntax: "auto | inter-character | inter-word | none", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-justify"}], description: "Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.", restrictions: ["enum"]}, {name: "text-orientation", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], values: [{name: "sideways", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], description: "This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."}, {name: "sideways-right", browsers: ["E79", "FF41", "S5.1", "C48", "O15"], description: "In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xB0 clockwise."}, {name: "upright", description: "In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}], syntax: "mixed | upright | sideways", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-orientation"}], description: "Specifies the orientation of text within a line.", restrictions: ["enum"]}, {name: "text-overflow", values: [{name: "clip", description: "Clip inline content that overflows. Characters may be only partially rendered."}, {name: "ellipsis", description: "Render an ellipsis character (U+2026) to represent clipped inline content."}], syntax: "[ clip | ellipsis | <string> ]{1,2}", relevance: 81, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-overflow"}], description: "Text can overflow for example when it is prevented from wrapping.", restrictions: ["enum", "string"]}, {name: "text-rendering", browsers: ["E79", "FF1", "S5", "C4", "O15"], values: [{name: "auto"}, {name: "geometricPrecision", description: "Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."}, {name: "optimizeLegibility", description: "Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."}, {name: "optimizeSpeed", description: "Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}], syntax: "auto | optimizeSpeed | optimizeLegibility | geometricPrecision", relevance: 68, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-rendering"}], description: "The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The \u2018text-rendering\u2019 property provides these hints.", restrictions: ["enum"]}, {name: "text-shadow", values: [{name: "none", description: "No shadow."}], syntax: "none | <shadow-t>#", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-shadow"}], description: "Enables shadow effects to be applied to the text of the element.", restrictions: ["length", "color"]}, {name: "text-transform", values: [{name: "capitalize", description: "Puts the first typographic letter unit of each word in titlecase."}, {name: "lowercase", description: "Puts all letters in lowercase."}, {name: "none", description: "No effects."}, {name: "uppercase", description: "Puts all letters in uppercase."}], syntax: "none | capitalize | uppercase | lowercase | full-width | full-size-kana", relevance: 84, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-transform"}], description: "Controls capitalization effects of an element\u2019s text.", restrictions: ["enum"]}, {name: "text-underline-position", values: [{name: "above"}, {name: "auto", description: "The user agent may use any algorithm to determine the underline\u2019s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."}, {name: "below", description: "The underline is aligned with the under edge of the element\u2019s content box."}], syntax: "auto | from-font | [ under || [ left | right ] ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}], description: "Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text", restrictions: ["enum"]}, {name: "top", values: [{name: "auto", description: "For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}], syntax: "<length> | <percentage> | auto", relevance: 95, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/top"}], description: "Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.", restrictions: ["length", "percentage"]}, {name: "touch-action", values: [{name: "auto", description: "The user agent may determine any permitted touch behaviors for touches that begin on the element."}, {name: "cross-slide-x"}, {name: "cross-slide-y"}, {name: "double-tap-zoom"}, {name: "manipulation", description: "The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."}, {name: "none", description: "Touches that begin on the element must not trigger default touch behaviors."}, {name: "pan-x", description: "The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element\u2019s nearest ancestor with horizontally scrollable content."}, {name: "pan-y", description: "The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element\u2019s nearest ancestor with vertically scrollable content."}, {name: "pinch-zoom"}], syntax: "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation", relevance: 65, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/touch-action"}], description: "Determines whether touch input may trigger default behavior supplied by user agent.", restrictions: ["enum"]}, {name: "transform", values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective()", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], syntax: "none | <transform-list>", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform"}], description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "transform-origin", syntax: "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-origin"}], description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "transform-style", browsers: ["E12", "FF16", "S9", "C36", "O23"], values: [{name: "flat", description: "All children of this element are rendered flattened into the 2D plane of the element."}, {name: "preserve-3d", browsers: ["E12", "FF16", "S9", "C36", "O23"], description: "Flattening is not performed, so children maintain their position in 3D space."}], syntax: "flat | preserve-3d", relevance: 54, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-style"}], description: "Defines how nested elements are rendered in 3D space.", restrictions: ["enum"]}, {name: "transition", values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], syntax: "<single-transition>#", relevance: 87, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition"}], description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "transition-delay", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-delay"}], description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "transition-duration", syntax: "<time>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-duration"}], description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "transition-property", values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], syntax: "none | <single-transition-property>#", relevance: 64, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-property"}], description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "transition-timing-function", syntax: "<timing-function>#", relevance: 60, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}], description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "unicode-bidi", values: [{name: "bidi-override", description: "Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."}, {name: "embed", description: "If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."}, {name: "isolate", description: "The contents of the element are considered to be inside a separate, independent paragraph."}, {name: "isolate-override", description: "This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"}, {name: "normal", description: "The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."}, {name: "plaintext", description: "For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}], syntax: "normal | embed | isolate | bidi-override | isolate-override | plaintext", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}], description: "The level of embedding with respect to the bidirectional algorithm.", restrictions: ["enum"]}, {name: "unicode-range", values: [{name: "U+26", description: "Ampersand."}, {name: "U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00\u2013FB4F", description: "WGL4 character set (Pan-European)."}, {name: "U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF", description: "The Multilingual European Subset No. 1. Latin. Covers ~44 languages."}, {name: "U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD", description: "The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."}, {name: "U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD", description: "The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."}, {name: "U+00-7F", description: "Basic Latin (ASCII)."}, {name: "U+80-FF", description: "Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."}, {name: "U+100-17F", description: "Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."}, {name: "U+180-24F", description: "Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."}, {name: "U+1E00-1EFF", description: "Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."}, {name: "U+250-2AF", description: "International Phonetic Alphabet Extensions."}, {name: "U+370-3FF", description: "Greek and Coptic."}, {name: "U+1F00-1FFF", description: "Greek Extended. Accented characters for polytonic Greek."}, {name: "U+400-4FF", description: "Cyrillic."}, {name: "U+500-52F", description: "Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."}, {name: "U+00-52F, U+1E00-1FFF, U+2200\u201322FF", description: "Latin, Greek, Cyrillic, some punctuation and symbols."}, {name: "U+530\u201358F", description: "Armenian."}, {name: "U+590\u20135FF", description: "Hebrew."}, {name: "U+600\u20136FF", description: "Arabic."}, {name: "U+750\u201377F", description: "Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."}, {name: "U+8A0\u20138FF", description: "Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."}, {name: "U+700\u201374F", description: "Syriac."}, {name: "U+900\u201397F", description: "Devanagari."}, {name: "U+980\u20139FF", description: "Bengali."}, {name: "U+A00\u2013A7F", description: "Gurmukhi."}, {name: "U+A80\u2013AFF", description: "Gujarati."}, {name: "U+B00\u2013B7F", description: "Oriya."}, {name: "U+B80\u2013BFF", description: "Tamil."}, {name: "U+C00\u2013C7F", description: "Telugu."}, {name: "U+C80\u2013CFF", description: "Kannada."}, {name: "U+D00\u2013D7F", description: "Malayalam."}, {name: "U+D80\u2013DFF", description: "Sinhala."}, {name: "U+118A0\u2013118FF", description: "Warang Citi."}, {name: "U+E00\u2013E7F", description: "Thai."}, {name: "U+1A20\u20131AAF", description: "Tai Tham."}, {name: "U+AA80\u2013AADF", description: "Tai Viet."}, {name: "U+E80\u2013EFF", description: "Lao."}, {name: "U+F00\u2013FFF", description: "Tibetan."}, {name: "U+1000\u2013109F", description: "Myanmar (Burmese)."}, {name: "U+10A0\u201310FF", description: "Georgian."}, {name: "U+1200\u2013137F", description: "Ethiopic."}, {name: "U+1380\u2013139F", description: "Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"}, {name: "U+2D80\u20132DDF", description: "Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."}, {name: "U+AB00\u2013AB2F", description: "Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."}, {name: "U+1780\u201317FF", description: "Khmer."}, {name: "U+1800\u201318AF", description: "Mongolian."}, {name: "U+1B80\u20131BBF", description: "Sundanese."}, {name: "U+1CC0\u20131CCF", description: "Sundanese Supplement. Punctuation."}, {name: "U+4E00\u20139FD5", description: "CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."}, {name: "U+3400\u20134DB5", description: "CJK Unified Ideographs Extension A. Rare ideographs."}, {name: "U+2F00\u20132FDF", description: "Kangxi Radicals."}, {name: "U+2E80\u20132EFF", description: "CJK Radicals Supplement. Alternative forms of Kangxi Radicals."}, {name: "U+1100\u201311FF", description: "Hangul Jamo."}, {name: "U+AC00\u2013D7AF", description: "Hangul Syllables."}, {name: "U+3040\u2013309F", description: "Hiragana."}, {name: "U+30A0\u201330FF", description: "Katakana."}, {name: "U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F", description: "Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."}, {name: "U+A4D0\u2013A4FF", description: "Lisu."}, {name: "U+A000\u2013A48F", description: "Yi Syllables."}, {name: "U+A490\u2013A4CF", description: "Yi Radicals."}, {name: "U+2000-206F", description: "General Punctuation."}, {name: "U+3000\u2013303F", description: "CJK Symbols and Punctuation."}, {name: "U+2070\u2013209F", description: "Superscripts and Subscripts."}, {name: "U+20A0\u201320CF", description: "Currency Symbols."}, {name: "U+2100\u2013214F", description: "Letterlike Symbols."}, {name: "U+2150\u2013218F", description: "Number Forms."}, {name: "U+2190\u201321FF", description: "Arrows."}, {name: "U+2200\u201322FF", description: "Mathematical Operators."}, {name: "U+2300\u201323FF", description: "Miscellaneous Technical."}, {name: "U+E000-F8FF", description: "Private Use Area."}, {name: "U+FB00\u2013FB4F", description: "Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."}, {name: "U+FB50\u2013FDFF", description: "Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."}, {name: "U+1F600\u20131F64F", description: "Emoji: Emoticons."}, {name: "U+2600\u201326FF", description: "Emoji: Miscellaneous Symbols."}, {name: "U+1F300\u20131F5FF", description: "Emoji: Miscellaneous Symbols and Pictographs."}, {name: "U+1F900\u20131F9FF", description: "Emoji: Supplemental Symbols and Pictographs."}, {name: "U+1F680\u20131F6FF", description: "Emoji: Transport and Map Symbols."}], syntax: "<unicode-range>#", relevance: 58, description: "@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.", restrictions: ["unicode-range"]}, {name: "user-select", values: [{name: "all", description: "The content of the element must be selected atomically"}, {name: "auto"}, {name: "contain", description: "UAs must not allow a selection which is started in this element to be extended outside of this element."}, {name: "none", description: "The UA must not allow selections to be started in this element."}, {name: "text", description: "The element imposes no constraint on the selection."}], status: "nonstandard", syntax: "auto | text | none | contain | all", relevance: 24, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/user-select"}], description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "vertical-align", values: [{name: "auto", description: "Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."}, {name: "baseline", description: "Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."}, {name: "bottom", description: "Align the after edge of the extended inline box with the after-edge of the line box."}, {name: "middle", description: "Align the 'middle' baseline of the inline element with the middle baseline of the parent."}, {name: "sub", description: "Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"}, {name: "super", description: "Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"}, {name: "text-bottom", description: "Align the bottom of the box with the after-edge of the parent element's font."}, {name: "text-top", description: "Align the top of the box with the before-edge of the parent element's font."}, {name: "top", description: "Align the before edge of the extended inline box with the before-edge of the line box."}, {name: "-webkit-baseline-middle"}], syntax: "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/vertical-align"}], description: "Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.", restrictions: ["percentage", "length"]}, {name: "visibility", values: [{name: "collapse", description: "Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."}, {name: "hidden", description: "The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."}, {name: "visible", description: "The generated box is visible."}], syntax: "visible | hidden | collapse", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/visibility"}], description: "Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the \u2018display\u2019 property to \u2018none\u2019 to suppress box generation altogether).", restrictions: ["enum"]}, {name: "-webkit-animation", browsers: ["C", "S5"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "infinite", description: "Causes the animation to repeat forever."}, {name: "none", description: "No animation is performed"}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Shorthand property combines six of the animation properties into a single property.", restrictions: ["time", "enum", "timing-function", "identifier", "number"]}, {name: "-webkit-animation-delay", browsers: ["C", "S5"], relevance: 50, description: "Defines when the animation will start.", restrictions: ["time"]}, {name: "-webkit-animation-direction", browsers: ["C", "S5"], values: [{name: "alternate", description: "The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."}, {name: "alternate-reverse", description: "The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."}, {name: "normal", description: "Normal playback."}, {name: "reverse", description: "All iterations of the animation are played in the reverse direction from the way they were specified."}], relevance: 50, description: "Defines whether or not the animation should play in reverse on alternate cycles.", restrictions: ["enum"]}, {name: "-webkit-animation-duration", browsers: ["C", "S5"], relevance: 50, description: "Defines the length of time that an animation takes to complete one cycle.", restrictions: ["time"]}, {name: "-webkit-animation-fill-mode", browsers: ["C", "S5"], values: [{name: "backwards", description: "The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."}, {name: "both", description: "Both forwards and backwards fill modes are applied."}, {name: "forwards", description: "The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."}, {name: "none", description: "There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}], relevance: 50, description: "Defines what values are applied by the animation outside the time it is executing.", restrictions: ["enum"]}, {name: "-webkit-animation-iteration-count", browsers: ["C", "S5"], values: [{name: "infinite", description: "Causes the animation to repeat forever."}], relevance: 50, description: "Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.", restrictions: ["number", "enum"]}, {name: "-webkit-animation-name", browsers: ["C", "S5"], values: [{name: "none", description: "No animation is performed"}], relevance: 50, description: "Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.", restrictions: ["identifier", "enum"]}, {name: "-webkit-animation-play-state", browsers: ["C", "S5"], values: [{name: "paused", description: "A running animation will be paused."}, {name: "running", description: "Resume playback of a paused animation."}], relevance: 50, description: "Defines whether the animation is running or paused.", restrictions: ["enum"]}, {name: "-webkit-animation-timing-function", browsers: ["C", "S5"], relevance: 50, description: "Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.", restrictions: ["timing-function"]}, {name: "-webkit-appearance", browsers: ["C", "S3"], values: [{name: "button"}, {name: "button-bevel"}, {name: "caps-lock-indicator"}, {name: "caret"}, {name: "checkbox"}, {name: "default-button"}, {name: "listbox"}, {name: "listitem"}, {name: "media-fullscreen-button"}, {name: "media-mute-button"}, {name: "media-play-button"}, {name: "media-seek-back-button"}, {name: "media-seek-forward-button"}, {name: "media-slider"}, {name: "media-sliderthumb"}, {name: "menulist"}, {name: "menulist-button"}, {name: "menulist-text"}, {name: "menulist-textfield"}, {name: "none"}, {name: "push-button"}, {name: "radio"}, {name: "scrollbarbutton-down"}, {name: "scrollbarbutton-left"}, {name: "scrollbarbutton-right"}, {name: "scrollbarbutton-up"}, {name: "scrollbargripper-horizontal"}, {name: "scrollbargripper-vertical"}, {name: "scrollbarthumb-horizontal"}, {name: "scrollbarthumb-vertical"}, {name: "scrollbartrack-horizontal"}, {name: "scrollbartrack-vertical"}, {name: "searchfield"}, {name: "searchfield-cancel-button"}, {name: "searchfield-decoration"}, {name: "searchfield-results-button"}, {name: "searchfield-results-decoration"}, {name: "slider-horizontal"}, {name: "sliderthumb-horizontal"}, {name: "sliderthumb-vertical"}, {name: "slider-vertical"}, {name: "square-button"}, {name: "textarea"}, {name: "textfield"}], status: "nonstandard", syntax: "none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield", relevance: 0, description: "Changes the appearance of buttons and other controls to resemble native controls.", restrictions: ["enum"]}, {name: "-webkit-backdrop-filter", browsers: ["S9"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", description: "A filter reference to a <filter> element."}], relevance: 50, description: "Applies a filter effect where the first filter in the list takes the element's background image as the input image.", restrictions: ["enum", "url"]}, {name: "-webkit-backface-visibility", browsers: ["C", "S5"], values: [{name: "hidden"}, {name: "visible"}], relevance: 50, description: "Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.", restrictions: ["enum"]}, {name: "-webkit-background-clip", browsers: ["C", "S3"], relevance: 50, description: "Determines the background painting area.", restrictions: ["box"]}, {name: "-webkit-background-composite", browsers: ["C", "S3"], values: [{name: "border"}, {name: "padding"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-background-origin", browsers: ["C", "S3"], relevance: 50, description: "For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).", restrictions: ["box"]}, {name: "-webkit-border-image", browsers: ["C", "S5"], values: [{name: "auto", description: "If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}, {name: "fill", description: "Causes the middle part of the border-image to be preserved."}, {name: "none"}, {name: "repeat", description: "The image is tiled (repeated) to fill the area."}, {name: "round", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."}, {name: "space", description: "The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."}, {name: "stretch", description: "The image is stretched to fill the area."}, {name: "url()"}], relevance: 50, description: "Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.", restrictions: ["length", "percentage", "number", "url", "enum"]}, {name: "-webkit-box-align", browsers: ["C", "S3"], values: [{name: "baseline", description: "If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."}, {name: "center", description: "Any extra space is divided evenly, with half placed above the child and the other half placed after the child."}, {name: "end", description: "For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."}, {name: "start", description: "For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."}, {name: "stretch", description: "The height of each child is adjusted to that of the containing block."}], relevance: 50, description: "Specifies the alignment of nested elements within an outer flexible box element.", restrictions: ["enum"]}, {name: "-webkit-box-direction", browsers: ["C", "S3"], values: [{name: "normal", description: "A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."}, {name: "reverse", description: "A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}], relevance: 50, description: "In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).", restrictions: ["enum"]}, {name: "-webkit-box-flex", browsers: ["C", "S3"], relevance: 50, description: "Specifies an element's flexibility.", restrictions: ["number"]}, {name: "-webkit-box-flex-group", browsers: ["C", "S3"], relevance: 50, description: "Flexible elements can be assigned to flex groups using the 'box-flex-group' property.", restrictions: ["integer"]}, {name: "-webkit-box-ordinal-group", browsers: ["C", "S3"], relevance: 50, description: "Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.", restrictions: ["integer"]}, {name: "-webkit-box-orient", browsers: ["C", "S3"], values: [{name: "block-axis", description: "Elements are oriented along the box's axis."}, {name: "horizontal", description: "The box displays its children from left to right in a horizontal line."}, {name: "inline-axis", description: "Elements are oriented vertically."}, {name: "vertical", description: "The box displays its children from stacked from top to bottom vertically."}], relevance: 50, description: "In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.", restrictions: ["enum"]}, {name: "-webkit-box-pack", browsers: ["C", "S3"], values: [{name: "center", description: "The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."}, {name: "end", description: "For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."}, {name: "justify", description: "The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."}, {name: "start", description: "For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}], relevance: 50, description: "Specifies alignment of child elements within the current element in the direction of orientation.", restrictions: ["enum"]}, {name: "-webkit-box-reflect", browsers: ["E79", "S4", "C4", "O15"], values: [{name: "above", description: "The reflection appears above the border box."}, {name: "below", description: "The reflection appears below the border box."}, {name: "left", description: "The reflection appears to the left of the border box."}, {name: "right", description: "The reflection appears to the right of the border box."}], status: "nonstandard", syntax: "[ above | below | right | left ]? <length>? <image>?", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}], description: "Defines a reflection of a border box."}, {name: "-webkit-box-sizing", browsers: ["C", "S3"], values: [{name: "border-box", description: "The specified width and height (and respective min/max properties) on this element determine the border box of the element."}, {name: "content-box", description: "Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}], relevance: 50, description: "Box Model addition in CSS3.", restrictions: ["enum"]}, {name: "-webkit-break-after", browsers: ["S7"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-break-before", browsers: ["S7"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-break-inside", browsers: ["S7"], values: [{name: "auto", description: "Neither force nor forbid a page/column break inside the generated box."}, {name: "avoid", description: "Avoid a page/column break inside the generated box."}, {name: "avoid-column", description: "Avoid a column break inside the generated box."}, {name: "avoid-page", description: "Avoid a page break inside the generated box."}, {name: "avoid-region"}], relevance: 50, description: "Describes the page/column break behavior inside the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-after", browsers: ["C", "S3"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-before", browsers: ["C", "S3"], values: [{name: "always", description: "Always force a page break before/after the generated box."}, {name: "auto", description: "Neither force nor forbid a page/column break before/after the generated box."}, {name: "avoid", description: "Avoid a page/column break before/after the generated box."}, {name: "avoid-column", description: "Avoid a column break before/after the generated box."}, {name: "avoid-page", description: "Avoid a page break before/after the generated box."}, {name: "avoid-region"}, {name: "column", description: "Always force a column break before/after the generated box."}, {name: "left", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."}, {name: "page", description: "Always force a page break before/after the generated box."}, {name: "region"}, {name: "right", description: "Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}], relevance: 50, description: "Describes the page/column break behavior before the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-break-inside", browsers: ["C", "S3"], values: [{name: "auto", description: "Neither force nor forbid a page/column break inside the generated box."}, {name: "avoid", description: "Avoid a page/column break inside the generated box."}, {name: "avoid-column", description: "Avoid a column break inside the generated box."}, {name: "avoid-page", description: "Avoid a page break inside the generated box."}, {name: "avoid-region"}], relevance: 50, description: "Describes the page/column break behavior inside the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-count", browsers: ["C", "S3"], values: [{name: "auto", description: "Determines the number of columns by the 'column-width' property and the element width."}], relevance: 50, description: "Describes the optimal number of columns into which the content of the element will be flowed.", restrictions: ["integer"]}, {name: "-webkit-column-gap", browsers: ["C", "S3"], values: [{name: "normal", description: "User agent specific and typically equivalent to 1em."}], relevance: 50, description: "Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.", restrictions: ["length"]}, {name: "-webkit-column-rule", browsers: ["C", "S3"], relevance: 50, description: "This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.", restrictions: ["length", "line-width", "line-style", "color"]}, {name: "-webkit-column-rule-color", browsers: ["C", "S3"], relevance: 50, description: "Sets the color of the column rule", restrictions: ["color"]}, {name: "-webkit-column-rule-style", browsers: ["C", "S3"], relevance: 50, description: "Sets the style of the rule between columns of an element.", restrictions: ["line-style"]}, {name: "-webkit-column-rule-width", browsers: ["C", "S3"], relevance: 50, description: "Sets the width of the rule between columns. Negative values are not allowed.", restrictions: ["length", "line-width"]}, {name: "-webkit-columns", browsers: ["C", "S3"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "A shorthand property which sets both 'column-width' and 'column-count'.", restrictions: ["length", "integer"]}, {name: "-webkit-column-span", browsers: ["C", "S3"], values: [{name: "all", description: "The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."}, {name: "none", description: "The element does not span multiple columns."}], relevance: 50, description: "Describes the page/column break behavior after the generated box.", restrictions: ["enum"]}, {name: "-webkit-column-width", browsers: ["C", "S3"], values: [{name: "auto", description: "The width depends on the values of other properties."}], relevance: 50, description: "This property describes the width of columns in multicol elements.", restrictions: ["length"]}, {name: "-webkit-filter", browsers: ["C18", "O15", "S6"], values: [{name: "none", description: "No filter effects are applied."}, {name: "blur()", description: "Applies a Gaussian blur to the input image."}, {name: "brightness()", description: "Applies a linear multiplier to input image, making it appear more or less bright."}, {name: "contrast()", description: "Adjusts the contrast of the input."}, {name: "drop-shadow()", description: "Applies a drop shadow effect to the input image."}, {name: "grayscale()", description: "Converts the input image to grayscale."}, {name: "hue-rotate()", description: "Applies a hue rotation on the input image. "}, {name: "invert()", description: "Inverts the samples in the input image."}, {name: "opacity()", description: "Applies transparency to the samples in the input image."}, {name: "saturate()", description: "Saturates the input image."}, {name: "sepia()", description: "Converts the input image to sepia."}, {name: "url()", description: "A filter reference to a <filter> element."}], relevance: 50, description: "Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.", restrictions: ["enum", "url"]}, {name: "-webkit-flow-from", browsers: ["S6.1"], values: [{name: "none", description: "The block container is not a CSS Region."}], relevance: 50, description: "Makes a block container a region and associates it with a named flow.", restrictions: ["identifier"]}, {name: "-webkit-flow-into", browsers: ["S6.1"], values: [{name: "none", description: "The element is not moved to a named flow and normal CSS processing takes place."}], relevance: 50, description: "Places an element or its contents into a named flow.", restrictions: ["identifier"]}, {name: "-webkit-font-feature-settings", browsers: ["C16"], values: [{name: '"c2cs"'}, {name: '"dlig"'}, {name: '"kern"'}, {name: '"liga"'}, {name: '"lnum"'}, {name: '"onum"'}, {name: '"smcp"'}, {name: '"swsh"'}, {name: '"tnum"'}, {name: "normal", description: "No change in glyph substitution or positioning occurs."}, {name: "off"}, {name: "on"}], relevance: 50, description: "This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.", restrictions: ["string", "integer"]}, {name: "-webkit-hyphens", browsers: ["S5.1"], values: [{name: "auto", description: "Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."}, {name: "manual", description: "Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"}, {name: "none", description: "Words are not broken at line breaks, even if characters inside the word suggest line break points."}], relevance: 50, description: "Controls whether hyphenation is allowed to create more break opportunities within a line of text.", restrictions: ["enum"]}, {name: "-webkit-line-break", browsers: ["C", "S3"], values: [{name: "after-white-space"}, {name: "normal"}], relevance: 50, description: "Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."}, {name: "-webkit-margin-bottom-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-margin-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-margin-start", browsers: ["C", "S3"], values: [{name: "auto"}], relevance: 50, restrictions: ["percentage", "length"]}, {name: "-webkit-margin-top-collapse", browsers: ["C", "S3"], values: [{name: "collapse"}, {name: "discard"}, {name: "separate"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-mask-clip", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "[ <box> | border | padding | content | text ]#", relevance: 0, description: "Determines the mask painting area, which determines the area that is affected by the mask.", restrictions: ["box"]}, {name: "-webkit-mask-image", browsers: ["C", "O15", "S4"], values: [{name: "none", description: "Counts as a transparent black image layer."}, {name: "url()", description: "Reference to a <mask element or to a CSS image."}], status: "nonstandard", syntax: "<mask-reference>#", relevance: 0, description: "Sets the mask layer image of an element.", restrictions: ["url", "image", "enum"]}, {name: "-webkit-mask-origin", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "[ <box> | border | padding | content ]#", relevance: 0, description: "Specifies the mask positioning area.", restrictions: ["box"]}, {name: "-webkit-mask-repeat", browsers: ["C", "O15", "S4"], status: "nonstandard", syntax: "<repeat-style>#", relevance: 0, description: "Specifies how mask layer images are tiled after they have been sized and positioned.", restrictions: ["repeat"]}, {name: "-webkit-mask-size", browsers: ["C", "O15", "S4"], values: [{name: "auto", description: "Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."}, {name: "contain", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."}, {name: "cover", description: "Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}], status: "nonstandard", syntax: "<bg-size>#", relevance: 0, description: "Specifies the size of the mask layer images.", restrictions: ["length", "percentage", "enum"]}, {name: "-webkit-nbsp-mode", browsers: ["C", "S3"], values: [{name: "normal"}, {name: "space"}], relevance: 50, description: "Defines the behavior of nonbreaking spaces within text."}, {name: "-webkit-overflow-scrolling", browsers: ["C", "S5"], values: [{name: "auto"}, {name: "touch"}], status: "nonstandard", syntax: "auto | touch", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}], description: "Specifies whether to use native-style scrolling in an overflow:scroll element."}, {name: "-webkit-padding-start", browsers: ["C", "S3"], relevance: 50, restrictions: ["percentage", "length"]}, {name: "-webkit-perspective", browsers: ["C", "S4"], values: [{name: "none", description: "No perspective transform is applied."}], relevance: 50, description: "Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.", restrictions: ["length"]}, {name: "-webkit-perspective-origin", browsers: ["C", "S4"], relevance: 50, description: "Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.", restrictions: ["position", "percentage", "length"]}, {name: "-webkit-region-fragment", browsers: ["S7"], values: [{name: "auto", description: "Content flows as it would in a regular content box."}, {name: "break", description: "If the content fits within the CSS Region, then this property has no effect."}], relevance: 50, description: "The 'region-fragment' property controls the behavior of the last region associated with a named flow.", restrictions: ["enum"]}, {name: "-webkit-tap-highlight-color", browsers: ["E12", "C16", "O\u226415"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}], restrictions: ["color"]}, {name: "-webkit-text-fill-color", browsers: ["E12", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}], restrictions: ["color"]}, {name: "-webkit-text-size-adjust", browsers: ["E", "C", "S3"], values: [{name: "auto", description: "Renderers must use the default size adjustment when displaying on a small device."}, {name: "none", description: "Renderers must not do size adjustment when displaying on a small device."}], relevance: 50, description: "Specifies a size adjustment for displaying text content in mobile browsers.", restrictions: ["percentage"]}, {name: "-webkit-text-stroke", browsers: ["E15", "FF49", "S3", "C4", "O15"], status: "nonstandard", syntax: "<length> || <color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}], restrictions: ["length", "line-width", "color", "percentage"]}, {name: "-webkit-text-stroke-color", browsers: ["E15", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<color>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}], restrictions: ["color"]}, {name: "-webkit-text-stroke-width", browsers: ["E15", "FF49", "S3", "C1", "O15"], status: "nonstandard", syntax: "<length>", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}], restrictions: ["length", "line-width", "percentage"]}, {name: "-webkit-touch-callout", browsers: ["S3"], values: [{name: "none"}], status: "nonstandard", syntax: "default | none", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}], restrictions: ["enum"]}, {name: "-webkit-transform", browsers: ["C", "O12", "S3.1"], values: [{name: "matrix()", description: "Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"}, {name: "matrix3d()", description: "Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."}, {name: "none"}, {name: "perspective()", description: "Specifies a perspective projection matrix."}, {name: "rotate()", description: "Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."}, {name: "rotate3d()", description: "Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."}, {name: "rotateX('angle')", description: "Specifies a clockwise rotation by the given angle about the X axis."}, {name: "rotateY('angle')", description: "Specifies a clockwise rotation by the given angle about the Y axis."}, {name: "rotateZ('angle')", description: "Specifies a clockwise rotation by the given angle about the Z axis."}, {name: "scale()", description: "Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."}, {name: "scale3d()", description: "Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."}, {name: "scaleX()", description: "Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."}, {name: "scaleY()", description: "Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."}, {name: "scaleZ()", description: "Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."}, {name: "skew()", description: "Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."}, {name: "skewX()", description: "Specifies a skew transformation along the X axis by the given angle."}, {name: "skewY()", description: "Specifies a skew transformation along the Y axis by the given angle."}, {name: "translate()", description: "Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."}, {name: "translate3d()", description: "Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."}, {name: "translateX()", description: "Specifies a translation by the given amount in the X direction."}, {name: "translateY()", description: "Specifies a translation by the given amount in the Y direction."}, {name: "translateZ()", description: "Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}], relevance: 50, description: "A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.", restrictions: ["enum"]}, {name: "-webkit-transform-origin", browsers: ["C", "O15", "S3.1"], relevance: 50, description: "Establishes the origin of transformation for an element.", restrictions: ["position", "length", "percentage"]}, {name: "-webkit-transform-origin-x", browsers: ["C", "S3.1"], relevance: 50, description: "The x coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-origin-y", browsers: ["C", "S3.1"], relevance: 50, description: "The y coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-origin-z", browsers: ["C", "S4"], relevance: 50, description: "The z coordinate of the origin for transforms applied to an element with respect to its border box.", restrictions: ["length", "percentage"]}, {name: "-webkit-transform-style", browsers: ["C", "S4"], values: [{name: "flat", description: "All children of this element are rendered flattened into the 2D plane of the element."}], relevance: 50, description: "Defines how nested elements are rendered in 3D space.", restrictions: ["enum"]}, {name: "-webkit-transition", browsers: ["C", "O12", "S5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Shorthand property combines four of the transition properties into a single property.", restrictions: ["time", "property", "timing-function", "enum"]}, {name: "-webkit-transition-delay", browsers: ["C", "O12", "S5"], relevance: 50, description: "Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.", restrictions: ["time"]}, {name: "-webkit-transition-duration", browsers: ["C", "O12", "S5"], relevance: 50, description: "Specifies how long the transition from the old value to the new value should take.", restrictions: ["time"]}, {name: "-webkit-transition-property", browsers: ["C", "O12", "S5"], values: [{name: "all", description: "Every property that is able to undergo a transition will do so."}, {name: "none", description: "No property will transition."}], relevance: 50, description: "Specifies the name of the CSS property to which the transition is applied.", restrictions: ["property"]}, {name: "-webkit-transition-timing-function", browsers: ["C", "O12", "S5"], relevance: 50, description: "Describes how the intermediate values used during a transition will be calculated.", restrictions: ["timing-function"]}, {name: "-webkit-user-drag", browsers: ["S3"], values: [{name: "auto"}, {name: "element"}, {name: "none"}], relevance: 50, restrictions: ["enum"]}, {name: "-webkit-user-modify", browsers: ["C", "S3"], values: [{name: "read-only"}, {name: "read-write"}, {name: "read-write-plaintext-only"}], status: "nonstandard", syntax: "read-only | read-write | read-write-plaintext-only", relevance: 0, description: "Determines whether a user can edit the content of an element.", restrictions: ["enum"]}, {name: "-webkit-user-select", browsers: ["C", "S3"], values: [{name: "auto"}, {name: "none"}, {name: "text"}], relevance: 50, description: "Controls the appearance of selection.", restrictions: ["enum"]}, {name: "white-space", values: [{name: "normal", description: "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'."}, {name: "nowrap", description: "Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'."}, {name: "pre", description: "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'."}, {name: "pre-line", description: "Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'."}, {name: "pre-wrap", description: "Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'."}], syntax: "normal | pre | nowrap | pre-wrap | pre-line | break-spaces", relevance: 88, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/white-space"}], description: "Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.", restrictions: ["enum"]}, {name: "widows", browsers: ["E12", "S1.3", "C25", "IE8", "O9.2"], syntax: "<integer>", relevance: 51, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/widows"}], description: "Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.", restrictions: ["integer"]}, {name: "width", values: [{name: "auto", description: "The width depends on the values of other properties."}, {name: "fit-content", description: "Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."}, {name: "max-content", description: "Use the max-content inline size or max-content block size, as appropriate to the writing mode."}, {name: "min-content", description: "Use the min-content inline size or min-content block size, as appropriate to the writing mode."}], syntax: "<viewport-length>{1,2}", relevance: 96, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/width"}], description: "Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.", restrictions: ["length", "percentage"]}, {name: "will-change", browsers: ["E79", "FF36", "S9.1", "C36", "O24"], values: [{name: "auto", description: "Expresses no particular intent."}, {name: "contents", description: "Indicates that the author expects to animate or change something about the element\u2019s contents in the near future."}, {name: "scroll-position", description: "Indicates that the author expects to animate or change the scroll position of the element in the near future."}], syntax: "auto | <animateable-feature>#", relevance: 62, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/will-change"}], description: "Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.", restrictions: ["enum", "identifier"]}, {name: "word-break", values: [{name: "break-all", description: "Lines may break between any two grapheme clusters for non-CJK scripts."}, {name: "keep-all", description: "Block characters can no longer create implied break points."}, {name: "normal", description: "Breaks non-CJK scripts according to their own rules."}], syntax: "normal | break-all | keep-all | break-word", relevance: 72, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/word-break"}], description: "Specifies line break opportunities for non-CJK scripts.", restrictions: ["enum"]}, {name: "word-spacing", values: [{name: "normal", description: "No additional spacing is applied. Computes to zero."}], syntax: "normal | <length-percentage>", relevance: 57, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/word-spacing"}], description: "Specifies additional spacing between \u201Cwords\u201D.", restrictions: ["length", "percentage"]}, {name: "word-wrap", values: [{name: "break-word", description: "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."}, {name: "normal", description: "Lines may break only at allowed break points."}], syntax: "normal | break-word", relevance: 77, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}], description: "Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.", restrictions: ["enum"]}, {name: "writing-mode", values: [{name: "horizontal-tb", description: "Top-to-bottom block flow direction. The writing mode is horizontal."}, {name: "sideways-lr", description: "Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."}, {name: "sideways-rl", description: "Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."}, {name: "vertical-lr", description: "Left-to-right block flow direction. The writing mode is vertical."}, {name: "vertical-rl", description: "Right-to-left block flow direction. The writing mode is vertical."}], syntax: "horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/writing-mode"}], description: "This is a shorthand property for both 'direction' and 'block-progression'.", restrictions: ["enum"]}, {name: "z-index", values: [{name: "auto", description: "The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}], syntax: "auto | <integer>", relevance: 91, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/z-index"}], description: "For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.", restrictions: ["integer"]}, {name: "zoom", browsers: ["E12", "S3.1", "C1", "IE5.5", "O15"], values: [{name: "normal"}], syntax: "auto | <number> | <percentage>", relevance: 74, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/zoom"}], description: "Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.", restrictions: ["enum", "integer", "number", "percentage"]}, {name: "-ms-ime-align", status: "nonstandard", syntax: "auto | after", relevance: 0, description: "Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."}, {name: "-moz-binding", status: "nonstandard", syntax: "<url> | none", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-binding"}], description: "The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."}, {name: "-moz-context-properties", status: "nonstandard", syntax: "none | [ fill | fill-opacity | stroke | stroke-opacity ]#", relevance: 0, browsers: ["FF55"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"}], description: "If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."}, {name: "-moz-float-edge", status: "nonstandard", syntax: "border-box | content-box | margin-box | padding-box", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}], description: "The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."}, {name: "-moz-force-broken-image-icon", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}], description: "The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."}, {name: "-moz-image-region", status: "nonstandard", syntax: "<shape> | auto", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}], description: "For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."}, {name: "-moz-orient", status: "nonstandard", syntax: "inline | block | horizontal | vertical", relevance: 0, browsers: ["FF6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}], description: "The -moz-orient CSS property specifies the orientation of the element to which it's applied."}, {name: "-moz-outline-radius", status: "nonstandard", syntax: "<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"}], description: "In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."}, {name: "-moz-outline-radius-bottomleft", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"}], description: "In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."}, {name: "-moz-outline-radius-bottomright", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"}], description: "In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."}, {name: "-moz-outline-radius-topleft", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"}], description: "In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."}, {name: "-moz-outline-radius-topright", status: "nonstandard", syntax: "<outline-radius>", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"}], description: "In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."}, {name: "-moz-stack-sizing", status: "nonstandard", syntax: "ignore | stretch-to-fit", relevance: 0, description: "-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."}, {name: "-moz-text-blink", status: "nonstandard", syntax: "none | blink", relevance: 0, description: "The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."}, {name: "-moz-user-input", status: "nonstandard", syntax: "auto | none | enabled | disabled", relevance: 0, browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}], description: "In Mozilla applications, -moz-user-input determines if an element will accept user input."}, {name: "-moz-user-modify", status: "nonstandard", syntax: "read-only | read-write | write-only", relevance: 0, description: "The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."}, {name: "-moz-window-dragging", status: "nonstandard", syntax: "drag | no-drag", relevance: 0, description: "The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."}, {name: "-moz-window-shadow", status: "nonstandard", syntax: "default | menu | tooltip | sheet | none", relevance: 0, description: "The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."}, {name: "-webkit-border-before", status: "nonstandard", syntax: "<'border-width'> || <'border-style'> || <'color'>", relevance: 0, browsers: ["E79", "S5.1", "C8", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}], description: "The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."}, {name: "-webkit-border-before-color", status: "nonstandard", syntax: "<'color'>", relevance: 0, description: "The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-border-before-style", status: "nonstandard", syntax: "<'border-style'>", relevance: 0, description: "The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-border-before-width", status: "nonstandard", syntax: "<'border-width'>", relevance: 0, description: "The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."}, {name: "-webkit-line-clamp", syntax: "none | <integer>", relevance: 50, browsers: ["E17", "FF68", "S5", "C6", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}], description: "The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."}, {name: "-webkit-mask", status: "nonstandard", syntax: "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#", relevance: 0, description: "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."}, {name: "-webkit-mask-attachment", status: "nonstandard", syntax: "<attachment>#", relevance: 0, browsers: ["S4", "C1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}], description: "If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."}, {name: "-webkit-mask-composite", status: "nonstandard", syntax: "<composite-style>#", relevance: 0, browsers: ["E18", "FF53", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}], description: "The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."}, {name: "-webkit-mask-position", status: "nonstandard", syntax: "<position>#", relevance: 0, description: "The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."}, {name: "-webkit-mask-position-x", status: "nonstandard", syntax: "[ <length-percentage> | left | center | right ]#", relevance: 0, browsers: ["E18", "FF49", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}], description: "The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."}, {name: "-webkit-mask-position-y", status: "nonstandard", syntax: "[ <length-percentage> | top | center | bottom ]#", relevance: 0, browsers: ["E18", "FF49", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}], description: "The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."}, {name: "-webkit-mask-repeat-x", status: "nonstandard", syntax: "repeat | no-repeat | space | round", relevance: 0, browsers: ["E18", "S5", "C3", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}], description: "The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."}, {name: "-webkit-mask-repeat-y", status: "nonstandard", syntax: "repeat | no-repeat | space | round", relevance: 0, browsers: ["E18", "S5", "C3", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}], description: "The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."}, {name: "appearance", status: "experimental", syntax: "none | auto | button | textfield | menulist-button | <compat-auto>", relevance: 60, browsers: ["E84", "FF1", "S3", "C84", "O70"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/appearance"}], description: "Changes the appearance of buttons and other controls to resemble native controls."}, {name: "aspect-ratio", status: "experimental", syntax: "auto | <ratio>", relevance: 50, browsers: ["E79", "FF71", "C79"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}], description: "The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."}, {name: "azimuth", status: "obsolete", syntax: "<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards", relevance: 0, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/azimuth"}], description: "In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."}, {name: "backdrop-filter", syntax: "none | <filter-function-list>", relevance: 51, browsers: ["E17", "FF70", "S9", "C76", "O34"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}], description: "The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."}, {name: "border-block", syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block"}], description: "The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."}, {name: "border-block-color", syntax: "<'border-top-color'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-color"}], description: "The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-block-style", syntax: "<'border-top-style'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-style"}], description: "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-block-width", syntax: "<'border-top-width'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-block-width"}], description: "The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-end-end-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}], description: "The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."}, {name: "border-end-start-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}], description: "The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."}, {name: "border-inline", syntax: "<'border-top-width'> || <'border-top-style'> || <'color'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline"}], description: "The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."}, {name: "border-inline-color", syntax: "<'border-top-color'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}], description: "The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-inline-style", syntax: "<'border-top-style'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}], description: "The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-inline-width", syntax: "<'border-top-width'>", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}], description: "The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "border-start-end-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}], description: "The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."}, {name: "border-start-start-radius", syntax: "<length-percentage>{1,2}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}], description: "The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."}, {name: "box-align", status: "nonstandard", syntax: "start | center | end | baseline | stretch", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-align"}], description: "The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."}, {name: "box-direction", status: "nonstandard", syntax: "normal | reverse | inherit", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-direction"}], description: "The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."}, {name: "box-flex", status: "nonstandard", syntax: "<number>", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-flex"}], description: "The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."}, {name: "box-flex-group", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}], description: "The box-flex-group CSS property assigns the flexbox's child elements to a flex group."}, {name: "box-lines", status: "nonstandard", syntax: "single | multiple", relevance: 0, browsers: ["S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-lines"}], description: "The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."}, {name: "box-ordinal-group", status: "nonstandard", syntax: "<integer>", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}], description: "The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."}, {name: "box-orient", status: "nonstandard", syntax: "horizontal | vertical | inline-axis | block-axis | inherit", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-orient"}], description: "The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."}, {name: "box-pack", status: "nonstandard", syntax: "start | center | end | justify", relevance: 0, browsers: ["E12", "FF1", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/box-pack"}], description: "The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."}, {name: "color-adjust", syntax: "economy | exact", relevance: 50, browsers: ["E79", "FF48", "S6", "C49", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/color-adjust"}], description: "The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine."}, {name: "counter-set", syntax: "[ <custom-ident> <integer>? ]+ | none", relevance: 50, browsers: ["FF68"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/counter-set"}], description: "The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."}, {name: "font-optical-sizing", syntax: "auto | none", relevance: 50, browsers: ["E17", "FF62", "S11", "C79", "O66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}], description: "The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."}, {name: "font-variation-settings", syntax: "normal | [ <string> <number> ]#", relevance: 50, browsers: ["E17", "FF62", "S11", "C62", "O49"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}], description: "The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."}, {name: "font-smooth", status: "nonstandard", syntax: "auto | never | always | <absolute-size> | <length>", relevance: 0, browsers: ["E79", "FF25", "S4", "C5", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/font-smooth"}], description: ""}, {name: "gap", syntax: "<'row-gap'> <'column-gap'>?", relevance: 50, browsers: ["E84", "FF63", "S10.1", "C84", "O70"], description: "The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."}, {name: "hanging-punctuation", syntax: "none | [ first || [ force-end | allow-end ] || last ]", relevance: 50, browsers: ["S10"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}], description: "The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."}, {name: "image-resolution", status: "experimental", syntax: "[ from-image || <resolution> ] && snap?", relevance: 50, description: "The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."}, {name: "initial-letter", status: "experimental", syntax: "normal | [ <number> <integer>? ]", relevance: 50, browsers: ["S9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/initial-letter"}], description: "The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."}, {name: "initial-letter-align", status: "experimental", syntax: "[ auto | alphabetic | hanging | ideographic ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}], description: "The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."}, {name: "inset", syntax: "<'top'>{1,4}", relevance: 50, browsers: ["FF66"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset"}], description: "The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block", syntax: "<'top'>{1,2}", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block"}], description: "The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block-end", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}], description: "The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-block-start", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}], description: "The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline", syntax: "<'top'>{1,2}", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline"}], description: "The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline-end", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}], description: "The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "inset-inline-start", syntax: "<'top'>", relevance: 50, browsers: ["E79", "FF63", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}], description: "The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."}, {name: "line-clamp", status: "experimental", syntax: "none | <integer>", relevance: 50, description: "The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."}, {name: "line-height-step", status: "experimental", syntax: "<length>", relevance: 50, browsers: ["E79", "C60", "O47"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/line-height-step"}], description: "The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."}, {name: "margin-block", syntax: "<'margin-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-block"}], description: "The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."}, {name: "margin-inline", syntax: "<'margin-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-inline"}], description: "The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."}, {name: "margin-trim", status: "experimental", syntax: "none | in-flow | all", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/margin-trim"}], description: "The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."}, {name: "mask", syntax: "<mask-layer>#", relevance: 50, browsers: ["E12", "FF2", "S3.2", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask"}], description: "The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."}, {name: "mask-border", syntax: "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>", relevance: 50, description: "The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."}, {name: "mask-border-mode", syntax: "luminance | alpha", relevance: 50, description: "The mask-border-mode CSS property specifies the blending mode used in a mask border."}, {name: "mask-border-outset", syntax: "[ <length> | <number> ]{1,4}", relevance: 50, description: "The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."}, {name: "mask-border-repeat", syntax: "[ stretch | repeat | round | space ]{1,2}", relevance: 50, description: "The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."}, {name: "mask-border-slice", syntax: "<number-percentage>{1,4} fill?", relevance: 50, description: "The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."}, {name: "mask-border-source", syntax: "none | <image>", relevance: 50, description: "The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."}, {name: "mask-border-width", syntax: "[ <length-percentage> | <number> | auto ]{1,4}", relevance: 50, description: "The mask-border-width CSS property specifies the width of an element's mask border."}, {name: "mask-clip", syntax: "[ <geometry-box> | no-clip ]#", relevance: 50, browsers: ["E79", "FF53", "S4", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-clip"}], description: "The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."}, {name: "mask-composite", syntax: "<compositing-operator>#", relevance: 50, browsers: ["E18", "FF53"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/mask-composite"}], description: "The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."}, {name: "max-lines", status: "experimental", syntax: "none | <integer>", relevance: 50, description: "The max-liens property forces a break after a set number of lines"}, {name: "offset", syntax: "[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?", relevance: 50, browsers: ["E79", "FF72", "C55", "O42"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset"}], description: "The offset CSS property is a shorthand property for animating an element along a defined path."}, {name: "offset-anchor", syntax: "auto | <position>", relevance: 50, browsers: ["E79", "FF72", "C79"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}], description: "Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."}, {name: "offset-distance", syntax: "<length-percentage>", relevance: 50, browsers: ["E79", "FF72", "C55", "O42"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-distance"}], description: "The offset-distance CSS property specifies a position along an offset-path."}, {name: "offset-path", syntax: "none | ray( [ <angle> && <size>? && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]", relevance: 50, browsers: ["E79", "FF72", "C55", "O45"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-path"}], description: 'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'}, {name: "offset-position", status: "experimental", syntax: "auto | <position>", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-position"}], description: "Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."}, {name: "offset-rotate", syntax: "[ auto | reverse ] || <angle>", relevance: 50, browsers: ["E79", "FF72", "C56", "O43"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}], description: "The offset-rotate CSS property defines the direction of the element while positioning along the offset path."}, {name: "overflow-anchor", syntax: "auto | none", relevance: 51, browsers: ["E79", "FF66", "C56", "O43"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}], description: "The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."}, {name: "overflow-block", syntax: "visible | hidden | clip | scroll | auto", relevance: 50, browsers: ["FF69"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-block"}], description: "The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."}, {name: "overflow-clip-box", status: "nonstandard", syntax: "padding-box | content-box", relevance: 0, browsers: ["FF29"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box"}], description: "The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."}, {name: "overflow-inline", syntax: "visible | hidden | clip | scroll | auto", relevance: 50, browsers: ["FF69"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}], description: "The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."}, {name: "overscroll-behavior", syntax: "[ contain | none | auto ]{1,2}", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}], description: "The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."}, {name: "overscroll-behavior-block", syntax: "contain | none | auto", relevance: 50, browsers: ["E79", "FF73", "C77", "O64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}], description: "The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."}, {name: "overscroll-behavior-inline", syntax: "contain | none | auto", relevance: 50, browsers: ["E79", "FF73", "C77", "O64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}], description: "The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."}, {name: "overscroll-behavior-x", syntax: "contain | none | auto", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}], description: "The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."}, {name: "overscroll-behavior-y", syntax: "contain | none | auto", relevance: 50, browsers: ["E18", "FF59", "C63", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}], description: "The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."}, {name: "padding-block", syntax: "<'padding-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-block"}], description: "The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."}, {name: "padding-inline", syntax: "<'padding-left'>{1,2}", relevance: 50, browsers: ["E79", "FF66", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/padding-inline"}], description: "The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."}, {name: "place-content", syntax: "<'align-content'> <'justify-content'>?", relevance: 50, browsers: ["E79", "FF53", "S9", "C59", "O46"], description: "The place-content CSS shorthand property sets both the align-content and justify-content properties."}, {name: "place-items", syntax: "<'align-items'> <'justify-items'>?", relevance: 50, browsers: ["E79", "FF45", "S11", "C59", "O46"], description: "The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."}, {name: "place-self", syntax: "<'align-self'> <'justify-self'>?", relevance: 50, browsers: ["E79", "FF45", "C59", "O46"], description: "The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."}, {name: "rotate", syntax: "none | <angle> | [ x | y | z | <number>{3} ] && <angle>", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/rotate"}], description: "The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "row-gap", syntax: "normal | <length-percentage>", relevance: 50, browsers: ["E84", "FF63", "S10.1", "C84", "O70"], description: "The row-gap CSS property specifies the gutter between grid rows."}, {name: "ruby-merge", status: "experimental", syntax: "separate | collapse | auto", relevance: 50, description: "This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."}, {name: "scale", syntax: "none | <number>{1,3}", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scale"}], description: "The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "scrollbar-color", syntax: "auto | dark | light | <color>{2}", relevance: 50, browsers: ["FF64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}], description: "The scrollbar-color CSS property sets the color of the scrollbar track and thumb."}, {name: "scrollbar-width", syntax: "auto | thin | none", relevance: 50, browsers: ["FF64"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}], description: "The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "}, {name: "scroll-margin", syntax: "<length>{1,4}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}], description: "The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."}, {name: "scroll-margin-block", syntax: "<length>{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}], description: "The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."}, {name: "scroll-margin-block-start", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}], description: "The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-block-end", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}], description: "The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-bottom", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}], description: "The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-inline", syntax: "<length>{1,2}", relevance: 50, browsers: ["FF68"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}], description: "The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."}, {name: "scroll-margin-inline-start", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}], description: "The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-inline-end", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}], description: "The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-left", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}], description: "The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-right", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}], description: "The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-margin-top", syntax: "<length>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}], description: "The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."}, {name: "scroll-padding", syntax: "[ auto | <length-percentage> ]{1,4}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}], description: "The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."}, {name: "scroll-padding-block", syntax: "[ auto | <length-percentage> ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}], description: "The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."}, {name: "scroll-padding-block-start", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}], description: "The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-block-end", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}], description: "The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-bottom", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}], description: "The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-inline", syntax: "[ auto | <length-percentage> ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}], description: "The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."}, {name: "scroll-padding-inline-start", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}], description: "The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-inline-end", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}], description: "The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-left", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}], description: "The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-right", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}], description: "The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-padding-top", syntax: "auto | <length-percentage>", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}], description: "The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."}, {name: "scroll-snap-align", syntax: "[ none | start | end | center ]{1,2}", relevance: 50, browsers: ["E79", "FF68", "S11", "C69", "O56"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}], description: "The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."}, {name: "scroll-snap-stop", syntax: "normal | always", relevance: 50, browsers: ["E79", "C75", "O62"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}], description: 'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'}, {name: "scroll-snap-type-x", status: "obsolete", syntax: "none | mandatory | proximity", relevance: 0, browsers: ["FF39", "S9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"}], description: "The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."}, {name: "scroll-snap-type-y", status: "obsolete", syntax: "none | mandatory | proximity", relevance: 0, browsers: ["FF39"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"}], description: "The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."}, {name: "text-combine-upright", syntax: "none | all | [ digits <integer>? ]", relevance: 50, references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}], description: "The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016B-yoko (\u7E26\u4E2D\u6A2A) in Japanese, or as \u76F4\u66F8\u6A6B\u5411 in Chinese."}, {name: "text-decoration-skip", status: "experimental", syntax: "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]", relevance: 52, browsers: ["S12.1", "C57", "O44"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}], description: "The text-decoration-skip CSS property specifies what parts of the element\u2019s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."}, {name: "text-decoration-skip-ink", syntax: "auto | all | none", relevance: 50, browsers: ["E79", "FF70", "C64", "O50"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}], description: "The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."}, {name: "text-decoration-thickness", syntax: "auto | from-font | <length> | <percentage> ", relevance: 50, browsers: ["FF70", "S12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}], description: "The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."}, {name: "text-emphasis", syntax: "<'text-emphasis-style'> || <'text-emphasis-color'>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}], description: "The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."}, {name: "text-emphasis-color", syntax: "<color>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}], description: "The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."}, {name: "text-emphasis-position", syntax: "[ over | under ] && [ right | left ]", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}], description: "The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."}, {name: "text-emphasis-style", syntax: "none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>", relevance: 50, browsers: ["E79", "FF46", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}], description: "The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."}, {name: "text-size-adjust", status: "experimental", syntax: "none | auto | <percentage>", relevance: 56, browsers: ["E79", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}], description: "The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."}, {name: "text-underline-offset", syntax: "auto | <length> | <percentage> ", relevance: 50, browsers: ["FF70", "S12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}], description: "The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."}, {name: "transform-box", syntax: "content-box | border-box | fill-box | stroke-box | view-box", relevance: 50, browsers: ["E79", "FF55", "S11", "C64", "O51"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/transform-box"}], description: "The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."}, {name: "translate", syntax: "none | <length-percentage> [ <length-percentage> <length>? ]?", relevance: 50, browsers: ["FF72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/translate"}], description: "The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."}, {name: "speak-as", syntax: "auto | bullets | numbers | words | spell-out | <counter-style-name>", relevance: 50, description: "The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."}, {name: "font-display", status: "experimental", syntax: "[ auto | block | swap | fallback | optional ]", relevance: 54, description: "The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."}, {name: "bleed", syntax: "auto | <length>", relevance: 50, description: "The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."}, {name: "marks", syntax: "none | [ crop || cross ]", relevance: 50, description: "The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."}, {name: "max-zoom", syntax: "auto | <number> | <percentage>", relevance: 50, description: "The max-zoom CSS descriptor sets the maximum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom in any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."}, {name: "min-zoom", syntax: "auto | <number> | <percentage>", relevance: 50, description: "The min-zoom CSS descriptor sets the minimum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom out any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."}, {name: "orientation", syntax: "auto | portrait | landscape", relevance: 50, description: "The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."}, {name: "user-zoom", syntax: "zoom | fixed", relevance: 50, description: "The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."}, {name: "viewport-fit", syntax: "auto | contain | cover", relevance: 50, description: "The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}], atDirectives: [{name: "@charset", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@charset"}], description: "Defines character set of the document."}, {name: "@counter-style", browsers: ["FF33"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@counter-style"}], description: "Defines a custom counter style."}, {name: "@font-face", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@font-face"}], description: "Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."}, {name: "@font-feature-values", browsers: ["FF34", "S9.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}], description: "Defines named values for the indices used to select alternate glyphs for a given font family."}, {name: "@import", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@import"}], description: "Includes content of another file."}, {name: "@keyframes", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@keyframes"}], description: "Defines set of animation key frames."}, {name: "@media", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@media"}], description: "Defines a stylesheet for a particular media type."}, {name: "@-moz-document", browsers: ["FF1.8"], description: "Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."}, {name: "@-moz-keyframes", browsers: ["FF5"], description: "Defines set of animation key frames."}, {name: "@-ms-viewport", browsers: ["E", "IE10"], description: "Specifies the size, zoom factor, and orientation of the viewport."}, {name: "@namespace", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@namespace"}], description: "Declares a prefix and associates it with a namespace name."}, {name: "@-o-keyframes", browsers: ["O12"], description: "Defines set of animation key frames."}, {name: "@-o-viewport", browsers: ["O11"], description: "Specifies the size, zoom factor, and orientation of the viewport."}, {name: "@page", browsers: ["E12", "FF19", "C2", "IE8", "O6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@page"}], description: "Directive defines various page parameters."}, {name: "@supports", browsers: ["E12", "FF22", "S9", "C28", "O12.1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/@supports"}], description: "A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."}, {name: "@-webkit-keyframes", browsers: ["C", "S4"], description: "Defines set of animation key frames."}], pseudoClasses: [{name: ":active", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:active"}], description: "Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."}, {name: ":any-link", browsers: ["E79", "FF50", "S9", "C65", "O52"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:any-link"}], description: "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."}, {name: ":checked", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:checked"}], description: "Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."}, {name: ":corner-present", browsers: ["C", "S5"], description: "Non-standard. Indicates whether or not a scrollbar corner is present."}, {name: ":decrement", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view\u2019s position when used."}, {name: ":default", browsers: ["E79", "FF4", "S5", "C10", "O10"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:default"}], description: "Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."}, {name: ":disabled", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:disabled"}], description: "Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."}, {name: ":double-button", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."}, {name: ":empty", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:empty"}], description: "Represents an element that has no children at all."}, {name: ":enabled", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:enabled"}], description: "Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."}, {name: ":end", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."}, {name: ":first", browsers: ["E12", "S6", "C18", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":first-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first-child"}], description: "Same as :nth-child(1). Represents an element that is the first child of some other element."}, {name: ":first-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}], description: "Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."}, {name: ":focus", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus"}], description: "Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."}, {name: ":fullscreen", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}], description: "Matches any element that has its fullscreen flag set."}, {name: ":future", browsers: ["C", "O16", "S6"], description: "Represents any element that is defined to occur entirely after a :current element."}, {name: ":horizontal", browsers: ["C", "S5"], description: "Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."}, {name: ":host", browsers: ["E79", "FF63", "S10", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:host"}], description: "When evaluated in the context of a shadow tree, matches the shadow tree\u2019s host element."}, {name: ":host()", browsers: ["C35", "O22"], description: "When evaluated in the context of a shadow tree, it matches the shadow tree\u2019s host element if the host element, in its normal context, matches the selector argument."}, {name: ":host-context()", browsers: ["C35", "O22"], description: "Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."}, {name: ":hover", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:hover"}], description: "Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."}, {name: ":increment", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view\u2019s position when used."}, {name: ":indeterminate", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}], description: "Applies to UI elements whose value is in an indeterminate state."}, {name: ":in-range", browsers: ["E13", "FF29", "S5.1", "C10", "O11"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:in-range"}], description: "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."}, {name: ":invalid", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:invalid"}], description: "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."}, {name: ":lang()", browsers: ["E", "C", "FF1", "IE8", "O8", "S3"], description: "Represents an element that is in language specified."}, {name: ":last-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:last-child"}], description: "Same as :nth-last-child(1). Represents an element that is the last child of some other element."}, {name: ":last-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}], description: "Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."}, {name: ":left", browsers: ["E12", "S5.1", "C6", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:left"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":link", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:link"}], description: "Applies to links that have not yet been visited."}, {name: ":matches()", browsers: ["S9"], description: "Takes a selector list as its argument. It represents an element that is represented by its argument."}, {name: ":-moz-any()", browsers: ["FF4"], description: "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."}, {name: ":-moz-any-link", browsers: ["FF1"], description: "Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."}, {name: ":-moz-broken", browsers: ["FF3"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}], description: "Non-standard. Matches elements representing broken images."}, {name: ":-moz-drag-over", browsers: ["FF1"], description: "Non-standard. Matches elements when a drag-over event applies to it."}, {name: ":-moz-first-node", browsers: ["FF1"], description: "Non-standard. Represents an element that is the first child node of some other element."}, {name: ":-moz-focusring", browsers: ["FF4"], description: "Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."}, {name: ":-moz-full-screen", browsers: ["FF9"], description: "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."}, {name: ":-moz-last-node", browsers: ["FF1"], description: "Non-standard. Represents an element that is the last child node of some other element."}, {name: ":-moz-loading", browsers: ["FF3"], description: "Non-standard. Matches elements, such as images, that haven\u2019t started loading yet."}, {name: ":-moz-only-whitespace", browsers: ["FF1"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}], description: "The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."}, {name: ":-moz-placeholder", browsers: ["FF4"], description: "Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."}, {name: ":-moz-submit-invalid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}], description: "Non-standard. Represents any submit button when the contents of the associated form are not valid."}, {name: ":-moz-suppressed", browsers: ["FF3"], description: "Non-standard. Matches elements representing images that have been blocked from loading."}, {name: ":-moz-ui-invalid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-invalid"}], description: "Non-standard. Represents any validated form element whose value isn't valid "}, {name: ":-moz-ui-valid", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-valid"}], description: "Non-standard. Represents any validated form element whose value is valid "}, {name: ":-moz-user-disabled", browsers: ["FF3"], description: "Non-standard. Matches elements representing images that have been disabled due to the user\u2019s preferences."}, {name: ":-moz-window-inactive", browsers: ["FF4"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}], description: "Non-standard. Matches elements in an inactive window."}, {name: ":-ms-fullscreen", browsers: ["IE11"], description: "Matches any element that has its fullscreen flag set."}, {name: ":-ms-input-placeholder", browsers: ["IE10"], description: "Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."}, {name: ":-ms-keyboard-active", browsers: ["IE10"], description: "Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."}, {name: ":-ms-lang()", browsers: ["E", "IE10"], description: "Represents an element that is in the language specified. Accepts a comma separated list of language tokens."}, {name: ":no-button", browsers: ["C", "S5"], description: "Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."}, {name: ":not()", browsers: ["E", "C", "FF1", "IE9", "O9.5", "S2"], description: "The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."}, {name: ":nth-child()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."}, {name: ":nth-last-child()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."}, {name: ":nth-last-of-type()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."}, {name: ":nth-of-type()", browsers: ["E", "C", "FF3.5", "IE9", "O9.5", "S3.1"], description: "Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."}, {name: ":only-child", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:only-child"}], description: "Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."}, {name: ":only-of-type", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}], description: "Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."}, {name: ":optional", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:optional"}], description: "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."}, {name: ":out-of-range", browsers: ["E13", "FF29", "S5.1", "C10", "O11"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}], description: "Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."}, {name: ":past", browsers: ["C", "O16", "S6"], description: "Represents any element that is defined to occur entirely prior to a :current element."}, {name: ":read-only", browsers: ["E13", "FF78", "S4", "C1", "O9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:read-only"}], description: "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."}, {name: ":read-write", browsers: ["E13", "FF78", "S4", "C1", "O9"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:read-write"}], description: "An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."}, {name: ":required", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:required"}], description: "A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."}, {name: ":right", browsers: ["E12", "S5.1", "C6", "IE8", "O9.2"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:right"}], description: "When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."}, {name: ":root", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:root"}], description: "Represents an element that is the root of the document. In HTML 4, this is always the HTML element."}, {name: ":scope", browsers: ["E79", "FF32", "S7", "C27", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:scope"}], description: "Represents any element that is in the contextual reference element set."}, {name: ":single-button", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."}, {name: ":start", browsers: ["C", "S5"], description: "Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."}, {name: ":target", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:target"}], description: "Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."}, {name: ":valid", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:valid"}], description: "An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."}, {name: ":vertical", browsers: ["C", "S5"], description: "Non-standard. Applies to any scrollbar pieces that have a vertical orientation."}, {name: ":visited", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:visited"}], description: "Applies once the link has been visited by the user."}, {name: ":-webkit-any()", browsers: ["C", "S5"], description: "Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."}, {name: ":-webkit-full-screen", browsers: ["C", "S6"], description: "Matches any element that has its fullscreen flag set. Standardized as :fullscreen."}, {name: ":window-inactive", browsers: ["C", "S3"], description: "Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."}, {name: ":blank", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:blank"}], description: "The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."}, {name: ":defined", status: "experimental", browsers: ["E79", "FF63", "S10", "C54", "O41"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:defined"}], description: "The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."}, {name: ":dir", browsers: ["FF49"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:dir"}], description: "The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."}, {name: ":focus-visible", status: "experimental", browsers: ["E79", "FF4", "C67", "O54"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}], description: "The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."}, {name: ":focus-within", status: "experimental", browsers: ["E79", "FF52", "S10.1", "C60", "O47"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:focus-within"}], description: "The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."}, {name: ":has", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:has"}], description: ":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."}, {name: ":is", status: "experimental", browsers: ["E79", "FF78", "S9", "C68", "O55"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:is"}], description: "The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."}, {name: ":placeholder-shown", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}], description: "The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."}, {name: ":where", status: "experimental", browsers: ["FF78", "C72"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/:where"}], description: "The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."}], pseudoElements: [{name: "::after", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::after"}], description: "Represents a styleable child pseudo-element immediately after the originating element\u2019s actual content."}, {name: "::backdrop", browsers: ["E12", "FF47", "C37", "IE11", "O24"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::backdrop"}], description: "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."}, {name: "::before", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::before"}], description: "Represents a styleable child pseudo-element immediately before the originating element\u2019s actual content."}, {name: "::content", browsers: ["C35", "O22"], description: "Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."}, {name: "::cue", browsers: ["E79", "FF55", "S6.1", "C26", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::cue"}]}, {name: "::cue()", browsers: ["C", "O16", "S6"]}, {name: "::cue-region", browsers: ["C", "O16", "S6"]}, {name: "::cue-region()", browsers: ["C", "O16", "S6"]}, {name: "::first-letter", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::first-letter"}], description: "Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."}, {name: "::first-line", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::first-line"}], description: "Describes the contents of the first formatted line of its originating element."}, {name: "::-moz-focus-inner", browsers: ["FF4"]}, {name: "::-moz-focus-outer", browsers: ["FF4"]}, {name: "::-moz-list-bullet", browsers: ["FF1"], description: "Used to style the bullet of a list element. Similar to the standardized ::marker."}, {name: "::-moz-list-number", browsers: ["FF1"], description: "Used to style the numbers of a list element. Similar to the standardized ::marker."}, {name: "::-moz-placeholder", browsers: ["FF19"], description: "Represents placeholder text in an input field"}, {name: "::-moz-progress-bar", browsers: ["FF9"], description: "Represents the bar portion of a progress bar."}, {name: "::-moz-selection", browsers: ["FF1"], description: "Represents the portion of a document that has been highlighted by the user."}, {name: "::-ms-backdrop", browsers: ["IE11"], description: "Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."}, {name: "::-ms-browse", browsers: ["E", "IE10"], description: "Represents the browse button of an input type=file control."}, {name: "::-ms-check", browsers: ["E", "IE10"], description: "Represents the check of a checkbox or radio button input control."}, {name: "::-ms-clear", browsers: ["E", "IE10"], description: "Represents the clear button of a text input control"}, {name: "::-ms-expand", browsers: ["E", "IE10"], description: "Represents the drop-down button of a select control."}, {name: "::-ms-fill", browsers: ["E", "IE10"], description: "Represents the bar portion of a progress bar."}, {name: "::-ms-fill-lower", browsers: ["E", "IE10"], description: "Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."}, {name: "::-ms-fill-upper", browsers: ["E", "IE10"], description: "Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."}, {name: "::-ms-reveal", browsers: ["E", "IE10"], description: "Represents the password reveal button of an input type=password control."}, {name: "::-ms-thumb", browsers: ["E", "IE10"], description: "Represents the portion of range input control (also known as a slider control) that the user drags."}, {name: "::-ms-ticks-after", browsers: ["E", "IE10"], description: "Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."}, {name: "::-ms-ticks-before", browsers: ["E", "IE10"], description: "Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."}, {name: "::-ms-tooltip", browsers: ["E", "IE10"], description: "Represents the tooltip of a slider (input type=range)."}, {name: "::-ms-track", browsers: ["E", "IE10"], description: "Represents the track of a slider."}, {name: "::-ms-value", browsers: ["E", "IE10"], description: "Represents the content of a text or password input control, or a select control."}, {name: "::selection", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::selection"}], description: "Represents the portion of a document that has been highlighted by the user."}, {name: "::shadow", browsers: ["C35", "O22"], description: "Matches the shadow root if an element has a shadow tree."}, {name: "::-webkit-file-upload-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-file-upload-button"}]}, {name: "::-webkit-inner-spin-button", browsers: ["E79", "S5", "C6", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]}, {name: "::-webkit-input-placeholder", browsers: ["C", "S4"]}, {name: "::-webkit-keygen-select", browsers: ["C", "O", "S6"]}, {name: "::-webkit-meter-bar", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]}, {name: "::-webkit-meter-even-less-good-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]}, {name: "::-webkit-meter-optimum-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]}, {name: "::-webkit-meter-suboptimum-value", browsers: ["E79", "S5.1", "C12", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]}, {name: "::-webkit-outer-spin-button", browsers: ["S5", "C6"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]}, {name: "::-webkit-progress-bar", browsers: ["E79", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]}, {name: "::-webkit-progress-inner-element", browsers: ["E79", "S6.1", "C23", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]}, {name: "::-webkit-progress-value", browsers: ["E79", "S6.1", "C25", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]}, {name: "::-webkit-resizer", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-button", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-corner", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-thumb", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-track", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-scrollbar-track-piece", browsers: ["E79", "S4", "C2", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]}, {name: "::-webkit-search-cancel-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]}, {name: "::-webkit-search-decoration", browsers: ["C", "S4"]}, {name: "::-webkit-search-results-button", browsers: ["E79", "S3", "C1", "O15"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]}, {name: "::-webkit-search-results-decoration", browsers: ["C", "S4"]}, {name: "::-webkit-slider-runnable-track", browsers: ["C", "O", "S6"]}, {name: "::-webkit-slider-thumb", browsers: ["C", "O", "S6"]}, {name: "::-webkit-textfield-decoration-container", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-arrow", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-arrow-clipper", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-heading", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-message", browsers: ["C", "O", "S6"]}, {name: "::-webkit-validation-bubble-text-block", browsers: ["C", "O", "S6"]}, {name: "::-moz-range-progress", status: "nonstandard", browsers: ["FF22"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}], description: 'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'}, {name: "::-moz-range-thumb", status: "nonstandard", browsers: ["FF21"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}], description: `The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.`}, {name: "::-moz-range-track", status: "nonstandard", browsers: ["FF21"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}], description: 'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'}, {name: "::-webkit-progress-inner-value", status: "nonstandard", description: "The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.\n\nIn order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element."}, {name: "::grammar-error", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}], description: "The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."}, {name: "::marker", browsers: ["E80", "FF68", "S11.1", "C80"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::marker"}], description: "The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."}, {name: "::part", status: "experimental", browsers: ["E79", "FF72", "S13.1", "C73", "O60"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::part"}], description: "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."}, {name: "::placeholder", browsers: ["E12", "FF51", "S10.1", "C57", "O44"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::placeholder"}], description: "The ::placeholder CSS pseudo-element represents the placeholder text of a form element."}, {name: "::slotted", browsers: ["E79", "FF63", "S10", "C50", "O37"], references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::slotted"}], description: "The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."}, {name: "::spelling-error", status: "experimental", references: [{name: "MDN Reference", url: "https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}], description: "The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]}, Oo = function() { function e2(e3) { this._properties = [], this._atDirectives = [], this._pseudoClasses = [], this._pseudoElements = [], this.addData(e3); } @@ -21427,35 +21427,35 @@ typeof i2.name == "string" && this._properties.push(i2); } if (Array.isArray(e3.atDirectives)) - for (var o2 = 0, r2 = e3.atDirectives; o2 < r2.length; o2++) { - Ar(i2 = r2[o2]) && this._atDirectives.push(i2); + for (var r2 = 0, o2 = e3.atDirectives; r2 < o2.length; r2++) { + Ao(i2 = o2[r2]) && this._atDirectives.push(i2); } if (Array.isArray(e3.pseudoClasses)) for (var s2 = 0, a2 = e3.pseudoClasses; s2 < a2.length; s2++) { - Rr(i2 = a2[s2]) && this._pseudoClasses.push(i2); + Ro(i2 = a2[s2]) && this._pseudoClasses.push(i2); } if (Array.isArray(e3.pseudoElements)) for (var l2 = 0, c2 = e3.pseudoElements; l2 < c2.length; l2++) { - Mr(i2 = c2[l2]) && this._pseudoElements.push(i2); + Mo(i2 = c2[l2]) && this._pseudoElements.push(i2); } }, e2; }(); - function Ar(e2) { + function Ao(e2) { return typeof e2.name == "string"; } - function Rr(e2) { + function Ro(e2) { return typeof e2.name == "string"; } - function Mr(e2) { + function Mo(e2) { return typeof e2.name == "string"; } - var Pr = function() { + var Po = function() { function e2(e3) { this.dataProviders = [], this._propertySet = {}, this._atDirectiveSet = {}, this._pseudoClassSet = {}, this._pseudoElementSet = {}, this._properties = [], this._atDirectives = [], this._pseudoClasses = [], this._pseudoElements = [], this.setDataProviders((e3 == null ? void 0 : e3.useDefaultDataProvider) !== false, (e3 == null ? void 0 : e3.customDataProviders) || []); } return e2.prototype.setDataProviders = function(e3, t2) { var n2; - this.dataProviders = [], e3 && this.dataProviders.push(new Dr(Or)), (n2 = this.dataProviders).push.apply(n2, t2), this.collectData(); + this.dataProviders = [], e3 && this.dataProviders.push(new Oo(Do)), (n2 = this.dataProviders).push.apply(n2, t2), this.collectData(); }, e2.prototype.collectData = function() { var e3 = this; this._propertySet = {}, this._atDirectiveSet = {}, this._pseudoClassSet = {}, this._pseudoElementSet = {}, this.dataProviders.forEach(function(t2) { @@ -21491,22 +21491,22 @@ return this.isKnownProperty(e3) && (!this._propertySet[e3.toLowerCase()].status || this._propertySet[e3.toLowerCase()].status === "standard"); }, e2; }(); - function Fr(e2, t2, n2) { + function Fo(e2, t2, n2) { return t2.map(function(t3) { for (var i2 = function(t4) { - var i3 = e2.offsetAt(t4), o3 = n2.findChildAtOffset(i3, true); - if (!o3) + var i3 = e2.offsetAt(t4), r3 = n2.findChildAtOffset(i3, true); + if (!r3) return []; - var r3 = []; - for (; o3; ) - o3.parent && o3.offset === o3.parent.offset && o3.end === o3.parent.end || (o3.type === J.Declarations && i3 > o3.offset && i3 < o3.end && r3.push([o3.offset + 1, o3.end - 1]), r3.push([o3.offset, o3.end])), o3 = o3.parent; - return r3; - }(t3), o2 = void 0, r2 = i2.length - 1; r2 >= 0; r2--) - o2 = ai.create(ln.create(e2.positionAt(i2[r2][0]), e2.positionAt(i2[r2][1])), o2); - return o2 || (o2 = ai.create(ln.create(t3, t3))), o2; + var o3 = []; + for (; r3; ) + r3.parent && r3.offset === r3.parent.offset && r3.end === r3.parent.end || (r3.type === J.Declarations && i3 > r3.offset && i3 < r3.end && o3.push([r3.offset + 1, r3.end - 1]), o3.push([r3.offset, r3.end])), r3 = r3.parent; + return o3; + }(t3), r2 = void 0, o2 = i2.length - 1; o2 >= 0; o2--) + r2 = ai.create(ln.create(e2.positionAt(i2[o2][0]), e2.positionAt(i2[o2][1])), r2); + return r2 || (r2 = ai.create(ln.create(t3, t3))), r2; }); } - var Wr = function() { + var Wo = function() { var e2 = function(t2, n2) { return (e2 = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e3, t3) { e3.__proto__ = t3; @@ -21521,108 +21521,108 @@ } e2(t2, n2), t2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2()); }; - }(), zr = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }(), zo = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); - }, Br = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + }, Bo = function(e2, t2) { + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } - }, jr = function(e2) { + }, jo = function(e2) { function t2(t3) { return e2.call(this, t3) || this; } - return Wr(t2, e2), t2.prototype.isRawStringDocumentLinkNode = function(t3) { + return Wo(t2, e2), t2.prototype.isRawStringDocumentLinkNode = function(t3) { return e2.prototype.isRawStringDocumentLinkNode.call(this, t3) || t3.type === J.Use || t3.type === J.Forward; }, t2.prototype.resolveRelativeReference = function(t3, n2, i2) { - return zr(this, void 0, void 0, function() { - var o2, r2, s2, a2; - return Br(this, function(l2) { + return zo(this, void 0, void 0, function() { + var r2, o2, s2, a2; + return Bo(this, function(l2) { switch (l2.label) { case 0: return Y(t3, "sass:") ? [2, void 0] : [4, e2.prototype.resolveRelativeReference.call(this, t3, n2, i2)]; case 1: - if (o2 = l2.sent(), !this.fileSystemProvider || !o2 || function(e3) { + if (r2 = l2.sent(), !this.fileSystemProvider || !r2 || function(e3) { for (var t4 = e3.length - 1; t4 >= 0; t4--) { var n3 = e3.charCodeAt(t4); if (n3 === yi) { @@ -21634,23 +21634,23 @@ break; } return ""; - }(o2).length !== 0) + }(r2).length !== 0) return [3, 8]; l2.label = 2; case 2: - if (l2.trys.push([2, 7, , 8]), r2 = vi.a.parse(o2), !(s2 = function(e3) { + if (l2.trys.push([2, 7, , 8]), o2 = vi.a.parse(r2), !(s2 = function(e3) { if (e3.path !== "" && !e3.path.endsWith(".scss") && !e3.path.endsWith(".css")) { if (e3.path.endsWith("/")) return [e3.with({path: e3.path + "index.scss"}).toString(), e3.with({path: e3.path + "_index.scss"}).toString()]; var t4 = e3.path.split("/"), n3 = t4[t4.length - 1], i3 = e3.path.slice(0, -n3.length); if (n3.startsWith("_")) return e3.path.endsWith(".scss") ? void 0 : [e3.with({path: e3.path + ".scss"}).toString()]; - var o3 = n3 + ".scss", r3 = function(t5) { + var r3 = n3 + ".scss", o3 = function(t5) { return e3.with({path: i3 + t5}).toString(); }; - return [r3(o3), r3("_" + o3), r3(o3.slice(0, -5) + "/index.scss"), r3(o3.slice(0, -5) + "/_index.scss"), r3(o3.slice(0, -5) + ".css")]; + return [o3(r3), o3("_" + r3), o3(r3.slice(0, -5) + "/index.scss"), o3(r3.slice(0, -5) + "/_index.scss"), o3(r3.slice(0, -5) + ".css")]; } - }(r2))) + }(o2))) return [3, 6]; a2 = 0, l2.label = 3; case 3: @@ -21666,56 +21666,56 @@ case 7: return l2.sent(), [3, 8]; case 8: - return [2, o2]; + return [2, r2]; } }); }); }, t2; - }(ao); - function Vr(e2, t2, n2, i2, o2, r2, s2) { + }(ar); + function Vo(e2, t2, n2, i2, r2, o2, s2) { return {configure: function(e3) { - r2.configure(e3), t2.configure(e3); - }, setDataProviders: s2.setDataProviders.bind(s2), doValidation: r2.doValidation.bind(r2), parseStylesheet: e2.parseStylesheet.bind(e2), doComplete: t2.doComplete.bind(t2), doComplete2: t2.doComplete2.bind(t2), setCompletionParticipants: t2.setCompletionParticipants.bind(t2), doHover: n2.doHover.bind(n2), findDefinition: i2.findDefinition.bind(i2), findReferences: i2.findReferences.bind(i2), findDocumentHighlights: i2.findDocumentHighlights.bind(i2), findDocumentLinks: i2.findDocumentLinks.bind(i2), findDocumentLinks2: i2.findDocumentLinks2.bind(i2), findDocumentSymbols: i2.findDocumentSymbols.bind(i2), doCodeActions: o2.doCodeActions.bind(o2), doCodeActions2: o2.doCodeActions2.bind(o2), findColorSymbols: function(e3, t3) { + o2.configure(e3), t2.configure(e3); + }, setDataProviders: s2.setDataProviders.bind(s2), doValidation: o2.doValidation.bind(o2), parseStylesheet: e2.parseStylesheet.bind(e2), doComplete: t2.doComplete.bind(t2), doComplete2: t2.doComplete2.bind(t2), setCompletionParticipants: t2.setCompletionParticipants.bind(t2), doHover: n2.doHover.bind(n2), findDefinition: i2.findDefinition.bind(i2), findReferences: i2.findReferences.bind(i2), findDocumentHighlights: i2.findDocumentHighlights.bind(i2), findDocumentLinks: i2.findDocumentLinks.bind(i2), findDocumentLinks2: i2.findDocumentLinks2.bind(i2), findDocumentSymbols: i2.findDocumentSymbols.bind(i2), doCodeActions: r2.doCodeActions.bind(r2), doCodeActions2: r2.doCodeActions2.bind(r2), findColorSymbols: function(e3, t3) { return i2.findDocumentColors(e3, t3).map(function(e4) { return e4.range; }); - }, findDocumentColors: i2.findDocumentColors.bind(i2), getColorPresentations: i2.getColorPresentations.bind(i2), doRename: i2.doRename.bind(i2), getFoldingRanges: Nr, getSelectionRanges: Fr}; + }, findDocumentColors: i2.findDocumentColors.bind(i2), getColorPresentations: i2.getColorPresentations.bind(i2), doRename: i2.doRename.bind(i2), getFoldingRanges: No, getSelectionRanges: Fo}; } - var Ur = {}; - function Hr(e2) { - e2 === void 0 && (e2 = Ur); - var t2 = new Pr(e2); - return Vr(new on(), new Wi(null, e2, t2), new io(e2 && e2.clientCapabilities, t2), new ao(e2 && e2.fileSystemProvider), new Co(t2), new Po(t2), t2); + var Uo = {}; + function Ho(e2) { + e2 === void 0 && (e2 = Uo); + var t2 = new Po(e2); + return Vo(new rn(), new Wi(null, e2, t2), new ir(e2 && e2.clientCapabilities, t2), new ar(e2 && e2.fileSystemProvider), new yr(t2), new Mr(t2), t2); } - function qr(e2) { - e2 === void 0 && (e2 = Ur); - var t2 = new Pr(e2); - return Vr(new cr(), new ur(e2, t2), new io(e2 && e2.clientCapabilities, t2), new jr(e2 && e2.fileSystemProvider), new Co(t2), new Po(t2), t2); + function qo(e2) { + e2 === void 0 && (e2 = Uo); + var t2 = new Po(e2); + return Vo(new lo(), new uo(e2, t2), new ir(e2 && e2.clientCapabilities, t2), new jo(e2 && e2.fileSystemProvider), new yr(t2), new Mr(t2), t2); } - function $r(e2) { - e2 === void 0 && (e2 = Ur); - var t2 = new Pr(e2); - return Vr(new kr(), new Lr(e2, t2), new io(e2 && e2.clientCapabilities, t2), new ao(e2 && e2.fileSystemProvider), new Co(t2), new Po(t2), t2); + function $o(e2) { + e2 === void 0 && (e2 = Uo); + var t2 = new Po(e2); + return Vo(new ko(), new Lo(e2, t2), new ir(e2 && e2.clientCapabilities, t2), new ar(e2 && e2.fileSystemProvider), new yr(t2), new Mr(t2), t2); } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }), n.d(t, "b", function() { return s; }); - var i = n(68), o = n(18); + var i = n(68), r = n(18); i.a; - const r = Object(o.c)("notificationService"); + const o = Object(r.c)("notificationService"); class s { } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("keybindingService"); + const r = Object(i.c)("keybindingService"); }, function(e, t, n) { "use strict"; n.d(t, "i", function() { @@ -21741,9 +21741,9 @@ }), n.d(t, "a", function() { return w; }); - var i = n(179), o = n(42), r = n(23), s = n(8), a = n(45), l = n(11); + var i = n(179), r = n(42), o = n(23), s = n(8), a = n(45), l = n(11); function c(e2) { - return Object(r.b)(e2, true); + return Object(o.b)(e2, true); } const d = new class { constructor(e2) { @@ -21759,48 +21759,48 @@ return e2.with({path: this._ignorePathCasing(e2) ? e2.path.toLowerCase() : void 0, fragment: t2 ? null : void 0}).toString(); } joinPath(e2, ...t2) { - return r.a.joinPath(e2, ...t2); + return o.a.joinPath(e2, ...t2); } basenameOrAuthority(e2) { return p(e2) || e2.authority; } basename(e2) { - return o.e.basename(e2.path); + return r.e.basename(e2.path); } dirname(e2) { if (e2.path.length === 0) return e2; let t2; - return e2.scheme === a.b.file ? t2 = r.a.file(o.b(c(e2))).path : (t2 = o.e.dirname(e2.path), e2.authority && t2.length && t2.charCodeAt(0) !== 47 && (console.error(`dirname("${e2.toString})) resulted in a relative path`), t2 = "/")), e2.with({path: t2}); + return e2.scheme === a.b.file ? t2 = o.a.file(r.b(c(e2))).path : (t2 = r.e.dirname(e2.path), e2.authority && t2.length && t2.charCodeAt(0) !== 47 && (console.error(`dirname("${e2.toString})) resulted in a relative path`), t2 = "/")), e2.with({path: t2}); } normalizePath(e2) { if (!e2.path.length) return e2; let t2; - return t2 = e2.scheme === a.b.file ? r.a.file(o.d(c(e2))).path : o.e.normalize(e2.path), e2.with({path: t2}); + return t2 = e2.scheme === a.b.file ? o.a.file(r.d(c(e2))).path : r.e.normalize(e2.path), e2.with({path: t2}); } relativePath(e2, t2) { if (e2.scheme !== t2.scheme || !v(e2.authority, t2.authority)) return; if (e2.scheme === a.b.file) { - const n3 = o.f(c(e2), c(t2)); + const n3 = r.f(c(e2), c(t2)); return l.i ? i.b(n3) : n3; } - let n2 = e2.path || "/", r2 = t2.path || "/"; + let n2 = e2.path || "/", o2 = t2.path || "/"; if (this._ignorePathCasing(e2)) { let e3 = 0; - for (const t3 = Math.min(n2.length, r2.length); e3 < t3 && (n2.charCodeAt(e3) === r2.charCodeAt(e3) || n2.charAt(e3).toLowerCase() === r2.charAt(e3).toLowerCase()); e3++) + for (const t3 = Math.min(n2.length, o2.length); e3 < t3 && (n2.charCodeAt(e3) === o2.charCodeAt(e3) || n2.charAt(e3).toLowerCase() === o2.charAt(e3).toLowerCase()); e3++) ; - n2 = r2.substr(0, e3) + n2.substr(e3); + n2 = o2.substr(0, e3) + n2.substr(e3); } - return o.e.relative(n2, r2); + return r.e.relative(n2, o2); } resolvePath(e2, t2) { if (e2.scheme === a.b.file) { - const n2 = r.a.file(o.g(c(e2), t2)); + const n2 = o.a.file(r.g(c(e2), t2)); return e2.with({authority: n2.authority, path: n2.path}); } - return t2.indexOf("/") === -1 && (t2 = i.b(t2), /^[a-zA-Z]:(\/|$)/.test(t2) && (t2 = "/" + t2)), e2.with({path: o.e.resolve(e2.path, t2)}); + return t2.indexOf("/") === -1 && (t2 = i.b(t2), /^[a-zA-Z]:(\/|$)/.test(t2) && (t2 = "/" + t2)), e2.with({path: r.e.resolve(e2.path, t2)}); } isEqualAuthority(e2, t2) { return e2 === t2 || Object(s.t)(e2, t2); @@ -21837,7 +21837,7 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); class i { constructor(e2) { @@ -21845,7 +21845,7 @@ } } i.Undefined = new i(void 0); - class o { + class r { constructor() { this._first = i.Undefined, this._last = i.Undefined, this._size = 0; } @@ -21876,9 +21876,9 @@ this._first = n2, n2.next = e3, e3.prev = n2; } this._size += 1; - let o2 = false; + let r2 = false; return () => { - o2 || (o2 = true, this._remove(n2)); + r2 || (r2 = true, this._remove(n2)); }; } shift() { @@ -21930,8 +21930,8 @@ }), n.d(t, "e", function() { return u; }); - var i = n(56), o = n(18), r = n(128); - const s = Object(o.c)("configurationService"); + var i = n(56), r = n(18), o = n(128); + const s = Object(r.c)("configurationService"); function a(e2, t2) { const n2 = Object.create(null); for (let i2 in e2) @@ -21939,29 +21939,29 @@ return n2; } function l(e2, t2, n2, i2) { - const o2 = t2.split("."), r2 = o2.pop(); + const r2 = t2.split("."), o2 = r2.pop(); let s2 = e2; - for (let e3 = 0; e3 < o2.length; e3++) { - let n3 = o2[e3], r3 = s2[n3]; - switch (typeof r3) { + for (let e3 = 0; e3 < r2.length; e3++) { + let n3 = r2[e3], o3 = s2[n3]; + switch (typeof o3) { case "undefined": - r3 = s2[n3] = Object.create(null); + o3 = s2[n3] = Object.create(null); break; case "object": break; default: - return void i2(`Ignoring ${t2} as ${o2.slice(0, e3 + 1).join(".")} is ${JSON.stringify(r3)}`); + return void i2(`Ignoring ${t2} as ${r2.slice(0, e3 + 1).join(".")} is ${JSON.stringify(o3)}`); } - s2 = r3; + s2 = o3; } if (typeof s2 == "object" && s2 !== null) try { - s2[r2] = n2; + s2[o2] = n2; } catch (e3) { - i2(`Ignoring ${t2} as ${o2.join(".")} is ${JSON.stringify(s2)}`); + i2(`Ignoring ${t2} as ${r2.join(".")} is ${JSON.stringify(s2)}`); } else - i2(`Ignoring ${t2} as ${o2.join(".")} is ${JSON.stringify(s2)}`); + i2(`Ignoring ${t2} as ${r2.join(".")} is ${JSON.stringify(s2)}`); } function c(e2, t2) { !function e3(t3, n2) { @@ -21969,8 +21969,8 @@ if (n2.length === 0) return void delete t3[i2]; if (Object.keys(t3).indexOf(i2) !== -1) { - const o2 = t3[i2]; - typeof o2 != "object" || Array.isArray(o2) || (e3(o2, n2), Object.keys(o2).length === 0 && delete t3[i2]); + const r2 = t3[i2]; + typeof r2 != "object" || Array.isArray(r2) || (e3(r2, n2), Object.keys(r2).length === 0 && delete t3[i2]); } }(e2, t2.split(".")); } @@ -21987,11 +21987,11 @@ return i2 === void 0 ? n2 : i2; } function h() { - const e2 = i.a.as(r.a.Configuration).getConfigurationProperties(); + const e2 = i.a.as(o.a.Configuration).getConfigurationProperties(); return Object.keys(e2); } function u() { - const e2 = Object.create(null), t2 = i.a.as(r.a.Configuration).getConfigurationProperties(); + const e2 = Object.create(null), t2 = i.a.as(o.a.Configuration).getConfigurationProperties(); for (let n2 in t2) { l(e2, n2, t2[n2].default, (e3) => console.error("Conflict in default settings: " + e3)); } @@ -22002,9 +22002,9 @@ n.d(t, "a", function() { return i; }), n.d(t, "c", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }), n.d(t, "e", function() { return s; }), n.d(t, "d", function() { @@ -22018,14 +22018,14 @@ }), n.d(t, "g", function() { return h; }); - var i, o, r, s, a, l, c, d, h, u = n(0); + var i, r, o, s, a, l, c, d, h, u = n(0); !function(e2) { e2.noSelection = u.a("noSelection", "No selection"), e2.singleSelectionRange = u.a("singleSelectionRange", "Line {0}, Column {1} ({2} selected)"), e2.singleSelection = u.a("singleSelection", "Line {0}, Column {1}"), e2.multiSelectionRange = u.a("multiSelectionRange", "{0} selections ({1} characters selected)"), e2.multiSelection = u.a("multiSelection", "{0} selections"), e2.emergencyConfOn = u.a("emergencyConfOn", "Now changing the setting `accessibilitySupport` to 'on'."), e2.openingDocs = u.a("openingDocs", "Now opening the Editor Accessibility documentation page."), e2.readonlyDiffEditor = u.a("readonlyDiffEditor", " in a read-only pane of a diff editor."), e2.editableDiffEditor = u.a("editableDiffEditor", " in a pane of a diff editor."), e2.readonlyEditor = u.a("readonlyEditor", " in a read-only code editor"), e2.editableEditor = u.a("editableEditor", " in a code editor"), e2.changeConfigToOnMac = u.a("changeConfigToOnMac", "To configure the editor to be optimized for usage with a Screen Reader press Command+E now."), e2.changeConfigToOnWinLinux = u.a("changeConfigToOnWinLinux", "To configure the editor to be optimized for usage with a Screen Reader press Control+E now."), e2.auto_on = u.a("auto_on", "The editor is configured to be optimized for usage with a Screen Reader."), e2.auto_off = u.a("auto_off", "The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."), e2.tabFocusModeOnMsg = u.a("tabFocusModeOnMsg", "Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."), e2.tabFocusModeOnMsgNoKb = u.a("tabFocusModeOnMsgNoKb", "Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."), e2.tabFocusModeOffMsg = u.a("tabFocusModeOffMsg", "Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."), e2.tabFocusModeOffMsgNoKb = u.a("tabFocusModeOffMsgNoKb", "Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."), e2.openDocMac = u.a("openDocMac", "Press Command+H now to open a browser window with more information related to editor accessibility."), e2.openDocWinLinux = u.a("openDocWinLinux", "Press Control+H now to open a browser window with more information related to editor accessibility."), e2.outroMsg = u.a("outroMsg", "You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."), e2.showAccessibilityHelpAction = u.a("showAccessibilityHelpAction", "Show Accessibility Help"); }(i || (i = {})), function(e2) { e2.inspectTokensAction = u.a("inspectTokens", "Developer: Inspect Tokens"); - }(o || (o = {})), function(e2) { - e2.gotoLineActionLabel = u.a("gotoLineActionLabel", "Go to Line/Column..."); }(r || (r = {})), function(e2) { + e2.gotoLineActionLabel = u.a("gotoLineActionLabel", "Go to Line/Column..."); + }(o || (o = {})), function(e2) { e2.helpQuickAccessActionLabel = u.a("helpQuickAccess", "Show all Quick Access Providers"); }(s || (s = {})), function(e2) { e2.quickCommandActionLabel = u.a("quickCommandActionLabel", "Command Palette"), e2.quickCommandHelp = u.a("quickCommandActionHelp", "Show And Run Commands"); @@ -22041,15 +22041,15 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(14), o = n(174); - const r = new class { + var i = n(14), r = n(174); + const o = new class { constructor() { this.data = new Map(); } add(e2, t2) { - o.a(i.j(e2)), o.a(i.i(t2)), o.a(!this.data.has(e2), "There is already an extension with this id"), this.data.set(e2, t2); + r.a(i.j(e2)), r.a(i.i(t2)), r.a(!this.data.has(e2), "There is already an extension with this id"), this.data.set(e2, t2); } as(e2) { return this.data.get(e2) || null; @@ -22090,23 +22090,23 @@ }), n.d(t, "p", function() { return N; }), n.d(t, "s", function() { - return O; - }), n.d(t, "q", function() { return D; + }), n.d(t, "q", function() { + return O; }), n.d(t, "t", function() { return A; }), n.d(t, "r", function() { return R; }); - var i = n(0), o = n(16), r = n(5), s = n(19); - const a = Object(r.gc)("editor.lineHighlightBackground", {dark: null, light: null, hc: null}, i.a("lineHighlight", "Background color for the highlight of line at the cursor position.")), l = Object(r.gc)("editor.lineHighlightBorder", {dark: "#282828", light: "#eeeeee", hc: "#f38518"}, i.a("lineHighlightBorderBox", "Background color for the border around the line at the cursor position.")), c = Object(r.gc)("editor.rangeHighlightBackground", {dark: "#ffffff0b", light: "#fdff0033", hc: null}, i.a("rangeHighlight", "Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."), true), d = Object(r.gc)("editor.rangeHighlightBorder", {dark: null, light: null, hc: r.b}, i.a("rangeHighlightBorder", "Background color of the border around highlighted ranges."), true), h = Object(r.gc)("editor.symbolHighlightBackground", {dark: r.x, light: r.x, hc: null}, i.a("symbolHighlight", "Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."), true), u = Object(r.gc)("editor.symbolHighlightBorder", {dark: null, light: null, hc: r.b}, i.a("symbolHighlightBorder", "Background color of the border around highlighted symbols."), true), p = Object(r.gc)("editorCursor.foreground", {dark: "#AEAFAD", light: o.a.black, hc: o.a.white}, i.a("caret", "Color of the editor cursor.")), m = Object(r.gc)("editorCursor.background", null, i.a("editorCursorBackground", "The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")), g = Object(r.gc)("editorWhitespace.foreground", {dark: "#e3e4e229", light: "#33333333", hc: "#e3e4e229"}, i.a("editorWhitespaces", "Color of whitespace characters in the editor.")), f = Object(r.gc)("editorIndentGuide.background", {dark: g, light: g, hc: g}, i.a("editorIndentGuides", "Color of the editor indentation guides.")), b = Object(r.gc)("editorIndentGuide.activeBackground", {dark: g, light: g, hc: g}, i.a("editorActiveIndentGuide", "Color of the active editor indentation guides.")), _ = Object(r.gc)("editorLineNumber.foreground", {dark: "#858585", light: "#237893", hc: o.a.white}, i.a("editorLineNumbers", "Color of editor line numbers.")), v = Object(r.gc)("editorActiveLineNumber.foreground", {dark: "#c6c6c6", light: "#0B216F", hc: r.b}, i.a("editorActiveLineNumber", "Color of editor active line number"), false, i.a("deprecatedEditorActiveLineNumber", "Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")), w = Object(r.gc)("editorLineNumber.activeForeground", {dark: v, light: v, hc: v}, i.a("editorActiveLineNumber", "Color of editor active line number")), y = Object(r.gc)("editorRuler.foreground", {dark: "#5A5A5A", light: o.a.lightgrey, hc: o.a.white}, i.a("editorRuler", "Color of the editor rulers.")), C = Object(r.gc)("editorCodeLens.foreground", {dark: "#999999", light: "#999999", hc: "#999999"}, i.a("editorCodeLensForeground", "Foreground color of editor CodeLens")), x = Object(r.gc)("editorBracketMatch.background", {dark: "#0064001a", light: "#0064001a", hc: "#0064001a"}, i.a("editorBracketMatchBackground", "Background color behind matching brackets")), S = Object(r.gc)("editorBracketMatch.border", {dark: "#888", light: "#B9B9B9", hc: r.h}, i.a("editorBracketMatchBorder", "Color for matching brackets boxes")), k = Object(r.gc)("editorOverviewRuler.border", {dark: "#7f7f7f4d", light: "#7f7f7f4d", hc: "#7f7f7f4d"}, i.a("editorOverviewRulerBorder", "Color of the overview ruler border.")), E = Object(r.gc)("editorOverviewRuler.background", null, i.a("editorOverviewRulerBackground", "Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")), T = Object(r.gc)("editorGutter.background", {dark: r.s, light: r.s, hc: r.s}, i.a("editorGutter", "Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")), L = Object(r.gc)("editorUnnecessaryCode.border", {dark: null, light: null, hc: o.a.fromHex("#fff").transparent(0.8)}, i.a("unnecessaryCodeBorder", "Border color of unnecessary (unused) source code in the editor.")), N = Object(r.gc)("editorUnnecessaryCode.opacity", {dark: o.a.fromHex("#000a"), light: o.a.fromHex("#0007"), hc: null}, i.a("unnecessaryCodeOpacity", `Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)), I = new o.a(new o.c(0, 122, 204, 0.6)), O = Object(r.gc)("editorOverviewRuler.rangeHighlightForeground", {dark: I, light: I, hc: I}, i.a("overviewRulerRangeHighlight", "Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."), true), D = Object(r.gc)("editorOverviewRuler.errorForeground", {dark: new o.a(new o.c(255, 18, 18, 0.7)), light: new o.a(new o.c(255, 18, 18, 0.7)), hc: new o.a(new o.c(255, 50, 50, 1))}, i.a("overviewRuleError", "Overview ruler marker color for errors.")), A = Object(r.gc)("editorOverviewRuler.warningForeground", {dark: r.T, light: r.T, hc: r.S}, i.a("overviewRuleWarning", "Overview ruler marker color for warnings.")), R = Object(r.gc)("editorOverviewRuler.infoForeground", {dark: r.L, light: r.L, hc: r.K}, i.a("overviewRuleInfo", "Overview ruler marker color for infos.")); + var i = n(0), r = n(15), o = n(5), s = n(19); + const a = Object(o.gc)("editor.lineHighlightBackground", {dark: null, light: null, hc: null}, i.a("lineHighlight", "Background color for the highlight of line at the cursor position.")), l = Object(o.gc)("editor.lineHighlightBorder", {dark: "#282828", light: "#eeeeee", hc: "#f38518"}, i.a("lineHighlightBorderBox", "Background color for the border around the line at the cursor position.")), c = Object(o.gc)("editor.rangeHighlightBackground", {dark: "#ffffff0b", light: "#fdff0033", hc: null}, i.a("rangeHighlight", "Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."), true), d = Object(o.gc)("editor.rangeHighlightBorder", {dark: null, light: null, hc: o.b}, i.a("rangeHighlightBorder", "Background color of the border around highlighted ranges."), true), h = Object(o.gc)("editor.symbolHighlightBackground", {dark: o.x, light: o.x, hc: null}, i.a("symbolHighlight", "Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."), true), u = Object(o.gc)("editor.symbolHighlightBorder", {dark: null, light: null, hc: o.b}, i.a("symbolHighlightBorder", "Background color of the border around highlighted symbols."), true), p = Object(o.gc)("editorCursor.foreground", {dark: "#AEAFAD", light: r.a.black, hc: r.a.white}, i.a("caret", "Color of the editor cursor.")), m = Object(o.gc)("editorCursor.background", null, i.a("editorCursorBackground", "The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")), g = Object(o.gc)("editorWhitespace.foreground", {dark: "#e3e4e229", light: "#33333333", hc: "#e3e4e229"}, i.a("editorWhitespaces", "Color of whitespace characters in the editor.")), f = Object(o.gc)("editorIndentGuide.background", {dark: g, light: g, hc: g}, i.a("editorIndentGuides", "Color of the editor indentation guides.")), b = Object(o.gc)("editorIndentGuide.activeBackground", {dark: g, light: g, hc: g}, i.a("editorActiveIndentGuide", "Color of the active editor indentation guides.")), _ = Object(o.gc)("editorLineNumber.foreground", {dark: "#858585", light: "#237893", hc: r.a.white}, i.a("editorLineNumbers", "Color of editor line numbers.")), v = Object(o.gc)("editorActiveLineNumber.foreground", {dark: "#c6c6c6", light: "#0B216F", hc: o.b}, i.a("editorActiveLineNumber", "Color of editor active line number"), false, i.a("deprecatedEditorActiveLineNumber", "Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")), w = Object(o.gc)("editorLineNumber.activeForeground", {dark: v, light: v, hc: v}, i.a("editorActiveLineNumber", "Color of editor active line number")), y = Object(o.gc)("editorRuler.foreground", {dark: "#5A5A5A", light: r.a.lightgrey, hc: r.a.white}, i.a("editorRuler", "Color of the editor rulers.")), C = Object(o.gc)("editorCodeLens.foreground", {dark: "#999999", light: "#999999", hc: "#999999"}, i.a("editorCodeLensForeground", "Foreground color of editor CodeLens")), x = Object(o.gc)("editorBracketMatch.background", {dark: "#0064001a", light: "#0064001a", hc: "#0064001a"}, i.a("editorBracketMatchBackground", "Background color behind matching brackets")), S = Object(o.gc)("editorBracketMatch.border", {dark: "#888", light: "#B9B9B9", hc: o.h}, i.a("editorBracketMatchBorder", "Color for matching brackets boxes")), k = Object(o.gc)("editorOverviewRuler.border", {dark: "#7f7f7f4d", light: "#7f7f7f4d", hc: "#7f7f7f4d"}, i.a("editorOverviewRulerBorder", "Color of the overview ruler border.")), E = Object(o.gc)("editorOverviewRuler.background", null, i.a("editorOverviewRulerBackground", "Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")), T = Object(o.gc)("editorGutter.background", {dark: o.s, light: o.s, hc: o.s}, i.a("editorGutter", "Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")), L = Object(o.gc)("editorUnnecessaryCode.border", {dark: null, light: null, hc: r.a.fromHex("#fff").transparent(0.8)}, i.a("unnecessaryCodeBorder", "Border color of unnecessary (unused) source code in the editor.")), N = Object(o.gc)("editorUnnecessaryCode.opacity", {dark: r.a.fromHex("#000a"), light: r.a.fromHex("#0007"), hc: null}, i.a("unnecessaryCodeOpacity", `Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)), I = new r.a(new r.c(0, 122, 204, 0.6)), D = Object(o.gc)("editorOverviewRuler.rangeHighlightForeground", {dark: I, light: I, hc: I}, i.a("overviewRulerRangeHighlight", "Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."), true), O = Object(o.gc)("editorOverviewRuler.errorForeground", {dark: new r.a(new r.c(255, 18, 18, 0.7)), light: new r.a(new r.c(255, 18, 18, 0.7)), hc: new r.a(new r.c(255, 50, 50, 1))}, i.a("overviewRuleError", "Overview ruler marker color for errors.")), A = Object(o.gc)("editorOverviewRuler.warningForeground", {dark: o.T, light: o.T, hc: o.S}, i.a("overviewRuleWarning", "Overview ruler marker color for warnings.")), R = Object(o.gc)("editorOverviewRuler.infoForeground", {dark: o.L, light: o.L, hc: o.K}, i.a("overviewRuleInfo", "Overview ruler marker color for infos.")); Object(s.g)((e2, t2) => { - const n2 = e2.getColor(r.s); + const n2 = e2.getColor(o.s); n2 && t2.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${n2}; }`); - const i2 = e2.getColor(r.B); + const i2 = e2.getColor(o.B); i2 && t2.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i2}; }`); - const o2 = e2.getColor(T); - o2 && t2.addRule(`.monaco-editor .margin { background-color: ${o2}; }`); + const r2 = e2.getColor(T); + r2 && t2.addRule(`.monaco-editor .margin { background-color: ${r2}; }`); const s2 = e2.getColor(c); s2 && t2.addRule(`.monaco-editor .rangeHighlight { background-color: ${s2}; }`); const a2 = e2.getColor(d); @@ -22120,13 +22120,13 @@ }); }, function(e, t, n) { "use strict"; - var i, o; + var i, r; n.d(t, "d", function() { return i; }), n.d(t, "c", function() { - return o; - }), n.d(t, "e", function() { return r; + }), n.d(t, "e", function() { + return o; }), n.d(t, "b", function() { return s; }), n.d(t, "f", function() { @@ -22137,8 +22137,8 @@ e2[e2.Left = 1] = "Left", e2[e2.Center = 2] = "Center", e2[e2.Right = 4] = "Right", e2[e2.Full = 7] = "Full"; }(i || (i = {})), function(e2) { e2[e2.Inline = 1] = "Inline", e2[e2.Gutter = 2] = "Gutter"; - }(o || (o = {})); - class r { + }(r || (r = {})); + class o { constructor(e2) { this.tabSize = Math.max(1, 0 | e2.tabSize), this.indentSize = 0 | e2.tabSize, this.insertSpaces = Boolean(e2.insertSpaces), this.defaultEOL = 0 | e2.defaultEOL, this.trimAutoWhitespace = Boolean(e2.trimAutoWhitespace); } @@ -22155,8 +22155,8 @@ } } class a { - constructor(e2, t2, n2, i2, o2, r2) { - this.identifier = e2, this.range = t2, this.text = n2, this.forceMoveMarkers = i2, this.isAutoWhitespaceEdit = o2, this._isTracked = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.identifier = e2, this.range = t2, this.text = n2, this.forceMoveMarkers = i2, this.isAutoWhitespaceEdit = r2, this._isTracked = o2; } } class l { @@ -22191,25 +22191,25 @@ }), n.d(t, "d", function() { return c; }); - var i = n(2), o = n(6), r = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var i = n(2), r = n(6), o = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -22217,8 +22217,8 @@ }); }; class s extends i.a { - constructor(e2, t2 = "", n2 = "", i2 = true, r2) { - super(), this._onDidChange = this._register(new o.a()), this.onDidChange = this._onDidChange.event, this._enabled = true, this._checked = false, this._id = e2, this._label = t2, this._cssClass = n2, this._enabled = i2, this._actionCallback = r2; + constructor(e2, t2 = "", n2 = "", i2 = true, o2) { + super(), this._onDidChange = this._register(new r.a()), this.onDidChange = this._onDidChange.event, this._enabled = true, this._checked = false, this._id = e2, this._label = t2, this._cssClass = n2, this._enabled = i2, this._actionCallback = o2; } get id() { return this._id; @@ -22274,10 +22274,10 @@ } class a extends i.a { constructor() { - super(...arguments), this._onDidBeforeRun = this._register(new o.a()), this.onDidBeforeRun = this._onDidBeforeRun.event, this._onDidRun = this._register(new o.a()), this.onDidRun = this._onDidRun.event; + super(...arguments), this._onDidBeforeRun = this._register(new r.a()), this.onDidBeforeRun = this._onDidBeforeRun.event, this._onDidRun = this._register(new r.a()), this.onDidRun = this._onDidRun.event; } run(e2, t2) { - return r(this, void 0, void 0, function* () { + return o(this, void 0, void 0, function* () { if (!e2.enabled) return Promise.resolve(null); this._onDidBeforeRun.fire({action: e2}); @@ -22315,31 +22315,31 @@ }), n.d(t, "b", function() { return c; }); - var i, o = n(15), r = n(2), s = n(1), a = n(98), l = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var i, r = n(16), o = n(2), s = n(1), a = n(98), l = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }; !function(e2) { e2.Tap = "-monaco-gesturetap", e2.Change = "-monaco-gesturechange", e2.Start = "-monaco-gesturestart", e2.End = "-monaco-gesturesend", e2.Contextmenu = "-monaco-gesturecontextmenu"; }(i || (i = {})); - class c extends r.a { + class c extends o.a { constructor() { super(), this.dispatched = false, this.activeTouches = {}, this.handle = null, this.targets = [], this.ignoreTargets = [], this._lastSetTapCountTime = 0, this._register(s.i(document, "touchstart", (e2) => this.onTouchStart(e2), {passive: false})), this._register(s.i(document, "touchend", (e2) => this.onTouchEnd(e2))), this._register(s.i(document, "touchmove", (e2) => this.onTouchMove(e2), {passive: false})); } static addTarget(e2) { return c.isTouchDevice() ? (c.INSTANCE || (c.INSTANCE = new c()), c.INSTANCE.targets.push(e2), {dispose: () => { c.INSTANCE.targets = c.INSTANCE.targets.filter((t2) => t2 !== e2); - }}) : r.a.None; + }}) : o.a.None; } static ignoreTarget(e2) { return c.isTouchDevice() ? (c.INSTANCE || (c.INSTANCE = new c()), c.INSTANCE.ignoreTargets.push(e2), {dispose: () => { c.INSTANCE.ignoreTargets = c.INSTANCE.ignoreTargets.filter((t2) => t2 !== e2); - }}) : r.a.None; + }}) : o.a.None; } static isTouchDevice() { return "ontouchstart" in window || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0; @@ -22350,33 +22350,33 @@ onTouchStart(e2) { let t2 = Date.now(); this.handle && (this.handle.dispose(), this.handle = null); - for (let n2 = 0, o2 = e2.targetTouches.length; n2 < o2; n2++) { - let o3 = e2.targetTouches.item(n2); - this.activeTouches[o3.identifier] = {id: o3.identifier, initialTarget: o3.target, initialTimeStamp: t2, initialPageX: o3.pageX, initialPageY: o3.pageY, rollingTimestamps: [t2], rollingPageX: [o3.pageX], rollingPageY: [o3.pageY]}; - let r2 = this.newGestureEvent(i.Start, o3.target); - r2.pageX = o3.pageX, r2.pageY = o3.pageY, this.dispatchEvent(r2); + for (let n2 = 0, r2 = e2.targetTouches.length; n2 < r2; n2++) { + let r3 = e2.targetTouches.item(n2); + this.activeTouches[r3.identifier] = {id: r3.identifier, initialTarget: r3.target, initialTimeStamp: t2, initialPageX: r3.pageX, initialPageY: r3.pageY, rollingTimestamps: [t2], rollingPageX: [r3.pageX], rollingPageY: [r3.pageY]}; + let o2 = this.newGestureEvent(i.Start, r3.target); + o2.pageX = r3.pageX, o2.pageY = r3.pageY, this.dispatchEvent(o2); } this.dispatched && (e2.preventDefault(), e2.stopPropagation(), this.dispatched = false); } onTouchEnd(e2) { let t2 = Date.now(), n2 = Object.keys(this.activeTouches).length; - for (let r2 = 0, s2 = e2.changedTouches.length; r2 < s2; r2++) { - let s3 = e2.changedTouches.item(r2); + for (let o2 = 0, s2 = e2.changedTouches.length; o2 < s2; o2++) { + let s3 = e2.changedTouches.item(o2); if (!this.activeTouches.hasOwnProperty(String(s3.identifier))) { console.warn("move of an UNKNOWN touch", s3); continue; } let a2 = this.activeTouches[s3.identifier], l2 = Date.now() - a2.initialTimeStamp; - if (l2 < c.HOLD_DELAY && Math.abs(a2.initialPageX - o.t(a2.rollingPageX)) < 30 && Math.abs(a2.initialPageY - o.t(a2.rollingPageY)) < 30) { + if (l2 < c.HOLD_DELAY && Math.abs(a2.initialPageX - r.t(a2.rollingPageX)) < 30 && Math.abs(a2.initialPageY - r.t(a2.rollingPageY)) < 30) { let e3 = this.newGestureEvent(i.Tap, a2.initialTarget); - e3.pageX = o.t(a2.rollingPageX), e3.pageY = o.t(a2.rollingPageY), this.dispatchEvent(e3); - } else if (l2 >= c.HOLD_DELAY && Math.abs(a2.initialPageX - o.t(a2.rollingPageX)) < 30 && Math.abs(a2.initialPageY - o.t(a2.rollingPageY)) < 30) { + e3.pageX = r.t(a2.rollingPageX), e3.pageY = r.t(a2.rollingPageY), this.dispatchEvent(e3); + } else if (l2 >= c.HOLD_DELAY && Math.abs(a2.initialPageX - r.t(a2.rollingPageX)) < 30 && Math.abs(a2.initialPageY - r.t(a2.rollingPageY)) < 30) { let e3 = this.newGestureEvent(i.Contextmenu, a2.initialTarget); - e3.pageX = o.t(a2.rollingPageX), e3.pageY = o.t(a2.rollingPageY), this.dispatchEvent(e3); + e3.pageX = r.t(a2.rollingPageX), e3.pageY = r.t(a2.rollingPageY), this.dispatchEvent(e3); } else if (n2 === 1) { - let e3 = o.t(a2.rollingPageX), n3 = o.t(a2.rollingPageY), i2 = o.t(a2.rollingTimestamps) - a2.rollingTimestamps[0], r3 = e3 - a2.rollingPageX[0], s4 = n3 - a2.rollingPageY[0]; + let e3 = r.t(a2.rollingPageX), n3 = r.t(a2.rollingPageY), i2 = r.t(a2.rollingTimestamps) - a2.rollingTimestamps[0], o3 = e3 - a2.rollingPageX[0], s4 = n3 - a2.rollingPageY[0]; const l3 = this.targets.filter((e4) => a2.initialTarget instanceof Node && e4.contains(a2.initialTarget)); - this.inertia(l3, t2, Math.abs(r3) / i2, r3 > 0 ? 1 : -1, e3, Math.abs(s4) / i2, s4 > 0 ? 1 : -1, n3); + this.inertia(l3, t2, Math.abs(o3) / i2, o3 > 0 ? 1 : -1, e3, Math.abs(s4) / i2, s4 > 0 ? 1 : -1, n3); } this.dispatchEvent(this.newGestureEvent(i.End, a2.initialTarget)), delete this.activeTouches[s3.identifier]; } @@ -22400,24 +22400,24 @@ e2.initialTarget instanceof Node && t2.contains(e2.initialTarget) && (t2.dispatchEvent(e2), this.dispatched = true); }); } - inertia(e2, t2, n2, o2, r2, a2, l2, d) { + inertia(e2, t2, n2, r2, o2, a2, l2, d) { this.handle = s.Y(() => { let s2 = Date.now(), h = s2 - t2, u = 0, p = 0, m = true; - n2 += c.SCROLL_FRICTION * h, a2 += c.SCROLL_FRICTION * h, n2 > 0 && (m = false, u = o2 * n2 * h), a2 > 0 && (m = false, p = l2 * a2 * h); + n2 += c.SCROLL_FRICTION * h, a2 += c.SCROLL_FRICTION * h, n2 > 0 && (m = false, u = r2 * n2 * h), a2 > 0 && (m = false, p = l2 * a2 * h); let g = this.newGestureEvent(i.Change); - g.translationX = u, g.translationY = p, e2.forEach((e3) => e3.dispatchEvent(g)), m || this.inertia(e2, s2, n2, o2, r2 + u, a2, l2, d + p); + g.translationX = u, g.translationY = p, e2.forEach((e3) => e3.dispatchEvent(g)), m || this.inertia(e2, s2, n2, r2, o2 + u, a2, l2, d + p); }); } onTouchMove(e2) { let t2 = Date.now(); - for (let n2 = 0, r2 = e2.changedTouches.length; n2 < r2; n2++) { - let r3 = e2.changedTouches.item(n2); - if (!this.activeTouches.hasOwnProperty(String(r3.identifier))) { - console.warn("end of an UNKNOWN touch", r3); + for (let n2 = 0, o2 = e2.changedTouches.length; n2 < o2; n2++) { + let o3 = e2.changedTouches.item(n2); + if (!this.activeTouches.hasOwnProperty(String(o3.identifier))) { + console.warn("end of an UNKNOWN touch", o3); continue; } - let s2 = this.activeTouches[r3.identifier], a2 = this.newGestureEvent(i.Change, s2.initialTarget); - a2.translationX = r3.pageX - o.t(s2.rollingPageX), a2.translationY = r3.pageY - o.t(s2.rollingPageY), a2.pageX = r3.pageX, a2.pageY = r3.pageY, this.dispatchEvent(a2), s2.rollingPageX.length > 3 && (s2.rollingPageX.shift(), s2.rollingPageY.shift(), s2.rollingTimestamps.shift()), s2.rollingPageX.push(r3.pageX), s2.rollingPageY.push(r3.pageY), s2.rollingTimestamps.push(t2); + let s2 = this.activeTouches[o3.identifier], a2 = this.newGestureEvent(i.Change, s2.initialTarget); + a2.translationX = o3.pageX - r.t(s2.rollingPageX), a2.translationY = o3.pageY - r.t(s2.rollingPageY), a2.pageX = o3.pageX, a2.pageY = o3.pageY, this.dispatchEvent(a2), s2.rollingPageX.length > 3 && (s2.rollingPageX.shift(), s2.rollingPageY.shift(), s2.rollingTimestamps.shift()), s2.rollingPageX.push(o3.pageX), s2.rollingPageY.push(o3.pageY), s2.rollingTimestamps.push(t2); } this.dispatched && (e2.preventDefault(), e2.stopPropagation(), this.dispatched = false); } @@ -22426,9 +22426,9 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }), n.d(t, "e", function() { return s; }), n.d(t, "d", function() { @@ -22437,7 +22437,7 @@ return l; }); var i = n(21); - class o { + class r { constructor(e2, t2, n2 = false) { this._range = e2, this._text = t2, this.insertsAutoWhitespace = n2; } @@ -22449,7 +22449,7 @@ return new i.a(n2.endLineNumber, n2.endColumn, n2.endLineNumber, n2.endColumn); } } - class r { + class o { constructor(e2, t2) { this._range = e2, this._text = t2; } @@ -22474,8 +22474,8 @@ } } class a { - constructor(e2, t2, n2, i2, o2 = false) { - this._range = e2, this._text = t2, this._columnDeltaOffset = i2, this._lineNumberDeltaOffset = n2, this.insertsAutoWhitespace = o2; + constructor(e2, t2, n2, i2, r2 = false) { + this._range = e2, this._text = t2, this._columnDeltaOffset = i2, this._lineNumberDeltaOffset = n2, this.insertsAutoWhitespace = r2; } getEditOperations(e2, t2) { t2.addTrackedEditOperation(this._range, this._text); @@ -22501,11 +22501,11 @@ n.d(t, "c", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }), n.d(t, "b", function() { return l; }); - var i, o, r = n(18), s = n(0), a = n(68); + var i, r, o = n(18), s = n(0), a = n(68); !function(e2) { e2[e2.Hint = 1] = "Hint", e2[e2.Info = 2] = "Info", e2[e2.Warning = 4] = "Warning", e2[e2.Error = 8] = "Error"; }(i || (i = {})), function(e2) { @@ -22546,18 +22546,18 @@ e2.makeKey = function(e3) { return t2(e3, true); }, e2.makeKeyOptionalMessage = t2; - }(o || (o = {})); - const l = Object(r.c)("markerService"); + }(r || (r = {})); + const l = Object(o.c)("markerService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(18); - const o = Object(i.c)("modelService"); - function r(e2) { + const r = Object(i.c)("modelService"); + function o(e2) { return !e2.isTooLargeForSyncing() && !e2.isForSimpleWidget; } }, function(e, t, n) { @@ -22566,32 +22566,32 @@ t2 === void 0 && (t2 = false); var n2 = e2.length, i2 = 0, a2 = "", l2 = 0, c2 = 16, d2 = 0, h2 = 0, u2 = 0, p2 = 0, m2 = 0; function g2(t3, n3) { - for (var o2 = 0, r2 = 0; o2 < t3 || !n3; ) { + for (var r2 = 0, o2 = 0; r2 < t3 || !n3; ) { var s2 = e2.charCodeAt(i2); if (s2 >= 48 && s2 <= 57) - r2 = 16 * r2 + s2 - 48; + o2 = 16 * o2 + s2 - 48; else if (s2 >= 65 && s2 <= 70) - r2 = 16 * r2 + s2 - 65 + 10; + o2 = 16 * o2 + s2 - 65 + 10; else { if (!(s2 >= 97 && s2 <= 102)) break; - r2 = 16 * r2 + s2 - 97 + 10; + o2 = 16 * o2 + s2 - 97 + 10; } - i2++, o2++; + i2++, r2++; } - return o2 < t3 && (r2 = -1), r2; + return r2 < t3 && (o2 = -1), o2; } function f2() { if (a2 = "", m2 = 0, l2 = i2, h2 = d2, p2 = u2, i2 >= n2) return l2 = n2, c2 = 17; var t3 = e2.charCodeAt(i2); - if (o(t3)) { + if (r(t3)) { do { i2++, a2 += String.fromCharCode(t3), t3 = e2.charCodeAt(i2); - } while (o(t3)); + } while (r(t3)); return c2 = 15; } - if (r(t3)) + if (o(t3)) return i2++, a2 += String.fromCharCode(t3), t3 === 13 && e2.charCodeAt(i2) === 10 && (i2++, a2 += "\n"), d2++, u2 = i2, c2 = 14; switch (t3) { case 123: @@ -22608,27 +22608,27 @@ return i2++, c2 = 5; case 34: return i2++, a2 = function() { - for (var t4 = "", o2 = i2; ; ) { + for (var t4 = "", r2 = i2; ; ) { if (i2 >= n2) { - t4 += e2.substring(o2, i2), m2 = 2; + t4 += e2.substring(r2, i2), m2 = 2; break; } var s2 = e2.charCodeAt(i2); if (s2 === 34) { - t4 += e2.substring(o2, i2), i2++; + t4 += e2.substring(r2, i2), i2++; break; } if (s2 !== 92) { if (s2 >= 0 && s2 <= 31) { - if (r(s2)) { - t4 += e2.substring(o2, i2), m2 = 2; + if (o(s2)) { + t4 += e2.substring(r2, i2), m2 = 2; break; } m2 = 6; } i2++; } else { - if (t4 += e2.substring(o2, i2), ++i2 >= n2) { + if (t4 += e2.substring(r2, i2), ++i2 >= n2) { m2 = 2; break; } @@ -22664,7 +22664,7 @@ default: m2 = 5; } - o2 = i2; + r2 = i2; } } return t4; @@ -22672,7 +22672,7 @@ case 47: var f3 = i2 - 1; if (e2.charCodeAt(i2 + 1) === 47) { - for (i2 += 2; i2 < n2 && !r(e2.charCodeAt(i2)); ) + for (i2 += 2; i2 < n2 && !o(e2.charCodeAt(i2)); ) i2++; return a2 = e2.substring(f3, i2), c2 = 12; } @@ -22684,7 +22684,7 @@ i2 += 2, v = true; break; } - i2++, r(w) && (w === 13 && e2.charCodeAt(i2) === 10 && i2++, d2++, u2 = i2); + i2++, o(w) && (w === 13 && e2.charCodeAt(i2) === 10 && i2++, d2++, u2 = i2); } return v || (i2++, m2 = 1), a2 = e2.substring(f3, i2), c2 = 13; } @@ -22743,7 +22743,7 @@ } } function b2(e3) { - if (o(e3) || r(e3)) + if (r(e3) || o(e3)) return false; switch (e3) { case 125: @@ -22784,39 +22784,39 @@ return m2; }}; } - function o(e2) { + function r(e2) { return e2 === 32 || e2 === 9 || e2 === 11 || e2 === 12 || e2 === 160 || e2 === 5760 || e2 >= 8192 && e2 <= 8203 || e2 === 8239 || e2 === 8287 || e2 === 12288 || e2 === 65279; } - function r(e2) { + function o(e2) { return e2 === 10 || e2 === 13 || e2 === 8232 || e2 === 8233; } function s(e2) { return e2 >= 48 && e2 <= 57; } function a(e2, t2, n2) { - var o2, r2, s2, a2, d2; + var r2, o2, s2, a2, d2; if (t2) { for (a2 = t2.offset, d2 = a2 + t2.length, s2 = a2; s2 > 0 && !c(e2, s2 - 1); ) s2--; for (var h2 = d2; h2 < e2.length && !c(e2, h2); ) h2++; - r2 = e2.substring(s2, h2), o2 = function(e3, t3) { - var n3 = 0, i2 = 0, o3 = t3.tabSize || 4; + o2 = e2.substring(s2, h2), r2 = function(e3, t3) { + var n3 = 0, i2 = 0, r3 = t3.tabSize || 4; for (; n3 < e3.length; ) { - var r3 = e3.charAt(n3); - if (r3 === " ") + var o3 = e3.charAt(n3); + if (o3 === " ") i2++; else { - if (r3 !== " ") + if (o3 !== " ") break; - i2 += o3; + i2 += r3; } n3++; } - return Math.floor(i2 / o3); - }(r2, n2); + return Math.floor(i2 / r3); + }(o2, n2); } else - r2 = e2, o2 = 0, s2 = 0, a2 = 0, d2 = e2.length; + o2 = e2, r2 = 0, s2 = 0, a2 = 0, d2 = e2.length; var u2, p2 = function(e3, t3) { for (var n3 = 0; n3 < t3.length; n3++) { var i2 = t3.charAt(n3); @@ -22828,9 +22828,9 @@ return e3 && e3.eol || "\n"; }(n2, e2), m2 = false, g2 = 0; u2 = n2.insertSpaces ? l(" ", n2.tabSize || 4) : " "; - var f2 = i(r2, false), b2 = false; + var f2 = i(o2, false), b2 = false; function _() { - return p2 + l(u2, o2 + g2); + return p2 + l(u2, r2 + g2); } function v() { var e3 = f2.scan(); @@ -22845,7 +22845,7 @@ var C = v(); if (C !== 17) { var x = f2.getTokenOffset() + s2; - y(l(u2, o2), s2, x); + y(l(u2, r2), s2, x); } for (; C !== 17; ) { for (var S = f2.getTokenOffset() + f2.getTokenLength() + s2, k = v(), E = ""; !m2 && (k === 12 || k === 13); ) { @@ -22904,26 +22904,26 @@ var d; function h(e2, t2, n2) { n2 === void 0 && (n2 = d.DEFAULT); - var o2 = i(e2, false); - function r2(e3) { + var r2 = i(e2, false); + function o2(e3) { return e3 ? function() { - return e3(o2.getTokenOffset(), o2.getTokenLength(), o2.getTokenStartLine(), o2.getTokenStartCharacter()); + return e3(r2.getTokenOffset(), r2.getTokenLength(), r2.getTokenStartLine(), r2.getTokenStartCharacter()); } : function() { return true; }; } function s2(e3) { return e3 ? function(t3) { - return e3(t3, o2.getTokenOffset(), o2.getTokenLength(), o2.getTokenStartLine(), o2.getTokenStartCharacter()); + return e3(t3, r2.getTokenOffset(), r2.getTokenLength(), r2.getTokenStartLine(), r2.getTokenStartCharacter()); } : function() { return true; }; } - var a2 = r2(t2.onObjectBegin), l2 = s2(t2.onObjectProperty), c2 = r2(t2.onObjectEnd), h2 = r2(t2.onArrayBegin), u2 = r2(t2.onArrayEnd), p2 = s2(t2.onLiteralValue), m2 = s2(t2.onSeparator), g2 = r2(t2.onComment), f2 = s2(t2.onError), b2 = n2 && n2.disallowComments, _ = n2 && n2.allowTrailingComma; + var a2 = o2(t2.onObjectBegin), l2 = s2(t2.onObjectProperty), c2 = o2(t2.onObjectEnd), h2 = o2(t2.onArrayBegin), u2 = o2(t2.onArrayEnd), p2 = s2(t2.onLiteralValue), m2 = s2(t2.onSeparator), g2 = o2(t2.onComment), f2 = s2(t2.onError), b2 = n2 && n2.disallowComments, _ = n2 && n2.allowTrailingComma; function v() { for (; ; ) { - var e3 = o2.scan(); - switch (o2.getTokenError()) { + var e3 = r2.scan(); + switch (r2.getTokenError()) { case 4: w(14); break; @@ -22960,7 +22960,7 @@ } function w(e3, t3, n3) { if (t3 === void 0 && (t3 = []), n3 === void 0 && (n3 = []), f2(e3), t3.length + n3.length > 0) - for (var i2 = o2.getToken(); i2 !== 17; ) { + for (var i2 = r2.getToken(); i2 !== 17; ) { if (t3.indexOf(i2) !== -1) { v(); break; @@ -22971,46 +22971,46 @@ } } function y(e3) { - var t3 = o2.getTokenValue(); + var t3 = r2.getTokenValue(); return e3 ? p2(t3) : l2(t3), v(), true; } function C() { - switch (o2.getToken()) { + switch (r2.getToken()) { case 3: return function() { h2(), v(); - for (var e3 = false; o2.getToken() !== 4 && o2.getToken() !== 17; ) { - if (o2.getToken() === 5) { - if (e3 || w(4, [], []), m2(","), v(), o2.getToken() === 4 && _) + for (var e3 = false; r2.getToken() !== 4 && r2.getToken() !== 17; ) { + if (r2.getToken() === 5) { + if (e3 || w(4, [], []), m2(","), v(), r2.getToken() === 4 && _) break; } else e3 && w(6, [], []); C() || w(4, [], [4, 5]), e3 = true; } - return u2(), o2.getToken() !== 4 ? w(8, [4], []) : v(), true; + return u2(), r2.getToken() !== 4 ? w(8, [4], []) : v(), true; }(); case 1: return function() { a2(), v(); - for (var e3 = false; o2.getToken() !== 2 && o2.getToken() !== 17; ) { - if (o2.getToken() === 5) { - if (e3 || w(4, [], []), m2(","), v(), o2.getToken() === 2 && _) + for (var e3 = false; r2.getToken() !== 2 && r2.getToken() !== 17; ) { + if (r2.getToken() === 5) { + if (e3 || w(4, [], []), m2(","), v(), r2.getToken() === 2 && _) break; } else e3 && w(6, [], []); - (o2.getToken() !== 10 ? (w(3, [], [2, 5]), 0) : (y(false), o2.getToken() === 6 ? (m2(":"), v(), C() || w(4, [], [2, 5])) : w(5, [], [2, 5]), 1)) || w(4, [], [2, 5]), e3 = true; + (r2.getToken() !== 10 ? (w(3, [], [2, 5]), 0) : (y(false), r2.getToken() === 6 ? (m2(":"), v(), C() || w(4, [], [2, 5])) : w(5, [], [2, 5]), 1)) || w(4, [], [2, 5]), e3 = true; } - return c2(), o2.getToken() !== 2 ? w(7, [2], []) : v(), true; + return c2(), r2.getToken() !== 2 ? w(7, [2], []) : v(), true; }(); case 10: return y(true); default: return function() { - switch (o2.getToken()) { + switch (r2.getToken()) { case 11: var e3 = 0; try { - typeof (e3 = JSON.parse(o2.getTokenValue())) != "number" && (w(2), e3 = 0); + typeof (e3 = JSON.parse(r2.getTokenValue())) != "number" && (w(2), e3 = 0); } catch (e4) { w(2); } @@ -23032,7 +23032,7 @@ }(); } } - return v(), o2.getToken() === 17 ? !!n2.allowEmptyContent || (w(4, [], []), false) : C() ? (o2.getToken() !== 17 && w(9, [], []), true) : (w(4, [], []), false); + return v(), r2.getToken() === 17 ? !!n2.allowEmptyContent || (w(4, [], []), false) : C() ? (r2.getToken() !== 17 && w(9, [], []), true) : (w(4, [], []), false); } n.d(t, "a", function() { return u; @@ -23051,33 +23051,33 @@ }(d || (d = {})); var u = i, p = function(e2, t2, n2) { t2 === void 0 && (t2 = []), n2 === void 0 && (n2 = d.DEFAULT); - var i2 = null, o2 = [], r2 = []; + var i2 = null, r2 = [], o2 = []; function s2(e3) { - Array.isArray(o2) ? o2.push(e3) : i2 !== null && (o2[i2] = e3); + Array.isArray(r2) ? r2.push(e3) : i2 !== null && (r2[i2] = e3); } return h(e2, {onObjectBegin: function() { var e3 = {}; - s2(e3), r2.push(o2), o2 = e3, i2 = null; + s2(e3), o2.push(r2), r2 = e3, i2 = null; }, onObjectProperty: function(e3) { i2 = e3; }, onObjectEnd: function() { - o2 = r2.pop(); + r2 = o2.pop(); }, onArrayBegin: function() { var e3 = []; - s2(e3), r2.push(o2), o2 = e3, i2 = null; + s2(e3), o2.push(r2), r2 = e3, i2 = null; }, onArrayEnd: function() { - o2 = r2.pop(); + r2 = o2.pop(); }, onLiteralValue: s2, onError: function(e3, n3, i3) { t2.push({error: e3, offset: n3, length: i3}); - }}, n2), o2[0]; + }}, n2), r2[0]; }, m = function e2(t2, n2, i2) { if (i2 === void 0 && (i2 = false), function(e3, t3, n3) { return n3 === void 0 && (n3 = false), t3 >= e3.offset && t3 < e3.offset + e3.length || n3 && t3 === e3.offset + e3.length; }(t2, n2, i2)) { - var o2 = t2.children; - if (Array.isArray(o2)) - for (var r2 = 0; r2 < o2.length && o2[r2].offset <= n2; r2++) { - var s2 = e2(o2[r2], n2, i2); + var r2 = t2.children; + if (Array.isArray(r2)) + for (var o2 = 0; o2 < r2.length && r2[o2].offset <= n2; o2++) { + var s2 = e2(r2[o2], n2, i2); if (s2) return s2; } @@ -23091,8 +23091,8 @@ var i2 = t2.parent.children[0].value; n2.push(i2); } else if (t2.parent.type === "array") { - var o2 = t2.parent.children.indexOf(t2); - o2 !== -1 && n2.push(o2); + var r2 = t2.parent.children.indexOf(t2); + r2 !== -1 && n2.push(r2); } return n2; }, f = function e2(t2) { @@ -23100,9 +23100,9 @@ case "array": return t2.children.map(e2); case "object": - for (var n2 = Object.create(null), i2 = 0, o2 = t2.children; i2 < o2.length; i2++) { - var r2 = o2[i2], s2 = r2.children[1]; - s2 && (n2[r2.children[0].value] = e2(s2)); + for (var n2 = Object.create(null), i2 = 0, r2 = t2.children; i2 < r2.length; i2++) { + var o2 = r2[i2], s2 = o2.children[1]; + s2 && (n2[o2.children[0].value] = e2(s2)); } return n2; case "null": @@ -23127,36 +23127,36 @@ return u; }); n(206); - var i = n(11), o = n(1); - let r, s, a, l, c; + var i = n(11), r = n(1); + let o, s, a, l, c; function d(e2) { - r = document.createElement("div"), r.className = "monaco-aria-container"; + o = document.createElement("div"), o.className = "monaco-aria-container"; const t2 = () => { const e3 = document.createElement("div"); - return e3.className = "monaco-alert", e3.setAttribute("role", "alert"), e3.setAttribute("aria-atomic", "true"), r.appendChild(e3), e3; + return e3.className = "monaco-alert", e3.setAttribute("role", "alert"), e3.setAttribute("aria-atomic", "true"), o.appendChild(e3), e3; }; s = t2(), a = t2(); const n2 = () => { const e3 = document.createElement("div"); - return e3.className = "monaco-status", e3.setAttribute("role", "complementary"), e3.setAttribute("aria-live", "polite"), e3.setAttribute("aria-atomic", "true"), r.appendChild(e3), e3; + return e3.className = "monaco-status", e3.setAttribute("role", "complementary"), e3.setAttribute("aria-live", "polite"), e3.setAttribute("aria-atomic", "true"), o.appendChild(e3), e3; }; - l = n2(), c = n2(), e2.appendChild(r); + l = n2(), c = n2(), e2.appendChild(o); } function h(e2) { - r && (s.textContent !== e2 ? (o.s(a), p(s, e2)) : (o.s(s), p(a, e2))); + o && (s.textContent !== e2 ? (r.s(a), p(s, e2)) : (r.s(s), p(a, e2))); } function u(e2) { - r && (i.f ? h(e2) : l.textContent !== e2 ? (o.s(c), p(l, e2)) : (o.s(l), p(c, e2))); + o && (i.f ? h(e2) : l.textContent !== e2 ? (r.s(c), p(l, e2)) : (r.s(l), p(c, e2))); } function p(e2, t2) { - o.s(e2), t2.length > 2e4 && (t2 = t2.substr(0, 2e4)), e2.textContent = t2, e2.style.visibility = "hidden", e2.style.visibility = "visible"; + r.s(e2), t2.length > 2e4 && (t2 = t2.substr(0, 2e4)), e2.textContent = t2, e2.style.visibility = "hidden", e2.style.visibility = "visible"; } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return d; }); - var i = n(34), o = n(43), r = n(11); + var i = n(34), r = n(43), o = n(11); let s = new Array(230), a = new Array(112); !function() { for (let e3 = 0; e3 < a.length; e3++) @@ -23164,9 +23164,9 @@ function e2(e3, t2) { s[e3] = t2, a[t2] = e3; } - e2(3, 7), e2(8, 1), e2(9, 2), e2(13, 3), e2(16, 4), e2(17, 5), e2(18, 6), e2(19, 7), e2(20, 8), e2(27, 9), e2(32, 10), e2(33, 11), e2(34, 12), e2(35, 13), e2(36, 14), e2(37, 15), e2(38, 16), e2(39, 17), e2(40, 18), e2(45, 19), e2(46, 20), e2(48, 21), e2(49, 22), e2(50, 23), e2(51, 24), e2(52, 25), e2(53, 26), e2(54, 27), e2(55, 28), e2(56, 29), e2(57, 30), e2(65, 31), e2(66, 32), e2(67, 33), e2(68, 34), e2(69, 35), e2(70, 36), e2(71, 37), e2(72, 38), e2(73, 39), e2(74, 40), e2(75, 41), e2(76, 42), e2(77, 43), e2(78, 44), e2(79, 45), e2(80, 46), e2(81, 47), e2(82, 48), e2(83, 49), e2(84, 50), e2(85, 51), e2(86, 52), e2(87, 53), e2(88, 54), e2(89, 55), e2(90, 56), e2(93, 58), e2(96, 93), e2(97, 94), e2(98, 95), e2(99, 96), e2(100, 97), e2(101, 98), e2(102, 99), e2(103, 100), e2(104, 101), e2(105, 102), e2(106, 103), e2(107, 104), e2(108, 105), e2(109, 106), e2(110, 107), e2(111, 108), e2(112, 59), e2(113, 60), e2(114, 61), e2(115, 62), e2(116, 63), e2(117, 64), e2(118, 65), e2(119, 66), e2(120, 67), e2(121, 68), e2(122, 69), e2(123, 70), e2(124, 71), e2(125, 72), e2(126, 73), e2(127, 74), e2(128, 75), e2(129, 76), e2(130, 77), e2(144, 78), e2(145, 79), e2(186, 80), e2(187, 81), e2(188, 82), e2(189, 83), e2(190, 84), e2(191, 85), e2(192, 86), e2(193, 110), e2(194, 111), e2(219, 87), e2(220, 88), e2(221, 89), e2(222, 90), e2(223, 91), e2(226, 92), e2(229, 109), i.h ? (e2(59, 80), e2(107, 81), e2(109, 83), r.f && e2(224, 57)) : i.l && (e2(91, 57), r.f ? e2(93, 57) : e2(92, 57)); + e2(3, 7), e2(8, 1), e2(9, 2), e2(13, 3), e2(16, 4), e2(17, 5), e2(18, 6), e2(19, 7), e2(20, 8), e2(27, 9), e2(32, 10), e2(33, 11), e2(34, 12), e2(35, 13), e2(36, 14), e2(37, 15), e2(38, 16), e2(39, 17), e2(40, 18), e2(45, 19), e2(46, 20), e2(48, 21), e2(49, 22), e2(50, 23), e2(51, 24), e2(52, 25), e2(53, 26), e2(54, 27), e2(55, 28), e2(56, 29), e2(57, 30), e2(65, 31), e2(66, 32), e2(67, 33), e2(68, 34), e2(69, 35), e2(70, 36), e2(71, 37), e2(72, 38), e2(73, 39), e2(74, 40), e2(75, 41), e2(76, 42), e2(77, 43), e2(78, 44), e2(79, 45), e2(80, 46), e2(81, 47), e2(82, 48), e2(83, 49), e2(84, 50), e2(85, 51), e2(86, 52), e2(87, 53), e2(88, 54), e2(89, 55), e2(90, 56), e2(93, 58), e2(96, 93), e2(97, 94), e2(98, 95), e2(99, 96), e2(100, 97), e2(101, 98), e2(102, 99), e2(103, 100), e2(104, 101), e2(105, 102), e2(106, 103), e2(107, 104), e2(108, 105), e2(109, 106), e2(110, 107), e2(111, 108), e2(112, 59), e2(113, 60), e2(114, 61), e2(115, 62), e2(116, 63), e2(117, 64), e2(118, 65), e2(119, 66), e2(120, 67), e2(121, 68), e2(122, 69), e2(123, 70), e2(124, 71), e2(125, 72), e2(126, 73), e2(127, 74), e2(128, 75), e2(129, 76), e2(130, 77), e2(144, 78), e2(145, 79), e2(186, 80), e2(187, 81), e2(188, 82), e2(189, 83), e2(190, 84), e2(191, 85), e2(192, 86), e2(193, 110), e2(194, 111), e2(219, 87), e2(220, 88), e2(221, 89), e2(222, 90), e2(223, 91), e2(226, 92), e2(229, 109), i.h ? (e2(59, 80), e2(107, 81), e2(109, 83), o.f && e2(224, 57)) : i.l && (e2(91, 57), o.f ? e2(93, 57) : e2(92, 57)); }(); - const l = r.f ? 256 : 2048, c = r.f ? 2048 : 256; + const l = o.f ? 256 : 2048, c = o.f ? 2048 : 256; class d { constructor(e2) { this._standardKeyboardEventBrand = true; @@ -23174,7 +23174,7 @@ this.browserEvent = t2, this.target = t2.target, this.ctrlKey = t2.ctrlKey, this.shiftKey = t2.shiftKey, this.altKey = t2.altKey, this.metaKey = t2.metaKey, this.keyCode = function(e3) { if (e3.charCode) { let t3 = String.fromCharCode(e3.charCode).toUpperCase(); - return o.b.fromString(t3); + return r.b.fromString(t3); } return s[e3.keyCode] || 0; }(t2), this.code = t2.code, this.ctrlKey = this.ctrlKey || this.keyCode === 5, this.altKey = this.altKey || this.keyCode === 6, this.shiftKey = this.shiftKey || this.keyCode === 4, this.metaKey = this.metaKey || this.keyCode === 57, this._asKeybinding = this._computeKeybinding(), this._asRuntimeKeybinding = this._computeRuntimeKeybinding(); @@ -23199,17 +23199,17 @@ } _computeRuntimeKeybinding() { let e2 = 0; - return this.keyCode !== 5 && this.keyCode !== 4 && this.keyCode !== 6 && this.keyCode !== 57 && (e2 = this.keyCode), new o.e(this.ctrlKey, this.shiftKey, this.altKey, this.metaKey, e2); + return this.keyCode !== 5 && this.keyCode !== 4 && this.keyCode !== 6 && this.keyCode !== 57 && (e2 = this.keyCode), new r.e(this.ctrlKey, this.shiftKey, this.altKey, this.metaKey, e2); } } }, function(e, t, n) { "use strict"; - var i, o = n(8); + var i, r = n(8); !function(e2) { e2[e2.Ignore = 0] = "Ignore", e2[e2.Info = 1] = "Info", e2[e2.Warning = 2] = "Warning", e2[e2.Error = 3] = "Error"; }(i || (i = {})), function(e2) { e2.fromValue = function(t2) { - return t2 ? o.t("error", t2) ? e2.Error : o.t("warning", t2) || o.t("warn", t2) ? e2.Warning : o.t("info", t2) ? e2.Info : e2.Ignore : e2.Ignore; + return t2 ? r.t("error", t2) ? e2.Error : r.t("warning", t2) || r.t("warn", t2) ? e2.Warning : r.t("info", t2) ? e2.Info : e2.Ignore : e2.Ignore; }; }(i || (i = {})), t.a = i; }, function(e, t, n) { @@ -23219,11 +23219,11 @@ }), n.d(t, "b", function() { return a; }); - var i = n(34), o = n(177), r = n(11); + var i = n(34), r = n(177), o = n(11); class s { constructor(e2) { this.timestamp = Date.now(), this.browserEvent = e2, this.leftButton = e2.button === 0, this.middleButton = e2.button === 1, this.rightButton = e2.button === 2, this.buttons = e2.buttons, this.target = e2.target, this.detail = e2.detail || 1, e2.type === "dblclick" && (this.detail = 2), this.ctrlKey = e2.ctrlKey, this.shiftKey = e2.shiftKey, this.altKey = e2.altKey, this.metaKey = e2.metaKey, typeof e2.pageX == "number" ? (this.posx = e2.pageX, this.posy = e2.pageY) : (this.posx = e2.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, this.posy = e2.clientY + document.body.scrollTop + document.documentElement.scrollTop); - let t2 = o.a.getPositionOfChildWindowRelativeToAncestorWindow(self, e2.view); + let t2 = r.a.getPositionOfChildWindowRelativeToAncestorWindow(self, e2.view); this.posx -= t2.left, this.posy -= t2.top; } preventDefault() { @@ -23243,15 +23243,15 @@ this.deltaY = -n3.detail / 3; else if (e2.type === "wheel") { const t4 = e2; - t4.deltaMode === t4.DOM_DELTA_LINE ? i.h && !r.f ? this.deltaY = -e2.deltaY / 3 : this.deltaY = -e2.deltaY : this.deltaY = -e2.deltaY / 40; + t4.deltaMode === t4.DOM_DELTA_LINE ? i.h && !o.f ? this.deltaY = -e2.deltaY / 3 : this.deltaY = -e2.deltaY : this.deltaY = -e2.deltaY / 40; } if (t3.wheelDeltaX !== void 0) - i.j && r.i ? this.deltaX = -t3.wheelDeltaX / 120 : this.deltaX = t3.wheelDeltaX / 120; + i.j && o.i ? this.deltaX = -t3.wheelDeltaX / 120 : this.deltaX = t3.wheelDeltaX / 120; else if (n3.HORIZONTAL_AXIS !== void 0 && n3.axis === n3.HORIZONTAL_AXIS) this.deltaX = -e2.detail / 3; else if (e2.type === "wheel") { const t4 = e2; - t4.deltaMode === t4.DOM_DELTA_LINE ? i.h && !r.f ? this.deltaX = -e2.deltaX / 3 : this.deltaX = -e2.deltaX : this.deltaX = -e2.deltaX / 40; + t4.deltaMode === t4.DOM_DELTA_LINE ? i.h && !o.f ? this.deltaX = -e2.deltaX / 3 : this.deltaX = -e2.deltaX : this.deltaX = -e2.deltaX / 40; } this.deltaY === 0 && this.deltaX === 0 && e2.wheelDelta && (this.deltaY = e2.wheelDelta / 120); } @@ -23266,10 +23266,10 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(3); - class o { + class r { static insert(e2, t2) { return {range: new i.a(e2.lineNumber, e2.column, e2.lineNumber, e2.column), text: t2, forceMoveMarkers: true}; } @@ -23286,7 +23286,7 @@ }, function(e, t, n) { "use strict"; n.d(t, "j", function() { - return r; + return o; }), n.d(t, "h", function() { return s; }), n.d(t, "f", function() { @@ -23306,13 +23306,13 @@ }), n.d(t, "e", function() { return U; }); - var i = n(78), o = n(8); - function r(...e2) { + var i = n(78), r = n(8); + function o(...e2) { return function(t2, n2) { - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) { - const o3 = e2[i2](t2, n2); - if (o3) - return o3; + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) { + const r3 = e2[i2](t2, n2); + if (r3) + return r3; } return null; }; @@ -23321,7 +23321,7 @@ if (!n2 || n2.length < t2.length) return null; let i2; - i2 = e2 ? o.T(n2, t2) : n2.indexOf(t2) === 0; + i2 = e2 ? r.T(n2, t2) : n2.indexOf(t2) === 0; if (!i2) return null; return t2.length > 0 ? [{start: 0, end: t2.length}] : []; @@ -23368,10 +23368,10 @@ if (e2[n2] !== t2[i2].toLowerCase()) return null; { - let o2 = null, r2 = i2 + 1; - for (o2 = b(e2, t2, n2 + 1, i2 + 1); !o2 && (r2 = f(t2, r2)) < t2.length; ) - o2 = b(e2, t2, n2 + 1, r2), r2++; - return o2 === null ? null : g({start: i2, end: i2 + 1}, o2); + let r2 = null, o2 = i2 + 1; + for (r2 = b(e2, t2, n2 + 1, i2 + 1); !r2 && (o2 = f(t2, o2)) < t2.length; ) + r2 = b(e2, t2, n2 + 1, o2), o2++; + return r2 === null ? null : g({start: i2, end: i2 + 1}, r2); } } function _(e2, t2) { @@ -23380,23 +23380,23 @@ if ((t2 = t2.trim()).length === 0) return null; if (!function(e3) { - let t3 = 0, n3 = 0, i3 = 0, o3 = 0; - for (let r2 = 0; r2 < e3.length; r2++) - i3 = e3.charCodeAt(r2), c(i3) && t3++, l(i3) && n3++, h(i3) && o3++; - return t3 !== 0 && n3 !== 0 || o3 !== 0 ? t3 <= 5 : e3.length <= 30; + let t3 = 0, n3 = 0, i3 = 0, r3 = 0; + for (let o2 = 0; o2 < e3.length; o2++) + i3 = e3.charCodeAt(o2), c(i3) && t3++, l(i3) && n3++, h(i3) && r3++; + return t3 !== 0 && n3 !== 0 || r3 !== 0 ? t3 <= 5 : e3.length <= 30; }(e2)) return null; if (t2.length > 60) return null; const n2 = function(e3) { - let t3 = 0, n3 = 0, i3 = 0, o3 = 0, r2 = 0; + let t3 = 0, n3 = 0, i3 = 0, r3 = 0, o2 = 0; for (let s2 = 0; s2 < e3.length; s2++) - r2 = e3.charCodeAt(s2), c(r2) && t3++, l(r2) && n3++, m(r2) && i3++, d(r2) && o3++; - return {upperPercent: t3 / e3.length, lowerPercent: n3 / e3.length, alphaPercent: i3 / e3.length, numericPercent: o3 / e3.length}; + o2 = e3.charCodeAt(s2), c(o2) && t3++, l(o2) && n3++, m(o2) && i3++, d(o2) && r3++; + return {upperPercent: t3 / e3.length, lowerPercent: n3 / e3.length, alphaPercent: i3 / e3.length, numericPercent: r3 / e3.length}; }(t2); if (!function(e3) { - const {upperPercent: t3, lowerPercent: n3, alphaPercent: i3, numericPercent: o3} = e3; - return n3 > 0.2 && t3 < 0.8 && i3 > 0.6 && o3 < 0.2; + const {upperPercent: t3, lowerPercent: n3, alphaPercent: i3, numericPercent: r3} = e3; + return n3 > 0.2 && t3 < 0.8 && i3 > 0.6 && r3 < 0.2; }(n2)) { if (!function(e3) { const {upperPercent: t3, lowerPercent: n3} = e3; @@ -23405,33 +23405,33 @@ return null; t2 = t2.toLowerCase(); } - let i2 = null, o2 = 0; - for (e2 = e2.toLowerCase(); o2 < t2.length && (i2 = b(e2, t2, 0, o2)) === null; ) - o2 = f(t2, o2 + 1); + let i2 = null, r2 = 0; + for (e2 = e2.toLowerCase(); r2 < t2.length && (i2 = b(e2, t2, 0, r2)) === null; ) + r2 = f(t2, r2 + 1); return i2; } function v(e2, t2, n2 = false) { if (!t2 || t2.length === 0) return null; - let i2 = null, o2 = 0; - for (e2 = e2.toLowerCase(), t2 = t2.toLowerCase(); o2 < t2.length && (i2 = w(e2, t2, 0, o2, n2)) === null; ) - o2 = y(t2, o2 + 1); + let i2 = null, r2 = 0; + for (e2 = e2.toLowerCase(), t2 = t2.toLowerCase(); r2 < t2.length && (i2 = w(e2, t2, 0, r2, n2)) === null; ) + r2 = y(t2, r2 + 1); return i2; } - function w(e2, t2, n2, i2, o2) { + function w(e2, t2, n2, i2, r2) { if (n2 === e2.length) return []; if (i2 === t2.length) return null; - if (r2 = e2.charCodeAt(n2), s2 = t2.charCodeAt(i2), r2 === s2 || p(r2) && p(s2)) { - let r3 = null, s3 = i2 + 1; - if (r3 = w(e2, t2, n2 + 1, i2 + 1, o2), !o2) - for (; !r3 && (s3 = y(t2, s3)) < t2.length; ) - r3 = w(e2, t2, n2 + 1, s3, o2), s3++; - return r3 === null ? null : g({start: i2, end: i2 + 1}, r3); + if (o2 = e2.charCodeAt(n2), s2 = t2.charCodeAt(i2), o2 === s2 || p(o2) && p(s2)) { + let o3 = null, s3 = i2 + 1; + if (o3 = w(e2, t2, n2 + 1, i2 + 1, r2), !r2) + for (; !o3 && (s3 = y(t2, s3)) < t2.length; ) + o3 = w(e2, t2, n2 + 1, s3, r2), s3++; + return o3 === null ? null : g({start: i2, end: i2 + 1}, o3); } return null; - var r2, s2; + var o2, s2; } function y(e2, t2) { for (let n2 = t2; n2 < e2.length; n2++) @@ -23440,40 +23440,40 @@ return e2.length; } "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((e2) => u.add(e2.charCodeAt(0))); - const C = r(s, _, a), x = r(s, _, function(e2, t2) { - return function e3(t3, n2, i2, o2) { + const C = o(s, _, a), x = o(s, _, function(e2, t2) { + return function e3(t3, n2, i2, r2) { if (i2 === t3.length) return []; - if (o2 === n2.length) + if (r2 === n2.length) return null; - if (t3[i2] === n2[o2]) { - let r2 = null; - return (r2 = e3(t3, n2, i2 + 1, o2 + 1)) ? g({start: o2, end: o2 + 1}, r2) : null; + if (t3[i2] === n2[r2]) { + let o2 = null; + return (o2 = e3(t3, n2, i2 + 1, r2 + 1)) ? g({start: r2, end: r2 + 1}, o2) : null; } - return e3(t3, n2, i2, o2 + 1); + return e3(t3, n2, i2, r2 + 1); }(e2.toLowerCase(), t2.toLowerCase(), 0, 0); }), S = new i.a(1e4); function k(e2, t2, n2 = false) { if (typeof e2 != "string" || typeof t2 != "string") return null; let i2 = S.get(e2); - i2 || (i2 = new RegExp(o.p(e2), "i"), S.set(e2, i2)); - const r2 = i2.exec(t2); - return r2 ? [{start: r2.index, end: r2.index + r2[0].length}] : n2 ? x(e2, t2) : C(e2, t2); + i2 || (i2 = new RegExp(r.p(e2), "i"), S.set(e2, i2)); + const o2 = i2.exec(t2); + return o2 ? [{start: o2.index, end: o2.index + o2[0].length}] : n2 ? x(e2, t2) : C(e2, t2); } - function E(e2, t2, n2, i2, o2, r2) { - const s2 = P(e2, t2, 0, i2, o2, 0, true); + function E(e2, t2, n2, i2, r2, o2) { + const s2 = P(e2, t2, 0, i2, r2, 0, true); if (s2) return s2; - let a2 = 0, l2 = 0, c2 = r2; + let a2 = 0, l2 = 0, c2 = o2; for (let e3 = 0; e3 < t2.length && e3 < L; ++e3) { - const n3 = o2.indexOf(t2.charAt(e3), c2); + const n3 = r2.indexOf(t2.charAt(e3), c2); if (n3 >= 0) l2 += 1, a2 += Math.pow(2, n3), c2 = n3 + 1; else if (a2 !== 0) break; } - return [l2, a2, r2]; + return [l2, a2, o2]; } function T(e2) { if (e2 === void 0) @@ -23497,7 +23497,7 @@ } return e2; } - const I = N(), O = N(), D = N(); + const I = N(), D = N(), O = N(); function A(e2, t2) { if (t2 < 0 || t2 >= e2.length) return false; @@ -23521,47 +23521,47 @@ return t2[e2] !== n2[e2]; } var M; - function P(e2, t2, n2, i2, o2, r2, s2) { + function P(e2, t2, n2, i2, r2, o2, s2) { const a2 = e2.length > L ? L : e2.length, l2 = i2.length > L ? L : i2.length; - if (n2 >= a2 || r2 >= l2 || a2 - n2 > l2 - r2) + if (n2 >= a2 || o2 >= l2 || a2 - n2 > l2 - o2) return; - if (!function(e3, t3, n3, i3, o3, r3) { - for (; t3 < n3 && o3 < r3; ) - e3[t3] === i3[o3] && (t3 += 1), o3 += 1; + if (!function(e3, t3, n3, i3, r3, o3) { + for (; t3 < n3 && r3 < o3; ) + e3[t3] === i3[r3] && (t3 += 1), r3 += 1; return t3 === n3; - }(t2, n2, a2, o2, r2, l2)) + }(t2, n2, a2, r2, o2, l2)) return; - let c2 = 1, d2 = 1, h2 = n2, u2 = r2, p2 = false; + let c2 = 1, d2 = 1, h2 = n2, u2 = o2, p2 = false; for (c2 = 1, h2 = n2; h2 < a2; c2++, h2++) - for (d2 = 1, u2 = r2; u2 < l2; d2++, u2++) { - const r3 = F(e2, t2, h2, n2, i2, o2, u2); - h2 === n2 && r3 > 1 && (p2 = true), O[c2][d2] = r3; - const s3 = I[c2 - 1][d2 - 1] + (r3 > 1 ? 1 : r3), a3 = I[c2 - 1][d2] + -1, l3 = I[c2][d2 - 1] + -1; - l3 >= a3 ? l3 > s3 ? (I[c2][d2] = l3, D[c2][d2] = 4) : l3 === s3 ? (I[c2][d2] = l3, D[c2][d2] = 6) : (I[c2][d2] = s3, D[c2][d2] = 2) : a3 > s3 ? (I[c2][d2] = a3, D[c2][d2] = 1) : a3 === s3 ? (I[c2][d2] = a3, D[c2][d2] = 3) : (I[c2][d2] = s3, D[c2][d2] = 2); + for (d2 = 1, u2 = o2; u2 < l2; d2++, u2++) { + const o3 = F(e2, t2, h2, n2, i2, r2, u2); + h2 === n2 && o3 > 1 && (p2 = true), D[c2][d2] = o3; + const s3 = I[c2 - 1][d2 - 1] + (o3 > 1 ? 1 : o3), a3 = I[c2 - 1][d2] + -1, l3 = I[c2][d2 - 1] + -1; + l3 >= a3 ? l3 > s3 ? (I[c2][d2] = l3, O[c2][d2] = 4) : l3 === s3 ? (I[c2][d2] = l3, O[c2][d2] = 6) : (I[c2][d2] = s3, O[c2][d2] = 2) : a3 > s3 ? (I[c2][d2] = a3, O[c2][d2] = 1) : a3 === s3 ? (I[c2][d2] = a3, O[c2][d2] = 3) : (I[c2][d2] = s3, O[c2][d2] = 2); } - return (p2 || s2) && (W = 0, B = -100, j = r2, V = s2, function e3(t3, n3, i3, o3, r3) { + return (p2 || s2) && (W = 0, B = -100, j = o2, V = s2, function e3(t3, n3, i3, r3, o3) { if (W >= 10 || i3 < -25) return; let s3 = 0; for (; t3 > 0 && n3 > 0; ) { - const a3 = O[t3][n3], l3 = D[t3][n3]; + const a3 = D[t3][n3], l3 = O[t3][n3]; if (l3 === 4) - n3 -= 1, r3 ? i3 -= 5 : o3 !== 0 && (i3 -= 1), r3 = false, s3 = 0; + n3 -= 1, o3 ? i3 -= 5 : r3 !== 0 && (i3 -= 1), o3 = false, s3 = 0; else { if (!(2 & l3)) return; - if (4 & l3 && e3(t3, n3 - 1, o3 !== 0 ? i3 - 1 : i3, o3, r3), i3 += a3, t3 -= 1, n3 -= 1, r3 = true, o3 += Math.pow(2, n3 + j), a3 === 1) { + if (4 & l3 && e3(t3, n3 - 1, r3 !== 0 ? i3 - 1 : i3, r3, o3), i3 += a3, t3 -= 1, n3 -= 1, o3 = true, r3 += Math.pow(2, n3 + j), a3 === 1) { if (s3 += 1, t3 === 0 && !V) return; } else i3 += 1 + s3 * (a3 - 1), s3 = 0; } } - W += 1, (i3 -= n3 >= 3 ? 9 : 3 * n3) > B && (B = i3, z = o3); - }(c2 - 1, d2 - 1, a2 === l2 ? 1 : 0, 0, false), W !== 0) ? [B, z, r2] : void 0; + W += 1, (i3 -= n3 >= 3 ? 9 : 3 * n3) > B && (B = i3, z = r3); + }(c2 - 1, d2 - 1, a2 === l2 ? 1 : 0, 0, false), W !== 0) ? [B, z, o2] : void 0; } - function F(e2, t2, n2, i2, o2, r2, s2) { - return t2[n2] !== r2[s2] ? -1 : s2 === n2 - i2 ? e2[n2] === o2[s2] ? 7 : 5 : !R(s2, o2, r2) || s2 !== 0 && R(s2 - 1, o2, r2) ? !A(r2, s2) || s2 !== 0 && A(r2, s2 - 1) ? A(r2, s2 - 1) || function(e3, t3) { + function F(e2, t2, n2, i2, r2, o2, s2) { + return t2[n2] !== o2[s2] ? -1 : s2 === n2 - i2 ? e2[n2] === r2[s2] ? 7 : 5 : !R(s2, r2, o2) || s2 !== 0 && R(s2 - 1, r2, o2) ? !A(o2, s2) || s2 !== 0 && A(o2, s2 - 1) ? A(o2, s2 - 1) || function(e3, t3) { if (t3 < 0 || t3 >= e3.length) return false; switch (e3.charCodeAt(t3)) { @@ -23571,7 +23571,7 @@ default: return false; } - }(r2, s2 - 1) ? 5 : 1 : 5 : e2[n2] === o2[s2] ? 7 : 5; + }(o2, s2 - 1) ? 5 : 1 : 5 : e2[n2] === r2[s2] ? 7 : 5; } !function(e2) { e2.Default = Object.freeze([-100, 0, 0]), e2.isDefault = function(e3) { @@ -23579,9 +23579,9 @@ }; }(M || (M = {})); let W = 0, z = 0, B = 0, j = 0, V = false; - function U(e2, t2, n2, i2, o2, r2, s2) { - return function(e3, t3, n3, i3, o3, r3, s3, a2) { - let l2 = P(e3, t3, n3, i3, o3, r3, a2); + function U(e2, t2, n2, i2, r2, o2, s2) { + return function(e3, t3, n3, i3, r3, o3, s3, a2) { + let l2 = P(e3, t3, n3, i3, r3, o3, a2); if (l2 && !s3) return l2; if (e3.length >= 3) { @@ -23589,13 +23589,13 @@ for (let s4 = n3 + 1; s4 < t4; s4++) { const t5 = H(e3, s4); if (t5) { - const e4 = P(t5, t5.toLowerCase(), n3, i3, o3, r3, a2); + const e4 = P(t5, t5.toLowerCase(), n3, i3, r3, o3, a2); e4 && (e4[0] -= 3, (!l2 || e4[0] > l2[0]) && (l2 = e4)); } } } return l2; - }(e2, t2, n2, i2, o2, r2, true, s2); + }(e2, t2, n2, i2, r2, o2, true, s2); } function H(e2, t2) { if (t2 + 1 >= e2.length) @@ -23622,14 +23622,14 @@ return p; }); var i = n(8); - const o = e2 !== void 0, r = typeof TextDecoder != "undefined"; + const r = e2 !== void 0, o = typeof TextDecoder != "undefined"; let s; class a { constructor(e3) { this.buffer = e3, this.byteLength = this.buffer.byteLength; } toString() { - return o ? this.buffer.toString() : r ? (s || (s = new TextDecoder()), s.decode(this.buffer)) : i.r(this.buffer); + return r ? this.buffer.toString() : o ? (s || (s = new TextDecoder()), s.decode(this.buffer)) : i.r(this.buffer); } } function l(e3, t2) { @@ -23656,21 +23656,21 @@ n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }), n.d(t, "d", function() { return a; }); const i = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"; - const o = function(e2 = "") { + const r = function(e2 = "") { let t2 = "(-?\\d*\\.\\d\\w*)|([^"; for (const n2 of i) e2.indexOf(n2) >= 0 || (t2 += "\\" + n2); return t2 += "\\s]+)", new RegExp(t2, "g"); }(); - function r(e2) { - let t2 = o; + function o(e2) { + let t2 = r; if (e2 && e2 instanceof RegExp) if (e2.global) t2 = e2; @@ -23681,19 +23681,19 @@ return t2.lastIndex = 0, t2; } const s = {maxLen: 1e3, windowSize: 15, timeBudget: 150}; - function a(e2, t2, n2, i2, o2 = s) { - if (n2.length > o2.maxLen) { - let r3 = e2 - o2.maxLen / 2; - return r3 < 0 ? (i2 += e2, r3 = 0) : i2 += r3, a(e2, t2, n2 = n2.substring(r3, e2 + o2.maxLen / 2), i2, o2); + function a(e2, t2, n2, i2, r2 = s) { + if (n2.length > r2.maxLen) { + let o3 = e2 - r2.maxLen / 2; + return o3 < 0 ? (i2 += e2, o3 = 0) : i2 += o3, a(e2, t2, n2 = n2.substring(o3, e2 + r2.maxLen / 2), i2, r2); } Date.now(); - const r2 = e2 - 1 - i2; + const o2 = e2 - 1 - i2; let c = -1, d = null; for (let e3 = 1; ; e3++) { - Date.now(), o2.timeBudget; - const i3 = r2 - o2.windowSize * e3; + Date.now(), r2.timeBudget; + const i3 = o2 - r2.windowSize * e3; t2.lastIndex = Math.max(0, i3); - const s2 = l(t2, n2, r2, c); + const s2 = l(t2, n2, o2, c); if (!s2 && d) break; if (d = s2, i3 <= 0) @@ -23707,11 +23707,11 @@ return null; } function l(e2, t2, n2, i2) { - let o2; - for (; o2 = e2.exec(t2); ) { - const t3 = o2.index || 0; + let r2; + for (; r2 = e2.exec(t2); ) { + const t3 = r2.index || 0; if (t3 <= n2 && e2.lastIndex >= n2) - return o2; + return r2; if (i2 > 0 && t3 > i2) return null; } @@ -23720,9 +23720,9 @@ }, function(e, t, n) { "use strict"; n.d(t, "f", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }), n.d(t, "c", function() { return s; }), n.d(t, "d", function() { @@ -23733,24 +23733,24 @@ return c; }); var i = n(8); - class o { + class r { constructor(e2, t2, n2, i2) { this.top = 0 | e2, this.left = 0 | t2, this.width = 0 | n2, this.height = 0 | i2; } } - class r { + class o { constructor(e2, t2) { this.tabSize = e2, this.data = t2; } } class s { - constructor(e2, t2, n2, i2, o2, r2) { - this.content = e2, this.continuesWithWrappedLine = t2, this.minColumn = n2, this.maxColumn = i2, this.startVisibleColumn = o2, this.tokens = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.content = e2, this.continuesWithWrappedLine = t2, this.minColumn = n2, this.maxColumn = i2, this.startVisibleColumn = r2, this.tokens = o2; } } class a { - constructor(e2, t2, n2, i2, o2, r2, s2, l2, c2, d) { - this.minColumn = e2, this.maxColumn = t2, this.content = n2, this.continuesWithWrappedLine = i2, this.isBasicASCII = a.isBasicASCII(n2, r2), this.containsRTL = a.containsRTL(n2, this.isBasicASCII, o2), this.tokens = s2, this.inlineDecorations = l2, this.tabSize = c2, this.startVisibleColumn = d; + constructor(e2, t2, n2, i2, r2, o2, s2, l2, c2, d) { + this.minColumn = e2, this.maxColumn = t2, this.content = n2, this.continuesWithWrappedLine = i2, this.isBasicASCII = a.isBasicASCII(n2, o2), this.containsRTL = a.containsRTL(n2, this.isBasicASCII, r2), this.tokens = s2, this.inlineDecorations = l2, this.tabSize = c2, this.startVisibleColumn = d; } static isBasicASCII(e2, t2) { return !t2 || i.B(e2); @@ -23775,11 +23775,11 @@ n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return o; + return r; }), function(e2) { e2[e2.None = 0] = "None", e2[e2.Indent = 1] = "Indent", e2[e2.IndentOutdent = 2] = "IndentOutdent", e2[e2.Outdent = 3] = "Outdent"; }(i || (i = {})); - class o { + class r { constructor(e2) { if (this.open = e2.open, this.close = e2.close, this._standardTokenMask = 0, Array.isArray(e2.notIn)) for (let t2 = 0, n2 = e2.notIn.length; t2 < n2; t2++) { @@ -23802,15 +23802,15 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(36); - class o { + class r { constructor(e2) { let t2 = Object(i.b)(e2); - this._defaultValue = t2, this._asciiMap = o._createAsciiMap(t2), this._map = new Map(); + this._defaultValue = t2, this._asciiMap = r._createAsciiMap(t2), this._map = new Map(); } static _createAsciiMap(e2) { let t2 = new Uint8Array(256); @@ -23826,9 +23826,9 @@ return e2 >= 0 && e2 < 256 ? this._asciiMap[e2] : this._map.get(e2) || this._defaultValue; } } - class r { + class o { constructor() { - this._actual = new o(0); + this._actual = new r(0); } add(e2) { this._actual.set(e2, 1); @@ -23842,9 +23842,9 @@ n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }); class i { constructor(e2, t2, n2) { @@ -23854,12 +23854,12 @@ return "(" + this.offset + ", " + this.type + ")"; } } - class o { + class r { constructor(e2, t2) { this.tokens = e2, this.endState = t2; } } - class r { + class o { constructor(e2, t2) { this.tokens = e2, this.endState = t2; } @@ -23873,7 +23873,7 @@ }), n.d(t, "a", function() { return m; }); - var i = n(23), o = n(8), r = n(45), s = n(11); + var i = n(23), r = n(8), o = n(45), s = n(11); class a { constructor() { this._value = "", this._pos = 0; @@ -23919,7 +23919,7 @@ return this; } cmp(e2) { - return this._caseSensitive ? Object(o.h)(e2, this._value, 0, e2.length, this._from, this._to) : Object(o.i)(e2, this._value, 0, e2.length, this._from, this._to); + return this._caseSensitive ? Object(r.h)(e2, this._value, 0, e2.length, this._from, this._to) : Object(r.i)(e2, this._value, 0, e2.length, this._from, this._to); } value() { return this._value.substring(this._from, this._to); @@ -23931,7 +23931,7 @@ } reset(e2) { if (this._value = e2, this._states = [], this._value.scheme && this._states.push(1), this._value.authority && this._states.push(2), this._value.path) { - const t2 = e2.scheme === r.b.file && s.d; + const t2 = e2.scheme === o.b.file && s.d; this._pathIterator = new l(false, t2), this._pathIterator.reset(e2.path), this._pathIterator.value() && this._states.push(3); } return this._value.query && this._states.push(4), this._value.fragment && this._states.push(5), this._stateIdx = 0, this; @@ -23944,15 +23944,15 @@ } cmp(e2) { if (this._states[this._stateIdx] === 1) - return Object(o.f)(e2, this._value.scheme); + return Object(r.f)(e2, this._value.scheme); if (this._states[this._stateIdx] === 2) - return Object(o.i)(e2, this._value.authority); + return Object(r.i)(e2, this._value.authority); if (this._states[this._stateIdx] === 3) return this._pathIterator.cmp(e2); if (this._states[this._stateIdx] === 4) - return Object(o.f)(e2, this._value.query); + return Object(r.f)(e2, this._value.query); if (this._states[this._stateIdx] === 5) - return Object(o.f)(e2, this._value.fragment); + return Object(r.f)(e2, this._value.fragment); throw new Error(); } value() { @@ -23999,8 +23999,8 @@ n2.next(), i2.mid || (i2.mid = new d(), i2.mid.segment = n2.value()), i2 = i2.mid; } } - const o2 = i2.value; - return i2.value = t2, i2.key = e2, o2; + const r2 = i2.value; + return i2.value = t2, i2.key = e2, r2; } get(e2) { const t2 = this._iter.reset(e2); @@ -24314,32 +24314,32 @@ }), n.d(t, "c", function() { return d; }); - var i = n(23), o = n(18), r = n(2), s = n(8), a = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var i = n(23), r = n(18), o = n(2), s = n(8), a = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - const l = Object(o.c)("openerService"), c = Object.freeze({_serviceBrand: void 0, registerOpener: () => r.a.None, registerValidator: () => r.a.None, registerExternalUriResolver: () => r.a.None, setExternalOpener() { + const l = Object(r.c)("openerService"), c = Object.freeze({_serviceBrand: void 0, registerOpener: () => o.a.None, registerValidator: () => o.a.None, registerExternalUriResolver: () => o.a.None, setExternalOpener() { }, open() { return a(this, void 0, void 0, function* () { return false; @@ -24356,18 +24356,18 @@ }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return r; + return o; }), n.d(t, "a", function() { return s; }); - var i = n(18), o = n(10); - const r = Object(i.c)("accessibilityService"), s = new o.c("accessibilityModeEnabled", false); + var i = n(18), r = n(10); + const o = Object(i.c)("accessibilityService"), s = new r.c("accessibilityModeEnabled", false); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return l; }); - var i = n(22), o = n(9), r = n(3), s = n(8); + var i = n(22), r = n(9), o = n(3), s = n(8); class a { constructor(e2, t2, n2) { this.lineNumber = e2, this.column = t2, this.leftoverVisibleColumns = n2; @@ -24375,81 +24375,81 @@ } class l { static leftPosition(e2, t2, n2) { - return n2 > e2.getLineMinColumn(t2) ? n2 -= s.N(e2.getLineContent(t2), n2 - 1) : t2 > 1 && (t2 -= 1, n2 = e2.getLineMaxColumn(t2)), new o.a(t2, n2); + return n2 > e2.getLineMinColumn(t2) ? n2 -= s.N(e2.getLineContent(t2), n2 - 1) : t2 > 1 && (t2 -= 1, n2 = e2.getLineMaxColumn(t2)), new r.a(t2, n2); } static left(e2, t2, n2, i2) { - const o2 = l.leftPosition(t2, n2, i2); - return new a(o2.lineNumber, o2.column, 0); + const r2 = l.leftPosition(t2, n2, i2); + return new a(r2.lineNumber, r2.column, 0); } - static moveLeft(e2, t2, n2, i2, o2) { - let r2, s2; + static moveLeft(e2, t2, n2, i2, r2) { + let o2, s2; if (n2.hasSelection() && !i2) - r2 = n2.selection.startLineNumber, s2 = n2.selection.startColumn; + o2 = n2.selection.startLineNumber, s2 = n2.selection.startColumn; else { - let i3 = l.left(e2, t2, n2.position.lineNumber, n2.position.column - (o2 - 1)); - r2 = i3.lineNumber, s2 = i3.column; + let i3 = l.left(e2, t2, n2.position.lineNumber, n2.position.column - (r2 - 1)); + o2 = i3.lineNumber, s2 = i3.column; } - return n2.move(i2, r2, s2, 0); + return n2.move(i2, o2, s2, 0); } static rightPosition(e2, t2, n2) { - return n2 < e2.getLineMaxColumn(t2) ? n2 += s.L(e2.getLineContent(t2), n2 - 1) : t2 < e2.getLineCount() && (t2 += 1, n2 = e2.getLineMinColumn(t2)), new o.a(t2, n2); + return n2 < e2.getLineMaxColumn(t2) ? n2 += s.L(e2.getLineContent(t2), n2 - 1) : t2 < e2.getLineCount() && (t2 += 1, n2 = e2.getLineMinColumn(t2)), new r.a(t2, n2); } static right(e2, t2, n2, i2) { - const o2 = l.rightPosition(t2, n2, i2); - return new a(o2.lineNumber, o2.column, 0); + const r2 = l.rightPosition(t2, n2, i2); + return new a(r2.lineNumber, r2.column, 0); } - static moveRight(e2, t2, n2, i2, o2) { - let r2, s2; + static moveRight(e2, t2, n2, i2, r2) { + let o2, s2; if (n2.hasSelection() && !i2) - r2 = n2.selection.endLineNumber, s2 = n2.selection.endColumn; + o2 = n2.selection.endLineNumber, s2 = n2.selection.endColumn; else { - let i3 = l.right(e2, t2, n2.position.lineNumber, n2.position.column + (o2 - 1)); - r2 = i3.lineNumber, s2 = i3.column; + let i3 = l.right(e2, t2, n2.position.lineNumber, n2.position.column + (r2 - 1)); + o2 = i3.lineNumber, s2 = i3.column; } - return n2.move(i2, r2, s2, 0); + return n2.move(i2, o2, s2, 0); } - static down(e2, t2, n2, o2, r2, s2, l2) { - const c = i.a.visibleColumnFromColumn(t2.getLineContent(n2), o2, e2.tabSize) + r2, d = t2.getLineCount(), h = n2 === d && o2 === t2.getLineMaxColumn(n2); - return (n2 += s2) > d ? (n2 = d, o2 = l2 ? t2.getLineMaxColumn(n2) : Math.min(t2.getLineMaxColumn(n2), o2)) : o2 = i.a.columnFromVisibleColumn2(e2, t2, n2, c), r2 = h ? 0 : c - i.a.visibleColumnFromColumn(t2.getLineContent(n2), o2, e2.tabSize), new a(n2, o2, r2); + static down(e2, t2, n2, r2, o2, s2, l2) { + const c = i.a.visibleColumnFromColumn(t2.getLineContent(n2), r2, e2.tabSize) + o2, d = t2.getLineCount(), h = n2 === d && r2 === t2.getLineMaxColumn(n2); + return (n2 += s2) > d ? (n2 = d, r2 = l2 ? t2.getLineMaxColumn(n2) : Math.min(t2.getLineMaxColumn(n2), r2)) : r2 = i.a.columnFromVisibleColumn2(e2, t2, n2, c), o2 = h ? 0 : c - i.a.visibleColumnFromColumn(t2.getLineContent(n2), r2, e2.tabSize), new a(n2, r2, o2); } - static moveDown(e2, t2, n2, i2, o2) { - let r2, s2; - n2.hasSelection() && !i2 ? (r2 = n2.selection.endLineNumber, s2 = n2.selection.endColumn) : (r2 = n2.position.lineNumber, s2 = n2.position.column); - let a2 = l.down(e2, t2, r2, s2, n2.leftoverVisibleColumns, o2, true); + static moveDown(e2, t2, n2, i2, r2) { + let o2, s2; + n2.hasSelection() && !i2 ? (o2 = n2.selection.endLineNumber, s2 = n2.selection.endColumn) : (o2 = n2.position.lineNumber, s2 = n2.position.column); + let a2 = l.down(e2, t2, o2, s2, n2.leftoverVisibleColumns, r2, true); return n2.move(i2, a2.lineNumber, a2.column, a2.leftoverVisibleColumns); } static translateDown(e2, t2, n2) { let s2 = n2.selection, a2 = l.down(e2, t2, s2.selectionStartLineNumber, s2.selectionStartColumn, n2.selectionStartLeftoverVisibleColumns, 1, false), c = l.down(e2, t2, s2.positionLineNumber, s2.positionColumn, n2.leftoverVisibleColumns, 1, false); - return new i.f(new r.a(a2.lineNumber, a2.column, a2.lineNumber, a2.column), a2.leftoverVisibleColumns, new o.a(c.lineNumber, c.column), c.leftoverVisibleColumns); + return new i.f(new o.a(a2.lineNumber, a2.column, a2.lineNumber, a2.column), a2.leftoverVisibleColumns, new r.a(c.lineNumber, c.column), c.leftoverVisibleColumns); } - static up(e2, t2, n2, o2, r2, s2, l2) { - const c = i.a.visibleColumnFromColumn(t2.getLineContent(n2), o2, e2.tabSize) + r2, d = n2 === 1 && o2 === 1; - return (n2 -= s2) < 1 ? (n2 = 1, o2 = l2 ? t2.getLineMinColumn(n2) : Math.min(t2.getLineMaxColumn(n2), o2)) : o2 = i.a.columnFromVisibleColumn2(e2, t2, n2, c), r2 = d ? 0 : c - i.a.visibleColumnFromColumn(t2.getLineContent(n2), o2, e2.tabSize), new a(n2, o2, r2); + static up(e2, t2, n2, r2, o2, s2, l2) { + const c = i.a.visibleColumnFromColumn(t2.getLineContent(n2), r2, e2.tabSize) + o2, d = n2 === 1 && r2 === 1; + return (n2 -= s2) < 1 ? (n2 = 1, r2 = l2 ? t2.getLineMinColumn(n2) : Math.min(t2.getLineMaxColumn(n2), r2)) : r2 = i.a.columnFromVisibleColumn2(e2, t2, n2, c), o2 = d ? 0 : c - i.a.visibleColumnFromColumn(t2.getLineContent(n2), r2, e2.tabSize), new a(n2, r2, o2); } - static moveUp(e2, t2, n2, i2, o2) { - let r2, s2; - n2.hasSelection() && !i2 ? (r2 = n2.selection.startLineNumber, s2 = n2.selection.startColumn) : (r2 = n2.position.lineNumber, s2 = n2.position.column); - let a2 = l.up(e2, t2, r2, s2, n2.leftoverVisibleColumns, o2, true); + static moveUp(e2, t2, n2, i2, r2) { + let o2, s2; + n2.hasSelection() && !i2 ? (o2 = n2.selection.startLineNumber, s2 = n2.selection.startColumn) : (o2 = n2.position.lineNumber, s2 = n2.position.column); + let a2 = l.up(e2, t2, o2, s2, n2.leftoverVisibleColumns, r2, true); return n2.move(i2, a2.lineNumber, a2.column, a2.leftoverVisibleColumns); } static translateUp(e2, t2, n2) { let s2 = n2.selection, a2 = l.up(e2, t2, s2.selectionStartLineNumber, s2.selectionStartColumn, n2.selectionStartLeftoverVisibleColumns, 1, false), c = l.up(e2, t2, s2.positionLineNumber, s2.positionColumn, n2.leftoverVisibleColumns, 1, false); - return new i.f(new r.a(a2.lineNumber, a2.column, a2.lineNumber, a2.column), a2.leftoverVisibleColumns, new o.a(c.lineNumber, c.column), c.leftoverVisibleColumns); + return new i.f(new o.a(a2.lineNumber, a2.column, a2.lineNumber, a2.column), a2.leftoverVisibleColumns, new r.a(c.lineNumber, c.column), c.leftoverVisibleColumns); } static moveToBeginningOfLine(e2, t2, n2, i2) { - let o2, r2 = n2.position.lineNumber, s2 = t2.getLineMinColumn(r2), a2 = t2.getLineFirstNonWhitespaceColumn(r2) || s2; - return o2 = n2.position.column === a2 ? s2 : a2, n2.move(i2, r2, o2, 0); + let r2, o2 = n2.position.lineNumber, s2 = t2.getLineMinColumn(o2), a2 = t2.getLineFirstNonWhitespaceColumn(o2) || s2; + return r2 = n2.position.column === a2 ? s2 : a2, n2.move(i2, o2, r2, 0); } - static moveToEndOfLine(e2, t2, n2, i2, o2) { - let r2 = n2.position.lineNumber, s2 = t2.getLineMaxColumn(r2); - return n2.move(i2, r2, s2, o2 ? 1073741824 - s2 : 0); + static moveToEndOfLine(e2, t2, n2, i2, r2) { + let o2 = n2.position.lineNumber, s2 = t2.getLineMaxColumn(o2); + return n2.move(i2, o2, s2, r2 ? 1073741824 - s2 : 0); } static moveToBeginningOfBuffer(e2, t2, n2, i2) { return n2.move(i2, 1, 1, 0); } static moveToEndOfBuffer(e2, t2, n2, i2) { - let o2 = t2.getLineCount(), r2 = t2.getLineMaxColumn(o2); - return n2.move(i2, o2, r2, 0); + let r2 = t2.getLineCount(), o2 = t2.getLineMaxColumn(r2); + return n2.move(i2, r2, o2, 0); } } }, function(e, t, n) { @@ -24457,25 +24457,25 @@ n.d(t, "a", function() { return l; }); - var i = n(1), o = n(67), r = n(69), s = n(2), a = n(61); + var i = n(1), r = n(67), o = n(69), s = n(2), a = n(61); class l extends s.a { onclick(e2, t2) { - this._register(i.i(e2, i.c.CLICK, (e3) => t2(new r.a(e3)))); + this._register(i.i(e2, i.c.CLICK, (e3) => t2(new o.a(e3)))); } onmousedown(e2, t2) { - this._register(i.i(e2, i.c.MOUSE_DOWN, (e3) => t2(new r.a(e3)))); + this._register(i.i(e2, i.c.MOUSE_DOWN, (e3) => t2(new o.a(e3)))); } onmouseover(e2, t2) { - this._register(i.i(e2, i.c.MOUSE_OVER, (e3) => t2(new r.a(e3)))); + this._register(i.i(e2, i.c.MOUSE_OVER, (e3) => t2(new o.a(e3)))); } onnonbubblingmouseout(e2, t2) { - this._register(i.j(e2, (e3) => t2(new r.a(e3)))); + this._register(i.j(e2, (e3) => t2(new o.a(e3)))); } onkeydown(e2, t2) { - this._register(i.i(e2, i.c.KEY_DOWN, (e3) => t2(new o.a(e3)))); + this._register(i.i(e2, i.c.KEY_DOWN, (e3) => t2(new r.a(e3)))); } onkeyup(e2, t2) { - this._register(i.i(e2, i.c.KEY_UP, (e3) => t2(new o.a(e3)))); + this._register(i.i(e2, i.c.KEY_UP, (e3) => t2(new r.a(e3)))); } oninput(e2, t2) { this._register(i.i(e2, i.c.INPUT, t2)); @@ -24493,12 +24493,12 @@ }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; - }), n.d(t, "a", function() { return r; + }), n.d(t, "a", function() { + return o; }); var i = n(18); - class o { + class r { constructor(e2) { this.callback = e2; } @@ -24506,18 +24506,18 @@ this._value = e2, this.callback(this._value); } } - o.None = Object.freeze({report() { + r.None = Object.freeze({report() { }}); - const r = Object(i.c)("editorProgressService"); + const o = Object(i.c)("editorProgressService"); }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; - }), n.d(t, "a", function() { return r; + }), n.d(t, "a", function() { + return o; }); var i = n(18); - const o = Object(i.c)("contextViewService"), r = Object(i.c)("contextMenuService"); + const r = Object(i.c)("contextViewService"), o = Object(i.c)("contextMenuService"); }, function(e, t, n) { "use strict"; n.d(t, "b", function() { @@ -24525,133 +24525,133 @@ }), n.d(t, "a", function() { return i; }); - var i, o = n(14), r = n(22), s = n(81), a = n(129), l = n(9), c = n(3); + var i, r = n(14), o = n(22), s = n(81), a = n(129), l = n(9), c = n(3); class d { static addCursorDown(e2, t2, n2) { - let i2 = [], o2 = 0; + let i2 = [], r2 = 0; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - i2[o2++] = new r.d(l3.modelState, l3.viewState), i2[o2++] = n2 ? r.d.fromModelState(s.a.translateDown(e2.cursorConfig, e2.model, l3.modelState)) : r.d.fromViewState(s.a.translateDown(e2.cursorConfig, e2, l3.viewState)); + i2[r2++] = new o.d(l3.modelState, l3.viewState), i2[r2++] = n2 ? o.d.fromModelState(s.a.translateDown(e2.cursorConfig, e2.model, l3.modelState)) : o.d.fromViewState(s.a.translateDown(e2.cursorConfig, e2, l3.viewState)); } return i2; } static addCursorUp(e2, t2, n2) { - let i2 = [], o2 = 0; + let i2 = [], r2 = 0; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - i2[o2++] = new r.d(l3.modelState, l3.viewState), i2[o2++] = n2 ? r.d.fromModelState(s.a.translateUp(e2.cursorConfig, e2.model, l3.modelState)) : r.d.fromViewState(s.a.translateUp(e2.cursorConfig, e2, l3.viewState)); + i2[r2++] = new o.d(l3.modelState, l3.viewState), i2[r2++] = n2 ? o.d.fromModelState(s.a.translateUp(e2.cursorConfig, e2.model, l3.modelState)) : o.d.fromViewState(s.a.translateUp(e2.cursorConfig, e2, l3.viewState)); } return i2; } static moveToBeginningOfLine(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2]; - i2[o2] = this._moveToLineStart(e2, r3, n2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2]; + i2[r2] = this._moveToLineStart(e2, o3, n2); } return i2; } static _moveToLineStart(e2, t2, n2) { - const i2 = t2.viewState.position.column, o2 = i2 === t2.modelState.position.column, r2 = t2.viewState.position.lineNumber, s2 = e2.getLineFirstNonWhitespaceColumn(r2); - return o2 || i2 === s2 ? this._moveToLineStartByModel(e2, t2, n2) : this._moveToLineStartByView(e2, t2, n2); + const i2 = t2.viewState.position.column, r2 = i2 === t2.modelState.position.column, o2 = t2.viewState.position.lineNumber, s2 = e2.getLineFirstNonWhitespaceColumn(o2); + return r2 || i2 === s2 ? this._moveToLineStartByModel(e2, t2, n2) : this._moveToLineStartByView(e2, t2, n2); } static _moveToLineStartByView(e2, t2, n2) { - return r.d.fromViewState(s.a.moveToBeginningOfLine(e2.cursorConfig, e2, t2.viewState, n2)); + return o.d.fromViewState(s.a.moveToBeginningOfLine(e2.cursorConfig, e2, t2.viewState, n2)); } static _moveToLineStartByModel(e2, t2, n2) { - return r.d.fromModelState(s.a.moveToBeginningOfLine(e2.cursorConfig, e2.model, t2.modelState, n2)); + return o.d.fromModelState(s.a.moveToBeginningOfLine(e2.cursorConfig, e2.model, t2.modelState, n2)); } static moveToEndOfLine(e2, t2, n2, i2) { - let o2 = []; - for (let r2 = 0, s2 = t2.length; r2 < s2; r2++) { - const s3 = t2[r2]; - o2[r2] = this._moveToLineEnd(e2, s3, n2, i2); + let r2 = []; + for (let o2 = 0, s2 = t2.length; o2 < s2; o2++) { + const s3 = t2[o2]; + r2[o2] = this._moveToLineEnd(e2, s3, n2, i2); } - return o2; + return r2; } static _moveToLineEnd(e2, t2, n2, i2) { - const o2 = t2.viewState.position, r2 = e2.getLineMaxColumn(o2.lineNumber), s2 = o2.column === r2, a2 = t2.modelState.position, l2 = e2.model.getLineMaxColumn(a2.lineNumber), c2 = r2 - o2.column == l2 - a2.column; + const r2 = t2.viewState.position, o2 = e2.getLineMaxColumn(r2.lineNumber), s2 = r2.column === o2, a2 = t2.modelState.position, l2 = e2.model.getLineMaxColumn(a2.lineNumber), c2 = o2 - r2.column == l2 - a2.column; return s2 || c2 ? this._moveToLineEndByModel(e2, t2, n2, i2) : this._moveToLineEndByView(e2, t2, n2, i2); } static _moveToLineEndByView(e2, t2, n2, i2) { - return r.d.fromViewState(s.a.moveToEndOfLine(e2.cursorConfig, e2, t2.viewState, n2, i2)); + return o.d.fromViewState(s.a.moveToEndOfLine(e2.cursorConfig, e2, t2.viewState, n2, i2)); } static _moveToLineEndByModel(e2, t2, n2, i2) { - return r.d.fromModelState(s.a.moveToEndOfLine(e2.cursorConfig, e2.model, t2.modelState, n2, i2)); + return o.d.fromModelState(s.a.moveToEndOfLine(e2.cursorConfig, e2.model, t2.modelState, n2, i2)); } static expandLineSelection(e2, t2) { let n2 = []; - for (let i2 = 0, o2 = t2.length; i2 < o2; i2++) { - const o3 = t2[i2], s2 = o3.modelState.selection.startLineNumber, a2 = e2.model.getLineCount(); - let d2, h = o3.modelState.selection.endLineNumber; - h === a2 ? d2 = e2.model.getLineMaxColumn(a2) : (h++, d2 = 1), n2[i2] = r.d.fromModelState(new r.f(new c.a(s2, 1, s2, 1), 0, new l.a(h, d2), 0)); + for (let i2 = 0, r2 = t2.length; i2 < r2; i2++) { + const r3 = t2[i2], s2 = r3.modelState.selection.startLineNumber, a2 = e2.model.getLineCount(); + let d2, h = r3.modelState.selection.endLineNumber; + h === a2 ? d2 = e2.model.getLineMaxColumn(a2) : (h++, d2 = 1), n2[i2] = o.d.fromModelState(new o.f(new c.a(s2, 1, s2, 1), 0, new l.a(h, d2), 0)); } return n2; } static moveToBeginningOfBuffer(e2, t2, n2) { let i2 = []; - for (let o2 = 0, a2 = t2.length; o2 < a2; o2++) { - const a3 = t2[o2]; - i2[o2] = r.d.fromModelState(s.a.moveToBeginningOfBuffer(e2.cursorConfig, e2.model, a3.modelState, n2)); + for (let r2 = 0, a2 = t2.length; r2 < a2; r2++) { + const a3 = t2[r2]; + i2[r2] = o.d.fromModelState(s.a.moveToBeginningOfBuffer(e2.cursorConfig, e2.model, a3.modelState, n2)); } return i2; } static moveToEndOfBuffer(e2, t2, n2) { let i2 = []; - for (let o2 = 0, a2 = t2.length; o2 < a2; o2++) { - const a3 = t2[o2]; - i2[o2] = r.d.fromModelState(s.a.moveToEndOfBuffer(e2.cursorConfig, e2.model, a3.modelState, n2)); + for (let r2 = 0, a2 = t2.length; r2 < a2; r2++) { + const a3 = t2[r2]; + i2[r2] = o.d.fromModelState(s.a.moveToEndOfBuffer(e2.cursorConfig, e2.model, a3.modelState, n2)); } return i2; } static selectAll(e2, t2) { const n2 = e2.model.getLineCount(), i2 = e2.model.getLineMaxColumn(n2); - return r.d.fromModelState(new r.f(new c.a(1, 1, 1, 1), 0, new l.a(n2, i2), 0)); + return o.d.fromModelState(new o.f(new c.a(1, 1, 1, 1), 0, new l.a(n2, i2), 0)); } - static line(e2, t2, n2, i2, o2) { - const s2 = e2.model.validatePosition(i2), a2 = o2 ? e2.coordinatesConverter.validateViewPosition(new l.a(o2.lineNumber, o2.column), s2) : e2.coordinatesConverter.convertModelPositionToViewPosition(s2); + static line(e2, t2, n2, i2, r2) { + const s2 = e2.model.validatePosition(i2), a2 = r2 ? e2.coordinatesConverter.validateViewPosition(new l.a(r2.lineNumber, r2.column), s2) : e2.coordinatesConverter.convertModelPositionToViewPosition(s2); if (!n2 || !t2.modelState.hasSelection()) { const t3 = e2.model.getLineCount(); let n3 = s2.lineNumber + 1, i3 = 1; - return n3 > t3 && (n3 = t3, i3 = e2.model.getLineMaxColumn(n3)), r.d.fromModelState(new r.f(new c.a(s2.lineNumber, 1, n3, i3), 0, new l.a(n3, i3), 0)); + return n3 > t3 && (n3 = t3, i3 = e2.model.getLineMaxColumn(n3)), o.d.fromModelState(new o.f(new c.a(s2.lineNumber, 1, n3, i3), 0, new l.a(n3, i3), 0)); } const d2 = t2.modelState.selectionStart.getStartPosition().lineNumber; if (s2.lineNumber < d2) - return r.d.fromViewState(t2.viewState.move(t2.modelState.hasSelection(), a2.lineNumber, 1, 0)); + return o.d.fromViewState(t2.viewState.move(t2.modelState.hasSelection(), a2.lineNumber, 1, 0)); if (s2.lineNumber > d2) { const n3 = e2.getLineCount(); - let i3 = a2.lineNumber + 1, o3 = 1; - return i3 > n3 && (i3 = n3, o3 = e2.getLineMaxColumn(i3)), r.d.fromViewState(t2.viewState.move(t2.modelState.hasSelection(), i3, o3, 0)); + let i3 = a2.lineNumber + 1, r3 = 1; + return i3 > n3 && (i3 = n3, r3 = e2.getLineMaxColumn(i3)), o.d.fromViewState(t2.viewState.move(t2.modelState.hasSelection(), i3, r3, 0)); } { const e3 = t2.modelState.selectionStart.getEndPosition(); - return r.d.fromModelState(t2.modelState.move(t2.modelState.hasSelection(), e3.lineNumber, e3.column, 0)); + return o.d.fromModelState(t2.modelState.move(t2.modelState.hasSelection(), e3.lineNumber, e3.column, 0)); } } static word(e2, t2, n2, i2) { - const o2 = e2.model.validatePosition(i2); - return r.d.fromModelState(a.a.word(e2.cursorConfig, e2.model, t2.modelState, n2, o2)); + const r2 = e2.model.validatePosition(i2); + return o.d.fromModelState(a.a.word(e2.cursorConfig, e2.model, t2.modelState, n2, r2)); } static cancelSelection(e2, t2) { if (!t2.modelState.hasSelection()) - return new r.d(t2.modelState, t2.viewState); + return new o.d(t2.modelState, t2.viewState); const n2 = t2.viewState.position.lineNumber, i2 = t2.viewState.position.column; - return r.d.fromViewState(new r.f(new c.a(n2, i2, n2, i2), 0, new l.a(n2, i2), 0)); + return o.d.fromViewState(new o.f(new c.a(n2, i2, n2, i2), 0, new l.a(n2, i2), 0)); } - static moveTo(e2, t2, n2, i2, o2) { - const s2 = e2.model.validatePosition(i2), a2 = o2 ? e2.coordinatesConverter.validateViewPosition(new l.a(o2.lineNumber, o2.column), s2) : e2.coordinatesConverter.convertModelPositionToViewPosition(s2); - return r.d.fromViewState(t2.viewState.move(n2, a2.lineNumber, a2.column, 0)); + static moveTo(e2, t2, n2, i2, r2) { + const s2 = e2.model.validatePosition(i2), a2 = r2 ? e2.coordinatesConverter.validateViewPosition(new l.a(r2.lineNumber, r2.column), s2) : e2.coordinatesConverter.convertModelPositionToViewPosition(s2); + return o.d.fromViewState(t2.viewState.move(n2, a2.lineNumber, a2.column, 0)); } - static simpleMove(e2, t2, n2, i2, o2, r2) { + static simpleMove(e2, t2, n2, i2, r2, o2) { switch (n2) { case 0: - return r2 === 4 ? this._moveHalfLineLeft(e2, t2, i2) : this._moveLeft(e2, t2, i2, o2); + return o2 === 4 ? this._moveHalfLineLeft(e2, t2, i2) : this._moveLeft(e2, t2, i2, r2); case 1: - return r2 === 4 ? this._moveHalfLineRight(e2, t2, i2) : this._moveRight(e2, t2, i2, o2); + return o2 === 4 ? this._moveHalfLineRight(e2, t2, i2) : this._moveRight(e2, t2, i2, r2); case 2: - return r2 === 2 ? this._moveUpByViewLines(e2, t2, i2, o2) : this._moveUpByModelLines(e2, t2, i2, o2); + return o2 === 2 ? this._moveUpByViewLines(e2, t2, i2, r2) : this._moveUpByModelLines(e2, t2, i2, r2); case 3: - return r2 === 2 ? this._moveDownByViewLines(e2, t2, i2, o2) : this._moveDownByModelLines(e2, t2, i2, o2); + return o2 === 2 ? this._moveDownByViewLines(e2, t2, i2, r2) : this._moveDownByModelLines(e2, t2, i2, r2); case 4: return this._moveToViewMinColumn(e2, t2, i2); case 5: @@ -24666,26 +24666,26 @@ return null; } } - static viewportMove(e2, t2, n2, i2, o2) { - const r2 = e2.getCompletelyVisibleViewRange(), s2 = e2.coordinatesConverter.convertViewRangeToModelRange(r2); + static viewportMove(e2, t2, n2, i2, r2) { + const o2 = e2.getCompletelyVisibleViewRange(), s2 = e2.coordinatesConverter.convertViewRangeToModelRange(o2); switch (n2) { case 9: { - const n3 = this._firstLineNumberInRange(e2.model, s2, o2), r3 = e2.model.getLineFirstNonWhitespaceColumn(n3); - return [this._moveToModelPosition(e2, t2[0], i2, n3, r3)]; + const n3 = this._firstLineNumberInRange(e2.model, s2, r2), o3 = e2.model.getLineFirstNonWhitespaceColumn(n3); + return [this._moveToModelPosition(e2, t2[0], i2, n3, o3)]; } case 11: { - const n3 = this._lastLineNumberInRange(e2.model, s2, o2), r3 = e2.model.getLineFirstNonWhitespaceColumn(n3); - return [this._moveToModelPosition(e2, t2[0], i2, n3, r3)]; + const n3 = this._lastLineNumberInRange(e2.model, s2, r2), o3 = e2.model.getLineFirstNonWhitespaceColumn(n3); + return [this._moveToModelPosition(e2, t2[0], i2, n3, o3)]; } case 10: { - const n3 = Math.round((s2.startLineNumber + s2.endLineNumber) / 2), o3 = e2.model.getLineFirstNonWhitespaceColumn(n3); - return [this._moveToModelPosition(e2, t2[0], i2, n3, o3)]; + const n3 = Math.round((s2.startLineNumber + s2.endLineNumber) / 2), r3 = e2.model.getLineFirstNonWhitespaceColumn(n3); + return [this._moveToModelPosition(e2, t2[0], i2, n3, r3)]; } case 12: { let n3 = []; - for (let o3 = 0, s3 = t2.length; o3 < s3; o3++) { - const s4 = t2[o3]; - n3[o3] = this.findPositionInViewportIfOutside(e2, s4, r2, i2); + for (let r3 = 0, s3 = t2.length; r3 < s3; r3++) { + const s4 = t2[r3]; + n3[r3] = this.findPositionInViewportIfOutside(e2, s4, o2, i2); } return n3; } @@ -24694,13 +24694,13 @@ } } static findPositionInViewportIfOutside(e2, t2, n2, i2) { - let o2 = t2.viewState.position.lineNumber; - if (n2.startLineNumber <= o2 && o2 <= n2.endLineNumber - 1) - return new r.d(t2.modelState, t2.viewState); + let r2 = t2.viewState.position.lineNumber; + if (n2.startLineNumber <= r2 && r2 <= n2.endLineNumber - 1) + return new o.d(t2.modelState, t2.viewState); { - o2 > n2.endLineNumber - 1 && (o2 = n2.endLineNumber - 1), o2 < n2.startLineNumber && (o2 = n2.startLineNumber); - const r2 = e2.getLineFirstNonWhitespaceColumn(o2); - return this._moveToViewPosition(e2, t2, i2, o2, r2); + r2 > n2.endLineNumber - 1 && (r2 = n2.endLineNumber - 1), r2 < n2.startLineNumber && (r2 = n2.startLineNumber); + const o2 = e2.getLineFirstNonWhitespaceColumn(r2); + return this._moveToViewPosition(e2, t2, i2, r2, o2); } } static _firstLineNumberInRange(e2, t2, n2) { @@ -24712,132 +24712,132 @@ return t2.startColumn !== e2.getLineMinColumn(i2) && i2++, Math.max(i2, t2.endLineNumber - n2 + 1); } static _moveLeft(e2, t2, n2, i2) { - const o2 = t2.length > 1; + const r2 = t2.length > 1; let a2 = []; for (let l2 = 0, c2 = t2.length; l2 < c2; l2++) { - const c3 = t2[l2], d2 = o2 || !c3.viewState.hasSelection(); + const c3 = t2[l2], d2 = r2 || !c3.viewState.hasSelection(); let h = s.a.moveLeft(e2.cursorConfig, e2, c3.viewState, n2, i2); if (d2 && i2 === 1 && h.position.lineNumber !== c3.viewState.position.lineNumber) { e2.coordinatesConverter.convertViewPositionToModelPosition(h.position).lineNumber === c3.modelState.position.lineNumber && (h = s.a.moveLeft(e2.cursorConfig, e2, h, n2, 1)); } - a2[l2] = r.d.fromViewState(h); + a2[l2] = o.d.fromViewState(h); } return a2; } static _moveHalfLineLeft(e2, t2, n2) { let i2 = []; - for (let o2 = 0, a2 = t2.length; o2 < a2; o2++) { - const a3 = t2[o2], l2 = a3.viewState.position.lineNumber, c2 = Math.round(e2.getLineContent(l2).length / 2); - i2[o2] = r.d.fromViewState(s.a.moveLeft(e2.cursorConfig, e2, a3.viewState, n2, c2)); + for (let r2 = 0, a2 = t2.length; r2 < a2; r2++) { + const a3 = t2[r2], l2 = a3.viewState.position.lineNumber, c2 = Math.round(e2.getLineContent(l2).length / 2); + i2[r2] = o.d.fromViewState(s.a.moveLeft(e2.cursorConfig, e2, a3.viewState, n2, c2)); } return i2; } static _moveRight(e2, t2, n2, i2) { - const o2 = t2.length > 1; + const r2 = t2.length > 1; let a2 = []; for (let l2 = 0, c2 = t2.length; l2 < c2; l2++) { - const c3 = t2[l2], d2 = o2 || !c3.viewState.hasSelection(); + const c3 = t2[l2], d2 = r2 || !c3.viewState.hasSelection(); let h = s.a.moveRight(e2.cursorConfig, e2, c3.viewState, n2, i2); if (d2 && i2 === 1 && h.position.lineNumber !== c3.viewState.position.lineNumber) { e2.coordinatesConverter.convertViewPositionToModelPosition(h.position).lineNumber === c3.modelState.position.lineNumber && (h = s.a.moveRight(e2.cursorConfig, e2, h, n2, 1)); } - a2[l2] = r.d.fromViewState(h); + a2[l2] = o.d.fromViewState(h); } return a2; } static _moveHalfLineRight(e2, t2, n2) { let i2 = []; - for (let o2 = 0, a2 = t2.length; o2 < a2; o2++) { - const a3 = t2[o2], l2 = a3.viewState.position.lineNumber, c2 = Math.round(e2.getLineContent(l2).length / 2); - i2[o2] = r.d.fromViewState(s.a.moveRight(e2.cursorConfig, e2, a3.viewState, n2, c2)); + for (let r2 = 0, a2 = t2.length; r2 < a2; r2++) { + const a3 = t2[r2], l2 = a3.viewState.position.lineNumber, c2 = Math.round(e2.getLineContent(l2).length / 2); + i2[r2] = o.d.fromViewState(s.a.moveRight(e2.cursorConfig, e2, a3.viewState, n2, c2)); } return i2; } static _moveDownByViewLines(e2, t2, n2, i2) { - let o2 = []; + let r2 = []; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - o2[a2] = r.d.fromViewState(s.a.moveDown(e2.cursorConfig, e2, l3.viewState, n2, i2)); + r2[a2] = o.d.fromViewState(s.a.moveDown(e2.cursorConfig, e2, l3.viewState, n2, i2)); } - return o2; + return r2; } static _moveDownByModelLines(e2, t2, n2, i2) { - let o2 = []; + let r2 = []; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - o2[a2] = r.d.fromModelState(s.a.moveDown(e2.cursorConfig, e2.model, l3.modelState, n2, i2)); + r2[a2] = o.d.fromModelState(s.a.moveDown(e2.cursorConfig, e2.model, l3.modelState, n2, i2)); } - return o2; + return r2; } static _moveUpByViewLines(e2, t2, n2, i2) { - let o2 = []; + let r2 = []; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - o2[a2] = r.d.fromViewState(s.a.moveUp(e2.cursorConfig, e2, l3.viewState, n2, i2)); + r2[a2] = o.d.fromViewState(s.a.moveUp(e2.cursorConfig, e2, l3.viewState, n2, i2)); } - return o2; + return r2; } static _moveUpByModelLines(e2, t2, n2, i2) { - let o2 = []; + let r2 = []; for (let a2 = 0, l2 = t2.length; a2 < l2; a2++) { const l3 = t2[a2]; - o2[a2] = r.d.fromModelState(s.a.moveUp(e2.cursorConfig, e2.model, l3.modelState, n2, i2)); + r2[a2] = o.d.fromModelState(s.a.moveUp(e2.cursorConfig, e2.model, l3.modelState, n2, i2)); } - return o2; + return r2; } - static _moveToViewPosition(e2, t2, n2, i2, o2) { - return r.d.fromViewState(t2.viewState.move(n2, i2, o2, 0)); + static _moveToViewPosition(e2, t2, n2, i2, r2) { + return o.d.fromViewState(t2.viewState.move(n2, i2, r2, 0)); } - static _moveToModelPosition(e2, t2, n2, i2, o2) { - return r.d.fromModelState(t2.modelState.move(n2, i2, o2, 0)); + static _moveToModelPosition(e2, t2, n2, i2, r2) { + return o.d.fromModelState(t2.modelState.move(n2, i2, r2, 0)); } static _moveToViewMinColumn(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = r3.viewState.position.lineNumber, a2 = e2.getLineMinColumn(s2); - i2[o2] = this._moveToViewPosition(e2, r3, n2, s2, a2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = o3.viewState.position.lineNumber, a2 = e2.getLineMinColumn(s2); + i2[r2] = this._moveToViewPosition(e2, o3, n2, s2, a2); } return i2; } static _moveToViewFirstNonWhitespaceColumn(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = r3.viewState.position.lineNumber, a2 = e2.getLineFirstNonWhitespaceColumn(s2); - i2[o2] = this._moveToViewPosition(e2, r3, n2, s2, a2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = o3.viewState.position.lineNumber, a2 = e2.getLineFirstNonWhitespaceColumn(s2); + i2[r2] = this._moveToViewPosition(e2, o3, n2, s2, a2); } return i2; } static _moveToViewCenterColumn(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = r3.viewState.position.lineNumber, a2 = Math.round((e2.getLineMaxColumn(s2) + e2.getLineMinColumn(s2)) / 2); - i2[o2] = this._moveToViewPosition(e2, r3, n2, s2, a2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = o3.viewState.position.lineNumber, a2 = Math.round((e2.getLineMaxColumn(s2) + e2.getLineMinColumn(s2)) / 2); + i2[r2] = this._moveToViewPosition(e2, o3, n2, s2, a2); } return i2; } static _moveToViewMaxColumn(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = r3.viewState.position.lineNumber, a2 = e2.getLineMaxColumn(s2); - i2[o2] = this._moveToViewPosition(e2, r3, n2, s2, a2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = o3.viewState.position.lineNumber, a2 = e2.getLineMaxColumn(s2); + i2[r2] = this._moveToViewPosition(e2, o3, n2, s2, a2); } return i2; } static _moveToViewLastNonWhitespaceColumn(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = r3.viewState.position.lineNumber, a2 = e2.getLineLastNonWhitespaceColumn(s2); - i2[o2] = this._moveToViewPosition(e2, r3, n2, s2, a2); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = o3.viewState.position.lineNumber, a2 = e2.getLineLastNonWhitespaceColumn(s2); + i2[r2] = this._moveToViewPosition(e2, o3, n2, s2, a2); } return i2; } } !function(e2) { e2.description = {description: "Move cursor to a logical position in the view", args: [{name: "Cursor move argument object", description: "Property-value pairs that can be passed through this argument:\n * 'to': A mandatory logical position value providing where to move the cursor.\n ```\n 'left', 'right', 'up', 'down'\n 'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n 'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n 'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'character', 'halfLine'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'select': If 'true' makes the selection. Default is 'false'.\n ", constraint: function(e3) { - if (!o.i(e3)) + if (!r.i(e3)) return false; let t2 = e3; - return !!o.j(t2.to) && (!(!o.k(t2.select) && !o.f(t2.select)) && (!(!o.k(t2.by) && !o.j(t2.by)) && !(!o.k(t2.value) && !o.h(t2.value)))); + return !!r.j(t2.to) && (!(!r.k(t2.select) && !r.f(t2.select)) && (!(!r.k(t2.by) && !r.j(t2.by)) && !(!r.k(t2.value) && !r.h(t2.value)))); }, schema: {type: "object", required: ["to"], properties: {to: {type: "string", enum: ["left", "right", "up", "down", "wrappedLineStart", "wrappedLineEnd", "wrappedLineColumnCenter", "wrappedLineFirstNonWhitespaceCharacter", "wrappedLineLastNonWhitespaceCharacter", "viewPortTop", "viewPortCenter", "viewPortBottom", "viewPortIfOutside"]}, by: {type: "string", enum: ["line", "wrappedLine", "character", "halfLine"]}, value: {type: "number", default: 1}, select: {type: "boolean", default: false}}}}]}, e2.RawDirection = {Left: "left", Right: "right", Up: "up", Down: "down", WrappedLineStart: "wrappedLineStart", WrappedLineFirstNonWhitespaceCharacter: "wrappedLineFirstNonWhitespaceCharacter", WrappedLineColumnCenter: "wrappedLineColumnCenter", WrappedLineEnd: "wrappedLineEnd", WrappedLineLastNonWhitespaceCharacter: "wrappedLineLastNonWhitespaceCharacter", ViewPortTop: "viewPortTop", ViewPortCenter: "viewPortCenter", ViewPortBottom: "viewPortBottom", ViewPortIfOutside: "viewPortIfOutside"}, e2.RawUnit = {Line: "line", WrappedLine: "wrappedLine", Character: "character", HalfLine: "halfLine"}, e2.parse = function(t2) { if (!t2.to) return null; @@ -24903,8 +24903,8 @@ }; }(i || (i = {})); }, function(e, t) { - var n, i, o = e.exports = {}; - function r() { + var n, i, r = e.exports = {}; + function o() { throw new Error("setTimeout has not been defined"); } function s() { @@ -24913,7 +24913,7 @@ function a(e2) { if (n === setTimeout) return setTimeout(e2, 0); - if ((n === r || !n) && setTimeout) + if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(e2, 0); try { return n(e2, 0); @@ -24927,9 +24927,9 @@ } !function() { try { - n = typeof setTimeout == "function" ? setTimeout : r; + n = typeof setTimeout == "function" ? setTimeout : o; } catch (e2) { - n = r; + n = o; } try { i = typeof clearTimeout == "function" ? clearTimeout : s; @@ -24972,7 +24972,7 @@ } function g() { } - o.nextTick = function(e2) { + r.nextTick = function(e2) { var t2 = new Array(arguments.length - 1); if (arguments.length > 1) for (var n2 = 1; n2 < arguments.length; n2++) @@ -24980,15 +24980,15 @@ c.push(new m(e2, t2)), c.length !== 1 || d || a(p); }, m.prototype.run = function() { this.fun.apply(null, this.array); - }, o.title = "browser", o.browser = true, o.env = {}, o.argv = [], o.version = "", o.versions = {}, o.on = g, o.addListener = g, o.once = g, o.off = g, o.removeListener = g, o.removeAllListeners = g, o.emit = g, o.prependListener = g, o.prependOnceListener = g, o.listeners = function(e2) { + }, r.title = "browser", r.browser = true, r.env = {}, r.argv = [], r.version = "", r.versions = {}, r.on = g, r.addListener = g, r.once = g, r.off = g, r.removeListener = g, r.removeAllListeners = g, r.emit = g, r.prependListener = g, r.prependOnceListener = g, r.listeners = function(e2) { return []; - }, o.binding = function(e2) { + }, r.binding = function(e2) { throw new Error("process.binding is not supported"); - }, o.cwd = function() { + }, r.cwd = function() { return "/"; - }, o.chdir = function(e2) { + }, r.chdir = function(e2) { throw new Error("process.chdir is not supported"); - }, o.umask = function() { + }, r.umask = function() { return 0; }; }, function(e, t, n) { @@ -24998,7 +24998,7 @@ }), n.d(t, "a", function() { return f; }); - var i = n(34), o = n(6), r = n(2), s = n(11); + var i = n(34), r = n(6), o = n(2), s = n(11); class a { constructor(e2, t2) { this.chr = e2, this.type = t2, this.width = 0; @@ -25023,14 +25023,14 @@ n2.style.fontFamily = this._bareFontInfo.getMassagedFontFamily(), n2.style.fontWeight = "bold", n2.style.fontSize = this._bareFontInfo.fontSize + "px", n2.style.fontFeatureSettings = this._bareFontInfo.fontFeatureSettings, n2.style.lineHeight = this._bareFontInfo.lineHeight + "px", n2.style.letterSpacing = this._bareFontInfo.letterSpacing + "px", e2.appendChild(n2); const i2 = document.createElement("div"); i2.style.fontFamily = this._bareFontInfo.getMassagedFontFamily(), i2.style.fontWeight = this._bareFontInfo.fontWeight, i2.style.fontSize = this._bareFontInfo.fontSize + "px", i2.style.fontFeatureSettings = this._bareFontInfo.fontFeatureSettings, i2.style.lineHeight = this._bareFontInfo.lineHeight + "px", i2.style.letterSpacing = this._bareFontInfo.letterSpacing + "px", i2.style.fontStyle = "italic", e2.appendChild(i2); - const o2 = []; + const r2 = []; for (const e3 of this._requests) { - let r2; - e3.type === 0 && (r2 = t2), e3.type === 2 && (r2 = n2), e3.type === 1 && (r2 = i2), r2.appendChild(document.createElement("br")); + let o2; + e3.type === 0 && (o2 = t2), e3.type === 2 && (o2 = n2), e3.type === 1 && (o2 = i2), o2.appendChild(document.createElement("br")); const s2 = document.createElement("span"); - l._render(s2, e3), r2.appendChild(s2), o2.push(s2); + l._render(s2, e3), o2.appendChild(s2), r2.push(s2); } - this._container = e2, this._testElements = o2; + this._container = e2, this._testElements = r2; } static _render(e2, t2) { if (t2.chr === " ") { @@ -25080,9 +25080,9 @@ function m() { g.INSTANCE.clearCache(); } - class g extends r.a { + class g extends o.a { constructor() { - super(), this._onDidChange = this._register(new o.a()), this.onDidChange = this._onDidChange.event, this._cache = new p(), this._evictUntrustedReadingsTimeout = -1; + super(), this._onDidChange = this._register(new r.a()), this.onDidChange = this._onDidChange.event, this._cache = new p(), this._evictUntrustedReadingsTimeout = -1; } dispose() { this._evictUntrustedReadingsTimeout !== -1 && (clearTimeout(this._evictUntrustedReadingsTimeout), this._evictUntrustedReadingsTimeout = -1), super.dispose(); @@ -25112,11 +25112,11 @@ return this._cache.get(e2); } static createRequest(e2, t2, n2, i2) { - const o2 = new a(e2, t2); - return n2.push(o2), i2 && i2.push(o2), o2; + const r2 = new a(e2, t2); + return n2.push(r2), i2 && i2.push(r2), r2; } static _actualReadConfiguration(e2) { - const t2 = [], n2 = [], o2 = this.createRequest("n", 0, t2, n2), r2 = this.createRequest("\uFF4D", 0, t2, null), s2 = this.createRequest(" ", 0, t2, n2), a2 = this.createRequest("0", 0, t2, n2), c2 = this.createRequest("1", 0, t2, n2), d2 = this.createRequest("2", 0, t2, n2), p2 = this.createRequest("3", 0, t2, n2), m2 = this.createRequest("4", 0, t2, n2), g2 = this.createRequest("5", 0, t2, n2), f2 = this.createRequest("6", 0, t2, n2), b = this.createRequest("7", 0, t2, n2), _ = this.createRequest("8", 0, t2, n2), v = this.createRequest("9", 0, t2, n2), w = this.createRequest("\u2192", 0, t2, n2), y = this.createRequest("\uFFEB", 0, t2, null), C = this.createRequest("\xB7", 0, t2, n2), x = this.createRequest(String.fromCharCode(11825), 0, t2, null); + const t2 = [], n2 = [], r2 = this.createRequest("n", 0, t2, n2), o2 = this.createRequest("\uFF4D", 0, t2, null), s2 = this.createRequest(" ", 0, t2, n2), a2 = this.createRequest("0", 0, t2, n2), c2 = this.createRequest("1", 0, t2, n2), d2 = this.createRequest("2", 0, t2, n2), p2 = this.createRequest("3", 0, t2, n2), m2 = this.createRequest("4", 0, t2, n2), g2 = this.createRequest("5", 0, t2, n2), f2 = this.createRequest("6", 0, t2, n2), b = this.createRequest("7", 0, t2, n2), _ = this.createRequest("8", 0, t2, n2), v = this.createRequest("9", 0, t2, n2), w = this.createRequest("\u2192", 0, t2, n2), y = this.createRequest("\uFFEB", 0, t2, null), C = this.createRequest("\xB7", 0, t2, n2), x = this.createRequest(String.fromCharCode(11825), 0, t2, null); this.createRequest("|", 0, t2, n2), this.createRequest("/", 0, t2, n2), this.createRequest("-", 0, t2, n2), this.createRequest("_", 0, t2, n2), this.createRequest("i", 0, t2, n2), this.createRequest("l", 0, t2, n2), this.createRequest("m", 0, t2, n2), this.createRequest("|", 1, t2, n2), this.createRequest("_", 1, t2, n2), this.createRequest("i", 1, t2, n2), this.createRequest("l", 1, t2, n2), this.createRequest("m", 1, t2, n2), this.createRequest("n", 1, t2, n2), this.createRequest("|", 2, t2, n2), this.createRequest("_", 2, t2, n2), this.createRequest("i", 2, t2, n2), this.createRequest("l", 2, t2, n2), this.createRequest("m", 2, t2, n2), this.createRequest("n", 2, t2, n2), function(e3, t3) { new l(e3, t3).read(); }(e2, t2); @@ -25133,13 +25133,13 @@ let T = true; k && y.width !== E && (T = false), y.width > w.width && (T = false); const L = i.b() > 2e3; - return new u.b({zoomLevel: i.d(), fontFamily: e2.fontFamily, fontWeight: e2.fontWeight, fontSize: e2.fontSize, fontFeatureSettings: e2.fontFeatureSettings, lineHeight: e2.lineHeight, letterSpacing: e2.letterSpacing, isMonospace: k, typicalHalfwidthCharacterWidth: o2.width, typicalFullwidthCharacterWidth: r2.width, canUseHalfwidthRightwardsArrow: T, spaceWidth: s2.width, middotWidth: C.width, wsmiddotWidth: x.width, maxDigitWidth: S}, L); + return new u.b({zoomLevel: i.d(), fontFamily: e2.fontFamily, fontWeight: e2.fontWeight, fontSize: e2.fontSize, fontFeatureSettings: e2.fontFeatureSettings, lineHeight: e2.lineHeight, letterSpacing: e2.letterSpacing, isMonospace: k, typicalHalfwidthCharacterWidth: r2.width, typicalFullwidthCharacterWidth: o2.width, canUseHalfwidthRightwardsArrow: T, spaceWidth: s2.width, middotWidth: C.width, wsmiddotWidth: x.width, maxDigitWidth: S}, L); } } g.INSTANCE = new g(); class f extends d.a { - constructor(e2, t2, n2 = null, o2) { - super(e2, t2), this.accessibilityService = o2, this._elementSizeObserver = this._register(new c.a(n2, t2.dimension, () => this._onReferenceDomElementSizeChanged())), this._register(g.INSTANCE.onDidChange(() => this._onCSSBasedConfigurationChanged())), this._validatedOptions.get(9) && this._elementSizeObserver.startObserving(), this._register(i.n((e3) => this._recomputeOptions())), this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(() => this._recomputeOptions())), this._recomputeOptions(); + constructor(e2, t2, n2 = null, r2) { + super(e2, t2), this.accessibilityService = r2, this._elementSizeObserver = this._register(new c.a(n2, t2.dimension, () => this._onReferenceDomElementSizeChanged())), this._register(g.INSTANCE.onDidChange(() => this._onCSSBasedConfigurationChanged())), this._validatedOptions.get(9) && this._elementSizeObserver.startObserving(), this._register(i.n((e3) => this._recomputeOptions())), this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(() => this._recomputeOptions())), this._recomputeOptions(); } static applyFontInfoSlow(e2, t2) { e2.style.fontFamily = t2.getMassagedFontFamily(), e2.style.fontWeight = t2.fontWeight, e2.style.fontSize = t2.fontSize + "px", e2.style.fontFeatureSettings = t2.fontFeatureSettings, e2.style.lineHeight = t2.lineHeight + "px", e2.style.letterSpacing = t2.letterSpacing + "px"; @@ -25181,7 +25181,7 @@ }), n.d(t, "c", function() { return _; }); - var i = n(8), o = n(3), r = n(25), s = n(2), a = n(4), l = n(10), c = n(53), d = n(18), h = n(115); + var i = n(8), r = n(3), o = n(25), s = n(2), a = n(4), l = n(10), c = n(53), d = n(18), h = n(115); const u = Object(d.c)("IEditorCancelService"), p = new l.c("cancellableOperation", false); Object(h.b)(u, class { constructor() { @@ -25201,7 +25201,7 @@ n2 && (n2.cancel(), t2.key.set(!t2.tokens.isEmpty())); } }, true); - class m extends r.b { + class m extends o.b { constructor(e2, t2) { super(t2), this.editor = e2, this._unregister = e2.invokeWithinContext((t3) => t3.get(u).add(e2, this)); } @@ -25239,16 +25239,16 @@ class f extends m { constructor(e2, t2, n2, i2) { super(e2, i2), this.editor = e2, this._listener = new s.b(), 4 & t2 && this._listener.add(e2.onDidChangeCursorPosition((e3) => { - n2 && o.a.containsPosition(n2, e3.position) || this.cancel(); + n2 && r.a.containsPosition(n2, e3.position) || this.cancel(); })), 2 & t2 && this._listener.add(e2.onDidChangeCursorSelection((e3) => { - n2 && o.a.containsRange(n2, e3.selection) || this.cancel(); + n2 && r.a.containsRange(n2, e3.selection) || this.cancel(); })), 8 & t2 && this._listener.add(e2.onDidScrollChange((e3) => this.cancel())), 1 & t2 && (this._listener.add(e2.onDidChangeModel((e3) => this.cancel())), this._listener.add(e2.onDidChangeModelContent((e3) => this.cancel()))); } dispose() { this._listener.dispose(), super.dispose(); } } - class b extends r.b { + class b extends o.b { constructor(e2, t2) { super(t2), this._listener = e2.onDidChangeContent(() => this.cancel()); } @@ -25266,8 +25266,8 @@ const i2 = e2.getVisibleRanges(); if (i2.length > 0) { t2 = i2[0].getStartPosition(); - const o2 = e2.getTopForPosition(t2.lineNumber, t2.column); - n2 = e2.getScrollTop() - o2; + const r2 = e2.getTopForPosition(t2.lineNumber, t2.column); + n2 = e2.getScrollTop() - r2; } } return new _(t2, n2, e2.getPosition()); @@ -25289,21 +25289,21 @@ }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; + return r; }), n.d(t, "c", function() { return a; }), n.d(t, "a", function() { return h; }); var i = n(8); - function o(e2) { - return r(e2, 0); + function r(e2) { + return o(e2, 0); } - function r(e2, t2) { + function o(e2, t2) { switch (typeof e2) { case "object": - return e2 === null ? s(349, t2) : Array.isArray(e2) ? (n2 = e2, i2 = s(104579, i2 = t2), n2.reduce((e3, t3) => r(t3, e3), i2)) : function(e3, t3) { - return t3 = s(181387, t3), Object.keys(e3).sort().reduce((t4, n3) => (t4 = a(n3, t4), r(e3[n3], t4)), t3); + return e2 === null ? s(349, t2) : Array.isArray(e2) ? (n2 = e2, i2 = s(104579, i2 = t2), n2.reduce((e3, t3) => o(t3, e3), i2)) : function(e3, t3) { + return t3 = s(181387, t3), Object.keys(e3).sort().reduce((t4, n3) => (t4 = a(n3, t4), o(e3[n3], t4)), t3); }(e2, t2); case "string": return a(e2, t2); @@ -25334,8 +25334,8 @@ return (e2 << t2 | (~((1 << i2) - 1) & e2) >>> i2) >>> 0; } function c(e2, t2 = 0, n2 = e2.byteLength, i2 = 0) { - for (let o2 = 0; o2 < n2; o2++) - e2[t2 + o2] = i2; + for (let r2 = 0; r2 < n2; r2++) + e2[t2 + r2] = i2; } function d(e2, t2 = 32) { return function(e3, t3, n2 = "0") { @@ -25353,23 +25353,23 @@ if (t2 === 0) return; const n2 = this._buff; - let o2, r2, s2 = this._buffLen, a2 = this._leftoverHighSurrogate; - for (a2 !== 0 ? (o2 = a2, r2 = -1, a2 = 0) : (o2 = e2.charCodeAt(0), r2 = 0); ; ) { - let l2 = o2; - if (i.F(o2)) { - if (!(r2 + 1 < t2)) { - a2 = o2; + let r2, o2, s2 = this._buffLen, a2 = this._leftoverHighSurrogate; + for (a2 !== 0 ? (r2 = a2, o2 = -1, a2 = 0) : (r2 = e2.charCodeAt(0), o2 = 0); ; ) { + let l2 = r2; + if (i.F(r2)) { + if (!(o2 + 1 < t2)) { + a2 = r2; break; } { - const t3 = e2.charCodeAt(r2 + 1); - i.G(t3) ? (r2++, l2 = i.j(o2, t3)) : l2 = 65533; + const t3 = e2.charCodeAt(o2 + 1); + i.G(t3) ? (o2++, l2 = i.j(r2, t3)) : l2 = 65533; } } else - i.G(o2) && (l2 = 65533); - if (s2 = this._push(n2, s2, l2), r2++, !(r2 < t2)) + i.G(r2) && (l2 = 65533); + if (s2 = this._push(n2, s2, l2), o2++, !(o2 < t2)) break; - o2 = e2.charCodeAt(r2); + r2 = e2.charCodeAt(o2); } this._buffLen = s2, this._leftoverHighSurrogate = a2; } @@ -25390,17 +25390,17 @@ e2.setUint32(n3, t2.getUint32(n3, false), false); for (let t3 = 64; t3 < 320; t3 += 4) e2.setUint32(t3, l(e2.getUint32(t3 - 12, false) ^ e2.getUint32(t3 - 32, false) ^ e2.getUint32(t3 - 56, false) ^ e2.getUint32(t3 - 64, false), 1), false); - let n2, i2, o2, r2 = this._h0, s2 = this._h1, a2 = this._h2, c2 = this._h3, d2 = this._h4; + let n2, i2, r2, o2 = this._h0, s2 = this._h1, a2 = this._h2, c2 = this._h3, d2 = this._h4; for (let t3 = 0; t3 < 80; t3++) - t3 < 20 ? (n2 = s2 & a2 | ~s2 & c2, i2 = 1518500249) : t3 < 40 ? (n2 = s2 ^ a2 ^ c2, i2 = 1859775393) : t3 < 60 ? (n2 = s2 & a2 | s2 & c2 | a2 & c2, i2 = 2400959708) : (n2 = s2 ^ a2 ^ c2, i2 = 3395469782), o2 = l(r2, 5) + n2 + d2 + i2 + e2.getUint32(4 * t3, false) & 4294967295, d2 = c2, c2 = a2, a2 = l(s2, 30), s2 = r2, r2 = o2; - this._h0 = this._h0 + r2 & 4294967295, this._h1 = this._h1 + s2 & 4294967295, this._h2 = this._h2 + a2 & 4294967295, this._h3 = this._h3 + c2 & 4294967295, this._h4 = this._h4 + d2 & 4294967295; + t3 < 20 ? (n2 = s2 & a2 | ~s2 & c2, i2 = 1518500249) : t3 < 40 ? (n2 = s2 ^ a2 ^ c2, i2 = 1859775393) : t3 < 60 ? (n2 = s2 & a2 | s2 & c2 | a2 & c2, i2 = 2400959708) : (n2 = s2 ^ a2 ^ c2, i2 = 3395469782), r2 = l(o2, 5) + n2 + d2 + i2 + e2.getUint32(4 * t3, false) & 4294967295, d2 = c2, c2 = a2, a2 = l(s2, 30), s2 = o2, o2 = r2; + this._h0 = this._h0 + o2 & 4294967295, this._h1 = this._h1 + s2 & 4294967295, this._h2 = this._h2 + a2 & 4294967295, this._h3 = this._h3 + c2 & 4294967295, this._h4 = this._h4 + d2 & 4294967295; } } h._bigBlock32 = new DataView(new ArrayBuffer(320)); }, function(e, t, n) { "use strict"; n.d(t, "c", function() { - return r; + return o; }), n.d(t, "b", function() { return s; }), n.d(t, "a", function() { @@ -25410,21 +25410,21 @@ }), n.d(t, "e", function() { return c; }); - var i = n(77), o = n(12); - const r = new class { + var i = n(77), r = n(12); + const o = new class { clone() { return this; } equals(e2) { return this === e2; } - }(), s = "vs.editor.nullMode", a = new o.r(s, 0); - function l(e2, t2, n2, o2) { - return new i.b([new i.a(o2, "", e2)], n2); + }(), s = "vs.editor.nullMode", a = new r.r(s, 0); + function l(e2, t2, n2, r2) { + return new i.b([new i.a(r2, "", e2)], n2); } - function c(e2, t2, n2, o2) { + function c(e2, t2, n2, r2) { let s2 = new Uint32Array(2); - return s2[0] = o2, s2[1] = (16384 | e2 << 0 | 2 << 23) >>> 0, new i.c(s2, n2 === null ? r : n2); + return s2[0] = r2, s2[1] = (16384 | e2 << 0 | 2 << 23) >>> 0, new i.c(s2, n2 === null ? o : n2); } }, function(e, t, n) { "use strict"; @@ -25439,7 +25439,7 @@ }), n.d(t, "e", function() { return p; }); - var i = n(8), o = n(132), r = n(155); + var i = n(8), r = n(132), o = n(155); class s { constructor(e2, t2, n2) { this.endIndex = e2, this.type = t2, this.metadata = n2; @@ -25457,8 +25457,8 @@ } } class l { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g, f, b, _) { - this.useMonospaceOptimizations = e2, this.canUseHalfwidthRightwardsArrow = t2, this.lineContent = n2, this.continuesWithWrappedLine = i2, this.isBasicASCII = o2, this.containsRTL = r2, this.fauxIndentLength = s2, this.lineTokens = a2, this.lineDecorations = l2, this.tabSize = c2, this.startVisibleColumn = d2, this.spaceWidth = h2, this.stopRenderingLineAfter = m2, this.renderWhitespace = g === "all" ? 4 : g === "boundary" ? 1 : g === "selection" ? 2 : g === "trailing" ? 3 : 0, this.renderControlCharacters = f, this.fontLigatures = b, this.selectionsOnLine = _ && _.sort((e3, t3) => e3.startOffset < t3.startOffset ? -1 : 1); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g, f, b, _) { + this.useMonospaceOptimizations = e2, this.canUseHalfwidthRightwardsArrow = t2, this.lineContent = n2, this.continuesWithWrappedLine = i2, this.isBasicASCII = r2, this.containsRTL = o2, this.fauxIndentLength = s2, this.lineTokens = a2, this.lineDecorations = l2, this.tabSize = c2, this.startVisibleColumn = d2, this.spaceWidth = h2, this.stopRenderingLineAfter = m2, this.renderWhitespace = g === "all" ? 4 : g === "boundary" ? 1 : g === "selection" ? 2 : g === "trailing" ? 3 : 0, this.renderControlCharacters = f, this.fontLigatures = b, this.selectionsOnLine = _ && _.sort((e3, t3) => e3.startOffset < t3.startOffset ? -1 : 1); Math.abs(p2 - h2) < Math.abs(u2 - h2) ? (this.renderSpaceWidth = p2, this.renderSpaceCharCode = 11825) : (this.renderSpaceWidth = u2, this.renderSpaceCharCode = 183); } sameSelection(e2) { @@ -25474,7 +25474,7 @@ return true; } equals(e2) { - return this.useMonospaceOptimizations === e2.useMonospaceOptimizations && this.canUseHalfwidthRightwardsArrow === e2.canUseHalfwidthRightwardsArrow && this.lineContent === e2.lineContent && this.continuesWithWrappedLine === e2.continuesWithWrappedLine && this.isBasicASCII === e2.isBasicASCII && this.containsRTL === e2.containsRTL && this.fauxIndentLength === e2.fauxIndentLength && this.tabSize === e2.tabSize && this.startVisibleColumn === e2.startVisibleColumn && this.spaceWidth === e2.spaceWidth && this.renderSpaceWidth === e2.renderSpaceWidth && this.renderSpaceCharCode === e2.renderSpaceCharCode && this.stopRenderingLineAfter === e2.stopRenderingLineAfter && this.renderWhitespace === e2.renderWhitespace && this.renderControlCharacters === e2.renderControlCharacters && this.fontLigatures === e2.fontLigatures && r.a.equalsArr(this.lineDecorations, e2.lineDecorations) && this.lineTokens.equals(e2.lineTokens) && this.sameSelection(e2.selectionsOnLine); + return this.useMonospaceOptimizations === e2.useMonospaceOptimizations && this.canUseHalfwidthRightwardsArrow === e2.canUseHalfwidthRightwardsArrow && this.lineContent === e2.lineContent && this.continuesWithWrappedLine === e2.continuesWithWrappedLine && this.isBasicASCII === e2.isBasicASCII && this.containsRTL === e2.containsRTL && this.fauxIndentLength === e2.fauxIndentLength && this.tabSize === e2.tabSize && this.startVisibleColumn === e2.startVisibleColumn && this.spaceWidth === e2.spaceWidth && this.renderSpaceWidth === e2.renderSpaceWidth && this.renderSpaceCharCode === e2.renderSpaceCharCode && this.stopRenderingLineAfter === e2.stopRenderingLineAfter && this.renderWhitespace === e2.renderWhitespace && this.renderControlCharacters === e2.renderControlCharacters && this.fontLigatures === e2.fontLigatures && o.a.equalsArr(this.lineDecorations, e2.lineDecorations) && this.lineTokens.equals(e2.lineTokens) && this.sameSelection(e2.selectionsOnLine); } } class c { @@ -25488,8 +25488,8 @@ return (65535 & e2) >>> 0; } setPartData(e2, t2, n2, i2) { - let o2 = (t2 << 16 | n2 << 0) >>> 0; - this._data[e2] = o2, this._absoluteOffsets[e2] = i2 + n2; + let r2 = (t2 << 16 | n2 << 0) >>> 0; + this._data[e2] = r2, this._absoluteOffsets[e2] = i2 + n2; } getAbsoluteOffsets() { return this._absoluteOffsets; @@ -25500,22 +25500,22 @@ partDataToCharOffset(e2, t2, n2) { if (this.length === 0) return 0; - let i2 = (e2 << 16 | n2 << 0) >>> 0, o2 = 0, r2 = this.length - 1; - for (; o2 + 1 < r2; ) { - let e3 = o2 + r2 >>> 1, t3 = this._data[e3]; + let i2 = (e2 << 16 | n2 << 0) >>> 0, r2 = 0, o2 = this.length - 1; + for (; r2 + 1 < o2; ) { + let e3 = r2 + o2 >>> 1, t3 = this._data[e3]; if (t3 === i2) return e3; - t3 > i2 ? r2 = e3 : o2 = e3; + t3 > i2 ? o2 = e3 : r2 = e3; } - if (o2 === r2) - return o2; - let s2 = this._data[o2], a2 = this._data[r2]; + if (r2 === o2) + return r2; + let s2 = this._data[r2], a2 = this._data[o2]; if (s2 === i2) - return o2; - if (a2 === i2) return r2; + if (a2 === i2) + return o2; let l2, d2 = c.getPartIndex(s2), h2 = c.getCharIndex(s2); - return l2 = d2 !== c.getPartIndex(a2) ? t2 : c.getCharIndex(a2), n2 - h2 <= l2 - n2 ? o2 : r2; + return l2 = d2 !== c.getPartIndex(a2) ? t2 : c.getCharIndex(a2), n2 - h2 <= l2 - n2 ? r2 : o2; } } class d { @@ -25527,24 +25527,24 @@ if (e2.lineContent.length === 0) { let n2 = 0, i2 = "<span><span></span></span>"; if (e2.lineDecorations.length > 0) { - const t3 = [], o2 = []; - for (let i3 = 0, r2 = e2.lineDecorations.length; i3 < r2; i3++) { - const r3 = e2.lineDecorations[i3]; - r3.type === 1 && (t3.push(e2.lineDecorations[i3].className), n2 |= 1), r3.type === 2 && (o2.push(e2.lineDecorations[i3].className), n2 |= 2); + const t3 = [], r2 = []; + for (let i3 = 0, o2 = e2.lineDecorations.length; i3 < o2; i3++) { + const o3 = e2.lineDecorations[i3]; + o3.type === 1 && (t3.push(e2.lineDecorations[i3].className), n2 |= 1), o3.type === 2 && (r2.push(e2.lineDecorations[i3].className), n2 |= 2); } if (n2 !== 0) { - i2 = `<span>${t3.length > 0 ? `<span class="${t3.join(" ")}"></span>` : ""}${o2.length > 0 ? `<span class="${o2.join(" ")}"></span>` : ""}</span>`; + i2 = `<span>${t3.length > 0 ? `<span class="${t3.join(" ")}"></span>` : ""}${r2.length > 0 ? `<span class="${r2.join(" ")}"></span>` : ""}</span>`; } } return t2.appendASCIIString(i2), new d(new c(0, 0), false, n2); } return function(e3, t3) { - const n2 = e3.fontIsMonospace, o2 = e3.canUseHalfwidthRightwardsArrow, r2 = e3.containsForeignElements, s2 = e3.lineContent, a2 = e3.len, l2 = e3.isOverflowing, h2 = e3.parts, u2 = e3.fauxIndentLength, p2 = e3.tabSize, m2 = e3.startVisibleColumn, g = e3.containsRTL, f = e3.spaceWidth, b = e3.renderSpaceCharCode, _ = e3.renderWhitespace, v = e3.renderControlCharacters, w = new c(a2 + 1, h2.length); + const n2 = e3.fontIsMonospace, r2 = e3.canUseHalfwidthRightwardsArrow, o2 = e3.containsForeignElements, s2 = e3.lineContent, a2 = e3.len, l2 = e3.isOverflowing, h2 = e3.parts, u2 = e3.fauxIndentLength, p2 = e3.tabSize, m2 = e3.startVisibleColumn, g = e3.containsRTL, f = e3.spaceWidth, b = e3.renderSpaceCharCode, _ = e3.renderWhitespace, v = e3.renderControlCharacters, w = new c(a2 + 1, h2.length); let y = 0, C = m2, x = 0, S = 0, k = 0, E = 0; g ? t3.appendASCIIString('<span dir="ltr">') : t3.appendASCIIString("<span>"); for (let e4 = 0, a3 = h2.length; e4 < a3; e4++) { E += k; - const a4 = h2[e4], l3 = a4.endIndex, c2 = a4.type, d2 = _ !== 0 && a4.isWhitespace(), m3 = d2 && !n2 && (c2 === "mtkw" || !r2), g2 = y === l3 && a4.metadata === 4; + const a4 = h2[e4], l3 = a4.endIndex, c2 = a4.type, d2 = _ !== 0 && a4.isWhitespace(), m3 = d2 && !n2 && (c2 === "mtkw" || !o2), g2 = y === l3 && a4.metadata === 4; if (x = 0, t3.appendASCIIString('<span class="'), t3.appendASCIIString(m3 ? "mtkz" : c2), t3.appendASCII(34), d2) { let n3 = 0; { @@ -25558,7 +25558,7 @@ w.setPartData(y, e4 - S, x, E), S = 0; let n4; if (s2.charCodeAt(y) === 9) { - n4 = p2 - C % p2 | 0, !o2 || n4 > 1 ? t3.write1(8594) : t3.write1(65515); + n4 = p2 - C % p2 | 0, !r2 || n4 > 1 ? t3.write1(8594) : t3.write1(65515); for (let e5 = 2; e5 <= n4; e5++) t3.write1(160); } else @@ -25570,12 +25570,12 @@ let n3 = 0; for (t3.appendASCII(62); y < l3; y++) { w.setPartData(y, e4 - S, x, E), S = 0; - const o3 = s2.charCodeAt(y); - let r3 = 1, a5 = 1; - switch (o3) { + const r3 = s2.charCodeAt(y); + let o3 = 1, a5 = 1; + switch (r3) { case 9: - r3 = p2 - C % p2, a5 = r3; - for (let e5 = 1; e5 <= r3; e5++) + o3 = p2 - C % p2, a5 = o3; + for (let e5 = 1; e5 <= o3; e5++) t3.write1(160); break; case 32: @@ -25600,51 +25600,51 @@ t3.write1(65533); break; default: - i.E(o3) && a5++, v && o3 < 32 ? t3.write1(9216 + o3) : t3.write1(o3); + i.E(r3) && a5++, v && r3 < 32 ? t3.write1(9216 + r3) : t3.write1(r3); } - x += r3, n3 += r3, y >= u2 && (C += a5); + x += o3, n3 += o3, y >= u2 && (C += a5); } k = n3; } g2 ? S++ : S = 0, t3.appendASCIIString("</span>"); } w.setPartData(a2, h2.length - 1, x, E), l2 && t3.appendASCIIString("<span>…</span>"); - return t3.appendASCIIString("</span>"), new d(w, g, r2); + return t3.appendASCIIString("</span>"), new d(w, g, o2); }(function(e3) { const t3 = e3.lineContent; - let n2, o2; - e3.stopRenderingLineAfter !== -1 && e3.stopRenderingLineAfter < t3.length ? (n2 = true, o2 = e3.stopRenderingLineAfter) : (n2 = false, o2 = t3.length); + let n2, r2; + e3.stopRenderingLineAfter !== -1 && e3.stopRenderingLineAfter < t3.length ? (n2 = true, r2 = e3.stopRenderingLineAfter) : (n2 = false, r2 = t3.length); let a2 = function(e4, t4, n3) { - let i2 = [], o3 = 0; - t4 > 0 && (i2[o3++] = new s(t4, "", 0)); - for (let r2 = 0, a3 = e4.getCount(); r2 < a3; r2++) { - const a4 = e4.getEndOffset(r2); + let i2 = [], r3 = 0; + t4 > 0 && (i2[r3++] = new s(t4, "", 0)); + for (let o2 = 0, a3 = e4.getCount(); o2 < a3; o2++) { + const a4 = e4.getEndOffset(o2); if (a4 <= t4) continue; - const l3 = e4.getClassName(r2); + const l3 = e4.getClassName(o2); if (a4 >= n3) { - i2[o3++] = new s(n3, l3, 0); + i2[r3++] = new s(n3, l3, 0); break; } - i2[o3++] = new s(a4, l3, 0); + i2[r3++] = new s(a4, l3, 0); } return i2; - }(e3.lineTokens, e3.fauxIndentLength, o2); - (e3.renderWhitespace === 4 || e3.renderWhitespace === 1 || e3.renderWhitespace === 2 && e3.selectionsOnLine || e3.renderWhitespace === 3) && (a2 = function(e4, t4, n3, o3) { - const r2 = e4.continuesWithWrappedLine, a3 = e4.fauxIndentLength, l3 = e4.tabSize, c2 = e4.startVisibleColumn, d2 = e4.useMonospaceOptimizations, h2 = e4.selectionsOnLine, u2 = e4.renderWhitespace === 1, p2 = e4.renderWhitespace === 3, m2 = e4.renderSpaceWidth !== e4.spaceWidth; - let g = [], f = 0, b = 0, _ = o3[b].type, v = o3[b].endIndex; - const w = o3.length; + }(e3.lineTokens, e3.fauxIndentLength, r2); + (e3.renderWhitespace === 4 || e3.renderWhitespace === 1 || e3.renderWhitespace === 2 && e3.selectionsOnLine || e3.renderWhitespace === 3) && (a2 = function(e4, t4, n3, r3) { + const o2 = e4.continuesWithWrappedLine, a3 = e4.fauxIndentLength, l3 = e4.tabSize, c2 = e4.startVisibleColumn, d2 = e4.useMonospaceOptimizations, h2 = e4.selectionsOnLine, u2 = e4.renderWhitespace === 1, p2 = e4.renderWhitespace === 3, m2 = e4.renderSpaceWidth !== e4.spaceWidth; + let g = [], f = 0, b = 0, _ = r3[b].type, v = r3[b].endIndex; + const w = r3.length; let y, C = false, x = i.w(t4); x === -1 ? (C = true, x = n3, y = n3) : y = i.J(t4); let S = false, k = 0, E = h2 && h2[k], T = c2 % l3; for (let e5 = a3; e5 < n3; e5++) { - const r3 = t4.charCodeAt(e5); + const o3 = t4.charCodeAt(e5); let c3; if (E && e5 >= E.endOffset && (k++, E = h2 && h2[k]), e5 < x || e5 > y) c3 = true; - else if (r3 === 9) + else if (o3 === 9) c3 = true; - else if (r3 === 32) + else if (o3 === 32) if (u2) if (S) c3 = true; @@ -25667,12 +25667,12 @@ } } else (e5 === v || c3 && e5 > a3) && (g[f++] = new s(e5, _, 0), T %= l3); - for (r3 === 9 ? T = l3 : i.E(r3) ? T += 2 : T++, S = c3; e5 === v; ) - b++, b < w && (_ = o3[b].type, v = o3[b].endIndex); + for (o3 === 9 ? T = l3 : i.E(o3) ? T += 2 : T++, S = c3; e5 === v; ) + b++, b < w && (_ = r3[b].type, v = r3[b].endIndex); } let L = false; if (S) - if (r2 && u2) { + if (o2 && u2) { let e5 = n3 > 0 ? t4.charCodeAt(n3 - 1) : 0, i2 = n3 > 1 ? t4.charCodeAt(n3 - 2) : 0; e5 === 32 && i2 !== 32 && i2 !== 9 || (L = true); } else @@ -25686,7 +25686,7 @@ else g[f++] = new s(n3, _, 0); return g; - }(e3, t3, o2, a2)); + }(e3, t3, r2, a2)); let l2 = 0; if (e3.lineDecorations.length > 0) { for (let t4 = 0, n3 = e3.lineDecorations.length; t4 < n3; t4++) { @@ -25694,33 +25694,33 @@ n4.type === 3 || n4.type === 1 ? l2 |= 1 : n4.type === 2 && (l2 |= 2); } a2 = function(e4, t4, n3, i2) { - i2.sort(r.a.compare); - const o3 = r.b.normalize(e4, i2), a3 = o3.length; + i2.sort(o.a.compare); + const r3 = o.b.normalize(e4, i2), a3 = r3.length; let l3 = 0, c2 = [], d2 = 0, h2 = 0; for (let e5 = 0, t5 = n3.length; e5 < t5; e5++) { - const t6 = n3[e5], i3 = t6.endIndex, r2 = t6.type, u3 = t6.metadata; - for (; l3 < a3 && o3[l3].startOffset < i3; ) { - const e6 = o3[l3]; - if (e6.startOffset > h2 && (h2 = e6.startOffset, c2[d2++] = new s(h2, r2, u3)), !(e6.endOffset + 1 <= i3)) { - h2 = i3, c2[d2++] = new s(h2, r2 + " " + e6.className, u3 | e6.metadata); + const t6 = n3[e5], i3 = t6.endIndex, o2 = t6.type, u3 = t6.metadata; + for (; l3 < a3 && r3[l3].startOffset < i3; ) { + const e6 = r3[l3]; + if (e6.startOffset > h2 && (h2 = e6.startOffset, c2[d2++] = new s(h2, o2, u3)), !(e6.endOffset + 1 <= i3)) { + h2 = i3, c2[d2++] = new s(h2, o2 + " " + e6.className, u3 | e6.metadata); break; } - h2 = e6.endOffset + 1, c2[d2++] = new s(h2, r2 + " " + e6.className, u3 | e6.metadata), l3++; + h2 = e6.endOffset + 1, c2[d2++] = new s(h2, o2 + " " + e6.className, u3 | e6.metadata), l3++; } - i3 > h2 && (h2 = i3, c2[d2++] = new s(h2, r2, u3)); + i3 > h2 && (h2 = i3, c2[d2++] = new s(h2, o2, u3)); } const u2 = n3[n3.length - 1].endIndex; - if (l3 < a3 && o3[l3].startOffset === u2) { + if (l3 < a3 && r3[l3].startOffset === u2) { let e5 = [], t5 = 0; - for (; l3 < a3 && o3[l3].startOffset === u2; ) - e5.push(o3[l3].className), t5 |= o3[l3].metadata, l3++; + for (; l3 < a3 && r3[l3].startOffset === u2; ) + e5.push(r3[l3].className), t5 |= r3[l3].metadata, l3++; c2[d2++] = new s(h2, e5.join(" "), t5); } return c2; }(t3, 0, a2, e3.lineDecorations); } e3.containsRTL || (a2 = function(e4, t4, n3) { - let i2 = 0, o3 = [], r2 = 0; + let i2 = 0, r3 = [], o2 = 0; if (n3) for (let n4 = 0, a3 = t4.length; n4 < a3; n4++) { const a4 = t4[n4], l3 = a4.endIndex; @@ -25728,10 +25728,10 @@ const t5 = a4.type, n5 = a4.metadata; let c2 = -1, d2 = i2; for (let a5 = i2; a5 < l3; a5++) - e4.charCodeAt(a5) === 32 && (c2 = a5), c2 !== -1 && a5 - d2 >= 50 && (o3[r2++] = new s(c2 + 1, t5, n5), d2 = c2 + 1, c2 = -1); - d2 !== l3 && (o3[r2++] = new s(l3, t5, n5)); + e4.charCodeAt(a5) === 32 && (c2 = a5), c2 !== -1 && a5 - d2 >= 50 && (r3[o2++] = new s(c2 + 1, t5, n5), d2 = c2 + 1, c2 = -1); + d2 !== l3 && (r3[o2++] = new s(l3, t5, n5)); } else - o3[r2++] = a4; + r3[o2++] = a4; i2 = l3; } else @@ -25742,16 +25742,16 @@ const e6 = n5.type, t5 = n5.metadata, c2 = Math.ceil(l3 / 50); for (let n6 = 1; n6 < c2; n6++) { let a4 = i2 + 50 * n6; - o3[r2++] = new s(a4, e6, t5); + r3[o2++] = new s(a4, e6, t5); } - o3[r2++] = new s(a3, e6, t5); + r3[o2++] = new s(a3, e6, t5); } else - o3[r2++] = n5; + r3[o2++] = n5; i2 = a3; } - return o3; + return r3; }(t3, a2, !e3.isBasicASCII || e3.fontLigatures)); - return new m(e3.useMonospaceOptimizations, e3.canUseHalfwidthRightwardsArrow, t3, o2, n2, a2, l2, e3.fauxIndentLength, e3.tabSize, e3.startVisibleColumn, e3.containsRTL, e3.spaceWidth, e3.renderSpaceCharCode, e3.renderWhitespace, e3.renderControlCharacters); + return new m(e3.useMonospaceOptimizations, e3.canUseHalfwidthRightwardsArrow, t3, r2, n2, a2, l2, e3.fauxIndentLength, e3.tabSize, e3.startVisibleColumn, e3.containsRTL, e3.spaceWidth, e3.renderSpaceCharCode, e3.renderWhitespace, e3.renderControlCharacters); }(e2), t2); } class u { @@ -25760,12 +25760,12 @@ } } function p(e2) { - let t2 = Object(o.a)(1e4), n2 = h(e2, t2); + let t2 = Object(r.a)(1e4), n2 = h(e2, t2); return new u(n2.characterMapping, t2.build(), n2.containsRTL, n2.containsForeignElements); } class m { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2, p2, m2) { - this.fontIsMonospace = e2, this.canUseHalfwidthRightwardsArrow = t2, this.lineContent = n2, this.len = i2, this.isOverflowing = o2, this.parts = r2, this.containsForeignElements = s2, this.fauxIndentLength = a2, this.tabSize = l2, this.startVisibleColumn = c2, this.containsRTL = d2, this.spaceWidth = h2, this.renderSpaceCharCode = u2, this.renderWhitespace = p2, this.renderControlCharacters = m2; + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2, p2, m2) { + this.fontIsMonospace = e2, this.canUseHalfwidthRightwardsArrow = t2, this.lineContent = n2, this.len = i2, this.isOverflowing = r2, this.parts = o2, this.containsForeignElements = s2, this.fauxIndentLength = a2, this.tabSize = l2, this.startVisibleColumn = c2, this.containsRTL = d2, this.spaceWidth = h2, this.renderSpaceCharCode = u2, this.renderWhitespace = p2, this.renderControlCharacters = m2; } } }, function(e, t, n) { @@ -25773,16 +25773,16 @@ n.d(t, "a", function() { return l; }); - var i = n(43), o = n(11), r = n(27), s = n(56); + var i = n(43), r = n(11), o = n(27), s = n(56); class a { constructor() { this._coreKeybindings = [], this._extensionKeybindings = [], this._cachedMergedKeybindings = null; } static bindToCurrentPlatform(e2) { - if (o.a === 1) { + if (r.a === 1) { if (e2 && e2.win) return e2.win; - } else if (o.a === 2) { + } else if (r.a === 2) { if (e2 && e2.mac) return e2.mac; } else if (e2 && e2.linux) @@ -25792,17 +25792,17 @@ registerKeybindingRule(e2) { const t2 = a.bindToCurrentPlatform(e2); if (t2 && t2.primary) { - const n2 = Object(i.f)(t2.primary, o.a); + const n2 = Object(i.f)(t2.primary, r.a); n2 && this._registerDefaultKeybinding(n2, e2.id, e2.args, e2.weight, 0, e2.when); } if (t2 && Array.isArray(t2.secondary)) - for (let n2 = 0, r2 = t2.secondary.length; n2 < r2; n2++) { - const r3 = t2.secondary[n2], s2 = Object(i.f)(r3, o.a); + for (let n2 = 0, o2 = t2.secondary.length; n2 < o2; n2++) { + const o3 = t2.secondary[n2], s2 = Object(i.f)(o3, r.a); s2 && this._registerDefaultKeybinding(s2, e2.id, e2.args, e2.weight, -n2 - 1, e2.when); } } registerCommandAndKeybindingRule(e2) { - this.registerKeybindingRule(e2), r.a.registerCommand(e2); + this.registerKeybindingRule(e2), o.a.registerCommand(e2); } static _mightProduceChar(e2) { return e2 >= 21 && e2 <= 30 || (e2 >= 31 && e2 <= 56 || (e2 === 80 || e2 === 81 || e2 === 82 || e2 === 83 || e2 === 84 || e2 === 85 || e2 === 86 || e2 === 110 || e2 === 111 || e2 === 87 || e2 === 88 || e2 === 89 || e2 === 90 || e2 === 91 || e2 === 92)); @@ -25810,8 +25810,8 @@ _assertNoCtrlAlt(e2, t2) { e2.ctrlKey && e2.altKey && !e2.metaKey && a._mightProduceChar(e2.keyCode) && console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ", e2, " for ", t2); } - _registerDefaultKeybinding(e2, t2, n2, i2, r2, s2) { - o.a === 1 && this._assertNoCtrlAlt(e2.parts[0], t2), this._coreKeybindings.push({keybinding: e2, command: t2, commandArgs: n2, when: s2, weight1: i2, weight2: r2, extensionId: null}), this._cachedMergedKeybindings = null; + _registerDefaultKeybinding(e2, t2, n2, i2, o2, s2) { + r.a === 1 && this._assertNoCtrlAlt(e2.parts[0], t2), this._coreKeybindings.push({keybinding: e2, command: t2, commandArgs: n2, when: s2, weight1: i2, weight2: o2, extensionId: null}), this._cachedMergedKeybindings = null; } getDefaultKeybindings() { return this._cachedMergedKeybindings || (this._cachedMergedKeybindings = [].concat(this._coreKeybindings).concat(this._extensionKeybindings), this._cachedMergedKeybindings.sort(c)), this._cachedMergedKeybindings.slice(0); @@ -25825,7 +25825,7 @@ }, function(e, t, n) { "use strict"; n.d(t, "d", function() { - return o; + return r; }), n.d(t, "a", function() { return s; }), n.d(t, "b", function() { @@ -25836,30 +25836,30 @@ return d; }); var i = n(5); - function o(e2, t2) { + function r(e2, t2) { const n2 = Object.create(null); - for (let o2 in t2) { - const r2 = t2[o2]; - r2 && (n2[o2] = Object(i.hc)(r2, e2)); + for (let r2 in t2) { + const o2 = t2[r2]; + o2 && (n2[r2] = Object(i.hc)(o2, e2)); } return n2; } - function r(e2, t2, n2) { + function o(e2, t2, n2) { function i2(i3) { - const r2 = o(e2.getColorTheme(), t2); - typeof n2 == "function" ? n2(r2) : n2.style(r2); + const o2 = r(e2.getColorTheme(), t2); + typeof n2 == "function" ? n2(o2) : n2.style(o2); } return i2(e2.getColorTheme()), e2.onDidColorThemeChange(i2); } function s(e2, t2, n2) { - return r(t2, {badgeBackground: n2 && n2.badgeBackground || i.c, badgeForeground: n2 && n2.badgeForeground || i.d, badgeBorder: i.h}, e2); + return o(t2, {badgeBackground: n2 && n2.badgeBackground || i.c, badgeForeground: n2 && n2.badgeForeground || i.d, badgeBorder: i.h}, e2); } function a(e2, t2, n2) { - return r(t2, Object.assign(Object.assign({}, l), n2 || {}), e2); + return o(t2, Object.assign(Object.assign({}, l), n2 || {}), e2); } const l = {listFocusBackground: i.xb, listFocusForeground: i.yb, listActiveSelectionBackground: Object(i.i)(i.rb, 0.1), listActiveSelectionForeground: i.sb, listFocusAndSelectionBackground: i.rb, listFocusAndSelectionForeground: i.sb, listInactiveSelectionBackground: i.Db, listInactiveSelectionForeground: i.Eb, listInactiveFocusBackground: i.Cb, listHoverBackground: i.Ab, listHoverForeground: i.Bb, listDropBackground: i.tb, listFocusOutline: i.b, listSelectionOutline: i.b, listHoverOutline: i.b, listFilterWidgetBackground: i.ub, listFilterWidgetOutline: i.wb, listFilterWidgetNoMatchesOutline: i.vb, listMatchesShadow: i.uc, treeIndentGuidesStroke: i.tc}, c = {shadowColor: i.uc, borderColor: i.Gb, foregroundColor: i.Hb, backgroundColor: i.Fb, selectionForegroundColor: i.Kb, selectionBackgroundColor: i.Ib, selectionBorderColor: i.Jb, separatorColor: i.Lb}; function d(e2, t2, n2) { - return r(t2, Object.assign(Object.assign({}, c), n2), e2); + return o(t2, Object.assign(Object.assign({}, c), n2), e2); } }, function(e, t, n) { "use strict"; @@ -25870,10 +25870,10 @@ }), n.d(t, "b", function() { return h; }); - var i = n(13), o = n(2), r = n(11), s = n(14); + var i = n(13), r = n(2), o = n(11), s = n(14); let a = false; function l(e2) { - r.h && (a || (a = true, console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")), console.warn(e2.message)); + o.h && (a || (a = true, console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")), console.warn(e2.message)); } class c { constructor(e2) { @@ -25884,8 +25884,8 @@ } sendMessage(e2, t2) { let n2 = String(++this._lastSentReq); - return new Promise((i2, o2) => { - this._pendingReplies[n2] = {resolve: i2, reject: o2}, this._send({vsWorker: this._workerId, req: n2, method: e2, args: t2}); + return new Promise((i2, r2) => { + this._pendingReplies[n2] = {resolve: i2, reject: r2}, this._send({vsWorker: this._workerId, req: n2, method: e2, args: t2}); }); } handleMessage(e2) { @@ -25923,7 +25923,7 @@ this._handler.sendMessage(e2, t2); } } - class d extends o.a { + class d extends r.a { constructor(e2, t2, n2) { super(); let i2 = null; @@ -25942,10 +25942,10 @@ return Promise.reject(e4); } }}), this._protocol.setWorkerId(this._worker.getId()); - let o2 = null; - self.require !== void 0 && typeof self.require.getConfig == "function" ? o2 = self.require.getConfig() : self.requirejs !== void 0 && (o2 = self.requirejs.s.contexts._.config); - const r2 = s.d(n2); - this._onModuleLoaded = this._protocol.sendMessage("$initialize", [this._worker.getId(), JSON.parse(JSON.stringify(o2)), t2, r2]); + let r2 = null; + self.require !== void 0 && typeof self.require.getConfig == "function" ? r2 = self.require.getConfig() : self.requirejs !== void 0 && (r2 = self.requirejs.s.contexts._.config); + const o2 = s.d(n2); + this._onModuleLoaded = this._protocol.sendMessage("$initialize", [this._worker.getId(), JSON.parse(JSON.stringify(r2)), t2, o2]); const a2 = (e3, t3) => this._request(e3, t3); this._lazyProxy = new Promise((e3, n3) => { i2 = n3, this._onModuleLoaded.then((t3) => { @@ -25991,10 +25991,10 @@ } initialize(e2, t2, n2, i2) { this._protocol.setWorkerId(e2); - const o2 = s.c(i2, (e3, t3) => this._protocol.sendMessage(e3, t3)); - return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(o2), Promise.resolve(s.d(this._requestHandler))) : (t2 && (t2.baseUrl !== void 0 && delete t2.baseUrl, t2.paths !== void 0 && t2.paths.vs !== void 0 && delete t2.paths.vs, t2.catchError = true, self.require.config(t2)), new Promise((e3, t3) => { + const r2 = s.c(i2, (e3, t3) => this._protocol.sendMessage(e3, t3)); + return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(r2), Promise.resolve(s.d(this._requestHandler))) : (t2 && (t2.baseUrl !== void 0 && delete t2.baseUrl, t2.paths !== void 0 && t2.paths.vs !== void 0 && delete t2.paths.vs, t2.catchError = true, self.require.config(t2)), new Promise((e3, t3) => { self.require([n2], (n3) => { - this._requestHandler = n3.create(o2), this._requestHandler ? e3(s.d(this._requestHandler)) : t3(new Error("No RequestHandler!")); + this._requestHandler = n3.create(r2), this._requestHandler ? e3(s.d(this._requestHandler)) : t3(new Error("No RequestHandler!")); }, t3); })); } @@ -26008,10 +26008,10 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("editorWorkerService"); + const r = Object(i.c)("editorWorkerService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -26021,15 +26021,15 @@ }), n.d(t, "b", function() { return c; }); - var i = n(18), o = n(6), r = n(2), s = n(14); + var i = n(18), r = n(6), o = n(2), s = n(14); const a = Object(i.c)("storageService"); var l; !function(e2) { e2[e2.NONE = 0] = "NONE", e2[e2.SHUTDOWN = 1] = "SHUTDOWN"; }(l || (l = {})); - class c extends r.a { + class c extends o.a { constructor() { - super(...arguments), this._onDidChangeStorage = this._register(new o.a()), this._onWillSaveState = this._register(new o.a()), this.onWillSaveState = this._onWillSaveState.event, this.globalCache = new Map(), this.workspaceCache = new Map(); + super(...arguments), this._onDidChangeStorage = this._register(new r.a()), this._onWillSaveState = this._register(new r.a()), this.onWillSaveState = this._onWillSaveState.event, this.globalCache = new Map(), this.workspaceCache = new Map(); } getCache(e2) { return e2 === 0 ? this.globalCache : this.workspaceCache; @@ -26059,19 +26059,19 @@ }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); let i = 0; - function o(e2, t2, n2) { + function r(e2, t2, n2) { return function() { const e3 = "$memoize" + i++; let t3 = void 0; - const n3 = function(n4, i2, o2) { - let r = null, s = null; - if (typeof o2.value == "function" ? (r = "value", s = o2.value, s.length !== 0 && console.warn("Memoize should only be used in functions with zero parameters")) : typeof o2.get == "function" && (r = "get", s = o2.get), !s) + const n3 = function(n4, i2, r2) { + let o = null, s = null; + if (typeof r2.value == "function" ? (o = "value", s = r2.value, s.length !== 0 && console.warn("Memoize should only be used in functions with zero parameters")) : typeof r2.get == "function" && (o = "get", s = r2.get), !s) throw new Error("not supported"); const a = `${e3}:${i2}`; - o2[r] = function(...e4) { + r2[o] = function(...e4) { return t3 = this, this.hasOwnProperty(a) || Object.defineProperty(this, a, {configurable: true, enumerable: false, writable: true, value: s.apply(this, e4)}), this[a]; }; }; @@ -26100,8 +26100,8 @@ e2.intersect = t2, e2.isEmpty = n2, e2.intersects = function(e3, i2) { return !n2(t2(e3, i2)); }, e2.relativeComplement = function(e3, t3) { - const i2 = [], o = {start: e3.start, end: Math.min(t3.start, e3.end)}, r = {start: Math.max(t3.end, e3.start), end: e3.end}; - return n2(o) || i2.push(o), n2(r) || i2.push(r), i2; + const i2 = [], r = {start: e3.start, end: Math.min(t3.start, e3.end)}, o = {start: Math.max(t3.end, e3.start), end: e3.end}; + return n2(r) || i2.push(r), n2(o) || i2.push(o), i2; }; }(i || (i = {})); }, function(e, t, n) { @@ -26109,48 +26109,48 @@ n.d(t, "a", function() { return p; }); - var i = n(25), o = n(6), r = n(43), s = n(23), a = n(9), l = n(3), c = n(21), d = n(77), h = n(40); + var i = n(25), r = n(6), o = n(43), s = n(23), a = n(9), l = n(3), c = n(21), d = n(77), h = n(40); class u { static chord(e2, t2) { - return Object(r.a)(e2, t2); + return Object(o.a)(e2, t2); } } function p() { - return {editor: void 0, languages: void 0, CancellationTokenSource: i.b, Emitter: o.a, KeyCode: h.o, KeyMod: u, Position: a.a, Range: l.a, Selection: c.a, SelectionDirection: h.z, MarkerSeverity: h.p, MarkerTag: h.q, Uri: s.a, Token: d.a}; + return {editor: void 0, languages: void 0, CancellationTokenSource: i.b, Emitter: r.a, KeyCode: h.o, KeyMod: u, Position: a.a, Range: l.a, Selection: c.a, SelectionDirection: h.z, MarkerSeverity: h.p, MarkerTag: h.q, Uri: s.a, Token: d.a}; } u.CtrlCmd = 2048, u.Shift = 1024, u.Alt = 512, u.WinCtrl = 256; }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; - }), n.d(t, "a", function() { return r; + }), n.d(t, "a", function() { + return o; }); var i = n(36); - class o { + class r { constructor(e2, t2) { this.index = e2, this.remainder = t2; } } - class r { + class o { constructor(e2) { this.values = e2, this.prefixSum = new Uint32Array(e2.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1; } insertValues(e2, t2) { e2 = Object(i.a)(e2); - const n2 = this.values, o2 = this.prefixSum, r2 = t2.length; - return r2 !== 0 && (this.values = new Uint32Array(n2.length + r2), this.values.set(n2.subarray(0, e2), 0), this.values.set(n2.subarray(e2), e2 + r2), this.values.set(t2, e2), e2 - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e2 - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(o2.subarray(0, this.prefixSumValidIndex[0] + 1)), true); + const n2 = this.values, r2 = this.prefixSum, o2 = t2.length; + return o2 !== 0 && (this.values = new Uint32Array(n2.length + o2), this.values.set(n2.subarray(0, e2), 0), this.values.set(n2.subarray(e2), e2 + o2), this.values.set(t2, e2), e2 - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e2 - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(r2.subarray(0, this.prefixSumValidIndex[0] + 1)), true); } changeValue(e2, t2) { return e2 = Object(i.a)(e2), t2 = Object(i.a)(t2), this.values[e2] !== t2 && (this.values[e2] = t2, e2 - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e2 - 1), true); } removeValues(e2, t2) { e2 = Object(i.a)(e2), t2 = Object(i.a)(t2); - const n2 = this.values, o2 = this.prefixSum; + const n2 = this.values, r2 = this.prefixSum; if (e2 >= n2.length) return false; - let r2 = n2.length - e2; - return t2 >= r2 && (t2 = r2), t2 !== 0 && (this.values = new Uint32Array(n2.length - t2), this.values.set(n2.subarray(0, e2), 0), this.values.set(n2.subarray(e2 + t2), e2), this.prefixSum = new Uint32Array(this.values.length), e2 - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e2 - 1), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(o2.subarray(0, this.prefixSumValidIndex[0] + 1)), true); + let o2 = n2.length - e2; + return t2 >= o2 && (t2 = o2), t2 !== 0 && (this.values = new Uint32Array(n2.length - t2), this.values.set(n2.subarray(0, e2), 0), this.values.set(n2.subarray(e2 + t2), e2), this.prefixSum = new Uint32Array(this.values.length), e2 - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e2 - 1), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(r2.subarray(0, this.prefixSumValidIndex[0] + 1)), true); } getTotalValue() { return this.values.length === 0 ? 0 : this._getAccumulatedValue(this.values.length - 1); @@ -26169,16 +26169,16 @@ } getIndexOf(e2) { e2 = Math.floor(e2), this.getTotalValue(); - let t2 = 0, n2 = this.values.length - 1, i2 = 0, r2 = 0, s = 0; + let t2 = 0, n2 = this.values.length - 1, i2 = 0, o2 = 0, s = 0; for (; t2 <= n2; ) - if (i2 = t2 + (n2 - t2) / 2 | 0, r2 = this.prefixSum[i2], s = r2 - this.values[i2], e2 < s) + if (i2 = t2 + (n2 - t2) / 2 | 0, o2 = this.prefixSum[i2], s = o2 - this.values[i2], e2 < s) n2 = i2 - 1; else { - if (!(e2 >= r2)) + if (!(e2 >= o2)) break; t2 = i2 + 1; } - return new o(i2, e2 - s); + return new r(i2, e2 - s); } } }, function(e, t, n) { @@ -26190,16 +26190,16 @@ }), n.d(t, "a", function() { return d; }); - var i = n(18), o = n(2), r = n(6); + var i = n(18), r = n(2), o = n(6); const s = Object(i.c)("logService"); var a; !function(e2) { e2[e2.Trace = 0] = "Trace", e2[e2.Debug = 1] = "Debug", e2[e2.Info = 2] = "Info", e2[e2.Warning = 3] = "Warning", e2[e2.Error = 4] = "Error", e2[e2.Critical = 5] = "Critical", e2[e2.Off = 6] = "Off"; }(a || (a = {})); const l = a.Info; - class c extends o.a { + class c extends r.a { constructor() { - super(...arguments), this.level = l, this._onDidChangeLogLevel = this._register(new r.a()); + super(...arguments), this.level = l, this._onDidChangeLogLevel = this._register(new o.a()); } setLevel(e2) { this.level !== e2 && (this.level = e2, this._onDidChangeLogLevel.fire(this.level)); @@ -26231,7 +26231,7 @@ }), n.d(t, "a", function() { return d; }); - var i = n(1), o = n(11), r = n(177), s = n(69), a = n(2), l = n(138); + var i = n(1), r = n(11), o = n(177), s = n(69), a = n(2), l = n(138); function c(e2, t2) { let n2 = new s.a(t2); return n2.preventDefault(), {leftButton: n2.leftButton, buttons: n2.buttons, posx: n2.posx, posy: n2.posy}; @@ -26257,13 +26257,13 @@ if (this.isMonitoring()) return; this._mouseMoveEventMerger = n2, this._mouseMoveCallback = a2, this._onStopCallback = c2; - const d2 = r.a.getSameOriginWindowChain(), h = o.c && l.a.pointerEvents ? "pointermove" : "mousemove", u = o.c && l.a.pointerEvents ? "pointerup" : "mouseup", p = d2.map((e3) => e3.window.document), m = i.E(e2); + const d2 = o.a.getSameOriginWindowChain(), h = r.c && l.a.pointerEvents ? "pointermove" : "mousemove", u = r.c && l.a.pointerEvents ? "pointerup" : "mouseup", p = d2.map((e3) => e3.window.document), m = i.E(e2); m && p.unshift(m); for (const e3 of p) this._hooks.add(i.l(e3, h, (e4) => { e4.buttons === t2 ? this._mouseMoveCallback(e4) : this.stopMonitoring(true); }, (e4, t3) => this._mouseMoveEventMerger(e4, t3))), this._hooks.add(i.i(e3, u, (e4) => this.stopMonitoring(true))); - if (r.a.hasDifferentOriginAncestor()) { + if (o.a.hasDifferentOriginAncestor()) { let e3 = d2[d2.length - 1]; this._hooks.add(i.i(e3.window.document, "mouseout", (e4) => { new s.a(e4).target.tagName.toLowerCase() === "html" && this.stopMonitoring(true); @@ -26280,8 +26280,8 @@ n.d(t, "a", function() { return z; }); - var i = n(15); - class o { + var i = n(16); + class r { constructor(e2, t2, n2, i2) { this.originalStart = e2, this.originalLength = t2, this.modifiedStart = n2, this.modifiedLength = i2; } @@ -26292,7 +26292,7 @@ return this.modifiedStart + this.modifiedLength; } } - var r = n(89); + var o = n(89); class s { constructor(e2) { this.source = e2; @@ -26314,13 +26314,13 @@ } } class c { - static Copy(e2, t2, n2, i2, o2) { - for (let r2 = 0; r2 < o2; r2++) - n2[i2 + r2] = e2[t2 + r2]; + static Copy(e2, t2, n2, i2, r2) { + for (let o2 = 0; o2 < r2; o2++) + n2[i2 + o2] = e2[t2 + o2]; } - static Copy2(e2, t2, n2, i2, o2) { - for (let r2 = 0; r2 < o2; r2++) - n2[i2 + r2] = e2[t2 + r2]; + static Copy2(e2, t2, n2, i2, r2) { + for (let o2 = 0; o2 < r2; o2++) + n2[i2 + o2] = e2[t2 + o2]; } } class d { @@ -26328,7 +26328,7 @@ this.m_changes = [], this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824, this.m_originalCount = 0, this.m_modifiedCount = 0; } MarkNextChange() { - (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.m_changes.push(new o(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount)), this.m_originalCount = 0, this.m_modifiedCount = 0, this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824; + (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.m_changes.push(new r(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount)), this.m_originalCount = 0, this.m_modifiedCount = 0, this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824; } AddOriginalElement(e2, t2) { this.m_originalStart = Math.min(this.m_originalStart, e2), this.m_modifiedStart = Math.min(this.m_modifiedStart, t2), this.m_originalCount++; @@ -26346,8 +26346,8 @@ class h { constructor(e2, t2, n2 = null) { this.ContinueProcessingPredicate = n2; - const [i2, o2, r2] = h._getElements(e2), [s2, a2, l2] = h._getElements(t2); - this._hasStrings = r2 && l2, this._originalStringElements = i2, this._originalElementsOrHash = o2, this._modifiedStringElements = s2, this._modifiedElementsOrHash = a2, this.m_forwardHistory = [], this.m_reverseHistory = []; + const [i2, r2, o2] = h._getElements(e2), [s2, a2, l2] = h._getElements(t2); + this._hasStrings = o2 && l2, this._originalStringElements = i2, this._originalElementsOrHash = r2, this._modifiedStringElements = s2, this._modifiedElementsOrHash = a2, this.m_forwardHistory = [], this.m_reverseHistory = []; } static _isStringArray(e2) { return e2.length > 0 && typeof e2[0] == "string"; @@ -26357,7 +26357,7 @@ if (h._isStringArray(t2)) { const e3 = new Int32Array(t2.length); for (let n2 = 0, i2 = t2.length; n2 < i2; n2++) - e3[n2] = Object(r.c)(t2[n2], 0); + e3[n2] = Object(o.c)(t2[n2], 0); return [t2, e3, true]; } return t2 instanceof Int32Array ? [[], t2, false] : [[], new Int32Array(t2), false]; @@ -26374,31 +26374,31 @@ ComputeDiff(e2) { return this._ComputeDiff(0, this._originalElementsOrHash.length - 1, 0, this._modifiedElementsOrHash.length - 1, e2); } - _ComputeDiff(e2, t2, n2, i2, o2) { - const r2 = [false]; - let s2 = this.ComputeDiffRecursive(e2, t2, n2, i2, r2); - return o2 && (s2 = this.PrettifyChanges(s2)), {quitEarly: r2[0], changes: s2}; + _ComputeDiff(e2, t2, n2, i2, r2) { + const o2 = [false]; + let s2 = this.ComputeDiffRecursive(e2, t2, n2, i2, o2); + return r2 && (s2 = this.PrettifyChanges(s2)), {quitEarly: o2[0], changes: s2}; } - ComputeDiffRecursive(e2, t2, n2, i2, r2) { - for (r2[0] = false; e2 <= t2 && n2 <= i2 && this.ElementsAreEqual(e2, n2); ) + ComputeDiffRecursive(e2, t2, n2, i2, o2) { + for (o2[0] = false; e2 <= t2 && n2 <= i2 && this.ElementsAreEqual(e2, n2); ) e2++, n2++; for (; t2 >= e2 && i2 >= n2 && this.ElementsAreEqual(t2, i2); ) t2--, i2--; if (e2 > t2 || n2 > i2) { - let r3; - return n2 <= i2 ? (l.Assert(e2 === t2 + 1, "originalStart should only be one more than originalEnd"), r3 = [new o(e2, 0, n2, i2 - n2 + 1)]) : e2 <= t2 ? (l.Assert(n2 === i2 + 1, "modifiedStart should only be one more than modifiedEnd"), r3 = [new o(e2, t2 - e2 + 1, n2, 0)]) : (l.Assert(e2 === t2 + 1, "originalStart should only be one more than originalEnd"), l.Assert(n2 === i2 + 1, "modifiedStart should only be one more than modifiedEnd"), r3 = []), r3; + let o3; + return n2 <= i2 ? (l.Assert(e2 === t2 + 1, "originalStart should only be one more than originalEnd"), o3 = [new r(e2, 0, n2, i2 - n2 + 1)]) : e2 <= t2 ? (l.Assert(n2 === i2 + 1, "modifiedStart should only be one more than modifiedEnd"), o3 = [new r(e2, t2 - e2 + 1, n2, 0)]) : (l.Assert(e2 === t2 + 1, "originalStart should only be one more than originalEnd"), l.Assert(n2 === i2 + 1, "modifiedStart should only be one more than modifiedEnd"), o3 = []), o3; } - const s2 = [0], a2 = [0], c2 = this.ComputeRecursionPoint(e2, t2, n2, i2, s2, a2, r2), d2 = s2[0], h2 = a2[0]; + const s2 = [0], a2 = [0], c2 = this.ComputeRecursionPoint(e2, t2, n2, i2, s2, a2, o2), d2 = s2[0], h2 = a2[0]; if (c2 !== null) return c2; - if (!r2[0]) { - const s3 = this.ComputeDiffRecursive(e2, d2, n2, h2, r2); + if (!o2[0]) { + const s3 = this.ComputeDiffRecursive(e2, d2, n2, h2, o2); let a3 = []; - return a3 = r2[0] ? [new o(d2 + 1, t2 - (d2 + 1) + 1, h2 + 1, i2 - (h2 + 1) + 1)] : this.ComputeDiffRecursive(d2 + 1, t2, h2 + 1, i2, r2), this.ConcatenateChanges(s3, a3); + return a3 = o2[0] ? [new r(d2 + 1, t2 - (d2 + 1) + 1, h2 + 1, i2 - (h2 + 1) + 1)] : this.ComputeDiffRecursive(d2 + 1, t2, h2 + 1, i2, o2), this.ConcatenateChanges(s3, a3); } - return [new o(e2, t2 - e2 + 1, n2, i2 - n2 + 1)]; + return [new r(e2, t2 - e2 + 1, n2, i2 - n2 + 1)]; } - WALKTRACE(e2, t2, n2, i2, r2, s2, a2, l2, c2, h2, u2, p2, m2, g2, f2, b2, _2, v2) { + WALKTRACE(e2, t2, n2, i2, o2, s2, a2, l2, c2, h2, u2, p2, m2, g2, f2, b2, _2, v2) { let w2 = null, y2 = null, C2 = new d(), x2 = t2, S2 = n2, k2 = m2[0] - b2[0] - i2, E2 = -1073741824, T2 = this.m_forwardHistory.length - 1; do { const t3 = k2 + e2; @@ -26410,20 +26410,20 @@ const n3 = w2[w2.length - 1]; e3 = Math.max(e3, n3.getOriginalEnd()), t3 = Math.max(t3, n3.getModifiedEnd()); } - y2 = [new o(e3, p2 - e3 + 1, t3, f2 - t3 + 1)]; + y2 = [new r(e3, p2 - e3 + 1, t3, f2 - t3 + 1)]; } else { C2 = new d(), x2 = s2, S2 = a2, k2 = m2[0] - b2[0] - l2, E2 = 1073741824, T2 = _2 ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2; do { - const e3 = k2 + r2; - e3 === x2 || e3 < S2 && h2[e3 - 1] >= h2[e3 + 1] ? (g2 = (u2 = h2[e3 + 1] - 1) - k2 - l2, u2 > E2 && C2.MarkNextChange(), E2 = u2 + 1, C2.AddOriginalElement(u2 + 1, g2 + 1), k2 = e3 + 1 - r2) : (g2 = (u2 = h2[e3 - 1]) - k2 - l2, u2 > E2 && C2.MarkNextChange(), E2 = u2, C2.AddModifiedElement(u2 + 1, g2 + 1), k2 = e3 - 1 - r2), T2 >= 0 && (r2 = (h2 = this.m_reverseHistory[T2])[0], x2 = 1, S2 = h2.length - 1); + const e3 = k2 + o2; + e3 === x2 || e3 < S2 && h2[e3 - 1] >= h2[e3 + 1] ? (g2 = (u2 = h2[e3 + 1] - 1) - k2 - l2, u2 > E2 && C2.MarkNextChange(), E2 = u2 + 1, C2.AddOriginalElement(u2 + 1, g2 + 1), k2 = e3 + 1 - o2) : (g2 = (u2 = h2[e3 - 1]) - k2 - l2, u2 > E2 && C2.MarkNextChange(), E2 = u2, C2.AddModifiedElement(u2 + 1, g2 + 1), k2 = e3 - 1 - o2), T2 >= 0 && (o2 = (h2 = this.m_reverseHistory[T2])[0], x2 = 1, S2 = h2.length - 1); } while (--T2 >= -1); y2 = C2.getChanges(); } return this.ConcatenateChanges(w2, y2); } - ComputeRecursionPoint(e2, t2, n2, i2, r2, s2, a2) { + ComputeRecursionPoint(e2, t2, n2, i2, o2, s2, a2) { let l2 = 0, d2 = 0, h2 = 0, u2 = 0, p2 = 0, m2 = 0; - e2--, n2--, r2[0] = 0, s2[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = []; + e2--, n2--, o2[0] = 0, s2[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = []; const g2 = t2 - e2 + (i2 - n2), f2 = g2 + 1, b2 = new Int32Array(f2), _2 = new Int32Array(f2), v2 = i2 - n2, w2 = t2 - e2, y2 = e2 - n2, C2 = t2 - i2, x2 = (w2 - v2) % 2 == 0; b2[v2] = e2, _2[w2] = t2, a2[0] = false; for (let S2 = 1; S2 <= g2 / 2 + 1; S2++) { @@ -26435,49 +26435,49 @@ for (; l2 < t2 && d2 < i2 && this.ElementsAreEqual(l2 + 1, d2 + 1); ) l2++, d2++; if (b2[e3] = l2, l2 + d2 > g3 + k2 && (g3 = l2, k2 = d2), !x2 && Math.abs(e3 - w2) <= S2 - 1 && l2 >= _2[e3]) - return r2[0] = l2, s2[0] = d2, n3 <= _2[e3] && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, r2, d2, i2, s2, x2, a2) : null; + return o2[0] = l2, s2[0] = d2, n3 <= _2[e3] && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, o2, d2, i2, s2, x2, a2) : null; } const E2 = (g3 - e2 + (k2 - n2) - S2) / 2; if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(g3, E2)) - return a2[0] = true, r2[0] = g3, s2[0] = k2, E2 > 0 && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, r2, d2, i2, s2, x2, a2) : (e2++, n2++, [new o(e2, t2 - e2 + 1, n2, i2 - n2 + 1)]); + return a2[0] = true, o2[0] = g3, s2[0] = k2, E2 > 0 && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, o2, d2, i2, s2, x2, a2) : (e2++, n2++, [new r(e2, t2 - e2 + 1, n2, i2 - n2 + 1)]); p2 = this.ClipDiagonalBound(w2 - S2, S2, w2, f2), m2 = this.ClipDiagonalBound(w2 + S2, S2, w2, f2); - for (let o2 = p2; o2 <= m2; o2 += 2) { - l2 = o2 === p2 || o2 < m2 && _2[o2 - 1] >= _2[o2 + 1] ? _2[o2 + 1] - 1 : _2[o2 - 1], d2 = l2 - (o2 - w2) - C2; + for (let r2 = p2; r2 <= m2; r2 += 2) { + l2 = r2 === p2 || r2 < m2 && _2[r2 - 1] >= _2[r2 + 1] ? _2[r2 + 1] - 1 : _2[r2 - 1], d2 = l2 - (r2 - w2) - C2; const c2 = l2; for (; l2 > e2 && d2 > n2 && this.ElementsAreEqual(l2, d2); ) l2--, d2--; - if (_2[o2] = l2, x2 && Math.abs(o2 - v2) <= S2 && l2 <= b2[o2]) - return r2[0] = l2, s2[0] = d2, c2 >= b2[o2] && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, r2, d2, i2, s2, x2, a2) : null; + if (_2[r2] = l2, x2 && Math.abs(r2 - v2) <= S2 && l2 <= b2[r2]) + return o2[0] = l2, s2[0] = d2, c2 >= b2[r2] && S2 <= 1448 ? this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, o2, d2, i2, s2, x2, a2) : null; } if (S2 <= 1447) { let e3 = new Int32Array(u2 - h2 + 2); e3[0] = v2 - h2 + 1, c.Copy2(b2, h2, e3, 1, u2 - h2 + 1), this.m_forwardHistory.push(e3), e3 = new Int32Array(m2 - p2 + 2), e3[0] = w2 - p2 + 1, c.Copy2(_2, p2, e3, 1, m2 - p2 + 1), this.m_reverseHistory.push(e3); } } - return this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, r2, d2, i2, s2, x2, a2); + return this.WALKTRACE(v2, h2, u2, y2, w2, p2, m2, C2, b2, _2, l2, t2, o2, d2, i2, s2, x2, a2); } PrettifyChanges(e2) { for (let t2 = 0; t2 < e2.length; t2++) { - const n2 = e2[t2], i2 = t2 < e2.length - 1 ? e2[t2 + 1].originalStart : this._originalElementsOrHash.length, o2 = t2 < e2.length - 1 ? e2[t2 + 1].modifiedStart : this._modifiedElementsOrHash.length, r2 = n2.originalLength > 0, s2 = n2.modifiedLength > 0; - for (; n2.originalStart + n2.originalLength < i2 && n2.modifiedStart + n2.modifiedLength < o2 && (!r2 || this.OriginalElementsAreEqual(n2.originalStart, n2.originalStart + n2.originalLength)) && (!s2 || this.ModifiedElementsAreEqual(n2.modifiedStart, n2.modifiedStart + n2.modifiedLength)); ) + const n2 = e2[t2], i2 = t2 < e2.length - 1 ? e2[t2 + 1].originalStart : this._originalElementsOrHash.length, r2 = t2 < e2.length - 1 ? e2[t2 + 1].modifiedStart : this._modifiedElementsOrHash.length, o2 = n2.originalLength > 0, s2 = n2.modifiedLength > 0; + for (; n2.originalStart + n2.originalLength < i2 && n2.modifiedStart + n2.modifiedLength < r2 && (!o2 || this.OriginalElementsAreEqual(n2.originalStart, n2.originalStart + n2.originalLength)) && (!s2 || this.ModifiedElementsAreEqual(n2.modifiedStart, n2.modifiedStart + n2.modifiedLength)); ) n2.originalStart++, n2.modifiedStart++; let a2 = [null]; t2 < e2.length - 1 && this.ChangesOverlap(e2[t2], e2[t2 + 1], a2) && (e2[t2] = a2[0], e2.splice(t2 + 1, 1), t2--); } for (let t2 = e2.length - 1; t2 >= 0; t2--) { const n2 = e2[t2]; - let i2 = 0, o2 = 0; + let i2 = 0, r2 = 0; if (t2 > 0) { const n3 = e2[t2 - 1]; - n3.originalLength > 0 && (i2 = n3.originalStart + n3.originalLength), n3.modifiedLength > 0 && (o2 = n3.modifiedStart + n3.modifiedLength); + n3.originalLength > 0 && (i2 = n3.originalStart + n3.originalLength), n3.modifiedLength > 0 && (r2 = n3.modifiedStart + n3.modifiedLength); } - const r2 = n2.originalLength > 0, s2 = n2.modifiedLength > 0; + const o2 = n2.originalLength > 0, s2 = n2.modifiedLength > 0; let a2 = 0, l2 = this._boundaryScore(n2.originalStart, n2.originalLength, n2.modifiedStart, n2.modifiedLength); for (let e3 = 1; ; e3++) { const t3 = n2.originalStart - e3, c2 = n2.modifiedStart - e3; - if (t3 < i2 || c2 < o2) + if (t3 < i2 || c2 < r2) break; - if (r2 && !this.OriginalElementsAreEqual(t3, t3 + n2.originalLength)) + if (o2 && !this.OriginalElementsAreEqual(t3, t3 + n2.originalLength)) break; if (s2 && !this.ModifiedElementsAreEqual(c2, c2 + n2.modifiedLength)) break; @@ -26533,21 +26533,21 @@ ChangesOverlap(e2, t2, n2) { if (l.Assert(e2.originalStart <= t2.originalStart, "Left change is not less than or equal to right change"), l.Assert(e2.modifiedStart <= t2.modifiedStart, "Left change is not less than or equal to right change"), e2.originalStart + e2.originalLength >= t2.originalStart || e2.modifiedStart + e2.modifiedLength >= t2.modifiedStart) { const i2 = e2.originalStart; - let r2 = e2.originalLength; + let o2 = e2.originalLength; const s2 = e2.modifiedStart; let a2 = e2.modifiedLength; - return e2.originalStart + e2.originalLength >= t2.originalStart && (r2 = t2.originalStart + t2.originalLength - e2.originalStart), e2.modifiedStart + e2.modifiedLength >= t2.modifiedStart && (a2 = t2.modifiedStart + t2.modifiedLength - e2.modifiedStart), n2[0] = new o(i2, r2, s2, a2), true; + return e2.originalStart + e2.originalLength >= t2.originalStart && (o2 = t2.originalStart + t2.originalLength - e2.originalStart), e2.modifiedStart + e2.modifiedLength >= t2.modifiedStart && (a2 = t2.modifiedStart + t2.modifiedLength - e2.modifiedStart), n2[0] = new r(i2, o2, s2, a2), true; } return n2[0] = null, false; } ClipDiagonalBound(e2, t2, n2, i2) { if (e2 >= 0 && e2 < i2) return e2; - const o2 = t2 % 2 == 0; + const r2 = t2 % 2 == 0; if (e2 < 0) { - return o2 === (n2 % 2 == 0) ? 0 : 1; + return r2 === (n2 % 2 == 0) ? 0 : 1; } - return o2 === ((i2 - n2 - 1) % 2 == 0) ? i2 - 1 : i2 - 2; + return r2 === ((i2 - n2 - 1) % 2 == 0) ? i2 - 1 : i2 - 2; } } var u = n(11), p = n(23), m = n(9), g = n(3), f = n(8); @@ -26557,7 +26557,7 @@ class _ { constructor(e2) { const t2 = [], n2 = []; - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) t2[i2] = x(e2[i2], 1), n2[i2] = S(e2[i2], 1); this.lines = e2, this._startColumns = t2, this._endColumns = n2; } @@ -26574,14 +26574,14 @@ return e2 + 1; } createCharSequence(e2, t2, n2) { - const i2 = [], o2 = [], r2 = []; + const i2 = [], r2 = [], o2 = []; let s2 = 0; for (let a2 = t2; a2 <= n2; a2++) { const t3 = this.lines[a2], n3 = e2 ? this._startColumns[a2] : 1, l2 = e2 ? this._endColumns[a2] : t3.length + 1; for (let e3 = n3; e3 < l2; e3++) - i2[s2] = t3.charCodeAt(e3 - 1), o2[s2] = a2 + 1, r2[s2] = e3, s2++; + i2[s2] = t3.charCodeAt(e3 - 1), r2[s2] = a2 + 1, o2[s2] = e3, s2++; } - return new v(i2, o2, r2); + return new v(i2, r2, o2); } } class v { @@ -26605,36 +26605,36 @@ } } class w { - constructor(e2, t2, n2, i2, o2, r2, s2, a2) { - this.originalStartLineNumber = e2, this.originalStartColumn = t2, this.originalEndLineNumber = n2, this.originalEndColumn = i2, this.modifiedStartLineNumber = o2, this.modifiedStartColumn = r2, this.modifiedEndLineNumber = s2, this.modifiedEndColumn = a2; + constructor(e2, t2, n2, i2, r2, o2, s2, a2) { + this.originalStartLineNumber = e2, this.originalStartColumn = t2, this.originalEndLineNumber = n2, this.originalEndColumn = i2, this.modifiedStartLineNumber = r2, this.modifiedStartColumn = o2, this.modifiedEndLineNumber = s2, this.modifiedEndColumn = a2; } static createFromDiffChange(e2, t2, n2) { - let i2, o2, r2, s2, a2, l2, c2, d2; - return e2.originalLength === 0 ? (i2 = 0, o2 = 0, r2 = 0, s2 = 0) : (i2 = t2.getStartLineNumber(e2.originalStart), o2 = t2.getStartColumn(e2.originalStart), r2 = t2.getEndLineNumber(e2.originalStart + e2.originalLength - 1), s2 = t2.getEndColumn(e2.originalStart + e2.originalLength - 1)), e2.modifiedLength === 0 ? (a2 = 0, l2 = 0, c2 = 0, d2 = 0) : (a2 = n2.getStartLineNumber(e2.modifiedStart), l2 = n2.getStartColumn(e2.modifiedStart), c2 = n2.getEndLineNumber(e2.modifiedStart + e2.modifiedLength - 1), d2 = n2.getEndColumn(e2.modifiedStart + e2.modifiedLength - 1)), new w(i2, o2, r2, s2, a2, l2, c2, d2); + let i2, r2, o2, s2, a2, l2, c2, d2; + return e2.originalLength === 0 ? (i2 = 0, r2 = 0, o2 = 0, s2 = 0) : (i2 = t2.getStartLineNumber(e2.originalStart), r2 = t2.getStartColumn(e2.originalStart), o2 = t2.getEndLineNumber(e2.originalStart + e2.originalLength - 1), s2 = t2.getEndColumn(e2.originalStart + e2.originalLength - 1)), e2.modifiedLength === 0 ? (a2 = 0, l2 = 0, c2 = 0, d2 = 0) : (a2 = n2.getStartLineNumber(e2.modifiedStart), l2 = n2.getStartColumn(e2.modifiedStart), c2 = n2.getEndLineNumber(e2.modifiedStart + e2.modifiedLength - 1), d2 = n2.getEndColumn(e2.modifiedStart + e2.modifiedLength - 1)), new w(i2, r2, o2, s2, a2, l2, c2, d2); } } class y { - constructor(e2, t2, n2, i2, o2) { - this.originalStartLineNumber = e2, this.originalEndLineNumber = t2, this.modifiedStartLineNumber = n2, this.modifiedEndLineNumber = i2, this.charChanges = o2; + constructor(e2, t2, n2, i2, r2) { + this.originalStartLineNumber = e2, this.originalEndLineNumber = t2, this.modifiedStartLineNumber = n2, this.modifiedEndLineNumber = i2, this.charChanges = r2; } - static createFromDiffResult(e2, t2, n2, i2, o2, r2, s2) { + static createFromDiffResult(e2, t2, n2, i2, r2, o2, s2) { let a2, l2, c2, d2, h2 = void 0; - if (t2.originalLength === 0 ? (a2 = n2.getStartLineNumber(t2.originalStart) - 1, l2 = 0) : (a2 = n2.getStartLineNumber(t2.originalStart), l2 = n2.getEndLineNumber(t2.originalStart + t2.originalLength - 1)), t2.modifiedLength === 0 ? (c2 = i2.getStartLineNumber(t2.modifiedStart) - 1, d2 = 0) : (c2 = i2.getStartLineNumber(t2.modifiedStart), d2 = i2.getEndLineNumber(t2.modifiedStart + t2.modifiedLength - 1)), r2 && t2.originalLength > 0 && t2.originalLength < 20 && t2.modifiedLength > 0 && t2.modifiedLength < 20 && o2()) { - const r3 = n2.createCharSequence(e2, t2.originalStart, t2.originalStart + t2.originalLength - 1), a3 = i2.createCharSequence(e2, t2.modifiedStart, t2.modifiedStart + t2.modifiedLength - 1); - let l3 = b(r3, a3, o2, true).changes; + if (t2.originalLength === 0 ? (a2 = n2.getStartLineNumber(t2.originalStart) - 1, l2 = 0) : (a2 = n2.getStartLineNumber(t2.originalStart), l2 = n2.getEndLineNumber(t2.originalStart + t2.originalLength - 1)), t2.modifiedLength === 0 ? (c2 = i2.getStartLineNumber(t2.modifiedStart) - 1, d2 = 0) : (c2 = i2.getStartLineNumber(t2.modifiedStart), d2 = i2.getEndLineNumber(t2.modifiedStart + t2.modifiedLength - 1)), o2 && t2.originalLength > 0 && t2.originalLength < 20 && t2.modifiedLength > 0 && t2.modifiedLength < 20 && r2()) { + const o3 = n2.createCharSequence(e2, t2.originalStart, t2.originalStart + t2.originalLength - 1), a3 = i2.createCharSequence(e2, t2.modifiedStart, t2.modifiedStart + t2.modifiedLength - 1); + let l3 = b(o3, a3, r2, true).changes; s2 && (l3 = function(e3) { if (e3.length <= 1) return e3; const t3 = [e3[0]]; let n3 = t3[0]; - for (let i3 = 1, o3 = e3.length; i3 < o3; i3++) { - const o4 = e3[i3], r4 = o4.originalStart - (n3.originalStart + n3.originalLength), s3 = o4.modifiedStart - (n3.modifiedStart + n3.modifiedLength); - Math.min(r4, s3) < 3 ? (n3.originalLength = o4.originalStart + o4.originalLength - n3.originalStart, n3.modifiedLength = o4.modifiedStart + o4.modifiedLength - n3.modifiedStart) : (t3.push(o4), n3 = o4); + for (let i3 = 1, r3 = e3.length; i3 < r3; i3++) { + const r4 = e3[i3], o4 = r4.originalStart - (n3.originalStart + n3.originalLength), s3 = r4.modifiedStart - (n3.modifiedStart + n3.modifiedLength); + Math.min(o4, s3) < 3 ? (n3.originalLength = r4.originalStart + r4.originalLength - n3.originalStart, n3.modifiedLength = r4.modifiedStart + r4.modifiedLength - n3.modifiedStart) : (t3.push(r4), n3 = r4); } return t3; }(l3)), h2 = []; for (let e3 = 0, t3 = l3.length; e3 < t3; e3++) - h2.push(w.createFromDiffChange(l3[e3], r3, a3)); + h2.push(w.createFromDiffChange(l3[e3], o3, a3)); } return new y(a2, l2, c2, d2, h2); } @@ -26656,11 +26656,11 @@ return {quitEarly: n2, changes: e3}; } const i2 = []; - let o2 = 0, r2 = 0; + let r2 = 0, o2 = 0; for (let e3 = -1, n3 = t2.length; e3 < n3; e3++) { const s2 = e3 + 1 < n3 ? t2[e3 + 1] : null, a2 = s2 ? s2.originalStart : this.originalLines.length, l2 = s2 ? s2.modifiedStart : this.modifiedLines.length; - for (; o2 < a2 && r2 < l2; ) { - const e4 = this.originalLines[o2], t3 = this.modifiedLines[r2]; + for (; r2 < a2 && o2 < l2; ) { + const e4 = this.originalLines[r2], t3 = this.modifiedLines[o2]; if (e4 !== t3) { { let n4 = x(e4, 1), s3 = x(t3, 1); @@ -26669,7 +26669,7 @@ break; n4--, s3--; } - (n4 > 1 || s3 > 1) && this._pushTrimWhitespaceCharChange(i2, o2 + 1, 1, n4, r2 + 1, 1, s3); + (n4 > 1 || s3 > 1) && this._pushTrimWhitespaceCharChange(i2, r2 + 1, 1, n4, o2 + 1, 1, s3); } { let n4 = S(e4, 1), s3 = S(t3, 1); @@ -26679,27 +26679,27 @@ break; n4++, s3++; } - (n4 < a3 || s3 < l3) && this._pushTrimWhitespaceCharChange(i2, o2 + 1, n4, a3, r2 + 1, s3, l3); + (n4 < a3 || s3 < l3) && this._pushTrimWhitespaceCharChange(i2, r2 + 1, n4, a3, o2 + 1, s3, l3); } } - o2++, r2++; + r2++, o2++; } - s2 && (i2.push(y.createFromDiffResult(this.shouldIgnoreTrimWhitespace, s2, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), o2 += s2.originalLength, r2 += s2.modifiedLength); + s2 && (i2.push(y.createFromDiffResult(this.shouldIgnoreTrimWhitespace, s2, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), r2 += s2.originalLength, o2 += s2.modifiedLength); } return {quitEarly: n2, changes: i2}; } - _pushTrimWhitespaceCharChange(e2, t2, n2, i2, o2, r2, s2) { - if (this._mergeTrimWhitespaceCharChange(e2, t2, n2, i2, o2, r2, s2)) + _pushTrimWhitespaceCharChange(e2, t2, n2, i2, r2, o2, s2) { + if (this._mergeTrimWhitespaceCharChange(e2, t2, n2, i2, r2, o2, s2)) return; let a2 = void 0; - this.shouldComputeCharChanges && (a2 = [new w(t2, n2, t2, i2, o2, r2, o2, s2)]), e2.push(new y(t2, t2, o2, o2, a2)); + this.shouldComputeCharChanges && (a2 = [new w(t2, n2, t2, i2, r2, o2, r2, s2)]), e2.push(new y(t2, t2, r2, r2, a2)); } - _mergeTrimWhitespaceCharChange(e2, t2, n2, i2, o2, r2, s2) { + _mergeTrimWhitespaceCharChange(e2, t2, n2, i2, r2, o2, s2) { const a2 = e2.length; if (a2 === 0) return false; const l2 = e2[a2 - 1]; - return l2.originalEndLineNumber !== 0 && l2.modifiedEndLineNumber !== 0 && (l2.originalEndLineNumber + 1 === t2 && l2.modifiedEndLineNumber + 1 === o2 && (l2.originalEndLineNumber = t2, l2.modifiedEndLineNumber = o2, this.shouldComputeCharChanges && l2.charChanges && l2.charChanges.push(new w(t2, n2, t2, i2, o2, r2, o2, s2)), true)); + return l2.originalEndLineNumber !== 0 && l2.modifiedEndLineNumber !== 0 && (l2.originalEndLineNumber + 1 === t2 && l2.modifiedEndLineNumber + 1 === r2 && (l2.originalEndLineNumber = t2, l2.modifiedEndLineNumber = r2, this.shouldComputeCharChanges && l2.charChanges && l2.charChanges.push(new w(t2, n2, t2, i2, r2, o2, r2, s2)), true)); } } function x(e2, t2) { @@ -26721,8 +26721,8 @@ class N { constructor(e2, t2, n2) { const i2 = new Uint8Array(e2 * t2); - for (let o2 = 0, r2 = e2 * t2; o2 < r2; o2++) - i2[o2] = n2; + for (let r2 = 0, o2 = e2 * t2; r2 < o2; r2++) + i2[r2] = n2; this._data = i2, this.rows = e2, this.cols = t2; } get(e2, t2) { @@ -26735,15 +26735,15 @@ class I { constructor(e2) { let t2 = 0, n2 = 0; - for (let i3 = 0, o2 = e2.length; i3 < o2; i3++) { - let [o3, r2, s2] = e2[i3]; - r2 > t2 && (t2 = r2), o3 > n2 && (n2 = o3), s2 > n2 && (n2 = s2); + for (let i3 = 0, r2 = e2.length; i3 < r2; i3++) { + let [r3, o2, s2] = e2[i3]; + o2 > t2 && (t2 = o2), r3 > n2 && (n2 = r3), s2 > n2 && (n2 = s2); } t2++, n2++; let i2 = new N(n2, t2, 0); for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) { - let [n4, o2, r2] = e2[t3]; - i2.set(n4, o2, r2); + let [n4, r2, o2] = e2[t3]; + i2.set(n4, r2, o2); } this._states = i2, this._maxCharCode = t2; } @@ -26751,45 +26751,45 @@ return t2 < 0 || t2 >= this._maxCharCode ? 0 : this._states.get(e2, t2); } } - let O = null; let D = null; + let O = null; class A { - static _createLink(e2, t2, n2, i2, o2) { - let r2 = o2 - 1; + static _createLink(e2, t2, n2, i2, r2) { + let o2 = r2 - 1; do { - const n3 = t2.charCodeAt(r2); + const n3 = t2.charCodeAt(o2); if (e2.get(n3) !== 2) break; - r2--; - } while (r2 > i2); + o2--; + } while (o2 > i2); if (i2 > 0) { - const e3 = t2.charCodeAt(i2 - 1), n3 = t2.charCodeAt(r2); - (e3 === 40 && n3 === 41 || e3 === 91 && n3 === 93 || e3 === 123 && n3 === 125) && r2--; + const e3 = t2.charCodeAt(i2 - 1), n3 = t2.charCodeAt(o2); + (e3 === 40 && n3 === 41 || e3 === 91 && n3 === 93 || e3 === 123 && n3 === 125) && o2--; } - return {range: {startLineNumber: n2, startColumn: i2 + 1, endLineNumber: n2, endColumn: r2 + 2}, url: t2.substring(i2, r2 + 1)}; + return {range: {startLineNumber: n2, startColumn: i2 + 1, endLineNumber: n2, endColumn: o2 + 2}, url: t2.substring(i2, o2 + 1)}; } static computeLinks(e2, t2 = function() { - return O === null && (O = new I([[1, 104, 2], [1, 72, 2], [1, 102, 6], [1, 70, 6], [2, 116, 3], [2, 84, 3], [3, 116, 4], [3, 84, 4], [4, 112, 5], [4, 80, 5], [5, 115, 9], [5, 83, 9], [5, 58, 10], [6, 105, 7], [6, 73, 7], [7, 108, 8], [7, 76, 8], [8, 101, 9], [8, 69, 9], [9, 58, 10], [10, 47, 11], [11, 47, 12]])), O; + return D === null && (D = new I([[1, 104, 2], [1, 72, 2], [1, 102, 6], [1, 70, 6], [2, 116, 3], [2, 84, 3], [3, 116, 4], [3, 84, 4], [4, 112, 5], [4, 80, 5], [5, 115, 9], [5, 83, 9], [5, 58, 10], [6, 105, 7], [6, 73, 7], [7, 108, 8], [7, 76, 8], [8, 101, 9], [8, 69, 9], [9, 58, 10], [10, 47, 11], [11, 47, 12]])), D; }()) { const n2 = function() { - if (D === null) { - D = new L.a(0); + if (O === null) { + O = new L.a(0); const e3 = ` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`; for (let t4 = 0; t4 < e3.length; t4++) - D.set(e3.charCodeAt(t4), 1); + O.set(e3.charCodeAt(t4), 1); const t3 = ".,;"; for (let e4 = 0; e4 < t3.length; e4++) - D.set(t3.charCodeAt(e4), 2); + O.set(t3.charCodeAt(e4), 2); } - return D; + return O; }(); let i2 = []; - for (let o2 = 1, r2 = e2.getLineCount(); o2 <= r2; o2++) { - const r3 = e2.getLineContent(o2), s2 = r3.length; + for (let r2 = 1, o2 = e2.getLineCount(); r2 <= o2; r2++) { + const o3 = e2.getLineContent(r2), s2 = o3.length; let a2 = 0, l2 = 0, c2 = 0, d2 = 1, h2 = false, u2 = false, p2 = false, m2 = false; for (; a2 < s2; ) { let e3 = false; - const s3 = r3.charCodeAt(a2); + const s3 = o3.charCodeAt(a2); if (d2 === 13) { let t3; switch (s3) { @@ -26832,7 +26832,7 @@ default: t3 = n2.get(s3); } - t3 === 1 && (i2.push(A._createLink(n2, r3, o2, l2, a2)), e3 = true); + t3 === 1 && (i2.push(A._createLink(n2, o3, r2, l2, a2)), e3 = true); } else if (d2 === 12) { let t3; s3 === 91 ? (u2 = true, t3 = 0) : t3 = n2.get(s3), t3 === 1 ? e3 = true : d2 = 13; @@ -26840,7 +26840,7 @@ d2 = t2.nextState(d2, s3), d2 === 0 && (e3 = true); e3 && (d2 = 1, h2 = false, u2 = false, m2 = false, l2 = a2 + 1, c2 = s3), a2++; } - d2 === 13 && i2.push(A._createLink(n2, r3, o2, l2, s2)); + d2 === 13 && i2.push(A._createLink(n2, o3, r2, l2, s2)); } return i2; } @@ -26849,14 +26849,14 @@ constructor() { this._defaultValueSet = [["true", "false"], ["True", "False"], ["Private", "Public", "Friend", "ReadOnly", "Partial", "Protected", "WriteOnly"], ["public", "protected", "private"]]; } - navigateValueSet(e2, t2, n2, i2, o2) { + navigateValueSet(e2, t2, n2, i2, r2) { if (e2 && t2) { - let n3 = this.doNavigateValueSet(t2, o2); + let n3 = this.doNavigateValueSet(t2, r2); if (n3) return {range: e2, value: n3}; } if (n2 && i2) { - let e3 = this.doNavigateValueSet(i2, o2); + let e3 = this.doNavigateValueSet(i2, r2); if (e3) return {range: n2, value: e3}; } @@ -26867,16 +26867,16 @@ return n2 !== null ? n2 : this.textReplace(e2, t2); } numberReplace(e2, t2) { - let n2 = Math.pow(10, e2.length - (e2.lastIndexOf(".") + 1)), i2 = Number(e2), o2 = parseFloat(e2); - return isNaN(i2) || isNaN(o2) || i2 !== o2 ? null : i2 !== 0 || t2 ? (i2 = Math.floor(i2 * n2), i2 += t2 ? n2 : -n2, String(i2 / n2)) : null; + let n2 = Math.pow(10, e2.length - (e2.lastIndexOf(".") + 1)), i2 = Number(e2), r2 = parseFloat(e2); + return isNaN(i2) || isNaN(r2) || i2 !== r2 ? null : i2 !== 0 || t2 ? (i2 = Math.floor(i2 * n2), i2 += t2 ? n2 : -n2, String(i2 / n2)) : null; } textReplace(e2, t2) { return this.valueSetsReplace(this._defaultValueSet, e2, t2); } valueSetsReplace(e2, t2, n2) { let i2 = null; - for (let o2 = 0, r2 = e2.length; i2 === null && o2 < r2; o2++) - i2 = this.valueSetReplace(e2[o2], t2, n2); + for (let r2 = 0, o2 = e2.length; i2 === null && r2 < o2; r2++) + i2 = this.valueSetReplace(e2[r2], t2, n2); return i2; } valueSetReplace(e2, t2, n2) { @@ -26886,24 +26886,24 @@ } R.INSTANCE = new R(); var M = n(100), P = n(14), F = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -26987,24 +26987,24 @@ } words(e2) { const t2 = this._lines, n2 = this._wordenize.bind(this); - let i2 = 0, o2 = "", r2 = 0, s2 = []; + let i2 = 0, r2 = "", o2 = 0, s2 = []; return {*[Symbol.iterator]() { for (; ; ) - if (r2 < s2.length) { - const e3 = o2.substring(s2[r2].start, s2[r2].end); - r2 += 1, yield e3; + if (o2 < s2.length) { + const e3 = r2.substring(s2[o2].start, s2[o2].end); + o2 += 1, yield e3; } else { if (!(i2 < t2.length)) break; - o2 = t2[i2], s2 = n2(o2, e2), r2 = 0, i2 += 1; + r2 = t2[i2], s2 = n2(r2, e2), o2 = 0, i2 += 1; } }}; } getLineWords(e2, t2) { - let n2 = this._lines[e2 - 1], i2 = this._wordenize(n2, t2), o2 = []; + let n2 = this._lines[e2 - 1], i2 = this._wordenize(n2, t2), r2 = []; for (const e3 of i2) - o2.push({word: n2.substring(e3.start, e3.end), startColumn: e3.start + 1, endColumn: e3.end + 1}); - return o2; + r2.push({word: n2.substring(e3.start, e3.end), startColumn: e3.start + 1, endColumn: e3.end + 1}); + return r2; } _wordenize(e2, t2) { const n2 = []; @@ -27016,11 +27016,11 @@ getValueInRange(e2) { if ((e2 = this._validateRange(e2)).startLineNumber === e2.endLineNumber) return this._lines[e2.startLineNumber - 1].substring(e2.startColumn - 1, e2.endColumn - 1); - let t2 = this._eol, n2 = e2.startLineNumber - 1, i2 = e2.endLineNumber - 1, o2 = []; - o2.push(this._lines[n2].substring(e2.startColumn - 1)); + let t2 = this._eol, n2 = e2.startLineNumber - 1, i2 = e2.endLineNumber - 1, r2 = []; + r2.push(this._lines[n2].substring(e2.startColumn - 1)); for (let e3 = n2 + 1; e3 < i2; e3++) - o2.push(this._lines[e3]); - return o2.push(this._lines[i2].substring(0, e2.endColumn - 1)), o2.join(t2); + r2.push(this._lines[e3]); + return r2.push(this._lines[i2].substring(0, e2.endColumn - 1)), r2.join(t2); } offsetAt(e2) { return e2 = this._validatePosition(e2), this._ensureLineStarts(), this._lineStarts.getAccumulatedValue(e2.lineNumber - 2) + (e2.column - 1); @@ -27076,10 +27076,10 @@ } computeDiff(e2, t2, n2, i2) { return F(this, void 0, void 0, function* () { - const o2 = this._getModel(e2), r2 = this._getModel(t2); - if (!o2 || !r2) + const r2 = this._getModel(e2), o2 = this._getModel(t2); + if (!r2 || !o2) return null; - const s2 = o2.getLinesContent(), a2 = r2.getLinesContent(), l2 = new C(s2, a2, {shouldComputeCharChanges: true, shouldPostProcessCharChanges: true, shouldIgnoreTrimWhitespace: n2, shouldMakePrettyDiff: true, maxComputationTime: i2}).computeDiff(), c2 = !(l2.changes.length > 0) && this._modelsAreIdentical(o2, r2); + const s2 = r2.getLinesContent(), a2 = o2.getLinesContent(), l2 = new C(s2, a2, {shouldComputeCharChanges: true, shouldPostProcessCharChanges: true, shouldIgnoreTrimWhitespace: n2, shouldMakePrettyDiff: true, maxComputationTime: i2}).computeDiff(), c2 = !(l2.changes.length > 0) && this._modelsAreIdentical(r2, o2); return {quitEarly: l2.quitEarly, identical: c2, changes: l2.changes}; }); } @@ -27098,30 +27098,30 @@ const n2 = this._getModel(e2); if (!n2) return t2; - const o2 = []; - let r2 = void 0; + const r2 = []; + let o2 = void 0; t2 = Object(i.p)(t2, (e3, t3) => { if (e3.range && t3.range) return g.a.compareRangesUsingStarts(e3.range, t3.range); return (e3.range ? 0 : 1) - (t3.range ? 0 : 1); }); for (let {range: e3, text: i2, eol: s2} of t2) { - if (typeof s2 == "number" && (r2 = s2), g.a.isEmpty(e3) && !i2) + if (typeof s2 == "number" && (o2 = s2), g.a.isEmpty(e3) && !i2) continue; const t3 = n2.getValueInRange(e3); if (i2 = i2.replace(/\r\n|\n|\r/g, n2.eol), t3 === i2) continue; if (Math.max(i2.length, t3.length) > z._diffLimit) { - o2.push({range: e3, text: i2}); + r2.push({range: e3, text: i2}); continue; } const l2 = a(t3, i2, false), c2 = n2.offsetAt(g.a.lift(e3).getStartPosition()); for (const e4 of l2) { - const t4 = n2.positionAt(c2 + e4.originalStart), r3 = n2.positionAt(c2 + e4.originalStart + e4.originalLength), s3 = {text: i2.substr(e4.modifiedStart, e4.modifiedLength), range: {startLineNumber: t4.lineNumber, startColumn: t4.column, endLineNumber: r3.lineNumber, endColumn: r3.column}}; - n2.getValueInRange(s3.range) !== s3.text && o2.push(s3); + const t4 = n2.positionAt(c2 + e4.originalStart), o3 = n2.positionAt(c2 + e4.originalStart + e4.originalLength), s3 = {text: i2.substr(e4.modifiedStart, e4.modifiedLength), range: {startLineNumber: t4.lineNumber, startColumn: t4.column, endLineNumber: o3.lineNumber, endColumn: o3.column}}; + n2.getValueInRange(s3.range) !== s3.text && r2.push(s3); } } - return typeof r2 == "number" && o2.push({eol: r2, text: "", range: {startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0}}), o2; + return typeof o2 == "number" && r2.push({eol: o2, text: "", range: {startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0}}), r2; }); } computeLinks(e2) { @@ -27134,25 +27134,25 @@ } textualSuggest(e2, t2, n2, i2) { return F(this, void 0, void 0, function* () { - const o2 = this._getModel(e2); - if (!o2) + const r2 = this._getModel(e2); + if (!r2) return null; - const r2 = [], s2 = new Set(), a2 = new RegExp(n2, i2), l2 = o2.getWordAtPosition(t2, a2); - l2 && s2.add(o2.getValueInRange(l2)); - for (let e3 of o2.words(a2)) - if (!s2.has(e3) && (s2.add(e3), isNaN(Number(e3)) && (r2.push(e3), s2.size > z._suggestionsLimit))) + const o2 = [], s2 = new Set(), a2 = new RegExp(n2, i2), l2 = r2.getWordAtPosition(t2, a2); + l2 && s2.add(r2.getValueInRange(l2)); + for (let e3 of r2.words(a2)) + if (!s2.has(e3) && (s2.add(e3), isNaN(Number(e3)) && (o2.push(e3), s2.size > z._suggestionsLimit))) break; - return r2; + return o2; }); } computeWordRanges(e2, t2, n2, i2) { return F(this, void 0, void 0, function* () { - let o2 = this._getModel(e2); - if (!o2) + let r2 = this._getModel(e2); + if (!r2) return Object.create(null); - const r2 = new RegExp(n2, i2), s2 = Object.create(null); + const o2 = new RegExp(n2, i2), s2 = Object.create(null); for (let e3 = t2.startLineNumber; e3 < t2.endLineNumber; e3++) { - let t3 = o2.getLineWords(e3, r2); + let t3 = r2.getLineWords(e3, o2); for (const n3 of t3) { if (!isNaN(Number(n3.word))) continue; @@ -27163,17 +27163,17 @@ return s2; }); } - navigateValueSet(e2, t2, n2, i2, o2) { + navigateValueSet(e2, t2, n2, i2, r2) { return F(this, void 0, void 0, function* () { - let r2 = this._getModel(e2); - if (!r2) + let o2 = this._getModel(e2); + if (!o2) return null; - let s2 = new RegExp(i2, o2); + let s2 = new RegExp(i2, r2); t2.startColumn === t2.endColumn && (t2 = {startLineNumber: t2.startLineNumber, startColumn: t2.startColumn, endLineNumber: t2.endLineNumber, endColumn: t2.endColumn + 1}); - let a2 = r2.getValueInRange(t2), l2 = r2.getWordAtPosition({lineNumber: t2.startLineNumber, column: t2.startColumn}, s2); + let a2 = o2.getValueInRange(t2), l2 = o2.getWordAtPosition({lineNumber: t2.startLineNumber, column: t2.startColumn}, s2); if (!l2) return null; - let c2 = r2.getValueInRange(l2); + let c2 = o2.getValueInRange(l2); return R.INSTANCE.navigateValueSet(t2, a2, l2, c2, n2); }); } @@ -27202,7 +27202,7 @@ return I; }); n(220); - var i = n(1), o = n(35), r = n(69), s = n(103), a = n(82), l = n(20); + var i = n(1), r = n(35), o = n(69), s = n(103), a = n(82), l = n(20); class c extends a.a { constructor(e2) { super(), this._onActivate = e2.onActivate, this.bgDomNode = document.createElement("div"), this.bgDomNode.className = "arrow-background", this.bgDomNode.style.position = "absolute", this.bgDomNode.style.width = e2.bgWidth + "px", this.bgDomNode.style.height = e2.bgHeight + "px", e2.top !== void 0 && (this.bgDomNode.style.top = "0px"), e2.left !== void 0 && (this.bgDomNode.style.left = "0px"), e2.bottom !== void 0 && (this.bgDomNode.style.bottom = "0px"), e2.right !== void 0 && (this.bgDomNode.style.right = "0px"), this.domNode = document.createElement("div"), this.domNode.className = e2.className, Object(i.f)(this.domNode, e2.icon.classNames), this.domNode.style.position = "absolute", this.domNode.style.width = "11px", this.domNode.style.height = "11px", e2.top !== void 0 && (this.domNode.style.top = e2.top + "px"), e2.left !== void 0 && (this.domNode.style.left = e2.left + "px"), e2.bottom !== void 0 && (this.domNode.style.bottom = e2.bottom + "px"), e2.right !== void 0 && (this.domNode.style.right = e2.right + "px"), this._mouseMoveMonitor = this._register(new s.a()), this.onmousedown(this.bgDomNode, (e3) => this._arrowMouseDown(e3)), this.onmousedown(this.domNode, (e3) => this._arrowMouseDown(e3)), this._mousedownRepeatTimer = this._register(new l.c()), this._mousedownScheduleRepeatTimer = this._register(new l.e()); @@ -27249,14 +27249,14 @@ var u = n(11); class p extends a.a { constructor(e2) { - super(), this._lazyRender = e2.lazyRender, this._host = e2.host, this._scrollable = e2.scrollable, this._scrollbarState = e2.scrollbarState, this._visibilityController = this._register(new h(e2.visibility, "visible scrollbar " + e2.extraScrollbarClassName, "invisible scrollbar " + e2.extraScrollbarClassName)), this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()), this._mouseMoveMonitor = this._register(new s.a()), this._shouldRender = true, this.domNode = Object(o.b)(document.createElement("div")), this.domNode.setAttribute("role", "presentation"), this.domNode.setAttribute("aria-hidden", "true"), this._visibilityController.setDomNode(this.domNode), this.domNode.setPosition("absolute"), this.onmousedown(this.domNode.domNode, (e3) => this._domNodeMouseDown(e3)); + super(), this._lazyRender = e2.lazyRender, this._host = e2.host, this._scrollable = e2.scrollable, this._scrollbarState = e2.scrollbarState, this._visibilityController = this._register(new h(e2.visibility, "visible scrollbar " + e2.extraScrollbarClassName, "invisible scrollbar " + e2.extraScrollbarClassName)), this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()), this._mouseMoveMonitor = this._register(new s.a()), this._shouldRender = true, this.domNode = Object(r.b)(document.createElement("div")), this.domNode.setAttribute("role", "presentation"), this.domNode.setAttribute("aria-hidden", "true"), this._visibilityController.setDomNode(this.domNode), this.domNode.setPosition("absolute"), this.onmousedown(this.domNode.domNode, (e3) => this._domNodeMouseDown(e3)); } _createArrow(e2) { let t2 = this._register(new c(e2)); this.domNode.domNode.appendChild(t2.bgDomNode), this.domNode.domNode.appendChild(t2.domNode); } _createSlider(e2, t2, n2, i2) { - this.slider = Object(o.b)(document.createElement("div")), this.slider.setClassName("slider"), this.slider.setPosition("absolute"), this.slider.setTop(e2), this.slider.setLeft(t2), typeof n2 == "number" && this.slider.setWidth(n2), typeof i2 == "number" && this.slider.setHeight(i2), this.slider.setLayerHinting(true), this.slider.setContain("strict"), this.domNode.domNode.appendChild(this.slider.domNode), this.onmousedown(this.slider.domNode, (e3) => { + this.slider = Object(r.b)(document.createElement("div")), this.slider.setClassName("slider"), this.slider.setPosition("absolute"), this.slider.setTop(e2), this.slider.setLeft(t2), typeof n2 == "number" && this.slider.setWidth(n2), typeof i2 == "number" && this.slider.setHeight(i2), this.slider.setLayerHinting(true), this.slider.setContain("strict"), this.domNode.domNode.appendChild(this.slider.domNode), this.onmousedown(this.slider.domNode, (e3) => { e3.leftButton && (e3.preventDefault(), this._sliderMouseDown(e3, () => { })); }), this.onclick(this.slider.domNode, (e3) => { @@ -27285,8 +27285,8 @@ e2.target === this.domNode.domNode && this._onMouseDown(e2); } delegateMouseDown(e2) { - let t2 = this.domNode.domNode.getClientRects()[0].top, n2 = t2 + this._scrollbarState.getSliderPosition(), i2 = t2 + this._scrollbarState.getSliderPosition() + this._scrollbarState.getSliderSize(), o2 = this._sliderMousePosition(e2); - n2 <= o2 && o2 <= i2 ? e2.leftButton && (e2.preventDefault(), this._sliderMouseDown(e2, () => { + let t2 = this.domNode.domNode.getClientRects()[0].top, n2 = t2 + this._scrollbarState.getSliderPosition(), i2 = t2 + this._scrollbarState.getSliderPosition() + this._scrollbarState.getSliderSize(), r2 = this._sliderMousePosition(e2); + n2 <= r2 && r2 <= i2 ? e2.leftButton && (e2.preventDefault(), this._sliderMouseDown(e2, () => { })) : this._onMouseDown(e2); } _onMouseDown(e2) { @@ -27294,20 +27294,20 @@ if (e2.target === this.domNode.domNode && typeof e2.browserEvent.offsetX == "number" && typeof e2.browserEvent.offsetY == "number") t2 = e2.browserEvent.offsetX, n2 = e2.browserEvent.offsetY; else { - const o2 = i.C(this.domNode.domNode); - t2 = e2.posx - o2.left, n2 = e2.posy - o2.top; + const r2 = i.C(this.domNode.domNode); + t2 = e2.posx - r2.left, n2 = e2.posy - r2.top; } this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t2, n2))), e2.leftButton && (e2.preventDefault(), this._sliderMouseDown(e2, () => { })); } _sliderMouseDown(e2, t2) { - const n2 = this._sliderMousePosition(e2), i2 = this._sliderOrthogonalMousePosition(e2), o2 = this._scrollbarState.clone(); + const n2 = this._sliderMousePosition(e2), i2 = this._sliderOrthogonalMousePosition(e2), r2 = this._scrollbarState.clone(); this.slider.toggleClassName("active", true), this._mouseMoveMonitor.startMonitoring(e2.target, e2.buttons, s.b, (e3) => { - const t3 = this._sliderOrthogonalMousePosition(e3), r2 = Math.abs(t3 - i2); - if (u.i && r2 > 140) - return void this._setDesiredScrollPositionNow(o2.getScrollPosition()); + const t3 = this._sliderOrthogonalMousePosition(e3), o2 = Math.abs(t3 - i2); + if (u.i && o2 > 140) + return void this._setDesiredScrollPositionNow(r2.getScrollPosition()); const s2 = this._sliderMousePosition(e3) - n2; - this._setDesiredScrollPositionNow(o2.getDesiredScrollPositionFromDelta(s2)); + this._setDesiredScrollPositionNow(r2.getDesiredScrollPositionFromDelta(s2)); }, () => { this.slider.toggleClassName("active", false), this._host.onDragEnd(), t2(); }), this._host.onDragStart(); @@ -27321,8 +27321,8 @@ } } class m { - constructor(e2, t2, n2, i2, o2, r2) { - this._scrollbarSize = Math.round(t2), this._oppositeScrollbarSize = Math.round(n2), this._arrowSize = Math.round(e2), this._visibleSize = i2, this._scrollSize = o2, this._scrollPosition = r2, this._computedAvailableSize = 0, this._computedIsNeeded = false, this._computedSliderSize = 0, this._computedSliderRatio = 0, this._computedSliderPosition = 0, this._refreshComputedValues(); + constructor(e2, t2, n2, i2, r2, o2) { + this._scrollbarSize = Math.round(t2), this._oppositeScrollbarSize = Math.round(n2), this._arrowSize = Math.round(e2), this._visibleSize = i2, this._scrollSize = r2, this._scrollPosition = o2, this._computedAvailableSize = 0, this._computedIsNeeded = false, this._computedSliderSize = 0, this._computedSliderRatio = 0, this._computedSliderPosition = 0, this._refreshComputedValues(); } clone() { return new m(this._arrowSize, this._scrollbarSize, this._oppositeScrollbarSize, this._visibleSize, this._scrollSize, this._scrollPosition); @@ -27342,12 +27342,12 @@ setScrollbarSize(e2) { this._scrollbarSize = e2; } - static _computeValues(e2, t2, n2, i2, o2) { - const r2 = Math.max(0, n2 - e2), s2 = Math.max(0, r2 - 2 * t2), a2 = i2 > 0 && i2 > n2; + static _computeValues(e2, t2, n2, i2, r2) { + const o2 = Math.max(0, n2 - e2), s2 = Math.max(0, o2 - 2 * t2), a2 = i2 > 0 && i2 > n2; if (!a2) - return {computedAvailableSize: Math.round(r2), computedIsNeeded: a2, computedSliderSize: Math.round(s2), computedSliderRatio: 0, computedSliderPosition: 0}; - const l2 = Math.round(Math.max(20, Math.floor(n2 * s2 / i2))), c2 = (s2 - l2) / (i2 - n2), d2 = o2 * c2; - return {computedAvailableSize: Math.round(r2), computedIsNeeded: a2, computedSliderSize: Math.round(l2), computedSliderRatio: c2, computedSliderPosition: Math.round(d2)}; + return {computedAvailableSize: Math.round(o2), computedIsNeeded: a2, computedSliderSize: Math.round(s2), computedSliderRatio: 0, computedSliderPosition: 0}; + const l2 = Math.round(Math.max(20, Math.floor(n2 * s2 / i2))), c2 = (s2 - l2) / (i2 - n2), d2 = r2 * c2; + return {computedAvailableSize: Math.round(o2), computedIsNeeded: a2, computedSliderSize: Math.round(l2), computedSliderRatio: c2, computedSliderPosition: Math.round(d2)}; } _refreshComputedValues() { const e2 = m._computeValues(this._oppositeScrollbarSize, this._arrowSize, this._visibleSize, this._scrollSize, this._scrollPosition); @@ -27391,10 +27391,10 @@ const f = Object(g.e)("scrollbar-button-left", g.a.triangleLeft), b = Object(g.e)("scrollbar-button-right", g.a.triangleRight); class _ extends p { constructor(e2, t2, n2) { - const i2 = e2.getScrollDimensions(), o2 = e2.getCurrentScrollPosition(); - if (super({lazyRender: t2.lazyRender, host: n2, scrollbarState: new m(t2.horizontalHasArrows ? t2.arrowSize : 0, t2.horizontal === 2 ? 0 : t2.horizontalScrollbarSize, t2.vertical === 2 ? 0 : t2.verticalScrollbarSize, i2.width, i2.scrollWidth, o2.scrollLeft), visibility: t2.horizontal, extraScrollbarClassName: "horizontal", scrollable: e2}), t2.horizontalHasArrows) { + const i2 = e2.getScrollDimensions(), r2 = e2.getCurrentScrollPosition(); + if (super({lazyRender: t2.lazyRender, host: n2, scrollbarState: new m(t2.horizontalHasArrows ? t2.arrowSize : 0, t2.horizontal === 2 ? 0 : t2.horizontalScrollbarSize, t2.vertical === 2 ? 0 : t2.verticalScrollbarSize, i2.width, i2.scrollWidth, r2.scrollLeft), visibility: t2.horizontal, extraScrollbarClassName: "horizontal", scrollable: e2}), t2.horizontalHasArrows) { let e3 = (t2.arrowSize - 11) / 2, n3 = (t2.horizontalScrollbarSize - 11) / 2; - this._createArrow({className: "scra", icon: f, top: n3, left: e3, bottom: void 0, right: void 0, bgWidth: t2.arrowSize, bgHeight: t2.horizontalScrollbarSize, onActivate: () => this._host.onMouseWheel(new r.b(null, 1, 0))}), this._createArrow({className: "scra", icon: b, top: n3, left: void 0, bottom: void 0, right: e3, bgWidth: t2.arrowSize, bgHeight: t2.horizontalScrollbarSize, onActivate: () => this._host.onMouseWheel(new r.b(null, -1, 0))}); + this._createArrow({className: "scra", icon: f, top: n3, left: e3, bottom: void 0, right: void 0, bgWidth: t2.arrowSize, bgHeight: t2.horizontalScrollbarSize, onActivate: () => this._host.onMouseWheel(new o.b(null, 1, 0))}), this._createArrow({className: "scra", icon: b, top: n3, left: void 0, bottom: void 0, right: e3, bgWidth: t2.arrowSize, bgHeight: t2.horizontalScrollbarSize, onActivate: () => this._host.onMouseWheel(new o.b(null, -1, 0))}); } this._createSlider(Math.floor((t2.horizontalScrollbarSize - t2.horizontalSliderSize) / 2), 0, void 0, t2.horizontalSliderSize); } @@ -27426,10 +27426,10 @@ const v = Object(g.e)("scrollbar-button-up", g.a.triangleUp), w = Object(g.e)("scrollbar-button-down", g.a.triangleDown); class y extends p { constructor(e2, t2, n2) { - const i2 = e2.getScrollDimensions(), o2 = e2.getCurrentScrollPosition(); - if (super({lazyRender: t2.lazyRender, host: n2, scrollbarState: new m(t2.verticalHasArrows ? t2.arrowSize : 0, t2.vertical === 2 ? 0 : t2.verticalScrollbarSize, 0, i2.height, i2.scrollHeight, o2.scrollTop), visibility: t2.vertical, extraScrollbarClassName: "vertical", scrollable: e2}), t2.verticalHasArrows) { + const i2 = e2.getScrollDimensions(), r2 = e2.getCurrentScrollPosition(); + if (super({lazyRender: t2.lazyRender, host: n2, scrollbarState: new m(t2.verticalHasArrows ? t2.arrowSize : 0, t2.vertical === 2 ? 0 : t2.verticalScrollbarSize, 0, i2.height, i2.scrollHeight, r2.scrollTop), visibility: t2.vertical, extraScrollbarClassName: "vertical", scrollable: e2}), t2.verticalHasArrows) { let e3 = (t2.arrowSize - 11) / 2, n3 = (t2.verticalScrollbarSize - 11) / 2; - this._createArrow({className: "scra", icon: v, top: e3, left: n3, bottom: void 0, right: void 0, bgWidth: t2.verticalScrollbarSize, bgHeight: t2.arrowSize, onActivate: () => this._host.onMouseWheel(new r.b(null, 0, 1))}), this._createArrow({className: "scra", icon: w, top: void 0, left: n3, bottom: e3, right: void 0, bgWidth: t2.verticalScrollbarSize, bgHeight: t2.arrowSize, onActivate: () => this._host.onMouseWheel(new r.b(null, 0, -1))}); + this._createArrow({className: "scra", icon: v, top: e3, left: n3, bottom: void 0, right: void 0, bgWidth: t2.verticalScrollbarSize, bgHeight: t2.arrowSize, onActivate: () => this._host.onMouseWheel(new o.b(null, 0, 1))}), this._createArrow({className: "scra", icon: w, top: void 0, left: n3, bottom: e3, right: void 0, bgWidth: t2.verticalScrollbarSize, bgHeight: t2.arrowSize, onActivate: () => this._host.onMouseWheel(new o.b(null, 0, -1))}); } this._createSlider(0, Math.floor((t2.verticalScrollbarSize - t2.verticalSliderSize) / 2), t2.verticalSliderSize, void 0); } @@ -27473,8 +27473,8 @@ return false; let e2 = 1, t2 = 0, n2 = 1, i2 = this._rear; for (; ; ) { - const o2 = i2 === this._front ? e2 : Math.pow(2, -n2); - if (e2 -= o2, t2 += this._memory[i2].score * o2, i2 === this._front) + const r2 = i2 === this._front ? e2 : Math.pow(2, -n2); + if (e2 -= r2, t2 += this._memory[i2].score * r2, i2 === this._front) break; i2 = (this._capacity + i2 - 1) % this._capacity, n2++; } @@ -27506,7 +27506,7 @@ this._onWillScroll.fire(e3), this._onDidScroll(e3), this._onScroll.fire(e3); })); let i2 = {onMouseWheel: (e3) => this._onMouseWheel(e3), onDragStart: () => this._onDragStart(), onDragEnd: () => this._onDragEnd()}; - this._verticalScrollbar = this._register(new y(this._scrollable, this._options, i2)), this._horizontalScrollbar = this._register(new _(this._scrollable, this._options, i2)), this._domNode = document.createElement("div"), this._domNode.className = "monaco-scrollable-element " + this._options.className, this._domNode.setAttribute("role", "presentation"), this._domNode.style.position = "relative", this._domNode.style.overflow = "hidden", this._domNode.appendChild(e2), this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode), this._domNode.appendChild(this._verticalScrollbar.domNode.domNode), this._options.useShadows ? (this._leftShadowDomNode = Object(o.b)(document.createElement("div")), this._leftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._leftShadowDomNode.domNode), this._topShadowDomNode = Object(o.b)(document.createElement("div")), this._topShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topShadowDomNode.domNode), this._topLeftShadowDomNode = Object(o.b)(document.createElement("div")), this._topLeftShadowDomNode.setClassName("shadow top-left-corner"), this._domNode.appendChild(this._topLeftShadowDomNode.domNode)) : (this._leftShadowDomNode = null, this._topShadowDomNode = null, this._topLeftShadowDomNode = null), this._listenOnDomNode = this._options.listenOnDomNode || this._domNode, this._mouseWheelToDispose = [], this._setListeningToMouseWheel(this._options.handleMouseWheel), this.onmouseover(this._listenOnDomNode, (e3) => this._onMouseOver(e3)), this.onnonbubblingmouseout(this._listenOnDomNode, (e3) => this._onMouseOut(e3)), this._hideTimeout = this._register(new l.e()), this._isDragging = false, this._mouseIsOver = false, this._shouldRender = true, this._revealOnScroll = true; + this._verticalScrollbar = this._register(new y(this._scrollable, this._options, i2)), this._horizontalScrollbar = this._register(new _(this._scrollable, this._options, i2)), this._domNode = document.createElement("div"), this._domNode.className = "monaco-scrollable-element " + this._options.className, this._domNode.setAttribute("role", "presentation"), this._domNode.style.position = "relative", this._domNode.style.overflow = "hidden", this._domNode.appendChild(e2), this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode), this._domNode.appendChild(this._verticalScrollbar.domNode.domNode), this._options.useShadows ? (this._leftShadowDomNode = Object(r.b)(document.createElement("div")), this._leftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._leftShadowDomNode.domNode), this._topShadowDomNode = Object(r.b)(document.createElement("div")), this._topShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topShadowDomNode.domNode), this._topLeftShadowDomNode = Object(r.b)(document.createElement("div")), this._topLeftShadowDomNode.setClassName("shadow top-left-corner"), this._domNode.appendChild(this._topLeftShadowDomNode.domNode)) : (this._leftShadowDomNode = null, this._topShadowDomNode = null, this._topLeftShadowDomNode = null), this._listenOnDomNode = this._options.listenOnDomNode || this._domNode, this._mouseWheelToDispose = [], this._setListeningToMouseWheel(this._options.handleMouseWheel), this.onmouseover(this._listenOnDomNode, (e3) => this._onMouseOver(e3)), this.onnonbubblingmouseout(this._listenOnDomNode, (e3) => this._onMouseOut(e3)), this._hideTimeout = this._register(new l.e()), this._isDragging = false, this._mouseIsOver = false, this._shouldRender = true, this._revealOnScroll = true; } dispose() { this._mouseWheelToDispose = Object(d.f)(this._mouseWheelToDispose), super.dispose(); @@ -27535,7 +27535,7 @@ _setListeningToMouseWheel(e2) { if (this._mouseWheelToDispose.length > 0 !== e2 && (this._mouseWheelToDispose = Object(d.f)(this._mouseWheelToDispose), e2)) { let e3 = (e4) => { - this._onMouseWheel(new r.b(e4)); + this._onMouseWheel(new o.b(e4)); }; this._mouseWheelToDispose.push(i.i(this._listenOnDomNode, i.c.MOUSE_WHEEL, e3, {passive: false})); } @@ -27549,19 +27549,19 @@ if (e2.deltaY || e2.deltaX) { let n2 = e2.deltaY * this._options.mouseWheelScrollSensitivity, i2 = e2.deltaX * this._options.mouseWheelScrollSensitivity; this._options.scrollPredominantAxis && (Math.abs(n2) >= Math.abs(i2) ? i2 = 0 : n2 = 0), this._options.flipAxes && ([n2, i2] = [i2, n2]); - const o2 = !u.f && e2.browserEvent && e2.browserEvent.shiftKey; - !this._options.scrollYToX && !o2 || i2 || (i2 = n2, n2 = 0), e2.browserEvent && e2.browserEvent.altKey && (i2 *= this._options.fastScrollSensitivity, n2 *= this._options.fastScrollSensitivity); - const r2 = this._scrollable.getFutureScrollPosition(); + const r2 = !u.f && e2.browserEvent && e2.browserEvent.shiftKey; + !this._options.scrollYToX && !r2 || i2 || (i2 = n2, n2 = 0), e2.browserEvent && e2.browserEvent.altKey && (i2 *= this._options.fastScrollSensitivity, n2 *= this._options.fastScrollSensitivity); + const o2 = this._scrollable.getFutureScrollPosition(); let s2 = {}; if (n2) { - const e3 = r2.scrollTop - 50 * n2; + const e3 = o2.scrollTop - 50 * n2; this._verticalScrollbar.writeScrollPosition(s2, e3); } if (i2) { - const e3 = r2.scrollLeft - 50 * i2; + const e3 = o2.scrollLeft - 50 * i2; this._horizontalScrollbar.writeScrollPosition(s2, e3); } - if (s2 = this._scrollable.validateScrollPosition(s2), r2.scrollLeft !== s2.scrollLeft || r2.scrollTop !== s2.scrollTop) { + if (s2 = this._scrollable.validateScrollPosition(s2), o2.scrollLeft !== s2.scrollLeft || o2.scrollTop !== s2.scrollTop) { this._options.mouseWheelSmoothScroll && t2.isPhysicalMouseWheel() ? this._scrollable.setScrollPositionSmooth(s2) : this._scrollable.setScrollPositionNow(s2), this._shouldRender = true; } } @@ -27648,7 +27648,7 @@ }), n.d(t, "b", function() { return m; }); - var i = n(8), o = n(117), r = n(9), s = n(3), a = n(58); + var i = n(8), r = n(117), o = n(9), s = n(3), a = n(58); class l { constructor(e2, t2, n2, i2) { this.searchString = e2, this.isRegex = t2, this.matchCase = n2, this.wordSeparators = i2; @@ -27680,7 +27680,7 @@ if (!t2) return null; let n2 = !this.isRegex && !e2; - return n2 && this.searchString.toLowerCase() !== this.searchString.toUpperCase() && (n2 = this.matchCase), new c(t2, this.wordSeparators ? Object(o.a)(this.wordSeparators) : null, n2 ? this.searchString : null); + return n2 && this.searchString.toLowerCase() !== this.searchString.toUpperCase() && (n2 = this.matchCase), new c(t2, this.wordSeparators ? Object(r.a)(this.wordSeparators) : null, n2 ? this.searchString : null); } } class c { @@ -27699,7 +27699,7 @@ class h { constructor(e2) { let t2 = [], n2 = 0; - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) e2.charCodeAt(i2) === 10 && (t2[n2++] = i2); this._lineFeedsOffsets = t2; } @@ -27711,162 +27711,162 @@ if (e2 <= t2[0]) return 0; for (; n2 < i2; ) { - const o2 = n2 + ((i2 - n2) / 2 >> 0); - t2[o2] >= e2 ? i2 = o2 - 1 : t2[o2 + 1] >= e2 ? (n2 = o2, i2 = o2) : n2 = o2 + 1; + const r2 = n2 + ((i2 - n2) / 2 >> 0); + t2[r2] >= e2 ? i2 = r2 - 1 : t2[r2 + 1] >= e2 ? (n2 = r2, i2 = r2) : n2 = r2 + 1; } return n2 + 1; } } class u { - static findMatches(e2, t2, n2, i2, o2) { - const r2 = t2.parseSearchRequest(); - return r2 ? r2.regex.multiline ? this._doFindMatchesMultiline(e2, n2, new m(r2.wordSeparators, r2.regex), i2, o2) : this._doFindMatchesLineByLine(e2, n2, r2, i2, o2) : []; + static findMatches(e2, t2, n2, i2, r2) { + const o2 = t2.parseSearchRequest(); + return o2 ? o2.regex.multiline ? this._doFindMatchesMultiline(e2, n2, new m(o2.wordSeparators, o2.regex), i2, r2) : this._doFindMatchesLineByLine(e2, n2, o2, i2, r2) : []; } - static _getMultilineMatchRange(e2, t2, n2, i2, o2, r2) { + static _getMultilineMatchRange(e2, t2, n2, i2, r2, o2) { let a2, l2, c2 = 0; - if (i2 ? (c2 = i2.findLineFeedCountBeforeOffset(o2), a2 = t2 + o2 + c2) : a2 = t2 + o2, i2) { - let e3 = i2.findLineFeedCountBeforeOffset(o2 + r2.length) - c2; - l2 = a2 + r2.length + e3; + if (i2 ? (c2 = i2.findLineFeedCountBeforeOffset(r2), a2 = t2 + r2 + c2) : a2 = t2 + r2, i2) { + let e3 = i2.findLineFeedCountBeforeOffset(r2 + o2.length) - c2; + l2 = a2 + o2.length + e3; } else - l2 = a2 + r2.length; + l2 = a2 + o2.length; const d2 = e2.getPositionAt(a2), h2 = e2.getPositionAt(l2); return new s.a(d2.lineNumber, d2.column, h2.lineNumber, h2.column); } - static _doFindMatchesMultiline(e2, t2, n2, i2, o2) { - const r2 = e2.getOffsetAt(t2.getStartPosition()), s2 = e2.getValueInRange(t2, 1), a2 = e2.getEOL() === "\r\n" ? new h(s2) : null, l2 = []; + static _doFindMatchesMultiline(e2, t2, n2, i2, r2) { + const o2 = e2.getOffsetAt(t2.getStartPosition()), s2 = e2.getValueInRange(t2, 1), a2 = e2.getEOL() === "\r\n" ? new h(s2) : null, l2 = []; let c2, u2 = 0; for (n2.reset(0); c2 = n2.next(s2); ) - if (l2[u2++] = d(this._getMultilineMatchRange(e2, r2, s2, a2, c2.index, c2[0]), c2, i2), u2 >= o2) + if (l2[u2++] = d(this._getMultilineMatchRange(e2, o2, s2, a2, c2.index, c2[0]), c2, i2), u2 >= r2) return l2; return l2; } - static _doFindMatchesLineByLine(e2, t2, n2, i2, o2) { - const r2 = []; + static _doFindMatchesLineByLine(e2, t2, n2, i2, r2) { + const o2 = []; let s2 = 0; if (t2.startLineNumber === t2.endLineNumber) { const a3 = e2.getLineContent(t2.startLineNumber).substring(t2.startColumn - 1, t2.endColumn - 1); - return s2 = this._findMatchesInLine(n2, a3, t2.startLineNumber, t2.startColumn - 1, s2, r2, i2, o2), r2; + return s2 = this._findMatchesInLine(n2, a3, t2.startLineNumber, t2.startColumn - 1, s2, o2, i2, r2), o2; } const a2 = e2.getLineContent(t2.startLineNumber).substring(t2.startColumn - 1); - s2 = this._findMatchesInLine(n2, a2, t2.startLineNumber, t2.startColumn - 1, s2, r2, i2, o2); - for (let a3 = t2.startLineNumber + 1; a3 < t2.endLineNumber && s2 < o2; a3++) - s2 = this._findMatchesInLine(n2, e2.getLineContent(a3), a3, 0, s2, r2, i2, o2); - if (s2 < o2) { + s2 = this._findMatchesInLine(n2, a2, t2.startLineNumber, t2.startColumn - 1, s2, o2, i2, r2); + for (let a3 = t2.startLineNumber + 1; a3 < t2.endLineNumber && s2 < r2; a3++) + s2 = this._findMatchesInLine(n2, e2.getLineContent(a3), a3, 0, s2, o2, i2, r2); + if (s2 < r2) { const a3 = e2.getLineContent(t2.endLineNumber).substring(0, t2.endColumn - 1); - s2 = this._findMatchesInLine(n2, a3, t2.endLineNumber, 0, s2, r2, i2, o2); + s2 = this._findMatchesInLine(n2, a3, t2.endLineNumber, 0, s2, o2, i2, r2); } - return r2; + return o2; } - static _findMatchesInLine(e2, t2, n2, i2, o2, r2, l2, c2) { + static _findMatchesInLine(e2, t2, n2, i2, r2, o2, l2, c2) { const h2 = e2.wordSeparators; if (!l2 && e2.simpleSearch) { const l3 = e2.simpleSearch, d2 = l3.length, u3 = t2.length; let m2 = -d2; for (; (m2 = t2.indexOf(l3, m2 + d2)) !== -1; ) - if ((!h2 || p(h2, t2, u3, m2, d2)) && (r2[o2++] = new a.b(new s.a(n2, m2 + 1 + i2, n2, m2 + 1 + d2 + i2), null), o2 >= c2)) - return o2; - return o2; + if ((!h2 || p(h2, t2, u3, m2, d2)) && (o2[r2++] = new a.b(new s.a(n2, m2 + 1 + i2, n2, m2 + 1 + d2 + i2), null), r2 >= c2)) + return r2; + return r2; } const u2 = new m(e2.wordSeparators, e2.regex); let g; u2.reset(0); do { - if (g = u2.next(t2), g && (r2[o2++] = d(new s.a(n2, g.index + 1 + i2, n2, g.index + 1 + g[0].length + i2), g, l2), o2 >= c2)) - return o2; + if (g = u2.next(t2), g && (o2[r2++] = d(new s.a(n2, g.index + 1 + i2, n2, g.index + 1 + g[0].length + i2), g, l2), r2 >= c2)) + return r2; } while (g); - return o2; + return r2; } static findNextMatch(e2, t2, n2, i2) { - const o2 = t2.parseSearchRequest(); - if (!o2) + const r2 = t2.parseSearchRequest(); + if (!r2) return null; - const r2 = new m(o2.wordSeparators, o2.regex); - return o2.regex.multiline ? this._doFindNextMatchMultiline(e2, n2, r2, i2) : this._doFindNextMatchLineByLine(e2, n2, r2, i2); + const o2 = new m(r2.wordSeparators, r2.regex); + return r2.regex.multiline ? this._doFindNextMatchMultiline(e2, n2, o2, i2) : this._doFindNextMatchLineByLine(e2, n2, o2, i2); } static _doFindNextMatchMultiline(e2, t2, n2, i2) { - const o2 = new r.a(t2.lineNumber, 1), a2 = e2.getOffsetAt(o2), l2 = e2.getLineCount(), c2 = e2.getValueInRange(new s.a(o2.lineNumber, o2.column, l2, e2.getLineMaxColumn(l2)), 1), u2 = e2.getEOL() === "\r\n" ? new h(c2) : null; + const r2 = new o.a(t2.lineNumber, 1), a2 = e2.getOffsetAt(r2), l2 = e2.getLineCount(), c2 = e2.getValueInRange(new s.a(r2.lineNumber, r2.column, l2, e2.getLineMaxColumn(l2)), 1), u2 = e2.getEOL() === "\r\n" ? new h(c2) : null; n2.reset(t2.column - 1); let p2 = n2.next(c2); - return p2 ? d(this._getMultilineMatchRange(e2, a2, c2, u2, p2.index, p2[0]), p2, i2) : t2.lineNumber !== 1 || t2.column !== 1 ? this._doFindNextMatchMultiline(e2, new r.a(1, 1), n2, i2) : null; + return p2 ? d(this._getMultilineMatchRange(e2, a2, c2, u2, p2.index, p2[0]), p2, i2) : t2.lineNumber !== 1 || t2.column !== 1 ? this._doFindNextMatchMultiline(e2, new o.a(1, 1), n2, i2) : null; } static _doFindNextMatchLineByLine(e2, t2, n2, i2) { - const o2 = e2.getLineCount(), r2 = t2.lineNumber, s2 = e2.getLineContent(r2), a2 = this._findFirstMatchInLine(n2, s2, r2, t2.column, i2); + const r2 = e2.getLineCount(), o2 = t2.lineNumber, s2 = e2.getLineContent(o2), a2 = this._findFirstMatchInLine(n2, s2, o2, t2.column, i2); if (a2) return a2; - for (let t3 = 1; t3 <= o2; t3++) { - const s3 = (r2 + t3 - 1) % o2, a3 = e2.getLineContent(s3 + 1), l2 = this._findFirstMatchInLine(n2, a3, s3 + 1, 1, i2); + for (let t3 = 1; t3 <= r2; t3++) { + const s3 = (o2 + t3 - 1) % r2, a3 = e2.getLineContent(s3 + 1), l2 = this._findFirstMatchInLine(n2, a3, s3 + 1, 1, i2); if (l2) return l2; } return null; } - static _findFirstMatchInLine(e2, t2, n2, i2, o2) { + static _findFirstMatchInLine(e2, t2, n2, i2, r2) { e2.reset(i2 - 1); - const r2 = e2.next(t2); - return r2 ? d(new s.a(n2, r2.index + 1, n2, r2.index + 1 + r2[0].length), r2, o2) : null; + const o2 = e2.next(t2); + return o2 ? d(new s.a(n2, o2.index + 1, n2, o2.index + 1 + o2[0].length), o2, r2) : null; } static findPreviousMatch(e2, t2, n2, i2) { - const o2 = t2.parseSearchRequest(); - if (!o2) + const r2 = t2.parseSearchRequest(); + if (!r2) return null; - const r2 = new m(o2.wordSeparators, o2.regex); - return o2.regex.multiline ? this._doFindPreviousMatchMultiline(e2, n2, r2, i2) : this._doFindPreviousMatchLineByLine(e2, n2, r2, i2); + const o2 = new m(r2.wordSeparators, r2.regex); + return r2.regex.multiline ? this._doFindPreviousMatchMultiline(e2, n2, o2, i2) : this._doFindPreviousMatchLineByLine(e2, n2, o2, i2); } static _doFindPreviousMatchMultiline(e2, t2, n2, i2) { - const o2 = this._doFindMatchesMultiline(e2, new s.a(1, 1, t2.lineNumber, t2.column), n2, i2, 9990); - if (o2.length > 0) - return o2[o2.length - 1]; + const r2 = this._doFindMatchesMultiline(e2, new s.a(1, 1, t2.lineNumber, t2.column), n2, i2, 9990); + if (r2.length > 0) + return r2[r2.length - 1]; const a2 = e2.getLineCount(); - return t2.lineNumber !== a2 || t2.column !== e2.getLineMaxColumn(a2) ? this._doFindPreviousMatchMultiline(e2, new r.a(a2, e2.getLineMaxColumn(a2)), n2, i2) : null; + return t2.lineNumber !== a2 || t2.column !== e2.getLineMaxColumn(a2) ? this._doFindPreviousMatchMultiline(e2, new o.a(a2, e2.getLineMaxColumn(a2)), n2, i2) : null; } static _doFindPreviousMatchLineByLine(e2, t2, n2, i2) { - const o2 = e2.getLineCount(), r2 = t2.lineNumber, s2 = e2.getLineContent(r2).substring(0, t2.column - 1), a2 = this._findLastMatchInLine(n2, s2, r2, i2); + const r2 = e2.getLineCount(), o2 = t2.lineNumber, s2 = e2.getLineContent(o2).substring(0, t2.column - 1), a2 = this._findLastMatchInLine(n2, s2, o2, i2); if (a2) return a2; - for (let t3 = 1; t3 <= o2; t3++) { - const s3 = (o2 + r2 - t3 - 1) % o2, a3 = e2.getLineContent(s3 + 1), l2 = this._findLastMatchInLine(n2, a3, s3 + 1, i2); + for (let t3 = 1; t3 <= r2; t3++) { + const s3 = (r2 + o2 - t3 - 1) % r2, a3 = e2.getLineContent(s3 + 1), l2 = this._findLastMatchInLine(n2, a3, s3 + 1, i2); if (l2) return l2; } return null; } static _findLastMatchInLine(e2, t2, n2, i2) { - let o2, r2 = null; - for (e2.reset(0); o2 = e2.next(t2); ) - r2 = d(new s.a(n2, o2.index + 1, n2, o2.index + 1 + o2[0].length), o2, i2); - return r2; + let r2, o2 = null; + for (e2.reset(0); r2 = e2.next(t2); ) + o2 = d(new s.a(n2, r2.index + 1, n2, r2.index + 1 + r2[0].length), r2, i2); + return o2; } } - function p(e2, t2, n2, i2, o2) { - return function(e3, t3, n3, i3, o3) { + function p(e2, t2, n2, i2, r2) { + return function(e3, t3, n3, i3, r3) { if (i3 === 0) return true; - const r2 = t3.charCodeAt(i3 - 1); - if (e3.get(r2) !== 0) + const o2 = t3.charCodeAt(i3 - 1); + if (e3.get(o2) !== 0) return true; - if (r2 === 13 || r2 === 10) + if (o2 === 13 || o2 === 10) return true; - if (o3 > 0) { + if (r3 > 0) { const n4 = t3.charCodeAt(i3); if (e3.get(n4) !== 0) return true; } return false; - }(e2, t2, 0, i2, o2) && function(e3, t3, n3, i3, o3) { - if (i3 + o3 === n3) + }(e2, t2, 0, i2, r2) && function(e3, t3, n3, i3, r3) { + if (i3 + r3 === n3) return true; - const r2 = t3.charCodeAt(i3 + o3); - if (e3.get(r2) !== 0) + const o2 = t3.charCodeAt(i3 + r3); + if (e3.get(o2) !== 0) return true; - if (r2 === 13 || r2 === 10) + if (o2 === 13 || o2 === 10) return true; - if (o3 > 0) { - const n4 = t3.charCodeAt(i3 + o3 - 1); + if (r3 > 0) { + const n4 = t3.charCodeAt(i3 + r3 - 1); if (e3.get(n4) !== 0) return true; } return false; - }(e2, t2, n2, i2, o2); + }(e2, t2, n2, i2, r2); } class m { constructor(e2, t2) { @@ -27883,15 +27883,15 @@ return null; if (n2 = this._searchRegex.exec(e2), !n2) return null; - const o2 = n2.index, r2 = n2[0].length; - if (o2 === this._prevMatchStartIndex && r2 === this._prevMatchLength) { - if (r2 === 0) { + const r2 = n2.index, o2 = n2[0].length; + if (r2 === this._prevMatchStartIndex && o2 === this._prevMatchLength) { + if (o2 === 0) { i.A(e2, t2, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1; continue; } return null; } - if (this._prevMatchStartIndex = o2, this._prevMatchLength = r2, !this._wordSeparators || p(this._wordSeparators, e2, t2, o2, r2)) + if (this._prevMatchStartIndex = r2, this._prevMatchLength = o2, !this._wordSeparators || p(this._wordSeparators, e2, t2, r2, o2)) return n2; } while (n2); return null; @@ -27904,14 +27904,14 @@ }), n.d(t, "a", function() { return T; }); - var i = n(0), o = n(14), r = n(4), s = n(41), a = n(22), l = n(9), c = n(3); + var i = n(0), r = n(14), o = n(4), s = n(41), a = n(22), l = n(9), c = n(3); class d { - static columnSelect(e2, t2, n2, i2, o2, r2) { - let s2 = Math.abs(o2 - n2) + 1, d2 = n2 > o2, h2 = i2 > r2, u2 = i2 < r2, p2 = []; - for (let o3 = 0; o3 < s2; o3++) { - let s3 = n2 + (d2 ? -o3 : o3), m2 = a.a.columnFromVisibleColumn2(e2, t2, s3, i2), g2 = a.a.columnFromVisibleColumn2(e2, t2, s3, r2), f2 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(s3, m2)), b2 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(s3, g2)); + static columnSelect(e2, t2, n2, i2, r2, o2) { + let s2 = Math.abs(r2 - n2) + 1, d2 = n2 > r2, h2 = i2 > o2, u2 = i2 < o2, p2 = []; + for (let r3 = 0; r3 < s2; r3++) { + let s3 = n2 + (d2 ? -r3 : r3), m2 = a.a.columnFromVisibleColumn2(e2, t2, s3, i2), g2 = a.a.columnFromVisibleColumn2(e2, t2, s3, o2), f2 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(s3, m2)), b2 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(s3, g2)); if (u2) { - if (f2 > r2) + if (f2 > o2) continue; if (b2 < i2) continue; @@ -27919,17 +27919,17 @@ if (h2) { if (b2 > i2) continue; - if (f2 < r2) + if (f2 < o2) continue; } p2.push(new a.f(new c.a(s3, m2, s3, m2), 0, new l.a(s3, g2), 0)); } if (p2.length === 0) for (let e3 = 0; e3 < s2; e3++) { - const i3 = n2 + (d2 ? -e3 : e3), o3 = t2.getLineMaxColumn(i3); - p2.push(new a.f(new c.a(i3, o3, i3, o3), 0, new l.a(i3, o3), 0)); + const i3 = n2 + (d2 ? -e3 : e3), r3 = t2.getLineMaxColumn(i3); + p2.push(new a.f(new c.a(i3, r3, i3, r3), 0, new l.a(i3, r3), 0)); } - return {viewStates: p2, reversed: d2, fromLineNumber: n2, fromVisualColumn: i2, toLineNumber: o2, toVisualColumn: r2}; + return {viewStates: p2, reversed: d2, fromLineNumber: n2, fromVisualColumn: i2, toLineNumber: r2, toVisualColumn: o2}; } static columnSelectLeft(e2, t2, n2) { let i2 = n2.toViewVisualColumn; @@ -27937,25 +27937,25 @@ } static columnSelectRight(e2, t2, n2) { let i2 = 0; - const o2 = Math.min(n2.fromViewLineNumber, n2.toViewLineNumber), r2 = Math.max(n2.fromViewLineNumber, n2.toViewLineNumber); - for (let n3 = o2; n3 <= r2; n3++) { - const o3 = t2.getLineMaxColumn(n3), r3 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(n3, o3)); - i2 = Math.max(i2, r3); + const r2 = Math.min(n2.fromViewLineNumber, n2.toViewLineNumber), o2 = Math.max(n2.fromViewLineNumber, n2.toViewLineNumber); + for (let n3 = r2; n3 <= o2; n3++) { + const r3 = t2.getLineMaxColumn(n3), o3 = a.a.visibleColumnFromColumn2(e2, t2, new l.a(n3, r3)); + i2 = Math.max(i2, o3); } let s2 = n2.toViewVisualColumn; return s2 < i2 && s2++, this.columnSelect(e2, t2, n2.fromViewLineNumber, n2.fromViewVisualColumn, n2.toViewLineNumber, s2); } static columnSelectUp(e2, t2, n2, i2) { - const o2 = i2 ? e2.pageSize : 1, r2 = Math.max(1, n2.toViewLineNumber - o2); - return this.columnSelect(e2, t2, n2.fromViewLineNumber, n2.fromViewVisualColumn, r2, n2.toViewVisualColumn); + const r2 = i2 ? e2.pageSize : 1, o2 = Math.max(1, n2.toViewLineNumber - r2); + return this.columnSelect(e2, t2, n2.fromViewLineNumber, n2.fromViewVisualColumn, o2, n2.toViewVisualColumn); } static columnSelectDown(e2, t2, n2, i2) { - const o2 = i2 ? e2.pageSize : 1, r2 = Math.min(t2.getLineCount(), n2.toViewLineNumber + o2); - return this.columnSelect(e2, t2, n2.fromViewLineNumber, n2.fromViewVisualColumn, r2, n2.toViewVisualColumn); + const r2 = i2 ? e2.pageSize : 1, o2 = Math.min(t2.getLineCount(), n2.toViewLineNumber + r2); + return this.columnSelect(e2, t2, n2.fromViewLineNumber, n2.fromViewVisualColumn, o2, n2.toViewVisualColumn); } } var h = n(181), u = n(85), p = n(126), m = n(7), g = n(10), f = n(92); - class b extends r.c { + class b extends o.c { runEditorCommand(e2, t2, n2) { const i2 = t2._getViewModel(); i2 && this.runCoreEditorCommand(i2, n2 || {}); @@ -27963,10 +27963,10 @@ } var _, v, w, y, C; (v = _ || (_ = {})).description = {description: "Scroll editor in the given direction", args: [{name: "Editor scroll argument object", description: "Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ", constraint: function(e2) { - if (!o.i(e2)) + if (!r.i(e2)) return false; const t2 = e2; - return !(!o.j(t2.to) || !o.k(t2.by) && !o.j(t2.by) || !o.k(t2.value) && !o.h(t2.value) || !o.k(t2.revealCursor) && !o.f(t2.revealCursor)); + return !(!r.j(t2.to) || !r.k(t2.by) && !r.j(t2.by) || !r.k(t2.value) && !r.h(t2.value) || !r.k(t2.revealCursor) && !r.f(t2.revealCursor)); }, schema: {type: "object", required: ["to"], properties: {to: {type: "string", enum: ["up", "down"]}, by: {type: "string", enum: ["line", "wrappedLine", "page", "halfPage"]}, value: {type: "number", default: 1}, revealCursor: {type: "boolean"}}}}]}, v.RawDirection = {Up: "up", Down: "down"}, v.RawUnit = {Line: "line", WrappedLine: "wrappedLine", Page: "page", HalfPage: "halfPage"}, v.parse = function(e2) { let t2, n2; switch (e2.to) { @@ -27997,10 +27997,10 @@ } return {direction: t2, unit: n2, value: Math.floor(e2.value || 1), revealCursor: !!e2.revealCursor, select: !!e2.select}; }, (y = w || (w = {})).description = {description: "Reveal the given line at the given logical position", args: [{name: "Reveal line argument object", description: "Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ", constraint: function(e2) { - if (!o.i(e2)) + if (!r.i(e2)) return false; const t2 = e2; - return !(!o.h(t2.lineNumber) || !o.k(t2.at) && !o.j(t2.at)); + return !(!r.h(t2.lineNumber) || !r.k(t2.at) && !r.j(t2.at)); }, schema: {type: "object", required: ["lineNumber"], properties: {lineNumber: {type: "number"}, at: {type: "string", enum: ["top", "center", "bottom"]}}}}]}, y.RawAtArgument = {Top: "top", Center: "center", Bottom: "bottom"}; class x { constructor(e2) { @@ -28025,7 +28025,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, [u.b.moveTo(e3, e3.getPrimaryCursorState(), this._inSelectionMode, t3.position, t3.viewPosition)]), e3.revealPrimaryCursor(t3.source, true); } } - e2.MoveTo = Object(r.l)(new t2({id: "_moveTo", inSelectionMode: false, precondition: void 0})), e2.MoveToSelect = Object(r.l)(new t2({id: "_moveToSelect", inSelectionMode: true, precondition: void 0})); + e2.MoveTo = Object(o.l)(new t2({id: "_moveTo", inSelectionMode: false, precondition: void 0})), e2.MoveToSelect = Object(o.l)(new t2({id: "_moveToSelect", inSelectionMode: true, precondition: void 0})); class n2 extends b { runCoreEditorCommand(e3, t3) { e3.model.pushStackElement(); @@ -28033,23 +28033,23 @@ e3.setCursorStates(t3.source, 3, n3.viewStates.map((e4) => a.d.fromViewState(e4))), e3.setCursorColumnSelectData({isReal: true, fromViewLineNumber: n3.fromLineNumber, fromViewVisualColumn: n3.fromVisualColumn, toViewLineNumber: n3.toLineNumber, toViewVisualColumn: n3.toVisualColumn}), n3.reversed ? e3.revealTopMostCursor(t3.source) : e3.revealBottomMostCursor(t3.source); } } - e2.ColumnSelect = Object(r.l)(new class extends n2 { + e2.ColumnSelect = Object(o.l)(new class extends n2 { constructor() { super({id: "columnSelect", precondition: void 0}); } _getColumnSelectResult(e3, t3, n3, i2) { - const o3 = e3.model.validatePosition(i2.position), r2 = e3.coordinatesConverter.validateViewPosition(new l.a(i2.viewPosition.lineNumber, i2.viewPosition.column), o3); - let s3 = i2.doColumnSelect ? n3.fromViewLineNumber : r2.lineNumber, a2 = i2.doColumnSelect ? n3.fromViewVisualColumn : i2.mouseColumn - 1; - return d.columnSelect(e3.cursorConfig, e3, s3, a2, r2.lineNumber, i2.mouseColumn - 1); + const r3 = e3.model.validatePosition(i2.position), o2 = e3.coordinatesConverter.validateViewPosition(new l.a(i2.viewPosition.lineNumber, i2.viewPosition.column), r3); + let s3 = i2.doColumnSelect ? n3.fromViewLineNumber : o2.lineNumber, a2 = i2.doColumnSelect ? n3.fromViewVisualColumn : i2.mouseColumn - 1; + return d.columnSelect(e3.cursorConfig, e3, s3, a2, o2.lineNumber, i2.mouseColumn - 1); } - }()), e2.CursorColumnSelectLeft = Object(r.l)(new class extends n2 { + }()), e2.CursorColumnSelectLeft = Object(o.l)(new class extends n2 { constructor() { super({id: "cursorColumnSelectLeft", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3599, linux: {primary: 0}}}); } _getColumnSelectResult(e3, t3, n3, i2) { return d.columnSelectLeft(e3.cursorConfig, e3, n3); } - }()), e2.CursorColumnSelectRight = Object(r.l)(new class extends n2 { + }()), e2.CursorColumnSelectRight = Object(o.l)(new class extends n2 { constructor() { super({id: "cursorColumnSelectRight", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3601, linux: {primary: 0}}}); } @@ -28057,7 +28057,7 @@ return d.columnSelectRight(e3.cursorConfig, e3, n3); } }()); - class o2 extends n2 { + class r2 extends n2 { constructor(e3) { super(e3), this._isPaged = e3.isPaged; } @@ -28065,7 +28065,7 @@ return d.columnSelectUp(e3.cursorConfig, e3, n3, this._isPaged); } } - e2.CursorColumnSelectUp = Object(r.l)(new o2({isPaged: false, id: "cursorColumnSelectUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3600, linux: {primary: 0}}})), e2.CursorColumnSelectPageUp = Object(r.l)(new o2({isPaged: true, id: "cursorColumnSelectPageUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3595, linux: {primary: 0}}})); + e2.CursorColumnSelectUp = Object(o.l)(new r2({isPaged: false, id: "cursorColumnSelectUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3600, linux: {primary: 0}}})), e2.CursorColumnSelectPageUp = Object(o.l)(new r2({isPaged: true, id: "cursorColumnSelectPageUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3595, linux: {primary: 0}}})); class s2 extends n2 { constructor(e3) { super(e3), this._isPaged = e3.isPaged; @@ -28074,7 +28074,7 @@ return d.columnSelectDown(e3.cursorConfig, e3, n3, this._isPaged); } } - e2.CursorColumnSelectDown = Object(r.l)(new s2({isPaged: false, id: "cursorColumnSelectDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3602, linux: {primary: 0}}})), e2.CursorColumnSelectPageDown = Object(r.l)(new s2({isPaged: true, id: "cursorColumnSelectPageDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3596, linux: {primary: 0}}})); + e2.CursorColumnSelectDown = Object(o.l)(new s2({isPaged: false, id: "cursorColumnSelectDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3602, linux: {primary: 0}}})), e2.CursorColumnSelectPageDown = Object(o.l)(new s2({isPaged: true, id: "cursorColumnSelectPageDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3596, linux: {primary: 0}}})); class h2 extends b { constructor() { super({id: "cursorMove", precondition: void 0, description: u.a.description}); @@ -28087,7 +28087,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3, 3, h2._move(e3, e3.getCursorStates(), n3)), e3.revealPrimaryCursor(t3, true); } static _move(e3, t3, n3) { - const i2 = n3.select, o3 = n3.value; + const i2 = n3.select, r3 = n3.value; switch (n3.direction) { case 0: case 1: @@ -28098,18 +28098,18 @@ case 6: case 7: case 8: - return u.b.simpleMove(e3, t3, n3.direction, i2, o3, n3.unit); + return u.b.simpleMove(e3, t3, n3.direction, i2, r3, n3.unit); case 9: case 11: case 10: case 12: - return u.b.viewportMove(e3, t3, n3.direction, i2, o3); + return u.b.viewportMove(e3, t3, n3.direction, i2, r3); default: return null; } } } - e2.CursorMoveImpl = h2, e2.CursorMove = Object(r.l)(new h2()); + e2.CursorMoveImpl = h2, e2.CursorMove = Object(o.l)(new h2()); class p2 extends b { constructor(e3) { super(e3), this._staticArgs = e3.args; @@ -28119,7 +28119,7 @@ this._staticArgs.value === -1 && (n3 = {direction: this._staticArgs.direction, unit: this._staticArgs.unit, select: this._staticArgs.select, value: e3.cursorConfig.pageSize}), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.simpleMove(e3, e3.getCursorStates(), n3.direction, n3.select, n3.value, n3.unit)), e3.revealPrimaryCursor(t3.source, true); } } - e2.CursorLeft = Object(r.l)(new p2({args: {direction: 0, unit: 0, select: false, value: 1}, id: "cursorLeft", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 15, mac: {primary: 15, secondary: [288]}}})), e2.CursorLeftSelect = Object(r.l)(new p2({args: {direction: 0, unit: 0, select: true, value: 1}, id: "cursorLeftSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1039}})), e2.CursorRight = Object(r.l)(new p2({args: {direction: 1, unit: 0, select: false, value: 1}, id: "cursorRight", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 17, mac: {primary: 17, secondary: [292]}}})), e2.CursorRightSelect = Object(r.l)(new p2({args: {direction: 1, unit: 0, select: true, value: 1}, id: "cursorRightSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1041}})), e2.CursorUp = Object(r.l)(new p2({args: {direction: 2, unit: 2, select: false, value: 1}, id: "cursorUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 16, mac: {primary: 16, secondary: [302]}}})), e2.CursorUpSelect = Object(r.l)(new p2({args: {direction: 2, unit: 2, select: true, value: 1}, id: "cursorUpSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1040, secondary: [3088], mac: {primary: 1040}, linux: {primary: 1040}}})), e2.CursorPageUp = Object(r.l)(new p2({args: {direction: 2, unit: 2, select: false, value: -1}, id: "cursorPageUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 11}})), e2.CursorPageUpSelect = Object(r.l)(new p2({args: {direction: 2, unit: 2, select: true, value: -1}, id: "cursorPageUpSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1035}})), e2.CursorDown = Object(r.l)(new p2({args: {direction: 3, unit: 2, select: false, value: 1}, id: "cursorDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 18, mac: {primary: 18, secondary: [300]}}})), e2.CursorDownSelect = Object(r.l)(new p2({args: {direction: 3, unit: 2, select: true, value: 1}, id: "cursorDownSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1042, secondary: [3090], mac: {primary: 1042}, linux: {primary: 1042}}})), e2.CursorPageDown = Object(r.l)(new p2({args: {direction: 3, unit: 2, select: false, value: -1}, id: "cursorPageDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 12}})), e2.CursorPageDownSelect = Object(r.l)(new p2({args: {direction: 3, unit: 2, select: true, value: -1}, id: "cursorPageDownSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1036}})), e2.CreateCursor = Object(r.l)(new class extends b { + e2.CursorLeft = Object(o.l)(new p2({args: {direction: 0, unit: 0, select: false, value: 1}, id: "cursorLeft", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 15, mac: {primary: 15, secondary: [288]}}})), e2.CursorLeftSelect = Object(o.l)(new p2({args: {direction: 0, unit: 0, select: true, value: 1}, id: "cursorLeftSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1039}})), e2.CursorRight = Object(o.l)(new p2({args: {direction: 1, unit: 0, select: false, value: 1}, id: "cursorRight", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 17, mac: {primary: 17, secondary: [292]}}})), e2.CursorRightSelect = Object(o.l)(new p2({args: {direction: 1, unit: 0, select: true, value: 1}, id: "cursorRightSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1041}})), e2.CursorUp = Object(o.l)(new p2({args: {direction: 2, unit: 2, select: false, value: 1}, id: "cursorUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 16, mac: {primary: 16, secondary: [302]}}})), e2.CursorUpSelect = Object(o.l)(new p2({args: {direction: 2, unit: 2, select: true, value: 1}, id: "cursorUpSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1040, secondary: [3088], mac: {primary: 1040}, linux: {primary: 1040}}})), e2.CursorPageUp = Object(o.l)(new p2({args: {direction: 2, unit: 2, select: false, value: -1}, id: "cursorPageUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 11}})), e2.CursorPageUpSelect = Object(o.l)(new p2({args: {direction: 2, unit: 2, select: true, value: -1}, id: "cursorPageUpSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1035}})), e2.CursorDown = Object(o.l)(new p2({args: {direction: 3, unit: 2, select: false, value: 1}, id: "cursorDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 18, mac: {primary: 18, secondary: [300]}}})), e2.CursorDownSelect = Object(o.l)(new p2({args: {direction: 3, unit: 2, select: true, value: 1}, id: "cursorDownSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1042, secondary: [3090], mac: {primary: 1042}, linux: {primary: 1042}}})), e2.CursorPageDown = Object(o.l)(new p2({args: {direction: 3, unit: 2, select: false, value: -1}, id: "cursorPageDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 12}})), e2.CursorPageDownSelect = Object(o.l)(new p2({args: {direction: 3, unit: 2, select: true, value: -1}, id: "cursorPageDownSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1036}})), e2.CreateCursor = Object(o.l)(new class extends b { constructor() { super({id: "createCursor", precondition: void 0}); } @@ -28128,22 +28128,22 @@ n3 = t3.wholeLine ? u.b.line(e3, e3.getPrimaryCursorState(), false, t3.position, t3.viewPosition) : u.b.moveTo(e3, e3.getPrimaryCursorState(), false, t3.position, t3.viewPosition); const i2 = e3.getCursorStates(); if (i2.length > 1) { - const o3 = n3.modelState ? n3.modelState.position : null, r2 = n3.viewState ? n3.viewState.position : null; + const r3 = n3.modelState ? n3.modelState.position : null, o2 = n3.viewState ? n3.viewState.position : null; for (let n4 = 0, s3 = i2.length; n4 < s3; n4++) { const s4 = i2[n4]; - if ((!o3 || s4.modelState.selection.containsPosition(o3)) && (!r2 || s4.viewState.selection.containsPosition(r2))) + if ((!r3 || s4.modelState.selection.containsPosition(r3)) && (!o2 || s4.viewState.selection.containsPosition(o2))) return i2.splice(n4, 1), e3.model.pushStackElement(), void e3.setCursorStates(t3.source, 3, i2); } } i2.push(n3), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, i2); } - }()), e2.LastCursorMoveToSelect = Object(r.l)(new class extends b { + }()), e2.LastCursorMoveToSelect = Object(o.l)(new class extends b { constructor() { super({id: "_lastCursorMoveToSelect", precondition: void 0}); } runCoreEditorCommand(e3, t3) { - const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), o3 = i2.slice(0); - o3[n3] = u.b.moveTo(e3, i2[n3], true, t3.position, t3.viewPosition), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, o3); + const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), r3 = i2.slice(0); + r3[n3] = u.b.moveTo(e3, i2[n3], true, t3.position, t3.viewPosition), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, r3); } }()); class g2 extends b { @@ -28154,7 +28154,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.moveToBeginningOfLine(e3, e3.getCursorStates(), this._inSelectionMode)), e3.revealPrimaryCursor(t3.source, true); } } - e2.CursorHome = Object(r.l)(new g2({inSelectionMode: false, id: "cursorHome", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 14, mac: {primary: 14, secondary: [2063]}}})), e2.CursorHomeSelect = Object(r.l)(new g2({inSelectionMode: true, id: "cursorHomeSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1038, mac: {primary: 1038, secondary: [3087]}}})); + e2.CursorHome = Object(o.l)(new g2({inSelectionMode: false, id: "cursorHome", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 14, mac: {primary: 14, secondary: [2063]}}})), e2.CursorHomeSelect = Object(o.l)(new g2({inSelectionMode: true, id: "cursorHomeSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1038, mac: {primary: 1038, secondary: [3087]}}})); class f2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; @@ -28165,13 +28165,13 @@ _exec(e3) { const t3 = []; for (let n3 = 0, i2 = e3.length; n3 < i2; n3++) { - const i3 = e3[n3], o3 = i3.modelState.position.lineNumber; - t3[n3] = a.d.fromModelState(i3.modelState.move(this._inSelectionMode, o3, 1, 0)); + const i3 = e3[n3], r3 = i3.modelState.position.lineNumber; + t3[n3] = a.d.fromModelState(i3.modelState.move(this._inSelectionMode, r3, 1, 0)); } return t3; } } - e2.CursorLineStart = Object(r.l)(new f2({inSelectionMode: false, id: "cursorLineStart", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 287}}})), e2.CursorLineStartSelect = Object(r.l)(new f2({inSelectionMode: true, id: "cursorLineStartSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 1311}}})); + e2.CursorLineStart = Object(o.l)(new f2({inSelectionMode: false, id: "cursorLineStart", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 287}}})), e2.CursorLineStartSelect = Object(o.l)(new f2({inSelectionMode: true, id: "cursorLineStartSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 1311}}})); class v2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; @@ -28180,7 +28180,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.moveToEndOfLine(e3, e3.getCursorStates(), this._inSelectionMode, t3.sticky || false)), e3.revealPrimaryCursor(t3.source, true); } } - e2.CursorEnd = Object(r.l)(new v2({inSelectionMode: false, id: "cursorEnd", precondition: void 0, kbOpts: {args: {sticky: false}, weight: 0, kbExpr: m.a.textInputFocus, primary: 13, mac: {primary: 13, secondary: [2065]}}, description: {description: "Go to End", args: [{name: "args", schema: {type: "object", properties: {sticky: {description: i.a("stickydesc", "Stick to the end even when going to longer lines"), type: "boolean", default: false}}}}]}})), e2.CursorEndSelect = Object(r.l)(new v2({inSelectionMode: true, id: "cursorEndSelect", precondition: void 0, kbOpts: {args: {sticky: false}, weight: 0, kbExpr: m.a.textInputFocus, primary: 1037, mac: {primary: 1037, secondary: [3089]}}, description: {description: "Select to End", args: [{name: "args", schema: {type: "object", properties: {sticky: {description: i.a("stickydesc", "Stick to the end even when going to longer lines"), type: "boolean", default: false}}}}]}})); + e2.CursorEnd = Object(o.l)(new v2({inSelectionMode: false, id: "cursorEnd", precondition: void 0, kbOpts: {args: {sticky: false}, weight: 0, kbExpr: m.a.textInputFocus, primary: 13, mac: {primary: 13, secondary: [2065]}}, description: {description: "Go to End", args: [{name: "args", schema: {type: "object", properties: {sticky: {description: i.a("stickydesc", "Stick to the end even when going to longer lines"), type: "boolean", default: false}}}}]}})), e2.CursorEndSelect = Object(o.l)(new v2({inSelectionMode: true, id: "cursorEndSelect", precondition: void 0, kbOpts: {args: {sticky: false}, weight: 0, kbExpr: m.a.textInputFocus, primary: 1037, mac: {primary: 1037, secondary: [3089]}}, description: {description: "Select to End", args: [{name: "args", schema: {type: "object", properties: {sticky: {description: i.a("stickydesc", "Stick to the end even when going to longer lines"), type: "boolean", default: false}}}}]}})); class y2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; @@ -28190,14 +28190,14 @@ } _exec(e3, t3) { const n3 = []; - for (let i2 = 0, o3 = t3.length; i2 < o3; i2++) { - const o4 = t3[i2], r2 = o4.modelState.position.lineNumber, s3 = e3.model.getLineMaxColumn(r2); - n3[i2] = a.d.fromModelState(o4.modelState.move(this._inSelectionMode, r2, s3, 0)); + for (let i2 = 0, r3 = t3.length; i2 < r3; i2++) { + const r4 = t3[i2], o2 = r4.modelState.position.lineNumber, s3 = e3.model.getLineMaxColumn(o2); + n3[i2] = a.d.fromModelState(r4.modelState.move(this._inSelectionMode, o2, s3, 0)); } return n3; } } - e2.CursorLineEnd = Object(r.l)(new y2({inSelectionMode: false, id: "cursorLineEnd", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 291}}})), e2.CursorLineEndSelect = Object(r.l)(new y2({inSelectionMode: true, id: "cursorLineEndSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 1315}}})); + e2.CursorLineEnd = Object(o.l)(new y2({inSelectionMode: false, id: "cursorLineEnd", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 291}}})), e2.CursorLineEndSelect = Object(o.l)(new y2({inSelectionMode: true, id: "cursorLineEndSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 1315}}})); class C2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; @@ -28206,7 +28206,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.moveToBeginningOfBuffer(e3, e3.getCursorStates(), this._inSelectionMode)), e3.revealPrimaryCursor(t3.source, true); } } - e2.CursorTop = Object(r.l)(new C2({inSelectionMode: false, id: "cursorTop", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2062, mac: {primary: 2064}}})), e2.CursorTopSelect = Object(r.l)(new C2({inSelectionMode: true, id: "cursorTopSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3086, mac: {primary: 3088}}})); + e2.CursorTop = Object(o.l)(new C2({inSelectionMode: false, id: "cursorTop", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2062, mac: {primary: 2064}}})), e2.CursorTopSelect = Object(o.l)(new C2({inSelectionMode: true, id: "cursorTopSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3086, mac: {primary: 3088}}})); class S2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; @@ -28215,7 +28215,7 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.moveToEndOfBuffer(e3, e3.getCursorStates(), this._inSelectionMode)), e3.revealPrimaryCursor(t3.source, true); } } - e2.CursorBottom = Object(r.l)(new S2({inSelectionMode: false, id: "cursorBottom", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2061, mac: {primary: 2066}}})), e2.CursorBottomSelect = Object(r.l)(new S2({inSelectionMode: true, id: "cursorBottomSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3085, mac: {primary: 3090}}})); + e2.CursorBottom = Object(o.l)(new S2({inSelectionMode: false, id: "cursorBottom", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2061, mac: {primary: 2066}}})), e2.CursorBottomSelect = Object(o.l)(new S2({inSelectionMode: true, id: "cursorBottomSelect", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 3085, mac: {primary: 3090}}})); class k2 extends b { constructor() { super({id: "editorScroll", precondition: void 0, description: _.description}); @@ -28227,18 +28227,18 @@ _runEditorScroll(e3, t3, n3) { const i2 = this._computeDesiredScrollTop(e3, n3); if (n3.revealCursor) { - const o3 = e3.getCompletelyVisibleViewRangeAtScrollTop(i2); - e3.setCursorStates(t3, 3, [u.b.findPositionInViewportIfOutside(e3, e3.getPrimaryCursorState(), o3, n3.select)]); + const r3 = e3.getCompletelyVisibleViewRangeAtScrollTop(i2); + e3.setCursorStates(t3, 3, [u.b.findPositionInViewportIfOutside(e3, e3.getPrimaryCursorState(), r3, n3.select)]); } e3.setScrollTop(i2, 0); } _computeDesiredScrollTop(e3, t3) { if (t3.unit === 1) { const n4 = e3.getCompletelyVisibleViewRange(), i3 = e3.coordinatesConverter.convertViewRangeToModelRange(n4); - let o3; - o3 = t3.direction === 1 ? Math.max(1, i3.startLineNumber - t3.value) : Math.min(e3.model.getLineCount(), i3.startLineNumber + t3.value); - const r2 = e3.coordinatesConverter.convertModelPositionToViewPosition(new l.a(o3, 1)); - return e3.getVerticalOffsetForLineNumber(r2.lineNumber); + let r3; + r3 = t3.direction === 1 ? Math.max(1, i3.startLineNumber - t3.value) : Math.min(e3.model.getLineCount(), i3.startLineNumber + t3.value); + const o2 = e3.coordinatesConverter.convertModelPositionToViewPosition(new l.a(r3, 1)); + return e3.getVerticalOffsetForLineNumber(o2.lineNumber); } let n3; n3 = t3.unit === 3 ? e3.cursorConfig.pageSize * t3.value : t3.unit === 4 ? Math.round(e3.cursorConfig.pageSize / 2) * t3.value : t3.value; @@ -28246,28 +28246,28 @@ return e3.getScrollTop() + i2 * e3.cursorConfig.lineHeight; } } - e2.EditorScrollImpl = k2, e2.EditorScroll = Object(r.l)(new k2()), e2.ScrollLineUp = Object(r.l)(new class extends b { + e2.EditorScrollImpl = k2, e2.EditorScroll = Object(o.l)(new k2()), e2.ScrollLineUp = Object(o.l)(new class extends b { constructor() { super({id: "scrollLineUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2064, mac: {primary: 267}}}); } runCoreEditorCommand(t3, n3) { e2.EditorScroll._runEditorScroll(t3, n3.source, {direction: 1, unit: 2, value: 1, revealCursor: false, select: false}); } - }()), e2.ScrollPageUp = Object(r.l)(new class extends b { + }()), e2.ScrollPageUp = Object(o.l)(new class extends b { constructor() { super({id: "scrollPageUp", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2059, win: {primary: 523}, linux: {primary: 523}}}); } runCoreEditorCommand(t3, n3) { e2.EditorScroll._runEditorScroll(t3, n3.source, {direction: 1, unit: 3, value: 1, revealCursor: false, select: false}); } - }()), e2.ScrollLineDown = Object(r.l)(new class extends b { + }()), e2.ScrollLineDown = Object(o.l)(new class extends b { constructor() { super({id: "scrollLineDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2066, mac: {primary: 268}}}); } runCoreEditorCommand(t3, n3) { e2.EditorScroll._runEditorScroll(t3, n3.source, {direction: 2, unit: 2, value: 1, revealCursor: false, select: false}); } - }()), e2.ScrollPageDown = Object(r.l)(new class extends b { + }()), e2.ScrollPageDown = Object(o.l)(new class extends b { constructor() { super({id: "scrollPageDown", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2060, win: {primary: 524}, linux: {primary: 524}}}); } @@ -28283,13 +28283,13 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, [u.b.word(e3, e3.getPrimaryCursorState(), this._inSelectionMode, t3.position)]), e3.revealPrimaryCursor(t3.source, true); } } - e2.WordSelect = Object(r.l)(new E2({inSelectionMode: false, id: "_wordSelect", precondition: void 0})), e2.WordSelectDrag = Object(r.l)(new E2({inSelectionMode: true, id: "_wordSelectDrag", precondition: void 0})), e2.LastCursorWordSelect = Object(r.l)(new class extends b { + e2.WordSelect = Object(o.l)(new E2({inSelectionMode: false, id: "_wordSelect", precondition: void 0})), e2.WordSelectDrag = Object(o.l)(new E2({inSelectionMode: true, id: "_wordSelectDrag", precondition: void 0})), e2.LastCursorWordSelect = Object(o.l)(new class extends b { constructor() { super({id: "lastCursorWordSelect", precondition: void 0}); } runCoreEditorCommand(e3, t3) { - const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), o3 = i2.slice(0), r2 = i2[n3]; - o3[n3] = u.b.word(e3, r2, r2.modelState.hasSelection(), t3.position), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, o3); + const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), r3 = i2.slice(0), o2 = i2[n3]; + r3[n3] = u.b.word(e3, o2, o2.modelState.hasSelection(), t3.position), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, r3); } }()); class T2 extends b { @@ -28300,38 +28300,38 @@ e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, [u.b.line(e3, e3.getPrimaryCursorState(), this._inSelectionMode, t3.position, t3.viewPosition)]), e3.revealPrimaryCursor(t3.source, false); } } - e2.LineSelect = Object(r.l)(new T2({inSelectionMode: false, id: "_lineSelect", precondition: void 0})), e2.LineSelectDrag = Object(r.l)(new T2({inSelectionMode: true, id: "_lineSelectDrag", precondition: void 0})); + e2.LineSelect = Object(o.l)(new T2({inSelectionMode: false, id: "_lineSelect", precondition: void 0})), e2.LineSelectDrag = Object(o.l)(new T2({inSelectionMode: true, id: "_lineSelectDrag", precondition: void 0})); class L2 extends b { constructor(e3) { super(e3), this._inSelectionMode = e3.inSelectionMode; } runCoreEditorCommand(e3, t3) { - const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), o3 = i2.slice(0); - o3[n3] = u.b.line(e3, i2[n3], this._inSelectionMode, t3.position, t3.viewPosition), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, o3); + const n3 = e3.getLastAddedCursorIndex(), i2 = e3.getCursorStates(), r3 = i2.slice(0); + r3[n3] = u.b.line(e3, i2[n3], this._inSelectionMode, t3.position, t3.viewPosition), e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, r3); } } - e2.LastCursorLineSelect = Object(r.l)(new L2({inSelectionMode: false, id: "lastCursorLineSelect", precondition: void 0})), e2.LastCursorLineSelectDrag = Object(r.l)(new L2({inSelectionMode: true, id: "lastCursorLineSelectDrag", precondition: void 0})), e2.ExpandLineSelection = Object(r.l)(new class extends b { + e2.LastCursorLineSelect = Object(o.l)(new L2({inSelectionMode: false, id: "lastCursorLineSelect", precondition: void 0})), e2.LastCursorLineSelectDrag = Object(o.l)(new L2({inSelectionMode: true, id: "lastCursorLineSelectDrag", precondition: void 0})), e2.ExpandLineSelection = Object(o.l)(new class extends b { constructor() { super({id: "expandLineSelection", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 2090}}); } runCoreEditorCommand(e3, t3) { e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, u.b.expandLineSelection(e3, e3.getCursorStates())), e3.revealPrimaryCursor(t3.source, true); } - }()), e2.CancelSelection = Object(r.l)(new class extends b { + }()), e2.CancelSelection = Object(o.l)(new class extends b { constructor() { super({id: "cancelSelection", precondition: m.a.hasNonEmptySelection, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 9, secondary: [1033]}}); } runCoreEditorCommand(e3, t3) { e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, [u.b.cancelSelection(e3, e3.getPrimaryCursorState())]), e3.revealPrimaryCursor(t3.source, true); } - }()), e2.RemoveSecondaryCursors = Object(r.l)(new class extends b { + }()), e2.RemoveSecondaryCursors = Object(o.l)(new class extends b { constructor() { super({id: "removeSecondaryCursors", precondition: m.a.hasMultipleSelections, kbOpts: {weight: 1, kbExpr: m.a.textInputFocus, primary: 9, secondary: [1033]}}); } runCoreEditorCommand(e3, t3) { e3.model.pushStackElement(), e3.setCursorStates(t3.source, 3, [e3.getPrimaryCursorState()]), e3.revealPrimaryCursor(t3.source, true); } - }()), e2.RevealLine = Object(r.l)(new class extends b { + }()), e2.RevealLine = Object(o.l)(new class extends b { constructor() { super({id: "revealLine", precondition: void 0, description: w.description}); } @@ -28339,9 +28339,9 @@ const n3 = t3; let i2 = (n3.lineNumber || 0) + 1; i2 < 1 && (i2 = 1); - const o3 = e3.model.getLineCount(); - i2 > o3 && (i2 = o3); - const r2 = new c.a(i2, 1, i2, e3.model.getLineMaxColumn(i2)); + const r3 = e3.model.getLineCount(); + i2 > r3 && (i2 = r3); + const o2 = new c.a(i2, 1, i2, e3.model.getLineMaxColumn(i2)); let s3 = 0; if (n3.at) switch (n3.at) { @@ -28354,12 +28354,12 @@ case w.RawAtArgument.Bottom: s3 = 4; } - const a2 = e3.coordinatesConverter.convertModelRangeToViewRange(r2); + const a2 = e3.coordinatesConverter.convertModelRangeToViewRange(o2); e3.revealRange(t3.source, false, a2, s3, 0); } }()), e2.SelectAll = new class extends x { constructor() { - super(r.h); + super(o.h); } runDOMCommand() { document.execCommand("selectAll"); @@ -28371,7 +28371,7 @@ runCoreEditorCommand(e3, t3) { e3.model.pushStackElement(), e3.setCursorStates("keyboard", 3, [u.b.selectAll(e3, e3.getPrimaryCursorState())]); } - }(), e2.SetSelection = Object(r.l)(new class extends b { + }(), e2.SetSelection = Object(o.l)(new class extends b { constructor() { super({id: "setSelection", precondition: void 0}); } @@ -28389,52 +28389,52 @@ } var T; k(C.CursorColumnSelectLeft.id, 1039), k(C.CursorColumnSelectRight.id, 1041), k(C.CursorColumnSelectUp.id, 1040), k(C.CursorColumnSelectPageUp.id, 1035), k(C.CursorColumnSelectDown.id, 1042), k(C.CursorColumnSelectPageDown.id, 1036), function(e2) { - class t2 extends r.c { + class t2 extends o.c { runEditorCommand(e3, t3, n2) { const i2 = t3._getViewModel(); i2 && this.runCoreEditingCommand(t3, i2, n2 || {}); } } - e2.CoreEditingCommand = t2, e2.LineBreakInsert = Object(r.l)(new class extends t2 { + e2.CoreEditingCommand = t2, e2.LineBreakInsert = Object(o.l)(new class extends t2 { constructor() { super({id: "lineBreakInsert", precondition: m.a.writable, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 0, mac: {primary: 301}}}); } runCoreEditingCommand(e3, t3, n2) { e3.pushUndoStop(), e3.executeCommands(this.id, p.a.lineBreakInsert(t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection))); } - }()), e2.Outdent = Object(r.l)(new class extends t2 { + }()), e2.Outdent = Object(o.l)(new class extends t2 { constructor() { super({id: "outdent", precondition: m.a.writable, kbOpts: {weight: 0, kbExpr: g.a.and(m.a.editorTextFocus, m.a.tabDoesNotMoveFocus), primary: 1026}}); } runCoreEditingCommand(e3, t3, n2) { e3.pushUndoStop(), e3.executeCommands(this.id, p.a.outdent(t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection))), e3.pushUndoStop(); } - }()), e2.Tab = Object(r.l)(new class extends t2 { + }()), e2.Tab = Object(o.l)(new class extends t2 { constructor() { super({id: "tab", precondition: m.a.writable, kbOpts: {weight: 0, kbExpr: g.a.and(m.a.editorTextFocus, m.a.tabDoesNotMoveFocus), primary: 2}}); } runCoreEditingCommand(e3, t3, n2) { e3.pushUndoStop(), e3.executeCommands(this.id, p.a.tab(t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection))), e3.pushUndoStop(); } - }()), e2.DeleteLeft = Object(r.l)(new class extends t2 { + }()), e2.DeleteLeft = Object(o.l)(new class extends t2 { constructor() { super({id: "deleteLeft", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 1, secondary: [1025], mac: {primary: 1, secondary: [1025, 294, 257]}}}); } runCoreEditingCommand(e3, t3, n2) { - const [i2, o2] = h.a.deleteLeft(t3.getPrevEditOperationType(), t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection)); - i2 && e3.pushUndoStop(), e3.executeCommands(this.id, o2), t3.setPrevEditOperationType(2); + const [i2, r2] = h.a.deleteLeft(t3.getPrevEditOperationType(), t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection)); + i2 && e3.pushUndoStop(), e3.executeCommands(this.id, r2), t3.setPrevEditOperationType(2); } - }()), e2.DeleteRight = Object(r.l)(new class extends t2 { + }()), e2.DeleteRight = Object(o.l)(new class extends t2 { constructor() { super({id: "deleteRight", precondition: void 0, kbOpts: {weight: 0, kbExpr: m.a.textInputFocus, primary: 20, mac: {primary: 20, secondary: [290, 276]}}}); } runCoreEditingCommand(e3, t3, n2) { - const [i2, o2] = h.a.deleteRight(t3.getPrevEditOperationType(), t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection)); - i2 && e3.pushUndoStop(), e3.executeCommands(this.id, o2), t3.setPrevEditOperationType(3); + const [i2, r2] = h.a.deleteRight(t3.getPrevEditOperationType(), t3.cursorConfig, t3.model, t3.getCursorStates().map((e4) => e4.modelState.selection)); + i2 && e3.pushUndoStop(), e3.executeCommands(this.id, r2), t3.setPrevEditOperationType(3); } }()), e2.Undo = new class extends x { constructor() { - super(r.i); + super(o.i); } runDOMCommand() { document.execCommand("undo"); @@ -28444,7 +28444,7 @@ } }(), e2.Redo = new class extends x { constructor() { - super(r.g); + super(o.g); } runDOMCommand() { document.execCommand("redo"); @@ -28454,7 +28454,7 @@ } }(); }(T || (T = {})); - class L extends r.a { + class L extends o.a { constructor(e2, t2, n2) { super({id: e2, precondition: void 0, description: n2}), this._handlerId = t2; } @@ -28496,43 +28496,43 @@ }), n.d(t, "m", function() { return ia; }), n.d(t, "n", function() { - return oa; + return ra; }); - var i, o = n(26), r = n(100), s = (n(200), n(41)), a = n(1), l = n(53), c = n(178), d = n(45), h = n(51), u = n(23), p = n(27), m = n(79); + var i, r = n(26), o = n(100), s = (n(200), n(41)), a = n(1), l = n(53), c = n(178), d = n(45), h = n(51), u = n(23), p = n(27), m = n(79); !function(e2) { e2[e2.API = 0] = "API", e2[e2.USER = 1] = "USER"; }(i || (i = {})); var g = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, f = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, b = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -28570,8 +28570,8 @@ return b(this, void 0, void 0, function* () { typeof e2 == "string" && (e2 = u.a.parse(e2)); let n2 = void 0; - const o2 = /^L?(\d+)(?:,(\d+))?/.exec(e2.fragment); - return o2 && (n2 = {startLineNumber: parseInt(o2[1]), startColumn: o2[2] ? parseInt(o2[2]) : 1}, e2 = e2.with({fragment: ""})), e2.scheme === d.b.file && (e2 = Object(h.h)(e2)), yield this._editorService.openCodeEditor({resource: e2, options: {selection: n2, context: (t2 == null ? void 0 : t2.fromUserGesture) ? i.USER : i.API}}, this._editorService.getFocusedCodeEditor(), t2 == null ? void 0 : t2.openToSide), true; + const r2 = /^L?(\d+)(?:,(\d+))?/.exec(e2.fragment); + return r2 && (n2 = {startLineNumber: parseInt(r2[1]), startColumn: r2[2] ? parseInt(r2[2]) : 1}, e2 = e2.with({fragment: ""})), e2.scheme === d.b.file && (e2 = Object(h.h)(e2)), yield this._editorService.openCodeEditor({resource: e2, options: {selection: n2, context: (t2 == null ? void 0 : t2.fromUserGesture) ? i.USER : i.API}}, this._editorService.getFocusedCodeEditor(), t2 == null ? void 0 : t2.openToSide), true; }); } }; @@ -28616,23 +28616,23 @@ } }; w = g([f(0, s.a), f(1, p.b)], w); - var y = n(193), C = n(160), x = n(143), S = n(58), k = n(12), E = n(90), T = n(96), L = n(122), N = n(20), I = n(2), O = n(94), D = n(11); + var y = n(193), C = n(160), x = n(143), S = n(58), k = n(12), E = n(90), T = n(96), L = n(122), N = n(20), I = n(2), D = n(94), O = n(11); class A { - constructor(e2, t2, n2, i2, o2) { + constructor(e2, t2, n2, i2, r2) { this.id = t2; - const r2 = function(e3, t3) { - if (D.b.MonacoEnvironment) { - if (typeof D.b.MonacoEnvironment.getWorker == "function") - return D.b.MonacoEnvironment.getWorker(e3, t3); - if (typeof D.b.MonacoEnvironment.getWorkerUrl == "function") - return new Worker(D.b.MonacoEnvironment.getWorkerUrl(e3, t3)); + const o2 = function(e3, t3) { + if (O.b.MonacoEnvironment) { + if (typeof O.b.MonacoEnvironment.getWorker == "function") + return O.b.MonacoEnvironment.getWorker(e3, t3); + if (typeof O.b.MonacoEnvironment.getWorkerUrl == "function") + return new Worker(O.b.MonacoEnvironment.getWorkerUrl(e3, t3)); } throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker"); }("workerMain.js", n2); - typeof r2.then == "function" ? this.worker = r2 : this.worker = Promise.resolve(r2), this.postMessage(e2, []), this.worker.then((e3) => { + typeof o2.then == "function" ? this.worker = o2 : this.worker = Promise.resolve(o2), this.postMessage(e2, []), this.worker.then((e3) => { e3.onmessage = function(e4) { i2(e4.data); - }, e3.onmessageerror = o2, typeof e3.addEventListener == "function" && e3.addEventListener("error", o2); + }, e3.onmessageerror = r2, typeof e3.addEventListener == "function" && e3.addEventListener("error", r2); }); } getId() { @@ -28654,42 +28654,42 @@ if (this._webWorkerFailedBeforeError) throw this._webWorkerFailedBeforeError; return new A(e2, i2, this._label || "anonymous" + i2, t2, (e3) => { - Object(O.c)(e3), this._webWorkerFailedBeforeError = e3, n2(e3); + Object(D.c)(e3), this._webWorkerFailedBeforeError = e3, n2(e3); }); } } R.LAST_WORKER_ID = 0; - var M = n(3), P = n(39), F = n(104), W = n(64), z = n(152), B = n(8), j = n(15), V = n(102), U = n(158), H = n(13), q = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var M = n(3), P = n(39), F = n(104), W = n(64), z = n(152), B = n(8), j = n(16), V = n(102), U = n(158), H = n(13), q = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, $ = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, K = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -28711,7 +28711,7 @@ return G(this._modelService, e2) && G(this._modelService, t2); } computeDiff(e2, t2, n2, i2) { - return this._workerManager.withWorker().then((o2) => o2.computeDiff(e2, t2, n2, i2)); + return this._workerManager.withWorker().then((r2) => r2.computeDiff(e2, t2, n2, i2)); } computeMoreMinimalEdits(e2, t2) { if (Object(j.o)(t2)) { @@ -28747,8 +28747,8 @@ return; if (!G(this._modelService, e2.uri)) return; - const i2 = e2.getWordAtPosition(t2), o2 = i2 ? new M.a(t2.lineNumber, i2.startColumn, t2.lineNumber, i2.endColumn) : M.a.fromPositions(t2), r2 = o2.setEndPosition(t2.lineNumber, t2.column), s2 = yield this._workerManager.withWorker(), a2 = yield s2.textualSuggest(e2.uri, t2); - return a2 ? {suggestions: a2.map((e3) => ({kind: 18, label: e3, insertText: e3, range: {insert: r2, replace: o2}}))} : void 0; + const i2 = e2.getWordAtPosition(t2), r2 = i2 ? new M.a(t2.lineNumber, i2.startColumn, t2.lineNumber, i2.endColumn) : M.a.fromPositions(t2), o2 = r2.setEndPosition(t2.lineNumber, t2.column), s2 = yield this._workerManager.withWorker(), a2 = yield s2.textualSuggest(e2.uri, t2); + return a2 ? {suggestions: a2.map((e3) => ({kind: 18, label: e3, insertText: e3, range: {insert: o2, replace: r2}}))} : void 0; }); } } @@ -28850,14 +28850,14 @@ _getOrCreateWorker() { if (!this._worker) try { - this._worker = this._register(new O.a(this._workerFactory, "vs/editor/common/services/editorSimpleWorker", new ee(this))); + this._worker = this._register(new D.a(this._workerFactory, "vs/editor/common/services/editorSimpleWorker", new ee(this))); } catch (e2) { - Object(O.c)(e2), this._worker = new J(new F.a(new ee(this), null)); + Object(D.c)(e2), this._worker = new J(new F.a(new ee(this), null)); } return this._worker; } _getProxy() { - return this._getOrCreateWorker().getProxyObject().then(void 0, (e2) => (Object(O.c)(e2), this._worker = new J(new F.a(new ee(this), null)), this._getOrCreateWorker().getProxyObject())); + return this._getOrCreateWorker().getProxyObject().then(void 0, (e2) => (Object(D.c)(e2), this._worker = new J(new F.a(new ee(this), null)), this._getOrCreateWorker().getProxyObject())); } _getOrCreateModelManager(e2) { return this._modelManager || (this._modelManager = this._register(new Q(e2, this._modelService, this._keepIdleModels))), this._modelManager; @@ -28866,7 +28866,7 @@ return this._disposed ? Promise.reject(Object(H.a)()) : this._getProxy().then((t2) => (this._getOrCreateModelManager(t2).ensureSyncedResources(e2), t2)); } computeDiff(e2, t2, n2, i2) { - return this._withSyncedResources([e2, t2]).then((o2) => o2.computeDiff(e2.toString(), t2.toString(), n2, i2)); + return this._withSyncedResources([e2, t2]).then((r2) => r2.computeDiff(e2.toString(), t2.toString(), n2, i2)); } computeMoreMinimalEdits(e2, t2) { return this._withSyncedResources([e2]).then((n2) => n2.computeMoreMinimalEdits(e2.toString(), t2)); @@ -28879,8 +28879,8 @@ let i2 = this._modelService.getModel(e2); if (!i2) return null; - let o2 = P.a.getWordDefinition(i2.getLanguageIdentifier().id), r2 = o2.source, s2 = Object(B.O)(o2); - return n2.textualSuggest(e2.toString(), t2, r2, s2); + let r2 = P.a.getWordDefinition(i2.getLanguageIdentifier().id), o2 = r2.source, s2 = Object(B.O)(r2); + return n2.textualSuggest(e2.toString(), t2, o2, s2); }); } computeWordRanges(e2, t2) { @@ -28888,16 +28888,16 @@ let i2 = this._modelService.getModel(e2); if (!i2) return Promise.resolve(null); - let o2 = P.a.getWordDefinition(i2.getLanguageIdentifier().id), r2 = o2.source, s2 = Object(B.O)(o2); - return n2.computeWordRanges(e2.toString(), t2, r2, s2); + let r2 = P.a.getWordDefinition(i2.getLanguageIdentifier().id), o2 = r2.source, s2 = Object(B.O)(r2); + return n2.computeWordRanges(e2.toString(), t2, o2, s2); }); } navigateValueSet(e2, t2, n2) { return this._withSyncedResources([e2]).then((i2) => { - let o2 = this._modelService.getModel(e2); - if (!o2) + let r2 = this._modelService.getModel(e2); + if (!r2) return null; - let r2 = P.a.getWordDefinition(o2.getLanguageIdentifier().id), s2 = r2.source, a2 = Object(B.O)(r2); + let o2 = P.a.getWordDefinition(r2.getLanguageIdentifier().id), s2 = o2.source, a2 = Object(B.O)(o2); return i2.navigateValueSet(e2.toString(), t2, n2, s2, a2); }); } @@ -28928,10 +28928,10 @@ const n3 = Array.prototype.slice.call(arguments, 0); return t4(e3, n3); }; - let o2 = {}; + let r2 = {}; for (const e3 of t3) - o2[e3] = i2(e3, n2); - return o2; + r2[e3] = i2(e3, n2); + return r2; }); })), this._foreignProxy; } @@ -28942,7 +28942,7 @@ return this._withSyncedResources(e2).then((e3) => this.getProxy()); } } - var oe = n(40), re = n(111), se = n(91), ae = n(74), le = n(77); + var re = n(40), oe = n(111), se = n(91), ae = n(74), le = n(77); function ce(e2) { return !function(e3) { return Array.isArray(e3); @@ -28966,10 +28966,10 @@ function ge(e2, t2) { return new Error(`${e2.languageId}: ${t2}`); } - function fe(e2, t2, n2, i2, o2) { - let r2 = null; + function fe(e2, t2, n2, i2, r2) { + let o2 = null; return t2.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g, function(t3, s2, a2, l2, c2, d2, h2, u2, p2) { - return ue(a2) ? ue(l2) ? !ue(c2) && c2 < i2.length ? pe(e2, i2[c2]) : !ue(h2) && e2 && typeof e2[h2] == "string" ? e2[h2] : (r2 === null && (r2 = o2.split("."), r2.unshift(o2)), !ue(d2) && d2 < r2.length ? pe(e2, r2[d2]) : "") : pe(e2, n2) : "$"; + return ue(a2) ? ue(l2) ? !ue(c2) && c2 < i2.length ? pe(e2, i2[c2]) : !ue(h2) && e2 && typeof e2[h2] == "string" ? e2[h2] : (o2 === null && (o2 = r2.split("."), o2.unshift(r2)), !ue(d2) && d2 < o2.length ? pe(e2, o2[d2]) : "") : pe(e2, n2) : "$"; }); } function be(e2, t2) { @@ -29089,10 +29089,10 @@ this._lastTokenType === t2 && this._lastTokenLanguage === this._language || (this._lastTokenType = t2, this._lastTokenLanguage = this._language, this._tokens.push(new le.a(e2, t2, this._language))); } nestedModeTokenize(e2, t2, n2) { - const i2 = t2.modeId, o2 = t2.state, r2 = k.C.get(i2); - if (!r2) - return this.enterMode(n2, i2), this.emit(n2, ""), o2; - let s2 = r2.tokenize(e2, o2, n2); + const i2 = t2.modeId, r2 = t2.state, o2 = k.C.get(i2); + if (!o2) + return this.enterMode(n2, i2), this.emit(n2, ""), r2; + let s2 = o2.tokenize(e2, r2, n2); return this._tokens = this._tokens.concat(s2.tokens), this._lastTokenType = null, this._lastTokenLanguage = null, this._language = null, s2.endState; } finalize(e2) { @@ -29111,24 +29111,24 @@ this._lastTokenMetadata !== n2 && (this._lastTokenMetadata = n2, this._tokens.push(e2), this._tokens.push(n2)); } static _merge(e2, t2, n2) { - let i2 = e2 !== null ? e2.length : 0, o2 = t2.length, r2 = n2 !== null ? n2.length : 0; - if (i2 === 0 && o2 === 0 && r2 === 0) + let i2 = e2 !== null ? e2.length : 0, r2 = t2.length, o2 = n2 !== null ? n2.length : 0; + if (i2 === 0 && r2 === 0 && o2 === 0) return new Uint32Array(0); - if (i2 === 0 && o2 === 0) + if (i2 === 0 && r2 === 0) return n2; - if (o2 === 0 && r2 === 0) + if (r2 === 0 && o2 === 0) return e2; - let s2 = new Uint32Array(i2 + o2 + r2); + let s2 = new Uint32Array(i2 + r2 + o2); e2 !== null && s2.set(e2); - for (let e3 = 0; e3 < o2; e3++) + for (let e3 = 0; e3 < r2; e3++) s2[i2 + e3] = t2[e3]; - return n2 !== null && s2.set(n2, i2 + o2), s2; + return n2 !== null && s2.set(n2, i2 + r2), s2; } nestedModeTokenize(e2, t2, n2) { - const i2 = t2.modeId, o2 = t2.state, r2 = k.C.get(i2); - if (!r2) - return this.enterMode(n2, i2), this.emit(n2, ""), o2; - let s2 = r2.tokenize2(e2, o2, n2); + const i2 = t2.modeId, r2 = t2.state, o2 = k.C.get(i2); + if (!o2) + return this.enterMode(n2, i2), this.emit(n2, ""), r2; + let s2 = o2.tokenize2(e2, r2, n2); return this._prependTokens = Se._merge(this._prependTokens, this._tokens, s2.tokens), this._tokens = [], this._currentLanguageId = 0, this._lastTokenMetadata = 0, s2.endState; } finalize(e2) { @@ -29138,9 +29138,9 @@ class ke { constructor(e2, t2, n2, i2) { this._modeService = e2, this._standaloneThemeService = t2, this._modeId = n2, this._lexer = i2, this._embeddedModes = Object.create(null), this.embeddedLoaded = Promise.resolve(void 0); - let o2 = false; + let r2 = false; this._tokenizationRegistryListener = k.C.onDidChange((e3) => { - if (o2) + if (r2) return; let t3 = false; for (let n3 = 0, i3 = e3.changedLanguages.length; n3 < i3; n3++) { @@ -29150,7 +29150,7 @@ break; } } - t3 && (o2 = true, k.C.fire([this._modeId]), o2 = false); + t3 && (r2 = true, k.C.fire([this._modeId]), r2 = false); }); } dispose() { @@ -29178,12 +29178,12 @@ return ye.create(e2, null); } tokenize(e2, t2, n2) { - let i2 = new xe(), o2 = this._tokenize(e2, t2, n2, i2); - return i2.finalize(o2); + let i2 = new xe(), r2 = this._tokenize(e2, t2, n2, i2); + return i2.finalize(r2); } tokenize2(e2, t2, n2) { - let i2 = new Se(this._modeService, this._standaloneThemeService.getColorTheme().tokenTheme), o2 = this._tokenize(e2, t2, n2, i2); - return i2.finalize(o2); + let i2 = new Se(this._modeService, this._standaloneThemeService.getColorTheme().tokenTheme), r2 = this._tokenize(e2, t2, n2, i2); + return i2.finalize(r2); } _tokenize(e2, t2, n2, i2) { return t2.embeddedModeData ? this._nestedTokenize(e2, t2, n2, i2) : this._myTokenize(e2, t2, n2, i2); @@ -29192,42 +29192,42 @@ let n2 = this._lexer.tokenizer[t2.stack.state]; if (!n2 && (n2 = be(this._lexer, t2.stack.state), !n2)) throw ge(this._lexer, "tokenizer state is not defined: " + t2.stack.state); - let i2 = -1, o2 = false; + let i2 = -1, r2 = false; for (const t3 of n2) { if (!he(t3.action) || t3.action.nextEmbedded !== "@pop") continue; - o2 = true; - let n3 = t3.regex, r2 = t3.regex.source; - if (r2.substr(0, 4) === "^(?:" && r2.substr(r2.length - 1, 1) === ")") { + r2 = true; + let n3 = t3.regex, o2 = t3.regex.source; + if (o2.substr(0, 4) === "^(?:" && o2.substr(o2.length - 1, 1) === ")") { let e3 = (n3.ignoreCase ? "i" : "") + (n3.unicode ? "u" : ""); - n3 = new RegExp(r2.substr(4, r2.length - 5), e3); + n3 = new RegExp(o2.substr(4, o2.length - 5), e3); } let s2 = e2.search(n3); s2 === -1 || s2 !== 0 && t3.matchOnlyAtLineStart || (i2 === -1 || s2 < i2) && (i2 = s2); } - if (!o2) + if (!r2) throw ge(this._lexer, 'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: ' + t2.stack.state); return i2; } _nestedTokenize(e2, t2, n2, i2) { - let o2 = this._findLeavingNestedModeOffset(e2, t2); - if (o2 === -1) { - let o3 = i2.nestedModeTokenize(e2, t2.embeddedModeData, n2); - return ye.create(t2.stack, new we(t2.embeddedModeData.modeId, o3)); + let r2 = this._findLeavingNestedModeOffset(e2, t2); + if (r2 === -1) { + let r3 = i2.nestedModeTokenize(e2, t2.embeddedModeData, n2); + return ye.create(t2.stack, new we(t2.embeddedModeData.modeId, r3)); } - let r2 = e2.substring(0, o2); - r2.length > 0 && i2.nestedModeTokenize(r2, t2.embeddedModeData, n2); - let s2 = e2.substring(o2); - return this._myTokenize(s2, t2, n2 + o2, i2); + let o2 = e2.substring(0, r2); + o2.length > 0 && i2.nestedModeTokenize(o2, t2.embeddedModeData, n2); + let s2 = e2.substring(r2); + return this._myTokenize(s2, t2, n2 + r2, i2); } _safeRuleName(e2) { return e2 ? e2.name : "(unknown)"; } _myTokenize(e2, t2, n2, i2) { i2.enterMode(n2, this._modeId); - const o2 = e2.length; - let r2 = t2.embeddedModeData, s2 = t2.stack, a2 = 0, l2 = null, c2 = true; - for (; c2 || a2 < o2; ) { + const r2 = e2.length; + let o2 = t2.embeddedModeData, s2 = t2.stack, a2 = 0, l2 = null, c2 = true; + for (; c2 || a2 < r2; ) { const t3 = a2, u2 = s2.depth, p2 = l2 ? l2.groups.length : 0, m2 = s2.state; let g2 = null, f2 = null, b2 = null, _2 = null, v2 = null; if (l2) { @@ -29235,7 +29235,7 @@ const e3 = l2.groups.shift(); f2 = e3.matched, b2 = e3.action, _2 = l2.rule, l2.groups.length === 0 && (l2 = null); } else { - if (!c2 && a2 >= o2) + if (!c2 && a2 >= r2) break; c2 = false; let t4 = this._lexer.tokenizer[m2]; @@ -29248,10 +29248,10 @@ break; } } - if (g2 || (g2 = [""], f2 = ""), b2 || (a2 < o2 && (g2 = [e2.charAt(a2)], f2 = g2[0]), b2 = this._lexer.defaultToken), f2 === null) + if (g2 || (g2 = [""], f2 = ""), b2 || (a2 < r2 && (g2 = [e2.charAt(a2)], f2 = g2[0]), b2 = this._lexer.defaultToken), f2 === null) break; for (a2 += f2.length; ce(b2) && he(b2) && b2.test; ) - b2 = b2.test(f2, g2, m2, a2 === o2); + b2 = b2.test(f2, g2, m2, a2 === r2); let w2 = null; if (typeof b2 == "string" || Array.isArray(b2)) w2 = b2; @@ -29260,11 +29260,11 @@ else if (b2.token !== null && b2.token !== void 0) { if (w2 = b2.tokenSubst ? fe(this._lexer, b2.token, f2, g2, m2) : b2.token, b2.nextEmbedded) if (b2.nextEmbedded === "@pop") { - if (!r2) + if (!o2) throw ge(this._lexer, "cannot pop embedded mode if not inside one"); - r2 = null; + o2 = null; } else { - if (r2) + if (o2) throw ge(this._lexer, "cannot enter embedded mode from within an embedded mode"); v2 = fe(this._lexer, b2.nextEmbedded, f2, g2, m2); } @@ -29299,10 +29299,10 @@ if (w2 === null) throw ge(this._lexer, "lexer rule has no well-defined action in rule: " + this._safeRuleName(_2)); const y2 = (t4) => { - let r3 = this._modeService.getModeIdForLanguageName(t4); - r3 && (t4 = r3); + let o3 = this._modeService.getModeIdForLanguageName(t4); + o3 && (t4 = o3); const l3 = this._getNestedEmbeddedModeData(t4); - if (a2 < o2) { + if (a2 < r2) { const t5 = e2.substr(a2); return this._nestedTokenize(t5, ye.create(s2, l3), n2 + a2, i2); } @@ -29327,7 +29327,7 @@ if (w2 === "@rematch" && (a2 -= f2.length, f2 = "", g2 = null, w2 = "", v2 !== null)) return y2(v2); if (f2.length === 0) { - if (o2 === 0 || u2 !== s2.depth || m2 !== s2.state || (l2 ? l2.groups.length : 0) !== p2) + if (r2 === 0 || u2 !== s2.depth || m2 !== s2.state || (l2 ? l2.groups.length : 0) !== p2) continue; throw ge(this._lexer, "no progress in tokenizer in rule: " + this._safeRuleName(_2)); } @@ -29347,7 +29347,7 @@ } } var d2, h2; - return ye.create(s2, r2); + return ye.create(s2, o2); } _getNestedEmbeddedModeData(e2) { let t2 = this._locateMode(e2); @@ -29382,93 +29382,93 @@ } class Te { static colorizeElement(e2, t2, n2, i2) { - let o2 = (i2 = i2 || {}).theme || "vs", r2 = i2.mimeType || n2.getAttribute("lang") || n2.getAttribute("data-lang"); - if (!r2) + let r2 = (i2 = i2 || {}).theme || "vs", o2 = i2.mimeType || n2.getAttribute("lang") || n2.getAttribute("data-lang"); + if (!o2) return console.error("Mode not detected"), Promise.resolve(); - e2.setTheme(o2); + e2.setTheme(r2); let s2 = n2.firstChild ? n2.firstChild.nodeValue : ""; - n2.className += " " + o2; - return this.colorize(t2, s2 || "", r2, i2).then((e3) => { + n2.className += " " + r2; + return this.colorize(t2, s2 || "", o2, i2).then((e3) => { n2.innerHTML = e3; }, (e3) => console.error(e3)); } static colorize(e2, t2, n2, i2) { - let o2 = 4; - i2 && typeof i2.tabSize == "number" && (o2 = i2.tabSize), B.U(t2) && (t2 = t2.substr(1)); - let r2 = t2.split(/\r\n|\r|\n/), s2 = e2.getModeId(n2); + let r2 = 4; + i2 && typeof i2.tabSize == "number" && (r2 = i2.tabSize), B.U(t2) && (t2 = t2.substr(1)); + let o2 = t2.split(/\r\n|\r|\n/), s2 = e2.getModeId(n2); if (!s2) - return Promise.resolve(Ne(r2, o2)); + return Promise.resolve(Ne(o2, r2)); e2.triggerMode(s2); const a2 = k.C.get(s2); if (a2) - return Le(r2, o2, a2); + return Le(o2, r2, a2); const l2 = k.C.getPromise(s2); return new Promise(l2 ? (e3, t3) => { l2.then((n3) => { - Le(r2, o2, n3).then(e3, t3); + Le(o2, r2, n3).then(e3, t3); }, t3); } : (e3, t3) => { let n3 = null, i3 = null; const a3 = () => { n3 && (n3.dispose(), n3 = null), i3 && (i3.dispose(), i3 = null); const a4 = k.C.get(s2); - a4 ? Le(r2, o2, a4).then(e3, t3) : e3(Ne(r2, o2)); + a4 ? Le(o2, r2, a4).then(e3, t3) : e3(Ne(o2, r2)); }; i3 = new N.e(), i3.cancelAndSet(a3, 500), n3 = k.C.onDidChange((e4) => { e4.changedLanguages.indexOf(s2) >= 0 && a3(); }); }); } - static colorizeLine(e2, t2, n2, i2, o2 = 4) { - const r2 = ae.d.isBasicASCII(e2, t2), s2 = ae.d.containsRTL(e2, r2, n2); - return Object(se.e)(new se.c(false, true, e2, false, r2, s2, 0, i2, [], o2, 0, 0, 0, 0, -1, "none", false, false, null)).html; + static colorizeLine(e2, t2, n2, i2, r2 = 4) { + const o2 = ae.d.isBasicASCII(e2, t2), s2 = ae.d.containsRTL(e2, o2, n2); + return Object(se.e)(new se.c(false, true, e2, false, o2, s2, 0, i2, [], r2, 0, 0, 0, 0, -1, "none", false, false, null)).html; } static colorizeModelLine(e2, t2, n2 = 4) { let i2 = e2.getLineContent(t2); e2.forceTokenization(t2); - let o2 = e2.getLineTokens(t2).inflate(); - return this.colorizeLine(i2, e2.mightContainNonBasicASCII(), e2.mightContainRTL(), o2, n2); + let r2 = e2.getLineTokens(t2).inflate(); + return this.colorizeLine(i2, e2.mightContainNonBasicASCII(), e2.mightContainRTL(), r2, n2); } } function Le(e2, t2, n2) { - return new Promise((i2, o2) => { - const r2 = () => { + return new Promise((i2, r2) => { + const o2 = () => { const s2 = function(e3, t3, n3) { - let i3 = [], o3 = n3.getInitialState(); - for (let r3 = 0, s3 = e3.length; r3 < s3; r3++) { - let s4 = e3[r3], a2 = n3.tokenize2(s4, o3, 0); - re.a.convertToEndOffset(a2.tokens, s4.length); - let l2 = new re.a(a2.tokens, s4); + let i3 = [], r3 = n3.getInitialState(); + for (let o3 = 0, s3 = e3.length; o3 < s3; o3++) { + let s4 = e3[o3], a2 = n3.tokenize2(s4, r3, 0); + oe.a.convertToEndOffset(a2.tokens, s4.length); + let l2 = new oe.a(a2.tokens, s4); const c2 = ae.d.isBasicASCII(s4, true), d2 = ae.d.containsRTL(s4, c2, true); let h2 = Object(se.e)(new se.c(false, true, s4, false, c2, d2, 0, l2.inflate(), [], t3, 0, 0, 0, 0, -1, "none", false, false, null)); - i3 = i3.concat(h2.html), i3.push("<br/>"), o3 = a2.endState; + i3 = i3.concat(h2.html), i3.push("<br/>"), r3 = a2.endState; } return i3.join(""); }(e2, t2, n2); if (n2 instanceof ke) { const e3 = n2.getLoadStatus(); if (e3.loaded === false) - return void e3.promise.then(r2, o2); + return void e3.promise.then(o2, r2); } i2(s2); }; - r2(); + o2(); }); } function Ne(e2, t2) { let n2 = []; const i2 = new Uint32Array(2); i2[0] = 0, i2[1] = 16793600; - for (let o2 = 0, r2 = e2.length; o2 < r2; o2++) { - let r3 = e2[o2]; - i2[0] = r3.length; - const s2 = new re.a(i2, r3), a2 = ae.d.isBasicASCII(r3, true), l2 = ae.d.containsRTL(r3, a2, true); - let c2 = Object(se.e)(new se.c(false, true, r3, false, a2, l2, 0, s2, [], t2, 0, 0, 0, 0, -1, "none", false, false, null)); + for (let r2 = 0, o2 = e2.length; r2 < o2; r2++) { + let o3 = e2[r2]; + i2[0] = o3.length; + const s2 = new oe.a(i2, o3), a2 = ae.d.isBasicASCII(o3, true), l2 = ae.d.containsRTL(o3, a2, true); + let c2 = Object(se.e)(new se.c(false, true, o3, false, a2, l2, 0, s2, [], t2, 0, 0, 0, 0, -1, "none", false, false, null)); n2 = n2.concat(c2.html), n2.push("<br/>"); } return n2.join(""); } - var Ie = n(67), Oe = n(6), De = n(43), Ae = n(68), Re = n(112), Me = n(148), Pe = n(161), Fe = n(70), We = n(9), ze = n(54), Be = n(78), je = n(46), Ve = n(128); + var Ie = n(67), De = n(6), Oe = n(43), Ae = n(68), Re = n(112), Me = n(148), Pe = n(161), Fe = n(70), We = n(9), ze = n(54), Be = n(78), je = n(46), Ve = n(128); class Ue { constructor(e2 = {}, t2 = [], n2 = []) { this._contents = e2, this._keys = t2, this._overrides = n2, this.isFrozen = false; @@ -29494,20 +29494,20 @@ return this; let n2 = {}; for (const e3 of j.e([...Object.keys(this.contents), ...Object.keys(t2)])) { - let i2 = this.contents[e3], o2 = t2[e3]; - o2 && (typeof i2 == "object" && typeof o2 == "object" ? (i2 = je.c(i2), this.mergeContents(i2, o2)) : i2 = o2), n2[e3] = i2; + let i2 = this.contents[e3], r2 = t2[e3]; + r2 && (typeof i2 == "object" && typeof r2 == "object" ? (i2 = je.c(i2), this.mergeContents(i2, r2)) : i2 = r2), n2[e3] = i2; } return new Ue(n2, this.keys, this.overrides); } merge(...e2) { const t2 = je.c(this.contents), n2 = je.c(this.overrides), i2 = [...this.keys]; - for (const o2 of e2) { - this.mergeContents(t2, o2.contents); - for (const e3 of o2.overrides) { + for (const r2 of e2) { + this.mergeContents(t2, r2.contents); + for (const e3 of r2.overrides) { const [t3] = n2.filter((t4) => j.g(t4.identifiers, e3.identifiers)); t3 ? this.mergeContents(t3.contents, e3.contents) : n2.push(je.c(e3)); } - for (const e3 of o2.keys) + for (const e3 of r2.keys) i2.indexOf(e3) === -1 && i2.push(e3); } return new Ue(t2, i2, n2); @@ -29559,8 +29559,8 @@ } } class qe { - constructor(e2, t2, n2 = new Ue(), i2 = new Ue(), o2 = new Be.b(), r2 = new Ue(), s2 = new Be.b(), a2 = true) { - this._defaultConfiguration = e2, this._localUserConfiguration = t2, this._remoteUserConfiguration = n2, this._workspaceConfiguration = i2, this._folderConfigurations = o2, this._memoryConfiguration = r2, this._memoryConfigurationByResource = s2, this._freeze = a2, this._workspaceConsolidatedConfiguration = null, this._foldersConsolidatedConfigurations = new Be.b(), this._userConfiguration = null; + constructor(e2, t2, n2 = new Ue(), i2 = new Ue(), r2 = new Be.b(), o2 = new Ue(), s2 = new Be.b(), a2 = true) { + this._defaultConfiguration = e2, this._localUserConfiguration = t2, this._remoteUserConfiguration = n2, this._workspaceConfiguration = i2, this._folderConfigurations = r2, this._memoryConfiguration = o2, this._memoryConfigurationByResource = s2, this._freeze = a2, this._workspaceConsolidatedConfiguration = null, this._foldersConsolidatedConfigurations = new Be.b(), this._userConfiguration = null; } getValue(e2, t2, n2) { return this.getConsolidateConfigurationModel(t2, n2).getValue(e2); @@ -29581,8 +29581,8 @@ if (t2 && e2) { const i2 = t2.getFolder(e2); i2 && (n2 = this.getFolderConsolidatedConfiguration(i2.uri) || n2); - const o2 = this._memoryConfigurationByResource.get(e2); - o2 && (n2 = n2.merge(o2)); + const r2 = this._memoryConfigurationByResource.get(e2); + r2 && (n2 = n2.merge(r2)); } return n2; } @@ -29599,13 +29599,13 @@ } toData() { return {defaults: {contents: this._defaultConfiguration.contents, overrides: this._defaultConfiguration.overrides, keys: this._defaultConfiguration.keys}, user: {contents: this.userConfiguration.contents, overrides: this.userConfiguration.overrides, keys: this.userConfiguration.keys}, workspace: {contents: this._workspaceConfiguration.contents, overrides: this._workspaceConfiguration.overrides, keys: this._workspaceConfiguration.keys}, folders: [...this._folderConfigurations.keys()].reduce((e2, t2) => { - const {contents: n2, overrides: i2, keys: o2} = this._folderConfigurations.get(t2); - return e2.push([t2, {contents: n2, overrides: i2, keys: o2}]), e2; + const {contents: n2, overrides: i2, keys: r2} = this._folderConfigurations.get(t2); + return e2.push([t2, {contents: n2, overrides: i2, keys: r2}]), e2; }, [])}; } static parse(e2) { - const t2 = this.parseConfigurationModel(e2.defaults), n2 = this.parseConfigurationModel(e2.user), i2 = this.parseConfigurationModel(e2.workspace), o2 = e2.folders.reduce((e3, t3) => (e3.set(u.a.revive(t3[0]), this.parseConfigurationModel(t3[1])), e3), new Be.b()); - return new qe(t2, n2, new Ue(), i2, o2, new Ue(), new Be.b(), false); + const t2 = this.parseConfigurationModel(e2.defaults), n2 = this.parseConfigurationModel(e2.user), i2 = this.parseConfigurationModel(e2.workspace), r2 = e2.folders.reduce((e3, t3) => (e3.set(u.a.revive(t3[0]), this.parseConfigurationModel(t3[1])), e3), new Be.b()); + return new qe(t2, n2, new Ue(), i2, r2, new Ue(), new Be.b(), false); } static parseConfigurationModel(e2) { return new Ue(e2.contents, e2.keys, e2.overrides).freeze(); @@ -29614,10 +29614,10 @@ class $e { constructor(e2, t2, n2, i2) { this.change = e2, this.previous = t2, this.currentConfiguraiton = n2, this.currentWorkspace = i2, this._previousConfiguration = void 0; - const o2 = new Set(); - e2.keys.forEach((e3) => o2.add(e3)), e2.overrides.forEach(([, e3]) => e3.forEach((e4) => o2.add(e4))), this.affectedKeys = [...o2.values()]; - const r2 = new Ue(); - this.affectedKeys.forEach((e3) => r2.setValue(e3, {})), this.affectedKeysTree = r2.contents; + const r2 = new Set(); + e2.keys.forEach((e3) => r2.add(e3)), e2.overrides.forEach(([, e3]) => e3.forEach((e4) => r2.add(e4))), this.affectedKeys = [...r2.values()]; + const o2 = new Ue(); + this.affectedKeys.forEach((e3) => o2.setValue(e3, {})), this.affectedKeysTree = o2.contents; } get previousConfiguration() { return !this._previousConfiguration && this.previous && (this._previousConfiguration = qe.parse(this.previous.data)), this._previousConfiguration; @@ -29626,8 +29626,8 @@ var n2; if (this.doesAffectedKeysTreeContains(this.affectedKeysTree, e2)) { if (t2) { - const i2 = this.previousConfiguration ? this.previousConfiguration.getValue(e2, t2, (n2 = this.previous) === null || n2 === void 0 ? void 0 : n2.workspace) : void 0, o2 = this.currentConfiguraiton.getValue(e2, t2, this.currentWorkspace); - return !je.e(i2, o2); + const i2 = this.previousConfiguration ? this.previousConfiguration.getValue(e2, t2, (n2 = this.previous) === null || n2 === void 0 ? void 0 : n2.workspace) : void 0, r2 = this.currentConfiguraiton.getValue(e2, t2, this.currentWorkspace); + return !je.e(i2, r2); } return true; } @@ -29646,11 +29646,11 @@ } var Ke = n(0); class Ge extends I.a { - constructor(e2, t2, n2, i2, o2) { - super(), this._contextKeyService = e2, this._commandService = t2, this._telemetryService = n2, this._notificationService = i2, this._logService = o2, this._onDidUpdateKeybindings = this._register(new Oe.a()), this._currentChord = null, this._currentChordChecker = new N.c(), this._currentChordStatusMessage = null, this._logging = false; + constructor(e2, t2, n2, i2, r2) { + super(), this._contextKeyService = e2, this._commandService = t2, this._telemetryService = n2, this._notificationService = i2, this._logService = r2, this._onDidUpdateKeybindings = this._register(new De.a()), this._currentChord = null, this._currentChordChecker = new N.c(), this._currentChordStatusMessage = null, this._logging = false; } get onDidUpdateKeybindings() { - return this._onDidUpdateKeybindings ? this._onDidUpdateKeybindings.event : Oe.b.None; + return this._onDidUpdateKeybindings ? this._onDidUpdateKeybindings.event : De.b.None; } dispose() { super.dispose(); @@ -29679,8 +29679,8 @@ const [i2] = n2.getDispatchParts(); if (i2 === null) return null; - const o2 = this._contextKeyService.getContext(t2), r2 = this._currentChord ? this._currentChord.keypress : null; - return this._getResolver().resolve(o2, r2, i2); + const r2 = this._contextKeyService.getContext(t2), o2 = this._currentChord ? this._currentChord.keypress : null; + return this._getResolver().resolve(r2, o2, i2); } _enterChordMode(e2, t2) { this._currentChord = {keypress: e2, label: t2}, this._currentChordStatusMessage = this._notificationService.status(Ke.a("first.chord", "({0}) was pressed. Waiting for second key of chord...", t2)); @@ -29702,7 +29702,7 @@ const [i2] = e2.getDispatchParts(); if (i2 === null) return this._log("\\ Keyboard event cannot be dispatched."), n2; - const o2 = this._contextKeyService.getContext(t2), r2 = this._currentChord ? this._currentChord.keypress : null, s2 = e2.getLabel(), a2 = this._getResolver().resolve(o2, r2, i2); + const r2 = this._contextKeyService.getContext(t2), o2 = this._currentChord ? this._currentChord.keypress : null, s2 = e2.getLabel(), a2 = this._getResolver().resolve(r2, o2, i2); return this._logService.trace("KeybindingService#dispatch", s2, a2 == null ? void 0 : a2.commandId), a2 && a2.enterChord ? (n2 = true, this._enterChordMode(i2, s2), n2) : (this._currentChord && (a2 && a2.commandId || (this._notificationService.status(Ke.a("missing.chord", "The key combination ({0}, {1}) is not a command.", this._currentChord.label, s2), {hideAfter: 1e4}), n2 = true)), this._leaveChordMode(), a2 && a2.commandId && (a2.bubble || (n2 = true), a2.commandArgs === void 0 ? this._commandService.executeCommand(a2.commandId).then(void 0, (e3) => this._notificationService.warn(e3)) : this._commandService.executeCommand(a2.commandId, a2.commandArgs).then(void 0, (e3) => this._notificationService.warn(e3)), this._telemetryService.publicLog2("workbenchActionExecuted", {id: a2.commandId, from: "keybinding"})), n2); } mightProducePrintableCharacter(e2) { @@ -29722,17 +29722,17 @@ t4.keypressParts.length !== 0 && (t4.when && t4.when.type === 0 || this._addKeyPress(t4.keypressParts[0], t4)); } } - static _isTargetedForRemoval(e2, t2, n2, i2, o2) { + static _isTargetedForRemoval(e2, t2, n2, i2, r2) { if (e2.command !== i2) return false; if (t2 && e2.keypressParts[0] !== t2) return false; if (n2 && e2.keypressParts[1] !== n2) return false; - if (o2) { + if (r2) { if (!e2.when) return false; - if (!o2.equals(e2.when)) + if (!r2.equals(e2.when)) return false; } return true; @@ -29745,9 +29745,9 @@ n2.push(i2); continue; } - const t3 = i2.command.substr(1), o2 = i2.keypressParts[0], r2 = i2.keypressParts[1], s2 = i2.when; + const t3 = i2.command.substr(1), r2 = i2.keypressParts[0], o2 = i2.keypressParts[1], s2 = i2.when; for (let n3 = e2.length - 1; n3 >= 0; n3--) - this._isTargetedForRemoval(e2[n3], o2, r2, t3, s2) && e2.splice(n3, 1); + this._isTargetedForRemoval(e2[n3], r2, o2, t3, s2) && e2.splice(n3, 1); } return e2.concat(n2); } @@ -29759,8 +29759,8 @@ let i2 = n2[e3]; if (i2.command === t2.command) continue; - const o2 = i2.keypressParts.length > 1, r2 = t2.keypressParts.length > 1; - o2 && r2 && i2.keypressParts[1] !== t2.keypressParts[1] || Ye.whenIsEntirelyIncluded(i2.when, t2.when) && this._removeFromLookupMap(i2); + const r2 = i2.keypressParts.length > 1, o2 = t2.keypressParts.length > 1; + r2 && o2 && i2.keypressParts[1] !== t2.keypressParts[1] || Ye.whenIsEntirelyIncluded(i2.when, t2.when) && this._removeFromLookupMap(i2); } n2.push(t2), this._addToLookupMap(t2); } @@ -29820,9 +29820,9 @@ if (e3 === void 0) return this._log("\\ No keybinding entries."), null; i2 = []; - for (let t3 = 0, o3 = e3.length; t3 < o3; t3++) { - let o4 = e3[t3]; - o4.keypressParts[1] === n2 && i2.push(o4); + for (let t3 = 0, r3 = e3.length; t3 < r3; t3++) { + let r4 = e3[t3]; + r4.keypressParts[1] === n2 && i2.push(r4); } } else { const e3 = this._map.get(n2); @@ -29830,8 +29830,8 @@ return this._log("\\ No keybinding entries."), null; i2 = e3; } - let o2 = this._findCommand(e2, i2); - return o2 ? t2 === null && o2.keypressParts.length > 1 && o2.keypressParts[1] !== null ? (this._log(`\\ From ${i2.length} keybinding entries, matched chord, when: ${Ze(o2.when)}, source: ${Xe(o2)}.`), {enterChord: true, leaveChord: false, commandId: null, commandArgs: null, bubble: false}) : (this._log(`\\ From ${i2.length} keybinding entries, matched ${o2.command}, when: ${Ze(o2.when)}, source: ${Xe(o2)}.`), {enterChord: false, leaveChord: o2.keypressParts.length > 1, commandId: o2.command, commandArgs: o2.commandArgs, bubble: o2.bubble}) : (this._log(`\\ From ${i2.length} keybinding entries, no when clauses matched the context.`), null); + let r2 = this._findCommand(e2, i2); + return r2 ? t2 === null && r2.keypressParts.length > 1 && r2.keypressParts[1] !== null ? (this._log(`\\ From ${i2.length} keybinding entries, matched chord, when: ${Ze(r2.when)}, source: ${Xe(r2)}.`), {enterChord: true, leaveChord: false, commandId: null, commandArgs: null, bubble: false}) : (this._log(`\\ From ${i2.length} keybinding entries, matched ${r2.command}, when: ${Ze(r2.when)}, source: ${Xe(r2)}.`), {enterChord: false, leaveChord: r2.keypressParts.length > 1, commandId: r2.command, commandArgs: r2.commandArgs, bubble: r2.bubble}) : (this._log(`\\ From ${i2.length} keybinding entries, no when clauses matched the context.`), null); } _findCommand(e2, t2) { for (let n2 = t2.length - 1; n2 >= 0; n2--) { @@ -29853,7 +29853,7 @@ } var Qe = n(92); class Je { - constructor(e2, t2, n2, i2, o2, r2) { + constructor(e2, t2, n2, i2, r2, o2) { this.resolvedKeybinding = e2, this.keypressParts = e2 ? function(e3) { let t3 = []; for (let n3 = 0, i3 = e3.length; n3 < i3; n3++) { @@ -29863,7 +29863,7 @@ t3.push(i4); } return t3; - }(e2.getDispatchParts()) : [], this.bubble = !!t2 && t2.charCodeAt(0) === 94, this.command = this.bubble ? t2.substr(1) : t2, this.commandArgs = n2, this.when = i2, this.isDefault = o2, this.extensionId = r2; + }(e2.getDispatchParts()) : [], this.bubble = !!t2 && t2.charCodeAt(0) === 94, this.command = this.bubble ? t2.substr(1) : t2, this.commandArgs = n2, this.when = i2, this.isDefault = r2, this.extensionId = o2; } } class et { @@ -29874,11 +29874,11 @@ if (t2.length === 0) return null; const i2 = []; - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2], s2 = n2(r3); + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2], s2 = n2(o3); if (s2 === null) return null; - i2[o2] = it(r3, s2, this.modifierLabels[e2]); + i2[r2] = it(o3, s2, this.modifierLabels[e2]); } return i2.join(" "); } @@ -29890,7 +29890,7 @@ const i2 = []; return e2.ctrlKey && i2.push(n2.ctrlKey), e2.shiftKey && i2.push(n2.shiftKey), e2.altKey && i2.push(n2.altKey), e2.metaKey && i2.push(n2.metaKey), t2 !== "" && i2.push(t2), i2.join(n2.separator); } - class ot extends De.c { + class rt extends Oe.c { constructor(e2, t2) { if (super(), t2.length === 0) throw Object(H.b)("parts"); @@ -29909,13 +29909,13 @@ return this._parts.map((e2) => this._getPart(e2)); } _getPart(e2) { - return new De.d(e2.ctrlKey, e2.shiftKey, e2.altKey, e2.metaKey, this._getLabel(e2), this._getAriaLabel(e2)); + return new Oe.d(e2.ctrlKey, e2.shiftKey, e2.altKey, e2.metaKey, this._getLabel(e2), this._getAriaLabel(e2)); } getDispatchParts() { return this._parts.map((e2) => this._getDispatchPart(e2)); } } - class rt extends ot { + class ot extends rt { constructor(e2, t2) { super(t2, e2.parts); } @@ -29931,55 +29931,55 @@ case 18: return "\u2193"; } - return De.b.toString(e2); + return Oe.b.toString(e2); } _getLabel(e2) { return e2.isDuplicateModifierCase() ? "" : this._keyCodeToUILabel(e2.keyCode); } _getAriaLabel(e2) { - return e2.isDuplicateModifierCase() ? "" : De.b.toString(e2.keyCode); + return e2.isDuplicateModifierCase() ? "" : Oe.b.toString(e2.keyCode); } _getDispatchPart(e2) { - return rt.getDispatchStr(e2); + return ot.getDispatchStr(e2); } static getDispatchStr(e2) { if (e2.isModifierKey()) return null; let t2 = ""; - return e2.ctrlKey && (t2 += "ctrl+"), e2.shiftKey && (t2 += "shift+"), e2.altKey && (t2 += "alt+"), e2.metaKey && (t2 += "meta+"), t2 += De.b.toString(e2.keyCode), t2; + return e2.ctrlKey && (t2 += "ctrl+"), e2.shiftKey && (t2 += "shift+"), e2.altKey && (t2 += "alt+"), e2.metaKey && (t2 += "meta+"), t2 += Oe.b.toString(e2.keyCode), t2; } } var st = n(49), at = n(169), lt = n(55), ct = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, dt = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, ht = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -29988,7 +29988,7 @@ }; class ut { constructor(e2) { - this.disposed = false, this.model = e2, this._onDispose = new Oe.a(); + this.disposed = false, this.model = e2, this._onDispose = new De.a(); } get textEditorModel() { return this.model; @@ -30006,8 +30006,8 @@ } createModelReference(e2) { let t2 = null; - var n2, i2, o2; - return this.editor && (n2 = this.editor, i2 = (t3) => this.findModel(t3, e2), o2 = (t3) => this.findModel(t3.getOriginalEditor(), e2) || this.findModel(t3.getModifiedEditor(), e2), t2 = Object(Re.b)(n2) ? i2(n2) : o2(n2)), t2 ? Promise.resolve(new I.c(new ut(t2))) : Promise.reject(new Error("Model not found")); + var n2, i2, r2; + return this.editor && (n2 = this.editor, i2 = (t3) => this.findModel(t3, e2), r2 = (t3) => this.findModel(t3.getOriginalEditor(), e2) || this.findModel(t3.getModifiedEditor(), e2), t2 = Object(Re.b)(n2) ? i2(n2) : r2(n2)), t2 ? Promise.resolve(new I.c(new ut(t2))) : Promise.reject(new Error("Model not found")); } findModel(e2, t2) { let n2 = this.modelService.getModel(t2); @@ -30069,7 +30069,7 @@ ft.NO_OP = new st.b(); class bt { constructor(e2) { - this._onWillExecuteCommand = new Oe.a(), this._onDidExecuteCommand = new Oe.a(), this._instantiationService = e2; + this._onWillExecuteCommand = new De.a(), this._onDidExecuteCommand = new De.a(), this._instantiationService = e2; } executeCommand(e2, ...t2) { const n2 = p.a.getCommand(e2); @@ -30085,20 +30085,20 @@ } } class _t extends Ge { - constructor(e2, t2, n2, i2, o2, r2) { - super(e2, t2, n2, i2, o2), this._cachedResolver = null, this._dynamicKeybindings = [], this._register(a.i(r2, a.c.KEY_DOWN, (e3) => { + constructor(e2, t2, n2, i2, r2, o2) { + super(e2, t2, n2, i2, r2), this._cachedResolver = null, this._dynamicKeybindings = [], this._register(a.i(o2, a.c.KEY_DOWN, (e3) => { let t3 = new Ie.a(e3); this._dispatch(t3, t3.target) && (t3.preventDefault(), t3.stopPropagation()); })); } addDynamicKeybinding(e2, t2, n2, i2) { - const o2 = Object(De.f)(t2, D.a), r2 = new I.b(); - return o2 && (this._dynamicKeybindings.push({keybinding: o2, command: e2, when: i2, weight1: 1e3, weight2: 0, extensionId: null}), r2.add(Object(I.h)(() => { + const r2 = Object(Oe.f)(t2, O.a), o2 = new I.b(); + return r2 && (this._dynamicKeybindings.push({keybinding: r2, command: e2, when: i2, weight1: 1e3, weight2: 0, extensionId: null}), o2.add(Object(I.h)(() => { for (let t3 = 0; t3 < this._dynamicKeybindings.length; t3++) { if (this._dynamicKeybindings[t3].command === e2) return this._dynamicKeybindings.splice(t3, 1), void this.updateResolver({source: 1}); } - }))), r2.add(p.a.registerCommand(e2, n2)), this.updateResolver({source: 1}), r2; + }))), o2.add(p.a.registerCommand(e2, n2)), this.updateResolver({source: 1}), o2; } updateResolver(e2) { this._cachedResolver = null, this._onDidUpdateKeybindings.fire(e2); @@ -30115,23 +30115,23 @@ } _toNormalizedKeybindingItems(e2, t2) { let n2 = [], i2 = 0; - for (const o2 of e2) { - const e3 = o2.when || void 0, r2 = o2.keybinding; - if (r2) { - const s2 = this.resolveKeybinding(r2); - for (const r3 of s2) - n2[i2++] = new Je(r3, o2.command, o2.commandArgs, e3, t2, null); + for (const r2 of e2) { + const e3 = r2.when || void 0, o2 = r2.keybinding; + if (o2) { + const s2 = this.resolveKeybinding(o2); + for (const o3 of s2) + n2[i2++] = new Je(o3, r2.command, r2.commandArgs, e3, t2, null); } else - n2[i2++] = new Je(void 0, o2.command, o2.commandArgs, e3, t2, null); + n2[i2++] = new Je(void 0, r2.command, r2.commandArgs, e3, t2, null); } return n2; } resolveKeybinding(e2) { - return [new rt(e2, D.a)]; + return [new ot(e2, O.a)]; } resolveKeyboardEvent(e2) { - let t2 = new De.e(e2.ctrlKey, e2.shiftKey, e2.altKey, e2.metaKey, e2.keyCode).toChord(); - return new rt(t2, D.a); + let t2 = new Oe.e(e2.ctrlKey, e2.shiftKey, e2.altKey, e2.metaKey, e2.keyCode).toChord(); + return new ot(t2, O.a); } } function vt(e2) { @@ -30139,7 +30139,7 @@ } class wt { constructor() { - this._onDidChangeConfiguration = new Oe.a(), this.onDidChangeConfiguration = this._onDidChangeConfiguration.event, this._configuration = new qe(new He(), new Ue()); + this._onDidChangeConfiguration = new De.a(), this.onDidChangeConfiguration = this._onDidChangeConfiguration.event, this._configuration = new qe(new He(), new Ue()); } getValue(e2, t2) { const n2 = typeof e2 == "string" ? e2 : void 0, i2 = vt(e2) ? e2 : vt(t2) ? t2 : {}; @@ -30161,7 +30161,7 @@ } class yt { constructor(e2) { - this.configurationService = e2, this._onDidChangeConfiguration = new Oe.a(), this.configurationService.onDidChangeConfiguration((e3) => { + this.configurationService = e2, this._onDidChangeConfiguration = new De.a(), this.configurationService.onDidChangeConfiguration((e3) => { this._onDidChangeConfiguration.fire({affectedKeys: e3.affectedKeys, affectsConfiguration: (t2, n2) => e3.affectsConfiguration(n2)}); }); } @@ -30176,7 +30176,7 @@ } getEOL(e2, t2) { const n2 = this.configurationService.getValue("files.eol", {overrideIdentifier: t2, resource: e2}); - return n2 && n2 !== "auto" ? n2 : D.d || D.f ? "\n" : "\r\n"; + return n2 && n2 !== "auto" ? n2 : O.d || O.f ? "\n" : "\r\n"; } }; Ct = ct([dt(0, ze.a)], Ct); @@ -30233,8 +30233,8 @@ i3 || (i3 = [], t3.set(e3, i3)), i3.push(Fe.a.replaceMove(M.a.lift(n3.textEdit.range), n3.textEdit.text)); } let n2 = 0, i2 = 0; - for (const [e3, o2] of t3) - e3.pushStackElement(), e3.pushEditOperations([], o2, () => []), e3.pushStackElement(), i2 += 1, n2 += o2.length; + for (const [e3, r2] of t3) + e3.pushStackElement(), e3.pushEditOperations([], r2, () => []), e3.pushStackElement(), i2 += 1, n2 += r2.length; return {ariaSummary: B.x(lt.g.bulkEditServiceSummary, n2, i2)}; }); } @@ -30246,7 +30246,7 @@ } class Lt { constructor(e2, t2) { - this._codeEditorService = e2, this._container = t2, this.onLayout = Oe.b.None; + this._codeEditorService = e2, this._container = t2, this.onLayout = De.b.None; } get dimension() { return this._dimension || (this._dimension = a.y(window.document.body)), this._dimension; @@ -30259,14 +30259,14 @@ (e2 = this._codeEditorService.getFocusedCodeEditor()) === null || e2 === void 0 || e2.focus(); } } - var Nt = n(66), It = n(164), Ot = n(194), Dt = n(191), At = n(139), Rt = n(24), Mt = n(10), Pt = n(84), Ft = n(18), Wt = n(50), zt = n(19), Bt = n(80), jt = n(121), Vt = n(83), Ut = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Nt = n(66), It = n(164), Dt = n(194), Ot = n(191), At = n(139), Rt = n(24), Mt = n(10), Pt = n(84), Ft = n(18), Wt = n(50), zt = n(19), Bt = n(80), jt = n(121), Vt = n(83), Ut = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ht = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -30274,14 +30274,14 @@ }; let qt = 0, $t = false; let Kt = class extends It.a { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - (t2 = t2 || {}).ariaLabel = t2.ariaLabel || lt.h.editorViewAccessibleLabel, t2.ariaLabel = t2.ariaLabel + ";" + lt.h.accessibilityHelpMessage, super(e2, t2, {}, n2, i2, o2, r2, a2, l2, c2), this._standaloneKeybindingService = s2 instanceof _t ? s2 : null, $t || ($t = true, Nt.b(document.body)); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + (t2 = t2 || {}).ariaLabel = t2.ariaLabel || lt.h.editorViewAccessibleLabel, t2.ariaLabel = t2.ariaLabel + ";" + lt.h.accessibilityHelpMessage, super(e2, t2, {}, n2, i2, r2, o2, a2, l2, c2), this._standaloneKeybindingService = s2 instanceof _t ? s2 : null, $t || ($t = true, Nt.b(document.body)); } addCommand(e2, t2, n2) { if (!this._standaloneKeybindingService) return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"), null; - let i2 = "DYNAMIC_" + ++qt, o2 = Mt.a.deserialize(n2); - return this._standaloneKeybindingService.addDynamicKeybinding(i2, e2, t2, o2), i2; + let i2 = "DYNAMIC_" + ++qt, r2 = Mt.a.deserialize(n2); + return this._standaloneKeybindingService.addDynamicKeybinding(i2, e2, t2, r2), i2; } createContextKey(e2, t2) { return this._contextKeyService.createKey(e2, t2); @@ -30291,15 +30291,15 @@ throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!"); if (!this._standaloneKeybindingService) return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"), I.a.None; - const t2 = e2.id, n2 = e2.label, i2 = Mt.a.and(Mt.a.equals("editorId", this.getId()), Mt.a.deserialize(e2.precondition)), o2 = e2.keybindings, r2 = Mt.a.and(i2, Mt.a.deserialize(e2.keybindingContext)), s2 = e2.contextMenuGroupId || null, a2 = e2.contextMenuOrder || 0, l2 = (t3, ...n3) => Promise.resolve(e2.run(this, ...n3)), c2 = new I.b(), d2 = this.getId() + ":" + t2; + const t2 = e2.id, n2 = e2.label, i2 = Mt.a.and(Mt.a.equals("editorId", this.getId()), Mt.a.deserialize(e2.precondition)), r2 = e2.keybindings, o2 = Mt.a.and(i2, Mt.a.deserialize(e2.keybindingContext)), s2 = e2.contextMenuGroupId || null, a2 = e2.contextMenuOrder || 0, l2 = (t3, ...n3) => Promise.resolve(e2.run(this, ...n3)), c2 = new I.b(), d2 = this.getId() + ":" + t2; if (c2.add(p.a.registerCommand(d2, l2)), s2) { let e3 = {command: {id: d2, title: n2}, when: i2, group: s2, order: a2}; c2.add(Rt.d.appendMenuItem(Rt.b.EditorContext, e3)); } - if (Array.isArray(o2)) - for (const e3 of o2) - c2.add(this._standaloneKeybindingService.addDynamicKeybinding(d2, e3, l2, r2)); - let h2 = new Dt.a(d2, n2, n2, i2, l2, this._contextKeyService); + if (Array.isArray(r2)) + for (const e3 of r2) + c2.add(this._standaloneKeybindingService.addDynamicKeybinding(d2, e3, l2, o2)); + let h2 = new Ot.a(d2, n2, n2, i2, l2, this._contextKeyService); return this._actions[t2] = h2, c2.add(Object(I.h)(() => { delete this._actions[t2]; })), c2; @@ -30307,12 +30307,12 @@ }; Kt = Ut([Ht(2, Ft.a), Ht(3, s.a), Ht(4, p.b), Ht(5, Mt.b), Ht(6, Wt.a), Ht(7, zt.c), Ht(8, st.a), Ht(9, Bt.b)], Kt); let Gt = class extends Kt { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2) { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2) { kt(h2, t2, false); const p2 = c2.registerEditorContainer(e2); typeof (t2 = t2 || {}).theme == "string" && c2.setTheme(t2.theme); let m2, g2 = t2.model; - if (delete t2.model, super(e2, t2, i2, o2, r2, s2, a2, c2, d2, u2), this._contextViewService = l2, this._configurationService = h2, this._standaloneThemeService = c2, this._register(n2), this._register(p2), g2 === void 0 ? (m2 = self.monaco.editor.createModel(t2.value || "", t2.language || "text/plain"), this._ownsModel = true) : (m2 = g2, this._ownsModel = false), this._attachModel(m2), m2) { + if (delete t2.model, super(e2, t2, i2, r2, o2, s2, a2, c2, d2, u2), this._contextViewService = l2, this._configurationService = h2, this._standaloneThemeService = c2, this._register(n2), this._register(p2), g2 === void 0 ? (m2 = self.monaco.editor.createModel(t2.value || "", t2.language || "text/plain"), this._ownsModel = true) : (m2 = g2, this._ownsModel = false), this._attachModel(m2), m2) { let e3 = {oldModelUrl: null, newModelUrl: m2.uri}; this._onDidChangeModel.fire(e3); } @@ -30331,11 +30331,11 @@ } }; Gt = Ut([Ht(3, Ft.a), Ht(4, s.a), Ht(5, p.b), Ht(6, Mt.b), Ht(7, Wt.a), Ht(8, Pt.b), Ht(9, At.a), Ht(10, st.a), Ht(11, ze.a), Ht(12, Bt.b)], Gt); - let Yt = class extends Ot.a { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2, p2, m2) { + let Yt = class extends Dt.a { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2, p2, m2) { kt(h2, t2, true); const g2 = c2.registerEditorContainer(e2); - typeof (t2 = t2 || {}).theme == "string" && (t2.theme = c2.setTheme(t2.theme)), super(e2, t2, m2, a2, o2, i2, l2, c2, d2, u2, p2), this._contextViewService = s2, this._configurationService = h2, this._standaloneThemeService = c2, this._register(n2), this._register(g2), this._contextViewService.setContainer(this._containerDomElement); + typeof (t2 = t2 || {}).theme == "string" && (t2.theme = c2.setTheme(t2.theme)), super(e2, t2, m2, a2, r2, i2, l2, c2, d2, u2, p2), this._contextViewService = s2, this._configurationService = h2, this._standaloneThemeService = c2, this._register(n2), this._register(g2), this._contextViewService.setContainer(this._containerDomElement); } dispose() { super.dispose(); @@ -30374,7 +30374,7 @@ } var Qt = n(42), Jt = n(187); let en = [], tn = [], nn = []; - function on(e2, t2 = false) { + function rn(e2, t2 = false) { const n2 = function(e3) { return {id: e3.id, mime: e3.mime, filename: e3.filename, extension: e3.extension, filepattern: e3.filepattern, firstline: e3.firstline, userConfigured: e3.userConfigured, filenameLowercase: e3.filename ? e3.filename.toLowerCase() : void 0, extensionLowercase: e3.extension ? e3.extension.toLowerCase() : void 0, filepatternLowercase: e3.filepattern ? e3.filepattern.toLowerCase() : void 0, filepatternOnPath: !!e3.filepattern && e3.filepattern.indexOf(Qt.e.sep) >= 0}; }(e2); @@ -30382,7 +30382,7 @@ e3.mime === n2.mime || e3.userConfigured || (n2.extension && e3.extension === n2.extension && console.warn(`Overwriting extension <<${n2.extension}>> to now point to mime <<${n2.mime}>>`), n2.filename && e3.filename === n2.filename && console.warn(`Overwriting filename <<${n2.filename}>> to now point to mime <<${n2.mime}>>`), n2.filepattern && e3.filepattern === n2.filepattern && console.warn(`Overwriting filepattern <<${n2.filepattern}>> to now point to mime <<${n2.mime}>>`), n2.firstline && e3.firstline === n2.firstline && console.warn(`Overwriting firstline <<${n2.firstline}>> to now point to mime <<${n2.mime}>>`)); }); } - function rn(e2, t2) { + function on(e2, t2) { let n2; if (e2) switch (e2.scheme) { @@ -30398,12 +30398,12 @@ if (!n2) return ["application/unknown"]; n2 = n2.toLowerCase(); - const i2 = Object(Qt.a)(n2), o2 = sn(n2, i2, nn); - if (o2) - return [o2, "text/plain"]; - const r2 = sn(n2, i2, tn); + const i2 = Object(Qt.a)(n2), r2 = sn(n2, i2, nn); if (r2) return [r2, "text/plain"]; + const o2 = sn(n2, i2, tn); + if (o2) + return [o2, "text/plain"]; if (t2) { const e3 = function(e4) { Object(B.U)(e4) && (e4 = e4.substr(1)); @@ -30424,26 +30424,26 @@ return ["application/unknown"]; } function sn(e2, t2, n2) { - let i2 = null, o2 = null, r2 = null; + let i2 = null, r2 = null, o2 = null; for (let s2 = n2.length - 1; s2 >= 0; s2--) { const a2 = n2[s2]; if (t2 === a2.filenameLowercase) { i2 = a2; break; } - if (a2.filepattern && (!o2 || a2.filepattern.length > o2.filepattern.length)) { + if (a2.filepattern && (!r2 || a2.filepattern.length > r2.filepattern.length)) { const n3 = a2.filepatternOnPath ? e2 : t2; - Object(Jt.a)(a2.filepatternLowercase, n3) && (o2 = a2); + Object(Jt.a)(a2.filepatternLowercase, n3) && (r2 = a2); } - a2.extension && (!r2 || a2.extension.length > r2.extension.length) && t2.endsWith(a2.extensionLowercase) && (r2 = a2); + a2.extension && (!o2 || a2.extension.length > o2.extension.length) && t2.endsWith(a2.extensionLowercase) && (o2 = a2); } - return i2 ? i2.mime : o2 ? o2.mime : r2 ? r2.mime : null; + return i2 ? i2.mime : r2 ? r2.mime : o2 ? o2.mime : null; } var an = n(146), ln = n(56); const cn = Object.prototype.hasOwnProperty; class dn extends I.a { constructor(e2 = true, t2 = false) { - super(), this._onDidChange = this._register(new Oe.a()), this.onDidChange = this._onDidChange.event, this._warnOnOverwrite = t2, this._nextLanguageId2 = 1, this._languageIdToLanguage = [], this._languageToLanguageId = Object.create(null), this._languages = {}, this._mimeTypesMap = {}, this._nameMap = {}, this._lowercaseNameMap = {}, e2 && (this._initializeFromRegistry(), this._register(an.a.onDidChangeLanguages((e3) => this._initializeFromRegistry()))); + super(), this._onDidChange = this._register(new De.a()), this.onDidChange = this._onDidChange.event, this._warnOnOverwrite = t2, this._nextLanguageId2 = 1, this._languageIdToLanguage = [], this._languageToLanguageId = Object.create(null), this._languages = {}, this._mimeTypesMap = {}, this._nameMap = {}, this._lowercaseNameMap = {}, e2 && (this._initializeFromRegistry(), this._register(an.a.onDidChangeLanguages((e3) => this._initializeFromRegistry()))); } _initializeFromRegistry() { this._languages = {}, this._mimeTypesMap = {}, this._nameMap = {}, this._lowercaseNameMap = {}; @@ -30485,35 +30485,35 @@ if (Array.isArray(t2.mimetypes) && t2.mimetypes.length > 0 && (e2.mimetypes.push(...t2.mimetypes), i2 = t2.mimetypes[0]), i2 || (i2 = "text/x-" + n2, e2.mimetypes.push(i2)), Array.isArray(t2.extensions)) { t2.configuration ? e2.extensions = t2.extensions.concat(e2.extensions) : e2.extensions = e2.extensions.concat(t2.extensions); for (let e3 of t2.extensions) - on({id: n2, mime: i2, extension: e3}, this._warnOnOverwrite); + rn({id: n2, mime: i2, extension: e3}, this._warnOnOverwrite); } if (Array.isArray(t2.filenames)) - for (let o3 of t2.filenames) - on({id: n2, mime: i2, filename: o3}, this._warnOnOverwrite), e2.filenames.push(o3); + for (let r3 of t2.filenames) + rn({id: n2, mime: i2, filename: r3}, this._warnOnOverwrite), e2.filenames.push(r3); if (Array.isArray(t2.filenamePatterns)) for (let e3 of t2.filenamePatterns) - on({id: n2, mime: i2, filepattern: e3}, this._warnOnOverwrite); + rn({id: n2, mime: i2, filepattern: e3}, this._warnOnOverwrite); if (typeof t2.firstLine == "string" && t2.firstLine.length > 0) { let e3 = t2.firstLine; e3.charAt(0) !== "^" && (e3 = "^" + e3); try { let t3 = new RegExp(e3); - B.P(t3) || on({id: n2, mime: i2, firstline: t3}, this._warnOnOverwrite); + B.P(t3) || rn({id: n2, mime: i2, firstline: t3}, this._warnOnOverwrite); } catch (e4) { Object(H.e)(e4); } } e2.aliases.push(n2); - let o2 = null; - if (t2.aliases !== void 0 && Array.isArray(t2.aliases) && (o2 = t2.aliases.length === 0 ? [null] : t2.aliases), o2 !== null) - for (const t3 of o2) + let r2 = null; + if (t2.aliases !== void 0 && Array.isArray(t2.aliases) && (r2 = t2.aliases.length === 0 ? [null] : t2.aliases), r2 !== null) + for (const t3 of r2) t3 && t3.length !== 0 && e2.aliases.push(t3); - let r2 = o2 !== null && o2.length > 0; - if (r2 && o2[0] === null) + let o2 = r2 !== null && r2.length > 0; + if (o2 && r2[0] === null) ; else { - let t3 = (r2 ? o2[0] : null) || n2; - !r2 && e2.name || (e2.name = t3); + let t3 = (o2 ? r2[0] : null) || n2; + !o2 && e2.name || (e2.name = t3); } t2.configuration && e2.configurationFiles.push(t2.configuration); } @@ -30539,13 +30539,13 @@ getModeIdsFromFilepathOrFirstLine(e2, t2) { if (!e2 && !t2) return []; - let n2 = rn(e2, t2); + let n2 = on(e2, t2); return this.extractModeIds(n2.join(",")); } } class hn extends I.a { constructor(e2, t2) { - super(), this._onDidChange = this._register(new Oe.a()), this.onDidChange = this._onDidChange.event, this._selector = t2, this.languageIdentifier = this._selector(), this._register(e2(() => this._evaluate())); + super(), this._onDidChange = this._register(new De.a()), this.onDidChange = this._onDidChange.event, this._selector = t2, this.languageIdentifier = this._selector(), this._register(e2(() => this._evaluate())); } _evaluate() { let e2 = this._selector(); @@ -30554,7 +30554,7 @@ } class un { constructor(e2 = false) { - this._onDidCreateMode = new Oe.a(), this.onDidCreateMode = this._onDidCreateMode.event, this._onLanguagesMaybeChanged = new Oe.a(), this.onLanguagesMaybeChanged = this._onLanguagesMaybeChanged.event, this._instantiatedModes = {}, this._registry = new dn(true, e2), this._registry.onDidChange(() => this._onLanguagesMaybeChanged.fire()); + this._onDidCreateMode = new De.a(), this.onDidCreateMode = this._onDidCreateMode.event, this._onLanguagesMaybeChanged = new De.a(), this.onLanguagesMaybeChanged = this._onLanguagesMaybeChanged.event, this._instantiatedModes = {}, this._registry = new dn(true, e2), this._registry.onDidChange(() => this._onLanguagesMaybeChanged.fire()); } isRegisteredMode(e2) { return this._registry.isRegisteredMode(e2); @@ -30604,7 +30604,7 @@ var pn = n(183); class mn extends I.a { constructor() { - super(), this._onCodeEditorAdd = this._register(new Oe.a()), this.onCodeEditorAdd = this._onCodeEditorAdd.event, this._onCodeEditorRemove = this._register(new Oe.a()), this.onCodeEditorRemove = this._onCodeEditorRemove.event, this._onDiffEditorAdd = this._register(new Oe.a()), this._onDiffEditorRemove = this._register(new Oe.a()), this._modelProperties = new Map(), this._codeEditors = Object.create(null), this._diffEditors = Object.create(null); + super(), this._onCodeEditorAdd = this._register(new De.a()), this.onCodeEditorAdd = this._onCodeEditorAdd.event, this._onCodeEditorRemove = this._register(new De.a()), this.onCodeEditorRemove = this._onCodeEditorRemove.event, this._onDiffEditorAdd = this._register(new De.a()), this._onDiffEditorRemove = this._register(new De.a()), this._modelProperties = new Map(), this._codeEditors = Object.create(null), this._diffEditors = Object.create(null); } addCodeEditor(e2) { this._codeEditors[e2.getId()] = e2, this._onCodeEditorAdd.fire(e2); @@ -30636,8 +30636,8 @@ } setModelProperty(e2, t2, n2) { const i2 = e2.toString(); - let o2; - this._modelProperties.has(i2) ? o2 = this._modelProperties.get(i2) : (o2 = new Map(), this._modelProperties.set(i2, o2)), o2.set(t2, n2); + let r2; + this._modelProperties.has(i2) ? r2 = this._modelProperties.get(i2) : (r2 = new Map(), this._modelProperties.set(i2, r2)), r2.set(t2, n2); } getModelProperty(e2, t2) { const n2 = e2.toString(); @@ -30647,13 +30647,13 @@ } } var gn = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, fn = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -30716,12 +30716,12 @@ this._editorStyleSheets.delete(e2); } registerDecorationType(e2, t2, n2, i2) { - let o2 = this._decorationOptionProviders.get(e2); - if (!o2) { - const r2 = this._getOrCreateStyleSheet(i2), s2 = {styleSheet: r2, key: e2, parentTypeKey: n2, options: t2 || Object.create(null)}; - o2 = n2 ? new wn(this._themeService, r2, s2) : new yn(this._themeService, r2, s2), this._decorationOptionProviders.set(e2, o2); + let r2 = this._decorationOptionProviders.get(e2); + if (!r2) { + const o2 = this._getOrCreateStyleSheet(i2), s2 = {styleSheet: o2, key: e2, parentTypeKey: n2, options: t2 || Object.create(null)}; + r2 = n2 ? new wn(this._themeService, o2, s2) : new yn(this._themeService, o2, s2), this._decorationOptionProviders.set(e2, r2); } - o2.refCount++; + r2.refCount++; } removeDecorationType(e2) { const t2 = this._decorationOptionProviders.get(e2); @@ -30756,15 +30756,15 @@ return i3.className; }; this.className = i2(0); - const o2 = ((t3) => { + const r2 = ((t3) => { const i3 = new xn(t3, n2, e2); return this._disposables.add(i3), i3.hasContent ? {className: i3.className, hasLetterSpacing: i3.hasLetterSpacing} : null; })(1); - o2 && (this.inlineClassName = o2.className, this.inlineClassNameAffectsLetterSpacing = o2.hasLetterSpacing), this.beforeContentClassName = i2(3), this.afterContentClassName = i2(4), this.glyphMarginClassName = i2(2); - const r2 = n2.options; - this.isWholeLine = Boolean(r2.isWholeLine), this.stickiness = r2.rangeBehavior; - const s2 = r2.light && r2.light.overviewRulerColor || r2.overviewRulerColor, a2 = r2.dark && r2.dark.overviewRulerColor || r2.overviewRulerColor; - s2 === void 0 && a2 === void 0 || (this.overviewRuler = {color: s2 || a2, darkColor: a2 || s2, position: r2.overviewRulerLane || S.d.Center}); + r2 && (this.inlineClassName = r2.className, this.inlineClassNameAffectsLetterSpacing = r2.hasLetterSpacing), this.beforeContentClassName = i2(3), this.afterContentClassName = i2(4), this.glyphMarginClassName = i2(2); + const o2 = n2.options; + this.isWholeLine = Boolean(o2.isWholeLine), this.stickiness = o2.rangeBehavior; + const s2 = o2.light && o2.light.overviewRulerColor || o2.overviewRulerColor, a2 = o2.dark && o2.dark.overviewRulerColor || o2.overviewRulerColor; + s2 === void 0 && a2 === void 0 || (this.overviewRuler = {color: s2 || a2, darkColor: a2 || s2, position: o2.overviewRulerLane || S.d.Center}); } getOptions(e2, t2) { return t2 ? {inlineClassName: this.inlineClassName, beforeContentClassName: this.beforeContentClassName, afterContentClassName: this.afterContentClassName, className: this.className, glyphMarginClassName: this.glyphMarginClassName, isWholeLine: this.isWholeLine, overviewRuler: this.overviewRuler, stickiness: this.stickiness} : this; @@ -30816,9 +30816,9 @@ default: throw new Error("Unknown rule type: " + this._ruleType); } - const o2 = this._providerArgs.styleSheet; - let r2 = false; - t2.length > 0 && (o2.insertRule(`${this._unThemedSelector} {${t2}}`, 0), r2 = true), n2.length > 0 && (o2.insertRule(`.vs${this._unThemedSelector} {${n2}}`, 0), r2 = true), i2.length > 0 && (o2.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${i2}}`, 0), r2 = true), this._hasContent = r2; + const r2 = this._providerArgs.styleSheet; + let o2 = false; + t2.length > 0 && (r2.insertRule(`${this._unThemedSelector} {${t2}}`, 0), o2 = true), n2.length > 0 && (r2.insertRule(`.vs${this._unThemedSelector} {${n2}}`, 0), o2 = true), i2.length > 0 && (r2.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${i2}}`, 0), o2 = true), this._hasContent = o2; } _removeCSS() { this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector); @@ -30914,10 +30914,10 @@ return n2 && n2.uri.toString() !== t2.toString() ? null : n2; } } - var En = n(16); + var En = n(15); class Tn { - constructor(e2, t2, n2, i2, o2) { - this.token = e2, this.index = t2, this.fontStyle = n2, this.foreground = i2, this.background = o2; + constructor(e2, t2, n2, i2, r2) { + this.token = e2, this.index = t2, this.fontStyle = n2, this.foreground = i2, this.background = r2; } } const Ln = /^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/; @@ -30948,28 +30948,28 @@ if (!e3 || !Array.isArray(e3)) return []; let t3 = [], n2 = 0; - for (let i2 = 0, o2 = e3.length; i2 < o2; i2++) { - let o3 = e3[i2], r2 = -1; - if (typeof o3.fontStyle == "string") { - r2 = 0; - let e4 = o3.fontStyle.split(" "); + for (let i2 = 0, r2 = e3.length; i2 < r2; i2++) { + let r3 = e3[i2], o2 = -1; + if (typeof r3.fontStyle == "string") { + o2 = 0; + let e4 = r3.fontStyle.split(" "); for (let t4 = 0, n3 = e4.length; t4 < n3; t4++) { switch (e4[t4]) { case "italic": - r2 |= 1; + o2 |= 1; break; case "bold": - r2 |= 2; + o2 |= 2; break; case "underline": - r2 |= 4; + o2 |= 4; } } } let s2 = null; - typeof o3.foreground == "string" && (s2 = o3.foreground); + typeof r3.foreground == "string" && (s2 = r3.foreground); let a2 = null; - typeof o3.background == "string" && (a2 = o3.background), t3[n2++] = new Tn(o3.token || "", i2, r2, s2, a2); + typeof r3.background == "string" && (a2 = r3.background), t3[n2++] = new Tn(r3.token || "", i2, o2, s2, a2); } return t3; }(e2), t2); @@ -30986,20 +30986,20 @@ }(e4.token, t4.token); return n3 !== 0 ? n3 : e4.index - t4.index; }); - let n2 = 0, i2 = "000000", o2 = "ffffff"; + let n2 = 0, i2 = "000000", r2 = "ffffff"; for (; e3.length >= 1 && e3[0].token === ""; ) { let t4 = e3.shift(); - t4.fontStyle !== -1 && (n2 = t4.fontStyle), t4.foreground !== null && (i2 = t4.foreground), t4.background !== null && (o2 = t4.background); + t4.fontStyle !== -1 && (n2 = t4.fontStyle), t4.foreground !== null && (i2 = t4.foreground), t4.background !== null && (r2 = t4.background); } - let r2 = new Nn(); + let o2 = new Nn(); for (let e4 of t3) - r2.getId(e4); - let s2 = r2.getId(i2), a2 = r2.getId(o2), l2 = new Dn(n2, s2, a2), c2 = new An(l2); + o2.getId(e4); + let s2 = o2.getId(i2), a2 = o2.getId(r2), l2 = new On(n2, s2, a2), c2 = new An(l2); for (let t4 = 0, n3 = e3.length; t4 < n3; t4++) { let n4 = e3[t4]; - c2.insert(n4.token, n4.fontStyle, r2.getId(n4.foreground), r2.getId(n4.background)); + c2.insert(n4.token, n4.fontStyle, o2.getId(n4.foreground), o2.getId(n4.background)); } - return new In(r2, c2); + return new In(o2, c2); }(e2, t2); } getColorMap() { @@ -31012,7 +31012,7 @@ let n2 = this._cache.get(t2); if (n2 === void 0) { let e3 = this._match(t2), i2 = function(e4) { - let t3 = e4.match(On); + let t3 = e4.match(Dn); if (!t3) return 0; switch (t3[1]) { @@ -31031,13 +31031,13 @@ return (n2 | e2 << 0) >>> 0; } } - const On = /\b(comment|string|regex|regexp)\b/; - class Dn { + const Dn = /\b(comment|string|regex|regexp)\b/; + class On { constructor(e2, t2, n2) { this._fontStyle = e2, this._foreground = t2, this._background = n2, this.metadata = (this._fontStyle << 11 | this._foreground << 14 | this._background << 23) >>> 0; } clone() { - return new Dn(this._fontStyle, this._foreground, this._background); + return new On(this._fontStyle, this._foreground, this._background); } acceptOverwrite(e2, t2, n2) { e2 !== -1 && (this._fontStyle = e2), t2 !== 0 && (this._foreground = t2), n2 !== 0 && (this._background = n2), this.metadata = (this._fontStyle << 11 | this._foreground << 14 | this._background << 23) >>> 0; @@ -31052,16 +31052,16 @@ return this._mainRule; let t2, n2, i2 = e2.indexOf("."); i2 === -1 ? (t2 = e2, n2 = "") : (t2 = e2.substring(0, i2), n2 = e2.substring(i2 + 1)); - let o2 = this._children.get(t2); - return o2 !== void 0 ? o2.match(n2) : this._mainRule; + let r2 = this._children.get(t2); + return r2 !== void 0 ? r2.match(n2) : this._mainRule; } insert(e2, t2, n2, i2) { if (e2 === "") return void this._mainRule.acceptOverwrite(t2, n2, i2); - let o2, r2, s2 = e2.indexOf("."); - s2 === -1 ? (o2 = e2, r2 = "") : (o2 = e2.substring(0, s2), r2 = e2.substring(s2 + 1)); - let a2 = this._children.get(o2); - a2 === void 0 && (a2 = new An(this._mainRule.clone()), this._children.set(o2, a2)), a2.insert(r2, t2, n2, i2); + let r2, o2, s2 = e2.indexOf("."); + s2 === -1 ? (r2 = e2, o2 = "") : (r2 = e2.substring(0, s2), o2 = e2.substring(s2 + 1)); + let a2 = this._children.get(r2); + a2 === void 0 && (a2 = new An(this._mainRule.clone()), this._children.set(r2, a2)), a2.insert(o2, t2, n2, i2); } } var Rn = n(57), Mn = n(5); @@ -31127,8 +31127,8 @@ return this._tokenTheme; } getTokenStyleMetadata(e2, t2, n2) { - const i2 = this.tokenTheme._match([e2].concat(t2).join(".")).metadata, o2 = k.B.getForeground(i2), r2 = k.B.getFontStyle(i2); - return {foreground: o2, italic: Boolean(1 & r2), bold: Boolean(2 & r2), underline: Boolean(4 & r2)}; + const i2 = this.tokenTheme._match([e2].concat(t2).join(".")).metadata, r2 = k.B.getForeground(i2), o2 = k.B.getFontStyle(i2); + return {foreground: r2, italic: Boolean(1 & o2), bold: Boolean(2 & o2), underline: Boolean(4 & o2)}; } } function Un(e2) { @@ -31150,7 +31150,7 @@ } class $n extends I.a { constructor() { - super(), this._onColorThemeChange = this._register(new Oe.a()), this.onDidColorThemeChange = this._onColorThemeChange.event, this._environment = Object.create(null), this._knownThemes = new Map(), this._knownThemes.set("vs", qn("vs")), this._knownThemes.set("vs-dark", qn("vs-dark")), this._knownThemes.set("hc-black", qn("hc-black")), this._codiconCSS = zn.a.getCSS(), this._themeCSS = "", this._allCSS = `${this._codiconCSS} + super(), this._onColorThemeChange = this._register(new De.a()), this.onDidColorThemeChange = this._onColorThemeChange.event, this._environment = Object.create(null), this._knownThemes = new Map(), this._knownThemes.set("vs", qn("vs")), this._knownThemes.set("vs-dark", qn("vs-dark")), this._knownThemes.set("hc-black", qn("hc-black")), this._codiconCSS = zn.a.getCSS(), this._themeCSS = "", this._allCSS = `${this._codiconCSS} ${this._themeCSS}`, this._globalStyleElement = null, this._styleElements = [], this.setTheme("vs"), zn.a.onDidChange(() => { this._codiconCSS = zn.a.getCSS(), this._updateCSS(); }); @@ -31186,19 +31186,19 @@ ${this._themeCSS}`, this._globalStyleElement = null, this._styleElements = [], t if (t2 = this._knownThemes.has(e2) ? this._knownThemes.get(e2) : this._knownThemes.get("vs"), this._theme === t2) return t2.id; this._theme = t2; - let n2 = [], i2 = {}, o2 = {addRule: (e3) => { + let n2 = [], i2 = {}, r2 = {addRule: (e3) => { i2[e3] || (n2.push(e3), i2[e3] = true); }}; - jn.getThemingParticipants().forEach((e3) => e3(t2, o2, this._environment)); - let r2 = t2.tokenTheme.getColorMap(); - return o2.addRule(function(e3) { + jn.getThemingParticipants().forEach((e3) => e3(t2, r2, this._environment)); + let o2 = t2.tokenTheme.getColorMap(); + return r2.addRule(function(e3) { let t3 = []; for (let n3 = 1, i3 = e3.length; n3 < i3; n3++) { let i4 = e3[n3]; t3[n3] = `.mtk${n3} { color: ${i4}; }`; } return t3.push(".mtki { font-style: italic; }"), t3.push(".mtkb { font-weight: bold; }"), t3.push(".mtku { text-decoration: underline; text-underline-position: under; }"), t3.join("\n"); - }(r2)), this._themeCSS = n2.join("\n"), this._updateCSS(), k.C.setColorMap(r2), this._onColorThemeChange.fire(t2), t2.id; + }(o2)), this._themeCSS = n2.join("\n"), this._updateCSS(), k.C.setColorMap(o2), this._onColorThemeChange.fire(t2), t2.id; } _updateCSS() { this._allCSS = `${this._codiconCSS} @@ -31209,13 +31209,13 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all } } var Kn = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Gn = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -31341,7 +31341,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all } class ni { constructor(e2) { - this._onDidChangeContext = new Oe.d({merge: (e3) => new ti(e3)}), this._isDisposed = false, this._myContextId = e2; + this._onDidChangeContext = new De.d({merge: (e3) => new ti(e3)}), this._isDisposed = false, this._myContextId = e2; } createKey(e2, t2) { if (this._isDisposed) @@ -31362,7 +31362,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all createScoped(e2) { if (this._isDisposed) throw new Error("AbstractContextKeyService has been disposed"); - return new oi(this, e2); + return new ri(this, e2); } contextMatchesRules(e2) { if (this._isDisposed) @@ -31419,7 +31419,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all } }; ii = Kn([Gn(0, ze.a)], ii); - class oi extends ni { + class ri extends ni { constructor(e2, t2) { super(e2.createChildContext()), this._parent = e2, t2 && (this._domNode = t2, this._domNode.setAttribute("data-keybinding-context", String(this._myContextId))); } @@ -31427,7 +31427,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all this._isDisposed = true, this._parent.disposeContext(this._myContextId), this._domNode && (this._domNode.removeAttribute("data-keybinding-context"), this._domNode = void 0); } get onDidChangeContext() { - return Oe.b.any(this._parent.onDidChangeContext, this._onDidChangeContext.event); + return De.b.any(this._parent.onDidChangeContext, this._onDidChangeContext.event); } getContextValuesContainer(e2) { return this._isDisposed ? Zn.INSTANCE : this._parent.getContextValuesContainer(e2); @@ -31445,7 +31445,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all e2.get(Mt.b).createKey(String(t2), n2); }); n(259); - var ri = n(60), si = n(116), ai = n(105), li = (n(261), n(99)), ci = n(138); + var oi = n(60), si = n(116), ai = n(105), li = (n(261), n(99)), ci = n(138); function di(e2, t2, n2) { const i2 = n2.offset + n2.size; return n2.position === 0 ? t2 <= e2 - i2 ? i2 : t2 <= n2.offset ? n2.offset - t2 : Math.max(e2 - t2, 0) : t2 <= n2.offset ? n2.offset - t2 : t2 <= e2 - i2 ? i2 : 0; @@ -31480,7 +31480,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all return this.view; } layout() { - this.isVisible() && (this.delegate.canRelayout !== false || D.c && ci.a.pointerEvents ? (this.delegate.layout && this.delegate.layout(), this.doLayout()) : this.hide()); + this.isVisible() && (this.delegate.canRelayout !== false || O.c && ci.a.pointerEvents ? (this.delegate.layout && this.delegate.layout(), this.doLayout()) : this.hide()); } doLayout() { if (!this.isVisible()) @@ -31491,13 +31491,13 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all e2 = {top: n3.top, left: n3.left, width: n3.width, height: n3.height}; } else e2 = {top: t2.y, left: t2.x, width: t2.width || 1, height: t2.height || 2}; - const n2 = a.H(this.view), i2 = a.G(this.view), o2 = this.delegate.anchorPosition || 0, r2 = this.delegate.anchorAlignment || 0, s2 = {offset: e2.top - window.pageYOffset, size: e2.height, position: o2 === 0 ? 0 : 1}; + const n2 = a.H(this.view), i2 = a.G(this.view), r2 = this.delegate.anchorPosition || 0, o2 = this.delegate.anchorAlignment || 0, s2 = {offset: e2.top - window.pageYOffset, size: e2.height, position: r2 === 0 ? 0 : 1}; let l2; - l2 = r2 === 0 ? {offset: e2.left, size: 0, position: 0} : {offset: e2.left + e2.width, size: 0, position: 1}; + l2 = o2 === 0 ? {offset: e2.left, size: 0, position: 0} : {offset: e2.left + e2.width, size: 0, position: 1}; const c2 = di(window.innerHeight, i2, s2) + window.pageYOffset; - li.a.intersects({start: c2, end: c2 + i2}, {start: s2.offset, end: s2.offset + s2.size}) && (l2.size = e2.width, r2 === 1 && (l2.offset = e2.left)); + li.a.intersects({start: c2, end: c2 + i2}, {start: s2.offset, end: s2.offset + s2.size}) && (l2.size = e2.width, o2 === 1 && (l2.offset = e2.left)); const d2 = di(window.innerWidth, n2, l2); - a.R(this.view, "top", "bottom", "left", "right"), a.e(this.view, o2 === 0 ? "bottom" : "top"), a.e(this.view, r2 === 0 ? "left" : "right"), a.ab(this.view, "fixed", this.useFixedPosition); + a.R(this.view, "top", "bottom", "left", "right"), a.e(this.view, r2 === 0 ? "bottom" : "top"), a.e(this.view, o2 === 0 ? "left" : "right"), a.ab(this.view, "fixed", this.useFixedPosition); const h2 = a.C(this.container); this.view.style.top = c2 - (this.useFixedPosition ? a.C(this.view).top : h2.top) + "px", this.view.style.left = d2 - (this.useFixedPosition ? a.C(this.view).left : h2.left) + "px", this.view.style.width = "initial"; } @@ -31571,7 +31571,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all constructor(e2, t2, n2 = {}) { Object(a.e)(e2, "monaco-menu-container"), e2.setAttribute("role", "presentation"); const i2 = document.createElement("div"); - Object(a.e)(i2, "monaco-menu"), i2.setAttribute("role", "presentation"), super(i2, {orientation: 2, actionViewItemProvider: (e3) => this.doGetActionViewItem(e3, n2, o2), context: n2.context, actionRunner: n2.actionRunner, ariaLabel: n2.ariaLabel, triggerKeys: {keys: [3, ...D.f || D.d ? [10] : []], keyDown: true}}), this.menuElement = i2, this.actionsList.setAttribute("role", "menu"), this.actionsList.tabIndex = 0, this.menuDisposables = this._register(new I.b()), this.initializeStyleSheet(e2), Object(a.i)(i2, a.c.KEY_DOWN, (e3) => { + Object(a.e)(i2, "monaco-menu"), i2.setAttribute("role", "presentation"), super(i2, {orientation: 2, actionViewItemProvider: (e3) => this.doGetActionViewItem(e3, n2, r2), context: n2.context, actionRunner: n2.actionRunner, ariaLabel: n2.ariaLabel, triggerKeys: {keys: [3, ...O.f || O.d ? [10] : []], keyDown: true}}), this.menuElement = i2, this.actionsList.setAttribute("role", "menu"), this.actionsList.tabIndex = 0, this.menuDisposables = this._register(new I.b()), this.initializeStyleSheet(e2), Object(a.i)(i2, a.c.KEY_DOWN, (e3) => { new Ie.a(e3).equals(2) && e3.preventDefault(); }), n2.enableMnemonics && this.menuDisposables.add(Object(a.i)(i2, a.c.KEY_DOWN, (e3) => { const t3 = e3.key.toLocaleLowerCase(); @@ -31583,7 +31583,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all e4 && e4.container && (this.focusItemByElement(e4.container), n3.push(e4)), this.mnemonics.set(t3, n3); } } - })), D.d && this._register(Object(a.i)(i2, a.c.KEY_DOWN, (e3) => { + })), O.d && this._register(Object(a.i)(i2, a.c.KEY_DOWN, (e3) => { const t3 = new Ie.a(e3); t3.equals(14) || t3.equals(11) ? (this.focusedItem = this.viewItems.length - 1, this.focusNext(), a.b.stop(e3, true)) : (t3.equals(13) || t3.equals(12)) && (this.focusedItem = 0, this.focusPrevious(), a.b.stop(e3, true)); })), this._register(Object(a.i)(this.domNode, a.c.MOUSE_OUT, (e3) => { @@ -31600,10 +31600,10 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all } } })); - let o2 = {parent: this}; + let r2 = {parent: this}; this.mnemonics = new Map(), this.scrollableElement = this._register(new ai.a(i2, {alwaysConsumeMouseWheel: true, horizontal: 2, vertical: 3, verticalScrollbarSize: 7, handleMouseWheel: true, useShadows: true})); - const r2 = this.scrollableElement.getDomNode(); - r2.style.position = "", this._register(Object(a.i)(r2, a.c.MOUSE_UP, (e3) => { + const o2 = this.scrollableElement.getDomNode(); + o2.style.position = "", this._register(Object(a.i)(o2, a.c.MOUSE_UP, (e3) => { e3.preventDefault(); })), i2.style.maxHeight = Math.max(10, window.innerHeight - e2.getBoundingClientRect().top - 35) + "px", t2 = t2.filter((e3) => { var t3; @@ -31616,8 +31616,8 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all Object(a.O)(e2) ? (this.styleSheet = Object(a.v)(e2), this.styleSheet.innerHTML = Ei) : (Ci.globalStyleSheet || (Ci.globalStyleSheet = Object(a.v)(), Ci.globalStyleSheet.innerHTML = Ei), this.styleSheet = Ci.globalStyleSheet); } style(e2) { - const t2 = this.getContainer(), n2 = e2.foregroundColor ? "" + e2.foregroundColor : "", i2 = e2.backgroundColor ? "" + e2.backgroundColor : "", o2 = e2.borderColor ? "1px solid " + e2.borderColor : "", r2 = e2.shadowColor ? "0 2px 4px " + e2.shadowColor : ""; - t2.style.border = o2, this.domNode.style.color = n2, this.domNode.style.backgroundColor = i2, t2.style.boxShadow = r2, this.viewItems && this.viewItems.forEach((t3) => { + const t2 = this.getContainer(), n2 = e2.foregroundColor ? "" + e2.foregroundColor : "", i2 = e2.backgroundColor ? "" + e2.backgroundColor : "", r2 = e2.borderColor ? "1px solid " + e2.borderColor : "", o2 = e2.shadowColor ? "0 2px 4px " + e2.shadowColor : ""; + t2.style.border = r2, this.domNode.style.color = n2, this.domNode.style.backgroundColor = i2, t2.style.boxShadow = o2, this.viewItems && this.viewItems.forEach((t3) => { (t3 instanceof xi || t3 instanceof ki) && t3.style(e2); }); } @@ -31643,9 +31643,9 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all super.updateFocus(e2, true), this.focusedItem !== void 0 && this.scrollableElement.setScrollPosition({scrollTop: Math.round(this.menuElement.scrollTop)}); } doGetActionViewItem(e2, t2, n2) { - if (e2 instanceof ri.c) + if (e2 instanceof oi.c) return new ki(t2.context, e2, {icon: true}); - if (e2 instanceof ri.d) { + if (e2 instanceof oi.d) { const i2 = new Si(e2, e2.actions, n2, Object.assign(Object.assign({}, t2), {submenuIds: new Set([...t2.submenuIds || [], e2.id])})); if (t2.enableMnemonics) { const e3 = i2.getMnemonic(); @@ -31702,7 +31702,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all }, 100), this._register(this.runOnceToEnableMouseUp); } render(e2) { - super.render(e2), this.element && (this.container = e2, this.item = Object(a.p)(this.element, Object(a.a)("a.action-menu-item")), this._action.id === ri.c.ID ? this.item.setAttribute("role", "presentation") : (this.item.setAttribute("role", "menuitem"), this.mnemonic && this.item.setAttribute("aria-keyshortcuts", "" + this.mnemonic)), this.check = Object(a.p)(this.item, Object(a.a)("span.menu-item-check" + vi.cssSelector)), this.check.setAttribute("role", "none"), this.label = Object(a.p)(this.item, Object(a.a)("span.action-label")), this.options.label && this.options.keybinding && (Object(a.p)(this.item, Object(a.a)("span.keybinding")).textContent = this.options.keybinding), this.runOnceToEnableMouseUp.schedule(), this.updateClass(), this.updateLabel(), this.updateTooltip(), this.updateEnabled(), this.updateChecked()); + super.render(e2), this.element && (this.container = e2, this.item = Object(a.p)(this.element, Object(a.a)("a.action-menu-item")), this._action.id === oi.c.ID ? this.item.setAttribute("role", "presentation") : (this.item.setAttribute("role", "menuitem"), this.mnemonic && this.item.setAttribute("aria-keyshortcuts", "" + this.mnemonic)), this.check = Object(a.p)(this.item, Object(a.a)("span.menu-item-check" + vi.cssSelector)), this.check.setAttribute("role", "none"), this.label = Object(a.p)(this.item, Object(a.a)("span.action-label")), this.options.label && this.options.keybinding && (Object(a.p)(this.item, Object(a.a)("span.keybinding")).textContent = this.options.keybinding), this.runOnceToEnableMouseUp.schedule(), this.updateClass(), this.updateLabel(), this.updateTooltip(), this.updateEnabled(), this.updateChecked()); } blur() { super.blur(), this.applyStyle(); @@ -31803,8 +31803,8 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all } } calculateSubmenuMenuLayout(e2, t2, n2, i2) { - const o2 = {top: 0, left: 0}; - return o2.left = di(e2.width, t2.width, {position: i2 === yi.Right ? 0 : 1, offset: n2.left, size: n2.width}), o2.left >= n2.left && o2.left < n2.left + n2.width && (n2.left + 10 + t2.width <= e2.width && (o2.left = n2.left + 10), n2.top += 10, n2.height = 0), o2.top = di(e2.height, t2.height, {position: 0, offset: n2.top, size: 0}), o2.top + t2.height === n2.top && o2.top + n2.height + t2.height <= e2.height && (o2.top += n2.height), o2; + const r2 = {top: 0, left: 0}; + return r2.left = di(e2.width, t2.width, {position: i2 === yi.Right ? 0 : 1, offset: n2.left, size: n2.width}), r2.left >= n2.left && r2.left < n2.left + n2.width && (n2.left + 10 + t2.width <= e2.width && (r2.left = n2.left + 10), n2.top += 10, n2.height = 0), r2.top = di(e2.height, t2.height, {position: 0, offset: n2.top, size: 0}), r2.top + t2.height === n2.top && r2.top + n2.height + t2.height <= e2.height && (r2.top += n2.height), r2; } createSubmenu(e2 = true) { if (this.element) @@ -31814,7 +31814,7 @@ ${this._themeCSS}`, this._styleElements.forEach((e2) => e2.innerHTML = this._all this.updateAriaExpanded("true"), this.submenuContainer = Object(a.p)(this.element, Object(a.a)("div.monaco-submenu")), Object(a.f)(this.submenuContainer, "menubar-menu-items-holder", "context-view"); const t2 = getComputedStyle(this.parentData.parent.domNode), n2 = parseFloat(t2.paddingTop || "0") || 0; this.submenuContainer.style.zIndex = "1", this.submenuContainer.style.position = "fixed", this.submenuContainer.style.top = "0", this.submenuContainer.style.left = "0", this.parentData.submenu = new Ci(this.submenuContainer, this.submenuActions, this.submenuOptions), this.menuStyle && this.parentData.submenu.style(this.menuStyle); - const i2 = this.element.getBoundingClientRect(), o2 = {top: i2.top - n2, left: i2.left, height: i2.height + 2 * n2, width: i2.width}, r2 = this.submenuContainer.getBoundingClientRect(), {top: s2, left: l2} = this.calculateSubmenuMenuLayout({height: window.innerHeight, width: window.innerWidth}, r2, o2, this.expandDirection); + const i2 = this.element.getBoundingClientRect(), r2 = {top: i2.top - n2, left: i2.left, height: i2.height + 2 * n2, width: i2.width}, o2 = this.submenuContainer.getBoundingClientRect(), {top: s2, left: l2} = this.calculateSubmenuMenuLayout({height: window.innerHeight, width: window.innerWidth}, o2, r2, this.expandDirection); this.submenuContainer.style.left = l2 + "px", this.submenuContainer.style.top = s2 + "px", this.submenuDisposables.add(Object(a.i)(this.submenuContainer, a.c.KEY_UP, (e3) => { new Ie.a(e3).equals(15) && (a.b.stop(e3, true), this.parentData.parent.focus(), this.cleanupExistingSubmenu(true)); })), this.submenuDisposables.add(Object(a.i)(this.submenuContainer, a.c.KEY_DOWN, (e3) => { @@ -32241,8 +32241,8 @@ ${Object(zn.b)(wi)} `; var Ti = n(93), Li = n(44); class Ni { - constructor(e2, t2, n2, i2, o2) { - this.contextViewService = e2, this.telemetryService = t2, this.notificationService = n2, this.keybindingService = i2, this.themeService = o2, this.focusToReturn = null, this.block = null, this.options = {blockMouse: true}; + constructor(e2, t2, n2, i2, r2) { + this.contextViewService = e2, this.telemetryService = t2, this.notificationService = n2, this.keybindingService = i2, this.themeService = r2, this.focusToReturn = null, this.block = null, this.options = {blockMouse: true}; } configure(e2) { this.options = e2; @@ -32255,12 +32255,12 @@ ${Object(zn.b)(wi)} this.focusToReturn = document.activeElement; let i2 = Object(a.M)(e2.domForShadowRoot) ? e2.domForShadowRoot : void 0; this.contextViewService.showContextView({getAnchor: () => e2.getAnchor(), canRelayout: false, anchorAlignment: e2.anchorAlignment, render: (i3) => { - let o2 = e2.getMenuClassName ? e2.getMenuClassName() : ""; - o2 && (i3.className += " " + o2), this.options.blockMouse && (this.block = i3.appendChild(Object(a.a)(".context-view-block")), this.block.style.position = "fixed", this.block.style.cursor = "initial", this.block.style.left = "0", this.block.style.top = "0", this.block.style.width = "100%", this.block.style.height = "100%", this.block.style.zIndex = "-1", Object(Li.a)(this.block, a.c.MOUSE_DOWN)((e3) => e3.stopPropagation())); - const r2 = new I.b(), s2 = e2.actionRunner || new ri.b(); - return s2.onDidBeforeRun(this.onActionRun, this, r2), s2.onDidRun(this.onDidActionRun, this, r2), n2 = new Ci(i3, t2, {actionViewItemProvider: e2.getActionViewItem, context: e2.getActionsContext ? e2.getActionsContext() : null, actionRunner: s2, getKeyBinding: e2.getKeyBinding ? e2.getKeyBinding : (e3) => this.keybindingService.lookupKeybinding(e3.id)}), r2.add(Object(Ti.c)(n2, this.themeService)), n2.onDidCancel(() => this.contextViewService.hideContextView(true), null, r2), n2.onDidBlur(() => this.contextViewService.hideContextView(true), null, r2), Object(Li.a)(window, a.c.BLUR)(() => { + let r2 = e2.getMenuClassName ? e2.getMenuClassName() : ""; + r2 && (i3.className += " " + r2), this.options.blockMouse && (this.block = i3.appendChild(Object(a.a)(".context-view-block")), this.block.style.position = "fixed", this.block.style.cursor = "initial", this.block.style.left = "0", this.block.style.top = "0", this.block.style.width = "100%", this.block.style.height = "100%", this.block.style.zIndex = "-1", Object(Li.a)(this.block, a.c.MOUSE_DOWN)((e3) => e3.stopPropagation())); + const o2 = new I.b(), s2 = e2.actionRunner || new oi.b(); + return s2.onDidBeforeRun(this.onActionRun, this, o2), s2.onDidRun(this.onDidActionRun, this, o2), n2 = new Ci(i3, t2, {actionViewItemProvider: e2.getActionViewItem, context: e2.getActionsContext ? e2.getActionsContext() : null, actionRunner: s2, getKeyBinding: e2.getKeyBinding ? e2.getKeyBinding : (e3) => this.keybindingService.lookupKeybinding(e3.id)}), o2.add(Object(Ti.c)(n2, this.themeService)), n2.onDidCancel(() => this.contextViewService.hideContextView(true), null, o2), n2.onDidBlur(() => this.contextViewService.hideContextView(true), null, o2), Object(Li.a)(window, a.c.BLUR)(() => { this.contextViewService.hideContextView(true); - }, null, r2), Object(Li.a)(window, a.c.MOUSE_DOWN)((e3) => { + }, null, o2), Object(Li.a)(window, a.c.MOUSE_DOWN)((e3) => { if (e3.defaultPrevented) return; let t3 = new fi.a(e3), n3 = t3.target; @@ -32272,7 +32272,7 @@ ${Object(zn.b)(wi)} } this.contextViewService.hideContextView(true); } - }, null, r2), Object(I.e)(r2, n2); + }, null, o2), Object(I.e)(o2, n2); }, focus: () => { n2 && n2.focus(!!e2.autoSelectFirstItem); }, onHide: (t3) => { @@ -32286,22 +32286,22 @@ ${Object(zn.b)(wi)} e2.error && this.notificationService && this.notificationService.error(e2.error); } } - var Ii = n(120), Oi = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Ii = n(120), Di = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Di = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, Oi = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; let Ai = class extends I.a { - constructor(e2, t2, n2, i2, o2) { - super(), this._onDidContextMenu = this._register(new Oe.a()), this.onDidContextMenu = this._onDidContextMenu.event, this.contextMenuHandler = new Ni(n2, e2, t2, i2, o2); + constructor(e2, t2, n2, i2, r2) { + super(), this._onDidContextMenu = this._register(new De.a()), this.onDidContextMenu = this._onDidContextMenu.event, this.contextMenuHandler = new Ni(n2, e2, t2, i2, r2); } configure(e2) { this.contextMenuHandler.configure(e2); @@ -32310,16 +32310,16 @@ ${Object(zn.b)(wi)} this.contextMenuHandler.showContextMenu(e2), this._onDidContextMenu.fire(); } }; - Ai = Oi([Di(0, Ii.a), Di(1, st.a), Di(2, Pt.b), Di(3, Wt.a), Di(4, zt.c)], Ai); + Ai = Di([Oi(0, Ii.a), Oi(1, st.a), Oi(2, Pt.b), Oi(3, Wt.a), Oi(4, zt.c)], Ai); const Ri = Object(Ft.c)("layoutService"); var Mi = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Pi = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -32410,10 +32410,10 @@ ${Object(zn.b)(wi)} return e2({get: (e3, t3) => { if (i2) throw Object(H.c)("service accessor is only valid during the invocation of its target method"); - const o2 = this._getOrCreateServiceInstance(e3, n2); - if (!o2 && t3 !== Ft.d) + const r2 = this._getOrCreateServiceInstance(e3, n2); + if (!r2 && t3 !== Ft.d) throw new Error(`[invokeFunction] unknown service '${e3}'`); - return o2; + return r2; }}, ...t2); } finally { i2 = true, n2.stop(); @@ -32424,20 +32424,20 @@ ${Object(zn.b)(wi)} return e2 instanceof ji.a ? (n2 = qi.traceCreation(e2.ctor), i2 = this._createInstance(e2.ctor, e2.staticArguments.concat(t2), n2)) : (n2 = qi.traceCreation(e2), i2 = this._createInstance(e2, t2, n2)), n2.stop(), i2; } _createInstance(e2, t2 = [], n2) { - let i2 = Ft.b.getServiceDependencies(e2).sort((e3, t3) => e3.index - t3.index), o2 = []; + let i2 = Ft.b.getServiceDependencies(e2).sort((e3, t3) => e3.index - t3.index), r2 = []; for (const t3 of i2) { let i3 = this._getOrCreateServiceInstance(t3.id, n2); if (!i3 && this._strict && !t3.optional) throw new Error(`[createInstance] ${e2.name} depends on UNKNOWN service ${t3.id}.`); - o2.push(i3); + r2.push(i3); } - let r2 = i2.length > 0 ? i2[0].index : t2.length; - if (t2.length !== r2) { - console.warn(`[createInstance] First service dependency of ${e2.name} at position ${r2 + 1} conflicts with ${t2.length} static arguments`); - let n3 = r2 - t2.length; - t2 = n3 > 0 ? t2.concat(new Array(n3)) : t2.slice(0, r2); + let o2 = i2.length > 0 ? i2[0].index : t2.length; + if (t2.length !== o2) { + console.warn(`[createInstance] First service dependency of ${e2.name} at position ${o2 + 1} conflicts with ${t2.length} static arguments`); + let n3 = o2 - t2.length; + t2 = n3 > 0 ? t2.concat(new Array(n3)) : t2.slice(0, o2); } - return new e2(...[...t2, ...o2]); + return new e2(...[...t2, ...r2]); } _setServiceInstance(e2, t2) { if (this._services.get(e2) instanceof ji.a) @@ -32458,17 +32458,17 @@ ${Object(zn.b)(wi)} } _createAndCacheServiceInstance(e2, t2, n2) { const i2 = new Bi((e3) => e3.id.toString()); - let o2 = 0; - const r2 = [{id: e2, desc: t2, _trace: n2}]; - for (; r2.length; ) { - const t3 = r2.pop(); - if (i2.lookupOrInsertNode(t3), o2++ > 1e3) + let r2 = 0; + const o2 = [{id: e2, desc: t2, _trace: n2}]; + for (; o2.length; ) { + const t3 = o2.pop(); + if (i2.lookupOrInsertNode(t3), r2++ > 1e3) throw new Ui(i2); for (let n3 of Ft.b.getServiceDependencies(t3.desc.ctor)) { - let o3 = this._getServiceInstanceOrDescriptor(n3.id); - if (o3 || n3.optional || console.warn(`[createInstance] ${e2} depends on ${n3.id} which is NOT registered.`), o3 instanceof ji.a) { - const e3 = {id: n3.id, desc: o3, _trace: t3._trace.branch(n3.id, true)}; - i2.insertEdge(t3, e3), r2.push(e3); + let r3 = this._getServiceInstanceOrDescriptor(n3.id); + if (r3 || n3.optional || console.warn(`[createInstance] ${e2} depends on ${n3.id} which is NOT registered.`), r3 instanceof ji.a) { + const e3 = {id: n3.id, desc: r3, _trace: t3._trace.branch(n3.id, true)}; + i2.insertEdge(t3, e3), o2.push(e3); } } } @@ -32486,11 +32486,11 @@ ${Object(zn.b)(wi)} } return this._getServiceInstanceOrDescriptor(e2); } - _createServiceInstanceWithOwner(e2, t2, n2 = [], i2, o2) { + _createServiceInstanceWithOwner(e2, t2, n2 = [], i2, r2) { if (this._services.get(e2) instanceof ji.a) - return this._createServiceInstance(t2, n2, i2, o2); + return this._createServiceInstance(t2, n2, i2, r2); if (this._parent) - return this._parent._createServiceInstanceWithOwner(e2, t2, n2, i2, o2); + return this._parent._createServiceInstanceWithOwner(e2, t2, n2, i2, r2); throw new Error("illegalState - creating UNKNOWN service instance " + t2.name); } _createServiceInstance(e2, t2 = [], n2, i2) { @@ -32499,8 +32499,8 @@ ${Object(zn.b)(wi)} return new Proxy(Object.create(null), {get(e3, t3) { if (t3 in e3) return e3[t3]; - let i3 = n3.value, o2 = i3[t3]; - return typeof o2 != "function" || (o2 = o2.bind(i3), e3[t3] = o2), o2; + let i3 = n3.value, r2 = i3[t3]; + return typeof r2 != "function" || (r2 = r2.bind(i3), e3[t3] = r2), r2; }, set: (e3, t3, i3) => (n3.value[t3] = i3, true)}); } return this._createInstance(e2, t2, i2); @@ -32525,15 +32525,15 @@ ${Object(zn.b)(wi)} qi._totals += e2; let t2 = false; let n2 = [`${this.type === 0 ? "CREATE" : "CALL"} ${this.name}`, "" + function e3(n3, i2) { - let o2 = [], r2 = new Array(n3 + 1).join(" "); + let r2 = [], o2 = new Array(n3 + 1).join(" "); for (const [s2, a2, l2] of i2._dep) if (a2 && l2) { - t2 = true, o2.push(`${r2}CREATES -> ${s2}`); + t2 = true, r2.push(`${o2}CREATES -> ${s2}`); let i3 = e3(n3 + 1, l2); - i3 && o2.push(i3); + i3 && r2.push(i3); } else - o2.push(`${r2}uses -> ${s2}`); - return o2.join("\n"); + r2.push(`${o2}uses -> ${s2}`); + return r2.join("\n"); }(1, this), `DONE, took ${e2.toFixed(2)}ms (grand total ${qi._totals.toFixed(2)}ms)`]; (e2 > 2 || t2) && console.log(n2.join("\n")); } @@ -32556,24 +32556,24 @@ ${Object(zn.b)(wi)} set(e2, t2, n2) { let i2 = this._byResource.get(e2); i2 || (i2 = new Map(), this._byResource.set(e2, i2)), i2.set(t2, n2); - let o2 = this._byOwner.get(t2); - o2 || (o2 = new Be.b(), this._byOwner.set(t2, o2)), o2.set(e2, n2); + let r2 = this._byOwner.get(t2); + r2 || (r2 = new Be.b(), this._byOwner.set(t2, r2)), r2.set(e2, n2); } get(e2, t2) { let n2 = this._byResource.get(e2); return n2 == null ? void 0 : n2.get(t2); } delete(e2, t2) { - let n2 = false, i2 = false, o2 = this._byResource.get(e2); - o2 && (n2 = o2.delete(t2)); - let r2 = this._byOwner.get(t2); - if (r2 && (i2 = r2.delete(e2)), n2 !== i2) + let n2 = false, i2 = false, r2 = this._byResource.get(e2); + r2 && (n2 = r2.delete(t2)); + let o2 = this._byOwner.get(t2); + if (o2 && (i2 = o2.delete(e2)), n2 !== i2) throw new Error("illegal state"); return n2 && i2; } values(e2) { - var t2, n2, i2, o2; - return typeof e2 == "string" ? (n2 = (t2 = this._byOwner.get(e2)) === null || t2 === void 0 ? void 0 : t2.values()) !== null && n2 !== void 0 ? n2 : Yi.a.empty() : u.a.isUri(e2) ? (o2 = (i2 = this._byResource.get(e2)) === null || i2 === void 0 ? void 0 : i2.values()) !== null && o2 !== void 0 ? o2 : Yi.a.empty() : Yi.a.map(Yi.a.concat(...this._byOwner.values()), (e3) => e3[1]); + var t2, n2, i2, r2; + return typeof e2 == "string" ? (n2 = (t2 = this._byOwner.get(e2)) === null || t2 === void 0 ? void 0 : t2.values()) !== null && n2 !== void 0 ? n2 : Yi.a.empty() : u.a.isUri(e2) ? (r2 = (i2 = this._byResource.get(e2)) === null || i2 === void 0 ? void 0 : i2.values()) !== null && r2 !== void 0 ? r2 : Yi.a.empty() : Yi.a.map(Yi.a.concat(...this._byOwner.values()), (e3) => e3[1]); } } class Xi { @@ -32608,7 +32608,7 @@ ${Object(zn.b)(wi)} } class Qi { constructor() { - this._onMarkerChanged = new Oe.a(), this.onMarkerChanged = Oe.b.debounce(this._onMarkerChanged.event, Qi._debouncer, 0), this._data = new Zi(), this._stats = new Xi(this); + this._onMarkerChanged = new De.a(), this.onMarkerChanged = De.b.debounce(this._onMarkerChanged.event, Qi._debouncer, 0), this._data = new Zi(), this._stats = new Xi(this); } dispose() { this._stats.dispose(); @@ -32622,28 +32622,28 @@ ${Object(zn.b)(wi)} this._data.delete(t2, e2) && this._onMarkerChanged.fire([t2]); } else { const i2 = []; - for (const o2 of n2) { - const n3 = Qi._toMarker(e2, t2, o2); + for (const r2 of n2) { + const n3 = Qi._toMarker(e2, t2, r2); n3 && i2.push(n3); } this._data.set(t2, e2, i2), this._onMarkerChanged.fire([t2]); } } static _toMarker(e2, t2, n2) { - let {code: i2, severity: o2, message: r2, source: s2, startLineNumber: a2, startColumn: l2, endLineNumber: c2, endColumn: d2, relatedInformation: h2, tags: u2} = n2; - if (r2) - return a2 = a2 > 0 ? a2 : 1, l2 = l2 > 0 ? l2 : 1, c2 = c2 >= a2 ? c2 : a2, d2 = d2 > 0 ? d2 : l2, {resource: t2, owner: e2, code: i2, severity: o2, message: r2, source: s2, startLineNumber: a2, startColumn: l2, endLineNumber: c2, endColumn: d2, relatedInformation: h2, tags: u2}; + let {code: i2, severity: r2, message: o2, source: s2, startLineNumber: a2, startColumn: l2, endLineNumber: c2, endColumn: d2, relatedInformation: h2, tags: u2} = n2; + if (o2) + return a2 = a2 > 0 ? a2 : 1, l2 = l2 > 0 ? l2 : 1, c2 = c2 >= a2 ? c2 : a2, d2 = d2 > 0 ? d2 : l2, {resource: t2, owner: e2, code: i2, severity: r2, message: o2, source: s2, startLineNumber: a2, startColumn: l2, endLineNumber: c2, endColumn: d2, relatedInformation: h2, tags: u2}; } read(e2 = Object.create(null)) { - let {owner: t2, resource: n2, severities: i2, take: o2} = e2; - if ((!o2 || o2 < 0) && (o2 = -1), t2 && n2) { + let {owner: t2, resource: n2, severities: i2, take: r2} = e2; + if ((!r2 || r2 < 0) && (r2 = -1), t2 && n2) { const e3 = this._data.get(n2, t2); if (e3) { const t3 = []; for (const n3 of e3) if (Qi._accept(n3, i2)) { const e4 = t3.push(n3); - if (o2 > 0 && e4 === o2) + if (r2 > 0 && e4 === r2) break; } return t3; @@ -32651,15 +32651,15 @@ ${Object(zn.b)(wi)} return []; } if (t2 || n2) { - const e3 = this._data.values(n2 != null ? n2 : t2), r2 = []; + const e3 = this._data.values(n2 != null ? n2 : t2), o2 = []; for (const t3 of e3) for (const e4 of t3) if (Qi._accept(e4, i2)) { - const t4 = r2.push(e4); - if (o2 > 0 && t4 === o2) - return r2; + const t4 = o2.push(e4); + if (r2 > 0 && t4 === r2) + return o2; } - return r2; + return o2; } { const e3 = []; @@ -32667,7 +32667,7 @@ ${Object(zn.b)(wi)} for (let n3 of t3) if (Qi._accept(n3, i2)) { const t4 = e3.push(n3); - if (o2 > 0 && t4 === o2) + if (r2 > 0 && t4 === r2) return e3; } return e3; @@ -32683,32 +32683,32 @@ ${Object(zn.b)(wi)} return e2; } } - var Ji = n(97), eo = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Ji = n(97), er = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, to = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, tr = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let no = class { + let nr = class { constructor(e2) { this._commandService = e2; } createMenu(e2, t2) { - return new io(e2, this._commandService, t2, this); + return new ir(e2, this._commandService, t2, this); } }; - no = eo([to(0, p.b)], no); - let io = class e2 { + nr = er([tr(0, p.b)], nr); + let ir = class e2 { constructor(e3, t2, n2, i2) { - this._id = e3, this._commandService = t2, this._contextKeyService = n2, this._menuService = i2, this._onDidChange = new Oe.a(), this._dispoables = new I.b(), this._menuGroups = [], this._contextKeys = new Set(), this._build(), this._dispoables.add(Oe.b.debounce(Oe.b.filter(Rt.d.onDidChangeMenu, (e4) => e4.has(this._id)), () => { - }, 50)(this._build, this)), this._dispoables.add(Oe.b.debounce(this._contextKeyService.onDidChangeContext, (e4, t3) => e4 || t3.affectsSome(this._contextKeys), 50)((e4) => e4 && this._onDidChange.fire(void 0), this)); + this._id = e3, this._commandService = t2, this._contextKeyService = n2, this._menuService = i2, this._onDidChange = new De.a(), this._dispoables = new I.b(), this._menuGroups = [], this._contextKeys = new Set(), this._build(), this._dispoables.add(De.b.debounce(De.b.filter(Rt.d.onDidChangeMenu, (e4) => e4.has(this._id)), () => { + }, 50)(this._build, this)), this._dispoables.add(De.b.debounce(this._contextKeyService.onDidChangeContext, (e4, t3) => e4 || t3.affectsSome(this._contextKeys), 50)((e4) => e4 && this._onDidChange.fire(void 0), this)); } dispose() { this._dispoables.dispose(), this._onDidChange.dispose(); @@ -32733,13 +32733,13 @@ ${Object(zn.b)(wi)} getActions(e3) { const t2 = []; for (let n2 of this._menuGroups) { - const [i2, o2] = n2, r2 = []; - for (const t3 of o2) + const [i2, r2] = n2, o2 = []; + for (const t3 of r2) if (this._contextKeyService.contextMatchesRules(t3.when)) { const n3 = Object(Rt.f)(t3) ? new Rt.c(t3.command, t3.alt, e3, this._contextKeyService, this._commandService) : new Rt.e(t3, this._menuService, this._contextKeyService, e3); - r2.push(n3); + o2.push(n3); } - r2.length > 0 && t2.push([i2, r2]); + o2.length > 0 && t2.push([i2, o2]); } return t2; } @@ -32749,46 +32749,46 @@ ${Object(zn.b)(wi)} t2.add(n2); } static _compareMenuItems(t2, n2) { - let i2 = t2.group, o2 = n2.group; - if (i2 !== o2) { + let i2 = t2.group, r2 = n2.group; + if (i2 !== r2) { if (!i2) return 1; - if (!o2) + if (!r2) return -1; if (i2 === "navigation") return -1; - if (o2 === "navigation") + if (r2 === "navigation") return 1; - let e3 = i2.localeCompare(o2); + let e3 = i2.localeCompare(r2); if (e3 !== 0) return e3; } - let r2 = t2.order || 0, s2 = n2.order || 0; - return r2 < s2 ? -1 : r2 > s2 ? 1 : e2._compareTitles(Object(Rt.f)(t2) ? t2.command.title : t2.title, Object(Rt.f)(n2) ? n2.command.title : n2.title); + let o2 = t2.order || 0, s2 = n2.order || 0; + return o2 < s2 ? -1 : o2 > s2 ? 1 : e2._compareTitles(Object(Rt.f)(t2) ? t2.command.title : t2.title, Object(Rt.f)(n2) ? n2.command.title : n2.title); } static _compareTitles(e3, t2) { const n2 = typeof e3 == "string" ? e3 : e3.value, i2 = typeof t2 == "string" ? t2 : t2.value; return n2.localeCompare(i2); } }; - io = eo([to(1, p.b), to(2, Mt.b), to(3, Rt.a)], io); - var oo = n(192), ro = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + ir = er([tr(1, p.b), tr(2, Mt.b), tr(3, Rt.a)], ir); + var rr = n(192), or = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, so = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, sr = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - function ao(e2) { + function ar(e2) { return e2.toString(); } - class lo extends I.a { + class lr extends I.a { constructor(e2) { super(), this.model = e2, this._markersData = new Map(), this._register(Object(I.h)(() => { this.model.deltaDecorations([...this._markersData.keys()], []), this._markersData.clear(); @@ -32806,30 +32806,30 @@ ${Object(zn.b)(wi)} return this._markersData.get(e2.id); } } - let co = class extends I.a { + let cr = class extends I.a { constructor(e2, t2) { - super(), this._markerService = t2, this._onDidChangeMarker = this._register(new Oe.a()), this._markerDecorations = new Map(), e2.getModels().forEach((e3) => this._onModelAdded(e3)), this._register(e2.onModelAdded(this._onModelAdded, this)), this._register(e2.onModelRemoved(this._onModelRemoved, this)), this._register(this._markerService.onMarkerChanged(this._handleMarkerChange, this)); + super(), this._markerService = t2, this._onDidChangeMarker = this._register(new De.a()), this._markerDecorations = new Map(), e2.getModels().forEach((e3) => this._onModelAdded(e3)), this._register(e2.onModelAdded(this._onModelAdded, this)), this._register(e2.onModelRemoved(this._onModelRemoved, this)), this._register(this._markerService.onMarkerChanged(this._handleMarkerChange, this)); } dispose() { super.dispose(), this._markerDecorations.forEach((e2) => e2.dispose()), this._markerDecorations.clear(); } getMarker(e2, t2) { - const n2 = this._markerDecorations.get(ao(e2.uri)); + const n2 = this._markerDecorations.get(ar(e2.uri)); return n2 && n2.getMarker(t2) || null; } _handleMarkerChange(e2) { e2.forEach((e3) => { - const t2 = this._markerDecorations.get(ao(e3)); + const t2 = this._markerDecorations.get(ar(e3)); t2 && this._updateDecorations(t2); }); } _onModelAdded(e2) { - const t2 = new lo(e2); - this._markerDecorations.set(ao(e2.uri), t2), this._updateDecorations(t2); + const t2 = new lr(e2); + this._markerDecorations.set(ar(e2.uri), t2), this._updateDecorations(t2); } _onModelRemoved(e2) { - const t2 = this._markerDecorations.get(ao(e2.uri)); - t2 && (t2.dispose(), this._markerDecorations.delete(ao(e2.uri))), e2.uri.scheme !== d.b.inMemory && e2.uri.scheme !== d.b.internal && e2.uri.scheme !== d.b.vscode || this._markerService && this._markerService.read({resource: e2.uri}).map((e3) => e3.owner).forEach((t3) => this._markerService.remove(t3, [e2.uri])); + const t2 = this._markerDecorations.get(ar(e2.uri)); + t2 && (t2.dispose(), this._markerDecorations.delete(ar(e2.uri))), e2.uri.scheme !== d.b.inMemory && e2.uri.scheme !== d.b.internal && e2.uri.scheme !== d.b.vscode || this._markerService && this._markerService.read({resource: e2.uri}).map((e3) => e3.owner).forEach((t3) => this._markerService.remove(t3, [e2.uri])); } _updateDecorations(e2) { const t2 = this._markerService.read({resource: e2.model.uri, take: 500}); @@ -32853,44 +32853,44 @@ ${Object(zn.b)(wi)} return n2; } _createDecorationOption(e2) { - let t2, n2, i2, o2 = void 0, r2 = void 0; + let t2, n2, i2, r2 = void 0, o2 = void 0; switch (e2.severity) { case Gi.c.Hint: t2 = this._hasMarkerTag(e2, 2) ? void 0 : this._hasMarkerTag(e2, 1) ? "squiggly-unnecessary" : "squiggly-hint", n2 = 0; break; case Gi.c.Warning: - t2 = "squiggly-warning", o2 = Object(zt.h)(Rn.t), n2 = 20, i2 = {color: Object(zt.h)(Mn.Tb), position: S.c.Inline}; + t2 = "squiggly-warning", r2 = Object(zt.h)(Rn.t), n2 = 20, i2 = {color: Object(zt.h)(Mn.Tb), position: S.c.Inline}; break; case Gi.c.Info: - t2 = "squiggly-info", o2 = Object(zt.h)(Rn.r), n2 = 10; + t2 = "squiggly-info", r2 = Object(zt.h)(Rn.r), n2 = 10; break; case Gi.c.Error: default: - t2 = "squiggly-error", o2 = Object(zt.h)(Rn.q), n2 = 30, i2 = {color: Object(zt.h)(Mn.Nb), position: S.c.Inline}; + t2 = "squiggly-error", r2 = Object(zt.h)(Rn.q), n2 = 30, i2 = {color: Object(zt.h)(Mn.Nb), position: S.c.Inline}; } - return e2.tags && (e2.tags.indexOf(1) !== -1 && (r2 = "squiggly-inline-unnecessary"), e2.tags.indexOf(2) !== -1 && (r2 = "squiggly-inline-deprecated")), {stickiness: 1, className: t2, showIfCollapsed: true, overviewRuler: {color: o2, position: S.d.Right}, minimap: i2, zIndex: n2, inlineClassName: r2}; + return e2.tags && (e2.tags.indexOf(1) !== -1 && (o2 = "squiggly-inline-unnecessary"), e2.tags.indexOf(2) !== -1 && (o2 = "squiggly-inline-deprecated")), {stickiness: 1, className: t2, showIfCollapsed: true, overviewRuler: {color: r2, position: S.d.Right}, minimap: i2, zIndex: n2, inlineClassName: o2}; } _hasMarkerTag(e2, t2) { return !!e2.tags && e2.tags.indexOf(t2) >= 0; } }; - co = ro([so(0, W.a), so(1, Gi.b)], co); - var ho = n(115), uo = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + cr = or([sr(0, W.a), sr(1, Gi.b)], cr); + var dr = n(115), hr = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, po = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, ur = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let mo = class extends I.a { + let pr = class extends I.a { constructor(e2, t2) { - super(), this._contextKeyService = e2, this._configurationService = t2, this._accessibilitySupport = 0, this._onDidChangeScreenReaderOptimized = new Oe.a(), this._accessibilityModeEnabledContext = Bt.a.bindTo(this._contextKeyService); + super(), this._contextKeyService = e2, this._configurationService = t2, this._accessibilitySupport = 0, this._onDidChangeScreenReaderOptimized = new De.a(), this._accessibilityModeEnabledContext = Bt.a.bindTo(this._contextKeyService); const n2 = () => this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized()); this._register(this._configurationService.onDidChangeConfiguration((e3) => { e3.affectsConfiguration("editor.accessibilitySupport") && (n2(), this._onDidChangeScreenReaderOptimized.fire()); @@ -32907,38 +32907,38 @@ ${Object(zn.b)(wi)} return this._accessibilitySupport; } }; - mo = uo([po(0, Mt.b), po(1, ze.a)], mo); - var go = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + pr = hr([ur(0, Mt.b), ur(1, ze.a)], pr); + var mr = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - class fo { + class gr { constructor() { this.mapTextToType = new Map(), this.findText = ""; } writeText(e2, t2) { - return go(this, void 0, void 0, function* () { + return mr(this, void 0, void 0, function* () { if (t2) return void this.mapTextToType.set(t2, e2); try { @@ -32951,7 +32951,7 @@ ${Object(zn.b)(wi)} }); } readText(e2) { - return go(this, void 0, void 0, function* () { + return mr(this, void 0, void 0, function* () { if (e2) return this.mapTextToType.get(e2) || ""; try { @@ -32962,60 +32962,60 @@ ${Object(zn.b)(wi)} }); } readFindText() { - return go(this, void 0, void 0, function* () { + return mr(this, void 0, void 0, function* () { return this.findText; }); } writeFindText(e2) { - return go(this, void 0, void 0, function* () { + return mr(this, void 0, void 0, function* () { this.findText = e2; }); } } - var bo = n(150), _o = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var fr = n(150), br = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, vo = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, _r = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; - }, wo = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }, vr = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - function yo(e2) { + function wr(e2) { return e2.scheme === d.b.file ? e2.fsPath : e2.path; } - let Co = 0; - class xo { + let yr = 0; + class Cr { constructor(e2, t2, n2) { - this.id = ++Co, this.type = 0, this.actual = e2, this.label = e2.label, this.resourceLabel = t2, this.strResource = n2, this.resourceLabels = [this.resourceLabel], this.strResources = [this.strResource], this.isValid = true; + this.id = ++yr, this.type = 0, this.actual = e2, this.label = e2.label, this.resourceLabel = t2, this.strResource = n2, this.resourceLabels = [this.resourceLabel], this.strResources = [this.strResource], this.isValid = true; } setValid(e2) { this.isValid = e2; @@ -33024,12 +33024,12 @@ ${Object(zn.b)(wi)} return `[${this.id}] [${this.isValid ? "VALID" : "INVALID"}] ${this.actual}`; } } - class So { + class xr { constructor(e2, t2) { this.resourceLabel = e2, this.reason = t2; } } - class ko { + class Sr { constructor() { this.elements = new Map(); } @@ -33054,24 +33054,24 @@ ${Object(zn.b)(wi)} return this.elements.delete(e2); } } - class Eo { + class kr { constructor(e2, t2, n2) { - this.id = ++Co, this.type = 1, this.actual = e2, this.label = e2.label, this.resourceLabels = t2, this.strResources = n2, this.removedResources = null, this.invalidatedResources = null; + this.id = ++yr, this.type = 1, this.actual = e2, this.label = e2.label, this.resourceLabels = t2, this.strResources = n2, this.removedResources = null, this.invalidatedResources = null; } canSplit() { return typeof this.actual.split == "function"; } removeResource(e2, t2, n2) { - this.removedResources || (this.removedResources = new ko()), this.removedResources.has(t2) || this.removedResources.set(t2, new So(e2, n2)); + this.removedResources || (this.removedResources = new Sr()), this.removedResources.has(t2) || this.removedResources.set(t2, new xr(e2, n2)); } setValid(e2, t2, n2) { - n2 ? this.invalidatedResources && (this.invalidatedResources.delete(t2), this.invalidatedResources.size === 0 && (this.invalidatedResources = null)) : (this.invalidatedResources || (this.invalidatedResources = new ko()), this.invalidatedResources.has(t2) || this.invalidatedResources.set(t2, new So(e2, 0))); + n2 ? this.invalidatedResources && (this.invalidatedResources.delete(t2), this.invalidatedResources.size === 0 && (this.invalidatedResources = null)) : (this.invalidatedResources || (this.invalidatedResources = new Sr()), this.invalidatedResources.has(t2) || this.invalidatedResources.set(t2, new xr(e2, 0))); } toString() { return `[${this.id}] [${this.invalidatedResources ? "INVALID" : "VALID"}] ${this.actual}`; } } - class To { + class Er { constructor(e2, t2) { this.resourceLabel = e2, this.strResource = t2, this._past = [], this._future = [], this.locked = false, this.versionId = 1; } @@ -33118,21 +33118,21 @@ ${Object(zn.b)(wi)} t2.push(this._past[e3].id); for (let e3 = this._future.length - 1; e3 >= 0; e3--) t2.push(this._future[e3].id); - return new bo.b(e2, t2); + return new fr.b(e2, t2); } restoreSnapshot(e2) { const t2 = e2.elements.length; - let n2 = true, i2 = 0, o2 = -1; - for (let r3 = 0, s2 = this._past.length; r3 < s2; r3++, i2++) { - const s3 = this._past[r3]; - n2 && (i2 >= t2 || s3.id !== e2.elements[i2]) && (n2 = false, o2 = 0), n2 || s3.type !== 1 || s3.removeResource(this.resourceLabel, this.strResource, 0); + let n2 = true, i2 = 0, r2 = -1; + for (let o3 = 0, s2 = this._past.length; o3 < s2; o3++, i2++) { + const s3 = this._past[o3]; + n2 && (i2 >= t2 || s3.id !== e2.elements[i2]) && (n2 = false, r2 = 0), n2 || s3.type !== 1 || s3.removeResource(this.resourceLabel, this.strResource, 0); } - let r2 = -1; - for (let o3 = this._future.length - 1; o3 >= 0; o3--, i2++) { - const s2 = this._future[o3]; - n2 && (i2 >= t2 || s2.id !== e2.elements[i2]) && (n2 = false, r2 = o3), n2 || s2.type !== 1 || s2.removeResource(this.resourceLabel, this.strResource, 0); + let o2 = -1; + for (let r3 = this._future.length - 1; r3 >= 0; r3--, i2++) { + const s2 = this._future[r3]; + n2 && (i2 >= t2 || s2.id !== e2.elements[i2]) && (n2 = false, o2 = r3), n2 || s2.type !== 1 || s2.removeResource(this.resourceLabel, this.strResource, 0); } - o2 !== -1 && (this._past = this._past.slice(0, o2)), r2 !== -1 && (this._future = this._future.slice(r2 + 1)), this.versionId++; + r2 !== -1 && (this._past = this._past.slice(0, r2)), o2 !== -1 && (this._future = this._future.slice(o2 + 1)), this.versionId++; } getElements() { const e2 = [], t2 = []; @@ -33177,7 +33177,7 @@ ${Object(zn.b)(wi)} this._future.pop(), this._past.push(e2), this.versionId++; } } - class Lo { + class Tr { constructor(e2) { this.editStacks = e2, this._versionIds = []; for (let e3 = 0, t2 = this.editStacks.length; e3 < t2; e3++) @@ -33190,9 +33190,9 @@ ${Object(zn.b)(wi)} return true; } } - const No = new To("", ""); - No.locked = true; - let Io = class { + const Lr = new Er("", ""); + Lr.locked = true; + let Nr = class { constructor(e2, t2) { this._dialogService = e2, this._notificationService = t2, this._editStacks = new Map(), this._uriComparisonKeyComputers = []; } @@ -33211,22 +33211,22 @@ ${Object(zn.b)(wi)} } pushElement(e2) { if (e2.type === 0) { - const t2 = yo(e2.resource), n2 = this.getUriComparisonKey(e2.resource); - this._pushElement(new xo(e2, t2, n2)); + const t2 = wr(e2.resource), n2 = this.getUriComparisonKey(e2.resource); + this._pushElement(new Cr(e2, t2, n2)); } else { const t2 = new Set(), n2 = [], i2 = []; - for (const o2 of e2.resources) { - const e3 = yo(o2), r2 = this.getUriComparisonKey(o2); - t2.has(r2) || (t2.add(r2), n2.push(e3), i2.push(r2)); + for (const r2 of e2.resources) { + const e3 = wr(r2), o2 = this.getUriComparisonKey(r2); + t2.has(o2) || (t2.add(o2), n2.push(e3), i2.push(o2)); } - n2.length === 1 ? this._pushElement(new xo(e2, n2[0], i2[0])) : this._pushElement(new Eo(e2, n2, i2)); + n2.length === 1 ? this._pushElement(new Cr(e2, n2[0], i2[0])) : this._pushElement(new kr(e2, n2, i2)); } } _pushElement(e2) { for (let t2 = 0, n2 = e2.strResources.length; t2 < n2; t2++) { const n3 = e2.resourceLabels[t2], i2 = e2.strResources[t2]; - let o2; - this._editStacks.has(i2) ? o2 = this._editStacks.get(i2) : (o2 = new To(n3, i2), this._editStacks.set(i2, o2)), o2.pushElement(e2); + let r2; + this._editStacks.has(i2) ? r2 = this._editStacks.get(i2) : (r2 = new Er(n3, i2), this._editStacks.set(i2, r2)), r2.pushElement(e2); } } getLastElement(e2) { @@ -33243,8 +33243,8 @@ ${Object(zn.b)(wi)} _splitPastWorkspaceElement(e2, t2) { const n2 = e2.actual.split(), i2 = new Map(); for (const e3 of n2) { - const t3 = yo(e3.resource), n3 = this.getUriComparisonKey(e3.resource), o2 = new xo(e3, t3, n3); - i2.set(o2.strResource, o2); + const t3 = wr(e3.resource), n3 = this.getUriComparisonKey(e3.resource), r2 = new Cr(e3, t3, n3); + i2.set(r2.strResource, r2); } for (const n3 of e2.strResources) { if (t2 && t2.has(n3)) @@ -33255,8 +33255,8 @@ ${Object(zn.b)(wi)} _splitFutureWorkspaceElement(e2, t2) { const n2 = e2.actual.split(), i2 = new Map(); for (const e3 of n2) { - const t3 = yo(e3.resource), n3 = this.getUriComparisonKey(e3.resource), o2 = new xo(e3, t3, n3); - i2.set(o2.strResource, o2); + const t3 = wr(e3.resource), n3 = this.getUriComparisonKey(e3.resource), r2 = new Cr(e3, t3, n3); + i2.set(r2.strResource, r2); } for (const n3 of e2.strResources) { if (t2 && t2.has(n3)) @@ -33281,7 +33281,7 @@ ${Object(zn.b)(wi)} if (this._editStacks.has(t2)) { return this._editStacks.get(t2).createSnapshot(e2); } - return new bo.b(e2, []); + return new fr.b(e2, []); } restoreSnapshot(e2) { const t2 = this.getUriComparisonKey(e2.resource); @@ -33322,21 +33322,21 @@ ${Object(zn.b)(wi)} }; } _safeInvokeWithLocks(e2, t2, n2, i2 = I.a.None) { - const o2 = this._acquireLocks(n2); - let r2; + const r2 = this._acquireLocks(n2); + let o2; try { - r2 = t2(); + o2 = t2(); } catch (t3) { - return o2(), i2.dispose(), this._onError(t3, e2); + return r2(), i2.dispose(), this._onError(t3, e2); } - if (r2) - return r2.then(() => { - o2(), i2.dispose(); - }, (t3) => (o2(), i2.dispose(), this._onError(t3, e2))); - o2(), i2.dispose(); + if (o2) + return o2.then(() => { + r2(), i2.dispose(); + }, (t3) => (r2(), i2.dispose(), this._onError(t3, e2))); + r2(), i2.dispose(); } _invokeWorkspacePrepare(e2) { - return wo(this, void 0, void 0, function* () { + return vr(this, void 0, void 0, function* () { if (e2.actual.prepareUndoRedo === void 0) return I.a.None; const t2 = e2.actual.prepareUndoRedo(); @@ -33359,46 +33359,46 @@ ${Object(zn.b)(wi)} _getAffectedEditStacks(e2) { const t2 = []; for (const n2 of e2.strResources) - t2.push(this._editStacks.get(n2) || No); - return new Lo(t2); + t2.push(this._editStacks.get(n2) || Lr); + return new Tr(t2); } _tryToSplitAndUndo(e2, t2, n2, i2) { if (t2.canSplit()) - return this._splitPastWorkspaceElement(t2, n2), this._notificationService.info(i2), new Oo(this.undo(e2)); + return this._splitPastWorkspaceElement(t2, n2), this._notificationService.info(i2), new Ir(this.undo(e2)); for (const e3 of t2.strResources) this.removeElements(e3); - return this._notificationService.info(i2), new Oo(); + return this._notificationService.info(i2), new Ir(); } _checkWorkspaceUndo(e2, t2, n2, i2) { if (t2.removedResources) return this._tryToSplitAndUndo(e2, t2, t2.removedResources, Ke.a({key: "cannotWorkspaceUndo", comment: ["{0} is a label for an operation. {1} is another message."]}, "Could not undo '{0}' across all files. {1}", t2.label, t2.removedResources.createMessage())); if (i2 && t2.invalidatedResources) return this._tryToSplitAndUndo(e2, t2, t2.invalidatedResources, Ke.a({key: "cannotWorkspaceUndo", comment: ["{0} is a label for an operation. {1} is another message."]}, "Could not undo '{0}' across all files. {1}", t2.label, t2.invalidatedResources.createMessage())); - const o2 = []; - for (const e3 of n2.editStacks) - e3.getClosestPastElement() !== t2 && o2.push(e3.resourceLabel); - if (o2.length > 0) - return this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToChanges", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because changes were made to {1}", t2.label, o2.join(", "))); const r2 = []; for (const e3 of n2.editStacks) - e3.locked && r2.push(e3.resourceLabel); - return r2.length > 0 ? this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}", t2.label, r2.join(", "))) : n2.isValid() ? null : this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToInMeantimeUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime", t2.label)); + e3.getClosestPastElement() !== t2 && r2.push(e3.resourceLabel); + if (r2.length > 0) + return this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToChanges", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because changes were made to {1}", t2.label, r2.join(", "))); + const o2 = []; + for (const e3 of n2.editStacks) + e3.locked && o2.push(e3.resourceLabel); + return o2.length > 0 ? this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}", t2.label, o2.join(", "))) : n2.isValid() ? null : this._tryToSplitAndUndo(e2, t2, null, Ke.a({key: "cannotWorkspaceUndoDueToInMeantimeUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime", t2.label)); } _workspaceUndo(e2, t2) { const n2 = this._getAffectedEditStacks(t2), i2 = this._checkWorkspaceUndo(e2, t2, n2, false); return i2 ? i2.returnValue : this._confirmAndExecuteWorkspaceUndo(e2, t2, n2); } _confirmAndExecuteWorkspaceUndo(e2, t2, n2) { - return wo(this, void 0, void 0, function* () { + return vr(this, void 0, void 0, function* () { if (t2.canSplit()) { const i3 = yield this._dialogService.show(Ae.a.Info, Ke.a("confirmWorkspace", "Would you like to undo '{0}' across all files?", t2.label), [Ke.a({key: "ok", comment: ["{0} denotes a number that is > 1"]}, "Undo in {0} Files", n2.editStacks.length), Ke.a("nok", "Undo this File"), Ke.a("cancel", "Cancel")], {cancelId: 2}); if (i3.choice === 2) return; if (i3.choice === 1) return this._splitPastWorkspaceElement(t2, null), this.undo(e2); - const o3 = this._checkWorkspaceUndo(e2, t2, n2, false); - if (o3) - return o3.returnValue; + const r3 = this._checkWorkspaceUndo(e2, t2, n2, false); + if (r3) + return r3.returnValue; } let i2; try { @@ -33406,9 +33406,9 @@ ${Object(zn.b)(wi)} } catch (e3) { return this._onError(e3, t2); } - const o2 = this._checkWorkspaceUndo(e2, t2, n2, true); - if (o2) - return i2.dispose(), o2.returnValue; + const r2 = this._checkWorkspaceUndo(e2, t2, n2, true); + if (r2) + return i2.dispose(), r2.returnValue; for (const e3 of n2.editStacks) e3.moveBackward(t2); return this._safeInvokeWithLocks(t2, () => t2.actual.undo(), n2, i2); @@ -33417,7 +33417,7 @@ ${Object(zn.b)(wi)} _resourceUndo(e2, t2) { if (t2.isValid) { if (!e2.locked) - return this._invokeResourcePrepare(t2, (n2) => (e2.moveBackward(t2), this._safeInvokeWithLocks(t2, () => t2.actual.undo(), new Lo([e2]), n2))); + return this._invokeResourcePrepare(t2, (n2) => (e2.moveBackward(t2), this._safeInvokeWithLocks(t2, () => t2.actual.undo(), new Tr([e2]), n2))); { const e3 = Ke.a({key: "cannotResourceUndoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation."]}, "Could not undo '{0}' because there is already an undo or redo operation running.", t2.label); this._notificationService.info(e3); @@ -33446,41 +33446,41 @@ ${Object(zn.b)(wi)} } _tryToSplitAndRedo(e2, t2, n2, i2) { if (t2.canSplit()) - return this._splitFutureWorkspaceElement(t2, n2), this._notificationService.info(i2), new Oo(this.redo(e2)); + return this._splitFutureWorkspaceElement(t2, n2), this._notificationService.info(i2), new Ir(this.redo(e2)); for (const e3 of t2.strResources) this.removeElements(e3); - return this._notificationService.info(i2), new Oo(); + return this._notificationService.info(i2), new Ir(); } _checkWorkspaceRedo(e2, t2, n2, i2) { if (t2.removedResources) return this._tryToSplitAndRedo(e2, t2, t2.removedResources, Ke.a({key: "cannotWorkspaceRedo", comment: ["{0} is a label for an operation. {1} is another message."]}, "Could not redo '{0}' across all files. {1}", t2.label, t2.removedResources.createMessage())); if (i2 && t2.invalidatedResources) return this._tryToSplitAndRedo(e2, t2, t2.invalidatedResources, Ke.a({key: "cannotWorkspaceRedo", comment: ["{0} is a label for an operation. {1} is another message."]}, "Could not redo '{0}' across all files. {1}", t2.label, t2.invalidatedResources.createMessage())); - const o2 = []; - for (const e3 of n2.editStacks) - e3.getClosestFutureElement() !== t2 && o2.push(e3.resourceLabel); - if (o2.length > 0) - return this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToChanges", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because changes were made to {1}", t2.label, o2.join(", "))); const r2 = []; for (const e3 of n2.editStacks) - e3.locked && r2.push(e3.resourceLabel); - return r2.length > 0 ? this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}", t2.label, r2.join(", "))) : n2.isValid() ? null : this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToInMeantimeUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime", t2.label)); + e3.getClosestFutureElement() !== t2 && r2.push(e3.resourceLabel); + if (r2.length > 0) + return this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToChanges", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because changes were made to {1}", t2.label, r2.join(", "))); + const o2 = []; + for (const e3 of n2.editStacks) + e3.locked && o2.push(e3.resourceLabel); + return o2.length > 0 ? this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}", t2.label, o2.join(", "))) : n2.isValid() ? null : this._tryToSplitAndRedo(e2, t2, null, Ke.a({key: "cannotWorkspaceRedoDueToInMeantimeUndoRedo", comment: ["{0} is a label for an operation. {1} is a list of filenames."]}, "Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime", t2.label)); } _workspaceRedo(e2, t2) { const n2 = this._getAffectedEditStacks(t2), i2 = this._checkWorkspaceRedo(e2, t2, n2, false); return i2 ? i2.returnValue : this._executeWorkspaceRedo(e2, t2, n2); } _executeWorkspaceRedo(e2, t2, n2) { - return wo(this, void 0, void 0, function* () { + return vr(this, void 0, void 0, function* () { let i2; try { i2 = yield this._invokeWorkspacePrepare(t2); } catch (e3) { return this._onError(e3, t2); } - const o2 = this._checkWorkspaceRedo(e2, t2, n2, true); - if (o2) - return i2.dispose(), o2.returnValue; + const r2 = this._checkWorkspaceRedo(e2, t2, n2, true); + if (r2) + return i2.dispose(), r2.returnValue; for (const e3 of n2.editStacks) e3.moveForward(t2); return this._safeInvokeWithLocks(t2, () => t2.actual.redo(), n2, i2); @@ -33489,7 +33489,7 @@ ${Object(zn.b)(wi)} _resourceRedo(e2, t2) { if (t2.isValid) { if (!e2.locked) - return this._invokeResourcePrepare(t2, (n2) => (e2.moveForward(t2), this._safeInvokeWithLocks(t2, () => t2.actual.redo(), new Lo([e2]), n2))); + return this._invokeResourcePrepare(t2, (n2) => (e2.moveForward(t2), this._safeInvokeWithLocks(t2, () => t2.actual.redo(), new Tr([e2]), n2))); { const e3 = Ke.a({key: "cannotResourceRedoDueToInProgressUndoRedo", comment: ["{0} is a label for an operation."]}, "Could not redo '{0}' because there is already an undo or redo operation running.", t2.label); this._notificationService.info(e3); @@ -33510,65 +33510,65 @@ ${Object(zn.b)(wi)} } } }; - Io = _o([vo(0, Wi.a), vo(1, st.a)], Io); - class Oo { + Nr = br([_r(0, Wi.a), _r(1, st.a)], Nr); + class Ir { constructor(e2) { this.returnValue = e2; } } - Object(ho.b)(bo.a, Io); + Object(dr.b)(fr.a, Nr); n(266); - var Do = n(4), Ao = n(25), Ro = (n(186), n(141)), Mo = n(151); - const Po = new N.b(() => { + var Dr = n(4), Or = n(25), Ar = (n(186), n(141)), Rr = n(151); + const Mr = new N.b(() => { const e2 = new Intl.Collator(void 0, {numeric: true, sensitivity: "base"}); return {collator: e2, collatorIsNumeric: e2.resolvedOptions().numeric}; }); - function Fo(e2, t2, n2) { - const i2 = e2.toLowerCase(), o2 = t2.toLowerCase(), r2 = function(e3, t3, n3) { - const i3 = e3.toLowerCase(), o3 = t3.toLowerCase(), r3 = i3.startsWith(n3), s3 = o3.startsWith(n3); - if (r3 !== s3) - return r3 ? -1 : 1; - if (r3 && s3) { - if (i3.length < o3.length) + function Pr(e2, t2, n2) { + const i2 = e2.toLowerCase(), r2 = t2.toLowerCase(), o2 = function(e3, t3, n3) { + const i3 = e3.toLowerCase(), r3 = t3.toLowerCase(), o3 = i3.startsWith(n3), s3 = r3.startsWith(n3); + if (o3 !== s3) + return o3 ? -1 : 1; + if (o3 && s3) { + if (i3.length < r3.length) return -1; - if (i3.length > o3.length) + if (i3.length > r3.length) return 1; } return 0; }(e2, t2, n2); - if (r2) - return r2; + if (o2) + return o2; const s2 = i2.endsWith(n2); - if (s2 !== o2.endsWith(n2)) + if (s2 !== r2.endsWith(n2)) return s2 ? -1 : 1; const a2 = function(e3, t3, n3 = false) { - const i3 = e3 || "", o3 = t3 || "", r3 = Po.value.collator.compare(i3, o3); - return Po.value.collatorIsNumeric && r3 === 0 && i3 !== o3 ? i3 < o3 ? -1 : 1 : r3; - }(i2, o2); - return a2 !== 0 ? a2 : i2.localeCompare(o2); - } - var Wo = n(172), zo = n(156), Bo = n(98), jo = n(147); - const Vo = {}, Uo = new jo.a("quick-input-button-icon-"); - function Ho(e2) { + const i3 = e3 || "", r3 = t3 || "", o3 = Mr.value.collator.compare(i3, r3); + return Mr.value.collatorIsNumeric && o3 === 0 && i3 !== r3 ? i3 < r3 ? -1 : 1 : o3; + }(i2, r2); + return a2 !== 0 ? a2 : i2.localeCompare(r2); + } + var Fr = n(172), Wr = n(156), zr = n(98), Br = n(147); + const jr = {}, Vr = new Br.a("quick-input-button-icon-"); + function Ur(e2) { if (!e2) return; let t2; const n2 = e2.dark.toString(); - return Vo[n2] ? t2 = Vo[n2] : (t2 = Uo.nextId(), a.u("." + t2, "background-image: " + a.q(e2.light || e2.dark)), a.u(`.vs-dark .${t2}, .hc-black .${t2}`, "background-image: " + a.q(e2.dark)), Vo[n2] = t2), t2; + return jr[n2] ? t2 = jr[n2] : (t2 = Vr.nextId(), a.u("." + t2, "background-image: " + a.q(e2.light || e2.dark)), a.u(`.vs-dark .${t2}, .hc-black .${t2}`, "background-image: " + a.q(e2.dark)), jr[n2] = t2), t2; } n(271); - const qo = a.a; - class $o { + const Hr = a.a; + class qr { constructor(e2, t2, n2) { - this.os = t2, this.options = n2, this.domNode = a.p(e2, qo(".monaco-keybinding")), this.didEverRender = false, e2.appendChild(this.domNode); + this.os = t2, this.options = n2, this.domNode = a.p(e2, Hr(".monaco-keybinding")), this.didEverRender = false, e2.appendChild(this.domNode); } set(e2, t2) { - this.didEverRender && this.keybinding === e2 && $o.areSame(this.matches, t2) || (this.keybinding = e2, this.matches = t2, this.render()); + this.didEverRender && this.keybinding === e2 && qr.areSame(this.matches, t2) || (this.keybinding = e2, this.matches = t2, this.render()); } render() { if (a.s(this.domNode), this.keybinding) { let [e2, t2] = this.keybinding.getParts(); - e2 && this.renderPart(this.domNode, e2, this.matches ? this.matches.firstPart : null), t2 && (a.p(this.domNode, qo("span.monaco-keybinding-key-chord-separator", void 0, " ")), this.renderPart(this.domNode, t2, this.matches ? this.matches.chordPart : null)), this.domNode.title = this.keybinding.getAriaLabel() || ""; + e2 && this.renderPart(this.domNode, e2, this.matches ? this.matches.firstPart : null), t2 && (a.p(this.domNode, Hr("span.monaco-keybinding-key-chord-separator", void 0, " ")), this.renderPart(this.domNode, t2, this.matches ? this.matches.chordPart : null)), this.domNode.title = this.keybinding.getAriaLabel() || ""; } else this.options && this.options.renderUnboundKeybindings && this.renderUnbound(this.domNode); this.didEverRender = true; @@ -33576,32 +33576,32 @@ ${Object(zn.b)(wi)} renderPart(e2, t2, n2) { const i2 = tt.modifierLabels[this.os]; t2.ctrlKey && this.renderKey(e2, i2.ctrlKey, Boolean(n2 == null ? void 0 : n2.ctrlKey), i2.separator), t2.shiftKey && this.renderKey(e2, i2.shiftKey, Boolean(n2 == null ? void 0 : n2.shiftKey), i2.separator), t2.altKey && this.renderKey(e2, i2.altKey, Boolean(n2 == null ? void 0 : n2.altKey), i2.separator), t2.metaKey && this.renderKey(e2, i2.metaKey, Boolean(n2 == null ? void 0 : n2.metaKey), i2.separator); - const o2 = t2.keyLabel; - o2 && this.renderKey(e2, o2, Boolean(n2 == null ? void 0 : n2.keyCode), ""); + const r2 = t2.keyLabel; + r2 && this.renderKey(e2, r2, Boolean(n2 == null ? void 0 : n2.keyCode), ""); } renderKey(e2, t2, n2, i2) { - a.p(e2, qo("span.monaco-keybinding-key" + (n2 ? ".highlight" : ""), void 0, t2)), i2 && a.p(e2, qo("span.monaco-keybinding-key-separator", void 0, i2)); + a.p(e2, Hr("span.monaco-keybinding-key" + (n2 ? ".highlight" : ""), void 0, t2)), i2 && a.p(e2, Hr("span.monaco-keybinding-key-separator", void 0, i2)); } renderUnbound(e2) { - a.p(e2, qo("span.monaco-keybinding-key", void 0, Object(Ke.a)("unbound", "Unbound"))); + a.p(e2, Hr("span.monaco-keybinding-key", void 0, Object(Ke.a)("unbound", "Unbound"))); } static areSame(e2, t2) { return e2 === t2 || !e2 && !t2 || !!e2 && !!t2 && Object(je.e)(e2.firstPart, t2.firstPart) && Object(je.e)(e2.chordPart, t2.chordPart); } } - var Ko = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var $r = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }; - const Go = a.a; - class Yo { + const Kr = a.a; + class Gr { constructor(e2) { - this.hidden = false, this._onChecked = new Oe.a(), this.onChecked = this._onChecked.event, Object(je.a)(this, e2); + this.hidden = false, this._onChecked = new De.a(), this.onChecked = this._onChecked.event, Object(je.a)(this, e2); } get checked() { return !!this._checked; @@ -33613,36 +33613,36 @@ ${Object(zn.b)(wi)} this._onChecked.dispose(); } } - class Zo { + class Yr { get templateId() { - return Zo.ID; + return Yr.ID; } renderTemplate(e2) { const t2 = Object.create(null); - t2.toDisposeElement = [], t2.toDisposeTemplate = [], t2.entry = a.p(e2, Go(".quick-input-list-entry")); - const n2 = a.p(t2.entry, Go("label.quick-input-list-label")); + t2.toDisposeElement = [], t2.toDisposeTemplate = [], t2.entry = a.p(e2, Kr(".quick-input-list-entry")); + const n2 = a.p(t2.entry, Kr("label.quick-input-list-label")); t2.toDisposeTemplate.push(a.n(n2, a.c.CLICK, (e3) => { t2.checkbox.offsetParent || e3.preventDefault(); - })), t2.checkbox = a.p(n2, Go("input.quick-input-list-checkbox")), t2.checkbox.type = "checkbox", t2.toDisposeTemplate.push(a.n(t2.checkbox, a.c.CHANGE, (e3) => { + })), t2.checkbox = a.p(n2, Kr("input.quick-input-list-checkbox")), t2.checkbox.type = "checkbox", t2.toDisposeTemplate.push(a.n(t2.checkbox, a.c.CHANGE, (e3) => { t2.element.checked = t2.checkbox.checked; })); - const i2 = a.p(n2, Go(".quick-input-list-rows")), o2 = a.p(i2, Go(".quick-input-list-row")), r2 = a.p(i2, Go(".quick-input-list-row")); - t2.label = new Wo.a(o2, {supportHighlights: true, supportDescriptionHighlights: true, supportCodicons: true}); - const s2 = a.p(o2, Go(".quick-input-list-entry-keybinding")); - t2.keybinding = new $o(s2, D.a); - const l2 = a.p(r2, Go(".quick-input-list-label-meta")); - return t2.detail = new zo.a(l2, true), t2.separator = a.p(t2.entry, Go(".quick-input-list-separator")), t2.actionBar = new si.a(t2.entry), t2.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"), t2.toDisposeTemplate.push(t2.actionBar), t2; + const i2 = a.p(n2, Kr(".quick-input-list-rows")), r2 = a.p(i2, Kr(".quick-input-list-row")), o2 = a.p(i2, Kr(".quick-input-list-row")); + t2.label = new Fr.a(r2, {supportHighlights: true, supportDescriptionHighlights: true, supportCodicons: true}); + const s2 = a.p(r2, Kr(".quick-input-list-entry-keybinding")); + t2.keybinding = new qr(s2, O.a); + const l2 = a.p(o2, Kr(".quick-input-list-label-meta")); + return t2.detail = new Wr.a(l2, true), t2.separator = a.p(t2.entry, Kr(".quick-input-list-separator")), t2.actionBar = new si.a(t2.entry), t2.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"), t2.toDisposeTemplate.push(t2.actionBar), t2; } renderElement(e2, t2, n2) { n2.toDisposeElement = Object(I.f)(n2.toDisposeElement), n2.element = e2, n2.checkbox.checked = e2.checked, n2.toDisposeElement.push(e2.onChecked((e3) => n2.checkbox.checked = e3)); - const {labelHighlights: i2, descriptionHighlights: o2, detailHighlights: r2} = e2, s2 = Object.create(null); - s2.matches = i2 || [], s2.descriptionTitle = e2.saneDescription, s2.descriptionMatches = o2 || [], s2.extraClasses = e2.item.iconClasses, s2.italic = e2.item.italic, s2.strikethrough = e2.item.strikethrough, n2.label.setLabel(e2.saneLabel, e2.saneDescription, s2), n2.keybinding.set(e2.item.keybinding), n2.detail.set(e2.saneDetail, r2), e2.separator && e2.separator.label ? (n2.separator.textContent = e2.separator.label, n2.separator.style.display = "") : n2.separator.style.display = "none", e2.separator ? a.e(n2.entry, "quick-input-list-separator-border") : a.Q(n2.entry, "quick-input-list-separator-border"), n2.actionBar.clear(); + const {labelHighlights: i2, descriptionHighlights: r2, detailHighlights: o2} = e2, s2 = Object.create(null); + s2.matches = i2 || [], s2.descriptionTitle = e2.saneDescription, s2.descriptionMatches = r2 || [], s2.extraClasses = e2.item.iconClasses, s2.italic = e2.item.italic, s2.strikethrough = e2.item.strikethrough, n2.label.setLabel(e2.saneLabel, e2.saneDescription, s2), n2.keybinding.set(e2.item.keybinding), n2.detail.set(e2.saneDetail, o2), e2.separator && e2.separator.label ? (n2.separator.textContent = e2.separator.label, n2.separator.style.display = "") : n2.separator.style.display = "none", e2.separator ? a.e(n2.entry, "quick-input-list-separator-border") : a.Q(n2.entry, "quick-input-list-separator-border"), n2.actionBar.clear(); const l2 = e2.item.buttons; l2 && l2.length ? (n2.actionBar.push(l2.map((t3, n3) => { - let i3 = t3.iconClass || (t3.iconPath ? Ho(t3.iconPath) : void 0); + let i3 = t3.iconClass || (t3.iconPath ? Ur(t3.iconPath) : void 0); t3.alwaysVisible && (i3 = i3 ? i3 + " always-visible" : "always-visible"); - const o3 = new ri.a("id-" + n3, "", i3, true, () => (e2.fireButtonTriggered({button: t3, item: e2.item}), Promise.resolve())); - return o3.tooltip = t3.tooltip || "", o3; + const r3 = new oi.a("id-" + n3, "", i3, true, () => (e2.fireButtonTriggered({button: t3, item: e2.item}), Promise.resolve())); + return r3.tooltip = t3.tooltip || "", r3; }), {icon: true, label: false}), a.e(n2.entry, "has-actions")) : a.Q(n2.entry, "has-actions"); } disposeElement(e2, t2, n2) { @@ -33652,31 +33652,31 @@ ${Object(zn.b)(wi)} e2.toDisposeElement = Object(I.f)(e2.toDisposeElement), e2.toDisposeTemplate = Object(I.f)(e2.toDisposeTemplate); } } - Zo.ID = "listelement"; - class Xo { + Yr.ID = "listelement"; + class Zr { getHeight(e2) { return e2.saneDetail ? 44 : 22; } getTemplateId(e2) { - return Zo.ID; + return Yr.ID; } } - var Qo; + var Xr; !function(e2) { e2[e2.First = 1] = "First", e2[e2.Second = 2] = "Second", e2[e2.Last = 3] = "Last", e2[e2.Next = 4] = "Next", e2[e2.Previous = 5] = "Previous", e2[e2.NextPage = 6] = "NextPage", e2[e2.PreviousPage = 7] = "PreviousPage"; - }(Qo || (Qo = {})); - class Jo { + }(Xr || (Xr = {})); + class Qr { constructor(e2, t2, n2) { - this.parent = e2, this.inputElements = [], this.elements = [], this.elementsToIndexes = new Map(), this.matchOnDescription = false, this.matchOnDetail = false, this.matchOnLabel = true, this.sortByLabel = true, this._onChangedAllVisibleChecked = new Oe.a(), this.onChangedAllVisibleChecked = this._onChangedAllVisibleChecked.event, this._onChangedCheckedCount = new Oe.a(), this.onChangedCheckedCount = this._onChangedCheckedCount.event, this._onChangedVisibleCount = new Oe.a(), this.onChangedVisibleCount = this._onChangedVisibleCount.event, this._onChangedCheckedElements = new Oe.a(), this.onChangedCheckedElements = this._onChangedCheckedElements.event, this._onButtonTriggered = new Oe.a(), this.onButtonTriggered = this._onButtonTriggered.event, this._onKeyDown = new Oe.a(), this.onKeyDown = this._onKeyDown.event, this._onLeave = new Oe.a(), this.onLeave = this._onLeave.event, this._fireCheckedEvents = true, this.elementDisposables = [], this.disposables = [], this.id = t2, this.container = a.p(this.parent, Go(".quick-input-list")); - const i2 = new Xo(), o2 = new er(); - this.list = n2.createList("QuickInput", this.container, i2, [new Zo()], {identityProvider: {getId: (e3) => e3.saneLabel}, setRowLineHeight: false, multipleSelectionSupport: false, horizontalScrolling: false, accessibilityProvider: o2}), this.list.getHTMLElement().id = t2, this.disposables.push(this.list), this.disposables.push(this.list.onKeyDown((e3) => { + this.parent = e2, this.inputElements = [], this.elements = [], this.elementsToIndexes = new Map(), this.matchOnDescription = false, this.matchOnDetail = false, this.matchOnLabel = true, this.sortByLabel = true, this._onChangedAllVisibleChecked = new De.a(), this.onChangedAllVisibleChecked = this._onChangedAllVisibleChecked.event, this._onChangedCheckedCount = new De.a(), this.onChangedCheckedCount = this._onChangedCheckedCount.event, this._onChangedVisibleCount = new De.a(), this.onChangedVisibleCount = this._onChangedVisibleCount.event, this._onChangedCheckedElements = new De.a(), this.onChangedCheckedElements = this._onChangedCheckedElements.event, this._onButtonTriggered = new De.a(), this.onButtonTriggered = this._onButtonTriggered.event, this._onKeyDown = new De.a(), this.onKeyDown = this._onKeyDown.event, this._onLeave = new De.a(), this.onLeave = this._onLeave.event, this._fireCheckedEvents = true, this.elementDisposables = [], this.disposables = [], this.id = t2, this.container = a.p(this.parent, Kr(".quick-input-list")); + const i2 = new Zr(), r2 = new Jr(); + this.list = n2.createList("QuickInput", this.container, i2, [new Yr()], {identityProvider: {getId: (e3) => e3.saneLabel}, setRowLineHeight: false, multipleSelectionSupport: false, horizontalScrolling: false, accessibilityProvider: r2}), this.list.getHTMLElement().id = t2, this.disposables.push(this.list), this.disposables.push(this.list.onKeyDown((e3) => { const t3 = new Ie.a(e3); switch (t3.keyCode) { case 10: this.toggleCheckbox(); break; case 31: - (D.f ? e3.metaKey : e3.ctrlKey) && this.list.setFocus(Object(j.s)(this.list.length)); + (O.f ? e3.metaKey : e3.ctrlKey) && this.list.setFocus(Object(j.s)(this.list.length)); break; case 16: const t4 = this.list.getFocus(); @@ -33698,10 +33698,10 @@ ${Object(zn.b)(wi)} })), this.disposables.push(this._onChangedAllVisibleChecked, this._onChangedCheckedCount, this._onChangedVisibleCount, this._onChangedCheckedElements, this._onButtonTriggered, this._onLeave, this._onKeyDown); } get onDidChangeFocus() { - return Oe.b.map(this.list.onDidChangeFocus, (e2) => e2.elements.map((e3) => e3.item)); + return De.b.map(this.list.onDidChangeFocus, (e2) => e2.elements.map((e3) => e3.item)); } get onDidChangeSelection() { - return Oe.b.map(this.list.onDidChangeSelection, (e2) => ({items: e2.elements.map((e3) => e3.item), event: e2.browserEvent})); + return De.b.map(this.list.onDidChangeSelection, (e2) => ({items: e2.elements.map((e3) => e3.item), event: e2.browserEvent})); } getAllVisibleChecked() { return this.allVisibleChecked(this.elements, false); @@ -33743,11 +33743,11 @@ ${Object(zn.b)(wi)} setElements(e2) { this.elementDisposables = Object(I.f)(this.elementDisposables); const t2 = (e3) => this.fireButtonTriggered(e3); - this.inputElements = e2, this.elements = e2.reduce((n2, i2, o2) => { - var r2, s2, a2; + this.inputElements = e2, this.elements = e2.reduce((n2, i2, r2) => { + var o2, s2, a2; if (i2.type !== "separator") { - const l2 = o2 && e2[o2 - 1], c2 = i2.label && i2.label.replace(/\r?\n/g, " "), d2 = i2.description && i2.description.replace(/\r?\n/g, " "), h2 = i2.detail && i2.detail.replace(/\r?\n/g, " "), u2 = i2.ariaLabel || [c2, d2, h2].map((e3) => e3 && Object(Mo.c)(e3).text).filter((e3) => !!e3).join(", "); - n2.push(new Yo({index: o2, item: i2, saneLabel: c2, saneAriaLabel: u2, saneDescription: d2, saneDetail: h2, labelHighlights: (r2 = i2.highlights) === null || r2 === void 0 ? void 0 : r2.label, descriptionHighlights: (s2 = i2.highlights) === null || s2 === void 0 ? void 0 : s2.description, detailHighlights: (a2 = i2.highlights) === null || a2 === void 0 ? void 0 : a2.detail, checked: false, separator: l2 && l2.type === "separator" ? l2 : void 0, fireButtonTriggered: t2})); + const l2 = r2 && e2[r2 - 1], c2 = i2.label && i2.label.replace(/\r?\n/g, " "), d2 = i2.description && i2.description.replace(/\r?\n/g, " "), h2 = i2.detail && i2.detail.replace(/\r?\n/g, " "), u2 = i2.ariaLabel || [c2, d2, h2].map((e3) => e3 && Object(Rr.c)(e3).text).filter((e3) => !!e3).join(", "); + n2.push(new Gr({index: r2, item: i2, saneLabel: c2, saneAriaLabel: u2, saneDescription: d2, saneDetail: h2, labelHighlights: (o2 = i2.highlights) === null || o2 === void 0 ? void 0 : o2.label, descriptionHighlights: (s2 = i2.highlights) === null || s2 === void 0 ? void 0 : s2.description, detailHighlights: (a2 = i2.highlights) === null || a2 === void 0 ? void 0 : a2.detail, checked: false, separator: l2 && l2.type === "separator" ? l2 : void 0, fireButtonTriggered: t2})); } return n2; }, []), this.elementDisposables.push(...this.elements), this.elementDisposables.push(...this.elements.map((e3) => e3.onChecked(() => this.fireCheckedEvents()))), this.elementsToIndexes = this.elements.reduce((e3, t3, n2) => (e3.set(t3.item, n2), e3), new Map()), this.list.splice(0, this.list.length), this.list.splice(0, this.list.length, this.elements), this._onChangedVisibleCount.fire(this.elements.length); @@ -33788,26 +33788,26 @@ ${Object(zn.b)(wi)} focus(e2) { if (!this.list.length) return; - switch (e2 === Qo.Next && this.list.getFocus()[0] === this.list.length - 1 && (e2 = Qo.First), e2 === Qo.Previous && this.list.getFocus()[0] === 0 && (e2 = Qo.Last), e2 === Qo.Second && this.list.length < 2 && (e2 = Qo.First), e2) { - case Qo.First: + switch (e2 === Xr.Next && this.list.getFocus()[0] === this.list.length - 1 && (e2 = Xr.First), e2 === Xr.Previous && this.list.getFocus()[0] === 0 && (e2 = Xr.Last), e2 === Xr.Second && this.list.length < 2 && (e2 = Xr.First), e2) { + case Xr.First: this.list.focusFirst(); break; - case Qo.Second: + case Xr.Second: this.list.focusNth(1); break; - case Qo.Last: + case Xr.Last: this.list.focusLast(); break; - case Qo.Next: + case Xr.Next: this.list.focusNext(); break; - case Qo.Previous: + case Xr.Previous: this.list.focusPrevious(); break; - case Qo.NextPage: + case Xr.NextPage: this.list.focusNextPage(); break; - case Qo.PreviousPage: + case Xr.PreviousPage: this.list.focusPreviousPage(); } const t2 = this.list.getFocus()[0]; @@ -33826,8 +33826,8 @@ ${Object(zn.b)(wi)} if (!(this.sortByLabel || this.matchOnLabel || this.matchOnDescription || this.matchOnDetail)) return this.list.layout(), false; (e2 = e2.trim()) && (this.matchOnLabel || this.matchOnDescription || this.matchOnDetail) ? this.elements.forEach((t3) => { - const n2 = this.matchOnLabel ? Object(ne.n)(Object(Mo.b)(e2, Object(Mo.c)(t3.saneLabel))) : void 0, i2 = this.matchOnDescription ? Object(ne.n)(Object(Mo.b)(e2, Object(Mo.c)(t3.saneDescription || ""))) : void 0, o2 = this.matchOnDetail ? Object(ne.n)(Object(Mo.b)(e2, Object(Mo.c)(t3.saneDetail || ""))) : void 0; - n2 || i2 || o2 ? (t3.labelHighlights = n2, t3.descriptionHighlights = i2, t3.detailHighlights = o2, t3.hidden = false) : (t3.labelHighlights = void 0, t3.descriptionHighlights = void 0, t3.detailHighlights = void 0, t3.hidden = !t3.item.alwaysShow), t3.separator = void 0; + const n2 = this.matchOnLabel ? Object(ne.n)(Object(Rr.b)(e2, Object(Rr.c)(t3.saneLabel))) : void 0, i2 = this.matchOnDescription ? Object(ne.n)(Object(Rr.b)(e2, Object(Rr.c)(t3.saneDescription || ""))) : void 0, r2 = this.matchOnDetail ? Object(ne.n)(Object(Rr.b)(e2, Object(Rr.c)(t3.saneDetail || ""))) : void 0; + n2 || i2 || r2 ? (t3.labelHighlights = n2, t3.descriptionHighlights = i2, t3.detailHighlights = r2, t3.hidden = false) : (t3.labelHighlights = void 0, t3.descriptionHighlights = void 0, t3.detailHighlights = void 0, t3.hidden = !t3.item.alwaysShow), t3.separator = void 0; }) : this.elements.forEach((e3) => { e3.labelHighlights = void 0, e3.descriptionHighlights = void 0, e3.detailHighlights = void 0, e3.hidden = false; const t3 = e3.index && this.inputElements[e3.index - 1]; @@ -33837,14 +33837,14 @@ ${Object(zn.b)(wi)} if (this.sortByLabel && e2) { const n2 = e2.toLowerCase(); t2.sort((e3, t3) => function(e4, t4, n3) { - const i2 = e4.labelHighlights || [], o2 = t4.labelHighlights || []; - if (i2.length && !o2.length) + const i2 = e4.labelHighlights || [], r2 = t4.labelHighlights || []; + if (i2.length && !r2.length) return -1; - if (!i2.length && o2.length) + if (!i2.length && r2.length) return 1; - if (i2.length === 0 && o2.length === 0) + if (i2.length === 0 && r2.length === 0) return 0; - return Fo(e4.saneLabel, t4.saneLabel, n3); + return Pr(e4.saneLabel, t4.saneLabel, n3); }(e3, t3, n2)); } return this.elementsToIndexes = t2.reduce((e3, t3, n2) => (e3.set(t3.item, n2), e3), new Map()), this.list.splice(0, this.list.length, t2), this.list.setFocus([]), this.list.layout(), this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()), this._onChangedVisibleCount.fire(t2.length), true; @@ -33878,8 +33878,8 @@ ${Object(zn.b)(wi)} this.list.style(e2); } } - Ko([Bo.a], Jo.prototype, "onDidChangeFocus", null), Ko([Bo.a], Jo.prototype, "onDidChangeSelection", null); - class er { + $r([zr.a], Qr.prototype, "onDidChangeFocus", null), $r([zr.a], Qr.prototype, "onDidChangeSelection", null); + class Jr { getWidgetAriaLabel() { return Object(Ke.a)("quickInput", "Quick Input"); } @@ -33893,15 +33893,15 @@ ${Object(zn.b)(wi)} return "option"; } } - var tr = n(173); - const nr = a.a; - class ir extends I.a { + var eo = n(173); + const to = a.a; + class no extends I.a { constructor(e2) { super(), this.parent = e2, this.onKeyDown = (e3) => a.i(this.inputBox.inputElement, a.c.KEY_DOWN, (t2) => { e3(new Ie.a(t2)); }), this.onMouseDown = (e3) => a.i(this.inputBox.inputElement, a.c.MOUSE_DOWN, (t2) => { e3(new fi.a(t2)); - }), this.onDidChange = (e3) => this.inputBox.onDidChange(e3), this.container = a.p(this.parent, nr(".quick-input-box")), this.inputBox = this._register(new tr.b(this.container, void 0)); + }), this.onDidChange = (e3) => this.inputBox.onDidChange(e3), this.container = a.p(this.parent, to(".quick-input-box")), this.inputBox = this._register(new eo.b(this.container, void 0)); } get value() { return this.inputBox.value; @@ -33955,12 +33955,12 @@ ${Object(zn.b)(wi)} this.inputBox.style(e2); } } - var or = n(185); + var io = n(185); n(277); - const rr = {progressBarBackground: En.a.fromHex("#0E70C0")}; - class sr extends I.a { + const ro = {progressBarBackground: En.a.fromHex("#0E70C0")}; + class oo extends I.a { constructor(e2, t2) { - super(), this.options = t2 || Object.create(null), Object(je.g)(this.options, rr, false), this.workedVal = 0, this.progressBarBackground = this.options.progressBarBackground, this._register(this.showDelayedScheduler = new N.d(() => Object(a.Z)(this.element), 0)), this.create(e2); + super(), this.options = t2 || Object.create(null), Object(je.g)(this.options, ro, false), this.workedVal = 0, this.progressBarBackground = this.options.progressBarBackground, this._register(this.showDelayedScheduler = new N.d(() => Object(a.Z)(this.element), 0)), this.create(e2); } create(e2) { this.element = document.createElement("div"), Object(a.e)(this.element, "monaco-progress-container"), e2.appendChild(this.element), this.bit = document.createElement("div"), Object(a.e)(this.bit, "progress-bit"), this.element.appendChild(this.bit), this.applyStyles(); @@ -33991,11 +33991,11 @@ ${Object(zn.b)(wi)} } } n(279); - var ar = n(61); - const lr = {buttonBackground: En.a.fromHex("#0E639C"), buttonHoverBackground: En.a.fromHex("#006BB3"), buttonForeground: En.a.white}; - class cr extends I.a { + var so = n(61); + const ao = {buttonBackground: En.a.fromHex("#0E639C"), buttonHoverBackground: En.a.fromHex("#006BB3"), buttonForeground: En.a.white}; + class lo extends I.a { constructor(e2, t2) { - super(), this._onDidClick = this._register(new Oe.a()), this.options = t2 || Object.create(null), Object(je.g)(this.options, lr, false), this.buttonForeground = this.options.buttonForeground, this.buttonBackground = this.options.buttonBackground, this.buttonHoverBackground = this.options.buttonHoverBackground, this.buttonSecondaryForeground = this.options.buttonSecondaryForeground, this.buttonSecondaryBackground = this.options.buttonSecondaryBackground, this.buttonSecondaryHoverBackground = this.options.buttonSecondaryHoverBackground, this.buttonBorder = this.options.buttonBorder, this._element = document.createElement("a"), a.e(this._element, "monaco-button"), this._element.tabIndex = 0, this._element.setAttribute("role", "button"), e2.appendChild(this._element), this._register(ar.b.addTarget(this._element)), [a.c.CLICK, ar.a.Tap].forEach((e3) => { + super(), this._onDidClick = this._register(new De.a()), this.options = t2 || Object.create(null), Object(je.g)(this.options, ao, false), this.buttonForeground = this.options.buttonForeground, this.buttonBackground = this.options.buttonBackground, this.buttonHoverBackground = this.options.buttonHoverBackground, this.buttonSecondaryForeground = this.options.buttonSecondaryForeground, this.buttonSecondaryBackground = this.options.buttonSecondaryBackground, this.buttonSecondaryHoverBackground = this.options.buttonSecondaryHoverBackground, this.buttonBorder = this.options.buttonBorder, this._element = document.createElement("a"), a.e(this._element, "monaco-button"), this._element.tabIndex = 0, this._element.setAttribute("role", "button"), e2.appendChild(this._element), this._register(so.b.addTarget(this._element)), [a.c.CLICK, so.a.Tap].forEach((e3) => { this._register(a.i(this._element, e3, (e4) => { this.enabled ? this._onDidClick.fire(e4) : a.b.stop(e4); })); @@ -34033,11 +34033,11 @@ ${Object(zn.b)(wi)} set label(e2) { a.I(this._element, "monaco-text-button") || a.e(this._element, "monaco-text-button"), this.options.supportCodicons ? a.U(this._element, ...function(e3) { const t2 = new Array(); - let n2, i2 = 0, o2 = 0; + let n2, i2 = 0, r2 = 0; for (; (n2 = pi.g.exec(e3)) !== null; ) { - o2 = n2.index || 0, t2.push(e3.substring(i2, o2)), i2 = (n2.index || 0) + n2[0].length; - const [, r2, s2, l2, c2] = n2; - t2.push(r2 ? `$(${s2})` : a.a(`span.codicon.codicon-${l2}${c2 ? ".codicon-animation-" + c2 : ""}`)); + r2 = n2.index || 0, t2.push(e3.substring(i2, r2)), i2 = (n2.index || 0) + n2[0].length; + const [, o2, s2, l2, c2] = n2; + t2.push(o2 ? `$(${s2})` : a.a(`span.codicon.codicon-${l2}${c2 ? ".codicon-animation-" + c2 : ""}`)); } return i2 < e3.length && t2.push(e3.substring(i2)), t2; }(e2)) : this._element.textContent = e2, typeof this.options.title == "string" ? this._element.title = this.options.title : this.options.title && (this._element.title = e2); @@ -34049,35 +34049,35 @@ ${Object(zn.b)(wi)} return !a.I(this._element, "disabled"); } } - var dr = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var co = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - const hr = a.a, ur = {iconClass: Object(pi.e)("quick-input-back", pi.a.arrowLeft).classNames, tooltip: Object(Ke.a)("quickInput.back", "Back"), handle: -1}; - class pr extends I.a { + const ho = a.a, uo = {iconClass: Object(pi.e)("quick-input-back", pi.a.arrowLeft).classNames, tooltip: Object(Ke.a)("quickInput.back", "Back"), handle: -1}; + class po extends I.a { constructor(e2) { - super(), this.ui = e2, this.visible = false, this._enabled = true, this._busy = false, this._ignoreFocusOut = false, this._buttons = [], this.buttonsUpdated = false, this.onDidTriggerButtonEmitter = this._register(new Oe.a()), this.onDidHideEmitter = this._register(new Oe.a()), this.onDisposeEmitter = this._register(new Oe.a()), this.visibleDisposables = this._register(new I.b()), this.onDidHide = this.onDidHideEmitter.event; + super(), this.ui = e2, this.visible = false, this._enabled = true, this._busy = false, this._ignoreFocusOut = false, this._buttons = [], this.buttonsUpdated = false, this.onDidTriggerButtonEmitter = this._register(new De.a()), this.onDidHideEmitter = this._register(new De.a()), this.onDisposeEmitter = this._register(new De.a()), this.visibleDisposables = this._register(new I.b()), this.onDidHide = this.onDidHideEmitter.event; } get title() { return this._title; @@ -34154,16 +34154,16 @@ ${Object(zn.b)(wi)} this.visible && this.ui.progressBar.infinite(); }, 800)), !this.busy && this.busyDelay && (this.ui.progressBar.stop(), this.busyDelay.cancel(), this.busyDelay = void 0), this.buttonsUpdated) { this.buttonsUpdated = false, this.ui.leftActionBar.clear(); - const e3 = this.buttons.filter((e4) => e4 === ur); + const e3 = this.buttons.filter((e4) => e4 === uo); this.ui.leftActionBar.push(e3.map((e4, t4) => { - const n2 = new ri.a("id-" + t4, "", e4.iconClass || Ho(e4.iconPath), true, () => dr(this, void 0, void 0, function* () { + const n2 = new oi.a("id-" + t4, "", e4.iconClass || Ur(e4.iconPath), true, () => co(this, void 0, void 0, function* () { this.onDidTriggerButtonEmitter.fire(e4); })); return n2.tooltip = e4.tooltip || "", n2; }), {icon: true, label: false}), this.ui.rightActionBar.clear(); - const t3 = this.buttons.filter((e4) => e4 !== ur); + const t3 = this.buttons.filter((e4) => e4 !== uo); this.ui.rightActionBar.push(t3.map((e4, t4) => { - const n2 = new ri.a("id-" + t4, "", e4.iconClass || Ho(e4.iconPath), true, () => dr(this, void 0, void 0, function* () { + const n2 = new oi.a("id-" + t4, "", e4.iconClass || Ur(e4.iconPath), true, () => co(this, void 0, void 0, function* () { this.onDidTriggerButtonEmitter.fire(e4); })); return n2.tooltip = e4.tooltip || "", n2; @@ -34191,9 +34191,9 @@ ${Object(zn.b)(wi)} this.hide(), this.onDisposeEmitter.fire(), super.dispose(); } } - class mr extends pr { + class mo extends po { constructor() { - super(...arguments), this._value = "", this.onDidChangeValueEmitter = this._register(new Oe.a()), this.onDidAcceptEmitter = this._register(new Oe.a()), this.onDidCustomEmitter = this._register(new Oe.a()), this._items = [], this.itemsUpdated = false, this._canSelectMany = false, this._canAcceptInBackground = false, this._matchOnDescription = false, this._matchOnDetail = false, this._matchOnLabel = true, this._sortByLabel = true, this._autoFocusOnList = true, this._itemActivation = this.ui.isScreenReaderOptimized() ? Ro.a.NONE : Ro.a.FIRST, this._activeItems = [], this.activeItemsUpdated = false, this.activeItemsToConfirm = [], this.onDidChangeActiveEmitter = this._register(new Oe.a()), this._selectedItems = [], this.selectedItemsUpdated = false, this.selectedItemsToConfirm = [], this.onDidChangeSelectionEmitter = this._register(new Oe.a()), this.onDidTriggerItemButtonEmitter = this._register(new Oe.a()), this.valueSelectionUpdated = true, this._ok = "default", this._customButton = false, this.filterValue = (e2) => e2, this.onDidChangeValue = this.onDidChangeValueEmitter.event, this.onDidAccept = this.onDidAcceptEmitter.event, this.onDidChangeActive = this.onDidChangeActiveEmitter.event, this.onDidChangeSelection = this.onDidChangeSelectionEmitter.event, this.onDidTriggerItemButton = this.onDidTriggerItemButtonEmitter.event; + super(...arguments), this._value = "", this.onDidChangeValueEmitter = this._register(new De.a()), this.onDidAcceptEmitter = this._register(new De.a()), this.onDidCustomEmitter = this._register(new De.a()), this._items = [], this.itemsUpdated = false, this._canSelectMany = false, this._canAcceptInBackground = false, this._matchOnDescription = false, this._matchOnDetail = false, this._matchOnLabel = true, this._sortByLabel = true, this._autoFocusOnList = true, this._itemActivation = this.ui.isScreenReaderOptimized() ? Ar.a.NONE : Ar.a.FIRST, this._activeItems = [], this.activeItemsUpdated = false, this.activeItemsToConfirm = [], this.onDidChangeActiveEmitter = this._register(new De.a()), this._selectedItems = [], this.selectedItemsUpdated = false, this.selectedItemsToConfirm = [], this.onDidChangeSelectionEmitter = this._register(new De.a()), this.onDidTriggerItemButtonEmitter = this._register(new De.a()), this.valueSelectionUpdated = true, this._ok = "default", this._customButton = false, this.filterValue = (e2) => e2, this.onDidChangeValue = this.onDidChangeValueEmitter.event, this.onDidAccept = this.onDidAcceptEmitter.event, this.onDidChangeActive = this.onDidChangeActiveEmitter.event, this.onDidChangeSelection = this.onDidChangeSelectionEmitter.event, this.onDidTriggerItemButton = this.onDidTriggerItemButtonEmitter.event; } get quickNavigate() { return this._quickNavigate; @@ -34286,7 +34286,7 @@ ${Object(zn.b)(wi)} this._selectedItems = e2, this.selectedItemsUpdated = true, this.update(); } get keyMods() { - return this._quickNavigate ? Ro.b : this.ui.keyMods; + return this._quickNavigate ? Ar.b : this.ui.keyMods; } set valueSelection(e2) { this._valueSelection = e2, this.valueSelectionUpdated = true, this.update(); @@ -34328,7 +34328,7 @@ ${Object(zn.b)(wi)} this._hideInput = e2, this.update(); } trySelectFirst() { - this.autoFocusOnList && (this.canSelectMany || this.ui.list.focus(Qo.First)); + this.autoFocusOnList && (this.canSelectMany || this.ui.list.focus(Xr.First)); } show() { this.visible || (this.visibleDisposables.add(this.ui.inputBox.onDidChange((e2) => { @@ -34341,16 +34341,16 @@ ${Object(zn.b)(wi)} })), this.visibleDisposables.add((this._hideInput ? this.ui.list : this.ui.inputBox).onKeyDown((e2) => { switch (e2.keyCode) { case 18: - this.ui.list.focus(Qo.Next), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); + this.ui.list.focus(Xr.Next), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); break; case 16: - this.ui.list.getFocusedElements().length ? this.ui.list.focus(Qo.Previous) : this.ui.list.focus(Qo.Last), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); + this.ui.list.getFocusedElements().length ? this.ui.list.focus(Xr.Previous) : this.ui.list.focus(Xr.Last), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); break; case 12: - this.ui.list.focus(Qo.NextPage), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); + this.ui.list.focus(Xr.NextPage), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); break; case 11: - this.ui.list.focus(Qo.PreviousPage), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); + this.ui.list.focus(Xr.PreviousPage), this.canSelectMany && this.ui.list.domFocus(), a.b.stop(e2, true); break; case 17: if (!this._canAcceptInBackground) @@ -34360,10 +34360,10 @@ ${Object(zn.b)(wi)} this.activeItems[0] && (this._selectedItems = [this.activeItems[0]], this.onDidChangeSelectionEmitter.fire(this.selectedItems), this.onDidAcceptEmitter.fire({inBackground: true})); break; case 14: - !e2.ctrlKey && !e2.metaKey || e2.shiftKey || e2.altKey || (this.ui.list.focus(Qo.First), a.b.stop(e2, true)); + !e2.ctrlKey && !e2.metaKey || e2.shiftKey || e2.altKey || (this.ui.list.focus(Xr.First), a.b.stop(e2, true)); break; case 13: - !e2.ctrlKey && !e2.metaKey || e2.shiftKey || e2.altKey || (this.ui.list.focus(Qo.Last), a.b.stop(e2, true)); + !e2.ctrlKey && !e2.metaKey || e2.shiftKey || e2.altKey || (this.ui.list.focus(Xr.Last), a.b.stop(e2, true)); } })), this.visibleDisposables.add(this.ui.onDidAccept(() => { !this.canSelectMany && this.activeItems[0] && (this._selectedItems = [this.activeItems[0]], this.onDidChangeSelectionEmitter.fire(this.selectedItems)), this.onDidAcceptEmitter.fire({inBackground: false}); @@ -34383,8 +34383,8 @@ ${Object(zn.b)(wi)} return; const t2 = new Ie.a(e2), n2 = t2.keyCode; this._quickNavigate.keybindings.some((e3) => { - const [i2, o2] = e3.getParts(); - return !o2 && (i2.shiftKey && n2 === 4 ? !(t2.ctrlKey || t2.altKey || t2.metaKey) : !(!i2.altKey || n2 !== 6) || (!(!i2.ctrlKey || n2 !== 5) || !(!i2.metaKey || n2 !== 57))); + const [i2, r2] = e3.getParts(); + return !r2 && (i2.shiftKey && n2 === 4 ? !(t2.ctrlKey || t2.altKey || t2.metaKey) : !(!i2.altKey || n2 !== 6) || (!(!i2.ctrlKey || n2 !== 5) || !(!i2.metaKey || n2 !== 57))); }) && (this.activeItems[0] && (this._selectedItems = [this.activeItems[0]], this.onDidChangeSelectionEmitter.fire(this.selectedItems), this.onDidAcceptEmitter.fire({inBackground: false})), this._quickNavigate = void 0); }); } @@ -34397,19 +34397,19 @@ ${Object(zn.b)(wi)} if (this.ui.setVisibilities(n2), super.update(), this.ui.inputBox.value !== this.value && (this.ui.inputBox.value = this.value), this.valueSelectionUpdated && (this.valueSelectionUpdated = false, this.ui.inputBox.select(this._valueSelection && {start: this._valueSelection[0], end: this._valueSelection[1]})), this.ui.inputBox.placeholder !== (this.placeholder || "") && (this.ui.inputBox.placeholder = this.placeholder || ""), t2) this.ui.inputBox.ariaLabel = ""; else { - const e3 = this.ariaLabel || this.placeholder || mr.DEFAULT_ARIA_LABEL; + const e3 = this.ariaLabel || this.placeholder || mo.DEFAULT_ARIA_LABEL; this.ui.inputBox.ariaLabel !== e3 && (this.ui.inputBox.ariaLabel = e3); } if (this.ui.list.matchOnDescription = this.matchOnDescription, this.ui.list.matchOnDetail = this.matchOnDetail, this.ui.list.matchOnLabel = this.matchOnLabel, this.ui.list.sortByLabel = this.sortByLabel, this.itemsUpdated) switch (this.itemsUpdated = false, this.ui.list.setElements(this.items), this.ui.list.filter(this.filterValue(this.ui.inputBox.value)), this.ui.checkAll.checked = this.ui.list.getAllVisibleChecked(), this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()), this.ui.count.setCount(this.ui.list.getCheckedCount()), this._itemActivation) { - case Ro.a.NONE: - this._itemActivation = Ro.a.FIRST; + case Ar.a.NONE: + this._itemActivation = Ar.a.FIRST; break; - case Ro.a.SECOND: - this.ui.list.focus(Qo.Second), this._itemActivation = Ro.a.FIRST; + case Ar.a.SECOND: + this.ui.list.focus(Xr.Second), this._itemActivation = Ar.a.FIRST; break; - case Ro.a.LAST: - this.ui.list.focus(Qo.Last), this._itemActivation = Ro.a.FIRST; + case Ar.a.LAST: + this.ui.list.focus(Xr.Last), this._itemActivation = Ar.a.FIRST; break; default: this.trySelectFirst(); @@ -34417,10 +34417,10 @@ ${Object(zn.b)(wi)} this.ui.container.classList.contains("show-checkboxes") !== !!this.canSelectMany && (this.canSelectMany ? this.ui.list.clearFocus() : this.trySelectFirst()), this.activeItemsUpdated && (this.activeItemsUpdated = false, this.activeItemsToConfirm = this._activeItems, this.ui.list.setFocusedElements(this.activeItems), this.activeItemsToConfirm === this._activeItems && (this.activeItemsToConfirm = null)), this.selectedItemsUpdated && (this.selectedItemsUpdated = false, this.selectedItemsToConfirm = this._selectedItems, this.canSelectMany ? this.ui.list.setCheckedElements(this.selectedItems) : this.ui.list.setSelectedElements(this.selectedItems), this.selectedItemsToConfirm === this._selectedItems && (this.selectedItemsToConfirm = null)), this.validationMessage ? (this.ui.message.textContent = this.validationMessage, this.showMessageDecoration(Ae.a.Error)) : (this.ui.message.textContent = null, this.showMessageDecoration(Ae.a.Ignore)), this.ui.customButton.label = this.customLabel || "", this.ui.customButton.element.title = this.customHover || "", this.ui.setComboboxAccessibility(true), n2.inputBox || this.ui.list.domFocus(); } } - mr.DEFAULT_ARIA_LABEL = Object(Ke.a)("quickInputBox.ariaLabel", "Type to narrow down results."); - class gr extends I.a { + mo.DEFAULT_ARIA_LABEL = Object(Ke.a)("quickInputBox.ariaLabel", "Type to narrow down results."); + class go extends I.a { constructor(e2) { - super(), this.options = e2, this.comboboxAccessibility = false, this.enabled = true, this.onDidAcceptEmitter = this._register(new Oe.a()), this.onDidCustomEmitter = this._register(new Oe.a()), this.onDidTriggerButtonEmitter = this._register(new Oe.a()), this.keyMods = {ctrlCmd: false, alt: false}, this.controller = null, this.onShowEmitter = this._register(new Oe.a()), this.onShow = this.onShowEmitter.event, this.onHideEmitter = this._register(new Oe.a()), this.onHide = this.onHideEmitter.event, this.idPrefix = e2.idPrefix, this.parentElement = e2.container, this.styles = e2.styles, this.registerKeyModsListeners(); + super(), this.options = e2, this.comboboxAccessibility = false, this.enabled = true, this.onDidAcceptEmitter = this._register(new De.a()), this.onDidCustomEmitter = this._register(new De.a()), this.onDidTriggerButtonEmitter = this._register(new De.a()), this.keyMods = {ctrlCmd: false, alt: false}, this.controller = null, this.onShowEmitter = this._register(new De.a()), this.onShow = this.onShowEmitter.event, this.onHideEmitter = this._register(new De.a()), this.onHide = this.onHideEmitter.event, this.idPrefix = e2.idPrefix, this.parentElement = e2.container, this.styles = e2.styles, this.registerKeyModsListeners(); } registerKeyModsListeners() { const e2 = (e3) => { @@ -34431,36 +34431,36 @@ ${Object(zn.b)(wi)} getUI() { if (this.ui) return this.ui; - const e2 = a.p(this.parentElement, hr(".quick-input-widget.show-file-icons")); + const e2 = a.p(this.parentElement, ho(".quick-input-widget.show-file-icons")); e2.tabIndex = -1, e2.style.display = "none"; - const t2 = a.v(e2), n2 = a.p(e2, hr(".quick-input-titlebar")), i2 = this._register(new si.a(n2)); + const t2 = a.v(e2), n2 = a.p(e2, ho(".quick-input-titlebar")), i2 = this._register(new si.a(n2)); i2.domNode.classList.add("quick-input-left-action-bar"); - const o2 = a.p(n2, hr(".quick-input-title")), r2 = this._register(new si.a(n2)); - r2.domNode.classList.add("quick-input-right-action-bar"); - const s2 = a.p(e2, hr(".quick-input-description")), l2 = a.p(e2, hr(".quick-input-header")), c2 = a.p(l2, hr("input.quick-input-check-all")); + const r2 = a.p(n2, ho(".quick-input-title")), o2 = this._register(new si.a(n2)); + o2.domNode.classList.add("quick-input-right-action-bar"); + const s2 = a.p(e2, ho(".quick-input-description")), l2 = a.p(e2, ho(".quick-input-header")), c2 = a.p(l2, ho("input.quick-input-check-all")); c2.type = "checkbox", this._register(a.n(c2, a.c.CHANGE, (e3) => { const t3 = c2.checked; x2.setAllVisibleChecked(t3); })), this._register(a.i(c2, a.c.CLICK, (e3) => { (e3.x || e3.y) && u2.setFocus(); })); - const d2 = a.p(l2, hr(".quick-input-and-message")), h2 = a.p(d2, hr(".quick-input-filter")), u2 = this._register(new ir(h2)); + const d2 = a.p(l2, ho(".quick-input-and-message")), h2 = a.p(d2, ho(".quick-input-filter")), u2 = this._register(new no(h2)); u2.setAttribute("aria-describedby", this.idPrefix + "message"); - const p2 = a.p(h2, hr(".quick-input-visible-count")); + const p2 = a.p(h2, ho(".quick-input-visible-count")); p2.setAttribute("aria-live", "polite"), p2.setAttribute("aria-atomic", "true"); - const m2 = new or.a(p2, {countFormat: Object(Ke.a)({key: "quickInput.visibleCount", comment: ["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]}, "{0} Results")}), g2 = a.p(h2, hr(".quick-input-count")); + const m2 = new io.a(p2, {countFormat: Object(Ke.a)({key: "quickInput.visibleCount", comment: ["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]}, "{0} Results")}), g2 = a.p(h2, ho(".quick-input-count")); g2.setAttribute("aria-live", "polite"); - const f2 = new or.a(g2, {countFormat: Object(Ke.a)({key: "quickInput.countSelected", comment: ["This tells the user how many items are selected in a list of items to select from. The items can be anything."]}, "{0} Selected")}), b2 = a.p(l2, hr(".quick-input-action")), _2 = new cr(b2); + const f2 = new io.a(g2, {countFormat: Object(Ke.a)({key: "quickInput.countSelected", comment: ["This tells the user how many items are selected in a list of items to select from. The items can be anything."]}, "{0} Selected")}), b2 = a.p(l2, ho(".quick-input-action")), _2 = new lo(b2); _2.label = Object(Ke.a)("ok", "OK"), this._register(_2.onDidClick((e3) => { this.onDidAcceptEmitter.fire(); })); - const v2 = a.p(l2, hr(".quick-input-action")), w2 = new cr(v2); + const v2 = a.p(l2, ho(".quick-input-action")), w2 = new lo(v2); w2.label = Object(Ke.a)("custom", "Custom"), this._register(w2.onDidClick((e3) => { this.onDidCustomEmitter.fire(); })); - const y2 = a.p(d2, hr(`#${this.idPrefix}message.quick-input-message`)), C2 = new sr(e2); + const y2 = a.p(d2, ho(`#${this.idPrefix}message.quick-input-message`)), C2 = new oo(e2); a.e(C2.getContainer(), "quick-input-progress"); - const x2 = this._register(new Jo(e2, this.idPrefix + "list", this.options)); + const x2 = this._register(new Qr(e2, this.idPrefix + "list", this.options)); this._register(x2.onChangedAllVisibleChecked((e3) => { c2.checked = e3; })), this._register(x2.onChangedVisibleCount((e3) => { @@ -34469,7 +34469,7 @@ ${Object(zn.b)(wi)} f2.setCount(e3); })), this._register(x2.onLeave(() => { setTimeout(() => { - u2.setFocus(), this.controller instanceof mr && this.controller.canSelectMany && x2.clearFocus(); + u2.setFocus(), this.controller instanceof mo && this.controller.canSelectMany && x2.clearFocus(); }, 0); })), this._register(x2.onDidChangeFocus(() => { this.comboboxAccessibility && this.getUI().inputBox.setAttribute("aria-activedescendant", this.getUI().list.getActiveDescendant() || ""); @@ -34494,27 +34494,27 @@ ${Object(zn.b)(wi)} if (!n3.altKey && !n3.ctrlKey && !n3.metaKey) { const i3 = [".action-label.codicon"]; e2.classList.contains("show-checkboxes") ? i3.push("input") : i3.push("input[type=text]"), this.getUI().list.isDisplayed() && i3.push(".monaco-list"); - const o3 = e2.querySelectorAll(i3.join(", ")); - n3.shiftKey && n3.target === o3[0] ? (a.b.stop(t3, true), o3[o3.length - 1].focus()) : n3.shiftKey || n3.target !== o3[o3.length - 1] || (a.b.stop(t3, true), o3[0].focus()); + const r3 = e2.querySelectorAll(i3.join(", ")); + n3.shiftKey && n3.target === r3[0] ? (a.b.stop(t3, true), r3[r3.length - 1].focus()) : n3.shiftKey || n3.target !== r3[r3.length - 1] || (a.b.stop(t3, true), r3[0].focus()); } } - })), this.ui = {container: e2, styleSheet: t2, leftActionBar: i2, titleBar: n2, title: o2, description: s2, rightActionBar: r2, checkAll: c2, filterContainer: h2, inputBox: u2, visibleCountContainer: p2, visibleCount: m2, countContainer: g2, count: f2, okContainer: b2, ok: _2, message: y2, customButtonContainer: v2, customButton: w2, progressBar: C2, list: x2, onDidAccept: this.onDidAcceptEmitter.event, onDidCustom: this.onDidCustomEmitter.event, onDidTriggerButton: this.onDidTriggerButtonEmitter.event, ignoreFocusOut: false, keyMods: this.keyMods, isScreenReaderOptimized: () => this.options.isScreenReaderOptimized(), show: (e3) => this.show(e3), hide: () => this.hide(), setVisibilities: (e3) => this.setVisibilities(e3), setComboboxAccessibility: (e3) => this.setComboboxAccessibility(e3), setEnabled: (e3) => this.setEnabled(e3), setContextKey: (e3) => this.options.setContextKey(e3)}, this.updateStyles(), this.ui; + })), this.ui = {container: e2, styleSheet: t2, leftActionBar: i2, titleBar: n2, title: r2, description: s2, rightActionBar: o2, checkAll: c2, filterContainer: h2, inputBox: u2, visibleCountContainer: p2, visibleCount: m2, countContainer: g2, count: f2, okContainer: b2, ok: _2, message: y2, customButtonContainer: v2, customButton: w2, progressBar: C2, list: x2, onDidAccept: this.onDidAcceptEmitter.event, onDidCustom: this.onDidCustomEmitter.event, onDidTriggerButton: this.onDidTriggerButtonEmitter.event, ignoreFocusOut: false, keyMods: this.keyMods, isScreenReaderOptimized: () => this.options.isScreenReaderOptimized(), show: (e3) => this.show(e3), hide: () => this.hide(), setVisibilities: (e3) => this.setVisibilities(e3), setComboboxAccessibility: (e3) => this.setComboboxAccessibility(e3), setEnabled: (e3) => this.setEnabled(e3), setContextKey: (e3) => this.options.setContextKey(e3)}, this.updateStyles(), this.ui; } - pick(e2, t2 = {}, n2 = Ao.a.None) { - return new Promise((i2, o2) => { - let r2 = (e3) => { - r2 = i2, t2.onKeyMods && t2.onKeyMods(s2.keyMods), i2(e3); + pick(e2, t2 = {}, n2 = Or.a.None) { + return new Promise((i2, r2) => { + let o2 = (e3) => { + o2 = i2, t2.onKeyMods && t2.onKeyMods(s2.keyMods), i2(e3); }; if (n2.isCancellationRequested) - return void r2(void 0); + return void o2(void 0); const s2 = this.createQuickPick(); let a2; const l2 = [s2, s2.onDidAccept(() => { if (s2.canSelectMany) - r2(s2.selectedItems.slice()), s2.hide(); + o2(s2.selectedItems.slice()), s2.hide(); else { const e3 = s2.activeItems[0]; - e3 && (r2(e3), s2.hide()); + e3 && (o2(e3), s2.hide()); } }), s2.onDidChangeActive((e3) => { const n3 = e3[0]; @@ -34522,7 +34522,7 @@ ${Object(zn.b)(wi)} }), s2.onDidChangeSelection((e3) => { if (!s2.canSelectMany) { const t3 = e3[0]; - t3 && (r2(t3), s2.hide()); + t3 && (o2(t3), s2.hide()); } }), s2.onDidTriggerItemButton((e3) => t2.onDidTriggerItemButton && t2.onDidTriggerItemButton(Object.assign(Object.assign({}, e3), {removeItem: () => { const t3 = s2.items.indexOf(e3.item); @@ -34535,18 +34535,18 @@ ${Object(zn.b)(wi)} }), n2.onCancellationRequested(() => { s2.hide(); }), s2.onDidHide(() => { - Object(I.f)(l2), r2(void 0); + Object(I.f)(l2), o2(void 0); })]; s2.canSelectMany = !!t2.canPickMany, s2.placeholder = t2.placeHolder, s2.ignoreFocusOut = !!t2.ignoreFocusLost, s2.matchOnDescription = !!t2.matchOnDescription, s2.matchOnDetail = !!t2.matchOnDetail, s2.matchOnLabel = t2.matchOnLabel === void 0 || t2.matchOnLabel, s2.autoFocusOnList = t2.autoFocusOnList === void 0 || t2.autoFocusOnList, s2.quickNavigate = t2.quickNavigate, s2.contextKey = t2.contextKey, s2.busy = true, Promise.all([e2, t2.activeItem]).then(([e3, t3]) => { a2 = t3, s2.busy = false, s2.items = e3, s2.canSelectMany && (s2.selectedItems = e3.filter((e4) => e4.type !== "separator" && e4.picked)), a2 && (s2.activeItems = [a2]); }), s2.show(), Promise.resolve(e2).then(void 0, (e3) => { - o2(e3), s2.hide(); + r2(e3), s2.hide(); }); }); } createQuickPick() { const e2 = this.getUI(); - return new mr(e2); + return new mo(e2); } show(e2) { const t2 = this.getUI(); @@ -34554,7 +34554,7 @@ ${Object(zn.b)(wi)} const n2 = this.controller; this.controller = e2, n2 && n2.didHide(), this.setEnabled(true), t2.leftActionBar.clear(), t2.title.textContent = "", t2.description.textContent = "", t2.rightActionBar.clear(), t2.checkAll.checked = false, t2.inputBox.placeholder = "", t2.inputBox.password = false, t2.inputBox.showDecoration(Ae.a.Ignore), t2.visibleCount.setCount(0), t2.count.setCount(0), t2.message.textContent = "", t2.progressBar.stop(), t2.list.setElements([]), t2.list.matchOnDescription = false, t2.list.matchOnDetail = false, t2.list.matchOnLabel = true, t2.list.sortByLabel = true, t2.ignoreFocusOut = false, this.setComboboxAccessibility(false), t2.inputBox.ariaLabel = ""; const i2 = this.options.backKeybindingLabel(); - ur.tooltip = i2 ? Object(Ke.a)("quickInput.backWithKeybinding", "Back ({0})", i2) : Object(Ke.a)("quickInput.back", "Back"), t2.container.style.display = "", this.updateLayout(), t2.inputBox.setFocus(); + uo.tooltip = i2 ? Object(Ke.a)("quickInput.backWithKeybinding", "Back ({0})", i2) : Object(Ke.a)("quickInput.back", "Back"), t2.container.style.display = "", this.updateLayout(), t2.inputBox.setFocus(); } setVisibilities(e2) { const t2 = this.getUI(); @@ -34590,7 +34590,7 @@ ${Object(zn.b)(wi)} updateLayout() { if (this.ui) { this.ui.container.style.top = this.titleBarOffset + "px"; - const e2 = this.ui.container.style, t2 = Math.min(0.62 * this.dimension.width, gr.MAX_WIDTH); + const e2 = this.ui.container.style, t2 = Math.min(0.62 * this.dimension.width, go.MAX_WIDTH); e2.width = t2 + "px", e2.marginLeft = "-" + t2 / 2 + "px", this.ui.inputBox.layout(), this.ui.list.layout(this.dimension && 0.4 * this.dimension.height); } } @@ -34599,73 +34599,73 @@ ${Object(zn.b)(wi)} } updateStyles() { if (this.ui) { - const {quickInputTitleBackground: e2, quickInputBackground: t2, quickInputForeground: n2, contrastBorder: i2, widgetShadow: o2} = this.styles.widget; - this.ui.titleBar.style.backgroundColor = e2 ? e2.toString() : "", this.ui.container.style.backgroundColor = t2 ? t2.toString() : "", this.ui.container.style.color = n2 ? n2.toString() : "", this.ui.container.style.border = i2 ? "1px solid " + i2 : "", this.ui.container.style.boxShadow = o2 ? "0 5px 8px " + o2 : "", this.ui.inputBox.style(this.styles.inputBox), this.ui.count.style(this.styles.countBadge), this.ui.ok.style(this.styles.button), this.ui.customButton.style(this.styles.button), this.ui.progressBar.style(this.styles.progressBar), this.ui.list.style(this.styles.list); - const r2 = []; - this.styles.list.listInactiveFocusForeground && (r2.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`), r2.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)), this.styles.list.pickerGroupBorder && r2.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`), this.styles.list.pickerGroupForeground && r2.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`); - const s2 = r2.join("\n"); + const {quickInputTitleBackground: e2, quickInputBackground: t2, quickInputForeground: n2, contrastBorder: i2, widgetShadow: r2} = this.styles.widget; + this.ui.titleBar.style.backgroundColor = e2 ? e2.toString() : "", this.ui.container.style.backgroundColor = t2 ? t2.toString() : "", this.ui.container.style.color = n2 ? n2.toString() : "", this.ui.container.style.border = i2 ? "1px solid " + i2 : "", this.ui.container.style.boxShadow = r2 ? "0 5px 8px " + r2 : "", this.ui.inputBox.style(this.styles.inputBox), this.ui.count.style(this.styles.countBadge), this.ui.ok.style(this.styles.button), this.ui.customButton.style(this.styles.button), this.ui.progressBar.style(this.styles.progressBar), this.ui.list.style(this.styles.list); + const o2 = []; + this.styles.list.listInactiveFocusForeground && (o2.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`), o2.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)), this.styles.list.pickerGroupBorder && o2.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`), this.styles.list.pickerGroupForeground && o2.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`); + const s2 = o2.join("\n"); s2 !== this.ui.styleSheet.innerHTML && (this.ui.styleSheet.innerHTML = s2); } } } - gr.MAX_WIDTH = 600; - var fr = n(110), br = n(134), _r = n(133), vr = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + go.MAX_WIDTH = 600; + var fo = n(110), bo = n(134), _o = n(133), vo = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, wr = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, wo = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let yr = class extends I.a { + let yo = class extends I.a { constructor(e2, t2) { - super(), this.quickInputService = e2, this.instantiationService = t2, this.registry = ln.a.as(br.b.Quickaccess), this.mapProviderToDescriptor = new Map(), this.lastAcceptedPickerValues = new Map(), this.visibleQuickAccess = void 0; + super(), this.quickInputService = e2, this.instantiationService = t2, this.registry = ln.a.as(bo.b.Quickaccess), this.mapProviderToDescriptor = new Map(), this.lastAcceptedPickerValues = new Map(), this.visibleQuickAccess = void 0; } show(e2 = "", t2) { var n2; - const [i2, o2] = this.getOrInstantiateProvider(e2), r2 = this.visibleQuickAccess, s2 = r2 == null ? void 0 : r2.descriptor; - if (r2 && o2 && s2 === o2) - return e2 === o2.prefix || (t2 == null ? void 0 : t2.preserveValue) || (r2.picker.value = e2), void this.adjustValueSelection(r2.picker, o2, t2); - if (o2 && !(t2 == null ? void 0 : t2.preserveValue)) { + const [i2, r2] = this.getOrInstantiateProvider(e2), o2 = this.visibleQuickAccess, s2 = o2 == null ? void 0 : o2.descriptor; + if (o2 && r2 && s2 === r2) + return e2 === r2.prefix || (t2 == null ? void 0 : t2.preserveValue) || (o2.picker.value = e2), void this.adjustValueSelection(o2.picker, r2, t2); + if (r2 && !(t2 == null ? void 0 : t2.preserveValue)) { let t3 = void 0; - if (r2 && s2 && s2 !== o2) { - const e3 = r2.value.substr(s2.prefix.length); - e3 && (t3 = `${o2.prefix}${e3}`); + if (o2 && s2 && s2 !== r2) { + const e3 = o2.value.substr(s2.prefix.length); + e3 && (t3 = `${r2.prefix}${e3}`); } if (!t3) { const e3 = i2 == null ? void 0 : i2.defaultFilterValue; - e3 === br.a.LAST ? t3 = this.lastAcceptedPickerValues.get(o2) : typeof e3 == "string" && (t3 = `${o2.prefix}${e3}`); + e3 === bo.a.LAST ? t3 = this.lastAcceptedPickerValues.get(r2) : typeof e3 == "string" && (t3 = `${r2.prefix}${e3}`); } typeof t3 == "string" && (e2 = t3); } const a2 = new I.b(), l2 = a2.add(this.quickInputService.createQuickPick()); - l2.value = e2, this.adjustValueSelection(l2, o2, t2), l2.placeholder = o2 == null ? void 0 : o2.placeholder, l2.quickNavigate = t2 == null ? void 0 : t2.quickNavigateConfiguration, l2.hideInput = !!l2.quickNavigate && !r2, (typeof (t2 == null ? void 0 : t2.itemActivation) == "number" || (t2 == null ? void 0 : t2.quickNavigateConfiguration)) && (l2.itemActivation = (n2 = t2 == null ? void 0 : t2.itemActivation) !== null && n2 !== void 0 ? n2 : fr.b.SECOND), l2.contextKey = o2 == null ? void 0 : o2.contextKey, l2.filterValue = (e3) => e3.substring(o2 ? o2.prefix.length : 0), (o2 == null ? void 0 : o2.placeholder) && (l2.ariaLabel = o2 == null ? void 0 : o2.placeholder); - const c2 = this.registerPickerListeners(l2, i2, o2, e2, a2); + l2.value = e2, this.adjustValueSelection(l2, r2, t2), l2.placeholder = r2 == null ? void 0 : r2.placeholder, l2.quickNavigate = t2 == null ? void 0 : t2.quickNavigateConfiguration, l2.hideInput = !!l2.quickNavigate && !o2, (typeof (t2 == null ? void 0 : t2.itemActivation) == "number" || (t2 == null ? void 0 : t2.quickNavigateConfiguration)) && (l2.itemActivation = (n2 = t2 == null ? void 0 : t2.itemActivation) !== null && n2 !== void 0 ? n2 : fo.b.SECOND), l2.contextKey = r2 == null ? void 0 : r2.contextKey, l2.filterValue = (e3) => e3.substring(r2 ? r2.prefix.length : 0), (r2 == null ? void 0 : r2.placeholder) && (l2.ariaLabel = r2 == null ? void 0 : r2.placeholder); + const c2 = this.registerPickerListeners(l2, i2, r2, e2, a2); i2 && a2.add(i2.provide(l2, c2)), l2.show(); } adjustValueSelection(e2, t2, n2) { var i2; - let o2; - o2 = (n2 == null ? void 0 : n2.preserveValue) ? [e2.value.length, e2.value.length] : [(i2 = t2 == null ? void 0 : t2.prefix.length) !== null && i2 !== void 0 ? i2 : 0, e2.value.length], e2.valueSelection = o2; + let r2; + r2 = (n2 == null ? void 0 : n2.preserveValue) ? [e2.value.length, e2.value.length] : [(i2 = t2 == null ? void 0 : t2.prefix.length) !== null && i2 !== void 0 ? i2 : 0, e2.value.length], e2.valueSelection = r2; } - registerPickerListeners(e2, t2, n2, i2, o2) { - const r2 = this.visibleQuickAccess = {picker: e2, descriptor: n2, value: i2}; - o2.add(Object(I.h)(() => { - r2 === this.visibleQuickAccess && (this.visibleQuickAccess = void 0); - })), o2.add(e2.onDidChangeValue((e3) => { + registerPickerListeners(e2, t2, n2, i2, r2) { + const o2 = this.visibleQuickAccess = {picker: e2, descriptor: n2, value: i2}; + r2.add(Object(I.h)(() => { + o2 === this.visibleQuickAccess && (this.visibleQuickAccess = void 0); + })), r2.add(e2.onDidChangeValue((e3) => { const [n3] = this.getOrInstantiateProvider(e3); - n3 !== t2 ? this.show(e3, {preserveValue: true}) : r2.value = e3; - })), n2 && o2.add(e2.onDidAccept(() => { + n3 !== t2 ? this.show(e3, {preserveValue: true}) : o2.value = e3; + })), n2 && r2.add(e2.onDidAccept(() => { this.lastAcceptedPickerValues.set(n2, e2.value); })); - const s2 = o2.add(new Ao.b()); - return Object(_r.a)(e2.onDidHide)(() => { - e2.selectedItems.length === 0 && s2.cancel(), o2.dispose(); + const s2 = r2.add(new Or.b()); + return Object(_o.a)(e2.onDidHide)(() => { + e2.selectedItems.length === 0 && s2.cancel(), r2.dispose(); }), s2.token; } getOrInstantiateProvider(e2) { @@ -34676,38 +34676,38 @@ ${Object(zn.b)(wi)} return n2 || (n2 = this.instantiationService.createInstance(t2.ctor), this.mapProviderToDescriptor.set(t2, n2)), [n2, t2]; } }; - yr = vr([wr(0, fr.a), wr(1, Ft.a)], yr); - var Cr = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + yo = vo([wo(0, fo.a), wo(1, Ft.a)], yo); + var Co = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, xr = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, xo = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let Sr = class extends zt.d { - constructor(e2, t2, n2, i2, o2) { - super(n2), this.instantiationService = e2, this.contextKeyService = t2, this.accessibilityService = i2, this.layoutService = o2, this.contexts = new Map(); + let So = class extends zt.d { + constructor(e2, t2, n2, i2, r2) { + super(n2), this.instantiationService = e2, this.contextKeyService = t2, this.accessibilityService = i2, this.layoutService = r2, this.contexts = new Map(); } get controller() { return this._controller || (this._controller = this._register(this.createController())), this._controller; } get quickAccess() { - return this._quickAccess || (this._quickAccess = this._register(this.instantiationService.createInstance(yr))), this._quickAccess; + return this._quickAccess || (this._quickAccess = this._register(this.instantiationService.createInstance(yo))), this._quickAccess; } createController(e2 = this.layoutService, t2) { var n2, i2; - const o2 = {idPrefix: "quickInput_", container: e2.container, ignoreFocusOut: () => false, isScreenReaderOptimized: () => this.accessibilityService.isScreenReaderOptimized(), backKeybindingLabel: () => { - }, setContextKey: (e3) => this.setContextKey(e3), returnFocus: () => e2.focus(), createList: (e3, t3, n3, i3, o3) => this.instantiationService.createInstance(Ki.d, e3, t3, n3, i3, o3), styles: this.computeStyles()}, r2 = this._register(new gr(Object.assign(Object.assign({}, o2), t2))); - return r2.layout(e2.dimension, (i2 = (n2 = e2.offset) === null || n2 === void 0 ? void 0 : n2.top) !== null && i2 !== void 0 ? i2 : 0), this._register(e2.onLayout((t3) => { + const r2 = {idPrefix: "quickInput_", container: e2.container, ignoreFocusOut: () => false, isScreenReaderOptimized: () => this.accessibilityService.isScreenReaderOptimized(), backKeybindingLabel: () => { + }, setContextKey: (e3) => this.setContextKey(e3), returnFocus: () => e2.focus(), createList: (e3, t3, n3, i3, r3) => this.instantiationService.createInstance(Ki.d, e3, t3, n3, i3, r3), styles: this.computeStyles()}, o2 = this._register(new go(Object.assign(Object.assign({}, r2), t2))); + return o2.layout(e2.dimension, (i2 = (n2 = e2.offset) === null || n2 === void 0 ? void 0 : n2.top) !== null && i2 !== void 0 ? i2 : 0), this._register(e2.onLayout((t3) => { var n3, i3; - return r2.layout(t3, (i3 = (n3 = e2.offset) === null || n3 === void 0 ? void 0 : n3.top) !== null && i3 !== void 0 ? i3 : 0); - })), this._register(r2.onShow(() => this.resetContextKeys())), this._register(r2.onHide(() => this.resetContextKeys())), r2; + return o2.layout(t3, (i3 = (n3 = e2.offset) === null || n3 === void 0 ? void 0 : n3.top) !== null && i3 !== void 0 ? i3 : 0); + })), this._register(o2.onShow(() => this.resetContextKeys())), this._register(o2.onHide(() => this.resetContextKeys())), o2; } setContextKey(e2) { let t2; @@ -34718,7 +34718,7 @@ ${Object(zn.b)(wi)} e2.get() && e2.reset(); }); } - pick(e2, t2 = {}, n2 = Ao.a.None) { + pick(e2, t2 = {}, n2 = Or.a.None) { return this.controller.pick(e2, t2, n2); } createQuickPick() { @@ -34731,24 +34731,24 @@ ${Object(zn.b)(wi)} return {widget: Object.assign({}, Object(Ti.d)(this.theme, {quickInputBackground: Mn.dc, quickInputForeground: Mn.ec, quickInputTitleBackground: Mn.fc, contrastBorder: Mn.h, widgetShadow: Mn.uc})), inputBox: Object(Ti.d)(this.theme, {inputForeground: Mn.hb, inputBackground: Mn.fb, inputBorder: Mn.gb, inputValidationInfoBackground: Mn.lb, inputValidationInfoForeground: Mn.nb, inputValidationInfoBorder: Mn.mb, inputValidationWarningBackground: Mn.ob, inputValidationWarningForeground: Mn.qb, inputValidationWarningBorder: Mn.pb, inputValidationErrorBackground: Mn.ib, inputValidationErrorForeground: Mn.kb, inputValidationErrorBorder: Mn.jb}), countBadge: Object(Ti.d)(this.theme, {badgeBackground: Mn.c, badgeForeground: Mn.d, badgeBorder: Mn.h}), button: Object(Ti.d)(this.theme, {buttonForeground: Mn.f, buttonBackground: Mn.e, buttonHoverBackground: Mn.g, buttonBorder: Mn.h}), progressBar: Object(Ti.d)(this.theme, {progressBarBackground: Mn.cc}), list: Object(Ti.d)(this.theme, {listBackground: Mn.dc, listInactiveFocusForeground: Mn.yb, listInactiveFocusBackground: Mn.xb, listFocusOutline: Mn.b, listInactiveFocusOutline: Mn.b, pickerGroupBorder: Mn.Xb, pickerGroupForeground: Mn.Yb})}; } }; - Sr = Cr([xr(0, Ft.a), xr(1, Mt.b), xr(2, zt.c), xr(3, Bt.b), xr(4, Ri)], Sr); - var kr = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + So = Co([xo(0, Ft.a), xo(1, Mt.b), xo(2, zt.c), xo(3, Bt.b), xo(4, Ri)], So); + var ko = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Er = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, Eo = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let Tr = class extends Sr { - constructor(e2, t2, n2, i2, o2, r2) { - super(t2, n2, i2, o2, r2), this.host = void 0; - const s2 = Nr.get(e2); + let To = class extends So { + constructor(e2, t2, n2, i2, r2, o2) { + super(t2, n2, i2, r2, o2), this.host = void 0; + const s2 = No.get(e2); this.host = {_serviceBrand: void 0, get container() { return s2.widget.getDomNode(); }, get dimension() { @@ -34761,8 +34761,8 @@ ${Object(zn.b)(wi)} return super.createController(this.host); } }; - Tr = kr([Er(1, Ft.a), Er(2, Mt.b), Er(3, zt.c), Er(4, Bt.b), Er(5, Ri)], Tr); - let Lr = class { + To = ko([Eo(1, Ft.a), Eo(2, Mt.b), Eo(3, zt.c), Eo(4, Bt.b), Eo(5, Ri)], To); + let Lo = class { constructor(e2, t2) { this.instantiationService = e2, this.codeEditorService = t2, this.mapEditorToService = new Map(); } @@ -34772,8 +34772,8 @@ ${Object(zn.b)(wi)} throw new Error("Quick input service needs a focused editor to work."); let t2 = this.mapEditorToService.get(e2); if (!t2) { - const n2 = t2 = this.instantiationService.createInstance(Tr, e2); - this.mapEditorToService.set(e2, t2), Object(_r.a)(e2.onDidDispose)(() => { + const n2 = t2 = this.instantiationService.createInstance(To, e2); + this.mapEditorToService.set(e2, t2), Object(_o.a)(e2.onDidDispose)(() => { n2.dispose(), this.mapEditorToService.delete(e2); }); } @@ -34782,32 +34782,32 @@ ${Object(zn.b)(wi)} get quickAccess() { return this.activeService.quickAccess; } - pick(e2, t2 = {}, n2 = Ao.a.None) { + pick(e2, t2 = {}, n2 = Or.a.None) { return this.activeService.pick(e2, t2, n2); } createQuickPick() { return this.activeService.createQuickPick(); } }; - Lr = kr([Er(0, Ft.a), Er(1, s.a)], Lr); - class Nr { + Lo = ko([Eo(0, Ft.a), Eo(1, s.a)], Lo); + class No { constructor(e2) { - this.editor = e2, this.widget = new Ir(this.editor); + this.editor = e2, this.widget = new Io(this.editor); } static get(e2) { - return e2.getContribution(Nr.ID); + return e2.getContribution(No.ID); } dispose() { this.widget.dispose(); } } - Nr.ID = "editor.controller.quickInput"; - class Ir { + No.ID = "editor.controller.quickInput"; + class Io { constructor(e2) { this.codeEditor = e2, this.domNode = document.createElement("div"), this.codeEditor.addOverlayWidget(this); } getId() { - return Ir.ID; + return Io.ID; } getDomNode() { return this.domNode; @@ -34819,8 +34819,8 @@ ${Object(zn.b)(wi)} this.codeEditor.removeOverlayWidget(this); } } - Ir.ID = "editor.contrib.quickInputWidget", Object(Do.m)(Nr.ID, Nr); - var Or, Dr = n(166); + Io.ID = "editor.contrib.quickInputWidget", Object(Dr.m)(No.ID, No); + var Do, Oo = n(166); !function(e2) { const t2 = new Vi.a(); class n2 { @@ -34841,41 +34841,41 @@ ${Object(zn.b)(wi)} } e2.LazyStaticService = n2; let i2 = []; - function o2(e3, t3) { - let o3 = new n2(e3, t3); - return i2.push(o3), o3; + function r2(e3, t3) { + let r3 = new n2(e3, t3); + return i2.push(r3), r3; } e2.init = function(e3) { let t3 = new Vi.a(); - for (const [e4, n4] of Object(ho.a)()) + for (const [e4, n4] of Object(dr.a)()) t3.set(e4, n4); for (let n4 in e3) e3.hasOwnProperty(n4) && t3.set(Object(Ft.c)(n4), e3[n4]); i2.forEach((n4) => t3.set(n4.id, n4.get(e3))); let n3 = new Hi(t3, true); return t3.set(Ft.a, n3), [t3, n3]; - }, e2.instantiationService = o2(Ft.a, () => new Hi(t2, true)); - const r2 = new wt(); - e2.configurationService = o2(ze.a, () => r2), e2.resourceConfigurationService = o2(z.a, () => new yt(r2)), e2.resourcePropertiesService = o2(z.b, () => new Ct(r2)), e2.contextService = o2(at.a, () => new St()), e2.labelService = o2($i.a, () => new Tt()), e2.telemetryService = o2(Ii.a, () => new xt()), e2.dialogService = o2(Wi.a, () => new gt()), e2.notificationService = o2(st.a, () => new ft()), e2.markerService = o2(Gi.b, () => new Qi()), e2.modeService = o2(Zt.a, (e3) => new un()), e2.standaloneThemeService = o2(At.a, () => new $n()), e2.logService = o2(V.b, () => new V.a()), e2.undoRedoService = o2(bo.a, (t3) => new Io(e2.dialogService.get(t3), e2.notificationService.get(t3))), e2.modelService = o2(W.a, (t3) => new pn.a(e2.configurationService.get(t3), e2.resourcePropertiesService.get(t3), e2.standaloneThemeService.get(t3), e2.logService.get(t3), e2.undoRedoService.get(t3))), e2.markerDecorationsService = o2(oo.a, (t3) => new co(e2.modelService.get(t3), e2.markerService.get(t3))), e2.codeEditorService = o2(s.a, (t3) => new kn(e2.standaloneThemeService.get(t3))), e2.editorProgressService = o2(Vt.a, () => new mt()), e2.storageService = o2(Ji.a, () => new Ji.b()), e2.storageSyncService = o2(Dr.a, () => new Dr.b()), e2.editorWorkerService = o2(T.a, (t3) => new Y(e2.modelService.get(t3), e2.resourceConfigurationService.get(t3), e2.logService.get(t3))); - }(Or || (Or = {})); - class Ar extends I.a { + }, e2.instantiationService = r2(Ft.a, () => new Hi(t2, true)); + const o2 = new wt(); + e2.configurationService = r2(ze.a, () => o2), e2.resourceConfigurationService = r2(z.a, () => new yt(o2)), e2.resourcePropertiesService = r2(z.b, () => new Ct(o2)), e2.contextService = r2(at.a, () => new St()), e2.labelService = r2($i.a, () => new Tt()), e2.telemetryService = r2(Ii.a, () => new xt()), e2.dialogService = r2(Wi.a, () => new gt()), e2.notificationService = r2(st.a, () => new ft()), e2.markerService = r2(Gi.b, () => new Qi()), e2.modeService = r2(Zt.a, (e3) => new un()), e2.standaloneThemeService = r2(At.a, () => new $n()), e2.logService = r2(V.b, () => new V.a()), e2.undoRedoService = r2(fr.a, (t3) => new Nr(e2.dialogService.get(t3), e2.notificationService.get(t3))), e2.modelService = r2(W.a, (t3) => new pn.a(e2.configurationService.get(t3), e2.resourcePropertiesService.get(t3), e2.standaloneThemeService.get(t3), e2.logService.get(t3), e2.undoRedoService.get(t3))), e2.markerDecorationsService = r2(rr.a, (t3) => new cr(e2.modelService.get(t3), e2.markerService.get(t3))), e2.codeEditorService = r2(s.a, (t3) => new kn(e2.standaloneThemeService.get(t3))), e2.editorProgressService = r2(Vt.a, () => new mt()), e2.storageService = r2(Ji.a, () => new Ji.b()), e2.storageSyncService = r2(Oo.a, () => new Oo.b()), e2.editorWorkerService = r2(T.a, (t3) => new Y(e2.modelService.get(t3), e2.resourceConfigurationService.get(t3), e2.logService.get(t3))); + }(Do || (Do = {})); + class Ao extends I.a { constructor(e2, t2) { super(); - const [n2, i2] = Or.init(t2); + const [n2, i2] = Do.init(t2); this._serviceCollection = n2, this._instantiationService = i2; - const o2 = this.get(ze.a), r2 = this.get(st.a), a2 = this.get(Ii.a), l2 = this.get(zt.c), c2 = this.get(V.b); + const r2 = this.get(ze.a), o2 = this.get(st.a), a2 = this.get(Ii.a), l2 = this.get(zt.c), c2 = this.get(V.b); let d2 = (e3, n3) => { let i3 = null; return t2 && (i3 = t2[e3.toString()]), i3 || (i3 = n3()), this._serviceCollection.set(e3, i3), i3; - }, h2 = d2(Mt.b, () => this._register(new ii(o2))); - d2(Bt.b, () => new mo(h2, o2)), d2(Ki.a, () => new Ki.b(l2)); - let u2 = d2(p.b, () => new bt(this._instantiationService)), m2 = d2(Wt.a, () => this._register(new _t(h2, u2, a2, r2, c2, e2))), g2 = d2(Ri, () => new Lt(Or.codeEditorService.get(s.a), e2)); - d2(fr.a, () => new Lr(i2, Or.codeEditorService.get(s.a))); + }, h2 = d2(Mt.b, () => this._register(new ii(r2))); + d2(Bt.b, () => new pr(h2, r2)), d2(Ki.a, () => new Ki.b(l2)); + let u2 = d2(p.b, () => new bt(this._instantiationService)), m2 = d2(Wt.a, () => this._register(new _t(h2, u2, a2, o2, c2, e2))), g2 = d2(Ri, () => new Lt(Do.codeEditorService.get(s.a), e2)); + d2(fo.a, () => new Lo(i2, Do.codeEditorService.get(s.a))); let f2 = d2(Pt.b, () => this._register(new Fi(g2))); - d2(jt.a, () => new fo()), d2(Pt.a, () => { - const e3 = new Ai(a2, r2, f2, m2, l2); + d2(jt.a, () => new gr()), d2(Pt.a, () => { + const e3 = new Ai(a2, o2, f2, m2, l2); return e3.configure({blockMouse: false}), this._register(e3); - }), d2(Rt.a, () => new no(u2)), d2(Me.a, () => new Et(Or.modelService.get(W.a))); + }), d2(Rt.a, () => new nr(u2)), d2(Me.a, () => new Et(Do.modelService.get(W.a))); } get(e2) { let t2 = this._serviceCollection.get(e2); @@ -34890,103 +34890,103 @@ ${Object(zn.b)(wi)} return this._serviceCollection.has(e2); } } - var Rr = n(87); - function Mr(e2, t2, n2) { - let i2 = new Ar(e2, t2), o2 = null; - i2.has(L.a) || (o2 = new pt(Or.modelService.get()), i2.set(L.a, o2)), i2.has(m.a) || i2.set(m.a, new w(i2.get(s.a), i2.get(p.b))); - let r2 = n2(i2); - return o2 && o2.setEditor(r2), r2; + var Ro = n(87); + function Mo(e2, t2, n2) { + let i2 = new Ao(e2, t2), r2 = null; + i2.has(L.a) || (r2 = new pt(Do.modelService.get()), i2.set(L.a, r2)), i2.has(m.a) || i2.set(m.a, new w(i2.get(s.a), i2.get(p.b))); + let o2 = n2(i2); + return r2 && r2.setEditor(o2), o2; } - function Pr(e2, t2, n2) { - return Mr(e2, n2 || {}, (n3) => new Gt(e2, t2, n3, n3.get(Ft.a), n3.get(s.a), n3.get(p.b), n3.get(Mt.b), n3.get(Wt.a), n3.get(Pt.b), n3.get(At.a), n3.get(st.a), n3.get(ze.a), n3.get(Bt.b))); + function Po(e2, t2, n2) { + return Mo(e2, n2 || {}, (n3) => new Gt(e2, t2, n3, n3.get(Ft.a), n3.get(s.a), n3.get(p.b), n3.get(Mt.b), n3.get(Wt.a), n3.get(Pt.b), n3.get(At.a), n3.get(st.a), n3.get(ze.a), n3.get(Bt.b))); } - function Fr(e2) { - return Or.codeEditorService.get().onCodeEditorAdd((t2) => { + function Fo(e2) { + return Do.codeEditorService.get().onCodeEditorAdd((t2) => { e2(t2); }); } - function Wr(e2, t2, n2) { - return Mr(e2, n2 || {}, (n3) => new Yt(e2, t2, n3, n3.get(Ft.a), n3.get(Mt.b), n3.get(Wt.a), n3.get(Pt.b), n3.get(T.a), n3.get(s.a), n3.get(At.a), n3.get(st.a), n3.get(ze.a), n3.get(Pt.a), n3.get(Vt.a), n3.get(jt.a))); + function Wo(e2, t2, n2) { + return Mo(e2, n2 || {}, (n3) => new Yt(e2, t2, n3, n3.get(Ft.a), n3.get(Mt.b), n3.get(Wt.a), n3.get(Pt.b), n3.get(T.a), n3.get(s.a), n3.get(At.a), n3.get(st.a), n3.get(ze.a), n3.get(Pt.a), n3.get(Vt.a), n3.get(jt.a))); } - function zr(e2, t2) { + function zo(e2, t2) { return new y.a(e2, t2); } - function Br(e2, t2, n2) { - return Or.modelService.get().createModel(e2, t2, n2); + function Bo(e2, t2, n2) { + return Do.modelService.get().createModel(e2, t2, n2); } - function jr(e2, t2, n2) { + function jo(e2, t2, n2) { if (e2 = e2 || "", !t2) { let t3 = e2.indexOf("\n"), i2 = e2; - return t3 !== -1 && (i2 = e2.substring(0, t3)), Br(e2, Or.modeService.get().createByFilepathOrFirstLine(n2 || null, i2), n2); + return t3 !== -1 && (i2 = e2.substring(0, t3)), Bo(e2, Do.modeService.get().createByFilepathOrFirstLine(n2 || null, i2), n2); } - return Br(e2, Or.modeService.get().create(t2), n2); + return Bo(e2, Do.modeService.get().create(t2), n2); } - function Vr(e2, t2) { - Or.modelService.get().setMode(e2, Or.modeService.get().create(t2)); + function Vo(e2, t2) { + Do.modelService.get().setMode(e2, Do.modeService.get().create(t2)); } - function Ur(e2, t2, n2) { - e2 && Or.markerService.get().changeOne(t2, e2.uri, n2); + function Uo(e2, t2, n2) { + e2 && Do.markerService.get().changeOne(t2, e2.uri, n2); } - function Hr(e2) { - return Or.markerService.get().read(e2); + function Ho(e2) { + return Do.markerService.get().read(e2); } - function qr(e2) { - return Or.modelService.get().getModel(e2); + function qo(e2) { + return Do.modelService.get().getModel(e2); } - function $r() { - return Or.modelService.get().getModels(); + function $o() { + return Do.modelService.get().getModels(); } - function Kr(e2) { - return Or.modelService.get().onModelAdded(e2); + function Ko(e2) { + return Do.modelService.get().onModelAdded(e2); } - function Gr(e2) { - return Or.modelService.get().onModelRemoved(e2); + function Go(e2) { + return Do.modelService.get().onModelRemoved(e2); } - function Yr(e2) { - return Or.modelService.get().onModelModeChanged((t2) => { + function Yo(e2) { + return Do.modelService.get().onModelModeChanged((t2) => { e2({model: t2.model, oldLanguage: t2.oldModeId}); }); } - function Zr(e2) { + function Zo(e2) { return function(e3, t2) { return new ie(e3, t2); - }(Or.modelService.get(), e2); + }(Do.modelService.get(), e2); } - function Xr(e2, t2) { - const n2 = Or.standaloneThemeService.get(); - return n2.registerEditorContainer(e2), Te.colorizeElement(n2, Or.modeService.get(), e2, t2); + function Xo(e2, t2) { + const n2 = Do.standaloneThemeService.get(); + return n2.registerEditorContainer(e2), Te.colorizeElement(n2, Do.modeService.get(), e2, t2); } - function Qr(e2, t2, n2) { - return Or.standaloneThemeService.get().registerEditorContainer(document.body), Te.colorize(Or.modeService.get(), e2, t2, n2); + function Qo(e2, t2, n2) { + return Do.standaloneThemeService.get().registerEditorContainer(document.body), Te.colorize(Do.modeService.get(), e2, t2, n2); } - function Jr(e2, t2, n2 = 4) { - return Or.standaloneThemeService.get().registerEditorContainer(document.body), Te.colorizeModelLine(e2, t2, n2); + function Jo(e2, t2, n2 = 4) { + return Do.standaloneThemeService.get().registerEditorContainer(document.body), Te.colorizeModelLine(e2, t2, n2); } function es(e2, t2) { - Or.modeService.get().triggerMode(t2); + Do.modeService.get().triggerMode(t2); let n2 = function(e3) { let t3 = k.C.get(e3); return t3 || {getInitialState: () => E.c, tokenize: (t4, n3, i3) => Object(E.d)(e3, t4, n3, i3)}; - }(t2), i2 = e2.split(/\r\n|\r|\n/), o2 = [], r2 = n2.getInitialState(); + }(t2), i2 = e2.split(/\r\n|\r|\n/), r2 = [], o2 = n2.getInitialState(); for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) { - let t4 = i2[e3], s2 = n2.tokenize(t4, r2, 0); - o2[e3] = s2.tokens, r2 = s2.endState; + let t4 = i2[e3], s2 = n2.tokenize(t4, o2, 0); + r2[e3] = s2.tokens, o2 = s2.endState; } - return o2; + return r2; } function ts(e2, t2) { - Or.standaloneThemeService.get().defineTheme(e2, t2); + Do.standaloneThemeService.get().defineTheme(e2, t2); } function ns(e2) { - Or.standaloneThemeService.get().setTheme(e2); + Do.standaloneThemeService.get().setTheme(e2); } function is() { - Object(Rr.b)(); + Object(Ro.b)(); } - function os(e2, t2) { + function rs(e2, t2) { return typeof e2 == "boolean" ? e2 : t2; } - function rs(e2, t2) { + function os(e2, t2) { return typeof e2 == "string" ? e2 : t2; } function ss(e2, t2 = false) { @@ -35009,24 +35009,24 @@ ${Object(zn.b)(wi)} let n2 = 0; for (; t2.indexOf("@") >= 0 && n2 < 5; ) n2++, t2 = t2.replace(/@(\w+)/g, function(n3, i3) { - let o2 = ""; + let r2 = ""; if (typeof e2[i3] == "string") - o2 = e2[i3]; + r2 = e2[i3]; else { if (!(e2[i3] && e2[i3] instanceof RegExp)) throw e2[i3] === void 0 ? ge(e2, "language definition does not contain attribute '" + i3 + "', used at: " + t2) : ge(e2, "attribute reference '" + i3 + "' must be a string, used at: " + t2); - o2 = e2[i3].source; + r2 = e2[i3].source; } - return ue(o2) ? "" : "(?:" + o2 + ")"; + return ue(r2) ? "" : "(?:" + r2 + ")"; }); let i2 = (e2.ignoreCase ? "i" : "") + (e2.unicode ? "u" : ""); return new RegExp(t2, i2); } function ls(e2, t2, n2, i2) { - let o2 = -1, r2 = n2, s2 = n2.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/); - s2 && (s2[3] && (o2 = parseInt(s2[3]), s2[2] && (o2 += 100)), r2 = s2[4]); - let a2, l2 = "~", c2 = r2; - if (r2 && r2.length !== 0 ? /^\w*$/.test(c2) ? l2 = "==" : (s2 = r2.match(/^(@|!@|~|!~|==|!=)(.*)$/), s2 && (l2 = s2[1], c2 = s2[2])) : (l2 = "!=", c2 = ""), l2 !== "~" && l2 !== "!~" || !/^(\w|\|)*$/.test(c2)) + let r2 = -1, o2 = n2, s2 = n2.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/); + s2 && (s2[3] && (r2 = parseInt(s2[3]), s2[2] && (r2 += 100)), o2 = s2[4]); + let a2, l2 = "~", c2 = o2; + if (o2 && o2.length !== 0 ? /^\w*$/.test(c2) ? l2 = "==" : (s2 = o2.match(/^(@|!@|~|!~|==|!=)(.*)$/), s2 && (l2 = s2[1], c2 = s2[2])) : (l2 = "!=", c2 = ""), l2 !== "~" && l2 !== "!~" || !/^(\w|\|)*$/.test(c2)) if (l2 === "@" || l2 === "!@") { let n3 = e2[c2]; if (!n3) @@ -35055,8 +35055,8 @@ ${Object(zn.b)(wi)} return l2 === "~" ? t3.test(e3) : !t3.test(e3); }; } else - a2 = function(t3, n3, i3, o3) { - return as(e2, "^" + fe(e2, c2, n3, i3, o3) + "$").test(t3); + a2 = function(t3, n3, i3, r3) { + return as(e2, "^" + fe(e2, c2, n3, i3, r3) + "$").test(t3); }; else if (c2.indexOf("$") < 0) { let t3 = pe(e2, c2); @@ -35065,8 +35065,8 @@ ${Object(zn.b)(wi)} }; } else { let t3 = pe(e2, c2); - a2 = function(n3, i3, o3, r3, s3) { - let a3 = fe(e2, t3, i3, o3, r3); + a2 = function(n3, i3, r3, o3, s3) { + let a3 = fe(e2, t3, i3, r3, o3); return l2 === "==" ? n3 === a3 : n3 !== a3; }; } @@ -35076,10 +35076,10 @@ ${Object(zn.b)(wi)} return l2 === "~" ? t3(e3) : !t3(e3); }; } - return o2 === -1 ? {name: n2, value: i2, test: function(e3, t3, n3, i3) { + return r2 === -1 ? {name: n2, value: i2, test: function(e3, t3, n3, i3) { return a2(e3, e3, t3, n3, i3); }} : {name: n2, value: i2, test: function(e3, t3, n3, i3) { - let r3 = function(e4, t4, n4, i4) { + let o3 = function(e4, t4, n4, i4) { if (i4 < 0) return e4; if (i4 < t4.length) @@ -35091,8 +35091,8 @@ ${Object(zn.b)(wi)} return e5[i4]; } return null; - }(e3, t3, n3, o2); - return a2(r3 || "", e3, t3, n3, i3); + }(e3, t3, n3, r2); + return a2(o3 || "", e3, t3, n3, i3); }}; } class cs { @@ -35132,8 +35132,8 @@ ${Object(zn.b)(wi)} if (typeof i2.next != "string") throw ge(t3, "the next state must be a string value in rule: " + n2); { - let o2 = i2.next; - if (!/^(@pop|@push|@popall)$/.test(o2) && (o2[0] === "@" && (o2 = o2.substr(1)), o2.indexOf("$") < 0 && !function(e5, t4) { + let r2 = i2.next; + if (!/^(@pop|@push|@popall)$/.test(r2) && (r2[0] === "@" && (r2 = r2.substr(1)), r2.indexOf("$") < 0 && !function(e5, t4) { let n3 = t4; for (; n3 && n3.length > 0; ) { if (e5.stateNames[n3]) @@ -35142,36 +35142,36 @@ ${Object(zn.b)(wi)} n3 = t5 < 0 ? null : n3.substr(0, t5); } return false; - }(t3, fe(t3, o2, "", [], "")))) + }(t3, fe(t3, r2, "", [], "")))) throw ge(t3, "the next state '" + i2.next + "' is not defined in rule: " + n2); - e4.next = o2; + e4.next = r2; } } return typeof i2.goBack == "number" && (e4.goBack = i2.goBack), typeof i2.switchTo == "string" && (e4.switchTo = i2.switchTo), typeof i2.log == "string" && (e4.log = i2.log), typeof i2.nextEmbedded == "string" && (e4.nextEmbedded = i2.nextEmbedded, t3.usesEmbedded = true), e4; } } if (Array.isArray(i2)) { - let o2 = []; - for (let r2 = 0, s2 = i2.length; r2 < s2; r2++) - o2[r2] = e3(t3, n2, i2[r2]); - return {group: o2}; + let r2 = []; + for (let o2 = 0, s2 = i2.length; o2 < s2; o2++) + r2[o2] = e3(t3, n2, i2[o2]); + return {group: r2}; } if (i2.cases) { - let o2 = []; - for (let r3 in i2.cases) - if (i2.cases.hasOwnProperty(r3)) { - const s2 = e3(t3, n2, i2.cases[r3]); - r3 === "@default" || r3 === "@" || r3 === "" ? o2.push({test: void 0, value: s2, name: r3}) : r3 === "@eos" ? o2.push({test: function(e4, t4, n3, i3) { + let r2 = []; + for (let o3 in i2.cases) + if (i2.cases.hasOwnProperty(o3)) { + const s2 = e3(t3, n2, i2.cases[o3]); + o3 === "@default" || o3 === "@" || o3 === "" ? r2.push({test: void 0, value: s2, name: o3}) : o3 === "@eos" ? r2.push({test: function(e4, t4, n3, i3) { return i3; - }, value: s2, name: r3}) : o2.push(ls(t3, n2, r3, s2)); + }, value: s2, name: o3}) : r2.push(ls(t3, n2, o3, s2)); } - const r2 = t3.defaultToken; + const o2 = t3.defaultToken; return {test: function(e4, t4, n3, i3) { - for (const r3 of o2) { - if (!r3.test || r3.test(e4, t4, n3, i3)) - return r3.value; + for (const o3 of r2) { + if (!o3.test || o3.test(e4, t4, n3, i3)) + return o3.value; } - return r2; + return o2; }}; } throw ge(t3, "an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: " + n2); @@ -35188,17 +35188,17 @@ ${Object(zn.b)(wi)} return e2 = e2.concat(an.a.getLanguages()), e2; } function us(e2) { - let t2 = Or.modeService.get().getLanguageIdentifier(e2); + let t2 = Do.modeService.get().getLanguageIdentifier(e2); return t2 ? t2.id : 0; } function ps(e2, t2) { - let n2 = Or.modeService.get().onDidCreateMode((i2) => { + let n2 = Do.modeService.get().onDidCreateMode((i2) => { i2.getId() === e2 && (n2.dispose(), t2()); }); return n2; } function ms(e2, t2) { - let n2 = Or.modeService.get().getLanguageIdentifier(e2); + let n2 = Do.modeService.get().getLanguageIdentifier(e2); if (!n2) throw new Error("Cannot set configuration for unknown language " + e2); return P.a.register(n2, t2); @@ -35226,60 +35226,60 @@ ${Object(zn.b)(wi)} return this._actual.getInitialState(); } _toClassicTokens(e2, t2, n2) { - let i2 = [], o2 = 0; - for (let r2 = 0, s2 = e2.length; r2 < s2; r2++) { - const s3 = e2[r2]; + let i2 = [], r2 = 0; + for (let o2 = 0, s2 = e2.length; o2 < s2; o2++) { + const s3 = e2[o2]; let a2 = s3.startIndex; - r2 === 0 ? a2 = 0 : a2 < o2 && (a2 = o2), i2[r2] = new le.a(a2 + n2, s3.scopes, t2), o2 = a2; + o2 === 0 ? a2 = 0 : a2 < r2 && (a2 = r2), i2[o2] = new le.a(a2 + n2, s3.scopes, t2), r2 = a2; } return i2; } tokenize(e2, t2, n2) { - let i2, o2 = this._actual.tokenize(e2, t2), r2 = this._toClassicTokens(o2.tokens, this._languageIdentifier.language, n2); - return i2 = o2.endState.equals(t2) ? t2 : o2.endState, new le.b(r2, i2); + let i2, r2 = this._actual.tokenize(e2, t2), o2 = this._toClassicTokens(r2.tokens, this._languageIdentifier.language, n2); + return i2 = r2.endState.equals(t2) ? t2 : r2.endState, new le.b(o2, i2); } _toBinaryTokens(e2, t2) { const n2 = this._languageIdentifier.id, i2 = this._standaloneThemeService.getColorTheme().tokenTheme; - let o2 = [], r2 = 0, s2 = 0; + let r2 = [], o2 = 0, s2 = 0; for (let a3 = 0, l2 = e2.length; a3 < l2; a3++) { const l3 = e2[a3], c2 = i2.match(n2, l3.scopes); - if (r2 > 0 && o2[r2 - 1] === c2) + if (o2 > 0 && r2[o2 - 1] === c2) continue; let d2 = l3.startIndex; - a3 === 0 ? d2 = 0 : d2 < s2 && (d2 = s2), o2[r2++] = d2 + t2, o2[r2++] = c2, s2 = d2; + a3 === 0 ? d2 = 0 : d2 < s2 && (d2 = s2), r2[o2++] = d2 + t2, r2[o2++] = c2, s2 = d2; } - let a2 = new Uint32Array(r2); - for (let e3 = 0; e3 < r2; e3++) - a2[e3] = o2[e3]; + let a2 = new Uint32Array(o2); + for (let e3 = 0; e3 < o2; e3++) + a2[e3] = r2[e3]; return a2; } tokenize2(e2, t2, n2) { - let i2, o2 = this._actual.tokenize(e2, t2), r2 = this._toBinaryTokens(o2.tokens, n2); - return i2 = o2.endState.equals(t2) ? t2 : o2.endState, new le.c(r2, i2); + let i2, r2 = this._actual.tokenize(e2, t2), o2 = this._toBinaryTokens(r2.tokens, n2); + return i2 = r2.endState.equals(t2) ? t2 : r2.endState, new le.c(o2, i2); } } function bs(e2) { return e2 && typeof e2.then == "function"; } function _s(e2, t2) { - let n2 = Or.modeService.get().getLanguageIdentifier(e2); + let n2 = Do.modeService.get().getLanguageIdentifier(e2); if (!n2) throw new Error("Cannot set tokens provider for unknown language " + e2); const i2 = (e3) => function(e4) { return "tokenizeEncoded" in e4; - }(e3) ? new gs(e3) : new fs(Or.standaloneThemeService.get(), n2, e3); + }(e3) ? new gs(e3) : new fs(Do.standaloneThemeService.get(), n2, e3); return bs(t2) ? k.C.registerPromise(e2, t2.then((e3) => i2(e3))) : k.C.register(e2, i2(t2)); } function vs(e2, t2) { const n2 = (t3) => function(e3, t4, n3, i2) { return new ke(e3, t4, n3, i2); - }(Or.modeService.get(), Or.standaloneThemeService.get(), e2, function(e3, t4) { + }(Do.modeService.get(), Do.standaloneThemeService.get(), e2, function(e3, t4) { if (!t4 || typeof t4 != "object") throw new Error("Monarch: expecting a language definition object"); let n3 = {}; - n3.languageId = e3, n3.noThrow = false, n3.maxStack = 100, n3.start = typeof t4.start == "string" ? t4.start : null, n3.ignoreCase = os(t4.ignoreCase, false), n3.unicode = os(t4.unicode, false), n3.tokenPostfix = rs(t4.tokenPostfix, "." + n3.languageId), n3.defaultToken = rs(t4.defaultToken, "source"), n3.usesEmbedded = false; + n3.languageId = e3, n3.noThrow = false, n3.maxStack = 100, n3.start = typeof t4.start == "string" ? t4.start : null, n3.ignoreCase = rs(t4.ignoreCase, false), n3.unicode = rs(t4.unicode, false), n3.tokenPostfix = os(t4.tokenPostfix, "." + n3.languageId), n3.defaultToken = os(t4.defaultToken, "source"), n3.usesEmbedded = false; let i2 = t4; - function o2(e4, r3, s2) { + function r2(e4, o3, s2) { for (const a2 of s2) { let s3 = a2.include; if (s3) { @@ -35287,7 +35287,7 @@ ${Object(zn.b)(wi)} throw ge(n3, "an 'include' attribute must be a string at: " + e4); if (s3[0] === "@" && (s3 = s3.substr(1)), !t4.tokenizer[s3]) throw ge(n3, "include target '" + s3 + "' is not defined at: " + e4); - o2(e4 + "." + s3, r3, t4.tokenizer[s3]); + r2(e4 + "." + s3, o3, t4.tokenizer[s3]); } else { const t5 = new cs(e4); if (Array.isArray(a2) && a2.length >= 1 && a2.length <= 3) @@ -35307,9 +35307,9 @@ ${Object(zn.b)(wi)} else { if (!a2.regex) throw ge(n3, "a rule must either be an array, or an object with a 'regex' or 'include' field at: " + e4); - a2.name && typeof a2.name == "string" && (t5.name = a2.name), a2.matchOnlyAtStart && (t5.matchOnlyAtLineStart = os(a2.matchOnlyAtLineStart, false)), t5.setRegex(i2, a2.regex), t5.setAction(i2, a2.action); + a2.name && typeof a2.name == "string" && (t5.name = a2.name), a2.matchOnlyAtStart && (t5.matchOnlyAtLineStart = rs(a2.matchOnlyAtLineStart, false)), t5.setRegex(i2, a2.regex), t5.setAction(i2, a2.action); } - r3.push(t5); + o3.push(t5); } } } @@ -35320,23 +35320,23 @@ ${Object(zn.b)(wi)} if (t4.tokenizer.hasOwnProperty(e4)) { n3.start || (n3.start = e4); const i3 = t4.tokenizer[e4]; - n3.tokenizer[e4] = new Array(), o2("tokenizer." + e4, n3.tokenizer[e4], i3); + n3.tokenizer[e4] = new Array(), r2("tokenizer." + e4, n3.tokenizer[e4], i3); } if (n3.usesEmbedded = i2.usesEmbedded, t4.brackets) { if (!Array.isArray(t4.brackets)) throw ge(n3, "the 'brackets' attribute must be defined as an array"); } else t4.brackets = [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}]; - let r2 = []; + let o2 = []; for (let e4 of t4.brackets) { let t5 = e4; if (t5 && Array.isArray(t5) && t5.length === 3 && (t5 = {token: t5[2], open: t5[0], close: t5[1]}), t5.open === t5.close) throw ge(n3, "open and close brackets in a 'brackets' attribute must be different: " + t5.open + "\n hint: use the 'bracket' attribute if matching on equal brackets is required."); if (typeof t5.open != "string" || typeof t5.token != "string" || typeof t5.close != "string") throw ge(n3, "every element in the 'brackets' array must be a '{open,close,token}' object or array"); - r2.push({token: t5.token + n3.tokenPostfix, open: pe(n3, t5.open), close: pe(n3, t5.close)}); + o2.push({token: t5.token + n3.tokenPostfix, open: pe(n3, t5.open), close: pe(n3, t5.close)}); } - return n3.brackets = r2, n3.noThrow = true, n3; + return n3.brackets = o2, n3.noThrow = true, n3; }(e2, t3)); return bs(t2) ? k.C.registerPromise(e2, t2.then((e3) => n2(e3))) : k.C.register(e2, n2(t2)); } @@ -35351,10 +35351,10 @@ ${Object(zn.b)(wi)} } function xs(e2, t2) { return k.p.register(e2, {provideHover: (e3, n2, i2) => { - let o2 = e3.getWordAtPosition(n2); + let r2 = e3.getWordAtPosition(n2); return Promise.resolve(t2.provideHover(e3, n2, i2)).then((e4) => { if (e4) - return !e4.range && o2 && (e4.range = new M.a(n2.lineNumber, o2.startColumn, n2.lineNumber, o2.endColumn)), e4.range || (e4.range = new M.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column)), e4; + return !e4.range && r2 && (e4.range = new M.a(n2.lineNumber, r2.startColumn, n2.lineNumber, r2.endColumn)), e4.range || (e4.range = new M.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column)), e4; }); }}); } @@ -35379,13 +35379,13 @@ ${Object(zn.b)(wi)} function Is(e2, t2) { return k.b.register(e2, t2); } - function Os(e2, t2) { - return k.a.register(e2, {provideCodeActions: (e3, n2, i2, o2) => { - let r2 = Or.markerService.get().read({resource: e3.uri}).filter((e4) => M.a.areIntersectingOrTouching(e4, n2)); - return t2.provideCodeActions(e3, n2, {markers: r2, only: i2.only}, o2); + function Ds(e2, t2) { + return k.a.register(e2, {provideCodeActions: (e3, n2, i2, r2) => { + let o2 = Do.markerService.get().read({resource: e3.uri}).filter((e4) => M.a.areIntersectingOrTouching(e4, n2)); + return t2.provideCodeActions(e3, n2, {markers: o2, only: i2.only}, r2); }}); } - function Ds(e2, t2) { + function Os(e2, t2) { return k.g.register(e2, t2); } function As(e2, t2) { @@ -35419,48 +35419,48 @@ ${Object(zn.b)(wi)} return k.k.register(e2, t2); } const Us = self; - o.g.wrappingIndent.defaultValue = 0, o.g.glyphMargin.defaultValue = false, o.g.autoIndent.defaultValue = 3, o.g.overviewRulerLanes.defaultValue = 2; - const Hs = Object(r.a)(); - Hs.editor = {create: Pr, onDidCreateEditor: Fr, createDiffEditor: Wr, createDiffNavigator: zr, createModel: jr, setModelLanguage: Vr, setModelMarkers: Ur, getModelMarkers: Hr, getModels: $r, getModel: qr, onDidCreateModel: Kr, onWillDisposeModel: Gr, onDidChangeModelLanguage: Yr, createWebWorker: Zr, colorizeElement: Xr, colorize: Qr, colorizeModelLine: Jr, tokenize: es, defineTheme: ts, setTheme: ns, remeasureFonts: is, AccessibilitySupport: oe.a, ContentWidgetPositionPreference: oe.f, CursorChangeReason: oe.g, DefaultEndOfLine: oe.h, EditorAutoIndentStrategy: oe.j, EditorOption: oe.k, EndOfLinePreference: oe.l, EndOfLineSequence: oe.m, MinimapPosition: oe.r, MouseTargetType: oe.s, OverlayWidgetPositionPreference: oe.t, OverviewRulerLane: oe.u, RenderLineNumbersType: oe.v, RenderMinimap: oe.w, ScrollbarVisibility: oe.y, ScrollType: oe.x, TextEditorCursorBlinkingStyle: oe.D, TextEditorCursorStyle: oe.E, TrackedRangeStickiness: oe.F, WrappingIndent: oe.G, ConfigurationChangedEvent: o.b, BareFontInfo: C.a, FontInfo: C.b, TextModelResolvedOptions: S.e, FindMatch: S.b, EditorType: x.a, EditorOptions: o.g}, Hs.languages = {register: ds, getLanguages: hs, onLanguage: ps, getEncodedLanguageId: us, setLanguageConfiguration: ms, setTokensProvider: _s, setMonarchTokensProvider: vs, registerReferenceProvider: ws, registerRenameProvider: ys, registerCompletionItemProvider: Ps, registerSignatureHelpProvider: Cs, registerHoverProvider: xs, registerDocumentSymbolProvider: Ss, registerDocumentHighlightProvider: ks, registerOnTypeRenameProvider: Es, registerDefinitionProvider: Ts, registerImplementationProvider: Ls, registerTypeDefinitionProvider: Ns, registerCodeLensProvider: Is, registerCodeActionProvider: Os, registerDocumentFormattingEditProvider: Ds, registerDocumentRangeFormattingEditProvider: As, registerOnTypeFormattingEditProvider: Rs, registerLinkProvider: Ms, registerColorProvider: Fs, registerFoldingRangeProvider: Ws, registerDeclarationProvider: zs, registerSelectionRangeProvider: Bs, registerDocumentSemanticTokensProvider: js, registerDocumentRangeSemanticTokensProvider: Vs, DocumentHighlightKind: oe.i, CompletionItemKind: oe.c, CompletionItemTag: oe.d, CompletionItemInsertTextRule: oe.b, SymbolKind: oe.B, SymbolTag: oe.C, IndentAction: oe.n, CompletionTriggerKind: oe.e, SignatureHelpTriggerKind: oe.A, FoldingRangeKind: k.n}; - const qs = Hs.CancellationTokenSource, $s = Hs.Emitter, Ks = Hs.KeyCode, Gs = Hs.KeyMod, Ys = Hs.Position, Zs = Hs.Range, Xs = Hs.Selection, Qs = Hs.SelectionDirection, Js = Hs.MarkerSeverity, ea = Hs.MarkerTag, ta = Hs.Uri, na = Hs.Token, ia = Hs.editor, oa = Hs.languages; + r.g.wrappingIndent.defaultValue = 0, r.g.glyphMargin.defaultValue = false, r.g.autoIndent.defaultValue = 3, r.g.overviewRulerLanes.defaultValue = 2; + const Hs = Object(o.a)(); + Hs.editor = {create: Po, onDidCreateEditor: Fo, createDiffEditor: Wo, createDiffNavigator: zo, createModel: jo, setModelLanguage: Vo, setModelMarkers: Uo, getModelMarkers: Ho, getModels: $o, getModel: qo, onDidCreateModel: Ko, onWillDisposeModel: Go, onDidChangeModelLanguage: Yo, createWebWorker: Zo, colorizeElement: Xo, colorize: Qo, colorizeModelLine: Jo, tokenize: es, defineTheme: ts, setTheme: ns, remeasureFonts: is, AccessibilitySupport: re.a, ContentWidgetPositionPreference: re.f, CursorChangeReason: re.g, DefaultEndOfLine: re.h, EditorAutoIndentStrategy: re.j, EditorOption: re.k, EndOfLinePreference: re.l, EndOfLineSequence: re.m, MinimapPosition: re.r, MouseTargetType: re.s, OverlayWidgetPositionPreference: re.t, OverviewRulerLane: re.u, RenderLineNumbersType: re.v, RenderMinimap: re.w, ScrollbarVisibility: re.y, ScrollType: re.x, TextEditorCursorBlinkingStyle: re.D, TextEditorCursorStyle: re.E, TrackedRangeStickiness: re.F, WrappingIndent: re.G, ConfigurationChangedEvent: r.b, BareFontInfo: C.a, FontInfo: C.b, TextModelResolvedOptions: S.e, FindMatch: S.b, EditorType: x.a, EditorOptions: r.g}, Hs.languages = {register: ds, getLanguages: hs, onLanguage: ps, getEncodedLanguageId: us, setLanguageConfiguration: ms, setTokensProvider: _s, setMonarchTokensProvider: vs, registerReferenceProvider: ws, registerRenameProvider: ys, registerCompletionItemProvider: Ps, registerSignatureHelpProvider: Cs, registerHoverProvider: xs, registerDocumentSymbolProvider: Ss, registerDocumentHighlightProvider: ks, registerOnTypeRenameProvider: Es, registerDefinitionProvider: Ts, registerImplementationProvider: Ls, registerTypeDefinitionProvider: Ns, registerCodeLensProvider: Is, registerCodeActionProvider: Ds, registerDocumentFormattingEditProvider: Os, registerDocumentRangeFormattingEditProvider: As, registerOnTypeFormattingEditProvider: Rs, registerLinkProvider: Ms, registerColorProvider: Fs, registerFoldingRangeProvider: Ws, registerDeclarationProvider: zs, registerSelectionRangeProvider: Bs, registerDocumentSemanticTokensProvider: js, registerDocumentRangeSemanticTokensProvider: Vs, DocumentHighlightKind: re.i, CompletionItemKind: re.c, CompletionItemTag: re.d, CompletionItemInsertTextRule: re.b, SymbolKind: re.B, SymbolTag: re.C, IndentAction: re.n, CompletionTriggerKind: re.e, SignatureHelpTriggerKind: re.A, FoldingRangeKind: k.n}; + const qs = Hs.CancellationTokenSource, $s = Hs.Emitter, Ks = Hs.KeyCode, Gs = Hs.KeyMod, Ys = Hs.Position, Zs = Hs.Range, Xs = Hs.Selection, Qs = Hs.SelectionDirection, Js = Hs.MarkerSeverity, ea = Hs.MarkerTag, ta = Hs.Uri, na = Hs.Token, ia = Hs.editor, ra = Hs.languages; Us.monaco = Hs, Us.require !== void 0 && typeof Us.require.config == "function" && Us.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"]}); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("modeService"); + const r = Object(i.c)("modeService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(18), o = n(141); + var i = n(18), r = n(141); n.d(t, "b", function() { - return o.a; + return r.a; }); - const r = Object(i.c)("quickInputService"); + const o = Object(i.c)("quickInputService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(12); - class o { + class r { constructor(e2, t2) { this._tokens = e2, this._tokensCount = this._tokens.length >>> 1, this._text = t2; } equals(e2) { - return e2 instanceof o && this.slicedEquals(e2, 0, this._tokensCount); + return e2 instanceof r && this.slicedEquals(e2, 0, this._tokensCount); } slicedEquals(e2, t2, n2) { if (this._text !== e2._text) return false; if (this._tokensCount !== e2._tokensCount) return false; - const i2 = t2 << 1, o2 = i2 + (n2 << 1); - for (let t3 = i2; t3 < o2; t3++) + const i2 = t2 << 1, r2 = i2 + (n2 << 1); + for (let t3 = i2; t3 < r2; t3++) if (this._tokens[t3] !== e2._tokens[t3]) return false; return true; @@ -35501,13 +35501,13 @@ ${Object(zn.b)(wi)} return this._tokens[e2 << 1]; } findTokenIndexAtOffset(e2) { - return o.findIndexInTokensArray(this._tokens, e2); + return r.findIndexInTokensArray(this._tokens, e2); } inflate() { return this; } sliceAndInflate(e2, t2, n2) { - return new r(this, e2, t2, n2); + return new o(this, e2, t2, n2); } static convertToEndOffset(e2, t2) { const n2 = (e2.length >>> 1) - 1; @@ -35520,15 +35520,15 @@ ${Object(zn.b)(wi)} return 0; let n2 = 0, i2 = (e2.length >>> 1) - 1; for (; n2 < i2; ) { - const o2 = n2 + Math.floor((i2 - n2) / 2), r2 = e2[o2 << 1]; - if (r2 === t2) - return o2 + 1; - r2 < t2 ? n2 = o2 + 1 : r2 > t2 && (i2 = o2); + const r2 = n2 + Math.floor((i2 - n2) / 2), o2 = e2[r2 << 1]; + if (o2 === t2) + return r2 + 1; + o2 < t2 ? n2 = r2 + 1 : o2 > t2 && (i2 = r2); } return n2; } } - class r { + class o { constructor(e2, t2, n2, i2) { this._source = e2, this._startOffset = t2, this._endOffset = n2, this._deltaOffset = i2, this._firstTokenIndex = e2.findTokenIndexAtOffset(t2), this._tokensCount = 0; for (let t3 = this._firstTokenIndex, i3 = e2.getCount(); t3 < i3; t3++) { @@ -35538,7 +35538,7 @@ ${Object(zn.b)(wi)} } } equals(e2) { - return e2 instanceof r && (this._startOffset === e2._startOffset && this._endOffset === e2._endOffset && this._deltaOffset === e2._deltaOffset && this._source.slicedEquals(e2._source, this._firstTokenIndex, this._tokensCount)); + return e2 instanceof o && (this._startOffset === e2._startOffset && this._endOffset === e2._endOffset && this._deltaOffset === e2._deltaOffset && this._source.slicedEquals(e2._source, this._firstTokenIndex, this._tokensCount)); } getCount() { return this._tokensCount; @@ -35563,21 +35563,21 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }), n.d(t, "a", function() { return s; }); var i = n(143); - function o(e2) { + function r(e2) { return !(!e2 || typeof e2.getEditorType != "function") && e2.getEditorType() === i.a.ICodeEditor; } - function r(e2) { + function o(e2) { return !(!e2 || typeof e2.getEditorType != "function") && e2.getEditorType() === i.a.IDiffEditor; } function s(e2) { - return o(e2) ? e2 : r(e2) ? e2.getModifiedEditor() : null; + return r(e2) ? e2 : o(e2) ? e2.getModifiedEditor() : null; } }, function(e, t, n) { "use strict"; @@ -35599,13 +35599,13 @@ ${Object(zn.b)(wi)} return q; }); n(197); - var i = n(2), o = n(14), r = n(15), s = n(98), a = n(1), l = n(11), c = n(61), d = n(67), h = n(6), u = n(44); + var i = n(2), r = n(14), o = n(16), s = n(98), a = n(1), l = n(11), c = n(61), d = n(67), h = n(6), u = n(44); class p extends Error { constructor(e2, t2) { super(`ListError [${e2}] ${t2}`); } } - var m = n(162), g = n(16), f = n(46); + var m = n(162), g = n(15), f = n(46); class b { constructor(e2) { this.spliceables = e2; @@ -35615,13 +35615,13 @@ ${Object(zn.b)(wi)} } } var _, v = n(118), w = n(71), y = n(66), C = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }; class x { constructor(e2) { @@ -35634,7 +35634,7 @@ ${Object(zn.b)(wi)} return e2; } renderElement(e2, t2, n2) { - const i2 = Object(r.j)(this.renderedElements, (e3) => e3.templateData === n2); + const i2 = Object(o.j)(this.renderedElements, (e3) => e3.templateData === n2); if (i2 >= 0) { const e3 = this.renderedElements[i2]; this.trait.unrender(n2), e3.index = t2; @@ -35646,8 +35646,8 @@ ${Object(zn.b)(wi)} } splice(e2, t2, n2) { const i2 = []; - for (const o2 of this.renderedElements) - o2.index < e2 ? i2.push(o2) : o2.index >= e2 + t2 && i2.push({index: o2.index + n2 - t2, templateData: o2.templateData}); + for (const r2 of this.renderedElements) + r2.index < e2 ? i2.push(r2) : r2.index >= e2 + t2 && i2.push({index: r2.index + n2 - t2, templateData: r2.templateData}); this.renderedElements = i2; } renderIndexes(e2) { @@ -35655,7 +35655,7 @@ ${Object(zn.b)(wi)} e2.indexOf(t2) > -1 && this.trait.renderIndex(t2, n2); } disposeTemplate(e2) { - const t2 = Object(r.j)(this.renderedElements, (t3) => t3.templateData === e2); + const t2 = Object(o.j)(this.renderedElements, (t3) => t3.templateData === e2); t2 < 0 || this.renderedElements.splice(t2, 1); } } @@ -35670,8 +35670,8 @@ ${Object(zn.b)(wi)} return new x(this); } splice(e2, t2, n2) { - const i2 = n2.length - t2, o2 = e2 + t2, r2 = [...this.sortedIndexes.filter((t3) => t3 < e2), ...n2.map((t3, n3) => t3 ? n3 + e2 : -1).filter((e3) => e3 !== -1), ...this.sortedIndexes.filter((e3) => e3 >= o2).map((e3) => e3 + i2)]; - this.renderer.splice(e2, t2, n2.length), this._set(r2, r2); + const i2 = n2.length - t2, r2 = e2 + t2, o2 = [...this.sortedIndexes.filter((t3) => t3 < e2), ...n2.map((t3, n3) => t3 ? n3 + e2 : -1).filter((e3) => e3 !== -1), ...this.sortedIndexes.filter((e3) => e3 >= r2).map((e3) => e3 + i2)]; + this.renderer.splice(e2, t2, n2.length), this._set(o2, o2); } renderIndex(e2, t2) { a.ab(t2, this._trait, this.contains(e2)); @@ -35683,16 +35683,16 @@ ${Object(zn.b)(wi)} return this._set(e2, [...e2].sort(j), t2); } _set(e2, t2, n2) { - const i2 = this.indexes, o2 = this.sortedIndexes; + const i2 = this.indexes, r2 = this.sortedIndexes; this.indexes = e2, this.sortedIndexes = t2; - const r2 = B(o2, e2); - return this.renderer.renderIndexes(r2), this._onChange.fire({indexes: e2, browserEvent: n2}), i2; + const o2 = B(r2, e2); + return this.renderer.renderIndexes(o2), this._onChange.fire({indexes: e2, browserEvent: n2}), i2; } get() { return this.indexes; } contains(e2) { - return Object(r.c)(this.sortedIndexes, e2, j) >= 0; + return Object(o.c)(this.sortedIndexes, e2, j) >= 0; } dispose() { Object(i.f)(this._onChange); @@ -35714,8 +35714,8 @@ ${Object(zn.b)(wi)} splice(e2, t2, n2) { if (!this.identityProvider) return this.trait.splice(e2, t2, n2.map(() => false)); - const i2 = this.trait.get().map((e3) => this.identityProvider.getId(this.view.element(e3)).toString()), o2 = n2.map((e3) => i2.indexOf(this.identityProvider.getId(e3).toString()) > -1); - this.trait.splice(e2, t2, o2); + const i2 = this.trait.get().map((e3) => this.identityProvider.getId(this.view.element(e3)).toString()), r2 = n2.map((e3) => i2.indexOf(this.identityProvider.getId(e3).toString()) > -1); + this.trait.splice(e2, t2, r2); } } function T(e2) { @@ -35727,8 +35727,8 @@ ${Object(zn.b)(wi)} class N { constructor(e2, t2, n2) { this.list = e2, this.view = t2, this.disposables = new i.b(); - const o2 = n2.multipleSelectionSupport !== false, r2 = h.b.chain(Object(u.a)(t2.domNode, "keydown")).filter((e3) => !T(e3.target)).map((e3) => new d.a(e3)); - r2.filter((e3) => e3.keyCode === 3).on(this.onEnter, this, this.disposables), r2.filter((e3) => e3.keyCode === 16).on(this.onUpArrow, this, this.disposables), r2.filter((e3) => e3.keyCode === 18).on(this.onDownArrow, this, this.disposables), r2.filter((e3) => e3.keyCode === 11).on(this.onPageUpArrow, this, this.disposables), r2.filter((e3) => e3.keyCode === 12).on(this.onPageDownArrow, this, this.disposables), r2.filter((e3) => e3.keyCode === 9).on(this.onEscape, this, this.disposables), o2 && r2.filter((e3) => (l.f ? e3.metaKey : e3.ctrlKey) && e3.keyCode === 31).on(this.onCtrlA, this, this.disposables); + const r2 = n2.multipleSelectionSupport !== false, o2 = h.b.chain(Object(u.a)(t2.domNode, "keydown")).filter((e3) => !T(e3.target)).map((e3) => new d.a(e3)); + o2.filter((e3) => e3.keyCode === 3).on(this.onEnter, this, this.disposables), o2.filter((e3) => e3.keyCode === 16).on(this.onUpArrow, this, this.disposables), o2.filter((e3) => e3.keyCode === 18).on(this.onDownArrow, this, this.disposables), o2.filter((e3) => e3.keyCode === 11).on(this.onPageUpArrow, this, this.disposables), o2.filter((e3) => e3.keyCode === 12).on(this.onPageDownArrow, this, this.disposables), o2.filter((e3) => e3.keyCode === 9).on(this.onEscape, this, this.disposables), r2 && o2.filter((e3) => (l.f ? e3.metaKey : e3.ctrlKey) && e3.keyCode === 31).on(this.onCtrlA, this, this.disposables); } onEnter(e2) { e2.preventDefault(), e2.stopPropagation(), this.list.setSelection(this.list.getFocus(), e2.browserEvent); @@ -35746,7 +35746,7 @@ ${Object(zn.b)(wi)} e2.preventDefault(), e2.stopPropagation(), this.list.focusNextPage(e2.browserEvent), this.list.reveal(this.list.getFocus()[0]), this.view.domNode.focus(); } onCtrlA(e2) { - e2.preventDefault(), e2.stopPropagation(), this.list.setSelection(Object(r.s)(this.list.length), e2.browserEvent), this.view.domNode.focus(); + e2.preventDefault(), e2.stopPropagation(), this.list.setSelection(Object(o.s)(this.list.length), e2.browserEvent), this.view.domNode.focus(); } onEscape(e2) { e2.preventDefault(), e2.stopPropagation(), this.list.setSelection([], e2.browserEvent), this.view.domNode.focus(); @@ -35763,9 +35763,9 @@ ${Object(zn.b)(wi)} return !(e2.ctrlKey || e2.metaKey || e2.altKey) && (e2.keyCode >= 31 && e2.keyCode <= 56 || e2.keyCode >= 21 && e2.keyCode <= 30 || e2.keyCode >= 93 && e2.keyCode <= 102 || e2.keyCode >= 80 && e2.keyCode <= 90); } }(); - class O { - constructor(e2, t2, n2, o2) { - this.list = e2, this.view = t2, this.keyboardNavigationLabelProvider = n2, this.delegate = o2, this.enabled = false, this.state = _.Idle, this.automaticKeyboardNavigation = true, this.triggered = false, this.previouslyFocused = -1, this.enabledDisposables = new i.b(), this.disposables = new i.b(), this.updateOptions(e2.options); + class D { + constructor(e2, t2, n2, r2) { + this.list = e2, this.view = t2, this.keyboardNavigationLabelProvider = n2, this.delegate = r2, this.enabled = false, this.state = _.Idle, this.automaticKeyboardNavigation = true, this.triggered = false, this.previouslyFocused = -1, this.enabledDisposables = new i.b(), this.disposables = new i.b(), this.updateOptions(e2.options); } updateOptions(e2) { e2.enableKeyboardNavigation === void 0 || !!e2.enableKeyboardNavigation ? this.enable() : this.disable(), e2.automaticKeyboardNavigation !== void 0 && (this.automaticKeyboardNavigation = e2.automaticKeyboardNavigation); @@ -35796,16 +35796,16 @@ ${Object(zn.b)(wi)} const t2 = this.list.getFocus(), n2 = t2.length > 0 ? t2[0] : 0, i2 = this.state === _.Idle ? 1 : 0; this.state = _.Typing; for (let t3 = 0; t3 < this.list.length; t3++) { - const o2 = (n2 + t3 + i2) % this.list.length, r2 = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o2)), s2 = r2 && r2.toString(); + const r2 = (n2 + t3 + i2) % this.list.length, o2 = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r2)), s2 = o2 && o2.toString(); if (s2 === void 0 || Object(w.h)(e2, s2)) - return this.previouslyFocused = n2, this.list.setFocus([o2]), void this.list.reveal(o2); + return this.previouslyFocused = n2, this.list.setFocus([r2]), void this.list.reveal(r2); } } dispose() { this.disable(), this.enabledDisposables.dispose(), this.disposables.dispose(); } } - class D { + class O { constructor(e2, t2) { this.list = e2, this.view = t2, this.disposables = new i.b(); h.b.chain(Object(u.a)(t2.domNode, "keydown")).filter((e3) => !T(e3.target)).map((e3) => new d.a(e3)).filter((e3) => !(e3.keyCode !== 2 || e3.ctrlKey || e3.metaKey || e3.shiftKey || e3.altKey)).on(this.onTab, this, this.disposables); @@ -35822,8 +35822,8 @@ ${Object(zn.b)(wi)} const i2 = n2.querySelector("[tabIndex]"); if (!(i2 && i2 instanceof HTMLElement && i2.tabIndex !== -1)) return; - const o2 = window.getComputedStyle(i2); - o2.visibility !== "hidden" && o2.display !== "none" && (e2.preventDefault(), e2.stopPropagation(), i2.focus()); + const r2 = window.getComputedStyle(i2); + r2.visibility !== "hidden" && r2.display !== "none" && (e2.preventDefault(), e2.stopPropagation(), i2.focus()); } dispose() { this.disposables.dispose(); @@ -35867,8 +35867,8 @@ ${Object(zn.b)(wi)} const n2 = this.list.getSelection(); t2 = t2 === void 0 ? n2[0] : t2; const i2 = e2.index; - return i2 === void 0 ? (this.list.setFocus([], e2.browserEvent), void this.list.setSelection([], e2.browserEvent)) : this.multipleSelectionSupport && this.isSelectionRangeChangeEvent(e2) || this.multipleSelectionSupport && this.isSelectionChangeEvent(e2) ? this.changeSelection(e2, t2) : (this.list.setFocus([i2], e2.browserEvent), (o2 = e2.browserEvent) instanceof MouseEvent && o2.button === 2 || this.list.setSelection([i2], e2.browserEvent), void this._onPointer.fire(e2)); - var o2; + return i2 === void 0 ? (this.list.setFocus([], e2.browserEvent), void this.list.setSelection([], e2.browserEvent)) : this.multipleSelectionSupport && this.isSelectionRangeChangeEvent(e2) || this.multipleSelectionSupport && this.isSelectionChangeEvent(e2) ? this.changeSelection(e2, t2) : (this.list.setFocus([i2], e2.browserEvent), (r2 = e2.browserEvent) instanceof MouseEvent && r2.button === 2 || this.list.setSelection([i2], e2.browserEvent), void this._onPointer.fire(e2)); + var r2; } onDoubleClick(e2) { if (T(e2.browserEvent.target) || L(e2.browserEvent.target)) @@ -35881,35 +35881,35 @@ ${Object(zn.b)(wi)} changeSelection(e2, t2) { const n2 = e2.index; if (this.isSelectionRangeChangeEvent(e2) && t2 !== void 0) { - const i2 = Math.min(t2, n2), o2 = Math.max(t2, n2), s2 = Object(r.s)(i2, o2 + 1), a2 = this.list.getSelection(), l2 = function(e3, t3) { + const i2 = Math.min(t2, n2), r2 = Math.max(t2, n2), s2 = Object(o.s)(i2, r2 + 1), a2 = this.list.getSelection(), l2 = function(e3, t3) { const n3 = e3.indexOf(t3); if (n3 === -1) return []; const i3 = []; - let o3 = n3 - 1; - for (; o3 >= 0 && e3[o3] === t3 - (n3 - o3); ) - i3.push(e3[o3--]); - i3.reverse(), o3 = n3; - for (; o3 < e3.length && e3[o3] === t3 + (o3 - n3); ) - i3.push(e3[o3++]); + let r3 = n3 - 1; + for (; r3 >= 0 && e3[r3] === t3 - (n3 - r3); ) + i3.push(e3[r3--]); + i3.reverse(), r3 = n3; + for (; r3 < e3.length && e3[r3] === t3 + (r3 - n3); ) + i3.push(e3[r3++]); return i3; }(B(a2, [t2]), t2); if (l2.length === 0) return; const c2 = B(s2, function(e3, t3) { const n3 = []; - let i3 = 0, o3 = 0; - for (; i3 < e3.length || o3 < t3.length; ) + let i3 = 0, r3 = 0; + for (; i3 < e3.length || r3 < t3.length; ) if (i3 >= e3.length) - n3.push(t3[o3++]); - else if (o3 >= t3.length) + n3.push(t3[r3++]); + else if (r3 >= t3.length) n3.push(e3[i3++]); else { - if (e3[i3] === t3[o3]) { - i3++, o3++; + if (e3[i3] === t3[r3]) { + i3++, r3++; continue; } - e3[i3] < t3[o3] ? n3.push(e3[i3++]) : o3++; + e3[i3] < t3[r3] ? n3.push(e3[i3++]) : r3++; } return n3; }(a2, l2)); @@ -35952,18 +35952,18 @@ ${Object(zn.b)(wi)} }}}; function B(e2, t2) { const n2 = []; - let i2 = 0, o2 = 0; - for (; i2 < e2.length || o2 < t2.length; ) + let i2 = 0, r2 = 0; + for (; i2 < e2.length || r2 < t2.length; ) if (i2 >= e2.length) - n2.push(t2[o2++]); - else if (o2 >= t2.length) + n2.push(t2[r2++]); + else if (r2 >= t2.length) n2.push(e2[i2++]); else { - if (e2[i2] === t2[o2]) { - n2.push(e2[i2]), i2++, o2++; + if (e2[i2] === t2[r2]) { + n2.push(e2[i2]), i2++, r2++; continue; } - e2[i2] < t2[o2] ? n2.push(e2[i2++]) : n2.push(t2[o2++]); + e2[i2] < t2[r2] ? n2.push(e2[i2++]) : n2.push(t2[r2++]); } return n2; } @@ -35979,14 +35979,14 @@ ${Object(zn.b)(wi)} return this.renderers.map((t2) => t2.renderTemplate(e2)); } renderElement(e2, t2, n2, i2) { - let o2 = 0; - for (const r2 of this.renderers) - r2.renderElement(e2, t2, n2[o2++], i2); + let r2 = 0; + for (const o2 of this.renderers) + o2.renderElement(e2, t2, n2[r2++], i2); } disposeElement(e2, t2, n2, i2) { - let o2 = 0; - for (const r2 of this.renderers) - r2.disposeElement && r2.disposeElement(e2, t2, n2[o2], i2), o2 += 1; + let r2 = 0; + for (const o2 of this.renderers) + o2.disposeElement && o2.disposeElement(e2, t2, n2[r2], i2), r2 += 1; } disposeTemplate(e2) { let t2 = 0; @@ -36004,8 +36004,8 @@ ${Object(zn.b)(wi)} renderElement(e2, t2, n2) { const i2 = this.accessibilityProvider.getAriaLabel(e2); i2 ? n2.setAttribute("aria-label", i2) : n2.removeAttribute("aria-label"); - const o2 = this.accessibilityProvider.getAriaLevel && this.accessibilityProvider.getAriaLevel(e2); - typeof o2 == "number" ? n2.setAttribute("aria-level", "" + o2) : n2.removeAttribute("aria-level"); + const r2 = this.accessibilityProvider.getAriaLevel && this.accessibilityProvider.getAriaLevel(e2); + typeof r2 == "number" ? n2.setAttribute("aria-level", "" + r2) : n2.removeAttribute("aria-level"); } disposeTemplate(e2) { } @@ -36039,29 +36039,29 @@ ${Object(zn.b)(wi)} } } class q { - constructor(e2, t2, n2, o2, r2 = z) { + constructor(e2, t2, n2, r2, o2 = z) { var s2; - this.user = e2, this._options = r2, this.eventBufferer = new h.c(), this._ariaLabel = "", this.disposables = new i.b(), this.didJustPressContextMenuKey = false, this._onDidDispose = new h.a(), this.onDidDispose = this._onDidDispose.event; + this.user = e2, this._options = o2, this.eventBufferer = new h.c(), this._ariaLabel = "", this.disposables = new i.b(), this.didJustPressContextMenuKey = false, this._onDidDispose = new h.a(), this.onDidDispose = this._onDidDispose.event; const l2 = this._options.accessibilityProvider && this._options.accessibilityProvider.getWidgetRole ? (s2 = this._options.accessibilityProvider) === null || s2 === void 0 ? void 0 : s2.getWidgetRole() : "list"; - this.selection = new k(l2 !== "listbox"), this.focus = new S("focused"), Object(f.g)(r2, W, false); + this.selection = new k(l2 !== "listbox"), this.focus = new S("focused"), Object(f.g)(o2, W, false); const c2 = [this.focus.renderer, this.selection.renderer]; - this.accessibilityProvider = r2.accessibilityProvider, this.accessibilityProvider && (c2.push(new U(this.accessibilityProvider)), this.accessibilityProvider.onDidChangeActiveDescendant && this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant, this, this.disposables)), o2 = o2.map((e3) => new V(e3.templateId, [...c2, e3])); - const d2 = Object.assign(Object.assign({}, r2), {dnd: r2.dnd && new H(this, r2.dnd)}); - if (this.view = new m.b(t2, n2, o2, d2), this.view.domNode.setAttribute("role", l2), r2.styleController) - this.styleController = r2.styleController(this.view.domId); + this.accessibilityProvider = o2.accessibilityProvider, this.accessibilityProvider && (c2.push(new U(this.accessibilityProvider)), this.accessibilityProvider.onDidChangeActiveDescendant && this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant, this, this.disposables)), r2 = r2.map((e3) => new V(e3.templateId, [...c2, e3])); + const d2 = Object.assign(Object.assign({}, o2), {dnd: o2.dnd && new H(this, o2.dnd)}); + if (this.view = new m.b(t2, n2, r2, d2), this.view.domNode.setAttribute("role", l2), o2.styleController) + this.styleController = o2.styleController(this.view.domId); else { const e3 = a.v(this.view.domNode); this.styleController = new F(e3, this.view.domId); } - if (this.spliceable = new b([new E(this.focus, this.view, r2.identityProvider), new E(this.selection, this.view, r2.identityProvider), this.view]), this.disposables.add(this.focus), this.disposables.add(this.selection), this.disposables.add(this.view), this.disposables.add(this._onDidDispose), this.onDidFocus = h.b.map(Object(u.a)(this.view.domNode, "focus", true), () => null), this.onDidBlur = h.b.map(Object(u.a)(this.view.domNode, "blur", true), () => null), this.disposables.add(new D(this, this.view)), typeof r2.keyboardSupport != "boolean" || r2.keyboardSupport) { - const e3 = new N(this, this.view, r2); + if (this.spliceable = new b([new E(this.focus, this.view, o2.identityProvider), new E(this.selection, this.view, o2.identityProvider), this.view]), this.disposables.add(this.focus), this.disposables.add(this.selection), this.disposables.add(this.view), this.disposables.add(this._onDidDispose), this.onDidFocus = h.b.map(Object(u.a)(this.view.domNode, "focus", true), () => null), this.onDidBlur = h.b.map(Object(u.a)(this.view.domNode, "blur", true), () => null), this.disposables.add(new O(this, this.view)), typeof o2.keyboardSupport != "boolean" || o2.keyboardSupport) { + const e3 = new N(this, this.view, o2); this.disposables.add(e3); } - if (r2.keyboardNavigationLabelProvider) { - const e3 = r2.keyboardNavigationDelegate || I; - this.typeLabelController = new O(this, this.view, r2.keyboardNavigationLabelProvider, e3), this.disposables.add(this.typeLabelController); + if (o2.keyboardNavigationLabelProvider) { + const e3 = o2.keyboardNavigationDelegate || I; + this.typeLabelController = new D(this, this.view, o2.keyboardNavigationLabelProvider, e3), this.disposables.add(this.typeLabelController); } - this.mouseController = this.createMouseController(r2), this.disposables.add(this.mouseController), this.onDidChangeFocus(this._onFocusChange, this, this.disposables), this.onDidChangeSelection(this._onSelectionChange, this, this.disposables), this.accessibilityProvider && (this.ariaLabel = this.accessibilityProvider.getWidgetAriaLabel()), r2.multipleSelectionSupport && this.view.domNode.setAttribute("aria-multiselectable", "true"); + this.mouseController = this.createMouseController(o2), this.disposables.add(this.mouseController), this.onDidChangeFocus(this._onFocusChange, this, this.disposables), this.onDidChangeSelection(this._onSelectionChange, this, this.disposables), this.accessibilityProvider && (this.ariaLabel = this.accessibilityProvider.getWidgetAriaLabel()), o2.multipleSelectionSupport && this.view.domNode.setAttribute("aria-multiselectable", "true"); } get onDidChangeFocus() { return h.b.map(this.eventBufferer.wrapEvent(this.focus.onChange), (e2) => this.toListEvent(e2)); @@ -36173,22 +36173,22 @@ ${Object(zn.b)(wi)} focusNext(e2 = 1, t2 = false, n2, i2) { if (this.length === 0) return; - const o2 = this.focus.get(), r2 = this.findNextIndex(o2.length > 0 ? o2[0] + e2 : 0, t2, i2); - r2 > -1 && this.setFocus([r2], n2); + const r2 = this.focus.get(), o2 = this.findNextIndex(r2.length > 0 ? r2[0] + e2 : 0, t2, i2); + o2 > -1 && this.setFocus([o2], n2); } focusPrevious(e2 = 1, t2 = false, n2, i2) { if (this.length === 0) return; - const o2 = this.focus.get(), r2 = this.findPreviousIndex(o2.length > 0 ? o2[0] - e2 : 0, t2, i2); - r2 > -1 && this.setFocus([r2], n2); + const r2 = this.focus.get(), o2 = this.findPreviousIndex(r2.length > 0 ? r2[0] - e2 : 0, t2, i2); + o2 > -1 && this.setFocus([o2], n2); } focusNextPage(e2, t2) { let n2 = this.view.indexAt(this.view.getScrollTop() + this.view.renderHeight); n2 = n2 === 0 ? 0 : n2 - 1; - const i2 = this.view.element(n2), o2 = this.getFocusedElements()[0]; - if (o2 !== i2) { + const i2 = this.view.element(n2), r2 = this.getFocusedElements()[0]; + if (r2 !== i2) { const i3 = this.findPreviousIndex(n2, false, t2); - i3 > -1 && o2 !== this.view.element(i3) ? this.setFocus([i3], e2) : this.setFocus([n2], e2); + i3 > -1 && r2 !== this.view.element(i3) ? this.setFocus([i3], e2) : this.setFocus([n2], e2); } else { const i3 = this.view.getScrollTop(); this.view.setScrollTop(i3 + this.view.renderHeight - this.view.elementHeight(n2)), this.view.getScrollTop() !== i3 && setTimeout(() => this.focusNextPage(e2, t2), 0); @@ -36198,10 +36198,10 @@ ${Object(zn.b)(wi)} let n2; const i2 = this.view.getScrollTop(); n2 = i2 === 0 ? this.view.indexAt(i2) : this.view.indexAfter(i2 - 1); - const o2 = this.view.element(n2), r2 = this.getFocusedElements()[0]; - if (r2 !== o2) { + const r2 = this.view.element(n2), o2 = this.getFocusedElements()[0]; + if (o2 !== r2) { const i3 = this.findNextIndex(n2, false, t2); - i3 > -1 && r2 !== this.view.element(i3) ? this.setFocus([i3], e2) : this.setFocus([n2], e2); + i3 > -1 && o2 !== this.view.element(i3) ? this.setFocus([i3], e2) : this.setFocus([n2], e2); } else { const n3 = i2; this.view.setScrollTop(i2 - this.view.renderHeight), this.view.getScrollTop() !== n3 && setTimeout(() => this.focusPreviousPage(e2, t2), 0); @@ -36251,12 +36251,12 @@ ${Object(zn.b)(wi)} reveal(e2, t2) { if (e2 < 0 || e2 >= this.length) throw new p(this.user, "Invalid index " + e2); - const n2 = this.view.getScrollTop(), i2 = this.view.elementTop(e2), r2 = this.view.elementHeight(e2); - if (Object(o.h)(t2)) { - const e3 = r2 - this.view.renderHeight; + const n2 = this.view.getScrollTop(), i2 = this.view.elementTop(e2), o2 = this.view.elementHeight(e2); + if (Object(r.h)(t2)) { + const e3 = o2 - this.view.renderHeight; this.view.setScrollTop(e3 * Object(v.b)(t2, 0, 1) + i2); } else { - const e3 = i2 + r2, t3 = n2 + this.view.renderHeight; + const e3 = i2 + o2, t3 = n2 + this.view.renderHeight; i2 < n2 && e3 >= t3 || (i2 < n2 ? this.view.setScrollTop(i2) : e3 >= t3 && this.view.setScrollTop(e3 - this.view.renderHeight)); } } @@ -36266,8 +36266,8 @@ ${Object(zn.b)(wi)} const t2 = this.view.getScrollTop(), n2 = this.view.elementTop(e2), i2 = this.view.elementHeight(e2); if (n2 < t2 || n2 + i2 > t2 + this.view.renderHeight) return null; - const o2 = i2 - this.view.renderHeight; - return Math.abs((t2 - n2) / o2); + const r2 = i2 - this.view.renderHeight; + return Math.abs((t2 - n2) / r2); } getHTMLElement() { return this.view.domNode; @@ -36303,22 +36303,22 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; function i(e2, t2) { - let n2 = e2.getCount(), i2 = e2.findTokenIndexAtOffset(t2), r2 = e2.getLanguageId(i2), s = i2; - for (; s + 1 < n2 && e2.getLanguageId(s + 1) === r2; ) + let n2 = e2.getCount(), i2 = e2.findTokenIndexAtOffset(t2), o2 = e2.getLanguageId(i2), s = i2; + for (; s + 1 < n2 && e2.getLanguageId(s + 1) === o2; ) s++; let a = i2; - for (; a > 0 && e2.getLanguageId(a - 1) === r2; ) + for (; a > 0 && e2.getLanguageId(a - 1) === o2; ) a--; - return new o(e2, r2, a, s + 1, e2.getStartOffset(a), e2.getEndOffset(s)); + return new r(e2, o2, a, s + 1, e2.getStartOffset(a), e2.getEndOffset(s)); } n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return r; + return o; }); - class o { - constructor(e2, t2, n2, i2, o2, r2) { - this._actual = e2, this.languageId = t2, this._firstTokenIndex = n2, this._lastTokenIndex = i2, this.firstCharOffset = o2, this._lastCharOffset = r2; + class r { + constructor(e2, t2, n2, i2, r2, o2) { + this._actual = e2, this.languageId = t2, this._firstTokenIndex = n2, this._lastTokenIndex = i2, this.firstCharOffset = r2, this._lastCharOffset = o2; } getLineContent() { return this._actual.getLineContent().substring(this.firstCharOffset, this._lastCharOffset); @@ -36336,23 +36336,23 @@ ${Object(zn.b)(wi)} return this._actual.getStandardTokenType(e2 + this._firstTokenIndex); } } - function r(e2) { + function o(e2) { return (7 & e2) != 0; } }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return r; + return o; }), n.d(t, "a", function() { return s; }); var i = n(163); - const o = []; - function r(e2, t2, n2) { - o.push([e2, new i.a(t2, [], n2)]); + const r = []; + function o(e2, t2, n2) { + r.push([e2, new i.a(t2, [], n2)]); } function s() { - return o; + return r; } }, function(e, t, n) { "use strict"; @@ -36360,12 +36360,12 @@ ${Object(zn.b)(wi)} return d; }); n(196); - var i = n(2), o = n(60), r = n(1), s = n(14), a = n(67), l = n(6), c = n(123); + var i = n(2), r = n(60), o = n(1), s = n(14), a = n(67), l = n(6), c = n(123); class d extends i.a { constructor(e2, t2 = {}) { var n2, i2, s2; let c2, d2; - switch (super(), this._onDidBlur = this._register(new l.a()), this.onDidBlur = this._onDidBlur.event, this._onDidCancel = this._register(new l.a()), this.onDidCancel = this._onDidCancel.event, this._onDidRun = this._register(new l.a()), this.onDidRun = this._onDidRun.event, this._onDidBeforeRun = this._register(new l.a()), this.onDidBeforeRun = this._onDidBeforeRun.event, this.options = t2, this._context = (n2 = t2.context) !== null && n2 !== void 0 ? n2 : null, this._orientation = (i2 = this.options.orientation) !== null && i2 !== void 0 ? i2 : 0, this._triggerKeys = (s2 = this.options.triggerKeys) !== null && s2 !== void 0 ? s2 : {keys: [3, 10], keyDown: false}, this.options.actionRunner ? this._actionRunner = this.options.actionRunner : (this._actionRunner = new o.b(), this._register(this._actionRunner)), this._register(this._actionRunner.onDidRun((e3) => this._onDidRun.fire(e3))), this._register(this._actionRunner.onDidBeforeRun((e3) => this._onDidBeforeRun.fire(e3))), this.viewItems = [], this.focusedItem = void 0, this.domNode = document.createElement("div"), this.domNode.className = "monaco-action-bar", t2.animated !== false && r.e(this.domNode, "animated"), this._orientation) { + switch (super(), this._onDidBlur = this._register(new l.a()), this.onDidBlur = this._onDidBlur.event, this._onDidCancel = this._register(new l.a()), this.onDidCancel = this._onDidCancel.event, this._onDidRun = this._register(new l.a()), this.onDidRun = this._onDidRun.event, this._onDidBeforeRun = this._register(new l.a()), this.onDidBeforeRun = this._onDidBeforeRun.event, this.options = t2, this._context = (n2 = t2.context) !== null && n2 !== void 0 ? n2 : null, this._orientation = (i2 = this.options.orientation) !== null && i2 !== void 0 ? i2 : 0, this._triggerKeys = (s2 = this.options.triggerKeys) !== null && s2 !== void 0 ? s2 : {keys: [3, 10], keyDown: false}, this.options.actionRunner ? this._actionRunner = this.options.actionRunner : (this._actionRunner = new r.b(), this._register(this._actionRunner)), this._register(this._actionRunner.onDidRun((e3) => this._onDidRun.fire(e3))), this._register(this._actionRunner.onDidBeforeRun((e3) => this._onDidBeforeRun.fire(e3))), this.viewItems = [], this.focusedItem = void 0, this.domNode = document.createElement("div"), this.domNode.className = "monaco-action-bar", t2.animated !== false && o.e(this.domNode, "animated"), this._orientation) { case 0: c2 = 15, d2 = 17; break; @@ -36378,15 +36378,15 @@ ${Object(zn.b)(wi)} case 3: c2 = 18, d2 = 16, this.domNode.className += " vertical reverse"; } - this._register(r.i(this.domNode, r.c.KEY_DOWN, (e3) => { + this._register(o.i(this.domNode, o.c.KEY_DOWN, (e3) => { const t3 = new a.a(e3); let n3 = true; t3.equals(c2) ? n3 = this.focusPrevious() : t3.equals(d2) ? n3 = this.focusNext() : t3.equals(9) ? this._onDidCancel.fire() : this.isTriggerKeyEvent(t3) ? this._triggerKeys.keyDown && this.doTrigger(t3) : n3 = false, n3 && (t3.preventDefault(), t3.stopPropagation()); - })), this._register(r.i(this.domNode, r.c.KEY_UP, (e3) => { + })), this._register(o.i(this.domNode, o.c.KEY_UP, (e3) => { const t3 = new a.a(e3); this.isTriggerKeyEvent(t3) ? (this._triggerKeys.keyDown || this.doTrigger(t3), t3.preventDefault(), t3.stopPropagation()) : (t3.equals(2) || t3.equals(1026)) && this.updateFocusedItem(); - })), this.focusTracker = this._register(r.bb(this.domNode)), this._register(this.focusTracker.onDidBlur(() => { - r.x() !== this.domNode && r.L(r.x(), this.domNode) || (this._onDidBlur.fire(), this.focusedItem = void 0); + })), this.focusTracker = this._register(o.bb(this.domNode)), this._register(this.focusTracker.onDidBlur(() => { + o.x() !== this.domNode && o.L(o.x(), this.domNode) || (this._onDidBlur.fire(), this.focusedItem = void 0); })), this._register(this.focusTracker.onDidFocus(() => this.updateFocusedItem())), this.actionsList = document.createElement("ul"), this.actionsList.className = "actions-container", this.actionsList.setAttribute("role", "toolbar"), this.options.ariaLabel && this.actionsList.setAttribute("aria-label", this.options.ariaLabel), this.domNode.appendChild(this.actionsList), e2.appendChild(this.domNode); } isTriggerKeyEvent(e2) { @@ -36398,7 +36398,7 @@ ${Object(zn.b)(wi)} updateFocusedItem() { for (let e2 = 0; e2 < this.actionsList.children.length; e2++) { const t2 = this.actionsList.children[e2]; - if (r.L(r.x(), t2)) { + if (o.L(o.x(), t2)) { this.focusedItem = e2; break; } @@ -36424,14 +36424,14 @@ ${Object(zn.b)(wi)} let i2 = s.h(t2.index) ? t2.index : null; n2.forEach((e3) => { const n3 = document.createElement("li"); - let o2; - n3.className = "action-item", n3.setAttribute("role", "presentation"), this.options.allowContextMenu || this._register(r.i(n3, r.c.CONTEXT_MENU, (e4) => { - r.b.stop(e4, true); - })), this.options.actionViewItemProvider && (o2 = this.options.actionViewItemProvider(e3)), o2 || (o2 = new c.a(this.context, e3, t2)), o2.actionRunner = this._actionRunner, o2.setActionContext(this.context), o2.render(n3), i2 === null || i2 < 0 || i2 >= this.actionsList.children.length ? (this.actionsList.appendChild(n3), this.viewItems.push(o2)) : (this.actionsList.insertBefore(n3, this.actionsList.children[i2]), this.viewItems.splice(i2, 0, o2), i2++); + let r2; + n3.className = "action-item", n3.setAttribute("role", "presentation"), this.options.allowContextMenu || this._register(o.i(n3, o.c.CONTEXT_MENU, (e4) => { + o.b.stop(e4, true); + })), this.options.actionViewItemProvider && (r2 = this.options.actionViewItemProvider(e3)), r2 || (r2 = new c.a(this.context, e3, t2)), r2.actionRunner = this._actionRunner, r2.setActionContext(this.context), r2.render(n3), i2 === null || i2 < 0 || i2 >= this.actionsList.children.length ? (this.actionsList.appendChild(n3), this.viewItems.push(r2)) : (this.actionsList.insertBefore(n3, this.actionsList.children[i2]), this.viewItems.splice(i2, 0, r2), i2++); }), this.focusedItem && this.focus(this.focusedItem); } clear() { - Object(i.f)(this.viewItems), this.viewItems = [], r.s(this.actionsList); + Object(i.f)(this.viewItems), this.viewItems = [], o.s(this.actionsList); } focus(e2) { let t2 = false, n2 = void 0; @@ -36482,16 +36482,16 @@ ${Object(zn.b)(wi)} return this._actionRunner.run(e2, t2); } dispose() { - Object(i.f)(this.viewItems), this.viewItems = [], r.S(this.getContainer()), super.dispose(); + Object(i.f)(this.viewItems), this.viewItems = [], o.S(this.getContainer()), super.dispose(); } } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); var i = n(76); - class o extends i.a { + class r extends i.a { constructor(e2) { super(0); for (let t2 = 0, n2 = e2.length; t2 < n2; t2++) @@ -36499,10 +36499,10 @@ ${Object(zn.b)(wi)} this.set(32, 1), this.set(9, 1); } } - const r = function(e2) { + const o = function(e2) { let t2 = {}; return (n2) => (t2.hasOwnProperty(n2) || (t2[n2] = e2(n2)), t2[n2]); - }((e2) => new o(e2)); + }((e2) => new r(e2)); }, function(e, t, n) { "use strict"; function i(e2, t2, n2) { @@ -36511,9 +36511,9 @@ ${Object(zn.b)(wi)} n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }); - class o { + class r { constructor() { this._n = 1, this._val = 0; } @@ -36528,10 +36528,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "a", function() { return m; }); - var i = n(8), o = n(132), r = n(3); + var i = n(8), r = n(132), o = n(3); class s { - constructor(e2, t2, n2, i2, o2, r2) { - this.languageIdentifier = e2, this.index = t2, this.open = n2, this.close = i2, this.forwardRegex = o2, this.reversedRegex = r2, this._openSet = s._toSet(this.open), this._closeSet = s._toSet(this.close); + constructor(e2, t2, n2, i2, r2, o2) { + this.languageIdentifier = e2, this.index = t2, this.open = n2, this.close = i2, this.forwardRegex = r2, this.reversedRegex = o2, this._openSet = s._toSet(this.open), this._closeSet = s._toSet(this.close); } isOpen(e2) { return this._openSet.has(e2); @@ -36555,43 +36555,43 @@ ${Object(zn.b)(wi)} for (let e4 = 0; e4 < t3; e4++) n3[e4] = e4; const i2 = (e4, t4) => { - const [n4, i3] = e4, [o3, r3] = t4; - return n4 === o3 || n4 === r3 || i3 === o3 || i3 === r3; - }, o2 = (e4, i3) => { - const o3 = Math.min(e4, i3), r3 = Math.max(e4, i3); + const [n4, i3] = e4, [r3, o3] = t4; + return n4 === r3 || n4 === o3 || i3 === r3 || i3 === o3; + }, r2 = (e4, i3) => { + const r3 = Math.min(e4, i3), o3 = Math.max(e4, i3); for (let e5 = 0; e5 < t3; e5++) - n3[e5] === r3 && (n3[e5] = o3); + n3[e5] === o3 && (n3[e5] = r3); }; - for (let r3 = 0; r3 < t3; r3++) { - const s2 = e3[r3]; - for (let a2 = r3 + 1; a2 < t3; a2++) { - i2(s2, e3[a2]) && o2(n3[r3], n3[a2]); + for (let o3 = 0; o3 < t3; o3++) { + const s2 = e3[o3]; + for (let a2 = o3 + 1; a2 < t3; a2++) { + i2(s2, e3[a2]) && r2(n3[o3], n3[a2]); } } - const r2 = []; + const o2 = []; for (let i3 = 0; i3 < t3; i3++) { - let o3 = [], s2 = []; - for (let r3 = 0; r3 < t3; r3++) - if (n3[r3] === i3) { - const [t4, n4] = e3[r3]; - o3.push(t4), s2.push(n4); + let r3 = [], s2 = []; + for (let o3 = 0; o3 < t3; o3++) + if (n3[o3] === i3) { + const [t4, n4] = e3[o3]; + r3.push(t4), s2.push(n4); } - o3.length > 0 && r2.push({open: o3, close: s2}); + r3.length > 0 && o2.push({open: r3, close: s2}); } - return r2; + return o2; }(t2); this.brackets = n2.map((t3, i2) => new s(e2, i2, t3.open, t3.close, function(e3, t4, n3, i3) { - let o2 = []; - o2 = o2.concat(e3), o2 = o2.concat(t4); - for (let e4 = 0, t5 = o2.length; e4 < t5; e4++) - l(o2[e4], n3, i3, o2); - return o2 = d(o2), o2.sort(c), o2.reverse(), u(o2); + let r2 = []; + r2 = r2.concat(e3), r2 = r2.concat(t4); + for (let e4 = 0, t5 = r2.length; e4 < t5; e4++) + l(r2[e4], n3, i3, r2); + return r2 = d(r2), r2.sort(c), r2.reverse(), u(r2); }(t3.open, t3.close, n2, i2), function(e3, t4, n3, i3) { - let o2 = []; - o2 = o2.concat(e3), o2 = o2.concat(t4); - for (let e4 = 0, t5 = o2.length; e4 < t5; e4++) - l(o2[e4], n3, i3, o2); - return o2 = d(o2), o2.sort(c), o2.reverse(), u(o2.map(p)); + let r2 = []; + r2 = r2.concat(e3), r2 = r2.concat(t4); + for (let e4 = 0, t5 = r2.length; e4 < t5; e4++) + l(r2[e4], n3, i3, r2); + return r2 = d(r2), r2.sort(c), r2.reverse(), u(r2.map(p)); }(t3.open, t3.close, n2, i2))), this.forwardRegex = function(e3) { let t3 = []; for (const n3 of e3) { @@ -36620,13 +36620,13 @@ ${Object(zn.b)(wi)} } } function l(e2, t2, n2, i2) { - for (let o2 = 0, r2 = t2.length; o2 < r2; o2++) { - if (o2 === n2) + for (let r2 = 0, o2 = t2.length; r2 < o2; r2++) { + if (r2 === n2) continue; - const r3 = t2[o2]; - for (const t3 of r3.open) + const o3 = t2[r2]; + for (const t3 of o3.open) t3.indexOf(e2) >= 0 && i2.push(t3); - for (const t3 of r3.close) + for (const t3 of o3.close) t3.indexOf(e2) >= 0 && i2.push(t3); } } @@ -36653,12 +36653,12 @@ ${Object(zn.b)(wi)} let e2 = null, t2 = null; return function(n2) { return e2 !== n2 && (e2 = n2, t2 = function(e3) { - if (o.d) { + if (r.d) { const t3 = new Uint16Array(e3.length); let n3 = 0; for (let i2 = e3.length - 1; i2 >= 0; i2--) t3[n3++] = e3.charCodeAt(i2); - return o.c().decode(t3); + return r.c().decode(t3); } { let t3 = [], n3 = 0; @@ -36671,52 +36671,52 @@ ${Object(zn.b)(wi)} }(); class m { static _findPrevBracketInText(e2, t2, n2, i2) { - let o2 = n2.match(e2); - if (!o2) + let r2 = n2.match(e2); + if (!r2) return null; - let s2 = n2.length - (o2.index || 0), a2 = o2[0].length, l2 = i2 + s2; - return new r.a(t2, l2 - a2 + 1, t2, l2 + 1); + let s2 = n2.length - (r2.index || 0), a2 = r2[0].length, l2 = i2 + s2; + return new o.a(t2, l2 - a2 + 1, t2, l2 + 1); } - static findPrevBracketInRange(e2, t2, n2, i2, o2) { - const r2 = p(n2).substring(n2.length - o2, n2.length - i2); - return this._findPrevBracketInText(e2, t2, r2, i2); + static findPrevBracketInRange(e2, t2, n2, i2, r2) { + const o2 = p(n2).substring(n2.length - r2, n2.length - i2); + return this._findPrevBracketInText(e2, t2, o2, i2); } static findNextBracketInText(e2, t2, n2, i2) { - let o2 = n2.match(e2); - if (!o2) + let r2 = n2.match(e2); + if (!r2) return null; - let s2 = o2.index || 0, a2 = o2[0].length; + let s2 = r2.index || 0, a2 = r2[0].length; if (a2 === 0) return null; let l2 = i2 + s2; - return new r.a(t2, l2 + 1, t2, l2 + 1 + a2); + return new o.a(t2, l2 + 1, t2, l2 + 1 + a2); } - static findNextBracketInRange(e2, t2, n2, i2, o2) { - const r2 = n2.substring(i2, o2); - return this.findNextBracketInText(e2, t2, r2, i2); + static findNextBracketInRange(e2, t2, n2, i2, r2) { + const o2 = n2.substring(i2, r2); + return this.findNextBracketInText(e2, t2, o2, i2); } } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("telemetryService"); + const r = Object(i.c)("telemetryService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("clipboardService"); + const r = Object(i.c)("clipboardService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("textModelService"); + const r = Object(i.c)("textModelService"); }, function(e, t, n) { "use strict"; n.d(t, "b", function() { @@ -36725,8 +36725,8 @@ ${Object(zn.b)(wi)} return p; }); n(196); - var i = n(11), o = n(0), r = n(2), s = n(60), a = n(1), l = n(14), c = n(61), d = n(125), h = n(34); - class u extends r.a { + var i = n(11), r = n(0), o = n(2), s = n(60), a = n(1), l = n(14), c = n(61), d = n(125), h = n(34); + class u extends o.a { constructor(e2, t2, n2 = {}) { super(), this.options = n2, this._context = e2 || this, this._action = t2, t2 instanceof s.a && this._register(t2.onDidChange((e3) => { this.element && this.handleActionChangeEvent(e3); @@ -36812,7 +36812,7 @@ ${Object(zn.b)(wi)} } updateTooltip() { let e2 = null; - this.getAction().tooltip ? e2 = this.getAction().tooltip : !this.options.label && this.getAction().label && this.options.icon && (e2 = this.getAction().label, this.options.keybinding && (e2 = o.a({key: "titleLabel", comment: ["action title", "action keybinding"]}, "{0} ({1})", e2, this.options.keybinding))), e2 && this.label && (this.label.title = e2); + this.getAction().tooltip ? e2 = this.getAction().tooltip : !this.options.label && this.getAction().label && this.options.icon && (e2 = this.getAction().label, this.options.keybinding && (e2 = r.a({key: "titleLabel", comment: ["action title", "action keybinding"]}, "{0} ({1})", e2, this.options.keybinding))), e2 && this.label && (this.label.title = e2); } updateClass() { this.cssClass && this.label && a.R(this.label, this.cssClass), this.options.icon ? (this.cssClass = this.getAction().class, this.label && (a.e(this.label, "codicon"), this.cssClass && a.f(this.label, this.cssClass)), this.updateEnabled()) : this.label && a.Q(this.label, "codicon"); @@ -36839,14 +36839,14 @@ ${Object(zn.b)(wi)} }), n.d(t, "d", function() { return _; }); - var i = n(15), o = n(111), r = n(9), s = n(3), a = n(12); + var i = n(16), r = n(111), o = n(9), s = n(3), a = n(12); function l(e2) { - let t2 = 0, n2 = 0, i2 = 0, o2 = 0; - for (let r2 = 0, s2 = e2.length; r2 < s2; r2++) { - const a2 = e2.charCodeAt(r2); - a2 === 13 ? (t2 === 0 && (n2 = r2), t2++, r2 + 1 < s2 && e2.charCodeAt(r2 + 1) === 10 ? (o2 |= 2, r2++) : o2 |= 3, i2 = r2 + 1) : a2 === 10 && (o2 |= 1, t2 === 0 && (n2 = r2), t2++, i2 = r2 + 1); + let t2 = 0, n2 = 0, i2 = 0, r2 = 0; + for (let o2 = 0, s2 = e2.length; o2 < s2; o2++) { + const a2 = e2.charCodeAt(o2); + a2 === 13 ? (t2 === 0 && (n2 = o2), t2++, o2 + 1 < s2 && e2.charCodeAt(o2 + 1) === 10 ? (r2 |= 2, o2++) : r2 |= 3, i2 = o2 + 1) : a2 === 10 && (r2 |= 1, t2 === 0 && (n2 = o2), t2++, i2 = o2 + 1); } - return t2 === 0 && (n2 = e2.length), [t2, n2, e2.length - i2, o2]; + return t2 === 0 && (n2 = e2.length), [t2, n2, e2.length - i2, r2]; } function c(e2) { return (16384 | e2 << 0 | 2 << 23) >>> 0; @@ -36904,18 +36904,18 @@ ${Object(zn.b)(wi)} getLineTokens(e2) { let t2 = 0, n2 = this._getTokenCount() - 1; for (; t2 < n2; ) { - const i2 = t2 + Math.floor((n2 - t2) / 2), o2 = this._getDeltaLine(i2); - if (o2 < e2) + const i2 = t2 + Math.floor((n2 - t2) / 2), r2 = this._getDeltaLine(i2); + if (r2 < e2) t2 = i2 + 1; else { - if (!(o2 > e2)) { - let o3 = i2; - for (; o3 > t2 && this._getDeltaLine(o3 - 1) === e2; ) - o3--; - let r2 = i2; - for (; r2 < n2 && this._getDeltaLine(r2 + 1) === e2; ) - r2++; - return new p(this._tokens.subarray(4 * o3, 4 * r2 + 4)); + if (!(r2 > e2)) { + let r3 = i2; + for (; r3 > t2 && this._getDeltaLine(r3 - 1) === e2; ) + r3--; + let o2 = i2; + for (; o2 < n2 && this._getDeltaLine(o2 + 1) === e2; ) + o2++; + return new p(this._tokens.subarray(4 * r3, 4 * o2 + 4)); } n2 = i2 - 1; } @@ -36926,16 +36926,16 @@ ${Object(zn.b)(wi)} this._tokenCount = 0; } removeTokens(e2, t2, n2, i2) { - const o2 = this._tokens, r2 = this._tokenCount; + const r2 = this._tokens, o2 = this._tokenCount; let s2 = 0, a2 = false, l2 = 0; - for (let c2 = 0; c2 < r2; c2++) { - const r3 = 4 * c2, d2 = o2[r3], h2 = o2[r3 + 1], u2 = o2[r3 + 2], p2 = o2[r3 + 3]; + for (let c2 = 0; c2 < o2; c2++) { + const o3 = 4 * c2, d2 = r2[o3], h2 = r2[o3 + 1], u2 = r2[o3 + 2], p2 = r2[o3 + 3]; if ((d2 > e2 || d2 === e2 && u2 >= t2) && (d2 < n2 || d2 === n2 && h2 <= i2)) a2 = true; else { if (s2 === 0 && (l2 = d2), a2) { const e3 = 4 * s2; - o2[e3] = d2 - l2, o2[e3 + 1] = h2, o2[e3 + 2] = u2, o2[e3 + 3] = p2; + r2[e3] = d2 - l2, r2[e3 + 1] = h2, r2[e3 + 2] = u2, r2[e3 + 3] = p2; } s2++; } @@ -36943,10 +36943,10 @@ ${Object(zn.b)(wi)} return this._tokenCount = s2, l2; } split(e2, t2, n2, i2) { - const o2 = this._tokens, r2 = this._tokenCount; + const r2 = this._tokens, o2 = this._tokenCount; let s2 = [], a2 = [], l2 = s2, c2 = 0, d2 = 0; - for (let s3 = 0; s3 < r2; s3++) { - const r3 = 4 * s3, h2 = o2[r3], u2 = o2[r3 + 1], p2 = o2[r3 + 2], m2 = o2[r3 + 3]; + for (let s3 = 0; s3 < o2; s3++) { + const o3 = 4 * s3, h2 = r2[o3], u2 = r2[o3 + 1], p2 = r2[o3 + 2], m2 = r2[o3 + 3]; if (h2 > e2 || h2 === e2 && p2 >= t2) { if (h2 < n2 || h2 === n2 && u2 <= i2) continue; @@ -36956,31 +36956,31 @@ ${Object(zn.b)(wi)} } return [new u(new Uint32Array(s2)), new u(new Uint32Array(a2)), d2]; } - acceptDeleteRange(e2, t2, n2, i2, o2) { - const r2 = this._tokens, s2 = this._tokenCount, a2 = i2 - t2; + acceptDeleteRange(e2, t2, n2, i2, r2) { + const o2 = this._tokens, s2 = this._tokenCount, a2 = i2 - t2; let l2 = 0, c2 = false; for (let d2 = 0; d2 < s2; d2++) { const h2 = 4 * d2; - let u2 = r2[h2], p2 = r2[h2 + 1], m2 = r2[h2 + 2]; - const g2 = r2[h2 + 3]; + let u2 = o2[h2], p2 = o2[h2 + 1], m2 = o2[h2 + 2]; + const g2 = o2[h2 + 3]; if (u2 < t2 || u2 === t2 && m2 <= n2) { l2++; continue; } if (u2 === t2 && p2 < n2) - u2 === i2 && m2 > o2 ? m2 -= o2 - n2 : m2 = n2; + u2 === i2 && m2 > r2 ? m2 -= r2 - n2 : m2 = n2; else if (u2 === t2 && p2 === n2) { - if (!(u2 === i2 && m2 > o2)) { + if (!(u2 === i2 && m2 > r2)) { c2 = true; continue; } - m2 -= o2 - n2; - } else if (u2 < i2 || u2 === i2 && p2 < o2) { - if (!(u2 === i2 && m2 > o2)) { + m2 -= r2 - n2; + } else if (u2 < i2 || u2 === i2 && p2 < r2) { + if (!(u2 === i2 && m2 > r2)) { c2 = true; continue; } - u2 === t2 ? (p2 = n2, m2 = p2 + (m2 - o2)) : (p2 = 0, m2 = p2 + (m2 - o2)); + u2 === t2 ? (p2 = n2, m2 = p2 + (m2 - r2)) : (p2 = 0, m2 = p2 + (m2 - r2)); } else if (u2 > i2) { if (a2 === 0 && !c2) { l2 = s2; @@ -36988,19 +36988,19 @@ ${Object(zn.b)(wi)} } u2 -= a2; } else { - if (!(u2 === i2 && p2 >= o2)) + if (!(u2 === i2 && p2 >= r2)) throw new Error("Not possible!"); - e2 && u2 === 0 && (p2 += e2, m2 += e2), u2 -= a2, p2 -= o2 - n2, m2 -= o2 - n2; + e2 && u2 === 0 && (p2 += e2, m2 += e2), u2 -= a2, p2 -= r2 - n2, m2 -= r2 - n2; } const f2 = 4 * l2; - r2[f2] = u2, r2[f2 + 1] = p2, r2[f2 + 2] = m2, r2[f2 + 3] = g2, l2++; + o2[f2] = u2, o2[f2 + 1] = p2, o2[f2 + 2] = m2, o2[f2 + 3] = g2, l2++; } this._tokenCount = l2; } - acceptInsertText(e2, t2, n2, i2, o2, r2) { - const s2 = n2 === 0 && i2 === 1 && (r2 >= 48 && r2 <= 57 || r2 >= 65 && r2 <= 90 || r2 >= 97 && r2 <= 122), a2 = this._tokens, l2 = this._tokenCount; - for (let r3 = 0; r3 < l2; r3++) { - const l3 = 4 * r3; + acceptInsertText(e2, t2, n2, i2, r2, o2) { + const s2 = n2 === 0 && i2 === 1 && (o2 >= 48 && o2 <= 57 || o2 >= 65 && o2 <= 90 || o2 >= 97 && o2 <= 122), a2 = this._tokens, l2 = this._tokenCount; + for (let o3 = 0; o3 < l2; o3++) { + const l3 = 4 * o3; let c2 = a2[l3], d2 = a2[l3 + 1], h2 = a2[l3 + 2]; if (!(c2 < e2 || c2 === e2 && h2 < t2)) { if (c2 === e2 && h2 === t2) { @@ -37017,7 +37017,7 @@ ${Object(zn.b)(wi)} d2 += i2, h2 += i2; else { const e3 = h2 - d2; - d2 = o2 + (d2 - t2), h2 = d2 + e3; + d2 = r2 + (d2 - t2), h2 = d2 + e3; } else c2 += n2; @@ -37069,15 +37069,15 @@ ${Object(zn.b)(wi)} this.startLineNumber += this.tokens.removeTokens(t2, e2.startColumn - 1, n2, e2.endColumn - 1), this._updateEndLineNumber(); } split(e2) { - const t2 = e2.startLineNumber - this.startLineNumber, n2 = e2.endLineNumber - this.startLineNumber, [i2, o2, r2] = this.tokens.split(t2, e2.startColumn - 1, n2, e2.endColumn - 1); - return [new m(this.startLineNumber, i2), new m(this.startLineNumber + r2, o2)]; + const t2 = e2.startLineNumber - this.startLineNumber, n2 = e2.endLineNumber - this.startLineNumber, [i2, r2, o2] = this.tokens.split(t2, e2.startColumn - 1, n2, e2.endColumn - 1); + return [new m(this.startLineNumber, i2), new m(this.startLineNumber + o2, r2)]; } applyEdit(e2, t2) { - const [n2, i2, o2] = l(t2); - this.acceptEdit(e2, n2, i2, o2, t2.length > 0 ? t2.charCodeAt(0) : 0); + const [n2, i2, r2] = l(t2); + this.acceptEdit(e2, n2, i2, r2, t2.length > 0 ? t2.charCodeAt(0) : 0); } - acceptEdit(e2, t2, n2, i2, o2) { - this._acceptDeleteRange(e2), this._acceptInsertText(new r.a(e2.startLineNumber, e2.startColumn), t2, n2, i2, o2), this._updateEndLineNumber(); + acceptEdit(e2, t2, n2, i2, r2) { + this._acceptDeleteRange(e2), this._acceptInsertText(new o.a(e2.startLineNumber, e2.startColumn), t2, n2, i2, r2), this._updateEndLineNumber(); } _acceptDeleteRange(e2) { if (e2.startLineNumber === e2.endLineNumber && e2.startColumn === e2.endColumn) @@ -37098,13 +37098,13 @@ ${Object(zn.b)(wi)} this.tokens.acceptDeleteRange(0, t2, e2.startColumn - 1, n2, e2.endColumn - 1); } } - _acceptInsertText(e2, t2, n2, i2, o2) { + _acceptInsertText(e2, t2, n2, i2, r2) { if (t2 === 0 && n2 === 0) return; - const r2 = e2.lineNumber - this.startLineNumber; - if (r2 < 0) + const o2 = e2.lineNumber - this.startLineNumber; + if (o2 < 0) return void (this.startLineNumber += t2); - r2 >= this.tokens.getMaxDeltaLine() + 1 || this.tokens.acceptInsertText(r2, e2.column - 1, t2, n2, i2, o2); + o2 >= this.tokens.getMaxDeltaLine() + 1 || this.tokens.acceptInsertText(o2, e2.column - 1, t2, n2, i2, r2); } } class g { @@ -37128,18 +37128,18 @@ ${Object(zn.b)(wi)} setPartial(e2, t2) { let n2 = e2; if (t2.length > 0) { - const i2 = t2[0].getRange(), o3 = t2[t2.length - 1].getRange(); - if (!i2 || !o3) + const i2 = t2[0].getRange(), r3 = t2[t2.length - 1].getRange(); + if (!i2 || !r3) return e2; - n2 = e2.plusRange(i2).plusRange(o3); + n2 = e2.plusRange(i2).plusRange(r3); } - let o2 = null; + let r2 = null; for (let e3 = 0, t3 = this._pieces.length; e3 < t3; e3++) { const i2 = this._pieces[e3]; if (i2.endLineNumber < n2.startLineNumber) continue; if (i2.startLineNumber > n2.endLineNumber) { - o2 = o2 || {index: e3}; + r2 = r2 || {index: e3}; break; } if (i2.removeTokens(n2), i2.isEmpty()) { @@ -37149,13 +37149,13 @@ ${Object(zn.b)(wi)} if (i2.endLineNumber < n2.startLineNumber) continue; if (i2.startLineNumber > n2.endLineNumber) { - o2 = o2 || {index: e3}; + r2 = r2 || {index: e3}; continue; } - const [r2, s2] = i2.split(n2); - r2.isEmpty() ? o2 = o2 || {index: e3} : s2.isEmpty() || (this._pieces.splice(e3, 1, r2, s2), e3++, t3++, o2 = o2 || {index: e3}); + const [o2, s2] = i2.split(n2); + o2.isEmpty() ? r2 = r2 || {index: e3} : s2.isEmpty() || (this._pieces.splice(e3, 1, o2, s2), e3++, t3++, r2 = r2 || {index: e3}); } - return o2 = o2 || {index: this._pieces.length}, t2.length > 0 && (this._pieces = i.a(this._pieces, o2.index, t2)), n2; + return r2 = r2 || {index: this._pieces.length}, t2.length > 0 && (this._pieces = i.a(this._pieces, r2.index, t2)), n2; } isComplete() { return this._isComplete; @@ -37167,48 +37167,48 @@ ${Object(zn.b)(wi)} const i2 = n2[b._findFirstPieceWithLine(n2, e2)].getLineTokens(e2); if (!i2) return t2; - const r2 = t2.getCount(), s2 = i2.getCount(); + const o2 = t2.getCount(), s2 = i2.getCount(); let a2 = 0, l2 = [], c2 = 0, d2 = 0; const h2 = (e3, t3) => { e3 !== d2 && (d2 = e3, l2[c2++] = e3, l2[c2++] = t3); }; for (let e3 = 0; e3 < s2; e3++) { - const n3 = i2.getStartCharacter(e3), o2 = i2.getEndCharacter(e3), s3 = i2.getMetadata(e3), l3 = ((1 & s3 ? 2048 : 0) | (2 & s3 ? 4096 : 0) | (4 & s3 ? 8192 : 0) | (8 & s3 ? 8372224 : 0) | (16 & s3 ? 4286578688 : 0)) >>> 0, c3 = ~l3 >>> 0; - for (; a2 < r2 && t2.getEndOffset(a2) <= n3; ) + const n3 = i2.getStartCharacter(e3), r2 = i2.getEndCharacter(e3), s3 = i2.getMetadata(e3), l3 = ((1 & s3 ? 2048 : 0) | (2 & s3 ? 4096 : 0) | (4 & s3 ? 8192 : 0) | (8 & s3 ? 8372224 : 0) | (16 & s3 ? 4286578688 : 0)) >>> 0, c3 = ~l3 >>> 0; + for (; a2 < o2 && t2.getEndOffset(a2) <= n3; ) h2(t2.getEndOffset(a2), t2.getMetadata(a2)), a2++; - for (a2 < r2 && t2.getStartOffset(a2) < n3 && h2(n3, t2.getMetadata(a2)); a2 < r2 && t2.getEndOffset(a2) < o2; ) + for (a2 < o2 && t2.getStartOffset(a2) < n3 && h2(n3, t2.getMetadata(a2)); a2 < o2 && t2.getEndOffset(a2) < r2; ) h2(t2.getEndOffset(a2), t2.getMetadata(a2) & c3 | s3 & l3), a2++; - if (a2 < r2) - h2(o2, t2.getMetadata(a2) & c3 | s3 & l3), t2.getEndOffset(a2) === o2 && a2++; + if (a2 < o2) + h2(r2, t2.getMetadata(a2) & c3 | s3 & l3), t2.getEndOffset(a2) === r2 && a2++; else { - const e4 = Math.min(Math.max(0, a2 - 1), r2 - 1); - h2(o2, t2.getMetadata(e4) & c3 | s3 & l3); + const e4 = Math.min(Math.max(0, a2 - 1), o2 - 1); + h2(r2, t2.getMetadata(e4) & c3 | s3 & l3); } } - for (; a2 < r2; ) + for (; a2 < o2; ) h2(t2.getEndOffset(a2), t2.getMetadata(a2)), a2++; - return new o.a(new Uint32Array(l2), t2.getLineContent()); + return new r.a(new Uint32Array(l2), t2.getLineContent()); } static _findFirstPieceWithLine(e2, t2) { let n2 = 0, i2 = e2.length - 1; for (; n2 < i2; ) { - let o2 = n2 + Math.floor((i2 - n2) / 2); - if (e2[o2].endLineNumber < t2) - n2 = o2 + 1; + let r2 = n2 + Math.floor((i2 - n2) / 2); + if (e2[r2].endLineNumber < t2) + n2 = r2 + 1; else { - if (!(e2[o2].startLineNumber > t2)) { - for (; o2 > n2 && e2[o2 - 1].startLineNumber <= t2 && t2 <= e2[o2 - 1].endLineNumber; ) - o2--; - return o2; + if (!(e2[r2].startLineNumber > t2)) { + for (; r2 > n2 && e2[r2 - 1].startLineNumber <= t2 && t2 <= e2[r2 - 1].endLineNumber; ) + r2--; + return r2; } - i2 = o2 - 1; + i2 = r2 - 1; } } return n2; } - acceptEdit(e2, t2, n2, i2, o2) { - for (const r2 of this._pieces) - r2.acceptEdit(e2, t2, n2, i2, o2); + acceptEdit(e2, t2, n2, i2, r2) { + for (const o2 of this._pieces) + o2.acceptEdit(e2, t2, n2, i2, r2); } } class _ { @@ -37221,9 +37221,9 @@ ${Object(zn.b)(wi)} getTokens(e2, t2, n2) { let i2 = null; if (t2 < this._len && (i2 = this._lineTokens[t2]), i2 !== null && i2 !== d) - return new o.a(f(i2), n2); - let r2 = new Uint32Array(2); - return r2[0] = n2.length, r2[1] = c(e2), new o.a(r2, n2); + return new r.a(f(i2), n2); + let o2 = new Uint32Array(2); + return o2[0] = n2.length, o2[1] = c(e2), new r.a(o2, n2); } static _massageTokens(e2, t2, n2) { const i2 = n2 ? f(n2) : null; @@ -37253,11 +37253,11 @@ ${Object(zn.b)(wi)} n2[e3] = null; this._lineTokens = i.a(this._lineTokens, e2, n2), this._len += t2; } - setTokens(e2, t2, n2, i2, o2) { - const r2 = _._massageTokens(e2, n2, i2); + setTokens(e2, t2, n2, i2, r2) { + const o2 = _._massageTokens(e2, n2, i2); this._ensureLine(t2); const s2 = this._lineTokens[t2]; - return this._lineTokens[t2] = r2, !!o2 && !_._equals(s2, r2); + return this._lineTokens[t2] = o2, !!r2 && !_._equals(s2, o2); } static _equals(e2, t2) { if (!e2 || !t2) @@ -37271,7 +37271,7 @@ ${Object(zn.b)(wi)} return true; } acceptEdit(e2, t2, n2) { - this._acceptDeleteRange(e2), this._acceptInsertText(new r.a(e2.startLineNumber, e2.startColumn), t2, n2); + this._acceptDeleteRange(e2), this._acceptInsertText(new o.a(e2.startLineNumber, e2.startColumn), t2, n2); } _acceptDeleteRange(e2) { const t2 = e2.startLineNumber - 1; @@ -37305,20 +37305,20 @@ ${Object(zn.b)(wi)} static _delete(e2, t2, n2) { if (e2 === null || e2 === d || t2 === n2) return e2; - const i2 = f(e2), r2 = i2.length >>> 1; + const i2 = f(e2), o2 = i2.length >>> 1; if (t2 === 0 && i2[i2.length - 2] === n2) return d; - const s2 = o.a.findIndexInTokensArray(i2, t2), a2 = s2 > 0 ? i2[s2 - 1 << 1] : 0; + const s2 = r.a.findIndexInTokensArray(i2, t2), a2 = s2 > 0 ? i2[s2 - 1 << 1] : 0; if (n2 < i2[s2 << 1]) { - const o2 = n2 - t2; - for (let e3 = s2; e3 < r2; e3++) - i2[e3 << 1] -= o2; + const r2 = n2 - t2; + for (let e3 = s2; e3 < o2; e3++) + i2[e3 << 1] -= r2; return e2; } let l2, c2; a2 !== t2 ? (i2[s2 << 1] = t2, l2 = s2 + 1 << 1, c2 = t2) : (l2 = s2 << 1, c2 = a2); const h2 = n2 - t2; - for (let e3 = s2 + 1; e3 < r2; e3++) { + for (let e3 = s2 + 1; e3 < o2; e3++) { const t3 = i2[e3 << 1] - h2; t3 > c2 && (i2[l2++] = t3, i2[l2++] = i2[1 + (e3 << 1)], c2 = t3); } @@ -37336,24 +37336,24 @@ ${Object(zn.b)(wi)} return e2; if (t2 === null) return null; - const n2 = f(e2), i2 = f(t2), o2 = i2.length >>> 1; - let r2 = new Uint32Array(n2.length + i2.length); - r2.set(n2, 0); + const n2 = f(e2), i2 = f(t2), r2 = i2.length >>> 1; + let o2 = new Uint32Array(n2.length + i2.length); + o2.set(n2, 0); let s2 = n2.length; const a2 = n2[n2.length - 2]; - for (let e3 = 0; e3 < o2; e3++) - r2[s2++] = i2[e3 << 1] + a2, r2[s2++] = i2[1 + (e3 << 1)]; - return r2.buffer; + for (let e3 = 0; e3 < r2; e3++) + o2[s2++] = i2[e3 << 1] + a2, o2[s2++] = i2[1 + (e3 << 1)]; + return o2.buffer; } static _insert(e2, t2, n2) { if (e2 === null || e2 === d) return e2; - const i2 = f(e2), r2 = i2.length >>> 1; - let s2 = o.a.findIndexInTokensArray(i2, t2); + const i2 = f(e2), o2 = i2.length >>> 1; + let s2 = r.a.findIndexInTokensArray(i2, t2); if (s2 > 0) { i2[s2 - 1 << 1] === t2 && s2--; } - for (let e3 = s2; e3 < r2; e3++) + for (let e3 = s2; e3 < o2; e3++) i2[e3 << 1] += n2; return e2; } @@ -37363,12 +37363,12 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return o; - }), n.d(t, "c", function() { return r; + }), n.d(t, "c", function() { + return o; }); const i = {RESOURCES: "ResourceURLs", DOWNLOAD_URL: "DownloadURL", FILES: "Files", TEXT: "text/plain"}; - class o { + class r { constructor(e2) { this.data = e2; } @@ -37378,7 +37378,7 @@ ${Object(zn.b)(wi)} return this.data; } } - const r = {CurrentDragAndDropData: void 0}; + const o = {CurrentDragAndDropData: void 0}; }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -37386,7 +37386,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return g; }); - var i = n(13), o = n(8), r = n(62), s = n(130), a = n(3), l = n(21); + var i = n(13), r = n(8), o = n(62), s = n(130), a = n(3), l = n(21); class c { constructor(e2, t2, n2) { this._range = e2, this._charBeforeSelection = t2, this._charAfterSelection = n2; @@ -37395,8 +37395,8 @@ ${Object(zn.b)(wi)} t2.addTrackedEditOperation(new a.a(this._range.startLineNumber, this._range.startColumn, this._range.startLineNumber, this._range.startColumn), this._charBeforeSelection), t2.addTrackedEditOperation(new a.a(this._range.endLineNumber, this._range.endColumn, this._range.endLineNumber, this._range.endColumn), this._charAfterSelection); } computeCursorState(e2, t2) { - let n2 = t2.getInverseEditOperations(), i2 = n2[0].range, o2 = n2[1].range; - return new l.a(i2.endLineNumber, i2.endColumn, o2.endLineNumber, o2.endColumn - this._charAfterSelection.length); + let n2 = t2.getInverseEditOperations(), i2 = n2[0].range, r2 = n2[1].range; + return new l.a(i2.endLineNumber, i2.endColumn, r2.endLineNumber, r2.endColumn - this._charAfterSelection.length); } } var d = n(22), h = n(117), u = n(75), p = n(39); @@ -37405,13 +37405,13 @@ ${Object(zn.b)(wi)} if (t2 === null || n2 === null) return []; let i2 = []; - for (let t3 = 0, o2 = n2.length; t3 < o2; t3++) + for (let t3 = 0, r2 = n2.length; t3 < r2; t3++) i2[t3] = new s.a(n2[t3], {isUnshift: false, tabSize: e2.tabSize, indentSize: e2.indentSize, insertSpaces: e2.insertSpaces, useTabStops: e2.useTabStops, autoIndent: e2.autoIndent}); return i2; } static outdent(e2, t2, n2) { let i2 = []; - for (let t3 = 0, o2 = n2.length; t3 < o2; t3++) + for (let t3 = 0, r2 = n2.length; t3 < r2; t3++) i2[t3] = new s.a(n2[t3], {isUnshift: true, tabSize: e2.tabSize, indentSize: e2.indentSize, insertSpaces: e2.insertSpaces, useTabStops: e2.useTabStops, autoIndent: e2.autoIndent}); return i2; } @@ -37422,31 +37422,31 @@ ${Object(zn.b)(wi)} return n2 = n2 || 1, s.a.unshiftIndent(t2, t2.length + n2, e2.tabSize, e2.indentSize, e2.insertSpaces); } static _distributedPaste(e2, t2, n2, i2) { - let o2 = []; + let r2 = []; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) - o2[e3] = new r.a(n2[e3], i2[e3]); - return new d.e(0, o2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); + r2[e3] = new o.a(n2[e3], i2[e3]); + return new d.e(0, r2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); } - static _simplePaste(e2, t2, n2, i2, o2) { + static _simplePaste(e2, t2, n2, i2, r2) { let s2 = []; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) { const t4 = n2[e3]; let l2 = t4.getPosition(); - if (o2 && !t4.isEmpty() && (o2 = false), o2 && i2.indexOf("\n") !== i2.length - 1 && (o2 = false), o2) { + if (r2 && !t4.isEmpty() && (r2 = false), r2 && i2.indexOf("\n") !== i2.length - 1 && (r2 = false), r2) { let n3 = new a.a(l2.lineNumber, 1, l2.lineNumber, 1); - s2[e3] = new r.b(n3, i2, t4, true); + s2[e3] = new o.b(n3, i2, t4, true); } else - s2[e3] = new r.a(t4, i2); + s2[e3] = new o.a(t4, i2); } return new d.e(0, s2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); } - static _distributePasteToCursors(e2, t2, n2, i2, o2) { + static _distributePasteToCursors(e2, t2, n2, i2, r2) { if (i2) return null; if (t2.length === 1) return null; - if (o2 && o2.length === t2.length) - return o2; + if (r2 && r2.length === t2.length) + return r2; if (e2.multiCursorPaste === "spread") { n2.charCodeAt(n2.length - 1) === 10 && (n2 = n2.substr(0, n2.length - 1)), n2.charCodeAt(n2.length - 1) === 13 && (n2 = n2.substr(0, n2.length - 1)); let e3 = n2.split(/\r\n|\r|\n/); @@ -37455,38 +37455,38 @@ ${Object(zn.b)(wi)} } return null; } - static paste(e2, t2, n2, i2, o2, r2) { - const s2 = this._distributePasteToCursors(e2, n2, i2, o2, r2); - return s2 ? (n2 = n2.sort(a.a.compareRangesUsingStarts), this._distributedPaste(e2, t2, n2, s2)) : this._simplePaste(e2, t2, n2, i2, o2); + static paste(e2, t2, n2, i2, r2, o2) { + const s2 = this._distributePasteToCursors(e2, n2, i2, r2, o2); + return s2 ? (n2 = n2.sort(a.a.compareRangesUsingStarts), this._distributedPaste(e2, t2, n2, s2)) : this._simplePaste(e2, t2, n2, i2, r2); } static _goodIndentForLine(e2, t2, n2) { - let i2 = null, r2 = ""; + let i2 = null, o2 = ""; const s2 = p.a.getInheritIndentForLine(e2.autoIndent, t2, n2, false); if (s2) - i2 = s2.action, r2 = s2.indentation; + i2 = s2.action, o2 = s2.indentation; else if (n2 > 1) { let i3; for (i3 = n2 - 1; i3 >= 1; i3--) { const e3 = t2.getLineContent(i3); - if (o.J(e3) >= 0) + if (r.J(e3) >= 0) break; } if (i3 < 1) return null; const s3 = t2.getLineMaxColumn(i3), l2 = p.a.getEnterAction(e2.autoIndent, t2, new a.a(i3, s3, i3, s3)); - l2 && (r2 = l2.indentation + l2.appendText); + l2 && (o2 = l2.indentation + l2.appendText); } - return i2 && (i2 === u.a.Indent && (r2 = m.shiftIndent(e2, r2)), i2 === u.a.Outdent && (r2 = m.unshiftIndent(e2, r2)), r2 = e2.normalizeIndentation(r2)), r2 || null; + return i2 && (i2 === u.a.Indent && (o2 = m.shiftIndent(e2, o2)), i2 === u.a.Outdent && (o2 = m.unshiftIndent(e2, o2)), o2 = e2.normalizeIndentation(o2)), o2 || null; } static _replaceJumpToNextIndent(e2, t2, n2, i2) { - let o2 = "", s2 = n2.getStartPosition(); + let r2 = "", s2 = n2.getStartPosition(); if (e2.insertSpaces) { - let n3 = d.a.visibleColumnFromColumn2(e2, t2, s2), i3 = e2.indentSize, r2 = i3 - n3 % i3; - for (let e3 = 0; e3 < r2; e3++) - o2 += " "; + let n3 = d.a.visibleColumnFromColumn2(e2, t2, s2), i3 = e2.indentSize, o2 = i3 - n3 % i3; + for (let e3 = 0; e3 < o2; e3++) + r2 += " "; } else - o2 = " "; - return new r.a(n2, o2, i2); + r2 = " "; + return new o.a(n2, r2, i2); } static tab(e2, t2, n2) { let i2 = []; @@ -37498,8 +37498,8 @@ ${Object(zn.b)(wi)} let s2 = this._goodIndentForLine(e2, t2, c3.startLineNumber); s2 = s2 || " "; let d2 = e2.normalizeIndentation(s2); - if (!o.S(n3, d2)) { - i2[l2] = new r.a(new a.a(c3.startLineNumber, 1, c3.startLineNumber, n3.length + 1), d2, true); + if (!r.S(n3, d2)) { + i2[l2] = new o.a(new a.a(c3.startLineNumber, 1, c3.startLineNumber, n3.length + 1), d2, true); continue; } } @@ -37517,7 +37517,7 @@ ${Object(zn.b)(wi)} } return i2; } - static replacePreviousChar(e2, t2, n2, i2, o2, s2) { + static replacePreviousChar(e2, t2, n2, i2, r2, s2) { let l2 = []; for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) { const t4 = i2[e3]; @@ -37526,18 +37526,18 @@ ${Object(zn.b)(wi)} continue; } const c2 = t4.getPosition(), d2 = Math.max(1, c2.column - s2), h2 = new a.a(c2.lineNumber, d2, c2.lineNumber, c2.column); - n2.getValueInRange(h2) !== o2 ? l2[e3] = new r.a(h2, o2) : l2[e3] = null; + n2.getValueInRange(h2) !== r2 ? l2[e3] = new o.a(h2, r2) : l2[e3] = null; } return new d.e(1, l2, {shouldPushStackElementBefore: e2 !== 1, shouldPushStackElementAfter: false}); } static _typeCommand(e2, t2, n2) { - return n2 ? new r.e(e2, t2, true) : new r.a(e2, t2, true); + return n2 ? new o.e(e2, t2, true) : new o.a(e2, t2, true); } static _enter(e2, t2, n2, i2) { if (e2.autoIndent === 0) return m._typeCommand(i2, "\n", n2); if (!t2.isCheapToTokenize(i2.getStartPosition().lineNumber) || e2.autoIndent === 1) { - let r2 = t2.getLineContent(i2.startLineNumber), s3 = o.z(r2).substring(0, i2.startColumn - 1); + let o2 = t2.getLineContent(i2.startLineNumber), s3 = r.z(o2).substring(0, i2.startColumn - 1); return m._typeCommand(i2, "\n" + e2.normalizeIndentation(s3), n2); } const s2 = p.a.getEnterAction(e2.autoIndent, t2, i2); @@ -37547,15 +37547,15 @@ ${Object(zn.b)(wi)} if (s2.indentAction === u.a.Indent) return m._typeCommand(i2, "\n" + e2.normalizeIndentation(s2.indentation + s2.appendText), n2); if (s2.indentAction === u.a.IndentOutdent) { - const t3 = e2.normalizeIndentation(s2.indentation), o2 = e2.normalizeIndentation(s2.indentation + s2.appendText), a2 = "\n" + o2 + "\n" + t3; - return n2 ? new r.e(i2, a2, true) : new r.d(i2, a2, -1, o2.length - t3.length, true); + const t3 = e2.normalizeIndentation(s2.indentation), r2 = e2.normalizeIndentation(s2.indentation + s2.appendText), a2 = "\n" + r2 + "\n" + t3; + return n2 ? new o.e(i2, a2, true) : new o.d(i2, a2, -1, r2.length - t3.length, true); } if (s2.indentAction === u.a.Outdent) { const t3 = m.unshiftIndent(e2, s2.indentation); return m._typeCommand(i2, "\n" + e2.normalizeIndentation(t3 + s2.appendText), n2); } } - const l2 = t2.getLineContent(i2.startLineNumber), c2 = o.z(l2).substring(0, i2.startColumn - 1); + const l2 = t2.getLineContent(i2.startLineNumber), c2 = r.z(l2).substring(0, i2.startColumn - 1); if (e2.autoIndent >= 4) { const s3 = p.a.getIndentForEnter(e2.autoIndent, t2, i2, {unshiftIndent: (t3) => m.unshiftIndent(e2, t3), shiftIndent: (t3) => m.shiftIndent(e2, t3), normalizeIndentation: (t3) => e2.normalizeIndentation(t3)}); if (s3) { @@ -37563,12 +37563,12 @@ ${Object(zn.b)(wi)} const u2 = i2.endColumn; let p2 = "\n"; c2 !== e2.normalizeIndentation(s3.beforeEnter) && (p2 = e2.normalizeIndentation(s3.beforeEnter) + l2.substring(c2.length, i2.startColumn - 1) + "\n", i2 = new a.a(i2.startLineNumber, 1, i2.endLineNumber, i2.endColumn)); - const m2 = t2.getLineContent(i2.endLineNumber), g2 = o.w(m2); + const m2 = t2.getLineContent(i2.endLineNumber), g2 = r.w(m2); if (i2 = g2 >= 0 ? i2.setEndPosition(i2.endLineNumber, Math.max(i2.endColumn, g2 + 1)) : i2.setEndPosition(i2.endLineNumber, t2.getLineMaxColumn(i2.endLineNumber)), n2) - return new r.e(i2, p2 + e2.normalizeIndentation(s3.afterEnter), true); + return new o.e(i2, p2 + e2.normalizeIndentation(s3.afterEnter), true); { let t3 = 0; - return u2 <= g2 + 1 && (e2.insertSpaces || (h2 = Math.ceil(h2 / e2.indentSize)), t3 = Math.min(h2 + 1 - e2.normalizeIndentation(s3.afterEnter).length - 1, 0)), new r.d(i2, p2 + e2.normalizeIndentation(s3.afterEnter), 0, t3, true); + return u2 <= g2 + 1 && (e2.insertSpaces || (h2 = Math.ceil(h2 / e2.indentSize)), t3 = Math.min(h2 + 1 - e2.normalizeIndentation(s3.afterEnter).length - 1, 0)), new o.d(i2, p2 + e2.normalizeIndentation(s3.afterEnter), 0, t3, true); } } } @@ -37583,28 +37583,28 @@ ${Object(zn.b)(wi)} return true; } static _runAutoIndentType(e2, t2, n2, i2) { - const o2 = p.a.getIndentationAtPosition(t2, n2.startLineNumber, n2.startColumn), r2 = p.a.getIndentActionForType(e2.autoIndent, t2, n2, i2, {shiftIndent: (t3) => m.shiftIndent(e2, t3), unshiftIndent: (t3) => m.unshiftIndent(e2, t3)}); - if (r2 === null) + const r2 = p.a.getIndentationAtPosition(t2, n2.startLineNumber, n2.startColumn), o2 = p.a.getIndentActionForType(e2.autoIndent, t2, n2, i2, {shiftIndent: (t3) => m.shiftIndent(e2, t3), unshiftIndent: (t3) => m.unshiftIndent(e2, t3)}); + if (o2 === null) return null; - if (r2 !== e2.normalizeIndentation(o2)) { - const o3 = t2.getLineFirstNonWhitespaceColumn(n2.startLineNumber); - return o3 === 0 ? m._typeCommand(new a.a(n2.startLineNumber, 0, n2.endLineNumber, n2.endColumn), e2.normalizeIndentation(r2) + i2, false) : m._typeCommand(new a.a(n2.startLineNumber, 0, n2.endLineNumber, n2.endColumn), e2.normalizeIndentation(r2) + t2.getLineContent(n2.startLineNumber).substring(o3 - 1, n2.startColumn - 1) + i2, false); + if (o2 !== e2.normalizeIndentation(r2)) { + const r3 = t2.getLineFirstNonWhitespaceColumn(n2.startLineNumber); + return r3 === 0 ? m._typeCommand(new a.a(n2.startLineNumber, 0, n2.endLineNumber, n2.endColumn), e2.normalizeIndentation(o2) + i2, false) : m._typeCommand(new a.a(n2.startLineNumber, 0, n2.endLineNumber, n2.endColumn), e2.normalizeIndentation(o2) + t2.getLineContent(n2.startLineNumber).substring(r3 - 1, n2.startColumn - 1) + i2, false); } return null; } - static _isAutoClosingOvertype(e2, t2, n2, i2, o2) { + static _isAutoClosingOvertype(e2, t2, n2, i2, r2) { if (e2.autoClosingOvertype === "never") return false; - if (!e2.autoClosingPairsClose2.has(o2)) + if (!e2.autoClosingPairsClose2.has(r2)) return false; - for (let r2 = 0, s2 = n2.length; r2 < s2; r2++) { - const s3 = n2[r2]; + for (let o2 = 0, s2 = n2.length; o2 < s2; o2++) { + const s3 = n2[o2]; if (!s3.isEmpty()) return false; const a2 = s3.getPosition(), l2 = t2.getLineContent(a2.lineNumber); - if (l2.charAt(a2.column - 1) !== o2) + if (l2.charAt(a2.column - 1) !== r2) return false; - const c2 = Object(d.g)(o2); + const c2 = Object(d.g)(r2); if ((a2.column > 2 ? l2.charCodeAt(a2.column - 2) : 0) === 92 && c2) return false; if (e2.autoClosingOvertype === "auto") { @@ -37622,11 +37622,11 @@ ${Object(zn.b)(wi)} } return true; } - static _runAutoClosingOvertype(e2, t2, n2, i2, o2) { + static _runAutoClosingOvertype(e2, t2, n2, i2, r2) { let s2 = []; for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) { const t4 = i2[e3].getPosition(), n3 = new a.a(t4.lineNumber, t4.column, t4.lineNumber, t4.column + 1); - s2[e3] = new r.a(n3, o2); + s2[e3] = new o.a(n3, r2); } return new d.e(1, s2, {shouldPushStackElementBefore: e2 !== 1, shouldPushStackElementAfter: false}); } @@ -37638,42 +37638,42 @@ ${Object(zn.b)(wi)} const i2 = e2.autoClosingPairsClose2.get(n2); if (!i2) return false; - const o2 = m._autoClosingPairIsSymmetric(t2); + const r2 = m._autoClosingPairIsSymmetric(t2); for (const e3 of i2) { const t3 = m._autoClosingPairIsSymmetric(e3); - if (o2 || !t3) + if (r2 || !t3) return true; } return false; } static _findAutoClosingPairOpen(e2, t2, n2, i2) { - const o2 = e2.autoClosingPairsOpen2.get(i2); - if (!o2) + const r2 = e2.autoClosingPairsOpen2.get(i2); + if (!r2) return null; - let r2 = null; - for (const e3 of o2) - if (r2 === null || e3.open.length > r2.open.length) { - let o3 = true; - for (const r3 of n2) { - if (t2.getValueInRange(new a.a(r3.lineNumber, r3.column - e3.open.length + 1, r3.lineNumber, r3.column)) + i2 !== e3.open) { - o3 = false; + let o2 = null; + for (const e3 of r2) + if (o2 === null || e3.open.length > o2.open.length) { + let r3 = true; + for (const o3 of n2) { + if (t2.getValueInRange(new a.a(o3.lineNumber, o3.column - e3.open.length + 1, o3.lineNumber, o3.column)) + i2 !== e3.open) { + r3 = false; break; } } - o3 && (r2 = e3); + r3 && (o2 = e3); } - return r2; + return o2; } - static _isAutoClosingOpenCharType(e2, t2, n2, o2, r2) { - const s2 = Object(d.g)(o2), a2 = s2 ? e2.autoClosingQuotes : e2.autoClosingBrackets; + static _isAutoClosingOpenCharType(e2, t2, n2, r2, o2) { + const s2 = Object(d.g)(r2), a2 = s2 ? e2.autoClosingQuotes : e2.autoClosingBrackets; if (a2 === "never") return null; - const l2 = this._findAutoClosingPairOpen(e2, t2, n2.map((e3) => e3.getPosition()), o2); + const l2 = this._findAutoClosingPairOpen(e2, t2, n2.map((e3) => e3.getPosition()), r2); if (!l2) return null; const c2 = s2 ? e2.shouldAutoCloseBefore.quote : e2.shouldAutoCloseBefore.bracket; - for (let o3 = 0, d2 = n2.length; o3 < d2; o3++) { - const d3 = n2[o3]; + for (let r3 = 0, d2 = n2.length; r3 < d2; r3++) { + const d3 = n2[r3]; if (!d3.isEmpty()) return null; const u2 = d3.getPosition(), g2 = t2.getLineContent(u2.lineNumber); @@ -37686,16 +37686,16 @@ ${Object(zn.b)(wi)} return null; if (l2.open.length === 1 && s2 && a2 !== "always") { const t3 = Object(h.a)(e2.wordSeparators); - if (r2 && u2.column > 1 && t3.get(g2.charCodeAt(u2.column - 2)) === 0) + if (o2 && u2.column > 1 && t3.get(g2.charCodeAt(u2.column - 2)) === 0) return null; - if (!r2 && u2.column > 2 && t3.get(g2.charCodeAt(u2.column - 3)) === 0) + if (!o2 && u2.column > 2 && t3.get(g2.charCodeAt(u2.column - 3)) === 0) return null; } t2.forceTokenization(u2.lineNumber); const f = t2.getLineTokens(u2.lineNumber); let b = false; try { - b = p.a.shouldAutoClosePair(l2, f, r2 ? u2.column : u2.column - 1); + b = p.a.shouldAutoClosePair(l2, f, o2 ? u2.column : u2.column - 1); } catch (e3) { Object(i.e)(e3); } @@ -37704,11 +37704,11 @@ ${Object(zn.b)(wi)} } return l2; } - static _runAutoClosingOpenCharType(e2, t2, n2, i2, o2, r2, s2) { + static _runAutoClosingOpenCharType(e2, t2, n2, i2, r2, o2, s2) { let a2 = []; for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) { const t4 = i2[e3]; - a2[e3] = new g(t4, o2, r2, s2.close); + a2[e3] = new g(t4, r2, o2, s2.close); } return new d.e(1, a2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: false}); } @@ -37718,22 +37718,22 @@ ${Object(zn.b)(wi)} static _isSurroundSelectionType(e2, t2, n2, i2) { if (!m._shouldSurroundChar(e2, i2) || !e2.surroundingPairs.hasOwnProperty(i2)) return false; - const o2 = Object(d.g)(i2); + const r2 = Object(d.g)(i2); for (let e3 = 0, i3 = n2.length; e3 < i3; e3++) { const i4 = n2[e3]; if (i4.isEmpty()) return false; - let r2 = true; + let o2 = true; for (let e4 = i4.startLineNumber; e4 <= i4.endLineNumber; e4++) { - const n3 = t2.getLineContent(e4), o3 = e4 === i4.startLineNumber ? i4.startColumn - 1 : 0, s2 = e4 === i4.endLineNumber ? i4.endColumn - 1 : n3.length, a2 = n3.substring(o3, s2); + const n3 = t2.getLineContent(e4), r3 = e4 === i4.startLineNumber ? i4.startColumn - 1 : 0, s2 = e4 === i4.endLineNumber ? i4.endColumn - 1 : n3.length, a2 = n3.substring(r3, s2); if (/[^ \t]/.test(a2)) { - r2 = false; + o2 = false; break; } } - if (r2) + if (o2) return false; - if (o2 && i4.startLineNumber === i4.endLineNumber && i4.startColumn + 1 === i4.endColumn) { + if (r2 && i4.startLineNumber === i4.endLineNumber && i4.startColumn + 1 === i4.endColumn) { const e4 = t2.getValueInRange(i4); if (Object(d.g)(e4)) return false; @@ -37741,13 +37741,13 @@ ${Object(zn.b)(wi)} } return true; } - static _runSurroundSelectionType(e2, t2, n2, i2, o2) { - let r2 = []; + static _runSurroundSelectionType(e2, t2, n2, i2, r2) { + let o2 = []; for (let e3 = 0, n3 = i2.length; e3 < n3; e3++) { - const n4 = i2[e3], s2 = t2.surroundingPairs[o2]; - r2[e3] = new c(n4, o2, s2); + const n4 = i2[e3], s2 = t2.surroundingPairs[r2]; + o2[e3] = new c(n4, r2, s2); } - return new d.e(0, r2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); + return new d.e(0, o2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); } static _isTypeInterceptorElectricChar(e2, t2, n2) { return !(n2.length !== 1 || !t2.isCheapToTokenize(n2[0].getEndPosition().lineNumber)); @@ -37770,18 +37770,18 @@ ${Object(zn.b)(wi)} if (i2) { if (i2.startLineNumber === c2.lineNumber) return null; - let e4 = n2.getLineContent(i2.startLineNumber), s3 = o.z(e4), h3 = t2.normalizeIndentation(s3), u3 = n2.getLineContent(c2.lineNumber), p2 = n2.getLineFirstNonWhitespaceColumn(c2.lineNumber) || c2.column, m2 = h3 + u3.substring(p2 - 1, c2.column - 1) + l2, g2 = new a.a(c2.lineNumber, 1, c2.lineNumber, c2.column); - const f = new r.a(g2, m2); + let e4 = n2.getLineContent(i2.startLineNumber), s3 = r.z(e4), h3 = t2.normalizeIndentation(s3), u3 = n2.getLineContent(c2.lineNumber), p2 = n2.getLineFirstNonWhitespaceColumn(c2.lineNumber) || c2.column, m2 = h3 + u3.substring(p2 - 1, c2.column - 1) + l2, g2 = new a.a(c2.lineNumber, 1, c2.lineNumber, c2.column); + const f = new o.a(g2, m2); return new d.e(1, [f], {shouldPushStackElementBefore: false, shouldPushStackElementAfter: true}); } } return null; } - static compositionEndWithInterceptors(e2, t2, n2, i2, o2, s2) { - if (!i2 || l.a.selectionsArrEqual(i2, o2)) + static compositionEndWithInterceptors(e2, t2, n2, i2, r2, s2) { + if (!i2 || l.a.selectionsArrEqual(i2, r2)) return null; let c2 = null; - for (const e3 of o2) { + for (const e3 of r2) { if (!e3.isEmpty()) return null; const t3 = e3.getPosition(), i3 = n2.getValueInRange(new a.a(t3.lineNumber, t3.column - 1, t3.lineNumber, t3.column)); @@ -37792,68 +37792,68 @@ ${Object(zn.b)(wi)} } if (!c2) return null; - if (this._isAutoClosingOvertype(t2, n2, o2, s2, c2)) { - const e3 = o2.map((e4) => new r.a(new a.a(e4.positionLineNumber, e4.positionColumn, e4.positionLineNumber, e4.positionColumn + 1), "", false)); + if (this._isAutoClosingOvertype(t2, n2, r2, s2, c2)) { + const e3 = r2.map((e4) => new o.a(new a.a(e4.positionLineNumber, e4.positionColumn, e4.positionLineNumber, e4.positionColumn + 1), "", false)); return new d.e(1, e3, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: false}); } - const h2 = this._isAutoClosingOpenCharType(t2, n2, o2, c2, false); - return h2 ? this._runAutoClosingOpenCharType(e2, t2, n2, o2, c2, false, h2) : null; + const h2 = this._isAutoClosingOpenCharType(t2, n2, r2, c2, false); + return h2 ? this._runAutoClosingOpenCharType(e2, t2, n2, r2, c2, false, h2) : null; } - static typeWithInterceptors(e2, t2, n2, i2, o2, s2, a2) { + static typeWithInterceptors(e2, t2, n2, i2, r2, s2, a2) { if (!e2 && a2 === "\n") { let e3 = []; - for (let t3 = 0, r2 = o2.length; t3 < r2; t3++) - e3[t3] = m._enter(n2, i2, false, o2[t3]); + for (let t3 = 0, o2 = r2.length; t3 < o2; t3++) + e3[t3] = m._enter(n2, i2, false, r2[t3]); return new d.e(1, e3, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: false}); } - if (!e2 && this._isAutoIndentType(n2, i2, o2)) { + if (!e2 && this._isAutoIndentType(n2, i2, r2)) { let e3 = [], t3 = false; - for (let r2 = 0, s3 = o2.length; r2 < s3; r2++) - if (e3[r2] = this._runAutoIndentType(n2, i2, o2[r2], a2), !e3[r2]) { + for (let o2 = 0, s3 = r2.length; o2 < s3; o2++) + if (e3[o2] = this._runAutoIndentType(n2, i2, r2[o2], a2), !e3[o2]) { t3 = true; break; } if (!t3) return new d.e(1, e3, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: false}); } - if (!e2 && this._isAutoClosingOvertype(n2, i2, o2, s2, a2)) - return this._runAutoClosingOvertype(t2, n2, i2, o2, a2); + if (!e2 && this._isAutoClosingOvertype(n2, i2, r2, s2, a2)) + return this._runAutoClosingOvertype(t2, n2, i2, r2, a2); if (!e2) { - const e3 = this._isAutoClosingOpenCharType(n2, i2, o2, a2, true); + const e3 = this._isAutoClosingOpenCharType(n2, i2, r2, a2, true); if (e3) - return this._runAutoClosingOpenCharType(t2, n2, i2, o2, a2, true, e3); + return this._runAutoClosingOpenCharType(t2, n2, i2, r2, a2, true, e3); } - if (this._isSurroundSelectionType(n2, i2, o2, a2)) - return this._runSurroundSelectionType(t2, n2, i2, o2, a2); - if (!e2 && this._isTypeInterceptorElectricChar(n2, i2, o2)) { - const e3 = this._typeInterceptorElectricChar(t2, n2, i2, o2[0], a2); + if (this._isSurroundSelectionType(n2, i2, r2, a2)) + return this._runSurroundSelectionType(t2, n2, i2, r2, a2); + if (!e2 && this._isTypeInterceptorElectricChar(n2, i2, r2)) { + const e3 = this._typeInterceptorElectricChar(t2, n2, i2, r2[0], a2); if (e3) return e3; } let l2 = []; - for (let e3 = 0, t3 = o2.length; e3 < t3; e3++) - l2[e3] = new r.a(o2[e3], a2); + for (let e3 = 0, t3 = r2.length; e3 < t3; e3++) + l2[e3] = new o.a(r2[e3], a2); let c2 = t2 !== 1; return a2 === " " && (c2 = true), new d.e(1, l2, {shouldPushStackElementBefore: c2, shouldPushStackElementAfter: false}); } - static typeWithoutInterceptors(e2, t2, n2, i2, o2) { + static typeWithoutInterceptors(e2, t2, n2, i2, r2) { let s2 = []; for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) - s2[e3] = new r.a(i2[e3], o2); + s2[e3] = new o.a(i2[e3], r2); return new d.e(1, s2, {shouldPushStackElementBefore: e2 !== 1, shouldPushStackElementAfter: false}); } static lineInsertBefore(e2, t2, n2) { if (t2 === null || n2 === null) return []; let i2 = []; - for (let o2 = 0, s2 = n2.length; o2 < s2; o2++) { - let s3 = n2[o2].positionLineNumber; + for (let r2 = 0, s2 = n2.length; r2 < s2; r2++) { + let s3 = n2[r2].positionLineNumber; if (s3 === 1) - i2[o2] = new r.e(new a.a(1, 1, 1, 1), "\n"); + i2[r2] = new o.e(new a.a(1, 1, 1, 1), "\n"); else { s3--; let n3 = t2.getLineMaxColumn(s3); - i2[o2] = this._enter(e2, t2, false, new a.a(s3, n3, s3, n3)); + i2[r2] = this._enter(e2, t2, false, new a.a(s3, n3, s3, n3)); } } return i2; @@ -37862,21 +37862,21 @@ ${Object(zn.b)(wi)} if (t2 === null || n2 === null) return []; let i2 = []; - for (let o2 = 0, r2 = n2.length; o2 < r2; o2++) { - const r3 = n2[o2].positionLineNumber; - let s2 = t2.getLineMaxColumn(r3); - i2[o2] = this._enter(e2, t2, false, new a.a(r3, s2, r3, s2)); + for (let r2 = 0, o2 = n2.length; r2 < o2; r2++) { + const o3 = n2[r2].positionLineNumber; + let s2 = t2.getLineMaxColumn(o3); + i2[r2] = this._enter(e2, t2, false, new a.a(o3, s2, o3, s2)); } return i2; } static lineBreakInsert(e2, t2, n2) { let i2 = []; - for (let o2 = 0, r2 = n2.length; o2 < r2; o2++) - i2[o2] = this._enter(e2, t2, true, n2[o2]); + for (let r2 = 0, o2 = n2.length; r2 < o2; r2++) + i2[r2] = this._enter(e2, t2, true, n2[r2]); return i2; } } - class g extends r.d { + class g extends o.d { constructor(e2, t2, n2, i2) { super(e2, (n2 ? t2 : "") + i2, 0, -i2.length), this._openCharacter = t2, this._closeCharacter = i2, this.closeCharacterRange = null, this.enclosingRange = null; } @@ -37892,10 +37892,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "a", function() { return a; }); - var i = n(8), o = n(9), r = n(3); + var i = n(8), r = n(9), o = n(3); class s { - constructor(e2, t2, n2, i2, o2) { - this.value = e2, this.selectionStart = t2, this.selectionEnd = n2, this.selectionStartPosition = i2, this.selectionEndPosition = o2; + constructor(e2, t2, n2, i2, r2) { + this.value = e2, this.selectionStart = t2, this.selectionEnd = n2, this.selectionStartPosition = i2, this.selectionEndPosition = r2; } toString() { return "[ <" + this.value + ">, selectionStart: " + this.selectionStart + ", selectionEnd: " + this.selectionEnd + "]"; @@ -37925,8 +37925,8 @@ ${Object(zn.b)(wi)} return this._finishDeduceEditorPosition(this.selectionEndPosition, n2, -1); } _finishDeduceEditorPosition(e2, t2, n2) { - let i2 = 0, o2 = -1; - for (; (o2 = t2.indexOf("\n", o2 + 1)) !== -1; ) + let i2 = 0, r2 = -1; + for (; (r2 = t2.indexOf("\n", r2 + 1)) !== -1; ) i2++; return [e2, n2 * t2.length, i2]; } @@ -37936,21 +37936,21 @@ ${Object(zn.b)(wi)} static deduceInput(e2, t2, n2) { if (!e2) return {text: "", replaceCharCnt: 0}; - let o2 = e2.value, r2 = e2.selectionStart, s2 = e2.selectionEnd, a2 = t2.value, l = t2.selectionStart, c = t2.selectionEnd; - const d = o2.substring(s2), h = a2.substring(c), u = i.e(d, h); - a2 = a2.substring(0, a2.length - u), o2 = o2.substring(0, o2.length - u); - const p = o2.substring(0, r2), m = a2.substring(0, l), g = i.d(p, m); - if (a2 = a2.substring(g), o2 = o2.substring(g), l -= g, r2 -= g, c -= g, s2 -= g, n2 && l === c && o2.length > 0) { + let r2 = e2.value, o2 = e2.selectionStart, s2 = e2.selectionEnd, a2 = t2.value, l = t2.selectionStart, c = t2.selectionEnd; + const d = r2.substring(s2), h = a2.substring(c), u = i.e(d, h); + a2 = a2.substring(0, a2.length - u), r2 = r2.substring(0, r2.length - u); + const p = r2.substring(0, o2), m = a2.substring(0, l), g = i.d(p, m); + if (a2 = a2.substring(g), r2 = r2.substring(g), l -= g, o2 -= g, c -= g, s2 -= g, n2 && l === c && r2.length > 0) { let e3 = null; - if (l === a2.length ? i.S(a2, o2) && (e3 = a2.substring(o2.length)) : i.s(a2, o2) && (e3 = a2.substring(0, a2.length - o2.length)), e3 !== null && e3.length > 0 && (/\uFE0F/.test(e3) || i.k(e3))) + if (l === a2.length ? i.S(a2, r2) && (e3 = a2.substring(r2.length)) : i.s(a2, r2) && (e3 = a2.substring(0, a2.length - r2.length)), e3 !== null && e3.length > 0 && (/\uFE0F/.test(e3) || i.k(e3))) return {text: e3, replaceCharCnt: 0}; } if (l === c) { - if (o2 === a2 && r2 === 0 && s2 === o2.length && l === a2.length && a2.indexOf("\n") === -1 && i.l(a2)) + if (r2 === a2 && o2 === 0 && s2 === r2.length && l === a2.length && a2.indexOf("\n") === -1 && i.l(a2)) return {text: "", replaceCharCnt: 0}; return {text: a2, replaceCharCnt: p.length - g}; } - return {text: a2, replaceCharCnt: s2 - r2}; + return {text: a2, replaceCharCnt: s2 - o2}; } } s.EMPTY = new s("", 0, 0, null, null); @@ -37959,13 +37959,13 @@ ${Object(zn.b)(wi)} return Math.floor((e2 - 1) / t2); } static _getRangeForPage(e2, t2) { - const n2 = e2 * t2, i2 = n2 + 1, o2 = n2 + t2; - return new r.a(i2, 1, o2 + 1, 1); + const n2 = e2 * t2, i2 = n2 + 1, r2 = n2 + t2; + return new o.a(i2, 1, r2 + 1, 1); } static fromEditorSelection(e2, t2, n2, i2, l) { - const c = a._getPageOfLine(n2.startLineNumber, i2), d = a._getRangeForPage(c, i2), h = a._getPageOfLine(n2.endLineNumber, i2), u = a._getRangeForPage(h, i2), p = d.intersectRanges(new r.a(1, 1, n2.startLineNumber, n2.startColumn)); + const c = a._getPageOfLine(n2.startLineNumber, i2), d = a._getRangeForPage(c, i2), h = a._getPageOfLine(n2.endLineNumber, i2), u = a._getRangeForPage(h, i2), p = d.intersectRanges(new o.a(1, 1, n2.startLineNumber, n2.startColumn)); let m = t2.getValueInRange(p, 1); - const g = t2.getLineCount(), f = t2.getLineMaxColumn(g), b = u.intersectRanges(new r.a(n2.endLineNumber, n2.endColumn, g, f)); + const g = t2.getLineCount(), f = t2.getLineMaxColumn(g), b = u.intersectRanges(new o.a(n2.endLineNumber, n2.endColumn, g, f)); let _, v = t2.getValueInRange(b, 1); if (c === h || c + 1 === h) _ = t2.getValueInRange(n2, 1); @@ -37977,7 +37977,7 @@ ${Object(zn.b)(wi)} const e3 = 500; m.length > e3 && (m = m.substring(m.length - e3, m.length)), v.length > e3 && (v = v.substring(0, e3)), _.length > 2 * e3 && (_ = _.substring(0, e3) + String.fromCharCode(8230) + _.substring(_.length - e3, _.length)); } - return new s(m + _ + v, m.length, m.length + _.length, new o.a(n2.startLineNumber, n2.startColumn), new o.a(n2.endLineNumber, n2.endColumn)); + return new s(m + _ + v, m.length, m.length + _.length, new r.a(n2.startLineNumber, n2.startColumn), new r.a(n2.endLineNumber, n2.endColumn)); } } }, function(e, t, n) { @@ -37989,15 +37989,15 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return b; }); - var i = n(0), o = n(6), r = n(56), s = n(14), a = n(188); - const l = {Configuration: "base.contributions.configuration"}, c = {properties: {}, patternProperties: {}}, d = {properties: {}, patternProperties: {}}, h = {properties: {}, patternProperties: {}}, u = {properties: {}, patternProperties: {}}, p = {properties: {}, patternProperties: {}}, m = {properties: {}, patternProperties: {}}, g = r.a.as(a.a.JSONContribution); + var i = n(0), r = n(6), o = n(56), s = n(14), a = n(188); + const l = {Configuration: "base.contributions.configuration"}, c = {properties: {}, patternProperties: {}}, d = {properties: {}, patternProperties: {}}, h = {properties: {}, patternProperties: {}}, u = {properties: {}, patternProperties: {}}, p = {properties: {}, patternProperties: {}}, m = {properties: {}, patternProperties: {}}, g = o.a.as(a.a.JSONContribution); const f = new RegExp("\\[.*\\]$"); function b(e2) { return e2.substring(1, e2.length - 1); } const _ = new class { constructor() { - this.overrideIdentifiers = new Set(), this._onDidSchemaChange = new o.a(), this._onDidUpdateConfiguration = new o.a(), this.defaultValues = {}, this.defaultLanguageConfigurationOverridesNode = {id: "defaultOverrides", title: i.a("defaultLanguageConfigurationOverrides.title", "Default Language Configuration Overrides"), properties: {}}, this.configurationContributors = [this.defaultLanguageConfigurationOverridesNode], this.resourceLanguageSettingsSchema = {properties: {}, patternProperties: {}, additionalProperties: false, errorMessage: "Unknown editor configuration setting", allowTrailingCommas: true, allowComments: true}, this.configurationProperties = {}, this.excludedConfigurationProperties = {}, g.registerSchema("vscode://schemas/settings/resourceLanguage", this.resourceLanguageSettingsSchema); + this.overrideIdentifiers = new Set(), this._onDidSchemaChange = new r.a(), this._onDidUpdateConfiguration = new r.a(), this.defaultValues = {}, this.defaultLanguageConfigurationOverridesNode = {id: "defaultOverrides", title: i.a("defaultLanguageConfigurationOverrides.title", "Default Language Configuration Overrides"), properties: {}}, this.configurationContributors = [this.defaultLanguageConfigurationOverridesNode], this.resourceLanguageSettingsSchema = {properties: {}, patternProperties: {}, additionalProperties: false, errorMessage: "Unknown editor configuration setting", allowTrailingCommas: true, allowComments: true}, this.configurationProperties = {}, this.excludedConfigurationProperties = {}, g.registerSchema("vscode://schemas/settings/resourceLanguage", this.resourceLanguageSettingsSchema); } registerConfiguration(e2, t2 = true) { this.registerConfigurations([e2], t2); @@ -38015,19 +38015,19 @@ ${Object(zn.b)(wi)} } validateAndRegisterProperties(e2, t2 = true, n2 = 3) { n2 = s.l(e2.scope) ? n2 : e2.scope; - let i2 = [], o2 = e2.properties; - if (o2) - for (let e3 in o2) { + let i2 = [], r2 = e2.properties; + if (r2) + for (let e3 in r2) { if (t2 && v(e3)) { - delete o2[e3]; + delete r2[e3]; continue; } - const r3 = o2[e3]; - this.updatePropertyDefaultValue(e3, r3), f.test(e3) ? r3.scope = void 0 : r3.scope = s.l(r3.scope) ? n2 : r3.scope, !o2[e3].hasOwnProperty("included") || o2[e3].included ? (this.configurationProperties[e3] = o2[e3], !o2[e3].deprecationMessage && o2[e3].markdownDeprecationMessage && (o2[e3].deprecationMessage = o2[e3].markdownDeprecationMessage), i2.push(e3)) : (this.excludedConfigurationProperties[e3] = o2[e3], delete o2[e3]); + const o3 = r2[e3]; + this.updatePropertyDefaultValue(e3, o3), f.test(e3) ? o3.scope = void 0 : o3.scope = s.l(o3.scope) ? n2 : o3.scope, !r2[e3].hasOwnProperty("included") || r2[e3].included ? (this.configurationProperties[e3] = r2[e3], !r2[e3].deprecationMessage && r2[e3].markdownDeprecationMessage && (r2[e3].deprecationMessage = r2[e3].markdownDeprecationMessage), i2.push(e3)) : (this.excludedConfigurationProperties[e3] = r2[e3], delete r2[e3]); } - let r2 = e2.allOf; - if (r2) - for (let e3 of r2) + let o2 = e2.allOf; + if (o2) + for (let e3 of o2) i2.push(...this.validateAndRegisterProperties(e3, t2, n2)); return i2; } @@ -38097,7 +38097,7 @@ ${Object(zn.b)(wi)} function v(e2) { return f.test(e2) ? i.a("config.property.languageDefault", "Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.", e2) : _.getConfigurationProperties()[e2] !== void 0 ? i.a("config.property.duplicate", "Cannot register '{0}'. This property is already registered.", e2) : null; } - r.a.add(l.Configuration, _); + o.a.add(l.Configuration, _); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -38105,10 +38105,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return c; }); - var i = n(8), o = n(22), r = n(117), s = n(9), a = n(3); + var i = n(8), r = n(22), o = n(117), s = n(9), a = n(3); class l { - static _createWord(e2, t2, n2, i2, o2) { - return {start: i2, end: o2, wordType: t2, nextCharClass: n2}; + static _createWord(e2, t2, n2, i2, r2) { + return {start: i2, end: r2, wordType: t2, nextCharClass: n2}; } static _findPreviousWordOnLine(e2, t2, n2) { let i2 = t2.getLineContent(n2.lineNumber); @@ -38116,95 +38116,95 @@ ${Object(zn.b)(wi)} } static _doFindPreviousWordOnLine(e2, t2, n2) { let i2 = 0; - for (let o2 = n2.column - 2; o2 >= 0; o2--) { - let n3 = e2.charCodeAt(o2), r2 = t2.get(n3); - if (r2 === 0) { + for (let r2 = n2.column - 2; r2 >= 0; r2--) { + let n3 = e2.charCodeAt(r2), o2 = t2.get(n3); + if (o2 === 0) { if (i2 === 2) - return this._createWord(e2, i2, r2, o2 + 1, this._findEndOfWord(e2, t2, i2, o2 + 1)); + return this._createWord(e2, i2, o2, r2 + 1, this._findEndOfWord(e2, t2, i2, r2 + 1)); i2 = 1; - } else if (r2 === 2) { + } else if (o2 === 2) { if (i2 === 1) - return this._createWord(e2, i2, r2, o2 + 1, this._findEndOfWord(e2, t2, i2, o2 + 1)); + return this._createWord(e2, i2, o2, r2 + 1, this._findEndOfWord(e2, t2, i2, r2 + 1)); i2 = 2; - } else if (r2 === 1 && i2 !== 0) - return this._createWord(e2, i2, r2, o2 + 1, this._findEndOfWord(e2, t2, i2, o2 + 1)); + } else if (o2 === 1 && i2 !== 0) + return this._createWord(e2, i2, o2, r2 + 1, this._findEndOfWord(e2, t2, i2, r2 + 1)); } return i2 !== 0 ? this._createWord(e2, i2, 1, 0, this._findEndOfWord(e2, t2, i2, 0)) : null; } static _findEndOfWord(e2, t2, n2, i2) { - let o2 = e2.length; - for (let r2 = i2; r2 < o2; r2++) { - let i3 = e2.charCodeAt(r2), o3 = t2.get(i3); - if (o3 === 1) - return r2; - if (n2 === 1 && o3 === 2) - return r2; - if (n2 === 2 && o3 === 0) - return r2; + let r2 = e2.length; + for (let o2 = i2; o2 < r2; o2++) { + let i3 = e2.charCodeAt(o2), r3 = t2.get(i3); + if (r3 === 1) + return o2; + if (n2 === 1 && r3 === 2) + return o2; + if (n2 === 2 && r3 === 0) + return o2; } - return o2; + return r2; } static _findNextWordOnLine(e2, t2, n2) { let i2 = t2.getLineContent(n2.lineNumber); return this._doFindNextWordOnLine(i2, e2, n2); } static _doFindNextWordOnLine(e2, t2, n2) { - let i2 = 0, o2 = e2.length; - for (let r2 = n2.column - 1; r2 < o2; r2++) { - let n3 = e2.charCodeAt(r2), o3 = t2.get(n3); - if (o3 === 0) { + let i2 = 0, r2 = e2.length; + for (let o2 = n2.column - 1; o2 < r2; o2++) { + let n3 = e2.charCodeAt(o2), r3 = t2.get(n3); + if (r3 === 0) { if (i2 === 2) - return this._createWord(e2, i2, o3, this._findStartOfWord(e2, t2, i2, r2 - 1), r2); + return this._createWord(e2, i2, r3, this._findStartOfWord(e2, t2, i2, o2 - 1), o2); i2 = 1; - } else if (o3 === 2) { + } else if (r3 === 2) { if (i2 === 1) - return this._createWord(e2, i2, o3, this._findStartOfWord(e2, t2, i2, r2 - 1), r2); + return this._createWord(e2, i2, r3, this._findStartOfWord(e2, t2, i2, o2 - 1), o2); i2 = 2; - } else if (o3 === 1 && i2 !== 0) - return this._createWord(e2, i2, o3, this._findStartOfWord(e2, t2, i2, r2 - 1), r2); + } else if (r3 === 1 && i2 !== 0) + return this._createWord(e2, i2, r3, this._findStartOfWord(e2, t2, i2, o2 - 1), o2); } - return i2 !== 0 ? this._createWord(e2, i2, 1, this._findStartOfWord(e2, t2, i2, o2 - 1), o2) : null; + return i2 !== 0 ? this._createWord(e2, i2, 1, this._findStartOfWord(e2, t2, i2, r2 - 1), r2) : null; } static _findStartOfWord(e2, t2, n2, i2) { - for (let o2 = i2; o2 >= 0; o2--) { - let i3 = e2.charCodeAt(o2), r2 = t2.get(i3); - if (r2 === 1) - return o2 + 1; - if (n2 === 1 && r2 === 2) - return o2 + 1; - if (n2 === 2 && r2 === 0) - return o2 + 1; + for (let r2 = i2; r2 >= 0; r2--) { + let i3 = e2.charCodeAt(r2), o2 = t2.get(i3); + if (o2 === 1) + return r2 + 1; + if (n2 === 1 && o2 === 2) + return r2 + 1; + if (n2 === 2 && o2 === 0) + return r2 + 1; } return 0; } static moveWordLeft(e2, t2, n2, i2) { - let o2 = n2.lineNumber, r2 = n2.column; - r2 === 1 && o2 > 1 && (o2 -= 1, r2 = t2.getLineMaxColumn(o2)); - let a2 = l._findPreviousWordOnLine(e2, t2, new s.a(o2, r2)); + let r2 = n2.lineNumber, o2 = n2.column; + o2 === 1 && r2 > 1 && (r2 -= 1, o2 = t2.getLineMaxColumn(r2)); + let a2 = l._findPreviousWordOnLine(e2, t2, new s.a(r2, o2)); if (i2 === 0) - return new s.a(o2, a2 ? a2.start + 1 : 1); + return new s.a(r2, a2 ? a2.start + 1 : 1); if (i2 === 1) - return a2 && a2.wordType === 2 && a2.end - a2.start == 1 && a2.nextCharClass === 0 && (a2 = l._findPreviousWordOnLine(e2, t2, new s.a(o2, a2.start + 1))), new s.a(o2, a2 ? a2.start + 1 : 1); + return a2 && a2.wordType === 2 && a2.end - a2.start == 1 && a2.nextCharClass === 0 && (a2 = l._findPreviousWordOnLine(e2, t2, new s.a(r2, a2.start + 1))), new s.a(r2, a2 ? a2.start + 1 : 1); if (i2 === 3) { for (; a2 && a2.wordType === 2; ) - a2 = l._findPreviousWordOnLine(e2, t2, new s.a(o2, a2.start + 1)); - return new s.a(o2, a2 ? a2.start + 1 : 1); + a2 = l._findPreviousWordOnLine(e2, t2, new s.a(r2, a2.start + 1)); + return new s.a(r2, a2 ? a2.start + 1 : 1); } - return a2 && r2 <= a2.end + 1 && (a2 = l._findPreviousWordOnLine(e2, t2, new s.a(o2, a2.start + 1))), new s.a(o2, a2 ? a2.end + 1 : 1); + return a2 && o2 <= a2.end + 1 && (a2 = l._findPreviousWordOnLine(e2, t2, new s.a(r2, a2.start + 1))), new s.a(r2, a2 ? a2.end + 1 : 1); } static _moveWordPartLeft(e2, t2) { - const n2 = t2.lineNumber, o2 = e2.getLineMaxColumn(n2); + const n2 = t2.lineNumber, r2 = e2.getLineMaxColumn(n2); if (t2.column === 1) return n2 > 1 ? new s.a(n2 - 1, e2.getLineMaxColumn(n2 - 1)) : t2; - const r2 = e2.getLineContent(n2); + const o2 = e2.getLineContent(n2); for (let e3 = t2.column - 1; e3 > 1; e3--) { - const t3 = r2.charCodeAt(e3 - 2), a2 = r2.charCodeAt(e3 - 1); + const t3 = o2.charCodeAt(e3 - 2), a2 = o2.charCodeAt(e3 - 1); if (t3 === 95 && a2 !== 95) return new s.a(n2, e3); if (i.H(t3) && i.I(a2)) return new s.a(n2, e3); - if (i.I(t3) && i.I(a2) && e3 + 1 < o2) { - const t4 = r2.charCodeAt(e3); + if (i.I(t3) && i.I(a2) && e3 + 1 < r2) { + const t4 = o2.charCodeAt(e3); if (i.H(t4)) return new s.a(n2, e3); } @@ -38212,56 +38212,56 @@ ${Object(zn.b)(wi)} return new s.a(n2, 1); } static moveWordRight(e2, t2, n2, i2) { - let o2 = n2.lineNumber, r2 = n2.column, a2 = false; - r2 === t2.getLineMaxColumn(o2) && o2 < t2.getLineCount() && (a2 = true, o2 += 1, r2 = 1); - let c2 = l._findNextWordOnLine(e2, t2, new s.a(o2, r2)); + let r2 = n2.lineNumber, o2 = n2.column, a2 = false; + o2 === t2.getLineMaxColumn(r2) && r2 < t2.getLineCount() && (a2 = true, r2 += 1, o2 = 1); + let c2 = l._findNextWordOnLine(e2, t2, new s.a(r2, o2)); if (i2 === 2) - c2 && c2.wordType === 2 && c2.end - c2.start == 1 && c2.nextCharClass === 0 && (c2 = l._findNextWordOnLine(e2, t2, new s.a(o2, c2.end + 1))), r2 = c2 ? c2.end + 1 : t2.getLineMaxColumn(o2); + c2 && c2.wordType === 2 && c2.end - c2.start == 1 && c2.nextCharClass === 0 && (c2 = l._findNextWordOnLine(e2, t2, new s.a(r2, c2.end + 1))), o2 = c2 ? c2.end + 1 : t2.getLineMaxColumn(r2); else if (i2 === 3) { - for (a2 && (r2 = 0); c2 && (c2.wordType === 2 || c2.start + 1 <= r2); ) - c2 = l._findNextWordOnLine(e2, t2, new s.a(o2, c2.end + 1)); - r2 = c2 ? c2.start + 1 : t2.getLineMaxColumn(o2); + for (a2 && (o2 = 0); c2 && (c2.wordType === 2 || c2.start + 1 <= o2); ) + c2 = l._findNextWordOnLine(e2, t2, new s.a(r2, c2.end + 1)); + o2 = c2 ? c2.start + 1 : t2.getLineMaxColumn(r2); } else - c2 && !a2 && r2 >= c2.start + 1 && (c2 = l._findNextWordOnLine(e2, t2, new s.a(o2, c2.end + 1))), r2 = c2 ? c2.start + 1 : t2.getLineMaxColumn(o2); - return new s.a(o2, r2); + c2 && !a2 && o2 >= c2.start + 1 && (c2 = l._findNextWordOnLine(e2, t2, new s.a(r2, c2.end + 1))), o2 = c2 ? c2.start + 1 : t2.getLineMaxColumn(r2); + return new s.a(r2, o2); } static _moveWordPartRight(e2, t2) { - const n2 = t2.lineNumber, o2 = e2.getLineMaxColumn(n2); - if (t2.column === o2) + const n2 = t2.lineNumber, r2 = e2.getLineMaxColumn(n2); + if (t2.column === r2) return n2 < e2.getLineCount() ? new s.a(n2 + 1, 1) : t2; - const r2 = e2.getLineContent(n2); - for (let e3 = t2.column + 1; e3 < o2; e3++) { - const t3 = r2.charCodeAt(e3 - 2), a2 = r2.charCodeAt(e3 - 1); + const o2 = e2.getLineContent(n2); + for (let e3 = t2.column + 1; e3 < r2; e3++) { + const t3 = o2.charCodeAt(e3 - 2), a2 = o2.charCodeAt(e3 - 1); if (t3 !== 95 && a2 === 95) return new s.a(n2, e3); if (i.H(t3) && i.I(a2)) return new s.a(n2, e3); - if (i.I(t3) && i.I(a2) && e3 + 1 < o2) { - const t4 = r2.charCodeAt(e3); + if (i.I(t3) && i.I(a2) && e3 + 1 < r2) { + const t4 = o2.charCodeAt(e3); if (i.H(t4)) return new s.a(n2, e3); } } - return new s.a(n2, o2); + return new s.a(n2, r2); } static _deleteWordLeftWhitespace(e2, t2) { - const n2 = e2.getLineContent(t2.lineNumber), o2 = t2.column - 2, r2 = i.J(n2, o2); - return r2 + 1 < o2 ? new a.a(t2.lineNumber, r2 + 2, t2.lineNumber, t2.column) : null; + const n2 = e2.getLineContent(t2.lineNumber), r2 = t2.column - 2, o2 = i.J(n2, r2); + return o2 + 1 < r2 ? new a.a(t2.lineNumber, o2 + 2, t2.lineNumber, t2.column) : null; } - static deleteWordLeft(e2, t2, n2, i2, o2) { + static deleteWordLeft(e2, t2, n2, i2, r2) { if (!n2.isEmpty()) return n2; - const r2 = new s.a(n2.positionLineNumber, n2.positionColumn); - let c2 = r2.lineNumber, d2 = r2.column; + const o2 = new s.a(n2.positionLineNumber, n2.positionColumn); + let c2 = o2.lineNumber, d2 = o2.column; if (c2 === 1 && d2 === 1) return null; if (i2) { - let e3 = this._deleteWordLeftWhitespace(t2, r2); + let e3 = this._deleteWordLeftWhitespace(t2, o2); if (e3) return e3; } - let h = l._findPreviousWordOnLine(e2, t2, r2); - return o2 === 0 ? h ? d2 = h.start + 1 : d2 > 1 ? d2 = 1 : (c2--, d2 = t2.getLineMaxColumn(c2)) : (h && d2 <= h.end + 1 && (h = l._findPreviousWordOnLine(e2, t2, new s.a(c2, h.start + 1))), h ? d2 = h.end + 1 : d2 > 1 ? d2 = 1 : (c2--, d2 = t2.getLineMaxColumn(c2))), new a.a(c2, d2, r2.lineNumber, r2.column); + let h = l._findPreviousWordOnLine(e2, t2, o2); + return r2 === 0 ? h ? d2 = h.start + 1 : d2 > 1 ? d2 = 1 : (c2--, d2 = t2.getLineMaxColumn(c2)) : (h && d2 <= h.end + 1 && (h = l._findPreviousWordOnLine(e2, t2, new s.a(c2, h.start + 1))), h ? d2 = h.end + 1 : d2 > 1 ? d2 = 1 : (c2--, d2 = t2.getLineMaxColumn(c2))), new a.a(c2, d2, o2.lineNumber, o2.column); } static _deleteWordPartLeft(e2, t2) { if (!t2.isEmpty()) @@ -38279,24 +38279,24 @@ ${Object(zn.b)(wi)} return n2; } static _deleteWordRightWhitespace(e2, t2) { - const n2 = e2.getLineContent(t2.lineNumber), i2 = t2.column - 1, o2 = this._findFirstNonWhitespaceChar(n2, i2); - return i2 + 1 < o2 ? new a.a(t2.lineNumber, t2.column, t2.lineNumber, o2 + 1) : null; + const n2 = e2.getLineContent(t2.lineNumber), i2 = t2.column - 1, r2 = this._findFirstNonWhitespaceChar(n2, i2); + return i2 + 1 < r2 ? new a.a(t2.lineNumber, t2.column, t2.lineNumber, r2 + 1) : null; } - static deleteWordRight(e2, t2, n2, i2, o2) { + static deleteWordRight(e2, t2, n2, i2, r2) { if (!n2.isEmpty()) return n2; - const r2 = new s.a(n2.positionLineNumber, n2.positionColumn); - let c2 = r2.lineNumber, d2 = r2.column; + const o2 = new s.a(n2.positionLineNumber, n2.positionColumn); + let c2 = o2.lineNumber, d2 = o2.column; const h = t2.getLineCount(), u = t2.getLineMaxColumn(c2); if (c2 === h && d2 === u) return null; if (i2) { - let e3 = this._deleteWordRightWhitespace(t2, r2); + let e3 = this._deleteWordRightWhitespace(t2, o2); if (e3) return e3; } - let p = l._findNextWordOnLine(e2, t2, r2); - return o2 === 2 ? p ? d2 = p.end + 1 : d2 < u || c2 === h ? d2 = u : (c2++, p = l._findNextWordOnLine(e2, t2, new s.a(c2, 1)), d2 = p ? p.start + 1 : t2.getLineMaxColumn(c2)) : (p && d2 >= p.start + 1 && (p = l._findNextWordOnLine(e2, t2, new s.a(c2, p.end + 1))), p ? d2 = p.start + 1 : d2 < u || c2 === h ? d2 = u : (c2++, p = l._findNextWordOnLine(e2, t2, new s.a(c2, 1)), d2 = p ? p.start + 1 : t2.getLineMaxColumn(c2))), new a.a(c2, d2, r2.lineNumber, r2.column); + let p = l._findNextWordOnLine(e2, t2, o2); + return r2 === 2 ? p ? d2 = p.end + 1 : d2 < u || c2 === h ? d2 = u : (c2++, p = l._findNextWordOnLine(e2, t2, new s.a(c2, 1)), d2 = p ? p.start + 1 : t2.getLineMaxColumn(c2)) : (p && d2 >= p.start + 1 && (p = l._findNextWordOnLine(e2, t2, new s.a(c2, p.end + 1))), p ? d2 = p.start + 1 : d2 < u || c2 === h ? d2 = u : (c2++, p = l._findNextWordOnLine(e2, t2, new s.a(c2, 1)), d2 = p ? p.start + 1 : t2.getLineMaxColumn(c2))), new a.a(c2, d2, o2.lineNumber, o2.column); } static _deleteWordPartRight(e2, t2) { if (!t2.isEmpty()) @@ -38309,18 +38309,18 @@ ${Object(zn.b)(wi)} return {word: e2.getValueInRange(i2), startColumn: i2.startColumn, endColumn: i2.endColumn}; } static getWordAtPosition(e2, t2, n2) { - const i2 = Object(r.a)(t2), o2 = l._findPreviousWordOnLine(i2, e2, n2); - if (o2 && o2.wordType === 1 && o2.start <= n2.column - 1 && n2.column - 1 <= o2.end) - return l._createWordAtPosition(e2, n2.lineNumber, o2); + const i2 = Object(o.a)(t2), r2 = l._findPreviousWordOnLine(i2, e2, n2); + if (r2 && r2.wordType === 1 && r2.start <= n2.column - 1 && n2.column - 1 <= r2.end) + return l._createWordAtPosition(e2, n2.lineNumber, r2); const s2 = l._findNextWordOnLine(i2, e2, n2); return s2 && s2.wordType === 1 && s2.start <= n2.column - 1 && n2.column - 1 <= s2.end ? l._createWordAtPosition(e2, n2.lineNumber, s2) : null; } static word(e2, t2, n2, i2, c2) { - const d2 = Object(r.a)(e2.wordSeparators); + const d2 = Object(o.a)(e2.wordSeparators); let h, u, p = l._findPreviousWordOnLine(d2, t2, c2), m = l._findNextWordOnLine(d2, t2, c2); if (!i2) { let e3, n3; - return p && p.wordType === 1 && p.start <= c2.column - 1 && c2.column - 1 <= p.end ? (e3 = p.start + 1, n3 = p.end + 1) : m && m.wordType === 1 && m.start <= c2.column - 1 && c2.column - 1 <= m.end ? (e3 = m.start + 1, n3 = m.end + 1) : (e3 = p ? p.end + 1 : 1, n3 = m ? m.start + 1 : t2.getLineMaxColumn(c2.lineNumber)), new o.f(new a.a(c2.lineNumber, e3, c2.lineNumber, n3), 0, new s.a(c2.lineNumber, n3), 0); + return p && p.wordType === 1 && p.start <= c2.column - 1 && c2.column - 1 <= p.end ? (e3 = p.start + 1, n3 = p.end + 1) : m && m.wordType === 1 && m.start <= c2.column - 1 && c2.column - 1 <= m.end ? (e3 = m.start + 1, n3 = m.end + 1) : (e3 = p ? p.end + 1 : 1, n3 = m ? m.start + 1 : t2.getLineMaxColumn(c2.lineNumber)), new r.f(new a.a(c2.lineNumber, e3, c2.lineNumber, n3), 0, new s.a(c2.lineNumber, n3), 0); } p && p.wordType === 1 && p.start < c2.column - 1 && c2.column - 1 < p.end ? (h = p.start + 1, u = p.end + 1) : m && m.wordType === 1 && m.start < c2.column - 1 && c2.column - 1 < m.end ? (h = m.start + 1, u = m.end + 1) : (h = c2.column, u = c2.column); let g, f = c2.lineNumber; @@ -38340,12 +38340,12 @@ ${Object(zn.b)(wi)} } class c extends l { static deleteWordPartLeft(e2, t2, n2, i2) { - const o2 = d([l.deleteWordLeft(e2, t2, n2, i2, 0), l.deleteWordLeft(e2, t2, n2, i2, 2), l._deleteWordPartLeft(t2, n2)]); - return o2.sort(a.a.compareRangesUsingEnds), o2[2]; + const r2 = d([l.deleteWordLeft(e2, t2, n2, i2, 0), l.deleteWordLeft(e2, t2, n2, i2, 2), l._deleteWordPartLeft(t2, n2)]); + return r2.sort(a.a.compareRangesUsingEnds), r2[2]; } static deleteWordPartRight(e2, t2, n2, i2) { - const o2 = d([l.deleteWordRight(e2, t2, n2, i2, 0), l.deleteWordRight(e2, t2, n2, i2, 2), l._deleteWordPartRight(t2, n2)]); - return o2.sort(a.a.compareRangesUsingStarts), o2[0]; + const r2 = d([l.deleteWordRight(e2, t2, n2, i2, 0), l.deleteWordRight(e2, t2, n2, i2, 2), l._deleteWordPartRight(t2, n2)]); + return r2.sort(a.a.compareRangesUsingStarts), r2[0]; } static moveWordPartLeft(e2, t2, n2) { const i2 = d([l.moveWordLeft(e2, t2, n2, 0), l.moveWordLeft(e2, t2, n2, 2), l._moveWordPartLeft(t2, n2)]); @@ -38364,7 +38364,7 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return d; }); - var i = n(8), o = n(22), r = n(3), s = n(21), a = n(39); + var i = n(8), r = n(22), o = n(3), s = n(21), a = n(39); const l = Object.create(null); function c(e2, t2) { l[e2] || (l[e2] = ["", e2]); @@ -38377,21 +38377,21 @@ ${Object(zn.b)(wi)} constructor(e2, t2) { this._opts = t2, this._selection = e2, this._selectionId = null, this._useLastEditRangeForCursorEndPosition = false, this._selectionStartColumnStaysPut = false; } - static unshiftIndent(e2, t2, n2, i2, r2) { - const s2 = o.a.visibleColumnFromColumn(e2, t2, n2); - if (r2) { + static unshiftIndent(e2, t2, n2, i2, o2) { + const s2 = r.a.visibleColumnFromColumn(e2, t2, n2); + if (o2) { const e3 = c(" ", i2); - return c(e3, o.a.prevIndentTabStop(s2, i2) / i2); + return c(e3, r.a.prevIndentTabStop(s2, i2) / i2); } - return c(" ", o.a.prevRenderTabStop(s2, n2) / n2); + return c(" ", r.a.prevRenderTabStop(s2, n2) / n2); } - static shiftIndent(e2, t2, n2, i2, r2) { - const s2 = o.a.visibleColumnFromColumn(e2, t2, n2); - if (r2) { + static shiftIndent(e2, t2, n2, i2, o2) { + const s2 = r.a.visibleColumnFromColumn(e2, t2, n2); + if (o2) { const e3 = c(" ", i2); - return c(e3, o.a.nextIndentTabStop(s2, i2) / i2); + return c(e3, r.a.nextIndentTabStop(s2, i2) / i2); } - return c(" ", o.a.nextRenderTabStop(s2, n2) / n2); + return c(" ", r.a.nextRenderTabStop(s2, n2) / n2); } _addEditOperation(e2, t2, n2) { this._useLastEditRangeForCursorEndPosition ? e2.addTrackedEditOperation(t2, n2) : e2.addEditOperation(t2, n2); @@ -38409,8 +38409,8 @@ ${Object(zn.b)(wi)} let s3, f = e2.getLineContent(g), b = i.w(f); if ((!this._opts.isUnshift || f.length !== 0 && b !== 0) && (p || this._opts.isUnshift || f.length !== 0)) { if (b === -1 && (b = f.length), g > 1) { - if (o.a.visibleColumnFromColumn(f, b + 1, l2) % h != 0 && e2.isCheapToTokenize(g - 1)) { - let t3 = a.a.getEnterAction(this._opts.autoIndent, e2, new r.a(g - 1, e2.getLineMaxColumn(g - 1), g - 1, e2.getLineMaxColumn(g - 1))); + if (r.a.visibleColumnFromColumn(f, b + 1, l2) % h != 0 && e2.isCheapToTokenize(g - 1)) { + let t3 = a.a.getEnterAction(this._opts.autoIndent, e2, new o.a(g - 1, e2.getLineMaxColumn(g - 1), g - 1, e2.getLineMaxColumn(g - 1))); if (t3) { if (m = c2, t3.appendText) for (let e3 = 0, n3 = t3.appendText.length; e3 < n3 && m < h && t3.appendText.charCodeAt(e3) === 32; e3++) @@ -38421,12 +38421,12 @@ ${Object(zn.b)(wi)} } } } - this._opts.isUnshift && b === 0 || (s3 = this._opts.isUnshift ? d.unshiftIndent(f, b + 1, l2, h, u) : d.shiftIndent(f, b + 1, l2, h, u), this._addEditOperation(t2, new r.a(g, 1, g, b + 1), s3), g !== n2 || this._selection.isEmpty() || (this._selectionStartColumnStaysPut = this._selection.startColumn <= b + 1)); + this._opts.isUnshift && b === 0 || (s3 = this._opts.isUnshift ? d.unshiftIndent(f, b + 1, l2, h, u) : d.shiftIndent(f, b + 1, l2, h, u), this._addEditOperation(t2, new o.a(g, 1, g, b + 1), s3), g !== n2 || this._selection.isEmpty() || (this._selectionStartColumnStaysPut = this._selection.startColumn <= b + 1)); } } } else { !this._opts.isUnshift && this._selection.isEmpty() && e2.getLineLength(n2) === 0 && (this._useLastEditRangeForCursorEndPosition = true); - const o2 = u ? c(" ", h) : " "; + const r2 = u ? c(" ", h) : " "; for (let a2 = n2; a2 <= s2; a2++) { const s3 = e2.getLineContent(a2); let l3 = i.w(s3); @@ -38439,9 +38439,9 @@ ${Object(zn.b)(wi)} break; } } - this._addEditOperation(t2, new r.a(a2, 1, a2, l3 + 1), ""); + this._addEditOperation(t2, new o.a(a2, 1, a2, l3 + 1), ""); } else - this._addEditOperation(t2, new r.a(a2, 1, a2, 1), o2), a2 !== n2 || this._selection.isEmpty() || (this._selectionStartColumnStaysPut = this._selection.startColumn === 1); + this._addEditOperation(t2, new o.a(a2, 1, a2, 1), r2), a2 !== n2 || this._selection.isEmpty() || (this._selectionStartColumnStaysPut = this._selection.startColumn === 1); } } this._selectionId = t2.trackSelection(this._selection); @@ -38470,10 +38470,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return d; }); - var i = n(8), o = n(11), r = n(72); + var i = n(8), r = n(11), o = n(72); let s; function a() { - return s || (s = new TextDecoder(o.e() ? "UTF-16LE" : "UTF-16BE")), s; + return s || (s = new TextDecoder(r.e() ? "UTF-16LE" : "UTF-16BE")), s; } const l = typeof TextDecoder != "undefined"; let c, d; @@ -38481,10 +38481,10 @@ ${Object(zn.b)(wi)} const i2 = new Uint16Array(e2.buffer, t2, n2); return a().decode(i2); }) : (c = (e2) => new u(), d = function(e2, t2, n2) { - let i2 = [], o2 = 0; + let i2 = [], r2 = 0; for (let s2 = 0; s2 < n2; s2++) { - const n3 = r.b(e2, t2); - t2 += 2, i2[o2++] = String.fromCharCode(n3); + const n3 = o.b(e2, t2); + t2 += 2, i2[r2++] = String.fromCharCode(n3); } return i2.join(""); }); @@ -38562,12 +38562,12 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return a; }); - var i, o = n(56), r = n(15), s = n(2); + var i, r = n(56), o = n(16), s = n(2); !function(e2) { e2[e2.PRESERVE = 0] = "PRESERVE", e2[e2.LAST = 1] = "LAST"; }(i || (i = {})); const a = {Quickaccess: "workbench.contributions.quickaccess"}; - o.a.add(a.Quickaccess, new class { + r.a.add(a.Quickaccess, new class { constructor() { this.providers = [], this.defaultProvider = void 0; } @@ -38577,7 +38577,7 @@ ${Object(zn.b)(wi)} }); } getQuickAccessProviders() { - return Object(r.d)([this.defaultProvider, ...this.providers]); + return Object(o.d)([this.defaultProvider, ...this.providers]); } getQuickAccessProvider(e2) { return e2 && this.providers.find((t2) => e2.startsWith(t2.prefix)) || void 0 || this.defaultProvider; @@ -38586,10 +38586,10 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(6); - const o = new class { + const r = new class { constructor() { this._zoomLevel = 0, this._onDidChangeZoomLevel = new i.a(), this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event; } @@ -38613,7 +38613,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return dt; }); - var i = n(1), o = (n(197), n(2)), r = n(15), s = n(113), a = n(6), l = n(25); + var i = n(1), r = (n(197), n(2)), o = n(16), s = n(113), a = n(6), l = n(25); class c { constructor(e2, t2) { this.renderer = e2, this.modelProvider = t2; @@ -38622,16 +38622,16 @@ ${Object(zn.b)(wi)} return this.renderer.templateId; } renderTemplate(e2) { - return {data: this.renderer.renderTemplate(e2), disposable: o.a.None}; + return {data: this.renderer.renderTemplate(e2), disposable: r.a.None}; } renderElement(e2, t2, n2, i2) { if (n2.disposable && n2.disposable.dispose(), !n2.data) return; - const o2 = this.modelProvider(); - if (o2.isResolved(e2)) - return this.renderer.renderElement(o2.get(e2), e2, n2.data, i2); - const r2 = new l.b(), s2 = o2.resolve(e2, r2.token); - n2.disposable = {dispose: () => r2.cancel()}, this.renderer.renderPlaceholder(e2, n2.data), s2.then((t3) => this.renderer.renderElement(t3, e2, n2.data, i2)); + const r2 = this.modelProvider(); + if (r2.isResolved(e2)) + return this.renderer.renderElement(r2.get(e2), e2, n2.data, i2); + const o2 = new l.b(), s2 = r2.resolve(e2, o2.token); + n2.disposable = {dispose: () => o2.cancel()}, this.renderer.renderPlaceholder(e2, n2.data), s2.then((t3) => this.renderer.renderElement(t3, e2, n2.data, i2)); } disposeTemplate(e2) { e2.disposable && (e2.disposable.dispose(), e2.disposable = void 0), e2.data && (this.renderer.disposeTemplate(e2.data), e2.data = void 0); @@ -38682,20 +38682,20 @@ ${Object(zn.b)(wi)} return e2; } } - function O(e2) { + function D(e2) { return typeof e2.collapsible == "boolean"; } - class D { + class O { constructor(e2, t2, n2, i2 = {}) { this.user = e2, this.list = t2, this.rootRef = [], this.eventBufferer = new a.c(), this._onDidChangeCollapseState = new a.a(), this.onDidChangeCollapseState = this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event), this._onDidChangeRenderNodeCount = new a.a(), this.onDidChangeRenderNodeCount = this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event), this._onDidSplice = new a.a(), this.onDidSplice = this._onDidSplice.event, this.collapseByDefault = i2.collapseByDefault !== void 0 && i2.collapseByDefault, this.filter = i2.filter, this.autoExpandSingleChildren = i2.autoExpandSingleChildren !== void 0 && i2.autoExpandSingleChildren, this.root = {parent: void 0, element: n2, children: [], depth: 0, visibleChildrenCount: 0, visibleChildIndex: -1, collapsible: false, collapsed: false, renderNodeCount: 0, visibility: 1, visible: true, filterData: void 0}; } - splice(e2, t2, n2 = y.a.empty(), i2, o2) { + splice(e2, t2, n2 = y.a.empty(), i2, r2) { if (e2.length === 0) throw new x(this.user, "Invalid tree location"); - const {parentNode: r2, listIndex: s2, revealed: a2, visible: l2} = this.getParentNodeWithListIndex(e2), c2 = [], d2 = y.a.map(n2, (e3) => this.createTreeNode(e3, r2, r2.visible ? 1 : 0, a2, c2, i2)), h2 = e2[e2.length - 1]; + const {parentNode: o2, listIndex: s2, revealed: a2, visible: l2} = this.getParentNodeWithListIndex(e2), c2 = [], d2 = y.a.map(n2, (e3) => this.createTreeNode(e3, o2, o2.visible ? 1 : 0, a2, c2, i2)), h2 = e2[e2.length - 1]; let u2 = 0; - for (let e3 = h2; e3 >= 0 && e3 < r2.children.length; e3--) { - const t3 = r2.children[e3]; + for (let e3 = h2; e3 >= 0 && e3 < o2.children.length; e3--) { + const t3 = o2.children[e3]; if (t3.visible) { u2 = t3.visibleChildIndex; break; @@ -38705,27 +38705,27 @@ ${Object(zn.b)(wi)} let m2 = 0, g2 = 0; for (const e3 of d2) p2.push(e3), g2 += e3.renderNodeCount, e3.visible && (e3.visibleChildIndex = u2 + m2++); - const f2 = r2.children.splice(h2, t2, ...p2); + const f2 = o2.children.splice(h2, t2, ...p2); let b2 = 0; for (const e3 of f2) e3.visible && b2++; if (b2 !== 0) - for (let e3 = h2 + p2.length; e3 < r2.children.length; e3++) { - const t3 = r2.children[e3]; + for (let e3 = h2 + p2.length; e3 < o2.children.length; e3++) { + const t3 = o2.children[e3]; t3.visible && (t3.visibleChildIndex -= b2); } - if (r2.visibleChildrenCount += m2 - b2, a2 && l2) { + if (o2.visibleChildrenCount += m2 - b2, a2 && l2) { const e3 = f2.reduce((e4, t3) => e4 + (t3.visible ? t3.renderNodeCount : 0), 0); - this._updateAncestorsRenderNodeCount(r2, g2 - e3), this.list.splice(s2, e3, c2); + this._updateAncestorsRenderNodeCount(o2, g2 - e3), this.list.splice(s2, e3, c2); } - if (f2.length > 0 && o2) { + if (f2.length > 0 && r2) { const e3 = (t3) => { - o2(t3), t3.children.forEach(e3); + r2(t3), t3.children.forEach(e3); }; f2.forEach(e3); } this._onDidSplice.fire({insertedNodes: p2, deletedNodes: f2}); - let _2 = r2; + let _2 = o2; for (; _2; ) { if (_2.visibility === 2) { this.refilter(); @@ -38765,12 +38765,12 @@ ${Object(zn.b)(wi)} setCollapsed(e2, t2, n2) { const i2 = this.getTreeNode(e2); t2 === void 0 && (t2 = !i2.collapsed); - const o2 = {collapsed: t2, recursive: n2 || false}; - return this.eventBufferer.bufferEvents(() => this._setCollapseState(e2, o2)); + const r2 = {collapsed: t2, recursive: n2 || false}; + return this.eventBufferer.bufferEvents(() => this._setCollapseState(e2, r2)); } _setCollapseState(e2, t2) { - const {node: n2, listIndex: i2, revealed: o2} = this.getTreeNodeWithListIndex(e2), r2 = this._setListNodeCollapseState(n2, i2, o2, t2); - if (n2 !== this.root && this.autoExpandSingleChildren && r2 && !O(t2) && n2.collapsible && !n2.collapsed && !t2.recursive) { + const {node: n2, listIndex: i2, revealed: r2} = this.getTreeNodeWithListIndex(e2), o2 = this._setListNodeCollapseState(n2, i2, r2, t2); + if (n2 !== this.root && this.autoExpandSingleChildren && o2 && !D(t2) && n2.collapsible && !n2.collapsed && !t2.recursive) { let i3 = -1; for (let e3 = 0; e3 < n2.children.length; e3++) { if (n2.children[e3].visible) { @@ -38783,18 +38783,18 @@ ${Object(zn.b)(wi)} } i3 > -1 && this._setCollapseState([...e2, i3], t2); } - return r2; + return o2; } _setListNodeCollapseState(e2, t2, n2, i2) { - const o2 = this._setNodeCollapseState(e2, i2, false); - if (!n2 || !e2.visible || !o2) - return o2; - const r2 = e2.renderNodeCount, s2 = this.updateNodeAfterCollapseChange(e2), a2 = r2 - (t2 === -1 ? 0 : 1); - return this.list.splice(t2 + 1, a2, s2.slice(1)), o2; + const r2 = this._setNodeCollapseState(e2, i2, false); + if (!n2 || !e2.visible || !r2) + return r2; + const o2 = e2.renderNodeCount, s2 = this.updateNodeAfterCollapseChange(e2), a2 = o2 - (t2 === -1 ? 0 : 1); + return this.list.splice(t2 + 1, a2, s2.slice(1)), r2; } _setNodeCollapseState(e2, t2, n2) { let i2; - if (e2 === this.root ? i2 = false : (O(t2) ? (i2 = e2.collapsible !== t2.collapsible, e2.collapsible = t2.collapsible) : e2.collapsible ? (i2 = e2.collapsed !== t2.collapsed, e2.collapsed = t2.collapsed) : i2 = false, i2 && this._onDidChangeCollapseState.fire({node: e2, deep: n2})), !O(t2) && t2.recursive) + if (e2 === this.root ? i2 = false : (D(t2) ? (i2 = e2.collapsible !== t2.collapsible, e2.collapsible = t2.collapsible) : e2.collapsible ? (i2 = e2.collapsed !== t2.collapsed, e2.collapsed = t2.collapsed) : i2 = false, i2 && this._onDidChangeCollapseState.fire({node: e2, deep: n2})), !D(t2) && t2.recursive) for (const n3 of e2.children) i2 = this._setNodeCollapseState(n3, t2, true) || i2; return i2; @@ -38810,14 +38810,14 @@ ${Object(zn.b)(wi)} const e2 = this.root.renderNodeCount, t2 = this.updateNodeAfterFilterChange(this.root); this.list.splice(0, e2, t2); } - createTreeNode(e2, t2, n2, i2, o2, r2) { + createTreeNode(e2, t2, n2, i2, r2, o2) { const s2 = {parent: t2, element: e2.element, children: [], depth: t2.depth + 1, visibleChildrenCount: 0, visibleChildIndex: -1, collapsible: typeof e2.collapsible == "boolean" ? e2.collapsible : e2.collapsed !== void 0, collapsed: e2.collapsed === void 0 ? this.collapseByDefault : e2.collapsed, renderNodeCount: 1, visibility: 1, visible: true, filterData: void 0}, a2 = this._filterNode(s2, n2); - s2.visibility = a2, i2 && o2.push(s2); - const l2 = e2.children || y.a.empty(), c2 = i2 && a2 !== 0 && !s2.collapsed, d2 = y.a.map(l2, (e3) => this.createTreeNode(e3, s2, a2, c2, o2, r2)); + s2.visibility = a2, i2 && r2.push(s2); + const l2 = e2.children || y.a.empty(), c2 = i2 && a2 !== 0 && !s2.collapsed, d2 = y.a.map(l2, (e3) => this.createTreeNode(e3, s2, a2, c2, r2, o2)); let h2 = 0, u2 = 1; for (const e3 of d2) s2.children.push(e3), u2 += e3.renderNodeCount, e3.visible && (e3.visibleChildIndex = h2++); - return s2.collapsible = s2.collapsible || s2.children.length > 0, s2.visibleChildrenCount = h2, s2.visible = a2 === 2 ? h2 > 0 : a2 === 1, s2.visible ? s2.collapsed || (s2.renderNodeCount = u2) : (s2.renderNodeCount = 0, i2 && o2.pop()), r2 && r2(s2), s2; + return s2.collapsible = s2.collapsible || s2.children.length > 0, s2.visibleChildrenCount = h2, s2.visible = a2 === 2 ? h2 > 0 : a2 === 1, s2.visible ? s2.collapsed || (s2.renderNodeCount = u2) : (s2.renderNodeCount = 0, i2 && r2.pop()), o2 && o2(s2), s2; } updateNodeAfterCollapseChange(e2) { const t2 = e2.renderNodeCount, n2 = []; @@ -38836,24 +38836,24 @@ ${Object(zn.b)(wi)} return this._updateNodeAfterFilterChange(e2, e2.visible ? 1 : 0, n2), this._updateAncestorsRenderNodeCount(e2.parent, n2.length - t2), n2; } _updateNodeAfterFilterChange(e2, t2, n2, i2 = true) { - let o2; + let r2; if (e2 !== this.root) { - if (o2 = this._filterNode(e2, t2), o2 === 0) + if (r2 = this._filterNode(e2, t2), r2 === 0) return e2.visible = false, e2.renderNodeCount = 0, false; i2 && n2.push(e2); } - const r2 = n2.length; + const o2 = n2.length; e2.renderNodeCount = e2 === this.root ? 0 : 1; let s2 = false; - if (e2.collapsed && o2 === 0) + if (e2.collapsed && r2 === 0) e2.visibleChildrenCount = 0; else { let t3 = 0; - for (const r3 of e2.children) - s2 = this._updateNodeAfterFilterChange(r3, o2, n2, i2 && !e2.collapsed) || s2, r3.visible && (r3.visibleChildIndex = t3++); + for (const o3 of e2.children) + s2 = this._updateNodeAfterFilterChange(o3, r2, n2, i2 && !e2.collapsed) || s2, o3.visible && (o3.visibleChildIndex = t3++); e2.visibleChildrenCount = t3; } - return e2 !== this.root && (e2.visible = o2 === 2 ? s2 : o2 === 1), e2.visible ? e2.collapsed || (e2.renderNodeCount += n2.length - r2) : (e2.renderNodeCount = 0, i2 && n2.pop()), this._onDidChangeRenderNodeCount.fire(e2), e2.visible; + return e2 !== this.root && (e2.visible = r2 === 2 ? s2 : r2 === 1), e2.visible ? e2.collapsed || (e2.renderNodeCount += n2.length - o2) : (e2.renderNodeCount = 0, i2 && n2.pop()), this._onDidChangeRenderNodeCount.fire(e2), e2.visible; } _updateAncestorsRenderNodeCount(e2, t2) { if (t2 !== 0) @@ -38881,19 +38881,19 @@ ${Object(zn.b)(wi)} getTreeNodeWithListIndex(e2) { if (e2.length === 0) return {node: this.root, listIndex: -1, revealed: true, visible: false}; - const {parentNode: t2, listIndex: n2, revealed: i2, visible: o2} = this.getParentNodeWithListIndex(e2), r2 = e2[e2.length - 1]; - if (r2 < 0 || r2 > t2.children.length) + const {parentNode: t2, listIndex: n2, revealed: i2, visible: r2} = this.getParentNodeWithListIndex(e2), o2 = e2[e2.length - 1]; + if (o2 < 0 || o2 > t2.children.length) throw new x(this.user, "Invalid tree location"); - const s2 = t2.children[r2]; - return {node: s2, listIndex: n2, revealed: i2, visible: o2 && s2.visible}; + const s2 = t2.children[o2]; + return {node: s2, listIndex: n2, revealed: i2, visible: r2 && s2.visible}; } - getParentNodeWithListIndex(e2, t2 = this.root, n2 = 0, i2 = true, o2 = true) { - const [r2, ...s2] = e2; - if (r2 < 0 || r2 > t2.children.length) + getParentNodeWithListIndex(e2, t2 = this.root, n2 = 0, i2 = true, r2 = true) { + const [o2, ...s2] = e2; + if (o2 < 0 || o2 > t2.children.length) throw new x(this.user, "Invalid tree location"); - for (let e3 = 0; e3 < r2; e3++) + for (let e3 = 0; e3 < o2; e3++) n2 += t2.children[e3].renderNodeCount; - return i2 = i2 && !t2.collapsed, o2 = o2 && t2.visible, s2.length === 0 ? {parentNode: t2, listIndex: n2, revealed: i2, visible: o2} : this.getParentNodeWithListIndex(s2, t2.children[r2], n2 + 1, i2, o2); + return i2 = i2 && !t2.collapsed, r2 = r2 && t2.visible, s2.length === 0 ? {parentNode: t2, listIndex: n2, revealed: i2, visible: r2} : this.getParentNodeWithListIndex(s2, t2.children[o2], n2 + 1, i2, r2); } getNode(e2 = []) { return this.getTreeNode(e2); @@ -38906,7 +38906,7 @@ ${Object(zn.b)(wi)} return t2.reverse(); } getParentNodeLocation(e2) { - return e2.length === 0 ? void 0 : e2.length === 1 ? [] : Object(r.u)(e2)[0]; + return e2.length === 0 ? void 0 : e2.length === 1 ? [] : Object(o.u)(e2)[0]; } } var A = n(20), R = n(11), M = n(118), P = n(189), F = n(17); @@ -38921,7 +38921,7 @@ ${Object(zn.b)(wi)} } class q { constructor(e2, t2) { - this.modelProvider = e2, this.dnd = t2, this.autoExpandDisposable = o.a.None; + this.modelProvider = e2, this.dnd = t2, this.autoExpandDisposable = r.a.None; } getDragURI(e2) { return this.dnd.getDragURI(e2.element); @@ -38933,7 +38933,7 @@ ${Object(zn.b)(wi)} onDragStart(e2, t2) { this.dnd.onDragStart && this.dnd.onDragStart(H(e2), t2); } - onDragOver(e2, t2, n2, i2, o2 = true) { + onDragOver(e2, t2, n2, i2, r2 = true) { const s2 = this.dnd.onDragOver(H(e2), t2 && t2.element, n2, i2), a2 = this.autoExpandNode !== t2; if (a2 && (this.autoExpandDisposable.dispose(), this.autoExpandNode = t2), t2 === void 0) return s2; @@ -38941,17 +38941,17 @@ ${Object(zn.b)(wi)} const e3 = this.modelProvider(), n3 = e3.getNodeLocation(t2); e3.isCollapsed(n3) && e3.setCollapsed(n3, false), this.autoExpandNode = void 0; }, 500)), typeof s2 == "boolean" || !s2.accept || s2.bubble === void 0 || s2.feedback) { - if (!o2) { + if (!r2) { return {accept: typeof s2 == "boolean" ? s2 : s2.accept, effect: typeof s2 == "boolean" ? void 0 : s2.effect, feedback: [n2]}; } return s2; } if (s2.bubble === 1) { - const n3 = this.modelProvider(), o3 = n3.getNodeLocation(t2), r2 = n3.getParentNodeLocation(o3), s3 = n3.getNode(r2), a3 = r2 && n3.getListIndex(r2); + const n3 = this.modelProvider(), r3 = n3.getNodeLocation(t2), o2 = n3.getParentNodeLocation(r3), s3 = n3.getNode(o2), a3 = o2 && n3.getListIndex(o2); return this.onDragOver(e2, s3, a3, i2, false); } const l2 = this.modelProvider(), c2 = l2.getNodeLocation(t2), d2 = l2.getListIndex(c2), h2 = l2.getListRenderCount(c2); - return Object.assign(Object.assign({}, s2), {feedback: Object(r.s)(d2, d2 + h2)}); + return Object.assign(Object.assign({}, s2), {feedback: Object(o.s)(d2, d2 + h2)}); } drop(e2, t2, n2, i2) { this.autoExpandDisposable.dispose(), this.autoExpandNode = void 0, this.dnd.drop(H(e2), t2 && t2.element, n2, i2); @@ -38990,27 +38990,27 @@ ${Object(zn.b)(wi)} } } class Y { - constructor(e2, t2, n2, i2, r2 = {}) { - this.renderer = e2, this.modelProvider = t2, this.activeNodes = i2, this.renderedElements = new Map(), this.renderedNodes = new Map(), this.indent = Y.DefaultIndent, this.hideTwistiesOfChildlessElements = false, this.shouldRenderIndentGuides = false, this.renderedIndentGuides = new P.a(), this.activeIndentNodes = new Set(), this.indentGuidesDisposable = o.a.None, this.disposables = new o.b(), this.templateId = e2.templateId, this.updateOptions(r2), a.b.map(n2, (e3) => e3.node)(this.onDidChangeNodeTwistieState, this, this.disposables), e2.onDidChangeTwistieState && e2.onDidChangeTwistieState(this.onDidChangeTwistieState, this, this.disposables); + constructor(e2, t2, n2, i2, o2 = {}) { + this.renderer = e2, this.modelProvider = t2, this.activeNodes = i2, this.renderedElements = new Map(), this.renderedNodes = new Map(), this.indent = Y.DefaultIndent, this.hideTwistiesOfChildlessElements = false, this.shouldRenderIndentGuides = false, this.renderedIndentGuides = new P.a(), this.activeIndentNodes = new Set(), this.indentGuidesDisposable = r.a.None, this.disposables = new r.b(), this.templateId = e2.templateId, this.updateOptions(o2), a.b.map(n2, (e3) => e3.node)(this.onDidChangeNodeTwistieState, this, this.disposables), e2.onDidChangeTwistieState && e2.onDidChangeTwistieState(this.onDidChangeTwistieState, this, this.disposables); } updateOptions(e2 = {}) { if (e2.indent !== void 0 && (this.indent = Object(M.b)(e2.indent, 0, 40)), e2.renderIndentGuides !== void 0) { const t2 = e2.renderIndentGuides !== K.None; if (t2 !== this.shouldRenderIndentGuides && (this.shouldRenderIndentGuides = t2, this.indentGuidesDisposable.dispose(), t2)) { - const e3 = new o.b(); + const e3 = new r.b(); this.activeNodes.onDidChange(this._onDidChangeActiveNodes, this, e3), this.indentGuidesDisposable = e3, this._onDidChangeActiveNodes(this.activeNodes.elements); } } e2.hideTwistiesOfChildlessElements !== void 0 && (this.hideTwistiesOfChildlessElements = e2.hideTwistiesOfChildlessElements); } renderTemplate(e2) { - const t2 = Object(i.p)(e2, Object(i.a)(".monaco-tl-row")), n2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-indent")), r2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-twistie")), s2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-contents")), a2 = this.renderer.renderTemplate(s2); - return {container: e2, indent: n2, twistie: r2, indentGuidesDisposable: o.a.None, templateData: a2}; + const t2 = Object(i.p)(e2, Object(i.a)(".monaco-tl-row")), n2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-indent")), o2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-twistie")), s2 = Object(i.p)(t2, Object(i.a)(".monaco-tl-contents")), a2 = this.renderer.renderTemplate(s2); + return {container: e2, indent: n2, twistie: o2, indentGuidesDisposable: r.a.None, templateData: a2}; } renderElement(e2, t2, n2, i2) { typeof i2 == "number" && (this.renderedNodes.set(e2, {templateData: n2, height: i2}), this.renderedElements.set(e2.element, e2)); - const o2 = Y.DefaultIndent + (e2.depth - 1) * this.indent; - n2.twistie.style.paddingLeft = o2 + "px", n2.indent.style.width = o2 + this.indent - 16 + "px", this.renderTwistie(e2, n2), typeof i2 == "number" && this.renderIndentGuides(e2, n2), this.renderer.renderElement(e2, t2, n2.templateData, i2); + const r2 = Y.DefaultIndent + (e2.depth - 1) * this.indent; + n2.twistie.style.paddingLeft = r2 + "px", n2.indent.style.width = r2 + this.indent - 16 + "px", this.renderTwistie(e2, n2), typeof i2 == "number" && this.renderIndentGuides(e2, n2), this.renderer.renderElement(e2, t2, n2.templateData, i2); } disposeElement(e2, t2, n2, i2) { n2.indentGuidesDisposable.dispose(), this.renderer.disposeElement && this.renderer.disposeElement(e2, t2, n2.templateData, i2), typeof i2 == "number" && (this.renderedNodes.delete(e2), this.renderedElements.delete(e2.element)); @@ -39032,14 +39032,14 @@ ${Object(zn.b)(wi)} renderIndentGuides(e2, t2) { if (Object(i.s)(t2.indent), t2.indentGuidesDisposable.dispose(), !this.shouldRenderIndentGuides) return; - const n2 = new o.b(), r2 = this.modelProvider(); + const n2 = new r.b(), o2 = this.modelProvider(); let s2 = e2; for (; ; ) { - const e3 = r2.getNodeLocation(s2), a2 = r2.getParentNodeLocation(e3); + const e3 = o2.getNodeLocation(s2), a2 = o2.getParentNodeLocation(e3); if (!a2) break; - const l2 = r2.getNode(a2), c2 = Object(i.a)(".indent-guide", {style: `width: ${this.indent}px`}); - this.activeIndentNodes.has(l2) && Object(i.e)(c2, "active"), t2.indent.childElementCount === 0 ? t2.indent.appendChild(c2) : t2.indent.insertBefore(c2, t2.indent.firstElementChild), this.renderedIndentGuides.add(l2, c2), n2.add(Object(o.h)(() => this.renderedIndentGuides.delete(l2, c2))), s2 = l2; + const l2 = o2.getNode(a2), c2 = Object(i.a)(".indent-guide", {style: `width: ${this.indent}px`}); + this.activeIndentNodes.has(l2) && Object(i.e)(c2, "active"), t2.indent.childElementCount === 0 ? t2.indent.appendChild(c2) : t2.indent.insertBefore(c2, t2.indent.firstElementChild), this.renderedIndentGuides.add(l2, c2), n2.add(Object(r.h)(() => this.renderedIndentGuides.delete(l2, c2))), s2 = l2; } t2.indentGuidesDisposable = n2; } @@ -39050,8 +39050,8 @@ ${Object(zn.b)(wi)} e2.forEach((e3) => { const i2 = n2.getNodeLocation(e3); try { - const o2 = n2.getParentNodeLocation(i2); - e3.collapsible && e3.children.length > 0 && !e3.collapsed ? t2.add(e3) : o2 && t2.add(n2.getNode(o2)); + const r2 = n2.getParentNodeLocation(i2); + e3.collapsible && e3.children.length > 0 && !e3.collapsed ? t2.add(e3) : r2 && t2.add(n2.getNode(r2)); } catch (e4) { } }), this.activeIndentNodes.forEach((e3) => { @@ -39061,13 +39061,13 @@ ${Object(zn.b)(wi)} }), this.activeIndentNodes = t2; } dispose() { - this.renderedNodes.clear(), this.renderedElements.clear(), this.indentGuidesDisposable.dispose(), Object(o.f)(this.disposables); + this.renderedNodes.clear(), this.renderedElements.clear(), this.indentGuidesDisposable.dispose(), Object(r.f)(this.disposables); } } Y.DefaultIndent = 8; class Z { constructor(e2, t2, n2) { - this.tree = e2, this.keyboardNavigationLabelProvider = t2, this._filter = n2, this._totalCount = 0, this._matchCount = 0, this._pattern = "", this._lowercasePattern = "", this.disposables = new o.b(), e2.onWillRefilter(this.reset, this, this.disposables); + this.tree = e2, this.keyboardNavigationLabelProvider = t2, this._filter = n2, this._totalCount = 0, this._matchCount = 0, this._pattern = "", this._lowercasePattern = "", this.disposables = new r.b(), e2.onWillRefilter(this.reset, this, this.disposables); } get totalCount() { return this._totalCount; @@ -39092,19 +39092,19 @@ ${Object(zn.b)(wi)} const n2 = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e2), i2 = n2 && n2.toString(); if (i2 === void 0) return {data: L.a.Default, visibility: true}; - const o2 = Object(L.d)(this._pattern, this._lowercasePattern, 0, i2, i2.toLowerCase(), 0, true); - return o2 ? (this._matchCount++, {data: o2, visibility: true}) : this.tree.options.filterOnType ? 2 : {data: L.a.Default, visibility: true}; + const r2 = Object(L.d)(this._pattern, this._lowercasePattern, 0, i2, i2.toLowerCase(), 0, true); + return r2 ? (this._matchCount++, {data: r2, visibility: true}) : this.tree.options.filterOnType ? 2 : {data: L.a.Default, visibility: true}; } reset() { this._totalCount = 0, this._matchCount = 0; } dispose() { - Object(o.f)(this.disposables); + Object(r.f)(this.disposables); } } class X { - constructor(e2, t2, n2, r2, s2) { - this.tree = e2, this.view = n2, this.filter = r2, this.keyboardNavigationDelegate = s2, this._enabled = false, this._pattern = "", this._empty = false, this._onDidChangeEmptyState = new a.a(), this.positionClassName = "ne", this.automaticKeyboardNavigation = true, this.triggered = false, this._onDidChangePattern = new a.a(), this.enabledDisposables = new o.b(), this.disposables = new o.b(), this.domNode = Object(i.a)(".monaco-list-type-filter." + this.positionClassName), this.domNode.draggable = true, Object(T.a)(this.domNode, "dragstart")(this.onDragStart, this, this.disposables), this.messageDomNode = Object(i.p)(n2.getHTMLElement(), Object(i.a)(".monaco-list-type-filter-message")), this.labelDomNode = Object(i.p)(this.domNode, Object(i.a)("span.label")); + constructor(e2, t2, n2, o2, s2) { + this.tree = e2, this.view = n2, this.filter = o2, this.keyboardNavigationDelegate = s2, this._enabled = false, this._pattern = "", this._empty = false, this._onDidChangeEmptyState = new a.a(), this.positionClassName = "ne", this.automaticKeyboardNavigation = true, this.triggered = false, this._onDidChangePattern = new a.a(), this.enabledDisposables = new r.b(), this.disposables = new r.b(), this.domNode = Object(i.a)(".monaco-list-type-filter." + this.positionClassName), this.domNode.draggable = true, Object(T.a)(this.domNode, "dragstart")(this.onDragStart, this, this.disposables), this.messageDomNode = Object(i.p)(n2.getHTMLElement(), Object(i.a)(".monaco-list-type-filter-message")), this.labelDomNode = Object(i.p)(this.domNode, Object(i.a)("span.label")); const l2 = Object(i.p)(this.domNode, Object(i.a)(".controls")); this._filterOnType = !!e2.options.filterOnType, this.filterOnTypeDomNode = Object(i.p)(l2, Object(i.a)("input.filter")), this.filterOnTypeDomNode.type = "checkbox", this.filterOnTypeDomNode.checked = this._filterOnType, this.filterOnTypeDomNode.tabIndex = -1, this.updateFilterOnTypeTitleAndIcon(), Object(T.a)(this.filterOnTypeDomNode, "input")(this.onDidChangeFilterOnType, this, this.disposables), this.clearDomNode = Object(i.p)(l2, Object(i.a)("button.clear" + j.cssSelector)), this.clearDomNode.tabIndex = -1, this.clearDomNode.title = Object(h.a)("clear", "Clear"), this.keyboardNavigationEventFilter = e2.options.keyboardNavigationEventFilter, t2.onDidSplice(this.onDidSpliceModel, this, this.disposables), this.updateOptions(e2.options); } @@ -39145,7 +39145,7 @@ ${Object(zn.b)(wi)} this.render(), e2 || (this.triggered = false); } onDragStart() { - const e2 = this.view.getHTMLElement(), {left: t2} = Object(i.C)(e2), n2 = e2.clientWidth, r2 = n2 / 2, s2 = this.domNode.clientWidth, a2 = new o.b(); + const e2 = this.view.getHTMLElement(), {left: t2} = Object(i.C)(e2), n2 = e2.clientWidth, o2 = n2 / 2, s2 = this.domNode.clientWidth, a2 = new r.b(); let l2 = this.positionClassName; const c2 = () => { switch (l2) { @@ -39156,13 +39156,13 @@ ${Object(zn.b)(wi)} this.domNode.style.top = "4px", this.domNode.style.left = n2 - s2 - 6 + "px"; } }; - c2(), Object(i.Q)(this.domNode, l2), Object(i.e)(this.domNode, "dragging"), a2.add(Object(o.h)(() => Object(i.Q)(this.domNode, "dragging"))), Object(T.a)(document, "dragover")((e3) => { + c2(), Object(i.Q)(this.domNode, l2), Object(i.e)(this.domNode, "dragging"), a2.add(Object(r.h)(() => Object(i.Q)(this.domNode, "dragging"))), Object(T.a)(document, "dragover")((e3) => { e3.preventDefault(); const n3 = e3.screenX - t2; - e3.dataTransfer && (e3.dataTransfer.dropEffect = "none"), l2 = n3 < r2 ? "nw" : "ne", c2(); + e3.dataTransfer && (e3.dataTransfer.dropEffect = "none"), l2 = n3 < o2 ? "nw" : "ne", c2(); }, null, a2), Object(T.a)(this.domNode, "dragend")(() => { - this.positionClassName = l2, this.domNode.className = "monaco-list-type-filter " + this.positionClassName, this.domNode.style.top = "", this.domNode.style.left = "", Object(o.f)(a2); - }, null, a2), k.c.CurrentDragAndDropData = new k.b("vscode-ui"), a2.add(Object(o.h)(() => k.c.CurrentDragAndDropData = void 0)); + this.positionClassName = l2, this.domNode.className = "monaco-list-type-filter " + this.positionClassName, this.domNode.style.top = "", this.domNode.style.left = "", Object(r.f)(a2); + }, null, a2), k.c.CurrentDragAndDropData = new k.b("vscode-ui"), a2.add(Object(r.h)(() => k.c.CurrentDragAndDropData = void 0)); } onDidSpliceModel() { this._enabled && this.pattern.length !== 0 && (this.tree.refilter(), this.render()); @@ -39181,7 +39181,7 @@ ${Object(zn.b)(wi)} return !(this.enabled && this.pattern && !this.filterOnType) || (this.filter.totalCount > 0 && this.filter.matchCount <= 1 || !L.a.isDefault(e2.filterData)); } dispose() { - this._enabled && (this.domNode.remove(), this.enabledDisposables.dispose(), this._enabled = false, this.triggered = false), this._onDidChangePattern.dispose(), Object(o.f)(this.disposables); + this._enabled && (this.domNode.remove(), this.enabledDisposables.dispose(), this._enabled = false, this.triggered = false), this._onDidChangePattern.dispose(), Object(r.f)(this.disposables); } } function Q(e2) { @@ -39199,7 +39199,7 @@ ${Object(zn.b)(wi)} return this._nodeSet || (this._nodeSet = this.createNodeSet()), this._nodeSet; } set(e2, t2) { - Object(r.g)(this.nodes, e2) || this._set(e2, false, t2); + Object(o.g)(this.nodes, e2) || this._set(e2, false, t2); } _set(e2, t2, n2) { if (this.nodes = [...e2], this.elements = void 0, this._nodeSet = void 0, !t2) { @@ -39225,13 +39225,13 @@ ${Object(zn.b)(wi)} } const n2 = new Set(), i2 = (e3) => n2.add(this.identityProvider.getId(e3.element).toString()); t2.forEach((e3) => J(e3, i2)); - const o2 = new Map(), r2 = (e3) => o2.set(this.identityProvider.getId(e3.element).toString(), e3); - e2.forEach((e3) => J(e3, r2)); + const r2 = new Map(), o2 = (e3) => r2.set(this.identityProvider.getId(e3.element).toString(), e3); + e2.forEach((e3) => J(e3, o2)); const s2 = []; for (const e3 of this.nodes) { const t3 = this.identityProvider.getId(e3.element).toString(); if (n2.has(t3)) { - const e4 = o2.get(t3); + const e4 = r2.get(t3); e4 && s2.push(e4); } else s2.push(e3); @@ -39257,15 +39257,15 @@ ${Object(zn.b)(wi)} return super.onViewPointer(e2); if (this.isSelectionRangeChangeEvent(e2) || this.isSelectionSingleChangeEvent(e2)) return super.onViewPointer(e2); - const n2 = e2.browserEvent.target, o2 = Object(i.I)(n2, "monaco-tl-twistie") || Object(i.I)(n2, "monaco-icon-label") && Object(i.I)(n2, "folder-icon") && e2.browserEvent.offsetX < 16; - let r2 = false; - if (r2 = typeof this.tree.expandOnlyOnTwistieClick == "function" ? this.tree.expandOnlyOnTwistieClick(t2.element) : !!this.tree.expandOnlyOnTwistieClick, r2 && !o2) + const n2 = e2.browserEvent.target, r2 = Object(i.I)(n2, "monaco-tl-twistie") || Object(i.I)(n2, "monaco-icon-label") && Object(i.I)(n2, "folder-icon") && e2.browserEvent.offsetX < 16; + let o2 = false; + if (o2 = typeof this.tree.expandOnlyOnTwistieClick == "function" ? this.tree.expandOnlyOnTwistieClick(t2.element) : !!this.tree.expandOnlyOnTwistieClick, o2 && !r2) return super.onViewPointer(e2); - if (this.tree.expandOnlyOnDoubleClick && e2.browserEvent.detail !== 2 && !o2) + if (this.tree.expandOnlyOnDoubleClick && e2.browserEvent.detail !== 2 && !r2) return super.onViewPointer(e2); if (t2.collapsible) { const n3 = this.tree.model, i2 = n3.getNodeLocation(t2), s2 = e2.browserEvent.altKey; - if (n3.setCollapsed(i2, void 0, s2), r2 && o2) + if (n3.setCollapsed(i2, void 0, s2), o2 && r2) return; } super.onViewPointer(e2); @@ -39275,8 +39275,8 @@ ${Object(zn.b)(wi)} } } class ne extends s.c { - constructor(e2, t2, n2, i2, o2, r2, s2) { - super(e2, t2, n2, i2, s2), this.focusTrait = o2, this.selectionTrait = r2; + constructor(e2, t2, n2, i2, r2, o2, s2) { + super(e2, t2, n2, i2, s2), this.focusTrait = r2, this.selectionTrait = o2; } createMouseController(e2) { return new te(this, e2.tree); @@ -39284,10 +39284,10 @@ ${Object(zn.b)(wi)} splice(e2, t2, n2 = []) { if (super.splice(e2, t2, n2), n2.length === 0) return; - const i2 = [], o2 = []; + const i2 = [], r2 = []; n2.forEach((t3, n3) => { - this.focusTrait.has(t3) && i2.push(e2 + n3), this.selectionTrait.has(t3) && o2.push(e2 + n3); - }), i2.length > 0 && super.setFocus(Object(r.f)([...super.getFocus(), ...i2])), o2.length > 0 && super.setSelection(Object(r.f)([...super.getSelection(), ...o2])); + this.focusTrait.has(t3) && i2.push(e2 + n3), this.selectionTrait.has(t3) && r2.push(e2 + n3); + }), i2.length > 0 && super.setFocus(Object(o.f)([...super.getFocus(), ...i2])), r2.length > 0 && super.setSelection(Object(o.f)([...super.getSelection(), ...r2])); } setFocus(e2, t2, n2 = false) { super.setFocus(e2, t2), n2 || this.focusTrait.set(e2.map((e3) => this.element(e3)), t2); @@ -39297,10 +39297,10 @@ ${Object(zn.b)(wi)} } } class ie { - constructor(e2, t2, n2, r2, l2 = {}) { - this._options = l2, this.eventBufferer = new a.c(), this.disposables = new o.b(), this._onWillRefilter = new a.a(), this.onWillRefilter = this._onWillRefilter.event, this._onDidUpdateOptions = new a.a(); + constructor(e2, t2, n2, o2, l2 = {}) { + this._options = l2, this.eventBufferer = new a.c(), this.disposables = new r.b(), this._onWillRefilter = new a.a(), this.onWillRefilter = this._onWillRefilter.event, this._onDidUpdateOptions = new a.a(); const c2 = new $(n2), d2 = new a.e(), h2 = new a.e(), u2 = new G(h2.event); - this.renderers = r2.map((e3) => new Y(e3, () => this.model, d2.event, u2, l2)); + this.renderers = o2.map((e3) => new Y(e3, () => this.model, d2.event, u2, l2)); for (let e3 of this.renderers) this.disposables.add(e3); let p2; @@ -39469,45 +39469,45 @@ ${Object(zn.b)(wi)} const t2 = this.view.getFocusedElements(); if (t2.length === 0) return; - const n2 = t2[0], i2 = this.model.getNodeLocation(n2), o2 = e2.browserEvent.altKey; - this.model.setCollapsed(i2, void 0, o2); + const n2 = t2[0], i2 = this.model.getNodeLocation(n2), r2 = e2.browserEvent.altKey; + this.model.setCollapsed(i2, void 0, r2); } dispose() { - Object(o.f)(this.disposables), this.view.dispose(); + Object(r.f)(this.disposables), this.view.dispose(); } } - class oe { + class re { constructor(e2, t2, n2 = {}) { - this.user = e2, this.rootRef = null, this.nodes = new Map(), this.nodesByIdentity = new Map(), this.model = new D(e2, t2, null, n2), this.onDidSplice = this.model.onDidSplice, this.onDidChangeCollapseState = this.model.onDidChangeCollapseState, this.onDidChangeRenderNodeCount = this.model.onDidChangeRenderNodeCount, n2.sorter && (this.sorter = {compare: (e3, t3) => n2.sorter.compare(e3.element, t3.element)}), this.identityProvider = n2.identityProvider; + this.user = e2, this.rootRef = null, this.nodes = new Map(), this.nodesByIdentity = new Map(), this.model = new O(e2, t2, null, n2), this.onDidSplice = this.model.onDidSplice, this.onDidChangeCollapseState = this.model.onDidChangeCollapseState, this.onDidChangeRenderNodeCount = this.model.onDidChangeRenderNodeCount, n2.sorter && (this.sorter = {compare: (e3, t3) => n2.sorter.compare(e3.element, t3.element)}), this.identityProvider = n2.identityProvider; } setChildren(e2, t2 = y.a.empty(), n2, i2) { - const o2 = this.getElementLocation(e2); - this._setChildren(o2, this.preserveCollapseState(t2), n2, i2); + const r2 = this.getElementLocation(e2); + this._setChildren(r2, this.preserveCollapseState(t2), n2, i2); } _setChildren(e2, t2 = y.a.empty(), n2, i2) { - const o2 = new Set(), r2 = new Set(); + const r2 = new Set(), o2 = new Set(); this.model.splice([...e2, 0], Number.MAX_VALUE, t2, (e3) => { if (e3.element === null) return; const t3 = e3; - if (o2.add(t3.element), this.nodes.set(t3.element, t3), this.identityProvider) { + if (r2.add(t3.element), this.nodes.set(t3.element, t3), this.identityProvider) { const e4 = this.identityProvider.getId(t3.element).toString(); - r2.add(e4), this.nodesByIdentity.set(e4, t3); + o2.add(e4), this.nodesByIdentity.set(e4, t3); } n2 && n2(t3); }, (e3) => { if (e3.element === null) return; const t3 = e3; - if (o2.has(t3.element) || this.nodes.delete(t3.element), this.identityProvider) { + if (r2.has(t3.element) || this.nodes.delete(t3.element), this.identityProvider) { const e4 = this.identityProvider.getId(t3.element).toString(); - r2.has(e4) || this.nodesByIdentity.delete(e4); + o2.has(e4) || this.nodesByIdentity.delete(e4); } i2 && i2(t3); }); } preserveCollapseState(e2 = y.a.empty()) { - return this.sorter && (e2 = Object(r.p)([...e2], this.sorter.compare.bind(this.sorter))), y.a.map(e2, (e3) => { + return this.sorter && (e2 = Object(o.p)([...e2], this.sorter.compare.bind(this.sorter))), y.a.map(e2, (e3) => { let t2 = this.nodes.get(e3.element); if (!t2 && this.identityProvider) { const n3 = this.identityProvider.getId(e3.element).toString(); @@ -39586,15 +39586,15 @@ ${Object(zn.b)(wi)} return this.model.getNodeLocation(t2); } } - function re(e2) { - return {element: {elements: [e2.element], incompressible: e2.incompressible || false}, children: y.a.map(y.a.from(e2.children), re), collapsible: e2.collapsible, collapsed: e2.collapsed}; + function oe(e2) { + return {element: {elements: [e2.element], incompressible: e2.incompressible || false}, children: y.a.map(y.a.from(e2.children), oe), collapsible: e2.collapsible, collapsed: e2.collapsed}; } function se(e2) { const t2 = [e2.element], n2 = e2.incompressible || false; - let i2, o2; - for (; [o2, i2] = y.a.consume(y.a.from(e2.children), 2), o2.length === 1 && !(e2 = o2[0]).incompressible; ) + let i2, r2; + for (; [r2, i2] = y.a.consume(y.a.from(e2.children), 2), r2.length === 1 && !(e2 = r2[0]).incompressible; ) t2.push(e2.element); - return {element: {elements: t2, incompressible: n2}, children: y.a.map(y.a.concat(o2, i2), se), collapsible: e2.collapsible, collapsed: e2.collapsed}; + return {element: {elements: t2, incompressible: n2}, children: y.a.map(y.a.concat(r2, i2), se), collapsible: e2.collapsible, collapsed: e2.collapsed}; } function ae(e2) { return function e3(t2, n2 = 0) { @@ -39604,7 +39604,7 @@ ${Object(zn.b)(wi)} } class le { constructor(e2, t2, n2 = {}) { - this.user = e2, this.rootRef = null, this.nodes = new Map(), this.model = new oe(e2, t2, n2), this.enabled = n2.compressionEnabled === void 0 || n2.compressionEnabled; + this.user = e2, this.rootRef = null, this.nodes = new Map(), this.model = new re(e2, t2, n2), this.enabled = n2.compressionEnabled === void 0 || n2.compressionEnabled; } get onDidSplice() { return this.model.onDidSplice; @@ -39617,22 +39617,22 @@ ${Object(zn.b)(wi)} } setChildren(e2, t2 = y.a.empty()) { if (e2 === null) { - const e3 = y.a.map(t2, this.enabled ? se : re); + const e3 = y.a.map(t2, this.enabled ? se : oe); return void this._setChildren(null, e3); } const n2 = this.nodes.get(e2); if (!n2) throw new Error("Unknown compressed tree node"); - const i2 = this.model.getNode(n2), o2 = this.model.getParentNodeLocation(n2), r2 = this.model.getNode(o2), s2 = function e3(t3, n3, i3) { + const i2 = this.model.getNode(n2), r2 = this.model.getParentNodeLocation(n2), o2 = this.model.getNode(r2), s2 = function e3(t3, n3, i3) { return t3.element === n3 ? Object.assign(Object.assign({}, t3), {children: i3}) : Object.assign(Object.assign({}, t3), {children: y.a.map(y.a.from(t3.children), (t4) => e3(t4, n3, i3))}); - }(ae(i2), e2, t2), a2 = (this.enabled ? se : re)(s2), l2 = r2.children.map((e3) => e3 === i2 ? a2 : e3); - this._setChildren(r2.element, l2); + }(ae(i2), e2, t2), a2 = (this.enabled ? se : oe)(s2), l2 = o2.children.map((e3) => e3 === i2 ? a2 : e3); + this._setChildren(o2.element, l2); } setCompressionEnabled(e2) { if (e2 === this.enabled) return; this.enabled = e2; - const t2 = this.model.getNode().children, n2 = y.a.map(t2, ae), i2 = y.a.map(n2, e2 ? se : re); + const t2 = this.model.getNode().children, n2 = y.a.map(t2, ae), i2 = y.a.map(n2, e2 ? se : oe); this._setChildren(null, i2); } _setChildren(e2, t2) { @@ -39744,8 +39744,8 @@ ${Object(zn.b)(wi)} this.rootRef = null, this.elementMapper = n2.elementMapper || ce; const i2 = (e3) => this.elementMapper(e3.elements); this.nodeMapper = new S((e3) => new de(i2, e3)), this.model = new le(e2, function(e3, t3) { - return {splice(n3, i3, o2) { - t3.splice(n3, i3, o2.map((t4) => e3.map(t4))); + return {splice(n3, i3, r2) { + t3.splice(n3, i3, r2.map((t4) => e3.map(t4))); }, updateElementHeight(e4, n3) { t3.updateElementHeight(e4, n3); }}; @@ -39812,17 +39812,17 @@ ${Object(zn.b)(wi)} } } var ue = n(98), pe = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }; class me extends ie { - constructor(e2, t2, n2, i2, o2 = {}) { - super(e2, t2, n2, i2, o2); + constructor(e2, t2, n2, i2, r2 = {}) { + super(e2, t2, n2, i2, r2); } get onDidChangeCollapseState() { return this.model.onDidChangeCollapseState; @@ -39837,7 +39837,7 @@ ${Object(zn.b)(wi)} return this.model.has(e2); } createModel(e2, t2, n2) { - return new oe(e2, t2, n2); + return new re(e2, t2, n2); } } class ge { @@ -39851,8 +39851,8 @@ ${Object(zn.b)(wi)} return {compressedTreeNode: void 0, data: this.renderer.renderTemplate(e2)}; } renderElement(e2, t2, n2, i2) { - const o2 = this.compressedTreeNodeProvider.getCompressedTreeNode(e2.element); - o2.element.elements.length === 1 ? (n2.compressedTreeNode = void 0, this.renderer.renderElement(e2, t2, n2.data, i2)) : (n2.compressedTreeNode = o2, this.renderer.renderCompressedElements(o2, t2, n2.data, i2)); + const r2 = this.compressedTreeNodeProvider.getCompressedTreeNode(e2.element); + r2.element.elements.length === 1 ? (n2.compressedTreeNode = void 0, this.renderer.renderElement(e2, t2, n2.data, i2)) : (n2.compressedTreeNode = r2, this.renderer.renderCompressedElements(r2, t2, n2.data, i2)); } disposeElement(e2, t2, n2, i2) { n2.compressedTreeNode ? this.renderer.disposeCompressedElements && this.renderer.disposeCompressedElements(n2.compressedTreeNode, t2, n2.data, i2) : this.renderer.disposeElement && this.renderer.disposeElement(e2, t2, n2.data, i2); @@ -39866,9 +39866,9 @@ ${Object(zn.b)(wi)} } pe([ue.a], ge.prototype, "compressedTreeNodeProvider", null); class fe extends me { - constructor(e2, t2, n2, i2, o2 = {}) { - const r2 = () => this; - super(e2, t2, n2, i2.map((e3) => new ge(r2, e3)), function(e3, t3) { + constructor(e2, t2, n2, i2, r2 = {}) { + const o2 = () => this; + super(e2, t2, n2, i2.map((e3) => new ge(o2, e3)), function(e3, t3) { return t3 && Object.assign(Object.assign({}, t3), {keyboardNavigationLabelProvider: t3.keyboardNavigationLabelProvider && {getKeyboardNavigationLabel(n3) { let i3; try { @@ -39878,7 +39878,7 @@ ${Object(zn.b)(wi)} } return i3.element.elements.length === 1 ? t3.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n3) : t3.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i3.element.elements); }}}); - }(r2, o2)); + }(o2, r2)); } setChildren(e2, t2 = y.a.empty()) { this.model.setChildren(e2, t2); @@ -39894,24 +39894,24 @@ ${Object(zn.b)(wi)} } } var be = n(13), _e = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -40007,7 +40007,7 @@ ${Object(zn.b)(wi)} onDragStart(e2, t2) { this.dnd.onDragStart && this.dnd.onDragStart(Ee(e2), t2); } - onDragOver(e2, t2, n2, i2, o2 = true) { + onDragOver(e2, t2, n2, i2, r2 = true) { return this.dnd.onDragOver(Ee(e2), t2 && t2.element, n2, i2); } drop(e2, t2, n2, i2) { @@ -40027,8 +40027,8 @@ ${Object(zn.b)(wi)} t2(e2), e2.children.forEach((e3) => Ne(e3, t2)); } class Ie { - constructor(e2, t2, n2, i2, r2, s2 = {}) { - this.user = e2, this.dataSource = r2, this.nodes = new Map(), this.subTreeRefreshPromises = new Map(), this.refreshPromises = new Map(), this._onDidRender = new a.a(), this._onDidChangeNodeSlowState = new a.a(), this.nodeMapper = new S((e3) => new ye(e3)), this.disposables = new o.b(), this.identityProvider = s2.identityProvider, this.autoExpandSingleChildren = s2.autoExpandSingleChildren !== void 0 && s2.autoExpandSingleChildren, this.sorter = s2.sorter, this.collapseByDefault = s2.collapseByDefault, this.tree = this.createTree(e2, t2, n2, i2, s2), this.root = ve({element: void 0, parent: null, hasChildren: true}), this.identityProvider && (this.root = Object.assign(Object.assign({}, this.root), {id: null})), this.nodes.set(null, this.root), this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState, this, this.disposables); + constructor(e2, t2, n2, i2, o2, s2 = {}) { + this.user = e2, this.dataSource = o2, this.nodes = new Map(), this.subTreeRefreshPromises = new Map(), this.refreshPromises = new Map(), this._onDidRender = new a.a(), this._onDidChangeNodeSlowState = new a.a(), this.nodeMapper = new S((e3) => new ye(e3)), this.disposables = new r.b(), this.identityProvider = s2.identityProvider, this.autoExpandSingleChildren = s2.autoExpandSingleChildren !== void 0 && s2.autoExpandSingleChildren, this.sorter = s2.sorter, this.collapseByDefault = s2.collapseByDefault, this.tree = this.createTree(e2, t2, n2, i2, s2), this.root = ve({element: void 0, parent: null, hasChildren: true}), this.identityProvider && (this.root = Object.assign(Object.assign({}, this.root), {id: null})), this.nodes.set(null, this.root), this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState, this, this.disposables); } get onDidChangeFocus() { return a.b.map(this.tree.onDidChangeFocus, xe); @@ -40048,9 +40048,9 @@ ${Object(zn.b)(wi)} get onDidDispose() { return this.tree.onDidDispose; } - createTree(e2, t2, n2, i2, o2) { - const r2 = new $(n2), s2 = i2.map((e3) => new Ce(e3, this.nodeMapper, this._onDidChangeNodeSlowState.event)), a2 = Le(o2) || {}; - return new me(e2, t2, r2, s2, a2); + createTree(e2, t2, n2, i2, r2) { + const o2 = new $(n2), s2 = i2.map((e3) => new Ce(e3, this.nodeMapper, this._onDidChangeNodeSlowState.event)), a2 = Le(r2) || {}; + return new me(e2, t2, o2, s2, a2); } updateOptions(e2 = {}) { this.tree.updateOptions(e2); @@ -40088,10 +40088,10 @@ ${Object(zn.b)(wi)} if (this.root.element === void 0) throw new x(this.user, "Tree input not set"); this.root.refreshPromise && (yield this.root.refreshPromise, yield a.b.toPromise(this._onDidRender.event)); - const o2 = this.getDataNode(e2); - if (yield this.refreshAndRenderNode(o2, t2, i2), n2) + const r2 = this.getDataNode(e2); + if (yield this.refreshAndRenderNode(r2, t2, i2), n2) try { - this.tree.rerender(o2); + this.tree.rerender(r2); } catch (e3) { } }); @@ -40151,10 +40151,10 @@ ${Object(zn.b)(wi)} refreshNode(e2, t2, n2) { return _e(this, void 0, void 0, function* () { let i2; - return this.subTreeRefreshPromises.forEach((o2, r2) => { + return this.subTreeRefreshPromises.forEach((r2, o2) => { !i2 && function(e3, t3) { return e3 === t3 || we(e3, t3) || we(t3, e3); - }(r2, e2) && (i2 = o2.then(() => this.refreshNode(e2, t2, n2))); + }(o2, e2) && (i2 = r2.then(() => this.refreshNode(e2, t2, n2))); }), i2 || this.doRefreshSubTree(e2, t2, n2); }); } @@ -40165,8 +40165,8 @@ ${Object(zn.b)(wi)} e2.refreshPromise = void 0, this.subTreeRefreshPromises.delete(e2); }); try { - const o2 = yield this.doRefreshNode(e2, t2, n2); - e2.stale = false, yield Promise.all(o2.map((e3) => this.doRefreshSubTree(e3, t2, n2))); + const r2 = yield this.doRefreshNode(e2, t2, n2); + e2.stale = false, yield Promise.all(r2.map((e3) => this.doRefreshSubTree(e3, t2, n2))); } finally { i2(); } @@ -40183,8 +40183,8 @@ ${Object(zn.b)(wi)} } else i2 = Promise.resolve(y.a.empty()); try { - const o2 = yield i2; - return this.setChildren(e2, o2, t2, n2); + const r2 = yield i2; + return this.setChildren(e2, r2, t2, n2); } catch (t3) { if (e2 !== this.root && this.tree.collapse(e2 === this.root ? null : e2), Object(be.d)(t3)) return []; @@ -40207,30 +40207,30 @@ ${Object(zn.b)(wi)} e2.element !== null && !e2.collapsed && e2.element.stale && (t2 ? this.collapse(e2.element.element) : this.refreshAndRenderNode(e2.element, false).catch(be.e)); } setChildren(e2, t2, n2, i2) { - const o2 = [...t2]; - if (e2.children.length === 0 && o2.length === 0) + const r2 = [...t2]; + if (e2.children.length === 0 && r2.length === 0) return []; - const r2 = new Map(), s2 = new Map(); + const o2 = new Map(), s2 = new Map(); for (const t3 of e2.children) - if (r2.set(t3.element, t3), this.identityProvider) { + if (o2.set(t3.element, t3), this.identityProvider) { const e3 = this.tree.isCollapsed(t3); s2.set(t3.id, {node: t3, collapsed: e3}); } - const a2 = [], l2 = o2.map((t3) => { - const o3 = !!this.dataSource.hasChildren(t3); + const a2 = [], l2 = r2.map((t3) => { + const r3 = !!this.dataSource.hasChildren(t3); if (!this.identityProvider) { - const n3 = ve({element: t3, parent: e2, hasChildren: o3}); - return o3 && this.collapseByDefault && !this.collapseByDefault(t3) && (n3.collapsedByDefault = false, a2.push(n3)), n3; + const n3 = ve({element: t3, parent: e2, hasChildren: r3}); + return r3 && this.collapseByDefault && !this.collapseByDefault(t3) && (n3.collapsedByDefault = false, a2.push(n3)), n3; } const l3 = this.identityProvider.getId(t3).toString(), c2 = s2.get(l3); if (c2) { const e3 = c2.node; - return r2.delete(e3.element), this.nodes.delete(e3.element), this.nodes.set(t3, e3), e3.element = t3, e3.hasChildren = o3, n2 ? c2.collapsed ? (e3.children.forEach((e4) => Ne(e4, (e5) => this.nodes.delete(e5.element))), e3.children.splice(0, e3.children.length), e3.stale = true) : a2.push(e3) : o3 && this.collapseByDefault && !this.collapseByDefault(t3) && (e3.collapsedByDefault = false, a2.push(e3)), e3; + return o2.delete(e3.element), this.nodes.delete(e3.element), this.nodes.set(t3, e3), e3.element = t3, e3.hasChildren = r3, n2 ? c2.collapsed ? (e3.children.forEach((e4) => Ne(e4, (e5) => this.nodes.delete(e5.element))), e3.children.splice(0, e3.children.length), e3.stale = true) : a2.push(e3) : r3 && this.collapseByDefault && !this.collapseByDefault(t3) && (e3.collapsedByDefault = false, a2.push(e3)), e3; } - const d2 = ve({element: t3, parent: e2, id: l3, hasChildren: o3}); - return i2 && i2.viewState.focus && i2.viewState.focus.indexOf(l3) > -1 && i2.focus.push(d2), i2 && i2.viewState.selection && i2.viewState.selection.indexOf(l3) > -1 && i2.selection.push(d2), i2 && i2.viewState.expanded && i2.viewState.expanded.indexOf(l3) > -1 ? a2.push(d2) : o3 && this.collapseByDefault && !this.collapseByDefault(t3) && (d2.collapsedByDefault = false, a2.push(d2)), d2; + const d2 = ve({element: t3, parent: e2, id: l3, hasChildren: r3}); + return i2 && i2.viewState.focus && i2.viewState.focus.indexOf(l3) > -1 && i2.focus.push(d2), i2 && i2.viewState.selection && i2.viewState.selection.indexOf(l3) > -1 && i2.selection.push(d2), i2 && i2.viewState.expanded && i2.viewState.expanded.indexOf(l3) > -1 ? a2.push(d2) : r3 && this.collapseByDefault && !this.collapseByDefault(t3) && (d2.collapsedByDefault = false, a2.push(d2)), d2; }); - for (const e3 of r2.values()) + for (const e3 of o2.values()) Ne(e3, (e4) => this.nodes.delete(e4.element)); for (const e3 of l2) this.nodes.set(e3.element, e3); @@ -40253,7 +40253,7 @@ ${Object(zn.b)(wi)} this.disposables.dispose(); } } - class Oe { + class De { constructor(e2) { this.node = e2; } @@ -40261,7 +40261,7 @@ ${Object(zn.b)(wi)} return {elements: this.node.element.elements.map((e2) => e2.element), incompressible: this.node.element.incompressible}; } get children() { - return this.node.children.map((e2) => new Oe(e2)); + return this.node.children.map((e2) => new De(e2)); } get depth() { return this.node.depth; @@ -40285,7 +40285,7 @@ ${Object(zn.b)(wi)} return this.node.filterData; } } - class De { + class Oe { constructor(e2, t2, n2, i2) { this.renderer = e2, this.nodeMapper = t2, this.compressibleNodeMapperProvider = n2, this.onDidChangeTwistieState = i2, this.renderedNodes = new Map(), this.disposables = [], this.templateId = e2.templateId; } @@ -40311,19 +40311,19 @@ ${Object(zn.b)(wi)} this.renderer.disposeTemplate(e2.templateData); } dispose() { - this.renderedNodes.clear(), this.disposables = Object(o.f)(this.disposables); + this.renderedNodes.clear(), this.disposables = Object(r.f)(this.disposables); } } class Ae extends Ie { - constructor(e2, t2, n2, i2, o2, r2, s2 = {}) { - super(e2, t2, n2, o2, r2, s2), this.compressionDelegate = i2, this.compressibleNodeMapper = new S((e3) => new Oe(e3)), this.filter = s2.filter; + constructor(e2, t2, n2, i2, r2, o2, s2 = {}) { + super(e2, t2, n2, r2, o2, s2), this.compressionDelegate = i2, this.compressibleNodeMapper = new S((e3) => new De(e3)), this.filter = s2.filter; } - createTree(e2, t2, n2, i2, o2) { - const r2 = new $(n2), s2 = i2.map((e3) => new De(e3, this.nodeMapper, () => this.compressibleNodeMapper, this._onDidChangeNodeSlowState.event)), a2 = function(e3) { + createTree(e2, t2, n2, i2, r2) { + const o2 = new $(n2), s2 = i2.map((e3) => new Oe(e3, this.nodeMapper, () => this.compressibleNodeMapper, this._onDidChangeNodeSlowState.event)), a2 = function(e3) { const t3 = e3 && Le(e3); return t3 && Object.assign(Object.assign({}, t3), {keyboardNavigationLabelProvider: t3.keyboardNavigationLabelProvider && Object.assign(Object.assign({}, t3.keyboardNavigationLabelProvider), {getCompressedNodeKeyboardNavigationLabel: (t4) => e3.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t4.map((e4) => e4.element))})}); - }(o2) || {}; - return new fe(e2, t2, r2, s2, a2); + }(r2) || {}; + return new fe(e2, t2, o2, s2, a2); } asTreeElement(e2, t2) { return Object.assign({incompressible: this.compressionDelegate.isIncompressible(e2.element)}, super.asTreeElement(e2, t2)); @@ -40343,7 +40343,7 @@ ${Object(zn.b)(wi)} t3.add(n2(i4.element)); } return t3; - }, o2 = i2(this.tree.getSelection()), r2 = i2(this.tree.getFocus()); + }, r2 = i2(this.tree.getSelection()), o2 = i2(this.tree.getFocus()); super.render(e2, t2); const s2 = this.getSelection(); let a2 = false; @@ -40354,7 +40354,7 @@ ${Object(zn.b)(wi)} if (t3) for (let e4 = 0; e4 < t3.elements.length; e4++) { const i3 = n2(t3.elements[e4].element), d3 = t3.elements[t3.elements.length - 1].element; - o2.has(i3) && s2.indexOf(d3) === -1 && (s2.push(d3), a2 = true), r2.has(i3) && l2.indexOf(d3) === -1 && (l2.push(d3), c2 = true); + r2.has(i3) && s2.indexOf(d3) === -1 && (s2.push(d3), a2 = true), o2.has(i3) && l2.indexOf(d3) === -1 && (l2.push(d3), c2 = true); } e3.children.forEach(d2); }; @@ -40371,21 +40371,21 @@ ${Object(zn.b)(wi)} } } class Re extends ie { - constructor(e2, t2, n2, i2, o2, r2 = {}) { - super(e2, t2, n2, i2, r2), this.user = e2, this.dataSource = o2, this.identityProvider = r2.identityProvider; + constructor(e2, t2, n2, i2, r2, o2 = {}) { + super(e2, t2, n2, i2, o2), this.user = e2, this.dataSource = r2, this.identityProvider = o2.identityProvider; } createModel(e2, t2, n2) { - return new oe(e2, t2, n2); + return new re(e2, t2, n2); } } var Me = n(80), Pe = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Fe = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -40394,7 +40394,7 @@ ${Object(zn.b)(wi)} const We = Object(g.c)("listService"); let ze = class { constructor(e2) { - this._themeService = e2, this.disposables = new o.b(), this.lists = [], this._lastFocusedWidget = void 0, this._hasCreatedStyleController = false; + this._themeService = e2, this.disposables = new r.b(), this.lists = [], this._lastFocusedWidget = void 0, this._hasCreatedStyleController = false; } get lastFocusedList() { return this._lastFocusedWidget; @@ -40408,7 +40408,7 @@ ${Object(zn.b)(wi)} if (this.lists.some((t3) => t3.widget === e2)) throw new Error("Cannot register the same widget multiple times"); const n2 = {widget: e2, extraContextKeys: t2}; - return this.lists.push(n2), e2.getHTMLElement() === document.activeElement && (this._lastFocusedWidget = e2), Object(o.e)(e2.onDidFocus(() => this._lastFocusedWidget = e2), Object(o.h)(() => this.lists.splice(this.lists.indexOf(n2), 1)), e2.onDidDispose(() => { + return this.lists.push(n2), e2.getHTMLElement() === document.activeElement && (this._lastFocusedWidget = e2), Object(r.e)(e2.onDidFocus(() => this._lastFocusedWidget = e2), Object(r.h)(() => this.lists.splice(this.lists.indexOf(n2), 1)), e2.onDidDispose(() => { this.lists = this.lists.filter((e3) => e3 !== n2), this._lastFocusedWidget === e2 && (this._lastFocusedWidget = void 0); })); } @@ -40427,7 +40427,7 @@ ${Object(zn.b)(wi)} function Je(e2) { return e2.getValue("workbench.list.multiSelectModifier") === "alt"; } - class et extends o.a { + class et extends r.a { constructor(e2) { super(), this.configurationService = e2, this.useAltAsMultipleSelectionModifier = Je(e2), this.registerListeners(); } @@ -40444,18 +40444,18 @@ ${Object(zn.b)(wi)} } } function tt(e2, t2, n2) { - const i2 = new o.b(), r2 = Object.assign({}, e2); + const i2 = new r.b(), o2 = Object.assign({}, e2); if (e2.multipleSelectionSupport !== false && !e2.multipleSelectionController) { const e3 = new et(t2); - r2.multipleSelectionController = e3, i2.add(e3); + o2.multipleSelectionController = e3, i2.add(e3); } - return r2.keyboardNavigationDelegate = {mightProducePrintableCharacter: (e3) => n2.mightProducePrintableCharacter(e3)}, r2.smoothScrolling = t2.getValue(Qe), [r2, i2]; + return o2.keyboardNavigationDelegate = {mightProducePrintableCharacter: (e3) => n2.mightProducePrintableCharacter(e3)}, o2.smoothScrolling = t2.getValue(Qe), [o2, i2]; } let nt = class extends s.c { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - const d2 = o2.horizontalScrolling !== void 0 ? o2.horizontalScrolling : l2.getValue(Ze), [h2, u2] = tt(o2, l2, c2); - super(e2, t2, n2, i2, Object.assign(Object.assign(Object.assign({keyboardSupport: false}, Object(_.d)(a2.getColorTheme(), _.e)), h2), {horizontalScrolling: d2})), this.disposables.add(u2), this.contextKeyService = Ye(r2, this), this.themeService = a2; - je.bindTo(this.contextKeyService).set(!(o2.multipleSelectionSupport === false)), this.listHasSelectionOrFocus = Ue.bindTo(this.contextKeyService), this.listDoubleSelection = He.bindTo(this.contextKeyService), this.listMultiSelection = qe.bindTo(this.contextKeyService), this.horizontalScrolling = o2.horizontalScrolling, this._useAltAsMultipleSelectionModifier = Je(l2), this.disposables.add(this.contextKeyService), this.disposables.add(s2.register(this)), o2.overrideStyles && this.updateStyles(o2.overrideStyles), this.disposables.add(this.onDidChangeSelection(() => { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + const d2 = r2.horizontalScrolling !== void 0 ? r2.horizontalScrolling : l2.getValue(Ze), [h2, u2] = tt(r2, l2, c2); + super(e2, t2, n2, i2, Object.assign(Object.assign(Object.assign({keyboardSupport: false}, Object(_.d)(a2.getColorTheme(), _.e)), h2), {horizontalScrolling: d2})), this.disposables.add(u2), this.contextKeyService = Ye(o2, this), this.themeService = a2; + je.bindTo(this.contextKeyService).set(!(r2.multipleSelectionSupport === false)), this.listHasSelectionOrFocus = Ue.bindTo(this.contextKeyService), this.listDoubleSelection = He.bindTo(this.contextKeyService), this.listMultiSelection = qe.bindTo(this.contextKeyService), this.horizontalScrolling = r2.horizontalScrolling, this._useAltAsMultipleSelectionModifier = Je(l2), this.disposables.add(this.contextKeyService), this.disposables.add(s2.register(this)), r2.overrideStyles && this.updateStyles(r2.overrideStyles), this.disposables.add(this.onDidChangeSelection(() => { const e3 = this.getSelection(), t3 = this.getFocus(); this.contextKeyService.bufferChangeEvents(() => { this.listHasSelectionOrFocus.set(e3.length > 0 || t3.length > 0), this.listMultiSelection.set(e3.length > 1), this.listDoubleSelection.set(e3.length === 2); @@ -40489,11 +40489,11 @@ ${Object(zn.b)(wi)} }; nt = Pe([Fe(5, m.b), Fe(6, We), Fe(7, v.c), Fe(8, u.a), Fe(9, f.a)], nt); let it = class extends class { - constructor(e2, t2, n2, i2, o2 = {}) { - const r2 = () => this.model, a2 = i2.map((e3) => new c(e3, r2)); + constructor(e2, t2, n2, i2, r2 = {}) { + const o2 = () => this.model, a2 = i2.map((e3) => new c(e3, o2)); this.list = new s.c(e2, t2, n2, a2, function(e3, t3) { return Object.assign(Object.assign({}, t3), {accessibilityProvider: t3.accessibilityProvider && new d(e3, t3.accessibilityProvider)}); - }(r2, o2)); + }(o2, r2)); } updateOptions(e2) { this.list.updateOptions(e2); @@ -40523,7 +40523,7 @@ ${Object(zn.b)(wi)} return this._model; } set model(e2) { - this._model = e2, this.list.splice(0, this.list.length, Object(r.s)(e2.length)); + this._model = e2, this.list.splice(0, this.list.length, Object(o.s)(e2.length)); } getFocus() { return this.list.getFocus(); @@ -40541,10 +40541,10 @@ ${Object(zn.b)(wi)} this.list.dispose(); } } { - constructor(e2, t2, n2, i2, r2, s2, a2, l2, c2, d2) { - const h2 = r2.horizontalScrolling !== void 0 ? r2.horizontalScrolling : c2.getValue(Ze), [u2, p2] = tt(r2, c2, d2); - super(e2, t2, n2, i2, Object.assign(Object.assign(Object.assign({keyboardSupport: false}, Object(_.d)(l2.getColorTheme(), _.e)), u2), {horizontalScrolling: h2})), this.disposables = new o.b(), this.disposables.add(p2), this.contextKeyService = Ye(s2, this), this.horizontalScrolling = r2.horizontalScrolling; - je.bindTo(this.contextKeyService).set(!(r2.multipleSelectionSupport === false)), this._useAltAsMultipleSelectionModifier = Je(c2), this.disposables.add(this.contextKeyService), this.disposables.add(a2.register(this)), r2.overrideStyles && this.disposables.add(Object(_.b)(this, l2, r2.overrideStyles)), this.disposables.add(c2.onDidChangeConfiguration((e3) => { + constructor(e2, t2, n2, i2, o2, s2, a2, l2, c2, d2) { + const h2 = o2.horizontalScrolling !== void 0 ? o2.horizontalScrolling : c2.getValue(Ze), [u2, p2] = tt(o2, c2, d2); + super(e2, t2, n2, i2, Object.assign(Object.assign(Object.assign({keyboardSupport: false}, Object(_.d)(l2.getColorTheme(), _.e)), u2), {horizontalScrolling: h2})), this.disposables = new r.b(), this.disposables.add(p2), this.contextKeyService = Ye(s2, this), this.horizontalScrolling = o2.horizontalScrolling; + je.bindTo(this.contextKeyService).set(!(o2.multipleSelectionSupport === false)), this._useAltAsMultipleSelectionModifier = Je(c2), this.disposables.add(this.contextKeyService), this.disposables.add(a2.register(this)), o2.overrideStyles && this.disposables.add(Object(_.b)(this, l2, o2.overrideStyles)), this.disposables.add(c2.onDidChangeConfiguration((e3) => { e3.affectsConfiguration("workbench.list.multiSelectModifier") && (this._useAltAsMultipleSelectionModifier = Je(c2)); let t3 = {}; if (e3.affectsConfiguration(Ze) && this.horizontalScrolling === void 0) { @@ -40563,7 +40563,7 @@ ${Object(zn.b)(wi)} } }; it = Pe([Fe(5, m.b), Fe(6, We), Fe(7, v.c), Fe(8, u.a), Fe(9, f.a)], it); - class ot extends o.a { + class rt extends r.a { constructor(e2, t2) { var n2, i2; super(), this.widget = e2, this._onDidOpen = new a.a(), this.onDidOpen = this._onDidOpen.event, this.openOnFocus = (n2 = t2 == null ? void 0 : t2.openOnFocus) !== null && n2 !== void 0 && n2, this._register(a.b.filter(this.widget.onDidChangeSelection, (e3) => e3.browserEvent instanceof KeyboardEvent)((e3) => this.onSelectionFromKeyboard(e3))), this._register(this.widget.onPointer((e3) => this.onPointer(e3.browserEvent))), this._register(this.widget.onMouseDblClick((e3) => this.onMouseDblClick(e3.browserEvent))), this.openOnFocus && this._register(a.b.filter(this.widget.onDidChangeFocus, (e3) => e3.browserEvent instanceof KeyboardEvent)((e3) => this.onFocusFromKeyboard(e3))), typeof (t2 == null ? void 0 : t2.openOnSingleClick) != "boolean" && (t2 == null ? void 0 : t2.configurationService) ? (this.openOnSingleClick = (t2 == null ? void 0 : t2.configurationService.getValue("workbench.list.openMode")) !== "doubleClick", this._register(t2 == null ? void 0 : t2.configurationService.onDidChangeConfiguration(() => { @@ -40600,7 +40600,7 @@ ${Object(zn.b)(wi)} this._onDidOpen.fire({editorOptions: {preserveFocus: e2, pinned: t2, revealIfVisible: true}, sideBySide: n2, element: this.widget.getSelection()[0], browserEvent: i2}); } } - class rt extends ot { + class ot extends rt { constructor(e2, t2) { super(e2, t2); } @@ -40610,21 +40610,21 @@ ${Object(zn.b)(wi)} return (i2) => { if (n2) return n2 = false, false; - const o2 = t2.softDispatch(i2, e2); - return o2 && o2.enterChord ? (n2 = true, false) : (n2 = false, true); + const r2 = t2.softDispatch(i2, e2); + return r2 && r2.enterChord ? (n2 = true, false) : (n2 = false, true); }; } let at = class extends me { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2) { - const {options: h2, getAutomaticKeyboardNavigation: u2, disposable: p2} = ut(t2, o2, r2, l2, c2, d2); - super(e2, t2, n2, i2, h2), this.disposables.add(p2), this.internals = new pt(this, o2, u2, o2.overrideStyles, r2, s2, a2, l2, d2), this.disposables.add(this.internals); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2) { + const {options: h2, getAutomaticKeyboardNavigation: u2, disposable: p2} = ut(t2, r2, o2, l2, c2, d2); + super(e2, t2, n2, i2, h2), this.disposables.add(p2), this.internals = new pt(this, r2, u2, r2.overrideStyles, o2, s2, a2, l2, d2), this.disposables.add(this.internals); } }; at = Pe([Fe(5, m.b), Fe(6, We), Fe(7, v.c), Fe(8, u.a), Fe(9, f.a), Fe(10, Me.b)], at); let lt = class extends fe { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2) { - const {options: h2, getAutomaticKeyboardNavigation: u2, disposable: p2} = ut(t2, o2, r2, l2, c2, d2); - super(e2, t2, n2, i2, h2), this.disposables.add(p2), this.internals = new pt(this, o2, u2, o2.overrideStyles, r2, s2, a2, l2, d2), this.disposables.add(this.internals); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2) { + const {options: h2, getAutomaticKeyboardNavigation: u2, disposable: p2} = ut(t2, r2, o2, l2, c2, d2); + super(e2, t2, n2, i2, h2), this.disposables.add(p2), this.internals = new pt(this, r2, u2, r2.overrideStyles, o2, s2, a2, l2, d2), this.disposables.add(this.internals); } updateOptions(e2 = {}) { super.updateOptions(e2), e2.overrideStyles && this.internals.updateStyleOverrides(e2.overrideStyles); @@ -40632,9 +40632,9 @@ ${Object(zn.b)(wi)} }; lt = Pe([Fe(5, m.b), Fe(6, We), Fe(7, v.c), Fe(8, u.a), Fe(9, f.a), Fe(10, Me.b)], lt); let ct = class extends Re { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2) { - const {options: u2, getAutomaticKeyboardNavigation: p2, disposable: m2} = ut(t2, r2, s2, c2, d2, h2); - super(e2, t2, n2, i2, o2, u2), this.disposables.add(m2), this.internals = new pt(this, r2, p2, r2.overrideStyles, s2, a2, l2, c2, h2), this.disposables.add(this.internals); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2) { + const {options: u2, getAutomaticKeyboardNavigation: p2, disposable: m2} = ut(t2, o2, s2, c2, d2, h2); + super(e2, t2, n2, i2, r2, u2), this.disposables.add(m2), this.internals = new pt(this, o2, p2, o2.overrideStyles, s2, a2, l2, c2, h2), this.disposables.add(this.internals); } updateOptions(e2 = {}) { super.updateOptions(e2), e2.overrideStyles && this.internals.updateStyleOverrides(e2.overrideStyles); @@ -40642,9 +40642,9 @@ ${Object(zn.b)(wi)} }; ct = Pe([Fe(6, m.b), Fe(7, We), Fe(8, v.c), Fe(9, u.a), Fe(10, f.a), Fe(11, Me.b)], ct); let dt = class extends Ie { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2) { - const {options: u2, getAutomaticKeyboardNavigation: p2, disposable: m2} = ut(t2, r2, s2, c2, d2, h2); - super(e2, t2, n2, i2, o2, u2), this.disposables.add(m2), this.internals = new pt(this, r2, p2, r2.overrideStyles, s2, a2, l2, c2, h2), this.disposables.add(this.internals); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2) { + const {options: u2, getAutomaticKeyboardNavigation: p2, disposable: m2} = ut(t2, o2, s2, c2, d2, h2); + super(e2, t2, n2, i2, r2, u2), this.disposables.add(m2), this.internals = new pt(this, o2, p2, o2.overrideStyles, s2, a2, l2, c2, h2), this.disposables.add(this.internals); } get onDidOpen() { return this.internals.onDidOpen; @@ -40655,23 +40655,23 @@ ${Object(zn.b)(wi)} }; dt = Pe([Fe(6, m.b), Fe(7, We), Fe(8, v.c), Fe(9, u.a), Fe(10, f.a), Fe(11, Me.b)], dt); let ht = class extends Ae { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2) { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2) { const {options: p2, getAutomaticKeyboardNavigation: m2, disposable: g2} = ut(t2, s2, a2, d2, h2, u2); - super(e2, t2, n2, i2, o2, r2, p2), this.disposables.add(g2), this.internals = new pt(this, s2, m2, s2.overrideStyles, a2, l2, c2, d2, u2), this.disposables.add(this.internals); + super(e2, t2, n2, i2, r2, o2, p2), this.disposables.add(g2), this.internals = new pt(this, s2, m2, s2.overrideStyles, a2, l2, c2, d2, u2), this.disposables.add(this.internals); } }; - function ut(e2, t2, n2, i2, o2, r2) { + function ut(e2, t2, n2, i2, r2, o2) { $e.bindTo(n2), Ge || (Ke.bindTo(n2), Ge = true); const s2 = () => { let e3 = n2.getContextKeyValue("listAutomaticKeyboardNavigation"); return e3 && (e3 = i2.getValue("workbench.list.automaticKeyboardNavigation")), e3; - }, a2 = r2.isScreenReaderOptimized() ? "simple" : i2.getValue("workbench.list.keyboardNavigation"), l2 = t2.horizontalScrolling !== void 0 ? t2.horizontalScrolling : i2.getValue(Ze), [c2, d2] = tt(t2, i2, o2), h2 = t2.additionalScrollHeight; - return {getAutomaticKeyboardNavigation: s2, disposable: d2, options: Object.assign(Object.assign({keyboardSupport: false}, c2), {indent: i2.getValue(Xe), renderIndentGuides: i2.getValue("workbench.tree.renderIndentGuides"), smoothScrolling: i2.getValue(Qe), automaticKeyboardNavigation: s2(), simpleKeyboardNavigation: a2 === "simple", filterOnType: a2 === "filter", horizontalScrolling: l2, keyboardNavigationEventFilter: st(e2, o2), additionalScrollHeight: h2, hideTwistiesOfChildlessElements: t2.hideTwistiesOfChildlessElements, expandOnlyOnDoubleClick: i2.getValue("workbench.list.openMode") === "doubleClick"})}; + }, a2 = o2.isScreenReaderOptimized() ? "simple" : i2.getValue("workbench.list.keyboardNavigation"), l2 = t2.horizontalScrolling !== void 0 ? t2.horizontalScrolling : i2.getValue(Ze), [c2, d2] = tt(t2, i2, r2), h2 = t2.additionalScrollHeight; + return {getAutomaticKeyboardNavigation: s2, disposable: d2, options: Object.assign(Object.assign({keyboardSupport: false}, c2), {indent: i2.getValue(Xe), renderIndentGuides: i2.getValue("workbench.tree.renderIndentGuides"), smoothScrolling: i2.getValue(Qe), automaticKeyboardNavigation: s2(), simpleKeyboardNavigation: a2 === "simple", filterOnType: a2 === "filter", horizontalScrolling: l2, keyboardNavigationEventFilter: st(e2, r2), additionalScrollHeight: h2, hideTwistiesOfChildlessElements: t2.hideTwistiesOfChildlessElements, expandOnlyOnDoubleClick: i2.getValue("workbench.list.openMode") === "doubleClick"})}; } ht = Pe([Fe(7, m.b), Fe(8, We), Fe(9, v.c), Fe(10, u.a), Fe(11, f.a), Fe(12, Me.b)], ht); let pt = class { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2) { - this.tree = e2, this.themeService = s2, this.disposables = [], this.contextKeyService = Ye(o2, e2); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2) { + this.tree = e2, this.themeService = s2, this.disposables = [], this.contextKeyService = Ye(r2, e2); je.bindTo(this.contextKeyService).set(!(t2.multipleSelectionSupport === false)), this.hasSelectionOrFocus = Ue.bindTo(this.contextKeyService), this.hasDoubleSelection = He.bindTo(this.contextKeyService), this.hasMultiSelection = qe.bindTo(this.contextKeyService), this._useAltAsMultipleSelectionModifier = Je(a2); const c2 = new Set(); c2.add("listAutomaticKeyboardNavigation"); @@ -40679,7 +40679,7 @@ ${Object(zn.b)(wi)} const t3 = l2.isScreenReaderOptimized() ? "simple" : a2.getValue("workbench.list.keyboardNavigation"); e2.updateOptions({simpleKeyboardNavigation: t3 === "simple", filterOnType: t3 === "filter"}); }; - this.updateStyleOverrides(i2), this.disposables.push(this.contextKeyService, r2.register(e2), e2.onDidChangeSelection(() => { + this.updateStyleOverrides(i2), this.disposables.push(this.contextKeyService, o2.register(e2), e2.onDidChangeSelection(() => { const t3 = e2.getSelection(), n3 = e2.getFocus(); this.contextKeyService.bufferChangeEvents(() => { this.hasSelectionOrFocus.set(t3.length > 0 || n3.length > 0), this.hasMultiSelection.set(t3.length > 1), this.hasDoubleSelection.set(t3.length === 2); @@ -40688,36 +40688,36 @@ ${Object(zn.b)(wi)} const t3 = e2.getSelection(), n3 = e2.getFocus(); this.hasSelectionOrFocus.set(t3.length > 0 || n3.length > 0); }), a2.onDidChangeConfiguration((i3) => { - let o3 = {}; + let r3 = {}; if (i3.affectsConfiguration("workbench.list.multiSelectModifier") && (this._useAltAsMultipleSelectionModifier = Je(a2)), i3.affectsConfiguration(Xe)) { const e3 = a2.getValue(Xe); - o3 = Object.assign(Object.assign({}, o3), {indent: e3}); + r3 = Object.assign(Object.assign({}, r3), {indent: e3}); } if (i3.affectsConfiguration("workbench.tree.renderIndentGuides")) { const e3 = a2.getValue("workbench.tree.renderIndentGuides"); - o3 = Object.assign(Object.assign({}, o3), {renderIndentGuides: e3}); + r3 = Object.assign(Object.assign({}, r3), {renderIndentGuides: e3}); } if (i3.affectsConfiguration(Qe)) { const e3 = a2.getValue(Qe); - o3 = Object.assign(Object.assign({}, o3), {smoothScrolling: e3}); + r3 = Object.assign(Object.assign({}, r3), {smoothScrolling: e3}); } - if (i3.affectsConfiguration("workbench.list.keyboardNavigation") && d2(), i3.affectsConfiguration("workbench.list.automaticKeyboardNavigation") && (o3 = Object.assign(Object.assign({}, o3), {automaticKeyboardNavigation: n2()})), i3.affectsConfiguration(Ze) && t2.horizontalScrolling === void 0) { + if (i3.affectsConfiguration("workbench.list.keyboardNavigation") && d2(), i3.affectsConfiguration("workbench.list.automaticKeyboardNavigation") && (r3 = Object.assign(Object.assign({}, r3), {automaticKeyboardNavigation: n2()})), i3.affectsConfiguration(Ze) && t2.horizontalScrolling === void 0) { const e3 = a2.getValue(Ze); - o3 = Object.assign(Object.assign({}, o3), {horizontalScrolling: e3}); + r3 = Object.assign(Object.assign({}, r3), {horizontalScrolling: e3}); } - i3.affectsConfiguration("workbench.list.openMode") && (o3 = Object.assign(Object.assign({}, o3), {expandOnlyOnDoubleClick: a2.getValue("workbench.list.openMode") === "doubleClick"})), Object.keys(o3).length > 0 && e2.updateOptions(o3); + i3.affectsConfiguration("workbench.list.openMode") && (r3 = Object.assign(Object.assign({}, r3), {expandOnlyOnDoubleClick: a2.getValue("workbench.list.openMode") === "doubleClick"})), Object.keys(r3).length > 0 && e2.updateOptions(r3); }), this.contextKeyService.onDidChangeContext((t3) => { t3.affectsSome(c2) && e2.updateOptions({automaticKeyboardNavigation: n2()}); - }), l2.onDidChangeScreenReaderOptimized(() => d2())), this.navigator = new rt(e2, Object.assign({configurationService: a2}, t2)), this.disposables.push(this.navigator); + }), l2.onDidChangeScreenReaderOptimized(() => d2())), this.navigator = new ot(e2, Object.assign({configurationService: a2}, t2)), this.disposables.push(this.navigator); } get onDidOpen() { return this.navigator.onDidOpen; } updateStyleOverrides(e2) { - Object(o.f)(this.styler), this.styler = e2 ? Object(_.b)(this.tree, this.themeService, e2) : o.a.None; + Object(r.f)(this.styler), this.styler = e2 ? Object(_.b)(this.tree, this.themeService, e2) : r.a.None; } dispose() { - this.disposables = Object(o.f)(this.disposables), Object(o.f)(this.styler), this.styler = void 0; + this.disposables = Object(r.f)(this.disposables), Object(r.f)(this.styler), this.styler = void 0; } }; pt = Pe([Fe(4, m.b), Fe(5, We), Fe(6, v.c), Fe(7, u.a), Fe(8, Me.b)], pt); @@ -40736,31 +40736,31 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(34), o = n(11); - const r = {clipboard: {writeText: o.g || document.queryCommandSupported && document.queryCommandSupported("copy") || !!(navigator && navigator.clipboard && navigator.clipboard.writeText), readText: o.g || !!(navigator && navigator.clipboard && navigator.clipboard.readText), richText: (() => { + var i = n(34), r = n(11); + const o = {clipboard: {writeText: r.g || document.queryCommandSupported && document.queryCommandSupported("copy") || !!(navigator && navigator.clipboard && navigator.clipboard.writeText), readText: r.g || !!(navigator && navigator.clipboard && navigator.clipboard.readText), richText: (() => { if (i.f) { let e2 = navigator.userAgent.indexOf("Edge/"), t2 = parseInt(navigator.userAgent.substring(e2 + 5, navigator.userAgent.indexOf(".", e2)), 10); if (!t2 || t2 >= 12 && t2 <= 16) return false; } return true; - })()}, keyboard: o.g || i.k ? 0 : navigator.keyboard || i.j ? 1 : 2, touch: "ontouchstart" in window || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0, pointerEvents: window.PointerEvent && ("ontouchstart" in window || window.navigator.maxTouchPoints > 0 || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0)}; + })()}, keyboard: r.g || i.k ? 0 : navigator.keyboard || i.j ? 1 : 2, touch: "ontouchstart" in window || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0, pointerEvents: window.PointerEvent && ("ontouchstart" in window || window.navigator.maxTouchPoints > 0 || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0)}; }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("themeService"); + const r = Object(i.c)("themeService"); }, function(e, t, n) { "use strict"; (function(e2) { n.d(t, "a", function() { return p; }); - var i, o, r, s = (i = function(e3, t2) { + var i, r, o, s = (i = function(e3, t2) { return (i = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e4, t3) { e4.__proto__ = t3; } || function(e4, t3) { @@ -40774,17 +40774,17 @@ ${Object(zn.b)(wi)} i(e3, t2), e3.prototype = t2 === null ? Object.create(t2) : (n2.prototype = t2.prototype, new n2()); }); if (typeof e2 == "object") - r = e2.platform === "win32"; + o = e2.platform === "win32"; else if (typeof navigator == "object") { var a = navigator.userAgent; - r = a.indexOf("Windows") >= 0; + o = a.indexOf("Windows") >= 0; } var l = /^\w[\w\d+.-]*$/, c = /^\//, d = /^\/\//; var h = "/", u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, p = function() { - function e3(e4, t2, n2, i2, o2, r2) { - r2 === void 0 && (r2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { + function e3(e4, t2, n2, i2, r2, o2) { + o2 === void 0 && (o2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { return e5 || t3 ? e5 : "file"; - }(e4, r2), this.authority = t2 || "", this.path = function(e5, t3) { + }(e4, o2), this.authority = t2 || "", this.path = function(e5, t3) { switch (e5) { case "https": case "http": @@ -40792,7 +40792,7 @@ ${Object(zn.b)(wi)} t3 ? t3[0] !== h && (t3 = h + t3) : t3 = h; } return t3; - }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = o2 || "", function(e5, t3) { + }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = r2 || "", function(e5, t3) { if (!e5.scheme && t3) throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "' + e5.authority + '", path: "' + e5.path + '", query: "' + e5.query + '", fragment: "' + e5.fragment + '"}'); if (e5.scheme && !l.test(e5.scheme)) @@ -40804,7 +40804,7 @@ ${Object(zn.b)(wi)} } else if (d.test(e5.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } - }(this, r2)); + }(this, o2)); } return e3.isUri = function(t2) { return t2 instanceof e3 || !!t2 && (typeof t2.authority == "string" && typeof t2.fragment == "string" && typeof t2.path == "string" && typeof t2.query == "string" && typeof t2.scheme == "string" && typeof t2.fsPath == "function" && typeof t2.with == "function" && typeof t2.toString == "function"); @@ -40813,15 +40813,15 @@ ${Object(zn.b)(wi)} }, enumerable: true, configurable: true}), e3.prototype.with = function(e4) { if (!e4) return this; - var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, o2 = e4.query, r2 = e4.fragment; - return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), o2 === void 0 ? o2 = this.query : o2 === null && (o2 = ""), r2 === void 0 ? r2 = this.fragment : r2 === null && (r2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && o2 === this.query && r2 === this.fragment ? this : new g(t2, n2, i2, o2, r2); + var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, r2 = e4.query, o2 = e4.fragment; + return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), r2 === void 0 ? r2 = this.query : r2 === null && (r2 = ""), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && r2 === this.query && o2 === this.fragment ? this : new g(t2, n2, i2, r2, o2); }, e3.parse = function(e4, t2) { t2 === void 0 && (t2 = false); var n2 = u.exec(e4); return n2 ? new g(n2[2] || "", C(n2[4] || ""), C(n2[5] || ""), C(n2[7] || ""), C(n2[9] || ""), t2) : new g("", "", "", "", ""); }, e3.file = function(e4) { var t2 = ""; - if (r && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { + if (o && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { var n2 = e4.indexOf(h, 2); n2 === -1 ? (t2 = e4.substring(2), e4 = h) : (t2 = e4.substring(2, n2), e4 = e4.substring(n2) || h); } @@ -40841,7 +40841,7 @@ ${Object(zn.b)(wi)} } return t2; }, e3; - }(), m = r ? 1 : void 0, g = function(e3) { + }(), m = o ? 1 : void 0, g = function(e3) { function t2() { var t3 = e3 !== null && e3.apply(this, arguments) || this; return t3._formatted = null, t3._fsPath = null, t3; @@ -40854,16 +40854,16 @@ ${Object(zn.b)(wi)} var e4 = {$mid: 1}; return this._fsPath && (e4.fsPath = this._fsPath, e4._sep = m), this._formatted && (e4.external = this._formatted), this.path && (e4.path = this.path), this.scheme && (e4.scheme = this.scheme), this.authority && (e4.authority = this.authority), this.query && (e4.query = this.query), this.fragment && (e4.fragment = this.fragment), e4; }, t2; - }(p), f = ((o = {})[58] = "%3A", o[47] = "%2F", o[63] = "%3F", o[35] = "%23", o[91] = "%5B", o[93] = "%5D", o[64] = "%40", o[33] = "%21", o[36] = "%24", o[38] = "%26", o[39] = "%27", o[40] = "%28", o[41] = "%29", o[42] = "%2A", o[43] = "%2B", o[44] = "%2C", o[59] = "%3B", o[61] = "%3D", o[32] = "%20", o); + }(p), f = ((r = {})[58] = "%3A", r[47] = "%2F", r[63] = "%3F", r[35] = "%23", r[91] = "%5B", r[93] = "%5D", r[64] = "%40", r[33] = "%21", r[36] = "%24", r[38] = "%26", r[39] = "%27", r[40] = "%28", r[41] = "%29", r[42] = "%2A", r[43] = "%2B", r[44] = "%2C", r[59] = "%3B", r[61] = "%3D", r[32] = "%20", r); function b(e3, t2) { - for (var n2 = void 0, i2 = -1, o2 = 0; o2 < e3.length; o2++) { - var r2 = e3.charCodeAt(o2); - if (r2 >= 97 && r2 <= 122 || r2 >= 65 && r2 <= 90 || r2 >= 48 && r2 <= 57 || r2 === 45 || r2 === 46 || r2 === 95 || r2 === 126 || t2 && r2 === 47) - i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(o2)); + for (var n2 = void 0, i2 = -1, r2 = 0; r2 < e3.length; r2++) { + var o2 = e3.charCodeAt(r2); + if (o2 >= 97 && o2 <= 122 || o2 >= 65 && o2 <= 90 || o2 >= 48 && o2 <= 57 || o2 === 45 || o2 === 46 || o2 === 95 || o2 === 126 || t2 && o2 === 47) + i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(r2)); else { - n2 === void 0 && (n2 = e3.substr(0, o2)); - var s2 = f[r2]; - s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = o2); + n2 === void 0 && (n2 = e3.substr(0, r2)); + var s2 = f[o2]; + s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = r2); } } return i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2))), n2 !== void 0 ? n2 : e3; @@ -40877,17 +40877,17 @@ ${Object(zn.b)(wi)} } function v(e3, t2) { var n2; - return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, r && (n2 = n2.replace(/\//g, "\\")), n2; + return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, o && (n2 = n2.replace(/\//g, "\\")), n2; } function w(e3, t2) { - var n2 = t2 ? _ : b, i2 = "", o2 = e3.scheme, r2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; - if (o2 && (i2 += o2, i2 += ":"), (r2 || o2 === "file") && (i2 += h, i2 += h), r2) { - var c2 = r2.indexOf("@"); + var n2 = t2 ? _ : b, i2 = "", r2 = e3.scheme, o2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; + if (r2 && (i2 += r2, i2 += ":"), (o2 || r2 === "file") && (i2 += h, i2 += h), o2) { + var c2 = o2.indexOf("@"); if (c2 !== -1) { - var d2 = r2.substr(0, c2); - r2 = r2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; + var d2 = o2.substr(0, c2); + o2 = o2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; } - (c2 = (r2 = r2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(r2, false) : (i2 += n2(r2.substr(0, c2), false), i2 += r2.substr(c2)); + (c2 = (o2 = o2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(o2, false) : (i2 += n2(o2.substr(0, c2), false), i2 += o2.substr(c2)); } if (s2) { if (s2.length >= 3 && s2.charCodeAt(0) === 47 && s2.charCodeAt(2) === 58) @@ -40918,21 +40918,21 @@ ${Object(zn.b)(wi)} n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }); const i = {ctrlCmd: false, alt: false}; - var o; + var r; !function(e2) { e2[e2.NONE = 0] = "NONE", e2[e2.FIRST = 1] = "FIRST", e2[e2.SECOND = 2] = "SECOND", e2[e2.LAST = 3] = "LAST"; - }(o || (o = {})); + }(r || (r = {})); }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return o; - }), n.d(t, "language", function() { return r; + }), n.d(t, "language", function() { + return o; }); - var i = n(95), o = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], onEnterRules: [{beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, afterText: /^\s*\*\/$/, action: {indentAction: i.a.IndentAction.IndentOutdent, appendText: " * "}}, {beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, action: {indentAction: i.a.IndentAction.None, appendText: " * "}}, {beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/, action: {indentAction: i.a.IndentAction.None, appendText: "* "}}, {beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/, action: {indentAction: i.a.IndentAction.None, removeText: 1}}], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "`", close: "`", notIn: ["string", "comment"]}, {open: "/**", close: " */", notIn: ["string"]}], folding: {markers: {start: new RegExp("^\\s*//\\s*#?region\\b"), end: new RegExp("^\\s*//\\s*#?endregion\\b")}}}, r = {defaultToken: "invalid", tokenPostfix: ".ts", keywords: ["abstract", "any", "as", "asserts", "bigint", "boolean", "break", "case", "catch", "class", "continue", "const", "constructor", "debugger", "declare", "default", "delete", "do", "else", "enum", "export", "extends", "false", "finally", "for", "from", "function", "get", "if", "implements", "import", "in", "infer", "instanceof", "interface", "is", "keyof", "let", "module", "namespace", "never", "new", "null", "number", "object", "package", "private", "protected", "public", "readonly", "require", "global", "return", "set", "static", "string", "super", "switch", "symbol", "this", "throw", "true", "try", "type", "typeof", "undefined", "unique", "unknown", "var", "void", "while", "with", "yield", "async", "await", "of"], operators: ["<=", ">=", "==", "!=", "===", "!==", "=>", "+", "-", "**", "*", "/", "%", "++", "--", "<<", "</", ">>", ">>>", "&", "|", "^", "!", "~", "&&", "||", "??", "?", ":", "=", "+=", "-=", "*=", "**=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "|=", "^=", "@"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/, tokenizer: {root: [[/[{}]/, "delimiter.bracket"], {include: "common"}], common: [[/[a-z_$][\w$]*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}], [/[A-Z][\w\$]*/, "type.identifier"], {include: "@whitespace"}, [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {token: "regexp", bracket: "@open", next: "@regexp"}], [/[()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/!(?=([^=]|$))/, "delimiter"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"], [/0[xX](@hexdigits)n?/, "number.hex"], [/0[oO]?(@octaldigits)n?/, "number.octal"], [/0[bB](@binarydigits)n?/, "number.binary"], [/(@digits)n?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string_double"], [/'/, "string", "@string_single"], [/`/, "string", "@string_backtick"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], jsdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], regexp: [[/(\{)(\d+(?:,\d*)?)(\})/, ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]], [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]], [/[()]/, "regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/[^\\\/]/, "regexp"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/(\/)([gimsuy]*)/, [{token: "regexp", bracket: "@close", next: "@pop"}, "keyword.other"]]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, {token: "regexp.escape.control", next: "@pop", bracket: "@close"}]], string_double: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], string_single: [[/[^\\']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, "string", "@pop"]], string_backtick: [[/\$\{/, {token: "delimiter.bracket", next: "@bracketCounting"}], [/[^\\`$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/`/, "string", "@pop"]], bracketCounting: [[/\{/, "delimiter.bracket", "@bracketCounting"], [/\}/, "delimiter.bracket", "@pop"], {include: "common"}]}}; + var i = n(95), r = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], onEnterRules: [{beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, afterText: /^\s*\*\/$/, action: {indentAction: i.a.IndentAction.IndentOutdent, appendText: " * "}}, {beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, action: {indentAction: i.a.IndentAction.None, appendText: " * "}}, {beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/, action: {indentAction: i.a.IndentAction.None, appendText: "* "}}, {beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/, action: {indentAction: i.a.IndentAction.None, removeText: 1}}], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "`", close: "`", notIn: ["string", "comment"]}, {open: "/**", close: " */", notIn: ["string"]}], folding: {markers: {start: new RegExp("^\\s*//\\s*#?region\\b"), end: new RegExp("^\\s*//\\s*#?endregion\\b")}}}, o = {defaultToken: "invalid", tokenPostfix: ".ts", keywords: ["abstract", "any", "as", "asserts", "bigint", "boolean", "break", "case", "catch", "class", "continue", "const", "constructor", "debugger", "declare", "default", "delete", "do", "else", "enum", "export", "extends", "false", "finally", "for", "from", "function", "get", "if", "implements", "import", "in", "infer", "instanceof", "interface", "is", "keyof", "let", "module", "namespace", "never", "new", "null", "number", "object", "package", "private", "protected", "public", "readonly", "require", "global", "return", "set", "static", "string", "super", "switch", "symbol", "this", "throw", "true", "try", "type", "typeof", "undefined", "unique", "unknown", "var", "void", "while", "with", "yield", "async", "await", "of"], operators: ["<=", ">=", "==", "!=", "===", "!==", "=>", "+", "-", "**", "*", "/", "%", "++", "--", "<<", "</", ">>", ">>>", "&", "|", "^", "!", "~", "&&", "||", "??", "?", ":", "=", "+=", "-=", "*=", "**=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "|=", "^=", "@"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/, tokenizer: {root: [[/[{}]/, "delimiter.bracket"], {include: "common"}], common: [[/[a-z_$][\w$]*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}], [/[A-Z][\w\$]*/, "type.identifier"], {include: "@whitespace"}, [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {token: "regexp", bracket: "@open", next: "@regexp"}], [/[()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/!(?=([^=]|$))/, "delimiter"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"], [/0[xX](@hexdigits)n?/, "number.hex"], [/0[oO]?(@octaldigits)n?/, "number.octal"], [/0[bB](@binarydigits)n?/, "number.binary"], [/(@digits)n?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string_double"], [/'/, "string", "@string_single"], [/`/, "string", "@string_backtick"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], jsdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], regexp: [[/(\{)(\d+(?:,\d*)?)(\})/, ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]], [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]], [/[()]/, "regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/[^\\\/]/, "regexp"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/(\/)([gimsuy]*)/, [{token: "regexp", bracket: "@close", next: "@pop"}, "keyword.other"]]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, {token: "regexp.escape.control", next: "@pop", bracket: "@close"}]], string_double: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], string_single: [[/[^\\']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, "string", "@pop"]], string_backtick: [[/\$\{/, {token: "delimiter.bracket", next: "@bracketCounting"}], [/[^\\`$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/`/, "string", "@pop"]], bracketCounting: [[/\{/, "delimiter.bracket", "@bracketCounting"], [/\}/, "delimiter.bracket", "@pop"], {include: "common"}]}}; }, function(e, t, n) { "use strict"; function i(e2) { @@ -40941,16 +40941,16 @@ ${Object(zn.b)(wi)} n.d(t, "b", function() { return i; }), n.d(t, "a", function() { - return o; + return r; }); - const o = {ICodeEditor: "vs.editor.ICodeEditor", IDiffEditor: "vs.editor.IDiffEditor"}; + const r = {ICodeEditor: "vs.editor.ICodeEditor", IDiffEditor: "vs.editor.IDiffEditor"}; }, function(e, t, n) { "use strict"; (function(e2) { n.d(t, "a", function() { return p; }); - var i, o, r, s = (i = function(e3, t2) { + var i, r, o, s = (i = function(e3, t2) { return (i = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e4, t3) { e4.__proto__ = t3; } || function(e4, t3) { @@ -40964,17 +40964,17 @@ ${Object(zn.b)(wi)} i(e3, t2), e3.prototype = t2 === null ? Object.create(t2) : (n2.prototype = t2.prototype, new n2()); }); if (typeof e2 == "object") - r = e2.platform === "win32"; + o = e2.platform === "win32"; else if (typeof navigator == "object") { var a = navigator.userAgent; - r = a.indexOf("Windows") >= 0; + o = a.indexOf("Windows") >= 0; } var l = /^\w[\w\d+.-]*$/, c = /^\//, d = /^\/\//; var h = "/", u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, p = function() { - function e3(e4, t2, n2, i2, o2, r2) { - r2 === void 0 && (r2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { + function e3(e4, t2, n2, i2, r2, o2) { + o2 === void 0 && (o2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { return e5 || t3 ? e5 : "file"; - }(e4, r2), this.authority = t2 || "", this.path = function(e5, t3) { + }(e4, o2), this.authority = t2 || "", this.path = function(e5, t3) { switch (e5) { case "https": case "http": @@ -40982,7 +40982,7 @@ ${Object(zn.b)(wi)} t3 ? t3[0] !== h && (t3 = h + t3) : t3 = h; } return t3; - }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = o2 || "", function(e5, t3) { + }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = r2 || "", function(e5, t3) { if (!e5.scheme && t3) throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "' + e5.authority + '", path: "' + e5.path + '", query: "' + e5.query + '", fragment: "' + e5.fragment + '"}'); if (e5.scheme && !l.test(e5.scheme)) @@ -40994,7 +40994,7 @@ ${Object(zn.b)(wi)} } else if (d.test(e5.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } - }(this, r2)); + }(this, o2)); } return e3.isUri = function(t2) { return t2 instanceof e3 || !!t2 && (typeof t2.authority == "string" && typeof t2.fragment == "string" && typeof t2.path == "string" && typeof t2.query == "string" && typeof t2.scheme == "string" && typeof t2.fsPath == "function" && typeof t2.with == "function" && typeof t2.toString == "function"); @@ -41003,15 +41003,15 @@ ${Object(zn.b)(wi)} }, enumerable: true, configurable: true}), e3.prototype.with = function(e4) { if (!e4) return this; - var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, o2 = e4.query, r2 = e4.fragment; - return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), o2 === void 0 ? o2 = this.query : o2 === null && (o2 = ""), r2 === void 0 ? r2 = this.fragment : r2 === null && (r2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && o2 === this.query && r2 === this.fragment ? this : new g(t2, n2, i2, o2, r2); + var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, r2 = e4.query, o2 = e4.fragment; + return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), r2 === void 0 ? r2 = this.query : r2 === null && (r2 = ""), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && r2 === this.query && o2 === this.fragment ? this : new g(t2, n2, i2, r2, o2); }, e3.parse = function(e4, t2) { t2 === void 0 && (t2 = false); var n2 = u.exec(e4); return n2 ? new g(n2[2] || "", C(n2[4] || ""), C(n2[5] || ""), C(n2[7] || ""), C(n2[9] || ""), t2) : new g("", "", "", "", ""); }, e3.file = function(e4) { var t2 = ""; - if (r && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { + if (o && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { var n2 = e4.indexOf(h, 2); n2 === -1 ? (t2 = e4.substring(2), e4 = h) : (t2 = e4.substring(2, n2), e4 = e4.substring(n2) || h); } @@ -41031,7 +41031,7 @@ ${Object(zn.b)(wi)} } return t2; }, e3; - }(), m = r ? 1 : void 0, g = function(e3) { + }(), m = o ? 1 : void 0, g = function(e3) { function t2() { var t3 = e3 !== null && e3.apply(this, arguments) || this; return t3._formatted = null, t3._fsPath = null, t3; @@ -41044,16 +41044,16 @@ ${Object(zn.b)(wi)} var e4 = {$mid: 1}; return this._fsPath && (e4.fsPath = this._fsPath, e4._sep = m), this._formatted && (e4.external = this._formatted), this.path && (e4.path = this.path), this.scheme && (e4.scheme = this.scheme), this.authority && (e4.authority = this.authority), this.query && (e4.query = this.query), this.fragment && (e4.fragment = this.fragment), e4; }, t2; - }(p), f = ((o = {})[58] = "%3A", o[47] = "%2F", o[63] = "%3F", o[35] = "%23", o[91] = "%5B", o[93] = "%5D", o[64] = "%40", o[33] = "%21", o[36] = "%24", o[38] = "%26", o[39] = "%27", o[40] = "%28", o[41] = "%29", o[42] = "%2A", o[43] = "%2B", o[44] = "%2C", o[59] = "%3B", o[61] = "%3D", o[32] = "%20", o); + }(p), f = ((r = {})[58] = "%3A", r[47] = "%2F", r[63] = "%3F", r[35] = "%23", r[91] = "%5B", r[93] = "%5D", r[64] = "%40", r[33] = "%21", r[36] = "%24", r[38] = "%26", r[39] = "%27", r[40] = "%28", r[41] = "%29", r[42] = "%2A", r[43] = "%2B", r[44] = "%2C", r[59] = "%3B", r[61] = "%3D", r[32] = "%20", r); function b(e3, t2) { - for (var n2 = void 0, i2 = -1, o2 = 0; o2 < e3.length; o2++) { - var r2 = e3.charCodeAt(o2); - if (r2 >= 97 && r2 <= 122 || r2 >= 65 && r2 <= 90 || r2 >= 48 && r2 <= 57 || r2 === 45 || r2 === 46 || r2 === 95 || r2 === 126 || t2 && r2 === 47) - i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(o2)); + for (var n2 = void 0, i2 = -1, r2 = 0; r2 < e3.length; r2++) { + var o2 = e3.charCodeAt(r2); + if (o2 >= 97 && o2 <= 122 || o2 >= 65 && o2 <= 90 || o2 >= 48 && o2 <= 57 || o2 === 45 || o2 === 46 || o2 === 95 || o2 === 126 || t2 && o2 === 47) + i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(r2)); else { - n2 === void 0 && (n2 = e3.substr(0, o2)); - var s2 = f[r2]; - s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = o2); + n2 === void 0 && (n2 = e3.substr(0, r2)); + var s2 = f[o2]; + s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = r2); } } return i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2))), n2 !== void 0 ? n2 : e3; @@ -41067,17 +41067,17 @@ ${Object(zn.b)(wi)} } function v(e3, t2) { var n2; - return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, r && (n2 = n2.replace(/\//g, "\\")), n2; + return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, o && (n2 = n2.replace(/\//g, "\\")), n2; } function w(e3, t2) { - var n2 = t2 ? _ : b, i2 = "", o2 = e3.scheme, r2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; - if (o2 && (i2 += o2, i2 += ":"), (r2 || o2 === "file") && (i2 += h, i2 += h), r2) { - var c2 = r2.indexOf("@"); + var n2 = t2 ? _ : b, i2 = "", r2 = e3.scheme, o2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; + if (r2 && (i2 += r2, i2 += ":"), (o2 || r2 === "file") && (i2 += h, i2 += h), o2) { + var c2 = o2.indexOf("@"); if (c2 !== -1) { - var d2 = r2.substr(0, c2); - r2 = r2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; + var d2 = o2.substr(0, c2); + o2 = o2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; } - (c2 = (r2 = r2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(r2, false) : (i2 += n2(r2.substr(0, c2), false), i2 += r2.substr(c2)); + (c2 = (o2 = o2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(o2, false) : (i2 += n2(o2.substr(0, c2), false), i2 += o2.substr(c2)); } if (s2) { if (s2.length >= 3 && s2.charCodeAt(0) === 47 && s2.charCodeAt(2) === 58) @@ -41119,10 +41119,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return d; }); - var i = n(0), o = n(6), r = n(12), s = n(39), a = n(56); + var i = n(0), r = n(6), o = n(12), s = n(39), a = n(56); const l = new class { constructor() { - this._onDidChangeLanguages = new o.a(), this.onDidChangeLanguages = this._onDidChangeLanguages.event, this._languages = [], this._dynamicLanguages = []; + this._onDidChangeLanguages = new r.a(), this.onDidChangeLanguages = this._onDidChangeLanguages.event, this._languages = [], this._dynamicLanguages = []; } registerLanguage(e2) { return this._languages.push(e2), this._onDidChangeLanguages.fire(void 0), {dispose: () => { @@ -41136,14 +41136,14 @@ ${Object(zn.b)(wi)} } }(); a.a.add("editor.modesRegistry", l); - const c = "plaintext", d = new r.r(c, 1); + const c = "plaintext", d = new o.r(c, 1); l.registerLanguage({id: c, extensions: [".txt"], aliases: [i.a("plainText.alias", "Plain Text"), "text"], mimetypes: ["text/plain"]}), s.a.register(d, {brackets: [["(", ")"], ["[", "]"], ["{", "}"]], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], folding: {offSide: true}}); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return i; }), n.d(t, "b", function() { - return o; + return r; }); class i { constructor(e2) { @@ -41153,7 +41153,7 @@ ${Object(zn.b)(wi)} return this._prefix + ++this._lastId; } } - const o = new i("id#"); + const r = new i("id#"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -41163,7 +41163,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return l; }); - var i = n(18), o = n(23), r = n(14); + var i = n(18), r = n(23), o = n(14); const s = Object(i.c)("IWorkspaceEditService"); class a { constructor(e2) { @@ -41171,11 +41171,11 @@ ${Object(zn.b)(wi)} } static convert(e2) { return e2.edits.map((e3) => { - if (t2 = e3, Object(r.i)(t2) && o.a.isUri(t2.resource) && Object(r.i)(t2.edit)) + if (t2 = e3, Object(o.i)(t2) && r.a.isUri(t2.resource) && Object(o.i)(t2.edit)) return new l(e3.resource, e3.edit, e3.modelVersionId, e3.metadata); var t2; if (function(e4) { - return Object(r.i)(e4) && (Boolean(e4.newUri) || Boolean(e4.oldUri)); + return Object(o.i)(e4) && (Boolean(e4.newUri) || Boolean(e4.oldUri)); }(e3)) return new c(e3.oldUri, e3.newUri, e3.options, e3.metadata); throw new Error("Unsupported edit"); @@ -41217,13 +41217,13 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(18); - const o = Object(i.c)("undoRedoService"); - class r { + const r = Object(i.c)("undoRedoService"); + class o { constructor(e2, t2) { this.resource = e2, this.elements = t2; } @@ -41231,20 +41231,20 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }), n.d(t, "c", function() { return s; }), n.d(t, "b", function() { return a; }); - var i = n(71), o = n(8); - const r = "$("; + var i = n(71), r = n(8); + const o = "$("; function s(e2) { - const t2 = e2.indexOf(r); + const t2 = e2.indexOf(o); return t2 === -1 ? {text: e2} : function(e3, t3) { const n2 = []; let i2 = ""; - function o2(e4) { + function r2(e4) { if (e4) { i2 += e4; for (const t4 of e4) @@ -41253,24 +41253,24 @@ ${Object(zn.b)(wi)} } let s2, a2, l = -1, c = "", d = 0, h = t3; const u = e3.length; - o2(e3.substr(0, t3)); + r2(e3.substr(0, t3)); for (; h < u; ) { - if (s2 = e3[h], a2 = e3[h + 1], s2 === r[0] && a2 === r[1]) - l = h, o2(c), c = r, h++; + if (s2 = e3[h], a2 = e3[h + 1], s2 === o[0] && a2 === o[1]) + l = h, r2(c), c = o, h++; else if (s2 === ")" && l !== -1) { d += h - l + 1, l = -1, c = ""; } else - l !== -1 ? /^[a-z0-9\-]$/i.test(s2) ? c += s2 : (o2(c), l = -1, c = "") : o2(s2); + l !== -1 ? /^[a-z0-9\-]$/i.test(s2) ? c += s2 : (r2(c), l = -1, c = "") : r2(s2); h++; } - return o2(c), {text: i2, codiconOffsets: n2}; + return r2(c), {text: i2, codiconOffsets: n2}; }(e2, t2); } function a(e2, t2, n2 = false) { - const {text: r2, codiconOffsets: s2} = t2; + const {text: o2, codiconOffsets: s2} = t2; if (!s2 || s2.length === 0) - return Object(i.g)(e2, r2, n2); - const a2 = Object(o.K)(r2, " "), l = r2.length - a2.length, c = Object(i.g)(e2, a2, n2); + return Object(i.g)(e2, o2, n2); + const a2 = Object(r.K)(o2, " "), l = o2.length - a2.length, c = Object(i.g)(e2, a2, n2); if (c) for (const e3 of c) { const t3 = s2[e3.start + l] + l; @@ -41281,23 +41281,23 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); var i = n(18); - const o = Object(i.c)("textResourceConfigurationService"), r = Object(i.c)("textResourcePropertiesService"); + const r = Object(i.c)("textResourceConfigurationService"), o = Object(i.c)("textResourcePropertiesService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return u; }); n(246); - var i = n(2), o = n(11), r = n(14), s = n(61), a = n(69), l = n(6), c = n(1), d = n(44); + var i = n(2), r = n(11), o = n(14), s = n(61), a = n(69), l = n(6), c = n(1), d = n(44); const h = new l.a(); class u extends i.a { constructor(e2, t2, n2) { - super(), this._state = 3, this._onDidEnablementChange = this._register(new l.a()), this.onDidEnablementChange = this._onDidEnablementChange.event, this._onDidStart = this._register(new l.a()), this.onDidStart = this._onDidStart.event, this._onDidChange = this._register(new l.a()), this.onDidChange = this._onDidChange.event, this._onDidReset = this._register(new l.a()), this.onDidReset = this._onDidReset.event, this._onDidEnd = this._register(new l.a()), this.onDidEnd = this._onDidEnd.event, this.linkedSash = void 0, this.orthogonalStartSashDisposables = this._register(new i.b()), this.orthogonalEndSashDisposables = this._register(new i.b()), this.el = Object(c.p)(e2, Object(c.a)(".monaco-sash")), o.f && Object(c.e)(this.el, "mac"), this._register(Object(d.a)(this.el, "mousedown")(this.onMouseDown, this)), this._register(Object(d.a)(this.el, "dblclick")(this.onMouseDoubleClick, this)), this._register(s.b.addTarget(this.el)), this._register(Object(d.a)(this.el, s.a.Start)(this.onTouchStart, this)), typeof n2.size == "number" ? (this.size = n2.size, n2.orientation === 0 ? this.el.style.width = this.size + "px" : this.el.style.height = this.size + "px") : (this.size = 4, this._register(h.event((e3) => { + super(), this._state = 3, this._onDidEnablementChange = this._register(new l.a()), this.onDidEnablementChange = this._onDidEnablementChange.event, this._onDidStart = this._register(new l.a()), this.onDidStart = this._onDidStart.event, this._onDidChange = this._register(new l.a()), this.onDidChange = this._onDidChange.event, this._onDidReset = this._register(new l.a()), this.onDidReset = this._onDidReset.event, this._onDidEnd = this._register(new l.a()), this.onDidEnd = this._onDidEnd.event, this.linkedSash = void 0, this.orthogonalStartSashDisposables = this._register(new i.b()), this.orthogonalEndSashDisposables = this._register(new i.b()), this.el = Object(c.p)(e2, Object(c.a)(".monaco-sash")), r.f && Object(c.e)(this.el, "mac"), this._register(Object(d.a)(this.el, "mousedown")(this.onMouseDown, this)), this._register(Object(d.a)(this.el, "dblclick")(this.onMouseDoubleClick, this)), this._register(s.b.addTarget(this.el)), this._register(Object(d.a)(this.el, s.a.Start)(this.onTouchStart, this)), typeof n2.size == "number" ? (this.size = n2.size, n2.orientation === 0 ? this.el.style.width = this.size + "px" : this.el.style.height = this.size + "px") : (this.size = 4, this._register(h.event((e3) => { this.size = e3, this.layout(); }))), this.hidden = false, this.layoutProvider = t2, this.orthogonalStartSash = n2.orthogonalStartSash, this.orthogonalEndSash = n2.orthogonalEndSash, this.orientation = n2.orientation || 0, this.orientation === 1 ? (Object(c.e)(this.el, "horizontal"), Object(c.Q)(this.el, "vertical")) : (Object(c.Q)(this.el, "horizontal"), Object(c.e)(this.el, "vertical")), Object(c.ab)(this.el, "debug", false), this.layout(); } @@ -41331,11 +41331,11 @@ ${Object(zn.b)(wi)} const n2 = [...Object(c.D)("iframe"), ...Object(c.D)("webview")]; for (const e3 of n2) e3.style.pointerEvents = "none"; - const r2 = new a.a(e2), s2 = r2.posx, l2 = r2.posy, h2 = r2.altKey, u2 = {startX: s2, currentX: s2, startY: l2, currentY: l2, altKey: h2}; + const o2 = new a.a(e2), s2 = o2.posx, l2 = o2.posy, h2 = o2.altKey, u2 = {startX: s2, currentX: s2, startY: l2, currentY: l2, altKey: h2}; Object(c.e)(this.el, "active"), this._onDidStart.fire(u2); const p = Object(c.v)(this.el), m = () => { let e3 = ""; - e3 = t2 ? "all-scroll" : this.orientation === 1 ? this.state === 1 ? "s-resize" : this.state === 2 ? "n-resize" : o.f ? "row-resize" : "ns-resize" : this.state === 1 ? "e-resize" : this.state === 2 ? "w-resize" : o.f ? "col-resize" : "ew-resize", p.innerHTML = `* { cursor: ${e3} !important; }`; + e3 = t2 ? "all-scroll" : this.orientation === 1 ? this.state === 1 ? "s-resize" : this.state === 2 ? "n-resize" : r.f ? "row-resize" : "ns-resize" : this.state === 1 ? "e-resize" : this.state === 2 ? "w-resize" : r.f ? "col-resize" : "ew-resize", p.innerHTML = `* { cursor: ${e3} !important; }`; }, g = new i.b(); m(), t2 || this.onDidEnablementChange(m, null, g); Object(d.a)(window, "mousemove")((e3) => { @@ -41354,9 +41354,9 @@ ${Object(zn.b)(wi)} } onTouchStart(e2) { c.b.stop(e2); - const t2 = [], n2 = e2.pageX, o2 = e2.pageY, a2 = e2.altKey; - this._onDidStart.fire({startX: n2, currentX: n2, startY: o2, currentY: o2, altKey: a2}), t2.push(Object(c.i)(this.el, s.a.Change, (e3) => { - r.h(e3.pageX) && r.h(e3.pageY) && this._onDidChange.fire({startX: n2, currentX: e3.pageX, startY: o2, currentY: e3.pageY, altKey: a2}); + const t2 = [], n2 = e2.pageX, r2 = e2.pageY, a2 = e2.altKey; + this._onDidStart.fire({startX: n2, currentX: n2, startY: r2, currentY: r2, altKey: a2}), t2.push(Object(c.i)(this.el, s.a.Change, (e3) => { + o.h(e3.pageX) && o.h(e3.pageY) && this._onDidChange.fire({startX: n2, currentX: e3.pageX, startY: r2, currentY: e3.pageY, altKey: a2}); })), t2.push(Object(c.i)(this.el, s.a.End, (e3) => { this._onDidEnd.fire(), Object(i.f)(t2); })); @@ -41399,24 +41399,24 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); n(251), n(255), n(257); var i = n(17); - const o = new class { + const r = new class { constructor() { this.onDidChange = i.c.onDidRegister; } getCSS() { const e2 = []; for (let t2 of i.c.all) - e2.push(r(t2)); + e2.push(o(t2)); return e2.join("\n"); } }(); - function r(e2) { + function o(e2) { let t2 = e2.definition; for (; t2 instanceof i.a; ) t2 = t2.definition; @@ -41425,12 +41425,12 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }), n.d(t, "b", function() { return a; }); var i = n(8); - class o { + class r { constructor(e2, t2, n2, i2) { this.startColumn = e2, this.endColumn = t2, this.className = n2, this.type = i2; } @@ -41442,14 +41442,14 @@ ${Object(zn.b)(wi)} if (n2 !== t2.length) return false; for (let i2 = 0; i2 < n2; i2++) - if (!o._equals(e2[i2], t2[i2])) + if (!r._equals(e2[i2], t2[i2])) return false; return true; } static filter(e2, t2, n2, i2) { if (e2.length === 0) return []; - let r2 = [], s2 = 0; + let o2 = [], s2 = 0; for (let a2 = 0, l = e2.length; a2 < l; a2++) { const l2 = e2[a2], c = l2.range; if (c.endLineNumber < t2 || c.startLineNumber > t2) @@ -41457,9 +41457,9 @@ ${Object(zn.b)(wi)} if (c.isEmpty() && (l2.type === 0 || l2.type === 3)) continue; const d = c.startLineNumber === t2 ? c.startColumn : n2, h = c.endLineNumber === t2 ? c.endColumn : i2; - r2[s2++] = new o(d, h, l2.inlineClassName, l2.type); + o2[s2++] = new r(d, h, l2.inlineClassName, l2.type); } - return r2; + return o2; } static _typeCompare(e2, t2) { const n2 = [2, 0, 1, 3]; @@ -41468,7 +41468,7 @@ ${Object(zn.b)(wi)} static compare(e2, t2) { if (e2.startColumn === t2.startColumn) { if (e2.endColumn === t2.endColumn) { - const n2 = o._typeCompare(e2.type, t2.type); + const n2 = r._typeCompare(e2.type, t2.type); return n2 === 0 ? e2.className < t2.className ? -1 : e2.className > t2.className ? 1 : 0 : n2; } return e2.endColumn - t2.endColumn; @@ -41476,7 +41476,7 @@ ${Object(zn.b)(wi)} return e2.startColumn - t2.startColumn; } } - class r { + class o { constructor(e2, t2, n2, i2) { this.startOffset = e2, this.endOffset = t2, this.className = n2, this.metadata = i2; } @@ -41496,9 +41496,9 @@ ${Object(zn.b)(wi)} let e3 = 0; for (; e3 + 1 < this.count && this.stopOffsets[e3] === this.stopOffsets[e3 + 1]; ) e3++; - n2.push(new r(t2, this.stopOffsets[e3], this.classNames.join(" "), s._metadata(this.metadata))), t2 = this.stopOffsets[e3] + 1, this.stopOffsets.splice(0, e3 + 1), this.classNames.splice(0, e3 + 1), this.metadata.splice(0, e3 + 1), this.count -= e3 + 1; + n2.push(new o(t2, this.stopOffsets[e3], this.classNames.join(" "), s._metadata(this.metadata))), t2 = this.stopOffsets[e3] + 1, this.stopOffsets.splice(0, e3 + 1), this.classNames.splice(0, e3 + 1), this.metadata.splice(0, e3 + 1), this.count -= e3 + 1; } - return this.count > 0 && t2 < e2 && (n2.push(new r(t2, e2 - 1, this.classNames.join(" "), s._metadata(this.metadata))), t2 = e2), t2; + return this.count > 0 && t2 < e2 && (n2.push(new o(t2, e2 - 1, this.classNames.join(" "), s._metadata(this.metadata))), t2 = e2), t2; } insert(e2, t2, n2) { if (this.count === 0 || this.stopOffsets[this.count - 1] <= e2) @@ -41517,8 +41517,8 @@ ${Object(zn.b)(wi)} if (t2.length === 0) return []; let n2 = []; - const o2 = new s(); - let r2 = 0; + const r2 = new s(); + let o2 = 0; for (let s2 = 0, a2 = t2.length; s2 < a2; s2++) { const a3 = t2[s2]; let l = a3.startColumn, c = a3.endColumn; @@ -41532,9 +41532,9 @@ ${Object(zn.b)(wi)} i.F(t3) && c--; } const u = l - 1, p = c - 2; - r2 = o2.consumeLowerThan(u, r2, n2), o2.count === 0 && (r2 = u), o2.insert(p, d, h); + o2 = r2.consumeLowerThan(u, o2, n2), r2.count === 0 && (o2 = u), r2.insert(p, d, h); } - return o2.consumeLowerThan(1073741824, r2, n2), n2; + return r2.consumeLowerThan(1073741824, o2, n2), n2; } } }, function(e, t, n) { @@ -41542,7 +41542,7 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return s; }); - var i = n(46), o = n(17), r = n(8); + var i = n(46), r = n(17), o = n(8); class s { constructor(e2, t2) { this.supportCodicons = t2, this.text = "", this.title = "", this.highlights = [], this.didEverRender = false, this.domNode = document.createElement("span"), this.domNode.className = "monaco-highlighted-label", e2.appendChild(this.domNode); @@ -41550,8 +41550,8 @@ ${Object(zn.b)(wi)} get element() { return this.domNode; } - set(e2, t2 = [], n2 = "", o2) { - e2 || (e2 = ""), o2 && (e2 = s.escapeNewLines(e2, t2)), this.didEverRender && this.text === e2 && this.title === n2 && i.e(this.highlights, t2) || (Array.isArray(t2) || (t2 = []), this.text = e2, this.title = n2, this.highlights = t2, this.render()); + set(e2, t2 = [], n2 = "", r2) { + e2 || (e2 = ""), r2 && (e2 = s.escapeNewLines(e2, t2)), this.didEverRender && this.text === e2 && this.title === n2 && i.e(this.highlights, t2) || (Array.isArray(t2) || (t2 = []), this.text = e2, this.title = n2, this.highlights = t2, this.render()); } render() { let e2 = "", t2 = 0; @@ -41561,25 +41561,25 @@ ${Object(zn.b)(wi)} if (t2 < n2.start) { e2 += "<span>"; const i3 = this.text.substring(t2, n2.start); - e2 += this.supportCodicons ? Object(o.f)(Object(r.u)(i3)) : Object(r.u)(i3), e2 += "</span>", t2 = n2.end; + e2 += this.supportCodicons ? Object(r.f)(Object(o.u)(i3)) : Object(o.u)(i3), e2 += "</span>", t2 = n2.end; } n2.extraClasses ? e2 += `<span class="highlight ${n2.extraClasses}">` : e2 += '<span class="highlight">'; const i2 = this.text.substring(n2.start, n2.end); - e2 += this.supportCodicons ? Object(o.f)(Object(r.u)(i2)) : Object(r.u)(i2), e2 += "</span>", t2 = n2.end; + e2 += this.supportCodicons ? Object(r.f)(Object(o.u)(i2)) : Object(o.u)(i2), e2 += "</span>", t2 = n2.end; } if (t2 < this.text.length) { e2 += "<span>"; const n2 = this.text.substring(t2); - e2 += this.supportCodicons ? Object(o.f)(Object(r.u)(n2)) : Object(r.u)(n2), e2 += "</span>"; + e2 += this.supportCodicons ? Object(r.f)(Object(o.u)(n2)) : Object(o.u)(n2), e2 += "</span>"; } this.domNode.innerHTML = e2, this.title ? this.domNode.title = this.title : this.domNode.removeAttribute("title"), this.didEverRender = true; } static escapeNewLines(e2, t2) { let n2 = 0, i2 = 0; - return e2.replace(/\r\n|\r|\n/g, (e3, o2) => { - i2 = e3 === "\r\n" ? -1 : 0, o2 += n2; + return e2.replace(/\r\n|\r|\n/g, (e3, r2) => { + i2 = e3 === "\r\n" ? -1 : 0, r2 += n2; for (const e4 of t2) - e4.end <= o2 || (e4.start >= o2 && (e4.start += i2), e4.end >= o2 && (e4.end += i2)); + e4.end <= r2 || (e4.start >= r2 && (e4.start += i2), e4.end >= r2 && (e4.end += i2)); return n2 += i2, "\u23CE"; }); } @@ -41587,16 +41587,16 @@ ${Object(zn.b)(wi)} }, , function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); var i = n(11); - const o = i.b.performance && typeof i.b.performance.now == "function"; - class r { + const r = i.b.performance && typeof i.b.performance.now == "function"; + class o { constructor(e2) { - this._highResolution = o && e2, this._startTime = this._now(), this._stopTime = -1; + this._highResolution = r && e2, this._startTime = this._now(), this._stopTime = -1; } static create(e2 = true) { - return new r(e2); + return new o(e2); } stop() { this._stopTime = this._now(); @@ -41611,10 +41611,10 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("labelService"); + const r = Object(i.c)("labelService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { @@ -41622,19 +41622,19 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return a; }); - var i = n(11), o = n(135); - const r = i.f ? 1.5 : 1.35; + var i = n(11), r = n(135); + const o = i.f ? 1.5 : 1.35; class s { constructor(e2) { this.zoomLevel = e2.zoomLevel, this.fontFamily = String(e2.fontFamily), this.fontWeight = String(e2.fontWeight), this.fontSize = e2.fontSize, this.fontFeatureSettings = e2.fontFeatureSettings, this.lineHeight = 0 | e2.lineHeight, this.letterSpacing = e2.letterSpacing; } static createFromValidatedSettings(e2, t2, n2) { - const i2 = e2.get(35), o2 = e2.get(39), r2 = e2.get(38), a2 = e2.get(37), l = e2.get(51), c = e2.get(48); - return s._create(i2, o2, r2, a2, l, c, t2, n2); + const i2 = e2.get(35), r2 = e2.get(39), o2 = e2.get(38), a2 = e2.get(37), l = e2.get(51), c = e2.get(48); + return s._create(i2, r2, o2, a2, l, c, t2, n2); } static _create(e2, t2, n2, i2, a2, l, c, d) { - a2 === 0 ? a2 = Math.round(r * n2) : a2 < 8 && (a2 = 8); - const h = 1 + (d ? 0 : 0.1 * o.a.getZoomLevel()); + a2 === 0 ? a2 = Math.round(o * n2) : a2 < 8 && (a2 = 8); + const h = 1 + (d ? 0 : 0.1 * r.a.getZoomLevel()); return new s({zoomLevel: c, fontFamily: e2, fontWeight: t2, fontSize: n2 *= h, fontFeatureSettings: i2, lineHeight: a2 *= h, letterSpacing: l}); } getId() { @@ -41663,10 +41663,10 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return L; }); - var i = n(0), o = n(6), r = n(2), s = n(46), a = n(15), l = n(26), c = n(135), d = n(160), h = n(128), u = n(56), p = n(189); + var i = n(0), r = n(6), o = n(2), s = n(46), a = n(16), l = n(26), c = n(135), d = n(160), h = n(128), u = n(56), p = n(189); const m = new class { constructor() { - this._tabFocus = false, this._onDidChangeTabFocus = new o.a(), this.onDidChangeTabFocus = this._onDidChangeTabFocus.event; + this._tabFocus = false, this._onDidChangeTabFocus = new r.a(), this.onDidChangeTabFocus = this._onDidChangeTabFocus.event; } getTabFocusMode() { return this._tabFocus; @@ -41734,9 +41734,9 @@ ${Object(zn.b)(wi)} static checkEquals(e2, t2) { const n2 = []; let i2 = false; - for (const o2 of l.k) { - const r2 = !_._deepEquals(e2._read(o2.id), t2._read(o2.id)); - n2[o2.id] = r2, r2 && (i2 = true); + for (const r2 of l.k) { + const o2 = !_._deepEquals(e2._read(r2.id), t2._read(r2.id)); + n2[r2.id] = o2, o2 && (i2 = true); } return i2 ? new l.b(n2) : null; } @@ -41750,10 +41750,10 @@ ${Object(zn.b)(wi)} n2 === true ? e3.lineNumbers = "on" : n2 === false && (e3.lineNumbers = "off"), e3.autoClosingBrackets === false && (e3.autoClosingBrackets = "never", e3.autoClosingQuotes = "never", e3.autoSurround = "never"), e3.cursorBlinking === "visible" && (e3.cursorBlinking = "solid"); const i2 = e3.renderWhitespace; i2 === true ? e3.renderWhitespace = "boundary" : i2 === false && (e3.renderWhitespace = "none"); - const o2 = e3.renderLineHighlight; - o2 === true ? e3.renderLineHighlight = "line" : o2 === false && (e3.renderLineHighlight = "none"); - const r2 = e3.acceptSuggestionOnEnter; - r2 === true ? e3.acceptSuggestionOnEnter = "on" : r2 === false && (e3.acceptSuggestionOnEnter = "off"); + const r2 = e3.renderLineHighlight; + r2 === true ? e3.renderLineHighlight = "line" : r2 === false && (e3.renderLineHighlight = "none"); + const o2 = e3.acceptSuggestionOnEnter; + o2 === true ? e3.acceptSuggestionOnEnter = "on" : o2 === false && (e3.acceptSuggestionOnEnter = "off"); const s2 = e3.tabCompletion; s2 === false ? e3.tabCompletion = "off" : s2 === true && (e3.tabCompletion = "onlySnippets"); const a2 = e3.suggest; @@ -41774,9 +41774,9 @@ ${Object(zn.b)(wi)} h2 === true ? e3.matchBrackets = "always" : h2 === false && (e3.matchBrackets = "never"); }(t2), t2; } - class w extends r.a { + class w extends o.a { constructor(e2, t2) { - super(), this._onDidChange = this._register(new o.a()), this.onDidChange = this._onDidChange.event, this._onDidChangeFast = this._register(new o.a()), this.onDidChangeFast = this._onDidChangeFast.event, this.isSimpleWidget = e2, this._isDominatedByLongLines = false, this._computeOptionsMemory = new l.a(), this._viewLineCount = 1, this._lineNumbersDigitCount = 1, this._rawOptions = v(t2), this._readOptions = _.readOptions(this._rawOptions), this._validatedOptions = _.validateOptions(this._readOptions), this._register(c.a.onDidChangeZoomLevel((e3) => this._recomputeOptions())), this._register(m.onDidChangeTabFocus((e3) => this._recomputeOptions())); + super(), this._onDidChange = this._register(new r.a()), this.onDidChange = this._onDidChange.event, this._onDidChangeFast = this._register(new r.a()), this.onDidChangeFast = this._onDidChangeFast.event, this.isSimpleWidget = e2, this._isDominatedByLongLines = false, this._computeOptionsMemory = new l.a(), this._viewLineCount = 1, this._lineNumbersDigitCount = 1, this._rawOptions = v(t2), this._readOptions = _.readOptions(this._rawOptions), this._validatedOptions = _.validateOptions(this._readOptions), this._register(c.a.onDidChangeZoomLevel((e3) => this._recomputeOptions())), this._register(m.onDidChangeTabFocus((e3) => this._recomputeOptions())); } observeReferenceElement(e2) { } @@ -41803,16 +41803,16 @@ ${Object(zn.b)(wi)} static _subsetEquals(e2, t2) { for (const n2 in t2) if (g.call(t2, n2)) { - const i2 = t2[n2], o2 = e2[n2]; - if (o2 === i2) + const i2 = t2[n2], r2 = e2[n2]; + if (r2 === i2) continue; - if (Array.isArray(o2) && Array.isArray(i2)) { - if (!a.g(o2, i2)) + if (Array.isArray(r2) && Array.isArray(i2)) { + if (!a.g(r2, i2)) return false; continue; } - if (o2 && typeof o2 == "object" && i2 && typeof i2 == "object") { - if (!this._subsetEquals(o2, i2)) + if (r2 && typeof r2 == "object" && i2 && typeof i2 == "object") { + if (!this._subsetEquals(r2, i2)) return false; continue; } @@ -41874,7 +41874,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return T; }); - var i = n(46), o = n(2), r = n(61), s = n(1), a = n(6), l = n(44), c = n(105), d = n(170), h = n(99); + var i = n(46), r = n(2), o = n(61), s = n(1), a = n(6), l = n(44), c = n(105), d = n(170), h = n(99); function u(e2, t2) { const n2 = []; for (let i2 of t2) { @@ -41895,18 +41895,18 @@ ${Object(zn.b)(wi)} this.groups = [], this._size = 0; } splice(e2, t2, n2 = []) { - const i2 = n2.length - t2, o2 = u({start: 0, end: e2}, this.groups), r2 = u({start: e2 + t2, end: Number.POSITIVE_INFINITY}, this.groups).map((e3) => ({range: p(e3.range, i2), size: e3.size})), s2 = n2.map((t3, n3) => ({range: {start: e2 + n3, end: e2 + n3 + 1}, size: t3.size})); + const i2 = n2.length - t2, r2 = u({start: 0, end: e2}, this.groups), o2 = u({start: e2 + t2, end: Number.POSITIVE_INFINITY}, this.groups).map((e3) => ({range: p(e3.range, i2), size: e3.size})), s2 = n2.map((t3, n3) => ({range: {start: e2 + n3, end: e2 + n3 + 1}, size: t3.size})); this.groups = function(...e3) { return function(e4) { const t3 = []; let n3 = null; for (let i3 of e4) { - const e5 = i3.range.start, o3 = i3.range.end, r3 = i3.size; - n3 && r3 === n3.size ? n3.range.end = o3 : (n3 = {range: {start: e5, end: o3}, size: r3}, t3.push(n3)); + const e5 = i3.range.start, r3 = i3.range.end, o3 = i3.size; + n3 && o3 === n3.size ? n3.range.end = r3 : (n3 = {range: {start: e5, end: r3}, size: o3}, t3.push(n3)); } return t3; }(e3.reduce((e4, t3) => e4.concat(t3), [])); - }(o2, s2, r2), this._size = this.groups.reduce((e3, t3) => e3 + t3.size * (t3.range.end - t3.range.start), 0); + }(r2, s2, o2), this._size = this.groups.reduce((e3, t3) => e3 + t3.size * (t3.range.end - t3.range.start), 0); } get count() { const e2 = this.groups.length; @@ -41920,10 +41920,10 @@ ${Object(zn.b)(wi)} return -1; let t2 = 0, n2 = 0; for (let i2 of this.groups) { - const o2 = i2.range.end - i2.range.start, r2 = n2 + o2 * i2.size; - if (e2 < r2) + const r2 = i2.range.end - i2.range.start, o2 = n2 + r2 * i2.size; + if (e2 < o2) return t2 + Math.floor((e2 - n2) / i2.size); - t2 += o2, n2 = r2; + t2 += r2, n2 = o2; } return t2; } @@ -41935,10 +41935,10 @@ ${Object(zn.b)(wi)} return -1; let t2 = 0, n2 = 0; for (let i2 of this.groups) { - const o2 = i2.range.end - i2.range.start, r2 = n2 + o2; - if (e2 < r2) + const r2 = i2.range.end - i2.range.start, o2 = n2 + r2; + if (e2 < o2) return t2 + (e2 - n2) * i2.size; - t2 += o2 * i2.size, n2 = r2; + t2 += r2 * i2.size, n2 = o2; } return -1; } @@ -41986,14 +41986,14 @@ ${Object(zn.b)(wi)} return t2; } } - var f = n(98), b = n(15), _ = n(125), v = n(20), w = n(34), y = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var f = n(98), b = n(16), _ = n(125), v = n(20), w = n(34), y = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }; const C = {useShadows: true, verticalScrollMode: 1, setRowLineHeight: true, setRowHeight: true, supportDynamicHeights: false, dnd: {getDragElements: (e2) => [e2], getDragURI: () => null, onDragStart() { }, onDragOver: () => false, drop() { @@ -42043,13 +42043,13 @@ ${Object(zn.b)(wi)} } class T { constructor(e2, t2, n2, h2 = C) { - if (this.virtualDelegate = t2, this.domId = "list_id_" + ++T.InstanceCount, this.renderers = new Map(), this.renderWidth = 0, this._scrollHeight = 0, this.scrollableElementUpdateDisposable = null, this.scrollableElementWidthDelayer = new v.a(50), this.splicing = false, this.dragOverAnimationStopDisposable = o.a.None, this.dragOverMouseY = 0, this.canDrop = false, this.currentDragFeedbackDisposable = o.a.None, this.onDragLeaveTimeout = o.a.None, this.disposables = new o.b(), this._onDidChangeContentHeight = new a.a(), this._horizontalScrolling = false, h2.horizontalScrolling && h2.supportDynamicHeights) + if (this.virtualDelegate = t2, this.domId = "list_id_" + ++T.InstanceCount, this.renderers = new Map(), this.renderWidth = 0, this._scrollHeight = 0, this.scrollableElementUpdateDisposable = null, this.scrollableElementWidthDelayer = new v.a(50), this.splicing = false, this.dragOverAnimationStopDisposable = r.a.None, this.dragOverMouseY = 0, this.canDrop = false, this.currentDragFeedbackDisposable = r.a.None, this.onDragLeaveTimeout = r.a.None, this.disposables = new r.b(), this._onDidChangeContentHeight = new a.a(), this._horizontalScrolling = false, h2.horizontalScrolling && h2.supportDynamicHeights) throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously"); this.items = [], this.itemId = 0, this.rangeMap = new m(); for (const e3 of n2) this.renderers.set(e3.templateId, e3); this.cache = this.disposables.add(new g(this.renderers)), this.lastRenderTop = 0, this.lastRenderHeight = 0, this.domNode = document.createElement("div"), this.domNode.className = "monaco-list", s.e(this.domNode, this.domId), this.domNode.tabIndex = 0, s.ab(this.domNode, "mouse-support", typeof h2.mouseSupport != "boolean" || h2.mouseSupport), this._horizontalScrolling = Object(i.f)(h2, (e3) => e3.horizontalScrolling, C.horizontalScrolling), s.ab(this.domNode, "horizontal-scrolling", this._horizontalScrolling), this.additionalScrollHeight = h2.additionalScrollHeight === void 0 ? 0 : h2.additionalScrollHeight, this.accessibilityProvider = new E(h2.accessibilityProvider), this.rowsContainer = document.createElement("div"), this.rowsContainer.className = "monaco-list-rows"; - Object(i.f)(h2, (e3) => e3.transformOptimization, C.transformOptimization) && (this.rowsContainer.style.transform = "translate3d(0px, 0px, 0px)"), this.disposables.add(r.b.addTarget(this.rowsContainer)), this.scrollable = new d.a(Object(i.f)(h2, (e3) => e3.smoothScrolling, false) ? 125 : 0, (e3) => s.Y(e3)), this.scrollableElement = this.disposables.add(new c.c(this.rowsContainer, {alwaysConsumeMouseWheel: true, horizontal: 1, vertical: Object(i.f)(h2, (e3) => e3.verticalScrollMode, C.verticalScrollMode), useShadows: Object(i.f)(h2, (e3) => e3.useShadows, C.useShadows)}, this.scrollable)), this.domNode.appendChild(this.scrollableElement.getDomNode()), e2.appendChild(this.domNode), this.scrollableElement.onScroll(this.onScroll, this, this.disposables), Object(l.a)(this.rowsContainer, r.a.Change)(this.onTouchChange, this, this.disposables), Object(l.a)(this.scrollableElement.getDomNode(), "scroll")((e3) => e3.target.scrollTop = 0, null, this.disposables), a.b.map(Object(l.a)(this.domNode, "dragover"), (e3) => this.toDragEvent(e3))(this.onDragOver, this, this.disposables), a.b.map(Object(l.a)(this.domNode, "drop"), (e3) => this.toDragEvent(e3))(this.onDrop, this, this.disposables), Object(l.a)(this.domNode, "dragleave")(this.onDragLeave, this, this.disposables), Object(l.a)(window, "dragend")(this.onDragEnd, this, this.disposables), this.setRowLineHeight = Object(i.f)(h2, (e3) => e3.setRowLineHeight, C.setRowLineHeight), this.setRowHeight = Object(i.f)(h2, (e3) => e3.setRowHeight, C.setRowHeight), this.supportDynamicHeights = Object(i.f)(h2, (e3) => e3.supportDynamicHeights, C.supportDynamicHeights), this.dnd = Object(i.f)(h2, (e3) => e3.dnd, C.dnd), this.layout(); + Object(i.f)(h2, (e3) => e3.transformOptimization, C.transformOptimization) && (this.rowsContainer.style.transform = "translate3d(0px, 0px, 0px)"), this.disposables.add(o.b.addTarget(this.rowsContainer)), this.scrollable = new d.a(Object(i.f)(h2, (e3) => e3.smoothScrolling, false) ? 125 : 0, (e3) => s.Y(e3)), this.scrollableElement = this.disposables.add(new c.c(this.rowsContainer, {alwaysConsumeMouseWheel: true, horizontal: 1, vertical: Object(i.f)(h2, (e3) => e3.verticalScrollMode, C.verticalScrollMode), useShadows: Object(i.f)(h2, (e3) => e3.useShadows, C.useShadows)}, this.scrollable)), this.domNode.appendChild(this.scrollableElement.getDomNode()), e2.appendChild(this.domNode), this.scrollableElement.onScroll(this.onScroll, this, this.disposables), Object(l.a)(this.rowsContainer, o.a.Change)(this.onTouchChange, this, this.disposables), Object(l.a)(this.scrollableElement.getDomNode(), "scroll")((e3) => e3.target.scrollTop = 0, null, this.disposables), a.b.map(Object(l.a)(this.domNode, "dragover"), (e3) => this.toDragEvent(e3))(this.onDragOver, this, this.disposables), a.b.map(Object(l.a)(this.domNode, "drop"), (e3) => this.toDragEvent(e3))(this.onDrop, this, this.disposables), Object(l.a)(this.domNode, "dragleave")(this.onDragLeave, this, this.disposables), Object(l.a)(window, "dragend")(this.onDragEnd, this, this.disposables), this.setRowLineHeight = Object(i.f)(h2, (e3) => e3.setRowLineHeight, C.setRowLineHeight), this.setRowHeight = Object(i.f)(h2, (e3) => e3.setRowHeight, C.setRowHeight), this.supportDynamicHeights = Object(i.f)(h2, (e3) => e3.supportDynamicHeights, C.supportDynamicHeights), this.dnd = Object(i.f)(h2, (e3) => e3.dnd, C.dnd), this.layout(); } get contentHeight() { return this.rangeMap.size; @@ -42083,10 +42083,10 @@ ${Object(zn.b)(wi)} } } _splice(e2, t2, n2 = []) { - const i2 = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight), r2 = {start: e2, end: e2 + t2}, s2 = h.a.intersect(i2, r2); + const i2 = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight), o2 = {start: e2, end: e2 + t2}, s2 = h.a.intersect(i2, o2); for (let e3 = s2.start; e3 < s2.end; e3++) this.removeItemFromDOM(e3); - const a2 = {start: e2 + t2, end: this.items.length}, l2 = h.a.intersect(a2, i2), c2 = h.a.relativeComplement(a2, i2), d2 = n2.map((e3) => ({id: String(this.itemId++), element: e3, templateId: this.virtualDelegate.getTemplateId(e3), size: this.virtualDelegate.getHeight(e3), width: void 0, hasDynamicHeight: !!this.virtualDelegate.hasDynamicHeight && this.virtualDelegate.hasDynamicHeight(e3), lastDynamicHeightWidth: void 0, row: null, uri: void 0, dropTarget: false, dragStartDisposable: o.a.None})); + const a2 = {start: e2 + t2, end: this.items.length}, l2 = h.a.intersect(a2, i2), c2 = h.a.relativeComplement(a2, i2), d2 = n2.map((e3) => ({id: String(this.itemId++), element: e3, templateId: this.virtualDelegate.getTemplateId(e3), size: this.virtualDelegate.getHeight(e3), width: void 0, hasDynamicHeight: !!this.virtualDelegate.hasDynamicHeight && this.virtualDelegate.hasDynamicHeight(e3), lastDynamicHeightWidth: void 0, row: null, uri: void 0, dropTarget: false, dragStartDisposable: r.a.None})); let u2; e2 === 0 && t2 >= this.items.length ? (this.rangeMap = new m(), this.rangeMap.splice(0, 0, d2), this.items = d2, u2 = []) : (this.rangeMap.splice(e2, t2, d2), u2 = this.items.splice(e2, t2, ...d2)); const g2 = n2.length - t2, f2 = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight), b2 = p(l2, g2), _2 = h.a.intersect(f2, b2); @@ -42154,9 +42154,9 @@ ${Object(zn.b)(wi)} let n2 = {height: typeof e2 == "number" ? e2 : s.A(this.domNode)}; this.scrollableElementUpdateDisposable && (this.scrollableElementUpdateDisposable.dispose(), this.scrollableElementUpdateDisposable = null, n2.scrollHeight = this.scrollHeight), this.scrollableElement.setScrollDimensions(n2), t2 !== void 0 && (this.renderWidth = t2, this.supportDynamicHeights && this._rerender(this.scrollTop, this.renderHeight), this.horizontalScrolling && this.scrollableElement.setScrollDimensions({width: typeof t2 == "number" ? t2 : s.B(this.domNode)})); } - render(e2, t2, n2, i2, o2, r2 = false) { + render(e2, t2, n2, i2, r2, o2 = false) { const s2 = this.getRenderRange(t2, n2), a2 = h.a.relativeComplement(s2, e2), l2 = h.a.relativeComplement(e2, s2), c2 = this.getNextToLastElement(a2); - if (r2) { + if (o2) { const t3 = h.a.intersect(e2, s2); for (let e3 = t3.start; e3 < t3.end; e3++) this.updateItemInDOM(this.items[e3], e3); @@ -42167,7 +42167,7 @@ ${Object(zn.b)(wi)} for (const e3 of l2) for (let t3 = e3.start; t3 < e3.end; t3++) this.removeItemFromDOM(t3); - i2 !== void 0 && (this.rowsContainer.style.left = `-${i2}px`), this.rowsContainer.style.top = `-${t2}px`, this.horizontalScrolling && o2 !== void 0 && (this.rowsContainer.style.width = Math.max(o2, this.renderWidth) + "px"), this.lastRenderTop = t2, this.lastRenderHeight = n2; + i2 !== void 0 && (this.rowsContainer.style.left = `-${i2}px`), this.rowsContainer.style.top = `-${t2}px`, this.horizontalScrolling && r2 !== void 0 && (this.rowsContainer.style.width = Math.max(r2, this.renderWidth) + "px"), this.lastRenderTop = t2, this.lastRenderHeight = n2; } insertItemInDOM(e2, t2) { const n2 = this.items[e2]; @@ -42183,10 +42183,10 @@ ${Object(zn.b)(wi)} if (!i2) throw new Error("No renderer found for template id " + n2.templateId); i2 && i2.renderElement(n2.element, e2, n2.row.templateData, n2.size); - const o2 = this.dnd.getDragURI(n2.element); - if (n2.dragStartDisposable.dispose(), n2.row.domNode.draggable = !!o2, o2) { + const r2 = this.dnd.getDragURI(n2.element); + if (n2.dragStartDisposable.dispose(), n2.row.domNode.draggable = !!r2, r2) { const e3 = Object(l.a)(n2.row.domNode, "dragstart"); - n2.dragStartDisposable = e3((e4) => this.onDragStart(n2.element, o2, e4)); + n2.dragStartDisposable = e3((e4) => this.onDragStart(n2.element, r2, e4)); } this.horizontalScrolling && (this.measureItemWidth(n2), this.eventuallyUpdateScrollWidth()); } @@ -42240,7 +42240,7 @@ ${Object(zn.b)(wi)} return a.b.map(Object(l.a)(this.domNode, "touchstart"), (e2) => this.toTouchEvent(e2)); } get onTap() { - return a.b.map(Object(l.a)(this.rowsContainer, r.a.Tap), (e2) => this.toGestureEvent(e2)); + return a.b.map(Object(l.a)(this.rowsContainer, o.a.Tap), (e2) => this.toGestureEvent(e2)); } toMouseEvent(e2) { const t2 = this.getItemIndexFromEventTarget(e2.target || null), n2 = t2 === void 0 ? void 0 : this.items[t2]; @@ -42298,11 +42298,11 @@ ${Object(zn.b)(wi)} if (this.canDrop = typeof t2 == "boolean" ? t2 : t2.accept, !this.canDrop) return this.currentDragFeedback = void 0, this.currentDragFeedbackDisposable.dispose(), false; let n2; - if (e2.browserEvent.dataTransfer.dropEffect = typeof t2 != "boolean" && t2.effect === 0 ? "copy" : "move", n2 = typeof t2 != "boolean" && t2.feedback ? t2.feedback : e2.index === void 0 ? [-1] : [e2.index], n2 = Object(b.e)(n2).filter((e3) => e3 >= -1 && e3 < this.length).sort((e3, t3) => e3 - t3), n2 = n2[0] === -1 ? [-1] : n2, i2 = this.currentDragFeedback, r2 = n2, Array.isArray(i2) && Array.isArray(r2) ? Object(b.g)(i2, r2) : i2 === r2) + if (e2.browserEvent.dataTransfer.dropEffect = typeof t2 != "boolean" && t2.effect === 0 ? "copy" : "move", n2 = typeof t2 != "boolean" && t2.feedback ? t2.feedback : e2.index === void 0 ? [-1] : [e2.index], n2 = Object(b.e)(n2).filter((e3) => e3 >= -1 && e3 < this.length).sort((e3, t3) => e3 - t3), n2 = n2[0] === -1 ? [-1] : n2, i2 = this.currentDragFeedback, o2 = n2, Array.isArray(i2) && Array.isArray(o2) ? Object(b.g)(i2, o2) : i2 === o2) return true; - var i2, r2; + var i2, o2; if (this.currentDragFeedback = n2, this.currentDragFeedbackDisposable.dispose(), n2[0] === -1) - s.e(this.domNode, "drop-target"), s.e(this.rowsContainer, "drop-target"), this.currentDragFeedbackDisposable = Object(o.h)(() => { + s.e(this.domNode, "drop-target"), s.e(this.rowsContainer, "drop-target"), this.currentDragFeedbackDisposable = Object(r.h)(() => { s.Q(this.domNode, "drop-target"), s.Q(this.rowsContainer, "drop-target"); }); else { @@ -42310,7 +42310,7 @@ ${Object(zn.b)(wi)} const t3 = this.items[e3]; t3.dropTarget = true, t3.row && t3.row.domNode && s.e(t3.row.domNode, "drop-target"); } - this.currentDragFeedbackDisposable = Object(o.h)(() => { + this.currentDragFeedbackDisposable = Object(r.h)(() => { for (const e3 of n2) { const t3 = this.items[e3]; t3.dropTarget = false, t3.row && t3.row.domNode && s.Q(t3.row.domNode, "drop-target"); @@ -42332,7 +42332,7 @@ ${Object(zn.b)(wi)} this.canDrop = false, this.teardownDragAndDropScrollTopAnimation(), this.clearDragOverFeedback(), this.currentDragData = void 0, _.c.CurrentDragAndDropData = void 0, this.dnd.onDragEnd && this.dnd.onDragEnd(e2); } clearDragOverFeedback() { - this.currentDragFeedback = void 0, this.currentDragFeedbackDisposable.dispose(), this.currentDragFeedbackDisposable = o.a.None; + this.currentDragFeedback = void 0, this.currentDragFeedbackDisposable.dispose(), this.currentDragFeedbackDisposable = r.a.None; } setupDragAndDropScrollTopAnimation(e2) { if (!this.dragOverAnimationDisposable) { @@ -42370,18 +42370,18 @@ ${Object(zn.b)(wi)} } _rerender(e2, t2) { const n2 = this.getRenderRange(e2, t2); - let i2, o2; - e2 === this.elementTop(n2.start) ? (i2 = n2.start, o2 = 0) : n2.end - n2.start > 1 && (i2 = n2.start + 1, o2 = this.elementTop(i2) - e2); - let r2 = 0; + let i2, r2; + e2 === this.elementTop(n2.start) ? (i2 = n2.start, r2 = 0) : n2.end - n2.start > 1 && (i2 = n2.start + 1, r2 = this.elementTop(i2) - e2); + let o2 = 0; for (; ; ) { const s2 = this.getRenderRange(e2, t2); let a2 = false; for (let e3 = s2.start; e3 < s2.end; e3++) { const t3 = this.probeDynamicHeight(e3); - t3 !== 0 && this.rangeMap.splice(e3, 1, [this.items[e3]]), r2 += t3, a2 = a2 || t3 !== 0; + t3 !== 0 && this.rangeMap.splice(e3, 1, [this.items[e3]]), o2 += t3, a2 = a2 || t3 !== 0; } if (!a2) { - r2 !== 0 && this.eventuallyUpdateScrollDimensions(); + o2 !== 0 && this.eventuallyUpdateScrollDimensions(); const e3 = h.a.relativeComplement(n2, s2); for (const t4 of e3) for (let e4 = t4.start; e4 < t4.end; e4++) @@ -42394,7 +42394,7 @@ ${Object(zn.b)(wi)} } for (let e4 = s2.start; e4 < s2.end; e4++) this.items[e4].row && this.updateItemInDOM(this.items[e4], e4); - return typeof i2 == "number" && (this.scrollTop = this.elementTop(i2) - o2), void this._onDidChangeContentHeight.fire(this.contentHeight); + return typeof i2 == "number" && (this.scrollTop = this.elementTop(i2) - r2), void this._onDidChangeContentHeight.fire(this.contentHeight); } } } @@ -42411,8 +42411,8 @@ ${Object(zn.b)(wi)} } const i2 = this.cache.alloc(t2.templateId); i2.domNode.style.height = "", this.rowsContainer.appendChild(i2.domNode); - const o2 = this.renderers.get(t2.templateId); - return o2 && (o2.renderElement(t2.element, e2, i2.templateData, void 0), o2.disposeElement && o2.disposeElement(t2.element, e2, i2.templateData, void 0)), t2.size = i2.domNode.offsetHeight, this.virtualDelegate.setDynamicHeight && this.virtualDelegate.setDynamicHeight(t2.element, t2.size), t2.lastDynamicHeightWidth = this.renderWidth, this.rowsContainer.removeChild(i2.domNode), this.cache.release(i2), t2.size - n2; + const r2 = this.renderers.get(t2.templateId); + return r2 && (r2.renderElement(t2.element, e2, i2.templateData, void 0), r2.disposeElement && r2.disposeElement(t2.element, e2, i2.templateData, void 0)), t2.size = i2.domNode.offsetHeight, this.virtualDelegate.setDynamicHeight && this.virtualDelegate.setDynamicHeight(t2.element, t2.size), t2.lastDynamicHeightWidth = this.renderWidth, this.rowsContainer.removeChild(i2.domNode), this.cache.release(i2), t2.size - n2; } getNextToLastElement(e2) { const t2 = e2[e2.length - 1]; @@ -42433,7 +42433,7 @@ ${Object(zn.b)(wi)} } this.items = []; } - this.domNode && this.domNode.parentNode && this.domNode.parentNode.removeChild(this.domNode), Object(o.f)(this.disposables); + this.domNode && this.domNode.parentNode && this.domNode.parentNode.removeChild(this.domNode), Object(r.f)(this.disposables); } } T.InstanceCount = 0, y([f.a], T.prototype, "onMouseClick", null), y([f.a], T.prototype, "onMouseDblClick", null), y([f.a], T.prototype, "onMouseMiddleClick", null), y([f.a], T.prototype, "onMouseDown", null), y([f.a], T.prototype, "onContextMenu", null), y([f.a], T.prototype, "onTouchStart", null), y([f.a], T.prototype, "onTap", null); @@ -42453,13 +42453,13 @@ ${Object(zn.b)(wi)} return ji; }); n(208); - var i = n(0), o = n(1), r = n(13), s = n(6), a = n(2), l = n(45), c = n(87), d = n(4), h = n(41), u = n(21), p = n(35), m = n(11), g = n(61), f = n(69), b = n(20), _ = n(34), v = n(103); + var i = n(0), r = n(1), o = n(13), s = n(6), a = n(2), l = n(45), c = n(87), d = n(4), h = n(41), u = n(21), p = n(35), m = n(11), g = n(61), f = n(69), b = n(20), _ = n(34), v = n(103); class w { constructor(e2, t2) { this.x = e2, this.y = t2; } toClientCoordinates() { - return new y(this.x - o.d.scrollX, this.y - o.d.scrollY); + return new y(this.x - r.d.scrollX, this.y - r.d.scrollY); } } class y { @@ -42467,7 +42467,7 @@ ${Object(zn.b)(wi)} this.clientX = e2, this.clientY = t2; } toPageCoordinates() { - return new w(this.clientX + o.d.scrollX, this.clientY + o.d.scrollY); + return new w(this.clientX + r.d.scrollX, this.clientY + r.d.scrollY); } } class C { @@ -42476,7 +42476,7 @@ ${Object(zn.b)(wi)} } } function x(e2) { - const t2 = o.C(e2); + const t2 = r.C(e2); return new C(t2.left, t2.top, t2.width, t2.height); } class S extends f.a { @@ -42492,27 +42492,27 @@ ${Object(zn.b)(wi)} return new S(e2, this._editorViewDomNode); } onContextMenu(e2, t2) { - return o.i(e2, "contextmenu", (e3) => { + return r.i(e2, "contextmenu", (e3) => { t2(this._create(e3)); }); } onMouseUp(e2, t2) { - return o.i(e2, "mouseup", (e3) => { + return r.i(e2, "mouseup", (e3) => { t2(this._create(e3)); }); } onMouseDown(e2, t2) { - return o.i(e2, "mousedown", (e3) => { + return r.i(e2, "mousedown", (e3) => { t2(this._create(e3)); }); } onMouseLeave(e2, t2) { - return o.j(e2, (e3) => { + return r.j(e2, (e3) => { t2(this._create(e3)); }); } onMouseMoveThrottled(e2, t2, n2, i2) { - return o.l(e2, "mousemove", t2, (e3, t3) => n2(e3, this._create(t3)), i2); + return r.l(e2, "mousemove", t2, (e3, t3) => n2(e3, this._create(t3)), i2); } } class E { @@ -42523,34 +42523,34 @@ ${Object(zn.b)(wi)} return new S(e2, this._editorViewDomNode); } onPointerUp(e2, t2) { - return o.i(e2, "pointerup", (e3) => { + return r.i(e2, "pointerup", (e3) => { t2(this._create(e3)); }); } onPointerDown(e2, t2) { - return o.i(e2, "pointerdown", (e3) => { + return r.i(e2, "pointerdown", (e3) => { t2(this._create(e3)); }); } onPointerLeave(e2, t2) { - return o.k(e2, (e3) => { + return r.k(e2, (e3) => { t2(this._create(e3)); }); } onPointerMoveThrottled(e2, t2, n2, i2) { - return o.l(e2, "pointermove", t2, (e3, t3) => n2(e3, this._create(t3)), i2); + return r.l(e2, "pointermove", t2, (e3, t3) => n2(e3, this._create(t3)), i2); } } class T extends a.a { constructor(e2) { super(), this._editorViewDomNode = e2, this._globalMouseMoveMonitor = this._register(new v.a()), this._keydownListener = null; } - startMonitoring(e2, t2, n2, i2, r2) { - this._keydownListener = o.n(document, "keydown", (e3) => { + startMonitoring(e2, t2, n2, i2, o2) { + this._keydownListener = r.n(document, "keydown", (e3) => { e3.toKeybinding().isModifierKey() || this._globalMouseMoveMonitor.stopMonitoring(true); }, true); this._globalMouseMoveMonitor.startMonitoring(e2, t2, (e3, t3) => n2(e3, new S(t3, this._editorViewDomNode)), i2, () => { - this._keydownListener.dispose(), r2(); + this._keydownListener.dispose(), o2(); }); } } @@ -42698,13 +42698,13 @@ ${Object(zn.b)(wi)} let n2 = [], i2 = 0; for (; e2 && e2 !== document.body && e2 !== t2; ) e2.nodeType === e2.ELEMENT_NODE && (n2[i2++] = this.read(e2)), e2 = e2.parentElement; - const o2 = new Uint8Array(i2); + const r2 = new Uint8Array(i2); for (let e3 = 0; e3 < i2; e3++) - o2[e3] = n2[i2 - e3 - 1]; - return o2; + r2[e3] = n2[i2 - e3 - 1]; + return r2; } } - class O extends class { + class D extends class { constructor(e2, t2) { this._viewLayout = e2, this.viewportData = t2, this.scrollWidth = this._viewLayout.getScrollWidth(), this.scrollHeight = this._viewLayout.getScrollHeight(), this.visibleRange = this.viewportData.visibleRange, this.bigNumbersDelta = this.viewportData.bigNumbersDelta; const n2 = this._viewLayout.getCurrentViewport(); @@ -42730,7 +42730,7 @@ ${Object(zn.b)(wi)} return this._viewLines.visibleRangeForPosition(e2); } } - class D { + class O { constructor(e2, t2, n2) { this.outsideRenderedLine = e2, this.lineNumber = t2, this.ranges = n2; } @@ -42771,52 +42771,52 @@ ${Object(zn.b)(wi)} static _detachRange(e2, t2) { e2.selectNodeContents(t2); } - static _readClientRects(e2, t2, n2, i2, o2) { - const r2 = this._createRange(); + static _readClientRects(e2, t2, n2, i2, r2) { + const o2 = this._createRange(); try { - return r2.setStart(e2, t2), r2.setEnd(n2, i2), r2.getClientRects(); + return o2.setStart(e2, t2), o2.setEnd(n2, i2), o2.getClientRects(); } catch (e3) { return null; } finally { - this._detachRange(r2, o2); + this._detachRange(o2, r2); } } static _mergeAdjacentRanges(e2) { if (e2.length === 1) return [new A(e2[0].left, e2[0].width)]; e2.sort(P.compare); - let t2 = [], n2 = 0, i2 = e2[0].left, o2 = e2[0].width; - for (let r2 = 1, s2 = e2.length; r2 < s2; r2++) { - const s3 = e2[r2], a2 = s3.left, l2 = s3.width; - i2 + o2 + 0.9 >= a2 ? o2 = Math.max(o2, a2 + l2 - i2) : (t2[n2++] = new A(i2, o2), i2 = a2, o2 = l2); + let t2 = [], n2 = 0, i2 = e2[0].left, r2 = e2[0].width; + for (let o2 = 1, s2 = e2.length; o2 < s2; o2++) { + const s3 = e2[o2], a2 = s3.left, l2 = s3.width; + i2 + r2 + 0.9 >= a2 ? r2 = Math.max(r2, a2 + l2 - i2) : (t2[n2++] = new A(i2, r2), i2 = a2, r2 = l2); } - return t2[n2++] = new A(i2, o2), t2; + return t2[n2++] = new A(i2, r2), t2; } static _createHorizontalRangesFromClientRects(e2, t2) { if (!e2 || e2.length === 0) return null; const n2 = []; - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) { - const o3 = e2[i2]; - n2[i2] = new P(Math.max(0, o3.left - t2), o3.width); + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) { + const r3 = e2[i2]; + n2[i2] = new P(Math.max(0, r3.left - t2), r3.width); } return this._mergeAdjacentRanges(n2); } - static readHorizontalRanges(e2, t2, n2, i2, o2, r2, s2) { + static readHorizontalRanges(e2, t2, n2, i2, r2, o2, s2) { const a2 = e2.children.length - 1; if (0 > a2) return null; - if ((t2 = Math.min(a2, Math.max(0, t2))) === (i2 = Math.min(a2, Math.max(0, i2))) && n2 === o2 && n2 === 0) { + if ((t2 = Math.min(a2, Math.max(0, t2))) === (i2 = Math.min(a2, Math.max(0, i2))) && n2 === r2 && n2 === 0) { const n3 = e2.children[t2].getClientRects(); - return this._createHorizontalRangesFromClientRects(n3, r2); + return this._createHorizontalRangesFromClientRects(n3, o2); } - t2 !== i2 && i2 > 0 && o2 === 0 && (i2--, o2 = 1073741824); + t2 !== i2 && i2 > 0 && r2 === 0 && (i2--, r2 = 1073741824); let l2 = e2.children[t2].firstChild, c2 = e2.children[i2].firstChild; - if (l2 && c2 || (!l2 && n2 === 0 && t2 > 0 && (l2 = e2.children[t2 - 1].firstChild, n2 = 1073741824), !c2 && o2 === 0 && i2 > 0 && (c2 = e2.children[i2 - 1].firstChild, o2 = 1073741824)), !l2 || !c2) + if (l2 && c2 || (!l2 && n2 === 0 && t2 > 0 && (l2 = e2.children[t2 - 1].firstChild, n2 = 1073741824), !c2 && r2 === 0 && i2 > 0 && (c2 = e2.children[i2 - 1].firstChild, r2 = 1073741824)), !l2 || !c2) return null; - n2 = Math.min(l2.textContent.length, Math.max(0, n2)), o2 = Math.min(c2.textContent.length, Math.max(0, o2)); - const d2 = this._readClientRects(l2, n2, c2, o2, s2); - return this._createHorizontalRangesFromClientRects(d2, r2); + n2 = Math.min(l2.textContent.length, Math.max(0, n2)), r2 = Math.min(c2.textContent.length, Math.max(0, r2)); + const d2 = this._readClientRects(l2, n2, c2, r2, s2); + return this._createHorizontalRangesFromClientRects(d2, o2); } } var W = n(155), z = n(91), B = n(19), j = n(26); @@ -42872,25 +42872,25 @@ ${Object(zn.b)(wi)} if (this._isMaybeInvalid === false) return false; this._isMaybeInvalid = false; - const o2 = n2.getViewLineRenderingData(e2), r2 = this._options, s2 = W.a.filter(o2.inlineDecorations, e2, o2.minColumn, o2.maxColumn); + const r2 = n2.getViewLineRenderingData(e2), o2 = this._options, s2 = W.a.filter(r2.inlineDecorations, e2, r2.minColumn, r2.maxColumn); let a2 = null; - if (H || r2.themeType === B.b || this._options.renderWhitespace === "selection") { + if (H || o2.themeType === B.b || this._options.renderWhitespace === "selection") { const t3 = n2.selections; for (const n3 of t3) { if (n3.endLineNumber < e2 || n3.startLineNumber > e2) continue; - const t4 = n3.startLineNumber === e2 ? n3.startColumn : o2.minColumn, i3 = n3.endLineNumber === e2 ? n3.endColumn : o2.maxColumn; - t4 < i3 && (r2.themeType === B.b || this._options.renderWhitespace !== "selection" ? s2.push(new W.a(t4, i3, "inline-selected-text", 0)) : (a2 || (a2 = []), a2.push(new z.b(t4 - 1, i3 - 1)))); + const t4 = n3.startLineNumber === e2 ? n3.startColumn : r2.minColumn, i3 = n3.endLineNumber === e2 ? n3.endColumn : r2.maxColumn; + t4 < i3 && (o2.themeType === B.b || this._options.renderWhitespace !== "selection" ? s2.push(new W.a(t4, i3, "inline-selected-text", 0)) : (a2 || (a2 = []), a2.push(new z.b(t4 - 1, i3 - 1)))); } } - const l2 = new z.c(r2.useMonospaceOptimizations, r2.canUseHalfwidthRightwardsArrow, o2.content, o2.continuesWithWrappedLine, o2.isBasicASCII, o2.containsRTL, o2.minColumn - 1, o2.tokens, s2, o2.tabSize, o2.startVisibleColumn, r2.spaceWidth, r2.middotWidth, r2.wsmiddotWidth, r2.stopRenderingLineAfter, r2.renderWhitespace, r2.renderControlCharacters, r2.fontLigatures !== j.e.OFF, a2); + const l2 = new z.c(o2.useMonospaceOptimizations, o2.canUseHalfwidthRightwardsArrow, r2.content, r2.continuesWithWrappedLine, r2.isBasicASCII, r2.containsRTL, r2.minColumn - 1, r2.tokens, s2, r2.tabSize, r2.startVisibleColumn, o2.spaceWidth, o2.middotWidth, o2.wsmiddotWidth, o2.stopRenderingLineAfter, o2.renderWhitespace, o2.renderControlCharacters, o2.fontLigatures !== j.e.OFF, a2); if (this._renderedViewLine && this._renderedViewLine.input.equals(l2)) return false; i2.appendASCIIString('<div style="top:'), i2.appendASCIIString(String(t2)), i2.appendASCIIString("px;height:"), i2.appendASCIIString(String(this._options.lineHeight)), i2.appendASCIIString('px;" class="'), i2.appendASCIIString(K.CLASS_NAME), i2.appendASCIIString('">'); const c2 = Object(z.d)(l2, i2); i2.appendASCIIString("</div>"); let d2 = null; - return U && V && o2.isBasicASCII && r2.useMonospaceOptimizations && c2.containsForeignElements === 0 && o2.content.length < 300 && l2.lineTokens.getCount() < 100 && (d2 = new G(this._renderedViewLine ? this._renderedViewLine.domNode : null, l2, c2.characterMapping)), d2 || (d2 = X(this._renderedViewLine ? this._renderedViewLine.domNode : null, l2, c2.characterMapping, c2.containsRTL, c2.containsForeignElements)), this._renderedViewLine = d2, true; + return U && V && r2.isBasicASCII && o2.useMonospaceOptimizations && c2.containsForeignElements === 0 && r2.content.length < 300 && l2.lineTokens.getCount() < 100 && (d2 = new G(this._renderedViewLine ? this._renderedViewLine.domNode : null, l2, c2.characterMapping)), d2 || (d2 = X(this._renderedViewLine ? this._renderedViewLine.domNode : null, l2, c2.characterMapping, c2.containsRTL, c2.containsForeignElements)), this._renderedViewLine = d2, true; } layoutLine(e2, t2) { this._renderedViewLine && this._renderedViewLine.domNode && (this._renderedViewLine.domNode.setTop(t2), this._renderedViewLine.domNode.setHeight(this._options.lineHeight)); @@ -42915,10 +42915,10 @@ ${Object(zn.b)(wi)} return null; e2 |= 0, t2 |= 0, e2 = Math.min(this._renderedViewLine.input.lineContent.length + 1, Math.max(1, e2)), t2 = Math.min(this._renderedViewLine.input.lineContent.length + 1, Math.max(1, t2)); const i2 = 0 | this._renderedViewLine.input.stopRenderingLineAfter; - let o2 = false; - i2 !== -1 && e2 > i2 + 1 && t2 > i2 + 1 && (o2 = true), i2 !== -1 && e2 > i2 + 1 && (e2 = i2 + 1), i2 !== -1 && t2 > i2 + 1 && (t2 = i2 + 1); - const r2 = this._renderedViewLine.getVisibleRangesForRange(e2, t2, n2); - return r2 && r2.length > 0 ? new M(o2, r2) : null; + let r2 = false; + i2 !== -1 && e2 > i2 + 1 && t2 > i2 + 1 && (r2 = true), i2 !== -1 && e2 > i2 + 1 && (e2 = i2 + 1), i2 !== -1 && t2 > i2 + 1 && (t2 = i2 + 1); + const o2 = this._renderedViewLine.getVisibleRangesForRange(e2, t2, n2); + return o2 && o2.length > 0 ? new M(r2, o2) : null; } getColumnOfNodeOffset(e2, t2, n2) { return this._renderedViewLine ? this._renderedViewLine.getColumnOfNodeOffset(e2, t2, n2) : 1; @@ -42945,8 +42945,8 @@ ${Object(zn.b)(wi)} return X(this.domNode, this.input, this._characterMapping, false, 0); } getVisibleRangesForRange(e2, t2, n2) { - const i2 = this._getCharPosition(e2), o2 = this._getCharPosition(t2); - return [new A(i2, o2 - i2)]; + const i2 = this._getCharPosition(e2), r2 = this._getCharPosition(t2); + return [new A(i2, r2 - i2)]; } _getCharPosition(e2) { const t2 = this._characterMapping.getAbsoluteOffsets(); @@ -42954,15 +42954,15 @@ ${Object(zn.b)(wi)} } getColumnOfNodeOffset(e2, t2, n2) { const i2 = t2.textContent.length; - let o2 = -1; + let r2 = -1; for (; t2; ) - t2 = t2.previousSibling, o2++; - return this._characterMapping.partDataToCharOffset(o2, i2, n2) + 1; + t2 = t2.previousSibling, r2++; + return this._characterMapping.partDataToCharOffset(r2, i2, n2) + 1; } } class Y { - constructor(e2, t2, n2, i2, o2) { - if (this.domNode = e2, this.input = t2, this._characterMapping = n2, this._isWhitespaceOnly = /^\s*$/.test(t2.lineContent), this._containsForeignElements = o2, this._cachedWidth = -1, this._pixelOffsetCache = null, !i2 || this._characterMapping.length === 0) { + constructor(e2, t2, n2, i2, r2) { + if (this.domNode = e2, this.input = t2, this._characterMapping = n2, this._isWhitespaceOnly = /^\s*$/.test(t2.lineContent), this._containsForeignElements = r2, this._cachedWidth = -1, this._pixelOffsetCache = null, !i2 || this._characterMapping.length === 0) { this._pixelOffsetCache = new Int32Array(Math.max(2, this._characterMapping.length + 1)); for (let e3 = 0, t3 = this._characterMapping.length; e3 <= t3; e3++) this._pixelOffsetCache[e3] = -1; @@ -42984,8 +42984,8 @@ ${Object(zn.b)(wi)} const i2 = this._readPixelOffset(this.domNode, e2, n2); if (i2 === -1) return null; - const o2 = this._readPixelOffset(this.domNode, t2, n2); - return o2 === -1 ? null : [new A(i2, o2 - i2)]; + const r2 = this._readPixelOffset(this.domNode, t2, n2); + return r2 === -1 ? null : [new A(i2, r2 - i2)]; } return this._readVisibleRangesForRange(this.domNode, e2, t2, n2); } @@ -43011,8 +43011,8 @@ ${Object(zn.b)(wi)} const i2 = this._pixelOffsetCache[t2]; if (i2 !== -1) return i2; - const o2 = this._actualReadPixelOffset(e2, t2, n2); - return this._pixelOffsetCache[t2] = o2, o2; + const r2 = this._actualReadPixelOffset(e2, t2, n2); + return this._pixelOffsetCache[t2] = r2, r2; } return this._actualReadPixelOffset(e2, t2, n2); } @@ -43023,7 +43023,7 @@ ${Object(zn.b)(wi)} } if (t2 === this._characterMapping.length && this._isWhitespaceOnly && this._containsForeignElements === 0) return this.getWidth(); - const i2 = this._characterMapping.charOffsetToPartData(t2 - 1), o2 = z.a.getPartIndex(i2), r2 = z.a.getCharIndex(i2), s2 = F.readHorizontalRanges(this._getReadingTarget(e2), o2, r2, o2, r2, n2.clientRectDeltaLeft, n2.endNode); + const i2 = this._characterMapping.charOffsetToPartData(t2 - 1), r2 = z.a.getPartIndex(i2), o2 = z.a.getCharIndex(i2), s2 = F.readHorizontalRanges(this._getReadingTarget(e2), r2, o2, r2, o2, n2.clientRectDeltaLeft, n2.endNode); if (!s2 || s2.length === 0) return -1; const a2 = s2[0].left; @@ -43037,38 +43037,38 @@ ${Object(zn.b)(wi)} _readRawVisibleRangesForRange(e2, t2, n2, i2) { if (t2 === 1 && n2 === this._characterMapping.length) return [new A(0, this.getWidth())]; - const o2 = this._characterMapping.charOffsetToPartData(t2 - 1), r2 = z.a.getPartIndex(o2), s2 = z.a.getCharIndex(o2), a2 = this._characterMapping.charOffsetToPartData(n2 - 1), l2 = z.a.getPartIndex(a2), c2 = z.a.getCharIndex(a2); - return F.readHorizontalRanges(this._getReadingTarget(e2), r2, s2, l2, c2, i2.clientRectDeltaLeft, i2.endNode); + const r2 = this._characterMapping.charOffsetToPartData(t2 - 1), o2 = z.a.getPartIndex(r2), s2 = z.a.getCharIndex(r2), a2 = this._characterMapping.charOffsetToPartData(n2 - 1), l2 = z.a.getPartIndex(a2), c2 = z.a.getCharIndex(a2); + return F.readHorizontalRanges(this._getReadingTarget(e2), o2, s2, l2, c2, i2.clientRectDeltaLeft, i2.endNode); } getColumnOfNodeOffset(e2, t2, n2) { const i2 = t2.textContent.length; - let o2 = -1; + let r2 = -1; for (; t2; ) - t2 = t2.previousSibling, o2++; - return this._characterMapping.partDataToCharOffset(o2, i2, n2) + 1; + t2 = t2.previousSibling, r2++; + return this._characterMapping.partDataToCharOffset(r2, i2, n2) + 1; } } class Z extends Y { _readVisibleRangesForRange(e2, t2, n2, i2) { - const o2 = super._readVisibleRangesForRange(e2, t2, n2, i2); - if (!o2 || o2.length === 0 || t2 === n2 || t2 === 1 && n2 === this._characterMapping.length) - return o2; + const r2 = super._readVisibleRangesForRange(e2, t2, n2, i2); + if (!r2 || r2.length === 0 || t2 === n2 || t2 === 1 && n2 === this._characterMapping.length) + return r2; if (!this.input.containsRTL) { const t3 = this._readPixelOffset(e2, n2, i2); if (t3 !== -1) { - const e3 = o2[o2.length - 1]; + const e3 = r2[r2.length - 1]; e3.left < t3 && (e3.width = t3 - e3.left); } } - return o2; + return r2; } } const X = _.l ? Q : J; - function Q(e2, t2, n2, i2, o2) { - return new Z(e2, t2, n2, i2, o2); + function Q(e2, t2, n2, i2, r2) { + return new Z(e2, t2, n2, i2, r2); } - function J(e2, t2, n2, i2, o2) { - return new Y(e2, t2, n2, i2, o2); + function J(e2, t2, n2, i2, r2) { + return new Y(e2, t2, n2, i2, r2); } var ee = n(9), te = n(3), ne = n(22); class ie { @@ -43076,9 +43076,9 @@ ${Object(zn.b)(wi)} this.lastViewCursorsRenderData = e2, this.lastTextareaPosition = t2; } } - class oe { - constructor(e2, t2, n2 = 0, i2 = null, o2 = null, r2 = null) { - this.element = e2, this.type = t2, this.mouseColumn = n2, this.position = i2, !o2 && i2 && (o2 = new te.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column)), this.range = o2, this.detail = r2; + class re { + constructor(e2, t2, n2 = 0, i2 = null, r2 = null, o2 = null) { + this.element = e2, this.type = t2, this.mouseColumn = n2, this.position = i2, !r2 && i2 && (r2 = new te.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column)), this.range = r2, this.detail = o2; } static _typeToString(e2) { return e2 === 1 ? "TEXTAREA" : e2 === 2 ? "GUTTER_GLYPH_MARGIN" : e2 === 3 ? "GUTTER_LINE_NUMBERS" : e2 === 4 ? "GUTTER_LINE_DECORATIONS" : e2 === 5 ? "GUTTER_VIEW_ZONE" : e2 === 6 ? "CONTENT_TEXT" : e2 === 7 ? "CONTENT_EMPTY" : e2 === 8 ? "CONTENT_VIEW_ZONE" : e2 === 9 ? "CONTENT_WIDGET" : e2 === 10 ? "OVERVIEW_RULER" : e2 === 11 ? "SCROLLBAR" : e2 === 12 ? "OVERLAY_WIDGET" : "UNKNOWN"; @@ -43087,10 +43087,10 @@ ${Object(zn.b)(wi)} return this._typeToString(e2.type) + ": " + e2.position + " - " + e2.range + " - " + e2.detail; } toString() { - return oe.toString(this); + return re.toString(this); } } - class re { + class oe { static isTextArea(e2) { return e2.length === 2 && e2[0] === 3 && e2[1] === 6; } @@ -43128,8 +43128,8 @@ ${Object(zn.b)(wi)} static getZoneAtCoord(e2, t2) { const n2 = e2.viewLayout.getWhitespaceAtVerticalOffset(t2); if (n2) { - let i2, o2 = n2.verticalOffset + n2.height / 2, r2 = e2.model.getLineCount(), s2 = null, a2 = null; - return n2.afterLineNumber !== r2 && (a2 = new ee.a(n2.afterLineNumber + 1, 1)), n2.afterLineNumber > 0 && (s2 = new ee.a(n2.afterLineNumber, e2.model.getLineMaxColumn(n2.afterLineNumber))), i2 = a2 === null ? s2 : s2 === null ? a2 : t2 < o2 ? s2 : a2, {viewZoneId: n2.id, afterLineNumber: n2.afterLineNumber, positionBefore: s2, positionAfter: a2, position: i2}; + let i2, r2 = n2.verticalOffset + n2.height / 2, o2 = e2.model.getLineCount(), s2 = null, a2 = null; + return n2.afterLineNumber !== o2 && (a2 = new ee.a(n2.afterLineNumber + 1, 1)), n2.afterLineNumber > 0 && (s2 = new ee.a(n2.afterLineNumber, e2.model.getLineMaxColumn(n2.afterLineNumber))), i2 = a2 === null ? s2 : s2 === null ? a2 : t2 < r2 ? s2 : a2, {viewZoneId: n2.id, afterLineNumber: n2.afterLineNumber, positionBefore: s2, positionAfter: a2, position: i2}; } return null; } @@ -43192,8 +43192,8 @@ ${Object(zn.b)(wi)} target: ${this.target ? this.target.outerHTML : null}`; } fulfill(e2, t2 = null, n2 = null, i2 = null) { - let o2 = this.mouseColumn; - return t2 && t2.column < this._ctx.model.getLineMaxColumn(t2.lineNumber) && (o2 = ne.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t2.lineNumber), t2.column, this._ctx.model.getTextModelOptions().tabSize) + 1), new oe(this.target, e2, o2, t2, n2, i2); + let r2 = this.mouseColumn; + return t2 && t2.column < this._ctx.model.getLineMaxColumn(t2.lineNumber) && (r2 = ne.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t2.lineNumber), t2.column, this._ctx.model.getTextModelOptions().tabSize) + 1), new re(this.target, e2, r2, t2, n2, i2); } withTarget(e2) { return new ae(this._ctx, this.editorPos, this.pos, e2); @@ -43209,14 +43209,14 @@ ${Object(zn.b)(wi)} } mouseTargetIsWidget(e2) { const t2 = e2.target, n2 = I.collect(t2, this._viewHelper.viewDomNode); - return !(!re.isChildOfContentWidgets(n2) && !re.isChildOfOverflowingContentWidgets(n2)) || !!re.isChildOfOverlayWidgets(n2); + return !(!oe.isChildOfContentWidgets(n2) && !oe.isChildOfOverflowingContentWidgets(n2)) || !!oe.isChildOfOverlayWidgets(n2); } createMouseTarget(e2, t2, n2, i2) { - const o2 = new se(this._context, this._viewHelper, e2), r2 = new ae(o2, t2, n2, i2); + const r2 = new se(this._context, this._viewHelper, e2), o2 = new ae(r2, t2, n2, i2); try { - return de._createMouseTarget(o2, r2, false); + return de._createMouseTarget(r2, o2, false); } catch (e3) { - return r2.fulfill(0); + return o2.fulfill(0); } } static _createMouseTarget(e2, t2, n2) { @@ -43227,18 +43227,18 @@ ${Object(zn.b)(wi)} return i3.position ? de.createMouseTargetFromHitTestPosition(e2, t2, i3.position.lineNumber, i3.position.column) : this._createMouseTarget(e2, t2.withTarget(i3.hitTarget), true); } const i2 = t2; - let o2 = null; - return o2 = o2 || de._hitTestContentWidget(e2, i2), o2 = o2 || de._hitTestOverlayWidget(e2, i2), o2 = o2 || de._hitTestMinimap(e2, i2), o2 = o2 || de._hitTestScrollbarSlider(e2, i2), o2 = o2 || de._hitTestViewZone(e2, i2), o2 = o2 || de._hitTestMargin(e2, i2), o2 = o2 || de._hitTestViewCursor(e2, i2), o2 = o2 || de._hitTestTextArea(e2, i2), o2 = o2 || de._hitTestViewLines(e2, i2, n2), o2 = o2 || de._hitTestScrollbar(e2, i2), o2 || t2.fulfill(0); + let r2 = null; + return r2 = r2 || de._hitTestContentWidget(e2, i2), r2 = r2 || de._hitTestOverlayWidget(e2, i2), r2 = r2 || de._hitTestMinimap(e2, i2), r2 = r2 || de._hitTestScrollbarSlider(e2, i2), r2 = r2 || de._hitTestViewZone(e2, i2), r2 = r2 || de._hitTestMargin(e2, i2), r2 = r2 || de._hitTestViewCursor(e2, i2), r2 = r2 || de._hitTestTextArea(e2, i2), r2 = r2 || de._hitTestViewLines(e2, i2, n2), r2 = r2 || de._hitTestScrollbar(e2, i2), r2 || t2.fulfill(0); } static _hitTestContentWidget(e2, t2) { - if (re.isChildOfContentWidgets(t2.targetPath) || re.isChildOfOverflowingContentWidgets(t2.targetPath)) { + if (oe.isChildOfContentWidgets(t2.targetPath) || oe.isChildOfOverflowingContentWidgets(t2.targetPath)) { const n2 = e2.findAttribute(t2.target, "widgetId"); return n2 ? t2.fulfill(9, null, null, n2) : t2.fulfill(0); } return null; } static _hitTestOverlayWidget(e2, t2) { - if (re.isChildOfOverlayWidgets(t2.targetPath)) { + if (oe.isChildOfOverlayWidgets(t2.targetPath)) { const n2 = e2.findAttribute(t2.target, "widgetId"); return n2 ? t2.fulfill(12, null, null, n2) : t2.fulfill(0); } @@ -43252,15 +43252,15 @@ ${Object(zn.b)(wi)} return t2.fulfill(6, e3.position); } if (t2.isInContentArea) { - const n2 = e2.lastRenderData.lastViewCursorsRenderData, i2 = t2.mouseContentHorizontalOffset, o2 = t2.mouseVerticalOffset; - for (const r2 of n2) { - if (i2 < r2.contentLeft) + const n2 = e2.lastRenderData.lastViewCursorsRenderData, i2 = t2.mouseContentHorizontalOffset, r2 = t2.mouseVerticalOffset; + for (const o2 of n2) { + if (i2 < o2.contentLeft) continue; - if (i2 > r2.contentLeft + r2.width) + if (i2 > o2.contentLeft + o2.width) continue; - const n3 = e2.getVerticalOffsetForLineNumber(r2.position.lineNumber); - if (n3 <= o2 && o2 <= n3 + r2.height) - return t2.fulfill(6, r2.position); + const n3 = e2.getVerticalOffsetForLineNumber(o2.position.lineNumber); + if (n3 <= r2 && r2 <= n3 + o2.height) + return t2.fulfill(6, o2.position); } } return null; @@ -43274,35 +43274,35 @@ ${Object(zn.b)(wi)} return null; } static _hitTestTextArea(e2, t2) { - return re.isTextArea(t2.targetPath) ? e2.lastRenderData.lastTextareaPosition ? t2.fulfill(6, e2.lastRenderData.lastTextareaPosition) : t2.fulfill(1, e2.lastRenderData.lastTextareaPosition) : null; + return oe.isTextArea(t2.targetPath) ? e2.lastRenderData.lastTextareaPosition ? t2.fulfill(6, e2.lastRenderData.lastTextareaPosition) : t2.fulfill(1, e2.lastRenderData.lastTextareaPosition) : null; } static _hitTestMargin(e2, t2) { if (t2.isInMarginArea) { const n2 = e2.getFullLineRangeAtCoord(t2.mouseVerticalOffset), i2 = n2.range.getStartPosition(); - let o2 = Math.abs(t2.pos.x - t2.editorPos.x); - const r2 = {isAfterLines: n2.isAfterLines, glyphMarginLeft: e2.layoutInfo.glyphMarginLeft, glyphMarginWidth: e2.layoutInfo.glyphMarginWidth, lineNumbersWidth: e2.layoutInfo.lineNumbersWidth, offsetX: o2}; - return o2 -= e2.layoutInfo.glyphMarginLeft, o2 <= e2.layoutInfo.glyphMarginWidth ? t2.fulfill(2, i2, n2.range, r2) : (o2 -= e2.layoutInfo.glyphMarginWidth, o2 <= e2.layoutInfo.lineNumbersWidth ? t2.fulfill(3, i2, n2.range, r2) : (o2 -= e2.layoutInfo.lineNumbersWidth, t2.fulfill(4, i2, n2.range, r2))); + let r2 = Math.abs(t2.pos.x - t2.editorPos.x); + const o2 = {isAfterLines: n2.isAfterLines, glyphMarginLeft: e2.layoutInfo.glyphMarginLeft, glyphMarginWidth: e2.layoutInfo.glyphMarginWidth, lineNumbersWidth: e2.layoutInfo.lineNumbersWidth, offsetX: r2}; + return r2 -= e2.layoutInfo.glyphMarginLeft, r2 <= e2.layoutInfo.glyphMarginWidth ? t2.fulfill(2, i2, n2.range, o2) : (r2 -= e2.layoutInfo.glyphMarginWidth, r2 <= e2.layoutInfo.lineNumbersWidth ? t2.fulfill(3, i2, n2.range, o2) : (r2 -= e2.layoutInfo.lineNumbersWidth, t2.fulfill(4, i2, n2.range, o2))); } return null; } static _hitTestViewLines(e2, t2, n2) { - if (!re.isChildOfViewLines(t2.targetPath)) + if (!oe.isChildOfViewLines(t2.targetPath)) return null; if (e2.isAfterLines(t2.mouseVerticalOffset)) { const n3 = e2.model.getLineCount(), i3 = e2.model.getLineMaxColumn(n3); return t2.fulfill(7, new ee.a(n3, i3), void 0, le); } if (n2) { - if (re.isStrictChildOfViewLines(t2.targetPath)) { + if (oe.isStrictChildOfViewLines(t2.targetPath)) { const n3 = e2.getLineNumberAtVerticalOffset(t2.mouseVerticalOffset); if (e2.model.getLineLength(n3) === 0) { - const i4 = e2.getLineWidth(n3), o2 = ce(t2.mouseContentHorizontalOffset - i4); - return t2.fulfill(7, new ee.a(n3, 1), void 0, o2); + const i4 = e2.getLineWidth(n3), r2 = ce(t2.mouseContentHorizontalOffset - i4); + return t2.fulfill(7, new ee.a(n3, 1), void 0, r2); } const i3 = e2.getLineWidth(n3); if (t2.mouseContentHorizontalOffset >= i3) { - const o2 = ce(t2.mouseContentHorizontalOffset - i3), r2 = new ee.a(n3, e2.model.getLineMaxColumn(n3)); - return t2.fulfill(7, r2, void 0, o2); + const r2 = ce(t2.mouseContentHorizontalOffset - i3), o2 = new ee.a(n3, e2.model.getLineMaxColumn(n3)); + return t2.fulfill(7, o2, void 0, r2); } } return t2.fulfill(0); @@ -43311,14 +43311,14 @@ ${Object(zn.b)(wi)} return i2.position ? de.createMouseTargetFromHitTestPosition(e2, t2, i2.position.lineNumber, i2.position.column) : this._createMouseTarget(e2, t2.withTarget(i2.hitTarget), true); } static _hitTestMinimap(e2, t2) { - if (re.isChildOfMinimap(t2.targetPath)) { + if (oe.isChildOfMinimap(t2.targetPath)) { const n2 = e2.getLineNumberAtVerticalOffset(t2.mouseVerticalOffset), i2 = e2.model.getLineMaxColumn(n2); return t2.fulfill(11, new ee.a(n2, i2)); } return null; } static _hitTestScrollbarSlider(e2, t2) { - if (re.isChildOfScrollableElement(t2.targetPath) && t2.target && t2.target.nodeType === 1) { + if (oe.isChildOfScrollableElement(t2.targetPath) && t2.target && t2.target.nodeType === 1) { const n2 = t2.target.className; if (n2 && /\b(slider|scrollbar)\b/.test(n2)) { const n3 = e2.getLineNumberAtVerticalOffset(t2.mouseVerticalOffset), i2 = e2.model.getLineMaxColumn(n3); @@ -43328,15 +43328,15 @@ ${Object(zn.b)(wi)} return null; } static _hitTestScrollbar(e2, t2) { - if (re.isChildOfScrollableElement(t2.targetPath)) { + if (oe.isChildOfScrollableElement(t2.targetPath)) { const n2 = e2.getLineNumberAtVerticalOffset(t2.mouseVerticalOffset), i2 = e2.model.getLineMaxColumn(n2); return t2.fulfill(11, new ee.a(n2, i2)); } return null; } getMouseColumn(e2, t2) { - const n2 = this._context.configuration.options, i2 = n2.get(117), o2 = this._context.viewLayout.getCurrentScrollLeft() + t2.x - e2.x - i2.contentLeft; - return de._getMouseColumn(o2, n2.get(36).typicalHalfwidthCharacterWidth); + const n2 = this._context.configuration.options, i2 = n2.get(117), r2 = this._context.viewLayout.getCurrentScrollLeft() + t2.x - e2.x - i2.contentLeft; + return de._getMouseColumn(r2, n2.get(36).typicalHalfwidthCharacterWidth); } static _getMouseColumn(e2, t2) { if (e2 < 0) @@ -43344,21 +43344,21 @@ ${Object(zn.b)(wi)} return Math.round(e2 / t2) + 1; } static createMouseTargetFromHitTestPosition(e2, t2, n2, i2) { - const o2 = new ee.a(n2, i2), r2 = e2.getLineWidth(n2); - if (t2.mouseContentHorizontalOffset > r2) { - if (_.f && o2.column === 1) { - const i4 = ce(t2.mouseContentHorizontalOffset - r2); + const r2 = new ee.a(n2, i2), o2 = e2.getLineWidth(n2); + if (t2.mouseContentHorizontalOffset > o2) { + if (_.f && r2.column === 1) { + const i4 = ce(t2.mouseContentHorizontalOffset - o2); return t2.fulfill(7, new ee.a(n2, e2.model.getLineMaxColumn(n2)), void 0, i4); } - const i3 = ce(t2.mouseContentHorizontalOffset - r2); - return t2.fulfill(7, o2, void 0, i3); + const i3 = ce(t2.mouseContentHorizontalOffset - o2); + return t2.fulfill(7, r2, void 0, i3); } const s2 = e2.visibleRangeForPosition(n2, i2); if (!s2) - return t2.fulfill(0, o2); + return t2.fulfill(0, r2); const a2 = s2.left; if (t2.mouseContentHorizontalOffset === a2) - return t2.fulfill(6, o2); + return t2.fulfill(6, r2); const l2 = []; if (l2.push({offset: s2.left, column: i2}), i2 > 1) { const t3 = e2.visibleRangeForPosition(n2, i2 - 1); @@ -43370,71 +43370,71 @@ ${Object(zn.b)(wi)} } l2.sort((e3, t3) => e3.offset - t3.offset); for (let e3 = 1; e3 < l2.length; e3++) { - const i3 = l2[e3 - 1], r3 = l2[e3]; - if (i3.offset <= t2.mouseContentHorizontalOffset && t2.mouseContentHorizontalOffset <= r3.offset) { - const e4 = new te.a(n2, i3.column, n2, r3.column); - return t2.fulfill(6, o2, e4); + const i3 = l2[e3 - 1], o3 = l2[e3]; + if (i3.offset <= t2.mouseContentHorizontalOffset && t2.mouseContentHorizontalOffset <= o3.offset) { + const e4 = new te.a(n2, i3.column, n2, o3.column); + return t2.fulfill(6, r2, e4); } } - return t2.fulfill(6, o2); + return t2.fulfill(6, r2); } static _doHitTestWithCaretRangeFromPoint(e2, t2) { const n2 = e2.getLineNumberAtVerticalOffset(t2.mouseVerticalOffset), i2 = e2.getVerticalOffsetForLineNumber(n2) + Math.floor(e2.lineHeight / 2); - let o2 = t2.pos.y + (i2 - t2.mouseVerticalOffset); - o2 <= t2.editorPos.y && (o2 = t2.editorPos.y + 1), o2 >= t2.editorPos.y + e2.layoutInfo.height && (o2 = t2.editorPos.y + e2.layoutInfo.height - 1); - const r2 = new w(t2.pos.x, o2), s2 = this._actualDoHitTestWithCaretRangeFromPoint(e2, r2.toClientCoordinates()); + let r2 = t2.pos.y + (i2 - t2.mouseVerticalOffset); + r2 <= t2.editorPos.y && (r2 = t2.editorPos.y + 1), r2 >= t2.editorPos.y + e2.layoutInfo.height && (r2 = t2.editorPos.y + e2.layoutInfo.height - 1); + const o2 = new w(t2.pos.x, r2), s2 = this._actualDoHitTestWithCaretRangeFromPoint(e2, o2.toClientCoordinates()); return s2.position ? s2 : this._actualDoHitTestWithCaretRangeFromPoint(e2, t2.pos.toClientCoordinates()); } static _actualDoHitTestWithCaretRangeFromPoint(e2, t2) { - const n2 = o.E(e2.viewDomNode); + const n2 = r.E(e2.viewDomNode); let i2; if (i2 = n2 ? n2.caretRangeFromPoint === void 0 ? function(e3, t3, n3) { const i3 = document.createRange(); - let o2 = e3.elementFromPoint(t3, n3); - if (o2 !== null) { - for (; o2 && o2.firstChild && o2.firstChild.nodeType !== o2.firstChild.TEXT_NODE; ) - o2 = o2.lastChild; - const e4 = o2.getBoundingClientRect(), n4 = window.getComputedStyle(o2, null).getPropertyValue("font"), r3 = o2.innerText; + let r2 = e3.elementFromPoint(t3, n3); + if (r2 !== null) { + for (; r2 && r2.firstChild && r2.firstChild.nodeType !== r2.firstChild.TEXT_NODE; ) + r2 = r2.lastChild; + const e4 = r2.getBoundingClientRect(), n4 = window.getComputedStyle(r2, null).getPropertyValue("font"), o3 = r2.innerText; let s3, a2 = e4.left, l2 = 0; if (t3 > e4.left + e4.width) - l2 = r3.length; + l2 = o3.length; else { const e5 = he.getInstance(); - for (let i4 = 0; i4 < r3.length + 1; i4++) { - if (s3 = e5.getCharWidth(r3.charAt(i4), n4) / 2, a2 += s3, t3 < a2) { + for (let i4 = 0; i4 < o3.length + 1; i4++) { + if (s3 = e5.getCharWidth(o3.charAt(i4), n4) / 2, a2 += s3, t3 < a2) { l2 = i4; break; } a2 += s3; } } - i3.setStart(o2.firstChild, l2), i3.setEnd(o2.firstChild, l2); + i3.setStart(r2.firstChild, l2), i3.setEnd(r2.firstChild, l2); } return i3; }(n2, t2.clientX, t2.clientY) : n2.caretRangeFromPoint(t2.clientX, t2.clientY) : document.caretRangeFromPoint(t2.clientX, t2.clientY), !i2 || !i2.startContainer) return {position: null, hitTarget: null}; - const r2 = i2.startContainer; + const o2 = i2.startContainer; let s2 = null; - if (r2.nodeType === r2.TEXT_NODE) { - const t3 = r2.parentNode, n3 = t3 ? t3.parentNode : null, o2 = n3 ? n3.parentNode : null; - if ((o2 && o2.nodeType === o2.ELEMENT_NODE ? o2.className : null) === K.CLASS_NAME) { + if (o2.nodeType === o2.TEXT_NODE) { + const t3 = o2.parentNode, n3 = t3 ? t3.parentNode : null, r2 = n3 ? n3.parentNode : null; + if ((r2 && r2.nodeType === r2.ELEMENT_NODE ? r2.className : null) === K.CLASS_NAME) { return {position: e2.getPositionFromDOMInfo(t3, i2.startOffset), hitTarget: null}; } - s2 = r2.parentNode; - } else if (r2.nodeType === r2.ELEMENT_NODE) { - const t3 = r2.parentNode, n3 = t3 ? t3.parentNode : null; + s2 = o2.parentNode; + } else if (o2.nodeType === o2.ELEMENT_NODE) { + const t3 = o2.parentNode, n3 = t3 ? t3.parentNode : null; if ((n3 && n3.nodeType === n3.ELEMENT_NODE ? n3.className : null) === K.CLASS_NAME) { - return {position: e2.getPositionFromDOMInfo(r2, r2.textContent.length), hitTarget: null}; + return {position: e2.getPositionFromDOMInfo(o2, o2.textContent.length), hitTarget: null}; } - s2 = r2; + s2 = o2; } return {position: null, hitTarget: s2}; } static _doHitTestWithCaretPositionFromPoint(e2, t2) { const n2 = document.caretPositionFromPoint(t2.clientX, t2.clientY); if (n2.offsetNode.nodeType === n2.offsetNode.TEXT_NODE) { - const t3 = n2.offsetNode.parentNode, i2 = t3 ? t3.parentNode : null, o2 = i2 ? i2.parentNode : null; - if ((o2 && o2.nodeType === o2.ELEMENT_NODE ? o2.className : null) === K.CLASS_NAME) { + const t3 = n2.offsetNode.parentNode, i2 = t3 ? t3.parentNode : null, r2 = i2 ? i2.parentNode : null; + if ((r2 && r2.nodeType === r2.ELEMENT_NODE ? r2.className : null) === K.CLASS_NAME) { return {position: e2.getPositionFromDOMInfo(n2.offsetNode.parentNode, n2.offset), hitTarget: null}; } return {position: null, hitTarget: n2.offsetNode.parentNode}; @@ -43452,20 +43452,20 @@ ${Object(zn.b)(wi)} } static _doHitTestWithMoveToPoint(e2, t2) { let n2 = null, i2 = null; - const o2 = document.body.createTextRange(); + const r2 = document.body.createTextRange(); try { - o2.moveToPoint(t2.clientX, t2.clientY); + r2.moveToPoint(t2.clientX, t2.clientY); } catch (e3) { return {position: null, hitTarget: null}; } - o2.collapse(true); - const r2 = o2 ? o2.parentElement() : null, s2 = r2 ? r2.parentNode : null, a2 = s2 ? s2.parentNode : null; + r2.collapse(true); + const o2 = r2 ? r2.parentElement() : null, s2 = o2 ? o2.parentNode : null, a2 = s2 ? s2.parentNode : null; if ((a2 && a2.nodeType === a2.ELEMENT_NODE ? a2.className : "") === K.CLASS_NAME) { - const t3 = o2.duplicate(); - t3.moveToElementText(r2), t3.setEndPoint("EndToStart", o2), n2 = e2.getPositionFromDOMInfo(r2, t3.text.length), t3.moveToElementText(e2.viewDomNode); + const t3 = r2.duplicate(); + t3.moveToElementText(o2), t3.setEndPoint("EndToStart", r2), n2 = e2.getPositionFromDOMInfo(o2, t3.text.length), t3.moveToElementText(e2.viewDomNode); } else - i2 = r2; - return o2.moveToElementText(e2.viewDomNode), {position: n2, hitTarget: i2}; + i2 = o2; + return r2.moveToElementText(e2.viewDomNode), {position: n2, hitTarget: i2}; } static _doHitTest(e2, t2) { return typeof document.caretRangeFromPoint == "function" ? this._doHitTestWithCaretRangeFromPoint(e2, t2) : document.caretPositionFromPoint ? this._doHitTestWithCaretPositionFromPoint(e2, t2.pos.toClientCoordinates()) : document.body.createTextRange ? this._doHitTestWithMoveToPoint(e2, t2.pos.toClientCoordinates()) : {position: null, hitTarget: null}; @@ -43484,8 +43484,8 @@ ${Object(zn.b)(wi)} return this._cache[n2]; const i2 = this._canvas.getContext("2d"); i2.font = t2; - const o2 = i2.measureText(e2).width; - return this._cache[n2] = o2, o2; + const r2 = i2.measureText(e2).width; + return this._cache[n2] = r2, r2; } } he._INSTANCE = null; @@ -43501,7 +43501,7 @@ ${Object(zn.b)(wi)} super(), this._context = e2, this.viewController = t2, this.viewHelper = n2, this.mouseTargetFactory = new de(this._context, n2), this._mouseDownOperation = this._register(new ge(this._context, this.viewController, this.viewHelper, (e3, t3) => this._createMouseTarget(e3, t3), (e3) => this._getMouseColumn(e3))), this.lastMouseLeaveTime = -1; const i2 = new k(this.viewHelper.viewDomNode); this._register(i2.onContextMenu(this.viewHelper.viewDomNode, (e3) => this._onContextMenu(e3, true))), this._register(i2.onMouseMoveThrottled(this.viewHelper.viewDomNode, (e3) => this._onMouseMove(e3), pe(this.mouseTargetFactory), me.MOUSE_MOVE_MINIMUM_TIME)), this._register(i2.onMouseUp(this.viewHelper.viewDomNode, (e3) => this._onMouseUp(e3))), this._register(i2.onMouseLeave(this.viewHelper.viewDomNode, (e3) => this._onMouseLeave(e3))), this._register(i2.onMouseDown(this.viewHelper.viewDomNode, (e3) => this._onMouseDown(e3))); - this._register(o.i(this.viewHelper.viewDomNode, o.c.MOUSE_WHEEL, (e3) => { + this._register(r.i(this.viewHelper.viewDomNode, r.c.MOUSE_WHEEL, (e3) => { if (this.viewController.emitMouseWheel(e3), !this._context.configuration.options.get(59)) return; const t3 = new f.b(e3); @@ -43548,13 +43548,13 @@ ${Object(zn.b)(wi)} this.viewController.emitMouseUp({event: e2, target: this._createMouseTarget(e2, true)}); } _onMouseDown(e2) { - const t2 = this._createMouseTarget(e2, true), n2 = t2.type === 6 || t2.type === 7, i2 = t2.type === 2 || t2.type === 3 || t2.type === 4, o2 = t2.type === 3, r2 = this._context.configuration.options.get(90), s2 = t2.type === 8 || t2.type === 5, a2 = t2.type === 9; + const t2 = this._createMouseTarget(e2, true), n2 = t2.type === 6 || t2.type === 7, i2 = t2.type === 2 || t2.type === 3 || t2.type === 4, r2 = t2.type === 3, o2 = this._context.configuration.options.get(90), s2 = t2.type === 8 || t2.type === 5, a2 = t2.type === 9; let l2 = e2.leftButton || e2.middleButton; m.f && e2.leftButton && e2.ctrlKey && (l2 = false); const c2 = () => { e2.preventDefault(), this.viewHelper.focusTextArea(); }; - if (l2 && (n2 || o2 && r2)) + if (l2 && (n2 || r2 && o2)) c2(), this._mouseDownOperation.start(t2.type, e2); else if (i2) e2.preventDefault(); @@ -43568,8 +43568,8 @@ ${Object(zn.b)(wi)} } me.MOUSE_MOVE_MINIMUM_TIME = 100; class ge extends a.a { - constructor(e2, t2, n2, i2, o2) { - super(), this._context = e2, this._viewController = t2, this._viewHelper = n2, this._createMouseTarget = i2, this._getMouseColumn = o2, this._mouseMoveMonitor = this._register(new T(this._viewHelper.viewDomNode)), this._onScrollTimeout = this._register(new b.e()), this._mouseState = new fe(), this._currentSelection = new u.a(1, 1, 1, 1), this._isActive = false, this._lastMouseEvent = null; + constructor(e2, t2, n2, i2, r2) { + super(), this._context = e2, this._viewController = t2, this._viewHelper = n2, this._createMouseTarget = i2, this._getMouseColumn = r2, this._mouseMoveMonitor = this._register(new T(this._viewHelper.viewDomNode)), this._onScrollTimeout = this._register(new b.e()), this._mouseState = new fe(), this._currentSelection = new u.a(1, 1, 1, 1), this._isActive = false, this._lastMouseEvent = null; } dispose() { super.dispose(); @@ -43611,29 +43611,29 @@ ${Object(zn.b)(wi)} this._currentSelection = e2.selections[0]; } _getPositionOutsideEditor(e2) { - const t2 = e2.editorPos, n2 = this._context.model, i2 = this._context.viewLayout, o2 = this._getMouseColumn(e2); + const t2 = e2.editorPos, n2 = this._context.model, i2 = this._context.viewLayout, r2 = this._getMouseColumn(e2); if (e2.posy < t2.y) { - const n3 = Math.max(i2.getCurrentScrollTop() - (t2.y - e2.posy), 0), r3 = se.getZoneAtCoord(this._context, n3); - if (r3) { - const e3 = this._helpPositionJumpOverViewZone(r3); + const n3 = Math.max(i2.getCurrentScrollTop() - (t2.y - e2.posy), 0), o3 = se.getZoneAtCoord(this._context, n3); + if (o3) { + const e3 = this._helpPositionJumpOverViewZone(o3); if (e3) - return new oe(null, 13, o2, e3); + return new re(null, 13, r2, e3); } const s2 = i2.getLineNumberAtVerticalOffset(n3); - return new oe(null, 13, o2, new ee.a(s2, 1)); + return new re(null, 13, r2, new ee.a(s2, 1)); } if (e2.posy > t2.y + t2.height) { - const r3 = i2.getCurrentScrollTop() + (e2.posy - t2.y), s2 = se.getZoneAtCoord(this._context, r3); + const o3 = i2.getCurrentScrollTop() + (e2.posy - t2.y), s2 = se.getZoneAtCoord(this._context, o3); if (s2) { const e3 = this._helpPositionJumpOverViewZone(s2); if (e3) - return new oe(null, 13, o2, e3); + return new re(null, 13, r2, e3); } - const a2 = i2.getLineNumberAtVerticalOffset(r3); - return new oe(null, 13, o2, new ee.a(a2, n2.getLineMaxColumn(a2))); + const a2 = i2.getLineNumberAtVerticalOffset(o3); + return new re(null, 13, r2, new ee.a(a2, n2.getLineMaxColumn(a2))); } - const r2 = i2.getLineNumberAtVerticalOffset(i2.getCurrentScrollTop() + (e2.posy - t2.y)); - return e2.posx < t2.x ? new oe(null, 13, o2, new ee.a(r2, 1)) : e2.posx > t2.x + t2.width ? new oe(null, 13, o2, new ee.a(r2, n2.getLineMaxColumn(r2))) : null; + const o2 = i2.getLineNumberAtVerticalOffset(i2.getCurrentScrollTop() + (e2.posy - t2.y)); + return e2.posx < t2.x ? new re(null, 13, r2, new ee.a(o2, 1)) : e2.posx > t2.x + t2.width ? new re(null, 13, r2, new ee.a(o2, n2.getLineMaxColumn(o2))) : null; } _findMousePosition(e2, t2) { const n2 = this._getPositionOutsideEditor(e2); @@ -43645,7 +43645,7 @@ ${Object(zn.b)(wi)} if (i2.type === 8 || i2.type === 5) { const e3 = this._helpPositionJumpOverViewZone(i2.detail); if (e3) - return new oe(i2.element, i2.type, i2.mouseColumn, e3, null, i2.detail); + return new re(i2.element, i2.type, i2.mouseColumn, e3, null, i2.detail); } return i2; } @@ -43713,7 +43713,7 @@ ${Object(zn.b)(wi)} e3.target = this.viewHelper.linesContentDomNode, t3.target = this.viewHelper.linesContentDomNode, this.viewHelper.linesContentDomNode.addEventListener("pointerdown", (n3) => { const i2 = n3.pointerType; i2 !== "mouse" ? i2 === "touch" ? (this._lastPointerType = "touch", e3.addPointer(n3.pointerId)) : (this._lastPointerType = "pen", t3.addPointer(n3.pointerId)) : this._lastPointerType = "mouse"; - }), this._register(o.l(this.viewHelper.linesContentDomNode, "MSGestureChange", (e4) => this._onGestureChange(e4), _e)), this._register(o.i(this.viewHelper.linesContentDomNode, "MSGestureTap", (e4) => this._onCaptureGestureTap(e4), true)); + }), this._register(r.l(this.viewHelper.linesContentDomNode, "MSGestureChange", (e4) => this._onGestureChange(e4), _e)), this._register(r.i(this.viewHelper.linesContentDomNode, "MSGestureTap", (e4) => this._onCaptureGestureTap(e4), true)); } }, 100), this._lastPointerType = "mouse"; } @@ -43735,7 +43735,7 @@ ${Object(zn.b)(wi)} } class we extends me { constructor(e2, t2, n2) { - super(e2, t2, n2), this._register(g.b.addTarget(this.viewHelper.linesContentDomNode)), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Tap, (e3) => this.onTap(e3))), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Change, (e3) => this.onChange(e3))), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Contextmenu, (e3) => this._onContextMenu(new S(e3, this.viewHelper.viewDomNode), false))), this._lastPointerType = "mouse", this._register(o.i(this.viewHelper.linesContentDomNode, "pointerdown", (e3) => { + super(e2, t2, n2), this._register(g.b.addTarget(this.viewHelper.linesContentDomNode)), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Tap, (e3) => this.onTap(e3))), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Change, (e3) => this.onChange(e3))), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Contextmenu, (e3) => this._onContextMenu(new S(e3, this.viewHelper.viewDomNode), false))), this._lastPointerType = "mouse", this._register(r.i(this.viewHelper.linesContentDomNode, "pointerdown", (e3) => { const t3 = e3.pointerType; this._lastPointerType = t3 !== "mouse" ? t3 === "touch" ? "touch" : "pen" : "mouse"; })); @@ -43758,7 +43758,7 @@ ${Object(zn.b)(wi)} } class ye extends me { constructor(e2, t2, n2) { - super(e2, t2, n2), this._register(g.b.addTarget(this.viewHelper.linesContentDomNode)), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Tap, (e3) => this.onTap(e3))), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Change, (e3) => this.onChange(e3))), this._register(o.i(this.viewHelper.linesContentDomNode, g.a.Contextmenu, (e3) => this._onContextMenu(new S(e3, this.viewHelper.viewDomNode), false))); + super(e2, t2, n2), this._register(g.b.addTarget(this.viewHelper.linesContentDomNode)), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Tap, (e3) => this.onTap(e3))), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Change, (e3) => this.onChange(e3))), this._register(r.i(this.viewHelper.linesContentDomNode, g.a.Contextmenu, (e3) => this._onContextMenu(new S(e3, this.viewHelper.viewDomNode), false))); } onTap(e2) { e2.preventDefault(), this.viewHelper.focusTextArea(); @@ -43839,15 +43839,15 @@ ${Object(zn.b)(wi)} prepareRender(e2) { if (this._renderLineNumbers === 0) return void (this._renderResult = null); - const t2 = m.d ? this._lineHeight % 2 == 0 ? " lh-even" : " lh-odd" : "", n2 = e2.visibleRange.startLineNumber, i2 = e2.visibleRange.endLineNumber, o2 = '<div class="' + Le.CLASS_NAME + t2 + '" style="left:' + this._lineNumbersLeft.toString() + "px;width:" + this._lineNumbersWidth.toString() + 'px;">', r2 = this._context.model.getLineCount(), s2 = []; + const t2 = m.d ? this._lineHeight % 2 == 0 ? " lh-even" : " lh-odd" : "", n2 = e2.visibleRange.startLineNumber, i2 = e2.visibleRange.endLineNumber, r2 = '<div class="' + Le.CLASS_NAME + t2 + '" style="left:' + this._lineNumbersLeft.toString() + "px;width:" + this._lineNumbersWidth.toString() + 'px;">', o2 = this._context.model.getLineCount(), s2 = []; for (let e3 = n2; e3 <= i2; e3++) { const t3 = e3 - n2; - if (!this._renderFinalNewline && e3 === r2 && this._context.model.getLineLength(e3) === 0) { + if (!this._renderFinalNewline && e3 === o2 && this._context.model.getLineLength(e3) === 0) { s2[t3] = ""; continue; } const i3 = this._getLineRenderLineNumber(e3); - s2[t3] = i3 ? o2 + i3 + "</div>" : ""; + s2[t3] = i3 ? r2 + i3 + "</div>" : ""; } this._renderResult = s2; } @@ -43894,29 +43894,29 @@ ${Object(zn.b)(wi)} } } Ne.CLASS_NAME = "glyph-margin", Ne.OUTER_CLASS_NAME = "margin"; - var Ie = n(117), Oe = n(145); - class De { + var Ie = n(117), De = n(145); + class Oe { constructor(e2, t2, n2) { this.top = e2, this.left = t2, this.width = n2; } setWidth(e2) { - return new De(this.top, this.left, e2); + return new Oe(this.top, this.left, e2); } } const Ae = _.f || _.h; class Re extends N { constructor(e2, t2, n2) { super(e2), this._primaryCursorPosition = new ee.a(1, 1), this._primaryCursorVisibleRange = null, this._viewController = t2, this._viewHelper = n2, this._scrollLeft = 0, this._scrollTop = 0; - const o2 = this._context.configuration.options, r2 = o2.get(117); - this._setAccessibilityOptions(o2), this._contentLeft = r2.contentLeft, this._contentWidth = r2.contentWidth, this._contentHeight = r2.height, this._fontInfo = o2.get(36), this._lineHeight = o2.get(51), this._emptySelectionClipboard = o2.get(26), this._copyWithSyntaxHighlighting = o2.get(16), this._visibleTextArea = null, this._selections = [new u.a(1, 1, 1, 1)], this._modelSelections = [new u.a(1, 1, 1, 1)], this._lastRenderPosition = null, this.textArea = Object(p.b)(document.createElement("textarea")), I.write(this.textArea, 6), this.textArea.setClassName("inputarea " + Oe.a), this.textArea.setAttribute("wrap", "off"), this.textArea.setAttribute("autocorrect", "off"), this.textArea.setAttribute("autocapitalize", "off"), this.textArea.setAttribute("autocomplete", "off"), this.textArea.setAttribute("spellcheck", "false"), this.textArea.setAttribute("aria-label", this._getAriaLabel(o2)), this.textArea.setAttribute("tabindex", String(o2.get(102))), this.textArea.setAttribute("role", "textbox"), this.textArea.setAttribute("aria-roledescription", i.a("editor", "editor")), this.textArea.setAttribute("aria-multiline", "true"), this.textArea.setAttribute("aria-haspopup", "false"), this.textArea.setAttribute("aria-autocomplete", "both"), m.h && o2.get(72) && this.textArea.setAttribute("readonly", "true"), this.textAreaCover = Object(p.b)(document.createElement("div")), this.textAreaCover.setPosition("absolute"); + const r2 = this._context.configuration.options, o2 = r2.get(117); + this._setAccessibilityOptions(r2), this._contentLeft = o2.contentLeft, this._contentWidth = o2.contentWidth, this._contentHeight = o2.height, this._fontInfo = r2.get(36), this._lineHeight = r2.get(51), this._emptySelectionClipboard = r2.get(26), this._copyWithSyntaxHighlighting = r2.get(16), this._visibleTextArea = null, this._selections = [new u.a(1, 1, 1, 1)], this._modelSelections = [new u.a(1, 1, 1, 1)], this._lastRenderPosition = null, this.textArea = Object(p.b)(document.createElement("textarea")), I.write(this.textArea, 6), this.textArea.setClassName("inputarea " + De.a), this.textArea.setAttribute("wrap", "off"), this.textArea.setAttribute("autocorrect", "off"), this.textArea.setAttribute("autocapitalize", "off"), this.textArea.setAttribute("autocomplete", "off"), this.textArea.setAttribute("spellcheck", "false"), this.textArea.setAttribute("aria-label", this._getAriaLabel(r2)), this.textArea.setAttribute("tabindex", String(r2.get(102))), this.textArea.setAttribute("role", "textbox"), this.textArea.setAttribute("aria-roledescription", i.a("editor", "editor")), this.textArea.setAttribute("aria-multiline", "true"), this.textArea.setAttribute("aria-haspopup", "false"), this.textArea.setAttribute("aria-autocomplete", "both"), m.h && r2.get(72) && this.textArea.setAttribute("readonly", "true"), this.textAreaCover = Object(p.b)(document.createElement("div")), this.textAreaCover.setPosition("absolute"); const s2 = {getLineCount: () => this._context.model.getLineCount(), getLineMaxColumn: (e3) => this._context.model.getLineMaxColumn(e3), getValueInRange: (e3, t3) => this._context.model.getValueInRange(e3, t3)}, a2 = {getDataToCopy: (e3) => { - const t3 = this._context.model.getPlainTextToCopy(this._modelSelections, this._emptySelectionClipboard, m.i), n3 = this._context.model.getEOL(), i2 = this._emptySelectionClipboard && this._modelSelections.length === 1 && this._modelSelections[0].isEmpty(), o3 = Array.isArray(t3) ? t3 : null, r3 = Array.isArray(t3) ? t3.join(n3) : t3; + const t3 = this._context.model.getPlainTextToCopy(this._modelSelections, this._emptySelectionClipboard, m.i), n3 = this._context.model.getEOL(), i2 = this._emptySelectionClipboard && this._modelSelections.length === 1 && this._modelSelections[0].isEmpty(), r3 = Array.isArray(t3) ? t3 : null, o3 = Array.isArray(t3) ? t3.join(n3) : t3; let s3 = void 0, a3 = null; - if (e3 && (Se.a.forceCopyWithSyntaxHighlighting || this._copyWithSyntaxHighlighting && r3.length < 65536)) { + if (e3 && (Se.a.forceCopyWithSyntaxHighlighting || this._copyWithSyntaxHighlighting && o3.length < 65536)) { const e4 = this._context.model.getRichTextToCopy(this._modelSelections, this._emptySelectionClipboard); e4 && (s3 = e4.html, a3 = e4.mode); } - return {isFromEmptySelection: i2, multicursorText: o3, text: r3, html: s3, mode: a3}; + return {isFromEmptySelection: i2, multicursorText: r3, text: o3, html: s3, mode: a3}; }, getScreenReaderContent: (e3) => { if (this._accessibilitySupport === 1) { if (m.f) { @@ -43949,17 +43949,17 @@ ${Object(zn.b)(wi)} const t3 = this._selections[0].startLineNumber, n3 = this._selections[0].startColumn - (e3.moveOneCharacterLeft ? 1 : 0); this._context.model.revealRange("keyboard", true, new te.a(t3, n3, t3, n3), 0, 1); const i2 = this._viewHelper.visibleRangeForPositionRelativeToEditor(t3, n3); - i2 && (this._visibleTextArea = new De(this._context.viewLayout.getVerticalOffsetForLineNumber(t3), i2.left, Ae ? 0 : 1), this._render()), this.textArea.setClassName(`inputarea ${Oe.a} ime-input`), this._viewController.compositionStart(); + i2 && (this._visibleTextArea = new Oe(this._context.viewLayout.getVerticalOffsetForLineNumber(t3), i2.left, Ae ? 0 : 1), this._render()), this.textArea.setClassName(`inputarea ${De.a} ime-input`), this._viewController.compositionStart(); })), this._register(this._textAreaInput.onCompositionUpdate((e3) => { _.f ? this._visibleTextArea = this._visibleTextArea.setWidth(0) : this._visibleTextArea = this._visibleTextArea.setWidth(function(e4, t3) { const n3 = document.createElement("canvas").getContext("2d"); - n3.font = (i2 = t3, o3 = "normal", r3 = i2.fontWeight, s3 = i2.fontSize, a3 = i2.lineHeight, l2 = i2.fontFamily, `${o3} normal ${r3} ${s3}px / ${a3}px ${l2}`); - var i2, o3, r3, s3, a3, l2; + n3.font = (i2 = t3, r3 = "normal", o3 = i2.fontWeight, s3 = i2.fontSize, a3 = i2.lineHeight, l2 = i2.fontFamily, `${r3} normal ${o3} ${s3}px / ${a3}px ${l2}`); + var i2, r3, o3, s3, a3, l2; const c2 = n3.measureText(e4); return _.h ? c2.width + 2 : c2.width; }(e3.data, this._fontInfo)), this._render(); })), this._register(this._textAreaInput.onCompositionEnd(() => { - this._visibleTextArea = null, this._render(), this.textArea.setClassName("inputarea " + Oe.a), this._viewController.compositionEnd(); + this._visibleTextArea = null, this._render(), this.textArea.setClassName("inputarea " + De.a), this._viewController.compositionEnd(); })), this._register(this._textAreaInput.onFocus(() => { this._context.model.setHasFocus(true); })), this._register(this._textAreaInput.onBlur(() => { @@ -43971,12 +43971,12 @@ ${Object(zn.b)(wi)} } _getWordBeforePosition(e2) { const t2 = this._context.model.getLineContent(e2.lineNumber), n2 = Object(Ie.a)(this._context.configuration.options.get(105)); - let i2 = e2.column, o2 = 0; + let i2 = e2.column, r2 = 0; for (; i2 > 1; ) { - const r2 = t2.charCodeAt(i2 - 2); - if (n2.get(r2) !== 0 || o2 > 50) + const o2 = t2.charCodeAt(i2 - 2); + if (n2.get(o2) !== 0 || r2 > 50) return t2.substring(i2 - 1, e2.column - 1); - o2++, i2--; + r2++, i2--; } return t2.substring(0, e2.column - 1); } @@ -44053,10 +44053,10 @@ ${Object(zn.b)(wi)} const t2 = this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber) - this._scrollTop; t2 < 0 || t2 > this._contentHeight ? this._renderAtTopLeft() : m.f ? this._renderInsideEditor(this._primaryCursorPosition, t2, e2, Ae ? 0 : 1, this._lineHeight) : this._renderInsideEditor(this._primaryCursorPosition, t2, e2, Ae ? 0 : 1, Ae ? 0 : 1); } - _renderInsideEditor(e2, t2, n2, i2, o2) { + _renderInsideEditor(e2, t2, n2, i2, r2) { this._lastRenderPosition = e2; - const r2 = this.textArea, s2 = this.textAreaCover; - c.a.applyFontInfo(r2, this._fontInfo), r2.setTop(t2), r2.setLeft(n2), r2.setWidth(i2), r2.setHeight(o2), s2.setTop(0), s2.setLeft(0), s2.setWidth(0), s2.setHeight(0); + const o2 = this.textArea, s2 = this.textAreaCover; + c.a.applyFontInfo(o2, this._fontInfo), o2.setTop(t2), o2.setLeft(n2), o2.setWidth(i2), o2.setHeight(r2), s2.setTop(0), s2.setLeft(0), s2.setWidth(0), s2.setHeight(0); } _renderAtTopLeft() { this._lastRenderPosition = null; @@ -44247,11 +44247,11 @@ ${Object(zn.b)(wi)} } } class We { - constructor(e2, t2, n2, i2, o2, r2) { - this.element = e2, this.type = t2, this.mouseColumn = n2, this.position = i2, this.range = o2, this.detail = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.element = e2, this.type = t2, this.mouseColumn = n2, this.position = i2, this.range = r2, this.detail = o2; } toString() { - return oe.toString(this); + return re.toString(this); } } var ze = n(132); @@ -44293,53 +44293,53 @@ ${Object(zn.b)(wi)} } if (e2 > i2) return null; - let o2 = 0, r2 = 0; + let r2 = 0, o2 = 0; for (let s2 = n2; s2 <= i2; s2++) { const n3 = s2 - this._rendLineNumberStart; - e2 <= s2 && s2 <= t2 && (r2 === 0 ? (o2 = n3, r2 = 1) : r2++); + e2 <= s2 && s2 <= t2 && (o2 === 0 ? (r2 = n3, o2 = 1) : o2++); } if (e2 < n2) { let i3 = 0; i3 = t2 < n2 ? t2 - e2 + 1 : n2 - e2, this._rendLineNumberStart -= i3; } - return this._lines.splice(o2, r2); + return this._lines.splice(r2, o2); } onLinesChanged(e2, t2) { if (this.getCount() === 0) return false; const n2 = this.getStartLineNumber(), i2 = this.getEndLineNumber(); - let o2 = false; - for (let r2 = e2; r2 <= t2; r2++) - r2 >= n2 && r2 <= i2 && (this._lines[r2 - this._rendLineNumberStart].onContentChanged(), o2 = true); - return o2; + let r2 = false; + for (let o2 = e2; o2 <= t2; o2++) + o2 >= n2 && o2 <= i2 && (this._lines[o2 - this._rendLineNumberStart].onContentChanged(), r2 = true); + return r2; } onLinesInserted(e2, t2) { if (this.getCount() === 0) return null; - const n2 = t2 - e2 + 1, i2 = this.getStartLineNumber(), o2 = this.getEndLineNumber(); + const n2 = t2 - e2 + 1, i2 = this.getStartLineNumber(), r2 = this.getEndLineNumber(); if (e2 <= i2) return this._rendLineNumberStart += n2, null; - if (e2 > o2) + if (e2 > r2) return null; - if (n2 + e2 > o2) { - return this._lines.splice(e2 - this._rendLineNumberStart, o2 - e2 + 1); + if (n2 + e2 > r2) { + return this._lines.splice(e2 - this._rendLineNumberStart, r2 - e2 + 1); } - const r2 = []; + const o2 = []; for (let e3 = 0; e3 < n2; e3++) - r2[e3] = this._createLine(); + o2[e3] = this._createLine(); const s2 = e2 - this._rendLineNumberStart, a2 = this._lines.slice(0, s2), l2 = this._lines.slice(s2, this._lines.length - n2), c2 = this._lines.slice(this._lines.length - n2, this._lines.length); - return this._lines = a2.concat(r2).concat(l2), c2; + return this._lines = a2.concat(o2).concat(l2), c2; } onTokensChanged(e2) { if (this.getCount() === 0) return false; const t2 = this.getStartLineNumber(), n2 = this.getEndLineNumber(); let i2 = false; - for (let o2 = 0, r2 = e2.length; o2 < r2; o2++) { - const r3 = e2[o2]; - if (r3.toLineNumber < t2 || r3.fromLineNumber > n2) + for (let r2 = 0, o2 = e2.length; r2 < o2; r2++) { + const o3 = e2[r2]; + if (o3.toLineNumber < t2 || o3.fromLineNumber > n2) continue; - const s2 = Math.max(t2, r3.fromLineNumber), a2 = Math.min(n2, r3.toLineNumber); + const s2 = Math.max(t2, o3.fromLineNumber), a2 = Math.min(n2, o3.toLineNumber); for (let e3 = s2; e3 <= a2; e3++) { const t3 = e3 - this._rendLineNumberStart; this._lines[t3].onTokensChanged(), i2 = true; @@ -44402,8 +44402,8 @@ ${Object(zn.b)(wi)} return this._linesCollection.getLine(e2); } renderLines(e2) { - const t2 = this._linesCollection._get(), n2 = new Ve(this.domNode.domNode, this._host, e2), i2 = {rendLineNumberStart: t2.rendLineNumberStart, lines: t2.lines, linesLength: t2.lines.length}, o2 = n2.render(i2, e2.startLineNumber, e2.endLineNumber, e2.relativeVerticalOffset); - this._linesCollection._set(o2.rendLineNumberStart, o2.lines); + const t2 = this._linesCollection._get(), n2 = new Ve(this.domNode.domNode, this._host, e2), i2 = {rendLineNumberStart: t2.rendLineNumberStart, lines: t2.lines, linesLength: t2.lines.length}, r2 = n2.render(i2, e2.startLineNumber, e2.endLineNumber, e2.relativeVerticalOffset); + this._linesCollection._set(r2.rendLineNumberStart, r2.lines); } } class Ve { @@ -44411,42 +44411,42 @@ ${Object(zn.b)(wi)} this.domNode = e2, this.host = t2, this.viewportData = n2; } render(e2, t2, n2, i2) { - const o2 = {rendLineNumberStart: e2.rendLineNumberStart, lines: e2.lines.slice(0), linesLength: e2.linesLength}; - if (o2.rendLineNumberStart + o2.linesLength - 1 < t2 || n2 < o2.rendLineNumberStart) { - o2.rendLineNumberStart = t2, o2.linesLength = n2 - t2 + 1, o2.lines = []; + const r2 = {rendLineNumberStart: e2.rendLineNumberStart, lines: e2.lines.slice(0), linesLength: e2.linesLength}; + if (r2.rendLineNumberStart + r2.linesLength - 1 < t2 || n2 < r2.rendLineNumberStart) { + r2.rendLineNumberStart = t2, r2.linesLength = n2 - t2 + 1, r2.lines = []; for (let e3 = t2; e3 <= n2; e3++) - o2.lines[e3 - t2] = this.host.createVisibleLine(); - return this._finishRendering(o2, true, i2), o2; - } - if (this._renderUntouchedLines(o2, Math.max(t2 - o2.rendLineNumberStart, 0), Math.min(n2 - o2.rendLineNumberStart, o2.linesLength - 1), i2, t2), o2.rendLineNumberStart > t2) { - const e3 = t2, r2 = Math.min(n2, o2.rendLineNumberStart - 1); - e3 <= r2 && (this._insertLinesBefore(o2, e3, r2, i2, t2), o2.linesLength += r2 - e3 + 1); - } else if (o2.rendLineNumberStart < t2) { - const e3 = Math.min(o2.linesLength, t2 - o2.rendLineNumberStart); - e3 > 0 && (this._removeLinesBefore(o2, e3), o2.linesLength -= e3); - } - if (o2.rendLineNumberStart = t2, o2.rendLineNumberStart + o2.linesLength - 1 < n2) { - const e3 = o2.rendLineNumberStart + o2.linesLength, r2 = n2; - e3 <= r2 && (this._insertLinesAfter(o2, e3, r2, i2, t2), o2.linesLength += r2 - e3 + 1); - } else if (o2.rendLineNumberStart + o2.linesLength - 1 > n2) { - const e3 = Math.max(0, n2 - o2.rendLineNumberStart + 1), t3 = o2.linesLength - 1 - e3 + 1; - t3 > 0 && (this._removeLinesAfter(o2, t3), o2.linesLength -= t3); - } - return this._finishRendering(o2, false, i2), o2; - } - _renderUntouchedLines(e2, t2, n2, i2, o2) { - const r2 = e2.rendLineNumberStart, s2 = e2.lines; + r2.lines[e3 - t2] = this.host.createVisibleLine(); + return this._finishRendering(r2, true, i2), r2; + } + if (this._renderUntouchedLines(r2, Math.max(t2 - r2.rendLineNumberStart, 0), Math.min(n2 - r2.rendLineNumberStart, r2.linesLength - 1), i2, t2), r2.rendLineNumberStart > t2) { + const e3 = t2, o2 = Math.min(n2, r2.rendLineNumberStart - 1); + e3 <= o2 && (this._insertLinesBefore(r2, e3, o2, i2, t2), r2.linesLength += o2 - e3 + 1); + } else if (r2.rendLineNumberStart < t2) { + const e3 = Math.min(r2.linesLength, t2 - r2.rendLineNumberStart); + e3 > 0 && (this._removeLinesBefore(r2, e3), r2.linesLength -= e3); + } + if (r2.rendLineNumberStart = t2, r2.rendLineNumberStart + r2.linesLength - 1 < n2) { + const e3 = r2.rendLineNumberStart + r2.linesLength, o2 = n2; + e3 <= o2 && (this._insertLinesAfter(r2, e3, o2, i2, t2), r2.linesLength += o2 - e3 + 1); + } else if (r2.rendLineNumberStart + r2.linesLength - 1 > n2) { + const e3 = Math.max(0, n2 - r2.rendLineNumberStart + 1), t3 = r2.linesLength - 1 - e3 + 1; + t3 > 0 && (this._removeLinesAfter(r2, t3), r2.linesLength -= t3); + } + return this._finishRendering(r2, false, i2), r2; + } + _renderUntouchedLines(e2, t2, n2, i2, r2) { + const o2 = e2.rendLineNumberStart, s2 = e2.lines; for (let e3 = t2; e3 <= n2; e3++) { - const t3 = r2 + e3; - s2[e3].layoutLine(t3, i2[t3 - o2]); + const t3 = o2 + e3; + s2[e3].layoutLine(t3, i2[t3 - r2]); } } - _insertLinesBefore(e2, t2, n2, i2, o2) { - const r2 = []; + _insertLinesBefore(e2, t2, n2, i2, r2) { + const o2 = []; let s2 = 0; for (let e3 = t2; e3 <= n2; e3++) - r2[s2++] = this.host.createVisibleLine(); - e2.lines = r2.concat(e2.lines); + o2[s2++] = this.host.createVisibleLine(); + e2.lines = o2.concat(e2.lines); } _removeLinesBefore(e2, t2) { for (let n2 = 0; n2 < t2; n2++) { @@ -44455,12 +44455,12 @@ ${Object(zn.b)(wi)} } e2.lines.splice(0, t2); } - _insertLinesAfter(e2, t2, n2, i2, o2) { - const r2 = []; + _insertLinesAfter(e2, t2, n2, i2, r2) { + const o2 = []; let s2 = 0; for (let e3 = t2; e3 <= n2; e3++) - r2[s2++] = this.host.createVisibleLine(); - e2.lines = e2.lines.concat(r2); + o2[s2++] = this.host.createVisibleLine(); + e2.lines = e2.lines.concat(o2); } _removeLinesAfter(e2, t2) { const n2 = e2.linesLength - t2; @@ -44471,32 +44471,32 @@ ${Object(zn.b)(wi)} e2.lines.splice(n2, t2); } _finishRenderingNewLines(e2, t2, n2, i2) { - const o2 = this.domNode.lastChild; - t2 || !o2 ? this.domNode.innerHTML = n2 : o2.insertAdjacentHTML("afterend", n2); - let r2 = this.domNode.lastChild; + const r2 = this.domNode.lastChild; + t2 || !r2 ? this.domNode.innerHTML = n2 : r2.insertAdjacentHTML("afterend", n2); + let o2 = this.domNode.lastChild; for (let t3 = e2.linesLength - 1; t3 >= 0; t3--) { const n3 = e2.lines[t3]; - i2[t3] && (n3.setDomNode(r2), r2 = r2.previousSibling); + i2[t3] && (n3.setDomNode(o2), o2 = o2.previousSibling); } } _finishRenderingInvalidLines(e2, t2, n2) { const i2 = document.createElement("div"); i2.innerHTML = t2; for (let t3 = 0; t3 < e2.linesLength; t3++) { - const o2 = e2.lines[t3]; + const r2 = e2.lines[t3]; if (n2[t3]) { - const e3 = i2.firstChild, t4 = o2.getDomNode(); - t4.parentNode.replaceChild(e3, t4), o2.setDomNode(e3); + const e3 = i2.firstChild, t4 = r2.getDomNode(); + t4.parentNode.replaceChild(e3, t4), r2.setDomNode(e3); } } } _finishRendering(e2, t2, n2) { - const i2 = Ve._sb, o2 = e2.linesLength, r2 = e2.lines, s2 = e2.rendLineNumberStart, a2 = []; + const i2 = Ve._sb, r2 = e2.linesLength, o2 = e2.lines, s2 = e2.rendLineNumberStart, a2 = []; { i2.reset(); let l2 = false; - for (let e3 = 0; e3 < o2; e3++) { - const t3 = r2[e3]; + for (let e3 = 0; e3 < r2; e3++) { + const t3 = o2[e3]; a2[e3] = false; if (t3.getDomNode()) continue; @@ -44508,11 +44508,11 @@ ${Object(zn.b)(wi)} i2.reset(); let t3 = false; const l2 = []; - for (let e3 = 0; e3 < o2; e3++) { - const o3 = r2[e3]; + for (let e3 = 0; e3 < r2; e3++) { + const r3 = o2[e3]; if (l2[e3] = false, a2[e3]) continue; - o3.renderLine(e3 + s2, n2[e3], this.viewportData, i2) && (l2[e3] = true, t3 = true); + r3.renderLine(e3 + s2, n2[e3], this.viewportData, i2) && (l2[e3] = true, t3 = true); } t3 && this._finishRenderingInvalidLines(e2, i2.build(), l2); } @@ -44612,11 +44612,11 @@ ${Object(zn.b)(wi)} this._lineHeight = this._configuration.options.get(51); } renderLine(e2, t2, n2, i2) { - let o2 = ""; + let r2 = ""; for (let t3 = 0, i3 = this._dynamicOverlays.length; t3 < i3; t3++) { - o2 += this._dynamicOverlays[t3].render(n2.startLineNumber, e2); + r2 += this._dynamicOverlays[t3].render(n2.startLineNumber, e2); } - return this._renderedContent !== o2 && (this._renderedContent = o2, i2.appendASCIIString('<div style="position:absolute;top:'), i2.appendASCIIString(String(t2)), i2.appendASCIIString("px;width:100%;height:"), i2.appendASCIIString(String(this._lineHeight)), i2.appendASCIIString('px;">'), i2.appendASCIIString(o2), i2.appendASCIIString("</div>"), true); + return this._renderedContent !== r2 && (this._renderedContent = r2, i2.appendASCIIString('<div style="position:absolute;top:'), i2.appendASCIIString(String(t2)), i2.appendASCIIString("px;width:100%;height:"), i2.appendASCIIString(String(this._lineHeight)), i2.appendASCIIString('px;">'), i2.appendASCIIString(r2), i2.appendASCIIString("</div>"), true); } layoutLine(e2, t2) { this._domNode && (this._domNode.setTop(t2), this._domNode.setHeight(this._lineHeight)); @@ -44743,8 +44743,8 @@ ${Object(zn.b)(wi)} class Ye { constructor(e2, t2, n2) { this._context = e2, this._viewDomNode = t2, this._actual = n2, this.domNode = Object(p.b)(this._actual.getDomNode()), this.id = this._actual.getId(), this.allowEditorOverflow = this._actual.allowEditorOverflow || false, this.suppressMouseDown = this._actual.suppressMouseDown || false; - const i2 = this._context.configuration.options, o2 = i2.get(117); - this._fixedOverflowWidgets = i2.get(30), this._contentWidth = o2.contentWidth, this._contentLeft = o2.contentLeft, this._lineHeight = i2.get(51), this._range = null, this._viewRange = null, this._preference = [], this._cachedDomNodeClientWidth = -1, this._cachedDomNodeClientHeight = -1, this._maxWidth = this._getMaxWidth(), this._isVisible = false, this._renderData = null, this.domNode.setPosition(this._fixedOverflowWidgets && this.allowEditorOverflow ? "fixed" : "absolute"), this.domNode.setVisibility("hidden"), this.domNode.setAttribute("widgetId", this.id), this.domNode.setMaxWidth(this._maxWidth); + const i2 = this._context.configuration.options, r2 = i2.get(117); + this._fixedOverflowWidgets = i2.get(30), this._contentWidth = r2.contentWidth, this._contentLeft = r2.contentLeft, this._lineHeight = i2.get(51), this._range = null, this._viewRange = null, this._preference = [], this._cachedDomNodeClientWidth = -1, this._cachedDomNodeClientHeight = -1, this._maxWidth = this._getMaxWidth(), this._isVisible = false, this._renderData = null, this.domNode.setPosition(this._fixedOverflowWidgets && this.allowEditorOverflow ? "fixed" : "absolute"), this.domNode.setVisibility("hidden"), this.domNode.setAttribute("widgetId", this.id), this.domNode.setMaxWidth(this._maxWidth); } onConfigurationChanged(e2) { const t2 = this._context.configuration.options; @@ -44768,26 +44768,26 @@ ${Object(zn.b)(wi)} setPosition(e2, t2) { this._setPosition(e2), this._preference = t2, this._cachedDomNodeClientWidth = -1, this._cachedDomNodeClientHeight = -1; } - _layoutBoxInViewport(e2, t2, n2, i2, o2) { - const r2 = e2.top, s2 = r2, a2 = t2.top + this._lineHeight, l2 = r2 - i2, c2 = s2 >= i2, d2 = a2, h2 = o2.viewportHeight - a2 >= i2; + _layoutBoxInViewport(e2, t2, n2, i2, r2) { + const o2 = e2.top, s2 = o2, a2 = t2.top + this._lineHeight, l2 = o2 - i2, c2 = s2 >= i2, d2 = a2, h2 = r2.viewportHeight - a2 >= i2; let u2 = e2.left, p2 = t2.left; - return u2 + n2 > o2.scrollLeft + o2.viewportWidth && (u2 = o2.scrollLeft + o2.viewportWidth - n2), p2 + n2 > o2.scrollLeft + o2.viewportWidth && (p2 = o2.scrollLeft + o2.viewportWidth - n2), u2 < o2.scrollLeft && (u2 = o2.scrollLeft), p2 < o2.scrollLeft && (p2 = o2.scrollLeft), {fitsAbove: c2, aboveTop: l2, aboveLeft: u2, fitsBelow: h2, belowTop: d2, belowLeft: p2}; + return u2 + n2 > r2.scrollLeft + r2.viewportWidth && (u2 = r2.scrollLeft + r2.viewportWidth - n2), p2 + n2 > r2.scrollLeft + r2.viewportWidth && (p2 = r2.scrollLeft + r2.viewportWidth - n2), u2 < r2.scrollLeft && (u2 = r2.scrollLeft), p2 < r2.scrollLeft && (p2 = r2.scrollLeft), {fitsAbove: c2, aboveTop: l2, aboveLeft: u2, fitsBelow: h2, belowTop: d2, belowLeft: p2}; } _layoutHorizontalSegmentInPage(e2, t2, n2, i2) { - const r2 = Math.max(0, t2.left - i2), s2 = Math.min(t2.left + t2.width + i2, e2.width); - let a2 = t2.left + n2 - o.d.scrollX; + const o2 = Math.max(0, t2.left - i2), s2 = Math.min(t2.left + t2.width + i2, e2.width); + let a2 = t2.left + n2 - r.d.scrollX; if (a2 + i2 > s2) { const e3 = a2 - (s2 - i2); a2 -= e3, n2 -= e3; } - if (a2 < r2) { - const e3 = a2 - r2; + if (a2 < o2) { + const e3 = a2 - o2; a2 -= e3, n2 -= e3; } return [n2, a2]; } - _layoutBoxInPage(e2, t2, n2, i2, r2) { - const s2 = e2.top - i2, a2 = t2.top + this._lineHeight, l2 = o.C(this._viewDomNode.domNode), c2 = l2.top + s2 - o.d.scrollY, d2 = l2.top + a2 - o.d.scrollY, h2 = o.y(document.body), [u2, p2] = this._layoutHorizontalSegmentInPage(h2, l2, e2.left - r2.scrollLeft + this._contentLeft, n2), [m2, g2] = this._layoutHorizontalSegmentInPage(h2, l2, t2.left - r2.scrollLeft + this._contentLeft, n2), f2 = c2 >= 22, b2 = d2 + i2 <= h2.height - 22; + _layoutBoxInPage(e2, t2, n2, i2, o2) { + const s2 = e2.top - i2, a2 = t2.top + this._lineHeight, l2 = r.C(this._viewDomNode.domNode), c2 = l2.top + s2 - r.d.scrollY, d2 = l2.top + a2 - r.d.scrollY, h2 = r.y(document.body), [u2, p2] = this._layoutHorizontalSegmentInPage(h2, l2, e2.left - o2.scrollLeft + this._contentLeft, n2), [m2, g2] = this._layoutHorizontalSegmentInPage(h2, l2, t2.left - o2.scrollLeft + this._contentLeft, n2), f2 = c2 >= 22, b2 = d2 + i2 <= h2.height - 22; return this._fixedOverflowWidgets ? {fitsAbove: f2, aboveTop: Math.max(c2, 22), aboveLeft: p2, fitsBelow: b2, belowTop: d2, belowLeft: g2} : {fitsAbove: f2, aboveTop: s2, aboveLeft: u2, fitsBelow: b2, belowTop: a2, belowLeft: m2}; } _prepareRenderWidgetAtExactPositionOverflowing(e2) { @@ -44802,14 +44802,14 @@ ${Object(zn.b)(wi)} let n2 = t2[0], i2 = t2[0]; for (const e3 of t2) e3.lineNumber < n2.lineNumber && (n2 = e3), e3.lineNumber > i2.lineNumber && (i2 = e3); - let o2 = 1073741824; - for (const e3 of n2.ranges) - e3.left < o2 && (o2 = e3.left); let r2 = 1073741824; - for (const e3 of i2.ranges) + for (const e3 of n2.ranges) e3.left < r2 && (r2 = e3.left); - const s2 = e2.getVerticalOffsetForLineNumber(n2.lineNumber) - e2.scrollTop, a2 = new Ke(s2, o2), l2 = e2.getVerticalOffsetForLineNumber(i2.lineNumber) - e2.scrollTop; - return [a2, new Ke(l2, r2)]; + let o2 = 1073741824; + for (const e3 of i2.ranges) + e3.left < o2 && (o2 = e3.left); + const s2 = e2.getVerticalOffsetForLineNumber(n2.lineNumber) - e2.scrollTop, a2 = new Ke(s2, r2), l2 = e2.getVerticalOffsetForLineNumber(i2.lineNumber) - e2.scrollTop; + return [a2, new Ke(l2, o2)]; } _prepareRenderWidget(e2) { const [t2, n2] = this._getTopAndBottomLeft(e2); @@ -44849,7 +44849,7 @@ ${Object(zn.b)(wi)} } } n(216); - var Ze = n(15); + var Ze = n(16); let Xe = true; class Qe extends Ee { constructor(e2) { @@ -44898,14 +44898,14 @@ ${Object(zn.b)(wi)} prepareRender(e2) { if (!this._shouldRenderThis()) return void (this._renderData = null); - const t2 = this._renderOne(e2), n2 = e2.visibleRange.startLineNumber, i2 = e2.visibleRange.endLineNumber, o2 = this._cursorLineNumbers.length; - let r2 = 0; + const t2 = this._renderOne(e2), n2 = e2.visibleRange.startLineNumber, i2 = e2.visibleRange.endLineNumber, r2 = this._cursorLineNumbers.length; + let o2 = 0; const s2 = []; for (let e3 = n2; e3 <= i2; e3++) { const i3 = e3 - n2; - for (; r2 < o2 && this._cursorLineNumbers[r2] < e3; ) - r2++; - r2 < o2 && this._cursorLineNumbers[r2] === e3 ? s2[i3] = t2 : s2[i3] = ""; + for (; o2 < r2 && this._cursorLineNumbers[o2] < e3; ) + o2++; + o2 < r2 && this._cursorLineNumbers[o2] === e3 ? s2[i3] = t2 : s2[i3] = ""; } this._renderData = s2; } @@ -44984,9 +44984,9 @@ ${Object(zn.b)(wi)} prepareRender(e2) { const t2 = e2.getDecorationsInViewport(); let n2 = [], i2 = 0; - for (let e3 = 0, o3 = t2.length; e3 < o3; e3++) { - const o4 = t2[e3]; - o4.options.className && (n2[i2++] = o4); + for (let e3 = 0, r3 = t2.length; e3 < r3; e3++) { + const r4 = t2[e3]; + r4.options.className && (n2[i2++] = r4); } n2 = n2.sort((e3, t3) => { if (e3.options.zIndex < t3.options.zIndex) @@ -44996,52 +44996,52 @@ ${Object(zn.b)(wi)} const n3 = e3.options.className, i3 = t3.options.className; return n3 < i3 ? -1 : n3 > i3 ? 1 : te.a.compareRangesUsingStarts(e3.range, t3.range); }); - const o2 = e2.visibleRange.startLineNumber, r2 = e2.visibleRange.endLineNumber, s2 = []; - for (let e3 = o2; e3 <= r2; e3++) { - s2[e3 - o2] = ""; + const r2 = e2.visibleRange.startLineNumber, o2 = e2.visibleRange.endLineNumber, s2 = []; + for (let e3 = r2; e3 <= o2; e3++) { + s2[e3 - r2] = ""; } this._renderWholeLineDecorations(e2, n2, s2), this._renderNormalDecorations(e2, n2, s2), this._renderResult = s2; } _renderWholeLineDecorations(e2, t2, n2) { - const i2 = String(this._lineHeight), o2 = e2.visibleRange.startLineNumber, r2 = e2.visibleRange.endLineNumber; + const i2 = String(this._lineHeight), r2 = e2.visibleRange.startLineNumber, o2 = e2.visibleRange.endLineNumber; for (let e3 = 0, s2 = t2.length; e3 < s2; e3++) { const s3 = t2[e3]; if (!s3.options.isWholeLine) continue; - const a2 = '<div class="cdr ' + s3.options.className + '" style="left:0;width:100%;height:' + i2 + 'px;"></div>', l2 = Math.max(s3.range.startLineNumber, o2), c2 = Math.min(s3.range.endLineNumber, r2); + const a2 = '<div class="cdr ' + s3.options.className + '" style="left:0;width:100%;height:' + i2 + 'px;"></div>', l2 = Math.max(s3.range.startLineNumber, r2), c2 = Math.min(s3.range.endLineNumber, o2); for (let e4 = l2; e4 <= c2; e4++) { - n2[e4 - o2] += a2; + n2[e4 - r2] += a2; } } } _renderNormalDecorations(e2, t2, n2) { - const i2 = String(this._lineHeight), o2 = e2.visibleRange.startLineNumber; - let r2 = null, s2 = false, a2 = null; + const i2 = String(this._lineHeight), r2 = e2.visibleRange.startLineNumber; + let o2 = null, s2 = false, a2 = null; for (let l2 = 0, c2 = t2.length; l2 < c2; l2++) { const c3 = t2[l2]; if (c3.options.isWholeLine) continue; const d2 = c3.options.className, h2 = Boolean(c3.options.showIfCollapsed); let u2 = c3.range; - h2 && u2.endColumn === 1 && u2.endLineNumber !== u2.startLineNumber && (u2 = new te.a(u2.startLineNumber, u2.startColumn, u2.endLineNumber - 1, this._context.model.getLineMaxColumn(u2.endLineNumber - 1))), r2 === d2 && s2 === h2 && te.a.areIntersectingOrTouching(a2, u2) ? a2 = te.a.plusRange(a2, u2) : (r2 !== null && this._renderNormalDecoration(e2, a2, r2, s2, i2, o2, n2), r2 = d2, s2 = h2, a2 = u2); + h2 && u2.endColumn === 1 && u2.endLineNumber !== u2.startLineNumber && (u2 = new te.a(u2.startLineNumber, u2.startColumn, u2.endLineNumber - 1, this._context.model.getLineMaxColumn(u2.endLineNumber - 1))), o2 === d2 && s2 === h2 && te.a.areIntersectingOrTouching(a2, u2) ? a2 = te.a.plusRange(a2, u2) : (o2 !== null && this._renderNormalDecoration(e2, a2, o2, s2, i2, r2, n2), o2 = d2, s2 = h2, a2 = u2); } - r2 !== null && this._renderNormalDecoration(e2, a2, r2, s2, i2, o2, n2); + o2 !== null && this._renderNormalDecoration(e2, a2, o2, s2, i2, r2, n2); } - _renderNormalDecoration(e2, t2, n2, i2, o2, r2, s2) { + _renderNormalDecoration(e2, t2, n2, i2, r2, o2, s2) { const a2 = e2.linesVisibleRangesForRange(t2, n2 === "findMatch"); if (a2) for (let e3 = 0, t3 = a2.length; e3 < t3; e3++) { const t4 = a2[e3]; if (t4.outsideRenderedLine) continue; - const l2 = t4.lineNumber - r2; + const l2 = t4.lineNumber - o2; if (i2 && t4.ranges.length === 1) { const e4 = t4.ranges[0]; e4.width === 0 && (t4.ranges[0] = new A(e4.left, this._typicalHalfwidthCharacterWidth)); } for (let e4 = 0, i3 = t4.ranges.length; e4 < i3; e4++) { - const i4 = t4.ranges[e4], r3 = '<div class="cdr ' + n2 + '" style="left:' + String(i4.left) + "px;width:" + String(i4.width) + "px;height:" + o2 + 'px;"></div>'; - s2[l2] += r3; + const i4 = t4.ranges[e4], o3 = '<div class="cdr ' + n2 + '" style="left:' + String(i4.left) + "px;width:" + String(i4.width) + "px;height:" + r2 + 'px;"></div>'; + s2[l2] += o3; } } } @@ -45056,7 +45056,7 @@ ${Object(zn.b)(wi)} class it extends N { constructor(e2, t2, n2, i2) { super(e2); - const r2 = this._context.configuration.options, s2 = r2.get(84), a2 = r2.get(58), l2 = r2.get(28), c2 = r2.get(87), d2 = {listenOnDomNode: n2.domNode, className: "editor-scrollable " + Object(B.f)(e2.theme.type), useShadows: false, lazyRender: true, vertical: s2.vertical, horizontal: s2.horizontal, verticalHasArrows: s2.verticalHasArrows, horizontalHasArrows: s2.horizontalHasArrows, verticalScrollbarSize: s2.verticalScrollbarSize, verticalSliderSize: s2.verticalSliderSize, horizontalScrollbarSize: s2.horizontalScrollbarSize, horizontalSliderSize: s2.horizontalSliderSize, handleMouseWheel: s2.handleMouseWheel, alwaysConsumeMouseWheel: s2.alwaysConsumeMouseWheel, arrowSize: s2.arrowSize, mouseWheelScrollSensitivity: a2, fastScrollSensitivity: l2, scrollPredominantAxis: c2}; + const o2 = this._context.configuration.options, s2 = o2.get(84), a2 = o2.get(58), l2 = o2.get(28), c2 = o2.get(87), d2 = {listenOnDomNode: n2.domNode, className: "editor-scrollable " + Object(B.f)(e2.theme.type), useShadows: false, lazyRender: true, vertical: s2.vertical, horizontal: s2.horizontal, verticalHasArrows: s2.verticalHasArrows, horizontalHasArrows: s2.horizontalHasArrows, verticalScrollbarSize: s2.verticalScrollbarSize, verticalSliderSize: s2.verticalSliderSize, horizontalScrollbarSize: s2.horizontalScrollbarSize, horizontalSliderSize: s2.horizontalSliderSize, handleMouseWheel: s2.handleMouseWheel, alwaysConsumeMouseWheel: s2.alwaysConsumeMouseWheel, arrowSize: s2.arrowSize, mouseWheelScrollSensitivity: a2, fastScrollSensitivity: l2, scrollPredominantAxis: c2}; this.scrollbar = this._register(new nt.c(t2.domNode, d2, this._context.viewLayout.getScrollable())), I.write(this.scrollbar.getDomNode(), 5), this.scrollbarDomNode = Object(p.b)(this.scrollbar.getDomNode()), this.scrollbarDomNode.setPosition("absolute"), this._setLayout(); const h2 = (e3, t3, n3) => { const i3 = {}; @@ -45070,7 +45070,7 @@ ${Object(zn.b)(wi)} } this._context.model.setScrollPosition(i3, 1); }; - this._register(o.i(n2.domNode, "scroll", (e3) => h2(n2.domNode, true, true))), this._register(o.i(t2.domNode, "scroll", (e3) => h2(t2.domNode, true, false))), this._register(o.i(i2.domNode, "scroll", (e3) => h2(i2.domNode, true, false))), this._register(o.i(this.scrollbarDomNode.domNode, "scroll", (e3) => h2(this.scrollbarDomNode.domNode, true, false))); + this._register(r.i(n2.domNode, "scroll", (e3) => h2(n2.domNode, true, true))), this._register(r.i(t2.domNode, "scroll", (e3) => h2(t2.domNode, true, false))), this._register(r.i(i2.domNode, "scroll", (e3) => h2(i2.domNode, true, false))), this._register(r.i(this.scrollbarDomNode.domNode, "scroll", (e3) => h2(this.scrollbarDomNode.domNode, true, false))); } dispose() { super.dispose(); @@ -45091,8 +45091,8 @@ ${Object(zn.b)(wi)} } onConfigurationChanged(e2) { if (e2.hasChanged(84) || e2.hasChanged(58) || e2.hasChanged(28)) { - const e3 = this._context.configuration.options, t2 = e3.get(84), n2 = e3.get(58), i2 = e3.get(28), o2 = e3.get(87), r2 = {handleMouseWheel: t2.handleMouseWheel, mouseWheelScrollSensitivity: n2, fastScrollSensitivity: i2, scrollPredominantAxis: o2}; - this.scrollbar.updateOptions(r2); + const e3 = this._context.configuration.options, t2 = e3.get(84), n2 = e3.get(58), i2 = e3.get(28), r2 = e3.get(87), o2 = {handleMouseWheel: t2.handleMouseWheel, mouseWheelScrollSensitivity: n2, fastScrollSensitivity: i2, scrollPredominantAxis: r2}; + this.scrollbar.updateOptions(o2); } return e2.hasChanged(117) && this._setLayout(), true; } @@ -45109,12 +45109,12 @@ ${Object(zn.b)(wi)} } } n(222); - class ot { + class rt { constructor(e2, t2, n2) { this.startLineNumber = +e2, this.endLineNumber = +t2, this.className = String(n2); } } - class rt extends Ee { + class ot extends Ee { _render(e2, t2, n2) { const i2 = []; for (let n3 = e2; n3 <= t2; n3++) { @@ -45123,19 +45123,19 @@ ${Object(zn.b)(wi)} if (n2.length === 0) return i2; n2.sort((e3, t3) => e3.className === t3.className ? e3.startLineNumber === t3.startLineNumber ? e3.endLineNumber - t3.endLineNumber : e3.startLineNumber - t3.startLineNumber : e3.className < t3.className ? -1 : 1); - let o2 = null, r2 = 0; + let r2 = null, o2 = 0; for (let s2 = 0, a2 = n2.length; s2 < a2; s2++) { const a3 = n2[s2], l2 = a3.className; let c2 = Math.max(a3.startLineNumber, e2) - e2; const d2 = Math.min(a3.endLineNumber, t2) - e2; - o2 === l2 ? (c2 = Math.max(r2 + 1, c2), r2 = Math.max(r2, d2)) : (o2 = l2, r2 = d2); - for (let e3 = c2; e3 <= r2; e3++) - i2[e3].push(o2); + r2 === l2 ? (c2 = Math.max(o2 + 1, c2), o2 = Math.max(o2, d2)) : (r2 = l2, o2 = d2); + for (let e3 = c2; e3 <= o2; e3++) + i2[e3].push(r2); } return i2; } } - class st extends rt { + class st extends ot { constructor(e2) { super(), this._context = e2; const t2 = this._context.configuration.options, n2 = t2.get(117); @@ -45172,19 +45172,19 @@ ${Object(zn.b)(wi)} _getDecorations(e2) { const t2 = e2.getDecorationsInViewport(); let n2 = [], i2 = 0; - for (let e3 = 0, o2 = t2.length; e3 < o2; e3++) { - const o3 = t2[e3], r2 = o3.options.glyphMarginClassName; - r2 && (n2[i2++] = new ot(o3.range.startLineNumber, o3.range.endLineNumber, r2)); + for (let e3 = 0, r2 = t2.length; e3 < r2; e3++) { + const r3 = t2[e3], o2 = r3.options.glyphMarginClassName; + o2 && (n2[i2++] = new rt(r3.range.startLineNumber, r3.range.endLineNumber, o2)); } return n2; } prepareRender(e2) { if (!this._glyphMargin) return void (this._renderResult = null); - const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), o2 = this._lineHeight.toString(), r2 = '" style="left:' + this._glyphMarginLeft.toString() + "px;width:" + this._glyphMarginWidth.toString() + "px;height:" + o2 + 'px;"></div>', s2 = []; + const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), r2 = this._lineHeight.toString(), o2 = '" style="left:' + this._glyphMarginLeft.toString() + "px;width:" + this._glyphMarginWidth.toString() + "px;height:" + r2 + 'px;"></div>', s2 = []; for (let e3 = t2; e3 <= n2; e3++) { - const n3 = e3 - t2, o3 = i2[n3]; - o3.length === 0 ? s2[n3] = "" : s2[n3] = '<div class="cgmr codicon ' + o3.join(" ") + r2; + const n3 = e3 - t2, r3 = i2[n3]; + r3.length === 0 ? s2[n3] = "" : s2[n3] = '<div class="cgmr codicon ' + r3.join(" ") + o2; } this._renderResult = s2; } @@ -45240,7 +45240,7 @@ ${Object(zn.b)(wi)} prepareRender(e2) { if (!this._enabled) return void (this._renderResult = null); - const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, {indentSize: i2} = this._context.model.getTextModelOptions(), o2 = i2 * this._spaceWidth, r2 = e2.scrollWidth, s2 = this._lineHeight, a2 = this._context.model.getLinesIndentGuides(t2, n2); + const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, {indentSize: i2} = this._context.model.getTextModelOptions(), r2 = i2 * this._spaceWidth, o2 = e2.scrollWidth, s2 = this._lineHeight, a2 = this._context.model.getLinesIndentGuides(t2, n2); let l2 = 0, c2 = 0, d2 = 0; if (this._activeIndentEnabled && this._primaryLineNumber) { const e3 = this._context.model.getActiveIndentGuide(this._primaryLineNumber, t2, n2); @@ -45254,7 +45254,7 @@ ${Object(zn.b)(wi)} const t3 = e2.visibleRangeForPosition(new ee.a(i3, 1)); let a3 = t3 ? t3.left : 0; for (let e3 = 1; e3 <= p2; e3++) { - if (m2 += `<div class="${n3 && e3 === d2 ? "cigra" : "cigr"}" style="left:${a3}px;height:${s2}px;width:${o2}px"></div>`, a3 += o2, a3 > r2 || this._maxIndentLeft > 0 && a3 > this._maxIndentLeft) + if (m2 += `<div class="${n3 && e3 === d2 ? "cigra" : "cigr"}" style="left:${a3}px;height:${s2}px;width:${r2}px"></div>`, a3 += r2, a3 > o2 || this._maxIndentLeft > 0 && a3 > this._maxIndentLeft) break; } } @@ -45288,26 +45288,26 @@ ${Object(zn.b)(wi)} } } class ct { - constructor(e2, t2, n2, i2, o2, r2) { - this.lineNumber = e2, this.startColumn = t2, this.endColumn = n2, this.startScrollTop = i2, this.stopScrollTop = o2, this.scrollType = r2, this.type = "range", this.minLineNumber = e2, this.maxLineNumber = e2; + constructor(e2, t2, n2, i2, r2, o2) { + this.lineNumber = e2, this.startColumn = t2, this.endColumn = n2, this.startScrollTop = i2, this.stopScrollTop = r2, this.scrollType = o2, this.type = "range", this.minLineNumber = e2, this.maxLineNumber = e2; } } class dt { constructor(e2, t2, n2, i2) { this.selections = e2, this.startScrollTop = t2, this.stopScrollTop = n2, this.scrollType = i2, this.type = "selections"; - let o2 = e2[0].startLineNumber, r2 = e2[0].endLineNumber; + let r2 = e2[0].startLineNumber, o2 = e2[0].endLineNumber; for (let t3 = 1, n3 = e2.length; t3 < n3; t3++) { const n4 = e2[t3]; - o2 = Math.min(o2, n4.startLineNumber), r2 = Math.max(r2, n4.endLineNumber); + r2 = Math.min(r2, n4.startLineNumber), o2 = Math.max(o2, n4.endLineNumber); } - this.minLineNumber = o2, this.maxLineNumber = r2; + this.minLineNumber = r2, this.maxLineNumber = o2; } } class ht extends N { constructor(e2, t2) { super(e2), this._linesContent = t2, this._textRangeRestingSpot = document.createElement("div"), this._visibleLines = new je(this), this.domNode = this._visibleLines.domNode; - const n2 = this._context.configuration, i2 = this._context.configuration.options, o2 = i2.get(36), r2 = i2.get(118); - this._lineHeight = i2.get(51), this._typicalHalfwidthCharacterWidth = o2.typicalHalfwidthCharacterWidth, this._isViewportWrapping = r2.isViewportWrapping, this._revealHorizontalRightPadding = i2.get(81), this._cursorSurroundingLines = i2.get(20), this._cursorSurroundingLinesStyle = i2.get(21), this._canUseLayerHinting = !i2.get(23), this._viewLineOptions = new $(n2, this._context.theme.type), I.write(this.domNode, 7), this.domNode.setClassName("view-lines " + Oe.a), c.a.applyFontInfo(this.domNode, o2), this._maxLineWidth = 0, this._asyncUpdateLineWidths = new b.d(() => { + const n2 = this._context.configuration, i2 = this._context.configuration.options, r2 = i2.get(36), o2 = i2.get(118); + this._lineHeight = i2.get(51), this._typicalHalfwidthCharacterWidth = r2.typicalHalfwidthCharacterWidth, this._isViewportWrapping = o2.isViewportWrapping, this._revealHorizontalRightPadding = i2.get(81), this._cursorSurroundingLines = i2.get(20), this._cursorSurroundingLinesStyle = i2.get(21), this._canUseLayerHinting = !i2.get(23), this._viewLineOptions = new $(n2, this._context.theme.type), I.write(this.domNode, 7), this.domNode.setClassName("view-lines " + De.a), c.a.applyFontInfo(this.domNode, r2), this._maxLineWidth = 0, this._asyncUpdateLineWidths = new b.d(() => { this._updateLineWidthsSlow(); }, 200), this._asyncCheckMonospaceFontAssumptions = new b.d(() => { this._checkMonospaceFontAssumptions(); @@ -45403,8 +45403,8 @@ ${Object(zn.b)(wi)} return null; if (this._context.model.getLineMaxColumn(i2) === 1) return new ee.a(i2, 1); - const o2 = this._visibleLines.getStartLineNumber(), r2 = this._visibleLines.getEndLineNumber(); - if (i2 < o2 || i2 > r2) + const r2 = this._visibleLines.getStartLineNumber(), o2 = this._visibleLines.getEndLineNumber(); + if (i2 < r2 || i2 > o2) return null; let s2 = this._visibleLines.getVisibleLine(i2).getColumnOfNodeOffset(i2, e2, t2); const a2 = this._context.model.getLineMinColumn(i2); @@ -45436,7 +45436,7 @@ ${Object(zn.b)(wi)} const n2 = e2.endLineNumber, i2 = te.a.intersectRanges(e2, this._lastRenderedData.getCurrentVisibleRange()); if (!i2) return null; - let o2 = [], r2 = 0; + let r2 = [], o2 = 0; const s2 = new q(this.domNode.domNode, this._textRangeRestingSpot); let a2 = 0; t2 && (a2 = this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(i2.startLineNumber, 1)).lineNumber); @@ -45450,10 +45450,10 @@ ${Object(zn.b)(wi)} const t3 = a2; a2 = this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(e3 + 1, 1)).lineNumber, t3 !== a2 && (u2.ranges[u2.ranges.length - 1].width += this._typicalHalfwidthCharacterWidth); } - o2[r2++] = new D(u2.outsideRenderedLine, e3, u2.ranges); + r2[o2++] = new O(u2.outsideRenderedLine, e3, u2.ranges); } } - return r2 === 0 ? null : o2; + return o2 === 0 ? null : r2; } _visibleRangesForLineRange(e2, t2, n2) { return this.shouldRender() || e2 < this._visibleLines.getStartLineNumber() || e2 > this._visibleLines.getEndLineNumber() ? null : this._visibleLines.getVisibleLine(e2).getVisibleRangesForRange(t2, n2, new q(this.domNode.domNode, this._textRangeRestingSpot)); @@ -45473,21 +45473,21 @@ ${Object(zn.b)(wi)} } _updateLineWidths(e2) { const t2 = this._visibleLines.getStartLineNumber(), n2 = this._visibleLines.getEndLineNumber(); - let i2 = 1, o2 = true; - for (let r2 = t2; r2 <= n2; r2++) { - const t3 = this._visibleLines.getVisibleLine(r2); - !e2 || t3.getWidthIsFast() ? i2 = Math.max(i2, t3.getWidth()) : o2 = false; + let i2 = 1, r2 = true; + for (let o2 = t2; o2 <= n2; o2++) { + const t3 = this._visibleLines.getVisibleLine(o2); + !e2 || t3.getWidthIsFast() ? i2 = Math.max(i2, t3.getWidth()) : r2 = false; } - return o2 && t2 === 1 && n2 === this._context.model.getLineCount() && (this._maxLineWidth = 0), this._ensureMaxLineWidth(i2), o2; + return r2 && t2 === 1 && n2 === this._context.model.getLineCount() && (this._maxLineWidth = 0), this._ensureMaxLineWidth(i2), r2; } _checkMonospaceFontAssumptions() { let e2 = -1, t2 = -1; const n2 = this._visibleLines.getStartLineNumber(), i2 = this._visibleLines.getEndLineNumber(); - for (let o2 = n2; o2 <= i2; o2++) { - const n3 = this._visibleLines.getVisibleLine(o2); + for (let r2 = n2; r2 <= i2; r2++) { + const n3 = this._visibleLines.getVisibleLine(r2); if (n3.needsMonospaceFontCheck()) { const i3 = n3.getWidth(); - i3 > t2 && (t2 = i3, e2 = o2); + i3 > t2 && (t2 = i3, e2 = r2); } } if (e2 !== -1 && !this._visibleLines.getVisibleLine(e2).monospaceAssumptionsAreValid()) @@ -45527,14 +45527,14 @@ ${Object(zn.b)(wi)} const t2 = Math.ceil(e2); this._maxLineWidth < t2 && (this._maxLineWidth = t2, this._context.model.setMaxLineWidth(this._maxLineWidth)); } - _computeScrollTopToRevealRange(e2, t2, n2, i2, o2) { - const r2 = e2.top, s2 = e2.height, a2 = r2 + s2; + _computeScrollTopToRevealRange(e2, t2, n2, i2, r2) { + const o2 = e2.top, s2 = e2.height, a2 = o2 + s2; let l2, c2, d2; if (i2 && i2.length > 0) { let e3 = i2[0].startLineNumber, t3 = i2[0].endLineNumber; - for (let n3 = 1, o3 = i2.length; n3 < o3; n3++) { - const o4 = i2[n3]; - e3 = Math.min(e3, o4.startLineNumber), t3 = Math.max(t3, o4.endLineNumber); + for (let n3 = 1, r3 = i2.length; n3 < r3; n3++) { + const r4 = i2[n3]; + e3 = Math.min(e3, r4.startLineNumber), t3 = Math.max(t3, r4.endLineNumber); } l2 = false, c2 = this._context.viewLayout.getVerticalOffsetForLineNumber(e3), d2 = this._context.viewLayout.getVerticalOffsetForLineNumber(t3) + this._lineHeight; } else { @@ -45547,37 +45547,37 @@ ${Object(zn.b)(wi)} c2 -= e3 * this._lineHeight, d2 += Math.max(0, e3 - 1) * this._lineHeight; } let h2; - if (o2 !== 0 && o2 !== 4 || (d2 += this._lineHeight), d2 - c2 > s2) { + if (r2 !== 0 && r2 !== 4 || (d2 += this._lineHeight), d2 - c2 > s2) { if (!l2) return -1; h2 = c2; - } else if (o2 === 5 || o2 === 6) - if (o2 === 6 && r2 <= c2 && d2 <= a2) - h2 = r2; + } else if (r2 === 5 || r2 === 6) + if (r2 === 6 && o2 <= c2 && d2 <= a2) + h2 = o2; else { const e3 = c2 - Math.max(5 * this._lineHeight, 0.2 * s2), t3 = d2 - s2; h2 = Math.max(t3, e3); } - else if (o2 === 1 || o2 === 2) - if (o2 === 2 && r2 <= c2 && d2 <= a2) - h2 = r2; + else if (r2 === 1 || r2 === 2) + if (r2 === 2 && o2 <= c2 && d2 <= a2) + h2 = o2; else { const e3 = (c2 + d2) / 2; h2 = Math.max(0, e3 - s2 / 2); } else - h2 = this._computeMinimumScrolling(r2, a2, c2, d2, o2 === 3, o2 === 4); + h2 = this._computeMinimumScrolling(o2, a2, c2, d2, r2 === 3, r2 === 4); return h2; } _computeScrollLeftToReveal(e2) { const t2 = this._context.viewLayout.getCurrentViewport(), n2 = t2.left, i2 = n2 + t2.width; - let o2 = 1073741824, r2 = 0; + let r2 = 1073741824, o2 = 0; if (e2.type === "range") { const t3 = this._visibleRangesForLineRange(e2.lineNumber, e2.startColumn, e2.endColumn); if (!t3) return null; for (const e3 of t3.ranges) - o2 = Math.min(o2, e3.left), r2 = Math.max(r2, e3.left + e3.width); + r2 = Math.min(r2, e3.left), o2 = Math.max(o2, e3.left + e3.width); } else for (const t3 of e2.selections) { if (t3.startLineNumber !== t3.endLineNumber) @@ -45586,21 +45586,21 @@ ${Object(zn.b)(wi)} if (!e3) return null; for (const t4 of e3.ranges) - o2 = Math.min(o2, t4.left), r2 = Math.max(r2, t4.left + t4.width); + r2 = Math.min(r2, t4.left), o2 = Math.max(o2, t4.left + t4.width); } - if (o2 = Math.max(0, o2 - ht.HORIZONTAL_EXTRA_PX), r2 += this._revealHorizontalRightPadding, e2.type === "selections" && r2 - o2 > t2.width) + if (r2 = Math.max(0, r2 - ht.HORIZONTAL_EXTRA_PX), o2 += this._revealHorizontalRightPadding, e2.type === "selections" && o2 - r2 > t2.width) return null; - return {scrollLeft: this._computeMinimumScrolling(n2, i2, o2, r2), maxHorizontalOffset: r2}; + return {scrollLeft: this._computeMinimumScrolling(n2, i2, r2, o2), maxHorizontalOffset: o2}; } - _computeMinimumScrolling(e2, t2, n2, i2, o2, r2) { - o2 = !!o2, r2 = !!r2; + _computeMinimumScrolling(e2, t2, n2, i2, r2, o2) { + r2 = !!r2, o2 = !!o2; const s2 = (t2 |= 0) - (e2 |= 0); - return (i2 |= 0) - (n2 |= 0) < s2 ? o2 ? n2 : r2 ? Math.max(0, i2 - s2) : n2 < e2 ? n2 : i2 > t2 ? Math.max(0, i2 - s2) : e2 : n2; + return (i2 |= 0) - (n2 |= 0) < s2 ? r2 ? n2 : o2 ? Math.max(0, i2 - s2) : n2 < e2 ? n2 : i2 > t2 ? Math.max(0, i2 - s2) : e2 : n2; } } ht.HORIZONTAL_EXTRA_PX = 30; n(228); - class ut extends rt { + class ut extends ot { constructor(e2) { super(), this._context = e2; const t2 = this._context.configuration.options.get(117); @@ -45637,31 +45637,31 @@ ${Object(zn.b)(wi)} _getDecorations(e2) { const t2 = e2.getDecorationsInViewport(); let n2 = [], i2 = 0; - for (let e3 = 0, o2 = t2.length; e3 < o2; e3++) { - const o3 = t2[e3], r2 = o3.options.linesDecorationsClassName; - r2 && (n2[i2++] = new ot(o3.range.startLineNumber, o3.range.endLineNumber, r2)); - const s2 = o3.options.firstLineDecorationClassName; - s2 && (n2[i2++] = new ot(o3.range.startLineNumber, o3.range.startLineNumber, s2)); + for (let e3 = 0, r2 = t2.length; e3 < r2; e3++) { + const r3 = t2[e3], o2 = r3.options.linesDecorationsClassName; + o2 && (n2[i2++] = new rt(r3.range.startLineNumber, r3.range.endLineNumber, o2)); + const s2 = r3.options.firstLineDecorationClassName; + s2 && (n2[i2++] = new rt(r3.range.startLineNumber, r3.range.startLineNumber, s2)); } return n2; } prepareRender(e2) { - const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), o2 = '" style="left:' + this._decorationsLeft.toString() + "px;width:" + this._decorationsWidth.toString() + 'px;"></div>', r2 = []; + const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), r2 = '" style="left:' + this._decorationsLeft.toString() + "px;width:" + this._decorationsWidth.toString() + 'px;"></div>', o2 = []; for (let e3 = t2; e3 <= n2; e3++) { const n3 = e3 - t2, s2 = i2[n3]; let a2 = ""; for (let e4 = 0, t3 = s2.length; e4 < t3; e4++) - a2 += '<div class="cldr ' + s2[e4] + o2; - r2[n3] = a2; + a2 += '<div class="cldr ' + s2[e4] + r2; + o2[n3] = a2; } - this._renderResult = r2; + this._renderResult = o2; } render(e2, t2) { return this._renderResult ? this._renderResult[t2 - e2] : ""; } } n(230); - class pt extends rt { + class pt extends ot { constructor(e2) { super(), this._context = e2, this._renderResult = null, this._context.addEventHandler(this); } @@ -45695,22 +45695,22 @@ ${Object(zn.b)(wi)} _getDecorations(e2) { const t2 = e2.getDecorationsInViewport(); let n2 = [], i2 = 0; - for (let e3 = 0, o2 = t2.length; e3 < o2; e3++) { - const o3 = t2[e3], r2 = o3.options.marginClassName; - r2 && (n2[i2++] = new ot(o3.range.startLineNumber, o3.range.endLineNumber, r2)); + for (let e3 = 0, r2 = t2.length; e3 < r2; e3++) { + const r3 = t2[e3], o2 = r3.options.marginClassName; + o2 && (n2[i2++] = new rt(r3.range.startLineNumber, r3.range.endLineNumber, o2)); } return n2; } prepareRender(e2) { - const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), o2 = []; + const t2 = e2.visibleRange.startLineNumber, n2 = e2.visibleRange.endLineNumber, i2 = this._render(t2, n2, this._getDecorations(e2)), r2 = []; for (let e3 = t2; e3 <= n2; e3++) { - const n3 = e3 - t2, r2 = i2[n3]; + const n3 = e3 - t2, o2 = i2[n3]; let s2 = ""; - for (let e4 = 0, t3 = r2.length; e4 < t3; e4++) - s2 += '<div class="cmdr ' + r2[e4] + '" style=""></div>'; - o2[n3] = s2; + for (let e4 = 0, t3 = o2.length; e4 < t3; e4++) + s2 += '<div class="cmdr ' + o2[e4] + '" style=""></div>'; + r2[n3] = s2; } - this._renderResult = o2; + this._renderResult = r2; } render(e2, t2) { return this._renderResult ? this._renderResult[t2 - e2] : ""; @@ -45773,15 +45773,15 @@ ${Object(zn.b)(wi)} } static soften(e2, t2) { let n2 = new Uint8ClampedArray(e2.length); - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) n2[i2] = Object(wt.b)(e2[i2] * t2); return n2; } - renderChar(e2, t2, n2, i2, o2, r2, s2, a2, l2) { + renderChar(e2, t2, n2, i2, r2, o2, s2, a2, l2) { const c2 = 1 * this.scale, d2 = 2 * this.scale, h2 = l2 ? 1 : d2; if (t2 + c2 > e2.width || n2 + h2 > e2.height) return void console.warn("bad render request outside image data"); - const u2 = a2 ? this.charDataLight : this.charDataNormal, p2 = ((e3, t3) => (e3 -= 32) < 0 || e3 > 96 ? t3 <= 2 ? (e3 + 96) % 96 : 95 : e3)(i2, s2), m2 = 4 * e2.width, g2 = r2.r, f2 = r2.g, b2 = r2.b, _2 = o2.r - g2, v2 = o2.g - f2, w2 = o2.b - b2, y2 = e2.data; + const u2 = a2 ? this.charDataLight : this.charDataNormal, p2 = ((e3, t3) => (e3 -= 32) < 0 || e3 > 96 ? t3 <= 2 ? (e3 + 96) % 96 : 95 : e3)(i2, s2), m2 = 4 * e2.width, g2 = o2.r, f2 = o2.g, b2 = o2.b, _2 = r2.r - g2, v2 = r2.g - f2, w2 = r2.b - b2, y2 = e2.data; let C2 = p2 * c2 * d2, x2 = n2 * m2 + 4 * t2; for (let e3 = 0; e3 < h2; e3++) { let e4 = x2; @@ -45792,11 +45792,11 @@ ${Object(zn.b)(wi)} x2 += m2; } } - blockRenderChar(e2, t2, n2, i2, o2, r2, s2) { + blockRenderChar(e2, t2, n2, i2, r2, o2, s2) { const a2 = 1 * this.scale, l2 = 2 * this.scale, c2 = s2 ? 1 : l2; if (t2 + a2 > e2.width || n2 + c2 > e2.height) return void console.warn("bad render request outside image data"); - const d2 = 4 * e2.width, h2 = o2.r, u2 = o2.g, p2 = o2.b, m2 = h2 + 0.5 * (i2.r - h2), g2 = u2 + 0.5 * (i2.g - u2), f2 = p2 + 0.5 * (i2.b - p2), b2 = e2.data; + const d2 = 4 * e2.width, h2 = r2.r, u2 = r2.g, p2 = r2.b, m2 = h2 + 0.5 * (i2.r - h2), g2 = u2 + 0.5 * (i2.g - u2), f2 = p2 + 0.5 * (i2.b - p2), b2 = e2.data; let _2 = n2 * d2 + 4 * t2; for (let e3 = 0; e3 < c2; e3++) { let e4 = _2; @@ -45834,19 +45834,19 @@ ${Object(zn.b)(wi)} let n2 = Et._downsample(e2, t2); return new yt(n2, t2); } - static _downsampleChar(e2, t2, n2, i2, o2) { - const r2 = 1 * o2, s2 = 2 * o2; + static _downsampleChar(e2, t2, n2, i2, r2) { + const o2 = 1 * r2, s2 = 2 * r2; let a2 = i2, l2 = 0; for (let i3 = 0; i3 < s2; i3++) { - const o3 = i3 / s2 * 16, c2 = (i3 + 1) / s2 * 16; - for (let i4 = 0; i4 < r2; i4++) { - const s3 = i4 / r2 * 10, d2 = (i4 + 1) / r2 * 10; + const r3 = i3 / s2 * 16, c2 = (i3 + 1) / s2 * 16; + for (let i4 = 0; i4 < o2; i4++) { + const s3 = i4 / o2 * 10, d2 = (i4 + 1) / o2 * 10; let h2 = 0, u2 = 0; - for (let n3 = o3; n3 < c2; n3++) { - const i5 = t2 + 3840 * Math.floor(n3), o4 = 1 - (n3 - Math.floor(n3)); + for (let n3 = r3; n3 < c2; n3++) { + const i5 = t2 + 3840 * Math.floor(n3), r4 = 1 - (n3 - Math.floor(n3)); for (let t3 = s3; t3 < d2; t3++) { - const n4 = 1 - (t3 - Math.floor(t3)), r3 = i5 + 4 * Math.floor(t3), s4 = n4 * o4; - u2 += s4, h2 += e2[r3] * e2[r3 + 3] / 255 * s4; + const n4 = 1 - (t3 - Math.floor(t3)), o3 = i5 + 4 * Math.floor(t3), s4 = n4 * r4; + u2 += s4, h2 += e2[o3] * e2[o3 + 3] / 255 * s4; } } const p2 = h2 / u2; @@ -45856,23 +45856,23 @@ ${Object(zn.b)(wi)} return l2; } static _downsample(e2, t2) { - const n2 = 2 * t2 * 1 * t2, i2 = 96 * n2, o2 = new Uint8ClampedArray(i2); - let r2 = 0, s2 = 0, a2 = 0; + const n2 = 2 * t2 * 1 * t2, i2 = 96 * n2, r2 = new Uint8ClampedArray(i2); + let o2 = 0, s2 = 0, a2 = 0; for (let i3 = 0; i3 < 96; i3++) - a2 = Math.max(a2, this._downsampleChar(e2, s2, o2, r2, t2)), r2 += n2, s2 += 40; + a2 = Math.max(a2, this._downsampleChar(e2, s2, r2, o2, t2)), o2 += n2, s2 += 40; if (a2 > 0) { const e3 = 255 / a2; for (let t3 = 0; t3 < i2; t3++) - o2[t3] *= e3; + r2[t3] *= e3; } - return o2; + return r2; } } var Tt = n(58); class Lt { constructor(e2, t2, n2) { - const i2 = e2.options, o2 = i2.get(115), r2 = i2.get(117), s2 = r2.minimap, a2 = i2.get(36), l2 = i2.get(56); - this.renderMinimap = s2.renderMinimap, this.size = l2.size, this.minimapHeightIsEditorHeight = s2.minimapHeightIsEditorHeight, this.scrollBeyondLastLine = i2.get(86), this.showSlider = l2.showSlider, this.pixelRatio = o2, this.typicalHalfwidthCharacterWidth = a2.typicalHalfwidthCharacterWidth, this.lineHeight = i2.get(51), this.minimapLeft = s2.minimapLeft, this.minimapWidth = s2.minimapWidth, this.minimapHeight = r2.height, this.canvasInnerWidth = s2.minimapCanvasInnerWidth, this.canvasInnerHeight = s2.minimapCanvasInnerHeight, this.canvasOuterWidth = s2.minimapCanvasOuterWidth, this.canvasOuterHeight = s2.minimapCanvasOuterHeight, this.isSampling = s2.minimapIsSampling, this.editorHeight = r2.height, this.fontScale = s2.minimapScale, this.minimapLineHeight = s2.minimapLineHeight, this.minimapCharWidth = 1 * this.fontScale, this.charRenderer = Object(Ct.a)(() => Et.create(this.fontScale, a2.fontFamily)), this.backgroundColor = Lt._getMinimapBackground(t2, n2); + const i2 = e2.options, r2 = i2.get(115), o2 = i2.get(117), s2 = o2.minimap, a2 = i2.get(36), l2 = i2.get(56); + this.renderMinimap = s2.renderMinimap, this.size = l2.size, this.minimapHeightIsEditorHeight = s2.minimapHeightIsEditorHeight, this.scrollBeyondLastLine = i2.get(86), this.showSlider = l2.showSlider, this.pixelRatio = r2, this.typicalHalfwidthCharacterWidth = a2.typicalHalfwidthCharacterWidth, this.lineHeight = i2.get(51), this.minimapLeft = s2.minimapLeft, this.minimapWidth = s2.minimapWidth, this.minimapHeight = o2.height, this.canvasInnerWidth = s2.minimapCanvasInnerWidth, this.canvasInnerHeight = s2.minimapCanvasInnerHeight, this.canvasOuterWidth = s2.minimapCanvasOuterWidth, this.canvasOuterHeight = s2.minimapCanvasOuterHeight, this.isSampling = s2.minimapIsSampling, this.editorHeight = o2.height, this.fontScale = s2.minimapScale, this.minimapLineHeight = s2.minimapLineHeight, this.minimapCharWidth = 1 * this.fontScale, this.charRenderer = Object(Ct.a)(() => Et.create(this.fontScale, a2.fontFamily)), this.backgroundColor = Lt._getMinimapBackground(t2, n2); } static _getMinimapBackground(e2, t2) { const n2 = e2.getColor(_t.Mb); @@ -45883,8 +45883,8 @@ ${Object(zn.b)(wi)} } } class Nt { - constructor(e2, t2, n2, i2, o2, r2, s2, a2) { - this.scrollTop = e2, this.scrollHeight = t2, this.sliderNeeded = n2, this._computedSliderRatio = i2, this.sliderTop = o2, this.sliderHeight = r2, this.startLineNumber = s2, this.endLineNumber = a2; + constructor(e2, t2, n2, i2, r2, o2, s2, a2) { + this.scrollTop = e2, this.scrollHeight = t2, this.sliderNeeded = n2, this._computedSliderRatio = i2, this.sliderTop = r2, this.sliderHeight = o2, this.startLineNumber = s2, this.endLineNumber = a2; } getDesiredScrollTopFromDelta(e2) { const t2 = this.sliderTop + e2; @@ -45893,33 +45893,33 @@ ${Object(zn.b)(wi)} getDesiredScrollTopFromTouchLocation(e2) { return Math.round((e2 - this.sliderHeight / 2) / this._computedSliderRatio); } - static create(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { + static create(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { const d2 = e2.pixelRatio, h2 = e2.minimapLineHeight, u2 = Math.floor(e2.canvasInnerHeight / h2), p2 = e2.lineHeight; if (e2.minimapHeightIsEditorHeight) { - const t3 = s2 * e2.lineHeight + (e2.scrollBeyondLastLine ? i2 - e2.lineHeight : 0), n3 = Math.max(1, Math.floor(i2 * i2 / t3)), o3 = Math.max(0, e2.minimapHeight - n3), c3 = o3 / (l2 - i2), d3 = a2 * c3, h3 = o3 > 0, u3 = Math.floor(e2.canvasInnerHeight / e2.minimapLineHeight); - return new Nt(a2, l2, h3, c3, d3, n3, 1, Math.min(r2, u3)); + const t3 = s2 * e2.lineHeight + (e2.scrollBeyondLastLine ? i2 - e2.lineHeight : 0), n3 = Math.max(1, Math.floor(i2 * i2 / t3)), r3 = Math.max(0, e2.minimapHeight - n3), c3 = r3 / (l2 - i2), d3 = a2 * c3, h3 = r3 > 0, u3 = Math.floor(e2.canvasInnerHeight / e2.minimapLineHeight); + return new Nt(a2, l2, h3, c3, d3, n3, 1, Math.min(o2, u3)); } let m2, g2; - if (o2 && n2 !== r2) { + if (r2 && n2 !== o2) { const e3 = n2 - t2 + 1; m2 = Math.floor(e3 * h2 / d2); } else { const e3 = i2 / p2; m2 = Math.floor(e3 * h2 / d2); } - g2 = e2.scrollBeyondLastLine ? (r2 - 1) * h2 / d2 : Math.max(0, r2 * h2 / d2 - m2), g2 = Math.min(e2.minimapHeight - m2, g2); + g2 = e2.scrollBeyondLastLine ? (o2 - 1) * h2 / d2 : Math.max(0, o2 * h2 / d2 - m2), g2 = Math.min(e2.minimapHeight - m2, g2); const f2 = g2 / (l2 - i2), b2 = a2 * f2; let _2 = 0; if (e2.scrollBeyondLastLine) { _2 = i2 / p2 - 1; } - if (u2 >= r2 + _2) { - return new Nt(a2, l2, g2 > 0, f2, b2, m2, 1, r2); + if (u2 >= o2 + _2) { + return new Nt(a2, l2, g2 > 0, f2, b2, m2, 1, o2); } { let e3 = Math.max(1, Math.floor(t2 - b2 * d2 / h2)); c2 && c2.scrollHeight === l2 && (c2.scrollTop > a2 && (e3 = Math.min(e3, c2.startLineNumber)), c2.scrollTop < a2 && (e3 = Math.max(e3, c2.startLineNumber))); - const n3 = Math.min(r2, e3 + u2 - 1); + const n3 = Math.min(o2, e3 + u2 - 1); return new Nt(a2, l2, true, f2, b2, m2, e3, n3); } } @@ -45936,7 +45936,7 @@ ${Object(zn.b)(wi)} } } It.INVALID = new It(-1); - class Ot { + class Dt { constructor(e2, t2, n2) { this.renderedLayout = e2, this._imageData = t2, this._renderedLines = new Be(() => It.INVALID), this._renderedLines._set(e2.startLineNumber, n2); } @@ -45969,9 +45969,9 @@ ${Object(zn.b)(wi)} return this._renderedLines.onTokensChanged(e2); } } - class Dt { + class Ot { constructor(e2, t2, n2, i2) { - this._backgroundFillData = Dt._createBackgroundFillData(t2, n2, i2), this._buffers = [e2.createImageData(t2, n2), e2.createImageData(t2, n2)], this._lastUsedBuffer = 0; + this._backgroundFillData = Ot._createBackgroundFillData(t2, n2, i2), this._buffers = [e2.createImageData(t2, n2), e2.createImageData(t2, n2)], this._lastUsedBuffer = 0; } getBuffer() { this._lastUsedBuffer = 1 - this._lastUsedBuffer; @@ -45979,11 +45979,11 @@ ${Object(zn.b)(wi)} return e2.data.set(this._backgroundFillData), e2; } static _createBackgroundFillData(e2, t2, n2) { - const i2 = n2.r, o2 = n2.g, r2 = n2.b, s2 = new Uint8ClampedArray(e2 * t2 * 4); + const i2 = n2.r, r2 = n2.g, o2 = n2.b, s2 = new Uint8ClampedArray(e2 * t2 * 4); let a2 = 0; for (let n3 = 0; n3 < t2; n3++) for (let t3 = 0; t3 < e2; t3++) - s2[a2] = i2, s2[a2 + 1] = o2, s2[a2 + 2] = r2, s2[a2 + 3] = 255, a2 += 4; + s2[a2] = i2, s2[a2 + 1] = r2, s2[a2 + 2] = o2, s2[a2 + 3] = 255, a2 += 4; return s2; } } @@ -45994,7 +45994,7 @@ ${Object(zn.b)(wi)} static compute(e2, t2, n2) { if (e2.renderMinimap === 0 || !e2.isSampling) return [null, []]; - const i2 = e2.pixelRatio, o2 = e2.lineHeight, r2 = e2.scrollBeyondLastLine, {minimapLineCount: s2} = j.f.computeContainedMinimapLineCount({viewLineCount: t2, scrollBeyondLastLine: r2, height: e2.editorHeight, lineHeight: o2, pixelRatio: i2}), a2 = t2 / s2, l2 = a2 / 2; + const i2 = e2.pixelRatio, r2 = e2.lineHeight, o2 = e2.scrollBeyondLastLine, {minimapLineCount: s2} = j.f.computeContainedMinimapLineCount({viewLineCount: t2, scrollBeyondLastLine: o2, height: e2.editorHeight, lineHeight: r2, pixelRatio: i2}), a2 = t2 / s2, l2 = a2 / 2; if (!n2 || n2.minimapLines.length === 0) { let e3 = []; if (e3[0] = 1, s2 > 1) { @@ -46016,14 +46016,14 @@ ${Object(zn.b)(wi)} } u2++; } - let o3; + let r3; if (u2 < d2 && c2[u2] <= i3) - o3 = c2[u2], u2++; - else if (o3 = e3 === 0 ? 1 : e3 + 1 === s2 ? t2 : Math.round(e3 * a2 + l2), g2.length < 10) { + r3 = c2[u2], u2++; + else if (r3 = e3 === 0 ? 1 : e3 + 1 === s2 ? t2 : Math.round(e3 * a2 + l2), g2.length < 10) { const t3 = u2 + 1 + p2; f2 && f2.type === "inserted" && f2._i === e3 - 1 ? f2.insertToLineNumber++ : (f2 = {type: "inserted", _i: e3, insertFromLineNumber: t3, insertToLineNumber: t3}, g2.push(f2)), p2++; } - h2[e3] = o3, m2 = o3; + h2[e3] = r3, m2 = r3; } if (g2.length < 10) for (; u2 < d2; ) { @@ -46058,8 +46058,8 @@ ${Object(zn.b)(wi)} onLinesDeleted(e2) { const t2 = e2.toLineNumber - e2.fromLineNumber + 1; let n2 = this.minimapLines.length, i2 = 0; - for (let o2 = this.minimapLines.length - 1; o2 >= 0 && !(this.minimapLines[o2] < e2.fromLineNumber); o2--) - this.minimapLines[o2] <= e2.toLineNumber ? (this.minimapLines[o2] = Math.max(1, e2.fromLineNumber - 1), n2 = Math.min(n2, o2), i2 = Math.max(i2, o2)) : this.minimapLines[o2] -= t2; + for (let r2 = this.minimapLines.length - 1; r2 >= 0 && !(this.minimapLines[r2] < e2.fromLineNumber); r2--) + this.minimapLines[r2] <= e2.toLineNumber ? (this.minimapLines[r2] = Math.max(1, e2.fromLineNumber - 1), n2 = Math.min(n2, r2), i2 = Math.max(i2, r2)) : this.minimapLines[r2] -= t2; return [n2, i2]; } onLinesInserted(e2) { @@ -46173,8 +46173,8 @@ ${Object(zn.b)(wi)} getMinimapLinesRenderingData(e2, t2, n2) { if (this._samplingState) { let i2 = []; - for (let o2 = 0, r2 = t2 - e2 + 1; o2 < r2; o2++) - n2[o2] ? i2[o2] = this._context.model.getViewLineData(this._samplingState.minimapLines[e2 + o2 - 1]) : i2[o2] = null; + for (let r2 = 0, o2 = t2 - e2 + 1; r2 < o2; r2++) + n2[r2] ? i2[r2] = this._context.model.getViewLineData(this._samplingState.minimapLines[e2 + r2 - 1]) : i2[r2] = null; return i2; } return this._context.model.getMinimapLinesRenderingData(e2, t2, n2).data; @@ -46194,8 +46194,8 @@ ${Object(zn.b)(wi)} getMinimapDecorationsInViewport(e2, t2) { let n2; if (this._samplingState) { - const i3 = this._samplingState.minimapLines[e2 - 1], o2 = this._samplingState.minimapLines[t2 - 1]; - n2 = new te.a(i3, 1, o2, this._context.model.getLineMaxColumn(o2)); + const i3 = this._samplingState.minimapLines[e2 - 1], r2 = this._samplingState.minimapLines[t2 - 1]; + n2 = new te.a(i3, 1, r2, this._context.model.getLineMaxColumn(r2)); } else n2 = new te.a(e2, 1, t2, this._context.model.getLineMaxColumn(t2)); const i2 = this._context.model.getDecorationsInViewport(n2); @@ -46204,8 +46204,8 @@ ${Object(zn.b)(wi)} for (const t3 of i2) { if (!t3.options.minimap) continue; - const n3 = t3.range, i3 = this._samplingState.modelLineToMinimapLine(n3.startLineNumber), o2 = this._samplingState.modelLineToMinimapLine(n3.endLineNumber); - e3.push(new bt.e(new te.a(i3, n3.startColumn, o2, n3.endColumn), t3.options)); + const n3 = t3.range, i3 = this._samplingState.modelLineToMinimapLine(n3.startLineNumber), r2 = this._samplingState.modelLineToMinimapLine(n3.endLineNumber); + e3.push(new bt.e(new te.a(i3, n3.startColumn, r2, n3.endColumn), t3.options)); } return e3; } @@ -46223,7 +46223,7 @@ ${Object(zn.b)(wi)} } class Mt extends a.a { constructor(e2, t2) { - super(), this._renderDecorations = false, this._gestureInProgress = false, this._theme = e2, this._model = t2, this._lastRenderData = null, this._buffers = null, this._selectionColor = this._theme.getColor(_t.Pb), this._domNode = Object(p.b)(document.createElement("div")), I.write(this._domNode, 8), this._domNode.setClassName(this._getMinimapDomNodeClassName()), this._domNode.setPosition("absolute"), this._domNode.setAttribute("role", "presentation"), this._domNode.setAttribute("aria-hidden", "true"), this._shadow = Object(p.b)(document.createElement("div")), this._shadow.setClassName("minimap-shadow-hidden"), this._domNode.appendChild(this._shadow), this._canvas = Object(p.b)(document.createElement("canvas")), this._canvas.setPosition("absolute"), this._canvas.setLeft(0), this._domNode.appendChild(this._canvas), this._decorationsCanvas = Object(p.b)(document.createElement("canvas")), this._decorationsCanvas.setPosition("absolute"), this._decorationsCanvas.setClassName("minimap-decorations-layer"), this._decorationsCanvas.setLeft(0), this._domNode.appendChild(this._decorationsCanvas), this._slider = Object(p.b)(document.createElement("div")), this._slider.setPosition("absolute"), this._slider.setClassName("minimap-slider"), this._slider.setLayerHinting(true), this._slider.setContain("strict"), this._domNode.appendChild(this._slider), this._sliderHorizontal = Object(p.b)(document.createElement("div")), this._sliderHorizontal.setPosition("absolute"), this._sliderHorizontal.setClassName("minimap-slider-horizontal"), this._slider.appendChild(this._sliderHorizontal), this._applyLayout(), this._mouseDownListener = o.n(this._domNode.domNode, "mousedown", (e3) => { + super(), this._renderDecorations = false, this._gestureInProgress = false, this._theme = e2, this._model = t2, this._lastRenderData = null, this._buffers = null, this._selectionColor = this._theme.getColor(_t.Pb), this._domNode = Object(p.b)(document.createElement("div")), I.write(this._domNode, 8), this._domNode.setClassName(this._getMinimapDomNodeClassName()), this._domNode.setPosition("absolute"), this._domNode.setAttribute("role", "presentation"), this._domNode.setAttribute("aria-hidden", "true"), this._shadow = Object(p.b)(document.createElement("div")), this._shadow.setClassName("minimap-shadow-hidden"), this._domNode.appendChild(this._shadow), this._canvas = Object(p.b)(document.createElement("canvas")), this._canvas.setPosition("absolute"), this._canvas.setLeft(0), this._domNode.appendChild(this._canvas), this._decorationsCanvas = Object(p.b)(document.createElement("canvas")), this._decorationsCanvas.setPosition("absolute"), this._decorationsCanvas.setClassName("minimap-decorations-layer"), this._decorationsCanvas.setLeft(0), this._domNode.appendChild(this._decorationsCanvas), this._slider = Object(p.b)(document.createElement("div")), this._slider.setPosition("absolute"), this._slider.setClassName("minimap-slider"), this._slider.setLayerHinting(true), this._slider.setContain("strict"), this._domNode.appendChild(this._slider), this._sliderHorizontal = Object(p.b)(document.createElement("div")), this._sliderHorizontal.setPosition("absolute"), this._sliderHorizontal.setClassName("minimap-slider-horizontal"), this._slider.appendChild(this._sliderHorizontal), this._applyLayout(), this._mouseDownListener = r.n(this._domNode.domNode, "mousedown", (e3) => { e3.preventDefault(); if (this._model.options.renderMinimap === 0) return; @@ -46231,7 +46231,7 @@ ${Object(zn.b)(wi)} return; if (this._model.options.size !== "proportional") { if (e3.leftButton && this._lastRenderData) { - const t4 = o.C(this._slider.domNode), n3 = t4.top + t4.height / 2; + const t4 = r.C(this._slider.domNode), n3 = t4.top + t4.height / 2; this._startSliderDragging(e3.buttons, e3.posx, n3, e3.posy, this._lastRenderData.renderedLayout); } return; @@ -46239,26 +46239,26 @@ ${Object(zn.b)(wi)} const t3 = this._model.options.minimapLineHeight, n2 = this._model.options.canvasInnerHeight / this._model.options.canvasOuterHeight * e3.browserEvent.offsetY; let i2 = Math.floor(n2 / t3) + this._lastRenderData.renderedLayout.startLineNumber; i2 = Math.min(i2, this._model.getLineCount()), this._model.revealLineNumber(i2); - }), this._sliderMouseMoveMonitor = new v.a(), this._sliderMouseDownListener = o.n(this._slider.domNode, "mousedown", (e3) => { + }), this._sliderMouseMoveMonitor = new v.a(), this._sliderMouseDownListener = r.n(this._slider.domNode, "mousedown", (e3) => { e3.preventDefault(), e3.stopPropagation(), e3.leftButton && this._lastRenderData && this._startSliderDragging(e3.buttons, e3.posx, e3.posy, e3.posy, this._lastRenderData.renderedLayout); - }), this._gestureDisposable = g.b.addTarget(this._domNode.domNode), this._sliderTouchStartListener = o.i(this._domNode.domNode, g.a.Start, (e3) => { + }), this._gestureDisposable = g.b.addTarget(this._domNode.domNode), this._sliderTouchStartListener = r.i(this._domNode.domNode, g.a.Start, (e3) => { e3.preventDefault(), e3.stopPropagation(), this._lastRenderData && (this._slider.toggleClassName("active", true), this._gestureInProgress = true, this.scrollDueToTouchEvent(e3)); - }, {passive: false}), this._sliderTouchMoveListener = o.i(this._domNode.domNode, g.a.Change, (e3) => { + }, {passive: false}), this._sliderTouchMoveListener = r.i(this._domNode.domNode, g.a.Change, (e3) => { e3.preventDefault(), e3.stopPropagation(), this._lastRenderData && this._gestureInProgress && this.scrollDueToTouchEvent(e3); - }, {passive: false}), this._sliderTouchEndListener = o.n(this._domNode.domNode, g.a.End, (e3) => { + }, {passive: false}), this._sliderTouchEndListener = r.n(this._domNode.domNode, g.a.End, (e3) => { e3.preventDefault(), e3.stopPropagation(), this._gestureInProgress = false, this._slider.toggleClassName("active", false); }); } - _startSliderDragging(e2, t2, n2, i2, o2) { + _startSliderDragging(e2, t2, n2, i2, r2) { this._slider.toggleClassName("active", true); - const r2 = (e3, i3) => { - const r3 = Math.abs(i3 - t2); - if (m.i && r3 > 140) - return void this._model.setScrollTop(o2.scrollTop); + const o2 = (e3, i3) => { + const o3 = Math.abs(i3 - t2); + if (m.i && o3 > 140) + return void this._model.setScrollTop(r2.scrollTop); const s2 = e3 - n2; - this._model.setScrollTop(o2.getDesiredScrollTopFromDelta(s2)); + this._model.setScrollTop(r2.getDesiredScrollTopFromDelta(s2)); }; - i2 !== n2 && r2(i2, t2), this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode, e2, v.b, (e3) => r2(e3.posy, e3.posx), () => { + i2 !== n2 && o2(i2, t2), this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode, e2, v.b, (e3) => o2(e3.posy, e3.posx), () => { this._slider.toggleClassName("active", false); }); } @@ -46279,7 +46279,7 @@ ${Object(zn.b)(wi)} this._domNode.setLeft(this._model.options.minimapLeft), this._domNode.setWidth(this._model.options.minimapWidth), this._domNode.setHeight(this._model.options.minimapHeight), this._shadow.setHeight(this._model.options.minimapHeight), this._canvas.setWidth(this._model.options.canvasOuterWidth), this._canvas.setHeight(this._model.options.canvasOuterHeight), this._canvas.domNode.width = this._model.options.canvasInnerWidth, this._canvas.domNode.height = this._model.options.canvasInnerHeight, this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth), this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight), this._decorationsCanvas.domNode.width = this._model.options.canvasInnerWidth, this._decorationsCanvas.domNode.height = this._model.options.canvasInnerHeight, this._slider.setWidth(this._model.options.minimapWidth); } _getBuffer() { - return this._buffers || this._model.options.canvasInnerWidth > 0 && this._model.options.canvasInnerHeight > 0 && (this._buffers = new Dt(this._canvas.domNode.getContext("2d"), this._model.options.canvasInnerWidth, this._model.options.canvasInnerHeight, this._model.options.backgroundColor)), this._buffers ? this._buffers.getBuffer() : null; + return this._buffers || this._model.options.canvasInnerWidth > 0 && this._model.options.canvasInnerHeight > 0 && (this._buffers = new Ot(this._canvas.domNode.getContext("2d"), this._model.options.canvasInnerWidth, this._model.options.canvasInnerHeight, this._model.options.backgroundColor)), this._buffers ? this._buffers.getBuffer() : null; } onDidChangeOptions() { this._lastRenderData = null, this._buffers = null, this._applyLayout(), this._domNode.setClassName(this._getMinimapDomNodeClassName()); @@ -46329,48 +46329,48 @@ ${Object(zn.b)(wi)} renderDecorations(e2) { if (this._renderDecorations) { this._renderDecorations = false; - const t2 = this._model.getSelections(), n2 = this._model.getMinimapDecorationsInViewport(e2.startLineNumber, e2.endLineNumber), {canvasInnerWidth: i2, canvasInnerHeight: o2} = this._model.options, r2 = this._model.options.minimapLineHeight, s2 = this._model.options.minimapCharWidth, a2 = this._model.getOptions().tabSize, l2 = this._decorationsCanvas.domNode.getContext("2d"); - l2.clearRect(0, 0, i2, o2); + const t2 = this._model.getSelections(), n2 = this._model.getMinimapDecorationsInViewport(e2.startLineNumber, e2.endLineNumber), {canvasInnerWidth: i2, canvasInnerHeight: r2} = this._model.options, o2 = this._model.options.minimapLineHeight, s2 = this._model.options.minimapCharWidth, a2 = this._model.getOptions().tabSize, l2 = this._decorationsCanvas.domNode.getContext("2d"); + l2.clearRect(0, 0, i2, r2); const c2 = new Map(); for (let n3 = 0; n3 < t2.length; n3++) { const i3 = t2[n3]; for (let t3 = i3.startLineNumber; t3 <= i3.endLineNumber; t3++) - this.renderDecorationOnLine(l2, c2, i3, this._selectionColor, e2, t3, r2, r2, a2, s2); + this.renderDecorationOnLine(l2, c2, i3, this._selectionColor, e2, t3, o2, o2, a2, s2); } for (let t3 = 0; t3 < n2.length; t3++) { const i3 = n2[t3]; if (!i3.options.minimap) continue; - const o3 = i3.options.minimap.getColor(this._theme); + const r3 = i3.options.minimap.getColor(this._theme); for (let t4 = i3.range.startLineNumber; t4 <= i3.range.endLineNumber; t4++) switch (i3.options.minimap.position) { case Tt.c.Inline: - this.renderDecorationOnLine(l2, c2, i3.range, o3, e2, t4, r2, r2, a2, s2); + this.renderDecorationOnLine(l2, c2, i3.range, r3, e2, t4, o2, o2, a2, s2); continue; case Tt.c.Gutter: - const n3 = (t4 - e2.startLineNumber) * r2, d2 = 2; - this.renderDecoration(l2, o3, d2, n3, 2, r2); + const n3 = (t4 - e2.startLineNumber) * o2, d2 = 2; + this.renderDecoration(l2, r3, d2, n3, 2, o2); continue; } } } } - renderDecorationOnLine(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - const d2 = (r2 - o2.startLineNumber) * a2; + renderDecorationOnLine(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + const d2 = (o2 - r2.startLineNumber) * a2; if (d2 + s2 < 0 || d2 > this._model.options.canvasInnerHeight) return; - let h2 = t2.get(r2); + let h2 = t2.get(o2); const u2 = !h2; if (!h2) { - const e3 = this._model.getLineContent(r2); + const e3 = this._model.getLineContent(o2); h2 = [j.h]; for (let t3 = 1; t3 < e3.length + 1; t3++) { const n3 = e3.charCodeAt(t3 - 1), i3 = n3 === 9 ? l2 * c2 : xe.E(n3) ? 2 * c2 : c2; h2[t3] = h2[t3 - 1] + i3; } - t2.set(r2, h2); + t2.set(o2, h2); } - const {startColumn: p2, endColumn: m2, startLineNumber: g2, endLineNumber: f2} = n2, b2 = g2 === r2 ? h2[p2 - 1] : j.h, _2 = f2 > r2 ? h2.length - 1 : m2 - 1; + const {startColumn: p2, endColumn: m2, startLineNumber: g2, endLineNumber: f2} = n2, b2 = g2 === o2 ? h2[p2 - 1] : j.h, _2 = f2 > o2 ? h2.length - 1 : m2 - 1; if (_2 > 0) { const t3 = h2[_2] - b2 || 2; this.renderDecoration(e2, i2, b2, d2, t3, s2); @@ -46380,66 +46380,66 @@ ${Object(zn.b)(wi)} renderLineHighlight(e2, t2, n2, i2) { e2.fillStyle = t2 && t2.transparent(0.5).toString() || "", e2.fillRect(j.h, n2, e2.canvas.width, i2); } - renderDecoration(e2, t2, n2, i2, o2, r2) { - e2.fillStyle = t2 && t2.toString() || "", e2.fillRect(n2, i2, o2, r2); + renderDecoration(e2, t2, n2, i2, r2, o2) { + e2.fillStyle = t2 && t2.toString() || "", e2.fillRect(n2, i2, r2, o2); } renderLines(e2) { const t2 = e2.startLineNumber, n2 = e2.endLineNumber, i2 = this._model.options.minimapLineHeight; if (this._lastRenderData && this._lastRenderData.linesEquals(e2)) { const t3 = this._lastRenderData._get(); - return new Ot(e2, t3.imageData, t3.lines); + return new Dt(e2, t3.imageData, t3.lines); } - const o2 = this._getBuffer(); - if (!o2) + const r2 = this._getBuffer(); + if (!r2) return null; - let [r2, s2, a2] = Mt._renderUntouchedLines(o2, t2, n2, i2, this._lastRenderData); + let [o2, s2, a2] = Mt._renderUntouchedLines(r2, t2, n2, i2, this._lastRenderData); const l2 = this._model.getMinimapLinesRenderingData(t2, n2, a2), c2 = this._model.getOptions().tabSize, d2 = this._model.options.backgroundColor, h2 = this._model.tokensColorTracker, u2 = h2.backgroundIsLight(), p2 = this._model.options.renderMinimap, m2 = this._model.options.charRenderer(), g2 = this._model.options.fontScale, f2 = this._model.options.minimapCharWidth, b2 = (p2 === 1 ? 2 : 3) * g2, _2 = i2 > b2 ? Math.floor((i2 - b2) / 2) : 0; let v2 = 0; const w2 = []; - for (let e3 = 0, r3 = n2 - t2 + 1; e3 < r3; e3++) - a2[e3] && Mt._renderLine(o2, d2, u2, p2, f2, h2, m2, v2, _2, c2, l2[e3], g2, i2), w2[e3] = new It(v2), v2 += i2; - const y2 = r2 === -1 ? 0 : r2, C2 = (s2 === -1 ? o2.height : s2) - y2; - return this._canvas.domNode.getContext("2d").putImageData(o2, 0, 0, 0, y2, o2.width, C2), new Ot(e2, o2, w2); + for (let e3 = 0, o3 = n2 - t2 + 1; e3 < o3; e3++) + a2[e3] && Mt._renderLine(r2, d2, u2, p2, f2, h2, m2, v2, _2, c2, l2[e3], g2, i2), w2[e3] = new It(v2), v2 += i2; + const y2 = o2 === -1 ? 0 : o2, C2 = (s2 === -1 ? r2.height : s2) - y2; + return this._canvas.domNode.getContext("2d").putImageData(r2, 0, 0, 0, y2, r2.width, C2), new Dt(e2, r2, w2); } - static _renderUntouchedLines(e2, t2, n2, i2, o2) { - const r2 = []; - if (!o2) { + static _renderUntouchedLines(e2, t2, n2, i2, r2) { + const o2 = []; + if (!r2) { for (let e3 = 0, i3 = n2 - t2 + 1; e3 < i3; e3++) - r2[e3] = true; - return [-1, -1, r2]; + o2[e3] = true; + return [-1, -1, o2]; } - const s2 = o2._get(), a2 = s2.imageData.data, l2 = s2.rendLineNumberStart, c2 = s2.lines, d2 = c2.length, h2 = e2.width, u2 = e2.data, p2 = (n2 - t2 + 1) * i2 * h2 * 4; + const s2 = r2._get(), a2 = s2.imageData.data, l2 = s2.rendLineNumberStart, c2 = s2.lines, d2 = c2.length, h2 = e2.width, u2 = e2.data, p2 = (n2 - t2 + 1) * i2 * h2 * 4; let m2 = -1, g2 = -1, f2 = -1, b2 = -1, _2 = -1, v2 = -1, w2 = 0; for (let e3 = t2; e3 <= n2; e3++) { - const n3 = e3 - t2, o3 = e3 - l2, s3 = o3 >= 0 && o3 < d2 ? c2[o3].dy : -1; + const n3 = e3 - t2, r3 = e3 - l2, s3 = r3 >= 0 && r3 < d2 ? c2[r3].dy : -1; if (s3 === -1) { - r2[n3] = true, w2 += i2; + o2[n3] = true, w2 += i2; continue; } const y2 = s3 * h2 * 4, C2 = (s3 + i2) * h2 * 4, x2 = w2 * h2 * 4, S2 = (w2 + i2) * h2 * 4; - b2 === y2 && v2 === x2 ? (b2 = C2, v2 = S2) : (f2 !== -1 && (u2.set(a2.subarray(f2, b2), _2), m2 === -1 && f2 === 0 && f2 === _2 && (m2 = b2), g2 === -1 && b2 === p2 && f2 === _2 && (g2 = f2)), f2 = y2, b2 = C2, _2 = x2, v2 = S2), r2[n3] = false, w2 += i2; + b2 === y2 && v2 === x2 ? (b2 = C2, v2 = S2) : (f2 !== -1 && (u2.set(a2.subarray(f2, b2), _2), m2 === -1 && f2 === 0 && f2 === _2 && (m2 = b2), g2 === -1 && b2 === p2 && f2 === _2 && (g2 = f2)), f2 = y2, b2 = C2, _2 = x2, v2 = S2), o2[n3] = false, w2 += i2; } f2 !== -1 && (u2.set(a2.subarray(f2, b2), _2), m2 === -1 && f2 === 0 && f2 === _2 && (m2 = b2), g2 === -1 && b2 === p2 && f2 === _2 && (g2 = f2)); - return [m2 === -1 ? -1 : m2 / (4 * h2), g2 === -1 ? -1 : g2 / (4 * h2), r2]; + return [m2 === -1 ? -1 : m2 / (4 * h2), g2 === -1 ? -1 : g2 / (4 * h2), o2]; } - static _renderLine(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2) { - const p2 = d2.content, m2 = d2.tokens, g2 = e2.width - o2, f2 = u2 === 1; + static _renderLine(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2) { + const p2 = d2.content, m2 = d2.tokens, g2 = e2.width - r2, f2 = u2 === 1; let b2 = j.h, _2 = 0, v2 = 0; for (let d3 = 0, u3 = m2.getCount(); d3 < u3; d3++) { - const u4 = m2.getEndOffset(d3), w2 = m2.getForeground(d3), y2 = r2.getColor(w2); + const u4 = m2.getEndOffset(d3), w2 = m2.getForeground(d3), y2 = o2.getColor(w2); for (; _2 < u4; _2++) { if (b2 > g2) return; - const r3 = p2.charCodeAt(_2); - if (r3 === 9) { + const o3 = p2.charCodeAt(_2); + if (o3 === 9) { const e3 = c2 - (_2 + v2) % c2; - v2 += e3 - 1, b2 += e3 * o2; - } else if (r3 === 32) - b2 += o2; + v2 += e3 - 1, b2 += e3 * r2; + } else if (o3 === 32) + b2 += r2; else { - const c3 = xe.E(r3) ? 2 : 1; + const c3 = xe.E(o3) ? 2 : 1; for (let d4 = 0; d4 < c3; d4++) - if (i2 === 2 ? s2.blockRenderChar(e2, b2, a2 + l2, y2, t2, n2, f2) : s2.renderChar(e2, b2, a2 + l2, r3, y2, t2, h2, n2, f2), b2 += o2, b2 > g2) + if (i2 === 2 ? s2.blockRenderChar(e2, b2, a2 + l2, y2, t2, n2, f2) : s2.renderChar(e2, b2, a2 + l2, o3, y2, t2, h2, n2, f2), b2 += r2, b2 > g2) return; } } @@ -46451,10 +46451,10 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .minimap > canvas { opacity: ${n2.rgba.a}; will-change: opacity; }`); const i2 = e2.getColor(_t.Rb); i2 && t2.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i2}; }`); - const o2 = e2.getColor(_t.Sb); - o2 && t2.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${o2}; }`); - const r2 = e2.getColor(_t.Qb); - r2 && t2.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${r2}; }`); + const r2 = e2.getColor(_t.Sb); + r2 && t2.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${r2}; }`); + const o2 = e2.getColor(_t.Qb); + o2 && t2.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o2}; }`); const s2 = e2.getColor(_t.ic); s2 && t2.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s2} -6px 0 6px -6px inset; }`); }); @@ -46514,16 +46514,16 @@ ${Object(zn.b)(wi)} } } } - var Ft = n(16); + var Ft = n(15); class Wt { constructor(e2, t2) { const n2 = e2.options; this.lineHeight = n2.get(51), this.pixelRatio = n2.get(115), this.overviewRulerLanes = n2.get(65), this.renderBorder = n2.get(64); const i2 = t2.getColor(Te.m); this.borderColor = i2 ? i2.toString() : null, this.hideCursor = n2.get(44); - const o2 = t2.getColor(Te.g); - this.cursorColor = o2 ? o2.transparent(0.7).toString() : null, this.themeType = t2.type; - const r2 = n2.get(56), s2 = r2.enabled, a2 = r2.side, l2 = s2 ? t2.getColor(Te.l) || gt.C.getDefaultBackground() : null; + const r2 = t2.getColor(Te.g); + this.cursorColor = r2 ? r2.transparent(0.7).toString() : null, this.themeType = t2.type; + const o2 = n2.get(56), s2 = o2.enabled, a2 = o2.side, l2 = s2 ? t2.getColor(Te.l) || gt.C.getDefaultBackground() : null; this.backgroundColor = l2 === null || a2 === "left" ? null : Ft.a.Format.CSS.formatHex(l2); const c2 = n2.get(117).overviewRuler; this.top = c2.top, this.right = c2.right, this.domWidth = c2.width, this.domHeight = c2.height, this.overviewRulerLanes === 0 ? (this.canvasWidth = 0, this.canvasHeight = 0) : (this.canvasWidth = this.domWidth * this.pixelRatio | 0, this.canvasHeight = this.domHeight * this.pixelRatio | 0); @@ -46533,8 +46533,8 @@ ${Object(zn.b)(wi)} _initLanes(e2, t2, n2) { const i2 = t2 - e2; if (n2 >= 3) { - const t3 = Math.floor(i2 / 3), n3 = Math.floor(i2 / 3), o2 = i2 - t3 - n3, r2 = e2 + t3; - return [[0, e2, r2, e2, e2 + t3 + o2, e2, r2, e2], [0, t3, o2, t3 + o2, n3, t3 + o2 + n3, o2 + n3, t3 + o2 + n3]]; + const t3 = Math.floor(i2 / 3), n3 = Math.floor(i2 / 3), r2 = i2 - t3 - n3, o2 = e2 + t3; + return [[0, e2, o2, e2, e2 + t3 + r2, e2, o2, e2], [0, t3, r2, t3 + r2, n3, t3 + r2 + n3, r2 + n3, t3 + r2 + n3]]; } if (n2 === 2) { const t3 = Math.floor(i2 / 2), n3 = i2 - t3; @@ -46594,37 +46594,37 @@ ${Object(zn.b)(wi)} _render() { if (this._settings.overviewRulerLanes === 0) return void this._domNode.setBackgroundColor(this._settings.backgroundColor ? this._settings.backgroundColor : ""); - const e2 = this._settings.canvasWidth, t2 = this._settings.canvasHeight, n2 = this._settings.lineHeight, i2 = this._context.viewLayout, o2 = t2 / this._context.viewLayout.getScrollHeight(), r2 = this._context.model.getAllOverviewRulerDecorations(this._context.theme), s2 = 6 * this._settings.pixelRatio | 0, a2 = s2 / 2 | 0, l2 = this._domNode.domNode.getContext("2d"); + const e2 = this._settings.canvasWidth, t2 = this._settings.canvasHeight, n2 = this._settings.lineHeight, i2 = this._context.viewLayout, r2 = t2 / this._context.viewLayout.getScrollHeight(), o2 = this._context.model.getAllOverviewRulerDecorations(this._context.theme), s2 = 6 * this._settings.pixelRatio | 0, a2 = s2 / 2 | 0, l2 = this._domNode.domNode.getContext("2d"); this._settings.backgroundColor === null ? l2.clearRect(0, 0, e2, t2) : (l2.fillStyle = this._settings.backgroundColor, l2.fillRect(0, 0, e2, t2)); - const c2 = this._settings.x, d2 = this._settings.w, h2 = Object.keys(r2); + const c2 = this._settings.x, d2 = this._settings.w, h2 = Object.keys(o2); h2.sort(); for (let e3 = 0, u2 = h2.length; e3 < u2; e3++) { - const u3 = h2[e3], p2 = r2[u3]; + const u3 = h2[e3], p2 = o2[u3]; l2.fillStyle = u3; let m2 = 0, g2 = 0, f2 = 0; - for (let e4 = 0, r3 = p2.length; e4 < r3; e4++) { - const r4 = p2[3 * e4], h3 = p2[3 * e4 + 1], u4 = p2[3 * e4 + 2]; - let b2 = i2.getVerticalOffsetForLineNumber(h3) * o2 | 0, _2 = (i2.getVerticalOffsetForLineNumber(u4) + n2) * o2 | 0; + for (let e4 = 0, o3 = p2.length; e4 < o3; e4++) { + const o4 = p2[3 * e4], h3 = p2[3 * e4 + 1], u4 = p2[3 * e4 + 2]; + let b2 = i2.getVerticalOffsetForLineNumber(h3) * r2 | 0, _2 = (i2.getVerticalOffsetForLineNumber(u4) + n2) * r2 | 0; if (_2 - b2 < s2) { let e5 = (b2 + _2) / 2 | 0; e5 < a2 ? e5 = a2 : e5 + a2 > t2 && (e5 = t2 - a2), b2 = e5 - a2, _2 = e5 + a2; } - b2 > f2 + 1 || r4 !== m2 ? (e4 !== 0 && l2.fillRect(c2[m2], g2, d2[m2], f2 - g2), m2 = r4, g2 = b2, f2 = _2) : _2 > f2 && (f2 = _2); + b2 > f2 + 1 || o4 !== m2 ? (e4 !== 0 && l2.fillRect(c2[m2], g2, d2[m2], f2 - g2), m2 = o4, g2 = b2, f2 = _2) : _2 > f2 && (f2 = _2); } l2.fillRect(c2[m2], g2, d2[m2], f2 - g2); } if (!this._settings.hideCursor && this._settings.cursorColor) { - const e3 = 2 * this._settings.pixelRatio | 0, n3 = e3 / 2 | 0, r3 = this._settings.x[7], s3 = this._settings.w[7]; + const e3 = 2 * this._settings.pixelRatio | 0, n3 = e3 / 2 | 0, o3 = this._settings.x[7], s3 = this._settings.w[7]; l2.fillStyle = this._settings.cursorColor; let a3 = -100, c3 = -100; for (let d3 = 0, h3 = this._cursorPositions.length; d3 < h3; d3++) { const h4 = this._cursorPositions[d3]; - let u2 = i2.getVerticalOffsetForLineNumber(h4.lineNumber) * o2 | 0; + let u2 = i2.getVerticalOffsetForLineNumber(h4.lineNumber) * r2 | 0; u2 < n3 ? u2 = n3 : u2 + n3 > t2 && (u2 = t2 - n3); const p2 = u2 - n3, m2 = p2 + e3; - p2 > c3 + 1 ? (d3 !== 0 && l2.fillRect(r3, a3, s3, c3 - a3), a3 = p2, c3 = m2) : m2 > c3 && (c3 = m2); + p2 > c3 + 1 ? (d3 !== 0 && l2.fillRect(o3, a3, s3, c3 - a3), a3 = p2, c3 = m2) : m2 > c3 && (c3 = m2); } - l2.fillRect(r3, a3, s3, c3 - a3); + l2.fillRect(o3, a3, s3, c3 - a3); } this._settings.renderBorder && this._settings.borderColor && this._settings.overviewRulerLanes > 0 && (l2.beginPath(), l2.lineWidth = 1, l2.strokeStyle = this._settings.borderColor, l2.moveTo(0, 0), l2.lineTo(0, t2), l2.stroke(), l2.moveTo(0, 0), l2.lineTo(e2, 0), l2.stroke()); } @@ -46666,16 +46666,16 @@ ${Object(zn.b)(wi)} _render() { if (this._zoneManager.getOuterHeight() === 0) return false; - const e2 = this._zoneManager.getCanvasWidth(), t2 = this._zoneManager.getCanvasHeight(), n2 = this._zoneManager.resolveColorZones(), i2 = this._zoneManager.getId2Color(), o2 = this._domNode.domNode.getContext("2d"); - return o2.clearRect(0, 0, e2, t2), n2.length > 0 && this._renderOneLane(o2, n2, i2, e2), true; + const e2 = this._zoneManager.getCanvasWidth(), t2 = this._zoneManager.getCanvasHeight(), n2 = this._zoneManager.resolveColorZones(), i2 = this._zoneManager.getId2Color(), r2 = this._domNode.domNode.getContext("2d"); + return r2.clearRect(0, 0, e2, t2), n2.length > 0 && this._renderOneLane(r2, n2, i2, e2), true; } _renderOneLane(e2, t2, n2, i2) { - let o2 = 0, r2 = 0, s2 = 0; + let r2 = 0, o2 = 0, s2 = 0; for (const a2 of t2) { const t3 = a2.colorId, l2 = a2.from, c2 = a2.to; - t3 !== o2 ? (e2.fillRect(0, r2, i2, s2 - r2), o2 = t3, e2.fillStyle = n2[o2], r2 = l2, s2 = c2) : s2 >= l2 ? s2 = Math.max(s2, c2) : (e2.fillRect(0, r2, i2, s2 - r2), r2 = l2, s2 = c2); + t3 !== r2 ? (e2.fillRect(0, o2, i2, s2 - o2), r2 = t3, e2.fillStyle = n2[r2], o2 = l2, s2 = c2) : s2 >= l2 ? s2 = Math.max(s2, c2) : (e2.fillRect(0, o2, i2, s2 - o2), o2 = l2, s2 = c2); } - e2.fillRect(0, r2, i2, s2 - r2); + e2.fillRect(0, o2, i2, s2 - o2); } } n(236); @@ -46703,10 +46703,10 @@ ${Object(zn.b)(wi)} return; if (e2 < t2) { const {tabSize: n3} = this._context.model.getTextModelOptions(), i2 = n3; - let o2 = t2 - e2; - for (; o2 > 0; ) { + let r2 = t2 - e2; + for (; r2 > 0; ) { const e3 = Object(p.b)(document.createElement("div")); - e3.setClassName("view-ruler"), e3.setWidth(i2), this.domNode.appendChild(e3), this._renderedRulers.push(e3), o2--; + e3.setClassName("view-ruler"), e3.setWidth(i2), this.domNode.appendChild(e3), this._renderedRulers.push(e3), r2--; } return; } @@ -46830,50 +46830,50 @@ ${Object(zn.b)(wi)} } _enrichVisibleRangesWithStyle(e2, t2, n2) { const i2 = this._typicalHalfwidthCharacterWidth / 4; - let o2 = null, r2 = null; + let r2 = null, o2 = null; if (n2 && n2.length > 0 && t2.length > 0) { const i3 = t2[0].lineNumber; if (i3 === e2.startLineNumber) - for (let e3 = 0; !o2 && e3 < n2.length; e3++) - n2[e3].lineNumber === i3 && (o2 = n2[e3].ranges[0]); + for (let e3 = 0; !r2 && e3 < n2.length; e3++) + n2[e3].lineNumber === i3 && (r2 = n2[e3].ranges[0]); const s2 = t2[t2.length - 1].lineNumber; if (s2 === e2.endLineNumber) - for (let e3 = n2.length - 1; !r2 && e3 >= 0; e3--) - n2[e3].lineNumber === s2 && (r2 = n2[e3].ranges[0]); - o2 && !o2.startStyle && (o2 = null), r2 && !r2.startStyle && (r2 = null); + for (let e3 = n2.length - 1; !o2 && e3 >= 0; e3--) + n2[e3].lineNumber === s2 && (o2 = n2[e3].ranges[0]); + r2 && !r2.startStyle && (r2 = null), o2 && !o2.startStyle && (o2 = null); } for (let e3 = 0, n3 = t2.length; e3 < n3; e3++) { const s2 = t2[e3].ranges[0], a2 = s2.left, l2 = s2.left + s2.width, c2 = {top: 0, bottom: 0}, d2 = {top: 0, bottom: 0}; if (e3 > 0) { - const n4 = t2[e3 - 1].ranges[0].left, o3 = t2[e3 - 1].ranges[0].left + t2[e3 - 1].ranges[0].width; - Zt(a2 - n4) < i2 ? c2.top = 2 : a2 > n4 && (c2.top = 1), Zt(l2 - o3) < i2 ? d2.top = 2 : n4 < l2 && l2 < o3 && (d2.top = 1); + const n4 = t2[e3 - 1].ranges[0].left, r3 = t2[e3 - 1].ranges[0].left + t2[e3 - 1].ranges[0].width; + Zt(a2 - n4) < i2 ? c2.top = 2 : a2 > n4 && (c2.top = 1), Zt(l2 - r3) < i2 ? d2.top = 2 : n4 < l2 && l2 < r3 && (d2.top = 1); } else - o2 && (c2.top = o2.startStyle.top, d2.top = o2.endStyle.top); + r2 && (c2.top = r2.startStyle.top, d2.top = r2.endStyle.top); if (e3 + 1 < n3) { - const n4 = t2[e3 + 1].ranges[0].left, o3 = t2[e3 + 1].ranges[0].left + t2[e3 + 1].ranges[0].width; - Zt(a2 - n4) < i2 ? c2.bottom = 2 : n4 < a2 && a2 < o3 && (c2.bottom = 1), Zt(l2 - o3) < i2 ? d2.bottom = 2 : l2 < o3 && (d2.bottom = 1); + const n4 = t2[e3 + 1].ranges[0].left, r3 = t2[e3 + 1].ranges[0].left + t2[e3 + 1].ranges[0].width; + Zt(a2 - n4) < i2 ? c2.bottom = 2 : n4 < a2 && a2 < r3 && (c2.bottom = 1), Zt(l2 - r3) < i2 ? d2.bottom = 2 : l2 < r3 && (d2.bottom = 1); } else - r2 && (c2.bottom = r2.startStyle.bottom, d2.bottom = r2.endStyle.bottom); + o2 && (c2.bottom = o2.startStyle.bottom, d2.bottom = o2.endStyle.bottom); s2.startStyle = c2, s2.endStyle = d2; } } _getVisibleRangesWithStyle(e2, t2, n2) { - const i2 = (t2.linesVisibleRangesForRange(e2, true) || []).map(Kt), o2 = this._visibleRangesHaveGaps(i2); - return Gt || o2 || !this._roundedSelection || this._enrichVisibleRangesWithStyle(t2.visibleRange, i2, n2), i2; + const i2 = (t2.linesVisibleRangesForRange(e2, true) || []).map(Kt), r2 = this._visibleRangesHaveGaps(i2); + return Gt || r2 || !this._roundedSelection || this._enrichVisibleRangesWithStyle(t2.visibleRange, i2, n2), i2; } - _createSelectionPiece(e2, t2, n2, i2, o2) { - return '<div class="cslr ' + n2 + '" style="top:' + e2.toString() + "px;left:" + i2.toString() + "px;width:" + o2.toString() + "px;height:" + t2 + 'px;"></div>'; + _createSelectionPiece(e2, t2, n2, i2, r2) { + return '<div class="cslr ' + n2 + '" style="top:' + e2.toString() + "px;left:" + i2.toString() + "px;width:" + r2.toString() + "px;height:" + t2 + 'px;"></div>'; } _actualRenderOneSelection(e2, t2, n2, i2) { if (i2.length === 0) return; - const o2 = !!i2[0].ranges[0].startStyle, r2 = this._lineHeight.toString(), s2 = (this._lineHeight - 1).toString(), a2 = i2[0].lineNumber, l2 = i2[i2.length - 1].lineNumber; + const r2 = !!i2[0].ranges[0].startStyle, o2 = this._lineHeight.toString(), s2 = (this._lineHeight - 1).toString(), a2 = i2[0].lineNumber, l2 = i2[i2.length - 1].lineNumber; for (let c2 = 0, d2 = i2.length; c2 < d2; c2++) { - const d3 = i2[c2], h2 = d3.lineNumber, u2 = h2 - t2, p2 = n2 && (h2 === l2 || h2 === a2) ? s2 : r2, m2 = n2 && h2 === a2 ? 1 : 0; + const d3 = i2[c2], h2 = d3.lineNumber, u2 = h2 - t2, p2 = n2 && (h2 === l2 || h2 === a2) ? s2 : o2, m2 = n2 && h2 === a2 ? 1 : 0; let g2 = "", f2 = ""; for (let e3 = 0, t3 = d3.ranges.length; e3 < t3; e3++) { const t4 = d3.ranges[e3]; - if (o2) { + if (r2) { const e4 = t4.startStyle, n4 = t4.endStyle; if (e4.top === 1 || e4.bottom === 1) { g2 += this._createSelectionPiece(m2, p2, Yt.SELECTION_CLASS_NAME, t4.left - Yt.ROUNDED_PIECE_WIDTH, Yt.ROUNDED_PIECE_WIDTH); @@ -46887,7 +46887,7 @@ ${Object(zn.b)(wi)} } } let n3 = Yt.SELECTION_CLASS_NAME; - if (o2) { + if (r2) { const e4 = t4.startStyle, i3 = t4.endStyle; e4.top === 0 && (n3 += " " + Yt.SELECTION_TOP_LEFT), e4.bottom === 0 && (n3 += " " + Yt.SELECTION_BOTTOM_LEFT), i3.top === 0 && (n3 += " " + Yt.SELECTION_TOP_RIGHT), i3.bottom === 0 && (n3 += " " + Yt.SELECTION_BOTTOM_RIGHT); } @@ -46901,17 +46901,17 @@ ${Object(zn.b)(wi)} for (let e3 = n2; e3 <= i2; e3++) { t2[e3 - n2] = ["", ""]; } - const o2 = []; - for (let i3 = 0, r2 = this._selections.length; i3 < r2; i3++) { - const r3 = this._selections[i3]; - if (r3.isEmpty()) { - o2[i3] = null; + const r2 = []; + for (let i3 = 0, o2 = this._selections.length; i3 < o2; i3++) { + const o3 = this._selections[i3]; + if (o3.isEmpty()) { + r2[i3] = null; continue; } - const s2 = this._getVisibleRangesWithStyle(r3, e2, this._previousFrameVisibleRangesWithStyle[i3]); - o2[i3] = s2, this._actualRenderOneSelection(t2, n2, this._selections.length > 1, s2); + const s2 = this._getVisibleRangesWithStyle(o3, e2, this._previousFrameVisibleRangesWithStyle[i3]); + r2[i3] = s2, this._actualRenderOneSelection(t2, n2, this._selections.length > 1, s2); } - this._previousFrameVisibleRangesWithStyle = o2, this._renderResult = t2.map(([e3, t3]) => e3 + t3); + this._previousFrameVisibleRangesWithStyle = r2, this._renderResult = t2.map(([e3, t3]) => e3 + t3); } render(e2, t2) { if (!this._renderResult) @@ -46928,20 +46928,20 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .focused .selected-text { background-color: ${n2}; }`); const i2 = e2.getColor(_t.J); i2 && t2.addRule(`.monaco-editor .selected-text { background-color: ${i2}; }`); - const o2 = e2.getColor(_t.P); - o2 && !o2.isTransparent() && t2.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${o2}; }`); + const r2 = e2.getColor(_t.P); + r2 && !r2.isTransparent() && t2.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r2}; }`); }); n(242); class Xt { - constructor(e2, t2, n2, i2, o2, r2) { - this.top = e2, this.left = t2, this.width = n2, this.height = i2, this.textContent = o2, this.textContentClassName = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.top = e2, this.left = t2, this.width = n2, this.height = i2, this.textContent = r2, this.textContentClassName = o2; } } class Qt { constructor(e2) { this._context = e2; const t2 = this._context.configuration.options, n2 = t2.get(36); - this._cursorStyle = t2.get(19), this._lineHeight = t2.get(51), this._typicalHalfwidthCharacterWidth = n2.typicalHalfwidthCharacterWidth, this._lineCursorWidth = Math.min(t2.get(22), this._typicalHalfwidthCharacterWidth), this._isVisible = true, this._domNode = Object(p.b)(document.createElement("div")), this._domNode.setClassName("cursor " + Oe.a), this._domNode.setHeight(this._lineHeight), this._domNode.setTop(0), this._domNode.setLeft(0), c.a.applyFontInfo(this._domNode, n2), this._domNode.setDisplay("none"), this._position = new ee.a(1, 1), this._lastRenderedContent = "", this._renderData = null; + this._cursorStyle = t2.get(19), this._lineHeight = t2.get(51), this._typicalHalfwidthCharacterWidth = n2.typicalHalfwidthCharacterWidth, this._lineCursorWidth = Math.min(t2.get(22), this._typicalHalfwidthCharacterWidth), this._isVisible = true, this._domNode = Object(p.b)(document.createElement("div")), this._domNode.setClassName("cursor " + De.a), this._domNode.setHeight(this._lineHeight), this._domNode.setTop(0), this._domNode.setLeft(0), c.a.applyFontInfo(this._domNode, n2), this._domNode.setDisplay("none"), this._position = new ee.a(1, 1), this._lastRenderedContent = "", this._renderData = null; } getDomNode() { return this._domNode; @@ -46970,21 +46970,21 @@ ${Object(zn.b)(wi)} return null; let i3; if (this._cursorStyle === j.i.Line) { - if (i3 = o.t(this._lineCursorWidth > 0 ? this._lineCursorWidth : 2), i3 > 2) { + if (i3 = r.t(this._lineCursorWidth > 0 ? this._lineCursorWidth : 2), i3 > 2) { const e3 = this._context.model.getLineContent(this._position.lineNumber), n4 = xe.L(e3, this._position.column - 1); t2 = e3.substr(this._position.column - 1, n4); } } else - i3 = o.t(1); - let r3 = n3.left; - i3 >= 2 && r3 >= 1 && (r3 -= 1); + i3 = r.t(1); + let o3 = n3.left; + i3 >= 2 && o3 >= 1 && (o3 -= 1); const s3 = e2.getVerticalOffsetForLineNumber(this._position.lineNumber) - e2.bigNumbersDelta; - return new Xt(s3, r3, i3, this._lineHeight, t2, ""); + return new Xt(s3, o3, i3, this._lineHeight, t2, ""); } - const n2 = this._context.model.getLineContent(this._position.lineNumber), i2 = xe.L(n2, this._position.column - 1), r2 = e2.linesVisibleRangesForRange(new te.a(this._position.lineNumber, this._position.column, this._position.lineNumber, this._position.column + i2), false); - if (!r2 || r2.length === 0) + const n2 = this._context.model.getLineContent(this._position.lineNumber), i2 = xe.L(n2, this._position.column - 1), o2 = e2.linesVisibleRangesForRange(new te.a(this._position.lineNumber, this._position.column, this._position.lineNumber, this._position.column + i2), false); + if (!o2 || o2.length === 0) return null; - const s2 = r2[0]; + const s2 = o2[0]; if (s2.outsideRenderedLine || s2.ranges.length === 0) return null; const a2 = s2.ranges[0], l2 = a2.width < 1 ? this._typicalHalfwidthCharacterWidth : a2.width; @@ -46992,8 +46992,8 @@ ${Object(zn.b)(wi)} if (this._cursorStyle === j.i.Block) { const e3 = this._context.model.getViewLineData(this._position.lineNumber); t2 = n2.substr(this._position.column - 1, i2); - const o2 = e3.tokens.findTokenIndexAtOffset(this._position.column - 1); - c2 = e3.tokens.getClassName(o2); + const r2 = e3.tokens.findTokenIndexAtOffset(this._position.column - 1); + c2 = e3.tokens.getClassName(r2); } let d2 = e2.getVerticalOffsetForLineNumber(this._position.lineNumber) - e2.bigNumbersDelta, h2 = this._lineHeight; return this._cursorStyle !== j.i.Underline && this._cursorStyle !== j.i.UnderlineThin || (d2 += this._lineHeight - 2, h2 = 2), new Xt(d2, a2.left, l2, h2, t2, c2); @@ -47002,7 +47002,7 @@ ${Object(zn.b)(wi)} this._renderData = this._prepareRender(e2); } render(e2) { - return this._renderData ? (this._lastRenderedContent !== this._renderData.textContent && (this._lastRenderedContent = this._renderData.textContent, this._domNode.domNode.textContent = this._lastRenderedContent), this._domNode.setClassName(`cursor ${Oe.a} ${this._renderData.textContentClassName}`), this._domNode.setDisplay("block"), this._domNode.setTop(this._renderData.top), this._domNode.setLeft(this._renderData.left), this._domNode.setWidth(this._renderData.width), this._domNode.setLineHeight(this._renderData.height), this._domNode.setHeight(this._renderData.height), {domNode: this._domNode.domNode, position: this._position, contentLeft: this._renderData.left, height: this._renderData.height, width: 2}) : (this._domNode.setDisplay("none"), null); + return this._renderData ? (this._lastRenderedContent !== this._renderData.textContent && (this._lastRenderedContent = this._renderData.textContent, this._domNode.domNode.textContent = this._lastRenderedContent), this._domNode.setClassName(`cursor ${De.a} ${this._renderData.textContentClassName}`), this._domNode.setDisplay("block"), this._domNode.setTop(this._renderData.top), this._domNode.setLeft(this._renderData.left), this._domNode.setWidth(this._renderData.width), this._domNode.setLineHeight(this._renderData.height), this._domNode.setHeight(this._renderData.height), {domNode: this._domNode.domNode, position: this._position, contentLeft: this._renderData.left, height: this._renderData.height, width: 2}) : (this._domNode.setDisplay("none"), null); } } class Jt extends N { @@ -47169,9 +47169,9 @@ ${Object(zn.b)(wi)} let t2 = [], n2 = 0; const i2 = this._primaryCursor.render(e2); i2 && (t2[n2++] = i2); - for (let i3 = 0, o2 = this._secondaryCursors.length; i3 < o2; i3++) { - const o3 = this._secondaryCursors[i3].render(e2); - o3 && (t2[n2++] = o3); + for (let i3 = 0, r2 = this._secondaryCursors.length; i3 < r2; i3++) { + const r3 = this._secondaryCursors[i3].render(e2); + r3 && (t2[n2++] = r3); } this._renderData = t2; } @@ -47205,9 +47205,9 @@ ${Object(zn.b)(wi)} let n2 = false; return this._context.model.changeWhitespace((e3) => { const i2 = Object.keys(this._zones); - for (let o2 = 0, r2 = i2.length; o2 < r2; o2++) { - const r3 = i2[o2], s2 = this._zones[r3], a2 = this._computeWhitespaceProps(s2.delegate), l2 = t2.get(r3); - !l2 || l2.afterLineNumber === a2.afterViewLineNumber && l2.height === a2.heightInPx || (e3.changeOneWhitespace(r3, a2.afterViewLineNumber, a2.heightInPx), this._safeCallOnComputedHeight(s2.delegate, a2.heightInPx), n2 = true); + for (let r2 = 0, o2 = i2.length; r2 < o2; r2++) { + const o3 = i2[r2], s2 = this._zones[o3], a2 = this._computeWhitespaceProps(s2.delegate), l2 = t2.get(o3); + !l2 || l2.afterLineNumber === a2.afterViewLineNumber && l2.height === a2.heightInPx || (e3.changeOneWhitespace(o3, a2.afterViewLineNumber, a2.heightInPx), this._safeCallOnComputedHeight(s2.delegate, a2.heightInPx), n2 = true); } }), n2; } @@ -47244,8 +47244,8 @@ ${Object(zn.b)(wi)} t2 = new ee.a(n3, this._context.model.getModelLineMaxColumn(n3)); } n2 = t2.column === this._context.model.getModelLineMaxColumn(t2.lineNumber) ? this._context.model.validateModelPosition({lineNumber: t2.lineNumber + 1, column: 1}) : this._context.model.validateModelPosition({lineNumber: t2.lineNumber, column: t2.column + 1}); - const i2 = this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t2), o2 = this._context.model.coordinatesConverter.modelPositionIsVisible(n2); - return {afterViewLineNumber: i2.lineNumber, heightInPx: o2 ? this._heightInPixels(e2) : 0, minWidthInPx: this._minWidthInPixels(e2)}; + const i2 = this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t2), r2 = this._context.model.coordinatesConverter.modelPositionIsVisible(n2); + return {afterViewLineNumber: i2.lineNumber, heightInPx: r2 ? this._heightInPixels(e2) : 0, minWidthInPx: this._minWidthInPixels(e2)}; } changeViewZones(e2) { let t2 = false; @@ -47259,7 +47259,7 @@ ${Object(zn.b)(wi)} try { e3(t3); } catch (e4) { - Object(r.e)(e4); + Object(o.e)(e4); } }(e2, i2), i2.addZone = en, i2.removeZone = en, i2.layoutZone = en; }), t2; @@ -47300,7 +47300,7 @@ ${Object(zn.b)(wi)} try { e2.onComputedHeight(t2); } catch (e3) { - Object(r.e)(e3); + Object(o.e)(e3); } } _safeCallOnDomNodeTop(e2, t2) { @@ -47308,7 +47308,7 @@ ${Object(zn.b)(wi)} try { e2.onDomNodeTop(t2); } catch (e3) { - Object(r.e)(e3); + Object(o.e)(e3); } } prepareRender(e2) { @@ -47316,13 +47316,13 @@ ${Object(zn.b)(wi)} render(e2) { const t2 = e2.viewportData.whitespaceViewportData, n2 = {}; let i2 = false; - for (let e3 = 0, o3 = t2.length; e3 < o3; e3++) + for (let e3 = 0, r3 = t2.length; e3 < r3; e3++) n2[t2[e3].id] = t2[e3], i2 = true; - const o2 = Object.keys(this._zones); - for (let t3 = 0, i3 = o2.length; t3 < i3; t3++) { - const i4 = o2[t3], r2 = this._zones[i4]; + const r2 = Object.keys(this._zones); + for (let t3 = 0, i3 = r2.length; t3 < i3; t3++) { + const i4 = r2[t3], o2 = this._zones[i4]; let s2 = 0, a2 = 0, l2 = "none"; - n2.hasOwnProperty(i4) ? (s2 = n2[i4].verticalOffset - e2.bigNumbersDelta, a2 = n2[i4].height, l2 = "block", r2.isVisible || (r2.domNode.setAttribute("monaco-visible-view-zone", "true"), r2.isVisible = true), this._safeCallOnDomNodeTop(r2.delegate, e2.getScrolledTopFromAbsoluteTop(n2[i4].verticalOffset))) : (r2.isVisible && (r2.domNode.removeAttribute("monaco-visible-view-zone"), r2.isVisible = false), this._safeCallOnDomNodeTop(r2.delegate, e2.getScrolledTopFromAbsoluteTop(-1e6))), r2.domNode.setTop(s2), r2.domNode.setHeight(a2), r2.domNode.setDisplay(l2), r2.marginDomNode && (r2.marginDomNode.setTop(s2), r2.marginDomNode.setHeight(a2), r2.marginDomNode.setDisplay(l2)); + n2.hasOwnProperty(i4) ? (s2 = n2[i4].verticalOffset - e2.bigNumbersDelta, a2 = n2[i4].height, l2 = "block", o2.isVisible || (o2.domNode.setAttribute("monaco-visible-view-zone", "true"), o2.isVisible = true), this._safeCallOnDomNodeTop(o2.delegate, e2.getScrolledTopFromAbsoluteTop(n2[i4].verticalOffset))) : (o2.isVisible && (o2.domNode.removeAttribute("monaco-visible-view-zone"), o2.isVisible = false), this._safeCallOnDomNodeTop(o2.delegate, e2.getScrolledTopFromAbsoluteTop(-1e6))), o2.domNode.setTop(s2), o2.domNode.setHeight(a2), o2.domNode.setDisplay(l2), o2.marginDomNode && (o2.marginDomNode.setTop(s2), o2.marginDomNode.setHeight(a2), o2.marginDomNode.setDisplay(l2)); } i2 && (this.domNode.setWidth(Math.max(e2.scrollWidth, this._contentWidth)), this.marginDomNode.setWidth(this._contentLeft)); } @@ -47341,7 +47341,7 @@ ${Object(zn.b)(wi)} return this._theme.getColor(e2); } } - class on { + class rn { constructor(e2, t2, n2) { this.configuration = e2, this.theme = new nn(t2), this.model = n2, this.viewLayout = n2.viewLayout; } @@ -47352,7 +47352,7 @@ ${Object(zn.b)(wi)} this.model.removeViewEventHandler(e2); } } - class rn { + class on { constructor(e2, t2, n2, i2) { this.selections = e2, this.startLineNumber = 0 | t2.startLineNumber, this.endLineNumber = 0 | t2.endLineNumber, this.relativeVerticalOffset = t2.relativeVerticalOffset, this.bigNumbersDelta = 0 | t2.bigNumbersDelta, this.whitespaceViewportData = n2, this._model = i2, this.visibleRange = new te.a(t2.startLineNumber, this._model.getLineMinColumn(t2.startLineNumber), t2.endLineNumber, this._model.getLineMaxColumn(t2.endLineNumber)); } @@ -47364,10 +47364,10 @@ ${Object(zn.b)(wi)} } } class sn extends L { - constructor(e2, t2, n2, i2, o2, r2) { + constructor(e2, t2, n2, i2, r2, o2) { super(), this._selections = [new u.a(1, 1, 1, 1)], this._renderAnimationFrame = null; - const s2 = new Pe(t2, i2, o2, e2); - this._context = new on(t2, n2.getColorTheme(), i2), this._context.addEventHandler(this), this._register(n2.onDidColorThemeChange((e3) => { + const s2 = new Pe(t2, i2, r2, e2); + this._context = new rn(t2, n2.getColorTheme(), i2), this._context.addEventHandler(this), this._register(n2.onDidColorThemeChange((e3) => { this._context.theme.update(e3), this._context.model.onDidColorThemeChange(), this.render(true, false); })), this._viewParts = [], this._textAreaHandler = new Re(this._context, s2, this._createTextAreaHandlerHelper()), this._viewParts.push(this._textAreaHandler), this._linesContent = Object(p.b)(document.createElement("div")), this._linesContent.setClassName("lines-content monaco-editor-background"), this._linesContent.setPosition("absolute"), this.domNode = Object(p.b)(document.createElement("div")), this.domNode.setClassName(this._getEditorClassName()), this.domNode.setAttribute("role", "code"), this._overflowGuardContainer = Object(p.b)(document.createElement("div")), I.write(this._overflowGuardContainer, 3), this._overflowGuardContainer.setClassName("overflow-guard"), this._scrollbar = new it(this._context, this._linesContent, this.domNode, this._overflowGuardContainer), this._viewParts.push(this._scrollbar), this._viewLines = new ht(this._context, this._linesContent), this._viewZones = new tn(this._context), this._viewParts.push(this._viewZones); const a2 = new zt(this._context); @@ -47387,7 +47387,7 @@ ${Object(zn.b)(wi)} const e3 = this._scrollbar.getOverviewRulerLayoutInfo(); e3.parent.insertBefore(a2.getDomNode(), e3.insertBefore); } - this._linesContent.appendChild(c2.getDomNode()), this._linesContent.appendChild(m2.domNode), this._linesContent.appendChild(this._viewZones.domNode), this._linesContent.appendChild(this._viewLines.getDomNode()), this._linesContent.appendChild(this._contentWidgets.domNode), this._linesContent.appendChild(this._viewCursors.getDomNode()), this._overflowGuardContainer.appendChild(h2.getDomNode()), this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()), this._overflowGuardContainer.appendChild(l2.getDomNode()), this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea), this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover), this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()), this._overflowGuardContainer.appendChild(g2.getDomNode()), this.domNode.appendChild(this._overflowGuardContainer), r2 ? r2.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode) : this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode), this._applyLayout(), this._pointerHandler = this._register(new Ce(this._context, s2, this._createPointerHandlerHelper())); + this._linesContent.appendChild(c2.getDomNode()), this._linesContent.appendChild(m2.domNode), this._linesContent.appendChild(this._viewZones.domNode), this._linesContent.appendChild(this._viewLines.getDomNode()), this._linesContent.appendChild(this._contentWidgets.domNode), this._linesContent.appendChild(this._viewCursors.getDomNode()), this._overflowGuardContainer.appendChild(h2.getDomNode()), this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()), this._overflowGuardContainer.appendChild(l2.getDomNode()), this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea), this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover), this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()), this._overflowGuardContainer.appendChild(g2.getDomNode()), this.domNode.appendChild(this._overflowGuardContainer), o2 ? o2.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode) : this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode), this._applyLayout(), this._pointerHandler = this._register(new Ce(this._context, s2, this._createPointerHandlerHelper())); } _flushAccumulatedAndRenderNow() { this._renderNow(); @@ -47433,7 +47433,7 @@ ${Object(zn.b)(wi)} super.dispose(); } _scheduleRender() { - this._renderAnimationFrame === null && (this._renderAnimationFrame = o.W(this._onRenderScheduled.bind(this), 100)); + this._renderAnimationFrame === null && (this._renderAnimationFrame = r.W(this._onRenderScheduled.bind(this), 100)); } _onRenderScheduled() { this._renderAnimationFrame = null, this._flushAccumulatedAndRenderNow(); @@ -47443,7 +47443,7 @@ ${Object(zn.b)(wi)} try { e2(); } catch (e3) { - Object(r.e)(e3); + Object(o.e)(e3); } }(() => this._actualRender()); } @@ -47456,16 +47456,16 @@ ${Object(zn.b)(wi)} return e2; } _actualRender() { - if (!o.N(this.domNode.domNode)) + if (!r.N(this.domNode.domNode)) return; let e2 = this._getViewPartsToRender(); if (!this._viewLines.shouldRender() && e2.length === 0) return; const t2 = this._context.viewLayout.getLinesViewportData(); this._context.model.setViewport(t2.startLineNumber, t2.endLineNumber, t2.centeredLineNumber); - const n2 = new rn(this._selections, t2, this._context.viewLayout.getWhitespaceViewportData(), this._context.model); + const n2 = new on(this._selections, t2, this._context.viewLayout.getWhitespaceViewportData(), this._context.model); this._contentWidgets.shouldRender() && this._contentWidgets.onBeforeRender(n2), this._viewLines.shouldRender() && (this._viewLines.renderText(n2), this._viewLines.onDidRender(), e2 = this._getViewPartsToRender()); - const i2 = new O(this._context.viewLayout, n2, this._viewLines); + const i2 = new D(this._context.viewLayout, n2, this._viewLines); for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) { e2[t3].prepareRender(i2); } @@ -47483,8 +47483,8 @@ ${Object(zn.b)(wi)} getOffsetForColumn(e2, t2) { const n2 = this._context.model.validateModelPosition({lineNumber: e2, column: t2}), i2 = this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n2); this._flushAccumulatedAndRenderNow(); - const o2 = this._viewLines.visibleRangeForPosition(new ee.a(i2.lineNumber, i2.column)); - return o2 ? o2.left : -1; + const r2 = this._viewLines.visibleRangeForPosition(new ee.a(i2.lineNumber, i2.column)); + return r2 ? r2.left : -1; } getTargetAtClientPoint(e2, t2) { const n2 = this._pointerHandler.getTargetAtClientPoint(e2, t2); @@ -47574,20 +47574,20 @@ ${Object(zn.b)(wi)} } _setState(e2, t2, n2) { if (t2) { - const n3 = e2.model.validateRange(t2.selectionStart), i2 = t2.selectionStart.equalsRange(n3) ? t2.selectionStartLeftoverVisibleColumns : 0, o2 = e2.model.validatePosition(t2.position), r2 = t2.position.equals(o2) ? t2.leftoverVisibleColumns : 0; - t2 = new ne.f(n3, i2, o2, r2); + const n3 = e2.model.validateRange(t2.selectionStart), i2 = t2.selectionStart.equalsRange(n3) ? t2.selectionStartLeftoverVisibleColumns : 0, r2 = e2.model.validatePosition(t2.position), o2 = t2.position.equals(r2) ? t2.leftoverVisibleColumns : 0; + t2 = new ne.f(n3, i2, r2, o2); } else { if (!n2) return; - const i2 = e2.model.validateRange(e2.coordinatesConverter.convertViewRangeToModelRange(n2.selectionStart)), o2 = e2.model.validatePosition(e2.coordinatesConverter.convertViewPositionToModelPosition(n2.position)); - t2 = new ne.f(i2, n2.selectionStartLeftoverVisibleColumns, o2, n2.leftoverVisibleColumns); + const i2 = e2.model.validateRange(e2.coordinatesConverter.convertViewRangeToModelRange(n2.selectionStart)), r2 = e2.model.validatePosition(e2.coordinatesConverter.convertViewPositionToModelPosition(n2.position)); + t2 = new ne.f(i2, n2.selectionStartLeftoverVisibleColumns, r2, n2.leftoverVisibleColumns); } if (n2) { - const i2 = e2.coordinatesConverter.validateViewRange(n2.selectionStart, t2.selectionStart), o2 = e2.coordinatesConverter.validateViewPosition(n2.position, t2.position); - n2 = new ne.f(i2, t2.selectionStartLeftoverVisibleColumns, o2, t2.leftoverVisibleColumns); + const i2 = e2.coordinatesConverter.validateViewRange(n2.selectionStart, t2.selectionStart), r2 = e2.coordinatesConverter.validateViewPosition(n2.position, t2.position); + n2 = new ne.f(i2, t2.selectionStartLeftoverVisibleColumns, r2, t2.leftoverVisibleColumns); } else { - const i2 = e2.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(t2.selectionStart.startLineNumber, t2.selectionStart.startColumn)), o2 = e2.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(t2.selectionStart.endLineNumber, t2.selectionStart.endColumn)), r2 = new te.a(i2.lineNumber, i2.column, o2.lineNumber, o2.column), s2 = e2.coordinatesConverter.convertModelPositionToViewPosition(t2.position); - n2 = new ne.f(r2, t2.selectionStartLeftoverVisibleColumns, s2, t2.leftoverVisibleColumns); + const i2 = e2.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(t2.selectionStart.startLineNumber, t2.selectionStart.startColumn)), r2 = e2.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(t2.selectionStart.endLineNumber, t2.selectionStart.endColumn)), o2 = new te.a(i2.lineNumber, i2.column, r2.lineNumber, r2.column), s2 = e2.coordinatesConverter.convertModelPositionToViewPosition(t2.position); + n2 = new ne.f(o2, t2.selectionStartLeftoverVisibleColumns, s2, t2.leftoverVisibleColumns); } this.modelState = t2, this.viewState = n2, this._updateTrackedRange(e2); } @@ -47718,16 +47718,16 @@ ${Object(zn.b)(wi)} t2.push({index: n2, selection: e2[n2].modelState.selection}); t2.sort((e3, t3) => e3.selection.startLineNumber === t3.selection.startLineNumber ? e3.selection.startColumn - t3.selection.startColumn : e3.selection.startLineNumber - t3.selection.startLineNumber); for (let n2 = 0; n2 < t2.length - 1; n2++) { - const i2 = t2[n2], o2 = t2[n2 + 1], r2 = i2.selection, s2 = o2.selection; + const i2 = t2[n2], r2 = t2[n2 + 1], o2 = i2.selection, s2 = r2.selection; if (!this.context.cursorConfig.multiCursorMergeOverlapping) continue; let a2; - if (a2 = s2.isEmpty() || r2.isEmpty() ? s2.getStartPosition().isBeforeOrEqual(r2.getEndPosition()) : s2.getStartPosition().isBefore(r2.getEndPosition()), a2) { - const r3 = i2.index < o2.index ? n2 : n2 + 1, s3 = i2.index < o2.index ? n2 + 1 : n2, a3 = t2[s3].index, l2 = t2[r3].index, c2 = t2[s3].selection, d2 = t2[r3].selection; + if (a2 = s2.isEmpty() || o2.isEmpty() ? s2.getStartPosition().isBeforeOrEqual(o2.getEndPosition()) : s2.getStartPosition().isBefore(o2.getEndPosition()), a2) { + const o3 = i2.index < r2.index ? n2 : n2 + 1, s3 = i2.index < r2.index ? n2 + 1 : n2, a3 = t2[s3].index, l2 = t2[o3].index, c2 = t2[s3].selection, d2 = t2[o3].selection; if (!c2.equalsSelection(d2)) { - const n3 = c2.plusRange(d2), i3 = c2.selectionStartLineNumber === c2.startLineNumber && c2.selectionStartColumn === c2.startColumn, o3 = d2.selectionStartLineNumber === d2.startLineNumber && d2.selectionStartColumn === d2.startColumn; + const n3 = c2.plusRange(d2), i3 = c2.selectionStartLineNumber === c2.startLineNumber && c2.selectionStartColumn === c2.startColumn, r3 = d2.selectionStartLineNumber === d2.startLineNumber && d2.selectionStartColumn === d2.startColumn; let s4, h2; - a3 === this.lastAddedCursorIndex ? (s4 = i3, this.lastAddedCursorIndex = l2) : s4 = o3, h2 = s4 ? new u.a(n3.startLineNumber, n3.startColumn, n3.endLineNumber, n3.endColumn) : new u.a(n3.endLineNumber, n3.endColumn, n3.startLineNumber, n3.startColumn), t2[r3].selection = h2; + a3 === this.lastAddedCursorIndex ? (s4 = i3, this.lastAddedCursorIndex = l2) : s4 = r3, h2 = s4 ? new u.a(n3.startLineNumber, n3.startColumn, n3.endLineNumber, n3.endColumn) : new u.a(n3.endLineNumber, n3.endColumn, n3.startLineNumber, n3.startColumn), t2[o3].selection = h2; const p2 = ne.d.fromModelSelection(h2); e2[l2].setState(this.context, p2.modelState, p2.viewState); } @@ -47793,8 +47793,8 @@ ${Object(zn.b)(wi)} } } class yn { - constructor(e2, t2, n2, i2, o2, r2) { - this.type = 10, this.source = e2, this.range = t2, this.selections = n2, this.verticalType = i2, this.revealHorizontal = o2, this.scrollType = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.type = 10, this.source = e2, this.range = t2, this.selections = n2, this.verticalType = i2, this.revealHorizontal = r2, this.scrollType = o2; } } class Cn { @@ -47928,18 +47928,18 @@ ${Object(zn.b)(wi)} return e2.kind !== 1 ? this : new In(this.oldHasFocus, e2.hasFocus); } } - class On { - constructor(e2, t2, n2, i2, o2, r2, s2, a2) { - this.kind = 2, this._oldScrollWidth = e2, this._oldScrollLeft = t2, this._oldScrollHeight = n2, this._oldScrollTop = i2, this.scrollWidth = o2, this.scrollLeft = r2, this.scrollHeight = s2, this.scrollTop = a2, this.scrollWidthChanged = this._oldScrollWidth !== this.scrollWidth, this.scrollLeftChanged = this._oldScrollLeft !== this.scrollLeft, this.scrollHeightChanged = this._oldScrollHeight !== this.scrollHeight, this.scrollTopChanged = this._oldScrollTop !== this.scrollTop; + class Dn { + constructor(e2, t2, n2, i2, r2, o2, s2, a2) { + this.kind = 2, this._oldScrollWidth = e2, this._oldScrollLeft = t2, this._oldScrollHeight = n2, this._oldScrollTop = i2, this.scrollWidth = r2, this.scrollLeft = o2, this.scrollHeight = s2, this.scrollTop = a2, this.scrollWidthChanged = this._oldScrollWidth !== this.scrollWidth, this.scrollLeftChanged = this._oldScrollLeft !== this.scrollLeft, this.scrollHeightChanged = this._oldScrollHeight !== this.scrollHeight, this.scrollTopChanged = this._oldScrollTop !== this.scrollTop; } isNoOp() { return !(this.scrollWidthChanged || this.scrollLeftChanged || this.scrollHeightChanged || this.scrollTopChanged); } merge(e2) { - return e2.kind !== 2 ? this : new On(this._oldScrollWidth, this._oldScrollLeft, this._oldScrollHeight, this._oldScrollTop, e2.scrollWidth, e2.scrollLeft, e2.scrollHeight, e2.scrollTop); + return e2.kind !== 2 ? this : new Dn(this._oldScrollWidth, this._oldScrollLeft, this._oldScrollHeight, this._oldScrollTop, e2.scrollWidth, e2.scrollLeft, e2.scrollHeight, e2.scrollTop); } } - class Dn { + class On { constructor() { this.kind = 3; } @@ -47951,8 +47951,8 @@ ${Object(zn.b)(wi)} } } class An { - constructor(e2, t2, n2, i2, o2, r2, s2) { - this.kind = 5, this.oldSelections = e2, this.selections = t2, this.oldModelVersionId = n2, this.modelVersionId = i2, this.source = o2, this.reason = r2, this.reachedMaxCursorCount = s2; + constructor(e2, t2, n2, i2, r2, o2, s2) { + this.kind = 5, this.oldSelections = e2, this.selections = t2, this.oldModelVersionId = n2, this.modelVersionId = i2, this.source = r2, this.reason = o2, this.reachedMaxCursorCount = s2; } static _selectionsAreEqual(e2, t2) { if (!e2 && !t2) @@ -48075,34 +48075,34 @@ ${Object(zn.b)(wi)} return this._cursors.getAll(); } setStates(e2, t2, n2, i2) { - let o2 = false; - i2 !== null && i2.length > Fn.MAX_CURSOR_COUNT && (i2 = i2.slice(0, Fn.MAX_CURSOR_COUNT), o2 = true); - const r2 = new Mn(this._model, this); - return this._cursors.setStates(i2), this._cursors.normalize(), this._columnSelectData = null, this._validateAutoClosedActions(), this._emitStateChangedIfNecessary(e2, t2, n2, r2, o2); + let r2 = false; + i2 !== null && i2.length > Fn.MAX_CURSOR_COUNT && (i2 = i2.slice(0, Fn.MAX_CURSOR_COUNT), r2 = true); + const o2 = new Mn(this._model, this); + return this._cursors.setStates(i2), this._cursors.normalize(), this._columnSelectData = null, this._validateAutoClosedActions(), this._emitStateChangedIfNecessary(e2, t2, n2, o2, r2); } setCursorColumnSelectData(e2) { this._columnSelectData = e2; } revealPrimary(e2, t2, n2, i2) { - const o2 = this._cursors.getViewPositions(); - if (o2.length > 1) + const r2 = this._cursors.getViewPositions(); + if (r2.length > 1) this._emitCursorRevealRange(e2, t2, null, this._cursors.getViewSelections(), 0, n2, i2); else { - const r2 = o2[0], s2 = new te.a(r2.lineNumber, r2.column, r2.lineNumber, r2.column); + const o2 = r2[0], s2 = new te.a(o2.lineNumber, o2.column, o2.lineNumber, o2.column); this._emitCursorRevealRange(e2, t2, s2, null, 0, n2, i2); } } - _revealPrimaryCursor(e2, t2, n2, i2, o2) { - const r2 = this._cursors.getViewPositions(); - if (r2.length > 1) - this._emitCursorRevealRange(e2, t2, null, this._cursors.getViewSelections(), n2, i2, o2); + _revealPrimaryCursor(e2, t2, n2, i2, r2) { + const o2 = this._cursors.getViewPositions(); + if (o2.length > 1) + this._emitCursorRevealRange(e2, t2, null, this._cursors.getViewSelections(), n2, i2, r2); else { - const s2 = r2[0], a2 = new te.a(s2.lineNumber, s2.column, s2.lineNumber, s2.column); - this._emitCursorRevealRange(e2, t2, a2, null, n2, i2, o2); + const s2 = o2[0], a2 = new te.a(s2.lineNumber, s2.column, s2.lineNumber, s2.column); + this._emitCursorRevealRange(e2, t2, a2, null, n2, i2, r2); } } - _emitCursorRevealRange(e2, t2, n2, i2, o2, r2, s2) { - e2.emitViewEvent(new yn(t2, n2, i2, o2, r2, s2)); + _emitCursorRevealRange(e2, t2, n2, i2, r2, o2, s2) { + e2.emitViewEvent(new yn(t2, n2, i2, r2, o2, s2)); } saveState() { let e2 = []; @@ -48117,10 +48117,10 @@ ${Object(zn.b)(wi)} let n2 = []; for (let e3 = 0, i2 = t2.length; e3 < i2; e3++) { const i3 = t2[e3]; - let o2 = 1, r2 = 1; - i3.position && i3.position.lineNumber && (o2 = i3.position.lineNumber), i3.position && i3.position.column && (r2 = i3.position.column); - let s2 = o2, a2 = r2; - i3.selectionStart && i3.selectionStart.lineNumber && (s2 = i3.selectionStart.lineNumber), i3.selectionStart && i3.selectionStart.column && (a2 = i3.selectionStart.column), n2.push({selectionStartLineNumber: s2, selectionStartColumn: a2, positionLineNumber: o2, positionColumn: r2}); + let r2 = 1, o2 = 1; + i3.position && i3.position.lineNumber && (r2 = i3.position.lineNumber), i3.position && i3.position.column && (o2 = i3.position.column); + let s2 = r2, a2 = o2; + i3.selectionStart && i3.selectionStart.lineNumber && (s2 = i3.selectionStart.lineNumber), i3.selectionStart && i3.selectionStart.column && (a2 = i3.selectionStart.column), n2.push({selectionStartLineNumber: s2, selectionStartColumn: a2, positionLineNumber: r2, positionColumn: o2}); } this.setStates(e2, "restoreState", 0, ne.d.fromModelSelections(n2)), this.revealPrimary(e2, "restoreState", true, 1); } @@ -48167,10 +48167,10 @@ ${Object(zn.b)(wi)} } _pushAutoClosedAction(e2, t2) { let n2 = [], i2 = []; - for (let o3 = 0, r3 = e2.length; o3 < r3; o3++) - n2.push({range: e2[o3], options: {inlineClassName: "auto-closed-character", stickiness: 1}}), i2.push({range: t2[o3], options: {stickiness: 1}}); - const o2 = this._model.deltaDecorations([], n2), r2 = this._model.deltaDecorations([], i2); - this._autoClosedActions.push(new Pn(this._model, o2, r2)); + for (let r3 = 0, o3 = e2.length; r3 < o3; r3++) + n2.push({range: e2[r3], options: {inlineClassName: "auto-closed-character", stickiness: 1}}), i2.push({range: t2[r3], options: {stickiness: 1}}); + const r2 = this._model.deltaDecorations([], n2), o2 = this._model.deltaDecorations([], i2); + this._autoClosedActions.push(new Pn(this._model, r2, o2)); } _executeEditOperation(e2) { if (!e2) @@ -48178,10 +48178,10 @@ ${Object(zn.b)(wi)} e2.shouldPushStackElementBefore && this._model.pushStackElement(); const t2 = class { static executeCommands(e3, t3, n2) { - const i2 = {model: e3, selectionsBefore: t3, trackedRanges: [], trackedRangesDirection: []}, o2 = this._innerExecuteCommands(i2, n2); + const i2 = {model: e3, selectionsBefore: t3, trackedRanges: [], trackedRangesDirection: []}, r2 = this._innerExecuteCommands(i2, n2); for (let e4 = 0, t4 = i2.trackedRanges.length; e4 < t4; e4++) i2.model._setTrackedRange(i2.trackedRanges[e4], null, 0); - return o2; + return r2; } static _innerExecuteCommands(e3, t3) { if (this._arrayIsEmpty(t3)) @@ -48189,32 +48189,32 @@ ${Object(zn.b)(wi)} const n2 = this._getEditOperations(e3, t3); if (n2.operations.length === 0) return null; - const i2 = n2.operations, o2 = this._getLoserCursorMap(i2); - if (o2.hasOwnProperty("0")) + const i2 = n2.operations, r2 = this._getLoserCursorMap(i2); + if (r2.hasOwnProperty("0")) return console.warn("Ignoring commands"), null; - let r2 = []; + let o2 = []; for (let e4 = 0, t4 = i2.length; e4 < t4; e4++) - o2.hasOwnProperty(i2[e4].identifier.major.toString()) || r2.push(i2[e4]); - n2.hadTrackedEditOperation && r2.length > 0 && (r2[0]._isTracked = true); - let s2 = e3.model.pushEditOperations(e3.selectionsBefore, r2, (n3) => { + r2.hasOwnProperty(i2[e4].identifier.major.toString()) || o2.push(i2[e4]); + n2.hadTrackedEditOperation && o2.length > 0 && (o2[0]._isTracked = true); + let s2 = e3.model.pushEditOperations(e3.selectionsBefore, o2, (n3) => { let i3 = []; for (let t4 = 0; t4 < e3.selectionsBefore.length; t4++) i3[t4] = []; for (const e4 of n3) e4.identifier && i3[e4.identifier.major].push(e4); - const o3 = (e4, t4) => e4.identifier.minor - t4.identifier.minor; - let r3 = []; + const r3 = (e4, t4) => e4.identifier.minor - t4.identifier.minor; + let o3 = []; for (let n4 = 0; n4 < e3.selectionsBefore.length; n4++) - i3[n4].length > 0 ? (i3[n4].sort(o3), r3[n4] = t3[n4].computeCursorState(e3.model, {getInverseEditOperations: () => i3[n4], getTrackedSelection: (t4) => { + i3[n4].length > 0 ? (i3[n4].sort(r3), o3[n4] = t3[n4].computeCursorState(e3.model, {getInverseEditOperations: () => i3[n4], getTrackedSelection: (t4) => { const n5 = parseInt(t4, 10), i4 = e3.model._getTrackedRange(e3.trackedRanges[n5]); return e3.trackedRangesDirection[n5] === 0 ? new u.a(i4.startLineNumber, i4.startColumn, i4.endLineNumber, i4.endColumn) : new u.a(i4.endLineNumber, i4.endColumn, i4.startLineNumber, i4.startColumn); - }})) : r3[n4] = e3.selectionsBefore[n4]; - return r3; + }})) : o3[n4] = e3.selectionsBefore[n4]; + return o3; }); s2 || (s2 = e3.selectionsBefore); let a2 = []; - for (let e4 in o2) - o2.hasOwnProperty(e4) && a2.push(parseInt(e4, 10)); + for (let e4 in r2) + r2.hasOwnProperty(e4) && a2.push(parseInt(e4, 10)); a2.sort((e4, t4) => t4 - e4); for (const e4 of a2) s2.splice(e4, 1); @@ -48228,42 +48228,42 @@ ${Object(zn.b)(wi)} } static _getEditOperations(e3, t3) { let n2 = [], i2 = false; - for (let o2 = 0, r2 = t3.length; o2 < r2; o2++) { - const r3 = t3[o2]; - if (r3) { - const t4 = this._getEditOperationsFromCommand(e3, o2, r3); + for (let r2 = 0, o2 = t3.length; r2 < o2; r2++) { + const o3 = t3[r2]; + if (o3) { + const t4 = this._getEditOperationsFromCommand(e3, r2, o3); n2 = n2.concat(t4.operations), i2 = i2 || t4.hadTrackedEditOperation; } } return {operations: n2, hadTrackedEditOperation: i2}; } static _getEditOperationsFromCommand(e3, t3, n2) { - let i2 = [], o2 = 0; - const s2 = (e4, r2, s3 = false) => { - te.a.isEmpty(e4) && r2 === "" || i2.push({identifier: {major: t3, minor: o2++}, range: e4, text: r2, forceMoveMarkers: s3, isAutoWhitespaceEdit: n2.insertsAutoWhitespace}); + let i2 = [], r2 = 0; + const s2 = (e4, o2, s3 = false) => { + te.a.isEmpty(e4) && o2 === "" || i2.push({identifier: {major: t3, minor: r2++}, range: e4, text: o2, forceMoveMarkers: s3, isAutoWhitespaceEdit: n2.insertsAutoWhitespace}); }; let a2 = false; const l2 = {addEditOperation: s2, addTrackedEditOperation: (e4, t4, n3) => { a2 = true, s2(e4, t4, n3); }, trackSelection: (t4, n3) => { const i3 = u.a.liftSelection(t4); - let o3; + let r3; if (i3.isEmpty()) if (typeof n3 == "boolean") - o3 = n3 ? 2 : 3; + r3 = n3 ? 2 : 3; else { const t5 = e3.model.getLineMaxColumn(i3.startLineNumber); - o3 = i3.startColumn === t5 ? 2 : 3; + r3 = i3.startColumn === t5 ? 2 : 3; } else - o3 = 1; - const r2 = e3.trackedRanges.length, s3 = e3.model._setTrackedRange(null, i3, o3); - return e3.trackedRanges[r2] = s3, e3.trackedRangesDirection[r2] = i3.getDirection(), r2.toString(); + r3 = 1; + const o2 = e3.trackedRanges.length, s3 = e3.model._setTrackedRange(null, i3, r3); + return e3.trackedRanges[o2] = s3, e3.trackedRangesDirection[o2] = i3.getDirection(), o2.toString(); }}; try { n2.getEditOperations(e3.model, l2); } catch (e4) { - return Object(r.e)(e4), {operations: [], hadTrackedEditOperation: false}; + return Object(o.e)(e4), {operations: [], hadTrackedEditOperation: false}; } return {operations: i2, hadTrackedEditOperation: a2}; } @@ -48271,12 +48271,12 @@ ${Object(zn.b)(wi)} (e3 = e3.slice(0)).sort((e4, t4) => -te.a.compareRangesUsingEnds(e4.range, t4.range)); let t3 = {}; for (let n2 = 1; n2 < e3.length; n2++) { - const i2 = e3[n2 - 1], o2 = e3[n2]; - if (te.a.getStartPosition(i2.range).isBefore(te.a.getEndPosition(o2.range))) { - let r2; - r2 = i2.identifier.major > o2.identifier.major ? i2.identifier.major : o2.identifier.major, t3[r2.toString()] = true; + const i2 = e3[n2 - 1], r2 = e3[n2]; + if (te.a.getStartPosition(i2.range).isBefore(te.a.getEndPosition(r2.range))) { + let o2; + o2 = i2.identifier.major > r2.identifier.major ? i2.identifier.major : r2.identifier.major, t3[o2.toString()] = true; for (let t4 = 0; t4 < e3.length; t4++) - e3[t4].identifier.major === r2 && (e3.splice(t4, 1), t4 < n2 && n2--, t4--); + e3[t4].identifier.major === o2 && (e3.splice(t4, 1), t4 < n2 && n2--, t4--); n2 > 0 && n2--; } } @@ -48287,8 +48287,8 @@ ${Object(zn.b)(wi)} this._interpretCommandResult(t2); let n2 = [], i2 = []; for (let t3 = 0; t3 < e2.commands.length; t3++) { - const o2 = e2.commands[t3]; - o2 instanceof dn.b && o2.enclosingRange && o2.closeCharacterRange && (n2.push(o2.closeCharacterRange), i2.push(o2.enclosingRange)); + const r2 = e2.commands[t3]; + r2 instanceof dn.b && r2.enclosingRange && r2.closeCharacterRange && (n2.push(r2.closeCharacterRange), i2.push(r2.enclosingRange)); } n2.length > 0 && this._pushAutoClosedAction(n2, i2), this._prevEditOperationType = e2.type; } @@ -48297,14 +48297,14 @@ ${Object(zn.b)(wi)} _interpretCommandResult(e2) { e2 && e2.length !== 0 || (e2 = this._cursors.readSelectionFromMarkers()), this._columnSelectData = null, this._cursors.setSelections(e2), this._cursors.normalize(); } - _emitStateChangedIfNecessary(e2, t2, n2, i2, o2) { - const r2 = new Mn(this._model, this); - if (r2.equals(i2)) + _emitStateChangedIfNecessary(e2, t2, n2, i2, r2) { + const o2 = new Mn(this._model, this); + if (o2.equals(i2)) return false; const s2 = this._cursors.getSelections(), a2 = this._cursors.getViewSelections(); - if (e2.emitViewEvent(new un(a2, s2)), !i2 || i2.cursorState.length !== r2.cursorState.length || r2.cursorState.some((e3, t3) => !e3.modelState.equals(i2.cursorState[t3].modelState))) { + if (e2.emitViewEvent(new un(a2, s2)), !i2 || i2.cursorState.length !== o2.cursorState.length || o2.cursorState.some((e3, t3) => !e3.modelState.equals(i2.cursorState[t3].modelState))) { const a3 = i2 ? i2.cursorState.map((e3) => e3.modelState.selection) : null, l2 = i2 ? i2.modelVersionId : 0; - e2.emitOutgoingEvent(new An(a3, s2, l2, r2.modelVersionId, t2 || "keyboard", n2, o2)); + e2.emitOutgoingEvent(new An(a3, s2, l2, o2.modelVersionId, t2 || "keyboard", n2, r2)); } return true; } @@ -48316,13 +48316,13 @@ ${Object(zn.b)(wi)} const i3 = e2[n2]; if (!i3.text || i3.text.indexOf("\n") >= 0) return null; - const o2 = i3.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/); - if (!o2) + const r2 = i3.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/); + if (!r2) return null; - const r2 = o2[1], s2 = this.context.cursorConfig.autoClosingPairsClose2.get(r2); + const o2 = r2[1], s2 = this.context.cursorConfig.autoClosingPairsClose2.get(o2); if (!s2 || s2.length !== 1) return null; - const a2 = s2[0].open, l2 = i3.text.length - o2[2].length - 1, c2 = i3.text.lastIndexOf(a2, l2 - 1); + const a2 = s2[0].open, l2 = i3.text.length - r2[2].length - 1, c2 = i3.text.lastIndexOf(a2, l2 - 1); if (c2 === -1) return null; t2.push([c2, l2]); @@ -48330,31 +48330,31 @@ ${Object(zn.b)(wi)} return t2; } executeEdits(e2, t2, n2, i2) { - let o2 = null; - t2 === "snippet" && (o2 = this._findAutoClosingPairs(n2)), o2 && (n2[0]._isTracked = true); - let r2 = [], s2 = []; + let r2 = null; + t2 === "snippet" && (r2 = this._findAutoClosingPairs(n2)), r2 && (n2[0]._isTracked = true); + let o2 = [], s2 = []; const a2 = this._model.pushEditOperations(this.getSelections(), n2, (e3) => { - if (o2) - for (let t4 = 0, n3 = o2.length; t4 < n3; t4++) { - const [n4, i3] = o2[t4], a3 = e3[t4], l2 = a3.range.startLineNumber, c2 = a3.range.startColumn - 1 + n4, d2 = a3.range.startColumn - 1 + i3; - r2.push(new te.a(l2, d2 + 1, l2, d2 + 2)), s2.push(new te.a(l2, c2 + 1, l2, d2 + 2)); + if (r2) + for (let t4 = 0, n3 = r2.length; t4 < n3; t4++) { + const [n4, i3] = r2[t4], a3 = e3[t4], l2 = a3.range.startLineNumber, c2 = a3.range.startColumn - 1 + n4, d2 = a3.range.startColumn - 1 + i3; + o2.push(new te.a(l2, d2 + 1, l2, d2 + 2)), s2.push(new te.a(l2, c2 + 1, l2, d2 + 2)); } const t3 = i2(e3); return t3 && (this._isHandling = true), t3; }); - a2 && (this._isHandling = false, this.setSelections(e2, t2, a2)), r2.length > 0 && this._pushAutoClosedAction(r2, s2); + a2 && (this._isHandling = false, this.setSelections(e2, t2, a2)), o2.length > 0 && this._pushAutoClosedAction(o2, s2); } _executeEdit(e2, t2, n2, i2 = 0) { if (this.context.cursorConfig.readOnly) return; - const o2 = new Mn(this._model, this); + const r2 = new Mn(this._model, this); this._cursors.stopTrackingSelections(), this._isHandling = true; try { this._cursors.ensureValidState(), e2(); } catch (e3) { - Object(r.e)(e3); + Object(o.e)(e3); } - this._isHandling = false, this._cursors.startTrackingSelections(), this._validateAutoClosedActions(), this._emitStateChangedIfNecessary(t2, n2, i2, o2, false) && this._revealPrimaryCursor(t2, n2, 0, true, 0); + this._isHandling = false, this._cursors.startTrackingSelections(), this._validateAutoClosedActions(), this._emitStateChangedIfNecessary(t2, n2, i2, r2, false) && this._revealPrimaryCursor(t2, n2, 0, true, 0); } setIsDoingComposition(e2) { this._isDoingComposition = e2; @@ -48376,8 +48376,8 @@ ${Object(zn.b)(wi)} const e3 = t2.length; let n3 = 0; for (; n3 < e3; ) { - const e4 = xe.L(t2, n3), i2 = t2.substr(n3, e4), o2 = Pn.getAllAutoClosedCharacters(this._autoClosedActions); - this._executeEditOperation(dn.a.typeWithInterceptors(this._isDoingComposition, this._prevEditOperationType, this.context.cursorConfig, this._model, this.getSelections(), o2, i2)), n3 += e4; + const e4 = xe.L(t2, n3), i2 = t2.substr(n3, e4), r2 = Pn.getAllAutoClosedCharacters(this._autoClosedActions); + this._executeEditOperation(dn.a.typeWithInterceptors(this._isDoingComposition, this._prevEditOperationType, this.context.cursorConfig, this._model, this.getSelections(), r2, i2)), n3 += e4; } } else this._executeEditOperation(dn.a.typeWithoutInterceptors(this._prevEditOperationType, this.context.cursorConfig, this._model, this.getSelections(), t2)); @@ -48388,10 +48388,10 @@ ${Object(zn.b)(wi)} this._executeEditOperation(dn.a.replacePreviousChar(this._prevEditOperationType, this.context.cursorConfig, this._model, this.getSelections(), t2, n2)); }, e2, i2); } - paste(e2, t2, n2, i2, o2) { + paste(e2, t2, n2, i2, r2) { this._executeEdit(() => { this._executeEditOperation(dn.a.paste(this.context.cursorConfig, this._model, this.getSelections(), t2, n2, i2 || [])); - }, e2, o2, 4); + }, e2, r2, 4); } cut(e2, t2) { this._executeEdit(() => { @@ -48435,8 +48435,8 @@ ${Object(zn.b)(wi)} } } class Hn { - constructor(e2, t2, n2, i2, o2) { - this.id = e2, this.afterLineNumber = t2, this.ordinal = n2, this.height = i2, this.minWidth = o2, this.prefixSum = 0; + constructor(e2, t2, n2, i2, r2) { + this.id = e2, this.afterLineNumber = t2, this.ordinal = n2, this.height = i2, this.minWidth = r2, this.prefixSum = 0; } } class qn { @@ -48444,10 +48444,10 @@ ${Object(zn.b)(wi)} this._instanceId = xe.R(++qn.INSTANCE_COUNT), this._pendingChanges = new Un(), this._lastWhitespaceId = 0, this._arr = [], this._prefixSumValidIndex = -1, this._minWidth = -1, this._lineCount = e2, this._lineHeight = t2, this._paddingTop = n2, this._paddingBottom = i2; } static findInsertionIndex(e2, t2, n2) { - let i2 = 0, o2 = e2.length; - for (; i2 < o2; ) { - const r2 = i2 + o2 >>> 1; - t2 === e2[r2].afterLineNumber ? n2 < e2[r2].ordinal ? o2 = r2 : i2 = r2 + 1 : t2 < e2[r2].afterLineNumber ? o2 = r2 : i2 = r2 + 1; + let i2 = 0, r2 = e2.length; + for (; i2 < r2; ) { + const o2 = i2 + r2 >>> 1; + t2 === e2[o2].afterLineNumber ? n2 < e2[o2].ordinal ? r2 = o2 : i2 = o2 + 1 : t2 < e2[o2].afterLineNumber ? r2 = o2 : i2 = o2 + 1; } return i2; } @@ -48463,10 +48463,10 @@ ${Object(zn.b)(wi)} changeWhitespace(e2) { let t2 = false; try { - e2({insertWhitespace: (e3, n2, i2, o2) => { - t2 = true, e3 |= 0, n2 |= 0, i2 |= 0, o2 |= 0; - const r2 = this._instanceId + ++this._lastWhitespaceId; - return this._pendingChanges.insert(new Hn(r2, e3, n2, i2, o2)), r2; + e2({insertWhitespace: (e3, n2, i2, r2) => { + t2 = true, e3 |= 0, n2 |= 0, i2 |= 0, r2 |= 0; + const o2 = this._instanceId + ++this._lastWhitespaceId; + return this._pendingChanges.insert(new Hn(o2, e3, n2, i2, r2)), o2; }, changeOneWhitespace: (e3, n2, i2) => { t2 = true, n2 |= 0, i2 |= 0, this._pendingChanges.change({id: e3, newAfterLineNumber: n2, newHeight: i2}); }, removeWhitespace: (e3) => { @@ -48492,21 +48492,21 @@ ${Object(zn.b)(wi)} const i2 = new Set(); for (const e3 of n2) i2.add(e3.id); - const o2 = new Map(); + const r2 = new Map(); for (const e3 of t2) - o2.set(e3.id, e3); - const r2 = (e3) => { + r2.set(e3.id, e3); + const o2 = (e3) => { let t3 = []; for (const n3 of e3) if (!i2.has(n3.id)) { - if (o2.has(n3.id)) { - const e4 = o2.get(n3.id); + if (r2.has(n3.id)) { + const e4 = r2.get(n3.id); n3.afterLineNumber = e4.newAfterLineNumber, n3.height = e4.newHeight; } t3.push(n3); } return t3; - }, s2 = r2(this._arr).concat(r2(e2)); + }, s2 = o2(this._arr).concat(o2(e2)); s2.sort((e3, t3) => e3.afterLineNumber === t3.afterLineNumber ? e3.ordinal - t3.ordinal : e3.afterLineNumber - t3.afterLineNumber), this._arr = s2, this._prefixSumValidIndex = -1; } _checkPendingChanges() { @@ -48571,13 +48571,13 @@ ${Object(zn.b)(wi)} const t2 = this._arr; let n2 = 0, i2 = t2.length - 1; for (; n2 <= i2; ) { - const o2 = n2 + ((i2 - n2 | 0) / 2 | 0) | 0; - if (t2[o2].afterLineNumber < e2) { - if (o2 + 1 >= t2.length || t2[o2 + 1].afterLineNumber >= e2) - return o2; - n2 = o2 + 1 | 0; + const r2 = n2 + ((i2 - n2 | 0) / 2 | 0) | 0; + if (t2[r2].afterLineNumber < e2) { + if (r2 + 1 >= t2.length || t2[r2 + 1].afterLineNumber >= e2) + return r2; + n2 = r2 + 1 | 0; } else - i2 = o2 - 1 | 0; + i2 = r2 - 1 | 0; } return -1; } @@ -48611,47 +48611,47 @@ ${Object(zn.b)(wi)} if (this._checkPendingChanges(), (e2 |= 0) < 0) return 1; const t2 = 0 | this._lineCount, n2 = this._lineHeight; - let i2 = 1, o2 = t2; - for (; i2 < o2; ) { - const t3 = (i2 + o2) / 2 | 0, r2 = 0 | this.getVerticalOffsetForLineNumber(t3); - if (e2 >= r2 + n2) + let i2 = 1, r2 = t2; + for (; i2 < r2; ) { + const t3 = (i2 + r2) / 2 | 0, o2 = 0 | this.getVerticalOffsetForLineNumber(t3); + if (e2 >= o2 + n2) i2 = t3 + 1; else { - if (e2 >= r2) + if (e2 >= o2) return t3; - o2 = t3; + r2 = t3; } } return i2 > t2 ? t2 : i2; } getLinesViewportData(e2, t2) { this._checkPendingChanges(), e2 |= 0, t2 |= 0; - const n2 = this._lineHeight, i2 = 0 | this.getLineNumberAtOrAfterVerticalOffset(e2), o2 = 0 | this.getVerticalOffsetForLineNumber(i2); - let r2 = 0 | this._lineCount, s2 = 0 | this.getFirstWhitespaceIndexAfterLineNumber(i2); + const n2 = this._lineHeight, i2 = 0 | this.getLineNumberAtOrAfterVerticalOffset(e2), r2 = 0 | this.getVerticalOffsetForLineNumber(i2); + let o2 = 0 | this._lineCount, s2 = 0 | this.getFirstWhitespaceIndexAfterLineNumber(i2); const a2 = 0 | this.getWhitespacesCount(); let l2, c2; - s2 === -1 ? (s2 = a2, c2 = r2 + 1, l2 = 0) : (c2 = 0 | this.getAfterLineNumberForWhitespaceIndex(s2), l2 = 0 | this.getHeightForWhitespaceIndex(s2)); - let d2 = o2, h2 = d2; + s2 === -1 ? (s2 = a2, c2 = o2 + 1, l2 = 0) : (c2 = 0 | this.getAfterLineNumberForWhitespaceIndex(s2), l2 = 0 | this.getHeightForWhitespaceIndex(s2)); + let d2 = r2, h2 = d2; let u2 = 0; - o2 >= 5e5 && (u2 = 5e5 * Math.floor(o2 / 5e5), u2 = Math.floor(u2 / n2) * n2, h2 -= u2); + r2 >= 5e5 && (u2 = 5e5 * Math.floor(r2 / 5e5), u2 = Math.floor(u2 / n2) * n2, h2 -= u2); const p2 = [], m2 = e2 + (t2 - e2) / 2; let g2 = -1; - for (let e3 = i2; e3 <= r2; e3++) { + for (let e3 = i2; e3 <= o2; e3++) { if (g2 === -1) { const t3 = d2, i3 = d2 + n2; (t3 <= m2 && m2 < i3 || t3 > m2) && (g2 = e3); } for (d2 += n2, p2[e3 - i2] = h2, h2 += n2; c2 === e3; ) - h2 += l2, d2 += l2, s2++, s2 >= a2 ? c2 = r2 + 1 : (c2 = 0 | this.getAfterLineNumberForWhitespaceIndex(s2), l2 = 0 | this.getHeightForWhitespaceIndex(s2)); + h2 += l2, d2 += l2, s2++, s2 >= a2 ? c2 = o2 + 1 : (c2 = 0 | this.getAfterLineNumberForWhitespaceIndex(s2), l2 = 0 | this.getHeightForWhitespaceIndex(s2)); if (d2 >= t2) { - r2 = e3; + o2 = e3; break; } } - g2 === -1 && (g2 = r2); - const f2 = 0 | this.getVerticalOffsetForLineNumber(r2); - let b2 = i2, _2 = r2; - return b2 < _2 && o2 < e2 && b2++, b2 < _2 && f2 + n2 > t2 && _2--, {bigNumbersDelta: u2, startLineNumber: i2, endLineNumber: r2, relativeVerticalOffset: p2, centeredLineNumber: g2, completelyVisibleStartLineNumber: b2, completelyVisibleEndLineNumber: _2}; + g2 === -1 && (g2 = o2); + const f2 = 0 | this.getVerticalOffsetForLineNumber(o2); + let b2 = i2, _2 = o2; + return b2 < _2 && r2 < e2 && b2++, b2 < _2 && f2 + n2 > t2 && _2--, {bigNumbersDelta: u2, startLineNumber: i2, endLineNumber: o2, relativeVerticalOffset: p2, centeredLineNumber: g2, completelyVisibleStartLineNumber: b2, completelyVisibleEndLineNumber: _2}; } getVerticalOffsetForWhitespaceIndex(e2) { this._checkPendingChanges(), e2 |= 0; @@ -48667,11 +48667,11 @@ ${Object(zn.b)(wi)} if (e2 >= this.getVerticalOffsetForWhitespaceIndex(n2) + this.getHeightForWhitespaceIndex(n2)) return -1; for (; t2 < n2; ) { - const i2 = Math.floor((t2 + n2) / 2), o2 = this.getVerticalOffsetForWhitespaceIndex(i2); - if (e2 >= o2 + this.getHeightForWhitespaceIndex(i2)) + const i2 = Math.floor((t2 + n2) / 2), r2 = this.getVerticalOffsetForWhitespaceIndex(i2); + if (e2 >= r2 + this.getHeightForWhitespaceIndex(i2)) t2 = i2 + 1; else { - if (e2 >= o2) + if (e2 >= r2) return i2; n2 = i2; } @@ -48696,14 +48696,14 @@ ${Object(zn.b)(wi)} const n2 = this.getWhitespaceIndexAtOrAfterVerticallOffset(e2), i2 = this.getWhitespacesCount() - 1; if (n2 < 0) return []; - let o2 = []; + let r2 = []; for (let e3 = n2; e3 <= i2; e3++) { const n3 = this.getVerticalOffsetForWhitespaceIndex(e3), i3 = this.getHeightForWhitespaceIndex(e3); if (n3 >= t2) break; - o2.push({id: this.getIdForWhitespaceIndex(e3), afterLineNumber: this.getAfterLineNumberForWhitespaceIndex(e3), verticalOffset: n3, height: i3}); + r2.push({id: this.getIdForWhitespaceIndex(e3), afterLineNumber: this.getAfterLineNumberForWhitespaceIndex(e3), verticalOffset: n3, height: i3}); } - return o2; + return r2; } getWhitespaces() { return this._checkPendingChanges(), this._arr.slice(0); @@ -48770,8 +48770,8 @@ ${Object(zn.b)(wi)} class Gn extends a.a { constructor(e2, t2, n2) { super(), this._configuration = e2; - const i2 = this._configuration.options, o2 = i2.get(117), r2 = i2.get(66); - this._linesLayout = new qn(t2, i2.get(51), r2.top, r2.bottom), this._scrollable = this._register(new Kn(0, n2)), this._configureSmoothScrollDuration(), this._scrollable.setScrollDimensions(new $n(o2.contentWidth, 0, o2.height, 0)), this.onDidScroll = this._scrollable.onDidScroll, this.onDidContentSizeChange = this._scrollable.onDidContentSizeChange, this._updateHeight(); + const i2 = this._configuration.options, r2 = i2.get(117), o2 = i2.get(66); + this._linesLayout = new qn(t2, i2.get(51), o2.top, o2.bottom), this._scrollable = this._register(new Kn(0, n2)), this._configureSmoothScrollDuration(), this._scrollable.setScrollDimensions(new $n(r2.contentWidth, 0, r2.height, 0)), this.onDidScroll = this._scrollable.onDidScroll, this.onDidContentSizeChange = this._scrollable.onDidContentSizeChange, this._updateHeight(); } dispose() { super.dispose(); @@ -48792,8 +48792,8 @@ ${Object(zn.b)(wi)} this._linesLayout.setPadding(e3.top, e3.bottom); } if (e2.hasChanged(117)) { - const e3 = t2.get(117), n2 = e3.contentWidth, i2 = e3.height, o2 = this._scrollable.getScrollDimensions(), r2 = o2.contentWidth; - this._scrollable.setScrollDimensions(new $n(n2, o2.contentWidth, i2, this._getContentHeight(n2, i2, r2))); + const e3 = t2.get(117), n2 = e3.contentWidth, i2 = e3.height, r2 = this._scrollable.getScrollDimensions(), o2 = r2.contentWidth; + this._scrollable.setScrollDimensions(new $n(n2, r2.contentWidth, i2, this._getContentHeight(n2, i2, o2))); } else this._updateHeight(); e2.hasChanged(94) && this._configureSmoothScrollDuration(); @@ -48813,8 +48813,8 @@ ${Object(zn.b)(wi)} } _getContentHeight(e2, t2, n2) { const i2 = this._configuration.options; - let o2 = this._linesLayout.getLinesTotalHeight(); - return i2.get(86) ? o2 += t2 - i2.get(51) : o2 += this._getHorizontalScrollbarHeight(e2, n2), o2; + let r2 = this._linesLayout.getLinesTotalHeight(); + return i2.get(86) ? r2 += t2 - i2.get(51) : r2 += this._getHorizontalScrollbarHeight(e2, n2), r2; } _updateHeight() { const e2 = this._scrollable.getScrollDimensions(), t2 = e2.width, n2 = e2.height, i2 = e2.contentWidth; @@ -48831,12 +48831,12 @@ ${Object(zn.b)(wi)} _computeContentWidth(e2) { const t2 = this._configuration.options, n2 = t2.get(118), i2 = t2.get(36); if (n2.isViewportWrapping) { - const n3 = t2.get(117), o2 = t2.get(56); - return e2 > n3.contentWidth + i2.typicalHalfwidthCharacterWidth && o2.enabled && o2.side === "right" ? e2 + n3.verticalScrollbarWidth : e2; + const n3 = t2.get(117), r2 = t2.get(56); + return e2 > n3.contentWidth + i2.typicalHalfwidthCharacterWidth && r2.enabled && r2.side === "right" ? e2 + n3.verticalScrollbarWidth : e2; } { - const n3 = t2.get(85) * i2.typicalHalfwidthCharacterWidth, o2 = this._linesLayout.getWhitespaceMinWidth(); - return Math.max(e2 + n3, o2); + const n3 = t2.get(85) * i2.typicalHalfwidthCharacterWidth, r2 = this._linesLayout.getWhitespaceMinWidth(); + return Math.max(e2 + n3, r2); } } setMaxLineWidth(e2) { @@ -48922,19 +48922,19 @@ ${Object(zn.b)(wi)} return t2 === 0 ? n2 : e2[t2 - 1] + n2; } static getOutputPositionOfInputOffset(e2, t2) { - let n2 = 0, i2 = e2.length - 1, o2 = 0, r2 = 0; + let n2 = 0, i2 = e2.length - 1, r2 = 0, o2 = 0; for (; n2 <= i2; ) { - o2 = n2 + (i2 - n2) / 2 | 0; - const s2 = e2[o2]; - if (r2 = o2 > 0 ? e2[o2 - 1] : 0, t2 < r2) - i2 = o2 - 1; + r2 = n2 + (i2 - n2) / 2 | 0; + const s2 = e2[r2]; + if (o2 = r2 > 0 ? e2[r2 - 1] : 0, t2 < o2) + i2 = r2 - 1; else { if (!(t2 >= s2)) break; - n2 = o2 + 1; + n2 = r2 + 1; } } - return new Xn(o2, t2 - r2); + return new Xn(r2, t2 - o2); } } class Jn { @@ -49003,8 +49003,8 @@ ${Object(zn.b)(wi)} } } class ti { - constructor(e2, t2, n2, i2, o2, r2, s2, a2) { - this.model = e2, this._validModelVersionId = -1, this._domLineBreaksComputerFactory = t2, this._monospaceLineBreaksComputerFactory = n2, this.fontInfo = i2, this.tabSize = o2, this.wrappingStrategy = r2, this.wrappingColumn = s2, this.wrappingIndent = a2, this._constructLines(true, null); + constructor(e2, t2, n2, i2, r2, o2, s2, a2) { + this.model = e2, this._validModelVersionId = -1, this._domLineBreaksComputerFactory = t2, this._monospaceLineBreaksComputerFactory = n2, this.fontInfo = i2, this.tabSize = r2, this.wrappingStrategy = o2, this.wrappingColumn = s2, this.wrappingIndent = a2, this._constructLines(true, null); } dispose() { this.hiddenAreasIds = this.model.deltaDecorations(this.hiddenAreasIds, []); @@ -49015,16 +49015,16 @@ ${Object(zn.b)(wi)} _constructLines(e2, t2) { this.lines = [], e2 && (this.hiddenAreasIds = []); let n2 = this.model.getLinesContent(); - const i2 = n2.length, o2 = this.createLineBreaksComputer(); + const i2 = n2.length, r2 = this.createLineBreaksComputer(); for (let e3 = 0; e3 < i2; e3++) - o2.addRequest(n2[e3], t2 ? t2[e3] : null); - const r2 = o2.finalize(); + r2.addRequest(n2[e3], t2 ? t2[e3] : null); + const o2 = r2.finalize(); let s2 = [], a2 = this.hiddenAreasIds.map((e3) => this.model.getDecorationRange(e3)).sort(te.a.compareRangesUsingStarts), l2 = 1, c2 = 0, d2 = -1, h2 = d2 + 1 < a2.length ? c2 + 1 : i2 + 2; for (let e3 = 0; e3 < i2; e3++) { let t3 = e3 + 1; t3 === h2 && (d2++, l2 = a2[d2].startLineNumber, c2 = a2[d2].endLineNumber, h2 = d2 + 1 < a2.length ? c2 + 1 : i2 + 2); - let n3 = t3 >= l2 && t3 <= c2, o3 = li(r2[e3], !n3); - s2[e3] = o3.getViewLineCount(), this.lines[e3] = o3; + let n3 = t3 >= l2 && t3 <= c2, r3 = li(o2[e3], !n3); + s2[e3] = r3.getViewLineCount(), this.lines[e3] = r3; } this._validModelVersionId = this.model.getVersionId(), this.prefixSumComputer = new ei(s2); } @@ -49034,12 +49034,12 @@ ${Object(zn.b)(wi)} _reduceRanges(e2) { if (e2.length === 0) return []; - let t2 = e2.map((e3) => this.model.validateRange(e3)).sort(te.a.compareRangesUsingStarts), n2 = [], i2 = t2[0].startLineNumber, o2 = t2[0].endLineNumber; - for (let e3 = 1, r2 = t2.length; e3 < r2; e3++) { - let r3 = t2[e3]; - r3.startLineNumber > o2 + 1 ? (n2.push(new te.a(i2, 1, o2, 1)), i2 = r3.startLineNumber, o2 = r3.endLineNumber) : r3.endLineNumber > o2 && (o2 = r3.endLineNumber); + let t2 = e2.map((e3) => this.model.validateRange(e3)).sort(te.a.compareRangesUsingStarts), n2 = [], i2 = t2[0].startLineNumber, r2 = t2[0].endLineNumber; + for (let e3 = 1, o2 = t2.length; e3 < o2; e3++) { + let o3 = t2[e3]; + o3.startLineNumber > r2 + 1 ? (n2.push(new te.a(i2, 1, r2, 1)), i2 = o3.startLineNumber, r2 = o3.endLineNumber) : o3.endLineNumber > r2 && (r2 = o3.endLineNumber); } - return n2.push(new te.a(i2, 1, o2, 1)), n2; + return n2.push(new te.a(i2, 1, r2, 1)), n2; } setHiddenAreas(e2) { let t2 = this._reduceRanges(e2), n2 = this.hiddenAreasIds.map((e3) => this.model.getDecorationRange(e3)).sort(te.a.compareRangesUsingStarts); @@ -49057,12 +49057,12 @@ ${Object(zn.b)(wi)} for (const e3 of t2) i2.push({range: e3, options: Yn.a.EMPTY}); this.hiddenAreasIds = this.model.deltaDecorations(this.hiddenAreasIds, i2); - let o2 = t2, r2 = 1, s2 = 0, a2 = -1, l2 = a2 + 1 < o2.length ? s2 + 1 : this.lines.length + 2, c2 = false; + let r2 = t2, o2 = 1, s2 = 0, a2 = -1, l2 = a2 + 1 < r2.length ? s2 + 1 : this.lines.length + 2, c2 = false; for (let e3 = 0; e3 < this.lines.length; e3++) { let t3 = e3 + 1; - t3 === l2 && (a2++, r2 = o2[a2].startLineNumber, s2 = o2[a2].endLineNumber, l2 = a2 + 1 < o2.length ? s2 + 1 : this.lines.length + 2); + t3 === l2 && (a2++, o2 = r2[a2].startLineNumber, s2 = r2[a2].endLineNumber, l2 = a2 + 1 < r2.length ? s2 + 1 : this.lines.length + 2); let n3 = false; - if (t3 >= r2 && t3 <= s2 ? this.lines[e3].isVisible() && (this.lines[e3] = this.lines[e3].setVisible(false), n3 = true) : (c2 = true, this.lines[e3].isVisible() || (this.lines[e3] = this.lines[e3].setVisible(true), n3 = true)), n3) { + if (t3 >= o2 && t3 <= s2 ? this.lines[e3].isVisible() && (this.lines[e3] = this.lines[e3].setVisible(false), n3 = true) : (c2 = true, this.lines[e3].isVisible() || (this.lines[e3] = this.lines[e3].setVisible(true), n3 = true)), n3) { let t4 = this.lines[e3].getViewLineCount(); this.prefixSumComputer.changeValue(e3, t4); } @@ -49076,10 +49076,10 @@ ${Object(zn.b)(wi)} return this.tabSize !== e2 && (this.tabSize = e2, this._constructLines(false, null), true); } setWrappingSettings(e2, t2, n2, i2) { - const o2 = this.fontInfo.equals(e2), r2 = this.wrappingStrategy === t2, s2 = this.wrappingColumn === n2, a2 = this.wrappingIndent === i2; - if (o2 && r2 && s2 && a2) + const r2 = this.fontInfo.equals(e2), o2 = this.wrappingStrategy === t2, s2 = this.wrappingColumn === n2, a2 = this.wrappingIndent === i2; + if (r2 && o2 && s2 && a2) return false; - const l2 = o2 && r2 && !s2 && a2; + const l2 = r2 && o2 && !s2 && a2; this.fontInfo = e2, this.wrappingStrategy = t2, this.wrappingColumn = n2, this.wrappingIndent = i2; let c2 = null; if (l2) { @@ -49098,21 +49098,21 @@ ${Object(zn.b)(wi)} onModelLinesDeleted(e2, t2, n2) { if (e2 <= this._validModelVersionId) return null; - let i2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, o2 = this.prefixSumComputer.getAccumulatedValue(n2 - 1); - return this.lines.splice(t2 - 1, n2 - t2 + 1), this.prefixSumComputer.removeValues(t2 - 1, n2 - t2 + 1), new vn(i2, o2); + let i2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, r2 = this.prefixSumComputer.getAccumulatedValue(n2 - 1); + return this.lines.splice(t2 - 1, n2 - t2 + 1), this.prefixSumComputer.removeValues(t2 - 1, n2 - t2 + 1), new vn(i2, r2); } onModelLinesInserted(e2, t2, n2, i2) { if (e2 <= this._validModelVersionId) return null; - let o2 = this.getHiddenAreas(), r2 = false, s2 = new ee.a(t2, 1); - for (const e3 of o2) + let r2 = this.getHiddenAreas(), o2 = false, s2 = new ee.a(t2, 1); + for (const e3 of r2) if (e3.containsPosition(s2)) { - r2 = true; + o2 = true; break; } let a2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, l2 = 0, c2 = [], d2 = []; for (let e3 = 0, t3 = i2.length; e3 < t3; e3++) { - let t4 = li(i2[e3], !r2); + let t4 = li(i2[e3], !o2); c2.push(t4); let n3 = t4.getViewLineCount(); l2 += n3, d2[e3] = n3; @@ -49122,10 +49122,10 @@ ${Object(zn.b)(wi)} onModelLineChanged(e2, t2, n2) { if (e2 <= this._validModelVersionId) return [false, null, null, null]; - let i2 = t2 - 1, o2 = this.lines[i2].getViewLineCount(), r2 = li(n2, this.lines[i2].isVisible()); - this.lines[i2] = r2; + let i2 = t2 - 1, r2 = this.lines[i2].getViewLineCount(), o2 = li(n2, this.lines[i2].isVisible()); + this.lines[i2] = o2; let s2 = this.lines[i2].getViewLineCount(), a2 = false, l2 = 0, c2 = -1, d2 = 0, h2 = -1, u2 = 0, p2 = -1; - o2 > s2 ? (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + s2 - 1, u2 = c2 + 1, p2 = u2 + (o2 - s2) - 1, a2 = true) : o2 < s2 ? (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + o2 - 1, d2 = c2 + 1, h2 = d2 + (s2 - o2) - 1, a2 = true) : (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + s2 - 1), this.prefixSumComputer.changeValue(i2, s2); + r2 > s2 ? (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + s2 - 1, u2 = c2 + 1, p2 = u2 + (r2 - s2) - 1, a2 = true) : r2 < s2 ? (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + r2 - 1, d2 = c2 + 1, h2 = d2 + (s2 - r2) - 1, a2 = true) : (l2 = t2 === 1 ? 1 : this.prefixSumComputer.getAccumulatedValue(t2 - 2) + 1, c2 = l2 + s2 - 1), this.prefixSumComputer.changeValue(i2, s2); return [a2, l2 <= c2 ? new _n(l2, c2) : null, d2 <= h2 ? new wn(d2, h2) : null, u2 <= p2 ? new vn(u2, p2) : null]; } acceptVersionId(e2) { @@ -49142,28 +49142,28 @@ ${Object(zn.b)(wi)} } getActiveIndentGuide(e2, t2, n2) { e2 = this._toValidViewLineNumber(e2), t2 = this._toValidViewLineNumber(t2), n2 = this._toValidViewLineNumber(n2); - const i2 = this.convertViewPositionToModelPosition(e2, this.getViewLineMinColumn(e2)), o2 = this.convertViewPositionToModelPosition(t2, this.getViewLineMinColumn(t2)), r2 = this.convertViewPositionToModelPosition(n2, this.getViewLineMinColumn(n2)), s2 = this.model.getActiveIndentGuide(i2.lineNumber, o2.lineNumber, r2.lineNumber), a2 = this.convertModelPositionToViewPosition(s2.startLineNumber, 1), l2 = this.convertModelPositionToViewPosition(s2.endLineNumber, this.model.getLineMaxColumn(s2.endLineNumber)); + const i2 = this.convertViewPositionToModelPosition(e2, this.getViewLineMinColumn(e2)), r2 = this.convertViewPositionToModelPosition(t2, this.getViewLineMinColumn(t2)), o2 = this.convertViewPositionToModelPosition(n2, this.getViewLineMinColumn(n2)), s2 = this.model.getActiveIndentGuide(i2.lineNumber, r2.lineNumber, o2.lineNumber), a2 = this.convertModelPositionToViewPosition(s2.startLineNumber, 1), l2 = this.convertModelPositionToViewPosition(s2.endLineNumber, this.model.getLineMaxColumn(s2.endLineNumber)); return {startLineNumber: a2.lineNumber, endLineNumber: l2.lineNumber, indent: s2.indent}; } getViewLinesIndentGuides(e2, t2) { e2 = this._toValidViewLineNumber(e2), t2 = this._toValidViewLineNumber(t2); const n2 = this.convertViewPositionToModelPosition(e2, this.getViewLineMinColumn(e2)), i2 = this.convertViewPositionToModelPosition(t2, this.getViewLineMaxColumn(t2)); - let o2 = [], r2 = [], s2 = []; + let r2 = [], o2 = [], s2 = []; const a2 = n2.lineNumber - 1, l2 = i2.lineNumber - 1; let c2 = null; for (let e3 = a2; e3 <= l2; e3++) { const t3 = this.lines[e3]; if (t3.isVisible()) { - let i3 = t3.getViewLineNumberOfModelPosition(0, e3 === a2 ? n2.column : 1), o3 = t3.getViewLineNumberOfModelPosition(0, this.model.getLineMaxColumn(e3 + 1)), l3 = o3 - i3 + 1, d3 = 0; - l3 > 1 && t3.getViewLineMinColumn(this.model, e3 + 1, o3) === 1 && (d3 = i3 === 0 ? 1 : 2), r2.push(l3), s2.push(d3), c2 === null && (c2 = new ee.a(e3 + 1, 0)); + let i3 = t3.getViewLineNumberOfModelPosition(0, e3 === a2 ? n2.column : 1), r3 = t3.getViewLineNumberOfModelPosition(0, this.model.getLineMaxColumn(e3 + 1)), l3 = r3 - i3 + 1, d3 = 0; + l3 > 1 && t3.getViewLineMinColumn(this.model, e3 + 1, r3) === 1 && (d3 = i3 === 0 ? 1 : 2), o2.push(l3), s2.push(d3), c2 === null && (c2 = new ee.a(e3 + 1, 0)); } else - c2 !== null && (o2 = o2.concat(this.model.getLinesIndentGuides(c2.lineNumber, e3)), c2 = null); + c2 !== null && (r2 = r2.concat(this.model.getLinesIndentGuides(c2.lineNumber, e3)), c2 = null); } - c2 !== null && (o2 = o2.concat(this.model.getLinesIndentGuides(c2.lineNumber, i2.lineNumber)), c2 = null); + c2 !== null && (r2 = r2.concat(this.model.getLinesIndentGuides(c2.lineNumber, i2.lineNumber)), c2 = null); const d2 = t2 - e2 + 1; let h2 = new Array(d2), u2 = 0; - for (let e3 = 0, t3 = o2.length; e3 < t3; e3++) { - let t4, n3 = o2[e3], i3 = Math.min(d2 - u2, r2[e3]), a3 = s2[e3]; + for (let e3 = 0, t3 = r2.length; e3 < t3; e3++) { + let t4, n3 = r2[e3], i3 = Math.min(d2 - u2, o2[e3]), a3 = s2[e3]; t4 = a3 === 2 ? 0 : a3 === 1 ? 1 : i3; for (let e4 = 0; e4 < i3; e4++) e4 === t4 && (n3 = 0), h2[u2++] = n3; @@ -49197,25 +49197,25 @@ ${Object(zn.b)(wi)} } getViewLinesData(e2, t2, n2) { e2 = this._toValidViewLineNumber(e2), t2 = this._toValidViewLineNumber(t2); - let i2 = this.prefixSumComputer.getIndexOf(e2 - 1), o2 = e2, r2 = i2.index, s2 = i2.remainder, a2 = []; - for (let i3 = r2, l2 = this.model.getLineCount(); i3 < l2; i3++) { + let i2 = this.prefixSumComputer.getIndexOf(e2 - 1), r2 = e2, o2 = i2.index, s2 = i2.remainder, a2 = []; + for (let i3 = o2, l2 = this.model.getLineCount(); i3 < l2; i3++) { let l3 = this.lines[i3]; if (!l3.isVisible()) continue; - let c2 = i3 === r2 ? s2 : 0, d2 = l3.getViewLineCount() - c2, h2 = false; - o2 + d2 > t2 && (h2 = true, d2 = t2 - o2 + 1); + let c2 = i3 === o2 ? s2 : 0, d2 = l3.getViewLineCount() - c2, h2 = false; + r2 + d2 > t2 && (h2 = true, d2 = t2 - r2 + 1); let u2 = c2 + d2; - if (l3.getViewLinesData(this.model, i3 + 1, c2, u2, o2 - e2, n2, a2), o2 += d2, h2) + if (l3.getViewLinesData(this.model, i3 + 1, c2, u2, r2 - e2, n2, a2), r2 += d2, h2) break; } return a2; } validateViewPosition(e2, t2, n2) { e2 = this._toValidViewLineNumber(e2); - let i2 = this.prefixSumComputer.getIndexOf(e2 - 1), o2 = i2.index, r2 = i2.remainder, s2 = this.lines[o2], a2 = s2.getViewLineMinColumn(this.model, o2 + 1, r2), l2 = s2.getViewLineMaxColumn(this.model, o2 + 1, r2); + let i2 = this.prefixSumComputer.getIndexOf(e2 - 1), r2 = i2.index, o2 = i2.remainder, s2 = this.lines[r2], a2 = s2.getViewLineMinColumn(this.model, r2 + 1, o2), l2 = s2.getViewLineMaxColumn(this.model, r2 + 1, o2); t2 < a2 && (t2 = a2), t2 > l2 && (t2 = l2); - let c2 = s2.getModelColumnOfViewPosition(r2, t2); - return this.model.validatePosition(new ee.a(o2 + 1, c2)).equals(n2) ? new ee.a(e2, t2) : this.convertModelPositionToViewPosition(n2.lineNumber, n2.column); + let c2 = s2.getModelColumnOfViewPosition(o2, t2); + return this.model.validatePosition(new ee.a(r2 + 1, c2)).equals(n2) ? new ee.a(e2, t2) : this.convertModelPositionToViewPosition(n2.lineNumber, n2.column); } validateViewRange(e2, t2) { const n2 = this.validateViewPosition(e2.startLineNumber, e2.startColumn, t2.getStartPosition()), i2 = this.validateViewPosition(e2.endLineNumber, e2.endColumn, t2.getEndPosition()); @@ -49223,23 +49223,23 @@ ${Object(zn.b)(wi)} } convertViewPositionToModelPosition(e2, t2) { e2 = this._toValidViewLineNumber(e2); - let n2 = this.prefixSumComputer.getIndexOf(e2 - 1), i2 = n2.index, o2 = n2.remainder, r2 = this.lines[i2].getModelColumnOfViewPosition(o2, t2); - return this.model.validatePosition(new ee.a(i2 + 1, r2)); + let n2 = this.prefixSumComputer.getIndexOf(e2 - 1), i2 = n2.index, r2 = n2.remainder, o2 = this.lines[i2].getModelColumnOfViewPosition(r2, t2); + return this.model.validatePosition(new ee.a(i2 + 1, o2)); } convertViewRangeToModelRange(e2) { const t2 = this.convertViewPositionToModelPosition(e2.startLineNumber, e2.startColumn), n2 = this.convertViewPositionToModelPosition(e2.endLineNumber, e2.endColumn); return new te.a(t2.lineNumber, t2.column, n2.lineNumber, n2.column); } convertModelPositionToViewPosition(e2, t2) { - const n2 = this.model.validatePosition(new ee.a(e2, t2)), i2 = n2.lineNumber, o2 = n2.column; - let r2 = i2 - 1, s2 = false; - for (; r2 > 0 && !this.lines[r2].isVisible(); ) - r2--, s2 = true; - if (r2 === 0 && !this.lines[r2].isVisible()) + const n2 = this.model.validatePosition(new ee.a(e2, t2)), i2 = n2.lineNumber, r2 = n2.column; + let o2 = i2 - 1, s2 = false; + for (; o2 > 0 && !this.lines[o2].isVisible(); ) + o2--, s2 = true; + if (o2 === 0 && !this.lines[o2].isVisible()) return new ee.a(1, 1); - const a2 = 1 + (r2 === 0 ? 0 : this.prefixSumComputer.getAccumulatedValue(r2 - 1)); + const a2 = 1 + (o2 === 0 ? 0 : this.prefixSumComputer.getAccumulatedValue(o2 - 1)); let l2; - return l2 = s2 ? this.lines[r2].getViewPositionOfModelPosition(a2, this.model.getLineMaxColumn(r2 + 1)) : this.lines[i2 - 1].getViewPositionOfModelPosition(a2, o2), l2; + return l2 = s2 ? this.lines[o2].getViewPositionOfModelPosition(a2, this.model.getLineMaxColumn(o2 + 1)) : this.lines[i2 - 1].getViewPositionOfModelPosition(a2, r2), l2; } convertModelRangeToViewRange(e2) { let t2 = this.convertModelPositionToViewPosition(e2.startLineNumber, e2.startColumn), n2 = this.convertModelPositionToViewPosition(e2.endLineNumber, e2.endColumn); @@ -49259,37 +49259,37 @@ ${Object(zn.b)(wi)} return this.lines[n2].getViewLineNumberOfModelPosition(i2, this.model.getLineMaxColumn(n2 + 1)); } getAllOverviewRulerDecorations(e2, t2, n2) { - const i2 = this.model.getOverviewRulerDecorations(e2, t2), o2 = new hi(); + const i2 = this.model.getOverviewRulerDecorations(e2, t2), r2 = new hi(); for (const e3 of i2) { const t3 = e3.options.overviewRuler, i3 = t3 ? t3.position : 0; if (i3 === 0) continue; - const r2 = t3.getColor(n2), s2 = this._getViewLineNumberForModelPosition(e3.range.startLineNumber, e3.range.startColumn), a2 = this._getViewLineNumberForModelPosition(e3.range.endLineNumber, e3.range.endColumn); - o2.accept(r2, s2, a2, i3); + const o2 = t3.getColor(n2), s2 = this._getViewLineNumberForModelPosition(e3.range.startLineNumber, e3.range.startColumn), a2 = this._getViewLineNumberForModelPosition(e3.range.endLineNumber, e3.range.endColumn); + r2.accept(o2, s2, a2, i3); } - return o2.result; + return r2.result; } getDecorationsInRange(e2, t2, n2) { - const i2 = this.convertViewPositionToModelPosition(e2.startLineNumber, e2.startColumn), o2 = this.convertViewPositionToModelPosition(e2.endLineNumber, e2.endColumn); - if (o2.lineNumber - i2.lineNumber <= e2.endLineNumber - e2.startLineNumber) - return this.model.getDecorationsInRange(new te.a(i2.lineNumber, 1, o2.lineNumber, o2.column), t2, n2); - let r2 = []; - const s2 = i2.lineNumber - 1, a2 = o2.lineNumber - 1; + const i2 = this.convertViewPositionToModelPosition(e2.startLineNumber, e2.startColumn), r2 = this.convertViewPositionToModelPosition(e2.endLineNumber, e2.endColumn); + if (r2.lineNumber - i2.lineNumber <= e2.endLineNumber - e2.startLineNumber) + return this.model.getDecorationsInRange(new te.a(i2.lineNumber, 1, r2.lineNumber, r2.column), t2, n2); + let o2 = []; + const s2 = i2.lineNumber - 1, a2 = r2.lineNumber - 1; let l2 = null; for (let e3 = s2; e3 <= a2; e3++) { if (this.lines[e3].isVisible()) l2 === null && (l2 = new ee.a(e3 + 1, e3 === s2 ? i2.column : 1)); else if (l2 !== null) { const i3 = this.model.getLineMaxColumn(e3); - r2 = r2.concat(this.model.getDecorationsInRange(new te.a(l2.lineNumber, l2.column, e3, i3), t2, n2)), l2 = null; + o2 = o2.concat(this.model.getDecorationsInRange(new te.a(l2.lineNumber, l2.column, e3, i3), t2, n2)), l2 = null; } } - l2 !== null && (r2 = r2.concat(this.model.getDecorationsInRange(new te.a(l2.lineNumber, l2.column, o2.lineNumber, o2.column), t2, n2)), l2 = null), r2.sort((e3, t3) => { + l2 !== null && (o2 = o2.concat(this.model.getDecorationsInRange(new te.a(l2.lineNumber, l2.column, r2.lineNumber, r2.column), t2, n2)), l2 = null), o2.sort((e3, t3) => { const n3 = te.a.compareRangesUsingStarts(e3.range, t3.range); return n3 === 0 ? e3.id < t3.id ? -1 : e3.id > t3.id ? 1 : 0 : n3; }); let c2 = [], d2 = 0, h2 = null; - for (const e3 of r2) { + for (const e3 of o2) { const t3 = e3.id; h2 !== t3 && (h2 = t3, c2[d2++] = e3); } @@ -49324,11 +49324,11 @@ ${Object(zn.b)(wi)} return e2.getLineMaxColumn(t2); } getViewLineData(e2, t2, n2) { - let i2 = e2.getLineTokens(t2), o2 = i2.getLineContent(); - return new bt.c(o2, false, 1, o2.length + 1, 0, i2.inflate()); + let i2 = e2.getLineTokens(t2), r2 = i2.getLineContent(); + return new bt.c(r2, false, 1, r2.length + 1, 0, i2.inflate()); } - getViewLinesData(e2, t2, n2, i2, o2, r2, s2) { - r2[o2] ? s2[o2] = this.getViewLineData(e2, t2, 0) : s2[o2] = null; + getViewLinesData(e2, t2, n2, i2, r2, o2, s2) { + o2[r2] ? s2[r2] = this.getViewLineData(e2, t2, 0) : s2[r2] = null; } getModelColumnOfViewPosition(e2, t2) { return t2; @@ -49371,7 +49371,7 @@ ${Object(zn.b)(wi)} getViewLineData(e2, t2, n2) { throw new Error("Not supported"); } - getViewLinesData(e2, t2, n2, i2, o2, r2, s2) { + getViewLinesData(e2, t2, n2, i2, r2, o2, s2) { throw new Error("Not supported"); } getModelColumnOfViewPosition(e2, t2) { @@ -49385,7 +49385,7 @@ ${Object(zn.b)(wi)} } } ii.INSTANCE = new ii(); - class oi { + class ri { constructor(e2, t2) { this._lineBreakData = e2, this._isVisible = t2; } @@ -49410,14 +49410,14 @@ ${Object(zn.b)(wi)} getViewLineContent(e2, t2, n2) { if (!this._isVisible) throw new Error("Not supported"); - let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), o2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2), r2 = e2.getValueInRange({startLineNumber: t2, startColumn: i2 + 1, endLineNumber: t2, endColumn: o2 + 1}); - return n2 > 0 && (r2 = si(this._lineBreakData.wrappedTextIndentLength) + r2), r2; + let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), r2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2), o2 = e2.getValueInRange({startLineNumber: t2, startColumn: i2 + 1, endLineNumber: t2, endColumn: r2 + 1}); + return n2 > 0 && (o2 = si(this._lineBreakData.wrappedTextIndentLength) + o2), o2; } getViewLineLength(e2, t2, n2) { if (!this._isVisible) throw new Error("Not supported"); - let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), o2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2) - i2; - return n2 > 0 && (o2 = this._lineBreakData.wrappedTextIndentLength + o2), o2; + let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), r2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2) - i2; + return n2 > 0 && (r2 = this._lineBreakData.wrappedTextIndentLength + r2), r2; } getViewLineMinColumn(e2, t2, n2) { if (!this._isVisible) @@ -49432,20 +49432,20 @@ ${Object(zn.b)(wi)} getViewLineData(e2, t2, n2) { if (!this._isVisible) throw new Error("Not supported"); - let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), o2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2), r2 = e2.getValueInRange({startLineNumber: t2, startColumn: i2 + 1, endLineNumber: t2, endColumn: o2 + 1}); - n2 > 0 && (r2 = si(this._lineBreakData.wrappedTextIndentLength) + r2); - let s2 = n2 > 0 ? this._lineBreakData.wrappedTextIndentLength + 1 : 1, a2 = r2.length + 1, l2 = n2 + 1 < this.getViewLineCount(), c2 = 0; + let i2 = this.getInputStartOffsetOfOutputLineIndex(n2), r2 = this.getInputEndOffsetOfOutputLineIndex(e2, t2, n2), o2 = e2.getValueInRange({startLineNumber: t2, startColumn: i2 + 1, endLineNumber: t2, endColumn: r2 + 1}); + n2 > 0 && (o2 = si(this._lineBreakData.wrappedTextIndentLength) + o2); + let s2 = n2 > 0 ? this._lineBreakData.wrappedTextIndentLength + 1 : 1, a2 = o2.length + 1, l2 = n2 + 1 < this.getViewLineCount(), c2 = 0; n2 > 0 && (c2 = this._lineBreakData.wrappedTextIndentLength); let d2 = e2.getLineTokens(t2); const h2 = n2 === 0 ? 0 : this._lineBreakData.breakOffsetsVisibleColumn[n2 - 1]; - return new bt.c(r2, l2, s2, a2, h2, d2.sliceAndInflate(i2, o2, c2)); + return new bt.c(o2, l2, s2, a2, h2, d2.sliceAndInflate(i2, r2, c2)); } - getViewLinesData(e2, t2, n2, i2, o2, r2, s2) { + getViewLinesData(e2, t2, n2, i2, r2, o2, s2) { if (!this._isVisible) throw new Error("Not supported"); for (let a2 = n2; a2 < i2; a2++) { - let i3 = o2 + a2 - n2; - r2[i3] ? s2[i3] = this.getViewLineData(e2, t2, a2) : s2[i3] = null; + let i3 = r2 + a2 - n2; + o2[i3] ? s2[i3] = this.getViewLineData(e2, t2, a2) : s2[i3] = null; } } getModelColumnOfViewPosition(e2, t2) { @@ -49457,8 +49457,8 @@ ${Object(zn.b)(wi)} getViewPositionOfModelPosition(e2, t2) { if (!this._isVisible) throw new Error("Not supported"); - let n2 = Qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets, t2 - 1), i2 = n2.outputLineIndex, o2 = n2.outputOffset + 1; - return i2 > 0 && (o2 += this._lineBreakData.wrappedTextIndentLength), new ee.a(e2 + i2, o2); + let n2 = Qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets, t2 - 1), i2 = n2.outputLineIndex, r2 = n2.outputOffset + 1; + return i2 > 0 && (r2 += this._lineBreakData.wrappedTextIndentLength), new ee.a(e2 + i2, r2); } getViewLineNumberOfModelPosition(e2, t2) { if (!this._isVisible) @@ -49466,18 +49466,18 @@ ${Object(zn.b)(wi)} return e2 + Qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets, t2 - 1).outputLineIndex; } } - let ri = [""]; + let oi = [""]; function si(e2) { - if (e2 >= ri.length) + if (e2 >= oi.length) for (let t2 = 1; t2 <= e2; t2++) - ri[t2] = ai(t2); - return ri[e2]; + oi[t2] = ai(t2); + return oi[e2]; } function ai(e2) { return new Array(e2 + 1).join(" "); } function li(e2, t2) { - return e2 === null ? t2 ? ni.INSTANCE : ii.INSTANCE : new oi(e2, t2); + return e2 === null ? t2 ? ni.INSTANCE : ii.INSTANCE : new ri(e2, t2); } class ci { constructor(e2) { @@ -49584,23 +49584,23 @@ ${Object(zn.b)(wi)} getViewLinesData(e2, t2, n2) { const i2 = this.model.getLineCount(); e2 = Math.min(Math.max(1, e2), i2), t2 = Math.min(Math.max(1, t2), i2); - let o2 = []; + let r2 = []; for (let i3 = e2; i3 <= t2; i3++) { let t3 = i3 - e2; - n2[t3] || (o2[t3] = null), o2[t3] = this.getViewLineData(i3); + n2[t3] || (r2[t3] = null), r2[t3] = this.getViewLineData(i3); } - return o2; + return r2; } getAllOverviewRulerDecorations(e2, t2, n2) { - const i2 = this.model.getOverviewRulerDecorations(e2, t2), o2 = new hi(); + const i2 = this.model.getOverviewRulerDecorations(e2, t2), r2 = new hi(); for (const e3 of i2) { const t3 = e3.options.overviewRuler, i3 = t3 ? t3.position : 0; if (i3 === 0) continue; - const r2 = t3.getColor(n2), s2 = e3.range.startLineNumber, a2 = e3.range.endLineNumber; - o2.accept(r2, s2, a2, i3); + const o2 = t3.getColor(n2), s2 = e3.range.startLineNumber, a2 = e3.range.endLineNumber; + r2.accept(o2, s2, a2, i3); } - return o2.result; + return r2.result; } getDecorationsInRange(e2, t2, n2) { return this.model.getDecorationsInRange(e2, t2, n2); @@ -49611,19 +49611,19 @@ ${Object(zn.b)(wi)} this.result = Object.create(null); } accept(e2, t2, n2, i2) { - let o2 = this.result[e2]; - if (o2) { - const e3 = o2[o2.length - 3], r2 = o2[o2.length - 1]; - if (e3 === i2 && r2 + 1 >= t2) - return void (n2 > r2 && (o2[o2.length - 1] = n2)); - o2.push(i2, t2, n2); + let r2 = this.result[e2]; + if (r2) { + const e3 = r2[r2.length - 3], o2 = r2[r2.length - 1]; + if (e3 === i2 && o2 + 1 >= t2) + return void (n2 > o2 && (r2[r2.length - 1] = n2)); + r2.push(i2, t2, n2); } else this.result[e2] = [i2, t2, n2]; } } class ui { - constructor(e2, t2, n2, i2, o2) { - this.editorId = e2, this.model = t2, this.configuration = n2, this._linesCollection = i2, this._coordinatesConverter = o2, this._decorationsCache = Object.create(null), this._cachedModelDecorationsResolver = null, this._cachedModelDecorationsResolverViewRange = null; + constructor(e2, t2, n2, i2, r2) { + this.editorId = e2, this.model = t2, this.configuration = n2, this._linesCollection = i2, this._coordinatesConverter = r2, this._decorationsCache = Object.create(null), this._cachedModelDecorationsResolver = null, this._cachedModelDecorationsResolverViewRange = null; } _clearCachedModelDecorationsResolver() { this._cachedModelDecorationsResolver = null, this._cachedModelDecorationsResolverViewRange = null; @@ -49644,14 +49644,14 @@ ${Object(zn.b)(wi)} const t2 = e2.id; let n2 = this._decorationsCache[t2]; if (!n2) { - const i2 = e2.range, o2 = e2.options; - let r2; - if (o2.isWholeLine) { + const i2 = e2.range, r2 = e2.options; + let o2; + if (r2.isWholeLine) { const e3 = this._coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i2.startLineNumber, 1)), t3 = this._coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i2.endLineNumber, this.model.getLineMaxColumn(i2.endLineNumber))); - r2 = new te.a(e3.lineNumber, e3.column, t3.lineNumber, t3.column); + o2 = new te.a(e3.lineNumber, e3.column, t3.lineNumber, t3.column); } else - r2 = this._coordinatesConverter.convertModelRangeToViewRange(i2); - n2 = new bt.e(r2, o2), this._decorationsCache[t2] = n2; + o2 = this._coordinatesConverter.convertModelRangeToViewRange(i2); + n2 = new bt.e(o2, r2), this._decorationsCache[t2] = n2; } return n2; } @@ -49661,14 +49661,14 @@ ${Object(zn.b)(wi)} } _getDecorationsViewportData(e2) { const t2 = this._linesCollection.getDecorationsInRange(e2, this.editorId, Object(j.l)(this.configuration.options)), n2 = e2.startLineNumber, i2 = e2.endLineNumber; - let o2 = [], r2 = 0, s2 = []; + let r2 = [], o2 = 0, s2 = []; for (let e3 = n2; e3 <= i2; e3++) s2[e3 - n2] = []; for (let e3 = 0, a2 = t2.length; e3 < a2; e3++) { let a3 = t2[e3], l2 = a3.options, c2 = this._getOrCreateViewModelDecoration(a3), d2 = c2.range; - if (o2[r2++] = c2, l2.inlineClassName) { - let e4 = new bt.a(d2, l2.inlineClassName, l2.inlineClassNameAffectsLetterSpacing ? 3 : 0), t3 = Math.max(n2, d2.startLineNumber), o3 = Math.min(i2, d2.endLineNumber); - for (let i3 = t3; i3 <= o3; i3++) + if (r2[o2++] = c2, l2.inlineClassName) { + let e4 = new bt.a(d2, l2.inlineClassName, l2.inlineClassNameAffectsLetterSpacing ? 3 : 0), t3 = Math.max(n2, d2.startLineNumber), r3 = Math.min(i2, d2.endLineNumber); + for (let i3 = t3; i3 <= r3; i3++) s2[i3 - n2].push(e4); } if (l2.beforeContentClassName && n2 <= d2.startLineNumber && d2.startLineNumber <= i2) { @@ -49680,19 +49680,19 @@ ${Object(zn.b)(wi)} s2[d2.endLineNumber - n2].push(e4); } } - return {decorations: o2, inlineDecorations: s2}; + return {decorations: r2, inlineDecorations: s2}; } } class pi extends a.a { - constructor(e2, t2, n2, i2, o2, r2) { + constructor(e2, t2, n2, i2, r2, o2) { if (super(), this._editorId = e2, this._configuration = t2, this.model = n2, this._eventDispatcher = new Tn(), this.onEvent = this._eventDispatcher.onEvent, this.cursorConfig = new ne.b(this.model.getLanguageIdentifier(), this.model.getOptions(), this._configuration), this._tokenizeViewportSoon = this._register(new b.d(() => this.tokenizeViewport(), 50)), this._updateConfigurationViewLineCount = this._register(new b.d(() => this._updateConfigurationViewLineCountNow(), 0)), this._hasFocus = false, this._viewportStartLine = -1, this._viewportStartLineTrackedRange = null, this._viewportStartLineDelta = 0, this.model.isTooLargeForTokenization()) this._lines = new di(this.model); else { - const e3 = this._configuration.options, t3 = e3.get(36), n3 = e3.get(112), r3 = e3.get(118), s2 = e3.get(111); - this._lines = new ti(this.model, i2, o2, t3, this.model.getOptions().tabSize, n3, r3.wrappingColumn, s2); + const e3 = this._configuration.options, t3 = e3.get(36), n3 = e3.get(112), o3 = e3.get(118), s2 = e3.get(111); + this._lines = new ti(this.model, i2, r2, t3, this.model.getOptions().tabSize, n3, o3.wrappingColumn, s2); } - this.coordinatesConverter = this._lines.createCoordinatesConverter(), this._cursor = this._register(new Fn(n2, this, this.coordinatesConverter, this.cursorConfig)), this.viewLayout = this._register(new Gn(this._configuration, this.getLineCount(), r2)), this._register(this.viewLayout.onDidScroll((e3) => { - e3.scrollTopChanged && this._tokenizeViewportSoon.schedule(), this._eventDispatcher.emitSingleViewEvent(new Cn(e3)), this._eventDispatcher.emitOutgoingEvent(new On(e3.oldScrollWidth, e3.oldScrollLeft, e3.oldScrollHeight, e3.oldScrollTop, e3.scrollWidth, e3.scrollLeft, e3.scrollHeight, e3.scrollTop)); + this.coordinatesConverter = this._lines.createCoordinatesConverter(), this._cursor = this._register(new Fn(n2, this, this.coordinatesConverter, this.cursorConfig)), this.viewLayout = this._register(new Gn(this._configuration, this.getLineCount(), o2)), this._register(this.viewLayout.onDidScroll((e3) => { + e3.scrollTopChanged && this._tokenizeViewportSoon.schedule(), this._eventDispatcher.emitSingleViewEvent(new Cn(e3)), this._eventDispatcher.emitOutgoingEvent(new Dn(e3.oldScrollWidth, e3.oldScrollLeft, e3.oldScrollHeight, e3.oldScrollTop, e3.scrollWidth, e3.scrollLeft, e3.scrollHeight, e3.scrollTop)); })), this._register(this.viewLayout.onDidContentSizeChange((e3) => { this._eventDispatcher.emitOutgoingEvent(e3); })), this._decorations = new ui(this._editorId, this.model, this._configuration, this._lines, this.coordinatesConverter), this._registerModelEvents(), this._register(this._configuration.onDidChangeFast((e3) => { @@ -49735,8 +49735,8 @@ ${Object(zn.b)(wi)} n2 = this.coordinatesConverter.convertViewPositionToModelPosition(e3); } let i2 = false; - const o2 = this._configuration.options, r2 = o2.get(36), s2 = o2.get(112), a2 = o2.get(118), l2 = o2.get(111); - if (this._lines.setWrappingSettings(r2, s2, a2.wrappingColumn, l2) && (e2.emitViewEvent(new mn()), e2.emitViewEvent(new bn()), e2.emitViewEvent(new pn(null)), this._cursor.onLineMappingChanged(e2), this._decorations.onLineMappingChanged(), this.viewLayout.onFlushed(this.getLineCount()), this.viewLayout.getCurrentScrollTop() !== 0 && (i2 = true), this._updateConfigurationViewLineCount.schedule()), t2.hasChanged(72) && (this._decorations.reset(), e2.emitViewEvent(new pn(null))), e2.emitViewEvent(new hn(t2)), this.viewLayout.onConfigurationChanged(t2), i2 && n2) { + const r2 = this._configuration.options, o2 = r2.get(36), s2 = r2.get(112), a2 = r2.get(118), l2 = r2.get(111); + if (this._lines.setWrappingSettings(o2, s2, a2.wrappingColumn, l2) && (e2.emitViewEvent(new mn()), e2.emitViewEvent(new bn()), e2.emitViewEvent(new pn(null)), this._cursor.onLineMappingChanged(e2), this._decorations.onLineMappingChanged(), this.viewLayout.onFlushed(this.getLineCount()), this.viewLayout.getCurrentScrollTop() !== 0 && (i2 = true), this._updateConfigurationViewLineCount.schedule()), t2.hasChanged(72) && (this._decorations.reset(), e2.emitViewEvent(new pn(null))), e2.emitViewEvent(new hn(t2)), this.viewLayout.onConfigurationChanged(t2), i2 && n2) { const e3 = this.coordinatesConverter.convertModelPositionToViewPosition(n2), t3 = this.viewLayout.getVerticalOffsetForLineNumber(e3.lineNumber); this.viewLayout.setScrollPosition({scrollTop: t3 + this._viewportStartLineDelta}, 1); } @@ -49747,8 +49747,8 @@ ${Object(zn.b)(wi)} try { const t2 = this._eventDispatcher.beginEmitViewEvents(); let n2 = false, i2 = false; - const o2 = e2.changes, r2 = e2.versionId, s2 = this._lines.createLineBreaksComputer(); - for (const e3 of o2) + const r2 = e2.changes, o2 = e2.versionId, s2 = this._lines.createLineBreaksComputer(); + for (const e3 of r2) switch (e3.changeType) { case 4: for (const t3 of e3.detail) @@ -49759,32 +49759,32 @@ ${Object(zn.b)(wi)} } const a2 = s2.finalize(); let l2 = 0; - for (const e3 of o2) + for (const e3 of r2) switch (e3.changeType) { case 1: this._lines.onModelFlushed(), t2.emitViewEvent(new mn()), this._decorations.reset(), this.viewLayout.onFlushed(this.getLineCount()), n2 = true; break; case 3: { - const i3 = this._lines.onModelLinesDeleted(r2, e3.fromLineNumber, e3.toLineNumber); + const i3 = this._lines.onModelLinesDeleted(o2, e3.fromLineNumber, e3.toLineNumber); i3 !== null && (t2.emitViewEvent(i3), this.viewLayout.onLinesDeleted(i3.fromLineNumber, i3.toLineNumber)), n2 = true; break; } case 4: { const i3 = a2.slice(l2, l2 + e3.detail.length); l2 += e3.detail.length; - const o3 = this._lines.onModelLinesInserted(r2, e3.fromLineNumber, e3.toLineNumber, i3); - o3 !== null && (t2.emitViewEvent(o3), this.viewLayout.onLinesInserted(o3.fromLineNumber, o3.toLineNumber)), n2 = true; + const r3 = this._lines.onModelLinesInserted(o2, e3.fromLineNumber, e3.toLineNumber, i3); + r3 !== null && (t2.emitViewEvent(r3), this.viewLayout.onLinesInserted(r3.fromLineNumber, r3.toLineNumber)), n2 = true; break; } case 2: { const n3 = a2[l2]; l2++; - const [o3, s3, c2, d2] = this._lines.onModelLineChanged(r2, e3.lineNumber, n3); - i2 = o3, s3 && t2.emitViewEvent(s3), c2 && (t2.emitViewEvent(c2), this.viewLayout.onLinesInserted(c2.fromLineNumber, c2.toLineNumber)), d2 && (t2.emitViewEvent(d2), this.viewLayout.onLinesDeleted(d2.fromLineNumber, d2.toLineNumber)); + const [r3, s3, c2, d2] = this._lines.onModelLineChanged(o2, e3.lineNumber, n3); + i2 = r3, s3 && t2.emitViewEvent(s3), c2 && (t2.emitViewEvent(c2), this.viewLayout.onLinesInserted(c2.fromLineNumber, c2.toLineNumber)), d2 && (t2.emitViewEvent(d2), this.viewLayout.onLinesDeleted(d2.fromLineNumber, d2.toLineNumber)); break; } } - this._lines.acceptVersionId(r2), this.viewLayout.onHeightMaybeChanged(), !n2 && i2 && (t2.emitViewEvent(new bn()), t2.emitViewEvent(new pn(null)), this._cursor.onLineMappingChanged(t2), this._decorations.onLineMappingChanged()); + this._lines.acceptVersionId(o2), this.viewLayout.onHeightMaybeChanged(), !n2 && i2 && (t2.emitViewEvent(new bn()), t2.emitViewEvent(new pn(null)), this._cursor.onLineMappingChanged(t2), this._decorations.onLineMappingChanged()); } finally { this._eventDispatcher.endEmitViewEvents(); } @@ -49804,8 +49804,8 @@ ${Object(zn.b)(wi)} })), this._register(this.model.onDidChangeTokens((e2) => { let t2 = []; for (let n2 = 0, i2 = e2.ranges.length; n2 < i2; n2++) { - const i3 = e2.ranges[n2], o2 = this.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i3.fromLineNumber, 1)).lineNumber, r2 = this.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i3.toLineNumber, this.model.getLineMaxColumn(i3.toLineNumber))).lineNumber; - t2[n2] = {fromLineNumber: o2, toLineNumber: r2}; + const i3 = e2.ranges[n2], r2 = this.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i3.fromLineNumber, 1)).lineNumber, o2 = this.coordinatesConverter.convertModelPositionToViewPosition(new ee.a(i3.toLineNumber, this.model.getLineMaxColumn(i3.toLineNumber))).lineNumber; + t2[n2] = {fromLineNumber: r2, toLineNumber: o2}; } this._eventDispatcher.emitSingleViewEvent(new Sn(t2)), e2.tokenizationSupportChanged && this._tokenizeViewportSoon.schedule(); })), this._register(this.model.onDidChangeLanguageConfiguration((e2) => { @@ -49837,8 +49837,8 @@ ${Object(zn.b)(wi)} this._updateConfigurationViewLineCount.schedule(); } getVisibleRangesPlusViewportAboveBelow() { - const e2 = this._configuration.options.get(117), t2 = this._configuration.options.get(51), n2 = Math.max(20, Math.round(e2.height / t2)), i2 = this.viewLayout.getLinesViewportData(), o2 = Math.max(1, i2.completelyVisibleStartLineNumber - n2), r2 = Math.min(this.getLineCount(), i2.completelyVisibleEndLineNumber + n2); - return this._toModelVisibleRanges(new te.a(o2, this.getLineMinColumn(o2), r2, this.getLineMaxColumn(r2))); + const e2 = this._configuration.options.get(117), t2 = this._configuration.options.get(51), n2 = Math.max(20, Math.round(e2.height / t2)), i2 = this.viewLayout.getLinesViewportData(), r2 = Math.max(1, i2.completelyVisibleStartLineNumber - n2), o2 = Math.min(this.getLineCount(), i2.completelyVisibleEndLineNumber + n2); + return this._toModelVisibleRanges(new te.a(r2, this.getLineMinColumn(r2), o2, this.getLineMaxColumn(o2))); } getVisibleRanges() { const e2 = this.getCompletelyVisibleViewRange(); @@ -49848,12 +49848,12 @@ ${Object(zn.b)(wi)} const t2 = this.coordinatesConverter.convertViewRangeToModelRange(e2), n2 = this._lines.getHiddenAreas(); if (n2.length === 0) return [t2]; - let i2 = [], o2 = 0, r2 = t2.startLineNumber, s2 = t2.startColumn, a2 = t2.endLineNumber, l2 = t2.endColumn; + let i2 = [], r2 = 0, o2 = t2.startLineNumber, s2 = t2.startColumn, a2 = t2.endLineNumber, l2 = t2.endColumn; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) { const t4 = n2[e3].startLineNumber, l3 = n2[e3].endLineNumber; - l3 < r2 || (t4 > a2 || (r2 < t4 && (i2[o2++] = new te.a(r2, s2, t4 - 1, this.model.getLineMaxColumn(t4 - 1))), r2 = l3 + 1, s2 = 1)); + l3 < o2 || (t4 > a2 || (o2 < t4 && (i2[r2++] = new te.a(o2, s2, t4 - 1, this.model.getLineMaxColumn(t4 - 1))), o2 = l3 + 1, s2 = 1)); } - return (r2 < a2 || r2 === a2 && s2 < l2) && (i2[o2++] = new te.a(r2, s2, a2, l2)), i2; + return (o2 < a2 || o2 === a2 && s2 < l2) && (i2[r2++] = new te.a(o2, s2, a2, l2)), i2; } getCompletelyVisibleViewRange() { const e2 = this.viewLayout.getLinesViewportData(), t2 = e2.completelyVisibleStartLineNumber, n2 = e2.completelyVisibleEndLineNumber; @@ -49864,8 +49864,8 @@ ${Object(zn.b)(wi)} return new te.a(n2, this.getLineMinColumn(n2), i2, this.getLineMaxColumn(i2)); } saveState() { - const e2 = this.viewLayout.saveState(), t2 = e2.scrollTop, n2 = this.viewLayout.getLineNumberAtVerticalOffset(t2), i2 = this.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(n2, this.getLineMinColumn(n2))), o2 = this.viewLayout.getVerticalOffsetForLineNumber(n2) - t2; - return {scrollLeft: e2.scrollLeft, firstPosition: i2, firstPositionDeltaTop: o2}; + const e2 = this.viewLayout.saveState(), t2 = e2.scrollTop, n2 = this.viewLayout.getLineNumberAtVerticalOffset(t2), i2 = this.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(n2, this.getLineMinColumn(n2))), r2 = this.viewLayout.getVerticalOffsetForLineNumber(n2) - t2; + return {scrollLeft: e2.scrollLeft, firstPosition: i2, firstPositionDeltaTop: r2}; } reduceRestoreState(e2) { if (e2.firstPosition === void 0) @@ -49889,8 +49889,8 @@ ${Object(zn.b)(wi)} this._viewportStartLine = e2; let i2 = this.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(e2, this.getLineMinColumn(e2))); this._viewportStartLineTrackedRange = this.model._setTrackedRange(this._viewportStartLineTrackedRange, new te.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column), 1); - const o2 = this.viewLayout.getVerticalOffsetForLineNumber(e2), r2 = this.viewLayout.getCurrentScrollTop(); - this._viewportStartLineDelta = r2 - o2; + const r2 = this.viewLayout.getVerticalOffsetForLineNumber(e2), o2 = this.viewLayout.getCurrentScrollTop(); + this._viewportStartLineDelta = o2 - r2; } getActiveIndentGuide(e2, t2, n2) { return this._lines.getActiveIndentGuide(e2, t2, n2); @@ -49922,8 +49922,8 @@ ${Object(zn.b)(wi)} return this._decorations.getDecorationsViewportData(e2).decorations; } getViewLineRenderingData(e2, t2) { - let n2 = this.model.mightContainRTL(), i2 = this.model.mightContainNonBasicASCII(), o2 = this.getTabSize(), r2 = this._lines.getViewLineData(t2), s2 = this._decorations.getDecorationsViewportData(e2).inlineDecorations[t2 - e2.startLineNumber]; - return new bt.d(r2.minColumn, r2.maxColumn, r2.content, r2.continuesWithWrappedLine, n2, i2, r2.tokens, s2, o2, r2.startVisibleColumn); + let n2 = this.model.mightContainRTL(), i2 = this.model.mightContainNonBasicASCII(), r2 = this.getTabSize(), o2 = this._lines.getViewLineData(t2), s2 = this._decorations.getDecorationsViewportData(e2).inlineDecorations[t2 - e2.startLineNumber]; + return new bt.d(o2.minColumn, o2.maxColumn, o2.content, o2.continuesWithWrappedLine, n2, i2, o2.tokens, s2, r2, o2.startVisibleColumn); } getViewLineData(e2) { return this._lines.getViewLineData(e2); @@ -49965,8 +49965,8 @@ ${Object(zn.b)(wi)} deduceModelPositionRelativeToViewPosition(e2, t2, n2) { const i2 = this.coordinatesConverter.convertViewPositionToModelPosition(e2); this.model.getEOL().length === 2 && (t2 < 0 ? t2 -= n2 : t2 += n2); - const o2 = this.model.getOffsetAt(i2) + t2; - return this.model.getPositionAt(o2); + const r2 = this.model.getOffsetAt(i2) + t2; + return this.model.getPositionAt(r2); } getEOL() { return this.model.getEOL(); @@ -49974,23 +49974,23 @@ ${Object(zn.b)(wi)} getPlainTextToCopy(e2, t2, n2) { const i2 = n2 ? "\r\n" : this.model.getEOL(); (e2 = e2.slice(0)).sort(te.a.compareRangesUsingStarts); - let o2 = false, r2 = false; + let r2 = false, o2 = false; for (const t3 of e2) - t3.isEmpty() ? o2 = true : r2 = true; - if (!r2) { + t3.isEmpty() ? r2 = true : o2 = true; + if (!o2) { if (!t2) return ""; const n3 = e2.map((e3) => e3.startLineNumber); - let o3 = ""; + let r3 = ""; for (let e3 = 0; e3 < n3.length; e3++) - e3 > 0 && n3[e3 - 1] === n3[e3] || (o3 += this.model.getLineContent(n3[e3]) + i2); - return o3; + e3 > 0 && n3[e3 - 1] === n3[e3] || (r3 += this.model.getLineContent(n3[e3]) + i2); + return r3; } - if (o2 && t2) { + if (r2 && t2) { let t3 = [], i3 = 0; - for (const o3 of e2) { - const e3 = o3.startLineNumber; - o3.isEmpty() ? e3 !== i3 && t3.push(this.model.getLineContent(e3)) : t3.push(this.model.getValueInRange(o3, n2 ? 2 : 0)), i3 = e3; + for (const r3 of e2) { + const e3 = r3.startLineNumber; + r3.isEmpty() ? e3 !== i3 && t3.push(this.model.getLineContent(e3)) : t3.push(this.model.getValueInRange(r3, n2 ? 2 : 0)), i3 = e3; } return t3.length === 1 ? t3[0] : t3; } @@ -50012,14 +50012,14 @@ ${Object(zn.b)(wi)} const e3 = i2.startLineNumber; i2 = new te.a(e3, this.model.getLineMinColumn(e3), e3, this.model.getLineMaxColumn(e3)); } - const o2 = this._configuration.options.get(36), r2 = this._getColorMap(), s2 = o2.fontFamily === j.c.fontFamily ? o2.fontFamily : `'${o2.fontFamily}', ${j.c.fontFamily}`; - return {mode: n2.language, html: `<div style="color: ${r2[1]};background-color: ${r2[2]};font-family: ${s2};font-weight: ${o2.fontWeight};font-size: ${o2.fontSize}px;line-height: ${o2.lineHeight}px;white-space: pre;">` + this._getHTMLToCopy(i2, r2) + "</div>"}; + const r2 = this._configuration.options.get(36), o2 = this._getColorMap(), s2 = r2.fontFamily === j.c.fontFamily ? r2.fontFamily : `'${r2.fontFamily}', ${j.c.fontFamily}`; + return {mode: n2.language, html: `<div style="color: ${o2[1]};background-color: ${o2[2]};font-family: ${s2};font-weight: ${r2.fontWeight};font-size: ${r2.fontSize}px;line-height: ${r2.lineHeight}px;white-space: pre;">` + this._getHTMLToCopy(i2, o2) + "</div>"}; } _getHTMLToCopy(e2, t2) { - const n2 = e2.startLineNumber, i2 = e2.startColumn, o2 = e2.endLineNumber, r2 = e2.endColumn, s2 = this.getTabSize(); + const n2 = e2.startLineNumber, i2 = e2.startColumn, r2 = e2.endLineNumber, o2 = e2.endColumn, s2 = this.getTabSize(); let a2 = ""; - for (let e3 = n2; e3 <= o2; e3++) { - const l2 = this.model.getLineTokens(e3), c2 = l2.getLineContent(), d2 = e3 === n2 ? i2 - 1 : 0, h2 = e3 === o2 ? r2 - 1 : c2.length; + for (let e3 = n2; e3 <= r2; e3++) { + const l2 = this.model.getLineTokens(e3), c2 = l2.getLineContent(), d2 = e3 === n2 ? i2 - 1 : 0, h2 = e3 === r2 ? o2 - 1 : c2.length; a2 += c2 === "" ? "<br>" : Object(jn.a)(c2, l2.inflate(), t2, d2, h2, s2, m.i); } return a2; @@ -50095,7 +50095,7 @@ ${Object(zn.b)(wi)} this._executeCursorEdit((i2) => this._cursor.replacePreviousChar(i2, e2, t2, n2)); } paste(e2, t2, n2, i2) { - this._executeCursorEdit((o2) => this._cursor.paste(o2, e2, t2, n2, i2)); + this._executeCursorEdit((r2) => this._cursor.paste(r2, e2, t2, n2, i2)); } cut(e2) { this._executeCursorEdit((t2) => this._cursor.cut(t2, e2)); @@ -50117,8 +50117,8 @@ ${Object(zn.b)(wi)} const t2 = this._cursor.getBottomMostViewPosition(), n2 = new te.a(t2.lineNumber, t2.column, t2.lineNumber, t2.column); this._withViewEventsCollector((t3) => t3.emitViewEvent(new yn(e2, n2, null, 0, true, 0))); } - revealRange(e2, t2, n2, i2, o2) { - this._withViewEventsCollector((r2) => r2.emitViewEvent(new yn(e2, n2, null, i2, t2, o2))); + revealRange(e2, t2, n2, i2, r2) { + this._withViewEventsCollector((o2) => o2.emitViewEvent(new yn(e2, n2, null, i2, t2, r2))); } getVerticalOffsetForLineNumber(e2) { return this.viewLayout.getVerticalOffsetForLineNumber(e2); @@ -50136,7 +50136,7 @@ ${Object(zn.b)(wi)} this.viewLayout.deltaScrollNow(e2, t2); } changeWhitespace(e2) { - this.viewLayout.changeWhitespace(e2) && (this._eventDispatcher.emitSingleViewEvent(new En()), this._eventDispatcher.emitOutgoingEvent(new Dn())); + this.viewLayout.changeWhitespace(e2) && (this._eventDispatcher.emitSingleViewEvent(new En()), this._eventDispatcher.emitOutgoingEvent(new On())); } setMaxLineWidth(e2) { this.viewLayout.setMaxLineWidth(e2); @@ -50172,28 +50172,28 @@ ${Object(zn.b)(wi)} } createLineBreaksComputer(e2, t2, n2, i2) { t2 |= 0, n2 = +n2; - let o2 = [], r2 = []; + let r2 = [], o2 = []; return {addRequest: (e3, t3) => { - o2.push(e3), r2.push(t3); + r2.push(e3), o2.push(t3); }, finalize: () => { const s2 = e2.typicalFullwidthCharacterWidth / e2.typicalHalfwidthCharacterWidth; let a2 = []; - for (let e3 = 0, l2 = o2.length; e3 < l2; e3++) { - const l3 = r2[e3]; - a2[e3] = l3 ? Ei(this.classifier, l3, o2[e3], t2, n2, s2, i2) : Ti(this.classifier, o2[e3], t2, n2, s2, i2); + for (let e3 = 0, l2 = r2.length; e3 < l2; e3++) { + const l3 = o2[e3]; + a2[e3] = l3 ? Ei(this.classifier, l3, r2[e3], t2, n2, s2, i2) : Ti(this.classifier, r2[e3], t2, n2, s2, i2); } return xi.length = 0, Si.length = 0, a2; }}; } } - function Ei(e2, t2, n2, i2, o2, r2, s2) { - if (o2 === -1) + function Ei(e2, t2, n2, i2, r2, o2, s2) { + if (r2 === -1) return null; const a2 = n2.length; if (a2 <= 1) return null; - const l2 = t2.breakOffsets, c2 = t2.breakOffsetsVisibleColumn, d2 = Oi(n2, i2, o2, r2, s2), h2 = o2 - d2; - let u2 = xi, p2 = Si, m2 = 0, g2 = 0, f2 = 0, b2 = o2; + const l2 = t2.breakOffsets, c2 = t2.breakOffsetsVisibleColumn, d2 = Di(n2, i2, r2, o2, s2), h2 = r2 - d2; + let u2 = xi, p2 = Si, m2 = 0, g2 = 0, f2 = 0, b2 = r2; const _2 = l2.length; let v2 = 0; if (v2 >= 0) { @@ -50206,16 +50206,16 @@ ${Object(zn.b)(wi)} } } for (; v2 < _2; ) { - let t3 = v2 < 0 ? 0 : l2[v2], o3 = v2 < 0 ? 0 : c2[v2]; - g2 > t3 && (t3 = g2, o3 = f2); + let t3 = v2 < 0 ? 0 : l2[v2], r3 = v2 < 0 ? 0 : c2[v2]; + g2 > t3 && (t3 = g2, r3 = f2); let s3 = 0, d3 = 0, w2 = 0, y2 = 0; - if (o3 <= b2) { - let f3 = o3, _3 = t3 === 0 ? 0 : n2.charCodeAt(t3 - 1), v3 = t3 === 0 ? 0 : e2.get(_3), C3 = true; - for (let o4 = t3; o4 < a2; o4++) { - const t4 = o4, a3 = n2.charCodeAt(o4); + if (r3 <= b2) { + let f3 = r3, _3 = t3 === 0 ? 0 : n2.charCodeAt(t3 - 1), v3 = t3 === 0 ? 0 : e2.get(_3), C3 = true; + for (let r4 = t3; r4 < a2; r4++) { + const t4 = r4, a3 = n2.charCodeAt(r4); let l3, c3; - if (xe.F(a3) ? (o4++, l3 = 0, c3 = 2) : (l3 = e2.get(a3), c3 = Li(a3, f3, i2, r2)), t4 > g2 && Ii(_3, v3, a3, l3) && (s3 = t4, d3 = f3), f3 += c3, f3 > b2) { - t4 > g2 ? (w2 = t4, y2 = f3 - c3) : (w2 = o4 + 1, y2 = f3), f3 - d3 > h2 && (s3 = 0), C3 = false; + if (xe.F(a3) ? (r4++, l3 = 0, c3 = 2) : (l3 = e2.get(a3), c3 = Li(a3, f3, i2, o2)), t4 > g2 && Ii(_3, v3, a3, l3) && (s3 = t4, d3 = f3), f3 += c3, f3 > b2) { + t4 > g2 ? (w2 = t4, y2 = f3 - c3) : (w2 = r4 + 1, y2 = f3), f3 - d3 > h2 && (s3 = 0), C3 = false; break; } _3 = a3, v3 = l3; @@ -50226,30 +50226,30 @@ ${Object(zn.b)(wi)} } } if (s3 === 0) { - let a3 = o3, l3 = n2.charCodeAt(t3), c3 = e2.get(l3), u3 = false; + let a3 = r3, l3 = n2.charCodeAt(t3), c3 = e2.get(l3), u3 = false; for (let i3 = t3 - 1; i3 >= g2; i3--) { - const t4 = i3 + 1, o4 = n2.charCodeAt(i3); - if (o4 === 9) { + const t4 = i3 + 1, r4 = n2.charCodeAt(i3); + if (r4 === 9) { u3 = true; break; } let p3, m3; - if (xe.G(o4) ? (i3--, p3 = 0, m3 = 2) : (p3 = e2.get(o4), m3 = xe.E(o4) ? r2 : 1), a3 <= b2) { + if (xe.G(r4) ? (i3--, p3 = 0, m3 = 2) : (p3 = e2.get(r4), m3 = xe.E(r4) ? o2 : 1), a3 <= b2) { if (w2 === 0 && (w2 = t4, y2 = a3), a3 <= b2 - h2) break; - if (Ii(o4, p3, l3, c3)) { + if (Ii(r4, p3, l3, c3)) { s3 = t4, d3 = a3; break; } } - a3 -= m3, l3 = o4, c3 = p3; + a3 -= m3, l3 = r4, c3 = p3; } if (s3 !== 0) { const e3 = h2 - (y2 - d3); if (e3 <= i2) { const t4 = n2.charCodeAt(w2); - let o4; - o4 = xe.F(t4) ? 2 : Li(t4, y2, i2, r2), e3 - o4 < 0 && (s3 = 0); + let r4; + r4 = xe.F(t4) ? 2 : Li(t4, y2, i2, o2), e3 - r4 < 0 && (s3 = 0); } } if (u3) { @@ -50269,19 +50269,19 @@ ${Object(zn.b)(wi)} } return m2 === 0 ? null : (u2.length = m2, p2.length = m2, xi = t2.breakOffsets, Si = t2.breakOffsetsVisibleColumn, t2.breakOffsets = u2, t2.breakOffsetsVisibleColumn = p2, t2.wrappedTextIndentLength = d2, t2); } - function Ti(e2, t2, n2, i2, o2, r2) { + function Ti(e2, t2, n2, i2, r2, o2) { if (i2 === -1) return null; const s2 = t2.length; if (s2 <= 1) return null; - const a2 = Oi(t2, n2, i2, o2, r2), l2 = i2 - a2; - let c2 = [], d2 = [], h2 = 0, u2 = 0, p2 = 0, m2 = i2, g2 = t2.charCodeAt(0), f2 = e2.get(g2), b2 = Li(g2, 0, n2, o2), _2 = 1; + const a2 = Di(t2, n2, i2, r2, o2), l2 = i2 - a2; + let c2 = [], d2 = [], h2 = 0, u2 = 0, p2 = 0, m2 = i2, g2 = t2.charCodeAt(0), f2 = e2.get(g2), b2 = Li(g2, 0, n2, r2), _2 = 1; xe.F(g2) && (b2 += 1, g2 = t2.charCodeAt(1), f2 = e2.get(g2), _2++); for (let i3 = _2; i3 < s2; i3++) { - const r3 = i3, s3 = t2.charCodeAt(i3); + const o3 = i3, s3 = t2.charCodeAt(i3); let a3, _3; - xe.F(s3) ? (i3++, a3 = 0, _3 = 2) : (a3 = e2.get(s3), _3 = Li(s3, b2, n2, o2)), Ii(g2, f2, s3, a3) && (u2 = r3, p2 = b2), b2 += _3, b2 > m2 && ((u2 === 0 || b2 - p2 > l2) && (u2 = r3, p2 = b2 - _3), c2[h2] = u2, d2[h2] = p2, h2++, m2 = p2 + l2, u2 = 0), g2 = s3, f2 = a3; + xe.F(s3) ? (i3++, a3 = 0, _3 = 2) : (a3 = e2.get(s3), _3 = Li(s3, b2, n2, r2)), Ii(g2, f2, s3, a3) && (u2 = o3, p2 = b2), b2 += _3, b2 > m2 && ((u2 === 0 || b2 - p2 > l2) && (u2 = o3, p2 = b2 - _3), c2[h2] = u2, d2[h2] = p2, h2++, m2 = p2 + l2, u2 = 0), g2 = s3, f2 = a3; } return h2 === 0 ? null : (c2[h2] = s2, d2[h2] = b2, new Qn(c2, d2, a2)); } @@ -50294,50 +50294,50 @@ ${Object(zn.b)(wi)} function Ii(e2, t2, n2, i2) { return n2 !== 32 && (t2 === 2 || t2 === 3 && i2 !== 2 || i2 === 1 || i2 === 3 && t2 !== 1); } - function Oi(e2, t2, n2, i2, o2) { - let r2 = 0; - if (o2 !== 0) { + function Di(e2, t2, n2, i2, r2) { + let o2 = 0; + if (r2 !== 0) { const s2 = xe.w(e2); if (s2 !== -1) { for (let n3 = 0; n3 < s2; n3++) { - r2 += e2.charCodeAt(n3) === 9 ? Ni(r2, t2) : 1; + o2 += e2.charCodeAt(n3) === 9 ? Ni(o2, t2) : 1; } - const a2 = o2 === 3 ? 2 : o2 === 2 ? 1 : 0; + const a2 = r2 === 3 ? 2 : r2 === 2 ? 1 : 0; for (let e3 = 0; e3 < a2; e3++) { - r2 += Ni(r2, t2); + o2 += Ni(o2, t2); } - r2 + i2 > n2 && (r2 = 0); + o2 + i2 > n2 && (o2 = 0); } } - return r2; + return o2; } - class Di { + class Oi { static create() { - return new Di(); + return new Oi(); } constructor() { } createLineBreaksComputer(e2, t2, n2, i2) { t2 |= 0, n2 = +n2; - let o2 = []; + let r2 = []; return {addRequest: (e3, t3) => { - o2.push(e3); - }, finalize: () => function(e3, t3, n3, i3, o3) { + r2.push(e3); + }, finalize: () => function(e3, t3, n3, i3, r3) { if (i3 === -1) { const t4 = []; for (let n4 = 0, i4 = e3.length; n4 < i4; n4++) t4[n4] = null; return t4; } - const r2 = Math.round(i3 * t3.typicalHalfwidthCharacterWidth); - o3 !== 2 && o3 !== 3 || (o3 = 1); + const o2 = Math.round(i3 * t3.typicalHalfwidthCharacterWidth); + r3 !== 2 && r3 !== 3 || (r3 = 1); const s2 = document.createElement("div"); c.a.applyFontInfoSlow(s2, t3); const a2 = Object(ze.a)(1e4), l2 = [], d2 = [], h2 = [], u2 = [], p2 = []; for (let i4 = 0; i4 < e3.length; i4++) { const s3 = e3[i4]; - let c2 = 0, m3 = 0, g3 = r2; - if (o3 !== 0) + let c2 = 0, m3 = 0, g3 = o2; + if (r3 !== 0) if (c2 = xe.w(s3), c2 === -1) c2 = 0; else { @@ -50346,7 +50346,7 @@ ${Object(zn.b)(wi)} m3 += t4; } const e4 = Math.ceil(t3.spaceWidth * m3); - e4 + t3.typicalFullwidthCharacterWidth > r2 ? (c2 = 0, m3 = 0) : g3 = r2 - e4; + e4 + t3.typicalFullwidthCharacterWidth > o2 ? (c2 = 0, m3 = 0) : g3 = o2 - e4; } const f3 = s3.substr(c2), b2 = Ai(f3, m3, n3, g3, a2); l2[i4] = c2, d2[i4] = m3, h2[i4] = f3, u2[i4] = b2[0], p2[i4] = b2[1]; @@ -50361,93 +50361,93 @@ ${Object(zn.b)(wi)} f2[t4] = null; continue; } - const i4 = l2[t4], o4 = d2[t4], r3 = p2[t4], s3 = []; + const i4 = l2[t4], r4 = d2[t4], o3 = p2[t4], s3 = []; for (let e5 = 0, t5 = n4.length; e5 < t5; e5++) - s3[e5] = r3[n4[e5]]; + s3[e5] = o3[n4[e5]]; if (i4 !== 0) for (let e5 = 0, t5 = n4.length; e5 < t5; e5++) n4[e5] += i4; - f2[t4] = new Qn(n4, s3, o4); + f2[t4] = new Qn(n4, s3, r4); } return document.body.removeChild(s2), f2; - }(o2, e2, t2, n2, i2)}; + }(r2, e2, t2, n2, i2)}; } } - function Ai(e2, t2, n2, i2, o2) { - o2.appendASCIIString('<div style="width:'), o2.appendASCIIString(String(i2)), o2.appendASCIIString('px;">'); - const r2 = e2.length; - let s2 = t2, a2 = 0, l2 = [], c2 = [], d2 = 0 < r2 ? e2.charCodeAt(0) : 0; - o2.appendASCIIString("<span>"); - for (let t3 = 0; t3 < r2; t3++) { - t3 !== 0 && t3 % 16384 == 0 && o2.appendASCIIString("</span><span>"), l2[t3] = a2, c2[t3] = s2; + function Ai(e2, t2, n2, i2, r2) { + r2.appendASCIIString('<div style="width:'), r2.appendASCIIString(String(i2)), r2.appendASCIIString('px;">'); + const o2 = e2.length; + let s2 = t2, a2 = 0, l2 = [], c2 = [], d2 = 0 < o2 ? e2.charCodeAt(0) : 0; + r2.appendASCIIString("<span>"); + for (let t3 = 0; t3 < o2; t3++) { + t3 !== 0 && t3 % 16384 == 0 && r2.appendASCIIString("</span><span>"), l2[t3] = a2, c2[t3] = s2; const i3 = d2; - d2 = t3 + 1 < r2 ? e2.charCodeAt(t3 + 1) : 0; + d2 = t3 + 1 < o2 ? e2.charCodeAt(t3 + 1) : 0; let h2 = 1, u2 = 1; switch (i3) { case 9: h2 = n2 - s2 % n2, u2 = h2; for (let e3 = 1; e3 <= h2; e3++) - e3 < h2 ? o2.write1(160) : o2.appendASCII(32); + e3 < h2 ? r2.write1(160) : r2.appendASCII(32); break; case 32: - d2 === 32 ? o2.write1(160) : o2.appendASCII(32); + d2 === 32 ? r2.write1(160) : r2.appendASCII(32); break; case 60: - o2.appendASCIIString("<"); + r2.appendASCIIString("<"); break; case 62: - o2.appendASCIIString(">"); + r2.appendASCIIString(">"); break; case 38: - o2.appendASCIIString("&"); + r2.appendASCIIString("&"); break; case 0: - o2.appendASCIIString("�"); + r2.appendASCIIString("�"); break; case 65279: case 8232: case 8233: case 133: - o2.write1(65533); + r2.write1(65533); break; default: - xe.E(i3) && u2++, o2.write1(i3); + xe.E(i3) && u2++, r2.write1(i3); } a2 += h2, s2 += u2; } - return o2.appendASCIIString("</span>"), l2[e2.length] = a2, c2[e2.length] = s2, o2.appendASCIIString("</div>"), [l2, c2]; + return r2.appendASCIIString("</span>"), l2[e2.length] = a2, c2[e2.length] = s2, r2.appendASCIIString("</div>"), [l2, c2]; } function Ri(e2, t2, n2, i2) { if (n2.length <= 1) return null; - const o2 = Array.prototype.slice.call(t2.children, 0), r2 = []; + const r2 = Array.prototype.slice.call(t2.children, 0), o2 = []; try { - !function e3(t3, n3, i3, o3, r3, s2, a2, l2) { - if (o3 === s2) + !function e3(t3, n3, i3, r3, o3, s2, a2, l2) { + if (r3 === s2) return; - if (r3 = r3 || Mi(t3, n3, i3[o3], i3[o3 + 1]), a2 = a2 || Mi(t3, n3, i3[s2], i3[s2 + 1]), Math.abs(r3[0].top - a2[0].top) <= 0.1) + if (o3 = o3 || Mi(t3, n3, i3[r3], i3[r3 + 1]), a2 = a2 || Mi(t3, n3, i3[s2], i3[s2 + 1]), Math.abs(o3[0].top - a2[0].top) <= 0.1) return; - if (o3 + 1 === s2) + if (r3 + 1 === s2) return void l2.push(s2); - const c2 = o3 + (s2 - o3) / 2 | 0, d2 = Mi(t3, n3, i3[c2], i3[c2 + 1]); - e3(t3, n3, i3, o3, r3, c2, d2, l2), e3(t3, n3, i3, c2, d2, s2, a2, l2); - }(e2, o2, i2, 0, null, n2.length - 1, null, r2); + const c2 = r3 + (s2 - r3) / 2 | 0, d2 = Mi(t3, n3, i3[c2], i3[c2 + 1]); + e3(t3, n3, i3, r3, o3, c2, d2, l2), e3(t3, n3, i3, c2, d2, s2, a2, l2); + }(e2, r2, i2, 0, null, n2.length - 1, null, o2); } catch (e3) { return console.log(e3), null; } - return r2.length === 0 ? null : (r2.push(n2.length), r2); + return o2.length === 0 ? null : (o2.push(n2.length), o2); } function Mi(e2, t2, n2, i2) { return e2.setStart(t2[n2 / 16384 | 0].firstChild, n2 % 16384), e2.setEnd(t2[i2 / 16384 | 0].firstChild, i2 % 16384), e2.getClientRects(); } var Pi = n(129), Fi = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Wi = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -50455,15 +50455,15 @@ ${Object(zn.b)(wi)} }; let zi = 0; class Bi { - constructor(e2, t2, n2, i2, o2) { - this.model = e2, this.viewModel = t2, this.view = n2, this.hasRealView = i2, this.listenersToRemove = o2; + constructor(e2, t2, n2, i2, r2) { + this.model = e2, this.viewModel = t2, this.view = n2, this.hasRealView = i2, this.listenersToRemove = r2; } dispose() { Object(a.f)(this.listenersToRemove), this.model.onBeforeDetached(), this.hasRealView && this.view.dispose(), this.viewModel.dispose(); } } let ji = class e2 extends a.a { - constructor(e3, t2, n2, i2, o2, a2, l2, c2, h2, u2) { + constructor(e3, t2, n2, i2, r2, a2, l2, c2, h2, u2) { let p2; super(), this._onDidDispose = this._register(new s.a()), this.onDidDispose = this._onDidDispose.event, this._onDidChangeModelContent = this._register(new s.a()), this.onDidChangeModelContent = this._onDidChangeModelContent.event, this._onDidChangeModelLanguage = this._register(new s.a()), this.onDidChangeModelLanguage = this._onDidChangeModelLanguage.event, this._onDidChangeModelLanguageConfiguration = this._register(new s.a()), this.onDidChangeModelLanguageConfiguration = this._onDidChangeModelLanguageConfiguration.event, this._onDidChangeModelOptions = this._register(new s.a()), this.onDidChangeModelOptions = this._onDidChangeModelOptions.event, this._onDidChangeModelDecorations = this._register(new s.a()), this.onDidChangeModelDecorations = this._onDidChangeModelDecorations.event, this._onDidChangeConfiguration = this._register(new s.a()), this.onDidChangeConfiguration = this._onDidChangeConfiguration.event, this._onDidChangeModel = this._register(new s.a()), this.onDidChangeModel = this._onDidChangeModel.event, this._onDidChangeCursorPosition = this._register(new s.a()), this.onDidChangeCursorPosition = this._onDidChangeCursorPosition.event, this._onDidChangeCursorSelection = this._register(new s.a()), this.onDidChangeCursorSelection = this._onDidChangeCursorSelection.event, this._onDidAttemptReadOnlyEdit = this._register(new s.a()), this.onDidAttemptReadOnlyEdit = this._onDidAttemptReadOnlyEdit.event, this._onDidLayoutChange = this._register(new s.a()), this.onDidLayoutChange = this._onDidLayoutChange.event, this._editorTextFocus = this._register(new Vi()), this.onDidFocusEditorText = this._editorTextFocus.onDidChangeToTrue, this.onDidBlurEditorText = this._editorTextFocus.onDidChangeToFalse, this._editorWidgetFocus = this._register(new Vi()), this.onDidFocusEditorWidget = this._editorWidgetFocus.onDidChangeToTrue, this.onDidBlurEditorWidget = this._editorWidgetFocus.onDidChangeToFalse, this._onWillType = this._register(new s.a()), this.onWillType = this._onWillType.event, this._onDidType = this._register(new s.a()), this.onDidType = this._onDidType.event, this._onDidCompositionStart = this._register(new s.a()), this.onDidCompositionStart = this._onDidCompositionStart.event, this._onDidCompositionEnd = this._register(new s.a()), this.onDidCompositionEnd = this._onDidCompositionEnd.event, this._onDidPaste = this._register(new s.a()), this.onDidPaste = this._onDidPaste.event, this._onMouseUp = this._register(new s.a()), this.onMouseUp = this._onMouseUp.event, this._onMouseDown = this._register(new s.a()), this.onMouseDown = this._onMouseDown.event, this._onMouseDrag = this._register(new s.a()), this.onMouseDrag = this._onMouseDrag.event, this._onMouseDrop = this._register(new s.a()), this.onMouseDrop = this._onMouseDrop.event, this._onContextMenu = this._register(new s.a()), this.onContextMenu = this._onContextMenu.event, this._onMouseMove = this._register(new s.a()), this.onMouseMove = this._onMouseMove.event, this._onMouseLeave = this._register(new s.a()), this.onMouseLeave = this._onMouseLeave.event, this._onMouseWheel = this._register(new s.a()), this.onMouseWheel = this._onMouseWheel.event, this._onKeyUp = this._register(new s.a()), this.onKeyUp = this._onKeyUp.event, this._onKeyDown = this._register(new s.a()), this.onKeyDown = this._onKeyDown.event, this._onDidContentSizeChange = this._register(new s.a()), this.onDidContentSizeChange = this._onDidContentSizeChange.event, this._onDidScrollChange = this._register(new s.a()), this.onDidScrollChange = this._onDidScrollChange.event, this._onDidChangeViewZones = this._register(new s.a()), this.onDidChangeViewZones = this._onDidChangeViewZones.event, t2 = t2 || {}, this._domElement = e3, this._overflowWidgetsDomNode = t2.overflowWidgetsDomNode, this._id = ++zi, this._decorationTypeKeysToIds = {}, this._decorationTypeSubtypes = {}, this.isSimpleWidget = n2.isSimpleWidget || false, this._telemetryData = n2.telemetryData, this._configuration = this._register(this._createConfiguration(t2, u2)), this._register(this._configuration.onDidChange((e4) => { this._onDidChangeConfiguration.fire(e4); @@ -50472,7 +50472,7 @@ ${Object(zn.b)(wi)} const e5 = t3.get(117); this._onDidLayoutChange.fire(e5); } - })), this._contextKeyService = this._register(l2.createScoped(this._domElement)), this._notificationService = h2, this._codeEditorService = o2, this._commandService = a2, this._themeService = c2, this._register(new Ui(this, this._contextKeyService)), this._register(new Hi(this, this._contextKeyService)), this._instantiationService = i2.createChild(new bi.a([gi.b, this._contextKeyService])), this._modelData = null, this._contributions = {}, this._actions = {}, this._focusTracker = new qi(e3), this._focusTracker.onChange(() => { + })), this._contextKeyService = this._register(l2.createScoped(this._domElement)), this._notificationService = h2, this._codeEditorService = r2, this._commandService = a2, this._themeService = c2, this._register(new Ui(this, this._contextKeyService)), this._register(new Hi(this, this._contextKeyService)), this._instantiationService = i2.createChild(new bi.a([gi.b, this._contextKeyService])), this._modelData = null, this._contributions = {}, this._actions = {}, this._focusTracker = new qi(e3), this._focusTracker.onChange(() => { this._editorWidgetFocus.setValue(this._focusTracker.hasFocus()); }), this._contentWidgets = {}, this._overlayWidgets = {}, p2 = Array.isArray(n2.contributions) ? n2.contributions : d.d.getEditorContributions(); for (const e4 of p2) @@ -50480,7 +50480,7 @@ ${Object(zn.b)(wi)} const t3 = this._instantiationService.createInstance(e4.ctor, this); this._contributions[e4.id] = t3; } catch (e5) { - Object(r.e)(e5); + Object(o.e)(e5); } d.d.getEditorActions().forEach((e4) => { const t3 = new Wn.a(e4.id, e4.label, e4.alias, Object(wi.n)(e4.precondition), () => this._instantiationService.invokeFunction((t4) => Promise.resolve(e4.runEditorCommand(t4, this, null))), this._contextKeyService); @@ -50547,8 +50547,8 @@ ${Object(zn.b)(wi)} return; const n2 = this.hasTextFocus(), i2 = this._detachModel(); this._attachModel(t2), n2 && this.hasModel() && this.focus(); - const o2 = {oldModelUrl: i2 ? i2.uri : null, newModelUrl: t2 ? t2.uri : null}; - this._removeDecorationTypes(), this._onDidChangeModel.fire(o2), this._postDetachModelCleanup(i2); + const r2 = {oldModelUrl: i2 ? i2.uri : null, newModelUrl: t2 ? t2.uri : null}; + this._removeDecorationTypes(), this._onDidChangeModel.fire(r2), this._postDetachModelCleanup(i2); } _removeDecorationTypes() { if (this._decorationTypeKeysToIds = {}, this._decorationTypeSubtypes) { @@ -50570,8 +50570,8 @@ ${Object(zn.b)(wi)} return this._modelData ? this._modelData.viewModel.viewLayout.getWhitespaces() : []; } static _getVerticalOffsetForPosition(e3, t2, n2) { - const i2 = e3.model.validatePosition({lineNumber: t2, column: n2}), o2 = e3.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i2); - return e3.viewModel.viewLayout.getVerticalOffsetForLineNumber(o2.lineNumber); + const i2 = e3.model.validatePosition({lineNumber: t2, column: n2}), r2 = e3.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i2); + return e3.viewModel.viewLayout.getVerticalOffsetForLineNumber(r2.lineNumber); } getTopForLineNumber(t2) { return this._modelData ? e2._getVerticalOffsetForPosition(this._modelData, t2, 1) : -1; @@ -50603,8 +50603,8 @@ ${Object(zn.b)(wi)} return; if (!te.a.isIRange(e3)) throw new Error("Invalid arguments"); - const o2 = this._modelData.model.validateRange(e3), r2 = this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o2); - this._modelData.viewModel.revealRange("api", n2, r2, t2, i2); + const r2 = this._modelData.model.validateRange(e3), o2 = this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r2); + this._modelData.viewModel.revealRange("api", n2, o2, t2, i2); } revealLine(e3, t2 = 0) { this._revealLine(e3, 0, t2); @@ -50767,11 +50767,11 @@ ${Object(zn.b)(wi)} Array.isArray(e4) ? this._modelData.viewModel.restoreCursorState(e4) : this._modelData.viewModel.restoreCursorState([e4]); const n2 = t2.contributionsState || {}, i2 = Object.keys(this._contributions); for (let e5 = 0, t3 = i2.length; e5 < t3; e5++) { - const t4 = i2[e5], o3 = this._contributions[t4]; - typeof o3.restoreViewState == "function" && o3.restoreViewState(n2[t4]); + const t4 = i2[e5], r3 = this._contributions[t4]; + typeof r3.restoreViewState == "function" && r3.restoreViewState(n2[t4]); } - const o2 = this._modelData.viewModel.reduceRestoreState(t2.viewState); - this._modelData.view.restoreState(o2); + const r2 = this._modelData.viewModel.reduceRestoreState(t2.viewState); + this._modelData.view.restoreState(r2); } } getContribution(e3) { @@ -50814,7 +50814,7 @@ ${Object(zn.b)(wi)} return void this._cut(e3); } const i2 = this.getAction(t2); - i2 ? Promise.resolve(i2.run()).then(void 0, r.e) : this._modelData && this._triggerEditorCommand(e3, t2, n2); + i2 ? Promise.resolve(i2.run()).then(void 0, o.e) : this._modelData && this._triggerEditorCommand(e3, t2, n2); } _startComposition() { this._modelData && (this._modelData.viewModel.startComposition(), this._onDidCompositionStart.fire()); @@ -50828,13 +50828,13 @@ ${Object(zn.b)(wi)} _replacePreviousChar(e3, t2, n2) { this._modelData && this._modelData.viewModel.replacePreviousChar(t2, n2, e3); } - _paste(e3, t2, n2, i2, o2) { + _paste(e3, t2, n2, i2, r2) { if (!this._modelData || t2.length === 0) return; - const r2 = this._modelData.viewModel.getSelection().getStartPosition(); + const o2 = this._modelData.viewModel.getSelection().getStartPosition(); this._modelData.viewModel.paste(t2, n2, i2, e3); const s2 = this._modelData.viewModel.getSelection().getStartPosition(); - e3 === "keyboard" && this._onDidPaste.fire({range: new te.a(r2.lineNumber, r2.column, s2.lineNumber, s2.column), mode: o2}); + e3 === "keyboard" && this._onDidPaste.fire({range: new te.a(o2.lineNumber, o2.column, s2.lineNumber, s2.column), mode: r2}); } _cut(e3) { this._modelData && this._modelData.viewModel.cut(e3); @@ -50842,7 +50842,7 @@ ${Object(zn.b)(wi)} _triggerEditorCommand(e3, t2, n2) { const i2 = d.d.getEditorCommand(t2); return !!i2 && ((n2 = n2 || {}).source = e3, this._instantiationService.invokeFunction((e4) => { - Promise.resolve(i2.runEditorCommand(e4, this, n2)).then(void 0, r.e); + Promise.resolve(i2.runEditorCommand(e4, this, n2)).then(void 0, o.e); }), true); } _getViewModel() { @@ -50950,8 +50950,8 @@ ${Object(zn.b)(wi)} getScrolledVisiblePosition(t2) { if (!this._modelData || !this._modelData.hasRealView) return null; - const n2 = this._modelData.model.validatePosition(t2), i2 = this._configuration.options, o2 = i2.get(117); - return {top: e2._getVerticalOffsetForPosition(this._modelData, n2.lineNumber, n2.column) - this.getScrollTop(), left: this._modelData.view.getOffsetForColumn(n2.lineNumber, n2.column) + o2.glyphMarginWidth + o2.lineNumbersWidth + o2.decorationsWidth - this.getScrollLeft(), height: i2.get(51)}; + const n2 = this._modelData.model.validatePosition(t2), i2 = this._configuration.options, r2 = i2.get(117); + return {top: e2._getVerticalOffsetForPosition(this._modelData, n2.lineNumber, n2.column) - this.getScrollTop(), left: this._modelData.view.getOffsetForColumn(n2.lineNumber, n2.column) + r2.glyphMarginWidth + r2.lineNumbersWidth + r2.decorationsWidth - this.getScrollLeft(), height: i2.get(51)}; } getOffsetForColumn(e3, t2) { return this._modelData && this._modelData.hasRealView ? this._modelData.view.getOffsetForColumn(e3, t2) : -1; @@ -50970,7 +50970,7 @@ ${Object(zn.b)(wi)} return void (this._modelData = null); const t2 = []; this._domElement.setAttribute("data-mode-id", e3.getLanguageIdentifier().language), this._configuration.setIsDominatedByLongLines(e3.isDominatedByLongLines()), this._configuration.setMaxLineNumber(e3.getLineCount()), e3.onBeforeAttached(); - const n2 = new pi(this._id, this._configuration, e3, Di.create(), ki.create(this._configuration.options), (e4) => o.Y(e4)); + const n2 = new pi(this._id, this._configuration, e3, Oi.create(), ki.create(this._configuration.options), (e4) => r.Y(e4)); t2.push(e3.onDidChangeDecorations((e4) => this._onDidChangeModelDecorations.fire(e4))), t2.push(e3.onDidChangeLanguage((t3) => { this._domElement.setAttribute("data-mode-id", e3.getLanguageIdentifier().language), this._onDidChangeModelLanguage.fire(t3); })), t2.push(e3.onDidChangeLanguageConfiguration((e4) => this._onDidChangeModelLanguageConfiguration.fire(e4))), t2.push(e3.onDidChangeContent((e4) => this._onDidChangeModelContent.fire(e4))), t2.push(e3.onDidChangeOptions((e4) => this._onDidChangeModelOptions.fire(e4))), t2.push(e3.onWillDispose(() => this.setModel(null))), t2.push(n2.onEvent((e4) => { @@ -50997,28 +50997,28 @@ ${Object(zn.b)(wi)} t3[n4] = e4.selections[n4].getPosition(); const n3 = {position: t3[0], secondaryPositions: t3.slice(1), reason: e4.reason, source: e4.source}; this._onDidChangeCursorPosition.fire(n3); - const o2 = {selection: e4.selections[0], secondarySelections: e4.selections.slice(1), modelVersionId: e4.modelVersionId, oldSelections: e4.oldSelections, oldModelVersionId: e4.oldModelVersionId, source: e4.source, reason: e4.reason}; - this._onDidChangeCursorSelection.fire(o2); + const r2 = {selection: e4.selections[0], secondarySelections: e4.selections.slice(1), modelVersionId: e4.modelVersionId, oldSelections: e4.oldSelections, oldModelVersionId: e4.oldModelVersionId, source: e4.source, reason: e4.reason}; + this._onDidChangeCursorSelection.fire(r2); break; } } })); - const [r2, s2] = this._createView(n2); + const [o2, s2] = this._createView(n2); if (s2) { - this._domElement.appendChild(r2.domNode.domNode); + this._domElement.appendChild(o2.domNode.domNode); let t3 = Object.keys(this._contentWidgets); for (let e4 = 0, n3 = t3.length; e4 < n3; e4++) { const n4 = t3[e4]; - r2.addContentWidget(this._contentWidgets[n4]); + o2.addContentWidget(this._contentWidgets[n4]); } t3 = Object.keys(this._overlayWidgets); for (let e4 = 0, n3 = t3.length; e4 < n3; e4++) { const n4 = t3[e4]; - r2.addOverlayWidget(this._overlayWidgets[n4]); + o2.addOverlayWidget(this._overlayWidgets[n4]); } - r2.render(false, true), r2.domNode.domNode.setAttribute("data-uri", e3.uri.toString()); + o2.render(false, true), o2.domNode.domNode.setAttribute("data-uri", e3.uri.toString()); } - this._modelData = new Bi(e3, n2, r2, s2, t2); + this._modelData = new Bi(e3, n2, o2, s2, t2); } _createView(e3) { let t2; @@ -51035,8 +51035,8 @@ ${Object(zn.b)(wi)} }, cut: () => { this._cut("keyboard"); }} : {paste: (e4, t3, n3, i2) => { - const o2 = {text: e4, pasteOnNewLine: t3, multicursorText: n3, mode: i2}; - this._commandService.executeCommand("paste", o2); + const r2 = {text: e4, pasteOnNewLine: t3, multicursorText: n3, mode: i2}; + this._commandService.executeCommand("paste", r2); }, type: (e4) => { const t3 = {text: e4}; this._commandService.executeCommand("type", t3); @@ -51123,7 +51123,7 @@ ${Object(zn.b)(wi)} } class qi extends a.a { constructor(e2) { - super(), this._onChange = this._register(new s.a()), this.onChange = this._onChange.event, this._hasFocus = false, this._domFocusTracker = this._register(o.bb(e2)), this._register(this._domFocusTracker.onDidFocus(() => { + super(), this._onChange = this._register(new s.a()), this.onChange = this._onChange.event, this._hasFocus = false, this._domFocusTracker = this._register(r.bb(e2)), this._register(this._domFocusTracker.onDidFocus(() => { this._hasFocus = true, this._onChange.fire(void 0); })), this._register(this._domFocusTracker.onDidBlur(() => { this._hasFocus = false, this._onChange.fire(void 0); @@ -51143,10 +51143,10 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${n2}; }`); const i2 = e2.getColor(_t.u); i2 && t2.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${Gi(i2)}") repeat-x bottom left; }`); - const o2 = e2.getColor(_t.S); - o2 && t2.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${o2}; }`); - const r2 = e2.getColor(_t.T); - r2 && t2.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Gi(r2)}") repeat-x bottom left; }`); + const r2 = e2.getColor(_t.S); + r2 && t2.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${r2}; }`); + const o2 = e2.getColor(_t.T); + o2 && t2.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Gi(o2)}") repeat-x bottom left; }`); const s2 = e2.getColor(_t.K); s2 && t2.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${s2}; }`); const a2 = e2.getColor(_t.L); @@ -51166,66 +51166,66 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "c", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }), n.d(t, "a", function() { return s; }); var i = n(1); - function o(e2, t2 = {}) { + function r(e2, t2 = {}) { const n2 = s(t2); return n2.textContent = e2, n2; } - function r(e2, t2 = {}) { + function o(e2, t2 = {}) { const n2 = s(t2); - return function e3(t3, n3, o2) { - let r2; + return function e3(t3, n3, r2) { + let o2; if (n3.type === 2) - r2 = document.createTextNode(n3.content || ""); + o2 = document.createTextNode(n3.content || ""); else if (n3.type === 3) - r2 = document.createElement("b"); + o2 = document.createElement("b"); else if (n3.type === 4) - r2 = document.createElement("i"); - else if (n3.type === 5 && o2) { + o2 = document.createElement("i"); + else if (n3.type === 5 && r2) { const e4 = document.createElement("a"); - e4.href = "#", o2.disposeables.add(i.n(e4, "click", (e5) => { - o2.callback(String(n3.index), e5); - })), r2 = e4; + e4.href = "#", r2.disposeables.add(i.n(e4, "click", (e5) => { + r2.callback(String(n3.index), e5); + })), o2 = e4; } else - n3.type === 7 ? r2 = document.createElement("br") : n3.type === 1 && (r2 = t3); - r2 && t3 !== r2 && t3.appendChild(r2); - r2 && Array.isArray(n3.children) && n3.children.forEach((t4) => { - e3(r2, t4, o2); + n3.type === 7 ? o2 = document.createElement("br") : n3.type === 1 && (o2 = t3); + o2 && t3 !== o2 && t3.appendChild(o2); + o2 && Array.isArray(n3.children) && n3.children.forEach((t4) => { + e3(o2, t4, r2); }); }(n2, function(e3) { const t3 = {type: 1, children: []}; let n3 = 0, i2 = t3; - const o2 = [], r2 = new a(e3); - for (; !r2.eos(); ) { - let e4 = r2.next(); - const t4 = e4 === "\\" && l(r2.peek()) !== 0; - if (t4 && (e4 = r2.next()), t4 || l(e4) === 0 || e4 !== r2.peek()) + const r2 = [], o2 = new a(e3); + for (; !o2.eos(); ) { + let e4 = o2.next(); + const t4 = e4 === "\\" && l(o2.peek()) !== 0; + if (t4 && (e4 = o2.next()), t4 || l(e4) === 0 || e4 !== o2.peek()) if (e4 === "\n") - i2.type === 2 && (i2 = o2.pop()), i2.children.push({type: 7}); + i2.type === 2 && (i2 = r2.pop()), i2.children.push({type: 7}); else if (i2.type !== 2) { const t5 = {type: 2, content: e4}; - i2.children.push(t5), o2.push(i2), i2 = t5; + i2.children.push(t5), r2.push(i2), i2 = t5; } else i2.content += e4; else { - r2.advance(), i2.type === 2 && (i2 = o2.pop()); + o2.advance(), i2.type === 2 && (i2 = r2.pop()); const t5 = l(e4); if (i2.type === t5 || i2.type === 5 && t5 === 6) - i2 = o2.pop(); + i2 = r2.pop(); else { const e5 = {type: t5, children: []}; - t5 === 5 && (e5.index = n3, n3++), i2.children.push(e5), o2.push(i2), i2 = e5; + t5 === 5 && (e5.index = n3, n3++), i2.children.push(e5), r2.push(i2), i2 = e5; } } } - i2.type === 2 && (i2 = o2.pop()); - o2.length; + i2.type === 2 && (i2 = r2.pop()); + r2.length; return t3; }(e2), t2.actionHandler), n2; } @@ -51272,11 +51272,11 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return a; }); - var i = n(6), o = n(2), r = n(18); - const s = Object(r.c)("IStorageKeysSyncRegistryService"); - class a extends o.a { + var i = n(6), r = n(2), o = n(18); + const s = Object(o.c)("IStorageKeysSyncRegistryService"); + class a extends r.a { constructor() { - super(), this._storageKeys = new Map(), this._onDidChangeStorageKeys = this._register(new i.a()), this._register(Object(o.h)(() => this._storageKeys.clear())); + super(), this._storageKeys = new Map(), this._onDidChangeStorageKeys = this._register(new i.a()), this._register(Object(r.h)(() => this._storageKeys.clear())); } get storageKeys() { return [...this._storageKeys.values()]; @@ -51294,7 +51294,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return f; }); - var i = n(34), o = n(1), r = n(20), s = n(6), a = n(2), l = n(11), c = n(8), d = n(127), h = n(9), u = n(21), p = n(138); + var i = n(34), r = n(1), o = n(20), s = n(6), a = n(2), l = n(11), c = n(8), d = n(127), h = n(9), u = n(21), p = n(138); const m = {forceCopyWithSyntaxHighlighting: false}; class g { constructor() { @@ -51310,13 +51310,13 @@ ${Object(zn.b)(wi)} g.INSTANCE = new g(); class f extends a.a { constructor(e2, t2) { - super(), this.textArea = t2, this._onFocus = this._register(new s.a()), this.onFocus = this._onFocus.event, this._onBlur = this._register(new s.a()), this.onBlur = this._onBlur.event, this._onKeyDown = this._register(new s.a()), this.onKeyDown = this._onKeyDown.event, this._onKeyUp = this._register(new s.a()), this.onKeyUp = this._onKeyUp.event, this._onCut = this._register(new s.a()), this.onCut = this._onCut.event, this._onPaste = this._register(new s.a()), this.onPaste = this._onPaste.event, this._onType = this._register(new s.a()), this.onType = this._onType.event, this._onCompositionStart = this._register(new s.a()), this.onCompositionStart = this._onCompositionStart.event, this._onCompositionUpdate = this._register(new s.a()), this.onCompositionUpdate = this._onCompositionUpdate.event, this._onCompositionEnd = this._register(new s.a()), this.onCompositionEnd = this._onCompositionEnd.event, this._onSelectionChangeRequest = this._register(new s.a()), this.onSelectionChangeRequest = this._onSelectionChangeRequest.event, this._host = e2, this._textArea = this._register(new _(t2)), this._asyncTriggerCut = this._register(new r.d(() => this._onCut.fire(), 0)), this._textAreaState = d.b.EMPTY, this._selectionChangeListener = null, this.writeScreenReaderContent("ctor"), this._hasFocus = false, this._isDoingComposition = false, this._nextCommand = 0; + super(), this.textArea = t2, this._onFocus = this._register(new s.a()), this.onFocus = this._onFocus.event, this._onBlur = this._register(new s.a()), this.onBlur = this._onBlur.event, this._onKeyDown = this._register(new s.a()), this.onKeyDown = this._onKeyDown.event, this._onKeyUp = this._register(new s.a()), this.onKeyUp = this._onKeyUp.event, this._onCut = this._register(new s.a()), this.onCut = this._onCut.event, this._onPaste = this._register(new s.a()), this.onPaste = this._onPaste.event, this._onType = this._register(new s.a()), this.onType = this._onType.event, this._onCompositionStart = this._register(new s.a()), this.onCompositionStart = this._onCompositionStart.event, this._onCompositionUpdate = this._register(new s.a()), this.onCompositionUpdate = this._onCompositionUpdate.event, this._onCompositionEnd = this._register(new s.a()), this.onCompositionEnd = this._onCompositionEnd.event, this._onSelectionChangeRequest = this._register(new s.a()), this.onSelectionChangeRequest = this._onSelectionChangeRequest.event, this._host = e2, this._textArea = this._register(new _(t2)), this._asyncTriggerCut = this._register(new o.d(() => this._onCut.fire(), 0)), this._textAreaState = d.b.EMPTY, this._selectionChangeListener = null, this.writeScreenReaderContent("ctor"), this._hasFocus = false, this._isDoingComposition = false, this._nextCommand = 0; let n2 = null; - this._register(o.n(t2.domNode, "keydown", (e3) => { + this._register(r.n(t2.domNode, "keydown", (e3) => { (e3.keyCode === 109 || this._isDoingComposition && e3.keyCode === 1) && e3.stopPropagation(), e3.equals(9) && e3.preventDefault(), n2 = e3, this._onKeyDown.fire(e3); - })), this._register(o.n(t2.domNode, "keyup", (e3) => { + })), this._register(r.n(t2.domNode, "keyup", (e3) => { this._onKeyUp.fire(e3); - })), this._register(o.i(t2.domNode, "compositionstart", (e3) => { + })), this._register(r.i(t2.domNode, "compositionstart", (e3) => { if (this._isDoingComposition) return; this._isDoingComposition = true; @@ -51330,14 +51330,14 @@ ${Object(zn.b)(wi)} const t3 = this._textAreaState, n3 = d.b.selectedText(e3); return [n3, {text: n3.value, replaceCharCnt: t3.selectionEnd - t3.selectionStart}]; }, p2 = (e3) => !(!i.f || e3 !== "ja"); - this._register(o.i(t2.domNode, "compositionupdate", (e3) => { + this._register(r.i(t2.domNode, "compositionupdate", (e3) => { if (p2(e3.locale)) { const [t4, n4] = a2(false); return this._textAreaState = t4, this._onType.fire(n4), void this._onCompositionUpdate.fire(e3); } const [t3, n3] = u2(e3.data || ""); this._textAreaState = t3, this._onType.fire(n3), this._onCompositionUpdate.fire(e3); - })), this._register(o.i(t2.domNode, "compositionend", (e3) => { + })), this._register(r.i(t2.domNode, "compositionend", (e3) => { if (this._isDoingComposition) { if (p2(e3.locale)) { const [e4, t3] = a2(false); @@ -51348,41 +51348,41 @@ ${Object(zn.b)(wi)} } (i.f || i.e) && (this._textAreaState = d.b.readFromTextArea(this._textArea)), this._isDoingComposition && (this._isDoingComposition = false, this._onCompositionEnd.fire()); } - })), this._register(o.i(t2.domNode, "input", () => { + })), this._register(r.i(t2.domNode, "input", () => { if (this._textArea.setIgnoreSelectionChangeTime("received input event"), this._isDoingComposition) return; const [e3, t3] = a2(l.f); t3.replaceCharCnt === 0 && t3.text.length === 1 && c.F(t3.text.charCodeAt(0)) || (this._textAreaState = e3, this._nextCommand === 0 ? t3.text !== "" && this._onType.fire(t3) : (t3.text === "" && t3.replaceCharCnt === 0 || this._firePaste(t3.text, null), this._nextCommand = 0)); - })), this._register(o.i(t2.domNode, "cut", (e3) => { + })), this._register(r.i(t2.domNode, "cut", (e3) => { this._textArea.setIgnoreSelectionChangeTime("received cut event"), this._ensureClipboardGetsEditorSelection(e3), this._asyncTriggerCut.schedule(); - })), this._register(o.i(t2.domNode, "copy", (e3) => { + })), this._register(r.i(t2.domNode, "copy", (e3) => { this._ensureClipboardGetsEditorSelection(e3); - })), this._register(o.i(t2.domNode, "paste", (e3) => { + })), this._register(r.i(t2.domNode, "paste", (e3) => { if (this._textArea.setIgnoreSelectionChangeTime("received paste event"), b.canUseTextData(e3)) { const [t3, n3] = b.getTextData(e3); t3 !== "" && this._firePaste(t3, n3); } else this._textArea.getSelectionStart() !== this._textArea.getSelectionEnd() && this._setAndWriteTextAreaState("paste", d.b.EMPTY), this._nextCommand = 1; - })), this._register(o.i(t2.domNode, "focus", () => { + })), this._register(r.i(t2.domNode, "focus", () => { this._setHasFocus(true); - })), this._register(o.i(t2.domNode, "blur", () => { + })), this._register(r.i(t2.domNode, "blur", () => { this._setHasFocus(false); })); } _installSelectionChangeListener() { let e2 = 0; - return o.i(document, "selectionchange", (t2) => { + return r.i(document, "selectionchange", (t2) => { if (!this._hasFocus) return; if (this._isDoingComposition) return; if (!i.e) return; - const n2 = Date.now(), o2 = n2 - e2; - if (e2 = n2, o2 < 5) + const n2 = Date.now(), r2 = n2 - e2; + if (e2 = n2, r2 < 5) return; - const r2 = n2 - this._textArea.getIgnoreSelectionChangeTime(); - if (this._textArea.resetSelectionChangeTime(), r2 < 100) + const o2 = n2 - this._textArea.getIgnoreSelectionChangeTime(); + if (this._textArea.resetSelectionChangeTime(), o2 < 100) return; if (!this._textAreaState.selectionStartPosition || !this._textAreaState.selectionEndPosition) return; @@ -51406,8 +51406,8 @@ ${Object(zn.b)(wi)} return this._hasFocus; } refreshFocusState() { - const e2 = o.E(this.textArea.domNode); - e2 ? this._setHasFocus(e2.activeElement === this.textArea.domNode) : o.N(this.textArea.domNode) ? this._setHasFocus(document.activeElement === this.textArea.domNode) : this._setHasFocus(false); + const e2 = r.E(this.textArea.domNode); + e2 ? this._setHasFocus(e2.activeElement === this.textArea.domNode) : r.N(this.textArea.domNode) ? this._setHasFocus(document.activeElement === this.textArea.domNode) : this._setHasFocus(false); } _setHasFocus(e2) { this._hasFocus !== e2 && (this._hasFocus = e2, this._selectionChangeListener && (this._selectionChangeListener.dispose(), this._selectionChangeListener = null), this._hasFocus && (this._selectionChangeListener = this._installSelectionChangeListener()), this._hasFocus && (i.f ? this._setAndWriteTextAreaState("focusgain", d.b.EMPTY) : this.writeScreenReaderContent("focusgain")), this._hasFocus ? this._onFocus.fire() : this._onBlur.fire()); @@ -51484,19 +51484,19 @@ ${Object(zn.b)(wi)} return this._actual.domNode.selectionEnd; } setSelectionRange(e2, t2, n2) { - const r2 = this._actual.domNode; + const o2 = this._actual.domNode; let s2 = null; - const a2 = o.E(r2); + const a2 = r.E(o2); s2 = a2 ? a2.activeElement : document.activeElement; - const l2 = s2 === r2, c2 = r2.selectionStart, d2 = r2.selectionEnd; + const l2 = s2 === o2, c2 = o2.selectionStart, d2 = o2.selectionEnd; if (l2 && c2 === t2 && d2 === n2) - i.h && window.parent !== window && r2.focus(); + i.h && window.parent !== window && o2.focus(); else { if (l2) - return this.setIgnoreSelectionChangeTime("setSelectionRange"), r2.setSelectionRange(t2, n2), void (i.h && window.parent !== window && r2.focus()); + return this.setIgnoreSelectionChangeTime("setSelectionRange"), o2.setSelectionRange(t2, n2), void (i.h && window.parent !== window && o2.focus()); try { - const e3 = o.X(r2); - this.setIgnoreSelectionChangeTime("setSelectionRange"), r2.focus(), r2.setSelectionRange(t2, n2), o.V(r2, e3); + const e3 = r.X(o2); + this.setIgnoreSelectionChangeTime("setSelectionRange"), o2.focus(), o2.setSelectionRange(t2, n2), r.V(o2, e3); } catch (e3) { } } @@ -51505,9 +51505,9 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; - }), n.d(t, "b", function() { return r; + }), n.d(t, "b", function() { + return o; }); class i { constructor(e2, t2, n2) { @@ -51517,7 +51517,7 @@ ${Object(zn.b)(wi)} return e2.colorId === t2.colorId ? e2.from === t2.from ? e2.to - t2.to : e2.from - t2.from : e2.colorId - t2.colorId; } } - class o { + class r { constructor(e2, t2, n2) { this.startLineNumber = e2, this.endLineNumber = t2, this.color = n2, this._colorZone = null; } @@ -51531,7 +51531,7 @@ ${Object(zn.b)(wi)} return this._colorZone; } } - class r { + class o { constructor(e2) { this._getVerticalOffsetForLine = e2, this._zones = [], this._colorZonesInvalid = false, this._lineHeight = 0, this._domWidth = 0, this._domHeight = 0, this._outerHeight = 0, this._pixelRatio = 1, this._lastAssignedId = 0, this._color2Id = Object.create(null), this._id2Color = []; } @@ -51539,7 +51539,7 @@ ${Object(zn.b)(wi)} return this._id2Color; } setZones(e2) { - this._zones = e2, this._zones.sort(o.compare); + this._zones = e2, this._zones.sort(r.compare); } setLineHeight(e2) { return this._lineHeight !== e2 && (this._lineHeight = e2, this._colorZonesInvalid = true, true); @@ -51572,7 +51572,7 @@ ${Object(zn.b)(wi)} return this._outerHeight !== e2 && (this._outerHeight = e2, this._colorZonesInvalid = true, true); } resolveColorZones() { - const e2 = this._colorZonesInvalid, t2 = Math.floor(this._lineHeight), n2 = Math.floor(this.getCanvasHeight()), o2 = n2 / Math.floor(this._outerHeight), r2 = Math.floor(4 * this._pixelRatio / 2); + const e2 = this._colorZonesInvalid, t2 = Math.floor(this._lineHeight), n2 = Math.floor(this.getCanvasHeight()), r2 = n2 / Math.floor(this._outerHeight), o2 = Math.floor(4 * this._pixelRatio / 2); let s = []; for (let a = 0, l = this._zones.length; a < l; a++) { const l2 = this._zones[a]; @@ -51583,9 +51583,9 @@ ${Object(zn.b)(wi)} continue; } } - const c = Math.floor(o2 * this._getVerticalOffsetForLine(l2.startLineNumber)), d = Math.floor(o2 * (this._getVerticalOffsetForLine(l2.endLineNumber) + t2)); + const c = Math.floor(r2 * this._getVerticalOffsetForLine(l2.startLineNumber)), d = Math.floor(r2 * (this._getVerticalOffsetForLine(l2.endLineNumber) + t2)); let h = Math.floor((c + d) / 2), u = d - h; - u < r2 && (u = r2), h - u < 0 && (h = u), h + u > n2 && (h = n2 - u); + u < o2 && (u = o2), h - u < 0 && (h = u), h + u > n2 && (h = n2 - u); const p = l2.color; let m = this._color2Id[p]; m || (m = ++this._lastAssignedId, this._color2Id[p] = m, this._id2Color[m] = p); @@ -51602,9 +51602,9 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return c; }); - var i = n(23), o = n(51), r = n(18); + var i = n(23), r = n(51), o = n(18); n(78); - const s = Object(r.c)("contextService"); + const s = Object(o.c)("contextService"); var a, l; !function(e2) { e2.isIWorkspace = function(e3) { @@ -51620,7 +51620,7 @@ ${Object(zn.b)(wi)} this.raw = t2, this.uri = e2.uri, this.index = e2.index, this.name = e2.name; } toResource(e2) { - return o.g(this.uri, e2); + return r.g(this.uri, e2); } toJSON() { return {uri: this.uri, name: this.name, index: this.index}; @@ -51631,28 +51631,28 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return s; }); - var i = n(6), o = n(2); - class r { - constructor(e2, t2, n2, i2, o2, r2) { - e2 |= 0, t2 |= 0, n2 |= 0, i2 |= 0, o2 |= 0, r2 |= 0, this.rawScrollLeft = n2, this.rawScrollTop = r2, e2 < 0 && (e2 = 0), n2 + e2 > t2 && (n2 = t2 - e2), n2 < 0 && (n2 = 0), i2 < 0 && (i2 = 0), r2 + i2 > o2 && (r2 = o2 - i2), r2 < 0 && (r2 = 0), this.width = e2, this.scrollWidth = t2, this.scrollLeft = n2, this.height = i2, this.scrollHeight = o2, this.scrollTop = r2; + var i = n(6), r = n(2); + class o { + constructor(e2, t2, n2, i2, r2, o2) { + e2 |= 0, t2 |= 0, n2 |= 0, i2 |= 0, r2 |= 0, o2 |= 0, this.rawScrollLeft = n2, this.rawScrollTop = o2, e2 < 0 && (e2 = 0), n2 + e2 > t2 && (n2 = t2 - e2), n2 < 0 && (n2 = 0), i2 < 0 && (i2 = 0), o2 + i2 > r2 && (o2 = r2 - i2), o2 < 0 && (o2 = 0), this.width = e2, this.scrollWidth = t2, this.scrollLeft = n2, this.height = i2, this.scrollHeight = r2, this.scrollTop = o2; } equals(e2) { return this.rawScrollLeft === e2.rawScrollLeft && this.rawScrollTop === e2.rawScrollTop && this.width === e2.width && this.scrollWidth === e2.scrollWidth && this.scrollLeft === e2.scrollLeft && this.height === e2.height && this.scrollHeight === e2.scrollHeight && this.scrollTop === e2.scrollTop; } withScrollDimensions(e2, t2) { - return new r(e2.width !== void 0 ? e2.width : this.width, e2.scrollWidth !== void 0 ? e2.scrollWidth : this.scrollWidth, t2 ? this.rawScrollLeft : this.scrollLeft, e2.height !== void 0 ? e2.height : this.height, e2.scrollHeight !== void 0 ? e2.scrollHeight : this.scrollHeight, t2 ? this.rawScrollTop : this.scrollTop); + return new o(e2.width !== void 0 ? e2.width : this.width, e2.scrollWidth !== void 0 ? e2.scrollWidth : this.scrollWidth, t2 ? this.rawScrollLeft : this.scrollLeft, e2.height !== void 0 ? e2.height : this.height, e2.scrollHeight !== void 0 ? e2.scrollHeight : this.scrollHeight, t2 ? this.rawScrollTop : this.scrollTop); } withScrollPosition(e2) { - return new r(this.width, this.scrollWidth, e2.scrollLeft !== void 0 ? e2.scrollLeft : this.rawScrollLeft, this.height, this.scrollHeight, e2.scrollTop !== void 0 ? e2.scrollTop : this.rawScrollTop); + return new o(this.width, this.scrollWidth, e2.scrollLeft !== void 0 ? e2.scrollLeft : this.rawScrollLeft, this.height, this.scrollHeight, e2.scrollTop !== void 0 ? e2.scrollTop : this.rawScrollTop); } createScrollEvent(e2) { - const t2 = this.width !== e2.width, n2 = this.scrollWidth !== e2.scrollWidth, i2 = this.scrollLeft !== e2.scrollLeft, o2 = this.height !== e2.height, r2 = this.scrollHeight !== e2.scrollHeight, s2 = this.scrollTop !== e2.scrollTop; - return {oldWidth: e2.width, oldScrollWidth: e2.scrollWidth, oldScrollLeft: e2.scrollLeft, width: this.width, scrollWidth: this.scrollWidth, scrollLeft: this.scrollLeft, oldHeight: e2.height, oldScrollHeight: e2.scrollHeight, oldScrollTop: e2.scrollTop, height: this.height, scrollHeight: this.scrollHeight, scrollTop: this.scrollTop, widthChanged: t2, scrollWidthChanged: n2, scrollLeftChanged: i2, heightChanged: o2, scrollHeightChanged: r2, scrollTopChanged: s2}; + const t2 = this.width !== e2.width, n2 = this.scrollWidth !== e2.scrollWidth, i2 = this.scrollLeft !== e2.scrollLeft, r2 = this.height !== e2.height, o2 = this.scrollHeight !== e2.scrollHeight, s2 = this.scrollTop !== e2.scrollTop; + return {oldWidth: e2.width, oldScrollWidth: e2.scrollWidth, oldScrollLeft: e2.scrollLeft, width: this.width, scrollWidth: this.scrollWidth, scrollLeft: this.scrollLeft, oldHeight: e2.height, oldScrollHeight: e2.scrollHeight, oldScrollTop: e2.scrollTop, height: this.height, scrollHeight: this.scrollHeight, scrollTop: this.scrollTop, widthChanged: t2, scrollWidthChanged: n2, scrollLeftChanged: i2, heightChanged: r2, scrollHeightChanged: o2, scrollTopChanged: s2}; } } - class s extends o.a { + class s extends r.a { constructor(e2, t2) { - super(), this._onScroll = this._register(new i.a()), this.onScroll = this._onScroll.event, this._smoothScrollDuration = e2, this._scheduleAtNextAnimationFrame = t2, this._state = new r(0, 0, 0, 0, 0, 0), this._smoothScrolling = null; + super(), this._onScroll = this._register(new i.a()), this.onScroll = this._onScroll.event, this._smoothScrollDuration = e2, this._scheduleAtNextAnimationFrame = t2, this._state = new o(0, 0, 0, 0, 0, 0), this._smoothScrolling = null; } dispose() { this._smoothScrolling && (this._smoothScrolling.dispose(), this._smoothScrolling = null), super.dispose(); @@ -51734,11 +51734,11 @@ ${Object(zn.b)(wi)} _initAnimation(e2, t2, n2) { if (Math.abs(e2 - t2) > 2.5 * n2) { let s2, a2; - return e2 < t2 ? (s2 = e2 + 0.75 * n2, a2 = t2 - 0.75 * n2) : (s2 = e2 - 0.75 * n2, a2 = t2 + 0.75 * n2), i2 = l(e2, s2), o2 = l(a2, t2), r2 = 0.33, function(e3) { - return e3 < r2 ? i2(e3 / r2) : o2((e3 - r2) / (1 - r2)); + return e2 < t2 ? (s2 = e2 + 0.75 * n2, a2 = t2 - 0.75 * n2) : (s2 = e2 - 0.75 * n2, a2 = t2 + 0.75 * n2), i2 = l(e2, s2), r2 = l(a2, t2), o2 = 0.33, function(e3) { + return e3 < o2 ? i2(e3 / o2) : r2((e3 - o2) / (1 - o2)); }; } - var i2, o2, r2; + var i2, r2, o2; return l(e2, t2); } dispose() { @@ -51770,17 +51770,17 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("dialogService"); + const r = Object(i.c)("dialogService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return c; }); n(269); - var i = n(1), o = n(156), r = n(2), s = n(99), a = n(46); + var i = n(1), r = n(156), o = n(2), s = n(99), a = n(46); class l { constructor(e2) { this._element = e2; @@ -51804,15 +51804,15 @@ ${Object(zn.b)(wi)} this.disposed = true; } } - class c extends r.a { + class c extends o.a { constructor(e2, t2) { super(), this.domNode = this._register(new l(i.p(e2, i.a(".monaco-icon-label")))); - const n2 = i.p(this.domNode.element, i.a(".monaco-icon-label-container")), r2 = i.p(n2, i.a("span.monaco-icon-name-container")); - this.descriptionContainer = this._register(new l(i.p(n2, i.a("span.monaco-icon-description-container")))), (t2 == null ? void 0 : t2.supportHighlights) ? this.nameNode = new h(r2, !!t2.supportCodicons) : this.nameNode = new d(r2), (t2 == null ? void 0 : t2.supportDescriptionHighlights) ? this.descriptionNodeFactory = () => new o.a(i.p(this.descriptionContainer.element, i.a("span.label-description")), !!t2.supportCodicons) : this.descriptionNodeFactory = () => this._register(new l(i.p(this.descriptionContainer.element, i.a("span.label-description")))); + const n2 = i.p(this.domNode.element, i.a(".monaco-icon-label-container")), o2 = i.p(n2, i.a("span.monaco-icon-name-container")); + this.descriptionContainer = this._register(new l(i.p(n2, i.a("span.monaco-icon-description-container")))), (t2 == null ? void 0 : t2.supportHighlights) ? this.nameNode = new h(o2, !!t2.supportCodicons) : this.nameNode = new d(o2), (t2 == null ? void 0 : t2.supportDescriptionHighlights) ? this.descriptionNodeFactory = () => new r.a(i.p(this.descriptionContainer.element, i.a("span.label-description")), !!t2.supportCodicons) : this.descriptionNodeFactory = () => this._register(new l(i.p(this.descriptionContainer.element, i.a("span.label-description")))); } setLabel(e2, t2, n2) { const i2 = ["monaco-icon-label"]; - n2 && (n2.extraClasses && i2.push(...n2.extraClasses), n2.italic && i2.push("italic"), n2.strikethrough && i2.push("strikethrough")), this.domNode.className = i2.join(" "), this.domNode.title = (n2 == null ? void 0 : n2.title) || "", this.nameNode.setLabel(e2, n2), (t2 || this.descriptionNode) && (this.descriptionNode || (this.descriptionNode = this.descriptionNodeFactory()), this.descriptionNode instanceof o.a ? (this.descriptionNode.set(t2 || "", n2 ? n2.descriptionMatches : void 0), (n2 == null ? void 0 : n2.descriptionTitle) ? this.descriptionNode.element.title = n2.descriptionTitle : this.descriptionNode.element.removeAttribute("title")) : (this.descriptionNode.textContent = t2 || "", this.descriptionNode.title = (n2 == null ? void 0 : n2.descriptionTitle) || "", this.descriptionNode.empty = !t2)); + n2 && (n2.extraClasses && i2.push(...n2.extraClasses), n2.italic && i2.push("italic"), n2.strikethrough && i2.push("strikethrough")), this.domNode.className = i2.join(" "), this.domNode.title = (n2 == null ? void 0 : n2.title) || "", this.nameNode.setLabel(e2, n2), (t2 || this.descriptionNode) && (this.descriptionNode || (this.descriptionNode = this.descriptionNodeFactory()), this.descriptionNode instanceof r.a ? (this.descriptionNode.set(t2 || "", n2 ? n2.descriptionMatches : void 0), (n2 == null ? void 0 : n2.descriptionTitle) ? this.descriptionNode.element.title = n2.descriptionTitle : this.descriptionNode.element.removeAttribute("title")) : (this.descriptionNode.textContent = t2 || "", this.descriptionNode.title = (n2 == null ? void 0 : n2.descriptionTitle) || "", this.descriptionNode.empty = !t2)); } } class d { @@ -51826,8 +51826,8 @@ ${Object(zn.b)(wi)} else { this.container.innerText = "", i.e(this.container, "multiple"), this.singleLabel = void 0; for (let n2 = 0; n2 < e2.length; n2++) { - const o2 = e2[n2], r2 = (t2 == null ? void 0 : t2.domId) && `${t2 == null ? void 0 : t2.domId}_${n2}`; - i.p(this.container, i.a("a.label-name", {id: r2, "data-icon-label-count": e2.length, "data-icon-label-index": n2, role: "treeitem"}, o2)), n2 < e2.length - 1 && i.p(this.container, i.a("span.label-separator", void 0, (t2 == null ? void 0 : t2.separator) || "/")); + const r2 = e2[n2], o2 = (t2 == null ? void 0 : t2.domId) && `${t2 == null ? void 0 : t2.domId}_${n2}`; + i.p(this.container, i.a("a.label-name", {id: o2, "data-icon-label-count": e2.length, "data-icon-label-index": n2, role: "treeitem"}, r2)), n2 < e2.length - 1 && i.p(this.container, i.a("span.label-separator", void 0, (t2 == null ? void 0 : t2.separator) || "/")); } } } @@ -51839,21 +51839,21 @@ ${Object(zn.b)(wi)} setLabel(e2, t2) { if (this.label !== e2 || !Object(a.e)(this.options, t2)) if (this.label = e2, this.options = t2, typeof e2 == "string") - this.singleLabel || (this.container.innerText = "", i.Q(this.container, "multiple"), this.singleLabel = new o.a(i.p(this.container, i.a("a.label-name", {id: t2 == null ? void 0 : t2.domId})), this.supportCodicons)), this.singleLabel.set(e2, t2 == null ? void 0 : t2.matches, t2 == null ? void 0 : t2.title, t2 == null ? void 0 : t2.labelEscapeNewLines); + this.singleLabel || (this.container.innerText = "", i.Q(this.container, "multiple"), this.singleLabel = new r.a(i.p(this.container, i.a("a.label-name", {id: t2 == null ? void 0 : t2.domId})), this.supportCodicons)), this.singleLabel.set(e2, t2 == null ? void 0 : t2.matches, t2 == null ? void 0 : t2.title, t2 == null ? void 0 : t2.labelEscapeNewLines); else { this.container.innerText = "", i.e(this.container, "multiple"), this.singleLabel = void 0; - const n2 = (t2 == null ? void 0 : t2.separator) || "/", r2 = function(e3, t3, n3) { + const n2 = (t2 == null ? void 0 : t2.separator) || "/", o2 = function(e3, t3, n3) { if (!n3) return; let i2 = 0; return e3.map((e4) => { - const o2 = {start: i2, end: i2 + e4.length}, r3 = n3.map((e5) => s.a.intersect(o2, e5)).filter((e5) => !s.a.isEmpty(e5)).map(({start: e5, end: t4}) => ({start: e5 - i2, end: t4 - i2})); - return i2 = o2.end + t3.length, r3; + const r2 = {start: i2, end: i2 + e4.length}, o3 = n3.map((e5) => s.a.intersect(r2, e5)).filter((e5) => !s.a.isEmpty(e5)).map(({start: e5, end: t4}) => ({start: e5 - i2, end: t4 - i2})); + return i2 = r2.end + t3.length, o3; }); }(e2, n2, t2 == null ? void 0 : t2.matches); for (let s2 = 0; s2 < e2.length; s2++) { - const a2 = e2[s2], l2 = r2 ? r2[s2] : void 0, c2 = (t2 == null ? void 0 : t2.domId) && `${t2 == null ? void 0 : t2.domId}_${s2}`, d2 = i.a("a.label-name", {id: c2, "data-icon-label-count": e2.length, "data-icon-label-index": s2, role: "treeitem"}); - new o.a(i.p(this.container, d2), this.supportCodicons).set(a2, l2, t2 == null ? void 0 : t2.title, t2 == null ? void 0 : t2.labelEscapeNewLines), s2 < e2.length - 1 && i.p(d2, i.a("span.label-separator", void 0, n2)); + const a2 = e2[s2], l2 = o2 ? o2[s2] : void 0, c2 = (t2 == null ? void 0 : t2.domId) && `${t2 == null ? void 0 : t2.domId}_${s2}`, d2 = i.a("a.label-name", {id: c2, "data-icon-label-count": e2.length, "data-icon-label-index": s2, role: "treeitem"}); + new r.a(i.p(this.container, d2), this.supportCodicons).set(a2, l2, t2 == null ? void 0 : t2.title, t2 == null ? void 0 : t2.labelEscapeNewLines), s2 < e2.length - 1 && i.p(d2, i.a("span.label-separator", void 0, n2)); } } } @@ -51866,7 +51866,7 @@ ${Object(zn.b)(wi)} return v; }); n(273); - var i = n(0), o = n(1), r = n(165), s = n(66), a = n(116), l = n(6), c = n(82), d = n(16), h = n(46); + var i = n(0), r = n(1), o = n(165), s = n(66), a = n(116), l = n(6), c = n(82), d = n(15), h = n(46); class u { constructor(e2, t2 = 0, n2 = e2.length, i2 = t2 - 1) { this.items = e2, this.start = t2, this.end = n2, this.index = i2; @@ -51936,16 +51936,16 @@ ${Object(zn.b)(wi)} } } var m = n(105), g = n(44); - const f = o.a, b = {inputBackground: d.a.fromHex("#3C3C3C"), inputForeground: d.a.fromHex("#CCCCCC"), inputValidationInfoBorder: d.a.fromHex("#55AAFF"), inputValidationInfoBackground: d.a.fromHex("#063B49"), inputValidationWarningBorder: d.a.fromHex("#B89500"), inputValidationWarningBackground: d.a.fromHex("#352A05"), inputValidationErrorBorder: d.a.fromHex("#BE1100"), inputValidationErrorBackground: d.a.fromHex("#5A1D1D")}; + const f = r.a, b = {inputBackground: d.a.fromHex("#3C3C3C"), inputForeground: d.a.fromHex("#CCCCCC"), inputValidationInfoBorder: d.a.fromHex("#55AAFF"), inputValidationInfoBackground: d.a.fromHex("#063B49"), inputValidationWarningBorder: d.a.fromHex("#B89500"), inputValidationWarningBackground: d.a.fromHex("#352A05"), inputValidationErrorBorder: d.a.fromHex("#BE1100"), inputValidationErrorBackground: d.a.fromHex("#5A1D1D")}; class _ extends c.a { constructor(e2, t2, n2) { - super(), this.state = "idle", this.maxHeight = Number.POSITIVE_INFINITY, this._onDidChange = this._register(new l.a()), this.onDidChange = this._onDidChange.event, this._onDidHeightChange = this._register(new l.a()), this.onDidHeightChange = this._onDidHeightChange.event, this.contextViewProvider = t2, this.options = n2 || Object.create(null), Object(h.g)(this.options, b, false), this.message = null, this.placeholder = this.options.placeholder || "", this.ariaLabel = this.options.ariaLabel || "", this.inputBackground = this.options.inputBackground, this.inputForeground = this.options.inputForeground, this.inputBorder = this.options.inputBorder, this.inputValidationInfoBorder = this.options.inputValidationInfoBorder, this.inputValidationInfoBackground = this.options.inputValidationInfoBackground, this.inputValidationInfoForeground = this.options.inputValidationInfoForeground, this.inputValidationWarningBorder = this.options.inputValidationWarningBorder, this.inputValidationWarningBackground = this.options.inputValidationWarningBackground, this.inputValidationWarningForeground = this.options.inputValidationWarningForeground, this.inputValidationErrorBorder = this.options.inputValidationErrorBorder, this.inputValidationErrorBackground = this.options.inputValidationErrorBackground, this.inputValidationErrorForeground = this.options.inputValidationErrorForeground, this.options.validationOptions && (this.validation = this.options.validationOptions.validation), this.element = o.p(e2, f(".monaco-inputbox.idle")); - let i2 = this.options.flexibleHeight ? "textarea" : "input", r2 = o.p(this.element, f(".wrapper")); - if (this.input = o.p(r2, f(i2 + ".input.empty")), this.input.setAttribute("autocorrect", "off"), this.input.setAttribute("autocapitalize", "off"), this.input.setAttribute("spellcheck", "false"), this.onfocus(this.input, () => this.element.classList.add("synthetic-focus")), this.onblur(this.input, () => this.element.classList.remove("synthetic-focus")), this.options.flexibleHeight) { - this.maxHeight = typeof this.options.flexibleMaxHeight == "number" ? this.options.flexibleMaxHeight : Number.POSITIVE_INFINITY, this.mirror = o.p(r2, f("div.mirror")), this.mirror.innerText = "\xA0", this.scrollableElement = new m.b(this.element, {vertical: 1}), this.options.flexibleWidth && (this.input.setAttribute("wrap", "off"), this.mirror.style.whiteSpace = "pre", this.mirror.style.wordWrap = "initial"), o.p(e2, this.scrollableElement.getDomNode()), this._register(this.scrollableElement), this._register(this.scrollableElement.onScroll((e3) => this.input.scrollTop = e3.scrollTop)); + super(), this.state = "idle", this.maxHeight = Number.POSITIVE_INFINITY, this._onDidChange = this._register(new l.a()), this.onDidChange = this._onDidChange.event, this._onDidHeightChange = this._register(new l.a()), this.onDidHeightChange = this._onDidHeightChange.event, this.contextViewProvider = t2, this.options = n2 || Object.create(null), Object(h.g)(this.options, b, false), this.message = null, this.placeholder = this.options.placeholder || "", this.ariaLabel = this.options.ariaLabel || "", this.inputBackground = this.options.inputBackground, this.inputForeground = this.options.inputForeground, this.inputBorder = this.options.inputBorder, this.inputValidationInfoBorder = this.options.inputValidationInfoBorder, this.inputValidationInfoBackground = this.options.inputValidationInfoBackground, this.inputValidationInfoForeground = this.options.inputValidationInfoForeground, this.inputValidationWarningBorder = this.options.inputValidationWarningBorder, this.inputValidationWarningBackground = this.options.inputValidationWarningBackground, this.inputValidationWarningForeground = this.options.inputValidationWarningForeground, this.inputValidationErrorBorder = this.options.inputValidationErrorBorder, this.inputValidationErrorBackground = this.options.inputValidationErrorBackground, this.inputValidationErrorForeground = this.options.inputValidationErrorForeground, this.options.validationOptions && (this.validation = this.options.validationOptions.validation), this.element = r.p(e2, f(".monaco-inputbox.idle")); + let i2 = this.options.flexibleHeight ? "textarea" : "input", o2 = r.p(this.element, f(".wrapper")); + if (this.input = r.p(o2, f(i2 + ".input.empty")), this.input.setAttribute("autocorrect", "off"), this.input.setAttribute("autocapitalize", "off"), this.input.setAttribute("spellcheck", "false"), this.onfocus(this.input, () => this.element.classList.add("synthetic-focus")), this.onblur(this.input, () => this.element.classList.remove("synthetic-focus")), this.options.flexibleHeight) { + this.maxHeight = typeof this.options.flexibleMaxHeight == "number" ? this.options.flexibleMaxHeight : Number.POSITIVE_INFINITY, this.mirror = r.p(o2, f("div.mirror")), this.mirror.innerText = "\xA0", this.scrollableElement = new m.b(this.element, {vertical: 1}), this.options.flexibleWidth && (this.input.setAttribute("wrap", "off"), this.mirror.style.whiteSpace = "pre", this.mirror.style.wordWrap = "initial"), r.p(e2, this.scrollableElement.getDomNode()), this._register(this.scrollableElement), this._register(this.scrollableElement.onScroll((e3) => this.input.scrollTop = e3.scrollTop)); const t3 = l.b.filter(Object(g.a)(document, "selectionchange"), () => { const e3 = document.getSelection(); - return (e3 == null ? void 0 : e3.anchorNode) === r2; + return (e3 == null ? void 0 : e3.anchorNode) === o2; }); this._register(t3(this.updateScrollDimensions, this)), this._register(this.onDidHeightChange(this.updateScrollDimensions, this)); } else @@ -51977,7 +51977,7 @@ ${Object(zn.b)(wi)} this.input.value !== e2 && (this.input.value = e2, this.onValueChange()); } get height() { - return typeof this.cachedHeight == "number" ? this.cachedHeight : o.G(this.element); + return typeof this.cachedHeight == "number" ? this.cachedHeight : r.G(this.element); } focus() { this.input.focus(); @@ -52001,7 +52001,7 @@ ${Object(zn.b)(wi)} this.blur(), this.input.disabled = true, this._hideMessage(); } get width() { - return o.H(this.input); + return r.H(this.input); } set width(e2) { if (this.options.flexibleHeight && this.options.flexibleWidth) { @@ -52058,15 +52058,15 @@ ${Object(zn.b)(wi)} _showMessage() { if (!this.contextViewProvider || !this.message) return; - let e2, t2, n2 = () => e2.style.width = o.H(this.element) + "px"; + let e2, t2, n2 = () => e2.style.width = r.H(this.element) + "px"; this.contextViewProvider.showContextView({getAnchor: () => this.element, anchorAlignment: 1, render: (t3) => { if (!this.message) return null; - e2 = o.p(t3, f(".monaco-inputbox-container")), n2(); - const i2 = {inline: true, className: "monaco-inputbox-message"}, s2 = this.message.formatContent ? Object(r.b)(this.message.content, i2) : Object(r.c)(this.message.content, i2); + e2 = r.p(t3, f(".monaco-inputbox-container")), n2(); + const i2 = {inline: true, className: "monaco-inputbox-message"}, s2 = this.message.formatContent ? Object(o.b)(this.message.content, i2) : Object(o.c)(this.message.content, i2); s2.classList.add(this.classForType(this.message.type)); const a2 = this.stylesForType(this.message.type); - return s2.style.backgroundColor = a2.background ? a2.background.toString() : "", s2.style.color = a2.foreground ? a2.foreground.toString() : "", s2.style.border = a2.border ? "1px solid " + a2.border : "", o.p(e2, s2), null; + return s2.style.backgroundColor = a2.background ? a2.background.toString() : "", s2.style.color = a2.foreground ? a2.foreground.toString() : "", s2.style.border = a2.border ? "1px solid " + a2.border : "", r.p(e2, s2), null; }, onHide: () => { this.state = "closed"; }, layout: n2}), t2 = this.message.type === 3 ? i.a("alertErrorMessage", "Error: {0}", this.message.content) : this.message.type === 2 ? i.a("alertWarningMessage", "Warning: {0}", this.message.content) : i.a("alertInfoMessage", "Info: {0}", this.message.content), s.a(t2), this.state = "open"; @@ -52094,11 +52094,11 @@ ${Object(zn.b)(wi)} if (!this.mirror) return; const e2 = this.cachedContentHeight; - this.cachedContentHeight = o.G(this.mirror), e2 !== this.cachedContentHeight && (this.cachedHeight = Math.min(this.cachedContentHeight, this.maxHeight), this.input.style.height = this.cachedHeight + "px", this._onDidHeightChange.fire(this.cachedContentHeight)); + this.cachedContentHeight = r.G(this.mirror), e2 !== this.cachedContentHeight && (this.cachedHeight = Math.min(this.cachedContentHeight, this.maxHeight), this.input.style.height = this.cachedHeight + "px", this._onDidHeightChange.fire(this.cachedContentHeight)); } insertAtCursor(e2) { - const t2 = this.inputElement, n2 = t2.selectionStart, i2 = t2.selectionEnd, o2 = t2.value; - n2 !== null && i2 !== null && (this.value = o2.substr(0, n2) + e2 + o2.substr(i2), t2.setSelectionRange(n2 + 1, n2 + 1), this.layout()); + const t2 = this.inputElement, n2 = t2.selectionStart, i2 = t2.selectionEnd, r2 = t2.value; + n2 !== null && i2 !== null && (this.value = r2.substr(0, n2) + e2 + r2.substr(i2), t2.setSelectionRange(n2 + 1, n2 + 1), this.layout()); } dispose() { this._hideMessage(), this.message = null, this.actionbar && this.actionbar.dispose(), super.dispose(); @@ -52148,20 +52148,20 @@ ${Object(zn.b)(wi)} }), n.d(t, "a", function() { return m; }); - var i = n(0), o = n(13), r = n(21), s = n(23), a = n(180), l = n(72); + var i = n(0), r = n(13), o = n(21), s = n(23), a = n(180), l = n(72); function c(e2) { return e2.toString(); } class d { - constructor(e2, t2, n2, i2, o2, r2, s2) { - this.beforeVersionId = e2, this.afterVersionId = t2, this.beforeEOL = n2, this.afterEOL = i2, this.beforeCursorState = o2, this.afterCursorState = r2, this.changes = s2; + constructor(e2, t2, n2, i2, r2, o2, s2) { + this.beforeVersionId = e2, this.afterVersionId = t2, this.beforeEOL = n2, this.afterEOL = i2, this.beforeCursorState = r2, this.afterCursorState = o2, this.changes = s2; } static create(e2, t2) { const n2 = e2.getAlternativeVersionId(), i2 = u(e2); return new d(n2, n2, i2, i2, t2, t2, []); } - append(e2, t2, n2, i2, o2) { - t2.length > 0 && (this.changes = Object(a.b)(this.changes, t2)), this.afterEOL = n2, this.afterVersionId = i2, this.afterCursorState = o2; + append(e2, t2, n2, i2, r2) { + t2.length > 0 && (this.changes = Object(a.b)(this.changes, t2)), this.afterEOL = n2, this.afterVersionId = i2, this.afterCursorState = r2; } static _writeSelectionsSize(e2) { return 4 + 16 * (e2 ? e2.length : 0); @@ -52175,15 +52175,15 @@ ${Object(zn.b)(wi)} static _readSelections(e2, t2, n2) { const i2 = l.c(e2, t2); t2 += 4; - for (let o2 = 0; o2 < i2; o2++) { + for (let r2 = 0; r2 < i2; r2++) { const i3 = l.c(e2, t2); t2 += 4; - const o3 = l.c(e2, t2); + const r3 = l.c(e2, t2); t2 += 4; const s2 = l.c(e2, t2); t2 += 4; const a2 = l.c(e2, t2); - t2 += 4, n2.push(new r.a(i3, o3, s2, a2)); + t2 += 4, n2.push(new o.a(i3, r3, s2, a2)); } return t2; } @@ -52203,9 +52203,9 @@ ${Object(zn.b)(wi)} let n2 = 0; const i2 = l.c(t2, n2); n2 += 4; - const o2 = l.c(t2, n2); + const r2 = l.c(t2, n2); n2 += 4; - const r2 = l.d(t2, n2); + const o2 = l.d(t2, n2); n2 += 1; const s2 = l.d(t2, n2); n2 += 1; @@ -52218,7 +52218,7 @@ ${Object(zn.b)(wi)} const p2 = []; for (let e3 = 0; e3 < u2; e3++) n2 = a.a.read(t2, n2, p2); - return new d(i2, o2, r2, s2, c2, h2, p2); + return new d(i2, r2, o2, s2, c2, h2, p2); } } class h { @@ -52246,8 +52246,8 @@ ${Object(zn.b)(wi)} canAppend(e2) { return this.model === e2 && this._data instanceof d; } - append(e2, t2, n2, i2, o2) { - this._data instanceof d && this._data.append(e2, t2, n2, i2, o2); + append(e2, t2, n2, i2, r2) { + this._data instanceof d && this._data.append(e2, t2, n2, i2, r2); } close() { this._data instanceof d && (this._data = this._data.serialize()); @@ -52304,9 +52304,9 @@ ${Object(zn.b)(wi)} } return false; } - append(e3, t2, n2, i2, o2) { - const r2 = c(e3.uri); - this._editStackElementsMap.get(r2).append(e3, t2, n2, i2, o2); + append(e3, t2, n2, i2, r2) { + const o2 = c(e3.uri); + this._editStackElementsMap.get(o2).append(e3, t2, n2, i2, r2); } close() { this._isOpen = false; @@ -52348,14 +52348,14 @@ ${Object(zn.b)(wi)} this._model.setEOL(e2), t2.append(this._model, [], u(this._model), this._model.getAlternativeVersionId(), null); } pushEditOperation(e2, t2, n2) { - const i2 = this._getOrCreateEditStackElement(e2), o2 = this._model.applyEdits(t2, true), r2 = m._computeCursorState(n2, o2), s2 = o2.map((e3, t3) => ({index: t3, textChange: e3.textChange})); - return s2.sort((e3, t3) => e3.textChange.oldPosition === t3.textChange.oldPosition ? e3.index - t3.index : e3.textChange.oldPosition - t3.textChange.oldPosition), i2.append(this._model, s2.map((e3) => e3.textChange), u(this._model), this._model.getAlternativeVersionId(), r2), r2; + const i2 = this._getOrCreateEditStackElement(e2), r2 = this._model.applyEdits(t2, true), o2 = m._computeCursorState(n2, r2), s2 = r2.map((e3, t3) => ({index: t3, textChange: e3.textChange})); + return s2.sort((e3, t3) => e3.textChange.oldPosition === t3.textChange.oldPosition ? e3.index - t3.index : e3.textChange.oldPosition - t3.textChange.oldPosition), i2.append(this._model, s2.map((e3) => e3.textChange), u(this._model), this._model.getAlternativeVersionId(), o2), o2; } static _computeCursorState(e2, t2) { try { return e2 ? e2(t2) : null; } catch (e3) { - return Object(o.e)(e3), null; + return Object(r.e)(e3), null; } } } @@ -52365,7 +52365,7 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return p; }); - var i, o, r, s = (i = function(e3, t2) { + var i, r, o, s = (i = function(e3, t2) { return (i = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(e4, t3) { e4.__proto__ = t3; } || function(e4, t3) { @@ -52379,17 +52379,17 @@ ${Object(zn.b)(wi)} i(e3, t2), e3.prototype = t2 === null ? Object.create(t2) : (n2.prototype = t2.prototype, new n2()); }); if (typeof e2 == "object") - r = e2.platform === "win32"; + o = e2.platform === "win32"; else if (typeof navigator == "object") { var a = navigator.userAgent; - r = a.indexOf("Windows") >= 0; + o = a.indexOf("Windows") >= 0; } var l = /^\w[\w\d+.-]*$/, c = /^\//, d = /^\/\//; var h = "/", u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, p = function() { - function e3(e4, t2, n2, i2, o2, r2) { - r2 === void 0 && (r2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { + function e3(e4, t2, n2, i2, r2, o2) { + o2 === void 0 && (o2 = false), typeof e4 == "object" ? (this.scheme = e4.scheme || "", this.authority = e4.authority || "", this.path = e4.path || "", this.query = e4.query || "", this.fragment = e4.fragment || "") : (this.scheme = function(e5, t3) { return e5 || t3 ? e5 : "file"; - }(e4, r2), this.authority = t2 || "", this.path = function(e5, t3) { + }(e4, o2), this.authority = t2 || "", this.path = function(e5, t3) { switch (e5) { case "https": case "http": @@ -52397,7 +52397,7 @@ ${Object(zn.b)(wi)} t3 ? t3[0] !== h && (t3 = h + t3) : t3 = h; } return t3; - }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = o2 || "", function(e5, t3) { + }(this.scheme, n2 || ""), this.query = i2 || "", this.fragment = r2 || "", function(e5, t3) { if (!e5.scheme && t3) throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "' + e5.authority + '", path: "' + e5.path + '", query: "' + e5.query + '", fragment: "' + e5.fragment + '"}'); if (e5.scheme && !l.test(e5.scheme)) @@ -52409,7 +52409,7 @@ ${Object(zn.b)(wi)} } else if (d.test(e5.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } - }(this, r2)); + }(this, o2)); } return e3.isUri = function(t2) { return t2 instanceof e3 || !!t2 && (typeof t2.authority == "string" && typeof t2.fragment == "string" && typeof t2.path == "string" && typeof t2.query == "string" && typeof t2.scheme == "string" && typeof t2.fsPath == "function" && typeof t2.with == "function" && typeof t2.toString == "function"); @@ -52418,15 +52418,15 @@ ${Object(zn.b)(wi)} }, enumerable: true, configurable: true}), e3.prototype.with = function(e4) { if (!e4) return this; - var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, o2 = e4.query, r2 = e4.fragment; - return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), o2 === void 0 ? o2 = this.query : o2 === null && (o2 = ""), r2 === void 0 ? r2 = this.fragment : r2 === null && (r2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && o2 === this.query && r2 === this.fragment ? this : new g(t2, n2, i2, o2, r2); + var t2 = e4.scheme, n2 = e4.authority, i2 = e4.path, r2 = e4.query, o2 = e4.fragment; + return t2 === void 0 ? t2 = this.scheme : t2 === null && (t2 = ""), n2 === void 0 ? n2 = this.authority : n2 === null && (n2 = ""), i2 === void 0 ? i2 = this.path : i2 === null && (i2 = ""), r2 === void 0 ? r2 = this.query : r2 === null && (r2 = ""), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = ""), t2 === this.scheme && n2 === this.authority && i2 === this.path && r2 === this.query && o2 === this.fragment ? this : new g(t2, n2, i2, r2, o2); }, e3.parse = function(e4, t2) { t2 === void 0 && (t2 = false); var n2 = u.exec(e4); return n2 ? new g(n2[2] || "", C(n2[4] || ""), C(n2[5] || ""), C(n2[7] || ""), C(n2[9] || ""), t2) : new g("", "", "", "", ""); }, e3.file = function(e4) { var t2 = ""; - if (r && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { + if (o && (e4 = e4.replace(/\\/g, h)), e4[0] === h && e4[1] === h) { var n2 = e4.indexOf(h, 2); n2 === -1 ? (t2 = e4.substring(2), e4 = h) : (t2 = e4.substring(2, n2), e4 = e4.substring(n2) || h); } @@ -52446,7 +52446,7 @@ ${Object(zn.b)(wi)} } return t2; }, e3; - }(), m = r ? 1 : void 0, g = function(e3) { + }(), m = o ? 1 : void 0, g = function(e3) { function t2() { var t3 = e3 !== null && e3.apply(this, arguments) || this; return t3._formatted = null, t3._fsPath = null, t3; @@ -52459,16 +52459,16 @@ ${Object(zn.b)(wi)} var e4 = {$mid: 1}; return this._fsPath && (e4.fsPath = this._fsPath, e4._sep = m), this._formatted && (e4.external = this._formatted), this.path && (e4.path = this.path), this.scheme && (e4.scheme = this.scheme), this.authority && (e4.authority = this.authority), this.query && (e4.query = this.query), this.fragment && (e4.fragment = this.fragment), e4; }, t2; - }(p), f = ((o = {})[58] = "%3A", o[47] = "%2F", o[63] = "%3F", o[35] = "%23", o[91] = "%5B", o[93] = "%5D", o[64] = "%40", o[33] = "%21", o[36] = "%24", o[38] = "%26", o[39] = "%27", o[40] = "%28", o[41] = "%29", o[42] = "%2A", o[43] = "%2B", o[44] = "%2C", o[59] = "%3B", o[61] = "%3D", o[32] = "%20", o); + }(p), f = ((r = {})[58] = "%3A", r[47] = "%2F", r[63] = "%3F", r[35] = "%23", r[91] = "%5B", r[93] = "%5D", r[64] = "%40", r[33] = "%21", r[36] = "%24", r[38] = "%26", r[39] = "%27", r[40] = "%28", r[41] = "%29", r[42] = "%2A", r[43] = "%2B", r[44] = "%2C", r[59] = "%3B", r[61] = "%3D", r[32] = "%20", r); function b(e3, t2) { - for (var n2 = void 0, i2 = -1, o2 = 0; o2 < e3.length; o2++) { - var r2 = e3.charCodeAt(o2); - if (r2 >= 97 && r2 <= 122 || r2 >= 65 && r2 <= 90 || r2 >= 48 && r2 <= 57 || r2 === 45 || r2 === 46 || r2 === 95 || r2 === 126 || t2 && r2 === 47) - i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(o2)); + for (var n2 = void 0, i2 = -1, r2 = 0; r2 < e3.length; r2++) { + var o2 = e3.charCodeAt(r2); + if (o2 >= 97 && o2 <= 122 || o2 >= 65 && o2 <= 90 || o2 >= 48 && o2 <= 57 || o2 === 45 || o2 === 46 || o2 === 95 || o2 === 126 || t2 && o2 === 47) + i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 !== void 0 && (n2 += e3.charAt(r2)); else { - n2 === void 0 && (n2 = e3.substr(0, o2)); - var s2 = f[r2]; - s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, o2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = o2); + n2 === void 0 && (n2 = e3.substr(0, r2)); + var s2 = f[o2]; + s2 !== void 0 ? (i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2, r2)), i2 = -1), n2 += s2) : i2 === -1 && (i2 = r2); } } return i2 !== -1 && (n2 += encodeURIComponent(e3.substring(i2))), n2 !== void 0 ? n2 : e3; @@ -52482,17 +52482,17 @@ ${Object(zn.b)(wi)} } function v(e3, t2) { var n2; - return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, r && (n2 = n2.replace(/\//g, "\\")), n2; + return n2 = e3.authority && e3.path.length > 1 && e3.scheme === "file" ? "//" + e3.authority + e3.path : e3.path.charCodeAt(0) === 47 && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && e3.path.charCodeAt(2) === 58 ? t2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, o && (n2 = n2.replace(/\//g, "\\")), n2; } function w(e3, t2) { - var n2 = t2 ? _ : b, i2 = "", o2 = e3.scheme, r2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; - if (o2 && (i2 += o2, i2 += ":"), (r2 || o2 === "file") && (i2 += h, i2 += h), r2) { - var c2 = r2.indexOf("@"); + var n2 = t2 ? _ : b, i2 = "", r2 = e3.scheme, o2 = e3.authority, s2 = e3.path, a2 = e3.query, l2 = e3.fragment; + if (r2 && (i2 += r2, i2 += ":"), (o2 || r2 === "file") && (i2 += h, i2 += h), o2) { + var c2 = o2.indexOf("@"); if (c2 !== -1) { - var d2 = r2.substr(0, c2); - r2 = r2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; + var d2 = o2.substr(0, c2); + o2 = o2.substr(c2 + 1), (c2 = d2.indexOf(":")) === -1 ? i2 += n2(d2, false) : (i2 += n2(d2.substr(0, c2), false), i2 += ":", i2 += n2(d2.substr(c2 + 1), false)), i2 += "@"; } - (c2 = (r2 = r2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(r2, false) : (i2 += n2(r2.substr(0, c2), false), i2 += r2.substr(c2)); + (c2 = (o2 = o2.toLowerCase()).indexOf(":")) === -1 ? i2 += n2(o2, false) : (i2 += n2(o2.substr(0, c2), false), i2 += o2.substr(c2)); } if (s2) { if (s2.length >= 3 && s2.charCodeAt(0) === 47 && s2.charCodeAt(2) === 58) @@ -52523,8 +52523,8 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return s; }); - let i = false, o = null; - function r(e2) { + let i = false, r = null; + function o(e2) { if (!e2.parent || e2.parent === e2) return null; try { @@ -52538,29 +52538,29 @@ ${Object(zn.b)(wi)} } class s { static getSameOriginWindowChain() { - if (!o) { - o = []; + if (!r) { + r = []; let e2, t2 = window; do { - e2 = r(t2), e2 ? o.push({window: t2, iframeElement: t2.frameElement || null}) : o.push({window: t2, iframeElement: null}), t2 = e2; + e2 = o(t2), e2 ? r.push({window: t2, iframeElement: t2.frameElement || null}) : r.push({window: t2, iframeElement: null}), t2 = e2; } while (t2); } - return o.slice(0); + return r.slice(0); } static hasDifferentOriginAncestor() { - return o || this.getSameOriginWindowChain(), i; + return r || this.getSameOriginWindowChain(), i; } static getPositionOfChildWindowRelativeToAncestorWindow(e2, t2) { if (!t2 || e2 === t2) return {top: 0, left: 0}; - let n2 = 0, i2 = 0, o2 = this.getSameOriginWindowChain(); - for (const e3 of o2) { + let n2 = 0, i2 = 0, r2 = this.getSameOriginWindowChain(); + for (const e3 of r2) { if (n2 += e3.window.scrollY, i2 += e3.window.scrollX, e3.window === t2) break; if (!e3.iframeElement) break; - let o3 = e3.iframeElement.getBoundingClientRect(); - n2 += o3.top, i2 += o3.left; + let r3 = e3.iframeElement.getBoundingClientRect(); + n2 += r3.top, i2 += r3.left; } return {top: n2, left: i2}; } @@ -52568,10 +52568,10 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(72), o = n(23); - function r(e2) { + var i = n(72), r = n(23); + function o(e2) { let t2 = JSON.parse(e2); return t2 = function e3(t3, n2 = 0) { if (!t3 || n2 > 200) @@ -52579,7 +52579,7 @@ ${Object(zn.b)(wi)} if (typeof t3 == "object") { switch (t3.$mid) { case 1: - return o.a.revive(t3); + return r.a.revive(t3); case 2: return new RegExp(t3.source, t3.flags); } @@ -52598,15 +52598,15 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return r; + return o; }), n.d(t, "a", function() { return s; }); - var i = n(8), o = n(42); - function r(e2) { - return e2.replace(/[\\/]/g, o.e.sep); + var i = n(8), r = n(42); + function o(e2) { + return e2.replace(/[\\/]/g, r.e.sep); } - function s(e2, t2, n2, r2 = o.h) { + function s(e2, t2, n2, o2 = r.h) { if (e2 === t2) return true; if (!e2 || !t2) @@ -52619,19 +52619,19 @@ ${Object(zn.b)(wi)} if (t2.length === e2.length) return true; let n3 = t2.length; - return t2.charAt(t2.length - 1) === r2 && n3--, e2.charAt(n3) === r2; + return t2.charAt(t2.length - 1) === o2 && n3--, e2.charAt(n3) === o2; } - return t2.charAt(t2.length - 1) !== r2 && (t2 += r2), e2.indexOf(t2) === 0; + return t2.charAt(t2.length - 1) !== o2 && (t2 += o2), e2.indexOf(t2) === 0; } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }), n.d(t, "b", function() { return s; }); - var i = n(72), o = n(132); - class r { + var i = n(72), r = n(132); + class o { constructor(e2, t2, n2, i2) { this.oldPosition = e2, this.oldText = t2, this.newPosition = n2, this.newText = i2; } @@ -52654,31 +52654,31 @@ ${Object(zn.b)(wi)} return 4 + 2 * e2.length; } static _writeString(e2, t2, n2) { - const o2 = t2.length; - i.f(e2, o2, n2), n2 += 4; - for (let r2 = 0; r2 < o2; r2++) - i.e(e2, t2.charCodeAt(r2), n2), n2 += 2; + const r2 = t2.length; + i.f(e2, r2, n2), n2 += 4; + for (let o2 = 0; o2 < r2; o2++) + i.e(e2, t2.charCodeAt(o2), n2), n2 += 2; return n2; } static _readString(e2, t2) { const n2 = i.c(e2, t2); - return t2 += 4, Object(o.b)(e2, t2, n2); + return t2 += 4, Object(r.b)(e2, t2, n2); } writeSize() { - return 8 + r._writeStringSize(this.oldText) + r._writeStringSize(this.newText); + return 8 + o._writeStringSize(this.oldText) + o._writeStringSize(this.newText); } write(e2, t2) { - return i.f(e2, this.oldPosition, t2), t2 += 4, i.f(e2, this.newPosition, t2), t2 += 4, t2 = r._writeString(e2, this.oldText, t2), t2 = r._writeString(e2, this.newText, t2); + return i.f(e2, this.oldPosition, t2), t2 += 4, i.f(e2, this.newPosition, t2), t2 += 4, t2 = o._writeString(e2, this.oldText, t2), t2 = o._writeString(e2, this.newText, t2); } static read(e2, t2, n2) { - const o2 = i.c(e2, t2); + const r2 = i.c(e2, t2); t2 += 4; const s2 = i.c(e2, t2); t2 += 4; - const a2 = r._readString(e2, t2); - t2 += r._writeStringSize(a2); - const l = r._readString(e2, t2); - return t2 += r._writeStringSize(l), n2.push(new r(o2, a2, s2, l)), t2; + const a2 = o._readString(e2, t2); + t2 += o._writeStringSize(a2); + const l = o._readString(e2, t2); + return t2 += o._writeStringSize(l), n2.push(new o(r2, a2, s2, l)), t2; } } function s(e2, t2) { @@ -52719,20 +52719,20 @@ ${Object(zn.b)(wi)} this._acceptPrev(e3), n2 = t3; continue; } - let o3, s2; + let r3, s2; if (i2.oldEnd === n2.newEnd) - o3 = n2, s2 = i2, n2 = this._getPrev(++e2), i2 = this._getCurr(++t2); + r3 = n2, s2 = i2, n2 = this._getPrev(++e2), i2 = this._getCurr(++t2); else if (i2.oldEnd < n2.newEnd) { - const [e3, r2] = a._splitPrev(n2, i2.oldLength); - o3 = e3, s2 = i2, n2 = r2, i2 = this._getCurr(++t2); + const [e3, o2] = a._splitPrev(n2, i2.oldLength); + r3 = e3, s2 = i2, n2 = o2, i2 = this._getCurr(++t2); } else { - const [t3, r2] = a._splitCurr(i2, n2.newLength); - o3 = n2, s2 = t3, n2 = this._getPrev(++e2), i2 = r2; + const [t3, o2] = a._splitCurr(i2, n2.newLength); + r3 = n2, s2 = t3, n2 = this._getPrev(++e2), i2 = o2; } - this._result[this._resultLen++] = new r(o3.oldPosition, o3.oldText, s2.newPosition, s2.newText), this._prevDeltaOffset += o3.newLength - o3.oldLength, this._currDeltaOffset += s2.newLength - s2.oldLength; + this._result[this._resultLen++] = new o(r3.oldPosition, r3.oldText, s2.newPosition, s2.newText), this._prevDeltaOffset += r3.newLength - r3.oldLength, this._currDeltaOffset += s2.newLength - s2.oldLength; } - const o2 = a._merge(this._result); - return a._removeNoOps(o2); + const r2 = a._merge(this._result); + return a._removeNoOps(r2); } _acceptCurr(e2) { this._result[this._resultLen++] = a._rebaseCurr(this._prevDeltaOffset, e2), this._currDeltaOffset += e2.newLength - e2.oldLength; @@ -52747,26 +52747,26 @@ ${Object(zn.b)(wi)} return e2 < this._prevLen ? this._prevEdits[e2] : null; } static _rebaseCurr(e2, t2) { - return new r(t2.oldPosition - e2, t2.oldText, t2.newPosition, t2.newText); + return new o(t2.oldPosition - e2, t2.oldText, t2.newPosition, t2.newText); } static _rebasePrev(e2, t2) { - return new r(t2.oldPosition, t2.oldText, t2.newPosition + e2, t2.newText); + return new o(t2.oldPosition, t2.oldText, t2.newPosition + e2, t2.newText); } static _splitPrev(e2, t2) { const n2 = e2.newText.substr(0, t2), i2 = e2.newText.substr(t2); - return [new r(e2.oldPosition, e2.oldText, e2.newPosition, n2), new r(e2.oldEnd, "", e2.newPosition + t2, i2)]; + return [new o(e2.oldPosition, e2.oldText, e2.newPosition, n2), new o(e2.oldEnd, "", e2.newPosition + t2, i2)]; } static _splitCurr(e2, t2) { const n2 = e2.oldText.substr(0, t2), i2 = e2.oldText.substr(t2); - return [new r(e2.oldPosition, n2, e2.newPosition, e2.newText), new r(e2.oldPosition + t2, i2, e2.newEnd, "")]; + return [new o(e2.oldPosition, n2, e2.newPosition, e2.newText), new o(e2.oldPosition + t2, i2, e2.newEnd, "")]; } static _merge(e2) { if (e2.length === 0) return e2; let t2 = [], n2 = 0, i2 = e2[0]; - for (let o2 = 1; o2 < e2.length; o2++) { - const s2 = e2[o2]; - i2.oldEnd === s2.oldPosition ? i2 = new r(i2.oldPosition, i2.oldText + s2.oldText, i2.newPosition, i2.newText + s2.newText) : (t2[n2++] = i2, i2 = s2); + for (let r2 = 1; r2 < e2.length; r2++) { + const s2 = e2[r2]; + i2.oldEnd === s2.oldPosition ? i2 = new o(i2.oldPosition, i2.oldText + s2.oldText, i2.newPosition, i2.newText + s2.newText) : (t2[n2++] = i2, i2 = s2); } return t2[n2++] = i2, t2; } @@ -52775,8 +52775,8 @@ ${Object(zn.b)(wi)} return e2; let t2 = [], n2 = 0; for (let i2 = 0; i2 < e2.length; i2++) { - const o2 = e2[i2]; - o2.oldText !== o2.newText && (t2[n2++] = o2); + const r2 = e2[i2]; + r2.oldText !== r2.newText && (t2[n2++] = r2); } return t2; } @@ -52786,10 +52786,10 @@ ${Object(zn.b)(wi)} n.d(t, "a", function() { return l; }); - var i = n(8), o = n(62), r = n(22), s = n(81), a = n(3); + var i = n(8), r = n(62), o = n(22), s = n(81), a = n(3); class l { static deleteRight(e2, t2, n2, i2) { - let r2 = [], l2 = e2 !== 3; + let o2 = [], l2 = e2 !== 3; for (let e3 = 0, c = i2.length; e3 < c; e3++) { const c2 = i2[e3]; let d = c2; @@ -52797,21 +52797,21 @@ ${Object(zn.b)(wi)} let e4 = c2.getPosition(), i3 = s.a.right(t2, n2, e4.lineNumber, e4.column); d = new a.a(i3.lineNumber, i3.column, e4.lineNumber, e4.column); } - d.isEmpty() ? r2[e3] = null : (d.startLineNumber !== d.endLineNumber && (l2 = true), r2[e3] = new o.a(d, "")); + d.isEmpty() ? o2[e3] = null : (d.startLineNumber !== d.endLineNumber && (l2 = true), o2[e3] = new r.a(d, "")); } - return [l2, r2]; + return [l2, o2]; } static _isAutoClosingPairDelete(e2, t2, n2) { if (e2.autoClosingBrackets === "never" && e2.autoClosingQuotes === "never") return false; - for (let i2 = 0, o2 = n2.length; i2 < o2; i2++) { - const o3 = n2[i2], s2 = o3.getPosition(); - if (!o3.isEmpty()) + for (let i2 = 0, r2 = n2.length; i2 < r2; i2++) { + const r3 = n2[i2], s2 = r3.getPosition(); + if (!r3.isEmpty()) return false; const a2 = t2.getLineContent(s2.lineNumber), l2 = a2[s2.column - 2], c = e2.autoClosingPairsOpen2.get(l2); if (!c) return false; - if (Object(r.g)(l2)) { + if (Object(o.g)(l2)) { if (e2.autoClosingQuotes === "never") return false; } else if (e2.autoClosingBrackets === "never") @@ -52828,8 +52828,8 @@ ${Object(zn.b)(wi)} static _runAutoClosingPairDelete(e2, t2, n2) { let i2 = []; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) { - const t4 = n2[e3].getPosition(), r2 = new a.a(t4.lineNumber, t4.column - 1, t4.lineNumber, t4.column + 1); - i2[e3] = new o.a(r2, ""); + const t4 = n2[e3].getPosition(), o2 = new a.a(t4.lineNumber, t4.column - 1, t4.lineNumber, t4.column + 1); + i2[e3] = new r.a(o2, ""); } return [true, i2]; } @@ -52843,9 +52843,9 @@ ${Object(zn.b)(wi)} if (u.isEmpty()) { let e4 = h2.getPosition(); if (t2.useTabStops && e4.column > 1) { - let o2 = n2.getLineContent(e4.lineNumber), s2 = i.w(o2), l3 = s2 === -1 ? o2.length + 1 : s2 + 1; + let r2 = n2.getLineContent(e4.lineNumber), s2 = i.w(r2), l3 = s2 === -1 ? r2.length + 1 : s2 + 1; if (e4.column <= l3) { - let i2 = r.a.visibleColumnFromColumn2(t2, n2, e4), o3 = r.a.prevIndentTabStop(i2, t2.indentSize), s3 = r.a.columnFromVisibleColumn2(t2, n2, e4.lineNumber, o3); + let i2 = o.a.visibleColumnFromColumn2(t2, n2, e4), r3 = o.a.prevIndentTabStop(i2, t2.indentSize), s3 = o.a.columnFromVisibleColumn2(t2, n2, e4.lineNumber, r3); u = new a.a(e4.lineNumber, s3, e4.lineNumber, e4.column); } else u = new a.a(e4.lineNumber, e4.column - 1, e4.lineNumber, e4.column); @@ -52854,26 +52854,26 @@ ${Object(zn.b)(wi)} u = new a.a(i2.lineNumber, i2.column, e4.lineNumber, e4.column); } } - u.isEmpty() ? c[e3] = null : (u.startLineNumber !== u.endLineNumber && (d = true), c[e3] = new o.a(u, "")); + u.isEmpty() ? c[e3] = null : (u.startLineNumber !== u.endLineNumber && (d = true), c[e3] = new r.a(u, "")); } return [d, c]; } static cut(e2, t2, n2) { let i2 = []; - for (let r2 = 0, s2 = n2.length; r2 < s2; r2++) { - const s3 = n2[r2]; + for (let o2 = 0, s2 = n2.length; o2 < s2; o2++) { + const s3 = n2[o2]; if (s3.isEmpty()) if (e2.emptySelectionClipboard) { let e3, n3, l2, c, d = s3.getPosition(); d.lineNumber < t2.getLineCount() ? (e3 = d.lineNumber, n3 = 1, l2 = d.lineNumber + 1, c = 1) : d.lineNumber > 1 ? (e3 = d.lineNumber - 1, n3 = t2.getLineMaxColumn(d.lineNumber - 1), l2 = d.lineNumber, c = t2.getLineMaxColumn(d.lineNumber)) : (e3 = d.lineNumber, n3 = 1, l2 = d.lineNumber, c = t2.getLineMaxColumn(d.lineNumber)); let h = new a.a(e3, n3, l2, c); - h.isEmpty() ? i2[r2] = null : i2[r2] = new o.a(h, ""); + h.isEmpty() ? i2[o2] = null : i2[o2] = new r.a(h, ""); } else - i2[r2] = null; + i2[o2] = null; else - i2[r2] = new o.a(s3, ""); + i2[o2] = new r.a(s3, ""); } - return new r.e(0, i2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); + return new o.e(0, i2, {shouldPushStackElementBefore: true, shouldPushStackElementAfter: true}); } } }, function(e, t, n) { @@ -52883,38 +52883,38 @@ ${Object(zn.b)(wi)} }), n.d(t, "a", function() { return l; }); - var i = n(8), o = n(111), r = n(90); - const s = {getInitialState: () => r.c, tokenize2: (e2, t2, n2) => Object(r.e)(0, e2, t2, n2)}; + var i = n(8), r = n(111), o = n(90); + const s = {getInitialState: () => o.c, tokenize2: (e2, t2, n2) => Object(o.e)(0, e2, t2, n2)}; function a(e2, t2 = s) { return function(e3, t3) { - let n2 = '<div class="monaco-tokenized-source">', r2 = e3.split(/\r\n|\r|\n/), s2 = t3.getInitialState(); - for (let e4 = 0, a2 = r2.length; e4 < a2; e4++) { - let a3 = r2[e4]; + let n2 = '<div class="monaco-tokenized-source">', o2 = e3.split(/\r\n|\r|\n/), s2 = t3.getInitialState(); + for (let e4 = 0, a2 = o2.length; e4 < a2; e4++) { + let a3 = o2[e4]; e4 > 0 && (n2 += "<br/>"); let l2 = t3.tokenize2(a3, s2, 0); - o.a.convertToEndOffset(l2.tokens, a3.length); - let c = new o.a(l2.tokens, a3).inflate(), d = 0; + r.a.convertToEndOffset(l2.tokens, a3.length); + let c = new r.a(l2.tokens, a3).inflate(), d = 0; for (let e5 = 0, t4 = c.getCount(); e5 < t4; e5++) { - const t5 = c.getClassName(e5), o2 = c.getEndOffset(e5); - n2 += `<span class="${t5}">${i.u(a3.substring(d, o2))}</span>`, d = o2; + const t5 = c.getClassName(e5), r2 = c.getEndOffset(e5); + n2 += `<span class="${t5}">${i.u(a3.substring(d, r2))}</span>`, d = r2; } s2 = l2.endState; } return n2 += "</div>", n2; }(e2, t2 || s); } - function l(e2, t2, n2, i2, o2, r2, s2) { + function l(e2, t2, n2, i2, r2, o2, s2) { let a2 = "<div>", l2 = i2, c = 0; for (let d = 0, h = t2.getCount(); d < h; d++) { const h2 = t2.getEndOffset(d); if (h2 <= i2) continue; let u = ""; - for (; l2 < h2 && l2 < o2; l2++) { + for (; l2 < h2 && l2 < r2; l2++) { const t3 = e2.charCodeAt(l2); switch (t3) { case 9: - let e3 = r2 - (l2 + c) % r2; + let e3 = o2 - (l2 + c) % o2; for (c += e3 - 1; e3 > 0; ) u += s2 ? " " : " ", e3--; break; @@ -52946,7 +52946,7 @@ ${Object(zn.b)(wi)} u += String.fromCharCode(t3); } } - if (a2 += `<span style="${t2.getInlineStyle(d, n2)}">${u}</span>`, h2 > o2 || l2 >= o2) + if (a2 += `<span style="${t2.getInlineStyle(d, n2)}">${u}</span>`, h2 > r2 || l2 >= r2) break; } return a2 += "</div>", a2; @@ -52960,14 +52960,14 @@ ${Object(zn.b)(wi)} }), n.d(t, "c", function() { return L; }); - var i = n(6), o = n(2), r = n(11), s = n(13), a = n(26), l = n(30), c = n(12), d = n(146), h = n(152), u = n(54), p = n(20), m = n(25), g = n(19), f = n(102), b = n(150), _ = n(89), v = n(175), w = n(184), y = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var i = n(6), r = n(2), o = n(11), s = n(13), a = n(26), l = n(30), c = n(12), d = n(146), h = n(152), u = n(54), p = n(20), m = n(25), g = n(19), f = n(102), b = n(150), _ = n(89), v = n(175), w = n(184), y = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, C = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -52978,7 +52978,7 @@ ${Object(zn.b)(wi)} } class S { constructor(e2, t2, n2) { - this._modelEventListeners = new o.b(), this.model = e2, this._languageSelection = null, this._languageSelectionListener = null, this._modelEventListeners.add(e2.onWillDispose(() => t2(e2))), this._modelEventListeners.add(e2.onDidChangeLanguage((t3) => n2(e2, t3))); + this._modelEventListeners = new r.b(), this.model = e2, this._languageSelection = null, this._languageSelectionListener = null, this._modelEventListeners.add(e2.onWillDispose(() => t2(e2))), this._modelEventListeners.add(e2.onDidChangeLanguage((t3) => n2(e2, t3))); } _disposeLanguageSelection() { this._languageSelectionListener && (this._languageSelectionListener.dispose(), this._languageSelectionListener = null), this._languageSelection && (this._languageSelection.dispose(), this._languageSelection = null); @@ -52990,10 +52990,10 @@ ${Object(zn.b)(wi)} this._disposeLanguageSelection(), this._languageSelection = e2, this._languageSelectionListener = this._languageSelection.onDidChange(() => this.model.setMode(e2.languageIdentifier)), this.model.setMode(e2.languageIdentifier); } } - const k = r.d || r.f ? 1 : 2; - let E = class e2 extends o.a { - constructor(e3, t2, n2, o2, r2) { - super(), this._configurationService = e3, this._resourcePropertiesService = t2, this._themeService = n2, this._logService = o2, this._undoRedoService = r2, this._onModelAdded = this._register(new i.a()), this.onModelAdded = this._onModelAdded.event, this._onModelRemoved = this._register(new i.a()), this.onModelRemoved = this._onModelRemoved.event, this._onModelModeChanged = this._register(new i.a()), this.onModelModeChanged = this._onModelModeChanged.event, this._modelCreationOptionsByLanguageAndResource = Object.create(null), this._models = {}, this._disposedModels = new Map(), this._disposedModelsHeapSize = 0, this._semanticStyling = this._register(new I(this._themeService, this._logService)), this._register(this._configurationService.onDidChangeConfiguration(() => this._updateModelOptions())), this._updateModelOptions(), this._register(new N(this, this._themeService, this._configurationService, this._semanticStyling)); + const k = o.d || o.f ? 1 : 2; + let E = class e2 extends r.a { + constructor(e3, t2, n2, r2, o2) { + super(), this._configurationService = e3, this._resourcePropertiesService = t2, this._themeService = n2, this._logService = r2, this._undoRedoService = o2, this._onModelAdded = this._register(new i.a()), this.onModelAdded = this._onModelAdded.event, this._onModelRemoved = this._register(new i.a()), this.onModelRemoved = this._onModelRemoved.event, this._onModelModeChanged = this._register(new i.a()), this.onModelModeChanged = this._onModelModeChanged.event, this._modelCreationOptionsByLanguageAndResource = Object.create(null), this._models = {}, this._disposedModels = new Map(), this._disposedModelsHeapSize = 0, this._semanticStyling = this._register(new I(this._themeService, this._logService)), this._register(this._configurationService.onDidChangeConfiguration(() => this._updateModelOptions())), this._updateModelOptions(), this._register(new N(this, this._themeService, this._configurationService, this._semanticStyling)); } static _readModelOptions(e3, t2) { let n2 = a.d.tabSize; @@ -53006,39 +53006,39 @@ ${Object(zn.b)(wi)} const t3 = parseInt(e3.editor.indentSize, 10); isNaN(t3) || (i2 = t3), i2 < 1 && (i2 = 1); } - let o2 = a.d.insertSpaces; - e3.editor && e3.editor.insertSpaces !== void 0 && (o2 = e3.editor.insertSpaces !== "false" && Boolean(e3.editor.insertSpaces)); - let r2 = k; + let r2 = a.d.insertSpaces; + e3.editor && e3.editor.insertSpaces !== void 0 && (r2 = e3.editor.insertSpaces !== "false" && Boolean(e3.editor.insertSpaces)); + let o2 = k; const s2 = e3.eol; - s2 === "\r\n" ? r2 = 2 : s2 === "\n" && (r2 = 1); + s2 === "\r\n" ? o2 = 2 : s2 === "\n" && (o2 = 1); let l2 = a.d.trimAutoWhitespace; e3.editor && e3.editor.trimAutoWhitespace !== void 0 && (l2 = e3.editor.trimAutoWhitespace !== "false" && Boolean(e3.editor.trimAutoWhitespace)); let c2 = a.d.detectIndentation; e3.editor && e3.editor.detectIndentation !== void 0 && (c2 = e3.editor.detectIndentation !== "false" && Boolean(e3.editor.detectIndentation)); let d2 = a.d.largeFileOptimizations; - return e3.editor && e3.editor.largeFileOptimizations !== void 0 && (d2 = e3.editor.largeFileOptimizations !== "false" && Boolean(e3.editor.largeFileOptimizations)), {isForSimpleWidget: t2, tabSize: n2, indentSize: i2, insertSpaces: o2, detectIndentation: c2, defaultEOL: r2, trimAutoWhitespace: l2, largeFileOptimizations: d2}; + return e3.editor && e3.editor.largeFileOptimizations !== void 0 && (d2 = e3.editor.largeFileOptimizations !== "false" && Boolean(e3.editor.largeFileOptimizations)), {isForSimpleWidget: t2, tabSize: n2, indentSize: i2, insertSpaces: r2, detectIndentation: c2, defaultEOL: o2, trimAutoWhitespace: l2, largeFileOptimizations: d2}; } _getEOL(e3, t2) { if (e3) return this._resourcePropertiesService.getEOL(e3, t2); const n2 = this._configurationService.getValue("files.eol", {overrideIdentifier: t2}); - return n2 && n2 !== "auto" ? n2 : r.a === 3 || r.a === 2 ? "\n" : "\r\n"; + return n2 && n2 !== "auto" ? n2 : o.a === 3 || o.a === 2 ? "\n" : "\r\n"; } getCreationOptions(t2, n2, i2) { - let o2 = this._modelCreationOptionsByLanguageAndResource[t2 + n2]; - if (!o2) { - const r2 = this._configurationService.getValue("editor", {overrideIdentifier: t2, resource: n2}), s2 = this._getEOL(n2, t2); - o2 = e2._readModelOptions({editor: r2, eol: s2}, i2), this._modelCreationOptionsByLanguageAndResource[t2 + n2] = o2; + let r2 = this._modelCreationOptionsByLanguageAndResource[t2 + n2]; + if (!r2) { + const o2 = this._configurationService.getValue("editor", {overrideIdentifier: t2, resource: n2}), s2 = this._getEOL(n2, t2); + r2 = e2._readModelOptions({editor: o2, eol: s2}, i2), this._modelCreationOptionsByLanguageAndResource[t2 + n2] = r2; } - return o2; + return r2; } _updateModelOptions() { const t2 = this._modelCreationOptionsByLanguageAndResource; this._modelCreationOptionsByLanguageAndResource = Object.create(null); const n2 = Object.keys(this._models); - for (let i2 = 0, o2 = n2.length; i2 < o2; i2++) { - const o3 = n2[i2], r2 = this._models[o3], s2 = r2.model.getLanguageIdentifier().language, a2 = r2.model.uri, l2 = t2[s2 + a2], c2 = this.getCreationOptions(s2, a2, r2.model.isForSimpleWidget); - e2._setModelOptionsForModel(r2.model, c2, l2); + for (let i2 = 0, r2 = n2.length; i2 < r2; i2++) { + const r3 = n2[i2], o2 = this._models[r3], s2 = o2.model.getLanguageIdentifier().language, a2 = o2.model.uri, l2 = t2[s2 + a2], c2 = this.getCreationOptions(s2, a2, o2.model.isForSimpleWidget); + e2._setModelOptionsForModel(o2.model, c2, l2); } } static _setModelOptionsForModel(e3, t2, n2) { @@ -53049,7 +53049,7 @@ ${Object(zn.b)(wi)} return t2 && (this._disposedModelsHeapSize -= t2.heapSize), this._disposedModels.delete(x(e3)), t2; } _createModelData(e3, t2, n2, i2) { - const o2 = this.getCreationOptions(t2.language, n2, i2), r2 = new l.b(e3, o2, t2, n2, this._undoRedoService); + const r2 = this.getCreationOptions(t2.language, n2, i2), o2 = new l.b(e3, r2, t2, n2, this._undoRedoService); if (n2 && this._disposedModels.has(x(n2))) { const e4 = this._removeDisposedModel(n2), t3 = this._undoRedoService.getElements(n2), i3 = function(e5) { const t4 = new _.a(), n3 = e5.createSnapshot(); @@ -53057,25 +53057,25 @@ ${Object(zn.b)(wi)} for (; i4 = n3.read(); ) t4.update(i4); return t4.digest(); - }(r2) === e4.sha1; + }(o2) === e4.sha1; if (i3 || e4.sharesUndoRedoStack) { for (const e5 of t3.past) - Object(v.b)(e5) && e5.matchesResource(n2) && e5.setModel(r2); + Object(v.b)(e5) && e5.matchesResource(n2) && e5.setModel(o2); for (const e5 of t3.future) - Object(v.b)(e5) && e5.matchesResource(n2) && e5.setModel(r2); - this._undoRedoService.setElementsValidFlag(n2, true, (e5) => Object(v.b)(e5) && e5.matchesResource(n2)), i3 && (r2._overwriteVersionId(e4.versionId), r2._overwriteAlternativeVersionId(e4.alternativeVersionId), r2._overwriteInitialUndoRedoSnapshot(e4.initialUndoRedoSnapshot)); + Object(v.b)(e5) && e5.matchesResource(n2) && e5.setModel(o2); + this._undoRedoService.setElementsValidFlag(n2, true, (e5) => Object(v.b)(e5) && e5.matchesResource(n2)), i3 && (o2._overwriteVersionId(e4.versionId), o2._overwriteAlternativeVersionId(e4.alternativeVersionId), o2._overwriteInitialUndoRedoSnapshot(e4.initialUndoRedoSnapshot)); } else e4.initialUndoRedoSnapshot !== null && this._undoRedoService.restoreSnapshot(e4.initialUndoRedoSnapshot); } - const s2 = x(r2.uri); + const s2 = x(o2.uri); if (this._models[s2]) throw new Error("ModelService: Cannot add model because it already exists!"); - const a2 = new S(r2, (e4) => this._onWillDispose(e4), (e4, t3) => this._onDidChangeLanguage(e4, t3)); + const a2 = new S(o2, (e4) => this._onWillDispose(e4), (e4, t3) => this._onDidChangeLanguage(e4, t3)); return this._models[s2] = a2, a2; } createModel(e3, t2, n2, i2 = false) { - let o2; - return t2 ? (o2 = this._createModelData(e3, t2.languageIdentifier, n2, i2), this.setMode(o2.model, t2)) : o2 = this._createModelData(e3, d.b, n2, i2), this._onModelAdded.fire(o2.model), o2.model; + let r2; + return t2 ? (r2 = this._createModelData(e3, t2.languageIdentifier, n2, i2), this.setMode(r2.model, t2)) : r2 = this._createModelData(e3, d.b, n2, i2), this._onModelAdded.fire(r2.model), r2.model; } setMode(e3, t2) { if (!t2) @@ -53103,41 +53103,41 @@ ${Object(zn.b)(wi)} delete this._models[t2], n2.dispose(), delete this._modelCreationOptionsByLanguageAndResource[e3.getLanguageIdentifier().language + e3.uri], this._onModelRemoved.fire(e3); } _onDidChangeLanguage(t2, n2) { - const i2 = n2.oldLanguage, o2 = t2.getLanguageIdentifier().language, r2 = this.getCreationOptions(i2, t2.uri, t2.isForSimpleWidget), s2 = this.getCreationOptions(o2, t2.uri, t2.isForSimpleWidget); - e2._setModelOptionsForModel(t2, s2, r2), this._onModelModeChanged.fire({model: t2, oldModeId: i2}); + const i2 = n2.oldLanguage, r2 = t2.getLanguageIdentifier().language, o2 = this.getCreationOptions(i2, t2.uri, t2.isForSimpleWidget), s2 = this.getCreationOptions(r2, t2.uri, t2.isForSimpleWidget); + e2._setModelOptionsForModel(t2, s2, o2), this._onModelModeChanged.fire({model: t2, oldModeId: i2}); } }; E = y([C(0, u.a), C(1, h.b), C(2, g.c), C(3, f.b), C(4, b.a)], E); const T = "editor.semanticHighlighting"; function L(e2, t2, n2) { var i2; - const o2 = (i2 = n2.getValue(T, {overrideIdentifier: e2.getLanguageIdentifier().language, resource: e2.uri})) === null || i2 === void 0 ? void 0 : i2.enabled; - return typeof o2 == "boolean" ? o2 : t2.getColorTheme().semanticHighlighting; + const r2 = (i2 = n2.getValue(T, {overrideIdentifier: e2.getLanguageIdentifier().language, resource: e2.uri})) === null || i2 === void 0 ? void 0 : i2.enabled; + return typeof r2 == "boolean" ? r2 : t2.getColorTheme().semanticHighlighting; } - class N extends o.a { + class N extends r.a { constructor(e2, t2, n2, i2) { super(), this._watchers = Object.create(null), this._semanticStyling = i2; - const o2 = (e3) => { - this._watchers[e3.uri.toString()] = new D(e3, t2, this._semanticStyling); - }, r2 = (e3, t3) => { + const r2 = (e3) => { + this._watchers[e3.uri.toString()] = new O(e3, t2, this._semanticStyling); + }, o2 = (e3, t3) => { t3.dispose(), delete this._watchers[e3.uri.toString()]; }, s2 = () => { for (let i3 of e2.getModels()) { const e3 = this._watchers[i3.uri.toString()]; - L(i3, t2, n2) ? e3 || o2(i3) : e3 && r2(i3, e3); + L(i3, t2, n2) ? e3 || r2(i3) : e3 && o2(i3, e3); } }; this._register(e2.onModelAdded((e3) => { - L(e3, t2, n2) && o2(e3); + L(e3, t2, n2) && r2(e3); })), this._register(e2.onModelRemoved((e3) => { const t3 = this._watchers[e3.uri.toString()]; - t3 && r2(e3, t3); + t3 && o2(e3, t3); })), this._register(n2.onDidChangeConfiguration((e3) => { e3.affectsConfiguration(T) && s2(); })), this._register(t2.onDidColorThemeChange(s2)); } } - class I extends o.a { + class I extends r.a { constructor(e2, t2) { super(), this._themeService = e2, this._logService = t2, this._caches = new WeakMap(), this._register(this._themeService.onDidColorThemeChange(() => { this._caches = new WeakMap(); @@ -53147,7 +53147,7 @@ ${Object(zn.b)(wi)} return this._caches.has(e2) || this._caches.set(e2, new w.a(e2.getLegend(), this._themeService, this._logService)), this._caches.get(e2); } } - class O { + class D { constructor(e2, t2, n2) { this._provider = e2, this.resultId = t2, this.data = n2; } @@ -53155,13 +53155,13 @@ ${Object(zn.b)(wi)} this._provider.releaseDocumentSemanticTokens(this.resultId); } } - class D extends o.a { + class O extends r.a { constructor(e2, t2, n2) { super(), this._isDisposed = false, this._model = e2, this._semanticStyling = n2, this._fetchDocumentSemanticTokens = this._register(new p.d(() => this._fetchDocumentSemanticTokensNow(), 300)), this._currentDocumentResponse = null, this._currentDocumentRequestCancellationTokenSource = null, this._documentProvidersChangeListeners = [], this._register(this._model.onDidChangeContent(() => { this._fetchDocumentSemanticTokens.isScheduled() || this._fetchDocumentSemanticTokens.schedule(); })); const i2 = () => { - Object(o.f)(this._documentProvidersChangeListeners), this._documentProvidersChangeListeners = []; + Object(r.f)(this._documentProvidersChangeListeners), this._documentProvidersChangeListeners = []; for (const t3 of c.l.all(e2)) typeof t3.onDidChange == "function" && this._documentProvidersChangeListeners.push(t3.onDidChange(() => this._fetchDocumentSemanticTokens.schedule(0))); }; @@ -53183,9 +53183,9 @@ ${Object(zn.b)(wi)} this._currentDocumentRequestCancellationTokenSource = new m.b(); const t2 = [], n2 = this._model.onDidChangeContent((e3) => { t2.push(e3); - }), i2 = this._semanticStyling.get(e2), o2 = this._currentDocumentResponse && this._currentDocumentResponse.resultId || null; - Promise.resolve(e2.provideDocumentSemanticTokens(this._model, o2, this._currentDocumentRequestCancellationTokenSource.token)).then((o3) => { - this._currentDocumentRequestCancellationTokenSource = null, n2.dispose(), this._setDocumentSemanticTokens(e2, o3 || null, i2, t2); + }), i2 = this._semanticStyling.get(e2), r2 = this._currentDocumentResponse && this._currentDocumentResponse.resultId || null; + Promise.resolve(e2.provideDocumentSemanticTokens(this._model, r2, this._currentDocumentRequestCancellationTokenSource.token)).then((r3) => { + this._currentDocumentRequestCancellationTokenSource = null, n2.dispose(), this._setDocumentSemanticTokens(e2, r3 || null, i2, t2); }, (e3) => { e3 && typeof e3.message == "string" && e3.message.indexOf("busy") !== -1 || s.e(e3), this._currentDocumentRequestCancellationTokenSource = null, n2.dispose(), t2.length > 0 && (this._fetchDocumentSemanticTokens.isScheduled() || this._fetchDocumentSemanticTokens.schedule()); }); @@ -53196,45 +53196,45 @@ ${Object(zn.b)(wi)} static _isSemanticTokensEdits(e2) { return e2 && Array.isArray(e2.edits); } - static _copy(e2, t2, n2, i2, o2) { - for (let r2 = 0; r2 < o2; r2++) - n2[i2 + r2] = e2[t2 + r2]; + static _copy(e2, t2, n2, i2, r2) { + for (let o2 = 0; o2 < r2; o2++) + n2[i2 + o2] = e2[t2 + o2]; } _setDocumentSemanticTokens(e2, t2, n2, i2) { - const o2 = this._currentDocumentResponse; + const r2 = this._currentDocumentResponse; if (this._currentDocumentResponse && (this._currentDocumentResponse.dispose(), this._currentDocumentResponse = null), this._isDisposed) e2 && t2 && e2.releaseDocumentSemanticTokens(t2.resultId); else if (e2 && n2) if (t2) { - if (D._isSemanticTokensEdits(t2)) { - if (!o2) + if (O._isSemanticTokensEdits(t2)) { + if (!r2) return void this._model.setSemanticTokens(null, true); if (t2.edits.length === 0) - t2 = {resultId: t2.resultId, data: o2.data}; + t2 = {resultId: t2.resultId, data: r2.data}; else { let e3 = 0; for (const n4 of t2.edits) e3 += (n4.data ? n4.data.length : 0) - n4.deleteCount; - const n3 = o2.data, i3 = new Uint32Array(n3.length + e3); - let r2 = n3.length, s2 = i3.length; + const n3 = r2.data, i3 = new Uint32Array(n3.length + e3); + let o2 = n3.length, s2 = i3.length; for (let e4 = t2.edits.length - 1; e4 >= 0; e4--) { - const o3 = t2.edits[e4], a2 = r2 - (o3.start + o3.deleteCount); - a2 > 0 && (D._copy(n3, r2 - a2, i3, s2 - a2, a2), s2 -= a2), o3.data && (D._copy(o3.data, 0, i3, s2 - o3.data.length, o3.data.length), s2 -= o3.data.length), r2 = o3.start; + const r3 = t2.edits[e4], a2 = o2 - (r3.start + r3.deleteCount); + a2 > 0 && (O._copy(n3, o2 - a2, i3, s2 - a2, a2), s2 -= a2), r3.data && (O._copy(r3.data, 0, i3, s2 - r3.data.length, r3.data.length), s2 -= r3.data.length), o2 = r3.start; } - r2 > 0 && D._copy(n3, 0, i3, 0, r2), t2 = {resultId: t2.resultId, data: i3}; + o2 > 0 && O._copy(n3, 0, i3, 0, o2), t2 = {resultId: t2.resultId, data: i3}; } } - if (D._isSemanticTokens(t2)) { - this._currentDocumentResponse = new O(e2, t2.resultId, t2.data); - const o3 = Object(w.b)(t2, n2, this._model.getLanguageIdentifier()); + if (O._isSemanticTokens(t2)) { + this._currentDocumentResponse = new D(e2, t2.resultId, t2.data); + const r3 = Object(w.b)(t2, n2, this._model.getLanguageIdentifier()); if (i2.length > 0) { for (const e3 of i2) - for (const t3 of o3) + for (const t3 of r3) for (const n3 of e3.changes) t3.applyEdit(n3.range, n3.text); this._fetchDocumentSemanticTokens.isScheduled() || this._fetchDocumentSemanticTokens.schedule(); } - this._model.setSemanticTokens(o3, true); + this._model.setSemanticTokens(r3, true); } else this._model.setSemanticTokens(null, true); } else @@ -53254,25 +53254,25 @@ ${Object(zn.b)(wi)} }), n.d(t, "b", function() { return a; }); - var i = n(12), o = n(102), r = n(124); + var i = n(12), r = n(102), o = n(124); class s { constructor(e2, t2, n2) { this._legend = e2, this._themeService = t2, this._logService = n2, this._hashTable = new c(); } getMetadata(e2, t2, n2) { - const r2 = this._hashTable.get(e2, t2, n2.id); + const o2 = this._hashTable.get(e2, t2, n2.id); let s2; - if (r2) - s2 = r2.metadata, this._logService.getLevel() === o.c.Trace && this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e2} / ${t2}: foreground ${i.B.getForeground(s2)}, fontStyle ${i.B.getFontStyle(s2).toString(2)}`); + if (o2) + s2 = o2.metadata, this._logService.getLevel() === r.c.Trace && this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e2} / ${t2}: foreground ${i.B.getForeground(s2)}, fontStyle ${i.B.getFontStyle(s2).toString(2)}`); else { - let r3 = this._legend.tokenTypes[e2]; + let o3 = this._legend.tokenTypes[e2]; const a2 = []; - if (r3) { + if (o3) { let e3 = t2; for (let t3 = 0; e3 > 0 && t3 < this._legend.tokenModifiers.length; t3++) 1 & e3 && a2.push(this._legend.tokenModifiers[t3]), e3 >>= 1; - e3 > 0 && this._logService.getLevel() === o.c.Trace && (this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t2.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`), a2.push("not-in-legend")); - const i2 = this._themeService.getColorTheme().getTokenStyleMetadata(r3, a2, n2.language); + e3 > 0 && this._logService.getLevel() === r.c.Trace && (this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t2.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`), a2.push("not-in-legend")); + const i2 = this._themeService.getColorTheme().getTokenStyleMetadata(o3, a2, n2.language); if (i2 === void 0) s2 = 2147483647; else { @@ -53291,25 +53291,25 @@ ${Object(zn.b)(wi)} s2 === 0 && (s2 = 2147483647); } } else - this._logService.getLevel() === o.c.Trace && this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e2} for legend: ${JSON.stringify(this._legend.tokenTypes)}`), s2 = 2147483647, r3 = "not-in-legend"; - this._hashTable.add(e2, t2, n2.id, s2), this._logService.getLevel() === o.c.Trace && this._logService.trace(`SemanticTokensProviderStyling ${e2} (${r3}) / ${t2} (${a2.join(" ")}): foreground ${i.B.getForeground(s2)}, fontStyle ${i.B.getFontStyle(s2).toString(2)}`); + this._logService.getLevel() === r.c.Trace && this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e2} for legend: ${JSON.stringify(this._legend.tokenTypes)}`), s2 = 2147483647, o3 = "not-in-legend"; + this._hashTable.add(e2, t2, n2.id, s2), this._logService.getLevel() === r.c.Trace && this._logService.trace(`SemanticTokensProviderStyling ${e2} (${o3}) / ${t2} (${a2.join(" ")}): foreground ${i.B.getForeground(s2)}, fontStyle ${i.B.getFontStyle(s2).toString(2)}`); } return s2; } } function a(e2, t2, n2) { - const i2 = e2.data, o2 = e2.data.length / 5 | 0, s2 = Math.max(Math.ceil(o2 / 1024), 400), a2 = []; + const i2 = e2.data, r2 = e2.data.length / 5 | 0, s2 = Math.max(Math.ceil(r2 / 1024), 400), a2 = []; let l2 = 0, c2 = 1, d = 0; - for (; l2 < o2; ) { + for (; l2 < r2; ) { const e3 = l2; - let h = Math.min(e3 + s2, o2); - if (h < o2) { + let h = Math.min(e3 + s2, r2); + if (h < r2) { let t3 = h; for (; t3 - 1 > e3 && i2[5 * t3] === 0; ) t3--; if (t3 - 1 === e3) { let e4 = h; - for (; e4 + 1 < o2 && i2[5 * e4] === 0; ) + for (; e4 + 1 < r2 && i2[5 * e4] === 0; ) e4++; h = e4; } else @@ -53317,11 +53317,11 @@ ${Object(zn.b)(wi)} } let u = new Uint32Array(4 * (h - e3)), p = 0, m = 0; for (; l2 < h; ) { - const e4 = 5 * l2, o3 = i2[e4], r2 = i2[e4 + 1], s3 = c2 + o3, a3 = o3 === 0 ? d + r2 : r2, h2 = i2[e4 + 2], g2 = i2[e4 + 3], f = i2[e4 + 4], b = t2.getMetadata(g2, f, n2); + const e4 = 5 * l2, r3 = i2[e4], o2 = i2[e4 + 1], s3 = c2 + r3, a3 = r3 === 0 ? d + o2 : o2, h2 = i2[e4 + 2], g2 = i2[e4 + 3], f = i2[e4 + 4], b = t2.getMetadata(g2, f, n2); b !== 2147483647 && (m === 0 && (m = s3), u[p] = s3 - m, u[p + 1] = a3, u[p + 2] = a3 + h2, u[p + 3] = b, p += 4), c2 = s3, d = a3, l2++; } p !== u.length && (u = u.subarray(0, p)); - const g = new r.a(m, new r.c(u)); + const g = new o.a(m, new o.c(u)); a2.push(g); } return a2; @@ -53347,11 +53347,11 @@ ${Object(zn.b)(wi)} } get(e2, t2, n2) { const i2 = this._hashFunc(e2, t2, n2); - let o2 = this._elements[i2]; - for (; o2; ) { - if (o2.tokenTypeIndex === e2 && o2.tokenModifierSet === t2 && o2.languageId === n2) - return o2; - o2 = o2.next; + let r2 = this._elements[i2]; + for (; r2; ) { + if (r2.tokenTypeIndex === e2 && r2.tokenModifierSet === t2 && r2.languageId === n2) + return r2; + r2 = r2.next; } return null; } @@ -53381,8 +53381,8 @@ ${Object(zn.b)(wi)} return l; }); n(275); - var i = n(1), o = n(8), r = n(16), s = n(46); - const a = {badgeBackground: r.a.fromHex("#4D4D4D"), badgeForeground: r.a.fromHex("#FFFFFF")}; + var i = n(1), r = n(8), o = n(15), s = n(46); + const a = {badgeBackground: o.a.fromHex("#4D4D4D"), badgeForeground: o.a.fromHex("#FFFFFF")}; class l { constructor(e2, t2) { this.count = 0, this.options = t2 || Object.create(null), Object(s.g)(this.options, a, false), this.badgeBackground = this.options.badgeBackground, this.badgeForeground = this.options.badgeForeground, this.badgeBorder = this.options.badgeBorder, this.element = Object(i.p)(e2, Object(i.a)(".monaco-count-badge")), this.countFormat = this.options.countFormat || "{0}", this.titleFormat = this.options.titleFormat || "", this.setCount(this.options.count || 0); @@ -53394,7 +53394,7 @@ ${Object(zn.b)(wi)} this.titleFormat = e2, this.render(); } render() { - this.element.textContent = Object(o.x)(this.countFormat, this.count), this.element.title = Object(o.x)(this.titleFormat, this.count), this.applyStyles(); + this.element.textContent = Object(r.x)(this.countFormat, this.count), this.element.title = Object(r.x)(this.titleFormat, this.count), this.applyStyles(); } style(e2) { this.badgeBackground = e2.badgeBackground, this.badgeForeground = e2.badgeForeground, this.badgeBorder = e2.badgeBorder, this.applyStyles(); @@ -53407,17 +53407,17 @@ ${Object(zn.b)(wi)} } } }, function(e, t, n) { - var i = n(32), o = n(268); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(268); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return k; }); - var i = n(15), o = n(8), r = n(179), s = n(42), a = n(78), l = n(20); + var i = n(16), r = n(8), o = n(179), s = n(42), a = n(78), l = n(20); const c = /\//g; function d(e2) { switch (e2) { @@ -53433,12 +53433,12 @@ ${Object(zn.b)(wi)} if (!e2) return []; const n2 = []; - let i2 = false, o2 = false, r2 = ""; + let i2 = false, r2 = false, o2 = ""; for (const s2 of e2) { switch (s2) { case t2: - if (!i2 && !o2) { - n2.push(r2), r2 = ""; + if (!i2 && !r2) { + n2.push(o2), o2 = ""; continue; } break; @@ -53449,14 +53449,14 @@ ${Object(zn.b)(wi)} i2 = false; break; case "[": - o2 = true; + r2 = true; break; case "]": - o2 = false; + r2 = false; } - r2 += s2; + o2 += s2; } - return r2 && n2.push(r2), n2; + return o2 && n2.push(o2), n2; } const u = /^\*\*\/\*\.[\w\.-]+$/, p = /^\*\*\/([\w\.-]+)\/?$/, m = /^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/, g = /^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/, f = /^\*\*((\/[\w\.-]+)+)\/?$/, b = /^([\w\.-]+(\/[\w\.-]+)*)\/?$/, _ = new a.a(1e4), v = function() { return false; @@ -53468,8 +53468,8 @@ ${Object(zn.b)(wi)} return w; let n2; n2 = typeof e2 != "string" ? e2.pattern : e2, n2 = n2.trim(); - const r2 = `${n2}_${!!t2.trimForExclusions}`; - let s2, a2 = _.get(r2); + const o2 = `${n2}_${!!t2.trimForExclusions}`; + let s2, a2 = _.get(o2); if (a2) return C(a2, e2); if (u.test(n2)) { @@ -53479,26 +53479,26 @@ ${Object(zn.b)(wi)} }; } else a2 = (s2 = p.exec(x(n2, t2))) ? function(e3, t3) { - const n3 = "/" + e3, i2 = "\\" + e3, o2 = function(o3, r4) { - return typeof o3 != "string" ? null : r4 ? r4 === e3 ? t3 : null : o3 === e3 || o3.endsWith(n3) || o3.endsWith(i2) ? t3 : null; - }, r3 = [e3]; - return o2.basenames = r3, o2.patterns = [t3], o2.allBasenames = r3, o2; + const n3 = "/" + e3, i2 = "\\" + e3, r2 = function(r3, o4) { + return typeof r3 != "string" ? null : o4 ? o4 === e3 ? t3 : null : r3 === e3 || r3.endsWith(n3) || r3.endsWith(i2) ? t3 : null; + }, o3 = [e3]; + return r2.basenames = o3, r2.patterns = [t3], r2.allBasenames = o3, r2; }(s2[1], n2) : (t2.trimForExclusions ? g : m).test(n2) ? function(e3, t3) { - const n3 = E(e3.slice(1, -1).split(",").map((e4) => y(e4, t3)).filter((e4) => e4 !== w), e3), o2 = n3.length; - if (!o2) + const n3 = E(e3.slice(1, -1).split(",").map((e4) => y(e4, t3)).filter((e4) => e4 !== w), e3), r2 = n3.length; + if (!r2) return w; - if (o2 === 1) + if (r2 === 1) return n3[0]; - const r3 = function(t4, i2) { - for (let o3 = 0, r4 = n3.length; o3 < r4; o3++) - if (n3[o3](t4, i2)) + const o3 = function(t4, i2) { + for (let r3 = 0, o4 = n3.length; r3 < o4; r3++) + if (n3[r3](t4, i2)) return e3; return null; }, s3 = i.i(n3, (e4) => !!e4.allBasenames); - s3 && (r3.allBasenames = s3.allBasenames); + s3 && (o3.allBasenames = s3.allBasenames); const a3 = n3.reduce((e4, t4) => t4.allPaths ? e4.concat(t4.allPaths) : e4, []); - a3.length && (r3.allPaths = a3); - return r3; + a3.length && (o3.allPaths = a3); + return o3; }(n2, t2) : (s2 = f.exec(x(n2, t2))) ? S(s2[1].substr(1), n2, true) : (s2 = b.exec(x(n2, t2))) ? S(s2[1], n2, false) : function(e3) { try { const t3 = new RegExp(`^${function e4(t4) { @@ -53510,11 +53510,11 @@ ${Object(zn.b)(wi)} n3 = ".*"; else { let t5 = false; - i2.forEach((r3, s3) => { - if (r3 === "**") + i2.forEach((o3, s3) => { + if (o3 === "**") return void (t5 || (n3 += d(2), t5 = true)); let a3 = false, l2 = "", c2 = false, u2 = ""; - for (const t6 of r3) + for (const t6 of o3) if (t6 !== "}" && a3) l2 += t6; else if (!c2 || t6 === "]" && u2) @@ -53539,11 +53539,11 @@ ${Object(zn.b)(wi)} n3 += d(1); continue; default: - n3 += o.v(t6); + n3 += r.v(t6); } else { let e5; - e5 = t6 === "-" ? t6 : t6 !== "^" && t6 !== "!" || u2 ? t6 === "/" ? "" : o.v(t6) : "^", u2 += e5; + e5 = t6 === "-" ? t6 : t6 !== "^" && t6 !== "!" || u2 ? t6 === "/" ? "" : r.v(t6) : "^", u2 += e5; } s3 < i2.length - 1 && (i2[s3 + 1] !== "**" || s3 + 2 < i2.length) && (n3 += "[/\\\\]"), t5 = false; }); @@ -53557,23 +53557,23 @@ ${Object(zn.b)(wi)} return w; } }(n2); - return _.set(r2, a2), C(a2, e2); + return _.set(o2, a2), C(a2, e2); } function C(e2, t2) { return typeof t2 == "string" ? e2 : function(n2, i2) { - return r.a(n2, t2.base) ? e2(s.f(t2.base, n2), i2) : null; + return o.a(n2, t2.base) ? e2(s.f(t2.base, n2), i2) : null; }; } function x(e2, t2) { return t2.trimForExclusions && e2.endsWith("/**") ? e2.substr(0, e2.length - 2) : e2; } function S(e2, t2, n2) { - const i2 = s.h !== s.e.sep ? e2.replace(c, s.h) : e2, o2 = s.h + i2, r2 = n2 ? function(e3, n3) { - return typeof e3 != "string" || e3 !== i2 && !e3.endsWith(o2) ? null : t2; + const i2 = s.h !== s.e.sep ? e2.replace(c, s.h) : e2, r2 = s.h + i2, o2 = n2 ? function(e3, n3) { + return typeof e3 != "string" || e3 !== i2 && !e3.endsWith(r2) ? null : t2; } : function(e3, n3) { return typeof e3 == "string" && e3 === i2 ? t2 : null; }; - return r2.allPaths = [(n2 ? "*/" : "./") + e2], r2; + return o2.allPaths = [(n2 ? "*/" : "./") + e2], o2; } function k(e2, t2, n2) { return !(!e2 || typeof t2 != "string") && function(e3, t3 = {}) { @@ -53603,49 +53603,49 @@ ${Object(zn.b)(wi)} if (t5) { const n6 = t5.when; if (typeof n6 == "string") { - const t6 = (t7, o3, r3, s2) => { - if (!s2 || !i2(t7, o3)) + const t6 = (t7, r3, o3, s2) => { + if (!s2 || !i2(t7, r3)) return null; - const a3 = s2(n6.replace("$(basename)", r3)); + const a3 = s2(n6.replace("$(basename)", o3)); return Object(l.i)(a3) ? a3.then((t8) => t8 ? e5 : null) : a3 ? e5 : null; }; return t6.requiresSiblings = true, t6; } } return i2; - }(n4, e4[n4], t4)).filter((e5) => e5 !== w)), o2 = n3.length; - if (!o2) + }(n4, e4[n4], t4)).filter((e5) => e5 !== w)), r2 = n3.length; + if (!r2) return w; if (!n3.some((e5) => !!e5.requiresSiblings)) { - if (o2 === 1) + if (r2 === 1) return n3[0]; const e5 = function(e6, t6) { - for (let i2 = 0, o3 = n3.length; i2 < o3; i2++) { - const o4 = n3[i2](e6, t6); - if (o4) - return o4; + for (let i2 = 0, r3 = n3.length; i2 < r3; i2++) { + const r4 = n3[i2](e6, t6); + if (r4) + return r4; } return null; }, t5 = i.i(n3, (e6) => !!e6.allBasenames); t5 && (e5.allBasenames = t5.allBasenames); - const r3 = n3.reduce((e6, t6) => t6.allPaths ? e6.concat(t6.allPaths) : e6, []); - return r3.length && (e5.allPaths = r3), e5; - } - const r2 = function(e5, t5, i2) { - let o3 = void 0; - for (let r3 = 0, a3 = n3.length; r3 < a3; r3++) { - const a4 = n3[r3]; - a4.requiresSiblings && i2 && (t5 || (t5 = s.a(e5)), o3 || (o3 = t5.substr(0, t5.length - s.c(e5).length))); - const l2 = a4(e5, t5, o3, i2); + const o3 = n3.reduce((e6, t6) => t6.allPaths ? e6.concat(t6.allPaths) : e6, []); + return o3.length && (e5.allPaths = o3), e5; + } + const o2 = function(e5, t5, i2) { + let r3 = void 0; + for (let o3 = 0, a3 = n3.length; o3 < a3; o3++) { + const a4 = n3[o3]; + a4.requiresSiblings && i2 && (t5 || (t5 = s.a(e5)), r3 || (r3 = t5.substr(0, t5.length - s.c(e5).length))); + const l2 = a4(e5, t5, r3, i2); if (l2) return l2; } return null; }, a2 = i.i(n3, (e5) => !!e5.allBasenames); - a2 && (r2.allBasenames = a2.allBasenames); + a2 && (o2.allBasenames = a2.allBasenames); const c2 = n3.reduce((e5, t5) => t5.allPaths ? e5.concat(t5.allPaths) : e5, []); - c2.length && (r2.allPaths = c2); - return r2; + c2.length && (o2.allPaths = c2); + return o2; }(e3, t3); }(e2)(t2, void 0, n2); } @@ -53657,17 +53657,17 @@ ${Object(zn.b)(wi)} const n3 = t3.basenames; return n3 ? e3.concat(n3) : e3; }, []); - let o2; + let r2; if (t2) { - o2 = []; + r2 = []; for (let e3 = 0, n3 = i2.length; e3 < n3; e3++) - o2.push(t2); + r2.push(t2); } else - o2 = n2.reduce((e3, t3) => { + r2 = n2.reduce((e3, t3) => { const n3 = t3.patterns; return n3 ? e3.concat(n3) : e3; }, []); - const r2 = function(e3, t3) { + const o2 = function(e3, t3) { if (typeof e3 != "string") return null; if (!t3) { @@ -53680,22 +53680,22 @@ ${Object(zn.b)(wi)} t3 = e3.substr(n4); } const n3 = i2.indexOf(t3); - return n3 !== -1 ? o2[n3] : null; + return n3 !== -1 ? r2[n3] : null; }; - r2.basenames = i2, r2.patterns = o2, r2.allBasenames = i2; + o2.basenames = i2, o2.patterns = r2, o2.allBasenames = i2; const s2 = e2.filter((e3) => !e3.basenames); - return s2.push(r2), s2; + return s2.push(o2), s2; } }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return r; + return o; }); - var i = n(56), o = n(6); - const r = {JSONContribution: "base.contributions.json"}; + var i = n(56), r = n(6); + const o = {JSONContribution: "base.contributions.json"}; const s = new class { constructor() { - this._onDidChangeSchema = new o.a(), this.schemasById = {}; + this._onDidChangeSchema = new r.a(), this.schemasById = {}; } registerSchema(e2, t2) { var n2; @@ -53705,16 +53705,16 @@ ${Object(zn.b)(wi)} this._onDidChangeSchema.fire(e2); } }(); - i.a.add(r.JSONContribution, s); + i.a.add(o.JSONContribution, s); }, function(e, t, n) { "use strict"; n.d(t, "b", function() { - return o; - }), n.d(t, "a", function() { return r; + }), n.d(t, "a", function() { + return o; }); const i = Object.prototype.hasOwnProperty; - function o(e2, t2) { + function r(e2, t2) { for (let n2 in e2) if (i.call(e2, n2)) { if (t2({key: n2, value: e2[n2]}, function() { @@ -53723,7 +53723,7 @@ ${Object(zn.b)(wi)} return; } } - class r { + class o { constructor() { this.map = new Map(); } @@ -53743,10 +53743,10 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(2); - class o extends i.a { + class r extends i.a { constructor(e2, t2, n2) { super(), this.referenceDomElement = e2, this.changeCallback = n2, this.width = -1, this.height = -1, this.resizeObserver = null, this.measureReferenceDomElementToken = -1, this.measureReferenceDomElement(false, t2); } @@ -53781,8 +53781,8 @@ ${Object(zn.b)(wi)} return i; }); class i { - constructor(e2, t2, n2, i2, o, r) { - this.id = e2, this.label = t2, this.alias = n2, this._precondition = i2, this._run = o, this._contextKeyService = r; + constructor(e2, t2, n2, i2, r, o) { + this.id = e2, this.label = t2, this.alias = n2, this._precondition = i2, this._run = r, this._contextKeyService = o; } isSupported() { return this._contextKeyService.contextMatchesRules(this._precondition); @@ -53794,20 +53794,20 @@ ${Object(zn.b)(wi)} }, function(e, t, n) { "use strict"; n.d(t, "a", function() { - return o; + return r; }); var i = n(18); - const o = Object(i.c)("markerDecorationsService"); + const r = Object(i.c)("markerDecorationsService"); }, function(e, t, n) { "use strict"; n.d(t, "a", function() { return c; }); - var i = n(174), o = n(6), r = n(2), s = n(46), a = n(3); + var i = n(174), r = n(6), o = n(2), s = n(46), a = n(3); const l = {followsCaret: true, ignoreCharChanges: true, alwaysRevealFirst: true}; - class c extends r.a { + class c extends o.a { constructor(e2, t2 = {}) { - super(), this._onDidUpdate = this._register(new o.a()), this._editor = e2, this._options = s.g(t2, l, false), this.disposed = false, this.nextIdx = -1, this.ranges = [], this.ignoreSelectionChange = false, this.revealFirst = Boolean(this._options.alwaysRevealFirst), this._register(this._editor.onDidDispose(() => this.dispose())), this._register(this._editor.onDidUpdateDiff(() => this._onDiffUpdated())), this._options.followsCaret && this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition((e3) => { + super(), this._onDidUpdate = this._register(new r.a()), this._editor = e2, this._options = s.g(t2, l, false), this.disposed = false, this.nextIdx = -1, this.ranges = [], this.ignoreSelectionChange = false, this.revealFirst = Boolean(this._options.alwaysRevealFirst), this._register(this._editor.onDidDispose(() => this.dispose())), this._register(this._editor.onDidUpdateDiff(() => this._onDiffUpdated())), this._options.followsCaret && this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition((e3) => { this.ignoreSelectionChange || (this.nextIdx = -1); })), this._options.alwaysRevealFirst && this._register(this._editor.getModifiedEditor().onDidChangeModel((e3) => { this.revealFirst = true; @@ -53829,9 +53829,9 @@ ${Object(zn.b)(wi)} _initIdx(e2) { let t2 = false, n2 = this._editor.getPosition(); if (n2) { - for (let i2 = 0, o2 = this.ranges.length; i2 < o2 && !t2; i2++) { - let o3 = this.ranges[i2].range; - n2.isBeforeOrEqual(o3.getStartPosition()) && (this.nextIdx = i2 + (e2 ? 0 : -1), t2 = true); + for (let i2 = 0, r2 = this.ranges.length; i2 < r2 && !t2; i2++) { + let r3 = this.ranges[i2].range; + n2.isBeforeOrEqual(r3.getStartPosition()) && (this.nextIdx = i2 + (e2 ? 0 : -1), t2 = true); } t2 || (this.nextIdx = e2 ? 0 : this.ranges.length - 1), this.nextIdx < 0 && (this.nextIdx = this.ranges.length - 1); } else @@ -53869,7 +53869,7 @@ ${Object(zn.b)(wi)} return le; }); n(244); - var i = n(0), o = n(1), r = n(35), s = n(153), a = n(20), l = n(6), c = n(2), d = n(46), h = n(87), u = n(88), p = n(41), m = n(164), g = (n(248), n(116)), f = n(105), b = n(60), _ = n(4), v = n(26), w = n(111), y = n(9), C = n(57), x = n(91), S = n(74), k = n(10), E = n(5), T = n(19), L = n(17); + var i = n(0), r = n(1), o = n(35), s = n(153), a = n(20), l = n(6), c = n(2), d = n(46), h = n(87), u = n(88), p = n(41), m = n(164), g = (n(248), n(116)), f = n(105), b = n(60), _ = n(4), v = n(26), w = n(111), y = n(9), C = n(57), x = n(91), S = n(74), k = n(10), E = n(5), T = n(19), L = n(17); class N { constructor(e2, t2, n2, i2) { this.originalLineStart = e2, this.originalLineEnd = t2, this.modifiedLineStart = n2, this.modifiedLineEnd = i2; @@ -53883,18 +53883,18 @@ ${Object(zn.b)(wi)} this.entries = e2; } } - const O = Object(L.e)("diff-review-insert", L.a.add), D = Object(L.e)("diff-review-remove", L.a.remove), A = Object(L.e)("diff-review-close", L.a.close); + const D = Object(L.e)("diff-review-insert", L.a.add), O = Object(L.e)("diff-review-remove", L.a.remove), A = Object(L.e)("diff-review-close", L.a.close); class R extends c.a { constructor(e2) { - super(), this._width = 0, this._diffEditor = e2, this._isVisible = false, this.shadow = Object(r.b)(document.createElement("div")), this.shadow.setClassName("diff-review-shadow"), this.actionBarContainer = Object(r.b)(document.createElement("div")), this.actionBarContainer.setClassName("diff-review-actions"), this._actionBar = this._register(new g.a(this.actionBarContainer.domNode)), this._actionBar.push(new b.a("diffreview.close", i.a("label.close", "Close"), "close-diff-review " + A.classNames, true, () => (this.hide(), Promise.resolve(null))), {label: false, icon: true}), this.domNode = Object(r.b)(document.createElement("div")), this.domNode.setClassName("diff-review monaco-editor-background"), this._content = Object(r.b)(document.createElement("div")), this._content.setClassName("diff-review-content"), this._content.setAttribute("role", "code"), this.scrollbar = this._register(new f.a(this._content.domNode, {})), this.domNode.domNode.appendChild(this.scrollbar.getDomNode()), this._register(e2.onDidUpdateDiff(() => { + super(), this._width = 0, this._diffEditor = e2, this._isVisible = false, this.shadow = Object(o.b)(document.createElement("div")), this.shadow.setClassName("diff-review-shadow"), this.actionBarContainer = Object(o.b)(document.createElement("div")), this.actionBarContainer.setClassName("diff-review-actions"), this._actionBar = this._register(new g.a(this.actionBarContainer.domNode)), this._actionBar.push(new b.a("diffreview.close", i.a("label.close", "Close"), "close-diff-review " + A.classNames, true, () => (this.hide(), Promise.resolve(null))), {label: false, icon: true}), this.domNode = Object(o.b)(document.createElement("div")), this.domNode.setClassName("diff-review monaco-editor-background"), this._content = Object(o.b)(document.createElement("div")), this._content.setClassName("diff-review-content"), this._content.setAttribute("role", "code"), this.scrollbar = this._register(new f.a(this._content.domNode, {})), this.domNode.domNode.appendChild(this.scrollbar.getDomNode()), this._register(e2.onDidUpdateDiff(() => { this._isVisible && (this._diffs = this._compute(), this._render()); })), this._register(e2.getModifiedEditor().onDidChangeCursorPosition(() => { this._isVisible && this._render(); - })), this._register(o.n(this.domNode.domNode, "click", (e3) => { + })), this._register(r.n(this.domNode.domNode, "click", (e3) => { e3.preventDefault(); - let t2 = o.w(e3.target, "diff-review-row"); + let t2 = r.w(e3.target, "diff-review-row"); t2 && this._goToRow(t2); - })), this._register(o.n(this.domNode.domNode, "keydown", (e3) => { + })), this._register(r.n(this.domNode.domNode, "keydown", (e3) => { (e3.equals(18) || e3.equals(2066) || e3.equals(530)) && (e3.preventDefault(), this._goToRow(this._getNextRow())), (e3.equals(16) || e3.equals(2064) || e3.equals(528)) && (e3.preventDefault(), this._goToRow(this._getPrevRow())), (e3.equals(9) || e3.equals(2057) || e3.equals(521) || e3.equals(1033)) && (e3.preventDefault(), this.hide()), (e3.equals(10) || e3.equals(3)) && (e3.preventDefault(), this.accept()); })), this._diffs = [], this._currentDiff = null; } @@ -53980,37 +53980,37 @@ ${Object(zn.b)(wi)} static _mergeAdjacent(e2, t2, n2) { if (!e2 || e2.length === 0) return []; - let i2 = [], o2 = 0; - for (let r3 = 0, s3 = e2.length; r3 < s3; r3++) { - const a3 = e2[r3], l2 = a3.originalStartLineNumber, c2 = a3.originalEndLineNumber, d2 = a3.modifiedStartLineNumber, h2 = a3.modifiedEndLineNumber; + let i2 = [], r2 = 0; + for (let o3 = 0, s3 = e2.length; o3 < s3; o3++) { + const a3 = e2[o3], l2 = a3.originalStartLineNumber, c2 = a3.originalEndLineNumber, d2 = a3.modifiedStartLineNumber, h2 = a3.modifiedEndLineNumber; let u2 = [], p2 = 0; { const t3 = c2 === 0 ? l2 : l2 - 1, n3 = h2 === 0 ? d2 : d2 - 1; - let i3 = 1, o3 = 1; - if (r3 > 0) { - const t4 = e2[r3 - 1]; - i3 = t4.originalEndLineNumber === 0 ? t4.originalStartLineNumber + 1 : t4.originalEndLineNumber + 1, o3 = t4.modifiedEndLineNumber === 0 ? t4.modifiedStartLineNumber + 1 : t4.modifiedEndLineNumber + 1; + let i3 = 1, r3 = 1; + if (o3 > 0) { + const t4 = e2[o3 - 1]; + i3 = t4.originalEndLineNumber === 0 ? t4.originalStartLineNumber + 1 : t4.originalEndLineNumber + 1, r3 = t4.modifiedEndLineNumber === 0 ? t4.modifiedStartLineNumber + 1 : t4.modifiedEndLineNumber + 1; } let s4 = t3 - 3 + 1, a4 = n3 - 3 + 1; if (s4 < i3) { const e3 = i3 - s4; s4 += e3, a4 += e3; } - if (a4 < o3) { - const e3 = o3 - a4; + if (a4 < r3) { + const e3 = r3 - a4; s4 += e3, a4 += e3; } u2[p2++] = new N(s4, t3, a4, n3); } c2 !== 0 && (u2[p2++] = new N(l2, c2, 0, 0)), h2 !== 0 && (u2[p2++] = new N(0, 0, d2, h2)); { - const i3 = c2 === 0 ? l2 + 1 : c2 + 1, o3 = h2 === 0 ? d2 + 1 : h2 + 1; + const i3 = c2 === 0 ? l2 + 1 : c2 + 1, r3 = h2 === 0 ? d2 + 1 : h2 + 1; let a4 = t2, m2 = n2; - if (r3 + 1 < s3) { - const t3 = e2[r3 + 1]; + if (o3 + 1 < s3) { + const t3 = e2[o3 + 1]; a4 = t3.originalEndLineNumber === 0 ? t3.originalStartLineNumber : t3.originalStartLineNumber - 1, m2 = t3.modifiedEndLineNumber === 0 ? t3.modifiedStartLineNumber : t3.modifiedStartLineNumber - 1; } - let g2 = i3 + 3 - 1, f2 = o3 + 3 - 1; + let g2 = i3 + 3 - 1, f2 = r3 + 3 - 1; if (g2 > a4) { const e3 = a4 - g2; g2 += e3, f2 += e3; @@ -54019,16 +54019,16 @@ ${Object(zn.b)(wi)} const e3 = m2 - f2; g2 += e3, f2 += e3; } - u2[p2++] = new N(i3, g2, o3, f2); + u2[p2++] = new N(i3, g2, r3, f2); } - i2[o2++] = new I(u2); + i2[r2++] = new I(u2); } - let r2 = i2[0].entries, s2 = [], a2 = 0; + let o2 = i2[0].entries, s2 = [], a2 = 0; for (let e3 = 1, t3 = i2.length; e3 < t3; e3++) { - const t4 = i2[e3].entries, n3 = r2[r2.length - 1], o3 = t4[0]; - n3.getType() === 0 && o3.getType() === 0 && o3.originalLineStart <= n3.originalLineEnd ? (r2[r2.length - 1] = new N(n3.originalLineStart, o3.originalLineEnd, n3.modifiedLineStart, o3.modifiedLineEnd), r2 = r2.concat(t4.slice(1))) : (s2[a2++] = new I(r2), r2 = t4); + const t4 = i2[e3].entries, n3 = o2[o2.length - 1], r3 = t4[0]; + n3.getType() === 0 && r3.getType() === 0 && r3.originalLineStart <= n3.originalLineEnd ? (o2[o2.length - 1] = new N(n3.originalLineStart, r3.originalLineEnd, n3.modifiedLineStart, r3.modifiedLineEnd), o2 = o2.concat(t4.slice(1))) : (s2[a2++] = new I(o2), o2 = t4); } - return s2[a2++] = new I(r2), s2; + return s2[a2++] = new I(o2), s2; } _findDiffIndex(e2) { const t2 = e2.lineNumber; @@ -54040,9 +54040,9 @@ ${Object(zn.b)(wi)} return 0; } _render() { - const e2 = this._diffEditor.getOriginalEditor().getOptions(), t2 = this._diffEditor.getModifiedEditor().getOptions(), n2 = this._diffEditor.getOriginalEditor().getModel(), r2 = this._diffEditor.getModifiedEditor().getModel(), s2 = n2.getOptions(), a2 = r2.getOptions(); - if (!this._isVisible || !n2 || !r2) - return o.s(this._content.domNode), this._currentDiff = null, void this.scrollbar.scanDomNode(); + const e2 = this._diffEditor.getOriginalEditor().getOptions(), t2 = this._diffEditor.getModifiedEditor().getOptions(), n2 = this._diffEditor.getOriginalEditor().getModel(), o2 = this._diffEditor.getModifiedEditor().getModel(), s2 = n2.getOptions(), a2 = o2.getOptions(); + if (!this._isVisible || !n2 || !o2) + return r.s(this._content.domNode), this._currentDiff = null, void this.scrollbar.scanDomNode(); this._diffEditor.updateOptions({readOnly: true}); const l2 = this._findDiffIndex(this._diffEditor.getPosition()); if (this._diffs[l2] === this._currentDiff) @@ -54053,8 +54053,8 @@ ${Object(zn.b)(wi)} d2.className = "diff-review-table", d2.setAttribute("role", "list"), d2.setAttribute("aria-label", 'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'), h.a.applyFontInfoSlow(d2, t2.get(36)); let u2 = 0, p2 = 0, m2 = 0, g2 = 0; for (let e3 = 0, t3 = c2.length; e3 < t3; e3++) { - const t4 = c2[e3], n3 = t4.originalLineStart, i2 = t4.originalLineEnd, o2 = t4.modifiedLineStart, r3 = t4.modifiedLineEnd; - n3 !== 0 && (u2 === 0 || n3 < u2) && (u2 = n3), i2 !== 0 && (p2 === 0 || i2 > p2) && (p2 = i2), o2 !== 0 && (m2 === 0 || o2 < m2) && (m2 = o2), r3 !== 0 && (g2 === 0 || r3 > g2) && (g2 = r3); + const t4 = c2[e3], n3 = t4.originalLineStart, i2 = t4.originalLineEnd, r2 = t4.modifiedLineStart, o3 = t4.modifiedLineEnd; + n3 !== 0 && (u2 === 0 || n3 < u2) && (u2 = n3), i2 !== 0 && (p2 === 0 || i2 > p2) && (p2 = i2), r2 !== 0 && (m2 === 0 || r2 < m2) && (m2 = r2), o3 !== 0 && (g2 === 0 || o3 > g2) && (g2 = o3); } let f2 = document.createElement("div"); f2.className = "diff-review-row"; @@ -54066,29 +54066,29 @@ ${Object(zn.b)(wi)} f2.setAttribute("aria-label", i.a({key: "header", comment: ["This is the ARIA label for a git diff header.", "A git diff header looks like this: @@ -154,12 +159,39 @@.", "That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.", "Variables 0 and 1 refer to the diff index out of total number of diffs.", "Variables 2 and 4 will be numbers (a line number).", 'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']}, "Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}", l2 + 1, this._diffs.length, u2, y2, m2, C2)), f2.appendChild(b2), f2.setAttribute("role", "listitem"), d2.appendChild(f2); const x2 = t2.get(51); let S2 = m2; - for (let i2 = 0, o2 = c2.length; i2 < o2; i2++) { - const o3 = c2[i2]; - R._renderSection(d2, o3, S2, x2, this._width, e2, n2, s2, t2, r2, a2), o3.modifiedLineStart !== 0 && (S2 = o3.modifiedLineEnd); + for (let i2 = 0, r2 = c2.length; i2 < r2; i2++) { + const r3 = c2[i2]; + R._renderSection(d2, r3, S2, x2, this._width, e2, n2, s2, t2, o2, a2), r3.modifiedLineStart !== 0 && (S2 = r3.modifiedLineEnd); } - o.s(this._content.domNode), this._content.domNode.appendChild(d2), this.scrollbar.scanDomNode(); + r.s(this._content.domNode), this._content.domNode.appendChild(d2), this.scrollbar.scanDomNode(); } - static _renderSection(e2, t2, n2, o2, r2, s2, a2, l2, c2, d2, h2) { + static _renderSection(e2, t2, n2, r2, o2, s2, a2, l2, c2, d2, h2) { const u2 = t2.getType(); let p2 = "diff-review-row", m2 = ""; let g2 = null; switch (u2) { case 1: - p2 = "diff-review-row line-insert", m2 = " char-insert", g2 = O; + p2 = "diff-review-row line-insert", m2 = " char-insert", g2 = D; break; case 2: - p2 = "diff-review-row line-delete", m2 = " char-delete", g2 = D; + p2 = "diff-review-row line-delete", m2 = " char-delete", g2 = O; } const f2 = t2.originalLineStart, b2 = t2.originalLineEnd, _2 = t2.modifiedLineStart, v2 = t2.modifiedLineEnd, w2 = Math.max(v2 - _2, b2 - f2), y2 = s2.get(117), C2 = y2.glyphMarginWidth + y2.lineNumbersWidth, x2 = c2.get(117), S2 = 10 + x2.glyphMarginWidth + x2.lineNumbersWidth; for (let t3 = 0; t3 <= w2; t3++) { const b3 = f2 === 0 ? 0 : f2 + t3, v3 = _2 === 0 ? 0 : _2 + t3, w3 = document.createElement("div"); - w3.style.minWidth = r2 + "px", w3.className = p2, w3.setAttribute("role", "listitem"), v3 !== 0 && (n2 = v3), w3.setAttribute("data-line", String(n2)); + w3.style.minWidth = o2 + "px", w3.className = p2, w3.setAttribute("role", "listitem"), v3 !== 0 && (n2 = v3), w3.setAttribute("data-line", String(n2)); let y3 = document.createElement("div"); - y3.className = "diff-review-cell", y3.style.height = o2 + "px", w3.appendChild(y3); + y3.className = "diff-review-cell", y3.style.height = r2 + "px", w3.appendChild(y3); const x3 = document.createElement("span"); x3.style.width = C2 + "px", x3.style.minWidth = C2 + "px", x3.className = "diff-review-line-number" + m2, b3 !== 0 ? x3.appendChild(document.createTextNode(String(b3))) : x3.innerText = "\xA0", y3.appendChild(x3); const k2 = document.createElement("span"); @@ -54116,10 +54116,10 @@ ${Object(zn.b)(wi)} } } static _renderLine(e2, t2, n2, i2) { - const o2 = e2.getLineContent(i2), r2 = t2.get(36), s2 = new Uint32Array(2); - s2[0] = o2.length, s2[1] = 16793600; - const a2 = new w.a(s2, o2), l2 = S.d.isBasicASCII(o2, e2.mightContainNonBasicASCII()), c2 = S.d.containsRTL(o2, l2, e2.mightContainRTL()); - return Object(x.e)(new x.c(r2.isMonospace && !t2.get(24), r2.canUseHalfwidthRightwardsArrow, o2, false, l2, c2, 0, a2, [], n2, 0, r2.spaceWidth, r2.middotWidth, r2.wsmiddotWidth, t2.get(95), t2.get(80), t2.get(74), t2.get(37) !== v.e.OFF, null)).html; + const r2 = e2.getLineContent(i2), o2 = t2.get(36), s2 = new Uint32Array(2); + s2[0] = r2.length, s2[1] = 16793600; + const a2 = new w.a(s2, r2), l2 = S.d.isBasicASCII(r2, e2.mightContainNonBasicASCII()), c2 = S.d.containsRTL(r2, l2, e2.mightContainRTL()); + return Object(x.e)(new x.c(o2.isMonospace && !t2.get(24), o2.canUseHalfwidthRightwardsArrow, r2, false, l2, c2, 0, a2, [], n2, 0, o2.spaceWidth, o2.middotWidth, o2.wsmiddotWidth, t2.get(95), t2.get(80), t2.get(74), t2.get(37) !== v.e.OFF, null)).html; } } Object(T.g)((e2, t2) => { @@ -54159,24 +54159,24 @@ ${Object(zn.b)(wi)} } Object(_.k)(M), Object(_.k)(P); var W = n(3), z = n(132), B = n(143), j = n(30), V = n(96), U = n(168), H = n(155), q = n(18), $ = n(149), K = n(49), G = n(84), Y = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -54184,32 +54184,32 @@ ${Object(zn.b)(wi)} }); }; class Z extends c.a { - constructor(e2, t2, n2, r2, s2, a2) { - super(), this._viewZoneId = e2, this._marginDomNode = t2, this.editor = n2, this.diff = r2, this._contextMenuService = s2, this._clipboardService = a2, this._visibility = false, this._marginDomNode.style.zIndex = "10", this._diffActions = document.createElement("div"), this._diffActions.className = L.a.lightBulb.classNames + " lightbulb-glyph", this._diffActions.style.position = "absolute"; + constructor(e2, t2, n2, o2, s2, a2) { + super(), this._viewZoneId = e2, this._marginDomNode = t2, this.editor = n2, this.diff = o2, this._contextMenuService = s2, this._clipboardService = a2, this._visibility = false, this._marginDomNode.style.zIndex = "10", this._diffActions = document.createElement("div"), this._diffActions.className = L.a.lightBulb.classNames + " lightbulb-glyph", this._diffActions.style.position = "absolute"; const l2 = n2.getOption(51), c2 = n2.getModel().getEOL(); this._diffActions.style.right = "0px", this._diffActions.style.visibility = "hidden", this._diffActions.style.height = l2 + "px", this._diffActions.style.lineHeight = l2 + "px", this._marginDomNode.appendChild(this._diffActions); const d2 = []; - d2.push(new b.a("diff.clipboard.copyDeletedContent", r2.originalEndLineNumber > r2.modifiedStartLineNumber ? i.a("diff.clipboard.copyDeletedLinesContent.label", "Copy deleted lines") : i.a("diff.clipboard.copyDeletedLinesContent.single.label", "Copy deleted line"), void 0, true, () => Y(this, void 0, void 0, function* () { - yield this._clipboardService.writeText(r2.originalContent.join(c2) + c2); + d2.push(new b.a("diff.clipboard.copyDeletedContent", o2.originalEndLineNumber > o2.modifiedStartLineNumber ? i.a("diff.clipboard.copyDeletedLinesContent.label", "Copy deleted lines") : i.a("diff.clipboard.copyDeletedLinesContent.single.label", "Copy deleted line"), void 0, true, () => Y(this, void 0, void 0, function* () { + yield this._clipboardService.writeText(o2.originalContent.join(c2) + c2); }))); let h2 = 0, u2 = void 0; - r2.originalEndLineNumber > r2.modifiedStartLineNumber && (u2 = new b.a("diff.clipboard.copyDeletedLineContent", i.a("diff.clipboard.copyDeletedLineContent.label", "Copy deleted line ({0})", r2.originalStartLineNumber), void 0, true, () => Y(this, void 0, void 0, function* () { - yield this._clipboardService.writeText(r2.originalContent[h2]); + o2.originalEndLineNumber > o2.modifiedStartLineNumber && (u2 = new b.a("diff.clipboard.copyDeletedLineContent", i.a("diff.clipboard.copyDeletedLineContent.label", "Copy deleted line ({0})", o2.originalStartLineNumber), void 0, true, () => Y(this, void 0, void 0, function* () { + yield this._clipboardService.writeText(o2.originalContent[h2]); })), d2.push(u2)); n2.getOption(72) || d2.push(new b.a("diff.inline.revertChange", i.a("diff.inline.revertChange.label", "Revert this change"), void 0, true, () => Y(this, void 0, void 0, function* () { - if (r2.modifiedEndLineNumber === 0) { - const e3 = n2.getModel().getLineMaxColumn(r2.modifiedStartLineNumber); - n2.executeEdits("diffEditor", [{range: new W.a(r2.modifiedStartLineNumber, e3, r2.modifiedStartLineNumber, e3), text: c2 + r2.originalContent.join(c2)}]); + if (o2.modifiedEndLineNumber === 0) { + const e3 = n2.getModel().getLineMaxColumn(o2.modifiedStartLineNumber); + n2.executeEdits("diffEditor", [{range: new W.a(o2.modifiedStartLineNumber, e3, o2.modifiedStartLineNumber, e3), text: c2 + o2.originalContent.join(c2)}]); } else { - const e3 = n2.getModel().getLineMaxColumn(r2.modifiedEndLineNumber); - n2.executeEdits("diffEditor", [{range: new W.a(r2.modifiedStartLineNumber, 1, r2.modifiedEndLineNumber, e3), text: r2.originalContent.join(c2)}]); + const e3 = n2.getModel().getLineMaxColumn(o2.modifiedEndLineNumber); + n2.executeEdits("diffEditor", [{range: new W.a(o2.modifiedStartLineNumber, 1, o2.modifiedEndLineNumber, e3), text: o2.originalContent.join(c2)}]); } }))); const p2 = (e3, t3) => { - this._contextMenuService.showContextMenu({getAnchor: () => ({x: e3, y: t3}), getActions: () => (u2 && (u2.label = i.a("diff.clipboard.copyDeletedLineContent.label", "Copy deleted line ({0})", r2.originalStartLineNumber + h2)), d2), autoSelectFirstItem: true}); + this._contextMenuService.showContextMenu({getAnchor: () => ({x: e3, y: t3}), getActions: () => (u2 && (u2.label = i.a("diff.clipboard.copyDeletedLineContent.label", "Copy deleted line ({0})", o2.originalStartLineNumber + h2)), d2), autoSelectFirstItem: true}); }; - this._register(o.n(this._diffActions, "mousedown", (e3) => { - const {top: t3, height: n3} = o.C(this._diffActions); + this._register(r.n(this._diffActions, "mousedown", (e3) => { + const {top: t3, height: n3} = r.C(this._diffActions); let i2 = Math.floor(l2 / 3); e3.preventDefault(), p2(e3.posx, t3 + n3 + i2); })), this._register(n2.onMouseMove((e3) => { @@ -54230,24 +54230,24 @@ ${Object(zn.b)(wi)} this._visibility !== e2 && (this._visibility = e2, this._diffActions.style.visibility = e2 ? "visible" : "hidden"); } _updateLightBulbPosition(e2, t2, n2) { - const {top: i2} = o.C(e2), r2 = t2 - i2, s2 = Math.floor(r2 / n2), a2 = s2 * n2; + const {top: i2} = r.C(e2), o2 = t2 - i2, s2 = Math.floor(o2 / n2), a2 = s2 * n2; return this._diffActions.style.top = a2 + "px", s2; } } var X = n(121), Q = n(13), J = n(83), ee = n(190), te = n(145), ne = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, ie = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - class oe { + class re { constructor(e2, t2) { this._contextMenuService = e2, this._clipboardService = t2, this._zones = [], this.inlineDiffMargins = [], this._zonesMap = {}, this._decorations = []; } @@ -54261,29 +54261,29 @@ ${Object(zn.b)(wi)} }), this._zones = [], this._zonesMap = {}, this._decorations = e2.deltaDecorations(this._decorations, []); } apply(e2, t2, n2, i2) { - const o2 = i2 ? u.c.capture(e2) : null; + const r2 = i2 ? u.c.capture(e2) : null; e2.changeViewZones((t3) => { for (let e3 = 0, n3 = this._zones.length; e3 < n3; e3++) t3.removeZone(this._zones[e3]); for (let e3 = 0, t4 = this.inlineDiffMargins.length; e3 < t4; e3++) this.inlineDiffMargins[e3].dispose(); this._zones = [], this._zonesMap = {}, this.inlineDiffMargins = []; - for (let i3 = 0, o3 = n2.zones.length; i3 < o3; i3++) { - const o4 = n2.zones[i3]; - o4.suppressMouseDown = true; - let r2 = t3.addZone(o4); - this._zones.push(r2), this._zonesMap[String(r2)] = true, n2.zones[i3].diff && o4.marginDomNode && (o4.suppressMouseDown = false, this.inlineDiffMargins.push(new Z(r2, o4.marginDomNode, e2, n2.zones[i3].diff, this._contextMenuService, this._clipboardService))); + for (let i3 = 0, r3 = n2.zones.length; i3 < r3; i3++) { + const r4 = n2.zones[i3]; + r4.suppressMouseDown = true; + let o2 = t3.addZone(r4); + this._zones.push(o2), this._zonesMap[String(o2)] = true, n2.zones[i3].diff && r4.marginDomNode && (r4.suppressMouseDown = false, this.inlineDiffMargins.push(new Z(o2, r4.marginDomNode, e2, n2.zones[i3].diff, this._contextMenuService, this._clipboardService))); } - }), o2 && o2.restore(e2), this._decorations = e2.deltaDecorations(this._decorations, n2.decorations), t2 && t2.setZones(n2.overviewZones); + }), r2 && r2.restore(e2), this._decorations = e2.deltaDecorations(this._decorations, n2.decorations), t2 && t2.setZones(n2.overviewZones); } } - let re = 0; + let oe = 0; const se = Object(L.e)("diff-insert", L.a.add), ae = Object(L.e)("diff-remove", L.a.remove); let le = class e2 extends c.a { constructor(t2, n2, i2, s2, c2, d2, h2, u2, p2, m2, g2) { - super(), this._editorProgressService = g2, this._onDidDispose = this._register(new l.a()), this.onDidDispose = this._onDidDispose.event, this._onDidUpdateDiff = this._register(new l.a()), this.onDidUpdateDiff = this._onDidUpdateDiff.event, this._onDidContentSizeChange = this._register(new l.a()), this._lastOriginalWarning = null, this._lastModifiedWarning = null, this._editorWorkerService = s2, this._codeEditorService = h2, this._contextKeyService = this._register(c2.createScoped(t2)), this._contextKeyService.createKey("isInDiffEditor", true), this._themeService = u2, this._notificationService = p2, this.id = ++re, this._state = 0, this._updatingDiffProgress = null, this._domElement = t2, n2 = n2 || {}, this._renderSideBySide = true, n2.renderSideBySide !== void 0 && (this._renderSideBySide = n2.renderSideBySide), this._maxComputationTime = 5e3, n2.maxComputationTime !== void 0 && (this._maxComputationTime = n2.maxComputationTime), this._ignoreTrimWhitespace = true, n2.ignoreTrimWhitespace !== void 0 && (this._ignoreTrimWhitespace = n2.ignoreTrimWhitespace), this._renderIndicators = true, n2.renderIndicators !== void 0 && (this._renderIndicators = n2.renderIndicators), this._originalIsEditable = false, n2.originalEditable !== void 0 && (this._originalIsEditable = Boolean(n2.originalEditable)), this._originalCodeLens = false, n2.originalCodeLens !== void 0 && (this._originalCodeLens = Boolean(n2.originalCodeLens)), this._modifiedCodeLens = false, n2.modifiedCodeLens !== void 0 && (this._modifiedCodeLens = Boolean(n2.modifiedCodeLens)), this._updateDecorationsRunner = this._register(new a.d(() => this._updateDecorations(), 0)), this._containerDomElement = document.createElement("div"), this._containerDomElement.className = e2._getClassName(this._themeService.getColorTheme(), this._renderSideBySide), this._containerDomElement.style.position = "relative", this._containerDomElement.style.height = "100%", this._domElement.appendChild(this._containerDomElement), this._overviewViewportDomElement = Object(r.b)(document.createElement("div")), this._overviewViewportDomElement.setClassName("diffViewport"), this._overviewViewportDomElement.setPosition("absolute"), this._overviewDomElement = document.createElement("div"), this._overviewDomElement.className = "diffOverview", this._overviewDomElement.style.position = "absolute", this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode), this._register(o.n(this._overviewDomElement, "mousedown", (e3) => { + super(), this._editorProgressService = g2, this._onDidDispose = this._register(new l.a()), this.onDidDispose = this._onDidDispose.event, this._onDidUpdateDiff = this._register(new l.a()), this.onDidUpdateDiff = this._onDidUpdateDiff.event, this._onDidContentSizeChange = this._register(new l.a()), this._lastOriginalWarning = null, this._lastModifiedWarning = null, this._editorWorkerService = s2, this._codeEditorService = h2, this._contextKeyService = this._register(c2.createScoped(t2)), this._contextKeyService.createKey("isInDiffEditor", true), this._themeService = u2, this._notificationService = p2, this.id = ++oe, this._state = 0, this._updatingDiffProgress = null, this._domElement = t2, n2 = n2 || {}, this._renderSideBySide = true, n2.renderSideBySide !== void 0 && (this._renderSideBySide = n2.renderSideBySide), this._maxComputationTime = 5e3, n2.maxComputationTime !== void 0 && (this._maxComputationTime = n2.maxComputationTime), this._ignoreTrimWhitespace = true, n2.ignoreTrimWhitespace !== void 0 && (this._ignoreTrimWhitespace = n2.ignoreTrimWhitespace), this._renderIndicators = true, n2.renderIndicators !== void 0 && (this._renderIndicators = n2.renderIndicators), this._originalIsEditable = false, n2.originalEditable !== void 0 && (this._originalIsEditable = Boolean(n2.originalEditable)), this._originalCodeLens = false, n2.originalCodeLens !== void 0 && (this._originalCodeLens = Boolean(n2.originalCodeLens)), this._modifiedCodeLens = false, n2.modifiedCodeLens !== void 0 && (this._modifiedCodeLens = Boolean(n2.modifiedCodeLens)), this._updateDecorationsRunner = this._register(new a.d(() => this._updateDecorations(), 0)), this._containerDomElement = document.createElement("div"), this._containerDomElement.className = e2._getClassName(this._themeService.getColorTheme(), this._renderSideBySide), this._containerDomElement.style.position = "relative", this._containerDomElement.style.height = "100%", this._domElement.appendChild(this._containerDomElement), this._overviewViewportDomElement = Object(o.b)(document.createElement("div")), this._overviewViewportDomElement.setClassName("diffViewport"), this._overviewViewportDomElement.setPosition("absolute"), this._overviewDomElement = document.createElement("div"), this._overviewDomElement.className = "diffOverview", this._overviewDomElement.style.position = "absolute", this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode), this._register(r.n(this._overviewDomElement, "mousedown", (e3) => { this.modifiedEditor.delegateVerticalScrollbarMouseDown(e3); - })), this._containerDomElement.appendChild(this._overviewDomElement), this._originalDomNode = document.createElement("div"), this._originalDomNode.className = "editor original", this._originalDomNode.style.position = "absolute", this._originalDomNode.style.height = "100%", this._containerDomElement.appendChild(this._originalDomNode), this._modifiedDomNode = document.createElement("div"), this._modifiedDomNode.className = "editor modified", this._modifiedDomNode.style.position = "absolute", this._modifiedDomNode.style.height = "100%", this._containerDomElement.appendChild(this._modifiedDomNode), this._beginUpdateDecorationsTimeout = -1, this._currentlyChangingViewZones = false, this._diffComputationToken = 0, this._originalEditorState = new oe(m2, i2), this._modifiedEditorState = new oe(m2, i2), this._isVisible = true, this._isHandlingScrollEvent = false, this._elementSizeObserver = this._register(new ee.a(this._containerDomElement, void 0, () => this._onDidContainerSizeChanged())), n2.automaticLayout && this._elementSizeObserver.startObserving(), this._diffComputationResult = null; + })), this._containerDomElement.appendChild(this._overviewDomElement), this._originalDomNode = document.createElement("div"), this._originalDomNode.className = "editor original", this._originalDomNode.style.position = "absolute", this._originalDomNode.style.height = "100%", this._containerDomElement.appendChild(this._originalDomNode), this._modifiedDomNode = document.createElement("div"), this._modifiedDomNode.className = "editor modified", this._modifiedDomNode.style.position = "absolute", this._modifiedDomNode.style.height = "100%", this._containerDomElement.appendChild(this._modifiedDomNode), this._beginUpdateDecorationsTimeout = -1, this._currentlyChangingViewZones = false, this._diffComputationToken = 0, this._originalEditorState = new re(m2, i2), this._modifiedEditorState = new re(m2, i2), this._isVisible = true, this._isHandlingScrollEvent = false, this._elementSizeObserver = this._register(new ee.a(this._containerDomElement, void 0, () => this._onDidContainerSizeChanged())), n2.automaticLayout && this._elementSizeObserver.startObserving(), this._diffComputationResult = null; const f2 = this._contextKeyService.createScoped(), b2 = new $.a(); b2.set(k.b, f2); const v2 = d2.createChild(b2), w2 = this._contextKeyService.createScoped(), y2 = new $.a(); @@ -54318,38 +54318,38 @@ ${Object(zn.b)(wi)} this._originalOverviewRuler && (this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()), this._originalOverviewRuler.dispose()), this.originalEditor.hasModel() && (this._originalOverviewRuler = this.originalEditor.createOverviewRuler("original diffOverviewRuler"), this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())), this._modifiedOverviewRuler && (this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()), this._modifiedOverviewRuler.dispose()), this.modifiedEditor.hasModel() && (this._modifiedOverviewRuler = this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"), this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())), this._layoutOverviewRulers(); } _createLeftHandSideEditor(t2, n2, i2) { - const o2 = this._createInnerEditor(n2, this._originalDomNode, this._adjustOptionsForLeftHandSide(t2, this._originalIsEditable, this._originalCodeLens)); - this._register(o2.onDidScrollChange((e3) => { + const r2 = this._createInnerEditor(n2, this._originalDomNode, this._adjustOptionsForLeftHandSide(t2, this._originalIsEditable, this._originalCodeLens)); + this._register(r2.onDidScrollChange((e3) => { this._isHandlingScrollEvent || (e3.scrollTopChanged || e3.scrollLeftChanged || e3.scrollHeightChanged) && (this._isHandlingScrollEvent = true, this.modifiedEditor.setScrollPosition({scrollLeft: e3.scrollLeft, scrollTop: e3.scrollTop}), this._isHandlingScrollEvent = false, this._layoutOverviewViewport()); - })), this._register(o2.onDidChangeViewZones(() => { + })), this._register(r2.onDidChangeViewZones(() => { this._onViewZonesChanged(); - })), this._register(o2.onDidChangeModelContent(() => { + })), this._register(r2.onDidChangeModelContent(() => { this._isVisible && this._beginUpdateDecorationsSoon(); })); - const r2 = i2.createKey("isInDiffLeftEditor", void 0); - return this._register(o2.onDidFocusEditorWidget(() => r2.set(true))), this._register(o2.onDidBlurEditorWidget(() => r2.set(false))), this._register(o2.onDidContentSizeChange((t3) => { + const o2 = i2.createKey("isInDiffLeftEditor", void 0); + return this._register(r2.onDidFocusEditorWidget(() => o2.set(true))), this._register(r2.onDidBlurEditorWidget(() => o2.set(false))), this._register(r2.onDidContentSizeChange((t3) => { const n3 = this.originalEditor.getContentWidth() + this.modifiedEditor.getContentWidth() + e2.ONE_OVERVIEW_WIDTH, i3 = Math.max(this.modifiedEditor.getContentHeight(), this.originalEditor.getContentHeight()); this._onDidContentSizeChange.fire({contentHeight: i3, contentWidth: n3, contentHeightChanged: t3.contentHeightChanged, contentWidthChanged: t3.contentWidthChanged}); - })), o2; + })), r2; } _createRightHandSideEditor(t2, n2, i2) { - const o2 = this._createInnerEditor(n2, this._modifiedDomNode, this._adjustOptionsForRightHandSide(t2, this._modifiedCodeLens)); - this._register(o2.onDidScrollChange((e3) => { + const r2 = this._createInnerEditor(n2, this._modifiedDomNode, this._adjustOptionsForRightHandSide(t2, this._modifiedCodeLens)); + this._register(r2.onDidScrollChange((e3) => { this._isHandlingScrollEvent || (e3.scrollTopChanged || e3.scrollLeftChanged || e3.scrollHeightChanged) && (this._isHandlingScrollEvent = true, this.originalEditor.setScrollPosition({scrollLeft: e3.scrollLeft, scrollTop: e3.scrollTop}), this._isHandlingScrollEvent = false, this._layoutOverviewViewport()); - })), this._register(o2.onDidChangeViewZones(() => { + })), this._register(r2.onDidChangeViewZones(() => { this._onViewZonesChanged(); - })), this._register(o2.onDidChangeConfiguration((e3) => { - e3.hasChanged(36) && o2.getModel() && this._onViewZonesChanged(); - })), this._register(o2.onDidChangeModelContent(() => { + })), this._register(r2.onDidChangeConfiguration((e3) => { + e3.hasChanged(36) && r2.getModel() && this._onViewZonesChanged(); + })), this._register(r2.onDidChangeModelContent(() => { this._isVisible && this._beginUpdateDecorationsSoon(); - })), this._register(o2.onDidChangeModelOptions((e3) => { + })), this._register(r2.onDidChangeModelOptions((e3) => { e3.tabSize && this._updateDecorationsRunner.schedule(); })); - const r2 = i2.createKey("isInDiffRightEditor", void 0); - return this._register(o2.onDidFocusEditorWidget(() => r2.set(true))), this._register(o2.onDidBlurEditorWidget(() => r2.set(false))), this._register(o2.onDidContentSizeChange((t3) => { + const o2 = i2.createKey("isInDiffRightEditor", void 0); + return this._register(r2.onDidFocusEditorWidget(() => o2.set(true))), this._register(r2.onDidBlurEditorWidget(() => o2.set(false))), this._register(r2.onDidContentSizeChange((t3) => { const n3 = this.originalEditor.getContentWidth() + this.modifiedEditor.getContentWidth() + e2.ONE_OVERVIEW_WIDTH, i3 = Math.max(this.modifiedEditor.getContentHeight(), this.originalEditor.getContentHeight()); this._onDidContentSizeChange.fire({contentHeight: i3, contentWidth: n3, contentHeightChanged: t3.contentHeightChanged, contentWidthChanged: t3.contentWidthChanged}); - })), o2; + })), r2; } _createInnerEditor(e3, t2, n2) { return e3.createInstance(m.a, t2, n2, {}); @@ -54519,11 +54519,11 @@ ${Object(zn.b)(wi)} if (!t2 || !n2) return; this._diffComputationToken++; - let o2 = this._diffComputationToken; + let r2 = this._diffComputationToken; this._setState(1), this._editorWorkerService.canComputeDiff(t2.uri, n2.uri) ? this._editorWorkerService.computeDiff(t2.uri, n2.uri, this._ignoreTrimWhitespace, this._maxComputationTime).then((e3) => { - o2 === this._diffComputationToken && t2 === this.originalEditor.getModel() && n2 === this.modifiedEditor.getModel() && (this._setState(2), this._diffComputationResult = e3, this._updateDecorationsRunner.schedule(), this._onDidUpdateDiff.fire()); + r2 === this._diffComputationToken && t2 === this.originalEditor.getModel() && n2 === this.modifiedEditor.getModel() && (this._setState(2), this._diffComputationResult = e3, this._updateDecorationsRunner.schedule(), this._onDidUpdateDiff.fire()); }, (e3) => { - o2 === this._diffComputationToken && t2 === this.originalEditor.getModel() && n2 === this.modifiedEditor.getModel() && (this._setState(2), this._diffComputationResult = null, this._updateDecorationsRunner.schedule()); + r2 === this._diffComputationToken && t2 === this.originalEditor.getModel() && n2 === this.modifiedEditor.getModel() && (this._setState(2), this._diffComputationResult = null, this._updateDecorationsRunner.schedule()); }) : e2._equals(t2.uri, this._lastOriginalWarning) && e2._equals(n2.uri, this._lastModifiedWarning) || (this._lastOriginalWarning = t2.uri, this._lastModifiedWarning = n2.uri, this._notificationService.warn(i.a("diff.tooLarge", "Cannot compare files because one file is too large."))); } _cleanViewZonesAndDecorations() { @@ -54557,8 +54557,8 @@ ${Object(zn.b)(wi)} } _doLayout() { const t2 = this._elementSizeObserver.getWidth(), n2 = this._elementSizeObserver.getHeight(), i2 = this._getReviewHeight(); - let o2 = this._strategy.layout(); - this._originalDomNode.style.width = o2 + "px", this._originalDomNode.style.left = "0px", this._modifiedDomNode.style.width = t2 - o2 + "px", this._modifiedDomNode.style.left = o2 + "px", this._overviewDomElement.style.top = "0px", this._overviewDomElement.style.height = n2 - i2 + "px", this._overviewDomElement.style.width = e2.ENTIRE_DIFF_OVERVIEW_WIDTH + "px", this._overviewDomElement.style.left = t2 - e2.ENTIRE_DIFF_OVERVIEW_WIDTH + "px", this._overviewViewportDomElement.setWidth(e2.ENTIRE_DIFF_OVERVIEW_WIDTH), this._overviewViewportDomElement.setHeight(30), this.originalEditor.layout({width: o2, height: n2 - i2}), this.modifiedEditor.layout({width: t2 - o2 - e2.ENTIRE_DIFF_OVERVIEW_WIDTH, height: n2 - i2}), (this._originalOverviewRuler || this._modifiedOverviewRuler) && this._layoutOverviewRulers(), this._reviewPane.layout(n2 - i2, t2, i2), this._layoutOverviewViewport(); + let r2 = this._strategy.layout(); + this._originalDomNode.style.width = r2 + "px", this._originalDomNode.style.left = "0px", this._modifiedDomNode.style.width = t2 - r2 + "px", this._modifiedDomNode.style.left = r2 + "px", this._overviewDomElement.style.top = "0px", this._overviewDomElement.style.height = n2 - i2 + "px", this._overviewDomElement.style.width = e2.ENTIRE_DIFF_OVERVIEW_WIDTH + "px", this._overviewDomElement.style.left = t2 - e2.ENTIRE_DIFF_OVERVIEW_WIDTH + "px", this._overviewViewportDomElement.setWidth(e2.ENTIRE_DIFF_OVERVIEW_WIDTH), this._overviewViewportDomElement.setHeight(30), this.originalEditor.layout({width: r2, height: n2 - i2}), this.modifiedEditor.layout({width: t2 - r2 - e2.ENTIRE_DIFF_OVERVIEW_WIDTH, height: n2 - i2}), (this._originalOverviewRuler || this._modifiedOverviewRuler) && this._layoutOverviewRulers(), this._reviewPane.layout(n2 - i2, t2, i2), this._layoutOverviewViewport(); } _layoutOverviewViewport() { let e3 = this._computeOverviewViewport(); @@ -54568,8 +54568,8 @@ ${Object(zn.b)(wi)} let e3 = this.modifiedEditor.getLayoutInfo(); if (!e3) return null; - let t2 = this.modifiedEditor.getScrollTop(), n2 = this.modifiedEditor.getScrollHeight(), i2 = Math.max(0, e3.height), o2 = Math.max(0, i2 - 0), r2 = n2 > 0 ? o2 / n2 : 0; - return {height: Math.max(0, Math.floor(e3.height * r2)), top: Math.floor(t2 * r2)}; + let t2 = this.modifiedEditor.getScrollTop(), n2 = this.modifiedEditor.getScrollHeight(), i2 = Math.max(0, e3.height), r2 = Math.max(0, i2 - 0), o2 = n2 > 0 ? r2 / n2 : 0; + return {height: Math.max(0, Math.floor(e3.height * o2)), top: Math.floor(t2 * o2)}; } _createDataSource() { return {getWidth: () => this._elementSizeObserver.getWidth(), getHeight: () => this._elementSizeObserver.getHeight() - this._getReviewHeight(), getContainerDomNode: () => this._containerDomElement, relayoutEditors: () => { @@ -54583,10 +54583,10 @@ ${Object(zn.b)(wi)} const n2 = this._diffComputationResult ? this._diffComputationResult.changes : []; if (n2.length === 0 || e3 < t2(n2[0])) return null; - let i2 = 0, o2 = n2.length - 1; - for (; i2 < o2; ) { - let r2 = Math.floor((i2 + o2) / 2), s2 = t2(n2[r2]), a2 = r2 + 1 <= o2 ? t2(n2[r2 + 1]) : 1073741824; - e3 < s2 ? o2 = r2 - 1 : e3 >= a2 ? i2 = r2 + 1 : (i2 = r2, o2 = r2); + let i2 = 0, r2 = n2.length - 1; + for (; i2 < r2; ) { + let o2 = Math.floor((i2 + r2) / 2), s2 = t2(n2[o2]), a2 = o2 + 1 <= r2 ? t2(n2[o2 + 1]) : 1073741824; + e3 < s2 ? r2 = o2 - 1 : e3 >= a2 ? i2 = o2 + 1 : (i2 = o2, r2 = o2); } return n2[i2]; } @@ -54594,15 +54594,15 @@ ${Object(zn.b)(wi)} let t2 = this._getLineChangeAtOrBeforeLineNumber(e3, (e4) => e4.originalStartLineNumber); if (!t2) return e3; - let n2 = t2.originalStartLineNumber + (t2.originalEndLineNumber > 0 ? -1 : 0), i2 = t2.modifiedStartLineNumber + (t2.modifiedEndLineNumber > 0 ? -1 : 0), o2 = t2.originalEndLineNumber > 0 ? t2.originalEndLineNumber - t2.originalStartLineNumber + 1 : 0, r2 = t2.modifiedEndLineNumber > 0 ? t2.modifiedEndLineNumber - t2.modifiedStartLineNumber + 1 : 0, s2 = e3 - n2; - return s2 <= o2 ? i2 + Math.min(s2, r2) : i2 + r2 - o2 + s2; + let n2 = t2.originalStartLineNumber + (t2.originalEndLineNumber > 0 ? -1 : 0), i2 = t2.modifiedStartLineNumber + (t2.modifiedEndLineNumber > 0 ? -1 : 0), r2 = t2.originalEndLineNumber > 0 ? t2.originalEndLineNumber - t2.originalStartLineNumber + 1 : 0, o2 = t2.modifiedEndLineNumber > 0 ? t2.modifiedEndLineNumber - t2.modifiedStartLineNumber + 1 : 0, s2 = e3 - n2; + return s2 <= r2 ? i2 + Math.min(s2, o2) : i2 + o2 - r2 + s2; } _getEquivalentLineForModifiedLineNumber(e3) { let t2 = this._getLineChangeAtOrBeforeLineNumber(e3, (e4) => e4.modifiedStartLineNumber); if (!t2) return e3; - let n2 = t2.originalStartLineNumber + (t2.originalEndLineNumber > 0 ? -1 : 0), i2 = t2.modifiedStartLineNumber + (t2.modifiedEndLineNumber > 0 ? -1 : 0), o2 = t2.originalEndLineNumber > 0 ? t2.originalEndLineNumber - t2.originalStartLineNumber + 1 : 0, r2 = t2.modifiedEndLineNumber > 0 ? t2.modifiedEndLineNumber - t2.modifiedStartLineNumber + 1 : 0, s2 = e3 - i2; - return s2 <= r2 ? n2 + Math.min(s2, o2) : n2 + o2 - r2 + s2; + let n2 = t2.originalStartLineNumber + (t2.originalEndLineNumber > 0 ? -1 : 0), i2 = t2.modifiedStartLineNumber + (t2.modifiedEndLineNumber > 0 ? -1 : 0), r2 = t2.originalEndLineNumber > 0 ? t2.originalEndLineNumber - t2.originalStartLineNumber + 1 : 0, o2 = t2.modifiedEndLineNumber > 0 ? t2.modifiedEndLineNumber - t2.modifiedStartLineNumber + 1 : 0, s2 = e3 - i2; + return s2 <= o2 ? n2 + Math.min(s2, r2) : n2 + r2 - o2 + s2; } getDiffLineInformationForOriginal(e3) { return this._diffComputationResult ? {equivalentLineNumber: this._getEquivalentLineForOriginalLineNumber(e3)} : null; @@ -54620,9 +54620,9 @@ ${Object(zn.b)(wi)} let t2 = (e2.getColor(E.n) || E.j).transparent(2), n2 = (e2.getColor(E.p) || E.k).transparent(2), i2 = !t2.equals(this._insertColor) || !n2.equals(this._removeColor); return this._insertColor = t2, this._removeColor = n2, i2; } - getEditorsDiffDecorations(e2, t2, n2, i2, o2, r2, s2) { - o2 = o2.sort((e3, t3) => e3.afterLineNumber - t3.afterLineNumber), i2 = i2.sort((e3, t3) => e3.afterLineNumber - t3.afterLineNumber); - let a2 = this._getViewZones(e2, i2, o2, r2, s2, n2), l2 = this._getOriginalEditorDecorations(e2, t2, n2, r2, s2), c2 = this._getModifiedEditorDecorations(e2, t2, n2, r2, s2); + getEditorsDiffDecorations(e2, t2, n2, i2, r2, o2, s2) { + r2 = r2.sort((e3, t3) => e3.afterLineNumber - t3.afterLineNumber), i2 = i2.sort((e3, t3) => e3.afterLineNumber - t3.afterLineNumber); + let a2 = this._getViewZones(e2, i2, r2, o2, s2, n2), l2 = this._getOriginalEditorDecorations(e2, t2, n2, o2, s2), c2 = this._getModifiedEditorDecorations(e2, t2, n2, o2, s2); return {original: {decorations: l2.decorations, overviewZones: l2.overviewZones, zones: a2.original}, modified: {decorations: c2.decorations, overviewZones: c2.overviewZones, zones: a2.modified}}; } } @@ -54635,11 +54635,11 @@ ${Object(zn.b)(wi)} } } class he { - constructor(e2, t2, n2, i2, o2) { - this.lineChanges = e2, this.originalForeignVZ = t2, this.originalLineHeight = n2, this.modifiedForeignVZ = i2, this.modifiedLineHeight = o2; + constructor(e2, t2, n2, i2, r2) { + this.lineChanges = e2, this.originalForeignVZ = t2, this.originalLineHeight = n2, this.modifiedForeignVZ = i2, this.modifiedLineHeight = r2; } getViewZones() { - let e2 = [], t2 = [], n2 = 0, i2 = 0, o2 = 0, r2 = 0, s2 = 0, a2 = 0, l2 = (e3, t3) => e3.afterLineNumber - t3.afterLineNumber, c2 = (e3, t3) => { + let e2 = [], t2 = [], n2 = 0, i2 = 0, r2 = 0, o2 = 0, s2 = 0, a2 = 0, l2 = (e3, t3) => e3.afterLineNumber - t3.afterLineNumber, c2 = (e3, t3) => { if (t3.domNode === null && e3.length > 0) { let n3 = e3[e3.length - 1]; if (n3.afterLineNumber === t3.afterLineNumber && n3.domNode === null) @@ -54649,17 +54649,17 @@ ${Object(zn.b)(wi)} }, d2 = new de(this.modifiedForeignVZ), h2 = new de(this.originalForeignVZ); for (let u2 = 0, p2 = this.lineChanges.length; u2 <= p2; u2++) { let m2 = u2 < p2 ? this.lineChanges[u2] : null; - m2 !== null ? (o2 = m2.originalStartLineNumber + (m2.originalEndLineNumber > 0 ? -1 : 0), r2 = m2.modifiedStartLineNumber + (m2.modifiedEndLineNumber > 0 ? -1 : 0), i2 = m2.originalEndLineNumber > 0 ? m2.originalEndLineNumber - m2.originalStartLineNumber + 1 : 0, n2 = m2.modifiedEndLineNumber > 0 ? m2.modifiedEndLineNumber - m2.modifiedStartLineNumber + 1 : 0, s2 = Math.max(m2.originalStartLineNumber, m2.originalEndLineNumber), a2 = Math.max(m2.modifiedStartLineNumber, m2.modifiedEndLineNumber)) : (o2 += 1e7 + i2, r2 += 1e7 + n2, s2 = o2, a2 = r2); + m2 !== null ? (r2 = m2.originalStartLineNumber + (m2.originalEndLineNumber > 0 ? -1 : 0), o2 = m2.modifiedStartLineNumber + (m2.modifiedEndLineNumber > 0 ? -1 : 0), i2 = m2.originalEndLineNumber > 0 ? m2.originalEndLineNumber - m2.originalStartLineNumber + 1 : 0, n2 = m2.modifiedEndLineNumber > 0 ? m2.modifiedEndLineNumber - m2.modifiedStartLineNumber + 1 : 0, s2 = Math.max(m2.originalStartLineNumber, m2.originalEndLineNumber), a2 = Math.max(m2.modifiedStartLineNumber, m2.modifiedEndLineNumber)) : (r2 += 1e7 + i2, o2 += 1e7 + n2, s2 = r2, a2 = o2); let g2 = [], f2 = []; for (; d2.current && d2.current.afterLineNumber <= a2; ) { let e3; - e3 = d2.current.afterLineNumber <= r2 ? o2 - r2 + d2.current.afterLineNumber : s2; + e3 = d2.current.afterLineNumber <= o2 ? r2 - o2 + d2.current.afterLineNumber : s2; let t3 = null; m2 && m2.modifiedStartLineNumber <= d2.current.afterLineNumber && d2.current.afterLineNumber <= m2.modifiedEndLineNumber && (t3 = this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()), g2.push({afterLineNumber: e3, heightInLines: d2.current.height / this.modifiedLineHeight, domNode: null, marginDomNode: t3}), d2.advance(); } for (; h2.current && h2.current.afterLineNumber <= s2; ) { let e3; - e3 = h2.current.afterLineNumber <= o2 ? r2 - o2 + h2.current.afterLineNumber : a2, f2.push({afterLineNumber: e3, heightInLines: h2.current.height / this.originalLineHeight, domNode: null}), h2.advance(); + e3 = h2.current.afterLineNumber <= r2 ? o2 - r2 + h2.current.afterLineNumber : a2, f2.push({afterLineNumber: e3, heightInLines: h2.current.height / this.originalLineHeight, domNode: null}), h2.advance(); } if (m2 !== null && _e(m2)) { let e3 = this._produceOriginalFromDiff(m2, i2, n2); @@ -54671,7 +54671,7 @@ ${Object(zn.b)(wi)} } let b2 = 0, _2 = 0; for (g2 = g2.sort(l2), f2 = f2.sort(l2); b2 < g2.length && _2 < f2.length; ) { - let n3 = g2[b2], i3 = f2[_2], s3 = n3.afterLineNumber - o2, a3 = i3.afterLineNumber - r2; + let n3 = g2[b2], i3 = f2[_2], s3 = n3.afterLineNumber - r2, a3 = i3.afterLineNumber - o2; s3 < a3 ? (c2(e2, n3), b2++) : a3 < s3 ? (c2(t2, i3), _2++) : n3.shouldNotShrink ? (c2(e2, n3), b2++) : i3.shouldNotShrink ? (c2(t2, i3), _2++) : n3.heightInLines >= i3.heightInLines ? (n3.heightInLines -= i3.heightInLines, _2++) : (i3.heightInLines -= n3.heightInLines, b2++); } for (; b2 < g2.length; ) @@ -54688,8 +54688,8 @@ ${Object(zn.b)(wi)} }()), e3)); } } - function ue(e2, t2, n2, i2, o2) { - return {range: new W.a(e2, t2, n2, i2), options: o2}; + function ue(e2, t2, n2, i2, r2) { + return {range: new W.a(e2, t2, n2, i2), options: r2}; } const pe = {charDelete: j.a.register({className: "char-delete"}), charDeleteWholeLine: j.a.register({className: "char-delete", isWholeLine: true}), charInsert: j.a.register({className: "char-insert"}), charInsertWholeLine: j.a.register({className: "char-insert", isWholeLine: true}), lineInsert: j.a.register({className: "line-insert", marginClassName: "line-insert", isWholeLine: true}), lineInsertWithSign: j.a.register({className: "line-insert", linesDecorationsClassName: "insert-sign " + se.classNames, marginClassName: "line-insert", isWholeLine: true}), lineDelete: j.a.register({className: "line-delete", marginClassName: "line-delete", isWholeLine: true}), lineDeleteWithSign: j.a.register({className: "line-delete", linesDecorationsClassName: "delete-sign " + ae.classNames, marginClassName: "line-delete", isWholeLine: true}), lineDeleteMargin: j.a.register({marginClassName: "line-delete"})}; class me extends ce { @@ -54726,17 +54726,17 @@ ${Object(zn.b)(wi)} getVerticalSashHeight(e2) { return this._dataSource.getHeight(); } - _getViewZones(e2, t2, n2, i2, o2) { - return new ge(e2, t2, i2.getOption(51), n2, o2.getOption(51)).getViewZones(); + _getViewZones(e2, t2, n2, i2, r2) { + return new ge(e2, t2, i2.getOption(51), n2, r2.getOption(51)).getViewZones(); } - _getOriginalEditorDecorations(e2, t2, n2, i2, o2) { - const r2 = String(this._removeColor); + _getOriginalEditorDecorations(e2, t2, n2, i2, r2) { + const o2 = String(this._removeColor); let s2 = {decorations: [], overviewZones: []}, a2 = i2.getModel(); - for (let i3 = 0, o3 = e2.length; i3 < o3; i3++) { - let o4 = e2[i3]; - if (ve(o4) && (s2.decorations.push({range: new W.a(o4.originalStartLineNumber, 1, o4.originalEndLineNumber, 1073741824), options: n2 ? pe.lineDeleteWithSign : pe.lineDelete}), _e(o4) && o4.charChanges || s2.decorations.push(ue(o4.originalStartLineNumber, 1, o4.originalEndLineNumber, 1073741824, pe.charDeleteWholeLine)), s2.overviewZones.push(new U.a(o4.originalStartLineNumber, o4.originalEndLineNumber, r2)), o4.charChanges)) - for (let e3 = 0, n3 = o4.charChanges.length; e3 < n3; e3++) { - let n4 = o4.charChanges[e3]; + for (let i3 = 0, r3 = e2.length; i3 < r3; i3++) { + let r4 = e2[i3]; + if (ve(r4) && (s2.decorations.push({range: new W.a(r4.originalStartLineNumber, 1, r4.originalEndLineNumber, 1073741824), options: n2 ? pe.lineDeleteWithSign : pe.lineDelete}), _e(r4) && r4.charChanges || s2.decorations.push(ue(r4.originalStartLineNumber, 1, r4.originalEndLineNumber, 1073741824, pe.charDeleteWholeLine)), s2.overviewZones.push(new U.a(r4.originalStartLineNumber, r4.originalEndLineNumber, o2)), r4.charChanges)) + for (let e3 = 0, n3 = r4.charChanges.length; e3 < n3; e3++) { + let n4 = r4.charChanges[e3]; if (ve(n4)) if (t2) for (let e4 = n4.originalStartLineNumber; e4 <= n4.originalEndLineNumber; e4++) { @@ -54749,14 +54749,14 @@ ${Object(zn.b)(wi)} } return s2; } - _getModifiedEditorDecorations(e2, t2, n2, i2, o2) { - const r2 = String(this._insertColor); - let s2 = {decorations: [], overviewZones: []}, a2 = o2.getModel(); - for (let i3 = 0, o3 = e2.length; i3 < o3; i3++) { - let o4 = e2[i3]; - if (_e(o4) && (s2.decorations.push({range: new W.a(o4.modifiedStartLineNumber, 1, o4.modifiedEndLineNumber, 1073741824), options: n2 ? pe.lineInsertWithSign : pe.lineInsert}), ve(o4) && o4.charChanges || s2.decorations.push(ue(o4.modifiedStartLineNumber, 1, o4.modifiedEndLineNumber, 1073741824, pe.charInsertWholeLine)), s2.overviewZones.push(new U.a(o4.modifiedStartLineNumber, o4.modifiedEndLineNumber, r2)), o4.charChanges)) - for (let e3 = 0, n3 = o4.charChanges.length; e3 < n3; e3++) { - let n4 = o4.charChanges[e3]; + _getModifiedEditorDecorations(e2, t2, n2, i2, r2) { + const o2 = String(this._insertColor); + let s2 = {decorations: [], overviewZones: []}, a2 = r2.getModel(); + for (let i3 = 0, r3 = e2.length; i3 < r3; i3++) { + let r4 = e2[i3]; + if (_e(r4) && (s2.decorations.push({range: new W.a(r4.modifiedStartLineNumber, 1, r4.modifiedEndLineNumber, 1073741824), options: n2 ? pe.lineInsertWithSign : pe.lineInsert}), ve(r4) && r4.charChanges || s2.decorations.push(ue(r4.modifiedStartLineNumber, 1, r4.modifiedEndLineNumber, 1073741824, pe.charInsertWholeLine)), s2.overviewZones.push(new U.a(r4.modifiedStartLineNumber, r4.modifiedEndLineNumber, o2)), r4.charChanges)) + for (let e3 = 0, n3 = r4.charChanges.length; e3 < n3; e3++) { + let n4 = r4.charChanges[e3]; if (_e(n4)) if (t2) for (let e4 = n4.modifiedStartLineNumber; e4 <= n4.modifiedEndLineNumber; e4++) { @@ -54772,8 +54772,8 @@ ${Object(zn.b)(wi)} } me.MINIMUM_EDITOR_WIDTH = 100; class ge extends he { - constructor(e2, t2, n2, i2, o2) { - super(e2, t2, n2, i2, o2); + constructor(e2, t2, n2, i2, r2) { + super(e2, t2, n2, i2, r2); } _createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion() { return null; @@ -54793,27 +54793,27 @@ ${Object(zn.b)(wi)} } setEnableSplitViewResizing(e2) { } - _getViewZones(e2, t2, n2, i2, o2, r2) { - return new be(e2, t2, n2, i2, o2, r2).getViewZones(); + _getViewZones(e2, t2, n2, i2, r2, o2) { + return new be(e2, t2, n2, i2, r2, o2).getViewZones(); } - _getOriginalEditorDecorations(e2, t2, n2, i2, o2) { - const r2 = String(this._removeColor); + _getOriginalEditorDecorations(e2, t2, n2, i2, r2) { + const o2 = String(this._removeColor); let s2 = {decorations: [], overviewZones: []}; for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) { let n4 = e2[t3]; - ve(n4) && (s2.decorations.push({range: new W.a(n4.originalStartLineNumber, 1, n4.originalEndLineNumber, 1073741824), options: pe.lineDeleteMargin}), s2.overviewZones.push(new U.a(n4.originalStartLineNumber, n4.originalEndLineNumber, r2))); + ve(n4) && (s2.decorations.push({range: new W.a(n4.originalStartLineNumber, 1, n4.originalEndLineNumber, 1073741824), options: pe.lineDeleteMargin}), s2.overviewZones.push(new U.a(n4.originalStartLineNumber, n4.originalEndLineNumber, o2))); } return s2; } - _getModifiedEditorDecorations(e2, t2, n2, i2, o2) { - const r2 = String(this._insertColor); - let s2 = {decorations: [], overviewZones: []}, a2 = o2.getModel(); - for (let i3 = 0, o3 = e2.length; i3 < o3; i3++) { - let o4 = e2[i3]; - if (_e(o4)) - if (s2.decorations.push({range: new W.a(o4.modifiedStartLineNumber, 1, o4.modifiedEndLineNumber, 1073741824), options: n2 ? pe.lineInsertWithSign : pe.lineInsert}), s2.overviewZones.push(new U.a(o4.modifiedStartLineNumber, o4.modifiedEndLineNumber, r2)), o4.charChanges) - for (let e3 = 0, n3 = o4.charChanges.length; e3 < n3; e3++) { - let n4 = o4.charChanges[e3]; + _getModifiedEditorDecorations(e2, t2, n2, i2, r2) { + const o2 = String(this._insertColor); + let s2 = {decorations: [], overviewZones: []}, a2 = r2.getModel(); + for (let i3 = 0, r3 = e2.length; i3 < r3; i3++) { + let r4 = e2[i3]; + if (_e(r4)) + if (s2.decorations.push({range: new W.a(r4.modifiedStartLineNumber, 1, r4.modifiedEndLineNumber, 1073741824), options: n2 ? pe.lineInsertWithSign : pe.lineInsert}), s2.overviewZones.push(new U.a(r4.modifiedStartLineNumber, r4.modifiedEndLineNumber, o2)), r4.charChanges) + for (let e3 = 0, n3 = r4.charChanges.length; e3 < n3; e3++) { + let n4 = r4.charChanges[e3]; if (_e(n4)) if (t2) for (let e4 = n4.modifiedStartLineNumber; e4 <= n4.modifiedEndLineNumber; e4++) { @@ -54824,7 +54824,7 @@ ${Object(zn.b)(wi)} s2.decorations.push(ue(n4.modifiedStartLineNumber, n4.modifiedStartColumn, n4.modifiedEndLineNumber, n4.modifiedEndColumn, pe.charInsert)); } else - s2.decorations.push(ue(o4.modifiedStartLineNumber, 1, o4.modifiedEndLineNumber, 1073741824, pe.charInsertWholeLine)); + s2.decorations.push(ue(r4.modifiedStartLineNumber, 1, r4.modifiedEndLineNumber, 1073741824, pe.charInsertWholeLine)); } return s2; } @@ -54833,8 +54833,8 @@ ${Object(zn.b)(wi)} } } class be extends he { - constructor(e2, t2, n2, i2, o2, r2) { - super(e2, t2, i2.getOption(51), n2, o2.getOption(51)), this.originalModel = i2.getModel(), this.modifiedEditorOptions = o2.getOptions(), this.modifiedEditorTabSize = o2.getModel().getOptions().tabSize, this.renderIndicators = r2; + constructor(e2, t2, n2, i2, r2, o2) { + super(e2, t2, i2.getOption(51), n2, r2.getOption(51)), this.originalModel = i2.getModel(), this.modifiedEditorOptions = r2.getOptions(), this.modifiedEditorTabSize = r2.getModel().getOptions().tabSize, this.renderIndicators = o2; } _createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion() { let e2 = document.createElement("div"); @@ -54851,26 +54851,26 @@ ${Object(zn.b)(wi)} let n4 = e2.charChanges[t3]; ve(n4) && i2.push(new S.a(new W.a(n4.originalStartLineNumber, n4.originalStartColumn, n4.originalEndLineNumber, n4.originalEndColumn), "char-delete", 0)); } - let o2 = Object(z.a)(1e4), r2 = []; + let r2 = Object(z.a)(1e4), o2 = []; const s2 = this.modifiedEditorOptions.get(117), a2 = this.modifiedEditorOptions.get(36), l2 = s2.decorationsWidth; let c2 = this.modifiedEditorOptions.get(51); const d2 = a2.typicalHalfwidthCharacterWidth; let u2 = 0; const p2 = []; for (let t3 = e2.originalStartLineNumber; t3 <= e2.originalEndLineNumber; t3++) - if (u2 = Math.max(u2, this._renderOriginalLine(t3 - e2.originalStartLineNumber, this.originalModel, this.modifiedEditorOptions, this.modifiedEditorTabSize, t3, i2, o2)), p2.push(this.originalModel.getLineContent(t3)), this.renderIndicators) { + if (u2 = Math.max(u2, this._renderOriginalLine(t3 - e2.originalStartLineNumber, this.originalModel, this.modifiedEditorOptions, this.modifiedEditorTabSize, t3, i2, r2)), p2.push(this.originalModel.getLineContent(t3)), this.renderIndicators) { let n3 = t3 - e2.originalStartLineNumber; - r2 = r2.concat([`<div class="delete-sign ${ae.classNames}" style="position:absolute;top:${n3 * c2}px;width:${l2}px;height:${c2}px;right:0;"></div>`]); + o2 = o2.concat([`<div class="delete-sign ${ae.classNames}" style="position:absolute;top:${n3 * c2}px;width:${l2}px;height:${c2}px;right:0;"></div>`]); } u2 += this.modifiedEditorOptions.get(85); let m2 = document.createElement("div"); - m2.className = "view-lines line-delete " + te.a, m2.innerHTML = o2.build(), h.a.applyFontInfoSlow(m2, a2); + m2.className = "view-lines line-delete " + te.a, m2.innerHTML = r2.build(), h.a.applyFontInfoSlow(m2, a2); let g2 = document.createElement("div"); - return g2.className = "inline-deleted-margin-view-zone", g2.innerHTML = r2.join(""), h.a.applyFontInfoSlow(g2, a2), {shouldNotShrink: true, afterLineNumber: e2.modifiedEndLineNumber === 0 ? e2.modifiedStartLineNumber : e2.modifiedStartLineNumber - 1, heightInLines: t2, minWidthInPx: u2 * d2, domNode: m2, marginDomNode: g2, diff: {originalStartLineNumber: e2.originalStartLineNumber, originalEndLineNumber: e2.originalEndLineNumber, modifiedStartLineNumber: e2.modifiedStartLineNumber, modifiedEndLineNumber: e2.modifiedEndLineNumber, originalContent: p2}}; + return g2.className = "inline-deleted-margin-view-zone", g2.innerHTML = o2.join(""), h.a.applyFontInfoSlow(g2, a2), {shouldNotShrink: true, afterLineNumber: e2.modifiedEndLineNumber === 0 ? e2.modifiedStartLineNumber : e2.modifiedStartLineNumber - 1, heightInLines: t2, minWidthInPx: u2 * d2, domNode: m2, marginDomNode: g2, diff: {originalStartLineNumber: e2.originalStartLineNumber, originalEndLineNumber: e2.originalEndLineNumber, modifiedStartLineNumber: e2.modifiedStartLineNumber, modifiedEndLineNumber: e2.modifiedEndLineNumber, originalContent: p2}}; } - _renderOriginalLine(e2, t2, n2, i2, o2, r2, s2) { - const a2 = t2.getLineTokens(o2), l2 = a2.getLineContent(), c2 = n2.get(36), d2 = H.a.filter(r2, o2, 1, l2.length + 1); - s2.appendASCIIString('<div class="view-line'), r2.length === 0 && s2.appendASCIIString(" char-delete"), s2.appendASCIIString('" style="top:'), s2.appendASCIIString(String(e2 * n2.get(51))), s2.appendASCIIString('px;width:1000000px;">'); + _renderOriginalLine(e2, t2, n2, i2, r2, o2, s2) { + const a2 = t2.getLineTokens(r2), l2 = a2.getLineContent(), c2 = n2.get(36), d2 = H.a.filter(o2, r2, 1, l2.length + 1); + s2.appendASCIIString('<div class="view-line'), o2.length === 0 && s2.appendASCIIString(" char-delete"), s2.appendASCIIString('" style="top:'), s2.appendASCIIString(String(e2 * n2.get(51))), s2.appendASCIIString('px;width:1000000px;">'); const h2 = S.d.isBasicASCII(l2, t2.mightContainNonBasicASCII()), u2 = S.d.containsRTL(l2, h2, t2.mightContainRTL()), p2 = Object(x.d)(new x.c(c2.isMonospace && !n2.get(24), c2.canUseHalfwidthRightwardsArrow, l2, false, h2, u2, 0, a2, d2, i2, 0, c2.spaceWidth, c2.middotWidth, c2.wsmiddotWidth, n2.get(95), n2.get(80), n2.get(74), n2.get(37) !== v.e.OFF, null), s2); s2.appendASCIIString("</div>"); const m2 = p2.characterMapping.getAbsoluteOffsets(); @@ -54888,10 +54888,10 @@ ${Object(zn.b)(wi)} n2 && (t2.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${n2}; }`), t2.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${n2}; }`), t2.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n2}; }`)); const i2 = e2.getColor(E.p); i2 && (t2.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${i2}; }`), t2.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${i2}; }`), t2.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${i2}; }`)); - const o2 = e2.getColor(E.o); - o2 && t2.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${o2}; }`); - const r2 = e2.getColor(E.q); - r2 && t2.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${r2}; }`); + const r2 = e2.getColor(E.o); + r2 && t2.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${r2}; }`); + const o2 = e2.getColor(E.q); + o2 && t2.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${o2}; }`); const s2 = e2.getColor(E.ic); s2 && t2.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${s2}; }`); const a2 = e2.getColor(E.l); @@ -54955,9 +54955,9 @@ ${Object(zn.b)(wi)} } }(e3)) || n3 && e3 && typeof e3.length == "number") { i2 && (e3 = i2); - var o2 = 0; + var r2 = 0; return function() { - return o2 >= e3.length ? {done: true} : {done: false, value: e3[o2++]}; + return r2 >= e3.length ? {done: true} : {done: false, value: e3[r2++]}; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); @@ -54973,7 +54973,7 @@ ${Object(zn.b)(wi)} e3.exports = {defaults: {baseUrl: null, breaks: false, gfm: true, headerIds: true, headerPrefix: "", highlight: null, langPrefix: "language-", mangle: true, pedantic: false, renderer: null, sanitize: false, sanitizer: null, silent: false, smartLists: false, smartypants: false, tokenizer: null, walkTokens: null, xhtml: false}, getDefaults: t3, changeDefaults: function(t4) { e3.exports.defaults = t4; }}; - }), o = (i.defaults, i.getDefaults, i.changeDefaults, /[&<>"']/), r = /[&<>"']/g, s = /[<>"']|&(?!#?\w+;)/, a = /[<>"']|&(?!#?\w+;)/g, l = {"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}, c = function(e3) { + }), r = (i.defaults, i.getDefaults, i.changeDefaults, /[&<>"']/), o = /[&<>"']/g, s = /[<>"']|&(?!#?\w+;)/, a = /[<>"']|&(?!#?\w+;)/g, l = {"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}, c = function(e3) { return l[e3]; }, d = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi; function h(e3) { @@ -54991,21 +54991,21 @@ ${Object(zn.b)(wi)} var i2 = e3.length; if (i2 === 0) return ""; - for (var o2 = 0; o2 < i2; ) { - var r2 = e3.charAt(i2 - o2 - 1); - if (r2 !== t3 || n3) { - if (r2 === t3 || !n3) + for (var r2 = 0; r2 < i2; ) { + var o2 = e3.charAt(i2 - r2 - 1); + if (o2 !== t3 || n3) { + if (o2 === t3 || !n3) break; - o2++; + r2++; } else - o2++; + r2++; } - return e3.substr(0, i2 - o2); + return e3.substr(0, i2 - r2); } var y = function(e3, t3) { if (t3) { - if (o.test(e3)) - return e3.replace(r, c); + if (r.test(e3)) + return e3.replace(o, c); } else if (s.test(e3)) return e3.replace(a, c); return e3; @@ -55043,7 +55043,7 @@ ${Object(zn.b)(wi)} return e3; }, T = function(e3, t3) { var n3 = e3.replace(/\|/g, function(e4, t4, n4) { - for (var i3 = false, o2 = t4; --o2 >= 0 && n4[o2] === "\\"; ) + for (var i3 = false, r2 = t4; --r2 >= 0 && n4[r2] === "\\"; ) i3 = !i3; return i3 ? "|" : " |"; }).split(/ \|/), i2 = 0; @@ -55058,24 +55058,24 @@ ${Object(zn.b)(wi)} }, L = w, N = function(e3, t3) { if (e3.indexOf(t3[1]) === -1) return -1; - for (var n3 = e3.length, i2 = 0, o2 = 0; o2 < n3; o2++) - if (e3[o2] === "\\") - o2++; - else if (e3[o2] === t3[0]) + for (var n3 = e3.length, i2 = 0, r2 = 0; r2 < n3; r2++) + if (e3[r2] === "\\") + r2++; + else if (e3[r2] === t3[0]) i2++; - else if (e3[o2] === t3[1] && --i2 < 0) - return o2; + else if (e3[r2] === t3[1] && --i2 < 0) + return r2; return -1; }, I = function(e3) { e3 && e3.sanitize && e3.silent; - }, O = i.defaults, D = L, A = T, R = y, M = N; + }, D = i.defaults, O = L, A = T, R = y, M = N; function P(e3, t3, n3) { - var i2 = t3.href, o2 = t3.title ? R(t3.title) : null, r2 = e3[1].replace(/\\([\[\]])/g, "$1"); - return e3[0].charAt(0) !== "!" ? {type: "link", raw: n3, href: i2, title: o2, text: r2} : {type: "image", raw: n3, href: i2, title: o2, text: R(r2)}; + var i2 = t3.href, r2 = t3.title ? R(t3.title) : null, o2 = e3[1].replace(/\\([\[\]])/g, "$1"); + return e3[0].charAt(0) !== "!" ? {type: "link", raw: n3, href: i2, title: r2, text: o2} : {type: "image", raw: n3, href: i2, title: r2, text: R(o2)}; } var F = function() { function e3(e4) { - this.options = e4 || O; + this.options = e4 || D; } var t3 = e3.prototype; return t3.space = function(e4) { @@ -55088,8 +55088,8 @@ ${Object(zn.b)(wi)} var i2 = t4[t4.length - 1]; if (i2 && i2.type === "paragraph") return {raw: n3[0], text: n3[0].trimRight()}; - var o2 = n3[0].replace(/^ {4}/gm, ""); - return {type: "code", raw: n3[0], codeBlockStyle: "indented", text: this.options.pedantic ? o2 : D(o2, "\n")}; + var r2 = n3[0].replace(/^ {4}/gm, ""); + return {type: "code", raw: n3[0], codeBlockStyle: "indented", text: this.options.pedantic ? r2 : O(r2, "\n")}; } }, t3.fences = function(e4) { var t4 = this.rules.block.fences.exec(e4); @@ -55115,10 +55115,10 @@ ${Object(zn.b)(wi)} if (t4) { var n3 = {type: "table", header: A(t4[1].replace(/^ *| *\| *$/g, "")), align: t4[2].replace(/^ *|\| *$/g, "").split(/ *\| */), cells: t4[3] ? t4[3].replace(/\n$/, "").split("\n") : [], raw: t4[0]}; if (n3.header.length === n3.align.length) { - var i2, o2 = n3.align.length; - for (i2 = 0; i2 < o2; i2++) + var i2, r2 = n3.align.length; + for (i2 = 0; i2 < r2; i2++) /^ *-+: *$/.test(n3.align[i2]) ? n3.align[i2] = "right" : /^ *:-+: *$/.test(n3.align[i2]) ? n3.align[i2] = "center" : /^ *:-+ *$/.test(n3.align[i2]) ? n3.align[i2] = "left" : n3.align[i2] = null; - for (o2 = n3.cells.length, i2 = 0; i2 < o2; i2++) + for (r2 = n3.cells.length, i2 = 0; i2 < r2; i2++) n3.cells[i2] = A(n3.cells[i2], n3.header.length); return n3; } @@ -55136,8 +55136,8 @@ ${Object(zn.b)(wi)} }, t3.list = function(e4) { var t4 = this.rules.block.list.exec(e4); if (t4) { - for (var n3, i2, o2, r2, s2, a2, l2, c2 = t4[0], d2 = t4[2], h2 = d2.length > 1, u2 = d2[d2.length - 1] === ")", p2 = {type: "list", raw: c2, ordered: h2, start: h2 ? +d2.slice(0, -1) : "", loose: false, items: []}, m2 = t4[0].match(this.rules.block.item), g2 = false, f2 = m2.length, b2 = 0; b2 < f2; b2++) - c2 = n3 = m2[b2], i2 = n3.length, ~(n3 = n3.replace(/^ *([*+-]|\d+[.)]) */, "")).indexOf("\n ") && (i2 -= n3.length, n3 = this.options.pedantic ? n3.replace(/^ {1,4}/gm, "") : n3.replace(new RegExp("^ {1," + i2 + "}", "gm"), "")), b2 !== f2 - 1 && (o2 = this.rules.block.bullet.exec(m2[b2 + 1])[0], (h2 ? o2.length === 1 || !u2 && o2[o2.length - 1] === ")" : o2.length > 1 || this.options.smartLists && o2 !== d2) && (r2 = m2.slice(b2 + 1).join("\n"), p2.raw = p2.raw.substring(0, p2.raw.length - r2.length), b2 = f2 - 1)), s2 = g2 || /\n\n(?!\s*$)/.test(n3), b2 !== f2 - 1 && (g2 = n3.charAt(n3.length - 1) === "\n", s2 || (s2 = g2)), s2 && (p2.loose = true), l2 = void 0, (a2 = /^\[[ xX]\] /.test(n3)) && (l2 = n3[1] !== " ", n3 = n3.replace(/^\[[ xX]\] +/, "")), p2.items.push({type: "list_item", raw: c2, task: a2, checked: l2, loose: s2, text: n3}); + for (var n3, i2, r2, o2, s2, a2, l2, c2 = t4[0], d2 = t4[2], h2 = d2.length > 1, u2 = d2[d2.length - 1] === ")", p2 = {type: "list", raw: c2, ordered: h2, start: h2 ? +d2.slice(0, -1) : "", loose: false, items: []}, m2 = t4[0].match(this.rules.block.item), g2 = false, f2 = m2.length, b2 = 0; b2 < f2; b2++) + c2 = n3 = m2[b2], i2 = n3.length, ~(n3 = n3.replace(/^ *([*+-]|\d+[.)]) */, "")).indexOf("\n ") && (i2 -= n3.length, n3 = this.options.pedantic ? n3.replace(/^ {1,4}/gm, "") : n3.replace(new RegExp("^ {1," + i2 + "}", "gm"), "")), b2 !== f2 - 1 && (r2 = this.rules.block.bullet.exec(m2[b2 + 1])[0], (h2 ? r2.length === 1 || !u2 && r2[r2.length - 1] === ")" : r2.length > 1 || this.options.smartLists && r2 !== d2) && (o2 = m2.slice(b2 + 1).join("\n"), p2.raw = p2.raw.substring(0, p2.raw.length - o2.length), b2 = f2 - 1)), s2 = g2 || /\n\n(?!\s*$)/.test(n3), b2 !== f2 - 1 && (g2 = n3.charAt(n3.length - 1) === "\n", s2 || (s2 = g2)), s2 && (p2.loose = true), l2 = void 0, (a2 = /^\[[ xX]\] /.test(n3)) && (l2 = n3[1] !== " ", n3 = n3.replace(/^\[[ xX]\] +/, "")), p2.items.push({type: "list_item", raw: c2, task: a2, checked: l2, loose: s2, text: n3}); return p2; } }, t3.html = function(e4) { @@ -55154,10 +55154,10 @@ ${Object(zn.b)(wi)} var n3 = {type: "table", header: A(t4[1].replace(/^ *| *\| *$/g, "")), align: t4[2].replace(/^ *|\| *$/g, "").split(/ *\| */), cells: t4[3] ? t4[3].replace(/\n$/, "").split("\n") : []}; if (n3.header.length === n3.align.length) { n3.raw = t4[0]; - var i2, o2 = n3.align.length; - for (i2 = 0; i2 < o2; i2++) + var i2, r2 = n3.align.length; + for (i2 = 0; i2 < r2; i2++) /^ *-+: *$/.test(n3.align[i2]) ? n3.align[i2] = "right" : /^ *:-+: *$/.test(n3.align[i2]) ? n3.align[i2] = "center" : /^ *:-+ *$/.test(n3.align[i2]) ? n3.align[i2] = "left" : n3.align[i2] = null; - for (o2 = n3.cells.length, i2 = 0; i2 < o2; i2++) + for (r2 = n3.cells.length, i2 = 0; i2 < r2; i2++) n3.cells[i2] = A(n3.cells[i2].replace(/^ *\| *| *\| *$/g, ""), n3.header.length); return n3; } @@ -55192,21 +55192,21 @@ ${Object(zn.b)(wi)} var i2 = (t4[0].indexOf("!") === 0 ? 5 : 4) + t4[1].length + n3; t4[2] = t4[2].substring(0, n3), t4[0] = t4[0].substring(0, i2).trim(), t4[3] = ""; } - var o2 = t4[2], r2 = ""; + var r2 = t4[2], o2 = ""; if (this.options.pedantic) { - var s2 = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o2); - s2 ? (o2 = s2[1], r2 = s2[3]) : r2 = ""; + var s2 = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r2); + s2 ? (r2 = s2[1], o2 = s2[3]) : o2 = ""; } else - r2 = t4[3] ? t4[3].slice(1, -1) : ""; - return P(t4, {href: (o2 = o2.trim().replace(/^<([\s\S]*)>$/, "$1")) ? o2.replace(this.rules.inline._escapes, "$1") : o2, title: r2 ? r2.replace(this.rules.inline._escapes, "$1") : r2}, t4[0]); + o2 = t4[3] ? t4[3].slice(1, -1) : ""; + return P(t4, {href: (r2 = r2.trim().replace(/^<([\s\S]*)>$/, "$1")) ? r2.replace(this.rules.inline._escapes, "$1") : r2, title: o2 ? o2.replace(this.rules.inline._escapes, "$1") : o2}, t4[0]); } }, t3.reflink = function(e4, t4) { var n3; if ((n3 = this.rules.inline.reflink.exec(e4)) || (n3 = this.rules.inline.nolink.exec(e4))) { var i2 = (n3[2] || n3[1]).replace(/\s+/g, " "); if (!(i2 = t4[i2.toLowerCase()]) || !i2.href) { - var o2 = n3[0].charAt(0); - return {type: "text", raw: o2, text: o2}; + var r2 = n3[0].charAt(0); + return {type: "text", raw: r2, text: r2}; } return P(n3, i2, n3[0]); } @@ -55215,26 +55215,26 @@ ${Object(zn.b)(wi)} var i2 = this.rules.inline.strong.start.exec(e4); if (i2 && (!i2[1] || i2[1] && (n3 === "" || this.rules.inline.punctuation.exec(n3)))) { t4 = t4.slice(-1 * e4.length); - var o2, r2 = i2[0] === "**" ? this.rules.inline.strong.endAst : this.rules.inline.strong.endUnd; - for (r2.lastIndex = 0; (i2 = r2.exec(t4)) != null; ) - if (o2 = this.rules.inline.strong.middle.exec(t4.slice(0, i2.index + 3))) - return {type: "strong", raw: e4.slice(0, o2[0].length), text: e4.slice(2, o2[0].length - 2)}; + var r2, o2 = i2[0] === "**" ? this.rules.inline.strong.endAst : this.rules.inline.strong.endUnd; + for (o2.lastIndex = 0; (i2 = o2.exec(t4)) != null; ) + if (r2 = this.rules.inline.strong.middle.exec(t4.slice(0, i2.index + 3))) + return {type: "strong", raw: e4.slice(0, r2[0].length), text: e4.slice(2, r2[0].length - 2)}; } }, t3.em = function(e4, t4, n3) { n3 === void 0 && (n3 = ""); var i2 = this.rules.inline.em.start.exec(e4); if (i2 && (!i2[1] || i2[1] && (n3 === "" || this.rules.inline.punctuation.exec(n3)))) { t4 = t4.slice(-1 * e4.length); - var o2, r2 = i2[0] === "*" ? this.rules.inline.em.endAst : this.rules.inline.em.endUnd; - for (r2.lastIndex = 0; (i2 = r2.exec(t4)) != null; ) - if (o2 = this.rules.inline.em.middle.exec(t4.slice(0, i2.index + 2))) - return {type: "em", raw: e4.slice(0, o2[0].length), text: e4.slice(1, o2[0].length - 1)}; + var r2, o2 = i2[0] === "*" ? this.rules.inline.em.endAst : this.rules.inline.em.endUnd; + for (o2.lastIndex = 0; (i2 = o2.exec(t4)) != null; ) + if (r2 = this.rules.inline.em.middle.exec(t4.slice(0, i2.index + 2))) + return {type: "em", raw: e4.slice(0, r2[0].length), text: e4.slice(1, r2[0].length - 1)}; } }, t3.codespan = function(e4) { var t4 = this.rules.inline.code.exec(e4); if (t4) { - var n3 = t4[2].replace(/\n/g, " "), i2 = /[^ ]/.test(n3), o2 = n3.startsWith(" ") && n3.endsWith(" "); - return i2 && o2 && (n3 = n3.substring(1, n3.length - 1)), n3 = R(n3, true), {type: "codespan", raw: t4[0], text: n3}; + var n3 = t4[2].replace(/\n/g, " "), i2 = /[^ ]/.test(n3), r2 = n3.startsWith(" ") && n3.endsWith(" "); + return i2 && r2 && (n3 = n3.substring(1, n3.length - 1)), n3 = R(n3, true), {type: "codespan", raw: t4[0], text: n3}; } }, t3.br = function(e4) { var t4 = this.rules.inline.br.exec(e4); @@ -55245,28 +55245,28 @@ ${Object(zn.b)(wi)} if (t4) return {type: "del", raw: t4[0], text: t4[1]}; }, t3.autolink = function(e4, t4) { - var n3, i2, o2 = this.rules.inline.autolink.exec(e4); - if (o2) - return i2 = o2[2] === "@" ? "mailto:" + (n3 = R(this.options.mangle ? t4(o2[1]) : o2[1])) : n3 = R(o2[1]), {type: "link", raw: o2[0], text: n3, href: i2, tokens: [{type: "text", raw: n3, text: n3}]}; + var n3, i2, r2 = this.rules.inline.autolink.exec(e4); + if (r2) + return i2 = r2[2] === "@" ? "mailto:" + (n3 = R(this.options.mangle ? t4(r2[1]) : r2[1])) : n3 = R(r2[1]), {type: "link", raw: r2[0], text: n3, href: i2, tokens: [{type: "text", raw: n3, text: n3}]}; }, t3.url = function(e4, t4) { var n3; if (n3 = this.rules.inline.url.exec(e4)) { - var i2, o2; + var i2, r2; if (n3[2] === "@") - o2 = "mailto:" + (i2 = R(this.options.mangle ? t4(n3[0]) : n3[0])); + r2 = "mailto:" + (i2 = R(this.options.mangle ? t4(n3[0]) : n3[0])); else { - var r2; + var o2; do { - r2 = n3[0], n3[0] = this.rules.inline._backpedal.exec(n3[0])[0]; - } while (r2 !== n3[0]); - i2 = R(n3[0]), o2 = n3[1] === "www." ? "http://" + i2 : i2; + o2 = n3[0], n3[0] = this.rules.inline._backpedal.exec(n3[0])[0]; + } while (o2 !== n3[0]); + i2 = R(n3[0]), r2 = n3[1] === "www." ? "http://" + i2 : i2; } - return {type: "link", raw: n3[0], text: i2, href: o2, tokens: [{type: "text", raw: i2, text: i2}]}; + return {type: "link", raw: n3[0], text: i2, href: r2, tokens: [{type: "text", raw: i2, text: i2}]}; } }, t3.inlineText = function(e4, t4, n3) { - var i2, o2 = this.rules.inline.text.exec(e4); - if (o2) - return i2 = t4 ? this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(o2[0]) : R(o2[0]) : o2[0] : R(this.options.smartypants ? n3(o2[0]) : o2[0]), {type: "text", raw: o2[0], text: i2}; + var i2, r2 = this.rules.inline.text.exec(e4); + if (r2) + return i2 = t4 ? this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(r2[0]) : R(r2[0]) : r2[0] : R(this.options.smartypants ? n3(r2[0]) : r2[0]), {type: "text", raw: r2[0], text: i2}; }, e3; }(), W = k, z = x, B = E, j = {newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/, hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, heading: /^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/, blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, list: /^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, html: "^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))", def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, nptable: W, table: W, lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/, _paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/, text: /^[^\n]+/, _label: /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/, _title: /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/}; j.def = z(j.def).replace("label", j._label).replace("title", j._title).getRegex(), j.bullet = /(?:[*+-]|\d{1,9}[.)])/, j.item = /^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/, j.item = z(j.item, "gm").replace(/bull/g, j.bullet).getRegex(), j.list = z(j.list).replace(/bull/g, j.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + j.def.source + ")").getRegex(), j._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", j._comment = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, j.html = z(j.html, "i").replace("comment", j._comment).replace("tag", j._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), j.paragraph = z(j._paragraph).replace("hr", j.hr).replace("heading", " {0,3}#{1,6} ").replace("|lheading", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag", j._tag).getRegex(), j.blockquote = z(j.blockquote).replace("paragraph", j.paragraph).getRegex(), j.normal = B({}, j), j.gfm = B({}, j.normal, {nptable: "^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)", table: "^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}), j.gfm.nptable = z(j.gfm.nptable).replace("hr", j.hr).replace("heading", " {0,3}#{1,6} ").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag", j._tag).getRegex(), j.gfm.table = z(j.gfm.table).replace("hr", j.hr).replace("heading", " {0,3}#{1,6} ").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag", j._tag).getRegex(), j.pedantic = B({}, j.normal, {html: z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/, fences: W, paragraph: z(j.normal._paragraph).replace("hr", j.hr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", j.lheading).replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").getRegex()}); @@ -55277,8 +55277,8 @@ ${Object(zn.b)(wi)} return e3.replace(/---/g, "\u2014").replace(/--/g, "\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1\u2018").replace(/'/g, "\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1\u201C").replace(/"/g, "\u201D").replace(/\.{3}/g, "\u2026"); } function G(e3) { - var t3, n3, i2 = "", o2 = e3.length; - for (t3 = 0; t3 < o2; t3++) + var t3, n3, i2 = "", r2 = e3.length; + for (t3 = 0; t3 < r2; t3++) n3 = e3.charCodeAt(t3), Math.random() > 0.5 && (n3 = "x" + n3.toString(16)), i2 += "&#" + n3 + ";"; return i2; } @@ -55291,11 +55291,11 @@ ${Object(zn.b)(wi)} t3.lex = function(e3, n4) { return new t3(n4).lex(e3); }; - var n3, i2, o2, r2 = t3.prototype; - return r2.lex = function(e3) { + var n3, i2, r2, o2 = t3.prototype; + return o2.lex = function(e3) { return e3 = e3.replace(/\r\n|\r/g, "\n").replace(/\t/g, " "), this.blockTokens(e3, this.tokens, true), this.inline(this.tokens), this.tokens; - }, r2.blockTokens = function(e3, t4, n4) { - var i3, o3, r3, s2; + }, o2.blockTokens = function(e3, t4, n4) { + var i3, r3, o3, s2; for (t4 === void 0 && (t4 = []), n4 === void 0 && (n4 = true), e3 = e3.replace(/^ +$/gm, ""); e3; ) if (i3 = this.tokenizer.space(e3)) e3 = e3.substring(i3.raw.length), i3.type && t4.push(i3); @@ -55312,8 +55312,8 @@ ${Object(zn.b)(wi)} else if (i3 = this.tokenizer.blockquote(e3)) e3 = e3.substring(i3.raw.length), i3.tokens = this.blockTokens(i3.text, [], n4), t4.push(i3); else if (i3 = this.tokenizer.list(e3)) { - for (e3 = e3.substring(i3.raw.length), r3 = i3.items.length, o3 = 0; o3 < r3; o3++) - i3.items[o3].tokens = this.blockTokens(i3.items[o3].text, [], false); + for (e3 = e3.substring(i3.raw.length), o3 = i3.items.length, r3 = 0; r3 < o3; r3++) + i3.items[r3].tokens = this.blockTokens(i3.items[r3].text, [], false); t4.push(i3); } else if (i3 = this.tokenizer.html(e3)) e3 = e3.substring(i3.raw.length), t4.push(i3); @@ -55336,8 +55336,8 @@ ${Object(zn.b)(wi)} throw new Error(a2); } return t4; - }, r2.inline = function(e3) { - var t4, n4, i3, o3, r3, s2, a2 = e3.length; + }, o2.inline = function(e3) { + var t4, n4, i3, r3, o3, s2, a2 = e3.length; for (t4 = 0; t4 < a2; t4++) switch ((s2 = e3[t4]).type) { case "paragraph": @@ -55346,23 +55346,23 @@ ${Object(zn.b)(wi)} s2.tokens = [], this.inlineTokens(s2.text, s2.tokens); break; case "table": - for (s2.tokens = {header: [], cells: []}, o3 = s2.header.length, n4 = 0; n4 < o3; n4++) + for (s2.tokens = {header: [], cells: []}, r3 = s2.header.length, n4 = 0; n4 < r3; n4++) s2.tokens.header[n4] = [], this.inlineTokens(s2.header[n4], s2.tokens.header[n4]); - for (o3 = s2.cells.length, n4 = 0; n4 < o3; n4++) - for (r3 = s2.cells[n4], s2.tokens.cells[n4] = [], i3 = 0; i3 < r3.length; i3++) - s2.tokens.cells[n4][i3] = [], this.inlineTokens(r3[i3], s2.tokens.cells[n4][i3]); + for (r3 = s2.cells.length, n4 = 0; n4 < r3; n4++) + for (o3 = s2.cells[n4], s2.tokens.cells[n4] = [], i3 = 0; i3 < o3.length; i3++) + s2.tokens.cells[n4][i3] = [], this.inlineTokens(o3[i3], s2.tokens.cells[n4][i3]); break; case "blockquote": this.inline(s2.tokens); break; case "list": - for (o3 = s2.items.length, n4 = 0; n4 < o3; n4++) + for (r3 = s2.items.length, n4 = 0; n4 < r3; n4++) this.inline(s2.items[n4].tokens); } return e3; - }, r2.inlineTokens = function(e3, t4, n4, i3, o3) { - var r3; - t4 === void 0 && (t4 = []), n4 === void 0 && (n4 = false), i3 === void 0 && (i3 = false), o3 === void 0 && (o3 = ""); + }, o2.inlineTokens = function(e3, t4, n4, i3, r3) { + var o3; + t4 === void 0 && (t4 = []), n4 === void 0 && (n4 = false), i3 === void 0 && (i3 = false), r3 === void 0 && (r3 = ""); var s2, a2 = e3; if (this.tokens.links) { var l2 = Object.keys(this.tokens.links); @@ -55373,29 +55373,29 @@ ${Object(zn.b)(wi)} for (; (s2 = this.tokenizer.rules.inline.blockSkip.exec(a2)) != null; ) a2 = a2.slice(0, s2.index) + "[" + "a".repeat(s2[0].length - 2) + "]" + a2.slice(this.tokenizer.rules.inline.blockSkip.lastIndex); for (; e3; ) - if (r3 = this.tokenizer.escape(e3)) - e3 = e3.substring(r3.raw.length), t4.push(r3); - else if (r3 = this.tokenizer.tag(e3, n4, i3)) - e3 = e3.substring(r3.raw.length), n4 = r3.inLink, i3 = r3.inRawBlock, t4.push(r3); - else if (r3 = this.tokenizer.link(e3)) - e3 = e3.substring(r3.raw.length), r3.type === "link" && (r3.tokens = this.inlineTokens(r3.text, [], true, i3)), t4.push(r3); - else if (r3 = this.tokenizer.reflink(e3, this.tokens.links)) - e3 = e3.substring(r3.raw.length), r3.type === "link" && (r3.tokens = this.inlineTokens(r3.text, [], true, i3)), t4.push(r3); - else if (r3 = this.tokenizer.strong(e3, a2, o3)) - e3 = e3.substring(r3.raw.length), r3.tokens = this.inlineTokens(r3.text, [], n4, i3), t4.push(r3); - else if (r3 = this.tokenizer.em(e3, a2, o3)) - e3 = e3.substring(r3.raw.length), r3.tokens = this.inlineTokens(r3.text, [], n4, i3), t4.push(r3); - else if (r3 = this.tokenizer.codespan(e3)) - e3 = e3.substring(r3.raw.length), t4.push(r3); - else if (r3 = this.tokenizer.br(e3)) - e3 = e3.substring(r3.raw.length), t4.push(r3); - else if (r3 = this.tokenizer.del(e3)) - e3 = e3.substring(r3.raw.length), r3.tokens = this.inlineTokens(r3.text, [], n4, i3), t4.push(r3); - else if (r3 = this.tokenizer.autolink(e3, G)) - e3 = e3.substring(r3.raw.length), t4.push(r3); - else if (n4 || !(r3 = this.tokenizer.url(e3, G))) { - if (r3 = this.tokenizer.inlineText(e3, i3, K)) - e3 = e3.substring(r3.raw.length), o3 = r3.raw.slice(-1), t4.push(r3); + if (o3 = this.tokenizer.escape(e3)) + e3 = e3.substring(o3.raw.length), t4.push(o3); + else if (o3 = this.tokenizer.tag(e3, n4, i3)) + e3 = e3.substring(o3.raw.length), n4 = o3.inLink, i3 = o3.inRawBlock, t4.push(o3); + else if (o3 = this.tokenizer.link(e3)) + e3 = e3.substring(o3.raw.length), o3.type === "link" && (o3.tokens = this.inlineTokens(o3.text, [], true, i3)), t4.push(o3); + else if (o3 = this.tokenizer.reflink(e3, this.tokens.links)) + e3 = e3.substring(o3.raw.length), o3.type === "link" && (o3.tokens = this.inlineTokens(o3.text, [], true, i3)), t4.push(o3); + else if (o3 = this.tokenizer.strong(e3, a2, r3)) + e3 = e3.substring(o3.raw.length), o3.tokens = this.inlineTokens(o3.text, [], n4, i3), t4.push(o3); + else if (o3 = this.tokenizer.em(e3, a2, r3)) + e3 = e3.substring(o3.raw.length), o3.tokens = this.inlineTokens(o3.text, [], n4, i3), t4.push(o3); + else if (o3 = this.tokenizer.codespan(e3)) + e3 = e3.substring(o3.raw.length), t4.push(o3); + else if (o3 = this.tokenizer.br(e3)) + e3 = e3.substring(o3.raw.length), t4.push(o3); + else if (o3 = this.tokenizer.del(e3)) + e3 = e3.substring(o3.raw.length), o3.tokens = this.inlineTokens(o3.text, [], n4, i3), t4.push(o3); + else if (o3 = this.tokenizer.autolink(e3, G)) + e3 = e3.substring(o3.raw.length), t4.push(o3); + else if (n4 || !(o3 = this.tokenizer.url(e3, G))) { + if (o3 = this.tokenizer.inlineText(e3, i3, K)) + e3 = e3.substring(o3.raw.length), r3 = o3.raw.slice(-1), t4.push(o3); else if (e3) { var c2 = "Infinite loop on byte: " + e3.charCodeAt(0); if (this.options.silent) { @@ -55405,11 +55405,11 @@ ${Object(zn.b)(wi)} throw new Error(c2); } } else - e3 = e3.substring(r3.raw.length), t4.push(r3); + e3 = e3.substring(o3.raw.length), t4.push(o3); return t4; - }, n3 = t3, o2 = [{key: "rules", get: function() { + }, n3 = t3, r2 = [{key: "rules", get: function() { return {block: q, inline: $}; - }}], (i2 = null) && e2(n3.prototype, i2), o2 && e2(n3, o2), t3; + }}], (i2 = null) && e2(n3.prototype, i2), r2 && e2(n3, r2), t3; }(), Z = i.defaults, X = S, Q = y, J = function() { function e3(e4) { this.options = e4 || Z; @@ -55418,8 +55418,8 @@ ${Object(zn.b)(wi)} return t3.code = function(e4, t4, n3) { var i2 = (t4 || "").match(/\S*/)[0]; if (this.options.highlight) { - var o2 = this.options.highlight(e4, i2); - o2 != null && o2 !== e4 && (n3 = true, e4 = o2); + var r2 = this.options.highlight(e4, i2); + r2 != null && r2 !== e4 && (n3 = true, e4 = r2); } return i2 ? '<pre><code class="' + this.options.langPrefix + Q(i2, true) + '">' + (n3 ? e4 : Q(e4, true)) + "</code></pre>\n" : "<pre><code>" + (n3 ? e4 : Q(e4, true)) + "</code></pre>\n"; }, t3.blockquote = function(e4) { @@ -55513,7 +55513,7 @@ ${Object(zn.b)(wi)} var n3 = this.serialize(e4); return this.getNextSafeSlug(n3, t4.dryrun); }, e3; - }(), ne = i.defaults, ie = C, oe = function() { + }(), ne = i.defaults, ie = C, re = function() { function e3(e4) { this.options = e4 || ne, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new ee(), this.slugger = new te(); } @@ -55523,7 +55523,7 @@ ${Object(zn.b)(wi)} var t3 = e3.prototype; return t3.parse = function(e4, t4) { t4 === void 0 && (t4 = true); - var n3, i2, o2, r2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2, v2, w2 = "", y2 = e4.length; + var n3, i2, r2, o2, s2, a2, l2, c2, d2, h2, u2, p2, m2, g2, f2, b2, _2, v2, w2 = "", y2 = e4.length; for (n3 = 0; n3 < y2; n3++) switch ((h2 = e4[n3]).type) { case "space": @@ -55538,11 +55538,11 @@ ${Object(zn.b)(wi)} w2 += this.renderer.code(h2.text, h2.lang, h2.escaped); continue; case "table": - for (c2 = "", l2 = "", r2 = h2.header.length, i2 = 0; i2 < r2; i2++) + for (c2 = "", l2 = "", o2 = h2.header.length, i2 = 0; i2 < o2; i2++) l2 += this.renderer.tablecell(this.parseInline(h2.tokens.header[i2]), {header: true, align: h2.align[i2]}); - for (c2 += this.renderer.tablerow(l2), d2 = "", r2 = h2.cells.length, i2 = 0; i2 < r2; i2++) { - for (l2 = "", s2 = (a2 = h2.tokens.cells[i2]).length, o2 = 0; o2 < s2; o2++) - l2 += this.renderer.tablecell(this.parseInline(a2[o2]), {header: false, align: h2.align[o2]}); + for (c2 += this.renderer.tablerow(l2), d2 = "", o2 = h2.cells.length, i2 = 0; i2 < o2; i2++) { + for (l2 = "", s2 = (a2 = h2.tokens.cells[i2]).length, r2 = 0; r2 < s2; r2++) + l2 += this.renderer.tablecell(this.parseInline(a2[r2]), {header: false, align: h2.align[r2]}); d2 += this.renderer.tablerow(l2); } w2 += this.renderer.table(c2, d2); @@ -55551,7 +55551,7 @@ ${Object(zn.b)(wi)} d2 = this.parse(h2.tokens), w2 += this.renderer.blockquote(d2); continue; case "list": - for (u2 = h2.ordered, p2 = h2.start, m2 = h2.loose, r2 = h2.items.length, d2 = "", i2 = 0; i2 < r2; i2++) + for (u2 = h2.ordered, p2 = h2.start, m2 = h2.loose, o2 = h2.items.length, d2 = "", i2 = 0; i2 < o2; i2++) b2 = (f2 = h2.items[i2]).checked, _2 = f2.task, g2 = "", f2.task && (v2 = this.renderer.checkbox(b2), m2 ? f2.tokens.length > 0 && f2.tokens[0].type === "text" ? (f2.tokens[0].text = v2 + " " + f2.tokens[0].text, f2.tokens[0].tokens && f2.tokens[0].tokens.length > 0 && f2.tokens[0].tokens[0].type === "text" && (f2.tokens[0].tokens[0].text = v2 + " " + f2.tokens[0].tokens[0].text)) : f2.tokens.unshift({type: "text", text: v2}) : g2 += v2), g2 += this.parse(f2.tokens, m2), d2 += this.renderer.listitem(g2, _2, b2); w2 += this.renderer.list(d2, u2, p2); continue; @@ -55575,38 +55575,38 @@ ${Object(zn.b)(wi)} return w2; }, t3.parseInline = function(e4, t4) { t4 = t4 || this.renderer; - var n3, i2, o2 = "", r2 = e4.length; - for (n3 = 0; n3 < r2; n3++) + var n3, i2, r2 = "", o2 = e4.length; + for (n3 = 0; n3 < o2; n3++) switch ((i2 = e4[n3]).type) { case "escape": - o2 += t4.text(i2.text); + r2 += t4.text(i2.text); break; case "html": - o2 += t4.html(i2.text); + r2 += t4.html(i2.text); break; case "link": - o2 += t4.link(i2.href, i2.title, this.parseInline(i2.tokens, t4)); + r2 += t4.link(i2.href, i2.title, this.parseInline(i2.tokens, t4)); break; case "image": - o2 += t4.image(i2.href, i2.title, i2.text); + r2 += t4.image(i2.href, i2.title, i2.text); break; case "strong": - o2 += t4.strong(this.parseInline(i2.tokens, t4)); + r2 += t4.strong(this.parseInline(i2.tokens, t4)); break; case "em": - o2 += t4.em(this.parseInline(i2.tokens, t4)); + r2 += t4.em(this.parseInline(i2.tokens, t4)); break; case "codespan": - o2 += t4.codespan(i2.text); + r2 += t4.codespan(i2.text); break; case "br": - o2 += t4.br(); + r2 += t4.br(); break; case "del": - o2 += t4.del(this.parseInline(i2.tokens, t4)); + r2 += t4.del(this.parseInline(i2.tokens, t4)); break; case "text": - o2 += t4.text(i2.text); + r2 += t4.text(i2.text); break; default: var s2 = 'Token with "' + i2.type + '" type was not found.'; @@ -55614,49 +55614,49 @@ ${Object(zn.b)(wi)} return void console.error(s2); throw new Error(s2); } - return o2; + return r2; }, e3; - }(), re = E, se = I, ae = y, le = i.getDefaults, ce = i.changeDefaults, de = i.defaults; + }(), oe = E, se = I, ae = y, le = i.getDefaults, ce = i.changeDefaults, de = i.defaults; function he(e3, t3, n3) { if (e3 == null) throw new Error("marked(): input parameter is undefined or null"); if (typeof e3 != "string") throw new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e3) + ", string expected"); - if (typeof t3 == "function" && (n3 = t3, t3 = null), t3 = re({}, he.defaults, t3 || {}), se(t3), n3) { - var i2, o2 = t3.highlight; + if (typeof t3 == "function" && (n3 = t3, t3 = null), t3 = oe({}, he.defaults, t3 || {}), se(t3), n3) { + var i2, r2 = t3.highlight; try { i2 = Y.lex(e3, t3); } catch (e4) { return n3(e4); } - var r2 = function(e4) { - var r3; + var o2 = function(e4) { + var o3; if (!e4) try { - r3 = oe.parse(i2, t3); + o3 = re.parse(i2, t3); } catch (t4) { e4 = t4; } - return t3.highlight = o2, e4 ? n3(e4) : n3(null, r3); + return t3.highlight = r2, e4 ? n3(e4) : n3(null, o3); }; - if (!o2 || o2.length < 3) - return r2(); + if (!r2 || r2.length < 3) + return o2(); if (delete t3.highlight, !i2.length) - return r2(); + return o2(); var s2 = 0; return he.walkTokens(i2, function(e4) { e4.type === "code" && (s2++, setTimeout(function() { - o2(e4.text, e4.lang, function(t4, n4) { + r2(e4.text, e4.lang, function(t4, n4) { if (t4) - return r2(t4); - n4 != null && n4 !== e4.text && (e4.text = n4, e4.escaped = true), --s2 == 0 && r2(); + return o2(t4); + n4 != null && n4 !== e4.text && (e4.text = n4, e4.escaped = true), --s2 == 0 && o2(); }); }, 0)); - }), void (s2 === 0 && r2()); + }), void (s2 === 0 && o2()); } try { var a2 = Y.lex(e3, t3); - return t3.walkTokens && he.walkTokens(a2, t3.walkTokens), oe.parse(a2, t3); + return t3.walkTokens && he.walkTokens(a2, t3.walkTokens), re.parse(a2, t3); } catch (e4) { if (e4.message += "\nPlease report this to https://github.com/markedjs/marked.", t3.silent) return "<p>An error occurred:</p><pre>" + ae(e4.message + "", true) + "</pre>"; @@ -55664,34 +55664,34 @@ ${Object(zn.b)(wi)} } } return he.options = he.setOptions = function(e3) { - return re(he.defaults, e3), ce(he.defaults), he; + return oe(he.defaults, e3), ce(he.defaults), he; }, he.getDefaults = le, he.defaults = de, he.use = function(e3) { - var t3 = re({}, e3); + var t3 = oe({}, e3); if (e3.renderer && function() { var n4 = he.defaults.renderer || new J(), i2 = function(t4) { var i3 = n4[t4]; n4[t4] = function() { - for (var o3 = arguments.length, r2 = new Array(o3), s2 = 0; s2 < o3; s2++) - r2[s2] = arguments[s2]; - var a2 = e3.renderer[t4].apply(n4, r2); - return a2 === false && (a2 = i3.apply(n4, r2)), a2; + for (var r3 = arguments.length, o2 = new Array(r3), s2 = 0; s2 < r3; s2++) + o2[s2] = arguments[s2]; + var a2 = e3.renderer[t4].apply(n4, o2); + return a2 === false && (a2 = i3.apply(n4, o2)), a2; }; }; - for (var o2 in e3.renderer) - i2(o2); + for (var r2 in e3.renderer) + i2(r2); t3.renderer = n4; }(), e3.tokenizer && function() { var n4 = he.defaults.tokenizer || new F(), i2 = function(t4) { var i3 = n4[t4]; n4[t4] = function() { - for (var o3 = arguments.length, r2 = new Array(o3), s2 = 0; s2 < o3; s2++) - r2[s2] = arguments[s2]; - var a2 = e3.tokenizer[t4].apply(n4, r2); - return a2 === false && (a2 = i3.apply(n4, r2)), a2; + for (var r3 = arguments.length, o2 = new Array(r3), s2 = 0; s2 < r3; s2++) + o2[s2] = arguments[s2]; + var a2 = e3.tokenizer[t4].apply(n4, o2); + return a2 === false && (a2 = i3.apply(n4, o2)), a2; }; }; - for (var o2 in e3.tokenizer) - i2(o2); + for (var r2 in e3.tokenizer) + i2(r2); t3.tokenizer = n4; }(), e3.walkTokens) { var n3 = he.defaults.walkTokens; @@ -55701,65 +55701,65 @@ ${Object(zn.b)(wi)} } he.setOptions(t3); }, he.walkTokens = function(e3, t3) { - for (var i2, o2 = n2(e3); !(i2 = o2()).done; ) { - var r2 = i2.value; - switch (t3(r2), r2.type) { + for (var i2, r2 = n2(e3); !(i2 = r2()).done; ) { + var o2 = i2.value; + switch (t3(o2), o2.type) { case "table": - for (var s2, a2 = n2(r2.tokens.header); !(s2 = a2()).done; ) { + for (var s2, a2 = n2(o2.tokens.header); !(s2 = a2()).done; ) { var l2 = s2.value; he.walkTokens(l2, t3); } - for (var c2, d2 = n2(r2.tokens.cells); !(c2 = d2()).done; ) + for (var c2, d2 = n2(o2.tokens.cells); !(c2 = d2()).done; ) for (var h2, u2 = n2(c2.value); !(h2 = u2()).done; ) { var p2 = h2.value; he.walkTokens(p2, t3); } break; case "list": - he.walkTokens(r2.items, t3); + he.walkTokens(o2.items, t3); break; default: - r2.tokens && he.walkTokens(r2.tokens, t3); + o2.tokens && he.walkTokens(o2.tokens, t3); } } - }, he.Parser = oe, he.parser = oe.parse, he.Renderer = J, he.TextRenderer = ee, he.Lexer = Y, he.lexer = Y.lex, he.Tokenizer = F, he.Slugger = te, he.parse = he, he; + }, he.Parser = re, he.parser = re.parse, he.Renderer = J, he.TextRenderer = ee, he.Lexer = Y, he.lexer = Y.lex, he.Tokenizer = F, he.Slugger = te, he.parse = he, he; }(); }, function(e, t, n) { - var i = n(32), o = n(250); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(250); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - var i = n(32), o = n(263); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(263); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - var i = n(32), o = n(297); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(297); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - var i = n(32), o = n(304); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(304); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - var i = n(32), o = n(201); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(201); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n/* Default standalone editor fonts */\n.monaco-editor {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n --monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\n stroke-width: 1.2px;\n}\n\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\n stroke-width: 1.2px;\n}\n\n.monaco-hover p {\n margin: 0;\n}\n\n/* The hc-black theme is already high contrast optimized */\n.monaco-editor.hc-black {\n -ms-high-contrast-adjust: none;\n}\n/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\n@media screen and (-ms-high-contrast:active) {\n\n /* current line highlight */\n .monaco-editor.vs .view-overlays .current-line,\n .monaco-editor.vs-dark .view-overlays .current-line {\n border-color: windowtext !important;\n border-left: 0;\n border-right: 0;\n }\n\n /* view cursors */\n .monaco-editor.vs .cursor,\n .monaco-editor.vs-dark .cursor {\n background-color: windowtext !important;\n }\n /* dnd target */\n .monaco-editor.vs .dnd-target,\n .monaco-editor.vs-dark .dnd-target {\n border-color: windowtext !important;\n }\n\n /* selected text background */\n .monaco-editor.vs .selected-text,\n .monaco-editor.vs-dark .selected-text {\n background-color: highlight !important;\n }\n\n /* allow the text to have a transparent background. */\n .monaco-editor.vs .view-line,\n .monaco-editor.vs-dark .view-line {\n -ms-high-contrast-adjust: none;\n }\n\n /* text color */\n .monaco-editor.vs .view-line span,\n .monaco-editor.vs-dark .view-line span {\n color: windowtext !important;\n }\n /* selected text color */\n .monaco-editor.vs .view-line span.inline-selected-text,\n .monaco-editor.vs-dark .view-line span.inline-selected-text {\n color: highlighttext !important;\n }\n\n /* allow decorations */\n .monaco-editor.vs .view-overlays,\n .monaco-editor.vs-dark .view-overlays {\n -ms-high-contrast-adjust: none;\n }\n\n /* various decorations */\n .monaco-editor.vs .selectionHighlight,\n .monaco-editor.vs-dark .selectionHighlight,\n .monaco-editor.vs .wordHighlight,\n .monaco-editor.vs-dark .wordHighlight,\n .monaco-editor.vs .wordHighlightStrong,\n .monaco-editor.vs-dark .wordHighlightStrong,\n .monaco-editor.vs .reference-decoration,\n .monaco-editor.vs-dark .reference-decoration {\n border: 2px dotted highlight !important;\n background: transparent !important;\n box-sizing: border-box;\n }\n .monaco-editor.vs .rangeHighlight,\n .monaco-editor.vs-dark .rangeHighlight {\n background: transparent !important;\n border: 1px dotted activeborder !important;\n box-sizing: border-box;\n }\n .monaco-editor.vs .bracket-match,\n .monaco-editor.vs-dark .bracket-match {\n border-color: windowtext !important;\n background: transparent !important;\n }\n\n /* find widget */\n .monaco-editor.vs .findMatch,\n .monaco-editor.vs-dark .findMatch,\n .monaco-editor.vs .currentFindMatch,\n .monaco-editor.vs-dark .currentFindMatch {\n border: 2px dotted activeborder !important;\n background: transparent !important;\n box-sizing: border-box;\n }\n .monaco-editor.vs .find-widget,\n .monaco-editor.vs-dark .find-widget {\n border: 1px solid windowtext;\n }\n\n /* list - used by suggest widget */\n .monaco-editor.vs .monaco-list .monaco-list-row,\n .monaco-editor.vs-dark .monaco-list .monaco-list-row {\n -ms-high-contrast-adjust: none;\n color: windowtext !important;\n }\n .monaco-editor.vs .monaco-list .monaco-list-row.focused,\n .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\n color: highlighttext !important;\n background-color: highlight !important;\n }\n .monaco-editor.vs .monaco-list .monaco-list-row:hover,\n .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\n background: transparent !important;\n border: 1px solid highlight;\n box-sizing: border-box;\n }\n\n /* scrollbars */\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar,\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\n -ms-high-contrast-adjust: none;\n background: background !important;\n border: 1px solid windowtext;\n box-sizing: border-box;\n }\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\n background: windowtext !important;\n }\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\n background: highlight !important;\n }\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\n background: highlight !important;\n }\n\n /* overview ruler */\n .monaco-editor.vs .decorationsOverviewRuler,\n .monaco-editor.vs-dark .decorationsOverviewRuler {\n opacity: 0;\n }\n\n /* minimap */\n .monaco-editor.vs .minimap,\n .monaco-editor.vs-dark .minimap {\n display: none;\n }\n\n /* squiggles */\n .monaco-editor.vs .squiggly-d-error,\n .monaco-editor.vs-dark .squiggly-d-error {\n background: transparent !important;\n border-bottom: 4px double #E47777;\n }\n .monaco-editor.vs .squiggly-c-warning,\n .monaco-editor.vs-dark .squiggly-c-warning {\n border-bottom: 4px double #71B771;\n }\n .monaco-editor.vs .squiggly-b-info,\n .monaco-editor.vs-dark .squiggly-b-info {\n border-bottom: 4px double #71B771;\n }\n .monaco-editor.vs .squiggly-a-hint,\n .monaco-editor.vs-dark .squiggly-a-hint {\n border-bottom: 4px double #6c6c6c;\n }\n\n /* contextmenu */\n .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\n -ms-high-contrast-adjust: none;\n color: highlighttext !important;\n background-color: highlight !important;\n }\n .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\n .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\n -ms-high-contrast-adjust: none;\n background: transparent !important;\n border: 1px solid highlight;\n box-sizing: border-box;\n }\n\n /* diff editor */\n .monaco-diff-editor.vs .diffOverviewRuler,\n .monaco-diff-editor.vs-dark .diffOverviewRuler {\n display: none;\n }\n .monaco-editor.vs .line-insert,\n .monaco-editor.vs-dark .line-insert,\n .monaco-editor.vs .line-delete,\n .monaco-editor.vs-dark .line-delete {\n background: transparent !important;\n border: 1px solid highlight !important;\n box-sizing: border-box;\n }\n .monaco-editor.vs .char-insert,\n .monaco-editor.vs-dark .char-insert,\n .monaco-editor.vs .char-delete,\n .monaco-editor.vs-dark .char-delete {\n background: transparent !important;\n }\n}\n\n/*.monaco-editor.vs [tabindex="0"]:focus {\n outline: 1px solid rgba(0, 122, 204, 0.4);\n outline-offset: -1px;\n opacity: 1 !important;\n}\n\n.monaco-editor.vs-dark [tabindex="0"]:focus {\n outline: 1px solid rgba(14, 99, 156, 0.6);\n outline-offset: -1px;\n opacity: 1 !important;\n}*/\n', ""]), e.exports = t; + (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n\r\n/* Default standalone editor fonts */\r\n.monaco-editor {\r\n font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\r\n --monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\r\n stroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n stroke-width: 1.2px;\r\n}\r\n\r\n.monaco-hover p {\r\n margin: 0;\r\n}\r\n\r\n/* The hc-black theme is already high contrast optimized */\r\n.monaco-editor.hc-black {\r\n -ms-high-contrast-adjust: none;\r\n}\r\n/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\r\n@media screen and (-ms-high-contrast:active) {\r\n\r\n /* current line highlight */\r\n .monaco-editor.vs .view-overlays .current-line,\r\n .monaco-editor.vs-dark .view-overlays .current-line {\r\n border-color: windowtext !important;\r\n border-left: 0;\r\n border-right: 0;\r\n }\r\n\r\n /* view cursors */\r\n .monaco-editor.vs .cursor,\r\n .monaco-editor.vs-dark .cursor {\r\n background-color: windowtext !important;\r\n }\r\n /* dnd target */\r\n .monaco-editor.vs .dnd-target,\r\n .monaco-editor.vs-dark .dnd-target {\r\n border-color: windowtext !important;\r\n }\r\n\r\n /* selected text background */\r\n .monaco-editor.vs .selected-text,\r\n .monaco-editor.vs-dark .selected-text {\r\n background-color: highlight !important;\r\n }\r\n\r\n /* allow the text to have a transparent background. */\r\n .monaco-editor.vs .view-line,\r\n .monaco-editor.vs-dark .view-line {\r\n -ms-high-contrast-adjust: none;\r\n }\r\n\r\n /* text color */\r\n .monaco-editor.vs .view-line span,\r\n .monaco-editor.vs-dark .view-line span {\r\n color: windowtext !important;\r\n }\r\n /* selected text color */\r\n .monaco-editor.vs .view-line span.inline-selected-text,\r\n .monaco-editor.vs-dark .view-line span.inline-selected-text {\r\n color: highlighttext !important;\r\n }\r\n\r\n /* allow decorations */\r\n .monaco-editor.vs .view-overlays,\r\n .monaco-editor.vs-dark .view-overlays {\r\n -ms-high-contrast-adjust: none;\r\n }\r\n\r\n /* various decorations */\r\n .monaco-editor.vs .selectionHighlight,\r\n .monaco-editor.vs-dark .selectionHighlight,\r\n .monaco-editor.vs .wordHighlight,\r\n .monaco-editor.vs-dark .wordHighlight,\r\n .monaco-editor.vs .wordHighlightStrong,\r\n .monaco-editor.vs-dark .wordHighlightStrong,\r\n .monaco-editor.vs .reference-decoration,\r\n .monaco-editor.vs-dark .reference-decoration {\r\n border: 2px dotted highlight !important;\r\n background: transparent !important;\r\n box-sizing: border-box;\r\n }\r\n .monaco-editor.vs .rangeHighlight,\r\n .monaco-editor.vs-dark .rangeHighlight {\r\n background: transparent !important;\r\n border: 1px dotted activeborder !important;\r\n box-sizing: border-box;\r\n }\r\n .monaco-editor.vs .bracket-match,\r\n .monaco-editor.vs-dark .bracket-match {\r\n border-color: windowtext !important;\r\n background: transparent !important;\r\n }\r\n\r\n /* find widget */\r\n .monaco-editor.vs .findMatch,\r\n .monaco-editor.vs-dark .findMatch,\r\n .monaco-editor.vs .currentFindMatch,\r\n .monaco-editor.vs-dark .currentFindMatch {\r\n border: 2px dotted activeborder !important;\r\n background: transparent !important;\r\n box-sizing: border-box;\r\n }\r\n .monaco-editor.vs .find-widget,\r\n .monaco-editor.vs-dark .find-widget {\r\n border: 1px solid windowtext;\r\n }\r\n\r\n /* list - used by suggest widget */\r\n .monaco-editor.vs .monaco-list .monaco-list-row,\r\n .monaco-editor.vs-dark .monaco-list .monaco-list-row {\r\n -ms-high-contrast-adjust: none;\r\n color: windowtext !important;\r\n }\r\n .monaco-editor.vs .monaco-list .monaco-list-row.focused,\r\n .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\r\n color: highlighttext !important;\r\n background-color: highlight !important;\r\n }\r\n .monaco-editor.vs .monaco-list .monaco-list-row:hover,\r\n .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\r\n background: transparent !important;\r\n border: 1px solid highlight;\r\n box-sizing: border-box;\r\n }\r\n\r\n /* scrollbars */\r\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar,\r\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\r\n -ms-high-contrast-adjust: none;\r\n background: background !important;\r\n border: 1px solid windowtext;\r\n box-sizing: border-box;\r\n }\r\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\r\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n background: windowtext !important;\r\n }\r\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\r\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n background: highlight !important;\r\n }\r\n .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\r\n .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n background: highlight !important;\r\n }\r\n\r\n /* overview ruler */\r\n .monaco-editor.vs .decorationsOverviewRuler,\r\n .monaco-editor.vs-dark .decorationsOverviewRuler {\r\n opacity: 0;\r\n }\r\n\r\n /* minimap */\r\n .monaco-editor.vs .minimap,\r\n .monaco-editor.vs-dark .minimap {\r\n display: none;\r\n }\r\n\r\n /* squiggles */\r\n .monaco-editor.vs .squiggly-d-error,\r\n .monaco-editor.vs-dark .squiggly-d-error {\r\n background: transparent !important;\r\n border-bottom: 4px double #E47777;\r\n }\r\n .monaco-editor.vs .squiggly-c-warning,\r\n .monaco-editor.vs-dark .squiggly-c-warning {\r\n border-bottom: 4px double #71B771;\r\n }\r\n .monaco-editor.vs .squiggly-b-info,\r\n .monaco-editor.vs-dark .squiggly-b-info {\r\n border-bottom: 4px double #71B771;\r\n }\r\n .monaco-editor.vs .squiggly-a-hint,\r\n .monaco-editor.vs-dark .squiggly-a-hint {\r\n border-bottom: 4px double #6c6c6c;\r\n }\r\n\r\n /* contextmenu */\r\n .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n -ms-high-contrast-adjust: none;\r\n color: highlighttext !important;\r\n background-color: highlight !important;\r\n }\r\n .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\r\n .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\r\n -ms-high-contrast-adjust: none;\r\n background: transparent !important;\r\n border: 1px solid highlight;\r\n box-sizing: border-box;\r\n }\r\n\r\n /* diff editor */\r\n .monaco-diff-editor.vs .diffOverviewRuler,\r\n .monaco-diff-editor.vs-dark .diffOverviewRuler {\r\n display: none;\r\n }\r\n .monaco-editor.vs .line-insert,\r\n .monaco-editor.vs-dark .line-insert,\r\n .monaco-editor.vs .line-delete,\r\n .monaco-editor.vs-dark .line-delete {\r\n background: transparent !important;\r\n border: 1px solid highlight !important;\r\n box-sizing: border-box;\r\n }\r\n .monaco-editor.vs .char-insert,\r\n .monaco-editor.vs-dark .char-insert,\r\n .monaco-editor.vs .char-delete,\r\n .monaco-editor.vs-dark .char-delete {\r\n background: transparent !important;\r\n }\r\n}\r\n\r\n/*.monaco-editor.vs [tabindex="0"]:focus {\r\n outline: 1px solid rgba(0, 122, 204, 0.4);\r\n outline-offset: -1px;\r\n opacity: 1 !important;\r\n}\r\n\r\n.monaco-editor.vs-dark [tabindex="0"]:focus {\r\n outline: 1px solid rgba(14, 99, 156, 0.6);\r\n outline-offset: -1px;\r\n opacity: 1 !important;\r\n}*/\r\n', ""]), e.exports = t; }, function(e, t, n) { "use strict"; (function(e2) { - var i = n(203), o = n(204), r = n(205); + var i = n(203), r = n(204), o = n(205); function s() { return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; } @@ -55793,8 +55793,8 @@ ${Object(zn.b)(wi)} typeof n3 == "string" && n3 !== "" || (n3 = "utf8"); if (!l.isEncoding(n3)) throw new TypeError('"encoding" must be a valid string encoding'); - var i3 = 0 | m(t3, n3), o2 = (e4 = a(e4, i3)).write(t3, n3); - o2 !== i3 && (e4 = e4.slice(0, o2)); + var i3 = 0 | m(t3, n3), r2 = (e4 = a(e4, i3)).write(t3, n3); + r2 !== i3 && (e4 = e4.slice(0, r2)); return e4; }(e3, t2, n2) : function(e4, t3) { if (l.isBuffer(t3)) { @@ -55804,7 +55804,7 @@ ${Object(zn.b)(wi)} if (t3) { if (typeof ArrayBuffer != "undefined" && t3.buffer instanceof ArrayBuffer || "length" in t3) return typeof t3.length != "number" || (i3 = t3.length) != i3 ? a(e4, 0) : u(e4, t3); - if (t3.type === "Buffer" && r(t3.data)) + if (t3.type === "Buffer" && o(t3.data)) return u(e4, t3.data); } var i3; @@ -55906,26 +55906,26 @@ ${Object(zn.b)(wi)} var i2 = e3[t2]; e3[t2] = e3[n2], e3[n2] = i2; } - function b(e3, t2, n2, i2, o2) { + function b(e3, t2, n2, i2, r2) { if (e3.length === 0) return -1; - if (typeof n2 == "string" ? (i2 = n2, n2 = 0) : n2 > 2147483647 ? n2 = 2147483647 : n2 < -2147483648 && (n2 = -2147483648), n2 = +n2, isNaN(n2) && (n2 = o2 ? 0 : e3.length - 1), n2 < 0 && (n2 = e3.length + n2), n2 >= e3.length) { - if (o2) + if (typeof n2 == "string" ? (i2 = n2, n2 = 0) : n2 > 2147483647 ? n2 = 2147483647 : n2 < -2147483648 && (n2 = -2147483648), n2 = +n2, isNaN(n2) && (n2 = r2 ? 0 : e3.length - 1), n2 < 0 && (n2 = e3.length + n2), n2 >= e3.length) { + if (r2) return -1; n2 = e3.length - 1; } else if (n2 < 0) { - if (!o2) + if (!r2) return -1; n2 = 0; } if (typeof t2 == "string" && (t2 = l.from(t2, i2)), l.isBuffer(t2)) - return t2.length === 0 ? -1 : _(e3, t2, n2, i2, o2); + return t2.length === 0 ? -1 : _(e3, t2, n2, i2, r2); if (typeof t2 == "number") - return t2 &= 255, l.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? o2 ? Uint8Array.prototype.indexOf.call(e3, t2, n2) : Uint8Array.prototype.lastIndexOf.call(e3, t2, n2) : _(e3, [t2], n2, i2, o2); + return t2 &= 255, l.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? r2 ? Uint8Array.prototype.indexOf.call(e3, t2, n2) : Uint8Array.prototype.lastIndexOf.call(e3, t2, n2) : _(e3, [t2], n2, i2, r2); throw new TypeError("val must be string, number or Buffer"); } - function _(e3, t2, n2, i2, o2) { - var r2, s2 = 1, a2 = e3.length, l2 = t2.length; + function _(e3, t2, n2, i2, r2) { + var o2, s2 = 1, a2 = e3.length, l2 = t2.length; if (i2 !== void 0 && ((i2 = String(i2).toLowerCase()) === "ucs2" || i2 === "ucs-2" || i2 === "utf16le" || i2 === "utf-16le")) { if (e3.length < 2 || t2.length < 2) return -1; @@ -55934,34 +55934,34 @@ ${Object(zn.b)(wi)} function c2(e4, t3) { return s2 === 1 ? e4[t3] : e4.readUInt16BE(t3 * s2); } - if (o2) { + if (r2) { var d2 = -1; - for (r2 = n2; r2 < a2; r2++) - if (c2(e3, r2) === c2(t2, d2 === -1 ? 0 : r2 - d2)) { - if (d2 === -1 && (d2 = r2), r2 - d2 + 1 === l2) + for (o2 = n2; o2 < a2; o2++) + if (c2(e3, o2) === c2(t2, d2 === -1 ? 0 : o2 - d2)) { + if (d2 === -1 && (d2 = o2), o2 - d2 + 1 === l2) return d2 * s2; } else - d2 !== -1 && (r2 -= r2 - d2), d2 = -1; + d2 !== -1 && (o2 -= o2 - d2), d2 = -1; } else - for (n2 + l2 > a2 && (n2 = a2 - l2), r2 = n2; r2 >= 0; r2--) { + for (n2 + l2 > a2 && (n2 = a2 - l2), o2 = n2; o2 >= 0; o2--) { for (var h2 = true, u2 = 0; u2 < l2; u2++) - if (c2(e3, r2 + u2) !== c2(t2, u2)) { + if (c2(e3, o2 + u2) !== c2(t2, u2)) { h2 = false; break; } if (h2) - return r2; + return o2; } return -1; } function v(e3, t2, n2, i2) { n2 = Number(n2) || 0; - var o2 = e3.length - n2; - i2 ? (i2 = Number(i2)) > o2 && (i2 = o2) : i2 = o2; - var r2 = t2.length; - if (r2 % 2 != 0) + var r2 = e3.length - n2; + i2 ? (i2 = Number(i2)) > r2 && (i2 = r2) : i2 = r2; + var o2 = t2.length; + if (o2 % 2 != 0) throw new TypeError("Invalid hex string"); - i2 > r2 / 2 && (i2 = r2 / 2); + i2 > o2 / 2 && (i2 = o2 / 2); for (var s2 = 0; s2 < i2; ++s2) { var a2 = parseInt(t2.substr(2 * s2, 2), 16); if (isNaN(a2)) @@ -55988,9 +55988,9 @@ ${Object(zn.b)(wi)} } function S(e3, t2, n2, i2) { return V(function(e4, t3) { - for (var n3, i3, o2, r2 = [], s2 = 0; s2 < e4.length && !((t3 -= 2) < 0); ++s2) - n3 = e4.charCodeAt(s2), i3 = n3 >> 8, o2 = n3 % 256, r2.push(o2), r2.push(i3); - return r2; + for (var n3, i3, r2, o2 = [], s2 = 0; s2 < e4.length && !((t3 -= 2) < 0); ++s2) + n3 = e4.charCodeAt(s2), i3 = n3 >> 8, r2 = n3 % 256, o2.push(r2), o2.push(i3); + return o2; }(t2, e3.length - n2), e3, n2, i2); } function k(e3, t2, n2) { @@ -55998,23 +55998,23 @@ ${Object(zn.b)(wi)} } function E(e3, t2, n2) { n2 = Math.min(e3.length, n2); - for (var i2 = [], o2 = t2; o2 < n2; ) { - var r2, s2, a2, l2, c2 = e3[o2], d2 = null, h2 = c2 > 239 ? 4 : c2 > 223 ? 3 : c2 > 191 ? 2 : 1; - if (o2 + h2 <= n2) + for (var i2 = [], r2 = t2; r2 < n2; ) { + var o2, s2, a2, l2, c2 = e3[r2], d2 = null, h2 = c2 > 239 ? 4 : c2 > 223 ? 3 : c2 > 191 ? 2 : 1; + if (r2 + h2 <= n2) switch (h2) { case 1: c2 < 128 && (d2 = c2); break; case 2: - (192 & (r2 = e3[o2 + 1])) == 128 && (l2 = (31 & c2) << 6 | 63 & r2) > 127 && (d2 = l2); + (192 & (o2 = e3[r2 + 1])) == 128 && (l2 = (31 & c2) << 6 | 63 & o2) > 127 && (d2 = l2); break; case 3: - r2 = e3[o2 + 1], s2 = e3[o2 + 2], (192 & r2) == 128 && (192 & s2) == 128 && (l2 = (15 & c2) << 12 | (63 & r2) << 6 | 63 & s2) > 2047 && (l2 < 55296 || l2 > 57343) && (d2 = l2); + o2 = e3[r2 + 1], s2 = e3[r2 + 2], (192 & o2) == 128 && (192 & s2) == 128 && (l2 = (15 & c2) << 12 | (63 & o2) << 6 | 63 & s2) > 2047 && (l2 < 55296 || l2 > 57343) && (d2 = l2); break; case 4: - r2 = e3[o2 + 1], s2 = e3[o2 + 2], a2 = e3[o2 + 3], (192 & r2) == 128 && (192 & s2) == 128 && (192 & a2) == 128 && (l2 = (15 & c2) << 18 | (63 & r2) << 12 | (63 & s2) << 6 | 63 & a2) > 65535 && l2 < 1114112 && (d2 = l2); + o2 = e3[r2 + 1], s2 = e3[r2 + 2], a2 = e3[r2 + 3], (192 & o2) == 128 && (192 & s2) == 128 && (192 & a2) == 128 && (l2 = (15 & c2) << 18 | (63 & o2) << 12 | (63 & s2) << 6 | 63 & a2) > 65535 && l2 < 1114112 && (d2 = l2); } - d2 === null ? (d2 = 65533, h2 = 1) : d2 > 65535 && (d2 -= 65536, i2.push(d2 >>> 10 & 1023 | 55296), d2 = 56320 | 1023 & d2), i2.push(d2), o2 += h2; + d2 === null ? (d2 = 65533, h2 = 1) : d2 > 65535 && (d2 -= 65536, i2.push(d2 >>> 10 & 1023 | 55296), d2 = 56320 | 1023 & d2), i2.push(d2), r2 += h2; } return function(e4) { var t3 = e4.length; @@ -56057,9 +56057,9 @@ ${Object(zn.b)(wi)} throw new TypeError("Arguments must be Buffers"); if (e3 === t2) return 0; - for (var n2 = e3.length, i2 = t2.length, o2 = 0, r2 = Math.min(n2, i2); o2 < r2; ++o2) - if (e3[o2] !== t2[o2]) { - n2 = e3[o2], i2 = t2[o2]; + for (var n2 = e3.length, i2 = t2.length, r2 = 0, o2 = Math.min(n2, i2); r2 < o2; ++r2) + if (e3[r2] !== t2[r2]) { + n2 = e3[r2], i2 = t2[r2]; break; } return n2 < i2 ? -1 : i2 < n2 ? 1 : 0; @@ -56081,7 +56081,7 @@ ${Object(zn.b)(wi)} return false; } }, l.concat = function(e3, t2) { - if (!r(e3)) + if (!o(e3)) throw new TypeError('"list" argument must be an Array of Buffers'); if (e3.length === 0) return l.alloc(0); @@ -56089,12 +56089,12 @@ ${Object(zn.b)(wi)} if (t2 === void 0) for (t2 = 0, n2 = 0; n2 < e3.length; ++n2) t2 += e3[n2].length; - var i2 = l.allocUnsafe(t2), o2 = 0; + var i2 = l.allocUnsafe(t2), r2 = 0; for (n2 = 0; n2 < e3.length; ++n2) { var s2 = e3[n2]; if (!l.isBuffer(s2)) throw new TypeError('"list" argument must be an Array of Buffers'); - s2.copy(i2, o2), o2 += s2.length; + s2.copy(i2, r2), r2 += s2.length; } return i2; }, l.byteLength = m, l.prototype._isBuffer = true, l.prototype.swap16 = function() { @@ -56128,25 +56128,25 @@ ${Object(zn.b)(wi)} }, l.prototype.inspect = function() { var e3 = "", n2 = t.INSPECT_MAX_BYTES; return this.length > 0 && (e3 = this.toString("hex", 0, n2).match(/.{2}/g).join(" "), this.length > n2 && (e3 += " ... ")), "<Buffer " + e3 + ">"; - }, l.prototype.compare = function(e3, t2, n2, i2, o2) { + }, l.prototype.compare = function(e3, t2, n2, i2, r2) { if (!l.isBuffer(e3)) throw new TypeError("Argument must be a Buffer"); - if (t2 === void 0 && (t2 = 0), n2 === void 0 && (n2 = e3 ? e3.length : 0), i2 === void 0 && (i2 = 0), o2 === void 0 && (o2 = this.length), t2 < 0 || n2 > e3.length || i2 < 0 || o2 > this.length) + if (t2 === void 0 && (t2 = 0), n2 === void 0 && (n2 = e3 ? e3.length : 0), i2 === void 0 && (i2 = 0), r2 === void 0 && (r2 = this.length), t2 < 0 || n2 > e3.length || i2 < 0 || r2 > this.length) throw new RangeError("out of range index"); - if (i2 >= o2 && t2 >= n2) + if (i2 >= r2 && t2 >= n2) return 0; - if (i2 >= o2) + if (i2 >= r2) return -1; if (t2 >= n2) return 1; if (this === e3) return 0; - for (var r2 = (o2 >>>= 0) - (i2 >>>= 0), s2 = (n2 >>>= 0) - (t2 >>>= 0), a2 = Math.min(r2, s2), c2 = this.slice(i2, o2), d2 = e3.slice(t2, n2), h2 = 0; h2 < a2; ++h2) + for (var o2 = (r2 >>>= 0) - (i2 >>>= 0), s2 = (n2 >>>= 0) - (t2 >>>= 0), a2 = Math.min(o2, s2), c2 = this.slice(i2, r2), d2 = e3.slice(t2, n2), h2 = 0; h2 < a2; ++h2) if (c2[h2] !== d2[h2]) { - r2 = c2[h2], s2 = d2[h2]; + o2 = c2[h2], s2 = d2[h2]; break; } - return r2 < s2 ? -1 : s2 < r2 ? 1 : 0; + return o2 < s2 ? -1 : s2 < o2 ? 1 : 0; }, l.prototype.includes = function(e3, t2, n2) { return this.indexOf(e3, t2, n2) !== -1; }, l.prototype.indexOf = function(e3, t2, n2) { @@ -56163,11 +56163,11 @@ ${Object(zn.b)(wi)} throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); t2 |= 0, isFinite(n2) ? (n2 |= 0, i2 === void 0 && (i2 = "utf8")) : (i2 = n2, n2 = void 0); } - var o2 = this.length - t2; - if ((n2 === void 0 || n2 > o2) && (n2 = o2), e3.length > 0 && (n2 < 0 || t2 < 0) || t2 > this.length) + var r2 = this.length - t2; + if ((n2 === void 0 || n2 > r2) && (n2 = r2), e3.length > 0 && (n2 < 0 || t2 < 0) || t2 > this.length) throw new RangeError("Attempt to write outside buffer bounds"); i2 || (i2 = "utf8"); - for (var r2 = false; ; ) + for (var o2 = false; ; ) switch (i2) { case "hex": return v(this, e3, t2, n2); @@ -56187,9 +56187,9 @@ ${Object(zn.b)(wi)} case "utf-16le": return S(this, e3, t2, n2); default: - if (r2) + if (o2) throw new TypeError("Unknown encoding: " + i2); - i2 = ("" + i2).toLowerCase(), r2 = true; + i2 = ("" + i2).toLowerCase(), o2 = true; } }, l.prototype.toJSON = function() { return {type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0)}; @@ -56197,178 +56197,178 @@ ${Object(zn.b)(wi)} function T(e3, t2, n2) { var i2 = ""; n2 = Math.min(e3.length, n2); - for (var o2 = t2; o2 < n2; ++o2) - i2 += String.fromCharCode(127 & e3[o2]); + for (var r2 = t2; r2 < n2; ++r2) + i2 += String.fromCharCode(127 & e3[r2]); return i2; } function L(e3, t2, n2) { var i2 = ""; n2 = Math.min(e3.length, n2); - for (var o2 = t2; o2 < n2; ++o2) - i2 += String.fromCharCode(e3[o2]); + for (var r2 = t2; r2 < n2; ++r2) + i2 += String.fromCharCode(e3[r2]); return i2; } function N(e3, t2, n2) { var i2 = e3.length; (!t2 || t2 < 0) && (t2 = 0), (!n2 || n2 < 0 || n2 > i2) && (n2 = i2); - for (var o2 = "", r2 = t2; r2 < n2; ++r2) - o2 += z(e3[r2]); - return o2; + for (var r2 = "", o2 = t2; o2 < n2; ++o2) + r2 += z(e3[o2]); + return r2; } function I(e3, t2, n2) { - for (var i2 = e3.slice(t2, n2), o2 = "", r2 = 0; r2 < i2.length; r2 += 2) - o2 += String.fromCharCode(i2[r2] + 256 * i2[r2 + 1]); - return o2; + for (var i2 = e3.slice(t2, n2), r2 = "", o2 = 0; o2 < i2.length; o2 += 2) + r2 += String.fromCharCode(i2[o2] + 256 * i2[o2 + 1]); + return r2; } - function O(e3, t2, n2) { + function D(e3, t2, n2) { if (e3 % 1 != 0 || e3 < 0) throw new RangeError("offset is not uint"); if (e3 + t2 > n2) throw new RangeError("Trying to access beyond buffer length"); } - function D(e3, t2, n2, i2, o2, r2) { + function O(e3, t2, n2, i2, r2, o2) { if (!l.isBuffer(e3)) throw new TypeError('"buffer" argument must be a Buffer instance'); - if (t2 > o2 || t2 < r2) + if (t2 > r2 || t2 < o2) throw new RangeError('"value" argument is out of bounds'); if (n2 + i2 > e3.length) throw new RangeError("Index out of range"); } function A(e3, t2, n2, i2) { t2 < 0 && (t2 = 65535 + t2 + 1); - for (var o2 = 0, r2 = Math.min(e3.length - n2, 2); o2 < r2; ++o2) - e3[n2 + o2] = (t2 & 255 << 8 * (i2 ? o2 : 1 - o2)) >>> 8 * (i2 ? o2 : 1 - o2); + for (var r2 = 0, o2 = Math.min(e3.length - n2, 2); r2 < o2; ++r2) + e3[n2 + r2] = (t2 & 255 << 8 * (i2 ? r2 : 1 - r2)) >>> 8 * (i2 ? r2 : 1 - r2); } function R(e3, t2, n2, i2) { t2 < 0 && (t2 = 4294967295 + t2 + 1); - for (var o2 = 0, r2 = Math.min(e3.length - n2, 4); o2 < r2; ++o2) - e3[n2 + o2] = t2 >>> 8 * (i2 ? o2 : 3 - o2) & 255; + for (var r2 = 0, o2 = Math.min(e3.length - n2, 4); r2 < o2; ++r2) + e3[n2 + r2] = t2 >>> 8 * (i2 ? r2 : 3 - r2) & 255; } - function M(e3, t2, n2, i2, o2, r2) { + function M(e3, t2, n2, i2, r2, o2) { if (n2 + i2 > e3.length) throw new RangeError("Index out of range"); if (n2 < 0) throw new RangeError("Index out of range"); } - function P(e3, t2, n2, i2, r2) { - return r2 || M(e3, 0, n2, 4), o.write(e3, t2, n2, i2, 23, 4), n2 + 4; + function P(e3, t2, n2, i2, o2) { + return o2 || M(e3, 0, n2, 4), r.write(e3, t2, n2, i2, 23, 4), n2 + 4; } - function F(e3, t2, n2, i2, r2) { - return r2 || M(e3, 0, n2, 8), o.write(e3, t2, n2, i2, 52, 8), n2 + 8; + function F(e3, t2, n2, i2, o2) { + return o2 || M(e3, 0, n2, 8), r.write(e3, t2, n2, i2, 52, 8), n2 + 8; } l.prototype.slice = function(e3, t2) { var n2, i2 = this.length; if ((e3 = ~~e3) < 0 ? (e3 += i2) < 0 && (e3 = 0) : e3 > i2 && (e3 = i2), (t2 = t2 === void 0 ? i2 : ~~t2) < 0 ? (t2 += i2) < 0 && (t2 = 0) : t2 > i2 && (t2 = i2), t2 < e3 && (t2 = e3), l.TYPED_ARRAY_SUPPORT) (n2 = this.subarray(e3, t2)).__proto__ = l.prototype; else { - var o2 = t2 - e3; - n2 = new l(o2, void 0); - for (var r2 = 0; r2 < o2; ++r2) - n2[r2] = this[r2 + e3]; + var r2 = t2 - e3; + n2 = new l(r2, void 0); + for (var o2 = 0; o2 < r2; ++o2) + n2[o2] = this[o2 + e3]; } return n2; }, l.prototype.readUIntLE = function(e3, t2, n2) { - e3 |= 0, t2 |= 0, n2 || O(e3, t2, this.length); - for (var i2 = this[e3], o2 = 1, r2 = 0; ++r2 < t2 && (o2 *= 256); ) - i2 += this[e3 + r2] * o2; + e3 |= 0, t2 |= 0, n2 || D(e3, t2, this.length); + for (var i2 = this[e3], r2 = 1, o2 = 0; ++o2 < t2 && (r2 *= 256); ) + i2 += this[e3 + o2] * r2; return i2; }, l.prototype.readUIntBE = function(e3, t2, n2) { - e3 |= 0, t2 |= 0, n2 || O(e3, t2, this.length); - for (var i2 = this[e3 + --t2], o2 = 1; t2 > 0 && (o2 *= 256); ) - i2 += this[e3 + --t2] * o2; + e3 |= 0, t2 |= 0, n2 || D(e3, t2, this.length); + for (var i2 = this[e3 + --t2], r2 = 1; t2 > 0 && (r2 *= 256); ) + i2 += this[e3 + --t2] * r2; return i2; }, l.prototype.readUInt8 = function(e3, t2) { - return t2 || O(e3, 1, this.length), this[e3]; + return t2 || D(e3, 1, this.length), this[e3]; }, l.prototype.readUInt16LE = function(e3, t2) { - return t2 || O(e3, 2, this.length), this[e3] | this[e3 + 1] << 8; + return t2 || D(e3, 2, this.length), this[e3] | this[e3 + 1] << 8; }, l.prototype.readUInt16BE = function(e3, t2) { - return t2 || O(e3, 2, this.length), this[e3] << 8 | this[e3 + 1]; + return t2 || D(e3, 2, this.length), this[e3] << 8 | this[e3 + 1]; }, l.prototype.readUInt32LE = function(e3, t2) { - return t2 || O(e3, 4, this.length), (this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16) + 16777216 * this[e3 + 3]; + return t2 || D(e3, 4, this.length), (this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16) + 16777216 * this[e3 + 3]; }, l.prototype.readUInt32BE = function(e3, t2) { - return t2 || O(e3, 4, this.length), 16777216 * this[e3] + (this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]); + return t2 || D(e3, 4, this.length), 16777216 * this[e3] + (this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]); }, l.prototype.readIntLE = function(e3, t2, n2) { - e3 |= 0, t2 |= 0, n2 || O(e3, t2, this.length); - for (var i2 = this[e3], o2 = 1, r2 = 0; ++r2 < t2 && (o2 *= 256); ) - i2 += this[e3 + r2] * o2; - return i2 >= (o2 *= 128) && (i2 -= Math.pow(2, 8 * t2)), i2; + e3 |= 0, t2 |= 0, n2 || D(e3, t2, this.length); + for (var i2 = this[e3], r2 = 1, o2 = 0; ++o2 < t2 && (r2 *= 256); ) + i2 += this[e3 + o2] * r2; + return i2 >= (r2 *= 128) && (i2 -= Math.pow(2, 8 * t2)), i2; }, l.prototype.readIntBE = function(e3, t2, n2) { - e3 |= 0, t2 |= 0, n2 || O(e3, t2, this.length); - for (var i2 = t2, o2 = 1, r2 = this[e3 + --i2]; i2 > 0 && (o2 *= 256); ) - r2 += this[e3 + --i2] * o2; - return r2 >= (o2 *= 128) && (r2 -= Math.pow(2, 8 * t2)), r2; + e3 |= 0, t2 |= 0, n2 || D(e3, t2, this.length); + for (var i2 = t2, r2 = 1, o2 = this[e3 + --i2]; i2 > 0 && (r2 *= 256); ) + o2 += this[e3 + --i2] * r2; + return o2 >= (r2 *= 128) && (o2 -= Math.pow(2, 8 * t2)), o2; }, l.prototype.readInt8 = function(e3, t2) { - return t2 || O(e3, 1, this.length), 128 & this[e3] ? -1 * (255 - this[e3] + 1) : this[e3]; + return t2 || D(e3, 1, this.length), 128 & this[e3] ? -1 * (255 - this[e3] + 1) : this[e3]; }, l.prototype.readInt16LE = function(e3, t2) { - t2 || O(e3, 2, this.length); + t2 || D(e3, 2, this.length); var n2 = this[e3] | this[e3 + 1] << 8; return 32768 & n2 ? 4294901760 | n2 : n2; }, l.prototype.readInt16BE = function(e3, t2) { - t2 || O(e3, 2, this.length); + t2 || D(e3, 2, this.length); var n2 = this[e3 + 1] | this[e3] << 8; return 32768 & n2 ? 4294901760 | n2 : n2; }, l.prototype.readInt32LE = function(e3, t2) { - return t2 || O(e3, 4, this.length), this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16 | this[e3 + 3] << 24; + return t2 || D(e3, 4, this.length), this[e3] | this[e3 + 1] << 8 | this[e3 + 2] << 16 | this[e3 + 3] << 24; }, l.prototype.readInt32BE = function(e3, t2) { - return t2 || O(e3, 4, this.length), this[e3] << 24 | this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]; + return t2 || D(e3, 4, this.length), this[e3] << 24 | this[e3 + 1] << 16 | this[e3 + 2] << 8 | this[e3 + 3]; }, l.prototype.readFloatLE = function(e3, t2) { - return t2 || O(e3, 4, this.length), o.read(this, e3, true, 23, 4); + return t2 || D(e3, 4, this.length), r.read(this, e3, true, 23, 4); }, l.prototype.readFloatBE = function(e3, t2) { - return t2 || O(e3, 4, this.length), o.read(this, e3, false, 23, 4); + return t2 || D(e3, 4, this.length), r.read(this, e3, false, 23, 4); }, l.prototype.readDoubleLE = function(e3, t2) { - return t2 || O(e3, 8, this.length), o.read(this, e3, true, 52, 8); + return t2 || D(e3, 8, this.length), r.read(this, e3, true, 52, 8); }, l.prototype.readDoubleBE = function(e3, t2) { - return t2 || O(e3, 8, this.length), o.read(this, e3, false, 52, 8); + return t2 || D(e3, 8, this.length), r.read(this, e3, false, 52, 8); }, l.prototype.writeUIntLE = function(e3, t2, n2, i2) { - (e3 = +e3, t2 |= 0, n2 |= 0, i2) || D(this, e3, t2, n2, Math.pow(2, 8 * n2) - 1, 0); - var o2 = 1, r2 = 0; - for (this[t2] = 255 & e3; ++r2 < n2 && (o2 *= 256); ) - this[t2 + r2] = e3 / o2 & 255; + (e3 = +e3, t2 |= 0, n2 |= 0, i2) || O(this, e3, t2, n2, Math.pow(2, 8 * n2) - 1, 0); + var r2 = 1, o2 = 0; + for (this[t2] = 255 & e3; ++o2 < n2 && (r2 *= 256); ) + this[t2 + o2] = e3 / r2 & 255; return t2 + n2; }, l.prototype.writeUIntBE = function(e3, t2, n2, i2) { - (e3 = +e3, t2 |= 0, n2 |= 0, i2) || D(this, e3, t2, n2, Math.pow(2, 8 * n2) - 1, 0); - var o2 = n2 - 1, r2 = 1; - for (this[t2 + o2] = 255 & e3; --o2 >= 0 && (r2 *= 256); ) - this[t2 + o2] = e3 / r2 & 255; + (e3 = +e3, t2 |= 0, n2 |= 0, i2) || O(this, e3, t2, n2, Math.pow(2, 8 * n2) - 1, 0); + var r2 = n2 - 1, o2 = 1; + for (this[t2 + r2] = 255 & e3; --r2 >= 0 && (o2 *= 256); ) + this[t2 + r2] = e3 / o2 & 255; return t2 + n2; }, l.prototype.writeUInt8 = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e3 = Math.floor(e3)), this[t2] = 255 & e3, t2 + 1; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e3 = Math.floor(e3)), this[t2] = 255 & e3, t2 + 1; }, l.prototype.writeUInt16LE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8) : A(this, e3, t2, true), t2 + 2; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8) : A(this, e3, t2, true), t2 + 2; }, l.prototype.writeUInt16BE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : A(this, e3, t2, false), t2 + 2; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : A(this, e3, t2, false), t2 + 2; }, l.prototype.writeUInt32LE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2 + 3] = e3 >>> 24, this[t2 + 2] = e3 >>> 16, this[t2 + 1] = e3 >>> 8, this[t2] = 255 & e3) : R(this, e3, t2, true), t2 + 4; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2 + 3] = e3 >>> 24, this[t2 + 2] = e3 >>> 16, this[t2 + 1] = e3 >>> 8, this[t2] = 255 & e3) : R(this, e3, t2, true), t2 + 4; }, l.prototype.writeUInt32BE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : R(this, e3, t2, false), t2 + 4; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : R(this, e3, t2, false), t2 + 4; }, l.prototype.writeIntLE = function(e3, t2, n2, i2) { if (e3 = +e3, t2 |= 0, !i2) { - var o2 = Math.pow(2, 8 * n2 - 1); - D(this, e3, t2, n2, o2 - 1, -o2); + var r2 = Math.pow(2, 8 * n2 - 1); + O(this, e3, t2, n2, r2 - 1, -r2); } - var r2 = 0, s2 = 1, a2 = 0; - for (this[t2] = 255 & e3; ++r2 < n2 && (s2 *= 256); ) - e3 < 0 && a2 === 0 && this[t2 + r2 - 1] !== 0 && (a2 = 1), this[t2 + r2] = (e3 / s2 >> 0) - a2 & 255; + var o2 = 0, s2 = 1, a2 = 0; + for (this[t2] = 255 & e3; ++o2 < n2 && (s2 *= 256); ) + e3 < 0 && a2 === 0 && this[t2 + o2 - 1] !== 0 && (a2 = 1), this[t2 + o2] = (e3 / s2 >> 0) - a2 & 255; return t2 + n2; }, l.prototype.writeIntBE = function(e3, t2, n2, i2) { if (e3 = +e3, t2 |= 0, !i2) { - var o2 = Math.pow(2, 8 * n2 - 1); - D(this, e3, t2, n2, o2 - 1, -o2); + var r2 = Math.pow(2, 8 * n2 - 1); + O(this, e3, t2, n2, r2 - 1, -r2); } - var r2 = n2 - 1, s2 = 1, a2 = 0; - for (this[t2 + r2] = 255 & e3; --r2 >= 0 && (s2 *= 256); ) - e3 < 0 && a2 === 0 && this[t2 + r2 + 1] !== 0 && (a2 = 1), this[t2 + r2] = (e3 / s2 >> 0) - a2 & 255; + var o2 = n2 - 1, s2 = 1, a2 = 0; + for (this[t2 + o2] = 255 & e3; --o2 >= 0 && (s2 *= 256); ) + e3 < 0 && a2 === 0 && this[t2 + o2 + 1] !== 0 && (a2 = 1), this[t2 + o2] = (e3 / s2 >> 0) - a2 & 255; return t2 + n2; }, l.prototype.writeInt8 = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e3 = Math.floor(e3)), e3 < 0 && (e3 = 255 + e3 + 1), this[t2] = 255 & e3, t2 + 1; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e3 = Math.floor(e3)), e3 < 0 && (e3 = 255 + e3 + 1), this[t2] = 255 & e3, t2 + 1; }, l.prototype.writeInt16LE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8) : A(this, e3, t2, true), t2 + 2; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8) : A(this, e3, t2, true), t2 + 2; }, l.prototype.writeInt16BE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : A(this, e3, t2, false), t2 + 2; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : A(this, e3, t2, false), t2 + 2; }, l.prototype.writeInt32LE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8, this[t2 + 2] = e3 >>> 16, this[t2 + 3] = e3 >>> 24) : R(this, e3, t2, true), t2 + 4; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8, this[t2 + 2] = e3 >>> 16, this[t2 + 3] = e3 >>> 24) : R(this, e3, t2, true), t2 + 4; }, l.prototype.writeInt32BE = function(e3, t2, n2) { - return e3 = +e3, t2 |= 0, n2 || D(this, e3, t2, 4, 2147483647, -2147483648), e3 < 0 && (e3 = 4294967295 + e3 + 1), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : R(this, e3, t2, false), t2 + 4; + return e3 = +e3, t2 |= 0, n2 || O(this, e3, t2, 4, 2147483647, -2147483648), e3 < 0 && (e3 = 4294967295 + e3 + 1), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : R(this, e3, t2, false), t2 + 4; }, l.prototype.writeFloatLE = function(e3, t2, n2) { return P(this, e3, t2, true, n2); }, l.prototype.writeFloatBE = function(e3, t2, n2) { @@ -56389,21 +56389,21 @@ ${Object(zn.b)(wi)} if (i2 < 0) throw new RangeError("sourceEnd out of bounds"); i2 > this.length && (i2 = this.length), e3.length - t2 < i2 - n2 && (i2 = e3.length - t2 + n2); - var o2, r2 = i2 - n2; + var r2, o2 = i2 - n2; if (this === e3 && n2 < t2 && t2 < i2) - for (o2 = r2 - 1; o2 >= 0; --o2) - e3[o2 + t2] = this[o2 + n2]; - else if (r2 < 1e3 || !l.TYPED_ARRAY_SUPPORT) - for (o2 = 0; o2 < r2; ++o2) - e3[o2 + t2] = this[o2 + n2]; + for (r2 = o2 - 1; r2 >= 0; --r2) + e3[r2 + t2] = this[r2 + n2]; + else if (o2 < 1e3 || !l.TYPED_ARRAY_SUPPORT) + for (r2 = 0; r2 < o2; ++r2) + e3[r2 + t2] = this[r2 + n2]; else - Uint8Array.prototype.set.call(e3, this.subarray(n2, n2 + r2), t2); - return r2; + Uint8Array.prototype.set.call(e3, this.subarray(n2, n2 + o2), t2); + return o2; }, l.prototype.fill = function(e3, t2, n2, i2) { if (typeof e3 == "string") { if (typeof t2 == "string" ? (i2 = t2, t2 = 0, n2 = this.length) : typeof n2 == "string" && (i2 = n2, n2 = this.length), e3.length === 1) { - var o2 = e3.charCodeAt(0); - o2 < 256 && (e3 = o2); + var r2 = e3.charCodeAt(0); + r2 < 256 && (e3 = r2); } if (i2 !== void 0 && typeof i2 != "string") throw new TypeError("encoding must be a string"); @@ -56415,14 +56415,14 @@ ${Object(zn.b)(wi)} throw new RangeError("Out of range index"); if (n2 <= t2) return this; - var r2; + var o2; if (t2 >>>= 0, n2 = n2 === void 0 ? this.length : n2 >>> 0, e3 || (e3 = 0), typeof e3 == "number") - for (r2 = t2; r2 < n2; ++r2) - this[r2] = e3; + for (o2 = t2; o2 < n2; ++o2) + this[o2] = e3; else { var s2 = l.isBuffer(e3) ? e3 : B(new l(e3, i2).toString()), a2 = s2.length; - for (r2 = 0; r2 < n2 - t2; ++r2) - this[r2 + t2] = s2[r2 % a2]; + for (o2 = 0; o2 < n2 - t2; ++o2) + this[o2 + t2] = s2[o2 % a2]; } return this; }; @@ -56433,48 +56433,48 @@ ${Object(zn.b)(wi)} function B(e3, t2) { var n2; t2 = t2 || 1 / 0; - for (var i2 = e3.length, o2 = null, r2 = [], s2 = 0; s2 < i2; ++s2) { + for (var i2 = e3.length, r2 = null, o2 = [], s2 = 0; s2 < i2; ++s2) { if ((n2 = e3.charCodeAt(s2)) > 55295 && n2 < 57344) { - if (!o2) { + if (!r2) { if (n2 > 56319) { - (t2 -= 3) > -1 && r2.push(239, 191, 189); + (t2 -= 3) > -1 && o2.push(239, 191, 189); continue; } if (s2 + 1 === i2) { - (t2 -= 3) > -1 && r2.push(239, 191, 189); + (t2 -= 3) > -1 && o2.push(239, 191, 189); continue; } - o2 = n2; + r2 = n2; continue; } if (n2 < 56320) { - (t2 -= 3) > -1 && r2.push(239, 191, 189), o2 = n2; + (t2 -= 3) > -1 && o2.push(239, 191, 189), r2 = n2; continue; } - n2 = 65536 + (o2 - 55296 << 10 | n2 - 56320); + n2 = 65536 + (r2 - 55296 << 10 | n2 - 56320); } else - o2 && (t2 -= 3) > -1 && r2.push(239, 191, 189); - if (o2 = null, n2 < 128) { + r2 && (t2 -= 3) > -1 && o2.push(239, 191, 189); + if (r2 = null, n2 < 128) { if ((t2 -= 1) < 0) break; - r2.push(n2); + o2.push(n2); } else if (n2 < 2048) { if ((t2 -= 2) < 0) break; - r2.push(n2 >> 6 | 192, 63 & n2 | 128); + o2.push(n2 >> 6 | 192, 63 & n2 | 128); } else if (n2 < 65536) { if ((t2 -= 3) < 0) break; - r2.push(n2 >> 12 | 224, n2 >> 6 & 63 | 128, 63 & n2 | 128); + o2.push(n2 >> 12 | 224, n2 >> 6 & 63 | 128, 63 & n2 | 128); } else { if (!(n2 < 1114112)) throw new Error("Invalid code point"); if ((t2 -= 4) < 0) break; - r2.push(n2 >> 18 | 240, n2 >> 12 & 63 | 128, n2 >> 6 & 63 | 128, 63 & n2 | 128); + o2.push(n2 >> 18 | 240, n2 >> 12 & 63 | 128, n2 >> 6 & 63 | 128, 63 & n2 | 128); } } - return r2; + return o2; } function j(e3) { return i.toByteArray(function(e4) { @@ -56488,9 +56488,9 @@ ${Object(zn.b)(wi)} }(e3)); } function V(e3, t2, n2, i2) { - for (var o2 = 0; o2 < i2 && !(o2 + n2 >= t2.length || o2 >= e3.length); ++o2) - t2[o2 + n2] = e3[o2]; - return o2; + for (var r2 = 0; r2 < i2 && !(r2 + n2 >= t2.length || r2 >= e3.length); ++r2) + t2[r2 + n2] = e3[r2]; + return r2; } }).call(this, n(137)); }, function(e, t, n) { @@ -56499,22 +56499,22 @@ ${Object(zn.b)(wi)} var t2 = c(e2), n2 = t2[0], i2 = t2[1]; return 3 * (n2 + i2) / 4 - i2; }, t.toByteArray = function(e2) { - var t2, n2, i2 = c(e2), s2 = i2[0], a2 = i2[1], l2 = new r(function(e3, t3, n3) { + var t2, n2, i2 = c(e2), s2 = i2[0], a2 = i2[1], l2 = new o(function(e3, t3, n3) { return 3 * (t3 + n3) / 4 - n3; }(0, s2, a2)), d2 = 0, h = a2 > 0 ? s2 - 4 : s2; for (n2 = 0; n2 < h; n2 += 4) - t2 = o[e2.charCodeAt(n2)] << 18 | o[e2.charCodeAt(n2 + 1)] << 12 | o[e2.charCodeAt(n2 + 2)] << 6 | o[e2.charCodeAt(n2 + 3)], l2[d2++] = t2 >> 16 & 255, l2[d2++] = t2 >> 8 & 255, l2[d2++] = 255 & t2; - a2 === 2 && (t2 = o[e2.charCodeAt(n2)] << 2 | o[e2.charCodeAt(n2 + 1)] >> 4, l2[d2++] = 255 & t2); - a2 === 1 && (t2 = o[e2.charCodeAt(n2)] << 10 | o[e2.charCodeAt(n2 + 1)] << 4 | o[e2.charCodeAt(n2 + 2)] >> 2, l2[d2++] = t2 >> 8 & 255, l2[d2++] = 255 & t2); + t2 = r[e2.charCodeAt(n2)] << 18 | r[e2.charCodeAt(n2 + 1)] << 12 | r[e2.charCodeAt(n2 + 2)] << 6 | r[e2.charCodeAt(n2 + 3)], l2[d2++] = t2 >> 16 & 255, l2[d2++] = t2 >> 8 & 255, l2[d2++] = 255 & t2; + a2 === 2 && (t2 = r[e2.charCodeAt(n2)] << 2 | r[e2.charCodeAt(n2 + 1)] >> 4, l2[d2++] = 255 & t2); + a2 === 1 && (t2 = r[e2.charCodeAt(n2)] << 10 | r[e2.charCodeAt(n2 + 1)] << 4 | r[e2.charCodeAt(n2 + 2)] >> 2, l2[d2++] = t2 >> 8 & 255, l2[d2++] = 255 & t2); return l2; }, t.fromByteArray = function(e2) { - for (var t2, n2 = e2.length, o2 = n2 % 3, r2 = [], s2 = 0, a2 = n2 - o2; s2 < a2; s2 += 16383) - r2.push(d(e2, s2, s2 + 16383 > a2 ? a2 : s2 + 16383)); - o2 === 1 ? (t2 = e2[n2 - 1], r2.push(i[t2 >> 2] + i[t2 << 4 & 63] + "==")) : o2 === 2 && (t2 = (e2[n2 - 2] << 8) + e2[n2 - 1], r2.push(i[t2 >> 10] + i[t2 >> 4 & 63] + i[t2 << 2 & 63] + "=")); - return r2.join(""); + for (var t2, n2 = e2.length, r2 = n2 % 3, o2 = [], s2 = 0, a2 = n2 - r2; s2 < a2; s2 += 16383) + o2.push(d(e2, s2, s2 + 16383 > a2 ? a2 : s2 + 16383)); + r2 === 1 ? (t2 = e2[n2 - 1], o2.push(i[t2 >> 2] + i[t2 << 4 & 63] + "==")) : r2 === 2 && (t2 = (e2[n2 - 2] << 8) + e2[n2 - 1], o2.push(i[t2 >> 10] + i[t2 >> 4 & 63] + i[t2 << 2 & 63] + "=")); + return o2.join(""); }; - for (var i = [], o = [], r = typeof Uint8Array != "undefined" ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, l = s.length; a < l; ++a) - i[a] = s[a], o[s.charCodeAt(a)] = a; + for (var i = [], r = [], o = typeof Uint8Array != "undefined" ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, l = s.length; a < l; ++a) + i[a] = s[a], r[s.charCodeAt(a)] = a; function c(e2) { var t2 = e2.length; if (t2 % 4 > 0) @@ -56523,31 +56523,31 @@ ${Object(zn.b)(wi)} return n2 === -1 && (n2 = t2), [n2, n2 === t2 ? 0 : 4 - n2 % 4]; } function d(e2, t2, n2) { - for (var o2, r2, s2 = [], a2 = t2; a2 < n2; a2 += 3) - o2 = (e2[a2] << 16 & 16711680) + (e2[a2 + 1] << 8 & 65280) + (255 & e2[a2 + 2]), s2.push(i[(r2 = o2) >> 18 & 63] + i[r2 >> 12 & 63] + i[r2 >> 6 & 63] + i[63 & r2]); + for (var r2, o2, s2 = [], a2 = t2; a2 < n2; a2 += 3) + r2 = (e2[a2] << 16 & 16711680) + (e2[a2 + 1] << 8 & 65280) + (255 & e2[a2 + 2]), s2.push(i[(o2 = r2) >> 18 & 63] + i[o2 >> 12 & 63] + i[o2 >> 6 & 63] + i[63 & o2]); return s2.join(""); } - o["-".charCodeAt(0)] = 62, o["_".charCodeAt(0)] = 63; + r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63; }, function(e, t) { - t.read = function(e2, t2, n, i, o) { - var r, s, a = 8 * o - i - 1, l = (1 << a) - 1, c = l >> 1, d = -7, h = n ? o - 1 : 0, u = n ? -1 : 1, p = e2[t2 + h]; - for (h += u, r = p & (1 << -d) - 1, p >>= -d, d += a; d > 0; r = 256 * r + e2[t2 + h], h += u, d -= 8) + t.read = function(e2, t2, n, i, r) { + var o, s, a = 8 * r - i - 1, l = (1 << a) - 1, c = l >> 1, d = -7, h = n ? r - 1 : 0, u = n ? -1 : 1, p = e2[t2 + h]; + for (h += u, o = p & (1 << -d) - 1, p >>= -d, d += a; d > 0; o = 256 * o + e2[t2 + h], h += u, d -= 8) ; - for (s = r & (1 << -d) - 1, r >>= -d, d += i; d > 0; s = 256 * s + e2[t2 + h], h += u, d -= 8) + for (s = o & (1 << -d) - 1, o >>= -d, d += i; d > 0; s = 256 * s + e2[t2 + h], h += u, d -= 8) ; - if (r === 0) - r = 1 - c; + if (o === 0) + o = 1 - c; else { - if (r === l) + if (o === l) return s ? NaN : 1 / 0 * (p ? -1 : 1); - s += Math.pow(2, i), r -= c; + s += Math.pow(2, i), o -= c; } - return (p ? -1 : 1) * s * Math.pow(2, r - i); - }, t.write = function(e2, t2, n, i, o, r) { - var s, a, l, c = 8 * r - o - 1, d = (1 << c) - 1, h = d >> 1, u = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = i ? 0 : r - 1, m = i ? 1 : -1, g = t2 < 0 || t2 === 0 && 1 / t2 < 0 ? 1 : 0; - for (t2 = Math.abs(t2), isNaN(t2) || t2 === 1 / 0 ? (a = isNaN(t2) ? 1 : 0, s = d) : (s = Math.floor(Math.log(t2) / Math.LN2), t2 * (l = Math.pow(2, -s)) < 1 && (s--, l *= 2), (t2 += s + h >= 1 ? u / l : u * Math.pow(2, 1 - h)) * l >= 2 && (s++, l /= 2), s + h >= d ? (a = 0, s = d) : s + h >= 1 ? (a = (t2 * l - 1) * Math.pow(2, o), s += h) : (a = t2 * Math.pow(2, h - 1) * Math.pow(2, o), s = 0)); o >= 8; e2[n + p] = 255 & a, p += m, a /= 256, o -= 8) + return (p ? -1 : 1) * s * Math.pow(2, o - i); + }, t.write = function(e2, t2, n, i, r, o) { + var s, a, l, c = 8 * o - r - 1, d = (1 << c) - 1, h = d >> 1, u = r === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = i ? 0 : o - 1, m = i ? 1 : -1, g = t2 < 0 || t2 === 0 && 1 / t2 < 0 ? 1 : 0; + for (t2 = Math.abs(t2), isNaN(t2) || t2 === 1 / 0 ? (a = isNaN(t2) ? 1 : 0, s = d) : (s = Math.floor(Math.log(t2) / Math.LN2), t2 * (l = Math.pow(2, -s)) < 1 && (s--, l *= 2), (t2 += s + h >= 1 ? u / l : u * Math.pow(2, 1 - h)) * l >= 2 && (s++, l /= 2), s + h >= d ? (a = 0, s = d) : s + h >= 1 ? (a = (t2 * l - 1) * Math.pow(2, r), s += h) : (a = t2 * Math.pow(2, h - 1) * Math.pow(2, r), s = 0)); r >= 8; e2[n + p] = 255 & a, p += m, a /= 256, r -= 8) ; - for (s = s << o | a, c += o; c > 0; e2[n + p] = 255 & s, p += m, s /= 256, c -= 8) + for (s = s << r | a, c += r; c > 0; e2[n + p] = 255 & s, p += m, s /= 256, c -= 8) ; e2[n + p - m] |= 128 * g; }; @@ -56557,210 +56557,210 @@ ${Object(zn.b)(wi)} return n.call(e2) == "[object Array]"; }; }, function(e, t, n) { - var i = n(32), o = n(207); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(207); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-aria-container {\n position: absolute; /* try to hide from window but not from screen readers */\n left:-999em;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-aria-container {\r\n position: absolute; /* try to hide from window but not from screen readers */\r\n left:-999em;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(209); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(209); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -------------------- IE10 remove auto clear button -------------------- */\n\n::-ms-clear {\n display: none;\n}\n\n/* All widgets */\n/* I am not a big fan of this rule */\n.monaco-editor .editor-widget input {\n color: inherit;\n}\n\n/* -------------------- Editor -------------------- */\n\n.monaco-editor {\n position: relative;\n overflow: visible;\n -webkit-text-size-adjust: 100%;\n}\n\n/* -------------------- Misc -------------------- */\n\n.monaco-editor .overflow-guard {\n position: relative;\n overflow: hidden;\n}\n\n.monaco-editor .view-overlays {\n position: absolute;\n top: 0;\n}\n\n/*\n.monaco-editor .auto-closed-character {\n opacity: 0.3;\n}\n*/\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* -------------------- IE10 remove auto clear button -------------------- */\r\n\r\n::-ms-clear {\r\n display: none;\r\n}\r\n\r\n/* All widgets */\r\n/* I am not a big fan of this rule */\r\n.monaco-editor .editor-widget input {\r\n color: inherit;\r\n}\r\n\r\n/* -------------------- Editor -------------------- */\r\n\r\n.monaco-editor {\r\n position: relative;\r\n overflow: visible;\r\n -webkit-text-size-adjust: 100%;\r\n}\r\n\r\n/* -------------------- Misc -------------------- */\r\n\r\n.monaco-editor .overflow-guard {\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n\r\n.monaco-editor .view-overlays {\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n/*\r\n.monaco-editor .auto-closed-character {\r\n opacity: 0.3;\r\n}\r\n*/\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(211); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(211); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inputarea {\n min-width: 0;\n min-height: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n outline: none !important;\n resize: none;\n border: none;\n overflow: hidden;\n color: transparent;\n background-color: transparent;\n}\n/*.monaco-editor .inputarea {\n position: fixed !important;\n width: 800px !important;\n height: 500px !important;\n top: initial !important;\n left: initial !important;\n bottom: 0 !important;\n right: 0 !important;\n color: black !important;\n background: white !important;\n line-height: 15px !important;\n font-size: 14px !important;\n}*/\n.monaco-editor .inputarea.ime-input {\n z-index: 10;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .inputarea {\r\n min-width: 0;\r\n min-height: 0;\r\n margin: 0;\r\n padding: 0;\r\n position: absolute;\r\n outline: none !important;\r\n resize: none;\r\n border: none;\r\n overflow: hidden;\r\n color: transparent;\r\n background-color: transparent;\r\n}\r\n/*.monaco-editor .inputarea {\r\n position: fixed !important;\r\n width: 800px !important;\r\n height: 500px !important;\r\n top: initial !important;\r\n left: initial !important;\r\n bottom: 0 !important;\r\n right: 0 !important;\r\n color: black !important;\r\n background: white !important;\r\n line-height: 15px !important;\r\n font-size: 14px !important;\r\n}*/\r\n.monaco-editor .inputarea.ime-input {\r\n z-index: 10;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(213); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(213); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .line-numbers {\n font-variant-numeric: tabular-nums;\n position: absolute;\n text-align: right;\n display: inline-block;\n vertical-align: middle;\n box-sizing: border-box;\n cursor: default;\n height: 100%;\n}\n\n.monaco-editor .relative-current-line-number {\n text-align: left;\n display: inline-block;\n width: 100%;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\n margin-top: 1px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers {\r\n font-variant-numeric: tabular-nums;\r\n position: absolute;\r\n text-align: right;\r\n display: inline-block;\r\n vertical-align: middle;\r\n box-sizing: border-box;\r\n cursor: default;\r\n height: 100%;\r\n}\r\n\r\n.monaco-editor .relative-current-line-number {\r\n text-align: left;\r\n display: inline-block;\r\n width: 100%;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\r\n margin-top: 1px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(215); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(215); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-mouse-cursor-text {\n cursor: text;\n}\n\n/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */\n.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text,\n.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text {\n cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-mouse-cursor-text {\r\n cursor: text;\r\n}\r\n\r\n/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */\r\n.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text,\r\n.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text {\r\n cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(217); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(217); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-overlays .current-line {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n}\n\n.monaco-editor .margin-view-overlays .current-line {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n}\n\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\n border-right: 0;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-overlays .current-line {\r\n display: block;\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .current-line {\r\n display: block;\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\r\n border-right: 0;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(219); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(219); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n Keeping name short for faster parsing.\n cdr = core decorations rendering (div)\n*/\n.monaco-editor .lines-content .cdr {\n position: absolute;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cdr = core decorations rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cdr {\r\n position: absolute;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(221); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(221); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n cursor: pointer;\n font-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n opacity: 1;\n\n /* Background rule added for IE9 - to allow clicks on dom node */\n background:rgba(0,0,0,0);\n\n transition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n opacity: 0;\n pointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n transition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n position: absolute;\n display: none;\n}\n.monaco-scrollable-element > .shadow.top {\n display: block;\n top: 0;\n left: 3px;\n height: 3px;\n width: 100%;\n box-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n display: block;\n top: 3px;\n left: 0;\n height: 100%;\n width: 3px;\n box-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n width: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n box-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n.vs .monaco-scrollable-element > .scrollbar > .slider {\n background: rgba(100, 100, 100, .4);\n}\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\n background: rgba(121, 121, 121, .4);\n}\n.hc-black .monaco-scrollable-element > .scrollbar > .slider {\n background: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n background: rgba(100, 100, 100, .7);\n}\n.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover {\n background: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n background: rgba(0, 0, 0, .6);\n}\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\n background: rgba(191, 191, 191, .4);\n}\n.hc-black .monaco-scrollable-element > .scrollbar > .slider.active {\n background: rgba(111, 195, 223, 1);\n}\n\n.vs-dark .monaco-scrollable-element .shadow.top {\n box-shadow: none;\n}\n\n.vs-dark .monaco-scrollable-element .shadow.left {\n box-shadow: #000 6px 0 6px -6px inset;\n}\n\n.vs-dark .monaco-scrollable-element .shadow.top.left {\n box-shadow: #000 6px 6px 6px -6px inset;\n}\n\n.hc-black .monaco-scrollable-element .shadow.top {\n box-shadow: none;\n}\n\n.hc-black .monaco-scrollable-element .shadow.left {\n box-shadow: none;\n}\n\n.hc-black .monaco-scrollable-element .shadow.top.left {\n box-shadow: none;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Arrows */\r\n.monaco-scrollable-element > .scrollbar > .scra {\r\n cursor: pointer;\r\n font-size: 11px !important;\r\n}\r\n\r\n.monaco-scrollable-element > .visible {\r\n opacity: 1;\r\n\r\n /* Background rule added for IE9 - to allow clicks on dom node */\r\n background:rgba(0,0,0,0);\r\n\r\n transition: opacity 100ms linear;\r\n}\r\n.monaco-scrollable-element > .invisible {\r\n opacity: 0;\r\n pointer-events: none;\r\n}\r\n.monaco-scrollable-element > .invisible.fade {\r\n transition: opacity 800ms linear;\r\n}\r\n\r\n/* Scrollable Content Inset Shadow */\r\n.monaco-scrollable-element > .shadow {\r\n position: absolute;\r\n display: none;\r\n}\r\n.monaco-scrollable-element > .shadow.top {\r\n display: block;\r\n top: 0;\r\n left: 3px;\r\n height: 3px;\r\n width: 100%;\r\n box-shadow: #DDD 0 6px 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.left {\r\n display: block;\r\n top: 3px;\r\n left: 0;\r\n height: 100%;\r\n width: 3px;\r\n box-shadow: #DDD 6px 0 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.top-left-corner {\r\n display: block;\r\n top: 0;\r\n left: 0;\r\n height: 3px;\r\n width: 3px;\r\n}\r\n.monaco-scrollable-element > .shadow.top.left {\r\n box-shadow: #DDD 6px 6px 6px -6px inset;\r\n}\r\n\r\n/* ---------- Default Style ---------- */\r\n\r\n.vs .monaco-scrollable-element > .scrollbar > .slider {\r\n background: rgba(100, 100, 100, .4);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n background: rgba(121, 121, 121, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider {\r\n background: rgba(111, 195, 223, .6);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider:hover {\r\n background: rgba(100, 100, 100, .7);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n background: rgba(111, 195, 223, .8);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider.active {\r\n background: rgba(0, 0, 0, .6);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n background: rgba(191, 191, 191, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider.active {\r\n background: rgba(111, 195, 223, 1);\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top {\r\n box-shadow: none;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.left {\r\n box-shadow: #000 6px 0 6px -6px inset;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top.left {\r\n box-shadow: #000 6px 6px 6px -6px inset;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top {\r\n box-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.left {\r\n box-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top.left {\r\n box-shadow: none;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(223); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(223); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .glyph-margin {\n position: absolute;\n top: 0;\n}\n\n/*\n Keeping name short for faster parsing.\n cgmr = core glyph margin rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cgmr {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .glyph-margin {\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cgmr = core glyph margin rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cgmr {\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(225); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(225); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n Keeping name short for faster parsing.\n cigr = core ident guides rendering (div)\n*/\n.monaco-editor .lines-content .cigr {\n position: absolute;\n}\n.monaco-editor .lines-content .cigra {\n position: absolute;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cigr = core ident guides rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cigr {\r\n position: absolute;\r\n}\r\n.monaco-editor .lines-content .cigra {\r\n position: absolute;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(227); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(227); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Uncomment to see lines flashing when they're painted */\n/*.monaco-editor .view-lines > .view-line {\n background-color: none;\n animation-name: flash-background;\n animation-duration: 800ms;\n}\n@keyframes flash-background {\n 0% { background-color: lightgreen; }\n 100% { background-color: none }\n}*/\n\n.monaco-editor.no-user-select .lines-content,\n.monaco-editor.no-user-select .view-line,\n.monaco-editor.no-user-select .view-lines {\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n.monaco-editor .view-lines {\n white-space: nowrap;\n}\n\n.monaco-editor .view-line {\n position: absolute;\n width: 100%;\n}\n\n.monaco-editor .mtkz {\n display: inline-block;\n}\n\n/* TODO@tokenization bootstrap fix */\n/*.monaco-editor .view-line > span > span {\n float: none;\n min-height: inherit;\n margin-left: inherit;\n}*/\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Uncomment to see lines flashing when they're painted */\r\n/*.monaco-editor .view-lines > .view-line {\r\n background-color: none;\r\n animation-name: flash-background;\r\n animation-duration: 800ms;\r\n}\r\n@keyframes flash-background {\r\n 0% { background-color: lightgreen; }\r\n 100% { background-color: none }\r\n}*/\r\n\r\n.monaco-editor.no-user-select .lines-content,\r\n.monaco-editor.no-user-select .view-line,\r\n.monaco-editor.no-user-select .view-lines {\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n.monaco-editor .view-lines {\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-editor .view-line {\r\n position: absolute;\r\n width: 100%;\r\n}\r\n\r\n.monaco-editor .mtkz {\r\n display: inline-block;\r\n}\r\n\r\n/* TODO@tokenization bootstrap fix */\r\n/*.monaco-editor .view-line > span > span {\r\n float: none;\r\n min-height: inherit;\r\n margin-left: inherit;\r\n}*/\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(229); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(229); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .lines-decorations {\n position: absolute;\n top: 0;\n background: white;\n}\n\n/*\n Keeping name short for faster parsing.\n cldr = core lines decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cldr {\n position: absolute;\n height: 100%;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .lines-decorations {\r\n position: absolute;\r\n top: 0;\r\n background: white;\r\n}\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cldr = core lines decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cldr {\r\n position: absolute;\r\n height: 100%;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(231); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(231); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n Keeping name short for faster parsing.\n cmdr = core margin decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cmdr {\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cmdr = core margin decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cmdr {\r\n position: absolute;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(233); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(233); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* START cover the case that slider is visible on mouseover */\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\n opacity: 0;\n transition: opacity 100ms linear;\n}\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\n opacity: 1;\n}\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\n opacity: 1;\n}\n/* END cover the case that slider is visible on mouseover */\n\n.monaco-editor .minimap-shadow-hidden {\n position: absolute;\n width: 0;\n}\n.monaco-editor .minimap-shadow-visible {\n position: absolute;\n left: -6px;\n width: 6px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* START cover the case that slider is visible on mouseover */\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\r\n opacity: 0;\r\n transition: opacity 100ms linear;\r\n}\r\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\r\n opacity: 1;\r\n}\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\r\n opacity: 1;\r\n}\r\n/* END cover the case that slider is visible on mouseover */\r\n\r\n.monaco-editor .minimap-shadow-hidden {\r\n position: absolute;\r\n width: 0;\r\n}\r\n.monaco-editor .minimap-shadow-visible {\r\n position: absolute;\r\n left: -6px;\r\n width: 6px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(235); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(235); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .overlayWidgets {\n position: absolute;\n top: 0;\n left:0;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .overlayWidgets {\r\n position: absolute;\r\n top: 0;\r\n left:0;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(237); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(237); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-ruler {\n position: absolute;\n top: 0;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-ruler {\r\n position: absolute;\r\n top: 0;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(239); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(239); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .scroll-decoration {\n position: absolute;\n top: 0;\n left: 0;\n height: 6px;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .scroll-decoration {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n height: 6px;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(241); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(241); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n Keeping name short for faster parsing.\n cslr = core selections layer rendering (div)\n*/\n.monaco-editor .lines-content .cslr {\n position: absolute;\n}\n\n.monaco-editor .top-left-radius { border-top-left-radius: 3px; }\n.monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; }\n.monaco-editor .top-right-radius { border-top-right-radius: 3px; }\n.monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; }\n\n.monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; }\n.monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; }\n.monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; }\n.monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; }\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n Keeping name short for faster parsing.\r\n cslr = core selections layer rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cslr {\r\n position: absolute;\r\n}\r\n\r\n.monaco-editor .top-left-radius { border-top-left-radius: 3px; }\r\n.monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; }\r\n.monaco-editor .top-right-radius { border-top-right-radius: 3px; }\r\n.monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; }\r\n\r\n.monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; }\r\n.monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; }\r\n.monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; }\r\n.monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; }\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(243); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(243); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .cursors-layer {\n position: absolute;\n top: 0;\n}\n\n.monaco-editor .cursors-layer > .cursor {\n position: absolute;\n overflow: hidden;\n}\n\n/* -- smooth-caret-animation -- */\n.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor {\n transition: all 80ms;\n}\n\n/* -- block-outline-style -- */\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\n box-sizing: border-box;\n background: transparent !important;\n border-style: solid;\n border-width: 1px;\n}\n\n/* -- underline-style -- */\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\n border-bottom-width: 2px;\n border-bottom-style: solid;\n background: transparent !important;\n box-sizing: border-box;\n}\n\n/* -- underline-thin-style -- */\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n background: transparent !important;\n box-sizing: border-box;\n}\n\n@keyframes monaco-cursor-smooth {\n 0%,\n 20% {\n opacity: 1;\n }\n 60%,\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes monaco-cursor-phase {\n 0%,\n 20% {\n opacity: 1;\n }\n 90%,\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes monaco-cursor-expand {\n 0%,\n 20% {\n transform: scaleY(1);\n }\n 80%,\n 100% {\n transform: scaleY(0);\n }\n}\n\n.cursor-smooth {\n animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n}\n\n.cursor-phase {\n animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n}\n\n.cursor-expand > .cursor {\n animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .cursors-layer {\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n.monaco-editor .cursors-layer > .cursor {\r\n position: absolute;\r\n overflow: hidden;\r\n}\r\n\r\n/* -- smooth-caret-animation -- */\r\n.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor {\r\n transition: all 80ms;\r\n}\r\n\r\n/* -- block-outline-style -- */\r\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\r\n box-sizing: border-box;\r\n background: transparent !important;\r\n border-style: solid;\r\n border-width: 1px;\r\n}\r\n\r\n/* -- underline-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\r\n border-bottom-width: 2px;\r\n border-bottom-style: solid;\r\n background: transparent !important;\r\n box-sizing: border-box;\r\n}\r\n\r\n/* -- underline-thin-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\r\n border-bottom-width: 1px;\r\n border-bottom-style: solid;\r\n background: transparent !important;\r\n box-sizing: border-box;\r\n}\r\n\r\n@keyframes monaco-cursor-smooth {\r\n 0%,\r\n 20% {\r\n opacity: 1;\r\n }\r\n 60%,\r\n 100% {\r\n opacity: 0;\r\n }\r\n}\r\n\r\n@keyframes monaco-cursor-phase {\r\n 0%,\r\n 20% {\r\n opacity: 1;\r\n }\r\n 90%,\r\n 100% {\r\n opacity: 0;\r\n }\r\n}\r\n\r\n@keyframes monaco-cursor-expand {\r\n 0%,\r\n 20% {\r\n transform: scaleY(1);\r\n }\r\n 80%,\r\n 100% {\r\n transform: scaleY(0);\r\n }\r\n}\r\n\r\n.cursor-smooth {\r\n animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-phase {\r\n animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-expand > .cursor {\r\n animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(245); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(245); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- DiffEditor ---------- */\n\n.monaco-diff-editor .diffOverview {\n z-index: 9;\n}\n\n.monaco-diff-editor .diffOverview .diffViewport {\n z-index: 10;\n}\n\n/* colors not externalized: using transparancy on background */\n.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); }\n.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); }\n\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; }\n\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\n z-index: 10;\n}\n.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); }\n.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; }\n\n/* ---------- Diff ---------- */\n\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign,\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n font-size: 11px !important;\n opacity: 0.7 !important;\n display: flex !important;\n align-items: center;\n}\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign {\n opacity: 1;\n}\n\n.monaco-editor .inline-deleted-margin-view-zone {\n text-align: right;\n}\n.monaco-editor .inline-added-margin-view-zone {\n text-align: right;\n}\n\n/* ---------- Inline Diff ---------- */\n\n.monaco-editor .view-zones .view-lines .view-line span {\n display: inline-block;\n}\n\n.monaco-editor .margin-view-zones .lightbulb-glyph:hover {\n cursor: pointer;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- DiffEditor ---------- */\r\n\r\n.monaco-diff-editor .diffOverview {\r\n z-index: 9;\r\n}\r\n\r\n.monaco-diff-editor .diffOverview .diffViewport {\r\n z-index: 10;\r\n}\r\n\r\n/* colors not externalized: using transparancy on background */\r\n.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); }\r\n.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); }\r\n\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; }\r\n\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\r\n z-index: 10;\r\n}\r\n.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); }\r\n.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; }\r\n\r\n/* ---------- Diff ---------- */\r\n\r\n.monaco-editor .insert-sign,\r\n.monaco-diff-editor .insert-sign,\r\n.monaco-editor .delete-sign,\r\n.monaco-diff-editor .delete-sign {\r\n font-size: 11px !important;\r\n opacity: 0.7 !important;\r\n display: flex !important;\r\n align-items: center;\r\n}\r\n.monaco-editor.hc-black .insert-sign,\r\n.monaco-diff-editor.hc-black .insert-sign,\r\n.monaco-editor.hc-black .delete-sign,\r\n.monaco-diff-editor.hc-black .delete-sign {\r\n opacity: 1;\r\n}\r\n\r\n.monaco-editor .inline-deleted-margin-view-zone {\r\n text-align: right;\r\n}\r\n.monaco-editor .inline-added-margin-view-zone {\r\n text-align: right;\r\n}\r\n\r\n/* ---------- Inline Diff ---------- */\r\n\r\n.monaco-editor .view-zones .view-lines .view-line span {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-editor .margin-view-zones .lightbulb-glyph:hover {\r\n cursor: pointer;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(247); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(247); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-sash {\n position: absolute;\n z-index: 35;\n touch-action: none;\n}\n\n.monaco-sash.disabled {\n pointer-events: none;\n}\n\n.monaco-sash.mac.vertical {\n cursor: col-resize;\n}\n\n.monaco-sash.vertical.minimum {\n cursor: e-resize;\n}\n\n.monaco-sash.vertical.maximum {\n cursor: w-resize;\n}\n\n.monaco-sash.mac.horizontal {\n cursor: row-resize;\n}\n\n.monaco-sash.horizontal.minimum {\n cursor: s-resize;\n}\n\n.monaco-sash.horizontal.maximum {\n cursor: n-resize;\n}\n\n.monaco-sash.disabled {\n cursor: default !important;\n pointer-events: none !important;\n}\n\n/** Debug **/\n\n.monaco-sash.debug {\n background: cyan;\n}\n\n.monaco-sash.debug.disabled {\n background: rgba(0, 255, 255, 0.2);\n}\n\n.monaco-sash.debug:not(.disabled).orthogonal-start::before,\n.monaco-sash.debug:not(.disabled).orthogonal-end::after {\n background: red;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-sash {\r\n position: absolute;\r\n z-index: 35;\r\n touch-action: none;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n pointer-events: none;\r\n}\r\n\r\n.monaco-sash.mac.vertical {\r\n cursor: col-resize;\r\n}\r\n\r\n.monaco-sash.vertical.minimum {\r\n cursor: e-resize;\r\n}\r\n\r\n.monaco-sash.vertical.maximum {\r\n cursor: w-resize;\r\n}\r\n\r\n.monaco-sash.mac.horizontal {\r\n cursor: row-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.minimum {\r\n cursor: s-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.maximum {\r\n cursor: n-resize;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n cursor: default !important;\r\n pointer-events: none !important;\r\n}\r\n\r\n/** Debug **/\r\n\r\n.monaco-sash.debug {\r\n background: cyan;\r\n}\r\n\r\n.monaco-sash.debug.disabled {\r\n background: rgba(0, 255, 255, 0.2);\r\n}\r\n\r\n.monaco-sash.debug:not(.disabled).orthogonal-start::before,\r\n.monaco-sash.debug:not(.disabled).orthogonal-end::after {\r\n background: red;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(249); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(249); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-diff-editor .diff-review-line-number {\n text-align: right;\n display: inline-block;\n}\n\n.monaco-diff-editor .diff-review {\n position: absolute;\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n.monaco-diff-editor .diff-review-summary {\n padding-left: 10px;\n}\n\n.monaco-diff-editor .diff-review-shadow {\n position: absolute;\n}\n\n.monaco-diff-editor .diff-review-row {\n white-space: pre;\n}\n\n.monaco-diff-editor .diff-review-table {\n display: table;\n min-width: 100%;\n}\n\n.monaco-diff-editor .diff-review-row {\n display: table-row;\n width: 100%;\n}\n\n.monaco-diff-editor .diff-review-spacer {\n display: inline-block;\n width: 10px;\n vertical-align: middle;\n}\n\n.monaco-diff-editor .diff-review-spacer > .codicon {\n font-size: 9px !important;\n}\n\n.monaco-diff-editor .diff-review-actions {\n display: inline-block;\n position: absolute;\n right: 10px;\n top: 2px;\n}\n\n.monaco-diff-editor .diff-review-actions .action-label {\n width: 16px;\n height: 16px;\n margin: 2px 0;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-diff-editor .diff-review-line-number {\r\n text-align: right;\r\n display: inline-block;\r\n}\r\n\r\n.monaco-diff-editor .diff-review {\r\n position: absolute;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-summary {\r\n padding-left: 10px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-shadow {\r\n position: absolute;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n white-space: pre;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-table {\r\n display: table;\r\n min-width: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n display: table-row;\r\n width: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-spacer {\r\n display: inline-block;\r\n width: 10px;\r\n vertical-align: middle;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-spacer > .codicon {\r\n font-size: 9px !important;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions {\r\n display: inline-block;\r\n position: absolute;\r\n right: 10px;\r\n top: 2px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions .action-label {\r\n width: 16px;\r\n height: 16px;\r\n margin: 2px 0;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar {\n text-align: right;\n white-space: nowrap;\n}\n\n.monaco-action-bar .actions-container {\n display: flex;\n margin: 0 auto;\n padding: 0;\n width: 100%;\n justify-content: flex-end;\n}\n\n.monaco-action-bar.vertical .actions-container {\n display: inline-block;\n}\n\n.monaco-action-bar.reverse .actions-container {\n flex-direction: row-reverse;\n}\n\n.monaco-action-bar .action-item {\n cursor: pointer;\n display: inline-block;\n transition: transform 50ms ease;\n position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-action-bar .action-item.disabled {\n cursor: default;\n}\n\n.monaco-action-bar.animated .action-item.active {\n transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */\n}\n\n.monaco-action-bar .action-item .icon,\n.monaco-action-bar .action-item .codicon {\n display: inline-block;\n}\n\n.monaco-action-bar .action-item .codicon {\n display: flex;\n align-items: center;\n}\n\n.monaco-action-bar .action-label {\n font-size: 11px;\n margin-right: 4px;\n}\n\n.monaco-action-bar .action-item.disabled .action-label,\n.monaco-action-bar .action-item.disabled .action-label:hover {\n opacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-action-bar.vertical {\n text-align: left;\n}\n\n.monaco-action-bar.vertical .action-item {\n display: block;\n}\n\n.monaco-action-bar.vertical .action-label.separator {\n display: block;\n border-bottom: 1px solid #bbb;\n padding-top: 1px;\n margin-left: .8em;\n margin-right: .8em;\n}\n\n.monaco-action-bar.animated.vertical .action-item.active {\n transform: translate(5px, 0);\n}\n\n.secondary-actions .monaco-action-bar .action-label {\n margin-left: 6px;\n}\n\n/* Action Items */\n.monaco-action-bar .action-item.select-container {\n overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n flex: 1;\n max-width: 170px;\n min-width: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-action-bar {\r\n text-align: right;\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-action-bar .actions-container {\r\n display: flex;\r\n margin: 0 auto;\r\n padding: 0;\r\n width: 100%;\r\n justify-content: flex-end;\r\n}\r\n\r\n.monaco-action-bar.vertical .actions-container {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-action-bar.reverse .actions-container {\r\n flex-direction: row-reverse;\r\n}\r\n\r\n.monaco-action-bar .action-item {\r\n cursor: pointer;\r\n display: inline-block;\r\n transition: transform 50ms ease;\r\n position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled {\r\n cursor: default;\r\n}\r\n\r\n.monaco-action-bar.animated .action-item.active {\r\n transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */\r\n}\r\n\r\n.monaco-action-bar .action-item .icon,\r\n.monaco-action-bar .action-item .codicon {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-action-bar .action-item .codicon {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.monaco-action-bar .action-label {\r\n font-size: 11px;\r\n margin-right: 4px;\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled .action-label,\r\n.monaco-action-bar .action-item.disabled .action-label:hover {\r\n opacity: 0.4;\r\n}\r\n\r\n/* Vertical actions */\r\n\r\n.monaco-action-bar.vertical {\r\n text-align: left;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-item {\r\n display: block;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-label.separator {\r\n display: block;\r\n border-bottom: 1px solid #bbb;\r\n padding-top: 1px;\r\n margin-left: .8em;\r\n margin-right: .8em;\r\n}\r\n\r\n.monaco-action-bar.animated.vertical .action-item.active {\r\n transform: translate(5px, 0);\r\n}\r\n\r\n.secondary-actions .monaco-action-bar .action-label {\r\n margin-left: 6px;\r\n}\r\n\r\n/* Action Items */\r\n.monaco-action-bar .action-item.select-container {\r\n overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\r\n flex: 1;\r\n max-width: 170px;\r\n min-width: 60px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n margin-right: 10px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(252); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(252); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - var i = n(33), o = n(253), r = n(254); + var i = n(33), r = n(253), o = n(254); t = i(false); - var s = o(r); - t.push([e.i, '/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n@font-face {\n font-family: "codicon";\n src: url(' + s + `) format("truetype"); -} - -.codicon[class*='codicon-'] { - font: normal normal normal 16px/1 codicon; - display: inline-block; - text-decoration: none; - text-rendering: auto; - text-align: center; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -/* icon rules are dynamically created in codiconStyles */ + var s = r(o); + t.push([e.i, '/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n@font-face {\r\n font-family: "codicon";\r\n src: url(' + s + `) format("truetype");\r +}\r +\r +.codicon[class*='codicon-'] {\r + font: normal normal normal 16px/1 codicon;\r + display: inline-block;\r + text-decoration: none;\r + text-rendering: auto;\r + text-align: center;\r + -webkit-font-smoothing: antialiased;\r + -moz-osx-font-smoothing: grayscale;\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +/* icon rules are dynamically created in codiconStyles */\r `, ""]), e.exports = t; }, function(e, t, n) { "use strict"; @@ -56771,341 +56771,341 @@ ${Object(zn.b)(wi)} "use strict"; n.r(t), t.default = n.p + "b3726f0165bf67ac68494ee7a1b9f6ce.ttf"; }, function(e, t, n) { - var i = n(32), o = n(256); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(256); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.codicon-wrench-subaction {\n opacity: 0.5;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.codicon-wrench-subaction {\r\n opacity: 0.5;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(258); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(258); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n@keyframes codicon-spin {\n 100% {\n transform:rotate(360deg);\n }\n}\n\n.codicon-animation-spin {\n /* Use steps to throttle FPS to reduce CPU usage */\n animation: codicon-spin 1.5s steps(30) infinite;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n@keyframes codicon-spin {\r\n 100% {\r\n transform:rotate(360deg);\r\n }\r\n}\r\n\r\n.codicon-animation-spin {\r\n /* Use steps to throttle FPS to reduce CPU usage */\r\n animation: codicon-spin 1.5s steps(30) infinite;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(260); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(260); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view .monaco-menu {\n min-width: 130px;\n}\n\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view .monaco-menu {\r\n min-width: 130px;\r\n}\r\n\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(262); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(262); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view {\n position: absolute;\n z-index: 2500;\n}\n\n.context-view.fixed {\n all: initial;\n font-family: inherit;\n font-size: 13px;\n position: fixed;\n z-index: 2500;\n color: inherit;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view {\r\n position: absolute;\r\n z-index: 2500;\r\n}\r\n\r\n.context-view.fixed {\r\n all: initial;\r\n font-family: inherit;\r\n font-size: 13px;\r\n position: fixed;\r\n z-index: 2500;\r\n color: inherit;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list {\n position: relative;\n height: 100%;\n width: 100%;\n white-space: nowrap;\n}\n\n.monaco-list.mouse-support {\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n.monaco-list > .monaco-scrollable-element {\n height: 100%;\n}\n\n.monaco-list-rows {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.monaco-list.horizontal-scrolling .monaco-list-rows {\n width: auto;\n min-width: 100%;\n}\n\n.monaco-list-row {\n position: absolute;\n box-sizing: border-box;\n overflow: hidden;\n width: 100%;\n}\n\n.monaco-list.mouse-support .monaco-list-row {\n cursor: pointer;\n touch-action: none;\n}\n\n/* for OS X ballistic scrolling */\n.monaco-list-row.scrolling {\n display: none !important;\n}\n\n/* Focus */\n.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple {\n outline: 0 !important;\n}\n\n.monaco-list:focus .monaco-list-row.selected .codicon {\n color: inherit;\n}\n\n/* Dnd */\n.monaco-drag-image {\n display: inline-block;\n padding: 1px 7px;\n border-radius: 10px;\n font-size: 12px;\n position: absolute;\n}\n\n/* Type filter */\n\n.monaco-list-type-filter {\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 2px;\n padding: 0px 3px;\n max-width: calc(100% - 10px);\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: right;\n box-sizing: border-box;\n cursor: all-scroll;\n font-size: 13px;\n line-height: 18px;\n height: 20px;\n z-index: 1;\n top: 4px;\n}\n\n.monaco-list-type-filter.dragging {\n transition: top 0.2s, left 0.2s;\n}\n\n.monaco-list-type-filter.ne {\n right: 4px;\n}\n\n.monaco-list-type-filter.nw {\n left: 4px;\n}\n\n.monaco-list-type-filter > .controls {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n transition: width 0.2s;\n width: 0;\n}\n\n.monaco-list-type-filter.dragging > .controls,\n.monaco-list-type-filter:hover > .controls {\n width: 36px;\n}\n\n.monaco-list-type-filter > .controls > * {\n border: none;\n box-sizing: border-box;\n -webkit-appearance: none;\n -moz-appearance: none;\n background: none;\n width: 16px;\n height: 16px;\n flex-shrink: 0;\n margin: 0;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.monaco-list-type-filter > .controls > .filter {\n margin-left: 4px;\n}\n\n.monaco-list-type-filter-message {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n padding: 40px 1em 1em 1em;\n text-align: center;\n white-space: normal;\n opacity: 0.7;\n pointer-events: none;\n}\n\n.monaco-list-type-filter-message:empty {\n display: none;\n}\n\n/* Electron */\n\n.monaco-list-type-filter {\n cursor: grab;\n}\n\n.monaco-list-type-filter.dragging {\n cursor: grabbing;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-list {\r\n position: relative;\r\n height: 100%;\r\n width: 100%;\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-list.mouse-support {\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n.monaco-list > .monaco-scrollable-element {\r\n height: 100%;\r\n}\r\n\r\n.monaco-list-rows {\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.monaco-list.horizontal-scrolling .monaco-list-rows {\r\n width: auto;\r\n min-width: 100%;\r\n}\r\n\r\n.monaco-list-row {\r\n position: absolute;\r\n box-sizing: border-box;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n\r\n.monaco-list.mouse-support .monaco-list-row {\r\n cursor: pointer;\r\n touch-action: none;\r\n}\r\n\r\n/* for OS X ballistic scrolling */\r\n.monaco-list-row.scrolling {\r\n display: none !important;\r\n}\r\n\r\n/* Focus */\r\n.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple {\r\n outline: 0 !important;\r\n}\r\n\r\n.monaco-list:focus .monaco-list-row.selected .codicon {\r\n color: inherit;\r\n}\r\n\r\n/* Dnd */\r\n.monaco-drag-image {\r\n display: inline-block;\r\n padding: 1px 7px;\r\n border-radius: 10px;\r\n font-size: 12px;\r\n position: absolute;\r\n}\r\n\r\n/* Type filter */\r\n\r\n.monaco-list-type-filter {\r\n display: flex;\r\n align-items: center;\r\n position: absolute;\r\n border-radius: 2px;\r\n padding: 0px 3px;\r\n max-width: calc(100% - 10px);\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n text-align: right;\r\n box-sizing: border-box;\r\n cursor: all-scroll;\r\n font-size: 13px;\r\n line-height: 18px;\r\n height: 20px;\r\n z-index: 1;\r\n top: 4px;\r\n}\r\n\r\n.monaco-list-type-filter.dragging {\r\n transition: top 0.2s, left 0.2s;\r\n}\r\n\r\n.monaco-list-type-filter.ne {\r\n right: 4px;\r\n}\r\n\r\n.monaco-list-type-filter.nw {\r\n left: 4px;\r\n}\r\n\r\n.monaco-list-type-filter > .controls {\r\n display: flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n transition: width 0.2s;\r\n width: 0;\r\n}\r\n\r\n.monaco-list-type-filter.dragging > .controls,\r\n.monaco-list-type-filter:hover > .controls {\r\n width: 36px;\r\n}\r\n\r\n.monaco-list-type-filter > .controls > * {\r\n border: none;\r\n box-sizing: border-box;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n background: none;\r\n width: 16px;\r\n height: 16px;\r\n flex-shrink: 0;\r\n margin: 0;\r\n padding: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n}\r\n\r\n.monaco-list-type-filter > .controls > .filter {\r\n margin-left: 4px;\r\n}\r\n\r\n.monaco-list-type-filter-message {\r\n position: absolute;\r\n box-sizing: border-box;\r\n width: 100%;\r\n height: 100%;\r\n top: 0;\r\n left: 0;\r\n padding: 40px 1em 1em 1em;\r\n text-align: center;\r\n white-space: normal;\r\n opacity: 0.7;\r\n pointer-events: none;\r\n}\r\n\r\n.monaco-list-type-filter-message:empty {\r\n display: none;\r\n}\r\n\r\n/* Electron */\r\n\r\n.monaco-list-type-filter {\r\n cursor: grab;\r\n}\r\n\r\n.monaco-list-type-filter.dragging {\r\n cursor: grabbing;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(265); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(265); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-tl-row {\n display: flex;\n height: 100%;\n align-items: center;\n position: relative;\n}\n\n.monaco-tl-indent {\n height: 100%;\n position: absolute;\n top: 0;\n left: 16px;\n pointer-events: none;\n}\n\n.hide-arrows .monaco-tl-indent {\n left: 12px;\n}\n\n.monaco-tl-indent > .indent-guide {\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n border-left: 1px solid transparent;\n}\n\n.monaco-tl-indent > .indent-guide {\n transition: border-color 0.1s linear;\n}\n\n.monaco-tl-twistie,\n.monaco-tl-contents {\n height: 100%;\n}\n\n.monaco-tl-twistie {\n font-size: 10px;\n text-align: right;\n padding-right: 6px;\n flex-shrink: 0;\n width: 16px;\n display: flex !important;\n align-items: center;\n justify-content: center;\n color: inherit !important;\n transform: translateX(3px);\n}\n\n.monaco-tl-contents {\n flex: 1;\n overflow: hidden;\n}\n\n.monaco-tl-twistie.collapsed::before {\n transform: rotate(-90deg);\n}\n\n.monaco-tl-twistie.codicon-tree-item-loading::before {\n /* Use steps to throttle FPS to reduce CPU usage */\n animation: codicon-spin 1.25s steps(30) infinite;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-tl-row {\r\n display: flex;\r\n height: 100%;\r\n align-items: center;\r\n position: relative;\r\n}\r\n\r\n.monaco-tl-indent {\r\n height: 100%;\r\n position: absolute;\r\n top: 0;\r\n left: 16px;\r\n pointer-events: none;\r\n}\r\n\r\n.hide-arrows .monaco-tl-indent {\r\n left: 12px;\r\n}\r\n\r\n.monaco-tl-indent > .indent-guide {\r\n display: inline-block;\r\n box-sizing: border-box;\r\n height: 100%;\r\n border-left: 1px solid transparent;\r\n}\r\n\r\n.monaco-tl-indent > .indent-guide {\r\n transition: border-color 0.1s linear;\r\n}\r\n\r\n.monaco-tl-twistie,\r\n.monaco-tl-contents {\r\n height: 100%;\r\n}\r\n\r\n.monaco-tl-twistie {\r\n font-size: 10px;\r\n text-align: right;\r\n padding-right: 6px;\r\n flex-shrink: 0;\r\n width: 16px;\r\n display: flex !important;\r\n align-items: center;\r\n justify-content: center;\r\n color: inherit !important;\r\n transform: translateX(3px);\r\n}\r\n\r\n.monaco-tl-contents {\r\n flex: 1;\r\n overflow: hidden;\r\n}\r\n\r\n.monaco-tl-twistie.collapsed::before {\r\n transform: rotate(-90deg);\r\n}\r\n\r\n.monaco-tl-twistie.codicon-tree-item-loading::before {\r\n /* Use steps to throttle FPS to reduce CPU usage */\r\n animation: codicon-spin 1.25s steps(30) infinite;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(267); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(267); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.quick-input-widget {\n font-size: 13px;\n}\n\n.quick-input-widget .monaco-highlighted-label .highlight,\n.quick-input-widget .monaco-highlighted-label .highlight {\n color: #0066BF;\n}\n\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\n color: #0097fb;\n}\n\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\n color: #F38518;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.quick-input-widget {\r\n font-size: 13px;\r\n}\r\n\r\n.quick-input-widget .monaco-highlighted-label .highlight,\r\n.quick-input-widget .monaco-highlighted-label .highlight {\r\n color: #0066BF;\r\n}\r\n\r\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\r\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\r\n color: #0097fb;\r\n}\r\n\r\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\r\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\r\n color: #F38518;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.quick-input-widget {\n position: absolute;\n width: 600px;\n z-index: 2000;\n padding-bottom: 6px;\n left: 50%;\n margin-left: -300px;\n}\n\n.quick-input-titlebar {\n display: flex;\n}\n\n.quick-input-left-action-bar {\n display: flex;\n margin-left: 4px;\n flex: 1;\n}\n\n.quick-input-left-action-bar.monaco-action-bar .actions-container {\n justify-content: flex-start;\n}\n\n.quick-input-title {\n padding: 3px 0px;\n text-align: center;\n}\n\n.quick-input-right-action-bar {\n display: flex;\n margin-right: 4px;\n flex: 1;\n}\n\n.quick-input-titlebar .monaco-action-bar .action-label.codicon {\n margin: 0;\n width: 19px;\n height: 100%;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n.quick-input-description {\n margin: 6px;\n}\n\n.quick-input-header {\n display: flex;\n padding: 6px 6px 0px 6px;\n margin-bottom: -2px;\n}\n\n.quick-input-widget.hidden-input .quick-input-header {\n /* reduce margins and paddings when input box hidden */\n padding: 0;\n margin-bottom: 0;\n}\n\n.quick-input-and-message {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n position: relative;\n}\n\n.quick-input-check-all {\n align-self: center;\n margin: 0;\n}\n\n.quick-input-filter {\n flex-grow: 1;\n display: flex;\n position: relative;\n}\n\n.quick-input-box {\n flex-grow: 1;\n}\n\n.quick-input-widget.show-checkboxes .quick-input-box,\n.quick-input-widget.show-checkboxes .quick-input-message {\n margin-left: 5px;\n}\n\n.quick-input-visible-count {\n position: absolute;\n left: -10000px;\n}\n\n.quick-input-count {\n align-self: center;\n position: absolute;\n right: 4px;\n display: flex;\n align-items: center;\n}\n\n.quick-input-count .monaco-count-badge {\n vertical-align: middle;\n padding: 2px 4px;\n border-radius: 2px;\n min-height: auto;\n line-height: normal;\n}\n\n.quick-input-action {\n margin-left: 6px;\n}\n\n.quick-input-action .monaco-text-button {\n font-size: 11px;\n padding: 0 6px;\n display: flex;\n height: 100%;\n align-items: center;\n}\n\n.quick-input-message {\n margin-top: -1px;\n padding: 5px 5px 2px 5px;\n}\n\n.quick-input-progress.monaco-progress-container {\n position: relative;\n}\n\n.quick-input-progress.monaco-progress-container,\n.quick-input-progress.monaco-progress-container .progress-bit {\n height: 2px;\n}\n\n.quick-input-list {\n line-height: 22px;\n margin-top: 6px;\n}\n\n.quick-input-widget.hidden-input .quick-input-list {\n margin-top: 0; /* reduce margins when input box hidden */\n}\n\n.quick-input-list .monaco-list {\n overflow: hidden;\n max-height: calc(20 * 22px);\n}\n\n.quick-input-list .quick-input-list-entry {\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n height: 100%;\n padding: 0 6px;\n}\n\n.quick-input-list .quick-input-list-entry.quick-input-list-separator-border {\n border-top-width: 1px;\n border-top-style: solid;\n}\n\n.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border {\n border-top-style: none;\n}\n\n.quick-input-list .quick-input-list-label {\n overflow: hidden;\n display: flex;\n height: 100%;\n flex: 1;\n}\n\n.quick-input-list .quick-input-list-checkbox {\n align-self: center;\n margin: 0;\n}\n\n.quick-input-list .quick-input-list-rows {\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n margin-left: 5px;\n}\n\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows {\n margin-left: 10px;\n}\n\n.quick-input-widget .quick-input-list .quick-input-list-checkbox {\n display: none;\n}\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox {\n display: inline;\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row {\n display: flex;\n align-items: center;\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label,\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container {\n flex: 1; /* make sure the icon label grows within the row */\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] {\n vertical-align: sub;\n}\n\n.quick-input-list .quick-input-list-rows .monaco-highlighted-label span {\n opacity: 1;\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {\n margin-right: 8px; /* separate from the separator label or scrollbar if any */\n}\n\n.quick-input-list .quick-input-list-label-meta {\n opacity: 0.7;\n line-height: normal;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.quick-input-list .monaco-highlighted-label .highlight {\n font-weight: bold;\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-separator {\n margin-right: 8px; /* separate from keybindings or actions */\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n display: flex;\n flex: 0;\n overflow: visible;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar .action-label {\n /*\n * By default, actions in the quick input action bar are hidden\n * until hovered over them or selected.\n */\n display: none;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\n margin: 0;\n height: 100%;\n padding: 0 2px;\n vertical-align: middle;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n margin-top: 1px;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n margin-right: 4px; /* separate from scrollbar */\n}\n\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\n margin-right: 4px; /* separate actions */\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,\n.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label {\n display: flex;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.quick-input-widget {\r\n position: absolute;\r\n width: 600px;\r\n z-index: 2000;\r\n padding-bottom: 6px;\r\n left: 50%;\r\n margin-left: -300px;\r\n}\r\n\r\n.quick-input-titlebar {\r\n display: flex;\r\n}\r\n\r\n.quick-input-left-action-bar {\r\n display: flex;\r\n margin-left: 4px;\r\n flex: 1;\r\n}\r\n\r\n.quick-input-left-action-bar.monaco-action-bar .actions-container {\r\n justify-content: flex-start;\r\n}\r\n\r\n.quick-input-title {\r\n padding: 3px 0px;\r\n text-align: center;\r\n}\r\n\r\n.quick-input-right-action-bar {\r\n display: flex;\r\n margin-right: 4px;\r\n flex: 1;\r\n}\r\n\r\n.quick-input-titlebar .monaco-action-bar .action-label.codicon {\r\n margin: 0;\r\n width: 19px;\r\n height: 100%;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n}\r\n\r\n.quick-input-description {\r\n margin: 6px;\r\n}\r\n\r\n.quick-input-header {\r\n display: flex;\r\n padding: 6px 6px 0px 6px;\r\n margin-bottom: -2px;\r\n}\r\n\r\n.quick-input-widget.hidden-input .quick-input-header {\r\n /* reduce margins and paddings when input box hidden */\r\n padding: 0;\r\n margin-bottom: 0;\r\n}\r\n\r\n.quick-input-and-message {\r\n display: flex;\r\n flex-direction: column;\r\n flex-grow: 1;\r\n position: relative;\r\n}\r\n\r\n.quick-input-check-all {\r\n align-self: center;\r\n margin: 0;\r\n}\r\n\r\n.quick-input-filter {\r\n flex-grow: 1;\r\n display: flex;\r\n position: relative;\r\n}\r\n\r\n.quick-input-box {\r\n flex-grow: 1;\r\n}\r\n\r\n.quick-input-widget.show-checkboxes .quick-input-box,\r\n.quick-input-widget.show-checkboxes .quick-input-message {\r\n margin-left: 5px;\r\n}\r\n\r\n.quick-input-visible-count {\r\n position: absolute;\r\n left: -10000px;\r\n}\r\n\r\n.quick-input-count {\r\n align-self: center;\r\n position: absolute;\r\n right: 4px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.quick-input-count .monaco-count-badge {\r\n vertical-align: middle;\r\n padding: 2px 4px;\r\n border-radius: 2px;\r\n min-height: auto;\r\n line-height: normal;\r\n}\r\n\r\n.quick-input-action {\r\n margin-left: 6px;\r\n}\r\n\r\n.quick-input-action .monaco-text-button {\r\n font-size: 11px;\r\n padding: 0 6px;\r\n display: flex;\r\n height: 100%;\r\n align-items: center;\r\n}\r\n\r\n.quick-input-message {\r\n margin-top: -1px;\r\n padding: 5px 5px 2px 5px;\r\n}\r\n\r\n.quick-input-progress.monaco-progress-container {\r\n position: relative;\r\n}\r\n\r\n.quick-input-progress.monaco-progress-container,\r\n.quick-input-progress.monaco-progress-container .progress-bit {\r\n height: 2px;\r\n}\r\n\r\n.quick-input-list {\r\n line-height: 22px;\r\n margin-top: 6px;\r\n}\r\n\r\n.quick-input-widget.hidden-input .quick-input-list {\r\n margin-top: 0; /* reduce margins when input box hidden */\r\n}\r\n\r\n.quick-input-list .monaco-list {\r\n overflow: hidden;\r\n max-height: calc(20 * 22px);\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry {\r\n box-sizing: border-box;\r\n overflow: hidden;\r\n display: flex;\r\n height: 100%;\r\n padding: 0 6px;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry.quick-input-list-separator-border {\r\n border-top-width: 1px;\r\n border-top-style: solid;\r\n}\r\n\r\n.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border {\r\n border-top-style: none;\r\n}\r\n\r\n.quick-input-list .quick-input-list-label {\r\n overflow: hidden;\r\n display: flex;\r\n height: 100%;\r\n flex: 1;\r\n}\r\n\r\n.quick-input-list .quick-input-list-checkbox {\r\n align-self: center;\r\n margin: 0;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n flex: 1;\r\n margin-left: 5px;\r\n}\r\n\r\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows {\r\n margin-left: 10px;\r\n}\r\n\r\n.quick-input-widget .quick-input-list .quick-input-list-checkbox {\r\n display: none;\r\n}\r\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox {\r\n display: inline;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label,\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container {\r\n flex: 1; /* make sure the icon label grows within the row */\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] {\r\n vertical-align: sub;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows .monaco-highlighted-label span {\r\n opacity: 1;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {\r\n margin-right: 8px; /* separate from the separator label or scrollbar if any */\r\n}\r\n\r\n.quick-input-list .quick-input-list-label-meta {\r\n opacity: 0.7;\r\n line-height: normal;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n}\r\n\r\n.quick-input-list .monaco-highlighted-label .highlight {\r\n font-weight: bold;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-separator {\r\n margin-right: 8px; /* separate from keybindings or actions */\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n display: flex;\r\n flex: 0;\r\n overflow: visible;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar .action-label {\r\n /*\r\n * By default, actions in the quick input action bar are hidden\r\n * until hovered over them or selected.\r\n */\r\n display: none;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\r\n margin: 0;\r\n height: 100%;\r\n padding: 0 2px;\r\n vertical-align: middle;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n margin-top: 1px;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n margin-right: 4px; /* separate from scrollbar */\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\r\n margin-right: 4px; /* separate actions */\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,\r\n.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,\r\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label {\r\n display: flex;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(270); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(270); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* ---------- Icon label ---------- */\n\n.monaco-icon-label {\n display: flex; /* required for icons support :before rule */\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.monaco-icon-label::before {\n\n /* svg icons rendered as background image */\n background-size: 16px;\n background-position: left center;\n background-repeat: no-repeat;\n padding-right: 6px;\n width: 16px;\n height: 22px;\n line-height: inherit !important;\n display: inline-block;\n\n /* fonts icons */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n vertical-align: top;\n\n flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */\n}\n\n.monaco-icon-label > .monaco-icon-label-container {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n flex: 1;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\n color: inherit;\n white-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\n margin: 0 2px;\n opacity: 0.5;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n opacity: .7;\n margin-left: 0.5em;\n font-size: 0.9em;\n white-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n opacity: .95;\n}\n\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.italic > .monaco-icon-description-container > .label-description {\n font-style: italic;\n}\n\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.strikethrough > .monaco-icon-description-container > .label-description {\n text-decoration: line-through;\n}\n\n.monaco-icon-label::after {\n opacity: 0.75;\n font-size: 90%;\n font-weight: 600;\n padding: 0 16px 0 5px;\n text-align: center;\n}\n\n/* make sure selection color wins when a label is being selected */\n.monaco-list:focus .selected .monaco-icon-label, /* list */\n.monaco-list:focus .selected .monaco-icon-label::after\n{\n color: inherit !important;\n}\n\n.monaco-list-row.focused.selected .label-description,\n.monaco-list-row.selected .label-description {\n opacity: .8;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* ---------- Icon label ---------- */\r\n\r\n.monaco-icon-label {\r\n display: flex; /* required for icons support :before rule */\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\n.monaco-icon-label::before {\r\n\r\n /* svg icons rendered as background image */\r\n background-size: 16px;\r\n background-position: left center;\r\n background-repeat: no-repeat;\r\n padding-right: 6px;\r\n width: 16px;\r\n height: 22px;\r\n line-height: inherit !important;\r\n display: inline-block;\r\n\r\n /* fonts icons */\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n vertical-align: top;\r\n\r\n flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container {\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n flex: 1;\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\r\n color: inherit;\r\n white-space: pre; /* enable to show labels that include multiple whitespaces */\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\r\n margin: 0 2px;\r\n opacity: 0.5;\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n opacity: .7;\r\n margin-left: 0.5em;\r\n font-size: 0.9em;\r\n white-space: pre; /* enable to show labels that include multiple whitespaces */\r\n}\r\n\r\n.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n opacity: .95;\r\n}\r\n\r\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r\n.monaco-icon-label.italic > .monaco-icon-description-container > .label-description {\r\n font-style: italic;\r\n}\r\n\r\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r\n.monaco-icon-label.strikethrough > .monaco-icon-description-container > .label-description {\r\n text-decoration: line-through;\r\n}\r\n\r\n.monaco-icon-label::after {\r\n opacity: 0.75;\r\n font-size: 90%;\r\n font-weight: 600;\r\n padding: 0 16px 0 5px;\r\n text-align: center;\r\n}\r\n\r\n/* make sure selection color wins when a label is being selected */\r\n.monaco-list:focus .selected .monaco-icon-label, /* list */\r\n.monaco-list:focus .selected .monaco-icon-label::after\r\n{\r\n color: inherit !important;\r\n}\r\n\r\n.monaco-list-row.focused.selected .label-description,\r\n.monaco-list-row.selected .label-description {\r\n opacity: .8;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(272); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(272); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-keybinding {\n display: flex;\n align-items: center;\n line-height: 10px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n display: inline-block;\n border: solid 1px rgba(204, 204, 204, 0.4);\n border-bottom-color: rgba(187, 187, 187, 0.4);\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n background-color: rgba(221, 221, 221, 0.4);\n vertical-align: middle;\n color: #555;\n font-size: 11px;\n padding: 3px 5px;\n margin: 0 2px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:first-child {\n margin-left: 0;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:last-child {\n margin-right: 0;\n}\n\n.hc-black .monaco-keybinding > .monaco-keybinding-key,\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\n background-color: rgba(128, 128, 128, 0.17);\n color: #ccc;\n border: solid 1px rgba(51, 51, 51, 0.6);\n border-bottom-color: rgba(68, 68, 68, 0.6);\n box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n}\n\n.monaco-keybinding > .monaco-keybinding-key-separator {\n display: inline-block;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\n width: 6px;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-keybinding {\r\n display: flex;\r\n align-items: center;\r\n line-height: 10px;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key {\r\n display: inline-block;\r\n border: solid 1px rgba(204, 204, 204, 0.4);\r\n border-bottom-color: rgba(187, 187, 187, 0.4);\r\n border-radius: 3px;\r\n box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\r\n background-color: rgba(221, 221, 221, 0.4);\r\n vertical-align: middle;\r\n color: #555;\r\n font-size: 11px;\r\n padding: 3px 5px;\r\n margin: 0 2px;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key:first-child {\r\n margin-left: 0;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key:last-child {\r\n margin-right: 0;\r\n}\r\n\r\n.hc-black .monaco-keybinding > .monaco-keybinding-key,\r\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\r\n background-color: rgba(128, 128, 128, 0.17);\r\n color: #ccc;\r\n border: solid 1px rgba(51, 51, 51, 0.6);\r\n border-bottom-color: rgba(68, 68, 68, 0.6);\r\n box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key-separator {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\r\n width: 6px;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(274); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(274); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-inputbox {\n position: relative;\n display: block;\n padding: 0;\n box-sizing: border-box;\n\n /* Customizable */\n font-size: inherit;\n}\n\n.monaco-inputbox.idle {\n border: 1px solid transparent;\n}\n\n.monaco-inputbox > .wrapper > .input,\n.monaco-inputbox > .wrapper > .mirror {\n\n /* Customizable */\n padding: 4px;\n}\n\n.monaco-inputbox > .wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.monaco-inputbox > .wrapper > .input {\n display: inline-block;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n line-height: inherit;\n border: none;\n font-family: inherit;\n font-size: inherit;\n resize: none;\n color: inherit;\n}\n\n.monaco-inputbox > .wrapper > input {\n text-overflow: ellipsis;\n}\n\n.monaco-inputbox > .wrapper > textarea.input {\n display: block;\n -ms-overflow-style: none; /* IE 10+: hide scrollbars */\n scrollbar-width: none; /* Firefox: hide scrollbars */\n outline: none;\n}\n\n.monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar {\n display: none; /* Chrome + Safari: hide scrollbar */\n}\n\n.monaco-inputbox > .wrapper > textarea.input.empty {\n white-space: nowrap;\n}\n\n.monaco-inputbox > .wrapper > .mirror {\n position: absolute;\n display: inline-block;\n width: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n white-space: pre-wrap;\n visibility: hidden;\n word-wrap: break-word;\n}\n\n/* Context view */\n\n.monaco-inputbox-container {\n text-align: right;\n}\n\n.monaco-inputbox-container .monaco-inputbox-message {\n display: inline-block;\n overflow: hidden;\n text-align: left;\n width: 100%;\n box-sizing: border-box;\n padding: 0.4em;\n font-size: 12px;\n line-height: 17px;\n min-height: 34px;\n margin-top: -1px;\n word-wrap: break-word;\n}\n\n/* Action bar support */\n.monaco-inputbox .monaco-action-bar {\n position: absolute;\n right: 2px;\n top: 4px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item {\n margin-left: 2px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item .codicon {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-inputbox {\r\n position: relative;\r\n display: block;\r\n padding: 0;\r\n box-sizing: border-box;\r\n\r\n /* Customizable */\r\n font-size: inherit;\r\n}\r\n\r\n.monaco-inputbox.idle {\r\n border: 1px solid transparent;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .input,\r\n.monaco-inputbox > .wrapper > .mirror {\r\n\r\n /* Customizable */\r\n padding: 4px;\r\n}\r\n\r\n.monaco-inputbox > .wrapper {\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .input {\r\n display: inline-block;\r\n box-sizing: border-box;\r\n width: 100%;\r\n height: 100%;\r\n line-height: inherit;\r\n border: none;\r\n font-family: inherit;\r\n font-size: inherit;\r\n resize: none;\r\n color: inherit;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > input {\r\n text-overflow: ellipsis;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > textarea.input {\r\n display: block;\r\n -ms-overflow-style: none; /* IE 10+: hide scrollbars */\r\n scrollbar-width: none; /* Firefox: hide scrollbars */\r\n outline: none;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar {\r\n display: none; /* Chrome + Safari: hide scrollbar */\r\n}\r\n\r\n.monaco-inputbox > .wrapper > textarea.input.empty {\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .mirror {\r\n position: absolute;\r\n display: inline-block;\r\n width: 100%;\r\n top: 0;\r\n left: 0;\r\n box-sizing: border-box;\r\n white-space: pre-wrap;\r\n visibility: hidden;\r\n word-wrap: break-word;\r\n}\r\n\r\n/* Context view */\r\n\r\n.monaco-inputbox-container {\r\n text-align: right;\r\n}\r\n\r\n.monaco-inputbox-container .monaco-inputbox-message {\r\n display: inline-block;\r\n overflow: hidden;\r\n text-align: left;\r\n width: 100%;\r\n box-sizing: border-box;\r\n padding: 0.4em;\r\n font-size: 12px;\r\n line-height: 17px;\r\n min-height: 34px;\r\n margin-top: -1px;\r\n word-wrap: break-word;\r\n}\r\n\r\n/* Action bar support */\r\n.monaco-inputbox .monaco-action-bar {\r\n position: absolute;\r\n right: 2px;\r\n top: 4px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item {\r\n margin-left: 2px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item .codicon {\r\n background-repeat: no-repeat;\r\n width: 16px;\r\n height: 16px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(276); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(276); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-count-badge {\n padding: 3px 6px;\n border-radius: 11px;\n font-size: 11px;\n min-width: 18px;\n min-height: 18px;\n line-height: 11px;\n font-weight: normal;\n text-align: center;\n display: inline-block;\n box-sizing: border-box;\n}\n\n.monaco-count-badge.long {\n padding: 2px 3px;\n border-radius: 2px;\n min-height: auto;\n line-height: normal;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-count-badge {\r\n padding: 3px 6px;\r\n border-radius: 11px;\r\n font-size: 11px;\r\n min-width: 18px;\r\n min-height: 18px;\r\n line-height: 11px;\r\n font-weight: normal;\r\n text-align: center;\r\n display: inline-block;\r\n box-sizing: border-box;\r\n}\r\n\r\n.monaco-count-badge.long {\r\n padding: 2px 3px;\r\n border-radius: 2px;\r\n min-height: auto;\r\n line-height: normal;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(278); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(278); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-progress-container {\n width: 100%;\n height: 5px;\n overflow: hidden; /* keep progress bit in bounds */\n}\n\n.monaco-progress-container .progress-bit {\n width: 2%;\n height: 5px;\n position: absolute;\n left: 0;\n display: none;\n}\n\n.monaco-progress-container.active .progress-bit {\n display: inherit;\n}\n\n.monaco-progress-container.discrete .progress-bit {\n left: 0;\n transition: width 100ms linear;\n}\n\n.monaco-progress-container.discrete.done .progress-bit {\n width: 100%;\n}\n\n.monaco-progress-container.infinite .progress-bit {\n animation-name: progress;\n animation-duration: 4s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n transform: translate3d(0px, 0px, 0px);\n}\n\n/**\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\n * its relative size to the parent container:\n * 50%: 50 * 50 = 2500%\n * 100%: 50 * 100 - 50 (do not overflow): 4950%\n */\n@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } }\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-progress-container {\r\n width: 100%;\r\n height: 5px;\r\n overflow: hidden; /* keep progress bit in bounds */\r\n}\r\n\r\n.monaco-progress-container .progress-bit {\r\n width: 2%;\r\n height: 5px;\r\n position: absolute;\r\n left: 0;\r\n display: none;\r\n}\r\n\r\n.monaco-progress-container.active .progress-bit {\r\n display: inherit;\r\n}\r\n\r\n.monaco-progress-container.discrete .progress-bit {\r\n left: 0;\r\n transition: width 100ms linear;\r\n}\r\n\r\n.monaco-progress-container.discrete.done .progress-bit {\r\n width: 100%;\r\n}\r\n\r\n.monaco-progress-container.infinite .progress-bit {\r\n animation-name: progress;\r\n animation-duration: 4s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n transform: translate3d(0px, 0px, 0px);\r\n}\r\n\r\n/**\r\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\r\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\r\n * its relative size to the parent container:\r\n * 50%: 50 * 50 = 2500%\r\n * 100%: 50 * 100 - 50 (do not overflow): 4950%\r\n */\r\n@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } }\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(280); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(280); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-text-button {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 4px;\n text-align: center;\n cursor: pointer;\n outline-offset: 2px !important;\n justify-content: center;\n align-items: center;\n}\n\n.monaco-text-button:hover {\n text-decoration: none !important;\n}\n\n.monaco-button.disabled {\n opacity: 0.4;\n cursor: default;\n}\n\n.monaco-button > .codicon {\n margin: 0 0.2em;\n color: inherit !important;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-text-button {\r\n box-sizing: border-box;\r\n display: flex;\r\n width: 100%;\r\n padding: 4px;\r\n text-align: center;\r\n cursor: pointer;\r\n outline-offset: 2px !important;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.monaco-text-button:hover {\r\n text-decoration: none !important;\r\n}\r\n\r\n.monaco-button.disabled {\r\n opacity: 0.4;\r\n cursor: default;\r\n}\r\n\r\n.monaco-button > .codicon {\r\n margin: 0 0.2em;\r\n color: inherit !important;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(282); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(282); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .selection-anchor {\n background-color: #007ACC;\n width: 2px !important;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .selection-anchor {\r\n background-color: #007ACC;\r\n width: 2px !important;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(284); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(284); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .bracket-match {\n box-sizing: border-box;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .bracket-match {\r\n box-sizing: border-box;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(286); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(286); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .monaco-editor-overlaymessage {\n padding-bottom: 8px;\n z-index: 10000;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\n animation: fadeIn 150ms ease-out;\n}\n\n@keyframes fadeOut {\n from { opacity: 1; }\n to { opacity: 0; }\n}\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\n animation: fadeOut 100ms ease-out;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message {\n padding: 1px 4px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor {\n width: 0 !important;\n height: 0 !important;\n border-color: transparent;\n border-style: solid;\n z-index: 1000;\n border-width: 8px;\n position: absolute;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .monaco-editor-overlaymessage {\r\n padding-bottom: 8px;\r\n z-index: 10000;\r\n}\r\n\r\n@keyframes fadeIn {\r\n from { opacity: 0; }\r\n to { opacity: 1; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\r\n animation: fadeIn 150ms ease-out;\r\n}\r\n\r\n@keyframes fadeOut {\r\n from { opacity: 1; }\r\n to { opacity: 0; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\r\n animation: fadeOut 100ms ease-out;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .message {\r\n padding: 1px 4px;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .anchor {\r\n width: 0 !important;\r\n height: 0 !important;\r\n border-color: transparent;\r\n border-style: solid;\r\n z-index: 1000;\r\n border-width: 8px;\r\n position: absolute;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(288); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(288); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .lightbulb-glyph,\n.monaco-editor .codicon-lightbulb {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 16px;\n width: 20px;\n padding-left: 2px;\n}\n\n.monaco-editor .lightbulb-glyph:hover,\n.monaco-editor .codicon-lightbulb:hover {\n cursor: pointer;\n /* transform: scale(1.3, 1.3); */\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .lightbulb-glyph,\r\n.monaco-editor .codicon-lightbulb {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 16px;\r\n width: 20px;\r\n padding-left: 2px;\r\n}\r\n\r\n.monaco-editor .lightbulb-glyph:hover,\r\n.monaco-editor .codicon-lightbulb:hover {\r\n cursor: pointer;\r\n /* transform: scale(1.3, 1.3); */\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(290); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(290); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .codelens-decoration {\n overflow: hidden;\n display: inline-block;\n text-overflow: ellipsis;\n}\n\n.monaco-editor .codelens-decoration > span,\n.monaco-editor .codelens-decoration > a {\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n white-space: nowrap;\n vertical-align: sub;\n}\n\n.monaco-editor .codelens-decoration > a {\n text-decoration: none;\n}\n\n.monaco-editor .codelens-decoration > a:hover {\n cursor: pointer;\n}\n\n.monaco-editor .codelens-decoration .codicon {\n vertical-align: middle;\n color: currentColor !important;\n}\n\n.monaco-editor .codelens-decoration > a:hover .codicon::before {\n cursor: pointer;\n}\n\n@keyframes fadein {\n 0% { opacity: 0; visibility: visible;}\n 100% { opacity: 1; }\n}\n\n.monaco-editor .codelens-decoration.fadein {\n animation: fadein 0.1s linear;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .codelens-decoration {\r\n overflow: hidden;\r\n display: inline-block;\r\n text-overflow: ellipsis;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > span,\r\n.monaco-editor .codelens-decoration > a {\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n white-space: nowrap;\r\n vertical-align: sub;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a {\r\n text-decoration: none;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a:hover {\r\n cursor: pointer;\r\n}\r\n\r\n.monaco-editor .codelens-decoration .codicon {\r\n vertical-align: middle;\r\n color: currentColor !important;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a:hover .codicon::before {\r\n cursor: pointer;\r\n}\r\n\r\n@keyframes fadein {\r\n 0% { opacity: 0; visibility: visible;}\r\n 100% { opacity: 1; }\r\n}\r\n\r\n.monaco-editor .codelens-decoration.fadein {\r\n animation: fadein 0.1s linear;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(292); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(292); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor.vs .dnd-target {\n border-right: 2px dotted black;\n color: white; /* opposite of black */\n}\n.monaco-editor.vs-dark .dnd-target {\n border-right: 2px dotted #AEAFAD;\n color: #51504f; /* opposite of #AEAFAD */\n}\n.monaco-editor.hc-black .dnd-target {\n border-right: 2px dotted #fff;\n color: #000; /* opposite of #fff */\n}\n\n.monaco-editor.mouse-default .view-lines,\n.monaco-editor.vs-dark.mac.mouse-default .view-lines,\n.monaco-editor.hc-black.mac.mouse-default .view-lines {\n cursor: default;\n}\n.monaco-editor.mouse-copy .view-lines,\n.monaco-editor.vs-dark.mac.mouse-copy .view-lines,\n.monaco-editor.hc-black.mac.mouse-copy .view-lines {\n cursor: copy;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor.vs .dnd-target {\r\n border-right: 2px dotted black;\r\n color: white; /* opposite of black */\r\n}\r\n.monaco-editor.vs-dark .dnd-target {\r\n border-right: 2px dotted #AEAFAD;\r\n color: #51504f; /* opposite of #AEAFAD */\r\n}\r\n.monaco-editor.hc-black .dnd-target {\r\n border-right: 2px dotted #fff;\r\n color: #000; /* opposite of #fff */\r\n}\r\n\r\n.monaco-editor.mouse-default .view-lines,\r\n.monaco-editor.vs-dark.mac.mouse-default .view-lines,\r\n.monaco-editor.hc-black.mac.mouse-default .view-lines {\r\n cursor: default;\r\n}\r\n.monaco-editor.mouse-copy .view-lines,\r\n.monaco-editor.vs-dark.mac.mouse-copy .view-lines,\r\n.monaco-editor.hc-black.mac.mouse-copy .view-lines {\r\n cursor: copy;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(294); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(294); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-custom-checkbox {\n margin-left: 2px;\n float: left;\n cursor: pointer;\n overflow: hidden;\n opacity: 0.7;\n width: 20px;\n height: 20px;\n border: 1px solid transparent;\n padding: 1px;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n.monaco-custom-checkbox:hover,\n.monaco-custom-checkbox.checked {\n opacity: 1;\n}\n\n.hc-black .monaco-custom-checkbox {\n background: none;\n}\n\n.hc-black .monaco-custom-checkbox:hover {\n background: none;\n}\n\n.monaco-custom-checkbox.monaco-simple-checkbox {\n height: 18px;\n width: 18px;\n border: 1px solid transparent;\n border-radius: 3px;\n margin-right: 9px;\n margin-left: 0px;\n padding: 0px;\n opacity: 1;\n background-size: 16px !important;\n}\n\n/* hide check when unchecked */\n.monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before {\n visibility: hidden;;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-custom-checkbox {\r\n margin-left: 2px;\r\n float: left;\r\n cursor: pointer;\r\n overflow: hidden;\r\n opacity: 0.7;\r\n width: 20px;\r\n height: 20px;\r\n border: 1px solid transparent;\r\n padding: 1px;\r\n box-sizing: border-box;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n.monaco-custom-checkbox:hover,\r\n.monaco-custom-checkbox.checked {\r\n opacity: 1;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox {\r\n background: none;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox:hover {\r\n background: none;\r\n}\r\n\r\n.monaco-custom-checkbox.monaco-simple-checkbox {\r\n height: 18px;\r\n width: 18px;\r\n border: 1px solid transparent;\r\n border-radius: 3px;\r\n margin-right: 9px;\r\n margin-left: 0px;\r\n padding: 0px;\r\n opacity: 1;\r\n background-size: 16px !important;\r\n}\r\n\r\n/* hide check when unchecked */\r\n.monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before {\r\n visibility: hidden;;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(296); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(296); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Find widget */\n.monaco-editor .find-widget {\n position: absolute;\n z-index: 50;\n height: 33px;\n overflow: hidden;\n line-height: 19px;\n transition: transform 200ms linear;\n padding: 0 4px;\n box-sizing: border-box;\n transform: translateY(calc(-100% - 10px)); /* shadow (10px) */\n}\n\n.monaco-editor .find-widget textarea {\n margin: 0px;\n}\n\n.monaco-editor .find-widget.hiddenEditor {\n display: none;\n}\n\n/* Find widget when replace is toggled on */\n.monaco-editor .find-widget.replaceToggled > .replace-part {\n display: flex;\n}\n\n.monaco-editor .find-widget.visible {\n transform: translateY(0);\n}\n\n.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {\n outline: 1px solid -webkit-focus-ring-color;\n outline-offset: -1px;\n}\n\n.monaco-editor .find-widget .monaco-inputbox .input {\n background-color: transparent;\n min-height: 0;\n}\n\n.monaco-editor .find-widget .monaco-findInput .input {\n font-size: 13px;\n}\n\n.monaco-editor .find-widget > .find-part,\n.monaco-editor .find-widget > .replace-part {\n margin: 4px 0 0 17px;\n font-size: 12px;\n display: flex;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\n min-height: 25px;\n}\n\n\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\n padding-right: 22px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .mirror,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n\n.monaco-editor .find-widget > .find-part .find-actions {\n height: 25px;\n display: flex;\n align-items: center;\n}\n\n.monaco-editor .find-widget > .replace-part .replace-actions {\n height: 25px;\n display: flex;\n align-items: center;\n}\n\n.monaco-editor .find-widget .monaco-findInput {\n vertical-align: middle;\n display: flex;\n flex:1;\n}\n\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {\n /* Make sure textarea inherits the width correctly */\n width: 100%;\n}\n\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {\n /* Hide vertical scrollbar */\n opacity: 0;\n}\n\n.monaco-editor .find-widget .matchesCount {\n display: flex;\n flex: initial;\n margin: 0 0 0 3px;\n padding: 2px 0 0 2px;\n height: 25px;\n vertical-align: middle;\n box-sizing: border-box;\n text-align: center;\n line-height: 23px;\n}\n\n.monaco-editor .find-widget .button {\n width: 20px;\n height: 20px;\n display: flex;\n flex: initial;\n margin-left: 3px;\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.monaco-editor .find-widget .button.left {\n margin-left: 0;\n margin-right: 3px;\n}\n\n.monaco-editor .find-widget .button.wide {\n width: auto;\n padding: 1px 6px;\n top: -1px;\n}\n\n.monaco-editor .find-widget .button.toggle {\n position: absolute;\n top: 0;\n left: 3px;\n width: 18px;\n height: 100%;\n box-sizing: border-box;\n}\n\n.monaco-editor .find-widget .button.toggle.disabled {\n display: none;\n}\n\n.monaco-editor .find-widget .disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.monaco-editor .find-widget > .replace-part {\n display: none;\n}\n\n.monaco-editor .find-widget > .replace-part > .monaco-findInput {\n position: relative;\n display: flex;\n vertical-align: middle;\n flex: auto;\n flex-grow: 0;\n flex-shrink: 0;\n}\n\n.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {\n position: absolute;\n top: 3px;\n right: 2px;\n}\n\n/* REDUCED */\n.monaco-editor .find-widget.reduced-find-widget .matchesCount {\n display:none;\n}\n\n/* NARROW (SMALLER THAN REDUCED) */\n.monaco-editor .find-widget.narrow-find-widget {\n max-width: 257px !important;\n}\n\n/* COLLAPSED (SMALLER THAN NARROW) */\n.monaco-editor .find-widget.collapsed-find-widget {\n max-width: 170px !important;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\n display:none;\n}\n\n.monaco-editor .findMatch {\n animation-duration: 0;\n animation-name: inherit !important;\n}\n\n.monaco-editor .find-widget .monaco-sash {\n left: 0 !important;\n}\n\n.monaco-editor.hc-black .find-widget .button:before {\n position: relative;\n top: 1px;\n left: 2px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Find widget */\r\n.monaco-editor .find-widget {\r\n position: absolute;\r\n z-index: 50;\r\n height: 33px;\r\n overflow: hidden;\r\n line-height: 19px;\r\n transition: transform 200ms linear;\r\n padding: 0 4px;\r\n box-sizing: border-box;\r\n transform: translateY(calc(-100% - 10px)); /* shadow (10px) */\r\n}\r\n\r\n.monaco-editor .find-widget textarea {\r\n margin: 0px;\r\n}\r\n\r\n.monaco-editor .find-widget.hiddenEditor {\r\n display: none;\r\n}\r\n\r\n/* Find widget when replace is toggled on */\r\n.monaco-editor .find-widget.replaceToggled > .replace-part {\r\n display: flex;\r\n}\r\n\r\n.monaco-editor .find-widget.visible {\r\n transform: translateY(0);\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {\r\n outline: 1px solid -webkit-focus-ring-color;\r\n outline-offset: -1px;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-inputbox .input {\r\n background-color: transparent;\r\n min-height: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .input {\r\n font-size: 13px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part,\r\n.monaco-editor .find-widget > .replace-part {\r\n margin: 4px 0 0 17px;\r\n font-size: 12px;\r\n display: flex;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\r\n min-height: 25px;\r\n}\r\n\r\n\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\r\n padding-right: 22px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .mirror,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\r\n padding-top: 2px;\r\n padding-bottom: 2px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .find-actions {\r\n height: 25px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part .replace-actions {\r\n height: 25px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput {\r\n vertical-align: middle;\r\n display: flex;\r\n flex:1;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {\r\n /* Make sure textarea inherits the width correctly */\r\n width: 100%;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {\r\n /* Hide vertical scrollbar */\r\n opacity: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .matchesCount {\r\n display: flex;\r\n flex: initial;\r\n margin: 0 0 0 3px;\r\n padding: 2px 0 0 2px;\r\n height: 25px;\r\n vertical-align: middle;\r\n box-sizing: border-box;\r\n text-align: center;\r\n line-height: 23px;\r\n}\r\n\r\n.monaco-editor .find-widget .button {\r\n width: 20px;\r\n height: 20px;\r\n display: flex;\r\n flex: initial;\r\n margin-left: 3px;\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.monaco-editor .find-widget .button.left {\r\n margin-left: 0;\r\n margin-right: 3px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.wide {\r\n width: auto;\r\n padding: 1px 6px;\r\n top: -1px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle {\r\n position: absolute;\r\n top: 0;\r\n left: 3px;\r\n width: 18px;\r\n height: 100%;\r\n box-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle.disabled {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .find-widget .disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part > .monaco-findInput {\r\n position: relative;\r\n display: flex;\r\n vertical-align: middle;\r\n flex: auto;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {\r\n position: absolute;\r\n top: 3px;\r\n right: 2px;\r\n}\r\n\r\n/* REDUCED */\r\n.monaco-editor .find-widget.reduced-find-widget .matchesCount {\r\n display:none;\r\n}\r\n\r\n/* NARROW (SMALLER THAN REDUCED) */\r\n.monaco-editor .find-widget.narrow-find-widget {\r\n max-width: 257px !important;\r\n}\r\n\r\n/* COLLAPSED (SMALLER THAN NARROW) */\r\n.monaco-editor .find-widget.collapsed-find-widget {\r\n max-width: 170px !important;\r\n}\r\n\r\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\r\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\r\n display:none;\r\n}\r\n\r\n.monaco-editor .findMatch {\r\n animation-duration: 0;\r\n animation-name: inherit !important;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-sash {\r\n left: 0 !important;\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .button:before {\r\n position: relative;\r\n top: 1px;\r\n left: 2px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- Find input ---------- */\n\n.monaco-findInput {\n position: relative;\n}\n\n.monaco-findInput .monaco-inputbox {\n font-size: 13px;\n width: 100%;\n}\n\n.monaco-findInput > .controls {\n position: absolute;\n top: 3px;\n right: 2px;\n}\n\n.vs .monaco-findInput.disabled {\n background-color: #E1E1E1;\n}\n\n/* Theming */\n.vs-dark .monaco-findInput.disabled {\n background-color: #333;\n}\n\n/* Highlighting */\n.monaco-findInput.highlight-0 .controls {\n animation: monaco-findInput-highlight-0 100ms linear 0s;\n}\n.monaco-findInput.highlight-1 .controls {\n animation: monaco-findInput-highlight-1 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-0 .controls,\n.vs-dark .monaco-findInput.highlight-0 .controls {\n animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-1 .controls,\n.vs-dark .monaco-findInput.highlight-1 .controls {\n animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n}\n\n@keyframes monaco-findInput-highlight-0 {\n 0% { background: rgba(253, 255, 0, 0.8); }\n 100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-1 {\n 0% { background: rgba(253, 255, 0, 0.8); }\n /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n 99% { background: transparent; }\n}\n\n@keyframes monaco-findInput-highlight-dark-0 {\n 0% { background: rgba(255, 255, 255, 0.44); }\n 100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-1 {\n 0% { background: rgba(255, 255, 255, 0.44); }\n /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n 99% { background: transparent; }\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- Find input ---------- */\r\n\r\n.monaco-findInput {\r\n position: relative;\r\n}\r\n\r\n.monaco-findInput .monaco-inputbox {\r\n font-size: 13px;\r\n width: 100%;\r\n}\r\n\r\n.monaco-findInput > .controls {\r\n position: absolute;\r\n top: 3px;\r\n right: 2px;\r\n}\r\n\r\n.vs .monaco-findInput.disabled {\r\n background-color: #E1E1E1;\r\n}\r\n\r\n/* Theming */\r\n.vs-dark .monaco-findInput.disabled {\r\n background-color: #333;\r\n}\r\n\r\n/* Highlighting */\r\n.monaco-findInput.highlight-0 .controls {\r\n animation: monaco-findInput-highlight-0 100ms linear 0s;\r\n}\r\n.monaco-findInput.highlight-1 .controls {\r\n animation: monaco-findInput-highlight-1 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-0 .controls,\r\n.vs-dark .monaco-findInput.highlight-0 .controls {\r\n animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-1 .controls,\r\n.vs-dark .monaco-findInput.highlight-1 .controls {\r\n animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-0 {\r\n 0% { background: rgba(253, 255, 0, 0.8); }\r\n 100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-1 {\r\n 0% { background: rgba(253, 255, 0, 0.8); }\r\n /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n 99% { background: transparent; }\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-dark-0 {\r\n 0% { background: rgba(255, 255, 255, 0.44); }\r\n 100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-dark-1 {\r\n 0% { background: rgba(255, 255, 255, 0.44); }\r\n /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n 99% { background: transparent; }\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(299); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(299); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .codicon-folding-expanded,\n.monaco-editor .margin-view-overlays .codicon-folding-collapsed {\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.5s;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 140%;\n margin-left: 2px;\n}\n\n.monaco-editor .margin-view-overlays:hover .codicon,\n.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,\n.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons {\n opacity: 1;\n}\n\n.monaco-editor .inline-folded:after {\n color: grey;\n margin: 0.1em 0.2em 0 0.2em;\n content: "\u22EF";\n display: inline;\n line-height: 1em;\n cursor: pointer;\n}\n', ""]), e.exports = t; + (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .codicon-folding-expanded,\r\n.monaco-editor .margin-view-overlays .codicon-folding-collapsed {\r\n cursor: pointer;\r\n opacity: 0;\r\n transition: opacity 0.5s;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 140%;\r\n margin-left: 2px;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays:hover .codicon,\r\n.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,\r\n.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons {\r\n opacity: 1;\r\n}\r\n\r\n.monaco-editor .inline-folded:after {\r\n color: grey;\r\n margin: 0.1em 0.2em 0 0.2em;\r\n content: "\u22EF";\r\n display: inline;\r\n line-height: 1em;\r\n cursor: pointer;\r\n}\r\n', ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(301); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(301); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .peekview-widget .head {\n box-sizing: border-box;\n display: flex;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title {\n display: flex;\n align-items: center;\n font-size: 13px;\n margin-left: 20px;\n cursor: pointer;\n min-width: 0;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\n font-size: 0.9em;\n margin-left: 0.5em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .meta {\n white-space: nowrap;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname {\n white-space: nowrap;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .filename {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before {\n content: '-';\n padding: 0 0.3em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions {\n flex: 1;\n text-align: right;\n padding-right: 2px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\n display: inline-block;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\n height: 100%;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item {\n margin-left: 4px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label {\n width: 16px;\n height: 100%;\n margin: 0;\n line-height: inherit;\n background-repeat: no-repeat;\n background-position: center center;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.codicon {\n margin: 0;\n}\n\n.monaco-editor .peekview-widget > .body {\n border-top: 1px solid;\n position: relative;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .codicon {\n margin-right: 4px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .peekview-widget .head {\r\n box-sizing: border-box;\r\n display: flex;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title {\r\n display: flex;\r\n align-items: center;\r\n font-size: 13px;\r\n margin-left: 20px;\r\n cursor: pointer;\r\n min-width: 0;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\r\n font-size: 0.9em;\r\n margin-left: 0.5em;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .meta {\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .dirname {\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .filename {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before {\r\n content: '-';\r\n padding: 0 0.3em;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions {\r\n flex: 1;\r\n text-align: right;\r\n padding-right: 2px;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\r\n height: 100%;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item {\r\n margin-left: 4px;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label {\r\n width: 16px;\r\n height: 100%;\r\n margin: 0;\r\n line-height: inherit;\r\n background-repeat: no-repeat;\r\n background-position: center center;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.codicon {\r\n margin: 0;\r\n}\r\n\r\n.monaco-editor .peekview-widget > .body {\r\n border-top: 1px solid;\r\n position: relative;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .codicon {\r\n margin-right: 4px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(303); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(303); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .zone-widget {\n position: absolute;\n z-index: 10;\n}\n\n\n.monaco-editor .zone-widget .zone-widget-container {\n border-top-style: solid;\n border-bottom-style: solid;\n border-top-width: 0;\n border-bottom-width: 0;\n position: relative;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .zone-widget {\r\n position: absolute;\r\n z-index: 10;\r\n}\r\n\r\n\r\n.monaco-editor .zone-widget .zone-widget-container {\r\n border-top-style: solid;\r\n border-bottom-style: solid;\r\n border-top-width: 0;\r\n border-bottom-width: 0;\r\n position: relative;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-dropdown {\n height: 100%;\n padding: 0;\n}\n\n.monaco-dropdown > .dropdown-label {\n cursor: pointer;\n height: 100%;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-dropdown {\r\n height: 100%;\r\n padding: 0;\r\n}\r\n\r\n.monaco-dropdown > .dropdown-label {\r\n cursor: pointer;\r\n height: 100%;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(306); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(306); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -- zone widget */\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n\n.monaco-editor .reference-zone-widget .inline {\n display: inline-block;\n vertical-align: top;\n}\n\n.monaco-editor .reference-zone-widget .messages {\n height: 100%;\n width: 100%;\n text-align: center;\n padding: 3em 0;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree {\n line-height: 23px;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference {\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file {\n display: inline-flex;\n width: 100%;\n height: 100%;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file {\n color: inherit !important;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\n margin-right: 12px;\n margin-left: auto;\n}\n\n/* High Contrast Theming */\n\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {\n font-weight: bold;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* -- zone widget */\r\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\r\n border-top-width: 1px;\r\n border-bottom-width: 1px;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .inline {\r\n display: inline-block;\r\n vertical-align: top;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .messages {\r\n height: 100%;\r\n width: 100%;\r\n text-align: center;\r\n padding: 3em 0;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .ref-tree {\r\n line-height: 23px;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .ref-tree .reference {\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .ref-tree .reference-file {\r\n display: inline-flex;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file {\r\n color: inherit !important;\r\n}\r\n\r\n.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\r\n margin-right: 12px;\r\n margin-left: auto;\r\n}\r\n\r\n/* High Contrast Theming */\r\n\r\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {\r\n font-weight: bold;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(308); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(308); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-split-view2 {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.monaco-split-view2 > .sash-container {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.monaco-split-view2 > .sash-container > .monaco-sash {\n pointer-events: initial;\n}\n\n.monaco-split-view2 > .split-view-container {\n width: 100%;\n height: 100%;\n white-space: nowrap;\n position: relative;\n}\n\n.monaco-split-view2 > .split-view-container > .split-view-view {\n white-space: initial;\n position: absolute;\n}\n\n.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) {\n display: none;\n}\n\n.monaco-split-view2.vertical > .split-view-container > .split-view-view {\n width: 100%;\n}\n\n.monaco-split-view2.horizontal > .split-view-container > .split-view-view {\n height: 100%;\n}\n\n.monaco-split-view2.separator-border > .split-view-container > .split-view-view:not(:first-child)::before {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n pointer-events: none;\n background-color: var(--separator-border);\n}\n\n.monaco-split-view2.separator-border.horizontal > .split-view-container > .split-view-view:not(:first-child)::before {\n height: 100%;\n width: 1px;\n}\n\n.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before {\n height: 1px;\n width: 100%;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-split-view2 {\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.monaco-split-view2 > .sash-container {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n pointer-events: none;\r\n}\r\n\r\n.monaco-split-view2 > .sash-container > .monaco-sash {\r\n pointer-events: initial;\r\n}\r\n\r\n.monaco-split-view2 > .split-view-container {\r\n width: 100%;\r\n height: 100%;\r\n white-space: nowrap;\r\n position: relative;\r\n}\r\n\r\n.monaco-split-view2 > .split-view-container > .split-view-view {\r\n white-space: initial;\r\n position: absolute;\r\n}\r\n\r\n.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) {\r\n display: none;\r\n}\r\n\r\n.monaco-split-view2.vertical > .split-view-container > .split-view-view {\r\n width: 100%;\r\n}\r\n\r\n.monaco-split-view2.horizontal > .split-view-container > .split-view-view {\r\n height: 100%;\r\n}\r\n\r\n.monaco-split-view2.separator-border > .split-view-container > .split-view-view:not(:first-child)::before {\r\n content: ' ';\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n z-index: 5;\r\n pointer-events: none;\r\n background-color: var(--separator-border);\r\n}\r\n\r\n.monaco-split-view2.separator-border.horizontal > .split-view-container > .split-view-view:not(:first-child)::before {\r\n height: 100%;\r\n width: 1px;\r\n}\r\n\r\n.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before {\r\n height: 1px;\r\n width: 100%;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(310); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(310); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .goto-definition-link {\n text-decoration: underline;\n cursor: pointer;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .goto-definition-link {\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(312); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(312); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* marker zone */\n\n.monaco-editor .peekview-widget .head .peekview-title .severity-icon {\n display: inline-block;\n vertical-align: text-top;\n margin-right: 4px;\n}\n\n.monaco-editor .marker-widget {\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.monaco-editor .marker-widget > .stale {\n opacity: 0.6;\n font-style: italic;\n}\n\n.monaco-editor .marker-widget .title {\n display: inline-block;\n padding-right: 5px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer {\n position: absolute;\n white-space: pre;\n user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n padding: 8px 12px 0 20px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message {\n display: flex;\n flex-direction: column;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message .details {\n padding-left: 6px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message .source,\n.monaco-editor .marker-widget .descriptioncontainer .message span.code {\n opacity: 0.6;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link {\n opacity: 0.6;\n color: inherit;\n}\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {\n content: '(';\n}\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {\n content: ')';\n}\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {\n text-decoration: underline;\n /** Hack to force underline to show **/\n border-bottom: 1px solid transparent;\n text-underline-position: under;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .filename {\n cursor: pointer;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* marker zone */\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .severity-icon {\r\n display: inline-block;\r\n vertical-align: text-top;\r\n margin-right: 4px;\r\n}\r\n\r\n.monaco-editor .marker-widget {\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-editor .marker-widget > .stale {\r\n opacity: 0.6;\r\n font-style: italic;\r\n}\r\n\r\n.monaco-editor .marker-widget .title {\r\n display: inline-block;\r\n padding-right: 5px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer {\r\n position: absolute;\r\n white-space: pre;\r\n user-select: text;\r\n -webkit-user-select: text;\r\n -ms-user-select: text;\r\n padding: 8px 12px 0 20px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message .details {\r\n padding-left: 6px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message .source,\r\n.monaco-editor .marker-widget .descriptioncontainer .message span.code {\r\n opacity: 0.6;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link {\r\n opacity: 0.6;\r\n color: inherit;\r\n}\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {\r\n content: '(';\r\n}\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {\r\n content: ')';\r\n}\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {\r\n text-decoration: underline;\r\n /** Hack to force underline to show **/\r\n border-bottom: 1px solid transparent;\r\n text-underline-position: under;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .filename {\r\n cursor: pointer;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(314); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(314); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.colorpicker-widget {\n height: 190px;\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n.monaco-editor .colorpicker-hover:focus {\n outline: none;\n}\n\n\n/* Header */\n\n.colorpicker-header {\n display: flex;\n height: 24px;\n position: relative;\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n background-size: 9px 9px;\n image-rendering: pixelated;\n}\n\n.colorpicker-header .picked-color {\n width: 216px;\n text-align: center;\n line-height: 24px;\n cursor: pointer;\n color: white;\n flex: 1;\n text-align: center;\n}\n\n.colorpicker-header .picked-color.light {\n color: black;\n}\n\n.colorpicker-header .original-color {\n width: 74px;\n z-index: inherit;\n cursor: pointer;\n}\n\n\n/* Body */\n\n.colorpicker-body {\n display: flex;\n padding: 8px;\n position: relative;\n}\n\n.colorpicker-body .saturation-wrap {\n overflow: hidden;\n height: 150px;\n position: relative;\n min-width: 220px;\n flex: 1;\n}\n\n.colorpicker-body .saturation-box {\n height: 150px;\n position: absolute;\n}\n\n.colorpicker-body .saturation-selection {\n width: 9px;\n height: 9px;\n margin: -5px 0 0 -5px;\n border: 1px solid rgb(255, 255, 255);\n border-radius: 100%;\n box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n position: absolute;\n}\n\n.colorpicker-body .strip {\n width: 25px;\n height: 150px;\n}\n\n.colorpicker-body .hue-strip {\n position: relative;\n margin-left: 8px;\n cursor: grab;\n background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.colorpicker-body .opacity-strip {\n position: relative;\n margin-left: 8px;\n cursor: grab;\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n background-size: 9px 9px;\n image-rendering: pixelated;\n}\n\n.colorpicker-body .strip.grabbing {\n cursor: grabbing;\n}\n\n.colorpicker-body .slider {\n position: absolute;\n top: 0;\n left: -2px;\n width: calc(100% + 4px);\n height: 4px;\n box-sizing: border-box;\n border: 1px solid rgba(255, 255, 255, 0.71);\n box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n}\n\n.colorpicker-body .strip .overlay {\n height: 150px;\n pointer-events: none;\n}\n', ""]), e.exports = t; + (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.colorpicker-widget {\r\n height: 190px;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n.monaco-editor .colorpicker-hover:focus {\r\n outline: none;\r\n}\r\n\r\n\r\n/* Header */\r\n\r\n.colorpicker-header {\r\n display: flex;\r\n height: 24px;\r\n position: relative;\r\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r\n background-size: 9px 9px;\r\n image-rendering: pixelated;\r\n}\r\n\r\n.colorpicker-header .picked-color {\r\n width: 216px;\r\n text-align: center;\r\n line-height: 24px;\r\n cursor: pointer;\r\n color: white;\r\n flex: 1;\r\n text-align: center;\r\n}\r\n\r\n.colorpicker-header .picked-color.light {\r\n color: black;\r\n}\r\n\r\n.colorpicker-header .original-color {\r\n width: 74px;\r\n z-index: inherit;\r\n cursor: pointer;\r\n}\r\n\r\n\r\n/* Body */\r\n\r\n.colorpicker-body {\r\n display: flex;\r\n padding: 8px;\r\n position: relative;\r\n}\r\n\r\n.colorpicker-body .saturation-wrap {\r\n overflow: hidden;\r\n height: 150px;\r\n position: relative;\r\n min-width: 220px;\r\n flex: 1;\r\n}\r\n\r\n.colorpicker-body .saturation-box {\r\n height: 150px;\r\n position: absolute;\r\n}\r\n\r\n.colorpicker-body .saturation-selection {\r\n width: 9px;\r\n height: 9px;\r\n margin: -5px 0 0 -5px;\r\n border: 1px solid rgb(255, 255, 255);\r\n border-radius: 100%;\r\n box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\r\n position: absolute;\r\n}\r\n\r\n.colorpicker-body .strip {\r\n width: 25px;\r\n height: 150px;\r\n}\r\n\r\n.colorpicker-body .hue-strip {\r\n position: relative;\r\n margin-left: 8px;\r\n cursor: grab;\r\n background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\r\n}\r\n\r\n.colorpicker-body .opacity-strip {\r\n position: relative;\r\n margin-left: 8px;\r\n cursor: grab;\r\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r\n background-size: 9px 9px;\r\n image-rendering: pixelated;\r\n}\r\n\r\n.colorpicker-body .strip.grabbing {\r\n cursor: grabbing;\r\n}\r\n\r\n.colorpicker-body .slider {\r\n position: absolute;\r\n top: 0;\r\n left: -2px;\r\n width: calc(100% + 4px);\r\n height: 4px;\r\n box-sizing: border-box;\r\n border: 1px solid rgba(255, 255, 255, 0.71);\r\n box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\r\n}\r\n\r\n.colorpicker-body .strip .overlay {\r\n height: 150px;\r\n pointer-events: none;\r\n}\r\n', ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(316); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(316); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-hover {\n cursor: default;\n position: absolute;\n overflow: hidden;\n z-index: 50;\n user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n box-sizing: initial;\n animation: fadein 100ms linear;\n line-height: 1.5em;\n}\n\n.monaco-hover.hidden {\n display: none;\n}\n\n.monaco-hover .hover-contents {\n padding: 4px 8px;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\n max-width: 500px;\n word-wrap: break-word;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\n /* This is a strange rule but it avoids https://github.com/microsoft/vscode/issues/96795, just 100vw on its own caused the actual hover width to increase */\n min-width: calc(100% + 100vw);\n}\n\n.monaco-hover p,\n.monaco-hover .code,\n.monaco-hover ul {\n margin: 8px 0;\n}\n\n.monaco-hover code {\n font-family: var(--monaco-monospace-font);\n}\n\n.monaco-hover hr {\n margin-top: 4px;\n margin-bottom: -4px;\n margin-left: -10px;\n margin-right: -10px;\n height: 1px;\n}\n\n.monaco-hover p:first-child,\n.monaco-hover .code:first-child,\n.monaco-hover ul:first-child {\n margin-top: 0;\n}\n\n.monaco-hover p:last-child,\n.monaco-hover .code:last-child,\n.monaco-hover ul:last-child {\n margin-bottom: 0;\n}\n\n/* MarkupContent Layout */\n.monaco-hover ul {\n padding-left: 20px;\n}\n.monaco-hover ol {\n padding-left: 20px;\n}\n\n.monaco-hover li > p {\n margin-bottom: 0;\n}\n\n.monaco-hover li > ul {\n margin-top: 0;\n}\n\n.monaco-hover code {\n border-radius: 3px;\n padding: 0 0.4em;\n}\n\n.monaco-hover .monaco-tokenized-source {\n white-space: pre-wrap;\n word-break: break-all;\n}\n\n.monaco-hover .hover-row.status-bar {\n font-size: 12px;\n line-height: 22px;\n}\n\n.monaco-hover .hover-row.status-bar .actions {\n display: flex;\n padding: 0px 8px;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container {\n margin-right: 16px;\n cursor: pointer;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\n padding-right: 4px;\n}\n\n.monaco-hover .markdown-hover .hover-contents .codicon {\n color: inherit;\n font-size: inherit;\n vertical-align: middle;\n}\n\n.monaco-hover .hover-contents a.code-link:before {\n content: '(';\n}\n.monaco-hover .hover-contents a.code-link:after {\n content: ')';\n}\n\n.monaco-hover .hover-contents a.code-link {\n color: inherit;\n}\n.monaco-hover .hover-contents a.code-link > span {\n text-decoration: underline;\n /** Hack to force underline to show **/\n border-bottom: 1px solid transparent;\n text-underline-position: under;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-hover {\r\n cursor: default;\r\n position: absolute;\r\n overflow: hidden;\r\n z-index: 50;\r\n user-select: text;\r\n -webkit-user-select: text;\r\n -ms-user-select: text;\r\n box-sizing: initial;\r\n animation: fadein 100ms linear;\r\n line-height: 1.5em;\r\n}\r\n\r\n.monaco-hover.hidden {\r\n display: none;\r\n}\r\n\r\n.monaco-hover .hover-contents {\r\n padding: 4px 8px;\r\n}\r\n\r\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\r\n max-width: 500px;\r\n word-wrap: break-word;\r\n}\r\n\r\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\r\n /* This is a strange rule but it avoids https://github.com/microsoft/vscode/issues/96795, just 100vw on its own caused the actual hover width to increase */\r\n min-width: calc(100% + 100vw);\r\n}\r\n\r\n.monaco-hover p,\r\n.monaco-hover .code,\r\n.monaco-hover ul {\r\n margin: 8px 0;\r\n}\r\n\r\n.monaco-hover code {\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-hover hr {\r\n margin-top: 4px;\r\n margin-bottom: -4px;\r\n margin-left: -10px;\r\n margin-right: -10px;\r\n height: 1px;\r\n}\r\n\r\n.monaco-hover p:first-child,\r\n.monaco-hover .code:first-child,\r\n.monaco-hover ul:first-child {\r\n margin-top: 0;\r\n}\r\n\r\n.monaco-hover p:last-child,\r\n.monaco-hover .code:last-child,\r\n.monaco-hover ul:last-child {\r\n margin-bottom: 0;\r\n}\r\n\r\n/* MarkupContent Layout */\r\n.monaco-hover ul {\r\n padding-left: 20px;\r\n}\r\n.monaco-hover ol {\r\n padding-left: 20px;\r\n}\r\n\r\n.monaco-hover li > p {\r\n margin-bottom: 0;\r\n}\r\n\r\n.monaco-hover li > ul {\r\n margin-top: 0;\r\n}\r\n\r\n.monaco-hover code {\r\n border-radius: 3px;\r\n padding: 0 0.4em;\r\n}\r\n\r\n.monaco-hover .monaco-tokenized-source {\r\n white-space: pre-wrap;\r\n word-break: break-all;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar {\r\n font-size: 12px;\r\n line-height: 22px;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions {\r\n display: flex;\r\n padding: 0px 8px;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions .action-container {\r\n margin-right: 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\r\n padding-right: 4px;\r\n}\r\n\r\n.monaco-hover .markdown-hover .hover-contents .codicon {\r\n color: inherit;\r\n font-size: inherit;\r\n vertical-align: middle;\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link:before {\r\n content: '(';\r\n}\r\n.monaco-hover .hover-contents a.code-link:after {\r\n content: ')';\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link {\r\n color: inherit;\r\n}\r\n.monaco-hover .hover-contents a.code-link > span {\r\n text-decoration: underline;\r\n /** Hack to force underline to show **/\r\n border-bottom: 1px solid transparent;\r\n text-underline-position: under;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(318); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(318); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .detected-link,\n.monaco-editor .detected-link-active {\n text-decoration: underline;\n text-underline-position: under;\n}\n\n.monaco-editor .detected-link-active {\n cursor: pointer;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .detected-link,\r\n.monaco-editor .detected-link-active {\r\n text-decoration: underline;\r\n text-underline-position: under;\r\n}\r\n\r\n.monaco-editor .detected-link-active {\r\n cursor: pointer;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(320); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(320); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .parameter-hints-widget {\n z-index: 10;\n display: flex;\n flex-direction: column;\n line-height: 1.5em;\n}\n\n.monaco-editor .parameter-hints-widget > .wrapper {\n max-width: 440px;\n display: flex;\n flex-direction: row;\n}\n\n.monaco-editor .parameter-hints-widget.multiple {\n min-height: 3.3em;\n padding: 0;\n}\n\n.monaco-editor .parameter-hints-widget.visible {\n transition: left .05s ease-in-out;\n}\n\n.monaco-editor .parameter-hints-widget p,\n.monaco-editor .parameter-hints-widget ul {\n margin: 8px 0;\n}\n\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\n.monaco-editor .parameter-hints-widget .body {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 100%;\n}\n\n.monaco-editor .parameter-hints-widget .signature {\n padding: 4px 5px;\n}\n\n.monaco-editor .parameter-hints-widget .docs {\n padding: 0 10px 0 5px;\n white-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs.empty {\n display: none;\n}\n\n.monaco-editor .parameter-hints-widget .docs .markdown-docs {\n white-space: initial;\n}\n\n.monaco-editor .parameter-hints-widget .docs .markdown-docs code {\n font-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .parameter-hints-widget .docs .code {\n white-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs code {\n border-radius: 3px;\n padding: 0 0.4em;\n}\n\n.monaco-editor .parameter-hints-widget .controls {\n display: none;\n flex-direction: column;\n align-items: center;\n min-width: 22px;\n justify-content: flex-end;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .controls {\n display: flex;\n padding: 0 2px;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .button {\n width: 16px;\n height: 16px;\n background-repeat: no-repeat;\n cursor: pointer;\n}\n\n.monaco-editor .parameter-hints-widget .button.previous {\n bottom: 24px;\n}\n\n.monaco-editor .parameter-hints-widget .overloads {\n text-align: center;\n height: 12px;\n line-height: 12px;\n opacity: 0.5;\n font-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\n font-weight: bold;\n text-decoration: underline;\n}\n\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\n font-weight: bold;\n margin-right: 0.5em;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .parameter-hints-widget {\r\n z-index: 10;\r\n display: flex;\r\n flex-direction: column;\r\n line-height: 1.5em;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget > .wrapper {\r\n max-width: 440px;\r\n display: flex;\r\n flex-direction: row;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple {\r\n min-height: 3.3em;\r\n padding: 0;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.visible {\r\n transition: left .05s ease-in-out;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget p,\r\n.monaco-editor .parameter-hints-widget ul {\r\n margin: 8px 0;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\r\n.monaco-editor .parameter-hints-widget .body {\r\n display: flex;\r\n flex: 1;\r\n flex-direction: column;\r\n min-height: 100%;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .signature {\r\n padding: 4px 5px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs {\r\n padding: 0 10px 0 5px;\r\n white-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs.empty {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .markdown-docs {\r\n white-space: initial;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .markdown-docs code {\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .code {\r\n white-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs code {\r\n border-radius: 3px;\r\n padding: 0 0.4em;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .controls {\r\n display: none;\r\n flex-direction: column;\r\n align-items: center;\r\n min-width: 22px;\r\n justify-content: flex-end;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple .controls {\r\n display: flex;\r\n padding: 0 2px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple .button {\r\n width: 16px;\r\n height: 16px;\r\n background-repeat: no-repeat;\r\n cursor: pointer;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .button.previous {\r\n bottom: 24px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .overloads {\r\n text-align: center;\r\n height: 12px;\r\n line-height: 12px;\r\n opacity: 0.5;\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\r\n font-weight: bold;\r\n text-decoration: underline;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\r\n font-weight: bold;\r\n margin-right: 0.5em;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(322); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(322); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .on-type-rename-decoration {\n border-left: 1px solid transparent;\n /* So border can be transparent */\n background-clip: padding-box;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .on-type-rename-decoration {\r\n border-left: 1px solid transparent;\r\n /* So border can be transparent */\r\n background-clip: padding-box;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(324); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(324); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .rename-box {\n z-index: 100;\n color: inherit;\n}\n\n.monaco-editor .rename-box.preview {\n padding: 3px 3px 0 3px;\n}\n\n.monaco-editor .rename-box .rename-input {\n padding: 3px;\n width: calc(100% - 6px);\n}\n\n.monaco-editor .rename-box .rename-label {\n display: none;\n opacity: .8;\n}\n\n.monaco-editor .rename-box.preview .rename-label {\n display: inherit;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .rename-box {\r\n z-index: 100;\r\n color: inherit;\r\n}\r\n\r\n.monaco-editor .rename-box.preview {\r\n padding: 3px 3px 0 3px;\r\n}\r\n\r\n.monaco-editor .rename-box .rename-input {\r\n padding: 3px;\r\n width: calc(100% - 6px);\r\n}\r\n\r\n.monaco-editor .rename-box .rename-label {\r\n display: none;\r\n opacity: .8;\r\n}\r\n\r\n.monaco-editor .rename-box.preview .rename-label {\r\n display: inherit;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(326); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(326); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .snippet-placeholder {\n min-width: 2px;\n outline-style: solid;\n outline-width: 1px;\n}\n\n.monaco-editor .finish-snippet-placeholder {\n outline-style: solid;\n outline-width: 1px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .snippet-placeholder {\r\n min-width: 2px;\r\n outline-style: solid;\r\n outline-width: 1px;\r\n}\r\n\r\n.monaco-editor .finish-snippet-placeholder {\r\n outline-style: solid;\r\n outline-width: 1px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(328); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(328); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Suggest widget*/\n.monaco-editor .suggest-widget {\n z-index: 40;\n}\n\n/** Initial widths **/\n\n.monaco-editor .suggest-widget {\n width: 430px;\n}\n\n.monaco-editor .suggest-widget > .message,\n.monaco-editor .suggest-widget > .tree,\n.monaco-editor .suggest-widget > .details {\n width: 100%;\n border-style: solid;\n border-width: 1px;\n box-sizing: border-box;\n}\n\n.monaco-editor.hc-black .suggest-widget > .message,\n.monaco-editor.hc-black .suggest-widget > .tree,\n.monaco-editor.hc-black .suggest-widget > .details {\n border-width: 2px;\n}\n\n/** Adjust width when docs are expanded to the side **/\n.monaco-editor .suggest-widget.docs-side {\n width: 660px;\n}\n\n.monaco-editor .suggest-widget.docs-side > .tree,\n.monaco-editor .suggest-widget.docs-side > .details {\n width: 50%;\n float: left;\n}\n\n.monaco-editor .suggest-widget.docs-side.list-right > .tree,\n.monaco-editor .suggest-widget.docs-side.list-right > .details {\n float: right;\n}\n\n/* MarkupContent Layout */\n.monaco-editor .suggest-widget > .details ul {\n padding-left: 20px;\n}\n.monaco-editor .suggest-widget > .details ol {\n padding-left: 20px;\n}\n\n.monaco-editor .suggest-widget > .details p code {\n font-family: var(--monaco-monospace-font);\n}\n\n/* Styles for Message element for when widget is loading or is empty */\n.monaco-editor .suggest-widget > .message {\n padding-left: 22px;\n}\n\n/** Styles for the list element **/\n.monaco-editor .suggest-widget > .tree {\n height: 100%;\n}\n\n.monaco-editor .suggest-widget .monaco-list {\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n/** Styles for each row in the list element **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row {\n display: flex;\n -mox-box-sizing: border-box;\n box-sizing: border-box;\n padding-right: 10px;\n background-repeat: no-repeat;\n background-position: 2px 2px;\n white-space: nowrap;\n cursor: pointer;\n touch-action: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents {\n flex: 1;\n height: 100%;\n overflow: hidden;\n padding-left: 2px;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main {\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n justify-content: space-between;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\n display: flex;\n}\n\n.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight {\n font-weight: bold;\n}\n\n/** Status Bar **/\n\n.monaco-editor .suggest-widget > .suggest-status-bar {\n visibility: hidden;\n\n position: absolute;\n left: 0;\n\n box-sizing: border-box;\n\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n\n width: 100%;\n\n font-size: 80%;\n\n border-left-width: 1px;\n border-left-style: solid;\n border-right-width: 1px;\n border-right-style: solid;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n\n padding: 0 8px 0 4px;\n}\n\n.monaco-editor .suggest-widget.list-right.docs-side > .suggest-status-bar {\n left: auto;\n right: 0;\n}\n.monaco-editor .suggest-widget.docs-side > .suggest-status-bar {\n width: 50%;\n}\n\n/** ReadMore Icon styles **/\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before {\n color: inherit;\n opacity: 1;\n font-size: 14px;\n cursor: pointer;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close {\n position: absolute;\n top: 2px;\n right: 2px;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover {\n opacity: 1;\n}\n\n/** signature, qualifier, type/details opacity **/\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\n opacity: 0.7;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label {\n margin-left: 4px;\n opacity: 0.4;\n font-size: 90%;\n text-overflow: ellipsis;\n overflow: hidden;\n line-height: 17px;\n align-self: center;\n}\n\n/** Type Info and icon next to the label in the focused completion item **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\n margin-left: 0.8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source {\n display: inline;\n}\n\n/** Details: if using CompletionItem#details, show on focus **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label,\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\n display: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\n display: inline;\n}\n\n/** Details: if using CompletionItemLabel#details, always show **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label,\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label {\n display: inline;\n}\n\n/** Ellipsis on hover **/\n.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\n width: calc(100% - 26px);\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {\n flex-shrink: 1;\n flex-grow: 1;\n overflow: hidden;\n}\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label {\n flex-shrink: 0;\n}\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label {\n max-width: 100%;\n}\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label {\n flex-shrink: 1;\n}\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\n overflow: hidden;\n margin-left: 16px;\n flex-shrink: 0;\n max-width: 45%;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\n display: inline-block;\n position: absolute;\n right: 10px;\n width: 18px;\n height: 18px;\n visibility: hidden;\n}\n\n/** Do NOT display ReadMore when docs is side/below **/\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\n.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\n display: none !important;\n}\n\n/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore {\n display: none;\n}\n/** Focused item can show ReadMore, but can't when docs is side/below **/\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\n display: inline-block;\n}\n\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\n.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\n display: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore {\n visibility: visible;\n}\n\n/** Styles for each row in the list **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated {\n opacity: 0.66;\n text-decoration: unset;\n}\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container {\n text-decoration: line-through;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before {\n height: 100%;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon {\n display: block;\n height: 16px;\n width: 16px;\n margin-left: 2px;\n background-repeat: no-repeat;\n background-size: 80%;\n background-position: center;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide {\n display: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon {\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before {\n display: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan {\n margin: 0 0 0 0.3em;\n border: 0.1em solid #000;\n width: 0.7em;\n height: 0.7em;\n display: inline-block;\n}\n\n/** Styles for the docs of the completion item in focus **/\n.monaco-editor .suggest-widget .details {\n display: flex;\n flex-direction: column;\n cursor: default;\n}\n\n.monaco-editor .suggest-widget .details.no-docs {\n display: none;\n}\n\n.monaco-editor .suggest-widget.docs-below .details {\n border-top-width: 0;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element {\n flex: 1;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body {\n position: absolute;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .type {\n flex: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: 0.7;\n word-break: break-all;\n margin: 0 24px 0 0;\n padding: 4px 0 12px 5px;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs {\n margin: 0;\n padding: 4px 5px;\n white-space: pre-wrap;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs {\n padding: 0;\n white-space: initial;\n min-height: calc(1rem + 8px);\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div,\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) {\n padding: 4px 5px;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child {\n margin-top: 0;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child {\n margin-bottom: 0;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs .code {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon {\n vertical-align: sub;\n}\n\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > p:empty {\n display: none;\n}\n\n.monaco-editor .suggest-widget .details code {\n border-radius: 3px;\n padding: 0 0.4em;\n}\n\n\n/* replace/insert decorations */\n\n.monaco-editor .suggest-insert-unexpected {\n font-style: italic;\n}\n\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Suggest widget*/\r\n.monaco-editor .suggest-widget {\r\n z-index: 40;\r\n}\r\n\r\n/** Initial widths **/\r\n\r\n.monaco-editor .suggest-widget {\r\n width: 430px;\r\n}\r\n\r\n.monaco-editor .suggest-widget > .message,\r\n.monaco-editor .suggest-widget > .tree,\r\n.monaco-editor .suggest-widget > .details {\r\n width: 100%;\r\n border-style: solid;\r\n border-width: 1px;\r\n box-sizing: border-box;\r\n}\r\n\r\n.monaco-editor.hc-black .suggest-widget > .message,\r\n.monaco-editor.hc-black .suggest-widget > .tree,\r\n.monaco-editor.hc-black .suggest-widget > .details {\r\n border-width: 2px;\r\n}\r\n\r\n/** Adjust width when docs are expanded to the side **/\r\n.monaco-editor .suggest-widget.docs-side {\r\n width: 660px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.docs-side > .tree,\r\n.monaco-editor .suggest-widget.docs-side > .details {\r\n width: 50%;\r\n float: left;\r\n}\r\n\r\n.monaco-editor .suggest-widget.docs-side.list-right > .tree,\r\n.monaco-editor .suggest-widget.docs-side.list-right > .details {\r\n float: right;\r\n}\r\n\r\n/* MarkupContent Layout */\r\n.monaco-editor .suggest-widget > .details ul {\r\n padding-left: 20px;\r\n}\r\n.monaco-editor .suggest-widget > .details ol {\r\n padding-left: 20px;\r\n}\r\n\r\n.monaco-editor .suggest-widget > .details p code {\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n\r\n/* Styles for Message element for when widget is loading or is empty */\r\n.monaco-editor .suggest-widget > .message {\r\n padding-left: 22px;\r\n}\r\n\r\n/** Styles for the list element **/\r\n.monaco-editor .suggest-widget > .tree {\r\n height: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list {\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n/** Styles for each row in the list element **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row {\r\n display: flex;\r\n -mox-box-sizing: border-box;\r\n box-sizing: border-box;\r\n padding-right: 10px;\r\n background-repeat: no-repeat;\r\n background-position: 2px 2px;\r\n white-space: nowrap;\r\n cursor: pointer;\r\n touch-action: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents {\r\n flex: 1;\r\n height: 100%;\r\n overflow: hidden;\r\n padding-left: 2px;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main {\r\n display: flex;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: pre;\r\n justify-content: space-between;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\r\n display: flex;\r\n}\r\n\r\n.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight {\r\n font-weight: bold;\r\n}\r\n\r\n/** Status Bar **/\r\n\r\n.monaco-editor .suggest-widget > .suggest-status-bar {\r\n visibility: hidden;\r\n\r\n position: absolute;\r\n left: 0;\r\n\r\n box-sizing: border-box;\r\n\r\n display: flex;\r\n flex-flow: row nowrap;\r\n justify-content: space-between;\r\n\r\n width: 100%;\r\n\r\n font-size: 80%;\r\n\r\n border-left-width: 1px;\r\n border-left-style: solid;\r\n border-right-width: 1px;\r\n border-right-style: solid;\r\n border-bottom-width: 1px;\r\n border-bottom-style: solid;\r\n\r\n padding: 0 8px 0 4px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.list-right.docs-side > .suggest-status-bar {\r\n left: auto;\r\n right: 0;\r\n}\r\n.monaco-editor .suggest-widget.docs-side > .suggest-status-bar {\r\n width: 50%;\r\n}\r\n\r\n/** ReadMore Icon styles **/\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before {\r\n color: inherit;\r\n opacity: 1;\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close {\r\n position: absolute;\r\n top: 2px;\r\n right: 2px;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover {\r\n opacity: 1;\r\n}\r\n\r\n/** signature, qualifier, type/details opacity **/\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\r\n opacity: 0.7;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label {\r\n margin-left: 4px;\r\n opacity: 0.4;\r\n font-size: 90%;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n line-height: 17px;\r\n align-self: center;\r\n}\r\n\r\n/** Type Info and icon next to the label in the focused completion item **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\r\n margin-left: 0.8em;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source {\r\n display: inline;\r\n}\r\n\r\n/** Details: if using CompletionItem#details, show on focus **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label,\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\r\n display: inline;\r\n}\r\n\r\n/** Details: if using CompletionItemLabel#details, always show **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label,\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label {\r\n display: inline;\r\n}\r\n\r\n/** Ellipsis on hover **/\r\n.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\r\n width: calc(100% - 26px);\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {\r\n flex-shrink: 1;\r\n flex-grow: 1;\r\n overflow: hidden;\r\n}\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label {\r\n flex-shrink: 0;\r\n}\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label {\r\n max-width: 100%;\r\n}\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label {\r\n flex-shrink: 1;\r\n}\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\r\n overflow: hidden;\r\n margin-left: 16px;\r\n flex-shrink: 0;\r\n max-width: 45%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r\n display: inline-block;\r\n position: absolute;\r\n right: 10px;\r\n width: 18px;\r\n height: 18px;\r\n visibility: hidden;\r\n}\r\n\r\n/** Do NOT display ReadMore when docs is side/below **/\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r\n.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r\n display: none !important;\r\n}\r\n\r\n/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore {\r\n display: none;\r\n}\r\n/** Focused item can show ReadMore, but can't when docs is side/below **/\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\r\n display: inline-block;\r\n}\r\n\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r\n.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore {\r\n visibility: visible;\r\n}\r\n\r\n/** Styles for each row in the list **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated {\r\n opacity: 0.66;\r\n text-decoration: unset;\r\n}\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container {\r\n text-decoration: line-through;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before {\r\n height: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon {\r\n display: block;\r\n height: 16px;\r\n width: 16px;\r\n margin-left: 2px;\r\n background-repeat: no-repeat;\r\n background-size: 80%;\r\n background-position: center;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon {\r\n display: flex;\r\n align-items: center;\r\n margin-right: 4px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,\r\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan {\r\n margin: 0 0 0 0.3em;\r\n border: 0.1em solid #000;\r\n width: 0.7em;\r\n height: 0.7em;\r\n display: inline-block;\r\n}\r\n\r\n/** Styles for the docs of the completion item in focus **/\r\n.monaco-editor .suggest-widget .details {\r\n display: flex;\r\n flex-direction: column;\r\n cursor: default;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details.no-docs {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget.docs-below .details {\r\n border-top-width: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element {\r\n flex: 1;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body {\r\n position: absolute;\r\n box-sizing: border-box;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .type {\r\n flex: 2;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n opacity: 0.7;\r\n word-break: break-all;\r\n margin: 0 24px 0 0;\r\n padding: 4px 0 12px 5px;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs {\r\n margin: 0;\r\n padding: 4px 5px;\r\n white-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs {\r\n padding: 0;\r\n white-space: initial;\r\n min-height: calc(1rem + 8px);\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div,\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) {\r\n padding: 4px 5px;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child {\r\n margin-top: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child {\r\n margin-bottom: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs .code {\r\n white-space: pre-wrap;\r\n word-wrap: break-word;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon {\r\n vertical-align: sub;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > p:empty {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .details code {\r\n border-radius: 3px;\r\n padding: 0 0.4em;\r\n}\r\n\r\n\r\n/* replace/insert decorations */\r\n\r\n.monaco-editor .suggest-insert-unexpected {\r\n font-style: italic;\r\n}\r\n\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(330); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(330); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar {\n visibility: visible;\n}\n.monaco-editor .suggest-widget.with-status-bar > .tree {\n margin-bottom: 18px;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label {\n min-height: 18px;\n opacity: 0.5;\n color: inherit;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label {\n margin-right: 0;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after {\n content: ', ';\n margin-right: 0.3em;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\n display: none;\n}\n\n.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\n width: 100%;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar {\r\n visibility: visible;\r\n}\r\n.monaco-editor .suggest-widget.with-status-bar > .tree {\r\n margin-bottom: 18px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label {\r\n min-height: 18px;\r\n opacity: 0.5;\r\n color: inherit;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label {\r\n margin-right: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after {\r\n content: ', ';\r\n margin-right: 0.3em;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\r\n display: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\r\n width: 100%;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(332); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(332); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label,\n.monaco-list .monaco-list-row.focused.selected .outline-element-decoration {\n /* make sure selection color wins when a label is being selected */\n color: inherit !important;\n}\n\n.monaco-list .outline-element {\n display: flex;\n flex: 1;\n flex-flow: row nowrap;\n align-items: center;\n}\n\n.monaco-list .outline-element .monaco-highlighted-label {\n color: var(--outline-element-color);\n}\n\n.monaco-list .outline-element .outline-element-decoration {\n opacity: 0.75;\n font-size: 90%;\n font-weight: 600;\n padding: 0 12px 0 5px;\n margin-left: auto;\n text-align: center;\n color: var(--outline-element-color);\n}\n\n.monaco-list .outline-element .outline-element-decoration.bubble {\n font-family: codicon;\n font-size: 14px;\n opacity: 0.4;\n}\n\n.monaco-list .outline-element .outline-element-icon {\n margin-right: 4px;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label,\r\n.monaco-list .monaco-list-row.focused.selected .outline-element-decoration {\r\n /* make sure selection color wins when a label is being selected */\r\n color: inherit !important;\r\n}\r\n\r\n.monaco-list .outline-element {\r\n display: flex;\r\n flex: 1;\r\n flex-flow: row nowrap;\r\n align-items: center;\r\n}\r\n\r\n.monaco-list .outline-element .monaco-highlighted-label {\r\n color: var(--outline-element-color);\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-decoration {\r\n opacity: 0.75;\r\n font-size: 90%;\r\n font-weight: 600;\r\n padding: 0 12px 0 5px;\r\n margin-left: auto;\r\n text-align: center;\r\n color: var(--outline-element-color);\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-decoration.bubble {\r\n font-family: codicon;\r\n font-size: 14px;\r\n opacity: 0.4;\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-icon {\r\n margin-right: 4px;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(334); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(334); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-icon-label.deprecated {\n text-decoration: line-through;\n opacity: 0.66;\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-icon-label.deprecated {\r\n text-decoration: line-through;\r\n opacity: 0.66;\r\n}\r\n", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(336); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(336); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .accessibilityHelpWidget {\n padding: 10px;\n vertical-align: middle;\n overflow: scroll;\n}", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .accessibilityHelpWidget {\r\n padding: 10px;\r\n vertical-align: middle;\r\n overflow: scroll;\r\n}", ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(338); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(338); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .iPadShowKeyboard {\n width: 58px;\n min-width: 0;\n height: 36px;\n min-height: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n resize: none;\n overflow: hidden;\n background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat;\n border: 4px solid #F6F6F6;\n border-radius: 4px;\n}\n\n.monaco-editor.vs-dark .iPadShowKeyboard {\n background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat;\n border: 4px solid #252526;\n}', ""]), e.exports = t; + (t = n(33)(false)).push([e.i, '/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .iPadShowKeyboard {\r\n width: 58px;\r\n min-width: 0;\r\n height: 36px;\r\n min-height: 0;\r\n margin: 0;\r\n padding: 0;\r\n position: absolute;\r\n resize: none;\r\n overflow: hidden;\r\n background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiM0MjQyNDIiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r\n border: 4px solid #F6F6F6;\r\n border-radius: 4px;\r\n}\r\n\r\n.monaco-editor.vs-dark .iPadShowKeyboard {\r\n background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiNDNUM1QzUiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r\n border: 4px solid #252526;\r\n}', ""]), e.exports = t; }, function(e, t, n) { - var i = n(32), o = n(340); - typeof (o = o.__esModule ? o.default : o) == "string" && (o = [[e.i, o, ""]]); - var r = {insert: "head", singleton: false}; - i(o, r); - e.exports = o.locals || {}; + var i = n(32), r = n(340); + typeof (r = r.__esModule ? r.default : r) == "string" && (r = [[e.i, r, ""]]); + var o = {insert: "head", singleton: false}; + i(r, o); + e.exports = r.locals || {}; }, function(e, t, n) { - (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .tokens-inspect-widget {\n z-index: 50;\n user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n padding: 10px;\n}\n\n.tokens-inspect-separator {\n height: 1px;\n border: 0;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token {\n font-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-length {\n font-weight: normal;\n font-size: 60%;\n float: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\n width: 100%;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\n font-family: var(--monaco-monospace-font);\n text-align: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-type {\n font-family: var(--monaco-monospace-font);\n}\n", ""]), e.exports = t; + (t = n(33)(false)).push([e.i, "/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .tokens-inspect-widget {\r\n z-index: 50;\r\n user-select: text;\r\n -webkit-user-select: text;\r\n -ms-user-select: text;\r\n padding: 10px;\r\n}\r\n\r\n.tokens-inspect-separator {\r\n height: 1px;\r\n border: 0;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token {\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token-length {\r\n font-weight: normal;\r\n font-size: 60%;\r\n float: right;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\r\n width: 100%;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\r\n font-family: var(--monaco-monospace-font);\r\n text-align: right;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token-type {\r\n font-family: var(--monaco-monospace-font);\r\n}\r\n", ""]), e.exports = t; }, , function(e, t, n) { "use strict"; n.r(t), n.d(t, "CancellationTokenSource", function() { @@ -57137,14 +57137,14 @@ ${Object(zn.b)(wi)} }), n.d(t, "languages", function() { return l.n; }); - var i, o, r, s, a, l = n(108), c = n(29); + var i, r, o, s, a, l = n(108), c = n(29); !function(e2) { e2[e2.None = 0] = "None", e2[e2.CommonJS = 1] = "CommonJS", e2[e2.AMD = 2] = "AMD", e2[e2.UMD = 3] = "UMD", e2[e2.System = 4] = "System", e2[e2.ES2015 = 5] = "ES2015", e2[e2.ESNext = 99] = "ESNext"; }(i || (i = {})), function(e2) { e2[e2.None = 0] = "None", e2[e2.Preserve = 1] = "Preserve", e2[e2.React = 2] = "React", e2[e2.ReactNative = 3] = "ReactNative"; - }(o || (o = {})), function(e2) { - e2[e2.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e2[e2.LineFeed = 1] = "LineFeed"; }(r || (r = {})), function(e2) { + e2[e2.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e2[e2.LineFeed = 1] = "LineFeed"; + }(o || (o = {})), function(e2) { e2[e2.ES3 = 0] = "ES3", e2[e2.ES5 = 1] = "ES5", e2[e2.ES2015 = 2] = "ES2015", e2[e2.ES2016 = 3] = "ES2016", e2[e2.ES2017 = 4] = "ES2017", e2[e2.ES2018 = 5] = "ES2018", e2[e2.ES2019 = 6] = "ES2019", e2[e2.ES2020 = 7] = "ES2020", e2[e2.ESNext = 99] = "ESNext", e2[e2.JSON = 100] = "JSON", e2[e2.Latest = 99] = "Latest"; }(s || (s = {})), function(e2) { e2[e2.Classic = 1] = "Classic", e2[e2.NodeJs = 2] = "NodeJs"; @@ -57166,18 +57166,18 @@ ${Object(zn.b)(wi)} if (n2 = t2 === void 0 ? "ts:extralib-" + Math.random().toString(36).substring(2, 15) : t2, this._extraLibs[n2] && this._extraLibs[n2].content === e3) return {dispose: function() { }}; - var o2 = 1; - return this._removedExtraLibs[n2] && (o2 = this._removedExtraLibs[n2] + 1), this._extraLibs[n2] && (o2 = this._extraLibs[n2].version + 1), this._extraLibs[n2] = {content: e3, version: o2}, this._fireOnDidExtraLibsChangeSoon(), {dispose: function() { + var r2 = 1; + return this._removedExtraLibs[n2] && (r2 = this._removedExtraLibs[n2] + 1), this._extraLibs[n2] && (r2 = this._extraLibs[n2].version + 1), this._extraLibs[n2] = {content: e3, version: r2}, this._fireOnDidExtraLibsChangeSoon(), {dispose: function() { var e4 = i2._extraLibs[n2]; - e4 && e4.version === o2 && (delete i2._extraLibs[n2], i2._removedExtraLibs[n2] = o2, i2._fireOnDidExtraLibsChangeSoon()); + e4 && e4.version === r2 && (delete i2._extraLibs[n2], i2._removedExtraLibs[n2] = r2, i2._fireOnDidExtraLibsChangeSoon()); }}; }, e2.prototype.setExtraLibs = function(e3) { for (var t2 in this._extraLibs) this._removedExtraLibs[t2] = this._extraLibs[t2].version; if (this._extraLibs = Object.create(null), e3 && e3.length > 0) for (var n2 = 0, i2 = e3; n2 < i2.length; n2++) { - var o2 = i2[n2], r2 = (t2 = o2.filePath || "ts:extralib-" + Math.random().toString(36).substring(2, 15), o2.content), s2 = 1; - this._removedExtraLibs[t2] && (s2 = this._removedExtraLibs[t2] + 1), this._extraLibs[t2] = {content: r2, version: s2}; + var r2 = i2[n2], o2 = (t2 = r2.filePath || "ts:extralib-" + Math.random().toString(36).substring(2, 15), r2.content), s2 = 1; + this._removedExtraLibs[t2] && (s2 = this._removedExtraLibs[t2] + 1), this._extraLibs[t2] = {content: o2, version: s2}; } this._fireOnDidExtraLibsChangeSoon(); }, e2.prototype._fireOnDidExtraLibsChangeSoon = function() { @@ -57205,7 +57205,7 @@ ${Object(zn.b)(wi)} function p() { return Promise.resolve().then(n.bind(null, 412)); } - c.g.typescript = {ModuleKind: i, JsxEmit: o, NewLineKind: r, ScriptTarget: s, ModuleResolutionKind: a, typescriptVersion: "4.0.3", typescriptDefaults: h, javascriptDefaults: u, getTypeScriptWorker: function() { + c.g.typescript = {ModuleKind: i, JsxEmit: r, NewLineKind: o, ScriptTarget: s, ModuleResolutionKind: a, typescriptVersion: "4.0.3", typescriptDefaults: h, javascriptDefaults: u, getTypeScriptWorker: function() { return p().then(function(e2) { return e2.getTypeScriptWorker(); }); @@ -57300,17 +57300,17 @@ ${Object(zn.b)(wi)} function N(e2) { return {completionItems: true, hovers: true, documentSymbols: true, links: true, documentHighlights: true, rename: true, colors: true, foldingRanges: true, selectionRanges: true, diagnostics: e2 === I, documentFormattingEdits: e2 === I, documentRangeFormattingEdits: e2 === I}; } - var I = "html", O = new k(I, {format: E, suggest: {html5: true, angular1: true, ionic: true}}, N(I)), D = new k("handlebars", T, N("handlebars")), A = new k("razor", L, N("razor")); + var I = "html", D = new k(I, {format: E, suggest: {html5: true, angular1: true, ionic: true}}, N(I)), O = new k("handlebars", T, N("handlebars")), A = new k("razor", L, N("razor")); function R() { return Promise.resolve().then(n.bind(null, 415)); } - S.f.html = {htmlDefaults: O, razorDefaults: A, handlebarDefaults: D}, S.f.onLanguage(I, function() { + S.f.html = {htmlDefaults: D, razorDefaults: A, handlebarDefaults: O}, S.f.onLanguage(I, function() { R().then(function(e2) { - return e2.setupMode(O); + return e2.setupMode(D); }); }), S.f.onLanguage("handlebars", function() { R().then(function(e2) { - return e2.setupMode(D); + return e2.setupMode(O); }); }), S.f.onLanguage("razor", function() { R().then(function(e2) { @@ -57486,7 +57486,7 @@ ${Object(zn.b)(wi)} }}), z({id: "yaml", extensions: [".yaml", ".yml"], aliases: ["YAML", "yaml", "YML", "yml"], mimetypes: ["application/x-yaml"], loader: function() { return Promise.resolve().then(n.bind(null, 411)); }}); - var B = n(107), j = n(164), V = (n(194), n(193), n(281), n(4)), U = n(0), H = n(7), q = n(21), $ = n(43), K = n(10), G = n(15), Y = n(17), Z = n(13); + var B = n(107), j = n(164), V = (n(194), n(193), n(281), n(4)), U = n(0), H = n(7), q = n(21), $ = n(43), K = n(10), G = n(16), Y = n(17), Z = n(13); class X { constructor(e2 = "", t2 = false) { var n2, i2; @@ -57526,36 +57526,36 @@ ${Object(zn.b)(wi)} return e2 ? e2.replace(/\\([\\`*_{}[\]()#+\-.!])/g, "$1") : e2; } var ne = n(66), ie = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, oe = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, re = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; - }, re = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }, oe = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -57598,13 +57598,13 @@ ${Object(zn.b)(wi)} this.cancelSelectionAnchor(), this.modelChangeListener.dispose(); } }; - ae.ID = "editor.contrib.selectionAnchorController", ae = ie([oe(1, K.b)], ae); + ae.ID = "editor.contrib.selectionAnchorController", ae = ie([re(1, K.b)], ae); class le extends V.b { constructor() { super({id: "editor.action.setSelectionAnchor", label: Object(U.a)("setSelectionAnchor", "Set Selection Anchor"), alias: "Set Selection Anchor", precondition: void 0, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2080), weight: 100}}); } run(e2, t2) { - return re(this, void 0, void 0, function* () { + return oe(this, void 0, void 0, function* () { ae.get(t2).setSelectionAnchor(); }); } @@ -57614,7 +57614,7 @@ ${Object(zn.b)(wi)} super({id: "editor.action.goToSelectionAnchor", label: Object(U.a)("goToSelectionAnchor", "Go to Selection Anchor"), alias: "Go to Selection Anchor", precondition: se}); } run(e2, t2) { - return re(this, void 0, void 0, function* () { + return oe(this, void 0, void 0, function* () { ae.get(t2).goToSelectionAnchor(); }); } @@ -57624,7 +57624,7 @@ ${Object(zn.b)(wi)} super({id: "editor.action.selectFromAnchorToCursor", label: Object(U.a)("selectFromAnchorToCursor", "Select from Anchor to Cursor"), alias: "Select from Anchor to Cursor", precondition: se, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2089), weight: 100}}); } run(e2, t2) { - return re(this, void 0, void 0, function* () { + return oe(this, void 0, void 0, function* () { ae.get(t2).selectFromAnchorToCursor(); }); } @@ -57634,7 +57634,7 @@ ${Object(zn.b)(wi)} super({id: "editor.action.cancelSelectionAnchor", label: Object(U.a)("cancelSelectionAnchor", "Cancel Selection Anchor"), alias: "Cancel Selection Anchor", precondition: se, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 9, weight: 100}}); } run(e2, t2) { - return re(this, void 0, void 0, function* () { + return oe(this, void 0, void 0, function* () { ae.get(t2).cancelSelectionAnchor(); }); } @@ -57660,8 +57660,8 @@ ${Object(zn.b)(wi)} const i2 = Ee.get(t2); if (!i2) return; - let o2 = true; - n2 && n2.selectBrackets === false && (o2 = false), i2.selectToBracket(o2); + let r2 = true; + n2 && n2.selectBrackets === false && (r2 = false), i2.selectToBracket(r2); } } class ke { @@ -57691,19 +57691,19 @@ ${Object(zn.b)(wi)} return; const e2 = this._editor.getModel(), t2 = this._editor.getSelections().map((t3) => { const n2 = t3.getStartPosition(), i2 = e2.matchBracket(n2); - let o2 = null; + let r2 = null; if (i2) - i2[0].containsPosition(n2) ? o2 = i2[1].getStartPosition() : i2[1].containsPosition(n2) && (o2 = i2[0].getStartPosition()); + i2[0].containsPosition(n2) ? r2 = i2[1].getStartPosition() : i2[1].containsPosition(n2) && (r2 = i2[0].getStartPosition()); else { const t4 = e2.findEnclosingBrackets(n2); if (t4) - o2 = t4[0].getStartPosition(); + r2 = t4[0].getStartPosition(); else { const t5 = e2.findNextBracket(n2); - t5 && t5.range && (o2 = t5.range.getStartPosition()); + t5 && t5.range && (r2 = t5.range.getStartPosition()); } } - return o2 ? new q.a(o2.lineNumber, o2.column, o2.lineNumber, o2.column) : new q.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column); + return r2 ? new q.a(r2.lineNumber, r2.column, r2.lineNumber, r2.column) : new q.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column); }); this._editor.setSelections(t2), this._editor.revealRange(t2[0]); } @@ -57712,16 +57712,16 @@ ${Object(zn.b)(wi)} return; const t2 = this._editor.getModel(), n2 = []; this._editor.getSelections().forEach((i2) => { - const o2 = i2.getStartPosition(); - let r2 = t2.matchBracket(o2); - if (!r2 && (r2 = t2.findEnclosingBrackets(o2), !r2)) { - const e3 = t2.findNextBracket(o2); - e3 && e3.range && (r2 = t2.matchBracket(e3.range.getStartPosition())); + const r2 = i2.getStartPosition(); + let o2 = t2.matchBracket(r2); + if (!o2 && (o2 = t2.findEnclosingBrackets(r2), !o2)) { + const e3 = t2.findNextBracket(r2); + e3 && e3.range && (o2 = t2.matchBracket(e3.range.getStartPosition())); } let s2 = null, a2 = null; - if (r2) { - r2.sort(ge.a.compareRangesUsingStarts); - const [t3, n3] = r2; + if (o2) { + o2.sort(ge.a.compareRangesUsingStarts); + const [t3, n3] = o2; s2 = e2 ? t3.getStartPosition() : t3.getEndPosition(), a2 = e2 ? n3.getEndPosition() : n3.getStartPosition(); } s2 && a2 && n2.push(new q.a(s2.lineNumber, s2.column, a2.lineNumber, a2.column)); @@ -57747,15 +57747,15 @@ ${Object(zn.b)(wi)} const t2 = this._editor.getModel(), n2 = t2.getVersionId(); let i2 = []; this._lastVersionId === n2 && (i2 = this._lastBracketsData); - let o2 = [], r2 = 0; + let r2 = [], o2 = 0; for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) { let n4 = e2[t3]; - n4.isEmpty() && (o2[r2++] = n4.getStartPosition()); + n4.isEmpty() && (r2[o2++] = n4.getStartPosition()); } - o2.length > 1 && o2.sort(me.a.compare); + r2.length > 1 && r2.sort(me.a.compare); let s2 = [], a2 = 0, l2 = 0, c2 = i2.length; - for (let e3 = 0, n3 = o2.length; e3 < n3; e3++) { - let n4 = o2[e3]; + for (let e3 = 0, n3 = r2.length; e3 < n3; e3++) { + let n4 = r2[e3]; for (; l2 < c2 && i2[l2].position.isBefore(n4); ) l2++; if (l2 < c2 && i2[l2].position.equals(n4)) @@ -57781,14 +57781,14 @@ ${Object(zn.b)(wi)} getEditOperations(e2, t2) { if (this._selection.startLineNumber !== this._selection.endLineNumber || this._selection.isEmpty()) return; - const n2 = this._selection.startLineNumber, i2 = this._selection.startColumn, o2 = this._selection.endColumn; - if ((!this._isMovingLeft || i2 !== 1) && (this._isMovingLeft || o2 !== e2.getLineMaxColumn(n2))) + const n2 = this._selection.startLineNumber, i2 = this._selection.startColumn, r2 = this._selection.endColumn; + if ((!this._isMovingLeft || i2 !== 1) && (this._isMovingLeft || r2 !== e2.getLineMaxColumn(n2))) if (this._isMovingLeft) { - const r2 = new ge.a(n2, i2 - 1, n2, i2), s2 = e2.getValueInRange(r2); - t2.addEditOperation(r2, null), t2.addEditOperation(new ge.a(n2, o2, n2, o2), s2); + const o2 = new ge.a(n2, i2 - 1, n2, i2), s2 = e2.getValueInRange(o2); + t2.addEditOperation(o2, null), t2.addEditOperation(new ge.a(n2, r2, n2, r2), s2); } else { - const r2 = new ge.a(n2, o2, n2, o2 + 1), s2 = e2.getValueInRange(r2); - t2.addEditOperation(r2, null), t2.addEditOperation(new ge.a(n2, i2, n2, i2), s2); + const o2 = new ge.a(n2, r2, n2, r2 + 1), s2 = e2.getValueInRange(o2); + t2.addEditOperation(o2, null), t2.addEditOperation(new ge.a(n2, i2, n2, i2), s2); } } computeCursorState(e2, t2) { @@ -57818,53 +57818,53 @@ ${Object(zn.b)(wi)} } }); var Ne = n(62), Ie = n(81); - class Oe extends V.b { + class De extends V.b { constructor() { super({id: "editor.action.transposeLetters", label: U.a("transposeLetters.label", "Transpose Letters"), alias: "Transpose Letters", precondition: H.a.writable, kbOpts: {kbExpr: H.a.textInputFocus, primary: 0, mac: {primary: 306}, weight: 100}}); } run(e2, t2) { if (!t2.hasModel()) return; - let n2 = t2.getModel(), i2 = [], o2 = t2.getSelections(); - for (let e3 of o2) { + let n2 = t2.getModel(), i2 = [], r2 = t2.getSelections(); + for (let e3 of r2) { if (!e3.isEmpty()) continue; - let t3 = e3.startLineNumber, o3 = e3.startColumn, r2 = n2.getLineMaxColumn(t3); - if (t3 === 1 && (o3 === 1 || o3 === 2 && r2 === 2)) + let t3 = e3.startLineNumber, r3 = e3.startColumn, o2 = n2.getLineMaxColumn(t3); + if (t3 === 1 && (r3 === 1 || r3 === 2 && o2 === 2)) continue; - let s2 = o3 === r2 ? e3.getPosition() : Ie.a.rightPosition(n2, e3.getPosition().lineNumber, e3.getPosition().column), a2 = Ie.a.leftPosition(n2, s2.lineNumber, s2.column), l2 = Ie.a.leftPosition(n2, a2.lineNumber, a2.column), c2 = n2.getValueInRange(ge.a.fromPositions(l2, a2)), d2 = n2.getValueInRange(ge.a.fromPositions(a2, s2)), h2 = ge.a.fromPositions(l2, s2); + let s2 = r3 === o2 ? e3.getPosition() : Ie.a.rightPosition(n2, e3.getPosition().lineNumber, e3.getPosition().column), a2 = Ie.a.leftPosition(n2, s2.lineNumber, s2.column), l2 = Ie.a.leftPosition(n2, a2.lineNumber, a2.column), c2 = n2.getValueInRange(ge.a.fromPositions(l2, a2)), d2 = n2.getValueInRange(ge.a.fromPositions(a2, s2)), h2 = ge.a.fromPositions(l2, s2); i2.push(new Ne.a(h2, d2 + c2)); } i2.length > 0 && (t2.pushUndoStop(), t2.executeCommands(this.id, i2), t2.pushUndoStop()); } } - Object(V.k)(Oe); - var De = n(34), Ae = n(11), Re = n(167), Me = n(41), Pe = n(121), Fe = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + Object(V.k)(De); + var Oe = n(34), Ae = n(11), Re = n(167), Me = n(41), Pe = n(121), Fe = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - const We = Ae.g || document.queryCommandSupported("cut"), ze = Ae.g || document.queryCommandSupported("copy"), Be = ze && !De.f, je = !De.h || document.queryCommandSupported("paste"); + const We = Ae.g || document.queryCommandSupported("cut"), ze = Ae.g || document.queryCommandSupported("copy"), Be = ze && !Oe.f, je = !Oe.h || document.queryCommandSupported("paste"); function Ve(e2) { return e2.register(), e2; } @@ -57890,14 +57890,14 @@ ${Object(zn.b)(wi)} }), e2.addImplementation(0, (e3, n2) => (document.execCommand(t2), true))); } Ke(Ue, "cut"), Ke(He, "copy"), qe && (qe.addImplementation(1e4, (e2, t2) => { - const n2 = e2.get(Me.a), i2 = e2.get(Pe.a), o2 = n2.getFocusedCodeEditor(); - if (o2 && o2.hasTextFocus()) { + const n2 = e2.get(Me.a), i2 = e2.get(Pe.a), r2 = n2.getFocusedCodeEditor(); + if (r2 && r2.hasTextFocus()) { return !(!document.execCommand("paste") && Ae.h) || (Fe(void 0, void 0, void 0, function* () { const e3 = yield i2.readText(); if (e3 !== "") { const t3 = Re.b.INSTANCE.get(e3); - let n3 = false, i3 = null, r2 = null; - t3 && (n3 = o2.getOption(26) && !!t3.isFromEmptySelection, i3 = t3.multicursorText !== void 0 ? t3.multicursorText : null, r2 = t3.mode), o2.trigger("keyboard", "paste", {text: e3, pasteOnNewLine: n3, multicursorText: i3, mode: r2}); + let n3 = false, i3 = null, o2 = null; + t3 && (n3 = r2.getOption(26) && !!t3.isFromEmptySelection, i3 = t3.multicursorText !== void 0 ? t3.multicursorText : null, o2 = t3.mode), r2.trigger("keyboard", "paste", {text: e3, pasteOnNewLine: n3, multicursorText: i3, mode: o2}); } }), true); } @@ -57946,12 +57946,12 @@ ${Object(zn.b)(wi)} return !!t2.contains(e2) && (!n2 || !t2.contains(n2)); } nt.sep = ".", nt.None = new nt("@@none@@"), nt.Empty = new nt(""), nt.QuickFix = new nt("quickfix"), nt.Refactor = new nt("refactor"), nt.Source = new nt("source"), nt.SourceOrganizeImports = nt.Source.append("organizeImports"), nt.SourceFixAll = nt.Source.append("fixAll"); - class ot { + class rt { constructor(e2, t2, n2) { this.kind = e2, this.apply = t2, this.preferred = n2; } static fromUser(e2, t2) { - return e2 && typeof e2 == "object" ? new ot(ot.getKindFromUser(e2, t2.kind), ot.getApplyFromUser(e2, t2.apply), ot.getPreferredUser(e2)) : new ot(t2.kind, t2.apply, false); + return e2 && typeof e2 == "object" ? new rt(rt.getKindFromUser(e2, t2.kind), rt.getApplyFromUser(e2, t2.apply), rt.getPreferredUser(e2)) : new rt(t2.kind, t2.apply, false); } static getApplyFromUser(e2, t2) { switch (typeof e2.apply == "string" ? e2.apply.toLowerCase() : "") { @@ -57972,25 +57972,25 @@ ${Object(zn.b)(wi)} return typeof e2.preferred == "boolean" && e2.preferred; } } - var rt = n(83), st = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var ot = n(83), st = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -58009,23 +58009,23 @@ ${Object(zn.b)(wi)} } } const lt = {actions: [], documentation: void 0}; - function ct(e2, t2, n2, i2, o2) { - var r2; - const s2 = n2.filter || {}, a2 = {only: (r2 = s2.include) === null || r2 === void 0 ? void 0 : r2.value, trigger: n2.type}, l2 = new Je.d(e2, o2), c2 = function(e3, t3) { + function ct(e2, t2, n2, i2, r2) { + var o2; + const s2 = n2.filter || {}, a2 = {only: (o2 = s2.include) === null || o2 === void 0 ? void 0 : o2.value, trigger: n2.type}, l2 = new Je.d(e2, r2), c2 = function(e3, t3) { return et.a.all(e3).filter((e4) => !e4.providedCodeActionKinds || e4.providedCodeActionKinds.some((e5) => function(e6, t4) { return !(e6.include && !e6.include.intersects(t4)) && ((!e6.excludes || !e6.excludes.some((n3) => it(t4, n3, e6.include))) && !(!e6.includeSourceActions && nt.Source.contains(t4))); }(t3, new nt(e5)))); }(e2, s2), d2 = new pe.b(), h2 = c2.map((n3) => st(this, void 0, void 0, function* () { try { i2.report(n3); - const o3 = yield n3.provideCodeActions(e2, t2, a2, l2.token); - if (o3 && d2.add(o3), l2.token.isCancellationRequested) + const r3 = yield n3.provideCodeActions(e2, t2, a2, l2.token); + if (r3 && d2.add(r3), l2.token.isCancellationRequested) return lt; - const r3 = ((o3 == null ? void 0 : o3.actions) || []).filter((e3) => e3 && function(e4, t3) { + const o3 = ((r3 == null ? void 0 : r3.actions) || []).filter((e3) => e3 && function(e4, t3) { const n4 = t3.kind ? new nt(t3.kind) : void 0; return !!(!e4.include || n4 && e4.include.contains(n4)) && (!(e4.excludes && n4 && e4.excludes.some((t4) => it(n4, t4, e4.include))) && (!(!e4.includeSourceActions && n4 && nt.Source.contains(n4)) && !(e4.onlyIncludePreferredActions && !t3.isPreferred))); }(s2, e3)); - return {actions: r3, documentation: function(e3, t3, n4) { + return {actions: o3, documentation: function(e3, t3, n4) { if (!e3.documentation) return; const i3 = e3.documentation.map((e4) => ({kind: new nt(e4.kind), command: e4.command})); @@ -58043,7 +58043,7 @@ ${Object(zn.b)(wi)} return t4.command; } return; - }(n3, r3, s2.include)}; + }(n3, o3, s2.include)}; } catch (e3) { if (Object(Z.d)(e3)) throw e3; @@ -58062,28 +58062,28 @@ ${Object(zn.b)(wi)} } Object(V.o)("_executeCodeActionProvider", function(e2, t2) { return st(this, void 0, void 0, function* () { - const {resource: n2, rangeOrSelection: i2, kind: o2} = t2; + const {resource: n2, rangeOrSelection: i2, kind: r2} = t2; if (!(n2 instanceof Qe.a)) throw Object(Z.b)(); - const r2 = e2.get(tt.a).getModel(n2); - if (!r2) + const o2 = e2.get(tt.a).getModel(n2); + if (!o2) throw Object(Z.b)(); - const s2 = q.a.isISelection(i2) ? q.a.liftSelection(i2) : ge.a.isIRange(i2) ? r2.validateRange(i2) : void 0; + const s2 = q.a.isISelection(i2) ? q.a.liftSelection(i2) : ge.a.isIRange(i2) ? o2.validateRange(i2) : void 0; if (!s2) throw Object(Z.b)(); - const a2 = yield ct(r2, s2, {type: 2, filter: {includeSourceActions: true, include: o2 && o2.value ? new nt(o2.value) : void 0}}, rt.b.None, Xe.a.None); + const a2 = yield ct(o2, s2, {type: 2, filter: {includeSourceActions: true, include: r2 && r2.value ? new nt(r2.value) : void 0}}, ot.b.None, Xe.a.None); return setTimeout(() => a2.dispose(), 100), a2.validActions; }); }); n(285); var dt = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, ht = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -58118,10 +58118,10 @@ ${Object(zn.b)(wi)} class mt { constructor(e2, {lineNumber: t2, column: n2}, i2) { this.allowEditorOverflow = true, this.suppressMouseDown = false, this._editor = e2, this._editor.revealLinesInCenterIfOutsideViewport(t2, t2, 0), this._position = {lineNumber: t2, column: n2 - 1}, this._domNode = document.createElement("div"), this._domNode.classList.add("monaco-editor-overlaymessage"); - const o2 = document.createElement("div"); - o2.classList.add("message"), o2.textContent = i2, this._domNode.appendChild(o2); const r2 = document.createElement("div"); - r2.classList.add("anchor"), this._domNode.appendChild(r2), this._editor.addContentWidget(this), this._domNode.classList.add("fadeIn"); + r2.classList.add("message"), r2.textContent = i2, this._domNode.appendChild(r2); + const o2 = document.createElement("div"); + o2.classList.add("anchor"), this._domNode.appendChild(o2), this._editor.addContentWidget(this), this._domNode.classList.add("fadeIn"); } static fadeOut(e2) { let t2; @@ -58151,40 +58151,40 @@ ${Object(zn.b)(wi)} } const i2 = e2.getColor(ve.lb); i2 && t2.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i2}; }`); - const o2 = e2.getColor(ve.nb); - o2 && t2.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${o2}; }`); + const r2 = e2.getColor(ve.nb); + r2 && t2.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${r2}; }`); }); var gt = n(18), ft = n(1), bt = n(60), _t = n(84), vt = n(50), wt = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, yt = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Ct = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -58205,25 +58205,25 @@ ${Object(zn.b)(wi)} } show(e2, t2, n2, i2) { return Ct(this, void 0, void 0, function* () { - const o2 = i2.includeDisabledActions ? t2.allActions : t2.validActions; - if (!o2.length) + const r2 = i2.includeDisabledActions ? t2.allActions : t2.validActions; + if (!r2.length) return void (this._visible = false); if (!this._editor.getDomNode()) throw this._visible = false, Object(Z.a)(); this._visible = true, this._showingActions.value = t2; - const r2 = this.getMenuActions(e2, o2, t2.documentation), s2 = me.a.isIPosition(n2) ? this._toCoords(n2) : n2 || {x: 0, y: 0}, a2 = this._keybindingResolver.getResolver(); - this._contextMenuService.showContextMenu({domForShadowRoot: this._editor.getDomNode(), getAnchor: () => s2, getActions: () => r2, onHide: () => { + const o2 = this.getMenuActions(e2, r2, t2.documentation), s2 = me.a.isIPosition(n2) ? this._toCoords(n2) : n2 || {x: 0, y: 0}, a2 = this._keybindingResolver.getResolver(); + this._contextMenuService.showContextMenu({domForShadowRoot: this._editor.getDomNode(), getAnchor: () => s2, getActions: () => o2, onHide: () => { this._visible = false, this._editor.focus(); }, autoSelectFirstItem: true, getKeyBinding: (e3) => e3 instanceof xt ? a2(e3.action) : void 0}); }); } getMenuActions(e2, t2, n2) { - var i2, o2; - const r2 = (e3) => new xt(e3, () => this._delegate.onSelectCodeAction(e3)), s2 = t2.map(r2), a2 = [...n2], l2 = this._editor.getModel(); + var i2, r2; + const o2 = (e3) => new xt(e3, () => this._delegate.onSelectCodeAction(e3)), s2 = t2.map(o2), a2 = [...n2], l2 = this._editor.getModel(); if (l2 && s2.length) for (const n3 of et.a.all(l2)) - n3._getAdditionalMenuItems && a2.push(...n3._getAdditionalMenuItems({trigger: e2.type, only: (o2 = (i2 = e2.filter) === null || i2 === void 0 ? void 0 : i2.include) === null || o2 === void 0 ? void 0 : o2.value}, t2)); - return a2.length && s2.push(new bt.c(), ...a2.map((e3) => r2({title: e3.title, command: e3}))), s2; + n3._getAdditionalMenuItems && a2.push(...n3._getAdditionalMenuItems({trigger: e2.type, only: (r2 = (i2 = e2.filter) === null || i2 === void 0 ? void 0 : i2.include) === null || r2 === void 0 ? void 0 : r2.value}, t2)); + return a2.length && s2.push(new bt.c(), ...a2.map((e3) => o2({title: e3.title, command: e3}))), s2; } _toCoords(e2) { if (!this._editor.hasModel()) @@ -58241,7 +58241,7 @@ ${Object(zn.b)(wi)} getResolver() { const e2 = new Ge(() => this._keybindingProvider.getKeybindings().filter((e3) => kt.codeActionCommands.indexOf(e3.command) >= 0).filter((e3) => e3.resolvedKeybinding).map((e3) => { let t2 = e3.commandArgs; - return e3.command === "editor.action.organizeImports" ? t2 = {kind: nt.SourceOrganizeImports.value} : e3.command === "editor.action.fixAll" && (t2 = {kind: nt.SourceFixAll.value}), Object.assign({resolvedKeybinding: e3.resolvedKeybinding}, ot.fromUser(t2, {kind: nt.None, apply: "never"})); + return e3.command === "editor.action.organizeImports" ? t2 = {kind: nt.SourceOrganizeImports.value} : e3.command === "editor.action.fixAll" && (t2 = {kind: nt.SourceFixAll.value}), Object.assign({resolvedKeybinding: e3.resolvedKeybinding}, rt.fromUser(t2, {kind: nt.None, apply: "never"})); })); return (t2) => { if (t2.kind) { @@ -58259,14 +58259,14 @@ ${Object(zn.b)(wi)} } kt.codeActionCommands = ["editor.action.refactor", "editor.action.codeAction", "editor.action.sourceAction", "editor.action.organizeImports", "editor.action.fixAll"]; var Et, Tt = n(103), Lt = n(6), Nt = (n(287), n(61)), It = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Ot = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, Dt = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; @@ -58279,7 +58279,7 @@ ${Object(zn.b)(wi)} } }; }(Et || (Et = {})); - let Dt = class e2 extends pe.a { + let Ot = class e2 extends pe.a { constructor(e3, t2, n2, i2) { super(), this._editor = e3, this._quickFixActionId = t2, this._preferredFixActionId = n2, this._keybindingService = i2, this._onClick = this._register(new Lt.a()), this.onClick = this._onClick.event, this._state = Et.Hidden, this._domNode = document.createElement("div"), this._domNode.className = Y.a.lightBulb.classNames, this._editor.addContentWidget(this), this._register(this._editor.onDidChangeModelContent((e4) => { const t3 = this._editor.getModel(); @@ -58289,8 +58289,8 @@ ${Object(zn.b)(wi)} return; this._editor.focus(), e4.preventDefault(); const {top: t3, height: n3} = ft.C(this._domNode), i3 = this._editor.getOption(51); - let o2 = Math.floor(i3 / 3); - this.state.widgetPosition.position !== null && this.state.widgetPosition.position.lineNumber < this.state.editorPosition.lineNumber && (o2 += i3), this._onClick.fire({x: e4.posx, y: t3 + n3 + o2, actions: this.state.actions, trigger: this.state.trigger}); + let r2 = Math.floor(i3 / 3); + this.state.widgetPosition.position !== null && this.state.widgetPosition.position.lineNumber < this.state.editorPosition.lineNumber && (r2 += i3), this._onClick.fire({x: e4.posx, y: t3 + n3 + r2, actions: this.state.actions, trigger: this.state.trigger}); })), this._register(ft.i(this._domNode, "mouseenter", (e4) => { if ((1 & e4.buttons) != 1) return; @@ -58319,13 +58319,13 @@ ${Object(zn.b)(wi)} update(t2, n2, i2) { if (t2.validActions.length <= 0) return this.hide(); - const o2 = this._editor.getOptions(); - if (!o2.get(49).enabled) + const r2 = this._editor.getOptions(); + if (!r2.get(49).enabled) return this.hide(); - const r2 = this._editor.getModel(); - if (!r2) + const o2 = this._editor.getModel(); + if (!o2) return this.hide(); - const {lineNumber: s2, column: a2} = r2.validatePosition(i2), l2 = r2.getOptions().tabSize, c2 = o2.get(36), d2 = r2.getLineContent(s2), h2 = be.b.computeIndentLevel(d2, l2), u2 = (e3) => e3 > 2 && this._editor.getTopForLineNumber(e3) === this._editor.getTopForLineNumber(e3 - 1); + const {lineNumber: s2, column: a2} = o2.validatePosition(i2), l2 = o2.getOptions().tabSize, c2 = r2.get(36), d2 = o2.getLineContent(s2), h2 = be.b.computeIndentLevel(d2, l2), u2 = (e3) => e3 > 2 && this._editor.getTopForLineNumber(e3) === this._editor.getTopForLineNumber(e3 - 1); let p2 = s2; if (!(c2.spaceWidth * h2 > 22)) if (s2 > 1 && !u2(s2 - 1)) @@ -58361,7 +58361,7 @@ ${Object(zn.b)(wi)} this._domNode.title = e3; } }; - Dt._posPref = [0], Dt = It([Ot(3, vt.a)], Dt), Object(we.g)((e2, t2) => { + Ot._posPref = [0], Ot = It([Dt(3, vt.a)], Ot), Object(we.g)((e2, t2) => { const n2 = e2.getColor(ve.N); n2 && t2.addRule(` .monaco-editor .contentWidgets ${Y.a.lightBulb.cssSelector} { @@ -58374,36 +58374,36 @@ ${Object(zn.b)(wi)} }`); }); var At = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Rt = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Mt = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -58411,11 +58411,11 @@ ${Object(zn.b)(wi)} }); }; let Pt = class extends pe.a { - constructor(e2, t2, n2, i2, o2) { - super(), this._editor = e2, this.delegate = i2, this._activeCodeActions = this._register(new pe.d()), this._codeActionWidget = new Ge(() => this._register(o2.createInstance(St, this._editor, {onSelectCodeAction: (e3) => Mt(this, void 0, void 0, function* () { + constructor(e2, t2, n2, i2, r2) { + super(), this._editor = e2, this.delegate = i2, this._activeCodeActions = this._register(new pe.d()), this._codeActionWidget = new Ge(() => this._register(r2.createInstance(St, this._editor, {onSelectCodeAction: (e3) => Mt(this, void 0, void 0, function* () { this.delegate.applyCodeAction(e3, true); })}))), this._lightBulbWidget = new Ge(() => { - const e3 = this._register(o2.createInstance(Dt, this._editor, t2, n2)); + const e3 = this._register(r2.createInstance(Ot, this._editor, t2, n2)); return this._register(e3.onClick((e4) => this.showCodeActionList(e4.trigger, e4.actions, e4, {includeDisabledActions: false}))), e3; }); } @@ -58424,35 +58424,35 @@ ${Object(zn.b)(wi)} return Mt(this, void 0, void 0, function* () { if (e2.type !== 1) return void ((t2 = this._lightBulbWidget.rawValue) === null || t2 === void 0 || t2.hide()); - let o2; + let r2; try { - o2 = yield e2.actions; + r2 = yield e2.actions; } catch (e3) { return void Object(Z.e)(e3); } - if (this._lightBulbWidget.getValue().update(o2, e2.trigger, e2.position), e2.trigger.type === 2) { + if (this._lightBulbWidget.getValue().update(r2, e2.trigger, e2.position), e2.trigger.type === 2) { if ((n2 = e2.trigger.filter) === null || n2 === void 0 ? void 0 : n2.include) { - const t4 = this.tryGetValidActionToApply(e2.trigger, o2); + const t4 = this.tryGetValidActionToApply(e2.trigger, r2); if (t4) { try { yield this.delegate.applyCodeAction(t4, false); } finally { - o2.dispose(); + r2.dispose(); } return; } if (e2.trigger.context) { - const t5 = this.getInvalidActionThatWouldHaveBeenApplied(e2.trigger, o2); + const t5 = this.getInvalidActionThatWouldHaveBeenApplied(e2.trigger, r2); if (t5 && t5.disabled) - return ut.get(this._editor).showMessage(t5.disabled, e2.trigger.context.position), void o2.dispose(); + return ut.get(this._editor).showMessage(t5.disabled, e2.trigger.context.position), void r2.dispose(); } } const t3 = !!((i2 = e2.trigger.filter) === null || i2 === void 0 ? void 0 : i2.include); - if (e2.trigger.context && (!o2.allActions.length || !t3 && !o2.validActions.length)) - return ut.get(this._editor).showMessage(e2.trigger.context.notAvailableMessage, e2.trigger.context.position), this._activeCodeActions.value = o2, void o2.dispose(); - this._activeCodeActions.value = o2, this._codeActionWidget.getValue().show(e2.trigger, o2, e2.position, {includeDisabledActions: t3}); + if (e2.trigger.context && (!r2.allActions.length || !t3 && !r2.validActions.length)) + return ut.get(this._editor).showMessage(e2.trigger.context.notAvailableMessage, e2.trigger.context.position), this._activeCodeActions.value = r2, void r2.dispose(); + this._activeCodeActions.value = r2, this._codeActionWidget.getValue().show(e2.trigger, r2, e2.position, {includeDisabledActions: t3}); } else - this._codeActionWidget.getValue().isVisible ? o2.dispose() : this._activeCodeActions.value = o2; + this._codeActionWidget.getValue().isVisible ? r2.dispose() : this._activeCodeActions.value = r2; }); } getInvalidActionThatWouldHaveBeenApplied(e2, t2) { @@ -58505,16 +58505,16 @@ ${Object(zn.b)(wi)} return; const t2 = this._editor.getModel(), n2 = this._editor.getSelection(); if (n2.isEmpty() && e2.type === 1) { - const {lineNumber: e3, column: i2} = n2.getPosition(), o2 = t2.getLineContent(e3); - if (o2.length === 0) + const {lineNumber: e3, column: i2} = n2.getPosition(), r2 = t2.getLineContent(e3); + if (r2.length === 0) return; if (i2 === 1) { - if (/\s/.test(o2[0])) + if (/\s/.test(r2[0])) return; } else if (i2 === t2.getLineMaxColumn(e3)) { - if (/\s/.test(o2[o2.length - 1])) + if (/\s/.test(r2[r2.length - 1])) return; - } else if (/\s/.test(o2[i2 - 2]) && /\s/.test(o2[i2 - 1])) + } else if (/\s/.test(r2[i2 - 2]) && /\s/.test(r2[i2 - 1])) return; } return n2; @@ -58523,8 +58523,8 @@ ${Object(zn.b)(wi)} const n2 = this._editor.getModel(); if (!t2 || !n2) return void this._signalChange(void 0); - const i2 = this._getRangeOfMarker(t2), o2 = i2 ? i2.getStartPosition() : t2.getStartPosition(), r2 = {trigger: e2, selection: t2, position: o2}; - return this._signalChange(r2), r2; + const i2 = this._getRangeOfMarker(t2), r2 = i2 ? i2.getStartPosition() : t2.getStartPosition(), o2 = {trigger: e2, selection: t2, position: r2}; + return this._signalChange(o2), o2; } } var Ht; @@ -58554,7 +58554,7 @@ ${Object(zn.b)(wi)} var n2; if (!t3) return void this.setState(Ht.Empty); - const i2 = Object(ue.f)((n3) => ct(e2, t3.selection, t3.trigger, rt.b.None, n3)); + const i2 = Object(ue.f)((n3) => ct(e2, t3.selection, t3.trigger, ot.b.None, n3)); t3.trigger.type === 2 && ((n2 = this._progressService) === null || n2 === void 0 || n2.showWhile(i2, 250)), this.setState(new Ht.Triggered(t3.trigger, t3.selection, t3.position, i2)); }, void 0), this._codeActionOracle.value.trigger({type: 1}); } else @@ -58568,36 +58568,36 @@ ${Object(zn.b)(wi)} } } var $t = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Kt = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Gt = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -58609,8 +58609,8 @@ ${Object(zn.b)(wi)} } const Zt = {type: "object", defaultSnippets: [{body: {kind: ""}}], properties: {kind: {type: "string", description: U.a("args.schema.kind", "Kind of the code action to run.")}, apply: {type: "string", description: U.a("args.schema.apply", "Controls when the returned actions are applied."), default: "ifSingle", enum: ["first", "ifSingle", "never"], enumDescriptions: [U.a("args.schema.apply.first", "Always apply the first returned code action."), U.a("args.schema.apply.ifSingle", "Apply the first returned code action if it is the only one."), U.a("args.schema.apply.never", "Do not apply the returned code actions.")]}, preferred: {type: "boolean", default: false, description: U.a("args.schema.preferred", "Controls if only preferred code actions should be returned.")}}}; let Xt = class e2 extends pe.a { - constructor(e3, t2, n2, i2, o2) { - super(), this._instantiationService = o2, this._editor = e3, this._model = this._register(new qt(this._editor, t2, n2, i2)), this._register(this._model.onDidChangeState((e4) => this.update(e4))), this._ui = new Ge(() => this._register(new Pt(e3, en.Id, an.Id, {applyCodeAction: (e4, t3) => Gt(this, void 0, void 0, function* () { + constructor(e3, t2, n2, i2, r2) { + super(), this._instantiationService = r2, this._editor = e3, this._model = this._register(new qt(this._editor, t2, n2, i2)), this._register(this._model.onDidChangeState((e4) => this.update(e4))), this._ui = new Ge(() => this._register(new Pt(e3, en.Id, an.Id, {applyCodeAction: (e4, t3) => Gt(this, void 0, void 0, function* () { try { yield this._applyCodeAction(e4); } finally { @@ -58643,10 +58643,10 @@ ${Object(zn.b)(wi)} }; function Qt(e2, t2, n2) { return Gt(this, void 0, void 0, function* () { - const i2 = e2.get(Ze.a), o2 = e2.get(Ft.b), r2 = e2.get(Bt.a), s2 = e2.get(zt.a); - if (r2.publicLog2("codeAction.applyCodeAction", {codeActionTitle: t2.title, codeActionKind: t2.kind, codeActionIsPreferred: !!t2.isPreferred}), t2.edit && (yield i2.apply(Ze.b.convert(t2.edit), {editor: n2, label: t2.title})), t2.command) + const i2 = e2.get(Ze.a), r2 = e2.get(Ft.b), o2 = e2.get(Bt.a), s2 = e2.get(zt.a); + if (o2.publicLog2("codeAction.applyCodeAction", {codeActionTitle: t2.title, codeActionKind: t2.kind, codeActionIsPreferred: !!t2.isPreferred}), t2.edit && (yield i2.apply(Ze.b.convert(t2.edit), {editor: n2, label: t2.title})), t2.command) try { - yield o2.executeCommand(t2.command.id, ...t2.command.arguments || []); + yield r2.executeCommand(t2.command.id, ...t2.command.arguments || []); } catch (e3) { const t3 = function(e4) { return typeof e4 == "string" ? e4 : e4 instanceof Error && typeof e4.message == "string" ? e4.message : void 0; @@ -58657,11 +58657,11 @@ ${Object(zn.b)(wi)} } function Jt(e2, t2, n2, i2) { if (e2.hasModel()) { - const o2 = Xt.get(e2); - o2 && o2.manualTriggerAtCurrentPosition(t2, n2, i2); + const r2 = Xt.get(e2); + r2 && r2.manualTriggerAtCurrentPosition(t2, n2, i2); } } - Xt.ID = "editor.contrib.quickFixController", Xt = $t([Kt(1, Wt.b), Kt(2, K.b), Kt(3, rt.a), Kt(4, gt.a)], Xt); + Xt.ID = "editor.contrib.quickFixController", Xt = $t([Kt(1, Wt.b), Kt(2, K.b), Kt(3, ot.a), Kt(4, gt.a)], Xt); class en extends V.b { constructor() { super({id: en.Id, label: U.a("quickfix.trigger.label", "Quick Fix..."), alias: "Quick Fix...", precondition: K.a.and(H.a.writable, H.a.hasCodeActionsProvider), kbOpts: {kbExpr: H.a.editorTextFocus, primary: 2132, weight: 100}}); @@ -58676,7 +58676,7 @@ ${Object(zn.b)(wi)} super({id: "editor.action.codeAction", precondition: K.a.and(H.a.writable, H.a.hasCodeActionsProvider), description: {description: "Trigger a code action", args: [{name: "args", schema: Zt}]}}); } runEditorCommand(e2, t2, n2) { - const i2 = ot.fromUser(n2, {kind: nt.Empty, apply: "ifSingle"}); + const i2 = rt.fromUser(n2, {kind: nt.Empty, apply: "ifSingle"}); return Jt(t2, typeof (n2 == null ? void 0 : n2.kind) == "string" ? i2.preferred ? U.a("editor.action.codeAction.noneMessage.preferred.kind", "No preferred code actions for '{0}' available", n2.kind) : U.a("editor.action.codeAction.noneMessage.kind", "No code actions for '{0}' available", n2.kind) : i2.preferred ? U.a("editor.action.codeAction.noneMessage.preferred", "No preferred code actions available") : U.a("editor.action.codeAction.noneMessage", "No code actions available"), {include: i2.kind, includeSourceActions: true, onlyIncludePreferredActions: i2.preferred}, i2.apply); } } @@ -58685,20 +58685,20 @@ ${Object(zn.b)(wi)} super({id: "editor.action.refactor", label: U.a("refactor.label", "Refactor..."), alias: "Refactor...", precondition: K.a.and(H.a.writable, H.a.hasCodeActionsProvider), kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3120, mac: {primary: 1328}, weight: 100}, contextMenuOpts: {group: "1_modification", order: 2, when: K.a.and(H.a.writable, Yt(nt.Refactor))}, description: {description: "Refactor...", args: [{name: "args", schema: Zt}]}}); } run(e2, t2, n2) { - const i2 = ot.fromUser(n2, {kind: nt.Refactor, apply: "never"}); + const i2 = rt.fromUser(n2, {kind: nt.Refactor, apply: "never"}); return Jt(t2, typeof (n2 == null ? void 0 : n2.kind) == "string" ? i2.preferred ? U.a("editor.action.refactor.noneMessage.preferred.kind", "No preferred refactorings for '{0}' available", n2.kind) : U.a("editor.action.refactor.noneMessage.kind", "No refactorings for '{0}' available", n2.kind) : i2.preferred ? U.a("editor.action.refactor.noneMessage.preferred", "No preferred refactorings available") : U.a("editor.action.refactor.noneMessage", "No refactorings available"), {include: nt.Refactor.contains(i2.kind) ? i2.kind : nt.None, onlyIncludePreferredActions: i2.preferred}, i2.apply); } } - class on extends V.b { + class rn extends V.b { constructor() { super({id: "editor.action.sourceAction", label: U.a("source.label", "Source Action..."), alias: "Source Action...", precondition: K.a.and(H.a.writable, H.a.hasCodeActionsProvider), contextMenuOpts: {group: "1_modification", order: 2.1, when: K.a.and(H.a.writable, Yt(nt.Source))}, description: {description: "Source Action...", args: [{name: "args", schema: Zt}]}}); } run(e2, t2, n2) { - const i2 = ot.fromUser(n2, {kind: nt.Source, apply: "never"}); + const i2 = rt.fromUser(n2, {kind: nt.Source, apply: "never"}); return Jt(t2, typeof (n2 == null ? void 0 : n2.kind) == "string" ? i2.preferred ? U.a("editor.action.source.noneMessage.preferred.kind", "No preferred source actions for '{0}' available", n2.kind) : U.a("editor.action.source.noneMessage.kind", "No source actions for '{0}' available", n2.kind) : i2.preferred ? U.a("editor.action.source.noneMessage.preferred", "No preferred source actions available") : U.a("editor.action.source.noneMessage", "No source actions available"), {include: nt.Source.contains(i2.kind) ? i2.kind : nt.None, includeSourceActions: true, onlyIncludePreferredActions: i2.preferred}, i2.apply); } } - class rn extends V.b { + class on extends V.b { constructor() { super({id: "editor.action.organizeImports", label: U.a("organizeImports.label", "Organize Imports"), alias: "Organize Imports", precondition: K.a.and(H.a.writable, Yt(nt.SourceOrganizeImports)), kbOpts: {kbExpr: H.a.editorTextFocus, primary: 1581, weight: 100}}); } @@ -58722,7 +58722,7 @@ ${Object(zn.b)(wi)} return Jt(t2, U.a("editor.action.autoFix.noneMessage", "No auto fixes available"), {include: nt.QuickFix, onlyIncludePreferredActions: true}, "ifSingle"); } } - an.Id = "editor.action.autoFix", Object(V.m)(Xt.ID, Xt), Object(V.k)(en), Object(V.k)(nn), Object(V.k)(on), Object(V.k)(rn), Object(V.k)(an), Object(V.k)(sn), Object(V.l)(new tn()); + an.Id = "editor.action.autoFix", Object(V.m)(Xt.ID, Xt), Object(V.k)(en), Object(V.k)(nn), Object(V.k)(rn), Object(V.k)(on), Object(V.k)(an), Object(V.k)(sn), Object(V.l)(new tn()); class ln { constructor() { this.lenses = [], this._disposables = new pe.b(); @@ -58737,24 +58737,24 @@ ${Object(zn.b)(wi)} } } function cn(e2, t2) { - const n2 = et.b.ordered(e2), i2 = new Map(), o2 = new ln(), r2 = n2.map((n3, r3) => (i2.set(n3, r3), Promise.resolve(n3.provideCodeLenses(e2, t2)).then((e3) => e3 && o2.add(e3, n3)).catch(Z.f))); - return Promise.all(r2).then(() => (o2.lenses = Object(G.p)(o2.lenses, (e3, t3) => e3.symbol.range.startLineNumber < t3.symbol.range.startLineNumber ? -1 : e3.symbol.range.startLineNumber > t3.symbol.range.startLineNumber ? 1 : i2.get(e3.provider) < i2.get(t3.provider) ? -1 : i2.get(e3.provider) > i2.get(t3.provider) ? 1 : e3.symbol.range.startColumn < t3.symbol.range.startColumn ? -1 : e3.symbol.range.startColumn > t3.symbol.range.startColumn ? 1 : 0), o2)); + const n2 = et.b.ordered(e2), i2 = new Map(), r2 = new ln(), o2 = n2.map((n3, o3) => (i2.set(n3, o3), Promise.resolve(n3.provideCodeLenses(e2, t2)).then((e3) => e3 && r2.add(e3, n3)).catch(Z.f))); + return Promise.all(o2).then(() => (r2.lenses = Object(G.p)(r2.lenses, (e3, t3) => e3.symbol.range.startLineNumber < t3.symbol.range.startLineNumber ? -1 : e3.symbol.range.startLineNumber > t3.symbol.range.startLineNumber ? 1 : i2.get(e3.provider) < i2.get(t3.provider) ? -1 : i2.get(e3.provider) > i2.get(t3.provider) ? 1 : e3.symbol.range.startColumn < t3.symbol.range.startColumn ? -1 : e3.symbol.range.startColumn > t3.symbol.range.startColumn ? 1 : 0), r2)); } Object(V.o)("_executeCodeLensProvider", function(e2, t2) { let {resource: n2, itemResolveCount: i2} = t2; if (!(n2 instanceof Qe.a)) throw Object(Z.b)(); - const o2 = e2.get(tt.a).getModel(n2); - if (!o2) + const r2 = e2.get(tt.a).getModel(n2); + if (!r2) throw Object(Z.b)(); - const r2 = [], s2 = new pe.b(); - return cn(o2, Xe.a.None).then((e3) => { + const o2 = [], s2 = new pe.b(); + return cn(r2, Xe.a.None).then((e3) => { s2.add(e3); let t3 = []; for (const n3 of e3.lenses) - i2 === void 0 || Boolean(n3.symbol.command) ? r2.push(n3.symbol) : i2-- > 0 && n3.provider.resolveCodeLens && t3.push(Promise.resolve(n3.provider.resolveCodeLens(o2, n3.symbol, Xe.a.None)).then((e4) => r2.push(e4 || n3.symbol))); + i2 === void 0 || Boolean(n3.symbol.command) ? o2.push(n3.symbol) : i2-- > 0 && n3.provider.resolveCodeLens && t3.push(Promise.resolve(n3.provider.resolveCodeLens(r2, n3.symbol, Xe.a.None)).then((e4) => o2.push(e4 || n3.symbol))); return Promise.all(t3); - }).then(() => r2).finally(() => { + }).then(() => o2).finally(() => { setTimeout(() => s2.dispose(), 100); }); }); @@ -58775,10 +58775,10 @@ ${Object(zn.b)(wi)} this._commands.clear(); let n2 = "", i2 = false; for (let t3 = 0; t3 < e2.length; t3++) { - const o2 = e2[t3]; - if (o2 && (i2 = true, o2.command)) { - const i3 = Object(Y.f)(Object(Ye.u)(o2.command.title)); - o2.command.id ? (n2 += `<a id=${t3}>${i3}</a>`, this._commands.set(String(t3), o2.command)) : n2 += `<span>${i3}</span>`, t3 + 1 < e2.length && (n2 += "<span> | </span>"); + const r2 = e2[t3]; + if (r2 && (i2 = true, r2.command)) { + const i3 = Object(Y.f)(Object(Ye.u)(r2.command.title)); + r2.command.id ? (n2 += `<a id=${t3}>${i3}</a>`, this._commands.set(String(t3), r2.command)) : n2 += `<span>${i3}</span>`, t3 + 1 < e2.length && (n2 += "<span> | </span>"); } } i2 ? (n2 || (n2 = "\xA0"), this._domNode.innerHTML = n2, this._isEmpty && t2 && this._domNode.classList.add("fadein"), this._isEmpty = false) : this._domNode.innerHTML = "<span>no commands</span>"; @@ -58818,13 +58818,13 @@ ${Object(zn.b)(wi)} } } class pn { - constructor(e2, t2, n2, i2, o2, r2) { + constructor(e2, t2, n2, i2, r2, o2) { let s2; this._isDisposed = false, this._editor = t2, this._className = n2, this._data = e2, this._decorationIds = []; let a2 = []; this._data.forEach((e3, t3) => { e3.symbol.command && a2.push(e3.symbol), i2.addDecoration({range: e3.symbol.range, options: be.a.EMPTY}, (e4) => this._decorationIds[t3] = e4), s2 = s2 ? ge.a.plusRange(s2, e3.symbol.range) : ge.a.lift(e3.symbol.range); - }), this._viewZone = new dn(s2.startLineNumber - 1, r2), this._viewZoneId = o2.addZone(this._viewZone), a2.length > 0 && (this._createContentWidgetIfNecessary(), this._contentWidget.withCommands(a2, false)); + }), this._viewZone = new dn(s2.startLineNumber - 1, o2), this._viewZoneId = r2.addZone(this._viewZone), a2.length > 0 && (this._createContentWidgetIfNecessary(), this._contentWidget.withCommands(a2, false)); } _createContentWidgetIfNecessary() { this._contentWidget || (this._contentWidget = new hn(this._editor, this._className, this._viewZone.afterLineNumber + 1), this._editor.addContentWidget(this._contentWidget)); @@ -58890,13 +58890,13 @@ ${Object(zn.b)(wi)} i2 && (t2.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${i2} !important; }`), t2.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${i2} !important; }`)); }); var mn = n(115), gn = n(78), fn = n(97), bn = n(133), _n = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, vn = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -58928,8 +58928,8 @@ ${Object(zn.b)(wi)} }), i2 = new ln(); i2.add({lenses: n2, dispose: () => { }}, this._fakeProvider); - const o2 = new yn(e2.getLineCount(), i2); - this._cache.set(e2.uri.toString(), o2); + const r2 = new yn(e2.getLineCount(), i2); + this._cache.set(e2.uri.toString(), r2); } get(e2) { const t2 = this._cache.get(e2.uri.toString()); @@ -58955,9 +58955,9 @@ ${Object(zn.b)(wi)} const n2 = t2[e3], i2 = []; for (const e4 of n2.lines) i2.push({range: new ge.a(e4, 1, e4, 11)}); - const o2 = new ln(); - o2.add({lenses: i2, dispose() { - }}, this._fakeProvider), this._cache.set(e3, new yn(n2.lineCount, o2)); + const r2 = new ln(); + r2.add({lenses: i2, dispose() { + }}, this._fakeProvider), this._cache.set(e3, new yn(n2.lineCount, r2)); } } catch (e3) { } @@ -58965,36 +58965,36 @@ ${Object(zn.b)(wi)} }; Cn = _n([vn(0, fn.a)], Cn), Object(mn.b)(wn, Cn); var xn = n(89), Sn = n(110), kn = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, En = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Tn = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -59014,11 +59014,11 @@ ${Object(zn.b)(wi)} this._localDispose(), this._globalToDispose.dispose(), this._oldCodeLensModels.dispose(), Object(pe.f)(this._currentCodeLensModel); } _updateLensStyle() { - const e2 = this._editor.getOptions(), t2 = e2.get(36), n2 = e2.get(51), i2 = Math.round(1.1 * n2), o2 = Math.round(0.9 * t2.fontSize), r2 = ` - .monaco-editor .codelens-decoration.${this._styleClassName} { height: ${i2}px; line-height: ${n2}px; font-size: ${o2}px; padding-right: ${Math.round(0.45 * t2.fontSize)}px;} - .monaco-editor .codelens-decoration.${this._styleClassName} > a > .codicon { line-height: ${n2}px; font-size: ${o2}px; } + const e2 = this._editor.getOptions(), t2 = e2.get(36), n2 = e2.get(51), i2 = Math.round(1.1 * n2), r2 = Math.round(0.9 * t2.fontSize), o2 = ` + .monaco-editor .codelens-decoration.${this._styleClassName} { height: ${i2}px; line-height: ${n2}px; font-size: ${r2}px; padding-right: ${Math.round(0.45 * t2.fontSize)}px;} + .monaco-editor .codelens-decoration.${this._styleClassName} > a > .codicon { line-height: ${n2}px; font-size: ${r2}px; } `; - this._styleElement.textContent = r2; + this._styleElement.textContent = o2; } _localDispose() { this._currentFindCodeLensSymbolsPromise && (this._currentFindCodeLensSymbolsPromise.cancel(), this._currentFindCodeLensSymbolsPromise = void 0, this._modelChangeCounter++), this._currentResolveCodeLensSymbolsPromise && (this._currentResolveCodeLensSymbolsPromise.cancel(), this._currentResolveCodeLensSymbolsPromise = void 0), this._localToDispose.clear(), this._oldCodeLensModels.clear(), Object(pe.f)(this._currentCodeLensModel); @@ -59054,10 +59054,10 @@ ${Object(zn.b)(wi)} this._lenses.forEach((e4) => { e4.isValid() && i3 !== e4.getLineNumber() ? (e4.update(t3), i3 = e4.getLineNumber()) : n3.push(e4); }); - let o2 = new un(); + let r2 = new un(); n3.forEach((e4) => { - e4.dispose(o2, t3), this._lenses.splice(this._lenses.indexOf(e4), 1); - }), o2.commit(e3); + e4.dispose(r2, t3), this._lenses.splice(this._lenses.indexOf(e4), 1); + }), r2.commit(e3); }); }), n2.schedule(), i2.schedule(); })), this._localToDispose.add(this._editor.onDidScrollChange((e3) => { @@ -59098,26 +59098,26 @@ ${Object(zn.b)(wi)} if (!this._editor.hasModel()) return; let t2, n2 = this._editor.getModel().getLineCount(), i2 = []; - for (let o3 of e2.lenses) { - let e3 = o3.symbol.range.startLineNumber; - e3 < 1 || e3 > n2 || (t2 && t2[t2.length - 1].symbol.range.startLineNumber === e3 ? t2.push(o3) : (t2 = [o3], i2.push(t2))); + for (let r3 of e2.lenses) { + let e3 = r3.symbol.range.startLineNumber; + e3 < 1 || e3 > n2 || (t2 && t2[t2.length - 1].symbol.range.startLineNumber === e3 ? t2.push(r3) : (t2 = [r3], i2.push(t2))); } - const o2 = Je.c.capture(this._editor); + const r2 = Je.c.capture(this._editor); this._editor.changeDecorations((e3) => { this._editor.changeViewZones((t3) => { const n3 = new un(); - let o3 = 0, r2 = 0; - for (; r2 < i2.length && o3 < this._lenses.length; ) { - let e4 = i2[r2][0].symbol.range.startLineNumber, s2 = this._lenses[o3].getLineNumber(); - s2 < e4 ? (this._lenses[o3].dispose(n3, t3), this._lenses.splice(o3, 1)) : s2 === e4 ? (this._lenses[o3].updateCodeLensSymbols(i2[r2], n3), r2++, o3++) : (this._lenses.splice(o3, 0, new pn(i2[r2], this._editor, this._styleClassName, n3, t3, () => this._detectVisibleLenses && this._detectVisibleLenses.schedule())), o3++, r2++); + let r3 = 0, o2 = 0; + for (; o2 < i2.length && r3 < this._lenses.length; ) { + let e4 = i2[o2][0].symbol.range.startLineNumber, s2 = this._lenses[r3].getLineNumber(); + s2 < e4 ? (this._lenses[r3].dispose(n3, t3), this._lenses.splice(r3, 1)) : s2 === e4 ? (this._lenses[r3].updateCodeLensSymbols(i2[o2], n3), o2++, r3++) : (this._lenses.splice(r3, 0, new pn(i2[o2], this._editor, this._styleClassName, n3, t3, () => this._detectVisibleLenses && this._detectVisibleLenses.schedule())), r3++, o2++); } - for (; o3 < this._lenses.length; ) - this._lenses[o3].dispose(n3, t3), this._lenses.splice(o3, 1); - for (; r2 < i2.length; ) - this._lenses.push(new pn(i2[r2], this._editor, this._styleClassName, n3, t3, () => this._detectVisibleLenses && this._detectVisibleLenses.schedule())), r2++; + for (; r3 < this._lenses.length; ) + this._lenses[r3].dispose(n3, t3), this._lenses.splice(r3, 1); + for (; o2 < i2.length; ) + this._lenses.push(new pn(i2[o2], this._editor, this._styleClassName, n3, t3, () => this._detectVisibleLenses && this._detectVisibleLenses.schedule())), o2++; n3.commit(e3); }); - }), o2.restore(this._editor); + }), r2.restore(this._editor); } _onViewportChanged() { this._currentResolveCodeLensSymbolsPromise && (this._currentResolveCodeLensSymbolsPromise.cancel(), this._currentResolveCodeLensSymbolsPromise = void 0); @@ -59126,20 +59126,20 @@ ${Object(zn.b)(wi)} return; const t2 = [], n2 = []; if (this._lenses.forEach((i3) => { - const o2 = i3.computeIfNecessary(e2); - o2 && (t2.push(o2), n2.push(i3)); + const r2 = i3.computeIfNecessary(e2); + r2 && (t2.push(r2), n2.push(i3)); }), t2.length === 0) return; const i2 = Object(ue.f)((i3) => { - const o2 = t2.map((t3, o3) => { - const r2 = new Array(t3.length), s2 = t3.map((t4, n3) => t4.symbol.command || typeof t4.provider.resolveCodeLens != "function" ? (r2[n3] = t4.symbol, Promise.resolve(void 0)) : Promise.resolve(t4.provider.resolveCodeLens(e2, t4.symbol, i3)).then((e3) => { - r2[n3] = e3; + const r2 = t2.map((t3, r3) => { + const o2 = new Array(t3.length), s2 = t3.map((t4, n3) => t4.symbol.command || typeof t4.provider.resolveCodeLens != "function" ? (o2[n3] = t4.symbol, Promise.resolve(void 0)) : Promise.resolve(t4.provider.resolveCodeLens(e2, t4.symbol, i3)).then((e3) => { + o2[n3] = e3; }, Z.f)); return Promise.all(s2).then(() => { - i3.isCancellationRequested || n2[o3].isDisposed() || n2[o3].updateCommands(r2); + i3.isCancellationRequested || n2[r3].isDisposed() || n2[r3].updateCommands(o2); }); }); - return Promise.all(o2); + return Promise.all(r2); }); this._currentResolveCodeLensSymbolsPromise = i2, this._currentResolveCodeLensSymbolsPromise.then(() => { this._currentCodeLensModel && this._codeLensCache.put(e2, this._currentCodeLensModel), this._oldCodeLensModels.clear(), i2 === this._currentResolveCodeLensSymbolsPromise && (this._currentResolveCodeLensSymbolsPromise = void 0); @@ -59159,9 +59159,9 @@ ${Object(zn.b)(wi)} return Tn(this, void 0, void 0, function* () { if (!t2.hasModel()) return; - const n2 = e2.get(Sn.a), i2 = e2.get(Ft.b), o2 = e2.get(zt.a), r2 = t2.getSelection().positionLineNumber, s2 = t2.getContribution(Ln.ID), a2 = []; + const n2 = e2.get(Sn.a), i2 = e2.get(Ft.b), r2 = e2.get(zt.a), o2 = t2.getSelection().positionLineNumber, s2 = t2.getContribution(Ln.ID), a2 = []; for (let e3 of s2.getLenses()) - if (e3.getLineNumber() === r2) + if (e3.getLineNumber() === o2) for (let t3 of e3.getItems()) { const {command: e4} = t3.symbol; e4 && a2.push({label: e4.title, command: e4}); @@ -59173,12 +59173,12 @@ ${Object(zn.b)(wi)} try { yield i2.executeCommand(l2.command.id, ...l2.command.arguments || []); } catch (e3) { - o2.error(e3); + r2.error(e3); } }); } }); - var Nn = n(16); + var Nn = n(15); function In(e2, t2, n2, i2) { return Promise.resolve(n2.provideColorPresentations(e2, t2, i2)); } @@ -59189,32 +59189,32 @@ ${Object(zn.b)(wi)} const i2 = e2.get(tt.a).getModel(n2); if (!i2) throw Object(Z.b)(); - const o2 = [], r2 = et.c.ordered(i2).reverse().map((e3) => Promise.resolve(e3.provideDocumentColors(i2, Xe.a.None)).then((e4) => { + const r2 = [], o2 = et.c.ordered(i2).reverse().map((e3) => Promise.resolve(e3.provideDocumentColors(i2, Xe.a.None)).then((e4) => { if (Array.isArray(e4)) for (let t3 of e4) - o2.push({range: t3.range, color: [t3.color.red, t3.color.green, t3.color.blue, t3.color.alpha]}); + r2.push({range: t3.range, color: [t3.color.red, t3.color.green, t3.color.blue, t3.color.alpha]}); })); - return Promise.all(r2).then(() => o2); + return Promise.all(o2).then(() => r2); }), Object(V.o)("_executeColorPresentationProvider", function(e2, t2) { - const {resource: n2, color: i2, range: o2} = t2; - if (!(n2 instanceof Qe.a && Array.isArray(i2) && i2.length === 4 && ge.a.isIRange(o2))) + const {resource: n2, color: i2, range: r2} = t2; + if (!(n2 instanceof Qe.a && Array.isArray(i2) && i2.length === 4 && ge.a.isIRange(r2))) throw Object(Z.b)(); - const [r2, s2, a2, l2] = i2, c2 = e2.get(tt.a).getModel(n2); + const [o2, s2, a2, l2] = i2, c2 = e2.get(tt.a).getModel(n2); if (!c2) throw Object(Z.b)(); - const d2 = {range: o2, color: {red: r2, green: s2, blue: a2, alpha: l2}}, h2 = [], u2 = et.c.ordered(c2).reverse().map((e3) => Promise.resolve(e3.provideColorPresentations(c2, d2, Xe.a.None)).then((e4) => { + const d2 = {range: r2, color: {red: o2, green: s2, blue: a2, alpha: l2}}, h2 = [], u2 = et.c.ordered(c2).reverse().map((e3) => Promise.resolve(e3.provideColorPresentations(c2, d2, Xe.a.None)).then((e4) => { Array.isArray(e4) && h2.push(...e4); })); return Promise.all(u2).then(() => h2); }); - var On = n(54), Dn = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Dn = n(54), On = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, An = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -59282,7 +59282,7 @@ ${Object(zn.b)(wi)} updateColorDecorators(e3) { let t2 = [], n2 = {}; for (let i2 = 0; i2 < e3.length && t2.length < 500; i2++) { - const {red: o2, green: r2, blue: s2, alpha: a2} = e3[i2].colorInfo.color, l2 = new Nn.c(Math.round(255 * o2), Math.round(255 * r2), Math.round(255 * s2), a2); + const {red: r2, green: o2, blue: s2, alpha: a2} = e3[i2].colorInfo.color, l2 = new Nn.c(Math.round(255 * r2), Math.round(255 * o2), Math.round(255 * s2), a2); let c2 = Object(xn.b)(`rgba(${l2.r},${l2.g},${l2.b},${l2.a})`).toString(16), d2 = `rgba(${l2.r}, ${l2.g}, ${l2.b}, ${l2.a})`, h2 = "colorBox-" + c2; this._decorationsTypes.has(h2) || n2[h2] || this._codeEditorService.registerDecorationType(h2, {before: {contentText: " ", border: "solid 0.1em #000", margin: "0.1em 0.2em 0 0.2em", width: "0.8em", height: "0.8em", backgroundColor: d2}, dark: {before: {border: "solid 0.1em #eee"}}}, void 0, this._editor), n2[h2] = true, t2.push({range: {startLineNumber: e3[i2].colorInfo.range.startLineNumber, startColumn: e3[i2].colorInfo.range.startColumn, endLineNumber: e3[i2].colorInfo.range.endLineNumber, endColumn: e3[i2].colorInfo.range.endColumn}, options: this._codeEditorService.resolveDecorationOptions(h2, true)}); } @@ -59303,7 +59303,7 @@ ${Object(zn.b)(wi)} return n2.length === 0 ? null : this._colorDatas.get(n2[0].id); } }; - Rn.ID = "editor.contrib.colorDetector", Rn.RECOMPUTE_TIME = 1e3, Rn = Dn([An(1, Me.a), An(2, On.a)], Rn), Object(V.m)(Rn.ID, Rn); + Rn.ID = "editor.contrib.colorDetector", Rn.RECOMPUTE_TIME = 1e3, Rn = On([An(1, Me.a), An(2, Dn.a)], Rn), Object(V.m)(Rn.ID, Rn); var Mn = n(70), Pn = n(39); class Fn { constructor(e2, t2) { @@ -59315,15 +59315,15 @@ ${Object(zn.b)(wi)} const i2 = t2.length; if (n2 + i2 > e2.length) return false; - for (let o2 = 0; o2 < i2; o2++) { - const i3 = e2.charCodeAt(n2 + o2), r2 = t2.charCodeAt(o2); - if (i3 !== r2 && !(i3 >= 65 && i3 <= 90 && i3 + 32 === r2 || r2 >= 65 && r2 <= 90 && r2 + 32 === i3)) + for (let r2 = 0; r2 < i2; r2++) { + const i3 = e2.charCodeAt(n2 + r2), o2 = t2.charCodeAt(r2); + if (i3 !== o2 && !(i3 >= 65 && i3 <= 90 && i3 + 32 === o2 || o2 >= 65 && o2 <= 90 && o2 + 32 === i3)) return false; } return true; } - _createOperationsForBlockComment(e2, t2, n2, i2, o2, r2) { - const s2 = e2.startLineNumber, a2 = e2.startColumn, l2 = e2.endLineNumber, c2 = e2.endColumn, d2 = o2.getLineContent(s2), h2 = o2.getLineContent(l2); + _createOperationsForBlockComment(e2, t2, n2, i2, r2, o2) { + const s2 = e2.startLineNumber, a2 = e2.startColumn, l2 = e2.endLineNumber, c2 = e2.endColumn, d2 = r2.getLineContent(s2), h2 = r2.getLineContent(l2); let u2, p2 = d2.lastIndexOf(t2, a2 - 1 + t2.length), m2 = h2.indexOf(n2, c2 - 1 - n2.length); if (p2 !== -1 && m2 !== -1) if (s2 === l2) { @@ -59334,21 +59334,21 @@ ${Object(zn.b)(wi)} } p2 !== -1 && m2 !== -1 ? (i2 && p2 + t2.length < d2.length && d2.charCodeAt(p2 + t2.length) === 32 && (t2 += " "), i2 && m2 > 0 && h2.charCodeAt(m2 - 1) === 32 && (n2 = " " + n2, m2 -= 1), u2 = Fn._createRemoveBlockCommentOperations(new ge.a(s2, p2 + t2.length + 1, l2, m2 + 1), t2, n2)) : (u2 = Fn._createAddBlockCommentOperations(e2, t2, n2, this._insertSpace), this._usedEndToken = u2.length === 1 ? n2 : null); for (const e3 of u2) - r2.addTrackedEditOperation(e3.range, e3.text); + o2.addTrackedEditOperation(e3.range, e3.text); } static _createRemoveBlockCommentOperations(e2, t2, n2) { let i2 = []; return ge.a.isEmpty(e2) ? i2.push(Mn.a.delete(new ge.a(e2.startLineNumber, e2.startColumn - t2.length, e2.endLineNumber, e2.endColumn + n2.length))) : (i2.push(Mn.a.delete(new ge.a(e2.startLineNumber, e2.startColumn - t2.length, e2.startLineNumber, e2.startColumn))), i2.push(Mn.a.delete(new ge.a(e2.endLineNumber, e2.endColumn, e2.endLineNumber, e2.endColumn + n2.length)))), i2; } static _createAddBlockCommentOperations(e2, t2, n2, i2) { - let o2 = []; - return ge.a.isEmpty(e2) ? o2.push(Mn.a.replace(new ge.a(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn), t2 + " " + n2)) : (o2.push(Mn.a.insert(new me.a(e2.startLineNumber, e2.startColumn), t2 + (i2 ? " " : ""))), o2.push(Mn.a.insert(new me.a(e2.endLineNumber, e2.endColumn), (i2 ? " " : "") + n2))), o2; + let r2 = []; + return ge.a.isEmpty(e2) ? r2.push(Mn.a.replace(new ge.a(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn), t2 + " " + n2)) : (r2.push(Mn.a.insert(new me.a(e2.startLineNumber, e2.startColumn), t2 + (i2 ? " " : ""))), r2.push(Mn.a.insert(new me.a(e2.endLineNumber, e2.endColumn), (i2 ? " " : "") + n2))), r2; } getEditOperations(e2, t2) { const n2 = this._selection.startLineNumber, i2 = this._selection.startColumn; e2.tokenizeIfCheap(n2); - const o2 = e2.getLanguageIdAtPosition(n2, i2), r2 = Pn.a.getComments(o2); - r2 && r2.blockCommentStartToken && r2.blockCommentEndToken && this._createOperationsForBlockComment(this._selection, r2.blockCommentStartToken, r2.blockCommentEndToken, this._insertSpace, e2, t2); + const r2 = e2.getLanguageIdAtPosition(n2, i2), o2 = Pn.a.getComments(r2); + o2 && o2.blockCommentStartToken && o2.blockCommentEndToken && this._createOperationsForBlockComment(this._selection, o2.blockCommentStartToken, o2.blockCommentEndToken, this._insertSpace, e2, t2); } computeCursorState(e2, t2) { const n2 = t2.getInverseEditOperations(); @@ -59363,31 +59363,31 @@ ${Object(zn.b)(wi)} } } class Wn { - constructor(e2, t2, n2, i2, o2) { - this._selection = e2, this._tabSize = t2, this._type = n2, this._insertSpace = i2, this._selectionId = null, this._deltaColumn = 0, this._moveEndPositionDown = false, this._ignoreEmptyLines = o2; + constructor(e2, t2, n2, i2, r2) { + this._selection = e2, this._tabSize = t2, this._type = n2, this._insertSpace = i2, this._selectionId = null, this._deltaColumn = 0, this._moveEndPositionDown = false, this._ignoreEmptyLines = r2; } static _gatherPreflightCommentStrings(e2, t2, n2) { e2.tokenizeIfCheap(t2); - const i2 = e2.getLanguageIdAtPosition(t2, 1), o2 = Pn.a.getComments(i2), r2 = o2 ? o2.lineCommentToken : null; - if (!r2) + const i2 = e2.getLanguageIdAtPosition(t2, 1), r2 = Pn.a.getComments(i2), o2 = r2 ? r2.lineCommentToken : null; + if (!o2) return null; let s2 = []; for (let e3 = 0, i3 = n2 - t2 + 1; e3 < i3; e3++) - s2[e3] = {ignore: false, commentStr: r2, commentStrOffset: 0, commentStrLength: r2.length}; + s2[e3] = {ignore: false, commentStr: o2, commentStrOffset: 0, commentStrLength: o2.length}; return s2; } - static _analyzeLines(e2, t2, n2, i2, o2, r2) { + static _analyzeLines(e2, t2, n2, i2, r2, o2) { let s2, a2 = true; s2 = e2 === 0 || e2 !== 1; for (let l2 = 0, c2 = i2.length; l2 < c2; l2++) { - const c3 = i2[l2], d2 = o2 + l2, h2 = n2.getLineContent(d2), u2 = Ye.w(h2); + const c3 = i2[l2], d2 = r2 + l2, h2 = n2.getLineContent(d2), u2 = Ye.w(h2); if (u2 !== -1) { if (a2 = false, c3.ignore = false, c3.commentStrOffset = u2, s2 && !Fn._haystackHasNeedleAtOffset(h2, c3.commentStr, u2) && (e2 === 0 ? s2 = false : e2 === 1 || (c3.ignore = true)), s2 && t2) { const e3 = u2 + c3.commentStrLength; e3 < h2.length && h2.charCodeAt(e3) === 32 && (c3.commentStrLength += 1); } } else - c3.ignore = r2, c3.commentStrOffset = h2.length; + c3.ignore = o2, c3.commentStrOffset = h2.length; } if (e2 === 0 && a2) { s2 = false; @@ -59396,39 +59396,39 @@ ${Object(zn.b)(wi)} } return {supported: true, shouldRemoveComments: s2, lines: i2}; } - static _gatherPreflightData(e2, t2, n2, i2, o2, r2) { - const s2 = Wn._gatherPreflightCommentStrings(n2, i2, o2); - return s2 === null ? {supported: false} : Wn._analyzeLines(e2, t2, n2, s2, i2, r2); + static _gatherPreflightData(e2, t2, n2, i2, r2, o2) { + const s2 = Wn._gatherPreflightCommentStrings(n2, i2, r2); + return s2 === null ? {supported: false} : Wn._analyzeLines(e2, t2, n2, s2, i2, o2); } _executeLineComments(e2, t2, n2, i2) { - let o2; - n2.shouldRemoveComments ? o2 = Wn._createRemoveLineCommentsOperations(n2.lines, i2.startLineNumber) : (Wn._normalizeInsertionPoint(e2, n2.lines, i2.startLineNumber, this._tabSize), o2 = this._createAddLineCommentsOperations(n2.lines, i2.startLineNumber)); - const r2 = new me.a(i2.positionLineNumber, i2.positionColumn); - for (let n3 = 0, i3 = o2.length; n3 < i3; n3++) - if (t2.addEditOperation(o2[n3].range, o2[n3].text), ge.a.isEmpty(o2[n3].range) && ge.a.getStartPosition(o2[n3].range).equals(r2)) { - e2.getLineContent(r2.lineNumber).length + 1 === r2.column && (this._deltaColumn = (o2[n3].text || "").length); + let r2; + n2.shouldRemoveComments ? r2 = Wn._createRemoveLineCommentsOperations(n2.lines, i2.startLineNumber) : (Wn._normalizeInsertionPoint(e2, n2.lines, i2.startLineNumber, this._tabSize), r2 = this._createAddLineCommentsOperations(n2.lines, i2.startLineNumber)); + const o2 = new me.a(i2.positionLineNumber, i2.positionColumn); + for (let n3 = 0, i3 = r2.length; n3 < i3; n3++) + if (t2.addEditOperation(r2[n3].range, r2[n3].text), ge.a.isEmpty(r2[n3].range) && ge.a.getStartPosition(r2[n3].range).equals(o2)) { + e2.getLineContent(o2.lineNumber).length + 1 === o2.column && (this._deltaColumn = (r2[n3].text || "").length); } this._selectionId = t2.trackSelection(i2); } _attemptRemoveBlockComment(e2, t2, n2, i2) { - let o2 = t2.startLineNumber, r2 = t2.endLineNumber, s2 = i2.length + Math.max(e2.getLineFirstNonWhitespaceColumn(t2.startLineNumber), t2.startColumn), a2 = e2.getLineContent(o2).lastIndexOf(n2, s2 - 1), l2 = e2.getLineContent(r2).indexOf(i2, t2.endColumn - 1 - n2.length); - return a2 !== -1 && l2 === -1 && (l2 = e2.getLineContent(o2).indexOf(i2, a2 + n2.length), r2 = o2), a2 === -1 && l2 !== -1 && (a2 = e2.getLineContent(r2).lastIndexOf(n2, l2), o2 = r2), !t2.isEmpty() || a2 !== -1 && l2 !== -1 || (a2 = e2.getLineContent(o2).indexOf(n2), a2 !== -1 && (l2 = e2.getLineContent(o2).indexOf(i2, a2 + n2.length))), a2 !== -1 && e2.getLineContent(o2).charCodeAt(a2 + n2.length) === 32 && (n2 += " "), l2 !== -1 && e2.getLineContent(r2).charCodeAt(l2 - 1) === 32 && (i2 = " " + i2, l2 -= 1), a2 !== -1 && l2 !== -1 ? Fn._createRemoveBlockCommentOperations(new ge.a(o2, a2 + n2.length + 1, r2, l2 + 1), n2, i2) : null; + let r2 = t2.startLineNumber, o2 = t2.endLineNumber, s2 = i2.length + Math.max(e2.getLineFirstNonWhitespaceColumn(t2.startLineNumber), t2.startColumn), a2 = e2.getLineContent(r2).lastIndexOf(n2, s2 - 1), l2 = e2.getLineContent(o2).indexOf(i2, t2.endColumn - 1 - n2.length); + return a2 !== -1 && l2 === -1 && (l2 = e2.getLineContent(r2).indexOf(i2, a2 + n2.length), o2 = r2), a2 === -1 && l2 !== -1 && (a2 = e2.getLineContent(o2).lastIndexOf(n2, l2), r2 = o2), !t2.isEmpty() || a2 !== -1 && l2 !== -1 || (a2 = e2.getLineContent(r2).indexOf(n2), a2 !== -1 && (l2 = e2.getLineContent(r2).indexOf(i2, a2 + n2.length))), a2 !== -1 && e2.getLineContent(r2).charCodeAt(a2 + n2.length) === 32 && (n2 += " "), l2 !== -1 && e2.getLineContent(o2).charCodeAt(l2 - 1) === 32 && (i2 = " " + i2, l2 -= 1), a2 !== -1 && l2 !== -1 ? Fn._createRemoveBlockCommentOperations(new ge.a(r2, a2 + n2.length + 1, o2, l2 + 1), n2, i2) : null; } _executeBlockComment(e2, t2, n2) { e2.tokenizeIfCheap(n2.startLineNumber); - let i2 = e2.getLanguageIdAtPosition(n2.startLineNumber, 1), o2 = Pn.a.getComments(i2); - if (!o2 || !o2.blockCommentStartToken || !o2.blockCommentEndToken) + let i2 = e2.getLanguageIdAtPosition(n2.startLineNumber, 1), r2 = Pn.a.getComments(i2); + if (!r2 || !r2.blockCommentStartToken || !r2.blockCommentEndToken) return; - const r2 = o2.blockCommentStartToken, s2 = o2.blockCommentEndToken; - let a2 = this._attemptRemoveBlockComment(e2, n2, r2, s2); + const o2 = r2.blockCommentStartToken, s2 = r2.blockCommentEndToken; + let a2 = this._attemptRemoveBlockComment(e2, n2, o2, s2); if (!a2) { if (n2.isEmpty()) { const t3 = e2.getLineContent(n2.startLineNumber); let i3 = Ye.w(t3); - i3 === -1 && (i3 = t3.length), a2 = Fn._createAddBlockCommentOperations(new ge.a(n2.startLineNumber, i3 + 1, n2.startLineNumber, t3.length + 1), r2, s2, this._insertSpace); + i3 === -1 && (i3 = t3.length), a2 = Fn._createAddBlockCommentOperations(new ge.a(n2.startLineNumber, i3 + 1, n2.startLineNumber, t3.length + 1), o2, s2, this._insertSpace); } else - a2 = Fn._createAddBlockCommentOperations(new ge.a(n2.startLineNumber, e2.getLineFirstNonWhitespaceColumn(n2.startLineNumber), n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber)), r2, s2, this._insertSpace); - a2.length === 1 && (this._deltaColumn = r2.length + 1); + a2 = Fn._createAddBlockCommentOperations(new ge.a(n2.startLineNumber, e2.getLineFirstNonWhitespaceColumn(n2.startLineNumber), n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber)), o2, s2, this._insertSpace); + a2.length === 1 && (this._deltaColumn = o2.length + 1); } this._selectionId = t2.trackSelection(n2); for (const e3 of a2) @@ -59446,18 +59446,18 @@ ${Object(zn.b)(wi)} } static _createRemoveLineCommentsOperations(e2, t2) { let n2 = []; - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) { - const o3 = e2[i2]; - o3.ignore || n2.push(Mn.a.delete(new ge.a(t2 + i2, o3.commentStrOffset + 1, t2 + i2, o3.commentStrOffset + o3.commentStrLength + 1))); + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) { + const r3 = e2[i2]; + r3.ignore || n2.push(Mn.a.delete(new ge.a(t2 + i2, r3.commentStrOffset + 1, t2 + i2, r3.commentStrOffset + r3.commentStrLength + 1))); } return n2; } _createAddLineCommentsOperations(e2, t2) { let n2 = []; const i2 = this._insertSpace ? " " : ""; - for (let o2 = 0, r2 = e2.length; o2 < r2; o2++) { - const r3 = e2[o2]; - r3.ignore || n2.push(Mn.a.insert(new me.a(t2 + o2, r3.commentStrOffset + 1), r3.commentStr + i2)); + for (let r2 = 0, o2 = e2.length; r2 < o2; r2++) { + const o3 = e2[r2]; + o3.ignore || n2.push(Mn.a.insert(new me.a(t2 + r2, o3.commentStrOffset + 1), o3.commentStr + i2)); } return n2; } @@ -59465,14 +59465,14 @@ ${Object(zn.b)(wi)} return n2 ? e2 + (t2 - e2 % t2) : e2 + i2; } static _normalizeInsertionPoint(e2, t2, n2, i2) { - let o2, r2, s2 = 1073741824; - for (let o3 = 0, r3 = t2.length; o3 < r3; o3++) { - if (t2[o3].ignore) + let r2, o2, s2 = 1073741824; + for (let r3 = 0, o3 = t2.length; r3 < o3; r3++) { + if (t2[r3].ignore) continue; - const r4 = e2.getLineContent(n2 + o3); + const o4 = e2.getLineContent(n2 + r3); let a2 = 0; - for (let e3 = 0, n3 = t2[o3].commentStrOffset; a2 < s2 && e3 < n3; e3++) - a2 = Wn.nextVisibleColumn(a2, i2, r4.charCodeAt(e3) === 9, 1); + for (let e3 = 0, n3 = t2[r3].commentStrOffset; a2 < s2 && e3 < n3; e3++) + a2 = Wn.nextVisibleColumn(a2, i2, o4.charCodeAt(e3) === 9, 1); a2 < s2 && (s2 = a2); } s2 = Math.floor(s2 / i2) * i2; @@ -59481,9 +59481,9 @@ ${Object(zn.b)(wi)} continue; const l3 = e2.getLineContent(n2 + a2); let c2 = 0; - for (o2 = 0, r2 = t2[a2].commentStrOffset; c2 < s2 && o2 < r2; o2++) - c2 = Wn.nextVisibleColumn(c2, i2, l3.charCodeAt(o2) === 9, 1); - t2[a2].commentStrOffset = c2 > s2 ? o2 - 1 : o2; + for (r2 = 0, o2 = t2[a2].commentStrOffset; c2 < s2 && r2 < o2; r2++) + c2 = Wn.nextVisibleColumn(c2, i2, l3.charCodeAt(r2) === 9, 1); + t2[a2].commentStrOffset = c2 > s2 ? r2 - 1 : r2; } } } @@ -59494,9 +59494,9 @@ ${Object(zn.b)(wi)} run(e2, t2) { if (!t2.hasModel()) return; - const n2 = t2.getModel(), i2 = [], o2 = t2.getSelections(), r2 = n2.getOptions(), s2 = t2.getOption(14); - for (const e3 of o2) - i2.push(new Wn(e3, r2.tabSize, this._type, s2.insertSpace, s2.ignoreEmptyLines)); + const n2 = t2.getModel(), i2 = [], r2 = t2.getSelections(), o2 = n2.getOptions(), s2 = t2.getOption(14); + for (const e3 of r2) + i2.push(new Wn(e3, o2.tabSize, this._type, s2.insertSpace, s2.ignoreEmptyLines)); t2.pushUndoStop(), t2.executeCommands(this.id, i2), t2.pushUndoStop(); } } @@ -59507,8 +59507,8 @@ ${Object(zn.b)(wi)} run(e2, t2) { if (!t2.hasModel()) return; - const n2 = t2.getOption(14), i2 = [], o2 = t2.getSelections(); - for (const e3 of o2) + const n2 = t2.getOption(14), i2 = [], r2 = t2.getSelections(); + for (const e3 of r2) i2.push(new Fn(e3, n2.insertSpace)); t2.pushUndoStop(), t2.executeCommands(this.id, i2), t2.pushUndoStop(); } @@ -59527,21 +59527,21 @@ ${Object(zn.b)(wi)} } }), Object(V.k)(Bn); var jn = n(123), Vn = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Un = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; let Hn = class e2 { - constructor(e3, t2, n2, i2, o2, r2) { - this._contextMenuService = t2, this._contextViewService = n2, this._contextKeyService = i2, this._keybindingService = o2, this._menuService = r2, this._toDispose = new pe.b(), this._contextMenuIsBeingShownCount = 0, this._editor = e3, this._toDispose.add(this._editor.onContextMenu((e4) => this._onContextMenu(e4))), this._toDispose.add(this._editor.onMouseWheel((e4) => { + constructor(e3, t2, n2, i2, r2, o2) { + this._contextMenuService = t2, this._contextViewService = n2, this._contextKeyService = i2, this._keybindingService = r2, this._menuService = o2, this._toDispose = new pe.b(), this._contextMenuIsBeingShownCount = 0, this._editor = e3, this._toDispose.add(this._editor.onContextMenu((e4) => this._onContextMenu(e4))), this._toDispose.add(this._editor.onMouseWheel((e4) => { if (this._contextMenuIsBeingShownCount > 0) { const t3 = this._contextViewService.getContextViewElement(), n3 = e4.srcElement; n3.shadowRoot && ft.E(t3) === n3.shadowRoot || this._contextViewService.hideContextView(); @@ -59585,18 +59585,18 @@ ${Object(zn.b)(wi)} t2.length > 0 && this._doShowContextMenu(t2, e3); } _getMenuActions(e3, t2) { - const n2 = [], i2 = this._menuService.createMenu(t2, this._contextKeyService), o2 = i2.getActions({arg: e3.uri}); + const n2 = [], i2 = this._menuService.createMenu(t2, this._contextKeyService), r2 = i2.getActions({arg: e3.uri}); i2.dispose(); - for (let t3 of o2) { + for (let t3 of r2) { const [, i3] = t3; - let o3 = 0; + let r3 = 0; for (const t4 of i3) if (t4 instanceof ye.e) { const i4 = this._getMenuActions(e3, t4.item.submenu); - i4.length > 0 && (n2.push(new bt.d(t4.id, t4.label, i4)), o3++); + i4.length > 0 && (n2.push(new bt.d(t4.id, t4.label, i4)), r3++); } else - n2.push(t4), o3++; - o3 && n2.push(new bt.c()); + n2.push(t4), r3++; + r3 && n2.push(new bt.c()); } return n2.length && n2.pop(), n2; } @@ -59606,8 +59606,8 @@ ${Object(zn.b)(wi)} const n2 = this._editor.getOption(46); if (this._editor.updateOptions({hover: {enabled: false}}), !t2) { this._editor.revealPosition(this._editor.getPosition(), 1), this._editor.render(); - const e4 = this._editor.getScrolledVisiblePosition(this._editor.getPosition()), n3 = ft.C(this._editor.getDomNode()), i2 = n3.left + e4.left, o2 = n3.top + e4.top + e4.height; - t2 = {x: i2, y: o2}; + const e4 = this._editor.getScrolledVisiblePosition(this._editor.getPosition()), n3 = ft.C(this._editor.getDomNode()), i2 = n3.left + e4.left, r2 = n3.top + e4.top + e4.height; + t2 = {x: i2, y: r2}; } this._contextMenuIsBeingShownCount++, this._contextMenuService.showContextMenu({domForShadowRoot: this._editor.getDomNode(), getAnchor: () => t2, getActions: () => e3, getActionViewItem: (e4) => { const t3 = this._keybindingFor(e4); @@ -59756,8 +59756,8 @@ ${Object(zn.b)(wi)} if (e2.event.shiftKey) { let e3 = this._editor.getSelection(); if (e3) { - const {selectionStartLineNumber: i2, selectionStartColumn: o2} = e3; - n2 = [new q.a(i2, o2, t2.lineNumber, t2.column)]; + const {selectionStartLineNumber: i2, selectionStartColumn: r2} = e3; + n2 = [new q.a(i2, r2, t2.lineNumber, t2.column)]; } } else n2 = (this._editor.getSelections() || []).map((e3) => e3.containsPosition(t2) ? new q.a(t2.lineNumber, t2.column, t2.lineNumber, t2.column) : e3); @@ -59832,9 +59832,9 @@ ${Object(zn.b)(wi)} setCurrentFindMatch(e2) { let t2 = null, n2 = 0; if (e2) - for (let i2 = 0, o2 = this._decorations.length; i2 < o2; i2++) { - let o3 = this._editor.getModel().getDecorationRange(this._decorations[i2]); - if (e2.equalsRange(o3)) { + for (let i2 = 0, r2 = this._decorations.length; i2 < r2; i2++) { + let r3 = this._editor.getModel().getDecorationRange(this._decorations[i2]); + if (e2.equalsRange(r3)) { t2 = this._decorations[i2], n2 = i2 + 1; break; } @@ -59852,21 +59852,21 @@ ${Object(zn.b)(wi)} } set(e2, t2) { this._editor.changeDecorations((n2) => { - let i2 = ti._FIND_MATCH_DECORATION, o2 = []; + let i2 = ti._FIND_MATCH_DECORATION, r2 = []; if (e2.length > 1e3) { i2 = ti._FIND_MATCH_NO_OVERVIEW_DECORATION; - const t3 = this._editor.getModel().getLineCount(), n3 = this._editor.getLayoutInfo().height / t3, r3 = Math.max(2, Math.ceil(3 / n3)); + const t3 = this._editor.getModel().getLineCount(), n3 = this._editor.getLayoutInfo().height / t3, o3 = Math.max(2, Math.ceil(3 / n3)); let s2 = e2[0].range.startLineNumber, a2 = e2[0].range.endLineNumber; for (let t4 = 1, n4 = e2.length; t4 < n4; t4++) { const n5 = e2[t4].range; - a2 + r3 >= n5.startLineNumber ? n5.endLineNumber > a2 && (a2 = n5.endLineNumber) : (o2.push({range: new ge.a(s2, 1, a2, 1), options: ti._FIND_MATCH_ONLY_OVERVIEW_DECORATION}), s2 = n5.startLineNumber, a2 = n5.endLineNumber); + a2 + o3 >= n5.startLineNumber ? n5.endLineNumber > a2 && (a2 = n5.endLineNumber) : (r2.push({range: new ge.a(s2, 1, a2, 1), options: ti._FIND_MATCH_ONLY_OVERVIEW_DECORATION}), s2 = n5.startLineNumber, a2 = n5.endLineNumber); } - o2.push({range: new ge.a(s2, 1, a2, 1), options: ti._FIND_MATCH_ONLY_OVERVIEW_DECORATION}); + r2.push({range: new ge.a(s2, 1, a2, 1), options: ti._FIND_MATCH_ONLY_OVERVIEW_DECORATION}); } - let r2 = new Array(e2.length); + let o2 = new Array(e2.length); for (let t3 = 0, n3 = e2.length; t3 < n3; t3++) - r2[t3] = {range: e2[t3].range, options: i2}; - this._decorations = n2.deltaDecorations(this._decorations, r2), this._overviewRulerApproximateDecorations = n2.deltaDecorations(this._overviewRulerApproximateDecorations, o2), this._rangeHighlightDecorationId && (n2.removeDecoration(this._rangeHighlightDecorationId), this._rangeHighlightDecorationId = null), this._findScopeDecorationIds.length && (this._findScopeDecorationIds.forEach((e3) => n2.removeDecoration(e3)), this._findScopeDecorationIds = []), (t2 == null ? void 0 : t2.length) && (this._findScopeDecorationIds = t2.map((e3) => n2.addDecoration(e3, ti._FIND_SCOPE_DECORATION))); + o2[t3] = {range: e2[t3].range, options: i2}; + this._decorations = n2.deltaDecorations(this._decorations, o2), this._overviewRulerApproximateDecorations = n2.deltaDecorations(this._overviewRulerApproximateDecorations, r2), this._rangeHighlightDecorationId && (n2.removeDecoration(this._rangeHighlightDecorationId), this._rangeHighlightDecorationId = null), this._findScopeDecorationIds.length && (this._findScopeDecorationIds.forEach((e3) => n2.removeDecoration(e3)), this._findScopeDecorationIds = []), (t2 == null ? void 0 : t2.length) && (this._findScopeDecorationIds = t2.map((e3) => n2.addDecoration(e3, ti._FIND_SCOPE_DECORATION))); }); } matchBeforePosition(e2) { @@ -59928,20 +59928,20 @@ ${Object(zn.b)(wi)} } function ii(e2, t2) { if (e2 && e2[0] !== "") { - const n2 = oi(e2, t2, "-"), i2 = oi(e2, t2, "_"); - return n2 && !i2 ? ri(e2, t2, "-") : !n2 && i2 ? ri(e2, t2, "_") : e2[0].toUpperCase() === e2[0] ? t2.toUpperCase() : e2[0].toLowerCase() === e2[0] ? t2.toLowerCase() : Ye.o(e2[0][0]) && t2.length > 0 ? t2[0].toUpperCase() + t2.substr(1) : t2; + const n2 = ri(e2, t2, "-"), i2 = ri(e2, t2, "_"); + return n2 && !i2 ? oi(e2, t2, "-") : !n2 && i2 ? oi(e2, t2, "_") : e2[0].toUpperCase() === e2[0] ? t2.toUpperCase() : e2[0].toLowerCase() === e2[0] ? t2.toLowerCase() : Ye.o(e2[0][0]) && t2.length > 0 ? t2[0].toUpperCase() + t2.substr(1) : t2; } return t2; } - function oi(e2, t2, n2) { + function ri(e2, t2, n2) { return e2[0].indexOf(n2) !== -1 && t2.indexOf(n2) !== -1 && e2[0].split(n2).length === t2.split(n2).length; } - function ri(e2, t2, n2) { - const i2 = t2.split(n2), o2 = e2[0].split(n2); - let r2 = ""; + function oi(e2, t2, n2) { + const i2 = t2.split(n2), r2 = e2[0].split(n2); + let o2 = ""; return i2.forEach((e3, t3) => { - r2 += ii([o2[t3]], e3) + n2; - }), r2.slice(0, -1); + o2 += ii([r2[t3]], e3) + n2; + }), o2.slice(0, -1); } class si { constructor(e2) { @@ -59973,34 +59973,34 @@ ${Object(zn.b)(wi)} n2 += i3.staticValue; continue; } - let o2 = li._substitute(i3.matchIndex, e2); + let r2 = li._substitute(i3.matchIndex, e2); if (i3.caseOps !== null && i3.caseOps.length > 0) { let e3 = [], t4 = i3.caseOps.length, n3 = 0; - for (let r2 = 0, s2 = o2.length; r2 < s2; r2++) { + for (let o2 = 0, s2 = r2.length; o2 < s2; o2++) { if (n3 >= t4) { - e3.push(o2.slice(r2)); + e3.push(r2.slice(o2)); break; } switch (i3.caseOps[n3]) { case "U": - e3.push(o2[r2].toUpperCase()); + e3.push(r2[o2].toUpperCase()); break; case "u": - e3.push(o2[r2].toUpperCase()), n3++; + e3.push(r2[o2].toUpperCase()), n3++; break; case "L": - e3.push(o2[r2].toLowerCase()); + e3.push(r2[o2].toLowerCase()); break; case "l": - e3.push(o2[r2].toLowerCase()), n3++; + e3.push(r2[o2].toLowerCase()), n3++; break; default: - e3.push(o2[r2]); + e3.push(r2[o2]); } } - o2 = e3.join(""); + r2 = e3.join(""); } - n2 += o2; + n2 += r2; } return n2; } @@ -60050,7 +60050,7 @@ ${Object(zn.b)(wi)} return this.emitUnchanged(this._source.length), this._currentStaticPiece.length !== 0 && (this._result[this._resultLen++] = ci.staticValue(this._currentStaticPiece), this._currentStaticPiece = ""), new li(this._result); } } - const hi = new K.c("findWidgetVisible", false), ui = new K.c("findInputFocussed", false), pi = new K.c("replaceInputFocussed", false), mi = {primary: 545, mac: {primary: 2593}}, gi = {primary: 565, mac: {primary: 2613}}, fi = {primary: 560, mac: {primary: 2608}}, bi = {primary: 554, mac: {primary: 2602}}, _i = "actions.find", vi = "actions.findWithSelection", wi = "editor.action.nextMatchFindAction", yi = "editor.action.previousMatchFindAction", Ci = "editor.action.nextSelectionMatchFindAction", xi = "editor.action.previousSelectionMatchFindAction", Si = "editor.action.startFindReplaceAction", ki = "closeFindWidget", Ei = "toggleFindCaseSensitive", Ti = "toggleFindWholeWord", Li = "toggleFindRegex", Ni = "toggleFindInSelection", Ii = "editor.action.replaceOne", Oi = "editor.action.replaceAll", Di = "editor.action.selectAllMatches"; + const hi = new K.c("findWidgetVisible", false), ui = new K.c("findInputFocussed", false), pi = new K.c("replaceInputFocussed", false), mi = {primary: 545, mac: {primary: 2593}}, gi = {primary: 565, mac: {primary: 2613}}, fi = {primary: 560, mac: {primary: 2608}}, bi = {primary: 554, mac: {primary: 2602}}, _i = "actions.find", vi = "actions.findWithSelection", wi = "editor.action.nextMatchFindAction", yi = "editor.action.previousMatchFindAction", Ci = "editor.action.nextSelectionMatchFindAction", xi = "editor.action.previousSelectionMatchFindAction", Si = "editor.action.startFindReplaceAction", ki = "closeFindWidget", Ei = "toggleFindCaseSensitive", Ti = "toggleFindWholeWord", Li = "toggleFindRegex", Ni = "toggleFindInSelection", Ii = "editor.action.replaceOne", Di = "editor.action.replaceAll", Oi = "editor.action.selectAllMatches"; class Ai { constructor(e2, t2) { this._toDispose = new pe.b(), this._editor = e2, this._state = t2, this._isDisposed = false, this._startSearchingTimer = new ue.e(), this._decorations = new ti(e2), this._toDispose.add(this._decorations), this._updateDecorationsScheduler = new ue.d(() => this.research(false), 100), this._toDispose.add(this._updateDecorationsScheduler), this._toDispose.add(this._editor.onDidChangeCursorPosition((e3) => { @@ -60083,13 +60083,13 @@ ${Object(zn.b)(wi)} })); let i2 = this._findMatches(n2, false, 19999); this._decorations.set(i2, n2); - const o2 = this._editor.getSelection(); - let r2 = this._decorations.getCurrentMatchesPosition(o2); - if (r2 === 0 && i2.length > 0) { - const e3 = Object(G.h)(i2.map((e4) => e4.range), (e4) => ge.a.compareRangesUsingStarts(e4, o2) >= 0); - r2 = e3 > 0 ? e3 - 1 + 1 : r2; + const r2 = this._editor.getSelection(); + let o2 = this._decorations.getCurrentMatchesPosition(r2); + if (o2 === 0 && i2.length > 0) { + const e3 = Object(G.h)(i2.map((e4) => e4.range), (e4) => ge.a.compareRangesUsingStarts(e4, r2) >= 0); + o2 = e3 > 0 ? e3 - 1 + 1 : o2; } - this._state.changeMatchInfo(r2, this._decorations.getCount(), void 0), e2 && this._editor.getOption(29).cursorMoveOnType && this._moveToNextMatch(this._decorations.getStartPosition()); + this._state.changeMatchInfo(o2, this._decorations.getCount(), void 0), e2 && this._editor.getOption(29).cursorMoveOnType && this._moveToNextMatch(this._decorations.getStartPosition()); } _hasMatches() { return this._state.matchesCount > 0; @@ -60106,8 +60106,8 @@ ${Object(zn.b)(wi)} this._state.changeMatchInfo(t2, this._decorations.getCount(), e2), this._editor.setSelection(e2), this._editor.revealRangeInCenterIfOutsideViewport(e2, 0); } _prevSearchPosition(e2) { - let t2 = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0), {lineNumber: n2, column: i2} = e2, o2 = this._editor.getModel(); - return t2 || i2 === 1 ? (n2 === 1 ? n2 = o2.getLineCount() : n2--, i2 = o2.getLineMaxColumn(n2)) : i2--, new me.a(n2, i2); + let t2 = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0), {lineNumber: n2, column: i2} = e2, r2 = this._editor.getModel(); + return t2 || i2 === 1 ? (n2 === 1 ? n2 = r2.getLineCount() : n2--, i2 = r2.getLineMaxColumn(n2)) : i2--, new me.a(n2, i2); } _moveToPrevMatch(e2, t2 = false) { if (!this._state.canNavigateBack()) { @@ -60122,15 +60122,15 @@ ${Object(zn.b)(wi)} return; let n2 = this._decorations.getFindScope(), i2 = Ai._getSearchRange(this._editor.getModel(), n2); i2.getEndPosition().isBefore(e2) && (e2 = i2.getEndPosition()), e2.isBefore(i2.getStartPosition()) && (e2 = i2.getEndPosition()); - let {lineNumber: o2, column: r2} = e2, s2 = this._editor.getModel(), a2 = new me.a(o2, r2), l2 = s2.findPreviousMatch(this._state.searchString, a2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, false); + let {lineNumber: r2, column: o2} = e2, s2 = this._editor.getModel(), a2 = new me.a(r2, o2), l2 = s2.findPreviousMatch(this._state.searchString, a2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, false); return l2 && l2.range.isEmpty() && l2.range.getStartPosition().equals(a2) && (a2 = this._prevSearchPosition(a2), l2 = s2.findPreviousMatch(this._state.searchString, a2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, false)), l2 ? t2 || i2.containsRange(l2.range) ? void this._setCurrentFindMatch(l2.range) : this._moveToPrevMatch(l2.range.getStartPosition(), true) : void 0; } moveToPrevMatch() { this._moveToPrevMatch(this._editor.getSelection().getStartPosition()); } _nextSearchPosition(e2) { - let t2 = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0), {lineNumber: n2, column: i2} = e2, o2 = this._editor.getModel(); - return t2 || i2 === o2.getLineMaxColumn(n2) ? (n2 === o2.getLineCount() ? n2 = 1 : n2++, i2 = 1) : i2++, new me.a(n2, i2); + let t2 = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0), {lineNumber: n2, column: i2} = e2, r2 = this._editor.getModel(); + return t2 || i2 === r2.getLineMaxColumn(n2) ? (n2 === r2.getLineCount() ? n2 = 1 : n2++, i2 = 1) : i2++, new me.a(n2, i2); } _moveToNextMatch(e2) { if (!this._state.canNavigateForward()) { @@ -60147,10 +60147,10 @@ ${Object(zn.b)(wi)} _getNextMatch(e2, t2, n2, i2 = false) { if (this._cannotFind()) return null; - let o2 = this._decorations.getFindScope(), r2 = Ai._getSearchRange(this._editor.getModel(), o2); - r2.getEndPosition().isBefore(e2) && (e2 = r2.getStartPosition()), e2.isBefore(r2.getStartPosition()) && (e2 = r2.getStartPosition()); + let r2 = this._decorations.getFindScope(), o2 = Ai._getSearchRange(this._editor.getModel(), r2); + o2.getEndPosition().isBefore(e2) && (e2 = o2.getStartPosition()), e2.isBefore(o2.getStartPosition()) && (e2 = o2.getStartPosition()); let {lineNumber: s2, column: a2} = e2, l2 = this._editor.getModel(), c2 = new me.a(s2, a2), d2 = l2.findNextMatch(this._state.searchString, c2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, t2); - return n2 && d2 && d2.range.isEmpty() && d2.range.getStartPosition().equals(c2) && (c2 = this._nextSearchPosition(c2), d2 = l2.findNextMatch(this._state.searchString, c2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, t2)), d2 ? i2 || r2.containsRange(d2.range) ? d2 : this._getNextMatch(d2.range.getEndPosition(), t2, n2, true) : null; + return n2 && d2 && d2.range.isEmpty() && d2.range.getStartPosition().equals(c2) && (c2 = this._nextSearchPosition(c2), d2 = l2.findNextMatch(this._state.searchString, c2, this._state.isRegex, this._state.matchCase, this._state.wholeWord ? this._editor.getOption(105) : null, t2)), d2 ? i2 || o2.containsRange(d2.range) ? d2 : this._getNextMatch(d2.range.getEndPosition(), t2, n2, true) : null; } moveToNextMatch() { this._moveToNextMatch(this._editor.getSelection().getEndPosition()); @@ -60160,27 +60160,27 @@ ${Object(zn.b)(wi)} if (!e2 || e2.length === 0) return new li(null); let t2 = [], n2 = new di(e2); - for (let i2 = 0, o2 = e2.length; i2 < o2; i2++) { - let r2 = e2.charCodeAt(i2); - if (r2 !== 92) { - if (r2 === 36) { - if (i2++, i2 >= o2) + for (let i2 = 0, r2 = e2.length; i2 < r2; i2++) { + let o2 = e2.charCodeAt(i2); + if (o2 !== 92) { + if (o2 === 36) { + if (i2++, i2 >= r2) break; - let r3 = e2.charCodeAt(i2); - if (r3 === 36) { + let o3 = e2.charCodeAt(i2); + if (o3 === 36) { n2.emitUnchanged(i2 - 1), n2.emitStatic("$", i2 + 1); continue; } - if (r3 === 48 || r3 === 38) { + if (o3 === 48 || o3 === 38) { n2.emitUnchanged(i2 - 1), n2.emitMatchIndex(0, i2 + 1, t2), t2.length = 0; continue; } - if (49 <= r3 && r3 <= 57) { - let s2 = r3 - 48; - if (i2 + 1 < o2) { - let o3 = e2.charCodeAt(i2 + 1); - if (48 <= o3 && o3 <= 57) { - i2++, s2 = 10 * s2 + (o3 - 48), n2.emitUnchanged(i2 - 2), n2.emitMatchIndex(s2, i2 + 1, t2), t2.length = 0; + if (49 <= o3 && o3 <= 57) { + let s2 = o3 - 48; + if (i2 + 1 < r2) { + let r3 = e2.charCodeAt(i2 + 1); + if (48 <= r3 && r3 <= 57) { + i2++, s2 = 10 * s2 + (r3 - 48), n2.emitUnchanged(i2 - 2), n2.emitMatchIndex(s2, i2 + 1, t2), t2.length = 0; continue; } } @@ -60189,10 +60189,10 @@ ${Object(zn.b)(wi)} } } } else { - if (i2++, i2 >= o2) + if (i2++, i2 >= r2) break; - let r3 = e2.charCodeAt(i2); - switch (r3) { + let o3 = e2.charCodeAt(i2); + switch (o3) { case 92: n2.emitUnchanged(i2 - 1), n2.emitStatic("\\", i2 + 1); break; @@ -60206,7 +60206,7 @@ ${Object(zn.b)(wi)} case 85: case 108: case 76: - n2.emitUnchanged(i2 - 1), n2.emitStatic("", i2 + 1), t2.push(String.fromCharCode(r3)); + n2.emitUnchanged(i2 - 1), n2.emitStatic("", i2 + 1), t2.push(String.fromCharCode(o3)); } } } @@ -60219,8 +60219,8 @@ ${Object(zn.b)(wi)} let e2 = this._getReplacePattern(), t2 = this._editor.getSelection(), n2 = this._getNextMatch(t2.getStartPosition(), true, false); if (n2) if (t2.equalsRange(n2.range)) { - let i2 = e2.buildReplaceString(n2.matches, this._state.preserveCase), o2 = new Ne.a(t2, i2); - this._executeEditorCommand("replace", o2), this._decorations.setStartPosition(new me.a(t2.startLineNumber, t2.startColumn + i2.length)), this.research(true); + let i2 = e2.buildReplaceString(n2.matches, this._state.preserveCase), r2 = new Ne.a(t2, i2); + this._executeEditorCommand("replace", r2), this._decorations.setStartPosition(new me.a(t2.startLineNumber, t2.startColumn + i2.length)), this.research(true); } else this._decorations.setStartPosition(this._editor.getPosition()), this._setCurrentFindMatch(n2.range); } @@ -60243,22 +60243,22 @@ ${Object(zn.b)(wi)} let e3 = "mu"; t2.ignoreCase && (e3 += "i"), t2.global && (e3 += "g"), t2 = new RegExp(t2.source, e3); } - const n2 = this._editor.getModel(), i2 = n2.getValue(1), o2 = n2.getFullModelRange(), r2 = this._getReplacePattern(); + const n2 = this._editor.getModel(), i2 = n2.getValue(1), r2 = n2.getFullModelRange(), o2 = this._getReplacePattern(); let s2; const a2 = this._state.preserveCase; - s2 = r2.hasReplacementPatterns || a2 ? i2.replace(t2, function() { - return r2.buildReplaceString(arguments, a2); - }) : i2.replace(t2, r2.buildReplaceString(null, a2)); - let l2 = new Ne.b(o2, s2, this._editor.getSelection()); + s2 = o2.hasReplacementPatterns || a2 ? i2.replace(t2, function() { + return o2.buildReplaceString(arguments, a2); + }) : i2.replace(t2, o2.buildReplaceString(null, a2)); + let l2 = new Ne.b(r2, s2, this._editor.getSelection()); this._executeEditorCommand("replaceAll", l2); } _regularReplaceAll(e2) { const t2 = this._getReplacePattern(); let n2 = this._findMatches(e2, t2.hasReplacementPatterns || this._state.preserveCase, 1073741824), i2 = []; - for (let e3 = 0, o3 = n2.length; e3 < o3; e3++) + for (let e3 = 0, r3 = n2.length; e3 < r3; e3++) i2[e3] = t2.buildReplaceString(n2[e3].matches, this._state.preserveCase); - let o2 = new ni(this._editor.getSelection(), n2.map((e3) => e3.range), i2); - this._executeEditorCommand("replaceAll", o2); + let r2 = new ni(this._editor.getSelection(), n2.map((e3) => e3.range), i2); + this._executeEditorCommand("replaceAll", r2); } selectAllMatches() { if (!this._hasMatches()) @@ -60342,12 +60342,12 @@ ${Object(zn.b)(wi)} class Ui extends Ri.a { constructor(e2, t2, n2, i2) { super(), this._hideSoon = this._register(new ue.d(() => this._hide(), 2e3)), this._isVisible = false, this._editor = e2, this._state = t2, this._keybindingService = n2, this._domNode = document.createElement("div"), this._domNode.className = "findOptionsWidget", this._domNode.style.display = "none", this._domNode.style.top = "10px", this._domNode.setAttribute("role", "presentation"), this._domNode.setAttribute("aria-hidden", "true"); - const o2 = i2.getColorTheme().getColor(ve.db), r2 = i2.getColorTheme().getColor(ve.eb), s2 = i2.getColorTheme().getColor(ve.cb); - this.caseSensitive = this._register(new Bi({appendTitle: this._keybindingLabelFor(Ei), isChecked: this._state.matchCase, inputActiveOptionBorder: o2, inputActiveOptionForeground: r2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.caseSensitive.domNode), this._register(this.caseSensitive.onChange(() => { + const r2 = i2.getColorTheme().getColor(ve.db), o2 = i2.getColorTheme().getColor(ve.eb), s2 = i2.getColorTheme().getColor(ve.cb); + this.caseSensitive = this._register(new Bi({appendTitle: this._keybindingLabelFor(Ei), isChecked: this._state.matchCase, inputActiveOptionBorder: r2, inputActiveOptionForeground: o2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.caseSensitive.domNode), this._register(this.caseSensitive.onChange(() => { this._state.change({matchCase: this.caseSensitive.checked}, false); - })), this.wholeWords = this._register(new ji({appendTitle: this._keybindingLabelFor(Ti), isChecked: this._state.wholeWord, inputActiveOptionBorder: o2, inputActiveOptionForeground: r2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.wholeWords.domNode), this._register(this.wholeWords.onChange(() => { + })), this.wholeWords = this._register(new ji({appendTitle: this._keybindingLabelFor(Ti), isChecked: this._state.wholeWord, inputActiveOptionBorder: r2, inputActiveOptionForeground: o2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.wholeWords.domNode), this._register(this.wholeWords.onChange(() => { this._state.change({wholeWord: this.wholeWords.checked}, false); - })), this.regex = this._register(new Vi({appendTitle: this._keybindingLabelFor(Li), isChecked: this._state.isRegex, inputActiveOptionBorder: o2, inputActiveOptionForeground: r2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.regex.domNode), this._register(this.regex.onChange(() => { + })), this.regex = this._register(new Vi({appendTitle: this._keybindingLabelFor(Li), isChecked: this._state.isRegex, inputActiveOptionBorder: r2, inputActiveOptionForeground: o2, inputActiveOptionBackground: s2})), this._domNode.appendChild(this.regex.domNode), this._register(this.regex.onChange(() => { this._state.change({isRegex: this.regex.checked}, false); })), this._editor.addOverlayWidget(this), this._register(this._state.onFindReplaceStateChange((e3) => { let t3 = false; @@ -60401,10 +60401,10 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .findOptionsWidget { background-color: ${n2}; }`); const i2 = e2.getColor(ve.W); i2 && t2.addRule(`.monaco-editor .findOptionsWidget { color: ${i2}; }`); - const o2 = e2.getColor(ve.uc); - o2 && t2.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ${o2}; }`); - const r2 = e2.getColor(ve.h); - r2 && t2.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${r2}; }`); + const r2 = e2.getColor(ve.uc); + r2 && t2.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ${r2}; }`); + const o2 = e2.getColor(ve.h); + o2 && t2.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o2}; }`); }); class qi extends pe.a { constructor() { @@ -60459,17 +60459,17 @@ ${Object(zn.b)(wi)} return this._currentMatch; } changeMatchInfo(e2, t2, n2) { - let i2 = {moveCursor: false, updateHistory: false, searchString: false, replaceString: false, isRevealed: false, isReplaceRevealed: false, isRegex: false, wholeWord: false, matchCase: false, preserveCase: false, searchScope: false, matchesPosition: false, matchesCount: false, currentMatch: false, loop: false}, o2 = false; - t2 === 0 && (e2 = 0), e2 > t2 && (e2 = t2), this._matchesPosition !== e2 && (this._matchesPosition = e2, i2.matchesPosition = true, o2 = true), this._matchesCount !== t2 && (this._matchesCount = t2, i2.matchesCount = true, o2 = true), n2 !== void 0 && (ge.a.equalsRange(this._currentMatch, n2) || (this._currentMatch = n2, i2.currentMatch = true, o2 = true)), o2 && this._onFindReplaceStateChange.fire(i2); + let i2 = {moveCursor: false, updateHistory: false, searchString: false, replaceString: false, isRevealed: false, isReplaceRevealed: false, isRegex: false, wholeWord: false, matchCase: false, preserveCase: false, searchScope: false, matchesPosition: false, matchesCount: false, currentMatch: false, loop: false}, r2 = false; + t2 === 0 && (e2 = 0), e2 > t2 && (e2 = t2), this._matchesPosition !== e2 && (this._matchesPosition = e2, i2.matchesPosition = true, r2 = true), this._matchesCount !== t2 && (this._matchesCount = t2, i2.matchesCount = true, r2 = true), n2 !== void 0 && (ge.a.equalsRange(this._currentMatch, n2) || (this._currentMatch = n2, i2.currentMatch = true, r2 = true)), r2 && this._onFindReplaceStateChange.fire(i2); } change(e2, t2, n2 = true) { var i2; - let o2 = {moveCursor: t2, updateHistory: n2, searchString: false, replaceString: false, isRevealed: false, isReplaceRevealed: false, isRegex: false, wholeWord: false, matchCase: false, preserveCase: false, searchScope: false, matchesPosition: false, matchesCount: false, currentMatch: false, loop: false}, r2 = false; + let r2 = {moveCursor: t2, updateHistory: n2, searchString: false, replaceString: false, isRevealed: false, isReplaceRevealed: false, isRegex: false, wholeWord: false, matchCase: false, preserveCase: false, searchScope: false, matchesPosition: false, matchesCount: false, currentMatch: false, loop: false}, o2 = false; const s2 = this.isRegex, a2 = this.wholeWord, l2 = this.matchCase, c2 = this.preserveCase; - e2.searchString !== void 0 && this._searchString !== e2.searchString && (this._searchString = e2.searchString, o2.searchString = true, r2 = true), e2.replaceString !== void 0 && this._replaceString !== e2.replaceString && (this._replaceString = e2.replaceString, o2.replaceString = true, r2 = true), e2.isRevealed !== void 0 && this._isRevealed !== e2.isRevealed && (this._isRevealed = e2.isRevealed, o2.isRevealed = true, r2 = true), e2.isReplaceRevealed !== void 0 && this._isReplaceRevealed !== e2.isReplaceRevealed && (this._isReplaceRevealed = e2.isReplaceRevealed, o2.isReplaceRevealed = true, r2 = true), e2.isRegex !== void 0 && (this._isRegex = e2.isRegex), e2.wholeWord !== void 0 && (this._wholeWord = e2.wholeWord), e2.matchCase !== void 0 && (this._matchCase = e2.matchCase), e2.preserveCase !== void 0 && (this._preserveCase = e2.preserveCase), e2.searchScope !== void 0 && (((i2 = e2.searchScope) === null || i2 === void 0 ? void 0 : i2.every((e3) => { + e2.searchString !== void 0 && this._searchString !== e2.searchString && (this._searchString = e2.searchString, r2.searchString = true, o2 = true), e2.replaceString !== void 0 && this._replaceString !== e2.replaceString && (this._replaceString = e2.replaceString, r2.replaceString = true, o2 = true), e2.isRevealed !== void 0 && this._isRevealed !== e2.isRevealed && (this._isRevealed = e2.isRevealed, r2.isRevealed = true, o2 = true), e2.isReplaceRevealed !== void 0 && this._isReplaceRevealed !== e2.isReplaceRevealed && (this._isReplaceRevealed = e2.isReplaceRevealed, r2.isReplaceRevealed = true, o2 = true), e2.isRegex !== void 0 && (this._isRegex = e2.isRegex), e2.wholeWord !== void 0 && (this._wholeWord = e2.wholeWord), e2.matchCase !== void 0 && (this._matchCase = e2.matchCase), e2.preserveCase !== void 0 && (this._preserveCase = e2.preserveCase), e2.searchScope !== void 0 && (((i2 = e2.searchScope) === null || i2 === void 0 ? void 0 : i2.every((e3) => { var t3; return (t3 = this._searchScope) === null || t3 === void 0 ? void 0 : t3.some((t4) => !ge.a.equalsRange(t4, e3)); - })) || (this._searchScope = e2.searchScope, o2.searchScope = true, r2 = true)), e2.loop !== void 0 && this._loop !== e2.loop && (this._loop = e2.loop, o2.loop = true, r2 = true), this._isRegexOverride = e2.isRegexOverride !== void 0 ? e2.isRegexOverride : 0, this._wholeWordOverride = e2.wholeWordOverride !== void 0 ? e2.wholeWordOverride : 0, this._matchCaseOverride = e2.matchCaseOverride !== void 0 ? e2.matchCaseOverride : 0, this._preserveCaseOverride = e2.preserveCaseOverride !== void 0 ? e2.preserveCaseOverride : 0, s2 !== this.isRegex && (r2 = true, o2.isRegex = true), a2 !== this.wholeWord && (r2 = true, o2.wholeWord = true), l2 !== this.matchCase && (r2 = true, o2.matchCase = true), c2 !== this.preserveCase && (r2 = true, o2.preserveCase = true), r2 && this._onFindReplaceStateChange.fire(o2); + })) || (this._searchScope = e2.searchScope, r2.searchScope = true, o2 = true)), e2.loop !== void 0 && this._loop !== e2.loop && (this._loop = e2.loop, r2.loop = true, o2 = true), this._isRegexOverride = e2.isRegexOverride !== void 0 ? e2.isRegexOverride : 0, this._wholeWordOverride = e2.wholeWordOverride !== void 0 ? e2.wholeWordOverride : 0, this._matchCaseOverride = e2.matchCaseOverride !== void 0 ? e2.matchCaseOverride : 0, this._preserveCaseOverride = e2.preserveCaseOverride !== void 0 ? e2.preserveCaseOverride : 0, s2 !== this.isRegex && (o2 = true, r2.isRegex = true), a2 !== this.wholeWord && (o2 = true, r2.wholeWord = true), l2 !== this.matchCase && (o2 = true, r2.matchCase = true), c2 !== this.preserveCase && (o2 = true, r2.preserveCase = true), o2 && this._onFindReplaceStateChange.fire(r2); } canNavigateBack() { return this.canNavigateInLoop() || this.matchesPosition !== 1; @@ -60487,14 +60487,14 @@ ${Object(zn.b)(wi)} class Yi extends Ri.a { constructor(e2, t2, n2, i2) { super(), this._showOptionButtons = n2, this.fixFocusOnOptionClickEnabled = true, this._onDidOptionChange = this._register(new Lt.a()), this.onDidOptionChange = this._onDidOptionChange.event, this._onKeyDown = this._register(new Lt.a()), this.onKeyDown = this._onKeyDown.event, this._onMouseDown = this._register(new Lt.a()), this.onMouseDown = this._onMouseDown.event, this._onInput = this._register(new Lt.a()), this._onKeyUp = this._register(new Lt.a()), this._onCaseSensitiveKeyDown = this._register(new Lt.a()), this.onCaseSensitiveKeyDown = this._onCaseSensitiveKeyDown.event, this._onRegexKeyDown = this._register(new Lt.a()), this.onRegexKeyDown = this._onRegexKeyDown.event, this._lastHighlightFindOptions = 0, this.contextViewProvider = t2, this.placeholder = i2.placeholder || "", this.validation = i2.validation, this.label = i2.label || Gi, this.inputActiveOptionBorder = i2.inputActiveOptionBorder, this.inputActiveOptionForeground = i2.inputActiveOptionForeground, this.inputActiveOptionBackground = i2.inputActiveOptionBackground, this.inputBackground = i2.inputBackground, this.inputForeground = i2.inputForeground, this.inputBorder = i2.inputBorder, this.inputValidationInfoBorder = i2.inputValidationInfoBorder, this.inputValidationInfoBackground = i2.inputValidationInfoBackground, this.inputValidationInfoForeground = i2.inputValidationInfoForeground, this.inputValidationWarningBorder = i2.inputValidationWarningBorder, this.inputValidationWarningBackground = i2.inputValidationWarningBackground, this.inputValidationWarningForeground = i2.inputValidationWarningForeground, this.inputValidationErrorBorder = i2.inputValidationErrorBorder, this.inputValidationErrorBackground = i2.inputValidationErrorBackground, this.inputValidationErrorForeground = i2.inputValidationErrorForeground; - const o2 = i2.appendCaseSensitiveLabel || "", r2 = i2.appendWholeWordsLabel || "", s2 = i2.appendRegexLabel || "", a2 = i2.history || [], l2 = !!i2.flexibleHeight, c2 = !!i2.flexibleWidth, d2 = i2.flexibleMaxHeight; + const r2 = i2.appendCaseSensitiveLabel || "", o2 = i2.appendWholeWordsLabel || "", s2 = i2.appendRegexLabel || "", a2 = i2.history || [], l2 = !!i2.flexibleHeight, c2 = !!i2.flexibleWidth, d2 = i2.flexibleMaxHeight; this.domNode = document.createElement("div"), ft.e(this.domNode, "monaco-findInput"), this.inputBox = this._register(new Ki.a(this.domNode, this.contextViewProvider, {placeholder: this.placeholder || "", ariaLabel: this.label || "", validationOptions: {validation: this.validation}, inputBackground: this.inputBackground, inputForeground: this.inputForeground, inputBorder: this.inputBorder, inputValidationInfoBackground: this.inputValidationInfoBackground, inputValidationInfoForeground: this.inputValidationInfoForeground, inputValidationInfoBorder: this.inputValidationInfoBorder, inputValidationWarningBackground: this.inputValidationWarningBackground, inputValidationWarningForeground: this.inputValidationWarningForeground, inputValidationWarningBorder: this.inputValidationWarningBorder, inputValidationErrorBackground: this.inputValidationErrorBackground, inputValidationErrorForeground: this.inputValidationErrorForeground, inputValidationErrorBorder: this.inputValidationErrorBorder, history: a2, flexibleHeight: l2, flexibleWidth: c2, flexibleMaxHeight: d2})), this.regex = this._register(new Vi({appendTitle: s2, isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.regex.onChange((e3) => { this._onDidOptionChange.fire(e3), !e3 && this.fixFocusOnOptionClickEnabled && this.inputBox.focus(), this.validate(); })), this._register(this.regex.onKeyDown((e3) => { this._onRegexKeyDown.fire(e3); - })), this.wholeWords = this._register(new ji({appendTitle: r2, isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.wholeWords.onChange((e3) => { + })), this.wholeWords = this._register(new ji({appendTitle: o2, isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.wholeWords.onChange((e3) => { this._onDidOptionChange.fire(e3), !e3 && this.fixFocusOnOptionClickEnabled && this.inputBox.focus(), this.validate(); - })), this.caseSensitive = this._register(new Bi({appendTitle: o2, isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.caseSensitive.onChange((e3) => { + })), this.caseSensitive = this._register(new Bi({appendTitle: r2, isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.caseSensitive.onChange((e3) => { this._onDidOptionChange.fire(e3), !e3 && this.fixFocusOnOptionClickEnabled && this.inputBox.focus(), this.validate(); })), this._register(this.caseSensitive.onKeyDown((e3) => { this._onCaseSensitiveKeyDown.fire(e3); @@ -60585,11 +60585,11 @@ ${Object(zn.b)(wi)} super({icon: Y.a.preserveCase, title: Qi + e2.appendTitle, isChecked: e2.isChecked, inputActiveOptionBorder: e2.inputActiveOptionBorder, inputActiveOptionForeground: e2.inputActiveOptionForeground, inputActiveOptionBackground: e2.inputActiveOptionBackground}); } } - class eo extends Ri.a { + class er extends Ri.a { constructor(e2, t2, n2, i2) { super(), this._showOptionButtons = n2, this.fixFocusOnOptionClickEnabled = true, this.cachedOptionsWidth = 0, this._onDidOptionChange = this._register(new Lt.a()), this.onDidOptionChange = this._onDidOptionChange.event, this._onKeyDown = this._register(new Lt.a()), this.onKeyDown = this._onKeyDown.event, this._onMouseDown = this._register(new Lt.a()), this._onInput = this._register(new Lt.a()), this._onKeyUp = this._register(new Lt.a()), this._onPreserveCaseKeyDown = this._register(new Lt.a()), this.onPreserveCaseKeyDown = this._onPreserveCaseKeyDown.event, this.contextViewProvider = t2, this.placeholder = i2.placeholder || "", this.validation = i2.validation, this.label = i2.label || Xi, this.inputActiveOptionBorder = i2.inputActiveOptionBorder, this.inputActiveOptionForeground = i2.inputActiveOptionForeground, this.inputActiveOptionBackground = i2.inputActiveOptionBackground, this.inputBackground = i2.inputBackground, this.inputForeground = i2.inputForeground, this.inputBorder = i2.inputBorder, this.inputValidationInfoBorder = i2.inputValidationInfoBorder, this.inputValidationInfoBackground = i2.inputValidationInfoBackground, this.inputValidationInfoForeground = i2.inputValidationInfoForeground, this.inputValidationWarningBorder = i2.inputValidationWarningBorder, this.inputValidationWarningBackground = i2.inputValidationWarningBackground, this.inputValidationWarningForeground = i2.inputValidationWarningForeground, this.inputValidationErrorBorder = i2.inputValidationErrorBorder, this.inputValidationErrorBackground = i2.inputValidationErrorBackground, this.inputValidationErrorForeground = i2.inputValidationErrorForeground; - const o2 = i2.history || [], r2 = !!i2.flexibleHeight, s2 = !!i2.flexibleWidth, a2 = i2.flexibleMaxHeight; - this.domNode = document.createElement("div"), ft.e(this.domNode, "monaco-findInput"), this.inputBox = this._register(new Ki.a(this.domNode, this.contextViewProvider, {ariaLabel: this.label || "", placeholder: this.placeholder || "", validationOptions: {validation: this.validation}, inputBackground: this.inputBackground, inputForeground: this.inputForeground, inputBorder: this.inputBorder, inputValidationInfoBackground: this.inputValidationInfoBackground, inputValidationInfoForeground: this.inputValidationInfoForeground, inputValidationInfoBorder: this.inputValidationInfoBorder, inputValidationWarningBackground: this.inputValidationWarningBackground, inputValidationWarningForeground: this.inputValidationWarningForeground, inputValidationWarningBorder: this.inputValidationWarningBorder, inputValidationErrorBackground: this.inputValidationErrorBackground, inputValidationErrorForeground: this.inputValidationErrorForeground, inputValidationErrorBorder: this.inputValidationErrorBorder, history: o2, flexibleHeight: r2, flexibleWidth: s2, flexibleMaxHeight: a2})), this.preserveCase = this._register(new Ji({appendTitle: "", isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.preserveCase.onChange((e3) => { + const r2 = i2.history || [], o2 = !!i2.flexibleHeight, s2 = !!i2.flexibleWidth, a2 = i2.flexibleMaxHeight; + this.domNode = document.createElement("div"), ft.e(this.domNode, "monaco-findInput"), this.inputBox = this._register(new Ki.a(this.domNode, this.contextViewProvider, {ariaLabel: this.label || "", placeholder: this.placeholder || "", validationOptions: {validation: this.validation}, inputBackground: this.inputBackground, inputForeground: this.inputForeground, inputBorder: this.inputBorder, inputValidationInfoBackground: this.inputValidationInfoBackground, inputValidationInfoForeground: this.inputValidationInfoForeground, inputValidationInfoBorder: this.inputValidationInfoBorder, inputValidationWarningBackground: this.inputValidationWarningBackground, inputValidationWarningForeground: this.inputValidationWarningForeground, inputValidationWarningBorder: this.inputValidationWarningBorder, inputValidationErrorBackground: this.inputValidationErrorBackground, inputValidationErrorForeground: this.inputValidationErrorForeground, inputValidationErrorBorder: this.inputValidationErrorBorder, history: r2, flexibleHeight: o2, flexibleWidth: s2, flexibleMaxHeight: a2})), this.preserveCase = this._register(new Ji({appendTitle: "", isChecked: false, inputActiveOptionBorder: this.inputActiveOptionBorder, inputActiveOptionForeground: this.inputActiveOptionForeground, inputActiveOptionBackground: this.inputActiveOptionBackground})), this._register(this.preserveCase.onChange((e3) => { this._onDidOptionChange.fire(e3), !e3 && this.fixFocusOnOptionClickEnabled && this.inputBox.focus(), this.validate(); })), this._register(this.preserveCase.onKeyDown((e3) => { this._onPreserveCaseKeyDown.fire(e3); @@ -60652,23 +60652,23 @@ ${Object(zn.b)(wi)} super.dispose(); } } - var to = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var tr = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, no = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, nr = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - function io(e2, t2) { + function ir(e2, t2) { return e2.getContext(document.activeElement).getValue(t2); } - function oo(e2, t2) { + function rr(e2, t2) { const n2 = function(e3, t3) { return e3.createScoped(t3.target); }(e2, t2); @@ -60677,92 +60677,92 @@ ${Object(zn.b)(wi)} }(n2, t2, "historyNavigationWidget"); return {scopedContextKeyService: n2, historyNavigationEnablement: new K.c("historyNavigationEnabled", true).bindTo(n2)}; } - let ro = class extends Yi { - constructor(e2, t2, n2, i2, o2 = false) { - super(e2, t2, o2, n2), this._register(oo(i2, {target: this.inputBox.element, historyNavigator: this.inputBox}).scopedContextKeyService); + let or = class extends Yi { + constructor(e2, t2, n2, i2, r2 = false) { + super(e2, t2, r2, n2), this._register(rr(i2, {target: this.inputBox.element, historyNavigator: this.inputBox}).scopedContextKeyService); } }; - ro = to([no(3, K.b)], ro); - let so = class extends eo { - constructor(e2, t2, n2, i2, o2 = false) { - super(e2, t2, o2, n2), this._register(oo(i2, {target: this.inputBox.element, historyNavigator: this.inputBox}).scopedContextKeyService); + or = tr([nr(3, K.b)], or); + let sr = class extends er { + constructor(e2, t2, n2, i2, r2 = false) { + super(e2, t2, r2, n2), this._register(rr(i2, {target: this.inputBox.element, historyNavigator: this.inputBox}).scopedContextKeyService); } }; - so = to([no(3, K.b)], so), Zi.a.registerCommandAndKeybindingRule({id: "history.showPrevious", weight: 200, when: K.a.and(K.a.has("historyNavigationWidget"), K.a.equals("historyNavigationEnabled", true)), primary: 16, secondary: [528], handler: (e2, t2) => { - const n2 = io(e2.get(K.b), "historyNavigationWidget"); + sr = tr([nr(3, K.b)], sr), Zi.a.registerCommandAndKeybindingRule({id: "history.showPrevious", weight: 200, when: K.a.and(K.a.has("historyNavigationWidget"), K.a.equals("historyNavigationEnabled", true)), primary: 16, secondary: [528], handler: (e2, t2) => { + const n2 = ir(e2.get(K.b), "historyNavigationWidget"); if (n2) { n2.historyNavigator.showPreviousValue(); } }}), Zi.a.registerCommandAndKeybindingRule({id: "history.showNext", weight: 200, when: K.a.and(K.a.has("historyNavigationWidget"), K.a.equals("historyNavigationEnabled", true)), primary: 18, secondary: [530], handler: (e2, t2) => { - const n2 = io(e2.get(K.b), "historyNavigationWidget"); + const n2 = ir(e2.get(K.b), "historyNavigationWidget"); if (n2) { n2.historyNavigator.showNextValue(); } }}); - var ao = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var ar = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - const lo = Object(Y.e)("find-selection", Y.a.selection), co = Object(Y.e)("find-collapsed", Y.a.chevronRight), ho = Object(Y.e)("find-expanded", Y.a.chevronDown), uo = Object(Y.e)("find-close", Y.a.close), po = Object(Y.e)("find-replace", Y.a.replace), mo = Object(Y.e)("find-replace-all", Y.a.replaceAll), go = Object(Y.e)("find-previous-match", Y.a.arrowUp), fo = Object(Y.e)("find-next-match", Y.a.arrowDown), bo = U.a("label.find", "Find"), _o = U.a("placeholder.find", "Find"), vo = U.a("label.previousMatchButton", "Previous match"), wo = U.a("label.nextMatchButton", "Next match"), yo = U.a("label.toggleSelectionFind", "Find in selection"), Co = U.a("label.closeButton", "Close"), xo = U.a("label.replace", "Replace"), So = U.a("placeholder.replace", "Replace"), ko = U.a("label.replaceButton", "Replace"), Eo = U.a("label.replaceAllButton", "Replace All"), To = U.a("label.toggleReplaceButton", "Toggle Replace mode"), Lo = U.a("title.matchesCountLimit", "Only the first {0} results are highlighted, but all find operations work on the entire text.", 19999), No = U.a("label.matchesLocation", "{0} of {1}"), Io = U.a("label.noResults", "No results"); - let Oo = 69; - const Do = Ae.f ? 256 : 2048; - class Ao { + const lr = Object(Y.e)("find-selection", Y.a.selection), cr = Object(Y.e)("find-collapsed", Y.a.chevronRight), dr = Object(Y.e)("find-expanded", Y.a.chevronDown), hr = Object(Y.e)("find-close", Y.a.close), ur = Object(Y.e)("find-replace", Y.a.replace), pr = Object(Y.e)("find-replace-all", Y.a.replaceAll), mr = Object(Y.e)("find-previous-match", Y.a.arrowUp), gr = Object(Y.e)("find-next-match", Y.a.arrowDown), fr = U.a("label.find", "Find"), br = U.a("placeholder.find", "Find"), _r = U.a("label.previousMatchButton", "Previous match"), vr = U.a("label.nextMatchButton", "Next match"), wr = U.a("label.toggleSelectionFind", "Find in selection"), yr = U.a("label.closeButton", "Close"), Cr = U.a("label.replace", "Replace"), xr = U.a("placeholder.replace", "Replace"), Sr = U.a("label.replaceButton", "Replace"), kr = U.a("label.replaceAllButton", "Replace All"), Er = U.a("label.toggleReplaceButton", "Toggle Replace mode"), Tr = U.a("title.matchesCountLimit", "Only the first {0} results are highlighted, but all find operations work on the entire text.", 19999), Lr = U.a("label.matchesLocation", "{0} of {1}"), Nr = U.a("label.noResults", "No results"); + let Ir = 69; + const Dr = Ae.f ? 256 : 2048; + class Or { constructor(e2) { this.afterLineNumber = e2, this.heightInPx = 33, this.suppressMouseDown = false, this.domNode = document.createElement("div"), this.domNode.className = "dock-find-viewzone"; } } - function Ro(e2, t2, n2) { + function Ar(e2, t2, n2) { const i2 = !!t2.match(/\n/); n2 && i2 && n2.selectionStart > 0 && e2.stopPropagation(); } - function Mo(e2, t2, n2) { + function Rr(e2, t2, n2) { const i2 = !!t2.match(/\n/); n2 && i2 && n2.selectionEnd < n2.value.length && e2.stopPropagation(); } - class Po extends Ri.a { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - super(), this._cachedHeight = null, this._codeEditor = e2, this._controller = t2, this._state = n2, this._contextViewProvider = i2, this._keybindingService = o2, this._contextKeyService = r2, this._storageService = a2, this._notificationService = l2, c2.registerStorageKey({key: "ctrlEnterReplaceAll.windows.donotask", version: 1}), this._ctrlEnterReplaceAllWarningPrompted = !!a2.getBoolean("ctrlEnterReplaceAll.windows.donotask", 0), this._isVisible = false, this._isReplaceVisible = false, this._ignoreChangeEvent = false, this._updateHistoryDelayer = new ue.a(500), this._register(Object(pe.h)(() => this._updateHistoryDelayer.cancel())), this._register(this._state.onFindReplaceStateChange((e3) => this._onStateChanged(e3))), this._buildDomNode(), this._updateButtons(), this._tryUpdateWidgetWidth(), this._findInput.inputBox.layout(), this._register(this._codeEditor.onDidChangeConfiguration((e3) => { + class Mr extends Ri.a { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + super(), this._cachedHeight = null, this._codeEditor = e2, this._controller = t2, this._state = n2, this._contextViewProvider = i2, this._keybindingService = r2, this._contextKeyService = o2, this._storageService = a2, this._notificationService = l2, c2.registerStorageKey({key: "ctrlEnterReplaceAll.windows.donotask", version: 1}), this._ctrlEnterReplaceAllWarningPrompted = !!a2.getBoolean("ctrlEnterReplaceAll.windows.donotask", 0), this._isVisible = false, this._isReplaceVisible = false, this._ignoreChangeEvent = false, this._updateHistoryDelayer = new ue.a(500), this._register(Object(pe.h)(() => this._updateHistoryDelayer.cancel())), this._register(this._state.onFindReplaceStateChange((e3) => this._onStateChanged(e3))), this._buildDomNode(), this._updateButtons(), this._tryUpdateWidgetWidth(), this._findInput.inputBox.layout(), this._register(this._codeEditor.onDidChangeConfiguration((e3) => { if (e3.hasChanged(72) && (this._codeEditor.getOption(72) && this._state.change({isReplaceRevealed: false}, false), this._updateButtons()), e3.hasChanged(117) && this._tryUpdateWidgetWidth(), e3.hasChanged(2) && this.updateAccessibilitySupport(), e3.hasChanged(29)) { const e4 = this._codeEditor.getOption(29).addExtraSpaceOnTop; - e4 && !this._viewZone && (this._viewZone = new Ao(0), this._showViewZone()), !e4 && this._viewZone && this._removeViewZone(); + e4 && !this._viewZone && (this._viewZone = new Or(0), this._showViewZone()), !e4 && this._viewZone && this._removeViewZone(); } })), this.updateAccessibilitySupport(), this._register(this._codeEditor.onDidChangeCursorSelection(() => { this._isVisible && this._updateToggleSelectionFindButton(); - })), this._register(this._codeEditor.onDidFocusEditorWidget(() => ao(this, void 0, void 0, function* () { + })), this._register(this._codeEditor.onDidFocusEditorWidget(() => ar(this, void 0, void 0, function* () { if (this._isVisible) { let e3 = yield this._controller.getGlobalBufferTerm(); e3 && e3 !== this._state.searchString && (this._state.change({searchString: e3}, true), this._findInput.select()); } - }))), this._findInputFocused = ui.bindTo(r2), this._findFocusTracker = this._register(ft.bb(this._findInput.inputBox.inputElement)), this._register(this._findFocusTracker.onDidFocus(() => { + }))), this._findInputFocused = ui.bindTo(o2), this._findFocusTracker = this._register(ft.bb(this._findInput.inputBox.inputElement)), this._register(this._findFocusTracker.onDidFocus(() => { this._findInputFocused.set(true), this._updateSearchScope(); })), this._register(this._findFocusTracker.onDidBlur(() => { this._findInputFocused.set(false); - })), this._replaceInputFocused = pi.bindTo(r2), this._replaceFocusTracker = this._register(ft.bb(this._replaceInput.inputBox.inputElement)), this._register(this._replaceFocusTracker.onDidFocus(() => { + })), this._replaceInputFocused = pi.bindTo(o2), this._replaceFocusTracker = this._register(ft.bb(this._replaceInput.inputBox.inputElement)), this._register(this._replaceFocusTracker.onDidFocus(() => { this._replaceInputFocused.set(true), this._updateSearchScope(); })), this._register(this._replaceFocusTracker.onDidBlur(() => { this._replaceInputFocused.set(false); - })), this._codeEditor.addOverlayWidget(this), this._codeEditor.getOption(29).addExtraSpaceOnTop && (this._viewZone = new Ao(0)), this._applyTheme(s2.getColorTheme()), this._register(s2.onDidColorThemeChange(this._applyTheme.bind(this))), this._register(this._codeEditor.onDidChangeModel(() => { + })), this._codeEditor.addOverlayWidget(this), this._codeEditor.getOption(29).addExtraSpaceOnTop && (this._viewZone = new Or(0)), this._applyTheme(s2.getColorTheme()), this._register(s2.onDidColorThemeChange(this._applyTheme.bind(this))), this._register(this._codeEditor.onDidChangeModel(() => { this._isVisible && (this._viewZoneId = void 0); })), this._register(this._codeEditor.onDidScrollChange((e3) => { e3.scrollTopChanged ? this._layoutViewZone() : setTimeout(() => { @@ -60771,7 +60771,7 @@ ${Object(zn.b)(wi)} })); } getId() { - return Po.ID; + return Mr.ID; } getDomNode() { return this._domNode; @@ -60802,22 +60802,22 @@ ${Object(zn.b)(wi)} } _updateMatchesCount() { let e2; - if (this._matchesCount.style.minWidth = Oo + "px", this._state.matchesCount >= 19999 ? this._matchesCount.title = Lo : this._matchesCount.title = "", this._matchesCount.firstChild && this._matchesCount.removeChild(this._matchesCount.firstChild), this._state.matchesCount > 0) { + if (this._matchesCount.style.minWidth = Ir + "px", this._state.matchesCount >= 19999 ? this._matchesCount.title = Tr : this._matchesCount.title = "", this._matchesCount.firstChild && this._matchesCount.removeChild(this._matchesCount.firstChild), this._state.matchesCount > 0) { let t2 = String(this._state.matchesCount); this._state.matchesCount >= 19999 && (t2 += "+"); let n2 = String(this._state.matchesPosition); - n2 === "0" && (n2 = "?"), e2 = Ye.x(No, n2, t2); + n2 === "0" && (n2 = "?"), e2 = Ye.x(Lr, n2, t2); } else - e2 = Io; - this._matchesCount.appendChild(document.createTextNode(e2)), Object(ne.a)(this._getAriaLabel(e2, this._state.currentMatch, this._state.searchString)), Oo = Math.max(Oo, this._matchesCount.clientWidth); + e2 = Nr; + this._matchesCount.appendChild(document.createTextNode(e2)), Object(ne.a)(this._getAriaLabel(e2, this._state.currentMatch, this._state.searchString)), Ir = Math.max(Ir, this._matchesCount.clientWidth); } _getAriaLabel(e2, t2, n2) { - if (e2 === Io) + if (e2 === Nr) return n2 === "" ? U.a("ariaSearchNoResultEmpty", "{0} found", e2) : U.a("ariaSearchNoResult", "{0} found for '{1}'", e2, n2); if (t2) { - const i2 = U.a("ariaSearchNoResultWithLineNum", "{0} found for '{1}', at {2}", e2, n2, t2.startLineNumber + ":" + t2.startColumn), o2 = this._codeEditor.getModel(); - if (o2 && t2.startLineNumber <= o2.getLineCount() && t2.startLineNumber >= 1) { - return `${o2.getLineContent(t2.startLineNumber)}, ${i2}`; + const i2 = U.a("ariaSearchNoResultWithLineNum", "{0} found for '{1}', at {2}", e2, n2, t2.startLineNumber + ":" + t2.startColumn), r2 = this._codeEditor.getModel(); + if (r2 && t2.startLineNumber <= r2.getLineCount() && t2.startLineNumber >= 1) { + return `${r2.getLineContent(t2.startLineNumber)}, ${i2}`; } return i2; } @@ -60858,13 +60858,13 @@ ${Object(zn.b)(wi)} if (this._codeEditor.getOption(29).seedSearchStringFromSelection && e2) { const n2 = this._codeEditor.getDomNode(); if (n2) { - const i2 = ft.C(n2), o2 = this._codeEditor.getScrolledVisiblePosition(e2.getStartPosition()), r2 = i2.left + (o2 ? o2.left : 0), s2 = o2 ? o2.top : 0; + const i2 = ft.C(n2), r2 = this._codeEditor.getScrolledVisiblePosition(e2.getStartPosition()), o2 = i2.left + (r2 ? r2.left : 0), s2 = r2 ? r2.top : 0; if (this._viewZone && s2 < this._viewZone.heightInPx) { e2.endLineNumber > e2.startLineNumber && (t2 = false); const n3 = ft.F(this._domNode).left; - r2 > n3 && (t2 = false); - const o3 = this._codeEditor.getScrolledVisiblePosition(e2.getEndPosition()); - i2.left + (o3 ? o3.left : 0) > n3 && (t2 = false); + o2 > n3 && (t2 = false); + const r3 = this._codeEditor.getScrolledVisiblePosition(e2.getEndPosition()); + i2.left + (r3 ? r3.left : 0) > n3 && (t2 = false); } } } @@ -60889,15 +60889,15 @@ ${Object(zn.b)(wi)} return; if (!this._codeEditor.getOption(29).addExtraSpaceOnTop) return; - this._viewZone === void 0 && (this._viewZone = new Ao(0)); + this._viewZone === void 0 && (this._viewZone = new Or(0)); const t2 = this._viewZone; this._codeEditor.changeViewZones((n2) => { if (this._viewZoneId !== void 0) { const i2 = this._getHeight(); if (i2 === t2.heightInPx) return; - let o2 = i2 - t2.heightInPx; - return t2.heightInPx = i2, n2.layoutZone(this._viewZoneId), void (e2 && this._codeEditor.setScrollTop(this._codeEditor.getScrollTop() + o2)); + let r2 = i2 - t2.heightInPx; + return t2.heightInPx = i2, n2.layoutZone(this._viewZoneId), void (e2 && this._codeEditor.setScrollTop(this._codeEditor.getScrollTop() + r2)); } { let i2 = this._getHeight(); @@ -60926,12 +60926,12 @@ ${Object(zn.b)(wi)} return void ft.e(this._domNode, "hiddenEditor"); ft.I(this._domNode, "hiddenEditor") && ft.Q(this._domNode, "hiddenEditor"); const t2 = e2.width, n2 = e2.minimap.minimapWidth; - let i2 = false, o2 = false, r2 = false; + let i2 = false, r2 = false, o2 = false; if (this._resized) { if (ft.H(this._domNode) > 419) return this._domNode.style.maxWidth = t2 - 28 - n2 - 15 + "px", void (this._replaceInput.width = ft.H(this._findInput.domNode)); } - if (447 + n2 >= t2 && (o2 = true), 447 + n2 - Oo >= t2 && (r2 = true), 447 + n2 - Oo >= t2 + 50 && (i2 = true), ft.ab(this._domNode, "collapsed-find-widget", i2), ft.ab(this._domNode, "narrow-find-widget", r2), ft.ab(this._domNode, "reduced-find-widget", o2), r2 || i2 || (this._domNode.style.maxWidth = t2 - 28 - n2 - 15 + "px"), this._resized) { + if (447 + n2 >= t2 && (r2 = true), 447 + n2 - Ir >= t2 && (o2 = true), 447 + n2 - Ir >= t2 + 50 && (i2 = true), ft.ab(this._domNode, "collapsed-find-widget", i2), ft.ab(this._domNode, "narrow-find-widget", o2), ft.ab(this._domNode, "reduced-find-widget", r2), o2 || i2 || (this._domNode.style.maxWidth = t2 - 28 - n2 - 15 + "px"), this._resized) { this._findInput.inputBox.layout(); let e3 = this._findInput.inputBox.element.clientWidth; e3 > 0 && (this._replaceInput.width = e3); @@ -60969,10 +60969,10 @@ ${Object(zn.b)(wi)} e2.middleButton && e2.stopPropagation(); } _onFindInputKeyDown(e2) { - return e2.equals(3 | Do) ? (this._findInput.inputBox.insertAtCursor("\n"), void e2.preventDefault()) : e2.equals(2) ? (this._isReplaceVisible ? this._replaceInput.focus() : this._findInput.focusOnCaseSensitive(), void e2.preventDefault()) : e2.equals(2066) ? (this._codeEditor.focus(), void e2.preventDefault()) : e2.equals(16) ? Ro(e2, this._findInput.getValue(), this._findInput.domNode.querySelector("textarea")) : e2.equals(18) ? Mo(e2, this._findInput.getValue(), this._findInput.domNode.querySelector("textarea")) : void 0; + return e2.equals(3 | Dr) ? (this._findInput.inputBox.insertAtCursor("\n"), void e2.preventDefault()) : e2.equals(2) ? (this._isReplaceVisible ? this._replaceInput.focus() : this._findInput.focusOnCaseSensitive(), void e2.preventDefault()) : e2.equals(2066) ? (this._codeEditor.focus(), void e2.preventDefault()) : e2.equals(16) ? Ar(e2, this._findInput.getValue(), this._findInput.domNode.querySelector("textarea")) : e2.equals(18) ? Rr(e2, this._findInput.getValue(), this._findInput.domNode.querySelector("textarea")) : void 0; } _onReplaceInputKeyDown(e2) { - return e2.equals(3 | Do) ? (Ae.i && Ae.g && !this._ctrlEnterReplaceAllWarningPrompted && (this._notificationService.info(U.a("ctrlEnter.keybindingChanged", "Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")), this._ctrlEnterReplaceAllWarningPrompted = true, this._storageService.store("ctrlEnterReplaceAll.windows.donotask", true, 0)), this._replaceInput.inputBox.insertAtCursor("\n"), void e2.preventDefault()) : e2.equals(2) ? (this._findInput.focusOnCaseSensitive(), void e2.preventDefault()) : e2.equals(1026) ? (this._findInput.focus(), void e2.preventDefault()) : e2.equals(2066) ? (this._codeEditor.focus(), void e2.preventDefault()) : e2.equals(16) ? Ro(e2, this._replaceInput.inputBox.value, this._replaceInput.inputBox.element.querySelector("textarea")) : e2.equals(18) ? Mo(e2, this._replaceInput.inputBox.value, this._replaceInput.inputBox.element.querySelector("textarea")) : void 0; + return e2.equals(3 | Dr) ? (Ae.i && Ae.g && !this._ctrlEnterReplaceAllWarningPrompted && (this._notificationService.info(U.a("ctrlEnter.keybindingChanged", "Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")), this._ctrlEnterReplaceAllWarningPrompted = true, this._storageService.store("ctrlEnterReplaceAll.windows.donotask", true, 0)), this._replaceInput.inputBox.insertAtCursor("\n"), void e2.preventDefault()) : e2.equals(2) ? (this._findInput.focusOnCaseSensitive(), void e2.preventDefault()) : e2.equals(1026) ? (this._findInput.focus(), void e2.preventDefault()) : e2.equals(2066) ? (this._codeEditor.focus(), void e2.preventDefault()) : e2.equals(16) ? Ar(e2, this._replaceInput.inputBox.value, this._replaceInput.inputBox.element.querySelector("textarea")) : e2.equals(18) ? Rr(e2, this._replaceInput.inputBox.value, this._replaceInput.inputBox.element.querySelector("textarea")) : void 0; } getVerticalSashLeft(e2) { return 0; @@ -60982,7 +60982,7 @@ ${Object(zn.b)(wi)} return t2 ? ` (${t2.getLabel()})` : ""; } _buildDomNode() { - this._findInput = this._register(new ro(null, this._contextViewProvider, {width: 221, label: bo, placeholder: _o, appendCaseSensitiveLabel: this._keybindingLabelFor(Ei), appendWholeWordsLabel: this._keybindingLabelFor(Ti), appendRegexLabel: this._keybindingLabelFor(Li), validation: (e3) => { + this._findInput = this._register(new or(null, this._contextViewProvider, {width: 221, label: fr, placeholder: br, appendCaseSensitiveLabel: this._keybindingLabelFor(Ei), appendWholeWordsLabel: this._keybindingLabelFor(Ti), appendRegexLabel: this._keybindingLabelFor(Li), validation: (e3) => { if (e3.length === 0 || !this._findInput.getRegex()) return null; try { @@ -61000,15 +61000,15 @@ ${Object(zn.b)(wi)} e3.equals(2) && this._isReplaceVisible && (this._replaceInput.focusOnPreserve(), e3.preventDefault()); })), this._register(this._findInput.inputBox.onDidHeightChange((e3) => { this._tryUpdateHeight() && this._showViewZone(); - })), Ae.d && this._register(this._findInput.onMouseDown((e3) => this._onFindInputMouseDown(e3))), this._matchesCount = document.createElement("div"), this._matchesCount.className = "matchesCount", this._updateMatchesCount(), this._prevBtn = this._register(new Fo({label: vo + this._keybindingLabelFor(yi), className: go.classNames, onTrigger: () => { + })), Ae.d && this._register(this._findInput.onMouseDown((e3) => this._onFindInputMouseDown(e3))), this._matchesCount = document.createElement("div"), this._matchesCount.className = "matchesCount", this._updateMatchesCount(), this._prevBtn = this._register(new Pr({label: _r + this._keybindingLabelFor(yi), className: mr.classNames, onTrigger: () => { this._codeEditor.getAction(yi).run().then(void 0, Z.e); - }})), this._nextBtn = this._register(new Fo({label: wo + this._keybindingLabelFor(wi), className: fo.classNames, onTrigger: () => { + }})), this._nextBtn = this._register(new Pr({label: vr + this._keybindingLabelFor(wi), className: gr.classNames, onTrigger: () => { this._codeEditor.getAction(wi).run().then(void 0, Z.e); }})); let e2 = document.createElement("div"); e2.className = "find-part", e2.appendChild(this._findInput.domNode); const t2 = document.createElement("div"); - t2.className = "find-actions", e2.appendChild(t2), t2.appendChild(this._matchesCount), t2.appendChild(this._prevBtn.domNode), t2.appendChild(this._nextBtn.domNode), this._toggleSelectionFind = this._register(new Pi({icon: lo, title: yo + this._keybindingLabelFor(Ni), isChecked: false})), this._register(this._toggleSelectionFind.onChange(() => { + t2.className = "find-actions", e2.appendChild(t2), t2.appendChild(this._matchesCount), t2.appendChild(this._prevBtn.domNode), t2.appendChild(this._nextBtn.domNode), this._toggleSelectionFind = this._register(new Pi({icon: lr, title: wr + this._keybindingLabelFor(Ni), isChecked: false})), this._register(this._toggleSelectionFind.onChange(() => { if (this._toggleSelectionFind.checked) { if (this._codeEditor.hasModel()) { let e3 = this._codeEditor.getSelections(); @@ -61016,11 +61016,11 @@ ${Object(zn.b)(wi)} } } else this._state.change({searchScope: null}, true); - })), t2.appendChild(this._toggleSelectionFind.domNode), this._closeBtn = this._register(new Fo({label: Co + this._keybindingLabelFor(ki), className: uo.classNames, onTrigger: () => { + })), t2.appendChild(this._toggleSelectionFind.domNode), this._closeBtn = this._register(new Pr({label: yr + this._keybindingLabelFor(ki), className: hr.classNames, onTrigger: () => { this._state.change({isRevealed: false, searchScope: null}, false); }, onKeyDown: (e3) => { e3.equals(2) && this._isReplaceVisible && (this._replaceBtn.isEnabled() ? this._replaceBtn.focus() : this._codeEditor.focus(), e3.preventDefault()); - }})), t2.appendChild(this._closeBtn.domNode), this._replaceInput = this._register(new so(null, void 0, {label: xo, placeholder: So, history: [], flexibleHeight: true, flexibleWidth: true, flexibleMaxHeight: 118}, this._contextKeyService, true)), this._replaceInput.setPreserveCase(!!this._state.preserveCase), this._register(this._replaceInput.onKeyDown((e3) => this._onReplaceInputKeyDown(e3))), this._register(this._replaceInput.inputBox.onDidChange(() => { + }})), t2.appendChild(this._closeBtn.domNode), this._replaceInput = this._register(new sr(null, void 0, {label: Cr, placeholder: xr, history: [], flexibleHeight: true, flexibleWidth: true, flexibleMaxHeight: 118}, this._contextKeyService, true)), this._replaceInput.setPreserveCase(!!this._state.preserveCase), this._register(this._replaceInput.onKeyDown((e3) => this._onReplaceInputKeyDown(e3))), this._register(this._replaceInput.inputBox.onDidChange(() => { this._state.change({replaceString: this._replaceInput.inputBox.value}, false); })), this._register(this._replaceInput.inputBox.onDidHeightChange((e3) => { this._isReplaceVisible && this._tryUpdateHeight() && this._showViewZone(); @@ -61028,25 +61028,25 @@ ${Object(zn.b)(wi)} this._state.change({preserveCase: this._replaceInput.getPreserveCase()}, true); })), this._register(this._replaceInput.onPreserveCaseKeyDown((e3) => { e3.equals(2) && (this._prevBtn.isEnabled() ? this._prevBtn.focus() : this._nextBtn.isEnabled() ? this._nextBtn.focus() : this._toggleSelectionFind.enabled ? this._toggleSelectionFind.focus() : this._closeBtn.isEnabled() && this._closeBtn.focus(), e3.preventDefault()); - })), this._replaceBtn = this._register(new Fo({label: ko + this._keybindingLabelFor(Ii), className: po.classNames, onTrigger: () => { + })), this._replaceBtn = this._register(new Pr({label: Sr + this._keybindingLabelFor(Ii), className: ur.classNames, onTrigger: () => { this._controller.replace(); }, onKeyDown: (e3) => { e3.equals(1026) && (this._closeBtn.focus(), e3.preventDefault()); - }})), this._replaceAllBtn = this._register(new Fo({label: Eo + this._keybindingLabelFor(Oi), className: mo.classNames, onTrigger: () => { + }})), this._replaceAllBtn = this._register(new Pr({label: kr + this._keybindingLabelFor(Di), className: pr.classNames, onTrigger: () => { this._controller.replaceAll(); }})); let n2 = document.createElement("div"); n2.className = "replace-part", n2.appendChild(this._replaceInput.domNode); const i2 = document.createElement("div"); - i2.className = "replace-actions", n2.appendChild(i2), i2.appendChild(this._replaceBtn.domNode), i2.appendChild(this._replaceAllBtn.domNode), this._toggleReplaceBtn = this._register(new Fo({label: To, className: "codicon toggle left", onTrigger: () => { + i2.className = "replace-actions", n2.appendChild(i2), i2.appendChild(this._replaceBtn.domNode), i2.appendChild(this._replaceAllBtn.domNode), this._toggleReplaceBtn = this._register(new Pr({label: Er, className: "codicon toggle left", onTrigger: () => { this._state.change({isReplaceRevealed: !this._isReplaceVisible}, false), this._isReplaceVisible && (this._replaceInput.width = ft.H(this._findInput.domNode), this._replaceInput.inputBox.layout()), this._showViewZone(); }})), this._toggleReplaceBtn.setExpanded(this._isReplaceVisible), this._domNode = document.createElement("div"), this._domNode.className = "editor-widget find-widget", this._domNode.setAttribute("aria-hidden", "true"), this._domNode.style.width = "419px", this._domNode.appendChild(this._toggleReplaceBtn.domNode), this._domNode.appendChild(e2), this._domNode.appendChild(n2), this._resizeSash = new $i.a(this._domNode, this, {orientation: 0, size: 2}), this._resized = false; - let o2 = 419; + let r2 = 419; this._register(this._resizeSash.onDidStart(() => { - o2 = ft.H(this._domNode); + r2 = ft.H(this._domNode); })), this._register(this._resizeSash.onDidChange((e3) => { this._resized = true; - let t3 = o2 + e3.startX - e3.currentX; + let t3 = r2 + e3.startX - e3.currentX; if (t3 < 419) return; t3 > (parseFloat(ft.z(this._domNode).maxWidth) || 0) || (this._domNode.style.width = t3 + "px", this._isReplaceVisible && (this._replaceInput.width = ft.H(this._findInput.domNode)), this._findInput.inputBox.layout(), this._tryUpdateHeight()); @@ -61067,8 +61067,8 @@ ${Object(zn.b)(wi)} this._findInput.setFocusInputOnOptionClick(e2 !== 2); } } - Po.ID = "editor.contrib.findWidget"; - class Fo extends Ri.a { + Mr.ID = "editor.contrib.findWidget"; + class Pr extends Ri.a { constructor(e2) { super(), this._opts = e2, this._domNode = document.createElement("div"), this._domNode.title = this._opts.label, this._domNode.tabIndex = 0, this._domNode.className = "button " + this._opts.className, this._domNode.setAttribute("role", "button"), this._domNode.setAttribute("aria-label", this._opts.label), this.onclick(this._domNode, (e3) => { this._opts.onTrigger(), e3.preventDefault(); @@ -61091,7 +61091,7 @@ ${Object(zn.b)(wi)} ft.ab(this._domNode, "disabled", !e2), this._domNode.setAttribute("aria-disabled", String(!e2)), this._domNode.tabIndex = e2 ? 0 : -1; } setExpanded(e2) { - this._domNode.setAttribute("aria-expanded", String(!!e2)), e2 ? (ft.R(this._domNode, co.classNames), ft.f(this._domNode, ho.classNames)) : (ft.R(this._domNode, ho.classNames), ft.f(this._domNode, co.classNames)); + this._domNode.setAttribute("aria-expanded", String(!!e2)), e2 ? (ft.R(this._domNode, cr.classNames), ft.f(this._domNode, dr.classNames)) : (ft.R(this._domNode, dr.classNames), ft.f(this._domNode, cr.classNames)); } } Object(we.g)((e2, t2) => { @@ -61102,10 +61102,10 @@ ${Object(zn.b)(wi)} n2(".find-widget", e2.getColor(ve.U)); const i2 = e2.getColor(ve.uc); i2 && t2.addRule(`.monaco-editor .find-widget { box-shadow: 0 2px 8px ${i2}; }`); - const o2 = e2.getColor(ve.y); - o2 && t2.addRule(`.monaco-editor .findMatch { border: 1px ${e2.type === "hc" ? "dotted" : "solid"} ${o2}; box-sizing: border-box; }`); - const r2 = e2.getColor(ve.w); - r2 && t2.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r2}; padding: 1px; box-sizing: border-box; }`); + const r2 = e2.getColor(ve.y); + r2 && t2.addRule(`.monaco-editor .findMatch { border: 1px ${e2.type === "hc" ? "dotted" : "solid"} ${r2}; box-sizing: border-box; }`); + const o2 = e2.getColor(ve.w); + o2 && t2.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${o2}; padding: 1px; box-sizing: border-box; }`); const s2 = e2.getColor(ve.A); s2 && t2.addRule(`.monaco-editor .findScope { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${s2}; }`); const a2 = e2.getColor(ve.h); @@ -61124,44 +61124,44 @@ ${Object(zn.b)(wi)} const h2 = e2.getColor(ve.Z); h2 && t2.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${h2}; }`); }); - var Wo = n(166), zo = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Fr = n(166), Wr = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Bo = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, zr = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; - }, jo = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }, Br = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - function Vo(e2) { + function jr(e2) { if (!e2.hasModel()) return null; const t2 = e2.getSelection(); @@ -61175,7 +61175,7 @@ ${Object(zn.b)(wi)} } return null; } - let Uo = class e2 extends pe.a { + let Vr = class e2 extends pe.a { constructor(e3, t2, n2, i2) { super(), this._editor = e3, this._findWidgetVisible = hi.bindTo(t2), this._contextKeyService = t2, this._storageService = n2, this._clipboardService = i2, this._updateHistoryDelayer = new ue.a(500), this._state = this._register(new qi()), this.loadQueryState(), this._register(this._state.onFindReplaceStateChange((e4) => this._onStateChanged(e4))), this._model = null, this._register(this._editor.onDidChangeModel(() => { let e4 = this._editor.getModel() && this._state.isRevealed; @@ -61232,12 +61232,12 @@ ${Object(zn.b)(wi)} highlightFindOptions() { } _start(e3) { - return jo(this, void 0, void 0, function* () { + return Br(this, void 0, void 0, function* () { if (this.disposeModel(), !this._editor.hasModel()) return; let t2 = {isRevealed: true}; if (e3.seedSearchStringFromSelection) { - let e4 = Vo(this._editor); + let e4 = jr(this._editor); e4 && (this._state.isRegex ? t2.searchString = Ye.v(e4) : t2.searchString = e4); } if (!t2.searchString && e3.seedSearchStringFromGlobalClipboard) { @@ -61272,7 +61272,7 @@ ${Object(zn.b)(wi)} return !!this._model && (this._model.selectAllMatches(), this._editor.focus(), true); } getGlobalBufferTerm() { - return jo(this, void 0, void 0, function* () { + return Br(this, void 0, void 0, function* () { return this._editor.getOption(29).globalFindClipboard && this._editor.hasModel() && !this._editor.getModel().isTooLargeForSyncing() ? this._clipboardService.readFindText() : ""; }); } @@ -61280,14 +61280,14 @@ ${Object(zn.b)(wi)} this._editor.getOption(29).globalFindClipboard && this._editor.hasModel() && !this._editor.getModel().isTooLargeForSyncing() && this._clipboardService.writeFindText(e3); } }; - Uo.ID = "editor.contrib.findController", Uo = zo([Bo(1, K.b), Bo(2, fn.a), Bo(3, Pe.a)], Uo); - let Ho = class extends Uo { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2) { - super(e2, n2, s2, l2), this._contextViewService = t2, this._keybindingService = i2, this._themeService = o2, this._notificationService = r2, this._storageKeysSyncRegistryService = a2, this._widget = null, this._findOptionsWidget = null; + Vr.ID = "editor.contrib.findController", Vr = Wr([zr(1, K.b), zr(2, fn.a), zr(3, Pe.a)], Vr); + let Ur = class extends Vr { + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2) { + super(e2, n2, s2, l2), this._contextViewService = t2, this._keybindingService = i2, this._themeService = r2, this._notificationService = o2, this._storageKeysSyncRegistryService = a2, this._widget = null, this._findOptionsWidget = null; } _start(e2) { const t2 = Object.create(null, {_start: {get: () => super._start}}); - return jo(this, void 0, void 0, function* () { + return Br(this, void 0, void 0, function* () { this._widget || this._createFindWidget(); const n2 = this._editor.getSelection(); let i2 = false; @@ -61308,102 +61308,102 @@ ${Object(zn.b)(wi)} this._widget || this._createFindWidget(), this._state.isRevealed ? this._widget.highlightFindOptions() : this._findOptionsWidget.highlightFindOptions(); } _createFindWidget() { - this._widget = this._register(new Po(this._editor, this, this._state, this._contextViewService, this._keybindingService, this._contextKeyService, this._themeService, this._storageService, this._notificationService, this._storageKeysSyncRegistryService)), this._findOptionsWidget = this._register(new Ui(this._editor, this._state, this._keybindingService, this._themeService)); + this._widget = this._register(new Mr(this._editor, this, this._state, this._contextViewService, this._keybindingService, this._contextKeyService, this._themeService, this._storageService, this._notificationService, this._storageKeysSyncRegistryService)), this._findOptionsWidget = this._register(new Ui(this._editor, this._state, this._keybindingService, this._themeService)); } }; - Ho = zo([Bo(1, _t.b), Bo(2, K.b), Bo(3, vt.a), Bo(4, we.c), Bo(5, zt.a), Bo(6, fn.a), Bo(7, Wo.a), Bo(8, Pe.a)], Ho); - class qo extends V.f { + Ur = Wr([zr(1, _t.b), zr(2, K.b), zr(3, vt.a), zr(4, we.c), zr(5, zt.a), zr(6, fn.a), zr(7, Fr.a), zr(8, Pe.a)], Ur); + class Hr extends V.f { constructor() { super({id: _i, label: U.a("startFindAction", "Find"), alias: "Find", precondition: void 0, kbOpts: {kbExpr: null, primary: 2084, weight: 100}, menuOpts: {menuId: ye.b.MenubarEditMenu, group: "3_find", title: U.a({key: "miFind", comment: ["&& denotes a mnemonic"]}, "&&Find"), order: 1}}); } run(e2, t2) { - return jo(this, void 0, void 0, function* () { - let e3 = Uo.get(t2); + return Br(this, void 0, void 0, function* () { + let e3 = Vr.get(t2); e3 && (yield e3.start({forceRevealReplace: false, seedSearchStringFromSelection: t2.getOption(29).seedSearchStringFromSelection, seedSearchStringFromGlobalClipboard: t2.getOption(29).globalFindClipboard, shouldFocus: 1, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop})); }); } } - class $o extends V.b { + class qr extends V.b { constructor() { super({id: vi, label: U.a("startFindWithSelectionAction", "Find With Selection"), alias: "Find With Selection", precondition: void 0, kbOpts: {kbExpr: null, primary: 0, mac: {primary: 2083}, weight: 100}}); } run(e2, t2) { - return jo(this, void 0, void 0, function* () { - let e3 = Uo.get(t2); + return Br(this, void 0, void 0, function* () { + let e3 = Vr.get(t2); e3 && (yield e3.start({forceRevealReplace: false, seedSearchStringFromSelection: true, seedSearchStringFromGlobalClipboard: false, shouldFocus: 0, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop}), e3.setGlobalBufferTerm(e3.getState().searchString)); }); } } - class Ko extends V.b { + class $r extends V.b { run(e2, t2) { - return jo(this, void 0, void 0, function* () { - let e3 = Uo.get(t2); + return Br(this, void 0, void 0, function* () { + let e3 = Vr.get(t2); e3 && !this._run(e3) && (yield e3.start({forceRevealReplace: false, seedSearchStringFromSelection: e3.getState().searchString.length === 0 && t2.getOption(29).seedSearchStringFromSelection, seedSearchStringFromGlobalClipboard: true, shouldFocus: 0, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop}), this._run(e3)); }); } } - class Go extends V.b { + class Kr extends V.b { run(e2, t2) { - return jo(this, void 0, void 0, function* () { - let e3 = Uo.get(t2); + return Br(this, void 0, void 0, function* () { + let e3 = Vr.get(t2); if (!e3) return; - let n2 = Vo(t2); + let n2 = jr(t2); n2 && e3.setSearchString(n2), this._run(e3) || (yield e3.start({forceRevealReplace: false, seedSearchStringFromSelection: t2.getOption(29).seedSearchStringFromSelection, seedSearchStringFromGlobalClipboard: false, shouldFocus: 0, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop}), this._run(e3)); }); } } - class Yo extends V.f { + class Gr extends V.f { constructor() { super({id: Si, label: U.a("startReplace", "Replace"), alias: "Replace", precondition: void 0, kbOpts: {kbExpr: null, primary: 2086, mac: {primary: 2596}, weight: 100}, menuOpts: {menuId: ye.b.MenubarEditMenu, group: "3_find", title: U.a({key: "miReplace", comment: ["&& denotes a mnemonic"]}, "&&Replace"), order: 2}}); } run(e2, t2) { - return jo(this, void 0, void 0, function* () { + return Br(this, void 0, void 0, function* () { if (!t2.hasModel() || t2.getOption(72)) return; - let e3 = Uo.get(t2), n2 = t2.getSelection(), i2 = e3.isFindInputFocused(), o2 = !n2.isEmpty() && n2.startLineNumber === n2.endLineNumber && t2.getOption(29).seedSearchStringFromSelection && !i2, r2 = i2 || o2 ? 2 : 1; - e3 && (yield e3.start({forceRevealReplace: true, seedSearchStringFromSelection: o2, seedSearchStringFromGlobalClipboard: t2.getOption(29).seedSearchStringFromSelection, shouldFocus: r2, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop})); + let e3 = Vr.get(t2), n2 = t2.getSelection(), i2 = e3.isFindInputFocused(), r2 = !n2.isEmpty() && n2.startLineNumber === n2.endLineNumber && t2.getOption(29).seedSearchStringFromSelection && !i2, o2 = i2 || r2 ? 2 : 1; + e3 && (yield e3.start({forceRevealReplace: true, seedSearchStringFromSelection: r2, seedSearchStringFromGlobalClipboard: t2.getOption(29).seedSearchStringFromSelection, shouldFocus: o2, shouldAnimate: true, updateSearchScope: false, loop: t2.getOption(29).loop})); }); } } - Object(V.m)(Uo.ID, Ho); - const Zo = new qo(); - Object(V.r)(Zo), Object(V.k)($o), Object(V.k)(class extends Ko { + Object(V.m)(Vr.ID, Ur); + const Yr = new Hr(); + Object(V.r)(Yr), Object(V.k)(qr), Object(V.k)(class extends $r { constructor() { super({id: wi, label: U.a("findNextMatchAction", "Find Next"), alias: "Find Next", precondition: void 0, kbOpts: {kbExpr: H.a.focus, primary: 61, mac: {primary: 2085, secondary: [61]}, weight: 100}}); } _run(e2) { return e2.moveToNextMatch(); } - }), Object(V.k)(class extends Ko { + }), Object(V.k)(class extends $r { constructor() { super({id: wi, label: U.a("findNextMatchAction", "Find Next"), alias: "Find Next", precondition: void 0, kbOpts: {kbExpr: K.a.and(H.a.focus, ui), primary: 3, weight: 100}}); } _run(e2) { return e2.moveToNextMatch(); } - }), Object(V.k)(class extends Ko { + }), Object(V.k)(class extends $r { constructor() { super({id: yi, label: U.a("findPreviousMatchAction", "Find Previous"), alias: "Find Previous", precondition: void 0, kbOpts: {kbExpr: H.a.focus, primary: 1085, mac: {primary: 3109, secondary: [1085]}, weight: 100}}); } _run(e2) { return e2.moveToPrevMatch(); } - }), Object(V.k)(class extends Ko { + }), Object(V.k)(class extends $r { constructor() { super({id: yi, label: U.a("findPreviousMatchAction", "Find Previous"), alias: "Find Previous", precondition: void 0, kbOpts: {kbExpr: K.a.and(H.a.focus, ui), primary: 1027, weight: 100}}); } _run(e2) { return e2.moveToPrevMatch(); } - }), Object(V.k)(class extends Go { + }), Object(V.k)(class extends Kr { constructor() { super({id: Ci, label: U.a("nextSelectionMatchFindAction", "Find Next Selection"), alias: "Find Next Selection", precondition: void 0, kbOpts: {kbExpr: H.a.focus, primary: 2109, weight: 100}}); } _run(e2) { return e2.moveToNextMatch(); } - }), Object(V.k)(class extends Go { + }), Object(V.k)(class extends Kr { constructor() { super({id: xi, label: U.a("previousSelectionMatchFindAction", "Find Previous Selection"), alias: "Find Previous Selection", precondition: void 0, kbOpts: {kbExpr: H.a.focus, primary: 3133, weight: 100}}); } @@ -61411,13 +61411,13 @@ ${Object(zn.b)(wi)} return e2.moveToPrevMatch(); } }); - const Xo = new Yo(); - Object(V.r)(Xo); - const Qo = V.c.bindToContribution(Uo.get); - Object(V.l)(new Qo({id: ki, precondition: hi, handler: (e2) => e2.closeFindWidget(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 9, secondary: [1033]}})), Object(V.l)(new Qo({id: Ei, precondition: void 0, handler: (e2) => e2.toggleCaseSensitive(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: mi.primary, mac: mi.mac, win: mi.win, linux: mi.linux}})), Object(V.l)(new Qo({id: Ti, precondition: void 0, handler: (e2) => e2.toggleWholeWords(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: gi.primary, mac: gi.mac, win: gi.win, linux: gi.linux}})), Object(V.l)(new Qo({id: Li, precondition: void 0, handler: (e2) => e2.toggleRegex(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: fi.primary, mac: fi.mac, win: fi.win, linux: fi.linux}})), Object(V.l)(new Qo({id: Ni, precondition: void 0, handler: (e2) => e2.toggleSearchScope(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: bi.primary, mac: bi.mac, win: bi.win, linux: bi.linux}})), Object(V.l)(new Qo({id: Ii, precondition: hi, handler: (e2) => e2.replace(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 3094}})), Object(V.l)(new Qo({id: Ii, precondition: hi, handler: (e2) => e2.replace(), kbOpts: {weight: 105, kbExpr: K.a.and(H.a.focus, pi), primary: 3}})), Object(V.l)(new Qo({id: Oi, precondition: hi, handler: (e2) => e2.replaceAll(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 2563}})), Object(V.l)(new Qo({id: Oi, precondition: hi, handler: (e2) => e2.replaceAll(), kbOpts: {weight: 105, kbExpr: K.a.and(H.a.focus, pi), primary: void 0, mac: {primary: 2051}}})), Object(V.l)(new Qo({id: Di, precondition: hi, handler: (e2) => e2.selectAllMatches(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 515}})); + const Zr = new Gr(); + Object(V.r)(Zr); + const Xr = V.c.bindToContribution(Vr.get); + Object(V.l)(new Xr({id: ki, precondition: hi, handler: (e2) => e2.closeFindWidget(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 9, secondary: [1033]}})), Object(V.l)(new Xr({id: Ei, precondition: void 0, handler: (e2) => e2.toggleCaseSensitive(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: mi.primary, mac: mi.mac, win: mi.win, linux: mi.linux}})), Object(V.l)(new Xr({id: Ti, precondition: void 0, handler: (e2) => e2.toggleWholeWords(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: gi.primary, mac: gi.mac, win: gi.win, linux: gi.linux}})), Object(V.l)(new Xr({id: Li, precondition: void 0, handler: (e2) => e2.toggleRegex(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: fi.primary, mac: fi.mac, win: fi.win, linux: fi.linux}})), Object(V.l)(new Xr({id: Ni, precondition: void 0, handler: (e2) => e2.toggleSearchScope(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: bi.primary, mac: bi.mac, win: bi.win, linux: bi.linux}})), Object(V.l)(new Xr({id: Ii, precondition: hi, handler: (e2) => e2.replace(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 3094}})), Object(V.l)(new Xr({id: Ii, precondition: hi, handler: (e2) => e2.replace(), kbOpts: {weight: 105, kbExpr: K.a.and(H.a.focus, pi), primary: 3}})), Object(V.l)(new Xr({id: Di, precondition: hi, handler: (e2) => e2.replaceAll(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 2563}})), Object(V.l)(new Xr({id: Di, precondition: hi, handler: (e2) => e2.replaceAll(), kbOpts: {weight: 105, kbExpr: K.a.and(H.a.focus, pi), primary: void 0, mac: {primary: 2051}}})), Object(V.l)(new Xr({id: Oi, precondition: hi, handler: (e2) => e2.selectAllMatches(), kbOpts: {weight: 105, kbExpr: H.a.focus, primary: 515}})); n(298); - var Jo = n(14); - class er { + var Qr = n(14); + class Jr { constructor(e2, t2, n2) { if (e2.length !== t2.length || e2.length > 65535) throw new Error("invalid startIndexes or endIndexes size"); @@ -61431,13 +61431,13 @@ ${Object(zn.b)(wi)} return this.getStartLineNumber(i2) <= t3 && this.getEndLineNumber(i2) >= n2; }; for (let n2 = 0, i2 = this._startIndexes.length; n2 < i2; n2++) { - let i3 = this._startIndexes[n2], o2 = this._endIndexes[n2]; - if (i3 > 16777215 || o2 > 16777215) + let i3 = this._startIndexes[n2], r2 = this._endIndexes[n2]; + if (i3 > 16777215 || r2 > 16777215) throw new Error("startLineNumber or endLineNumber must not exceed 16777215"); - for (; e2.length > 0 && !t2(i3, o2); ) + for (; e2.length > 0 && !t2(i3, r2); ) e2.pop(); - let r2 = e2.length > 0 ? e2[e2.length - 1] : -1; - e2.push(n2), this._startIndexes[n2] = i3 + ((255 & r2) << 24), this._endIndexes[n2] = o2 + ((65280 & r2) << 16); + let o2 = e2.length > 0 ? e2[e2.length - 1] : -1; + e2.push(n2), this._startIndexes[n2] = i3 + ((255 & o2) << 24), this._endIndexes[n2] = r2 + ((65280 & o2) << 16); } } } @@ -61461,11 +61461,11 @@ ${Object(zn.b)(wi)} return (this._collapseStates[t2] & 1 << n2) != 0; } setCollapsed(e2, t2) { - let n2 = e2 / 32 | 0, i2 = e2 % 32, o2 = this._collapseStates[n2]; - this._collapseStates[n2] = t2 ? o2 | 1 << i2 : o2 & ~(1 << i2); + let n2 = e2 / 32 | 0, i2 = e2 % 32, r2 = this._collapseStates[n2]; + this._collapseStates[n2] = t2 ? r2 | 1 << i2 : r2 & ~(1 << i2); } toRegion(e2) { - return new tr(this, e2); + return new eo(this, e2); } getParentIndex(e2) { this.ensureParentIndices(); @@ -61505,7 +61505,7 @@ ${Object(zn.b)(wi)} return e2.join(", "); } } - class tr { + class eo { constructor(e2, t2) { this.ranges = e2, this.index = t2; } @@ -61531,9 +61531,9 @@ ${Object(zn.b)(wi)} return this.startLineNumber <= e2 && e2 <= this.endLineNumber; } } - class nr { + class to { constructor(e2, t2) { - this._updateEventEmitter = new Lt.a(), this.onDidChange = this._updateEventEmitter.event, this._textModel = e2, this._decorationProvider = t2, this._regions = new er(new Uint32Array(0), new Uint32Array(0)), this._editorDecorationIds = [], this._isInitialized = false; + this._updateEventEmitter = new Lt.a(), this.onDidChange = this._updateEventEmitter.event, this._textModel = e2, this._decorationProvider = t2, this._regions = new Jr(new Uint32Array(0), new Uint32Array(0)), this._editorDecorationIds = [], this._isInitialized = false; } get regions() { return this._regions; @@ -61550,11 +61550,11 @@ ${Object(zn.b)(wi)} e2 = e2.sort((e3, t3) => e3.regionIndex - t3.regionIndex); const t2 = {}; this._decorationProvider.changeDecorations((n2) => { - let i2 = 0, o2 = -1, r2 = -1; + let i2 = 0, r2 = -1, o2 = -1; const s2 = (e3) => { for (; i2 < e3; ) { const e4 = this._regions.getEndLineNumber(i2), t3 = this._regions.isCollapsed(i2); - e4 <= o2 && n2.changeDecorationOptions(this._editorDecorationIds[i2], this._decorationProvider.getDecorationOption(t3, e4 <= r2)), t3 && e4 > r2 && (r2 = e4), i2++; + e4 <= r2 && n2.changeDecorationOptions(this._editorDecorationIds[i2], this._decorationProvider.getDecorationOption(t3, e4 <= o2)), t3 && e4 > o2 && (o2 = e4), i2++; } }; for (let n3 of e2) { @@ -61562,28 +61562,28 @@ ${Object(zn.b)(wi)} if (i3 && !t2[i3]) { t2[i3] = true, s2(e3); let n4 = !this._regions.isCollapsed(e3); - this._regions.setCollapsed(e3, n4), o2 = Math.max(o2, this._regions.getEndLineNumber(e3)); + this._regions.setCollapsed(e3, n4), r2 = Math.max(r2, this._regions.getEndLineNumber(e3)); } } s2(this._regions.length); }), this._updateEventEmitter.fire({model: this, collapseStateChanged: e2}); } update(e2, t2 = []) { - let n2 = [], i2 = -1, o2 = (o3, r3) => { - const s3 = e2.getStartLineNumber(o3), a3 = e2.getEndLineNumber(o3); - r3 && ((e3, n3) => { + let n2 = [], i2 = -1, r2 = (r3, o3) => { + const s3 = e2.getStartLineNumber(r3), a3 = e2.getEndLineNumber(r3); + o3 && ((e3, n3) => { for (let i3 of t2) if (e3 < i3 && i3 <= n3) return true; return false; - })(s3, a3) && (r3 = false), e2.setCollapsed(o3, r3); + })(s3, a3) && (o3 = false), e2.setCollapsed(r3, o3); const l3 = this._textModel.getLineMaxColumn(s3), c2 = {startLineNumber: s3, startColumn: l3, endLineNumber: s3, endColumn: l3}; - n2.push({range: c2, options: this._decorationProvider.getDecorationOption(r3, a3 <= i2)}), r3 && a3 > i2 && (i2 = a3); - }, r2 = 0, s2 = () => { - for (; r2 < this._regions.length; ) { - let e3 = this._regions.isCollapsed(r2); - if (r2++, e3) - return r2 - 1; + n2.push({range: c2, options: this._decorationProvider.getDecorationOption(o3, a3 <= i2)}), o3 && a3 > i2 && (i2 = a3); + }, o2 = 0, s2 = () => { + for (; o2 < this._regions.length; ) { + let e3 = this._regions.isCollapsed(o2); + if (o2++, e3) + return o2 - 1; } return -1; }, a2 = 0, l2 = s2(); @@ -61596,13 +61596,13 @@ ${Object(zn.b)(wi)} let t4 = e2.getStartLineNumber(a2); if (!(n3 >= t4)) break; - o2(a2, n3 === t4), a2++; + r2(a2, n3 === t4), a2++; } } l2 = s2(); } for (; a2 < e2.length; ) - o2(a2, false), a2++; + r2(a2, false), a2++; this._editorDecorationIds = this._decorationProvider.deltaDecorations(this._editorDecorationIds, n2), this._regions = e2, this._isInitialized = true, this._updateEventEmitter.fire({model: this}); } getMemento() { @@ -61611,8 +61611,8 @@ ${Object(zn.b)(wi)} if (this._regions.isCollapsed(t2)) { let n2 = this._textModel.getDecorationRange(this._editorDecorationIds[t2]); if (n2) { - let i2 = n2.startLineNumber, o2 = n2.endLineNumber + this._regions.getEndLineNumber(t2) - this._regions.getStartLineNumber(t2); - e2.push({startLineNumber: i2, endLineNumber: o2}); + let i2 = n2.startLineNumber, r2 = n2.endLineNumber + this._regions.getEndLineNumber(t2) - this._regions.getStartLineNumber(t2); + e2.push({startLineNumber: i2, endLineNumber: r2}); } } if (e2.length > 0) @@ -61634,10 +61634,10 @@ ${Object(zn.b)(wi)} getAllRegionsAtLine(e2, t2) { let n2 = []; if (this._regions) { - let i2 = this._regions.findRange(e2), o2 = 1; + let i2 = this._regions.findRange(e2), r2 = 1; for (; i2 >= 0; ) { let e3 = this._regions.toRegion(i2); - t2 && !t2(e3, o2) || n2.push(e3), o2++, i2 = e3.parentIndex; + t2 && !t2(e3, r2) || n2.push(e3), r2++, i2 = e3.parentIndex; } } return n2; @@ -61651,73 +61651,73 @@ ${Object(zn.b)(wi)} return null; } getRegionsInside(e2, t2) { - let n2 = [], i2 = e2 ? e2.regionIndex + 1 : 0, o2 = e2 ? e2.endLineNumber : Number.MAX_VALUE; + let n2 = [], i2 = e2 ? e2.regionIndex + 1 : 0, r2 = e2 ? e2.endLineNumber : Number.MAX_VALUE; if (t2 && t2.length === 2) { const e3 = []; - for (let r2 = i2, s2 = this._regions.length; r2 < s2; r2++) { - let i3 = this._regions.toRegion(r2); - if (!(this._regions.getStartLineNumber(r2) < o2)) + for (let o2 = i2, s2 = this._regions.length; o2 < s2; o2++) { + let i3 = this._regions.toRegion(o2); + if (!(this._regions.getStartLineNumber(o2) < r2)) break; for (; e3.length > 0 && !i3.containedBy(e3[e3.length - 1]); ) e3.pop(); e3.push(i3), t2(i3, e3.length) && n2.push(i3); } } else - for (let e3 = i2, r2 = this._regions.length; e3 < r2; e3++) { + for (let e3 = i2, o2 = this._regions.length; e3 < o2; e3++) { let i3 = this._regions.toRegion(e3); - if (!(this._regions.getStartLineNumber(e3) < o2)) + if (!(this._regions.getStartLineNumber(e3) < r2)) break; t2 && !t2(i3) || n2.push(i3); } return n2; } } - function ir(e2, t2, n2 = Number.MAX_VALUE, i2) { - let o2 = []; + function no(e2, t2, n2 = Number.MAX_VALUE, i2) { + let r2 = []; if (i2 && i2.length > 0) - for (let r2 of i2) { - let i3 = e2.getRegionAtLine(r2); - if (i3 && (i3.isCollapsed !== t2 && o2.push(i3), n2 > 1)) { - let r3 = e2.getRegionsInside(i3, (e3, i4) => e3.isCollapsed !== t2 && i4 < n2); - o2.push(...r3); + for (let o2 of i2) { + let i3 = e2.getRegionAtLine(o2); + if (i3 && (i3.isCollapsed !== t2 && r2.push(i3), n2 > 1)) { + let o3 = e2.getRegionsInside(i3, (e3, i4) => e3.isCollapsed !== t2 && i4 < n2); + r2.push(...o3); } } else { let i3 = e2.getRegionsInside(null, (e3, i4) => e3.isCollapsed !== t2 && i4 < n2); - o2.push(...i3); + r2.push(...i3); } - e2.toggleCollapseState(o2); + e2.toggleCollapseState(r2); } - function or(e2, t2, n2, i2) { - let o2 = []; - for (let r2 of i2) { - let i3 = e2.getAllRegionsAtLine(r2, (e3, i4) => e3.isCollapsed !== t2 && i4 <= n2); - o2.push(...i3); + function io(e2, t2, n2, i2) { + let r2 = []; + for (let o2 of i2) { + let i3 = e2.getAllRegionsAtLine(o2, (e3, i4) => e3.isCollapsed !== t2 && i4 <= n2); + r2.push(...i3); } - e2.toggleCollapseState(o2); + e2.toggleCollapseState(r2); } - function rr(e2, t2, n2) { - let i2 = e2.textModel, o2 = e2.regions, r2 = []; - for (let e3 = o2.length - 1; e3 >= 0; e3--) - if (n2 !== o2.isCollapsed(e3)) { - let n3 = o2.getStartLineNumber(e3); - t2.test(i2.getLineContent(n3)) && r2.push(o2.toRegion(e3)); + function ro(e2, t2, n2) { + let i2 = e2.textModel, r2 = e2.regions, o2 = []; + for (let e3 = r2.length - 1; e3 >= 0; e3--) + if (n2 !== r2.isCollapsed(e3)) { + let n3 = r2.getStartLineNumber(e3); + t2.test(i2.getLineContent(n3)) && o2.push(r2.toRegion(e3)); } - e2.toggleCollapseState(r2); + e2.toggleCollapseState(o2); } - function sr(e2, t2, n2) { - let i2 = e2.regions, o2 = []; + function oo(e2, t2, n2) { + let i2 = e2.regions, r2 = []; for (let e3 = i2.length - 1; e3 >= 0; e3--) - n2 !== i2.isCollapsed(e3) && t2 === i2.getType(e3) && o2.push(i2.toRegion(e3)); - e2.toggleCollapseState(o2); + n2 !== i2.isCollapsed(e3) && t2 === i2.getType(e3) && r2.push(i2.toRegion(e3)); + e2.toggleCollapseState(r2); } - const ar = Object(Y.e)("folding-expanded", Y.a.chevronDown), lr = Object(Y.e)("folding-collapsed", Y.a.chevronRight); - class cr { + const so = Object(Y.e)("folding-expanded", Y.a.chevronDown), ao = Object(Y.e)("folding-collapsed", Y.a.chevronRight); + class lo { constructor(e2) { this.editor = e2, this.autoHideFoldingControls = true, this.showFoldingHighlights = true; } getDecorationOption(e2, t2) { - return t2 ? cr.HIDDEN_RANGE_DECORATION : e2 ? this.showFoldingHighlights ? cr.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : cr.COLLAPSED_VISUAL_DECORATION : this.autoHideFoldingControls ? cr.EXPANDED_AUTO_HIDE_VISUAL_DECORATION : cr.EXPANDED_VISUAL_DECORATION; + return t2 ? lo.HIDDEN_RANGE_DECORATION : e2 ? this.showFoldingHighlights ? lo.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : lo.COLLAPSED_VISUAL_DECORATION : this.autoHideFoldingControls ? lo.EXPANDED_AUTO_HIDE_VISUAL_DECORATION : lo.EXPANDED_VISUAL_DECORATION; } deltaDecorations(e2, t2) { return this.editor.deltaDecorations(e2, t2); @@ -61726,8 +61726,8 @@ ${Object(zn.b)(wi)} return this.editor.changeDecorations(e2); } } - cr.COLLAPSED_VISUAL_DECORATION = be.a.register({stickiness: 1, afterContentClassName: "inline-folded", isWholeLine: true, firstLineDecorationClassName: lr.classNames}), cr.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = be.a.register({stickiness: 1, afterContentClassName: "inline-folded", className: "folded-background", isWholeLine: true, firstLineDecorationClassName: lr.classNames}), cr.EXPANDED_AUTO_HIDE_VISUAL_DECORATION = be.a.register({stickiness: 1, isWholeLine: true, firstLineDecorationClassName: ar.classNames}), cr.EXPANDED_VISUAL_DECORATION = be.a.register({stickiness: 1, isWholeLine: true, firstLineDecorationClassName: "alwaysShowFoldIcons " + ar.classNames}), cr.HIDDEN_RANGE_DECORATION = be.a.register({stickiness: 1}); - class dr { + lo.COLLAPSED_VISUAL_DECORATION = be.a.register({stickiness: 1, afterContentClassName: "inline-folded", isWholeLine: true, firstLineDecorationClassName: ao.classNames}), lo.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = be.a.register({stickiness: 1, afterContentClassName: "inline-folded", className: "folded-background", isWholeLine: true, firstLineDecorationClassName: ao.classNames}), lo.EXPANDED_AUTO_HIDE_VISUAL_DECORATION = be.a.register({stickiness: 1, isWholeLine: true, firstLineDecorationClassName: so.classNames}), lo.EXPANDED_VISUAL_DECORATION = be.a.register({stickiness: 1, isWholeLine: true, firstLineDecorationClassName: "alwaysShowFoldIcons " + so.classNames}), lo.HIDDEN_RANGE_DECORATION = be.a.register({stickiness: 1}); + class co { constructor(e2) { this._updateEventEmitter = new Lt.a(), this._foldingModel = e2, this._foldingModelListener = e2.onDidChange((e3) => this.updateHiddenRanges()), this._hiddenRanges = [], e2.regions.length && this.updateHiddenRanges(); } @@ -61738,12 +61738,12 @@ ${Object(zn.b)(wi)} return this._hiddenRanges; } updateHiddenRanges() { - let e2 = false, t2 = [], n2 = 0, i2 = 0, o2 = Number.MAX_VALUE, r2 = -1, s2 = this._foldingModel.regions; + let e2 = false, t2 = [], n2 = 0, i2 = 0, r2 = Number.MAX_VALUE, o2 = -1, s2 = this._foldingModel.regions; for (; n2 < s2.length; n2++) { if (!s2.isCollapsed(n2)) continue; let a2 = s2.getStartLineNumber(n2) + 1, l2 = s2.getEndLineNumber(n2); - o2 <= a2 && l2 <= r2 || (!e2 && i2 < this._hiddenRanges.length && this._hiddenRanges[i2].startLineNumber === a2 && this._hiddenRanges[i2].endLineNumber === l2 ? (t2.push(this._hiddenRanges[i2]), i2++) : (e2 = true, t2.push(new ge.a(a2, 1, l2, 1))), o2 = a2, r2 = l2); + r2 <= a2 && l2 <= o2 || (!e2 && i2 < this._hiddenRanges.length && this._hiddenRanges[i2].startLineNumber === a2 && this._hiddenRanges[i2].endLineNumber === l2 ? (t2.push(this._hiddenRanges[i2]), i2++) : (e2 = true, t2.push(new ge.a(a2, 1, l2, 1))), r2 = a2, o2 = l2); } (e2 || i2 < this._hiddenRanges.length) && this.applyHiddenRanges(t2); } @@ -61768,17 +61768,17 @@ ${Object(zn.b)(wi)} return this._hiddenRanges.length > 0; } isHidden(e2) { - return hr(this._hiddenRanges, e2) !== null; + return ho(this._hiddenRanges, e2) !== null; } adjustSelections(e2) { - let t2 = false, n2 = this._foldingModel.textModel, i2 = null, o2 = (e3) => (i2 && function(e4, t3) { + let t2 = false, n2 = this._foldingModel.textModel, i2 = null, r2 = (e3) => (i2 && function(e4, t3) { return e4 >= t3.startLineNumber && e4 <= t3.endLineNumber; - }(e3, i2) || (i2 = hr(this._hiddenRanges, e3)), i2 ? i2.startLineNumber - 1 : null); - for (let i3 = 0, r2 = e2.length; i3 < r2; i3++) { - let r3 = e2[i3], s2 = o2(r3.startLineNumber); - s2 && (r3 = r3.setStartPosition(s2, n2.getLineMaxColumn(s2)), t2 = true); - let a2 = o2(r3.endLineNumber); - a2 && (r3 = r3.setEndPosition(a2, n2.getLineMaxColumn(a2)), t2 = true), e2[i3] = r3; + }(e3, i2) || (i2 = ho(this._hiddenRanges, e3)), i2 ? i2.startLineNumber - 1 : null); + for (let i3 = 0, o2 = e2.length; i3 < o2; i3++) { + let o3 = e2[i3], s2 = r2(o3.startLineNumber); + s2 && (o3 = o3.setStartPosition(s2, n2.getLineMaxColumn(s2)), t2 = true); + let a2 = r2(o3.endLineNumber); + a2 && (o3 = o3.setEndPosition(a2, n2.getLineMaxColumn(a2)), t2 = true), e2[i3] = o3; } return t2; } @@ -61786,11 +61786,11 @@ ${Object(zn.b)(wi)} this.hiddenRanges.length > 0 && (this._hiddenRanges = [], this._updateEventEmitter.fire(this._hiddenRanges)), this._foldingModelListener && (this._foldingModelListener.dispose(), this._foldingModelListener = null); } } - function hr(e2, t2) { + function ho(e2, t2) { let n2 = Object(G.h)(e2, (e3) => t2 < e3.startLineNumber) - 1; return n2 >= 0 && e2[n2].endLineNumber >= t2 ? e2[n2] : null; } - class ur { + class uo { constructor(e2) { this.editorModel = e2, this.id = "indent"; } @@ -61799,13 +61799,13 @@ ${Object(zn.b)(wi)} compute(e2) { let t2 = Pn.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id), n2 = t2 && !!t2.offSide, i2 = t2 && t2.markers; return Promise.resolve(function(e3, t3, n3, i3 = 5e3) { - const o2 = e3.getOptions().tabSize; - let r2 = new pr(i3), s2 = void 0; + const r2 = e3.getOptions().tabSize; + let o2 = new po(i3), s2 = void 0; n3 && (s2 = new RegExp(`(${n3.start.source})|(?:${n3.end.source})`)); let a2 = [], l2 = e3.getLineCount() + 1; a2.push({indent: -1, endAbove: l2, line: l2}); for (let n4 = e3.getLineCount(); n4 > 0; n4--) { - let i4, l3 = e3.getLineContent(n4), c2 = be.b.computeIndentLevel(l3, o2), d2 = a2[a2.length - 1]; + let i4, l3 = e3.getLineContent(n4), c2 = be.b.computeIndentLevel(l3, r2), d2 = a2[a2.length - 1]; if (c2 !== -1) { if (s2 && (i4 = l3.match(s2))) { if (!i4[1]) { @@ -61817,7 +61817,7 @@ ${Object(zn.b)(wi)} for (; e4 > 0 && a2[e4].indent !== -2; ) e4--; if (e4 > 0) { - a2.length = e4 + 1, d2 = a2[e4], r2.insertFirst(n4, d2.line, c2), d2.line = n4, d2.indent = c2, d2.endAbove = n4; + a2.length = e4 + 1, d2 = a2[e4], o2.insertFirst(n4, d2.line, c2), d2.line = n4, d2.indent = c2, d2.endAbove = n4; continue; } } @@ -61827,17 +61827,17 @@ ${Object(zn.b)(wi)} a2.pop(), d2 = a2[a2.length - 1]; } while (d2.indent > c2); let e4 = d2.endAbove - 1; - e4 - n4 >= 1 && r2.insertFirst(n4, e4, c2); + e4 - n4 >= 1 && o2.insertFirst(n4, e4, c2); } d2.indent === c2 ? d2.endAbove = n4 : a2.push({indent: c2, endAbove: n4, line: n4}); } else t3 && (d2.endAbove = n4); } - return r2.toIndentRanges(e3); + return o2.toIndentRanges(e3); }(this.editorModel, n2, i2)); } } - class pr { + class po { constructor(e2) { this._startIndexes = [], this._endIndexes = [], this._indentOccurrences = [], this._length = 0, this._foldingRangesLimit = e2; } @@ -61852,7 +61852,7 @@ ${Object(zn.b)(wi)} let e3 = new Uint32Array(this._length), t2 = new Uint32Array(this._length); for (let n2 = this._length - 1, i2 = 0; n2 >= 0; n2--, i2++) e3[i2] = this._startIndexes[n2], t2[i2] = this._endIndexes[n2]; - return new er(e3, t2); + return new Jr(e3, t2); } { let t2 = 0, n2 = this._indentOccurrences.length; @@ -61867,34 +61867,34 @@ ${Object(zn.b)(wi)} } } const i2 = e2.getOptions().tabSize; - let o2 = new Uint32Array(this._foldingRangesLimit), r2 = new Uint32Array(this._foldingRangesLimit); + let r2 = new Uint32Array(this._foldingRangesLimit), o2 = new Uint32Array(this._foldingRangesLimit); for (let s2 = this._length - 1, a2 = 0; s2 >= 0; s2--) { let l2 = this._startIndexes[s2], c2 = e2.getLineContent(l2), d2 = be.b.computeIndentLevel(c2, i2); - (d2 < n2 || d2 === n2 && t2++ < this._foldingRangesLimit) && (o2[a2] = l2, r2[a2] = this._endIndexes[s2], a2++); + (d2 < n2 || d2 === n2 && t2++ < this._foldingRangesLimit) && (r2[a2] = l2, o2[a2] = this._endIndexes[s2], a2++); } - return new er(o2, r2); + return new Jr(r2, o2); } } } - const mr = {}; - class gr { + const mo = {}; + class go { constructor(e2, t2, n2 = 5e3) { this.editorModel = e2, this.providers = t2, this.limit = n2, this.id = "syntax"; } compute(e2) { return function(e3, t2, n2) { - let i2 = null, o2 = e3.map((e4, o3) => Promise.resolve(e4.provideFoldingRanges(t2, mr, n2)).then((e5) => { + let i2 = null, r2 = e3.map((e4, r3) => Promise.resolve(e4.provideFoldingRanges(t2, mo, n2)).then((e5) => { if (!n2.isCancellationRequested && Array.isArray(e5)) { Array.isArray(i2) || (i2 = []); let n3 = t2.getLineCount(); for (let t3 of e5) - t3.start > 0 && t3.end > t3.start && t3.end <= n3 && i2.push({start: t3.start, end: t3.end, rank: o3, kind: t3.kind}); + t3.start > 0 && t3.end > t3.start && t3.end <= n3 && i2.push({start: t3.start, end: t3.end, rank: r3, kind: t3.kind}); } }, Z.f)); - return Promise.all(o2).then((e4) => i2); + return Promise.all(r2).then((e4) => i2); }(this.providers, this.editorModel, e2).then((e3) => { if (e3) { - return br(e3, this.limit); + return bo(e3, this.limit); } return null; }); @@ -61902,22 +61902,22 @@ ${Object(zn.b)(wi)} dispose() { } } - class fr { + class fo { constructor(e2) { this._startIndexes = [], this._endIndexes = [], this._nestingLevels = [], this._nestingLevelCounts = [], this._types = [], this._length = 0, this._foldingRangesLimit = e2; } add(e2, t2, n2, i2) { if (e2 > 16777215 || t2 > 16777215) return; - let o2 = this._length; - this._startIndexes[o2] = e2, this._endIndexes[o2] = t2, this._nestingLevels[o2] = i2, this._types[o2] = n2, this._length++, i2 < 30 && (this._nestingLevelCounts[i2] = (this._nestingLevelCounts[i2] || 0) + 1); + let r2 = this._length; + this._startIndexes[r2] = e2, this._endIndexes[r2] = t2, this._nestingLevels[r2] = i2, this._types[r2] = n2, this._length++, i2 < 30 && (this._nestingLevelCounts[i2] = (this._nestingLevelCounts[i2] || 0) + 1); } toIndentRanges() { if (this._length <= this._foldingRangesLimit) { let e2 = new Uint32Array(this._length), t2 = new Uint32Array(this._length); for (let n2 = 0; n2 < this._length; n2++) e2[n2] = this._startIndexes[n2], t2[n2] = this._endIndexes[n2]; - return new er(e2, t2, this._types); + return new Jr(e2, t2, this._types); } { let e2 = 0, t2 = this._nestingLevelCounts.length; @@ -61931,43 +61931,43 @@ ${Object(zn.b)(wi)} e2 += i3; } } - let n2 = new Uint32Array(this._foldingRangesLimit), i2 = new Uint32Array(this._foldingRangesLimit), o2 = []; - for (let r2 = 0, s2 = 0; r2 < this._length; r2++) { - let a2 = this._nestingLevels[r2]; - (a2 < t2 || a2 === t2 && e2++ < this._foldingRangesLimit) && (n2[s2] = this._startIndexes[r2], i2[s2] = this._endIndexes[r2], o2[s2] = this._types[r2], s2++); + let n2 = new Uint32Array(this._foldingRangesLimit), i2 = new Uint32Array(this._foldingRangesLimit), r2 = []; + for (let o2 = 0, s2 = 0; o2 < this._length; o2++) { + let a2 = this._nestingLevels[o2]; + (a2 < t2 || a2 === t2 && e2++ < this._foldingRangesLimit) && (n2[s2] = this._startIndexes[o2], i2[s2] = this._endIndexes[o2], r2[s2] = this._types[o2], s2++); } - return new er(n2, i2, o2); + return new Jr(n2, i2, r2); } } } - function br(e2, t2) { + function bo(e2, t2) { let n2 = e2.sort((e3, t3) => { let n3 = e3.start - t3.start; return n3 === 0 && (n3 = e3.rank - t3.rank), n3; - }), i2 = new fr(t2), o2 = void 0, r2 = []; + }), i2 = new fo(t2), r2 = void 0, o2 = []; for (let e3 of n2) - if (o2) { - if (e3.start > o2.start) - if (e3.end <= o2.end) - r2.push(o2), o2 = e3, i2.add(e3.start, e3.end, e3.kind && e3.kind.value, r2.length); + if (r2) { + if (e3.start > r2.start) + if (e3.end <= r2.end) + o2.push(r2), r2 = e3, i2.add(e3.start, e3.end, e3.kind && e3.kind.value, o2.length); else { - if (e3.start > o2.end) { + if (e3.start > r2.end) { do { - o2 = r2.pop(); - } while (o2 && e3.start > o2.end); - o2 && r2.push(o2), o2 = e3; + r2 = o2.pop(); + } while (r2 && e3.start > r2.end); + r2 && o2.push(r2), r2 = e3; } - i2.add(e3.start, e3.end, e3.kind && e3.kind.value, r2.length); + i2.add(e3.start, e3.end, e3.kind && e3.kind.value, o2.length); } } else - o2 = e3, i2.add(e3.start, e3.end, e3.kind && e3.kind.value, r2.length); + r2 = e3, i2.add(e3.start, e3.end, e3.kind && e3.kind.value, o2.length); return i2.toIndentRanges(); } - class _r { + class _o { constructor(e2, t2, n2, i2) { if (this.editorModel = e2, this.id = "init", t2.length) { - let o2 = (t3) => ({range: {startLineNumber: t3.startLineNumber, startColumn: 0, endLineNumber: t3.endLineNumber, endColumn: e2.getLineLength(t3.endLineNumber)}, options: {stickiness: 1}}); - this.decorationIds = e2.deltaDecorations([], t2.map(o2)), this.timeout = setTimeout(n2, i2); + let r2 = (t3) => ({range: {startLineNumber: t3.startLineNumber, startColumn: 0, endLineNumber: t3.endLineNumber, endColumn: e2.getLineLength(t3.endLineNumber)}, options: {stickiness: 1}}); + this.decorationIds = e2.deltaDecorations([], t2.map(r2)), this.timeout = setTimeout(n2, i2); } } dispose() { @@ -61980,28 +61980,28 @@ ${Object(zn.b)(wi)} let n2 = this.editorModel.getDecorationRange(e3); n2 && t2.push({start: n2.startLineNumber, end: n2.endLineNumber, rank: 1}); } - return Promise.resolve(br(t2, Number.MAX_VALUE)); + return Promise.resolve(bo(t2, Number.MAX_VALUE)); } } - var vr = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var vo = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, wr = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, wo = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - const yr = new K.c("foldingEnabled", false); - let Cr = class e2 extends pe.a { + const yo = new K.c("foldingEnabled", false); + let Co = class e2 extends pe.a { constructor(e3, t2) { super(), this.contextKeyService = t2, this.localToDispose = this._register(new pe.b()), this.editor = e3; const n2 = this.editor.getOptions(); - this._isEnabled = n2.get(31), this._useFoldingProviders = n2.get(32) !== "indentation", this._unfoldOnClickAfterEndOfLine = n2.get(34), this.foldingModel = null, this.hiddenRangeModel = null, this.rangeProvider = null, this.foldingRegionPromise = null, this.foldingStateMemento = null, this.foldingModelPromise = null, this.updateScheduler = null, this.cursorChangedScheduler = null, this.mouseDownInfo = null, this.foldingDecorationProvider = new cr(e3), this.foldingDecorationProvider.autoHideFoldingControls = n2.get(91) === "mouseover", this.foldingDecorationProvider.showFoldingHighlights = n2.get(33), this.foldingEnabled = yr.bindTo(this.contextKeyService), this.foldingEnabled.set(this._isEnabled), this._register(this.editor.onDidChangeModel(() => this.onModelChanged())), this._register(this.editor.onDidChangeConfiguration((e4) => { + this._isEnabled = n2.get(31), this._useFoldingProviders = n2.get(32) !== "indentation", this._unfoldOnClickAfterEndOfLine = n2.get(34), this.foldingModel = null, this.hiddenRangeModel = null, this.rangeProvider = null, this.foldingRegionPromise = null, this.foldingStateMemento = null, this.foldingModelPromise = null, this.updateScheduler = null, this.cursorChangedScheduler = null, this.mouseDownInfo = null, this.foldingDecorationProvider = new lo(e3), this.foldingDecorationProvider.autoHideFoldingControls = n2.get(91) === "mouseover", this.foldingDecorationProvider.showFoldingHighlights = n2.get(33), this.foldingEnabled = yo.bindTo(this.contextKeyService), this.foldingEnabled.set(this._isEnabled), this._register(this.editor.onDidChangeModel(() => this.onModelChanged())), this._register(this.editor.onDidChangeConfiguration((e4) => { if (e4.hasChanged(31) && (this._isEnabled = this.editor.getOptions().get(31), this.foldingEnabled.set(this._isEnabled), this.onModelChanged()), e4.hasChanged(91) || e4.hasChanged(33)) { const e5 = this.editor.getOptions(); this.foldingDecorationProvider.autoHideFoldingControls = e5.get(91) === "mouseover", this.foldingDecorationProvider.showFoldingHighlights = e5.get(33), this.onModelContentChanged(); @@ -62039,7 +62039,7 @@ ${Object(zn.b)(wi)} onModelChanged() { this.localToDispose.clear(); let e3 = this.editor.getModel(); - this._isEnabled && e3 && !e3.isTooLargeForTokenization() && (this.foldingModel = new nr(e3, this.foldingDecorationProvider), this.localToDispose.add(this.foldingModel), this.hiddenRangeModel = new dr(this.foldingModel), this.localToDispose.add(this.hiddenRangeModel), this.localToDispose.add(this.hiddenRangeModel.onDidChange((e4) => this.onHiddenRangesChanges(e4))), this.updateScheduler = new ue.a(200), this.cursorChangedScheduler = new ue.d(() => this.revealCursor(), 200), this.localToDispose.add(this.cursorChangedScheduler), this.localToDispose.add(et.o.onDidChange(() => this.onFoldingStrategyChanged())), this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(() => this.onFoldingStrategyChanged())), this.localToDispose.add(this.editor.onDidChangeModelContent(() => this.onModelContentChanged())), this.localToDispose.add(this.editor.onDidChangeCursorPosition(() => this.onCursorPositionChanged())), this.localToDispose.add(this.editor.onMouseDown((e4) => this.onEditorMouseDown(e4))), this.localToDispose.add(this.editor.onMouseUp((e4) => this.onEditorMouseUp(e4))), this.localToDispose.add({dispose: () => { + this._isEnabled && e3 && !e3.isTooLargeForTokenization() && (this.foldingModel = new to(e3, this.foldingDecorationProvider), this.localToDispose.add(this.foldingModel), this.hiddenRangeModel = new co(this.foldingModel), this.localToDispose.add(this.hiddenRangeModel), this.localToDispose.add(this.hiddenRangeModel.onDidChange((e4) => this.onHiddenRangesChanges(e4))), this.updateScheduler = new ue.a(200), this.cursorChangedScheduler = new ue.d(() => this.revealCursor(), 200), this.localToDispose.add(this.cursorChangedScheduler), this.localToDispose.add(et.o.onDidChange(() => this.onFoldingStrategyChanged())), this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(() => this.onFoldingStrategyChanged())), this.localToDispose.add(this.editor.onDidChangeModelContent(() => this.onModelContentChanged())), this.localToDispose.add(this.editor.onDidChangeCursorPosition(() => this.onCursorPositionChanged())), this.localToDispose.add(this.editor.onMouseDown((e4) => this.onEditorMouseDown(e4))), this.localToDispose.add(this.editor.onMouseUp((e4) => this.onEditorMouseUp(e4))), this.localToDispose.add({dispose: () => { this.foldingRegionPromise && (this.foldingRegionPromise.cancel(), this.foldingRegionPromise = null), this.updateScheduler && this.updateScheduler.cancel(), this.updateScheduler = null, this.foldingModel = null, this.foldingModelPromise = null, this.hiddenRangeModel = null, this.cursorChangedScheduler = null, this.foldingStateMemento = null, this.rangeProvider && this.rangeProvider.dispose(), this.rangeProvider = null; }}), this.onModelContentChanged()); } @@ -62049,14 +62049,14 @@ ${Object(zn.b)(wi)} getRangeProvider(e3) { if (this.rangeProvider) return this.rangeProvider; - if (this.rangeProvider = new ur(e3), this._useFoldingProviders && this.foldingModel) { + if (this.rangeProvider = new uo(e3), this._useFoldingProviders && this.foldingModel) { let t2 = et.o.ordered(this.foldingModel.textModel); if (t2.length === 0 && this.foldingStateMemento && this.foldingStateMemento.collapsedRegions) { - return this.rangeProvider = new _r(e3, this.foldingStateMemento.collapsedRegions, () => { + return this.rangeProvider = new _o(e3, this.foldingStateMemento.collapsedRegions, () => { this.foldingStateMemento = null, this.onFoldingStrategyChanged(); }, 3e4); } - t2.length > 0 && (this.rangeProvider = new gr(e3, t2)); + t2.length > 0 && (this.rangeProvider = new go(e3, t2)); } return this.foldingStateMemento = null, this.rangeProvider; } @@ -62113,8 +62113,8 @@ ${Object(zn.b)(wi)} let n2 = false; switch (e3.target.type) { case 4: - const i2 = e3.target.detail, o2 = e3.target.element.offsetLeft; - if (i2.offsetX - o2 < 5) + const i2 = e3.target.detail, r2 = e3.target.element.offsetLeft; + if (i2.offsetX - r2 < 5) return; n2 = true; break; @@ -62140,27 +62140,27 @@ ${Object(zn.b)(wi)} const t2 = this.getFoldingModel(); if (!t2 || !this.mouseDownInfo || !e3.target) return; - let n2 = this.mouseDownInfo.lineNumber, i2 = this.mouseDownInfo.iconClicked, o2 = e3.target.range; - if (o2 && o2.startLineNumber === n2) { + let n2 = this.mouseDownInfo.lineNumber, i2 = this.mouseDownInfo.iconClicked, r2 = e3.target.range; + if (r2 && r2.startLineNumber === n2) { if (i2) { if (e3.target.type !== 4) return; } else { let e4 = this.editor.getModel(); - if (!e4 || o2.startColumn !== e4.getLineMaxColumn(n2)) + if (!e4 || r2.startColumn !== e4.getLineMaxColumn(n2)) return; } t2.then((t3) => { if (t3) { - let o3 = t3.getRegionAtLine(n2); - if (o3 && o3.startLineNumber === n2) { - let r2 = o3.isCollapsed; - if (i2 || r2) { + let r3 = t3.getRegionAtLine(n2); + if (r3 && r3.startLineNumber === n2) { + let o2 = r3.isCollapsed; + if (i2 || o2) { let i3 = [], s2 = e3.event.middleButton || e3.event.shiftKey; if (s2) - for (const e4 of t3.getRegionsInside(o3)) - e4.isCollapsed === r2 && i3.push(e4); - !r2 && s2 && i3.length !== 0 || i3.push(o3), t3.toggleCollapseState(i3), this.reveal({lineNumber: n2, column: 1}); + for (const e4 of t3.getRegionsInside(r3)) + e4.isCollapsed === o2 && i3.push(e4); + !o2 && s2 && i3.length !== 0 || i3.push(r3), t3.toggleCollapseState(i3), this.reveal({lineNumber: n2, column: 1}); } } } @@ -62171,18 +62171,18 @@ ${Object(zn.b)(wi)} this.editor.revealPositionInCenterIfOutsideViewport(e3, 0); } }; - Cr.ID = "editor.contrib.folding", Cr = vr([wr(1, K.b)], Cr); - class xr extends V.b { + Co.ID = "editor.contrib.folding", Co = vo([wo(1, K.b)], Co); + class xo extends V.b { runEditorCommand(e2, t2, n2) { - let i2 = Cr.get(t2); + let i2 = Co.get(t2); if (!i2) return; - let o2 = i2.getFoldingModel(); - return o2 ? (this.reportTelemetry(e2, t2), o2.then((e3) => { + let r2 = i2.getFoldingModel(); + return r2 ? (this.reportTelemetry(e2, t2), r2.then((e3) => { if (e3) { this.invoke(i2, e3, t2, n2); - const o3 = t2.getSelection(); - o3 && i2.reveal(o3.getStartPosition()); + const r3 = t2.getSelection(); + r3 && i2.reveal(r3.getStartPosition()); } })) : void 0; } @@ -62196,149 +62196,149 @@ ${Object(zn.b)(wi)} run(e2, t2) { } } - function Sr(e2) { - if (!Jo.k(e2)) { - if (!Jo.i(e2)) + function So(e2) { + if (!Qr.k(e2)) { + if (!Qr.i(e2)) return false; const t2 = e2; - if (!Jo.k(t2.levels) && !Jo.h(t2.levels)) + if (!Qr.k(t2.levels) && !Qr.h(t2.levels)) return false; - if (!Jo.k(t2.direction) && !Jo.j(t2.direction)) + if (!Qr.k(t2.direction) && !Qr.j(t2.direction)) return false; - if (!(Jo.k(t2.selectionLines) || Jo.e(t2.selectionLines) && t2.selectionLines.every(Jo.h))) + if (!(Qr.k(t2.selectionLines) || Qr.e(t2.selectionLines) && t2.selectionLines.every(Qr.h))) return false; } return true; } - class kr extends xr { + class ko extends xo { getFoldingLevel() { - return parseInt(this.id.substr(kr.ID_PREFIX.length)); + return parseInt(this.id.substr(ko.ID_PREFIX.length)); } invoke(e2, t2, n2) { !function(e3, t3, n3, i2) { - let o2 = e3.getRegionsInside(null, (e4, o3) => o3 === t3 && e4.isCollapsed !== n3 && !i2.some((t4) => e4.containsLine(t4))); - e3.toggleCollapseState(o2); + let r2 = e3.getRegionsInside(null, (e4, r3) => r3 === t3 && e4.isCollapsed !== n3 && !i2.some((t4) => e4.containsLine(t4))); + e3.toggleCollapseState(r2); }(t2, this.getFoldingLevel(), true, this.getSelectedLines(n2)); } } - kr.ID_PREFIX = "editor.foldLevel", kr.ID = (e2) => kr.ID_PREFIX + e2, Object(V.m)(Cr.ID, Cr), Object(V.k)(class extends xr { + ko.ID_PREFIX = "editor.foldLevel", ko.ID = (e2) => ko.ID_PREFIX + e2, Object(V.m)(Co.ID, Co), Object(V.k)(class extends xo { constructor() { - super({id: "editor.unfold", label: U.a("unfoldAction.label", "Unfold"), alias: "Unfold", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3161, mac: {primary: 2649}, weight: 100}, description: {description: "Unfold the content in the editor", args: [{name: "Unfold editor argument", description: "Property-value pairs that can be passed through this argument:\n * 'levels': Number of levels to unfold. If not set, defaults to 1.\n * 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n * 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n ", constraint: Sr, schema: {type: "object", properties: {levels: {type: "number", default: 1}, direction: {type: "string", enum: ["up", "down"], default: "down"}, selectionLines: {type: "array", items: {type: "number"}}}}}]}}); + super({id: "editor.unfold", label: U.a("unfoldAction.label", "Unfold"), alias: "Unfold", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3161, mac: {primary: 2649}, weight: 100}, description: {description: "Unfold the content in the editor", args: [{name: "Unfold editor argument", description: "Property-value pairs that can be passed through this argument:\n * 'levels': Number of levels to unfold. If not set, defaults to 1.\n * 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n * 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n ", constraint: So, schema: {type: "object", properties: {levels: {type: "number", default: 1}, direction: {type: "string", enum: ["up", "down"], default: "down"}, selectionLines: {type: "array", items: {type: "number"}}}}}]}}); } invoke(e2, t2, n2, i2) { - let o2 = i2 && i2.levels || 1, r2 = this.getLineNumbers(i2, n2); - i2 && i2.direction === "up" ? or(t2, false, o2, r2) : ir(t2, false, o2, r2); + let r2 = i2 && i2.levels || 1, o2 = this.getLineNumbers(i2, n2); + i2 && i2.direction === "up" ? io(t2, false, r2, o2) : no(t2, false, r2, o2); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.unfoldRecursively", label: U.a("unFoldRecursivelyAction.label", "Unfold Recursively"), alias: "Unfold Recursively", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2137), weight: 100}}); + super({id: "editor.unfoldRecursively", label: U.a("unFoldRecursivelyAction.label", "Unfold Recursively"), alias: "Unfold Recursively", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2137), weight: 100}}); } invoke(e2, t2, n2, i2) { - ir(t2, false, Number.MAX_VALUE, this.getSelectedLines(n2)); + no(t2, false, Number.MAX_VALUE, this.getSelectedLines(n2)); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.fold", label: U.a("foldAction.label", "Fold"), alias: "Fold", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3159, mac: {primary: 2647}, weight: 100}, description: {description: "Fold the content in the editor", args: [{name: "Fold editor argument", description: "Property-value pairs that can be passed through this argument:\n * 'levels': Number of levels to fold.\n * 'direction': If 'up', folds given number of levels up otherwise folds down.\n * 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n ", constraint: Sr, schema: {type: "object", properties: {levels: {type: "number"}, direction: {type: "string", enum: ["up", "down"]}, selectionLines: {type: "array", items: {type: "number"}}}}}]}}); + super({id: "editor.fold", label: U.a("foldAction.label", "Fold"), alias: "Fold", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3159, mac: {primary: 2647}, weight: 100}, description: {description: "Fold the content in the editor", args: [{name: "Fold editor argument", description: "Property-value pairs that can be passed through this argument:\n * 'levels': Number of levels to fold.\n * 'direction': If 'up', folds given number of levels up otherwise folds down.\n * 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n ", constraint: So, schema: {type: "object", properties: {levels: {type: "number"}, direction: {type: "string", enum: ["up", "down"]}, selectionLines: {type: "array", items: {type: "number"}}}}}]}}); } invoke(e2, t2, n2, i2) { - let o2 = this.getLineNumbers(i2, n2); - const r2 = i2 && i2.levels, s2 = i2 && i2.direction; - typeof r2 != "number" && typeof s2 != "string" ? function(e3, t3, n3) { + let r2 = this.getLineNumbers(i2, n2); + const o2 = i2 && i2.levels, s2 = i2 && i2.direction; + typeof o2 != "number" && typeof s2 != "string" ? function(e3, t3, n3) { let i3 = []; - for (let o3 of n3) { - let n4 = e3.getAllRegionsAtLine(o3, (e4) => e4.isCollapsed !== t3); + for (let r3 of n3) { + let n4 = e3.getAllRegionsAtLine(r3, (e4) => e4.isCollapsed !== t3); n4.length > 0 && i3.push(n4[0]); } e3.toggleCollapseState(i3); - }(t2, true, o2) : s2 === "up" ? or(t2, true, r2 || 1, o2) : ir(t2, true, r2 || 1, o2); + }(t2, true, r2) : s2 === "up" ? io(t2, true, o2 || 1, r2) : no(t2, true, o2 || 1, r2); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.foldRecursively", label: U.a("foldRecursivelyAction.label", "Fold Recursively"), alias: "Fold Recursively", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2135), weight: 100}}); + super({id: "editor.foldRecursively", label: U.a("foldRecursivelyAction.label", "Fold Recursively"), alias: "Fold Recursively", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2135), weight: 100}}); } invoke(e2, t2, n2) { let i2 = this.getSelectedLines(n2); - ir(t2, true, Number.MAX_VALUE, i2); + no(t2, true, Number.MAX_VALUE, i2); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.foldAll", label: U.a("foldAllAction.label", "Fold All"), alias: "Fold All", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2069), weight: 100}}); + super({id: "editor.foldAll", label: U.a("foldAllAction.label", "Fold All"), alias: "Fold All", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2069), weight: 100}}); } invoke(e2, t2, n2) { - ir(t2, true); + no(t2, true); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.unfoldAll", label: U.a("unfoldAllAction.label", "Unfold All"), alias: "Unfold All", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2088), weight: 100}}); + super({id: "editor.unfoldAll", label: U.a("unfoldAllAction.label", "Unfold All"), alias: "Unfold All", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2088), weight: 100}}); } invoke(e2, t2, n2) { - ir(t2, false); + no(t2, false); } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.foldAllBlockComments", label: U.a("foldAllBlockComments.label", "Fold All Block Comments"), alias: "Fold All Block Comments", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2133), weight: 100}}); + super({id: "editor.foldAllBlockComments", label: U.a("foldAllBlockComments.label", "Fold All Block Comments"), alias: "Fold All Block Comments", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2133), weight: 100}}); } invoke(e2, t2, n2) { if (t2.regions.hasTypes()) - sr(t2, et.n.Comment.value, true); + oo(t2, et.n.Comment.value, true); else { const e3 = n2.getModel(); if (!e3) return; let i2 = Pn.a.getComments(e3.getLanguageIdentifier().id); if (i2 && i2.blockCommentStartToken) { - rr(t2, new RegExp("^\\s*" + Object(Ye.v)(i2.blockCommentStartToken)), true); + ro(t2, new RegExp("^\\s*" + Object(Ye.v)(i2.blockCommentStartToken)), true); } } } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.foldAllMarkerRegions", label: U.a("foldAllMarkerRegions.label", "Fold All Regions"), alias: "Fold All Regions", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2077), weight: 100}}); + super({id: "editor.foldAllMarkerRegions", label: U.a("foldAllMarkerRegions.label", "Fold All Regions"), alias: "Fold All Regions", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2077), weight: 100}}); } invoke(e2, t2, n2) { if (t2.regions.hasTypes()) - sr(t2, et.n.Region.value, true); + oo(t2, et.n.Region.value, true); else { const e3 = n2.getModel(); if (!e3) return; let i2 = Pn.a.getFoldingRules(e3.getLanguageIdentifier().id); if (i2 && i2.markers && i2.markers.start) { - rr(t2, new RegExp(i2.markers.start), true); + ro(t2, new RegExp(i2.markers.start), true); } } } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.unfoldAllMarkerRegions", label: U.a("unfoldAllMarkerRegions.label", "Unfold All Regions"), alias: "Unfold All Regions", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2078), weight: 100}}); + super({id: "editor.unfoldAllMarkerRegions", label: U.a("unfoldAllMarkerRegions.label", "Unfold All Regions"), alias: "Unfold All Regions", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2078), weight: 100}}); } invoke(e2, t2, n2) { if (t2.regions.hasTypes()) - sr(t2, et.n.Region.value, false); + oo(t2, et.n.Region.value, false); else { const e3 = n2.getModel(); if (!e3) return; let i2 = Pn.a.getFoldingRules(e3.getLanguageIdentifier().id); if (i2 && i2.markers && i2.markers.start) { - rr(t2, new RegExp(i2.markers.start), false); + ro(t2, new RegExp(i2.markers.start), false); } } } - }), Object(V.k)(class extends xr { + }), Object(V.k)(class extends xo { constructor() { - super({id: "editor.toggleFold", label: U.a("toggleFoldAction.label", "Toggle Fold"), alias: "Toggle Fold", precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2090), weight: 100}}); + super({id: "editor.toggleFold", label: U.a("toggleFoldAction.label", "Toggle Fold"), alias: "Toggle Fold", precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2090), weight: 100}}); } invoke(e2, t2, n2) { !function(e3, t3, n3) { let i2 = []; - for (let o2 of n3) { - let n4 = e3.getRegionAtLine(o2); + for (let r2 of n3) { + let n4 = e3.getRegionAtLine(r2); if (n4) { - const o3 = !n4.isCollapsed; + const r3 = !n4.isCollapsed; if (i2.push(n4), t3 > 1) { - let r2 = e3.getRegionsInside(n4, (e4, n5) => e4.isCollapsed !== o3 && n5 < t3); - i2.push(...r2); + let o2 = e3.getRegionsInside(n4, (e4, n5) => e4.isCollapsed !== r3 && n5 < t3); + i2.push(...o2); } } } @@ -62347,47 +62347,47 @@ ${Object(zn.b)(wi)} } }); for (let e2 = 1; e2 <= 7; e2++) - Object(V.n)(new kr({id: kr.ID(e2), label: U.a("foldLevelAction.label", "Fold Level {0}", e2), alias: "Fold Level " + e2, precondition: yr, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2048 | 21 + e2), weight: 100}})); - const Er = Object(ve.gc)("editor.foldBackground", {light: Object(ve.sc)(ve.O, 0.3), dark: Object(ve.sc)(ve.O, 0.3), hc: null}, U.a("foldBackgroundBackground", "Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."), true), Tr = Object(ve.gc)("editorGutter.foldingControlForeground", {dark: ve.bb, light: ve.bb, hc: ve.bb}, U.a("editorGutter.foldingControlForeground", "Color of the folding control in the editor gutter.")); + Object(V.n)(new ko({id: ko.ID(e2), label: U.a("foldLevelAction.label", "Fold Level {0}", e2), alias: "Fold Level " + e2, precondition: yo, kbOpts: {kbExpr: H.a.editorTextFocus, primary: Object($.a)(2089, 2048 | 21 + e2), weight: 100}})); + const Eo = Object(ve.gc)("editor.foldBackground", {light: Object(ve.sc)(ve.O, 0.3), dark: Object(ve.sc)(ve.O, 0.3), hc: null}, U.a("foldBackgroundBackground", "Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."), true), To = Object(ve.gc)("editorGutter.foldingControlForeground", {dark: ve.bb, light: ve.bb, hc: ve.bb}, U.a("editorGutter.foldingControlForeground", "Color of the folding control in the editor gutter.")); Object(we.g)((e2, t2) => { - const n2 = e2.getColor(Er); + const n2 = e2.getColor(Eo); n2 && t2.addRule(`.monaco-editor .folded-background { background-color: ${n2}; }`); - const i2 = e2.getColor(Tr); + const i2 = e2.getColor(To); i2 && t2.addRule(` - .monaco-editor .cldr${ar.cssSelector}, - .monaco-editor .cldr${lr.cssSelector} { + .monaco-editor .cldr${so.cssSelector}, + .monaco-editor .cldr${ao.cssSelector} { color: ${i2} !important; } `); }); - var Lr = n(135); - class Nr extends V.b { + var Lo = n(135); + class No extends V.b { constructor() { super({id: "editor.action.fontZoomIn", label: U.a("EditorFontZoomIn.label", "Editor Font Zoom In"), alias: "Editor Font Zoom In", precondition: void 0}); } run(e2, t2) { - Lr.a.setZoomLevel(Lr.a.getZoomLevel() + 1); + Lo.a.setZoomLevel(Lo.a.getZoomLevel() + 1); } } - class Ir extends V.b { + class Io extends V.b { constructor() { super({id: "editor.action.fontZoomOut", label: U.a("EditorFontZoomOut.label", "Editor Font Zoom Out"), alias: "Editor Font Zoom Out", precondition: void 0}); } run(e2, t2) { - Lr.a.setZoomLevel(Lr.a.getZoomLevel() - 1); + Lo.a.setZoomLevel(Lo.a.getZoomLevel() - 1); } } - class Or extends V.b { + class Do extends V.b { constructor() { super({id: "editor.action.fontZoomReset", label: U.a("EditorFontZoomReset.label", "Editor Font Zoom Reset"), alias: "Editor Font Zoom Reset", precondition: void 0}); } run(e2, t2) { - Lr.a.setZoomLevel(0); + Lo.a.setZoomLevel(0); } } - Object(V.k)(Nr), Object(V.k)(Ir), Object(V.k)(Or); - var Dr = n(76), Ar = n(96), Rr = n(112); - class Mr { + Object(V.k)(No), Object(V.k)(Io), Object(V.k)(Do); + var Oo = n(76), Ao = n(96), Ro = n(112); + class Mo { static _handleEolEdits(e2, t2) { let n2 = void 0, i2 = []; for (let e3 of t2) @@ -62402,11 +62402,11 @@ ${Object(zn.b)(wi)} } static execute(e2, t2, n2) { n2 && e2.pushUndoStop(); - const i2 = Mr._handleEolEdits(e2, t2); - i2.length === 1 && Mr._isFullModelReplaceEdit(e2, i2[0]) ? e2.executeEdits("formatEditsCommand", i2.map((e3) => Mn.a.replace(ge.a.lift(e3.range), e3.text))) : e2.executeEdits("formatEditsCommand", i2.map((e3) => Mn.a.replaceMove(ge.a.lift(e3.range), e3.text))), n2 && e2.pushUndoStop(); + const i2 = Mo._handleEolEdits(e2, t2); + i2.length === 1 && Mo._isFullModelReplaceEdit(e2, i2[0]) ? e2.executeEdits("formatEditsCommand", i2.map((e3) => Mn.a.replace(ge.a.lift(e3.range), e3.text))) : e2.executeEdits("formatEditsCommand", i2.map((e3) => Mn.a.replaceMove(ge.a.lift(e3.range), e3.text))), n2 && e2.pushUndoStop(); } } - class Pr { + class Po { constructor(e2) { this.value = e2, this._lower = e2.toLowerCase(); } @@ -62414,32 +62414,32 @@ ${Object(zn.b)(wi)} return typeof e2 == "string" ? e2.toLowerCase() : e2._lower; } } - var Fr = n(53), Wr = n(37), zr = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var Fo = n(53), Wo = n(37), zo = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - function Br(e2) { + function Bo(e2) { if (!(e2 = e2.filter((e3) => e3.range)).length) return; let {range: t2} = e2[0]; @@ -62448,49 +62448,49 @@ ${Object(zn.b)(wi)} const {startLineNumber: n2, endLineNumber: i2} = t2; n2 === i2 ? e2.length === 1 ? Object(ne.a)(U.a("hint11", "Made 1 formatting edit on line {0}", n2)) : Object(ne.a)(U.a("hintn1", "Made {0} formatting edits on line {1}", e2.length, n2)) : e2.length === 1 ? Object(ne.a)(U.a("hint1n", "Made 1 formatting edit between lines {0} and {1}", n2, i2)) : Object(ne.a)(U.a("hintnn", "Made {0} formatting edits between lines {1} and {2}", e2.length, n2, i2)); } - function jr(e2) { + function jo(e2) { const t2 = [], n2 = new Set(), i2 = et.g.ordered(e2); for (const e3 of i2) - t2.push(e3), e3.extensionId && n2.add(Pr.toKey(e3.extensionId)); - const o2 = et.j.ordered(e2); - for (const e3 of o2) { + t2.push(e3), e3.extensionId && n2.add(Po.toKey(e3.extensionId)); + const r2 = et.j.ordered(e2); + for (const e3 of r2) { if (e3.extensionId) { - if (n2.has(Pr.toKey(e3.extensionId))) + if (n2.has(Po.toKey(e3.extensionId))) continue; - n2.add(Pr.toKey(e3.extensionId)); + n2.add(Po.toKey(e3.extensionId)); } t2.push({displayName: e3.displayName, extensionId: e3.extensionId, provideDocumentFormattingEdits: (t3, n3, i3) => e3.provideDocumentRangeFormattingEdits(t3, t3.getFullModelRange(), n3, i3)}); } return t2; } - class Vr { + class Vo { static select(e2, t2, n2) { - return zr(this, void 0, void 0, function* () { + return zo(this, void 0, void 0, function* () { if (e2.length === 0) return; - const i2 = Wr.a.first(Vr._selectors); + const i2 = Wo.a.first(Vo._selectors); return i2 ? yield i2(e2, t2, n2) : e2[0]; }); } } - function Ur(e2, t2, n2, i2, o2, r2) { - return zr(this, void 0, void 0, function* () { - const s2 = e2.get(gt.a), a2 = Object(Rr.b)(t2) ? t2.getModel() : t2, l2 = et.j.ordered(a2), c2 = yield Vr.select(l2, a2, i2); - c2 && (o2.report(c2), yield s2.invokeFunction(Hr, c2, t2, n2, r2)); + function Uo(e2, t2, n2, i2, r2, o2) { + return zo(this, void 0, void 0, function* () { + const s2 = e2.get(gt.a), a2 = Object(Ro.b)(t2) ? t2.getModel() : t2, l2 = et.j.ordered(a2), c2 = yield Vo.select(l2, a2, i2); + c2 && (r2.report(c2), yield s2.invokeFunction(Ho, c2, t2, n2, o2)); }); } - function Hr(e2, t2, n2, i2, o2) { - return zr(this, void 0, void 0, function* () { - const r2 = e2.get(Ar.a); + function Ho(e2, t2, n2, i2, r2) { + return zo(this, void 0, void 0, function* () { + const o2 = e2.get(Ao.a); let s2, a2; - Object(Rr.b)(n2) ? (s2 = n2.getModel(), a2 = new Je.b(n2, 5, void 0, o2)) : (s2 = n2, a2 = new Je.d(n2, o2)); + Object(Ro.b)(n2) ? (s2 = n2.getModel(), a2 = new Je.b(n2, 5, void 0, r2)) : (s2 = n2, a2 = new Je.d(n2, r2)); let l2 = [], c2 = 0; for (let e3 of Object(G.b)(i2).sort(ge.a.compareRangesUsingStarts)) c2 > 0 && ge.a.areIntersectingOrTouching(l2[c2 - 1], e3) ? l2[c2 - 1] = ge.a.fromPositions(l2[c2 - 1].getStartPosition(), e3.getEndPosition()) : c2 = l2.push(e3); const d2 = []; for (let e3 of l2) try { - const n3 = yield t2.provideDocumentRangeFormattingEdits(s2, e3, s2.getFormattingOptions(), a2.token), i3 = yield r2.computeMoreMinimalEdits(s2.uri, n3); + const n3 = yield t2.provideDocumentRangeFormattingEdits(s2, e3, s2.getFormattingOptions(), a2.token), i3 = yield o2.computeMoreMinimalEdits(s2.uri, n3); if (i3 && d2.push(...i3), a2.token.isCancellationRequested) return true; } finally { @@ -62498,8 +62498,8 @@ ${Object(zn.b)(wi)} } if (d2.length === 0) return false; - if (Object(Rr.b)(n2)) - Mr.execute(n2, d2, true), Br(d2), n2.revealPositionInCenterIfOutsideViewport(n2.getPosition(), 1); + if (Object(Ro.b)(n2)) + Mo.execute(n2, d2, true), Bo(d2), n2.revealPositionInCenterIfOutsideViewport(n2.getPosition(), 1); else { const [{range: e3}] = d2, t3 = new q.a(e3.startLineNumber, e3.startColumn, e3.endLineNumber, e3.endColumn); s2.pushEditOperations([t3], d2.map((e4) => ({text: e4.text, range: ge.a.lift(e4.range), forceMoveMarkers: true})), (e4) => { @@ -62512,28 +62512,28 @@ ${Object(zn.b)(wi)} return true; }); } - function qr(e2, t2, n2, i2, o2) { - return zr(this, void 0, void 0, function* () { - const r2 = e2.get(gt.a), s2 = Object(Rr.b)(t2) ? t2.getModel() : t2, a2 = jr(s2), l2 = yield Vr.select(a2, s2, n2); - l2 && (i2.report(l2), yield r2.invokeFunction($r, l2, t2, n2, o2)); + function qo(e2, t2, n2, i2, r2) { + return zo(this, void 0, void 0, function* () { + const o2 = e2.get(gt.a), s2 = Object(Ro.b)(t2) ? t2.getModel() : t2, a2 = jo(s2), l2 = yield Vo.select(a2, s2, n2); + l2 && (i2.report(l2), yield o2.invokeFunction($o, l2, t2, n2, r2)); }); } - function $r(e2, t2, n2, i2, o2) { - return zr(this, void 0, void 0, function* () { - const r2 = e2.get(Ar.a); + function $o(e2, t2, n2, i2, r2) { + return zo(this, void 0, void 0, function* () { + const o2 = e2.get(Ao.a); let s2, a2, l2; - Object(Rr.b)(n2) ? (s2 = n2.getModel(), a2 = new Je.b(n2, 5, void 0, o2)) : (s2 = n2, a2 = new Je.d(n2, o2)); + Object(Ro.b)(n2) ? (s2 = n2.getModel(), a2 = new Je.b(n2, 5, void 0, r2)) : (s2 = n2, a2 = new Je.d(n2, r2)); try { const e3 = yield t2.provideDocumentFormattingEdits(s2, s2.getFormattingOptions(), a2.token); - if (l2 = yield r2.computeMoreMinimalEdits(s2.uri, e3), a2.token.isCancellationRequested) + if (l2 = yield o2.computeMoreMinimalEdits(s2.uri, e3), a2.token.isCancellationRequested) return true; } finally { a2.dispose(); } if (!l2 || l2.length === 0) return false; - if (Object(Rr.b)(n2)) - Mr.execute(n2, l2, i2 !== 2), i2 !== 2 && (Br(l2), n2.revealPositionInCenterIfOutsideViewport(n2.getPosition(), 1)); + if (Object(Ro.b)(n2)) + Mo.execute(n2, l2, i2 !== 2), i2 !== 2 && (Bo(l2), n2.revealPositionInCenterIfOutsideViewport(n2.getPosition(), 1)); else { const [{range: e3}] = l2, t3 = new q.a(e3.startLineNumber, e3.startColumn, e3.endLineNumber, e3.endColumn); s2.pushEditOperations([t3], l2.map((e4) => ({text: e4.text, range: ge.a.lift(e4.range), forceMoveMarkers: true})), (e4) => { @@ -62546,88 +62546,88 @@ ${Object(zn.b)(wi)} return true; }); } - function Kr(e2, t2, n2, i2, o2) { - const r2 = et.t.ordered(t2); - return r2.length === 0 || r2[0].autoFormatTriggerCharacters.indexOf(i2) < 0 ? Promise.resolve(void 0) : Promise.resolve(r2[0].provideOnTypeFormattingEdits(t2, n2, i2, o2, Xe.a.None)).catch(Z.f).then((n3) => e2.computeMoreMinimalEdits(t2.uri, n3)); + function Ko(e2, t2, n2, i2, r2) { + const o2 = et.t.ordered(t2); + return o2.length === 0 || o2[0].autoFormatTriggerCharacters.indexOf(i2) < 0 ? Promise.resolve(void 0) : Promise.resolve(o2[0].provideOnTypeFormattingEdits(t2, n2, i2, r2, Xe.a.None)).catch(Z.f).then((n3) => e2.computeMoreMinimalEdits(t2.uri, n3)); } - Vr._selectors = new Fr.a(), Ft.a.registerCommand("_executeFormatRangeProvider", function(e2, ...t2) { - const [n2, i2, o2] = t2; - Object(Jo.b)(Qe.a.isUri(n2)), Object(Jo.b)(ge.a.isIRange(i2)); - const r2 = e2.get(tt.a).getModel(n2); - if (!r2) + Vo._selectors = new Fo.a(), Ft.a.registerCommand("_executeFormatRangeProvider", function(e2, ...t2) { + const [n2, i2, r2] = t2; + Object(Qr.b)(Qe.a.isUri(n2)), Object(Qr.b)(ge.a.isIRange(i2)); + const o2 = e2.get(tt.a).getModel(n2); + if (!o2) throw Object(Z.b)("resource"); - return function(e3, t3, n3, i3, o3) { - return zr(this, void 0, void 0, function* () { - const r3 = et.j.ordered(t3); - for (const s2 of r3) { - let r4 = yield Promise.resolve(s2.provideDocumentRangeFormattingEdits(t3, n3, i3, o3)).catch(Z.f); - if (Object(G.o)(r4)) - return yield e3.computeMoreMinimalEdits(t3.uri, r4); + return function(e3, t3, n3, i3, r3) { + return zo(this, void 0, void 0, function* () { + const o3 = et.j.ordered(t3); + for (const s2 of o3) { + let o4 = yield Promise.resolve(s2.provideDocumentRangeFormattingEdits(t3, n3, i3, r3)).catch(Z.f); + if (Object(G.o)(o4)) + return yield e3.computeMoreMinimalEdits(t3.uri, o4); } }); - }(e2.get(Ar.a), r2, ge.a.lift(i2), o2, Xe.a.None); + }(e2.get(Ao.a), o2, ge.a.lift(i2), r2, Xe.a.None); }), Ft.a.registerCommand("_executeFormatDocumentProvider", function(e2, ...t2) { const [n2, i2] = t2; - Object(Jo.b)(Qe.a.isUri(n2)); - const o2 = e2.get(tt.a).getModel(n2); - if (!o2) + Object(Qr.b)(Qe.a.isUri(n2)); + const r2 = e2.get(tt.a).getModel(n2); + if (!r2) throw Object(Z.b)("resource"); return function(e3, t3, n3, i3) { - return zr(this, void 0, void 0, function* () { - const o3 = jr(t3); - for (const r2 of o3) { - let o4 = yield Promise.resolve(r2.provideDocumentFormattingEdits(t3, n3, i3)).catch(Z.f); - if (Object(G.o)(o4)) - return yield e3.computeMoreMinimalEdits(t3.uri, o4); + return zo(this, void 0, void 0, function* () { + const r3 = jo(t3); + for (const o2 of r3) { + let r4 = yield Promise.resolve(o2.provideDocumentFormattingEdits(t3, n3, i3)).catch(Z.f); + if (Object(G.o)(r4)) + return yield e3.computeMoreMinimalEdits(t3.uri, r4); } }); - }(e2.get(Ar.a), o2, i2, Xe.a.None); + }(e2.get(Ao.a), r2, i2, Xe.a.None); }), Ft.a.registerCommand("_executeFormatOnTypeProvider", function(e2, ...t2) { - const [n2, i2, o2, r2] = t2; - Object(Jo.b)(Qe.a.isUri(n2)), Object(Jo.b)(me.a.isIPosition(i2)), Object(Jo.b)(typeof o2 == "string"); + const [n2, i2, r2, o2] = t2; + Object(Qr.b)(Qe.a.isUri(n2)), Object(Qr.b)(me.a.isIPosition(i2)), Object(Qr.b)(typeof r2 == "string"); const s2 = e2.get(tt.a).getModel(n2); if (!s2) throw Object(Z.b)("resource"); - return Kr(e2.get(Ar.a), s2, me.a.lift(i2), o2, r2); + return Ko(e2.get(Ao.a), s2, me.a.lift(i2), r2, o2); }); - var Gr = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Go = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Yr = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, Yo = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; - }, Zr = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + }, Zo = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - let Xr = class { + let Xo = class { constructor(e2, t2) { this._workerService = t2, this._callOnDispose = new pe.b(), this._callOnModel = new pe.b(), this._editor = e2, this._callOnDispose.add(e2.onDidChangeConfiguration(() => this._update())), this._callOnDispose.add(e2.onDidChangeModel(() => this._update())), this._callOnDispose.add(e2.onDidChangeModelLanguage(() => this._update())), this._callOnDispose.add(et.t.onDidChange(this._update, this)); } @@ -62642,7 +62642,7 @@ ${Object(zn.b)(wi)} const e2 = this._editor.getModel(), [t2] = et.t.ordered(e2); if (!t2 || !t2.autoFormatTriggerCharacters) return; - let n2 = new Dr.b(); + let n2 = new Oo.b(); for (let e3 of t2.autoFormatTriggerCharacters) n2.add(e3.charCodeAt(0)); this._callOnModel.add(this._editor.onDidType((e3) => { @@ -62657,23 +62657,23 @@ ${Object(zn.b)(wi)} return; const t2 = this._editor.getModel(), n2 = this._editor.getPosition(); let i2 = false; - const o2 = this._editor.onDidChangeModelContent((e3) => { + const r2 = this._editor.onDidChangeModelContent((e3) => { if (e3.isFlush) - return i2 = true, void o2.dispose(); - for (let t3 = 0, r2 = e3.changes.length; t3 < r2; t3++) { + return i2 = true, void r2.dispose(); + for (let t3 = 0, o2 = e3.changes.length; t3 < o2; t3++) { if (e3.changes[t3].range.endLineNumber <= n2.lineNumber) - return i2 = true, void o2.dispose(); + return i2 = true, void r2.dispose(); } }); - Kr(this._workerService, t2, n2, e2, t2.getFormattingOptions()).then((e3) => { - o2.dispose(), i2 || Object(G.o)(e3) && (Mr.execute(this._editor, e3, true), Br(e3)); + Ko(this._workerService, t2, n2, e2, t2.getFormattingOptions()).then((e3) => { + r2.dispose(), i2 || Object(G.o)(e3) && (Mo.execute(this._editor, e3, true), Bo(e3)); }, (e3) => { - throw o2.dispose(), e3; + throw r2.dispose(), e3; }); } }; - Xr.ID = "editor.contrib.autoFormat", Xr = Gr([Yr(1, Ar.a)], Xr); - let Qr = class { + Xo.ID = "editor.contrib.autoFormat", Xo = Go([Yo(1, Ao.a)], Xo); + let Qo = class { constructor(e2, t2) { this.editor = e2, this._instantiationService = t2, this._callOnDispose = new pe.b(), this._callOnModel = new pe.b(), this._callOnDispose.add(e2.onDidChangeConfiguration(() => this._update())), this._callOnDispose.add(e2.onDidChangeModel(() => this._update())), this._callOnDispose.add(e2.onDidChangeModelLanguage(() => this._update())), this._callOnDispose.add(et.j.onDidChange(this._update, this)); } @@ -62684,19 +62684,19 @@ ${Object(zn.b)(wi)} this._callOnModel.clear(), this.editor.getOption(40) && this.editor.hasModel() && et.j.has(this.editor.getModel()) && this._callOnModel.add(this.editor.onDidPaste(({range: e2}) => this._trigger(e2))); } _trigger(e2) { - this.editor.hasModel() && (this.editor.getSelections().length > 1 || this._instantiationService.invokeFunction(Ur, this.editor, e2, 2, rt.b.None, Xe.a.None).catch(Z.e)); + this.editor.hasModel() && (this.editor.getSelections().length > 1 || this._instantiationService.invokeFunction(Uo, this.editor, e2, 2, ot.b.None, Xe.a.None).catch(Z.e)); } }; - Qr.ID = "editor.contrib.formatOnPaste", Qr = Gr([Yr(1, gt.a)], Qr); - class Jr extends V.b { + Qo.ID = "editor.contrib.formatOnPaste", Qo = Go([Yo(1, gt.a)], Qo); + class Jo extends V.b { constructor() { super({id: "editor.action.formatDocument", label: U.a("formatDocument.label", "Format Document"), alias: "Format Document", precondition: K.a.and(H.a.notInCompositeEditor, H.a.writable, H.a.hasDocumentFormattingProvider), kbOpts: {kbExpr: K.a.and(H.a.editorTextFocus, H.a.hasDocumentFormattingProvider), primary: 1572, linux: {primary: 3111}, weight: 100}, contextMenuOpts: {when: H.a.hasDocumentFormattingProvider, group: "1_modification", order: 1.3}}); } run(e2, t2) { - return Zr(this, void 0, void 0, function* () { + return Zo(this, void 0, void 0, function* () { if (t2.hasModel()) { - const n2 = e2.get(gt.a), i2 = e2.get(rt.a); - yield i2.showWhile(n2.invokeFunction(qr, t2, 1, rt.b.None, Xe.a.None), 250); + const n2 = e2.get(gt.a), i2 = e2.get(ot.a); + yield i2.showWhile(n2.invokeFunction(qo, t2, 1, ot.b.None, Xe.a.None), 250); } }); } @@ -62706,15 +62706,15 @@ ${Object(zn.b)(wi)} super({id: "editor.action.formatSelection", label: U.a("formatSelection.label", "Format Selection"), alias: "Format Selection", precondition: K.a.and(H.a.writable, H.a.hasDocumentSelectionFormattingProvider), kbOpts: {kbExpr: K.a.and(H.a.editorTextFocus, H.a.hasDocumentSelectionFormattingProvider), primary: Object($.a)(2089, 2084), weight: 100}, contextMenuOpts: {when: K.a.and(H.a.hasDocumentSelectionFormattingProvider, H.a.hasNonEmptySelection), group: "1_modification", order: 1.31}}); } run(e2, t2) { - return Zr(this, void 0, void 0, function* () { + return Zo(this, void 0, void 0, function* () { if (!t2.hasModel()) return; - const n2 = e2.get(gt.a), i2 = t2.getModel(), o2 = t2.getSelections().map((e3) => e3.isEmpty() ? new ge.a(e3.startLineNumber, 1, e3.startLineNumber, i2.getLineMaxColumn(e3.startLineNumber)) : e3), r2 = e2.get(rt.a); - yield r2.showWhile(n2.invokeFunction(Ur, t2, o2, 1, rt.b.None, Xe.a.None), 250); + const n2 = e2.get(gt.a), i2 = t2.getModel(), r2 = t2.getSelections().map((e3) => e3.isEmpty() ? new ge.a(e3.startLineNumber, 1, e3.startLineNumber, i2.getLineMaxColumn(e3.startLineNumber)) : e3), o2 = e2.get(ot.a); + yield o2.showWhile(n2.invokeFunction(Uo, t2, r2, 1, ot.b.None, Xe.a.None), 250); }); } } - Object(V.m)(Xr.ID, Xr), Object(V.m)(Qr.ID, Qr), Object(V.k)(Jr), Object(V.k)(es), Ft.a.registerCommand("editor.action.format", (e2) => Zr(void 0, void 0, void 0, function* () { + Object(V.m)(Xo.ID, Xo), Object(V.m)(Qo.ID, Qo), Object(V.k)(Jo), Object(V.k)(es), Ft.a.registerCommand("editor.action.format", (e2) => Zo(void 0, void 0, void 0, function* () { const t2 = e2.get(Me.a).getFocusedCodeEditor(); if (!t2 || !t2.hasModel()) return; @@ -62738,12 +62738,12 @@ ${Object(zn.b)(wi)} return e2.children.size === 0; } } - class os extends is { + class rs extends is { constructor(e2, t2, n2) { super(), this.id = e2, this.parent = t2, this.symbol = n2, this.children = new Map(); } } - class rs extends is { + class os extends is { constructor(e2, t2, n2, i2) { super(), this.id = e2, this.parent = t2, this.label = n2, this.order = i2, this.children = new Map(); } @@ -62757,10 +62757,10 @@ ${Object(zn.b)(wi)} if (!i2) { let t3 = new Xe.b(); i2 = {promiseCnt: 0, source: t3, promise: ss._create(e2, t3.token), model: void 0}, ss._requests.set(n2, i2); - const o2 = Date.now(); + const r2 = Date.now(); i2.promise.then(() => { let t4 = this._keys.for(e2, false), n3 = this._requestDurations.get(t4); - n3 || (n3 = new ns.a(), this._requestDurations.set(t4, n3)), n3.update(Date.now() - o2); + n3 || (n3 = new ns.a(), this._requestDurations.set(t4, n3)), n3.update(Date.now() - r2); }); } return i2.model ? Promise.resolve(i2.model) : (i2.promiseCnt += 1, t2.onCancellationRequested(() => { @@ -62774,9 +62774,9 @@ ${Object(zn.b)(wi)} })); } static _create(e2, t2) { - const n2 = new Xe.b(t2), i2 = new ss(e2.uri), o2 = et.m.ordered(e2), r2 = o2.map((t3, o3) => { - var r3; - let s3 = is.findId("provider_" + o3, i2), a2 = new rs(s3, i2, (r3 = t3.displayName) !== null && r3 !== void 0 ? r3 : "Unknown Outline Provider", o3); + const n2 = new Xe.b(t2), i2 = new ss(e2.uri), r2 = et.m.ordered(e2), o2 = r2.map((t3, r3) => { + var o3; + let s3 = is.findId("provider_" + r3, i2), a2 = new os(s3, i2, (o3 = t3.displayName) !== null && o3 !== void 0 ? o3 : "Unknown Outline Provider", r3); return Promise.resolve(t3.provideDocumentSymbols(e2, n2.token)).then((e3) => { for (const t4 of e3 || []) ss._makeOutlineElement(t4, a2); @@ -62786,14 +62786,14 @@ ${Object(zn.b)(wi)} }); }), s2 = et.m.onDidChange(() => { const t3 = et.m.ordered(e2); - Object(G.g)(t3, o2) || n2.cancel(); + Object(G.g)(t3, r2) || n2.cancel(); }); - return Promise.all(r2).then(() => n2.token.isCancellationRequested && !t2.isCancellationRequested ? ss._create(e2, t2) : i2._compact()).finally(() => { + return Promise.all(o2).then(() => n2.token.isCancellationRequested && !t2.isCancellationRequested ? ss._create(e2, t2) : i2._compact()).finally(() => { s2.dispose(); }); } static _makeOutlineElement(e2, t2) { - let n2 = is.findId(e2, t2), i2 = new os(n2, t2, e2); + let n2 = is.findId(e2, t2), i2 = new rs(n2, t2, e2); if (e2.children) for (const t3 of e2.children) ss._makeOutlineElement(t3, i2); @@ -62806,7 +62806,7 @@ ${Object(zn.b)(wi)} if (e2 !== 1) this.children = this._groups; else { - let e3 = Wr.a.first(this._groups.values()); + let e3 = Wo.a.first(this._groups.values()); for (let [, t2] of e3.children) t2.parent = this, this.children.set(t2.id, t2); } @@ -62830,24 +62830,24 @@ ${Object(zn.b)(wi)} } }(); var as = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -62856,14 +62856,14 @@ ${Object(zn.b)(wi)} }; function ls(e2, t2, n2) { return as(this, void 0, void 0, function* () { - const i2 = yield ss.create(e2, n2), o2 = []; + const i2 = yield ss.create(e2, n2), r2 = []; for (const e3 of i2.children.values()) - e3 instanceof os ? o2.push(e3.symbol) : o2.push(...Wr.a.map(e3.children.values(), (e4) => e4.symbol)); - let r2 = []; - return n2.isCancellationRequested ? r2 : (t2 ? function e3(t3, n3, i3) { - for (let o3 of n3) - t3.push({kind: o3.kind, tags: o3.tags, name: o3.name, detail: o3.detail, containerName: o3.containerName || i3, range: o3.range, selectionRange: o3.selectionRange, children: void 0}), o3.children && e3(t3, o3.children, o3.name); - }(r2, o2, "") : r2 = o2, r2.sort(cs)); + e3 instanceof rs ? r2.push(e3.symbol) : r2.push(...Wo.a.map(e3.children.values(), (e4) => e4.symbol)); + let o2 = []; + return n2.isCancellationRequested ? o2 : (t2 ? function e3(t3, n3, i3) { + for (let r3 of n3) + t3.push({kind: r3.kind, tags: r3.tags, name: r3.name, detail: r3.detail, containerName: r3.containerName || i3, range: r3.range, selectionRange: r3.selectionRange, children: void 0}), r3.children && e3(t3, r3.children, r3.name); + }(o2, r2, "") : o2 = r2, o2.sort(cs)); }); } function cs(e2, t2) { @@ -62872,35 +62872,35 @@ ${Object(zn.b)(wi)} Ft.a.registerCommand("_executeDocumentSymbolProvider", function(e2, ...t2) { return as(this, void 0, void 0, function* () { const [n2] = t2; - Object(Jo.b)(Qe.a.isUri(n2)); + Object(Qr.b)(Qe.a.isUri(n2)); const i2 = e2.get(tt.a).getModel(n2); if (i2) return ls(i2, false, Xe.a.None); - const o2 = yield e2.get(ts.a).createModelReference(n2); + const r2 = yield e2.get(ts.a).createModelReference(n2); try { - return yield ls(o2.object.textEditorModel, false, Xe.a.None); + return yield ls(r2.object.textEditorModel, false, Xe.a.None); } finally { - o2.dispose(); + r2.dispose(); } }); }); n(300); var ds = n(116), hs = n(46), us = n(80), ps = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, ms = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; let gs = class extends j.a { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - super(e2, Object.assign(Object.assign({}, n2.getRawOptions()), {overflowWidgetsDomNode: n2.getOverflowWidgetsDomNode()}), {}, i2, o2, r2, s2, a2, l2, c2), this._parentEditor = n2, this._overwriteOptions = t2, super.updateOptions(this._overwriteOptions), this._register(n2.onDidChangeConfiguration((e3) => this._onParentConfigurationChanged(e3))); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + super(e2, Object.assign(Object.assign({}, n2.getRawOptions()), {overflowWidgetsDomNode: n2.getOverflowWidgetsDomNode()}), {}, i2, r2, o2, s2, a2, l2, c2), this._parentEditor = n2, this._overwriteOptions = t2, super.updateOptions(this._overwriteOptions), this._register(n2.onDidChangeConfiguration((e3) => this._onParentConfigurationChanged(e3))); } getParentEditor() { return this._parentEditor; @@ -62917,8 +62917,8 @@ ${Object(zn.b)(wi)} var fs = n(147); const bs = new Nn.a(new Nn.c(0, 122, 204)), _s = {showArrow: true, showFrame: true, className: "", frameColor: bs, arrowColor: bs, keepEditorSelection: false}; class vs { - constructor(e2, t2, n2, i2, o2, r2) { - this.id = "", this.domNode = e2, this.afterLineNumber = t2, this.afterColumn = n2, this.heightInLines = i2, this._onDomNodeTop = o2, this._onComputedHeight = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.id = "", this.domNode = e2, this.afterLineNumber = t2, this.afterColumn = n2, this.heightInLines = i2, this._onDomNodeTop = r2, this._onComputedHeight = o2; } onDomNodeTop(e2) { this._onDomNodeTop(e2); @@ -63048,13 +63048,13 @@ ${Object(zn.b)(wi)} } } var Ts = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ls = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -63085,26 +63085,26 @@ ${Object(zn.b)(wi)} } } function Is(e2, t2, n2, i2) { - const o2 = e2.getActions(t2); + const r2 = e2.getActions(t2); return function(e3, t3, n3, i3 = (e4) => e4 === "navigation") { - for (let o3 of e3) { - let [e4, r2] = o3; - if (n3 && (r2 = r2.map((e5) => e5 instanceof ye.c && e5.alt ? e5.alt : e5)), i3(e4)) { - (Array.isArray(t3) ? t3 : t3.primary).unshift(...r2); + for (let r3 of e3) { + let [e4, o2] = r3; + if (n3 && (o2 = o2.map((e5) => e5 instanceof ye.c && e5.alt ? e5.alt : e5)), i3(e4)) { + (Array.isArray(t3) ? t3 : t3.primary).unshift(...o2); } else { const e5 = Array.isArray(t3) ? t3 : t3.secondary; - e5.length > 0 && e5.push(new bt.c()), e5.push(...r2); + e5.length > 0 && e5.push(new bt.c()), e5.push(...o2); } } - }(o2, n2, false, i2), function(e3) { + }(r2, n2, false, i2), function(e3) { const t3 = new pe.b(); for (const [, n3] of e3) for (const e4 of n3) t3.add(e4); return t3; - }(o2); + }(r2); } - const Os = new fs.a("menu-item-action-item-icon-"), Ds = new Map(); + const Ds = new fs.a("menu-item-action-item-icon-"), Os = new Map(); let As = class extends jn.a { constructor(e2, t2, n2, i2) { super(void 0, e2, {icon: !(!e2.class && !e2.item.icon), label: !e2.class && !e2.item.icon}), this._action = e2, this._keybindingService = t2, this._notificationService = n2, this._wantsAltCommand = false, this._itemClassDispose = this._register(new pe.d()), this._altKey = Ns.getInstance(i2); @@ -63155,7 +63155,7 @@ ${Object(zn.b)(wi)} let e3; if ((n2 = i2.dark) === null || n2 === void 0 ? void 0 : n2.scheme) { const t3 = i2.dark.toString(); - Ds.has(t3) ? e3 = Ds.get(t3) : (e3 = Os.nextId(), Object(ft.u)(".icon." + e3, "background-image: " + Object(ft.q)(i2.light || i2.dark)), Object(ft.u)(`.vs-dark .icon.${e3}, .hc-black .icon.${e3}`, "background-image: " + Object(ft.q)(i2.dark)), Ds.set(t3, e3)), this.label && (Object(ft.f)(this.label, "icon", e3), this._itemClassDispose.value = Object(pe.h)(() => { + Os.has(t3) ? e3 = Os.get(t3) : (e3 = Ds.nextId(), Object(ft.u)(".icon." + e3, "background-image: " + Object(ft.q)(i2.light || i2.dark)), Object(ft.u)(`.vs-dark .icon.${e3}, .hc-black .icon.${e3}`, "background-image: " + Object(ft.q)(i2.dark)), Os.set(t3, e3)), this.label && (Object(ft.f)(this.label, "icon", e3), this._itemClassDispose.value = Object(pe.h)(() => { this.label && Object(ft.R)(this.label, "icon", e3); })); } @@ -63166,32 +63166,32 @@ ${Object(zn.b)(wi)} let Rs = class extends Es { constructor(e2, t2, n2) { var i2; - const o2 = []; + const r2 = []; if (e2.item.icon) { if (we.e.isThemeIcon(e2.item.icon)) - o2.push(we.e.asClassName(e2.item.icon)); + r2.push(we.e.asClassName(e2.item.icon)); else if ((i2 = e2.item.icon.dark) === null || i2 === void 0 ? void 0 : i2.scheme) { const t3 = e2.item.icon.dark.toString(); - if (Ds.has(t3)) - o2.push("icon", Ds.get(t3)); + if (Os.has(t3)) + r2.push("icon", Os.get(t3)); else { - const n3 = Os.nextId(); - o2.push("icon", n3), Object(ft.u)(".icon." + n3, "background-image: " + Object(ft.q)(e2.item.icon.light || e2.item.icon.dark)), Object(ft.u)(`.vs-dark .icon.${n3}, .hc-black .icon.${n3}`, "background-image: " + Object(ft.q)(e2.item.icon.dark)), Ds.set(t3, n3); + const n3 = Ds.nextId(); + r2.push("icon", n3), Object(ft.u)(".icon." + n3, "background-image: " + Object(ft.q)(e2.item.icon.light || e2.item.icon.dark)), Object(ft.u)(`.vs-dark .icon.${n3}, .hc-black .icon.${n3}`, "background-image: " + Object(ft.q)(e2.item.icon.dark)), Os.set(t3, n3); } } } - super(e2, e2.actions, n2, {classNames: o2}); + super(e2, e2.actions, n2, {classNames: r2}); } }; Rs = Ts([Ls(1, zt.a), Ls(2, _t.a)], Rs); var Ms = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ps = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -63297,21 +63297,21 @@ ${Object(zn.b)(wi)} return t2; } _showImpl(e2, t2) { - const n2 = e2.getStartPosition(), i2 = this.editor.getLayoutInfo(), o2 = this._getWidth(i2); - this.domNode.style.width = o2 + "px", this.domNode.style.left = this._getLeft(i2) + "px"; - const r2 = document.createElement("div"); - r2.style.overflow = "hidden"; + const n2 = e2.getStartPosition(), i2 = this.editor.getLayoutInfo(), r2 = this._getWidth(i2); + this.domNode.style.width = r2 + "px", this.domNode.style.left = this._getLeft(i2) + "px"; + const o2 = document.createElement("div"); + o2.style.overflow = "hidden"; const s2 = this.editor.getOption(51), a2 = Math.max(12, this.editor.getLayoutInfo().height / s2 * 0.8); t2 = Math.min(t2, a2); let l2 = 0, c2 = 0; if (this._arrow && this.options.showArrow && (l2 = Math.round(s2 / 3), this._arrow.height = l2, this._arrow.show(n2)), this.options.showFrame && (c2 = Math.round(s2 / 9)), this.editor.changeViewZones((e3) => { - this._viewZone && e3.removeZone(this._viewZone.id), this._overlayWidget && (this.editor.removeOverlayWidget(this._overlayWidget), this._overlayWidget = null), this.domNode.style.top = "-1000px", this._viewZone = new vs(r2, n2.lineNumber, n2.column, t2, (e4) => this._onViewZoneTop(e4), (e4) => this._onViewZoneHeight(e4)), this._viewZone.id = e3.addZone(this._viewZone), this._overlayWidget = new ws("vs.editor.contrib.zoneWidget" + this._viewZone.id, this.domNode), this.editor.addOverlayWidget(this._overlayWidget); + this._viewZone && e3.removeZone(this._viewZone.id), this._overlayWidget && (this.editor.removeOverlayWidget(this._overlayWidget), this._overlayWidget = null), this.domNode.style.top = "-1000px", this._viewZone = new vs(o2, n2.lineNumber, n2.column, t2, (e4) => this._onViewZoneTop(e4), (e4) => this._onViewZoneHeight(e4)), this._viewZone.id = e3.addZone(this._viewZone), this._overlayWidget = new ws("vs.editor.contrib.zoneWidget" + this._viewZone.id, this.domNode), this.editor.addOverlayWidget(this._overlayWidget); }), this.container && this.options.showFrame) { const e3 = this.options.frameWidth ? this.options.frameWidth : c2; this.container.style.borderTopWidth = e3 + "px", this.container.style.borderBottomWidth = e3 + "px"; } let d2 = t2 * s2 - this._decoratingElementsHeight(); - this.container && (this.container.style.top = l2 + "px", this.container.style.height = d2 + "px", this.container.style.overflow = "hidden"), this._doLayout(d2, o2), this.options.keepEditorSelection || this.editor.setSelection(e2); + this.container && (this.container.style.top = l2 + "px", this.container.style.height = d2 + "px", this.container.style.overflow = "hidden"), this._doLayout(d2, r2), this.options.keepEditorSelection || this.editor.setSelection(e2); const h2 = this.editor.getModel(); if (h2) { const t3 = e2.endLineNumber + 1; @@ -63343,8 +63343,8 @@ ${Object(zn.b)(wi)} e2 = void 0; })), this._disposables.add(this._resizeSash.onDidChange((t2) => { if (e2) { - let n2 = (t2.currentY - e2.startY) / this.editor.getOption(51), i2 = n2 < 0 ? Math.ceil(n2) : Math.floor(n2), o2 = e2.heightInLines + i2; - o2 > 5 && o2 < 35 && this._relayout(o2); + let n2 = (t2.currentY - e2.startY) / this.editor.getOption(51), i2 = n2 < 0 ? Math.ceil(n2) : Math.floor(n2), r2 = e2.heightInLines + i2; + r2 > 5 && r2 < 35 && this._relayout(r2); } })); } @@ -63382,8 +63382,8 @@ ${Object(zn.b)(wi)} ft.p(this._headElement, n2), ft.n(n2, "click", (e3) => this._onTitleClick(e3)), this._fillTitleIcon(n2), this._primaryHeading = ft.a("span.filename"), this._secondaryHeading = ft.a("span.dirname"), this._metaHeading = ft.a("span.meta"), ft.p(n2, this._primaryHeading, this._secondaryHeading, this._metaHeading); const i2 = ft.a(".peekview-actions"); ft.p(this._headElement, i2); - const o2 = this._getActionBarOptions(); - this._actionbarWidget = new ds.a(i2, o2), this._disposables.add(this._actionbarWidget), t2 || this._actionbarWidget.push(new bt.a("peekview.close", U.a("label.close", "Close"), Y.a.close.classNames, true, () => (this.dispose(), Promise.resolve())), {label: false, icon: true}); + const r2 = this._getActionBarOptions(); + this._actionbarWidget = new ds.a(i2, r2), this._disposables.add(this._actionbarWidget), t2 || this._actionbarWidget.push(new bt.a("peekview.close", U.a("label.close", "Close"), Y.a.close.classNames, true, () => (this.dispose(), Promise.resolve())), {label: false, icon: true}); } _fillTitleIcon(e2) { } @@ -63414,33 +63414,33 @@ ${Object(zn.b)(wi)} Vs = Ms([Ps(2, gt.a)], Vs); const Us = Object(ve.gc)("peekViewTitle.background", {dark: "#1E1E1E", light: "#FFFFFF", hc: "#0C141F"}, U.a("peekViewTitleBackground", "Background color of the peek view title area.")), Hs = Object(ve.gc)("peekViewTitleLabel.foreground", {dark: "#FFFFFF", light: "#333333", hc: "#FFFFFF"}, U.a("peekViewTitleForeground", "Color of the peek view title.")), qs = Object(ve.gc)("peekViewTitleDescription.foreground", {dark: "#ccccccb3", light: "#616161e6", hc: "#FFFFFF99"}, U.a("peekViewTitleInfoForeground", "Color of the peek view title info.")), $s = Object(ve.gc)("peekView.border", {dark: "#007acc", light: "#007acc", hc: ve.h}, U.a("peekViewBorder", "Color of the peek view borders and arrow.")), Ks = Object(ve.gc)("peekViewResult.background", {dark: "#252526", light: "#F3F3F3", hc: Nn.a.black}, U.a("peekViewResultsBackground", "Background color of the peek view result list.")), Gs = Object(ve.gc)("peekViewResult.lineForeground", {dark: "#bbbbbb", light: "#646465", hc: Nn.a.white}, U.a("peekViewResultsMatchForeground", "Foreground color for line nodes in the peek view result list.")), Ys = Object(ve.gc)("peekViewResult.fileForeground", {dark: Nn.a.white, light: "#1E1E1E", hc: Nn.a.white}, U.a("peekViewResultsFileForeground", "Foreground color for file nodes in the peek view result list.")), Zs = Object(ve.gc)("peekViewResult.selectionBackground", {dark: "#3399ff33", light: "#3399ff33", hc: null}, U.a("peekViewResultsSelectionBackground", "Background color of the selected entry in the peek view result list.")), Xs = Object(ve.gc)("peekViewResult.selectionForeground", {dark: Nn.a.white, light: "#6C6C6C", hc: Nn.a.white}, U.a("peekViewResultsSelectionForeground", "Foreground color of the selected entry in the peek view result list.")), Qs = Object(ve.gc)("peekViewEditor.background", {dark: "#001F33", light: "#F2F8FC", hc: Nn.a.black}, U.a("peekViewEditorBackground", "Background color of the peek view editor.")), Js = Object(ve.gc)("peekViewEditorGutter.background", {dark: Qs, light: Qs, hc: Qs}, U.a("peekViewEditorGutterBackground", "Background color of the gutter in the peek view editor.")), ea = Object(ve.gc)("peekViewResult.matchHighlightBackground", {dark: "#ea5c004d", light: "#ea5c004d", hc: null}, U.a("peekViewResultsMatchHighlight", "Match highlight color in the peek view result list.")), ta = Object(ve.gc)("peekViewEditor.matchHighlightBackground", {dark: "#ff8f0099", light: "#f5d802de", hc: null}, U.a("peekViewEditorMatchHighlight", "Match highlight color in the peek view editor.")), na = Object(ve.gc)("peekViewEditor.matchHighlightBorder", {dark: null, light: null, hc: ve.b}, U.a("peekViewEditorMatchHighlightBorder", "Match highlight border in the peek view editor.")); var ia = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - class oa { - constructor(e2, t2, n2, i2, o2) { - this.isProviderFirst = e2, this.parent = t2, this.uri = n2, this._range = i2, this._rangeCallback = o2, this.id = fs.b.nextId(); + class ra { + constructor(e2, t2, n2, i2, r2) { + this.isProviderFirst = e2, this.parent = t2, this.uri = n2, this._range = i2, this._rangeCallback = r2, this.id = fs.b.nextId(); } get range() { return this._range; @@ -63452,7 +63452,7 @@ ${Object(zn.b)(wi)} return Object(U.a)("aria.oneReference", "symbol in {0} on line {1} at column {2}", Object(jt.b)(this.uri), this.range.startLineNumber, this.range.startColumn); } } - class ra { + class oa { constructor(e2) { this._modelReference = e2; } @@ -63463,7 +63463,7 @@ ${Object(zn.b)(wi)} const n2 = this._modelReference.object.textEditorModel; if (!n2) return; - const {startLineNumber: i2, startColumn: o2, endLineNumber: r2, endColumn: s2} = e2, a2 = n2.getWordUntilPosition({lineNumber: i2, column: o2 - t2}), l2 = new ge.a(i2, a2.startColumn, i2, o2), c2 = new ge.a(r2, s2, r2, 1073741824), d2 = n2.getValueInRange(l2).replace(/^\s+/, ""), h2 = n2.getValueInRange(e2); + const {startLineNumber: i2, startColumn: r2, endLineNumber: o2, endColumn: s2} = e2, a2 = n2.getWordUntilPosition({lineNumber: i2, column: r2 - t2}), l2 = new ge.a(i2, a2.startColumn, i2, r2), c2 = new ge.a(o2, s2, o2, 1073741824), d2 = n2.getValueInRange(l2).replace(/^\s+/, ""), h2 = n2.getValueInRange(e2); return {value: d2 + h2 + n2.getValueInRange(c2).replace(/\s+$/, ""), highlight: {start: d2.length, end: d2.length + h2.length}}; } } @@ -63489,7 +63489,7 @@ ${Object(zn.b)(wi)} if (!this._previews.has(t2.uri)) try { const n2 = yield e2.createModelReference(t2.uri); - this._previews.set(t2.uri, new ra(n2)); + this._previews.set(t2.uri, new oa(n2)); } catch (e3) { Object(Z.e)(e3); } @@ -63505,7 +63505,7 @@ ${Object(zn.b)(wi)} e2.sort(aa._compareReferences); for (let t3 of e2) if (i2 && jt.e.isEqual(i2.uri, t3.uri, true) || (i2 = new sa(this, t3.uri), this.groups.push(i2)), i2.children.length === 0 || aa._compareReferences(t3, i2.children[i2.children.length - 1]) !== 0) { - const e3 = new oa(n2 === t3, i2, t3.uri, t3.targetSelectionRange || t3.range, (e4) => this._onDidChangeReferenceRange.fire(e4)); + const e3 = new ra(n2 === t3, i2, t3.uri, t3.targetSelectionRange || t3.range, (e4) => this._onDidChangeReferenceRange.fire(e4)); this.references.push(e3), i2.children.push(e3); } } @@ -63525,8 +63525,8 @@ ${Object(zn.b)(wi)} return this.isEmpty ? Object(U.a)("aria.result.0", "No results found") : this.references.length === 1 ? Object(U.a)("aria.result.1", "Found 1 symbol in {0}", this.references[0].uri.fsPath) : this.groups.length === 1 ? Object(U.a)("aria.result.n1", "Found {0} symbols in {1}", this.references.length, this.groups[0].uri.fsPath) : Object(U.a)("aria.result.nm", "Found {0} symbols in {1} files", this.references.length, this.groups.length); } nextOrPreviousReference(e2, t2) { - let {parent: n2} = e2, i2 = n2.children.indexOf(e2), o2 = n2.children.length, r2 = n2.parent.groups.length; - return r2 === 1 || t2 && i2 + 1 < o2 || !t2 && i2 > 0 ? (i2 = t2 ? (i2 + 1) % o2 : (i2 + o2 - 1) % o2, n2.children[i2]) : (i2 = n2.parent.groups.indexOf(n2), t2 ? (i2 = (i2 + 1) % r2, n2.parent.groups[i2].children[0]) : (i2 = (i2 + r2 - 1) % r2, n2.parent.groups[i2].children[n2.parent.groups[i2].children.length - 1])); + let {parent: n2} = e2, i2 = n2.children.indexOf(e2), r2 = n2.children.length, o2 = n2.parent.groups.length; + return o2 === 1 || t2 && i2 + 1 < r2 || !t2 && i2 > 0 ? (i2 = t2 ? (i2 + 1) % r2 : (i2 + r2 - 1) % r2, n2.children[i2]) : (i2 = n2.parent.groups.indexOf(n2), t2 ? (i2 = (i2 + 1) % o2, n2.parent.groups[i2].children[0]) : (i2 = (i2 + o2 - 1) % o2, n2.parent.groups[i2].children[n2.parent.groups[i2].children.length - 1])); } nearestReference(e2, t2) { const n2 = this.references.map((n3, i2) => ({idx: i2, prefixLen: Ye.d(n3.uri.toString(), e2.toString()), offsetDist: 100 * Math.abs(n3.range.startLineNumber - t2.lineNumber) + Math.abs(n3.range.startColumn - t2.column)})).sort((e3, t3) => e3.prefixLen > t3.prefixLen ? -1 : e3.prefixLen < t3.prefixLen ? 1 : e3.offsetDist < t3.offsetDist ? -1 : e3.offsetDist > t3.offsetDist ? 1 : 0)[0]; @@ -63555,12 +63555,12 @@ ${Object(zn.b)(wi)} const t3 = n2.getWorkspaceFolder(e2); if (t3) { const i3 = n2.getWorkspace().folders.length > 1; - let o2; - if (o2 = Object(jt.f)(t3.uri, e2) ? "" : Object(jt.j)(t3.uri, e2), i3) { + let r2; + if (r2 = Object(jt.f)(t3.uri, e2) ? "" : Object(jt.j)(t3.uri, e2), i3) { const e3 = t3.name ? t3.name : Object(jt.b)(t3.uri); - o2 = o2 ? e3 + " \u2022 " + o2 : e3; + r2 = r2 ? e3 + " \u2022 " + r2 : e3; } - return o2; + return r2; } } if (e2.scheme !== la.b.file && e2.scheme !== la.b.untitled) @@ -63592,13 +63592,13 @@ ${Object(zn.b)(wi)} } let _a = Object.create(null); var va = n(71), wa = n(156), ya = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ca = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -63634,7 +63634,7 @@ ${Object(zn.b)(wi)} } getKeyboardNavigationLabel(e2) { var t2; - if (e2 instanceof oa) { + if (e2 instanceof ra) { const n2 = (t2 = e2.parent.getPreview(e2)) === null || t2 === void 0 ? void 0 : t2.preview(e2.range); if (n2) return n2.value; @@ -63645,7 +63645,7 @@ ${Object(zn.b)(wi)} ka = ya([Ca(0, vt.a)], ka); class Ea { getId(e2) { - return e2 instanceof oa ? e2.id : e2.uri; + return e2 instanceof ra ? e2.id : e2.uri; } } let Ta = class extends pe.a { @@ -63705,7 +63705,7 @@ ${Object(zn.b)(wi)} } } Ia.id = "OneReferenceRenderer"; - class Oa { + class Da { getWidgetAriaLabel() { return Object(U.a)("treeAriaLabel", "References"); } @@ -63713,7 +63713,7 @@ ${Object(zn.b)(wi)} return e2.ariaMessage; } } - var Da = n(136); + var Oa = n(136); n(307); const Aa = {separatorBorder: Nn.a.transparent}; class Ra { @@ -63782,8 +63782,8 @@ ${Object(zn.b)(wi)} }(Wa || (Wa = {})); class za extends pe.a { constructor(e2, t2 = {}) { - super(), this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.state = Fa.Idle, this._onDidSashChange = this._register(new Lt.a()), this.onDidSashChange = this._onDidSashChange.event, this._onDidSashReset = this._register(new Lt.a()), this._startSnappingEnabled = true, this._endSnappingEnabled = true, this.orientation = Jo.k(t2.orientation) ? 0 : t2.orientation, this.inverseAltBehavior = !!t2.inverseAltBehavior, this.proportionalLayout = !!Jo.k(t2.proportionalLayout) || !!t2.proportionalLayout, this.el = document.createElement("div"), ft.e(this.el, "monaco-split-view2"), ft.e(this.el, this.orientation === 0 ? "vertical" : "horizontal"), e2.appendChild(this.el), this.sashContainer = ft.p(this.el, ft.a(".sash-container")), this.viewContainer = ft.p(this.el, ft.a(".split-view-container")), this.style(t2.styles || Aa), t2.descriptor && (this.size = t2.descriptor.size, t2.descriptor.views.forEach((e3, t3) => { - const n2 = Jo.k(e3.visible) || e3.visible ? e3.size : {type: "invisible", cachedVisibleSize: e3.size}, i2 = e3.view; + super(), this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.state = Fa.Idle, this._onDidSashChange = this._register(new Lt.a()), this.onDidSashChange = this._onDidSashChange.event, this._onDidSashReset = this._register(new Lt.a()), this._startSnappingEnabled = true, this._endSnappingEnabled = true, this.orientation = Qr.k(t2.orientation) ? 0 : t2.orientation, this.inverseAltBehavior = !!t2.inverseAltBehavior, this.proportionalLayout = !!Qr.k(t2.proportionalLayout) || !!t2.proportionalLayout, this.el = document.createElement("div"), ft.e(this.el, "monaco-split-view2"), ft.e(this.el, this.orientation === 0 ? "vertical" : "horizontal"), e2.appendChild(this.el), this.sashContainer = ft.p(this.el, ft.a(".sash-container")), this.viewContainer = ft.p(this.el, ft.a(".split-view-container")), this.style(t2.styles || Aa), t2.descriptor && (this.size = t2.descriptor.size, t2.descriptor.views.forEach((e3, t3) => { + const n2 = Qr.k(e3.visible) || e3.visible ? e3.size : {type: "invisible", cachedVisibleSize: e3.size}, i2 = e3.view; this.doAddView(i2, n2, t3, true); }), this.contentSize = this.viewItems.reduce((e3, t3) => e3 + t3.size, 0), this.saveProportions()); } @@ -63829,8 +63829,8 @@ ${Object(zn.b)(wi)} n3.size = Object(ns.b)(Math.round(this.proportions[t3] * e2), n3.minimumSize, n3.maximumSize); } else { - const t3 = Object(G.s)(this.viewItems.length), i2 = t3.filter((e3) => this.viewItems[e3].priority === 1), o2 = t3.filter((e3) => this.viewItems[e3].priority === 2); - this.resize(this.viewItems.length - 1, e2 - n2, void 0, i2, o2); + const t3 = Object(G.s)(this.viewItems.length), i2 = t3.filter((e3) => this.viewItems[e3].priority === 1), r2 = t3.filter((e3) => this.viewItems[e3].priority === 2); + this.resize(this.viewItems.length - 1, e2 - n2, void 0, i2, r2); } this.distributeEmptySpace(), this.layoutViews(); } @@ -63840,9 +63840,9 @@ ${Object(zn.b)(wi)} onSashStart({sash: e2, start: t2, alt: n2}) { for (const e3 of this.viewItems) e3.enabled = false; - const i2 = Object(G.j)(this.sashItems, (t3) => t3.sash === e2), o2 = Object(pe.e)(Object(Cs.a)(document.body, "keydown")((e3) => r2(this.sashDragState.current, e3.altKey)), Object(Cs.a)(document.body, "keyup")(() => r2(this.sashDragState.current, false))), r2 = (e3, t3) => { + const i2 = Object(G.j)(this.sashItems, (t3) => t3.sash === e2), r2 = Object(pe.e)(Object(Cs.a)(document.body, "keydown")((e3) => o2(this.sashDragState.current, e3.altKey)), Object(Cs.a)(document.body, "keyup")(() => o2(this.sashDragState.current, false))), o2 = (e3, t3) => { const n3 = this.viewItems.map((e4) => e4.size); - let r3, s2, a2 = Number.NEGATIVE_INFINITY, l2 = Number.POSITIVE_INFINITY; + let o3, s2, a2 = Number.NEGATIVE_INFINITY, l2 = Number.POSITIVE_INFINITY; if (this.inverseAltBehavior && (t3 = !t3), t3) { if (i2 === this.sashItems.length - 1) { const e4 = this.viewItems[i2]; @@ -63853,27 +63853,27 @@ ${Object(zn.b)(wi)} } } if (!t3) { - const e4 = Object(G.s)(i2, -1), t4 = Object(G.s)(i2 + 1, this.viewItems.length), o3 = e4.reduce((e5, t5) => e5 + (this.viewItems[t5].minimumSize - n3[t5]), 0), a3 = e4.reduce((e5, t5) => e5 + (this.viewItems[t5].viewMaximumSize - n3[t5]), 0), l3 = t4.length === 0 ? Number.POSITIVE_INFINITY : t4.reduce((e5, t5) => e5 + (n3[t5] - this.viewItems[t5].minimumSize), 0), c2 = t4.length === 0 ? Number.NEGATIVE_INFINITY : t4.reduce((e5, t5) => e5 + (n3[t5] - this.viewItems[t5].viewMaximumSize), 0), d2 = Math.max(o3, c2), h2 = Math.min(l3, a3), u2 = this.findFirstSnapIndex(e4), p2 = this.findFirstSnapIndex(t4); + const e4 = Object(G.s)(i2, -1), t4 = Object(G.s)(i2 + 1, this.viewItems.length), r3 = e4.reduce((e5, t5) => e5 + (this.viewItems[t5].minimumSize - n3[t5]), 0), a3 = e4.reduce((e5, t5) => e5 + (this.viewItems[t5].viewMaximumSize - n3[t5]), 0), l3 = t4.length === 0 ? Number.POSITIVE_INFINITY : t4.reduce((e5, t5) => e5 + (n3[t5] - this.viewItems[t5].minimumSize), 0), c2 = t4.length === 0 ? Number.NEGATIVE_INFINITY : t4.reduce((e5, t5) => e5 + (n3[t5] - this.viewItems[t5].viewMaximumSize), 0), d2 = Math.max(r3, c2), h2 = Math.min(l3, a3), u2 = this.findFirstSnapIndex(e4), p2 = this.findFirstSnapIndex(t4); if (typeof u2 == "number") { const e5 = this.viewItems[u2], t5 = Math.floor(e5.viewMinimumSize / 2); - r3 = {index: u2, limitDelta: e5.visible ? d2 - t5 : d2 + t5, size: e5.size}; + o3 = {index: u2, limitDelta: e5.visible ? d2 - t5 : d2 + t5, size: e5.size}; } if (typeof p2 == "number") { const e5 = this.viewItems[p2], t5 = Math.floor(e5.viewMinimumSize / 2); s2 = {index: p2, limitDelta: e5.visible ? h2 + t5 : h2 - t5, size: e5.size}; } } - this.sashDragState = {start: e3, current: e3, index: i2, sizes: n3, minDelta: a2, maxDelta: l2, alt: t3, snapBefore: r3, snapAfter: s2, disposable: o2}; + this.sashDragState = {start: e3, current: e3, index: i2, sizes: n3, minDelta: a2, maxDelta: l2, alt: t3, snapBefore: o3, snapAfter: s2, disposable: r2}; }; - r2(t2, n2); + o2(t2, n2); } onSashChange({current: e2}) { - const {index: t2, start: n2, sizes: i2, alt: o2, minDelta: r2, maxDelta: s2, snapBefore: a2, snapAfter: l2} = this.sashDragState; + const {index: t2, start: n2, sizes: i2, alt: r2, minDelta: o2, maxDelta: s2, snapBefore: a2, snapAfter: l2} = this.sashDragState; this.sashDragState.current = e2; - const c2 = e2 - n2, d2 = this.resize(t2, c2, i2, void 0, void 0, r2, s2, a2, l2); - if (o2) { - const e3 = t2 === this.sashItems.length - 1, n3 = this.viewItems.map((e4) => e4.size), i3 = e3 ? t2 : t2 + 1, o3 = this.viewItems[i3], r3 = o3.size - o3.maximumSize, s3 = o3.size - o3.minimumSize, a3 = e3 ? t2 - 1 : t2 + 1; - this.resize(a3, -d2, n3, void 0, void 0, r3, s3); + const c2 = e2 - n2, d2 = this.resize(t2, c2, i2, void 0, void 0, o2, s2, a2, l2); + if (r2) { + const e3 = t2 === this.sashItems.length - 1, n3 = this.viewItems.map((e4) => e4.size), i3 = e3 ? t2 : t2 + 1, r3 = this.viewItems[i3], o3 = r3.size - r3.maximumSize, s3 = r3.size - r3.minimumSize, a3 = e3 ? t2 - 1 : t2 + 1; + this.resize(a3, -d2, n3, void 0, void 0, o3, s3); } this.distributeEmptySpace(), this.layoutViews(); } @@ -63891,8 +63891,8 @@ ${Object(zn.b)(wi)} throw new Error("Cant modify splitview"); if (this.state = Fa.Busy, e2 < 0 || e2 >= this.viewItems.length) return; - const n2 = Object(G.s)(this.viewItems.length).filter((t3) => t3 !== e2), i2 = [...n2.filter((e3) => this.viewItems[e3].priority === 1), e2], o2 = n2.filter((e3) => this.viewItems[e3].priority === 2), r2 = this.viewItems[e2]; - t2 = Math.round(t2), t2 = Object(ns.b)(t2, r2.minimumSize, Math.min(r2.maximumSize, this.size)), r2.size = t2, this.relayout(i2, o2), this.state = Fa.Idle; + const n2 = Object(G.s)(this.viewItems.length).filter((t3) => t3 !== e2), i2 = [...n2.filter((e3) => this.viewItems[e3].priority === 1), e2], r2 = n2.filter((e3) => this.viewItems[e3].priority === 2), o2 = this.viewItems[e2]; + t2 = Math.round(t2), t2 = Object(ns.b)(t2, o2.minimumSize, Math.min(o2.maximumSize, this.size)), o2.size = t2, this.relayout(i2, r2), this.state = Fa.Idle; } distributeViewSizes() { const e2 = []; @@ -63902,8 +63902,8 @@ ${Object(zn.b)(wi)} const n2 = Math.floor(t2 / e2.length); for (const t3 of e2) t3.size = Object(ns.b)(n2, t3.minimumSize, t3.maximumSize); - const i2 = Object(G.s)(this.viewItems.length), o2 = i2.filter((e3) => this.viewItems[e3].priority === 1), r2 = i2.filter((e3) => this.viewItems[e3].priority === 2); - this.relayout(o2, r2); + const i2 = Object(G.s)(this.viewItems.length), r2 = i2.filter((e3) => this.viewItems[e3].priority === 1), o2 = i2.filter((e3) => this.viewItems[e3].priority === 2); + this.relayout(r2, o2); } getViewSize(e2) { return e2 < 0 || e2 >= this.viewItems.length ? -1 : this.viewItems[e2].size; @@ -63912,37 +63912,37 @@ ${Object(zn.b)(wi)} if (this.state !== Fa.Idle) throw new Error("Cant modify splitview"); this.state = Fa.Busy; - const o2 = ft.a(".split-view-view"); - n2 === this.viewItems.length ? this.viewContainer.appendChild(o2) : this.viewContainer.insertBefore(o2, this.viewContainer.children.item(n2)); - const r2 = e2.onDidChange((e3) => this.onViewChange(c2, e3)), s2 = Object(pe.h)(() => this.viewContainer.removeChild(o2)), a2 = Object(pe.e)(r2, s2); + const r2 = ft.a(".split-view-view"); + n2 === this.viewItems.length ? this.viewContainer.appendChild(r2) : this.viewContainer.insertBefore(r2, this.viewContainer.children.item(n2)); + const o2 = e2.onDidChange((e3) => this.onViewChange(c2, e3)), s2 = Object(pe.h)(() => this.viewContainer.removeChild(r2)), a2 = Object(pe.e)(o2, s2); let l2; l2 = typeof t2 == "number" ? t2 : t2.type === "split" ? this.getViewSize(t2.index) / 2 : t2.type === "invisible" ? {cachedVisibleSize: t2.cachedVisibleSize} : e2.minimumSize; - const c2 = this.orientation === 0 ? new Ma(o2, e2, l2, a2) : new Pa(o2, e2, l2, a2); + const c2 = this.orientation === 0 ? new Ma(r2, e2, l2, a2) : new Pa(r2, e2, l2, a2); if (this.viewItems.splice(n2, 0, c2), this.viewItems.length > 1) { - const e3 = this.orientation === 0 ? new $i.a(this.sashContainer, {getHorizontalSashTop: (e4) => this.getSashPosition(e4)}, {orientation: 1, orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash}) : new $i.a(this.sashContainer, {getVerticalSashLeft: (e4) => this.getSashPosition(e4)}, {orientation: 0, orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash}), t3 = this.orientation === 0 ? (t4) => ({sash: e3, start: t4.startY, current: t4.currentY, alt: t4.altKey}) : (t4) => ({sash: e3, start: t4.startX, current: t4.currentX, alt: t4.altKey}), i3 = Lt.b.map(e3.onDidStart, t3)(this.onSashStart, this), o3 = Lt.b.map(e3.onDidChange, t3)(this.onSashChange, this), r3 = Lt.b.map(e3.onDidEnd, () => Object(G.j)(this.sashItems, (t4) => t4.sash === e3))(this.onSashEnd, this), s3 = e3.onDidReset(() => { - const t4 = Object(G.j)(this.sashItems, (t5) => t5.sash === e3), n3 = Object(G.s)(t4, -1), i4 = Object(G.s)(t4 + 1, this.viewItems.length), o4 = this.findFirstSnapIndex(n3), r4 = this.findFirstSnapIndex(i4); - (typeof o4 != "number" || this.viewItems[o4].visible) && (typeof r4 != "number" || this.viewItems[r4].visible) && this._onDidSashReset.fire(t4); - }), a3 = Object(pe.e)(i3, o3, r3, s3, e3), l3 = {sash: e3, disposable: a3}; + const e3 = this.orientation === 0 ? new $i.a(this.sashContainer, {getHorizontalSashTop: (e4) => this.getSashPosition(e4)}, {orientation: 1, orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash}) : new $i.a(this.sashContainer, {getVerticalSashLeft: (e4) => this.getSashPosition(e4)}, {orientation: 0, orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash}), t3 = this.orientation === 0 ? (t4) => ({sash: e3, start: t4.startY, current: t4.currentY, alt: t4.altKey}) : (t4) => ({sash: e3, start: t4.startX, current: t4.currentX, alt: t4.altKey}), i3 = Lt.b.map(e3.onDidStart, t3)(this.onSashStart, this), r3 = Lt.b.map(e3.onDidChange, t3)(this.onSashChange, this), o3 = Lt.b.map(e3.onDidEnd, () => Object(G.j)(this.sashItems, (t4) => t4.sash === e3))(this.onSashEnd, this), s3 = e3.onDidReset(() => { + const t4 = Object(G.j)(this.sashItems, (t5) => t5.sash === e3), n3 = Object(G.s)(t4, -1), i4 = Object(G.s)(t4 + 1, this.viewItems.length), r4 = this.findFirstSnapIndex(n3), o4 = this.findFirstSnapIndex(i4); + (typeof r4 != "number" || this.viewItems[r4].visible) && (typeof o4 != "number" || this.viewItems[o4].visible) && this._onDidSashReset.fire(t4); + }), a3 = Object(pe.e)(i3, r3, o3, s3, e3), l3 = {sash: e3, disposable: a3}; this.sashItems.splice(n2 - 1, 0, l3); } let d2; - o2.appendChild(e2.element), typeof t2 != "number" && t2.type === "split" && (d2 = [t2.index]), i2 || this.relayout([n2], d2), this.state = Fa.Idle, i2 || typeof t2 == "number" || t2.type !== "distribute" || this.distributeViewSizes(); + r2.appendChild(e2.element), typeof t2 != "number" && t2.type === "split" && (d2 = [t2.index]), i2 || this.relayout([n2], d2), this.state = Fa.Idle, i2 || typeof t2 == "number" || t2.type !== "distribute" || this.distributeViewSizes(); } relayout(e2, t2) { const n2 = this.viewItems.reduce((e3, t3) => e3 + t3.size, 0); this.resize(this.viewItems.length - 1, this.size - n2, void 0, e2, t2), this.distributeEmptySpace(), this.layoutViews(), this.saveProportions(); } - resize(e2, t2, n2 = this.viewItems.map((e3) => e3.size), i2, o2, r2 = Number.NEGATIVE_INFINITY, s2 = Number.POSITIVE_INFINITY, a2, l2) { + resize(e2, t2, n2 = this.viewItems.map((e3) => e3.size), i2, r2, o2 = Number.NEGATIVE_INFINITY, s2 = Number.POSITIVE_INFINITY, a2, l2) { if (e2 < 0 || e2 >= this.viewItems.length) return 0; const c2 = Object(G.s)(e2, -1), d2 = Object(G.s)(e2 + 1, this.viewItems.length); - if (o2) - for (const e3 of o2) + if (r2) + for (const e3 of r2) Object(G.r)(c2, e3), Object(G.r)(d2, e3); if (i2) for (const e3 of i2) Object(G.q)(c2, e3), Object(G.q)(d2, e3); - const h2 = c2.map((e3) => this.viewItems[e3]), u2 = c2.map((e3) => n2[e3]), p2 = d2.map((e3) => this.viewItems[e3]), m2 = d2.map((e3) => n2[e3]), g2 = c2.reduce((e3, t3) => e3 + (this.viewItems[t3].minimumSize - n2[t3]), 0), f2 = c2.reduce((e3, t3) => e3 + (this.viewItems[t3].maximumSize - n2[t3]), 0), b2 = d2.length === 0 ? Number.POSITIVE_INFINITY : d2.reduce((e3, t3) => e3 + (n2[t3] - this.viewItems[t3].minimumSize), 0), _2 = d2.length === 0 ? Number.NEGATIVE_INFINITY : d2.reduce((e3, t3) => e3 + (n2[t3] - this.viewItems[t3].maximumSize), 0), v2 = Math.max(g2, _2, r2), w2 = Math.min(b2, f2, s2); + const h2 = c2.map((e3) => this.viewItems[e3]), u2 = c2.map((e3) => n2[e3]), p2 = d2.map((e3) => this.viewItems[e3]), m2 = d2.map((e3) => n2[e3]), g2 = c2.reduce((e3, t3) => e3 + (this.viewItems[t3].minimumSize - n2[t3]), 0), f2 = c2.reduce((e3, t3) => e3 + (this.viewItems[t3].maximumSize - n2[t3]), 0), b2 = d2.length === 0 ? Number.POSITIVE_INFINITY : d2.reduce((e3, t3) => e3 + (n2[t3] - this.viewItems[t3].minimumSize), 0), _2 = d2.length === 0 ? Number.NEGATIVE_INFINITY : d2.reduce((e3, t3) => e3 + (n2[t3] - this.viewItems[t3].maximumSize), 0), v2 = Math.max(g2, _2, o2), w2 = Math.min(b2, f2, s2); let y2 = false; if (a2) { const e3 = this.viewItems[a2.index], n3 = t2 >= a2.limitDelta; @@ -63953,7 +63953,7 @@ ${Object(zn.b)(wi)} y2 = n3 !== e3.visible, e3.setVisible(n3, l2.size); } if (y2) - return this.resize(e2, t2, n2, i2, o2, r2, s2); + return this.resize(e2, t2, n2, i2, r2, o2, s2); for (let e3 = 0, n3 = t2 = Object(ns.b)(t2, v2, w2); e3 < h2.length; e3++) { const t3 = h2[e3], i3 = Object(ns.b)(u2[e3] + n3, t3.minimumSize, t3.maximumSize); n3 -= i3 - u2[e3], t3.size = i3; @@ -63967,15 +63967,15 @@ ${Object(zn.b)(wi)} distributeEmptySpace(e2) { const t2 = this.viewItems.reduce((e3, t3) => e3 + t3.size, 0); let n2 = this.size - t2; - const i2 = Object(G.s)(this.viewItems.length - 1, -1), o2 = i2.filter((e3) => this.viewItems[e3].priority === 1), r2 = i2.filter((e3) => this.viewItems[e3].priority === 2); - for (const e3 of r2) - Object(G.r)(i2, e3); + const i2 = Object(G.s)(this.viewItems.length - 1, -1), r2 = i2.filter((e3) => this.viewItems[e3].priority === 1), o2 = i2.filter((e3) => this.viewItems[e3].priority === 2); for (const e3 of o2) + Object(G.r)(i2, e3); + for (const e3 of r2) Object(G.q)(i2, e3); typeof e2 == "number" && Object(G.q)(i2, e2); for (let e3 = 0; n2 !== 0 && e3 < i2.length; e3++) { - const t3 = this.viewItems[i2[e3]], o3 = Object(ns.b)(t3.size + n2, t3.minimumSize, t3.maximumSize); - n2 -= o3 - t3.size, t3.size = o3; + const t3 = this.viewItems[i2[e3]], r3 = Object(ns.b)(t3.size + n2, t3.minimumSize, t3.maximumSize); + n2 -= r3 - t3.size, t3.size = r3; } } layoutViews() { @@ -63991,17 +63991,17 @@ ${Object(zn.b)(wi)} e2 = false; const n2 = this.viewItems.map((t3) => e2 = t3.maximumSize - t3.size > 0 || e2), i2 = [...this.viewItems].reverse(); e2 = false; - const o2 = i2.map((t3) => e2 = t3.size - t3.minimumSize > 0 || e2).reverse(); + const r2 = i2.map((t3) => e2 = t3.size - t3.minimumSize > 0 || e2).reverse(); e2 = false; - const r2 = i2.map((t3) => e2 = t3.maximumSize - t3.size > 0 || e2).reverse(); + const o2 = i2.map((t3) => e2 = t3.maximumSize - t3.size > 0 || e2).reverse(); let s2 = 0; for (let e3 = 0; e3 < this.sashItems.length; e3++) { const {sash: i3} = this.sashItems[e3]; s2 += this.viewItems[e3].size; - const a2 = !(t2[e3] && r2[e3 + 1]), l2 = !(n2[e3] && o2[e3 + 1]); + const a2 = !(t2[e3] && o2[e3 + 1]), l2 = !(n2[e3] && r2[e3 + 1]); if (a2 && l2) { - const n3 = Object(G.s)(e3, -1), r3 = Object(G.s)(e3 + 1, this.viewItems.length), a3 = this.findFirstSnapIndex(n3), l3 = this.findFirstSnapIndex(r3), c2 = typeof a3 == "number" && !this.viewItems[a3].visible, d2 = typeof l3 == "number" && !this.viewItems[l3].visible; - c2 && o2[e3] && (s2 > 0 || this.startSnappingEnabled) ? i3.state = 1 : d2 && t2[e3] && (s2 < this.contentSize || this.endSnappingEnabled) ? i3.state = 2 : i3.state = 0; + const n3 = Object(G.s)(e3, -1), o3 = Object(G.s)(e3 + 1, this.viewItems.length), a3 = this.findFirstSnapIndex(n3), l3 = this.findFirstSnapIndex(o3), c2 = typeof a3 == "number" && !this.viewItems[a3].visible, d2 = typeof l3 == "number" && !this.viewItems[l3].visible; + c2 && r2[e3] && (s2 > 0 || this.startSnappingEnabled) ? i3.state = 1 : d2 && t2[e3] && (s2 < this.contentSize || this.endSnappingEnabled) ? i3.state = 2 : i3.state = 0; } else i3.state = a2 && !l2 ? 1 : !a2 && l2 ? 2 : 3; } @@ -64032,36 +64032,36 @@ ${Object(zn.b)(wi)} } } var Ba = n(150), ja = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Va = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Ua = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -64089,9 +64089,9 @@ ${Object(zn.b)(wi)} return; this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(() => this._onDecorationChanged())); const t2 = [], n2 = []; - for (let i3 = 0, o2 = e2.children.length; i3 < o2; i3++) { - let o3 = e2.children[i3]; - this._decorationIgnoreSet.has(o3.id) || o3.uri.toString() === this._editor.getModel().uri.toString() && (t2.push({range: o3.range, options: Ha.DecorationOptions}), n2.push(i3)); + for (let i3 = 0, r2 = e2.children.length; i3 < r2; i3++) { + let r3 = e2.children[i3]; + this._decorationIgnoreSet.has(r3.id) || r3.uri.toString() === this._editor.getModel().uri.toString() && (t2.push({range: r3.range, options: Ha.DecorationOptions}), n2.push(i3)); } const i2 = this._editor.deltaDecorations([], t2); for (let t3 = 0; t3 < i2.length; t3++) @@ -64101,17 +64101,17 @@ ${Object(zn.b)(wi)} const e2 = [], t2 = this._editor.getModel(); if (t2) { for (let [n2, i2] of this._decorations) { - const o2 = t2.getDecorationRange(n2); - if (!o2) + const r2 = t2.getDecorationRange(n2); + if (!r2) continue; - let r2 = false; - if (!ge.a.equalsRange(o2, i2.range)) { - if (ge.a.spansMultipleLines(o2)) - r2 = true; + let o2 = false; + if (!ge.a.equalsRange(r2, i2.range)) { + if (ge.a.spansMultipleLines(r2)) + o2 = true; else { - i2.range.endColumn - i2.range.startColumn !== o2.endColumn - o2.startColumn && (r2 = true); + i2.range.endColumn - i2.range.startColumn !== r2.endColumn - r2.startColumn && (o2 = true); } - r2 ? (this._decorationIgnoreSet.add(i2.id), e2.push(n2)) : i2.range = o2; + o2 ? (this._decorationIgnoreSet.add(i2.id), e2.push(n2)) : i2.range = r2; } } for (let t3 = 0, n2 = e2.length; t3 < n2; t3++) @@ -64124,11 +64124,11 @@ ${Object(zn.b)(wi)} } } Ha.DecorationOptions = be.a.register({stickiness: 1, className: "reference-decoration"}); - class qa extends Da.c { + class qa extends Oa.c { } let $a = class extends Vs { - constructor(e2, t2, n2, i2, o2, r2, s2, a2, l2, c2) { - super(e2, {showFrame: false, showArrow: true, isResizeable: true, isAccessible: true}, r2), this._defaultTreeKeyboardSupport = t2, this.layoutData = n2, this._textModelResolverService = o2, this._instantiationService = r2, this._peekViewService = s2, this._uriLabel = a2, this._undoRedoService = l2, this._keybindingService = c2, this._disposeOnNewModel = new pe.b(), this._callOnDispose = new pe.b(), this._onDidSelectReference = new Lt.a(), this.onDidSelectReference = this._onDidSelectReference.event, this._dim = {height: 0, width: 0}, this._applyTheme(i2.getColorTheme()), this._callOnDispose.add(i2.onDidColorThemeChange(this._applyTheme.bind(this))), this._peekViewService.addExclusiveWidget(e2, this), this.create(); + constructor(e2, t2, n2, i2, r2, o2, s2, a2, l2, c2) { + super(e2, {showFrame: false, showArrow: true, isResizeable: true, isAccessible: true}, o2), this._defaultTreeKeyboardSupport = t2, this.layoutData = n2, this._textModelResolverService = r2, this._instantiationService = o2, this._peekViewService = s2, this._uriLabel = a2, this._undoRedoService = l2, this._keybindingService = c2, this._disposeOnNewModel = new pe.b(), this._callOnDispose = new pe.b(), this._onDidSelectReference = new Lt.a(), this.onDidSelectReference = this._onDidSelectReference.event, this._dim = {height: 0, width: 0}, this._applyTheme(i2.getColorTheme()), this._callOnDispose.add(i2.onDidColorThemeChange(this._applyTheme.bind(this))), this._peekViewService.addExclusiveWidget(e2, this), this.create(); } dispose() { this.setModel(void 0), this._callOnDispose.dispose(), this._disposeOnNewModel.dispose(), Object(pe.f)(this._preview), Object(pe.f)(this._previewNotAvailableMessage), Object(pe.f)(this._tree), Object(pe.f)(this._previewModelReference), this._splitView.dispose(), super.dispose(); @@ -64155,7 +64155,7 @@ ${Object(zn.b)(wi)} _fillBody(e2) { this.setCssClass("reference-zone-widget"), this._messageContainer = ft.p(e2, ft.a("div.messages")), ft.K(this._messageContainer), this._splitView = new za(e2, {orientation: 1}), this._previewContainer = ft.p(e2, ft.a("div.preview.inline")); this._preview = this._instantiationService.createInstance(gs, this._previewContainer, {scrollBeyondLastLine: false, scrollbar: {verticalScrollbarSize: 14, horizontal: "auto", useShadows: true, verticalHasArrows: false, horizontalHasArrows: false, alwaysConsumeMouseWheel: false}, overviewRulerLanes: 2, fixedOverflowWidgets: true, minimap: {enabled: false}}, this.editor), ft.K(this._previewContainer), this._previewNotAvailableMessage = new be.b(U.a("missingPreviewMessage", "no preview available"), be.b.DEFAULT_CREATION_OPTIONS, null, null, this._undoRedoService), this._treeContainer = ft.p(e2, ft.a("div.ref-tree.inline")); - const t2 = {keyboardSupport: this._defaultTreeKeyboardSupport, accessibilityProvider: new Oa(), keyboardNavigationLabelProvider: this._instantiationService.createInstance(ka), identityProvider: new Ea(), openOnSingleClick: true, openOnFocus: true, overrideStyles: {listBackground: Ks}}; + const t2 = {keyboardSupport: this._defaultTreeKeyboardSupport, accessibilityProvider: new Da(), keyboardNavigationLabelProvider: this._instantiationService.createInstance(ka), identityProvider: new Ea(), openOnSingleClick: true, openOnFocus: true, overrideStyles: {listBackground: Ks}}; this._defaultTreeKeyboardSupport && this._callOnDispose.add(ft.n(this._treeContainer, "keydown", (e3) => { e3.equals(9) && (this._keybindingService.dispatchEvent(e3, e3.target), e3.stopPropagation()); }, true)), this._tree = this._instantiationService.createInstance(qa, "ReferencesWidget", this._treeContainer, new Sa(), [this._instantiationService.createInstance(La), this._instantiationService.createInstance(Ia)], this._instantiationService.createInstance(xa), t2), this._splitView.addView({onDidChange: Lt.b.None, element: this._previewContainer, minimumSize: 200, maximumSize: Number.MAX_VALUE, layout: (e3) => { @@ -64166,7 +64166,7 @@ ${Object(zn.b)(wi)} this._dim.width && (this.layoutData.ratio = this._splitView.getViewSize(0) / this._dim.width); }, void 0)); let n2 = (e3, t3) => { - e3 instanceof oa && (t3 === "show" && this._revealReference(e3, false), this._onDidSelectReference.fire({element: e3, kind: t3, source: "tree"})); + e3 instanceof ra && (t3 === "show" && this._revealReference(e3, false), this._onDidSelectReference.fire({element: e3, kind: t3, source: "tree"})); }; this._tree.onDidOpen((e3) => { e3.sideBySide ? n2(e3.element, "side") : e3.editorOptions.pinned ? n2(e3.element, "goto") : n2(e3.element, "show"); @@ -64197,7 +64197,7 @@ ${Object(zn.b)(wi)} } _getFocusedReference() { const [e2] = this._tree.getFocus(); - return e2 instanceof oa ? e2 : e2 instanceof sa && e2.children.length > 0 ? e2.children[0] : void 0; + return e2 instanceof ra ? e2 : e2 instanceof sa && e2.children.length > 0 ? e2.children[0] : void 0; } revealReference(e2) { return Ua(this, void 0, void 0, function* () { @@ -64215,10 +64215,10 @@ ${Object(zn.b)(wi)} if (!this._model) return void i2.dispose(); Object(pe.f)(this._previewModelReference); - const o2 = i2.object; - if (o2) { - const t3 = this._preview.getModel() === o2.textEditorModel ? 0 : 1, n3 = ge.a.lift(e2.range).collapseToStart(); - this._previewModelReference = i2, this._preview.setModel(o2.textEditorModel), this._preview.setSelection(n3), this._preview.revealRangeInCenter(n3, t3); + const r2 = i2.object; + if (r2) { + const t3 = this._preview.getModel() === r2.textEditorModel ? 0 : 1, n3 = ge.a.lift(e2.range).collapseToStart(); + this._previewModelReference = i2, this._preview.setModel(r2.textEditorModel), this._preview.setSelection(n3), this._preview.revealRangeInCenter(n3, t3); } else this._preview.setModel(this._previewNotAvailableMessage), i2.dispose(); }); @@ -64229,10 +64229,10 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${n2}; }`); const i2 = e2.getColor(ta); i2 && t2.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${i2}; }`); - const o2 = e2.getColor(na); - o2 && t2.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${o2}; box-sizing: border-box; }`); - const r2 = e2.getColor(ve.b); - r2 && t2.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${r2}; box-sizing: border-box; }`); + const r2 = e2.getColor(na); + r2 && t2.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${r2}; box-sizing: border-box; }`); + const o2 = e2.getColor(ve.b); + o2 && t2.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${o2}; box-sizing: border-box; }`); const s2 = e2.getColor(Ks); s2 && t2.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${s2}; }`); const a2 = e2.getColor(Gs); @@ -64249,36 +64249,36 @@ ${Object(zn.b)(wi)} u2 && t2.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin { background-color: ${u2};}`); }); var Ka = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ga = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Ya = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -64287,8 +64287,8 @@ ${Object(zn.b)(wi)} }; const Za = new K.c("referenceSearchVisible", false); let Xa = class e2 { - constructor(e3, t2, n2, i2, o2, r2, s2, a2) { - this._defaultTreeKeyboardSupport = e3, this._editor = t2, this._editorService = i2, this._notificationService = o2, this._instantiationService = r2, this._storageService = s2, this._configurationService = a2, this._disposables = new pe.b(), this._requestIdPool = 0, this._ignoreModelChangeEvent = false, this._referenceSearchVisible = Za.bindTo(n2); + constructor(e3, t2, n2, i2, r2, o2, s2, a2) { + this._defaultTreeKeyboardSupport = e3, this._editor = t2, this._editorService = i2, this._notificationService = r2, this._instantiationService = o2, this._storageService = s2, this._configurationService = a2, this._disposables = new pe.b(), this._requestIdPool = 0, this._ignoreModelChangeEvent = false, this._referenceSearchVisible = Za.bindTo(n2); } static get(t2) { return t2.getContribution(e2.ID); @@ -64305,7 +64305,7 @@ ${Object(zn.b)(wi)} })), this._disposables.add(this._editor.onDidChangeModel(() => { this._ignoreModelChangeEvent || this.closeWidget(); })); - const o2 = class { + const r2 = class { constructor() { this.ratio = 0.7, this.heightInLines = 18; } @@ -64319,7 +64319,7 @@ ${Object(zn.b)(wi)} return {ratio: t3 || 0.7, heightInLines: n3 || 18}; } }.fromJSON(this._storageService.get("peekViewLayout", 0, "{}")); - this._widget = this._instantiationService.createInstance($a, this._editor, this._defaultTreeKeyboardSupport, o2), this._widget.setTitle(U.a("labelLoading", "Loading...")), this._widget.show(e3), this._disposables.add(this._widget.onDidClose(() => { + this._widget = this._instantiationService.createInstance($a, this._editor, this._defaultTreeKeyboardSupport, r2), this._widget.setTitle(U.a("labelLoading", "Loading...")), this._widget.show(e3), this._disposables.add(this._widget.onDidClose(() => { t2.cancel(), this._widget && (this._storageService.store("peekViewLayout", JSON.stringify(this._widget.layoutData), 0), this._widget = void 0), this.closeWidget(); })), this._disposables.add(this._widget.onDidSelectReference((e4) => { let {element: t3, kind: i3} = e4; @@ -64335,9 +64335,9 @@ ${Object(zn.b)(wi)} n2 ? this._gotoReference(t3) : this.openReference(t3, false); } })); - const r2 = ++this._requestIdPool; + const o2 = ++this._requestIdPool; t2.then((t3) => { - if (r2 === this._requestIdPool && this._widget) + if (o2 === this._requestIdPool && this._widget) return this._model && this._model.dispose(), this._model = t3, this._widget.setModel(this._model).then(() => { if (this._widget && this._model && this._editor.hasModel()) { this._model.isEmpty ? this._widget.setMetaTitle("") : this._widget.setMetaTitle(U.a("metaTitle.N", "{0} ({1})", this._model.title, this._model.references.length)); @@ -64365,8 +64365,8 @@ ${Object(zn.b)(wi)} const n2 = this._model.nearestReference(this._editor.getModel().uri, t2); if (!n2) return; - const i2 = this._model.nextOrPreviousReference(n2, e3), o2 = this._editor.hasTextFocus(), r2 = this._widget.isPreviewEditorFocused(); - yield this._widget.setSelection(i2), yield this._gotoReference(i2), o2 ? this._editor.focus() : this._widget && r2 && this._widget.focusOnPreviewEditor(); + const i2 = this._model.nextOrPreviousReference(n2, e3), r2 = this._editor.hasTextFocus(), o2 = this._widget.isPreviewEditorFocused(); + yield this._widget.setSelection(i2), yield this._gotoReference(i2), r2 ? this._editor.focus() : this._widget && o2 && this._widget.focusOnPreviewEditor(); }); } revealReference(e3) { @@ -64386,8 +64386,8 @@ ${Object(zn.b)(wi)} if (this._editor === t3) this._widget.show(n2), this._widget.focusOnReferenceTree(); else { - const o2 = e2.get(t3), r2 = this._model.clone(); - this.closeWidget(), t3.focus(), o2.toggleWidget(n2, Object(ue.f)((e3) => Promise.resolve(r2)), (i2 = this._peekMode) !== null && i2 !== void 0 && i2); + const r2 = e2.get(t3), o2 = this._model.clone(); + this.closeWidget(), t3.focus(), r2.toggleWidget(n2, Object(ue.f)((e3) => Promise.resolve(o2)), (i2 = this._peekMode) !== null && i2 !== void 0 && i2); } else this.closeWidget(); @@ -64411,7 +64411,7 @@ ${Object(zn.b)(wi)} let i2 = Xa.get(n2); i2 && t2(i2); } - Xa.ID = "editor.contrib.referencesController", Xa = Ka([Ga(2, K.b), Ga(3, Me.a), Ga(4, zt.a), Ga(5, gt.a), Ga(6, fn.a), Ga(7, On.a)], Xa), Zi.a.registerCommandAndKeybindingRule({id: "togglePeekWidgetFocus", weight: 100, primary: Object($.a)(2089, 60), when: K.a.or(Za, Ws.inPeekEditor), handler(e2) { + Xa.ID = "editor.contrib.referencesController", Xa = Ka([Ga(2, K.b), Ga(3, Me.a), Ga(4, zt.a), Ga(5, gt.a), Ga(6, fn.a), Ga(7, Dn.a)], Xa), Zi.a.registerCommandAndKeybindingRule({id: "togglePeekWidgetFocus", weight: 100, primary: Object($.a)(2089, 60), when: K.a.or(Za, Ws.inPeekEditor), handler(e2) { Qa(e2, (e3) => { e3.changeFocusBetweenPreviewAndReferences(); }); @@ -64423,38 +64423,38 @@ ${Object(zn.b)(wi)} Qa(e2, (e3) => { e3.goToNextOrPreviousReference(false); }); - }}), Ft.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor", "goToNextReference"), Ft.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor", "goToPreviousReference"), Ft.a.registerCommandAlias("closeReferenceSearchEditor", "closeReferenceSearch"), Ft.a.registerCommand("closeReferenceSearch", (e2) => Qa(e2, (e3) => e3.closeWidget())), Zi.a.registerKeybindingRule({id: "closeReferenceSearch", weight: -1, primary: 9, secondary: [1033], when: K.a.and(Ws.inPeekEditor, K.a.not("config.editor.stablePeek"))}), Zi.a.registerKeybindingRule({id: "closeReferenceSearch", weight: 250, primary: 9, secondary: [1033], when: K.a.and(Za, K.a.not("config.editor.stablePeek"))}), Zi.a.registerCommandAndKeybindingRule({id: "revealReference", weight: 200, primary: 3, mac: {primary: 3, secondary: [2066]}, when: K.a.and(Za, Da.e), handler(e2) { + }}), Ft.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor", "goToNextReference"), Ft.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor", "goToPreviousReference"), Ft.a.registerCommandAlias("closeReferenceSearchEditor", "closeReferenceSearch"), Ft.a.registerCommand("closeReferenceSearch", (e2) => Qa(e2, (e3) => e3.closeWidget())), Zi.a.registerKeybindingRule({id: "closeReferenceSearch", weight: -1, primary: 9, secondary: [1033], when: K.a.and(Ws.inPeekEditor, K.a.not("config.editor.stablePeek"))}), Zi.a.registerKeybindingRule({id: "closeReferenceSearch", weight: 250, primary: 9, secondary: [1033], when: K.a.and(Za, K.a.not("config.editor.stablePeek"))}), Zi.a.registerCommandAndKeybindingRule({id: "revealReference", weight: 200, primary: 3, mac: {primary: 3, secondary: [2066]}, when: K.a.and(Za, Oa.e), handler(e2) { var t2; - const n2 = (t2 = e2.get(Da.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); - Array.isArray(n2) && n2[0] instanceof oa && Qa(e2, (e3) => e3.revealReference(n2[0])); - }}), Zi.a.registerCommandAndKeybindingRule({id: "openReferenceToSide", weight: 100, primary: 2051, mac: {primary: 259}, when: K.a.and(Za, Da.e), handler(e2) { + const n2 = (t2 = e2.get(Oa.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); + Array.isArray(n2) && n2[0] instanceof ra && Qa(e2, (e3) => e3.revealReference(n2[0])); + }}), Zi.a.registerCommandAndKeybindingRule({id: "openReferenceToSide", weight: 100, primary: 2051, mac: {primary: 259}, when: K.a.and(Za, Oa.e), handler(e2) { var t2; - const n2 = (t2 = e2.get(Da.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); - Array.isArray(n2) && n2[0] instanceof oa && Qa(e2, (e3) => e3.openReference(n2[0], true)); + const n2 = (t2 = e2.get(Oa.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); + Array.isArray(n2) && n2[0] instanceof ra && Qa(e2, (e3) => e3.openReference(n2[0], true)); }}), Ft.a.registerCommand("openReference", (e2) => { var t2; - const n2 = (t2 = e2.get(Da.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); - Array.isArray(n2) && n2[0] instanceof oa && Qa(e2, (e3) => e3.openReference(n2[0], false)); + const n2 = (t2 = e2.get(Oa.a).lastFocusedList) === null || t2 === void 0 ? void 0 : t2.getFocus(); + Array.isArray(n2) && n2[0] instanceof ra && Qa(e2, (e3) => e3.openReference(n2[0], false)); }); var Ja = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -64462,10 +64462,10 @@ ${Object(zn.b)(wi)} }); }; function el(e2, t2, n2, i2) { - const o2 = n2.ordered(e2).map((n3) => Promise.resolve(i2(n3, e2, t2)).then(void 0, (e3) => { + const r2 = n2.ordered(e2).map((n3) => Promise.resolve(i2(n3, e2, t2)).then(void 0, (e3) => { Object(Z.f)(e3); })); - return Promise.all(o2).then((e3) => { + return Promise.all(r2).then((e3) => { const t3 = []; for (let n3 of e3) Array.isArray(n3) ? t3.push(...n3) : n3 && t3.push(n3); @@ -64481,27 +64481,27 @@ ${Object(zn.b)(wi)} function il(e2, t2, n2) { return el(e2, t2, et.q, (e3, t3, i2) => e3.provideImplementation(t3, i2, n2)); } - function ol(e2, t2, n2) { + function rl(e2, t2, n2) { return el(e2, t2, et.D, (e3, t3, i2) => e3.provideTypeDefinition(t3, i2, n2)); } - function rl(e2, t2, n2, i2) { - return el(e2, t2, et.v, (e3, t3, o2) => Ja(this, void 0, void 0, function* () { - const r2 = yield e3.provideReferences(t3, o2, {includeDeclaration: true}, i2); - if (!n2 || !r2 || r2.length !== 2) - return r2; - const s2 = yield e3.provideReferences(t3, o2, {includeDeclaration: false}, i2); - return s2 && s2.length === 1 ? s2 : r2; + function ol(e2, t2, n2, i2) { + return el(e2, t2, et.v, (e3, t3, r2) => Ja(this, void 0, void 0, function* () { + const o2 = yield e3.provideReferences(t3, r2, {includeDeclaration: true}, i2); + if (!n2 || !o2 || o2.length !== 2) + return o2; + const s2 = yield e3.provideReferences(t3, r2, {includeDeclaration: false}, i2); + return s2 && s2.length === 1 ? s2 : o2; })); } - Object(V.p)("_executeDefinitionProvider", (e2, t2) => tl(e2, t2, Xe.a.None)), Object(V.p)("_executeDeclarationProvider", (e2, t2) => nl(e2, t2, Xe.a.None)), Object(V.p)("_executeImplementationProvider", (e2, t2) => il(e2, t2, Xe.a.None)), Object(V.p)("_executeTypeDefinitionProvider", (e2, t2) => ol(e2, t2, Xe.a.None)), Object(V.p)("_executeReferenceProvider", (e2, t2) => rl(e2, t2, false, Xe.a.None)); + Object(V.p)("_executeDefinitionProvider", (e2, t2) => tl(e2, t2, Xe.a.None)), Object(V.p)("_executeDeclarationProvider", (e2, t2) => nl(e2, t2, Xe.a.None)), Object(V.p)("_executeImplementationProvider", (e2, t2) => il(e2, t2, Xe.a.None)), Object(V.p)("_executeTypeDefinitionProvider", (e2, t2) => rl(e2, t2, Xe.a.None)), Object(V.p)("_executeReferenceProvider", (e2, t2) => ol(e2, t2, false, Xe.a.None)); var sl = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, al = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -64526,16 +64526,16 @@ ${Object(zn.b)(wi)} const n3 = this._editorService.getActiveCodeEditor(); if (!n3) return; - const i3 = n3.getModel(), o2 = n3.getPosition(); - if (!i3 || !o2) + const i3 = n3.getModel(), r2 = n3.getPosition(); + if (!i3 || !r2) return; - let r2 = false, s2 = false; + let o2 = false, s2 = false; for (const e4 of t2.references) if (Object(jt.f)(e4.uri, i3.uri)) - r2 = true, s2 = s2 || ge.a.containsPosition(e4.range, o2); - else if (r2) + o2 = true, s2 = s2 || ge.a.containsPosition(e4.range, r2); + else if (o2) break; - r2 && s2 || this.reset(); + o2 && s2 || this.reset(); }); this._currentState = Object(pe.e)(n2, i2); } @@ -64580,24 +64580,24 @@ ${Object(zn.b)(wi)} }; hl = sl([al(0, Me.a)], hl); var ul, pl, ml, gl, fl, bl, _l, vl, wl = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -64612,7 +64612,7 @@ ${Object(zn.b)(wi)} run(e2, t2) { if (!t2.hasModel()) return Promise.resolve(void 0); - const n2 = e2.get(zt.a), i2 = e2.get(Me.a), o2 = e2.get(rt.a), r2 = e2.get(cl), s2 = t2.getModel(), a2 = t2.getPosition(), l2 = new Je.b(t2, 5), c2 = Object(ue.j)(this._getLocationModel(s2, a2, l2.token), l2.token).then((e3) => wl(this, void 0, void 0, function* () { + const n2 = e2.get(zt.a), i2 = e2.get(Me.a), r2 = e2.get(ot.a), o2 = e2.get(cl), s2 = t2.getModel(), a2 = t2.getPosition(), l2 = new Je.b(t2, 5), c2 = Object(ue.j)(this._getLocationModel(s2, a2, l2.token), l2.token).then((e3) => wl(this, void 0, void 0, function* () { if (!e3 || l2.token.isCancellationRequested) return; let n3; @@ -64620,15 +64620,15 @@ ${Object(zn.b)(wi)} const e4 = this._getAlternativeCommand(t2); e4 !== this.id && (n3 = t2.getAction(e4)); } - const o3 = e3.references.length; - if (o3 === 0) { + const r3 = e3.references.length; + if (r3 === 0) { if (!this._configuration.muteMessage) { const e4 = s2.getWordAtPosition(a2); ut.get(t2).showMessage(this._getNoResultFoundMessage(e4), a2); } } else { - if (o3 !== 1 || !n3) - return this._onResult(i2, r2, t2, e3); + if (r3 !== 1 || !n3) + return this._onResult(i2, o2, t2, e3); n3.run(); } }), (e3) => { @@ -64636,26 +64636,26 @@ ${Object(zn.b)(wi)} }).finally(() => { l2.dispose(); }); - return o2.showWhile(c2, 250), c2; + return r2.showWhile(c2, 250), c2; } _onResult(e2, t2, n2, i2) { return wl(this, void 0, void 0, function* () { - const o2 = this._getGoToPreference(n2); - if (n2 instanceof gs || !(this._configuration.openInPeek || o2 === "peek" && i2.references.length > 1)) { - const r2 = i2.firstReference(), s2 = i2.references.length > 1 && o2 === "gotoAndPeek", a2 = yield this._openReference(n2, e2, r2, this._configuration.openToSide, !s2); - s2 && a2 ? this._openInPeek(a2, i2) : i2.dispose(), o2 === "goto" && t2.put(r2); + const r2 = this._getGoToPreference(n2); + if (n2 instanceof gs || !(this._configuration.openInPeek || r2 === "peek" && i2.references.length > 1)) { + const o2 = i2.firstReference(), s2 = i2.references.length > 1 && r2 === "gotoAndPeek", a2 = yield this._openReference(n2, e2, o2, this._configuration.openToSide, !s2); + s2 && a2 ? this._openInPeek(a2, i2) : i2.dispose(), r2 === "goto" && t2.put(o2); } else this._openInPeek(n2, i2); }); } - _openReference(e2, t2, n2, i2, o2) { + _openReference(e2, t2, n2, i2, r2) { return wl(this, void 0, void 0, function* () { - let r2 = void 0; - Object(et.G)(n2) && (r2 = n2.targetSelectionRange), r2 || (r2 = n2.range); - const s2 = yield t2.openCodeEditor({resource: n2.uri, options: {selection: ge.a.collapseToStart(r2), selectionRevealType: 3}}, e2, i2); + let o2 = void 0; + Object(et.G)(n2) && (o2 = n2.targetSelectionRange), o2 || (o2 = n2.range); + const s2 = yield t2.openCodeEditor({resource: n2.uri, options: {selection: ge.a.collapseToStart(o2), selectionRevealType: 3}}, e2, i2); if (s2) { - if (o2) { - const e3 = s2.getModel(), t3 = s2.deltaDecorations([], [{range: r2, options: {className: "symbolHighlight"}}]); + if (r2) { + const e3 = s2.getModel(), t3 = s2.deltaDecorations([], [{range: o2, options: {className: "symbolHighlight"}}]); setTimeout(() => { s2.getModel() === e3 && s2.deltaDecorations(t3, []); }, 350); @@ -64685,7 +64685,7 @@ ${Object(zn.b)(wi)} return e2.getOption(43).multipleDefinitions; } } - const xl = Ae.h && !De.k ? 2118 : 70; + const xl = Ae.h && !Oe.k ? 2118 : 70; Object(V.k)(((ul = class e2 extends Cl { constructor() { super({openToSide: false, openInPeek: false, muteMessage: false}, {id: e2.id, label: U.a("actions.goToDecl.label", "Go to Definition"), alias: "Go to Definition", precondition: K.a.and(H.a.hasDefinitionProvider, H.a.isInWalkThroughSnippet.toNegated()), kbOpts: {kbExpr: H.a.editorTextFocus, primary: xl, weight: 100}, contextMenuOpts: {group: "navigation", order: 1.1}, menuOpts: {menuId: ye.b.MenubarGoMenu, group: "4_symbol_nav", order: 2, title: U.a({key: "miGotoDefinition", comment: ["&& denotes a mnemonic"]}, "Go to &&Definition")}}), Ft.a.registerCommandAlias("editor.action.goToDeclaration", e2.id); @@ -64730,7 +64730,7 @@ ${Object(zn.b)(wi)} class kl extends yl { _getLocationModel(e2, t2, n2) { return wl(this, void 0, void 0, function* () { - return new aa(yield ol(e2, t2, n2), U.a("typedef.title", "Type Definitions")); + return new aa(yield rl(e2, t2, n2), U.a("typedef.title", "Type Definitions")); }); } _getNoResultFoundMessage(e2) { @@ -64794,7 +64794,7 @@ ${Object(zn.b)(wi)} } _getLocationModel(e2, t2, n2) { return wl(this, void 0, void 0, function* () { - return new aa(yield rl(e2, t2, true, n2), U.a("ref.title", "References")); + return new aa(yield ol(e2, t2, true, n2), U.a("ref.title", "References")); }); } }), Object(V.k)(class extends Tl { @@ -64803,7 +64803,7 @@ ${Object(zn.b)(wi)} } _getLocationModel(e2, t2, n2) { return wl(this, void 0, void 0, function* () { - return new aa(yield rl(e2, t2, false, n2), U.a("ref.title", "References")); + return new aa(yield ol(e2, t2, false, n2), U.a("ref.title", "References")); }); } }); @@ -64827,31 +64827,31 @@ ${Object(zn.b)(wi)} return ""; } } - Ft.a.registerCommand({id: "editor.action.goToLocations", description: {description: "Go to locations from a position in a file", args: [{name: "uri", description: "The text document in which to start", constraint: Qe.a}, {name: "position", description: "The position at which to start", constraint: me.a.isIPosition}, {name: "locations", description: "An array of locations.", constraint: Array}, {name: "multiple", description: "Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}, {name: "noResultsMessage", description: "Human readable message that shows when locations is empty."}]}, handler: (e2, t2, n2, i2, o2, r2, s2) => wl(void 0, void 0, void 0, function* () { - Object(Jo.b)(Qe.a.isUri(t2)), Object(Jo.b)(me.a.isIPosition(n2)), Object(Jo.b)(Array.isArray(i2)), Object(Jo.b)(o2 === void 0 || typeof o2 == "string"), Object(Jo.b)(s2 === void 0 || typeof s2 == "boolean"); + Ft.a.registerCommand({id: "editor.action.goToLocations", description: {description: "Go to locations from a position in a file", args: [{name: "uri", description: "The text document in which to start", constraint: Qe.a}, {name: "position", description: "The position at which to start", constraint: me.a.isIPosition}, {name: "locations", description: "An array of locations.", constraint: Array}, {name: "multiple", description: "Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}, {name: "noResultsMessage", description: "Human readable message that shows when locations is empty."}]}, handler: (e2, t2, n2, i2, r2, o2, s2) => wl(void 0, void 0, void 0, function* () { + Object(Qr.b)(Qe.a.isUri(t2)), Object(Qr.b)(me.a.isIPosition(n2)), Object(Qr.b)(Array.isArray(i2)), Object(Qr.b)(r2 === void 0 || typeof r2 == "string"), Object(Qr.b)(s2 === void 0 || typeof s2 == "boolean"); const a2 = e2.get(Me.a), l2 = yield a2.openCodeEditor({resource: t2}, a2.getFocusedCodeEditor()); - if (Object(Rr.b)(l2)) + if (Object(Ro.b)(l2)) return l2.setPosition(n2), l2.revealPositionInCenterIfOutsideViewport(n2, 0), l2.invokeWithinContext((e3) => { const t3 = new class extends Ll { _getNoResultFoundMessage(e4) { - return r2 || super._getNoResultFoundMessage(e4); + return o2 || super._getNoResultFoundMessage(e4); } - }({muteMessage: !Boolean(r2), openInPeek: Boolean(s2), openToSide: false}, i2, o2); + }({muteMessage: !Boolean(o2), openInPeek: Boolean(s2), openToSide: false}, i2, r2); e3.get(gt.a).invokeFunction(t3.run.bind(t3), l2); }); - })}), Ft.a.registerCommand({id: "editor.action.peekLocations", description: {description: "Peek locations from a position in a file", args: [{name: "uri", description: "The text document in which to start", constraint: Qe.a}, {name: "position", description: "The position at which to start", constraint: me.a.isIPosition}, {name: "locations", description: "An array of locations.", constraint: Array}, {name: "multiple", description: "Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]}, handler: (e2, t2, n2, i2, o2) => wl(void 0, void 0, void 0, function* () { - e2.get(Ft.b).executeCommand("editor.action.goToLocations", t2, n2, i2, o2, void 0, true); + })}), Ft.a.registerCommand({id: "editor.action.peekLocations", description: {description: "Peek locations from a position in a file", args: [{name: "uri", description: "The text document in which to start", constraint: Qe.a}, {name: "position", description: "The position at which to start", constraint: me.a.isIPosition}, {name: "locations", description: "An array of locations.", constraint: Array}, {name: "multiple", description: "Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]}, handler: (e2, t2, n2, i2, r2) => wl(void 0, void 0, void 0, function* () { + e2.get(Ft.b).executeCommand("editor.action.goToLocations", t2, n2, i2, r2, void 0, true); })}), Ft.a.registerCommand({id: "editor.action.findReferences", handler: (e2, t2, n2) => { - Object(Jo.b)(Qe.a.isUri(t2)), Object(Jo.b)(me.a.isIPosition(n2)); + Object(Qr.b)(Qe.a.isUri(t2)), Object(Qr.b)(me.a.isIPosition(n2)); const i2 = e2.get(Me.a); return i2.openCodeEditor({resource: t2}, i2.getFocusedCodeEditor()).then((e3) => { - if (!Object(Rr.b)(e3) || !e3.hasModel()) + if (!Object(Ro.b)(e3) || !e3.hasModel()) return; const t3 = Xa.get(e3); if (!t3) return; - const i3 = Object(ue.f)((t4) => rl(e3.getModel(), me.a.lift(n2), false, t4).then((e4) => new aa(e4, U.a("ref.title", "References")))), o2 = new ge.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column); - return Promise.resolve(t3.toggleWidget(o2, i3, false)); + const i3 = Object(ue.f)((t4) => ol(e3.getModel(), me.a.lift(n2), false, t4).then((e4) => new aa(e4, U.a("ref.title", "References")))), r2 = new ge.a(n2.lineNumber, n2.column, n2.lineNumber, n2.column); + return Promise.resolve(t3.toggleWidget(r2, i3, false)); }); }}), Ft.a.registerCommandAlias("editor.action.showReferences", "editor.action.peekLocations"); n(309); @@ -64859,12 +64859,12 @@ ${Object(zn.b)(wi)} function Il(e2, t2) { return !!e2[t2]; } - class Ol { + class Dl { constructor(e2, t2) { this.target = e2.target, this.hasTriggerModifier = Il(e2.event, t2.triggerModifier), this.hasSideBySideModifier = Il(e2.event, t2.triggerSideBySideModifier), this.isNoneOrSingleMouseDown = e2.event.detail <= 1; } } - class Dl { + class Ol { constructor(e2, t2) { this.keyCodeIsTriggerKey = e2.keyCode === t2.triggerKey, this.keyCodeIsSideBySideKey = e2.keyCode === t2.triggerSideBySideKey, this.hasTriggerModifier = Il(e2, t2.triggerModifier); } @@ -64889,7 +64889,7 @@ ${Object(zn.b)(wi)} return; this._opts = e4, this._lastMouseMoveEvent = null, this._hasTriggerKeyOnMouseDown = false, this._lineNumberOnMouseDown = 0, this._onCancel.fire(); } - })), this._register(this._editor.onMouseMove((e3) => this._onEditorMouseMove(new Ol(e3, this._opts)))), this._register(this._editor.onMouseDown((e3) => this._onEditorMouseDown(new Ol(e3, this._opts)))), this._register(this._editor.onMouseUp((e3) => this._onEditorMouseUp(new Ol(e3, this._opts)))), this._register(this._editor.onKeyDown((e3) => this._onEditorKeyDown(new Dl(e3, this._opts)))), this._register(this._editor.onKeyUp((e3) => this._onEditorKeyUp(new Dl(e3, this._opts)))), this._register(this._editor.onMouseDrag(() => this._resetHandler())), this._register(this._editor.onDidChangeCursorSelection((e3) => this._onDidChangeCursorSelection(e3))), this._register(this._editor.onDidChangeModel((e3) => this._resetHandler())), this._register(this._editor.onDidChangeModelContent(() => this._resetHandler())), this._register(this._editor.onDidScrollChange((e3) => { + })), this._register(this._editor.onMouseMove((e3) => this._onEditorMouseMove(new Dl(e3, this._opts)))), this._register(this._editor.onMouseDown((e3) => this._onEditorMouseDown(new Dl(e3, this._opts)))), this._register(this._editor.onMouseUp((e3) => this._onEditorMouseUp(new Dl(e3, this._opts)))), this._register(this._editor.onKeyDown((e3) => this._onEditorKeyDown(new Ol(e3, this._opts)))), this._register(this._editor.onKeyUp((e3) => this._onEditorKeyUp(new Ol(e3, this._opts)))), this._register(this._editor.onMouseDrag(() => this._resetHandler())), this._register(this._editor.onDidChangeCursorSelection((e3) => this._onDidChangeCursorSelection(e3))), this._register(this._editor.onDidChangeModel((e3) => this._resetHandler())), this._register(this._editor.onDidChangeModelContent(() => this._resetHandler())), this._register(this._editor.onDidScrollChange((e3) => { (e3.scrollTopChanged || e3.scrollLeftChanged) && this._resetHandler(); })); } @@ -64917,13 +64917,13 @@ ${Object(zn.b)(wi)} } } var Pl = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Fl = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -64934,7 +64934,7 @@ ${Object(zn.b)(wi)} this.textModelResolverService = t2, this.modeService = n2, this.toUnhook = new pe.b(), this.toUnhookForKeyboard = new pe.b(), this.linkDecorations = [], this.currentWordAtPosition = null, this.previousPromise = null, this.editor = e3; let i2 = new Ml(e3); this.toUnhook.add(i2), this.toUnhook.add(i2.onMouseMoveOrRelevantKeyDown(([e4, t3]) => { - this.startFindDefinitionFromMouse(e4, Object(Jo.n)(t3)); + this.startFindDefinitionFromMouse(e4, Object(Qr.n)(t3)); })), this.toUnhook.add(i2.onExecute((e4) => { this.isEnabled(e4) && this.gotoDefinition(e4.target.position, e4.hasSideBySideModifier).then(() => { this.removeLinkDecorations(); @@ -64986,13 +64986,13 @@ ${Object(zn.b)(wi)} this.textModelResolverService.createModelReference(i3.uri).then((t4) => { if (!t4.object || !t4.object.textEditorModel) return void t4.dispose(); - const {object: {textEditorModel: o2}} = t4, {startLineNumber: r2} = i3.range; - if (r2 < 1 || r2 > o2.getLineCount()) + const {object: {textEditorModel: r2}} = t4, {startLineNumber: o2} = i3.range; + if (o2 < 1 || o2 > r2.getLineCount()) return void t4.dispose(); - const s2 = this.getPreviewValue(o2, r2, i3); + const s2 = this.getPreviewValue(r2, o2, i3); let a2; a2 = i3.originSelectionRange ? ge.a.lift(i3.originSelectionRange) : new ge.a(e3.lineNumber, n2.startColumn, e3.lineNumber, n2.endColumn); - const l2 = this.modeService.getModeIdByFilepathOrFirstLine(o2.uri); + const l2 = this.modeService.getModeIdByFilepathOrFirstLine(r2.uri); this.addDecoration(a2, new X().appendCodeblock(l2 || "", s2)), t4.dispose(); }); } @@ -65001,39 +65001,39 @@ ${Object(zn.b)(wi)} }).then(void 0, Z.e); } getPreviewValue(t2, n2, i2) { - let o2 = i2.targetSelectionRange ? i2.range : this.getPreviewRangeBasedOnBrackets(t2, n2); - o2.endLineNumber - o2.startLineNumber >= e2.MAX_SOURCE_PREVIEW_LINES && (o2 = this.getPreviewRangeBasedOnIndentation(t2, n2)); - return this.stripIndentationFromPreviewRange(t2, n2, o2); + let r2 = i2.targetSelectionRange ? i2.range : this.getPreviewRangeBasedOnBrackets(t2, n2); + r2.endLineNumber - r2.startLineNumber >= e2.MAX_SOURCE_PREVIEW_LINES && (r2 = this.getPreviewRangeBasedOnIndentation(t2, n2)); + return this.stripIndentationFromPreviewRange(t2, n2, r2); } stripIndentationFromPreviewRange(e3, t2, n2) { let i2 = e3.getLineFirstNonWhitespaceColumn(t2); - for (let o2 = t2 + 1; o2 < n2.endLineNumber; o2++) { - const t3 = e3.getLineFirstNonWhitespaceColumn(o2); + for (let r2 = t2 + 1; r2 < n2.endLineNumber; r2++) { + const t3 = e3.getLineFirstNonWhitespaceColumn(r2); i2 = Math.min(i2, t3); } return e3.getValueInRange(n2).replace(new RegExp(`^\\s{${i2 - 1}}`, "gm"), "").trim(); } getPreviewRangeBasedOnIndentation(t2, n2) { - const i2 = t2.getLineFirstNonWhitespaceColumn(n2), o2 = Math.min(t2.getLineCount(), n2 + e2.MAX_SOURCE_PREVIEW_LINES); - let r2 = n2 + 1; - for (; r2 < o2; r2++) { - if (i2 === t2.getLineFirstNonWhitespaceColumn(r2)) + const i2 = t2.getLineFirstNonWhitespaceColumn(n2), r2 = Math.min(t2.getLineCount(), n2 + e2.MAX_SOURCE_PREVIEW_LINES); + let o2 = n2 + 1; + for (; o2 < r2; o2++) { + if (i2 === t2.getLineFirstNonWhitespaceColumn(o2)) break; } - return new ge.a(n2, 1, r2 + 1, 1); + return new ge.a(n2, 1, o2 + 1, 1); } getPreviewRangeBasedOnBrackets(t2, n2) { - const i2 = Math.min(t2.getLineCount(), n2 + e2.MAX_SOURCE_PREVIEW_LINES), o2 = []; - let r2 = true, s2 = t2.findNextBracket(new me.a(n2, 1)); + const i2 = Math.min(t2.getLineCount(), n2 + e2.MAX_SOURCE_PREVIEW_LINES), r2 = []; + let o2 = true, s2 = t2.findNextBracket(new me.a(n2, 1)); for (; s2 !== null; ) { - if (o2.length === 0) - o2.push(s2); + if (r2.length === 0) + r2.push(s2); else { - const e4 = o2[o2.length - 1]; - if (e4.open[0] === s2.open[0] && e4.isOpen && !s2.isOpen ? o2.pop() : o2.push(s2), o2.length === 0) { - if (!r2) + const e4 = r2[r2.length - 1]; + if (e4.open[0] === s2.open[0] && e4.isOpen && !s2.isOpen ? r2.pop() : r2.push(s2), r2.length === 0) { + if (!o2) return new ge.a(n2, 1, s2.range.endLineNumber + 1, 1); - r2 = false; + o2 = false; } } const e3 = t2.getLineMaxColumn(n2); @@ -65115,27 +65115,27 @@ ${Object(zn.b)(wi)} } `); } - const o2 = e2.getColor(ve.ac); - if (o2) { + const r2 = e2.getColor(ve.ac); + if (r2) { const e3 = Y.a.info.cssSelector; t2.addRule(` .monaco-editor .zone-widget ${e3}, .markers-panel .marker-icon${e3}, .extensions-viewlet > .extensions ${e3}, .extension-editor ${e3} { - color: ${o2}; + color: ${r2}; } `); } }); var Vl = n(79), Ul = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Hl = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -65144,45 +65144,45 @@ ${Object(zn.b)(wi)} class ql { constructor(e2, t2, n2, i2) { this._openerService = i2, this._lines = 0, this._longestLineLength = 0, this._relatedDiagnostics = new WeakMap(), this._disposables = new pe.b(), this._editor = t2; - const o2 = document.createElement("div"); - o2.className = "descriptioncontainer", this._messageBlock = document.createElement("div"), ft.e(this._messageBlock, "message"), this._messageBlock.setAttribute("aria-live", "assertive"), this._messageBlock.setAttribute("role", "alert"), o2.appendChild(this._messageBlock), this._relatedBlock = document.createElement("div"), o2.appendChild(this._relatedBlock), this._disposables.add(ft.n(this._relatedBlock, "click", (e3) => { + const r2 = document.createElement("div"); + r2.className = "descriptioncontainer", this._messageBlock = document.createElement("div"), ft.e(this._messageBlock, "message"), this._messageBlock.setAttribute("aria-live", "assertive"), this._messageBlock.setAttribute("role", "alert"), r2.appendChild(this._messageBlock), this._relatedBlock = document.createElement("div"), r2.appendChild(this._relatedBlock), this._disposables.add(ft.n(this._relatedBlock, "click", (e3) => { e3.preventDefault(); const t3 = this._relatedDiagnostics.get(e3.target); t3 && n2(t3); - })), this._scrollable = new Bl.b(o2, {horizontal: 1, vertical: 1, useShadows: false, horizontalScrollbarSize: 3, verticalScrollbarSize: 3}), e2.appendChild(this._scrollable.getDomNode()), this._disposables.add(this._scrollable.onScroll((e3) => { - o2.style.left = `-${e3.scrollLeft}px`, o2.style.top = `-${e3.scrollTop}px`; + })), this._scrollable = new Bl.b(r2, {horizontal: 1, vertical: 1, useShadows: false, horizontalScrollbarSize: 3, verticalScrollbarSize: 3}), e2.appendChild(this._scrollable.getDomNode()), this._disposables.add(this._scrollable.onScroll((e3) => { + r2.style.left = `-${e3.scrollLeft}px`, r2.style.top = `-${e3.scrollTop}px`; })), this._disposables.add(this._scrollable); } dispose() { Object(pe.f)(this._disposables); } update(e2) { - const {source: t2, message: n2, relatedInformation: i2, code: o2} = e2; - let r2 = ((t2 == null ? void 0 : t2.length) || 0) + "()".length; - o2 && (r2 += typeof o2 == "string" ? o2.length : o2.value.length); + const {source: t2, message: n2, relatedInformation: i2, code: r2} = e2; + let o2 = ((t2 == null ? void 0 : t2.length) || 0) + "()".length; + r2 && (o2 += typeof r2 == "string" ? r2.length : r2.value.length); const s2 = n2.split(/\r\n|\r|\n/g); this._lines = s2.length, this._longestLineLength = 0; for (const e3 of s2) - this._longestLineLength = Math.max(e3.length + r2, this._longestLineLength); + this._longestLineLength = Math.max(e3.length + o2, this._longestLineLength); ft.s(this._messageBlock), this._messageBlock.setAttribute("aria-label", this.getAriaLabel(e2)), this._editor.applyFontInfo(this._messageBlock); let a2 = this._messageBlock; for (const e3 of s2) a2 = document.createElement("div"), a2.innerText = e3, e3 === "" && (a2.style.height = this._messageBlock.style.lineHeight), this._messageBlock.appendChild(a2); - if (t2 || o2) { + if (t2 || r2) { const e3 = document.createElement("span"); if (ft.e(e3, "details"), a2.appendChild(e3), t2) { const n3 = document.createElement("span"); n3.innerText = t2, ft.e(n3, "source"), e3.appendChild(n3); } - if (o2) - if (typeof o2 == "string") { + if (r2) + if (typeof r2 == "string") { const t3 = document.createElement("span"); - t3.innerText = `(${o2})`, ft.e(t3, "code"), e3.appendChild(t3); + t3.innerText = `(${r2})`, ft.e(t3, "code"), e3.appendChild(t3); } else { - this._codeLink = ft.a("a.code-link"), this._codeLink.setAttribute("href", "" + o2.target.toString()), this._codeLink.onclick = (e4) => { - this._openerService.open(o2.target), e4.preventDefault(), e4.stopPropagation(); + this._codeLink = ft.a("a.code-link"), this._codeLink.setAttribute("href", "" + r2.target.toString()), this._codeLink.onclick = (e4) => { + this._openerService.open(r2.target), e4.preventDefault(), e4.stopPropagation(); }; - ft.p(this._codeLink, ft.a("span")).innerText = o2.value, e3.appendChild(this._codeLink); + ft.p(this._codeLink, ft.a("span")).innerText = r2.value, e3.appendChild(this._codeLink); } } if (ft.s(this._relatedBlock), this._editor.applyFontInfo(this._relatedBlock), Object(G.o)(i2)) { @@ -65191,8 +65191,8 @@ ${Object(zn.b)(wi)} for (const t3 of i2) { let n3 = document.createElement("div"), i3 = document.createElement("a"); ft.e(i3, "filename"), i3.innerText = `${ga(t3.resource)}(${t3.startLineNumber}, ${t3.startColumn}): `, i3.title = ma(t3.resource, void 0), this._relatedDiagnostics.set(i3, t3); - let o3 = document.createElement("span"); - o3.innerText = t3.message, n3.appendChild(i3), n3.appendChild(o3), this._lines += 1, e3.appendChild(n3); + let r3 = document.createElement("span"); + r3.innerText = t3.message, n3.appendChild(i3), n3.appendChild(r3), this._lines += 1, e3.appendChild(n3); } } const l2 = this._editor.getOption(36), c2 = Math.ceil(l2.typicalFullwidthCharacterWidth * this._longestLineLength * 0.75), d2 = l2.lineHeight * this._lines; @@ -65228,8 +65228,8 @@ ${Object(zn.b)(wi)} } } let $l = class e2 extends Vs { - constructor(e3, t2, n2, i2, o2, r2) { - super(e3, {showArrow: true, showFrame: true, isAccessible: true}, o2), this._themeService = t2, this._openerService = n2, this._menuService = i2, this._contextKeyService = r2, this._callOnDispose = new pe.b(), this._onDidSelectRelatedInformation = new Lt.a(), this.onDidSelectRelatedInformation = this._onDidSelectRelatedInformation.event, this._severity = Wt.c.Warning, this._backgroundColor = Nn.a.white, this._applyTheme(t2.getColorTheme()), this._callOnDispose.add(t2.onDidColorThemeChange(this._applyTheme.bind(this))), this.create(); + constructor(e3, t2, n2, i2, r2, o2) { + super(e3, {showArrow: true, showFrame: true, isAccessible: true}, r2), this._themeService = t2, this._openerService = n2, this._menuService = i2, this._contextKeyService = o2, this._callOnDispose = new pe.b(), this._onDidSelectRelatedInformation = new Lt.a(), this.onDidSelectRelatedInformation = this._onDidSelectRelatedInformation.event, this._severity = Wt.c.Warning, this._backgroundColor = Nn.a.white, this._applyTheme(t2.getColorTheme()), this._callOnDispose.add(t2.onDidColorThemeChange(this._applyTheme.bind(this))), this.create(); } _applyTheme(e3) { this._backgroundColor = e3.getColor(Jl); @@ -65264,15 +65264,15 @@ ${Object(zn.b)(wi)} showAtMarker(e3, t2, n2) { this._container.classList.remove("stale"), this._message.update(e3), this._severity = e3.severity, this._applyTheme(this._themeService.getColorTheme()); let i2 = ge.a.lift(e3); - const o2 = this.editor.getPosition(); - let r2 = o2 && i2.containsPosition(o2) ? o2 : i2.getStartPosition(); - super.show(r2, this.computeRequiredHeight()); + const r2 = this.editor.getPosition(); + let o2 = r2 && i2.containsPosition(r2) ? r2 : i2.getStartPosition(); + super.show(o2, this.computeRequiredHeight()); const s2 = this.editor.getModel(); if (s2) { const e4 = n2 > 1 ? U.a("problems", "{0} of {1} problems", t2, n2) : U.a("change", "{0} of {1} problem", t2, n2); this.setTitle(Object(jt.b)(s2.uri), e4); } - this._icon.className = "codicon " + zl.className(Wt.c.toSeverity(this._severity)), this.editor.revealPositionNearTop(r2, 0), this.editor.focus(); + this._icon.className = "codicon " + zl.className(Wt.c.toSeverity(this._severity)), this.editor.revealPositionNearTop(o2, 0), this.editor.focus(); } updateMarker(e3) { this._container.classList.remove("stale"), this._message.update(e3); @@ -65301,13 +65301,13 @@ ${Object(zn.b)(wi)} n2 && (t2.addRule(`.monaco-editor .marker-widget a { color: ${n2}; }`), t2.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${n2}; }`)); }); var ec = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, tc = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -65339,15 +65339,15 @@ ${Object(zn.b)(wi)} return e3 && new nc(e3, this._nextIdx + 1, this._markers.length); } _initIdx(e3, t2, n2) { - let i2 = false, o2 = this._markers.findIndex((t3) => t3.resource.toString() === e3.uri.toString()); - o2 < 0 && (o2 = Object(G.c)(this._markers, {resource: e3.uri}, (e4, t3) => Object(Ye.f)(e4.resource.toString(), t3.resource.toString())), o2 < 0 && (o2 = ~o2)); - for (let n3 = o2; n3 < this._markers.length; n3++) { - let o3 = ge.a.lift(this._markers[n3]); - if (o3.isEmpty()) { - const t3 = e3.getWordAtPosition(o3.getStartPosition()); - t3 && (o3 = new ge.a(o3.startLineNumber, t3.startColumn, o3.startLineNumber, t3.endColumn)); + let i2 = false, r2 = this._markers.findIndex((t3) => t3.resource.toString() === e3.uri.toString()); + r2 < 0 && (r2 = Object(G.c)(this._markers, {resource: e3.uri}, (e4, t3) => Object(Ye.f)(e4.resource.toString(), t3.resource.toString())), r2 < 0 && (r2 = ~r2)); + for (let n3 = r2; n3 < this._markers.length; n3++) { + let r3 = ge.a.lift(this._markers[n3]); + if (r3.isEmpty()) { + const t3 = e3.getWordAtPosition(r3.getStartPosition()); + t3 && (r3 = new ge.a(r3.startLineNumber, t3.startColumn, r3.startLineNumber, t3.endColumn)); } - if (t2 && (o3.containsPosition(t2) || t2.isBeforeOrEqual(o3.getStartPosition()))) { + if (t2 && (r3.containsPosition(t2) || t2.isBeforeOrEqual(r3.getStartPosition()))) { this._nextIdx = n3, i2 = true; break; } @@ -65379,10 +65379,10 @@ ${Object(zn.b)(wi)} } }; ic = ec([tc(1, Wt.b)], ic); - const oc = Object(gt.c)("IMarkerNavigationService"); - let rc = class { + const rc = Object(gt.c)("IMarkerNavigationService"); + let oc = class { constructor(e2) { - this._markerService = e2, this._provider = new Fr.a(); + this._markerService = e2, this._provider = new Fo.a(); } getMarkerList(e2) { for (let t2 of this._provider) { @@ -65393,38 +65393,38 @@ ${Object(zn.b)(wi)} return new ic(e2, this._markerService); } }; - rc = ec([tc(0, Wt.b)], rc), Object(mn.b)(oc, rc, true); + oc = ec([tc(0, Wt.b)], oc), Object(mn.b)(rc, oc, true); var sc = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, ac = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, lc = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -65432,8 +65432,8 @@ ${Object(zn.b)(wi)} }); }; let cc = class e2 { - constructor(e3, t2, n2, i2, o2) { - this._markerNavigationService = t2, this._contextKeyService = n2, this._editorService = i2, this._instantiationService = o2, this._sessionDispoables = new pe.b(), this._editor = e3, this._widgetVisible = pc.bindTo(this._contextKeyService); + constructor(e3, t2, n2, i2, r2) { + this._markerNavigationService = t2, this._contextKeyService = n2, this._editorService = i2, this._instantiationService = r2, this._sessionDispoables = new pe.b(), this._editor = e3, this._widgetVisible = pc.bindTo(this._contextKeyService); } static get(t2) { return t2.getContribution(e2.ID); @@ -65477,15 +65477,15 @@ ${Object(zn.b)(wi)} return; if (i2.selected.marker.resource.toString() !== this._editor.getModel().uri.toString()) { this._cleanUp(); - const o2 = yield this._editorService.openCodeEditor({resource: i2.selected.marker.resource, options: {pinned: false, revealIfOpened: true, selectionRevealType: 2, selection: i2.selected.marker}}, this._editor); - o2 && (e2.get(o2).close(), e2.get(o2).nagivate(t2, n2)); + const r2 = yield this._editorService.openCodeEditor({resource: i2.selected.marker.resource, options: {pinned: false, revealIfOpened: true, selectionRevealType: 2, selection: i2.selected.marker}}, this._editor); + r2 && (e2.get(r2).close(), e2.get(r2).nagivate(t2, n2)); } else this._widget.showAtMarker(i2.selected.marker, i2.selected.index, i2.selected.total); } }); } }; - cc.ID = "editor.contrib.markerController", cc = sc([ac(1, oc), ac(2, K.b), ac(3, Me.a), ac(4, gt.a)], cc); + cc.ID = "editor.contrib.markerController", cc = sc([ac(1, rc), ac(2, K.b), ac(3, Me.a), ac(4, gt.a)], cc); class dc extends V.b { constructor(e2, t2, n2) { super(n2), this._next = e2, this._multiFile = t2; @@ -65618,8 +65618,8 @@ ${Object(zn.b)(wi)} paint() { const e2 = this.model.color.hsva, t2 = new Nn.a(new Nn.b(e2.h, 1, 1, 1)), n2 = this.canvas.getContext("2d"), i2 = n2.createLinearGradient(0, 0, this.canvas.width, 0); i2.addColorStop(0, "rgba(255, 255, 255, 1)"), i2.addColorStop(0.5, "rgba(255, 255, 255, 0.5)"), i2.addColorStop(1, "rgba(255, 255, 255, 0)"); - const o2 = n2.createLinearGradient(0, 0, 0, this.canvas.height); - o2.addColorStop(0, "rgba(0, 0, 0, 0)"), o2.addColorStop(1, "rgba(0, 0, 0, 1)"), n2.rect(0, 0, this.canvas.width, this.canvas.height), n2.fillStyle = Nn.a.Format.CSS.format(t2), n2.fill(), n2.fillStyle = i2, n2.fill(), n2.fillStyle = o2, n2.fill(); + const r2 = n2.createLinearGradient(0, 0, 0, this.canvas.height); + r2.addColorStop(0, "rgba(0, 0, 0, 0)"), r2.addColorStop(1, "rgba(0, 0, 0, 1)"), n2.rect(0, 0, this.canvas.width, this.canvas.height), n2.fillStyle = Nn.a.Format.CSS.format(t2), n2.fill(), n2.fillStyle = i2, n2.fill(), n2.fillStyle = r2, n2.fill(); } paintSelection(e2, t2) { this.selection.style.left = e2 * this.width + "px", this.selection.style.top = this.height - t2 * this.height + "px"; @@ -65657,8 +65657,8 @@ ${Object(zn.b)(wi)} super(e2, t2), ft.e(this.domNode, "opacity-strip"), this._register(t2.onDidChangeColor(this.onDidChangeColor, this)), this.onDidChangeColor(this.model.color); } onDidChangeColor(e2) { - const {r: t2, g: n2, b: i2} = e2.rgba, o2 = new Nn.a(new Nn.c(t2, n2, i2, 1)), r2 = new Nn.a(new Nn.c(t2, n2, i2, 0)); - this.overlay.style.background = `linear-gradient(to bottom, ${o2} 0%, ${r2} 100%)`; + const {r: t2, g: n2, b: i2} = e2.rgba, r2 = new Nn.a(new Nn.c(t2, n2, i2, 1)), o2 = new Nn.a(new Nn.c(t2, n2, i2, 0)); + this.overlay.style.background = `linear-gradient(to bottom, ${r2} 0%, ${o2} 100%)`; } getValue(e2) { return e2.hsva.a; @@ -65674,11 +65674,11 @@ ${Object(zn.b)(wi)} } class xc extends Ri.a { constructor(e2, t2, n2, i2) { - super(), this.model = t2, this.pixelRatio = n2, this._register(Object(De.n)(() => this.layout())); - const o2 = fc(".colorpicker-widget"); - e2.appendChild(o2); - const r2 = new bc(o2, this.model, i2); - this.body = new _c(o2, this.model, this.pixelRatio), this._register(r2), this._register(this.body); + super(), this.model = t2, this.pixelRatio = n2, this._register(Object(Oe.n)(() => this.layout())); + const r2 = fc(".colorpicker-widget"); + e2.appendChild(r2); + const o2 = new bc(r2, this.model, i2); + this.body = new _c(r2, this.model, this.pixelRatio), this._register(o2), this._register(this.body); } layout() { this.body.layout(); @@ -65695,8 +65695,8 @@ ${Object(zn.b)(wi)} } Object(V.p)("_executeHoverProvider", (e2, t2) => Sc(e2, t2, Xe.a.None)); class kc { - constructor(e2, t2, n2, i2, o2) { - this._computer = e2, this._state = 0, this._hoverTime = o2, this._firstWaitScheduler = new ue.d(() => this._triggerAsyncComputation(), 0), this._secondWaitScheduler = new ue.d(() => this._triggerSyncComputation(), 0), this._loadingMessageScheduler = new ue.d(() => this._showLoadingMessage(), 0), this._asyncComputationPromise = null, this._asyncComputationPromiseDone = false, this._completeCallback = t2, this._errorCallback = n2, this._progressCallback = i2; + constructor(e2, t2, n2, i2, r2) { + this._computer = e2, this._state = 0, this._hoverTime = r2, this._firstWaitScheduler = new ue.d(() => this._triggerAsyncComputation(), 0), this._secondWaitScheduler = new ue.d(() => this._triggerSyncComputation(), 0), this._loadingMessageScheduler = new ue.d(() => this._showLoadingMessage(), 0), this._asyncComputationPromise = null, this._asyncComputationPromiseDone = false, this._completeCallback = t2, this._errorCallback = n2, this._progressCallback = i2; } setHoverTime(e2) { this._hoverTime = e2; @@ -65802,8 +65802,8 @@ ${Object(zn.b)(wi)} _renderAction(e2, t2) { const n2 = this._keybindingService.lookupKeybinding(t2.commandId); return function(e3, t3, n3) { - const i2 = ft.p(e3, Ec("div.action-container")), o2 = ft.p(i2, Ec("a.action")); - return o2.setAttribute("href", "#"), o2.setAttribute("role", "button"), t3.iconClass && ft.p(o2, Ec("span.icon." + t3.iconClass)), ft.p(o2, Ec("span")).textContent = n3 ? `${t3.label} (${n3})` : t3.label, ft.i(i2, ft.c.CLICK, (e4) => { + const i2 = ft.p(e3, Ec("div.action-container")), r2 = ft.p(i2, Ec("a.action")); + return r2.setAttribute("href", "#"), r2.setAttribute("role", "button"), t3.iconClass && ft.p(r2, Ec("span.icon." + t3.iconClass)), ft.p(r2, Ec("span")).textContent = n3 ? `${t3.label} (${n3})` : t3.label, ft.i(i2, ft.c.CLICK, (e4) => { e4.stopPropagation(), e4.preventDefault(), t3.run(i2); }); }(e2, t2, n2 ? n2.getLabel() : null); @@ -65833,8 +65833,8 @@ ${Object(zn.b)(wi)} } showAt(e2) { this._showAtLineNumber = e2, this.isVisible || (this.isVisible = true); - const t2 = this._editor.getLayoutInfo(), n2 = this._editor.getTopForLineNumber(this._showAtLineNumber), i2 = this._editor.getScrollTop(), o2 = this._editor.getOption(51), r2 = n2 - i2 - (this._domNode.clientHeight - o2) / 2; - this._domNode.style.left = t2.glyphMarginLeft + t2.glyphMarginWidth + "px", this._domNode.style.top = Math.max(Math.round(r2), 0) + "px"; + const t2 = this._editor.getLayoutInfo(), n2 = this._editor.getTopForLineNumber(this._showAtLineNumber), i2 = this._editor.getScrollTop(), r2 = this._editor.getOption(51), o2 = n2 - i2 - (this._domNode.clientHeight - r2) / 2; + this._domNode.style.left = t2.glyphMarginLeft + t2.glyphMarginWidth + "px", this._domNode.style.top = Math.max(Math.round(o2), 0) + "px"; } hide() { this.isVisible && (this.isVisible = false); @@ -65852,27 +65852,27 @@ ${Object(zn.b)(wi)} this._domNode.textContent = "", this._domNode.appendChild(e2), this.updateFont(); } } - var Ic = n(165), Oc = n(195); - let Dc; + var Ic = n(165), Dc = n(195); + let Oc; !function e2(t2, n2, i2) { - function o2(s3, a2) { + function r2(s3, a2) { if (!n2[s3]) { if (!t2[s3]) { - if (r2) - return r2(s3, true); + if (o2) + return o2(s3, true); var l2 = new Error("Cannot find module '" + s3 + "'"); throw l2.code = "MODULE_NOT_FOUND", l2; } var c2 = n2[s3] = {exports: {}}; t2[s3][0].call(c2.exports, function(e3) { - return o2(t2[s3][1][e3] || e3); + return r2(t2[s3][1][e3] || e3); }, c2, c2.exports, e2, t2, n2, i2); } return n2[s3].exports; } - for (var r2 = false, s2 = 0; s2 < i2.length; s2++) - o2(i2[s2]); - return o2; + for (var o2 = false, s2 = 0; s2 < i2.length; s2++) + r2(i2[s2]); + return r2; }({1: [function(e2, t2, n2) { var i2 = e2("./toMap"); t2.exports = {uris: i2(["background", "base", "cite", "href", "longdesc", "src", "usemap"])}; @@ -65883,25 +65883,25 @@ ${Object(zn.b)(wi)} t2.exports = {voids: i2(["area", "br", "col", "hr", "img", "wbr", "input", "base", "basefont", "link", "meta"])}; }, {"./toMap": 10}], 4: [function(e2, t2, n2) { e2("he"); - var i2 = e2("assignment"), o2 = e2("./parser"), r2 = e2("./sanitizer"), s2 = e2("./defaults"); + var i2 = e2("assignment"), r2 = e2("./parser"), o2 = e2("./sanitizer"), s2 = e2("./defaults"); function a2(e3, t3, n3) { - var a3 = [], l2 = n3 === true ? t3 : i2({}, s2, t3), c2 = r2(a3, l2); - return o2(e3, c2), a3.join(""); + var a3 = [], l2 = n3 === true ? t3 : i2({}, s2, t3), c2 = o2(a3, l2); + return r2(e3, c2), a3.join(""); } - a2.defaults = s2, t2.exports = a2, Dc = a2; + a2.defaults = s2, t2.exports = a2, Oc = a2; }, {"./defaults": 2, "./parser": 7, "./sanitizer": 8, assignment: 6, he: 9}], 5: [function(e2, t2, n2) { t2.exports = function(e3) { return typeof e3 == "string" ? e3.toLowerCase() : e3; }; }, {}], 6: [function(e2, t2, n2) { t2.exports = function e3(t3) { - for (var n3, i2, o2 = Array.prototype.slice.call(arguments, 1); o2.length; ) - for (i2 in n3 = o2.shift()) + for (var n3, i2, r2 = Array.prototype.slice.call(arguments, 1); r2.length; ) + for (i2 in n3 = r2.shift()) n3.hasOwnProperty(i2) && (Object.prototype.toString.call(t3[i2]) === "[object Object]" ? t3[i2] = e3(t3[i2], n3[i2]) : t3[i2] = n3[i2]); return t3; }; }, {}], 7: [function(e2, t2, n2) { - var i2 = e2("he"), o2 = e2("./lowercase"), r2 = (e2("./attributes"), e2("./elements")), s2 = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/, a2 = /^<\s*\/\s*([\w:-]+)[^>]*>/, l2 = /([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g, c2 = /^</, d2 = /^<\s*\//; + var i2 = e2("he"), r2 = e2("./lowercase"), o2 = (e2("./attributes"), e2("./elements")), s2 = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/, a2 = /^<\s*\/\s*([\w:-]+)[^>]*>/, l2 = /([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g, c2 = /^</, d2 = /^<\s*\//; t2.exports = function(e3, t3) { for (var n3, h2 = function() { var e4 = []; @@ -65917,8 +65917,8 @@ ${Object(zn.b)(wi)} !function() { if (!n3) return; - var i5, o3 = e3.indexOf("<"); - o3 >= 0 ? (i5 = e3.substring(0, o3), e3 = e3.substring(o3)) : (i5 = e3, e3 = ""); + var i5, r3 = e3.indexOf("<"); + r3 >= 0 ? (i5 = e3.substring(0, r3), e3 = e3.substring(r3)) : (i5 = e3, e3 = ""); t3.chars && t3.chars(i5); }(); }(); @@ -65926,34 +65926,34 @@ ${Object(zn.b)(wi)} u2 = e3, i3 && (e3 = ""); } function m2(t4, i3) { - var o3 = e3.match(t4); - o3 && (e3 = e3.substring(o3[0].length), o3[0].replace(t4, i3), n3 = false); + var r3 = e3.match(t4); + r3 && (e3 = e3.substring(r3[0].length), r3[0].replace(t4, i3), n3 = false); } function g2(e4, n4, s3, a3) { - var c3 = {}, d3 = o2(n4), u3 = r2.voids[d3] || !!a3; - s3.replace(l2, function(e5, t4, n5, o3, r3) { - c3[t4] = n5 === void 0 && o3 === void 0 && r3 === void 0 ? void 0 : i2.decode(n5 || o3 || r3 || ""); + var c3 = {}, d3 = r2(n4), u3 = o2.voids[d3] || !!a3; + s3.replace(l2, function(e5, t4, n5, r3, o3) { + c3[t4] = n5 === void 0 && r3 === void 0 && o3 === void 0 ? void 0 : i2.decode(n5 || r3 || o3 || ""); }), u3 || h2.push(d3), t3.start && t3.start(d3, c3, u3); } function f2(e4, n4) { - var i3, r3 = 0, s3 = o2(n4); + var i3, o3 = 0, s3 = r2(n4); if (s3) - for (r3 = h2.length - 1; r3 >= 0 && h2[r3] !== s3; r3--) + for (o3 = h2.length - 1; o3 >= 0 && h2[o3] !== s3; o3--) ; - if (r3 >= 0) { - for (i3 = h2.length - 1; i3 >= r3; i3--) + if (o3 >= 0) { + for (i3 = h2.length - 1; i3 >= o3; i3--) t3.end && t3.end(h2[i3]); - h2.length = r3; + h2.length = o3; } } f2(); }; }, {"./attributes": 1, "./elements": 3, "./lowercase": 5, he: 9}], 8: [function(e2, t2, n2) { - var i2 = e2("he"), o2 = e2("./lowercase"), r2 = e2("./attributes"), s2 = e2("./elements"); + var i2 = e2("he"), r2 = e2("./lowercase"), o2 = e2("./attributes"), s2 = e2("./elements"); t2.exports = function(e3, t3) { var n3, a2 = t3 || {}; return h2(), {start: function(e4, t4, s3) { - var d3 = o2(e4); + var d3 = r2(e4); if (n3.ignoring) return void c2(d3); if ((a2.allowedTags || []).indexOf(d3) === -1) @@ -65963,10 +65963,10 @@ ${Object(zn.b)(wi)} l2("<"), l2(d3), Object.keys(t4).forEach(function(e5) { var n4 = t4[e5], s4 = (a2.allowedClasses || {})[d3] || [], c3 = (a2.allowedAttributes || {})[d3] || []; c3 = c3.concat((a2.allowedAttributes || {})["*"] || []); - var h3 = o2(e5); + var h3 = r2(e5); (h3 === "class" && c3.indexOf(h3) === -1 ? (n4 = n4.split(" ").filter(function(e6) { return s4 && s4.indexOf(e6) !== -1; - }).join(" ").trim()).length : c3.indexOf(h3) !== -1 && (r2.uris[h3] !== true || function(e6) { + }).join(" ").trim()).length : c3.indexOf(h3) !== -1 && (o2.uris[h3] !== true || function(e6) { var t5 = e6[0]; if (t5 === "#" || t5 === "/") return true; @@ -65976,8 +65976,8 @@ ${Object(zn.b)(wi)} var i3 = e6.indexOf("?"); if (i3 !== -1 && n5 > i3) return true; - var o3 = e6.indexOf("#"); - if (o3 !== -1 && n5 > o3) + var r3 = e6.indexOf("#"); + if (r3 !== -1 && n5 > r3) return true; return a2.allowedSchemes.some(function(t6) { return e6.indexOf(t6 + ":") === 0; @@ -65985,7 +65985,7 @@ ${Object(zn.b)(wi)} }(n4))) && (l2(" "), l2(e5), typeof n4 == "string" && (l2('="'), l2(i2.encode(n4)), l2('"'))); }), l2(s3 ? "/>" : ">"); }, end: function(e4) { - var t4 = o2(e4); + var t4 = r2(e4); (a2.allowedTags || []).indexOf(t4) !== -1 && n3.ignoring === false ? (l2("</"), l2(t4), l2(">")) : d2(t4); }, chars: function(e4) { n3.ignoring === false && l2(a2.transformText ? a2.transformText(e4) : e4); @@ -66004,18 +66004,18 @@ ${Object(zn.b)(wi)} } }; }, {"./attributes": 1, "./elements": 3, "./lowercase": 5, he: 9}], 9: [function(e2, t2, n2) { - var i2 = {"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}, o2 = {"&": "&", "<": "<", ">": ">", """: '"', "'": "'"}, r2 = /(&|<|>|"|')/g, s2 = /[&<>"']/g; + var i2 = {"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}, r2 = {"&": "&", "<": "<", ">": ">", """: '"', "'": "'"}, o2 = /(&|<|>|"|')/g, s2 = /[&<>"']/g; function a2(e3) { return i2[e3]; } function l2(e3) { - return o2[e3]; + return r2[e3]; } function c2(e3) { return e3 == null ? "" : String(e3).replace(s2, a2); } function d2(e3) { - return e3 == null ? "" : String(e3).replace(r2, l2); + return e3 == null ? "" : String(e3).replace(o2, l2); } c2.options = d2.options = {}, t2.exports = {encode: c2, escape: c2, decode: d2, unescape: d2, version: "1.0.0-browser"}; }, {}], 10: [function(e2, t2, n2) { @@ -66026,10 +66026,10 @@ ${Object(zn.b)(wi)} return e3.reduce(i2, {}); }; }, {}]}, {}, [4]); - var Ac = Dc, Rc = n(178), Mc = n(69); + var Ac = Oc, Rc = n(178), Mc = n(69); function Pc(e2, t2 = {}, n2 = {}) { var i2; - const o2 = Object(Ic.a)(t2), r2 = function(t3) { + const r2 = Object(Ic.a)(t2), o2 = function(t3) { let n3; try { n3 = Object(Rc.a)(decodeURIComponent(t3)); @@ -66040,21 +66040,21 @@ ${Object(zn.b)(wi)} const i3 = e2.uris && e2.uris[t3]; if (!i3) return t3; - let o3 = Qe.a.revive(i3); - return Qe.a.parse(t3).toString() === o3.toString() ? t3 : n3 ? ft.r(o3).toString(true) : (o3.query && (o3 = o3.with({query: r2(o3.query)})), o3.toString()); + let r3 = Qe.a.revive(i3); + return Qe.a.parse(t3).toString() === r3.toString() ? t3 : n3 ? ft.r(r3).toString(true) : (r3.query && (r3 = r3.with({query: o2(r3.query)})), r3.toString()); }; let a2; - const l2 = new Promise((e3) => a2 = e3), c2 = new Oc.Renderer(); + const l2 = new Promise((e3) => a2 = e3), c2 = new Dc.Renderer(); c2.image = (e3, n3, i3) => { - let o3 = [], r3 = []; + let r3 = [], o3 = []; if (e3) { - ({href: e3, dimensions: o3} = function(e4) { + ({href: e3, dimensions: r3} = function(e4) { const t3 = [], n4 = e4.split("|").map((e5) => e5.trim()); e4 = n4[0]; const i4 = n4[1]; if (i4) { - const e5 = /height=(\d+)/.exec(i4), n5 = /width=(\d+)/.exec(i4), o4 = e5 ? e5[1] : "", r4 = n5 ? n5[1] : "", s3 = isFinite(parseInt(r4)), a3 = isFinite(parseInt(o4)); - s3 && t3.push(`width="${r4}"`), a3 && t3.push(`height="${o4}"`); + const e5 = /height=(\d+)/.exec(i4), n5 = /width=(\d+)/.exec(i4), r4 = e5 ? e5[1] : "", o4 = n5 ? n5[1] : "", s3 = isFinite(parseInt(o4)), a3 = isFinite(parseInt(r4)); + s3 && t3.push(`width="${o4}"`), a3 && t3.push(`height="${r4}"`); } return {href: e4, dimensions: t3}; }(e3)), e3 = s2(e3, true); @@ -66063,25 +66063,25 @@ ${Object(zn.b)(wi)} t2.baseUrl && n4.scheme === la.b.file && (e3 = Object(jt.k)(t2.baseUrl, e3).toString()); } catch (e4) { } - r3.push(`src="${e3}"`); + o3.push(`src="${e3}"`); } - return i3 && r3.push(`alt="${i3}"`), n3 && r3.push(`title="${n3}"`), o3.length && (r3 = r3.concat(o3)), "<img " + r3.join(" ") + ">"; - }, c2.link = (n3, i3, o3) => { - if (n3 === o3 && (o3 = te(o3)), n3 = s2(n3, false), t2.baseUrl) { + return i3 && o3.push(`alt="${i3}"`), n3 && o3.push(`title="${n3}"`), r3.length && (o3 = o3.concat(r3)), "<img " + o3.join(" ") + ">"; + }, c2.link = (n3, i3, r3) => { + if (n3 === r3 && (r3 = te(r3)), n3 = s2(n3, false), t2.baseUrl) { /^\w[\w\d+.-]*:/.test(n3) || (n3 = Object(jt.k)(t2.baseUrl, n3).toString()); } - return i3 = te(i3), !(n3 = te(n3)) || n3.match(/^data:|javascript:/i) || n3.match(/^command:/i) && !e2.isTrusted || n3.match(/^command:(\/\/\/)?_workbench\.downloadResource/i) ? o3 : `<a href="#" data-href="${n3 = n3.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'")}" title="${i3 || n3}">${o3}</a>`; + return i3 = te(i3), !(n3 = te(n3)) || n3.match(/^data:|javascript:/i) || n3.match(/^command:/i) && !e2.isTrusted || n3.match(/^command:(\/\/\/)?_workbench\.downloadResource/i) ? r3 : `<a href="#" data-href="${n3 = n3.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'")}" title="${i3 || n3}">${r3}</a>`; }, c2.paragraph = (t3) => `<p>${e2.supportThemeIcons ? Object(Y.f)(t3) : t3}</p>`, t2.codeBlockRenderer && (c2.code = (e3, n3) => { - const i3 = t2.codeBlockRenderer(n3, e3), r3 = fs.b.nextId(), s3 = Promise.all([i3, l2]).then((e4) => { - const t3 = e4[0], n4 = o2.querySelector(`div[data-code="${r3}"]`); + const i3 = t2.codeBlockRenderer(n3, e3), o3 = fs.b.nextId(), s3 = Promise.all([i3, l2]).then((e4) => { + const t3 = e4[0], n4 = r2.querySelector(`div[data-code="${o3}"]`); n4 && (n4.innerHTML = t3); }).catch((e4) => { }); - return t2.codeBlockRenderCallback && s3.then(t2.codeBlockRenderCallback), `<div class="code" data-code="${r3}">${Object(Ye.u)(e3)}</div>`; + return t2.codeBlockRenderCallback && s3.then(t2.codeBlockRenderCallback), `<div class="code" data-code="${o3}">${Object(Ye.u)(e3)}</div>`; }); const d2 = t2.actionHandler; d2 && [ft.c.CLICK, ft.c.AUXCLICK].forEach((e3) => { - d2.disposeables.add(ft.i(o2, e3, (e4) => { + d2.disposeables.add(ft.i(r2, e3, (e4) => { const t3 = new Mc.a(e4); if (!t3.leftButton && !t3.middleButton) return; @@ -66101,19 +66101,19 @@ ${Object(zn.b)(wi)} e2.isTrusted && h2.push(la.b.command); let u2 = (i2 = e2.value) !== null && i2 !== void 0 ? i2 : ""; u2.length > 1e5 && (u2 = u2.substr(0, 1e5) + "\u2026"); - const p2 = Oc.parse(e2.supportThemeIcons ? Object(Y.d)(u2) : u2, n2); - return o2.innerHTML = Ac(p2, {allowedSchemes: h2, allowedTags: ["ul", "li", "p", "code", "blockquote", "ol", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "em", "pre", "table", "thead", "tbody", "tr", "th", "td", "div", "del", "a", "strong", "br", "img", "span"], allowedAttributes: {a: ["href", "name", "target", "data-href"], img: ["src", "title", "alt", "width", "height"], div: ["class", "data-code"], span: ["class", "style"], th: ["align"], td: ["align"]}, filter: function(t3) { + const p2 = Dc.parse(e2.supportThemeIcons ? Object(Y.d)(u2) : u2, n2); + return r2.innerHTML = Ac(p2, {allowedSchemes: h2, allowedTags: ["ul", "li", "p", "code", "blockquote", "ol", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "em", "pre", "table", "thead", "tbody", "tr", "th", "td", "div", "del", "a", "strong", "br", "img", "span"], allowedAttributes: {a: ["href", "name", "target", "data-href"], img: ["src", "title", "alt", "width", "height"], div: ["class", "data-code"], span: ["class", "style"], th: ["align"], td: ["align"]}, filter: function(t3) { return t3.tag !== "span" || !e2.isTrusted || Object.keys(t3.attrs).length !== 1 || (t3.attrs.style ? !!t3.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/) : !!t3.attrs.class && !!t3.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-animation-[a-z\-]+)?$/)); - }}), a2(), o2; + }}), a2(), r2; } var Fc = n(182), Wc = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, zc = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -66180,24 +66180,24 @@ ${Object(zn.b)(wi)} const e2 = this._editor.getModel(), t2 = this._range.startLineNumber; if (t2 > this._editor.getModel().getLineCount()) return []; - const n2 = Rn.get(this._editor), i2 = e2.getLineMaxColumn(t2), o2 = this._editor.getLineDecorations(t2); - let r2 = false; - const s2 = this._range, a2 = o2.map((o3) => { - const a3 = o3.range.startLineNumber === t2 ? o3.range.startColumn : 1, l2 = o3.range.endLineNumber === t2 ? o3.range.endColumn : i2; + const n2 = Rn.get(this._editor), i2 = e2.getLineMaxColumn(t2), r2 = this._editor.getLineDecorations(t2); + let o2 = false; + const s2 = this._range, a2 = r2.map((r3) => { + const a3 = r3.range.startLineNumber === t2 ? r3.range.startColumn : 1, l2 = r3.range.endLineNumber === t2 ? r3.range.endColumn : i2; if (a3 > s2.startColumn || s2.endColumn > l2) return null; - const c2 = new ge.a(s2.startLineNumber, a3, s2.startLineNumber, l2), d2 = this._markerDecorationsService.getMarker(e2, o3); + const c2 = new ge.a(s2.startLineNumber, a3, s2.startLineNumber, l2), d2 = this._markerDecorationsService.getMarker(e2, r3); if (d2) return new Uc(c2, d2); - const h2 = n2.getColorData(o3.range.getStartPosition()); - if (!r2 && h2) { - r2 = true; + const h2 = n2.getColorData(r3.range.getStartPosition()); + if (!o2 && h2) { + o2 = true; const {color: e3, range: t3} = h2.colorInfo; return new Vc(t3, e3, h2.provider); } - if (Q(o3.options.hoverMessage)) + if (Q(r3.options.hoverMessage)) return null; - return {contents: o3.options.hoverMessage ? Object(G.b)(o3.options.hoverMessage) : [], range: c2}; + return {contents: r3.options.hoverMessage ? Object(G.b)(r3.options.hoverMessage) : [], range: c2}; }); return Object(G.d)(a2); } @@ -66216,8 +66216,8 @@ ${Object(zn.b)(wi)} } const qc = {type: 2, filter: {include: nt.QuickFix}}; class $c extends Lc { - constructor(e2, t2, n2, i2, o2, r2, s2 = Vl.b) { - super($c.ID, e2, t2, i2), this._themeService = o2, this._modeService = r2, this._openerService = s2, this.renderDisposable = this._register(new pe.d()), this._messages = [], this._lastRange = null, this._computer = new Hc(this._editor, n2), this._highlightDecorations = [], this._isChangingDecorations = false, this._shouldFocus = false, this._colorPicker = null, this._hoverOperation = new kc(this._computer, (e3) => this._withResult(e3, true), null, (e3) => this._withResult(e3, false), this._editor.getOption(46).delay), this._register(ft.n(this.getDomNode(), ft.c.FOCUS, () => { + constructor(e2, t2, n2, i2, r2, o2, s2 = Vl.b) { + super($c.ID, e2, t2, i2), this._themeService = r2, this._modeService = o2, this._openerService = s2, this.renderDisposable = this._register(new pe.d()), this._messages = [], this._lastRange = null, this._computer = new Hc(this._editor, n2), this._highlightDecorations = [], this._isChangingDecorations = false, this._shouldFocus = false, this._colorPicker = null, this._hoverOperation = new kc(this._computer, (e3) => this._withResult(e3, true), null, (e3) => this._withResult(e3, false), this._editor.getOption(46).delay), this._register(ft.n(this.getDomNode(), ft.c.FOCUS, () => { this._colorPicker && ft.e(this.getDomNode(), "colorpicker-hover"); })), this._register(ft.n(this.getDomNode(), ft.c.BLUR, () => { ft.Q(this.getDomNode(), "colorpicker-hover"); @@ -66239,22 +66239,22 @@ ${Object(zn.b)(wi)} if (this._showAtPosition && this._showAtPosition.lineNumber === e2.startLineNumber) { let t3 = []; for (let n3 = 0, i2 = this._messages.length; n3 < i2; n3++) { - const i3 = this._messages[n3], o2 = i3.range; - o2 && o2.startColumn <= e2.startColumn && o2.endColumn >= e2.endColumn && t3.push(i3); + const i3 = this._messages[n3], r2 = i3.range; + r2 && r2.startColumn <= e2.startColumn && r2.endColumn >= e2.endColumn && t3.push(i3); } if (t3.length > 0) { if (function(e3, t4) { if (!e3 && t4 || e3 && !t4 || e3.length !== t4.length) return false; - for (let o2 = 0; o2 < e3.length; o2++) { - const r2 = e3[o2], s2 = t4[o2]; - if (r2 instanceof Uc && s2 instanceof Uc) - return Wt.a.makeKey(r2.marker) === Wt.a.makeKey(s2.marker); - if (r2 instanceof Vc || s2 instanceof Vc) + for (let r2 = 0; r2 < e3.length; r2++) { + const o2 = e3[r2], s2 = t4[r2]; + if (o2 instanceof Uc && s2 instanceof Uc) + return Wt.a.makeKey(o2.marker) === Wt.a.makeKey(s2.marker); + if (o2 instanceof Vc || s2 instanceof Vc) return false; - if (r2 instanceof Uc || s2 instanceof Uc) + if (o2 instanceof Uc || s2 instanceof Uc) return false; - if (n3 = r2.contents, i2 = s2.contents, !(!n3 && !i2 || n3 && i2 && (Array.isArray(n3) && Array.isArray(i2) ? Object(G.g)(n3, i2, ee) : J(n3) && J(i2) && ee(n3, i2)))) + if (n3 = o2.contents, i2 = s2.contents, !(!n3 && !i2 || n3 && i2 && (Array.isArray(n3) && Array.isArray(i2) ? Object(G.g)(n3, i2, ee) : J(n3) && J(i2) && ee(n3, i2)))) return false; } var n3, i2; @@ -66280,18 +66280,18 @@ ${Object(zn.b)(wi)} } _renderMessages(e2, t2) { this.renderDisposable.dispose(), this._colorPicker = null; - let n2 = 1073741824, i2 = t2[0].range ? ge.a.lift(t2[0].range) : null, o2 = document.createDocumentFragment(), r2 = true, s2 = false; + let n2 = 1073741824, i2 = t2[0].range ? ge.a.lift(t2[0].range) : null, r2 = document.createDocumentFragment(), o2 = true, s2 = false; const a2 = new pe.b(), l2 = []; if (t2.forEach((e3) => { if (e3.range) if (n2 = Math.min(n2, e3.range.startColumn), i2 = i2 ? ge.a.plusRange(i2, e3.range) : ge.a.lift(e3.range), e3 instanceof Vc) { s2 = true; - const {red: t3, green: n3, blue: i3, alpha: r3} = e3.color, l3 = new Nn.c(Math.round(255 * t3), Math.round(255 * n3), Math.round(255 * i3), r3), c2 = new Nn.a(l3); + const {red: t3, green: n3, blue: i3, alpha: o3} = e3.color, l3 = new Nn.c(Math.round(255 * t3), Math.round(255 * n3), Math.round(255 * i3), o3), c2 = new Nn.a(l3); if (!this._editor.hasModel()) return; const d2 = this._editor.getModel(); let h2 = new ge.a(e3.range.startLineNumber, e3.range.startColumn, e3.range.endLineNumber, e3.range.endColumn), u2 = {range: e3.range, color: e3.color}; - const p2 = new gc(c2, [], 0), m2 = new xc(o2, p2, this._editor.getOption(115), this._themeService); + const p2 = new gc(c2, [], 0), m2 = new xc(r2, p2, this._editor.getOption(115), this._themeService); In(d2, u2, e3.provider, Xe.a.None).then((t4) => { if (p2.colorPresentations = t4 || [], !this._editor.hasModel()) return; @@ -66300,58 +66300,58 @@ ${Object(zn.b)(wi)} const i4 = () => { let e4, t5; p2.presentation.textEdit ? (e4 = [p2.presentation.textEdit], t5 = new ge.a(p2.presentation.textEdit.range.startLineNumber, p2.presentation.textEdit.range.startColumn, p2.presentation.textEdit.range.endLineNumber, p2.presentation.textEdit.range.endColumn), t5 = t5.setEndPosition(t5.endLineNumber, t5.startColumn + p2.presentation.textEdit.text.length)) : (e4 = [{identifier: null, range: h2, text: p2.presentation.label, forceMoveMarkers: false}], t5 = h2.setEndPosition(h2.endLineNumber, h2.startColumn + p2.presentation.label.length)), this._editor.pushUndoStop(), this._editor.executeEdits("colorpicker", e4), p2.presentation.additionalTextEdits && (e4 = [...p2.presentation.additionalTextEdits], this._editor.executeEdits("colorpicker", e4), this.hide()), this._editor.pushUndoStop(), h2 = t5; - }, r4 = (t5) => In(d2, {range: h2, color: {red: t5.rgba.r / 255, green: t5.rgba.g / 255, blue: t5.rgba.b / 255, alpha: t5.rgba.a}}, e3.provider, Xe.a.None).then((e4) => { + }, o4 = (t5) => In(d2, {range: h2, color: {red: t5.rgba.r / 255, green: t5.rgba.g / 255, blue: t5.rgba.b / 255, alpha: t5.rgba.a}}, e3.provider, Xe.a.None).then((e4) => { p2.colorPresentations = e4 || []; }), s3 = p2.onColorFlushed((e4) => { - r4(e4).then(i4); - }), l4 = p2.onDidChangeColor(r4); - this._colorPicker = m2, this.showAt(h2.getStartPosition(), h2, this._shouldFocus), this.updateContents(o2), this._colorPicker.layout(), this.renderDisposable.value = Object(pe.e)(s3, l4, m2, a2); + o4(e4).then(i4); + }), l4 = p2.onDidChangeColor(o4); + this._colorPicker = m2, this.showAt(h2.getStartPosition(), h2, this._shouldFocus), this.updateContents(r2), this._colorPicker.layout(), this.renderDisposable.value = Object(pe.e)(s3, l4, m2, a2); }); } else - e3 instanceof Uc ? (l2.push(e3), r2 = false) : e3.contents.filter((e4) => !Q(e4)).forEach((e4) => { + e3 instanceof Uc ? (l2.push(e3), o2 = false) : e3.contents.filter((e4) => !Q(e4)).forEach((e4) => { const t3 = jc("div.hover-row.markdown-hover"), n3 = ft.p(t3, jc("div.hover-contents")), i3 = a2.add(new Bc(this._editor, this._modeService, this._openerService)); a2.add(i3.onDidRenderCodeBlock(() => { n3.className = "hover-contents code-hover-contents", this._hover.onContentsChanged(); })); const s3 = a2.add(i3.render(e4)); - n3.appendChild(s3.element), o2.appendChild(t3), r2 = false; + n3.appendChild(s3.element), r2.appendChild(t3), o2 = false; }); }), l2.length) { - l2.forEach((e4) => o2.appendChild(this.renderMarkerHover(e4))); + l2.forEach((e4) => r2.appendChild(this.renderMarkerHover(e4))); const e3 = l2.length === 1 ? l2[0] : l2.sort((e4, t3) => Wt.c.compare(e4.marker.severity, t3.marker.severity))[0]; - o2.appendChild(this.renderMarkerStatusbar(e3)); + r2.appendChild(this.renderMarkerStatusbar(e3)); } - s2 || r2 || (this.showAt(new me.a(e2.startLineNumber, n2), i2, this._shouldFocus), this.updateContents(o2)), this._isChangingDecorations = true, this._highlightDecorations = this._editor.deltaDecorations(this._highlightDecorations, i2 ? [{range: i2, options: $c._DECORATION_OPTIONS}] : []), this._isChangingDecorations = false; + s2 || o2 || (this.showAt(new me.a(e2.startLineNumber, n2), i2, this._shouldFocus), this.updateContents(r2)), this._isChangingDecorations = true, this._highlightDecorations = this._editor.deltaDecorations(this._highlightDecorations, i2 ? [{range: i2, options: $c._DECORATION_OPTIONS}] : []), this._isChangingDecorations = false; } renderMarkerHover(e2) { - const t2 = jc("div.hover-row"), n2 = ft.p(t2, jc("div.marker.hover-contents")), {source: i2, message: o2, code: r2, relatedInformation: s2} = e2.marker; + const t2 = jc("div.hover-row"), n2 = ft.p(t2, jc("div.marker.hover-contents")), {source: i2, message: r2, code: o2, relatedInformation: s2} = e2.marker; this._editor.applyFontInfo(n2); const a2 = ft.p(n2, jc("span")); - if (a2.style.whiteSpace = "pre-wrap", a2.innerText = o2, i2 || r2) - if (r2 && typeof r2 != "string") { + if (a2.style.whiteSpace = "pre-wrap", a2.innerText = r2, i2 || o2) + if (o2 && typeof o2 != "string") { const e3 = jc("span"); if (i2) { ft.p(e3, jc("span")).innerText = i2; } - this._codeLink = ft.p(e3, jc("a.code-link")), this._codeLink.setAttribute("href", r2.target.toString()), this._codeLink.onclick = (e4) => { - this._openerService.open(r2.target), e4.preventDefault(), e4.stopPropagation(); + this._codeLink = ft.p(e3, jc("a.code-link")), this._codeLink.setAttribute("href", o2.target.toString()), this._codeLink.onclick = (e4) => { + this._openerService.open(o2.target), e4.preventDefault(), e4.stopPropagation(); }; - ft.p(this._codeLink, jc("span")).innerText = r2.value; + ft.p(this._codeLink, jc("span")).innerText = o2.value; const t3 = ft.p(n2, e3); t3.style.opacity = "0.6", t3.style.paddingLeft = "6px"; } else { const e3 = ft.p(n2, jc("span")); - e3.style.opacity = "0.6", e3.style.paddingLeft = "6px", e3.innerText = i2 && r2 ? `${i2}(${r2})` : i2 || `(${r2})`; + e3.style.opacity = "0.6", e3.style.paddingLeft = "6px", e3.innerText = i2 && o2 ? `${i2}(${o2})` : i2 || `(${o2})`; } if (Object(G.o)(s2)) - for (const {message: e3, resource: t3, startLineNumber: i3, startColumn: o3} of s2) { - const r3 = ft.p(n2, jc("div")); - r3.style.marginTop = "8px"; - const s3 = ft.p(r3, jc("a")); - s3.innerText = `${Object(jt.b)(t3)}(${i3}, ${o3}): `, s3.style.cursor = "pointer", s3.onclick = (e4) => { - e4.stopPropagation(), e4.preventDefault(), this._openerService && this._openerService.open(t3.with({fragment: `${i3},${o3}`}), {fromUserGesture: true}).catch(Z.e); + for (const {message: e3, resource: t3, startLineNumber: i3, startColumn: r3} of s2) { + const o3 = ft.p(n2, jc("div")); + o3.style.marginTop = "8px"; + const s3 = ft.p(o3, jc("a")); + s3.innerText = `${Object(jt.b)(t3)}(${i3}, ${r3}): `, s3.style.cursor = "pointer", s3.onclick = (e4) => { + e4.stopPropagation(), e4.preventDefault(), this._openerService && this._openerService.open(t3.with({fragment: `${i3},${r3}`}), {fromUserGesture: true}).catch(Z.e); }; - const a3 = ft.p(r3, jc("span")); + const a3 = ft.p(o3, jc("span")); a3.innerText = e3, this._editor.applyFontInfo(a3); } return t2; @@ -66363,16 +66363,16 @@ ${Object(zn.b)(wi)} }})), !this._editor.getOption(72)) { const t3 = ft.p(i2, jc("div")); t3.style.opacity = "0", t3.style.transition = "opacity 0.2s", setTimeout(() => t3.style.opacity = "1", 200), t3.textContent = U.a("checkingForQuickFixes", "Checking for quick fixes..."), n2.add(Object(pe.h)(() => t3.remove())); - const o2 = this.getCodeActions(e2.marker); - n2.add(Object(pe.h)(() => o2.cancel())), o2.then((e3) => { + const r2 = this.getCodeActions(e2.marker); + n2.add(Object(pe.h)(() => r2.cancel())), r2.then((e3) => { if (t3.style.transition = "", t3.style.opacity = "1", !e3.validActions.length) return e3.dispose(), void (t3.textContent = U.a("noQuickFixes", "No quick fixes available")); t3.remove(); - let o3 = false; + let r3 = false; n2.add(Object(pe.h)(() => { - o3 || e3.dispose(); + r3 || e3.dispose(); })), n2.add(this._renderAction(i2, {label: U.a("quick fixes", "Quick Fix..."), commandId: en.Id, run: (t4) => { - o3 = true; + r3 = true; const n3 = Xt.get(this._editor), i3 = ft.C(t4); this.hide(), n3.showCodeActions(qc, e3, {x: i3.left + 6, y: i3.top + i3.height + 6}); }})); @@ -66381,7 +66381,7 @@ ${Object(zn.b)(wi)} return this.renderDisposable.value = n2, t2; } getCodeActions(e2) { - return Object(ue.f)((t2) => ct(this._editor.getModel(), new ge.a(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn), qc, rt.b.None, t2)); + return Object(ue.f)((t2) => ct(this._editor.getModel(), new ge.a(e2.startLineNumber, e2.startColumn, e2.endLineNumber, e2.endColumn), qc, ot.b.None, t2)); } } $c.ID = "editor.contrib.modesContentHoverWidget", $c._DECORATION_OPTIONS = be.a.register({className: "hoverHighlight"}), Object(we.g)((e2, t2) => { @@ -66451,21 +66451,21 @@ ${Object(zn.b)(wi)} } Gc.ID = "editor.contrib.modesGlyphHoverWidget"; var Yc = n(192), Zc = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Xc = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; let Qc = class e2 { - constructor(e3, t2, n2, i2, o2, r2, s2) { - this._editor = e3, this._openerService = t2, this._modeService = n2, this._markerDecorationsService = i2, this._keybindingService = o2, this._themeService = r2, this._toUnhook = new pe.b(), this._contentWidget = new pe.d(), this._glyphWidget = new pe.d(), this._isMouseDown = false, this._hoverClicked = false, this._hookEvents(), this._didChangeConfigurationHandler = this._editor.onDidChangeConfiguration((e4) => { + constructor(e3, t2, n2, i2, r2, o2, s2) { + this._editor = e3, this._openerService = t2, this._modeService = n2, this._markerDecorationsService = i2, this._keybindingService = r2, this._themeService = o2, this._toUnhook = new pe.b(), this._contentWidget = new pe.d(), this._glyphWidget = new pe.d(), this._isMouseDown = false, this._hoverClicked = false, this._hookEvents(), this._didChangeConfigurationHandler = this._editor.onDidChangeConfiguration((e4) => { e4.hasChanged(46) && (this._hideWidgets(), this._unhookEvents(), this._hookEvents()); }), this._hoverVisibleKey = H.a.hoverVisible.bindTo(s2); } @@ -66536,8 +66536,8 @@ ${Object(zn.b)(wi)} let n2 = Qc.get(t2); if (!n2) return; - const i2 = t2.getPosition(), o2 = new ge.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column), r2 = t2.getOption(2) === 2; - n2.showContentHover(o2, 1, r2); + const i2 = t2.getPosition(), r2 = new ge.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column), o2 = t2.getOption(2) === 2; + n2.showContentHover(r2, 1, o2); } } class ed extends V.b { @@ -66551,10 +66551,10 @@ ${Object(zn.b)(wi)} const i2 = t2.getPosition(); if (!i2) return; - const o2 = new ge.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column), r2 = Wl.get(t2).startFindDefinitionFromCursor(i2); - r2 ? r2.then(() => { - n2.showContentHover(o2, 1, true); - }) : n2.showContentHover(o2, 1, true); + const r2 = new ge.a(i2.lineNumber, i2.column, i2.lineNumber, i2.column), o2 = Wl.get(t2).startFindDefinitionFromCursor(i2); + o2 ? o2.then(() => { + n2.showContentHover(r2, 1, true); + }) : n2.showContentHover(r2, 1, true); } } Object(V.m)(Qc.ID, Qc), Object(V.k)(Jc), Object(V.k)(ed), Object(we.g)((e2, t2) => { @@ -66562,10 +66562,10 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .hoverHighlight { background-color: ${n2}; }`); const i2 = e2.getColor(ve.E); i2 && t2.addRule(`.monaco-editor .monaco-hover { background-color: ${i2}; }`); - const o2 = e2.getColor(ve.F); - o2 && (t2.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${o2}; }`), t2.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${o2.transparent(0.5)}; }`), t2.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${o2.transparent(0.5)}; }`), t2.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${o2.transparent(0.5)}; }`)); - const r2 = e2.getColor(ve.rc); - r2 && t2.addRule(`.monaco-editor .monaco-hover a { color: ${r2}; }`); + const r2 = e2.getColor(ve.F); + r2 && (t2.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${r2}; }`), t2.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${r2.transparent(0.5)}; }`), t2.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${r2.transparent(0.5)}; }`), t2.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${r2.transparent(0.5)}; }`)); + const o2 = e2.getColor(ve.rc); + o2 && t2.addRule(`.monaco-editor .monaco-hover a { color: ${o2}; }`); const s2 = e2.getColor(ve.G); s2 && t2.addRule(`.monaco-editor .monaco-hover { color: ${s2}; }`); const a2 = e2.getColor(ve.I); @@ -66593,52 +66593,52 @@ ${Object(zn.b)(wi)} i2 += " "; return i2; } - function od(e2, t2, n2, i2) { + function rd(e2, t2, n2, i2) { if (e2.getLineCount() === 1 && e2.getLineMaxColumn(1) === 1) return []; - let o2 = Pn.a.getIndentationRules(e2.getLanguageIdentifier().id); - if (!o2) + let r2 = Pn.a.getIndentationRules(e2.getLanguageIdentifier().id); + if (!r2) return []; - for (n2 = Math.min(n2, e2.getLineCount()); t2 <= n2 && o2.unIndentedLinePattern; ) { + for (n2 = Math.min(n2, e2.getLineCount()); t2 <= n2 && r2.unIndentedLinePattern; ) { let n3 = e2.getLineContent(t2); - if (!o2.unIndentedLinePattern.test(n3)) + if (!r2.unIndentedLinePattern.test(n3)) break; t2++; } if (t2 > n2 - 1) return []; - const {tabSize: r2, indentSize: s2, insertSpaces: a2} = e2.getOptions(), l2 = (e3, t3) => (t3 = t3 || 1, td.a.shiftIndent(e3, e3.length + t3, r2, s2, a2)), c2 = (e3, t3) => (t3 = t3 || 1, td.a.unshiftIndent(e3, e3.length + t3, r2, s2, a2)); + const {tabSize: o2, indentSize: s2, insertSpaces: a2} = e2.getOptions(), l2 = (e3, t3) => (t3 = t3 || 1, td.a.shiftIndent(e3, e3.length + t3, o2, s2, a2)), c2 = (e3, t3) => (t3 = t3 || 1, td.a.unshiftIndent(e3, e3.length + t3, o2, s2, a2)); let d2, h2 = [], u2 = e2.getLineContent(t2), p2 = u2; if (i2 != null) { d2 = i2; let e3 = Ye.z(u2); - p2 = d2 + u2.substring(e3.length), o2.decreaseIndentPattern && o2.decreaseIndentPattern.test(p2) && (d2 = c2(d2), p2 = d2 + u2.substring(e3.length)), u2 !== p2 && h2.push(Mn.a.replace(new q.a(t2, 1, t2, e3.length + 1), be.b.normalizeIndentation(d2, s2, a2))); + p2 = d2 + u2.substring(e3.length), r2.decreaseIndentPattern && r2.decreaseIndentPattern.test(p2) && (d2 = c2(d2), p2 = d2 + u2.substring(e3.length)), u2 !== p2 && h2.push(Mn.a.replace(new q.a(t2, 1, t2, e3.length + 1), be.b.normalizeIndentation(d2, s2, a2))); } else d2 = Ye.z(u2); let m2 = d2; - o2.increaseIndentPattern && o2.increaseIndentPattern.test(p2) ? (m2 = l2(m2), d2 = l2(d2)) : o2.indentNextLinePattern && o2.indentNextLinePattern.test(p2) && (m2 = l2(m2)); + r2.increaseIndentPattern && r2.increaseIndentPattern.test(p2) ? (m2 = l2(m2), d2 = l2(d2)) : r2.indentNextLinePattern && r2.indentNextLinePattern.test(p2) && (m2 = l2(m2)); for (let i3 = ++t2; i3 <= n2; i3++) { - let t3 = e2.getLineContent(i3), n3 = Ye.z(t3), r3 = m2 + t3.substring(n3.length); - o2.decreaseIndentPattern && o2.decreaseIndentPattern.test(r3) && (m2 = c2(m2), d2 = c2(d2)), n3 !== m2 && h2.push(Mn.a.replace(new q.a(i3, 1, i3, n3.length + 1), be.b.normalizeIndentation(m2, s2, a2))), o2.unIndentedLinePattern && o2.unIndentedLinePattern.test(t3) || (o2.increaseIndentPattern && o2.increaseIndentPattern.test(r3) ? (d2 = l2(d2), m2 = d2) : m2 = o2.indentNextLinePattern && o2.indentNextLinePattern.test(r3) ? l2(m2) : d2); + let t3 = e2.getLineContent(i3), n3 = Ye.z(t3), o3 = m2 + t3.substring(n3.length); + r2.decreaseIndentPattern && r2.decreaseIndentPattern.test(o3) && (m2 = c2(m2), d2 = c2(d2)), n3 !== m2 && h2.push(Mn.a.replace(new q.a(i3, 1, i3, n3.length + 1), be.b.normalizeIndentation(m2, s2, a2))), r2.unIndentedLinePattern && r2.unIndentedLinePattern.test(t3) || (r2.increaseIndentPattern && r2.increaseIndentPattern.test(o3) ? (d2 = l2(d2), m2 = d2) : m2 = r2.indentNextLinePattern && r2.indentNextLinePattern.test(o3) ? l2(m2) : d2); } return h2; } - class rd extends V.b { + class od extends V.b { constructor() { - super({id: rd.ID, label: U.a("indentationToSpaces", "Convert Indentation to Spaces"), alias: "Convert Indentation to Spaces", precondition: H.a.writable}); + super({id: od.ID, label: U.a("indentationToSpaces", "Convert Indentation to Spaces"), alias: "Convert Indentation to Spaces", precondition: H.a.writable}); } run(e2, t2) { let n2 = t2.getModel(); if (!n2) return; - let i2 = n2.getOptions(), o2 = t2.getSelection(); - if (!o2) + let i2 = n2.getOptions(), r2 = t2.getSelection(); + if (!r2) return; - const r2 = new fd(o2, i2.tabSize); - t2.pushUndoStop(), t2.executeCommands(this.id, [r2]), t2.pushUndoStop(), n2.updateOptions({insertSpaces: true}); + const o2 = new fd(r2, i2.tabSize); + t2.pushUndoStop(), t2.executeCommands(this.id, [o2]), t2.pushUndoStop(), n2.updateOptions({insertSpaces: true}); } } - rd.ID = "editor.action.indentationToSpaces"; + od.ID = "editor.action.indentationToSpaces"; class sd extends V.b { constructor() { super({id: sd.ID, label: U.a("indentationToTabs", "Convert Indentation to Tabs"), alias: "Convert Indentation to Tabs", precondition: H.a.writable}); @@ -66647,11 +66647,11 @@ ${Object(zn.b)(wi)} let n2 = t2.getModel(); if (!n2) return; - let i2 = n2.getOptions(), o2 = t2.getSelection(); - if (!o2) + let i2 = n2.getOptions(), r2 = t2.getSelection(); + if (!r2) return; - const r2 = new bd(o2, i2.tabSize); - t2.pushUndoStop(), t2.executeCommands(this.id, [r2]), t2.pushUndoStop(), n2.updateOptions({insertSpaces: false}); + const o2 = new bd(r2, i2.tabSize); + t2.pushUndoStop(), t2.executeCommands(this.id, [o2]), t2.pushUndoStop(), n2.updateOptions({insertSpaces: false}); } } sd.ID = "editor.action.indentationToTabs"; @@ -66661,14 +66661,14 @@ ${Object(zn.b)(wi)} } run(e2, t2) { const n2 = e2.get(Sn.a), i2 = e2.get(tt.a); - let o2 = t2.getModel(); - if (!o2) + let r2 = t2.getModel(); + if (!r2) return; - let r2 = i2.getCreationOptions(o2.getLanguageIdentifier().language, o2.uri, o2.isForSimpleWidget); - const s2 = [1, 2, 3, 4, 5, 6, 7, 8].map((e3) => ({id: e3.toString(), label: e3.toString(), description: e3 === r2.tabSize ? U.a("configuredTabSize", "Configured Tab Size") : void 0})), a2 = Math.min(o2.getOptions().tabSize - 1, 7); + let o2 = i2.getCreationOptions(r2.getLanguageIdentifier().language, r2.uri, r2.isForSimpleWidget); + const s2 = [1, 2, 3, 4, 5, 6, 7, 8].map((e3) => ({id: e3.toString(), label: e3.toString(), description: e3 === o2.tabSize ? U.a("configuredTabSize", "Configured Tab Size") : void 0})), a2 = Math.min(r2.getOptions().tabSize - 1, 7); setTimeout(() => { n2.pick(s2, {placeHolder: U.a({key: "selectTabWidth", comment: ["Tab corresponds to the tab key"]}, "Select Tab Size for Current File"), activeItem: s2[a2]}).then((e3) => { - e3 && o2 && !o2.isDisposed() && o2.updateOptions({tabSize: parseInt(e3.label, 10), insertSpaces: this.insertSpaces}); + e3 && r2 && !r2.isDisposed() && r2.updateOptions({tabSize: parseInt(e3.label, 10), insertSpaces: this.insertSpaces}); }); }, 50); } @@ -66694,8 +66694,8 @@ ${Object(zn.b)(wi)} let i2 = t2.getModel(); if (!i2) return; - let o2 = n2.getCreationOptions(i2.getLanguageIdentifier().language, i2.uri, i2.isForSimpleWidget); - i2.detectIndentation(o2.insertSpaces, o2.tabSize); + let r2 = n2.getCreationOptions(i2.getLanguageIdentifier().language, i2.uri, i2.isForSimpleWidget); + i2.detectIndentation(r2.insertSpaces, r2.tabSize); } } dd.ID = "editor.action.detectIndentation"; @@ -66707,7 +66707,7 @@ ${Object(zn.b)(wi)} let n2 = t2.getModel(); if (!n2) return; - let i2 = od(n2, 1, n2.getLineCount()); + let i2 = rd(n2, 1, n2.getLineCount()); i2.length > 0 && (t2.pushUndoStop(), t2.executeEdits(this.id, i2), t2.pushUndoStop()); } } @@ -66722,7 +66722,7 @@ ${Object(zn.b)(wi)} let i2 = t2.getSelections(); if (i2 === null) return; - let o2 = []; + let r2 = []; for (let e3 of i2) { let t3 = e3.startLineNumber, i3 = e3.endLineNumber; if (t3 !== i3 && e3.endColumn === 1 && i3--, t3 === 1) { @@ -66730,10 +66730,10 @@ ${Object(zn.b)(wi)} continue; } else t3--; - let r2 = od(n2, t3, i3); - o2.push(...r2); + let o2 = rd(n2, t3, i3); + r2.push(...o2); } - o2.length > 0 && (t2.pushUndoStop(), t2.executeEdits(this.id, o2), t2.pushUndoStop()); + r2.length > 0 && (t2.pushUndoStop(), t2.executeEdits(this.id, r2), t2.pushUndoStop()); } } class pd { @@ -66770,9 +66770,9 @@ ${Object(zn.b)(wi)} return; if (!n2.isCheapToTokenize(e2.getStartPosition().lineNumber)) return; - const i2 = this.editor.getOption(8), {tabSize: o2, indentSize: r2, insertSpaces: s2} = n2.getOptions(); + const i2 = this.editor.getOption(8), {tabSize: r2, indentSize: o2, insertSpaces: s2} = n2.getOptions(); this.editor.pushUndoStop(); - let a2 = [], l2 = {shiftIndent: (e3) => td.a.shiftIndent(e3, e3.length + 1, o2, r2, s2), unshiftIndent: (e3) => td.a.unshiftIndent(e3, e3.length + 1, o2, r2, s2)}, c2 = e2.startLineNumber; + let a2 = [], l2 = {shiftIndent: (e3) => td.a.shiftIndent(e3, e3.length + 1, r2, o2, s2), unshiftIndent: (e3) => td.a.unshiftIndent(e3, e3.length + 1, r2, o2, s2)}, c2 = e2.startLineNumber; for (; c2 <= e2.endLineNumber && this.shouldIgnoreLine(n2, c2); ) c2++; if (c2 > e2.endLineNumber) @@ -66781,9 +66781,9 @@ ${Object(zn.b)(wi)} if (!/\S/.test(d2.substring(0, e2.startColumn - 1))) { let e3 = Pn.a.getGoodIndentForLine(i2, n2, n2.getLanguageIdentifier().id, c2, l2); if (e3 !== null) { - let t3 = Ye.z(d2), i3 = nd(e3, o2); - if (i3 !== nd(t3, o2)) { - let e4 = id(i3, o2, s2); + let t3 = Ye.z(d2), i3 = nd(e3, r2); + if (i3 !== nd(t3, r2)) { + let e4 = id(i3, r2, s2); a2.push({range: new ge.a(c2, 1, c2, t3.length + 1), text: e4}), d2 = e4 + d2.substr(t3.length); } else { let e4 = Pn.a.getIndentMetadata(n2, c2); @@ -66796,13 +66796,13 @@ ${Object(zn.b)(wi)} for (; c2 < e2.endLineNumber && !/\S/.test(n2.getLineContent(c2 + 1)); ) c2++; if (c2 !== e2.endLineNumber) { - let t3 = {getLineTokens: (e3) => n2.getLineTokens(e3), getLanguageIdentifier: () => n2.getLanguageIdentifier(), getLanguageIdAtPosition: (e3, t4) => n2.getLanguageIdAtPosition(e3, t4), getLineContent: (e3) => e3 === h2 ? d2 : n2.getLineContent(e3)}, r3 = Pn.a.getGoodIndentForLine(i2, t3, n2.getLanguageIdentifier().id, c2 + 1, l2); - if (r3 !== null) { - let t4 = nd(r3, o2), i3 = nd(Ye.z(n2.getLineContent(c2 + 1)), o2); + let t3 = {getLineTokens: (e3) => n2.getLineTokens(e3), getLanguageIdentifier: () => n2.getLanguageIdentifier(), getLanguageIdAtPosition: (e3, t4) => n2.getLanguageIdAtPosition(e3, t4), getLineContent: (e3) => e3 === h2 ? d2 : n2.getLineContent(e3)}, o3 = Pn.a.getGoodIndentForLine(i2, t3, n2.getLanguageIdentifier().id, c2 + 1, l2); + if (o3 !== null) { + let t4 = nd(o3, r2), i3 = nd(Ye.z(n2.getLineContent(c2 + 1)), r2); if (t4 !== i3) { - let r4 = t4 - i3; + let o4 = t4 - i3; for (let t5 = c2 + 1; t5 <= e2.endLineNumber; t5++) { - let e3 = n2.getLineContent(t5), i4 = Ye.z(e3), l3 = id(nd(i4, o2) + r4, o2, s2); + let e3 = n2.getLineContent(t5), i4 = Ye.z(e3), l3 = id(nd(i4, r2) + o4, r2, s2); l3 !== i4 && a2.push({range: new ge.a(t5, 1, t5, i4.length + 1), text: l3}); } } @@ -66831,15 +66831,15 @@ ${Object(zn.b)(wi)} function gd(e2, t2, n2, i2) { if (e2.getLineCount() === 1 && e2.getLineMaxColumn(1) === 1) return; - let o2 = ""; + let r2 = ""; for (let e3 = 0; e3 < n2; e3++) - o2 += " "; - let r2 = new RegExp(o2, "gi"); + r2 += " "; + let o2 = new RegExp(r2, "gi"); for (let n3 = 1, s2 = e2.getLineCount(); n3 <= s2; n3++) { let s3 = e2.getLineFirstNonWhitespaceColumn(n3); if (s3 === 0 && (s3 = e2.getLineMaxColumn(n3)), s3 === 1) continue; - const a2 = new ge.a(n3, 1, n3, s3), l2 = e2.getValueInRange(a2), c2 = i2 ? l2.replace(/\t/gi, o2) : l2.replace(r2, " "); + const a2 = new ge.a(n3, 1, n3, s3), l2 = e2.getValueInRange(a2), c2 = i2 ? l2.replace(/\t/gi, r2) : l2.replace(o2, " "); t2.addEditOperation(a2, c2); } } @@ -66866,7 +66866,7 @@ ${Object(zn.b)(wi)} return t2.getTrackedSelection(this.selectionId); } } - Object(V.m)(md.ID, md), Object(V.k)(rd), Object(V.k)(sd), Object(V.k)(ld), Object(V.k)(cd), Object(V.k)(dd), Object(V.k)(hd), Object(V.k)(ud); + Object(V.m)(md.ID, md), Object(V.k)(od), Object(V.k)(sd), Object(V.k)(ld), Object(V.k)(cd), Object(V.k)(dd), Object(V.k)(hd), Object(V.k)(ud); class _d { constructor(e2, t2, n2) { this._editRange = e2, this._originalSelection = t2, this._text = n2; @@ -66880,13 +66880,13 @@ ${Object(zn.b)(wi)} } } var vd = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, wd = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -66903,26 +66903,26 @@ ${Object(zn.b)(wi)} } run(t2, n2) { this.currentRequest && this.currentRequest.cancel(); - const i2 = this.editor.getSelection(), o2 = this.editor.getModel(); - if (!o2 || !i2) + const i2 = this.editor.getSelection(), r2 = this.editor.getModel(); + if (!r2 || !i2) return; - let r2 = i2; - if (r2.startLineNumber !== r2.endLineNumber) + let o2 = i2; + if (o2.startLineNumber !== o2.endLineNumber) return; - const s2 = new Je.a(this.editor, 5), a2 = o2.uri; - return this.editorWorkerService.canNavigateValueSet(a2) ? (this.currentRequest = Object(ue.f)((e3) => this.editorWorkerService.navigateValueSet(a2, r2, n2)), this.currentRequest.then((n3) => { + const s2 = new Je.a(this.editor, 5), a2 = r2.uri; + return this.editorWorkerService.canNavigateValueSet(a2) ? (this.currentRequest = Object(ue.f)((e3) => this.editorWorkerService.navigateValueSet(a2, o2, n2)), this.currentRequest.then((n3) => { if (!n3 || !n3.range || !n3.value) return; if (!s2.validate(this.editor)) return; - let i3 = ge.a.lift(n3.range), o3 = n3.range, a3 = n3.value.length - (r2.endColumn - r2.startColumn); - o3 = {startLineNumber: o3.startLineNumber, startColumn: o3.startColumn, endLineNumber: o3.endLineNumber, endColumn: o3.startColumn + n3.value.length}, a3 > 1 && (r2 = new q.a(r2.startLineNumber, r2.startColumn, r2.endLineNumber, r2.endColumn + a3 - 1)); - const l2 = new _d(i3, r2, n3.value); - this.editor.pushUndoStop(), this.editor.executeCommand(t2, l2), this.editor.pushUndoStop(), this.decorationIds = this.editor.deltaDecorations(this.decorationIds, [{range: o3, options: e2.DECORATION}]), this.decorationRemover && this.decorationRemover.cancel(), this.decorationRemover = Object(ue.l)(350), this.decorationRemover.then(() => this.decorationIds = this.editor.deltaDecorations(this.decorationIds, [])).catch(Z.e); + let i3 = ge.a.lift(n3.range), r3 = n3.range, a3 = n3.value.length - (o2.endColumn - o2.startColumn); + r3 = {startLineNumber: r3.startLineNumber, startColumn: r3.startColumn, endLineNumber: r3.endLineNumber, endColumn: r3.startColumn + n3.value.length}, a3 > 1 && (o2 = new q.a(o2.startLineNumber, o2.startColumn, o2.endLineNumber, o2.endColumn + a3 - 1)); + const l2 = new _d(i3, o2, n3.value); + this.editor.pushUndoStop(), this.editor.executeCommand(t2, l2), this.editor.pushUndoStop(), this.decorationIds = this.editor.deltaDecorations(this.decorationIds, [{range: r3, options: e2.DECORATION}]), this.decorationRemover && this.decorationRemover.cancel(), this.decorationRemover = Object(ue.l)(350), this.decorationRemover.then(() => this.decorationIds = this.editor.deltaDecorations(this.decorationIds, [])).catch(Z.e); }).catch(Z.e)) : Promise.resolve(void 0); } }; - yd.ID = "editor.contrib.inPlaceReplaceController", yd.DECORATION = be.a.register({className: "valueSetReplacement"}), yd = vd([wd(1, Ar.a)], yd); + yd.ID = "editor.contrib.inPlaceReplaceController", yd.DECORATION = be.a.register({className: "valueSetReplacement"}), yd = vd([wd(1, Ao.a)], yd); class Cd extends V.b { constructor() { super({id: "editor.action.inPlaceReplace.up", label: U.a("InPlaceReplaceAction.previous.label", "Replace with Previous Value"), alias: "Replace with Previous Value", precondition: H.a.writable, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3154, weight: 100}}); @@ -66954,10 +66954,10 @@ ${Object(zn.b)(wi)} t3.sort((e4, t4) => e4.lineNumber === t4.lineNumber ? e4.column - t4.column : e4.lineNumber - t4.lineNumber); for (let e4 = t3.length - 2; e4 >= 0; e4--) t3[e4].lineNumber === t3[e4 + 1].lineNumber && t3.splice(e4, 1); - let n3 = [], i2 = 0, o2 = 0, r2 = t3.length; + let n3 = [], i2 = 0, r2 = 0, o2 = t3.length; for (let s2 = 1, a2 = e3.getLineCount(); s2 <= a2; s2++) { let a3 = e3.getLineContent(s2), l2 = a3.length + 1, c2 = 0; - if (o2 < r2 && t3[o2].lineNumber === s2 && (c2 = t3[o2].column, o2++, c2 === l2)) + if (r2 < o2 && t3[r2].lineNumber === s2 && (c2 = t3[r2].column, r2++, c2 === l2)) continue; if (a3.length === 0) continue; @@ -66994,14 +66994,14 @@ ${Object(zn.b)(wi)} let i2 = []; for (let t3 = n2.startLineNumber; t3 <= n2.endLineNumber; t3++) i2.push(e2.getLineContent(t3)); - const o2 = i2.join("\n"); - o2 === "" && this._isCopyingDown && (this._startLineNumberDelta++, this._endLineNumberDelta++), this._isCopyingDown ? t2.addEditOperation(new ge.a(n2.startLineNumber, 1, n2.startLineNumber, 1), o2 + "\n") : t2.addEditOperation(new ge.a(n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber), n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber)), "\n" + o2), this._selectionId = t2.trackSelection(n2), this._selectionDirection = this._selection.getDirection(); + const r2 = i2.join("\n"); + r2 === "" && this._isCopyingDown && (this._startLineNumberDelta++, this._endLineNumberDelta++), this._isCopyingDown ? t2.addEditOperation(new ge.a(n2.startLineNumber, 1, n2.startLineNumber, 1), r2 + "\n") : t2.addEditOperation(new ge.a(n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber), n2.endLineNumber, e2.getLineMaxColumn(n2.endLineNumber)), "\n" + r2), this._selectionId = t2.trackSelection(n2), this._selectionDirection = this._selection.getDirection(); } computeCursorState(e2, t2) { let n2 = t2.getTrackedSelection(this._selectionId); if (this._startLineNumberDelta !== 0 || this._endLineNumberDelta !== 0) { - let e3 = n2.startLineNumber, t3 = n2.startColumn, i2 = n2.endLineNumber, o2 = n2.endColumn; - this._startLineNumberDelta !== 0 && (e3 += this._startLineNumberDelta, t3 = 1), this._endLineNumberDelta !== 0 && (i2 += this._endLineNumberDelta, o2 = 1), n2 = q.a.createWithDirection(e3, t3, i2, o2, this._selectionDirection); + let e3 = n2.startLineNumber, t3 = n2.startColumn, i2 = n2.endLineNumber, r2 = n2.endColumn; + this._startLineNumberDelta !== 0 && (e3 += this._startLineNumberDelta, t3 = 1), this._endLineNumberDelta !== 0 && (i2 += this._endLineNumberDelta, r2 = 1), n2 = q.a.createWithDirection(e3, t3, i2, r2, this._selectionDirection); } return n2; } @@ -67020,61 +67020,61 @@ ${Object(zn.b)(wi)} this._moveEndPositionDown = false; let i2 = this._selection; i2.startLineNumber < i2.endLineNumber && i2.endColumn === 1 && (this._moveEndPositionDown = true, i2 = i2.setEndPosition(i2.endLineNumber - 1, e2.getLineMaxColumn(i2.endLineNumber - 1))); - const {tabSize: o2, indentSize: r2, insertSpaces: s2} = e2.getOptions(); - let a2 = this.buildIndentConverter(o2, r2, s2), l2 = {getLineTokens: (t3) => e2.getLineTokens(t3), getLanguageIdentifier: () => e2.getLanguageIdentifier(), getLanguageIdAtPosition: (t3, n3) => e2.getLanguageIdAtPosition(t3, n3), getLineContent: null}; + const {tabSize: r2, indentSize: o2, insertSpaces: s2} = e2.getOptions(); + let a2 = this.buildIndentConverter(r2, o2, s2), l2 = {getLineTokens: (t3) => e2.getLineTokens(t3), getLanguageIdentifier: () => e2.getLanguageIdentifier(), getLanguageIdAtPosition: (t3, n3) => e2.getLanguageIdAtPosition(t3, n3), getLineContent: null}; if (i2.startLineNumber === i2.endLineNumber && e2.getLineMaxColumn(i2.startLineNumber) === 1) { - let n3 = i2.startLineNumber, o3 = this._isMovingDown ? n3 + 1 : n3 - 1; - e2.getLineMaxColumn(o3) === 1 ? t2.addEditOperation(new ge.a(1, 1, 1, 1), null) : (t2.addEditOperation(new ge.a(n3, 1, n3, 1), e2.getLineContent(o3)), t2.addEditOperation(new ge.a(o3, 1, o3, e2.getLineMaxColumn(o3)), null)), i2 = new q.a(o3, 1, o3, 1); + let n3 = i2.startLineNumber, r3 = this._isMovingDown ? n3 + 1 : n3 - 1; + e2.getLineMaxColumn(r3) === 1 ? t2.addEditOperation(new ge.a(1, 1, 1, 1), null) : (t2.addEditOperation(new ge.a(n3, 1, n3, 1), e2.getLineContent(r3)), t2.addEditOperation(new ge.a(r3, 1, r3, e2.getLineMaxColumn(r3)), null)), i2 = new q.a(r3, 1, r3, 1); } else { - let n3, r3; + let n3, o3; if (this._isMovingDown) { - n3 = i2.endLineNumber + 1, r3 = e2.getLineContent(n3), t2.addEditOperation(new ge.a(n3 - 1, e2.getLineMaxColumn(n3 - 1), n3, e2.getLineMaxColumn(n3)), null); - let c2 = r3; + n3 = i2.endLineNumber + 1, o3 = e2.getLineContent(n3), t2.addEditOperation(new ge.a(n3 - 1, e2.getLineMaxColumn(n3 - 1), n3, e2.getLineMaxColumn(n3)), null); + let c2 = o3; if (this.shouldAutoIndent(e2, i2)) { - let d2 = this.matchEnterRule(e2, a2, o2, n3, i2.startLineNumber - 1); + let d2 = this.matchEnterRule(e2, a2, r2, n3, i2.startLineNumber - 1); if (d2 !== null) { - let t3 = id(d2 + nd(Ye.z(e2.getLineContent(n3)), o2), o2, s2); - c2 = t3 + this.trimLeft(r3); + let t3 = id(d2 + nd(Ye.z(e2.getLineContent(n3)), r2), r2, s2); + c2 = t3 + this.trimLeft(o3); } else { l2.getLineContent = (t4) => t4 === i2.startLineNumber ? e2.getLineContent(n3) : e2.getLineContent(t4); let t3 = Pn.a.getGoodIndentForLine(this._autoIndent, l2, e2.getLanguageIdAtPosition(n3, 1), i2.startLineNumber, a2); if (t3 !== null) { - let i3 = Ye.z(e2.getLineContent(n3)), a3 = nd(t3, o2); - if (a3 !== nd(i3, o2)) { - let e3 = id(a3, o2, s2); - c2 = e3 + this.trimLeft(r3); + let i3 = Ye.z(e2.getLineContent(n3)), a3 = nd(t3, r2); + if (a3 !== nd(i3, r2)) { + let e3 = id(a3, r2, s2); + c2 = e3 + this.trimLeft(o3); } } } t2.addEditOperation(new ge.a(i2.startLineNumber, 1, i2.startLineNumber, 1), c2 + "\n"); - let h2 = this.matchEnterRule(e2, a2, o2, i2.startLineNumber, i2.startLineNumber, c2); + let h2 = this.matchEnterRule(e2, a2, r2, i2.startLineNumber, i2.startLineNumber, c2); if (h2 !== null) - h2 !== 0 && this.getIndentEditsOfMovingBlock(e2, t2, i2, o2, s2, h2); + h2 !== 0 && this.getIndentEditsOfMovingBlock(e2, t2, i2, r2, s2, h2); else { l2.getLineContent = (t3) => t3 === i2.startLineNumber ? c2 : t3 >= i2.startLineNumber + 1 && t3 <= i2.endLineNumber + 1 ? e2.getLineContent(t3 - 1) : e2.getLineContent(t3); - let r4 = Pn.a.getGoodIndentForLine(this._autoIndent, l2, e2.getLanguageIdAtPosition(n3, 1), i2.startLineNumber + 1, a2); - if (r4 !== null) { - const n4 = Ye.z(e2.getLineContent(i2.startLineNumber)), a3 = nd(r4, o2), l3 = nd(n4, o2); + let o4 = Pn.a.getGoodIndentForLine(this._autoIndent, l2, e2.getLanguageIdAtPosition(n3, 1), i2.startLineNumber + 1, a2); + if (o4 !== null) { + const n4 = Ye.z(e2.getLineContent(i2.startLineNumber)), a3 = nd(o4, r2), l3 = nd(n4, r2); if (a3 !== l3) { const n5 = a3 - l3; - this.getIndentEditsOfMovingBlock(e2, t2, i2, o2, s2, n5); + this.getIndentEditsOfMovingBlock(e2, t2, i2, r2, s2, n5); } } } } else t2.addEditOperation(new ge.a(i2.startLineNumber, 1, i2.startLineNumber, 1), c2 + "\n"); - } else if (n3 = i2.startLineNumber - 1, r3 = e2.getLineContent(n3), t2.addEditOperation(new ge.a(n3, 1, n3 + 1, 1), null), t2.addEditOperation(new ge.a(i2.endLineNumber, e2.getLineMaxColumn(i2.endLineNumber), i2.endLineNumber, e2.getLineMaxColumn(i2.endLineNumber)), "\n" + r3), this.shouldAutoIndent(e2, i2)) { + } else if (n3 = i2.startLineNumber - 1, o3 = e2.getLineContent(n3), t2.addEditOperation(new ge.a(n3, 1, n3 + 1, 1), null), t2.addEditOperation(new ge.a(i2.endLineNumber, e2.getLineMaxColumn(i2.endLineNumber), i2.endLineNumber, e2.getLineMaxColumn(i2.endLineNumber)), "\n" + o3), this.shouldAutoIndent(e2, i2)) { l2.getLineContent = (t3) => t3 === n3 ? e2.getLineContent(i2.startLineNumber) : e2.getLineContent(t3); - let r4 = this.matchEnterRule(e2, a2, o2, i2.startLineNumber, i2.startLineNumber - 2); - if (r4 !== null) - r4 !== 0 && this.getIndentEditsOfMovingBlock(e2, t2, i2, o2, s2, r4); + let o4 = this.matchEnterRule(e2, a2, r2, i2.startLineNumber, i2.startLineNumber - 2); + if (o4 !== null) + o4 !== 0 && this.getIndentEditsOfMovingBlock(e2, t2, i2, r2, s2, o4); else { - let r5 = Pn.a.getGoodIndentForLine(this._autoIndent, l2, e2.getLanguageIdAtPosition(i2.startLineNumber, 1), n3, a2); - if (r5 !== null) { - let n4 = Ye.z(e2.getLineContent(i2.startLineNumber)), a3 = nd(r5, o2), l3 = nd(n4, o2); + let o5 = Pn.a.getGoodIndentForLine(this._autoIndent, l2, e2.getLanguageIdAtPosition(i2.startLineNumber, 1), n3, a2); + if (o5 !== null) { + let n4 = Ye.z(e2.getLineContent(i2.startLineNumber)), a3 = nd(o5, r2), l3 = nd(n4, r2); if (a3 !== l3) { let n5 = a3 - l3; - this.getIndentEditsOfMovingBlock(e2, t2, i2, o2, s2, n5); + this.getIndentEditsOfMovingBlock(e2, t2, i2, r2, s2, n5); } } } @@ -67085,11 +67085,11 @@ ${Object(zn.b)(wi)} buildIndentConverter(e2, t2, n2) { return {shiftIndent: (i2) => td.a.shiftIndent(i2, i2.length + 1, e2, t2, n2), unshiftIndent: (i2) => td.a.unshiftIndent(i2, i2.length + 1, e2, t2, n2)}; } - matchEnterRule(e2, t2, n2, i2, o2, r2) { - let s2 = o2; + matchEnterRule(e2, t2, n2, i2, r2, o2) { + let s2 = r2; for (; s2 >= 1; ) { let t3; - if (t3 = s2 === o2 && r2 !== void 0 ? r2 : e2.getLineContent(s2), Ye.J(t3) >= 0) + if (t3 = s2 === r2 && o2 !== void 0 ? o2 : e2.getLineContent(s2), Ye.J(t3) >= 0) break; s2--; } @@ -67097,12 +67097,12 @@ ${Object(zn.b)(wi)} return null; let a2 = e2.getLineMaxColumn(s2), l2 = Pn.a.getEnterAction(this._autoIndent, e2, new ge.a(s2, a2, s2, a2)); if (l2) { - let o3 = l2.indentation; - l2.indentAction === Td.a.None || l2.indentAction === Td.a.Indent ? o3 = l2.indentation + l2.appendText : l2.indentAction === Td.a.IndentOutdent ? o3 = l2.indentation : l2.indentAction === Td.a.Outdent && (o3 = t2.unshiftIndent(l2.indentation) + l2.appendText); - let r3 = e2.getLineContent(i2); - if (this.trimLeft(r3).indexOf(this.trimLeft(o3)) >= 0) { - let r4 = Ye.z(e2.getLineContent(i2)), s3 = Ye.z(o3), a3 = Pn.a.getIndentMetadata(e2, i2); - return a3 !== null && 2 & a3 && (s3 = t2.unshiftIndent(s3)), nd(s3, n2) - nd(r4, n2); + let r3 = l2.indentation; + l2.indentAction === Td.a.None || l2.indentAction === Td.a.Indent ? r3 = l2.indentation + l2.appendText : l2.indentAction === Td.a.IndentOutdent ? r3 = l2.indentation : l2.indentAction === Td.a.Outdent && (r3 = t2.unshiftIndent(l2.indentation) + l2.appendText); + let o3 = e2.getLineContent(i2); + if (this.trimLeft(o3).indexOf(this.trimLeft(r3)) >= 0) { + let o4 = Ye.z(e2.getLineContent(i2)), s3 = Ye.z(r3), a3 = Pn.a.getIndentMetadata(e2, i2); + return a3 !== null && 2 & a3 && (s3 = t2.unshiftIndent(s3)), nd(s3, n2) - nd(o4, n2); } } return null; @@ -67118,9 +67118,9 @@ ${Object(zn.b)(wi)} let n2 = e2.getLanguageIdAtPosition(t2.startLineNumber, 1); return n2 === e2.getLanguageIdAtPosition(t2.endLineNumber, 1) && Pn.a.getIndentRulesSupport(n2) !== null; } - getIndentEditsOfMovingBlock(e2, t2, n2, i2, o2, r2) { + getIndentEditsOfMovingBlock(e2, t2, n2, i2, r2, o2) { for (let s2 = n2.startLineNumber; s2 <= n2.endLineNumber; s2++) { - let a2 = e2.getLineContent(s2), l2 = Ye.z(a2), c2 = id(nd(l2, i2) + r2, i2, o2); + let a2 = e2.getLineContent(s2), l2 = Ye.z(a2), c2 = id(nd(l2, i2) + o2, i2, r2); c2 !== l2 && (t2.addEditOperation(new ge.a(s2, 1, s2, l2.length + 1), c2), s2 === n2.endLineNumber && n2.endColumn <= l2.length + 1 && c2 === "" && (this._moveEndLineSelectionShrink = true)); } } @@ -67161,17 +67161,17 @@ ${Object(zn.b)(wi)} } } function Id(e2, t2, n2) { - let i2 = t2.startLineNumber, o2 = t2.endLineNumber; - if (t2.endColumn === 1 && o2--, i2 >= o2) + let i2 = t2.startLineNumber, r2 = t2.endLineNumber; + if (t2.endColumn === 1 && r2--, i2 >= r2) return null; - let r2 = []; - for (let t3 = i2; t3 <= o2; t3++) - r2.push(e2.getLineContent(t3)); - let s2 = r2.slice(0); - return s2.sort(Nd.getCollator().compare), n2 === true && (s2 = s2.reverse()), {startLineNumber: i2, endLineNumber: o2, before: r2, after: s2}; + let o2 = []; + for (let t3 = i2; t3 <= r2; t3++) + o2.push(e2.getLineContent(t3)); + let s2 = o2.slice(0); + return s2.sort(Nd.getCollator().compare), n2 === true && (s2 = s2.reverse()), {startLineNumber: i2, endLineNumber: r2, before: o2, after: s2}; } Nd._COLLATOR = null; - class Od extends V.b { + class Dd extends V.b { constructor(e2, t2) { super(t2), this.down = e2; } @@ -67185,26 +67185,26 @@ ${Object(zn.b)(wi)} const t3 = n2[e3]; i2.selection.endLineNumber === t3.selection.startLineNumber && (i2.index < t3.index ? t3.ignore = true : (i2.ignore = true, i2 = t3)); } - const o2 = []; + const r2 = []; for (const e3 of n2) - e3.ignore || o2.push(new Ed(e3.selection, this.down)); - t2.pushUndoStop(), t2.executeCommands(this.id, o2), t2.pushUndoStop(); + e3.ignore || r2.push(new Ed(e3.selection, this.down)); + t2.pushUndoStop(), t2.executeCommands(this.id, r2), t2.pushUndoStop(); } } - class Dd extends V.b { + class Od extends V.b { constructor() { super({id: "editor.action.duplicateSelection", label: U.a("duplicateSelection", "Duplicate Selection"), alias: "Duplicate Selection", precondition: H.a.writable, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "2_line", title: U.a({key: "miDuplicateSelection", comment: ["&& denotes a mnemonic"]}, "&&Duplicate Selection"), order: 5}}); } run(e2, t2, n2) { if (!t2.hasModel()) return; - const i2 = [], o2 = t2.getSelections(), r2 = t2.getModel(); - for (const e3 of o2) + const i2 = [], r2 = t2.getSelections(), o2 = t2.getModel(); + for (const e3 of r2) if (e3.isEmpty()) i2.push(new Ed(e3, true)); else { const t3 = new q.a(e3.endLineNumber, e3.endColumn, e3.endLineNumber, e3.endColumn); - i2.push(new Ne.c(t3, r2.getValueInRange(e3))); + i2.push(new Ne.c(t3, o2.getValueInRange(e3))); } t2.pushUndoStop(), t2.executeCommands(this.id, i2), t2.pushUndoStop(); } @@ -67215,9 +67215,9 @@ ${Object(zn.b)(wi)} } run(e2, t2) { let n2 = [], i2 = t2.getSelections() || []; - const o2 = t2.getOption(8); + const r2 = t2.getOption(8); for (const e3 of i2) - n2.push(new Ld(e3, this.down, o2)); + n2.push(new Ld(e3, this.down, r2)); t2.pushUndoStop(), t2.executeCommands(this.id, n2), t2.pushUndoStop(); } } @@ -67243,11 +67243,11 @@ ${Object(zn.b)(wi)} run(e2, t2, n2) { let i2 = []; n2.reason === "auto-save" && (i2 = (t2.getSelections() || []).map((e3) => new me.a(e3.positionLineNumber, e3.positionColumn))); - let o2 = t2.getSelection(); - if (o2 === null) + let r2 = t2.getSelection(); + if (r2 === null) return; - let r2 = new Sd(o2, i2); - t2.pushUndoStop(), t2.executeCommands(this.id, [r2]), t2.pushUndoStop(); + let o2 = new Sd(r2, i2); + t2.pushUndoStop(), t2.executeCommands(this.id, [o2]), t2.pushUndoStop(); } } Md.ID = "editor.action.trimTrailingWhitespace"; @@ -67261,13 +67261,13 @@ ${Object(zn.b)(wi)} let n2 = this._getLinesToRemove(t2), i2 = t2.getModel(); if (i2.getLineCount() === 1 && i2.getLineMaxColumn(1) === 1) return; - let o2 = 0, r2 = [], s2 = []; + let r2 = 0, o2 = [], s2 = []; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) { const t4 = n2[e3]; let a2 = t4.startLineNumber, l2 = t4.endLineNumber, c2 = 1, d2 = i2.getLineMaxColumn(l2); - l2 < i2.getLineCount() ? (l2 += 1, d2 = 1) : a2 > 1 && (a2 -= 1, c2 = i2.getLineMaxColumn(a2)), r2.push(Mn.a.replace(new q.a(a2, c2, l2, d2), "")), s2.push(new q.a(a2 - o2, t4.positionColumn, a2 - o2, t4.positionColumn)), o2 += t4.endLineNumber - t4.startLineNumber + 1; + l2 < i2.getLineCount() ? (l2 += 1, d2 = 1) : a2 > 1 && (a2 -= 1, c2 = i2.getLineMaxColumn(a2)), o2.push(Mn.a.replace(new q.a(a2, c2, l2, d2), "")), s2.push(new q.a(a2 - r2, t4.positionColumn, a2 - r2, t4.positionColumn)), r2 += t4.endLineNumber - t4.startLineNumber + 1; } - t2.pushUndoStop(), t2.executeEdits(this.id, r2, s2), t2.pushUndoStop(); + t2.pushUndoStop(), t2.executeEdits(this.id, o2, s2), t2.pushUndoStop(); } _getLinesToRemove(e2) { let t2 = e2.getSelections().map((e3) => { @@ -67321,14 +67321,14 @@ ${Object(zn.b)(wi)} if (!t2.hasModel()) return; const n2 = t2.getSelection(); - let i2 = this._getRangesToDelete(t2), o2 = []; + let i2 = this._getRangesToDelete(t2), r2 = []; for (let e3 = 0, t3 = i2.length - 1; e3 < t3; e3++) { let t4 = i2[e3], n3 = i2[e3 + 1]; - ge.a.intersectRanges(t4, n3) === null ? o2.push(t4) : i2[e3 + 1] = ge.a.plusRange(t4, n3); + ge.a.intersectRanges(t4, n3) === null ? r2.push(t4) : i2[e3 + 1] = ge.a.plusRange(t4, n3); } - o2.push(i2[i2.length - 1]); - let r2 = this._getEndCursorState(n2, o2), s2 = o2.map((e3) => Mn.a.replace(e3, "")); - t2.pushUndoStop(), t2.executeEdits(this.id, s2, r2), t2.pushUndoStop(); + r2.push(i2[i2.length - 1]); + let o2 = this._getEndCursorState(n2, r2), s2 = r2.map((e3) => Mn.a.replace(e3, "")); + t2.pushUndoStop(), t2.executeEdits(this.id, s2, o2), t2.pushUndoStop(); } } class Vd extends V.b { @@ -67343,19 +67343,19 @@ ${Object(zn.b)(wi)} if (i2 === null) return; n2.sort(ge.a.compareRangesUsingStarts); - let o2 = [], r2 = n2.reduce((e3, t3) => e3.isEmpty() ? e3.endLineNumber === t3.startLineNumber ? (i2.equalsSelection(e3) && (i2 = t3), t3) : t3.startLineNumber > e3.endLineNumber + 1 ? (o2.push(e3), t3) : new q.a(e3.startLineNumber, e3.startColumn, t3.endLineNumber, t3.endColumn) : t3.startLineNumber > e3.endLineNumber ? (o2.push(e3), t3) : new q.a(e3.startLineNumber, e3.startColumn, t3.endLineNumber, t3.endColumn)); - o2.push(r2); + let r2 = [], o2 = n2.reduce((e3, t3) => e3.isEmpty() ? e3.endLineNumber === t3.startLineNumber ? (i2.equalsSelection(e3) && (i2 = t3), t3) : t3.startLineNumber > e3.endLineNumber + 1 ? (r2.push(e3), t3) : new q.a(e3.startLineNumber, e3.startColumn, t3.endLineNumber, t3.endColumn) : t3.startLineNumber > e3.endLineNumber ? (r2.push(e3), t3) : new q.a(e3.startLineNumber, e3.startColumn, t3.endLineNumber, t3.endColumn)); + r2.push(o2); let s2 = t2.getModel(); if (s2 === null) return; let a2 = [], l2 = [], c2 = i2, d2 = 0; - for (let e3 = 0, t3 = o2.length; e3 < t3; e3++) { - let t4, n3, r3 = o2[e3], h2 = r3.startLineNumber, u2 = 1, p2 = 0, m2 = s2.getLineContent(r3.endLineNumber).length - r3.endColumn; - if (r3.isEmpty() || r3.startLineNumber === r3.endLineNumber) { - let e4 = r3.getStartPosition(); + for (let e3 = 0, t3 = r2.length; e3 < t3; e3++) { + let t4, n3, o3 = r2[e3], h2 = o3.startLineNumber, u2 = 1, p2 = 0, m2 = s2.getLineContent(o3.endLineNumber).length - o3.endColumn; + if (o3.isEmpty() || o3.startLineNumber === o3.endLineNumber) { + let e4 = o3.getStartPosition(); e4.lineNumber < s2.getLineCount() ? (t4 = h2 + 1, n3 = s2.getLineMaxColumn(t4)) : (t4 = e4.lineNumber, n3 = s2.getLineMaxColumn(e4.lineNumber)); } else - t4 = r3.endLineNumber, n3 = s2.getLineMaxColumn(t4); + t4 = o3.endLineNumber, n3 = s2.getLineMaxColumn(t4); let g2 = s2.getLineContent(h2); for (let e4 = h2 + 1; e4 <= t4; e4++) { let t5 = s2.getLineContent(e4), n4 = s2.getLineFirstNonWhitespaceColumn(e4); @@ -67370,7 +67370,7 @@ ${Object(zn.b)(wi)} let f2 = new ge.a(h2, u2, t4, n3); if (!f2.isEmpty()) { let e4; - r3.isEmpty() ? (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(f2.startLineNumber - d2, g2.length - p2 + 1, h2 - d2, g2.length - p2 + 1)) : r3.startLineNumber === r3.endLineNumber ? (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(r3.startLineNumber - d2, r3.startColumn, r3.endLineNumber - d2, r3.endColumn)) : (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(r3.startLineNumber - d2, r3.startColumn, r3.startLineNumber - d2, g2.length - m2)), ge.a.intersectRanges(f2, i2) !== null ? c2 = e4 : l2.push(e4); + o3.isEmpty() ? (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(f2.startLineNumber - d2, g2.length - p2 + 1, h2 - d2, g2.length - p2 + 1)) : o3.startLineNumber === o3.endLineNumber ? (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(o3.startLineNumber - d2, o3.startColumn, o3.endLineNumber - d2, o3.endColumn)) : (a2.push(Mn.a.replace(f2, g2)), e4 = new q.a(o3.startLineNumber - d2, o3.startColumn, o3.startLineNumber - d2, g2.length - m2)), ge.a.intersectRanges(f2, i2) !== null ? c2 = e4 : l2.push(e4); } d2 += f2.endLineNumber - f2.startLineNumber; } @@ -67388,23 +67388,23 @@ ${Object(zn.b)(wi)} let i2 = t2.getModel(); if (i2 === null) return; - let o2 = []; + let r2 = []; for (let e3 = 0, t3 = n2.length; e3 < t3; e3++) { let t4 = n2[e3]; if (!t4.isEmpty()) continue; - let r2 = t4.getStartPosition(), s2 = i2.getLineMaxColumn(r2.lineNumber); - if (r2.column >= s2) { - if (r2.lineNumber === i2.getLineCount()) + let o2 = t4.getStartPosition(), s2 = i2.getLineMaxColumn(o2.lineNumber); + if (o2.column >= s2) { + if (o2.lineNumber === i2.getLineCount()) continue; - let e4 = new ge.a(r2.lineNumber, Math.max(1, r2.column - 1), r2.lineNumber + 1, 1), t5 = i2.getValueInRange(e4).split("").reverse().join(""); - o2.push(new Ne.a(new q.a(r2.lineNumber, Math.max(1, r2.column - 1), r2.lineNumber + 1, 1), t5)); + let e4 = new ge.a(o2.lineNumber, Math.max(1, o2.column - 1), o2.lineNumber + 1, 1), t5 = i2.getValueInRange(e4).split("").reverse().join(""); + r2.push(new Ne.a(new q.a(o2.lineNumber, Math.max(1, o2.column - 1), o2.lineNumber + 1, 1), t5)); } else { - let e4 = new ge.a(r2.lineNumber, Math.max(1, r2.column - 1), r2.lineNumber, r2.column + 1), t5 = i2.getValueInRange(e4).split("").reverse().join(""); - o2.push(new Ne.b(e4, t5, new q.a(r2.lineNumber, r2.column + 1, r2.lineNumber, r2.column + 1))); + let e4 = new ge.a(o2.lineNumber, Math.max(1, o2.column - 1), o2.lineNumber, o2.column + 1), t5 = i2.getValueInRange(e4).split("").reverse().join(""); + r2.push(new Ne.b(e4, t5, new q.a(o2.lineNumber, o2.column + 1, o2.lineNumber, o2.column + 1))); } } - t2.pushUndoStop(), t2.executeCommands(this.id, o2), t2.pushUndoStop(); + t2.pushUndoStop(), t2.executeCommands(this.id, r2), t2.pushUndoStop(); } } class Hd extends V.b { @@ -67415,7 +67415,7 @@ ${Object(zn.b)(wi)} let i2 = t2.getModel(); if (i2 === null) return; - let o2 = t2.getOption(105), r2 = []; + let r2 = t2.getOption(105), o2 = []; for (let e3 = 0, s2 = n2.length; e3 < s2; e3++) { let s3 = n2[e3]; if (s3.isEmpty()) { @@ -67424,24 +67424,24 @@ ${Object(zn.b)(wi)} if (!n3) continue; let a2 = new ge.a(e4.lineNumber, n3.startColumn, e4.lineNumber, n3.endColumn), l2 = i2.getValueInRange(a2); - r2.push(new Ne.b(a2, this._modifyText(l2, o2), new q.a(e4.lineNumber, e4.column, e4.lineNumber, e4.column))); + o2.push(new Ne.b(a2, this._modifyText(l2, r2), new q.a(e4.lineNumber, e4.column, e4.lineNumber, e4.column))); } else { let e4 = i2.getValueInRange(s3); - r2.push(new Ne.b(s3, this._modifyText(e4, o2), s3)); + o2.push(new Ne.b(s3, this._modifyText(e4, r2), s3)); } } - t2.pushUndoStop(), t2.executeCommands(this.id, r2), t2.pushUndoStop(); + t2.pushUndoStop(), t2.executeCommands(this.id, o2), t2.pushUndoStop(); } } - Object(V.k)(class extends Od { + Object(V.k)(class extends Dd { constructor() { super(false, {id: "editor.action.copyLinesUpAction", label: U.a("lines.copyUp", "Copy Line Up"), alias: "Copy Line Up", precondition: H.a.writable, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 1552, linux: {primary: 3600}, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "2_line", title: U.a({key: "miCopyLinesUp", comment: ["&& denotes a mnemonic"]}, "&&Copy Line Up"), order: 1}}); } - }), Object(V.k)(class extends Od { + }), Object(V.k)(class extends Dd { constructor() { super(true, {id: "editor.action.copyLinesDownAction", label: U.a("lines.copyDown", "Copy Line Down"), alias: "Copy Line Down", precondition: H.a.writable, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 1554, linux: {primary: 3602}, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "2_line", title: U.a({key: "miCopyLinesDown", comment: ["&& denotes a mnemonic"]}, "Co&&py Line Down"), order: 2}}); } - }), Object(V.k)(Dd), Object(V.k)(class extends Ad { + }), Object(V.k)(Od), Object(V.k)(class extends Ad { constructor() { super(false, {id: "editor.action.moveLinesUpAction", label: U.a("lines.moveUp", "Move Line Up"), alias: "Move Line Up", precondition: H.a.writable, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 528, linux: {primary: 528}, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "2_line", title: U.a({key: "miMoveLinesUp", comment: ["&& denotes a mnemonic"]}, "Mo&&ve Line Up"), order: 3}}); } @@ -67462,15 +67462,15 @@ ${Object(zn.b)(wi)} super({id: "deleteAllLeft", label: U.a("lines.deleteAllLeft", "Delete All Left"), alias: "Delete All Left", precondition: H.a.writable, kbOpts: {kbExpr: H.a.textInputFocus, primary: 0, mac: {primary: 2049}, weight: 100}}); } _getEndCursorState(e2, t2) { - let n2 = null, i2 = [], o2 = 0; + let n2 = null, i2 = [], r2 = 0; return t2.forEach((t3) => { - let r2; - if (t3.endColumn === 1 && o2 > 0) { - let e3 = t3.startLineNumber - o2; - r2 = new q.a(e3, t3.startColumn, e3, t3.startColumn); + let o2; + if (t3.endColumn === 1 && r2 > 0) { + let e3 = t3.startLineNumber - r2; + o2 = new q.a(e3, t3.startColumn, e3, t3.startColumn); } else - r2 = new q.a(t3.startLineNumber, t3.startColumn, t3.startLineNumber, t3.startColumn); - o2 += t3.endLineNumber - t3.startLineNumber, t3.intersectRanges(e2) ? n2 = r2 : i2.push(r2); + o2 = new q.a(t3.startLineNumber, t3.startColumn, t3.startLineNumber, t3.startColumn); + r2 += t3.endLineNumber - t3.startLineNumber, t3.intersectRanges(e2) ? n2 = o2 : i2.push(o2); }), n2 && i2.unshift(n2), i2; } _getRangesToDelete(e2) { @@ -67495,9 +67495,9 @@ ${Object(zn.b)(wi)} } _getEndCursorState(e2, t2) { let n2 = null, i2 = []; - for (let o2 = 0, r2 = t2.length, s2 = 0; o2 < r2; o2++) { - let r3 = t2[o2], a2 = new q.a(r3.startLineNumber - s2, r3.startColumn, r3.startLineNumber - s2, r3.startColumn); - r3.intersectRanges(e2) ? n2 = a2 : i2.push(a2); + for (let r2 = 0, o2 = t2.length, s2 = 0; r2 < o2; r2++) { + let o3 = t2[r2], a2 = new q.a(o3.startLineNumber - s2, o3.startColumn, o3.startLineNumber - s2, o3.startColumn); + o3.intersectRanges(e2) ? n2 = a2 : i2.push(a2); } return n2 && i2.unshift(n2), i2; } @@ -67537,34 +67537,34 @@ ${Object(zn.b)(wi)} } _modifyText(e2, t2) { const n2 = ("\r\n " + t2).split(""); - let i2 = "", o2 = true; + let i2 = "", r2 = true; for (let t3 = 0; t3 < e2.length; t3++) { - let r2 = e2[t3]; - n2.indexOf(r2) >= 0 ? (o2 = true, i2 += r2) : o2 ? (o2 = false, i2 += r2.toLocaleUpperCase()) : i2 += r2.toLocaleLowerCase(); + let o2 = e2[t3]; + n2.indexOf(o2) >= 0 ? (r2 = true, i2 += o2) : r2 ? (r2 = false, i2 += o2.toLocaleUpperCase()) : i2 += o2.toLocaleLowerCase(); } return i2; } }); n(317); var qd = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -67604,25 +67604,25 @@ ${Object(zn.b)(wi)} this.links = t2; } static _union(e2, t2) { - let n2, i2, o2, r2, s2 = []; - for (n2 = 0, o2 = 0, i2 = e2.length, r2 = t2.length; n2 < i2 && o2 < r2; ) { - const i3 = e2[n2], r3 = t2[o2]; - if (ge.a.areIntersectingOrTouching(i3.range, r3.range)) { + let n2, i2, r2, o2, s2 = []; + for (n2 = 0, r2 = 0, i2 = e2.length, o2 = t2.length; n2 < i2 && r2 < o2; ) { + const i3 = e2[n2], o3 = t2[r2]; + if (ge.a.areIntersectingOrTouching(i3.range, o3.range)) { n2++; continue; } - ge.a.compareRangesUsingStarts(i3.range, r3.range) < 0 ? (s2.push(i3), n2++) : (s2.push(r3), o2++); + ge.a.compareRangesUsingStarts(i3.range, o3.range) < 0 ? (s2.push(i3), n2++) : (s2.push(o3), r2++); } for (; n2 < i2; n2++) s2.push(e2[n2]); - for (; o2 < r2; o2++) - s2.push(t2[o2]); + for (; r2 < o2; r2++) + s2.push(t2[r2]); return s2; } } function Gd(e2, t2) { - const n2 = [], i2 = et.s.ordered(e2).reverse().map((i3, o2) => Promise.resolve(i3.provideLinks(e2, t2)).then((e3) => { - e3 && (n2[o2] = [e3, i3]); + const n2 = [], i2 = et.s.ordered(e2).reverse().map((i3, r2) => Promise.resolve(i3.provideLinks(e2, t2)).then((e3) => { + e3 && (n2[r2] = [e3, i3]); }, Z.f)); return Promise.all(i2).then(() => { const e3 = new Kd(Object(G.d)(n2)); @@ -67636,43 +67636,43 @@ ${Object(zn.b)(wi)} const i2 = e2.get(tt.a).getModel(n2); if (!i2) return []; - const o2 = yield Gd(i2, Xe.a.None); - if (!o2) + const r2 = yield Gd(i2, Xe.a.None); + if (!r2) return []; - const r2 = o2.links.slice(0); - return o2.dispose(), r2; + const o2 = r2.links.slice(0); + return r2.dispose(), o2; })); var Yd = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Zd = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Xd = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -67690,11 +67690,11 @@ ${Object(zn.b)(wi)} static _getOptions(e2, t2, n2) { const i2 = Object.assign({}, n2 ? Qd.active : Qd.general); return i2.hoverMessage = function(e3, t3) { - const n3 = e3.url && /^command:/i.test(e3.url.toString()), i3 = e3.tooltip ? e3.tooltip : n3 ? U.a("links.navigate.executeCmd", "Execute command") : U.a("links.navigate.follow", "Follow link"), o2 = t3 ? Ae.f ? U.a("links.navigate.kb.meta.mac", "cmd + click") : U.a("links.navigate.kb.meta", "ctrl + click") : Ae.f ? U.a("links.navigate.kb.alt.mac", "option + click") : U.a("links.navigate.kb.alt", "alt + click"); + const n3 = e3.url && /^command:/i.test(e3.url.toString()), i3 = e3.tooltip ? e3.tooltip : n3 ? U.a("links.navigate.executeCmd", "Execute command") : U.a("links.navigate.follow", "Follow link"), r2 = t3 ? Ae.f ? U.a("links.navigate.kb.meta.mac", "cmd + click") : U.a("links.navigate.kb.meta", "ctrl + click") : Ae.f ? U.a("links.navigate.kb.alt.mac", "option + click") : U.a("links.navigate.kb.alt", "alt + click"); if (e3.url) { - return new X("", true).appendMarkdown(`[${i3}](${e3.url.toString()}) (${o2})`); + return new X("", true).appendMarkdown(`[${i3}](${e3.url.toString()}) (${r2})`); } - return new X().appendText(`${i3} (${o2})`); + return new X().appendText(`${i3} (${r2})`); }(e2, t2), i2; } activate(e2, t2) { @@ -67752,17 +67752,17 @@ ${Object(zn.b)(wi)} const t2 = this.editor.getOption(61) === "altKey"; let n2 = [], i2 = Object.keys(this.currentOccurrences); for (let e4 = 0, t3 = i2.length; e4 < t3; e4++) { - let t4 = i2[e4], o3 = this.currentOccurrences[t4]; - n2.push(o3.decorationId); + let t4 = i2[e4], r3 = this.currentOccurrences[t4]; + n2.push(r3.decorationId); } - let o2 = []; + let r2 = []; if (e3) for (const n3 of e3) - o2.push(Jd.decoration(n3, t2)); - let r2 = this.editor.deltaDecorations(n2, o2); + r2.push(Jd.decoration(n3, t2)); + let o2 = this.editor.deltaDecorations(n2, r2); this.currentOccurrences = {}, this.activeLinkDecorationId = null; - for (let t3 = 0, n3 = r2.length; t3 < n3; t3++) { - let n4 = new Jd(e3[t3], r2[t3]); + for (let t3 = 0, n3 = o2.length; t3 < n3; t3++) { + let n4 = new Jd(e3[t3], o2[t3]); this.currentOccurrences[n4.decorationId] = n4; } } @@ -67803,8 +67803,8 @@ ${Object(zn.b)(wi)} const n3 = Qe.a.parse(e4); if (n3.scheme === la.b.file) { const i3 = jt.i(n3); - let o2 = null; - Ye.S(i3, "/./") ? o2 = "." + i3.substr(1) : Ye.S(i3, "//./") && (o2 = "." + i3.substr(2)), o2 && (e4 = jt.g(t3, o2)); + let r2 = null; + Ye.S(i3, "/./") ? r2 = "." + i3.substr(1) : Ye.S(i3, "//./") && (r2 = "." + i3.substr(2)), r2 && (e4 = jt.g(t3, r2)); } } } @@ -67865,22 +67865,22 @@ ${Object(zn.b)(wi)} run(e2, t2, n2) { if (!t2.hasModel()) return; - const i2 = n2 && n2.logicalLine === true, o2 = t2._getViewModel(); - o2.cursorConfig.readOnly || (o2.pushStackElement(), o2.setCursorStates(n2.source, 3, nh.b.addCursorUp(o2, o2.getCursorStates(), i2)), o2.revealTopMostCursor(n2.source)); + const i2 = n2 && n2.logicalLine === true, r2 = t2._getViewModel(); + r2.cursorConfig.readOnly || (r2.pushStackElement(), r2.setCursorStates(n2.source, 3, nh.b.addCursorUp(r2, r2.getCursorStates(), i2)), r2.revealTopMostCursor(n2.source)); } } - class oh extends V.b { + class rh extends V.b { constructor() { super({id: "editor.action.insertCursorBelow", label: U.a("mutlicursor.insertBelow", "Add Cursor Below"), alias: "Add Cursor Below", precondition: void 0, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 2578, linux: {primary: 1554, secondary: [3090]}, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "3_multi", title: U.a({key: "miInsertCursorBelow", comment: ["&& denotes a mnemonic"]}, "A&&dd Cursor Below"), order: 3}}); } run(e2, t2, n2) { if (!t2.hasModel()) return; - const i2 = n2 && n2.logicalLine === true, o2 = t2._getViewModel(); - o2.cursorConfig.readOnly || (o2.pushStackElement(), o2.setCursorStates(n2.source, 3, nh.b.addCursorDown(o2, o2.getCursorStates(), i2)), o2.revealBottomMostCursor(n2.source)); + const i2 = n2 && n2.logicalLine === true, r2 = t2._getViewModel(); + r2.cursorConfig.readOnly || (r2.pushStackElement(), r2.setCursorStates(n2.source, 3, nh.b.addCursorDown(r2, r2.getCursorStates(), i2)), r2.revealBottomMostCursor(n2.source)); } } - class rh extends V.b { + class oh extends V.b { constructor() { super({id: "editor.action.insertCursorAtEndOfEachLineSelected", label: U.a("mutlicursor.insertAtEndOfEachLineSelected", "Add Cursors to Line Ends"), alias: "Add Cursors to Line Ends", precondition: void 0, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 1575, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "3_multi", title: U.a({key: "miInsertCursorAtEndOfEachLineSelected", comment: ["&& denotes a mnemonic"]}, "Add C&&ursors to Line Ends"), order: 4}}); } @@ -67897,8 +67897,8 @@ ${Object(zn.b)(wi)} if (!t2.hasModel()) return; const n2 = t2.getModel(), i2 = t2.getSelections(); - let o2 = []; - i2.forEach((e3) => this.getCursorsForSelection(e3, n2, o2)), o2.length > 0 && t2.setSelections(o2); + let r2 = []; + i2.forEach((e3) => this.getCursorsForSelection(e3, n2, r2)), r2.length > 0 && t2.setSelections(r2); } } class sh extends V.b { @@ -67909,10 +67909,10 @@ ${Object(zn.b)(wi)} if (!t2.hasModel()) return; const n2 = t2.getSelections(), i2 = t2.getModel().getLineCount(); - let o2 = []; + let r2 = []; for (let e3 = n2[0].startLineNumber; e3 <= i2; e3++) - o2.push(new q.a(e3, n2[0].startColumn, e3, n2[0].endColumn)); - o2.length > 0 && t2.setSelections(o2); + r2.push(new q.a(e3, n2[0].startColumn, e3, n2[0].endColumn)); + r2.length > 0 && t2.setSelections(r2); } } class ah extends V.b { @@ -67935,8 +67935,8 @@ ${Object(zn.b)(wi)} } } class ch { - constructor(e2, t2, n2, i2, o2, r2, s2) { - this._editor = e2, this.findController = t2, this.isDisconnectedFromFindController = n2, this.searchText = i2, this.wholeWord = o2, this.matchCase = r2, this.currentMatch = s2; + constructor(e2, t2, n2, i2, r2, o2, s2) { + this._editor = e2, this.findController = t2, this.isDisconnectedFromFindController = n2, this.searchText = i2, this.wholeWord = r2, this.matchCase = o2, this.currentMatch = s2; } static create(e2, t2) { if (!e2.hasModel()) @@ -67944,9 +67944,9 @@ ${Object(zn.b)(wi)} const n2 = t2.getState(); if (!e2.hasTextFocus() && n2.isRevealed && n2.searchString.length > 0) return new ch(e2, t2, false, n2.searchString, n2.wholeWord, n2.matchCase, null); - let i2, o2, r2 = false; + let i2, r2, o2 = false; const s2 = e2.getSelections(); - s2.length === 1 && s2[0].isEmpty() ? (r2 = true, i2 = true, o2 = true) : (i2 = n2.wholeWord, o2 = n2.matchCase); + s2.length === 1 && s2[0].isEmpty() ? (o2 = true, i2 = true, r2 = true) : (i2 = n2.wholeWord, r2 = n2.matchCase); const a2 = e2.getSelection(); let l2, c2 = null; if (a2.isEmpty()) { @@ -67956,7 +67956,7 @@ ${Object(zn.b)(wi)} l2 = t3.word, c2 = new q.a(a2.startLineNumber, t3.startColumn, a2.startLineNumber, t3.endColumn); } else l2 = e2.getModel().getValueInRange(a2).replace(/\r\n/g, "\n"); - return new ch(e2, t2, r2, l2, i2, o2, c2); + return new ch(e2, t2, o2, l2, i2, r2, c2); } addSelectionToNextFindMatch() { if (!this._editor.hasModel()) @@ -68077,7 +68077,7 @@ ${Object(zn.b)(wi)} if (!mh(this._editor.getModel(), t2, n2)) { const e3 = this._editor.getModel(); let n3 = []; - for (let i2 = 0, o2 = t2.length; i2 < o2; i2++) + for (let i2 = 0, r2 = t2.length; i2 < r2; i2++) n3[i2] = this._expandEmptyToWord(e3, t2[i2]); return void this._editor.setSelections(n3); } @@ -68135,7 +68135,7 @@ ${Object(zn.b)(wi)} const n2 = dh.get(t2); if (!n2) return; - const i2 = Uo.get(t2); + const i2 = Vr.get(t2); i2 && this._run(n2, i2); } } @@ -68157,7 +68157,7 @@ ${Object(zn.b)(wi)} this._setState(null); })), this._register(e2.onDidChangeModelContent((e3) => { this._isEnabled && this.updateSoon.schedule(); - })), this._register(Uo.get(e2).getState().onFindReplaceStateChange((e3) => { + })), this._register(Vr.get(e2).getState().onFindReplaceStateChange((e3) => { this._update(); })); } @@ -68175,36 +68175,36 @@ ${Object(zn.b)(wi)} const i2 = dh.get(t2); if (!i2) return null; - const o2 = Uo.get(t2); - if (!o2) + const r2 = Vr.get(t2); + if (!r2) return null; - let r2 = i2.getSession(o2); - if (!r2) { + let o2 = i2.getSession(r2); + if (!o2) { const e3 = t2.getSelections(); if (e3.length > 1) { - const n3 = o2.getState().matchCase; + const n3 = r2.getState().matchCase; if (!mh(t2.getModel(), e3, n3)) return null; } - r2 = ch.create(t2, o2); + o2 = ch.create(t2, r2); } - if (!r2) + if (!o2) return null; - if (r2.currentMatch) + if (o2.currentMatch) return null; - if (/^[ \t]+$/.test(r2.searchText)) + if (/^[ \t]+$/.test(o2.searchText)) return null; - if (r2.searchText.length > 200) + if (o2.searchText.length > 200) return null; - const s2 = o2.getState(), a2 = s2.matchCase; + const s2 = r2.getState(), a2 = s2.matchCase; if (s2.isRevealed) { let e3 = s2.searchString; a2 || (e3 = e3.toLowerCase()); - let t3 = r2.searchText; - if (a2 || (t3 = t3.toLowerCase()), e3 === t3 && r2.matchCase === s2.matchCase && r2.wholeWord === s2.wholeWord && !s2.isRegex) + let t3 = o2.searchText; + if (a2 || (t3 = t3.toLowerCase()), e3 === t3 && o2.matchCase === s2.matchCase && o2.wholeWord === s2.wholeWord && !s2.isRegex) return null; } - return new uh(r2.searchText, r2.matchCase, r2.wholeWord ? t2.getOption(105) : null, t2.getModel().getVersionId()); + return new uh(o2.searchText, o2.matchCase, o2.wholeWord ? t2.getOption(105) : null, t2.getModel().getVersionId()); } _setState(e2) { if (uh.softEquals(this.state, e2)) @@ -68219,19 +68219,19 @@ ${Object(zn.b)(wi)} const n2 = et.i.has(t2) && this.editor.getOption(63); let i2 = t2.findMatches(this.state.searchText, true, false, this.state.matchCase, this.state.wordSeparators, false).map((e3) => e3.range); i2.sort(ge.a.compareRangesUsingStarts); - let o2 = this.editor.getSelections(); - o2.sort(ge.a.compareRangesUsingStarts); - let r2 = []; - for (let e3 = 0, t3 = 0, n3 = i2.length, s3 = o2.length; e3 < n3; ) { + let r2 = this.editor.getSelections(); + r2.sort(ge.a.compareRangesUsingStarts); + let o2 = []; + for (let e3 = 0, t3 = 0, n3 = i2.length, s3 = r2.length; e3 < n3; ) { const n4 = i2[e3]; if (t3 >= s3) - r2.push(n4), e3++; + o2.push(n4), e3++; else { - const i3 = ge.a.compareRangesUsingStarts(n4, o2[t3]); - i3 < 0 ? (!o2[t3].isEmpty() && ge.a.areIntersecting(n4, o2[t3]) || r2.push(n4), e3++) : (i3 > 0 || e3++, t3++); + const i3 = ge.a.compareRangesUsingStarts(n4, r2[t3]); + i3 < 0 ? (!r2[t3].isEmpty() && ge.a.areIntersecting(n4, r2[t3]) || o2.push(n4), e3++) : (i3 > 0 || e3++, t3++); } } - const s2 = r2.map((e3) => ({range: e3, options: n2 ? ph._SELECTION_HIGHLIGHT : ph._SELECTION_HIGHLIGHT_OVERVIEW})); + const s2 = o2.map((e3) => ({range: e3, options: n2 ? ph._SELECTION_HIGHLIGHT : ph._SELECTION_HIGHLIGHT_OVERVIEW})); this.decorations = this.editor.deltaDecorations(this.decorations, s2); } dispose() { @@ -68240,11 +68240,11 @@ ${Object(zn.b)(wi)} } function mh(e2, t2, n2) { const i2 = gh(e2, t2[0], !n2); - for (let o2 = 1, r2 = t2.length; o2 < r2; o2++) { - const r3 = t2[o2]; - if (r3.isEmpty()) + for (let r2 = 1, o2 = t2.length; r2 < o2; r2++) { + const o3 = t2[r2]; + if (o3.isEmpty()) return false; - if (i2 !== gh(e2, r3, !n2)) + if (i2 !== gh(e2, o3, !n2)) return false; } return true; @@ -68253,7 +68253,7 @@ ${Object(zn.b)(wi)} const i2 = e2.getValueInRange(t2); return n2 ? i2.toLowerCase() : i2; } - ph.ID = "editor.contrib.selectionHighlighter", ph._SELECTION_HIGHLIGHT_OVERVIEW = be.a.register({stickiness: 1, className: "selectionHighlight", overviewRuler: {color: Object(we.h)(ve.Wb), position: fe.d.Center}}), ph._SELECTION_HIGHLIGHT = be.a.register({stickiness: 1, className: "selectionHighlight"}), Object(V.m)(dh.ID, dh), Object(V.m)(ph.ID, ph), Object(V.k)(ih), Object(V.k)(oh), Object(V.k)(rh), Object(V.k)(class extends hh { + ph.ID = "editor.contrib.selectionHighlighter", ph._SELECTION_HIGHLIGHT_OVERVIEW = be.a.register({stickiness: 1, className: "selectionHighlight", overviewRuler: {color: Object(we.h)(ve.Wb), position: fe.d.Center}}), ph._SELECTION_HIGHLIGHT = be.a.register({stickiness: 1, className: "selectionHighlight"}), Object(V.m)(dh.ID, dh), Object(V.m)(ph.ID, ph), Object(V.k)(ih), Object(V.k)(rh), Object(V.k)(oh), Object(V.k)(class extends hh { constructor() { super({id: "editor.action.addSelectionToNextFindMatch", label: U.a("addSelectionToNextFindMatch", "Add Selection To Next Find Match"), alias: "Add Selection To Next Find Match", precondition: void 0, kbOpts: {kbExpr: H.a.focus, primary: 2082, weight: 100}, menuOpts: {menuId: ye.b.MenubarSelectionMenu, group: "3_multi", title: U.a({key: "miAddSelectionToNextFindMatch", comment: ["&& denotes a mnemonic"]}, "Add &&Next Occurrence"), order: 5}}); } @@ -68298,24 +68298,24 @@ ${Object(zn.b)(wi)} }), Object(V.k)(sh), Object(V.k)(ah); n(319); var fh = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -68324,8 +68324,8 @@ ${Object(zn.b)(wi)} }; const bh = {Visible: new K.c("parameterHintsVisible", false), MultipleSignatures: new K.c("parameterHintsMultipleSignatures", false)}; function _h(e2, t2, n2, i2) { - const o2 = et.y.ordered(e2); - return Object(ue.h)(o2.map((o3) => () => Promise.resolve(o3.provideSignatureHelp(e2, t2, i2, n2)).catch((e3) => Object(Z.f)(e3)))); + const r2 = et.y.ordered(e2); + return Object(ue.h)(r2.map((r3) => () => Promise.resolve(r3.provideSignatureHelp(e2, t2, i2, n2)).catch((e3) => Object(Z.f)(e3)))); } Object(V.j)("_executeSignatureHelpProvider", (e2, t2, n2) => fh(void 0, void 0, void 0, function* () { const i2 = yield _h(e2, t2, {triggerKind: et.z.Invoke, isRetrigger: false, triggerCharacter: n2.triggerCharacter}, Xe.a.None); @@ -68333,24 +68333,24 @@ ${Object(zn.b)(wi)} return setTimeout(() => i2.dispose(), 0), i2.value; })); var vh, wh = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -68372,7 +68372,7 @@ ${Object(zn.b)(wi)} }(vh || (vh = {})); class yh extends pe.a { constructor(e2, t2 = yh.DEFAULT_DELAY) { - super(), this._onChangedHints = this._register(new Lt.a()), this.onChangedHints = this._onChangedHints.event, this.triggerOnType = false, this._state = vh.Default, this._pendingTriggers = [], this._lastSignatureHelpResult = this._register(new pe.d()), this.triggerChars = new Dr.b(), this.retriggerChars = new Dr.b(), this.triggerId = 0, this.editor = e2, this.throttledDelayer = new ue.a(t2), this._register(this.editor.onDidChangeConfiguration(() => this.onEditorConfigurationChange())), this._register(this.editor.onDidChangeModel((e3) => this.onModelChanged())), this._register(this.editor.onDidChangeModelLanguage((e3) => this.onModelChanged())), this._register(this.editor.onDidChangeCursorSelection((e3) => this.onCursorChange(e3))), this._register(this.editor.onDidChangeModelContent((e3) => this.onModelContentChange())), this._register(et.y.onDidChange(this.onModelChanged, this)), this._register(this.editor.onDidType((e3) => this.onDidType(e3))), this.onEditorConfigurationChange(), this.onModelChanged(); + super(), this._onChangedHints = this._register(new Lt.a()), this.onChangedHints = this._onChangedHints.event, this.triggerOnType = false, this._state = vh.Default, this._pendingTriggers = [], this._lastSignatureHelpResult = this._register(new pe.d()), this.triggerChars = new Oo.b(), this.retriggerChars = new Oo.b(), this.triggerId = 0, this.editor = e2, this.throttledDelayer = new ue.a(t2), this._register(this.editor.onDidChangeConfiguration(() => this.onEditorConfigurationChange())), this._register(this.editor.onDidChangeModel((e3) => this.onModelChanged())), this._register(this.editor.onDidChangeModelLanguage((e3) => this.onModelChanged())), this._register(this.editor.onDidChangeCursorSelection((e3) => this.onCursorChange(e3))), this._register(this.editor.onDidChangeModelContent((e3) => this.onModelContentChange())), this._register(et.y.onDidChange(this.onModelChanged, this)), this._register(this.editor.onDidType((e3) => this.onDidType(e3))), this.onEditorConfigurationChange(), this.onModelChanged(); } get state() { return this._state; @@ -68412,11 +68412,11 @@ ${Object(zn.b)(wi)} return false; const i2 = this._pendingTriggers.reduce(Ch); this._pendingTriggers = []; - const o2 = {triggerKind: i2.triggerKind, triggerCharacter: i2.triggerCharacter, isRetrigger: t2, activeSignatureHelp: n2}; + const r2 = {triggerKind: i2.triggerKind, triggerCharacter: i2.triggerCharacter, isRetrigger: t2, activeSignatureHelp: n2}; if (!this.editor.hasModel()) return false; - const r2 = this.editor.getModel(), s2 = this.editor.getPosition(); - this.state = new vh.Pending(Object(ue.f)((e3) => _h(r2, s2, o2, e3))); + const o2 = this.editor.getModel(), s2 = this.editor.getPosition(); + this.state = new vh.Pending(Object(ue.f)((e3) => _h(o2, s2, r2, e3))); try { const t3 = yield this.state.request; return e2 !== this.triggerId ? (t3 == null || t3.dispose(), false) : t3 && t3.value.signatures && t3.value.signatures.length !== 0 ? (this.state = new vh.Active(t3.value), this._lastSignatureHelpResult.value = t3, this._onChangedHints.fire(this.state.hints), true) : (t3 == null || t3.dispose(), this._lastSignatureHelpResult.clear(), this.cancel(), false); @@ -68429,7 +68429,7 @@ ${Object(zn.b)(wi)} return this.state.type === 1 || this.state.type === 2 || this.throttledDelayer.isTriggered(); } onModelChanged() { - this.cancel(), this.triggerChars = new Dr.b(), this.retriggerChars = new Dr.b(); + this.cancel(), this.triggerChars = new Oo.b(), this.retriggerChars = new Oo.b(); const e2 = this.editor.getModel(); if (e2) for (const t2 of et.y.ordered(e2)) { @@ -68471,13 +68471,13 @@ ${Object(zn.b)(wi)} } yh.DEFAULT_DELAY = 120; var xh = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Sh = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -68493,14 +68493,14 @@ ${Object(zn.b)(wi)} createParamaterHintDOMNodes() { const e3 = kh(".editor-widget.parameter-hints-widget"), t2 = ft.p(e3, kh(".wrapper")); t2.tabIndex = -1; - const n2 = ft.p(t2, kh(".controls")), i2 = ft.p(n2, kh(".button" + Th.cssSelector)), o2 = ft.p(n2, kh(".overloads")), r2 = ft.p(n2, kh(".button" + Eh.cssSelector)), s2 = Object(Cs.b)(Object(Cs.a)(i2, "click")); + const n2 = ft.p(t2, kh(".controls")), i2 = ft.p(n2, kh(".button" + Th.cssSelector)), r2 = ft.p(n2, kh(".overloads")), o2 = ft.p(n2, kh(".button" + Eh.cssSelector)), s2 = Object(Cs.b)(Object(Cs.a)(i2, "click")); this._register(s2(this.previous, this)); - const a2 = Object(Cs.b)(Object(Cs.a)(r2, "click")); + const a2 = Object(Cs.b)(Object(Cs.a)(o2, "click")); this._register(a2(this.next, this)); const l2 = kh(".body"), c2 = new Bl.a(l2, {}); this._register(c2), t2.appendChild(c2.getDomNode()); const d2 = ft.p(l2, kh(".signature")), h2 = ft.p(l2, kh(".docs")); - e3.style.userSelect = "text", this.domNodes = {element: e3, signature: d2, overloads: o2, docs: h2, scrollbar: c2}, this.editor.addContentWidget(this), this.hide(), this._register(this.editor.onDidChangeCursorSelection((e4) => { + e3.style.userSelect = "text", this.domNodes = {element: e3, signature: d2, overloads: r2, docs: h2, scrollbar: c2}, this.editor.addContentWidget(this), this.hide(), this._register(this.editor.onDidChangeCursorSelection((e4) => { this.visible && this.editor.layoutContentWidget(this); })); const u2 = () => { @@ -68531,13 +68531,13 @@ ${Object(zn.b)(wi)} const i2 = e3.signatures[e3.activeSignature]; if (!i2) return; - const o2 = ft.p(this.domNodes.signature, kh(".code")), r2 = this.editor.getOption(36); - o2.style.fontSize = r2.fontSize + "px", o2.style.fontFamily = r2.fontFamily; + const r2 = ft.p(this.domNodes.signature, kh(".code")), o2 = this.editor.getOption(36); + r2.style.fontSize = o2.fontSize + "px", r2.style.fontFamily = o2.fontFamily; const s2 = i2.parameters.length > 0, a2 = (t2 = i2.activeParameter) !== null && t2 !== void 0 ? t2 : e3.activeParameter; if (s2) - this.renderParameters(o2, i2, a2); + this.renderParameters(r2, i2, a2); else { - ft.p(o2, kh("span")).textContent = i2.label; + ft.p(r2, kh("span")).textContent = i2.label; } const l2 = i2.parameters[a2]; if (l2 == null ? void 0 : l2.documentation) { @@ -68566,15 +68566,15 @@ ${Object(zn.b)(wi)} this.editor.layoutContentWidget(this), this.domNodes.scrollbar.scanDomNode(); } hasDocs(e3, t2) { - return !!(t2 && typeof t2.documentation == "string" && Object(Jo.a)(t2.documentation).length > 0) || (!!(t2 && typeof t2.documentation == "object" && Object(Jo.a)(t2.documentation).value.length > 0) || (!!(e3.documentation && typeof e3.documentation == "string" && Object(Jo.a)(e3.documentation).length > 0) || !!(e3.documentation && typeof e3.documentation == "object" && Object(Jo.a)(e3.documentation.value).length > 0))); + return !!(t2 && typeof t2.documentation == "string" && Object(Qr.a)(t2.documentation).length > 0) || (!!(t2 && typeof t2.documentation == "object" && Object(Qr.a)(t2.documentation).value.length > 0) || (!!(e3.documentation && typeof e3.documentation == "string" && Object(Qr.a)(e3.documentation).length > 0) || !!(e3.documentation && typeof e3.documentation == "object" && Object(Qr.a)(e3.documentation.value).length > 0))); } renderParameters(e3, t2, n2) { - const [i2, o2] = this.getParameterLabelOffsets(t2, n2), r2 = document.createElement("span"); - r2.textContent = t2.label.substring(0, i2); + const [i2, r2] = this.getParameterLabelOffsets(t2, n2), o2 = document.createElement("span"); + o2.textContent = t2.label.substring(0, i2); const s2 = document.createElement("span"); - s2.textContent = t2.label.substring(i2, o2), s2.className = "parameter active"; + s2.textContent = t2.label.substring(i2, r2), s2.className = "parameter active"; const a2 = document.createElement("span"); - a2.textContent = t2.label.substring(o2), ft.p(e3, r2, s2, a2); + a2.textContent = t2.label.substring(r2), ft.p(e3, o2, s2, a2); } getParameterLabel(e3, t2) { const n2 = e3.parameters[t2]; @@ -68627,27 +68627,27 @@ ${Object(zn.b)(wi)} } const i2 = e2.getColor(ve.E); i2 && t2.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${i2}; }`); - const o2 = e2.getColor(ve.rc); - o2 && t2.addRule(`.monaco-editor .parameter-hints-widget a { color: ${o2}; }`); - const r2 = e2.getColor(ve.G); - r2 && t2.addRule(`.monaco-editor .parameter-hints-widget { color: ${r2}; }`); + const r2 = e2.getColor(ve.rc); + r2 && t2.addRule(`.monaco-editor .parameter-hints-widget a { color: ${r2}; }`); + const o2 = e2.getColor(ve.G); + o2 && t2.addRule(`.monaco-editor .parameter-hints-widget { color: ${o2}; }`); const s2 = e2.getColor(ve.qc); s2 && t2.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${s2}; }`); }); var Nh = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ih = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; - let Oh = class e2 extends pe.a { + let Dh = class e2 extends pe.a { constructor(e3, t2) { super(), this.editor = e3, this.widget = this._register(t2.createInstance(Lh, this.editor)); } @@ -68667,51 +68667,51 @@ ${Object(zn.b)(wi)} this.widget.trigger(e3); } }; - Oh.ID = "editor.controller.parameterHints", Oh = Nh([Ih(1, gt.a)], Oh); - class Dh extends V.b { + Dh.ID = "editor.controller.parameterHints", Dh = Nh([Ih(1, gt.a)], Dh); + class Oh extends V.b { constructor() { super({id: "editor.action.triggerParameterHints", label: U.a("parameterHints.trigger.label", "Trigger Parameter Hints"), alias: "Trigger Parameter Hints", precondition: H.a.hasSignatureHelpProvider, kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3082, weight: 100}}); } run(e2, t2) { - const n2 = Oh.get(t2); + const n2 = Dh.get(t2); n2 && n2.trigger({triggerKind: et.z.Invoke}); } } - Object(V.m)(Oh.ID, Oh), Object(V.k)(Dh); - const Ah = V.c.bindToContribution(Oh.get); + Object(V.m)(Dh.ID, Dh), Object(V.k)(Oh); + const Ah = V.c.bindToContribution(Dh.get); Object(V.l)(new Ah({id: "closeParameterHints", precondition: bh.Visible, handler: (e2) => e2.cancel(), kbOpts: {weight: 175, kbExpr: H.a.focus, primary: 9, secondary: [1033]}})), Object(V.l)(new Ah({id: "showPrevParameterHint", precondition: K.a.and(bh.Visible, bh.MultipleSignatures), handler: (e2) => e2.previous(), kbOpts: {weight: 175, kbExpr: H.a.focus, primary: 16, secondary: [528], mac: {primary: 16, secondary: [528, 302]}}})), Object(V.l)(new Ah({id: "showNextParameterHint", precondition: K.a.and(bh.Visible, bh.MultipleSignatures), handler: (e2) => e2.next(), kbOpts: {weight: 175, kbExpr: H.a.focus, primary: 18, secondary: [530], mac: {primary: 18, secondary: [530, 300]}}})); n(321); var Rh = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Mh = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Ph = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -68739,8 +68739,8 @@ ${Object(zn.b)(wi)} })); const n2 = new ue.a(this._debounceDuration), i2 = () => { this._rangeUpdateTriggerPromise = n2.trigger(() => this.updateRanges(), this._debounceDuration); - }, o2 = new ue.a(0), r2 = (e4) => { - this._rangeSyncTriggerPromise = o2.trigger(() => this._syncRanges(e4)); + }, r2 = new ue.a(0), o2 = (e4) => { + this._rangeSyncTriggerPromise = r2.trigger(() => this._syncRanges(e4)); }; this._localToDispose.add(this._editor.onDidChangeCursorPosition(() => { i2(); @@ -68748,11 +68748,11 @@ ${Object(zn.b)(wi)} if (!this._ignoreChangeEvent && this._currentDecorations.length > 0) { const n3 = e3.getDecorationRange(this._currentDecorations[0]); if (n3 && t3.changes.every((e4) => n3.intersectRanges(e4.range))) - return void r2(this._currentDecorations); + return void o2(this._currentDecorations); } i2(); })), this._localToDispose.add({dispose: () => { - n2.cancel(), o2.cancel(); + n2.cancel(), r2.cancel(); }}), this.updateRanges(); } _syncRanges(e3) { @@ -68767,25 +68767,25 @@ ${Object(zn.b)(wi)} if ((e4 ? e4[0].length : 0) !== i2.length) return this.clearRanges(); } - let o2 = []; - for (let n3 = 1, r2 = e3.length; n3 < r2; n3++) { - const r3 = t2.getDecorationRange(e3[n3]); - if (r3) - if (r3.startLineNumber !== r3.endLineNumber) - o2.push({range: r3, text: i2}); + let r2 = []; + for (let n3 = 1, o2 = e3.length; n3 < o2; n3++) { + const o3 = t2.getDecorationRange(e3[n3]); + if (o3) + if (o3.startLineNumber !== o3.endLineNumber) + r2.push({range: o3, text: i2}); else { - let e4 = t2.getValueInRange(r3), n4 = i2, s2 = r3.startColumn, a2 = r3.endColumn; + let e4 = t2.getValueInRange(o3), n4 = i2, s2 = o3.startColumn, a2 = o3.endColumn; const l2 = Ye.d(e4, n4); s2 += l2, e4 = e4.substr(l2), n4 = n4.substr(l2); const c2 = Ye.e(e4, n4); - a2 -= c2, e4 = e4.substr(0, e4.length - c2), n4 = n4.substr(0, n4.length - c2), s2 === a2 && n4.length === 0 || o2.push({range: new ge.a(r3.startLineNumber, s2, r3.endLineNumber, a2), text: n4}); + a2 -= c2, e4 = e4.substr(0, e4.length - c2), n4 = n4.substr(0, n4.length - c2), s2 === a2 && n4.length === 0 || r2.push({range: new ge.a(o3.startLineNumber, s2, o3.endLineNumber, a2), text: n4}); } } - if (o2.length !== 0) + if (r2.length !== 0) try { this._ignoreChangeEvent = true; const e4 = this._editor._getViewModel().getPrevEditOperationType(); - this._editor.executeEdits("onTypeRename", o2), this._editor._getViewModel().setPrevEditOperationType(e4); + this._editor.executeEdits("onTypeRename", r2), this._editor._getViewModel().setPrevEditOperationType(e4); } finally { this._ignoreChangeEvent = false; } @@ -68803,8 +68803,8 @@ ${Object(zn.b)(wi)} const n2 = this._editor.getPosition(); if (!this._enabled && !t2 || this._editor.getSelections().length > 1) return void this.clearRanges(); - const i2 = this._editor.getModel(), o2 = i2.getVersionId(); - if (this._currentRequestPosition && this._currentRequestModelVersion === o2) { + const i2 = this._editor.getModel(), r2 = i2.getVersionId(); + if (this._currentRequestPosition && this._currentRequestModelVersion === r2) { if (n2.equals(this._currentRequestPosition)) return; if (this._currentDecorations && this._currentDecorations.length > 0) { @@ -68813,13 +68813,13 @@ ${Object(zn.b)(wi)} return; } } - this._currentRequestPosition = n2, this._currentRequestModelVersion = o2; - const r2 = Object(ue.f)((t3) => Ph(this, void 0, void 0, function* () { + this._currentRequestPosition = n2, this._currentRequestModelVersion = r2; + const o2 = Object(ue.f)((t3) => Ph(this, void 0, void 0, function* () { try { const s2 = yield jh(i2, n2, t3); - if (r2 !== this._currentRequest) + if (o2 !== this._currentRequest) return; - if (this._currentRequest = null, o2 !== i2.getVersionId()) + if (this._currentRequest = null, r2 !== i2.getVersionId()) return; let a2 = []; (s2 == null ? void 0 : s2.ranges) && (a2 = s2.ranges), this._currentWordPattern = (s2 == null ? void 0 : s2.wordPattern) || this._languageWordPattern; @@ -68837,10 +68837,10 @@ ${Object(zn.b)(wi)} const c2 = a2.map((t4) => ({range: t4, options: e2.DECORATION})); this._visibleContextKey.set(true), this._currentDecorations = this._editor.deltaDecorations(this._currentDecorations, c2); } catch (e3) { - Object(Z.d)(e3) || Object(Z.e)(e3), this._currentRequest !== r2 && this._currentRequest || this.clearRanges(); + Object(Z.d)(e3) || Object(Z.e)(e3), this._currentRequest !== o2 && this._currentRequest || this.clearRanges(); } })); - return this._currentRequest = r2, r2; + return this._currentRequest = o2, o2; }); } }; @@ -68850,9 +68850,9 @@ ${Object(zn.b)(wi)} super({id: "editor.action.onTypeRename", label: U.a("onTypeRename.label", "On Type Rename Symbol"), alias: "On Type Rename Symbol", precondition: K.a.and(H.a.writable, H.a.hasRenameProvider), kbOpts: {kbExpr: H.a.editorTextFocus, primary: 3132, weight: 100}}); } runCommand(e2, t2) { - const n2 = e2.get(Me.a), [i2, o2] = Array.isArray(t2) && t2 || [void 0, void 0]; - return Qe.a.isUri(i2) && me.a.isIPosition(o2) ? n2.openCodeEditor({resource: i2}, n2.getActiveCodeEditor()).then((e3) => { - e3 && (e3.setPosition(o2), e3.invokeWithinContext((t3) => (this.reportTelemetry(t3, e3), this.run(t3, e3)))); + const n2 = e2.get(Me.a), [i2, r2] = Array.isArray(t2) && t2 || [void 0, void 0]; + return Qe.a.isUri(i2) && me.a.isIPosition(r2) ? n2.openCodeEditor({resource: i2}, n2.getActiveCodeEditor()).then((e3) => { + e3 && (e3.setPosition(r2), e3.invokeWithinContext((t3) => (this.reportTelemetry(t3, e3), this.run(t3, e3)))); }, Z.e) : super.runCommand(e2, t2); } run(e2, t2) { @@ -68878,13 +68878,13 @@ ${Object(zn.b)(wi)} }), Object(V.p)("_executeRenameOnTypeProvider", (e2, t2) => jh(e2, t2, Xe.a.None)), Object(V.m)(Wh.ID, Wh), Object(V.k)(zh); n(323); var Uh = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Hh = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -68892,8 +68892,8 @@ ${Object(zn.b)(wi)} }; const qh = new K.c("renameInputVisible", false); let $h = class { - constructor(e2, t2, n2, i2, o2) { - this._editor = e2, this._acceptKeybindings = t2, this._themeService = n2, this._keybindingService = i2, this._disposables = new pe.b(), this.allowEditorOverflow = true, this._visibleContextKey = qh.bindTo(o2), this._editor.addContentWidget(this), this._disposables.add(this._editor.onDidChangeConfiguration((e3) => { + constructor(e2, t2, n2, i2, r2) { + this._editor = e2, this._acceptKeybindings = t2, this._themeService = n2, this._keybindingService = i2, this._disposables = new pe.b(), this.allowEditorOverflow = true, this._visibleContextKey = qh.bindTo(r2), this._editor.addContentWidget(this), this._disposables.add(this._editor.onDidChangeConfiguration((e3) => { e3.hasChanged(36) && this._updateFont(); })), this._disposables.add(n2.onDidColorThemeChange(this._updateStyles, this)); } @@ -68916,13 +68916,13 @@ ${Object(zn.b)(wi)} return this._domNode; } _updateStyles(e2) { - var t2, n2, i2, o2; + var t2, n2, i2, r2; if (!this._input || !this._domNode) return; - const r2 = e2.getColor(ve.uc); - this._domNode.style.backgroundColor = String((t2 = e2.getColor(ve.U)) !== null && t2 !== void 0 ? t2 : ""), this._domNode.style.boxShadow = r2 ? " 0 2px 8px " + r2 : "", this._domNode.style.color = String((n2 = e2.getColor(ve.hb)) !== null && n2 !== void 0 ? n2 : ""), this._input.style.backgroundColor = String((i2 = e2.getColor(ve.fb)) !== null && i2 !== void 0 ? i2 : ""); + const o2 = e2.getColor(ve.uc); + this._domNode.style.backgroundColor = String((t2 = e2.getColor(ve.U)) !== null && t2 !== void 0 ? t2 : ""), this._domNode.style.boxShadow = o2 ? " 0 2px 8px " + o2 : "", this._domNode.style.color = String((n2 = e2.getColor(ve.hb)) !== null && n2 !== void 0 ? n2 : ""), this._input.style.backgroundColor = String((i2 = e2.getColor(ve.fb)) !== null && i2 !== void 0 ? i2 : ""); const s2 = e2.getColor(ve.gb); - this._input.style.borderWidth = s2 ? "1px" : "0px", this._input.style.borderStyle = s2 ? "solid" : "none", this._input.style.borderColor = (o2 = s2 == null ? void 0 : s2.toString()) !== null && o2 !== void 0 ? o2 : "none"; + this._input.style.borderWidth = s2 ? "1px" : "0px", this._input.style.borderStyle = s2 ? "solid" : "none", this._input.style.borderColor = (r2 = s2 == null ? void 0 : s2.toString()) !== null && r2 !== void 0 ? r2 : "none"; } _updateFont() { if (!this._input || !this._label) @@ -68939,13 +68939,13 @@ ${Object(zn.b)(wi)} cancelInput(e2) { this._currentCancelInput && this._currentCancelInput(e2); } - getInput(e2, t2, n2, i2, o2, r2) { - this._domNode.classList.toggle("preview", o2), this._position = new me.a(e2.startLineNumber, e2.startColumn), this._input.value = t2, this._input.setAttribute("selectionStart", n2.toString()), this._input.setAttribute("selectionEnd", i2.toString()), this._input.size = Math.max(1.1 * (e2.endColumn - e2.startColumn), 20); + getInput(e2, t2, n2, i2, r2, o2) { + this._domNode.classList.toggle("preview", r2), this._position = new me.a(e2.startLineNumber, e2.startColumn), this._input.value = t2, this._input.setAttribute("selectionStart", n2.toString()), this._input.setAttribute("selectionEnd", i2.toString()), this._input.size = Math.max(1.1 * (e2.endColumn - e2.startColumn), 20); const s2 = new pe.b(); return new Promise((e3) => { this._currentCancelInput = (t3) => (this._currentAcceptInput = void 0, this._currentCancelInput = void 0, e3(t3), true), this._currentAcceptInput = (n3) => { - this._input.value.trim().length !== 0 && this._input.value !== t2 ? (this._currentAcceptInput = void 0, this._currentCancelInput = void 0, e3({newName: this._input.value, wantsPreview: o2 && n3})) : this.cancelInput(true); - }, r2.onCancellationRequested(() => this.cancelInput(true)), s2.add(this._editor.onDidBlurEditorWidget(() => this.cancelInput(false))), this._show(); + this._input.value.trim().length !== 0 && this._input.value !== t2 ? (this._currentAcceptInput = void 0, this._currentCancelInput = void 0, e3({newName: this._input.value, wantsPreview: r2 && n3})) : this.cancelInput(true); + }, o2.onCancellationRequested(() => this.cancelInput(true)), s2.add(this._editor.onDidBlurEditorWidget(() => this.cancelInput(false))), this._show(); }).finally(() => { s2.dispose(), this._hide(); }); @@ -68961,36 +68961,36 @@ ${Object(zn.b)(wi)} }; $h = Uh([Hh(2, we.c), Hh(3, vt.a), Hh(4, K.b)], $h); var Kh = n(102), Gh = n(56), Yh = n(128), Zh = n(152), Xh = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Qh = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Jh = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -69029,17 +69029,17 @@ ${Object(zn.b)(wi)} } _provideRenameEdits(e2, t2, n2, i2) { return Jh(this, void 0, void 0, function* () { - const o2 = this._providers[t2]; - if (!o2) + const r2 = this._providers[t2]; + if (!r2) return {edits: [], rejectReason: n2.join("\n")}; - const r2 = yield o2.provideRenameEdits(this.model, this.position, e2, i2); - return r2 ? r2.rejectReason ? this._provideRenameEdits(e2, t2 + 1, n2.concat(r2.rejectReason), i2) : r2 : this._provideRenameEdits(e2, t2 + 1, n2.concat(U.a("no result", "No result.")), i2); + const o2 = yield r2.provideRenameEdits(this.model, this.position, e2, i2); + return o2 ? o2.rejectReason ? this._provideRenameEdits(e2, t2 + 1, n2.concat(o2.rejectReason), i2) : o2 : this._provideRenameEdits(e2, t2 + 1, n2.concat(U.a("no result", "No result.")), i2); }); } } let tu = class e2 { - constructor(e3, t2, n2, i2, o2, r2, s2) { - this.editor = e3, this._instaService = t2, this._notificationService = n2, this._bulkEditService = i2, this._progressService = o2, this._logService = r2, this._configService = s2, this._dispoableStore = new pe.b(), this._cts = new Xe.b(), this._renameInputField = this._dispoableStore.add(new ue.b(() => this._dispoableStore.add(this._instaService.createInstance($h, this.editor, ["acceptRenameInput", "acceptRenameInputWithPreview"])))); + constructor(e3, t2, n2, i2, r2, o2, s2) { + this.editor = e3, this._instaService = t2, this._notificationService = n2, this._bulkEditService = i2, this._progressService = r2, this._logService = o2, this._configService = s2, this._dispoableStore = new pe.b(), this._cts = new Xe.b(), this._renameInputField = this._dispoableStore.add(new ue.b(() => this._dispoableStore.add(this._instaService.createInstance($h, this.editor, ["acceptRenameInput", "acceptRenameInputWithPreview"])))); } static get(t2) { return t2.getContribution(e2.ID); @@ -69069,9 +69069,9 @@ ${Object(zn.b)(wi)} if (this._cts.token.isCancellationRequested) return; this._cts.dispose(), this._cts = new Je.b(this.editor, 5, n2.range); - let i2 = this.editor.getSelection(), o2 = 0, r2 = n2.text.length; - ge.a.isEmpty(i2) || ge.a.spansMultipleLines(i2) || !ge.a.containsRange(n2.range, i2) || (o2 = Math.max(0, i2.startColumn - n2.range.startColumn), r2 = Math.min(n2.range.endColumn, i2.endColumn) - n2.range.startColumn); - const s2 = this._bulkEditService.hasPreviewHandler() && this._configService.getValue(this.editor.getModel().uri, "editor.rename.enablePreview"), a2 = yield this._renameInputField.value.getInput(n2.range, n2.text, o2, r2, s2, this._cts.token); + let i2 = this.editor.getSelection(), r2 = 0, o2 = n2.text.length; + ge.a.isEmpty(i2) || ge.a.spansMultipleLines(i2) || !ge.a.containsRange(n2.range, i2) || (r2 = Math.max(0, i2.startColumn - n2.range.startColumn), o2 = Math.min(n2.range.endColumn, i2.endColumn) - n2.range.startColumn); + const s2 = this._bulkEditService.hasPreviewHandler() && this._configService.getValue(this.editor.getModel().uri, "editor.rename.enablePreview"), a2 = yield this._renameInputField.value.getInput(n2.range, n2.text, r2, o2, s2, this._cts.token); if (typeof a2 == "boolean") return void (a2 && this.editor.focus()); this.editor.focus(); @@ -69094,15 +69094,15 @@ ${Object(zn.b)(wi)} this._renameInputField.value.cancelInput(true); } }; - tu.ID = "editor.contrib.renameController", tu = Xh([Qh(1, gt.a), Qh(2, zt.a), Qh(3, Ze.a), Qh(4, rt.a), Qh(5, Kh.b), Qh(6, Zh.a)], tu); + tu.ID = "editor.contrib.renameController", tu = Xh([Qh(1, gt.a), Qh(2, zt.a), Qh(3, Ze.a), Qh(4, ot.a), Qh(5, Kh.b), Qh(6, Zh.a)], tu); class nu extends V.b { constructor() { super({id: "editor.action.rename", label: U.a("rename.label", "Rename Symbol"), alias: "Rename Symbol", precondition: K.a.and(H.a.writable, H.a.hasRenameProvider), kbOpts: {kbExpr: H.a.editorTextFocus, primary: 60, weight: 100}, contextMenuOpts: {group: "1_modification", order: 1.1}}); } runCommand(e2, t2) { - const n2 = e2.get(Me.a), [i2, o2] = Array.isArray(t2) && t2 || [void 0, void 0]; - return Qe.a.isUri(i2) && me.a.isIPosition(o2) ? n2.openCodeEditor({resource: i2}, n2.getActiveCodeEditor()).then((e3) => { - e3 && (e3.setPosition(o2), e3.invokeWithinContext((t3) => (this.reportTelemetry(t3, e3), this.run(t3, e3)))); + const n2 = e2.get(Me.a), [i2, r2] = Array.isArray(t2) && t2 || [void 0, void 0]; + return Qe.a.isUri(i2) && me.a.isIPosition(r2) ? n2.openCodeEditor({resource: i2}, n2.getActiveCodeEditor()).then((e3) => { + e3 && (e3.setPosition(r2), e3.invokeWithinContext((t3) => (this.reportTelemetry(t3, e3), this.run(t3, e3)))); }, Z.e) : super.runCommand(e2, t2); } run(e2, t2) { @@ -69114,55 +69114,55 @@ ${Object(zn.b)(wi)} const iu = V.c.bindToContribution(tu.get); Object(V.l)(new iu({id: "acceptRenameInput", precondition: qh, handler: (e2) => e2.acceptRenameInput(false), kbOpts: {weight: 199, kbExpr: H.a.focus, primary: 3}})), Object(V.l)(new iu({id: "acceptRenameInputWithPreview", precondition: K.a.and(qh, K.a.has("config.editor.rename.enablePreview")), handler: (e2) => e2.acceptRenameInput(true), kbOpts: {weight: 199, kbExpr: H.a.focus, primary: 1027}})), Object(V.l)(new iu({id: "cancelRenameInput", precondition: qh, handler: (e2) => e2.cancelRenameInput(), kbOpts: {weight: 199, kbExpr: H.a.focus, primary: 9, secondary: [1033]}})), Object(V.p)("_executeDocumentRenameProvider", function(e2, t2, ...n2) { const [i2] = n2; - return Object(Jo.b)(typeof i2 == "string"), function(e3, t3, n3) { + return Object(Qr.b)(typeof i2 == "string"), function(e3, t3, n3) { return Jh(this, void 0, void 0, function* () { - const i3 = new eu(e3, t3), o2 = yield i3.resolveRenameLocation(Xe.a.None); - return (o2 == null ? void 0 : o2.rejectReason) ? {edits: [], rejectReason: o2.rejectReason} : i3.provideRenameEdits(n3, Xe.a.None); + const i3 = new eu(e3, t3), r2 = yield i3.resolveRenameLocation(Xe.a.None); + return (r2 == null ? void 0 : r2.rejectReason) ? {edits: [], rejectReason: r2.rejectReason} : i3.provideRenameEdits(n3, Xe.a.None); }); }(e2, t2, i2); }), Gh.a.as(Yh.a.Configuration).registerConfiguration({id: "editor", properties: {"editor.rename.enablePreview": {scope: 5, description: U.a("enablePreview", "Enable/disable the ability to preview changes before renaming"), default: true, type: "boolean"}}}); - var ou = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var ru = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - class ru { + class ou { provideSelectionRanges(e2, t2) { - return ou(this, void 0, void 0, function* () { + return ru(this, void 0, void 0, function* () { const n2 = []; for (const i2 of t2) { const t3 = []; n2.push(t3); - const o2 = new Map(); - yield new Promise((t4) => ru._bracketsRightYield(t4, 0, e2, i2, o2)), yield new Promise((n3) => ru._bracketsLeftYield(n3, 0, e2, i2, o2, t3)); + const r2 = new Map(); + yield new Promise((t4) => ou._bracketsRightYield(t4, 0, e2, i2, r2)), yield new Promise((n3) => ou._bracketsLeftYield(n3, 0, e2, i2, r2, t3)); } return n2; }); } - static _bracketsRightYield(e2, t2, n2, i2, o2) { - const r2 = new Map(), s2 = Date.now(); + static _bracketsRightYield(e2, t2, n2, i2, r2) { + const o2 = new Map(), s2 = Date.now(); for (; ; ) { - if (t2 >= ru._maxRounds) { + if (t2 >= ou._maxRounds) { e2(); break; } @@ -69175,28 +69175,28 @@ ${Object(zn.b)(wi)} e2(); break; } - if (Date.now() - s2 > ru._maxDuration) { - setTimeout(() => ru._bracketsRightYield(e2, t2 + 1, n2, i2, o2)); + if (Date.now() - s2 > ou._maxDuration) { + setTimeout(() => ou._bracketsRightYield(e2, t2 + 1, n2, i2, r2)); break; } const l2 = a2.close[0]; if (a2.isOpen) { - let e3 = r2.has(l2) ? r2.get(l2) : 0; - r2.set(l2, e3 + 1); + let e3 = o2.has(l2) ? o2.get(l2) : 0; + o2.set(l2, e3 + 1); } else { - let e3 = r2.has(l2) ? r2.get(l2) : 0; - if (e3 -= 1, r2.set(l2, Math.max(0, e3)), e3 < 0) { - let e4 = o2.get(l2); - e4 || (e4 = new Fr.a(), o2.set(l2, e4)), e4.push(a2.range); + let e3 = o2.has(l2) ? o2.get(l2) : 0; + if (e3 -= 1, o2.set(l2, Math.max(0, e3)), e3 < 0) { + let e4 = r2.get(l2); + e4 || (e4 = new Fo.a(), r2.set(l2, e4)), e4.push(a2.range); } } i2 = a2.range.getEndPosition(); } } - static _bracketsLeftYield(e2, t2, n2, i2, o2, r2) { + static _bracketsLeftYield(e2, t2, n2, i2, r2, o2) { const s2 = new Map(), a2 = Date.now(); for (; ; ) { - if (t2 >= ru._maxRounds && o2.size === 0) { + if (t2 >= ou._maxRounds && r2.size === 0) { e2(); break; } @@ -69209,20 +69209,20 @@ ${Object(zn.b)(wi)} e2(); break; } - if (Date.now() - a2 > ru._maxDuration) { - setTimeout(() => ru._bracketsLeftYield(e2, t2 + 1, n2, i2, o2, r2)); + if (Date.now() - a2 > ou._maxDuration) { + setTimeout(() => ou._bracketsLeftYield(e2, t2 + 1, n2, i2, r2, o2)); break; } const c2 = l2.close[0]; if (l2.isOpen) { let e3 = s2.has(c2) ? s2.get(c2) : 0; if (e3 -= 1, s2.set(c2, Math.max(0, e3)), e3 < 0) { - let e4 = o2.get(c2); + let e4 = r2.get(c2); if (e4) { let t3 = e4.shift(); - e4.size === 0 && o2.delete(c2); + e4.size === 0 && r2.delete(c2); const i3 = ge.a.fromPositions(l2.range.getEndPosition(), t3.getStartPosition()), s3 = ge.a.fromPositions(l2.range.getStartPosition(), t3.getEndPosition()); - r2.push({range: i3}), r2.push({range: s3}), ru._addBracketLeading(n2, s3, r2); + o2.push({range: i3}), o2.push({range: s3}), ou._addBracketLeading(n2, s3, o2); } } } else { @@ -69235,35 +69235,35 @@ ${Object(zn.b)(wi)} static _addBracketLeading(e2, t2, n2) { if (t2.startLineNumber === t2.endLineNumber) return; - const i2 = t2.startLineNumber, o2 = e2.getLineFirstNonWhitespaceColumn(i2); - o2 !== 0 && o2 !== t2.startColumn && (n2.push({range: ge.a.fromPositions(new me.a(i2, o2), t2.getEndPosition())}), n2.push({range: ge.a.fromPositions(new me.a(i2, 1), t2.getEndPosition())})); - const r2 = i2 - 1; - if (r2 > 0) { - const i3 = e2.getLineFirstNonWhitespaceColumn(r2); - i3 === t2.startColumn && i3 !== e2.getLineLastNonWhitespaceColumn(r2) && (n2.push({range: ge.a.fromPositions(new me.a(r2, i3), t2.getEndPosition())}), n2.push({range: ge.a.fromPositions(new me.a(r2, 1), t2.getEndPosition())})); + const i2 = t2.startLineNumber, r2 = e2.getLineFirstNonWhitespaceColumn(i2); + r2 !== 0 && r2 !== t2.startColumn && (n2.push({range: ge.a.fromPositions(new me.a(i2, r2), t2.getEndPosition())}), n2.push({range: ge.a.fromPositions(new me.a(i2, 1), t2.getEndPosition())})); + const o2 = i2 - 1; + if (o2 > 0) { + const i3 = e2.getLineFirstNonWhitespaceColumn(o2); + i3 === t2.startColumn && i3 !== e2.getLineLastNonWhitespaceColumn(o2) && (n2.push({range: ge.a.fromPositions(new me.a(o2, i3), t2.getEndPosition())}), n2.push({range: ge.a.fromPositions(new me.a(o2, 1), t2.getEndPosition())})); } } } - ru._maxDuration = 30, ru._maxRounds = 2; + ou._maxDuration = 30, ou._maxRounds = 2; var su = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -69336,36 +69336,36 @@ ${Object(zn.b)(wi)} Ft.a.registerCommandAlias("editor.action.smartSelect.grow", "editor.action.smartSelect.expand"); function du(e2, t2, n2) { const i2 = et.x.all(e2); - i2.length === 1 && i2.unshift(new ru()); - let o2 = [], r2 = []; + i2.length === 1 && i2.unshift(new ou()); + let r2 = [], o2 = []; for (const s2 of i2) - o2.push(Promise.resolve(s2.provideSelectionRanges(e2, t2, n2)).then((e3) => { + r2.push(Promise.resolve(s2.provideSelectionRanges(e2, t2, n2)).then((e3) => { if (G.o(e3) && e3.length === t2.length) for (let n3 = 0; n3 < t2.length; n3++) { - r2[n3] || (r2[n3] = []); + o2[n3] || (o2[n3] = []); for (const i3 of e3[n3]) - ge.a.isIRange(i3.range) && ge.a.containsPosition(i3.range, t2[n3]) && r2[n3].push(ge.a.lift(i3.range)); + ge.a.isIRange(i3.range) && ge.a.containsPosition(i3.range, t2[n3]) && o2[n3].push(ge.a.lift(i3.range)); } }, Z.f)); - return Promise.all(o2).then(() => r2.map((t3) => { + return Promise.all(r2).then(() => o2.map((t3) => { if (t3.length === 0) return []; t3.sort((e3, t4) => me.a.isBefore(e3.getStartPosition(), t4.getStartPosition()) ? 1 : me.a.isBefore(t4.getStartPosition(), e3.getStartPosition()) || me.a.isBefore(e3.getEndPosition(), t4.getEndPosition()) ? -1 : me.a.isBefore(t4.getEndPosition(), e3.getEndPosition()) ? 1 : 0); let n3, i3 = []; for (const e3 of t3) (!n3 || ge.a.containsRange(e3, n3) && !ge.a.equalsRange(e3, n3)) && (i3.push(e3), n3 = e3); - let o3 = [i3[0]]; + let r3 = [i3[0]]; for (let t4 = 1; t4 < i3.length; t4++) { - const n4 = i3[t4 - 1], r3 = i3[t4]; - if (r3.startLineNumber !== n4.startLineNumber || r3.endLineNumber !== n4.endLineNumber) { + const n4 = i3[t4 - 1], o3 = i3[t4]; + if (o3.startLineNumber !== n4.startLineNumber || o3.endLineNumber !== n4.endLineNumber) { const t5 = new ge.a(n4.startLineNumber, e2.getLineFirstNonWhitespaceColumn(n4.startLineNumber), n4.endLineNumber, e2.getLineLastNonWhitespaceColumn(n4.endLineNumber)); - t5.containsRange(n4) && !t5.equalsRange(n4) && r3.containsRange(t5) && !r3.equalsRange(t5) && o3.push(t5); + t5.containsRange(n4) && !t5.equalsRange(n4) && o3.containsRange(t5) && !o3.equalsRange(t5) && r3.push(t5); const i4 = new ge.a(n4.startLineNumber, 1, n4.endLineNumber, e2.getLineMaxColumn(n4.endLineNumber)); - i4.containsRange(n4) && !i4.equalsRange(t5) && r3.containsRange(i4) && !r3.equalsRange(i4) && o3.push(i4); + i4.containsRange(n4) && !i4.equalsRange(t5) && o3.containsRange(i4) && !o3.equalsRange(i4) && r3.push(i4); } - o3.push(r3); + r3.push(o3); } - return o3; + return r3; })); } Object(V.m)(lu.ID, lu), Object(V.k)(class extends cu { @@ -69389,24 +69389,24 @@ ${Object(zn.b)(wi)} const i2 = t2.getWordAtPosition(n2); if (!i2) return; - let {word: o2, startColumn: r2} = i2, s2 = n2.column - r2, a2 = s2, l2 = s2, c2 = 0; + let {word: r2, startColumn: o2} = i2, s2 = n2.column - o2, a2 = s2, l2 = s2, c2 = 0; for (; a2 >= 0; a2--) { - let e3 = o2.charCodeAt(a2); + let e3 = r2.charCodeAt(a2); if (a2 !== s2 && (e3 === 95 || e3 === 45)) break; if (Object(Ye.H)(e3) && Object(Ye.I)(c2)) break; c2 = e3; } - for (a2 += 1; l2 < o2.length; l2++) { - let e3 = o2.charCodeAt(l2); + for (a2 += 1; l2 < r2.length; l2++) { + let e3 = r2.charCodeAt(l2); if (Object(Ye.I)(e3) && Object(Ye.H)(c2)) break; if (e3 === 95 || e3 === 45) break; c2 = e3; } - a2 < l2 && e2.push({range: new ge.a(n2.lineNumber, r2 + a2, n2.lineNumber, r2 + l2)}); + a2 < l2 && e2.push({range: new ge.a(n2.lineNumber, o2 + a2, n2.lineNumber, o2 + l2)}); } _addWordRanges(e2, t2, n2) { const i2 = t2.getWordAtPosition(n2); @@ -69471,8 +69471,8 @@ ${Object(zn.b)(wi)} return e2 instanceof pu && this._children[this._children.length - 1] instanceof pu ? this._children[this._children.length - 1].value += e2.value : (e2.parent = this, this._children.push(e2)), this; } replace(e2, t2) { - const {parent: n2} = e2, i2 = n2.children.indexOf(e2), o2 = n2.children.slice(0); - o2.splice(i2, 1, ...t2), n2._children = o2, function e3(t3, n3) { + const {parent: n2} = e2, i2 = n2.children.indexOf(e2), r2 = n2.children.slice(0); + r2.splice(i2, 1, ...t2), n2._children = r2, function e3(t3, n3) { for (const i3 of t3) i3.parent = n3, e3(i3.children, i3); }(t2, n2); @@ -69677,11 +69677,11 @@ ${Object(zn.b)(wi)} const i2 = new yu(); for (; this._parse(i2); ) ; - const o2 = new Map(), r2 = []; + const r2 = new Map(), o2 = []; let s2 = 0; - i2.walk((e3) => (e3 instanceof gu && (s2 += 1, e3.isFinalTabstop ? o2.set(0, void 0) : !o2.has(e3.index) && e3.children.length > 0 ? o2.set(e3.index, e3.children) : r2.push(e3)), true)); - for (const e3 of r2) { - const t3 = o2.get(e3.index); + i2.walk((e3) => (e3 instanceof gu && (s2 += 1, e3.isFinalTabstop ? r2.set(0, void 0) : !r2.has(e3.index) && e3.children.length > 0 ? r2.set(e3.index, e3.children) : o2.push(e3)), true)); + for (const e3 of o2) { + const t3 = r2.get(e3.index); if (t3) { const n3 = new gu(e3.index); n3.transform = e3.transform; @@ -69690,7 +69690,7 @@ ${Object(zn.b)(wi)} i2.replace(e3, [n3]); } } - return n2 || (n2 = s2 > 0 && t2), !o2.has(0) && n2 && i2.appendChild(new gu(0)), i2; + return n2 || (n2 = s2 > 0 && t2), !r2.has(0) && n2 && i2.appendChild(new gu(0)), i2; } _accept(e2, t2) { if (e2 === void 0 || this._token.type === e2) { @@ -69861,24 +69861,24 @@ ${Object(zn.b)(wi)} } } var xu = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -69920,33 +69920,33 @@ ${Object(zn.b)(wi)} this.items = e2, this.needsClipboard = t2, this.dispoables = n2; } } - function Nu(e2, t2, n2 = Tu.default, i2 = {triggerKind: 0}, o2 = Xe.a.None) { + function Nu(e2, t2, n2 = Tu.default, i2 = {triggerKind: 0}, r2 = Xe.a.None) { return xu(this, void 0, void 0, function* () { t2 = t2.clone(); - const r2 = e2.getWordAtPosition(t2), s2 = r2 ? new ge.a(t2.lineNumber, r2.startColumn, t2.lineNumber, r2.endColumn) : ge.a.fromPositions(t2), a2 = {replace: s2, insert: s2.setEndPosition(t2.lineNumber, t2.column)}, l2 = [], c2 = new pe.b(); + const o2 = e2.getWordAtPosition(t2), s2 = o2 ? new ge.a(t2.lineNumber, o2.startColumn, t2.lineNumber, o2.endColumn) : ge.a.fromPositions(t2), a2 = {replace: s2, insert: s2.setEndPosition(t2.lineNumber, t2.column)}, l2 = [], c2 = new pe.b(); let d2 = false; const h2 = (e3, i3) => { if (i3) { - for (let o3 of i3.suggestions) - n2.kindFilter.has(o3.kind) || (o3.range || (o3.range = a2), o3.sortText || (o3.sortText = typeof o3.label == "string" ? o3.label : o3.label.name), !d2 && o3.insertTextRules && 4 & o3.insertTextRules && (d2 = Cu.guessNeedsClipboard(o3.insertText)), l2.push(new Eu(t2, o3, i3, e3))); + for (let r3 of i3.suggestions) + n2.kindFilter.has(r3.kind) || (r3.range || (r3.range = a2), r3.sortText || (r3.sortText = typeof r3.label == "string" ? r3.label : r3.label.name), !d2 && r3.insertTextRules && 4 & r3.insertTextRules && (d2 = Cu.guessNeedsClipboard(r3.insertText)), l2.push(new Eu(t2, r3, i3, e3))); Object(pe.g)(i3) && c2.add(i3); } }, u2 = (() => xu(this, void 0, void 0, function* () { }))(); - for (let r3 of et.d.orderedGroups(e2)) { + for (let o3 of et.d.orderedGroups(e2)) { let s3 = l2.length; - if (yield Promise.all(r3.map((r4) => xu(this, void 0, void 0, function* () { - if (!(n2.providerFilter.size > 0) || n2.providerFilter.has(r4)) + if (yield Promise.all(o3.map((o4) => xu(this, void 0, void 0, function* () { + if (!(n2.providerFilter.size > 0) || n2.providerFilter.has(o4)) try { - const n3 = yield r4.provideCompletionItems(e2, t2, i2, o2); - h2(r4, n3); + const n3 = yield o4.provideCompletionItems(e2, t2, i2, r2); + h2(o4, n3); } catch (e3) { Object(Z.f)(e3); } - }))), s3 !== l2.length || o2.isCancellationRequested) + }))), s3 !== l2.length || r2.isCancellationRequested) break; } - return yield u2, o2.isCancellationRequested ? (c2.dispose(), Promise.reject(Object(Z.a)())) : new Lu(l2.sort(Du(n2.snippetSortOrder)), d2, c2); + return yield u2, r2.isCancellationRequested ? (c2.dispose(), Promise.reject(Object(Z.a)())) : new Lu(l2.sort(Ou(n2.snippetSortOrder)), d2, c2); }); } function Iu(e2, t2) { @@ -69958,11 +69958,11 @@ ${Object(zn.b)(wi)} } return e2.completion.label < t2.completion.label ? -1 : e2.completion.label > t2.completion.label ? 1 : e2.completion.kind - t2.completion.kind; } - const Ou = new Map(); - function Du(e2) { - return Ou.get(e2); + const Du = new Map(); + function Ou(e2) { + return Du.get(e2); } - Ou.set(0, function(e2, t2) { + Du.set(0, function(e2, t2) { if (e2.completion.kind !== t2.completion.kind) { if (e2.completion.kind === 27) return -1; @@ -69970,7 +69970,7 @@ ${Object(zn.b)(wi)} return 1; } return Iu(e2, t2); - }), Ou.set(2, function(e2, t2) { + }), Du.set(2, function(e2, t2) { if (e2.completion.kind !== t2.completion.kind) { if (e2.completion.kind === 27) return 1; @@ -69978,12 +69978,12 @@ ${Object(zn.b)(wi)} return -1; } return Iu(e2, t2); - }), Ou.set(1, Iu), Object(V.j)("_executeCompletionItemProvider", (e2, t2, n2) => xu(void 0, void 0, void 0, function* () { - const i2 = {incomplete: false, suggestions: []}, o2 = [], r2 = n2.maxItemsToResolve || 0, s2 = yield Nu(e2, t2); + }), Du.set(1, Iu), Object(V.j)("_executeCompletionItemProvider", (e2, t2, n2) => xu(void 0, void 0, void 0, function* () { + const i2 = {incomplete: false, suggestions: []}, r2 = [], o2 = n2.maxItemsToResolve || 0, s2 = yield Nu(e2, t2); for (const e3 of s2.items) - o2.length < r2 && o2.push(e3.resolve(Xe.a.None)), i2.incomplete = i2.incomplete || e3.container.incomplete, i2.suggestions.push(e3.completion); + r2.length < o2 && r2.push(e3.resolve(Xe.a.None)), i2.incomplete = i2.incomplete || e3.container.incomplete, i2.suggestions.push(e3.completion); try { - return yield Promise.all(o2), i2; + return yield Promise.all(r2), i2; } finally { setTimeout(() => s2.dispoables.dispose(), 100); } @@ -70029,10 +70029,10 @@ ${Object(zn.b)(wi)} } if (t3 && n2 && e2.snippet) { const n3 = this._model.getLineContent(this._selection.startLineNumber), i2 = Object(Ye.z)(n3, 0, this._selection.startColumn - 1); - let o2 = i2; - e2.snippet.walk((t4) => t4 !== e2 && (t4 instanceof pu && (o2 = Object(Ye.z)(t4.value.split(/\r\n|\r|\n/).pop())), true)); - const r2 = Object(Ye.d)(o2, i2); - t3 = t3.replace(/(\r\n|\r|\n)(.*)/g, (e3, t4, n4) => `${t4}${o2.substr(r2)}${n4}`); + let r2 = i2; + e2.snippet.walk((t4) => t4 !== e2 && (t4 instanceof pu && (r2 = Object(Ye.z)(t4.value.split(/\r\n|\r|\n/).pop())), true)); + const o2 = Object(Ye.d)(r2, i2); + t3 = t3.replace(/(\r\n|\r|\n)(.*)/g, (e3, t4, n4) => `${t4}${r2.substr(o2)}${n4}`); } return t3; } @@ -70147,7 +70147,7 @@ ${Object(zn.b)(wi)} const e2 = this._editor.getModel(); this._editor.changeDecorations((t2) => { for (const n2 of this._snippet.placeholders) { - const i2 = this._snippet.offset(n2), o2 = this._snippet.fullLen(n2), r2 = ge.a.fromPositions(e2.getPositionAt(this._offset + i2), e2.getPositionAt(this._offset + i2 + o2)), s2 = n2.isFinalTabstop ? Hu._decor.inactiveFinal : Hu._decor.inactive, a2 = t2.addDecoration(r2, s2); + const i2 = this._snippet.offset(n2), r2 = this._snippet.fullLen(n2), o2 = ge.a.fromPositions(e2.getPositionAt(this._offset + i2), e2.getPositionAt(this._offset + i2 + r2)), s2 = n2.isFinalTabstop ? Hu._decor.inactiveFinal : Hu._decor.inactive, a2 = t2.addDecoration(o2, s2); this._placeholderDecorations.set(n2, a2); } }); @@ -70159,8 +70159,8 @@ ${Object(zn.b)(wi)} let e3 = []; for (const t3 of this._placeholderGroups[this._placeholderGroupsIdx]) if (t3.transform) { - const n3 = this._placeholderDecorations.get(t3), i2 = this._editor.getModel().getDecorationRange(n3), o2 = this._editor.getModel().getValueInRange(i2); - e3.push(Mn.a.replaceMove(i2, t3.transform.resolve(o2))); + const n3 = this._placeholderDecorations.get(t3), i2 = this._editor.getModel().getDecorationRange(n3), r2 = this._editor.getModel().getValueInRange(i2); + e3.push(Mn.a.replaceMove(i2, t3.transform.resolve(r2))); } e3.length > 0 && this._editor.executeEdits("snippet.placeholderTransform", e3); } @@ -70168,10 +70168,10 @@ ${Object(zn.b)(wi)} e2 === true && this._placeholderGroupsIdx < this._placeholderGroups.length - 1 ? (this._placeholderGroupsIdx += 1, t2 = true) : e2 === false && this._placeholderGroupsIdx > 0 && (this._placeholderGroupsIdx -= 1, t2 = true); const n2 = this._editor.getModel().changeDecorations((e3) => { const n3 = new Set(), i2 = []; - for (const o2 of this._placeholderGroups[this._placeholderGroupsIdx]) { - const r2 = this._placeholderDecorations.get(o2), s2 = this._editor.getModel().getDecorationRange(r2); - i2.push(new q.a(s2.startLineNumber, s2.startColumn, s2.endLineNumber, s2.endColumn)), t2 = t2 && this._hasPlaceholderBeenCollapsed(o2), e3.changeDecorationOptions(r2, o2.isFinalTabstop ? Hu._decor.activeFinal : Hu._decor.active), n3.add(o2); - for (const t3 of this._snippet.enclosingPlaceholders(o2)) { + for (const r2 of this._placeholderGroups[this._placeholderGroupsIdx]) { + const o2 = this._placeholderDecorations.get(r2), s2 = this._editor.getModel().getDecorationRange(o2); + i2.push(new q.a(s2.startLineNumber, s2.startColumn, s2.endLineNumber, s2.endColumn)), t2 = t2 && this._hasPlaceholderBeenCollapsed(r2), e3.changeDecorationOptions(o2, r2.isFinalTabstop ? Hu._decor.activeFinal : Hu._decor.active), n3.add(r2); + for (const t3 of this._snippet.enclosingPlaceholders(r2)) { const i3 = this._placeholderDecorations.get(t3); e3.changeDecorationOptions(i3, t3.isFinalTabstop ? Hu._decor.activeFinal : Hu._decor.active), n3.add(t3); } @@ -70211,12 +70211,12 @@ ${Object(zn.b)(wi)} if (i2.isFinalTabstop) break; n2 || (n2 = [], e2.set(i2.index, n2)); - const t3 = this._placeholderDecorations.get(i2), o2 = this._editor.getModel().getDecorationRange(t3); - if (!o2) { + const t3 = this._placeholderDecorations.get(i2), r2 = this._editor.getModel().getDecorationRange(t3); + if (!r2) { e2.delete(i2.index); break; } - n2.push(o2); + n2.push(r2); } } return e2; @@ -70228,16 +70228,16 @@ ${Object(zn.b)(wi)} const t2 = this._editor.getModel(); this._nestingLevel *= 10, this._editor.changeDecorations((n2) => { for (const i2 of this._placeholderGroups[this._placeholderGroupsIdx]) { - const o2 = e2.shift(); - console.assert(!o2._placeholderDecorations); - const r2 = o2._snippet.placeholderInfo.last.index; - for (const e3 of o2._snippet.placeholderInfo.all) - e3.isFinalTabstop ? e3.index = i2.index + (r2 + 1) / this._nestingLevel : e3.index = i2.index + e3.index / this._nestingLevel; - this._snippet.replace(i2, o2._snippet.children); + const r2 = e2.shift(); + console.assert(!r2._placeholderDecorations); + const o2 = r2._snippet.placeholderInfo.last.index; + for (const e3 of r2._snippet.placeholderInfo.all) + e3.isFinalTabstop ? e3.index = i2.index + (o2 + 1) / this._nestingLevel : e3.index = i2.index + e3.index / this._nestingLevel; + this._snippet.replace(i2, r2._snippet.children); const s2 = this._placeholderDecorations.get(i2); n2.removeDecoration(s2), this._placeholderDecorations.delete(i2); - for (const e3 of o2._snippet.placeholders) { - const i3 = o2._snippet.offset(e3), r3 = o2._snippet.fullLen(e3), s3 = ge.a.fromPositions(t2.getPositionAt(o2._offset + i3), t2.getPositionAt(o2._offset + i3 + r3)), a2 = n2.addDecoration(s3, Hu._decor.inactive); + for (const e3 of r2._snippet.placeholders) { + const i3 = r2._snippet.offset(e3), o3 = r2._snippet.fullLen(e3), s3 = ge.a.fromPositions(t2.getPositionAt(r2._offset + i3), t2.getPositionAt(r2._offset + i3 + o3)), a2 = n2.addDecoration(s3, Hu._decor.inactive); this._placeholderDecorations.set(e3, a2); } } @@ -70251,8 +70251,8 @@ ${Object(zn.b)(wi)} constructor(e2, t2, n2 = qu) { this._templateMerges = [], this._snippets = [], this._editor = e2, this._template = t2, this._options = n2; } - static adjustWhitespace(e2, t2, n2, i2, o2) { - const r2 = e2.getLineContent(t2.lineNumber), s2 = Object(Ye.z)(r2, 0, t2.column - 1); + static adjustWhitespace(e2, t2, n2, i2, r2) { + const o2 = e2.getLineContent(t2.lineNumber), s2 = Object(Ye.z)(o2, 0, t2.column - 1); n2.walk((t3) => { if (t3 instanceof pu && !(t3.parent instanceof fu)) { const n3 = t3.value.split(/\r\n|\r|\n/); @@ -70261,7 +70261,7 @@ ${Object(zn.b)(wi)} let i3 = Object(Ye.z)(n3[t4]); n3[t4] = e2.normalizeIndentation(s2 + i3) + n3[t4].substr(i3.length); } - if (o2) { + if (r2) { const i3 = n3.join(e2.getEOL()); i3 !== t3.value && t3.parent.replace(t3, [new pu(i3)]); } @@ -70271,12 +70271,12 @@ ${Object(zn.b)(wi)} } static adjustSelection(e2, t2, n2, i2) { if (n2 !== 0 || i2 !== 0) { - const {positionLineNumber: o2, positionColumn: r2} = t2, s2 = r2 - n2, a2 = r2 + i2, l2 = e2.validateRange({startLineNumber: o2, startColumn: s2, endLineNumber: o2, endColumn: a2}); + const {positionLineNumber: r2, positionColumn: o2} = t2, s2 = o2 - n2, a2 = o2 + i2, l2 = e2.validateRange({startLineNumber: r2, startColumn: s2, endLineNumber: r2, endColumn: a2}); t2 = q.a.createWithDirection(l2.startLineNumber, l2.startColumn, l2.endLineNumber, l2.endColumn, t2.getDirection()); } return t2; } - static createEditsAndSnippets(e2, t2, n2, i2, o2, r2, s2, a2) { + static createEditsAndSnippets(e2, t2, n2, i2, r2, o2, s2, a2) { const l2 = [], c2 = []; if (!e2.hasModel()) return {edits: l2, snippets: c2}; @@ -70286,8 +70286,8 @@ ${Object(zn.b)(wi)} for (const {selection: s3, idx: v2} of _2) { let w2 = $u.adjustSelection(d2, s3, n2, 0), y2 = $u.adjustSelection(d2, s3, 0, i2); g2 !== d2.getValueInRange(w2) && (w2 = s3), f2 !== d2.getValueInRange(y2) && (y2 = s3); - const C2 = s3.setStartPosition(w2.startLineNumber, w2.startColumn).setEndPosition(y2.endLineNumber, y2.endColumn), x2 = new Cu().parse(t2, true, o2), S2 = C2.getStartPosition(); - $u.adjustWhitespace(d2, S2, x2, r2 || v2 > 0 && b2 !== d2.getLineFirstNonWhitespaceColumn(s3.positionLineNumber), true), x2.resolveVariables(new Pu([u2, new zu(p2, v2, _2.length, e2.getOption(62) === "spread"), new Fu(d2, s3, v2, a2), new Bu(d2, s3), new ju(), new Vu(h2), new Uu()])); + const C2 = s3.setStartPosition(w2.startLineNumber, w2.startColumn).setEndPosition(y2.endLineNumber, y2.endColumn), x2 = new Cu().parse(t2, true, r2), S2 = C2.getStartPosition(); + $u.adjustWhitespace(d2, S2, x2, o2 || v2 > 0 && b2 !== d2.getLineFirstNonWhitespaceColumn(s3.positionLineNumber), true), x2.resolveVariables(new Pu([u2, new zu(p2, v2, _2.length, e2.getOption(62) === "spread"), new Fu(d2, s3, v2, a2), new Bu(d2, s3), new ju(), new Vu(h2), new Uu()])); const k2 = d2.getOffsetAt(S2) + m2; m2 += x2.toString().length - d2.getValueLengthInRange(C2), l2[v2] = Mn.a.replace(C2, x2.toString()), l2[v2].identifier = {major: v2, minor: 0}, c2[v2] = new Hu(e2, x2, k2); } @@ -70354,10 +70354,10 @@ ${Object(zn.b)(wi)} for (const n2 of this._snippets) { const i2 = n2.computePossibleSelections(); if (t2.size === 0) - for (const [n3, o2] of i2) { - o2.sort(ge.a.compareRangesUsingStarts); + for (const [n3, r2] of i2) { + r2.sort(ge.a.compareRangesUsingStarts); for (const i3 of e2) - if (o2[0].containsRange(i3)) { + if (r2[0].containsRange(i3)) { t2.set(n3, []); break; } @@ -70372,21 +70372,21 @@ ${Object(zn.b)(wi)} for (let [n2, i2] of t2) if (i2.length === e2.length) { i2.sort(ge.a.compareRangesUsingStarts); - for (let o2 = 0; o2 < i2.length; o2++) - i2[o2].containsRange(e2[o2]) || t2.delete(n2); + for (let r2 = 0; r2 < i2.length; r2++) + i2[r2].containsRange(e2[r2]) || t2.delete(n2); } else t2.delete(n2); return t2.size > 0; } } var Ku = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Gu = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -70461,13 +70461,13 @@ ${Object(zn.b)(wi)} const Xu = V.c.bindToContribution(Zu.get); Object(V.l)(new Xu({id: "jumpToNextSnippetPlaceholder", precondition: K.a.and(Zu.InSnippetMode, Zu.HasNextTabstop), handler: (e2) => e2.next(), kbOpts: {weight: 130, kbExpr: H.a.editorTextFocus, primary: 2}})), Object(V.l)(new Xu({id: "jumpToPrevSnippetPlaceholder", precondition: K.a.and(Zu.InSnippetMode, Zu.HasPrevTabstop), handler: (e2) => e2.prev(), kbOpts: {weight: 130, kbExpr: H.a.editorTextFocus, primary: 1026}})), Object(V.l)(new Xu({id: "leaveSnippet", precondition: Zu.InSnippetMode, handler: (e2) => e2.cancel(true), kbOpts: {weight: 130, kbExpr: H.a.editorTextFocus, primary: 9, secondary: [1033]}})), Object(V.l)(new Xu({id: "acceptSnippet", precondition: Zu.InSnippetMode, handler: (e2) => e2.finish()})); var Qu = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Ju = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -70482,10 +70482,10 @@ ${Object(zn.b)(wi)} return 0; let i2 = n2[0].score[0]; for (let e3 = 0; e3 < n2.length; e3++) { - const {score: t3, completion: o2} = n2[e3]; + const {score: t3, completion: r2} = n2[e3]; if (t3[0] !== i2) break; - if (o2.preselect) + if (r2.preselect) return e3; } return 0; @@ -70518,14 +70518,14 @@ ${Object(zn.b)(wi)} return this._withStrategy(e3, t2).select(e3, t2, n2); } _withStrategy(t2, n2) { - var i2, o2; - const r2 = this._configService.getValue("editor.suggestSelection", {overrideIdentifier: (i2 = this._modeService.getLanguageIdentifier(t2.getLanguageIdAtPosition(n2.lineNumber, n2.column))) === null || i2 === void 0 ? void 0 : i2.language, resource: t2.uri}); - if (((o2 = this._strategy) === null || o2 === void 0 ? void 0 : o2.name) !== r2) { + var i2, r2; + const o2 = this._configService.getValue("editor.suggestSelection", {overrideIdentifier: (i2 = this._modeService.getLanguageIdentifier(t2.getLanguageIdAtPosition(n2.lineNumber, n2.column))) === null || i2 === void 0 ? void 0 : i2.language, resource: t2.uri}); + if (((r2 = this._strategy) === null || r2 === void 0 ? void 0 : r2.name) !== o2) { this._saveState(); - const t3 = e2._strategyCtors.get(r2) || tp; + const t3 = e2._strategyCtors.get(o2) || tp; this._strategy = new t3(); try { - const t4 = this._configService.getValue("editor.suggest.shareSuggestSelections") ? 0 : 1, n3 = this._storageService.get(`${e2._storagePrefix}/${r2}`, t4); + const t4 = this._configService.getValue("editor.suggest.shareSuggestSelections") ? 0 : 1, n3 = this._storageService.get(`${e2._storagePrefix}/${o2}`, t4); n3 && this._strategy.fromJSON(JSON.parse(n3)); } catch (e3) { } @@ -70544,18 +70544,18 @@ ${Object(zn.b)(wi)} super("recentlyUsedByPrefix"), this._trie = gn.c.forStrings(), this._seq = 0; } memorize(e2, t2, n2) { - const {word: i2} = e2.getWordUntilPosition(t2), o2 = `${e2.getLanguageIdentifier().language}/${i2}`; - this._trie.set(o2, {type: n2.completion.kind, insertText: n2.completion.insertText, touch: this._seq++}); + const {word: i2} = e2.getWordUntilPosition(t2), r2 = `${e2.getLanguageIdentifier().language}/${i2}`; + this._trie.set(r2, {type: n2.completion.kind, insertText: n2.completion.insertText, touch: this._seq++}); } select(e2, t2, n2) { let {word: i2} = e2.getWordUntilPosition(t2); if (!i2) return super.select(e2, t2, n2); - let o2 = `${e2.getLanguageIdentifier().language}/${i2}`, r2 = this._trie.get(o2); - if (r2 || (r2 = this._trie.findSubstr(o2)), r2) + let r2 = `${e2.getLanguageIdentifier().language}/${i2}`, o2 = this._trie.get(r2); + if (o2 || (o2 = this._trie.findSubstr(r2)), o2) for (let e3 = 0; e3 < n2.length; e3++) { let {kind: t3, insertText: i3} = n2[e3].completion; - if (t3 === r2.type && i3 === r2.insertText) + if (t3 === o2.type && i3 === o2.insertText) return e3; } return super.select(e2, t2, n2); @@ -70576,8 +70576,8 @@ ${Object(zn.b)(wi)} super("recentlyUsed"), this._cache = new gn.a(300, 0.66), this._seq = 0; } memorize(e2, t2, n2) { - const {label: i2} = n2.completion, o2 = `${e2.getLanguageIdentifier().language}/${i2}`; - this._cache.set(o2, {touch: this._seq++, type: n2.completion.kind, insertText: n2.completion.insertText}); + const {label: i2} = n2.completion, r2 = `${e2.getLanguageIdentifier().language}/${i2}`; + this._cache.set(r2, {touch: this._seq++, type: n2.completion.kind, insertText: n2.completion.insertText}); } select(e2, t2, n2) { if (n2.length === 0) @@ -70585,13 +70585,13 @@ ${Object(zn.b)(wi)} const i2 = e2.getLineContent(t2.lineNumber).substr(t2.column - 10, t2.column - 1); if (/\s$/.test(i2)) return super.select(e2, t2, n2); - let o2 = n2[0].score[0], r2 = -1, s2 = -1, a2 = -1; - for (let t3 = 0; t3 < n2.length && n2[t3].score[0] === o2; t3++) { - const i3 = `${e2.getLanguageIdentifier().language}/${n2[t3].completion.label}`, o3 = this._cache.peek(i3); - if (o3 && o3.touch > a2 && o3.type === n2[t3].completion.kind && o3.insertText === n2[t3].completion.insertText && (a2 = o3.touch, s2 = t3), n2[t3].completion.preselect && r2 === -1) + let r2 = n2[0].score[0], o2 = -1, s2 = -1, a2 = -1; + for (let t3 = 0; t3 < n2.length && n2[t3].score[0] === r2; t3++) { + const i3 = `${e2.getLanguageIdentifier().language}/${n2[t3].completion.label}`, r3 = this._cache.peek(i3); + if (r3 && r3.touch > a2 && r3.type === n2[t3].completion.kind && r3.insertText === n2[t3].completion.insertText && (a2 = r3.touch, s2 = t3), n2[t3].completion.preselect && o2 === -1) return t3; } - return s2 !== -1 ? s2 : r2 !== -1 ? r2 : 0; + return s2 !== -1 ? s2 : o2 !== -1 ? o2 : 0; } toJSON() { return this._cache.toJSON(); @@ -70602,18 +70602,18 @@ ${Object(zn.b)(wi)} n2.touch = 0, n2.type = typeof n2.type == "number" ? n2.type : Object(et.E)(n2.type), this._cache.set(t2, n2); this._seq = this._cache.size; } - }], ["first", tp]]), np._storagePrefix = "suggest/memories", np = Qu([Ju(0, fn.a), Ju(1, Nl.a), Ju(2, On.a)], np); + }], ["first", tp]]), np._storagePrefix = "suggest/memories", np = Qu([Ju(0, fn.a), Ju(1, Nl.a), Ju(2, Dn.a)], np); const ip = Object(gt.c)("ISuggestMemories"); Object(mn.b)(ip, np, true); - var op = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var rp = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, rp = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, op = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; @@ -70656,10 +70656,10 @@ ${Object(zn.b)(wi)} } } }; - sp.OtherSuggestions = new K.c("hasOtherSuggestions", false), sp = op([rp(1, K.b)], sp); + sp.OtherSuggestions = new K.c("hasOtherSuggestions", false), sp = rp([op(1, K.b)], sp); class ap { - constructor(e2, t2, n2, i2, o2, r2, s2) { - this.clipboardText = s2, this._snippetCompareFn = ap._compareCompletionItems, this._items = e2, this._column = t2, this._wordDistance = i2, this._options = o2, this._refilterKind = 1, this._lineContext = n2, r2 === "top" ? this._snippetCompareFn = ap._compareCompletionItemsSnippetsUp : r2 === "bottom" && (this._snippetCompareFn = ap._compareCompletionItemsSnippetsDown); + constructor(e2, t2, n2, i2, r2, o2, s2) { + this.clipboardText = s2, this._snippetCompareFn = ap._compareCompletionItems, this._items = e2, this._column = t2, this._wordDistance = i2, this._options = r2, this._refilterKind = 1, this._lineContext = n2, o2 === "top" ? this._snippetCompareFn = ap._compareCompletionItemsSnippetsUp : o2 === "bottom" && (this._snippetCompareFn = ap._compareCompletionItemsSnippetsDown); } get lineContext() { return this._lineContext; @@ -70692,9 +70692,9 @@ ${Object(zn.b)(wi)} this._isIncomplete = new Set(), this._allProvider = new Set(), this._stats = {suggestionCount: 0, snippetCount: 0, textCount: 0}; const {leadingLineContent: e2, characterCountDelta: t2} = this._lineContext; let n2 = "", i2 = ""; - const o2 = this._refilterKind === 1 ? this._items : this._filteredItems, r2 = [], s2 = !this._options.filterGraceful || o2.length > 2e3 ? va.d : va.e; - for (let a2 = 0; a2 < o2.length; a2++) { - const l2 = o2[a2]; + const r2 = this._refilterKind === 1 ? this._items : this._filteredItems, o2 = [], s2 = !this._options.filterGraceful || r2.length > 2e3 ? va.d : va.e; + for (let a2 = 0; a2 < r2.length; a2++) { + const l2 = r2[a2]; if (l2.isInvalid) continue; l2.container.incomplete && this._isIncomplete.add(l2.provider), this._allProvider.add(l2.provider); @@ -70713,18 +70713,18 @@ ${Object(zn.b)(wi)} if (e3 >= d2) l2.score = va.a.Default; else if (typeof l2.completion.filterText == "string") { - let o3 = s2(n2, i2, e3, l2.completion.filterText, l2.filterTextLow, 0, false); - if (!o3) + let r3 = s2(n2, i2, e3, l2.completion.filterText, l2.filterTextLow, 0, false); + if (!r3) continue; - Object(Ye.g)(l2.completion.filterText, t3) === 0 ? l2.score = o3 : (l2.score = Object(va.b)(n2, i2, e3, t3, l2.labelLow, 0), l2.score[0] = o3[0]); + Object(Ye.g)(l2.completion.filterText, t3) === 0 ? l2.score = r3 : (l2.score = Object(va.b)(n2, i2, e3, t3, l2.labelLow, 0), l2.score[0] = r3[0]); } else { - let o3 = s2(n2, i2, e3, t3, l2.labelLow, 0, false); - if (!o3) + let r3 = s2(n2, i2, e3, t3, l2.labelLow, 0, false); + if (!r3) continue; - l2.score = o3; + l2.score = r3; } } - switch (l2.idx = a2, l2.distance = this._wordDistance.distance(l2.position, l2.completion), r2.push(l2), this._stats.suggestionCount++, l2.completion.kind) { + switch (l2.idx = a2, l2.distance = this._wordDistance.distance(l2.position, l2.completion), o2.push(l2), this._stats.suggestionCount++, l2.completion.kind) { case 27: this._stats.snippetCount++; break; @@ -70732,7 +70732,7 @@ ${Object(zn.b)(wi)} this._stats.textCount++; } } - this._filteredItems = r2.sort(this._snippetCompareFn), this._refilterKind = 0; + this._filteredItems = o2.sort(this._snippetCompareFn), this._refilterKind = 0; } static _compareCompletionItems(e2, t2) { return e2.score[0] > t2.score[0] ? -1 : e2.score[0] < t2.score[0] ? 1 : e2.distance < t2.distance ? -1 : e2.distance > t2.distance ? 1 : e2.idx < t2.idx ? -1 : e2.idx > t2.idx ? 1 : 0; @@ -70757,24 +70757,24 @@ ${Object(zn.b)(wi)} } } var lp = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -70791,24 +70791,24 @@ ${Object(zn.b)(wi)} const n2 = t2.getModel(), i2 = t2.getPosition(); if (!e2.canComputeWordRanges(n2.uri)) return cp.None; - const [o2] = yield new ru().provideSelectionRanges(n2, [i2]); - if (o2.length === 0) + const [r2] = yield new ou().provideSelectionRanges(n2, [i2]); + if (r2.length === 0) return cp.None; - const r2 = yield e2.computeWordRanges(n2.uri, o2[0].range); - if (!r2) + const o2 = yield e2.computeWordRanges(n2.uri, r2[0].range); + if (!o2) return cp.None; const s2 = n2.getWordUntilPosition(i2); - return delete r2[s2.word], new class extends cp { + return delete o2[s2.word], new class extends cp { distance(e3, n3) { if (!i2.equals(t2.getPosition())) return 0; if (n3.kind === 17) return 2 << 20; - let s3 = typeof n3.label == "string" ? n3.label : n3.label.name, a2 = r2[s3]; + let s3 = typeof n3.label == "string" ? n3.label : n3.label.name, a2 = o2[s3]; if (Object(G.n)(a2)) return 2 << 20; - let l2 = Object(G.c)(a2, ge.a.fromPositions(e3), ge.a.compareRangesUsingStarts), c2 = l2 >= 0 ? a2[l2] : a2[Math.max(0, ~l2 - 1)], d2 = o2.length; - for (const e4 of o2) { + let l2 = Object(G.c)(a2, ge.a.fromPositions(e3), ge.a.compareRangesUsingStarts), c2 = l2 >= 0 ? a2[l2] : a2[Math.max(0, ~l2 - 1)], d2 = r2.length; + for (const e4 of r2) { if (!ge.a.containsRange(e4.range, c2)) break; d2 -= 1; @@ -70825,24 +70825,24 @@ ${Object(zn.b)(wi)} } }(); var dp = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -70900,17 +70900,16 @@ ${Object(zn.b)(wi)} i2 || (i2 = new Set(), i2.add(void 0), e2.set(n2, i2)), i2.add(t3); } const t2 = (t3) => { - var n2; if (!t3) { const e3 = this._editor.getPosition(); t3 = this._editor.getModel().getLineContent(e3.lineNumber).substr(0, e3.column - 1); } - let i2 = ""; - Object(Ye.G)(t3.charCodeAt(t3.length - 1)) ? Object(Ye.F)(t3.charCodeAt(t3.length - 2)) && (i2 = t3.substr(t3.length - 2)) : i2 = t3.charAt(t3.length - 1); - const o2 = e2.get(i2); - if (o2) { - const e3 = (n2 = this._completionModel) === null || n2 === void 0 ? void 0 : n2.adopt(o2); - this.trigger({auto: true, shy: false, triggerCharacter: i2}, Boolean(this._completionModel), o2, e3); + let n2 = ""; + Object(Ye.G)(t3.charCodeAt(t3.length - 1)) ? Object(Ye.F)(t3.charCodeAt(t3.length - 2)) && (n2 = t3.substr(t3.length - 2)) : n2 = t3.charAt(t3.length - 1); + const i2 = e2.get(n2); + if (i2) { + const e3 = this._completionModel ? {items: this._completionModel.adopt(i2), clipboardText: this._completionModel.clipboardText} : void 0; + this.trigger({auto: true, shy: false, triggerCharacter: n2}, Boolean(this._completionModel), i2, e3); } }; this._triggerCharacterListener.add(this._editor.onDidType(t2)), this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(t2)); @@ -70953,8 +70952,8 @@ ${Object(zn.b)(wi)} ; else { e3.tokenizeIfCheap(t3.lineNumber); - const i2 = e3.getLineTokens(t3.lineNumber), o2 = i2.getStandardTokenType(i2.findTokenIndexAtOffset(Math.max(t3.column - 1 - 1, 0))); - if (!(n3.other && o2 === 0 || n3.comments && o2 === 1 || n3.strings && o2 === 2)) + const i2 = e3.getLineTokens(t3.lineNumber), r2 = i2.getStandardTokenType(i2.findTokenIndexAtOffset(Math.max(t3.column - 1 - 1, 0))); + if (!(n3.other && r2 === 0 || n3.comments && r2 === 1 || n3.strings && r2 === 2)) return; } this.trigger({auto: true, shy: false}); @@ -70973,12 +70972,12 @@ ${Object(zn.b)(wi)} }); } trigger(e2, t2 = false, n2, i2) { - var o2; + var r2; if (!this._editor.hasModel()) return; - const r2 = this._editor.getModel(), s2 = e2.auto, a2 = new hp(r2, this._editor.getPosition(), s2, e2.shy); + const o2 = this._editor.getModel(), s2 = e2.auto, a2 = new hp(o2, this._editor.getPosition(), s2, e2.shy); this.cancel(t2), this._state = s2 ? 2 : 1, this._onDidTrigger.fire({auto: s2, shy: e2.shy, position: this._editor.getPosition()}), this._context = a2; - let l2 = {triggerKind: (o2 = e2.triggerKind) !== null && o2 !== void 0 ? o2 : 0}; + let l2 = {triggerKind: (r2 = e2.triggerKind) !== null && r2 !== void 0 ? r2 : 0}; e2.triggerCharacter && (l2 = {triggerKind: 1, triggerCharacter: e2.triggerCharacter}), this._requestToken = new Xe.b(); const c2 = this._editor.getOption(93); let d2 = 1; @@ -70989,22 +70988,22 @@ ${Object(zn.b)(wi)} case "bottom": d2 = 2; } - let h2 = up._createItemKindFilter(this._editor), u2 = cp.create(this._editorWorkerService, this._editor), p2 = Nu(r2, this._editor.getPosition(), new Tu(d2, h2, n2), l2, this._requestToken.token); + let h2 = up._createItemKindFilter(this._editor), u2 = cp.create(this._editorWorkerService, this._editor), p2 = Nu(o2, this._editor.getPosition(), new Tu(d2, h2, n2), l2, this._requestToken.token); Promise.all([p2, u2]).then(([t3, n3]) => dp(this, void 0, void 0, function* () { if (Object(pe.f)(this._requestToken), this._state === 0) return; if (!this._editor.hasModel()) return; - let o3; - (t3.needsClipboard || Object(G.o)(i2)) && (o3 = yield this._clipboardService.readText()); - const r3 = this._editor.getModel(); + let r3 = i2 == null ? void 0 : i2.clipboardText; + !r3 && t3.needsClipboard && (r3 = yield this._clipboardService.readText()); + const o3 = this._editor.getModel(); let a3 = t3.items; - if (Object(G.o)(i2)) { - const e3 = Du(d2); - a3 = a3.concat(i2).sort(e3); + if (i2) { + const e3 = Ou(d2); + a3 = a3.concat(i2.items).sort(e3); } - const l3 = new hp(r3, this._editor.getPosition(), s2, e2.shy); - this._completionModel = new ap(a3, this._context.column, {leadingLineContent: l3.leadingLineContent, characterCountDelta: l3.column - this._context.column}, n3, this._editor.getOption(96), this._editor.getOption(93), o3), this._completionDisposables.add(t3.dispoables), this._onNewContext(l3); + const l3 = new hp(o3, this._editor.getPosition(), s2, e2.shy); + this._completionModel = new ap(a3, this._context.column, {leadingLineContent: l3.leadingLineContent, characterCountDelta: l3.column - this._context.column}, n3, this._editor.getOption(96), this._editor.getOption(93), r3), this._completionDisposables.add(t3.dispoables), this._onNewContext(l3); })).catch(Z.e); } static _createItemKindFilter(e2) { @@ -71025,10 +71024,10 @@ ${Object(zn.b)(wi)} const e3 = new Set(et.d.all(this._editor.getModel())); this._completionModel.allProvider.forEach((t3) => e3.delete(t3)); const t2 = this._completionModel.adopt(new Set()); - this.trigger({auto: this._context.auto, shy: false}, true, e3, t2); + this.trigger({auto: this._context.auto, shy: false}, true, e3, {items: t2, clipboardText: this._completionModel.clipboardText}); } else if (e2.column > this._context.column && this._completionModel.incomplete.size > 0 && e2.leadingWord.word.length !== 0) { const {incomplete: e3} = this._completionModel, t2 = this._completionModel.adopt(e3); - this.trigger({auto: this._state === 2, shy: false, triggerKind: 2}, true, e3, t2); + this.trigger({auto: this._state === 2, shy: false, triggerKind: 2}, true, e3, {items: t2, clipboardText: this._completionModel.clipboardText}); } else { let t2 = this._completionModel.lineContext, n2 = false; if (this._completionModel.lineContext = {leadingLineContent: e2.leadingLineContent, characterCountDelta: e2.column - this._context.column}, this._completionModel.items.length === 0) { @@ -71046,16 +71045,16 @@ ${Object(zn.b)(wi)} } } n(327), n(329), n(154), n(331), n(333); - const pp = Object(ve.gc)("symbolIcon.arrayForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.arrayForeground", "The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), mp = Object(ve.gc)("symbolIcon.booleanForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.booleanForeground", "The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), gp = Object(ve.gc)("symbolIcon.classForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.classForeground", "The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), fp = Object(ve.gc)("symbolIcon.colorForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.colorForeground", "The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), bp = Object(ve.gc)("symbolIcon.constantForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.constantForeground", "The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), _p = Object(ve.gc)("symbolIcon.constructorForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.constructorForeground", "The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), vp = Object(ve.gc)("symbolIcon.enumeratorForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.enumeratorForeground", "The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), wp = Object(ve.gc)("symbolIcon.enumeratorMemberForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.enumeratorMemberForeground", "The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), yp = Object(ve.gc)("symbolIcon.eventForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.eventForeground", "The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Cp = Object(ve.gc)("symbolIcon.fieldForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.fieldForeground", "The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), xp = Object(ve.gc)("symbolIcon.fileForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.fileForeground", "The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Sp = Object(ve.gc)("symbolIcon.folderForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.folderForeground", "The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), kp = Object(ve.gc)("symbolIcon.functionForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.functionForeground", "The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ep = Object(ve.gc)("symbolIcon.interfaceForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.interfaceForeground", "The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Tp = Object(ve.gc)("symbolIcon.keyForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.keyForeground", "The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Lp = Object(ve.gc)("symbolIcon.keywordForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.keywordForeground", "The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Np = Object(ve.gc)("symbolIcon.methodForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.methodForeground", "The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ip = Object(ve.gc)("symbolIcon.moduleForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.moduleForeground", "The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Op = Object(ve.gc)("symbolIcon.namespaceForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.namespaceForeground", "The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Dp = Object(ve.gc)("symbolIcon.nullForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.nullForeground", "The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ap = Object(ve.gc)("symbolIcon.numberForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.numberForeground", "The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Rp = Object(ve.gc)("symbolIcon.objectForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.objectForeground", "The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Mp = Object(ve.gc)("symbolIcon.operatorForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.operatorForeground", "The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Pp = Object(ve.gc)("symbolIcon.packageForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.packageForeground", "The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Fp = Object(ve.gc)("symbolIcon.propertyForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.propertyForeground", "The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Wp = Object(ve.gc)("symbolIcon.referenceForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.referenceForeground", "The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), zp = Object(ve.gc)("symbolIcon.snippetForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.snippetForeground", "The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Bp = Object(ve.gc)("symbolIcon.stringForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.stringForeground", "The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), jp = Object(ve.gc)("symbolIcon.structForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.structForeground", "The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Vp = Object(ve.gc)("symbolIcon.textForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.textForeground", "The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Up = Object(ve.gc)("symbolIcon.typeParameterForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.typeParameterForeground", "The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Hp = Object(ve.gc)("symbolIcon.unitForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.unitForeground", "The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), qp = Object(ve.gc)("symbolIcon.variableForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.variableForeground", "The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")); + const pp = Object(ve.gc)("symbolIcon.arrayForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.arrayForeground", "The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), mp = Object(ve.gc)("symbolIcon.booleanForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.booleanForeground", "The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), gp = Object(ve.gc)("symbolIcon.classForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.classForeground", "The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), fp = Object(ve.gc)("symbolIcon.colorForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.colorForeground", "The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), bp = Object(ve.gc)("symbolIcon.constantForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.constantForeground", "The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), _p = Object(ve.gc)("symbolIcon.constructorForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.constructorForeground", "The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), vp = Object(ve.gc)("symbolIcon.enumeratorForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.enumeratorForeground", "The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), wp = Object(ve.gc)("symbolIcon.enumeratorMemberForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.enumeratorMemberForeground", "The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), yp = Object(ve.gc)("symbolIcon.eventForeground", {dark: "#EE9D28", light: "#D67E00", hc: "#EE9D28"}, Object(U.a)("symbolIcon.eventForeground", "The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Cp = Object(ve.gc)("symbolIcon.fieldForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.fieldForeground", "The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), xp = Object(ve.gc)("symbolIcon.fileForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.fileForeground", "The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Sp = Object(ve.gc)("symbolIcon.folderForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.folderForeground", "The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), kp = Object(ve.gc)("symbolIcon.functionForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.functionForeground", "The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ep = Object(ve.gc)("symbolIcon.interfaceForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.interfaceForeground", "The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Tp = Object(ve.gc)("symbolIcon.keyForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.keyForeground", "The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Lp = Object(ve.gc)("symbolIcon.keywordForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.keywordForeground", "The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Np = Object(ve.gc)("symbolIcon.methodForeground", {dark: "#B180D7", light: "#652D90", hc: "#B180D7"}, Object(U.a)("symbolIcon.methodForeground", "The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ip = Object(ve.gc)("symbolIcon.moduleForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.moduleForeground", "The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Dp = Object(ve.gc)("symbolIcon.namespaceForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.namespaceForeground", "The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Op = Object(ve.gc)("symbolIcon.nullForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.nullForeground", "The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Ap = Object(ve.gc)("symbolIcon.numberForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.numberForeground", "The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Rp = Object(ve.gc)("symbolIcon.objectForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.objectForeground", "The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Mp = Object(ve.gc)("symbolIcon.operatorForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.operatorForeground", "The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Pp = Object(ve.gc)("symbolIcon.packageForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.packageForeground", "The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Fp = Object(ve.gc)("symbolIcon.propertyForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.propertyForeground", "The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Wp = Object(ve.gc)("symbolIcon.referenceForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.referenceForeground", "The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), zp = Object(ve.gc)("symbolIcon.snippetForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.snippetForeground", "The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Bp = Object(ve.gc)("symbolIcon.stringForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.stringForeground", "The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), jp = Object(ve.gc)("symbolIcon.structForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.structForeground", "The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Vp = Object(ve.gc)("symbolIcon.textForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.textForeground", "The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Up = Object(ve.gc)("symbolIcon.typeParameterForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.typeParameterForeground", "The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), Hp = Object(ve.gc)("symbolIcon.unitForeground", {dark: ve.ab, light: ve.ab, hc: ve.ab}, Object(U.a)("symbolIcon.unitForeground", "The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")), qp = Object(ve.gc)("symbolIcon.variableForeground", {dark: "#75BEFF", light: "#007ACC", hc: "#75BEFF"}, Object(U.a)("symbolIcon.variableForeground", "The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")); Object(we.g)((e2, t2) => { const n2 = e2.getColor(pp); n2 && t2.addRule(`${Y.a.symbolArray.cssSelector} { color: ${n2}; }`); const i2 = e2.getColor(mp); i2 && t2.addRule(`${Y.a.symbolBoolean.cssSelector} { color: ${i2}; }`); - const o2 = e2.getColor(gp); - o2 && t2.addRule(`${Y.a.symbolClass.cssSelector} { color: ${o2}; }`); - const r2 = e2.getColor(Np); - r2 && t2.addRule(`${Y.a.symbolMethod.cssSelector} { color: ${r2}; }`); + const r2 = e2.getColor(gp); + r2 && t2.addRule(`${Y.a.symbolClass.cssSelector} { color: ${r2}; }`); + const o2 = e2.getColor(Np); + o2 && t2.addRule(`${Y.a.symbolMethod.cssSelector} { color: ${o2}; }`); const s2 = e2.getColor(fp); s2 && t2.addRule(`${Y.a.symbolColor.cssSelector} { color: ${s2}; }`); const a2 = e2.getColor(bp); @@ -71085,9 +71084,9 @@ ${Object(zn.b)(wi)} _2 && t2.addRule(`${Y.a.symbolKeyword.cssSelector} { color: ${_2}; }`); const v2 = e2.getColor(Ip); v2 && t2.addRule(`${Y.a.symbolModule.cssSelector} { color: ${v2}; }`); - const w2 = e2.getColor(Op); + const w2 = e2.getColor(Dp); w2 && t2.addRule(`${Y.a.symbolNamespace.cssSelector} { color: ${w2}; }`); - const y2 = e2.getColor(Dp); + const y2 = e2.getColor(Op); y2 && t2.addRule(`${Y.a.symbolNull.cssSelector} { color: ${y2}; }`); const C2 = e2.getColor(Ap); C2 && t2.addRule(`${Y.a.symbolNumber.cssSelector} { color: ${C2}; }`); @@ -71107,10 +71106,10 @@ ${Object(zn.b)(wi)} N2 && t2.addRule(`${Y.a.symbolString.cssSelector} { color: ${N2}; }`); const I2 = e2.getColor(jp); I2 && t2.addRule(`${Y.a.symbolStruct.cssSelector} { color: ${I2}; }`); - const O2 = e2.getColor(Vp); - O2 && t2.addRule(`${Y.a.symbolText.cssSelector} { color: ${O2}; }`); - const D2 = e2.getColor(Up); - D2 && t2.addRule(`${Y.a.symbolTypeParameter.cssSelector} { color: ${D2}; }`); + const D2 = e2.getColor(Vp); + D2 && t2.addRule(`${Y.a.symbolText.cssSelector} { color: ${D2}; }`); + const O2 = e2.getColor(Up); + O2 && t2.addRule(`${Y.a.symbolTypeParameter.cssSelector} { color: ${O2}; }`); const A2 = e2.getColor(Hp); A2 && t2.addRule(`${Y.a.symbolUnit.cssSelector} { color: ${A2}; }`); const R2 = e2.getColor(qp); @@ -71118,22 +71117,22 @@ ${Object(zn.b)(wi)} }); var $p, Kp = n(113), Gp = n(146); function Yp(e2, t2, n2, i2) { - const o2 = i2 === $p.ROOT_FOLDER ? ["rootfolder-icon"] : i2 === $p.FOLDER ? ["folder-icon"] : ["file-icon"]; + const r2 = i2 === $p.ROOT_FOLDER ? ["rootfolder-icon"] : i2 === $p.FOLDER ? ["folder-icon"] : ["file-icon"]; if (n2) { - let r2; + let o2; if (n2.scheme === la.b.data) { - r2 = jt.a.parseMetaData(n2).get(jt.a.META_DATA_LABEL); + o2 = jt.a.parseMetaData(n2).get(jt.a.META_DATA_LABEL); } else - r2 = Zp(Object(jt.c)(n2).toLowerCase()); + o2 = Zp(Object(jt.c)(n2).toLowerCase()); if (i2 === $p.FOLDER) - o2.push(r2 + "-name-folder-icon"); + r2.push(o2 + "-name-folder-icon"); else { - if (r2) { - o2.push(r2 + "-name-file-icon"); - const e3 = r2.split("."); + if (o2) { + r2.push(o2 + "-name-file-icon"); + const e3 = o2.split("."); for (let t3 = 1; t3 < e3.length; t3++) - o2.push(e3.slice(t3).join(".") + "-ext-file-icon"); - o2.push("ext-file-icon"); + r2.push(e3.slice(t3).join(".") + "-ext-file-icon"); + r2.push("ext-file-icon"); } const i3 = function(e3, t3, n3) { if (!n3) @@ -71150,10 +71149,10 @@ ${Object(zn.b)(wi)} return i4; return t3.getModeIdByFilepathOrFirstLine(n3); }(e2, t2, n2); - i3 && o2.push(Zp(i3) + "-lang-file-icon"); + i3 && r2.push(Zp(i3) + "-lang-file-icon"); } } - return o2; + return r2; } function Zp(e2) { return e2.replace(/\s/g, "\\$&"); @@ -71162,43 +71161,43 @@ ${Object(zn.b)(wi)} e2[e2.FILE = 0] = "FILE", e2[e2.FOLDER = 1] = "FOLDER", e2[e2.ROOT_FOLDER = 2] = "ROOT_FOLDER"; }($p || ($p = {})); var Xp = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Qp = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Jp = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - const em = Object(Y.e)("suggest-more-info", Y.a.chevronRight), tm = Object(ve.gc)("editorSuggestWidget.background", {dark: ve.U, light: ve.U, hc: ve.U}, U.a("editorSuggestWidgetBackground", "Background color of the suggest widget.")), nm = Object(ve.gc)("editorSuggestWidget.border", {dark: ve.V, light: ve.V, hc: ve.V}, U.a("editorSuggestWidgetBorder", "Border color of the suggest widget.")), im = Object(ve.gc)("editorSuggestWidget.foreground", {dark: ve.B, light: ve.B, hc: ve.B}, U.a("editorSuggestWidgetForeground", "Foreground color of the suggest widget.")), om = Object(ve.gc)("editorSuggestWidget.selectedBackground", {dark: ve.xb, light: ve.xb, hc: ve.xb}, U.a("editorSuggestWidgetSelectedBackground", "Background color of the selected entry in the suggest widget.")), rm = Object(ve.gc)("editorSuggestWidget.highlightForeground", {dark: ve.zb, light: ve.zb, hc: ve.zb}, U.a("editorSuggestWidgetHighlightForeground", "Color of the match highlights in the suggest widget.")), sm = /^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i; + const em = Object(Y.e)("suggest-more-info", Y.a.chevronRight), tm = Object(ve.gc)("editorSuggestWidget.background", {dark: ve.U, light: ve.U, hc: ve.U}, U.a("editorSuggestWidgetBackground", "Background color of the suggest widget.")), nm = Object(ve.gc)("editorSuggestWidget.border", {dark: ve.V, light: ve.V, hc: ve.V}, U.a("editorSuggestWidgetBorder", "Border color of the suggest widget.")), im = Object(ve.gc)("editorSuggestWidget.foreground", {dark: ve.B, light: ve.B, hc: ve.B}, U.a("editorSuggestWidgetForeground", "Foreground color of the suggest widget.")), rm = Object(ve.gc)("editorSuggestWidget.selectedBackground", {dark: ve.xb, light: ve.xb, hc: ve.xb}, U.a("editorSuggestWidgetSelectedBackground", "Background color of the selected entry in the suggest widget.")), om = Object(ve.gc)("editorSuggestWidget.highlightForeground", {dark: ve.zb, light: ve.zb, hc: ve.zb}, U.a("editorSuggestWidgetHighlightForeground", "Color of the match highlights in the suggest widget.")), sm = /^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i; function am(e2) { if (!e2) return false; @@ -71209,8 +71208,8 @@ ${Object(zn.b)(wi)} return "suggest-aria-id:" + e2; } let cm = class { - constructor(e2, t2, n2, i2, o2, r2) { - this.widget = e2, this.editor = t2, this.triggerKeybindingLabel = n2, this._modelService = i2, this._modeService = o2, this._themeService = r2; + constructor(e2, t2, n2, i2, r2, o2) { + this.widget = e2, this.editor = t2, this.triggerKeybindingLabel = n2, this._modelService = i2, this._modeService = r2, this._themeService = o2; } get templateId() { return "suggestion"; @@ -71220,29 +71219,29 @@ ${Object(zn.b)(wi)} t2.disposables = new pe.b(), t2.root = e2, t2.root.classList.add("show-file-icons"), t2.icon = Object(ft.p)(e2, Object(ft.a)(".icon")), t2.colorspan = Object(ft.p)(t2.icon, Object(ft.a)("span.colorspan")); const n2 = Object(ft.p)(e2, Object(ft.a)(".contents")), i2 = Object(ft.p)(n2, Object(ft.a)(".main")); t2.iconContainer = Object(ft.p)(i2, Object(ft.a)(".icon-label.codicon")), t2.left = Object(ft.p)(i2, Object(ft.a)("span.left")), t2.right = Object(ft.p)(i2, Object(ft.a)("span.right")), t2.iconLabel = new ca.a(t2.left, {supportHighlights: true, supportCodicons: true}), t2.disposables.add(t2.iconLabel), t2.parametersLabel = Object(ft.p)(t2.left, Object(ft.a)("span.signature-label")), t2.qualifierLabel = Object(ft.p)(t2.left, Object(ft.a)("span.qualifier-label")), t2.detailsLabel = Object(ft.p)(t2.right, Object(ft.a)("span.details-label")), t2.readMore = Object(ft.p)(t2.right, Object(ft.a)("span.readMore" + em.cssSelector)), t2.readMore.title = U.a("readMore", "Read More ({0})", this.triggerKeybindingLabel); - const o2 = () => { - const e3 = this.editor.getOptions(), n3 = e3.get(36), o3 = n3.fontFamily, r2 = n3.fontFeatureSettings, s2 = e3.get(97) || n3.fontSize, a2 = e3.get(98) || n3.lineHeight, l2 = n3.fontWeight, c2 = s2 + "px", d2 = a2 + "px"; - t2.root.style.fontSize = c2, t2.root.style.fontWeight = l2, i2.style.fontFamily = o3, i2.style.fontFeatureSettings = r2, i2.style.lineHeight = d2, t2.icon.style.height = d2, t2.icon.style.width = d2, t2.readMore.style.height = d2, t2.readMore.style.width = d2; + const r2 = () => { + const e3 = this.editor.getOptions(), n3 = e3.get(36), r3 = n3.fontFamily, o2 = n3.fontFeatureSettings, s2 = e3.get(97) || n3.fontSize, a2 = e3.get(98) || n3.lineHeight, l2 = n3.fontWeight, c2 = s2 + "px", d2 = a2 + "px"; + t2.root.style.fontSize = c2, t2.root.style.fontWeight = l2, i2.style.fontFamily = r3, i2.style.fontFeatureSettings = o2, i2.style.lineHeight = d2, t2.icon.style.height = d2, t2.icon.style.width = d2, t2.readMore.style.height = d2, t2.readMore.style.width = d2; }; - return o2(), t2.disposables.add(Lt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((e3) => e3.hasChanged(36) || e3.hasChanged(97) || e3.hasChanged(98)).on(o2, null)), t2; + return r2(), t2.disposables.add(Lt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((e3) => e3.hasChanged(36) || e3.hasChanged(97) || e3.hasChanged(98)).on(r2, null)), t2; } renderElement(e2, t2, n2) { - const i2 = n2, o2 = e2.completion, r2 = typeof o2.label == "string" ? o2.label : o2.label.name; + const i2 = n2, r2 = e2.completion, o2 = typeof r2.label == "string" ? r2.label : r2.label.name; i2.root.id = lm(t2), i2.colorspan.style.backgroundColor = ""; const s2 = {labelEscapeNewLines: true, matches: Object(va.c)(e2.score)}; let a2 = []; - if (o2.kind === 19 && function(e3, t3) { + if (r2.kind === 19 && function(e3, t3) { const n3 = typeof e3.completion.label == "string" ? e3.completion.label : e3.completion.label.name; return n3.match(sm) ? (t3[0] = n3, true) : !(typeof e3.completion.documentation != "string" || !e3.completion.documentation.match(sm)) && (t3[0] = e3.completion.documentation, true); }(e2, a2)) i2.icon.className = "icon customcolor", i2.iconContainer.className = "icon hide", i2.colorspan.style.backgroundColor = a2[0]; - else if (o2.kind === 20 && this._themeService.getFileIconTheme().hasFileIcons) { + else if (r2.kind === 20 && this._themeService.getFileIconTheme().hasFileIcons) { i2.icon.className = "icon hide", i2.iconContainer.className = "icon hide"; - const e3 = Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: r2}), $p.FILE), t3 = Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: o2.detail}), $p.FILE); + const e3 = Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: o2}), $p.FILE), t3 = Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: r2.detail}), $p.FILE); s2.extraClasses = e3.length > t3.length ? e3 : t3; } else - o2.kind === 23 && this._themeService.getFileIconTheme().hasFolderIcons ? (i2.icon.className = "icon hide", i2.iconContainer.className = "icon hide", s2.extraClasses = Object(G.l)([Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: r2}), $p.FOLDER), Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: o2.detail}), $p.FOLDER)])) : (i2.icon.className = "icon hide", i2.iconContainer.className = "", Object(ft.f)(i2.iconContainer, "suggest-icon " + Object(et.F)(o2.kind))); - o2.tags && o2.tags.indexOf(1) >= 0 && (s2.extraClasses = (s2.extraClasses || []).concat(["deprecated"]), s2.matches = []), i2.iconLabel.setLabel(r2, void 0, s2), typeof o2.label == "string" ? (i2.parametersLabel.textContent = "", i2.qualifierLabel.textContent = "", i2.detailsLabel.textContent = (o2.detail || "").replace(/\n.*$/m, ""), i2.root.classList.add("string-label")) : (i2.parametersLabel.textContent = (o2.label.parameters || "").replace(/\n.*$/m, ""), i2.qualifierLabel.textContent = (o2.label.qualifier || "").replace(/\n.*$/m, ""), i2.detailsLabel.textContent = (o2.label.type || "").replace(/\n.*$/m, ""), i2.root.classList.remove("string-label")), am(e2) ? (i2.right.classList.add("can-expand-details"), Object(ft.Z)(i2.readMore), i2.readMore.onmousedown = (e3) => { + r2.kind === 23 && this._themeService.getFileIconTheme().hasFolderIcons ? (i2.icon.className = "icon hide", i2.iconContainer.className = "icon hide", s2.extraClasses = Object(G.l)([Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: o2}), $p.FOLDER), Yp(this._modelService, this._modeService, Qe.a.from({scheme: "fake", path: r2.detail}), $p.FOLDER)])) : (i2.icon.className = "icon hide", i2.iconContainer.className = "", Object(ft.f)(i2.iconContainer, "suggest-icon " + Object(et.F)(r2.kind))); + r2.tags && r2.tags.indexOf(1) >= 0 && (s2.extraClasses = (s2.extraClasses || []).concat(["deprecated"]), s2.matches = []), i2.iconLabel.setLabel(o2, void 0, s2), typeof r2.label == "string" ? (i2.parametersLabel.textContent = "", i2.qualifierLabel.textContent = "", i2.detailsLabel.textContent = (r2.detail || "").replace(/\n.*$/m, ""), i2.root.classList.add("string-label")) : (i2.parametersLabel.textContent = (r2.label.parameters || "").replace(/\n.*$/m, ""), i2.qualifierLabel.textContent = (r2.label.qualifier || "").replace(/\n.*$/m, ""), i2.detailsLabel.textContent = (r2.label.type || "").replace(/\n.*$/m, ""), i2.root.classList.remove("string-label")), am(e2) ? (i2.right.classList.add("can-expand-details"), Object(ft.Z)(i2.readMore), i2.readMore.onmousedown = (e3) => { e3.stopPropagation(), e3.preventDefault(); }, i2.readMore.onclick = (e3) => { e3.stopPropagation(), e3.preventDefault(), this.widget.toggleDetails(); @@ -71254,8 +71253,8 @@ ${Object(zn.b)(wi)} }; cm = Xp([Qp(3, tt.a), Qp(4, Nl.a), Qp(5, we.c)], cm); class dm { - constructor(e2, t2, n2, i2, o2) { - this.widget = t2, this.editor = n2, this.markdownRenderer = i2, this.kbToggleDetails = o2, this.borderWidth = 1, this.disposables = new pe.b(), this.el = Object(ft.p)(e2, Object(ft.a)(".details")), this.disposables.add(Object(pe.h)(() => e2.removeChild(this.el))), this.body = Object(ft.a)(".body"), this.scrollbar = new Bl.a(this.body, {}), Object(ft.p)(this.el, this.scrollbar.getDomNode()), this.disposables.add(this.scrollbar), this.header = Object(ft.p)(this.body, Object(ft.a)(".header")), this.close = Object(ft.p)(this.header, Object(ft.a)("span" + Y.a.close.cssSelector)), this.close.title = U.a("readLess", "Read Less ({0})", this.kbToggleDetails), this.type = Object(ft.p)(this.header, Object(ft.a)("p.type")), this.docs = Object(ft.p)(this.body, Object(ft.a)("p.docs")), this.configureFont(), Lt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((e3) => e3.hasChanged(36)).on(this.configureFont, this, this.disposables), i2.onDidRenderCodeBlock(() => this.scrollbar.scanDomNode(), this, this.disposables); + constructor(e2, t2, n2, i2, r2) { + this.widget = t2, this.editor = n2, this.markdownRenderer = i2, this.kbToggleDetails = r2, this.borderWidth = 1, this.disposables = new pe.b(), this.el = Object(ft.p)(e2, Object(ft.a)(".details")), this.disposables.add(Object(pe.h)(() => e2.removeChild(this.el))), this.body = Object(ft.a)(".body"), this.scrollbar = new Bl.a(this.body, {}), Object(ft.p)(this.el, this.scrollbar.getDomNode()), this.disposables.add(this.scrollbar), this.header = Object(ft.p)(this.body, Object(ft.a)(".header")), this.close = Object(ft.p)(this.header, Object(ft.a)("span" + Y.a.close.cssSelector)), this.close.title = U.a("readLess", "Read Less ({0})", this.kbToggleDetails), this.type = Object(ft.p)(this.header, Object(ft.a)("p.type")), this.docs = Object(ft.p)(this.body, Object(ft.a)("p.docs")), this.configureFont(), Lt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((e3) => e3.hasChanged(36)).on(this.configureFont, this, this.disposables), i2.onDidRenderCodeBlock(() => this.scrollbar.scanDomNode(), this, this.disposables); } get element() { return this.el; @@ -71310,19 +71309,19 @@ ${Object(zn.b)(wi)} this.borderWidth = e2; } configureFont() { - const e2 = this.editor.getOptions(), t2 = e2.get(36), n2 = t2.fontFamily, i2 = e2.get(97) || t2.fontSize, o2 = e2.get(98) || t2.lineHeight, r2 = t2.fontWeight, s2 = i2 + "px", a2 = o2 + "px"; - this.el.style.fontSize = s2, this.el.style.fontWeight = r2, this.el.style.fontFeatureSettings = t2.fontFeatureSettings, this.type.style.fontFamily = n2, this.close.style.height = a2, this.close.style.width = a2; + const e2 = this.editor.getOptions(), t2 = e2.get(36), n2 = t2.fontFamily, i2 = e2.get(97) || t2.fontSize, r2 = e2.get(98) || t2.lineHeight, o2 = t2.fontWeight, s2 = i2 + "px", a2 = r2 + "px"; + this.el.style.fontSize = s2, this.el.style.fontWeight = o2, this.el.style.fontFeatureSettings = t2.fontFeatureSettings, this.type.style.fontFamily = n2, this.close.style.height = a2, this.close.style.width = a2; } dispose() { this.disposables.dispose(), Object(pe.f)(this.renderDisposeable), this.renderDisposeable = void 0; } } let hm = class e2 { - constructor(e3, t2, n2, i2, o2, r2, s2, a2, l2, c2) { + constructor(e3, t2, n2, i2, r2, o2, s2, a2, l2, c2) { var d2, h2; this.editor = e3, this.telemetryService = t2, this.allowEditorOverflow = true, this.suppressMouseDown = false, this.state = 0, this.isAddedAsContentWidget = false, this.isAuto = false, this.loadingTimeout = pe.a.None, this.currentSuggestionDetails = null, this.ignoreFocusEvents = false, this.completionModel = null, this.showTimeout = new ue.e(), this.toDispose = new pe.b(), this.onDidSelectEmitter = new Lt.a(), this.onDidFocusEmitter = new Lt.a(), this.onDidHideEmitter = new Lt.a(), this.onDidShowEmitter = new Lt.a(), this.onDidSelect = this.onDidSelectEmitter.event, this.onDidFocus = this.onDidFocusEmitter.event, this.onDidHide = this.onDidHideEmitter.event, this.onDidShow = this.onDidShowEmitter.event, this.maxWidgetWidth = 660, this.listWidth = 330, this.firstFocusInCurrentList = false, this.preferDocPositionTop = false, this.docsPositionPreviousWidgetY = null, this.explainMode = false, this._onDetailsKeydown = new Lt.a(), this.onDetailsKeyDown = this._onDetailsKeydown.event; const u2 = this.toDispose.add(new Bc(e3, s2, a2)), p2 = (h2 = (d2 = n2.lookupKeybinding("toggleSuggestionDetails")) === null || d2 === void 0 ? void 0 : d2.getLabel()) !== null && h2 !== void 0 ? h2 : ""; - this.isAuto = false, this.focusedItem = null, this.storageService = r2, this.element = Object(ft.a)(".editor-widget.suggest-widget"), this.toDispose.add(Object(ft.i)(this.element, "click", (e4) => { + this.isAuto = false, this.focusedItem = null, this.storageService = o2, this.element = Object(ft.a)(".editor-widget.suggest-widget"), this.toDispose.add(Object(ft.i)(this.element, "click", (e4) => { e4.target === this.element && this.hideWidget(); })), this.messageElement = Object(ft.p)(this.element, Object(ft.a)(".message")), this.listElement = Object(ft.p)(this.element, Object(ft.a)(".tree")); const m2 = () => this.element.classList.toggle("with-status-bar", this.editor.getOption(96).statusBar.visible); @@ -71353,13 +71352,13 @@ ${Object(zn.b)(wi)} this.list = new Kp.c("SuggestWidget", this.listElement, this, [w2], {useShadows: false, mouseSupport: false, accessibilityProvider: {getRole: () => "option", getAriaLabel: (e4) => { const t3 = typeof e4.completion.label == "string" ? e4.completion.label : e4.completion.label.name; if (e4.isResolved && this.expandDocsSettingFromStorage()) { - const {documentation: n3, detail: i3} = e4.completion, o3 = Ye.x("{0}{1}", i3 || "", n3 ? typeof n3 == "string" ? n3 : n3.value : ""); - return U.a("ariaCurrenttSuggestionReadDetails", "{0}, docs: {1}", t3, o3); + const {documentation: n3, detail: i3} = e4.completion, r3 = Ye.x("{0}{1}", i3 || "", n3 ? typeof n3 == "string" ? n3 : n3.value : ""); + return U.a("ariaCurrenttSuggestionReadDetails", "{0}, docs: {1}", t3, r3); } return t3; - }, getWidgetAriaLabel: () => U.a("suggest", "Suggest"), getWidgetRole: () => "listbox"}}), this.toDispose.add(Object(ua.b)(this.list, o2, {listInactiveFocusBackground: om, listInactiveFocusOutline: ve.b})), this.toDispose.add(o2.onDidColorThemeChange((e4) => this.onThemeChange(e4))), this.toDispose.add(e3.onDidLayoutChange(() => this.onEditorLayoutChange())), this.toDispose.add(this.list.onMouseDown((e4) => this.onListMouseDownOrTap(e4))), this.toDispose.add(this.list.onTap((e4) => this.onListMouseDownOrTap(e4))), this.toDispose.add(this.list.onDidChangeSelection((e4) => this.onListSelection(e4))), this.toDispose.add(this.list.onDidChangeFocus((e4) => this.onListFocus(e4))), this.toDispose.add(this.editor.onDidChangeCursorSelection(() => this.onCursorSelectionChanged())), this.toDispose.add(this.editor.onDidChangeConfiguration((e4) => { + }, getWidgetAriaLabel: () => U.a("suggest", "Suggest"), getWidgetRole: () => "listbox"}}), this.toDispose.add(Object(ua.b)(this.list, r2, {listInactiveFocusBackground: rm, listInactiveFocusOutline: ve.b})), this.toDispose.add(r2.onDidColorThemeChange((e4) => this.onThemeChange(e4))), this.toDispose.add(e3.onDidLayoutChange(() => this.onEditorLayoutChange())), this.toDispose.add(this.list.onMouseDown((e4) => this.onListMouseDownOrTap(e4))), this.toDispose.add(this.list.onTap((e4) => this.onListMouseDownOrTap(e4))), this.toDispose.add(this.list.onDidChangeSelection((e4) => this.onListSelection(e4))), this.toDispose.add(this.list.onDidChangeFocus((e4) => this.onListFocus(e4))), this.toDispose.add(this.editor.onDidChangeCursorSelection(() => this.onCursorSelectionChanged())), this.toDispose.add(this.editor.onDidChangeConfiguration((e4) => { e4.hasChanged(96) && (m2(), v2()); - })), this.ctxSuggestWidgetVisible = Su.Visible.bindTo(i2), this.ctxSuggestWidgetDetailsVisible = Su.DetailsVisible.bindTo(i2), this.ctxSuggestWidgetMultipleSuggestions = Su.MultipleSuggestions.bindTo(i2), this.onThemeChange(o2.getColorTheme()), this.toDispose.add(Object(ft.n)(this.details.element, "keydown", (e4) => { + })), this.ctxSuggestWidgetVisible = Su.Visible.bindTo(i2), this.ctxSuggestWidgetDetailsVisible = Su.DetailsVisible.bindTo(i2), this.ctxSuggestWidgetMultipleSuggestions = Su.MultipleSuggestions.bindTo(i2), this.onThemeChange(r2.getColorTheme()), this.toDispose.add(Object(ft.n)(this.details.element, "keydown", (e4) => { this._onDetailsKeydown.fire(e4); })), this.toDispose.add(this.editor.onMouseDown((e4) => this.onEditorMouseDown(e4))); } @@ -71438,9 +71437,9 @@ ${Object(zn.b)(wi)} showSuggestions(e3, t2, n2, i2) { if (this.preferDocPositionTop = false, this.docsPositionPreviousWidgetY = null, this.loadingTimeout.dispose(), this.currentSuggestionDetails && (this.currentSuggestionDetails.cancel(), this.currentSuggestionDetails = null), this.completionModel !== e3 && (this.completionModel = e3), n2 && this.state !== 2 && this.state !== 0) return void this.setState(4); - let o2 = this.completionModel.items.length; - const r2 = o2 === 0; - if (this.ctxSuggestWidgetMultipleSuggestions.set(o2 > 1), r2) + let r2 = this.completionModel.items.length; + const o2 = r2 === 0; + if (this.ctxSuggestWidgetMultipleSuggestions.set(r2 > 1), o2) i2 ? this.setState(0) : this.setState(2), this.completionModel = null; else { if (this.state !== 3) { @@ -71581,10 +71580,10 @@ ${Object(zn.b)(wi)} adjustDocsPosition() { if (!this.editor.hasModel()) return; - const e3 = this.editor.getOption(51), t2 = this.editor.getScrolledVisiblePosition(this.editor.getPosition()), n2 = Object(ft.C)(this.editor.getDomNode()), i2 = n2.left + t2.left, o2 = n2.top + t2.top + t2.height, r2 = Object(ft.C)(this.element), s2 = r2.left, a2 = r2.top; + const e3 = this.editor.getOption(51), t2 = this.editor.getScrolledVisiblePosition(this.editor.getPosition()), n2 = Object(ft.C)(this.editor.getDomNode()), i2 = n2.left + t2.left, r2 = n2.top + t2.top + t2.height, o2 = Object(ft.C)(this.element), s2 = o2.left, a2 = o2.top; if (this.docsPositionPreviousWidgetY && this.docsPositionPreviousWidgetY < a2 && !this.preferDocPositionTop) return this.preferDocPositionTop = true, void this.adjustDocsPosition(); - this.docsPositionPreviousWidgetY = a2, s2 < i2 - this.listWidth ? this.element.classList.add("list-right") : this.element.classList.remove("list-right"), this.element.classList.contains("docs-side") && o2 - e3 > a2 && this.details.element.offsetHeight > this.listElement.offsetHeight && (this.listElement.style.marginTop = this.details.element.offsetHeight - this.listElement.offsetHeight + "px"); + this.docsPositionPreviousWidgetY = a2, s2 < i2 - this.listWidth ? this.element.classList.add("list-right") : this.element.classList.remove("list-right"), this.element.classList.contains("docs-side") && r2 - e3 > a2 && this.details.element.offsetHeight > this.listElement.offsetHeight && (this.listElement.style.marginTop = this.details.element.offsetHeight - this.listElement.offsetHeight + "px"); } expandSideOrBelow() { if (!am(this.focusedItem) && this.firstFocusInCurrentList) @@ -71616,23 +71615,23 @@ ${Object(zn.b)(wi)} } }; hm.ID = "editor.widget.suggestWidget", hm.LOADING_MESSAGE = U.a("suggestWidget.loading", "Loading..."), hm.NO_SUGGESTIONS_MESSAGE = U.a("suggestWidget.noSuggestions", "No suggestions."), hm = Xp([Qp(1, Bt.a), Qp(2, vt.a), Qp(3, K.b), Qp(4, we.c), Qp(5, fn.a), Qp(6, Nl.a), Qp(7, Vl.a), Qp(8, ye.a), Qp(9, gt.a)], hm), Object(we.g)((e2, t2) => { - const n2 = e2.getColor(rm); + const n2 = e2.getColor(om); n2 && t2.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${n2}; }`); const i2 = e2.getColor(im); i2 && t2.addRule(`.monaco-editor .suggest-widget { color: ${i2}; }`); - const o2 = e2.getColor(ve.rc); - o2 && t2.addRule(`.monaco-editor .suggest-widget a { color: ${o2}; }`); - const r2 = e2.getColor(ve.qc); - r2 && t2.addRule(`.monaco-editor .suggest-widget code { background-color: ${r2}; }`); + const r2 = e2.getColor(ve.rc); + r2 && t2.addRule(`.monaco-editor .suggest-widget a { color: ${r2}; }`); + const o2 = e2.getColor(ve.qc); + o2 && t2.addRule(`.monaco-editor .suggest-widget code { background-color: ${o2}; }`); }); var um = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, pm = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -71675,7 +71674,7 @@ ${Object(zn.b)(wi)} return void this.reset(); if (this._active && this._active.item.item === e2.item) return; - const t2 = new Dr.b(); + const t2 = new Oo.b(); for (const n2 of e2.item.completion.commitCharacters) n2.length > 0 && t2.add(n2.charCodeAt(0)); this._active = {acceptCharacters: t2, item: e2}; @@ -71704,12 +71703,12 @@ ${Object(zn.b)(wi)} if (!i2) return; this._lastOvertyped = []; - const o2 = e2.getModel(); + const r2 = e2.getModel(); for (let e3 = 0; e3 < n2; e3++) { const n3 = t3[e3]; - if (o2.getValueLengthInRange(n3) > fm._maxSelectionLength) + if (r2.getValueLengthInRange(n3) > fm._maxSelectionLength) return; - this._lastOvertyped[e3] = {value: o2.getValueInRange(n3), multiline: n3.startLineNumber !== n3.endLineNumber}; + this._lastOvertyped[e3] = {value: r2.getValueInRange(n3), multiline: n3.startLineNumber !== n3.endLineNumber}; } this._empty = false; })), this._disposables.add(t2.onDidCancel((e3) => { @@ -71726,13 +71725,13 @@ ${Object(zn.b)(wi)} } fm._maxSelectionLength = 51200; var bm = n(158), _m = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, vm = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -71760,28 +71759,28 @@ ${Object(zn.b)(wi)} } } let ym = class e2 { - constructor(e3, t2, n2, i2, o2, r2, s2, a2) { - this._memoryService = n2, this._commandService = i2, this._contextKeyService = o2, this._instantiationService = r2, this._logService = s2, this._lineSuffix = new pe.d(), this._toDispose = new pe.b(), this.editor = e3, this.model = new up(this.editor, t2, a2), this.widget = this._toDispose.add(new ue.b(() => { + constructor(e3, t2, n2, i2, r2, o2, s2, a2) { + this._memoryService = n2, this._commandService = i2, this._contextKeyService = r2, this._instantiationService = o2, this._logService = s2, this._lineSuffix = new pe.d(), this._toDispose = new pe.b(), this.editor = e3, this.model = new up(this.editor, t2, a2), this.widget = this._toDispose.add(new ue.b(() => { const e4 = this._instantiationService.createInstance(hm, this.editor); this._toDispose.add(e4), this._toDispose.add(e4.onDidSelect((e5) => this._insertSuggestion(e5, 0), this)); const t3 = new gm(this.editor, e4, (e5) => this._insertSuggestion(e5, 2)); this._toDispose.add(t3), this._toDispose.add(this.model.onDidSuggest((e5) => { e5.completionModel.items.length === 0 && t3.reset(); })); - const n3 = Su.MakesTextEdit.bindTo(this._contextKeyService), i3 = Su.HasInsertAndReplaceRange.bindTo(this._contextKeyService), o3 = Su.CanResolve.bindTo(this._contextKeyService); + const n3 = Su.MakesTextEdit.bindTo(this._contextKeyService), i3 = Su.HasInsertAndReplaceRange.bindTo(this._contextKeyService), r3 = Su.CanResolve.bindTo(this._contextKeyService); return this._toDispose.add(Object(pe.h)(() => { - n3.reset(), i3.reset(), o3.reset(); + n3.reset(), i3.reset(), r3.reset(); })), this._toDispose.add(e4.onDidFocus(({item: e5}) => { - const t4 = this.editor.getPosition(), r3 = e5.editStart.column, s3 = t4.column; + const t4 = this.editor.getPosition(), o3 = e5.editStart.column, s3 = t4.column; let a3 = true; - if (!(this.editor.getOption(1) !== "smart" || this.model.state !== 2 || e5.completion.command || e5.completion.additionalTextEdits || 4 & e5.completion.insertTextRules || s3 - r3 !== e5.completion.insertText.length)) { - a3 = this.editor.getModel().getValueInRange({startLineNumber: t4.lineNumber, startColumn: r3, endLineNumber: t4.lineNumber, endColumn: s3}) !== e5.completion.insertText; + if (!(this.editor.getOption(1) !== "smart" || this.model.state !== 2 || e5.completion.command || e5.completion.additionalTextEdits || 4 & e5.completion.insertTextRules || s3 - o3 !== e5.completion.insertText.length)) { + a3 = this.editor.getModel().getValueInRange({startLineNumber: t4.lineNumber, startColumn: o3, endLineNumber: t4.lineNumber, endColumn: s3}) !== e5.completion.insertText; } - n3.set(a3), i3.set(!me.a.equals(e5.editInsertEnd, e5.editReplaceEnd)), o3.set(Boolean(e5.provider.resolveCompletionItem) || Boolean(e5.completion.documentation) || e5.completion.detail !== e5.completion.label); + n3.set(a3), i3.set(!me.a.equals(e5.editInsertEnd, e5.editReplaceEnd)), r3.set(Boolean(e5.provider.resolveCompletionItem) || Boolean(e5.completion.documentation) || e5.completion.detail !== e5.completion.label); })), this._toDispose.add(e4.onDetailsKeyDown((e5) => { e5.toKeybinding().equals(new $.e(true, false, false, false, 33)) || Ae.f && e5.toKeybinding().equals(new $.e(false, false, false, true, 33)) ? e5.stopPropagation() : e5.toKeybinding().isModifierKey() || this.editor.focus(); })), e4; - })), this._overtypingCapturer = this._toDispose.add(new ue.b(() => this._toDispose.add(new fm(this.editor, this.model)))), this._alternatives = this._toDispose.add(new ue.b(() => this._toDispose.add(new sp(this.editor, this._contextKeyService)))), this._toDispose.add(r2.createInstance(mm, e3)), this._toDispose.add(this.model.onDidTrigger((e4) => { + })), this._overtypingCapturer = this._toDispose.add(new ue.b(() => this._toDispose.add(new fm(this.editor, this.model)))), this._alternatives = this._toDispose.add(new ue.b(() => this._toDispose.add(new sp(this.editor, this._contextKeyService)))), this._toDispose.add(o2.createInstance(mm, e3)), this._toDispose.add(this.model.onDidTrigger((e4) => { this.widget.value.showTriggered(e4.auto, e4.shy ? 250 : 50), this._lineSuffix.value = new wm(this.editor.getModel(), e4.position); })), this._toDispose.add(this.model.onDidSuggest((e4) => { if (!e4.shy) { @@ -71793,7 +71792,7 @@ ${Object(zn.b)(wi)} })), this._toDispose.add(this.editor.onDidBlurEditorWidget(() => { this.model.cancel(), this.model.clear(); })); - let l2 = Su.AcceptSuggestionsOnEnter.bindTo(o2), c2 = () => { + let l2 = Su.AcceptSuggestionsOnEnter.bindTo(r2), c2 = () => { const e4 = this.editor.getOption(1); l2.set(e4 === "on" || e4 === "smart"); }; @@ -71810,13 +71809,13 @@ ${Object(zn.b)(wi)} return this._alternatives.value.reset(), this.model.cancel(), void this.model.clear(); if (!this.editor.hasModel()) return; - const n2 = this.editor.getModel(), i2 = n2.getAlternativeVersionId(), {item: o2} = e3, r2 = [], s2 = new Xe.b(); + const n2 = this.editor.getModel(), i2 = n2.getAlternativeVersionId(), {item: r2} = e3, o2 = [], s2 = new Xe.b(); 1 & t2 || this.editor.pushUndoStop(); - const a2 = this.getOverwriteInfo(o2, Boolean(8 & t2)); - if (this._memoryService.memorize(n2, this.editor.getPosition(), o2), Array.isArray(o2.completion.additionalTextEdits)) { + const a2 = this.getOverwriteInfo(r2, Boolean(8 & t2)); + if (this._memoryService.memorize(n2, this.editor.getPosition(), r2), Array.isArray(r2.completion.additionalTextEdits)) { const e4 = Je.c.capture(this.editor); - this.editor.executeEdits("suggestController.additionalTextEdits.sync", o2.completion.additionalTextEdits.map((e5) => Mn.a.replace(ge.a.lift(e5.range), e5.text))), e4.restoreRelativeVerticalPositionOfCursor(this.editor); - } else if (!o2.isResolved) { + this.editor.executeEdits("suggestController.additionalTextEdits.sync", r2.completion.additionalTextEdits.map((e5) => Mn.a.replace(ge.a.lift(e5.range), e5.text))), e4.restoreRelativeVerticalPositionOfCursor(this.editor); + } else if (!r2.isResolved) { const e4 = new bm.a(true); let i3; const a3 = n2.onDidChangeContent((e5) => { @@ -71832,34 +71831,34 @@ ${Object(zn.b)(wi)} let c2 = false, d2 = this.editor.onWillType(() => { d2.dispose(), c2 = true, 2 & l3 || this.editor.pushUndoStop(); }); - r2.push(o2.resolve(s2.token).then(() => { - if (!o2.completion.additionalTextEdits || s2.token.isCancellationRequested) + o2.push(r2.resolve(s2.token).then(() => { + if (!r2.completion.additionalTextEdits || s2.token.isCancellationRequested) return false; - if (i3 && o2.completion.additionalTextEdits.some((e6) => me.a.isBefore(i3, ge.a.getStartPosition(e6.range)))) + if (i3 && r2.completion.additionalTextEdits.some((e6) => me.a.isBefore(i3, ge.a.getStartPosition(e6.range)))) return false; c2 && this.editor.pushUndoStop(); const e5 = Je.c.capture(this.editor); - return this.editor.executeEdits("suggestController.additionalTextEdits.async", o2.completion.additionalTextEdits.map((e6) => Mn.a.replace(ge.a.lift(e6.range), e6.text))), e5.restoreRelativeVerticalPositionOfCursor(this.editor), !c2 && 2 & l3 || this.editor.pushUndoStop(), true; + return this.editor.executeEdits("suggestController.additionalTextEdits.async", r2.completion.additionalTextEdits.map((e6) => Mn.a.replace(ge.a.lift(e6.range), e6.text))), e5.restoreRelativeVerticalPositionOfCursor(this.editor), !c2 && 2 & l3 || this.editor.pushUndoStop(), true; }).then((t3) => { this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)", e4.elapsed(), t3), a3.dispose(), d2.dispose(); })); } - let {insertText: l2} = o2.completion; - 4 & o2.completion.insertTextRules || (l2 = Cu.escape(l2)), Zu.get(this.editor).insert(l2, {overwriteBefore: a2.overwriteBefore, overwriteAfter: a2.overwriteAfter, undoStopBefore: false, undoStopAfter: false, adjustWhitespace: !(1 & o2.completion.insertTextRules), clipboardText: e3.model.clipboardText, overtypingCapturer: this._overtypingCapturer.value}), 2 & t2 || this.editor.pushUndoStop(), o2.completion.command ? o2.completion.command.id === Cm.id ? this.model.trigger({auto: true, shy: false}, true) : (r2.push(this._commandService.executeCommand(o2.completion.command.id, ...o2.completion.command.arguments ? [...o2.completion.command.arguments] : []).catch(Z.e)), this.model.cancel()) : this.model.cancel(), 4 & t2 && this._alternatives.value.set(e3, (e4) => { + let {insertText: l2} = r2.completion; + 4 & r2.completion.insertTextRules || (l2 = Cu.escape(l2)), Zu.get(this.editor).insert(l2, {overwriteBefore: a2.overwriteBefore, overwriteAfter: a2.overwriteAfter, undoStopBefore: false, undoStopAfter: false, adjustWhitespace: !(1 & r2.completion.insertTextRules), clipboardText: e3.model.clipboardText, overtypingCapturer: this._overtypingCapturer.value}), 2 & t2 || this.editor.pushUndoStop(), r2.completion.command ? r2.completion.command.id === Cm.id ? this.model.trigger({auto: true, shy: false}, true) : (o2.push(this._commandService.executeCommand(r2.completion.command.id, ...r2.completion.command.arguments ? [...r2.completion.command.arguments] : []).catch(Z.e)), this.model.cancel()) : this.model.cancel(), 4 & t2 && this._alternatives.value.set(e3, (e4) => { for (s2.cancel(); n2.canUndo(); ) { i2 !== n2.getAlternativeVersionId() && n2.undo(), this._insertSuggestion(e4, 3 | (8 & t2 ? 8 : 0)); break; } - }), this._alertCompletionItem(o2), Promise.all(r2).finally(() => { + }), this._alertCompletionItem(r2), Promise.all(o2).finally(() => { this.model.clear(), s2.dispose(); }); } getOverwriteInfo(e3, t2) { - Object(Jo.b)(this.editor.hasModel()); + Object(Qr.b)(this.editor.hasModel()); let n2 = this.editor.getOption(96).insertMode === "replace"; t2 && (n2 = !n2); - const i2 = e3.position.column - e3.editStart.column, o2 = (n2 ? e3.editReplaceEnd.column : e3.editInsertEnd.column) - e3.position.column; - return {overwriteBefore: i2 + (this.editor.getPosition().column - e3.position.column), overwriteAfter: o2 + (this._lineSuffix.value ? this._lineSuffix.value.delta(this.editor.getPosition()) : 0)}; + const i2 = e3.position.column - e3.editStart.column, r2 = (n2 ? e3.editReplaceEnd.column : e3.editInsertEnd.column) - e3.position.column; + return {overwriteBefore: i2 + (this.editor.getPosition().column - e3.position.column), overwriteAfter: r2 + (this._lineSuffix.value ? this._lineSuffix.value.delta(this.editor.getPosition()) : 0)}; } _alertCompletionItem({completion: e3}) { const t2 = typeof e3.label == "string" ? e3.label : e3.label.name; @@ -71891,8 +71890,8 @@ ${Object(zn.b)(wi)} }, void 0, t3), this.model.onDidSuggest(({completionModel: e5}) => { if (Object(pe.f)(t3), e5.items.length === 0) return void n2(); - const o2 = this._memoryService.select(this.editor.getModel(), this.editor.getPosition(), e5.items), r2 = e5.items[o2]; - i2(r2) ? (this.editor.pushUndoStop(), this._insertSuggestion({index: o2, item: r2, model: e5}, 7)) : n2(); + const r2 = this._memoryService.select(this.editor.getModel(), this.editor.getPosition(), e5.items), o2 = e5.items[r2]; + i2(o2) ? (this.editor.pushUndoStop(), this._insertSuggestion({index: r2, item: o2, model: e5}, 7)) : n2(); }, void 0, t3); }), this.model.trigger({auto: false, shy: true}), this.editor.revealLine(t2.lineNumber, 0), this.editor.focus(); } @@ -71938,7 +71937,7 @@ ${Object(zn.b)(wi)} this.widget.value.toggleDetailsFocus(); } }; - ym.ID = "editor.contrib.suggestController", ym = _m([vm(1, Ar.a), vm(2, ip), vm(3, Ft.b), vm(4, K.b), vm(5, gt.a), vm(6, Kh.b), vm(7, Pe.a)], ym); + ym.ID = "editor.contrib.suggestController", ym = _m([vm(1, Ao.a), vm(2, ip), vm(3, Ft.b), vm(4, K.b), vm(5, gt.a), vm(6, Kh.b), vm(7, Pe.a)], ym); class Cm extends V.b { constructor() { super({id: Cm.id, label: U.a("suggest.trigger.label", "Trigger Suggest"), alias: "Trigger Suggest", precondition: K.a.and(H.a.writable, H.a.hasCompletionItemProvider), kbOpts: {kbExpr: H.a.textInputFocus, primary: 2058, mac: {primary: 266, secondary: [521]}, weight: 100}}); @@ -71955,7 +71954,7 @@ ${Object(zn.b)(wi)} }})), Zi.a.registerKeybindingRule({id: "acceptSelectedSuggestion", when: K.a.and(Su.Visible, H.a.textInputFocus), primary: 2, weight: 190}), Zi.a.registerKeybindingRule({id: "acceptSelectedSuggestion", when: K.a.and(Su.Visible, H.a.textInputFocus, Su.AcceptSuggestionsOnEnter, Su.MakesTextEdit), primary: 3, weight: 190}), ye.d.appendMenuItem(ku, {command: {id: "acceptSelectedSuggestion", title: U.a({key: "accept.accept", comment: ['{0} will be a keybinding, e.g "Enter to insert"']}, "{0} to insert")}, group: "left", order: 1, when: Su.HasInsertAndReplaceRange.toNegated()}), ye.d.appendMenuItem(ku, {command: {id: "acceptSelectedSuggestion", title: U.a({key: "accept.insert", comment: ['{0} will be a keybinding, e.g "Enter to insert"']}, "{0} to insert")}, group: "left", order: 1, when: K.a.and(Su.HasInsertAndReplaceRange, K.a.equals("config.editor.suggest.insertMode", "insert"))}), ye.d.appendMenuItem(ku, {command: {id: "acceptSelectedSuggestion", title: U.a({key: "accept.replace", comment: ['{0} will be a keybinding, e.g "Enter to replace"']}, "{0} to replace")}, group: "left", order: 1, when: K.a.and(Su.HasInsertAndReplaceRange, K.a.equals("config.editor.suggest.insertMode", "replace"))}), Object(V.l)(new xm({id: "acceptAlternativeSelectedSuggestion", precondition: K.a.and(Su.Visible, H.a.textInputFocus), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 1027, secondary: [1026]}, handler(e2) { e2.acceptSelectedSuggestion(false, true); }, menuOpts: [{menuId: ku, group: "left", order: 2, when: K.a.and(Su.HasInsertAndReplaceRange, K.a.equals("config.editor.suggest.insertMode", "insert")), title: U.a({key: "accept.replace", comment: ['{0} will be a keybinding, e.g "Enter to replace"']}, "{0} to replace")}, {menuId: ku, group: "left", order: 2, when: K.a.and(Su.HasInsertAndReplaceRange, K.a.equals("config.editor.suggest.insertMode", "replace")), title: U.a({key: "accept.insert", comment: ['{0} will be a keybinding, e.g "Enter to insert"']}, "{0} to insert")}]})), Ft.a.registerCommandAlias("acceptSelectedSuggestionOnEnter", "acceptSelectedSuggestion"), Object(V.l)(new xm({id: "hideSuggestWidget", precondition: Su.Visible, handler: (e2) => e2.cancelSuggestWidget(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 9, secondary: [1033]}})), Object(V.l)(new xm({id: "selectNextSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectNextSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 18, secondary: [2066], mac: {primary: 18, secondary: [2066, 300]}}})), Object(V.l)(new xm({id: "selectNextPageSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectNextPageSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 12, secondary: [2060]}})), Object(V.l)(new xm({id: "selectLastSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectLastSuggestion()})), Object(V.l)(new xm({id: "selectPrevSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectPrevSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 16, secondary: [2064], mac: {primary: 16, secondary: [2064, 302]}}})), Object(V.l)(new xm({id: "selectPrevPageSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectPrevPageSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 11, secondary: [2059]}})), Object(V.l)(new xm({id: "selectFirstSuggestion", precondition: K.a.and(Su.Visible, Su.MultipleSuggestions), handler: (e2) => e2.selectFirstSuggestion()})), Object(V.l)(new xm({id: "toggleSuggestionDetails", precondition: Su.Visible, handler: (e2) => e2.toggleSuggestionDetails(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 2058, mac: {primary: 266}}, menuOpts: [{menuId: ku, group: "right", order: 1, when: K.a.and(Su.DetailsVisible, Su.CanResolve), title: U.a("detail.more", "show less")}, {menuId: ku, group: "right", order: 1, when: K.a.and(Su.DetailsVisible.toNegated(), Su.CanResolve), title: U.a("detail.less", "show more")}]})), Object(V.l)(new xm({id: "toggleExplainMode", precondition: Su.Visible, handler: (e2) => e2.toggleExplainMode(), kbOpts: {weight: 100, primary: 2133}})), Object(V.l)(new xm({id: "toggleSuggestionFocus", precondition: Su.Visible, handler: (e2) => e2.toggleSuggestionFocus(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 2570, mac: {primary: 778}}})), Object(V.l)(new xm({id: "insertBestCompletion", precondition: K.a.and(H.a.textInputFocus, K.a.equals("config.editor.tabCompletion", "on"), mm.AtEnd, Su.Visible.toNegated(), sp.OtherSuggestions.toNegated(), Zu.InSnippetMode.toNegated()), handler: (e2, t2) => { - e2.triggerSuggestAndAcceptBest(Object(Jo.i)(t2) ? Object.assign({fallback: "tab"}, t2) : {fallback: "tab"}); + e2.triggerSuggestAndAcceptBest(Object(Qr.i)(t2) ? Object.assign({fallback: "tab"}, t2) : {fallback: "tab"}); }, kbOpts: {weight: 190, primary: 2}})), Object(V.l)(new xm({id: "insertNextSuggestion", precondition: K.a.and(H.a.textInputFocus, K.a.equals("config.editor.tabCompletion", "on"), sp.OtherSuggestions, Su.Visible.toNegated(), Zu.InSnippetMode.toNegated()), handler: (e2) => e2.acceptNextSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 2}})), Object(V.l)(new xm({id: "insertPrevSuggestion", precondition: K.a.and(H.a.textInputFocus, K.a.equals("config.editor.tabCompletion", "on"), sp.OtherSuggestions, Su.Visible.toNegated(), Zu.InSnippetMode.toNegated()), handler: (e2) => e2.acceptPrevSuggestion(), kbOpts: {weight: 190, kbExpr: H.a.textInputFocus, primary: 1026}})); class Sm extends V.b { constructor() { @@ -71983,43 +71982,43 @@ ${Object(zn.b)(wi)} } Em.ID = "editor.action.toggleTabFocusMode", Object(V.k)(Em); var Tm = n(171), Lm = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Nm = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, Im = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - let Om = class extends pe.a { + let Dm = class extends pe.a { constructor(e2, t2, n2) { super(), this._editor = e2, this._dialogService = t2, this._codeEditorService = n2, this._config = this._editor.getOption(103), this._register(this._editor.onDidChangeConfiguration((e3) => { e3.hasChanged(103) && (this._config = this._editor.getOption(103), this._checkForUnusualLineTerminators()); @@ -72052,15 +72051,15 @@ ${Object(zn.b)(wi)} }); } }; - Om.ID = "editor.contrib.unusualLineTerminatorsDetector", Om = Lm([Nm(1, Tm.a), Nm(2, Me.a)], Om), Object(V.m)(Om.ID, Om); - var Dm = n(184), Am = n(183), Rm = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + Dm.ID = "editor.contrib.unusualLineTerminatorsDetector", Dm = Lm([Nm(1, Tm.a), Nm(2, Me.a)], Dm), Object(V.m)(Dm.ID, Dm); + var Om = n(184), Am = n(183), Rm = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Mm = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -72107,25 +72106,25 @@ ${Object(zn.b)(wi)} const n2 = e2._getSemanticColoringProvider(t2); if (!n2) return; - const i2 = this._modelService.getSemanticTokensProviderStyling(n2), o2 = this._editor.getVisibleRangesPlusViewportAboveBelow(); - this._outstandingRequests = this._outstandingRequests.concat(o2.map((e3) => this._requestRange(t2, e3, n2, i2))); + const i2 = this._modelService.getSemanticTokensProviderStyling(n2), r2 = this._editor.getVisibleRangesPlusViewportAboveBelow(); + this._outstandingRequests = this._outstandingRequests.concat(r2.map((e3) => this._requestRange(t2, e3, n2, i2))); } _requestRange(e3, t2, n2, i2) { - const o2 = e3.getVersionId(), r2 = Object(ue.f)((i3) => Promise.resolve(n2.provideDocumentRangeSemanticTokens(e3, t2, i3))); - return r2.then((n3) => { - n3 && !e3.isDisposed() && e3.getVersionId() === o2 && e3.setPartialSemanticTokens(t2, Object(Dm.b)(n3, i2, e3.getLanguageIdentifier())); - }).then(() => this._removeOutstandingRequest(r2), () => this._removeOutstandingRequest(r2)), r2; + const r2 = e3.getVersionId(), o2 = Object(ue.f)((i3) => Promise.resolve(n2.provideDocumentRangeSemanticTokens(e3, t2, i3))); + return o2.then((n3) => { + n3 && !e3.isDisposed() && e3.getVersionId() === r2 && e3.setPartialSemanticTokens(t2, Object(Om.b)(n3, i2, e3.getLanguageIdentifier())); + }).then(() => this._removeOutstandingRequest(o2), () => this._removeOutstandingRequest(o2)), o2; } }; - Pm.ID = "editor.contrib.viewportSemanticTokens", Pm = Rm([Mm(1, tt.a), Mm(2, we.c), Mm(3, On.a)], Pm), Object(V.m)(Pm.ID, Pm); + Pm.ID = "editor.contrib.viewportSemanticTokens", Pm = Rm([Mm(1, tt.a), Mm(2, we.c), Mm(3, Dn.a)], Pm), Object(V.m)(Pm.ID, Pm); var Fm = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Wm = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -72145,11 +72144,11 @@ ${Object(zn.b)(wi)} return n2 ? new ge.a(t2.startLineNumber, n2.startColumn, t2.startLineNumber, n2.endColumn) : null; } isValid(e2, t2, n2) { - const i2 = t2.startLineNumber, o2 = t2.startColumn, r2 = t2.endColumn, s2 = this._getCurrentWordRange(e2, t2); + const i2 = t2.startLineNumber, r2 = t2.startColumn, o2 = t2.endColumn, s2 = this._getCurrentWordRange(e2, t2); let a2 = Boolean(this._wordRange && this._wordRange.equalsRange(s2)); for (let t3 = 0, s3 = n2.length; !a2 && t3 < s3; t3++) { let s4 = e2.getDecorationRange(n2[t3]); - s4 && s4.startLineNumber === i2 && s4.startColumn <= o2 && s4.endColumn >= r2 && (a2 = true); + s4 && s4.startLineNumber === i2 && s4.startColumn <= r2 && s4.endColumn >= o2 && (a2 = true); } return a2; } @@ -72208,8 +72207,8 @@ ${Object(zn.b)(wi)} this._ignorePositionChangeEvent = true, this.editor.setPosition(n2.getStartPosition()), this.editor.revealRangeInCenterIfOutsideViewport(n2); const i2 = this._getWord(); if (i2) { - const o2 = this.editor.getModel().getLineContent(n2.startLineNumber); - Object(ne.a)(`${o2}, ${t2 + 1} of ${e2.length} for '${i2.word}'`); + const r2 = this.editor.getModel().getLineContent(n2.startLineNumber); + Object(ne.a)(`${r2}, ${t2 + 1} of ${e2.length} for '${i2.word}'`); } } finally { this._ignorePositionChangeEvent = false; @@ -72221,8 +72220,8 @@ ${Object(zn.b)(wi)} this._ignorePositionChangeEvent = true, this.editor.setPosition(n2.getStartPosition()), this.editor.revealRangeInCenterIfOutsideViewport(n2); const i2 = this._getWord(); if (i2) { - const o2 = this.editor.getModel().getLineContent(n2.startLineNumber); - Object(ne.a)(`${o2}, ${t2 + 1} of ${e2.length} for '${i2.word}'`); + const r2 = this.editor.getModel().getLineContent(n2.startLineNumber); + Object(ne.a)(`${r2}, ${t2 + 1} of ${e2.length} for '${i2.word}'`); } } finally { this._ignorePositionChangeEvent = false; @@ -72249,17 +72248,17 @@ ${Object(zn.b)(wi)} const i2 = this._getWord(); if (!i2 || i2.startColumn > t2 || i2.endColumn < n2) return void this._stopAll(); - const o2 = this.workerRequest && this.workerRequest.isValid(this.model, e2, this._decorationIds); - if (this.lastCursorPositionChangeTime = new Date().getTime(), o2) + const r2 = this.workerRequest && this.workerRequest.isValid(this.model, e2, this._decorationIds); + if (this.lastCursorPositionChangeTime = new Date().getTime(), r2) this.workerRequestCompleted && this.renderDecorationsTimer !== -1 && (clearTimeout(this.renderDecorationsTimer), this.renderDecorationsTimer = -1, this._beginRenderDecorations()); else { this._stopAll(); let e3 = ++this.workerRequestTokenId; - this.workerRequestCompleted = false, this.workerRequest = (r2 = this.model, s2 = this.editor.getSelection(), a2 = this.editor.getOption(105), et.i.has(r2) ? new Gm(r2, s2, a2) : new Ym(r2, s2, a2)), this.workerRequest.result.then((t3) => { + this.workerRequestCompleted = false, this.workerRequest = (o2 = this.model, s2 = this.editor.getSelection(), a2 = this.editor.getOption(105), et.i.has(o2) ? new Gm(o2, s2, a2) : new Ym(o2, s2, a2)), this.workerRequest.result.then((t3) => { e3 === this.workerRequestTokenId && (this.workerRequestCompleted = true, this.workerRequestValue = t3 || [], this._beginRenderDecorations()); }, Z.e); } - var r2, s2, a2; + var o2, s2, a2; } _beginRenderDecorations() { let e2 = new Date().getTime(), t2 = this.lastCursorPositionChangeTime + 250; @@ -72343,29 +72342,29 @@ ${Object(zn.b)(wi)} n2 && (t2.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${n2}; }`), t2.addRule(`.monaco-editor .selectionHighlight { background-color: ${n2.transparent(0.5)}; }`)); const i2 = e2.getColor(zm); i2 && t2.addRule(`.monaco-editor .wordHighlight { background-color: ${i2}; }`); - const o2 = e2.getColor(Bm); - o2 && t2.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${o2}; }`); - const r2 = e2.getColor(ve.R); - r2 && t2.addRule(`.monaco-editor .selectionHighlight { border: 1px ${e2.type === "hc" ? "dotted" : "solid"} ${r2}; box-sizing: border-box; }`); + const r2 = e2.getColor(Bm); + r2 && t2.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${r2}; }`); + const o2 = e2.getColor(ve.R); + o2 && t2.addRule(`.monaco-editor .selectionHighlight { border: 1px ${e2.type === "hc" ? "dotted" : "solid"} ${o2}; box-sizing: border-box; }`); const s2 = e2.getColor(jm); s2 && t2.addRule(`.monaco-editor .wordHighlight { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${s2}; box-sizing: border-box; }`); const a2 = e2.getColor(Vm); a2 && t2.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${e2.type === "hc" ? "dashed" : "solid"} ${a2}; box-sizing: border-box; }`); }); var eg = n(22), tg = n(129), ng = n(117), ig = n(26); - class og extends V.c { + class rg extends V.c { constructor(e2) { super(e2), this._inSelectionMode = e2.inSelectionMode, this._wordNavigationType = e2.wordNavigationType; } runEditorCommand(e2, t2, n2) { if (!t2.hasModel()) return; - const i2 = Object(ng.a)(t2.getOption(105)), o2 = t2.getModel(), r2 = t2.getSelections().map((e3) => { - const t3 = new me.a(e3.positionLineNumber, e3.positionColumn), n3 = this._move(i2, o2, t3, this._wordNavigationType); + const i2 = Object(ng.a)(t2.getOption(105)), r2 = t2.getModel(), o2 = t2.getSelections().map((e3) => { + const t3 = new me.a(e3.positionLineNumber, e3.positionColumn), n3 = this._move(i2, r2, t3, this._wordNavigationType); return this._moveTo(e3, n3, this._inSelectionMode); }); - if (o2.pushStackElement(), t2._getViewModel().setCursorStates("moveWordCommand", 0, r2.map((e3) => eg.d.fromModelSelection(e3))), r2.length === 1) { - const e3 = new me.a(r2[0].positionLineNumber, r2[0].positionColumn); + if (r2.pushStackElement(), t2._getViewModel().setCursorStates("moveWordCommand", 0, o2.map((e3) => eg.d.fromModelSelection(e3))), o2.length === 1) { + const e3 = new me.a(o2[0].positionLineNumber, o2[0].positionColumn); t2.revealPosition(e3, 0); } } @@ -72373,12 +72372,12 @@ ${Object(zn.b)(wi)} return n2 ? new q.a(e2.selectionStartLineNumber, e2.selectionStartColumn, t2.lineNumber, t2.column) : new q.a(t2.lineNumber, t2.column, t2.lineNumber, t2.column); } } - class rg extends og { + class og extends rg { _move(e2, t2, n2, i2) { return tg.a.moveWordLeft(e2, t2, n2, i2); } } - class sg extends og { + class sg extends rg { _move(e2, t2, n2, i2) { return tg.a.moveWordRight(e2, t2, n2, i2); } @@ -72390,49 +72389,49 @@ ${Object(zn.b)(wi)} runEditorCommand(e2, t2, n2) { if (!t2.hasModel()) return; - const i2 = Object(ng.a)(t2.getOption(105)), o2 = t2.getModel(), r2 = t2.getSelections().map((e3) => { - const t3 = this._delete(i2, o2, e3, this._whitespaceHeuristics, this._wordNavigationType); + const i2 = Object(ng.a)(t2.getOption(105)), r2 = t2.getModel(), o2 = t2.getSelections().map((e3) => { + const t3 = this._delete(i2, r2, e3, this._whitespaceHeuristics, this._wordNavigationType); return new Ne.a(t3, ""); }); - t2.pushUndoStop(), t2.executeCommands(this.id, r2), t2.pushUndoStop(); + t2.pushUndoStop(), t2.executeCommands(this.id, o2), t2.pushUndoStop(); } } class lg extends ag { - _delete(e2, t2, n2, i2, o2) { - let r2 = tg.a.deleteWordLeft(e2, t2, n2, i2, o2); - return r2 || new ge.a(1, 1, 1, 1); + _delete(e2, t2, n2, i2, r2) { + let o2 = tg.a.deleteWordLeft(e2, t2, n2, i2, r2); + return o2 || new ge.a(1, 1, 1, 1); } } class cg extends ag { - _delete(e2, t2, n2, i2, o2) { - let r2 = tg.a.deleteWordRight(e2, t2, n2, i2, o2); - if (r2) - return r2; + _delete(e2, t2, n2, i2, r2) { + let o2 = tg.a.deleteWordRight(e2, t2, n2, i2, r2); + if (o2) + return o2; const s2 = t2.getLineCount(), a2 = t2.getLineMaxColumn(s2); return new ge.a(s2, a2, s2, a2); } } - Object(V.l)(new class extends rg { + Object(V.l)(new class extends og { constructor() { super({inSelectionMode: false, wordNavigationType: 0, id: "cursorWordStartLeft", precondition: void 0}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: false, wordNavigationType: 2, id: "cursorWordEndLeft", precondition: void 0}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: false, wordNavigationType: 1, id: "cursorWordLeft", precondition: void 0, kbOpts: {kbExpr: H.a.textInputFocus, primary: 2063, mac: {primary: 527}, weight: 100}}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: true, wordNavigationType: 0, id: "cursorWordStartLeftSelect", precondition: void 0}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: true, wordNavigationType: 2, id: "cursorWordEndLeftSelect", precondition: void 0}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: true, wordNavigationType: 1, id: "cursorWordLeftSelect", precondition: void 0, kbOpts: {kbExpr: H.a.textInputFocus, primary: 3087, mac: {primary: 1551}, weight: 100}}); } @@ -72460,14 +72459,14 @@ ${Object(zn.b)(wi)} constructor() { super({inSelectionMode: true, wordNavigationType: 2, id: "cursorWordRightSelect", precondition: void 0}); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: false, wordNavigationType: 3, id: "cursorWordAccessibilityLeft", precondition: void 0, kbOpts: {kbExpr: K.a.and(H.a.textInputFocus, us.a), win: {primary: 2063}, weight: 101}}); } _move(e2, t2, n2, i2) { return super._move(Object(ng.a)(ig.g.wordSeparators.defaultValue), t2, n2, i2); } - }()), Object(V.l)(new class extends rg { + }()), Object(V.l)(new class extends og { constructor() { super({inSelectionMode: true, wordNavigationType: 3, id: "cursorWordAccessibilityLeftSelect", precondition: void 0, kbOpts: {kbExpr: K.a.and(H.a.textInputFocus, us.a), win: {primary: 3087}, weight: 101}}); } @@ -72513,14 +72512,14 @@ ${Object(zn.b)(wi)} super({whitespaceHeuristics: true, wordNavigationType: 2, id: "deleteWordRight", precondition: H.a.writable, kbOpts: {kbExpr: H.a.textInputFocus, primary: 2068, mac: {primary: 532}, weight: 100}}); } }()); - class dg extends og { + class dg extends rg { _move(e2, t2, n2, i2) { return tg.b.moveWordPartLeft(e2, t2, n2); } } Ft.a.registerCommandAlias("cursorWordPartStartLeft", "cursorWordPartLeft"); Ft.a.registerCommandAlias("cursorWordPartStartLeftSelect", "cursorWordPartLeftSelect"); - class hg extends og { + class hg extends rg { _move(e2, t2, n2, i2) { return tg.b.moveWordPartRight(e2, t2, n2); } @@ -72529,18 +72528,18 @@ ${Object(zn.b)(wi)} constructor() { super({whitespaceHeuristics: true, wordNavigationType: 0, id: "deleteWordPartLeft", precondition: H.a.writable, kbOpts: {kbExpr: H.a.textInputFocus, primary: 0, mac: {primary: 769}, weight: 100}}); } - _delete(e2, t2, n2, i2, o2) { - let r2 = tg.b.deleteWordPartLeft(e2, t2, n2, i2); - return r2 || new ge.a(1, 1, 1, 1); + _delete(e2, t2, n2, i2, r2) { + let o2 = tg.b.deleteWordPartLeft(e2, t2, n2, i2); + return o2 || new ge.a(1, 1, 1, 1); } }()), Object(V.l)(new class extends ag { constructor() { super({whitespaceHeuristics: true, wordNavigationType: 2, id: "deleteWordPartRight", precondition: H.a.writable, kbOpts: {kbExpr: H.a.textInputFocus, primary: 0, mac: {primary: 788}, weight: 100}}); } - _delete(e2, t2, n2, i2, o2) { - let r2 = tg.b.deleteWordPartRight(e2, t2, n2, i2); - if (r2) - return r2; + _delete(e2, t2, n2, i2, r2) { + let o2 = tg.b.deleteWordPartRight(e2, t2, n2, i2); + if (o2) + return o2; const s2 = t2.getLineCount(), a2 = t2.getLineMaxColumn(s2); return new ge.a(s2, a2, s2, a2); } @@ -72562,13 +72561,13 @@ ${Object(zn.b)(wi)} } }()); var ug = n(55), pg = (n(335), n(35)), mg = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, gg = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -72636,16 +72635,16 @@ ${Object(zn.b)(wi)} return e4 && e4.length !== 0 ? e4.length === 1 ? t3 ? Ye.x(ug.a.singleSelectionRange, e4[0].positionLineNumber, e4[0].positionColumn, t3) : Ye.x(ug.a.singleSelection, e4[0].positionLineNumber, e4[0].positionColumn) : t3 ? Ye.x(ug.a.multiSelectionRange, e4.length, t3) : e4.length > 0 ? Ye.x(ug.a.multiSelection, e4.length) : "" : ug.a.noSelection; }(t2, n2); e3.get(47) ? e3.get(72) ? i2 += ug.a.readonlyDiffEditor : i2 += ug.a.editableDiffEditor : e3.get(72) ? i2 += ug.a.readonlyEditor : i2 += ug.a.editableEditor; - const o2 = Ae.f ? ug.a.changeConfigToOnMac : ug.a.changeConfigToOnWinLinux; + const r2 = Ae.f ? ug.a.changeConfigToOnMac : ug.a.changeConfigToOnWinLinux; switch (e3.get(2)) { case 0: - i2 += "\n\n - " + o2; + i2 += "\n\n - " + r2; break; case 2: i2 += "\n\n - " + ug.a.auto_on; break; case 1: - i2 += "\n\n - " + ug.a.auto_off, i2 += " " + o2; + i2 += "\n\n - " + ug.a.auto_off, i2 += " " + r2; } e3.get(116) ? i2 += "\n\n - " + this._descriptionForCommand(Em.ID, ug.a.tabFocusModeOnMsg, ug.a.tabFocusModeOnMsgNoKb) : i2 += "\n\n - " + this._descriptionForCommand(Em.ID, ug.a.tabFocusModeOffMsg, ug.a.tabFocusModeOffMsgNoKb); i2 += "\n\n - " + (Ae.f ? ug.a.openDocMac : ug.a.openDocWinLinux), i2 += "\n\n" + ug.a.outroMsg, this._contentDomNode.domNode.appendChild(Object(Ic.b)(i2)), this._contentDomNode.domNode.setAttribute("aria-label", i2); @@ -72656,10 +72655,10 @@ ${Object(zn.b)(wi)} _layout() { let t2 = this._editor.getLayoutInfo(), n2 = Math.max(5, Math.min(e2.WIDTH, t2.width - 40)), i2 = Math.max(5, Math.min(e2.HEIGHT, t2.height - 40)); this._domNode.setWidth(n2), this._domNode.setHeight(i2); - let o2 = Math.round((t2.height - i2) / 2); - this._domNode.setTop(o2); - let r2 = Math.round((t2.width - n2) / 2); - this._domNode.setLeft(r2); + let r2 = Math.round((t2.height - i2) / 2); + this._domNode.setTop(r2); + let o2 = Math.round((t2.width - n2) / 2); + this._domNode.setLeft(o2); } }; _g.ID = "editor.contrib.accessibilityHelpWidget", _g.WIDTH = 500, _g.HEIGHT = 300, _g = mg([gg(1, K.b), gg(2, vt.a), gg(3, Vl.a)], _g); @@ -72679,15 +72678,15 @@ ${Object(zn.b)(wi)} n2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${n2}; }`); const i2 = e2.getColor(ve.W); i2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i2}; }`); - const o2 = e2.getColor(ve.uc); - o2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${o2}; }`); - const r2 = e2.getColor(ve.h); - r2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${r2}; }`); + const r2 = e2.getColor(ve.uc); + r2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${r2}; }`); + const o2 = e2.getColor(ve.h); + o2 && t2.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${o2}; }`); }); n(337); class yg extends pe.a { constructor(e2) { - super(), this.editor = e2, this.widget = null, De.i && (this._register(e2.onDidChangeConfiguration(() => this.update())), this.update()); + super(), this.editor = e2, this.widget = null, Oe.i && (this._register(e2.onDidChangeConfiguration(() => this.update())), this.update()); } update() { const e2 = !this.editor.getOption(72); @@ -72722,13 +72721,13 @@ ${Object(zn.b)(wi)} Cg.ID = "editor.contrib.ShowKeyboardWidget", Object(V.m)(yg.ID, yg); n(339); var xg = n(90), Sg = n(139), kg = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Eg = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -72777,8 +72776,8 @@ ${Object(zn.b)(wi)} _compute(e2) { let t2 = this._getTokensAtLine(e2.lineNumber), n2 = 0; for (let i3 = t2.tokens1.length - 1; i3 >= 0; i3--) { - let o3 = t2.tokens1[i3]; - if (e2.column - 1 >= o3.offset) { + let r3 = t2.tokens1[i3]; + if (e2.column - 1 >= r3.offset) { n2 = i3; break; } @@ -72789,10 +72788,10 @@ ${Object(zn.b)(wi)} i2 = n3; break; } - let o2 = this._model.getLineContent(e2.lineNumber), r2 = ""; + let r2 = this._model.getLineContent(e2.lineNumber), o2 = ""; if (n2 < t2.tokens1.length) { - let e3 = t2.tokens1[n2].offset, i3 = n2 + 1 < t2.tokens1.length ? t2.tokens1[n2 + 1].offset : o2.length; - r2 = o2.substring(e3, i3); + let e3 = t2.tokens1[n2].offset, i3 = n2 + 1 < t2.tokens1.length ? t2.tokens1[n2 + 1].offset : r2.length; + o2 = r2.substring(e3, i3); } Object(ft.U)(this._domNode, Object(ft.a)("h2.tm-token", void 0, function(e3) { let t3 = ""; @@ -72810,13 +72809,13 @@ ${Object(zn.b)(wi)} } } return t3; - }(r2), Object(ft.a)("span.tm-token-length", void 0, `${r2.length} ${r2.length === 1 ? "char" : "chars"}`))), Object(ft.p)(this._domNode, Object(ft.a)("hr.tokens-inspect-separator", {style: "clear:both"})); + }(o2), Object(ft.a)("span.tm-token-length", void 0, `${o2.length} ${o2.length === 1 ? "char" : "chars"}`))), Object(ft.p)(this._domNode, Object(ft.a)("hr.tokens-inspect-separator", {style: "clear:both"})); const s2 = 1 + (i2 << 1) < t2.tokens2.length ? this._decodeMetadata(t2.tokens2[1 + (i2 << 1)]) : null; Object(ft.p)(this._domNode, Object(ft.a)("table.tm-metadata-table", void 0, Object(ft.a)("tbody", void 0, Object(ft.a)("tr", void 0, Object(ft.a)("td.tm-metadata-key", void 0, "language"), Object(ft.a)("td.tm-metadata-value", void 0, "" + (s2 ? s2.languageIdentifier.language : "-?-"))), Object(ft.a)("tr", void 0, Object(ft.a)("td.tm-metadata-key", void 0, "token type"), Object(ft.a)("td.tm-metadata-value", void 0, "" + (s2 ? this._tokenTypeToString(s2.tokenType) : "-?-"))), Object(ft.a)("tr", void 0, Object(ft.a)("td.tm-metadata-key", void 0, "font style"), Object(ft.a)("td.tm-metadata-value", void 0, "" + (s2 ? this._fontStyleToString(s2.fontStyle) : "-?-"))), Object(ft.a)("tr", void 0, Object(ft.a)("td.tm-metadata-key", void 0, "foreground"), Object(ft.a)("td.tm-metadata-value", void 0, "" + (s2 ? Nn.a.Format.CSS.formatHex(s2.foreground) : "-?-"))), Object(ft.a)("tr", void 0, Object(ft.a)("td.tm-metadata-key", void 0, "background"), Object(ft.a)("td.tm-metadata-value", void 0, "" + (s2 ? Nn.a.Format.CSS.formatHex(s2.background) : "-?-")))))), Object(ft.p)(this._domNode, Object(ft.a)("hr.tokens-inspect-separator")), n2 < t2.tokens1.length && Object(ft.p)(this._domNode, Object(ft.a)("span.tm-token-type", void 0, t2.tokens1[n2].type)), this._editor.layoutContentWidget(this); } _decodeMetadata(e2) { - let t2 = et.C.getColorMap(), n2 = et.B.getLanguageId(e2), i2 = et.B.getTokenType(e2), o2 = et.B.getFontStyle(e2), r2 = et.B.getForeground(e2), s2 = et.B.getBackground(e2); - return {languageIdentifier: this._modeService.getLanguageIdentifier(n2), tokenType: i2, fontStyle: o2, foreground: t2[r2], background: t2[s2]}; + let t2 = et.C.getColorMap(), n2 = et.B.getLanguageId(e2), i2 = et.B.getTokenType(e2), r2 = et.B.getFontStyle(e2), o2 = et.B.getForeground(e2), s2 = et.B.getBackground(e2); + return {languageIdentifier: this._modeService.getLanguageIdentifier(n2), tokenType: i2, fontStyle: r2, foreground: t2[o2], background: t2[s2]}; } _tokenTypeToString(e2) { switch (e2) { @@ -72862,18 +72861,18 @@ ${Object(zn.b)(wi)} } const i2 = e2.getColor(ve.E); i2 && t2.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i2}; }`); - const o2 = e2.getColor(ve.G); - o2 && t2.addRule(`.monaco-editor .tokens-inspect-widget { color: ${o2}; }`); + const r2 = e2.getColor(ve.G); + r2 && t2.addRule(`.monaco-editor .tokens-inspect-widget { color: ${r2}; }`); }); - var Ig = n(134), Og = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var Ig = n(134), Dg = function(e2, t2, n2, i2) { + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; - }, Dg = function(e2, t2) { + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + }, Og = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; @@ -72891,21 +72890,21 @@ ${Object(zn.b)(wi)} const n3 = this.registry.getQuickAccessProvider(t3.substr(e2.PREFIX.length)); n3 && n3.prefix && n3.prefix !== e2.PREFIX && this.quickInputService.quickAccess.show(n3.prefix, {preserveValue: true}); })); - const {editorProviders: i2, globalProviders: o2} = this.getQuickAccessProviders(); - return t2.items = i2.length === 0 || o2.length === 0 ? [...i2.length === 0 ? o2 : i2] : [{label: Object(U.a)("globalCommands", "global commands"), type: "separator"}, ...o2, {label: Object(U.a)("editorCommands", "editor commands"), type: "separator"}, ...i2], n2; + const {editorProviders: i2, globalProviders: r2} = this.getQuickAccessProviders(); + return t2.items = i2.length === 0 || r2.length === 0 ? [...i2.length === 0 ? r2 : i2] : [{label: Object(U.a)("globalCommands", "global commands"), type: "separator"}, ...r2, {label: Object(U.a)("editorCommands", "editor commands"), type: "separator"}, ...i2], n2; } getQuickAccessProviders() { const t2 = [], n2 = []; for (const i2 of this.registry.getQuickAccessProviders().sort((e3, t3) => e3.prefix.localeCompare(t3.prefix))) if (i2.prefix !== e2.PREFIX) for (const e3 of i2.helpEntries) { - const o2 = e3.prefix || i2.prefix, r2 = o2 || "\u2026"; - (e3.needsEditor ? n2 : t2).push({prefix: o2, label: r2, ariaLabel: Object(U.a)("helpPickAriaLabel", "{0}, {1}", r2, e3.description), description: e3.description}); + const r2 = e3.prefix || i2.prefix, o2 = r2 || "\u2026"; + (e3.needsEditor ? n2 : t2).push({prefix: r2, label: o2, ariaLabel: Object(U.a)("helpPickAriaLabel", "{0}, {1}", o2, e3.description), description: e3.description}); } return {editorProviders: n2, globalProviders: t2}; } }; - Ag.PREFIX = "?", Ag = Og([Dg(0, Sn.a)], Ag), Gh.a.as(Ig.b.Quickaccess).registerQuickAccessProvider({ctor: Ag, prefix: "", helpEntries: [{description: ug.e.helpQuickAccessActionLabel, needsEditor: true}]}); + Ag.PREFIX = "?", Ag = Dg([Og(0, Sn.a)], Ag), Gh.a.as(Ig.b.Quickaccess).registerQuickAccessProvider({ctor: Ag, prefix: "", helpEntries: [{description: ug.e.helpQuickAccessActionLabel, needsEditor: true}]}); class Rg { constructor(e2) { this.options = e2, this.rangeHighlightDecorationId = void 0; @@ -72914,19 +72913,19 @@ ${Object(zn.b)(wi)} var n2; const i2 = new pe.b(); e2.canAcceptInBackground = !!((n2 = this.options) === null || n2 === void 0 ? void 0 : n2.canAcceptInBackground), e2.matchOnLabel = e2.matchOnDescription = e2.matchOnDetail = e2.sortByLabel = false; - const o2 = i2.add(new pe.d()); - return o2.value = this.doProvide(e2, t2), i2.add(this.onDidActiveTextEditorControlChange(() => { - o2.value = void 0, o2.value = this.doProvide(e2, t2); + const r2 = i2.add(new pe.d()); + return r2.value = this.doProvide(e2, t2), i2.add(this.onDidActiveTextEditorControlChange(() => { + r2.value = void 0, r2.value = this.doProvide(e2, t2); })), i2; } doProvide(e2, t2) { const n2 = new pe.b(), i2 = this.activeTextEditorControl; if (i2 && this.canProvideWithTextEditor(i2)) { - const o2 = Object(Rr.a)(i2); - if (o2) { - let e3 = Object(Jo.n)(i2.saveViewState()); - n2.add(o2.onDidChangeCursorPosition(() => { - e3 = Object(Jo.n)(i2.saveViewState()); + const r2 = Object(Ro.a)(i2); + if (r2) { + let e3 = Object(Qr.n)(i2.saveViewState()); + n2.add(r2.onDidChangeCursorPosition(() => { + e3 = Object(Qr.n)(i2.saveViewState()); })), n2.add(Object(bn.a)(t2.onCancellationRequested)(() => { e3 && i2 === this.activeTextEditorControl && i2.restoreViewState(e3); })); @@ -72944,14 +72943,14 @@ ${Object(zn.b)(wi)} } getModel(e2) { var t2; - return Object(Rr.c)(e2) ? (t2 = e2.getModel()) === null || t2 === void 0 ? void 0 : t2.modified : e2.getModel(); + return Object(Ro.c)(e2) ? (t2 = e2.getModel()) === null || t2 === void 0 ? void 0 : t2.modified : e2.getModel(); } addDecorations(e2, t2) { e2.changeDecorations((e3) => { const n2 = []; this.rangeHighlightDecorationId && (n2.push(this.rangeHighlightDecorationId.overviewRulerDecorationId), n2.push(this.rangeHighlightDecorationId.rangeHighlightId), this.rangeHighlightDecorationId = void 0); - const i2 = [{range: t2, options: {className: "rangeHighlight", isWholeLine: true}}, {range: t2, options: {overviewRuler: {color: Object(we.h)(_e.s), position: fe.d.Full}}}], [o2, r2] = e3.deltaDecorations(n2, i2); - this.rangeHighlightDecorationId = {rangeHighlightId: o2, overviewRulerDecorationId: r2}; + const i2 = [{range: t2, options: {className: "rangeHighlight", isWholeLine: true}}, {range: t2, options: {overviewRuler: {color: Object(we.h)(_e.s), position: fe.d.Full}}}], [r2, o2] = e3.deltaDecorations(n2, i2); + this.rangeHighlightDecorationId = {rangeHighlightId: r2, overviewRulerDecorationId: o2}; }); } clearDecorations(e2) { @@ -72979,17 +72978,17 @@ ${Object(zn.b)(wi)} this.gotoLocation(e2, {range: this.toRange(i3.lineNumber, i3.column), keyMods: t2.keyMods, preserveFocus: n3.inBackground}), n3.inBackground || t2.hide(); } })); - const o2 = () => { + const r2 = () => { const n3 = this.parsePosition(e2, t2.value.trim().substr(Mg.PREFIX.length)), i3 = this.getPickLabel(e2, n3.lineNumber, n3.column); if (t2.items = [{lineNumber: n3.lineNumber, column: n3.column, label: i3}], t2.ariaLabel = i3, !this.isValidLineNumber(e2, n3.lineNumber)) return void this.clearDecorations(e2); - const o3 = this.toRange(n3.lineNumber, n3.column); - e2.revealRangeInCenter(o3, 0), this.addDecorations(e2, o3); + const r3 = this.toRange(n3.lineNumber, n3.column); + e2.revealRangeInCenter(r3, 0), this.addDecorations(e2, r3); }; - o2(), i2.add(t2.onDidChangeValue(() => o2())); - const r2 = Object(Rr.a)(e2); - if (r2) { - r2.getOptions().get(52).renderType === 2 && (r2.updateOptions({lineNumbers: "on"}), i2.add(Object(pe.h)(() => r2.updateOptions({lineNumbers: "relative"})))); + r2(), i2.add(t2.onDidChangeValue(() => r2())); + const o2 = Object(Ro.a)(e2); + if (o2) { + o2.getOptions().get(52).renderType === 2 && (o2.updateOptions({lineNumbers: "on"}), i2.add(Object(pe.h)(() => o2.updateOptions({lineNumbers: "relative"})))); } return i2; } @@ -73003,8 +73002,8 @@ ${Object(zn.b)(wi)} getPickLabel(e2, t2, n2) { if (this.isValidLineNumber(e2, t2)) return this.isValidColumn(e2, t2, n2) ? Object(U.a)("gotoLineColumnLabel", "Go to line {0} and column {1}.", t2, n2) : Object(U.a)("gotoLineLabel", "Go to line {0}.", t2); - const i2 = e2.getPosition() || {lineNumber: 1, column: 1}, o2 = this.lineCount(e2); - return o2 > 1 ? Object(U.a)("gotoLineLabelEmptyWithLimit", "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", i2.lineNumber, i2.column, o2) : Object(U.a)("gotoLineLabelEmpty", "Current Line: {0}, Character: {1}. Type a line number to navigate to.", i2.lineNumber, i2.column); + const i2 = e2.getPosition() || {lineNumber: 1, column: 1}, r2 = this.lineCount(e2); + return r2 > 1 ? Object(U.a)("gotoLineLabelEmptyWithLimit", "Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.", i2.lineNumber, i2.column, r2) : Object(U.a)("gotoLineLabelEmpty", "Current Line: {0}, Character: {1}. Type a line number to navigate to.", i2.lineNumber, i2.column); } isValidLineNumber(e2, t2) { return !(!t2 || typeof t2 != "number") && (t2 > 0 && t2 <= this.lineCount(e2)); @@ -73015,8 +73014,8 @@ ${Object(zn.b)(wi)} const i2 = this.getModel(e2); if (!i2) return false; - const o2 = {lineNumber: t2, column: n2}; - return i2.validatePosition(o2).equals(o2); + const r2 = {lineNumber: t2, column: n2}; + return i2.validatePosition(r2).equals(r2); } lineCount(e2) { var t2, n2; @@ -73025,13 +73024,13 @@ ${Object(zn.b)(wi)} } Mg.PREFIX = ":"; var Pg = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Fg = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -73042,7 +73041,7 @@ ${Object(zn.b)(wi)} super(), this.editorService = e2, this.onDidActiveTextEditorControlChange = Lt.b.None; } get activeTextEditorControl() { - return Object(Jo.n)(this.editorService.getFocusedCodeEditor()); + return Object(Qr.n)(this.editorService.getFocusedCodeEditor()); } }; Wg = Pg([Fg(0, Me.a)], Wg), Gh.a.as(Ig.b.Quickaccess).registerQuickAccessProvider({ctor: Wg, prefix: Wg.PREFIX, helpEntries: [{description: ug.b.gotoLineActionLabel, needsEditor: true}]}); @@ -73057,22 +73056,22 @@ ${Object(zn.b)(wi)} Object(V.k)(zg); const Bg = [void 0, []]; function jg(e2, t2, n2 = 0, i2 = 0) { - const o2 = t2; - return o2.values && o2.values.length > 1 ? function(e3, t3, n3, i3) { - let o3 = 0; - const r2 = []; + const r2 = t2; + return r2.values && r2.values.length > 1 ? function(e3, t3, n3, i3) { + let r3 = 0; + const o2 = []; for (const s2 of t3) { const [t4, a2] = Vg(e3, s2, n3, i3); if (typeof t4 != "number") return Bg; - o3 += t4, r2.push(...a2); + r3 += t4, o2.push(...a2); } - return [o3, Ug(r2)]; - }(e2, o2.values, n2, i2) : Vg(e2, t2, n2, i2); + return [r3, Ug(o2)]; + }(e2, r2.values, n2, i2) : Vg(e2, t2, n2, i2); } function Vg(e2, t2, n2, i2) { - const o2 = Object(va.d)(t2.original, t2.originalLowercase, n2, e2, e2.toLowerCase(), i2, true); - return o2 ? [o2[0], Object(va.c)(o2)] : Bg; + const r2 = Object(va.d)(t2.original, t2.originalLowercase, n2, e2, e2.toLowerCase(), i2, true); + return r2 ? [r2[0], Object(va.c)(r2)] : Bg; } function Ug(e2) { const t2 = e2.sort((e3, t3) => e3.start - t3.start), n2 = []; @@ -73086,7 +73085,7 @@ ${Object(zn.b)(wi)} } function qg(e2) { typeof e2 != "string" && (e2 = ""); - const t2 = e2.toLowerCase(), {pathNormalized: n2, normalized: i2, normalizedLowercase: o2} = $g(e2), r2 = n2.indexOf(pa.h) >= 0; + const t2 = e2.toLowerCase(), {pathNormalized: n2, normalized: i2, normalizedLowercase: r2} = $g(e2), o2 = n2.indexOf(pa.h) >= 0; let s2 = void 0; const a2 = e2.split(" "); if (a2.length > 1) @@ -73094,7 +73093,7 @@ ${Object(zn.b)(wi)} const {pathNormalized: t3, normalized: n3, normalizedLowercase: i3} = $g(e3); n3 && (s2 || (s2 = []), s2.push({original: e3, originalLowercase: e3.toLowerCase(), pathNormalized: t3, normalized: n3, normalizedLowercase: i3})); } - return {original: e2, originalLowercase: t2, pathNormalized: n2, normalized: i2, normalizedLowercase: o2, values: s2, containsPathSeparator: r2}; + return {original: e2, originalLowercase: t2, pathNormalized: n2, normalized: i2, normalizedLowercase: r2, values: s2, containsPathSeparator: o2}; } function $g(e2) { let t2; @@ -73106,24 +73105,24 @@ ${Object(zn.b)(wi)} return Array.isArray(e2) ? qg(e2.map((e3) => e3.original).join(" ")) : qg(e2.original); } var Gg = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -73142,12 +73141,12 @@ ${Object(zn.b)(wi)} return i2 ? et.m.has(i2) ? this.doProvideWithEditorSymbols(e2, i2, t2, n2) : this.doProvideWithoutEditorSymbols(e2, i2, t2, n2) : pe.a.None; } doProvideWithoutEditorSymbols(e2, t2, n2, i2) { - const o2 = new pe.b(); + const r2 = new pe.b(); return this.provideLabelPick(n2, Object(U.a)("cannotRunGotoSymbolWithoutSymbolProvider", "The active text editor does not provide symbol information.")), (() => { Gg(this, void 0, void 0, function* () { - (yield this.waitForLanguageSymbolRegistry(t2, o2)) && !i2.isCancellationRequested && o2.add(this.doProvideWithEditorSymbols(e2, t2, n2, i2)); + (yield this.waitForLanguageSymbolRegistry(t2, r2)) && !i2.isCancellationRequested && r2.add(this.doProvideWithEditorSymbols(e2, t2, n2, i2)); }); - })(), o2; + })(), r2; } provideLabelPick(e2, t2) { e2.items = [{label: t2, index: 0, kind: 14}], e2.ariaLabel = t2; @@ -73157,26 +73156,26 @@ ${Object(zn.b)(wi)} if (et.m.has(e2)) return true; let n2; - const i2 = new Promise((e3) => n2 = e3), o2 = t2.add(et.m.onDidChange(() => { - et.m.has(e2) && (o2.dispose(), n2(true)); + const i2 = new Promise((e3) => n2 = e3), r2 = t2.add(et.m.onDidChange(() => { + et.m.has(e2) && (r2.dispose(), n2(true)); })); return t2.add(Object(pe.h)(() => n2(false))), i2; }); } doProvideWithEditorSymbols(e2, t2, n2, i2) { - const o2 = new pe.b(); - o2.add(n2.onDidAccept((t3) => { + const r2 = new pe.b(); + r2.add(n2.onDidAccept((t3) => { const [i3] = n2.selectedItems; i3 && i3.range && (this.gotoLocation(e2, {range: i3.range.selection, keyMods: n2.keyMods, preserveFocus: t3.inBackground}), t3.inBackground || n2.hide()); - })), o2.add(n2.onDidTriggerItemButton(({item: t3}) => { + })), r2.add(n2.onDidTriggerItemButton(({item: t3}) => { t3 && t3.range && (this.gotoLocation(e2, {range: t3.range.selection, keyMods: n2.keyMods, forceSideBySide: true}), n2.hide()); })); - const r2 = this.getDocumentSymbols(t2, true, i2); + const o2 = this.getDocumentSymbols(t2, true, i2); let s2 = void 0; const a2 = () => Gg(this, void 0, void 0, function* () { s2 == null || s2.dispose(true), n2.busy = false, s2 = new Xe.b(i2), n2.busy = true; try { - const e3 = qg(n2.value.substr(Yg.PREFIX.length).trim()), t3 = yield this.doGetSymbolPicks(r2, e3, void 0, s2.token); + const e3 = qg(n2.value.substr(Yg.PREFIX.length).trim()), t3 = yield this.doGetSymbolPicks(o2, e3, void 0, s2.token); if (i2.isCancellationRequested) return; t3.length > 0 ? n2.items = t3 : e3.original.length > 0 ? this.provideLabelPick(n2, Object(U.a)("noMatchingSymbolResults", "No matching editor symbols")) : this.provideLabelPick(n2, Object(U.a)("noSymbolResults", "No editor symbols")); @@ -73184,28 +73183,28 @@ ${Object(zn.b)(wi)} i2.isCancellationRequested || (n2.busy = false); } }); - o2.add(n2.onDidChangeValue(() => a2())), a2(); + r2.add(n2.onDidChangeValue(() => a2())), a2(); let l2 = true; - return o2.add(n2.onDidChangeActive(() => { + return r2.add(n2.onDidChangeActive(() => { const [t3] = n2.activeItems; if (t3 && t3.range) { if (l2) return void (l2 = false); e2.revealRangeInCenter(t3.range.selection, 0), this.addDecorations(e2, t3.range.decoration); } - })), o2; + })), r2; } doGetSymbolPicks(e2, t2, n2, i2) { return Gg(this, void 0, void 0, function* () { - const o2 = yield e2; + const r2 = yield e2; if (i2.isCancellationRequested) return []; - const r2 = t2.original.indexOf(Yg.SCOPE_PREFIX) === 0, s2 = r2 ? 1 : 0; + const o2 = t2.original.indexOf(Yg.SCOPE_PREFIX) === 0, s2 = o2 ? 1 : 0; let a2, l2; t2.values && t2.values.length > 1 ? (a2 = Kg(t2.values[0]), l2 = Kg(t2.values.slice(1))) : a2 = t2; const c2 = []; - for (let e3 = 0; e3 < o2.length; e3++) { - const i3 = o2[e3], r3 = Object(Ye.W)(i3.name), d3 = `$(symbol-${et.A.toString(i3.kind) || "property"}) ${r3}`, h3 = d3.length - r3.length; + for (let e3 = 0; e3 < r2.length; e3++) { + const i3 = r2[e3], o3 = Object(Ye.W)(i3.name), d3 = `$(symbol-${et.A.toString(i3.kind) || "property"}) ${o3}`, h3 = d3.length - o3.length; let u2 = i3.containerName; (n2 == null ? void 0 : n2.extraContainerLabel) && (u2 = u2 ? `${n2.extraContainerLabel} \u2022 ${u2}` : n2.extraContainerLabel); let p2 = void 0, m2 = void 0, g2 = void 0, f2 = void 0; @@ -73220,16 +73219,16 @@ ${Object(zn.b)(wi)} } } const b2 = i3.tags && i3.tags.indexOf(1) >= 0; - c2.push({index: e3, kind: i3.kind, score: p2, label: d3, ariaLabel: r3, description: u2, highlights: b2 ? void 0 : {label: m2, description: f2}, range: {selection: ge.a.collapseToStart(i3.selectionRange), decoration: i3.range}, strikethrough: b2, buttons: (() => { + c2.push({index: e3, kind: i3.kind, score: p2, label: d3, ariaLabel: o3, description: u2, highlights: b2 ? void 0 : {label: m2, description: f2}, range: {selection: ge.a.collapseToStart(i3.selectionRange), decoration: i3.range}, strikethrough: b2, buttons: (() => { var e4, t3; const n3 = ((e4 = this.options) === null || e4 === void 0 ? void 0 : e4.openSideBySideDirection) ? (t3 = this.options) === null || t3 === void 0 ? void 0 : t3.openSideBySideDirection() : void 0; if (n3) return [{iconClass: n3 === "right" ? Y.a.splitHorizontal.classNames : Y.a.splitVertical.classNames, tooltip: n3 === "right" ? Object(U.a)("openToSide", "Open to the Side") : Object(U.a)("openToBottom", "Open to the Bottom")}]; })()}); } - const d2 = c2.sort((e3, t3) => r2 ? this.compareByKindAndScore(e3, t3) : this.compareByScore(e3, t3)); + const d2 = c2.sort((e3, t3) => o2 ? this.compareByKindAndScore(e3, t3) : this.compareByScore(e3, t3)); let h2 = []; - if (r2) { + if (o2) { let u2 = function() { t3 && typeof e3 == "number" && n3 > 0 && (t3.label = Object(Ye.x)(Xg[e3] || Zg, n3)); }; @@ -73256,19 +73255,19 @@ ${Object(zn.b)(wi)} return e2.index < t2.index ? -1 : e2.index > t2.index ? 1 : 0; } compareByKindAndScore(e2, t2) { - const n2 = Xg[e2.kind] || Zg, i2 = Xg[t2.kind] || Zg, o2 = n2.localeCompare(i2); - return o2 === 0 ? this.compareByScore(e2, t2) : o2; + const n2 = Xg[e2.kind] || Zg, i2 = Xg[t2.kind] || Zg, r2 = n2.localeCompare(i2); + return r2 === 0 ? this.compareByScore(e2, t2) : r2; } getDocumentSymbols(e2, t2, n2) { return Gg(this, void 0, void 0, function* () { const i2 = yield ss.create(e2, n2); if (n2.isCancellationRequested) return []; - const o2 = []; + const r2 = []; for (const e3 of i2.children.values()) - e3 instanceof os ? o2.push(e3.symbol) : o2.push(...Wr.a.map(e3.children.values(), (e4) => e4.symbol)); - let r2 = []; - return t2 ? this.flattenDocumentSymbols(r2, o2, "") : r2 = o2, r2.sort((e3, t3) => ge.a.compareRangesUsingStarts(e3.range, t3.range)); + e3 instanceof rs ? r2.push(e3.symbol) : r2.push(...Wo.a.map(e3.children.values(), (e4) => e4.symbol)); + let o2 = []; + return t2 ? this.flattenDocumentSymbols(o2, r2, "") : o2 = r2, o2.sort((e3, t3) => ge.a.compareRangesUsingStarts(e3.range, t3.range)); }); } flattenDocumentSymbols(e2, t2, n2) { @@ -73279,13 +73278,13 @@ ${Object(zn.b)(wi)} Yg.PREFIX = "@", Yg.SCOPE_PREFIX = ":", Yg.PREFIX_BY_CATEGORY = `${Yg.PREFIX}${Yg.SCOPE_PREFIX}`; const Zg = Object(U.a)("property", "properties ({0})"), Xg = {5: Object(U.a)("method", "methods ({0})"), 11: Object(U.a)("function", "functions ({0})"), 8: Object(U.a)("_constructor", "constructors ({0})"), 12: Object(U.a)("variable", "variables ({0})"), 4: Object(U.a)("class", "classes ({0})"), 22: Object(U.a)("struct", "structs ({0})"), 23: Object(U.a)("event", "events ({0})"), 24: Object(U.a)("operator", "operators ({0})"), 10: Object(U.a)("interface", "interfaces ({0})"), 2: Object(U.a)("namespace", "namespaces ({0})"), 3: Object(U.a)("package", "packages ({0})"), 25: Object(U.a)("typeParameter", "type parameters ({0})"), 1: Object(U.a)("modules", "modules ({0})"), 6: Object(U.a)("property", "properties ({0})"), 9: Object(U.a)("enum", "enumerations ({0})"), 21: Object(U.a)("enumMember", "enumeration members ({0})"), 14: Object(U.a)("string", "strings ({0})"), 0: Object(U.a)("file", "files ({0})"), 17: Object(U.a)("array", "arrays ({0})"), 15: Object(U.a)("number", "numbers ({0})"), 16: Object(U.a)("boolean", "booleans ({0})"), 18: Object(U.a)("object", "objects ({0})"), 19: Object(U.a)("key", "keys ({0})"), 7: Object(U.a)("field", "fields ({0})"), 13: Object(U.a)("constant", "constants ({0})")}; var Qg = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, Jg = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); @@ -73296,7 +73295,7 @@ ${Object(zn.b)(wi)} super(), this.editorService = e2, this.onDidActiveTextEditorControlChange = Lt.b.None; } get activeTextEditorControl() { - return Object(Jo.n)(this.editorService.getFocusedCodeEditor()); + return Object(Qr.n)(this.editorService.getFocusedCodeEditor()); } }; ef = Qg([Jg(0, Me.a)], ef), Gh.a.as(Ig.b.Quickaccess).registerQuickAccessProvider({ctor: ef, prefix: Yg.PREFIX, helpEntries: [{description: ug.f.quickOutlineActionLabel, prefix: Yg.PREFIX, needsEditor: true}, {description: ug.f.quickOutlineByCategoryActionLabel, prefix: Yg.PREFIX_BY_CATEGORY, needsEditor: true}]}); @@ -73309,32 +73308,32 @@ ${Object(zn.b)(wi)} } } Object(V.k)(tf); - var nf, of = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var nf, rf = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }; - function rf(e2) { + function of(e2) { const t2 = e2; return Array.isArray(t2.items); } @@ -73349,19 +73348,19 @@ ${Object(zn.b)(wi)} var n2; const i2 = new pe.b(); e2.canAcceptInBackground = !!((n2 = this.options) === null || n2 === void 0 ? void 0 : n2.canAcceptInBackground), e2.matchOnLabel = e2.matchOnDescription = e2.matchOnDetail = e2.sortByLabel = false; - let o2 = void 0; - const r2 = i2.add(new pe.d()), s2 = () => of(this, void 0, void 0, function* () { - const n3 = r2.value = new pe.b(); - o2 == null || o2.dispose(true), e2.busy = false, o2 = new Xe.b(t2); - const i3 = o2.token, s3 = e2.value.substr(this.prefix.length).trim(), a2 = this.getPicks(s3, n3, i3), l2 = (t3, n4) => { + let r2 = void 0; + const o2 = i2.add(new pe.d()), s2 = () => rf(this, void 0, void 0, function* () { + const n3 = o2.value = new pe.b(); + r2 == null || r2.dispose(true), e2.busy = false, r2 = new Xe.b(t2); + const i3 = r2.token, s3 = e2.value.substr(this.prefix.length).trim(), a2 = this.getPicks(s3, n3, i3), l2 = (t3, n4) => { var i4; - let o3, r3 = void 0; - if (rf(t3) ? (o3 = t3.items, r3 = t3.active) : o3 = t3, o3.length === 0) { + let r3, o3 = void 0; + if (of(t3) ? (r3 = t3.items, o3 = t3.active) : r3 = t3, r3.length === 0) { if (n4) return false; - s3.length > 0 && ((i4 = this.options) === null || i4 === void 0 ? void 0 : i4.noResultsPick) && (o3 = [this.options.noResultsPick]); + s3.length > 0 && ((i4 = this.options) === null || i4 === void 0 ? void 0 : i4.noResultsPick) && (r3 = [this.options.noResultsPick]); } - return e2.items = o3, r3 && (e2.activeItems = [r3]), true; + return e2.items = r3, o3 && (e2.activeItems = [o3]), true; }; if (a2 === null) ; @@ -73370,24 +73369,24 @@ ${Object(zn.b)(wi)} return !!t3.picks && t3.additionalPicks instanceof Promise; }(a2)) { let t3 = false, n4 = false; - yield Promise.all([(() => of(this, void 0, void 0, function* () { + yield Promise.all([(() => rf(this, void 0, void 0, function* () { yield Object(ue.l)(sf.FAST_PICKS_RACE_DELAY), i3.isCancellationRequested || n4 || (t3 = l2(a2.picks, true)); - }))(), (() => of(this, void 0, void 0, function* () { + }))(), (() => rf(this, void 0, void 0, function* () { e2.busy = true; try { - const o3 = yield a2.additionalPicks; + const r3 = yield a2.additionalPicks; if (i3.isCancellationRequested) return; - let r3, s4, c2 = void 0; - rf(a2.picks) ? (r3 = a2.picks.items, c2 = a2.picks.active) : r3 = a2.picks; + let o3, s4, c2 = void 0; + of(a2.picks) ? (o3 = a2.picks.items, c2 = a2.picks.active) : o3 = a2.picks; let d2 = void 0; - if (rf(o3) ? (s4 = o3.items, d2 = o3.active) : s4 = o3, s4.length > 0 || !t3) { + if (of(r3) ? (s4 = r3.items, d2 = r3.active) : s4 = r3, s4.length > 0 || !t3) { let t4 = void 0; if (!c2 && !d2) { const n5 = e2.activeItems[0]; - n5 && r3.indexOf(n5) !== -1 && (t4 = n5); + n5 && o3.indexOf(n5) !== -1 && (t4 = n5); } - l2({items: [...r3, ...s4], active: c2 || d2 || t4}); + l2({items: [...o3, ...s4], active: c2 || d2 || t4}); } } finally { i3.isCancellationRequested || (e2.busy = false), n4 = true; @@ -73409,15 +73408,15 @@ ${Object(zn.b)(wi)} return i2.add(e2.onDidChangeValue(() => s2())), s2(), i2.add(e2.onDidAccept((t3) => { const [n3] = e2.selectedItems; typeof (n3 == null ? void 0 : n3.accept) == "function" && (t3.inBackground || e2.hide(), n3.accept(e2.keyMods, t3)); - })), i2.add(e2.onDidTriggerItemButton(({button: n3, item: i3}) => of(this, void 0, void 0, function* () { - var o3, r3; + })), i2.add(e2.onDidTriggerItemButton(({button: n3, item: i3}) => rf(this, void 0, void 0, function* () { + var r3, o3; if (typeof i3.trigger == "function") { - const a2 = (r3 = (o3 = i3.buttons) === null || o3 === void 0 ? void 0 : o3.indexOf(n3)) !== null && r3 !== void 0 ? r3 : -1; + const a2 = (o3 = (r3 = i3.buttons) === null || r3 === void 0 ? void 0 : r3.indexOf(n3)) !== null && o3 !== void 0 ? o3 : -1; if (a2 >= 0) { - const n4 = i3.trigger(a2, e2.keyMods), o4 = typeof n4 == "number" ? n4 : yield n4; + const n4 = i3.trigger(a2, e2.keyMods), r4 = typeof n4 == "number" ? n4 : yield n4; if (t2.isCancellationRequested) return; - switch (o4) { + switch (r4) { case nf.NO_ACTION: break; case nf.CLOSE_PICKER: @@ -73454,7 +73453,7 @@ ${Object(zn.b)(wi)} const n2 = G.d(e2), i2 = df(n2[0], t2); return n2.length > 1 ? U.a("error.moreErrors", "{0} ({1} errors in total)", i2, n2.length) : i2; } - if (Jo.j(e2)) + if (Qr.j(e2)) return e2; if (e2.detail) { const n2 = e2.detail; @@ -73467,36 +73466,36 @@ ${Object(zn.b)(wi)} } sf.FAST_PICKS_RACE_DELAY = 200; var hf = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, uf = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, pf = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -73504,32 +73503,32 @@ ${Object(zn.b)(wi)} }); }; let mf = class e2 extends sf { - constructor(t2, n2, i2, o2, r2, s2) { - super(e2.PREFIX, t2), this.options = t2, this.instantiationService = n2, this.keybindingService = i2, this.commandService = o2, this.telemetryService = r2, this.notificationService = s2, this.commandsHistory = this._register(this.instantiationService.createInstance(gf)); + constructor(t2, n2, i2, r2, o2, s2) { + super(e2.PREFIX, t2), this.options = t2, this.instantiationService = n2, this.keybindingService = i2, this.commandService = r2, this.telemetryService = o2, this.notificationService = s2, this.commandsHistory = this._register(this.instantiationService.createInstance(gf)); } getPicks(t2, n2, i2) { return pf(this, void 0, void 0, function* () { - const o2 = yield this.getCommandPicks(n2, i2); + const r2 = yield this.getCommandPicks(n2, i2); if (i2.isCancellationRequested) return []; - const r2 = []; - for (const n3 of o2) { - const i3 = Object(Jo.n)(e2.WORD_FILTER(t2, n3.label)), o3 = n3.commandAlias ? Object(Jo.n)(e2.WORD_FILTER(t2, n3.commandAlias)) : void 0; - i3 || o3 ? (n3.highlights = {label: i3, detail: this.options.showAlias ? o3 : void 0}, r2.push(n3)) : t2 === n3.commandId && r2.push(n3); + const o2 = []; + for (const n3 of r2) { + const i3 = Object(Qr.n)(e2.WORD_FILTER(t2, n3.label)), r3 = n3.commandAlias ? Object(Qr.n)(e2.WORD_FILTER(t2, n3.commandAlias)) : void 0; + i3 || r3 ? (n3.highlights = {label: i3, detail: this.options.showAlias ? r3 : void 0}, o2.push(n3)) : t2 === n3.commandId && o2.push(n3); } const s2 = new Map(); - for (const e3 of r2) { + for (const e3 of o2) { const t3 = s2.get(e3.label); t3 ? (e3.description = e3.commandId, t3.description = t3.commandId) : s2.set(e3.label, e3); } - r2.sort((e3, t3) => { + o2.sort((e3, t3) => { const n3 = this.commandsHistory.peek(e3.commandId), i3 = this.commandsHistory.peek(t3.commandId); return n3 && i3 ? n3 > i3 ? -1 : 1 : n3 ? -1 : i3 ? 1 : e3.label.localeCompare(t3.label); }); const a2 = []; let l2 = false; - for (let e3 = 0; e3 < r2.length; e3++) { - const t3 = r2[e3], n3 = this.keybindingService.lookupKeybinding(t3.commandId), i3 = n3 ? Object(U.a)("commandPickAriaLabelWithKeybinding", "{0}, {1}", t3.label, n3.getAriaLabel()) : t3.label; + for (let e3 = 0; e3 < o2.length; e3++) { + const t3 = o2[e3], n3 = this.keybindingService.lookupKeybinding(t3.commandId), i3 = n3 ? Object(U.a)("commandPickAriaLabelWithKeybinding", "{0}, {1}", t3.label, n3.getAriaLabel()) : t3.label; e3 === 0 && this.commandsHistory.peek(t3.commandId) && (a2.push({type: "separator", label: Object(U.a)("recentlyUsed", "recently used")}), l2 = true), e3 !== 0 && l2 && !this.commandsHistory.peek(t3.commandId) && (a2.push({type: "separator", label: Object(U.a)("morecCommands", "other commands")}), l2 = false), a2.push(Object.assign(Object.assign({}, t3), {ariaLabel: i3, detail: this.options.showAlias && t3.commandAlias !== t3.label ? t3.commandAlias : void 0, keybinding: n3, accept: () => pf(this, void 0, void 0, function* () { this.commandsHistory.push(t3.commandId), this.telemetryService.publicLog2("workbenchActionExecuted", {id: t3.commandId, from: "quick open"}); try { @@ -73584,14 +73583,14 @@ ${Object(zn.b)(wi)} } static getConfiguredCommandHistoryLength(t2) { var n2, i2; - const o2 = (i2 = (n2 = t2.getValue().workbench) === null || n2 === void 0 ? void 0 : n2.commandPalette) === null || i2 === void 0 ? void 0 : i2.history; - return typeof o2 == "number" ? o2 : e2.DEFAULT_COMMANDS_HISTORY_LENGTH; + const r2 = (i2 = (n2 = t2.getValue().workbench) === null || n2 === void 0 ? void 0 : n2.commandPalette) === null || i2 === void 0 ? void 0 : i2.history; + return typeof r2 == "number" ? r2 : e2.DEFAULT_COMMANDS_HISTORY_LENGTH; } }; - gf.DEFAULT_COMMANDS_HISTORY_LENGTH = 50, gf.PREF_KEY_CACHE = "commandPalette.mru.cache", gf.PREF_KEY_COUNTER = "commandPalette.mru.counter", gf.counter = 1, gf = hf([uf(0, fn.a), uf(1, On.a), uf(2, Wo.a)], gf); + gf.DEFAULT_COMMANDS_HISTORY_LENGTH = 50, gf.PREF_KEY_CACHE = "commandPalette.mru.cache", gf.PREF_KEY_COUNTER = "commandPalette.mru.counter", gf.counter = 1, gf = hf([uf(0, fn.a), uf(1, Dn.a), uf(2, Fr.a)], gf); class ff extends mf { - constructor(e2, t2, n2, i2, o2, r2) { - super(e2, t2, n2, i2, o2, r2); + constructor(e2, t2, n2, i2, r2, o2) { + super(e2, t2, n2, i2, r2, o2); } getCodeEditorCommandPicks() { const e2 = this.activeTextEditorControl; @@ -73604,36 +73603,36 @@ ${Object(zn.b)(wi)} } } var bf = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, _f = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }, vf = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } @@ -73641,11 +73640,11 @@ ${Object(zn.b)(wi)} }); }; let wf = class extends ff { - constructor(e2, t2, n2, i2, o2, r2) { - super({showAlias: false}, e2, n2, i2, o2, r2), this.codeEditorService = t2; + constructor(e2, t2, n2, i2, r2, o2) { + super({showAlias: false}, e2, n2, i2, r2, o2), this.codeEditorService = t2; } get activeTextEditorControl() { - return Object(Jo.n)(this.codeEditorService.getFocusedCodeEditor()); + return Object(Qr.n)(this.codeEditorService.getFocusedCodeEditor()); } getCommandPicks() { return vf(this, void 0, void 0, function* () { @@ -73664,24 +73663,24 @@ ${Object(zn.b)(wi)} } Object(V.k)(yf); var Cf = function(e2, t2, n2, i2) { - var o2, r2 = arguments.length, s2 = r2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; + var r2, o2 = arguments.length, s2 = o2 < 3 ? t2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(t2, n2) : i2; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s2 = Reflect.decorate(e2, t2, n2, i2); else for (var a2 = e2.length - 1; a2 >= 0; a2--) - (o2 = e2[a2]) && (s2 = (r2 < 3 ? o2(s2) : r2 > 3 ? o2(t2, n2, s2) : o2(t2, n2)) || s2); - return r2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; + (r2 = e2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(t2, n2, s2) : r2(t2, n2)) || s2); + return o2 > 3 && s2 && Object.defineProperty(t2, n2, s2), s2; }, xf = function(e2, t2) { return function(n2, i2) { t2(n2, i2, e2); }; }; let Sf = class extends Xa { - constructor(e2, t2, n2, i2, o2, r2, s2) { - super(true, e2, t2, n2, i2, o2, r2, s2); + constructor(e2, t2, n2, i2, r2, o2, s2) { + super(true, e2, t2, n2, i2, r2, o2, s2); } }; - Sf = Cf([xf(1, K.b), xf(2, Me.a), xf(3, zt.a), xf(4, gt.a), xf(5, fn.a), xf(6, On.a)], Sf), Object(V.m)(Xa.ID, Sf); + Sf = Cf([xf(1, K.b), xf(2, Me.a), xf(3, zt.a), xf(4, gt.a), xf(5, fn.a), xf(6, Dn.a)], Sf), Object(V.m)(Xa.ID, Sf); class kf extends V.b { constructor() { super({id: "editor.action.toggleHighContrast", label: ug.i.toggleHighContrast, alias: "Toggle High Contrast Theme", precondition: void 0}), this._originalThemeName = null; @@ -73697,527 +73696,527 @@ ${Object(zn.b)(wi)} n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "*"}, brackets: [["[", "]"], ["(", ")"]]}, o = {defaultToken: "invalid", ignoreCase: true, tokenPostfix: ".abap", keywords: ["abap-source", "abbreviated", "abstract", "accept", "accepting", "according", "activation", "actual", "add", "add-corresponding", "adjacent", "after", "alias", "aliases", "align", "all", "allocate", "alpha", "analysis", "analyzer", "append", "appendage", "appending", "application", "archive", "area", "arithmetic", "as", "ascending", "aspect", "assert", "assign", "assigned", "assigning", "association", "asynchronous", "at", "attributes", "authority", "authority-check", "avg", "back", "background", "backup", "backward", "badi", "base", "before", "begin", "big", "binary", "bintohex", "bit", "black", "blank", "blanks", "blob", "block", "blocks", "blue", "bound", "boundaries", "bounds", "boxed", "break-point", "buffer", "by", "bypassing", "byte", "byte-order", "call", "calling", "case", "cast", "casting", "catch", "center", "centered", "chain", "chain-input", "chain-request", "change", "changing", "channels", "character", "char-to-hex", "check", "checkbox", "ci_", "circular", "class", "class-coding", "class-data", "class-events", "class-methods", "class-pool", "cleanup", "clear", "client", "clob", "clock", "close", "coalesce", "code", "coding", "col_background", "col_group", "col_heading", "col_key", "col_negative", "col_normal", "col_positive", "col_total", "collect", "color", "column", "columns", "comment", "comments", "commit", "common", "communication", "comparing", "component", "components", "compression", "compute", "concat", "concat_with_space", "concatenate", "cond", "condition", "connect", "connection", "constants", "context", "contexts", "continue", "control", "controls", "conv", "conversion", "convert", "copies", "copy", "corresponding", "country", "cover", "cpi", "create", "creating", "critical", "currency", "currency_conversion", "current", "cursor", "cursor-selection", "customer", "customer-function", "dangerous", "data", "database", "datainfo", "dataset", "date", "dats_add_days", "dats_add_months", "dats_days_between", "dats_is_valid", "daylight", "dd/mm/yy", "dd/mm/yyyy", "ddmmyy", "deallocate", "decimal_shift", "decimals", "declarations", "deep", "default", "deferred", "define", "defining", "definition", "delete", "deleting", "demand", "department", "descending", "describe", "destination", "detail", "dialog", "directory", "disconnect", "display", "display-mode", "distinct", "divide", "divide-corresponding", "division", "do", "dummy", "duplicate", "duplicates", "duration", "during", "dynamic", "dynpro", "edit", "editor-call", "else", "elseif", "empty", "enabled", "enabling", "encoding", "end", "endat", "endcase", "endcatch", "endchain", "endclass", "enddo", "endenhancement", "end-enhancement-section", "endexec", "endform", "endfunction", "endian", "endif", "ending", "endinterface", "end-lines", "endloop", "endmethod", "endmodule", "end-of-definition", "end-of-editing", "end-of-file", "end-of-page", "end-of-selection", "endon", "endprovide", "endselect", "end-test-injection", "end-test-seam", "endtry", "endwhile", "endwith", "engineering", "enhancement", "enhancement-point", "enhancements", "enhancement-section", "entries", "entry", "enum", "environment", "errormessage", "errors", "escaping", "event", "events", "exact", "except", "exception", "exceptions", "exception-table", "exclude", "excluding", "exec", "execute", "exists", "exit", "exit-command", "expand", "expanding", "expiration", "explicit", "exponent", "export", "exporting", "extend", "extended", "extension", "extract", "fail", "fetch", "field", "field-groups", "fields", "field-symbol", "field-symbols", "file", "filter", "filters", "filter-table", "final", "first", "first-line", "fixed-point", "fkeq", "fkge", "flush", "font", "for", "form", "format", "forward", "found", "frame", "frames", "free", "friends", "from", "function", "functionality", "function-pool", "further", "gaps", "generate", "get", "giving", "gkeq", "gkge", "global", "grant", "green", "group", "groups", "handle", "handler", "harmless", "hashed", "having", "hdb", "header", "headers", "heading", "head-lines", "help-id", "help-request", "hextobin", "hide", "high", "hint", "hold", "hotspot", "icon", "id", "identification", "identifier", "ids", "if", "ignore", "ignoring", "immediately", "implementation", "implementations", "implemented", "implicit", "import", "importing", "inactive", "incl", "include", "includes", "including", "increment", "index", "index-line", "infotypes", "inheriting", "init", "initial", "initialization", "inner", "inout", "input", "instance", "instances", "instr", "intensified", "interface", "interface-pool", "interfaces", "internal", "intervals", "into", "inverse", "inverted-date", "is", "iso", "job", "join", "keep", "keeping", "kernel", "key", "keys", "keywords", "kind", "language", "last", "late", "layout", "leading", "leave", "left", "left-justified", "leftplus", "leftspace", "legacy", "length", "let", "level", "levels", "like", "line", "line-count", "linefeed", "line-selection", "line-size", "list", "listbox", "list-processing", "little", "llang", "load", "load-of-program", "lob", "local", "locale", "locator", "logfile", "logical", "log-point", "long", "loop", "low", "lower", "lpad", "lpi", "ltrim", "mail", "main", "major-id", "mapping", "margin", "mark", "mask", "matchcode", "max", "maximum", "medium", "members", "memory", "mesh", "message", "message-id", "messages", "messaging", "method", "methods", "min", "minimum", "minor-id", "mm/dd/yy", "mm/dd/yyyy", "mmddyy", "mode", "modif", "modifier", "modify", "module", "move", "move-corresponding", "multiply", "multiply-corresponding", "name", "nametab", "native", "nested", "nesting", "new", "new-line", "new-page", "new-section", "next", "no", "node", "nodes", "no-display", "no-extension", "no-gap", "no-gaps", "no-grouping", "no-heading", "non-unicode", "non-unique", "no-scrolling", "no-sign", "no-title", "no-topofpage", "no-zero", "null", "number", "object", "objects", "obligatory", "occurrence", "occurrences", "occurs", "of", "off", "offset", "ole", "on", "only", "open", "option", "optional", "options", "order", "other", "others", "out", "outer", "output", "output-length", "overflow", "overlay", "pack", "package", "pad", "padding", "page", "pages", "parameter", "parameters", "parameter-table", "part", "partially", "pattern", "percentage", "perform", "performing", "person", "pf1", "pf10", "pf11", "pf12", "pf13", "pf14", "pf15", "pf2", "pf3", "pf4", "pf5", "pf6", "pf7", "pf8", "pf9", "pf-status", "pink", "places", "pool", "pos_high", "pos_low", "position", "pragmas", "precompiled", "preferred", "preserving", "primary", "print", "print-control", "priority", "private", "procedure", "process", "program", "property", "protected", "provide", "public", "push", "pushbutton", "put", "queue-only", "quickinfo", "radiobutton", "raise", "raising", "range", "ranges", "read", "reader", "read-only", "receive", "received", "receiver", "receiving", "red", "redefinition", "reduce", "reduced", "ref", "reference", "refresh", "regex", "reject", "remote", "renaming", "replacement", "replacing", "report", "request", "requested", "reserve", "reset", "resolution", "respecting", "responsible", "result", "results", "resumable", "resume", "retry", "return", "returncode", "returning", "returns", "right", "right-justified", "rightplus", "rightspace", "risk", "rmc_communication_failure", "rmc_invalid_status", "rmc_system_failure", "role", "rollback", "rows", "rpad", "rtrim", "run", "sap", "sap-spool", "saving", "scale_preserving", "scale_preserving_scientific", "scan", "scientific", "scientific_with_leading_zero", "scroll", "scroll-boundary", "scrolling", "search", "secondary", "seconds", "section", "select", "selection", "selections", "selection-screen", "selection-set", "selection-sets", "selection-table", "select-options", "send", "separate", "separated", "set", "shared", "shift", "short", "shortdump-id", "sign_as_postfix", "single", "size", "skip", "skipping", "smart", "some", "sort", "sortable", "sorted", "source", "specified", "split", "spool", "spots", "sql", "sqlscript", "stable", "stamp", "standard", "starting", "start-of-editing", "start-of-selection", "state", "statement", "statements", "static", "statics", "statusinfo", "step-loop", "stop", "structure", "structures", "style", "subkey", "submatches", "submit", "subroutine", "subscreen", "subtract", "subtract-corresponding", "suffix", "sum", "summary", "summing", "supplied", "supply", "suppress", "switch", "switchstates", "symbol", "syncpoints", "syntax", "syntax-check", "syntax-trace", "system-call", "system-exceptions", "system-exit", "tab", "tabbed", "tables", "tableview", "tabstrip", "target", "task", "tasks", "test", "testing", "test-injection", "test-seam", "text", "textpool", "then", "throw", "time", "times", "timestamp", "timezone", "tims_is_valid", "title", "titlebar", "title-lines", "to", "tokenization", "tokens", "top-lines", "top-of-page", "trace-file", "trace-table", "trailing", "transaction", "transfer", "transformation", "transporting", "trmac", "truncate", "truncation", "try", "tstmp_add_seconds", "tstmp_current_utctimestamp", "tstmp_is_valid", "tstmp_seconds_between", "type", "type-pool", "type-pools", "types", "uline", "unassign", "under", "unicode", "union", "unique", "unit_conversion", "unix", "unpack", "until", "unwind", "up", "update", "upper", "user", "user-command", "using", "utf-8", "valid", "value", "value-request", "values", "vary", "varying", "verification-message", "version", "via", "view", "visible", "wait", "warning", "when", "whenever", "where", "while", "width", "window", "windows", "with", "with-heading", "without", "with-title", "word", "work", "write", "writer", "xml", "xsd", "yellow", "yes", "yymmdd", "zero", "zone", "abs", "acos", "asin", "atan", "bit-set", "boolc", "boolx", "ceil", "char_off", "charlen", "cmax", "cmin", "concat_lines_of", "condense", "contains", "contains_any_not_of", "contains_any_of", "cos", "cosh", "count", "count_any_not_of", "count_any_of", "dbmaxlen", "distance", "escape", "exp", "find", "find_any_not_of", "find_any_of", "find_end", "floor", "frac", "from_mixed", "insert", "ipow", "line_exists", "line_index", "lines", "log", "log10", "match", "matches", "nmax", "nmin", "numofchar", "repeat", "replace", "rescale", "reverse", "round", "segment", "shift_left", "shift_right", "sign", "sin", "sinh", "sqrt", "strlen", "substring", "substring_after", "substring_before", "substring_from", "substring_to", "tan", "tanh", "to_lower", "to_mixed", "to_upper", "translate", "trunc", "utclong_add", "utclong_current", "utclong_diff", "xsdbool", "xstrlen"], typeKeywords: ["b", "c", "d", "decfloat16", "decfloat34", "f", "i", "int8", "n", "p", "s", "string", "t", "utclong", "x", "xstring", "any", "clike", "csequence", "decfloat", "numeric", "simple", "xsequence", "table", "hashed", "index", "sorted", "standard", "accp", "char", "clnt", "cuky", "curr", "dats", "dec", "df16_dec", "df16_raw", "df34_dec", "df34_raw", "fltp", "int1", "int2", "int4", "lang", "lchr", "lraw", "numc", "quan", "raw", "rawstring", "sstring", "tims", "unit", "df16_scl", "df34_scl", "prec", "varc", "abap_bool", "space", "me", "syst", "sy", "screen"], operators: [" +", " -", "/", "*", "**", "div", "mod", "=", "#", "@", "&", "&&", "bit-and", "bit-not", "bit-or", "bit-xor", "m", "o", "z", "and", "equiv", "not", "or", " < ", " > ", "<=", ">=", "<>", "><", "=<", "=>", "between", "bt", "byte-ca", "byte-cn", "byte-co", "byte-cs", "byte-na", "byte-ns", "ca", "cn", "co", "cp", "cs", "eq", "ge", "gt", "in", "le", "lt", "na", "nb", "ne", "np", "ns"], symbols: /[=><!~?&+\-*\/\^%#@]+/, tokenizer: {root: [[/[a-z_$][\w-$]*/, {cases: {"@typeKeywords": "keyword", "@keywords": "keyword", "@operators": "operator", "@default": "identifier"}}], [/<[\w]+>/, "identifier"], {include: "@whitespace"}, [/[:,.]/, "delimiter"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/'/, {token: "string", bracket: "@open", next: "@stringquote"}], [/`/, {token: "string", bracket: "@open", next: "@stringping"}], [/\|/, {token: "string", bracket: "@open", next: "@stringtemplate"}], [/\d+/, "number"]], stringtemplate: [[/[^\\\|]+/, "string"], [/\\\|/, "string"], [/\|/, {token: "string", bracket: "@close", next: "@pop"}]], stringping: [[/[^\\`]+/, "string"], [/`/, {token: "string", bracket: "@close", next: "@pop"}]], stringquote: [[/[^\\']+/, "string"], [/'/, {token: "string", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/^\*.*$/, "comment"], [/\".*$/, "comment"]]}}; + var i = {comments: {lineComment: "*"}, brackets: [["[", "]"], ["(", ")"]]}, r = {defaultToken: "invalid", ignoreCase: true, tokenPostfix: ".abap", keywords: ["abap-source", "abbreviated", "abstract", "accept", "accepting", "according", "activation", "actual", "add", "add-corresponding", "adjacent", "after", "alias", "aliases", "align", "all", "allocate", "alpha", "analysis", "analyzer", "append", "appendage", "appending", "application", "archive", "area", "arithmetic", "as", "ascending", "aspect", "assert", "assign", "assigned", "assigning", "association", "asynchronous", "at", "attributes", "authority", "authority-check", "avg", "back", "background", "backup", "backward", "badi", "base", "before", "begin", "big", "binary", "bintohex", "bit", "black", "blank", "blanks", "blob", "block", "blocks", "blue", "bound", "boundaries", "bounds", "boxed", "break-point", "buffer", "by", "bypassing", "byte", "byte-order", "call", "calling", "case", "cast", "casting", "catch", "center", "centered", "chain", "chain-input", "chain-request", "change", "changing", "channels", "character", "char-to-hex", "check", "checkbox", "ci_", "circular", "class", "class-coding", "class-data", "class-events", "class-methods", "class-pool", "cleanup", "clear", "client", "clob", "clock", "close", "coalesce", "code", "coding", "col_background", "col_group", "col_heading", "col_key", "col_negative", "col_normal", "col_positive", "col_total", "collect", "color", "column", "columns", "comment", "comments", "commit", "common", "communication", "comparing", "component", "components", "compression", "compute", "concat", "concat_with_space", "concatenate", "cond", "condition", "connect", "connection", "constants", "context", "contexts", "continue", "control", "controls", "conv", "conversion", "convert", "copies", "copy", "corresponding", "country", "cover", "cpi", "create", "creating", "critical", "currency", "currency_conversion", "current", "cursor", "cursor-selection", "customer", "customer-function", "dangerous", "data", "database", "datainfo", "dataset", "date", "dats_add_days", "dats_add_months", "dats_days_between", "dats_is_valid", "daylight", "dd/mm/yy", "dd/mm/yyyy", "ddmmyy", "deallocate", "decimal_shift", "decimals", "declarations", "deep", "default", "deferred", "define", "defining", "definition", "delete", "deleting", "demand", "department", "descending", "describe", "destination", "detail", "dialog", "directory", "disconnect", "display", "display-mode", "distinct", "divide", "divide-corresponding", "division", "do", "dummy", "duplicate", "duplicates", "duration", "during", "dynamic", "dynpro", "edit", "editor-call", "else", "elseif", "empty", "enabled", "enabling", "encoding", "end", "endat", "endcase", "endcatch", "endchain", "endclass", "enddo", "endenhancement", "end-enhancement-section", "endexec", "endform", "endfunction", "endian", "endif", "ending", "endinterface", "end-lines", "endloop", "endmethod", "endmodule", "end-of-definition", "end-of-editing", "end-of-file", "end-of-page", "end-of-selection", "endon", "endprovide", "endselect", "end-test-injection", "end-test-seam", "endtry", "endwhile", "endwith", "engineering", "enhancement", "enhancement-point", "enhancements", "enhancement-section", "entries", "entry", "enum", "environment", "errormessage", "errors", "escaping", "event", "events", "exact", "except", "exception", "exceptions", "exception-table", "exclude", "excluding", "exec", "execute", "exists", "exit", "exit-command", "expand", "expanding", "expiration", "explicit", "exponent", "export", "exporting", "extend", "extended", "extension", "extract", "fail", "fetch", "field", "field-groups", "fields", "field-symbol", "field-symbols", "file", "filter", "filters", "filter-table", "final", "first", "first-line", "fixed-point", "fkeq", "fkge", "flush", "font", "for", "form", "format", "forward", "found", "frame", "frames", "free", "friends", "from", "function", "functionality", "function-pool", "further", "gaps", "generate", "get", "giving", "gkeq", "gkge", "global", "grant", "green", "group", "groups", "handle", "handler", "harmless", "hashed", "having", "hdb", "header", "headers", "heading", "head-lines", "help-id", "help-request", "hextobin", "hide", "high", "hint", "hold", "hotspot", "icon", "id", "identification", "identifier", "ids", "if", "ignore", "ignoring", "immediately", "implementation", "implementations", "implemented", "implicit", "import", "importing", "inactive", "incl", "include", "includes", "including", "increment", "index", "index-line", "infotypes", "inheriting", "init", "initial", "initialization", "inner", "inout", "input", "instance", "instances", "instr", "intensified", "interface", "interface-pool", "interfaces", "internal", "intervals", "into", "inverse", "inverted-date", "is", "iso", "job", "join", "keep", "keeping", "kernel", "key", "keys", "keywords", "kind", "language", "last", "late", "layout", "leading", "leave", "left", "left-justified", "leftplus", "leftspace", "legacy", "length", "let", "level", "levels", "like", "line", "line-count", "linefeed", "line-selection", "line-size", "list", "listbox", "list-processing", "little", "llang", "load", "load-of-program", "lob", "local", "locale", "locator", "logfile", "logical", "log-point", "long", "loop", "low", "lower", "lpad", "lpi", "ltrim", "mail", "main", "major-id", "mapping", "margin", "mark", "mask", "matchcode", "max", "maximum", "medium", "members", "memory", "mesh", "message", "message-id", "messages", "messaging", "method", "methods", "min", "minimum", "minor-id", "mm/dd/yy", "mm/dd/yyyy", "mmddyy", "mode", "modif", "modifier", "modify", "module", "move", "move-corresponding", "multiply", "multiply-corresponding", "name", "nametab", "native", "nested", "nesting", "new", "new-line", "new-page", "new-section", "next", "no", "node", "nodes", "no-display", "no-extension", "no-gap", "no-gaps", "no-grouping", "no-heading", "non-unicode", "non-unique", "no-scrolling", "no-sign", "no-title", "no-topofpage", "no-zero", "null", "number", "object", "objects", "obligatory", "occurrence", "occurrences", "occurs", "of", "off", "offset", "ole", "on", "only", "open", "option", "optional", "options", "order", "other", "others", "out", "outer", "output", "output-length", "overflow", "overlay", "pack", "package", "pad", "padding", "page", "pages", "parameter", "parameters", "parameter-table", "part", "partially", "pattern", "percentage", "perform", "performing", "person", "pf1", "pf10", "pf11", "pf12", "pf13", "pf14", "pf15", "pf2", "pf3", "pf4", "pf5", "pf6", "pf7", "pf8", "pf9", "pf-status", "pink", "places", "pool", "pos_high", "pos_low", "position", "pragmas", "precompiled", "preferred", "preserving", "primary", "print", "print-control", "priority", "private", "procedure", "process", "program", "property", "protected", "provide", "public", "push", "pushbutton", "put", "queue-only", "quickinfo", "radiobutton", "raise", "raising", "range", "ranges", "read", "reader", "read-only", "receive", "received", "receiver", "receiving", "red", "redefinition", "reduce", "reduced", "ref", "reference", "refresh", "regex", "reject", "remote", "renaming", "replacement", "replacing", "report", "request", "requested", "reserve", "reset", "resolution", "respecting", "responsible", "result", "results", "resumable", "resume", "retry", "return", "returncode", "returning", "returns", "right", "right-justified", "rightplus", "rightspace", "risk", "rmc_communication_failure", "rmc_invalid_status", "rmc_system_failure", "role", "rollback", "rows", "rpad", "rtrim", "run", "sap", "sap-spool", "saving", "scale_preserving", "scale_preserving_scientific", "scan", "scientific", "scientific_with_leading_zero", "scroll", "scroll-boundary", "scrolling", "search", "secondary", "seconds", "section", "select", "selection", "selections", "selection-screen", "selection-set", "selection-sets", "selection-table", "select-options", "send", "separate", "separated", "set", "shared", "shift", "short", "shortdump-id", "sign_as_postfix", "single", "size", "skip", "skipping", "smart", "some", "sort", "sortable", "sorted", "source", "specified", "split", "spool", "spots", "sql", "sqlscript", "stable", "stamp", "standard", "starting", "start-of-editing", "start-of-selection", "state", "statement", "statements", "static", "statics", "statusinfo", "step-loop", "stop", "structure", "structures", "style", "subkey", "submatches", "submit", "subroutine", "subscreen", "subtract", "subtract-corresponding", "suffix", "sum", "summary", "summing", "supplied", "supply", "suppress", "switch", "switchstates", "symbol", "syncpoints", "syntax", "syntax-check", "syntax-trace", "system-call", "system-exceptions", "system-exit", "tab", "tabbed", "tables", "tableview", "tabstrip", "target", "task", "tasks", "test", "testing", "test-injection", "test-seam", "text", "textpool", "then", "throw", "time", "times", "timestamp", "timezone", "tims_is_valid", "title", "titlebar", "title-lines", "to", "tokenization", "tokens", "top-lines", "top-of-page", "trace-file", "trace-table", "trailing", "transaction", "transfer", "transformation", "transporting", "trmac", "truncate", "truncation", "try", "tstmp_add_seconds", "tstmp_current_utctimestamp", "tstmp_is_valid", "tstmp_seconds_between", "type", "type-pool", "type-pools", "types", "uline", "unassign", "under", "unicode", "union", "unique", "unit_conversion", "unix", "unpack", "until", "unwind", "up", "update", "upper", "user", "user-command", "using", "utf-8", "valid", "value", "value-request", "values", "vary", "varying", "verification-message", "version", "via", "view", "visible", "wait", "warning", "when", "whenever", "where", "while", "width", "window", "windows", "with", "with-heading", "without", "with-title", "word", "work", "write", "writer", "xml", "xsd", "yellow", "yes", "yymmdd", "zero", "zone", "abs", "acos", "asin", "atan", "bit-set", "boolc", "boolx", "ceil", "char_off", "charlen", "cmax", "cmin", "concat_lines_of", "condense", "contains", "contains_any_not_of", "contains_any_of", "cos", "cosh", "count", "count_any_not_of", "count_any_of", "dbmaxlen", "distance", "escape", "exp", "find", "find_any_not_of", "find_any_of", "find_end", "floor", "frac", "from_mixed", "insert", "ipow", "line_exists", "line_index", "lines", "log", "log10", "match", "matches", "nmax", "nmin", "numofchar", "repeat", "replace", "rescale", "reverse", "round", "segment", "shift_left", "shift_right", "sign", "sin", "sinh", "sqrt", "strlen", "substring", "substring_after", "substring_before", "substring_from", "substring_to", "tan", "tanh", "to_lower", "to_mixed", "to_upper", "translate", "trunc", "utclong_add", "utclong_current", "utclong_diff", "xsdbool", "xstrlen"], typeKeywords: ["b", "c", "d", "decfloat16", "decfloat34", "f", "i", "int8", "n", "p", "s", "string", "t", "utclong", "x", "xstring", "any", "clike", "csequence", "decfloat", "numeric", "simple", "xsequence", "table", "hashed", "index", "sorted", "standard", "accp", "char", "clnt", "cuky", "curr", "dats", "dec", "df16_dec", "df16_raw", "df34_dec", "df34_raw", "fltp", "int1", "int2", "int4", "lang", "lchr", "lraw", "numc", "quan", "raw", "rawstring", "sstring", "tims", "unit", "df16_scl", "df34_scl", "prec", "varc", "abap_bool", "space", "me", "syst", "sy", "screen"], operators: [" +", " -", "/", "*", "**", "div", "mod", "=", "#", "@", "&", "&&", "bit-and", "bit-not", "bit-or", "bit-xor", "m", "o", "z", "and", "equiv", "not", "or", " < ", " > ", "<=", ">=", "<>", "><", "=<", "=>", "between", "bt", "byte-ca", "byte-cn", "byte-co", "byte-cs", "byte-na", "byte-ns", "ca", "cn", "co", "cp", "cs", "eq", "ge", "gt", "in", "le", "lt", "na", "nb", "ne", "np", "ns"], symbols: /[=><!~?&+\-*\/\^%#@]+/, tokenizer: {root: [[/[a-z_$][\w-$]*/, {cases: {"@typeKeywords": "keyword", "@keywords": "keyword", "@operators": "operator", "@default": "identifier"}}], [/<[\w]+>/, "identifier"], {include: "@whitespace"}, [/[:,.]/, "delimiter"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/'/, {token: "string", bracket: "@open", next: "@stringquote"}], [/`/, {token: "string", bracket: "@open", next: "@stringping"}], [/\|/, {token: "string", bracket: "@open", next: "@stringtemplate"}], [/\d+/, "number"]], stringtemplate: [[/[^\\\|]+/, "string"], [/\\\|/, "string"], [/\|/, {token: "string", bracket: "@close", next: "@pop"}]], stringping: [[/[^\\`]+/, "string"], [/`/, {token: "string", bracket: "@close", next: "@pop"}]], stringquote: [[/[^\\']+/, "string"], [/'/, {token: "string", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/^\*.*$/, "comment"], [/\".*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return r; + return o; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, o = []; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, r = []; ["abstract", "activate", "and", "any", "array", "as", "asc", "assert", "autonomous", "begin", "bigdecimal", "blob", "boolean", "break", "bulk", "by", "case", "cast", "catch", "char", "class", "collect", "commit", "const", "continue", "convertcurrency", "decimal", "default", "delete", "desc", "do", "double", "else", "end", "enum", "exception", "exit", "export", "extends", "false", "final", "finally", "float", "for", "from", "future", "get", "global", "goto", "group", "having", "hint", "if", "implements", "import", "in", "inner", "insert", "instanceof", "int", "interface", "into", "join", "last_90_days", "last_month", "last_n_days", "last_week", "like", "limit", "list", "long", "loop", "map", "merge", "native", "new", "next_90_days", "next_month", "next_n_days", "next_week", "not", "null", "nulls", "number", "object", "of", "on", "or", "outer", "override", "package", "parallel", "pragma", "private", "protected", "public", "retrieve", "return", "returning", "rollback", "savepoint", "search", "select", "set", "short", "sort", "stat", "static", "strictfp", "super", "switch", "synchronized", "system", "testmethod", "then", "this", "this_month", "this_week", "throw", "throws", "today", "tolabel", "tomorrow", "transaction", "transient", "trigger", "true", "try", "type", "undelete", "update", "upsert", "using", "virtual", "void", "volatile", "webservice", "when", "where", "while", "yesterday"].forEach(function(e2) { - o.push(e2), o.push(e2.toUpperCase()), o.push(function(e3) { + r.push(e2), r.push(e2.toUpperCase()), r.push(function(e3) { return e3.charAt(0).toUpperCase() + e3.substr(1); }(e2)); }); - var r = {defaultToken: "", tokenPostfix: ".apex", keywords: o, operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[a-z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/[A-Z][\w\$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "type.identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@apexdoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], apexdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; + var o = {defaultToken: "", tokenPostfix: ".apex", keywords: r, operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[a-z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/[A-Z][\w\$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "type.identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@apexdoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], apexdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}}, o = {defaultToken: "keyword", ignoreCase: true, tokenPostfix: ".azcli", str: /[^#\s]/, tokenizer: {root: [{include: "@comment"}, [/\s-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": {token: "key.identifier", next: "@type"}}}], [/^-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": {token: "key.identifier", next: "@type"}}}]], type: [{include: "@comment"}, [/-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": "key.identifier"}}], [/@str+\s*/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}]], comment: [[/#.*$/, {cases: {"@eos": {token: "comment", next: "@popall"}}}]]}}; + var i = {comments: {lineComment: "#"}}, r = {defaultToken: "keyword", ignoreCase: true, tokenPostfix: ".azcli", str: /[^#\s]/, tokenizer: {root: [{include: "@comment"}, [/\s-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": {token: "key.identifier", next: "@type"}}}], [/^-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": {token: "key.identifier", next: "@type"}}}]], type: [{include: "@comment"}, [/-+@str*\s*/, {cases: {"@eos": {token: "key.identifier", next: "@popall"}, "@default": "key.identifier"}}], [/@str+\s*/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}]], comment: [[/#.*$/, {cases: {"@eos": {token: "comment", next: "@popall"}}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "REM"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], folding: {markers: {start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"), end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".bat", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/, symbols: /[=><!~?&|+\-*\/\^;\.,]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]], [/(\@?)(@keywords)(?!\w)/, [{token: "keyword"}, {token: "keyword.$2"}]], [/[ \t\r\n]+/, ""], [/setlocal(?!\w)/, "keyword.tag-setlocal"], [/endlocal(?!\w)/, "keyword.tag-setlocal"], [/[a-zA-Z_]\w*/, ""], [/:\w*/, "metatag"], [/%[^%]+%/, "variable"], [/%%[\w]+(?!\w)/, "variable"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], string: [[/[^\\"'%]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/%[\w ]+%/, "variable"], [/%%[\w]+(?!\w)/, "variable"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/$/, "string", "@popall"]]}}; + var i = {comments: {lineComment: "REM"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], folding: {markers: {start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"), end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".bat", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/, symbols: /[=><!~?&|+\-*\/\^;\.,]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]], [/(\@?)(@keywords)(?!\w)/, [{token: "keyword"}, {token: "keyword.$2"}]], [/[ \t\r\n]+/, ""], [/setlocal(?!\w)/, "keyword.tag-setlocal"], [/endlocal(?!\w)/, "keyword.tag-setlocal"], [/[a-zA-Z_]\w*/, ""], [/:\w*/, "metatag"], [/%[^%]+%/, "variable"], [/%%[\w]+(?!\w)/, "variable"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], string: [[/[^\\"'%]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/%[\w ]+%/, "variable"], [/%%[\w]+(?!\w)/, "variable"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/$/, "string", "@popall"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".cameligo", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["abs", "begin", "Bytes", "Crypto", "Current", "else", "end", "failwith", "false", "fun", "if", "in", "let", "let%entry", "let%init", "List", "list", "Map", "map", "match", "match%nat", "mod", "not", "operation", "Operation", "of", "Set", "set", "sender", "source", "String", "then", "true", "type", "with"], typeKeywords: ["int", "unit", "string", "tz"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "mod", "or", "+", "-", "*", "/", "@", "&", "^", "%", "->", "<-"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\(\*]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\(\*/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\(\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".cameligo", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["abs", "begin", "Bytes", "Crypto", "Current", "else", "end", "failwith", "false", "fun", "if", "in", "let", "let%entry", "let%init", "List", "list", "Map", "map", "match", "match%nat", "mod", "not", "operation", "Operation", "of", "Set", "set", "sender", "source", "String", "then", "true", "type", "with"], typeKeywords: ["int", "unit", "string", "tz"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "mod", "or", "+", "-", "*", "/", "@", "&", "^", "%", "->", "<-"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\(\*]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\(\*/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\(\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: ";;"}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: "[", close: "]"}, {open: '"', close: '"'}, {open: "(", close: ")"}, {open: "{", close: "}"}], surroundingPairs: [{open: "[", close: "]"}, {open: '"', close: '"'}, {open: "(", close: ")"}, {open: "{", close: "}"}]}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".clj", brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}], constants: ["true", "false", "nil"], numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/, specialForms: [".", "catch", "def", "do", "if", "monitor-enter", "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"], coreSymbols: ["*", "*'", "*1", "*2", "*3", "*agent*", "*allow-unresolved-vars*", "*assert*", "*clojure-version*", "*command-line-args*", "*compile-files*", "*compile-path*", "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e", "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*", "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*", "*print-level*", "*print-meta*", "*print-namespace-maps*", "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*", "*suppress-read*", "*unchecked-math*", "*use-context-classloader*", "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'", "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode", "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=", "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec", "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch", "agent", "agent-error", "agent-errors", "aget", "alength", "alias", "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors", "and", "any?", "apply", "areduce", "array-map", "as->", "aset", "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float", "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!", "assoc-in", "associative?", "atom", "await", "await-for", "await1", "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and", "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set", "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean", "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*", "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes", "bytes?", "case", "cast", "cat", "char", "char-array", "char-escape-string", "char-name-string", "char?", "chars", "chunk", "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next", "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors", "clojure-version", "coll?", "comment", "commute", "comp", "comparator", "compare", "compare-and-set!", "compile", "complement", "completing", "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons", "constantly", "construct-proxy", "contains?", "count", "counted?", "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?", "declare", "dedupe", "default-data-readers", "definline", "definterface", "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce", "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?", "deliver", "denominator", "deref", "derive", "descendants", "destructure", "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall", "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array", "double?", "doubles", "drop", "drop-last", "drop-while", "eduction", "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq", "error-handler", "error-mode", "eval", "even?", "every-pred", "every?", "ex-data", "ex-info", "extend", "extend-protocol", "extend-type", "extenders", "extends?", "false?", "ffirst", "file-seq", "filter", "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl", "find-protocol-method", "find-var", "first", "flatten", "float", "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil", "for", "force", "format", "frequencies", "future", "future-call", "future-cancel", "future-cancelled?", "future-done?", "future?", "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method", "get-proxy-class", "get-thread-bindings", "get-validator", "group-by", "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll", "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity", "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'", "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?", "int", "int-array", "int?", "integer?", "interleave", "intern", "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate", "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword", "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq", "list", "list*", "list?", "load", "load-file", "load-reader", "load-string", "loaded-libs", "locking", "long", "long-array", "longs", "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy", "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max", "max-key", "memfn", "memoize", "merge", "merge-with", "meta", "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod", "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?", "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?", "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports", "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers", "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest", "num", "number?", "numerator", "object-array", "odd?", "or", "parents", "partial", "partition", "partition-all", "partition-by", "pcalls", "peek", "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?", "pos?", "pr", "pr-str", "prefer-method", "prefers", "primitives-classnames", "print", "print-ctor", "print-dup", "print-method", "print-simple", "print-str", "printf", "println", "println-str", "prn", "prn-str", "promise", "proxy", "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super", "push-thread-bindings", "pvalues", "qualified-ident?", "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int", "rand-nth", "random-sample", "range", "ratio?", "rational?", "rationalize", "re-find", "re-groups", "re-matcher", "re-matches", "re-pattern", "re-seq", "read", "read-line", "read-string", "reader-conditional", "reader-conditional?", "realized?", "record?", "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref", "ref-history-count", "ref-max-history", "ref-min-history", "ref-set", "refer", "refer-clojure", "reify", "release-pending-sends", "rem", "remove", "remove-all-methods", "remove-method", "remove-ns", "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require", "reset!", "reset-meta!", "reset-vals!", "resolve", "rest", "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq", "rsubseq", "run!", "satisfies?", "second", "select-keys", "send", "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence", "sequential?", "set", "set-agent-send-executor!", "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!", "set-validator!", "set?", "short", "short-array", "shorts", "shuffle", "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?", "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort", "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by", "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str", "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers", "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal", "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test", "the-ns", "thread-bound?", "time", "to-array", "to-array-2d", "trampoline", "transduce", "transient", "tree-seq", "true?", "type", "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char", "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int", "unchecked-double", "unchecked-float", "unchecked-inc", "unchecked-inc-int", "unchecked-int", "unchecked-long", "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate", "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short", "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote", "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update", "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals", "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of", "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?", "zipmap"], tokenizer: {root: [{include: "@whitespace"}, [/@numbers/, "number"], [/@characters/, "string"], {include: "@string"}, [/[()\[\]{}]/, "@brackets"], [/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"], [/[#'@^`~]/, "meta"], [/@qualifiedSymbols/, {cases: {"^:.+$": "constant", "@specialForms": "keyword", "@coreSymbols": "keyword", "@constants": "constant", "@default": "identifier"}}]], whitespace: [[/[\s,]+/, "white"], [/;.*$/, "comment"], [/\(comment\b/, "comment", "@comment"]], comment: [[/\(/, "comment", "@push"], [/\)/, "comment", "@pop"], [/[^()]/, "comment"]], string: [[/"/, "string", "@multiLineString"]], multiLineString: [[/"/, "string", "@popall"], [/@escapes/, "string.escape"], [/./, "string"]]}}; + var i = {comments: {lineComment: ";;"}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: "[", close: "]"}, {open: '"', close: '"'}, {open: "(", close: ")"}, {open: "{", close: "}"}], surroundingPairs: [{open: "[", close: "]"}, {open: '"', close: '"'}, {open: "(", close: ")"}, {open: "{", close: "}"}]}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".clj", brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}], constants: ["true", "false", "nil"], numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/, specialForms: [".", "catch", "def", "do", "if", "monitor-enter", "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"], coreSymbols: ["*", "*'", "*1", "*2", "*3", "*agent*", "*allow-unresolved-vars*", "*assert*", "*clojure-version*", "*command-line-args*", "*compile-files*", "*compile-path*", "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e", "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*", "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*", "*print-level*", "*print-meta*", "*print-namespace-maps*", "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*", "*suppress-read*", "*unchecked-math*", "*use-context-classloader*", "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'", "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode", "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=", "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec", "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch", "agent", "agent-error", "agent-errors", "aget", "alength", "alias", "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors", "and", "any?", "apply", "areduce", "array-map", "as->", "aset", "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float", "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!", "assoc-in", "associative?", "atom", "await", "await-for", "await1", "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and", "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set", "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean", "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*", "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes", "bytes?", "case", "cast", "cat", "char", "char-array", "char-escape-string", "char-name-string", "char?", "chars", "chunk", "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next", "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors", "clojure-version", "coll?", "comment", "commute", "comp", "comparator", "compare", "compare-and-set!", "compile", "complement", "completing", "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons", "constantly", "construct-proxy", "contains?", "count", "counted?", "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?", "declare", "dedupe", "default-data-readers", "definline", "definterface", "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce", "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?", "deliver", "denominator", "deref", "derive", "descendants", "destructure", "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall", "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array", "double?", "doubles", "drop", "drop-last", "drop-while", "eduction", "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq", "error-handler", "error-mode", "eval", "even?", "every-pred", "every?", "ex-data", "ex-info", "extend", "extend-protocol", "extend-type", "extenders", "extends?", "false?", "ffirst", "file-seq", "filter", "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl", "find-protocol-method", "find-var", "first", "flatten", "float", "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil", "for", "force", "format", "frequencies", "future", "future-call", "future-cancel", "future-cancelled?", "future-done?", "future?", "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method", "get-proxy-class", "get-thread-bindings", "get-validator", "group-by", "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll", "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity", "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'", "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?", "int", "int-array", "int?", "integer?", "interleave", "intern", "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate", "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword", "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq", "list", "list*", "list?", "load", "load-file", "load-reader", "load-string", "loaded-libs", "locking", "long", "long-array", "longs", "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy", "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max", "max-key", "memfn", "memoize", "merge", "merge-with", "meta", "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod", "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?", "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?", "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports", "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers", "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest", "num", "number?", "numerator", "object-array", "odd?", "or", "parents", "partial", "partition", "partition-all", "partition-by", "pcalls", "peek", "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?", "pos?", "pr", "pr-str", "prefer-method", "prefers", "primitives-classnames", "print", "print-ctor", "print-dup", "print-method", "print-simple", "print-str", "printf", "println", "println-str", "prn", "prn-str", "promise", "proxy", "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super", "push-thread-bindings", "pvalues", "qualified-ident?", "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int", "rand-nth", "random-sample", "range", "ratio?", "rational?", "rationalize", "re-find", "re-groups", "re-matcher", "re-matches", "re-pattern", "re-seq", "read", "read-line", "read-string", "reader-conditional", "reader-conditional?", "realized?", "record?", "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref", "ref-history-count", "ref-max-history", "ref-min-history", "ref-set", "refer", "refer-clojure", "reify", "release-pending-sends", "rem", "remove", "remove-all-methods", "remove-method", "remove-ns", "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require", "reset!", "reset-meta!", "reset-vals!", "resolve", "rest", "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq", "rsubseq", "run!", "satisfies?", "second", "select-keys", "send", "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence", "sequential?", "set", "set-agent-send-executor!", "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!", "set-validator!", "set?", "short", "short-array", "shorts", "shuffle", "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?", "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort", "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by", "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str", "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers", "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal", "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test", "the-ns", "thread-bound?", "time", "to-array", "to-array-2d", "trampoline", "transduce", "transient", "tree-seq", "true?", "type", "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char", "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int", "unchecked-double", "unchecked-float", "unchecked-inc", "unchecked-inc-int", "unchecked-int", "unchecked-long", "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate", "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short", "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote", "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update", "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals", "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of", "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?", "zipmap"], tokenizer: {root: [{include: "@whitespace"}, [/@numbers/, "number"], [/@characters/, "string"], {include: "@string"}, [/[()\[\]{}]/, "@brackets"], [/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"], [/[#'@^`~]/, "meta"], [/@qualifiedSymbols/, {cases: {"^:.+$": "constant", "@specialForms": "keyword", "@coreSymbols": "keyword", "@constants": "constant", "@default": "identifier"}}]], whitespace: [[/[\s,]+/, "white"], [/;.*$/, "comment"], [/\(comment\b/, "comment", "@comment"]], comment: [[/\(/, "comment", "@push"], [/\)/, "comment", "@pop"], [/[^()]/, "comment"]], string: [[/"/, "string", "@multiLineString"]], multiLineString: [[/"/, "string", "@popall"], [/@escapes/, "string.escape"], [/./, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {blockComment: ["###", "###"], lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".coffee", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/, keywords: ["and", "or", "is", "isnt", "not", "on", "yes", "@", "no", "off", "true", "false", "null", "this", "new", "delete", "typeof", "in", "instanceof", "return", "throw", "break", "continue", "debugger", "if", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "undefined", "then", "unless", "until", "loop", "of", "by", "when"], symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/, escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\@[a-zA-Z_]\w*/, "variable.predefined"], [/[a-zA-Z_]\w*/, {cases: {this: "variable.predefined", "@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/###/, "comment", "@comment"], [/#.*$/, "comment"], ["///", {token: "regexp", next: "@hereregexp"}], [/^(\s*)(@regEx)/, ["", "regexp"]], [/(\()(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\=)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\[)(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\!)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\&)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\|)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\?)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\{)(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\;)(\s*)(@regEx)/, ["", "", "regexp"]], [/}/, {cases: {"$S2==interpolatedstring": {token: "string", next: "@pop"}, "@default": "@brackets"}}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/0[0-7]+(?!\d)/, "number.octal"], [/\d+/, "number"], [/[,.]/, "delimiter"], [/"""/, "string", '@herestring."""'], [/'''/, "string", "@herestring.'''"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\#\\]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\./, "string.escape.invalid"], [/#{/, {cases: {'$S2=="': {token: "string", next: "root.interpolatedstring"}, "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/#/, "string"]], herestring: [[/("""|''')/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^#\\'"]+/, "string"], [/['"]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/#{/, {token: "string.quote", next: "root.interpolatedstring"}], [/#/, "string"]], comment: [[/[^#]+/, "comment"], [/###/, "comment", "@pop"], [/#/, "comment"]], hereregexp: [[/[^\\\/#]+/, "regexp"], [/\\./, "regexp"], [/#.*$/, "comment"], ["///[igm]*", {token: "regexp", next: "@pop"}], [/\//, "regexp"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {blockComment: ["###", "###"], lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".coffee", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/, keywords: ["and", "or", "is", "isnt", "not", "on", "yes", "@", "no", "off", "true", "false", "null", "this", "new", "delete", "typeof", "in", "instanceof", "return", "throw", "break", "continue", "debugger", "if", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "undefined", "then", "unless", "until", "loop", "of", "by", "when"], symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/, escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\@[a-zA-Z_]\w*/, "variable.predefined"], [/[a-zA-Z_]\w*/, {cases: {this: "variable.predefined", "@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/###/, "comment", "@comment"], [/#.*$/, "comment"], ["///", {token: "regexp", next: "@hereregexp"}], [/^(\s*)(@regEx)/, ["", "regexp"]], [/(\()(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\=)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\[)(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\!)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\&)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\|)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\?)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\{)(\s*)(@regEx)/, ["@brackets", "", "regexp"]], [/(\;)(\s*)(@regEx)/, ["", "", "regexp"]], [/}/, {cases: {"$S2==interpolatedstring": {token: "string", next: "@pop"}, "@default": "@brackets"}}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/0[0-7]+(?!\d)/, "number.octal"], [/\d+/, "number"], [/[,.]/, "delimiter"], [/"""/, "string", '@herestring."""'], [/'''/, "string", "@herestring.'''"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\#\\]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\./, "string.escape.invalid"], [/#{/, {cases: {'$S2=="': {token: "string", next: "root.interpolatedstring"}, "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/#/, "string"]], herestring: [[/("""|''')/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^#\\'"]+/, "string"], [/['"]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/#{/, {token: "string.quote", next: "root.interpolatedstring"}], [/#/, "string"]], comment: [[/[^#]+/, "comment"], [/###/, "comment", "@pop"], [/#/, "comment"]], hereregexp: [[/[^\\\/#]+/, "regexp"], [/\\./, "regexp"], [/#.*$/, "comment"], ["///[igm]*", {token: "regexp", next: "@pop"}], [/\//, "regexp"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, o = {defaultToken: "", tokenPostfix: ".cpp", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["abstract", "amp", "array", "auto", "bool", "break", "case", "catch", "char", "class", "const", "constexpr", "const_cast", "continue", "cpu", "decltype", "default", "delegate", "delete", "do", "double", "dynamic_cast", "each", "else", "enum", "event", "explicit", "export", "extern", "false", "final", "finally", "float", "for", "friend", "gcnew", "generic", "goto", "if", "in", "initonly", "inline", "int", "interface", "interior_ptr", "internal", "literal", "long", "mutable", "namespace", "new", "noexcept", "nullptr", "__nullptr", "operator", "override", "partial", "pascal", "pin_ptr", "private", "property", "protected", "public", "ref", "register", "reinterpret_cast", "restrict", "return", "safe_cast", "sealed", "short", "signed", "sizeof", "static", "static_assert", "static_cast", "struct", "switch", "template", "this", "thread_local", "throw", "tile_static", "true", "try", "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual", "void", "volatile", "wchar_t", "where", "while", "_asm", "_based", "_cdecl", "_declspec", "_fastcall", "_if_exists", "_if_not_exists", "_inline", "_multiple_inheritance", "_pascal", "_single_inheritance", "_stdcall", "_virtual_inheritance", "_w64", "__abstract", "__alignof", "__asm", "__assume", "__based", "__box", "__builtin_alignof", "__cdecl", "__clrcall", "__declspec", "__delegate", "__event", "__except", "__fastcall", "__finally", "__forceinline", "__gc", "__hook", "__identifier", "__if_exists", "__if_not_exists", "__inline", "__int128", "__int16", "__int32", "__int64", "__int8", "__interface", "__leave", "__m128", "__m128d", "__m128i", "__m256", "__m256d", "__m256i", "__m64", "__multiple_inheritance", "__newslot", "__nogc", "__noop", "__nounwind", "__novtordisp", "__pascal", "__pin", "__pragma", "__property", "__ptr32", "__ptr64", "__raise", "__restrict", "__resume", "__sealed", "__single_inheritance", "__stdcall", "__super", "__thiscall", "__try", "__try_cast", "__typeof", "__unaligned", "__unhook", "__uuidof", "__value", "__virtual_inheritance", "__w64", "__wchar_t"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, encoding: /u|u8|U|L/, tokenizer: {root: [[/@encoding?R\"(?:([^ ()\\\t]*))\(/, {token: "string.raw.begin", next: "@raw.$1"}], [/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#include/, {token: "keyword.directive.include", next: "@include"}], [/^\s*#\s*\w+/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], raw: [[/(.*)(\))(?:([^ ()\\\t"]*))(\")/, {cases: {"$3==$S2": ["string.raw", "string.raw.end", "string.raw.end", {token: "string.raw.end", next: "@pop"}], "@default": ["string.raw", "string.raw", "string.raw", "string.raw"]}}], [/.*/, "string.raw"]], include: [[/(\s*)(<)([^<>]*)(>)/, ["", "keyword.directive.include.begin", "string.include.identifier", {token: "keyword.directive.include.end", next: "@pop"}]], [/(\s*)(")([^"]*)(")/, ["", "keyword.directive.include.begin", "string.include.identifier", {token: "keyword.directive.include.end", next: "@pop"}]]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, r = {defaultToken: "", tokenPostfix: ".cpp", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["abstract", "amp", "array", "auto", "bool", "break", "case", "catch", "char", "class", "const", "constexpr", "const_cast", "continue", "cpu", "decltype", "default", "delegate", "delete", "do", "double", "dynamic_cast", "each", "else", "enum", "event", "explicit", "export", "extern", "false", "final", "finally", "float", "for", "friend", "gcnew", "generic", "goto", "if", "in", "initonly", "inline", "int", "interface", "interior_ptr", "internal", "literal", "long", "mutable", "namespace", "new", "noexcept", "nullptr", "__nullptr", "operator", "override", "partial", "pascal", "pin_ptr", "private", "property", "protected", "public", "ref", "register", "reinterpret_cast", "restrict", "return", "safe_cast", "sealed", "short", "signed", "sizeof", "static", "static_assert", "static_cast", "struct", "switch", "template", "this", "thread_local", "throw", "tile_static", "true", "try", "typedef", "typeid", "typename", "union", "unsigned", "using", "virtual", "void", "volatile", "wchar_t", "where", "while", "_asm", "_based", "_cdecl", "_declspec", "_fastcall", "_if_exists", "_if_not_exists", "_inline", "_multiple_inheritance", "_pascal", "_single_inheritance", "_stdcall", "_virtual_inheritance", "_w64", "__abstract", "__alignof", "__asm", "__assume", "__based", "__box", "__builtin_alignof", "__cdecl", "__clrcall", "__declspec", "__delegate", "__event", "__except", "__fastcall", "__finally", "__forceinline", "__gc", "__hook", "__identifier", "__if_exists", "__if_not_exists", "__inline", "__int128", "__int16", "__int32", "__int64", "__int8", "__interface", "__leave", "__m128", "__m128d", "__m128i", "__m256", "__m256d", "__m256i", "__m64", "__multiple_inheritance", "__newslot", "__nogc", "__noop", "__nounwind", "__novtordisp", "__pascal", "__pin", "__pragma", "__property", "__ptr32", "__ptr64", "__raise", "__restrict", "__resume", "__sealed", "__single_inheritance", "__stdcall", "__super", "__thiscall", "__try", "__try_cast", "__typeof", "__unaligned", "__unhook", "__uuidof", "__value", "__virtual_inheritance", "__w64", "__wchar_t"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, encoding: /u|u8|U|L/, tokenizer: {root: [[/@encoding?R\"(?:([^ ()\\\t]*))\(/, {token: "string.raw.begin", next: "@raw.$1"}], [/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#include/, {token: "keyword.directive.include", next: "@include"}], [/^\s*#\s*\w+/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], raw: [[/(.*)(\))(?:([^ ()\\\t"]*))(\")/, {cases: {"$3==$S2": ["string.raw", "string.raw.end", "string.raw.end", {token: "string.raw.end", next: "@pop"}], "@default": ["string.raw", "string.raw", "string.raw", "string.raw"]}}], [/.*/, "string.raw"]], include: [[/(\s*)(<)([^<>]*)(>)/, ["", "keyword.directive.include.begin", "string.include.identifier", {token: "keyword.directive.include.end", next: "@pop"}]], [/(\s*)(")([^"]*)(")/, ["", "keyword.directive.include.begin", "string.include.identifier", {token: "keyword.directive.include.end", next: "@pop"}]]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, o = {defaultToken: "", tokenPostfix: ".cs", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["extern", "alias", "using", "bool", "decimal", "sbyte", "byte", "short", "ushort", "int", "uint", "long", "ulong", "char", "float", "double", "object", "dynamic", "string", "assembly", "is", "as", "ref", "out", "this", "base", "new", "typeof", "void", "checked", "unchecked", "default", "delegate", "var", "const", "if", "else", "switch", "case", "while", "do", "for", "foreach", "in", "break", "continue", "goto", "return", "throw", "try", "catch", "finally", "lock", "yield", "from", "let", "where", "join", "on", "equals", "into", "orderby", "ascending", "descending", "select", "group", "by", "namespace", "partial", "class", "field", "event", "method", "param", "property", "public", "protected", "internal", "private", "abstract", "sealed", "static", "struct", "readonly", "volatile", "virtual", "override", "params", "get", "set", "add", "remove", "operator", "true", "false", "implicit", "explicit", "interface", "enum", "null", "async", "await", "fixed", "sizeof", "stackalloc", "unsafe", "nameof", "when"], namespaceFollows: ["namespace", "using"], parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"], operators: ["=", "??", "||", "&&", "|", "^", "&", "==", "!=", "<=", ">=", "<<", "+", "-", "*", "/", "%", "!", "~", "++", "--", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", ">>", "=>"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\@?[a-zA-Z_]\w*/, {cases: {"@namespaceFollows": {token: "keyword.$0", next: "@namespace"}, "@keywords": {token: "keyword.$0", next: "@qualified"}, "@default": {token: "identifier", next: "@qualified"}}}], {include: "@whitespace"}, [/}/, {cases: {"$S2==interpolatedstring": {token: "string.quote", next: "@pop"}, "$S2==litinterpstring": {token: "string.quote", next: "@pop"}, "@default": "@brackets"}}], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"], [/0[xX][0-9a-fA-F_]+/, "number.hex"], [/0[bB][01_]+/, "number.hex"], [/[0-9_]+/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", next: "@string"}], [/\$\@"/, {token: "string.quote", next: "@litinterpstring"}], [/\@"/, {token: "string.quote", next: "@litstring"}], [/\$"/, {token: "string.quote", next: "@interpolatedstring"}], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], qualified: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/\./, "delimiter"], ["", "", "@pop"]], namespace: [{include: "@whitespace"}, [/[A-Z]\w*/, "namespace"], [/[\.=]/, "delimiter"], ["", "", "@pop"]], comment: [[/[^\/*]+/, "comment"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", next: "@pop"}]], litstring: [[/[^"]+/, "string"], [/""/, "string.escape"], [/"/, {token: "string.quote", next: "@pop"}]], litinterpstring: [[/[^"{]+/, "string"], [/""/, "string.escape"], [/{{/, "string.escape"], [/}}/, "string.escape"], [/{/, {token: "string.quote", next: "root.litinterpstring"}], [/"/, {token: "string.quote", next: "@pop"}]], interpolatedstring: [[/[^\\"{]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/{{/, "string.escape"], [/}}/, "string.escape"], [/{/, {token: "string.quote", next: "root.interpolatedstring"}], [/"/, {token: "string.quote", next: "@pop"}]], whitespace: [[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"], [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"], [/[ \t\v\f\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, r = {defaultToken: "", tokenPostfix: ".cs", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["extern", "alias", "using", "bool", "decimal", "sbyte", "byte", "short", "ushort", "int", "uint", "long", "ulong", "char", "float", "double", "object", "dynamic", "string", "assembly", "is", "as", "ref", "out", "this", "base", "new", "typeof", "void", "checked", "unchecked", "default", "delegate", "var", "const", "if", "else", "switch", "case", "while", "do", "for", "foreach", "in", "break", "continue", "goto", "return", "throw", "try", "catch", "finally", "lock", "yield", "from", "let", "where", "join", "on", "equals", "into", "orderby", "ascending", "descending", "select", "group", "by", "namespace", "partial", "class", "field", "event", "method", "param", "property", "public", "protected", "internal", "private", "abstract", "sealed", "static", "struct", "readonly", "volatile", "virtual", "override", "params", "get", "set", "add", "remove", "operator", "true", "false", "implicit", "explicit", "interface", "enum", "null", "async", "await", "fixed", "sizeof", "stackalloc", "unsafe", "nameof", "when"], namespaceFollows: ["namespace", "using"], parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"], operators: ["=", "??", "||", "&&", "|", "^", "&", "==", "!=", "<=", ">=", "<<", "+", "-", "*", "/", "%", "!", "~", "++", "--", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", ">>", "=>"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\@?[a-zA-Z_]\w*/, {cases: {"@namespaceFollows": {token: "keyword.$0", next: "@namespace"}, "@keywords": {token: "keyword.$0", next: "@qualified"}, "@default": {token: "identifier", next: "@qualified"}}}], {include: "@whitespace"}, [/}/, {cases: {"$S2==interpolatedstring": {token: "string.quote", next: "@pop"}, "$S2==litinterpstring": {token: "string.quote", next: "@pop"}, "@default": "@brackets"}}], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"], [/0[xX][0-9a-fA-F_]+/, "number.hex"], [/0[bB][01_]+/, "number.hex"], [/[0-9_]+/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", next: "@string"}], [/\$\@"/, {token: "string.quote", next: "@litinterpstring"}], [/\@"/, {token: "string.quote", next: "@litstring"}], [/\$"/, {token: "string.quote", next: "@interpolatedstring"}], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], qualified: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/\./, "delimiter"], ["", "", "@pop"]], namespace: [{include: "@whitespace"}, [/[A-Z]\w*/, "namespace"], [/[\.=]/, "delimiter"], ["", "", "@pop"]], comment: [[/[^\/*]+/, "comment"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", next: "@pop"}]], litstring: [[/[^"]+/, "string"], [/""/, "string.escape"], [/"/, {token: "string.quote", next: "@pop"}]], litinterpstring: [[/[^"{]+/, "string"], [/""/, "string.escape"], [/{{/, "string.escape"], [/}}/, "string.escape"], [/{/, {token: "string.quote", next: "root.litinterpstring"}], [/"/, {token: "string.quote", next: "@pop"}]], interpolatedstring: [[/[^\\"{]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/{{/, "string.escape"], [/}}/, "string.escape"], [/{/, {token: "string.quote", next: "root.interpolatedstring"}], [/"/, {token: "string.quote", next: "@pop"}]], whitespace: [[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"], [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"], [/[ \t\v\f\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [], autoClosingPairs: [], surroundingPairs: []}, o = {keywords: [], typeKeywords: [], tokenPostfix: ".csp", operators: [], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/child-src/, "string.quote"], [/connect-src/, "string.quote"], [/default-src/, "string.quote"], [/font-src/, "string.quote"], [/frame-src/, "string.quote"], [/img-src/, "string.quote"], [/manifest-src/, "string.quote"], [/media-src/, "string.quote"], [/object-src/, "string.quote"], [/script-src/, "string.quote"], [/style-src/, "string.quote"], [/worker-src/, "string.quote"], [/base-uri/, "string.quote"], [/plugin-types/, "string.quote"], [/sandbox/, "string.quote"], [/disown-opener/, "string.quote"], [/form-action/, "string.quote"], [/frame-ancestors/, "string.quote"], [/report-uri/, "string.quote"], [/report-to/, "string.quote"], [/upgrade-insecure-requests/, "string.quote"], [/block-all-mixed-content/, "string.quote"], [/require-sri-for/, "string.quote"], [/reflected-xss/, "string.quote"], [/referrer/, "string.quote"], [/policy-uri/, "string.quote"], [/'self'/, "string.quote"], [/'unsafe-inline'/, "string.quote"], [/'unsafe-eval'/, "string.quote"], [/'strict-dynamic'/, "string.quote"], [/'unsafe-hashed-attributes'/, "string.quote"]]}}; + var i = {brackets: [], autoClosingPairs: [], surroundingPairs: []}, r = {keywords: [], typeKeywords: [], tokenPostfix: ".csp", operators: [], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/child-src/, "string.quote"], [/connect-src/, "string.quote"], [/default-src/, "string.quote"], [/font-src/, "string.quote"], [/frame-src/, "string.quote"], [/img-src/, "string.quote"], [/manifest-src/, "string.quote"], [/media-src/, "string.quote"], [/object-src/, "string.quote"], [/script-src/, "string.quote"], [/style-src/, "string.quote"], [/worker-src/, "string.quote"], [/base-uri/, "string.quote"], [/plugin-types/, "string.quote"], [/sandbox/, "string.quote"], [/disown-opener/, "string.quote"], [/form-action/, "string.quote"], [/frame-ancestors/, "string.quote"], [/report-uri/, "string.quote"], [/report-to/, "string.quote"], [/upgrade-insecure-requests/, "string.quote"], [/block-all-mixed-content/, "string.quote"], [/require-sri-for/, "string.quote"], [/reflected-xss/, "string.quote"], [/referrer/, "string.quote"], [/policy-uri/, "string.quote"], [/'self'/, "string.quote"], [/'unsafe-inline'/, "string.quote"], [/'unsafe-eval'/, "string.quote"], [/'strict-dynamic'/, "string.quote"], [/'unsafe-hashed-attributes'/, "string.quote"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g, comments: {blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, o = {defaultToken: "", tokenPostfix: ".css", ws: "[ \n\r\f]*", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.bracket"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@selector"}], selector: [{include: "@comments"}, {include: "@import"}, {include: "@strings"}, ["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {token: "keyword", next: "@keyframedeclaration"}], ["[@](page|content|font-face|-moz-document)", {token: "keyword"}], ["[@](charset|namespace)", {token: "keyword", next: "@declarationbody"}], ["(url-prefix)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], ["(url)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], {include: "@selectorname"}, ["[\\*]", "tag"], ["[>\\+,]", "delimiter"], ["\\[", {token: "delimiter.bracket", next: "@selectorattribute"}], ["{", {token: "delimiter.bracket", next: "@selectorbody"}]], selectorbody: [{include: "@comments"}, ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"], ["}", {token: "delimiter.bracket", next: "@pop"}]], selectorname: [["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]], selectorattribute: [{include: "@term"}, ["]", {token: "delimiter.bracket", next: "@pop"}]], term: [{include: "@comments"}, ["(url-prefix)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], ["(url)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], {include: "@functioninvocation"}, {include: "@numbers"}, {include: "@name"}, ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"], [",", "delimiter"]], rulevalue: [{include: "@comments"}, {include: "@strings"}, {include: "@term"}, ["!important", "keyword"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], warndebug: [["[@](warn|debug)", {token: "keyword", next: "@declarationbody"}]], import: [["[@](import)", {token: "keyword", next: "@declarationbody"}]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], parenthizedterm: [{include: "@term"}, ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], declarationbody: [{include: "@term"}, [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [/[^*/]+/, "comment"], [/./, "comment"]], name: [["@identifier", "attribute.value"]], numbers: [["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "attribute.value.number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "attribute.value.unit", "@pop"]], keyframedeclaration: [["@identifier", "attribute.value"], ["{", {token: "delimiter.bracket", switchTo: "@keyframebody"}]], keyframebody: [{include: "@term"}, ["{", {token: "delimiter.bracket", next: "@selectorbody"}], ["}", {token: "delimiter.bracket", next: "@pop"}]], functioninvocation: [["@identifier\\(", {token: "attribute.value", next: "@functionarguments"}]], functionarguments: [["\\$@identifier@ws:", "attribute.name"], ["[,]", "delimiter"], {include: "@term"}, ["\\)", {token: "attribute.value", next: "@pop"}]], strings: [['~?"', {token: "string", next: "@stringenddoublequote"}], ["~?'", {token: "string", next: "@stringendquote"}]], stringenddoublequote: [["\\\\.", "string"], ['"', {token: "string", next: "@pop"}], [/[^\\"]+/, "string"], [".", "string"]], stringendquote: [["\\\\.", "string"], ["'", {token: "string", next: "@pop"}], [/[^\\']+/, "string"], [".", "string"]]}}; + var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g, comments: {blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, r = {defaultToken: "", tokenPostfix: ".css", ws: "[ \n\r\f]*", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.bracket"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@selector"}], selector: [{include: "@comments"}, {include: "@import"}, {include: "@strings"}, ["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {token: "keyword", next: "@keyframedeclaration"}], ["[@](page|content|font-face|-moz-document)", {token: "keyword"}], ["[@](charset|namespace)", {token: "keyword", next: "@declarationbody"}], ["(url-prefix)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], ["(url)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], {include: "@selectorname"}, ["[\\*]", "tag"], ["[>\\+,]", "delimiter"], ["\\[", {token: "delimiter.bracket", next: "@selectorattribute"}], ["{", {token: "delimiter.bracket", next: "@selectorbody"}]], selectorbody: [{include: "@comments"}, ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"], ["}", {token: "delimiter.bracket", next: "@pop"}]], selectorname: [["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]], selectorattribute: [{include: "@term"}, ["]", {token: "delimiter.bracket", next: "@pop"}]], term: [{include: "@comments"}, ["(url-prefix)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], ["(url)(\\()", ["attribute.value", {token: "delimiter.parenthesis", next: "@urldeclaration"}]], {include: "@functioninvocation"}, {include: "@numbers"}, {include: "@name"}, ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"], [",", "delimiter"]], rulevalue: [{include: "@comments"}, {include: "@strings"}, {include: "@term"}, ["!important", "keyword"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], warndebug: [["[@](warn|debug)", {token: "keyword", next: "@declarationbody"}]], import: [["[@](import)", {token: "keyword", next: "@declarationbody"}]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], parenthizedterm: [{include: "@term"}, ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], declarationbody: [{include: "@term"}, [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [/[^*/]+/, "comment"], [/./, "comment"]], name: [["@identifier", "attribute.value"]], numbers: [["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "attribute.value.number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "attribute.value.unit", "@pop"]], keyframedeclaration: [["@identifier", "attribute.value"], ["{", {token: "delimiter.bracket", switchTo: "@keyframebody"}]], keyframebody: [{include: "@term"}, ["{", {token: "delimiter.bracket", next: "@selectorbody"}], ["}", {token: "delimiter.bracket", next: "@pop"}]], functioninvocation: [["@identifier\\(", {token: "attribute.value", next: "@functionarguments"}]], functionarguments: [["\\$@identifier@ws:", "attribute.name"], ["[,]", "delimiter"], {include: "@term"}, ["\\)", {token: "attribute.value", next: "@pop"}]], strings: [['~?"', {token: "string", next: "@stringenddoublequote"}], ["~?'", {token: "string", next: "@stringendquote"}]], stringenddoublequote: [["\\\\.", "string"], ['"', {token: "string", next: "@pop"}], [/[^\\"]+/, "string"], [".", "string"]], stringendquote: [["\\\\.", "string"], ["'", {token: "string", next: "@pop"}], [/[^\\']+/, "string"], [".", "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "`", close: "`", notIn: ["string", "comment"]}, {open: "/**", close: " */", notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "`", close: "`"}], folding: {markers: {start: /^\s*\s*#?region\b/, end: /^\s*\s*#?endregion\b/}}}, o = {defaultToken: "invalid", tokenPostfix: ".dart", keywords: ["abstract", "dynamic", "implements", "show", "as", "else", "import", "static", "assert", "enum", "in", "super", "async", "export", "interface", "switch", "await", "extends", "is", "sync", "break", "external", "library", "this", "case", "factory", "mixin", "throw", "catch", "false", "new", "true", "class", "final", "null", "try", "const", "finally", "on", "typedef", "continue", "for", "operator", "var", "covariant", "Function", "part", "void", "default", "get", "rethrow", "while", "deferred", "hide", "return", "with", "do", "if", "set", "yield"], typeKeywords: ["int", "double", "String", "bool"], operators: ["+", "-", "*", "/", "~/", "%", "++", "--", "==", "!=", ">", "<", ">=", "<=", "=", "-=", "/=", "%=", ">>=", "^=", "+=", "*=", "~/=", "<<=", "&=", "!=", "||", "&&", "&", "|", "^", "~", "<<", ">>", "!", ">>>", "??", "?", ":", "|="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/, tokenizer: {root: [[/[{}]/, "delimiter.bracket"], {include: "common"}], common: [[/[a-z_$][\w$]*/, {cases: {"@typeKeywords": "type.identifier", "@keywords": "keyword", "@default": "identifier"}}], [/(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)/, "type.identifier"], {include: "@whitespace"}, [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {token: "regexp", bracket: "@open", next: "@regexp"}], [/@[a-zA-Z]+/, "annotation"], [/[()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/!(?=([^=]|$))/, "delimiter"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"], [/0[xX](@hexdigits)n?/, "number.hex"], [/0[oO]?(@octaldigits)n?/, "number.octal"], [/0[bB](@binarydigits)n?/, "number.binary"], [/(@digits)n?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string_double"], [/'/, "string", "@string_single"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"], [/\/\*/, "comment", "@comment"], [/\/\/\/.*$/, "comment.doc"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], jsdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], regexp: [[/(\{)(\d+(?:,\d*)?)(\})/, ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]], [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]], [/[()]/, "regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/[^\\\/]/, "regexp"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/(\/)([gimsuy]*)/, [{token: "regexp", bracket: "@close", next: "@pop"}, "keyword.other"]]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, {token: "regexp.escape.control", next: "@pop", bracket: "@close"}]], string_double: [[/[^\\"\$]+/, "string"], [/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"], [/\$\w+/, "identifier"]], string_single: [[/[^\\'\$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, "string", "@pop"], [/\$\w+/, "identifier"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "`", close: "`", notIn: ["string", "comment"]}, {open: "/**", close: " */", notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "`", close: "`"}], folding: {markers: {start: /^\s*\s*#?region\b/, end: /^\s*\s*#?endregion\b/}}}, r = {defaultToken: "invalid", tokenPostfix: ".dart", keywords: ["abstract", "dynamic", "implements", "show", "as", "else", "import", "static", "assert", "enum", "in", "super", "async", "export", "interface", "switch", "await", "extends", "is", "sync", "break", "external", "library", "this", "case", "factory", "mixin", "throw", "catch", "false", "new", "true", "class", "final", "null", "try", "const", "finally", "on", "typedef", "continue", "for", "operator", "var", "covariant", "Function", "part", "void", "default", "get", "rethrow", "while", "deferred", "hide", "return", "with", "do", "if", "set", "yield"], typeKeywords: ["int", "double", "String", "bool"], operators: ["+", "-", "*", "/", "~/", "%", "++", "--", "==", "!=", ">", "<", ">=", "<=", "=", "-=", "/=", "%=", ">>=", "^=", "+=", "*=", "~/=", "<<=", "&=", "!=", "||", "&&", "&", "|", "^", "~", "<<", ">>", "!", ">>>", "??", "?", ":", "|="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/, tokenizer: {root: [[/[{}]/, "delimiter.bracket"], {include: "common"}], common: [[/[a-z_$][\w$]*/, {cases: {"@typeKeywords": "type.identifier", "@keywords": "keyword", "@default": "identifier"}}], [/(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)/, "type.identifier"], {include: "@whitespace"}, [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {token: "regexp", bracket: "@open", next: "@regexp"}], [/@[a-zA-Z]+/, "annotation"], [/[()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/!(?=([^=]|$))/, "delimiter"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"], [/0[xX](@hexdigits)n?/, "number.hex"], [/0[oO]?(@octaldigits)n?/, "number.octal"], [/0[bB](@binarydigits)n?/, "number.binary"], [/(@digits)n?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string_double"], [/'/, "string", "@string_single"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"], [/\/\*/, "comment", "@comment"], [/\/\/\/.*$/, "comment.doc"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], jsdoc: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], regexp: [[/(\{)(\d+(?:,\d*)?)(\})/, ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]], [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]], [/[()]/, "regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/[^\\\/]/, "regexp"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/(\/)([gimsuy]*)/, [{token: "regexp", bracket: "@close", next: "@pop"}, "keyword.other"]]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, {token: "regexp.escape.control", next: "@pop", bracket: "@close"}]], string_double: [[/[^\\"\$]+/, "string"], [/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"], [/\$\w+/, "identifier"]], string_single: [[/[^\\'\$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, "string", "@pop"], [/\$\w+/, "identifier"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".dockerfile", variable: /\${?[\w]+}?/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, [/(ONBUILD)(\s+)/, ["keyword", ""]], [/(ENV)(\s+)([\w]+)/, ["keyword", "", {token: "variable", next: "@arguments"}]], [/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/, {token: "keyword", next: "@arguments"}]], arguments: [{include: "@whitespace"}, {include: "@strings"}, [/(@variable)/, {cases: {"@eos": {token: "variable", next: "@popall"}, "@default": "variable"}}], [/\\/, {cases: {"@eos": "", "@default": ""}}], [/./, {cases: {"@eos": {token: "", next: "@popall"}, "@default": ""}}]], whitespace: [[/\s+/, {cases: {"@eos": {token: "", next: "@popall"}, "@default": ""}}]], comment: [[/(^#.*$)/, "comment", "@popall"]], strings: [[/\\'$/, "", "@popall"], [/\\'/, ""], [/'$/, "string", "@popall"], [/'/, "string", "@stringBody"], [/"$/, "string", "@popall"], [/"/, "string", "@dblStringBody"]], stringBody: [[/[^\\\$']/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/\\./, "string.escape"], [/'$/, "string", "@popall"], [/'/, "string", "@pop"], [/(@variable)/, "variable"], [/\\$/, "string"], [/$/, "string", "@popall"]], dblStringBody: [[/[^\\\$"]/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/\\./, "string.escape"], [/"$/, "string", "@popall"], [/"/, "string", "@pop"], [/(@variable)/, "variable"], [/\\$/, "string"], [/$/, "string", "@popall"]]}}; + var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".dockerfile", variable: /\${?[\w]+}?/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, [/(ONBUILD)(\s+)/, ["keyword", ""]], [/(ENV)(\s+)([\w]+)/, ["keyword", "", {token: "variable", next: "@arguments"}]], [/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/, {token: "keyword", next: "@arguments"}]], arguments: [{include: "@whitespace"}, {include: "@strings"}, [/(@variable)/, {cases: {"@eos": {token: "variable", next: "@popall"}, "@default": "variable"}}], [/\\/, {cases: {"@eos": "", "@default": ""}}], [/./, {cases: {"@eos": {token: "", next: "@popall"}, "@default": ""}}]], whitespace: [[/\s+/, {cases: {"@eos": {token: "", next: "@popall"}, "@default": ""}}]], comment: [[/(^#.*$)/, "comment", "@popall"]], strings: [[/\\'$/, "", "@popall"], [/\\'/, ""], [/'$/, "string", "@popall"], [/'/, "string", "@stringBody"], [/"$/, "string", "@popall"], [/"/, "string", "@dblStringBody"]], stringBody: [[/[^\\\$']/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/\\./, "string.escape"], [/'$/, "string", "@popall"], [/'/, "string", "@pop"], [/(@variable)/, "variable"], [/\\$/, "string"], [/$/, "string", "@popall"]], dblStringBody: [[/[^\\\$"]/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/\\./, "string.escape"], [/"$/, "string", "@popall"], [/"/, "string", "@pop"], [/(@variable)/, "variable"], [/\\$/, "string"], [/$/, "string", "@popall"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"), end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}}, o = {defaultToken: "", tokenPostfix: ".fs", keywords: ["abstract", "and", "atomic", "as", "assert", "asr", "base", "begin", "break", "checked", "component", "const", "constraint", "constructor", "continue", "class", "default", "delegate", "do", "done", "downcast", "downto", "elif", "else", "end", "exception", "eager", "event", "external", "extern", "false", "finally", "for", "fun", "function", "fixed", "functor", "global", "if", "in", "include", "inherit", "inline", "interface", "internal", "land", "lor", "lsl", "lsr", "lxor", "lazy", "let", "match", "member", "mod", "module", "mutable", "namespace", "method", "mixin", "new", "not", "null", "of", "open", "or", "object", "override", "private", "parallel", "process", "protected", "pure", "public", "rec", "return", "static", "sealed", "struct", "sig", "then", "to", "true", "tailcall", "trait", "try", "type", "upcast", "use", "val", "void", "virtual", "volatile", "when", "while", "with", "yield"], symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /[uU]?[yslnLI]?/, floatsuffix: /[fFmM]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[<.*>\]/, "annotation"], [/^#(if|else|endif)/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0x[0-9a-fA-F]+LF/, "number.float"], [/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"], [/0b[0-1]+(@integersuffix)/, "number.bin"], [/\d+(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"""/, "string", '@string."""'], [/"/, "string", '@string."'], [/\@"/, {token: "string.quote", next: "@litstring"}], [/'[^\\']'B?/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\(\*(?!\))/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^*(]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\*/, "comment"], [/\(\*\)/, "comment"], [/\(/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/("""|"B?)/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]], litstring: [[/[^"]+/, "string"], [/""/, "string.escape"], [/"/, {token: "string.quote", next: "@pop"}]]}}; + var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"), end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}}, r = {defaultToken: "", tokenPostfix: ".fs", keywords: ["abstract", "and", "atomic", "as", "assert", "asr", "base", "begin", "break", "checked", "component", "const", "constraint", "constructor", "continue", "class", "default", "delegate", "do", "done", "downcast", "downto", "elif", "else", "end", "exception", "eager", "event", "external", "extern", "false", "finally", "for", "fun", "function", "fixed", "functor", "global", "if", "in", "include", "inherit", "inline", "interface", "internal", "land", "lor", "lsl", "lsr", "lxor", "lazy", "let", "match", "member", "mod", "module", "mutable", "namespace", "method", "mixin", "new", "not", "null", "of", "open", "or", "object", "override", "private", "parallel", "process", "protected", "pure", "public", "rec", "return", "static", "sealed", "struct", "sig", "then", "to", "true", "tailcall", "trait", "try", "type", "upcast", "use", "val", "void", "virtual", "volatile", "when", "while", "with", "yield"], symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /[uU]?[yslnLI]?/, floatsuffix: /[fFmM]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[<.*>\]/, "annotation"], [/^#(if|else|endif)/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0x[0-9a-fA-F]+LF/, "number.float"], [/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"], [/0b[0-1]+(@integersuffix)/, "number.bin"], [/\d+(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"""/, "string", '@string."""'], [/"/, "string", '@string."'], [/\@"/, {token: "string.quote", next: "@litstring"}], [/'[^\\']'B?/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\(\*(?!\))/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^*(]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\*/, "comment"], [/\(\*\)/, "comment"], [/\(/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/("""|"B?)/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]], litstring: [[/[^"]+/, "string"], [/""/, "string.escape"], [/"/, {token: "string.quote", next: "@pop"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".go", keywords: ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var", "bool", "true", "false", "uint8", "uint16", "uint32", "uint64", "int8", "int16", "int32", "int64", "float32", "float64", "complex64", "complex128", "byte", "rune", "uint", "int", "uintptr", "string", "nil"], operators: ["+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>", "&^", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", "&^=", "&&", "||", "<-", "++", "--", "==", "<", ">", "=", "!", "!=", "<=", ">=", ":=", "...", "(", ")", "", "]", "{", "}", ",", ";", ".", ":"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"], [/0[0-7']*[0-7]/, "number.octal"], [/0[bB][0-1']*[0-1]/, "number.binary"], [/\d[\d']*/, "number"], [/\d/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/`/, "string", "@rawstring"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], rawstring: [[/[^\`]/, "string"], [/`/, "string", "@pop"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".go", keywords: ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var", "bool", "true", "false", "uint8", "uint16", "uint32", "uint64", "int8", "int16", "int32", "int64", "float32", "float64", "complex64", "complex128", "byte", "rune", "uint", "int", "uintptr", "string", "nil"], operators: ["+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>", "&^", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", "&^=", "&&", "||", "<-", "++", "--", "==", "<", ">", "=", "!", "!=", "<=", ">=", ":=", "...", "(", ")", "", "]", "{", "}", ",", ";", ".", ":"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"], [/0[0-7']*[0-7]/, "number.octal"], [/0[bB][0-1']*[0-1]/, "number.binary"], [/\d[\d']*/, "number"], [/\d/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/`/, "string", "@rawstring"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], rawstring: [[/[^\`]/, "string"], [/`/, "string", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"""', close: '"""', notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"""', close: '"""'}, {open: '"', close: '"'}], folding: {offSide: true}}, o = {defaultToken: "invalid", tokenPostfix: ".gql", keywords: ["null", "true", "false", "query", "mutation", "subscription", "extend", "schema", "directive", "scalar", "type", "interface", "union", "enum", "input", "implements", "fragment", "on"], typeKeywords: ["Int", "Float", "String", "Boolean", "ID"], directiveLocations: ["SCHEMA", "SCALAR", "OBJECT", "FIELD_DEFINITION", "ARGUMENT_DEFINITION", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "QUERY", "MUTATION", "SUBSCRIPTION", "FIELD", "FRAGMENT_DEFINITION", "FRAGMENT_SPREAD", "INLINE_FRAGMENT", "VARIABLE_DEFINITION"], operators: ["=", "!", "?", ":", "&", "|"], symbols: /[=!?:&|]+/, escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/, tokenizer: {root: [[/[a-z_][\w$]*/, {cases: {"@keywords": "keyword", "@default": "key.identifier"}}], [/[$][\w$]*/, {cases: {"@keywords": "keyword", "@default": "argument.identifier"}}], [/[A-Z][\w\$]*/, {cases: {"@typeKeywords": "keyword", "@default": "type.identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, {token: "annotation", log: "annotation token: $0"}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/"""/, {token: "string", next: "@mlstring", nextEmbedded: "markdown"}], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}]], mlstring: [[/[^"]+/, "string"], ['"""', {token: "string", next: "@pop", nextEmbedded: "@pop"}]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/#.*$/, "comment"]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"""', close: '"""', notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"""', close: '"""'}, {open: '"', close: '"'}], folding: {offSide: true}}, r = {defaultToken: "invalid", tokenPostfix: ".gql", keywords: ["null", "true", "false", "query", "mutation", "subscription", "extend", "schema", "directive", "scalar", "type", "interface", "union", "enum", "input", "implements", "fragment", "on"], typeKeywords: ["Int", "Float", "String", "Boolean", "ID"], directiveLocations: ["SCHEMA", "SCALAR", "OBJECT", "FIELD_DEFINITION", "ARGUMENT_DEFINITION", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "QUERY", "MUTATION", "SUBSCRIPTION", "FIELD", "FRAGMENT_DEFINITION", "FRAGMENT_SPREAD", "INLINE_FRAGMENT", "VARIABLE_DEFINITION"], operators: ["=", "!", "?", ":", "&", "|"], symbols: /[=!?:&|]+/, escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/, tokenizer: {root: [[/[a-z_][\w$]*/, {cases: {"@keywords": "keyword", "@default": "key.identifier"}}], [/[$][\w$]*/, {cases: {"@keywords": "keyword", "@default": "argument.identifier"}}], [/[A-Z][\w\$]*/, {cases: {"@typeKeywords": "keyword", "@default": "type.identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, {token: "annotation", log: "annotation token: $0"}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/"""/, {token: "string", next: "@mlstring", nextEmbedded: "markdown"}], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}]], mlstring: [[/[^"]+/, "string"], ['"""', {token: "string", next: "@pop", nextEmbedded: "@pop"}]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/#.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return r; + return o; }), n.d(t, "language", function() { return s; }); - var i = n(95), o = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], r = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["{{!--", "--}}"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{{", "}}"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "<", close: ">"}, {open: '"', close: '"'}, {open: "'", close: "'"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + o.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/(\w[\w\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + o.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}]}, s = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"], [/\{\{!/, "comment.start.handlebars", "@comment"], [/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@commentHtml"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/\{/, "delimiter.html"], [/[^<{]+/]], doctype: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/\}\}/, "comment.end.handlebars", "@pop"], [/./, "comment.content.handlebars"]], commentBlock: [[/--\}\}/, "comment.block.end.handlebars", "@pop"], [/./, "comment.content.handlebars"]], commentHtml: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], handlebarsInSimpleState: [[/\{\{\{?/, "delimiter.handlebars"], [/\}\}\}?/, {token: "delimiter.handlebars", switchTo: "@$S2.$S3"}], {include: "handlebarsRoot"}], handlebarsInEmbeddedState: [[/\{\{\{?/, "delimiter.handlebars"], [/\}\}\}?/, {token: "delimiter.handlebars", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], {include: "handlebarsRoot"}], handlebarsRoot: [[/"[^"]*"/, "string.handlebars"], [/[#/][^\s}]+/, "keyword.helper.handlebars"], [/else\b/, "keyword.helper.handlebars"], [/[\s]+/], [/[^}]/, "variable.parameter.handlebars"]]}}; + var i = n(95), r = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], o = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["{{!--", "--}}"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{{", "}}"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "<", close: ">"}, {open: '"', close: '"'}, {open: "'", close: "'"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + r.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/(\w[\w\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + r.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}]}, s = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"], [/\{\{!/, "comment.start.handlebars", "@comment"], [/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@commentHtml"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/\{/, "delimiter.html"], [/[^<{]+/]], doctype: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/\}\}/, "comment.end.handlebars", "@pop"], [/./, "comment.content.handlebars"]], commentBlock: [[/--\}\}/, "comment.block.end.handlebars", "@pop"], [/./, "comment.content.handlebars"]], commentHtml: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/\{\{/, {token: "@rematch", switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], handlebarsInSimpleState: [[/\{\{\{?/, "delimiter.handlebars"], [/\}\}\}?/, {token: "delimiter.handlebars", switchTo: "@$S2.$S3"}], {include: "handlebarsRoot"}], handlebarsInEmbeddedState: [[/\{\{\{?/, "delimiter.handlebars"], [/\}\}\}?/, {token: "delimiter.handlebars", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], {include: "handlebarsRoot"}], handlebarsRoot: [[/"[^"]*"/, "string.handlebars"], [/[#/][^\s}]+/, "keyword.helper.handlebars"], [/else\b/, "keyword.helper.handlebars"], [/[\s]+/], [/[^}]/, "variable.parameter.handlebars"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, o = {defaultToken: "", tokenPostfix: ".hcl", keywords: ["var", "local", "path", "for_each", "any", "string", "number", "bool", "true", "false", "null", "if ", "else ", "endif ", "for ", "in", "endfor"], operators: ["=", ">=", "<=", "==", "!=", "+", "-", "*", "/", "%", "&&", "||", "!", "<", ">", "?", "...", ":"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/, terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/, tokenizer: {root: [[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, ["type", "", "string", "", "string", "", "@brackets"]], [/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, ["identifier", "", "string", "", "string", "", "@brackets"]], [/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/, ["identifier", "", "string", "", "operator", "", "@brackets"]], {include: "@terraform"}], terraform: [[/@terraformFunctions(\()/, ["type", "@brackets"]], [/[a-zA-Z_]\w*-*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "variable"}}], {include: "@whitespace"}, {include: "@heredoc"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\d[\d']*/, "number"], [/\d/, "number"], [/[;,.]/, "delimiter"], [/"/, "string", "@string"], [/'/, "invalid"]], heredoc: [[/<<[-]*\s*["]?([\w\-]+)["]?/, {token: "string.heredoc.delimiter", next: "@heredocBody.$1"}]], heredocBody: [[/^([\w\-]+)$/, {cases: {"$1==$S2": [{token: "string.heredoc.delimiter", next: "@popall"}], "@default": "string.heredoc"}}], [/./, "string.heredoc"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"], [/#.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/\$\{/, {token: "delimiter", next: "@stringExpression"}], [/[^\\"\$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@popall"]], stringInsideExpression: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], stringExpression: [[/\}/, {token: "delimiter", next: "@pop"}], [/"/, "string", "@stringInsideExpression"], {include: "@terraform"}]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, r = {defaultToken: "", tokenPostfix: ".hcl", keywords: ["var", "local", "path", "for_each", "any", "string", "number", "bool", "true", "false", "null", "if ", "else ", "endif ", "for ", "in", "endfor"], operators: ["=", ">=", "<=", "==", "!=", "+", "-", "*", "/", "%", "&&", "||", "!", "<", ">", "?", "...", ":"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/, terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/, tokenizer: {root: [[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, ["type", "", "string", "", "string", "", "@brackets"]], [/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, ["identifier", "", "string", "", "string", "", "@brackets"]], [/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/, ["identifier", "", "string", "", "operator", "", "@brackets"]], {include: "@terraform"}], terraform: [[/@terraformFunctions(\()/, ["type", "@brackets"]], [/[a-zA-Z_]\w*-*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "variable"}}], {include: "@whitespace"}, {include: "@heredoc"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\d[\d']*/, "number"], [/\d/, "number"], [/[;,.]/, "delimiter"], [/"/, "string", "@string"], [/'/, "invalid"]], heredoc: [[/<<[-]*\s*["]?([\w\-]+)["]?/, {token: "string.heredoc.delimiter", next: "@heredocBody.$1"}]], heredocBody: [[/^([\w\-]+)$/, {cases: {"$1==$S2": [{token: "string.heredoc.delimiter", next: "@popall"}], "@default": "string.heredoc"}}], [/./, "string.heredoc"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"], [/#.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/\$\{/, {token: "delimiter", next: "@stringExpression"}], [/[^\\"\$]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@popall"]], stringInsideExpression: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], stringExpression: [[/\}/, {token: "delimiter", next: "@pop"}], [/"/, "string", "@stringInsideExpression"], {include: "@terraform"}]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return r; + return o; }), n.d(t, "language", function() { return s; }); - var i = n(95), o = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], r = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["<!--", "-->"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + o.join("|") + "))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + o.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}}, s = {defaultToken: "", tokenPostfix: ".html", ignoreCase: true, tokenizer: {root: [[/<!DOCTYPE/, "metatag", "@doctype"], [/<!--/, "comment", "@comment"], [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]], [/(<)(script)/, ["delimiter", {token: "tag", next: "@script"}]], [/(<)(style)/, ["delimiter", {token: "tag", next: "@style"}]], [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {token: "tag", next: "@otherTag"}]], [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {token: "tag", next: "@otherTag"}]], [/</, "delimiter"], [/[^<]+/]], doctype: [[/[^>]+/, "metatag.content"], [/>/, "metatag", "@pop"]], comment: [[/-->/, "comment", "@pop"], [/[^-]+/, "comment.content"], [/./, "comment.content"]], otherTag: [[/\/?>/, "delimiter", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter", "tag", {token: "delimiter", next: "@pop"}]]], scriptAfterType: [[/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/>/, {token: "delimiter", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]], style: [[/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter", "tag", {token: "delimiter", next: "@pop"}]]], styleAfterType: [[/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/>/, {token: "delimiter", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]]}}; + var i = n(95), r = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], o = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["<!--", "-->"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + r.join("|") + "))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + r.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}}, s = {defaultToken: "", tokenPostfix: ".html", ignoreCase: true, tokenizer: {root: [[/<!DOCTYPE/, "metatag", "@doctype"], [/<!--/, "comment", "@comment"], [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]], [/(<)(script)/, ["delimiter", {token: "tag", next: "@script"}]], [/(<)(style)/, ["delimiter", {token: "tag", next: "@style"}]], [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {token: "tag", next: "@otherTag"}]], [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {token: "tag", next: "@otherTag"}]], [/</, "delimiter"], [/[^<]+/]], doctype: [[/[^>]+/, "metatag.content"], [/>/, "metatag", "@pop"]], comment: [[/-->/, "comment", "@pop"], [/[^-]+/, "comment.content"], [/./, "comment.content"]], otherTag: [[/\/?>/, "delimiter", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter", "tag", {token: "delimiter", next: "@pop"}]]], scriptAfterType: [[/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/>/, {token: "delimiter", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]], style: [[/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter", "tag", {token: "delimiter", next: "@pop"}]]], styleAfterType: [[/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/>/, {token: "delimiter", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".ini", escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^\[[^\]]*\]/, "metatag"], [/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]], {include: "@whitespace"}, [/\d+/, "number"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], whitespace: [[/[ \t\r\n]+/, ""], [/^\s*[#;].*$/, "comment"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".ini", escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^\[[^\]]*\]/, "metatag"], [/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]], {include: "@whitespace"}, [/\d+/, "number"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], whitespace: [[/[ \t\r\n]+/, ""], [/^\s*[#;].*$/, "comment"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, o = {defaultToken: "", tokenPostfix: ".java", keywords: ["abstract", "continue", "for", "new", "switch", "assert", "default", "goto", "package", "synchronized", "boolean", "do", "if", "private", "this", "break", "double", "implements", "protected", "throw", "byte", "else", "import", "public", "throws", "case", "enum", "instanceof", "return", "transient", "catch", "extends", "int", "short", "try", "char", "final", "interface", "static", "void", "class", "finally", "long", "strictfp", "volatile", "const", "float", "native", "super", "while", "true", "false"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/0[xX](@hexdigits)[Ll]?/, "number.hex"], [/0(@octaldigits)[Ll]?/, "number.octal"], [/0[bB](@binarydigits)[Ll]?/, "number.binary"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], javadoc: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, r = {defaultToken: "", tokenPostfix: ".java", keywords: ["abstract", "continue", "for", "new", "switch", "assert", "default", "goto", "package", "synchronized", "boolean", "do", "if", "private", "this", "break", "double", "implements", "protected", "throw", "byte", "else", "import", "public", "throws", "case", "enum", "instanceof", "return", "transient", "catch", "extends", "int", "short", "try", "char", "final", "interface", "static", "void", "class", "finally", "long", "strictfp", "volatile", "const", "float", "native", "super", "while", "true", "false"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/0[xX](@hexdigits)[Ll]?/, "number.hex"], [/0(@octaldigits)[Ll]?/, "number.octal"], [/0[bB](@binarydigits)[Ll]?/, "number.binary"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], javadoc: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return o; - }), n.d(t, "language", function() { return r; + }), n.d(t, "language", function() { + return o; }); - var i = n(142), o = i.conf, r = {defaultToken: "invalid", tokenPostfix: ".js", keywords: ["break", "case", "catch", "class", "continue", "const", "constructor", "debugger", "default", "delete", "do", "else", "export", "extends", "false", "finally", "for", "from", "function", "get", "if", "import", "in", "instanceof", "let", "new", "null", "return", "set", "super", "switch", "symbol", "this", "throw", "true", "try", "typeof", "undefined", "var", "void", "while", "with", "yield", "async", "await", "of"], typeKeywords: [], operators: i.language.operators, symbols: i.language.symbols, escapes: i.language.escapes, digits: i.language.digits, octaldigits: i.language.octaldigits, binarydigits: i.language.binarydigits, hexdigits: i.language.hexdigits, regexpctl: i.language.regexpctl, regexpesc: i.language.regexpesc, tokenizer: i.language.tokenizer}; + var i = n(142), r = i.conf, o = {defaultToken: "invalid", tokenPostfix: ".js", keywords: ["break", "case", "catch", "class", "continue", "const", "constructor", "debugger", "default", "delete", "do", "else", "export", "extends", "false", "finally", "for", "from", "function", "get", "if", "import", "in", "instanceof", "let", "new", "null", "return", "set", "super", "switch", "symbol", "this", "throw", "true", "try", "typeof", "undefined", "var", "void", "while", "with", "yield", "async", "await", "of"], typeKeywords: [], operators: i.language.operators, symbols: i.language.symbols, escapes: i.language.escapes, digits: i.language.digits, octaldigits: i.language.octaldigits, binarydigits: i.language.binarydigits, hexdigits: i.language.hexdigits, regexpctl: i.language.regexpctl, regexpesc: i.language.regexpesc, tokenizer: i.language.tokenizer}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {tokenPostfix: ".julia", keywords: ["begin", "while", "if", "for", "try", "return", "break", "continue", "function", "macro", "quote", "let", "local", "global", "const", "do", "struct", "module", "baremodule", "using", "import", "export", "end", "else", "elseif", "catch", "finally", "mutable", "primitive", "abstract", "type", "in", "isa", "where", "new"], types: ["LinRange", "LineNumberNode", "LinearIndices", "LoadError", "MIME", "Matrix", "Method", "MethodError", "Missing", "MissingException", "Module", "NTuple", "NamedTuple", "Nothing", "Number", "OrdinalRange", "OutOfMemoryError", "OverflowError", "Pair", "PartialQuickSort", "PermutedDimsArray", "Pipe", "Ptr", "QuoteNode", "Rational", "RawFD", "ReadOnlyMemoryError", "Real", "ReentrantLock", "Ref", "Regex", "RegexMatch", "RoundingMode", "SegmentationFault", "Set", "Signed", "Some", "StackOverflowError", "StepRange", "StepRangeLen", "StridedArray", "StridedMatrix", "StridedVecOrMat", "StridedVector", "String", "StringIndexError", "SubArray", "SubString", "SubstitutionString", "Symbol", "SystemError", "Task", "Text", "TextDisplay", "Timer", "Tuple", "Type", "TypeError", "TypeVar", "UInt", "UInt128", "UInt16", "UInt32", "UInt64", "UInt8", "UndefInitializer", "AbstractArray", "UndefKeywordError", "AbstractChannel", "UndefRefError", "AbstractChar", "UndefVarError", "AbstractDict", "Union", "AbstractDisplay", "UnionAll", "AbstractFloat", "UnitRange", "AbstractIrrational", "Unsigned", "AbstractMatrix", "AbstractRange", "Val", "AbstractSet", "Vararg", "AbstractString", "VecElement", "AbstractUnitRange", "VecOrMat", "AbstractVecOrMat", "Vector", "AbstractVector", "VersionNumber", "Any", "WeakKeyDict", "ArgumentError", "WeakRef", "Array", "AssertionError", "BigFloat", "BigInt", "BitArray", "BitMatrix", "BitSet", "BitVector", "Bool", "BoundsError", "CapturedException", "CartesianIndex", "CartesianIndices", "Cchar", "Cdouble", "Cfloat", "Channel", "Char", "Cint", "Cintmax_t", "Clong", "Clonglong", "Cmd", "Colon", "Complex", "ComplexF16", "ComplexF32", "ComplexF64", "CompositeException", "Condition", "Cptrdiff_t", "Cshort", "Csize_t", "Cssize_t", "Cstring", "Cuchar", "Cuint", "Cuintmax_t", "Culong", "Culonglong", "Cushort", "Cvoid", "Cwchar_t", "Cwstring", "DataType", "DenseArray", "DenseMatrix", "DenseVecOrMat", "DenseVector", "Dict", "DimensionMismatch", "Dims", "DivideError", "DomainError", "EOFError", "Enum", "ErrorException", "Exception", "ExponentialBackOff", "Expr", "Float16", "Float32", "Float64", "Function", "GlobalRef", "HTML", "IO", "IOBuffer", "IOContext", "IOStream", "IdDict", "IndexCartesian", "IndexLinear", "IndexStyle", "InexactError", "InitError", "Int", "Int128", "Int16", "Int32", "Int64", "Int8", "Integer", "InterruptException", "InvalidStateException", "Irrational", "KeyError"], keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"], allops: /[^\w\d\s()\[\]{}"'#]+/, constants: ["true", "false", "nothing", "missing", "undef", "Inf", "pi", "NaN", "\u03C0", "\u212F", "ans", "PROGRAM_FILE", "ARGS", "C_NULL", "VERSION", "DEPOT_PATH", "LOAD_PATH"], operators: ["!", "!=", "!==", "%", "&", "*", "+", "-", "/", "//", "<", "<<", "<=", "==", "===", "=>", ">", ">=", ">>", ">>>", "\\", "^", "|", "|>", "~", "\xF7", "\u2208", "\u2209", "\u220B", "\u220C", "\u2218", "\u221A", "\u221B", "\u2229", "\u222A", "\u2248", "\u2249", "\u2260", "\u2261", "\u2262", "\u2264", "\u2265", "\u2286", "\u2287", "\u2288", "\u2289", "\u228A", "\u228B", "\u22BB"], brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], ident: /Ï€|ℯ|\b(?!\d)\w+\b/, escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/, escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/, tokenizer: {root: [[/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"], [/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", {token: "", next: "@typeanno"}]], [/\b(type|struct)[ \t]+/, "keyword", "@typeanno"], [/^\s*:@ident[!?]?/, "metatag"], [/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]], [/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]], [/:\(/, "metatag", "@quote"], [/r"""/, "regexp.delim", "@tregexp"], [/r"/, "regexp.delim", "@sregexp"], [/raw"""/, "string.delim", "@rtstring"], [/[bv]?"""/, "string.delim", "@dtstring"], [/raw"/, "string.delim", "@rsstring"], [/[bv]?"/, "string.delim", "@dsstring"], [/(@ident)\{/, {cases: {"$1@types": {token: "type", next: "@gen"}, "@default": {token: "type", next: "@gen"}}}], [/@ident[!?'']?(?=\.?\()/, {cases: {"@types": "type", "@keywords": "keyword", "@constants": "variable", "@default": "keyword.flow"}}], [/@ident[!?']?/, {cases: {"@types": "type", "@keywords": "keyword", "@constants": "variable", "@default": "identifier"}}], [/\$\w+/, "key"], [/\$\(/, "key", "@paste"], [/@@ident/, "annotation"], {include: "@whitespace"}, [/'(?:@escapes|.)'/, "string.character"], [/[()\[\]{}]/, "@brackets"], [/@allops/, {cases: {"@keywordops": "keyword", "@operators": "operator"}}], [/[;,]/, "delimiter"], [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"], [/0[_oO][0-7](_?[0-7])*/, "number.octal"], [/0[bB][01](_?[01])*/, "number.binary"], [/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]], typeanno: [[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"], [/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]], [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"], ["", "", "@pop"]], gen: [[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"], [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"], [/<:/, "keyword"], [/(\})(\s*<:\s*)/, ["type", {token: "keyword", next: "@pop"}]], [/\}/, "type", "@pop"], {include: "@root"}], quote: [[/\$\(/, "key", "@paste"], [/\(/, "@brackets", "@paren"], [/\)/, "metatag", "@pop"], {include: "@root"}], paste: [[/:\(/, "metatag", "@quote"], [/\(/, "@brackets", "@paren"], [/\)/, "key", "@pop"], {include: "@root"}], paren: [[/\$\(/, "key", "@paste"], [/:\(/, "metatag", "@quote"], [/\(/, "@brackets", "@push"], [/\)/, "@brackets", "@pop"], {include: "@root"}], sregexp: [[/^.*/, "invalid"], [/[^\\"()\[\]{}]/, "regexp"], [/[()\[\]{}]/, "@brackets"], [/\\./, "operator.scss"], [/"[imsx]*/, "regexp.delim", "@pop"]], tregexp: [[/[^\\"()\[\]{}]/, "regexp"], [/[()\[\]{}]/, "@brackets"], [/\\./, "operator.scss"], [/"(?!"")/, "string"], [/"""[imsx]*/, "regexp.delim", "@pop"]], rsstring: [[/^.*/, "invalid"], [/[^\\"]/, "string"], [/\\./, "string.escape"], [/"/, "string.delim", "@pop"]], rtstring: [[/[^\\"]/, "string"], [/\\./, "string.escape"], [/"(?!"")/, "string"], [/"""/, "string.delim", "@pop"]], dsstring: [[/^.*/, "invalid"], [/[^\\"\$]/, "string"], [/\$/, "", "@interpolated"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string.delim", "@pop"]], dtstring: [[/[^\\"\$]/, "string"], [/\$/, "", "@interpolated"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"(?!"")/, "string"], [/"""/, "string.delim", "@pop"]], interpolated: [[/\(/, {token: "", switchTo: "@interpolated_compound"}], [/[a-zA-Z_]\w*/, "identifier"], ["", "", "@pop"]], interpolated_compound: [[/\)/, "", "@pop"], {include: "@root"}], whitespace: [[/[ \t\r\n]+/, ""], [/#=/, "comment", "@multi_comment"], [/#.*$/, "comment"]], multi_comment: [[/#=/, "comment", "@push"], [/=#/, "comment", "@pop"], [/=(?!#)|#(?!=)/, "comment"], [/[^#=]+/, "comment"]]}}; + var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {tokenPostfix: ".julia", keywords: ["begin", "while", "if", "for", "try", "return", "break", "continue", "function", "macro", "quote", "let", "local", "global", "const", "do", "struct", "module", "baremodule", "using", "import", "export", "end", "else", "elseif", "catch", "finally", "mutable", "primitive", "abstract", "type", "in", "isa", "where", "new"], types: ["LinRange", "LineNumberNode", "LinearIndices", "LoadError", "MIME", "Matrix", "Method", "MethodError", "Missing", "MissingException", "Module", "NTuple", "NamedTuple", "Nothing", "Number", "OrdinalRange", "OutOfMemoryError", "OverflowError", "Pair", "PartialQuickSort", "PermutedDimsArray", "Pipe", "Ptr", "QuoteNode", "Rational", "RawFD", "ReadOnlyMemoryError", "Real", "ReentrantLock", "Ref", "Regex", "RegexMatch", "RoundingMode", "SegmentationFault", "Set", "Signed", "Some", "StackOverflowError", "StepRange", "StepRangeLen", "StridedArray", "StridedMatrix", "StridedVecOrMat", "StridedVector", "String", "StringIndexError", "SubArray", "SubString", "SubstitutionString", "Symbol", "SystemError", "Task", "Text", "TextDisplay", "Timer", "Tuple", "Type", "TypeError", "TypeVar", "UInt", "UInt128", "UInt16", "UInt32", "UInt64", "UInt8", "UndefInitializer", "AbstractArray", "UndefKeywordError", "AbstractChannel", "UndefRefError", "AbstractChar", "UndefVarError", "AbstractDict", "Union", "AbstractDisplay", "UnionAll", "AbstractFloat", "UnitRange", "AbstractIrrational", "Unsigned", "AbstractMatrix", "AbstractRange", "Val", "AbstractSet", "Vararg", "AbstractString", "VecElement", "AbstractUnitRange", "VecOrMat", "AbstractVecOrMat", "Vector", "AbstractVector", "VersionNumber", "Any", "WeakKeyDict", "ArgumentError", "WeakRef", "Array", "AssertionError", "BigFloat", "BigInt", "BitArray", "BitMatrix", "BitSet", "BitVector", "Bool", "BoundsError", "CapturedException", "CartesianIndex", "CartesianIndices", "Cchar", "Cdouble", "Cfloat", "Channel", "Char", "Cint", "Cintmax_t", "Clong", "Clonglong", "Cmd", "Colon", "Complex", "ComplexF16", "ComplexF32", "ComplexF64", "CompositeException", "Condition", "Cptrdiff_t", "Cshort", "Csize_t", "Cssize_t", "Cstring", "Cuchar", "Cuint", "Cuintmax_t", "Culong", "Culonglong", "Cushort", "Cvoid", "Cwchar_t", "Cwstring", "DataType", "DenseArray", "DenseMatrix", "DenseVecOrMat", "DenseVector", "Dict", "DimensionMismatch", "Dims", "DivideError", "DomainError", "EOFError", "Enum", "ErrorException", "Exception", "ExponentialBackOff", "Expr", "Float16", "Float32", "Float64", "Function", "GlobalRef", "HTML", "IO", "IOBuffer", "IOContext", "IOStream", "IdDict", "IndexCartesian", "IndexLinear", "IndexStyle", "InexactError", "InitError", "Int", "Int128", "Int16", "Int32", "Int64", "Int8", "Integer", "InterruptException", "InvalidStateException", "Irrational", "KeyError"], keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"], allops: /[^\w\d\s()\[\]{}"'#]+/, constants: ["true", "false", "nothing", "missing", "undef", "Inf", "pi", "NaN", "\u03C0", "\u212F", "ans", "PROGRAM_FILE", "ARGS", "C_NULL", "VERSION", "DEPOT_PATH", "LOAD_PATH"], operators: ["!", "!=", "!==", "%", "&", "*", "+", "-", "/", "//", "<", "<<", "<=", "==", "===", "=>", ">", ">=", ">>", ">>>", "\\", "^", "|", "|>", "~", "\xF7", "\u2208", "\u2209", "\u220B", "\u220C", "\u2218", "\u221A", "\u221B", "\u2229", "\u222A", "\u2248", "\u2249", "\u2260", "\u2261", "\u2262", "\u2264", "\u2265", "\u2286", "\u2287", "\u2288", "\u2289", "\u228A", "\u228B", "\u22BB"], brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], ident: /Ï€|ℯ|\b(?!\d)\w+\b/, escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/, escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/, tokenizer: {root: [[/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"], [/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", {token: "", next: "@typeanno"}]], [/\b(type|struct)[ \t]+/, "keyword", "@typeanno"], [/^\s*:@ident[!?]?/, "metatag"], [/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]], [/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]], [/:\(/, "metatag", "@quote"], [/r"""/, "regexp.delim", "@tregexp"], [/r"/, "regexp.delim", "@sregexp"], [/raw"""/, "string.delim", "@rtstring"], [/[bv]?"""/, "string.delim", "@dtstring"], [/raw"/, "string.delim", "@rsstring"], [/[bv]?"/, "string.delim", "@dsstring"], [/(@ident)\{/, {cases: {"$1@types": {token: "type", next: "@gen"}, "@default": {token: "type", next: "@gen"}}}], [/@ident[!?'']?(?=\.?\()/, {cases: {"@types": "type", "@keywords": "keyword", "@constants": "variable", "@default": "keyword.flow"}}], [/@ident[!?']?/, {cases: {"@types": "type", "@keywords": "keyword", "@constants": "variable", "@default": "identifier"}}], [/\$\w+/, "key"], [/\$\(/, "key", "@paste"], [/@@ident/, "annotation"], {include: "@whitespace"}, [/'(?:@escapes|.)'/, "string.character"], [/[()\[\]{}]/, "@brackets"], [/@allops/, {cases: {"@keywordops": "keyword", "@operators": "operator"}}], [/[;,]/, "delimiter"], [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"], [/0[_oO][0-7](_?[0-7])*/, "number.octal"], [/0[bB][01](_?[01])*/, "number.binary"], [/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]], typeanno: [[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"], [/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]], [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"], ["", "", "@pop"]], gen: [[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"], [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"], [/<:/, "keyword"], [/(\})(\s*<:\s*)/, ["type", {token: "keyword", next: "@pop"}]], [/\}/, "type", "@pop"], {include: "@root"}], quote: [[/\$\(/, "key", "@paste"], [/\(/, "@brackets", "@paren"], [/\)/, "metatag", "@pop"], {include: "@root"}], paste: [[/:\(/, "metatag", "@quote"], [/\(/, "@brackets", "@paren"], [/\)/, "key", "@pop"], {include: "@root"}], paren: [[/\$\(/, "key", "@paste"], [/:\(/, "metatag", "@quote"], [/\(/, "@brackets", "@push"], [/\)/, "@brackets", "@pop"], {include: "@root"}], sregexp: [[/^.*/, "invalid"], [/[^\\"()\[\]{}]/, "regexp"], [/[()\[\]{}]/, "@brackets"], [/\\./, "operator.scss"], [/"[imsx]*/, "regexp.delim", "@pop"]], tregexp: [[/[^\\"()\[\]{}]/, "regexp"], [/[()\[\]{}]/, "@brackets"], [/\\./, "operator.scss"], [/"(?!"")/, "string"], [/"""[imsx]*/, "regexp.delim", "@pop"]], rsstring: [[/^.*/, "invalid"], [/[^\\"]/, "string"], [/\\./, "string.escape"], [/"/, "string.delim", "@pop"]], rtstring: [[/[^\\"]/, "string"], [/\\./, "string.escape"], [/"(?!"")/, "string"], [/"""/, "string.delim", "@pop"]], dsstring: [[/^.*/, "invalid"], [/[^\\"\$]/, "string"], [/\$/, "", "@interpolated"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string.delim", "@pop"]], dtstring: [[/[^\\"\$]/, "string"], [/\$/, "", "@interpolated"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"(?!"")/, "string"], [/"""/, "string.delim", "@pop"]], interpolated: [[/\(/, {token: "", switchTo: "@interpolated_compound"}], [/[a-zA-Z_]\w*/, "identifier"], ["", "", "@pop"]], interpolated_compound: [[/\)/, "", "@pop"], {include: "@root"}], whitespace: [[/[ \t\r\n]+/, ""], [/#=/, "comment", "@multi_comment"], [/#.*$/, "comment"]], multi_comment: [[/#=/, "comment", "@push"], [/=#/, "comment", "@pop"], [/=(?!#)|#(?!=)/, "comment"], [/[^#=]+/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, o = {defaultToken: "", tokenPostfix: ".kt", keywords: ["as", "as?", "break", "class", "continue", "do", "else", "false", "for", "fun", "if", "in", "!in", "interface", "is", "!is", "null", "object", "package", "return", "super", "this", "throw", "true", "try", "typealias", "val", "var", "when", "while", "by", "catch", "constructor", "delegate", "dynamic", "field", "file", "finally", "get", "import", "init", "param", "property", "receiver", "set", "setparam", "where", "actual", "abstract", "annotation", "companion", "const", "crossinline", "data", "enum", "expect", "external", "final", "infix", "inline", "inner", "internal", "lateinit", "noinline", "open", "operator", "out", "override", "private", "protected", "public", "reified", "sealed", "suspend", "tailrec", "vararg", "field", "it"], operators: ["+", "-", "*", "/", "%", "=", "+=", "-=", "*=", "/=", "%=", "++", "--", "&&", "||", "!", "==", "!=", "===", "!==", ">", "<", "<=", ">=", "[", "]", "!!", "?.", "?:", "::", "..", ":", "?", "->", "@", ";", "$", "_"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[A-Z][\w\$]*/, "type.identifier"], [/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/0[xX](@hexdigits)[Ll]?/, "number.hex"], [/0(@octaldigits)[Ll]?/, "number.octal"], [/0[bB](@binarydigits)[Ll]?/, "number.binary"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"""/, "string", "@multistring"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], javadoc: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc", "@push"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], multistring: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"""/, "string", "@pop"], [/./, "string"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, r = {defaultToken: "", tokenPostfix: ".kt", keywords: ["as", "as?", "break", "class", "continue", "do", "else", "false", "for", "fun", "if", "in", "!in", "interface", "is", "!is", "null", "object", "package", "return", "super", "this", "throw", "true", "try", "typealias", "val", "var", "when", "while", "by", "catch", "constructor", "delegate", "dynamic", "field", "file", "finally", "get", "import", "init", "param", "property", "receiver", "set", "setparam", "where", "actual", "abstract", "annotation", "companion", "const", "crossinline", "data", "enum", "expect", "external", "final", "infix", "inline", "inner", "internal", "lateinit", "noinline", "open", "operator", "out", "override", "private", "protected", "public", "reified", "sealed", "suspend", "tailrec", "vararg", "field", "it"], operators: ["+", "-", "*", "/", "%", "=", "+=", "-=", "*=", "/=", "%=", "++", "--", "&&", "||", "!", "==", "!=", "===", "!==", ">", "<", "<=", ">=", "[", "]", "!!", "?.", "?:", "::", "..", ":", "?", "->", "@", ";", "$", "_"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, digits: /\d+(_+\d+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, tokenizer: {root: [[/[A-Z][\w\$]*/, "type.identifier"], [/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"], [/0[xX](@hexdigits)[Ll]?/, "number.hex"], [/0(@octaldigits)[Ll]?/, "number.octal"], [/0[bB](@binarydigits)[Ll]?/, "number.binary"], [/(@digits)[fFdD]/, "number.float"], [/(@digits)[lL]?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"""/, "string", "@multistring"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], javadoc: [[/[^\/*]+/, "comment.doc"], [/\/\*/, "comment.doc", "@push"], [/\/\*/, "comment.doc.invalid"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], multistring: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"""/, "string", "@pop"], [/./, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g, comments: {blockComment: ["/*", "*/"], lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, o = {defaultToken: "", tokenPostfix: ".less", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", identifierPlus: "-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@nestedJSBegin"}, ["[ \\t\\r\\n]+", ""], {include: "@comments"}, {include: "@keyword"}, {include: "@strings"}, {include: "@numbers"}, ["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))", "attribute.name", "@attribute"], ["url(\\-prefix)?\\(", {token: "tag", next: "@urldeclaration"}], ["[{}()\\[\\]]", "@brackets"], ["[,:;]", "delimiter"], ["#@identifierPlus", "tag.id"], ["&", "tag"], ["\\.@identifierPlus(?=\\()", "tag.class", "@attribute"], ["\\.@identifierPlus", "tag.class"], ["@identifierPlus", "tag"], {include: "@operators"}, ["@(@identifier(?=[:,\\)]))", "variable", "@attribute"], ["@(@identifier)", "variable"], ["@", "key", "@atRules"]], nestedJSBegin: [["``", "delimiter.backtick"], ["`", {token: "delimiter.backtick", next: "@nestedJSEnd", nextEmbedded: "text/javascript"}]], nestedJSEnd: [["`", {token: "delimiter.backtick", next: "@pop", nextEmbedded: "@pop"}]], operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]], keyword: [["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b", "keyword"]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "tag", next: "@pop"}]], attribute: [{include: "@nestedJSBegin"}, {include: "@comments"}, {include: "@strings"}, {include: "@numbers"}, {include: "@keyword"}, ["[a-zA-Z\\-]+(?=\\()", "attribute.value", "@attribute"], [">", "operator", "@pop"], ["@identifier", "attribute.value"], {include: "@operators"}, ["@(@identifier)", "variable"], ["[)\\}]", "@brackets", "@pop"], ["[{}()\\[\\]>]", "@brackets"], ["[;]", "delimiter", "@pop"], ["[,=:]", "delimiter"], ["\\s", ""], [".", "attribute.value"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], numbers: [["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "attribute.value.number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "attribute.value.unit", "@pop"]], strings: [['~?"', {token: "string.delimiter", next: "@stringsEndDoubleQuote"}], ["~?'", {token: "string.delimiter", next: "@stringsEndQuote"}]], stringsEndDoubleQuote: [['\\\\"', "string"], ['"', {token: "string.delimiter", next: "@popall"}], [".", "string"]], stringsEndQuote: [["\\\\'", "string"], ["'", {token: "string.delimiter", next: "@popall"}], [".", "string"]], atRules: [{include: "@comments"}, {include: "@strings"}, ["[()]", "delimiter"], ["[\\{;]", "delimiter", "@pop"], [".", "key"]]}}; + var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g, comments: {blockComment: ["/*", "*/"], lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, r = {defaultToken: "", tokenPostfix: ".less", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", identifierPlus: "-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@nestedJSBegin"}, ["[ \\t\\r\\n]+", ""], {include: "@comments"}, {include: "@keyword"}, {include: "@strings"}, {include: "@numbers"}, ["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))", "attribute.name", "@attribute"], ["url(\\-prefix)?\\(", {token: "tag", next: "@urldeclaration"}], ["[{}()\\[\\]]", "@brackets"], ["[,:;]", "delimiter"], ["#@identifierPlus", "tag.id"], ["&", "tag"], ["\\.@identifierPlus(?=\\()", "tag.class", "@attribute"], ["\\.@identifierPlus", "tag.class"], ["@identifierPlus", "tag"], {include: "@operators"}, ["@(@identifier(?=[:,\\)]))", "variable", "@attribute"], ["@(@identifier)", "variable"], ["@", "key", "@atRules"]], nestedJSBegin: [["``", "delimiter.backtick"], ["`", {token: "delimiter.backtick", next: "@nestedJSEnd", nextEmbedded: "text/javascript"}]], nestedJSEnd: [["`", {token: "delimiter.backtick", next: "@pop", nextEmbedded: "@pop"}]], operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]], keyword: [["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b", "keyword"]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "tag", next: "@pop"}]], attribute: [{include: "@nestedJSBegin"}, {include: "@comments"}, {include: "@strings"}, {include: "@numbers"}, {include: "@keyword"}, ["[a-zA-Z\\-]+(?=\\()", "attribute.value", "@attribute"], [">", "operator", "@pop"], ["@identifier", "attribute.value"], {include: "@operators"}, ["@(@identifier)", "variable"], ["[)\\}]", "@brackets", "@pop"], ["[{}()\\[\\]>]", "@brackets"], ["[;]", "delimiter", "@pop"], ["[,=:]", "delimiter"], ["\\s", ""], [".", "attribute.value"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], numbers: [["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "attribute.value.number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "attribute.value.unit", "@pop"]], strings: [['~?"', {token: "string.delimiter", next: "@stringsEndDoubleQuote"}], ["~?'", {token: "string.delimiter", next: "@stringsEndQuote"}]], stringsEndDoubleQuote: [['\\\\"', "string"], ['"', {token: "string.delimiter", next: "@popall"}], [".", "string"]], stringsEndQuote: [["\\\\'", "string"], ["'", {token: "string.delimiter", next: "@popall"}], [".", "string"]], atRules: [{include: "@comments"}, {include: "@strings"}, ["[()]", "delimiter"], ["[\\{;]", "delimiter", "@pop"], [".", "key"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "COMMENT"}, brackets: [["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: ":", close: "."}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: ":", close: "."}], folding: {markers: {start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"), end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}}, o = {tokenPostfix: ".lexon", ignoreCase: true, keywords: ["lexon", "lex", "clause", "terms", "contracts", "may", "pay", "pays", "appoints", "into", "to"], typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"], operators: ["less", "greater", "equal", "le", "gt", "or", "and", "add", "added", "subtract", "subtracted", "multiply", "multiplied", "times", "divide", "divided", "is", "be", "certified"], symbols: /[=><!~?:&|+\-*\/\^%]+/, tokenizer: {root: [[/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]], [/"/, {token: "identifier.quote", bracket: "@open", next: "@quoted_identifier"}], ["LEX$", {token: "keyword", bracket: "@open", next: "@identifier_until_period"}], ["LEXON", {token: "keyword", bracket: "@open", next: "@semver"}], [":", {token: "delimiter", bracket: "@open", next: "@identifier_until_period"}], [/[a-z_$][\w$]*/, {cases: {"@operators": "operator", "@typeKeywords": "keyword.type", "@keywords": "keyword", "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d*\.\d*/, "number.semver"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"]], quoted_identifier: [[/[^\\"]+/, "identifier"], [/"/, {token: "identifier.quote", bracket: "@close", next: "@pop"}]], space_identifier_until_period: [[":", "delimiter"], [" ", {token: "white", next: "@identifier_rest"}]], identifier_until_period: [{include: "@whitespace"}, [":", {token: "delimiter", next: "@identifier_rest"}], [/[^\\.]+/, "identifier"], [/\./, {token: "delimiter", bracket: "@close", next: "@pop"}]], identifier_rest: [[/[^\\.]+/, "identifier"], [/\./, {token: "delimiter", bracket: "@close", next: "@pop"}]], semver: [{include: "@whitespace"}, [":", "delimiter"], [/\d*\.\d*\.\d*/, {token: "number.semver", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"]]}}; + var i = {comments: {lineComment: "COMMENT"}, brackets: [["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: ":", close: "."}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "`", close: "`"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: ":", close: "."}], folding: {markers: {start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"), end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}}, r = {tokenPostfix: ".lexon", ignoreCase: true, keywords: ["lexon", "lex", "clause", "terms", "contracts", "may", "pay", "pays", "appoints", "into", "to"], typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"], operators: ["less", "greater", "equal", "le", "gt", "or", "and", "add", "added", "subtract", "subtracted", "multiply", "multiplied", "times", "divide", "divided", "is", "be", "certified"], symbols: /[=><!~?:&|+\-*\/\^%]+/, tokenizer: {root: [[/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]], [/"/, {token: "identifier.quote", bracket: "@open", next: "@quoted_identifier"}], ["LEX$", {token: "keyword", bracket: "@open", next: "@identifier_until_period"}], ["LEXON", {token: "keyword", bracket: "@open", next: "@semver"}], [":", {token: "delimiter", bracket: "@open", next: "@identifier_until_period"}], [/[a-z_$][\w$]*/, {cases: {"@operators": "operator", "@typeKeywords": "keyword.type", "@keywords": "keyword", "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d*\.\d*/, "number.semver"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"]], quoted_identifier: [[/[^\\"]+/, "identifier"], [/"/, {token: "identifier.quote", bracket: "@close", next: "@pop"}]], space_identifier_until_period: [[":", "delimiter"], [" ", {token: "white", next: "@identifier_rest"}]], identifier_until_period: [{include: "@whitespace"}, [":", {token: "delimiter", next: "@identifier_rest"}], [/[^\\.]+/, "identifier"], [/\./, {token: "delimiter", bracket: "@close", next: "@pop"}]], identifier_rest: [[/[^\\.]+/, "identifier"], [/\./, {token: "delimiter", bracket: "@close", next: "@pop"}]], semver: [{include: "@whitespace"}, [":", "delimiter"], [/\d*\.\d*\.\d*/, {token: "number.semver", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "--", blockComment: ["--[[", "]]"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".lua", keywords: ["and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"], brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], operators: ["+", "-", "*", "/", "%", "^", "#", "==", "~=", "<=", ">=", "<", ">", "=", ";", ":", ",", ".", "..", "..."], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]], [/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], whitespace: [[/[ \t\r\n]+/, ""], [/--\[([=]*)\[/, "comment", "@comment.$1"], [/--.*$/, "comment"]], comment: [[/[^\]]+/, "comment"], [/\]([=]*)\]/, {cases: {"$1==$S2": {token: "comment", next: "@pop"}, "@default": "comment"}}], [/./, "comment"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; + var i = {comments: {lineComment: "--", blockComment: ["--[[", "]]"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".lua", keywords: ["and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"], brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], operators: ["+", "-", "*", "/", "%", "^", "#", "==", "~=", "<=", ">=", "<", ">", "=", ";", ":", ",", ".", "..", "..."], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]], [/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+?/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], whitespace: [[/[ \t\r\n]+/, ""], [/--\[([=]*)\[/, "comment", "@comment.$1"], [/--.*$/, "comment"]], comment: [[/[^\]]+/, "comment"], [/\]([=]*)\]/, {cases: {"$1==$S2": {token: "comment", next: "@pop"}, "@default": "comment"}}], [/./, "comment"]], string: [[/[^\\"']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {blockComment: ["<!--", "-->"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">", notIn: ["string"]}], surroundingPairs: [{open: "(", close: ")"}, {open: "[", close: "]"}, {open: "`", close: "`"}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}}, o = {defaultToken: "", tokenPostfix: ".md", control: /[\\`*_\[\]{}()#+\-\.!]/, noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/, escapes: /\\(?:@control)/, jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/, empty: ["area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex", "link", "meta", "param"], tokenizer: {root: [[/^\s*\|/, "@rematch", "@table_header"], [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]], [/^\s*(=+|\-+)\s*$/, "keyword"], [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"], [/^\s*>+/, "comment"], [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"], [/^(\t|[ ]{4})[^ ].*$/, "string"], [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, {token: "string", next: "@codeblock"}], [/^\s*```\s*((?:\w|[\/\-#])+).*$/, {token: "string", next: "@codeblockgh", nextEmbedded: "$1"}], [/^\s*```\s*$/, {token: "string", next: "@codeblock"}], {include: "@linecontent"}], table_header: [{include: "@table_common"}, [/[^\|]+/, "keyword.table.header"]], table_body: [{include: "@table_common"}, {include: "@linecontent"}], table_common: [[/\s*[\-:]+\s*/, {token: "keyword", switchTo: "table_body"}], [/^\s*\|/, "keyword.table.left"], [/^\s*[^\|]/, "@rematch", "@pop"], [/^\s*$/, "@rematch", "@pop"], [/\|/, {cases: {"@eos": "keyword.table.right", "@default": "keyword.table.middle"}}]], codeblock: [[/^\s*~~~\s*$/, {token: "string", next: "@pop"}], [/^\s*```\s*$/, {token: "string", next: "@pop"}], [/.*$/, "variable.source"]], codeblockgh: [[/```\s*$/, {token: "variable.source", next: "@pop", nextEmbedded: "@pop"}], [/[^`]+/, "variable.source"]], linecontent: [[/&\w+;/, "string.escape"], [/@escapes/, "escape"], [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"], [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"], [/\b_[^_]+_\b/, "emphasis"], [/\*([^\\*]|@escapes)+\*/, "emphasis"], [/`([^\\`]|@escapes)+`/, "variable"], [/\{+[^}]+\}+/, "string.target"], [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]], [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"], {include: "html"}], html: [[/<(\w+)\/>/, "tag"], [/<(\w+)/, {cases: {"@empty": {token: "tag", next: "@tag.$1"}, "@default": {token: "tag", next: "@tag.$1"}}}], [/<\/(\w+)\s*>/, {token: "tag"}], [/<!--/, "comment", "@comment"]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, "comment", "@pop"], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]], tag: [[/[ \t\r\n]+/, "white"], [/(type)(\s*=\s*)(")([^"]+)(")/, ["attribute.name.html", "delimiter.html", "string.html", {token: "string.html", switchTo: "@tag.$S2.$4"}, "string.html"]], [/(type)(\s*=\s*)(')([^']+)(')/, ["attribute.name.html", "delimiter.html", "string.html", {token: "string.html", switchTo: "@tag.$S2.$4"}, "string.html"]], [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]], [/\w+/, "attribute.name.html"], [/\/>/, "tag", "@pop"], [/>/, {cases: {"$S2==style": {token: "tag", switchTo: "embeddedStyle", nextEmbedded: "text/css"}, "$S2==script": {cases: {$S3: {token: "tag", switchTo: "embeddedScript", nextEmbedded: "$S3"}, "@default": {token: "tag", switchTo: "embeddedScript", nextEmbedded: "text/javascript"}}}, "@default": {token: "tag", next: "@pop"}}}]], embeddedStyle: [[/[^<]+/, ""], [/<\/style\s*>/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/</, ""]], embeddedScript: [[/[^<]+/, ""], [/<\/script\s*>/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/</, ""]]}}; + var i = {comments: {blockComment: ["<!--", "-->"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">", notIn: ["string"]}], surroundingPairs: [{open: "(", close: ")"}, {open: "[", close: "]"}, {open: "`", close: "`"}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}}, r = {defaultToken: "", tokenPostfix: ".md", control: /[\\`*_\[\]{}()#+\-\.!]/, noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/, escapes: /\\(?:@control)/, jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/, empty: ["area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex", "link", "meta", "param"], tokenizer: {root: [[/^\s*\|/, "@rematch", "@table_header"], [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]], [/^\s*(=+|\-+)\s*$/, "keyword"], [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"], [/^\s*>+/, "comment"], [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"], [/^(\t|[ ]{4})[^ ].*$/, "string"], [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, {token: "string", next: "@codeblock"}], [/^\s*```\s*((?:\w|[\/\-#])+).*$/, {token: "string", next: "@codeblockgh", nextEmbedded: "$1"}], [/^\s*```\s*$/, {token: "string", next: "@codeblock"}], {include: "@linecontent"}], table_header: [{include: "@table_common"}, [/[^\|]+/, "keyword.table.header"]], table_body: [{include: "@table_common"}, {include: "@linecontent"}], table_common: [[/\s*[\-:]+\s*/, {token: "keyword", switchTo: "table_body"}], [/^\s*\|/, "keyword.table.left"], [/^\s*[^\|]/, "@rematch", "@pop"], [/^\s*$/, "@rematch", "@pop"], [/\|/, {cases: {"@eos": "keyword.table.right", "@default": "keyword.table.middle"}}]], codeblock: [[/^\s*~~~\s*$/, {token: "string", next: "@pop"}], [/^\s*```\s*$/, {token: "string", next: "@pop"}], [/.*$/, "variable.source"]], codeblockgh: [[/```\s*$/, {token: "variable.source", next: "@pop", nextEmbedded: "@pop"}], [/[^`]+/, "variable.source"]], linecontent: [[/&\w+;/, "string.escape"], [/@escapes/, "escape"], [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"], [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"], [/\b_[^_]+_\b/, "emphasis"], [/\*([^\\*]|@escapes)+\*/, "emphasis"], [/`([^\\`]|@escapes)+`/, "variable"], [/\{+[^}]+\}+/, "string.target"], [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]], [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"], {include: "html"}], html: [[/<(\w+)\/>/, "tag"], [/<(\w+)/, {cases: {"@empty": {token: "tag", next: "@tag.$1"}, "@default": {token: "tag", next: "@tag.$1"}}}], [/<\/(\w+)\s*>/, {token: "tag"}], [/<!--/, "comment", "@comment"]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, "comment", "@pop"], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]], tag: [[/[ \t\r\n]+/, "white"], [/(type)(\s*=\s*)(")([^"]+)(")/, ["attribute.name.html", "delimiter.html", "string.html", {token: "string.html", switchTo: "@tag.$S2.$4"}, "string.html"]], [/(type)(\s*=\s*)(')([^']+)(')/, ["attribute.name.html", "delimiter.html", "string.html", {token: "string.html", switchTo: "@tag.$S2.$4"}, "string.html"]], [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]], [/\w+/, "attribute.name.html"], [/\/>/, "tag", "@pop"], [/>/, {cases: {"$S2==style": {token: "tag", switchTo: "embeddedStyle", nextEmbedded: "text/css"}, "$S2==script": {cases: {$S3: {token: "tag", switchTo: "embeddedScript", nextEmbedded: "$S3"}, "@default": {token: "tag", switchTo: "embeddedScript", nextEmbedded: "text/javascript"}}}, "@default": {token: "tag", next: "@pop"}}}]], embeddedStyle: [[/[^<]+/, ""], [/<\/style\s*>/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/</, ""]], embeddedScript: [[/[^<]+/, ""], [/<\/script\s*>/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/</, ""]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {blockComment: ["###", "###"], lineComment: "#"}, folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, o = {defaultToken: "", ignoreCase: false, tokenPostfix: ".mips", regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/, keywords: [".data", ".text", "syscall", "trap", "add", "addu", "addi", "addiu", "and", "andi", "div", "divu", "mult", "multu", "nor", "or", "ori", "sll", "slv", "sra", "srav", "srl", "srlv", "sub", "subu", "xor", "xori", "lhi", "lho", "lhi", "llo", "slt", "slti", "sltu", "sltiu", "beq", "bgtz", "blez", "bne", "j", "jal", "jalr", "jr", "lb", "lbu", "lh", "lhu", "lw", "li", "la", "sb", "sh", "sw", "mfhi", "mflo", "mthi", "mtlo", "move"], symbols: /[\.,\:]+/, escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\$[a-zA-Z_]\w*/, "variable.predefined"], [/[.a-zA-Z_]\w*/, {cases: {this: "variable.predefined", "@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/#.*$/, "comment"], ["///", {token: "regexp", next: "@hereregexp"}], [/^(\s*)(@regEx)/, ["", "regexp"]], [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/@symbols/, "delimiter"], [/\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/0[0-7]+(?!\d)/, "number.octal"], [/\d+/, "number"], [/[,.]/, "delimiter"], [/"""/, "string", '@herestring."""'], [/'''/, "string", "@herestring.'''"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\#\\]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\./, "string.escape.invalid"], [/#{/, {cases: {'$S2=="': {token: "string", next: "root.interpolatedstring"}, "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/#/, "string"]], herestring: [[/("""|''')/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^#\\'"]+/, "string"], [/['"]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/#{/, {token: "string.quote", next: "root.interpolatedstring"}], [/#/, "string"]], comment: [[/[^#]+/, "comment"], [/#/, "comment"]], hereregexp: [[/[^\\\/#]+/, "regexp"], [/\\./, "regexp"], [/#.*$/, "comment"], ["///[igm]*", {token: "regexp", next: "@pop"}], [/\//, "regexp"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {blockComment: ["###", "###"], lineComment: "#"}, folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, r = {defaultToken: "", ignoreCase: false, tokenPostfix: ".mips", regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/, keywords: [".data", ".text", "syscall", "trap", "add", "addu", "addi", "addiu", "and", "andi", "div", "divu", "mult", "multu", "nor", "or", "ori", "sll", "slv", "sra", "srav", "srl", "srlv", "sub", "subu", "xor", "xori", "lhi", "lho", "lhi", "llo", "slt", "slti", "sltu", "sltiu", "beq", "bgtz", "blez", "bne", "j", "jal", "jalr", "jr", "lb", "lbu", "lh", "lhu", "lw", "li", "la", "sb", "sh", "sw", "mfhi", "mflo", "mthi", "mtlo", "move"], symbols: /[\.,\:]+/, escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/\$[a-zA-Z_]\w*/, "variable.predefined"], [/[.a-zA-Z_]\w*/, {cases: {this: "variable.predefined", "@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/#.*$/, "comment"], ["///", {token: "regexp", next: "@hereregexp"}], [/^(\s*)(@regEx)/, ["", "regexp"]], [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]], [/@symbols/, "delimiter"], [/\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/0[0-7]+(?!\d)/, "number.octal"], [/\d+/, "number"], [/[,.]/, "delimiter"], [/"""/, "string", '@herestring."""'], [/'''/, "string", "@herestring.'''"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\#\\]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\./, "string.escape.invalid"], [/#{/, {cases: {'$S2=="': {token: "string", next: "root.interpolatedstring"}, "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/#/, "string"]], herestring: [[/("""|''')/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^#\\'"]+/, "string"], [/['"]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/#{/, {token: "string.quote", next: "root.interpolatedstring"}], [/#/, "string"]], comment: [[/[^#]+/, "comment"], [/#/, "comment"]], hereregexp: [[/[^\\\/#]+/, "regexp"], [/\\./, "regexp"], [/#.*$/, "comment"], ["///[igm]*", {token: "regexp", next: "@pop"}], [/\//, "regexp"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}]}, o = {defaultToken: "", tokenPostfix: ".msdax", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.brackets"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["VAR", "RETURN", "NOT", "EVALUATE", "DATATABLE", "ORDER", "BY", "START", "AT", "DEFINE", "MEASURE", "ASC", "DESC", "IN", "BOOLEAN", "DOUBLE", "INTEGER", "DATETIME", "CURRENCY", "STRING"], functions: ["CLOSINGBALANCEMONTH", "CLOSINGBALANCEQUARTER", "CLOSINGBALANCEYEAR", "DATEADD", "DATESBETWEEN", "DATESINPERIOD", "DATESMTD", "DATESQTD", "DATESYTD", "ENDOFMONTH", "ENDOFQUARTER", "ENDOFYEAR", "FIRSTDATE", "FIRSTNONBLANK", "LASTDATE", "LASTNONBLANK", "NEXTDAY", "NEXTMONTH", "NEXTQUARTER", "NEXTYEAR", "OPENINGBALANCEMONTH", "OPENINGBALANCEQUARTER", "OPENINGBALANCEYEAR", "PARALLELPERIOD", "PREVIOUSDAY", "PREVIOUSMONTH", "PREVIOUSQUARTER", "PREVIOUSYEAR", "SAMEPERIODLASTYEAR", "STARTOFMONTH", "STARTOFQUARTER", "STARTOFYEAR", "TOTALMTD", "TOTALQTD", "TOTALYTD", "ADDCOLUMNS", "ADDMISSINGITEMS", "ALL", "ALLEXCEPT", "ALLNOBLANKROW", "ALLSELECTED", "CALCULATE", "CALCULATETABLE", "CALENDAR", "CALENDARAUTO", "CROSSFILTER", "CROSSJOIN", "CURRENTGROUP", "DATATABLE", "DETAILROWS", "DISTINCT", "EARLIER", "EARLIEST", "EXCEPT", "FILTER", "FILTERS", "GENERATE", "GENERATEALL", "GROUPBY", "IGNORE", "INTERSECT", "ISONORAFTER", "KEEPFILTERS", "LOOKUPVALUE", "NATURALINNERJOIN", "NATURALLEFTOUTERJOIN", "RELATED", "RELATEDTABLE", "ROLLUP", "ROLLUPADDISSUBTOTAL", "ROLLUPGROUP", "ROLLUPISSUBTOTAL", "ROW", "SAMPLE", "SELECTCOLUMNS", "SUBSTITUTEWITHINDEX", "SUMMARIZE", "SUMMARIZECOLUMNS", "TOPN", "TREATAS", "UNION", "USERELATIONSHIP", "VALUES", "SUM", "SUMX", "PATH", "PATHCONTAINS", "PATHITEM", "PATHITEMREVERSE", "PATHLENGTH", "AVERAGE", "AVERAGEA", "AVERAGEX", "COUNT", "COUNTA", "COUNTAX", "COUNTBLANK", "COUNTROWS", "COUNTX", "DISTINCTCOUNT", "DIVIDE", "GEOMEAN", "GEOMEANX", "MAX", "MAXA", "MAXX", "MEDIAN", "MEDIANX", "MIN", "MINA", "MINX", "PERCENTILE.EXC", "PERCENTILE.INC", "PERCENTILEX.EXC", "PERCENTILEX.INC", "PRODUCT", "PRODUCTX", "RANK.EQ", "RANKX", "STDEV.P", "STDEV.S", "STDEVX.P", "STDEVX.S", "VAR.P", "VAR.S", "VARX.P", "VARX.S", "XIRR", "XNPV", "DATE", "DATEDIFF", "DATEVALUE", "DAY", "EDATE", "EOMONTH", "HOUR", "MINUTE", "MONTH", "NOW", "SECOND", "TIME", "TIMEVALUE", "TODAY", "WEEKDAY", "WEEKNUM", "YEAR", "YEARFRAC", "CONTAINS", "CONTAINSROW", "CUSTOMDATA", "ERROR", "HASONEFILTER", "HASONEVALUE", "ISBLANK", "ISCROSSFILTERED", "ISEMPTY", "ISERROR", "ISEVEN", "ISFILTERED", "ISLOGICAL", "ISNONTEXT", "ISNUMBER", "ISODD", "ISSUBTOTAL", "ISTEXT", "USERNAME", "USERPRINCIPALNAME", "AND", "FALSE", "IF", "IFERROR", "NOT", "OR", "SWITCH", "TRUE", "ABS", "ACOS", "ACOSH", "ACOT", "ACOTH", "ASIN", "ASINH", "ATAN", "ATANH", "BETA.DIST", "BETA.INV", "CEILING", "CHISQ.DIST", "CHISQ.DIST.RT", "CHISQ.INV", "CHISQ.INV.RT", "COMBIN", "COMBINA", "CONFIDENCE.NORM", "CONFIDENCE.T", "COS", "COSH", "COT", "COTH", "CURRENCY", "DEGREES", "EVEN", "EXP", "EXPON.DIST", "FACT", "FLOOR", "GCD", "INT", "ISO.CEILING", "LCM", "LN", "LOG", "LOG10", "MOD", "MROUND", "ODD", "PERMUT", "PI", "POISSON.DIST", "POWER", "QUOTIENT", "RADIANS", "RAND", "RANDBETWEEN", "ROUND", "ROUNDDOWN", "ROUNDUP", "SIGN", "SIN", "SINH", "SQRT", "SQRTPI", "TAN", "TANH", "TRUNC", "BLANK", "CONCATENATE", "CONCATENATEX", "EXACT", "FIND", "FIXED", "FORMAT", "LEFT", "LEN", "LOWER", "MID", "REPLACE", "REPT", "RIGHT", "SEARCH", "SUBSTITUTE", "TRIM", "UNICHAR", "UNICODE", "UPPER", "VALUE"], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, [/[;,.]/, "delimiter"], [/[({})]/, "@brackets"], [/[a-z_][a-zA-Z0-9_]*/, {cases: {"@keywords": "keyword", "@functions": "keyword", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/\/\/+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/N"/, {token: "string", next: "@string"}], [/"/, {token: "string", next: "@string"}]], string: [[/[^"]+/, "string"], [/""/, "string"], [/"/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/\[/, {token: "identifier.quote", next: "@bracketedIdentifier"}], [/'/, {token: "identifier.quote", next: "@quotedIdentifier"}]], bracketedIdentifier: [[/[^\]]+/, "identifier"], [/]]/, "identifier"], [/]/, {token: "identifier.quote", next: "@pop"}]], quotedIdentifier: [[/[^']+/, "identifier"], [/''/, "identifier"], [/'/, {token: "identifier.quote", next: "@pop"}]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}]}, r = {defaultToken: "", tokenPostfix: ".msdax", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.brackets"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["VAR", "RETURN", "NOT", "EVALUATE", "DATATABLE", "ORDER", "BY", "START", "AT", "DEFINE", "MEASURE", "ASC", "DESC", "IN", "BOOLEAN", "DOUBLE", "INTEGER", "DATETIME", "CURRENCY", "STRING"], functions: ["CLOSINGBALANCEMONTH", "CLOSINGBALANCEQUARTER", "CLOSINGBALANCEYEAR", "DATEADD", "DATESBETWEEN", "DATESINPERIOD", "DATESMTD", "DATESQTD", "DATESYTD", "ENDOFMONTH", "ENDOFQUARTER", "ENDOFYEAR", "FIRSTDATE", "FIRSTNONBLANK", "LASTDATE", "LASTNONBLANK", "NEXTDAY", "NEXTMONTH", "NEXTQUARTER", "NEXTYEAR", "OPENINGBALANCEMONTH", "OPENINGBALANCEQUARTER", "OPENINGBALANCEYEAR", "PARALLELPERIOD", "PREVIOUSDAY", "PREVIOUSMONTH", "PREVIOUSQUARTER", "PREVIOUSYEAR", "SAMEPERIODLASTYEAR", "STARTOFMONTH", "STARTOFQUARTER", "STARTOFYEAR", "TOTALMTD", "TOTALQTD", "TOTALYTD", "ADDCOLUMNS", "ADDMISSINGITEMS", "ALL", "ALLEXCEPT", "ALLNOBLANKROW", "ALLSELECTED", "CALCULATE", "CALCULATETABLE", "CALENDAR", "CALENDARAUTO", "CROSSFILTER", "CROSSJOIN", "CURRENTGROUP", "DATATABLE", "DETAILROWS", "DISTINCT", "EARLIER", "EARLIEST", "EXCEPT", "FILTER", "FILTERS", "GENERATE", "GENERATEALL", "GROUPBY", "IGNORE", "INTERSECT", "ISONORAFTER", "KEEPFILTERS", "LOOKUPVALUE", "NATURALINNERJOIN", "NATURALLEFTOUTERJOIN", "RELATED", "RELATEDTABLE", "ROLLUP", "ROLLUPADDISSUBTOTAL", "ROLLUPGROUP", "ROLLUPISSUBTOTAL", "ROW", "SAMPLE", "SELECTCOLUMNS", "SUBSTITUTEWITHINDEX", "SUMMARIZE", "SUMMARIZECOLUMNS", "TOPN", "TREATAS", "UNION", "USERELATIONSHIP", "VALUES", "SUM", "SUMX", "PATH", "PATHCONTAINS", "PATHITEM", "PATHITEMREVERSE", "PATHLENGTH", "AVERAGE", "AVERAGEA", "AVERAGEX", "COUNT", "COUNTA", "COUNTAX", "COUNTBLANK", "COUNTROWS", "COUNTX", "DISTINCTCOUNT", "DIVIDE", "GEOMEAN", "GEOMEANX", "MAX", "MAXA", "MAXX", "MEDIAN", "MEDIANX", "MIN", "MINA", "MINX", "PERCENTILE.EXC", "PERCENTILE.INC", "PERCENTILEX.EXC", "PERCENTILEX.INC", "PRODUCT", "PRODUCTX", "RANK.EQ", "RANKX", "STDEV.P", "STDEV.S", "STDEVX.P", "STDEVX.S", "VAR.P", "VAR.S", "VARX.P", "VARX.S", "XIRR", "XNPV", "DATE", "DATEDIFF", "DATEVALUE", "DAY", "EDATE", "EOMONTH", "HOUR", "MINUTE", "MONTH", "NOW", "SECOND", "TIME", "TIMEVALUE", "TODAY", "WEEKDAY", "WEEKNUM", "YEAR", "YEARFRAC", "CONTAINS", "CONTAINSROW", "CUSTOMDATA", "ERROR", "HASONEFILTER", "HASONEVALUE", "ISBLANK", "ISCROSSFILTERED", "ISEMPTY", "ISERROR", "ISEVEN", "ISFILTERED", "ISLOGICAL", "ISNONTEXT", "ISNUMBER", "ISODD", "ISSUBTOTAL", "ISTEXT", "USERNAME", "USERPRINCIPALNAME", "AND", "FALSE", "IF", "IFERROR", "NOT", "OR", "SWITCH", "TRUE", "ABS", "ACOS", "ACOSH", "ACOT", "ACOTH", "ASIN", "ASINH", "ATAN", "ATANH", "BETA.DIST", "BETA.INV", "CEILING", "CHISQ.DIST", "CHISQ.DIST.RT", "CHISQ.INV", "CHISQ.INV.RT", "COMBIN", "COMBINA", "CONFIDENCE.NORM", "CONFIDENCE.T", "COS", "COSH", "COT", "COTH", "CURRENCY", "DEGREES", "EVEN", "EXP", "EXPON.DIST", "FACT", "FLOOR", "GCD", "INT", "ISO.CEILING", "LCM", "LN", "LOG", "LOG10", "MOD", "MROUND", "ODD", "PERMUT", "PI", "POISSON.DIST", "POWER", "QUOTIENT", "RADIANS", "RAND", "RANDBETWEEN", "ROUND", "ROUNDDOWN", "ROUNDUP", "SIGN", "SIN", "SINH", "SQRT", "SQRTPI", "TAN", "TANH", "TRUNC", "BLANK", "CONCATENATE", "CONCATENATEX", "EXACT", "FIND", "FIXED", "FORMAT", "LEFT", "LEN", "LOWER", "MID", "REPLACE", "REPT", "RIGHT", "SEARCH", "SUBSTITUTE", "TRIM", "UNICHAR", "UNICODE", "UPPER", "VALUE"], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, [/[;,.]/, "delimiter"], [/[({})]/, "@brackets"], [/[a-z_][a-zA-Z0-9_]*/, {cases: {"@keywords": "keyword", "@functions": "keyword", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/\/\/+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/N"/, {token: "string", next: "@string"}], [/"/, {token: "string", next: "@string"}]], string: [[/[^"]+/, "string"], [/""/, "string"], [/"/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/\[/, {token: "identifier.quote", next: "@bracketedIdentifier"}], [/'/, {token: "identifier.quote", next: "@quotedIdentifier"}]], bracketedIdentifier: [[/[^\]]+/, "identifier"], [/]]/, "identifier"], [/]/, {token: "identifier.quote", next: "@pop"}]], quotedIdentifier: [[/[^']+/, "identifier"], [/''/, "identifier"], [/'/, {token: "identifier.quote", next: "@pop"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["ACCESSIBLE", "ACCOUNT", "ACTION", "ADD", "AFTER", "AGAINST", "AGGREGATE", "ALGORITHM", "ALL", "ALTER", "ALWAYS", "ANALYSE", "ANALYZE", "AND", "ANY", "AS", "ASC", "ASCII", "ASENSITIVE", "AT", "AUTOEXTEND_SIZE", "AUTO_INCREMENT", "AVG", "AVG_ROW_LENGTH", "BACKUP", "BEFORE", "BEGIN", "BETWEEN", "BIGINT", "BINARY", "BINLOG", "BIT", "BLOB", "BLOCK", "BOOL", "BOOLEAN", "BOTH", "BTREE", "BY", "BYTE", "CACHE", "CALL", "CASCADE", "CASCADED", "CASE", "CATALOG_NAME", "CHAIN", "CHANGE", "CHANGED", "CHANNEL", "CHAR", "CHARACTER", "CHARSET", "CHECK", "CHECKSUM", "CIPHER", "CLASS_ORIGIN", "CLIENT", "CLOSE", "COALESCE", "CODE", "COLLATE", "COLLATION", "COLUMN", "COLUMNS", "COLUMN_FORMAT", "COLUMN_NAME", "COMMENT", "COMMIT", "COMMITTED", "COMPACT", "COMPLETION", "COMPRESSED", "COMPRESSION", "CONCURRENT", "CONDITION", "CONNECTION", "CONSISTENT", "CONSTRAINT", "CONSTRAINT_CATALOG", "CONSTRAINT_NAME", "CONSTRAINT_SCHEMA", "CONTAINS", "CONTEXT", "CONTINUE", "CONVERT", "CPU", "CREATE", "CROSS", "CUBE", "CURRENT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURSOR", "CURSOR_NAME", "DATA", "DATABASE", "DATABASES", "DATAFILE", "DATE", "DATETIME", "DAY", "DAY_HOUR", "DAY_MICROSECOND", "DAY_MINUTE", "DAY_SECOND", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULT_AUTH", "DEFINER", "DELAYED", "DELAY_KEY_WRITE", "DELETE", "DESC", "DESCRIBE", "DES_KEY_FILE", "DETERMINISTIC", "DIAGNOSTICS", "DIRECTORY", "DISABLE", "DISCARD", "DISK", "DISTINCT", "DISTINCTROW", "DIV", "DO", "DOUBLE", "DROP", "DUAL", "DUMPFILE", "DUPLICATE", "DYNAMIC", "EACH", "ELSE", "ELSEIF", "ENABLE", "ENCLOSED", "ENCRYPTION", "END", "ENDS", "ENGINE", "ENGINES", "ENUM", "ERROR", "ERRORS", "ESCAPE", "ESCAPED", "EVENT", "EVENTS", "EVERY", "EXCHANGE", "EXECUTE", "EXISTS", "EXIT", "EXPANSION", "EXPIRE", "EXPLAIN", "EXPORT", "EXTENDED", "EXTENT_SIZE", "FALSE", "FAST", "FAULTS", "FETCH", "FIELDS", "FILE", "FILE_BLOCK_SIZE", "FILTER", "FIRST", "FIXED", "FLOAT", "FLOAT4", "FLOAT8", "FLUSH", "FOLLOWS", "FOR", "FORCE", "FOREIGN", "FORMAT", "FOUND", "FROM", "FULL", "FULLTEXT", "FUNCTION", "GENERAL", "GENERATED", "GEOMETRY", "GEOMETRYCOLLECTION", "GET", "GET_FORMAT", "GLOBAL", "GRANT", "GRANTS", "GROUP", "GROUP_REPLICATION", "HANDLER", "HASH", "HAVING", "HELP", "HIGH_PRIORITY", "HOST", "HOSTS", "HOUR", "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_SECOND", "IDENTIFIED", "IF", "IGNORE", "IGNORE_SERVER_IDS", "IMPORT", "INDEX", "INDEXES", "INFILE", "INITIAL_SIZE", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INSERT_METHOD", "INSTALL", "INSTANCE", "INT", "INT1", "INT2", "INT3", "INT4", "INT8", "INTEGER", "INTERVAL", "INTO", "INVOKER", "IO", "IO_AFTER_GTIDS", "IO_BEFORE_GTIDS", "IO_THREAD", "IPC", "ISOLATION", "ISSUER", "ITERATE", "JOIN", "JSON", "KEY", "KEYS", "KEY_BLOCK_SIZE", "KILL", "LANGUAGE", "LAST", "LEADING", "LEAVE", "LEAVES", "LEFT", "LESS", "LEVEL", "LIKE", "LIMIT", "LINEAR", "LINES", "LINESTRING", "LIST", "LOAD", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP", "LOCK", "LOCKS", "LOGFILE", "LOGS", "LONG", "LONGBLOB", "LONGTEXT", "LOOP", "LOW_PRIORITY", "MASTER", "MASTER_AUTO_POSITION", "MASTER_BIND", "MASTER_CONNECT_RETRY", "MASTER_DELAY", "MASTER_HEARTBEAT_PERIOD", "MASTER_HOST", "MASTER_LOG_FILE", "MASTER_LOG_POS", "MASTER_PASSWORD", "MASTER_PORT", "MASTER_RETRY_COUNT", "MASTER_SERVER_ID", "MASTER_SSL", "MASTER_SSL_CA", "MASTER_SSL_CAPATH", "MASTER_SSL_CERT", "MASTER_SSL_CIPHER", "MASTER_SSL_CRL", "MASTER_SSL_CRLPATH", "MASTER_SSL_KEY", "MASTER_SSL_VERIFY_SERVER_CERT", "MASTER_TLS_VERSION", "MASTER_USER", "MATCH", "MAXVALUE", "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", "MAX_SIZE", "MAX_STATEMENT_TIME", "MAX_UPDATES_PER_HOUR", "MAX_USER_CONNECTIONS", "MEDIUM", "MEDIUMBLOB", "MEDIUMINT", "MEDIUMTEXT", "MEMORY", "MERGE", "MESSAGE_TEXT", "MICROSECOND", "MIDDLEINT", "MIGRATE", "MINUTE", "MINUTE_MICROSECOND", "MINUTE_SECOND", "MIN_ROWS", "MOD", "MODE", "MODIFIES", "MODIFY", "MONTH", "MULTILINESTRING", "MULTIPOINT", "MULTIPOLYGON", "MUTEX", "MYSQL_ERRNO", "NAME", "NAMES", "NATIONAL", "NATURAL", "NCHAR", "NDB", "NDBCLUSTER", "NEVER", "NEW", "NEXT", "NO", "NODEGROUP", "NONBLOCKING", "NONE", "NO_WAIT", "NO_WRITE_TO_BINLOG", "NUMBER", "NUMERIC", "NVARCHAR", "OFFSET", "OLD_PASSWORD", "ON", "ONE", "ONLY", "OPEN", "OPTIMIZE", "OPTIMIZER_COSTS", "OPTION", "OPTIONALLY", "OPTIONS", "OR", "ORDER", "OUT", "OUTER", "OUTFILE", "OWNER", "PACK_KEYS", "PAGE", "PARSER", "PARSE_GCOL_EXPR", "PARTIAL", "PARTITION", "PARTITIONING", "PARTITIONS", "PASSWORD", "PHASE", "PLUGIN", "PLUGINS", "PLUGIN_DIR", "POINT", "POLYGON", "PORT", "PRECEDES", "PRECISION", "PREPARE", "PRESERVE", "PREV", "PRIMARY", "PRIVILEGES", "PROCEDURE", "PROCESSLIST", "PROFILE", "PROFILES", "PROXY", "PURGE", "QUARTER", "QUERY", "QUICK", "RANGE", "READ", "READS", "READ_ONLY", "READ_WRITE", "REAL", "REBUILD", "RECOVER", "REDOFILE", "REDO_BUFFER_SIZE", "REDUNDANT", "REFERENCES", "REGEXP", "RELAY", "RELAYLOG", "RELAY_LOG_FILE", "RELAY_LOG_POS", "RELAY_THREAD", "RELEASE", "RELOAD", "REMOVE", "RENAME", "REORGANIZE", "REPAIR", "REPEAT", "REPEATABLE", "REPLACE", "REPLICATE_DO_DB", "REPLICATE_DO_TABLE", "REPLICATE_IGNORE_DB", "REPLICATE_IGNORE_TABLE", "REPLICATE_REWRITE_DB", "REPLICATE_WILD_DO_TABLE", "REPLICATE_WILD_IGNORE_TABLE", "REPLICATION", "REQUIRE", "RESET", "RESIGNAL", "RESTORE", "RESTRICT", "RESUME", "RETURN", "RETURNED_SQLSTATE", "RETURNS", "REVERSE", "REVOKE", "RIGHT", "RLIKE", "ROLLBACK", "ROLLUP", "ROTATE", "ROUTINE", "ROW", "ROWS", "ROW_COUNT", "ROW_FORMAT", "RTREE", "SAVEPOINT", "SCHEDULE", "SCHEMA", "SCHEMAS", "SCHEMA_NAME", "SECOND", "SECOND_MICROSECOND", "SECURITY", "SELECT", "SENSITIVE", "SEPARATOR", "SERIAL", "SERIALIZABLE", "SERVER", "SESSION", "SET", "SHARE", "SHOW", "SHUTDOWN", "SIGNAL", "SIGNED", "SIMPLE", "SLAVE", "SLOW", "SMALLINT", "SNAPSHOT", "SOCKET", "SOME", "SONAME", "SOUNDS", "SOURCE", "SPATIAL", "SPECIFIC", "SQL", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQL_AFTER_GTIDS", "SQL_AFTER_MTS_GAPS", "SQL_BEFORE_GTIDS", "SQL_BIG_RESULT", "SQL_BUFFER_RESULT", "SQL_CACHE", "SQL_CALC_FOUND_ROWS", "SQL_NO_CACHE", "SQL_SMALL_RESULT", "SQL_THREAD", "SQL_TSI_DAY", "SQL_TSI_HOUR", "SQL_TSI_MINUTE", "SQL_TSI_MONTH", "SQL_TSI_QUARTER", "SQL_TSI_SECOND", "SQL_TSI_WEEK", "SQL_TSI_YEAR", "SSL", "STACKED", "START", "STARTING", "STARTS", "STATS_AUTO_RECALC", "STATS_PERSISTENT", "STATS_SAMPLE_PAGES", "STATUS", "STOP", "STORAGE", "STORED", "STRAIGHT_JOIN", "STRING", "SUBCLASS_ORIGIN", "SUBJECT", "SUBPARTITION", "SUBPARTITIONS", "SUPER", "SUSPEND", "SWAPS", "SWITCHES", "TABLE", "TABLES", "TABLESPACE", "TABLE_CHECKSUM", "TABLE_NAME", "TEMPORARY", "TEMPTABLE", "TERMINATED", "TEXT", "THAN", "THEN", "TIME", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TINYBLOB", "TINYINT", "TINYTEXT", "TO", "TRAILING", "TRANSACTION", "TRIGGER", "TRIGGERS", "TRUE", "TRUNCATE", "TYPE", "TYPES", "UNCOMMITTED", "UNDEFINED", "UNDO", "UNDOFILE", "UNDO_BUFFER_SIZE", "UNICODE", "UNINSTALL", "UNION", "UNIQUE", "UNKNOWN", "UNLOCK", "UNSIGNED", "UNTIL", "UPDATE", "UPGRADE", "USAGE", "USE", "USER", "USER_RESOURCES", "USE_FRM", "USING", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "VALIDATION", "VALUE", "VALUES", "VARBINARY", "VARCHAR", "VARCHARACTER", "VARIABLES", "VARYING", "VIEW", "VIRTUAL", "WAIT", "WARNINGS", "WEEK", "WEIGHT_STRING", "WHEN", "WHERE", "WHILE", "WITH", "WITHOUT", "WORK", "WRAPPER", "WRITE", "X509", "XA", "XID", "XML", "XOR", "YEAR", "YEAR_MONTH", "ZEROFILL"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["ABS", "ACOS", "ADDDATE", "ADDTIME", "AES_DECRYPT", "AES_ENCRYPT", "ANY_VALUE", "Area", "AsBinary", "AsWKB", "ASCII", "ASIN", "AsText", "AsWKT", "ASYMMETRIC_DECRYPT", "ASYMMETRIC_DERIVE", "ASYMMETRIC_ENCRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_VERIFY", "ATAN", "ATAN2", "ATAN", "AVG", "BENCHMARK", "BIN", "BIT_AND", "BIT_COUNT", "BIT_LENGTH", "BIT_OR", "BIT_XOR", "Buffer", "CAST", "CEIL", "CEILING", "Centroid", "CHAR", "CHAR_LENGTH", "CHARACTER_LENGTH", "CHARSET", "COALESCE", "COERCIBILITY", "COLLATION", "COMPRESS", "CONCAT", "CONCAT_WS", "CONNECTION_ID", "Contains", "CONV", "CONVERT", "CONVERT_TZ", "ConvexHull", "COS", "COT", "COUNT", "CRC32", "CREATE_ASYMMETRIC_PRIV_KEY", "CREATE_ASYMMETRIC_PUB_KEY", "CREATE_DH_PARAMETERS", "CREATE_DIGEST", "Crosses", "CURDATE", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURTIME", "DATABASE", "DATE", "DATE_ADD", "DATE_FORMAT", "DATE_SUB", "DATEDIFF", "DAY", "DAYNAME", "DAYOFMONTH", "DAYOFWEEK", "DAYOFYEAR", "DECODE", "DEFAULT", "DEGREES", "DES_DECRYPT", "DES_ENCRYPT", "Dimension", "Disjoint", "Distance", "ELT", "ENCODE", "ENCRYPT", "EndPoint", "Envelope", "Equals", "EXP", "EXPORT_SET", "ExteriorRing", "EXTRACT", "ExtractValue", "FIELD", "FIND_IN_SET", "FLOOR", "FORMAT", "FOUND_ROWS", "FROM_BASE64", "FROM_DAYS", "FROM_UNIXTIME", "GeomCollFromText", "GeometryCollectionFromText", "GeomCollFromWKB", "GeometryCollectionFromWKB", "GeometryCollection", "GeometryN", "GeometryType", "GeomFromText", "GeometryFromText", "GeomFromWKB", "GeometryFromWKB", "GET_FORMAT", "GET_LOCK", "GLength", "GREATEST", "GROUP_CONCAT", "GTID_SUBSET", "GTID_SUBTRACT", "HEX", "HOUR", "IF", "IFNULL", "INET_ATON", "INET_NTOA", "INET6_ATON", "INET6_NTOA", "INSERT", "INSTR", "InteriorRingN", "Intersects", "INTERVAL", "IS_FREE_LOCK", "IS_IPV4", "IS_IPV4_COMPAT", "IS_IPV4_MAPPED", "IS_IPV6", "IS_USED_LOCK", "IsClosed", "IsEmpty", "ISNULL", "IsSimple", "JSON_APPEND", "JSON_ARRAY", "JSON_ARRAY_APPEND", "JSON_ARRAY_INSERT", "JSON_CONTAINS", "JSON_CONTAINS_PATH", "JSON_DEPTH", "JSON_EXTRACT", "JSON_INSERT", "JSON_KEYS", "JSON_LENGTH", "JSON_MERGE", "JSON_MERGE_PRESERVE", "JSON_OBJECT", "JSON_QUOTE", "JSON_REMOVE", "JSON_REPLACE", "JSON_SEARCH", "JSON_SET", "JSON_TYPE", "JSON_UNQUOTE", "JSON_VALID", "LAST_INSERT_ID", "LCASE", "LEAST", "LEFT", "LENGTH", "LineFromText", "LineStringFromText", "LineFromWKB", "LineStringFromWKB", "LineString", "LN", "LOAD_FILE", "LOCALTIME", "LOCALTIMESTAMP", "LOCATE", "LOG", "LOG10", "LOG2", "LOWER", "LPAD", "LTRIM", "MAKE_SET", "MAKEDATE", "MAKETIME", "MASTER_POS_WAIT", "MAX", "MBRContains", "MBRCoveredBy", "MBRCovers", "MBRDisjoint", "MBREqual", "MBREquals", "MBRIntersects", "MBROverlaps", "MBRTouches", "MBRWithin", "MD5", "MICROSECOND", "MID", "MIN", "MINUTE", "MLineFromText", "MultiLineStringFromText", "MLineFromWKB", "MultiLineStringFromWKB", "MOD", "MONTH", "MONTHNAME", "MPointFromText", "MultiPointFromText", "MPointFromWKB", "MultiPointFromWKB", "MPolyFromText", "MultiPolygonFromText", "MPolyFromWKB", "MultiPolygonFromWKB", "MultiLineString", "MultiPoint", "MultiPolygon", "NAME_CONST", "NOT IN", "NOW", "NULLIF", "NumGeometries", "NumInteriorRings", "NumPoints", "OCT", "OCTET_LENGTH", "OLD_PASSWORD", "ORD", "Overlaps", "PASSWORD", "PERIOD_ADD", "PERIOD_DIFF", "PI", "Point", "PointFromText", "PointFromWKB", "PointN", "PolyFromText", "PolygonFromText", "PolyFromWKB", "PolygonFromWKB", "Polygon", "POSITION", "POW", "POWER", "PROCEDURE ANALYSE", "QUARTER", "QUOTE", "RADIANS", "RAND", "RANDOM_BYTES", "RELEASE_ALL_LOCKS", "RELEASE_LOCK", "REPEAT", "REPLACE", "REVERSE", "RIGHT", "ROUND", "ROW_COUNT", "RPAD", "RTRIM", "SCHEMA", "SEC_TO_TIME", "SECOND", "SESSION_USER", "SHA1", "SHA", "SHA2", "SIGN", "SIN", "SLEEP", "SOUNDEX", "SPACE", "SQRT", "SRID", "ST_Area", "ST_AsBinary", "ST_AsWKB", "ST_AsGeoJSON", "ST_AsText", "ST_AsWKT", "ST_Buffer", "ST_Buffer_Strategy", "ST_Centroid", "ST_Contains", "ST_ConvexHull", "ST_Crosses", "ST_Difference", "ST_Dimension", "ST_Disjoint", "ST_Distance", "ST_Distance_Sphere", "ST_EndPoint", "ST_Envelope", "ST_Equals", "ST_ExteriorRing", "ST_GeoHash", "ST_GeomCollFromText", "ST_GeometryCollectionFromText", "ST_GeomCollFromTxt", "ST_GeomCollFromWKB", "ST_GeometryCollectionFromWKB", "ST_GeometryN", "ST_GeometryType", "ST_GeomFromGeoJSON", "ST_GeomFromText", "ST_GeometryFromText", "ST_GeomFromWKB", "ST_GeometryFromWKB", "ST_InteriorRingN", "ST_Intersection", "ST_Intersects", "ST_IsClosed", "ST_IsEmpty", "ST_IsSimple", "ST_IsValid", "ST_LatFromGeoHash", "ST_Length", "ST_LineFromText", "ST_LineStringFromText", "ST_LineFromWKB", "ST_LineStringFromWKB", "ST_LongFromGeoHash", "ST_MakeEnvelope", "ST_MLineFromText", "ST_MultiLineStringFromText", "ST_MLineFromWKB", "ST_MultiLineStringFromWKB", "ST_MPointFromText", "ST_MultiPointFromText", "ST_MPointFromWKB", "ST_MultiPointFromWKB", "ST_MPolyFromText", "ST_MultiPolygonFromText", "ST_MPolyFromWKB", "ST_MultiPolygonFromWKB", "ST_NumGeometries", "ST_NumInteriorRing", "ST_NumInteriorRings", "ST_NumPoints", "ST_Overlaps", "ST_PointFromGeoHash", "ST_PointFromText", "ST_PointFromWKB", "ST_PointN", "ST_PolyFromText", "ST_PolygonFromText", "ST_PolyFromWKB", "ST_PolygonFromWKB", "ST_Simplify", "ST_SRID", "ST_StartPoint", "ST_SymDifference", "ST_Touches", "ST_Union", "ST_Validate", "ST_Within", "ST_X", "ST_Y", "StartPoint", "STD", "STDDEV", "STDDEV_POP", "STDDEV_SAMP", "STR_TO_DATE", "STRCMP", "SUBDATE", "SUBSTR", "SUBSTRING", "SUBSTRING_INDEX", "SUBTIME", "SUM", "SYSDATE", "SYSTEM_USER", "TAN", "TIME", "TIME_FORMAT", "TIME_TO_SEC", "TIMEDIFF", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TO_BASE64", "TO_DAYS", "TO_SECONDS", "Touches", "TRIM", "TRUNCATE", "UCASE", "UNCOMPRESS", "UNCOMPRESSED_LENGTH", "UNHEX", "UNIX_TIMESTAMP", "UpdateXML", "UPPER", "USER", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "UUID", "UUID_SHORT", "VALIDATE_PASSWORD_STRENGTH", "VALUES", "VAR_POP", "VAR_SAMP", "VARIANCE", "VERSION", "WAIT_FOR_EXECUTED_GTID_SET", "WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS", "WEEK", "WEEKDAY", "WEEKOFYEAR", "WEIGHT_STRING", "Within", "X", "Y", "YEAR", "YEARWEEK"], builtinVariables: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/#+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}], [/"/, {token: "string.double", next: "@stringDouble"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], stringDouble: [[/[^"]+/, "string.double"], [/""/, "string.double"], [/"/, {token: "string.double", next: "@pop"}]], complexIdentifiers: [[/`/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^`]+/, "identifier"], [/``/, "identifier"], [/`/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; + var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["ACCESSIBLE", "ACCOUNT", "ACTION", "ADD", "AFTER", "AGAINST", "AGGREGATE", "ALGORITHM", "ALL", "ALTER", "ALWAYS", "ANALYSE", "ANALYZE", "AND", "ANY", "AS", "ASC", "ASCII", "ASENSITIVE", "AT", "AUTOEXTEND_SIZE", "AUTO_INCREMENT", "AVG", "AVG_ROW_LENGTH", "BACKUP", "BEFORE", "BEGIN", "BETWEEN", "BIGINT", "BINARY", "BINLOG", "BIT", "BLOB", "BLOCK", "BOOL", "BOOLEAN", "BOTH", "BTREE", "BY", "BYTE", "CACHE", "CALL", "CASCADE", "CASCADED", "CASE", "CATALOG_NAME", "CHAIN", "CHANGE", "CHANGED", "CHANNEL", "CHAR", "CHARACTER", "CHARSET", "CHECK", "CHECKSUM", "CIPHER", "CLASS_ORIGIN", "CLIENT", "CLOSE", "COALESCE", "CODE", "COLLATE", "COLLATION", "COLUMN", "COLUMNS", "COLUMN_FORMAT", "COLUMN_NAME", "COMMENT", "COMMIT", "COMMITTED", "COMPACT", "COMPLETION", "COMPRESSED", "COMPRESSION", "CONCURRENT", "CONDITION", "CONNECTION", "CONSISTENT", "CONSTRAINT", "CONSTRAINT_CATALOG", "CONSTRAINT_NAME", "CONSTRAINT_SCHEMA", "CONTAINS", "CONTEXT", "CONTINUE", "CONVERT", "CPU", "CREATE", "CROSS", "CUBE", "CURRENT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURSOR", "CURSOR_NAME", "DATA", "DATABASE", "DATABASES", "DATAFILE", "DATE", "DATETIME", "DAY", "DAY_HOUR", "DAY_MICROSECOND", "DAY_MINUTE", "DAY_SECOND", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULT_AUTH", "DEFINER", "DELAYED", "DELAY_KEY_WRITE", "DELETE", "DESC", "DESCRIBE", "DES_KEY_FILE", "DETERMINISTIC", "DIAGNOSTICS", "DIRECTORY", "DISABLE", "DISCARD", "DISK", "DISTINCT", "DISTINCTROW", "DIV", "DO", "DOUBLE", "DROP", "DUAL", "DUMPFILE", "DUPLICATE", "DYNAMIC", "EACH", "ELSE", "ELSEIF", "ENABLE", "ENCLOSED", "ENCRYPTION", "END", "ENDS", "ENGINE", "ENGINES", "ENUM", "ERROR", "ERRORS", "ESCAPE", "ESCAPED", "EVENT", "EVENTS", "EVERY", "EXCHANGE", "EXECUTE", "EXISTS", "EXIT", "EXPANSION", "EXPIRE", "EXPLAIN", "EXPORT", "EXTENDED", "EXTENT_SIZE", "FALSE", "FAST", "FAULTS", "FETCH", "FIELDS", "FILE", "FILE_BLOCK_SIZE", "FILTER", "FIRST", "FIXED", "FLOAT", "FLOAT4", "FLOAT8", "FLUSH", "FOLLOWS", "FOR", "FORCE", "FOREIGN", "FORMAT", "FOUND", "FROM", "FULL", "FULLTEXT", "FUNCTION", "GENERAL", "GENERATED", "GEOMETRY", "GEOMETRYCOLLECTION", "GET", "GET_FORMAT", "GLOBAL", "GRANT", "GRANTS", "GROUP", "GROUP_REPLICATION", "HANDLER", "HASH", "HAVING", "HELP", "HIGH_PRIORITY", "HOST", "HOSTS", "HOUR", "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_SECOND", "IDENTIFIED", "IF", "IGNORE", "IGNORE_SERVER_IDS", "IMPORT", "INDEX", "INDEXES", "INFILE", "INITIAL_SIZE", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INSERT_METHOD", "INSTALL", "INSTANCE", "INT", "INT1", "INT2", "INT3", "INT4", "INT8", "INTEGER", "INTERVAL", "INTO", "INVOKER", "IO", "IO_AFTER_GTIDS", "IO_BEFORE_GTIDS", "IO_THREAD", "IPC", "ISOLATION", "ISSUER", "ITERATE", "JOIN", "JSON", "KEY", "KEYS", "KEY_BLOCK_SIZE", "KILL", "LANGUAGE", "LAST", "LEADING", "LEAVE", "LEAVES", "LEFT", "LESS", "LEVEL", "LIKE", "LIMIT", "LINEAR", "LINES", "LINESTRING", "LIST", "LOAD", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP", "LOCK", "LOCKS", "LOGFILE", "LOGS", "LONG", "LONGBLOB", "LONGTEXT", "LOOP", "LOW_PRIORITY", "MASTER", "MASTER_AUTO_POSITION", "MASTER_BIND", "MASTER_CONNECT_RETRY", "MASTER_DELAY", "MASTER_HEARTBEAT_PERIOD", "MASTER_HOST", "MASTER_LOG_FILE", "MASTER_LOG_POS", "MASTER_PASSWORD", "MASTER_PORT", "MASTER_RETRY_COUNT", "MASTER_SERVER_ID", "MASTER_SSL", "MASTER_SSL_CA", "MASTER_SSL_CAPATH", "MASTER_SSL_CERT", "MASTER_SSL_CIPHER", "MASTER_SSL_CRL", "MASTER_SSL_CRLPATH", "MASTER_SSL_KEY", "MASTER_SSL_VERIFY_SERVER_CERT", "MASTER_TLS_VERSION", "MASTER_USER", "MATCH", "MAXVALUE", "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", "MAX_SIZE", "MAX_STATEMENT_TIME", "MAX_UPDATES_PER_HOUR", "MAX_USER_CONNECTIONS", "MEDIUM", "MEDIUMBLOB", "MEDIUMINT", "MEDIUMTEXT", "MEMORY", "MERGE", "MESSAGE_TEXT", "MICROSECOND", "MIDDLEINT", "MIGRATE", "MINUTE", "MINUTE_MICROSECOND", "MINUTE_SECOND", "MIN_ROWS", "MOD", "MODE", "MODIFIES", "MODIFY", "MONTH", "MULTILINESTRING", "MULTIPOINT", "MULTIPOLYGON", "MUTEX", "MYSQL_ERRNO", "NAME", "NAMES", "NATIONAL", "NATURAL", "NCHAR", "NDB", "NDBCLUSTER", "NEVER", "NEW", "NEXT", "NO", "NODEGROUP", "NONBLOCKING", "NONE", "NO_WAIT", "NO_WRITE_TO_BINLOG", "NUMBER", "NUMERIC", "NVARCHAR", "OFFSET", "OLD_PASSWORD", "ON", "ONE", "ONLY", "OPEN", "OPTIMIZE", "OPTIMIZER_COSTS", "OPTION", "OPTIONALLY", "OPTIONS", "OR", "ORDER", "OUT", "OUTER", "OUTFILE", "OWNER", "PACK_KEYS", "PAGE", "PARSER", "PARSE_GCOL_EXPR", "PARTIAL", "PARTITION", "PARTITIONING", "PARTITIONS", "PASSWORD", "PHASE", "PLUGIN", "PLUGINS", "PLUGIN_DIR", "POINT", "POLYGON", "PORT", "PRECEDES", "PRECISION", "PREPARE", "PRESERVE", "PREV", "PRIMARY", "PRIVILEGES", "PROCEDURE", "PROCESSLIST", "PROFILE", "PROFILES", "PROXY", "PURGE", "QUARTER", "QUERY", "QUICK", "RANGE", "READ", "READS", "READ_ONLY", "READ_WRITE", "REAL", "REBUILD", "RECOVER", "REDOFILE", "REDO_BUFFER_SIZE", "REDUNDANT", "REFERENCES", "REGEXP", "RELAY", "RELAYLOG", "RELAY_LOG_FILE", "RELAY_LOG_POS", "RELAY_THREAD", "RELEASE", "RELOAD", "REMOVE", "RENAME", "REORGANIZE", "REPAIR", "REPEAT", "REPEATABLE", "REPLACE", "REPLICATE_DO_DB", "REPLICATE_DO_TABLE", "REPLICATE_IGNORE_DB", "REPLICATE_IGNORE_TABLE", "REPLICATE_REWRITE_DB", "REPLICATE_WILD_DO_TABLE", "REPLICATE_WILD_IGNORE_TABLE", "REPLICATION", "REQUIRE", "RESET", "RESIGNAL", "RESTORE", "RESTRICT", "RESUME", "RETURN", "RETURNED_SQLSTATE", "RETURNS", "REVERSE", "REVOKE", "RIGHT", "RLIKE", "ROLLBACK", "ROLLUP", "ROTATE", "ROUTINE", "ROW", "ROWS", "ROW_COUNT", "ROW_FORMAT", "RTREE", "SAVEPOINT", "SCHEDULE", "SCHEMA", "SCHEMAS", "SCHEMA_NAME", "SECOND", "SECOND_MICROSECOND", "SECURITY", "SELECT", "SENSITIVE", "SEPARATOR", "SERIAL", "SERIALIZABLE", "SERVER", "SESSION", "SET", "SHARE", "SHOW", "SHUTDOWN", "SIGNAL", "SIGNED", "SIMPLE", "SLAVE", "SLOW", "SMALLINT", "SNAPSHOT", "SOCKET", "SOME", "SONAME", "SOUNDS", "SOURCE", "SPATIAL", "SPECIFIC", "SQL", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQL_AFTER_GTIDS", "SQL_AFTER_MTS_GAPS", "SQL_BEFORE_GTIDS", "SQL_BIG_RESULT", "SQL_BUFFER_RESULT", "SQL_CACHE", "SQL_CALC_FOUND_ROWS", "SQL_NO_CACHE", "SQL_SMALL_RESULT", "SQL_THREAD", "SQL_TSI_DAY", "SQL_TSI_HOUR", "SQL_TSI_MINUTE", "SQL_TSI_MONTH", "SQL_TSI_QUARTER", "SQL_TSI_SECOND", "SQL_TSI_WEEK", "SQL_TSI_YEAR", "SSL", "STACKED", "START", "STARTING", "STARTS", "STATS_AUTO_RECALC", "STATS_PERSISTENT", "STATS_SAMPLE_PAGES", "STATUS", "STOP", "STORAGE", "STORED", "STRAIGHT_JOIN", "STRING", "SUBCLASS_ORIGIN", "SUBJECT", "SUBPARTITION", "SUBPARTITIONS", "SUPER", "SUSPEND", "SWAPS", "SWITCHES", "TABLE", "TABLES", "TABLESPACE", "TABLE_CHECKSUM", "TABLE_NAME", "TEMPORARY", "TEMPTABLE", "TERMINATED", "TEXT", "THAN", "THEN", "TIME", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TINYBLOB", "TINYINT", "TINYTEXT", "TO", "TRAILING", "TRANSACTION", "TRIGGER", "TRIGGERS", "TRUE", "TRUNCATE", "TYPE", "TYPES", "UNCOMMITTED", "UNDEFINED", "UNDO", "UNDOFILE", "UNDO_BUFFER_SIZE", "UNICODE", "UNINSTALL", "UNION", "UNIQUE", "UNKNOWN", "UNLOCK", "UNSIGNED", "UNTIL", "UPDATE", "UPGRADE", "USAGE", "USE", "USER", "USER_RESOURCES", "USE_FRM", "USING", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "VALIDATION", "VALUE", "VALUES", "VARBINARY", "VARCHAR", "VARCHARACTER", "VARIABLES", "VARYING", "VIEW", "VIRTUAL", "WAIT", "WARNINGS", "WEEK", "WEIGHT_STRING", "WHEN", "WHERE", "WHILE", "WITH", "WITHOUT", "WORK", "WRAPPER", "WRITE", "X509", "XA", "XID", "XML", "XOR", "YEAR", "YEAR_MONTH", "ZEROFILL"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["ABS", "ACOS", "ADDDATE", "ADDTIME", "AES_DECRYPT", "AES_ENCRYPT", "ANY_VALUE", "Area", "AsBinary", "AsWKB", "ASCII", "ASIN", "AsText", "AsWKT", "ASYMMETRIC_DECRYPT", "ASYMMETRIC_DERIVE", "ASYMMETRIC_ENCRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_VERIFY", "ATAN", "ATAN2", "ATAN", "AVG", "BENCHMARK", "BIN", "BIT_AND", "BIT_COUNT", "BIT_LENGTH", "BIT_OR", "BIT_XOR", "Buffer", "CAST", "CEIL", "CEILING", "Centroid", "CHAR", "CHAR_LENGTH", "CHARACTER_LENGTH", "CHARSET", "COALESCE", "COERCIBILITY", "COLLATION", "COMPRESS", "CONCAT", "CONCAT_WS", "CONNECTION_ID", "Contains", "CONV", "CONVERT", "CONVERT_TZ", "ConvexHull", "COS", "COT", "COUNT", "CRC32", "CREATE_ASYMMETRIC_PRIV_KEY", "CREATE_ASYMMETRIC_PUB_KEY", "CREATE_DH_PARAMETERS", "CREATE_DIGEST", "Crosses", "CURDATE", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURTIME", "DATABASE", "DATE", "DATE_ADD", "DATE_FORMAT", "DATE_SUB", "DATEDIFF", "DAY", "DAYNAME", "DAYOFMONTH", "DAYOFWEEK", "DAYOFYEAR", "DECODE", "DEFAULT", "DEGREES", "DES_DECRYPT", "DES_ENCRYPT", "Dimension", "Disjoint", "Distance", "ELT", "ENCODE", "ENCRYPT", "EndPoint", "Envelope", "Equals", "EXP", "EXPORT_SET", "ExteriorRing", "EXTRACT", "ExtractValue", "FIELD", "FIND_IN_SET", "FLOOR", "FORMAT", "FOUND_ROWS", "FROM_BASE64", "FROM_DAYS", "FROM_UNIXTIME", "GeomCollFromText", "GeometryCollectionFromText", "GeomCollFromWKB", "GeometryCollectionFromWKB", "GeometryCollection", "GeometryN", "GeometryType", "GeomFromText", "GeometryFromText", "GeomFromWKB", "GeometryFromWKB", "GET_FORMAT", "GET_LOCK", "GLength", "GREATEST", "GROUP_CONCAT", "GTID_SUBSET", "GTID_SUBTRACT", "HEX", "HOUR", "IF", "IFNULL", "INET_ATON", "INET_NTOA", "INET6_ATON", "INET6_NTOA", "INSERT", "INSTR", "InteriorRingN", "Intersects", "INTERVAL", "IS_FREE_LOCK", "IS_IPV4", "IS_IPV4_COMPAT", "IS_IPV4_MAPPED", "IS_IPV6", "IS_USED_LOCK", "IsClosed", "IsEmpty", "ISNULL", "IsSimple", "JSON_APPEND", "JSON_ARRAY", "JSON_ARRAY_APPEND", "JSON_ARRAY_INSERT", "JSON_CONTAINS", "JSON_CONTAINS_PATH", "JSON_DEPTH", "JSON_EXTRACT", "JSON_INSERT", "JSON_KEYS", "JSON_LENGTH", "JSON_MERGE", "JSON_MERGE_PRESERVE", "JSON_OBJECT", "JSON_QUOTE", "JSON_REMOVE", "JSON_REPLACE", "JSON_SEARCH", "JSON_SET", "JSON_TYPE", "JSON_UNQUOTE", "JSON_VALID", "LAST_INSERT_ID", "LCASE", "LEAST", "LEFT", "LENGTH", "LineFromText", "LineStringFromText", "LineFromWKB", "LineStringFromWKB", "LineString", "LN", "LOAD_FILE", "LOCALTIME", "LOCALTIMESTAMP", "LOCATE", "LOG", "LOG10", "LOG2", "LOWER", "LPAD", "LTRIM", "MAKE_SET", "MAKEDATE", "MAKETIME", "MASTER_POS_WAIT", "MAX", "MBRContains", "MBRCoveredBy", "MBRCovers", "MBRDisjoint", "MBREqual", "MBREquals", "MBRIntersects", "MBROverlaps", "MBRTouches", "MBRWithin", "MD5", "MICROSECOND", "MID", "MIN", "MINUTE", "MLineFromText", "MultiLineStringFromText", "MLineFromWKB", "MultiLineStringFromWKB", "MOD", "MONTH", "MONTHNAME", "MPointFromText", "MultiPointFromText", "MPointFromWKB", "MultiPointFromWKB", "MPolyFromText", "MultiPolygonFromText", "MPolyFromWKB", "MultiPolygonFromWKB", "MultiLineString", "MultiPoint", "MultiPolygon", "NAME_CONST", "NOT IN", "NOW", "NULLIF", "NumGeometries", "NumInteriorRings", "NumPoints", "OCT", "OCTET_LENGTH", "OLD_PASSWORD", "ORD", "Overlaps", "PASSWORD", "PERIOD_ADD", "PERIOD_DIFF", "PI", "Point", "PointFromText", "PointFromWKB", "PointN", "PolyFromText", "PolygonFromText", "PolyFromWKB", "PolygonFromWKB", "Polygon", "POSITION", "POW", "POWER", "PROCEDURE ANALYSE", "QUARTER", "QUOTE", "RADIANS", "RAND", "RANDOM_BYTES", "RELEASE_ALL_LOCKS", "RELEASE_LOCK", "REPEAT", "REPLACE", "REVERSE", "RIGHT", "ROUND", "ROW_COUNT", "RPAD", "RTRIM", "SCHEMA", "SEC_TO_TIME", "SECOND", "SESSION_USER", "SHA1", "SHA", "SHA2", "SIGN", "SIN", "SLEEP", "SOUNDEX", "SPACE", "SQRT", "SRID", "ST_Area", "ST_AsBinary", "ST_AsWKB", "ST_AsGeoJSON", "ST_AsText", "ST_AsWKT", "ST_Buffer", "ST_Buffer_Strategy", "ST_Centroid", "ST_Contains", "ST_ConvexHull", "ST_Crosses", "ST_Difference", "ST_Dimension", "ST_Disjoint", "ST_Distance", "ST_Distance_Sphere", "ST_EndPoint", "ST_Envelope", "ST_Equals", "ST_ExteriorRing", "ST_GeoHash", "ST_GeomCollFromText", "ST_GeometryCollectionFromText", "ST_GeomCollFromTxt", "ST_GeomCollFromWKB", "ST_GeometryCollectionFromWKB", "ST_GeometryN", "ST_GeometryType", "ST_GeomFromGeoJSON", "ST_GeomFromText", "ST_GeometryFromText", "ST_GeomFromWKB", "ST_GeometryFromWKB", "ST_InteriorRingN", "ST_Intersection", "ST_Intersects", "ST_IsClosed", "ST_IsEmpty", "ST_IsSimple", "ST_IsValid", "ST_LatFromGeoHash", "ST_Length", "ST_LineFromText", "ST_LineStringFromText", "ST_LineFromWKB", "ST_LineStringFromWKB", "ST_LongFromGeoHash", "ST_MakeEnvelope", "ST_MLineFromText", "ST_MultiLineStringFromText", "ST_MLineFromWKB", "ST_MultiLineStringFromWKB", "ST_MPointFromText", "ST_MultiPointFromText", "ST_MPointFromWKB", "ST_MultiPointFromWKB", "ST_MPolyFromText", "ST_MultiPolygonFromText", "ST_MPolyFromWKB", "ST_MultiPolygonFromWKB", "ST_NumGeometries", "ST_NumInteriorRing", "ST_NumInteriorRings", "ST_NumPoints", "ST_Overlaps", "ST_PointFromGeoHash", "ST_PointFromText", "ST_PointFromWKB", "ST_PointN", "ST_PolyFromText", "ST_PolygonFromText", "ST_PolyFromWKB", "ST_PolygonFromWKB", "ST_Simplify", "ST_SRID", "ST_StartPoint", "ST_SymDifference", "ST_Touches", "ST_Union", "ST_Validate", "ST_Within", "ST_X", "ST_Y", "StartPoint", "STD", "STDDEV", "STDDEV_POP", "STDDEV_SAMP", "STR_TO_DATE", "STRCMP", "SUBDATE", "SUBSTR", "SUBSTRING", "SUBSTRING_INDEX", "SUBTIME", "SUM", "SYSDATE", "SYSTEM_USER", "TAN", "TIME", "TIME_FORMAT", "TIME_TO_SEC", "TIMEDIFF", "TIMESTAMP", "TIMESTAMPADD", "TIMESTAMPDIFF", "TO_BASE64", "TO_DAYS", "TO_SECONDS", "Touches", "TRIM", "TRUNCATE", "UCASE", "UNCOMPRESS", "UNCOMPRESSED_LENGTH", "UNHEX", "UNIX_TIMESTAMP", "UpdateXML", "UPPER", "USER", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "UUID", "UUID_SHORT", "VALIDATE_PASSWORD_STRENGTH", "VALUES", "VAR_POP", "VAR_SAMP", "VARIANCE", "VERSION", "WAIT_FOR_EXECUTED_GTID_SET", "WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS", "WEEK", "WEEKDAY", "WEEKOFYEAR", "WEIGHT_STRING", "Within", "X", "Y", "YEAR", "YEARWEEK"], builtinVariables: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/#+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}], [/"/, {token: "string.double", next: "@stringDouble"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], stringDouble: [[/[^"]+/, "string.double"], [/""/, "string.double"], [/"/, {token: "string.double", next: "@pop"}]], complexIdentifiers: [[/`/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^`]+/, "identifier"], [/``/, "identifier"], [/`/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".objective-c", keywords: ["#import", "#include", "#define", "#else", "#endif", "#if", "#ifdef", "#ifndef", "#ident", "#undef", "@class", "@defs", "@dynamic", "@encode", "@end", "@implementation", "@interface", "@package", "@private", "@protected", "@property", "@protocol", "@public", "@selector", "@synthesize", "__declspec", "assign", "auto", "BOOL", "break", "bycopy", "byref", "case", "char", "Class", "const", "copy", "continue", "default", "do", "double", "else", "enum", "extern", "FALSE", "false", "float", "for", "goto", "if", "in", "int", "id", "inout", "IMP", "long", "nil", "nonatomic", "NULL", "oneway", "out", "private", "public", "protected", "readwrite", "readonly", "register", "return", "SEL", "self", "short", "signed", "sizeof", "static", "struct", "super", "switch", "typedef", "TRUE", "true", "union", "unsigned", "volatile", "void", "while"], decpart: /\d(_?\d)*/, decimal: /0|@decpart/, tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, [/[,:;]/, "delimiter"], [/[{}\[\]()<>]/, "@brackets"], [/[a-zA-Z@#]\w*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}], [/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], numbers: [[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"], [/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/, {cases: {"(\\d)*": "number", $0: "number.float"}}]], strings: [[/'$/, "string.escape", "@popall"], [/'/, "string.escape", "@stringBody"], [/"$/, "string.escape", "@popall"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/[^\\']+$/, "string", "@popall"], [/[^\\']+/, "string"], [/\\./, "string"], [/'/, "string.escape", "@popall"], [/\\$/, "string"]], dblStringBody: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string"], [/"/, "string.escape", "@popall"], [/\\$/, "string"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".objective-c", keywords: ["#import", "#include", "#define", "#else", "#endif", "#if", "#ifdef", "#ifndef", "#ident", "#undef", "@class", "@defs", "@dynamic", "@encode", "@end", "@implementation", "@interface", "@package", "@private", "@protected", "@property", "@protocol", "@public", "@selector", "@synthesize", "__declspec", "assign", "auto", "BOOL", "break", "bycopy", "byref", "case", "char", "Class", "const", "copy", "continue", "default", "do", "double", "else", "enum", "extern", "FALSE", "false", "float", "for", "goto", "if", "in", "int", "id", "inout", "IMP", "long", "nil", "nonatomic", "NULL", "oneway", "out", "private", "public", "protected", "readwrite", "readonly", "register", "return", "SEL", "self", "short", "signed", "sizeof", "static", "struct", "super", "switch", "typedef", "TRUE", "true", "union", "unsigned", "volatile", "void", "while"], decpart: /\d(_?\d)*/, decimal: /0|@decpart/, tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, [/[,:;]/, "delimiter"], [/[{}\[\]()<>]/, "@brackets"], [/[a-zA-Z@#]\w*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}], [/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], numbers: [[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"], [/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/, {cases: {"(\\d)*": "number", $0: "number.float"}}]], strings: [[/'$/, "string.escape", "@popall"], [/'/, "string.escape", "@stringBody"], [/"$/, "string.escape", "@popall"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/[^\\']+$/, "string", "@popall"], [/[^\\']+/, "string"], [/\\./, "string"], [/'/, "string.escape", "@popall"], [/\\$/, "string"]], dblStringBody: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string"], [/"/, "string.escape", "@popall"], [/\\$/, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["{", "}"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"), end: new RegExp("^\\s*\\{\\$ENDREGION\\}")}}}, o = {defaultToken: "", tokenPostfix: ".pascal", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["absolute", "abstract", "all", "and_then", "array", "as", "asm", "attribute", "begin", "bindable", "case", "class", "const", "contains", "default", "div", "else", "end", "except", "exports", "external", "far", "file", "finalization", "finally", "forward", "generic", "goto", "if", "implements", "import", "in", "index", "inherited", "initialization", "interrupt", "is", "label", "library", "mod", "module", "name", "near", "not", "object", "of", "on", "only", "operator", "or_else", "otherwise", "override", "package", "packed", "pow", "private", "program", "protected", "public", "published", "interface", "implementation", "qualified", "read", "record", "resident", "requires", "resourcestring", "restricted", "segment", "set", "shl", "shr", "specialize", "stored", "then", "threadvar", "to", "try", "type", "unit", "uses", "var", "view", "virtual", "dynamic", "overload", "reintroduce", "with", "write", "xor", "true", "false", "procedure", "function", "constructor", "destructor", "property", "break", "continue", "exit", "abort", "while", "do", "for", "raise", "repeat", "until"], typeKeywords: ["boolean", "double", "byte", "integer", "shortint", "char", "longint", "float", "string"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "or", "+", "-", "*", "/", "@", "&", "^", "%"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\*\}]+/, "comment"], [/\}/, "comment", "@pop"], [/[\{]/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\{/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["{", "}"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"), end: new RegExp("^\\s*\\{\\$ENDREGION\\}")}}}, r = {defaultToken: "", tokenPostfix: ".pascal", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["absolute", "abstract", "all", "and_then", "array", "as", "asm", "attribute", "begin", "bindable", "case", "class", "const", "contains", "default", "div", "else", "end", "except", "exports", "external", "far", "file", "finalization", "finally", "forward", "generic", "goto", "if", "implements", "import", "in", "index", "inherited", "initialization", "interrupt", "is", "label", "library", "mod", "module", "name", "near", "not", "object", "of", "on", "only", "operator", "or_else", "otherwise", "override", "package", "packed", "pow", "private", "program", "protected", "public", "published", "interface", "implementation", "qualified", "read", "record", "resident", "requires", "resourcestring", "restricted", "segment", "set", "shl", "shr", "specialize", "stored", "then", "threadvar", "to", "try", "type", "unit", "uses", "var", "view", "virtual", "dynamic", "overload", "reintroduce", "with", "write", "xor", "true", "false", "procedure", "function", "constructor", "destructor", "property", "break", "continue", "exit", "abort", "while", "do", "for", "raise", "repeat", "until"], typeKeywords: ["boolean", "double", "byte", "integer", "shortint", "char", "longint", "float", "string"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "or", "+", "-", "*", "/", "@", "&", "^", "%"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\*\}]+/, "comment"], [/\}/, "comment", "@pop"], [/[\{]/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\{/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".pascaligo", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["begin", "block", "case", "const", "else", "end", "fail", "for", "from", "function", "if", "is", "nil", "of", "remove", "return", "skip", "then", "type", "var", "while", "with", "option", "None", "transaction"], typeKeywords: ["bool", "int", "list", "map", "nat", "record", "string", "unit", "address", "map", "mtz", "xtz"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "mod", "or", "+", "-", "*", "/", "@", "&", "^", "%"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\(\*]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\(\*/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\(\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">"}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".pascaligo", ignoreCase: true, brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], keywords: ["begin", "block", "case", "const", "else", "end", "fail", "for", "from", "function", "if", "is", "nil", "of", "remove", "return", "skip", "then", "type", "var", "while", "with", "option", "None", "transaction"], typeKeywords: ["bool", "int", "list", "map", "nat", "record", "string", "unit", "address", "map", "mtz", "xtz"], operators: ["=", ">", "<", "<=", ">=", "<>", ":", ":=", "and", "mod", "or", "+", "-", "*", "/", "@", "&", "^", "%"], symbols: /[=><:@\^&|+\-*\/\^%]+/, tokenizer: {root: [[/[a-zA-Z_][\w]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\$[0-9a-fA-F]{1,16}/, "number.hex"], [/\d+/, "number"], [/[;,.]/, "delimiter"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'/, "string", "@string"], [/'[^\\']'/, "string"], [/'/, "string.invalid"], [/\#\d+/, "string"]], comment: [[/[^\(\*]+/, "comment"], [/\*\)/, "comment", "@pop"], [/\(\*/, "comment"]], string: [[/[^\\']+/, "string"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\(\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, o = {defaultToken: "", tokenPostfix: ".perl", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["__DATA__", "else", "lock", "__END__", "elsif", "lt", "__FILE__", "eq", "__LINE__", "exp", "ne", "sub", "__PACKAGE__", "for", "no", "and", "foreach", "or", "unless", "cmp", "ge", "package", "until", "continue", "gt", "while", "CORE", "if", "xor", "do", "le", "__DIE__", "__WARN__"], builtinFunctions: ["-A", "END", "length", "setpgrp", "-B", "endgrent", "link", "setpriority", "-b", "endhostent", "listen", "setprotoent", "-C", "endnetent", "local", "setpwent", "-c", "endprotoent", "localtime", "setservent", "-d", "endpwent", "log", "setsockopt", "-e", "endservent", "lstat", "shift", "-f", "eof", "map", "shmctl", "-g", "eval", "mkdir", "shmget", "-k", "exec", "msgctl", "shmread", "-l", "exists", "msgget", "shmwrite", "-M", "exit", "msgrcv", "shutdown", "-O", "fcntl", "msgsnd", "sin", "-o", "fileno", "my", "sleep", "-p", "flock", "next", "socket", "-r", "fork", "not", "socketpair", "-R", "format", "oct", "sort", "-S", "formline", "open", "splice", "-s", "getc", "opendir", "split", "-T", "getgrent", "ord", "sprintf", "-t", "getgrgid", "our", "sqrt", "-u", "getgrnam", "pack", "srand", "-w", "gethostbyaddr", "pipe", "stat", "-W", "gethostbyname", "pop", "state", "-X", "gethostent", "pos", "study", "-x", "getlogin", "print", "substr", "-z", "getnetbyaddr", "printf", "symlink", "abs", "getnetbyname", "prototype", "syscall", "accept", "getnetent", "push", "sysopen", "alarm", "getpeername", "quotemeta", "sysread", "atan2", "getpgrp", "rand", "sysseek", "AUTOLOAD", "getppid", "read", "system", "BEGIN", "getpriority", "readdir", "syswrite", "bind", "getprotobyname", "readline", "tell", "binmode", "getprotobynumber", "readlink", "telldir", "bless", "getprotoent", "readpipe", "tie", "break", "getpwent", "recv", "tied", "caller", "getpwnam", "redo", "time", "chdir", "getpwuid", "ref", "times", "CHECK", "getservbyname", "rename", "truncate", "chmod", "getservbyport", "require", "uc", "chomp", "getservent", "reset", "ucfirst", "chop", "getsockname", "return", "umask", "chown", "getsockopt", "reverse", "undef", "chr", "glob", "rewinddir", "UNITCHECK", "chroot", "gmtime", "rindex", "unlink", "close", "goto", "rmdir", "unpack", "closedir", "grep", "say", "unshift", "connect", "hex", "scalar", "untie", "cos", "index", "seek", "use", "crypt", "INIT", "seekdir", "utime", "dbmclose", "int", "select", "values", "dbmopen", "ioctl", "semctl", "vec", "defined", "join", "semget", "wait", "delete", "keys", "semop", "waitpid", "DESTROY", "kill", "send", "wantarray", "die", "last", "setgrent", "warn", "dump", "lc", "sethostent", "write", "each", "lcfirst", "setnetent"], builtinFileHandlers: ["ARGV", "STDERR", "STDOUT", "ARGVOUT", "STDIN", "ENV"], builtinVariables: ["$!", "$^RE_TRIE_MAXBUF", "$LAST_REGEXP_CODE_RESULT", '$"', "$^S", "$LIST_SEPARATOR", "$#", "$^T", "$MATCH", "$$", "$^TAINT", "$MULTILINE_MATCHING", "$%", "$^UNICODE", "$NR", "$&", "$^UTF8LOCALE", "$OFMT", "$'", "$^V", "$OFS", "$(", "$^W", "$ORS", "$)", "$^WARNING_BITS", "$OS_ERROR", "$*", "$^WIDE_SYSTEM_CALLS", "$OSNAME", "$+", "$^X", "$OUTPUT_AUTO_FLUSH", "$,", "$_", "$OUTPUT_FIELD_SEPARATOR", "$-", "$`", "$OUTPUT_RECORD_SEPARATOR", "$.", "$a", "$PERL_VERSION", "$/", "$ACCUMULATOR", "$PERLDB", "$0", "$ARG", "$PID", "$:", "$ARGV", "$POSTMATCH", "$;", "$b", "$PREMATCH", "$<", "$BASETIME", "$PROCESS_ID", "$=", "$CHILD_ERROR", "$PROGRAM_NAME", "$>", "$COMPILING", "$REAL_GROUP_ID", "$?", "$DEBUGGING", "$REAL_USER_ID", "$@", "$EFFECTIVE_GROUP_ID", "$RS", "$[", "$EFFECTIVE_USER_ID", "$SUBSCRIPT_SEPARATOR", "$\\", "$EGID", "$SUBSEP", "$]", "$ERRNO", "$SYSTEM_FD_MAX", "$^", "$EUID", "$UID", "$^A", "$EVAL_ERROR", "$WARNING", "$^C", "$EXCEPTIONS_BEING_CAUGHT", "$|", "$^CHILD_ERROR_NATIVE", "$EXECUTABLE_NAME", "$~", "$^D", "$EXTENDED_OS_ERROR", "%!", "$^E", "$FORMAT_FORMFEED", "%^H", "$^ENCODING", "$FORMAT_LINE_BREAK_CHARACTERS", "%ENV", "$^F", "$FORMAT_LINES_LEFT", "%INC", "$^H", "$FORMAT_LINES_PER_PAGE", "%OVERLOAD", "$^I", "$FORMAT_NAME", "%SIG", "$^L", "$FORMAT_PAGE_NUMBER", "@+", "$^M", "$FORMAT_TOP_NAME", "@-", "$^N", "$GID", "@_", "$^O", "$INPLACE_EDIT", "@ARGV", "$^OPEN", "$INPUT_LINE_NUMBER", "@INC", "$^P", "$INPUT_RECORD_SEPARATOR", "@LAST_MATCH_START", "$^R", "$LAST_MATCH_END", "$^RE_DEBUG_FLAGS", "$LAST_PAREN_MATCH"], symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/, quoteLikeOps: ["qr", "m", "s", "q", "qq", "qx", "qw", "tr", "y"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, [/[a-zA-Z\-_][\w\-_]*/, {cases: {"@keywords": "keyword", "@builtinFunctions": "type.identifier", "@builtinFileHandlers": "variable.predefined", "@quoteLikeOps": {token: "@rematch", next: "quotedConstructs"}, "@default": ""}}], [/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/, {cases: {"@builtinVariables": "variable.predefined", "@default": "variable"}}], {include: "@strings"}, {include: "@dblStrings"}, {include: "@perldoc"}, {include: "@heredoc"}, [/[{}\[\]()]/, "@brackets"], [/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, "regexp"], [/@symbols/, "operators"], {include: "@numbers"}, [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"], [/(^#!.*$)/, "metatag"], [/(^#.*$)/, "comment"]], numbers: [[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"]], strings: [[/'/, "string", "@stringBody"]], stringBody: [[/'/, "string", "@popall"], [/\\'/, "string.escape"], [/./, "string"]], dblStrings: [[/"/, "string", "@dblStringBody"]], dblStringBody: [[/"/, "string", "@popall"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], {include: "@variables"}, [/./, "string"]], quotedConstructs: [[/(q|qw|tr|y)\s*\(/, {token: "string.delim", switchTo: "@qstring.(.)"}], [/(q|qw|tr|y)\s*\[/, {token: "string.delim", switchTo: "@qstring.[.]"}], [/(q|qw|tr|y)\s*\{/, {token: "string.delim", switchTo: "@qstring.{.}"}], [/(q|qw|tr|y)\s*</, {token: "string.delim", switchTo: "@qstring.<.>"}], [/(q|qw|tr|y)#/, {token: "string.delim", switchTo: "@qstring.#.#"}], [/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/, {token: "string.delim", switchTo: "@qstring.$2.$2"}], [/(q|qw|tr|y)\s+(\w)/, {token: "string.delim", switchTo: "@qstring.$2.$2"}], [/(qr|m|s)\s*\(/, {token: "regexp.delim", switchTo: "@qregexp.(.)"}], [/(qr|m|s)\s*\[/, {token: "regexp.delim", switchTo: "@qregexp.[.]"}], [/(qr|m|s)\s*\{/, {token: "regexp.delim", switchTo: "@qregexp.{.}"}], [/(qr|m|s)\s*</, {token: "regexp.delim", switchTo: "@qregexp.<.>"}], [/(qr|m|s)#/, {token: "regexp.delim", switchTo: "@qregexp.#.#"}], [/(qr|m|s)\s*([^A-Za-z0-9_#\s])/, {token: "regexp.delim", switchTo: "@qregexp.$2.$2"}], [/(qr|m|s)\s+(\w)/, {token: "regexp.delim", switchTo: "@qregexp.$2.$2"}], [/(qq|qx)\s*\(/, {token: "string.delim", switchTo: "@qqstring.(.)"}], [/(qq|qx)\s*\[/, {token: "string.delim", switchTo: "@qqstring.[.]"}], [/(qq|qx)\s*\{/, {token: "string.delim", switchTo: "@qqstring.{.}"}], [/(qq|qx)\s*</, {token: "string.delim", switchTo: "@qqstring.<.>"}], [/(qq|qx)#/, {token: "string.delim", switchTo: "@qqstring.#.#"}], [/(qq|qx)\s*([^A-Za-z0-9#\s])/, {token: "string.delim", switchTo: "@qqstring.$2.$2"}], [/(qq|qx)\s+(\w)/, {token: "string.delim", switchTo: "@qqstring.$2.$2"}]], qstring: [[/\\./, "string.escape"], [/./, {cases: {"$#==$S3": {token: "string.delim", next: "@pop"}, "$#==$S2": {token: "string.delim", next: "@push"}, "@default": "string"}}]], qregexp: [{include: "@variables"}, [/\\./, "regexp.escape"], [/./, {cases: {"$#==$S3": {token: "regexp.delim", next: "@regexpModifiers"}, "$#==$S2": {token: "regexp.delim", next: "@push"}, "@default": "regexp"}}]], regexpModifiers: [[/[msixpodualngcer]+/, {token: "regexp.modifier", next: "@popall"}]], qqstring: [{include: "@variables"}, {include: "@qstring"}], heredoc: [[/<<\s*['"`]?([\w\-]+)['"`]?/, {token: "string.heredoc.delimiter", next: "@heredocBody.$1"}]], heredocBody: [[/^([\w\-]+)$/, {cases: {"$1==$S2": [{token: "string.heredoc.delimiter", next: "@popall"}], "@default": "string.heredoc"}}], [/./, "string.heredoc"]], perldoc: [[/^=\w/, "comment.doc", "@perldocBody"]], perldocBody: [[/^=cut\b/, "type.identifier", "@popall"], [/./, "comment.doc"]], variables: [[/\$\w+/, "variable"], [/@\w+/, "variable"], [/%\w+/, "variable"]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, r = {defaultToken: "", tokenPostfix: ".perl", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["__DATA__", "else", "lock", "__END__", "elsif", "lt", "__FILE__", "eq", "__LINE__", "exp", "ne", "sub", "__PACKAGE__", "for", "no", "and", "foreach", "or", "unless", "cmp", "ge", "package", "until", "continue", "gt", "while", "CORE", "if", "xor", "do", "le", "__DIE__", "__WARN__"], builtinFunctions: ["-A", "END", "length", "setpgrp", "-B", "endgrent", "link", "setpriority", "-b", "endhostent", "listen", "setprotoent", "-C", "endnetent", "local", "setpwent", "-c", "endprotoent", "localtime", "setservent", "-d", "endpwent", "log", "setsockopt", "-e", "endservent", "lstat", "shift", "-f", "eof", "map", "shmctl", "-g", "eval", "mkdir", "shmget", "-k", "exec", "msgctl", "shmread", "-l", "exists", "msgget", "shmwrite", "-M", "exit", "msgrcv", "shutdown", "-O", "fcntl", "msgsnd", "sin", "-o", "fileno", "my", "sleep", "-p", "flock", "next", "socket", "-r", "fork", "not", "socketpair", "-R", "format", "oct", "sort", "-S", "formline", "open", "splice", "-s", "getc", "opendir", "split", "-T", "getgrent", "ord", "sprintf", "-t", "getgrgid", "our", "sqrt", "-u", "getgrnam", "pack", "srand", "-w", "gethostbyaddr", "pipe", "stat", "-W", "gethostbyname", "pop", "state", "-X", "gethostent", "pos", "study", "-x", "getlogin", "print", "substr", "-z", "getnetbyaddr", "printf", "symlink", "abs", "getnetbyname", "prototype", "syscall", "accept", "getnetent", "push", "sysopen", "alarm", "getpeername", "quotemeta", "sysread", "atan2", "getpgrp", "rand", "sysseek", "AUTOLOAD", "getppid", "read", "system", "BEGIN", "getpriority", "readdir", "syswrite", "bind", "getprotobyname", "readline", "tell", "binmode", "getprotobynumber", "readlink", "telldir", "bless", "getprotoent", "readpipe", "tie", "break", "getpwent", "recv", "tied", "caller", "getpwnam", "redo", "time", "chdir", "getpwuid", "ref", "times", "CHECK", "getservbyname", "rename", "truncate", "chmod", "getservbyport", "require", "uc", "chomp", "getservent", "reset", "ucfirst", "chop", "getsockname", "return", "umask", "chown", "getsockopt", "reverse", "undef", "chr", "glob", "rewinddir", "UNITCHECK", "chroot", "gmtime", "rindex", "unlink", "close", "goto", "rmdir", "unpack", "closedir", "grep", "say", "unshift", "connect", "hex", "scalar", "untie", "cos", "index", "seek", "use", "crypt", "INIT", "seekdir", "utime", "dbmclose", "int", "select", "values", "dbmopen", "ioctl", "semctl", "vec", "defined", "join", "semget", "wait", "delete", "keys", "semop", "waitpid", "DESTROY", "kill", "send", "wantarray", "die", "last", "setgrent", "warn", "dump", "lc", "sethostent", "write", "each", "lcfirst", "setnetent"], builtinFileHandlers: ["ARGV", "STDERR", "STDOUT", "ARGVOUT", "STDIN", "ENV"], builtinVariables: ["$!", "$^RE_TRIE_MAXBUF", "$LAST_REGEXP_CODE_RESULT", '$"', "$^S", "$LIST_SEPARATOR", "$#", "$^T", "$MATCH", "$$", "$^TAINT", "$MULTILINE_MATCHING", "$%", "$^UNICODE", "$NR", "$&", "$^UTF8LOCALE", "$OFMT", "$'", "$^V", "$OFS", "$(", "$^W", "$ORS", "$)", "$^WARNING_BITS", "$OS_ERROR", "$*", "$^WIDE_SYSTEM_CALLS", "$OSNAME", "$+", "$^X", "$OUTPUT_AUTO_FLUSH", "$,", "$_", "$OUTPUT_FIELD_SEPARATOR", "$-", "$`", "$OUTPUT_RECORD_SEPARATOR", "$.", "$a", "$PERL_VERSION", "$/", "$ACCUMULATOR", "$PERLDB", "$0", "$ARG", "$PID", "$:", "$ARGV", "$POSTMATCH", "$;", "$b", "$PREMATCH", "$<", "$BASETIME", "$PROCESS_ID", "$=", "$CHILD_ERROR", "$PROGRAM_NAME", "$>", "$COMPILING", "$REAL_GROUP_ID", "$?", "$DEBUGGING", "$REAL_USER_ID", "$@", "$EFFECTIVE_GROUP_ID", "$RS", "$[", "$EFFECTIVE_USER_ID", "$SUBSCRIPT_SEPARATOR", "$\\", "$EGID", "$SUBSEP", "$]", "$ERRNO", "$SYSTEM_FD_MAX", "$^", "$EUID", "$UID", "$^A", "$EVAL_ERROR", "$WARNING", "$^C", "$EXCEPTIONS_BEING_CAUGHT", "$|", "$^CHILD_ERROR_NATIVE", "$EXECUTABLE_NAME", "$~", "$^D", "$EXTENDED_OS_ERROR", "%!", "$^E", "$FORMAT_FORMFEED", "%^H", "$^ENCODING", "$FORMAT_LINE_BREAK_CHARACTERS", "%ENV", "$^F", "$FORMAT_LINES_LEFT", "%INC", "$^H", "$FORMAT_LINES_PER_PAGE", "%OVERLOAD", "$^I", "$FORMAT_NAME", "%SIG", "$^L", "$FORMAT_PAGE_NUMBER", "@+", "$^M", "$FORMAT_TOP_NAME", "@-", "$^N", "$GID", "@_", "$^O", "$INPLACE_EDIT", "@ARGV", "$^OPEN", "$INPUT_LINE_NUMBER", "@INC", "$^P", "$INPUT_RECORD_SEPARATOR", "@LAST_MATCH_START", "$^R", "$LAST_MATCH_END", "$^RE_DEBUG_FLAGS", "$LAST_PAREN_MATCH"], symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/, quoteLikeOps: ["qr", "m", "s", "q", "qq", "qx", "qw", "tr", "y"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, [/[a-zA-Z\-_][\w\-_]*/, {cases: {"@keywords": "keyword", "@builtinFunctions": "type.identifier", "@builtinFileHandlers": "variable.predefined", "@quoteLikeOps": {token: "@rematch", next: "quotedConstructs"}, "@default": ""}}], [/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/, {cases: {"@builtinVariables": "variable.predefined", "@default": "variable"}}], {include: "@strings"}, {include: "@dblStrings"}, {include: "@perldoc"}, {include: "@heredoc"}, [/[{}\[\]()]/, "@brackets"], [/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, "regexp"], [/@symbols/, "operators"], {include: "@numbers"}, [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"], [/(^#!.*$)/, "metatag"], [/(^#.*$)/, "comment"]], numbers: [[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"]], strings: [[/'/, "string", "@stringBody"]], stringBody: [[/'/, "string", "@popall"], [/\\'/, "string.escape"], [/./, "string"]], dblStrings: [[/"/, "string", "@dblStringBody"]], dblStringBody: [[/"/, "string", "@popall"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], {include: "@variables"}, [/./, "string"]], quotedConstructs: [[/(q|qw|tr|y)\s*\(/, {token: "string.delim", switchTo: "@qstring.(.)"}], [/(q|qw|tr|y)\s*\[/, {token: "string.delim", switchTo: "@qstring.[.]"}], [/(q|qw|tr|y)\s*\{/, {token: "string.delim", switchTo: "@qstring.{.}"}], [/(q|qw|tr|y)\s*</, {token: "string.delim", switchTo: "@qstring.<.>"}], [/(q|qw|tr|y)#/, {token: "string.delim", switchTo: "@qstring.#.#"}], [/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/, {token: "string.delim", switchTo: "@qstring.$2.$2"}], [/(q|qw|tr|y)\s+(\w)/, {token: "string.delim", switchTo: "@qstring.$2.$2"}], [/(qr|m|s)\s*\(/, {token: "regexp.delim", switchTo: "@qregexp.(.)"}], [/(qr|m|s)\s*\[/, {token: "regexp.delim", switchTo: "@qregexp.[.]"}], [/(qr|m|s)\s*\{/, {token: "regexp.delim", switchTo: "@qregexp.{.}"}], [/(qr|m|s)\s*</, {token: "regexp.delim", switchTo: "@qregexp.<.>"}], [/(qr|m|s)#/, {token: "regexp.delim", switchTo: "@qregexp.#.#"}], [/(qr|m|s)\s*([^A-Za-z0-9_#\s])/, {token: "regexp.delim", switchTo: "@qregexp.$2.$2"}], [/(qr|m|s)\s+(\w)/, {token: "regexp.delim", switchTo: "@qregexp.$2.$2"}], [/(qq|qx)\s*\(/, {token: "string.delim", switchTo: "@qqstring.(.)"}], [/(qq|qx)\s*\[/, {token: "string.delim", switchTo: "@qqstring.[.]"}], [/(qq|qx)\s*\{/, {token: "string.delim", switchTo: "@qqstring.{.}"}], [/(qq|qx)\s*</, {token: "string.delim", switchTo: "@qqstring.<.>"}], [/(qq|qx)#/, {token: "string.delim", switchTo: "@qqstring.#.#"}], [/(qq|qx)\s*([^A-Za-z0-9#\s])/, {token: "string.delim", switchTo: "@qqstring.$2.$2"}], [/(qq|qx)\s+(\w)/, {token: "string.delim", switchTo: "@qqstring.$2.$2"}]], qstring: [[/\\./, "string.escape"], [/./, {cases: {"$#==$S3": {token: "string.delim", next: "@pop"}, "$#==$S2": {token: "string.delim", next: "@push"}, "@default": "string"}}]], qregexp: [{include: "@variables"}, [/\\./, "regexp.escape"], [/./, {cases: {"$#==$S3": {token: "regexp.delim", next: "@regexpModifiers"}, "$#==$S2": {token: "regexp.delim", next: "@push"}, "@default": "regexp"}}]], regexpModifiers: [[/[msixpodualngcer]+/, {token: "regexp.modifier", next: "@popall"}]], qqstring: [{include: "@variables"}, {include: "@qstring"}], heredoc: [[/<<\s*['"`]?([\w\-]+)['"`]?/, {token: "string.heredoc.delimiter", next: "@heredocBody.$1"}]], heredocBody: [[/^([\w\-]+)$/, {cases: {"$1==$S2": [{token: "string.heredoc.delimiter", next: "@popall"}], "@default": "string.heredoc"}}], [/./, "string.heredoc"]], perldoc: [[/^=\w/, "comment.doc", "@perldocBody"]], perldocBody: [[/^=cut\b/, "type.identifier", "@popall"], [/./, "comment.doc"]], variables: [[/\$\w+/, "variable"], [/@\w+/, "variable"], [/%\w+/, "variable"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["A", "ABORT", "ABS", "ABSENT", "ABSOLUTE", "ACCESS", "ACCORDING", "ACTION", "ADA", "ADD", "ADMIN", "AFTER", "AGGREGATE", "ALL", "ALLOCATE", "ALSO", "ALTER", "ALWAYS", "ANALYSE", "ANALYZE", "AND", "ANY", "ARE", "ARRAY", "ARRAY_AGG", "ARRAY_MAX_CARDINALITY", "AS", "ASC", "ASENSITIVE", "ASSERTION", "ASSIGNMENT", "ASYMMETRIC", "AT", "ATOMIC", "ATTRIBUTE", "ATTRIBUTES", "AUTHORIZATION", "AVG", "BACKWARD", "BASE64", "BEFORE", "BEGIN", "BEGIN_FRAME", "BEGIN_PARTITION", "BERNOULLI", "BETWEEN", "BIGINT", "BINARY", "BIT", "BIT_LENGTH", "BLOB", "BLOCKED", "BOM", "BOOLEAN", "BOTH", "BREADTH", "BY", "C", "CACHE", "CALL", "CALLED", "CARDINALITY", "CASCADE", "CASCADED", "CASE", "CAST", "CATALOG", "CATALOG_NAME", "CEIL", "CEILING", "CHAIN", "CHAR", "CHARACTER", "CHARACTERISTICS", "CHARACTERS", "CHARACTER_LENGTH", "CHARACTER_SET_CATALOG", "CHARACTER_SET_NAME", "CHARACTER_SET_SCHEMA", "CHAR_LENGTH", "CHECK", "CHECKPOINT", "CLASS", "CLASS_ORIGIN", "CLOB", "CLOSE", "CLUSTER", "COALESCE", "COBOL", "COLLATE", "COLLATION", "COLLATION_CATALOG", "COLLATION_NAME", "COLLATION_SCHEMA", "COLLECT", "COLUMN", "COLUMNS", "COLUMN_NAME", "COMMAND_FUNCTION", "COMMAND_FUNCTION_CODE", "COMMENT", "COMMENTS", "COMMIT", "COMMITTED", "CONCURRENTLY", "CONDITION", "CONDITION_NUMBER", "CONFIGURATION", "CONFLICT", "CONNECT", "CONNECTION", "CONNECTION_NAME", "CONSTRAINT", "CONSTRAINTS", "CONSTRAINT_CATALOG", "CONSTRAINT_NAME", "CONSTRAINT_SCHEMA", "CONSTRUCTOR", "CONTAINS", "CONTENT", "CONTINUE", "CONTROL", "CONVERSION", "CONVERT", "COPY", "CORR", "CORRESPONDING", "COST", "COUNT", "COVAR_POP", "COVAR_SAMP", "CREATE", "CROSS", "CSV", "CUBE", "CUME_DIST", "CURRENT", "CURRENT_CATALOG", "CURRENT_DATE", "CURRENT_DEFAULT_TRANSFORM_GROUP", "CURRENT_PATH", "CURRENT_ROLE", "CURRENT_ROW", "CURRENT_SCHEMA", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_TRANSFORM_GROUP_FOR_TYPE", "CURRENT_USER", "CURSOR", "CURSOR_NAME", "CYCLE", "DATA", "DATABASE", "DATALINK", "DATE", "DATETIME_INTERVAL_CODE", "DATETIME_INTERVAL_PRECISION", "DAY", "DB", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULTS", "DEFERRABLE", "DEFERRED", "DEFINED", "DEFINER", "DEGREE", "DELETE", "DELIMITER", "DELIMITERS", "DENSE_RANK", "DEPENDS", "DEPTH", "DEREF", "DERIVED", "DESC", "DESCRIBE", "DESCRIPTOR", "DETERMINISTIC", "DIAGNOSTICS", "DICTIONARY", "DISABLE", "DISCARD", "DISCONNECT", "DISPATCH", "DISTINCT", "DLNEWCOPY", "DLPREVIOUSCOPY", "DLURLCOMPLETE", "DLURLCOMPLETEONLY", "DLURLCOMPLETEWRITE", "DLURLPATH", "DLURLPATHONLY", "DLURLPATHWRITE", "DLURLSCHEME", "DLURLSERVER", "DLVALUE", "DO", "DOCUMENT", "DOMAIN", "DOUBLE", "DROP", "DYNAMIC", "DYNAMIC_FUNCTION", "DYNAMIC_FUNCTION_CODE", "EACH", "ELEMENT", "ELSE", "EMPTY", "ENABLE", "ENCODING", "ENCRYPTED", "END", "END-EXEC", "END_FRAME", "END_PARTITION", "ENFORCED", "ENUM", "EQUALS", "ESCAPE", "EVENT", "EVERY", "EXCEPT", "EXCEPTION", "EXCLUDE", "EXCLUDING", "EXCLUSIVE", "EXEC", "EXECUTE", "EXISTS", "EXP", "EXPLAIN", "EXPRESSION", "EXTENSION", "EXTERNAL", "EXTRACT", "FALSE", "FAMILY", "FETCH", "FILE", "FILTER", "FINAL", "FIRST", "FIRST_VALUE", "FLAG", "FLOAT", "FLOOR", "FOLLOWING", "FOR", "FORCE", "FOREIGN", "FORTRAN", "FORWARD", "FOUND", "FRAME_ROW", "FREE", "FREEZE", "FROM", "FS", "FULL", "FUNCTION", "FUNCTIONS", "FUSION", "G", "GENERAL", "GENERATED", "GET", "GLOBAL", "GO", "GOTO", "GRANT", "GRANTED", "GREATEST", "GROUP", "GROUPING", "GROUPS", "HANDLER", "HAVING", "HEADER", "HEX", "HIERARCHY", "HOLD", "HOUR", "ID", "IDENTITY", "IF", "IGNORE", "ILIKE", "IMMEDIATE", "IMMEDIATELY", "IMMUTABLE", "IMPLEMENTATION", "IMPLICIT", "IMPORT", "IN", "INCLUDING", "INCREMENT", "INDENT", "INDEX", "INDEXES", "INDICATOR", "INHERIT", "INHERITS", "INITIALLY", "INLINE", "INNER", "INOUT", "INPUT", "INSENSITIVE", "INSERT", "INSTANCE", "INSTANTIABLE", "INSTEAD", "INT", "INTEGER", "INTEGRITY", "INTERSECT", "INTERSECTION", "INTERVAL", "INTO", "INVOKER", "IS", "ISNULL", "ISOLATION", "JOIN", "K", "KEY", "KEY_MEMBER", "KEY_TYPE", "LABEL", "LAG", "LANGUAGE", "LARGE", "LAST", "LAST_VALUE", "LATERAL", "LEAD", "LEADING", "LEAKPROOF", "LEAST", "LEFT", "LENGTH", "LEVEL", "LIBRARY", "LIKE", "LIKE_REGEX", "LIMIT", "LINK", "LISTEN", "LN", "LOAD", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP", "LOCATION", "LOCATOR", "LOCK", "LOCKED", "LOGGED", "LOWER", "M", "MAP", "MAPPING", "MATCH", "MATCHED", "MATERIALIZED", "MAX", "MAXVALUE", "MAX_CARDINALITY", "MEMBER", "MERGE", "MESSAGE_LENGTH", "MESSAGE_OCTET_LENGTH", "MESSAGE_TEXT", "METHOD", "MIN", "MINUTE", "MINVALUE", "MOD", "MODE", "MODIFIES", "MODULE", "MONTH", "MORE", "MOVE", "MULTISET", "MUMPS", "NAME", "NAMES", "NAMESPACE", "NATIONAL", "NATURAL", "NCHAR", "NCLOB", "NESTING", "NEW", "NEXT", "NFC", "NFD", "NFKC", "NFKD", "NIL", "NO", "NONE", "NORMALIZE", "NORMALIZED", "NOT", "NOTHING", "NOTIFY", "NOTNULL", "NOWAIT", "NTH_VALUE", "NTILE", "NULL", "NULLABLE", "NULLIF", "NULLS", "NUMBER", "NUMERIC", "OBJECT", "OCCURRENCES_REGEX", "OCTETS", "OCTET_LENGTH", "OF", "OFF", "OFFSET", "OIDS", "OLD", "ON", "ONLY", "OPEN", "OPERATOR", "OPTION", "OPTIONS", "OR", "ORDER", "ORDERING", "ORDINALITY", "OTHERS", "OUT", "OUTER", "OUTPUT", "OVER", "OVERLAPS", "OVERLAY", "OVERRIDING", "OWNED", "OWNER", "P", "PAD", "PARALLEL", "PARAMETER", "PARAMETER_MODE", "PARAMETER_NAME", "PARAMETER_ORDINAL_POSITION", "PARAMETER_SPECIFIC_CATALOG", "PARAMETER_SPECIFIC_NAME", "PARAMETER_SPECIFIC_SCHEMA", "PARSER", "PARTIAL", "PARTITION", "PASCAL", "PASSING", "PASSTHROUGH", "PASSWORD", "PATH", "PERCENT", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "PERIOD", "PERMISSION", "PLACING", "PLANS", "PLI", "POLICY", "PORTION", "POSITION", "POSITION_REGEX", "POWER", "PRECEDES", "PRECEDING", "PRECISION", "PREPARE", "PREPARED", "PRESERVE", "PRIMARY", "PRIOR", "PRIVILEGES", "PROCEDURAL", "PROCEDURE", "PROGRAM", "PUBLIC", "QUOTE", "RANGE", "RANK", "READ", "READS", "REAL", "REASSIGN", "RECHECK", "RECOVERY", "RECURSIVE", "REF", "REFERENCES", "REFERENCING", "REFRESH", "REGR_AVGX", "REGR_AVGY", "REGR_COUNT", "REGR_INTERCEPT", "REGR_R2", "REGR_SLOPE", "REGR_SXX", "REGR_SXY", "REGR_SYY", "REINDEX", "RELATIVE", "RELEASE", "RENAME", "REPEATABLE", "REPLACE", "REPLICA", "REQUIRING", "RESET", "RESPECT", "RESTART", "RESTORE", "RESTRICT", "RESULT", "RETURN", "RETURNED_CARDINALITY", "RETURNED_LENGTH", "RETURNED_OCTET_LENGTH", "RETURNED_SQLSTATE", "RETURNING", "RETURNS", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUTINE", "ROUTINE_CATALOG", "ROUTINE_NAME", "ROUTINE_SCHEMA", "ROW", "ROWS", "ROW_COUNT", "ROW_NUMBER", "RULE", "SAVEPOINT", "SCALE", "SCHEMA", "SCHEMA_NAME", "SCOPE", "SCOPE_CATALOG", "SCOPE_NAME", "SCOPE_SCHEMA", "SCROLL", "SEARCH", "SECOND", "SECTION", "SECURITY", "SELECT", "SELECTIVE", "SELF", "SENSITIVE", "SEQUENCE", "SEQUENCES", "SERIALIZABLE", "SERVER", "SERVER_NAME", "SESSION", "SESSION_USER", "SET", "SETOF", "SETS", "SHARE", "SHOW", "SIMILAR", "SIMPLE", "SIZE", "SKIP", "SMALLINT", "SNAPSHOT", "SOME", "SOURCE", "SPACE", "SPECIFIC", "SPECIFICTYPE", "SPECIFIC_NAME", "SQL", "SQLCODE", "SQLERROR", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQRT", "STABLE", "STANDALONE", "START", "STATE", "STATEMENT", "STATIC", "STATISTICS", "STDDEV_POP", "STDDEV_SAMP", "STDIN", "STDOUT", "STORAGE", "STRICT", "STRIP", "STRUCTURE", "STYLE", "SUBCLASS_ORIGIN", "SUBMULTISET", "SUBSTRING", "SUBSTRING_REGEX", "SUCCEEDS", "SUM", "SYMMETRIC", "SYSID", "SYSTEM", "SYSTEM_TIME", "SYSTEM_USER", "T", "TABLE", "TABLES", "TABLESAMPLE", "TABLESPACE", "TABLE_NAME", "TEMP", "TEMPLATE", "TEMPORARY", "TEXT", "THEN", "TIES", "TIME", "TIMESTAMP", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TOKEN", "TOP_LEVEL_COUNT", "TRAILING", "TRANSACTION", "TRANSACTIONS_COMMITTED", "TRANSACTIONS_ROLLED_BACK", "TRANSACTION_ACTIVE", "TRANSFORM", "TRANSFORMS", "TRANSLATE", "TRANSLATE_REGEX", "TRANSLATION", "TREAT", "TRIGGER", "TRIGGER_CATALOG", "TRIGGER_NAME", "TRIGGER_SCHEMA", "TRIM", "TRIM_ARRAY", "TRUE", "TRUNCATE", "TRUSTED", "TYPE", "TYPES", "UESCAPE", "UNBOUNDED", "UNCOMMITTED", "UNDER", "UNENCRYPTED", "UNION", "UNIQUE", "UNKNOWN", "UNLINK", "UNLISTEN", "UNLOGGED", "UNNAMED", "UNNEST", "UNTIL", "UNTYPED", "UPDATE", "UPPER", "URI", "USAGE", "USER", "USER_DEFINED_TYPE_CATALOG", "USER_DEFINED_TYPE_CODE", "USER_DEFINED_TYPE_NAME", "USER_DEFINED_TYPE_SCHEMA", "USING", "VACUUM", "VALID", "VALIDATE", "VALIDATOR", "VALUE", "VALUES", "VALUE_OF", "VARBINARY", "VARCHAR", "VARIADIC", "VARYING", "VAR_POP", "VAR_SAMP", "VERBOSE", "VERSION", "VERSIONING", "VIEW", "VIEWS", "VOLATILE", "WHEN", "WHENEVER", "WHERE", "WHITESPACE", "WIDTH_BUCKET", "WINDOW", "WITH", "WITHIN", "WITHOUT", "WORK", "WRAPPER", "WRITE", "XML", "XMLAGG", "XMLATTRIBUTES", "XMLBINARY", "XMLCAST", "XMLCOMMENT", "XMLCONCAT", "XMLDECLARATION", "XMLDOCUMENT", "XMLELEMENT", "XMLEXISTS", "XMLFOREST", "XMLITERATE", "XMLNAMESPACES", "XMLPARSE", "XMLPI", "XMLQUERY", "XMLROOT", "XMLSCHEMA", "XMLSERIALIZE", "XMLTABLE", "XMLTEXT", "XMLVALIDATE", "YEAR", "YES", "ZONE"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["abbrev", "abs", "acos", "acosd", "age", "any", "area", "array_agg", "array_append", "array_cat", "array_dims", "array_fill", "array_length", "array_lower", "array_ndims", "array_position", "array_positions", "array_prepend", "array_remove", "array_replace", "array_to_json", "array_to_string", "array_to_tsvector", "array_upper", "ascii", "asin", "asind", "atan", "atan2", "atan2d", "atand", "avg", "bit", "bit_and", "bit_length", "bit_or", "bool_and", "bool_or", "bound_box", "box", "brin_summarize_new_values", "broadcast", "btrim", "cardinality", "cbrt", "ceil", "ceiling", "center", "char_length", "character_length", "chr", "circle", "clock_timestamp", "coalesce", "col_description", "concat", "concat_ws", "convert", "convert_from", "convert_to", "corr", "cos", "cosd", "cot", "cotd", "count", "covar_pop", "covar_samp", "cume_dist", "current_catalog", "current_database", "current_date", "current_query", "current_role", "current_schema", "current_schemas", "current_setting", "current_time", "current_timestamp", "current_user", "currval", "cursor_to_xml", "date_part", "date_trunc", "decode", "degrees", "dense_rank", "diameter", "div", "encode", "enum_first", "enum_last", "enum_range", "every", "exp", "extract", "family", "first_value", "floor", "format", "format_type", "generate_series", "generate_subscripts", "get_bit", "get_byte", "get_current_ts_config", "gin_clean_pending_list", "greatest", "grouping", "has_any_column_privilege", "has_column_privilege", "has_database_privilege", "has_foreign_data_wrapper_privilege", "has_function_privilege", "has_language_privilege", "has_schema_privilege", "has_sequence_privilege", "has_server_privilege", "has_table_privilege", "has_tablespace_privilege", "has_type_privilege", "height", "host", "hostmask", "inet_client_addr", "inet_client_port", "inet_merge", "inet_same_family", "inet_server_addr", "inet_server_port", "initcap", "isclosed", "isempty", "isfinite", "isopen", "json_agg", "json_object", "json_object_agg", "json_populate_record", "json_populate_recordset", "json_to_record", "json_to_recordset", "jsonb_agg", "jsonb_object_agg", "justify_days", "justify_hours", "justify_interval", "lag", "last_value", "lastval", "lead", "least", "left", "length", "line", "ln", "localtime", "localtimestamp", "log", "lower", "lower_inc", "lower_inf", "lpad", "lseg", "ltrim", "make_date", "make_interval", "make_time", "make_timestamp", "make_timestamptz", "masklen", "max", "md5", "min", "mod", "mode", "netmask", "network", "nextval", "now", "npoints", "nth_value", "ntile", "nullif", "num_nonnulls", "num_nulls", "numnode", "obj_description", "octet_length", "overlay", "parse_ident", "path", "pclose", "percent_rank", "percentile_cont", "percentile_disc", "pg_advisory_lock", "pg_advisory_lock_shared", "pg_advisory_unlock", "pg_advisory_unlock_all", "pg_advisory_unlock_shared", "pg_advisory_xact_lock", "pg_advisory_xact_lock_shared", "pg_backend_pid", "pg_backup_start_time", "pg_blocking_pids", "pg_cancel_backend", "pg_client_encoding", "pg_collation_is_visible", "pg_column_size", "pg_conf_load_time", "pg_control_checkpoint", "pg_control_init", "pg_control_recovery", "pg_control_system", "pg_conversion_is_visible", "pg_create_logical_replication_slot", "pg_create_physical_replication_slot", "pg_create_restore_point", "pg_current_xlog_flush_location", "pg_current_xlog_insert_location", "pg_current_xlog_location", "pg_database_size", "pg_describe_object", "pg_drop_replication_slot", "pg_export_snapshot", "pg_filenode_relation", "pg_function_is_visible", "pg_get_constraintdef", "pg_get_expr", "pg_get_function_arguments", "pg_get_function_identity_arguments", "pg_get_function_result", "pg_get_functiondef", "pg_get_indexdef", "pg_get_keywords", "pg_get_object_address", "pg_get_owned_sequence", "pg_get_ruledef", "pg_get_serial_sequence", "pg_get_triggerdef", "pg_get_userbyid", "pg_get_viewdef", "pg_has_role", "pg_identify_object", "pg_identify_object_as_address", "pg_index_column_has_property", "pg_index_has_property", "pg_indexam_has_property", "pg_indexes_size", "pg_is_in_backup", "pg_is_in_recovery", "pg_is_other_temp_schema", "pg_is_xlog_replay_paused", "pg_last_committed_xact", "pg_last_xact_replay_timestamp", "pg_last_xlog_receive_location", "pg_last_xlog_replay_location", "pg_listening_channels", "pg_logical_emit_message", "pg_logical_slot_get_binary_changes", "pg_logical_slot_get_changes", "pg_logical_slot_peek_binary_changes", "pg_logical_slot_peek_changes", "pg_ls_dir", "pg_my_temp_schema", "pg_notification_queue_usage", "pg_opclass_is_visible", "pg_operator_is_visible", "pg_opfamily_is_visible", "pg_options_to_table", "pg_postmaster_start_time", "pg_read_binary_file", "pg_read_file", "pg_relation_filenode", "pg_relation_filepath", "pg_relation_size", "pg_reload_conf", "pg_replication_origin_create", "pg_replication_origin_drop", "pg_replication_origin_oid", "pg_replication_origin_progress", "pg_replication_origin_session_is_setup", "pg_replication_origin_session_progress", "pg_replication_origin_session_reset", "pg_replication_origin_session_setup", "pg_replication_origin_xact_reset", "pg_replication_origin_xact_setup", "pg_rotate_logfile", "pg_size_bytes", "pg_size_pretty", "pg_sleep", "pg_sleep_for", "pg_sleep_until", "pg_start_backup", "pg_stat_file", "pg_stop_backup", "pg_switch_xlog", "pg_table_is_visible", "pg_table_size", "pg_tablespace_databases", "pg_tablespace_location", "pg_tablespace_size", "pg_terminate_backend", "pg_total_relation_size", "pg_trigger_depth", "pg_try_advisory_lock", "pg_try_advisory_lock_shared", "pg_try_advisory_xact_lock", "pg_try_advisory_xact_lock_shared", "pg_ts_config_is_visible", "pg_ts_dict_is_visible", "pg_ts_parser_is_visible", "pg_ts_template_is_visible", "pg_type_is_visible", "pg_typeof", "pg_xact_commit_timestamp", "pg_xlog_location_diff", "pg_xlog_replay_pause", "pg_xlog_replay_resume", "pg_xlogfile_name", "pg_xlogfile_name_offset", "phraseto_tsquery", "pi", "plainto_tsquery", "point", "polygon", "popen", "position", "power", "pqserverversion", "query_to_xml", "querytree", "quote_ident", "quote_literal", "quote_nullable", "radians", "radius", "random", "range_merge", "rank", "regexp_matches", "regexp_replace", "regexp_split_to_array", "regexp_split_to_table", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "repeat", "replace", "reverse", "right", "round", "row_number", "row_security_active", "row_to_json", "rpad", "rtrim", "scale", "session_user", "set_bit", "set_byte", "set_config", "set_masklen", "setseed", "setval", "setweight", "shobj_description", "sign", "sin", "sind", "split_part", "sprintf", "sqrt", "statement_timestamp", "stddev", "stddev_pop", "stddev_samp", "string_agg", "string_to_array", "strip", "strpos", "substr", "substring", "sum", "table_to_xml", "table_to_xml_and_xmlschema", "tan", "tand", "text", "timeofday", "timezone", "to_ascii", "to_char", "to_date", "to_hex", "to_json", "to_number", "to_regclass", "to_regnamespace", "to_regoper", "to_regoperator", "to_regproc", "to_regprocedure", "to_regrole", "to_regtype", "to_timestamp", "to_tsquery", "to_tsvector", "transaction_timestamp", "translate", "trim", "trunc", "ts_debug", "ts_delete", "ts_filter", "ts_headline", "ts_lexize", "ts_parse", "ts_rank", "ts_rank_cd", "ts_rewrite", "ts_stat", "ts_token_type", "tsquery_phrase", "tsvector_to_array", "tsvector_update_trigger", "tsvector_update_trigger_column", "txid_current", "txid_current_snapshot", "txid_snapshot_xip", "txid_snapshot_xmax", "txid_snapshot_xmin", "txid_visible_in_snapshot", "unnest", "upper", "upper_inc", "upper_inf", "user", "var_pop", "var_samp", "variance", "version", "width", "width_bucket", "xml_is_well_formed", "xml_is_well_formed_content", "xml_is_well_formed_document", "xmlagg", "xmlcomment", "xmlconcat", "xmlelement", "xmlexists", "xmlforest", "xmlparse", "xmlpi", "xmlroot", "xmlserialize", "xpath", "xpath_exists"], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; + var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["A", "ABORT", "ABS", "ABSENT", "ABSOLUTE", "ACCESS", "ACCORDING", "ACTION", "ADA", "ADD", "ADMIN", "AFTER", "AGGREGATE", "ALL", "ALLOCATE", "ALSO", "ALTER", "ALWAYS", "ANALYSE", "ANALYZE", "AND", "ANY", "ARE", "ARRAY", "ARRAY_AGG", "ARRAY_MAX_CARDINALITY", "AS", "ASC", "ASENSITIVE", "ASSERTION", "ASSIGNMENT", "ASYMMETRIC", "AT", "ATOMIC", "ATTRIBUTE", "ATTRIBUTES", "AUTHORIZATION", "AVG", "BACKWARD", "BASE64", "BEFORE", "BEGIN", "BEGIN_FRAME", "BEGIN_PARTITION", "BERNOULLI", "BETWEEN", "BIGINT", "BINARY", "BIT", "BIT_LENGTH", "BLOB", "BLOCKED", "BOM", "BOOLEAN", "BOTH", "BREADTH", "BY", "C", "CACHE", "CALL", "CALLED", "CARDINALITY", "CASCADE", "CASCADED", "CASE", "CAST", "CATALOG", "CATALOG_NAME", "CEIL", "CEILING", "CHAIN", "CHAR", "CHARACTER", "CHARACTERISTICS", "CHARACTERS", "CHARACTER_LENGTH", "CHARACTER_SET_CATALOG", "CHARACTER_SET_NAME", "CHARACTER_SET_SCHEMA", "CHAR_LENGTH", "CHECK", "CHECKPOINT", "CLASS", "CLASS_ORIGIN", "CLOB", "CLOSE", "CLUSTER", "COALESCE", "COBOL", "COLLATE", "COLLATION", "COLLATION_CATALOG", "COLLATION_NAME", "COLLATION_SCHEMA", "COLLECT", "COLUMN", "COLUMNS", "COLUMN_NAME", "COMMAND_FUNCTION", "COMMAND_FUNCTION_CODE", "COMMENT", "COMMENTS", "COMMIT", "COMMITTED", "CONCURRENTLY", "CONDITION", "CONDITION_NUMBER", "CONFIGURATION", "CONFLICT", "CONNECT", "CONNECTION", "CONNECTION_NAME", "CONSTRAINT", "CONSTRAINTS", "CONSTRAINT_CATALOG", "CONSTRAINT_NAME", "CONSTRAINT_SCHEMA", "CONSTRUCTOR", "CONTAINS", "CONTENT", "CONTINUE", "CONTROL", "CONVERSION", "CONVERT", "COPY", "CORR", "CORRESPONDING", "COST", "COUNT", "COVAR_POP", "COVAR_SAMP", "CREATE", "CROSS", "CSV", "CUBE", "CUME_DIST", "CURRENT", "CURRENT_CATALOG", "CURRENT_DATE", "CURRENT_DEFAULT_TRANSFORM_GROUP", "CURRENT_PATH", "CURRENT_ROLE", "CURRENT_ROW", "CURRENT_SCHEMA", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_TRANSFORM_GROUP_FOR_TYPE", "CURRENT_USER", "CURSOR", "CURSOR_NAME", "CYCLE", "DATA", "DATABASE", "DATALINK", "DATE", "DATETIME_INTERVAL_CODE", "DATETIME_INTERVAL_PRECISION", "DAY", "DB", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULTS", "DEFERRABLE", "DEFERRED", "DEFINED", "DEFINER", "DEGREE", "DELETE", "DELIMITER", "DELIMITERS", "DENSE_RANK", "DEPENDS", "DEPTH", "DEREF", "DERIVED", "DESC", "DESCRIBE", "DESCRIPTOR", "DETERMINISTIC", "DIAGNOSTICS", "DICTIONARY", "DISABLE", "DISCARD", "DISCONNECT", "DISPATCH", "DISTINCT", "DLNEWCOPY", "DLPREVIOUSCOPY", "DLURLCOMPLETE", "DLURLCOMPLETEONLY", "DLURLCOMPLETEWRITE", "DLURLPATH", "DLURLPATHONLY", "DLURLPATHWRITE", "DLURLSCHEME", "DLURLSERVER", "DLVALUE", "DO", "DOCUMENT", "DOMAIN", "DOUBLE", "DROP", "DYNAMIC", "DYNAMIC_FUNCTION", "DYNAMIC_FUNCTION_CODE", "EACH", "ELEMENT", "ELSE", "EMPTY", "ENABLE", "ENCODING", "ENCRYPTED", "END", "END-EXEC", "END_FRAME", "END_PARTITION", "ENFORCED", "ENUM", "EQUALS", "ESCAPE", "EVENT", "EVERY", "EXCEPT", "EXCEPTION", "EXCLUDE", "EXCLUDING", "EXCLUSIVE", "EXEC", "EXECUTE", "EXISTS", "EXP", "EXPLAIN", "EXPRESSION", "EXTENSION", "EXTERNAL", "EXTRACT", "FALSE", "FAMILY", "FETCH", "FILE", "FILTER", "FINAL", "FIRST", "FIRST_VALUE", "FLAG", "FLOAT", "FLOOR", "FOLLOWING", "FOR", "FORCE", "FOREIGN", "FORTRAN", "FORWARD", "FOUND", "FRAME_ROW", "FREE", "FREEZE", "FROM", "FS", "FULL", "FUNCTION", "FUNCTIONS", "FUSION", "G", "GENERAL", "GENERATED", "GET", "GLOBAL", "GO", "GOTO", "GRANT", "GRANTED", "GREATEST", "GROUP", "GROUPING", "GROUPS", "HANDLER", "HAVING", "HEADER", "HEX", "HIERARCHY", "HOLD", "HOUR", "ID", "IDENTITY", "IF", "IGNORE", "ILIKE", "IMMEDIATE", "IMMEDIATELY", "IMMUTABLE", "IMPLEMENTATION", "IMPLICIT", "IMPORT", "IN", "INCLUDING", "INCREMENT", "INDENT", "INDEX", "INDEXES", "INDICATOR", "INHERIT", "INHERITS", "INITIALLY", "INLINE", "INNER", "INOUT", "INPUT", "INSENSITIVE", "INSERT", "INSTANCE", "INSTANTIABLE", "INSTEAD", "INT", "INTEGER", "INTEGRITY", "INTERSECT", "INTERSECTION", "INTERVAL", "INTO", "INVOKER", "IS", "ISNULL", "ISOLATION", "JOIN", "K", "KEY", "KEY_MEMBER", "KEY_TYPE", "LABEL", "LAG", "LANGUAGE", "LARGE", "LAST", "LAST_VALUE", "LATERAL", "LEAD", "LEADING", "LEAKPROOF", "LEAST", "LEFT", "LENGTH", "LEVEL", "LIBRARY", "LIKE", "LIKE_REGEX", "LIMIT", "LINK", "LISTEN", "LN", "LOAD", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP", "LOCATION", "LOCATOR", "LOCK", "LOCKED", "LOGGED", "LOWER", "M", "MAP", "MAPPING", "MATCH", "MATCHED", "MATERIALIZED", "MAX", "MAXVALUE", "MAX_CARDINALITY", "MEMBER", "MERGE", "MESSAGE_LENGTH", "MESSAGE_OCTET_LENGTH", "MESSAGE_TEXT", "METHOD", "MIN", "MINUTE", "MINVALUE", "MOD", "MODE", "MODIFIES", "MODULE", "MONTH", "MORE", "MOVE", "MULTISET", "MUMPS", "NAME", "NAMES", "NAMESPACE", "NATIONAL", "NATURAL", "NCHAR", "NCLOB", "NESTING", "NEW", "NEXT", "NFC", "NFD", "NFKC", "NFKD", "NIL", "NO", "NONE", "NORMALIZE", "NORMALIZED", "NOT", "NOTHING", "NOTIFY", "NOTNULL", "NOWAIT", "NTH_VALUE", "NTILE", "NULL", "NULLABLE", "NULLIF", "NULLS", "NUMBER", "NUMERIC", "OBJECT", "OCCURRENCES_REGEX", "OCTETS", "OCTET_LENGTH", "OF", "OFF", "OFFSET", "OIDS", "OLD", "ON", "ONLY", "OPEN", "OPERATOR", "OPTION", "OPTIONS", "OR", "ORDER", "ORDERING", "ORDINALITY", "OTHERS", "OUT", "OUTER", "OUTPUT", "OVER", "OVERLAPS", "OVERLAY", "OVERRIDING", "OWNED", "OWNER", "P", "PAD", "PARALLEL", "PARAMETER", "PARAMETER_MODE", "PARAMETER_NAME", "PARAMETER_ORDINAL_POSITION", "PARAMETER_SPECIFIC_CATALOG", "PARAMETER_SPECIFIC_NAME", "PARAMETER_SPECIFIC_SCHEMA", "PARSER", "PARTIAL", "PARTITION", "PASCAL", "PASSING", "PASSTHROUGH", "PASSWORD", "PATH", "PERCENT", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "PERIOD", "PERMISSION", "PLACING", "PLANS", "PLI", "POLICY", "PORTION", "POSITION", "POSITION_REGEX", "POWER", "PRECEDES", "PRECEDING", "PRECISION", "PREPARE", "PREPARED", "PRESERVE", "PRIMARY", "PRIOR", "PRIVILEGES", "PROCEDURAL", "PROCEDURE", "PROGRAM", "PUBLIC", "QUOTE", "RANGE", "RANK", "READ", "READS", "REAL", "REASSIGN", "RECHECK", "RECOVERY", "RECURSIVE", "REF", "REFERENCES", "REFERENCING", "REFRESH", "REGR_AVGX", "REGR_AVGY", "REGR_COUNT", "REGR_INTERCEPT", "REGR_R2", "REGR_SLOPE", "REGR_SXX", "REGR_SXY", "REGR_SYY", "REINDEX", "RELATIVE", "RELEASE", "RENAME", "REPEATABLE", "REPLACE", "REPLICA", "REQUIRING", "RESET", "RESPECT", "RESTART", "RESTORE", "RESTRICT", "RESULT", "RETURN", "RETURNED_CARDINALITY", "RETURNED_LENGTH", "RETURNED_OCTET_LENGTH", "RETURNED_SQLSTATE", "RETURNING", "RETURNS", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUTINE", "ROUTINE_CATALOG", "ROUTINE_NAME", "ROUTINE_SCHEMA", "ROW", "ROWS", "ROW_COUNT", "ROW_NUMBER", "RULE", "SAVEPOINT", "SCALE", "SCHEMA", "SCHEMA_NAME", "SCOPE", "SCOPE_CATALOG", "SCOPE_NAME", "SCOPE_SCHEMA", "SCROLL", "SEARCH", "SECOND", "SECTION", "SECURITY", "SELECT", "SELECTIVE", "SELF", "SENSITIVE", "SEQUENCE", "SEQUENCES", "SERIALIZABLE", "SERVER", "SERVER_NAME", "SESSION", "SESSION_USER", "SET", "SETOF", "SETS", "SHARE", "SHOW", "SIMILAR", "SIMPLE", "SIZE", "SKIP", "SMALLINT", "SNAPSHOT", "SOME", "SOURCE", "SPACE", "SPECIFIC", "SPECIFICTYPE", "SPECIFIC_NAME", "SQL", "SQLCODE", "SQLERROR", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQRT", "STABLE", "STANDALONE", "START", "STATE", "STATEMENT", "STATIC", "STATISTICS", "STDDEV_POP", "STDDEV_SAMP", "STDIN", "STDOUT", "STORAGE", "STRICT", "STRIP", "STRUCTURE", "STYLE", "SUBCLASS_ORIGIN", "SUBMULTISET", "SUBSTRING", "SUBSTRING_REGEX", "SUCCEEDS", "SUM", "SYMMETRIC", "SYSID", "SYSTEM", "SYSTEM_TIME", "SYSTEM_USER", "T", "TABLE", "TABLES", "TABLESAMPLE", "TABLESPACE", "TABLE_NAME", "TEMP", "TEMPLATE", "TEMPORARY", "TEXT", "THEN", "TIES", "TIME", "TIMESTAMP", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TOKEN", "TOP_LEVEL_COUNT", "TRAILING", "TRANSACTION", "TRANSACTIONS_COMMITTED", "TRANSACTIONS_ROLLED_BACK", "TRANSACTION_ACTIVE", "TRANSFORM", "TRANSFORMS", "TRANSLATE", "TRANSLATE_REGEX", "TRANSLATION", "TREAT", "TRIGGER", "TRIGGER_CATALOG", "TRIGGER_NAME", "TRIGGER_SCHEMA", "TRIM", "TRIM_ARRAY", "TRUE", "TRUNCATE", "TRUSTED", "TYPE", "TYPES", "UESCAPE", "UNBOUNDED", "UNCOMMITTED", "UNDER", "UNENCRYPTED", "UNION", "UNIQUE", "UNKNOWN", "UNLINK", "UNLISTEN", "UNLOGGED", "UNNAMED", "UNNEST", "UNTIL", "UNTYPED", "UPDATE", "UPPER", "URI", "USAGE", "USER", "USER_DEFINED_TYPE_CATALOG", "USER_DEFINED_TYPE_CODE", "USER_DEFINED_TYPE_NAME", "USER_DEFINED_TYPE_SCHEMA", "USING", "VACUUM", "VALID", "VALIDATE", "VALIDATOR", "VALUE", "VALUES", "VALUE_OF", "VARBINARY", "VARCHAR", "VARIADIC", "VARYING", "VAR_POP", "VAR_SAMP", "VERBOSE", "VERSION", "VERSIONING", "VIEW", "VIEWS", "VOLATILE", "WHEN", "WHENEVER", "WHERE", "WHITESPACE", "WIDTH_BUCKET", "WINDOW", "WITH", "WITHIN", "WITHOUT", "WORK", "WRAPPER", "WRITE", "XML", "XMLAGG", "XMLATTRIBUTES", "XMLBINARY", "XMLCAST", "XMLCOMMENT", "XMLCONCAT", "XMLDECLARATION", "XMLDOCUMENT", "XMLELEMENT", "XMLEXISTS", "XMLFOREST", "XMLITERATE", "XMLNAMESPACES", "XMLPARSE", "XMLPI", "XMLQUERY", "XMLROOT", "XMLSCHEMA", "XMLSERIALIZE", "XMLTABLE", "XMLTEXT", "XMLVALIDATE", "YEAR", "YES", "ZONE"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["abbrev", "abs", "acos", "acosd", "age", "any", "area", "array_agg", "array_append", "array_cat", "array_dims", "array_fill", "array_length", "array_lower", "array_ndims", "array_position", "array_positions", "array_prepend", "array_remove", "array_replace", "array_to_json", "array_to_string", "array_to_tsvector", "array_upper", "ascii", "asin", "asind", "atan", "atan2", "atan2d", "atand", "avg", "bit", "bit_and", "bit_length", "bit_or", "bool_and", "bool_or", "bound_box", "box", "brin_summarize_new_values", "broadcast", "btrim", "cardinality", "cbrt", "ceil", "ceiling", "center", "char_length", "character_length", "chr", "circle", "clock_timestamp", "coalesce", "col_description", "concat", "concat_ws", "convert", "convert_from", "convert_to", "corr", "cos", "cosd", "cot", "cotd", "count", "covar_pop", "covar_samp", "cume_dist", "current_catalog", "current_database", "current_date", "current_query", "current_role", "current_schema", "current_schemas", "current_setting", "current_time", "current_timestamp", "current_user", "currval", "cursor_to_xml", "date_part", "date_trunc", "decode", "degrees", "dense_rank", "diameter", "div", "encode", "enum_first", "enum_last", "enum_range", "every", "exp", "extract", "family", "first_value", "floor", "format", "format_type", "generate_series", "generate_subscripts", "get_bit", "get_byte", "get_current_ts_config", "gin_clean_pending_list", "greatest", "grouping", "has_any_column_privilege", "has_column_privilege", "has_database_privilege", "has_foreign_data_wrapper_privilege", "has_function_privilege", "has_language_privilege", "has_schema_privilege", "has_sequence_privilege", "has_server_privilege", "has_table_privilege", "has_tablespace_privilege", "has_type_privilege", "height", "host", "hostmask", "inet_client_addr", "inet_client_port", "inet_merge", "inet_same_family", "inet_server_addr", "inet_server_port", "initcap", "isclosed", "isempty", "isfinite", "isopen", "json_agg", "json_object", "json_object_agg", "json_populate_record", "json_populate_recordset", "json_to_record", "json_to_recordset", "jsonb_agg", "jsonb_object_agg", "justify_days", "justify_hours", "justify_interval", "lag", "last_value", "lastval", "lead", "least", "left", "length", "line", "ln", "localtime", "localtimestamp", "log", "lower", "lower_inc", "lower_inf", "lpad", "lseg", "ltrim", "make_date", "make_interval", "make_time", "make_timestamp", "make_timestamptz", "masklen", "max", "md5", "min", "mod", "mode", "netmask", "network", "nextval", "now", "npoints", "nth_value", "ntile", "nullif", "num_nonnulls", "num_nulls", "numnode", "obj_description", "octet_length", "overlay", "parse_ident", "path", "pclose", "percent_rank", "percentile_cont", "percentile_disc", "pg_advisory_lock", "pg_advisory_lock_shared", "pg_advisory_unlock", "pg_advisory_unlock_all", "pg_advisory_unlock_shared", "pg_advisory_xact_lock", "pg_advisory_xact_lock_shared", "pg_backend_pid", "pg_backup_start_time", "pg_blocking_pids", "pg_cancel_backend", "pg_client_encoding", "pg_collation_is_visible", "pg_column_size", "pg_conf_load_time", "pg_control_checkpoint", "pg_control_init", "pg_control_recovery", "pg_control_system", "pg_conversion_is_visible", "pg_create_logical_replication_slot", "pg_create_physical_replication_slot", "pg_create_restore_point", "pg_current_xlog_flush_location", "pg_current_xlog_insert_location", "pg_current_xlog_location", "pg_database_size", "pg_describe_object", "pg_drop_replication_slot", "pg_export_snapshot", "pg_filenode_relation", "pg_function_is_visible", "pg_get_constraintdef", "pg_get_expr", "pg_get_function_arguments", "pg_get_function_identity_arguments", "pg_get_function_result", "pg_get_functiondef", "pg_get_indexdef", "pg_get_keywords", "pg_get_object_address", "pg_get_owned_sequence", "pg_get_ruledef", "pg_get_serial_sequence", "pg_get_triggerdef", "pg_get_userbyid", "pg_get_viewdef", "pg_has_role", "pg_identify_object", "pg_identify_object_as_address", "pg_index_column_has_property", "pg_index_has_property", "pg_indexam_has_property", "pg_indexes_size", "pg_is_in_backup", "pg_is_in_recovery", "pg_is_other_temp_schema", "pg_is_xlog_replay_paused", "pg_last_committed_xact", "pg_last_xact_replay_timestamp", "pg_last_xlog_receive_location", "pg_last_xlog_replay_location", "pg_listening_channels", "pg_logical_emit_message", "pg_logical_slot_get_binary_changes", "pg_logical_slot_get_changes", "pg_logical_slot_peek_binary_changes", "pg_logical_slot_peek_changes", "pg_ls_dir", "pg_my_temp_schema", "pg_notification_queue_usage", "pg_opclass_is_visible", "pg_operator_is_visible", "pg_opfamily_is_visible", "pg_options_to_table", "pg_postmaster_start_time", "pg_read_binary_file", "pg_read_file", "pg_relation_filenode", "pg_relation_filepath", "pg_relation_size", "pg_reload_conf", "pg_replication_origin_create", "pg_replication_origin_drop", "pg_replication_origin_oid", "pg_replication_origin_progress", "pg_replication_origin_session_is_setup", "pg_replication_origin_session_progress", "pg_replication_origin_session_reset", "pg_replication_origin_session_setup", "pg_replication_origin_xact_reset", "pg_replication_origin_xact_setup", "pg_rotate_logfile", "pg_size_bytes", "pg_size_pretty", "pg_sleep", "pg_sleep_for", "pg_sleep_until", "pg_start_backup", "pg_stat_file", "pg_stop_backup", "pg_switch_xlog", "pg_table_is_visible", "pg_table_size", "pg_tablespace_databases", "pg_tablespace_location", "pg_tablespace_size", "pg_terminate_backend", "pg_total_relation_size", "pg_trigger_depth", "pg_try_advisory_lock", "pg_try_advisory_lock_shared", "pg_try_advisory_xact_lock", "pg_try_advisory_xact_lock_shared", "pg_ts_config_is_visible", "pg_ts_dict_is_visible", "pg_ts_parser_is_visible", "pg_ts_template_is_visible", "pg_type_is_visible", "pg_typeof", "pg_xact_commit_timestamp", "pg_xlog_location_diff", "pg_xlog_replay_pause", "pg_xlog_replay_resume", "pg_xlogfile_name", "pg_xlogfile_name_offset", "phraseto_tsquery", "pi", "plainto_tsquery", "point", "polygon", "popen", "position", "power", "pqserverversion", "query_to_xml", "querytree", "quote_ident", "quote_literal", "quote_nullable", "radians", "radius", "random", "range_merge", "rank", "regexp_matches", "regexp_replace", "regexp_split_to_array", "regexp_split_to_table", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "repeat", "replace", "reverse", "right", "round", "row_number", "row_security_active", "row_to_json", "rpad", "rtrim", "scale", "session_user", "set_bit", "set_byte", "set_config", "set_masklen", "setseed", "setval", "setweight", "shobj_description", "sign", "sin", "sind", "split_part", "sprintf", "sqrt", "statement_timestamp", "stddev", "stddev_pop", "stddev_samp", "string_agg", "string_to_array", "strip", "strpos", "substr", "substring", "sum", "table_to_xml", "table_to_xml_and_xmlschema", "tan", "tand", "text", "timeofday", "timezone", "to_ascii", "to_char", "to_date", "to_hex", "to_json", "to_number", "to_regclass", "to_regnamespace", "to_regoper", "to_regoperator", "to_regproc", "to_regprocedure", "to_regrole", "to_regtype", "to_timestamp", "to_tsquery", "to_tsvector", "transaction_timestamp", "translate", "trim", "trunc", "ts_debug", "ts_delete", "ts_filter", "ts_headline", "ts_lexize", "ts_parse", "ts_rank", "ts_rank_cd", "ts_rewrite", "ts_stat", "ts_token_type", "tsquery_phrase", "tsvector_to_array", "tsvector_update_trigger", "tsvector_update_trigger_column", "txid_current", "txid_current_snapshot", "txid_snapshot_xip", "txid_snapshot_xmax", "txid_snapshot_xmin", "txid_visible_in_snapshot", "unnest", "upper", "upper_inc", "upper_inf", "user", "var_pop", "var_samp", "variance", "version", "width", "width_bucket", "xml_is_well_formed", "xml_is_well_formed_content", "xml_is_well_formed_document", "xmlagg", "xmlcomment", "xmlconcat", "xmlelement", "xmlexists", "xmlforest", "xmlparse", "xmlpi", "xmlroot", "xmlserialize", "xpath", "xpath_exists"], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string"]}, {open: "[", close: "]", notIn: ["string"]}, {open: "(", close: ")", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], folding: {markers: {start: new RegExp("^\\s*(#|//)region\\b"), end: new RegExp("^\\s*(#|//)endregion\\b")}}}, o = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[^<]+/]], doctype: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], phpInSimpleState: [[/<\?((php)|=)?/, "metatag.php"], [/\?>/, {token: "metatag.php", switchTo: "@$S2.$S3"}], {include: "phpRoot"}], phpInEmbeddedState: [[/<\?((php)|=)?/, "metatag.php"], [/\?>/, {token: "metatag.php", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], {include: "phpRoot"}], phpRoot: [[/[a-zA-Z_]\w*/, {cases: {"@phpKeywords": {token: "keyword.php"}, "@phpCompileTimeConstants": {token: "constant.php"}, "@default": "identifier.php"}}], [/[$a-zA-Z_]\w*/, {cases: {"@phpPreDefinedVariables": {token: "variable.predefined.php"}, "@default": "variable.php"}}], [/[{}]/, "delimiter.bracket.php"], [/[\[\]]/, "delimiter.array.php"], [/[()]/, "delimiter.parenthesis.php"], [/[ \t\r\n]+/], [/(#|\/\/)$/, "comment.php"], [/(#|\/\/)/, "comment.php", "@phpLineComment"], [/\/\*/, "comment.php", "@phpComment"], [/"/, "string.php", "@phpDoubleQuoteString"], [/'/, "string.php", "@phpSingleQuoteString"], [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"], [/0[0-7']*[0-7]/, "number.octal.php"], [/0[bB][0-1']*[0-1]/, "number.binary.php"], [/\d[\d']*/, "number.php"], [/\d/, "number.php"]], phpComment: [[/\*\//, "comment.php", "@pop"], [/[^*]+/, "comment.php"], [/./, "comment.php"]], phpLineComment: [[/\?>/, {token: "@rematch", next: "@pop"}], [/.$/, "comment.php", "@pop"], [/[^?]+$/, "comment.php", "@pop"], [/[^?]+/, "comment.php"], [/./, "comment.php"]], phpDoubleQuoteString: [[/[^\\"]+/, "string.php"], [/@escapes/, "string.escape.php"], [/\\./, "string.escape.invalid.php"], [/"/, "string.php", "@pop"]], phpSingleQuoteString: [[/[^\\']+/, "string.php"], [/@escapes/, "string.escape.php"], [/\\./, "string.escape.invalid.php"], [/'/, "string.php", "@pop"]]}, phpKeywords: ["abstract", "and", "array", "as", "break", "callable", "case", "catch", "cfunction", "class", "clone", "const", "continue", "declare", "default", "do", "else", "elseif", "enddeclare", "endfor", "endforeach", "endif", "endswitch", "endwhile", "extends", "false", "final", "for", "foreach", "function", "global", "goto", "if", "implements", "interface", "instanceof", "insteadof", "namespace", "new", "null", "object", "old_function", "or", "private", "protected", "public", "resource", "static", "switch", "throw", "trait", "try", "true", "use", "var", "while", "xor", "die", "echo", "empty", "exit", "eval", "include", "include_once", "isset", "list", "require", "require_once", "return", "print", "unset", "yield", "__construct"], phpCompileTimeConstants: ["__CLASS__", "__DIR__", "__FILE__", "__LINE__", "__NAMESPACE__", "__METHOD__", "__FUNCTION__", "__TRAIT__"], phpPreDefinedVariables: ["$GLOBALS", "$_SERVER", "$_GET", "$_POST", "$_FILES", "$_REQUEST", "$_SESSION", "$_ENV", "$_COOKIE", "$php_errormsg", "$HTTP_RAW_POST_DATA", "$http_response_header", "$argc", "$argv"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string"]}, {open: "[", close: "]", notIn: ["string"]}, {open: "(", close: ")", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], folding: {markers: {start: new RegExp("^\\s*(#|//)region\\b"), end: new RegExp("^\\s*(#|//)endregion\\b")}}}, r = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[^<]+/]], doctype: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\?((php)|=)?/, {token: "@rematch", switchTo: "@phpInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], phpInSimpleState: [[/<\?((php)|=)?/, "metatag.php"], [/\?>/, {token: "metatag.php", switchTo: "@$S2.$S3"}], {include: "phpRoot"}], phpInEmbeddedState: [[/<\?((php)|=)?/, "metatag.php"], [/\?>/, {token: "metatag.php", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], {include: "phpRoot"}], phpRoot: [[/[a-zA-Z_]\w*/, {cases: {"@phpKeywords": {token: "keyword.php"}, "@phpCompileTimeConstants": {token: "constant.php"}, "@default": "identifier.php"}}], [/[$a-zA-Z_]\w*/, {cases: {"@phpPreDefinedVariables": {token: "variable.predefined.php"}, "@default": "variable.php"}}], [/[{}]/, "delimiter.bracket.php"], [/[\[\]]/, "delimiter.array.php"], [/[()]/, "delimiter.parenthesis.php"], [/[ \t\r\n]+/], [/(#|\/\/)$/, "comment.php"], [/(#|\/\/)/, "comment.php", "@phpLineComment"], [/\/\*/, "comment.php", "@phpComment"], [/"/, "string.php", "@phpDoubleQuoteString"], [/'/, "string.php", "@phpSingleQuoteString"], [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"], [/0[0-7']*[0-7]/, "number.octal.php"], [/0[bB][0-1']*[0-1]/, "number.binary.php"], [/\d[\d']*/, "number.php"], [/\d/, "number.php"]], phpComment: [[/\*\//, "comment.php", "@pop"], [/[^*]+/, "comment.php"], [/./, "comment.php"]], phpLineComment: [[/\?>/, {token: "@rematch", next: "@pop"}], [/.$/, "comment.php", "@pop"], [/[^?]+$/, "comment.php", "@pop"], [/[^?]+/, "comment.php"], [/./, "comment.php"]], phpDoubleQuoteString: [[/[^\\"]+/, "string.php"], [/@escapes/, "string.escape.php"], [/\\./, "string.escape.invalid.php"], [/"/, "string.php", "@pop"]], phpSingleQuoteString: [[/[^\\']+/, "string.php"], [/@escapes/, "string.escape.php"], [/\\./, "string.escape.invalid.php"], [/'/, "string.php", "@pop"]]}, phpKeywords: ["abstract", "and", "array", "as", "break", "callable", "case", "catch", "cfunction", "class", "clone", "const", "continue", "declare", "default", "do", "else", "elseif", "enddeclare", "endfor", "endforeach", "endif", "endswitch", "endwhile", "extends", "false", "final", "for", "foreach", "function", "global", "goto", "if", "implements", "interface", "instanceof", "insteadof", "namespace", "new", "null", "object", "old_function", "or", "private", "protected", "public", "resource", "static", "switch", "throw", "trait", "try", "true", "use", "var", "while", "xor", "die", "echo", "empty", "exit", "eval", "include", "include_once", "isset", "list", "require", "require_once", "return", "print", "unset", "yield", "__construct"], phpCompileTimeConstants: ["__CLASS__", "__DIR__", "__FILE__", "__LINE__", "__NAMESPACE__", "__METHOD__", "__FUNCTION__", "__TRAIT__"], phpPreDefinedVariables: ["$GLOBALS", "$_SERVER", "$_GET", "$_POST", "$_FILES", "$_REQUEST", "$_SESSION", "$_ENV", "$_COOKIE", "$php_errormsg", "$HTTP_RAW_POST_DATA", "$http_response_header", "$argc", "$argv"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, o = {tokenPostfix: ".pats", defaultToken: "invalid", keywords: ["abstype", "abst0ype", "absprop", "absview", "absvtype", "absviewtype", "absvt0ype", "absviewt0ype", "as", "and", "assume", "begin", "classdec", "datasort", "datatype", "dataprop", "dataview", "datavtype", "dataviewtype", "do", "end", "extern", "extype", "extvar", "exception", "fn", "fnx", "fun", "prfn", "prfun", "praxi", "castfn", "if", "then", "else", "ifcase", "in", "infix", "infixl", "infixr", "prefix", "postfix", "implmnt", "implement", "primplmnt", "primplement", "import", "let", "local", "macdef", "macrodef", "nonfix", "symelim", "symintr", "overload", "of", "op", "rec", "sif", "scase", "sortdef", "sta", "stacst", "stadef", "static", "staload", "dynload", "try", "tkindef", "typedef", "propdef", "viewdef", "vtypedef", "viewtypedef", "prval", "var", "prvar", "when", "where", "with", "withtype", "withprop", "withview", "withvtype", "withviewtype"], keywords_dlr: ["$delay", "$ldelay", "$arrpsz", "$arrptrsize", "$d2ctype", "$effmask", "$effmask_ntm", "$effmask_exn", "$effmask_ref", "$effmask_wrt", "$effmask_all", "$extern", "$extkind", "$extype", "$extype_struct", "$extval", "$extfcall", "$extmcall", "$literal", "$myfilename", "$mylocation", "$myfunction", "$lst", "$lst_t", "$lst_vt", "$list", "$list_t", "$list_vt", "$rec", "$rec_t", "$rec_vt", "$record", "$record_t", "$record_vt", "$tup", "$tup_t", "$tup_vt", "$tuple", "$tuple_t", "$tuple_vt", "$break", "$continue", "$raise", "$showtype", "$vcopyenv_v", "$vcopyenv_vt", "$tempenver", "$solver_assert", "$solver_verify"], keywords_srp: ["#if", "#ifdef", "#ifndef", "#then", "#elif", "#elifdef", "#elifndef", "#else", "#endif", "#error", "#prerr", "#print", "#assert", "#undef", "#define", "#include", "#require", "#pragma", "#codegen2", "#codegen3"], irregular_keyword_list: ["val+", "val-", "val", "case+", "case-", "case", "addr@", "addr", "fold@", "free@", "fix@", "fix", "lam@", "lam", "llam@", "llam", "viewt@ype+", "viewt@ype-", "viewt@ype", "viewtype+", "viewtype-", "viewtype", "view+", "view-", "view@", "view", "type+", "type-", "type", "vtype+", "vtype-", "vtype", "vt@ype+", "vt@ype-", "vt@ype", "viewt@ype+", "viewt@ype-", "viewt@ype", "viewtype+", "viewtype-", "viewtype", "prop+", "prop-", "prop", "type+", "type-", "type", "t@ype", "t@ype+", "t@ype-", "abst@ype", "abstype", "absviewt@ype", "absvt@ype", "for*", "for", "while*", "while"], keywords_types: ["bool", "double", "byte", "int", "short", "char", "void", "unit", "long", "float", "string", "strptr"], keywords_effects: ["0", "fun", "clo", "prf", "funclo", "cloptr", "cloref", "ref", "ntm", "1"], operators: ["@", "!", "|", "`", ":", "$", ".", "=", "#", "~", "..", "...", "=>", "=<>", "=/=>", "=>>", "=/=>>", "<", ">", "><", ".<", ">.", ".<>.", "->", "-<>"], brackets: [{open: ",(", close: ")", token: "delimiter.parenthesis"}, {open: "`(", close: ")", token: "delimiter.parenthesis"}, {open: "%(", close: ")", token: "delimiter.parenthesis"}, {open: "'(", close: ")", token: "delimiter.parenthesis"}, {open: "'{", close: "}", token: "delimiter.parenthesis"}, {open: "@(", close: ")", token: "delimiter.parenthesis"}, {open: "@{", close: "}", token: "delimiter.brace"}, {open: "@[", close: "]", token: "delimiter.square"}, {open: "#[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], symbols: /[=><!~?:&|+\-*\/\^%]+/, IDENTFST: /[a-zA-Z_]/, IDENTRST: /[a-zA-Z0-9_'$]/, symbolic: /[%&+-./:=@~`^|*!$#?<>]/, digit: /[0-9]/, digitseq0: /@digit*/, xdigit: /[0-9A-Za-z]/, xdigitseq0: /@xdigit*/, INTSP: /[lLuU]/, FLOATSP: /[fFlL]/, fexponent: /[eE][+-]?[0-9]+/, fexponent_bin: /[pP][+-]?[0-9]+/, deciexp: /\.[0-9]*@fexponent?/, hexiexp: /\.[0-9a-zA-Z]*@fexponent_bin?/, irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/, ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/, start: "root", tokenizer: {root: [{regex: /[ \t\r\n]+/, action: {token: ""}}, {regex: /\(\*\)/, action: {token: "invalid"}}, {regex: /\(\*/, action: {token: "comment", next: "lexing_COMMENT_block_ml"}}, {regex: /\(/, action: "@brackets"}, {regex: /\)/, action: "@brackets"}, {regex: /\[/, action: "@brackets"}, {regex: /\]/, action: "@brackets"}, {regex: /\{/, action: "@brackets"}, {regex: /\}/, action: "@brackets"}, {regex: /,\(/, action: "@brackets"}, {regex: /,/, action: {token: "delimiter.comma"}}, {regex: /;/, action: {token: "delimiter.semicolon"}}, {regex: /@\(/, action: "@brackets"}, {regex: /@\[/, action: "@brackets"}, {regex: /@\{/, action: "@brackets"}, {regex: /:</, action: {token: "keyword", next: "@lexing_EFFECT_commaseq0"}}, {regex: /\.@symbolic+/, action: {token: "identifier.sym"}}, {regex: /\.@digit*@fexponent@FLOATSP*/, action: {token: "number.float"}}, {regex: /\.@digit+/, action: {token: "number.float"}}, {regex: /\$@IDENTFST@IDENTRST*/, action: {cases: {"@keywords_dlr": {token: "keyword.dlr"}, "@default": {token: "namespace"}}}}, {regex: /\#@IDENTFST@IDENTRST*/, action: {cases: {"@keywords_srp": {token: "keyword.srp"}, "@default": {token: "identifier"}}}}, {regex: /%\(/, action: {token: "delimiter.parenthesis"}}, {regex: /^%{(#|\^|\$)?/, action: {token: "keyword", next: "@lexing_EXTCODE", nextEmbedded: "text/javascript"}}, {regex: /^%}/, action: {token: "keyword"}}, {regex: /'\(/, action: {token: "delimiter.parenthesis"}}, {regex: /'\[/, action: {token: "delimiter.bracket"}}, {regex: /'\{/, action: {token: "delimiter.brace"}}, [/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/, ["string", "string.escape", "string"]], [/'[^\\']'/, "string"], [/"/, "string.quote", "@lexing_DQUOTE"], {regex: /`\(/, action: "@brackets"}, {regex: /\\/, action: {token: "punctuation"}}, {regex: /@irregular_keywords(?!@IDENTRST)/, action: {token: "keyword"}}, {regex: /@IDENTFST@IDENTRST*[<!\[]?/, action: {cases: {"@keywords": {token: "keyword"}, "@keywords_types": {token: "type"}, "@default": {token: "identifier"}}}}, {regex: /\/\/\/\//, action: {token: "comment", next: "@lexing_COMMENT_rest"}}, {regex: /\/\/.*$/, action: {token: "comment"}}, {regex: /\/\*/, action: {token: "comment", next: "@lexing_COMMENT_block_c"}}, {regex: /-<|=</, action: {token: "keyword", next: "@lexing_EFFECT_commaseq0"}}, {regex: /@symbolic+/, action: {cases: {"@operators": "keyword", "@default": "operator"}}}, {regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/, action: {token: "number.float"}}, {regex: /0[xX]@xdigit+@INTSP*/, action: {token: "number.hex"}}, {regex: /0[0-7]+(?![0-9])@INTSP*/, action: {token: "number.octal"}}, {regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/, action: {token: "number.float"}}, {regex: /@digit@digitseq0@INTSP*/, action: {token: "number.decimal"}}, {regex: /@digit+@INTSP*/, action: {token: "number"}}], lexing_COMMENT_block_ml: [[/[^\(\*]+/, "comment"], [/\(\*/, "comment", "@push"], [/\(\*/, "comment.invalid"], [/\*\)/, "comment", "@pop"], [/\*/, "comment"]], lexing_COMMENT_block_c: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], lexing_COMMENT_rest: [[/$/, "comment", "@pop"], [/.*/, "comment"]], lexing_EFFECT_commaseq0: [{regex: /@IDENTFST@IDENTRST+|@digit+/, action: {cases: {"@keywords_effects": {token: "type.effect"}, "@default": {token: "identifier"}}}}, {regex: /,/, action: {token: "punctuation"}}, {regex: />/, action: {token: "@rematch", next: "@pop"}}], lexing_EXTCODE: [{regex: /^%}/, action: {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}}, {regex: /[^%]+/, action: ""}], lexing_DQUOTE: [{regex: /"/, action: {token: "string.quote", next: "@pop"}}, {regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/, action: [{token: "string.escape"}, {token: "identifier"}, {token: "string.escape"}]}, {regex: /\\$/, action: {token: "string.escape"}}, {regex: /\\(@ESCHAR|[xX]@xdigit+|@digit+)/, action: {token: "string.escape"}}, {regex: /[^\\"]+/, action: {token: "string"}}]}}; + var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, r = {tokenPostfix: ".pats", defaultToken: "invalid", keywords: ["abstype", "abst0ype", "absprop", "absview", "absvtype", "absviewtype", "absvt0ype", "absviewt0ype", "as", "and", "assume", "begin", "classdec", "datasort", "datatype", "dataprop", "dataview", "datavtype", "dataviewtype", "do", "end", "extern", "extype", "extvar", "exception", "fn", "fnx", "fun", "prfn", "prfun", "praxi", "castfn", "if", "then", "else", "ifcase", "in", "infix", "infixl", "infixr", "prefix", "postfix", "implmnt", "implement", "primplmnt", "primplement", "import", "let", "local", "macdef", "macrodef", "nonfix", "symelim", "symintr", "overload", "of", "op", "rec", "sif", "scase", "sortdef", "sta", "stacst", "stadef", "static", "staload", "dynload", "try", "tkindef", "typedef", "propdef", "viewdef", "vtypedef", "viewtypedef", "prval", "var", "prvar", "when", "where", "with", "withtype", "withprop", "withview", "withvtype", "withviewtype"], keywords_dlr: ["$delay", "$ldelay", "$arrpsz", "$arrptrsize", "$d2ctype", "$effmask", "$effmask_ntm", "$effmask_exn", "$effmask_ref", "$effmask_wrt", "$effmask_all", "$extern", "$extkind", "$extype", "$extype_struct", "$extval", "$extfcall", "$extmcall", "$literal", "$myfilename", "$mylocation", "$myfunction", "$lst", "$lst_t", "$lst_vt", "$list", "$list_t", "$list_vt", "$rec", "$rec_t", "$rec_vt", "$record", "$record_t", "$record_vt", "$tup", "$tup_t", "$tup_vt", "$tuple", "$tuple_t", "$tuple_vt", "$break", "$continue", "$raise", "$showtype", "$vcopyenv_v", "$vcopyenv_vt", "$tempenver", "$solver_assert", "$solver_verify"], keywords_srp: ["#if", "#ifdef", "#ifndef", "#then", "#elif", "#elifdef", "#elifndef", "#else", "#endif", "#error", "#prerr", "#print", "#assert", "#undef", "#define", "#include", "#require", "#pragma", "#codegen2", "#codegen3"], irregular_keyword_list: ["val+", "val-", "val", "case+", "case-", "case", "addr@", "addr", "fold@", "free@", "fix@", "fix", "lam@", "lam", "llam@", "llam", "viewt@ype+", "viewt@ype-", "viewt@ype", "viewtype+", "viewtype-", "viewtype", "view+", "view-", "view@", "view", "type+", "type-", "type", "vtype+", "vtype-", "vtype", "vt@ype+", "vt@ype-", "vt@ype", "viewt@ype+", "viewt@ype-", "viewt@ype", "viewtype+", "viewtype-", "viewtype", "prop+", "prop-", "prop", "type+", "type-", "type", "t@ype", "t@ype+", "t@ype-", "abst@ype", "abstype", "absviewt@ype", "absvt@ype", "for*", "for", "while*", "while"], keywords_types: ["bool", "double", "byte", "int", "short", "char", "void", "unit", "long", "float", "string", "strptr"], keywords_effects: ["0", "fun", "clo", "prf", "funclo", "cloptr", "cloref", "ref", "ntm", "1"], operators: ["@", "!", "|", "`", ":", "$", ".", "=", "#", "~", "..", "...", "=>", "=<>", "=/=>", "=>>", "=/=>>", "<", ">", "><", ".<", ">.", ".<>.", "->", "-<>"], brackets: [{open: ",(", close: ")", token: "delimiter.parenthesis"}, {open: "`(", close: ")", token: "delimiter.parenthesis"}, {open: "%(", close: ")", token: "delimiter.parenthesis"}, {open: "'(", close: ")", token: "delimiter.parenthesis"}, {open: "'{", close: "}", token: "delimiter.parenthesis"}, {open: "@(", close: ")", token: "delimiter.parenthesis"}, {open: "@{", close: "}", token: "delimiter.brace"}, {open: "@[", close: "]", token: "delimiter.square"}, {open: "#[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], symbols: /[=><!~?:&|+\-*\/\^%]+/, IDENTFST: /[a-zA-Z_]/, IDENTRST: /[a-zA-Z0-9_'$]/, symbolic: /[%&+-./:=@~`^|*!$#?<>]/, digit: /[0-9]/, digitseq0: /@digit*/, xdigit: /[0-9A-Za-z]/, xdigitseq0: /@xdigit*/, INTSP: /[lLuU]/, FLOATSP: /[fFlL]/, fexponent: /[eE][+-]?[0-9]+/, fexponent_bin: /[pP][+-]?[0-9]+/, deciexp: /\.[0-9]*@fexponent?/, hexiexp: /\.[0-9a-zA-Z]*@fexponent_bin?/, irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/, ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/, start: "root", tokenizer: {root: [{regex: /[ \t\r\n]+/, action: {token: ""}}, {regex: /\(\*\)/, action: {token: "invalid"}}, {regex: /\(\*/, action: {token: "comment", next: "lexing_COMMENT_block_ml"}}, {regex: /\(/, action: "@brackets"}, {regex: /\)/, action: "@brackets"}, {regex: /\[/, action: "@brackets"}, {regex: /\]/, action: "@brackets"}, {regex: /\{/, action: "@brackets"}, {regex: /\}/, action: "@brackets"}, {regex: /,\(/, action: "@brackets"}, {regex: /,/, action: {token: "delimiter.comma"}}, {regex: /;/, action: {token: "delimiter.semicolon"}}, {regex: /@\(/, action: "@brackets"}, {regex: /@\[/, action: "@brackets"}, {regex: /@\{/, action: "@brackets"}, {regex: /:</, action: {token: "keyword", next: "@lexing_EFFECT_commaseq0"}}, {regex: /\.@symbolic+/, action: {token: "identifier.sym"}}, {regex: /\.@digit*@fexponent@FLOATSP*/, action: {token: "number.float"}}, {regex: /\.@digit+/, action: {token: "number.float"}}, {regex: /\$@IDENTFST@IDENTRST*/, action: {cases: {"@keywords_dlr": {token: "keyword.dlr"}, "@default": {token: "namespace"}}}}, {regex: /\#@IDENTFST@IDENTRST*/, action: {cases: {"@keywords_srp": {token: "keyword.srp"}, "@default": {token: "identifier"}}}}, {regex: /%\(/, action: {token: "delimiter.parenthesis"}}, {regex: /^%{(#|\^|\$)?/, action: {token: "keyword", next: "@lexing_EXTCODE", nextEmbedded: "text/javascript"}}, {regex: /^%}/, action: {token: "keyword"}}, {regex: /'\(/, action: {token: "delimiter.parenthesis"}}, {regex: /'\[/, action: {token: "delimiter.bracket"}}, {regex: /'\{/, action: {token: "delimiter.brace"}}, [/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/, ["string", "string.escape", "string"]], [/'[^\\']'/, "string"], [/"/, "string.quote", "@lexing_DQUOTE"], {regex: /`\(/, action: "@brackets"}, {regex: /\\/, action: {token: "punctuation"}}, {regex: /@irregular_keywords(?!@IDENTRST)/, action: {token: "keyword"}}, {regex: /@IDENTFST@IDENTRST*[<!\[]?/, action: {cases: {"@keywords": {token: "keyword"}, "@keywords_types": {token: "type"}, "@default": {token: "identifier"}}}}, {regex: /\/\/\/\//, action: {token: "comment", next: "@lexing_COMMENT_rest"}}, {regex: /\/\/.*$/, action: {token: "comment"}}, {regex: /\/\*/, action: {token: "comment", next: "@lexing_COMMENT_block_c"}}, {regex: /-<|=</, action: {token: "keyword", next: "@lexing_EFFECT_commaseq0"}}, {regex: /@symbolic+/, action: {cases: {"@operators": "keyword", "@default": "operator"}}}, {regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/, action: {token: "number.float"}}, {regex: /0[xX]@xdigit+@INTSP*/, action: {token: "number.hex"}}, {regex: /0[0-7]+(?![0-9])@INTSP*/, action: {token: "number.octal"}}, {regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/, action: {token: "number.float"}}, {regex: /@digit@digitseq0@INTSP*/, action: {token: "number.decimal"}}, {regex: /@digit+@INTSP*/, action: {token: "number"}}], lexing_COMMENT_block_ml: [[/[^\(\*]+/, "comment"], [/\(\*/, "comment", "@push"], [/\(\*/, "comment.invalid"], [/\*\)/, "comment", "@pop"], [/\*/, "comment"]], lexing_COMMENT_block_c: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], lexing_COMMENT_rest: [[/$/, "comment", "@pop"], [/.*/, "comment"]], lexing_EFFECT_commaseq0: [{regex: /@IDENTFST@IDENTRST+|@digit+/, action: {cases: {"@keywords_effects": {token: "type.effect"}, "@default": {token: "identifier"}}}}, {regex: /,/, action: {token: "punctuation"}}, {regex: />/, action: {token: "@rematch", next: "@pop"}}], lexing_EXTCODE: [{regex: /^%}/, action: {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}}, {regex: /[^%]+/, action: ""}], lexing_DQUOTE: [{regex: /"/, action: {token: "string.quote", next: "@pop"}}, {regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/, action: [{token: "string.escape"}, {token: "identifier"}, {token: "string.escape"}]}, {regex: /\\$/, action: {token: "string.escape"}}, {regex: /\\(@ESCHAR|[xX]@xdigit+|@digit+)/, action: {token: "string.escape"}}, {regex: /[^\\"]+/, action: {token: "string"}}]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment", "identifier"]}, {open: "[", close: "]", notIn: ["string", "comment", "identifier"]}, {open: "(", close: ")", notIn: ["string", "comment", "identifier"]}, {open: "{", close: "}", notIn: ["string", "comment", "identifier"]}]}, o = {defaultToken: "", tokenPostfix: ".pq", ignoreCase: false, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.brackets"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], operatorKeywords: ["and", "not", "or"], keywords: ["as", "each", "else", "error", "false", "if", "in", "is", "let", "meta", "otherwise", "section", "shared", "then", "true", "try", "type"], constructors: ["#binary", "#date", "#datetime", "#datetimezone", "#duration", "#table", "#time"], constants: ["#infinity", "#nan", "#sections", "#shared"], typeKeywords: ["action", "any", "anynonnull", "none", "null", "logical", "number", "time", "date", "datetime", "datetimezone", "duration", "text", "binary", "list", "record", "table", "function"], builtinFunctions: ["Access.Database", "Action.Return", "Action.Sequence", "Action.Try", "ActiveDirectory.Domains", "AdoDotNet.DataSource", "AdoDotNet.Query", "AdobeAnalytics.Cubes", "AnalysisServices.Database", "AnalysisServices.Databases", "AzureStorage.BlobContents", "AzureStorage.Blobs", "AzureStorage.Tables", "Binary.Buffer", "Binary.Combine", "Binary.Compress", "Binary.Decompress", "Binary.End", "Binary.From", "Binary.FromList", "Binary.FromText", "Binary.InferContentType", "Binary.Length", "Binary.ToList", "Binary.ToText", "BinaryFormat.7BitEncodedSignedInteger", "BinaryFormat.7BitEncodedUnsignedInteger", "BinaryFormat.Binary", "BinaryFormat.Byte", "BinaryFormat.ByteOrder", "BinaryFormat.Choice", "BinaryFormat.Decimal", "BinaryFormat.Double", "BinaryFormat.Group", "BinaryFormat.Length", "BinaryFormat.List", "BinaryFormat.Null", "BinaryFormat.Record", "BinaryFormat.SignedInteger16", "BinaryFormat.SignedInteger32", "BinaryFormat.SignedInteger64", "BinaryFormat.Single", "BinaryFormat.Text", "BinaryFormat.Transform", "BinaryFormat.UnsignedInteger16", "BinaryFormat.UnsignedInteger32", "BinaryFormat.UnsignedInteger64", "Byte.From", "Character.FromNumber", "Character.ToNumber", "Combiner.CombineTextByDelimiter", "Combiner.CombineTextByEachDelimiter", "Combiner.CombineTextByLengths", "Combiner.CombineTextByPositions", "Combiner.CombineTextByRanges", "Comparer.Equals", "Comparer.FromCulture", "Comparer.Ordinal", "Comparer.OrdinalIgnoreCase", "Csv.Document", "Cube.AddAndExpandDimensionColumn", "Cube.AddMeasureColumn", "Cube.ApplyParameter", "Cube.AttributeMemberId", "Cube.AttributeMemberProperty", "Cube.CollapseAndRemoveColumns", "Cube.Dimensions", "Cube.DisplayFolders", "Cube.Measures", "Cube.Parameters", "Cube.Properties", "Cube.PropertyKey", "Cube.ReplaceDimensions", "Cube.Transform", "Currency.From", "DB2.Database", "Date.AddDays", "Date.AddMonths", "Date.AddQuarters", "Date.AddWeeks", "Date.AddYears", "Date.Day", "Date.DayOfWeek", "Date.DayOfWeekName", "Date.DayOfYear", "Date.DaysInMonth", "Date.EndOfDay", "Date.EndOfMonth", "Date.EndOfQuarter", "Date.EndOfWeek", "Date.EndOfYear", "Date.From", "Date.FromText", "Date.IsInCurrentDay", "Date.IsInCurrentMonth", "Date.IsInCurrentQuarter", "Date.IsInCurrentWeek", "Date.IsInCurrentYear", "Date.IsInNextDay", "Date.IsInNextMonth", "Date.IsInNextNDays", "Date.IsInNextNMonths", "Date.IsInNextNQuarters", "Date.IsInNextNWeeks", "Date.IsInNextNYears", "Date.IsInNextQuarter", "Date.IsInNextWeek", "Date.IsInNextYear", "Date.IsInPreviousDay", "Date.IsInPreviousMonth", "Date.IsInPreviousNDays", "Date.IsInPreviousNMonths", "Date.IsInPreviousNQuarters", "Date.IsInPreviousNWeeks", "Date.IsInPreviousNYears", "Date.IsInPreviousQuarter", "Date.IsInPreviousWeek", "Date.IsInPreviousYear", "Date.IsInYearToDate", "Date.IsLeapYear", "Date.Month", "Date.MonthName", "Date.QuarterOfYear", "Date.StartOfDay", "Date.StartOfMonth", "Date.StartOfQuarter", "Date.StartOfWeek", "Date.StartOfYear", "Date.ToRecord", "Date.ToText", "Date.WeekOfMonth", "Date.WeekOfYear", "Date.Year", "DateTime.AddZone", "DateTime.Date", "DateTime.FixedLocalNow", "DateTime.From", "DateTime.FromFileTime", "DateTime.FromText", "DateTime.IsInCurrentHour", "DateTime.IsInCurrentMinute", "DateTime.IsInCurrentSecond", "DateTime.IsInNextHour", "DateTime.IsInNextMinute", "DateTime.IsInNextNHours", "DateTime.IsInNextNMinutes", "DateTime.IsInNextNSeconds", "DateTime.IsInNextSecond", "DateTime.IsInPreviousHour", "DateTime.IsInPreviousMinute", "DateTime.IsInPreviousNHours", "DateTime.IsInPreviousNMinutes", "DateTime.IsInPreviousNSeconds", "DateTime.IsInPreviousSecond", "DateTime.LocalNow", "DateTime.Time", "DateTime.ToRecord", "DateTime.ToText", "DateTimeZone.FixedLocalNow", "DateTimeZone.FixedUtcNow", "DateTimeZone.From", "DateTimeZone.FromFileTime", "DateTimeZone.FromText", "DateTimeZone.LocalNow", "DateTimeZone.RemoveZone", "DateTimeZone.SwitchZone", "DateTimeZone.ToLocal", "DateTimeZone.ToRecord", "DateTimeZone.ToText", "DateTimeZone.ToUtc", "DateTimeZone.UtcNow", "DateTimeZone.ZoneHours", "DateTimeZone.ZoneMinutes", "Decimal.From", "Diagnostics.ActivityId", "Diagnostics.Trace", "DirectQueryCapabilities.From", "Double.From", "Duration.Days", "Duration.From", "Duration.FromText", "Duration.Hours", "Duration.Minutes", "Duration.Seconds", "Duration.ToRecord", "Duration.ToText", "Duration.TotalDays", "Duration.TotalHours", "Duration.TotalMinutes", "Duration.TotalSeconds", "Embedded.Value", "Error.Record", "Excel.CurrentWorkbook", "Excel.Workbook", "Exchange.Contents", "Expression.Constant", "Expression.Evaluate", "Expression.Identifier", "Facebook.Graph", "File.Contents", "Folder.Contents", "Folder.Files", "Function.From", "Function.Invoke", "Function.InvokeAfter", "Function.IsDataSource", "GoogleAnalytics.Accounts", "Guid.From", "HdInsight.Containers", "HdInsight.Contents", "HdInsight.Files", "Hdfs.Contents", "Hdfs.Files", "Informix.Database", "Int16.From", "Int32.From", "Int64.From", "Int8.From", "ItemExpression.From", "Json.Document", "Json.FromValue", "Lines.FromBinary", "Lines.FromText", "Lines.ToBinary", "Lines.ToText", "List.Accumulate", "List.AllTrue", "List.Alternate", "List.AnyTrue", "List.Average", "List.Buffer", "List.Combine", "List.Contains", "List.ContainsAll", "List.ContainsAny", "List.Count", "List.Covariance", "List.DateTimeZones", "List.DateTimes", "List.Dates", "List.Difference", "List.Distinct", "List.Durations", "List.FindText", "List.First", "List.FirstN", "List.Generate", "List.InsertRange", "List.Intersect", "List.IsDistinct", "List.IsEmpty", "List.Last", "List.LastN", "List.MatchesAll", "List.MatchesAny", "List.Max", "List.MaxN", "List.Median", "List.Min", "List.MinN", "List.Mode", "List.Modes", "List.NonNullCount", "List.Numbers", "List.PositionOf", "List.PositionOfAny", "List.Positions", "List.Product", "List.Random", "List.Range", "List.RemoveFirstN", "List.RemoveItems", "List.RemoveLastN", "List.RemoveMatchingItems", "List.RemoveNulls", "List.RemoveRange", "List.Repeat", "List.ReplaceMatchingItems", "List.ReplaceRange", "List.ReplaceValue", "List.Reverse", "List.Select", "List.Single", "List.SingleOrDefault", "List.Skip", "List.Sort", "List.StandardDeviation", "List.Sum", "List.Times", "List.Transform", "List.TransformMany", "List.Union", "List.Zip", "Logical.From", "Logical.FromText", "Logical.ToText", "MQ.Queue", "MySQL.Database", "Number.Abs", "Number.Acos", "Number.Asin", "Number.Atan", "Number.Atan2", "Number.BitwiseAnd", "Number.BitwiseNot", "Number.BitwiseOr", "Number.BitwiseShiftLeft", "Number.BitwiseShiftRight", "Number.BitwiseXor", "Number.Combinations", "Number.Cos", "Number.Cosh", "Number.Exp", "Number.Factorial", "Number.From", "Number.FromText", "Number.IntegerDivide", "Number.IsEven", "Number.IsNaN", "Number.IsOdd", "Number.Ln", "Number.Log", "Number.Log10", "Number.Mod", "Number.Permutations", "Number.Power", "Number.Random", "Number.RandomBetween", "Number.Round", "Number.RoundAwayFromZero", "Number.RoundDown", "Number.RoundTowardZero", "Number.RoundUp", "Number.Sign", "Number.Sin", "Number.Sinh", "Number.Sqrt", "Number.Tan", "Number.Tanh", "Number.ToText", "OData.Feed", "Odbc.DataSource", "Odbc.Query", "OleDb.DataSource", "OleDb.Query", "Oracle.Database", "Percentage.From", "PostgreSQL.Database", "RData.FromBinary", "Record.AddField", "Record.Combine", "Record.Field", "Record.FieldCount", "Record.FieldNames", "Record.FieldOrDefault", "Record.FieldValues", "Record.FromList", "Record.FromTable", "Record.HasFields", "Record.RemoveFields", "Record.RenameFields", "Record.ReorderFields", "Record.SelectFields", "Record.ToList", "Record.ToTable", "Record.TransformFields", "Replacer.ReplaceText", "Replacer.ReplaceValue", "RowExpression.Column", "RowExpression.From", "Salesforce.Data", "Salesforce.Reports", "SapBusinessWarehouse.Cubes", "SapHana.Database", "SharePoint.Contents", "SharePoint.Files", "SharePoint.Tables", "Single.From", "Soda.Feed", "Splitter.SplitByNothing", "Splitter.SplitTextByAnyDelimiter", "Splitter.SplitTextByDelimiter", "Splitter.SplitTextByEachDelimiter", "Splitter.SplitTextByLengths", "Splitter.SplitTextByPositions", "Splitter.SplitTextByRanges", "Splitter.SplitTextByRepeatedLengths", "Splitter.SplitTextByWhitespace", "Sql.Database", "Sql.Databases", "SqlExpression.SchemaFrom", "SqlExpression.ToExpression", "Sybase.Database", "Table.AddColumn", "Table.AddIndexColumn", "Table.AddJoinColumn", "Table.AddKey", "Table.AggregateTableColumn", "Table.AlternateRows", "Table.Buffer", "Table.Column", "Table.ColumnCount", "Table.ColumnNames", "Table.ColumnsOfType", "Table.Combine", "Table.CombineColumns", "Table.Contains", "Table.ContainsAll", "Table.ContainsAny", "Table.DemoteHeaders", "Table.Distinct", "Table.DuplicateColumn", "Table.ExpandListColumn", "Table.ExpandRecordColumn", "Table.ExpandTableColumn", "Table.FillDown", "Table.FillUp", "Table.FilterWithDataTable", "Table.FindText", "Table.First", "Table.FirstN", "Table.FirstValue", "Table.FromColumns", "Table.FromList", "Table.FromPartitions", "Table.FromRecords", "Table.FromRows", "Table.FromValue", "Table.Group", "Table.HasColumns", "Table.InsertRows", "Table.IsDistinct", "Table.IsEmpty", "Table.Join", "Table.Keys", "Table.Last", "Table.LastN", "Table.MatchesAllRows", "Table.MatchesAnyRows", "Table.Max", "Table.MaxN", "Table.Min", "Table.MinN", "Table.NestedJoin", "Table.Partition", "Table.PartitionValues", "Table.Pivot", "Table.PositionOf", "Table.PositionOfAny", "Table.PrefixColumns", "Table.Profile", "Table.PromoteHeaders", "Table.Range", "Table.RemoveColumns", "Table.RemoveFirstN", "Table.RemoveLastN", "Table.RemoveMatchingRows", "Table.RemoveRows", "Table.RemoveRowsWithErrors", "Table.RenameColumns", "Table.ReorderColumns", "Table.Repeat", "Table.ReplaceErrorValues", "Table.ReplaceKeys", "Table.ReplaceMatchingRows", "Table.ReplaceRelationshipIdentity", "Table.ReplaceRows", "Table.ReplaceValue", "Table.ReverseRows", "Table.RowCount", "Table.Schema", "Table.SelectColumns", "Table.SelectRows", "Table.SelectRowsWithErrors", "Table.SingleRow", "Table.Skip", "Table.Sort", "Table.SplitColumn", "Table.ToColumns", "Table.ToList", "Table.ToRecords", "Table.ToRows", "Table.TransformColumnNames", "Table.TransformColumnTypes", "Table.TransformColumns", "Table.TransformRows", "Table.Transpose", "Table.Unpivot", "Table.UnpivotOtherColumns", "Table.View", "Table.ViewFunction", "TableAction.DeleteRows", "TableAction.InsertRows", "TableAction.UpdateRows", "Tables.GetRelationships", "Teradata.Database", "Text.AfterDelimiter", "Text.At", "Text.BeforeDelimiter", "Text.BetweenDelimiters", "Text.Clean", "Text.Combine", "Text.Contains", "Text.End", "Text.EndsWith", "Text.Format", "Text.From", "Text.FromBinary", "Text.Insert", "Text.Length", "Text.Lower", "Text.Middle", "Text.NewGuid", "Text.PadEnd", "Text.PadStart", "Text.PositionOf", "Text.PositionOfAny", "Text.Proper", "Text.Range", "Text.Remove", "Text.RemoveRange", "Text.Repeat", "Text.Replace", "Text.ReplaceRange", "Text.Select", "Text.Split", "Text.SplitAny", "Text.Start", "Text.StartsWith", "Text.ToBinary", "Text.ToList", "Text.Trim", "Text.TrimEnd", "Text.TrimStart", "Text.Upper", "Time.EndOfHour", "Time.From", "Time.FromText", "Time.Hour", "Time.Minute", "Time.Second", "Time.StartOfHour", "Time.ToRecord", "Time.ToText", "Type.AddTableKey", "Type.ClosedRecord", "Type.Facets", "Type.ForFunction", "Type.ForRecord", "Type.FunctionParameters", "Type.FunctionRequiredParameters", "Type.FunctionReturn", "Type.Is", "Type.IsNullable", "Type.IsOpenRecord", "Type.ListItem", "Type.NonNullable", "Type.OpenRecord", "Type.RecordFields", "Type.ReplaceFacets", "Type.ReplaceTableKeys", "Type.TableColumn", "Type.TableKeys", "Type.TableRow", "Type.TableSchema", "Type.Union", "Uri.BuildQueryString", "Uri.Combine", "Uri.EscapeDataString", "Uri.Parts", "Value.Add", "Value.As", "Value.Compare", "Value.Divide", "Value.Equals", "Value.Firewall", "Value.FromText", "Value.Is", "Value.Metadata", "Value.Multiply", "Value.NativeQuery", "Value.NullableEquals", "Value.RemoveMetadata", "Value.ReplaceMetadata", "Value.ReplaceType", "Value.Subtract", "Value.Type", "ValueAction.NativeStatement", "ValueAction.Replace", "Variable.Value", "Web.Contents", "Web.Page", "WebAction.Request", "Xml.Document", "Xml.Tables"], builtinConstants: ["BinaryEncoding.Base64", "BinaryEncoding.Hex", "BinaryOccurrence.Optional", "BinaryOccurrence.Repeating", "BinaryOccurrence.Required", "ByteOrder.BigEndian", "ByteOrder.LittleEndian", "Compression.Deflate", "Compression.GZip", "CsvStyle.QuoteAfterDelimiter", "CsvStyle.QuoteAlways", "Culture.Current", "Day.Friday", "Day.Monday", "Day.Saturday", "Day.Sunday", "Day.Thursday", "Day.Tuesday", "Day.Wednesday", "ExtraValues.Error", "ExtraValues.Ignore", "ExtraValues.List", "GroupKind.Global", "GroupKind.Local", "JoinAlgorithm.Dynamic", "JoinAlgorithm.LeftHash", "JoinAlgorithm.LeftIndex", "JoinAlgorithm.PairwiseHash", "JoinAlgorithm.RightHash", "JoinAlgorithm.RightIndex", "JoinAlgorithm.SortMerge", "JoinKind.FullOuter", "JoinKind.Inner", "JoinKind.LeftAnti", "JoinKind.LeftOuter", "JoinKind.RightAnti", "JoinKind.RightOuter", "JoinSide.Left", "JoinSide.Right", "MissingField.Error", "MissingField.Ignore", "MissingField.UseNull", "Number.E", "Number.Epsilon", "Number.NaN", "Number.NegativeInfinity", "Number.PI", "Number.PositiveInfinity", "Occurrence.All", "Occurrence.First", "Occurrence.Last", "Occurrence.Optional", "Occurrence.Repeating", "Occurrence.Required", "Order.Ascending", "Order.Descending", "Precision.Decimal", "Precision.Double", "QuoteStyle.Csv", "QuoteStyle.None", "RelativePosition.FromEnd", "RelativePosition.FromStart", "RoundingMode.AwayFromZero", "RoundingMode.Down", "RoundingMode.ToEven", "RoundingMode.TowardZero", "RoundingMode.Up", "SapHanaDistribution.All", "SapHanaDistribution.Connection", "SapHanaDistribution.Off", "SapHanaDistribution.Statement", "SapHanaRangeOperator.Equals", "SapHanaRangeOperator.GreaterThan", "SapHanaRangeOperator.GreaterThanOrEquals", "SapHanaRangeOperator.LessThan", "SapHanaRangeOperator.LessThanOrEquals", "SapHanaRangeOperator.NotEquals", "TextEncoding.Ascii", "TextEncoding.BigEndianUnicode", "TextEncoding.Unicode", "TextEncoding.Utf16", "TextEncoding.Utf8", "TextEncoding.Windows", "TraceLevel.Critical", "TraceLevel.Error", "TraceLevel.Information", "TraceLevel.Verbose", "TraceLevel.Warning", "WebMethod.Delete", "WebMethod.Get", "WebMethod.Head", "WebMethod.Patch", "WebMethod.Post", "WebMethod.Put"], builtinTypes: ["Action.Type", "Any.Type", "Binary.Type", "BinaryEncoding.Type", "BinaryOccurrence.Type", "Byte.Type", "ByteOrder.Type", "Character.Type", "Compression.Type", "CsvStyle.Type", "Currency.Type", "Date.Type", "DateTime.Type", "DateTimeZone.Type", "Day.Type", "Decimal.Type", "Double.Type", "Duration.Type", "ExtraValues.Type", "Function.Type", "GroupKind.Type", "Guid.Type", "Int16.Type", "Int32.Type", "Int64.Type", "Int8.Type", "JoinAlgorithm.Type", "JoinKind.Type", "JoinSide.Type", "List.Type", "Logical.Type", "MissingField.Type", "None.Type", "Null.Type", "Number.Type", "Occurrence.Type", "Order.Type", "Password.Type", "Percentage.Type", "Precision.Type", "QuoteStyle.Type", "Record.Type", "RelativePosition.Type", "RoundingMode.Type", "SapHanaDistribution.Type", "SapHanaRangeOperator.Type", "Single.Type", "Table.Type", "Text.Type", "TextEncoding.Type", "Time.Type", "TraceLevel.Type", "Type.Type", "Uri.Type", "WebMethod.Type"], tokenizer: {root: [[/#"[\w \.]+"/, "identifier.quote"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+([eE][\-+]?\d+)?/, "number"], [/(#?[a-z]+)\b/, {cases: {"@typeKeywords": "type", "@keywords": "keyword", "@constants": "constant", "@constructors": "constructor", "@operatorKeywords": "operators", "@default": "identifier"}}], [/\b([A-Z][a-zA-Z0-9]+\.Type)\b/, {cases: {"@builtinTypes": "type", "@default": "identifier"}}], [/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/, {cases: {"@builtinFunctions": "keyword.function", "@builtinConstants": "constant", "@default": "identifier"}}], [/\b([a-zA-Z_][\w\.]*)\b/, "identifier"], {include: "@whitespace"}, {include: "@comments"}, {include: "@strings"}, [/[{}()\[\]]/, "@brackets"], [/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operators"], [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], strings: [['"', "string", "@string"]], string: [['""', "string.escape"], ['"', "string", "@pop"], [".", "string"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["[", "]"], ["(", ")"], ["{", "}"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment", "identifier"]}, {open: "[", close: "]", notIn: ["string", "comment", "identifier"]}, {open: "(", close: ")", notIn: ["string", "comment", "identifier"]}, {open: "{", close: "}", notIn: ["string", "comment", "identifier"]}]}, r = {defaultToken: "", tokenPostfix: ".pq", ignoreCase: false, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "{", close: "}", token: "delimiter.brackets"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], operatorKeywords: ["and", "not", "or"], keywords: ["as", "each", "else", "error", "false", "if", "in", "is", "let", "meta", "otherwise", "section", "shared", "then", "true", "try", "type"], constructors: ["#binary", "#date", "#datetime", "#datetimezone", "#duration", "#table", "#time"], constants: ["#infinity", "#nan", "#sections", "#shared"], typeKeywords: ["action", "any", "anynonnull", "none", "null", "logical", "number", "time", "date", "datetime", "datetimezone", "duration", "text", "binary", "list", "record", "table", "function"], builtinFunctions: ["Access.Database", "Action.Return", "Action.Sequence", "Action.Try", "ActiveDirectory.Domains", "AdoDotNet.DataSource", "AdoDotNet.Query", "AdobeAnalytics.Cubes", "AnalysisServices.Database", "AnalysisServices.Databases", "AzureStorage.BlobContents", "AzureStorage.Blobs", "AzureStorage.Tables", "Binary.Buffer", "Binary.Combine", "Binary.Compress", "Binary.Decompress", "Binary.End", "Binary.From", "Binary.FromList", "Binary.FromText", "Binary.InferContentType", "Binary.Length", "Binary.ToList", "Binary.ToText", "BinaryFormat.7BitEncodedSignedInteger", "BinaryFormat.7BitEncodedUnsignedInteger", "BinaryFormat.Binary", "BinaryFormat.Byte", "BinaryFormat.ByteOrder", "BinaryFormat.Choice", "BinaryFormat.Decimal", "BinaryFormat.Double", "BinaryFormat.Group", "BinaryFormat.Length", "BinaryFormat.List", "BinaryFormat.Null", "BinaryFormat.Record", "BinaryFormat.SignedInteger16", "BinaryFormat.SignedInteger32", "BinaryFormat.SignedInteger64", "BinaryFormat.Single", "BinaryFormat.Text", "BinaryFormat.Transform", "BinaryFormat.UnsignedInteger16", "BinaryFormat.UnsignedInteger32", "BinaryFormat.UnsignedInteger64", "Byte.From", "Character.FromNumber", "Character.ToNumber", "Combiner.CombineTextByDelimiter", "Combiner.CombineTextByEachDelimiter", "Combiner.CombineTextByLengths", "Combiner.CombineTextByPositions", "Combiner.CombineTextByRanges", "Comparer.Equals", "Comparer.FromCulture", "Comparer.Ordinal", "Comparer.OrdinalIgnoreCase", "Csv.Document", "Cube.AddAndExpandDimensionColumn", "Cube.AddMeasureColumn", "Cube.ApplyParameter", "Cube.AttributeMemberId", "Cube.AttributeMemberProperty", "Cube.CollapseAndRemoveColumns", "Cube.Dimensions", "Cube.DisplayFolders", "Cube.Measures", "Cube.Parameters", "Cube.Properties", "Cube.PropertyKey", "Cube.ReplaceDimensions", "Cube.Transform", "Currency.From", "DB2.Database", "Date.AddDays", "Date.AddMonths", "Date.AddQuarters", "Date.AddWeeks", "Date.AddYears", "Date.Day", "Date.DayOfWeek", "Date.DayOfWeekName", "Date.DayOfYear", "Date.DaysInMonth", "Date.EndOfDay", "Date.EndOfMonth", "Date.EndOfQuarter", "Date.EndOfWeek", "Date.EndOfYear", "Date.From", "Date.FromText", "Date.IsInCurrentDay", "Date.IsInCurrentMonth", "Date.IsInCurrentQuarter", "Date.IsInCurrentWeek", "Date.IsInCurrentYear", "Date.IsInNextDay", "Date.IsInNextMonth", "Date.IsInNextNDays", "Date.IsInNextNMonths", "Date.IsInNextNQuarters", "Date.IsInNextNWeeks", "Date.IsInNextNYears", "Date.IsInNextQuarter", "Date.IsInNextWeek", "Date.IsInNextYear", "Date.IsInPreviousDay", "Date.IsInPreviousMonth", "Date.IsInPreviousNDays", "Date.IsInPreviousNMonths", "Date.IsInPreviousNQuarters", "Date.IsInPreviousNWeeks", "Date.IsInPreviousNYears", "Date.IsInPreviousQuarter", "Date.IsInPreviousWeek", "Date.IsInPreviousYear", "Date.IsInYearToDate", "Date.IsLeapYear", "Date.Month", "Date.MonthName", "Date.QuarterOfYear", "Date.StartOfDay", "Date.StartOfMonth", "Date.StartOfQuarter", "Date.StartOfWeek", "Date.StartOfYear", "Date.ToRecord", "Date.ToText", "Date.WeekOfMonth", "Date.WeekOfYear", "Date.Year", "DateTime.AddZone", "DateTime.Date", "DateTime.FixedLocalNow", "DateTime.From", "DateTime.FromFileTime", "DateTime.FromText", "DateTime.IsInCurrentHour", "DateTime.IsInCurrentMinute", "DateTime.IsInCurrentSecond", "DateTime.IsInNextHour", "DateTime.IsInNextMinute", "DateTime.IsInNextNHours", "DateTime.IsInNextNMinutes", "DateTime.IsInNextNSeconds", "DateTime.IsInNextSecond", "DateTime.IsInPreviousHour", "DateTime.IsInPreviousMinute", "DateTime.IsInPreviousNHours", "DateTime.IsInPreviousNMinutes", "DateTime.IsInPreviousNSeconds", "DateTime.IsInPreviousSecond", "DateTime.LocalNow", "DateTime.Time", "DateTime.ToRecord", "DateTime.ToText", "DateTimeZone.FixedLocalNow", "DateTimeZone.FixedUtcNow", "DateTimeZone.From", "DateTimeZone.FromFileTime", "DateTimeZone.FromText", "DateTimeZone.LocalNow", "DateTimeZone.RemoveZone", "DateTimeZone.SwitchZone", "DateTimeZone.ToLocal", "DateTimeZone.ToRecord", "DateTimeZone.ToText", "DateTimeZone.ToUtc", "DateTimeZone.UtcNow", "DateTimeZone.ZoneHours", "DateTimeZone.ZoneMinutes", "Decimal.From", "Diagnostics.ActivityId", "Diagnostics.Trace", "DirectQueryCapabilities.From", "Double.From", "Duration.Days", "Duration.From", "Duration.FromText", "Duration.Hours", "Duration.Minutes", "Duration.Seconds", "Duration.ToRecord", "Duration.ToText", "Duration.TotalDays", "Duration.TotalHours", "Duration.TotalMinutes", "Duration.TotalSeconds", "Embedded.Value", "Error.Record", "Excel.CurrentWorkbook", "Excel.Workbook", "Exchange.Contents", "Expression.Constant", "Expression.Evaluate", "Expression.Identifier", "Facebook.Graph", "File.Contents", "Folder.Contents", "Folder.Files", "Function.From", "Function.Invoke", "Function.InvokeAfter", "Function.IsDataSource", "GoogleAnalytics.Accounts", "Guid.From", "HdInsight.Containers", "HdInsight.Contents", "HdInsight.Files", "Hdfs.Contents", "Hdfs.Files", "Informix.Database", "Int16.From", "Int32.From", "Int64.From", "Int8.From", "ItemExpression.From", "Json.Document", "Json.FromValue", "Lines.FromBinary", "Lines.FromText", "Lines.ToBinary", "Lines.ToText", "List.Accumulate", "List.AllTrue", "List.Alternate", "List.AnyTrue", "List.Average", "List.Buffer", "List.Combine", "List.Contains", "List.ContainsAll", "List.ContainsAny", "List.Count", "List.Covariance", "List.DateTimeZones", "List.DateTimes", "List.Dates", "List.Difference", "List.Distinct", "List.Durations", "List.FindText", "List.First", "List.FirstN", "List.Generate", "List.InsertRange", "List.Intersect", "List.IsDistinct", "List.IsEmpty", "List.Last", "List.LastN", "List.MatchesAll", "List.MatchesAny", "List.Max", "List.MaxN", "List.Median", "List.Min", "List.MinN", "List.Mode", "List.Modes", "List.NonNullCount", "List.Numbers", "List.PositionOf", "List.PositionOfAny", "List.Positions", "List.Product", "List.Random", "List.Range", "List.RemoveFirstN", "List.RemoveItems", "List.RemoveLastN", "List.RemoveMatchingItems", "List.RemoveNulls", "List.RemoveRange", "List.Repeat", "List.ReplaceMatchingItems", "List.ReplaceRange", "List.ReplaceValue", "List.Reverse", "List.Select", "List.Single", "List.SingleOrDefault", "List.Skip", "List.Sort", "List.StandardDeviation", "List.Sum", "List.Times", "List.Transform", "List.TransformMany", "List.Union", "List.Zip", "Logical.From", "Logical.FromText", "Logical.ToText", "MQ.Queue", "MySQL.Database", "Number.Abs", "Number.Acos", "Number.Asin", "Number.Atan", "Number.Atan2", "Number.BitwiseAnd", "Number.BitwiseNot", "Number.BitwiseOr", "Number.BitwiseShiftLeft", "Number.BitwiseShiftRight", "Number.BitwiseXor", "Number.Combinations", "Number.Cos", "Number.Cosh", "Number.Exp", "Number.Factorial", "Number.From", "Number.FromText", "Number.IntegerDivide", "Number.IsEven", "Number.IsNaN", "Number.IsOdd", "Number.Ln", "Number.Log", "Number.Log10", "Number.Mod", "Number.Permutations", "Number.Power", "Number.Random", "Number.RandomBetween", "Number.Round", "Number.RoundAwayFromZero", "Number.RoundDown", "Number.RoundTowardZero", "Number.RoundUp", "Number.Sign", "Number.Sin", "Number.Sinh", "Number.Sqrt", "Number.Tan", "Number.Tanh", "Number.ToText", "OData.Feed", "Odbc.DataSource", "Odbc.Query", "OleDb.DataSource", "OleDb.Query", "Oracle.Database", "Percentage.From", "PostgreSQL.Database", "RData.FromBinary", "Record.AddField", "Record.Combine", "Record.Field", "Record.FieldCount", "Record.FieldNames", "Record.FieldOrDefault", "Record.FieldValues", "Record.FromList", "Record.FromTable", "Record.HasFields", "Record.RemoveFields", "Record.RenameFields", "Record.ReorderFields", "Record.SelectFields", "Record.ToList", "Record.ToTable", "Record.TransformFields", "Replacer.ReplaceText", "Replacer.ReplaceValue", "RowExpression.Column", "RowExpression.From", "Salesforce.Data", "Salesforce.Reports", "SapBusinessWarehouse.Cubes", "SapHana.Database", "SharePoint.Contents", "SharePoint.Files", "SharePoint.Tables", "Single.From", "Soda.Feed", "Splitter.SplitByNothing", "Splitter.SplitTextByAnyDelimiter", "Splitter.SplitTextByDelimiter", "Splitter.SplitTextByEachDelimiter", "Splitter.SplitTextByLengths", "Splitter.SplitTextByPositions", "Splitter.SplitTextByRanges", "Splitter.SplitTextByRepeatedLengths", "Splitter.SplitTextByWhitespace", "Sql.Database", "Sql.Databases", "SqlExpression.SchemaFrom", "SqlExpression.ToExpression", "Sybase.Database", "Table.AddColumn", "Table.AddIndexColumn", "Table.AddJoinColumn", "Table.AddKey", "Table.AggregateTableColumn", "Table.AlternateRows", "Table.Buffer", "Table.Column", "Table.ColumnCount", "Table.ColumnNames", "Table.ColumnsOfType", "Table.Combine", "Table.CombineColumns", "Table.Contains", "Table.ContainsAll", "Table.ContainsAny", "Table.DemoteHeaders", "Table.Distinct", "Table.DuplicateColumn", "Table.ExpandListColumn", "Table.ExpandRecordColumn", "Table.ExpandTableColumn", "Table.FillDown", "Table.FillUp", "Table.FilterWithDataTable", "Table.FindText", "Table.First", "Table.FirstN", "Table.FirstValue", "Table.FromColumns", "Table.FromList", "Table.FromPartitions", "Table.FromRecords", "Table.FromRows", "Table.FromValue", "Table.Group", "Table.HasColumns", "Table.InsertRows", "Table.IsDistinct", "Table.IsEmpty", "Table.Join", "Table.Keys", "Table.Last", "Table.LastN", "Table.MatchesAllRows", "Table.MatchesAnyRows", "Table.Max", "Table.MaxN", "Table.Min", "Table.MinN", "Table.NestedJoin", "Table.Partition", "Table.PartitionValues", "Table.Pivot", "Table.PositionOf", "Table.PositionOfAny", "Table.PrefixColumns", "Table.Profile", "Table.PromoteHeaders", "Table.Range", "Table.RemoveColumns", "Table.RemoveFirstN", "Table.RemoveLastN", "Table.RemoveMatchingRows", "Table.RemoveRows", "Table.RemoveRowsWithErrors", "Table.RenameColumns", "Table.ReorderColumns", "Table.Repeat", "Table.ReplaceErrorValues", "Table.ReplaceKeys", "Table.ReplaceMatchingRows", "Table.ReplaceRelationshipIdentity", "Table.ReplaceRows", "Table.ReplaceValue", "Table.ReverseRows", "Table.RowCount", "Table.Schema", "Table.SelectColumns", "Table.SelectRows", "Table.SelectRowsWithErrors", "Table.SingleRow", "Table.Skip", "Table.Sort", "Table.SplitColumn", "Table.ToColumns", "Table.ToList", "Table.ToRecords", "Table.ToRows", "Table.TransformColumnNames", "Table.TransformColumnTypes", "Table.TransformColumns", "Table.TransformRows", "Table.Transpose", "Table.Unpivot", "Table.UnpivotOtherColumns", "Table.View", "Table.ViewFunction", "TableAction.DeleteRows", "TableAction.InsertRows", "TableAction.UpdateRows", "Tables.GetRelationships", "Teradata.Database", "Text.AfterDelimiter", "Text.At", "Text.BeforeDelimiter", "Text.BetweenDelimiters", "Text.Clean", "Text.Combine", "Text.Contains", "Text.End", "Text.EndsWith", "Text.Format", "Text.From", "Text.FromBinary", "Text.Insert", "Text.Length", "Text.Lower", "Text.Middle", "Text.NewGuid", "Text.PadEnd", "Text.PadStart", "Text.PositionOf", "Text.PositionOfAny", "Text.Proper", "Text.Range", "Text.Remove", "Text.RemoveRange", "Text.Repeat", "Text.Replace", "Text.ReplaceRange", "Text.Select", "Text.Split", "Text.SplitAny", "Text.Start", "Text.StartsWith", "Text.ToBinary", "Text.ToList", "Text.Trim", "Text.TrimEnd", "Text.TrimStart", "Text.Upper", "Time.EndOfHour", "Time.From", "Time.FromText", "Time.Hour", "Time.Minute", "Time.Second", "Time.StartOfHour", "Time.ToRecord", "Time.ToText", "Type.AddTableKey", "Type.ClosedRecord", "Type.Facets", "Type.ForFunction", "Type.ForRecord", "Type.FunctionParameters", "Type.FunctionRequiredParameters", "Type.FunctionReturn", "Type.Is", "Type.IsNullable", "Type.IsOpenRecord", "Type.ListItem", "Type.NonNullable", "Type.OpenRecord", "Type.RecordFields", "Type.ReplaceFacets", "Type.ReplaceTableKeys", "Type.TableColumn", "Type.TableKeys", "Type.TableRow", "Type.TableSchema", "Type.Union", "Uri.BuildQueryString", "Uri.Combine", "Uri.EscapeDataString", "Uri.Parts", "Value.Add", "Value.As", "Value.Compare", "Value.Divide", "Value.Equals", "Value.Firewall", "Value.FromText", "Value.Is", "Value.Metadata", "Value.Multiply", "Value.NativeQuery", "Value.NullableEquals", "Value.RemoveMetadata", "Value.ReplaceMetadata", "Value.ReplaceType", "Value.Subtract", "Value.Type", "ValueAction.NativeStatement", "ValueAction.Replace", "Variable.Value", "Web.Contents", "Web.Page", "WebAction.Request", "Xml.Document", "Xml.Tables"], builtinConstants: ["BinaryEncoding.Base64", "BinaryEncoding.Hex", "BinaryOccurrence.Optional", "BinaryOccurrence.Repeating", "BinaryOccurrence.Required", "ByteOrder.BigEndian", "ByteOrder.LittleEndian", "Compression.Deflate", "Compression.GZip", "CsvStyle.QuoteAfterDelimiter", "CsvStyle.QuoteAlways", "Culture.Current", "Day.Friday", "Day.Monday", "Day.Saturday", "Day.Sunday", "Day.Thursday", "Day.Tuesday", "Day.Wednesday", "ExtraValues.Error", "ExtraValues.Ignore", "ExtraValues.List", "GroupKind.Global", "GroupKind.Local", "JoinAlgorithm.Dynamic", "JoinAlgorithm.LeftHash", "JoinAlgorithm.LeftIndex", "JoinAlgorithm.PairwiseHash", "JoinAlgorithm.RightHash", "JoinAlgorithm.RightIndex", "JoinAlgorithm.SortMerge", "JoinKind.FullOuter", "JoinKind.Inner", "JoinKind.LeftAnti", "JoinKind.LeftOuter", "JoinKind.RightAnti", "JoinKind.RightOuter", "JoinSide.Left", "JoinSide.Right", "MissingField.Error", "MissingField.Ignore", "MissingField.UseNull", "Number.E", "Number.Epsilon", "Number.NaN", "Number.NegativeInfinity", "Number.PI", "Number.PositiveInfinity", "Occurrence.All", "Occurrence.First", "Occurrence.Last", "Occurrence.Optional", "Occurrence.Repeating", "Occurrence.Required", "Order.Ascending", "Order.Descending", "Precision.Decimal", "Precision.Double", "QuoteStyle.Csv", "QuoteStyle.None", "RelativePosition.FromEnd", "RelativePosition.FromStart", "RoundingMode.AwayFromZero", "RoundingMode.Down", "RoundingMode.ToEven", "RoundingMode.TowardZero", "RoundingMode.Up", "SapHanaDistribution.All", "SapHanaDistribution.Connection", "SapHanaDistribution.Off", "SapHanaDistribution.Statement", "SapHanaRangeOperator.Equals", "SapHanaRangeOperator.GreaterThan", "SapHanaRangeOperator.GreaterThanOrEquals", "SapHanaRangeOperator.LessThan", "SapHanaRangeOperator.LessThanOrEquals", "SapHanaRangeOperator.NotEquals", "TextEncoding.Ascii", "TextEncoding.BigEndianUnicode", "TextEncoding.Unicode", "TextEncoding.Utf16", "TextEncoding.Utf8", "TextEncoding.Windows", "TraceLevel.Critical", "TraceLevel.Error", "TraceLevel.Information", "TraceLevel.Verbose", "TraceLevel.Warning", "WebMethod.Delete", "WebMethod.Get", "WebMethod.Head", "WebMethod.Patch", "WebMethod.Post", "WebMethod.Put"], builtinTypes: ["Action.Type", "Any.Type", "Binary.Type", "BinaryEncoding.Type", "BinaryOccurrence.Type", "Byte.Type", "ByteOrder.Type", "Character.Type", "Compression.Type", "CsvStyle.Type", "Currency.Type", "Date.Type", "DateTime.Type", "DateTimeZone.Type", "Day.Type", "Decimal.Type", "Double.Type", "Duration.Type", "ExtraValues.Type", "Function.Type", "GroupKind.Type", "Guid.Type", "Int16.Type", "Int32.Type", "Int64.Type", "Int8.Type", "JoinAlgorithm.Type", "JoinKind.Type", "JoinSide.Type", "List.Type", "Logical.Type", "MissingField.Type", "None.Type", "Null.Type", "Number.Type", "Occurrence.Type", "Order.Type", "Password.Type", "Percentage.Type", "Precision.Type", "QuoteStyle.Type", "Record.Type", "RelativePosition.Type", "RoundingMode.Type", "SapHanaDistribution.Type", "SapHanaRangeOperator.Type", "Single.Type", "Table.Type", "Text.Type", "TextEncoding.Type", "Time.Type", "TraceLevel.Type", "Type.Type", "Uri.Type", "WebMethod.Type"], tokenizer: {root: [[/#"[\w \.]+"/, "identifier.quote"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+([eE][\-+]?\d+)?/, "number"], [/(#?[a-z]+)\b/, {cases: {"@typeKeywords": "type", "@keywords": "keyword", "@constants": "constant", "@constructors": "constructor", "@operatorKeywords": "operators", "@default": "identifier"}}], [/\b([A-Z][a-zA-Z0-9]+\.Type)\b/, {cases: {"@builtinTypes": "type", "@default": "identifier"}}], [/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/, {cases: {"@builtinFunctions": "keyword.function", "@builtinConstants": "constant", "@default": "identifier"}}], [/\b([a-zA-Z_][\w\.]*)\b/, "identifier"], {include: "@whitespace"}, {include: "@comments"}, {include: "@strings"}, [/[{}()\[\]]/, "@brackets"], [/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operators"], [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], strings: [['"', "string", "@string"]], string: [['""', "string.escape"], ['"', "string", "@pop"], [".", "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "#", blockComment: ["<#", "#>"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".ps1", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], keywords: ["begin", "break", "catch", "class", "continue", "data", "define", "do", "dynamicparam", "else", "elseif", "end", "exit", "filter", "finally", "for", "foreach", "from", "function", "if", "in", "param", "process", "return", "switch", "throw", "trap", "try", "until", "using", "var", "while", "workflow", "parallel", "sequence", "inlinescript", "configuration"], helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/, symbols: /[=><!~?&%|+\-*\/\^;\.,]+/, escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_][\w-]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/^:\w*/, "metatag"], [/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/, "variable"], [/<#/, "comment", "@comment"], [/#.*$/, "comment"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+?/, "number"], [/[;,.]/, "delimiter"], [/\@"/, "string", '@herestring."'], [/\@'/, "string", "@herestring.'"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\$`]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, {cases: {"@eos": {token: "string.escape", next: "@popall"}, "@default": "string.escape"}}], [/`./, {cases: {"@eos": {token: "string.escape.invalid", next: "@popall"}, "@default": "string.escape.invalid"}}], [/\$[\w]+$/, {cases: {'$S2=="': {token: "variable", next: "@popall"}, "@default": {token: "string", next: "@popall"}}}], [/\$[\w]+/, {cases: {'$S2=="': "variable", "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}}}]], herestring: [[/^\s*(["'])@/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^\$`]+/, "string"], [/@escapes/, "string.escape"], [/`./, "string.escape.invalid"], [/\$[\w]+/, {cases: {'$S2=="': "variable", "@default": "string"}}]], comment: [[/[^#\.]+/, "comment"], [/#>/, "comment", "@pop"], [/(\.)(@helpKeywords)(?!\w)/, {token: "comment.keyword.$2"}], [/[\.#]/, "comment"]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: {lineComment: "#", blockComment: ["<#", "#>"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".ps1", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], keywords: ["begin", "break", "catch", "class", "continue", "data", "define", "do", "dynamicparam", "else", "elseif", "end", "exit", "filter", "finally", "for", "foreach", "from", "function", "if", "in", "param", "process", "return", "switch", "throw", "trap", "try", "until", "using", "var", "while", "workflow", "parallel", "sequence", "inlinescript", "configuration"], helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/, symbols: /[=><!~?&%|+\-*\/\^;\.,]+/, escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/[a-zA-Z_][\w-]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[ \t\r\n]+/, ""], [/^:\w*/, "metatag"], [/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/, "variable"], [/<#/, "comment", "@comment"], [/#.*$/, "comment"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+?/, "number"], [/[;,.]/, "delimiter"], [/\@"/, "string", '@herestring."'], [/\@'/, "string", "@herestring.'"], [/"/, {cases: {"@eos": "string", "@default": {token: "string", next: '@string."'}}}], [/'/, {cases: {"@eos": "string", "@default": {token: "string", next: "@string.'"}}}]], string: [[/[^"'\$`]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, {cases: {"@eos": {token: "string.escape", next: "@popall"}, "@default": "string.escape"}}], [/`./, {cases: {"@eos": {token: "string.escape.invalid", next: "@popall"}, "@default": "string.escape.invalid"}}], [/\$[\w]+$/, {cases: {'$S2=="': {token: "variable", next: "@popall"}, "@default": {token: "string", next: "@popall"}}}], [/\$[\w]+/, {cases: {'$S2=="': "variable", "@default": "string"}}], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}}}]], herestring: [[/^\s*(["'])@/, {cases: {"$1==$S2": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^\$`]+/, "string"], [/@escapes/, "string.escape"], [/`./, "string.escape.invalid"], [/\$[\w]+/, {cases: {'$S2=="': "variable", "@default": "string"}}]], comment: [[/[^#\.]+/, "comment"], [/#>/, "comment", "@pop"], [/(\.)(@helpKeywords)(?!\w)/, {token: "comment.keyword.$2"}], [/[\.#]/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}], folding: {offSide: true}}, o = {defaultToken: "", tokenPostfix: ".pug", ignoreCase: true, brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], keywords: ["append", "block", "case", "default", "doctype", "each", "else", "extends", "for", "if", "in", "include", "mixin", "typeof", "unless", "var", "when"], tags: ["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "datalist", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "keygen", "kbd", "label", "li", "link", "map", "mark", "menu", "meta", "meter", "nav", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "tracks", "tt", "u", "ul", "video", "wbr"], symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^(\s*)([a-zA-Z_-][\w-]*)/, {cases: {"$2@tags": {cases: {"@eos": ["", "tag"], "@default": ["", {token: "tag", next: "@tag.$1"}]}}, "$2@keywords": ["", {token: "keyword.$2"}], "@default": ["", ""]}}], [/^(\s*)(#[a-zA-Z_-][\w-]*)/, {cases: {"@eos": ["", "tag.id"], "@default": ["", {token: "tag.id", next: "@tag.$1"}]}}], [/^(\s*)(\.[a-zA-Z_-][\w-]*)/, {cases: {"@eos": ["", "tag.class"], "@default": ["", {token: "tag.class", next: "@tag.$1"}]}}], [/^(\s*)(\|.*)$/, ""], {include: "@whitespace"}, [/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\d+/, "number"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], tag: [[/(\.)(\s*$)/, [{token: "delimiter", next: "@blockText.$S2."}, ""]], [/\s+/, {token: "", next: "@simpleText"}], [/#[a-zA-Z_-][\w-]*/, {cases: {"@eos": {token: "tag.id", next: "@pop"}, "@default": "tag.id"}}], [/\.[a-zA-Z_-][\w-]*/, {cases: {"@eos": {token: "tag.class", next: "@pop"}, "@default": "tag.class"}}], [/\(/, {token: "delimiter.parenthesis", next: "@attributeList"}]], simpleText: [[/[^#]+$/, {token: "", next: "@popall"}], [/[^#]+/, {token: ""}], [/(#{)([^}]*)(})/, {cases: {"@eos": ["interpolation.delimiter", "interpolation", {token: "interpolation.delimiter", next: "@popall"}], "@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]}}], [/#$/, {token: "", next: "@popall"}], [/#/, ""]], attributeList: [[/\s+/, ""], [/(\w+)(\s*=\s*)("|')/, ["attribute.name", "delimiter", {token: "attribute.value", next: "@value.$3"}]], [/\w+/, "attribute.name"], [/,/, {cases: {"@eos": {token: "attribute.delimiter", next: "@popall"}, "@default": "attribute.delimiter"}}], [/\)$/, {token: "delimiter.parenthesis", next: "@popall"}], [/\)/, {token: "delimiter.parenthesis", next: "@pop"}]], whitespace: [[/^(\s*)(\/\/.*)$/, {token: "comment", next: "@blockText.$1.comment"}], [/[ \t\r\n]+/, ""], [/<!--/, {token: "comment", next: "@comment"}]], blockText: [[/^\s+.*$/, {cases: {"($S2\\s+.*$)": {token: "$S3"}, "@default": {token: "@rematch", next: "@popall"}}}], [/./, {token: "@rematch", next: "@popall"}]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, {token: "comment", next: "@pop"}], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]], string: [[/[^\\"'#]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, {cases: {"@eos": {token: "string.escape", next: "@popall"}, "@default": "string.escape"}}], [/\\./, {cases: {"@eos": {token: "string.escape.invalid", next: "@popall"}, "@default": "string.escape.invalid"}}], [/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]], [/#/, "string"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": {token: "string"}}}]], value: [[/[^\\"']+/, {cases: {"@eos": {token: "attribute.value", next: "@popall"}, "@default": "attribute.value"}}], [/\\./, {cases: {"@eos": {token: "attribute.value", next: "@popall"}, "@default": "attribute.value"}}], [/["']/, {cases: {"$#==$S2": {token: "attribute.value", next: "@pop"}, "@default": {token: "attribute.value"}}}]]}}; + var i = {comments: {lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}], folding: {offSide: true}}, r = {defaultToken: "", tokenPostfix: ".pug", ignoreCase: true, brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}], keywords: ["append", "block", "case", "default", "doctype", "each", "else", "extends", "for", "if", "in", "include", "mixin", "typeof", "unless", "var", "when"], tags: ["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "datalist", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "keygen", "kbd", "label", "li", "link", "map", "mark", "menu", "meta", "meter", "nav", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "tracks", "tt", "u", "ul", "video", "wbr"], symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/^(\s*)([a-zA-Z_-][\w-]*)/, {cases: {"$2@tags": {cases: {"@eos": ["", "tag"], "@default": ["", {token: "tag", next: "@tag.$1"}]}}, "$2@keywords": ["", {token: "keyword.$2"}], "@default": ["", ""]}}], [/^(\s*)(#[a-zA-Z_-][\w-]*)/, {cases: {"@eos": ["", "tag.id"], "@default": ["", {token: "tag.id", next: "@tag.$1"}]}}], [/^(\s*)(\.[a-zA-Z_-][\w-]*)/, {cases: {"@eos": ["", "tag.class"], "@default": ["", {token: "tag.class", next: "@tag.$1"}]}}], [/^(\s*)(\|.*)$/, ""], {include: "@whitespace"}, [/[a-zA-Z_$][\w$]*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": ""}}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"], [/\d+/, "number"], [/"/, "string", '@string."'], [/'/, "string", "@string.'"]], tag: [[/(\.)(\s*$)/, [{token: "delimiter", next: "@blockText.$S2."}, ""]], [/\s+/, {token: "", next: "@simpleText"}], [/#[a-zA-Z_-][\w-]*/, {cases: {"@eos": {token: "tag.id", next: "@pop"}, "@default": "tag.id"}}], [/\.[a-zA-Z_-][\w-]*/, {cases: {"@eos": {token: "tag.class", next: "@pop"}, "@default": "tag.class"}}], [/\(/, {token: "delimiter.parenthesis", next: "@attributeList"}]], simpleText: [[/[^#]+$/, {token: "", next: "@popall"}], [/[^#]+/, {token: ""}], [/(#{)([^}]*)(})/, {cases: {"@eos": ["interpolation.delimiter", "interpolation", {token: "interpolation.delimiter", next: "@popall"}], "@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]}}], [/#$/, {token: "", next: "@popall"}], [/#/, ""]], attributeList: [[/\s+/, ""], [/(\w+)(\s*=\s*)("|')/, ["attribute.name", "delimiter", {token: "attribute.value", next: "@value.$3"}]], [/\w+/, "attribute.name"], [/,/, {cases: {"@eos": {token: "attribute.delimiter", next: "@popall"}, "@default": "attribute.delimiter"}}], [/\)$/, {token: "delimiter.parenthesis", next: "@popall"}], [/\)/, {token: "delimiter.parenthesis", next: "@pop"}]], whitespace: [[/^(\s*)(\/\/.*)$/, {token: "comment", next: "@blockText.$1.comment"}], [/[ \t\r\n]+/, ""], [/<!--/, {token: "comment", next: "@comment"}]], blockText: [[/^\s+.*$/, {cases: {"($S2\\s+.*$)": {token: "$S3"}, "@default": {token: "@rematch", next: "@popall"}}}], [/./, {token: "@rematch", next: "@popall"}]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, {token: "comment", next: "@pop"}], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]], string: [[/[^\\"'#]+/, {cases: {"@eos": {token: "string", next: "@popall"}, "@default": "string"}}], [/@escapes/, {cases: {"@eos": {token: "string.escape", next: "@popall"}, "@default": "string.escape"}}], [/\\./, {cases: {"@eos": {token: "string.escape.invalid", next: "@popall"}, "@default": "string.escape.invalid"}}], [/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]], [/#/, "string"], [/["']/, {cases: {"$#==$S2": {token: "string", next: "@pop"}, "@default": {token: "string"}}}]], value: [[/[^\\"']+/, {cases: {"@eos": {token: "attribute.value", next: "@popall"}, "@default": "attribute.value"}}], [/\\./, {cases: {"@eos": {token: "attribute.value", next: "@popall"}, "@default": "attribute.value"}}], [/["']/, {cases: {"$#==$S2": {token: "attribute.value", next: "@pop"}, "@default": {token: "attribute.value"}}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return o; - }), n.d(t, "language", function() { return r; + }), n.d(t, "language", function() { + return o; }); - var i = n(95), o = {comments: {lineComment: "#", blockComment: ["'''", "'''"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], onEnterRules: [{beforeText: new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"), action: {indentAction: i.a.IndentAction.Indent}}], folding: {offSide: true, markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, r = {defaultToken: "", tokenPostfix: ".python", keywords: ["False", "None", "True", "and", "as", "assert", "async", "await", "break", "class", "continue", "def", "del", "elif", "else", "except", "exec", "finally", "for", "from", "global", "if", "import", "in", "is", "lambda", "nonlocal", "not", "or", "pass", "print", "raise", "return", "try", "while", "with", "yield", "int", "float", "long", "complex", "hex", "abs", "all", "any", "apply", "basestring", "bin", "bool", "buffer", "bytearray", "callable", "chr", "classmethod", "cmp", "coerce", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "execfile", "file", "filter", "format", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "id", "input", "intern", "isinstance", "issubclass", "iter", "len", "locals", "list", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "print", "property", "reversed", "range", "raw_input", "reduce", "reload", "repr", "reversed", "round", "self", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "unichr", "unicode", "vars", "xrange", "zip", "__dict__", "__methods__", "__members__", "__class__", "__bases__", "__name__", "__mro__", "__subclasses__", "__init__", "__import__"], brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], tokenizer: {root: [{include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, [/[,:;]/, "delimiter"], [/[{}\[\]()]/, "@brackets"], [/@[a-zA-Z_]\w*/, "tag"], [/[a-zA-Z_]\w*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}]], whitespace: [[/\s+/, "white"], [/(^#.*$)/, "comment"], [/'''/, "string", "@endDocString"], [/"""/, "string", "@endDblDocString"]], endDocString: [[/[^']+/, "string"], [/\\'/, "string"], [/'''/, "string", "@popall"], [/'/, "string"]], endDblDocString: [[/[^"]+/, "string"], [/\\"/, "string"], [/"""/, "string", "@popall"], [/"/, "string"]], numbers: [[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]], strings: [[/'$/, "string.escape", "@popall"], [/'/, "string.escape", "@stringBody"], [/"$/, "string.escape", "@popall"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/[^\\']+$/, "string", "@popall"], [/[^\\']+/, "string"], [/\\./, "string"], [/'/, "string.escape", "@popall"], [/\\$/, "string"]], dblStringBody: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string"], [/"/, "string.escape", "@popall"], [/\\$/, "string"]]}}; + var i = n(95), r = {comments: {lineComment: "#", blockComment: ["'''", "'''"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"', notIn: ["string"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], onEnterRules: [{beforeText: new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"), action: {indentAction: i.a.IndentAction.Indent}}], folding: {offSide: true, markers: {start: new RegExp("^\\s*#region\\b"), end: new RegExp("^\\s*#endregion\\b")}}}, o = {defaultToken: "", tokenPostfix: ".python", keywords: ["False", "None", "True", "and", "as", "assert", "async", "await", "break", "class", "continue", "def", "del", "elif", "else", "except", "exec", "finally", "for", "from", "global", "if", "import", "in", "is", "lambda", "nonlocal", "not", "or", "pass", "print", "raise", "return", "try", "while", "with", "yield", "int", "float", "long", "complex", "hex", "abs", "all", "any", "apply", "basestring", "bin", "bool", "buffer", "bytearray", "callable", "chr", "classmethod", "cmp", "coerce", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "execfile", "file", "filter", "format", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "id", "input", "intern", "isinstance", "issubclass", "iter", "len", "locals", "list", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "print", "property", "reversed", "range", "raw_input", "reduce", "reload", "repr", "reversed", "round", "self", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "unichr", "unicode", "vars", "xrange", "zip", "__dict__", "__methods__", "__members__", "__class__", "__bases__", "__name__", "__mro__", "__subclasses__", "__init__", "__import__"], brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], tokenizer: {root: [{include: "@whitespace"}, {include: "@numbers"}, {include: "@strings"}, [/[,:;]/, "delimiter"], [/[{}\[\]()]/, "@brackets"], [/@[a-zA-Z_]\w*/, "tag"], [/[a-zA-Z_]\w*/, {cases: {"@keywords": "keyword", "@default": "identifier"}}]], whitespace: [[/\s+/, "white"], [/(^#.*$)/, "comment"], [/'''/, "string", "@endDocString"], [/"""/, "string", "@endDblDocString"]], endDocString: [[/[^']+/, "string"], [/\\'/, "string"], [/'''/, "string", "@popall"], [/'/, "string"]], endDblDocString: [[/[^"]+/, "string"], [/\\"/, "string"], [/"""/, "string", "@popall"], [/"/, "string"]], numbers: [[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]], strings: [[/'$/, "string.escape", "@popall"], [/'/, "string.escape", "@stringBody"], [/"$/, "string.escape", "@popall"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/[^\\']+$/, "string", "@popall"], [/[^\\']+/, "string"], [/\\./, "string"], [/'/, "string.escape", "@popall"], [/\\$/, "string"]], dblStringBody: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string"], [/"/, "string.escape", "@popall"], [/\\$/, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, o = {defaultToken: "", tokenPostfix: ".r", roxygen: ["@param", "@return", "@name", "@rdname", "@examples", "@include", "@docType", "@S3method", "@TODO", "@aliases", "@alias", "@assignee", "@author", "@callGraphDepth", "@callGraph", "@callGraphPrimitives", "@concept", "@exportClass", "@exportMethod", "@exportPattern", "@export", "@formals", "@format", "@importClassesFrom", "@importFrom", "@importMethodsFrom", "@import", "@keywords", "@method", "@nord", "@note", "@references", "@seealso", "@setClass", "@slot", "@source", "@title", "@usage"], constants: ["NULL", "FALSE", "TRUE", "NA", "Inf", "NaN ", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_ ", "T", "F", "LETTERS", "letters", "month.abb", "month.name", "pi", "R.version.string"], keywords: ["break", "next", "return", "if", "else", "for", "in", "repeat", "while", "array", "category", "character", "complex", "double", "function", "integer", "list", "logical", "matrix", "numeric", "vector", "data.frame", "factor", "library", "require", "attach", "detach", "source"], special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"], brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], tokenizer: {root: [{include: "@numbers"}, {include: "@strings"}, [/[{}\[\]()]/, "@brackets"], {include: "@operators"}, [/#'/, "comment.doc", "@roxygen"], [/(^#.*$)/, "comment"], [/\s+/, "white"], [/[,:;]/, "delimiter"], [/@[a-zA-Z]\w*/, "tag"], [/[a-zA-Z]\w*/, {cases: {"@keywords": "keyword", "@constants": "constant", "@default": "identifier"}}]], roxygen: [[/@\w+/, {cases: {"@roxygen": "tag", "@eos": {token: "comment.doc", next: "@pop"}, "@default": "comment.doc"}}], [/\s+/, {cases: {"@eos": {token: "comment.doc", next: "@pop"}, "@default": "comment.doc"}}], [/.*/, {token: "comment.doc", next: "@pop"}]], numbers: [[/0[xX][0-9a-fA-F]+/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]], operators: [[/<{1,2}-/, "operator"], [/->{1,2}/, "operator"], [/%[^%\s]+%/, "operator"], [/\*\*/, "operator"], [/%%/, "operator"], [/&&/, "operator"], [/\|\|/, "operator"], [/<</, "operator"], [/>>/, "operator"], [/[-+=&|!<>^~*/:$]/, "operator"]], strings: [[/'/, "string.escape", "@stringBody"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/\\./, {cases: {"@special": "string", "@default": "error-token"}}], [/'/, "string.escape", "@popall"], [/./, "string"]], dblStringBody: [[/\\./, {cases: {"@special": "string", "@default": "error-token"}}], [/"/, "string.escape", "@popall"], [/./, "string"]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, r = {defaultToken: "", tokenPostfix: ".r", roxygen: ["@param", "@return", "@name", "@rdname", "@examples", "@include", "@docType", "@S3method", "@TODO", "@aliases", "@alias", "@assignee", "@author", "@callGraphDepth", "@callGraph", "@callGraphPrimitives", "@concept", "@exportClass", "@exportMethod", "@exportPattern", "@export", "@formals", "@format", "@importClassesFrom", "@importFrom", "@importMethodsFrom", "@import", "@keywords", "@method", "@nord", "@note", "@references", "@seealso", "@setClass", "@slot", "@source", "@title", "@usage"], constants: ["NULL", "FALSE", "TRUE", "NA", "Inf", "NaN ", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_ ", "T", "F", "LETTERS", "letters", "month.abb", "month.name", "pi", "R.version.string"], keywords: ["break", "next", "return", "if", "else", "for", "in", "repeat", "while", "array", "category", "character", "complex", "double", "function", "integer", "list", "logical", "matrix", "numeric", "vector", "data.frame", "factor", "library", "require", "attach", "detach", "source"], special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"], brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], tokenizer: {root: [{include: "@numbers"}, {include: "@strings"}, [/[{}\[\]()]/, "@brackets"], {include: "@operators"}, [/#'/, "comment.doc", "@roxygen"], [/(^#.*$)/, "comment"], [/\s+/, "white"], [/[,:;]/, "delimiter"], [/@[a-zA-Z]\w*/, "tag"], [/[a-zA-Z]\w*/, {cases: {"@keywords": "keyword", "@constants": "constant", "@default": "identifier"}}]], roxygen: [[/@\w+/, {cases: {"@roxygen": "tag", "@eos": {token: "comment.doc", next: "@pop"}, "@default": "comment.doc"}}], [/\s+/, {cases: {"@eos": {token: "comment.doc", next: "@pop"}, "@default": "comment.doc"}}], [/.*/, {token: "comment.doc", next: "@pop"}]], numbers: [[/0[xX][0-9a-fA-F]+/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]], operators: [[/<{1,2}-/, "operator"], [/->{1,2}/, "operator"], [/%[^%\s]+%/, "operator"], [/\*\*/, "operator"], [/%%/, "operator"], [/&&/, "operator"], [/\|\|/, "operator"], [/<</, "operator"], [/>>/, "operator"], [/[-+=&|!<>^~*/:$]/, "operator"]], strings: [[/'/, "string.escape", "@stringBody"], [/"/, "string.escape", "@dblStringBody"]], stringBody: [[/\\./, {cases: {"@special": "string", "@default": "error-token"}}], [/'/, "string.escape", "@popall"], [/./, "string"]], dblStringBody: [[/\\./, {cases: {"@special": "string", "@default": "error-token"}}], [/"/, "string.escape", "@popall"], [/./, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { - return r; + return o; }), n.d(t, "language", function() { return s; }); - var i = n(95), o = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], r = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["<!--", "-->"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + o.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/(\w[\w\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + o.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}]}, s = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/@@/], [/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[ \t\r\n]+/], [/[^<@]+/]], doctype: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], razorInSimpleState: [[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"], [/@[{(]/, "metatag.cs", "@razorRootTopLevel"], [/(@)(\s*[\w]+)/, ["metatag.cs", {token: "identifier.cs", switchTo: "@$S2.$S3"}]], [/[})]/, {token: "metatag.cs", switchTo: "@$S2.$S3"}], [/\*@/, {token: "comment.cs", switchTo: "@$S2.$S3"}]], razorInEmbeddedState: [[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"], [/@[{(]/, "metatag.cs", "@razorRootTopLevel"], [/(@)(\s*[\w]+)/, ["metatag.cs", {token: "identifier.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}]], [/[})]/, {token: "metatag.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], [/\*@/, {token: "comment.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}]], razorBlockCommentTopLevel: [[/\*@/, "@rematch", "@pop"], [/[^*]+/, "comment.cs"], [/./, "comment.cs"]], razorBlockComment: [[/\*@/, "comment.cs", "@pop"], [/[^*]+/, "comment.cs"], [/./, "comment.cs"]], razorRootTopLevel: [[/\{/, "delimiter.bracket.cs", "@razorRoot"], [/\(/, "delimiter.parenthesis.cs", "@razorRoot"], [/[})]/, "@rematch", "@pop"], {include: "razorCommon"}], razorRoot: [[/\{/, "delimiter.bracket.cs", "@razorRoot"], [/\(/, "delimiter.parenthesis.cs", "@razorRoot"], [/\}/, "delimiter.bracket.cs", "@pop"], [/\)/, "delimiter.parenthesis.cs", "@pop"], {include: "razorCommon"}], razorCommon: [[/[a-zA-Z_]\w*/, {cases: {"@razorKeywords": {token: "keyword.cs"}, "@default": "identifier.cs"}}], [/[\[\]]/, "delimiter.array.cs"], [/[ \t\r\n]+/], [/\/\/.*$/, "comment.cs"], [/@\*/, "comment.cs", "@razorBlockComment"], [/"([^"]*)"/, "string.cs"], [/'([^']*)'/, "string.cs"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(\w+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<\/)(\w+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"], [/0[0-7']*[0-7]/, "number.octal.cs"], [/0[bB][0-1']*[0-1]/, "number.binary.cs"], [/\d[\d']*/, "number.cs"], [/\d/, "number.cs"]]}, razorKeywords: ["abstract", "as", "async", "await", "base", "bool", "break", "by", "byte", "case", "catch", "char", "checked", "class", "const", "continue", "decimal", "default", "delegate", "do", "double", "descending", "explicit", "event", "extern", "else", "enum", "false", "finally", "fixed", "float", "for", "foreach", "from", "goto", "group", "if", "implicit", "in", "int", "interface", "internal", "into", "is", "lock", "long", "nameof", "new", "null", "namespace", "object", "operator", "out", "override", "orderby", "params", "private", "protected", "public", "readonly", "ref", "return", "switch", "struct", "sbyte", "sealed", "short", "sizeof", "stackalloc", "static", "string", "select", "this", "throw", "true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using", "var", "virtual", "volatile", "void", "when", "while", "where", "yield", "model", "inject"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}; + var i = n(95), r = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], o = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["<!--", "-->"]}, brackets: [["<!--", "-->"], ["<", ">"], ["{", "}"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}], onEnterRules: [{beforeText: new RegExp("<(?!(?:" + r.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), afterText: /^<\/(\w[\w\d]*)\s*>$/i, action: {indentAction: i.a.IndentAction.IndentOutdent}}, {beforeText: new RegExp("<(?!(?:" + r.join("|") + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"), action: {indentAction: i.a.IndentAction.Indent}}]}, s = {defaultToken: "", tokenPostfix: "", tokenizer: {root: [[/@@/], [/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.root"}], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)([:\w]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)(\w+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[ \t\r\n]+/], [/[^<@]+/]], doctype: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.comment"}], [/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.comment"}], [/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.otherTag"}], [/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/]], script: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.script"}], [/type/, "attribute.name", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptAfterType"}], [/=/, "delimiter", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.text/javascript", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], style: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.style"}], [/type/, "attribute.name", "@styleAfterType"], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleAfterType"}], [/=/, "delimiter", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleAfterTypeEquals"}], [/"([^"]*)"/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.text/css", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInSimpleState.styleWithCustomType.$S2"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value"], [/'([^']*)'/, "attribute.value"], [/[\w\-]+/, "attribute.name"], [/=/, "delimiter"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/@[^@]/, {token: "@rematch", switchTo: "@razorInEmbeddedState.styleEmbedded.$S2", nextEmbedded: "@pop"}], [/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}]], razorInSimpleState: [[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"], [/@[{(]/, "metatag.cs", "@razorRootTopLevel"], [/(@)(\s*[\w]+)/, ["metatag.cs", {token: "identifier.cs", switchTo: "@$S2.$S3"}]], [/[})]/, {token: "metatag.cs", switchTo: "@$S2.$S3"}], [/\*@/, {token: "comment.cs", switchTo: "@$S2.$S3"}]], razorInEmbeddedState: [[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"], [/@[{(]/, "metatag.cs", "@razorRootTopLevel"], [/(@)(\s*[\w]+)/, ["metatag.cs", {token: "identifier.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}]], [/[})]/, {token: "metatag.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}], [/\*@/, {token: "comment.cs", switchTo: "@$S2.$S3", nextEmbedded: "$S3"}]], razorBlockCommentTopLevel: [[/\*@/, "@rematch", "@pop"], [/[^*]+/, "comment.cs"], [/./, "comment.cs"]], razorBlockComment: [[/\*@/, "comment.cs", "@pop"], [/[^*]+/, "comment.cs"], [/./, "comment.cs"]], razorRootTopLevel: [[/\{/, "delimiter.bracket.cs", "@razorRoot"], [/\(/, "delimiter.parenthesis.cs", "@razorRoot"], [/[})]/, "@rematch", "@pop"], {include: "razorCommon"}], razorRoot: [[/\{/, "delimiter.bracket.cs", "@razorRoot"], [/\(/, "delimiter.parenthesis.cs", "@razorRoot"], [/\}/, "delimiter.bracket.cs", "@pop"], [/\)/, "delimiter.parenthesis.cs", "@pop"], {include: "razorCommon"}], razorCommon: [[/[a-zA-Z_]\w*/, {cases: {"@razorKeywords": {token: "keyword.cs"}, "@default": "identifier.cs"}}], [/[\[\]]/, "delimiter.array.cs"], [/[ \t\r\n]+/], [/\/\/.*$/, "comment.cs"], [/@\*/, "comment.cs", "@razorBlockComment"], [/"([^"]*)"/, "string.cs"], [/'([^']*)'/, "string.cs"], [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<)(\w+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/(<\/)(\w+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]], [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"], [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"], [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"], [/0[0-7']*[0-7]/, "number.octal.cs"], [/0[bB][0-1']*[0-1]/, "number.binary.cs"], [/\d[\d']*/, "number.cs"], [/\d/, "number.cs"]]}, razorKeywords: ["abstract", "as", "async", "await", "base", "bool", "break", "by", "byte", "case", "catch", "char", "checked", "class", "const", "continue", "decimal", "default", "delegate", "do", "double", "descending", "explicit", "event", "extern", "else", "enum", "false", "finally", "fixed", "float", "for", "foreach", "from", "goto", "group", "if", "implicit", "in", "int", "interface", "internal", "into", "is", "lock", "long", "nameof", "new", "null", "namespace", "object", "operator", "out", "override", "orderby", "params", "private", "protected", "public", "readonly", "ref", "return", "switch", "struct", "sbyte", "sealed", "short", "sizeof", "stackalloc", "static", "string", "select", "this", "throw", "true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using", "var", "virtual", "volatile", "void", "when", "while", "where", "yield", "model", "inject"], escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".redis", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["APPEND", "AUTH", "BGREWRITEAOF", "BGSAVE", "BITCOUNT", "BITFIELD", "BITOP", "BITPOS", "BLPOP", "BRPOP", "BRPOPLPUSH", "CLIENT", "KILL", "LIST", "GETNAME", "PAUSE", "REPLY", "SETNAME", "CLUSTER", "ADDSLOTS", "COUNT-FAILURE-REPORTS", "COUNTKEYSINSLOT", "DELSLOTS", "FAILOVER", "FORGET", "GETKEYSINSLOT", "INFO", "KEYSLOT", "MEET", "NODES", "REPLICATE", "RESET", "SAVECONFIG", "SET-CONFIG-EPOCH", "SETSLOT", "SLAVES", "SLOTS", "COMMAND", "COUNT", "GETKEYS", "CONFIG", "GET", "REWRITE", "SET", "RESETSTAT", "DBSIZE", "DEBUG", "OBJECT", "SEGFAULT", "DECR", "DECRBY", "DEL", "DISCARD", "DUMP", "ECHO", "EVAL", "EVALSHA", "EXEC", "EXISTS", "EXPIRE", "EXPIREAT", "FLUSHALL", "FLUSHDB", "GEOADD", "GEOHASH", "GEOPOS", "GEODIST", "GEORADIUS", "GEORADIUSBYMEMBER", "GETBIT", "GETRANGE", "GETSET", "HDEL", "HEXISTS", "HGET", "HGETALL", "HINCRBY", "HINCRBYFLOAT", "HKEYS", "HLEN", "HMGET", "HMSET", "HSET", "HSETNX", "HSTRLEN", "HVALS", "INCR", "INCRBY", "INCRBYFLOAT", "KEYS", "LASTSAVE", "LINDEX", "LINSERT", "LLEN", "LPOP", "LPUSH", "LPUSHX", "LRANGE", "LREM", "LSET", "LTRIM", "MGET", "MIGRATE", "MONITOR", "MOVE", "MSET", "MSETNX", "MULTI", "PERSIST", "PEXPIRE", "PEXPIREAT", "PFADD", "PFCOUNT", "PFMERGE", "PING", "PSETEX", "PSUBSCRIBE", "PUBSUB", "PTTL", "PUBLISH", "PUNSUBSCRIBE", "QUIT", "RANDOMKEY", "READONLY", "READWRITE", "RENAME", "RENAMENX", "RESTORE", "ROLE", "RPOP", "RPOPLPUSH", "RPUSH", "RPUSHX", "SADD", "SAVE", "SCARD", "SCRIPT", "FLUSH", "LOAD", "SDIFF", "SDIFFSTORE", "SELECT", "SETBIT", "SETEX", "SETNX", "SETRANGE", "SHUTDOWN", "SINTER", "SINTERSTORE", "SISMEMBER", "SLAVEOF", "SLOWLOG", "SMEMBERS", "SMOVE", "SORT", "SPOP", "SRANDMEMBER", "SREM", "STRLEN", "SUBSCRIBE", "SUNION", "SUNIONSTORE", "SWAPDB", "SYNC", "TIME", "TOUCH", "TTL", "TYPE", "UNSUBSCRIBE", "UNLINK", "UNWATCH", "WAIT", "WATCH", "ZADD", "ZCARD", "ZCOUNT", "ZINCRBY", "ZINTERSTORE", "ZLEXCOUNT", "ZRANGE", "ZRANGEBYLEX", "ZREVRANGEBYLEX", "ZRANGEBYSCORE", "ZRANK", "ZREM", "ZREMRANGEBYLEX", "ZREMRANGEBYRANK", "ZREMRANGEBYSCORE", "ZREVRANGE", "ZREVRANGEBYSCORE", "ZREVRANK", "ZSCORE", "ZUNIONSTORE", "SCAN", "SSCAN", "HSCAN", "ZSCAN"], operators: [], builtinFunctions: [], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}], [/"/, {token: "string.double", next: "@stringDouble"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], stringDouble: [[/[^"]+/, "string.double"], [/""/, "string.double"], [/"/, {token: "string.double", next: "@pop"}]], scopes: []}}; + var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".redis", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["APPEND", "AUTH", "BGREWRITEAOF", "BGSAVE", "BITCOUNT", "BITFIELD", "BITOP", "BITPOS", "BLPOP", "BRPOP", "BRPOPLPUSH", "CLIENT", "KILL", "LIST", "GETNAME", "PAUSE", "REPLY", "SETNAME", "CLUSTER", "ADDSLOTS", "COUNT-FAILURE-REPORTS", "COUNTKEYSINSLOT", "DELSLOTS", "FAILOVER", "FORGET", "GETKEYSINSLOT", "INFO", "KEYSLOT", "MEET", "NODES", "REPLICATE", "RESET", "SAVECONFIG", "SET-CONFIG-EPOCH", "SETSLOT", "SLAVES", "SLOTS", "COMMAND", "COUNT", "GETKEYS", "CONFIG", "GET", "REWRITE", "SET", "RESETSTAT", "DBSIZE", "DEBUG", "OBJECT", "SEGFAULT", "DECR", "DECRBY", "DEL", "DISCARD", "DUMP", "ECHO", "EVAL", "EVALSHA", "EXEC", "EXISTS", "EXPIRE", "EXPIREAT", "FLUSHALL", "FLUSHDB", "GEOADD", "GEOHASH", "GEOPOS", "GEODIST", "GEORADIUS", "GEORADIUSBYMEMBER", "GETBIT", "GETRANGE", "GETSET", "HDEL", "HEXISTS", "HGET", "HGETALL", "HINCRBY", "HINCRBYFLOAT", "HKEYS", "HLEN", "HMGET", "HMSET", "HSET", "HSETNX", "HSTRLEN", "HVALS", "INCR", "INCRBY", "INCRBYFLOAT", "KEYS", "LASTSAVE", "LINDEX", "LINSERT", "LLEN", "LPOP", "LPUSH", "LPUSHX", "LRANGE", "LREM", "LSET", "LTRIM", "MGET", "MIGRATE", "MONITOR", "MOVE", "MSET", "MSETNX", "MULTI", "PERSIST", "PEXPIRE", "PEXPIREAT", "PFADD", "PFCOUNT", "PFMERGE", "PING", "PSETEX", "PSUBSCRIBE", "PUBSUB", "PTTL", "PUBLISH", "PUNSUBSCRIBE", "QUIT", "RANDOMKEY", "READONLY", "READWRITE", "RENAME", "RENAMENX", "RESTORE", "ROLE", "RPOP", "RPOPLPUSH", "RPUSH", "RPUSHX", "SADD", "SAVE", "SCARD", "SCRIPT", "FLUSH", "LOAD", "SDIFF", "SDIFFSTORE", "SELECT", "SETBIT", "SETEX", "SETNX", "SETRANGE", "SHUTDOWN", "SINTER", "SINTERSTORE", "SISMEMBER", "SLAVEOF", "SLOWLOG", "SMEMBERS", "SMOVE", "SORT", "SPOP", "SRANDMEMBER", "SREM", "STRLEN", "SUBSCRIBE", "SUNION", "SUNIONSTORE", "SWAPDB", "SYNC", "TIME", "TOUCH", "TTL", "TYPE", "UNSUBSCRIBE", "UNLINK", "UNWATCH", "WAIT", "WATCH", "ZADD", "ZCARD", "ZCOUNT", "ZINCRBY", "ZINTERSTORE", "ZLEXCOUNT", "ZRANGE", "ZRANGEBYLEX", "ZREVRANGEBYLEX", "ZRANGEBYSCORE", "ZRANK", "ZREM", "ZREMRANGEBYLEX", "ZREMRANGEBYRANK", "ZREMRANGEBYSCORE", "ZREVRANGE", "ZREVRANGEBYSCORE", "ZREVRANK", "ZSCORE", "ZUNIONSTORE", "SCAN", "SSCAN", "HSCAN", "ZSCAN"], operators: [], builtinFunctions: [], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}], [/"/, {token: "string.double", next: "@stringDouble"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], stringDouble: [[/[^"]+/, "string.double"], [/""/, "string.double"], [/"/, {token: "string.double", next: "@pop"}]], scopes: []}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["AES128", "AES256", "ALL", "ALLOWOVERWRITE", "ANALYSE", "ANALYZE", "AND", "ANY", "ARRAY", "AS", "ASC", "AUTHORIZATION", "BACKUP", "BETWEEN", "BINARY", "BLANKSASNULL", "BOTH", "BYTEDICT", "BZIP2", "CASE", "CAST", "CHECK", "COLLATE", "COLUMN", "CONSTRAINT", "CREATE", "CREDENTIALS", "CROSS", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURRENT_USER_ID", "DEFAULT", "DEFERRABLE", "DEFLATE", "DEFRAG", "DELTA", "DELTA32K", "DESC", "DISABLE", "DISTINCT", "DO", "ELSE", "EMPTYASNULL", "ENABLE", "ENCODE", "ENCRYPT", "ENCRYPTION", "END", "EXCEPT", "EXPLICIT", "FALSE", "FOR", "FOREIGN", "FREEZE", "FROM", "FULL", "GLOBALDICT256", "GLOBALDICT64K", "GRANT", "GROUP", "GZIP", "HAVING", "IDENTITY", "IGNORE", "ILIKE", "IN", "INITIALLY", "INNER", "INTERSECT", "INTO", "IS", "ISNULL", "JOIN", "LEADING", "LEFT", "LIKE", "LIMIT", "LOCALTIME", "LOCALTIMESTAMP", "LUN", "LUNS", "LZO", "LZOP", "MINUS", "MOSTLY13", "MOSTLY32", "MOSTLY8", "NATURAL", "NEW", "NOT", "NOTNULL", "NULL", "NULLS", "OFF", "OFFLINE", "OFFSET", "OID", "OLD", "ON", "ONLY", "OPEN", "OR", "ORDER", "OUTER", "OVERLAPS", "PARALLEL", "PARTITION", "PERCENT", "PERMISSIONS", "PLACING", "PRIMARY", "RAW", "READRATIO", "RECOVER", "REFERENCES", "RESPECT", "REJECTLOG", "RESORT", "RESTORE", "RIGHT", "SELECT", "SESSION_USER", "SIMILAR", "SNAPSHOT", "SOME", "SYSDATE", "SYSTEM", "TABLE", "TAG", "TDES", "TEXT255", "TEXT32K", "THEN", "TIMESTAMP", "TO", "TOP", "TRAILING", "TRUE", "TRUNCATECOLUMNS", "UNION", "UNIQUE", "USER", "USING", "VERBOSE", "WALLET", "WHEN", "WHERE", "WITH", "WITHOUT"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["current_schema", "current_schemas", "has_database_privilege", "has_schema_privilege", "has_table_privilege", "age", "current_time", "current_timestamp", "localtime", "isfinite", "now", "ascii", "get_bit", "get_byte", "set_bit", "set_byte", "to_ascii", "approximate percentile_disc", "avg", "count", "listagg", "max", "median", "min", "percentile_cont", "stddev_samp", "stddev_pop", "sum", "var_samp", "var_pop", "bit_and", "bit_or", "bool_and", "bool_or", "cume_dist", "first_value", "lag", "last_value", "lead", "nth_value", "ratio_to_report", "dense_rank", "ntile", "percent_rank", "rank", "row_number", "case", "coalesce", "decode", "greatest", "least", "nvl", "nvl2", "nullif", "add_months", "at time zone", "convert_timezone", "current_date", "date_cmp", "date_cmp_timestamp", "date_cmp_timestamptz", "date_part_year", "dateadd", "datediff", "date_part", "date_trunc", "extract", "getdate", "interval_cmp", "last_day", "months_between", "next_day", "sysdate", "timeofday", "timestamp_cmp", "timestamp_cmp_date", "timestamp_cmp_timestamptz", "timestamptz_cmp", "timestamptz_cmp_date", "timestamptz_cmp_timestamp", "timezone", "to_timestamp", "trunc", "abs", "acos", "asin", "atan", "atan2", "cbrt", "ceil", "ceiling", "checksum", "cos", "cot", "degrees", "dexp", "dlog1", "dlog10", "exp", "floor", "ln", "log", "mod", "pi", "power", "radians", "random", "round", "sin", "sign", "sqrt", "tan", "to_hex", "bpcharcmp", "btrim", "bttext_pattern_cmp", "char_length", "character_length", "charindex", "chr", "concat", "crc32", "func_sha1", "initcap", "left and rights", "len", "length", "lower", "lpad and rpads", "ltrim", "md5", "octet_length", "position", "quote_ident", "quote_literal", "regexp_count", "regexp_instr", "regexp_replace", "regexp_substr", "repeat", "replace", "replicate", "reverse", "rtrim", "split_part", "strpos", "strtol", "substring", "textlen", "translate", "trim", "upper", "cast", "convert", "to_char", "to_date", "to_number", "json_array_length", "json_extract_array_element_text", "json_extract_path_text", "current_setting", "pg_cancel_backend", "pg_terminate_backend", "set_config", "current_database", "current_user", "current_user_id", "pg_backend_pid", "pg_last_copy_count", "pg_last_copy_id", "pg_last_query_id", "pg_last_unload_count", "session_user", "slice_num", "user", "version", "abbrev", "acosd", "any", "area", "array_agg", "array_append", "array_cat", "array_dims", "array_fill", "array_length", "array_lower", "array_ndims", "array_position", "array_positions", "array_prepend", "array_remove", "array_replace", "array_to_json", "array_to_string", "array_to_tsvector", "array_upper", "asind", "atan2d", "atand", "bit", "bit_length", "bound_box", "box", "brin_summarize_new_values", "broadcast", "cardinality", "center", "circle", "clock_timestamp", "col_description", "concat_ws", "convert_from", "convert_to", "corr", "cosd", "cotd", "covar_pop", "covar_samp", "current_catalog", "current_query", "current_role", "currval", "cursor_to_xml", "diameter", "div", "encode", "enum_first", "enum_last", "enum_range", "every", "family", "format", "format_type", "generate_series", "generate_subscripts", "get_current_ts_config", "gin_clean_pending_list", "grouping", "has_any_column_privilege", "has_column_privilege", "has_foreign_data_wrapper_privilege", "has_function_privilege", "has_language_privilege", "has_sequence_privilege", "has_server_privilege", "has_tablespace_privilege", "has_type_privilege", "height", "host", "hostmask", "inet_client_addr", "inet_client_port", "inet_merge", "inet_same_family", "inet_server_addr", "inet_server_port", "isclosed", "isempty", "isopen", "json_agg", "json_object", "json_object_agg", "json_populate_record", "json_populate_recordset", "json_to_record", "json_to_recordset", "jsonb_agg", "jsonb_object_agg", "justify_days", "justify_hours", "justify_interval", "lastval", "left", "line", "localtimestamp", "lower_inc", "lower_inf", "lpad", "lseg", "make_date", "make_interval", "make_time", "make_timestamp", "make_timestamptz", "masklen", "mode", "netmask", "network", "nextval", "npoints", "num_nonnulls", "num_nulls", "numnode", "obj_description", "overlay", "parse_ident", "path", "pclose", "percentile_disc", "pg_advisory_lock", "pg_advisory_lock_shared", "pg_advisory_unlock", "pg_advisory_unlock_all", "pg_advisory_unlock_shared", "pg_advisory_xact_lock", "pg_advisory_xact_lock_shared", "pg_backup_start_time", "pg_blocking_pids", "pg_client_encoding", "pg_collation_is_visible", "pg_column_size", "pg_conf_load_time", "pg_control_checkpoint", "pg_control_init", "pg_control_recovery", "pg_control_system", "pg_conversion_is_visible", "pg_create_logical_replication_slot", "pg_create_physical_replication_slot", "pg_create_restore_point", "pg_current_xlog_flush_location", "pg_current_xlog_insert_location", "pg_current_xlog_location", "pg_database_size", "pg_describe_object", "pg_drop_replication_slot", "pg_export_snapshot", "pg_filenode_relation", "pg_function_is_visible", "pg_get_constraintdef", "pg_get_expr", "pg_get_function_arguments", "pg_get_function_identity_arguments", "pg_get_function_result", "pg_get_functiondef", "pg_get_indexdef", "pg_get_keywords", "pg_get_object_address", "pg_get_owned_sequence", "pg_get_ruledef", "pg_get_serial_sequence", "pg_get_triggerdef", "pg_get_userbyid", "pg_get_viewdef", "pg_has_role", "pg_identify_object", "pg_identify_object_as_address", "pg_index_column_has_property", "pg_index_has_property", "pg_indexam_has_property", "pg_indexes_size", "pg_is_in_backup", "pg_is_in_recovery", "pg_is_other_temp_schema", "pg_is_xlog_replay_paused", "pg_last_committed_xact", "pg_last_xact_replay_timestamp", "pg_last_xlog_receive_location", "pg_last_xlog_replay_location", "pg_listening_channels", "pg_logical_emit_message", "pg_logical_slot_get_binary_changes", "pg_logical_slot_get_changes", "pg_logical_slot_peek_binary_changes", "pg_logical_slot_peek_changes", "pg_ls_dir", "pg_my_temp_schema", "pg_notification_queue_usage", "pg_opclass_is_visible", "pg_operator_is_visible", "pg_opfamily_is_visible", "pg_options_to_table", "pg_postmaster_start_time", "pg_read_binary_file", "pg_read_file", "pg_relation_filenode", "pg_relation_filepath", "pg_relation_size", "pg_reload_conf", "pg_replication_origin_create", "pg_replication_origin_drop", "pg_replication_origin_oid", "pg_replication_origin_progress", "pg_replication_origin_session_is_setup", "pg_replication_origin_session_progress", "pg_replication_origin_session_reset", "pg_replication_origin_session_setup", "pg_replication_origin_xact_reset", "pg_replication_origin_xact_setup", "pg_rotate_logfile", "pg_size_bytes", "pg_size_pretty", "pg_sleep", "pg_sleep_for", "pg_sleep_until", "pg_start_backup", "pg_stat_file", "pg_stop_backup", "pg_switch_xlog", "pg_table_is_visible", "pg_table_size", "pg_tablespace_databases", "pg_tablespace_location", "pg_tablespace_size", "pg_total_relation_size", "pg_trigger_depth", "pg_try_advisory_lock", "pg_try_advisory_lock_shared", "pg_try_advisory_xact_lock", "pg_try_advisory_xact_lock_shared", "pg_ts_config_is_visible", "pg_ts_dict_is_visible", "pg_ts_parser_is_visible", "pg_ts_template_is_visible", "pg_type_is_visible", "pg_typeof", "pg_xact_commit_timestamp", "pg_xlog_location_diff", "pg_xlog_replay_pause", "pg_xlog_replay_resume", "pg_xlogfile_name", "pg_xlogfile_name_offset", "phraseto_tsquery", "plainto_tsquery", "point", "polygon", "popen", "pqserverversion", "query_to_xml", "querytree", "quote_nullable", "radius", "range_merge", "regexp_matches", "regexp_split_to_array", "regexp_split_to_table", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "right", "row_security_active", "row_to_json", "rpad", "scale", "set_masklen", "setseed", "setval", "setweight", "shobj_description", "sind", "sprintf", "statement_timestamp", "stddev", "string_agg", "string_to_array", "strip", "substr", "table_to_xml", "table_to_xml_and_xmlschema", "tand", "text", "to_json", "to_regclass", "to_regnamespace", "to_regoper", "to_regoperator", "to_regproc", "to_regprocedure", "to_regrole", "to_regtype", "to_tsquery", "to_tsvector", "transaction_timestamp", "ts_debug", "ts_delete", "ts_filter", "ts_headline", "ts_lexize", "ts_parse", "ts_rank", "ts_rank_cd", "ts_rewrite", "ts_stat", "ts_token_type", "tsquery_phrase", "tsvector_to_array", "tsvector_update_trigger", "tsvector_update_trigger_column", "txid_current", "txid_current_snapshot", "txid_snapshot_xip", "txid_snapshot_xmax", "txid_snapshot_xmin", "txid_visible_in_snapshot", "unnest", "upper_inc", "upper_inf", "variance", "width", "width_bucket", "xml_is_well_formed", "xml_is_well_formed_content", "xml_is_well_formed_document", "xmlagg", "xmlcomment", "xmlconcat", "xmlelement", "xmlexists", "xmlforest", "xmlparse", "xmlpi", "xmlroot", "xmlserialize", "xpath", "xpath_exists"], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; + var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["AES128", "AES256", "ALL", "ALLOWOVERWRITE", "ANALYSE", "ANALYZE", "AND", "ANY", "ARRAY", "AS", "ASC", "AUTHORIZATION", "BACKUP", "BETWEEN", "BINARY", "BLANKSASNULL", "BOTH", "BYTEDICT", "BZIP2", "CASE", "CAST", "CHECK", "COLLATE", "COLUMN", "CONSTRAINT", "CREATE", "CREDENTIALS", "CROSS", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURRENT_USER_ID", "DEFAULT", "DEFERRABLE", "DEFLATE", "DEFRAG", "DELTA", "DELTA32K", "DESC", "DISABLE", "DISTINCT", "DO", "ELSE", "EMPTYASNULL", "ENABLE", "ENCODE", "ENCRYPT", "ENCRYPTION", "END", "EXCEPT", "EXPLICIT", "FALSE", "FOR", "FOREIGN", "FREEZE", "FROM", "FULL", "GLOBALDICT256", "GLOBALDICT64K", "GRANT", "GROUP", "GZIP", "HAVING", "IDENTITY", "IGNORE", "ILIKE", "IN", "INITIALLY", "INNER", "INTERSECT", "INTO", "IS", "ISNULL", "JOIN", "LEADING", "LEFT", "LIKE", "LIMIT", "LOCALTIME", "LOCALTIMESTAMP", "LUN", "LUNS", "LZO", "LZOP", "MINUS", "MOSTLY13", "MOSTLY32", "MOSTLY8", "NATURAL", "NEW", "NOT", "NOTNULL", "NULL", "NULLS", "OFF", "OFFLINE", "OFFSET", "OID", "OLD", "ON", "ONLY", "OPEN", "OR", "ORDER", "OUTER", "OVERLAPS", "PARALLEL", "PARTITION", "PERCENT", "PERMISSIONS", "PLACING", "PRIMARY", "RAW", "READRATIO", "RECOVER", "REFERENCES", "RESPECT", "REJECTLOG", "RESORT", "RESTORE", "RIGHT", "SELECT", "SESSION_USER", "SIMILAR", "SNAPSHOT", "SOME", "SYSDATE", "SYSTEM", "TABLE", "TAG", "TDES", "TEXT255", "TEXT32K", "THEN", "TIMESTAMP", "TO", "TOP", "TRAILING", "TRUE", "TRUNCATECOLUMNS", "UNION", "UNIQUE", "USER", "USING", "VERBOSE", "WALLET", "WHEN", "WHERE", "WITH", "WITHOUT"], operators: ["AND", "BETWEEN", "IN", "LIKE", "NOT", "OR", "IS", "NULL", "INTERSECT", "UNION", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT"], builtinFunctions: ["current_schema", "current_schemas", "has_database_privilege", "has_schema_privilege", "has_table_privilege", "age", "current_time", "current_timestamp", "localtime", "isfinite", "now", "ascii", "get_bit", "get_byte", "set_bit", "set_byte", "to_ascii", "approximate percentile_disc", "avg", "count", "listagg", "max", "median", "min", "percentile_cont", "stddev_samp", "stddev_pop", "sum", "var_samp", "var_pop", "bit_and", "bit_or", "bool_and", "bool_or", "cume_dist", "first_value", "lag", "last_value", "lead", "nth_value", "ratio_to_report", "dense_rank", "ntile", "percent_rank", "rank", "row_number", "case", "coalesce", "decode", "greatest", "least", "nvl", "nvl2", "nullif", "add_months", "at time zone", "convert_timezone", "current_date", "date_cmp", "date_cmp_timestamp", "date_cmp_timestamptz", "date_part_year", "dateadd", "datediff", "date_part", "date_trunc", "extract", "getdate", "interval_cmp", "last_day", "months_between", "next_day", "sysdate", "timeofday", "timestamp_cmp", "timestamp_cmp_date", "timestamp_cmp_timestamptz", "timestamptz_cmp", "timestamptz_cmp_date", "timestamptz_cmp_timestamp", "timezone", "to_timestamp", "trunc", "abs", "acos", "asin", "atan", "atan2", "cbrt", "ceil", "ceiling", "checksum", "cos", "cot", "degrees", "dexp", "dlog1", "dlog10", "exp", "floor", "ln", "log", "mod", "pi", "power", "radians", "random", "round", "sin", "sign", "sqrt", "tan", "to_hex", "bpcharcmp", "btrim", "bttext_pattern_cmp", "char_length", "character_length", "charindex", "chr", "concat", "crc32", "func_sha1", "initcap", "left and rights", "len", "length", "lower", "lpad and rpads", "ltrim", "md5", "octet_length", "position", "quote_ident", "quote_literal", "regexp_count", "regexp_instr", "regexp_replace", "regexp_substr", "repeat", "replace", "replicate", "reverse", "rtrim", "split_part", "strpos", "strtol", "substring", "textlen", "translate", "trim", "upper", "cast", "convert", "to_char", "to_date", "to_number", "json_array_length", "json_extract_array_element_text", "json_extract_path_text", "current_setting", "pg_cancel_backend", "pg_terminate_backend", "set_config", "current_database", "current_user", "current_user_id", "pg_backend_pid", "pg_last_copy_count", "pg_last_copy_id", "pg_last_query_id", "pg_last_unload_count", "session_user", "slice_num", "user", "version", "abbrev", "acosd", "any", "area", "array_agg", "array_append", "array_cat", "array_dims", "array_fill", "array_length", "array_lower", "array_ndims", "array_position", "array_positions", "array_prepend", "array_remove", "array_replace", "array_to_json", "array_to_string", "array_to_tsvector", "array_upper", "asind", "atan2d", "atand", "bit", "bit_length", "bound_box", "box", "brin_summarize_new_values", "broadcast", "cardinality", "center", "circle", "clock_timestamp", "col_description", "concat_ws", "convert_from", "convert_to", "corr", "cosd", "cotd", "covar_pop", "covar_samp", "current_catalog", "current_query", "current_role", "currval", "cursor_to_xml", "diameter", "div", "encode", "enum_first", "enum_last", "enum_range", "every", "family", "format", "format_type", "generate_series", "generate_subscripts", "get_current_ts_config", "gin_clean_pending_list", "grouping", "has_any_column_privilege", "has_column_privilege", "has_foreign_data_wrapper_privilege", "has_function_privilege", "has_language_privilege", "has_sequence_privilege", "has_server_privilege", "has_tablespace_privilege", "has_type_privilege", "height", "host", "hostmask", "inet_client_addr", "inet_client_port", "inet_merge", "inet_same_family", "inet_server_addr", "inet_server_port", "isclosed", "isempty", "isopen", "json_agg", "json_object", "json_object_agg", "json_populate_record", "json_populate_recordset", "json_to_record", "json_to_recordset", "jsonb_agg", "jsonb_object_agg", "justify_days", "justify_hours", "justify_interval", "lastval", "left", "line", "localtimestamp", "lower_inc", "lower_inf", "lpad", "lseg", "make_date", "make_interval", "make_time", "make_timestamp", "make_timestamptz", "masklen", "mode", "netmask", "network", "nextval", "npoints", "num_nonnulls", "num_nulls", "numnode", "obj_description", "overlay", "parse_ident", "path", "pclose", "percentile_disc", "pg_advisory_lock", "pg_advisory_lock_shared", "pg_advisory_unlock", "pg_advisory_unlock_all", "pg_advisory_unlock_shared", "pg_advisory_xact_lock", "pg_advisory_xact_lock_shared", "pg_backup_start_time", "pg_blocking_pids", "pg_client_encoding", "pg_collation_is_visible", "pg_column_size", "pg_conf_load_time", "pg_control_checkpoint", "pg_control_init", "pg_control_recovery", "pg_control_system", "pg_conversion_is_visible", "pg_create_logical_replication_slot", "pg_create_physical_replication_slot", "pg_create_restore_point", "pg_current_xlog_flush_location", "pg_current_xlog_insert_location", "pg_current_xlog_location", "pg_database_size", "pg_describe_object", "pg_drop_replication_slot", "pg_export_snapshot", "pg_filenode_relation", "pg_function_is_visible", "pg_get_constraintdef", "pg_get_expr", "pg_get_function_arguments", "pg_get_function_identity_arguments", "pg_get_function_result", "pg_get_functiondef", "pg_get_indexdef", "pg_get_keywords", "pg_get_object_address", "pg_get_owned_sequence", "pg_get_ruledef", "pg_get_serial_sequence", "pg_get_triggerdef", "pg_get_userbyid", "pg_get_viewdef", "pg_has_role", "pg_identify_object", "pg_identify_object_as_address", "pg_index_column_has_property", "pg_index_has_property", "pg_indexam_has_property", "pg_indexes_size", "pg_is_in_backup", "pg_is_in_recovery", "pg_is_other_temp_schema", "pg_is_xlog_replay_paused", "pg_last_committed_xact", "pg_last_xact_replay_timestamp", "pg_last_xlog_receive_location", "pg_last_xlog_replay_location", "pg_listening_channels", "pg_logical_emit_message", "pg_logical_slot_get_binary_changes", "pg_logical_slot_get_changes", "pg_logical_slot_peek_binary_changes", "pg_logical_slot_peek_changes", "pg_ls_dir", "pg_my_temp_schema", "pg_notification_queue_usage", "pg_opclass_is_visible", "pg_operator_is_visible", "pg_opfamily_is_visible", "pg_options_to_table", "pg_postmaster_start_time", "pg_read_binary_file", "pg_read_file", "pg_relation_filenode", "pg_relation_filepath", "pg_relation_size", "pg_reload_conf", "pg_replication_origin_create", "pg_replication_origin_drop", "pg_replication_origin_oid", "pg_replication_origin_progress", "pg_replication_origin_session_is_setup", "pg_replication_origin_session_progress", "pg_replication_origin_session_reset", "pg_replication_origin_session_setup", "pg_replication_origin_xact_reset", "pg_replication_origin_xact_setup", "pg_rotate_logfile", "pg_size_bytes", "pg_size_pretty", "pg_sleep", "pg_sleep_for", "pg_sleep_until", "pg_start_backup", "pg_stat_file", "pg_stop_backup", "pg_switch_xlog", "pg_table_is_visible", "pg_table_size", "pg_tablespace_databases", "pg_tablespace_location", "pg_tablespace_size", "pg_total_relation_size", "pg_trigger_depth", "pg_try_advisory_lock", "pg_try_advisory_lock_shared", "pg_try_advisory_xact_lock", "pg_try_advisory_xact_lock_shared", "pg_ts_config_is_visible", "pg_ts_dict_is_visible", "pg_ts_parser_is_visible", "pg_ts_template_is_visible", "pg_type_is_visible", "pg_typeof", "pg_xact_commit_timestamp", "pg_xlog_location_diff", "pg_xlog_replay_pause", "pg_xlog_replay_resume", "pg_xlogfile_name", "pg_xlogfile_name_offset", "phraseto_tsquery", "plainto_tsquery", "point", "polygon", "popen", "pqserverversion", "query_to_xml", "querytree", "quote_nullable", "radius", "range_merge", "regexp_matches", "regexp_split_to_array", "regexp_split_to_table", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "right", "row_security_active", "row_to_json", "rpad", "scale", "set_masklen", "setseed", "setval", "setweight", "shobj_description", "sind", "sprintf", "statement_timestamp", "stddev", "string_agg", "string_to_array", "strip", "substr", "table_to_xml", "table_to_xml_and_xmlschema", "tand", "text", "to_json", "to_regclass", "to_regnamespace", "to_regoper", "to_regoperator", "to_regproc", "to_regprocedure", "to_regrole", "to_regtype", "to_tsquery", "to_tsvector", "transaction_timestamp", "ts_debug", "ts_delete", "ts_filter", "ts_headline", "ts_lexize", "ts_parse", "ts_rank", "ts_rank_cd", "ts_rewrite", "ts_stat", "ts_token_type", "tsquery_phrase", "tsvector_to_array", "tsvector_update_trigger", "tsvector_update_trigger_column", "txid_current", "txid_current_snapshot", "txid_snapshot_xip", "txid_snapshot_xmax", "txid_snapshot_xmin", "txid_visible_in_snapshot", "unnest", "upper_inc", "upper_inf", "variance", "width", "width_bucket", "xml_is_well_formed", "xml_is_well_formed_content", "xml_is_well_formed_document", "xmlagg", "xmlcomment", "xmlconcat", "xmlelement", "xmlexists", "xmlforest", "xmlparse", "xmlpi", "xmlroot", "xmlserialize", "xpath", "xpath_exists"], builtinVariables: [], pseudoColumns: [], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: []}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">", notIn: ["string"]}], surroundingPairs: [{open: "(", close: ")"}, {open: "[", close: "]"}, {open: "`", close: "`"}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}}, o = {defaultToken: "", tokenPostfix: ".rst", control: /[\\`*_\[\]{}()#+\-\.!]/, escapes: /\\(?:@control)/, empty: ["area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex", "link", "meta", "param"], alphanumerics: /[A-Za-z0-9]/, alphanumericsplus: /[A-Za-z0-9-_+:.]/, simpleRefNameWithoutBq: /(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/, simpleRefName: /(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/, phrase: /@simpleRefName(?:\s@simpleRefName)*/, citationName: /[A-Za-z][A-Za-z0-9-_.]*/, blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/, precedingChars: /(?:[ -:/'"<([{])/, followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/, punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/, tokenizer: {root: [[/^(@punctuation{3,}$){1,1}?/, "keyword"], [/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/, "keyword"], [/([ ]::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"], [/(::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"], {include: "@tables"}, {include: "@explicitMarkupBlocks"}, {include: "@inlineMarkup"}], explicitMarkupBlocks: [{include: "@citations"}, {include: "@footnotes"}, [/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/, [{token: "", next: "subsequentLines"}, "keyword", "", ""]], [/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/, [{token: "", next: "hyperlinks"}, "", "", "string.link", "", "", "string.link"]], [/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/, [{token: "", next: "subsequentLines"}, "", "", "", "string.link"]], [/^(__\s+)(.+)/, ["", "string.link"]], [/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/, [{token: "", next: "subsequentLines"}, "", "string.link", "", "keyword", ""], "@rawBlocks"], [/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ["", "string.link", ""]], [/^(\.\.)([ ].*)$/, [{token: "", next: "@comments"}, "comment"]]], inlineMarkup: [{include: "@citationsReference"}, {include: "@footnotesReference"}, [/(@simpleRefName)(_{1,2})/, ["string.link", ""]], [/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/, ["", "string.link", "", "string.link", "", "", ""]], [/\*\*([^\\*]|\*(?!\*))+\*\*/, "strong"], [/\*[^*]+\*/, "emphasis"], [/(``)((?:[^`]|\`(?!`))+)(``)/, ["", "keyword", ""]], [/(__\s+)(.+)/, ["", "keyword"]], [/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/, ["", "keyword", "", "", ""]], [/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/, ["", "", "", "keyword", ""]], [/(`)([^`]+)(`)/, ""], [/(_`)(@phrase)(`)/, ["", "string.link", ""]]], citations: [[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]]], citationsReference: [[/(\[)(@citationName)(\]_)/, ["", "string.link", ""]]], footnotes: [[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/, [{token: "", next: "@subsequentLines"}, "string.link", ""]], [/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]], [/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]]], footnotesReference: [[/(\[)([0-9]+)(\])(_)/, ["", "string.link", "", ""]], [/(\[)(#@simpleRefName?)(\])(_)/, ["", "string.link", "", ""]], [/(\[)(\*)(\])(_)/, ["", "string.link", "", ""]]], blankLineOfLiteralBlocks: [[/^$/, "", "@subsequentLinesOfLiteralBlocks"], [/^.*$/, "", "@pop"]], subsequentLinesOfLiteralBlocks: [[/(@blockLiteralStart+)(.*)/, ["keyword", ""]], [/^(?!blockLiteralStart)/, "", "@popall"]], subsequentLines: [[/^[\s]+.*/, ""], [/^(?!\s)/, "", "@pop"]], hyperlinks: [[/^[\s]+.*/, "string.link"], [/^(?!\s)/, "", "@pop"]], comments: [[/^[\s]+.*/, "comment"], [/^(?!\s)/, "", "@pop"]], tables: [[/\+-[+-]+/, "keyword"], [/\+=[+=]+/, "keyword"]]}}; + var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: "<", close: ">", notIn: ["string"]}], surroundingPairs: [{open: "(", close: ")"}, {open: "[", close: "]"}, {open: "`", close: "`"}], folding: {markers: {start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"), end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}}, r = {defaultToken: "", tokenPostfix: ".rst", control: /[\\`*_\[\]{}()#+\-\.!]/, escapes: /\\(?:@control)/, empty: ["area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "isindex", "link", "meta", "param"], alphanumerics: /[A-Za-z0-9]/, alphanumericsplus: /[A-Za-z0-9-_+:.]/, simpleRefNameWithoutBq: /(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/, simpleRefName: /(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/, phrase: /@simpleRefName(?:\s@simpleRefName)*/, citationName: /[A-Za-z][A-Za-z0-9-_.]*/, blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/, precedingChars: /(?:[ -:/'"<([{])/, followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/, punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/, tokenizer: {root: [[/^(@punctuation{3,}$){1,1}?/, "keyword"], [/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/, "keyword"], [/([ ]::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"], [/(::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"], {include: "@tables"}, {include: "@explicitMarkupBlocks"}, {include: "@inlineMarkup"}], explicitMarkupBlocks: [{include: "@citations"}, {include: "@footnotes"}, [/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/, [{token: "", next: "subsequentLines"}, "keyword", "", ""]], [/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/, [{token: "", next: "hyperlinks"}, "", "", "string.link", "", "", "string.link"]], [/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/, [{token: "", next: "subsequentLines"}, "", "", "", "string.link"]], [/^(__\s+)(.+)/, ["", "string.link"]], [/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/, [{token: "", next: "subsequentLines"}, "", "string.link", "", "keyword", ""], "@rawBlocks"], [/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ["", "string.link", ""]], [/^(\.\.)([ ].*)$/, [{token: "", next: "@comments"}, "comment"]]], inlineMarkup: [{include: "@citationsReference"}, {include: "@footnotesReference"}, [/(@simpleRefName)(_{1,2})/, ["string.link", ""]], [/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/, ["", "string.link", "", "string.link", "", "", ""]], [/\*\*([^\\*]|\*(?!\*))+\*\*/, "strong"], [/\*[^*]+\*/, "emphasis"], [/(``)((?:[^`]|\`(?!`))+)(``)/, ["", "keyword", ""]], [/(__\s+)(.+)/, ["", "keyword"]], [/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/, ["", "keyword", "", "", ""]], [/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/, ["", "", "", "keyword", ""]], [/(`)([^`]+)(`)/, ""], [/(_`)(@phrase)(`)/, ["", "string.link", ""]]], citations: [[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]]], citationsReference: [[/(\[)(@citationName)(\]_)/, ["", "string.link", ""]]], footnotes: [[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/, [{token: "", next: "@subsequentLines"}, "string.link", ""]], [/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]], [/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/, [{token: "", next: "@subsequentLines"}, "string.link", "", ""]]], footnotesReference: [[/(\[)([0-9]+)(\])(_)/, ["", "string.link", "", ""]], [/(\[)(#@simpleRefName?)(\])(_)/, ["", "string.link", "", ""]], [/(\[)(\*)(\])(_)/, ["", "string.link", "", ""]]], blankLineOfLiteralBlocks: [[/^$/, "", "@subsequentLinesOfLiteralBlocks"], [/^.*$/, "", "@pop"]], subsequentLinesOfLiteralBlocks: [[/(@blockLiteralStart+)(.*)/, ["keyword", ""]], [/^(?!blockLiteralStart)/, "", "@popall"]], subsequentLines: [[/^[\s]+.*/, ""], [/^(?!\s)/, "", "@pop"]], hyperlinks: [[/^[\s]+.*/, "string.link"], [/^(?!\s)/, "", "@pop"]], comments: [[/^[\s]+.*/, "comment"], [/^(?!\s)/, "", "@pop"]], tables: [[/\+-[+-]+/, "keyword"], [/\+=[+=]+/, "keyword"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#", blockComment: ["=begin", "=end"]}, brackets: [["(", ")"], ["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], indentationRules: {increaseIndentPattern: new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`), decreaseIndentPattern: new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}}, o = {tokenPostfix: ".ruby", keywords: ["__LINE__", "__ENCODING__", "__FILE__", "BEGIN", "END", "alias", "and", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "end", "ensure", "for", "false", "if", "in", "module", "next", "nil", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield"], keywordops: ["::", "..", "...", "?", ":", "=>"], builtins: ["require", "public", "private", "include", "extend", "attr_reader", "protected", "private_class_method", "protected_class_method", "new"], declarations: ["module", "class", "def", "case", "do", "begin", "for", "if", "while", "until", "unless"], linedecls: ["def", "case", "do", "begin", "for", "if", "while", "until", "unless"], operators: ["^", "&", "|", "<=>", "==", "===", "!~", "=~", ">", ">=", "<", "<=", "<<", ">>", "+", "-", "*", "/", "%", "**", "~", "+@", "-@", "[]", "[]=", "`", "+=", "-=", "*=", "**=", "/=", "^=", "%=", "<<=", ">>=", "&=", "&&=", "||=", "|="], brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], symbols: /[=><!~?:&|+\-*\/\^%\.]+/, escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/, escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/, decpart: /\d(_?\d)*/, decimal: /0|@decpart/, delim: /[^a-zA-Z0-9\s\n\r]/, heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/, tokenizer: {root: [[/^(\s*)([a-z_]\w*[!?=]?)/, ["white", {cases: {"for|until|while": {token: "keyword.$2", next: "@dodecl.$2"}, "@declarations": {token: "keyword.$2", next: "@root.$2"}, end: {token: "keyword.$S2", next: "@pop"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}]], [/[a-z_]\w*[!?=]?/, {cases: {"if|unless|while|until": {token: "keyword.$0x", next: "@modifier.$0x"}, for: {token: "keyword.$2", next: "@dodecl.$2"}, "@linedecls": {token: "keyword.$0", next: "@root.$0"}, end: {token: "keyword.$S2", next: "@pop"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], [/[A-Z][\w]*[!?=]?/, "constructor.identifier"], [/\$[\w]*/, "global.constant"], [/@[\w]*/, "namespace.instance.identifier"], [/@@[\w]*/, "namespace.class.identifier"], [/<<[-~](@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], [/[ \t\r\n]+<<(@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], [/^<<(@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], {include: "@whitespace"}, [/"/, {token: "string.d.delim", next: '@dstring.d."'}], [/'/, {token: "string.sq.delim", next: "@sstring.sq"}], [/%([rsqxwW]|Q?)/, {token: "@rematch", next: "pstring"}], [/`/, {token: "string.x.delim", next: "@dstring.x.`"}], [/:(\w|[$@])\w*[!?=]?/, "string.s"], [/:"/, {token: "string.s.delim", next: '@dstring.s."'}], [/:'/, {token: "string.s.delim", next: "@sstring.s"}], [/\/(?=(\\\/|[^\/\n])+\/)/, {token: "regexp.delim", next: "@regexp"}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@keywordops": "keyword", "@operators": "operator", "@default": ""}}], [/[;,]/, "delimiter"], [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"], [/0[_oO][0-7](_?[0-7])*/, "number.octal"], [/0[bB][01](_?[01])*/, "number.binary"], [/0[dD]@decpart/, "number"], [/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/, {cases: {$1: "number.float", "@default": "number"}}]], dodecl: [[/^/, {token: "", switchTo: "@root.$S2"}], [/[a-z_]\w*[!?=]?/, {cases: {end: {token: "keyword.$S2", next: "@pop"}, do: {token: "keyword", switchTo: "@root.$S2"}, "@linedecls": {token: "@rematch", switchTo: "@root.$S2"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], {include: "@root"}], modifier: [[/^/, "", "@pop"], [/[a-z_]\w*[!?=]?/, {cases: {end: {token: "keyword.$S2", next: "@pop"}, "then|else|elsif|do": {token: "keyword", switchTo: "@root.$S2"}, "@linedecls": {token: "@rematch", switchTo: "@root.$S2"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], {include: "@root"}], sstring: [[/[^\\']+/, "string.$S2"], [/\\\\|\\'|\\$/, "string.$S2.escape"], [/\\./, "string.$S2.invalid"], [/'/, {token: "string.$S2.delim", next: "@pop"}]], dstring: [[/[^\\`"#]+/, "string.$S2"], [/#/, "string.$S2.escape", "@interpolated"], [/\\$/, "string.$S2.escape"], [/@escapes/, "string.$S2.escape"], [/\\./, "string.$S2.escape.invalid"], [/[`"]/, {cases: {"$#==$S3": {token: "string.$S2.delim", next: "@pop"}, "@default": "string.$S2"}}]], heredoc: [[/^(\s*)(@heredelim)$/, {cases: {"$2==$S2": ["string.heredoc", {token: "string.heredoc.delimiter", next: "@pop"}], "@default": ["string.heredoc", "string.heredoc"]}}], [/.*/, "string.heredoc"]], interpolated: [[/\$\w*/, "global.constant", "@pop"], [/@\w*/, "namespace.class.identifier", "@pop"], [/@@\w*/, "namespace.instance.identifier", "@pop"], [/[{]/, {token: "string.escape.curly", switchTo: "@interpolated_compound"}], ["", "", "@pop"]], interpolated_compound: [[/[}]/, {token: "string.escape.curly", next: "@pop"}], {include: "@root"}], pregexp: [{include: "@whitespace"}, [/[^\(\{\[\\]/, {cases: {"$#==$S3": {token: "regexp.delim", next: "@pop"}, "$#==$S2": {token: "regexp.delim", next: "@push"}, "~[)}\\]]": "@brackets.regexp.escape.control", "~@regexpctl": "regexp.escape.control", "@default": "regexp"}}], {include: "@regexcontrol"}], regexp: [{include: "@regexcontrol"}, [/[^\\\/]/, "regexp"], ["/[ixmp]*", {token: "regexp.delim"}, "@pop"]], regexcontrol: [[/(\{)(\d+(?:,\d*)?)(\})/, ["@brackets.regexp.escape.control", "regexp.escape.control", "@brackets.regexp.escape.control"]], [/(\[)(\^?)/, ["@brackets.regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]], [/\(\?#/, {token: "regexp.escape.control", next: "@regexpcomment"}], [/[()]/, "@brackets.regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/\\$/, "regexp.escape"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/#/, "regexp.escape", "@interpolated"]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/\\$/, "regexp.escape"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, "@brackets.regexp.escape.control", "@pop"]], regexpcomment: [[/[^)]+/, "comment"], [/\)/, {token: "regexp.escape.control", next: "@pop"}]], pstring: [[/%([qws])\(/, {token: "string.$1.delim", switchTo: "@qstring.$1.(.)"}], [/%([qws])\[/, {token: "string.$1.delim", switchTo: "@qstring.$1.[.]"}], [/%([qws])\{/, {token: "string.$1.delim", switchTo: "@qstring.$1.{.}"}], [/%([qws])</, {token: "string.$1.delim", switchTo: "@qstring.$1.<.>"}], [/%([qws])(@delim)/, {token: "string.$1.delim", switchTo: "@qstring.$1.$2.$2"}], [/%r\(/, {token: "regexp.delim", switchTo: "@pregexp.(.)"}], [/%r\[/, {token: "regexp.delim", switchTo: "@pregexp.[.]"}], [/%r\{/, {token: "regexp.delim", switchTo: "@pregexp.{.}"}], [/%r</, {token: "regexp.delim", switchTo: "@pregexp.<.>"}], [/%r(@delim)/, {token: "regexp.delim", switchTo: "@pregexp.$1.$1"}], [/%(x|W|Q?)\(/, {token: "string.$1.delim", switchTo: "@qqstring.$1.(.)"}], [/%(x|W|Q?)\[/, {token: "string.$1.delim", switchTo: "@qqstring.$1.[.]"}], [/%(x|W|Q?)\{/, {token: "string.$1.delim", switchTo: "@qqstring.$1.{.}"}], [/%(x|W|Q?)</, {token: "string.$1.delim", switchTo: "@qqstring.$1.<.>"}], [/%(x|W|Q?)(@delim)/, {token: "string.$1.delim", switchTo: "@qqstring.$1.$2.$2"}], [/%([rqwsxW]|Q?)./, {token: "invalid", next: "@pop"}], [/./, {token: "invalid", next: "@pop"}]], qstring: [[/\\$/, "string.$S2.escape"], [/\\./, "string.$S2.escape"], [/./, {cases: {"$#==$S4": {token: "string.$S2.delim", next: "@pop"}, "$#==$S3": {token: "string.$S2.delim", next: "@push"}, "@default": "string.$S2"}}]], qqstring: [[/#/, "string.$S2.escape", "@interpolated"], {include: "@qstring"}], whitespace: [[/[ \t\r\n]+/, ""], [/^\s*=begin\b/, "comment", "@comment"], [/#.*$/, "comment"]], comment: [[/[^=]+/, "comment"], [/^\s*=begin\b/, "comment.invalid"], [/^\s*=end\b.*/, "comment", "@pop"], [/[=]/, "comment"]]}}; + var i = {comments: {lineComment: "#", blockComment: ["=begin", "=end"]}, brackets: [["(", ")"], ["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], indentationRules: {increaseIndentPattern: new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`), decreaseIndentPattern: new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}}, r = {tokenPostfix: ".ruby", keywords: ["__LINE__", "__ENCODING__", "__FILE__", "BEGIN", "END", "alias", "and", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "end", "ensure", "for", "false", "if", "in", "module", "next", "nil", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield"], keywordops: ["::", "..", "...", "?", ":", "=>"], builtins: ["require", "public", "private", "include", "extend", "attr_reader", "protected", "private_class_method", "protected_class_method", "new"], declarations: ["module", "class", "def", "case", "do", "begin", "for", "if", "while", "until", "unless"], linedecls: ["def", "case", "do", "begin", "for", "if", "while", "until", "unless"], operators: ["^", "&", "|", "<=>", "==", "===", "!~", "=~", ">", ">=", "<", "<=", "<<", ">>", "+", "-", "*", "/", "%", "**", "~", "+@", "-@", "[]", "[]=", "`", "+=", "-=", "*=", "**=", "/=", "^=", "%=", "<<=", ">>=", "&=", "&&=", "||=", "|="], brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], symbols: /[=><!~?:&|+\-*\/\^%\.]+/, escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/, escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/, decpart: /\d(_?\d)*/, decimal: /0|@decpart/, delim: /[^a-zA-Z0-9\s\n\r]/, heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/, tokenizer: {root: [[/^(\s*)([a-z_]\w*[!?=]?)/, ["white", {cases: {"for|until|while": {token: "keyword.$2", next: "@dodecl.$2"}, "@declarations": {token: "keyword.$2", next: "@root.$2"}, end: {token: "keyword.$S2", next: "@pop"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}]], [/[a-z_]\w*[!?=]?/, {cases: {"if|unless|while|until": {token: "keyword.$0x", next: "@modifier.$0x"}, for: {token: "keyword.$2", next: "@dodecl.$2"}, "@linedecls": {token: "keyword.$0", next: "@root.$0"}, end: {token: "keyword.$S2", next: "@pop"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], [/[A-Z][\w]*[!?=]?/, "constructor.identifier"], [/\$[\w]*/, "global.constant"], [/@[\w]*/, "namespace.instance.identifier"], [/@@[\w]*/, "namespace.class.identifier"], [/<<[-~](@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], [/[ \t\r\n]+<<(@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], [/^<<(@heredelim).*/, {token: "string.heredoc.delimiter", next: "@heredoc.$1"}], {include: "@whitespace"}, [/"/, {token: "string.d.delim", next: '@dstring.d."'}], [/'/, {token: "string.sq.delim", next: "@sstring.sq"}], [/%([rsqxwW]|Q?)/, {token: "@rematch", next: "pstring"}], [/`/, {token: "string.x.delim", next: "@dstring.x.`"}], [/:(\w|[$@])\w*[!?=]?/, "string.s"], [/:"/, {token: "string.s.delim", next: '@dstring.s."'}], [/:'/, {token: "string.s.delim", next: "@sstring.s"}], [/\/(?=(\\\/|[^\/\n])+\/)/, {token: "regexp.delim", next: "@regexp"}], [/[{}()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@keywordops": "keyword", "@operators": "operator", "@default": ""}}], [/[;,]/, "delimiter"], [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"], [/0[_oO][0-7](_?[0-7])*/, "number.octal"], [/0[bB][01](_?[01])*/, "number.binary"], [/0[dD]@decpart/, "number"], [/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/, {cases: {$1: "number.float", "@default": "number"}}]], dodecl: [[/^/, {token: "", switchTo: "@root.$S2"}], [/[a-z_]\w*[!?=]?/, {cases: {end: {token: "keyword.$S2", next: "@pop"}, do: {token: "keyword", switchTo: "@root.$S2"}, "@linedecls": {token: "@rematch", switchTo: "@root.$S2"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], {include: "@root"}], modifier: [[/^/, "", "@pop"], [/[a-z_]\w*[!?=]?/, {cases: {end: {token: "keyword.$S2", next: "@pop"}, "then|else|elsif|do": {token: "keyword", switchTo: "@root.$S2"}, "@linedecls": {token: "@rematch", switchTo: "@root.$S2"}, "@keywords": "keyword", "@builtins": "predefined", "@default": "identifier"}}], {include: "@root"}], sstring: [[/[^\\']+/, "string.$S2"], [/\\\\|\\'|\\$/, "string.$S2.escape"], [/\\./, "string.$S2.invalid"], [/'/, {token: "string.$S2.delim", next: "@pop"}]], dstring: [[/[^\\`"#]+/, "string.$S2"], [/#/, "string.$S2.escape", "@interpolated"], [/\\$/, "string.$S2.escape"], [/@escapes/, "string.$S2.escape"], [/\\./, "string.$S2.escape.invalid"], [/[`"]/, {cases: {"$#==$S3": {token: "string.$S2.delim", next: "@pop"}, "@default": "string.$S2"}}]], heredoc: [[/^(\s*)(@heredelim)$/, {cases: {"$2==$S2": ["string.heredoc", {token: "string.heredoc.delimiter", next: "@pop"}], "@default": ["string.heredoc", "string.heredoc"]}}], [/.*/, "string.heredoc"]], interpolated: [[/\$\w*/, "global.constant", "@pop"], [/@\w*/, "namespace.class.identifier", "@pop"], [/@@\w*/, "namespace.instance.identifier", "@pop"], [/[{]/, {token: "string.escape.curly", switchTo: "@interpolated_compound"}], ["", "", "@pop"]], interpolated_compound: [[/[}]/, {token: "string.escape.curly", next: "@pop"}], {include: "@root"}], pregexp: [{include: "@whitespace"}, [/[^\(\{\[\\]/, {cases: {"$#==$S3": {token: "regexp.delim", next: "@pop"}, "$#==$S2": {token: "regexp.delim", next: "@push"}, "~[)}\\]]": "@brackets.regexp.escape.control", "~@regexpctl": "regexp.escape.control", "@default": "regexp"}}], {include: "@regexcontrol"}], regexp: [{include: "@regexcontrol"}, [/[^\\\/]/, "regexp"], ["/[ixmp]*", {token: "regexp.delim"}, "@pop"]], regexcontrol: [[/(\{)(\d+(?:,\d*)?)(\})/, ["@brackets.regexp.escape.control", "regexp.escape.control", "@brackets.regexp.escape.control"]], [/(\[)(\^?)/, ["@brackets.regexp.escape.control", {token: "regexp.escape.control", next: "@regexrange"}]], [/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]], [/\(\?#/, {token: "regexp.escape.control", next: "@regexpcomment"}], [/[()]/, "@brackets.regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/\\$/, "regexp.escape"], [/@regexpesc/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/#/, "regexp.escape", "@interpolated"]], regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/\\$/, "regexp.escape"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, "@brackets.regexp.escape.control", "@pop"]], regexpcomment: [[/[^)]+/, "comment"], [/\)/, {token: "regexp.escape.control", next: "@pop"}]], pstring: [[/%([qws])\(/, {token: "string.$1.delim", switchTo: "@qstring.$1.(.)"}], [/%([qws])\[/, {token: "string.$1.delim", switchTo: "@qstring.$1.[.]"}], [/%([qws])\{/, {token: "string.$1.delim", switchTo: "@qstring.$1.{.}"}], [/%([qws])</, {token: "string.$1.delim", switchTo: "@qstring.$1.<.>"}], [/%([qws])(@delim)/, {token: "string.$1.delim", switchTo: "@qstring.$1.$2.$2"}], [/%r\(/, {token: "regexp.delim", switchTo: "@pregexp.(.)"}], [/%r\[/, {token: "regexp.delim", switchTo: "@pregexp.[.]"}], [/%r\{/, {token: "regexp.delim", switchTo: "@pregexp.{.}"}], [/%r</, {token: "regexp.delim", switchTo: "@pregexp.<.>"}], [/%r(@delim)/, {token: "regexp.delim", switchTo: "@pregexp.$1.$1"}], [/%(x|W|Q?)\(/, {token: "string.$1.delim", switchTo: "@qqstring.$1.(.)"}], [/%(x|W|Q?)\[/, {token: "string.$1.delim", switchTo: "@qqstring.$1.[.]"}], [/%(x|W|Q?)\{/, {token: "string.$1.delim", switchTo: "@qqstring.$1.{.}"}], [/%(x|W|Q?)</, {token: "string.$1.delim", switchTo: "@qqstring.$1.<.>"}], [/%(x|W|Q?)(@delim)/, {token: "string.$1.delim", switchTo: "@qqstring.$1.$2.$2"}], [/%([rqwsxW]|Q?)./, {token: "invalid", next: "@pop"}], [/./, {token: "invalid", next: "@pop"}]], qstring: [[/\\$/, "string.$S2.escape"], [/\\./, "string.$S2.escape"], [/./, {cases: {"$#==$S4": {token: "string.$S2.delim", next: "@pop"}, "$#==$S3": {token: "string.$S2.delim", next: "@push"}, "@default": "string.$S2"}}]], qqstring: [[/#/, "string.$S2.escape", "@interpolated"], {include: "@qstring"}], whitespace: [[/[ \t\r\n]+/, ""], [/^\s*=begin\b/, "comment", "@comment"], [/#.*$/, "comment"]], comment: [[/[^=]+/, "comment"], [/^\s*=begin\b/, "comment.invalid"], [/^\s*=end\b.*/, "comment", "@pop"], [/[=]/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, o = {tokenPostfix: ".rust", defaultToken: "invalid", keywords: ["as", "box", "break", "const", "continue", "crate", "else", "enum", "extern", "false", "fn", "for", "if", "impl", "in", "let", "loop", "match", "mod", "move", "mut", "pub", "ref", "return", "self", "static", "struct", "super", "trait", "true", "type", "unsafe", "use", "where", "while", "catch", "default", "union", "static", "abstract", "alignof", "become", "do", "final", "macro", "offsetof", "override", "priv", "proc", "pure", "sizeof", "typeof", "unsized", "virtual", "yield"], typeKeywords: ["Self", "m32", "m64", "m128", "f80", "f16", "f128", "int", "uint", "float", "char", "bool", "u8", "u16", "u32", "u64", "f32", "f64", "i8", "i16", "i32", "i64", "str", "Option", "Either", "c_float", "c_double", "c_void", "FILE", "fpos_t", "DIR", "dirent", "c_char", "c_schar", "c_uchar", "c_short", "c_ushort", "c_int", "c_uint", "c_long", "c_ulong", "size_t", "ptrdiff_t", "clock_t", "time_t", "c_longlong", "c_ulonglong", "intptr_t", "uintptr_t", "off_t", "dev_t", "ino_t", "pid_t", "mode_t", "ssize_t"], constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"], supportConstants: ["EXIT_FAILURE", "EXIT_SUCCESS", "RAND_MAX", "EOF", "SEEK_SET", "SEEK_CUR", "SEEK_END", "_IOFBF", "_IONBF", "_IOLBF", "BUFSIZ", "FOPEN_MAX", "FILENAME_MAX", "L_tmpnam", "TMP_MAX", "O_RDONLY", "O_WRONLY", "O_RDWR", "O_APPEND", "O_CREAT", "O_EXCL", "O_TRUNC", "S_IFIFO", "S_IFCHR", "S_IFBLK", "S_IFDIR", "S_IFREG", "S_IFMT", "S_IEXEC", "S_IWRITE", "S_IREAD", "S_IRWXU", "S_IXUSR", "S_IWUSR", "S_IRUSR", "F_OK", "R_OK", "W_OK", "X_OK", "STDIN_FILENO", "STDOUT_FILENO", "STDERR_FILENO"], supportMacros: ["format!", "print!", "println!", "panic!", "format_args!", "unreachable!", "write!", "writeln!"], operators: ["!", "!=", "%", "%=", "&", "&=", "&&", "*", "*=", "+", "+=", "-", "-=", "->", ".", "..", "...", "/", "/=", ":", ";", "<<", "<<=", "<", "<=", "=", "==", "=>", ">", ">=", ">>", ">>=", "@", "^", "^=", "|", "|=", "||", "_", "?", "#"], escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/, delimiters: /[,]/, symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/, intSuffixes: /[iu](8|16|32|64|128|size)/, floatSuffixes: /f(32|64)/, tokenizer: {root: [[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/, {cases: {"@typeKeywords": "keyword.type", "@keywords": "keyword", "@supportConstants": "keyword", "@supportMacros": "keyword", "@constants": "keyword", "@default": "identifier"}}], [/\$/, "identifier"], [/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"], [/'\S'/, "string.byteliteral"], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}], {include: "@numbers"}, {include: "@whitespace"}, [/@delimiters/, {cases: {"@keywords": "keyword", "@default": "delimiter"}}], [/[{}()\[\]<>]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], numbers: [[/(0o[0-7_]+)(@intSuffixes)?/, {token: "number"}], [/(0b[0-1_]+)(@intSuffixes)?/, {token: "number"}], [/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, {token: "number"}], [/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, {token: "number"}], [/(0x[\da-fA-F]+)_?(@intSuffixes)?/, {token: "number"}], [/[\d][\d_]*(@intSuffixes?)?/, {token: "number"}]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, r = {tokenPostfix: ".rust", defaultToken: "invalid", keywords: ["as", "box", "break", "const", "continue", "crate", "else", "enum", "extern", "false", "fn", "for", "if", "impl", "in", "let", "loop", "match", "mod", "move", "mut", "pub", "ref", "return", "self", "static", "struct", "super", "trait", "true", "type", "unsafe", "use", "where", "while", "catch", "default", "union", "static", "abstract", "alignof", "become", "do", "final", "macro", "offsetof", "override", "priv", "proc", "pure", "sizeof", "typeof", "unsized", "virtual", "yield"], typeKeywords: ["Self", "m32", "m64", "m128", "f80", "f16", "f128", "int", "uint", "float", "char", "bool", "u8", "u16", "u32", "u64", "f32", "f64", "i8", "i16", "i32", "i64", "str", "Option", "Either", "c_float", "c_double", "c_void", "FILE", "fpos_t", "DIR", "dirent", "c_char", "c_schar", "c_uchar", "c_short", "c_ushort", "c_int", "c_uint", "c_long", "c_ulong", "size_t", "ptrdiff_t", "clock_t", "time_t", "c_longlong", "c_ulonglong", "intptr_t", "uintptr_t", "off_t", "dev_t", "ino_t", "pid_t", "mode_t", "ssize_t"], constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"], supportConstants: ["EXIT_FAILURE", "EXIT_SUCCESS", "RAND_MAX", "EOF", "SEEK_SET", "SEEK_CUR", "SEEK_END", "_IOFBF", "_IONBF", "_IOLBF", "BUFSIZ", "FOPEN_MAX", "FILENAME_MAX", "L_tmpnam", "TMP_MAX", "O_RDONLY", "O_WRONLY", "O_RDWR", "O_APPEND", "O_CREAT", "O_EXCL", "O_TRUNC", "S_IFIFO", "S_IFCHR", "S_IFBLK", "S_IFDIR", "S_IFREG", "S_IFMT", "S_IEXEC", "S_IWRITE", "S_IREAD", "S_IRWXU", "S_IXUSR", "S_IWUSR", "S_IRUSR", "F_OK", "R_OK", "W_OK", "X_OK", "STDIN_FILENO", "STDOUT_FILENO", "STDERR_FILENO"], supportMacros: ["format!", "print!", "println!", "panic!", "format_args!", "unreachable!", "write!", "writeln!"], operators: ["!", "!=", "%", "%=", "&", "&=", "&&", "*", "*=", "+", "+=", "-", "-=", "->", ".", "..", "...", "/", "/=", ":", ";", "<<", "<<=", "<", "<=", "=", "==", "=>", ">", ">=", ">>", ">>=", "@", "^", "^=", "|", "|=", "||", "_", "?", "#"], escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/, delimiters: /[,]/, symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/, intSuffixes: /[iu](8|16|32|64|128|size)/, floatSuffixes: /f(32|64)/, tokenizer: {root: [[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/, {cases: {"@typeKeywords": "keyword.type", "@keywords": "keyword", "@supportConstants": "keyword", "@supportMacros": "keyword", "@constants": "keyword", "@default": "identifier"}}], [/\$/, "identifier"], [/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"], [/'\S'/, "string.byteliteral"], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}], {include: "@numbers"}, {include: "@whitespace"}, [/@delimiters/, {cases: {"@keywords": "keyword", "@default": "delimiter"}}], [/[{}()\[\]<>]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": ""}}]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], numbers: [[/(0o[0-7_]+)(@intSuffixes)?/, {token: "number"}], [/(0b[0-1_]+)(@intSuffixes)?/, {token: "number"}], [/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, {token: "number"}], [/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, {token: "number"}], [/(0x[\da-fA-F]+)_?(@intSuffixes)?/, {token: "number"}], [/[\d][\d_]*(@intSuffixes?)?/, {token: "number"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "'"}, brackets: [["(", ")"], ["[", "]"], ["If", "EndIf"], ["While", "EndWhile"], ["For", "EndFor"], ["Sub", "EndSub"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}]}, o = {defaultToken: "", tokenPostfix: ".sb", ignoreCase: true, brackets: [{token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "keyword.tag-if", open: "If", close: "EndIf"}, {token: "keyword.tag-while", open: "While", close: "EndWhile"}, {token: "keyword.tag-for", open: "For", close: "EndFor"}, {token: "keyword.tag-sub", open: "Sub", close: "EndSub"}], keywords: ["Else", "ElseIf", "EndFor", "EndIf", "EndSub", "EndWhile", "For", "Goto", "If", "Step", "Sub", "Then", "To", "While"], tagwords: ["If", "Sub", "While", "For"], operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="], identifier: /[a-zA-Z_][\w]*/, symbols: /[=><:+\-*\/%\.,]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, [/(@identifier)(?=[.])/, "type"], [/@identifier/, {cases: {"@keywords": {token: "keyword.$0"}, "@operators": "operator", "@default": "variable.name"}}], [/([.])(@identifier)/, {cases: {$2: ["delimiter", "type.member"], "@default": ""}}], [/\d*\.\d+/, "number.float"], [/\d+/, "number"], [/[()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": "delimiter"}}], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"]], whitespace: [[/[ \t\r\n]+/, ""], [/(\').*$/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"C?/, "string", "@pop"]]}}; + var i = {comments: {lineComment: "'"}, brackets: [["(", ")"], ["[", "]"], ["If", "EndIf"], ["While", "EndWhile"], ["For", "EndFor"], ["Sub", "EndSub"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}]}, r = {defaultToken: "", tokenPostfix: ".sb", ignoreCase: true, brackets: [{token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "keyword.tag-if", open: "If", close: "EndIf"}, {token: "keyword.tag-while", open: "While", close: "EndWhile"}, {token: "keyword.tag-for", open: "For", close: "EndFor"}, {token: "keyword.tag-sub", open: "Sub", close: "EndSub"}], keywords: ["Else", "ElseIf", "EndFor", "EndIf", "EndSub", "EndWhile", "For", "Goto", "If", "Step", "Sub", "Then", "To", "While"], tagwords: ["If", "Sub", "While", "For"], operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="], identifier: /[a-zA-Z_][\w]*/, symbols: /[=><:+\-*\/%\.,]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, [/(@identifier)(?=[.])/, "type"], [/@identifier/, {cases: {"@keywords": {token: "keyword.$0"}, "@operators": "operator", "@default": "variable.name"}}], [/([.])(@identifier)/, {cases: {$2: ["delimiter", "type.member"], "@default": ""}}], [/\d*\.\d+/, "number.float"], [/\d+/, "number"], [/[()\[\]]/, "@brackets"], [/@symbols/, {cases: {"@operators": "operator", "@default": "delimiter"}}], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"]], whitespace: [[/[ \t\r\n]+/, ""], [/(\').*$/, "comment"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"C?/, "string", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, o = {tokenPostfix: ".scala", keywords: ["asInstanceOf", "catch", "class", "classOf", "def", "do", "else", "extends", "finally", "for", "foreach", "forSome", "if", "import", "isInstanceOf", "macro", "match", "new", "object", "package", "return", "throw", "trait", "try", "type", "until", "val", "var", "while", "with", "yield", "given", "enum", "then"], softKeywords: ["as", "export", "extension", "end", "derives", "on"], constants: ["true", "false", "null", "this", "super"], modifiers: ["abstract", "final", "implicit", "lazy", "override", "private", "protected", "sealed"], softModifiers: ["inline", "opaque", "open", "transparent", "using"], name: /(?:[a-z_$][\w$]*|`[^`]+`)/, type: /(?:[A-Z][\w$]*)/, symbols: /[=><!~?:&|+\-*\/^\\%@#]+/, digits: /\d+(_+\d+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/, tokenizer: {root: [[/\braw"""/, {token: "string.quote", bracket: "@open", next: "@rawstringt"}], [/\braw"/, {token: "string.quote", bracket: "@open", next: "@rawstring"}], [/\bs"""/, {token: "string.quote", bracket: "@open", next: "@sstringt"}], [/\bs"/, {token: "string.quote", bracket: "@open", next: "@sstring"}], [/\bf""""/, {token: "string.quote", bracket: "@open", next: "@fstringt"}], [/\bf"/, {token: "string.quote", bracket: "@open", next: "@fstring"}], [/"""/, {token: "string.quote", bracket: "@open", next: "@stringt"}], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"], [/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"], [/(@digits)[fFdD]/, "number.float", "@allowMethod"], [/(@digits)[lL]?/, "number", "@allowMethod"], [/\b_\*/, "key"], [/\b(_)\b/, "keyword", "@allowMethod"], [/\bimport\b/, "keyword", "@import"], [/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]], [/\bcase\b/, "keyword", "@case"], [/\bva[lr]\b/, "keyword", "@vardef"], [/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/, ["keyword", "white", "identifier"]], [/@name(?=[ \t]*:(?!:))/, "variable"], [/(\.)(@name|@symbols)/, ["operator", {token: "@rematch", next: "@allowMethod"}]], [/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]], [/@name/, {cases: {"@keywords": "keyword", "@softKeywords": "keyword", "@modifiers": "keyword.modifier", "@softModifiers": "keyword.modifier", "@constants": {token: "constant", next: "@allowMethod"}, "@default": {token: "identifier", next: "@allowMethod"}}}], [/@type/, "type", "@allowMethod"], {include: "@whitespace"}, [/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"], [/[{(]/, "@brackets"], [/[})]/, "@brackets", "@allowMethod"], [/\[/, "operator.square"], [/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"], [/]/, "operator.square"], [/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"], [/@symbols/, "operator"], [/[;,\.]/, "delimiter"], [/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"], [/'[^\\']'/, "string", "@allowMethod"], [/(')(@escapes)(')/, ["string", "string.escape", {token: "string", next: "@allowMethod"}]], [/'/, "string.invalid"]], import: [[/;/, "delimiter", "@pop"], [/^|$/, "", "@pop"], [/[ \t]+/, "white"], [/[\n\r]+/, "white", "@pop"], [/\/\*/, "comment", "@comment"], [/@name|@type/, "type"], [/[(){}]/, "@brackets"], [/[[\]]/, "operator.square"], [/[\.,]/, "delimiter"]], allowMethod: [[/^|$/, "", "@pop"], [/[ \t]+/, "white"], [/[\n\r]+/, "white", "@pop"], [/\/\*/, "comment", "@comment"], [/(?==>[\s\w([{])/, "keyword", "@pop"], [/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/, {cases: {"@keywords": {token: "keyword", next: "@pop"}, "->|<-|>:|<:|<%": {token: "keyword", next: "@pop"}, "@default": {token: "@rematch", next: "@pop"}}}], ["", "", "@pop"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], case: [[/\b_\*/, "key"], [/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"], [/\bif\b|=>/, "keyword", "@pop"], [/`[^`]+`/, "identifier", "@allowMethod"], [/@name/, "variable", "@allowMethod"], [/:::?|\||@(?![a-z_$])/, "keyword"], {include: "@root"}], vardef: [[/\b_\*/, "key"], [/\b(_|true|false|null|this|super)\b/, "keyword"], [/@name/, "variable"], [/:::?|\||@(?![a-z_$])/, "keyword"], [/=|:(?!:)/, "operator", "@pop"], [/$/, "white", "@pop"], {include: "@root"}], string: [[/[^\\"\n\r]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}]], stringt: [[/[^\\"\n\r]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/"/, "string"]], fstring: [[/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/%%/, "string"], [/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "keyword.modifier", "number", "metatag"]], [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]], [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]], [/(%)(@fstring_conv)/, ["metatag", "metatag"]], [/./, "string"]], fstringt: [[/@escapes/, "string.escape"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/%%/, "string"], [/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "keyword.modifier", "number", "metatag"]], [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]], [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]], [/(%)(@fstring_conv)/, ["metatag", "metatag"]], [/./, "string"]], sstring: [[/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/./, "string"]], sstringt: [[/@escapes/, "string.escape"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/./, "string"]], interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], {include: "@root"}], rawstring: [[/[^"]/, "string"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}]], rawstringt: [[/[^"]/, "string"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/"/, "string"]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; + var i = {wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"), end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}}, r = {tokenPostfix: ".scala", keywords: ["asInstanceOf", "catch", "class", "classOf", "def", "do", "else", "extends", "finally", "for", "foreach", "forSome", "if", "import", "isInstanceOf", "macro", "match", "new", "object", "package", "return", "throw", "trait", "try", "type", "until", "val", "var", "while", "with", "yield", "given", "enum", "then"], softKeywords: ["as", "export", "extension", "end", "derives", "on"], constants: ["true", "false", "null", "this", "super"], modifiers: ["abstract", "final", "implicit", "lazy", "override", "private", "protected", "sealed"], softModifiers: ["inline", "opaque", "open", "transparent", "using"], name: /(?:[a-z_$][\w$]*|`[^`]+`)/, type: /(?:[A-Z][\w$]*)/, symbols: /[=><!~?:&|+\-*\/^\\%@#]+/, digits: /\d+(_+\d+)*/, hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/, tokenizer: {root: [[/\braw"""/, {token: "string.quote", bracket: "@open", next: "@rawstringt"}], [/\braw"/, {token: "string.quote", bracket: "@open", next: "@rawstring"}], [/\bs"""/, {token: "string.quote", bracket: "@open", next: "@sstringt"}], [/\bs"/, {token: "string.quote", bracket: "@open", next: "@sstring"}], [/\bf""""/, {token: "string.quote", bracket: "@open", next: "@fstringt"}], [/\bf"/, {token: "string.quote", bracket: "@open", next: "@fstring"}], [/"""/, {token: "string.quote", bracket: "@open", next: "@stringt"}], [/"/, {token: "string.quote", bracket: "@open", next: "@string"}], [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"], [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"], [/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"], [/(@digits)[fFdD]/, "number.float", "@allowMethod"], [/(@digits)[lL]?/, "number", "@allowMethod"], [/\b_\*/, "key"], [/\b(_)\b/, "keyword", "@allowMethod"], [/\bimport\b/, "keyword", "@import"], [/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]], [/\bcase\b/, "keyword", "@case"], [/\bva[lr]\b/, "keyword", "@vardef"], [/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/, ["keyword", "white", "identifier"]], [/@name(?=[ \t]*:(?!:))/, "variable"], [/(\.)(@name|@symbols)/, ["operator", {token: "@rematch", next: "@allowMethod"}]], [/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]], [/@name/, {cases: {"@keywords": "keyword", "@softKeywords": "keyword", "@modifiers": "keyword.modifier", "@softModifiers": "keyword.modifier", "@constants": {token: "constant", next: "@allowMethod"}, "@default": {token: "identifier", next: "@allowMethod"}}}], [/@type/, "type", "@allowMethod"], {include: "@whitespace"}, [/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"], [/[{(]/, "@brackets"], [/[})]/, "@brackets", "@allowMethod"], [/\[/, "operator.square"], [/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"], [/]/, "operator.square"], [/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"], [/@symbols/, "operator"], [/[;,\.]/, "delimiter"], [/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"], [/'[^\\']'/, "string", "@allowMethod"], [/(')(@escapes)(')/, ["string", "string.escape", {token: "string", next: "@allowMethod"}]], [/'/, "string.invalid"]], import: [[/;/, "delimiter", "@pop"], [/^|$/, "", "@pop"], [/[ \t]+/, "white"], [/[\n\r]+/, "white", "@pop"], [/\/\*/, "comment", "@comment"], [/@name|@type/, "type"], [/[(){}]/, "@brackets"], [/[[\]]/, "operator.square"], [/[\.,]/, "delimiter"]], allowMethod: [[/^|$/, "", "@pop"], [/[ \t]+/, "white"], [/[\n\r]+/, "white", "@pop"], [/\/\*/, "comment", "@comment"], [/(?==>[\s\w([{])/, "keyword", "@pop"], [/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/, {cases: {"@keywords": {token: "keyword", next: "@pop"}, "->|<-|>:|<:|<%": {token: "keyword", next: "@pop"}, "@default": {token: "@rematch", next: "@pop"}}}], ["", "", "@pop"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], case: [[/\b_\*/, "key"], [/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"], [/\bif\b|=>/, "keyword", "@pop"], [/`[^`]+`/, "identifier", "@allowMethod"], [/@name/, "variable", "@allowMethod"], [/:::?|\||@(?![a-z_$])/, "keyword"], {include: "@root"}], vardef: [[/\b_\*/, "key"], [/\b(_|true|false|null|this|super)\b/, "keyword"], [/@name/, "variable"], [/:::?|\||@(?![a-z_$])/, "keyword"], [/=|:(?!:)/, "operator", "@pop"], [/$/, "white", "@pop"], {include: "@root"}], string: [[/[^\\"\n\r]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}]], stringt: [[/[^\\"\n\r]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/"/, "string"]], fstring: [[/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/%%/, "string"], [/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "keyword.modifier", "number", "metatag"]], [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]], [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]], [/(%)(@fstring_conv)/, ["metatag", "metatag"]], [/./, "string"]], fstringt: [[/@escapes/, "string.escape"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/%%/, "string"], [/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "keyword.modifier", "number", "metatag"]], [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]], [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]], [/(%)(@fstring_conv)/, ["metatag", "metatag"]], [/./, "string"]], sstring: [[/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/./, "string"]], sstringt: [[/@escapes/, "string.escape"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/\$\$/, "string"], [/(\$)([a-z_]\w*)/, ["operator", "identifier"]], [/\$\{/, "operator", "@interp"], [/./, "string"]], interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], {include: "@root"}], rawstring: [[/[^"]/, "string"], [/"/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}]], rawstringt: [[/[^"]/, "string"], [/"(?=""")/, "string"], [/"""/, {token: "string.quote", bracket: "@close", switchTo: "@allowMethod"}], [/"/, "string"]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: ";", blockComment: ["#|", "|#"]}, brackets: [["(", ")"], ["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".scheme", brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], keywords: ["case", "do", "let", "loop", "if", "else", "when", "cons", "car", "cdr", "cond", "lambda", "lambda*", "syntax-rules", "format", "set!", "quote", "eval", "append", "list", "list?", "member?", "load"], constants: ["#t", "#f"], operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"], tokenizer: {root: [[/#[xXoObB][0-9a-fA-F]+/, "number.hex"], [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"], [/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/, ["keyword", "white", "variable"]], {include: "@whitespace"}, {include: "@strings"}, [/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/, {cases: {"@keywords": "keyword", "@constants": "constant", "@operators": "operators", "@default": "identifier"}}]], comment: [[/[^\|#]+/, "comment"], [/#\|/, "comment", "@push"], [/\|#/, "comment", "@pop"], [/[\|#]/, "comment"]], whitespace: [[/[ \t\r\n]+/, "white"], [/#\|/, "comment", "@comment"], [/;.*$/, "comment"]], strings: [[/"$/, "string", "@popall"], [/"(?=.)/, "string", "@multiLineString"]], multiLineString: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string.escape"], [/"/, "string", "@popall"], [/\\$/, "string"]]}}; + var i = {comments: {lineComment: ";", blockComment: ["#|", "|#"]}, brackets: [["(", ")"], ["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}]}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".scheme", brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], keywords: ["case", "do", "let", "loop", "if", "else", "when", "cons", "car", "cdr", "cond", "lambda", "lambda*", "syntax-rules", "format", "set!", "quote", "eval", "append", "list", "list?", "member?", "load"], constants: ["#t", "#f"], operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"], tokenizer: {root: [[/#[xXoObB][0-9a-fA-F]+/, "number.hex"], [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"], [/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/, ["keyword", "white", "variable"]], {include: "@whitespace"}, {include: "@strings"}, [/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/, {cases: {"@keywords": "keyword", "@constants": "constant", "@operators": "operators", "@default": "identifier"}}]], comment: [[/[^\|#]+/, "comment"], [/#\|/, "comment", "@push"], [/\|#/, "comment", "@pop"], [/[\|#]/, "comment"]], whitespace: [[/[ \t\r\n]+/, "white"], [/#\|/, "comment", "@comment"], [/;.*$/, "comment"]], strings: [[/"$/, "string", "@popall"], [/"(?=.)/, "string", "@multiLineString"]], multiLineString: [[/[^\\"]+$/, "string", "@popall"], [/[^\\"]+/, "string"], [/\\./, "string.escape"], [/"/, "string", "@popall"], [/\\$/, "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g, comments: {blockComment: ["/*", "*/"], lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, o = {defaultToken: "", tokenPostfix: ".scss", ws: "[ \n\r\f]*", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@selector"}], selector: [{include: "@comments"}, {include: "@import"}, {include: "@variabledeclaration"}, {include: "@warndebug"}, ["[@](include)", {token: "keyword", next: "@includedeclaration"}], ["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {token: "keyword", next: "@keyframedeclaration"}], ["[@](page|content|font-face|-moz-document)", {token: "keyword"}], ["[@](charset|namespace)", {token: "keyword", next: "@declarationbody"}], ["[@](function)", {token: "keyword", next: "@functiondeclaration"}], ["[@](mixin)", {token: "keyword", next: "@mixindeclaration"}], ["url(\\-prefix)?\\(", {token: "meta", next: "@urldeclaration"}], {include: "@controlstatement"}, {include: "@selectorname"}, ["[&\\*]", "tag"], ["[>\\+,]", "delimiter"], ["\\[", {token: "delimiter.bracket", next: "@selectorattribute"}], ["{", {token: "delimiter.curly", next: "@selectorbody"}]], selectorbody: [["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"], {include: "@selector"}, ["[@](extend)", {token: "keyword", next: "@extendbody"}], ["[@](return)", {token: "keyword", next: "@declarationbody"}], ["}", {token: "delimiter.curly", next: "@pop"}]], selectorname: [["#{", {token: "meta", next: "@variableinterpolation"}], ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]], selectorattribute: [{include: "@term"}, ["]", {token: "delimiter.bracket", next: "@pop"}]], term: [{include: "@comments"}, ["url(\\-prefix)?\\(", {token: "meta", next: "@urldeclaration"}], {include: "@functioninvocation"}, {include: "@numbers"}, {include: "@strings"}, {include: "@variablereference"}, ["(and\\b|or\\b|not\\b)", "operator"], {include: "@name"}, ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "operator"], [",", "delimiter"], ["!default", "literal"], ["\\(", {token: "delimiter.parenthesis", next: "@parenthizedterm"}]], rulevalue: [{include: "@term"}, ["!important", "literal"], [";", "delimiter", "@pop"], ["{", {token: "delimiter.curly", switchTo: "@nestedproperty"}], ["(?=})", {token: "", next: "@pop"}]], nestedproperty: [["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"], {include: "@comments"}, ["}", {token: "delimiter.curly", next: "@pop"}]], warndebug: [["[@](warn|debug)", {token: "keyword", next: "@declarationbody"}]], import: [["[@](import)", {token: "keyword", next: "@declarationbody"}]], variabledeclaration: [["\\$@identifier@ws:", "variable.decl", "@declarationbody"]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "meta", next: "@pop"}]], parenthizedterm: [{include: "@term"}, ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], declarationbody: [{include: "@term"}, [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], extendbody: [{include: "@selectorname"}, ["!optional", "literal"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], variablereference: [["\\$@identifier", "variable.ref"], ["\\.\\.\\.", "operator"], ["#{", {token: "meta", next: "@variableinterpolation"}]], variableinterpolation: [{include: "@variablereference"}, ["}", {token: "meta", next: "@pop"}]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], name: [["@identifier", "attribute.value"]], numbers: [["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "number.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "number", "@pop"]], functiondeclaration: [["@identifier@ws\\(", {token: "meta", next: "@parameterdeclaration"}], ["{", {token: "delimiter.curly", switchTo: "@functionbody"}]], mixindeclaration: [["@identifier@ws\\(", {token: "meta", next: "@parameterdeclaration"}], ["@identifier", "meta"], ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], parameterdeclaration: [["\\$@identifier@ws:", "variable.decl"], ["\\.\\.\\.", "operator"], [",", "delimiter"], {include: "@term"}, ["\\)", {token: "meta", next: "@pop"}]], includedeclaration: [{include: "@functioninvocation"}, ["@identifier", "meta"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}], ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], keyframedeclaration: [["@identifier", "meta"], ["{", {token: "delimiter.curly", switchTo: "@keyframebody"}]], keyframebody: [{include: "@term"}, ["{", {token: "delimiter.curly", next: "@selectorbody"}], ["}", {token: "delimiter.curly", next: "@pop"}]], controlstatement: [["[@](if|else|for|while|each|media)", {token: "keyword.flow", next: "@controlstatementdeclaration"}]], controlstatementdeclaration: [["(in|from|through|if|to)\\b", {token: "keyword.flow"}], {include: "@term"}, ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], functionbody: [["[@](return)", {token: "keyword"}], {include: "@variabledeclaration"}, {include: "@term"}, {include: "@controlstatement"}, [";", "delimiter"], ["}", {token: "delimiter.curly", next: "@pop"}]], functioninvocation: [["@identifier\\(", {token: "meta", next: "@functionarguments"}]], functionarguments: [["\\$@identifier@ws:", "attribute.name"], ["[,]", "delimiter"], {include: "@term"}, ["\\)", {token: "meta", next: "@pop"}]], strings: [['~?"', {token: "string.delimiter", next: "@stringenddoublequote"}], ["~?'", {token: "string.delimiter", next: "@stringendquote"}]], stringenddoublequote: [["\\\\.", "string"], ['"', {token: "string.delimiter", next: "@pop"}], [".", "string"]], stringendquote: [["\\\\.", "string"], ["'", {token: "string.delimiter", next: "@pop"}], [".", "string"]]}}; + var i = {wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g, comments: {blockComment: ["/*", "*/"], lineComment: "//"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "'", close: "'", notIn: ["string", "comment"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {markers: {start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"), end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}}, r = {defaultToken: "", tokenPostfix: ".scss", ws: "[ \n\r\f]*", identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*", brackets: [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.bracket"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}], tokenizer: {root: [{include: "@selector"}], selector: [{include: "@comments"}, {include: "@import"}, {include: "@variabledeclaration"}, {include: "@warndebug"}, ["[@](include)", {token: "keyword", next: "@includedeclaration"}], ["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {token: "keyword", next: "@keyframedeclaration"}], ["[@](page|content|font-face|-moz-document)", {token: "keyword"}], ["[@](charset|namespace)", {token: "keyword", next: "@declarationbody"}], ["[@](function)", {token: "keyword", next: "@functiondeclaration"}], ["[@](mixin)", {token: "keyword", next: "@mixindeclaration"}], ["url(\\-prefix)?\\(", {token: "meta", next: "@urldeclaration"}], {include: "@controlstatement"}, {include: "@selectorname"}, ["[&\\*]", "tag"], ["[>\\+,]", "delimiter"], ["\\[", {token: "delimiter.bracket", next: "@selectorattribute"}], ["{", {token: "delimiter.curly", next: "@selectorbody"}]], selectorbody: [["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"], {include: "@selector"}, ["[@](extend)", {token: "keyword", next: "@extendbody"}], ["[@](return)", {token: "keyword", next: "@declarationbody"}], ["}", {token: "delimiter.curly", next: "@pop"}]], selectorname: [["#{", {token: "meta", next: "@variableinterpolation"}], ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]], selectorattribute: [{include: "@term"}, ["]", {token: "delimiter.bracket", next: "@pop"}]], term: [{include: "@comments"}, ["url(\\-prefix)?\\(", {token: "meta", next: "@urldeclaration"}], {include: "@functioninvocation"}, {include: "@numbers"}, {include: "@strings"}, {include: "@variablereference"}, ["(and\\b|or\\b|not\\b)", "operator"], {include: "@name"}, ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "operator"], [",", "delimiter"], ["!default", "literal"], ["\\(", {token: "delimiter.parenthesis", next: "@parenthizedterm"}]], rulevalue: [{include: "@term"}, ["!important", "literal"], [";", "delimiter", "@pop"], ["{", {token: "delimiter.curly", switchTo: "@nestedproperty"}], ["(?=})", {token: "", next: "@pop"}]], nestedproperty: [["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"], {include: "@comments"}, ["}", {token: "delimiter.curly", next: "@pop"}]], warndebug: [["[@](warn|debug)", {token: "keyword", next: "@declarationbody"}]], import: [["[@](import)", {token: "keyword", next: "@declarationbody"}]], variabledeclaration: [["\\$@identifier@ws:", "variable.decl", "@declarationbody"]], urldeclaration: [{include: "@strings"}, ["[^)\r\n]+", "string"], ["\\)", {token: "meta", next: "@pop"}]], parenthizedterm: [{include: "@term"}, ["\\)", {token: "delimiter.parenthesis", next: "@pop"}]], declarationbody: [{include: "@term"}, [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], extendbody: [{include: "@selectorname"}, ["!optional", "literal"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}]], variablereference: [["\\$@identifier", "variable.ref"], ["\\.\\.\\.", "operator"], ["#{", {token: "meta", next: "@variableinterpolation"}]], variableinterpolation: [{include: "@variablereference"}, ["}", {token: "meta", next: "@pop"}]], comments: [["\\/\\*", "comment", "@comment"], ["\\/\\/+.*", "comment"]], comment: [["\\*\\/", "comment", "@pop"], [".", "comment"]], name: [["@identifier", "attribute.value"]], numbers: [["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {token: "number", next: "@units"}], ["#[0-9a-fA-F_]+(?!\\w)", "number.hex"]], units: [["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?", "number", "@pop"]], functiondeclaration: [["@identifier@ws\\(", {token: "meta", next: "@parameterdeclaration"}], ["{", {token: "delimiter.curly", switchTo: "@functionbody"}]], mixindeclaration: [["@identifier@ws\\(", {token: "meta", next: "@parameterdeclaration"}], ["@identifier", "meta"], ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], parameterdeclaration: [["\\$@identifier@ws:", "variable.decl"], ["\\.\\.\\.", "operator"], [",", "delimiter"], {include: "@term"}, ["\\)", {token: "meta", next: "@pop"}]], includedeclaration: [{include: "@functioninvocation"}, ["@identifier", "meta"], [";", "delimiter", "@pop"], ["(?=})", {token: "", next: "@pop"}], ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], keyframedeclaration: [["@identifier", "meta"], ["{", {token: "delimiter.curly", switchTo: "@keyframebody"}]], keyframebody: [{include: "@term"}, ["{", {token: "delimiter.curly", next: "@selectorbody"}], ["}", {token: "delimiter.curly", next: "@pop"}]], controlstatement: [["[@](if|else|for|while|each|media)", {token: "keyword.flow", next: "@controlstatementdeclaration"}]], controlstatementdeclaration: [["(in|from|through|if|to)\\b", {token: "keyword.flow"}], {include: "@term"}, ["{", {token: "delimiter.curly", switchTo: "@selectorbody"}]], functionbody: [["[@](return)", {token: "keyword"}], {include: "@variabledeclaration"}, {include: "@term"}, {include: "@controlstatement"}, [";", "delimiter"], ["}", {token: "delimiter.curly", next: "@pop"}]], functioninvocation: [["@identifier\\(", {token: "meta", next: "@functionarguments"}]], functionarguments: [["\\$@identifier@ws:", "attribute.name"], ["[,]", "delimiter"], {include: "@term"}, ["\\)", {token: "meta", next: "@pop"}]], strings: [['~?"', {token: "string.delimiter", next: "@stringenddoublequote"}], ["~?'", {token: "string.delimiter", next: "@stringendquote"}]], stringenddoublequote: [["\\\\.", "string"], ['"', {token: "string.delimiter", next: "@pop"}], [".", "string"]], stringendquote: [["\\\\.", "string"], ["'", {token: "string.delimiter", next: "@pop"}], [".", "string"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, o = {defaultToken: "", ignoreCase: true, tokenPostfix: ".shell", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi", "fin", "fil", "done", "exit", "set", "unset", "export", "function"], builtins: ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear", "cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall", "ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "node", "npm", "ping", "ps", "restart", "rm", "rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop", "su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write", "yes", "zsh"], symbols: /[=><!~?&|+\-*\/\^;\.,]+/, tokenizer: {root: [{include: "@whitespace"}, [/[a-zA-Z]\w*/, {cases: {"@keywords": "keyword", "@builtins": "type.identifier", "@default": ""}}], {include: "@strings"}, {include: "@parameters"}, {include: "@heredoc"}, [/[{}\[\]()]/, "@brackets"], [/-+\w+/, "attribute.name"], [/@symbols/, "delimiter"], {include: "@numbers"}, [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"], [/(^#!.*$)/, "metatag"], [/(^#.*$)/, "comment"]], numbers: [[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"]], strings: [[/'/, "string", "@stringBody"], [/"/, "string", "@dblStringBody"]], stringBody: [[/'/, "string", "@popall"], [/./, "string"]], dblStringBody: [[/"/, "string", "@popall"], [/./, "string"]], heredoc: [[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/, ["constants", "white", "string.heredoc.delimiter", "string.heredoc", "string.heredoc.delimiter"]]], parameters: [[/\$\d+/, "variable.predefined"], [/\$\w+/, "variable"], [/\$[*@#?\-$!0_]/, "variable"], [/\$'/, "variable", "@parameterBodyQuote"], [/\$"/, "variable", "@parameterBodyDoubleQuote"], [/\$\(/, "variable", "@parameterBodyParen"], [/\$\{/, "variable", "@parameterBodyCurlyBrace"]], parameterBodyQuote: [[/[^#:%*@\-!_']+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[']/, "variable", "@pop"]], parameterBodyDoubleQuote: [[/[^#:%*@\-!_"]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/["]/, "variable", "@pop"]], parameterBodyParen: [[/[^#:%*@\-!_)]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[)]/, "variable", "@pop"]], parameterBodyCurlyBrace: [[/[^#:%*@\-!_}]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[}]/, "variable", "@pop"]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, r = {defaultToken: "", ignoreCase: true, tokenPostfix: ".shell", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi", "fin", "fil", "done", "exit", "set", "unset", "export", "function"], builtins: ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear", "cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall", "ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "node", "npm", "ping", "ps", "restart", "rm", "rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop", "su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write", "yes", "zsh"], symbols: /[=><!~?&|+\-*\/\^;\.,]+/, tokenizer: {root: [{include: "@whitespace"}, [/[a-zA-Z]\w*/, {cases: {"@keywords": "keyword", "@builtins": "type.identifier", "@default": ""}}], {include: "@strings"}, {include: "@parameters"}, {include: "@heredoc"}, [/[{}\[\]()]/, "@brackets"], [/-+\w+/, "attribute.name"], [/@symbols/, "delimiter"], {include: "@numbers"}, [/[,;]/, "delimiter"]], whitespace: [[/\s+/, "white"], [/(^#!.*$)/, "metatag"], [/(^#.*$)/, "comment"]], numbers: [[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"], [/\d+/, "number"]], strings: [[/'/, "string", "@stringBody"], [/"/, "string", "@dblStringBody"]], stringBody: [[/'/, "string", "@popall"], [/./, "string"]], dblStringBody: [[/"/, "string", "@popall"], [/./, "string"]], heredoc: [[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/, ["constants", "white", "string.heredoc.delimiter", "string.heredoc", "string.heredoc.delimiter"]]], parameters: [[/\$\d+/, "variable.predefined"], [/\$\w+/, "variable"], [/\$[*@#?\-$!0_]/, "variable"], [/\$'/, "variable", "@parameterBodyQuote"], [/\$"/, "variable", "@parameterBodyDoubleQuote"], [/\$\(/, "variable", "@parameterBodyParen"], [/\$\{/, "variable", "@parameterBodyCurlyBrace"]], parameterBodyQuote: [[/[^#:%*@\-!_']+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[']/, "variable", "@pop"]], parameterBodyDoubleQuote: [[/[^#:%*@\-!_"]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/["]/, "variable", "@pop"]], parameterBodyParen: [[/[^#:%*@\-!_)]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[)]/, "variable", "@pop"]], parameterBodyCurlyBrace: [[/[^#:%*@\-!_}]+/, "variable"], [/[#:%*@\-!_]/, "delimiter"], [/[}]/, "variable", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, o = {defaultToken: "", tokenPostfix: ".sol", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["pragma", "solidity", "contract", "library", "using", "struct", "function", "modifier", "constructor", "address", "string", "bool", "Int", "Uint", "Byte", "Fixed", "Ufixed", "int", "int8", "int16", "int24", "int32", "int40", "int48", "int56", "int64", "int72", "int80", "int88", "int96", "int104", "int112", "int120", "int128", "int136", "int144", "int152", "int160", "int168", "int176", "int184", "int192", "int200", "int208", "int216", "int224", "int232", "int240", "int248", "int256", "uint", "uint8", "uint16", "uint24", "uint32", "uint40", "uint48", "uint56", "uint64", "uint72", "uint80", "uint88", "uint96", "uint104", "uint112", "uint120", "uint128", "uint136", "uint144", "uint152", "uint160", "uint168", "uint176", "uint184", "uint192", "uint200", "uint208", "uint216", "uint224", "uint232", "uint240", "uint248", "uint256", "byte", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "fixed", "fixed0x8", "fixed0x16", "fixed0x24", "fixed0x32", "fixed0x40", "fixed0x48", "fixed0x56", "fixed0x64", "fixed0x72", "fixed0x80", "fixed0x88", "fixed0x96", "fixed0x104", "fixed0x112", "fixed0x120", "fixed0x128", "fixed0x136", "fixed0x144", "fixed0x152", "fixed0x160", "fixed0x168", "fixed0x176", "fixed0x184", "fixed0x192", "fixed0x200", "fixed0x208", "fixed0x216", "fixed0x224", "fixed0x232", "fixed0x240", "fixed0x248", "fixed0x256", "fixed8x8", "fixed8x16", "fixed8x24", "fixed8x32", "fixed8x40", "fixed8x48", "fixed8x56", "fixed8x64", "fixed8x72", "fixed8x80", "fixed8x88", "fixed8x96", "fixed8x104", "fixed8x112", "fixed8x120", "fixed8x128", "fixed8x136", "fixed8x144", "fixed8x152", "fixed8x160", "fixed8x168", "fixed8x176", "fixed8x184", "fixed8x192", "fixed8x200", "fixed8x208", "fixed8x216", "fixed8x224", "fixed8x232", "fixed8x240", "fixed8x248", "fixed16x8", "fixed16x16", "fixed16x24", "fixed16x32", "fixed16x40", "fixed16x48", "fixed16x56", "fixed16x64", "fixed16x72", "fixed16x80", "fixed16x88", "fixed16x96", "fixed16x104", "fixed16x112", "fixed16x120", "fixed16x128", "fixed16x136", "fixed16x144", "fixed16x152", "fixed16x160", "fixed16x168", "fixed16x176", "fixed16x184", "fixed16x192", "fixed16x200", "fixed16x208", "fixed16x216", "fixed16x224", "fixed16x232", "fixed16x240", "fixed24x8", "fixed24x16", "fixed24x24", "fixed24x32", "fixed24x40", "fixed24x48", "fixed24x56", "fixed24x64", "fixed24x72", "fixed24x80", "fixed24x88", "fixed24x96", "fixed24x104", "fixed24x112", "fixed24x120", "fixed24x128", "fixed24x136", "fixed24x144", "fixed24x152", "fixed24x160", "fixed24x168", "fixed24x176", "fixed24x184", "fixed24x192", "fixed24x200", "fixed24x208", "fixed24x216", "fixed24x224", "fixed24x232", "fixed32x8", "fixed32x16", "fixed32x24", "fixed32x32", "fixed32x40", "fixed32x48", "fixed32x56", "fixed32x64", "fixed32x72", "fixed32x80", "fixed32x88", "fixed32x96", "fixed32x104", "fixed32x112", "fixed32x120", "fixed32x128", "fixed32x136", "fixed32x144", "fixed32x152", "fixed32x160", "fixed32x168", "fixed32x176", "fixed32x184", "fixed32x192", "fixed32x200", "fixed32x208", "fixed32x216", "fixed32x224", "fixed40x8", "fixed40x16", "fixed40x24", "fixed40x32", "fixed40x40", "fixed40x48", "fixed40x56", "fixed40x64", "fixed40x72", "fixed40x80", "fixed40x88", "fixed40x96", "fixed40x104", "fixed40x112", "fixed40x120", "fixed40x128", "fixed40x136", "fixed40x144", "fixed40x152", "fixed40x160", "fixed40x168", "fixed40x176", "fixed40x184", "fixed40x192", "fixed40x200", "fixed40x208", "fixed40x216", "fixed48x8", "fixed48x16", "fixed48x24", "fixed48x32", "fixed48x40", "fixed48x48", "fixed48x56", "fixed48x64", "fixed48x72", "fixed48x80", "fixed48x88", "fixed48x96", "fixed48x104", "fixed48x112", "fixed48x120", "fixed48x128", "fixed48x136", "fixed48x144", "fixed48x152", "fixed48x160", "fixed48x168", "fixed48x176", "fixed48x184", "fixed48x192", "fixed48x200", "fixed48x208", "fixed56x8", "fixed56x16", "fixed56x24", "fixed56x32", "fixed56x40", "fixed56x48", "fixed56x56", "fixed56x64", "fixed56x72", "fixed56x80", "fixed56x88", "fixed56x96", "fixed56x104", "fixed56x112", "fixed56x120", "fixed56x128", "fixed56x136", "fixed56x144", "fixed56x152", "fixed56x160", "fixed56x168", "fixed56x176", "fixed56x184", "fixed56x192", "fixed56x200", "fixed64x8", "fixed64x16", "fixed64x24", "fixed64x32", "fixed64x40", "fixed64x48", "fixed64x56", "fixed64x64", "fixed64x72", "fixed64x80", "fixed64x88", "fixed64x96", "fixed64x104", "fixed64x112", "fixed64x120", "fixed64x128", "fixed64x136", "fixed64x144", "fixed64x152", "fixed64x160", "fixed64x168", "fixed64x176", "fixed64x184", "fixed64x192", "fixed72x8", "fixed72x16", "fixed72x24", "fixed72x32", "fixed72x40", "fixed72x48", "fixed72x56", "fixed72x64", "fixed72x72", "fixed72x80", "fixed72x88", "fixed72x96", "fixed72x104", "fixed72x112", "fixed72x120", "fixed72x128", "fixed72x136", "fixed72x144", "fixed72x152", "fixed72x160", "fixed72x168", "fixed72x176", "fixed72x184", "fixed80x8", "fixed80x16", "fixed80x24", "fixed80x32", "fixed80x40", "fixed80x48", "fixed80x56", "fixed80x64", "fixed80x72", "fixed80x80", "fixed80x88", "fixed80x96", "fixed80x104", "fixed80x112", "fixed80x120", "fixed80x128", "fixed80x136", "fixed80x144", "fixed80x152", "fixed80x160", "fixed80x168", "fixed80x176", "fixed88x8", "fixed88x16", "fixed88x24", "fixed88x32", "fixed88x40", "fixed88x48", "fixed88x56", "fixed88x64", "fixed88x72", "fixed88x80", "fixed88x88", "fixed88x96", "fixed88x104", "fixed88x112", "fixed88x120", "fixed88x128", "fixed88x136", "fixed88x144", "fixed88x152", "fixed88x160", "fixed88x168", "fixed96x8", "fixed96x16", "fixed96x24", "fixed96x32", "fixed96x40", "fixed96x48", "fixed96x56", "fixed96x64", "fixed96x72", "fixed96x80", "fixed96x88", "fixed96x96", "fixed96x104", "fixed96x112", "fixed96x120", "fixed96x128", "fixed96x136", "fixed96x144", "fixed96x152", "fixed96x160", "fixed104x8", "fixed104x16", "fixed104x24", "fixed104x32", "fixed104x40", "fixed104x48", "fixed104x56", "fixed104x64", "fixed104x72", "fixed104x80", "fixed104x88", "fixed104x96", "fixed104x104", "fixed104x112", "fixed104x120", "fixed104x128", "fixed104x136", "fixed104x144", "fixed104x152", "fixed112x8", "fixed112x16", "fixed112x24", "fixed112x32", "fixed112x40", "fixed112x48", "fixed112x56", "fixed112x64", "fixed112x72", "fixed112x80", "fixed112x88", "fixed112x96", "fixed112x104", "fixed112x112", "fixed112x120", "fixed112x128", "fixed112x136", "fixed112x144", "fixed120x8", "fixed120x16", "fixed120x24", "fixed120x32", "fixed120x40", "fixed120x48", "fixed120x56", "fixed120x64", "fixed120x72", "fixed120x80", "fixed120x88", "fixed120x96", "fixed120x104", "fixed120x112", "fixed120x120", "fixed120x128", "fixed120x136", "fixed128x8", "fixed128x16", "fixed128x24", "fixed128x32", "fixed128x40", "fixed128x48", "fixed128x56", "fixed128x64", "fixed128x72", "fixed128x80", "fixed128x88", "fixed128x96", "fixed128x104", "fixed128x112", "fixed128x120", "fixed128x128", "fixed136x8", "fixed136x16", "fixed136x24", "fixed136x32", "fixed136x40", "fixed136x48", "fixed136x56", "fixed136x64", "fixed136x72", "fixed136x80", "fixed136x88", "fixed136x96", "fixed136x104", "fixed136x112", "fixed136x120", "fixed144x8", "fixed144x16", "fixed144x24", "fixed144x32", "fixed144x40", "fixed144x48", "fixed144x56", "fixed144x64", "fixed144x72", "fixed144x80", "fixed144x88", "fixed144x96", "fixed144x104", "fixed144x112", "fixed152x8", "fixed152x16", "fixed152x24", "fixed152x32", "fixed152x40", "fixed152x48", "fixed152x56", "fixed152x64", "fixed152x72", "fixed152x80", "fixed152x88", "fixed152x96", "fixed152x104", "fixed160x8", "fixed160x16", "fixed160x24", "fixed160x32", "fixed160x40", "fixed160x48", "fixed160x56", "fixed160x64", "fixed160x72", "fixed160x80", "fixed160x88", "fixed160x96", "fixed168x8", "fixed168x16", "fixed168x24", "fixed168x32", "fixed168x40", "fixed168x48", "fixed168x56", "fixed168x64", "fixed168x72", "fixed168x80", "fixed168x88", "fixed176x8", "fixed176x16", "fixed176x24", "fixed176x32", "fixed176x40", "fixed176x48", "fixed176x56", "fixed176x64", "fixed176x72", "fixed176x80", "fixed184x8", "fixed184x16", "fixed184x24", "fixed184x32", "fixed184x40", "fixed184x48", "fixed184x56", "fixed184x64", "fixed184x72", "fixed192x8", "fixed192x16", "fixed192x24", "fixed192x32", "fixed192x40", "fixed192x48", "fixed192x56", "fixed192x64", "fixed200x8", "fixed200x16", "fixed200x24", "fixed200x32", "fixed200x40", "fixed200x48", "fixed200x56", "fixed208x8", "fixed208x16", "fixed208x24", "fixed208x32", "fixed208x40", "fixed208x48", "fixed216x8", "fixed216x16", "fixed216x24", "fixed216x32", "fixed216x40", "fixed224x8", "fixed224x16", "fixed224x24", "fixed224x32", "fixed232x8", "fixed232x16", "fixed232x24", "fixed240x8", "fixed240x16", "fixed248x8", "ufixed", "ufixed0x8", "ufixed0x16", "ufixed0x24", "ufixed0x32", "ufixed0x40", "ufixed0x48", "ufixed0x56", "ufixed0x64", "ufixed0x72", "ufixed0x80", "ufixed0x88", "ufixed0x96", "ufixed0x104", "ufixed0x112", "ufixed0x120", "ufixed0x128", "ufixed0x136", "ufixed0x144", "ufixed0x152", "ufixed0x160", "ufixed0x168", "ufixed0x176", "ufixed0x184", "ufixed0x192", "ufixed0x200", "ufixed0x208", "ufixed0x216", "ufixed0x224", "ufixed0x232", "ufixed0x240", "ufixed0x248", "ufixed0x256", "ufixed8x8", "ufixed8x16", "ufixed8x24", "ufixed8x32", "ufixed8x40", "ufixed8x48", "ufixed8x56", "ufixed8x64", "ufixed8x72", "ufixed8x80", "ufixed8x88", "ufixed8x96", "ufixed8x104", "ufixed8x112", "ufixed8x120", "ufixed8x128", "ufixed8x136", "ufixed8x144", "ufixed8x152", "ufixed8x160", "ufixed8x168", "ufixed8x176", "ufixed8x184", "ufixed8x192", "ufixed8x200", "ufixed8x208", "ufixed8x216", "ufixed8x224", "ufixed8x232", "ufixed8x240", "ufixed8x248", "ufixed16x8", "ufixed16x16", "ufixed16x24", "ufixed16x32", "ufixed16x40", "ufixed16x48", "ufixed16x56", "ufixed16x64", "ufixed16x72", "ufixed16x80", "ufixed16x88", "ufixed16x96", "ufixed16x104", "ufixed16x112", "ufixed16x120", "ufixed16x128", "ufixed16x136", "ufixed16x144", "ufixed16x152", "ufixed16x160", "ufixed16x168", "ufixed16x176", "ufixed16x184", "ufixed16x192", "ufixed16x200", "ufixed16x208", "ufixed16x216", "ufixed16x224", "ufixed16x232", "ufixed16x240", "ufixed24x8", "ufixed24x16", "ufixed24x24", "ufixed24x32", "ufixed24x40", "ufixed24x48", "ufixed24x56", "ufixed24x64", "ufixed24x72", "ufixed24x80", "ufixed24x88", "ufixed24x96", "ufixed24x104", "ufixed24x112", "ufixed24x120", "ufixed24x128", "ufixed24x136", "ufixed24x144", "ufixed24x152", "ufixed24x160", "ufixed24x168", "ufixed24x176", "ufixed24x184", "ufixed24x192", "ufixed24x200", "ufixed24x208", "ufixed24x216", "ufixed24x224", "ufixed24x232", "ufixed32x8", "ufixed32x16", "ufixed32x24", "ufixed32x32", "ufixed32x40", "ufixed32x48", "ufixed32x56", "ufixed32x64", "ufixed32x72", "ufixed32x80", "ufixed32x88", "ufixed32x96", "ufixed32x104", "ufixed32x112", "ufixed32x120", "ufixed32x128", "ufixed32x136", "ufixed32x144", "ufixed32x152", "ufixed32x160", "ufixed32x168", "ufixed32x176", "ufixed32x184", "ufixed32x192", "ufixed32x200", "ufixed32x208", "ufixed32x216", "ufixed32x224", "ufixed40x8", "ufixed40x16", "ufixed40x24", "ufixed40x32", "ufixed40x40", "ufixed40x48", "ufixed40x56", "ufixed40x64", "ufixed40x72", "ufixed40x80", "ufixed40x88", "ufixed40x96", "ufixed40x104", "ufixed40x112", "ufixed40x120", "ufixed40x128", "ufixed40x136", "ufixed40x144", "ufixed40x152", "ufixed40x160", "ufixed40x168", "ufixed40x176", "ufixed40x184", "ufixed40x192", "ufixed40x200", "ufixed40x208", "ufixed40x216", "ufixed48x8", "ufixed48x16", "ufixed48x24", "ufixed48x32", "ufixed48x40", "ufixed48x48", "ufixed48x56", "ufixed48x64", "ufixed48x72", "ufixed48x80", "ufixed48x88", "ufixed48x96", "ufixed48x104", "ufixed48x112", "ufixed48x120", "ufixed48x128", "ufixed48x136", "ufixed48x144", "ufixed48x152", "ufixed48x160", "ufixed48x168", "ufixed48x176", "ufixed48x184", "ufixed48x192", "ufixed48x200", "ufixed48x208", "ufixed56x8", "ufixed56x16", "ufixed56x24", "ufixed56x32", "ufixed56x40", "ufixed56x48", "ufixed56x56", "ufixed56x64", "ufixed56x72", "ufixed56x80", "ufixed56x88", "ufixed56x96", "ufixed56x104", "ufixed56x112", "ufixed56x120", "ufixed56x128", "ufixed56x136", "ufixed56x144", "ufixed56x152", "ufixed56x160", "ufixed56x168", "ufixed56x176", "ufixed56x184", "ufixed56x192", "ufixed56x200", "ufixed64x8", "ufixed64x16", "ufixed64x24", "ufixed64x32", "ufixed64x40", "ufixed64x48", "ufixed64x56", "ufixed64x64", "ufixed64x72", "ufixed64x80", "ufixed64x88", "ufixed64x96", "ufixed64x104", "ufixed64x112", "ufixed64x120", "ufixed64x128", "ufixed64x136", "ufixed64x144", "ufixed64x152", "ufixed64x160", "ufixed64x168", "ufixed64x176", "ufixed64x184", "ufixed64x192", "ufixed72x8", "ufixed72x16", "ufixed72x24", "ufixed72x32", "ufixed72x40", "ufixed72x48", "ufixed72x56", "ufixed72x64", "ufixed72x72", "ufixed72x80", "ufixed72x88", "ufixed72x96", "ufixed72x104", "ufixed72x112", "ufixed72x120", "ufixed72x128", "ufixed72x136", "ufixed72x144", "ufixed72x152", "ufixed72x160", "ufixed72x168", "ufixed72x176", "ufixed72x184", "ufixed80x8", "ufixed80x16", "ufixed80x24", "ufixed80x32", "ufixed80x40", "ufixed80x48", "ufixed80x56", "ufixed80x64", "ufixed80x72", "ufixed80x80", "ufixed80x88", "ufixed80x96", "ufixed80x104", "ufixed80x112", "ufixed80x120", "ufixed80x128", "ufixed80x136", "ufixed80x144", "ufixed80x152", "ufixed80x160", "ufixed80x168", "ufixed80x176", "ufixed88x8", "ufixed88x16", "ufixed88x24", "ufixed88x32", "ufixed88x40", "ufixed88x48", "ufixed88x56", "ufixed88x64", "ufixed88x72", "ufixed88x80", "ufixed88x88", "ufixed88x96", "ufixed88x104", "ufixed88x112", "ufixed88x120", "ufixed88x128", "ufixed88x136", "ufixed88x144", "ufixed88x152", "ufixed88x160", "ufixed88x168", "ufixed96x8", "ufixed96x16", "ufixed96x24", "ufixed96x32", "ufixed96x40", "ufixed96x48", "ufixed96x56", "ufixed96x64", "ufixed96x72", "ufixed96x80", "ufixed96x88", "ufixed96x96", "ufixed96x104", "ufixed96x112", "ufixed96x120", "ufixed96x128", "ufixed96x136", "ufixed96x144", "ufixed96x152", "ufixed96x160", "ufixed104x8", "ufixed104x16", "ufixed104x24", "ufixed104x32", "ufixed104x40", "ufixed104x48", "ufixed104x56", "ufixed104x64", "ufixed104x72", "ufixed104x80", "ufixed104x88", "ufixed104x96", "ufixed104x104", "ufixed104x112", "ufixed104x120", "ufixed104x128", "ufixed104x136", "ufixed104x144", "ufixed104x152", "ufixed112x8", "ufixed112x16", "ufixed112x24", "ufixed112x32", "ufixed112x40", "ufixed112x48", "ufixed112x56", "ufixed112x64", "ufixed112x72", "ufixed112x80", "ufixed112x88", "ufixed112x96", "ufixed112x104", "ufixed112x112", "ufixed112x120", "ufixed112x128", "ufixed112x136", "ufixed112x144", "ufixed120x8", "ufixed120x16", "ufixed120x24", "ufixed120x32", "ufixed120x40", "ufixed120x48", "ufixed120x56", "ufixed120x64", "ufixed120x72", "ufixed120x80", "ufixed120x88", "ufixed120x96", "ufixed120x104", "ufixed120x112", "ufixed120x120", "ufixed120x128", "ufixed120x136", "ufixed128x8", "ufixed128x16", "ufixed128x24", "ufixed128x32", "ufixed128x40", "ufixed128x48", "ufixed128x56", "ufixed128x64", "ufixed128x72", "ufixed128x80", "ufixed128x88", "ufixed128x96", "ufixed128x104", "ufixed128x112", "ufixed128x120", "ufixed128x128", "ufixed136x8", "ufixed136x16", "ufixed136x24", "ufixed136x32", "ufixed136x40", "ufixed136x48", "ufixed136x56", "ufixed136x64", "ufixed136x72", "ufixed136x80", "ufixed136x88", "ufixed136x96", "ufixed136x104", "ufixed136x112", "ufixed136x120", "ufixed144x8", "ufixed144x16", "ufixed144x24", "ufixed144x32", "ufixed144x40", "ufixed144x48", "ufixed144x56", "ufixed144x64", "ufixed144x72", "ufixed144x80", "ufixed144x88", "ufixed144x96", "ufixed144x104", "ufixed144x112", "ufixed152x8", "ufixed152x16", "ufixed152x24", "ufixed152x32", "ufixed152x40", "ufixed152x48", "ufixed152x56", "ufixed152x64", "ufixed152x72", "ufixed152x80", "ufixed152x88", "ufixed152x96", "ufixed152x104", "ufixed160x8", "ufixed160x16", "ufixed160x24", "ufixed160x32", "ufixed160x40", "ufixed160x48", "ufixed160x56", "ufixed160x64", "ufixed160x72", "ufixed160x80", "ufixed160x88", "ufixed160x96", "ufixed168x8", "ufixed168x16", "ufixed168x24", "ufixed168x32", "ufixed168x40", "ufixed168x48", "ufixed168x56", "ufixed168x64", "ufixed168x72", "ufixed168x80", "ufixed168x88", "ufixed176x8", "ufixed176x16", "ufixed176x24", "ufixed176x32", "ufixed176x40", "ufixed176x48", "ufixed176x56", "ufixed176x64", "ufixed176x72", "ufixed176x80", "ufixed184x8", "ufixed184x16", "ufixed184x24", "ufixed184x32", "ufixed184x40", "ufixed184x48", "ufixed184x56", "ufixed184x64", "ufixed184x72", "ufixed192x8", "ufixed192x16", "ufixed192x24", "ufixed192x32", "ufixed192x40", "ufixed192x48", "ufixed192x56", "ufixed192x64", "ufixed200x8", "ufixed200x16", "ufixed200x24", "ufixed200x32", "ufixed200x40", "ufixed200x48", "ufixed200x56", "ufixed208x8", "ufixed208x16", "ufixed208x24", "ufixed208x32", "ufixed208x40", "ufixed208x48", "ufixed216x8", "ufixed216x16", "ufixed216x24", "ufixed216x32", "ufixed216x40", "ufixed224x8", "ufixed224x16", "ufixed224x24", "ufixed224x32", "ufixed232x8", "ufixed232x16", "ufixed232x24", "ufixed240x8", "ufixed240x16", "ufixed248x8", "event", "enum", "let", "mapping", "private", "public", "external", "inherited", "payable", "true", "false", "var", "import", "constant", "if", "else", "for", "else", "for", "while", "do", "break", "continue", "throw", "returns", "return", "suicide", "new", "is", "this", "super"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/int\d*/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, r = {defaultToken: "", tokenPostfix: ".sol", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["pragma", "solidity", "contract", "library", "using", "struct", "function", "modifier", "constructor", "address", "string", "bool", "Int", "Uint", "Byte", "Fixed", "Ufixed", "int", "int8", "int16", "int24", "int32", "int40", "int48", "int56", "int64", "int72", "int80", "int88", "int96", "int104", "int112", "int120", "int128", "int136", "int144", "int152", "int160", "int168", "int176", "int184", "int192", "int200", "int208", "int216", "int224", "int232", "int240", "int248", "int256", "uint", "uint8", "uint16", "uint24", "uint32", "uint40", "uint48", "uint56", "uint64", "uint72", "uint80", "uint88", "uint96", "uint104", "uint112", "uint120", "uint128", "uint136", "uint144", "uint152", "uint160", "uint168", "uint176", "uint184", "uint192", "uint200", "uint208", "uint216", "uint224", "uint232", "uint240", "uint248", "uint256", "byte", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "fixed", "fixed0x8", "fixed0x16", "fixed0x24", "fixed0x32", "fixed0x40", "fixed0x48", "fixed0x56", "fixed0x64", "fixed0x72", "fixed0x80", "fixed0x88", "fixed0x96", "fixed0x104", "fixed0x112", "fixed0x120", "fixed0x128", "fixed0x136", "fixed0x144", "fixed0x152", "fixed0x160", "fixed0x168", "fixed0x176", "fixed0x184", "fixed0x192", "fixed0x200", "fixed0x208", "fixed0x216", "fixed0x224", "fixed0x232", "fixed0x240", "fixed0x248", "fixed0x256", "fixed8x8", "fixed8x16", "fixed8x24", "fixed8x32", "fixed8x40", "fixed8x48", "fixed8x56", "fixed8x64", "fixed8x72", "fixed8x80", "fixed8x88", "fixed8x96", "fixed8x104", "fixed8x112", "fixed8x120", "fixed8x128", "fixed8x136", "fixed8x144", "fixed8x152", "fixed8x160", "fixed8x168", "fixed8x176", "fixed8x184", "fixed8x192", "fixed8x200", "fixed8x208", "fixed8x216", "fixed8x224", "fixed8x232", "fixed8x240", "fixed8x248", "fixed16x8", "fixed16x16", "fixed16x24", "fixed16x32", "fixed16x40", "fixed16x48", "fixed16x56", "fixed16x64", "fixed16x72", "fixed16x80", "fixed16x88", "fixed16x96", "fixed16x104", "fixed16x112", "fixed16x120", "fixed16x128", "fixed16x136", "fixed16x144", "fixed16x152", "fixed16x160", "fixed16x168", "fixed16x176", "fixed16x184", "fixed16x192", "fixed16x200", "fixed16x208", "fixed16x216", "fixed16x224", "fixed16x232", "fixed16x240", "fixed24x8", "fixed24x16", "fixed24x24", "fixed24x32", "fixed24x40", "fixed24x48", "fixed24x56", "fixed24x64", "fixed24x72", "fixed24x80", "fixed24x88", "fixed24x96", "fixed24x104", "fixed24x112", "fixed24x120", "fixed24x128", "fixed24x136", "fixed24x144", "fixed24x152", "fixed24x160", "fixed24x168", "fixed24x176", "fixed24x184", "fixed24x192", "fixed24x200", "fixed24x208", "fixed24x216", "fixed24x224", "fixed24x232", "fixed32x8", "fixed32x16", "fixed32x24", "fixed32x32", "fixed32x40", "fixed32x48", "fixed32x56", "fixed32x64", "fixed32x72", "fixed32x80", "fixed32x88", "fixed32x96", "fixed32x104", "fixed32x112", "fixed32x120", "fixed32x128", "fixed32x136", "fixed32x144", "fixed32x152", "fixed32x160", "fixed32x168", "fixed32x176", "fixed32x184", "fixed32x192", "fixed32x200", "fixed32x208", "fixed32x216", "fixed32x224", "fixed40x8", "fixed40x16", "fixed40x24", "fixed40x32", "fixed40x40", "fixed40x48", "fixed40x56", "fixed40x64", "fixed40x72", "fixed40x80", "fixed40x88", "fixed40x96", "fixed40x104", "fixed40x112", "fixed40x120", "fixed40x128", "fixed40x136", "fixed40x144", "fixed40x152", "fixed40x160", "fixed40x168", "fixed40x176", "fixed40x184", "fixed40x192", "fixed40x200", "fixed40x208", "fixed40x216", "fixed48x8", "fixed48x16", "fixed48x24", "fixed48x32", "fixed48x40", "fixed48x48", "fixed48x56", "fixed48x64", "fixed48x72", "fixed48x80", "fixed48x88", "fixed48x96", "fixed48x104", "fixed48x112", "fixed48x120", "fixed48x128", "fixed48x136", "fixed48x144", "fixed48x152", "fixed48x160", "fixed48x168", "fixed48x176", "fixed48x184", "fixed48x192", "fixed48x200", "fixed48x208", "fixed56x8", "fixed56x16", "fixed56x24", "fixed56x32", "fixed56x40", "fixed56x48", "fixed56x56", "fixed56x64", "fixed56x72", "fixed56x80", "fixed56x88", "fixed56x96", "fixed56x104", "fixed56x112", "fixed56x120", "fixed56x128", "fixed56x136", "fixed56x144", "fixed56x152", "fixed56x160", "fixed56x168", "fixed56x176", "fixed56x184", "fixed56x192", "fixed56x200", "fixed64x8", "fixed64x16", "fixed64x24", "fixed64x32", "fixed64x40", "fixed64x48", "fixed64x56", "fixed64x64", "fixed64x72", "fixed64x80", "fixed64x88", "fixed64x96", "fixed64x104", "fixed64x112", "fixed64x120", "fixed64x128", "fixed64x136", "fixed64x144", "fixed64x152", "fixed64x160", "fixed64x168", "fixed64x176", "fixed64x184", "fixed64x192", "fixed72x8", "fixed72x16", "fixed72x24", "fixed72x32", "fixed72x40", "fixed72x48", "fixed72x56", "fixed72x64", "fixed72x72", "fixed72x80", "fixed72x88", "fixed72x96", "fixed72x104", "fixed72x112", "fixed72x120", "fixed72x128", "fixed72x136", "fixed72x144", "fixed72x152", "fixed72x160", "fixed72x168", "fixed72x176", "fixed72x184", "fixed80x8", "fixed80x16", "fixed80x24", "fixed80x32", "fixed80x40", "fixed80x48", "fixed80x56", "fixed80x64", "fixed80x72", "fixed80x80", "fixed80x88", "fixed80x96", "fixed80x104", "fixed80x112", "fixed80x120", "fixed80x128", "fixed80x136", "fixed80x144", "fixed80x152", "fixed80x160", "fixed80x168", "fixed80x176", "fixed88x8", "fixed88x16", "fixed88x24", "fixed88x32", "fixed88x40", "fixed88x48", "fixed88x56", "fixed88x64", "fixed88x72", "fixed88x80", "fixed88x88", "fixed88x96", "fixed88x104", "fixed88x112", "fixed88x120", "fixed88x128", "fixed88x136", "fixed88x144", "fixed88x152", "fixed88x160", "fixed88x168", "fixed96x8", "fixed96x16", "fixed96x24", "fixed96x32", "fixed96x40", "fixed96x48", "fixed96x56", "fixed96x64", "fixed96x72", "fixed96x80", "fixed96x88", "fixed96x96", "fixed96x104", "fixed96x112", "fixed96x120", "fixed96x128", "fixed96x136", "fixed96x144", "fixed96x152", "fixed96x160", "fixed104x8", "fixed104x16", "fixed104x24", "fixed104x32", "fixed104x40", "fixed104x48", "fixed104x56", "fixed104x64", "fixed104x72", "fixed104x80", "fixed104x88", "fixed104x96", "fixed104x104", "fixed104x112", "fixed104x120", "fixed104x128", "fixed104x136", "fixed104x144", "fixed104x152", "fixed112x8", "fixed112x16", "fixed112x24", "fixed112x32", "fixed112x40", "fixed112x48", "fixed112x56", "fixed112x64", "fixed112x72", "fixed112x80", "fixed112x88", "fixed112x96", "fixed112x104", "fixed112x112", "fixed112x120", "fixed112x128", "fixed112x136", "fixed112x144", "fixed120x8", "fixed120x16", "fixed120x24", "fixed120x32", "fixed120x40", "fixed120x48", "fixed120x56", "fixed120x64", "fixed120x72", "fixed120x80", "fixed120x88", "fixed120x96", "fixed120x104", "fixed120x112", "fixed120x120", "fixed120x128", "fixed120x136", "fixed128x8", "fixed128x16", "fixed128x24", "fixed128x32", "fixed128x40", "fixed128x48", "fixed128x56", "fixed128x64", "fixed128x72", "fixed128x80", "fixed128x88", "fixed128x96", "fixed128x104", "fixed128x112", "fixed128x120", "fixed128x128", "fixed136x8", "fixed136x16", "fixed136x24", "fixed136x32", "fixed136x40", "fixed136x48", "fixed136x56", "fixed136x64", "fixed136x72", "fixed136x80", "fixed136x88", "fixed136x96", "fixed136x104", "fixed136x112", "fixed136x120", "fixed144x8", "fixed144x16", "fixed144x24", "fixed144x32", "fixed144x40", "fixed144x48", "fixed144x56", "fixed144x64", "fixed144x72", "fixed144x80", "fixed144x88", "fixed144x96", "fixed144x104", "fixed144x112", "fixed152x8", "fixed152x16", "fixed152x24", "fixed152x32", "fixed152x40", "fixed152x48", "fixed152x56", "fixed152x64", "fixed152x72", "fixed152x80", "fixed152x88", "fixed152x96", "fixed152x104", "fixed160x8", "fixed160x16", "fixed160x24", "fixed160x32", "fixed160x40", "fixed160x48", "fixed160x56", "fixed160x64", "fixed160x72", "fixed160x80", "fixed160x88", "fixed160x96", "fixed168x8", "fixed168x16", "fixed168x24", "fixed168x32", "fixed168x40", "fixed168x48", "fixed168x56", "fixed168x64", "fixed168x72", "fixed168x80", "fixed168x88", "fixed176x8", "fixed176x16", "fixed176x24", "fixed176x32", "fixed176x40", "fixed176x48", "fixed176x56", "fixed176x64", "fixed176x72", "fixed176x80", "fixed184x8", "fixed184x16", "fixed184x24", "fixed184x32", "fixed184x40", "fixed184x48", "fixed184x56", "fixed184x64", "fixed184x72", "fixed192x8", "fixed192x16", "fixed192x24", "fixed192x32", "fixed192x40", "fixed192x48", "fixed192x56", "fixed192x64", "fixed200x8", "fixed200x16", "fixed200x24", "fixed200x32", "fixed200x40", "fixed200x48", "fixed200x56", "fixed208x8", "fixed208x16", "fixed208x24", "fixed208x32", "fixed208x40", "fixed208x48", "fixed216x8", "fixed216x16", "fixed216x24", "fixed216x32", "fixed216x40", "fixed224x8", "fixed224x16", "fixed224x24", "fixed224x32", "fixed232x8", "fixed232x16", "fixed232x24", "fixed240x8", "fixed240x16", "fixed248x8", "ufixed", "ufixed0x8", "ufixed0x16", "ufixed0x24", "ufixed0x32", "ufixed0x40", "ufixed0x48", "ufixed0x56", "ufixed0x64", "ufixed0x72", "ufixed0x80", "ufixed0x88", "ufixed0x96", "ufixed0x104", "ufixed0x112", "ufixed0x120", "ufixed0x128", "ufixed0x136", "ufixed0x144", "ufixed0x152", "ufixed0x160", "ufixed0x168", "ufixed0x176", "ufixed0x184", "ufixed0x192", "ufixed0x200", "ufixed0x208", "ufixed0x216", "ufixed0x224", "ufixed0x232", "ufixed0x240", "ufixed0x248", "ufixed0x256", "ufixed8x8", "ufixed8x16", "ufixed8x24", "ufixed8x32", "ufixed8x40", "ufixed8x48", "ufixed8x56", "ufixed8x64", "ufixed8x72", "ufixed8x80", "ufixed8x88", "ufixed8x96", "ufixed8x104", "ufixed8x112", "ufixed8x120", "ufixed8x128", "ufixed8x136", "ufixed8x144", "ufixed8x152", "ufixed8x160", "ufixed8x168", "ufixed8x176", "ufixed8x184", "ufixed8x192", "ufixed8x200", "ufixed8x208", "ufixed8x216", "ufixed8x224", "ufixed8x232", "ufixed8x240", "ufixed8x248", "ufixed16x8", "ufixed16x16", "ufixed16x24", "ufixed16x32", "ufixed16x40", "ufixed16x48", "ufixed16x56", "ufixed16x64", "ufixed16x72", "ufixed16x80", "ufixed16x88", "ufixed16x96", "ufixed16x104", "ufixed16x112", "ufixed16x120", "ufixed16x128", "ufixed16x136", "ufixed16x144", "ufixed16x152", "ufixed16x160", "ufixed16x168", "ufixed16x176", "ufixed16x184", "ufixed16x192", "ufixed16x200", "ufixed16x208", "ufixed16x216", "ufixed16x224", "ufixed16x232", "ufixed16x240", "ufixed24x8", "ufixed24x16", "ufixed24x24", "ufixed24x32", "ufixed24x40", "ufixed24x48", "ufixed24x56", "ufixed24x64", "ufixed24x72", "ufixed24x80", "ufixed24x88", "ufixed24x96", "ufixed24x104", "ufixed24x112", "ufixed24x120", "ufixed24x128", "ufixed24x136", "ufixed24x144", "ufixed24x152", "ufixed24x160", "ufixed24x168", "ufixed24x176", "ufixed24x184", "ufixed24x192", "ufixed24x200", "ufixed24x208", "ufixed24x216", "ufixed24x224", "ufixed24x232", "ufixed32x8", "ufixed32x16", "ufixed32x24", "ufixed32x32", "ufixed32x40", "ufixed32x48", "ufixed32x56", "ufixed32x64", "ufixed32x72", "ufixed32x80", "ufixed32x88", "ufixed32x96", "ufixed32x104", "ufixed32x112", "ufixed32x120", "ufixed32x128", "ufixed32x136", "ufixed32x144", "ufixed32x152", "ufixed32x160", "ufixed32x168", "ufixed32x176", "ufixed32x184", "ufixed32x192", "ufixed32x200", "ufixed32x208", "ufixed32x216", "ufixed32x224", "ufixed40x8", "ufixed40x16", "ufixed40x24", "ufixed40x32", "ufixed40x40", "ufixed40x48", "ufixed40x56", "ufixed40x64", "ufixed40x72", "ufixed40x80", "ufixed40x88", "ufixed40x96", "ufixed40x104", "ufixed40x112", "ufixed40x120", "ufixed40x128", "ufixed40x136", "ufixed40x144", "ufixed40x152", "ufixed40x160", "ufixed40x168", "ufixed40x176", "ufixed40x184", "ufixed40x192", "ufixed40x200", "ufixed40x208", "ufixed40x216", "ufixed48x8", "ufixed48x16", "ufixed48x24", "ufixed48x32", "ufixed48x40", "ufixed48x48", "ufixed48x56", "ufixed48x64", "ufixed48x72", "ufixed48x80", "ufixed48x88", "ufixed48x96", "ufixed48x104", "ufixed48x112", "ufixed48x120", "ufixed48x128", "ufixed48x136", "ufixed48x144", "ufixed48x152", "ufixed48x160", "ufixed48x168", "ufixed48x176", "ufixed48x184", "ufixed48x192", "ufixed48x200", "ufixed48x208", "ufixed56x8", "ufixed56x16", "ufixed56x24", "ufixed56x32", "ufixed56x40", "ufixed56x48", "ufixed56x56", "ufixed56x64", "ufixed56x72", "ufixed56x80", "ufixed56x88", "ufixed56x96", "ufixed56x104", "ufixed56x112", "ufixed56x120", "ufixed56x128", "ufixed56x136", "ufixed56x144", "ufixed56x152", "ufixed56x160", "ufixed56x168", "ufixed56x176", "ufixed56x184", "ufixed56x192", "ufixed56x200", "ufixed64x8", "ufixed64x16", "ufixed64x24", "ufixed64x32", "ufixed64x40", "ufixed64x48", "ufixed64x56", "ufixed64x64", "ufixed64x72", "ufixed64x80", "ufixed64x88", "ufixed64x96", "ufixed64x104", "ufixed64x112", "ufixed64x120", "ufixed64x128", "ufixed64x136", "ufixed64x144", "ufixed64x152", "ufixed64x160", "ufixed64x168", "ufixed64x176", "ufixed64x184", "ufixed64x192", "ufixed72x8", "ufixed72x16", "ufixed72x24", "ufixed72x32", "ufixed72x40", "ufixed72x48", "ufixed72x56", "ufixed72x64", "ufixed72x72", "ufixed72x80", "ufixed72x88", "ufixed72x96", "ufixed72x104", "ufixed72x112", "ufixed72x120", "ufixed72x128", "ufixed72x136", "ufixed72x144", "ufixed72x152", "ufixed72x160", "ufixed72x168", "ufixed72x176", "ufixed72x184", "ufixed80x8", "ufixed80x16", "ufixed80x24", "ufixed80x32", "ufixed80x40", "ufixed80x48", "ufixed80x56", "ufixed80x64", "ufixed80x72", "ufixed80x80", "ufixed80x88", "ufixed80x96", "ufixed80x104", "ufixed80x112", "ufixed80x120", "ufixed80x128", "ufixed80x136", "ufixed80x144", "ufixed80x152", "ufixed80x160", "ufixed80x168", "ufixed80x176", "ufixed88x8", "ufixed88x16", "ufixed88x24", "ufixed88x32", "ufixed88x40", "ufixed88x48", "ufixed88x56", "ufixed88x64", "ufixed88x72", "ufixed88x80", "ufixed88x88", "ufixed88x96", "ufixed88x104", "ufixed88x112", "ufixed88x120", "ufixed88x128", "ufixed88x136", "ufixed88x144", "ufixed88x152", "ufixed88x160", "ufixed88x168", "ufixed96x8", "ufixed96x16", "ufixed96x24", "ufixed96x32", "ufixed96x40", "ufixed96x48", "ufixed96x56", "ufixed96x64", "ufixed96x72", "ufixed96x80", "ufixed96x88", "ufixed96x96", "ufixed96x104", "ufixed96x112", "ufixed96x120", "ufixed96x128", "ufixed96x136", "ufixed96x144", "ufixed96x152", "ufixed96x160", "ufixed104x8", "ufixed104x16", "ufixed104x24", "ufixed104x32", "ufixed104x40", "ufixed104x48", "ufixed104x56", "ufixed104x64", "ufixed104x72", "ufixed104x80", "ufixed104x88", "ufixed104x96", "ufixed104x104", "ufixed104x112", "ufixed104x120", "ufixed104x128", "ufixed104x136", "ufixed104x144", "ufixed104x152", "ufixed112x8", "ufixed112x16", "ufixed112x24", "ufixed112x32", "ufixed112x40", "ufixed112x48", "ufixed112x56", "ufixed112x64", "ufixed112x72", "ufixed112x80", "ufixed112x88", "ufixed112x96", "ufixed112x104", "ufixed112x112", "ufixed112x120", "ufixed112x128", "ufixed112x136", "ufixed112x144", "ufixed120x8", "ufixed120x16", "ufixed120x24", "ufixed120x32", "ufixed120x40", "ufixed120x48", "ufixed120x56", "ufixed120x64", "ufixed120x72", "ufixed120x80", "ufixed120x88", "ufixed120x96", "ufixed120x104", "ufixed120x112", "ufixed120x120", "ufixed120x128", "ufixed120x136", "ufixed128x8", "ufixed128x16", "ufixed128x24", "ufixed128x32", "ufixed128x40", "ufixed128x48", "ufixed128x56", "ufixed128x64", "ufixed128x72", "ufixed128x80", "ufixed128x88", "ufixed128x96", "ufixed128x104", "ufixed128x112", "ufixed128x120", "ufixed128x128", "ufixed136x8", "ufixed136x16", "ufixed136x24", "ufixed136x32", "ufixed136x40", "ufixed136x48", "ufixed136x56", "ufixed136x64", "ufixed136x72", "ufixed136x80", "ufixed136x88", "ufixed136x96", "ufixed136x104", "ufixed136x112", "ufixed136x120", "ufixed144x8", "ufixed144x16", "ufixed144x24", "ufixed144x32", "ufixed144x40", "ufixed144x48", "ufixed144x56", "ufixed144x64", "ufixed144x72", "ufixed144x80", "ufixed144x88", "ufixed144x96", "ufixed144x104", "ufixed144x112", "ufixed152x8", "ufixed152x16", "ufixed152x24", "ufixed152x32", "ufixed152x40", "ufixed152x48", "ufixed152x56", "ufixed152x64", "ufixed152x72", "ufixed152x80", "ufixed152x88", "ufixed152x96", "ufixed152x104", "ufixed160x8", "ufixed160x16", "ufixed160x24", "ufixed160x32", "ufixed160x40", "ufixed160x48", "ufixed160x56", "ufixed160x64", "ufixed160x72", "ufixed160x80", "ufixed160x88", "ufixed160x96", "ufixed168x8", "ufixed168x16", "ufixed168x24", "ufixed168x32", "ufixed168x40", "ufixed168x48", "ufixed168x56", "ufixed168x64", "ufixed168x72", "ufixed168x80", "ufixed168x88", "ufixed176x8", "ufixed176x16", "ufixed176x24", "ufixed176x32", "ufixed176x40", "ufixed176x48", "ufixed176x56", "ufixed176x64", "ufixed176x72", "ufixed176x80", "ufixed184x8", "ufixed184x16", "ufixed184x24", "ufixed184x32", "ufixed184x40", "ufixed184x48", "ufixed184x56", "ufixed184x64", "ufixed184x72", "ufixed192x8", "ufixed192x16", "ufixed192x24", "ufixed192x32", "ufixed192x40", "ufixed192x48", "ufixed192x56", "ufixed192x64", "ufixed200x8", "ufixed200x16", "ufixed200x24", "ufixed200x32", "ufixed200x40", "ufixed200x48", "ufixed200x56", "ufixed208x8", "ufixed208x16", "ufixed208x24", "ufixed208x32", "ufixed208x40", "ufixed208x48", "ufixed216x8", "ufixed216x16", "ufixed216x24", "ufixed216x32", "ufixed216x40", "ufixed224x8", "ufixed224x16", "ufixed224x24", "ufixed224x32", "ufixed232x8", "ufixed232x16", "ufixed232x24", "ufixed240x8", "ufixed240x16", "ufixed248x8", "event", "enum", "let", "mapping", "private", "public", "external", "inherited", "payable", "true", "false", "var", "import", "constant", "if", "else", "for", "else", "for", "while", "do", "break", "continue", "throw", "returns", "return", "suicide", "new", "is", "this", "super"], operators: ["=", ">", "<", "!", "~", "?", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/int\d*/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, o = {defaultToken: "", tokenPostfix: ".aes", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["contract", "library", "entrypoint", "function", "stateful", "state", "hash", "signature", "tuple", "list", "address", "string", "bool", "int", "record", "datatype", "type", "option", "oracle", "oracle_query", "Call", "Bits", "Bytes", "Oracle", "String", "Crypto", "Address", "Auth", "Chain", "None", "Some", "bits", "bytes", "event", "let", "map", "private", "public", "true", "false", "var", "if", "else", "throw"], operators: ["=", ">", "<", "!", "~", "?", "::", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/int\d*/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"]], autoClosingPairs: [{open: '"', close: '"', notIn: ["string", "comment"]}, {open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}]}, r = {defaultToken: "", tokenPostfix: ".aes", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["contract", "library", "entrypoint", "function", "stateful", "state", "hash", "signature", "tuple", "list", "address", "string", "bool", "int", "record", "datatype", "type", "option", "oracle", "oracle_query", "Call", "Bits", "Bytes", "Oracle", "String", "Crypto", "Address", "Auth", "Chain", "None", "Some", "bits", "bytes", "event", "let", "map", "private", "public", "true", "false", "var", "if", "else", "throw"], operators: ["=", ">", "<", "!", "~", "?", "::", ":", "==", "<=", ">=", "!=", "&&", "||", "++", "--", "+", "-", "*", "/", "&", "|", "^", "%", "<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=", "%=", "<<=", ">>=", ">>>="], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, floatsuffix: /[fFlL]?/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], {include: "@whitespace"}, [/\[\[.*\]\]/, "annotation"], [/^\s*#\w+/, "keyword"], [/int\d*/, "keyword"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"], [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"], [/0[0-7']*[0-7](@integersuffix)/, "number.octal"], [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"], [/\d[\d']*\d(@integersuffix)/, "number"], [/\d(@integersuffix)/, "number"], [/[;,.]/, "delimiter"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], doccomment: [[/[^\/*]+/, "comment.doc"], [/\*\//, "comment.doc", "@pop"], [/[\/*]/, "comment.doc"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["ABORT_AFTER_WAIT", "ABSENT", "ABSOLUTE", "ACCENT_SENSITIVITY", "ACTION", "ACTIVATION", "ACTIVE", "ADD", "ADDRESS", "ADMIN", "AES", "AES_128", "AES_192", "AES_256", "AFFINITY", "AFTER", "AGGREGATE", "ALGORITHM", "ALL_CONSTRAINTS", "ALL_ERRORMSGS", "ALL_INDEXES", "ALL_LEVELS", "ALL_SPARSE_COLUMNS", "ALLOW_CONNECTIONS", "ALLOW_MULTIPLE_EVENT_LOSS", "ALLOW_PAGE_LOCKS", "ALLOW_ROW_LOCKS", "ALLOW_SINGLE_EVENT_LOSS", "ALLOW_SNAPSHOT_ISOLATION", "ALLOWED", "ALTER", "ANONYMOUS", "ANSI_DEFAULTS", "ANSI_NULL_DEFAULT", "ANSI_NULL_DFLT_OFF", "ANSI_NULL_DFLT_ON", "ANSI_NULLS", "ANSI_PADDING", "ANSI_WARNINGS", "APPEND", "APPLICATION", "APPLICATION_LOG", "ARITHABORT", "ARITHIGNORE", "AS", "ASC", "ASSEMBLY", "ASYMMETRIC", "ASYNCHRONOUS_COMMIT", "AT", "ATOMIC", "ATTACH", "ATTACH_REBUILD_LOG", "AUDIT", "AUDIT_GUID", "AUTHENTICATION", "AUTHORIZATION", "AUTO", "AUTO_CLEANUP", "AUTO_CLOSE", "AUTO_CREATE_STATISTICS", "AUTO_SHRINK", "AUTO_UPDATE_STATISTICS", "AUTO_UPDATE_STATISTICS_ASYNC", "AUTOMATED_BACKUP_PREFERENCE", "AUTOMATIC", "AVAILABILITY", "AVAILABILITY_MODE", "BACKUP", "BACKUP_PRIORITY", "BASE64", "BATCHSIZE", "BEGIN", "BEGIN_DIALOG", "BIGINT", "BINARY", "BINDING", "BIT", "BLOCKERS", "BLOCKSIZE", "BOUNDING_BOX", "BREAK", "BROKER", "BROKER_INSTANCE", "BROWSE", "BUCKET_COUNT", "BUFFER", "BUFFERCOUNT", "BULK", "BULK_LOGGED", "BY", "CACHE", "CALL", "CALLED", "CALLER", "CAP_CPU_PERCENT", "CASCADE", "CASE", "CATALOG", "CATCH", "CELLS_PER_OBJECT", "CERTIFICATE", "CHANGE_RETENTION", "CHANGE_TRACKING", "CHANGES", "CHAR", "CHARACTER", "CHECK", "CHECK_CONSTRAINTS", "CHECK_EXPIRATION", "CHECK_POLICY", "CHECKALLOC", "CHECKCATALOG", "CHECKCONSTRAINTS", "CHECKDB", "CHECKFILEGROUP", "CHECKIDENT", "CHECKPOINT", "CHECKTABLE", "CLASSIFIER_FUNCTION", "CLEANTABLE", "CLEANUP", "CLEAR", "CLOSE", "CLUSTER", "CLUSTERED", "CODEPAGE", "COLLATE", "COLLECTION", "COLUMN", "COLUMN_SET", "COLUMNS", "COLUMNSTORE", "COLUMNSTORE_ARCHIVE", "COMMIT", "COMMITTED", "COMPATIBILITY_LEVEL", "COMPRESSION", "COMPUTE", "CONCAT", "CONCAT_NULL_YIELDS_NULL", "CONFIGURATION", "CONNECT", "CONSTRAINT", "CONTAINMENT", "CONTENT", "CONTEXT", "CONTINUE", "CONTINUE_AFTER_ERROR", "CONTRACT", "CONTRACT_NAME", "CONTROL", "CONVERSATION", "COOKIE", "COPY_ONLY", "COUNTER", "CPU", "CREATE", "CREATE_NEW", "CREATION_DISPOSITION", "CREDENTIAL", "CRYPTOGRAPHIC", "CUBE", "CURRENT", "CURRENT_DATE", "CURSOR", "CURSOR_CLOSE_ON_COMMIT", "CURSOR_DEFAULT", "CYCLE", "DATA", "DATA_COMPRESSION", "DATA_PURITY", "DATABASE", "DATABASE_DEFAULT", "DATABASE_MIRRORING", "DATABASE_SNAPSHOT", "DATAFILETYPE", "DATE", "DATE_CORRELATION_OPTIMIZATION", "DATEFIRST", "DATEFORMAT", "DATETIME", "DATETIME2", "DATETIMEOFFSET", "DAY", "DAYOFYEAR", "DAYS", "DB_CHAINING", "DBCC", "DBREINDEX", "DDL_DATABASE_LEVEL_EVENTS", "DEADLOCK_PRIORITY", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DECRYPTION", "DEFAULT", "DEFAULT_DATABASE", "DEFAULT_FULLTEXT_LANGUAGE", "DEFAULT_LANGUAGE", "DEFAULT_SCHEMA", "DEFINITION", "DELAY", "DELAYED_DURABILITY", "DELETE", "DELETED", "DENSITY_VECTOR", "DENY", "DEPENDENTS", "DES", "DESC", "DESCRIPTION", "DESX", "DHCP", "DIAGNOSTICS", "DIALOG", "DIFFERENTIAL", "DIRECTORY_NAME", "DISABLE", "DISABLE_BROKER", "DISABLED", "DISK", "DISTINCT", "DISTRIBUTED", "DOCUMENT", "DOUBLE", "DROP", "DROP_EXISTING", "DROPCLEANBUFFERS", "DUMP", "DURABILITY", "DYNAMIC", "EDITION", "ELEMENTS", "ELSE", "EMERGENCY", "EMPTY", "EMPTYFILE", "ENABLE", "ENABLE_BROKER", "ENABLED", "ENCRYPTION", "END", "ENDPOINT", "ENDPOINT_URL", "ERRLVL", "ERROR", "ERROR_BROKER_CONVERSATIONS", "ERRORFILE", "ESCAPE", "ESTIMATEONLY", "EVENT", "EVENT_RETENTION_MODE", "EXEC", "EXECUTABLE", "EXECUTE", "EXIT", "EXPAND", "EXPIREDATE", "EXPIRY_DATE", "EXPLICIT", "EXTENDED_LOGICAL_CHECKS", "EXTENSION", "EXTERNAL", "EXTERNAL_ACCESS", "FAIL_OPERATION", "FAILOVER", "FAILOVER_MODE", "FAILURE_CONDITION_LEVEL", "FALSE", "FAN_IN", "FAST", "FAST_FORWARD", "FETCH", "FIELDTERMINATOR", "FILE", "FILEGROUP", "FILEGROWTH", "FILELISTONLY", "FILENAME", "FILEPATH", "FILESTREAM", "FILESTREAM_ON", "FILETABLE_COLLATE_FILENAME", "FILETABLE_DIRECTORY", "FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME", "FILETABLE_NAMESPACE", "FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME", "FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME", "FILLFACTOR", "FILTERING", "FIRE_TRIGGERS", "FIRST", "FIRSTROW", "FLOAT", "FMTONLY", "FOLLOWING", "FOR", "FORCE", "FORCE_FAILOVER_ALLOW_DATA_LOSS", "FORCE_SERVICE_ALLOW_DATA_LOSS", "FORCED", "FORCEPLAN", "FORCESCAN", "FORCESEEK", "FOREIGN", "FORMATFILE", "FORMSOF", "FORWARD_ONLY", "FREE", "FREEPROCCACHE", "FREESESSIONCACHE", "FREESYSTEMCACHE", "FROM", "FULL", "FULLSCAN", "FULLTEXT", "FUNCTION", "GB", "GEOGRAPHY_AUTO_GRID", "GEOGRAPHY_GRID", "GEOMETRY_AUTO_GRID", "GEOMETRY_GRID", "GET", "GLOBAL", "GO", "GOTO", "GOVERNOR", "GRANT", "GRIDS", "GROUP", "GROUP_MAX_REQUESTS", "HADR", "HASH", "HASHED", "HAVING", "HEADERONLY", "HEALTH_CHECK_TIMEOUT", "HELP", "HIERARCHYID", "HIGH", "HINT", "HISTOGRAM", "HOLDLOCK", "HONOR_BROKER_PRIORITY", "HOUR", "HOURS", "IDENTITY", "IDENTITY_INSERT", "IDENTITY_VALUE", "IDENTITYCOL", "IF", "IGNORE_CONSTRAINTS", "IGNORE_DUP_KEY", "IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX", "IGNORE_TRIGGERS", "IMAGE", "IMMEDIATE", "IMPERSONATE", "IMPLICIT_TRANSACTIONS", "IMPORTANCE", "INCLUDE", "INCREMENT", "INCREMENTAL", "INDEX", "INDEXDEFRAG", "INFINITE", "INFLECTIONAL", "INIT", "INITIATOR", "INPUT", "INPUTBUFFER", "INSENSITIVE", "INSERT", "INSERTED", "INSTEAD", "INT", "INTEGER", "INTO", "IO", "IP", "ISABOUT", "ISOLATION", "JOB", "KB", "KEEP", "KEEP_CDC", "KEEP_NULLS", "KEEP_REPLICATION", "KEEPDEFAULTS", "KEEPFIXED", "KEEPIDENTITY", "KEEPNULLS", "KERBEROS", "KEY", "KEY_SOURCE", "KEYS", "KEYSET", "KILL", "KILOBYTES_PER_BATCH", "LABELONLY", "LANGUAGE", "LAST", "LASTROW", "LEVEL", "LEVEL_1", "LEVEL_2", "LEVEL_3", "LEVEL_4", "LIFETIME", "LIMIT", "LINENO", "LIST", "LISTENER", "LISTENER_IP", "LISTENER_PORT", "LOAD", "LOADHISTORY", "LOB_COMPACTION", "LOCAL", "LOCAL_SERVICE_NAME", "LOCK_ESCALATION", "LOCK_TIMEOUT", "LOGIN", "LOGSPACE", "LOOP", "LOW", "MANUAL", "MARK", "MARK_IN_USE_FOR_REMOVAL", "MASTER", "MAX_CPU_PERCENT", "MAX_DISPATCH_LATENCY", "MAX_DOP", "MAX_DURATION", "MAX_EVENT_SIZE", "MAX_FILES", "MAX_IOPS_PER_VOLUME", "MAX_MEMORY", "MAX_MEMORY_PERCENT", "MAX_QUEUE_READERS", "MAX_ROLLOVER_FILES", "MAX_SIZE", "MAXDOP", "MAXERRORS", "MAXLENGTH", "MAXRECURSION", "MAXSIZE", "MAXTRANSFERSIZE", "MAXVALUE", "MB", "MEDIADESCRIPTION", "MEDIANAME", "MEDIAPASSWORD", "MEDIUM", "MEMBER", "MEMORY_OPTIMIZED", "MEMORY_OPTIMIZED_DATA", "MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT", "MEMORY_PARTITION_MODE", "MERGE", "MESSAGE", "MESSAGE_FORWARD_SIZE", "MESSAGE_FORWARDING", "MICROSECOND", "MILLISECOND", "MIN_CPU_PERCENT", "MIN_IOPS_PER_VOLUME", "MIN_MEMORY_PERCENT", "MINUTE", "MINUTES", "MINVALUE", "MIRROR", "MIRROR_ADDRESS", "MODIFY", "MONEY", "MONTH", "MOVE", "MULTI_USER", "MUST_CHANGE", "NAME", "NANOSECOND", "NATIONAL", "NATIVE_COMPILATION", "NCHAR", "NEGOTIATE", "NESTED_TRIGGERS", "NEW_ACCOUNT", "NEW_BROKER", "NEW_PASSWORD", "NEWNAME", "NEXT", "NO", "NO_BROWSETABLE", "NO_CHECKSUM", "NO_COMPRESSION", "NO_EVENT_LOSS", "NO_INFOMSGS", "NO_TRUNCATE", "NO_WAIT", "NOCHECK", "NOCOUNT", "NOEXEC", "NOEXPAND", "NOFORMAT", "NOINDEX", "NOINIT", "NOLOCK", "NON", "NON_TRANSACTED_ACCESS", "NONCLUSTERED", "NONE", "NORECOMPUTE", "NORECOVERY", "NORESEED", "NORESET", "NOREWIND", "NORMAL", "NOSKIP", "NOTIFICATION", "NOTRUNCATE", "NOUNLOAD", "NOWAIT", "NTEXT", "NTLM", "NUMANODE", "NUMERIC", "NUMERIC_ROUNDABORT", "NVARCHAR", "OBJECT", "OF", "OFF", "OFFLINE", "OFFSET", "OFFSETS", "OLD_ACCOUNT", "OLD_PASSWORD", "ON", "ON_FAILURE", "ONLINE", "ONLY", "OPEN", "OPEN_EXISTING", "OPENTRAN", "OPTIMISTIC", "OPTIMIZE", "OPTION", "ORDER", "OUT", "OUTPUT", "OUTPUTBUFFER", "OVER", "OVERRIDE", "OWNER", "OWNERSHIP", "PAD_INDEX", "PAGE", "PAGE_VERIFY", "PAGECOUNT", "PAGLOCK", "PARAMETERIZATION", "PARSEONLY", "PARTIAL", "PARTITION", "PARTITIONS", "PARTNER", "PASSWORD", "PATH", "PER_CPU", "PER_NODE", "PERCENT", "PERMISSION_SET", "PERSISTED", "PHYSICAL_ONLY", "PLAN", "POISON_MESSAGE_HANDLING", "POOL", "POPULATION", "PORT", "PRECEDING", "PRECISION", "PRIMARY", "PRIMARY_ROLE", "PRINT", "PRIOR", "PRIORITY", "PRIORITY_LEVEL", "PRIVATE", "PRIVILEGES", "PROC", "PROCCACHE", "PROCEDURE", "PROCEDURE_NAME", "PROCESS", "PROFILE", "PROPERTY", "PROPERTY_DESCRIPTION", "PROPERTY_INT_ID", "PROPERTY_SET_GUID", "PROVIDER", "PROVIDER_KEY_NAME", "PUBLIC", "PUT", "QUARTER", "QUERY", "QUERY_GOVERNOR_COST_LIMIT", "QUEUE", "QUEUE_DELAY", "QUOTED_IDENTIFIER", "RAISERROR", "RANGE", "RAW", "RC2", "RC4", "RC4_128", "READ", "READ_COMMITTED_SNAPSHOT", "READ_ONLY", "READ_ONLY_ROUTING_LIST", "READ_ONLY_ROUTING_URL", "READ_WRITE", "READ_WRITE_FILEGROUPS", "READCOMMITTED", "READCOMMITTEDLOCK", "READONLY", "READPAST", "READTEXT", "READUNCOMMITTED", "READWRITE", "REAL", "REBUILD", "RECEIVE", "RECOMPILE", "RECONFIGURE", "RECOVERY", "RECURSIVE", "RECURSIVE_TRIGGERS", "REFERENCES", "REGENERATE", "RELATED_CONVERSATION", "RELATED_CONVERSATION_GROUP", "RELATIVE", "REMOTE", "REMOTE_PROC_TRANSACTIONS", "REMOTE_SERVICE_NAME", "REMOVE", "REORGANIZE", "REPAIR_ALLOW_DATA_LOSS", "REPAIR_FAST", "REPAIR_REBUILD", "REPEATABLE", "REPEATABLEREAD", "REPLICA", "REPLICATION", "REQUEST_MAX_CPU_TIME_SEC", "REQUEST_MAX_MEMORY_GRANT_PERCENT", "REQUEST_MEMORY_GRANT_TIMEOUT_SEC", "REQUIRED", "RESAMPLE", "RESEED", "RESERVE_DISK_SPACE", "RESET", "RESOURCE", "RESTART", "RESTORE", "RESTRICT", "RESTRICTED_USER", "RESULT", "RESUME", "RETAINDAYS", "RETENTION", "RETURN", "RETURNS", "REVERT", "REVOKE", "REWIND", "REWINDONLY", "ROBUST", "ROLE", "ROLLBACK", "ROLLUP", "ROOT", "ROUTE", "ROW", "ROWCOUNT", "ROWGUIDCOL", "ROWLOCK", "ROWS", "ROWS_PER_BATCH", "ROWTERMINATOR", "ROWVERSION", "RSA_1024", "RSA_2048", "RSA_512", "RULE", "SAFE", "SAFETY", "SAMPLE", "SAVE", "SCHEDULER", "SCHEMA", "SCHEMA_AND_DATA", "SCHEMA_ONLY", "SCHEMABINDING", "SCHEME", "SCROLL", "SCROLL_LOCKS", "SEARCH", "SECOND", "SECONDARY", "SECONDARY_ONLY", "SECONDARY_ROLE", "SECONDS", "SECRET", "SECURITY_LOG", "SECURITYAUDIT", "SELECT", "SELECTIVE", "SELF", "SEND", "SENT", "SEQUENCE", "SERIALIZABLE", "SERVER", "SERVICE", "SERVICE_BROKER", "SERVICE_NAME", "SESSION", "SESSION_TIMEOUT", "SET", "SETS", "SETUSER", "SHOW_STATISTICS", "SHOWCONTIG", "SHOWPLAN", "SHOWPLAN_ALL", "SHOWPLAN_TEXT", "SHOWPLAN_XML", "SHRINKDATABASE", "SHRINKFILE", "SHUTDOWN", "SID", "SIGNATURE", "SIMPLE", "SINGLE_BLOB", "SINGLE_CLOB", "SINGLE_NCLOB", "SINGLE_USER", "SINGLETON", "SIZE", "SKIP", "SMALLDATETIME", "SMALLINT", "SMALLMONEY", "SNAPSHOT", "SORT_IN_TEMPDB", "SOURCE", "SPARSE", "SPATIAL", "SPATIAL_WINDOW_MAX_CELLS", "SPECIFICATION", "SPLIT", "SQL", "SQL_VARIANT", "SQLPERF", "STANDBY", "START", "START_DATE", "STARTED", "STARTUP_STATE", "STAT_HEADER", "STATE", "STATEMENT", "STATIC", "STATISTICAL_SEMANTICS", "STATISTICS", "STATISTICS_INCREMENTAL", "STATISTICS_NORECOMPUTE", "STATS", "STATS_STREAM", "STATUS", "STATUSONLY", "STOP", "STOP_ON_ERROR", "STOPAT", "STOPATMARK", "STOPBEFOREMARK", "STOPLIST", "STOPPED", "SUBJECT", "SUBSCRIPTION", "SUPPORTED", "SUSPEND", "SWITCH", "SYMMETRIC", "SYNCHRONOUS_COMMIT", "SYNONYM", "SYSNAME", "SYSTEM", "TABLE", "TABLERESULTS", "TABLESAMPLE", "TABLOCK", "TABLOCKX", "TAKE", "TAPE", "TARGET", "TARGET_RECOVERY_TIME", "TB", "TCP", "TEXT", "TEXTIMAGE_ON", "TEXTSIZE", "THEN", "THESAURUS", "THROW", "TIES", "TIME", "TIMEOUT", "TIMER", "TIMESTAMP", "TINYINT", "TO", "TOP", "TORN_PAGE_DETECTION", "TRACEOFF", "TRACEON", "TRACESTATUS", "TRACK_CAUSALITY", "TRACK_COLUMNS_UPDATED", "TRAN", "TRANSACTION", "TRANSFER", "TRANSFORM_NOISE_WORDS", "TRIGGER", "TRIPLE_DES", "TRIPLE_DES_3KEY", "TRUE", "TRUNCATE", "TRUNCATEONLY", "TRUSTWORTHY", "TRY", "TSQL", "TWO_DIGIT_YEAR_CUTOFF", "TYPE", "TYPE_WARNING", "UNBOUNDED", "UNCHECKED", "UNCOMMITTED", "UNDEFINED", "UNIQUE", "UNIQUEIDENTIFIER", "UNKNOWN", "UNLIMITED", "UNLOAD", "UNSAFE", "UPDATE", "UPDATETEXT", "UPDATEUSAGE", "UPDLOCK", "URL", "USE", "USED", "USER", "USEROPTIONS", "USING", "VALID_XML", "VALIDATION", "VALUE", "VALUES", "VARBINARY", "VARCHAR", "VARYING", "VERIFYONLY", "VERSION", "VIEW", "VIEW_METADATA", "VIEWS", "VISIBILITY", "WAIT_AT_LOW_PRIORITY", "WAITFOR", "WEEK", "WEIGHT", "WELL_FORMED_XML", "WHEN", "WHERE", "WHILE", "WINDOWS", "WITH", "WITHIN", "WITHOUT", "WITNESS", "WORK", "WORKLOAD", "WRITETEXT", "XACT_ABORT", "XLOCK", "XMAX", "XMIN", "XML", "XMLDATA", "XMLNAMESPACES", "XMLSCHEMA", "XQUERY", "XSINIL", "YEAR", "YMAX", "YMIN"], operators: ["ALL", "AND", "ANY", "BETWEEN", "EXISTS", "IN", "LIKE", "NOT", "OR", "SOME", "EXCEPT", "INTERSECT", "UNION", "APPLY", "CROSS", "FULL", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT", "CONTAINS", "FREETEXT", "IS", "NULL", "PIVOT", "UNPIVOT", "MATCHED"], builtinFunctions: ["AVG", "CHECKSUM_AGG", "COUNT", "COUNT_BIG", "GROUPING", "GROUPING_ID", "MAX", "MIN", "SUM", "STDEV", "STDEVP", "VAR", "VARP", "CUME_DIST", "FIRST_VALUE", "LAG", "LAST_VALUE", "LEAD", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "COLLATE", "COLLATIONPROPERTY", "TERTIARY_WEIGHTS", "FEDERATION_FILTERING_VALUE", "CAST", "CONVERT", "PARSE", "TRY_CAST", "TRY_CONVERT", "TRY_PARSE", "ASYMKEY_ID", "ASYMKEYPROPERTY", "CERTPROPERTY", "CERT_ID", "CRYPT_GEN_RANDOM", "DECRYPTBYASYMKEY", "DECRYPTBYCERT", "DECRYPTBYKEY", "DECRYPTBYKEYAUTOASYMKEY", "DECRYPTBYKEYAUTOCERT", "DECRYPTBYPASSPHRASE", "ENCRYPTBYASYMKEY", "ENCRYPTBYCERT", "ENCRYPTBYKEY", "ENCRYPTBYPASSPHRASE", "HASHBYTES", "IS_OBJECTSIGNED", "KEY_GUID", "KEY_ID", "KEY_NAME", "SIGNBYASYMKEY", "SIGNBYCERT", "SYMKEYPROPERTY", "VERIFYSIGNEDBYCERT", "VERIFYSIGNEDBYASYMKEY", "CURSOR_STATUS", "DATALENGTH", "IDENT_CURRENT", "IDENT_INCR", "IDENT_SEED", "IDENTITY", "SQL_VARIANT_PROPERTY", "CURRENT_TIMESTAMP", "DATEADD", "DATEDIFF", "DATEFROMPARTS", "DATENAME", "DATEPART", "DATETIME2FROMPARTS", "DATETIMEFROMPARTS", "DATETIMEOFFSETFROMPARTS", "DAY", "EOMONTH", "GETDATE", "GETUTCDATE", "ISDATE", "MONTH", "SMALLDATETIMEFROMPARTS", "SWITCHOFFSET", "SYSDATETIME", "SYSDATETIMEOFFSET", "SYSUTCDATETIME", "TIMEFROMPARTS", "TODATETIMEOFFSET", "YEAR", "CHOOSE", "COALESCE", "IIF", "NULLIF", "ABS", "ACOS", "ASIN", "ATAN", "ATN2", "CEILING", "COS", "COT", "DEGREES", "EXP", "FLOOR", "LOG", "LOG10", "PI", "POWER", "RADIANS", "RAND", "ROUND", "SIGN", "SIN", "SQRT", "SQUARE", "TAN", "APP_NAME", "APPLOCK_MODE", "APPLOCK_TEST", "ASSEMBLYPROPERTY", "COL_LENGTH", "COL_NAME", "COLUMNPROPERTY", "DATABASE_PRINCIPAL_ID", "DATABASEPROPERTYEX", "DB_ID", "DB_NAME", "FILE_ID", "FILE_IDEX", "FILE_NAME", "FILEGROUP_ID", "FILEGROUP_NAME", "FILEGROUPPROPERTY", "FILEPROPERTY", "FULLTEXTCATALOGPROPERTY", "FULLTEXTSERVICEPROPERTY", "INDEX_COL", "INDEXKEY_PROPERTY", "INDEXPROPERTY", "OBJECT_DEFINITION", "OBJECT_ID", "OBJECT_NAME", "OBJECT_SCHEMA_NAME", "OBJECTPROPERTY", "OBJECTPROPERTYEX", "ORIGINAL_DB_NAME", "PARSENAME", "SCHEMA_ID", "SCHEMA_NAME", "SCOPE_IDENTITY", "SERVERPROPERTY", "STATS_DATE", "TYPE_ID", "TYPE_NAME", "TYPEPROPERTY", "DENSE_RANK", "NTILE", "RANK", "ROW_NUMBER", "PUBLISHINGSERVERNAME", "OPENDATASOURCE", "OPENQUERY", "OPENROWSET", "OPENXML", "CERTENCODED", "CERTPRIVATEKEY", "CURRENT_USER", "HAS_DBACCESS", "HAS_PERMS_BY_NAME", "IS_MEMBER", "IS_ROLEMEMBER", "IS_SRVROLEMEMBER", "LOGINPROPERTY", "ORIGINAL_LOGIN", "PERMISSIONS", "PWDENCRYPT", "PWDCOMPARE", "SESSION_USER", "SESSIONPROPERTY", "SUSER_ID", "SUSER_NAME", "SUSER_SID", "SUSER_SNAME", "SYSTEM_USER", "USER", "USER_ID", "USER_NAME", "ASCII", "CHAR", "CHARINDEX", "CONCAT", "DIFFERENCE", "FORMAT", "LEFT", "LEN", "LOWER", "LTRIM", "NCHAR", "PATINDEX", "QUOTENAME", "REPLACE", "REPLICATE", "REVERSE", "RIGHT", "RTRIM", "SOUNDEX", "SPACE", "STR", "STUFF", "SUBSTRING", "UNICODE", "UPPER", "BINARY_CHECKSUM", "CHECKSUM", "CONNECTIONPROPERTY", "CONTEXT_INFO", "CURRENT_REQUEST_ID", "ERROR_LINE", "ERROR_NUMBER", "ERROR_MESSAGE", "ERROR_PROCEDURE", "ERROR_SEVERITY", "ERROR_STATE", "FORMATMESSAGE", "GETANSINULL", "GET_FILESTREAM_TRANSACTION_CONTEXT", "HOST_ID", "HOST_NAME", "ISNULL", "ISNUMERIC", "MIN_ACTIVE_ROWVERSION", "NEWID", "NEWSEQUENTIALID", "ROWCOUNT_BIG", "XACT_STATE", "TEXTPTR", "TEXTVALID", "COLUMNS_UPDATED", "EVENTDATA", "TRIGGER_NESTLEVEL", "UPDATE", "CHANGETABLE", "CHANGE_TRACKING_CONTEXT", "CHANGE_TRACKING_CURRENT_VERSION", "CHANGE_TRACKING_IS_COLUMN_IN_MASK", "CHANGE_TRACKING_MIN_VALID_VERSION", "CONTAINSTABLE", "FREETEXTTABLE", "SEMANTICKEYPHRASETABLE", "SEMANTICSIMILARITYDETAILSTABLE", "SEMANTICSIMILARITYTABLE", "FILETABLEROOTPATH", "GETFILENAMESPACEPATH", "GETPATHLOCATOR", "PATHNAME", "GET_TRANSMISSION_STATUS"], builtinVariables: ["@@DATEFIRST", "@@DBTS", "@@LANGID", "@@LANGUAGE", "@@LOCK_TIMEOUT", "@@MAX_CONNECTIONS", "@@MAX_PRECISION", "@@NESTLEVEL", "@@OPTIONS", "@@REMSERVER", "@@SERVERNAME", "@@SERVICENAME", "@@SPID", "@@TEXTSIZE", "@@VERSION", "@@CURSOR_ROWS", "@@FETCH_STATUS", "@@DATEFIRST", "@@PROCID", "@@ERROR", "@@IDENTITY", "@@ROWCOUNT", "@@TRANCOUNT", "@@CONNECTIONS", "@@CPU_BUSY", "@@IDLE", "@@IO_BUSY", "@@PACKET_ERRORS", "@@PACK_RECEIVED", "@@PACK_SENT", "@@TIMETICKS", "@@TOTAL_ERRORS", "@@TOTAL_READ", "@@TOTAL_WRITE"], pseudoColumns: ["$ACTION", "$IDENTITY", "$ROWGUID", "$PARTITION"], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/N'/, {token: "string", next: "@string"}], [/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/\[/, {token: "identifier.quote", next: "@bracketedIdentifier"}], [/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], bracketedIdentifier: [[/[^\]]+/, "identifier"], [/]]/, "identifier"], [/]/, {token: "identifier.quote", next: "@pop"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: [[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, "keyword"], [/BEGIN\s+TRY\b/i, {token: "keyword.try"}], [/END\s+TRY\b/i, {token: "keyword.try"}], [/BEGIN\s+CATCH\b/i, {token: "keyword.catch"}], [/END\s+CATCH\b/i, {token: "keyword.catch"}], [/(BEGIN|CASE)\b/i, {token: "keyword.block"}], [/END\b/i, {token: "keyword.block"}], [/WHEN\b/i, {token: "keyword.choice"}], [/THEN\b/i, {token: "keyword.choice"}]]}}; + var i = {comments: {lineComment: "--", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {defaultToken: "", tokenPostfix: ".sql", ignoreCase: true, brackets: [{open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}], keywords: ["ABORT_AFTER_WAIT", "ABSENT", "ABSOLUTE", "ACCENT_SENSITIVITY", "ACTION", "ACTIVATION", "ACTIVE", "ADD", "ADDRESS", "ADMIN", "AES", "AES_128", "AES_192", "AES_256", "AFFINITY", "AFTER", "AGGREGATE", "ALGORITHM", "ALL_CONSTRAINTS", "ALL_ERRORMSGS", "ALL_INDEXES", "ALL_LEVELS", "ALL_SPARSE_COLUMNS", "ALLOW_CONNECTIONS", "ALLOW_MULTIPLE_EVENT_LOSS", "ALLOW_PAGE_LOCKS", "ALLOW_ROW_LOCKS", "ALLOW_SINGLE_EVENT_LOSS", "ALLOW_SNAPSHOT_ISOLATION", "ALLOWED", "ALTER", "ANONYMOUS", "ANSI_DEFAULTS", "ANSI_NULL_DEFAULT", "ANSI_NULL_DFLT_OFF", "ANSI_NULL_DFLT_ON", "ANSI_NULLS", "ANSI_PADDING", "ANSI_WARNINGS", "APPEND", "APPLICATION", "APPLICATION_LOG", "ARITHABORT", "ARITHIGNORE", "AS", "ASC", "ASSEMBLY", "ASYMMETRIC", "ASYNCHRONOUS_COMMIT", "AT", "ATOMIC", "ATTACH", "ATTACH_REBUILD_LOG", "AUDIT", "AUDIT_GUID", "AUTHENTICATION", "AUTHORIZATION", "AUTO", "AUTO_CLEANUP", "AUTO_CLOSE", "AUTO_CREATE_STATISTICS", "AUTO_SHRINK", "AUTO_UPDATE_STATISTICS", "AUTO_UPDATE_STATISTICS_ASYNC", "AUTOMATED_BACKUP_PREFERENCE", "AUTOMATIC", "AVAILABILITY", "AVAILABILITY_MODE", "BACKUP", "BACKUP_PRIORITY", "BASE64", "BATCHSIZE", "BEGIN", "BEGIN_DIALOG", "BIGINT", "BINARY", "BINDING", "BIT", "BLOCKERS", "BLOCKSIZE", "BOUNDING_BOX", "BREAK", "BROKER", "BROKER_INSTANCE", "BROWSE", "BUCKET_COUNT", "BUFFER", "BUFFERCOUNT", "BULK", "BULK_LOGGED", "BY", "CACHE", "CALL", "CALLED", "CALLER", "CAP_CPU_PERCENT", "CASCADE", "CASE", "CATALOG", "CATCH", "CELLS_PER_OBJECT", "CERTIFICATE", "CHANGE_RETENTION", "CHANGE_TRACKING", "CHANGES", "CHAR", "CHARACTER", "CHECK", "CHECK_CONSTRAINTS", "CHECK_EXPIRATION", "CHECK_POLICY", "CHECKALLOC", "CHECKCATALOG", "CHECKCONSTRAINTS", "CHECKDB", "CHECKFILEGROUP", "CHECKIDENT", "CHECKPOINT", "CHECKTABLE", "CLASSIFIER_FUNCTION", "CLEANTABLE", "CLEANUP", "CLEAR", "CLOSE", "CLUSTER", "CLUSTERED", "CODEPAGE", "COLLATE", "COLLECTION", "COLUMN", "COLUMN_SET", "COLUMNS", "COLUMNSTORE", "COLUMNSTORE_ARCHIVE", "COMMIT", "COMMITTED", "COMPATIBILITY_LEVEL", "COMPRESSION", "COMPUTE", "CONCAT", "CONCAT_NULL_YIELDS_NULL", "CONFIGURATION", "CONNECT", "CONSTRAINT", "CONTAINMENT", "CONTENT", "CONTEXT", "CONTINUE", "CONTINUE_AFTER_ERROR", "CONTRACT", "CONTRACT_NAME", "CONTROL", "CONVERSATION", "COOKIE", "COPY_ONLY", "COUNTER", "CPU", "CREATE", "CREATE_NEW", "CREATION_DISPOSITION", "CREDENTIAL", "CRYPTOGRAPHIC", "CUBE", "CURRENT", "CURRENT_DATE", "CURSOR", "CURSOR_CLOSE_ON_COMMIT", "CURSOR_DEFAULT", "CYCLE", "DATA", "DATA_COMPRESSION", "DATA_PURITY", "DATABASE", "DATABASE_DEFAULT", "DATABASE_MIRRORING", "DATABASE_SNAPSHOT", "DATAFILETYPE", "DATE", "DATE_CORRELATION_OPTIMIZATION", "DATEFIRST", "DATEFORMAT", "DATETIME", "DATETIME2", "DATETIMEOFFSET", "DAY", "DAYOFYEAR", "DAYS", "DB_CHAINING", "DBCC", "DBREINDEX", "DDL_DATABASE_LEVEL_EVENTS", "DEADLOCK_PRIORITY", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DECRYPTION", "DEFAULT", "DEFAULT_DATABASE", "DEFAULT_FULLTEXT_LANGUAGE", "DEFAULT_LANGUAGE", "DEFAULT_SCHEMA", "DEFINITION", "DELAY", "DELAYED_DURABILITY", "DELETE", "DELETED", "DENSITY_VECTOR", "DENY", "DEPENDENTS", "DES", "DESC", "DESCRIPTION", "DESX", "DHCP", "DIAGNOSTICS", "DIALOG", "DIFFERENTIAL", "DIRECTORY_NAME", "DISABLE", "DISABLE_BROKER", "DISABLED", "DISK", "DISTINCT", "DISTRIBUTED", "DOCUMENT", "DOUBLE", "DROP", "DROP_EXISTING", "DROPCLEANBUFFERS", "DUMP", "DURABILITY", "DYNAMIC", "EDITION", "ELEMENTS", "ELSE", "EMERGENCY", "EMPTY", "EMPTYFILE", "ENABLE", "ENABLE_BROKER", "ENABLED", "ENCRYPTION", "END", "ENDPOINT", "ENDPOINT_URL", "ERRLVL", "ERROR", "ERROR_BROKER_CONVERSATIONS", "ERRORFILE", "ESCAPE", "ESTIMATEONLY", "EVENT", "EVENT_RETENTION_MODE", "EXEC", "EXECUTABLE", "EXECUTE", "EXIT", "EXPAND", "EXPIREDATE", "EXPIRY_DATE", "EXPLICIT", "EXTENDED_LOGICAL_CHECKS", "EXTENSION", "EXTERNAL", "EXTERNAL_ACCESS", "FAIL_OPERATION", "FAILOVER", "FAILOVER_MODE", "FAILURE_CONDITION_LEVEL", "FALSE", "FAN_IN", "FAST", "FAST_FORWARD", "FETCH", "FIELDTERMINATOR", "FILE", "FILEGROUP", "FILEGROWTH", "FILELISTONLY", "FILENAME", "FILEPATH", "FILESTREAM", "FILESTREAM_ON", "FILETABLE_COLLATE_FILENAME", "FILETABLE_DIRECTORY", "FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME", "FILETABLE_NAMESPACE", "FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME", "FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME", "FILLFACTOR", "FILTERING", "FIRE_TRIGGERS", "FIRST", "FIRSTROW", "FLOAT", "FMTONLY", "FOLLOWING", "FOR", "FORCE", "FORCE_FAILOVER_ALLOW_DATA_LOSS", "FORCE_SERVICE_ALLOW_DATA_LOSS", "FORCED", "FORCEPLAN", "FORCESCAN", "FORCESEEK", "FOREIGN", "FORMATFILE", "FORMSOF", "FORWARD_ONLY", "FREE", "FREEPROCCACHE", "FREESESSIONCACHE", "FREESYSTEMCACHE", "FROM", "FULL", "FULLSCAN", "FULLTEXT", "FUNCTION", "GB", "GEOGRAPHY_AUTO_GRID", "GEOGRAPHY_GRID", "GEOMETRY_AUTO_GRID", "GEOMETRY_GRID", "GET", "GLOBAL", "GO", "GOTO", "GOVERNOR", "GRANT", "GRIDS", "GROUP", "GROUP_MAX_REQUESTS", "HADR", "HASH", "HASHED", "HAVING", "HEADERONLY", "HEALTH_CHECK_TIMEOUT", "HELP", "HIERARCHYID", "HIGH", "HINT", "HISTOGRAM", "HOLDLOCK", "HONOR_BROKER_PRIORITY", "HOUR", "HOURS", "IDENTITY", "IDENTITY_INSERT", "IDENTITY_VALUE", "IDENTITYCOL", "IF", "IGNORE_CONSTRAINTS", "IGNORE_DUP_KEY", "IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX", "IGNORE_TRIGGERS", "IMAGE", "IMMEDIATE", "IMPERSONATE", "IMPLICIT_TRANSACTIONS", "IMPORTANCE", "INCLUDE", "INCREMENT", "INCREMENTAL", "INDEX", "INDEXDEFRAG", "INFINITE", "INFLECTIONAL", "INIT", "INITIATOR", "INPUT", "INPUTBUFFER", "INSENSITIVE", "INSERT", "INSERTED", "INSTEAD", "INT", "INTEGER", "INTO", "IO", "IP", "ISABOUT", "ISOLATION", "JOB", "KB", "KEEP", "KEEP_CDC", "KEEP_NULLS", "KEEP_REPLICATION", "KEEPDEFAULTS", "KEEPFIXED", "KEEPIDENTITY", "KEEPNULLS", "KERBEROS", "KEY", "KEY_SOURCE", "KEYS", "KEYSET", "KILL", "KILOBYTES_PER_BATCH", "LABELONLY", "LANGUAGE", "LAST", "LASTROW", "LEVEL", "LEVEL_1", "LEVEL_2", "LEVEL_3", "LEVEL_4", "LIFETIME", "LIMIT", "LINENO", "LIST", "LISTENER", "LISTENER_IP", "LISTENER_PORT", "LOAD", "LOADHISTORY", "LOB_COMPACTION", "LOCAL", "LOCAL_SERVICE_NAME", "LOCK_ESCALATION", "LOCK_TIMEOUT", "LOGIN", "LOGSPACE", "LOOP", "LOW", "MANUAL", "MARK", "MARK_IN_USE_FOR_REMOVAL", "MASTER", "MAX_CPU_PERCENT", "MAX_DISPATCH_LATENCY", "MAX_DOP", "MAX_DURATION", "MAX_EVENT_SIZE", "MAX_FILES", "MAX_IOPS_PER_VOLUME", "MAX_MEMORY", "MAX_MEMORY_PERCENT", "MAX_QUEUE_READERS", "MAX_ROLLOVER_FILES", "MAX_SIZE", "MAXDOP", "MAXERRORS", "MAXLENGTH", "MAXRECURSION", "MAXSIZE", "MAXTRANSFERSIZE", "MAXVALUE", "MB", "MEDIADESCRIPTION", "MEDIANAME", "MEDIAPASSWORD", "MEDIUM", "MEMBER", "MEMORY_OPTIMIZED", "MEMORY_OPTIMIZED_DATA", "MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT", "MEMORY_PARTITION_MODE", "MERGE", "MESSAGE", "MESSAGE_FORWARD_SIZE", "MESSAGE_FORWARDING", "MICROSECOND", "MILLISECOND", "MIN_CPU_PERCENT", "MIN_IOPS_PER_VOLUME", "MIN_MEMORY_PERCENT", "MINUTE", "MINUTES", "MINVALUE", "MIRROR", "MIRROR_ADDRESS", "MODIFY", "MONEY", "MONTH", "MOVE", "MULTI_USER", "MUST_CHANGE", "NAME", "NANOSECOND", "NATIONAL", "NATIVE_COMPILATION", "NCHAR", "NEGOTIATE", "NESTED_TRIGGERS", "NEW_ACCOUNT", "NEW_BROKER", "NEW_PASSWORD", "NEWNAME", "NEXT", "NO", "NO_BROWSETABLE", "NO_CHECKSUM", "NO_COMPRESSION", "NO_EVENT_LOSS", "NO_INFOMSGS", "NO_TRUNCATE", "NO_WAIT", "NOCHECK", "NOCOUNT", "NOEXEC", "NOEXPAND", "NOFORMAT", "NOINDEX", "NOINIT", "NOLOCK", "NON", "NON_TRANSACTED_ACCESS", "NONCLUSTERED", "NONE", "NORECOMPUTE", "NORECOVERY", "NORESEED", "NORESET", "NOREWIND", "NORMAL", "NOSKIP", "NOTIFICATION", "NOTRUNCATE", "NOUNLOAD", "NOWAIT", "NTEXT", "NTLM", "NUMANODE", "NUMERIC", "NUMERIC_ROUNDABORT", "NVARCHAR", "OBJECT", "OF", "OFF", "OFFLINE", "OFFSET", "OFFSETS", "OLD_ACCOUNT", "OLD_PASSWORD", "ON", "ON_FAILURE", "ONLINE", "ONLY", "OPEN", "OPEN_EXISTING", "OPENTRAN", "OPTIMISTIC", "OPTIMIZE", "OPTION", "ORDER", "OUT", "OUTPUT", "OUTPUTBUFFER", "OVER", "OVERRIDE", "OWNER", "OWNERSHIP", "PAD_INDEX", "PAGE", "PAGE_VERIFY", "PAGECOUNT", "PAGLOCK", "PARAMETERIZATION", "PARSEONLY", "PARTIAL", "PARTITION", "PARTITIONS", "PARTNER", "PASSWORD", "PATH", "PER_CPU", "PER_NODE", "PERCENT", "PERMISSION_SET", "PERSISTED", "PHYSICAL_ONLY", "PLAN", "POISON_MESSAGE_HANDLING", "POOL", "POPULATION", "PORT", "PRECEDING", "PRECISION", "PRIMARY", "PRIMARY_ROLE", "PRINT", "PRIOR", "PRIORITY", "PRIORITY_LEVEL", "PRIVATE", "PRIVILEGES", "PROC", "PROCCACHE", "PROCEDURE", "PROCEDURE_NAME", "PROCESS", "PROFILE", "PROPERTY", "PROPERTY_DESCRIPTION", "PROPERTY_INT_ID", "PROPERTY_SET_GUID", "PROVIDER", "PROVIDER_KEY_NAME", "PUBLIC", "PUT", "QUARTER", "QUERY", "QUERY_GOVERNOR_COST_LIMIT", "QUEUE", "QUEUE_DELAY", "QUOTED_IDENTIFIER", "RAISERROR", "RANGE", "RAW", "RC2", "RC4", "RC4_128", "READ", "READ_COMMITTED_SNAPSHOT", "READ_ONLY", "READ_ONLY_ROUTING_LIST", "READ_ONLY_ROUTING_URL", "READ_WRITE", "READ_WRITE_FILEGROUPS", "READCOMMITTED", "READCOMMITTEDLOCK", "READONLY", "READPAST", "READTEXT", "READUNCOMMITTED", "READWRITE", "REAL", "REBUILD", "RECEIVE", "RECOMPILE", "RECONFIGURE", "RECOVERY", "RECURSIVE", "RECURSIVE_TRIGGERS", "REFERENCES", "REGENERATE", "RELATED_CONVERSATION", "RELATED_CONVERSATION_GROUP", "RELATIVE", "REMOTE", "REMOTE_PROC_TRANSACTIONS", "REMOTE_SERVICE_NAME", "REMOVE", "REORGANIZE", "REPAIR_ALLOW_DATA_LOSS", "REPAIR_FAST", "REPAIR_REBUILD", "REPEATABLE", "REPEATABLEREAD", "REPLICA", "REPLICATION", "REQUEST_MAX_CPU_TIME_SEC", "REQUEST_MAX_MEMORY_GRANT_PERCENT", "REQUEST_MEMORY_GRANT_TIMEOUT_SEC", "REQUIRED", "RESAMPLE", "RESEED", "RESERVE_DISK_SPACE", "RESET", "RESOURCE", "RESTART", "RESTORE", "RESTRICT", "RESTRICTED_USER", "RESULT", "RESUME", "RETAINDAYS", "RETENTION", "RETURN", "RETURNS", "REVERT", "REVOKE", "REWIND", "REWINDONLY", "ROBUST", "ROLE", "ROLLBACK", "ROLLUP", "ROOT", "ROUTE", "ROW", "ROWCOUNT", "ROWGUIDCOL", "ROWLOCK", "ROWS", "ROWS_PER_BATCH", "ROWTERMINATOR", "ROWVERSION", "RSA_1024", "RSA_2048", "RSA_512", "RULE", "SAFE", "SAFETY", "SAMPLE", "SAVE", "SCHEDULER", "SCHEMA", "SCHEMA_AND_DATA", "SCHEMA_ONLY", "SCHEMABINDING", "SCHEME", "SCROLL", "SCROLL_LOCKS", "SEARCH", "SECOND", "SECONDARY", "SECONDARY_ONLY", "SECONDARY_ROLE", "SECONDS", "SECRET", "SECURITY_LOG", "SECURITYAUDIT", "SELECT", "SELECTIVE", "SELF", "SEND", "SENT", "SEQUENCE", "SERIALIZABLE", "SERVER", "SERVICE", "SERVICE_BROKER", "SERVICE_NAME", "SESSION", "SESSION_TIMEOUT", "SET", "SETS", "SETUSER", "SHOW_STATISTICS", "SHOWCONTIG", "SHOWPLAN", "SHOWPLAN_ALL", "SHOWPLAN_TEXT", "SHOWPLAN_XML", "SHRINKDATABASE", "SHRINKFILE", "SHUTDOWN", "SID", "SIGNATURE", "SIMPLE", "SINGLE_BLOB", "SINGLE_CLOB", "SINGLE_NCLOB", "SINGLE_USER", "SINGLETON", "SIZE", "SKIP", "SMALLDATETIME", "SMALLINT", "SMALLMONEY", "SNAPSHOT", "SORT_IN_TEMPDB", "SOURCE", "SPARSE", "SPATIAL", "SPATIAL_WINDOW_MAX_CELLS", "SPECIFICATION", "SPLIT", "SQL", "SQL_VARIANT", "SQLPERF", "STANDBY", "START", "START_DATE", "STARTED", "STARTUP_STATE", "STAT_HEADER", "STATE", "STATEMENT", "STATIC", "STATISTICAL_SEMANTICS", "STATISTICS", "STATISTICS_INCREMENTAL", "STATISTICS_NORECOMPUTE", "STATS", "STATS_STREAM", "STATUS", "STATUSONLY", "STOP", "STOP_ON_ERROR", "STOPAT", "STOPATMARK", "STOPBEFOREMARK", "STOPLIST", "STOPPED", "SUBJECT", "SUBSCRIPTION", "SUPPORTED", "SUSPEND", "SWITCH", "SYMMETRIC", "SYNCHRONOUS_COMMIT", "SYNONYM", "SYSNAME", "SYSTEM", "TABLE", "TABLERESULTS", "TABLESAMPLE", "TABLOCK", "TABLOCKX", "TAKE", "TAPE", "TARGET", "TARGET_RECOVERY_TIME", "TB", "TCP", "TEXT", "TEXTIMAGE_ON", "TEXTSIZE", "THEN", "THESAURUS", "THROW", "TIES", "TIME", "TIMEOUT", "TIMER", "TIMESTAMP", "TINYINT", "TO", "TOP", "TORN_PAGE_DETECTION", "TRACEOFF", "TRACEON", "TRACESTATUS", "TRACK_CAUSALITY", "TRACK_COLUMNS_UPDATED", "TRAN", "TRANSACTION", "TRANSFER", "TRANSFORM_NOISE_WORDS", "TRIGGER", "TRIPLE_DES", "TRIPLE_DES_3KEY", "TRUE", "TRUNCATE", "TRUNCATEONLY", "TRUSTWORTHY", "TRY", "TSQL", "TWO_DIGIT_YEAR_CUTOFF", "TYPE", "TYPE_WARNING", "UNBOUNDED", "UNCHECKED", "UNCOMMITTED", "UNDEFINED", "UNIQUE", "UNIQUEIDENTIFIER", "UNKNOWN", "UNLIMITED", "UNLOAD", "UNSAFE", "UPDATE", "UPDATETEXT", "UPDATEUSAGE", "UPDLOCK", "URL", "USE", "USED", "USER", "USEROPTIONS", "USING", "VALID_XML", "VALIDATION", "VALUE", "VALUES", "VARBINARY", "VARCHAR", "VARYING", "VERIFYONLY", "VERSION", "VIEW", "VIEW_METADATA", "VIEWS", "VISIBILITY", "WAIT_AT_LOW_PRIORITY", "WAITFOR", "WEEK", "WEIGHT", "WELL_FORMED_XML", "WHEN", "WHERE", "WHILE", "WINDOWS", "WITH", "WITHIN", "WITHOUT", "WITNESS", "WORK", "WORKLOAD", "WRITETEXT", "XACT_ABORT", "XLOCK", "XMAX", "XMIN", "XML", "XMLDATA", "XMLNAMESPACES", "XMLSCHEMA", "XQUERY", "XSINIL", "YEAR", "YMAX", "YMIN"], operators: ["ALL", "AND", "ANY", "BETWEEN", "EXISTS", "IN", "LIKE", "NOT", "OR", "SOME", "EXCEPT", "INTERSECT", "UNION", "APPLY", "CROSS", "FULL", "INNER", "JOIN", "LEFT", "OUTER", "RIGHT", "CONTAINS", "FREETEXT", "IS", "NULL", "PIVOT", "UNPIVOT", "MATCHED"], builtinFunctions: ["AVG", "CHECKSUM_AGG", "COUNT", "COUNT_BIG", "GROUPING", "GROUPING_ID", "MAX", "MIN", "SUM", "STDEV", "STDEVP", "VAR", "VARP", "CUME_DIST", "FIRST_VALUE", "LAG", "LAST_VALUE", "LEAD", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "COLLATE", "COLLATIONPROPERTY", "TERTIARY_WEIGHTS", "FEDERATION_FILTERING_VALUE", "CAST", "CONVERT", "PARSE", "TRY_CAST", "TRY_CONVERT", "TRY_PARSE", "ASYMKEY_ID", "ASYMKEYPROPERTY", "CERTPROPERTY", "CERT_ID", "CRYPT_GEN_RANDOM", "DECRYPTBYASYMKEY", "DECRYPTBYCERT", "DECRYPTBYKEY", "DECRYPTBYKEYAUTOASYMKEY", "DECRYPTBYKEYAUTOCERT", "DECRYPTBYPASSPHRASE", "ENCRYPTBYASYMKEY", "ENCRYPTBYCERT", "ENCRYPTBYKEY", "ENCRYPTBYPASSPHRASE", "HASHBYTES", "IS_OBJECTSIGNED", "KEY_GUID", "KEY_ID", "KEY_NAME", "SIGNBYASYMKEY", "SIGNBYCERT", "SYMKEYPROPERTY", "VERIFYSIGNEDBYCERT", "VERIFYSIGNEDBYASYMKEY", "CURSOR_STATUS", "DATALENGTH", "IDENT_CURRENT", "IDENT_INCR", "IDENT_SEED", "IDENTITY", "SQL_VARIANT_PROPERTY", "CURRENT_TIMESTAMP", "DATEADD", "DATEDIFF", "DATEFROMPARTS", "DATENAME", "DATEPART", "DATETIME2FROMPARTS", "DATETIMEFROMPARTS", "DATETIMEOFFSETFROMPARTS", "DAY", "EOMONTH", "GETDATE", "GETUTCDATE", "ISDATE", "MONTH", "SMALLDATETIMEFROMPARTS", "SWITCHOFFSET", "SYSDATETIME", "SYSDATETIMEOFFSET", "SYSUTCDATETIME", "TIMEFROMPARTS", "TODATETIMEOFFSET", "YEAR", "CHOOSE", "COALESCE", "IIF", "NULLIF", "ABS", "ACOS", "ASIN", "ATAN", "ATN2", "CEILING", "COS", "COT", "DEGREES", "EXP", "FLOOR", "LOG", "LOG10", "PI", "POWER", "RADIANS", "RAND", "ROUND", "SIGN", "SIN", "SQRT", "SQUARE", "TAN", "APP_NAME", "APPLOCK_MODE", "APPLOCK_TEST", "ASSEMBLYPROPERTY", "COL_LENGTH", "COL_NAME", "COLUMNPROPERTY", "DATABASE_PRINCIPAL_ID", "DATABASEPROPERTYEX", "DB_ID", "DB_NAME", "FILE_ID", "FILE_IDEX", "FILE_NAME", "FILEGROUP_ID", "FILEGROUP_NAME", "FILEGROUPPROPERTY", "FILEPROPERTY", "FULLTEXTCATALOGPROPERTY", "FULLTEXTSERVICEPROPERTY", "INDEX_COL", "INDEXKEY_PROPERTY", "INDEXPROPERTY", "OBJECT_DEFINITION", "OBJECT_ID", "OBJECT_NAME", "OBJECT_SCHEMA_NAME", "OBJECTPROPERTY", "OBJECTPROPERTYEX", "ORIGINAL_DB_NAME", "PARSENAME", "SCHEMA_ID", "SCHEMA_NAME", "SCOPE_IDENTITY", "SERVERPROPERTY", "STATS_DATE", "TYPE_ID", "TYPE_NAME", "TYPEPROPERTY", "DENSE_RANK", "NTILE", "RANK", "ROW_NUMBER", "PUBLISHINGSERVERNAME", "OPENDATASOURCE", "OPENQUERY", "OPENROWSET", "OPENXML", "CERTENCODED", "CERTPRIVATEKEY", "CURRENT_USER", "HAS_DBACCESS", "HAS_PERMS_BY_NAME", "IS_MEMBER", "IS_ROLEMEMBER", "IS_SRVROLEMEMBER", "LOGINPROPERTY", "ORIGINAL_LOGIN", "PERMISSIONS", "PWDENCRYPT", "PWDCOMPARE", "SESSION_USER", "SESSIONPROPERTY", "SUSER_ID", "SUSER_NAME", "SUSER_SID", "SUSER_SNAME", "SYSTEM_USER", "USER", "USER_ID", "USER_NAME", "ASCII", "CHAR", "CHARINDEX", "CONCAT", "DIFFERENCE", "FORMAT", "LEFT", "LEN", "LOWER", "LTRIM", "NCHAR", "PATINDEX", "QUOTENAME", "REPLACE", "REPLICATE", "REVERSE", "RIGHT", "RTRIM", "SOUNDEX", "SPACE", "STR", "STUFF", "SUBSTRING", "UNICODE", "UPPER", "BINARY_CHECKSUM", "CHECKSUM", "CONNECTIONPROPERTY", "CONTEXT_INFO", "CURRENT_REQUEST_ID", "ERROR_LINE", "ERROR_NUMBER", "ERROR_MESSAGE", "ERROR_PROCEDURE", "ERROR_SEVERITY", "ERROR_STATE", "FORMATMESSAGE", "GETANSINULL", "GET_FILESTREAM_TRANSACTION_CONTEXT", "HOST_ID", "HOST_NAME", "ISNULL", "ISNUMERIC", "MIN_ACTIVE_ROWVERSION", "NEWID", "NEWSEQUENTIALID", "ROWCOUNT_BIG", "XACT_STATE", "TEXTPTR", "TEXTVALID", "COLUMNS_UPDATED", "EVENTDATA", "TRIGGER_NESTLEVEL", "UPDATE", "CHANGETABLE", "CHANGE_TRACKING_CONTEXT", "CHANGE_TRACKING_CURRENT_VERSION", "CHANGE_TRACKING_IS_COLUMN_IN_MASK", "CHANGE_TRACKING_MIN_VALID_VERSION", "CONTAINSTABLE", "FREETEXTTABLE", "SEMANTICKEYPHRASETABLE", "SEMANTICSIMILARITYDETAILSTABLE", "SEMANTICSIMILARITYTABLE", "FILETABLEROOTPATH", "GETFILENAMESPACEPATH", "GETPATHLOCATOR", "PATHNAME", "GET_TRANSMISSION_STATUS"], builtinVariables: ["@@DATEFIRST", "@@DBTS", "@@LANGID", "@@LANGUAGE", "@@LOCK_TIMEOUT", "@@MAX_CONNECTIONS", "@@MAX_PRECISION", "@@NESTLEVEL", "@@OPTIONS", "@@REMSERVER", "@@SERVERNAME", "@@SERVICENAME", "@@SPID", "@@TEXTSIZE", "@@VERSION", "@@CURSOR_ROWS", "@@FETCH_STATUS", "@@DATEFIRST", "@@PROCID", "@@ERROR", "@@IDENTITY", "@@ROWCOUNT", "@@TRANCOUNT", "@@CONNECTIONS", "@@CPU_BUSY", "@@IDLE", "@@IO_BUSY", "@@PACKET_ERRORS", "@@PACK_RECEIVED", "@@PACK_SENT", "@@TIMETICKS", "@@TOTAL_ERRORS", "@@TOTAL_READ", "@@TOTAL_WRITE"], pseudoColumns: ["$ACTION", "$IDENTITY", "$ROWGUID", "$PARTITION"], tokenizer: {root: [{include: "@comments"}, {include: "@whitespace"}, {include: "@pseudoColumns"}, {include: "@numbers"}, {include: "@strings"}, {include: "@complexIdentifiers"}, {include: "@scopes"}, [/[;,.]/, "delimiter"], [/[()]/, "@brackets"], [/[\w@#$]+/, {cases: {"@keywords": "keyword", "@operators": "operator", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], [/[<>=!%&+\-*/|~^]/, "operator"]], whitespace: [[/\s+/, "white"]], comments: [[/--+.*/, "comment"], [/\/\*/, {token: "comment.quote", next: "@comment"}]], comment: [[/[^*/]+/, "comment"], [/\*\//, {token: "comment.quote", next: "@pop"}], [/./, "comment"]], pseudoColumns: [[/[$][A-Za-z_][\w@#$]*/, {cases: {"@pseudoColumns": "predefined", "@default": "identifier"}}]], numbers: [[/0[xX][0-9a-fA-F]*/, "number"], [/[$][+-]*\d*(\.\d*)?/, "number"], [/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]], strings: [[/N'/, {token: "string", next: "@string"}], [/'/, {token: "string", next: "@string"}]], string: [[/[^']+/, "string"], [/''/, "string"], [/'/, {token: "string", next: "@pop"}]], complexIdentifiers: [[/\[/, {token: "identifier.quote", next: "@bracketedIdentifier"}], [/"/, {token: "identifier.quote", next: "@quotedIdentifier"}]], bracketedIdentifier: [[/[^\]]+/, "identifier"], [/]]/, "identifier"], [/]/, {token: "identifier.quote", next: "@pop"}]], quotedIdentifier: [[/[^"]+/, "identifier"], [/""/, "identifier"], [/"/, {token: "identifier.quote", next: "@pop"}]], scopes: [[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, "keyword"], [/BEGIN\s+TRY\b/i, {token: "keyword.try"}], [/END\s+TRY\b/i, {token: "keyword.try"}], [/BEGIN\s+CATCH\b/i, {token: "keyword.catch"}], [/END\s+CATCH\b/i, {token: "keyword.catch"}], [/(BEGIN|CASE)\b/i, {token: "keyword.block"}], [/END\b/i, {token: "keyword.block"}], [/WHEN\b/i, {token: "keyword.choice"}], [/THEN\b/i, {token: "keyword.choice"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["var", "end_var"], ["var_input", "end_var"], ["var_output", "end_var"], ["var_in_out", "end_var"], ["var_temp", "end_var"], ["var_global", "end_var"], ["var_access", "end_var"], ["var_external", "end_var"], ["type", "end_type"], ["struct", "end_struct"], ["program", "end_program"], ["function", "end_function"], ["function_block", "end_function_block"], ["action", "end_action"], ["step", "end_step"], ["initial_step", "end_step"], ["transaction", "end_transaction"], ["configuration", "end_configuration"], ["tcp", "end_tcp"], ["recource", "end_recource"], ["channel", "end_channel"], ["library", "end_library"], ["folder", "end_folder"], ["binaries", "end_binaries"], ["includes", "end_includes"], ["sources", "end_sources"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "/*", close: "*/"}, {open: "'", close: "'", notIn: ["string_sq"]}, {open: '"', close: '"', notIn: ["string_dq"]}, {open: "var_input", close: "end_var"}, {open: "var_output", close: "end_var"}, {open: "var_in_out", close: "end_var"}, {open: "var_temp", close: "end_var"}, {open: "var_global", close: "end_var"}, {open: "var_access", close: "end_var"}, {open: "var_external", close: "end_var"}, {open: "type", close: "end_type"}, {open: "struct", close: "end_struct"}, {open: "program", close: "end_program"}, {open: "function", close: "end_function"}, {open: "function_block", close: "end_function_block"}, {open: "action", close: "end_action"}, {open: "step", close: "end_step"}, {open: "initial_step", close: "end_step"}, {open: "transaction", close: "end_transaction"}, {open: "configuration", close: "end_configuration"}, {open: "tcp", close: "end_tcp"}, {open: "recource", close: "end_recource"}, {open: "channel", close: "end_channel"}, {open: "library", close: "end_library"}, {open: "folder", close: "end_folder"}, {open: "binaries", close: "end_binaries"}, {open: "includes", close: "end_includes"}, {open: "sources", close: "end_sources"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "var", close: "end_var"}, {open: "var_input", close: "end_var"}, {open: "var_output", close: "end_var"}, {open: "var_in_out", close: "end_var"}, {open: "var_temp", close: "end_var"}, {open: "var_global", close: "end_var"}, {open: "var_access", close: "end_var"}, {open: "var_external", close: "end_var"}, {open: "type", close: "end_type"}, {open: "struct", close: "end_struct"}, {open: "program", close: "end_program"}, {open: "function", close: "end_function"}, {open: "function_block", close: "end_function_block"}, {open: "action", close: "end_action"}, {open: "step", close: "end_step"}, {open: "initial_step", close: "end_step"}, {open: "transaction", close: "end_transaction"}, {open: "configuration", close: "end_configuration"}, {open: "tcp", close: "end_tcp"}, {open: "recource", close: "end_recource"}, {open: "channel", close: "end_channel"}, {open: "library", close: "end_library"}, {open: "folder", close: "end_folder"}, {open: "binaries", close: "end_binaries"}, {open: "includes", close: "end_includes"}, {open: "sources", close: "end_sources"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, o = {defaultToken: "", tokenPostfix: ".st", ignoreCase: true, brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["if", "end_if", "elsif", "else", "case", "of", "to", "__try", "__catch", "__finally", "do", "with", "by", "while", "repeat", "end_while", "end_repeat", "end_case", "for", "end_for", "task", "retain", "non_retain", "constant", "with", "at", "exit", "return", "interval", "priority", "address", "port", "on_channel", "then", "iec", "file", "uses", "version", "packagetype", "displayname", "copyright", "summary", "vendor", "common_source", "from", "extends"], constant: ["false", "true", "null"], defineKeywords: ["var", "var_input", "var_output", "var_in_out", "var_temp", "var_global", "var_access", "var_external", "end_var", "type", "end_type", "struct", "end_struct", "program", "end_program", "function", "end_function", "function_block", "end_function_block", "interface", "end_interface", "method", "end_method", "property", "end_property", "namespace", "end_namespace", "configuration", "end_configuration", "tcp", "end_tcp", "resource", "end_resource", "channel", "end_channel", "library", "end_library", "folder", "end_folder", "binaries", "end_binaries", "includes", "end_includes", "sources", "end_sources", "action", "end_action", "step", "initial_step", "end_step", "transaction", "end_transaction"], typeKeywords: ["int", "sint", "dint", "lint", "usint", "uint", "udint", "ulint", "real", "lreal", "time", "date", "time_of_day", "date_and_time", "string", "bool", "byte", "word", "dword", "array", "pointer", "lword"], operators: ["=", ">", "<", ":", ":=", "<=", ">=", "<>", "&", "+", "-", "*", "**", "MOD", "^", "or", "and", "not", "xor", "abs", "acos", "asin", "atan", "cos", "exp", "expt", "ln", "log", "sin", "sqrt", "tan", "sel", "max", "min", "limit", "mux", "shl", "shr", "rol", "ror", "indexof", "sizeof", "adr", "adrinst", "bitadr", "is_valid", "ref", "ref_to"], builtinVariables: [], builtinFunctions: ["sr", "rs", "tp", "ton", "tof", "eq", "ge", "le", "lt", "ne", "round", "trunc", "ctd", "\u0441tu", "ctud", "r_trig", "f_trig", "move", "concat", "delete", "find", "insert", "left", "len", "replace", "right", "rtc"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/(\.\.)/, "delimiter"], [/\b(16#[0-9A-Fa-f\_]*)+\b/, "number.hex"], [/\b(2#[01\_]+)+\b/, "number.binary"], [/\b(8#[0-9\_]*)+\b/, "number.octal"], [/\b\d*\.\d+([eE][\-+]?\d+)?\b/, "number.float"], [/\b(L?REAL)#[0-9\_\.e]+\b/, "number.float"], [/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, "number"], [/\d+/, "number"], [/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, "tag"], [/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, "tag"], [/\%(I|Q|M)[0-9\.]*/, "tag"], [/\b[A-Za-z]{1,6}#[0-9]+\b/, "tag"], [/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, "predefined"], [/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, "predefined"], [/[;]/, "delimiter"], [/[.]/, {token: "delimiter", next: "@params"}], [/[a-zA-Z_]\w*/, {cases: {"@operators": "operators", "@keywords": "keyword", "@typeKeywords": "type", "@defineKeywords": "variable", "@constant": "constant", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", bracket: "@open", next: "@string_dq"}], [/'/, {token: "string.quote", bracket: "@open", next: "@string_sq"}], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], params: [[/\b[A-Za-z0-9_]+\b(?=\()/, {token: "identifier", next: "@pop"}], [/\b[A-Za-z0-9_]+\b/, "variable.name", "@pop"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], comment2: [[/[^\(*]+/, "comment"], [/\(\*/, "comment", "@push"], ["\\*\\)", "comment", "@pop"], [/[\(*]/, "comment"]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\/.*$/, "comment"], [/\/\*/, "comment", "@comment"], [/\(\*/, "comment", "@comment2"]], string_dq: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], string_sq: [[/[^\\']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]]}}; + var i = {comments: {lineComment: "//", blockComment: ["(*", "*)"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["var", "end_var"], ["var_input", "end_var"], ["var_output", "end_var"], ["var_in_out", "end_var"], ["var_temp", "end_var"], ["var_global", "end_var"], ["var_access", "end_var"], ["var_external", "end_var"], ["type", "end_type"], ["struct", "end_struct"], ["program", "end_program"], ["function", "end_function"], ["function_block", "end_function_block"], ["action", "end_action"], ["step", "end_step"], ["initial_step", "end_step"], ["transaction", "end_transaction"], ["configuration", "end_configuration"], ["tcp", "end_tcp"], ["recource", "end_recource"], ["channel", "end_channel"], ["library", "end_library"], ["folder", "end_folder"], ["binaries", "end_binaries"], ["includes", "end_includes"], ["sources", "end_sources"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "/*", close: "*/"}, {open: "'", close: "'", notIn: ["string_sq"]}, {open: '"', close: '"', notIn: ["string_dq"]}, {open: "var_input", close: "end_var"}, {open: "var_output", close: "end_var"}, {open: "var_in_out", close: "end_var"}, {open: "var_temp", close: "end_var"}, {open: "var_global", close: "end_var"}, {open: "var_access", close: "end_var"}, {open: "var_external", close: "end_var"}, {open: "type", close: "end_type"}, {open: "struct", close: "end_struct"}, {open: "program", close: "end_program"}, {open: "function", close: "end_function"}, {open: "function_block", close: "end_function_block"}, {open: "action", close: "end_action"}, {open: "step", close: "end_step"}, {open: "initial_step", close: "end_step"}, {open: "transaction", close: "end_transaction"}, {open: "configuration", close: "end_configuration"}, {open: "tcp", close: "end_tcp"}, {open: "recource", close: "end_recource"}, {open: "channel", close: "end_channel"}, {open: "library", close: "end_library"}, {open: "folder", close: "end_folder"}, {open: "binaries", close: "end_binaries"}, {open: "includes", close: "end_includes"}, {open: "sources", close: "end_sources"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "var", close: "end_var"}, {open: "var_input", close: "end_var"}, {open: "var_output", close: "end_var"}, {open: "var_in_out", close: "end_var"}, {open: "var_temp", close: "end_var"}, {open: "var_global", close: "end_var"}, {open: "var_access", close: "end_var"}, {open: "var_external", close: "end_var"}, {open: "type", close: "end_type"}, {open: "struct", close: "end_struct"}, {open: "program", close: "end_program"}, {open: "function", close: "end_function"}, {open: "function_block", close: "end_function_block"}, {open: "action", close: "end_action"}, {open: "step", close: "end_step"}, {open: "initial_step", close: "end_step"}, {open: "transaction", close: "end_transaction"}, {open: "configuration", close: "end_configuration"}, {open: "tcp", close: "end_tcp"}, {open: "recource", close: "end_recource"}, {open: "channel", close: "end_channel"}, {open: "library", close: "end_library"}, {open: "folder", close: "end_folder"}, {open: "binaries", close: "end_binaries"}, {open: "includes", close: "end_includes"}, {open: "sources", close: "end_sources"}], folding: {markers: {start: new RegExp("^\\s*#pragma\\s+region\\b"), end: new RegExp("^\\s*#pragma\\s+endregion\\b")}}}, r = {defaultToken: "", tokenPostfix: ".st", ignoreCase: true, brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["if", "end_if", "elsif", "else", "case", "of", "to", "__try", "__catch", "__finally", "do", "with", "by", "while", "repeat", "end_while", "end_repeat", "end_case", "for", "end_for", "task", "retain", "non_retain", "constant", "with", "at", "exit", "return", "interval", "priority", "address", "port", "on_channel", "then", "iec", "file", "uses", "version", "packagetype", "displayname", "copyright", "summary", "vendor", "common_source", "from", "extends"], constant: ["false", "true", "null"], defineKeywords: ["var", "var_input", "var_output", "var_in_out", "var_temp", "var_global", "var_access", "var_external", "end_var", "type", "end_type", "struct", "end_struct", "program", "end_program", "function", "end_function", "function_block", "end_function_block", "interface", "end_interface", "method", "end_method", "property", "end_property", "namespace", "end_namespace", "configuration", "end_configuration", "tcp", "end_tcp", "resource", "end_resource", "channel", "end_channel", "library", "end_library", "folder", "end_folder", "binaries", "end_binaries", "includes", "end_includes", "sources", "end_sources", "action", "end_action", "step", "initial_step", "end_step", "transaction", "end_transaction"], typeKeywords: ["int", "sint", "dint", "lint", "usint", "uint", "udint", "ulint", "real", "lreal", "time", "date", "time_of_day", "date_and_time", "string", "bool", "byte", "word", "dword", "array", "pointer", "lword"], operators: ["=", ">", "<", ":", ":=", "<=", ">=", "<>", "&", "+", "-", "*", "**", "MOD", "^", "or", "and", "not", "xor", "abs", "acos", "asin", "atan", "cos", "exp", "expt", "ln", "log", "sin", "sqrt", "tan", "sel", "max", "min", "limit", "mux", "shl", "shr", "rol", "ror", "indexof", "sizeof", "adr", "adrinst", "bitadr", "is_valid", "ref", "ref_to"], builtinVariables: [], builtinFunctions: ["sr", "rs", "tp", "ton", "tof", "eq", "ge", "le", "lt", "ne", "round", "trunc", "ctd", "\u0441tu", "ctud", "r_trig", "f_trig", "move", "concat", "delete", "find", "insert", "left", "len", "replace", "right", "rtc"], symbols: /[=><!~?:&|+\-*\/\^%]+/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [[/(\.\.)/, "delimiter"], [/\b(16#[0-9A-Fa-f\_]*)+\b/, "number.hex"], [/\b(2#[01\_]+)+\b/, "number.binary"], [/\b(8#[0-9\_]*)+\b/, "number.octal"], [/\b\d*\.\d+([eE][\-+]?\d+)?\b/, "number.float"], [/\b(L?REAL)#[0-9\_\.e]+\b/, "number.float"], [/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, "number"], [/\d+/, "number"], [/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, "tag"], [/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, "tag"], [/\%(I|Q|M)[0-9\.]*/, "tag"], [/\b[A-Za-z]{1,6}#[0-9]+\b/, "tag"], [/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, "predefined"], [/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, "predefined"], [/[;]/, "delimiter"], [/[.]/, {token: "delimiter", next: "@params"}], [/[a-zA-Z_]\w*/, {cases: {"@operators": "operators", "@keywords": "keyword", "@typeKeywords": "type", "@defineKeywords": "variable", "@constant": "constant", "@builtinVariables": "predefined", "@builtinFunctions": "predefined", "@default": "identifier"}}], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, {token: "string.quote", bracket: "@open", next: "@string_dq"}], [/'/, {token: "string.quote", bracket: "@open", next: "@string_sq"}], [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"]], params: [[/\b[A-Za-z0-9_]+\b(?=\()/, {token: "identifier", next: "@pop"}], [/\b[A-Za-z0-9_]+\b/, "variable.name", "@pop"]], comment: [[/[^\/*]+/, "comment"], [/\/\*/, "comment", "@push"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"]], comment2: [[/[^\(*]+/, "comment"], [/\(\*/, "comment", "@push"], ["\\*\\)", "comment", "@pop"], [/[\(*]/, "comment"]], whitespace: [[/[ \t\r\n]+/, "white"], [/\/\/.*$/, "comment"], [/\/\*/, "comment", "@comment"], [/\(\*/, "comment", "@comment2"]], string_dq: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], string_sq: [[/[^\\']+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, o = {defaultToken: "", tokenPostfix: ".swift", identifier: /[a-zA-Z_][\w$]*/, attributes: ["@autoclosure", "@noescape", "@noreturn", "@NSApplicationMain", "@NSCopying", "@NSManaged", "@objc", "@UIApplicationMain", "@noreturn", "@availability", "@IBAction", "@IBDesignable", "@IBInspectable", "@IBOutlet"], accessmodifiers: ["public", "private", "internal"], keywords: ["__COLUMN__", "__FILE__", "__FUNCTION__", "__LINE__", "as", "as!", "as?", "associativity", "break", "case", "catch", "class", "continue", "convenience", "default", "deinit", "didSet", "do", "dynamic", "dynamicType", "else", "enum", "extension", "fallthrough", "final", "for", "func", "get", "guard", "if", "import", "in", "infix", "init", "inout", "internal", "is", "lazy", "left", "let", "mutating", "nil", "none", "nonmutating", "operator", "optional", "override", "postfix", "precedence", "prefix", "private", "protocol", "Protocol", "public", "repeat", "required", "return", "right", "self", "Self", "set", "static", "struct", "subscript", "super", "switch", "throw", "throws", "try", "try!", "Type", "typealias", "unowned", "var", "weak", "where", "while", "willSet", "FALSE", "TRUE"], symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/, operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/, operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/, operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, {include: "@attribute"}, {include: "@literal"}, {include: "@keyword"}, {include: "@invokedmethod"}, {include: "@symbol"}], whitespace: [[/\s+/, "white"], [/"""/, "string.quote", "@endDblDocString"]], endDblDocString: [[/[^"]+/, "string"], [/\\"/, "string"], [/"""/, "string.quote", "@popall"], [/"/, "string"]], symbol: [[/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/[.]/, "delimiter"], [/@operators/, "operator"], [/@symbols/, "operator"]], comment: [[/\/\/\/.*$/, "comment.doc"], [/\/\*\*/, "comment.doc", "@commentdocbody"], [/\/\/.*$/, "comment"], [/\/\*/, "comment", "@commentbody"]], commentdocbody: [[/\/\*/, "comment", "@commentbody"], [/\*\//, "comment.doc", "@pop"], [/\:[a-zA-Z]+\:/, "comment.doc.param"], [/./, "comment.doc"]], commentbody: [[/\/\*/, "comment", "@commentbody"], [/\*\//, "comment", "@pop"], [/./, "comment"]], attribute: [[/\@@identifier/, {cases: {"@attributes": "keyword.control", "@default": ""}}]], literal: [[/"/, {token: "string.quote", next: "@stringlit"}], [/0[b]([01]_?)+/, "number.binary"], [/0[o]([0-7]_?)+/, "number.octal"], [/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, "number.hex"], [/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, "number.float"], [/(\d_?)+/, "number"]], stringlit: [[/\\\(/, {token: "operator", next: "@interpolatedexpression"}], [/@escapes/, "string"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", next: "@pop"}], [/./, "string"]], interpolatedexpression: [[/\(/, {token: "operator", next: "@interpolatedexpression"}], [/\)/, {token: "operator", next: "@pop"}], {include: "@literal"}, {include: "@keyword"}, {include: "@symbol"}], keyword: [[/`/, {token: "operator", next: "@escapedkeyword"}], [/@identifier/, {cases: {"@keywords": "keyword", "[A-Z][a-zA-Z0-9$]*": "type.identifier", "@default": "identifier"}}]], escapedkeyword: [[/`/, {token: "operator", next: "@pop"}], [/./, "identifier"]], invokedmethod: [[/([.])(@identifier)/, {cases: {$2: ["delimeter", "type.identifier"], "@default": ""}}]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}, {open: "`", close: "`"}]}, r = {defaultToken: "", tokenPostfix: ".swift", identifier: /[a-zA-Z_][\w$]*/, attributes: ["@autoclosure", "@noescape", "@noreturn", "@NSApplicationMain", "@NSCopying", "@NSManaged", "@objc", "@UIApplicationMain", "@noreturn", "@availability", "@IBAction", "@IBDesignable", "@IBInspectable", "@IBOutlet"], accessmodifiers: ["public", "private", "internal"], keywords: ["__COLUMN__", "__FILE__", "__FUNCTION__", "__LINE__", "as", "as!", "as?", "associativity", "break", "case", "catch", "class", "continue", "convenience", "default", "deinit", "didSet", "do", "dynamic", "dynamicType", "else", "enum", "extension", "fallthrough", "final", "for", "func", "get", "guard", "if", "import", "in", "infix", "init", "inout", "internal", "is", "lazy", "left", "let", "mutating", "nil", "none", "nonmutating", "operator", "optional", "override", "postfix", "precedence", "prefix", "private", "protocol", "Protocol", "public", "repeat", "required", "return", "right", "self", "Self", "set", "static", "struct", "subscript", "super", "switch", "throw", "throws", "try", "try!", "Type", "typealias", "unowned", "var", "weak", "where", "while", "willSet", "FALSE", "TRUE"], symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/, operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/, operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/, operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/, escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, {include: "@attribute"}, {include: "@literal"}, {include: "@keyword"}, {include: "@invokedmethod"}, {include: "@symbol"}], whitespace: [[/\s+/, "white"], [/"""/, "string.quote", "@endDblDocString"]], endDblDocString: [[/[^"]+/, "string"], [/\\"/, "string"], [/"""/, "string.quote", "@popall"], [/"/, "string"]], symbol: [[/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/[.]/, "delimiter"], [/@operators/, "operator"], [/@symbols/, "operator"]], comment: [[/\/\/\/.*$/, "comment.doc"], [/\/\*\*/, "comment.doc", "@commentdocbody"], [/\/\/.*$/, "comment"], [/\/\*/, "comment", "@commentbody"]], commentdocbody: [[/\/\*/, "comment", "@commentbody"], [/\*\//, "comment.doc", "@pop"], [/\:[a-zA-Z]+\:/, "comment.doc.param"], [/./, "comment.doc"]], commentbody: [[/\/\*/, "comment", "@commentbody"], [/\*\//, "comment", "@pop"], [/./, "comment"]], attribute: [[/\@@identifier/, {cases: {"@attributes": "keyword.control", "@default": ""}}]], literal: [[/"/, {token: "string.quote", next: "@stringlit"}], [/0[b]([01]_?)+/, "number.binary"], [/0[o]([0-7]_?)+/, "number.octal"], [/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, "number.hex"], [/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, "number.float"], [/(\d_?)+/, "number"]], stringlit: [[/\\\(/, {token: "operator", next: "@interpolatedexpression"}], [/@escapes/, "string"], [/\\./, "string.escape.invalid"], [/"/, {token: "string.quote", next: "@pop"}], [/./, "string"]], interpolatedexpression: [[/\(/, {token: "operator", next: "@interpolatedexpression"}], [/\)/, {token: "operator", next: "@pop"}], {include: "@literal"}, {include: "@keyword"}, {include: "@symbol"}], keyword: [[/`/, {token: "operator", next: "@escapedkeyword"}], [/@identifier/, {cases: {"@keywords": "keyword", "[A-Z][a-zA-Z0-9$]*": "type.identifier", "@default": "identifier"}}]], escapedkeyword: [[/`/, {token: "operator", next: "@pop"}], [/./, "identifier"]], invokedmethod: [[/([.])(@identifier)/, {cases: {$2: ["delimeter", "type.identifier"], "@default": ""}}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["begin", "end"], ["case", "endcase"], ["casex", "endcase"], ["casez", "endcase"], ["checker", "endchecker"], ["class", "endclass"], ["clocking", "endclocking"], ["config", "endconfig"], ["function", "endfunction"], ["generate", "endgenerate"], ["group", "endgroup"], ["interface", "endinterface"], ["module", "endmodule"], ["package", "endpackage"], ["primitive", "endprimitive"], ["program", "endprogram"], ["property", "endproperty"], ["specify", "endspecify"], ["sequence", "endsequence"], ["table", "endtable"], ["task", "endtask"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {offSide: false, markers: {start: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"), end: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}}, o = {defaultToken: "", tokenPostfix: ".sv", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["accept_on", "alias", "always", "always_comb", "always_ff", "always_latch", "and", "assert", "assign", "assume", "automatic", "before", "begin", "bind", "bins", "binsof", "bit", "break", "buf", "bufif0", "bufif1", "byte", "case", "casex", "casez", "cell", "chandle", "checker", "class", "clocking", "cmos", "config", "const", "constraint", "context", "continue", "cover", "covergroup", "coverpoint", "cross", "deassign", "default", "defparam", "design", "disable", "dist", "do", "edge", "else", "end", "endcase", "endchecker", "endclass", "endclocking", "endconfig", "endfunction", "endgenerate", "endgroup", "endinterface", "endmodule", "endpackage", "endprimitive", "endprogram", "endproperty", "endspecify", "endsequence", "endtable", "endtask", "enum", "event", "eventually", "expect", "export", "extends", "extern", "final", "first_match", "for", "force", "foreach", "forever", "fork", "forkjoin", "function", "generate", "genvar", "global", "highz0", "highz1", "if", "iff", "ifnone", "ignore_bins", "illegal_bins", "implements", "implies", "import", "incdir", "include", "initial", "inout", "input", "inside", "instance", "int", "integer", "interconnect", "interface", "intersect", "join", "join_any", "join_none", "large", "let", "liblist", "library", "local", "localparam", "logic", "longint", "macromodule", "matches", "medium", "modport", "module", "nand", "negedge", "nettype", "new", "nexttime", "nmos", "nor", "noshowcancelled", "not", "notif0", "notif1", "null", "or", "output", "package", "packed", "parameter", "pmos", "posedge", "primitive", "priority", "program", "property", "protected", "pull0", "pull1", "pulldown", "pullup", "pulsestyle_ondetect", "pulsestyle_onevent", "pure", "rand", "randc", "randcase", "randsequence", "rcmos", "real", "realtime", "ref", "reg", "reject_on", "release", "repeat", "restrict", "return", "rnmos", "rpmos", "rtran", "rtranif0", "rtranif1", "s_always", "s_eventually", "s_nexttime", "s_until", "s_until_with", "scalared", "sequence", "shortint", "shortreal", "showcancelled", "signed", "small", "soft", "solve", "specify", "specparam", "static", "string", "strong", "strong0", "strong1", "struct", "super", "supply0", "supply1", "sync_accept_on", "sync_reject_on", "table", "tagged", "task", "this", "throughout", "time", "timeprecision", "timeunit", "tran", "tranif0", "tranif1", "tri", "tri0", "tri1", "triand", "trior", "trireg", "type", "typedef", "union", "unique", "unique0", "unsigned", "until", "until_with", "untyped", "use", "uwire", "var", "vectored", "virtual", "void", "wait", "wait_order", "wand", "weak", "weak0", "weak1", "while", "wildcard", "wire", "with", "within", "wor", "xnor", "xor"], builtin_gates: ["and", "nand", "nor", "or", "xor", "xnor", "buf", "not", "bufif0", "bufif1", "notif1", "notif0", "cmos", "nmos", "pmos", "rcmos", "rnmos", "rpmos", "tran", "tranif1", "tranif0", "rtran", "rtranif1", "rtranif0"], operators: ["=", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>+", "<<<=", ">>>=", "?", ":", "+", "-", "!", "~", "&", "~&", "|", "~|", "^", "~^", "^~", "+", "-", "*", "/", "%", "==", "!=", "===", "!==", "==?", "!=?", "&&", "||", "**", "<", "<=", ">", ">=", "&", "|", "^", ">>", "<<", ">>>", "<<<", "++", "--", "->", "<->", "inside", "dist", "::", "+:", "-:", "*>", "&&&", "|->", "|=>", "#=#"], symbols: /[=><!~?:&|+\-*\/\^%#]+/, escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/, identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/, systemcall: /[$][a-zA-Z0-9_]+/, timeunits: /s|ms|us|ns|ps|fs/, tokenizer: {root: [[/^(\s*)(@identifier)/, ["", {cases: {"@builtin_gates": {token: "keyword.$2", next: "@module_instance"}, "@keywords": {token: "keyword.$2"}, "@default": {token: "identifier", next: "@module_instance"}}}]], [/^\s*`include/, {token: "keyword.directive.include", next: "@include"}], [/^\s*`\s*\w+/, "keyword"], {include: "@identifier_or_keyword"}, {include: "@whitespace"}, [/\(\*.*\*\)/, "annotation"], [/@systemcall/, "variable.predefined"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], {include: "@numbers"}, [/[;,.]/, "delimiter"], {include: "@strings"}], identifier_or_keyword: [[/@identifier/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}]], numbers: [[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"], [/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"], [/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"], [/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"], [/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"], [/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"], [/1step/, "number"], [/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"], [/'[01xXzZ]+/, "number"]], module_instance: [{include: "@whitespace"}, [/(#?)(\()/, ["", {token: "@brackets", next: "@port_connection"}]], [/@identifier\s*[;={}\[\],]/, {token: "@rematch", next: "@pop"}], [/@symbols|[;={}\[\],]/, {token: "@rematch", next: "@pop"}], [/@identifier/, "type"], [/;/, "delimiter", "@pop"]], port_connection: [{include: "@identifier_or_keyword"}, {include: "@whitespace"}, [/@systemcall/, "variable.predefined"], {include: "@numbers"}, {include: "@strings"}, [/[,]/, "delimiter"], [/\(/, "@brackets", "@port_connection"], [/\)/, "@brackets", "@pop"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], strings: [[/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], include: [[/(\s*)(")([\w*\/*]*)(.\w*)(")/, ["", "string.include.identifier", "string.include.identifier", "string.include.identifier", {token: "string.include.identifier", next: "@pop"}]], [/(\s*)(<)([\w*\/*]*)(.\w*)(>)/, ["", "string.include.identifier", "string.include.identifier", "string.include.identifier", {token: "string.include.identifier", next: "@pop"}]]]}}; + var i = {comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["begin", "end"], ["case", "endcase"], ["casex", "endcase"], ["casez", "endcase"], ["checker", "endchecker"], ["class", "endclass"], ["clocking", "endclocking"], ["config", "endconfig"], ["function", "endfunction"], ["generate", "endgenerate"], ["group", "endgroup"], ["interface", "endinterface"], ["module", "endmodule"], ["package", "endpackage"], ["primitive", "endprimitive"], ["program", "endprogram"], ["property", "endproperty"], ["specify", "endspecify"], ["sequence", "endsequence"], ["table", "endtable"], ["task", "endtask"]], autoClosingPairs: [{open: "[", close: "]"}, {open: "{", close: "}"}, {open: "(", close: ")"}, {open: "'", close: "'", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string"]}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {offSide: false, markers: {start: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"), end: new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}}, r = {defaultToken: "", tokenPostfix: ".sv", brackets: [{token: "delimiter.curly", open: "{", close: "}"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.square", open: "[", close: "]"}, {token: "delimiter.angle", open: "<", close: ">"}], keywords: ["accept_on", "alias", "always", "always_comb", "always_ff", "always_latch", "and", "assert", "assign", "assume", "automatic", "before", "begin", "bind", "bins", "binsof", "bit", "break", "buf", "bufif0", "bufif1", "byte", "case", "casex", "casez", "cell", "chandle", "checker", "class", "clocking", "cmos", "config", "const", "constraint", "context", "continue", "cover", "covergroup", "coverpoint", "cross", "deassign", "default", "defparam", "design", "disable", "dist", "do", "edge", "else", "end", "endcase", "endchecker", "endclass", "endclocking", "endconfig", "endfunction", "endgenerate", "endgroup", "endinterface", "endmodule", "endpackage", "endprimitive", "endprogram", "endproperty", "endspecify", "endsequence", "endtable", "endtask", "enum", "event", "eventually", "expect", "export", "extends", "extern", "final", "first_match", "for", "force", "foreach", "forever", "fork", "forkjoin", "function", "generate", "genvar", "global", "highz0", "highz1", "if", "iff", "ifnone", "ignore_bins", "illegal_bins", "implements", "implies", "import", "incdir", "include", "initial", "inout", "input", "inside", "instance", "int", "integer", "interconnect", "interface", "intersect", "join", "join_any", "join_none", "large", "let", "liblist", "library", "local", "localparam", "logic", "longint", "macromodule", "matches", "medium", "modport", "module", "nand", "negedge", "nettype", "new", "nexttime", "nmos", "nor", "noshowcancelled", "not", "notif0", "notif1", "null", "or", "output", "package", "packed", "parameter", "pmos", "posedge", "primitive", "priority", "program", "property", "protected", "pull0", "pull1", "pulldown", "pullup", "pulsestyle_ondetect", "pulsestyle_onevent", "pure", "rand", "randc", "randcase", "randsequence", "rcmos", "real", "realtime", "ref", "reg", "reject_on", "release", "repeat", "restrict", "return", "rnmos", "rpmos", "rtran", "rtranif0", "rtranif1", "s_always", "s_eventually", "s_nexttime", "s_until", "s_until_with", "scalared", "sequence", "shortint", "shortreal", "showcancelled", "signed", "small", "soft", "solve", "specify", "specparam", "static", "string", "strong", "strong0", "strong1", "struct", "super", "supply0", "supply1", "sync_accept_on", "sync_reject_on", "table", "tagged", "task", "this", "throughout", "time", "timeprecision", "timeunit", "tran", "tranif0", "tranif1", "tri", "tri0", "tri1", "triand", "trior", "trireg", "type", "typedef", "union", "unique", "unique0", "unsigned", "until", "until_with", "untyped", "use", "uwire", "var", "vectored", "virtual", "void", "wait", "wait_order", "wand", "weak", "weak0", "weak1", "while", "wildcard", "wire", "with", "within", "wor", "xnor", "xor"], builtin_gates: ["and", "nand", "nor", "or", "xor", "xnor", "buf", "not", "bufif0", "bufif1", "notif1", "notif0", "cmos", "nmos", "pmos", "rcmos", "rnmos", "rpmos", "tran", "tranif1", "tranif0", "rtran", "rtranif1", "rtranif0"], operators: ["=", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>+", "<<<=", ">>>=", "?", ":", "+", "-", "!", "~", "&", "~&", "|", "~|", "^", "~^", "^~", "+", "-", "*", "/", "%", "==", "!=", "===", "!==", "==?", "!=?", "&&", "||", "**", "<", "<=", ">", ">=", "&", "|", "^", ">>", "<<", ">>>", "<<<", "++", "--", "->", "<->", "inside", "dist", "::", "+:", "-:", "*>", "&&&", "|->", "|=>", "#=#"], symbols: /[=><!~?:&|+\-*\/\^%#]+/, escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/, identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/, systemcall: /[$][a-zA-Z0-9_]+/, timeunits: /s|ms|us|ns|ps|fs/, tokenizer: {root: [[/^(\s*)(@identifier)/, ["", {cases: {"@builtin_gates": {token: "keyword.$2", next: "@module_instance"}, "@keywords": {token: "keyword.$2"}, "@default": {token: "identifier", next: "@module_instance"}}}]], [/^\s*`include/, {token: "keyword.directive.include", next: "@include"}], [/^\s*`\s*\w+/, "keyword"], {include: "@identifier_or_keyword"}, {include: "@whitespace"}, [/\(\*.*\*\)/, "annotation"], [/@systemcall/, "variable.predefined"], [/[{}()\[\]]/, "@brackets"], [/[<>](?!@symbols)/, "@brackets"], [/@symbols/, {cases: {"@operators": "delimiter", "@default": ""}}], {include: "@numbers"}, [/[;,.]/, "delimiter"], {include: "@strings"}], identifier_or_keyword: [[/@identifier/, {cases: {"@keywords": {token: "keyword.$0"}, "@default": "identifier"}}]], numbers: [[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"], [/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"], [/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"], [/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"], [/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"], [/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"], [/1step/, "number"], [/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"], [/'[01xXzZ]+/, "number"]], module_instance: [{include: "@whitespace"}, [/(#?)(\()/, ["", {token: "@brackets", next: "@port_connection"}]], [/@identifier\s*[;={}\[\],]/, {token: "@rematch", next: "@pop"}], [/@symbols|[;={}\[\],]/, {token: "@rematch", next: "@pop"}], [/@identifier/, "type"], [/;/, "delimiter", "@pop"]], port_connection: [{include: "@identifier_or_keyword"}, {include: "@whitespace"}, [/@systemcall/, "variable.predefined"], {include: "@numbers"}, {include: "@strings"}, [/[,]/, "delimiter"], [/\(/, "@brackets", "@port_connection"], [/\)/, "@brackets", "@pop"]], whitespace: [[/[ \t\r\n]+/, ""], [/\/\*/, "comment", "@comment"], [/\/\/.*$/, "comment"]], comment: [[/[^\/*]+/, "comment"], [/\*\//, "comment", "@pop"], [/[\/*]/, "comment"]], strings: [[/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, "string", "@string"]], string: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], include: [[/(\s*)(")([\w*\/*]*)(.\w*)(")/, ["", "string.include.identifier", "string.include.identifier", "string.include.identifier", {token: "string.include.identifier", next: "@pop"}]], [/(\s*)(<)([\w*\/*]*)(.\w*)(>)/, ["", "string.include.identifier", "string.include.identifier", "string.include.identifier", {token: "string.include.identifier", next: "@pop"}]]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, o = {tokenPostfix: ".tcl", specialFunctions: ["set", "unset", "rename", "variable", "proc", "coroutine", "foreach", "incr", "append", "lappend", "linsert", "lreplace"], mainFunctions: ["if", "then", "elseif", "else", "case", "switch", "while", "for", "break", "continue", "return", "package", "namespace", "catch", "exit", "eval", "expr", "uplevel", "upvar"], builtinFunctions: ["file", "info", "concat", "join", "lindex", "list", "llength", "lrange", "lsearch", "lsort", "split", "array", "parray", "binary", "format", "regexp", "regsub", "scan", "string", "subst", "dict", "cd", "clock", "exec", "glob", "pid", "pwd", "close", "eof", "fblocked", "fconfigure", "fcopy", "fileevent", "flush", "gets", "open", "puts", "read", "seek", "socket", "tell", "interp", "after", "auto_execok", "auto_load", "auto_mkindex", "auto_reset", "bgerror", "error", "global", "history", "load", "source", "time", "trace", "unknown", "unset", "update", "vwait", "winfo", "wm", "bind", "event", "pack", "place", "grid", "font", "bell", "clipboard", "destroy", "focus", "grab", "lower", "option", "raise", "selection", "send", "tk", "tkwait", "tk_bisque", "tk_focusNext", "tk_focusPrev", "tk_focusFollowsMouse", "tk_popup", "tk_setPalette"], symbols: /[=><!~?:&|+\-*\/\^%]+/, brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@specialFunctions": {token: "keyword.flow", next: "@specialFunc"}, "@mainFunctions": "keyword", "@builtinFunctions": "variable", "@default": "operator.scss"}}], [/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/@symbols/, "operator"], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/\.(?!\d|\.)[\w\-]*/, "operator.sql"], [/\d+(\.\d+)?/, "number"], [/\d+/, "number"], [/;/, "delimiter"], [/"/, {token: "string.quote", bracket: "@open", next: "@dstring"}], [/'/, {token: "string.quote", bracket: "@open", next: "@sstring"}]], dstring: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/[^\\$\[\]"]+/, "string"], [/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], sstring: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/[^\\$\[\]']+/, "string"], [/@escapes/, "string.escape"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/#.*\\$/, {token: "comment", next: "@newlineComment"}], [/#.*(?!\\)$/, "comment"]], newlineComment: [[/.*\\$/, "comment"], [/.*(?!\\)$/, {token: "comment", next: "@pop"}]], nestedVariable: [[/[^\{\}\$]+/, "type.identifier"], [/\}/, {token: "identifier", next: "@pop"}]], nestedCall: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\]/, {token: "@brackets", next: "@pop"}], {include: "root"}], specialFunc: [[/"/, {token: "string", next: "@dstring"}], [/'/, {token: "string", next: "@sstring"}], [/\S+/, {token: "type", next: "@pop"}]]}}; + var i = {brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}]}, r = {tokenPostfix: ".tcl", specialFunctions: ["set", "unset", "rename", "variable", "proc", "coroutine", "foreach", "incr", "append", "lappend", "linsert", "lreplace"], mainFunctions: ["if", "then", "elseif", "else", "case", "switch", "while", "for", "break", "continue", "return", "package", "namespace", "catch", "exit", "eval", "expr", "uplevel", "upvar"], builtinFunctions: ["file", "info", "concat", "join", "lindex", "list", "llength", "lrange", "lsearch", "lsort", "split", "array", "parray", "binary", "format", "regexp", "regsub", "scan", "string", "subst", "dict", "cd", "clock", "exec", "glob", "pid", "pwd", "close", "eof", "fblocked", "fconfigure", "fcopy", "fileevent", "flush", "gets", "open", "puts", "read", "seek", "socket", "tell", "interp", "after", "auto_execok", "auto_load", "auto_mkindex", "auto_reset", "bgerror", "error", "global", "history", "load", "source", "time", "trace", "unknown", "unset", "update", "vwait", "winfo", "wm", "bind", "event", "pack", "place", "grid", "font", "bell", "clipboard", "destroy", "focus", "grab", "lower", "option", "raise", "selection", "send", "tk", "tkwait", "tk_bisque", "tk_focusNext", "tk_focusPrev", "tk_focusFollowsMouse", "tk_popup", "tk_setPalette"], symbols: /[=><!~?:&|+\-*\/\^%]+/, brackets: [{open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}], escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/, tokenizer: {root: [[/[a-zA-Z_]\w*/, {cases: {"@specialFunctions": {token: "keyword.flow", next: "@specialFunc"}, "@mainFunctions": "keyword", "@builtinFunctions": "variable", "@default": "operator.scss"}}], [/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"], {include: "@whitespace"}, [/[{}()\[\]]/, "@brackets"], [/@symbols/, "operator"], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/\.(?!\d|\.)[\w\-]*/, "operator.sql"], [/\d+(\.\d+)?/, "number"], [/\d+/, "number"], [/;/, "delimiter"], [/"/, {token: "string.quote", bracket: "@open", next: "@dstring"}], [/'/, {token: "string.quote", bracket: "@open", next: "@sstring"}]], dstring: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/[^\\$\[\]"]+/, "string"], [/@escapes/, "string.escape"], [/"/, {token: "string.quote", bracket: "@close", next: "@pop"}]], sstring: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\$+(?:\:\:)?\{/, {token: "identifier", next: "@nestedVariable"}], [/@variables/, "type.identifier"], [/[^\\$\[\]']+/, "string"], [/@escapes/, "string.escape"], [/'/, {token: "string.quote", bracket: "@close", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, "white"], [/#.*\\$/, {token: "comment", next: "@newlineComment"}], [/#.*(?!\\)$/, "comment"]], newlineComment: [[/.*\\$/, "comment"], [/.*(?!\\)$/, {token: "comment", next: "@pop"}]], nestedVariable: [[/[^\{\}\$]+/, "type.identifier"], [/\}/, {token: "identifier", next: "@pop"}]], nestedCall: [[/\[/, {token: "@brackets", next: "@nestedCall"}], [/\]/, {token: "@brackets", next: "@pop"}], {include: "root"}], specialFunc: [[/"/, {token: "string", next: "@dstring"}], [/'/, {token: "string", next: "@sstring"}], [/\S+/, {token: "type", next: "@pop"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["{#", "#}"]}, brackets: [["{#", "#}"], ["{%", "%}"], ["{{", "}}"], ["(", ")"], ["[", "]"], ["<!--", "-->"], ["<", ">"]], autoClosingPairs: [{open: "{# ", close: " #}"}, {open: "{% ", close: " %}"}, {open: "{{ ", close: " }}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}]}, o = {defaultToken: "", tokenPostfix: "", ignoreCase: true, keywords: ["apply", "autoescape", "block", "deprecated", "do", "embed", "extends", "flush", "for", "from", "if", "import", "include", "macro", "sandbox", "set", "use", "verbatim", "with", "endapply", "endautoescape", "endblock", "endembed", "endfor", "endif", "endmacro", "endsandbox", "endset", "endwith", "true", "false"], tokenizer: {root: [[/\s+/], [/{#/, "comment.twig", "@commentState"], [/{%[-~]?/, "delimiter.twig", "@blockState"], [/{{[-~]?/, "delimiter.twig", "@variableState"], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[^<]+/]], commentState: [[/#}/, "comment.twig", "@pop"], [/./, "comment.twig"]], blockState: [[/[-~]?%}/, "delimiter.twig", "@pop"], [/\s+/], [/(verbatim)(\s*)([-~]?%})/, ["keyword.twig", "", {token: "delimiter.twig", next: "@rawDataState"}]], {include: "expression"}], rawDataState: [[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/, ["delimiter.twig", "", "keyword.twig", "", {token: "delimiter.twig", next: "@popall"}]], [/./, "string.twig"]], variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], {include: "expression"}], stringState: [[/"/, "string.twig", "@pop"], [/#{\s*/, "string.twig", "@interpolationState"], [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]], interpolationState: [[/}/, "string.twig", "@pop"], {include: "expression"}], expression: [[/\s+/], [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"], [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]], [/==|!=|<|>|>=|<=/, "operators.twig"], [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]], [/(in)(\s+)/, ["operators.twig", ""]], [/(is)(\s+)/, ["operators.twig", ""]], [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"], [/[^\W\d][\w]*/, {cases: {"@keywords": "keyword.twig", "@default": "variable.twig"}}], [/\d+(\.\d+)?/, "number.twig"], [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"], [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"], [/"/, "string.twig", "@stringState"], [/=>/, "operators.twig"], [/=/, "operators.twig"]], doctype: [[/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/]], script: [[/type/, "attribute.name.html", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/=/, "delimiter.html", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value.html", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value.html", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]], style: [[/type/, "attribute.name.html", "@styleAfterType"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/=/, "delimiter.html", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value.html", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value.html", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]]}}; + var i = {wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g, comments: {blockComment: ["{#", "#}"]}, brackets: [["{#", "#}"], ["{%", "%}"], ["{{", "}}"], ["(", ")"], ["[", "]"], ["<!--", "-->"], ["<", ">"]], autoClosingPairs: [{open: "{# ", close: " #}"}, {open: "{% ", close: " %}"}, {open: "{{ ", close: " }}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: '"', close: '"'}, {open: "'", close: "'"}, {open: "<", close: ">"}]}, r = {defaultToken: "", tokenPostfix: "", ignoreCase: true, keywords: ["apply", "autoescape", "block", "deprecated", "do", "embed", "extends", "flush", "for", "from", "if", "import", "include", "macro", "sandbox", "set", "use", "verbatim", "with", "endapply", "endautoescape", "endblock", "endembed", "endfor", "endif", "endmacro", "endsandbox", "endset", "endwith", "true", "false"], tokenizer: {root: [[/\s+/], [/{#/, "comment.twig", "@commentState"], [/{%[-~]?/, "delimiter.twig", "@blockState"], [/{{[-~]?/, "delimiter.twig", "@variableState"], [/<!DOCTYPE/, "metatag.html", "@doctype"], [/<!--/, "comment.html", "@comment"], [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]], [/(<)(script)/, ["delimiter.html", {token: "tag.html", next: "@script"}]], [/(<)(style)/, ["delimiter.html", {token: "tag.html", next: "@style"}]], [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {token: "tag.html", next: "@otherTag"}]], [/</, "delimiter.html"], [/[^<]+/]], commentState: [[/#}/, "comment.twig", "@pop"], [/./, "comment.twig"]], blockState: [[/[-~]?%}/, "delimiter.twig", "@pop"], [/\s+/], [/(verbatim)(\s*)([-~]?%})/, ["keyword.twig", "", {token: "delimiter.twig", next: "@rawDataState"}]], {include: "expression"}], rawDataState: [[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/, ["delimiter.twig", "", "keyword.twig", "", {token: "delimiter.twig", next: "@popall"}]], [/./, "string.twig"]], variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], {include: "expression"}], stringState: [[/"/, "string.twig", "@pop"], [/#{\s*/, "string.twig", "@interpolationState"], [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]], interpolationState: [[/}/, "string.twig", "@pop"], {include: "expression"}], expression: [[/\s+/], [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"], [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]], [/==|!=|<|>|>=|<=/, "operators.twig"], [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]], [/(in)(\s+)/, ["operators.twig", ""]], [/(is)(\s+)/, ["operators.twig", ""]], [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"], [/[^\W\d][\w]*/, {cases: {"@keywords": "keyword.twig", "@default": "variable.twig"}}], [/\d+(\.\d+)?/, "number.twig"], [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"], [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"], [/"/, "string.twig", "@stringState"], [/=>/, "operators.twig"], [/=/, "operators.twig"]], doctype: [[/[^>]+/, "metatag.content.html"], [/>/, "metatag.html", "@pop"]], comment: [[/-->/, "comment.html", "@pop"], [/[^-]+/, "comment.content.html"], [/./, "comment.content.html"]], otherTag: [[/\/?>/, "delimiter.html", "@pop"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/]], script: [[/type/, "attribute.name.html", "@scriptAfterType"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/(<\/)(script\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], scriptAfterType: [[/=/, "delimiter.html", "@scriptAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value.html", switchTo: "@scriptWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value.html", switchTo: "@scriptWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@scriptEmbedded", nextEmbedded: "text/javascript"}], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptWithCustomType: [[/>/, {token: "delimiter.html", next: "@scriptEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/], [/<\/script\s*>/, {token: "@rematch", next: "@pop"}]], scriptEmbedded: [[/<\/script/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]], style: [[/type/, "attribute.name.html", "@styleAfterType"], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/(<\/)(style\s*)(>)/, ["delimiter.html", "tag.html", {token: "delimiter.html", next: "@pop"}]]], styleAfterType: [[/=/, "delimiter.html", "@styleAfterTypeEquals"], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleAfterTypeEquals: [[/"([^"]*)"/, {token: "attribute.value.html", switchTo: "@styleWithCustomType.$1"}], [/'([^']*)'/, {token: "attribute.value.html", switchTo: "@styleWithCustomType.$1"}], [/>/, {token: "delimiter.html", next: "@styleEmbedded", nextEmbedded: "text/css"}], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleWithCustomType: [[/>/, {token: "delimiter.html", next: "@styleEmbedded.$S2", nextEmbedded: "$S2"}], [/"([^"]*)"/, "attribute.value.html"], [/'([^']*)'/, "attribute.value.html"], [/[\w\-]+/, "attribute.name.html"], [/=/, "delimiter.html"], [/[ \t\r\n]+/], [/<\/style\s*>/, {token: "@rematch", next: "@pop"}]], styleEmbedded: [[/<\/style/, {token: "@rematch", next: "@pop", nextEmbedded: "@pop"}], [/[^<]+/, ""]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "'", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"], ["addhandler", "end addhandler"], ["class", "end class"], ["enum", "end enum"], ["event", "end event"], ["function", "end function"], ["get", "end get"], ["if", "end if"], ["interface", "end interface"], ["module", "end module"], ["namespace", "end namespace"], ["operator", "end operator"], ["property", "end property"], ["raiseevent", "end raiseevent"], ["removehandler", "end removehandler"], ["select", "end select"], ["set", "end set"], ["structure", "end structure"], ["sub", "end sub"], ["synclock", "end synclock"], ["try", "end try"], ["while", "end while"], ["with", "end with"], ["using", "end using"], ["do", "loop"], ["for", "next"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "<", close: ">", notIn: ["string", "comment"]}], folding: {markers: {start: new RegExp("^\\s*#Region\\b"), end: new RegExp("^\\s*#End Region\\b")}}}, o = {defaultToken: "", tokenPostfix: ".vb", ignoreCase: true, brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.angle", open: "<", close: ">"}, {token: "keyword.tag-addhandler", open: "addhandler", close: "end addhandler"}, {token: "keyword.tag-class", open: "class", close: "end class"}, {token: "keyword.tag-enum", open: "enum", close: "end enum"}, {token: "keyword.tag-event", open: "event", close: "end event"}, {token: "keyword.tag-function", open: "function", close: "end function"}, {token: "keyword.tag-get", open: "get", close: "end get"}, {token: "keyword.tag-if", open: "if", close: "end if"}, {token: "keyword.tag-interface", open: "interface", close: "end interface"}, {token: "keyword.tag-module", open: "module", close: "end module"}, {token: "keyword.tag-namespace", open: "namespace", close: "end namespace"}, {token: "keyword.tag-operator", open: "operator", close: "end operator"}, {token: "keyword.tag-property", open: "property", close: "end property"}, {token: "keyword.tag-raiseevent", open: "raiseevent", close: "end raiseevent"}, {token: "keyword.tag-removehandler", open: "removehandler", close: "end removehandler"}, {token: "keyword.tag-select", open: "select", close: "end select"}, {token: "keyword.tag-set", open: "set", close: "end set"}, {token: "keyword.tag-structure", open: "structure", close: "end structure"}, {token: "keyword.tag-sub", open: "sub", close: "end sub"}, {token: "keyword.tag-synclock", open: "synclock", close: "end synclock"}, {token: "keyword.tag-try", open: "try", close: "end try"}, {token: "keyword.tag-while", open: "while", close: "end while"}, {token: "keyword.tag-with", open: "with", close: "end with"}, {token: "keyword.tag-using", open: "using", close: "end using"}, {token: "keyword.tag-do", open: "do", close: "loop"}, {token: "keyword.tag-for", open: "for", close: "next"}], keywords: ["AddHandler", "AddressOf", "Alias", "And", "AndAlso", "As", "Async", "Boolean", "ByRef", "Byte", "ByVal", "Call", "Case", "Catch", "CBool", "CByte", "CChar", "CDate", "CDbl", "CDec", "Char", "CInt", "Class", "CLng", "CObj", "Const", "Continue", "CSByte", "CShort", "CSng", "CStr", "CType", "CUInt", "CULng", "CUShort", "Date", "Decimal", "Declare", "Default", "Delegate", "Dim", "DirectCast", "Do", "Double", "Each", "Else", "ElseIf", "End", "EndIf", "Enum", "Erase", "Error", "Event", "Exit", "False", "Finally", "For", "Friend", "Function", "Get", "GetType", "GetXMLNamespace", "Global", "GoSub", "GoTo", "Handles", "If", "Implements", "Imports", "In", "Inherits", "Integer", "Interface", "Is", "IsNot", "Let", "Lib", "Like", "Long", "Loop", "Me", "Mod", "Module", "MustInherit", "MustOverride", "MyBase", "MyClass", "NameOf", "Namespace", "Narrowing", "New", "Next", "Not", "Nothing", "NotInheritable", "NotOverridable", "Object", "Of", "On", "Operator", "Option", "Optional", "Or", "OrElse", "Out", "Overloads", "Overridable", "Overrides", "ParamArray", "Partial", "Private", "Property", "Protected", "Public", "RaiseEvent", "ReadOnly", "ReDim", "RemoveHandler", "Resume", "Return", "SByte", "Select", "Set", "Shadows", "Shared", "Short", "Single", "Static", "Step", "Stop", "String", "Structure", "Sub", "SyncLock", "Then", "Throw", "To", "True", "Try", "TryCast", "TypeOf", "UInteger", "ULong", "UShort", "Using", "Variant", "Wend", "When", "While", "Widening", "With", "WithEvents", "WriteOnly", "Xor"], tagwords: ["If", "Sub", "Select", "Try", "Class", "Enum", "Function", "Get", "Interface", "Module", "Namespace", "Operator", "Set", "Structure", "Using", "While", "With", "Do", "Loop", "For", "Next", "Property", "Continue", "AddHandler", "RemoveHandler", "Event", "RaiseEvent", "SyncLock"], symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/, integersuffix: /U?[DI%L&S@]?/, floatsuffix: /[R#F!]?/, tokenizer: {root: [{include: "@whitespace"}, [/next(?!\w)/, {token: "keyword.tag-for"}], [/loop(?!\w)/, {token: "keyword.tag-do"}], [/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/, {token: "keyword.tag-$1"}], [/[a-zA-Z_]\w*/, {cases: {"@tagwords": {token: "keyword.tag-$0"}, "@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/^\s*#\w+/, "keyword"], [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"], [/&H[0-9a-f]+(@integersuffix)/, "number.hex"], [/&0[0-7]+(@integersuffix)/, "number.octal"], [/\d+(@integersuffix)/, "number"], [/#.*#/, "number"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/["\u201c\u201d]/, {token: "string.quote", next: "@string"}]], whitespace: [[/[ \t\r\n]+/, ""], [/(\'|REM(?!\w)).*$/, "comment"]], string: [[/[^"\u201c\u201d]+/, "string"], [/["\u201c\u201d]{2}/, "string.escape"], [/["\u201c\u201d]C?/, {token: "string.quote", next: "@pop"}]]}}; + var i = {comments: {lineComment: "'", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"], ["(", ")"], ["<", ">"], ["addhandler", "end addhandler"], ["class", "end class"], ["enum", "end enum"], ["event", "end event"], ["function", "end function"], ["get", "end get"], ["if", "end if"], ["interface", "end interface"], ["module", "end module"], ["namespace", "end namespace"], ["operator", "end operator"], ["property", "end property"], ["raiseevent", "end raiseevent"], ["removehandler", "end removehandler"], ["select", "end select"], ["set", "end set"], ["structure", "end structure"], ["sub", "end sub"], ["synclock", "end synclock"], ["try", "end try"], ["while", "end while"], ["with", "end with"], ["using", "end using"], ["do", "loop"], ["for", "next"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string", "comment"]}, {open: "[", close: "]", notIn: ["string", "comment"]}, {open: "(", close: ")", notIn: ["string", "comment"]}, {open: '"', close: '"', notIn: ["string", "comment"]}, {open: "<", close: ">", notIn: ["string", "comment"]}], folding: {markers: {start: new RegExp("^\\s*#Region\\b"), end: new RegExp("^\\s*#End Region\\b")}}}, r = {defaultToken: "", tokenPostfix: ".vb", ignoreCase: true, brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.array", open: "[", close: "]"}, {token: "delimiter.parenthesis", open: "(", close: ")"}, {token: "delimiter.angle", open: "<", close: ">"}, {token: "keyword.tag-addhandler", open: "addhandler", close: "end addhandler"}, {token: "keyword.tag-class", open: "class", close: "end class"}, {token: "keyword.tag-enum", open: "enum", close: "end enum"}, {token: "keyword.tag-event", open: "event", close: "end event"}, {token: "keyword.tag-function", open: "function", close: "end function"}, {token: "keyword.tag-get", open: "get", close: "end get"}, {token: "keyword.tag-if", open: "if", close: "end if"}, {token: "keyword.tag-interface", open: "interface", close: "end interface"}, {token: "keyword.tag-module", open: "module", close: "end module"}, {token: "keyword.tag-namespace", open: "namespace", close: "end namespace"}, {token: "keyword.tag-operator", open: "operator", close: "end operator"}, {token: "keyword.tag-property", open: "property", close: "end property"}, {token: "keyword.tag-raiseevent", open: "raiseevent", close: "end raiseevent"}, {token: "keyword.tag-removehandler", open: "removehandler", close: "end removehandler"}, {token: "keyword.tag-select", open: "select", close: "end select"}, {token: "keyword.tag-set", open: "set", close: "end set"}, {token: "keyword.tag-structure", open: "structure", close: "end structure"}, {token: "keyword.tag-sub", open: "sub", close: "end sub"}, {token: "keyword.tag-synclock", open: "synclock", close: "end synclock"}, {token: "keyword.tag-try", open: "try", close: "end try"}, {token: "keyword.tag-while", open: "while", close: "end while"}, {token: "keyword.tag-with", open: "with", close: "end with"}, {token: "keyword.tag-using", open: "using", close: "end using"}, {token: "keyword.tag-do", open: "do", close: "loop"}, {token: "keyword.tag-for", open: "for", close: "next"}], keywords: ["AddHandler", "AddressOf", "Alias", "And", "AndAlso", "As", "Async", "Boolean", "ByRef", "Byte", "ByVal", "Call", "Case", "Catch", "CBool", "CByte", "CChar", "CDate", "CDbl", "CDec", "Char", "CInt", "Class", "CLng", "CObj", "Const", "Continue", "CSByte", "CShort", "CSng", "CStr", "CType", "CUInt", "CULng", "CUShort", "Date", "Decimal", "Declare", "Default", "Delegate", "Dim", "DirectCast", "Do", "Double", "Each", "Else", "ElseIf", "End", "EndIf", "Enum", "Erase", "Error", "Event", "Exit", "False", "Finally", "For", "Friend", "Function", "Get", "GetType", "GetXMLNamespace", "Global", "GoSub", "GoTo", "Handles", "If", "Implements", "Imports", "In", "Inherits", "Integer", "Interface", "Is", "IsNot", "Let", "Lib", "Like", "Long", "Loop", "Me", "Mod", "Module", "MustInherit", "MustOverride", "MyBase", "MyClass", "NameOf", "Namespace", "Narrowing", "New", "Next", "Not", "Nothing", "NotInheritable", "NotOverridable", "Object", "Of", "On", "Operator", "Option", "Optional", "Or", "OrElse", "Out", "Overloads", "Overridable", "Overrides", "ParamArray", "Partial", "Private", "Property", "Protected", "Public", "RaiseEvent", "ReadOnly", "ReDim", "RemoveHandler", "Resume", "Return", "SByte", "Select", "Set", "Shadows", "Shared", "Short", "Single", "Static", "Step", "Stop", "String", "Structure", "Sub", "SyncLock", "Then", "Throw", "To", "True", "Try", "TryCast", "TypeOf", "UInteger", "ULong", "UShort", "Using", "Variant", "Wend", "When", "While", "Widening", "With", "WithEvents", "WriteOnly", "Xor"], tagwords: ["If", "Sub", "Select", "Try", "Class", "Enum", "Function", "Get", "Interface", "Module", "Namespace", "Operator", "Set", "Structure", "Using", "While", "With", "Do", "Loop", "For", "Next", "Property", "Continue", "AddHandler", "RemoveHandler", "Event", "RaiseEvent", "SyncLock"], symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/, integersuffix: /U?[DI%L&S@]?/, floatsuffix: /[R#F!]?/, tokenizer: {root: [{include: "@whitespace"}, [/next(?!\w)/, {token: "keyword.tag-for"}], [/loop(?!\w)/, {token: "keyword.tag-do"}], [/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/, {token: "keyword.tag-$1"}], [/[a-zA-Z_]\w*/, {cases: {"@tagwords": {token: "keyword.tag-$0"}, "@keywords": {token: "keyword.$0"}, "@default": "identifier"}}], [/^\s*#\w+/, "keyword"], [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"], [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"], [/&H[0-9a-f]+(@integersuffix)/, "number.hex"], [/&0[0-7]+(@integersuffix)/, "number.octal"], [/\d+(@integersuffix)/, "number"], [/#.*#/, "number"], [/[{}()\[\]]/, "@brackets"], [/@symbols/, "delimiter"], [/["\u201c\u201d]/, {token: "string.quote", next: "@string"}]], whitespace: [[/[ \t\r\n]+/, ""], [/(\'|REM(?!\w)).*$/, "comment"]], string: [[/[^"\u201c\u201d]+/, "string"], [/["\u201c\u201d]{2}/, "string.escape"], [/["\u201c\u201d]C?/, {token: "string.quote", next: "@pop"}]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {blockComment: ["<!--", "-->"]}, brackets: [["<", ">"]], autoClosingPairs: [{open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}], surroundingPairs: [{open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}]}, o = {defaultToken: "", tokenPostfix: ".xml", ignoreCase: true, qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/, tokenizer: {root: [[/[^<&]+/, ""], {include: "@whitespace"}, [/(<)(@qualifiedName)/, [{token: "delimiter"}, {token: "tag", next: "@tag"}]], [/(<\/)(@qualifiedName)(\s*)(>)/, [{token: "delimiter"}, {token: "tag"}, "", {token: "delimiter"}]], [/(<\?)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/(<\!)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/<\!\[CDATA\[/, {token: "delimiter.cdata", next: "@cdata"}], [/&\w+;/, "string.escape"]], cdata: [[/[^\]]+/, ""], [/\]\]>/, {token: "delimiter.cdata", next: "@pop"}], [/\]/, ""]], tag: [[/[ \t\r\n]+/, ""], [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]], [/@qualifiedName/, "attribute.name"], [/\?>/, {token: "delimiter", next: "@pop"}], [/(\/)(>)/, [{token: "tag"}, {token: "delimiter", next: "@pop"}]], [/>/, {token: "delimiter", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/<!--/, {token: "comment", next: "@comment"}]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, {token: "comment", next: "@pop"}], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]]}}; + var i = {comments: {blockComment: ["<!--", "-->"]}, brackets: [["<", ">"]], autoClosingPairs: [{open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}], surroundingPairs: [{open: "<", close: ">"}, {open: "'", close: "'"}, {open: '"', close: '"'}]}, r = {defaultToken: "", tokenPostfix: ".xml", ignoreCase: true, qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/, tokenizer: {root: [[/[^<&]+/, ""], {include: "@whitespace"}, [/(<)(@qualifiedName)/, [{token: "delimiter"}, {token: "tag", next: "@tag"}]], [/(<\/)(@qualifiedName)(\s*)(>)/, [{token: "delimiter"}, {token: "tag"}, "", {token: "delimiter"}]], [/(<\?)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/(<\!)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/<\!\[CDATA\[/, {token: "delimiter.cdata", next: "@cdata"}], [/&\w+;/, "string.escape"]], cdata: [[/[^\]]+/, ""], [/\]\]>/, {token: "delimiter.cdata", next: "@pop"}], [/\]/, ""]], tag: [[/[ \t\r\n]+/, ""], [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]], [/@qualifiedName/, "attribute.name"], [/\?>/, {token: "delimiter", next: "@pop"}], [/(\/)(>)/, [{token: "tag"}, {token: "delimiter", next: "@pop"}]], [/>/, {token: "delimiter", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/<!--/, {token: "comment", next: "@comment"}]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, {token: "comment", next: "@pop"}], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "conf", function() { return i; }), n.d(t, "language", function() { - return o; + return r; }); - var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {offSide: true}}, o = {tokenPostfix: ".yaml", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"], numberInteger: /(?:0|[+-]?[0-9]+)/, numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/, numberOctal: /0o[0-7]+/, numberHex: /0x[0-9a-fA-F]+/, numberInfinity: /[+-]?\.(?:inf|Inf|INF)/, numberNaN: /\.(?:nan|Nan|NAN)/, numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/, escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, [/%[^ ]+.*$/, "meta.directive"], [/---/, "operators.directivesEnd"], [/\.{3}/, "operators.documentEnd"], [/[-?:](?= )/, "operators"], {include: "@anchor"}, {include: "@tagHandle"}, {include: "@flowCollections"}, {include: "@blockStyle"}, [/@numberInteger(?![ \t]*\S+)/, "number"], [/@numberFloat(?![ \t]*\S+)/, "number.float"], [/@numberOctal(?![ \t]*\S+)/, "number.octal"], [/@numberHex(?![ \t]*\S+)/, "number.hex"], [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"], [/@numberNaN(?![ \t]*\S+)/, "number.nan"], [/@numberDate(?![ \t]*\S+)/, "number.date"], [/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]], {include: "@flowScalars"}, [/.+$/, {cases: {"@keywords": "keyword", "@default": "string"}}]], object: [{include: "@whitespace"}, {include: "@comment"}, [/\}/, "@brackets", "@pop"], [/,/, "delimiter.comma"], [/:(?= )/, "operators"], [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"], {include: "@flowCollections"}, {include: "@flowScalars"}, {include: "@tagHandle"}, {include: "@anchor"}, {include: "@flowNumber"}, [/[^\},]+/, {cases: {"@keywords": "keyword", "@default": "string"}}]], array: [{include: "@whitespace"}, {include: "@comment"}, [/\]/, "@brackets", "@pop"], [/,/, "delimiter.comma"], {include: "@flowCollections"}, {include: "@flowScalars"}, {include: "@tagHandle"}, {include: "@anchor"}, {include: "@flowNumber"}, [/[^\],]+/, {cases: {"@keywords": "keyword", "@default": "string"}}]], multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]], multiStringContinued: [[/^( *).+$/, {cases: {"$1==$S2": "string", "@default": {token: "@rematch", next: "@popall"}}}]], whitespace: [[/[ \t\r\n]+/, "white"]], comment: [[/#.*$/, "comment"]], flowCollections: [[/\[/, "@brackets", "@array"], [/\{/, "@brackets", "@object"]], flowScalars: [[/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'[^']*'/, "string"], [/"/, "string", "@doubleQuotedString"]], doubleQuotedString: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]], flowNumber: [[/@numberInteger(?=[ \t]*[,\]\}])/, "number"], [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"], [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"], [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"], [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"], [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"], [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]], tagHandle: [[/\![^ ]*/, "tag"]], anchor: [[/[&*][^ ]+/, "namespace"]]}}; + var i = {comments: {lineComment: "#"}, brackets: [["{", "}"], ["[", "]"], ["(", ")"]], autoClosingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], surroundingPairs: [{open: "{", close: "}"}, {open: "[", close: "]"}, {open: "(", close: ")"}, {open: '"', close: '"'}, {open: "'", close: "'"}], folding: {offSide: true}}, r = {tokenPostfix: ".yaml", brackets: [{token: "delimiter.bracket", open: "{", close: "}"}, {token: "delimiter.square", open: "[", close: "]"}], keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"], numberInteger: /(?:0|[+-]?[0-9]+)/, numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/, numberOctal: /0o[0-7]+/, numberHex: /0x[0-9a-fA-F]+/, numberInfinity: /[+-]?\.(?:inf|Inf|INF)/, numberNaN: /\.(?:nan|Nan|NAN)/, numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/, escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/, tokenizer: {root: [{include: "@whitespace"}, {include: "@comment"}, [/%[^ ]+.*$/, "meta.directive"], [/---/, "operators.directivesEnd"], [/\.{3}/, "operators.documentEnd"], [/[-?:](?= )/, "operators"], {include: "@anchor"}, {include: "@tagHandle"}, {include: "@flowCollections"}, {include: "@blockStyle"}, [/@numberInteger(?![ \t]*\S+)/, "number"], [/@numberFloat(?![ \t]*\S+)/, "number.float"], [/@numberOctal(?![ \t]*\S+)/, "number.octal"], [/@numberHex(?![ \t]*\S+)/, "number.hex"], [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"], [/@numberNaN(?![ \t]*\S+)/, "number.nan"], [/@numberDate(?![ \t]*\S+)/, "number.date"], [/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]], {include: "@flowScalars"}, [/.+$/, {cases: {"@keywords": "keyword", "@default": "string"}}]], object: [{include: "@whitespace"}, {include: "@comment"}, [/\}/, "@brackets", "@pop"], [/,/, "delimiter.comma"], [/:(?= )/, "operators"], [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"], {include: "@flowCollections"}, {include: "@flowScalars"}, {include: "@tagHandle"}, {include: "@anchor"}, {include: "@flowNumber"}, [/[^\},]+/, {cases: {"@keywords": "keyword", "@default": "string"}}]], array: [{include: "@whitespace"}, {include: "@comment"}, [/\]/, "@brackets", "@pop"], [/,/, "delimiter.comma"], {include: "@flowCollections"}, {include: "@flowScalars"}, {include: "@tagHandle"}, {include: "@anchor"}, {include: "@flowNumber"}, [/[^\],]+/, {cases: {"@keywords": "keyword", "@default": "string"}}]], multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]], multiStringContinued: [[/^( *).+$/, {cases: {"$1==$S2": "string", "@default": {token: "@rematch", next: "@popall"}}}]], whitespace: [[/[ \t\r\n]+/, "white"]], comment: [[/#.*$/, "comment"]], flowCollections: [[/\[/, "@brackets", "@array"], [/\{/, "@brackets", "@object"]], flowScalars: [[/"([^"\\]|\\.)*$/, "string.invalid"], [/'([^'\\]|\\.)*$/, "string.invalid"], [/'[^']*'/, "string"], [/"/, "string", "@doubleQuotedString"]], doubleQuotedString: [[/[^\\"]+/, "string"], [/@escapes/, "string.escape"], [/\\./, "string.escape.invalid"], [/"/, "string", "@pop"]], blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]], flowNumber: [[/@numberInteger(?=[ \t]*[,\]\}])/, "number"], [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"], [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"], [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"], [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"], [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"], [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]], tagHandle: [[/\![^ ]*/, "tag"]], anchor: [[/[&*][^ ]+/, "namespace"]]}}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "setupTypeScript", function() { @@ -74229,91 +74228,91 @@ ${Object(zn.b)(wi)} }), n.d(t, "getTypeScriptWorker", function() { return z; }); - var i, o, r = n(29), s = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + var i, r, o = n(29), s = function(e2, t2, n2, i2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, a = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } }, l = function() { @@ -74344,10 +74343,10 @@ ${Object(zn.b)(wi)} }, e2.prototype._getClient = function() { var e3 = this; if (!this._client) { - this._worker = r.f.createWebWorker({moduleId: "vs/language/typescript/tsWorker", label: this._modeId, keepIdleModels: true, createData: {compilerOptions: this._defaults.getCompilerOptions(), extraLibs: this._defaults.getExtraLibs(), customWorkerPath: this._defaults.workerOptions.customWorkerPath}}); + this._worker = o.f.createWebWorker({moduleId: "vs/language/typescript/tsWorker", label: this._modeId, keepIdleModels: true, createData: {compilerOptions: this._defaults.getCompilerOptions(), extraLibs: this._defaults.getExtraLibs(), customWorkerPath: this._defaults.workerOptions.customWorkerPath}}); var t2 = this._worker.getProxy(); this._defaults.getEagerModelSync() && (t2 = t2.then(function(t3) { - return e3._worker ? e3._worker.withSyncedResources(r.f.getModels().filter(function(t4) { + return e3._worker ? e3._worker.withSyncedResources(o.f.getModels().filter(function(t4) { return t4.getModeId() === e3._modeId; }).map(function(e4) { return e4.uri; @@ -74380,90 +74379,90 @@ ${Object(zn.b)(wi)} } i(e2, t2), e2.prototype = t2 === null ? Object.create(t2) : (n2.prototype = t2.prototype, new n2()); }), h = function(e2, t2, n2, i2) { - return new (n2 || (n2 = Promise))(function(o2, r2) { + return new (n2 || (n2 = Promise))(function(r2, o2) { function s2(e3) { try { l2(i2.next(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function a2(e3) { try { l2(i2.throw(e3)); } catch (e4) { - r2(e4); + o2(e4); } } function l2(e3) { var t3; - e3.done ? o2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { + e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof n2 ? t3 : new n2(function(e4) { e4(t3); })).then(s2, a2); } l2((i2 = i2.apply(e2, t2 || [])).next()); }); }, u = function(e2, t2) { - var n2, i2, o2, r2, s2 = {label: 0, sent: function() { - if (1 & o2[0]) - throw o2[1]; - return o2[1]; + var n2, i2, r2, o2, s2 = {label: 0, sent: function() { + if (1 & r2[0]) + throw r2[1]; + return r2[1]; }, trys: [], ops: []}; - return r2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (r2[Symbol.iterator] = function() { + return o2 = {next: a2(0), throw: a2(1), return: a2(2)}, typeof Symbol == "function" && (o2[Symbol.iterator] = function() { return this; - }), r2; - function a2(r3) { + }), o2; + function a2(o3) { return function(a3) { - return function(r4) { + return function(o4) { if (n2) throw new TypeError("Generator is already executing."); for (; s2; ) try { - if (n2 = 1, i2 && (o2 = 2 & r4[0] ? i2.return : r4[0] ? i2.throw || ((o2 = i2.return) && o2.call(i2), 0) : i2.next) && !(o2 = o2.call(i2, r4[1])).done) - return o2; - switch (i2 = 0, o2 && (r4 = [2 & r4[0], o2.value]), r4[0]) { + if (n2 = 1, i2 && (r2 = 2 & o4[0] ? i2.return : o4[0] ? i2.throw || ((r2 = i2.return) && r2.call(i2), 0) : i2.next) && !(r2 = r2.call(i2, o4[1])).done) + return r2; + switch (i2 = 0, r2 && (o4 = [2 & o4[0], r2.value]), o4[0]) { case 0: case 1: - o2 = r4; + r2 = o4; break; case 4: - return s2.label++, {value: r4[1], done: false}; + return s2.label++, {value: o4[1], done: false}; case 5: - s2.label++, i2 = r4[1], r4 = [0]; + s2.label++, i2 = o4[1], o4 = [0]; continue; case 7: - r4 = s2.ops.pop(), s2.trys.pop(); + o4 = s2.ops.pop(), s2.trys.pop(); continue; default: - if (!(o2 = s2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || r4[0] !== 6 && r4[0] !== 2)) { + if (!(r2 = s2.trys, (r2 = r2.length > 0 && r2[r2.length - 1]) || o4[0] !== 6 && o4[0] !== 2)) { s2 = 0; continue; } - if (r4[0] === 3 && (!o2 || r4[1] > o2[0] && r4[1] < o2[3])) { - s2.label = r4[1]; + if (o4[0] === 3 && (!r2 || o4[1] > r2[0] && o4[1] < r2[3])) { + s2.label = o4[1]; break; } - if (r4[0] === 6 && s2.label < o2[1]) { - s2.label = o2[1], o2 = r4; + if (o4[0] === 6 && s2.label < r2[1]) { + s2.label = r2[1], r2 = o4; break; } - if (o2 && s2.label < o2[2]) { - s2.label = o2[2], s2.ops.push(r4); + if (r2 && s2.label < r2[2]) { + s2.label = r2[2], s2.ops.push(o4); break; } - o2[2] && s2.ops.pop(), s2.trys.pop(); + r2[2] && s2.ops.pop(), s2.trys.pop(); continue; } - r4 = t2.call(e2, s2); + o4 = t2.call(e2, s2); } catch (e3) { - r4 = [6, e3], i2 = 0; + o4 = [6, e3], i2 = 0; } finally { - n2 = o2 = 0; + n2 = r2 = 0; } - if (5 & r4[0]) - throw r4[1]; - return {value: r4[0] ? r4[1] : void 0, done: true}; - }([r3, a3]); + if (5 & o4[0]) + throw o4[1]; + return {value: o4[0] ? o4[1] : void 0, done: true}; + }([o3, a3]); }; } }; @@ -74475,12 +74474,12 @@ ${Object(zn.b)(wi)} var i2 = ""; if (n2) { i2 += t2; - for (var o2 = 0; o2 < n2; o2++) + for (var r2 = 0; r2 < n2; r2++) i2 += " "; } if (i2 += e2.messageText, n2++, e2.next) - for (var r2 = 0, s2 = e2.next; r2 < s2.length; r2++) { - i2 += p(s2[r2], t2, n2); + for (var o2 = 0, s2 = e2.next; o2 < s2.length; o2++) { + i2 += p(s2[o2], t2, n2); } return i2; } @@ -74491,7 +74490,7 @@ ${Object(zn.b)(wi)} } !function(e2) { e2[e2.None = 0] = "None", e2[e2.Block = 1] = "Block", e2[e2.Smart = 2] = "Smart"; - }(o || (o = {})); + }(r || (r = {})); var g, f = function() { function e2(e3) { this._worker = e3; @@ -74507,8 +74506,8 @@ ${Object(zn.b)(wi)} return e2.prototype.isLibFile = function(e3) { return !!e3 && (e3.path.indexOf("/lib.") === 0 && !!c[e3.path.slice(1)]); }, e2.prototype.getOrCreateModel = function(e3) { - var t2 = r.f.getModel(e3); - return t2 || (this.isLibFile(e3) && this._hasFetchedLibFiles ? r.f.createModel(this._libFiles[e3.path.slice(1)], "javascript", e3) : null); + var t2 = o.f.getModel(e3); + return t2 || (this.isLibFile(e3) && this._hasFetchedLibFiles ? o.f.createModel(this._libFiles[e3.path.slice(1)], "javascript", e3) : null); }, e2.prototype._containsLibFile = function(e3) { for (var t2 = 0, n2 = e3; t2 < n2.length; t2++) { var i2 = n2[t2]; @@ -74540,8 +74539,8 @@ ${Object(zn.b)(wi)} e2[e2.Warning = 0] = "Warning", e2[e2.Error = 1] = "Error", e2[e2.Suggestion = 2] = "Suggestion", e2[e2.Message = 3] = "Message"; }(g || (g = {})); var _ = function(e2) { - function t2(t3, n2, i2, o2) { - var s2 = e2.call(this, o2) || this; + function t2(t3, n2, i2, r2) { + var s2 = e2.call(this, r2) || this; s2._libFiles = t3, s2._defaults = n2, s2._selector = i2, s2._disposables = [], s2._listener = Object.create(null); var a2 = function(e3) { if (e3.getModeId() === i2) { @@ -74555,25 +74554,25 @@ ${Object(zn.b)(wi)} }}, s2._doValidate(e3); } }, l2 = function(e3) { - r.f.setModelMarkers(e3, s2._selector, []); + o.f.setModelMarkers(e3, s2._selector, []); var t4 = e3.uri.toString(); s2._listener[t4] && (s2._listener[t4].dispose(), delete s2._listener[t4]); }; - s2._disposables.push(r.f.onDidCreateModel(a2)), s2._disposables.push(r.f.onWillDisposeModel(l2)), s2._disposables.push(r.f.onDidChangeModelLanguage(function(e3) { + s2._disposables.push(o.f.onDidCreateModel(a2)), s2._disposables.push(o.f.onWillDisposeModel(l2)), s2._disposables.push(o.f.onDidChangeModelLanguage(function(e3) { l2(e3.model), a2(e3.model); })), s2._disposables.push({dispose: function() { - for (var e3 = 0, t4 = r.f.getModels(); e3 < t4.length; e3++) { + for (var e3 = 0, t4 = o.f.getModels(); e3 < t4.length; e3++) { var n3 = t4[e3]; l2(n3); } }}); var c2 = function() { - for (var e3 = 0, t4 = r.f.getModels(); e3 < t4.length; e3++) { + for (var e3 = 0, t4 = o.f.getModels(); e3 < t4.length; e3++) { var n3 = t4[e3]; l2(n3), a2(n3); } }; - return s2._disposables.push(s2._defaults.onDidChange(c2)), s2._disposables.push(s2._defaults.onDidExtraLibsChange(c2)), r.f.getModels().forEach(a2), s2; + return s2._disposables.push(s2._defaults.onDidChange(c2)), s2._disposables.push(s2._defaults.onDidExtraLibsChange(c2)), o.f.getModels().forEach(a2), s2; } return d(t2, e2), t2.prototype.dispose = function() { this._disposables.forEach(function(e3) { @@ -74581,13 +74580,13 @@ ${Object(zn.b)(wi)} }), this._disposables = []; }, t2.prototype._doValidate = function(e3) { return h(this, void 0, void 0, function() { - var t3, n2, i2, o2, s2, a2, l2, c2, d2, h2 = this; + var t3, n2, i2, r2, s2, a2, l2, c2, d2, h2 = this; return u(this, function(u2) { switch (u2.label) { case 0: return [4, this._worker(e3.uri)]; case 1: - return t3 = u2.sent(), e3.isDisposed() ? [2] : (n2 = [], i2 = this._defaults.getDiagnosticsOptions(), o2 = i2.noSyntaxValidation, s2 = i2.noSemanticValidation, a2 = i2.noSuggestionDiagnostics, o2 || n2.push(t3.getSyntacticDiagnostics(e3.uri.toString())), s2 || n2.push(t3.getSemanticDiagnostics(e3.uri.toString())), a2 || n2.push(t3.getSuggestionDiagnostics(e3.uri.toString())), [4, Promise.all(n2)]); + return t3 = u2.sent(), e3.isDisposed() ? [2] : (n2 = [], i2 = this._defaults.getDiagnosticsOptions(), r2 = i2.noSyntaxValidation, s2 = i2.noSemanticValidation, a2 = i2.noSuggestionDiagnostics, r2 || n2.push(t3.getSyntacticDiagnostics(e3.uri.toString())), s2 || n2.push(t3.getSemanticDiagnostics(e3.uri.toString())), a2 || n2.push(t3.getSuggestionDiagnostics(e3.uri.toString())), [4, Promise.all(n2)]); case 2: return !(l2 = u2.sent()) || e3.isDisposed() ? [2] : (c2 = l2.reduce(function(e4, t4) { return t4.concat(e4); @@ -74598,46 +74597,46 @@ ${Object(zn.b)(wi)} }).reduce(function(e4, t4) { return t4.concat(e4); }, []).map(function(e4) { - return e4.file ? r.e.parse(e4.file.fileName) : null; + return e4.file ? o.e.parse(e4.file.fileName) : null; }), [4, this._libFiles.fetchLibFilesIfNecessary(d2)]); case 3: - return u2.sent(), e3.isDisposed() ? [2] : (r.f.setModelMarkers(e3, this._selector, c2.map(function(t4) { + return u2.sent(), e3.isDisposed() ? [2] : (o.f.setModelMarkers(e3, this._selector, c2.map(function(t4) { return h2._convertDiagnostics(e3, t4); })), [2]); } }); }); }, t2.prototype._convertDiagnostics = function(e3, t3) { - var n2 = t3.start || 0, i2 = t3.length || 1, o2 = e3.getPositionAt(n2), s2 = o2.lineNumber, a2 = o2.column, l2 = e3.getPositionAt(n2 + i2), c2 = l2.lineNumber, d2 = l2.column, h2 = []; - return t3.reportsUnnecessary && h2.push(r.c.Unnecessary), t3.reportsDeprecated && h2.push(r.c.Deprecated), {severity: this._tsDiagnosticCategoryToMarkerSeverity(t3.category), startLineNumber: s2, startColumn: a2, endLineNumber: c2, endColumn: d2, message: p(t3.messageText, "\n"), code: t3.code.toString(), tags: h2, relatedInformation: this._convertRelatedInformation(e3, t3.relatedInformation)}; + var n2 = t3.start || 0, i2 = t3.length || 1, r2 = e3.getPositionAt(n2), s2 = r2.lineNumber, a2 = r2.column, l2 = e3.getPositionAt(n2 + i2), c2 = l2.lineNumber, d2 = l2.column, h2 = []; + return t3.reportsUnnecessary && h2.push(o.c.Unnecessary), t3.reportsDeprecated && h2.push(o.c.Deprecated), {severity: this._tsDiagnosticCategoryToMarkerSeverity(t3.category), startLineNumber: s2, startColumn: a2, endLineNumber: c2, endColumn: d2, message: p(t3.messageText, "\n"), code: t3.code.toString(), tags: h2, relatedInformation: this._convertRelatedInformation(e3, t3.relatedInformation)}; }, t2.prototype._convertRelatedInformation = function(e3, t3) { var n2 = this; if (t3) { var i2 = []; return t3.forEach(function(t4) { - var o2 = e3; + var r2 = e3; if (t4.file) { - var s2 = r.e.parse(t4.file.fileName); - o2 = n2._libFiles.getOrCreateModel(s2); + var s2 = o.e.parse(t4.file.fileName); + r2 = n2._libFiles.getOrCreateModel(s2); } - if (o2) { - var a2 = t4.start || 0, l2 = t4.length || 1, c2 = o2.getPositionAt(a2), d2 = c2.lineNumber, h2 = c2.column, u2 = o2.getPositionAt(a2 + l2), m2 = u2.lineNumber, g2 = u2.column; - i2.push({resource: o2.uri, startLineNumber: d2, startColumn: h2, endLineNumber: m2, endColumn: g2, message: p(t4.messageText, "\n")}); + if (r2) { + var a2 = t4.start || 0, l2 = t4.length || 1, c2 = r2.getPositionAt(a2), d2 = c2.lineNumber, h2 = c2.column, u2 = r2.getPositionAt(a2 + l2), m2 = u2.lineNumber, g2 = u2.column; + i2.push({resource: r2.uri, startLineNumber: d2, startColumn: h2, endLineNumber: m2, endColumn: g2, message: p(t4.messageText, "\n")}); } }), i2; } }, t2.prototype._tsDiagnosticCategoryToMarkerSeverity = function(e3) { switch (e3) { case g.Error: - return r.b.Error; + return o.b.Error; case g.Message: - return r.b.Info; + return o.b.Info; case g.Warning: - return r.b.Warning; + return o.b.Warning; case g.Suggestion: - return r.b.Hint; + return o.b.Hint; } - return r.b.Info; + return o.b.Info; }, t2; }(f), v = function(e2) { function t2() { @@ -74645,39 +74644,39 @@ ${Object(zn.b)(wi)} } return d(t2, e2), Object.defineProperty(t2.prototype, "triggerCharacters", {get: function() { return ["."]; - }, enumerable: false, configurable: true}), t2.prototype.provideCompletionItems = function(e3, n2, i2, o2) { + }, enumerable: false, configurable: true}), t2.prototype.provideCompletionItems = function(e3, n2, i2, r2) { return h(this, void 0, void 0, function() { - var i3, o3, s2, a2, l2; + var i3, r3, s2, a2, l2; return u(this, function(c2) { switch (c2.label) { case 0: - return i3 = e3.getWordUntilPosition(n2), o3 = new r.d(n2.lineNumber, i3.startColumn, n2.lineNumber, i3.endColumn), s2 = e3.uri, a2 = e3.getOffsetAt(n2), [4, this._worker(s2)]; + return i3 = e3.getWordUntilPosition(n2), r3 = new o.d(n2.lineNumber, i3.startColumn, n2.lineNumber, i3.endColumn), s2 = e3.uri, a2 = e3.getOffsetAt(n2), [4, this._worker(s2)]; case 1: return [4, c2.sent().getCompletionsAtPosition(s2.toString(), a2)]; case 2: return !(l2 = c2.sent()) || e3.isDisposed() ? [2] : [2, {suggestions: l2.entries.map(function(i4) { - var l3, c3 = o3; + var l3, c3 = r3; if (i4.replacementSpan) { var d2 = e3.getPositionAt(i4.replacementSpan.start), h2 = e3.getPositionAt(i4.replacementSpan.start + i4.replacementSpan.length); - c3 = new r.d(d2.lineNumber, d2.column, h2.lineNumber, h2.column); + c3 = new o.d(d2.lineNumber, d2.column, h2.lineNumber, h2.column); } var u2 = []; - return ((l3 = i4.kindModifiers) === null || l3 === void 0 ? void 0 : l3.indexOf("deprecated")) !== -1 && u2.push(r.g.CompletionItemTag.Deprecated), {uri: s2, position: n2, offset: a2, range: c3, label: i4.name, insertText: i4.name, sortText: i4.sortText, kind: t2.convertKind(i4.kind), tags: u2}; + return ((l3 = i4.kindModifiers) === null || l3 === void 0 ? void 0 : l3.indexOf("deprecated")) !== -1 && u2.push(o.g.CompletionItemTag.Deprecated), {uri: s2, position: n2, offset: a2, range: c3, label: i4.name, insertText: i4.name, sortText: i4.sortText, kind: t2.convertKind(i4.kind), tags: u2}; })}]; } }); }); }, t2.prototype.resolveCompletionItem = function(e3, n2) { return h(this, void 0, void 0, function() { - var n3, i2, o2, r2, s2; + var n3, i2, r2, o2, s2; return u(this, function(a2) { switch (a2.label) { case 0: - return i2 = (n3 = e3).uri, o2 = n3.position, r2 = n3.offset, [4, this._worker(i2)]; + return i2 = (n3 = e3).uri, r2 = n3.position, o2 = n3.offset, [4, this._worker(i2)]; case 1: - return [4, a2.sent().getCompletionEntryDetails(i2.toString(), r2, n3.label)]; + return [4, a2.sent().getCompletionEntryDetails(i2.toString(), o2, n3.label)]; case 2: - return (s2 = a2.sent()) ? [2, {uri: i2, position: o2, label: s2.name, kind: t2.convertKind(s2.kind), detail: m(s2.displayParts), documentation: {value: t2.createDocumentationString(s2)}}] : [2, n3]; + return (s2 = a2.sent()) ? [2, {uri: i2, position: r2, label: s2.name, kind: t2.convertKind(s2.kind), detail: m(s2.displayParts), documentation: {value: t2.createDocumentationString(s2)}}] : [2, n3]; } }); }); @@ -74685,32 +74684,32 @@ ${Object(zn.b)(wi)} switch (e3) { case T.primitiveType: case T.keyword: - return r.g.CompletionItemKind.Keyword; + return o.g.CompletionItemKind.Keyword; case T.variable: case T.localVariable: - return r.g.CompletionItemKind.Variable; + return o.g.CompletionItemKind.Variable; case T.memberVariable: case T.memberGetAccessor: case T.memberSetAccessor: - return r.g.CompletionItemKind.Field; + return o.g.CompletionItemKind.Field; case T.function: case T.memberFunction: case T.constructSignature: case T.callSignature: case T.indexSignature: - return r.g.CompletionItemKind.Function; + return o.g.CompletionItemKind.Function; case T.enum: - return r.g.CompletionItemKind.Enum; + return o.g.CompletionItemKind.Enum; case T.module: - return r.g.CompletionItemKind.Module; + return o.g.CompletionItemKind.Module; case T.class: - return r.g.CompletionItemKind.Class; + return o.g.CompletionItemKind.Class; case T.interface: - return r.g.CompletionItemKind.Interface; + return o.g.CompletionItemKind.Interface; case T.warning: - return r.g.CompletionItemKind.File; + return o.g.CompletionItemKind.File; } - return r.g.CompletionItemKind.Property; + return o.g.CompletionItemKind.Property; }, t2.createDocumentationString = function(e3) { var t3 = m(e3.documentation); if (e3.tags) @@ -74723,8 +74722,8 @@ ${Object(zn.b)(wi)} function w(e2) { var t2 = "*@" + e2.name + "*"; if (e2.name === "param" && e2.text) { - var n2 = e2.text.split(" "), i2 = n2[0], o2 = n2.slice(1); - t2 += "`" + i2 + "`", o2.length > 0 && (t2 += " \u2014 " + o2.join(" ")); + var n2 = e2.text.split(" "), i2 = n2[0], r2 = n2.slice(1); + t2 += "`" + i2 + "`", r2.length > 0 && (t2 += " \u2014 " + r2.join(" ")); } else e2.text && (t2 += " \u2014 " + e2.text); return t2; @@ -74736,7 +74735,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideSignatureHelp = function(e3, t3, n2) { return h(this, void 0, void 0, function() { - var n3, i2, o2, r2; + var n3, i2, r2, o2; return u(this, function(s2) { switch (s2.label) { case 0: @@ -74744,13 +74743,13 @@ ${Object(zn.b)(wi)} case 1: return [4, s2.sent().getSignatureHelpItems(n3.toString(), i2)]; case 2: - return !(o2 = s2.sent()) || e3.isDisposed() ? [2] : (r2 = {activeSignature: o2.selectedItemIndex, activeParameter: o2.argumentIndex, signatures: []}, o2.items.forEach(function(e4) { + return !(r2 = s2.sent()) || e3.isDisposed() ? [2] : (o2 = {activeSignature: r2.selectedItemIndex, activeParameter: r2.argumentIndex, signatures: []}, r2.items.forEach(function(e4) { var t4 = {label: "", parameters: []}; - t4.documentation = {value: m(e4.documentation)}, t4.label += m(e4.prefixDisplayParts), e4.parameters.forEach(function(n4, i3, o3) { - var r3 = m(n4.displayParts), s3 = {label: r3, documentation: {value: m(n4.documentation)}}; - t4.label += r3, t4.parameters.push(s3), i3 < o3.length - 1 && (t4.label += m(e4.separatorDisplayParts)); - }), t4.label += m(e4.suffixDisplayParts), r2.signatures.push(t4); - }), [2, {value: r2, dispose: function() { + t4.documentation = {value: m(e4.documentation)}, t4.label += m(e4.prefixDisplayParts), e4.parameters.forEach(function(n4, i3, r3) { + var o3 = m(n4.displayParts), s3 = {label: o3, documentation: {value: m(n4.documentation)}}; + t4.label += o3, t4.parameters.push(s3), i3 < r3.length - 1 && (t4.label += m(e4.separatorDisplayParts)); + }), t4.label += m(e4.suffixDisplayParts), o2.signatures.push(t4); + }), [2, {value: o2, dispose: function() { }}]); } }); @@ -74762,7 +74761,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideHover = function(e3, t3, n2) { return h(this, void 0, void 0, function() { - var n3, i2, o2, r2, s2, a2; + var n3, i2, r2, o2, s2, a2; return u(this, function(l2) { switch (l2.label) { case 0: @@ -74770,9 +74769,9 @@ ${Object(zn.b)(wi)} case 1: return [4, l2.sent().getQuickInfoAtPosition(n3.toString(), i2)]; case 2: - return !(o2 = l2.sent()) || e3.isDisposed() ? [2] : (r2 = m(o2.documentation), s2 = o2.tags ? o2.tags.map(function(e4) { + return !(r2 = l2.sent()) || e3.isDisposed() ? [2] : (o2 = m(r2.documentation), s2 = r2.tags ? r2.tags.map(function(e4) { return w(e4); - }).join(" \n\n") : "", a2 = m(o2.displayParts), [2, {range: this._textSpanToRange(e3, o2.textSpan), contents: [{value: "```typescript\n" + a2 + "\n```\n"}, {value: r2 + (s2 ? "\n\n" + s2 : "")}]}]); + }).join(" \n\n") : "", a2 = m(r2.displayParts), [2, {range: this._textSpanToRange(e3, r2.textSpan), contents: [{value: "```typescript\n" + a2 + "\n```\n"}, {value: o2 + (s2 ? "\n\n" + s2 : "")}]}]); } }); }); @@ -74783,7 +74782,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideDocumentHighlights = function(e3, t3, n2) { return h(this, void 0, void 0, function() { - var n3, i2, o2, s2 = this; + var n3, i2, r2, s2 = this; return u(this, function(a2) { switch (a2.label) { case 0: @@ -74791,8 +74790,8 @@ ${Object(zn.b)(wi)} case 1: return [4, a2.sent().getOccurrencesAtPosition(n3.toString(), i2)]; case 2: - return !(o2 = a2.sent()) || e3.isDisposed() ? [2] : [2, o2.map(function(t4) { - return {range: s2._textSpanToRange(e3, t4.textSpan), kind: t4.isWriteAccess ? r.g.DocumentHighlightKind.Write : r.g.DocumentHighlightKind.Text}; + return !(r2 = a2.sent()) || e3.isDisposed() ? [2] : [2, r2.map(function(t4) { + return {range: s2._textSpanToRange(e3, t4.textSpan), kind: t4.isWriteAccess ? o.g.DocumentHighlightKind.Write : o.g.DocumentHighlightKind.Text}; })]; } }); @@ -74805,7 +74804,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideDefinition = function(e3, t3, n2) { return h(this, void 0, void 0, function() { - var n3, i2, o2, s2, a2, l2, c2, d2, h2; + var n3, i2, r2, s2, a2, l2, c2, d2, h2; return u(this, function(u2) { switch (u2.label) { case 0: @@ -74813,14 +74812,14 @@ ${Object(zn.b)(wi)} case 1: return [4, u2.sent().getDefinitionAtPosition(n3.toString(), i2)]; case 2: - return !(o2 = u2.sent()) || e3.isDisposed() ? [2] : [4, this._libFiles.fetchLibFilesIfNecessary(o2.map(function(e4) { - return r.e.parse(e4.fileName); + return !(r2 = u2.sent()) || e3.isDisposed() ? [2] : [4, this._libFiles.fetchLibFilesIfNecessary(r2.map(function(e4) { + return o.e.parse(e4.fileName); }))]; case 3: if (u2.sent(), e3.isDisposed()) return [2]; - for (s2 = [], a2 = 0, l2 = o2; a2 < l2.length; a2++) - c2 = l2[a2], d2 = r.e.parse(c2.fileName), (h2 = this._libFiles.getOrCreateModel(d2)) && s2.push({uri: d2, range: this._textSpanToRange(h2, c2.textSpan)}); + for (s2 = [], a2 = 0, l2 = r2; a2 < l2.length; a2++) + c2 = l2[a2], d2 = o.e.parse(c2.fileName), (h2 = this._libFiles.getOrCreateModel(d2)) && s2.push({uri: d2, range: this._textSpanToRange(h2, c2.textSpan)}); return [2, s2]; } }); @@ -74833,7 +74832,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideReferences = function(e3, t3, n2, i2) { return h(this, void 0, void 0, function() { - var n3, i3, o2, s2, a2, l2, c2, d2, h2; + var n3, i3, r2, s2, a2, l2, c2, d2, h2; return u(this, function(u2) { switch (u2.label) { case 0: @@ -74841,14 +74840,14 @@ ${Object(zn.b)(wi)} case 1: return [4, u2.sent().getReferencesAtPosition(n3.toString(), i3)]; case 2: - return !(o2 = u2.sent()) || e3.isDisposed() ? [2] : [4, this._libFiles.fetchLibFilesIfNecessary(o2.map(function(e4) { - return r.e.parse(e4.fileName); + return !(r2 = u2.sent()) || e3.isDisposed() ? [2] : [4, this._libFiles.fetchLibFilesIfNecessary(r2.map(function(e4) { + return o.e.parse(e4.fileName); }))]; case 3: if (u2.sent(), e3.isDisposed()) return [2]; - for (s2 = [], a2 = 0, l2 = o2; a2 < l2.length; a2++) - c2 = l2[a2], d2 = r.e.parse(c2.fileName), (h2 = this._libFiles.getOrCreateModel(d2)) && s2.push({uri: d2, range: this._textSpanToRange(h2, c2.textSpan)}); + for (s2 = [], a2 = 0, l2 = r2; a2 < l2.length; a2++) + c2 = l2[a2], d2 = o.e.parse(c2.fileName), (h2 = this._libFiles.getOrCreateModel(d2)) && s2.push({uri: d2, range: this._textSpanToRange(h2, c2.textSpan)}); return [2, s2]; } }); @@ -74860,7 +74859,7 @@ ${Object(zn.b)(wi)} } return d(t2, e2), t2.prototype.provideDocumentSymbols = function(e3, t3) { return h(this, void 0, void 0, function() { - var t4, n2, i2, o2, s2 = this; + var t4, n2, i2, r2, s2 = this; return u(this, function(a2) { switch (a2.label) { case 0: @@ -74868,17 +74867,17 @@ ${Object(zn.b)(wi)} case 1: return [4, a2.sent().getNavigationBarItems(t4.toString())]; case 2: - return !(n2 = a2.sent()) || e3.isDisposed() ? [2] : (i2 = function(t5, n3, o3) { - var a3 = {name: n3.text, detail: "", kind: L[n3.kind] || r.g.SymbolKind.Variable, range: s2._textSpanToRange(e3, n3.spans[0]), selectionRange: s2._textSpanToRange(e3, n3.spans[0]), tags: [], containerName: o3}; + return !(n2 = a2.sent()) || e3.isDisposed() ? [2] : (i2 = function(t5, n3, r3) { + var a3 = {name: n3.text, detail: "", kind: L[n3.kind] || o.g.SymbolKind.Variable, range: s2._textSpanToRange(e3, n3.spans[0]), selectionRange: s2._textSpanToRange(e3, n3.spans[0]), tags: [], containerName: r3}; if (n3.childItems && n3.childItems.length > 0) for (var l2 = 0, c2 = n3.childItems; l2 < c2.length; l2++) { var d2 = c2[l2]; i2(t5, d2, a3.name); } t5.push(a3); - }, o2 = [], n2.forEach(function(e4) { - return i2(o2, e4); - }), [2, o2]); + }, r2 = [], n2.forEach(function(e4) { + return i2(r2, e4); + }), [2, r2]); } }); }); @@ -74888,29 +74887,29 @@ ${Object(zn.b)(wi)} } return e2.unknown = "", e2.keyword = "keyword", e2.script = "script", e2.module = "module", e2.class = "class", e2.interface = "interface", e2.type = "type", e2.enum = "enum", e2.variable = "var", e2.localVariable = "local var", e2.function = "function", e2.localFunction = "local function", e2.memberFunction = "method", e2.memberGetAccessor = "getter", e2.memberSetAccessor = "setter", e2.memberVariable = "property", e2.constructorImplementation = "constructor", e2.callSignature = "call", e2.indexSignature = "index", e2.constructSignature = "construct", e2.parameter = "parameter", e2.typeParameter = "type parameter", e2.primitiveType = "primitive type", e2.label = "label", e2.alias = "alias", e2.const = "const", e2.let = "let", e2.warning = "warning", e2; }(), L = Object.create(null); - L[T.module] = r.g.SymbolKind.Module, L[T.class] = r.g.SymbolKind.Class, L[T.enum] = r.g.SymbolKind.Enum, L[T.interface] = r.g.SymbolKind.Interface, L[T.memberFunction] = r.g.SymbolKind.Method, L[T.memberVariable] = r.g.SymbolKind.Property, L[T.memberGetAccessor] = r.g.SymbolKind.Property, L[T.memberSetAccessor] = r.g.SymbolKind.Property, L[T.variable] = r.g.SymbolKind.Variable, L[T.const] = r.g.SymbolKind.Variable, L[T.localVariable] = r.g.SymbolKind.Variable, L[T.variable] = r.g.SymbolKind.Variable, L[T.function] = r.g.SymbolKind.Function, L[T.localFunction] = r.g.SymbolKind.Function; - var N, I, O = function(e2) { + L[T.module] = o.g.SymbolKind.Module, L[T.class] = o.g.SymbolKind.Class, L[T.enum] = o.g.SymbolKind.Enum, L[T.interface] = o.g.SymbolKind.Interface, L[T.memberFunction] = o.g.SymbolKind.Method, L[T.memberVariable] = o.g.SymbolKind.Property, L[T.memberGetAccessor] = o.g.SymbolKind.Property, L[T.memberSetAccessor] = o.g.SymbolKind.Property, L[T.variable] = o.g.SymbolKind.Variable, L[T.const] = o.g.SymbolKind.Variable, L[T.localVariable] = o.g.SymbolKind.Variable, L[T.variable] = o.g.SymbolKind.Variable, L[T.function] = o.g.SymbolKind.Function, L[T.localFunction] = o.g.SymbolKind.Function; + var N, I, D = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return d(t2, e2), t2._convertOptions = function(e3) { - return {ConvertTabsToSpaces: e3.insertSpaces, TabSize: e3.tabSize, IndentSize: e3.tabSize, IndentStyle: o.Smart, NewLineCharacter: "\n", InsertSpaceAfterCommaDelimiter: true, InsertSpaceAfterSemicolonInForStatements: true, InsertSpaceBeforeAndAfterBinaryOperators: true, InsertSpaceAfterKeywordsInControlFlowStatements: true, InsertSpaceAfterFunctionKeywordForAnonymousFunctions: true, InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false, InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false, InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false, PlaceOpenBraceOnNewLineForControlBlocks: false, PlaceOpenBraceOnNewLineForFunctions: false}; + return {ConvertTabsToSpaces: e3.insertSpaces, TabSize: e3.tabSize, IndentSize: e3.tabSize, IndentStyle: r.Smart, NewLineCharacter: "\n", InsertSpaceAfterCommaDelimiter: true, InsertSpaceAfterSemicolonInForStatements: true, InsertSpaceBeforeAndAfterBinaryOperators: true, InsertSpaceAfterKeywordsInControlFlowStatements: true, InsertSpaceAfterFunctionKeywordForAnonymousFunctions: true, InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false, InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false, InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false, PlaceOpenBraceOnNewLineForControlBlocks: false, PlaceOpenBraceOnNewLineForFunctions: false}; }, t2.prototype._convertTextChanges = function(e3, t3) { return {text: t3.newText, range: this._textSpanToRange(e3, t3.span)}; }, t2; - }(f), D = function(e2) { + }(f), O = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return d(t2, e2), t2.prototype.provideDocumentRangeFormattingEdits = function(e3, t3, n2, i2) { return h(this, void 0, void 0, function() { - var i3, o2, r2, s2, a2 = this; + var i3, r2, o2, s2, a2 = this; return u(this, function(l2) { switch (l2.label) { case 0: - return i3 = e3.uri, o2 = e3.getOffsetAt({lineNumber: t3.startLineNumber, column: t3.startColumn}), r2 = e3.getOffsetAt({lineNumber: t3.endLineNumber, column: t3.endColumn}), [4, this._worker(i3)]; + return i3 = e3.uri, r2 = e3.getOffsetAt({lineNumber: t3.startLineNumber, column: t3.startColumn}), o2 = e3.getOffsetAt({lineNumber: t3.endLineNumber, column: t3.endColumn}), [4, this._worker(i3)]; case 1: - return [4, l2.sent().getFormattingEditsForRange(i3.toString(), o2, r2, O._convertOptions(n2))]; + return [4, l2.sent().getFormattingEditsForRange(i3.toString(), r2, o2, D._convertOptions(n2))]; case 2: return !(s2 = l2.sent()) || e3.isDisposed() ? [2] : [2, s2.map(function(t4) { return a2._convertTextChanges(e3, t4); @@ -74919,21 +74918,21 @@ ${Object(zn.b)(wi)} }); }); }, t2; - }(O), A = function(e2) { + }(D), A = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return d(t2, e2), Object.defineProperty(t2.prototype, "autoFormatTriggerCharacters", {get: function() { return [";", "}", "\n"]; - }, enumerable: false, configurable: true}), t2.prototype.provideOnTypeFormattingEdits = function(e3, t3, n2, i2, o2) { + }, enumerable: false, configurable: true}), t2.prototype.provideOnTypeFormattingEdits = function(e3, t3, n2, i2, r2) { return h(this, void 0, void 0, function() { - var o3, r2, s2, a2 = this; + var r3, o2, s2, a2 = this; return u(this, function(l2) { switch (l2.label) { case 0: - return o3 = e3.uri, r2 = e3.getOffsetAt(t3), [4, this._worker(o3)]; + return r3 = e3.uri, o2 = e3.getOffsetAt(t3), [4, this._worker(r3)]; case 1: - return [4, l2.sent().getFormattingEditsAfterKeystroke(o3.toString(), r2, n2, O._convertOptions(i2))]; + return [4, l2.sent().getFormattingEditsAfterKeystroke(r3.toString(), o2, n2, D._convertOptions(i2))]; case 2: return !(s2 = l2.sent()) || e3.isDisposed() ? [2] : [2, s2.map(function(t4) { return a2._convertTextChanges(e3, t4); @@ -74942,23 +74941,23 @@ ${Object(zn.b)(wi)} }); }); }, t2; - }(O), R = function(e2) { + }(D), R = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return d(t2, e2), t2.prototype.provideCodeActions = function(e3, t3, n2, i2) { return h(this, void 0, void 0, function() { - var i3, o2, r2, s2, a2, l2, c2 = this; + var i3, r2, o2, s2, a2, l2, c2 = this; return u(this, function(d2) { switch (d2.label) { case 0: - return i3 = e3.uri, o2 = e3.getOffsetAt({lineNumber: t3.startLineNumber, column: t3.startColumn}), r2 = e3.getOffsetAt({lineNumber: t3.endLineNumber, column: t3.endColumn}), s2 = O._convertOptions(e3.getOptions()), a2 = n2.markers.filter(function(e4) { + return i3 = e3.uri, r2 = e3.getOffsetAt({lineNumber: t3.startLineNumber, column: t3.startColumn}), o2 = e3.getOffsetAt({lineNumber: t3.endLineNumber, column: t3.endColumn}), s2 = D._convertOptions(e3.getOptions()), a2 = n2.markers.filter(function(e4) { return e4.code; }).map(function(e4) { return e4.code; }).map(Number), [4, this._worker(i3)]; case 1: - return [4, d2.sent().getCodeFixesAtPosition(i3.toString(), o2, r2, a2, s2)]; + return [4, d2.sent().getCodeFixesAtPosition(i3.toString(), r2, o2, a2, s2)]; case 2: return !(l2 = d2.sent()) || e3.isDisposed() ? [2, {actions: [], dispose: function() { }}] : [2, {actions: l2.filter(function(e4) { @@ -74973,37 +74972,37 @@ ${Object(zn.b)(wi)} }); }); }, t2.prototype._tsCodeFixActionToMonacoCodeAction = function(e3, t3, n2) { - for (var i2 = [], o2 = 0, r2 = n2.changes; o2 < r2.length; o2++) - for (var s2 = 0, a2 = r2[o2].textChanges; s2 < a2.length; s2++) { + for (var i2 = [], r2 = 0, o2 = n2.changes; r2 < o2.length; r2++) + for (var s2 = 0, a2 = o2[r2].textChanges; s2 < a2.length; s2++) { var l2 = a2[s2]; i2.push({resource: e3.uri, edit: {range: this._textSpanToRange(e3, l2.span), text: l2.newText}}); } return {title: n2.description, edit: {edits: i2}, diagnostics: t3.markers, kind: "quickfix"}; }, t2; - }(O), M = function(e2) { + }(D), M = function(e2) { function t2() { return e2 !== null && e2.apply(this, arguments) || this; } return d(t2, e2), t2.prototype.provideRenameEdits = function(e3, t3, n2, i2) { return h(this, void 0, void 0, function() { - var i3, o2, s2, a2, l2, c2, d2, h2, p2, m2; + var i3, r2, s2, a2, l2, c2, d2, h2, p2, m2; return u(this, function(u2) { switch (u2.label) { case 0: - return i3 = e3.uri, o2 = i3.toString(), s2 = e3.getOffsetAt(t3), [4, this._worker(i3)]; + return i3 = e3.uri, r2 = i3.toString(), s2 = e3.getOffsetAt(t3), [4, this._worker(i3)]; case 1: - return [4, (a2 = u2.sent()).getRenameInfo(o2, s2, {allowRenameOfImportPath: false})]; + return [4, (a2 = u2.sent()).getRenameInfo(r2, s2, {allowRenameOfImportPath: false})]; case 2: if ((l2 = u2.sent()).canRename === false) return [2, {edits: [], rejectReason: l2.localizedErrorMessage}]; if (l2.fileToRename !== void 0) throw new Error("Renaming files is not supported."); - return [4, a2.findRenameLocations(o2, s2, false, false, false)]; + return [4, a2.findRenameLocations(r2, s2, false, false, false)]; case 3: if (!(c2 = u2.sent()) || e3.isDisposed()) return [2]; for (d2 = [], h2 = 0, p2 = c2; h2 < p2.length; h2++) - m2 = p2[h2], d2.push({resource: r.e.parse(m2.fileName), edit: {range: this._textSpanToRange(e3, m2.textSpan), text: n2}}); + m2 = p2[h2], d2.push({resource: o.e.parse(m2.fileName), edit: {range: this._textSpanToRange(e3, m2.textSpan), text: n2}}); return [2, {edits: d2}]; } }); @@ -75035,15 +75034,15 @@ ${Object(zn.b)(wi)} for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; return n2.getLanguageServiceWorker.apply(n2, e3); - }, o2 = new b(i2); - return r.g.registerCompletionItemProvider(t2, new v(i2)), r.g.registerSignatureHelpProvider(t2, new y(i2)), r.g.registerHoverProvider(t2, new C(i2)), r.g.registerDocumentHighlightProvider(t2, new x(i2)), r.g.registerDefinitionProvider(t2, new S(o2, i2)), r.g.registerReferenceProvider(t2, new k(o2, i2)), r.g.registerDocumentSymbolProvider(t2, new E(i2)), r.g.registerDocumentRangeFormattingEditProvider(t2, new D(i2)), r.g.registerOnTypeFormattingEditProvider(t2, new A(i2)), r.g.registerCodeActionProvider(t2, new R(i2)), r.g.registerRenameProvider(t2, new M(i2)), new _(o2, e2, t2, i2), i2; + }, r2 = new b(i2); + return o.g.registerCompletionItemProvider(t2, new v(i2)), o.g.registerSignatureHelpProvider(t2, new y(i2)), o.g.registerHoverProvider(t2, new C(i2)), o.g.registerDocumentHighlightProvider(t2, new x(i2)), o.g.registerDefinitionProvider(t2, new S(r2, i2)), o.g.registerReferenceProvider(t2, new k(r2, i2)), o.g.registerDocumentSymbolProvider(t2, new E(i2)), o.g.registerDocumentRangeFormattingEditProvider(t2, new O(i2)), o.g.registerOnTypeFormattingEditProvider(t2, new A(i2)), o.g.registerCodeActionProvider(t2, new R(i2)), o.g.registerRenameProvider(t2, new M(i2)), new _(r2, e2, t2, i2), i2; } }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "setupMode", function() { return N; }); - var i = n(59), o = function() { + var i = n(59), r = function() { function e2(e3) { var t2 = this; this._defaults = e3, this._worker = null, this._idleCheckInterval = setInterval(function() { @@ -75071,34 +75070,34 @@ ${Object(zn.b)(wi)} return e3; }); }, e2; - }(), r = n(38), s = function() { + }(), o = n(38), s = function() { function e2(e3, t2, n2) { - var o2 = this; + var r2 = this; this._languageId = e3, this._worker = t2, this._disposables = [], this._listener = Object.create(null); - var r2 = function(e4) { + var o2 = function(e4) { var t3, n3 = e4.getModeId(); - n3 === o2._languageId && (o2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { + n3 === r2._languageId && (r2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { clearTimeout(t3), t3 = setTimeout(function() { - return o2._doValidate(e4.uri, n3); + return r2._doValidate(e4.uri, n3); }, 500); - }), o2._doValidate(e4.uri, n3)); + }), r2._doValidate(e4.uri, n3)); }, s2 = function(e4) { - i.e.setModelMarkers(e4, o2._languageId, []); - var t3 = e4.uri.toString(), n3 = o2._listener[t3]; - n3 && (n3.dispose(), delete o2._listener[t3]); + i.e.setModelMarkers(e4, r2._languageId, []); + var t3 = e4.uri.toString(), n3 = r2._listener[t3]; + n3 && (n3.dispose(), delete r2._listener[t3]); }; - this._disposables.push(i.e.onDidCreateModel(r2)), this._disposables.push(i.e.onWillDisposeModel(function(e4) { - s2(e4), o2._resetSchema(e4.uri); + this._disposables.push(i.e.onDidCreateModel(o2)), this._disposables.push(i.e.onWillDisposeModel(function(e4) { + s2(e4), r2._resetSchema(e4.uri); })), this._disposables.push(i.e.onDidChangeModelLanguage(function(e4) { - s2(e4.model), r2(e4.model), o2._resetSchema(e4.model.uri); + s2(e4.model), o2(e4.model), r2._resetSchema(e4.model.uri); })), this._disposables.push(n2.onDidChange(function(e4) { i.e.getModels().forEach(function(e5) { - e5.getModeId() === o2._languageId && (s2(e5), r2(e5)); + e5.getModeId() === r2._languageId && (s2(e5), o2(e5)); }); })), this._disposables.push({dispose: function() { - for (var e4 in i.e.getModels().forEach(s2), o2._listener) - o2._listener[e4].dispose(); - }}), i.e.getModels().forEach(r2); + for (var e4 in i.e.getModels().forEach(s2), r2._listener) + r2._listener[e4].dispose(); + }}), i.e.getModels().forEach(o2); } return e2.prototype.dispose = function() { this._disposables.forEach(function(e3) { @@ -75111,11 +75110,11 @@ ${Object(zn.b)(wi)} }, e2.prototype._doValidate = function(e3, t2) { this._worker(e3).then(function(n2) { return n2.doValidation(e3.toString()).then(function(n3) { - var o2 = n3.map(function(e4) { + var r2 = n3.map(function(e4) { return n4 = typeof (t3 = e4).code == "number" ? String(t3.code) : t3.code, {severity: a(t3.severity), startLineNumber: t3.range.start.line + 1, startColumn: t3.range.start.character + 1, endLineNumber: t3.range.end.line + 1, endColumn: t3.range.end.character + 1, message: t3.message, code: n4, source: t3.source}; var t3, n4; - }), r2 = i.e.getModel(e3); - r2 && r2.getModeId() === t2 && i.e.setModelMarkers(r2, t2, o2); + }), o2 = i.e.getModel(e3); + o2 && o2.getModeId() === t2 && i.e.setModelMarkers(o2, t2, r2); }); }).then(void 0, function(e4) { console.error(e4); @@ -75124,13 +75123,13 @@ ${Object(zn.b)(wi)} }(); function a(e2) { switch (e2) { - case r.b.Error: + case o.b.Error: return i.b.Error; - case r.b.Warning: + case o.b.Warning: return i.b.Warning; - case r.b.Information: + case o.b.Information: return i.b.Info; - case r.b.Hint: + case o.b.Hint: return i.b.Hint; default: return i.b.Info; @@ -75151,41 +75150,41 @@ ${Object(zn.b)(wi)} function h(e2) { var t2 = i.f.CompletionItemKind; switch (e2) { - case r.a.Text: + case o.a.Text: return t2.Text; - case r.a.Method: + case o.a.Method: return t2.Method; - case r.a.Function: + case o.a.Function: return t2.Function; - case r.a.Constructor: + case o.a.Constructor: return t2.Constructor; - case r.a.Field: + case o.a.Field: return t2.Field; - case r.a.Variable: + case o.a.Variable: return t2.Variable; - case r.a.Class: + case o.a.Class: return t2.Class; - case r.a.Interface: + case o.a.Interface: return t2.Interface; - case r.a.Module: + case o.a.Module: return t2.Module; - case r.a.Property: + case o.a.Property: return t2.Property; - case r.a.Unit: + case o.a.Unit: return t2.Unit; - case r.a.Value: + case o.a.Value: return t2.Value; - case r.a.Enum: + case o.a.Enum: return t2.Enum; - case r.a.Keyword: + case o.a.Keyword: return t2.Keyword; - case r.a.Snippet: + case o.a.Snippet: return t2.Snippet; - case r.a.Color: + case o.a.Color: return t2.Color; - case r.a.File: + case o.a.File: return t2.File; - case r.a.Reference: + case o.a.Reference: return t2.Reference; } return t2.Property; @@ -75200,15 +75199,15 @@ ${Object(zn.b)(wi)} } return Object.defineProperty(e2.prototype, "triggerCharacters", {get: function() { return [" ", ":"]; - }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, o2) { + }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, r2) { var s2 = e3.uri; return this._worker(s2).then(function(e4) { return e4.doComplete(s2.toString(), l(t2)); }).then(function(n3) { if (n3) { - var o3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, o3.startColumn, t2.lineNumber, o3.endColumn), a2 = n3.items.map(function(e4) { + var r3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, r3.startColumn, t2.lineNumber, r3.endColumn), a2 = n3.items.map(function(e4) { var t3, n4 = {label: e4.label, insertText: e4.insertText || e4.label, sortText: e4.sortText, filterText: e4.filterText, documentation: e4.documentation, detail: e4.detail, range: s3, kind: h(e4.kind)}; - return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: d(e4.textEdit.insert), replace: d(e4.textEdit.replace)} : n4.range = d(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(u)), e4.insertTextFormat === r.d.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; + return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: d(e4.textEdit.insert), replace: d(e4.textEdit.replace)} : n4.range = d(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(u)), e4.insertTextFormat === o.d.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; }); return {isIncomplete: n3.isIncomplete, suggestions: a2}; } @@ -75240,41 +75239,41 @@ ${Object(zn.b)(wi)} function b(e2) { var t2 = i.f.SymbolKind; switch (e2) { - case r.e.File: + case o.e.File: return t2.Array; - case r.e.Module: + case o.e.Module: return t2.Module; - case r.e.Namespace: + case o.e.Namespace: return t2.Namespace; - case r.e.Package: + case o.e.Package: return t2.Package; - case r.e.Class: + case o.e.Class: return t2.Class; - case r.e.Method: + case o.e.Method: return t2.Method; - case r.e.Property: + case o.e.Property: return t2.Property; - case r.e.Field: + case o.e.Field: return t2.Field; - case r.e.Constructor: + case o.e.Constructor: return t2.Constructor; - case r.e.Enum: + case o.e.Enum: return t2.Enum; - case r.e.Interface: + case o.e.Interface: return t2.Interface; - case r.e.Function: + case o.e.Function: return t2.Function; - case r.e.Variable: + case o.e.Variable: return t2.Variable; - case r.e.Constant: + case o.e.Constant: return t2.Constant; - case r.e.String: + case o.e.String: return t2.String; - case r.e.Number: + case o.e.Number: return t2.Number; - case r.e.Boolean: + case o.e.Boolean: return t2.Boolean; - case r.e.Array: + case o.e.Array: return t2.Array; } return t2.Function; @@ -75316,9 +75315,9 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideDocumentRangeFormattingEdits = function(e3, t2, n2, i2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.format(o2.toString(), c(t2), v(n2)).then(function(e5) { + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.format(r2.toString(), c(t2), v(n2)).then(function(e5) { if (e5 && e5.length !== 0) return e5.map(u); }); @@ -75355,20 +75354,20 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideFoldingRanges = function(e3, t2, n2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.getFoldingRanges(o2.toString(), t2); + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.getFoldingRanges(r2.toString(), t2); }).then(function(e4) { if (e4) return e4.map(function(e5) { var t3 = {start: e5.startLine + 1, end: e5.endLine + 1}; return e5.kind !== void 0 && (t3.kind = function(e6) { switch (e6) { - case r.c.Comment: + case o.c.Comment: return i.f.FoldingRangeKind.Comment; - case r.c.Imports: + case o.c.Imports: return i.f.FoldingRangeKind.Imports; - case r.c.Region: + case o.c.Region: return i.f.FoldingRangeKind.Region; } return; @@ -75398,16 +75397,16 @@ ${Object(zn.b)(wi)} function E(e2) { return {getInitialState: function() { return new L(null, null, false, null); - }, tokenize: function(t2, n2, i2, o2) { - return function(e3, t3, n3, i3, o3) { + }, tokenize: function(t2, n2, i2, r2) { + return function(e3, t3, n3, i3, r3) { i3 === void 0 && (i3 = 0); - var r2 = 0, s2 = false; + var o2 = 0, s2 = false; switch (n3.scanError) { case 2: - t3 = '"' + t3, r2 = 1; + t3 = '"' + t3, o2 = 1; break; case 1: - t3 = "/*" + t3, r2 = 2; + t3 = "/*" + t3, o2 = 2; } var a2 = k.a(t3), l2 = n3.lastWasColon, c2 = n3.parents, d2 = {tokens: [], endState: n3.clone()}; for (; ; ) { @@ -75416,7 +75415,7 @@ ${Object(zn.b)(wi)} break; if (h2 === i3 + a2.getPosition()) throw new Error("Scanner did not advance, next 3 characters are: " + t3.substr(a2.getPosition(), 3)); - switch (s2 && (h2 -= r2), s2 = r2 > 0, p2) { + switch (s2 && (h2 -= o2), s2 = o2 > 0, p2) { case 1: c2 = T.push(c2, 0), u2 = "delimiter.bracket.json", l2 = false; break; @@ -75498,18 +75497,18 @@ ${Object(zn.b)(wi)} }, e2; }(); function N(e2) { - var t2 = [], n2 = [], r2 = new o(e2); - t2.push(r2); + var t2 = [], n2 = [], o2 = new r(e2); + t2.push(o2); var a2 = function() { for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; - return r2.getLanguageServiceWorker.apply(r2, e3); + return o2.getLanguageServiceWorker.apply(o2, e3); }; function l2() { - var t3 = e2.languageId, o2 = e2.modeConfiguration; - O(n2), o2.documentFormattingEdits && n2.push(i.f.registerDocumentFormattingEditProvider(t3, new w(a2))), o2.documentRangeFormattingEdits && n2.push(i.f.registerDocumentRangeFormattingEditProvider(t3, new y(a2))), o2.completionItems && n2.push(i.f.registerCompletionItemProvider(t3, new p(a2))), o2.hovers && n2.push(i.f.registerHoverProvider(t3, new f(a2))), o2.documentSymbols && n2.push(i.f.registerDocumentSymbolProvider(t3, new _(a2))), o2.tokens && n2.push(i.f.setTokensProvider(t3, E(true))), o2.colors && n2.push(i.f.registerColorProvider(t3, new C(a2))), o2.foldingRanges && n2.push(i.f.registerFoldingRangeProvider(t3, new x(a2))), o2.diagnostics && n2.push(new s(t3, a2, e2)), o2.selectionRanges && n2.push(i.f.registerSelectionRangeProvider(t3, new S(a2))); + var t3 = e2.languageId, r2 = e2.modeConfiguration; + D(n2), r2.documentFormattingEdits && n2.push(i.f.registerDocumentFormattingEditProvider(t3, new w(a2))), r2.documentRangeFormattingEdits && n2.push(i.f.registerDocumentRangeFormattingEditProvider(t3, new y(a2))), r2.completionItems && n2.push(i.f.registerCompletionItemProvider(t3, new p(a2))), r2.hovers && n2.push(i.f.registerHoverProvider(t3, new f(a2))), r2.documentSymbols && n2.push(i.f.registerDocumentSymbolProvider(t3, new _(a2))), r2.tokens && n2.push(i.f.setTokensProvider(t3, E(true))), r2.colors && n2.push(i.f.registerColorProvider(t3, new C(a2))), r2.foldingRanges && n2.push(i.f.registerFoldingRangeProvider(t3, new x(a2))), r2.diagnostics && n2.push(new s(t3, a2, e2)), r2.selectionRanges && n2.push(i.f.registerSelectionRangeProvider(t3, new S(a2))); } - l2(), t2.push(i.f.setLanguageConfiguration(e2.languageId, D)); + l2(), t2.push(i.f.setLanguageConfiguration(e2.languageId, O)); var c2 = e2.modeConfiguration; return e2.onDidChange(function(e3) { e3.modeConfiguration !== c2 && (c2 = e3.modeConfiguration, l2()); @@ -75517,20 +75516,20 @@ ${Object(zn.b)(wi)} } function I(e2) { return {dispose: function() { - return O(e2); + return D(e2); }}; } - function O(e2) { + function D(e2) { for (; e2.length; ) e2.pop().dispose(); } - var D = {wordPattern: /(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string"]}, {open: "[", close: "]", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}]}; + var O = {wordPattern: /(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g, comments: {lineComment: "//", blockComment: ["/*", "*/"]}, brackets: [["{", "}"], ["[", "]"]], autoClosingPairs: [{open: "{", close: "}", notIn: ["string"]}, {open: "[", close: "]", notIn: ["string"]}, {open: '"', close: '"', notIn: ["string"]}]}; }, function(e, t, n) { "use strict"; n.r(t), n.d(t, "setupMode", function() { return T; }); - var i = n(52), o = function() { + var i = n(52), r = function() { function e2(e3) { var t2 = this; this._defaults = e3, this._worker = null, this._idleCheckInterval = window.setInterval(function() { @@ -75558,32 +75557,32 @@ ${Object(zn.b)(wi)} return e3; }); }, e2; - }(), r = n(48), s = function() { + }(), o = n(48), s = function() { function e2(e3, t2, n2) { - var o2 = this; + var r2 = this; this._languageId = e3, this._worker = t2, this._disposables = [], this._listener = Object.create(null); - var r2 = function(e4) { + var o2 = function(e4) { var t3, n3 = e4.getModeId(); - n3 === o2._languageId && (o2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { + n3 === r2._languageId && (r2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { window.clearTimeout(t3), t3 = window.setTimeout(function() { - return o2._doValidate(e4.uri, n3); + return r2._doValidate(e4.uri, n3); }, 500); - }), o2._doValidate(e4.uri, n3)); + }), r2._doValidate(e4.uri, n3)); }, s2 = function(e4) { - i.e.setModelMarkers(e4, o2._languageId, []); - var t3 = e4.uri.toString(), n3 = o2._listener[t3]; - n3 && (n3.dispose(), delete o2._listener[t3]); + i.e.setModelMarkers(e4, r2._languageId, []); + var t3 = e4.uri.toString(), n3 = r2._listener[t3]; + n3 && (n3.dispose(), delete r2._listener[t3]); }; - this._disposables.push(i.e.onDidCreateModel(r2)), this._disposables.push(i.e.onWillDisposeModel(s2)), this._disposables.push(i.e.onDidChangeModelLanguage(function(e4) { - s2(e4.model), r2(e4.model); + this._disposables.push(i.e.onDidCreateModel(o2)), this._disposables.push(i.e.onWillDisposeModel(s2)), this._disposables.push(i.e.onDidChangeModelLanguage(function(e4) { + s2(e4.model), o2(e4.model); })), n2.onDidChange(function(e4) { i.e.getModels().forEach(function(e5) { - e5.getModeId() === o2._languageId && (s2(e5), r2(e5)); + e5.getModeId() === r2._languageId && (s2(e5), o2(e5)); }); }), this._disposables.push({dispose: function() { - for (var e4 in o2._listener) - o2._listener[e4].dispose(); - }}), i.e.getModels().forEach(r2); + for (var e4 in r2._listener) + r2._listener[e4].dispose(); + }}), i.e.getModels().forEach(o2); } return e2.prototype.dispose = function() { this._disposables.forEach(function(e3) { @@ -75593,11 +75592,11 @@ ${Object(zn.b)(wi)} this._worker(e3).then(function(t3) { return t3.doValidation(e3.toString()); }).then(function(n2) { - var o2 = n2.map(function(e4) { + var r2 = n2.map(function(e4) { return n3 = typeof (t3 = e4).code == "number" ? String(t3.code) : t3.code, {severity: a(t3.severity), startLineNumber: t3.range.start.line + 1, startColumn: t3.range.start.character + 1, endLineNumber: t3.range.end.line + 1, endColumn: t3.range.end.character + 1, message: t3.message, code: n3, source: t3.source}; var t3, n3; - }), r2 = i.e.getModel(e3); - r2.getModeId() === t2 && i.e.setModelMarkers(r2, t2, o2); + }), o2 = i.e.getModel(e3); + o2.getModeId() === t2 && i.e.setModelMarkers(o2, t2, r2); }).then(void 0, function(e4) { console.error(e4); }); @@ -75605,13 +75604,13 @@ ${Object(zn.b)(wi)} }(); function a(e2) { switch (e2) { - case r.b.Error: + case o.b.Error: return i.b.Error; - case r.b.Warning: + case o.b.Warning: return i.b.Warning; - case r.b.Information: + case o.b.Information: return i.b.Info; - case r.b.Hint: + case o.b.Hint: return i.b.Hint; default: return i.b.Info; @@ -75628,41 +75627,41 @@ ${Object(zn.b)(wi)} function d(e2) { var t2 = i.f.CompletionItemKind; switch (e2) { - case r.a.Text: + case o.a.Text: return t2.Text; - case r.a.Method: + case o.a.Method: return t2.Method; - case r.a.Function: + case o.a.Function: return t2.Function; - case r.a.Constructor: + case o.a.Constructor: return t2.Constructor; - case r.a.Field: + case o.a.Field: return t2.Field; - case r.a.Variable: + case o.a.Variable: return t2.Variable; - case r.a.Class: + case o.a.Class: return t2.Class; - case r.a.Interface: + case o.a.Interface: return t2.Interface; - case r.a.Module: + case o.a.Module: return t2.Module; - case r.a.Property: + case o.a.Property: return t2.Property; - case r.a.Unit: + case o.a.Unit: return t2.Unit; - case r.a.Value: + case o.a.Value: return t2.Value; - case r.a.Enum: + case o.a.Enum: return t2.Enum; - case r.a.Keyword: + case o.a.Keyword: return t2.Keyword; - case r.a.Snippet: + case o.a.Snippet: return t2.Snippet; - case r.a.Color: + case o.a.Color: return t2.Color; - case r.a.File: + case o.a.File: return t2.File; - case r.a.Reference: + case o.a.Reference: return t2.Reference; } return t2.Property; @@ -75677,15 +75676,15 @@ ${Object(zn.b)(wi)} } return Object.defineProperty(e2.prototype, "triggerCharacters", {get: function() { return [" ", ":"]; - }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, o2) { + }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, r2) { var s2 = e3.uri; return this._worker(s2).then(function(e4) { return e4.doComplete(s2.toString(), l(t2)); }).then(function(n3) { if (n3) { - var o3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, o3.startColumn, t2.lineNumber, o3.endColumn), a2 = n3.items.map(function(e4) { + var r3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, r3.startColumn, t2.lineNumber, r3.endColumn), a2 = n3.items.map(function(e4) { var t3, n4 = {label: e4.label, insertText: e4.insertText || e4.label, sortText: e4.sortText, filterText: e4.filterText, documentation: e4.documentation, detail: e4.detail, range: s3, kind: d(e4.kind)}; - return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: c(e4.textEdit.insert), replace: c(e4.textEdit.replace)} : n4.range = c(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(h)), e4.insertTextFormat === r.e.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; + return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: c(e4.textEdit.insert), replace: c(e4.textEdit.replace)} : n4.range = c(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(h)), e4.insertTextFormat === o.e.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; }); return {isIncomplete: n3.isIncomplete, suggestions: a2}; } @@ -75716,11 +75715,11 @@ ${Object(zn.b)(wi)} }(); function f(e2) { switch (e2) { - case r.c.Read: + case o.c.Read: return i.f.DocumentHighlightKind.Read; - case r.c.Write: + case o.c.Write: return i.f.DocumentHighlightKind.Write; - case r.c.Text: + case o.c.Text: return i.f.DocumentHighlightKind.Text; } return i.f.DocumentHighlightKind.Text; @@ -75762,9 +75761,9 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideReferences = function(e3, t2, n2, i2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.findReferences(o2.toString(), l(t2)); + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.findReferences(r2.toString(), l(t2)); }).then(function(e4) { if (e4) return e4.map(_); @@ -75775,18 +75774,18 @@ ${Object(zn.b)(wi)} function e2(e3) { this._worker = e3; } - return e2.prototype.provideRenameEdits = function(e3, t2, n2, o2) { - var r2 = e3.uri; - return this._worker(r2).then(function(e4) { - return e4.doRename(r2.toString(), l(t2), n2); + return e2.prototype.provideRenameEdits = function(e3, t2, n2, r2) { + var o2 = e3.uri; + return this._worker(o2).then(function(e4) { + return e4.doRename(o2.toString(), l(t2), n2); }).then(function(e4) { return function(e5) { if (e5 && e5.changes) { var t3 = []; for (var n3 in e5.changes) - for (var o3 = i.d.parse(n3), r3 = 0, s2 = e5.changes[n3]; r3 < s2.length; r3++) { - var a2 = s2[r3]; - t3.push({resource: o3, edit: {range: c(a2.range), text: a2.newText}}); + for (var r3 = i.d.parse(n3), o3 = 0, s2 = e5.changes[n3]; o3 < s2.length; o3++) { + var a2 = s2[o3]; + t3.push({resource: r3, edit: {range: c(a2.range), text: a2.newText}}); } return {edits: t3}; } @@ -75797,41 +75796,41 @@ ${Object(zn.b)(wi)} function C(e2) { var t2 = i.f.SymbolKind; switch (e2) { - case r.f.File: + case o.f.File: return t2.Array; - case r.f.Module: + case o.f.Module: return t2.Module; - case r.f.Namespace: + case o.f.Namespace: return t2.Namespace; - case r.f.Package: + case o.f.Package: return t2.Package; - case r.f.Class: + case o.f.Class: return t2.Class; - case r.f.Method: + case o.f.Method: return t2.Method; - case r.f.Property: + case o.f.Property: return t2.Property; - case r.f.Field: + case o.f.Field: return t2.Field; - case r.f.Constructor: + case o.f.Constructor: return t2.Constructor; - case r.f.Enum: + case o.f.Enum: return t2.Enum; - case r.f.Interface: + case o.f.Interface: return t2.Interface; - case r.f.Function: + case o.f.Function: return t2.Function; - case r.f.Variable: + case o.f.Variable: return t2.Variable; - case r.f.Constant: + case o.f.Constant: return t2.Constant; - case r.f.String: + case o.f.String: return t2.String; - case r.f.Number: + case o.f.Number: return t2.Number; - case r.f.Boolean: + case o.f.Boolean: return t2.Boolean; - case r.f.Array: + case o.f.Array: return t2.Array; } return t2.Function; @@ -75885,20 +75884,20 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideFoldingRanges = function(e3, t2, n2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.getFoldingRanges(o2.toString(), t2); + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.getFoldingRanges(r2.toString(), t2); }).then(function(e4) { if (e4) return e4.map(function(e5) { var t3 = {start: e5.startLine + 1, end: e5.endLine + 1}; return e5.kind !== void 0 && (t3.kind = function(e6) { switch (e6) { - case r.d.Comment: + case o.d.Comment: return i.f.FoldingRangeKind.Comment; - case r.d.Imports: + case o.d.Imports: return i.f.FoldingRangeKind.Imports; - case r.d.Region: + case o.d.Region: return i.f.FoldingRangeKind.Region; } }(e5.kind)), t3; @@ -75925,12 +75924,12 @@ ${Object(zn.b)(wi)} }, e2; }(); function T(e2) { - var t2 = [], n2 = [], r2 = new o(e2); - t2.push(r2); + var t2 = [], n2 = [], o2 = new r(e2); + t2.push(o2); var a2, l2, c2 = function() { for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; - return r2.getLanguageServiceWorker.apply(r2, e3); + return o2.getLanguageServiceWorker.apply(o2, e3); }; return a2 = e2.languageId, l2 = e2.modeConfiguration, N(n2), l2.completionItems && n2.push(i.f.registerCompletionItemProvider(a2, new u(c2))), l2.hovers && n2.push(i.f.registerHoverProvider(a2, new g(c2))), l2.documentHighlights && n2.push(i.f.registerDocumentHighlightProvider(a2, new b(c2))), l2.definitions && n2.push(i.f.registerDefinitionProvider(a2, new v(c2))), l2.references && n2.push(i.f.registerReferenceProvider(a2, new w(c2))), l2.documentSymbols && n2.push(i.f.registerDocumentSymbolProvider(a2, new x(c2))), l2.rename && n2.push(i.f.registerRenameProvider(a2, new y(c2))), l2.colors && n2.push(i.f.registerColorProvider(a2, new S(c2))), l2.foldingRanges && n2.push(i.f.registerFoldingRangeProvider(a2, new k(c2))), l2.diagnostics && n2.push(new s(a2, c2, e2)), l2.selectionRanges && n2.push(i.f.registerSelectionRangeProvider(a2, new E(c2))), t2.push(L(n2)), L(t2); } @@ -75950,7 +75949,7 @@ ${Object(zn.b)(wi)} }), n.d(t, "setupMode", function() { return L; }); - var i = n(47), o = function() { + var i = n(47), r = function() { function e2(e3) { var t2 = this; this._defaults = e3, this._worker = null, this._idleCheckInterval = setInterval(function() { @@ -75978,34 +75977,34 @@ ${Object(zn.b)(wi)} return e3; }); }, e2; - }(), r = n(31), s = function() { + }(), o = n(31), s = function() { function e2(e3, t2, n2) { - var o2 = this; + var r2 = this; this._languageId = e3, this._worker = t2, this._disposables = [], this._listener = Object.create(null); - var r2 = function(e4) { + var o2 = function(e4) { var t3, n3 = e4.getModeId(); - n3 === o2._languageId && (o2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { + n3 === r2._languageId && (r2._listener[e4.uri.toString()] = e4.onDidChangeContent(function() { clearTimeout(t3), t3 = setTimeout(function() { - return o2._doValidate(e4.uri, n3); + return r2._doValidate(e4.uri, n3); }, 500); - }), o2._doValidate(e4.uri, n3)); + }), r2._doValidate(e4.uri, n3)); }, s2 = function(e4) { - i.e.setModelMarkers(e4, o2._languageId, []); - var t3 = e4.uri.toString(), n3 = o2._listener[t3]; - n3 && (n3.dispose(), delete o2._listener[t3]); + i.e.setModelMarkers(e4, r2._languageId, []); + var t3 = e4.uri.toString(), n3 = r2._listener[t3]; + n3 && (n3.dispose(), delete r2._listener[t3]); }; - this._disposables.push(i.e.onDidCreateModel(r2)), this._disposables.push(i.e.onWillDisposeModel(function(e4) { + this._disposables.push(i.e.onDidCreateModel(o2)), this._disposables.push(i.e.onWillDisposeModel(function(e4) { s2(e4); })), this._disposables.push(i.e.onDidChangeModelLanguage(function(e4) { - s2(e4.model), r2(e4.model); + s2(e4.model), o2(e4.model); })), this._disposables.push(n2.onDidChange(function(e4) { i.e.getModels().forEach(function(e5) { - e5.getModeId() === o2._languageId && (s2(e5), r2(e5)); + e5.getModeId() === r2._languageId && (s2(e5), o2(e5)); }); })), this._disposables.push({dispose: function() { - for (var e4 in o2._listener) - o2._listener[e4].dispose(); - }}), i.e.getModels().forEach(r2); + for (var e4 in r2._listener) + r2._listener[e4].dispose(); + }}), i.e.getModels().forEach(o2); } return e2.prototype.dispose = function() { this._disposables.forEach(function(e3) { @@ -76014,11 +76013,11 @@ ${Object(zn.b)(wi)} }, e2.prototype._doValidate = function(e3, t2) { this._worker(e3).then(function(n2) { return n2.doValidation(e3.toString()).then(function(n3) { - var o2 = n3.map(function(e4) { + var r2 = n3.map(function(e4) { return n4 = typeof (t3 = e4).code == "number" ? String(t3.code) : t3.code, {severity: a(t3.severity), startLineNumber: t3.range.start.line + 1, startColumn: t3.range.start.character + 1, endLineNumber: t3.range.end.line + 1, endColumn: t3.range.end.character + 1, message: t3.message, code: n4, source: t3.source}; var t3, n4; }); - i.e.setModelMarkers(i.e.getModel(e3), t2, o2); + i.e.setModelMarkers(i.e.getModel(e3), t2, r2); }); }).then(void 0, function(e4) { console.error(e4); @@ -76027,13 +76026,13 @@ ${Object(zn.b)(wi)} }(); function a(e2) { switch (e2) { - case r.b.Error: + case o.b.Error: return i.b.Error; - case r.b.Warning: + case o.b.Warning: return i.b.Warning; - case r.b.Information: + case o.b.Information: return i.b.Info; - case r.b.Hint: + case o.b.Hint: return i.b.Hint; default: return i.b.Info; @@ -76050,41 +76049,41 @@ ${Object(zn.b)(wi)} function d(e2) { var t2 = i.f.CompletionItemKind; switch (e2) { - case r.a.Text: + case o.a.Text: return t2.Text; - case r.a.Method: + case o.a.Method: return t2.Method; - case r.a.Function: + case o.a.Function: return t2.Function; - case r.a.Constructor: + case o.a.Constructor: return t2.Constructor; - case r.a.Field: + case o.a.Field: return t2.Field; - case r.a.Variable: + case o.a.Variable: return t2.Variable; - case r.a.Class: + case o.a.Class: return t2.Class; - case r.a.Interface: + case o.a.Interface: return t2.Interface; - case r.a.Module: + case o.a.Module: return t2.Module; - case r.a.Property: + case o.a.Property: return t2.Property; - case r.a.Unit: + case o.a.Unit: return t2.Unit; - case r.a.Value: + case o.a.Value: return t2.Value; - case r.a.Enum: + case o.a.Enum: return t2.Enum; - case r.a.Keyword: + case o.a.Keyword: return t2.Keyword; - case r.a.Snippet: + case o.a.Snippet: return t2.Snippet; - case r.a.Color: + case o.a.Color: return t2.Color; - case r.a.File: + case o.a.File: return t2.File; - case r.a.Reference: + case o.a.Reference: return t2.Reference; } return t2.Property; @@ -76099,15 +76098,15 @@ ${Object(zn.b)(wi)} } return Object.defineProperty(e2.prototype, "triggerCharacters", {get: function() { return [".", ":", "<", '"', "=", "/"]; - }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, o2) { + }, enumerable: false, configurable: true}), e2.prototype.provideCompletionItems = function(e3, t2, n2, r2) { var s2 = e3.uri; return this._worker(s2).then(function(e4) { return e4.doComplete(s2.toString(), l(t2)); }).then(function(n3) { if (n3) { - var o3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, o3.startColumn, t2.lineNumber, o3.endColumn), a2 = n3.items.map(function(e4) { + var r3 = e3.getWordUntilPosition(t2), s3 = new i.c(t2.lineNumber, r3.startColumn, t2.lineNumber, r3.endColumn), a2 = n3.items.map(function(e4) { var t3, n4 = {label: e4.label, insertText: e4.insertText || e4.label, sortText: e4.sortText, filterText: e4.filterText, documentation: e4.documentation, detail: e4.detail, range: s3, kind: d(e4.kind)}; - return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: c(e4.textEdit.insert), replace: c(e4.textEdit.replace)} : n4.range = c(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(h)), e4.insertTextFormat === r.e.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; + return e4.textEdit && ((t3 = e4.textEdit).insert !== void 0 && t3.replace !== void 0 ? n4.range = {insert: c(e4.textEdit.insert), replace: c(e4.textEdit.replace)} : n4.range = c(e4.textEdit.range), n4.insertText = e4.textEdit.newText), e4.additionalTextEdits && (n4.additionalTextEdits = e4.additionalTextEdits.map(h)), e4.insertTextFormat === o.e.Snippet && (n4.insertTextRules = i.f.CompletionItemInsertTextRule.InsertAsSnippet), n4; }); return {isIncomplete: n3.isIncomplete, suggestions: a2}; } @@ -76139,11 +76138,11 @@ ${Object(zn.b)(wi)} function f(e2) { var t2 = i.f.DocumentHighlightKind; switch (e2) { - case r.c.Read: + case o.c.Read: return t2.Read; - case r.c.Write: + case o.c.Write: return t2.Write; - case r.c.Text: + case o.c.Text: return t2.Text; } return t2.Text; @@ -76167,41 +76166,41 @@ ${Object(zn.b)(wi)} function _(e2) { var t2 = i.f.SymbolKind; switch (e2) { - case r.f.File: + case o.f.File: return t2.Array; - case r.f.Module: + case o.f.Module: return t2.Module; - case r.f.Namespace: + case o.f.Namespace: return t2.Namespace; - case r.f.Package: + case o.f.Package: return t2.Package; - case r.f.Class: + case o.f.Class: return t2.Class; - case r.f.Method: + case o.f.Method: return t2.Method; - case r.f.Property: + case o.f.Property: return t2.Property; - case r.f.Field: + case o.f.Field: return t2.Field; - case r.f.Constructor: + case o.f.Constructor: return t2.Constructor; - case r.f.Enum: + case o.f.Enum: return t2.Enum; - case r.f.Interface: + case o.f.Interface: return t2.Interface; - case r.f.Function: + case o.f.Function: return t2.Function; - case r.f.Variable: + case o.f.Variable: return t2.Variable; - case r.f.Constant: + case o.f.Constant: return t2.Constant; - case r.f.String: + case o.f.String: return t2.String; - case r.f.Number: + case o.f.Number: return t2.Number; - case r.f.Boolean: + case o.f.Boolean: return t2.Boolean; - case r.f.Array: + case o.f.Array: return t2.Array; } return t2.Function; @@ -76258,9 +76257,9 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideDocumentRangeFormattingEdits = function(e3, t2, n2, i2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.format(o2.toString(), function(e5) { + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.format(r2.toString(), function(e5) { if (e5) return {start: l(e5.getStartPosition()), end: l(e5.getEndPosition())}; }(t2), y(n2)).then(function(e5) { @@ -76273,19 +76272,19 @@ ${Object(zn.b)(wi)} function e2(e3) { this._worker = e3; } - return e2.prototype.provideRenameEdits = function(e3, t2, n2, o2) { - var r2 = e3.uri; - return this._worker(r2).then(function(e4) { - return e4.doRename(r2.toString(), l(t2), n2); + return e2.prototype.provideRenameEdits = function(e3, t2, n2, r2) { + var o2 = e3.uri; + return this._worker(o2).then(function(e4) { + return e4.doRename(o2.toString(), l(t2), n2); }).then(function(e4) { return function(e5) { if (!e5 || !e5.changes) return; var t3 = []; for (var n3 in e5.changes) - for (var o3 = i.d.parse(n3), r3 = 0, s2 = e5.changes[n3]; r3 < s2.length; r3++) { - var a2 = s2[r3]; - t3.push({resource: o3, edit: {range: c(a2.range), text: a2.newText}}); + for (var r3 = i.d.parse(n3), o3 = 0, s2 = e5.changes[n3]; o3 < s2.length; o3++) { + var a2 = s2[o3]; + t3.push({resource: r3, edit: {range: c(a2.range), text: a2.newText}}); } return {edits: t3}; }(e4); @@ -76297,20 +76296,20 @@ ${Object(zn.b)(wi)} this._worker = e3; } return e2.prototype.provideFoldingRanges = function(e3, t2, n2) { - var o2 = e3.uri; - return this._worker(o2).then(function(e4) { - return e4.getFoldingRanges(o2.toString(), t2); + var r2 = e3.uri; + return this._worker(r2).then(function(e4) { + return e4.getFoldingRanges(r2.toString(), t2); }).then(function(e4) { if (e4) return e4.map(function(e5) { var t3 = {start: e5.startLine + 1, end: e5.endLine + 1}; return e5.kind !== void 0 && (t3.kind = function(e6) { switch (e6) { - case r.d.Comment: + case o.d.Comment: return i.f.FoldingRangeKind.Comment; - case r.d.Imports: + case o.d.Imports: return i.f.FoldingRangeKind.Imports; - case r.d.Region: + case o.d.Region: return i.f.FoldingRangeKind.Region; } }(e5.kind)), t3; @@ -76337,20 +76336,20 @@ ${Object(zn.b)(wi)} }, e2; }(); function T(e2) { - var t2 = new o(e2), n2 = function() { + var t2 = new r(e2), n2 = function() { for (var e3 = [], n3 = 0; n3 < arguments.length; n3++) e3[n3] = arguments[n3]; return t2.getLanguageServiceWorker.apply(t2, e3); - }, r2 = e2.languageId; - i.f.registerCompletionItemProvider(r2, new u(n2)), i.f.registerHoverProvider(r2, new g(n2)), i.f.registerDocumentHighlightProvider(r2, new b(n2)), i.f.registerLinkProvider(r2, new w(n2)), i.f.registerFoldingRangeProvider(r2, new k(n2)), i.f.registerDocumentSymbolProvider(r2, new v(n2)), i.f.registerSelectionRangeProvider(r2, new E(n2)), i.f.registerRenameProvider(r2, new S(n2)), r2 === "html" && (i.f.registerDocumentFormattingEditProvider(r2, new C(n2)), i.f.registerDocumentRangeFormattingEditProvider(r2, new x(n2)), new s(r2, n2, e2)); + }, o2 = e2.languageId; + i.f.registerCompletionItemProvider(o2, new u(n2)), i.f.registerHoverProvider(o2, new g(n2)), i.f.registerDocumentHighlightProvider(o2, new b(n2)), i.f.registerLinkProvider(o2, new w(n2)), i.f.registerFoldingRangeProvider(o2, new k(n2)), i.f.registerDocumentSymbolProvider(o2, new v(n2)), i.f.registerSelectionRangeProvider(o2, new E(n2)), i.f.registerRenameProvider(o2, new S(n2)), o2 === "html" && (i.f.registerDocumentFormattingEditProvider(o2, new C(n2)), i.f.registerDocumentRangeFormattingEditProvider(o2, new x(n2)), new s(o2, n2, e2)); } function L(e2) { - var t2 = [], n2 = [], r2 = new o(e2); - t2.push(r2); + var t2 = [], n2 = [], o2 = new r(e2); + t2.push(o2); var a2, l2, c2 = function() { for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; - return r2.getLanguageServiceWorker.apply(r2, e3); + return o2.getLanguageServiceWorker.apply(o2, e3); }; return a2 = e2.languageId, l2 = e2.modeConfiguration, I(n2), l2.completionItems && n2.push(i.f.registerCompletionItemProvider(a2, new u(c2))), l2.hovers && n2.push(i.f.registerHoverProvider(a2, new g(c2))), l2.documentHighlights && n2.push(i.f.registerDocumentHighlightProvider(a2, new b(c2))), l2.links && n2.push(i.f.registerLinkProvider(a2, new w(c2))), l2.documentSymbols && n2.push(i.f.registerDocumentSymbolProvider(a2, new v(c2))), l2.rename && n2.push(i.f.registerRenameProvider(a2, new S(c2))), l2.foldingRanges && n2.push(i.f.registerFoldingRangeProvider(a2, new k(c2))), l2.selectionRanges && n2.push(i.f.registerSelectionRangeProvider(a2, new E(c2))), l2.documentFormattingEdits && n2.push(i.f.registerDocumentFormattingEditProvider(a2, new C(c2))), l2.documentRangeFormattingEdits && n2.push(i.f.registerDocumentRangeFormattingEditProvider(a2, new x(c2))), l2.diagnostics && n2.push(new s(a2, c2, e2)), t2.push(N(n2)), N(t2); } @@ -76479,6 +76478,7 @@ export { * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ /*!--------------------------------------------------------------------------------------------- * Copyright (C) David Owens II, owensd.io. All rights reserved. *--------------------------------------------------------------------------------------------*/ diff --git a/index.min.js b/index.min.js index bdcee15..439c3fc 100644 --- a/index.min.js +++ b/index.min.js @@ -1,38 +1,38 @@ -(function(Ie){function w(W){for(var Q,y,C=W[0],S=W[1],P=0,V=[];P<C.length;P++)y=C[P],Object.prototype.hasOwnProperty.call(h,y)&&h[y]&&V.push(h[y][0]),h[y]=0;for(Q in S)Object.prototype.hasOwnProperty.call(S,Q)&&(Ie[Q]=S[Q]);for(ge&&ge(W);V.length;)V.shift()()}var o={},h={0:0};function f(W){if(o[W])return o[W].exports;var Q=o[W]={i:W,l:!1,exports:{}};return Ie[W].call(Q.exports,Q,Q.exports,f),Q.l=!0,Q.exports}f.e=function(){return Promise.resolve()},f.m=Ie,f.c=o,f.d=function(W,Q,y){f.o(W,Q)||Object.defineProperty(W,Q,{enumerable:!0,get:y})},f.r=function(W){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},f.t=function(W,Q){if(1&Q&&(W=f(W)),8&Q||4&Q&&typeof W=="object"&&W&&W.__esModule)return W;var y=Object.create(null);if(f.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:W}),2&Q&&typeof W!="string")for(var C in W)f.d(y,C,function(S){return W[S]}.bind(null,C));return y},f.n=function(W){var Q=W&&W.__esModule?function(){return W.default}:function(){return W};return f.d(Q,"a",Q),Q},f.o=function(W,Q){return Object.prototype.hasOwnProperty.call(W,Q)},f.p="/",f.oe=function(W){throw console.error(W),W};var D=self.webpackJsonp=self.webpackJsonp||[],H=D.push.bind(D);D.push=w,D=D.slice();for(var E=0;E<D.length;E++)w(D[E]);var ge=H;f(f.s=342)})([function(Ie,w,o){"use strict";function h(f,D,...H){return function(E,ge){let W;return W=ge.length===0?E:E.replace(/\{(\d+)\}/g,function(Q,y){let C=y[0];return ge[C]!==void 0?ge[C]:Q}),W}(D,H)}o.d(w,"a",function(){return h})},function(Ie,w,o){"use strict";o.d(w,"s",function(){return V}),o.d(w,"S",function(){return k}),o.d(w,"N",function(){return l}),o.d(w,"I",function(){return N}),o.d(w,"e",function(){return b}),o.d(w,"f",function(){return g}),o.d(w,"Q",function(){return j}),o.d(w,"R",function(){return ie}),o.d(w,"ab",function(){return U}),o.d(w,"i",function(){return B}),o.d(w,"n",function(){return ke}),o.d(w,"m",function(){return xe}),o.d(w,"g",function(){return Y}),o.d(w,"h",function(){return Z}),o.d(w,"j",function(){return te}),o.d(w,"k",function(){return he}),o.d(w,"W",function(){return Ce}),o.d(w,"Y",function(){return Ae}),o.d(w,"l",function(){return ht}),o.d(w,"z",function(){return fe}),o.d(w,"y",function(){return $}),o.d(w,"F",function(){return J}),o.d(w,"C",function(){return Se}),o.d(w,"d",function(){return A}),o.d(w,"H",function(){return ee}),o.d(w,"B",function(){return de}),o.d(w,"A",function(){return Oe}),o.d(w,"G",function(){return $e}),o.d(w,"L",function(){return pt}),o.d(w,"w",function(){return it}),o.d(w,"J",function(){return At}),o.d(w,"O",function(){return _i}),o.d(w,"E",function(){return wt}),o.d(w,"x",function(){return Ni}),o.d(w,"v",function(){return pi}),o.d(w,"u",function(){return Li}),o.d(w,"P",function(){return Ii}),o.d(w,"M",function(){return Ai}),o.d(w,"c",function(){return Zi}),o.d(w,"b",function(){return Bi}),o.d(w,"X",function(){return Lt}),o.d(w,"V",function(){return Di}),o.d(w,"bb",function(){return vi}),o.d(w,"p",function(){return Rt}),o.d(w,"U",function(){return Ue}),o.d(w,"a",function(){return st}),o.d(w,"Z",function(){return _t}),o.d(w,"K",function(){return oi}),o.d(w,"T",function(){return li}),o.d(w,"D",function(){return gi}),o.d(w,"t",function(){return ki}),o.d(w,"cb",function(){return Ri}),o.d(w,"o",function(){return $i}),o.d(w,"r",function(){return Hi}),o.d(w,"q",function(){return yi});var h=o(34),f=o(44),D=o(67),H=o(69),E=o(20),ge=o(13),W=o(6),Q=o(2),y=o(11),C=o(15),S=o(45),P=o(138);function V(kt){for(;kt.firstChild;)kt.removeChild(kt.firstChild)}function k(kt){kt.parentNode&&kt.parentNode.removeChild(kt)}function l(kt){for(;kt;){if(kt===document.body)return!0;kt=kt.parentNode||kt.host}return!1}let T=new class{hasClass(kt,Et){return Boolean(Et)&&kt.classList&&kt.classList.contains(Et)}addClasses(kt,...Et){Et.forEach(si=>si.split(" ").forEach(Si=>this.addClass(kt,Si)))}addClass(kt,Et){Et&&kt.classList&&kt.classList.add(Et)}removeClass(kt,Et){Et&&kt.classList&&kt.classList.remove(Et)}removeClasses(kt,...Et){Et.forEach(si=>si.split(" ").forEach(Si=>this.removeClass(kt,Si)))}toggleClass(kt,Et,si){kt.classList&&kt.classList.toggle(Et,si)}},N=T.hasClass.bind(T),b=T.addClass.bind(T),g=T.addClasses.bind(T),j=T.removeClass.bind(T),ie=T.removeClasses.bind(T),U=T.toggleClass.bind(T);class q{constructor(Et,si,Si,Pi){this._node=Et,this._type=si,this._handler=Si,this._options=Pi||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function B(kt,Et,si,Si){return new q(kt,Et,si,Si)}function se(kt){return function(Et){return kt(new H.a(Et))}}let ke=function(kt,Et,si,Si){let Pi=si;return Et==="click"||Et==="mousedown"?Pi=se(si):Et!=="keydown"&&Et!=="keypress"&&Et!=="keyup"||(Pi=function(Wi){return function(xn){return Wi(new D.a(xn))}}(si)),B(kt,Et,Pi,Si)},xe=function(kt,Et,si){return Y(kt,se(Et),si)};function Y(kt,Et,si){return B(kt,y.c&&P.a.pointerEvents?Zi.POINTER_DOWN:Zi.MOUSE_DOWN,Et,si)}function Z(kt,Et,si){return B(kt,y.c&&P.a.pointerEvents?Zi.POINTER_UP:Zi.MOUSE_UP,Et,si)}function te(kt,Et){return B(kt,"mouseout",si=>{let Si=si.relatedTarget;for(;Si&&Si!==kt;)Si=Si.parentNode;Si!==kt&&Et(si)})}function he(kt,Et){return B(kt,"pointerout",si=>{let Si=si.relatedTarget;for(;Si&&Si!==kt;)Si=Si.parentNode;Si!==kt&&Et(si)})}let Ce,Ae,L=null;class nt{constructor(Et,si=0){this._runner=Et,this.priority=si,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Et){Object(ge.e)(Et)}}static sort(Et,si){return si.priority-Et.priority}}(function(){let kt=[],Et=null,si=!1,Si=!1,Pi=()=>{for(si=!1,Et=kt,kt=[],Si=!0;Et.length>0;)Et.sort(nt.sort),Et.shift().execute();Si=!1};Ae=(Wi,xn=0)=>{let un=new nt(Wi,xn);return kt.push(un),si||(si=!0,function(bn){if(!L){let Fn=Mn=>setTimeout(()=>Mn(new Date().getTime()),0);L=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Fn}L.call(self,bn)}(Pi)),un},Ce=(Wi,xn)=>{if(Si){let un=new nt(Wi,xn);return Et.push(un),un}return Ae(Wi,xn)}})();let ct=function(kt,Et){return Et};class Ye extends Q.a{constructor(Et,si,Si,Pi=ct,Wi=16){super();let xn=null,un=0,bn=this._register(new E.e),Fn=()=>{un=new Date().getTime(),Si(xn),xn=null};this._register(B(Et,si,Mn=>{xn=Pi(xn,Mn);let Nn=new Date().getTime()-un;Nn>=Wi?(bn.cancel(),Fn()):bn.setIfNotSet(Fn,Wi-Nn)}))}}function ht(kt,Et,si,Si,Pi){return new Ye(kt,Et,si,Si,Pi)}function fe(kt){return document.defaultView.getComputedStyle(kt,null)}function $(kt){if(kt!==document.body)return new z(kt.clientWidth,kt.clientHeight);if(y.c&&window.visualViewport){let Et=window.visualViewport.width,si=window.visualViewport.height-(h.k?24:0);return new z(Et,si)}if(window.innerWidth&&window.innerHeight)return new z(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new z(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new z(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class G{static convertToPixels(Et,si){return parseFloat(si)||0}static getDimension(Et,si,Si){let Pi=fe(Et),Wi="0";return Pi&&(Wi=Pi.getPropertyValue?Pi.getPropertyValue(si):Pi.getAttribute(Si)),G.convertToPixels(Et,Wi)}static getBorderLeftWidth(Et){return G.getDimension(Et,"border-left-width","borderLeftWidth")}static getBorderRightWidth(Et){return G.getDimension(Et,"border-right-width","borderRightWidth")}static getBorderTopWidth(Et){return G.getDimension(Et,"border-top-width","borderTopWidth")}static getBorderBottomWidth(Et){return G.getDimension(Et,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(Et){return G.getDimension(Et,"padding-left","paddingLeft")}static getPaddingRight(Et){return G.getDimension(Et,"padding-right","paddingRight")}static getPaddingTop(Et){return G.getDimension(Et,"padding-top","paddingTop")}static getPaddingBottom(Et){return G.getDimension(Et,"padding-bottom","paddingBottom")}static getMarginLeft(Et){return G.getDimension(Et,"margin-left","marginLeft")}static getMarginTop(Et){return G.getDimension(Et,"margin-top","marginTop")}static getMarginRight(Et){return G.getDimension(Et,"margin-right","marginRight")}static getMarginBottom(Et){return G.getDimension(Et,"margin-bottom","marginBottom")}}class z{constructor(Et,si){this.width=Et,this.height=si}}function J(kt){let Et=kt.offsetParent,si=kt.offsetTop,Si=kt.offsetLeft;for(;(kt=kt.parentNode)!==null&&kt!==document.body&&kt!==document.documentElement;){si-=kt.scrollTop;let Pi=Nt(kt)?null:fe(kt);Pi&&(Si-=Pi.direction!=="rtl"?kt.scrollLeft:-kt.scrollLeft),kt===Et&&(Si+=G.getBorderLeftWidth(kt),si+=G.getBorderTopWidth(kt),si+=kt.offsetTop,Si+=kt.offsetLeft,Et=kt.offsetParent)}return{left:Si,top:si}}function Se(kt){let Et=kt.getBoundingClientRect();return{left:Et.left+A.scrollX,top:Et.top+A.scrollY,width:Et.width,height:Et.height}}let A=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function ee(kt){let Et=G.getMarginLeft(kt)+G.getMarginRight(kt);return kt.offsetWidth+Et}function de(kt){let Et=G.getBorderLeftWidth(kt)+G.getBorderRightWidth(kt),si=G.getPaddingLeft(kt)+G.getPaddingRight(kt);return kt.offsetWidth-Et-si}function Oe(kt){let Et=G.getBorderTopWidth(kt)+G.getBorderBottomWidth(kt),si=G.getPaddingTop(kt)+G.getPaddingBottom(kt);return kt.offsetHeight-Et-si}function $e(kt){let Et=G.getMarginTop(kt)+G.getMarginBottom(kt);return kt.offsetHeight+Et}function pt(kt,Et){for(;kt;){if(kt===Et)return!0;kt=kt.parentNode}return!1}function it(kt,Et,si){for(;kt&&kt.nodeType===kt.ELEMENT_NODE;){if(N(kt,Et))return kt;if(si){if(typeof si=="string"){if(N(kt,si))return null}else if(kt===si)return null}kt=kt.parentNode}return null}function At(kt,Et,si){return!!it(kt,Et,si)}function Nt(kt){return kt&&!!kt.host&&!!kt.mode}function _i(kt){return!!wt(kt)}function wt(kt){for(;kt.parentNode;){if(kt===document.body)return null;kt=kt.parentNode}return Nt(kt)?kt:null}function Ni(){let kt=document.activeElement;for(;kt==null?void 0:kt.shadowRoot;)kt=kt.shadowRoot.activeElement;return kt}function pi(kt=document.getElementsByTagName("head")[0]){let Et=document.createElement("style");return Et.type="text/css",Et.media="screen",kt.appendChild(Et),Et}let et=null;function Wt(){return et||(et=pi()),et}function Li(kt,Et,si=Wt()){si&&Et&&si.sheet.insertRule(kt+"{"+Et+"}",0)}function Ii(kt,Et=Wt()){if(!Et)return;let si=function(Pi){return Pi&&Pi.sheet&&Pi.sheet.rules?Pi.sheet.rules:Pi&&Pi.sheet&&Pi.sheet.cssRules?Pi.sheet.cssRules:[]}(Et),Si=[];for(let Pi=0;Pi<si.length;Pi++)si[Pi].selectorText.indexOf(kt)!==-1&&Si.push(Pi);for(let Pi=Si.length-1;Pi>=0;Pi--)Et.sheet.deleteRule(Si[Pi])}function Ai(kt){return typeof HTMLElement=="object"?kt instanceof HTMLElement:kt&&typeof kt=="object"&&kt.nodeType===1&&typeof kt.nodeName=="string"}let Zi={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:h.f?"mousewheel":"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:h.l?"webkitAnimationStart":"animationstart",ANIMATION_END:h.l?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:h.l?"webkitAnimationIteration":"animationiteration"},Bi={stop:function(kt,Et){kt.preventDefault?kt.preventDefault():kt.returnValue=!1,Et&&(kt.stopPropagation?kt.stopPropagation():kt.cancelBubble=!0)}};function Lt(kt){let Et=[];for(let si=0;kt&&kt.nodeType===kt.ELEMENT_NODE;si++)Et[si]=kt.scrollTop,kt=kt.parentNode;return Et}function Di(kt,Et){for(let si=0;kt&&kt.nodeType===kt.ELEMENT_NODE;si++)kt.scrollTop!==Et[si]&&(kt.scrollTop=Et[si]),kt=kt.parentNode}class gt extends Q.a{constructor(Et){super(),this._onDidFocus=this._register(new W.a),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new W.a),this.onDidBlur=this._onDidBlur.event;let si=pt(document.activeElement,Et),Si=!1,Pi=()=>{Si=!1,si||(si=!0,this._onDidFocus.fire())},Wi=()=>{si&&(Si=!0,window.setTimeout(()=>{Si&&(Si=!1,si=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{pt(document.activeElement,Et)!==si&&(si?Wi():Pi())},this._register(Object(f.a)(Et,Zi.FOCUS,!0)(Pi)),this._register(Object(f.a)(Et,Zi.BLUR,!0)(Wi))}}function vi(kt){return new gt(kt)}function Rt(kt,...Et){return Et.forEach(si=>kt.appendChild(si)),Et[Et.length-1]}let vt=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function Ue(kt,...Et){kt.innerText="",Object(C.d)(Et).forEach(si=>{si instanceof Node?kt.appendChild(si):kt.appendChild(document.createTextNode(si))})}var ut;function ze(kt,Et,si,...Si){let Pi=vt.exec(Et);if(!Pi)throw new Error("Bad use of emmet");si=Object.assign({},si||{});let Wi,xn=Pi[1]||"div";return Wi=kt!==ut.HTML?document.createElementNS(kt,xn):document.createElement(xn),Pi[3]&&(Wi.id=Pi[3]),Pi[4]&&(Wi.className=Pi[4].replace(/\./g," ").trim()),Object.keys(si).forEach(un=>{let bn=si[un];bn!==void 0&&(/^on\w+$/.test(un)?Wi[un]=bn:un==="selected"?bn&&Wi.setAttribute(un,"true"):Wi.setAttribute(un,bn))}),Object(C.d)(Si).forEach(un=>{un instanceof Node?Wi.appendChild(un):Wi.appendChild(document.createTextNode(un))}),Wi}function st(kt,Et,...si){return ze(ut.HTML,kt,Et,...si)}function _t(...kt){for(let Et of kt)Et.style.display="",Et.removeAttribute("aria-hidden")}function oi(...kt){for(let Et of kt)Et.style.display="none",Et.setAttribute("aria-hidden","true")}function li(kt){if(kt&&kt.hasAttribute("tabIndex")){if(document.activeElement===kt){let Et=function(si,Si){for(;si&&si.nodeType===si.ELEMENT_NODE;){if(si instanceof HTMLElement&&si.hasAttribute(Si))return si;si=si.parentNode}return null}(kt.parentElement,"tabIndex");Et&&Et.focus()}kt.removeAttribute("tabindex")}}function gi(kt){return Array.prototype.slice.call(document.getElementsByTagName(kt),0)}function ki(kt){let Et=window.devicePixelRatio*kt;return Math.max(1,Math.floor(Et))/window.devicePixelRatio}function Ri(kt){if(y.g||h.g)window.open(kt);else{let Et=window.open();Et&&(Et.opener=null,Et.location.href=kt)}}function $i(kt){let Et=()=>{kt(),si=Ae(Et)},si=Ae(Et);return Object(Q.h)(()=>si.dispose())}function Hi(kt){return kt&&S.b.vscodeRemote===kt.scheme?S.a.rewrite(kt):kt}function yi(kt){return kt?`url('${Hi(kt).toString(!0).replace(/'/g,"%27")}')`:"url('')"}(function(kt){kt.HTML="http://www.w3.org/1999/xhtml",kt.SVG="http://www.w3.org/2000/svg"})(ut||(ut={})),st.SVG=function(kt,Et,...si){return ze(ut.SVG,kt,Et,...si)},S.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(Ie,w,o){"use strict";o.d(w,"g",function(){return H}),o.d(w,"f",function(){return E}),o.d(w,"e",function(){return ge}),o.d(w,"h",function(){return W}),o.d(w,"b",function(){return Q}),o.d(w,"a",function(){return y}),o.d(w,"d",function(){return C}),o.d(w,"c",function(){return S});var h=o(37);function f(P){}class D extends Error{constructor(V){super(`Encounter errors while disposing of store. Errors: [${V.join(", ")}]`),this.errors=V}}function H(P){return typeof P.dispose=="function"&&P.dispose.length===0}function E(P){if(h.a.is(P)){let V=[];for(let k of P)if(k)try{k.dispose()}catch(l){V.push(l)}if(V.length===1)throw V[0];if(V.length>1)throw new D(V);return Array.isArray(P)?[]:P}if(P)return P.dispose(),P}function ge(...P){return P.forEach(f),{dispose:()=>E(P)}}function W(P){return{dispose:()=>{P()}}}class Q{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{E(this._toDispose.values())}finally{this._toDispose.clear()}}add(V){if(!V)return V;if(V===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Q.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(V),V}}Q.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new Q}dispose(){this._store.dispose()}_register(V){if(V===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(V)}}y.None=Object.freeze({dispose(){}});class C{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(V){this._isDisposed||V===this._value||(this._value&&this._value.dispose(),this._value=V)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value&&this._value.dispose(),this._value=void 0}}class S{constructor(V){this.object=V}dispose(){}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(9);class f{constructor(H,E,ge,W){H>ge||H===ge&&E>W?(this.startLineNumber=ge,this.startColumn=W,this.endLineNumber=H,this.endColumn=E):(this.startLineNumber=H,this.startColumn=E,this.endLineNumber=ge,this.endColumn=W)}isEmpty(){return f.isEmpty(this)}static isEmpty(H){return H.startLineNumber===H.endLineNumber&&H.startColumn===H.endColumn}containsPosition(H){return f.containsPosition(this,H)}static containsPosition(H,E){return!(E.lineNumber<H.startLineNumber||E.lineNumber>H.endLineNumber)&&!(E.lineNumber===H.startLineNumber&&E.column<H.startColumn)&&!(E.lineNumber===H.endLineNumber&&E.column>H.endColumn)}containsRange(H){return f.containsRange(this,H)}static containsRange(H,E){return!(E.startLineNumber<H.startLineNumber||E.endLineNumber<H.startLineNumber)&&!(E.startLineNumber>H.endLineNumber||E.endLineNumber>H.endLineNumber)&&!(E.startLineNumber===H.startLineNumber&&E.startColumn<H.startColumn)&&!(E.endLineNumber===H.endLineNumber&&E.endColumn>H.endColumn)}strictContainsRange(H){return f.strictContainsRange(this,H)}static strictContainsRange(H,E){return!(E.startLineNumber<H.startLineNumber||E.endLineNumber<H.startLineNumber)&&!(E.startLineNumber>H.endLineNumber||E.endLineNumber>H.endLineNumber)&&!(E.startLineNumber===H.startLineNumber&&E.startColumn<=H.startColumn)&&!(E.endLineNumber===H.endLineNumber&&E.endColumn>=H.endColumn)}plusRange(H){return f.plusRange(this,H)}static plusRange(H,E){let ge,W,Q,y;return E.startLineNumber<H.startLineNumber?(ge=E.startLineNumber,W=E.startColumn):E.startLineNumber===H.startLineNumber?(ge=E.startLineNumber,W=Math.min(E.startColumn,H.startColumn)):(ge=H.startLineNumber,W=H.startColumn),E.endLineNumber>H.endLineNumber?(Q=E.endLineNumber,y=E.endColumn):E.endLineNumber===H.endLineNumber?(Q=E.endLineNumber,y=Math.max(E.endColumn,H.endColumn)):(Q=H.endLineNumber,y=H.endColumn),new f(ge,W,Q,y)}intersectRanges(H){return f.intersectRanges(this,H)}static intersectRanges(H,E){let ge=H.startLineNumber,W=H.startColumn,Q=H.endLineNumber,y=H.endColumn,C=E.startLineNumber,S=E.startColumn,P=E.endLineNumber,V=E.endColumn;return ge<C?(ge=C,W=S):ge===C&&(W=Math.max(W,S)),Q>P?(Q=P,y=V):Q===P&&(y=Math.min(y,V)),ge>Q||ge===Q&&W>y?null:new f(ge,W,Q,y)}equalsRange(H){return f.equalsRange(this,H)}static equalsRange(H,E){return!!H&&!!E&&H.startLineNumber===E.startLineNumber&&H.startColumn===E.startColumn&&H.endLineNumber===E.endLineNumber&&H.endColumn===E.endColumn}getEndPosition(){return f.getEndPosition(this)}static getEndPosition(H){return new h.a(H.endLineNumber,H.endColumn)}getStartPosition(){return f.getStartPosition(this)}static getStartPosition(H){return new h.a(H.startLineNumber,H.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(H,E){return new f(this.startLineNumber,this.startColumn,H,E)}setStartPosition(H,E){return new f(H,E,this.endLineNumber,this.endColumn)}collapseToStart(){return f.collapseToStart(this)}static collapseToStart(H){return new f(H.startLineNumber,H.startColumn,H.startLineNumber,H.startColumn)}static fromPositions(H,E=H){return new f(H.lineNumber,H.column,E.lineNumber,E.column)}static lift(H){return H?new f(H.startLineNumber,H.startColumn,H.endLineNumber,H.endColumn):null}static isIRange(H){return H&&typeof H.startLineNumber=="number"&&typeof H.startColumn=="number"&&typeof H.endLineNumber=="number"&&typeof H.endColumn=="number"}static areIntersectingOrTouching(H,E){return!(H.endLineNumber<E.startLineNumber||H.endLineNumber===E.startLineNumber&&H.endColumn<E.startColumn)&&!(E.endLineNumber<H.startLineNumber||E.endLineNumber===H.startLineNumber&&E.endColumn<H.startColumn)}static areIntersecting(H,E){return!(H.endLineNumber<E.startLineNumber||H.endLineNumber===E.startLineNumber&&H.endColumn<=E.startColumn)&&!(E.endLineNumber<H.startLineNumber||E.endLineNumber===H.startLineNumber&&E.endColumn<=H.startColumn)}static compareRangesUsingStarts(H,E){if(H&&E){let ge=0|H.startLineNumber,W=0|E.startLineNumber;if(ge===W){let Q=0|H.startColumn,y=0|E.startColumn;if(Q===y){let C=0|H.endLineNumber,S=0|E.endLineNumber;return C===S?(0|H.endColumn)-(0|E.endColumn):C-S}return Q-y}return ge-W}return(H?1:0)-(E?1:0)}static compareRangesUsingEnds(H,E){return H.endLineNumber===E.endLineNumber?H.endColumn===E.endColumn?H.startLineNumber===E.startLineNumber?H.startColumn-E.startColumn:H.startLineNumber-E.startLineNumber:H.endColumn-E.endColumn:H.endLineNumber-E.endLineNumber}static spansMultipleLines(H){return H.endLineNumber>H.startLineNumber}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return T}),o.d(w,"e",function(){return N}),o.d(w,"c",function(){return g}),o.d(w,"b",function(){return j}),o.d(w,"f",function(){return ie}),o.d(w,"o",function(){return U}),o.d(w,"j",function(){return q}),o.d(w,"p",function(){return B}),o.d(w,"q",function(){return se}),o.d(w,"l",function(){return ke}),o.d(w,"k",function(){return xe}),o.d(w,"r",function(){return Y}),o.d(w,"n",function(){return Z}),o.d(w,"m",function(){return te}),o.d(w,"d",function(){return h}),o.d(w,"i",function(){return Ae}),o.d(w,"g",function(){return L}),o.d(w,"h",function(){return nt});var h,f=o(0),D=o(13),H=o(23),E=o(41),ge=o(9),W=o(64),Q=o(122),y=o(24),C=o(27),S=o(10),P=o(92),V=o(56),k=o(120),l=o(14);class T{constructor(Ye){this.id=Ye.id,this.precondition=Ye.precondition,this._kbOpts=Ye.kbOpts,this._menuOpts=Ye.menuOpts,this._description=Ye.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){let Ye=this._kbOpts.kbExpr;this.precondition&&(Ye=Ye?S.a.and(Ye,this.precondition):this.precondition),P.a.registerCommandAndKeybindingRule({id:this.id,handler:(ht,fe)=>this.runCommand(ht,fe),weight:this._kbOpts.weight,args:this._kbOpts.args,when:Ye,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else C.a.registerCommand({id:this.id,handler:(Ye,ht)=>this.runCommand(Ye,ht),description:this._description})}_registerMenuItem(Ye){y.d.appendMenuItem(Ye.menuId,{group:Ye.group,command:{id:this.id,title:Ye.title,icon:Ye.icon},when:Ye.when,order:Ye.order})}}class N extends T{constructor(){super(...arguments),this._implementations=[]}addImplementation(Ye,ht){return this._implementations.push([Ye,ht]),this._implementations.sort((fe,$)=>$[0]-fe[0]),{dispose:()=>{for(let fe=0;fe<this._implementations.length;fe++)if(this._implementations[fe][1]===ht)return void this._implementations.splice(fe,1)}}}runCommand(Ye,ht){for(let fe of this._implementations)if(fe[1](Ye,ht))return}}class b extends T{constructor(Ye,ht){super(ht),this.command=Ye}runCommand(Ye,ht){return this.command.runCommand(Ye,ht)}}class g extends T{static bindToContribution(Ye){return class extends g{constructor(ht){super(ht),this._callback=ht.handler}runEditorCommand(ht,fe,$){Ye(fe)&&this._callback(Ye(fe),$)}}}runCommand(Ye,ht){let fe=Ye.get(E.a),$=fe.getFocusedCodeEditor()||fe.getActiveCodeEditor();if($)return $.invokeWithinContext(G=>{if(G.get(S.b).contextMatchesRules(Object(l.n)(this.precondition)))return this.runEditorCommand(G,$,ht)})}}class j extends g{constructor(Ye){super(j.convertOptions(Ye)),this.label=Ye.label,this.alias=Ye.alias}static convertOptions(Ye){let ht;function fe($){return $.menuId||($.menuId=y.b.EditorContext),$.title||($.title=Ye.label),$.when=S.a.and(Ye.precondition,$.when),$}return ht=Array.isArray(Ye.menuOpts)?Ye.menuOpts:Ye.menuOpts?[Ye.menuOpts]:[],Array.isArray(Ye.contextMenuOpts)?ht.push(...Ye.contextMenuOpts.map(fe)):Ye.contextMenuOpts&&ht.push(fe(Ye.contextMenuOpts)),Ye.menuOpts=ht,Ye}runEditorCommand(Ye,ht,fe){return this.reportTelemetry(Ye,ht),this.run(Ye,ht,fe||{})}reportTelemetry(Ye,ht){Ye.get(k.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class ie extends j{constructor(Ye){super(Ye),this._implementations=[]}runEditorCommand(Ye,ht,fe){this.reportTelemetry(Ye,ht);for(let $ of this._implementations)if($[1](Ye,fe))return;return this.run(Ye,ht,fe||{})}}function U(ct,Ye){C.a.registerCommand(ct,(ht,fe)=>Ye(ht,fe||{}))}function q(ct,Ye){U(ct,function(ht,fe){let{resource:$,position:G}=fe;if(!($ instanceof H.a))throw Object(D.b)("resource");if(!ge.a.isIPosition(G))throw Object(D.b)("position");let z=ht.get(W.a).getModel($);if(z){let J=ge.a.lift(G);return Ye(z,J,fe)}return ht.get(Q.a).createModelReference($).then(J=>new Promise((Se,A)=>{try{Se(Ye(J.object.textEditorModel,ge.a.lift(G),fe))}catch(ee){A(ee)}}).finally(()=>{J.dispose()}))})}function B(ct,Ye){C.a.registerCommand(ct,function(ht,...fe){let[$,G]=fe;Object(l.b)(H.a.isUri($)),Object(l.b)(ge.a.isIPosition(G));let z=ht.get(W.a).getModel($);if(z){let J=ge.a.lift(G);return Ye(z,J,...fe.slice(2))}return ht.get(Q.a).createModelReference($).then(J=>new Promise((Se,A)=>{try{Se(Ye(J.object.textEditorModel,ge.a.lift(G),fe.slice(2)))}catch(ee){A(ee)}}).finally(()=>{J.dispose()}))})}function se(ct,Ye){C.a.registerCommand(ct,function(ht,...fe){let[$]=fe;Object(l.b)(H.a.isUri($));let G=ht.get(W.a).getModel($);return G?Ye(G,...fe.slice(1)):ht.get(Q.a).createModelReference($).then(z=>new Promise((J,Se)=>{try{J(Ye(z.object.textEditorModel,fe.slice(1)))}catch(A){Se(A)}}).finally(()=>{z.dispose()}))})}function ke(ct){return he.INSTANCE.registerEditorCommand(ct),ct}function xe(ct){let Ye=new ct;return he.INSTANCE.registerEditorAction(Ye),Ye}function Y(ct){return he.INSTANCE.registerEditorAction(ct),ct}function Z(ct){he.INSTANCE.registerEditorAction(ct)}function te(ct,Ye){he.INSTANCE.registerEditorContribution(ct,Ye)}(function(ct){ct.getEditorCommand=function(Ye){return he.INSTANCE.getEditorCommand(Ye)},ct.getEditorActions=function(){return he.INSTANCE.getEditorActions()},ct.getEditorContributions=function(){return he.INSTANCE.getEditorContributions()},ct.getSomeEditorContributions=function(Ye){return he.INSTANCE.getEditorContributions().filter(ht=>Ye.indexOf(ht.id)>=0)},ct.getDiffEditorContributions=function(){return he.INSTANCE.getDiffEditorContributions()}})(h||(h={}));class he{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(Ye,ht){this.editorContributions.push({id:Ye,ctor:ht})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(Ye){Ye.register(),this.editorActions.push(Ye)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(Ye){Ye.register(),this.editorCommands[Ye.id]=Ye}getEditorCommand(Ye){return this.editorCommands[Ye]||null}}function Ce(ct){return ct.register(),ct}he.INSTANCE=new he,V.a.add("editor.contributions",he.INSTANCE);let Ae=Ce(new N({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:y.b.MenubarEditMenu,group:"1_do",title:f.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:y.b.CommandPalette,group:"",title:f.a("undo","Undo"),order:1}]}));Ce(new b(Ae,{id:"default:undo",precondition:void 0}));let L=Ce(new N({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:y.b.MenubarEditMenu,group:"1_do",title:f.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:y.b.CommandPalette,group:"",title:f.a("redo","Redo"),order:1}]}));Ce(new b(L,{id:"default:redo",precondition:void 0}));let nt=Ce(new N({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:y.b.MenubarSelectionMenu,group:"1_basic",title:f.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:y.b.CommandPalette,group:"",title:f.a("selectAll","Select All"),order:1}]}))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return W}),o.d(w,"gc",function(){return y}),o.d(w,"ab",function(){return C}),o.d(w,"Y",function(){return S}),o.d(w,"bb",function(){return P}),o.d(w,"Z",function(){return V}),o.d(w,"h",function(){return k}),o.d(w,"b",function(){return l}),o.d(w,"rc",function(){return T}),o.d(w,"qc",function(){return N}),o.d(w,"uc",function(){return b}),o.d(w,"fb",function(){return g}),o.d(w,"hb",function(){return j}),o.d(w,"gb",function(){return ie}),o.d(w,"db",function(){return U}),o.d(w,"cb",function(){return q}),o.d(w,"eb",function(){return B}),o.d(w,"lb",function(){return se}),o.d(w,"nb",function(){return ke}),o.d(w,"mb",function(){return xe}),o.d(w,"ob",function(){return Y}),o.d(w,"qb",function(){return Z}),o.d(w,"pb",function(){return te}),o.d(w,"ib",function(){return he}),o.d(w,"kb",function(){return Ce}),o.d(w,"jb",function(){return Ae}),o.d(w,"f",function(){return ct}),o.d(w,"e",function(){return Ye}),o.d(w,"g",function(){return ht}),o.d(w,"c",function(){return fe}),o.d(w,"d",function(){return $}),o.d(w,"ic",function(){return G}),o.d(w,"kc",function(){return z}),o.d(w,"lc",function(){return J}),o.d(w,"jc",function(){return Se}),o.d(w,"cc",function(){return A}),o.d(w,"u",function(){return ee}),o.d(w,"t",function(){return de}),o.d(w,"T",function(){return Oe}),o.d(w,"S",function(){return $e}),o.d(w,"L",function(){return pt}),o.d(w,"K",function(){return it}),o.d(w,"D",function(){return At}),o.d(w,"C",function(){return Nt}),o.d(w,"s",function(){return _i}),o.d(w,"B",function(){return wt}),o.d(w,"U",function(){return Ni}),o.d(w,"W",function(){return pi}),o.d(w,"V",function(){return et}),o.d(w,"X",function(){return Wt}),o.d(w,"dc",function(){return Li}),o.d(w,"ec",function(){return Ii}),o.d(w,"fc",function(){return Ai}),o.d(w,"Yb",function(){return Zi}),o.d(w,"Xb",function(){return Bi}),o.d(w,"O",function(){return Lt}),o.d(w,"P",function(){return Di}),o.d(w,"J",function(){return gt}),o.d(w,"Q",function(){return vi}),o.d(w,"R",function(){return Rt}),o.d(w,"v",function(){return vt}),o.d(w,"x",function(){return Ue}),o.d(w,"z",function(){return ut}),o.d(w,"w",function(){return ze}),o.d(w,"y",function(){return st}),o.d(w,"A",function(){return _t}),o.d(w,"H",function(){return oi}),o.d(w,"E",function(){return li}),o.d(w,"G",function(){return gi}),o.d(w,"F",function(){return ki}),o.d(w,"I",function(){return Ri}),o.d(w,"r",function(){return $i}),o.d(w,"N",function(){return Hi}),o.d(w,"M",function(){return yi}),o.d(w,"j",function(){return kt}),o.d(w,"k",function(){return Et}),o.d(w,"n",function(){return si}),o.d(w,"p",function(){return Si}),o.d(w,"o",function(){return Pi}),o.d(w,"q",function(){return Wi}),o.d(w,"l",function(){return xn}),o.d(w,"m",function(){return un}),o.d(w,"xb",function(){return bn}),o.d(w,"yb",function(){return Fn}),o.d(w,"rb",function(){return Mn}),o.d(w,"sb",function(){return Nn}),o.d(w,"Db",function(){return Hn}),o.d(w,"Eb",function(){return Jn}),o.d(w,"Cb",function(){return _o}),o.d(w,"Ab",function(){return pn}),o.d(w,"Bb",function(){return Gn}),o.d(w,"tb",function(){return on}),o.d(w,"zb",function(){return ho}),o.d(w,"ub",function(){return On}),o.d(w,"wb",function(){return Dn}),o.d(w,"vb",function(){return qt}),o.d(w,"tc",function(){return I}),o.d(w,"Gb",function(){return ne}),o.d(w,"Hb",function(){return _e}),o.d(w,"Fb",function(){return Fe}),o.d(w,"Kb",function(){return Xe}),o.d(w,"Ib",function(){return ot}),o.d(w,"Jb",function(){return Mt}),o.d(w,"Lb",function(){return Ot}),o.d(w,"oc",function(){return Tt}),o.d(w,"pc",function(){return Ht}),o.d(w,"mc",function(){return jt}),o.d(w,"nc",function(){return Kt}),o.d(w,"Vb",function(){return wi}),o.d(w,"Wb",function(){return Ti}),o.d(w,"Ob",function(){return ft}),o.d(w,"Pb",function(){return X}),o.d(w,"Nb",function(){return ae}),o.d(w,"Tb",function(){return Ge}),o.d(w,"Mb",function(){return lt}),o.d(w,"Rb",function(){return Dt}),o.d(w,"Sb",function(){return Gt}),o.d(w,"Qb",function(){return ti}),o.d(w,"Zb",function(){return ye}),o.d(w,"bc",function(){return le}),o.d(w,"ac",function(){return ue}),o.d(w,"i",function(){return qe}),o.d(w,"sc",function(){return tt}),o.d(w,"Ub",function(){return rt}),o.d(w,"hc",function(){return Jt});var h=o(56),f=o(16),D=o(6),H=o(0),E=o(188),ge=o(20);let W={ColorContribution:"base.contributions.colors"},Q=new class{constructor(){this._onDidChangeSchema=new D.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(ai,fi,ui,Te=!1,Ee){let ve={id:ai,description:ui,defaults:fi,needsTransparency:Te,deprecationMessage:Ee};this.colorsById[ai]=ve;let Re={type:"string",description:ui,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Ee&&(Re.deprecationMessage=Ee),this.colorSchema.properties[ai]=Re,this.colorReferenceSchema.enum.push(ai),this.colorReferenceSchema.enumDescriptions.push(ui),this._onDidChangeSchema.fire(),ai}resolveDefaultColor(ai,fi){let ui=this.colorsById[ai];if(ui&&ui.defaults)return Jt(ui.defaults[fi.type],fi)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((ai,fi)=>{let ui=ai.indexOf(".")===-1?0:1,Te=fi.indexOf(".")===-1?0:1;return ui!==Te?ui-Te:ai.localeCompare(fi)}).map(ai=>`- \`${ai}\`: ${this.colorsById[ai].description}`).join(` -`)}};function y(ai,fi,ui,Te,Ee){return Q.registerColor(ai,fi,ui,Te,Ee)}h.a.add(W.ColorContribution,Q);let C=y("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},H.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=y("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},H.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),P=y("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},H.a("iconForeground","The default color for icons in the workbench.")),V=y("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},H.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),k=y("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},H.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),l=y("contrastActiveBorder",{light:null,dark:null,hc:V},H.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=y("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},H.a("textLinkForeground","Foreground color for links in text.")),N=y("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:f.a.black},H.a("textCodeBlockBackground","Background color for code blocks in text.")),b=y("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},H.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),g=y("input.background",{dark:"#3C3C3C",light:f.a.white,hc:f.a.black},H.a("inputBoxBackground","Input box background.")),j=y("input.foreground",{dark:C,light:C,hc:C},H.a("inputBoxForeground","Input box foreground.")),ie=y("input.border",{dark:null,light:null,hc:k},H.a("inputBoxBorder","Input box border.")),U=y("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:k},H.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),q=y("inputOption.activeBackground",{dark:tt(V,.4),light:tt(V,.2),hc:f.a.transparent},H.a("inputOption.activeBackground","Background color of activated options in input fields.")),B=y("inputOption.activeForeground",{dark:f.a.white,light:f.a.black,hc:null},H.a("inputOption.activeForeground","Foreground color of activated options in input fields.")),se=y("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:f.a.black},H.a("inputValidationInfoBackground","Input validation background color for information severity.")),ke=y("inputValidation.infoForeground",{dark:null,light:null,hc:null},H.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),xe=y("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:k},H.a("inputValidationInfoBorder","Input validation border color for information severity.")),Y=y("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:f.a.black},H.a("inputValidationWarningBackground","Input validation background color for warning severity.")),Z=y("inputValidation.warningForeground",{dark:null,light:null,hc:null},H.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),te=y("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:k},H.a("inputValidationWarningBorder","Input validation border color for warning severity.")),he=y("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:f.a.black},H.a("inputValidationErrorBackground","Input validation background color for error severity.")),Ce=y("inputValidation.errorForeground",{dark:null,light:null,hc:null},H.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ae=y("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:k},H.a("inputValidationErrorBorder","Input validation border color for error severity.")),L=y("dropdown.background",{dark:"#3C3C3C",light:f.a.white,hc:f.a.black},H.a("dropdownBackground","Dropdown background.")),nt=y("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:f.a.white},H.a("dropdownForeground","Dropdown foreground.")),ct=y("button.foreground",{dark:f.a.white,light:f.a.white,hc:f.a.white},H.a("buttonForeground","Button foreground color.")),Ye=y("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},H.a("buttonBackground","Button background color.")),ht=y("button.hoverBackground",{dark:Ze(Ye,.2),light:qe(Ye,.2),hc:null},H.a("buttonHoverBackground","Button background color when hovering.")),fe=y("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:f.a.black},H.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),$=y("badge.foreground",{dark:f.a.white,light:"#333",hc:f.a.white},H.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),G=y("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},H.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),z=y("scrollbarSlider.background",{dark:f.a.fromHex("#797979").transparent(.4),light:f.a.fromHex("#646464").transparent(.4),hc:tt(k,.6)},H.a("scrollbarSliderBackground","Scrollbar slider background color.")),J=y("scrollbarSlider.hoverBackground",{dark:f.a.fromHex("#646464").transparent(.7),light:f.a.fromHex("#646464").transparent(.7),hc:tt(k,.8)},H.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Se=y("scrollbarSlider.activeBackground",{dark:f.a.fromHex("#BFBFBF").transparent(.4),light:f.a.fromHex("#000000").transparent(.6),hc:k},H.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),A=y("progressBar.background",{dark:f.a.fromHex("#0E70C0"),light:f.a.fromHex("#0E70C0"),hc:k},H.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ee=y("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},H.a("editorError.foreground","Foreground color of error squigglies in the editor.")),de=y("editorError.border",{dark:null,light:null,hc:f.a.fromHex("#E47777").transparent(.8)},H.a("errorBorder","Border color of error boxes in the editor.")),Oe=y("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},H.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$e=y("editorWarning.border",{dark:null,light:null,hc:f.a.fromHex("#FFCC00").transparent(.8)},H.a("warningBorder","Border color of warning boxes in the editor.")),pt=y("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},H.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),it=y("editorInfo.border",{dark:null,light:null,hc:f.a.fromHex("#75BEFF").transparent(.8)},H.a("infoBorder","Border color of info boxes in the editor.")),At=y("editorHint.foreground",{dark:f.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},H.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Nt=y("editorHint.border",{dark:null,light:null,hc:f.a.fromHex("#eeeeee").transparent(.8)},H.a("hintBorder","Border color of hint boxes in the editor.")),_i=y("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:f.a.black},H.a("editorBackground","Editor background color.")),wt=y("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:f.a.white},H.a("editorForeground","Editor default foreground color.")),Ni=y("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},H.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),pi=y("editorWidget.foreground",{dark:C,light:C,hc:C},H.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),et=y("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:k},H.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Wt=y("editorWidget.resizeBorder",{light:null,dark:null,hc:null},H.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Li=y("quickInput.background",{dark:Ni,light:Ni,hc:Ni},H.a("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Ii=y("quickInput.foreground",{dark:pi,light:pi,hc:pi},H.a("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Ai=y("quickInputTitle.background",{dark:new f.a(new f.c(255,255,255,.105)),light:new f.a(new f.c(0,0,0,.06)),hc:"#000000"},H.a("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Zi=y("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:f.a.white},H.a("pickerGroupForeground","Quick picker color for grouping labels.")),Bi=y("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:f.a.white},H.a("pickerGroupBorder","Quick picker color for grouping borders.")),Lt=y("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},H.a("editorSelectionBackground","Color of the editor selection.")),Di=y("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},H.a("editorSelectionForeground","Color of the selected text for high contrast.")),gt=y("editor.inactiveSelectionBackground",{light:tt(Lt,.5),dark:tt(Lt,.5),hc:tt(Lt,.5)},H.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),vi=y("editor.selectionHighlightBackground",{light:zt(Lt,_i,.3,.6),dark:zt(Lt,_i,.3,.6),hc:null},H.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=y("editor.selectionHighlightBorder",{light:null,dark:null,hc:l},H.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),vt=y("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},H.a("editorFindMatch","Color of the current search match.")),Ue=y("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},H.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),ut=y("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},H.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ze=y("editor.findMatchBorder",{light:null,dark:null,hc:l},H.a("editorFindMatchBorder","Border color of the current search match.")),st=y("editor.findMatchHighlightBorder",{light:null,dark:null,hc:l},H.a("findMatchHighlightBorder","Border color of the other search matches.")),_t=y("editor.findRangeHighlightBorder",{dark:null,light:null,hc:tt(l,.4)},H.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),oi=y("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},H.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),li=y("editorHoverWidget.background",{light:Ni,dark:Ni,hc:Ni},H.a("hoverBackground","Background color of the editor hover.")),gi=y("editorHoverWidget.foreground",{light:pi,dark:pi,hc:pi},H.a("hoverForeground","Foreground color of the editor hover.")),ki=y("editorHoverWidget.border",{light:et,dark:et,hc:et},H.a("hoverBorder","Border color of the editor hover.")),Ri=y("editorHoverWidget.statusBarBackground",{dark:Ze(li,.2),light:qe(li,.05),hc:Ni},H.a("statusBarBackground","Background color of the editor hover status bar.")),$i=y("editorLink.activeForeground",{dark:"#4E94CE",light:f.a.blue,hc:f.a.cyan},H.a("activeLinkForeground","Color of active links.")),Hi=y("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},H.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),yi=y("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},H.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),kt=new f.a(new f.c(155,185,85,.2)),Et=new f.a(new f.c(255,0,0,.2)),si=y("diffEditor.insertedTextBackground",{dark:kt,light:kt,hc:null},H.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Si=y("diffEditor.removedTextBackground",{dark:Et,light:Et,hc:null},H.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Pi=y("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},H.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Wi=y("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},H.a("diffEditorRemovedOutline","Outline color for text that got removed.")),xn=y("diffEditor.border",{dark:null,light:null,hc:k},H.a("diffEditorBorder","Border color between the two text editors.")),un=y("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},H.a("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),bn=y("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},H.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Fn=y("list.focusForeground",{dark:null,light:null,hc:null},H.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Mn=y("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},H.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Nn=y("list.activeSelectionForeground",{dark:f.a.white,light:f.a.white,hc:null},H.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Hn=y("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},H.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Jn=y("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},H.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_o=y("list.inactiveFocusBackground",{dark:null,light:null,hc:null},H.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),pn=y("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},H.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Gn=y("list.hoverForeground",{dark:null,light:null,hc:null},H.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),on=y("list.dropBackground",{dark:bn,light:bn,hc:null},H.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),ho=y("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:V},H.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),On=y("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:f.a.black},H.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Dn=y("listFilterWidget.outline",{dark:f.a.transparent,light:f.a.transparent,hc:"#f38518"},H.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),qt=y("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:k},H.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),I=y("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},H.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ne=y("menu.border",{dark:null,light:null,hc:k},H.a("menuBorder","Border color of menus.")),_e=y("menu.foreground",{dark:nt,light:C,hc:nt},H.a("menuForeground","Foreground color of menu items.")),Fe=y("menu.background",{dark:L,light:L,hc:L},H.a("menuBackground","Background color of menu items.")),Xe=y("menu.selectionForeground",{dark:Nn,light:Nn,hc:Nn},H.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),ot=y("menu.selectionBackground",{dark:Mn,light:Mn,hc:Mn},H.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Mt=y("menu.selectionBorder",{dark:null,light:null,hc:l},H.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Ot=y("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:k},H.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Tt=y("editor.snippetTabstopHighlightBackground",{dark:new f.a(new f.c(124,124,124,.3)),light:new f.a(new f.c(10,50,100,.2)),hc:new f.a(new f.c(124,124,124,.3))},H.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Ht=y("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},H.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),jt=y("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},H.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Kt=y("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new f.a(new f.c(10,50,100,.5)),hc:"#525252"},H.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),wi=y("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},H.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ti=y("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},H.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ft=y("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},H.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),X=y("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},H.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ae=y("minimap.errorHighlight",{dark:new f.a(new f.c(255,18,18,.7)),light:new f.a(new f.c(255,18,18,.7)),hc:new f.a(new f.c(255,50,50,1))},H.a("minimapError","Minimap marker color for errors.")),Ge=y("minimap.warningHighlight",{dark:Oe,light:Oe,hc:$e},H.a("overviewRuleWarning","Minimap marker color for warnings.")),lt=y("minimap.background",{dark:null,light:null,hc:null},H.a("minimapBackground","Minimap background color.")),Dt=y("minimapSlider.background",{light:tt(z,.5),dark:tt(z,.5),hc:tt(z,.5)},H.a("minimapSliderBackground","Minimap slider background color.")),Gt=y("minimapSlider.hoverBackground",{light:tt(J,.5),dark:tt(J,.5),hc:tt(J,.5)},H.a("minimapSliderHoverBackground","Minimap slider background color when hovering.")),ti=y("minimapSlider.activeBackground",{light:tt(Se,.5),dark:tt(Se,.5),hc:tt(Se,.5)},H.a("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),ye=y("problemsErrorIcon.foreground",{dark:ee,light:ee,hc:ee},H.a("problemsErrorIconForeground","The color used for the problems error icon.")),le=y("problemsWarningIcon.foreground",{dark:Oe,light:Oe,hc:Oe},H.a("problemsWarningIconForeground","The color used for the problems warning icon.")),ue=y("problemsInfoIcon.foreground",{dark:pt,light:pt,hc:pt},H.a("problemsInfoIconForeground","The color used for the problems info icon."));function qe(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.darken(fi)}}function Ze(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.lighten(fi)}}function tt(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.transparent(fi)}}function rt(...ai){return fi=>{for(let ui of ai){let Te=Jt(ui,fi);if(Te)return Te}}}function zt(ai,fi,ui,Te){return Ee=>{let ve=Jt(ai,Ee);if(ve){let Re=Jt(fi,Ee);return Re?ve.isDarkerThan(Re)?f.a.getLighterColor(ve,Re,ui).transparent(Te):f.a.getDarkerColor(ve,Re,ui).transparent(Te):ve.transparent(ui*Te)}}}function Jt(ai,fi){if(ai!==null)return typeof ai=="string"?ai[0]==="#"?f.a.fromHex(ai):fi.getColor(ai):ai instanceof f.a?ai:typeof ai=="function"?ai(fi):void 0}let xi=h.a.as(E.a.JSONContribution);xi.registerSchema("vscode://schemas/workbench-colors",Q.getColorSchema());let Ei=new ge.d(()=>xi.notifySchemaChanged("vscode://schemas/workbench-colors"),200);Q.onDidChangeSchema(()=>{Ei.isScheduled()||Ei.schedule()})},function(Ie,w,o){"use strict";o.d(w,"b",function(){return h}),o.d(w,"a",function(){return E}),o.d(w,"d",function(){return ge}),o.d(w,"c",function(){return W}),o.d(w,"e",function(){return Q});var h,f=o(13),D=o(2),H=o(53);(function(y){function C(g){return(j,ie=null,U)=>{let q,B=!1;return q=g(se=>{if(!B)return q?q.dispose():B=!0,j.call(ie,se)},null,U),B&&q.dispose(),q}}function S(g,j){return l((ie,U=null,q)=>g(B=>ie.call(U,j(B)),null,q))}function P(g,j){return l((ie,U=null,q)=>g(B=>{j(B),ie.call(U,B)},null,q))}function V(g,j){return l((ie,U=null,q)=>g(B=>j(B)&&ie.call(U,B),null,q))}function k(g,j,ie){let U=ie;return S(g,q=>(U=j(U,q),U))}function l(g){let j,ie=new E({onFirstListenerAdd(){j=g(ie.fire,ie)},onLastListenerRemove(){j.dispose()}});return ie.event}function T(g,j,ie=100,U=!1,q){let B,se,ke,xe=0,Y=new E({leakWarningThreshold:q,onFirstListenerAdd(){B=g(Z=>{xe++,se=j(se,Z),U&&!ke&&(Y.fire(se),se=void 0),clearTimeout(ke),ke=setTimeout(()=>{let te=se;se=void 0,ke=void 0,(!U||xe>1)&&Y.fire(te),xe=0},ie)})},onLastListenerRemove(){B.dispose()}});return Y.event}function N(g){let j,ie=!0;return V(g,U=>{let q=ie||U!==j;return ie=!1,j=U,q})}y.None=()=>D.a.None,y.once=C,y.map=S,y.forEach=P,y.filter=V,y.signal=function(g){return g},y.any=function(...g){return(j,ie=null,U)=>Object(D.e)(...g.map(q=>q(B=>j.call(ie,B),null,U)))},y.reduce=k,y.snapshot=l,y.debounce=T,y.stopwatch=function(g){let j=new Date().getTime();return S(C(g),ie=>new Date().getTime()-j)},y.latch=N,y.buffer=function(g,j=!1,ie=[]){let U=ie.slice(),q=g(ke=>{U?U.push(ke):se.fire(ke)}),B=()=>{U&&U.forEach(ke=>se.fire(ke)),U=null},se=new E({onFirstListenerAdd(){q||(q=g(ke=>se.fire(ke)))},onFirstListenerDidAdd(){U&&(j?setTimeout(B):B())},onLastListenerRemove(){q&&q.dispose(),q=null}});return se.event};class b{constructor(j){this.event=j}map(j){return new b(S(this.event,j))}forEach(j){return new b(P(this.event,j))}filter(j){return new b(V(this.event,j))}reduce(j,ie){return new b(k(this.event,j,ie))}latch(){return new b(N(this.event))}debounce(j,ie=100,U=!1,q){return new b(T(this.event,j,ie,U,q))}on(j,ie,U){return this.event(j,ie,U)}once(j,ie,U){return C(this.event)(j,ie,U)}}y.chain=function(g){return new b(g)},y.fromNodeEventEmitter=function(g,j,ie=U=>U){let U=(...B)=>q.fire(ie(...B)),q=new E({onFirstListenerAdd:()=>g.on(j,U),onLastListenerRemove:()=>g.removeListener(j,U)});return q.event},y.fromDOMEventEmitter=function(g,j,ie=U=>U){let U=(...B)=>q.fire(ie(...B)),q=new E({onFirstListenerAdd:()=>g.addEventListener(j,U),onLastListenerRemove:()=>g.removeEventListener(j,U)});return q.event},y.fromPromise=function(g){let j=new E,ie=!1;return g.then(void 0,()=>null).then(()=>{ie?j.fire(void 0):setTimeout(()=>j.fire(void 0),0)}),ie=!0,j.event},y.toPromise=function(g){return new Promise(j=>C(g)(j))}})(h||(h={}));class E{constructor(C){this._disposed=!1,this._options=C,this._leakageMon=void 0}get event(){return this._event||(this._event=(C,S,P)=>{this._listeners||(this._listeners=new H.a);let V=this._listeners.isEmpty();V&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let k=this._listeners.push(S?[C,S]:C),l,T;return V&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,C,S),this._leakageMon&&(l=this._leakageMon.check(this._listeners.size)),T={dispose:()=>{l&&l(),T.dispose=E._noop,!this._disposed&&(k(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}},P instanceof D.b?P.add(T):Array.isArray(P)&&P.push(T),T}),this._event}fire(C){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new H.a);for(let S of this._listeners)this._deliveryQueue.push([S,C]);for(;this._deliveryQueue.size>0;){let[S,P]=this._deliveryQueue.shift();try{typeof S=="function"?S.call(void 0,P):S[0].call(S[1],P)}catch(V){Object(f.e)(V)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}E._noop=function(){};class ge extends E{constructor(C){super(C),this._isPaused=0,this._eventQueue=new H.a,this._mergeFn=C&&C.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){let C=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(C))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(C){this._listeners&&(this._isPaused!==0?this._eventQueue.push(C):super.fire(C))}}class W{constructor(){this.buffers=[]}wrapEvent(C){return(S,P,V)=>C(k=>{let l=this.buffers[this.buffers.length-1];l?l.push(()=>S.call(P,k)):S.call(P,k)},void 0,V)}bufferEvents(C){let S=[];this.buffers.push(S);let P=C();return this.buffers.pop(),S.forEach(V=>V()),P}}class Q{constructor(){this.listening=!1,this.inputEvent=h.None,this.inputEventListener=D.a.None,this.emitter=new E({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(C){this.inputEvent=C,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=C(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h});var h,f=o(10);(function(D){D.editorSimpleInput=new f.c("editorSimpleInput",!1),D.editorTextFocus=new f.c("editorTextFocus",!1),D.focus=new f.c("editorFocus",!1),D.textInputFocus=new f.c("textInputFocus",!1),D.readOnly=new f.c("editorReadonly",!1),D.columnSelection=new f.c("editorColumnSelection",!1),D.writable=D.readOnly.toNegated(),D.hasNonEmptySelection=new f.c("editorHasSelection",!1),D.hasOnlyEmptySelection=D.hasNonEmptySelection.toNegated(),D.hasMultipleSelections=new f.c("editorHasMultipleSelections",!1),D.hasSingleSelection=D.hasMultipleSelections.toNegated(),D.tabMovesFocus=new f.c("editorTabMovesFocus",!1),D.tabDoesNotMoveFocus=D.tabMovesFocus.toNegated(),D.isInWalkThroughSnippet=new f.c("isInEmbeddedEditor",!1),D.canUndo=new f.c("canUndo",!1),D.canRedo=new f.c("canRedo",!1),D.hoverVisible=new f.c("editorHoverVisible",!1),D.inCompositeEditor=new f.c("inCompositeEditor",void 0),D.notInCompositeEditor=D.inCompositeEditor.toNegated(),D.languageId=new f.c("editorLangId",""),D.hasCompletionItemProvider=new f.c("editorHasCompletionItemProvider",!1),D.hasCodeActionsProvider=new f.c("editorHasCodeActionsProvider",!1),D.hasCodeLensProvider=new f.c("editorHasCodeLensProvider",!1),D.hasDefinitionProvider=new f.c("editorHasDefinitionProvider",!1),D.hasDeclarationProvider=new f.c("editorHasDeclarationProvider",!1),D.hasImplementationProvider=new f.c("editorHasImplementationProvider",!1),D.hasTypeDefinitionProvider=new f.c("editorHasTypeDefinitionProvider",!1),D.hasHoverProvider=new f.c("editorHasHoverProvider",!1),D.hasDocumentHighlightProvider=new f.c("editorHasDocumentHighlightProvider",!1),D.hasDocumentSymbolProvider=new f.c("editorHasDocumentSymbolProvider",!1),D.hasReferenceProvider=new f.c("editorHasReferenceProvider",!1),D.hasRenameProvider=new f.c("editorHasRenameProvider",!1),D.hasSignatureHelpProvider=new f.c("editorHasSignatureHelpProvider",!1),D.hasDocumentFormattingProvider=new f.c("editorHasDocumentFormattingProvider",!1),D.hasDocumentSelectionFormattingProvider=new f.c("editorHasDocumentSelectionFormattingProvider",!1),D.hasMultipleDocumentFormattingProvider=new f.c("editorHasMultipleDocumentFormattingProvider",!1),D.hasMultipleDocumentSelectionFormattingProvider=new f.c("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(h||(h={}))},function(Ie,w,o){"use strict";function h(et){return!et||typeof et!="string"||et.trim().length===0}function f(et,Wt,Li="0"){let Ii=""+et,Ai=[Ii];for(let Zi=Ii.length;Zi<Wt;Zi++)Ai.push(Li);return Ai.reverse().join("")}o.d(w,"D",function(){return h}),o.d(w,"M",function(){return f}),o.d(w,"x",function(){return H}),o.d(w,"u",function(){return E}),o.d(w,"v",function(){return ge}),o.d(w,"W",function(){return W}),o.d(w,"K",function(){return Q}),o.d(w,"Q",function(){return y}),o.d(w,"p",function(){return C}),o.d(w,"V",function(){return S}),o.d(w,"S",function(){return P}),o.d(w,"s",function(){return V}),o.d(w,"q",function(){return k}),o.d(w,"P",function(){return l}),o.d(w,"O",function(){return T}),o.d(w,"w",function(){return N}),o.d(w,"z",function(){return b}),o.d(w,"J",function(){return g}),o.d(w,"f",function(){return j}),o.d(w,"h",function(){return ie}),o.d(w,"g",function(){return U}),o.d(w,"i",function(){return q}),o.d(w,"H",function(){return B}),o.d(w,"I",function(){return se}),o.d(w,"t",function(){return xe}),o.d(w,"T",function(){return Z}),o.d(w,"d",function(){return te}),o.d(w,"e",function(){return he}),o.d(w,"F",function(){return Ce}),o.d(w,"G",function(){return Ae}),o.d(w,"j",function(){return L}),o.d(w,"A",function(){return nt}),o.d(w,"L",function(){return Ye}),o.d(w,"N",function(){return ht}),o.d(w,"r",function(){return fe}),o.d(w,"m",function(){return G}),o.d(w,"k",function(){return J}),o.d(w,"B",function(){return A}),o.d(w,"a",function(){return ee}),o.d(w,"n",function(){return de}),o.d(w,"l",function(){return Oe}),o.d(w,"E",function(){return $e}),o.d(w,"C",function(){return pt}),o.d(w,"b",function(){return it}),o.d(w,"U",function(){return At}),o.d(w,"o",function(){return Nt}),o.d(w,"R",function(){return _i}),o.d(w,"y",function(){return wt}),o.d(w,"c",function(){return Ni});let D=/{(\d+)}/g;function H(et,...Wt){return Wt.length===0?et:et.replace(D,function(Li,Ii){let Ai=parseInt(Ii,10);return isNaN(Ai)||Ai<0||Ai>=Wt.length?Li:Wt[Ai]})}function E(et){return et.replace(/[<>&]/g,function(Wt){switch(Wt){case"<":return"<";case">":return">";case"&":return"&";default:return Wt}})}function ge(et){return et.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(et,Wt=" "){return y(Q(et,Wt),Wt)}function Q(et,Wt){if(!et||!Wt)return et;let Li=Wt.length;if(Li===0||et.length===0)return et;let Ii=0;for(;et.indexOf(Wt,Ii)===Ii;)Ii+=Li;return et.substring(Ii)}function y(et,Wt){if(!et||!Wt)return et;let Li=Wt.length,Ii=et.length;if(Li===0||Ii===0)return et;let Ai=Ii,Zi=-1;for(;Zi=et.lastIndexOf(Wt,Ai-1),Zi!==-1&&Zi+Li===Ai;){if(Zi===0)return"";Ai=Zi}return et.substring(0,Ai)}function C(et){return et.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function S(et){return et.replace(/\*/g,"")}function P(et,Wt){if(et.length<Wt.length)return!1;if(et===Wt)return!0;for(let Li=0;Li<Wt.length;Li++)if(et[Li]!==Wt[Li])return!1;return!0}function V(et,Wt){let Li=et.length-Wt.length;return Li>0?et.indexOf(Wt,Li)===Li:Li===0&&et===Wt}function k(et,Wt,Li={}){if(!et)throw new Error("Cannot create regex from empty string");Wt||(et=ge(et)),Li.wholeWord&&(/\B/.test(et.charAt(0))||(et="\\b"+et),/\B/.test(et.charAt(et.length-1))||(et+="\\b"));let Ii="";return Li.global&&(Ii+="g"),Li.matchCase||(Ii+="i"),Li.multiline&&(Ii+="m"),Li.unicode&&(Ii+="u"),new RegExp(et,Ii)}function l(et){return et.source==="^"||et.source==="^$"||et.source==="$"||et.source==="^\\s*$"?!1:!(!et.exec("")||et.lastIndex!==0)}function T(et){return(et.global?"g":"")+(et.ignoreCase?"i":"")+(et.multiline?"m":"")+(et.unicode?"u":"")}function N(et){for(let Wt=0,Li=et.length;Wt<Li;Wt++){let Ii=et.charCodeAt(Wt);if(Ii!==32&&Ii!==9)return Wt}return-1}function b(et,Wt=0,Li=et.length){for(let Ii=Wt;Ii<Li;Ii++){let Ai=et.charCodeAt(Ii);if(Ai!==32&&Ai!==9)return et.substring(Wt,Ii)}return et.substring(Wt,Li)}function g(et,Wt=et.length-1){for(let Li=Wt;Li>=0;Li--){let Ii=et.charCodeAt(Li);if(Ii!==32&&Ii!==9)return Li}return-1}function j(et,Wt){return et<Wt?-1:et>Wt?1:0}function ie(et,Wt,Li=0,Ii=et.length,Ai=0,Zi=Wt.length){for(;Li<Ii&&Ai<Zi;Li++,Ai++){let Di=et.charCodeAt(Li),gt=Wt.charCodeAt(Ai);if(Di<gt)return-1;if(Di>gt)return 1}let Bi=Ii-Li,Lt=Zi-Ai;return Bi<Lt?-1:Bi>Lt?1:0}function U(et,Wt){return q(et,Wt,0,et.length,0,Wt.length)}function q(et,Wt,Li=0,Ii=et.length,Ai=0,Zi=Wt.length){for(;Li<Ii&&Ai<Zi;Li++,Ai++){let Di=et.charCodeAt(Li),gt=Wt.charCodeAt(Ai);if(Di===gt)continue;let vi=Di-gt;if((vi!==32||!se(gt))&&(vi!==-32||!se(Di)))return B(Di)&&B(gt)?vi:ie(et.toLowerCase(),Wt.toLowerCase(),Li,Ii,Ai,Zi)}let Bi=Ii-Li,Lt=Zi-Ai;return Bi<Lt?-1:Bi>Lt?1:0}function B(et){return et>=97&&et<=122}function se(et){return et>=65&&et<=90}function ke(et){return B(et)||se(et)}function xe(et,Wt){return et.length===Wt.length&&Y(et,Wt)}function Y(et,Wt,Li=et.length){for(let Ii=0;Ii<Li;Ii++){let Ai=et.charCodeAt(Ii),Zi=Wt.charCodeAt(Ii);if(Ai!==Zi){if(ke(Ai)&&ke(Zi)){let Bi=Math.abs(Ai-Zi);if(Bi!==0&&Bi!==32)return!1}else if(String.fromCharCode(Ai).toLowerCase()!==String.fromCharCode(Zi).toLowerCase())return!1}}return!0}function Z(et,Wt){let Li=Wt.length;return!(Wt.length>et.length)&&Y(et,Wt,Li)}function te(et,Wt){let Li,Ii=Math.min(et.length,Wt.length);for(Li=0;Li<Ii;Li++)if(et.charCodeAt(Li)!==Wt.charCodeAt(Li))return Li;return Ii}function he(et,Wt){let Li,Ii=Math.min(et.length,Wt.length),Ai=et.length-1,Zi=Wt.length-1;for(Li=0;Li<Ii;Li++)if(et.charCodeAt(Ai-Li)!==Wt.charCodeAt(Zi-Li))return Li;return Ii}function Ce(et){return 55296<=et&&et<=56319}function Ae(et){return 56320<=et&&et<=57343}function L(et,Wt){return Wt-56320+(et-55296<<10)+65536}function nt(et,Wt,Li){let Ii=et.charCodeAt(Li);if(Ce(Ii)&&Li+1<Wt){let Ai=et.charCodeAt(Li+1);if(Ae(Ai))return L(Ii,Ai)}return Ii}function ct(et,Wt){let Li=et.charCodeAt(Wt-1);if(Ae(Li)&&Wt>1){let Ii=et.charCodeAt(Wt-2);if(Ce(Ii))return L(Ii,Li)}return Li}function Ye(et,Wt){let Li=pi.getInstance(),Ii=Wt,Ai=et.length,Zi=nt(et,Ai,Wt);Wt+=Zi>=65536?2:1;let Bi=Li.getGraphemeBreakType(Zi);for(;Wt<Ai;){let Lt=nt(et,Ai,Wt),Di=Li.getGraphemeBreakType(Lt);if(Ni(Bi,Di))break;Wt+=Lt>=65536?2:1,Bi=Di}return Wt-Ii}function ht(et,Wt){let Li=pi.getInstance(),Ii=Wt,Ai=ct(et,Wt);Wt-=Ai>=65536?2:1;let Zi=Li.getGraphemeBreakType(Ai);for(;Wt>0;){let Bi=ct(et,Wt),Lt=Li.getGraphemeBreakType(Bi);if(Ni(Lt,Zi))break;Wt-=Bi>=65536?2:1,Zi=Lt}return Ii-Wt}function fe(et){let Wt=et.byteLength,Li=[],Ii=0;for(;Ii<Wt;){let Ai=et[Ii],Zi;if(Zi=Ai>=240&&Ii+3<Wt?(7&et[Ii++])<<18>>>0|(63&et[Ii++])<<12>>>0|(63&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:Ai>=224&&Ii+2<Wt?(15&et[Ii++])<<12>>>0|(63&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:Ai>=192&&Ii+1<Wt?(31&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:et[Ii++],Zi>=0&&Zi<=55295||Zi>=57344&&Zi<=65535)Li.push(String.fromCharCode(Zi));else if(Zi>=65536&&Zi<=1114111){let Bi=Zi-65536,Lt=55296+((1047552&Bi)>>>10),Di=56320+((1023&Bi)>>>0);Li.push(String.fromCharCode(Lt)),Li.push(String.fromCharCode(Di))}else Li.push(String.fromCharCode(65533))}return Li.join("")}let $=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(et){return $.test(et)}let z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function J(et){return z.test(et)}let Se=/^[\t\n\r\x20-\x7E]*$/;function A(et){return Se.test(et)}let ee=/[\u2028\u2029]/;function de(et){return ee.test(et)}function Oe(et){for(let Wt=0,Li=et.length;Wt<Li;Wt++)if($e(et.charCodeAt(Wt)))return!0;return!1}function $e(et){return(et=+et)>=11904&&et<=55215||et>=63744&&et<=64255||et>=65281&&et<=65374}function pt(et){return et>=127462&&et<=127487||et>=9728&&et<=10175||et>=127744&&et<=128591||et>=128640&&et<=128764||et>=128992&&et<=129003||et>=129280&&et<=129535||et>=129648&&et<=129651||et>=129656&&et<=129666||et>=129680&&et<=129685}let it=String.fromCharCode(65279);function At(et){return!!(et&&et.length>0&&et.charCodeAt(0)===65279)}function Nt(et,Wt=!1){return!!et&&(Wt&&(et=et.replace(/\\./g,"")),et.toLowerCase()!==et)}function _i(et){return(et%=52)<26?String.fromCharCode(97+et):String.fromCharCode(65+et-26)}function wt(et){return pi.getInstance().getGraphemeBreakType(et)}function Ni(et,Wt){return et===0?Wt!==5&&Wt!==7:(et!==2||Wt!==3)&&(et===4||et===2||et===3||Wt===4||Wt===2||Wt===3||(et!==8||Wt!==8&&Wt!==9&&Wt!==11&&Wt!==12)&&(et!==11&&et!==9||Wt!==9&&Wt!==10)&&(et!==12&&et!==10||Wt!==10)&&Wt!==5&&Wt!==13&&Wt!==7&&et!==1&&(et!==13||Wt!==14)&&(et!==6||Wt!==6))}class pi{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return pi._INSTANCE||(pi._INSTANCE=new pi),pi._INSTANCE}getGraphemeBreakType(Wt){if(Wt<32)return Wt===10?3:Wt===13?2:4;if(Wt<127)return 0;let Li=this._data,Ii=Li.length/3,Ai=1;for(;Ai<=Ii;)if(Wt<Li[3*Ai])Ai*=2;else{if(!(Wt>Li[3*Ai+1]))return Li[3*Ai+2];Ai=2*Ai+1}return 0}}pi._INSTANCE=null},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h});class h{constructor(D,H){this.lineNumber=D,this.column=H}with(D=this.lineNumber,H=this.column){return D===this.lineNumber&&H===this.column?this:new h(D,H)}delta(D=0,H=0){return this.with(this.lineNumber+D,this.column+H)}equals(D){return h.equals(this,D)}static equals(D,H){return!D&&!H||!!D&&!!H&&D.lineNumber===H.lineNumber&&D.column===H.column}isBefore(D){return h.isBefore(this,D)}static isBefore(D,H){return D.lineNumber<H.lineNumber||!(H.lineNumber<D.lineNumber)&&D.column<H.column}isBeforeOrEqual(D){return h.isBeforeOrEqual(this,D)}static isBeforeOrEqual(D,H){return D.lineNumber<H.lineNumber||!(H.lineNumber<D.lineNumber)&&D.column<=H.column}static compare(D,H){let E=0|D.lineNumber,ge=0|H.lineNumber;return E===ge?(0|D.column)-(0|H.column):E-ge}clone(){return new h(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(D){return new h(D.lineNumber,D.column)}static isIPosition(D){return D&&typeof D.lineNumber=="number"&&typeof D.column=="number"}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"c",function(){return j}),o.d(w,"b",function(){return ie}),o.d(w,"d",function(){return U});var h=o(8),f=o(18),D=o(11);let H=new Map;H.set("false",!1),H.set("true",!0),H.set("isMac",D.f),H.set("isLinux",D.d),H.set("isWindows",D.i),H.set("isWeb",D.h),H.set("isMacNative",D.f&&!D.h);let E=Object.prototype.hasOwnProperty;class ge{static has(B){return C.create(B)}static equals(B,se){return S.create(B,se)}static regex(B,se){return T.create(B,se)}static not(B){return l.create(B)}static and(...B){return b.create(B)}static or(...B){return g.create(B)}static deserialize(B,se=!1){if(B)return this._deserializeOrExpression(B,se)}static _deserializeOrExpression(B,se){let ke=B.split("||");return g.create(ke.map(xe=>this._deserializeAndExpression(xe,se)))}static _deserializeAndExpression(B,se){let ke=B.split("&&");return b.create(ke.map(xe=>this._deserializeOne(xe,se)))}static _deserializeOne(B,se){if((B=B.trim()).indexOf("!=")>=0){let ke=B.split("!=");return k.create(ke[0].trim(),this._deserializeValue(ke[1],se))}if(B.indexOf("==")>=0){let ke=B.split("==");return S.create(ke[0].trim(),this._deserializeValue(ke[1],se))}if(B.indexOf("=~")>=0){let ke=B.split("=~");return T.create(ke[0].trim(),this._deserializeRegexValue(ke[1],se))}if(B.indexOf(" in ")>=0){let ke=B.split(" in ");return P.create(ke[0].trim(),ke[1].trim())}return/^\!\s*/.test(B)?l.create(B.substr(1).trim()):C.create(B)}static _deserializeValue(B,se){if((B=B.trim())==="true")return!0;if(B==="false")return!1;let ke=/^'([^']*)'$/.exec(B);return ke?ke[1].trim():B}static _deserializeRegexValue(B,se){if(Object(h.D)(B)){if(se)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ke=B.indexOf("/"),xe=B.lastIndexOf("/");if(ke===xe||ke<0){if(se)throw new Error(`bad regexp-value '${B}', missing /-enclosure`);return console.warn(`bad regexp-value '${B}', missing /-enclosure`),null}let Y=B.slice(ke+1,xe),Z=B[xe+1]==="i"?"i":"";try{return new RegExp(Y,Z)}catch(te){if(se)throw new Error(`bad regexp-value '${B}', parse error: ${te}`);return console.warn(`bad regexp-value '${B}', parse error: ${te}`),null}}}function W(q,B){return q.cmp(B)}class Q{constructor(){this.type=0}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}evaluate(B){return!1}serialize(){return"false"}keys(){return[]}negate(){return y.INSTANCE}}Q.INSTANCE=new Q;class y{constructor(){this.type=1}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}evaluate(B){return!0}serialize(){return"true"}keys(){return[]}negate(){return Q.INSTANCE}}y.INSTANCE=new y;class C{constructor(B){this.key=B,this.type=2}static create(B){let se=H.get(B);return typeof se=="boolean"?se?y.INSTANCE:Q.INSTANCE:new C(B)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:0}equals(B){return B.type===this.type&&this.key===B.key}evaluate(B){return!!B.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return l.create(this.key)}}class S{constructor(B,se){this.key=B,this.value=se,this.type=4}static create(B,se){if(typeof se=="boolean")return se?C.create(B):l.create(B);let ke=H.get(B);return typeof ke=="boolean"?se===(ke?"true":"false")?y.INSTANCE:Q.INSTANCE:new S(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.value<B.value?-1:this.value>B.value?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.value===B.value}evaluate(B){return B.getValue(this.key)==this.value}serialize(){return this.key+" == '"+this.value+"'"}keys(){return[this.key]}negate(){return k.create(this.key,this.value)}}class P{constructor(B,se){this.key=B,this.valueKey=se,this.type=10}static create(B,se){return new P(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.valueKey<B.valueKey?-1:this.valueKey>B.valueKey?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.valueKey===B.valueKey}evaluate(B){let se=B.getValue(this.valueKey),ke=B.getValue(this.key);return Array.isArray(se)?se.indexOf(ke)>=0:typeof ke=="string"&&typeof se=="object"&&se!==null&&E.call(se,ke)}serialize(){return this.key+" in '"+this.valueKey+"'"}keys(){return[this.key,this.valueKey]}negate(){return V.create(this)}}class V{constructor(B){this._actual=B,this.type=11}static create(B){return new V(B)}cmp(B){return B.type!==this.type?this.type-B.type:this._actual.cmp(B._actual)}equals(B){return B.type===this.type&&this._actual.equals(B._actual)}evaluate(B){return!this._actual.evaluate(B)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class k{constructor(B,se){this.key=B,this.value=se,this.type=5}static create(B,se){if(typeof se=="boolean")return se?l.create(B):C.create(B);let ke=H.get(B);return typeof ke=="boolean"?se===(ke?"true":"false")?Q.INSTANCE:y.INSTANCE:new k(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.value<B.value?-1:this.value>B.value?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.value===B.value}evaluate(B){return B.getValue(this.key)!=this.value}serialize(){return this.key+" != '"+this.value+"'"}keys(){return[this.key]}negate(){return S.create(this.key,this.value)}}class l{constructor(B){this.key=B,this.type=3}static create(B){let se=H.get(B);return typeof se=="boolean"?se?Q.INSTANCE:y.INSTANCE:new l(B)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:0}equals(B){return B.type===this.type&&this.key===B.key}evaluate(B){return!B.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return C.create(this.key)}}class T{constructor(B,se){this.key=B,this.regexp=se,this.type=7}static create(B,se){return new T(B,se)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.key<B.key)return-1;if(this.key>B.key)return 1;let se=this.regexp?this.regexp.source:"",ke=B.regexp?B.regexp.source:"";return se<ke?-1:se>ke?1:0}equals(B){if(B.type===this.type){let se=this.regexp?this.regexp.source:"",ke=B.regexp?B.regexp.source:"";return this.key===B.key&&se===ke}return!1}evaluate(B){let se=B.getValue(this.key);return!!this.regexp&&this.regexp.test(se)}serialize(){let B=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${B}`}keys(){return[this.key]}negate(){return N.create(this)}}class N{constructor(B){this._actual=B,this.type=8}static create(B){return new N(B)}cmp(B){return B.type!==this.type?this.type-B.type:this._actual.cmp(B._actual)}equals(B){return B.type===this.type&&this._actual.equals(B._actual)}evaluate(B){return!this._actual.evaluate(B)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class b{constructor(B){this.expr=B,this.type=6}static create(B){return b._normalizeArr(B)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let se=0,ke=this.expr.length;se<ke;se++){let xe=W(this.expr[se],B.expr[se]);if(xe!==0)return xe}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].equals(B.expr[se]))return!1;return!0}return!1}evaluate(B){for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].evaluate(B))return!1;return!0}static _normalizeArr(B){let se=[],ke=!1;for(let xe of B)if(xe)if(xe.type!==1){if(xe.type===0)return Q.INSTANCE;xe.type!==6?se.push(xe):se.push(...xe.expr)}else ke=!0;if(se.length===0&&ke)return y.INSTANCE;if(se.length!==0){if(se.length===1)return se[0];for(se.sort(W);se.length>1;){let xe=se[se.length-1];if(xe.type!==9)break;se.pop();let Y=se.pop(),Z=g.create(xe.expr.map(te=>b.create([te,Y])));Z&&(se.push(Z),se.sort(W))}return new b(se)}}serialize(){return this.expr.map(B=>B.serialize()).join(" && ")}keys(){let B=[];for(let se of this.expr)B.push(...se.keys());return B}negate(){let B=[];for(let se of this.expr)B.push(se.negate());return g.create(B)}}class g{constructor(B){this.expr=B,this.type=9}static create(B){let se=g._normalizeArr(B);if(se.length!==0)return se.length===1?se[0]:new g(se)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let se=0,ke=this.expr.length;se<ke;se++){let xe=W(this.expr[se],B.expr[se]);if(xe!==0)return xe}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].equals(B.expr[se]))return!1;return!0}return!1}evaluate(B){for(let se=0,ke=this.expr.length;se<ke;se++)if(this.expr[se].evaluate(B))return!0;return!1}static _normalizeArr(B){let se=[],ke=!1;if(B){for(let xe=0,Y=B.length;xe<Y;xe++){let Z=B[xe];if(Z)if(Z.type!==0){if(Z.type===1)return[y.INSTANCE];Z.type!==9?se.push(Z):se=se.concat(Z.expr)}else ke=!0}if(se.length===0&&ke)return[Q.INSTANCE];se.sort(W)}return se}serialize(){return this.expr.map(B=>B.serialize()).join(" || ")}keys(){let B=[];for(let se of this.expr)B.push(...se.keys());return B}negate(){let B=[];for(let ke of this.expr)B.push(ke.negate());let se=ke=>ke.type===9?ke.expr:[ke];for(;B.length>1;){let ke=B.shift(),xe=B.shift(),Y=[];for(let Z of se(ke))for(let te of se(xe))Y.push(ge.and(Z,te));B.unshift(ge.or(...Y))}return B[0]}}class j extends C{constructor(B,se){super(B),this._defaultValue=se}bindTo(B){return B.createKey(this.key,this._defaultValue)}getValue(B){return B.getContextKeyValue(this.key)}toNegated(){return ge.not(this.key)}}let ie=Object(f.c)("contextKeyService"),U="setContext"},function(Ie,w,o){"use strict";(function(h,f){o.d(w,"i",function(){return l}),o.d(w,"f",function(){return T}),o.d(w,"d",function(){return N}),o.d(w,"g",function(){return b}),o.d(w,"h",function(){return g}),o.d(w,"c",function(){return j}),o.d(w,"b",function(){return ie}),o.d(w,"j",function(){return U}),o.d(w,"a",function(){return q}),o.d(w,"e",function(){return ke});let D=!1,H=!1,E=!1,ge=!1,W=!1,Q=!1,y,C="en",S,P,V=h!==void 0&&h.versions!==void 0&&h.versions.electron!==void 0&&h.type==="renderer";if(typeof navigator!="object"||V){if(typeof h=="object"){D=h.platform==="win32",H=h.platform==="darwin",E=h.platform==="linux",y="en",C="en";let xe=h.env.VSCODE_NLS_CONFIG;if(xe)try{let Y=JSON.parse(xe),Z=Y.availableLanguages["*"];y=Y.locale,C=Z||"en",S=Y._translationsConfigFile}catch(Y){}ge=!0}}else P=navigator.userAgent,D=P.indexOf("Windows")>=0,H=P.indexOf("Macintosh")>=0,Q=(P.indexOf("Macintosh")>=0||P.indexOf("iPad")>=0||P.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,E=P.indexOf("Linux")>=0,W=!0,y=navigator.language,C=y;let k=0;H?k=1:D?k=3:E&&(k=2);let l=D,T=H,N=E,b=ge,g=W,j=Q,ie=typeof self=="object"?self:typeof f=="object"?f:{},U=function(){if(ie.setImmediate)return ie.setImmediate.bind(ie);if(typeof ie.postMessage=="function"&&!ie.importScripts){let Y=[];ie.addEventListener("message",te=>{if(te.data&&te.data.vscodeSetImmediateId)for(let he=0,Ce=Y.length;he<Ce;he++){let Ae=Y[he];if(Ae.id===te.data.vscodeSetImmediateId)return Y.splice(he,1),void Ae.callback()}});let Z=0;return te=>{let he=++Z;Y.push({id:he,callback:te}),ie.postMessage({vscodeSetImmediateId:he},"*")}}if(h!==void 0&&typeof h.nextTick=="function")return h.nextTick.bind(h);let xe=Promise.resolve();return Y=>xe.then(Y)}(),q=H||Q?2:D?1:3,B=!0,se=!1;function ke(){if(!se){se=!0;let xe=new Uint8Array(2);xe[0]=1,xe[1]=2,B=new Uint16Array(xe.buffer)[0]===513}return B}}).call(this,o(86),o(137))},function(Ie,w,o){"use strict";o.d(w,"r",function(){return P}),o.d(w,"B",function(){return V}),o.d(w,"F",function(){return k}),o.d(w,"E",function(){return l}),o.d(w,"z",function(){return T}),o.d(w,"h",function(){return N}),o.d(w,"G",function(){return g}),o.d(w,"A",function(){return b}),o.d(w,"n",function(){return j}),o.d(w,"v",function(){return ie}),o.d(w,"w",function(){return U}),o.d(w,"d",function(){return q}),o.d(w,"y",function(){return B}),o.d(w,"p",function(){return se}),o.d(w,"m",function(){return ke}),o.d(w,"i",function(){return xe}),o.d(w,"u",function(){return Y}),o.d(w,"f",function(){return Z}),o.d(w,"e",function(){return te}),o.d(w,"q",function(){return he}),o.d(w,"D",function(){return Ce}),o.d(w,"b",function(){return Ae}),o.d(w,"a",function(){return L}),o.d(w,"g",function(){return nt}),o.d(w,"j",function(){return ct}),o.d(w,"t",function(){return Ye}),o.d(w,"s",function(){return ht}),o.d(w,"c",function(){return fe}),o.d(w,"x",function(){return $}),o.d(w,"o",function(){return G}),o.d(w,"l",function(){return z}),o.d(w,"k",function(){return J}),o.d(w,"C",function(){return Se});var h=o(23),f=o(3),D=o(6),H=o(2),E=o(187),ge=o(42);function W(A,ee,de,Oe){if(Array.isArray(A)){let $e=0;for(let pt of A){let it=W(pt,ee,de,Oe);if(it===10)return it;it>$e&&($e=it)}return $e}if(typeof A=="string")return Oe?A==="*"?5:A===de?10:0:0;if(A){let{language:$e,pattern:pt,scheme:it,hasAccessToAllModels:At}=A;if(!Oe&&!At)return 0;let Nt=0;if(it)if(it===ee.scheme)Nt=10;else{if(it!=="*")return 0;Nt=5}if($e)if($e===de)Nt=10;else{if($e!=="*")return 0;Nt=Math.max(Nt,5)}if(pt){let _i;if(_i=typeof pt=="string"?pt:Object.assign(Object.assign({},pt),{base:Object(ge.d)(pt.base)}),_i!==ee.fsPath&&!Object(E.a)(_i,ee.fsPath))return 0;Nt=10}return Nt}return 0}var Q=o(64);function y(A){return typeof A!="string"&&(Array.isArray(A)?A.every(y):!!A.exclusive)}class C{constructor(){this._clock=0,this._entries=[],this._onDidChange=new D.a}get onDidChange(){return this._onDidChange.event}register(ee,de){let Oe={selector:ee,provider:de,_score:-1,_time:this._clock++};return this._entries.push(Oe),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(H.h)(()=>{if(Oe){let $e=this._entries.indexOf(Oe);$e>=0&&(this._entries.splice($e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Oe=void 0)}})}has(ee){return this.all(ee).length>0}all(ee){if(!ee)return[];this._updateScores(ee);let de=[];for(let Oe of this._entries)Oe._score>0&&de.push(Oe.provider);return de}ordered(ee){let de=[];return this._orderedForEach(ee,Oe=>de.push(Oe.provider)),de}orderedGroups(ee){let de=[],Oe,$e;return this._orderedForEach(ee,pt=>{Oe&&$e===pt._score?Oe.push(pt.provider):($e=pt._score,Oe=[pt.provider],de.push(Oe))}),de}_orderedForEach(ee,de){if(ee){this._updateScores(ee);for(let Oe of this._entries)Oe._score>0&&de(Oe)}}_updateScores(ee){let de={uri:ee.uri.toString(),language:ee.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==de.language||this._lastCandidate.uri!==de.uri){this._lastCandidate=de;for(let Oe of this._entries)if(Oe._score=W(Oe.selector,ee.uri,ee.getLanguageIdentifier().language,Object(Q.b)(ee)),y(Oe.selector)&&Oe._score>0){for(let $e of this._entries)$e._score=0;Oe._score=1e3;break}this._entries.sort(C._compareByScoreAndTime)}}static _compareByScoreAndTime(ee,de){return ee._score<de._score?1:ee._score>de._score?-1:ee._time<de._time?1:ee._time>de._time?-1:0}}var S=o(17);class P{constructor(ee,de){this.language=ee,this.id=de}}class V{static getLanguageId(ee){return(255&ee)>>>0}static getTokenType(ee){return(1792&ee)>>>8}static getFontStyle(ee){return(14336&ee)>>>11}static getForeground(ee){return(8372224&ee)>>>14}static getBackground(ee){return(4286578688&ee)>>>23}static getClassNameFromMetadata(ee){let de="mtk"+this.getForeground(ee),Oe=this.getFontStyle(ee);return 1&Oe&&(de+=" mtki"),2&Oe&&(de+=" mtkb"),4&Oe&&(de+=" mtku"),de}static getInlineStyleFromMetadata(ee,de){let Oe=this.getForeground(ee),$e=this.getFontStyle(ee),pt=`color: ${de[Oe]};`;return 1&$e&&(pt+="font-style: italic;"),2&$e&&(pt+="font-weight: bold;"),4&$e&&(pt+="text-decoration: underline;"),pt}}let k=function(){let A=Object.create(null);return A[0]="symbol-method",A[1]="symbol-function",A[2]="symbol-constructor",A[3]="symbol-field",A[4]="symbol-variable",A[5]="symbol-class",A[6]="symbol-struct",A[7]="symbol-interface",A[8]="symbol-module",A[9]="symbol-property",A[10]="symbol-event",A[11]="symbol-operator",A[12]="symbol-unit",A[13]="symbol-value",A[14]="symbol-constant",A[15]="symbol-enum",A[16]="symbol-enum-member",A[17]="symbol-keyword",A[27]="symbol-snippet",A[18]="symbol-text",A[19]="symbol-color",A[20]="symbol-file",A[21]="symbol-reference",A[22]="symbol-customcolor",A[23]="symbol-folder",A[24]="symbol-type-parameter",A[25]="account",A[26]="issues",function(ee){let de=A[ee],Oe=de&&S.c.get(de);return Oe||(console.info("No codicon found for CompletionItemKind "+ee),Oe=S.a.symbolProperty),Oe.classNames}}(),l=function(){let A=Object.create(null);return A.method=0,A.function=1,A.constructor=2,A.field=3,A.variable=4,A.class=5,A.struct=6,A.interface=7,A.module=8,A.property=9,A.event=10,A.operator=11,A.unit=12,A.value=13,A.constant=14,A.enum=15,A["enum-member"]=16,A.enumMember=16,A.keyword=17,A.snippet=27,A.text=18,A.color=19,A.file=20,A.reference=21,A.customcolor=22,A.folder=23,A["type-parameter"]=24,A.typeParameter=24,A.account=25,A.issue=26,function(ee,de){let Oe=A[ee];return Oe!==void 0||de||(Oe=9),Oe}}();var T,N,b;function g(A){return A&&h.a.isUri(A.uri)&&f.a.isIRange(A.range)&&(f.a.isIRange(A.originSelectionRange)||f.a.isIRange(A.targetSelectionRange))}(function(A){A[A.Invoke=1]="Invoke",A[A.TriggerCharacter=2]="TriggerCharacter",A[A.ContentChange=3]="ContentChange"})(T||(T={})),function(A){A[A.Text=0]="Text",A[A.Read=1]="Read",A[A.Write=2]="Write"}(N||(N={})),function(A){let ee=new Map;ee.set("file",0),ee.set("module",1),ee.set("namespace",2),ee.set("package",3),ee.set("class",4),ee.set("method",5),ee.set("property",6),ee.set("field",7),ee.set("constructor",8),ee.set("enum",9),ee.set("interface",10),ee.set("function",11),ee.set("variable",12),ee.set("constant",13),ee.set("string",14),ee.set("number",15),ee.set("boolean",16),ee.set("array",17),ee.set("object",18),ee.set("key",19),ee.set("null",20),ee.set("enum-member",21),ee.set("struct",22),ee.set("event",23),ee.set("operator",24),ee.set("type-parameter",25);let de=new Map;de.set(0,"file"),de.set(1,"module"),de.set(2,"namespace"),de.set(3,"package"),de.set(4,"class"),de.set(5,"method"),de.set(6,"property"),de.set(7,"field"),de.set(8,"constructor"),de.set(9,"enum"),de.set(10,"interface"),de.set(11,"function"),de.set(12,"variable"),de.set(13,"constant"),de.set(14,"string"),de.set(15,"number"),de.set(16,"boolean"),de.set(17,"array"),de.set(18,"object"),de.set(19,"key"),de.set(20,"null"),de.set(21,"enum-member"),de.set(22,"struct"),de.set(23,"event"),de.set(24,"operator"),de.set(25,"type-parameter"),A.fromString=function(Oe){return ee.get(Oe)},A.toString=function(Oe){return de.get(Oe)},A.toCssClassName=function(Oe,$e){let pt=de.get(Oe),it=pt&&S.c.get("symbol-"+pt);return it||(console.info("No codicon found for SymbolKind "+Oe),it=S.a.symbolProperty),`${$e?"inline":"block"} ${it.classNames}`}}(b||(b={}));class j{constructor(ee){this.value=ee}}j.Comment=new j("comment"),j.Imports=new j("imports"),j.Region=new j("region");let ie=new C,U=new C,q=new C,B=new C,se=new C,ke=new C,xe=new C,Y=new C,Z=new C,te=new C,he=new C,Ce=new C,Ae=new C,L=new C,nt=new C,ct=new C,Ye=new C,ht=new C,fe=new C,$=new C,G=new C,z=new C,J=new C,Se=new class{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new D.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(A){this._onDidChange.fire({changedLanguages:A,changedColorMap:!1})}register(A,ee){return this._map.set(A,ee),this.fire([A]),Object(H.h)(()=>{this._map.get(A)===ee&&(this._map.delete(A),this.fire([A]))})}registerPromise(A,ee){let de=null,Oe=!1;return this._promises.set(A,ee.then($e=>{this._promises.delete(A),!Oe&&$e&&(de=this.register(A,$e))})),Object(H.h)(()=>{Oe=!0,de&&de.dispose()})}getPromise(A){let ee=this.get(A);if(ee)return Promise.resolve(ee);let de=this._promises.get(A);return de?de.then(Oe=>this.get(A)):null}get(A){return this._map.get(A)||null}setColorMap(A){this._colorMap=A,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},function(Ie,w,o){"use strict";o.d(w,"e",function(){return f}),o.d(w,"f",function(){return D}),o.d(w,"g",function(){return H}),o.d(w,"d",function(){return E}),o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return W}),o.d(w,"c",function(){return Q});let h=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?new Error(y.message+` - -`+y.stack):y},0)}}emit(y){this.listeners.forEach(C=>{C(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}};function f(y){E(y)||h.onUnexpectedError(y)}function D(y){E(y)||h.onUnexpectedExternalError(y)}function H(y){if(y instanceof Error){let{name:C,message:S}=y;return{$isError:!0,name:C,message:S,stack:y.stacktrace||y.stack}}return y}function E(y){return y instanceof Error&&y.name==="Canceled"&&y.message==="Canceled"}function ge(){let y=new Error("Canceled");return y.name=y.message,y}function W(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function Q(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},function(Ie,w,o){"use strict";function h(T){return Array.isArray(T)}function f(T){return typeof T=="string"}function D(T){return!(typeof T!="object"||T===null||Array.isArray(T)||T instanceof RegExp||T instanceof Date)}function H(T){return typeof T=="number"&&!isNaN(T)}function E(T){return T===!0||T===!1}function ge(T){return T===void 0}function W(T){return ge(T)||T===null}function Q(T,N){if(!T)throw new Error(N?`Unexpected type, expected '${N}'`:"Unexpected type")}function y(T){if(W(T))throw new Error("Assertion Failed: argument is undefined or null");return T}function C(T){return typeof T=="function"}function S(T,N){let b=Math.min(T.length,N.length);for(let g=0;g<b;g++)P(T[g],N[g])}function P(T,N){if(f(N)){if(typeof T!==N)throw new Error("argument does not match constraint: typeof "+N)}else if(C(N)){try{if(T instanceof N)return}catch(b){}if(!W(T)&&T.constructor===N||N.length===1&&N.call(void 0,T)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function V(T){let N=[];for(let b of function(g){let j=[],ie=Object.getPrototypeOf(g);for(;Object.prototype!==ie;)j=j.concat(Object.getOwnPropertyNames(ie)),ie=Object.getPrototypeOf(ie);return j}(T))typeof T[b]=="function"&&N.push(b);return N}function k(T,N){let b=j=>function(){let ie=Array.prototype.slice.call(arguments,0);return N(j,ie)},g={};for(let j of T)g[j]=b(j);return g}function l(T){return T===null?void 0:T}o.d(w,"e",function(){return h}),o.d(w,"j",function(){return f}),o.d(w,"i",function(){return D}),o.d(w,"h",function(){return H}),o.d(w,"f",function(){return E}),o.d(w,"k",function(){return ge}),o.d(w,"l",function(){return W}),o.d(w,"b",function(){return Q}),o.d(w,"a",function(){return y}),o.d(w,"g",function(){return C}),o.d(w,"m",function(){return S}),o.d(w,"d",function(){return V}),o.d(w,"c",function(){return k}),o.d(w,"n",function(){return l})},function(Ie,w,o){"use strict";function h(U,q=0){return U[U.length-(1+q)]}function f(U){if(U.length===0)throw new Error("Invalid tail call");return[U.slice(0,U.length-1),U[U.length-1]]}function D(U,q,B=(se,ke)=>se===ke){if(U===q)return!0;if(!U||!q||U.length!==q.length)return!1;for(let se=0,ke=U.length;se<ke;se++)if(!B(U[se],q[se]))return!1;return!0}function H(U,q,B){let se=0,ke=U.length-1;for(;se<=ke;){let xe=(se+ke)/2|0,Y=B(U[xe],q);if(Y<0)se=xe+1;else{if(!(Y>0))return xe;ke=xe-1}}return-(se+1)}function E(U,q){let B=0,se=U.length;if(se===0)return 0;for(;B<se;){let ke=Math.floor((B+se)/2);q(U[ke])?se=ke:B=ke+1}return B}function ge(U,q){return function B(se,ke,xe,Y,Z){if(Y<=xe)return;let te=xe+(Y-xe)/2|0;B(se,ke,xe,te,Z),B(se,ke,te+1,Y,Z),!(ke(se[te],se[te+1])<=0)&&function(he,Ce,Ae,L,nt,ct){let Ye=Ae,ht=L+1;for(let fe=Ae;fe<=nt;fe++)ct[fe]=he[fe];for(let fe=Ae;fe<=nt;fe++)Ye>L?he[fe]=ct[ht++]:ht>nt?he[fe]=ct[Ye++]:Ce(ct[ht],ct[Ye])<0?he[fe]=ct[ht++]:he[fe]=ct[Ye++]}(se,ke,xe,te,Y,Z)}(U,q,0,U.length-1,[]),U}function W(U,q){let B=[],se;for(let ke of ge(U.slice(0),q))se&&q(se[0],ke)===0?se.push(ke):(se=[ke],B.push(se));return B}function Q(U){return U.filter(q=>!!q)}function y(U){return!Array.isArray(U)||U.length===0}function C(U){return Array.isArray(U)&&U.length>0}function S(U,q){if(!q)return U.filter((se,ke)=>U.indexOf(se)===ke);let B=Object.create(null);return U.filter(se=>{let ke=q(se);return!B[ke]&&(B[ke]=!0,!0)})}function P(U){let q=new Set;return U.filter(B=>!q.has(B)&&(q.add(B),!0))}function V(U,q){for(let B=0;B<U.length;B++)if(q(U[B]))return B;return-1}function k(U,q,B){let se=V(U,q);return se<0?B:U[se]}function l(U,q){return U.length>0?U[0]:q}function T(U){return[].concat(...U)}function N(U,q){let B=typeof q=="number"?U:0;typeof q=="number"?B=U:(B=0,q=U);let se=[];if(B<=q)for(let ke=B;ke<q;ke++)se.push(ke);else for(let ke=B;ke>q;ke--)se.push(ke);return se}function b(U,q,B){let se=U.slice(0,q),ke=U.slice(q);return se.concat(B,ke)}function g(U,q){let B=U.indexOf(q);B>-1&&(U.splice(B,1),U.unshift(q))}function j(U,q){let B=U.indexOf(q);B>-1&&(U.splice(B,1),U.push(q))}function ie(U){return Array.isArray(U)?U:[U]}o.d(w,"t",function(){return h}),o.d(w,"u",function(){return f}),o.d(w,"g",function(){return D}),o.d(w,"c",function(){return H}),o.d(w,"h",function(){return E}),o.d(w,"p",function(){return ge}),o.d(w,"m",function(){return W}),o.d(w,"d",function(){return Q}),o.d(w,"n",function(){return y}),o.d(w,"o",function(){return C}),o.d(w,"e",function(){return S}),o.d(w,"f",function(){return P}),o.d(w,"j",function(){return V}),o.d(w,"i",function(){return k}),o.d(w,"k",function(){return l}),o.d(w,"l",function(){return T}),o.d(w,"s",function(){return N}),o.d(w,"a",function(){return b}),o.d(w,"r",function(){return g}),o.d(w,"q",function(){return j}),o.d(w,"b",function(){return ie})},function(Ie,w,o){"use strict";function h(ge,W){let Q=Math.pow(10,W);return Math.round(ge*Q)/Q}o.d(w,"c",function(){return f}),o.d(w,"b",function(){return H}),o.d(w,"a",function(){return E});class f{constructor(W,Q,y,C=1){this.r=0|Math.min(255,Math.max(0,W)),this.g=0|Math.min(255,Math.max(0,Q)),this.b=0|Math.min(255,Math.max(0,y)),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.r===Q.r&&W.g===Q.g&&W.b===Q.b&&W.a===Q.a}}class D{constructor(W,Q,y,C){this.h=0|Math.max(Math.min(360,W),0),this.s=h(Math.max(Math.min(1,Q),0),3),this.l=h(Math.max(Math.min(1,y),0),3),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.h===Q.h&&W.s===Q.s&&W.l===Q.l&&W.a===Q.a}static fromRGBA(W){let Q=W.r/255,y=W.g/255,C=W.b/255,S=W.a,P=Math.max(Q,y,C),V=Math.min(Q,y,C),k=0,l=0,T=(V+P)/2,N=P-V;if(N>0){switch(l=Math.min(T<=.5?N/(2*T):N/(2-2*T),1),P){case Q:k=(y-C)/N+(y<C?6:0);break;case y:k=(C-Q)/N+2;break;case C:k=(Q-y)/N+4}k*=60,k=Math.round(k)}return new D(k,l,T,S)}static _hue2rgb(W,Q,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?W+6*(Q-W)*y:y<.5?Q:y<2/3?W+(Q-W)*(2/3-y)*6:W}static toRGBA(W){let Q=W.h/360,{s:y,l:C,a:S}=W,P,V,k;if(y===0)P=V=k=C;else{let l=C<.5?C*(1+y):C+y-C*y,T=2*C-l;P=D._hue2rgb(T,l,Q+1/3),V=D._hue2rgb(T,l,Q),k=D._hue2rgb(T,l,Q-1/3)}return new f(Math.round(255*P),Math.round(255*V),Math.round(255*k),S)}}class H{constructor(W,Q,y,C){this.h=0|Math.max(Math.min(360,W),0),this.s=h(Math.max(Math.min(1,Q),0),3),this.v=h(Math.max(Math.min(1,y),0),3),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.h===Q.h&&W.s===Q.s&&W.v===Q.v&&W.a===Q.a}static fromRGBA(W){let Q=W.r/255,y=W.g/255,C=W.b/255,S=Math.max(Q,y,C),P=S-Math.min(Q,y,C),V=S===0?0:P/S,k;return k=P===0?0:S===Q?((y-C)/P%6+6)%6:S===y?(C-Q)/P+2:(Q-y)/P+4,new H(Math.round(60*k),V,S,W.a)}static toRGBA(W){let{h:Q,s:y,v:C,a:S}=W,P=C*y,V=P*(1-Math.abs(Q/60%2-1)),k=C-P,[l,T,N]=[0,0,0];return Q<60?(l=P,T=V):Q<120?(l=V,T=P):Q<180?(T=P,N=V):Q<240?(T=V,N=P):Q<300?(l=V,N=P):Q<360&&(l=P,N=V),l=Math.round(255*(l+k)),T=Math.round(255*(T+k)),N=Math.round(255*(N+k)),new f(l,T,N,S)}}class E{constructor(W){if(!W)throw new Error("Color needs a value");if(W instanceof f)this.rgba=W;else if(W instanceof D)this._hsla=W,this.rgba=D.toRGBA(W);else{if(!(W instanceof H))throw new Error("Invalid color ctor argument");this._hsva=W,this.rgba=H.toRGBA(W)}}static fromHex(W){return E.Format.CSS.parseHex(W)||E.red}get hsla(){return this._hsla?this._hsla:D.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:H.fromRGBA(this.rgba)}equals(W){return!!W&&f.equals(this.rgba,W.rgba)&&D.equals(this.hsla,W.hsla)&&H.equals(this.hsva,W.hsva)}getRelativeLuminance(){return h(.2126*E._relativeLuminanceForComponent(this.rgba.r)+.7152*E._relativeLuminanceForComponent(this.rgba.g)+.0722*E._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(W){let Q=W/255;return Q<=.03928?Q/12.92:Math.pow((Q+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(W){return this.getRelativeLuminance()>W.getRelativeLuminance()}isDarkerThan(W){return this.getRelativeLuminance()<W.getRelativeLuminance()}lighten(W){return new E(new D(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*W,this.hsla.a))}darken(W){return new E(new D(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*W,this.hsla.a))}transparent(W){let{r:Q,g:y,b:C,a:S}=this.rgba;return new E(new f(Q,y,C,S*W))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new E(new f(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+E.Format.CSS.format(this)}static getLighterColor(W,Q,y){if(W.isLighterThan(Q))return W;y=y||.5;let C=W.getRelativeLuminance(),S=Q.getRelativeLuminance();return y=y*(S-C)/S,W.lighten(y)}static getDarkerColor(W,Q,y){if(W.isDarkerThan(Q))return W;y=y||.5;let C=W.getRelativeLuminance();return y=y*(C-Q.getRelativeLuminance())/C,W.darken(y)}}E.white=new E(new f(255,255,255,1)),E.black=new E(new f(0,0,0,1)),E.red=new E(new f(255,0,0,1)),E.blue=new E(new f(0,0,255,1)),E.cyan=new E(new f(0,255,255,1)),E.lightgrey=new E(new f(211,211,211,1)),E.transparent=new E(new f(0,0,0,0)),function(ge){let W;(function(Q){let y;(function(C){function S(V){let k=V.toString(16);return k.length!==2?"0"+k:k}function P(V){switch(V){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}C.formatRGB=function(V){return V.rgba.a===1?`rgb(${V.rgba.r}, ${V.rgba.g}, ${V.rgba.b})`:ge.Format.CSS.formatRGBA(V)},C.formatRGBA=function(V){return`rgba(${V.rgba.r}, ${V.rgba.g}, ${V.rgba.b}, ${+V.rgba.a.toFixed(2)})`},C.formatHSL=function(V){return V.hsla.a===1?`hsl(${V.hsla.h}, ${(100*V.hsla.s).toFixed(2)}%, ${(100*V.hsla.l).toFixed(2)}%)`:ge.Format.CSS.formatHSLA(V)},C.formatHSLA=function(V){return`hsla(${V.hsla.h}, ${(100*V.hsla.s).toFixed(2)}%, ${(100*V.hsla.l).toFixed(2)}%, ${V.hsla.a.toFixed(2)})`},C.formatHex=function(V){return`#${S(V.rgba.r)}${S(V.rgba.g)}${S(V.rgba.b)}`},C.formatHexA=function(V,k=!1){return k&&V.rgba.a===1?ge.Format.CSS.formatHex(V):`#${S(V.rgba.r)}${S(V.rgba.g)}${S(V.rgba.b)}${S(Math.round(255*V.rgba.a))}`},C.format=function(V){return V.isOpaque()?ge.Format.CSS.formatHex(V):ge.Format.CSS.formatRGBA(V)},C.parseHex=function(V){let k=V.length;if(k===0||V.charCodeAt(0)!==35)return null;if(k===7){let l=16*P(V.charCodeAt(1))+P(V.charCodeAt(2)),T=16*P(V.charCodeAt(3))+P(V.charCodeAt(4)),N=16*P(V.charCodeAt(5))+P(V.charCodeAt(6));return new ge(new f(l,T,N,1))}if(k===9){let l=16*P(V.charCodeAt(1))+P(V.charCodeAt(2)),T=16*P(V.charCodeAt(3))+P(V.charCodeAt(4)),N=16*P(V.charCodeAt(5))+P(V.charCodeAt(6)),b=16*P(V.charCodeAt(7))+P(V.charCodeAt(8));return new ge(new f(l,T,N,b/255))}if(k===4){let l=P(V.charCodeAt(1)),T=P(V.charCodeAt(2)),N=P(V.charCodeAt(3));return new ge(new f(16*l+l,16*T+T,16*N+N))}if(k===5){let l=P(V.charCodeAt(1)),T=P(V.charCodeAt(2)),N=P(V.charCodeAt(3)),b=P(V.charCodeAt(4));return new ge(new f(16*l+l,16*T+T,16*N+N,(16*b+b)/255))}return null}})(y=Q.CSS||(Q.CSS={}))})(W=ge.Format||(ge.Format={}))}(E||(E={}))},function(Ie,w,o){"use strict";o.d(w,"c",function(){return H}),o.d(w,"e",function(){return E}),o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return Q}),o.d(w,"d",function(){return C}),o.d(w,"g",function(){return S}),o.d(w,"f",function(){return P}),o.d(w,"h",function(){return k});var h=o(151),f=o(6);let D=new class{constructor(){this._icons=new Map,this._onDidRegister=new f.a}add(l){this._icons.has(l.id)?console.error("Duplicate registration of codicon "+l.id):(this._icons.set(l.id,l),this._onDidRegister.fire(l))}get(l){return this._icons.get(l)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},H=D;function E(l,T,N){return new ge(l,T)}class ge{constructor(T,N,b){this.id=T,this.definition=N,this.description=b,D.add(this)}get classNames(){return"codicon codicon-"+this.id}get cssSelector(){return".codicon.codicon-"+this.id}}(function(l){l.add=new l("add",{character:"\\ea60"}),l.plus=new l("plus",{character:"\\ea60"}),l.gistNew=new l("gist-new",{character:"\\ea60"}),l.repoCreate=new l("repo-create",{character:"\\ea60"}),l.lightbulb=new l("lightbulb",{character:"\\ea61"}),l.lightBulb=new l("light-bulb",{character:"\\ea61"}),l.repo=new l("repo",{character:"\\ea62"}),l.repoDelete=new l("repo-delete",{character:"\\ea62"}),l.gistFork=new l("gist-fork",{character:"\\ea63"}),l.repoForked=new l("repo-forked",{character:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{character:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{character:"\\ea64"}),l.recordKeys=new l("record-keys",{character:"\\ea65"}),l.keyboard=new l("keyboard",{character:"\\ea65"}),l.tag=new l("tag",{character:"\\ea66"}),l.tagAdd=new l("tag-add",{character:"\\ea66"}),l.tagRemove=new l("tag-remove",{character:"\\ea66"}),l.person=new l("person",{character:"\\ea67"}),l.personAdd=new l("person-add",{character:"\\ea67"}),l.personFollow=new l("person-follow",{character:"\\ea67"}),l.personOutline=new l("person-outline",{character:"\\ea67"}),l.personFilled=new l("person-filled",{character:"\\ea67"}),l.gitBranch=new l("git-branch",{character:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{character:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{character:"\\ea68"}),l.sourceControl=new l("source-control",{character:"\\ea68"}),l.mirror=new l("mirror",{character:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{character:"\\ea69"}),l.star=new l("star",{character:"\\ea6a"}),l.starAdd=new l("star-add",{character:"\\ea6a"}),l.starDelete=new l("star-delete",{character:"\\ea6a"}),l.starEmpty=new l("star-empty",{character:"\\ea6a"}),l.comment=new l("comment",{character:"\\ea6b"}),l.commentAdd=new l("comment-add",{character:"\\ea6b"}),l.alert=new l("alert",{character:"\\ea6c"}),l.warning=new l("warning",{character:"\\ea6c"}),l.search=new l("search",{character:"\\ea6d"}),l.searchSave=new l("search-save",{character:"\\ea6d"}),l.logOut=new l("log-out",{character:"\\ea6e"}),l.signOut=new l("sign-out",{character:"\\ea6e"}),l.logIn=new l("log-in",{character:"\\ea6f"}),l.signIn=new l("sign-in",{character:"\\ea6f"}),l.eye=new l("eye",{character:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{character:"\\ea70"}),l.eyeWatch=new l("eye-watch",{character:"\\ea70"}),l.circleFilled=new l("circle-filled",{character:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{character:"\\ea71"}),l.closeDirty=new l("close-dirty",{character:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{character:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{character:"\\ea71"}),l.debugHint=new l("debug-hint",{character:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{character:"\\ea72"}),l.edit=new l("edit",{character:"\\ea73"}),l.pencil=new l("pencil",{character:"\\ea73"}),l.info=new l("info",{character:"\\ea74"}),l.issueOpened=new l("issue-opened",{character:"\\ea74"}),l.gistPrivate=new l("gist-private",{character:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{character:"\\ea75"}),l.lock=new l("lock",{character:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{character:"\\ea75"}),l.close=new l("close",{character:"\\ea76"}),l.removeClose=new l("remove-close",{character:"\\ea76"}),l.x=new l("x",{character:"\\ea76"}),l.repoSync=new l("repo-sync",{character:"\\ea77"}),l.sync=new l("sync",{character:"\\ea77"}),l.clone=new l("clone",{character:"\\ea78"}),l.desktopDownload=new l("desktop-download",{character:"\\ea78"}),l.beaker=new l("beaker",{character:"\\ea79"}),l.microscope=new l("microscope",{character:"\\ea79"}),l.vm=new l("vm",{character:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{character:"\\ea7a"}),l.file=new l("file",{character:"\\ea7b"}),l.fileText=new l("file-text",{character:"\\ea7b"}),l.more=new l("more",{character:"\\ea7c"}),l.ellipsis=new l("ellipsis",{character:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{character:"\\ea7c"}),l.mailReply=new l("mail-reply",{character:"\\ea7d"}),l.reply=new l("reply",{character:"\\ea7d"}),l.organization=new l("organization",{character:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{character:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{character:"\\ea7e"}),l.newFile=new l("new-file",{character:"\\ea7f"}),l.fileAdd=new l("file-add",{character:"\\ea7f"}),l.newFolder=new l("new-folder",{character:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{character:"\\ea80"}),l.trash=new l("trash",{character:"\\ea81"}),l.trashcan=new l("trashcan",{character:"\\ea81"}),l.history=new l("history",{character:"\\ea82"}),l.clock=new l("clock",{character:"\\ea82"}),l.folder=new l("folder",{character:"\\ea83"}),l.fileDirectory=new l("file-directory",{character:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{character:"\\ea83"}),l.logoGithub=new l("logo-github",{character:"\\ea84"}),l.markGithub=new l("mark-github",{character:"\\ea84"}),l.github=new l("github",{character:"\\ea84"}),l.terminal=new l("terminal",{character:"\\ea85"}),l.console=new l("console",{character:"\\ea85"}),l.repl=new l("repl",{character:"\\ea85"}),l.zap=new l("zap",{character:"\\ea86"}),l.symbolEvent=new l("symbol-event",{character:"\\ea86"}),l.error=new l("error",{character:"\\ea87"}),l.stop=new l("stop",{character:"\\ea87"}),l.variable=new l("variable",{character:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{character:"\\ea88"}),l.array=new l("array",{character:"\\ea8a"}),l.symbolArray=new l("symbol-array",{character:"\\ea8a"}),l.symbolModule=new l("symbol-module",{character:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{character:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{character:"\\ea8b"}),l.symbolObject=new l("symbol-object",{character:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{character:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{character:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{character:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{character:"\\ea8f"}),l.symbolNull=new l("symbol-null",{character:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{character:"\\ea90"}),l.symbolNumber=new l("symbol-number",{character:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{character:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{character:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{character:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{character:"\\ea92"}),l.symbolKey=new l("symbol-key",{character:"\\ea93"}),l.symbolText=new l("symbol-text",{character:"\\ea93"}),l.symbolReference=new l("symbol-reference",{character:"\\ea94"}),l.goToFile=new l("go-to-file",{character:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{character:"\\ea95"}),l.symbolValue=new l("symbol-value",{character:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{character:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{character:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{character:"\\ea97"}),l.archive=new l("archive",{character:"\\ea98"}),l.arrowBoth=new l("arrow-both",{character:"\\ea99"}),l.arrowDown=new l("arrow-down",{character:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{character:"\\ea9b"}),l.arrowRight=new l("arrow-right",{character:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{character:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{character:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{character:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{character:"\\eaa0"}),l.arrowUp=new l("arrow-up",{character:"\\eaa1"}),l.bell=new l("bell",{character:"\\eaa2"}),l.bold=new l("bold",{character:"\\eaa3"}),l.book=new l("book",{character:"\\eaa4"}),l.bookmark=new l("bookmark",{character:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{character:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{character:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{character:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{character:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{character:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{character:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{character:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{character:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{character:"\\eaab"}),l.briefcase=new l("briefcase",{character:"\\eaac"}),l.broadcast=new l("broadcast",{character:"\\eaad"}),l.browser=new l("browser",{character:"\\eaae"}),l.bug=new l("bug",{character:"\\eaaf"}),l.calendar=new l("calendar",{character:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{character:"\\eab1"}),l.check=new l("check",{character:"\\eab2"}),l.checklist=new l("checklist",{character:"\\eab3"}),l.chevronDown=new l("chevron-down",{character:"\\eab4"}),l.chevronLeft=new l("chevron-left",{character:"\\eab5"}),l.chevronRight=new l("chevron-right",{character:"\\eab6"}),l.chevronUp=new l("chevron-up",{character:"\\eab7"}),l.chromeClose=new l("chrome-close",{character:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{character:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{character:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{character:"\\eabb"}),l.circleOutline=new l("circle-outline",{character:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{character:"\\eabc"}),l.circleSlash=new l("circle-slash",{character:"\\eabd"}),l.circuitBoard=new l("circuit-board",{character:"\\eabe"}),l.clearAll=new l("clear-all",{character:"\\eabf"}),l.clippy=new l("clippy",{character:"\\eac0"}),l.closeAll=new l("close-all",{character:"\\eac1"}),l.cloudDownload=new l("cloud-download",{character:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{character:"\\eac3"}),l.code=new l("code",{character:"\\eac4"}),l.collapseAll=new l("collapse-all",{character:"\\eac5"}),l.colorMode=new l("color-mode",{character:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{character:"\\eac7"}),l.compareChanges=new l("compare-changes",{character:"\\eafd"}),l.creditCard=new l("credit-card",{character:"\\eac9"}),l.dash=new l("dash",{character:"\\eacc"}),l.dashboard=new l("dashboard",{character:"\\eacd"}),l.database=new l("database",{character:"\\eace"}),l.debugContinue=new l("debug-continue",{character:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{character:"\\ead0"}),l.debugPause=new l("debug-pause",{character:"\\ead1"}),l.debugRestart=new l("debug-restart",{character:"\\ead2"}),l.debugStart=new l("debug-start",{character:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{character:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{character:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{character:"\\ead6"}),l.debugStop=new l("debug-stop",{character:"\\ead7"}),l.debug=new l("debug",{character:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{character:"\\ead9"}),l.deviceCamera=new l("device-camera",{character:"\\eada"}),l.deviceMobile=new l("device-mobile",{character:"\\eadb"}),l.diffAdded=new l("diff-added",{character:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{character:"\\eadd"}),l.diffModified=new l("diff-modified",{character:"\\eade"}),l.diffRemoved=new l("diff-removed",{character:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{character:"\\eae0"}),l.diff=new l("diff",{character:"\\eae1"}),l.discard=new l("discard",{character:"\\eae2"}),l.editorLayout=new l("editor-layout",{character:"\\eae3"}),l.emptyWindow=new l("empty-window",{character:"\\eae4"}),l.exclude=new l("exclude",{character:"\\eae5"}),l.extensions=new l("extensions",{character:"\\eae6"}),l.eyeClosed=new l("eye-closed",{character:"\\eae7"}),l.fileBinary=new l("file-binary",{character:"\\eae8"}),l.fileCode=new l("file-code",{character:"\\eae9"}),l.fileMedia=new l("file-media",{character:"\\eaea"}),l.filePdf=new l("file-pdf",{character:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{character:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{character:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{character:"\\eaee"}),l.fileZip=new l("file-zip",{character:"\\eaef"}),l.files=new l("files",{character:"\\eaf0"}),l.filter=new l("filter",{character:"\\eaf1"}),l.flame=new l("flame",{character:"\\eaf2"}),l.foldDown=new l("fold-down",{character:"\\eaf3"}),l.foldUp=new l("fold-up",{character:"\\eaf4"}),l.fold=new l("fold",{character:"\\eaf5"}),l.folderActive=new l("folder-active",{character:"\\eaf6"}),l.folderOpened=new l("folder-opened",{character:"\\eaf7"}),l.gear=new l("gear",{character:"\\eaf8"}),l.gift=new l("gift",{character:"\\eaf9"}),l.gistSecret=new l("gist-secret",{character:"\\eafa"}),l.gist=new l("gist",{character:"\\eafb"}),l.gitCommit=new l("git-commit",{character:"\\eafc"}),l.gitCompare=new l("git-compare",{character:"\\eafd"}),l.gitMerge=new l("git-merge",{character:"\\eafe"}),l.githubAction=new l("github-action",{character:"\\eaff"}),l.githubAlt=new l("github-alt",{character:"\\eb00"}),l.globe=new l("globe",{character:"\\eb01"}),l.grabber=new l("grabber",{character:"\\eb02"}),l.graph=new l("graph",{character:"\\eb03"}),l.gripper=new l("gripper",{character:"\\eb04"}),l.heart=new l("heart",{character:"\\eb05"}),l.home=new l("home",{character:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{character:"\\eb07"}),l.hubot=new l("hubot",{character:"\\eb08"}),l.inbox=new l("inbox",{character:"\\eb09"}),l.issueClosed=new l("issue-closed",{character:"\\eb0a"}),l.issueReopened=new l("issue-reopened",{character:"\\eb0b"}),l.issues=new l("issues",{character:"\\eb0c"}),l.italic=new l("italic",{character:"\\eb0d"}),l.jersey=new l("jersey",{character:"\\eb0e"}),l.json=new l("json",{character:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{character:"\\eb10"}),l.key=new l("key",{character:"\\eb11"}),l.law=new l("law",{character:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{character:"\\eb13"}),l.linkExternal=new l("link-external",{character:"\\eb14"}),l.link=new l("link",{character:"\\eb15"}),l.listOrdered=new l("list-ordered",{character:"\\eb16"}),l.listUnordered=new l("list-unordered",{character:"\\eb17"}),l.liveShare=new l("live-share",{character:"\\eb18"}),l.loading=new l("loading",{character:"\\eb19"}),l.location=new l("location",{character:"\\eb1a"}),l.mailRead=new l("mail-read",{character:"\\eb1b"}),l.mail=new l("mail",{character:"\\eb1c"}),l.markdown=new l("markdown",{character:"\\eb1d"}),l.megaphone=new l("megaphone",{character:"\\eb1e"}),l.mention=new l("mention",{character:"\\eb1f"}),l.milestone=new l("milestone",{character:"\\eb20"}),l.mortarBoard=new l("mortar-board",{character:"\\eb21"}),l.move=new l("move",{character:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{character:"\\eb23"}),l.mute=new l("mute",{character:"\\eb24"}),l.noNewline=new l("no-newline",{character:"\\eb25"}),l.note=new l("note",{character:"\\eb26"}),l.octoface=new l("octoface",{character:"\\eb27"}),l.openPreview=new l("open-preview",{character:"\\eb28"}),l.package_=new l("package",{character:"\\eb29"}),l.paintcan=new l("paintcan",{character:"\\eb2a"}),l.pin=new l("pin",{character:"\\eb2b"}),l.play=new l("play",{character:"\\eb2c"}),l.run=new l("run",{character:"\\eb2c"}),l.plug=new l("plug",{character:"\\eb2d"}),l.preserveCase=new l("preserve-case",{character:"\\eb2e"}),l.preview=new l("preview",{character:"\\eb2f"}),l.project=new l("project",{character:"\\eb30"}),l.pulse=new l("pulse",{character:"\\eb31"}),l.question=new l("question",{character:"\\eb32"}),l.quote=new l("quote",{character:"\\eb33"}),l.radioTower=new l("radio-tower",{character:"\\eb34"}),l.reactions=new l("reactions",{character:"\\eb35"}),l.references=new l("references",{character:"\\eb36"}),l.refresh=new l("refresh",{character:"\\eb37"}),l.regex=new l("regex",{character:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{character:"\\eb39"}),l.remote=new l("remote",{character:"\\eb3a"}),l.remove=new l("remove",{character:"\\eb3b"}),l.replaceAll=new l("replace-all",{character:"\\eb3c"}),l.replace=new l("replace",{character:"\\eb3d"}),l.repoClone=new l("repo-clone",{character:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{character:"\\eb3f"}),l.repoPull=new l("repo-pull",{character:"\\eb40"}),l.repoPush=new l("repo-push",{character:"\\eb41"}),l.report=new l("report",{character:"\\eb42"}),l.requestChanges=new l("request-changes",{character:"\\eb43"}),l.rocket=new l("rocket",{character:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{character:"\\eb45"}),l.rootFolder=new l("root-folder",{character:"\\eb46"}),l.rss=new l("rss",{character:"\\eb47"}),l.ruby=new l("ruby",{character:"\\eb48"}),l.saveAll=new l("save-all",{character:"\\eb49"}),l.saveAs=new l("save-as",{character:"\\eb4a"}),l.save=new l("save",{character:"\\eb4b"}),l.screenFull=new l("screen-full",{character:"\\eb4c"}),l.screenNormal=new l("screen-normal",{character:"\\eb4d"}),l.searchStop=new l("search-stop",{character:"\\eb4e"}),l.server=new l("server",{character:"\\eb50"}),l.settingsGear=new l("settings-gear",{character:"\\eb51"}),l.settings=new l("settings",{character:"\\eb52"}),l.shield=new l("shield",{character:"\\eb53"}),l.smiley=new l("smiley",{character:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{character:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{character:"\\eb56"}),l.splitVertical=new l("split-vertical",{character:"\\eb57"}),l.squirrel=new l("squirrel",{character:"\\eb58"}),l.starFull=new l("star-full",{character:"\\eb59"}),l.starHalf=new l("star-half",{character:"\\eb5a"}),l.symbolClass=new l("symbol-class",{character:"\\eb5b"}),l.symbolColor=new l("symbol-color",{character:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{character:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{character:"\\eb5e"}),l.symbolField=new l("symbol-field",{character:"\\eb5f"}),l.symbolFile=new l("symbol-file",{character:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{character:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{character:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{character:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{character:"\\eb64"}),l.symbolProperty=new l("symbol-property",{character:"\\eb65"}),l.wrench=new l("wrench",{character:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{character:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{character:"\\eb66"}),l.tasklist=new l("tasklist",{character:"\\eb67"}),l.telescope=new l("telescope",{character:"\\eb68"}),l.textSize=new l("text-size",{character:"\\eb69"}),l.threeBars=new l("three-bars",{character:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{character:"\\eb6b"}),l.thumbsup=new l("thumbsup",{character:"\\eb6c"}),l.tools=new l("tools",{character:"\\eb6d"}),l.triangleDown=new l("triangle-down",{character:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{character:"\\eb6f"}),l.triangleRight=new l("triangle-right",{character:"\\eb70"}),l.triangleUp=new l("triangle-up",{character:"\\eb71"}),l.twitter=new l("twitter",{character:"\\eb72"}),l.unfold=new l("unfold",{character:"\\eb73"}),l.unlock=new l("unlock",{character:"\\eb74"}),l.unmute=new l("unmute",{character:"\\eb75"}),l.unverified=new l("unverified",{character:"\\eb76"}),l.verified=new l("verified",{character:"\\eb77"}),l.versions=new l("versions",{character:"\\eb78"}),l.vmActive=new l("vm-active",{character:"\\eb79"}),l.vmOutline=new l("vm-outline",{character:"\\eb7a"}),l.vmRunning=new l("vm-running",{character:"\\eb7b"}),l.watch=new l("watch",{character:"\\eb7c"}),l.whitespace=new l("whitespace",{character:"\\eb7d"}),l.wholeWord=new l("whole-word",{character:"\\eb7e"}),l.window=new l("window",{character:"\\eb7f"}),l.wordWrap=new l("word-wrap",{character:"\\eb80"}),l.zoomIn=new l("zoom-in",{character:"\\eb81"}),l.zoomOut=new l("zoom-out",{character:"\\eb82"}),l.listFilter=new l("list-filter",{character:"\\eb83"}),l.listFlat=new l("list-flat",{character:"\\eb84"}),l.listSelection=new l("list-selection",{character:"\\eb85"}),l.selection=new l("selection",{character:"\\eb85"}),l.listTree=new l("list-tree",{character:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{character:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{character:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{character:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{character:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{character:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{character:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{character:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{character:"\\eb8c"}),l.symbolString=new l("symbol-string",{character:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{character:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{character:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{character:"\\eb90"}),l.callIncoming=new l("call-incoming",{character:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{character:"\\eb93"}),l.menu=new l("menu",{character:"\\eb94"}),l.expandAll=new l("expand-all",{character:"\\eb95"}),l.feedback=new l("feedback",{character:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{character:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{character:"\\eb98"}),l.account=new l("account",{character:"\\eb99"}),l.bellDot=new l("bell-dot",{character:"\\eb9a"}),l.debugConsole=new l("debug-console",{character:"\\eb9b"}),l.library=new l("library",{character:"\\eb9c"}),l.output=new l("output",{character:"\\eb9d"}),l.runAll=new l("run-all",{character:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{character:"\\eb9f"}),l.pinned=new l("pinned",{character:"\\eba0"}),l.githubInverted=new l("github-inverted",{character:"\\eba1"}),l.debugAlt=new l("debug-alt",{character:"\\eb91"}),l.serverProcess=new l("server-process",{character:"\\eba2"}),l.serverEnvironment=new l("server-environment",{character:"\\eba3"}),l.pass=new l("pass",{character:"\\eba4"}),l.stopCircle=new l("stop-circle",{character:"\\eba5"}),l.playCircle=new l("play-circle",{character:"\\eba6"}),l.record=new l("record",{character:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{character:"\\eba8"}),l.vmConnect=new l("vm-connect",{character:"\\eba9"}),l.cloud=new l("cloud",{character:"\\ebaa"}),l.merge=new l("merge",{character:"\\ebab"})})(ge||(ge={}));let W=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function Q(l){return l.replace(W,(T,N)=>N?T:"\\"+T)}let y=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function C(l){return l.replace(y,T=>"\\"+T)}let S=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function P(l){return l.replace(S,(T,N,b,g,j)=>N?`$(${b})`:`<span class="codicon codicon-${g}${j?" codicon-animation-"+j:""}"></span>`)}let V=/(\s)?(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)(\s)?/gi;function k(l){return l.indexOf(h.a)===-1?l:l.replace(V,(T,N,b,g)=>b?T:N||g||"")}},function(Ie,w,o){"use strict";var h;o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f}),o.d(w,"c",function(){return H}),o.d(w,"d",function(){return E}),function(ge){ge.serviceIds=new Map,ge.DI_TARGET="$di$target",ge.DI_DEPENDENCIES="$di$dependencies",ge.getServiceDependencies=function(W){return W[ge.DI_DEPENDENCIES]||[]}}(h||(h={}));let f=H("instantiationService");function D(ge,W,Q,y){W[h.DI_TARGET]===W?W[h.DI_DEPENDENCIES].push({id:ge,index:Q,optional:y}):(W[h.DI_DEPENDENCIES]=[{id:ge,index:Q,optional:y}],W[h.DI_TARGET]=W)}function H(ge){if(h.serviceIds.has(ge))return h.serviceIds.get(ge);let W=function(Q,y,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");D(W,Q,C,!1)};return W.toString=()=>ge,h.serviceIds.set(ge,W),W}function E(ge){return function(W,Q,y){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");D(ge,W,y,!0)}}},function(Ie,w,o){"use strict";o.d(w,"c",function(){return E}),o.d(w,"h",function(){return ge}),o.d(w,"e",function(){return W}),o.d(w,"b",function(){return Q}),o.d(w,"f",function(){return y}),o.d(w,"a",function(){return C}),o.d(w,"g",function(){return P}),o.d(w,"d",function(){return V});var h=o(18),f=o(2),D=o(56),H=o(6);let E=Object(h.c)("themeService");function ge(k){return{id:k}}var W;(function(k){k.isThemeIcon=function(N){return N&&typeof N=="object"&&typeof N.id=="string"};let l=/^\$\(([a-z.]+\/)?([a-z-~]+)\)$/i;k.fromString=function(N){let b=l.exec(N);if(!b)return;let[,g,j]=b;return g||(g="codicon/"),{id:g+j}};let T=/^(codicon\/)?([a-z-]+)(~[a-z]+)?$/i;k.asClassName=function(N){let b=T.exec(N.id);if(!b)return;let[,,g,j]=b,ie="codicon codicon-"+g;return j&&(ie+=" "+j.substr(1)),ie}})(W||(W={}));let Q="hc";function y(k){switch(k){case"dark":return"vs-dark";case Q:return"hc-black";default:return"vs"}}let C={ThemingContribution:"base.contributions.theming"},S=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new H.a}onColorThemeChange(k){return this.themingParticipants.push(k),this.onThemingParticipantAddedEmitter.fire(k),Object(f.h)(()=>{let l=this.themingParticipants.indexOf(k);this.themingParticipants.splice(l,1)})}getThemingParticipants(){return this.themingParticipants}};function P(k){return S.onColorThemeChange(k)}D.a.add(C.ThemingContribution,S);class V extends f.a{constructor(l){super(),this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(T=>this.onThemeChange(T)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},function(Ie,w,o){"use strict";o.d(w,"i",function(){return H}),o.d(w,"f",function(){return E}),o.d(w,"j",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"l",function(){return Q}),o.d(w,"g",function(){return y}),o.d(w,"h",function(){return C}),o.d(w,"e",function(){return S}),o.d(w,"c",function(){return P}),o.d(w,"d",function(){return V}),o.d(w,"k",function(){return k}),o.d(w,"b",function(){return l});var h=o(25),f=o(13),D=o(2);function H(T){return T&&typeof T.then=="function"}function E(T){let N=new h.b,b=T(N.token),g=new Promise((j,ie)=>{N.token.onCancellationRequested(()=>{ie(f.a())}),Promise.resolve(b).then(U=>{N.dispose(),j(U)},U=>{N.dispose(),ie(U)})});return new class{cancel(){N.cancel()}then(j,ie){return g.then(j,ie)}catch(j){return this.then(void 0,j)}finally(j){return g.finally(j)}}}function ge(T,N,b){return Promise.race([T,new Promise(g=>N.onCancellationRequested(()=>g(b)))])}class W{constructor(N){this.defaultDelay=N,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(N,b=this.defaultDelay){return this.task=N,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((g,j)=>{this.doResolve=g,this.doReject=j}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let g=this.task;return this.task=null,g()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},b),this.completionPromise}isTriggered(){return this.timeout!==null}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(f.a()),this.completionPromise=null)}cancelTimeout(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}function Q(T,N){return N?new Promise((b,g)=>{let j=setTimeout(b,T);N.onCancellationRequested(()=>{clearTimeout(j),g(f.a())})}):E(b=>Q(T,b))}function y(T,N=0){let b=setTimeout(T,N);return Object(D.h)(()=>clearTimeout(b))}function C(T,N=g=>!!g,b=null){let g=0,j=T.length,ie=()=>{if(g>=j)return Promise.resolve(b);let U=T[g++];return Promise.resolve(U()).then(q=>N(q)?Promise.resolve(q):ie())};return ie()}class S{constructor(N,b){this._token=-1,typeof N=="function"&&typeof b=="number"&&this.setIfNotSet(N,b)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(N,b){this.cancel(),this._token=setTimeout(()=>{this._token=-1,N()},b)}setIfNotSet(N,b){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,N()},b))}}class P{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(N,b){this.cancel(),this._token=setInterval(()=>{N()},b)}}class V{constructor(N,b){this.timeoutToken=-1,this.runner=N,this.timeout=b,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(N=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,N)}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let k;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){let T=Object.freeze({didTimeout:!0,timeRemaining:()=>15});k=N=>{let b=setTimeout(()=>N(T)),g=!1;return{dispose(){g||(g=!0,clearTimeout(b))}}}}else k=(T,N)=>{let b=requestIdleCallback(T,typeof N=="number"?{timeout:N}:void 0),g=!1;return{dispose(){g||(g=!0,cancelIdleCallback(b))}}}})();class l{constructor(N){this._didRun=!1,this._executor=()=>{try{this._value=N()}catch(b){this._error=b}finally{this._didRun=!0}},this._handle=k(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(9),f=o(3);class D extends f.a{constructor(E,ge,W,Q){super(E,ge,W,Q),this.selectionStartLineNumber=E,this.selectionStartColumn=ge,this.positionLineNumber=W,this.positionColumn=Q}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(E){return D.selectionsEqual(this,E)}static selectionsEqual(E,ge){return E.selectionStartLineNumber===ge.selectionStartLineNumber&&E.selectionStartColumn===ge.selectionStartColumn&&E.positionLineNumber===ge.positionLineNumber&&E.positionColumn===ge.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(E,ge){return this.getDirection()===0?new D(this.startLineNumber,this.startColumn,E,ge):new D(E,ge,this.startLineNumber,this.startColumn)}getPosition(){return new h.a(this.positionLineNumber,this.positionColumn)}setStartPosition(E,ge){return this.getDirection()===0?new D(E,ge,this.endLineNumber,this.endColumn):new D(this.endLineNumber,this.endColumn,E,ge)}static fromPositions(E,ge=E){return new D(E.lineNumber,E.column,ge.lineNumber,ge.column)}static liftSelection(E){return new D(E.selectionStartLineNumber,E.selectionStartColumn,E.positionLineNumber,E.positionColumn)}static selectionsArrEqual(E,ge){if(E&&!ge||!E&&ge)return!1;if(!E&&!ge)return!0;if(E.length!==ge.length)return!1;for(let W=0,Q=E.length;W<Q;W++)if(!this.selectionsEqual(E[W],ge[W]))return!1;return!0}static isISelection(E){return E&&typeof E.selectionStartLineNumber=="number"&&typeof E.selectionStartColumn=="number"&&typeof E.positionLineNumber=="number"&&typeof E.positionColumn=="number"}static createWithDirection(E,ge,W,Q,y){return y===0?new D(E,ge,W,Q):new D(W,Q,E,ge)}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return P}),o.d(w,"f",function(){return V}),o.d(w,"c",function(){return k}),o.d(w,"d",function(){return N}),o.d(w,"e",function(){return b}),o.d(w,"a",function(){return g}),o.d(w,"g",function(){return j});var h=o(13),f=o(8),D=o(9),H=o(3),E=o(21),ge=o(30),W=o(39);let Q=()=>!0,y=()=>!1,C=ie=>ie===" "||ie===" ";function S(ie,U,q){ie.has(U)?ie.get(U).push(q):ie.set(U,[q])}class P{constructor(U,q,B){this._languageIdentifier=U;let se=B.options,ke=se.get(117);this.readOnly=se.get(72),this.tabSize=q.tabSize,this.indentSize=q.indentSize,this.insertSpaces=q.insertSpaces,this.lineHeight=se.get(51),this.pageSize=Math.max(1,Math.floor(ke.height/this.lineHeight)-2),this.useTabStops=se.get(104),this.wordSeparators=se.get(105),this.emptySelectionClipboard=se.get(26),this.copyWithSyntaxHighlighting=se.get(16),this.multiCursorMergeOverlapping=se.get(60),this.multiCursorPaste=se.get(62),this.autoClosingBrackets=se.get(5),this.autoClosingQuotes=se.get(7),this.autoClosingOvertype=se.get(6),this.autoSurround=se.get(10),this.autoIndent=se.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:P._getShouldAutoClose(U,this.autoClosingQuotes),bracket:P._getShouldAutoClose(U,this.autoClosingBrackets)};let xe=P._getAutoClosingPairs(U);if(xe)for(let Z of xe)S(this.autoClosingPairsOpen2,Z.open.charAt(Z.open.length-1),Z),Z.close.length===1&&S(this.autoClosingPairsClose2,Z.close,Z);let Y=P._getSurroundingPairs(U);if(Y)for(let Z of Y)this.surroundingPairs[Z.open]=Z.close}static shouldRecreate(U){return U.hasChanged(117)||U.hasChanged(105)||U.hasChanged(26)||U.hasChanged(60)||U.hasChanged(62)||U.hasChanged(5)||U.hasChanged(7)||U.hasChanged(6)||U.hasChanged(10)||U.hasChanged(104)||U.hasChanged(51)||U.hasChanged(72)}get electricChars(){if(!this._electricChars){this._electricChars={};let U=P._getElectricCharacters(this._languageIdentifier);if(U)for(let q of U)this._electricChars[q]=!0}return this._electricChars}normalizeIndentation(U){return ge.b.normalizeIndentation(U,this.indentSize,this.insertSpaces)}static _getElectricCharacters(U){try{return W.a.getElectricCharacters(U.id)}catch(q){return Object(h.e)(q),null}}static _getAutoClosingPairs(U){try{return W.a.getAutoClosingPairs(U.id)}catch(q){return Object(h.e)(q),null}}static _getShouldAutoClose(U,q){switch(q){case"beforeWhitespace":return C;case"languageDefined":return P._getLanguageDefinedShouldAutoClose(U);case"always":return Q;case"never":return y}}static _getLanguageDefinedShouldAutoClose(U){try{let q=W.a.getAutoCloseBeforeSet(U.id);return B=>q.indexOf(B)!==-1}catch(q){return Object(h.e)(q),y}}static _getSurroundingPairs(U){try{return W.a.getSurroundingPairs(U.id)}catch(q){return Object(h.e)(q),null}}}class V{constructor(U,q,B,se){this.selectionStart=U,this.selectionStartLeftoverVisibleColumns=q,this.position=B,this.leftoverVisibleColumns=se,this.selection=V._computeSelection(this.selectionStart,this.position)}equals(U){return this.selectionStartLeftoverVisibleColumns===U.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===U.leftoverVisibleColumns&&this.position.equals(U.position)&&this.selectionStart.equalsRange(U.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(U,q,B,se){return U?new V(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new D.a(q,B),se):new V(new H.a(q,B,q,B),se,new D.a(q,B),se)}static _computeSelection(U,q){let B,se,ke,xe;return U.isEmpty()?(B=U.startLineNumber,se=U.startColumn,ke=q.lineNumber,xe=q.column):q.isBeforeOrEqual(U.getStartPosition())?(B=U.endLineNumber,se=U.endColumn,ke=q.lineNumber,xe=q.column):(B=U.startLineNumber,se=U.startColumn,ke=q.lineNumber,xe=q.column),new E.a(B,se,ke,xe)}}class k{constructor(U,q,B){this.model=U,this.coordinatesConverter=q,this.cursorConfig=B}}class l{constructor(U){this.modelState=U,this.viewState=null}}class T{constructor(U){this.modelState=null,this.viewState=U}}class N{constructor(U,q){this.modelState=U,this.viewState=q}static fromModelState(U){return new l(U)}static fromViewState(U){return new T(U)}static fromModelSelection(U){let q=U.selectionStartLineNumber,B=U.selectionStartColumn,se=U.positionLineNumber,ke=U.positionColumn,xe=new V(new H.a(q,B,q,B),0,new D.a(se,ke),0);return N.fromModelState(xe)}static fromModelSelections(U){let q=[];for(let B=0,se=U.length;B<se;B++)q[B]=this.fromModelSelection(U[B]);return q}equals(U){return this.viewState.equals(U.viewState)&&this.modelState.equals(U.modelState)}}class b{constructor(U,q,B){this.type=U,this.commands=q,this.shouldPushStackElementBefore=B.shouldPushStackElementBefore,this.shouldPushStackElementAfter=B.shouldPushStackElementAfter}}class g{static visibleColumnFromColumn(U,q,B){let se=U.length,ke=q-1<se?q-1:se,xe=0,Y=0;for(;Y<ke;){let Z=f.A(U,ke,Y);if(Y+=Z>=65536?2:1,Z===9)xe=g.nextRenderTabStop(xe,B);else{let te=f.y(Z);for(;Y<ke;){let he=f.A(U,ke,Y),Ce=f.y(he);if(f.c(te,Ce))break;Y+=he>=65536?2:1,te=Ce}f.E(Z)||f.C(Z)?xe+=2:xe+=1}}return xe}static visibleColumnFromColumn2(U,q,B){return this.visibleColumnFromColumn(q.getLineContent(B.lineNumber),B.column,U.tabSize)}static columnFromVisibleColumn(U,q,B){if(q<=0)return 1;let se=U.length,ke=0,xe=1,Y=0;for(;Y<se;){let Z=f.A(U,se,Y),te;if(Y+=Z>=65536?2:1,Z===9)te=g.nextRenderTabStop(ke,B);else{let Ce=f.y(Z);for(;Y<se;){let Ae=f.A(U,se,Y),L=f.y(Ae);if(f.c(Ce,L))break;Y+=Ae>=65536?2:1,Ce=L}te=f.E(Z)||f.C(Z)?ke+2:ke+1}let he=Y+1;if(te>=q)return te-q<q-ke?he:xe;ke=te,xe=he}return se+1}static columnFromVisibleColumn2(U,q,B,se){let ke=this.columnFromVisibleColumn(q.getLineContent(B),se,U.tabSize),xe=q.getLineMinColumn(B);if(ke<xe)return xe;let Y=q.getLineMaxColumn(B);return ke>Y?Y:ke}static nextRenderTabStop(U,q){return U+q-U%q}static nextIndentTabStop(U,q){return U+q-U%q}static prevRenderTabStop(U,q){return U-1-(U-1)%q}static prevIndentTabStop(U,q){return U-1-(U-1)%q}}function j(ie){return ie==="'"||ie==='"'||ie==="`"}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Q}),o.d(w,"b",function(){return k});var h=o(11),f=o(42);let D=/^\w[\w\d+.-]*$/,H=/^\//,E=/^\/\//,ge="/",W=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Q{constructor(g,j,ie,U,q,B=!1){typeof g=="object"?(this.scheme=g.scheme||"",this.authority=g.authority||"",this.path=g.path||"",this.query=g.query||"",this.fragment=g.fragment||""):(this.scheme=function(se,ke){return se||ke?se:"file"}(g,B),this.authority=j||"",this.path=function(se,ke){switch(se){case"https":case"http":case"file":ke?ke[0]!==ge&&(ke=ge+ke):ke=ge}return ke}(this.scheme,ie||""),this.query=U||"",this.fragment=q||"",function(se,ke){if(!se.scheme&&ke)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${se.authority}", path: "${se.path}", query: "${se.query}", fragment: "${se.fragment}"}`);if(se.scheme&&!D.test(se.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(se.path){if(se.authority){if(!H.test(se.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(E.test(se.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,B))}static isUri(g){return g instanceof Q||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="function"&&typeof g.with=="function"&&typeof g.toString=="function"}get fsPath(){return k(this,!1)}with(g){if(!g)return this;let{scheme:j,authority:ie,path:U,query:q,fragment:B}=g;return j===void 0?j=this.scheme:j===null&&(j=""),ie===void 0?ie=this.authority:ie===null&&(ie=""),U===void 0?U=this.path:U===null&&(U=""),q===void 0?q=this.query:q===null&&(q=""),B===void 0?B=this.fragment:B===null&&(B=""),j===this.scheme&&ie===this.authority&&U===this.path&&q===this.query&&B===this.fragment?this:new C(j,ie,U,q,B)}static parse(g,j=!1){let ie=W.exec(g);return ie?new C(ie[2]||"",N(ie[4]||""),N(ie[5]||""),N(ie[7]||""),N(ie[9]||""),j):new C("","","","","")}static file(g){let j="";if(h.i&&(g=g.replace(/\\/g,ge)),g[0]===ge&&g[1]===ge){let ie=g.indexOf(ge,2);ie===-1?(j=g.substring(2),g=ge):(j=g.substring(2,ie),g=g.substring(ie)||ge)}return new C("file",j,g,"","")}static from(g){return new C(g.scheme,g.authority,g.path,g.query,g.fragment)}static joinPath(g,...j){if(!g.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let ie;return ie=h.i&&g.scheme==="file"?Q.file(f.i.join(k(g,!0),...j)).path:f.e.join(g.path,...j),g.with({path:ie})}toString(g=!1){return l(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof Q)return g;{let j=new C(g);return j._formatted=g.external,j._fsPath=g._sep===y?g.fsPath:null,j}}return g}}let y=h.i?1:void 0;class C extends Q{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath}toString(g=!1){return g?l(this,!0):(this._formatted||(this._formatted=l(this,!1)),this._formatted)}toJSON(){let g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=y),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}let S={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function P(b,g){let j,ie=-1;for(let U=0;U<b.length;U++){let q=b.charCodeAt(U);if(q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===45||q===46||q===95||q===126||g&&q===47)ie!==-1&&(j+=encodeURIComponent(b.substring(ie,U)),ie=-1),j!==void 0&&(j+=b.charAt(U));else{j===void 0&&(j=b.substr(0,U));let B=S[q];B!==void 0?(ie!==-1&&(j+=encodeURIComponent(b.substring(ie,U)),ie=-1),j+=B):ie===-1&&(ie=U)}}return ie!==-1&&(j+=encodeURIComponent(b.substring(ie))),j!==void 0?j:b}function V(b){let g;for(let j=0;j<b.length;j++){let ie=b.charCodeAt(j);ie===35||ie===63?(g===void 0&&(g=b.substr(0,j)),g+=S[ie]):g!==void 0&&(g+=b[j])}return g!==void 0?g:b}function k(b,g){let j;return j=b.authority&&b.path.length>1&&b.scheme==="file"?`//${b.authority}${b.path}`:b.path.charCodeAt(0)===47&&(b.path.charCodeAt(1)>=65&&b.path.charCodeAt(1)<=90||b.path.charCodeAt(1)>=97&&b.path.charCodeAt(1)<=122)&&b.path.charCodeAt(2)===58?g?b.path.substr(1):b.path[1].toLowerCase()+b.path.substr(2):b.path,h.i&&(j=j.replace(/\//g,"\\")),j}function l(b,g){let j=g?V:P,ie="",{scheme:U,authority:q,path:B,query:se,fragment:ke}=b;if(U&&(ie+=U,ie+=":"),(q||U==="file")&&(ie+=ge,ie+=ge),q){let xe=q.indexOf("@");if(xe!==-1){let Y=q.substr(0,xe);q=q.substr(xe+1),xe=Y.indexOf(":"),xe===-1?ie+=j(Y,!1):(ie+=j(Y.substr(0,xe),!1),ie+=":",ie+=j(Y.substr(xe+1),!1)),ie+="@"}q=q.toLowerCase(),xe=q.indexOf(":"),xe===-1?ie+=j(q,!1):(ie+=j(q.substr(0,xe),!1),ie+=q.substr(xe))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){let xe=B.charCodeAt(1);xe>=65&&xe<=90&&(B=`/${String.fromCharCode(xe+32)}:${B.substr(3)}`)}else if(B.length>=2&&B.charCodeAt(1)===58){let xe=B.charCodeAt(0);xe>=65&&xe<=90&&(B=`${String.fromCharCode(xe+32)}:${B.substr(2)}`)}ie+=j(B,!0)}return se&&(ie+="?",ie+=j(se,!1)),ke&&(ie+="#",ie+=g?ke:P(ke,!1)),ie}let T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function N(b){return b.match(T)?b.replace(T,g=>function j(ie){try{return decodeURIComponent(ie)}catch(U){return ie.length>3?ie.substr(0,3)+j(ie.substr(3)):ie}}(g)):b}},function(Ie,w,o){"use strict";o.d(w,"f",function(){return S}),o.d(w,"b",function(){return P}),o.d(w,"a",function(){return V}),o.d(w,"d",function(){return k}),o.d(w,"e",function(){return T}),o.d(w,"c",function(){return N});var h=o(60),f=o(18),D=o(10),H=o(27),E=o(2),ge=o(6),W=o(37),Q=o(53),y=function(b,g,j,ie){var U,q=arguments.length,B=q<3?g:ie===null?ie=Object.getOwnPropertyDescriptor(g,j):ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(b,g,j,ie);else for(var se=b.length-1;se>=0;se--)(U=b[se])&&(B=(q<3?U(B):q>3?U(g,j,B):U(g,j))||B);return q>3&&B&&Object.defineProperty(g,j,B),B},C=function(b,g){return function(j,ie){g(j,ie,b)}};function S(b){return b.command!==void 0}class P{constructor(g){this.id=P._idPool++,this._debugName=g}}P._idPool=0,P.CommandPalette=new P("CommandPalette"),P.EditorContext=new P("EditorContext"),P.EditorContextPeek=new P("EditorContextPeek"),P.MenubarEditMenu=new P("MenubarEditMenu"),P.MenubarGoMenu=new P("MenubarGoMenu"),P.MenubarSelectionMenu=new P("MenubarSelectionMenu");let V=Object(f.c)("menuService"),k=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ge.a,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:b=>b===P.CommandPalette}}addCommand(b){return this.addCommands(W.a.single(b))}addCommands(b){for(let g of b)this._commands.set(g.id,g);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(E.h)(()=>{let g=!1;for(let j of b)g=this._commands.delete(j.id)||g;g&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(b){return this._commands.get(b)}getCommands(){let b=new Map;return this._commands.forEach((g,j)=>b.set(j,g)),b}appendMenuItem(b,g){return this.appendMenuItems(W.a.single({id:b,item:g}))}appendMenuItems(b){let g=new Set,j=new Q.a;for(let{id:ie,item:U}of b){let q=this._menuItems.get(ie);q||(q=new Q.a,this._menuItems.set(ie,q)),j.push(q.push(U)),g.add(ie)}return this._onDidChangeMenu.fire(g),Object(E.h)(()=>{if(j.size>0){for(let ie of j)ie();this._onDidChangeMenu.fire(g),j.clear()}})}getMenuItems(b){let g;return g=this._menuItems.has(b)?[...this._menuItems.get(b)]:[],b===P.CommandPalette&&this._appendImplicitItems(g),g}_appendImplicitItems(b){let g=new Set;for(let j of b)S(j)&&(g.add(j.command.id),j.alt&&g.add(j.alt.id));this._commands.forEach((j,ie)=>{g.has(ie)||b.push({command:j})})}},l=class extends h.a{constructor(b,g,j){super(b,g),this._commandService=j}run(...b){return this._commandService.executeCommand(this.id,...b)}};l=y([C(2,H.b)],l);class T extends h.d{constructor(g,j,ie,U){super("submenuitem."+g.submenu.id,typeof g.title=="string"?g.title:g.title.value,()=>{let q=[],B=j.createMenu(g.submenu,ie),se=B.getActions(U);B.dispose();for(let ke of se){let[,xe]=ke;xe.length>0&&(q.push(...xe),q.push(new h.c))}return q.length&&q.pop(),q},"submenu"),this.item=g}}let N=class em extends l{constructor(g,j,ie,U,q){if(typeof g.title=="string"?super(g.id,g.title,q):super(g.id,g.title.value,q),this._cssClass=void 0,this._enabled=!g.precondition||U.contextMatchesRules(g.precondition),this._tooltip=g.tooltip?typeof g.tooltip=="string"?g.tooltip:g.tooltip.value:void 0,g.toggled){let B=g.toggled.condition?g.toggled:{condition:g.toggled};this._checked=U.contextMatchesRules(B.condition),this._checked&&B.tooltip&&(this._tooltip=typeof B.tooltip=="string"?B.tooltip:B.tooltip.value)}this._options=ie||{},this.item=g,this.alt=j?new em(j,void 0,this._options,U,q):void 0}dispose(){this.alt&&this.alt.dispose(),super.dispose()}run(...g){let j=[];return this._options.arg&&(j=[...j,this._options.arg]),this._options.shouldForwardArgs&&(j=[...j,...g]),super.run(...j)}};N=y([C(3,D.b),C(4,H.b)],N)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D}),o.d(w,"b",function(){return E});var h=o(6);let f=Object.freeze(function(ge,W){let Q=setTimeout(ge.bind(W),0);return{dispose(){clearTimeout(Q)}}});var D;(function(ge){ge.isCancellationToken=function(W){return W===ge.None||W===ge.Cancelled||W instanceof H||!(!W||typeof W!="object")&&typeof W.isCancellationRequested=="boolean"&&typeof W.onCancellationRequested=="function"},ge.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:h.b.None}),ge.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:f})})(D||(D={}));class H{constructor(){this._isCancelled=!1,this._emitter=null}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?f:(this._emitter||(this._emitter=new h.a),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class E{constructor(W){this._token=void 0,this._parentListener=void 0,this._parentListener=W&&W.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new H),this._token}cancel(){this._token?this._token instanceof H&&this._token.cancel():this._token=D.Cancelled}dispose(W=!1){W&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof H&&this._token.dispose():this._token=D.None}}},function(Ie,w,o){"use strict";o.d(w,"h",function(){return H}),o.d(w,"b",function(){return E}),o.d(w,"j",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"i",function(){return N}),o.d(w,"e",function(){return b}),o.d(w,"f",function(){return j}),o.d(w,"l",function(){return ie}),o.d(w,"c",function(){return q}),o.d(w,"d",function(){return B}),o.d(w,"k",function(){return se}),o.d(w,"g",function(){return xe});var h=o(0),f=o(11),D=o(73);let H=8;class E{constructor(Z){this._values=Z}hasChanged(Z){return this._values[Z]}}class ge{constructor(){this._values=[]}_read(Z){return this._values[Z]}get(Z){return this._values[Z]}_write(Z,te){this._values[Z]=te}}class W{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Q{constructor(Z,te,he,Ce){this.id=Z,this.name=te,this.defaultValue=he,this.schema=Ce}compute(Z,te,he){return he}}class y{constructor(Z,te=null){this.schema=void 0,this.id=Z,this.name="_never_",this.defaultValue=void 0,this.deps=te}validate(Z){return this.defaultValue}}class C{constructor(Z,te,he,Ce){this.id=Z,this.name=te,this.defaultValue=he,this.schema=Ce}validate(Z){return Z===void 0?this.defaultValue:Z}compute(Z,te,he){return he}}class S extends C{static boolean(Z,te){return Z===void 0?te:Z!=="false"&&Boolean(Z)}constructor(Z,te,he,Ce){Ce!==void 0&&(Ce.type="boolean",Ce.default=he),super(Z,te,he,Ce)}validate(Z){return S.boolean(Z,this.defaultValue)}}class P extends C{constructor(Z,te,he,Ce,Ae,L){L!==void 0&&(L.type="integer",L.default=he,L.minimum=Ce,L.maximum=Ae),super(Z,te,he,L),this.minimum=Ce,this.maximum=Ae}static clampedInt(Z,te,he,Ce){if(Z===void 0)return te;let Ae=parseInt(Z,10);return isNaN(Ae)?te:(Ae=Math.max(he,Ae),Ae=Math.min(Ce,Ae),0|Ae)}validate(Z){return P.clampedInt(Z,this.defaultValue,this.minimum,this.maximum)}}class V extends C{constructor(Z,te,he,Ce,Ae){Ae!==void 0&&(Ae.type="number",Ae.default=he),super(Z,te,he,Ae),this.validationFn=Ce}static clamp(Z,te,he){return Z<te?te:Z>he?he:Z}static float(Z,te){if(typeof Z=="number")return Z;if(Z===void 0)return te;let he=parseFloat(Z);return isNaN(he)?te:he}validate(Z){return this.validationFn(V.float(Z,this.defaultValue))}}class k extends C{static string(Z,te){return typeof Z!="string"?te:Z}constructor(Z,te,he,Ce){Ce!==void 0&&(Ce.type="string",Ce.default=he),super(Z,te,he,Ce)}validate(Z){return k.string(Z,this.defaultValue)}}class l extends C{constructor(Z,te,he,Ce,Ae){Ae!==void 0&&(Ae.type="string",Ae.enum=Ce,Ae.default=he),super(Z,te,he,Ae),this._allowedValues=Ce}static stringSet(Z,te,he){return typeof Z!="string"||he.indexOf(Z)===-1?te:Z}validate(Z){return l.stringSet(Z,this.defaultValue,this._allowedValues)}}class T extends Q{constructor(Z,te,he,Ce,Ae,L,nt){nt!==void 0&&(nt.type="string",nt.enum=Ae,nt.default=Ce),super(Z,te,he,nt),this._allowedValues=Ae,this._convert=L}validate(Z){return typeof Z!="string"||this._allowedValues.indexOf(Z)===-1?this.defaultValue:this._convert(Z)}}var N;(function(Y){Y[Y.Line=1]="Line",Y[Y.Block=2]="Block",Y[Y.Underline=3]="Underline",Y[Y.LineThin=4]="LineThin",Y[Y.BlockOutline=5]="BlockOutline",Y[Y.UnderlineThin=6]="UnderlineThin"})(N||(N={}));class b extends Q{constructor(){super(37,"fontLigatures",b.OFF,{anyOf:[{type:"boolean",description:h.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:h.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:h.a("fontLigaturesGeneral","Configures font ligatures or font features."),default:!1})}validate(Z){return Z===void 0?this.defaultValue:typeof Z=="string"?Z==="false"?b.OFF:Z==="true"?b.ON:Z:Boolean(Z)?b.ON:b.OFF}}b.OFF='"liga" off, "calt" off',b.ON='"liga" on, "calt" on';class g extends Q{constructor(){super(39,"fontWeight",q.fontWeight,{anyOf:[{type:"number",minimum:g.MINIMUM_VALUE,maximum:g.MAXIMUM_VALUE,errorMessage:h.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:g.SUGGESTION_VALUES}],default:q.fontWeight,description:h.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(Z){return Z==="normal"||Z==="bold"?Z:String(P.clampedInt(Z,q.fontWeight,g.MINIMUM_VALUE,g.MAXIMUM_VALUE))}}g.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],g.MINIMUM_VALUE=1,g.MAXIMUM_VALUE=1e3;class j extends y{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(Z,te,he){return j.computeLayout(te,{memory:Z.memory,outerWidth:Z.outerWidth,outerHeight:Z.outerHeight,isDominatedByLongLines:Z.isDominatedByLongLines,lineHeight:Z.fontInfo.lineHeight,viewLineCount:Z.viewLineCount,lineNumbersDigitCount:Z.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Z.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Z.fontInfo.maxDigitWidth,pixelRatio:Z.pixelRatio})}static computeContainedMinimapLineCount(Z){let te=Z.height/Z.lineHeight,he=Z.scrollBeyondLastLine?te-1:0,Ce=(Z.viewLineCount+he)/(Z.pixelRatio*Z.height);return{typicalViewportLineCount:te,extraLinesBeyondLastLine:he,desiredRatio:Ce,minimapLineCount:Math.floor(Z.viewLineCount/Ce)}}static _computeMinimapLayout(Z,te){let he=Z.outerWidth,Ce=Z.outerHeight,Ae=Z.pixelRatio;if(!Z.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Ae*Ce),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Ce};let L=te.stableMinimapLayoutInput,nt=L&&Z.outerHeight===L.outerHeight&&Z.lineHeight===L.lineHeight&&Z.typicalHalfwidthCharacterWidth===L.typicalHalfwidthCharacterWidth&&Z.pixelRatio===L.pixelRatio&&Z.scrollBeyondLastLine===L.scrollBeyondLastLine&&Z.minimap.enabled===L.minimap.enabled&&Z.minimap.side===L.minimap.side&&Z.minimap.size===L.minimap.size&&Z.minimap.showSlider===L.minimap.showSlider&&Z.minimap.renderCharacters===L.minimap.renderCharacters&&Z.minimap.maxColumn===L.minimap.maxColumn&&Z.minimap.scale===L.minimap.scale&&Z.verticalScrollbarWidth===L.verticalScrollbarWidth&&Z.isViewportWrapping===L.isViewportWrapping,ct=Z.lineHeight,Ye=Z.typicalHalfwidthCharacterWidth,ht=Z.scrollBeyondLastLine,fe=Z.minimap.renderCharacters,$=Ae>=2?Math.round(2*Z.minimap.scale):Z.minimap.scale,G=Z.minimap.maxColumn,z=Z.minimap.size,J=Z.minimap.side,Se=Z.verticalScrollbarWidth,A=Z.viewLineCount,ee=Z.remainingWidth,de=Z.isViewportWrapping,Oe=fe?2:3,$e=Math.floor(Ae*Ce),pt=$e/Ae,it=!1,At=!1,Nt=Oe*$,_i=$/Ae,wt=1;if(z==="fill"||z==="fit"){let{typicalViewportLineCount:Li,extraLinesBeyondLastLine:Ii,desiredRatio:Ai,minimapLineCount:Zi}=j.computeContainedMinimapLineCount({viewLineCount:A,scrollBeyondLastLine:ht,height:Ce,lineHeight:ct,pixelRatio:Ae});if(A/Zi>1)it=!0,At=!0,$=1,Nt=1,_i=$/Ae;else{let Bi=!1,Lt=$+1;if(z==="fit"){let Di=Math.ceil((A+Ii)*Nt);de&&nt&&ee<=te.stableFitRemainingWidth?(Bi=!0,Lt=te.stableFitMaxMinimapScale):(Bi=Di>$e,de&&Bi?(te.stableMinimapLayoutInput=Z,te.stableFitRemainingWidth=ee):(te.stableMinimapLayoutInput=null,te.stableFitRemainingWidth=0))}if(z==="fill"||Bi){it=!0;let Di=$;Nt=Math.min(ct*Ae,Math.max(1,Math.floor(1/Ai))),$=Math.min(Lt,Math.max(1,Math.floor(Nt/Oe))),$>Di&&(wt=Math.min(2,$/Di)),_i=$/Ae/wt,$e=Math.ceil(Math.max(Li,A+Ii)*Nt),de&&Bi&&(te.stableFitMaxMinimapScale=$)}}}let Ni=Math.floor(G*_i),pi=Math.min(Ni,Math.max(0,Math.floor((ee-Se-2)*_i/(Ye+_i)))+H),et=Math.floor(Ae*pi),Wt=et/Ae;return et=Math.floor(et*wt),{renderMinimap:fe?1:2,minimapLeft:J==="left"?0:he-pi-Se,minimapWidth:pi,minimapHeightIsEditorHeight:it,minimapIsSampling:At,minimapScale:$,minimapLineHeight:Nt,minimapCanvasInnerWidth:et,minimapCanvasInnerHeight:$e,minimapCanvasOuterWidth:Wt,minimapCanvasOuterHeight:pt}}static computeLayout(Z,te){let he=0|te.outerWidth,Ce=0|te.outerHeight,Ae=0|te.lineHeight,L=0|te.lineNumbersDigitCount,nt=te.typicalHalfwidthCharacterWidth,ct=te.maxDigitWidth,Ye=te.pixelRatio,ht=te.viewLineCount,fe=Z.get(106),$=Z.get(109),G=Z.get(110),z=Z.get(2),J=te.isDominatedByLongLines,Se=Z.get(42),A=Z.get(52).renderType!==0,ee=Z.get(53),de=Z.get(86),Oe=Z.get(56),$e=Z.get(84),pt=$e.verticalScrollbarSize,it=$e.verticalHasArrows,At=$e.arrowSize,Nt=$e.horizontalScrollbarSize,_i=Z.get(50),wt=Z.get(31),Ni;if(typeof _i=="string"&&/^\d+(\.\d+)?ch$/.test(_i)){let Ue=parseFloat(_i.substr(0,_i.length-2));Ni=P.clampedInt(Ue*nt,0,0,1e3)}else Ni=P.clampedInt(_i,0,0,1e3);wt&&(Ni+=16);let pi=0;if(A){let Ue=Math.max(L,ee);pi=Math.round(Ue*ct)}let et=0;Se&&(et=Ae);let Wt=0,Li=Wt+et,Ii=Li+pi,Ai=Ii+Ni,Zi=he-et-pi-Ni,Bi=!1,Lt=!1,Di=-1;z!==2&&(G&&J?(Bi=!0,Lt=!0):fe==="on"||fe==="bounded"?Lt=!0:fe==="wordWrapColumn"&&(Di=$));let gt=j._computeMinimapLayout({outerWidth:he,outerHeight:Ce,lineHeight:Ae,typicalHalfwidthCharacterWidth:nt,pixelRatio:Ye,scrollBeyondLastLine:de,minimap:Oe,verticalScrollbarWidth:pt,viewLineCount:ht,remainingWidth:Zi,isViewportWrapping:Lt},te.memory||new W);gt.renderMinimap!==0&>.minimapLeft===0&&(Wt+=gt.minimapWidth,Li+=gt.minimapWidth,Ii+=gt.minimapWidth,Ai+=gt.minimapWidth);let vi=Zi-gt.minimapWidth,Rt=Math.max(1,Math.floor((vi-pt-2)/nt)),vt=it?At:0;return Lt&&(Di=Math.max(1,Rt),fe==="bounded"&&(Di=Math.min(Di,$))),{width:he,height:Ce,glyphMarginLeft:Wt,glyphMarginWidth:et,lineNumbersLeft:Li,lineNumbersWidth:pi,decorationsLeft:Ii,decorationsWidth:Ni,contentLeft:Ai,contentWidth:vi,minimap:gt,viewportColumn:Rt,isWordWrapMinified:Bi,isViewportWrapping:Lt,wrappingColumn:Di,verticalScrollbarWidth:pt,horizontalScrollbarHeight:Nt,overviewRuler:{top:vt,width:pt,height:Ce-2*vt,right:0}}}}function ie(Y){let Z=Y.get(79);return Z==="editable"?Y.get(72):Z!=="on"}function U(Y,Z){if(typeof Y!="string")return Z;switch(Y){case"hidden":return 2;case"visible":return 3;default:return 1}}let q={fontFamily:f.f?"Menlo, Monaco, 'Courier New', monospace":f.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:f.f?12:14,lineHeight:0,letterSpacing:0},B={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},se=[];function ke(Y){return se[Y.id]=Y,Y}let xe={acceptSuggestionOnCommitCharacter:ke(new S(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:h.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ke(new l(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",h.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:h.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ke(new class extends Q{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[h.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),h.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),h.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:h.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})}validate(Y){switch(Y){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(Y,Z,te){return te===0?Y.accessibilitySupport:te}}),accessibilityPageSize:ke(new P(3,"accessibilityPageSize",10,1,1073741824,{description:h.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ke(new k(4,"ariaLabel",h.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ke(new l(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),h.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:h.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ke(new l(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",h.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:h.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ke(new l(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),h.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:h.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ke(new T(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(Y){switch(Y){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}},{enumDescriptions:[h.a("editor.autoIndent.none","The editor will not insert indentation automatically."),h.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),h.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),h.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),h.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:h.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ke(new S(9,"automaticLayout",!1)),autoSurround:ke(new l(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[h.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),h.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),h.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:h.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ke(new S(11,"codeLens",!0,{description:h.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ke(new S(12,"colorDecorators",!0,{description:h.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:ke(new S(13,"columnSelection",!1,{description:h.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ke(new class extends Q{constructor(){let Y={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",Y,{"editor.comments.insertSpace":{type:"boolean",default:Y.insertSpace,description:h.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:Y.ignoreEmptyLines,description:h.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{insertSpace:S.boolean(Z.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:S.boolean(Z.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:ke(new S(15,"contextmenu",!0)),copyWithSyntaxHighlighting:ke(new S(16,"copyWithSyntaxHighlighting",!0,{description:h.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ke(new T(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(Y){switch(Y){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}},{description:h.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ke(new S(18,"cursorSmoothCaretAnimation",!1,{description:h.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ke(new T(19,"cursorStyle",N.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],function(Y){switch(Y){case"line":return N.Line;case"block":return N.Block;case"underline":return N.Underline;case"line-thin":return N.LineThin;case"block-outline":return N.BlockOutline;case"underline-thin":return N.UnderlineThin}},{description:h.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ke(new P(20,"cursorSurroundingLines",0,0,1073741824,{description:h.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:ke(new l(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[h.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),h.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:h.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ke(new P(22,"cursorWidth",0,0,1073741824,{markdownDescription:h.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ke(new S(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:ke(new S(24,"disableMonospaceOptimizations",!1)),dragAndDrop:ke(new S(25,"dragAndDrop",!0,{description:h.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ke(new class extends S{constructor(){super(26,"emptySelectionClipboard",!0,{description:h.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(Y,Z,te){return te&&Y.emptySelectionClipboard}}),extraEditorClassName:ke(new k(27,"extraEditorClassName","")),fastScrollSensitivity:ke(new V(28,"fastScrollSensitivity",5,Y=>Y<=0?5:Y,{markdownDescription:h.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ke(new class extends Q{constructor(){let Y={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",Y,{"editor.find.cursorMoveOnType":{type:"boolean",default:Y.cursorMoveOnType,description:h.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Y.seedSearchStringFromSelection,description:h.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:Y.autoFindInSelection,enumDescriptions:[h.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),h.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),h.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:h.a("find.autoFindInSelection","Controls the condition for turning on find in selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:Y.globalFindClipboard,description:h.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:f.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Y.addExtraSpaceOnTop,description:h.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:Y.loop,description:h.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{cursorMoveOnType:S.boolean(Z.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:S.boolean(Z.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Y.autoFindInSelection=="boolean"?Y.autoFindInSelection?"always":"never":l.stringSet(Z.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:S.boolean(Z.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:S.boolean(Z.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:S.boolean(Z.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:ke(new S(30,"fixedOverflowWidgets",!1)),folding:ke(new S(31,"folding",!0,{description:h.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ke(new l(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[h.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),h.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:h.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ke(new S(33,"foldingHighlight",!0,{description:h.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),unfoldOnClickAfterEndOfLine:ke(new S(34,"unfoldOnClickAfterEndOfLine",!1,{description:h.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ke(new k(35,"fontFamily",q.fontFamily,{description:h.a("fontFamily","Controls the font family.")})),fontInfo:ke(new class extends y{constructor(){super(36)}compute(Y,Z,te){return Y.fontInfo}}),fontLigatures2:ke(new b),fontSize:ke(new class extends C{constructor(){super(38,"fontSize",q.fontSize,{type:"number",minimum:6,maximum:100,default:q.fontSize,description:h.a("fontSize","Controls the font size in pixels.")})}validate(Y){let Z=V.float(Y,this.defaultValue);return Z===0?q.fontSize:V.clamp(Z,6,100)}compute(Y,Z,te){return Y.fontInfo.fontSize}}),fontWeight:ke(new g),formatOnPaste:ke(new S(40,"formatOnPaste",!1,{description:h.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ke(new S(41,"formatOnType",!1,{description:h.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ke(new S(42,"glyphMargin",!0,{description:h.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ke(new class extends Q{constructor(){let Y={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},Z={type:"string",enum:["peek","gotoAndPeek","goto"],default:Y.multiple,enumDescriptions:[h.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),h.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),h.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};super(43,"gotoLocation",Y,{"editor.gotoLocation.multiple":{deprecationMessage:h.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:h.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:h.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleDeclarations":Object.assign({description:h.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleImplementations":Object.assign({description:h.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleReferences":Object.assign({description:h.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Z),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Y.alternativeDefinitionCommand,description:h.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:Y.alternativeTypeDefinitionCommand,description:h.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:Y.alternativeDeclarationCommand,description:h.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:Y.alternativeImplementationCommand,description:h.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:Y.alternativeReferenceCommand,description:h.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(Y){var Z,te,he,Ce,Ae;if(!Y||typeof Y!="object")return this.defaultValue;let L=Y;return{multiple:l.stringSet(L.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Z=L.multipleDefinitions)!==null&&Z!==void 0?Z:l.stringSet(L.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(te=L.multipleTypeDefinitions)!==null&&te!==void 0?te:l.stringSet(L.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(he=L.multipleDeclarations)!==null&&he!==void 0?he:l.stringSet(L.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Ce=L.multipleImplementations)!==null&&Ce!==void 0?Ce:l.stringSet(L.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Ae=L.multipleReferences)!==null&&Ae!==void 0?Ae:l.stringSet(L.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:k.string(L.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:k.string(L.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:k.string(L.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:k.string(L.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:k.string(L.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:ke(new S(44,"hideCursorInOverviewRuler",!1,{description:h.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ke(new S(45,"highlightActiveIndentGuide",!0,{description:h.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ke(new class extends Q{constructor(){let Y={enabled:!0,delay:300,sticky:!0};super(46,"hover",Y,{"editor.hover.enabled":{type:"boolean",default:Y.enabled,description:h.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Y.delay,description:h.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Y.sticky,description:h.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),delay:P.clampedInt(Z.delay,this.defaultValue.delay,0,1e4),sticky:S.boolean(Z.sticky,this.defaultValue.sticky)}}}),inDiffEditor:ke(new S(47,"inDiffEditor",!1)),letterSpacing:ke(new V(48,"letterSpacing",q.letterSpacing,Y=>V.clamp(Y,-5,20),{description:h.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ke(new class extends Q{constructor(){let Y={enabled:!0};super(49,"lightbulb",Y,{"editor.lightbulb.enabled":{type:"boolean",default:Y.enabled,description:h.a("codeActions","Enables the code action lightbulb in the editor.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:ke(new C(50,"lineDecorationsWidth",10)),lineHeight:ke(new class extends P{constructor(){super(51,"lineHeight",q.lineHeight,0,150,{description:h.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})}compute(Y,Z,te){return Y.fontInfo.lineHeight}}),lineNumbers:ke(new class extends Q{constructor(){super(52,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[h.a("lineNumbers.off","Line numbers are not rendered."),h.a("lineNumbers.on","Line numbers are rendered as absolute number."),h.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),h.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:h.a("lineNumbers","Controls the display of line numbers.")})}validate(Y){let Z=this.defaultValue.renderType,te=this.defaultValue.renderFn;return Y!==void 0&&(typeof Y=="function"?(Z=4,te=Y):Z=Y==="interval"?3:Y==="relative"?2:Y==="on"?1:0),{renderType:Z,renderFn:te}}}),lineNumbersMinChars:ke(new P(53,"lineNumbersMinChars",5,1,300)),links:ke(new S(54,"links",!0,{description:h.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ke(new l(55,"matchBrackets","always",["always","near","never"],{description:h.a("matchBrackets","Highlight matching brackets.")})),minimap:ke(new class extends Q{constructor(){let Y={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(56,"minimap",Y,{"editor.minimap.enabled":{type:"boolean",default:Y.enabled,description:h.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[h.a("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),h.a("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),h.a("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:Y.size,description:h.a("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Y.side,description:h.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Y.showSlider,description:h.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Y.scale,minimum:1,maximum:3,enum:[1,2,3],description:h.a("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:Y.renderCharacters,description:h.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Y.maxColumn,description:h.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),size:l.stringSet(Z.size,this.defaultValue.size,["proportional","fill","fit"]),side:l.stringSet(Z.side,this.defaultValue.side,["right","left"]),showSlider:l.stringSet(Z.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:S.boolean(Z.renderCharacters,this.defaultValue.renderCharacters),scale:P.clampedInt(Z.scale,1,1,3),maxColumn:P.clampedInt(Z.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:ke(new l(57,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ke(new V(58,"mouseWheelScrollSensitivity",1,Y=>Y===0?1:Y,{markdownDescription:h.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ke(new S(59,"mouseWheelZoom",!1,{markdownDescription:h.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ke(new S(60,"multiCursorMergeOverlapping",!0,{description:h.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ke(new T(61,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(Y){return Y==="ctrlCmd"?f.f?"metaKey":"ctrlKey":"altKey"},{markdownEnumDescriptions:[h.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),h.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:h.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ke(new l(62,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[h.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),h.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:h.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ke(new S(63,"occurrencesHighlight",!0,{description:h.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ke(new S(64,"overviewRulerBorder",!0,{description:h.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ke(new P(65,"overviewRulerLanes",3,0,3)),padding:ke(new class extends Q{constructor(){super(66,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:h.a("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:h.a("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{top:P.clampedInt(Z.top,0,0,1e3),bottom:P.clampedInt(Z.bottom,0,0,1e3)}}}),parameterHints:ke(new class extends Q{constructor(){let Y={enabled:!0,cycle:!1};super(67,"parameterHints",Y,{"editor.parameterHints.enabled":{type:"boolean",default:Y.enabled,description:h.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Y.cycle,description:h.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),cycle:S.boolean(Z.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:ke(new l(68,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[h.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),h.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:h.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ke(new S(69,"definitionLinkOpensInPeek",!1,{description:h.a("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ke(new class extends Q{constructor(){let Y={other:!0,comments:!1,strings:!1};super(70,"quickSuggestions",Y,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Y.strings,description:h.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Y.comments,description:h.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Y.other,description:h.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Y,description:h.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=Y}validate(Y){if(typeof Y=="boolean")return Y;if(Y&&typeof Y=="object"){let Z=Y,te={other:S.boolean(Z.other,this.defaultValue.other),comments:S.boolean(Z.comments,this.defaultValue.comments),strings:S.boolean(Z.strings,this.defaultValue.strings)};return!!(te.other&&te.comments&&te.strings)||!!(te.other||te.comments||te.strings)&&te}return this.defaultValue}}),quickSuggestionsDelay:ke(new P(71,"quickSuggestionsDelay",10,0,1073741824,{description:h.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ke(new S(72,"readOnly",!1)),renameOnType:ke(new S(73,"renameOnType",!1,{description:h.a("renameOnType","Controls whether the editor auto renames on type.")})),renderControlCharacters:ke(new S(74,"renderControlCharacters",!1,{description:h.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ke(new S(75,"renderIndentGuides",!0,{description:h.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ke(new S(76,"renderFinalNewline",!0,{description:h.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ke(new l(77,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",h.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:h.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ke(new S(78,"renderLineHighlightOnlyWhenFocus",!1,{description:h.a("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused")})),renderValidationDecorations:ke(new l(79,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ke(new l(80,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",h.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),h.a("renderWhitespace.selection","Render whitespace characters only on selected text."),h.a("renderWhitespace.trailing","Render only trailing whitespace characters"),""],description:h.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ke(new P(81,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ke(new S(82,"roundedSelection",!0,{description:h.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ke(new class extends Q{constructor(){let Y=[],Z={type:"number",description:h.a("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(83,"rulers",Y,{type:"array",items:{anyOf:[Z,{type:["object"],properties:{column:Z,color:{type:"string",description:h.a("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:Y,description:h.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(Y){if(Array.isArray(Y)){let Z=[];for(let te of Y)if(typeof te=="number")Z.push({column:P.clampedInt(te,0,0,1e4),color:null});else if(te&&typeof te=="object"){let he=te;Z.push({column:P.clampedInt(he.column,0,0,1e4),color:he.color})}return Z.sort((te,he)=>te.column-he.column),Z}return this.defaultValue}}),scrollbar:ke(new class extends Q{constructor(){super(84,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y,te=P.clampedInt(Z.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),he=P.clampedInt(Z.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:P.clampedInt(Z.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:U(Z.vertical,this.defaultValue.vertical),horizontal:U(Z.horizontal,this.defaultValue.horizontal),useShadows:S.boolean(Z.useShadows,this.defaultValue.useShadows),verticalHasArrows:S.boolean(Z.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:S.boolean(Z.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:S.boolean(Z.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:S.boolean(Z.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:te,horizontalSliderSize:P.clampedInt(Z.horizontalSliderSize,te,0,1e3),verticalScrollbarSize:he,verticalSliderSize:P.clampedInt(Z.verticalSliderSize,he,0,1e3)}}}),scrollBeyondLastColumn:ke(new P(85,"scrollBeyondLastColumn",5,0,1073741824,{description:h.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ke(new S(86,"scrollBeyondLastLine",!0,{description:h.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ke(new S(87,"scrollPredominantAxis",!0,{description:h.a("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ke(new S(88,"selectionClipboard",!0,{description:h.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:f.d})),selectionHighlight:ke(new S(89,"selectionHighlight",!0,{description:h.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ke(new S(90,"selectOnLineNumbers",!0)),showFoldingControls:ke(new l(91,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[h.a("showFoldingControls.always","Always show the folding controls."),h.a("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:h.a("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ke(new S(92,"showUnused",!0,{description:h.a("showUnused","Controls fading out of unused code.")})),showDeprecated:ke(new S(113,"showDeprecated",!0,{description:h.a("showDeprecated","Controls strikethrough deprecated variables.")})),snippetSuggestions:ke(new l(93,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[h.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),h.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),h.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),h.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:h.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ke(new S(94,"smoothScrolling",!1,{description:h.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ke(new P(95,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ke(new class extends Q{constructor(){let Y={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,statusBar:{visible:!1}};super(96,"suggest",Y,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[h.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),h.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:Y.insertMode,description:h.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:Y.filterGraceful,description:h.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Y.localityBonus,description:h.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Y.shareSuggestSelections,markdownDescription:h.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:Y.snippetsPreventQuickSuggestions,description:h.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Y.showIcons,description:h.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Y.maxVisibleSuggestions,minimum:1,maximum:15,description:h.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:h.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,markdownDescription:h.a("editor.suggest.statusBar.visible","Controls the visibility of the status bar at the bottom of the suggest widget.")}})}validate(Y){var Z;if(!Y||typeof Y!="object")return this.defaultValue;let te=Y;return{insertMode:l.stringSet(te.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:S.boolean(te.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:S.boolean(te.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:S.boolean(te.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:S.boolean(te.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:S.boolean(te.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:P.clampedInt(te.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:S.boolean(te.showMethods,this.defaultValue.showMethods),showFunctions:S.boolean(te.showFunctions,this.defaultValue.showFunctions),showConstructors:S.boolean(te.showConstructors,this.defaultValue.showConstructors),showFields:S.boolean(te.showFields,this.defaultValue.showFields),showVariables:S.boolean(te.showVariables,this.defaultValue.showVariables),showClasses:S.boolean(te.showClasses,this.defaultValue.showClasses),showStructs:S.boolean(te.showStructs,this.defaultValue.showStructs),showInterfaces:S.boolean(te.showInterfaces,this.defaultValue.showInterfaces),showModules:S.boolean(te.showModules,this.defaultValue.showModules),showProperties:S.boolean(te.showProperties,this.defaultValue.showProperties),showEvents:S.boolean(te.showEvents,this.defaultValue.showEvents),showOperators:S.boolean(te.showOperators,this.defaultValue.showOperators),showUnits:S.boolean(te.showUnits,this.defaultValue.showUnits),showValues:S.boolean(te.showValues,this.defaultValue.showValues),showConstants:S.boolean(te.showConstants,this.defaultValue.showConstants),showEnums:S.boolean(te.showEnums,this.defaultValue.showEnums),showEnumMembers:S.boolean(te.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:S.boolean(te.showKeywords,this.defaultValue.showKeywords),showWords:S.boolean(te.showWords,this.defaultValue.showWords),showColors:S.boolean(te.showColors,this.defaultValue.showColors),showFiles:S.boolean(te.showFiles,this.defaultValue.showFiles),showReferences:S.boolean(te.showReferences,this.defaultValue.showReferences),showFolders:S.boolean(te.showFolders,this.defaultValue.showFolders),showTypeParameters:S.boolean(te.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:S.boolean(te.showSnippets,this.defaultValue.showSnippets),showUsers:S.boolean(te.showUsers,this.defaultValue.showUsers),showIssues:S.boolean(te.showIssues,this.defaultValue.showIssues),statusBar:{visible:S.boolean((Z=te.statusBar)===null||Z===void 0?void 0:Z.visible,!!this.defaultValue.statusBar.visible)}}}}),suggestFontSize:ke(new P(97,"suggestFontSize",0,0,1e3,{markdownDescription:h.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ke(new P(98,"suggestLineHeight",0,0,1e3,{markdownDescription:h.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:ke(new S(99,"suggestOnTriggerCharacters",!0,{description:h.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ke(new l(100,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[h.a("suggestSelection.first","Always select the first suggestion."),h.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),h.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:h.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ke(new l(101,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[h.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),h.a("tabCompletion.off","Disable tab completions."),h.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:h.a("tabCompletion","Enables tab completions.")})),tabIndex:ke(new P(102,"tabIndex",0,-1,1073741824)),unusualLineTerminators:ke(new l(103,"unusualLineTerminators","prompt",["off","prompt","auto"],{enumDescriptions:[h.a("unusualLineTerminators.off","Unusual line terminators are ignored."),h.a("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed."),h.a("unusualLineTerminators.auto","Unusual line terminators are automatically removed.")],description:h.a("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useTabStops:ke(new S(104,"useTabStops",!0,{description:h.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ke(new k(105,"wordSeparators",D.b,{description:h.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ke(new l(106,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[h.a("wordWrap.off","Lines will never wrap."),h.a("wordWrap.on","Lines will wrap at the viewport width."),h.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),h.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:h.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ke(new k(107,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ke(new k(108,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ke(new P(109,"wordWrapColumn",80,1,1073741824,{markdownDescription:h.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ke(new S(110,"wordWrapMinified",!0)),wrappingIndent:ke(new T(111,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],function(Y){switch(Y){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}},{enumDescriptions:[h.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),h.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),h.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),h.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:h.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ke(new l(112,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[h.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),h.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:h.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ke(new class extends y{constructor(){super(114,[57,27])}compute(Y,Z,te){let he=["monaco-editor"];return Z.get(27)&&he.push(Z.get(27)),Y.extraEditorClassName&&he.push(Y.extraEditorClassName),Z.get(57)==="default"?he.push("mouse-default"):Z.get(57)==="copy"&&he.push("mouse-copy"),Z.get(92)&&he.push("showUnused"),Z.get(113)&&he.push("showDeprecated"),he.join(" ")}}),pixelRatio:ke(new class extends y{constructor(){super(115)}compute(Y,Z,te){return Y.pixelRatio}}),tabFocusMode:ke(new class extends y{constructor(){super(116,[72])}compute(Y,Z,te){return!!Z.get(72)||Y.tabFocusMode}}),layoutInfo:ke(new j),wrappingInfo:ke(new class extends y{constructor(){super(118,[117])}compute(Y,Z,te){let he=Z.get(117);return{isDominatedByLongLines:Y.isDominatedByLongLines,isWordWrapMinified:he.isWordWrapMinified,isViewportWrapping:he.isViewportWrapping,wrappingColumn:he.wrappingColumn}}})}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return W}),o.d(w,"a",function(){return Q});var h=o(2),f=o(14),D=o(18),H=o(6),E=o(53),ge=o(37);let W=Object(D.c)("commandService"),Q=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new H.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(y,C){if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:y,handler:C})}if(y.description){let l=[];for(let N of y.description.args)l.push(N.constraint);let T=y.handler;y.handler=function(N,...b){return Object(f.m)(b,l),T(N,...b)}}let{id:S}=y,P=this._commands.get(S);P||(P=new E.a,this._commands.set(S,P));let V=P.unshift(y),k=Object(h.h)(()=>{V();let l=this._commands.get(S);(l==null?void 0:l.isEmpty())&&this._commands.delete(S)});return this._onDidRegisterCommand.fire(S),k}registerCommandAlias(y,C){return Q.registerCommand(y,(S,...P)=>S.get(W).executeCommand(C,...P))}getCommand(y){let C=this._commands.get(y);if(C&&!C.isEmpty())return ge.a.first(C)}getCommands(){let y=new Map;for(let C of this._commands.keys()){let S=this.getCommand(C);S&&y.set(C,S)}return y}}},function(Ie,w,o){"use strict";(function(h){o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E}),o.d(w,"c",function(){return ge});var f=o(11);let D=h===void 0?{cwd:()=>"/",env:Object.create(null),get platform(){return f.i?"win32":f.f?"darwin":"linux"},nextTick:W=>Object(f.j)(W)}:h,H=D.cwd,E=D.env,ge=D.platform}).call(this,o(86))},function(Ie,w,o){"use strict";var h=o(108);o.d(w,"a",function(){return h.b}),o.d(w,"b",function(){return h.e}),o.d(w,"c",function(){return h.f}),o.d(w,"d",function(){return h.h}),o.d(w,"e",function(){return h.l}),o.d(w,"f",function(){return h.m}),o.d(w,"g",function(){return h.n})},function(Ie,w,o){"use strict";o.d(w,"b",function(){return Mn}),o.d(w,"a",function(){return Gn});var h=o(13),f=o(6),D=o(2),H=o(8),E=o(23),ge=o(26),W=o(9),Q=o(3),y=o(21),C=o(58),S=o(175);class P{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function V(qt,I,ne,_e,Fe){let Xe;for(Fe.spacesDiff=0,Fe.looksLikeAlignment=!1,Xe=0;Xe<I&&Xe<_e&&qt.charCodeAt(Xe)===ne.charCodeAt(Xe);Xe++);let ot=0,Mt=0;for(let Kt=Xe;Kt<I;Kt++)qt.charCodeAt(Kt)===32?ot++:Mt++;let Ot=0,Tt=0;for(let Kt=Xe;Kt<_e;Kt++)ne.charCodeAt(Kt)===32?Ot++:Tt++;if(ot>0&&Mt>0||Ot>0&&Tt>0)return;let Ht=Math.abs(Mt-Tt),jt=Math.abs(ot-Ot);if(Ht===0)return Fe.spacesDiff=jt,void(jt>0&&0<=Ot-1&&Ot-1<qt.length&&Ot<ne.length&&ne.charCodeAt(Ot)!==32&&qt.charCodeAt(Ot-1)===32&&qt.charCodeAt(qt.length-1)===44&&(Fe.looksLikeAlignment=!0));jt%Ht!=0||(Fe.spacesDiff=jt/Ht)}function k(qt,I,ne){let _e=Math.min(qt.getLineCount(),1e4),Fe=0,Xe=0,ot="",Mt=0,Ot=[2,4,6,8,3,5,7],Tt=[0,0,0,0,0,0,0,0,0],Ht=new P;for(let wi=1;wi<=_e;wi++){let Ti=qt.getLineLength(wi),ft=qt.getLineContent(wi),X=Ti<=65536,ae=!1,Ge=0,lt=0,Dt=0;for(let ti=0,ye=Ti;ti<ye;ti++){let le=X?ft.charCodeAt(ti):qt.getLineCharCode(wi,ti);if(le===9)Dt++;else{if(le!==32){ae=!0,Ge=ti;break}lt++}}if(!ae||(Dt>0?Fe++:lt>1&&Xe++,V(ot,Mt,ft,Ge,Ht),Ht.looksLikeAlignment&&(!ne||I!==Ht.spacesDiff)))continue;let Gt=Ht.spacesDiff;Gt<=8&&Tt[Gt]++,ot=ft,Mt=Ge}let jt=ne;Fe!==Xe&&(jt=Fe<Xe);let Kt=I;if(jt){let wi=jt?0:.1*_e;Ot.forEach(Ti=>{let ft=Tt[Ti];ft>wi&&(wi=ft,Kt=Ti)}),Kt===4&&Tt[4]>0&&Tt[2]>0&&Tt[2]>=Tt[4]/2&&(Kt=2)}return{insertSpaces:jt,tabSize:Kt}}function l(qt){return(1&qt.metadata)>>>0}function T(qt,I){qt.metadata=254&qt.metadata|I<<0}function N(qt){return(2&qt.metadata)>>>1==1}function b(qt,I){qt.metadata=253&qt.metadata|(I?1:0)<<1}function g(qt){return(4&qt.metadata)>>>2==1}function j(qt,I){qt.metadata=251&qt.metadata|(I?1:0)<<2}function ie(qt){return(8&qt.metadata)>>>3==1}function U(qt,I){qt.metadata=247&qt.metadata|(I?1:0)<<3}function q(qt,I){qt.metadata=207&qt.metadata|I<<4}function B(qt,I){qt.metadata=191&qt.metadata|(I?1:0)<<6}class se{constructor(I,ne,_e){this.metadata=0,this.parent=this,this.left=this,this.right=this,T(this,1),this.start=ne,this.end=_e,this.delta=0,this.maxEnd=_e,this.id=I,this.ownerId=0,this.options=null,j(this,!1),q(this,1),U(this,!1),B(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=ne,this.cachedAbsoluteEnd=_e,this.range=null,b(this,!1)}reset(I,ne,_e,Fe){this.start=ne,this.end=_e,this.maxEnd=_e,this.cachedVersionId=I,this.cachedAbsoluteStart=ne,this.cachedAbsoluteEnd=_e,this.range=Fe}setOptions(I){this.options=I;let ne=this.options.className;j(this,ne==="squiggly-error"||ne==="squiggly-warning"||ne==="squiggly-info"),q(this,this.options.stickiness),U(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),B(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(I,ne,_e){this.cachedVersionId!==_e&&(this.range=null),this.cachedVersionId=_e,this.cachedAbsoluteStart=I,this.cachedAbsoluteEnd=ne}detach(){this.parent=null,this.left=null,this.right=null}}let ke=new se(null,0,0);ke.parent=ke,ke.left=ke,ke.right=ke,T(ke,0);class xe{constructor(){this.root=ke,this.requestNormalizeDelta=!1}intervalSearch(I,ne,_e,Fe,Xe){return this.root===ke?[]:function(ot,Mt,Ot,Tt,Ht,jt){let Kt=ot.root,wi=0,Ti=0,ft=0,X=0,ae=[],Ge=0;for(;Kt!==ke;)if(N(Kt))b(Kt.left,!1),b(Kt.right,!1),Kt===Kt.parent.right&&(wi-=Kt.parent.delta),Kt=Kt.parent;else{if(!N(Kt.left)){if(Ti=wi+Kt.maxEnd,Ti<Mt){b(Kt,!0);continue}if(Kt.left!==ke){Kt=Kt.left;continue}}if(ft=wi+Kt.start,ft>Ot)b(Kt,!0);else{if(X=wi+Kt.end,X>=Mt){Kt.setCachedOffsets(ft,X,jt);let lt=!0;Tt&&Kt.ownerId&&Kt.ownerId!==Tt&&(lt=!1),Ht&&g(Kt)&&(lt=!1),lt&&(ae[Ge++]=Kt)}b(Kt,!0),Kt.right===ke||N(Kt.right)||(wi+=Kt.delta,Kt=Kt.right)}}return b(ot.root,!1),ae}(this,I,ne,_e,Fe,Xe)}search(I,ne,_e){return this.root===ke?[]:function(Fe,Xe,ot,Mt){let Ot=Fe.root,Tt=0,Ht=0,jt=0,Kt=[],wi=0;for(;Ot!==ke;){if(N(Ot)){b(Ot.left,!1),b(Ot.right,!1),Ot===Ot.parent.right&&(Tt-=Ot.parent.delta),Ot=Ot.parent;continue}if(Ot.left!==ke&&!N(Ot.left)){Ot=Ot.left;continue}Ht=Tt+Ot.start,jt=Tt+Ot.end,Ot.setCachedOffsets(Ht,jt,Mt);let Ti=!0;Xe&&Ot.ownerId&&Ot.ownerId!==Xe&&(Ti=!1),ot&&g(Ot)&&(Ti=!1),Ti&&(Kt[wi++]=Ot),b(Ot,!0),Ot.right===ke||N(Ot.right)||(Tt+=Ot.delta,Ot=Ot.right)}return b(Fe.root,!1),Kt}(this,I,ne,_e)}collectNodesFromOwner(I){return function(ne,_e){let Fe=ne.root,Xe=[],ot=0;for(;Fe!==ke;)N(Fe)?(b(Fe.left,!1),b(Fe.right,!1),Fe=Fe.parent):Fe.left===ke||N(Fe.left)?(Fe.ownerId===_e&&(Xe[ot++]=Fe),b(Fe,!0),Fe.right===ke||N(Fe.right)||(Fe=Fe.right)):Fe=Fe.left;return b(ne.root,!1),Xe}(this,I)}collectNodesPostOrder(){return function(I){let ne=I.root,_e=[],Fe=0;for(;ne!==ke;)N(ne)?(b(ne.left,!1),b(ne.right,!1),ne=ne.parent):ne.left===ke||N(ne.left)?ne.right===ke||N(ne.right)?(_e[Fe++]=ne,b(ne,!0)):ne=ne.right:ne=ne.left;return b(I.root,!1),_e}(this)}insert(I){te(this,I),this._normalizeDeltaIfNecessary()}delete(I){he(this,I),this._normalizeDeltaIfNecessary()}resolveNode(I,ne){let _e=I,Fe=0;for(;I!==this.root;)I===I.parent.right&&(Fe+=I.parent.delta),I=I.parent;let Xe=_e.start+Fe,ot=_e.end+Fe;_e.setCachedOffsets(Xe,ot,ne)}acceptReplace(I,ne,_e,Fe){let Xe=function(ot,Mt,Ot){let Tt=ot.root,Ht=0,jt=0,Kt=0,wi=0,Ti=[],ft=0;for(;Tt!==ke;)if(N(Tt))b(Tt.left,!1),b(Tt.right,!1),Tt===Tt.parent.right&&(Ht-=Tt.parent.delta),Tt=Tt.parent;else{if(!N(Tt.left)){if(jt=Ht+Tt.maxEnd,jt<Mt){b(Tt,!0);continue}if(Tt.left!==ke){Tt=Tt.left;continue}}Kt=Ht+Tt.start,Kt>Ot?b(Tt,!0):(wi=Ht+Tt.end,wi>=Mt&&(Tt.setCachedOffsets(Kt,wi,0),Ti[ft++]=Tt),b(Tt,!0),Tt.right===ke||N(Tt.right)||(Ht+=Tt.delta,Tt=Tt.right))}return b(ot.root,!1),Ti}(this,I,I+ne);for(let ot=0,Mt=Xe.length;ot<Mt;ot++)he(this,Xe[ot]);this._normalizeDeltaIfNecessary(),function(ot,Mt,Ot,Tt){let Ht=ot.root,jt=0,Kt=0,wi=0,Ti=Tt-(Ot-Mt);for(;Ht!==ke;)if(N(Ht))b(Ht.left,!1),b(Ht.right,!1),Ht===Ht.parent.right&&(jt-=Ht.parent.delta),ct(Ht),Ht=Ht.parent;else{if(!N(Ht.left)){if(Kt=jt+Ht.maxEnd,Kt<Mt){b(Ht,!0);continue}if(Ht.left!==ke){Ht=Ht.left;continue}}wi=jt+Ht.start,wi>Ot?(Ht.start+=Ti,Ht.end+=Ti,Ht.delta+=Ti,(Ht.delta<-1073741824||Ht.delta>1073741824)&&(ot.requestNormalizeDelta=!0),b(Ht,!0)):(b(Ht,!0),Ht.right===ke||N(Ht.right)||(jt+=Ht.delta,Ht=Ht.right))}b(ot.root,!1)}(this,I,I+ne,_e),this._normalizeDeltaIfNecessary();for(let ot=0,Mt=Xe.length;ot<Mt;ot++){let Ot=Xe[ot];Ot.start=Ot.cachedAbsoluteStart,Ot.end=Ot.cachedAbsoluteEnd,Z(Ot,I,I+ne,_e,Fe),Ot.maxEnd=Ot.end,te(this,Ot)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(I){let ne=I.root,_e=0;for(;ne!==ke;)ne.left===ke||N(ne.left)?ne.right===ke||N(ne.right)?(ne.start=_e+ne.start,ne.end=_e+ne.end,ne.delta=0,ct(ne),b(ne,!0),b(ne.left,!1),b(ne.right,!1),ne===ne.parent.right&&(_e-=ne.parent.delta),ne=ne.parent):(_e+=ne.delta,ne=ne.right):ne=ne.left;b(I.root,!1)}(this))}}function Y(qt,I,ne,_e){return qt<ne||!(qt>ne)&&_e!==1&&(_e===2||I)}function Z(qt,I,ne,_e,Fe){let Xe=function(X){return(48&X.metadata)>>>4}(qt),ot=Xe===0||Xe===2,Mt=Xe===1||Xe===2,Ot=ne-I,Tt=_e,Ht=Math.min(Ot,Tt),jt=qt.start,Kt=!1,wi=qt.end,Ti=!1;I<=jt&&wi<=ne&&function(X){return(64&X.metadata)>>>6==1}(qt)&&(qt.start=I,Kt=!0,qt.end=I,Ti=!0);{let X=Fe?1:Ot>0?2:0;!Kt&&Y(jt,ot,I,X)&&(Kt=!0),!Ti&&Y(wi,Mt,I,X)&&(Ti=!0)}if(Ht>0&&!Fe){let X=Ot>Tt?2:0;!Kt&&Y(jt,ot,I+Ht,X)&&(Kt=!0),!Ti&&Y(wi,Mt,I+Ht,X)&&(Ti=!0)}{let X=Fe?1:0;!Kt&&Y(jt,ot,ne,X)&&(qt.start=I+Tt,Kt=!0),!Ti&&Y(wi,Mt,ne,X)&&(qt.end=I+Tt,Ti=!0)}let ft=Tt-Ot;Kt||(qt.start=Math.max(0,jt+ft)),Ti||(qt.end=Math.max(0,wi+ft)),qt.start>qt.end&&(qt.end=qt.start)}function te(qt,I){if(qt.root===ke)return I.parent=ke,I.left=ke,I.right=ke,T(I,0),qt.root=I,qt.root;(function(_e,Fe){let Xe=0,ot=_e.root,Mt=Fe.start,Ot=Fe.end;for(;;)if(ht(Mt,Ot,ot.start+Xe,ot.end+Xe)<0){if(ot.left===ke){Fe.start-=Xe,Fe.end-=Xe,Fe.maxEnd-=Xe,ot.left=Fe;break}ot=ot.left}else{if(ot.right===ke){Fe.start-=Xe+ot.delta,Fe.end-=Xe+ot.delta,Fe.maxEnd-=Xe+ot.delta,ot.right=Fe;break}Xe+=ot.delta,ot=ot.right}Fe.parent=ot,Fe.left=ke,Fe.right=ke,T(Fe,1)})(qt,I),Ye(I.parent);let ne=I;for(;ne!==qt.root&&l(ne.parent)===1;)if(ne.parent===ne.parent.parent.left){let _e=ne.parent.parent.right;l(_e)===1?(T(ne.parent,0),T(_e,0),T(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.right&&(ne=ne.parent,Ae(qt,ne)),T(ne.parent,0),T(ne.parent.parent,1),L(qt,ne.parent.parent))}else{let _e=ne.parent.parent.left;l(_e)===1?(T(ne.parent,0),T(_e,0),T(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.left&&(ne=ne.parent,L(qt,ne)),T(ne.parent,0),T(ne.parent.parent,1),Ae(qt,ne.parent.parent))}return T(qt.root,0),I}function he(qt,I){let ne,_e;if(I.left===ke?(ne=I.right,_e=I,ne.delta+=I.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),ne.start+=I.delta,ne.end+=I.delta):I.right===ke?(ne=I.left,_e=I):(_e=function(ot){for(;ot.left!==ke;)ot=ot.left;return ot}(I.right),ne=_e.right,ne.start+=_e.delta,ne.end+=_e.delta,ne.delta+=_e.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),_e.start+=I.delta,_e.end+=I.delta,_e.delta=I.delta,(_e.delta<-1073741824||_e.delta>1073741824)&&(qt.requestNormalizeDelta=!0)),_e===qt.root)return qt.root=ne,T(ne,0),I.detach(),Ce(),ct(ne),void(qt.root.parent=ke);let Fe,Xe=l(_e)===1;if(_e===_e.parent.left?_e.parent.left=ne:_e.parent.right=ne,_e===I?ne.parent=_e.parent:(_e.parent===I?ne.parent=_e:ne.parent=_e.parent,_e.left=I.left,_e.right=I.right,_e.parent=I.parent,T(_e,l(I)),I===qt.root?qt.root=_e:I===I.parent.left?I.parent.left=_e:I.parent.right=_e,_e.left!==ke&&(_e.left.parent=_e),_e.right!==ke&&(_e.right.parent=_e)),I.detach(),Xe)return Ye(ne.parent),_e!==I&&(Ye(_e),Ye(_e.parent)),void Ce();for(Ye(ne),Ye(ne.parent),_e!==I&&(Ye(_e),Ye(_e.parent));ne!==qt.root&&l(ne)===0;)ne===ne.parent.left?(Fe=ne.parent.right,l(Fe)===1&&(T(Fe,0),T(ne.parent,1),Ae(qt,ne.parent),Fe=ne.parent.right),l(Fe.left)===0&&l(Fe.right)===0?(T(Fe,1),ne=ne.parent):(l(Fe.right)===0&&(T(Fe.left,0),T(Fe,1),L(qt,Fe),Fe=ne.parent.right),T(Fe,l(ne.parent)),T(ne.parent,0),T(Fe.right,0),Ae(qt,ne.parent),ne=qt.root)):(Fe=ne.parent.left,l(Fe)===1&&(T(Fe,0),T(ne.parent,1),L(qt,ne.parent),Fe=ne.parent.left),l(Fe.left)===0&&l(Fe.right)===0?(T(Fe,1),ne=ne.parent):(l(Fe.left)===0&&(T(Fe.right,0),T(Fe,1),Ae(qt,Fe),Fe=ne.parent.left),T(Fe,l(ne.parent)),T(ne.parent,0),T(Fe.left,0),L(qt,ne.parent),ne=qt.root));T(ne,0),Ce()}function Ce(){ke.parent=ke,ke.delta=0,ke.start=0,ke.end=0}function Ae(qt,I){let ne=I.right;ne.delta+=I.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),ne.start+=I.delta,ne.end+=I.delta,I.right=ne.left,ne.left!==ke&&(ne.left.parent=I),ne.parent=I.parent,I.parent===ke?qt.root=ne:I===I.parent.left?I.parent.left=ne:I.parent.right=ne,ne.left=I,I.parent=ne,ct(I),ct(ne)}function L(qt,I){let ne=I.left;I.delta-=ne.delta,(I.delta<-1073741824||I.delta>1073741824)&&(qt.requestNormalizeDelta=!0),I.start-=ne.delta,I.end-=ne.delta,I.left=ne.right,ne.right!==ke&&(ne.right.parent=I),ne.parent=I.parent,I.parent===ke?qt.root=ne:I===I.parent.right?I.parent.right=ne:I.parent.left=ne,ne.right=I,I.parent=ne,ct(I),ct(ne)}function nt(qt){let I=qt.end;if(qt.left!==ke){let ne=qt.left.maxEnd;ne>I&&(I=ne)}if(qt.right!==ke){let ne=qt.right.maxEnd+qt.delta;ne>I&&(I=ne)}return I}function ct(qt){qt.maxEnd=nt(qt)}function Ye(qt){for(;qt!==ke;){let I=nt(qt);if(qt.maxEnd===I)return;qt.maxEnd=I,qt=qt.parent}}function ht(qt,I,ne,_e){return qt===ne?I-_e:qt-ne}class fe{constructor(I,ne){this.piece=I,this.color=ne,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==$)return G(this.right);let I=this;for(;I.parent!==$&&I.parent.left!==I;)I=I.parent;return I.parent===$?$:I.parent}prev(){if(this.left!==$)return z(this.left);let I=this;for(;I.parent!==$&&I.parent.right!==I;)I=I.parent;return I.parent===$?$:I.parent}detach(){this.parent=null,this.left=null,this.right=null}}let $=new fe(null,0);function G(qt){for(;qt.left!==$;)qt=qt.left;return qt}function z(qt){for(;qt.right!==$;)qt=qt.right;return qt}function J(qt){return qt===$?0:qt.size_left+qt.piece.length+J(qt.right)}function Se(qt){return qt===$?0:qt.lf_left+qt.piece.lineFeedCnt+Se(qt.right)}function A(){$.parent=$}function ee(qt,I){let ne=I.right;ne.size_left+=I.size_left+(I.piece?I.piece.length:0),ne.lf_left+=I.lf_left+(I.piece?I.piece.lineFeedCnt:0),I.right=ne.left,ne.left!==$&&(ne.left.parent=I),ne.parent=I.parent,I.parent===$?qt.root=ne:I.parent.left===I?I.parent.left=ne:I.parent.right=ne,ne.left=I,I.parent=ne}function de(qt,I){let ne=I.left;I.left=ne.right,ne.right!==$&&(ne.right.parent=I),ne.parent=I.parent,I.size_left-=ne.size_left+(ne.piece?ne.piece.length:0),I.lf_left-=ne.lf_left+(ne.piece?ne.piece.lineFeedCnt:0),I.parent===$?qt.root=ne:I===I.parent.right?I.parent.right=ne:I.parent.left=ne,ne.right=I,I.parent=ne}function Oe(qt,I){let ne,_e;if(I.left===$?(_e=I,ne=_e.right):I.right===$?(_e=I,ne=_e.left):(_e=G(I.right),ne=_e.right),_e===qt.root)return qt.root=ne,ne.color=0,I.detach(),A(),void(qt.root.parent=$);let Fe,Xe=_e.color===1;if(_e===_e.parent.left?_e.parent.left=ne:_e.parent.right=ne,_e===I?(ne.parent=_e.parent,it(qt,ne)):(_e.parent===I?ne.parent=_e:ne.parent=_e.parent,it(qt,ne),_e.left=I.left,_e.right=I.right,_e.parent=I.parent,_e.color=I.color,I===qt.root?qt.root=_e:I===I.parent.left?I.parent.left=_e:I.parent.right=_e,_e.left!==$&&(_e.left.parent=_e),_e.right!==$&&(_e.right.parent=_e),_e.size_left=I.size_left,_e.lf_left=I.lf_left,it(qt,_e)),I.detach(),ne.parent.left===ne){let ot=J(ne),Mt=Se(ne);if(ot!==ne.parent.size_left||Mt!==ne.parent.lf_left){let Ot=ot-ne.parent.size_left,Tt=Mt-ne.parent.lf_left;ne.parent.size_left=ot,ne.parent.lf_left=Mt,pt(qt,ne.parent,Ot,Tt)}}if(it(qt,ne.parent),Xe)A();else{for(;ne!==qt.root&&ne.color===0;)ne===ne.parent.left?(Fe=ne.parent.right,Fe.color===1&&(Fe.color=0,ne.parent.color=1,ee(qt,ne.parent),Fe=ne.parent.right),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,ne=ne.parent):(Fe.right.color===0&&(Fe.left.color=0,Fe.color=1,de(qt,Fe),Fe=ne.parent.right),Fe.color=ne.parent.color,ne.parent.color=0,Fe.right.color=0,ee(qt,ne.parent),ne=qt.root)):(Fe=ne.parent.left,Fe.color===1&&(Fe.color=0,ne.parent.color=1,de(qt,ne.parent),Fe=ne.parent.left),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,ne=ne.parent):(Fe.left.color===0&&(Fe.right.color=0,Fe.color=1,ee(qt,Fe),Fe=ne.parent.left),Fe.color=ne.parent.color,ne.parent.color=0,Fe.left.color=0,de(qt,ne.parent),ne=qt.root));ne.color=0,A()}}function $e(qt,I){for(it(qt,I);I!==qt.root&&I.parent.color===1;)if(I.parent===I.parent.parent.left){let ne=I.parent.parent.right;ne.color===1?(I.parent.color=0,ne.color=0,I.parent.parent.color=1,I=I.parent.parent):(I===I.parent.right&&ee(qt,I=I.parent),I.parent.color=0,I.parent.parent.color=1,de(qt,I.parent.parent))}else{let ne=I.parent.parent.left;ne.color===1?(I.parent.color=0,ne.color=0,I.parent.parent.color=1,I=I.parent.parent):(I===I.parent.left&&de(qt,I=I.parent),I.parent.color=0,I.parent.parent.color=1,ee(qt,I.parent.parent))}qt.root.color=0}function pt(qt,I,ne,_e){for(;I!==qt.root&&I!==$;)I.parent.left===I&&(I.parent.size_left+=ne,I.parent.lf_left+=_e),I=I.parent}function it(qt,I){let ne=0,_e=0;if(I!==qt.root){if(ne===0){for(;I!==qt.root&&I===I.parent.right;)I=I.parent;if(I===qt.root)return;ne=J((I=I.parent).left)-I.size_left,_e=Se(I.left)-I.lf_left,I.size_left+=ne,I.lf_left+=_e}for(;I!==qt.root&&(ne!==0||_e!==0);)I.parent.left===I&&(I.parent.size_left+=ne,I.parent.lf_left+=_e),I=I.parent}}$.parent=$,$.left=$,$.right=$,$.color=0;var At=o(106);function Nt(qt){let I;return I=qt[qt.length-1]<65536?new Uint16Array(qt.length):new Uint32Array(qt.length),I.set(qt,0),I}class _i{constructor(I,ne,_e,Fe,Xe){this.lineStarts=I,this.cr=ne,this.lf=_e,this.crlf=Fe,this.isBasicASCII=Xe}}function wt(qt,I=!0){let ne=[0],_e=1;for(let Fe=0,Xe=qt.length;Fe<Xe;Fe++){let ot=qt.charCodeAt(Fe);ot===13?Fe+1<Xe&&qt.charCodeAt(Fe+1)===10?(ne[_e++]=Fe+2,Fe++):ne[_e++]=Fe+1:ot===10&&(ne[_e++]=Fe+1)}return I?Nt(ne):ne}class Ni{constructor(I,ne,_e,Fe,Xe){this.bufferIndex=I,this.start=ne,this.end=_e,this.lineFeedCnt=Fe,this.length=Xe}}class pi{constructor(I,ne){this.buffer=I,this.lineStarts=ne}}class et{constructor(I,ne){this._pieces=[],this._tree=I,this._BOM=ne,this._index=0,I.root!==$&&I.iterate(I.root,_e=>(_e!==$&&this._pieces.push(_e.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Wt{constructor(I){this._limit=I,this._cache=[]}get(I){for(let ne=this._cache.length-1;ne>=0;ne--){let _e=this._cache[ne];if(_e.nodeStartOffset<=I&&_e.nodeStartOffset+_e.node.piece.length>=I)return _e}return null}get2(I){for(let ne=this._cache.length-1;ne>=0;ne--){let _e=this._cache[ne];if(_e.nodeStartLineNumber&&_e.nodeStartLineNumber<I&&_e.nodeStartLineNumber+_e.node.piece.lineFeedCnt>=I)return _e}return null}set(I){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(I)}validate(I){let ne=!1,_e=this._cache;for(let Fe=0;Fe<_e.length;Fe++){let Xe=_e[Fe];(Xe.node.parent===null||Xe.nodeStartOffset>=I)&&(_e[Fe]=null,ne=!0)}if(ne){let Fe=[];for(let Xe of _e)Xe!==null&&Fe.push(Xe);this._cache=Fe}}}class Li{constructor(I,ne,_e){this.create(I,ne,_e)}create(I,ne,_e){this._buffers=[new pi("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=$,this._lineCnt=1,this._length=0,this._EOL=ne,this._EOLLength=ne.length,this._EOLNormalized=_e;let Fe=null;for(let Xe=0,ot=I.length;Xe<ot;Xe++)if(I[Xe].buffer.length>0){I[Xe].lineStarts||(I[Xe].lineStarts=wt(I[Xe].buffer));let Mt=new Ni(Xe+1,{line:0,column:0},{line:I[Xe].lineStarts.length-1,column:I[Xe].buffer.length-I[Xe].lineStarts[I[Xe].lineStarts.length-1]},I[Xe].lineStarts.length-1,I[Xe].buffer.length);this._buffers.push(I[Xe]),Fe=this.rbInsertRight(Fe,Mt)}this._searchCache=new Wt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(I){let ne=65535-Math.floor(21845),_e=2*ne,Fe="",Xe=0,ot=[];if(this.iterate(this.root,Mt=>{let Ot=this.getNodeContent(Mt),Tt=Ot.length;if(Xe<=ne||Xe+Tt<_e)return Fe+=Ot,Xe+=Tt,!0;let Ht=Fe.replace(/\r\n|\r|\n/g,I);return ot.push(new pi(Ht,wt(Ht))),Fe=Ot,Xe=Tt,!0}),Xe>0){let Mt=Fe.replace(/\r\n|\r|\n/g,I);ot.push(new pi(Mt,wt(Mt)))}this.create(ot,I,!0)}getEOL(){return this._EOL}setEOL(I){this._EOL=I,this._EOLLength=this._EOL.length,this.normalizeEOL(I)}createSnapshot(I){return new et(this,I)}getOffsetAt(I,ne){let _e=0,Fe=this.root;for(;Fe!==$;)if(Fe.left!==$&&Fe.lf_left+1>=I)Fe=Fe.left;else{if(Fe.lf_left+Fe.piece.lineFeedCnt+1>=I)return _e+=Fe.size_left,_e+(this.getAccumulatedValue(Fe,I-Fe.lf_left-2)+ne-1);I-=Fe.lf_left+Fe.piece.lineFeedCnt,_e+=Fe.size_left+Fe.piece.length,Fe=Fe.right}return _e}getPositionAt(I){I=Math.floor(I),I=Math.max(0,I);let ne=this.root,_e=0,Fe=I;for(;ne!==$;)if(ne.size_left!==0&&ne.size_left>=I)ne=ne.left;else{if(ne.size_left+ne.piece.length>=I){let Xe=this.getIndexOf(ne,I-ne.size_left);if(_e+=ne.lf_left+Xe.index,Xe.index===0){let ot=Fe-this.getOffsetAt(_e+1,1);return new W.a(_e+1,ot+1)}return new W.a(_e+1,Xe.remainder+1)}if(I-=ne.size_left+ne.piece.length,_e+=ne.lf_left+ne.piece.lineFeedCnt,ne.right===$){let Xe=Fe-I-this.getOffsetAt(_e+1,1);return new W.a(_e+1,Xe+1)}ne=ne.right}return new W.a(1,1)}getValueInRange(I,ne){if(I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn)return"";let _e=this.nodeAt2(I.startLineNumber,I.startColumn),Fe=this.nodeAt2(I.endLineNumber,I.endColumn),Xe=this.getValueInRange2(_e,Fe);return ne?ne===this._EOL&&this._EOLNormalized&&ne===this.getEOL()&&this._EOLNormalized?Xe:Xe.replace(/\r\n|\r|\n/g,ne):Xe}getValueInRange2(I,ne){if(I.node===ne.node){let Mt=I.node,Ot=this._buffers[Mt.piece.bufferIndex].buffer,Tt=this.offsetInBuffer(Mt.piece.bufferIndex,Mt.piece.start);return Ot.substring(Tt+I.remainder,Tt+ne.remainder)}let _e=I.node,Fe=this._buffers[_e.piece.bufferIndex].buffer,Xe=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start),ot=Fe.substring(Xe+I.remainder,Xe+_e.piece.length);for(_e=_e.next();_e!==$;){let Mt=this._buffers[_e.piece.bufferIndex].buffer,Ot=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);if(_e===ne.node){ot+=Mt.substring(Ot,Ot+ne.remainder);break}ot+=Mt.substr(Ot,_e.piece.length),_e=_e.next()}return ot}getLinesContent(){let I=[],ne=0,_e="",Fe=!1;return this.iterate(this.root,Xe=>{if(Xe===$)return!0;let ot=Xe.piece,Mt=ot.length;if(Mt===0)return!0;let Ot=this._buffers[ot.bufferIndex].buffer,Tt=this._buffers[ot.bufferIndex].lineStarts,Ht=ot.start.line,jt=ot.end.line,Kt=Tt[Ht]+ot.start.column;if(Fe&&(Ot.charCodeAt(Kt)===10&&(Kt++,Mt--),I[ne++]=_e,_e="",Fe=!1,Mt===0))return!0;if(Ht===jt)return this._EOLNormalized||Ot.charCodeAt(Kt+Mt-1)!==13?_e+=Ot.substr(Kt,Mt):(Fe=!0,_e+=Ot.substr(Kt,Mt-1)),!0;_e+=this._EOLNormalized?Ot.substring(Kt,Math.max(Kt,Tt[Ht+1]-this._EOLLength)):Ot.substring(Kt,Tt[Ht+1]).replace(/(\r\n|\r|\n)$/,""),I[ne++]=_e;for(let wi=Ht+1;wi<jt;wi++)_e=this._EOLNormalized?Ot.substring(Tt[wi],Tt[wi+1]-this._EOLLength):Ot.substring(Tt[wi],Tt[wi+1]).replace(/(\r\n|\r|\n)$/,""),I[ne++]=_e;return this._EOLNormalized||Ot.charCodeAt(Tt[jt]+ot.end.column-1)!==13?_e=Ot.substr(Tt[jt],ot.end.column):(Fe=!0,ot.end.column===0?ne--:_e=Ot.substr(Tt[jt],ot.end.column-1)),!0}),Fe&&(I[ne++]=_e,_e=""),I[ne++]=_e,I}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(I){return this._lastVisitedLine.lineNumber===I||(this._lastVisitedLine.lineNumber=I,I===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(I):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(I,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(I).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(I){if(I.remainder===I.node.piece.length){let ne=I.node.next();if(!ne)return 0;let _e=this._buffers[ne.piece.bufferIndex],Fe=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);return _e.buffer.charCodeAt(Fe)}{let ne=this._buffers[I.node.piece.bufferIndex],_e=this.offsetInBuffer(I.node.piece.bufferIndex,I.node.piece.start)+I.remainder;return ne.buffer.charCodeAt(_e)}}getLineCharCode(I,ne){let _e=this.nodeAt2(I,ne+1);return this._getCharCode(_e)}getLineLength(I){if(I===this.getLineCount()){let ne=this.getOffsetAt(I,1);return this.getLength()-ne}return this.getOffsetAt(I+1,1)-this.getOffsetAt(I,1)-this._EOLLength}findMatchesInNode(I,ne,_e,Fe,Xe,ot,Mt,Ot,Tt,Ht,jt){let Kt,wi,Ti,ft=this._buffers[I.piece.bufferIndex],X=this.offsetInBuffer(I.piece.bufferIndex,I.piece.start),ae=this.offsetInBuffer(I.piece.bufferIndex,Xe),Ge=this.offsetInBuffer(I.piece.bufferIndex,ot),lt={line:0,column:0};ne._wordSeparators?(wi=ft.buffer.substring(ae,Ge),Ti=Dt=>Dt+ae,ne.reset(0)):(wi=ft.buffer,Ti=Dt=>Dt,ne.reset(ae));do if(Kt=ne.next(wi),Kt){if(Ti(Kt.index)>=Ge)return Ht;this.positionInBuffer(I,Ti(Kt.index)-X,lt);let Dt=this.getLineFeedCnt(I.piece.bufferIndex,Xe,lt),Gt=lt.line===Xe.line?lt.column-Xe.column+Fe:lt.column+1,ti=Gt+Kt[0].length;if(jt[Ht++]=Object(At.d)(new Q.a(_e+Dt,Gt,_e+Dt,ti),Kt,Ot),Ti(Kt.index)+Kt[0].length>=Ge||Ht>=Tt)return Ht}while(Kt);return Ht}findMatchesLineByLine(I,ne,_e,Fe){let Xe=[],ot=0,Mt=new At.b(ne.wordSeparators,ne.regex),Ot=this.nodeAt2(I.startLineNumber,I.startColumn);if(Ot===null)return[];let Tt=this.nodeAt2(I.endLineNumber,I.endColumn);if(Tt===null)return[];let Ht=this.positionInBuffer(Ot.node,Ot.remainder),jt=this.positionInBuffer(Tt.node,Tt.remainder);if(Ot.node===Tt.node)return this.findMatchesInNode(Ot.node,Mt,I.startLineNumber,I.startColumn,Ht,jt,ne,_e,Fe,ot,Xe),Xe;let Kt=I.startLineNumber,wi=Ot.node;for(;wi!==Tt.node;){let ft=this.getLineFeedCnt(wi.piece.bufferIndex,Ht,wi.piece.end);if(ft>=1){let ae=this._buffers[wi.piece.bufferIndex].lineStarts,Ge=this.offsetInBuffer(wi.piece.bufferIndex,wi.piece.start),lt=ae[Ht.line+ft],Dt=Kt===I.startLineNumber?I.startColumn:1;if(ot=this.findMatchesInNode(wi,Mt,Kt,Dt,Ht,this.positionInBuffer(wi,lt-Ge),ne,_e,Fe,ot,Xe),ot>=Fe)return Xe;Kt+=ft}let X=Kt===I.startLineNumber?I.startColumn-1:0;if(Kt===I.endLineNumber){let ae=this.getLineContent(Kt).substring(X,I.endColumn-1);return ot=this._findMatchesInLine(ne,Mt,ae,I.endLineNumber,X,ot,Xe,_e,Fe),Xe}if(ot=this._findMatchesInLine(ne,Mt,this.getLineContent(Kt).substr(X),Kt,X,ot,Xe,_e,Fe),ot>=Fe)return Xe;Kt++,Ot=this.nodeAt2(Kt,1),wi=Ot.node,Ht=this.positionInBuffer(Ot.node,Ot.remainder)}if(Kt===I.endLineNumber){let ft=Kt===I.startLineNumber?I.startColumn-1:0,X=this.getLineContent(Kt).substring(ft,I.endColumn-1);return ot=this._findMatchesInLine(ne,Mt,X,I.endLineNumber,ft,ot,Xe,_e,Fe),Xe}let Ti=Kt===I.startLineNumber?I.startColumn:1;return ot=this.findMatchesInNode(Tt.node,Mt,Kt,Ti,Ht,jt,ne,_e,Fe,ot,Xe),Xe}_findMatchesInLine(I,ne,_e,Fe,Xe,ot,Mt,Ot,Tt){let Ht=I.wordSeparators;if(!Ot&&I.simpleSearch){let Kt=I.simpleSearch,wi=Kt.length,Ti=_e.length,ft=-wi;for(;(ft=_e.indexOf(Kt,ft+wi))!==-1;)if((!Ht||Object(At.e)(Ht,_e,Ti,ft,wi))&&(Mt[ot++]=new C.b(new Q.a(Fe,ft+1+Xe,Fe,ft+1+wi+Xe),null),ot>=Tt))return ot;return ot}let jt;ne.reset(0);do if(jt=ne.next(_e),jt&&(Mt[ot++]=Object(At.d)(new Q.a(Fe,jt.index+1+Xe,Fe,jt.index+1+jt[0].length+Xe),jt,Ot),ot>=Tt))return ot;while(jt);return ot}insert(I,ne,_e=!1){if(this._EOLNormalized=this._EOLNormalized&&_e,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==$){let{node:Fe,remainder:Xe,nodeStartOffset:ot}=this.nodeAt(I),Mt=Fe.piece,Ot=Mt.bufferIndex,Tt=this.positionInBuffer(Fe,Xe);if(Fe.piece.bufferIndex===0&&Mt.end.line===this._lastChangeBufferPos.line&&Mt.end.column===this._lastChangeBufferPos.column&&ot+Mt.length===I&&ne.length<65535)return this.appendToNode(Fe,ne),void this.computeBufferMetadata();if(ot===I)this.insertContentToNodeLeft(ne,Fe),this._searchCache.validate(I);else if(ot+Fe.piece.length>I){let Ht=[],jt=new Ni(Mt.bufferIndex,Tt,Mt.end,this.getLineFeedCnt(Mt.bufferIndex,Tt,Mt.end),this.offsetInBuffer(Ot,Mt.end)-this.offsetInBuffer(Ot,Tt));if(this.shouldCheckCRLF()&&this.endWithCR(ne)&&this.nodeCharCodeAt(Fe,Xe)===10){let Ti={line:jt.start.line+1,column:0};jt=new Ni(jt.bufferIndex,Ti,jt.end,this.getLineFeedCnt(jt.bufferIndex,Ti,jt.end),jt.length-1),ne+=` -`}if(this.shouldCheckCRLF()&&this.startWithLF(ne))if(this.nodeCharCodeAt(Fe,Xe-1)===13){let Ti=this.positionInBuffer(Fe,Xe-1);this.deleteNodeTail(Fe,Ti),ne="\r"+ne,Fe.piece.length===0&&Ht.push(Fe)}else this.deleteNodeTail(Fe,Tt);else this.deleteNodeTail(Fe,Tt);let Kt=this.createNewPieces(ne);jt.length>0&&this.rbInsertRight(Fe,jt);let wi=Fe;for(let Ti=0;Ti<Kt.length;Ti++)wi=this.rbInsertRight(wi,Kt[Ti]);this.deleteNodes(Ht)}else this.insertContentToNodeRight(ne,Fe)}else{let Fe=this.createNewPieces(ne),Xe=this.rbInsertLeft(null,Fe[0]);for(let ot=1;ot<Fe.length;ot++)Xe=this.rbInsertRight(Xe,Fe[ot])}this.computeBufferMetadata()}delete(I,ne){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",ne<=0||this.root===$)return;let _e=this.nodeAt(I),Fe=this.nodeAt(I+ne),Xe=_e.node,ot=Fe.node;if(Xe===ot){let jt=this.positionInBuffer(Xe,_e.remainder),Kt=this.positionInBuffer(Xe,Fe.remainder);if(_e.nodeStartOffset===I){if(ne===Xe.piece.length){let wi=Xe.next();return Oe(this,Xe),this.validateCRLFWithPrevNode(wi),void this.computeBufferMetadata()}return this.deleteNodeHead(Xe,Kt),this._searchCache.validate(I),this.validateCRLFWithPrevNode(Xe),void this.computeBufferMetadata()}return _e.nodeStartOffset+Xe.piece.length===I+ne?(this.deleteNodeTail(Xe,jt),this.validateCRLFWithNextNode(Xe),void this.computeBufferMetadata()):(this.shrinkNode(Xe,jt,Kt),void this.computeBufferMetadata())}let Mt=[],Ot=this.positionInBuffer(Xe,_e.remainder);this.deleteNodeTail(Xe,Ot),this._searchCache.validate(I),Xe.piece.length===0&&Mt.push(Xe);let Tt=this.positionInBuffer(ot,Fe.remainder);this.deleteNodeHead(ot,Tt),ot.piece.length===0&&Mt.push(ot);for(let jt=Xe.next();jt!==$&&jt!==ot;jt=jt.next())Mt.push(jt);let Ht=Xe.piece.length===0?Xe.prev():Xe;this.deleteNodes(Mt),this.validateCRLFWithNextNode(Ht),this.computeBufferMetadata()}insertContentToNodeLeft(I,ne){let _e=[];if(this.shouldCheckCRLF()&&this.endWithCR(I)&&this.startWithLF(ne)){let ot=ne.piece,Mt={line:ot.start.line+1,column:0},Ot=new Ni(ot.bufferIndex,Mt,ot.end,this.getLineFeedCnt(ot.bufferIndex,Mt,ot.end),ot.length-1);ne.piece=Ot,I+=` -`,pt(this,ne,-1,-1),ne.piece.length===0&&_e.push(ne)}let Fe=this.createNewPieces(I),Xe=this.rbInsertLeft(ne,Fe[Fe.length-1]);for(let ot=Fe.length-2;ot>=0;ot--)Xe=this.rbInsertLeft(Xe,Fe[ot]);this.validateCRLFWithPrevNode(Xe),this.deleteNodes(_e)}insertContentToNodeRight(I,ne){this.adjustCarriageReturnFromNext(I,ne)&&(I+=` -`);let _e=this.createNewPieces(I),Fe=this.rbInsertRight(ne,_e[0]),Xe=Fe;for(let ot=1;ot<_e.length;ot++)Xe=this.rbInsertRight(Xe,_e[ot]);this.validateCRLFWithPrevNode(Fe)}positionInBuffer(I,ne,_e){let Fe=I.piece,Xe=I.piece.bufferIndex,ot=this._buffers[Xe].lineStarts,Mt=ot[Fe.start.line]+Fe.start.column+ne,Ot=Fe.start.line,Tt=Fe.end.line,Ht=0,jt=0,Kt=0;for(;Ot<=Tt&&(Ht=Ot+(Tt-Ot)/2|0,Kt=ot[Ht],Ht!==Tt);)if(jt=ot[Ht+1],Mt<Kt)Tt=Ht-1;else{if(!(Mt>=jt))break;Ot=Ht+1}return _e?(_e.line=Ht,_e.column=Mt-Kt,null):{line:Ht,column:Mt-Kt}}getLineFeedCnt(I,ne,_e){if(_e.column===0)return _e.line-ne.line;let Fe=this._buffers[I].lineStarts;if(_e.line===Fe.length-1)return _e.line-ne.line;let Xe=Fe[_e.line+1],ot=Fe[_e.line]+_e.column;if(Xe>ot+1)return _e.line-ne.line;let Mt=ot-1;return this._buffers[I].buffer.charCodeAt(Mt)===13?_e.line-ne.line+1:_e.line-ne.line}offsetInBuffer(I,ne){return this._buffers[I].lineStarts[ne.line]+ne.column}deleteNodes(I){for(let ne=0;ne<I.length;ne++)Oe(this,I[ne])}createNewPieces(I){if(I.length>65535){let Tt=[];for(;I.length>65535;){let jt=I.charCodeAt(65534),Kt;jt===13||jt>=55296&&jt<=56319?(Kt=I.substring(0,65534),I=I.substring(65534)):(Kt=I.substring(0,65535),I=I.substring(65535));let wi=wt(Kt);Tt.push(new Ni(this._buffers.length,{line:0,column:0},{line:wi.length-1,column:Kt.length-wi[wi.length-1]},wi.length-1,Kt.length)),this._buffers.push(new pi(Kt,wi))}let Ht=wt(I);return Tt.push(new Ni(this._buffers.length,{line:0,column:0},{line:Ht.length-1,column:I.length-Ht[Ht.length-1]},Ht.length-1,I.length)),this._buffers.push(new pi(I,Ht)),Tt}let ne=this._buffers[0].buffer.length,_e=wt(I,!1),Fe=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ne&&ne!==0&&this.startWithLF(I)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},Fe=this._lastChangeBufferPos;for(let Tt=0;Tt<_e.length;Tt++)_e[Tt]+=ne+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(_e.slice(1)),this._buffers[0].buffer+="_"+I,ne+=1}else{if(ne!==0)for(let Tt=0;Tt<_e.length;Tt++)_e[Tt]+=ne;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(_e.slice(1)),this._buffers[0].buffer+=I}let Xe=this._buffers[0].buffer.length,ot=this._buffers[0].lineStarts.length-1,Mt={line:ot,column:Xe-this._buffers[0].lineStarts[ot]},Ot=new Ni(0,Fe,Mt,this.getLineFeedCnt(0,Fe,Mt),Xe-ne);return this._lastChangeBufferPos=Mt,[Ot]}getLineRawContent(I,ne=0){let _e=this.root,Fe="",Xe=this._searchCache.get2(I);if(Xe){_e=Xe.node;let ot=this.getAccumulatedValue(_e,I-Xe.nodeStartLineNumber-1),Mt=this._buffers[_e.piece.bufferIndex].buffer,Ot=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);if(Xe.nodeStartLineNumber+_e.piece.lineFeedCnt!==I){let Tt=this.getAccumulatedValue(_e,I-Xe.nodeStartLineNumber);return Mt.substring(Ot+ot,Ot+Tt-ne)}Fe=Mt.substring(Ot+ot,Ot+_e.piece.length)}else{let ot=0,Mt=I;for(;_e!==$;)if(_e.left!==$&&_e.lf_left>=I-1)_e=_e.left;else{if(_e.lf_left+_e.piece.lineFeedCnt>I-1){let Ot=this.getAccumulatedValue(_e,I-_e.lf_left-2),Tt=this.getAccumulatedValue(_e,I-_e.lf_left-1),Ht=this._buffers[_e.piece.bufferIndex].buffer,jt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);return ot+=_e.size_left,this._searchCache.set({node:_e,nodeStartOffset:ot,nodeStartLineNumber:Mt-(I-1-_e.lf_left)}),Ht.substring(jt+Ot,jt+Tt-ne)}if(_e.lf_left+_e.piece.lineFeedCnt===I-1){let Ot=this.getAccumulatedValue(_e,I-_e.lf_left-2),Tt=this._buffers[_e.piece.bufferIndex].buffer,Ht=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);Fe=Tt.substring(Ht+Ot,Ht+_e.piece.length);break}I-=_e.lf_left+_e.piece.lineFeedCnt,ot+=_e.size_left+_e.piece.length,_e=_e.right}}for(_e=_e.next();_e!==$;){let ot=this._buffers[_e.piece.bufferIndex].buffer;if(_e.piece.lineFeedCnt>0){let Mt=this.getAccumulatedValue(_e,0),Ot=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);return Fe+=ot.substring(Ot,Ot+Mt-ne),Fe}{let Mt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);Fe+=ot.substr(Mt,_e.piece.length)}_e=_e.next()}return Fe}computeBufferMetadata(){let I=this.root,ne=1,_e=0;for(;I!==$;)ne+=I.lf_left+I.piece.lineFeedCnt,_e+=I.size_left+I.piece.length,I=I.right;this._lineCnt=ne,this._length=_e,this._searchCache.validate(this._length)}getIndexOf(I,ne){let _e=I.piece,Fe=this.positionInBuffer(I,ne),Xe=Fe.line-_e.start.line;if(this.offsetInBuffer(_e.bufferIndex,_e.end)-this.offsetInBuffer(_e.bufferIndex,_e.start)===ne){let ot=this.getLineFeedCnt(I.piece.bufferIndex,_e.start,Fe);if(ot!==Xe)return{index:ot,remainder:0}}return{index:Xe,remainder:Fe.column}}getAccumulatedValue(I,ne){if(ne<0)return 0;let _e=I.piece,Fe=this._buffers[_e.bufferIndex].lineStarts,Xe=_e.start.line+ne+1;return Xe>_e.end.line?Fe[_e.end.line]+_e.end.column-Fe[_e.start.line]-_e.start.column:Fe[Xe]-Fe[_e.start.line]-_e.start.column}deleteNodeTail(I,ne){let _e=I.piece,Fe=_e.lineFeedCnt,Xe=this.offsetInBuffer(_e.bufferIndex,_e.end),ot=ne,Mt=this.offsetInBuffer(_e.bufferIndex,ot),Ot=this.getLineFeedCnt(_e.bufferIndex,_e.start,ot),Tt=Ot-Fe,Ht=Mt-Xe,jt=_e.length+Ht;I.piece=new Ni(_e.bufferIndex,_e.start,ot,Ot,jt),pt(this,I,Ht,Tt)}deleteNodeHead(I,ne){let _e=I.piece,Fe=_e.lineFeedCnt,Xe=this.offsetInBuffer(_e.bufferIndex,_e.start),ot=ne,Mt=this.getLineFeedCnt(_e.bufferIndex,ot,_e.end),Ot=Mt-Fe,Tt=Xe-this.offsetInBuffer(_e.bufferIndex,ot),Ht=_e.length+Tt;I.piece=new Ni(_e.bufferIndex,ot,_e.end,Mt,Ht),pt(this,I,Tt,Ot)}shrinkNode(I,ne,_e){let Fe=I.piece,Xe=Fe.start,ot=Fe.end,Mt=Fe.length,Ot=Fe.lineFeedCnt,Tt=ne,Ht=this.getLineFeedCnt(Fe.bufferIndex,Fe.start,Tt),jt=this.offsetInBuffer(Fe.bufferIndex,ne)-this.offsetInBuffer(Fe.bufferIndex,Xe);I.piece=new Ni(Fe.bufferIndex,Fe.start,Tt,Ht,jt),pt(this,I,jt-Mt,Ht-Ot);let Kt=new Ni(Fe.bufferIndex,_e,ot,this.getLineFeedCnt(Fe.bufferIndex,_e,ot),this.offsetInBuffer(Fe.bufferIndex,ot)-this.offsetInBuffer(Fe.bufferIndex,_e)),wi=this.rbInsertRight(I,Kt);this.validateCRLFWithPrevNode(wi)}appendToNode(I,ne){this.adjustCarriageReturnFromNext(ne,I)&&(ne+=` -`);let _e=this.shouldCheckCRLF()&&this.startWithLF(ne)&&this.endWithCR(I),Fe=this._buffers[0].buffer.length;this._buffers[0].buffer+=ne;let Xe=wt(ne,!1);for(let Kt=0;Kt<Xe.length;Kt++)Xe[Kt]+=Fe;if(_e){let Kt=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:Fe-Kt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Xe.slice(1));let ot=this._buffers[0].lineStarts.length-1,Mt={line:ot,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[ot]},Ot=I.piece.length+ne.length,Tt=I.piece.lineFeedCnt,Ht=this.getLineFeedCnt(0,I.piece.start,Mt),jt=Ht-Tt;I.piece=new Ni(I.piece.bufferIndex,I.piece.start,Mt,Ht,Ot),this._lastChangeBufferPos=Mt,pt(this,I,ne.length,jt)}nodeAt(I){let ne=this.root,_e=this._searchCache.get(I);if(_e)return{node:_e.node,nodeStartOffset:_e.nodeStartOffset,remainder:I-_e.nodeStartOffset};let Fe=0;for(;ne!==$;)if(ne.size_left>I)ne=ne.left;else{if(ne.size_left+ne.piece.length>=I){Fe+=ne.size_left;let Xe={node:ne,remainder:I-ne.size_left,nodeStartOffset:Fe};return this._searchCache.set(Xe),Xe}I-=ne.size_left+ne.piece.length,Fe+=ne.size_left+ne.piece.length,ne=ne.right}return null}nodeAt2(I,ne){let _e=this.root,Fe=0;for(;_e!==$;)if(_e.left!==$&&_e.lf_left>=I-1)_e=_e.left;else{if(_e.lf_left+_e.piece.lineFeedCnt>I-1){let Xe=this.getAccumulatedValue(_e,I-_e.lf_left-2),ot=this.getAccumulatedValue(_e,I-_e.lf_left-1);return Fe+=_e.size_left,{node:_e,remainder:Math.min(Xe+ne-1,ot),nodeStartOffset:Fe}}if(_e.lf_left+_e.piece.lineFeedCnt===I-1){let Xe=this.getAccumulatedValue(_e,I-_e.lf_left-2);if(Xe+ne-1<=_e.piece.length)return{node:_e,remainder:Xe+ne-1,nodeStartOffset:Fe};ne-=_e.piece.length-Xe;break}I-=_e.lf_left+_e.piece.lineFeedCnt,Fe+=_e.size_left+_e.piece.length,_e=_e.right}for(_e=_e.next();_e!==$;){if(_e.piece.lineFeedCnt>0){let Xe=this.getAccumulatedValue(_e,0),ot=this.offsetOfNode(_e);return{node:_e,remainder:Math.min(ne-1,Xe),nodeStartOffset:ot}}if(_e.piece.length>=ne-1)return{node:_e,remainder:ne-1,nodeStartOffset:this.offsetOfNode(_e)};ne-=_e.piece.length,_e=_e.next()}return null}nodeCharCodeAt(I,ne){if(I.piece.lineFeedCnt<1)return-1;let _e=this._buffers[I.piece.bufferIndex],Fe=this.offsetInBuffer(I.piece.bufferIndex,I.piece.start)+ne;return _e.buffer.charCodeAt(Fe)}offsetOfNode(I){if(!I)return 0;let ne=I.size_left;for(;I!==this.root;)I.parent.right===I&&(ne+=I.parent.size_left+I.parent.piece.length),I=I.parent;return ne}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` -`)}startWithLF(I){if(typeof I=="string")return I.charCodeAt(0)===10;if(I===$||I.piece.lineFeedCnt===0)return!1;let ne=I.piece,_e=this._buffers[ne.bufferIndex].lineStarts,Fe=ne.start.line,Xe=_e[Fe]+ne.start.column;return Fe!==_e.length-1&&!(_e[Fe+1]>Xe+1)&&this._buffers[ne.bufferIndex].buffer.charCodeAt(Xe)===10}endWithCR(I){return typeof I=="string"?I.charCodeAt(I.length-1)===13:I!==$&&I.piece.lineFeedCnt!==0&&this.nodeCharCodeAt(I,I.piece.length-1)===13}validateCRLFWithPrevNode(I){if(this.shouldCheckCRLF()&&this.startWithLF(I)){let ne=I.prev();this.endWithCR(ne)&&this.fixCRLF(ne,I)}}validateCRLFWithNextNode(I){if(this.shouldCheckCRLF()&&this.endWithCR(I)){let ne=I.next();this.startWithLF(ne)&&this.fixCRLF(I,ne)}}fixCRLF(I,ne){let _e,Fe=[],Xe=this._buffers[I.piece.bufferIndex].lineStarts;_e=I.piece.end.column===0?{line:I.piece.end.line-1,column:Xe[I.piece.end.line]-Xe[I.piece.end.line-1]-1}:{line:I.piece.end.line,column:I.piece.end.column-1};let ot=I.piece.length-1,Mt=I.piece.lineFeedCnt-1;I.piece=new Ni(I.piece.bufferIndex,I.piece.start,_e,Mt,ot),pt(this,I,-1,-1),I.piece.length===0&&Fe.push(I);let Ot={line:ne.piece.start.line+1,column:0},Tt=ne.piece.length-1,Ht=this.getLineFeedCnt(ne.piece.bufferIndex,Ot,ne.piece.end);ne.piece=new Ni(ne.piece.bufferIndex,Ot,ne.piece.end,Ht,Tt),pt(this,ne,-1,-1),ne.piece.length===0&&Fe.push(ne);let jt=this.createNewPieces(`\r -`);this.rbInsertRight(I,jt[0]);for(let Kt=0;Kt<Fe.length;Kt++)Oe(this,Fe[Kt])}adjustCarriageReturnFromNext(I,ne){if(this.shouldCheckCRLF()&&this.endWithCR(I)){let _e=ne.next();if(this.startWithLF(_e)){if(I+=` -`,_e.piece.length===1)Oe(this,_e);else{let Fe=_e.piece,Xe={line:Fe.start.line+1,column:0},ot=Fe.length-1,Mt=this.getLineFeedCnt(Fe.bufferIndex,Xe,Fe.end);_e.piece=new Ni(Fe.bufferIndex,Xe,Fe.end,Mt,ot),pt(this,_e,-1,-1)}return!0}}return!1}iterate(I,ne){if(I===$)return ne($);let _e=this.iterate(I.left,ne);return _e&&ne(I)&&this.iterate(I.right,ne)}getNodeContent(I){if(I===$)return"";let ne,_e=this._buffers[I.piece.bufferIndex],Fe=I.piece,Xe=this.offsetInBuffer(Fe.bufferIndex,Fe.start),ot=this.offsetInBuffer(Fe.bufferIndex,Fe.end);return ne=_e.buffer.substring(Xe,ot),ne}getPieceContent(I){let ne=this._buffers[I.bufferIndex],_e=this.offsetInBuffer(I.bufferIndex,I.start),Fe=this.offsetInBuffer(I.bufferIndex,I.end);return ne.buffer.substring(_e,Fe)}rbInsertRight(I,ne){let _e=new fe(ne,1);if(_e.left=$,_e.right=$,_e.parent=$,_e.size_left=0,_e.lf_left=0,this.root===$)this.root=_e,_e.color=0;else if(I.right===$)I.right=_e,_e.parent=I;else{let Fe=G(I.right);Fe.left=_e,_e.parent=Fe}return $e(this,_e),_e}rbInsertLeft(I,ne){let _e=new fe(ne,1);if(_e.left=$,_e.right=$,_e.parent=$,_e.size_left=0,_e.lf_left=0,this.root===$)this.root=_e,_e.color=0;else if(I.left===$)I.left=_e,_e.parent=I;else{let Fe=z(I.left);Fe.right=_e,_e.parent=Fe}return $e(this,_e),_e}}var Ii=o(124),Ai=o(180);class Zi{constructor(I,ne,_e,Fe,Xe,ot,Mt){this._onDidChangeContent=new f.a,this._BOM=ne,this._mightContainNonBasicASCII=!ot,this._mightContainRTL=Fe,this._mightContainUnusualLineTerminators=Xe,this._pieceTree=new Li(I,_e,Mt)}dispose(){this._onDidChangeContent.dispose()}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(I){return this._pieceTree.createSnapshot(I?this._BOM:"")}getOffsetAt(I,ne){return this._pieceTree.getOffsetAt(I,ne)}getPositionAt(I){return this._pieceTree.getPositionAt(I)}getRangeAt(I,ne){let _e=I+ne,Fe=this.getPositionAt(I),Xe=this.getPositionAt(_e);return new Q.a(Fe.lineNumber,Fe.column,Xe.lineNumber,Xe.column)}getValueInRange(I,ne=0){if(I.isEmpty())return"";let _e=this._getEndOfLine(ne);return this._pieceTree.getValueInRange(I,_e)}getValueLengthInRange(I,ne=0){if(I.isEmpty())return 0;if(I.startLineNumber===I.endLineNumber)return I.endColumn-I.startColumn;let _e=this.getOffsetAt(I.startLineNumber,I.startColumn);return this.getOffsetAt(I.endLineNumber,I.endColumn)-_e}getCharacterCountInRange(I,ne=0){if(this._mightContainNonBasicASCII){let _e=0,Fe=I.startLineNumber,Xe=I.endLineNumber;for(let ot=Fe;ot<=Xe;ot++){let Mt=this.getLineContent(ot),Ot=ot===Fe?I.startColumn-1:0,Tt=ot===Xe?I.endColumn-1:Mt.length;for(let Ht=Ot;Ht<Tt;Ht++)H.F(Mt.charCodeAt(Ht))?(_e+=1,Ht+=1):_e+=1}return _e+=this._getEndOfLine(ne).length*(Xe-Fe),_e}return this.getValueLengthInRange(I,ne)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(I){return this._pieceTree.getLineContent(I)}getLineCharCode(I,ne){return this._pieceTree.getLineCharCode(I,ne)}getLineLength(I){return this._pieceTree.getLineLength(I)}getLineFirstNonWhitespaceColumn(I){let ne=H.w(this.getLineContent(I));return ne===-1?0:ne+1}getLineLastNonWhitespaceColumn(I){let ne=H.J(this.getLineContent(I));return ne===-1?0:ne+2}_getEndOfLine(I){switch(I){case 1:return` +(function(Ie){function w(W){for(var Q,y,C=W[0],S=W[1],P=0,V=[];P<C.length;P++)y=C[P],Object.prototype.hasOwnProperty.call(h,y)&&h[y]&&V.push(h[y][0]),h[y]=0;for(Q in S)Object.prototype.hasOwnProperty.call(S,Q)&&(Ie[Q]=S[Q]);for(ge&&ge(W);V.length;)V.shift()()}var r={},h={0:0};function f(W){if(r[W])return r[W].exports;var Q=r[W]={i:W,l:!1,exports:{}};return Ie[W].call(Q.exports,Q,Q.exports,f),Q.l=!0,Q.exports}f.e=function(){return Promise.resolve()},f.m=Ie,f.c=r,f.d=function(W,Q,y){f.o(W,Q)||Object.defineProperty(W,Q,{enumerable:!0,get:y})},f.r=function(W){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},f.t=function(W,Q){if(1&Q&&(W=f(W)),8&Q||4&Q&&typeof W=="object"&&W&&W.__esModule)return W;var y=Object.create(null);if(f.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:W}),2&Q&&typeof W!="string")for(var C in W)f.d(y,C,function(S){return W[S]}.bind(null,C));return y},f.n=function(W){var Q=W&&W.__esModule?function(){return W.default}:function(){return W};return f.d(Q,"a",Q),Q},f.o=function(W,Q){return Object.prototype.hasOwnProperty.call(W,Q)},f.p="/",f.oe=function(W){throw console.error(W),W};var O=self.webpackJsonp=self.webpackJsonp||[],H=O.push.bind(O);O.push=w,O=O.slice();for(var E=0;E<O.length;E++)w(O[E]);var ge=H;f(f.s=342)})([function(Ie,w,r){"use strict";function h(f,O,...H){return function(E,ge){let W;return W=ge.length===0?E:E.replace(/\{(\d+)\}/g,function(Q,y){let C=y[0];return ge[C]!==void 0?ge[C]:Q}),W}(O,H)}r.d(w,"a",function(){return h})},function(Ie,w,r){"use strict";r.d(w,"s",function(){return V}),r.d(w,"S",function(){return k}),r.d(w,"N",function(){return l}),r.d(w,"I",function(){return N}),r.d(w,"e",function(){return b}),r.d(w,"f",function(){return g}),r.d(w,"Q",function(){return j}),r.d(w,"R",function(){return ie}),r.d(w,"ab",function(){return U}),r.d(w,"i",function(){return B}),r.d(w,"n",function(){return ke}),r.d(w,"m",function(){return xe}),r.d(w,"g",function(){return Y}),r.d(w,"h",function(){return Z}),r.d(w,"j",function(){return te}),r.d(w,"k",function(){return he}),r.d(w,"W",function(){return Ce}),r.d(w,"Y",function(){return Ae}),r.d(w,"l",function(){return ht}),r.d(w,"z",function(){return fe}),r.d(w,"y",function(){return $}),r.d(w,"F",function(){return J}),r.d(w,"C",function(){return Se}),r.d(w,"d",function(){return A}),r.d(w,"H",function(){return ee}),r.d(w,"B",function(){return de}),r.d(w,"A",function(){return De}),r.d(w,"G",function(){return $e}),r.d(w,"L",function(){return pt}),r.d(w,"w",function(){return it}),r.d(w,"J",function(){return At}),r.d(w,"O",function(){return _i}),r.d(w,"E",function(){return wt}),r.d(w,"x",function(){return Ni}),r.d(w,"v",function(){return pi}),r.d(w,"u",function(){return Li}),r.d(w,"P",function(){return Ii}),r.d(w,"M",function(){return Ai}),r.d(w,"c",function(){return Zi}),r.d(w,"b",function(){return Bi}),r.d(w,"X",function(){return Lt}),r.d(w,"V",function(){return Oi}),r.d(w,"bb",function(){return vi}),r.d(w,"p",function(){return Rt}),r.d(w,"U",function(){return Ue}),r.d(w,"a",function(){return st}),r.d(w,"Z",function(){return _t}),r.d(w,"K",function(){return ri}),r.d(w,"T",function(){return li}),r.d(w,"D",function(){return gi}),r.d(w,"t",function(){return ki}),r.d(w,"cb",function(){return Ri}),r.d(w,"o",function(){return $i}),r.d(w,"r",function(){return Hi}),r.d(w,"q",function(){return yi});var h=r(34),f=r(44),O=r(67),H=r(69),E=r(20),ge=r(13),W=r(6),Q=r(2),y=r(11),C=r(16),S=r(45),P=r(138);function V(kt){for(;kt.firstChild;)kt.removeChild(kt.firstChild)}function k(kt){kt.parentNode&&kt.parentNode.removeChild(kt)}function l(kt){for(;kt;){if(kt===document.body)return!0;kt=kt.parentNode||kt.host}return!1}let T=new class{hasClass(kt,Et){return Boolean(Et)&&kt.classList&&kt.classList.contains(Et)}addClasses(kt,...Et){Et.forEach(si=>si.split(" ").forEach(Si=>this.addClass(kt,Si)))}addClass(kt,Et){Et&&kt.classList&&kt.classList.add(Et)}removeClass(kt,Et){Et&&kt.classList&&kt.classList.remove(Et)}removeClasses(kt,...Et){Et.forEach(si=>si.split(" ").forEach(Si=>this.removeClass(kt,Si)))}toggleClass(kt,Et,si){kt.classList&&kt.classList.toggle(Et,si)}},N=T.hasClass.bind(T),b=T.addClass.bind(T),g=T.addClasses.bind(T),j=T.removeClass.bind(T),ie=T.removeClasses.bind(T),U=T.toggleClass.bind(T);class q{constructor(Et,si,Si,Pi){this._node=Et,this._type=si,this._handler=Si,this._options=Pi||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function B(kt,Et,si,Si){return new q(kt,Et,si,Si)}function se(kt){return function(Et){return kt(new H.a(Et))}}let ke=function(kt,Et,si,Si){let Pi=si;return Et==="click"||Et==="mousedown"?Pi=se(si):Et!=="keydown"&&Et!=="keypress"&&Et!=="keyup"||(Pi=function(Wi){return function(xn){return Wi(new O.a(xn))}}(si)),B(kt,Et,Pi,Si)},xe=function(kt,Et,si){return Y(kt,se(Et),si)};function Y(kt,Et,si){return B(kt,y.c&&P.a.pointerEvents?Zi.POINTER_DOWN:Zi.MOUSE_DOWN,Et,si)}function Z(kt,Et,si){return B(kt,y.c&&P.a.pointerEvents?Zi.POINTER_UP:Zi.MOUSE_UP,Et,si)}function te(kt,Et){return B(kt,"mouseout",si=>{let Si=si.relatedTarget;for(;Si&&Si!==kt;)Si=Si.parentNode;Si!==kt&&Et(si)})}function he(kt,Et){return B(kt,"pointerout",si=>{let Si=si.relatedTarget;for(;Si&&Si!==kt;)Si=Si.parentNode;Si!==kt&&Et(si)})}let Ce,Ae,L=null;class nt{constructor(Et,si=0){this._runner=Et,this.priority=si,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Et){Object(ge.e)(Et)}}static sort(Et,si){return si.priority-Et.priority}}(function(){let kt=[],Et=null,si=!1,Si=!1,Pi=()=>{for(si=!1,Et=kt,kt=[],Si=!0;Et.length>0;)Et.sort(nt.sort),Et.shift().execute();Si=!1};Ae=(Wi,xn=0)=>{let un=new nt(Wi,xn);return kt.push(un),si||(si=!0,function(bn){if(!L){let Fn=Mn=>setTimeout(()=>Mn(new Date().getTime()),0);L=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Fn}L.call(self,bn)}(Pi)),un},Ce=(Wi,xn)=>{if(Si){let un=new nt(Wi,xn);return Et.push(un),un}return Ae(Wi,xn)}})();let ct=function(kt,Et){return Et};class Ye extends Q.a{constructor(Et,si,Si,Pi=ct,Wi=16){super();let xn=null,un=0,bn=this._register(new E.e),Fn=()=>{un=new Date().getTime(),Si(xn),xn=null};this._register(B(Et,si,Mn=>{xn=Pi(xn,Mn);let Nn=new Date().getTime()-un;Nn>=Wi?(bn.cancel(),Fn()):bn.setIfNotSet(Fn,Wi-Nn)}))}}function ht(kt,Et,si,Si,Pi){return new Ye(kt,Et,si,Si,Pi)}function fe(kt){return document.defaultView.getComputedStyle(kt,null)}function $(kt){if(kt!==document.body)return new z(kt.clientWidth,kt.clientHeight);if(y.c&&window.visualViewport){let Et=window.visualViewport.width,si=window.visualViewport.height-(h.k?24:0);return new z(Et,si)}if(window.innerWidth&&window.innerHeight)return new z(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new z(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new z(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class G{static convertToPixels(Et,si){return parseFloat(si)||0}static getDimension(Et,si,Si){let Pi=fe(Et),Wi="0";return Pi&&(Wi=Pi.getPropertyValue?Pi.getPropertyValue(si):Pi.getAttribute(Si)),G.convertToPixels(Et,Wi)}static getBorderLeftWidth(Et){return G.getDimension(Et,"border-left-width","borderLeftWidth")}static getBorderRightWidth(Et){return G.getDimension(Et,"border-right-width","borderRightWidth")}static getBorderTopWidth(Et){return G.getDimension(Et,"border-top-width","borderTopWidth")}static getBorderBottomWidth(Et){return G.getDimension(Et,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(Et){return G.getDimension(Et,"padding-left","paddingLeft")}static getPaddingRight(Et){return G.getDimension(Et,"padding-right","paddingRight")}static getPaddingTop(Et){return G.getDimension(Et,"padding-top","paddingTop")}static getPaddingBottom(Et){return G.getDimension(Et,"padding-bottom","paddingBottom")}static getMarginLeft(Et){return G.getDimension(Et,"margin-left","marginLeft")}static getMarginTop(Et){return G.getDimension(Et,"margin-top","marginTop")}static getMarginRight(Et){return G.getDimension(Et,"margin-right","marginRight")}static getMarginBottom(Et){return G.getDimension(Et,"margin-bottom","marginBottom")}}class z{constructor(Et,si){this.width=Et,this.height=si}}function J(kt){let Et=kt.offsetParent,si=kt.offsetTop,Si=kt.offsetLeft;for(;(kt=kt.parentNode)!==null&&kt!==document.body&&kt!==document.documentElement;){si-=kt.scrollTop;let Pi=Nt(kt)?null:fe(kt);Pi&&(Si-=Pi.direction!=="rtl"?kt.scrollLeft:-kt.scrollLeft),kt===Et&&(Si+=G.getBorderLeftWidth(kt),si+=G.getBorderTopWidth(kt),si+=kt.offsetTop,Si+=kt.offsetLeft,Et=kt.offsetParent)}return{left:Si,top:si}}function Se(kt){let Et=kt.getBoundingClientRect();return{left:Et.left+A.scrollX,top:Et.top+A.scrollY,width:Et.width,height:Et.height}}let A=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function ee(kt){let Et=G.getMarginLeft(kt)+G.getMarginRight(kt);return kt.offsetWidth+Et}function de(kt){let Et=G.getBorderLeftWidth(kt)+G.getBorderRightWidth(kt),si=G.getPaddingLeft(kt)+G.getPaddingRight(kt);return kt.offsetWidth-Et-si}function De(kt){let Et=G.getBorderTopWidth(kt)+G.getBorderBottomWidth(kt),si=G.getPaddingTop(kt)+G.getPaddingBottom(kt);return kt.offsetHeight-Et-si}function $e(kt){let Et=G.getMarginTop(kt)+G.getMarginBottom(kt);return kt.offsetHeight+Et}function pt(kt,Et){for(;kt;){if(kt===Et)return!0;kt=kt.parentNode}return!1}function it(kt,Et,si){for(;kt&&kt.nodeType===kt.ELEMENT_NODE;){if(N(kt,Et))return kt;if(si){if(typeof si=="string"){if(N(kt,si))return null}else if(kt===si)return null}kt=kt.parentNode}return null}function At(kt,Et,si){return!!it(kt,Et,si)}function Nt(kt){return kt&&!!kt.host&&!!kt.mode}function _i(kt){return!!wt(kt)}function wt(kt){for(;kt.parentNode;){if(kt===document.body)return null;kt=kt.parentNode}return Nt(kt)?kt:null}function Ni(){let kt=document.activeElement;for(;kt==null?void 0:kt.shadowRoot;)kt=kt.shadowRoot.activeElement;return kt}function pi(kt=document.getElementsByTagName("head")[0]){let Et=document.createElement("style");return Et.type="text/css",Et.media="screen",kt.appendChild(Et),Et}let et=null;function Wt(){return et||(et=pi()),et}function Li(kt,Et,si=Wt()){si&&Et&&si.sheet.insertRule(kt+"{"+Et+"}",0)}function Ii(kt,Et=Wt()){if(!Et)return;let si=function(Pi){return Pi&&Pi.sheet&&Pi.sheet.rules?Pi.sheet.rules:Pi&&Pi.sheet&&Pi.sheet.cssRules?Pi.sheet.cssRules:[]}(Et),Si=[];for(let Pi=0;Pi<si.length;Pi++)si[Pi].selectorText.indexOf(kt)!==-1&&Si.push(Pi);for(let Pi=Si.length-1;Pi>=0;Pi--)Et.sheet.deleteRule(Si[Pi])}function Ai(kt){return typeof HTMLElement=="object"?kt instanceof HTMLElement:kt&&typeof kt=="object"&&kt.nodeType===1&&typeof kt.nodeName=="string"}let Zi={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:h.f?"mousewheel":"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:h.l?"webkitAnimationStart":"animationstart",ANIMATION_END:h.l?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:h.l?"webkitAnimationIteration":"animationiteration"},Bi={stop:function(kt,Et){kt.preventDefault?kt.preventDefault():kt.returnValue=!1,Et&&(kt.stopPropagation?kt.stopPropagation():kt.cancelBubble=!0)}};function Lt(kt){let Et=[];for(let si=0;kt&&kt.nodeType===kt.ELEMENT_NODE;si++)Et[si]=kt.scrollTop,kt=kt.parentNode;return Et}function Oi(kt,Et){for(let si=0;kt&&kt.nodeType===kt.ELEMENT_NODE;si++)kt.scrollTop!==Et[si]&&(kt.scrollTop=Et[si]),kt=kt.parentNode}class gt extends Q.a{constructor(Et){super(),this._onDidFocus=this._register(new W.a),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new W.a),this.onDidBlur=this._onDidBlur.event;let si=pt(document.activeElement,Et),Si=!1,Pi=()=>{Si=!1,si||(si=!0,this._onDidFocus.fire())},Wi=()=>{si&&(Si=!0,window.setTimeout(()=>{Si&&(Si=!1,si=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{pt(document.activeElement,Et)!==si&&(si?Wi():Pi())},this._register(Object(f.a)(Et,Zi.FOCUS,!0)(Pi)),this._register(Object(f.a)(Et,Zi.BLUR,!0)(Wi))}}function vi(kt){return new gt(kt)}function Rt(kt,...Et){return Et.forEach(si=>kt.appendChild(si)),Et[Et.length-1]}let vt=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function Ue(kt,...Et){kt.innerText="",Object(C.d)(Et).forEach(si=>{si instanceof Node?kt.appendChild(si):kt.appendChild(document.createTextNode(si))})}var ut;function ze(kt,Et,si,...Si){let Pi=vt.exec(Et);if(!Pi)throw new Error("Bad use of emmet");si=Object.assign({},si||{});let Wi,xn=Pi[1]||"div";return Wi=kt!==ut.HTML?document.createElementNS(kt,xn):document.createElement(xn),Pi[3]&&(Wi.id=Pi[3]),Pi[4]&&(Wi.className=Pi[4].replace(/\./g," ").trim()),Object.keys(si).forEach(un=>{let bn=si[un];bn!==void 0&&(/^on\w+$/.test(un)?Wi[un]=bn:un==="selected"?bn&&Wi.setAttribute(un,"true"):Wi.setAttribute(un,bn))}),Object(C.d)(Si).forEach(un=>{un instanceof Node?Wi.appendChild(un):Wi.appendChild(document.createTextNode(un))}),Wi}function st(kt,Et,...si){return ze(ut.HTML,kt,Et,...si)}function _t(...kt){for(let Et of kt)Et.style.display="",Et.removeAttribute("aria-hidden")}function ri(...kt){for(let Et of kt)Et.style.display="none",Et.setAttribute("aria-hidden","true")}function li(kt){if(kt&&kt.hasAttribute("tabIndex")){if(document.activeElement===kt){let Et=function(si,Si){for(;si&&si.nodeType===si.ELEMENT_NODE;){if(si instanceof HTMLElement&&si.hasAttribute(Si))return si;si=si.parentNode}return null}(kt.parentElement,"tabIndex");Et&&Et.focus()}kt.removeAttribute("tabindex")}}function gi(kt){return Array.prototype.slice.call(document.getElementsByTagName(kt),0)}function ki(kt){let Et=window.devicePixelRatio*kt;return Math.max(1,Math.floor(Et))/window.devicePixelRatio}function Ri(kt){if(y.g||h.g)window.open(kt);else{let Et=window.open();Et&&(Et.opener=null,Et.location.href=kt)}}function $i(kt){let Et=()=>{kt(),si=Ae(Et)},si=Ae(Et);return Object(Q.h)(()=>si.dispose())}function Hi(kt){return kt&&S.b.vscodeRemote===kt.scheme?S.a.rewrite(kt):kt}function yi(kt){return kt?`url('${Hi(kt).toString(!0).replace(/'/g,"%27")}')`:"url('')"}(function(kt){kt.HTML="http://www.w3.org/1999/xhtml",kt.SVG="http://www.w3.org/2000/svg"})(ut||(ut={})),st.SVG=function(kt,Et,...si){return ze(ut.SVG,kt,Et,...si)},S.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(Ie,w,r){"use strict";r.d(w,"g",function(){return H}),r.d(w,"f",function(){return E}),r.d(w,"e",function(){return ge}),r.d(w,"h",function(){return W}),r.d(w,"b",function(){return Q}),r.d(w,"a",function(){return y}),r.d(w,"d",function(){return C}),r.d(w,"c",function(){return S});var h=r(37);function f(P){}class O extends Error{constructor(V){super(`Encounter errors while disposing of store. Errors: [${V.join(", ")}]`),this.errors=V}}function H(P){return typeof P.dispose=="function"&&P.dispose.length===0}function E(P){if(h.a.is(P)){let V=[];for(let k of P)if(k)try{k.dispose()}catch(l){V.push(l)}if(V.length===1)throw V[0];if(V.length>1)throw new O(V);return Array.isArray(P)?[]:P}if(P)return P.dispose(),P}function ge(...P){return P.forEach(f),{dispose:()=>E(P)}}function W(P){return{dispose:()=>{P()}}}class Q{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{E(this._toDispose.values())}finally{this._toDispose.clear()}}add(V){if(!V)return V;if(V===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Q.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(V),V}}Q.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new Q}dispose(){this._store.dispose()}_register(V){if(V===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(V)}}y.None=Object.freeze({dispose(){}});class C{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(V){this._isDisposed||V===this._value||(this._value&&this._value.dispose(),this._value=V)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value&&this._value.dispose(),this._value=void 0}}class S{constructor(V){this.object=V}dispose(){}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(9);class f{constructor(H,E,ge,W){H>ge||H===ge&&E>W?(this.startLineNumber=ge,this.startColumn=W,this.endLineNumber=H,this.endColumn=E):(this.startLineNumber=H,this.startColumn=E,this.endLineNumber=ge,this.endColumn=W)}isEmpty(){return f.isEmpty(this)}static isEmpty(H){return H.startLineNumber===H.endLineNumber&&H.startColumn===H.endColumn}containsPosition(H){return f.containsPosition(this,H)}static containsPosition(H,E){return!(E.lineNumber<H.startLineNumber||E.lineNumber>H.endLineNumber)&&!(E.lineNumber===H.startLineNumber&&E.column<H.startColumn)&&!(E.lineNumber===H.endLineNumber&&E.column>H.endColumn)}containsRange(H){return f.containsRange(this,H)}static containsRange(H,E){return!(E.startLineNumber<H.startLineNumber||E.endLineNumber<H.startLineNumber)&&!(E.startLineNumber>H.endLineNumber||E.endLineNumber>H.endLineNumber)&&!(E.startLineNumber===H.startLineNumber&&E.startColumn<H.startColumn)&&!(E.endLineNumber===H.endLineNumber&&E.endColumn>H.endColumn)}strictContainsRange(H){return f.strictContainsRange(this,H)}static strictContainsRange(H,E){return!(E.startLineNumber<H.startLineNumber||E.endLineNumber<H.startLineNumber)&&!(E.startLineNumber>H.endLineNumber||E.endLineNumber>H.endLineNumber)&&!(E.startLineNumber===H.startLineNumber&&E.startColumn<=H.startColumn)&&!(E.endLineNumber===H.endLineNumber&&E.endColumn>=H.endColumn)}plusRange(H){return f.plusRange(this,H)}static plusRange(H,E){let ge,W,Q,y;return E.startLineNumber<H.startLineNumber?(ge=E.startLineNumber,W=E.startColumn):E.startLineNumber===H.startLineNumber?(ge=E.startLineNumber,W=Math.min(E.startColumn,H.startColumn)):(ge=H.startLineNumber,W=H.startColumn),E.endLineNumber>H.endLineNumber?(Q=E.endLineNumber,y=E.endColumn):E.endLineNumber===H.endLineNumber?(Q=E.endLineNumber,y=Math.max(E.endColumn,H.endColumn)):(Q=H.endLineNumber,y=H.endColumn),new f(ge,W,Q,y)}intersectRanges(H){return f.intersectRanges(this,H)}static intersectRanges(H,E){let ge=H.startLineNumber,W=H.startColumn,Q=H.endLineNumber,y=H.endColumn,C=E.startLineNumber,S=E.startColumn,P=E.endLineNumber,V=E.endColumn;return ge<C?(ge=C,W=S):ge===C&&(W=Math.max(W,S)),Q>P?(Q=P,y=V):Q===P&&(y=Math.min(y,V)),ge>Q||ge===Q&&W>y?null:new f(ge,W,Q,y)}equalsRange(H){return f.equalsRange(this,H)}static equalsRange(H,E){return!!H&&!!E&&H.startLineNumber===E.startLineNumber&&H.startColumn===E.startColumn&&H.endLineNumber===E.endLineNumber&&H.endColumn===E.endColumn}getEndPosition(){return f.getEndPosition(this)}static getEndPosition(H){return new h.a(H.endLineNumber,H.endColumn)}getStartPosition(){return f.getStartPosition(this)}static getStartPosition(H){return new h.a(H.startLineNumber,H.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(H,E){return new f(this.startLineNumber,this.startColumn,H,E)}setStartPosition(H,E){return new f(H,E,this.endLineNumber,this.endColumn)}collapseToStart(){return f.collapseToStart(this)}static collapseToStart(H){return new f(H.startLineNumber,H.startColumn,H.startLineNumber,H.startColumn)}static fromPositions(H,E=H){return new f(H.lineNumber,H.column,E.lineNumber,E.column)}static lift(H){return H?new f(H.startLineNumber,H.startColumn,H.endLineNumber,H.endColumn):null}static isIRange(H){return H&&typeof H.startLineNumber=="number"&&typeof H.startColumn=="number"&&typeof H.endLineNumber=="number"&&typeof H.endColumn=="number"}static areIntersectingOrTouching(H,E){return!(H.endLineNumber<E.startLineNumber||H.endLineNumber===E.startLineNumber&&H.endColumn<E.startColumn)&&!(E.endLineNumber<H.startLineNumber||E.endLineNumber===H.startLineNumber&&E.endColumn<H.startColumn)}static areIntersecting(H,E){return!(H.endLineNumber<E.startLineNumber||H.endLineNumber===E.startLineNumber&&H.endColumn<=E.startColumn)&&!(E.endLineNumber<H.startLineNumber||E.endLineNumber===H.startLineNumber&&E.endColumn<=H.startColumn)}static compareRangesUsingStarts(H,E){if(H&&E){let ge=0|H.startLineNumber,W=0|E.startLineNumber;if(ge===W){let Q=0|H.startColumn,y=0|E.startColumn;if(Q===y){let C=0|H.endLineNumber,S=0|E.endLineNumber;return C===S?(0|H.endColumn)-(0|E.endColumn):C-S}return Q-y}return ge-W}return(H?1:0)-(E?1:0)}static compareRangesUsingEnds(H,E){return H.endLineNumber===E.endLineNumber?H.endColumn===E.endColumn?H.startLineNumber===E.startLineNumber?H.startColumn-E.startColumn:H.startLineNumber-E.startLineNumber:H.endColumn-E.endColumn:H.endLineNumber-E.endLineNumber}static spansMultipleLines(H){return H.endLineNumber>H.startLineNumber}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return T}),r.d(w,"e",function(){return N}),r.d(w,"c",function(){return g}),r.d(w,"b",function(){return j}),r.d(w,"f",function(){return ie}),r.d(w,"o",function(){return U}),r.d(w,"j",function(){return q}),r.d(w,"p",function(){return B}),r.d(w,"q",function(){return se}),r.d(w,"l",function(){return ke}),r.d(w,"k",function(){return xe}),r.d(w,"r",function(){return Y}),r.d(w,"n",function(){return Z}),r.d(w,"m",function(){return te}),r.d(w,"d",function(){return h}),r.d(w,"i",function(){return Ae}),r.d(w,"g",function(){return L}),r.d(w,"h",function(){return nt});var h,f=r(0),O=r(13),H=r(23),E=r(41),ge=r(9),W=r(64),Q=r(122),y=r(24),C=r(27),S=r(10),P=r(92),V=r(56),k=r(120),l=r(14);class T{constructor(Ye){this.id=Ye.id,this.precondition=Ye.precondition,this._kbOpts=Ye.kbOpts,this._menuOpts=Ye.menuOpts,this._description=Ye.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){let Ye=this._kbOpts.kbExpr;this.precondition&&(Ye=Ye?S.a.and(Ye,this.precondition):this.precondition),P.a.registerCommandAndKeybindingRule({id:this.id,handler:(ht,fe)=>this.runCommand(ht,fe),weight:this._kbOpts.weight,args:this._kbOpts.args,when:Ye,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else C.a.registerCommand({id:this.id,handler:(Ye,ht)=>this.runCommand(Ye,ht),description:this._description})}_registerMenuItem(Ye){y.d.appendMenuItem(Ye.menuId,{group:Ye.group,command:{id:this.id,title:Ye.title,icon:Ye.icon},when:Ye.when,order:Ye.order})}}class N extends T{constructor(){super(...arguments),this._implementations=[]}addImplementation(Ye,ht){return this._implementations.push([Ye,ht]),this._implementations.sort((fe,$)=>$[0]-fe[0]),{dispose:()=>{for(let fe=0;fe<this._implementations.length;fe++)if(this._implementations[fe][1]===ht)return void this._implementations.splice(fe,1)}}}runCommand(Ye,ht){for(let fe of this._implementations)if(fe[1](Ye,ht))return}}class b extends T{constructor(Ye,ht){super(ht),this.command=Ye}runCommand(Ye,ht){return this.command.runCommand(Ye,ht)}}class g extends T{static bindToContribution(Ye){return class extends g{constructor(ht){super(ht),this._callback=ht.handler}runEditorCommand(ht,fe,$){Ye(fe)&&this._callback(Ye(fe),$)}}}runCommand(Ye,ht){let fe=Ye.get(E.a),$=fe.getFocusedCodeEditor()||fe.getActiveCodeEditor();if($)return $.invokeWithinContext(G=>{if(G.get(S.b).contextMatchesRules(Object(l.n)(this.precondition)))return this.runEditorCommand(G,$,ht)})}}class j extends g{constructor(Ye){super(j.convertOptions(Ye)),this.label=Ye.label,this.alias=Ye.alias}static convertOptions(Ye){let ht;function fe($){return $.menuId||($.menuId=y.b.EditorContext),$.title||($.title=Ye.label),$.when=S.a.and(Ye.precondition,$.when),$}return ht=Array.isArray(Ye.menuOpts)?Ye.menuOpts:Ye.menuOpts?[Ye.menuOpts]:[],Array.isArray(Ye.contextMenuOpts)?ht.push(...Ye.contextMenuOpts.map(fe)):Ye.contextMenuOpts&&ht.push(fe(Ye.contextMenuOpts)),Ye.menuOpts=ht,Ye}runEditorCommand(Ye,ht,fe){return this.reportTelemetry(Ye,ht),this.run(Ye,ht,fe||{})}reportTelemetry(Ye,ht){Ye.get(k.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class ie extends j{constructor(Ye){super(Ye),this._implementations=[]}runEditorCommand(Ye,ht,fe){this.reportTelemetry(Ye,ht);for(let $ of this._implementations)if($[1](Ye,fe))return;return this.run(Ye,ht,fe||{})}}function U(ct,Ye){C.a.registerCommand(ct,(ht,fe)=>Ye(ht,fe||{}))}function q(ct,Ye){U(ct,function(ht,fe){let{resource:$,position:G}=fe;if(!($ instanceof H.a))throw Object(O.b)("resource");if(!ge.a.isIPosition(G))throw Object(O.b)("position");let z=ht.get(W.a).getModel($);if(z){let J=ge.a.lift(G);return Ye(z,J,fe)}return ht.get(Q.a).createModelReference($).then(J=>new Promise((Se,A)=>{try{Se(Ye(J.object.textEditorModel,ge.a.lift(G),fe))}catch(ee){A(ee)}}).finally(()=>{J.dispose()}))})}function B(ct,Ye){C.a.registerCommand(ct,function(ht,...fe){let[$,G]=fe;Object(l.b)(H.a.isUri($)),Object(l.b)(ge.a.isIPosition(G));let z=ht.get(W.a).getModel($);if(z){let J=ge.a.lift(G);return Ye(z,J,...fe.slice(2))}return ht.get(Q.a).createModelReference($).then(J=>new Promise((Se,A)=>{try{Se(Ye(J.object.textEditorModel,ge.a.lift(G),fe.slice(2)))}catch(ee){A(ee)}}).finally(()=>{J.dispose()}))})}function se(ct,Ye){C.a.registerCommand(ct,function(ht,...fe){let[$]=fe;Object(l.b)(H.a.isUri($));let G=ht.get(W.a).getModel($);return G?Ye(G,...fe.slice(1)):ht.get(Q.a).createModelReference($).then(z=>new Promise((J,Se)=>{try{J(Ye(z.object.textEditorModel,fe.slice(1)))}catch(A){Se(A)}}).finally(()=>{z.dispose()}))})}function ke(ct){return he.INSTANCE.registerEditorCommand(ct),ct}function xe(ct){let Ye=new ct;return he.INSTANCE.registerEditorAction(Ye),Ye}function Y(ct){return he.INSTANCE.registerEditorAction(ct),ct}function Z(ct){he.INSTANCE.registerEditorAction(ct)}function te(ct,Ye){he.INSTANCE.registerEditorContribution(ct,Ye)}(function(ct){ct.getEditorCommand=function(Ye){return he.INSTANCE.getEditorCommand(Ye)},ct.getEditorActions=function(){return he.INSTANCE.getEditorActions()},ct.getEditorContributions=function(){return he.INSTANCE.getEditorContributions()},ct.getSomeEditorContributions=function(Ye){return he.INSTANCE.getEditorContributions().filter(ht=>Ye.indexOf(ht.id)>=0)},ct.getDiffEditorContributions=function(){return he.INSTANCE.getDiffEditorContributions()}})(h||(h={}));class he{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(Ye,ht){this.editorContributions.push({id:Ye,ctor:ht})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(Ye){Ye.register(),this.editorActions.push(Ye)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(Ye){Ye.register(),this.editorCommands[Ye.id]=Ye}getEditorCommand(Ye){return this.editorCommands[Ye]||null}}function Ce(ct){return ct.register(),ct}he.INSTANCE=new he,V.a.add("editor.contributions",he.INSTANCE);let Ae=Ce(new N({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:y.b.MenubarEditMenu,group:"1_do",title:f.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:y.b.CommandPalette,group:"",title:f.a("undo","Undo"),order:1}]}));Ce(new b(Ae,{id:"default:undo",precondition:void 0}));let L=Ce(new N({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:y.b.MenubarEditMenu,group:"1_do",title:f.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:y.b.CommandPalette,group:"",title:f.a("redo","Redo"),order:1}]}));Ce(new b(L,{id:"default:redo",precondition:void 0}));let nt=Ce(new N({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:y.b.MenubarSelectionMenu,group:"1_basic",title:f.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:y.b.CommandPalette,group:"",title:f.a("selectAll","Select All"),order:1}]}))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return W}),r.d(w,"gc",function(){return y}),r.d(w,"ab",function(){return C}),r.d(w,"Y",function(){return S}),r.d(w,"bb",function(){return P}),r.d(w,"Z",function(){return V}),r.d(w,"h",function(){return k}),r.d(w,"b",function(){return l}),r.d(w,"rc",function(){return T}),r.d(w,"qc",function(){return N}),r.d(w,"uc",function(){return b}),r.d(w,"fb",function(){return g}),r.d(w,"hb",function(){return j}),r.d(w,"gb",function(){return ie}),r.d(w,"db",function(){return U}),r.d(w,"cb",function(){return q}),r.d(w,"eb",function(){return B}),r.d(w,"lb",function(){return se}),r.d(w,"nb",function(){return ke}),r.d(w,"mb",function(){return xe}),r.d(w,"ob",function(){return Y}),r.d(w,"qb",function(){return Z}),r.d(w,"pb",function(){return te}),r.d(w,"ib",function(){return he}),r.d(w,"kb",function(){return Ce}),r.d(w,"jb",function(){return Ae}),r.d(w,"f",function(){return ct}),r.d(w,"e",function(){return Ye}),r.d(w,"g",function(){return ht}),r.d(w,"c",function(){return fe}),r.d(w,"d",function(){return $}),r.d(w,"ic",function(){return G}),r.d(w,"kc",function(){return z}),r.d(w,"lc",function(){return J}),r.d(w,"jc",function(){return Se}),r.d(w,"cc",function(){return A}),r.d(w,"u",function(){return ee}),r.d(w,"t",function(){return de}),r.d(w,"T",function(){return De}),r.d(w,"S",function(){return $e}),r.d(w,"L",function(){return pt}),r.d(w,"K",function(){return it}),r.d(w,"D",function(){return At}),r.d(w,"C",function(){return Nt}),r.d(w,"s",function(){return _i}),r.d(w,"B",function(){return wt}),r.d(w,"U",function(){return Ni}),r.d(w,"W",function(){return pi}),r.d(w,"V",function(){return et}),r.d(w,"X",function(){return Wt}),r.d(w,"dc",function(){return Li}),r.d(w,"ec",function(){return Ii}),r.d(w,"fc",function(){return Ai}),r.d(w,"Yb",function(){return Zi}),r.d(w,"Xb",function(){return Bi}),r.d(w,"O",function(){return Lt}),r.d(w,"P",function(){return Oi}),r.d(w,"J",function(){return gt}),r.d(w,"Q",function(){return vi}),r.d(w,"R",function(){return Rt}),r.d(w,"v",function(){return vt}),r.d(w,"x",function(){return Ue}),r.d(w,"z",function(){return ut}),r.d(w,"w",function(){return ze}),r.d(w,"y",function(){return st}),r.d(w,"A",function(){return _t}),r.d(w,"H",function(){return ri}),r.d(w,"E",function(){return li}),r.d(w,"G",function(){return gi}),r.d(w,"F",function(){return ki}),r.d(w,"I",function(){return Ri}),r.d(w,"r",function(){return $i}),r.d(w,"N",function(){return Hi}),r.d(w,"M",function(){return yi}),r.d(w,"j",function(){return kt}),r.d(w,"k",function(){return Et}),r.d(w,"n",function(){return si}),r.d(w,"p",function(){return Si}),r.d(w,"o",function(){return Pi}),r.d(w,"q",function(){return Wi}),r.d(w,"l",function(){return xn}),r.d(w,"m",function(){return un}),r.d(w,"xb",function(){return bn}),r.d(w,"yb",function(){return Fn}),r.d(w,"rb",function(){return Mn}),r.d(w,"sb",function(){return Nn}),r.d(w,"Db",function(){return Hn}),r.d(w,"Eb",function(){return Jn}),r.d(w,"Cb",function(){return br}),r.d(w,"Ab",function(){return pn}),r.d(w,"Bb",function(){return Gn}),r.d(w,"tb",function(){return rn}),r.d(w,"zb",function(){return dr}),r.d(w,"ub",function(){return Dn}),r.d(w,"wb",function(){return On}),r.d(w,"vb",function(){return qt}),r.d(w,"tc",function(){return I}),r.d(w,"Gb",function(){return ne}),r.d(w,"Hb",function(){return _e}),r.d(w,"Fb",function(){return Fe}),r.d(w,"Kb",function(){return Xe}),r.d(w,"Ib",function(){return rt}),r.d(w,"Jb",function(){return Mt}),r.d(w,"Lb",function(){return Dt}),r.d(w,"oc",function(){return Tt}),r.d(w,"pc",function(){return Ht}),r.d(w,"mc",function(){return jt}),r.d(w,"nc",function(){return Kt}),r.d(w,"Vb",function(){return wi}),r.d(w,"Wb",function(){return Ti}),r.d(w,"Ob",function(){return ft}),r.d(w,"Pb",function(){return X}),r.d(w,"Nb",function(){return ae}),r.d(w,"Tb",function(){return Ge}),r.d(w,"Mb",function(){return lt}),r.d(w,"Rb",function(){return Ot}),r.d(w,"Sb",function(){return Gt}),r.d(w,"Qb",function(){return ti}),r.d(w,"Zb",function(){return ye}),r.d(w,"bc",function(){return le}),r.d(w,"ac",function(){return ue}),r.d(w,"i",function(){return qe}),r.d(w,"sc",function(){return tt}),r.d(w,"Ub",function(){return ot}),r.d(w,"hc",function(){return Jt});var h=r(56),f=r(15),O=r(6),H=r(0),E=r(188),ge=r(20);let W={ColorContribution:"base.contributions.colors"},Q=new class{constructor(){this._onDidChangeSchema=new O.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(ai,fi,ui,Te=!1,Ee){let ve={id:ai,description:ui,defaults:fi,needsTransparency:Te,deprecationMessage:Ee};this.colorsById[ai]=ve;let Re={type:"string",description:ui,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Ee&&(Re.deprecationMessage=Ee),this.colorSchema.properties[ai]=Re,this.colorReferenceSchema.enum.push(ai),this.colorReferenceSchema.enumDescriptions.push(ui),this._onDidChangeSchema.fire(),ai}resolveDefaultColor(ai,fi){let ui=this.colorsById[ai];if(ui&&ui.defaults)return Jt(ui.defaults[fi.type],fi)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((ai,fi)=>{let ui=ai.indexOf(".")===-1?0:1,Te=fi.indexOf(".")===-1?0:1;return ui!==Te?ui-Te:ai.localeCompare(fi)}).map(ai=>`- \`${ai}\`: ${this.colorsById[ai].description}`).join(` +`)}};function y(ai,fi,ui,Te,Ee){return Q.registerColor(ai,fi,ui,Te,Ee)}h.a.add(W.ColorContribution,Q);let C=y("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},H.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=y("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},H.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),P=y("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},H.a("iconForeground","The default color for icons in the workbench.")),V=y("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},H.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),k=y("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},H.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),l=y("contrastActiveBorder",{light:null,dark:null,hc:V},H.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=y("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},H.a("textLinkForeground","Foreground color for links in text.")),N=y("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:f.a.black},H.a("textCodeBlockBackground","Background color for code blocks in text.")),b=y("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},H.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),g=y("input.background",{dark:"#3C3C3C",light:f.a.white,hc:f.a.black},H.a("inputBoxBackground","Input box background.")),j=y("input.foreground",{dark:C,light:C,hc:C},H.a("inputBoxForeground","Input box foreground.")),ie=y("input.border",{dark:null,light:null,hc:k},H.a("inputBoxBorder","Input box border.")),U=y("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:k},H.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),q=y("inputOption.activeBackground",{dark:tt(V,.4),light:tt(V,.2),hc:f.a.transparent},H.a("inputOption.activeBackground","Background color of activated options in input fields.")),B=y("inputOption.activeForeground",{dark:f.a.white,light:f.a.black,hc:null},H.a("inputOption.activeForeground","Foreground color of activated options in input fields.")),se=y("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:f.a.black},H.a("inputValidationInfoBackground","Input validation background color for information severity.")),ke=y("inputValidation.infoForeground",{dark:null,light:null,hc:null},H.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),xe=y("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:k},H.a("inputValidationInfoBorder","Input validation border color for information severity.")),Y=y("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:f.a.black},H.a("inputValidationWarningBackground","Input validation background color for warning severity.")),Z=y("inputValidation.warningForeground",{dark:null,light:null,hc:null},H.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),te=y("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:k},H.a("inputValidationWarningBorder","Input validation border color for warning severity.")),he=y("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:f.a.black},H.a("inputValidationErrorBackground","Input validation background color for error severity.")),Ce=y("inputValidation.errorForeground",{dark:null,light:null,hc:null},H.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ae=y("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:k},H.a("inputValidationErrorBorder","Input validation border color for error severity.")),L=y("dropdown.background",{dark:"#3C3C3C",light:f.a.white,hc:f.a.black},H.a("dropdownBackground","Dropdown background.")),nt=y("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:f.a.white},H.a("dropdownForeground","Dropdown foreground.")),ct=y("button.foreground",{dark:f.a.white,light:f.a.white,hc:f.a.white},H.a("buttonForeground","Button foreground color.")),Ye=y("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},H.a("buttonBackground","Button background color.")),ht=y("button.hoverBackground",{dark:Ze(Ye,.2),light:qe(Ye,.2),hc:null},H.a("buttonHoverBackground","Button background color when hovering.")),fe=y("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:f.a.black},H.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),$=y("badge.foreground",{dark:f.a.white,light:"#333",hc:f.a.white},H.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),G=y("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},H.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),z=y("scrollbarSlider.background",{dark:f.a.fromHex("#797979").transparent(.4),light:f.a.fromHex("#646464").transparent(.4),hc:tt(k,.6)},H.a("scrollbarSliderBackground","Scrollbar slider background color.")),J=y("scrollbarSlider.hoverBackground",{dark:f.a.fromHex("#646464").transparent(.7),light:f.a.fromHex("#646464").transparent(.7),hc:tt(k,.8)},H.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Se=y("scrollbarSlider.activeBackground",{dark:f.a.fromHex("#BFBFBF").transparent(.4),light:f.a.fromHex("#000000").transparent(.6),hc:k},H.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),A=y("progressBar.background",{dark:f.a.fromHex("#0E70C0"),light:f.a.fromHex("#0E70C0"),hc:k},H.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ee=y("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},H.a("editorError.foreground","Foreground color of error squigglies in the editor.")),de=y("editorError.border",{dark:null,light:null,hc:f.a.fromHex("#E47777").transparent(.8)},H.a("errorBorder","Border color of error boxes in the editor.")),De=y("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},H.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$e=y("editorWarning.border",{dark:null,light:null,hc:f.a.fromHex("#FFCC00").transparent(.8)},H.a("warningBorder","Border color of warning boxes in the editor.")),pt=y("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},H.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),it=y("editorInfo.border",{dark:null,light:null,hc:f.a.fromHex("#75BEFF").transparent(.8)},H.a("infoBorder","Border color of info boxes in the editor.")),At=y("editorHint.foreground",{dark:f.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},H.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Nt=y("editorHint.border",{dark:null,light:null,hc:f.a.fromHex("#eeeeee").transparent(.8)},H.a("hintBorder","Border color of hint boxes in the editor.")),_i=y("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:f.a.black},H.a("editorBackground","Editor background color.")),wt=y("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:f.a.white},H.a("editorForeground","Editor default foreground color.")),Ni=y("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},H.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),pi=y("editorWidget.foreground",{dark:C,light:C,hc:C},H.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),et=y("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:k},H.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Wt=y("editorWidget.resizeBorder",{light:null,dark:null,hc:null},H.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Li=y("quickInput.background",{dark:Ni,light:Ni,hc:Ni},H.a("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Ii=y("quickInput.foreground",{dark:pi,light:pi,hc:pi},H.a("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Ai=y("quickInputTitle.background",{dark:new f.a(new f.c(255,255,255,.105)),light:new f.a(new f.c(0,0,0,.06)),hc:"#000000"},H.a("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Zi=y("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:f.a.white},H.a("pickerGroupForeground","Quick picker color for grouping labels.")),Bi=y("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:f.a.white},H.a("pickerGroupBorder","Quick picker color for grouping borders.")),Lt=y("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},H.a("editorSelectionBackground","Color of the editor selection.")),Oi=y("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},H.a("editorSelectionForeground","Color of the selected text for high contrast.")),gt=y("editor.inactiveSelectionBackground",{light:tt(Lt,.5),dark:tt(Lt,.5),hc:tt(Lt,.5)},H.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),vi=y("editor.selectionHighlightBackground",{light:zt(Lt,_i,.3,.6),dark:zt(Lt,_i,.3,.6),hc:null},H.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=y("editor.selectionHighlightBorder",{light:null,dark:null,hc:l},H.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),vt=y("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},H.a("editorFindMatch","Color of the current search match.")),Ue=y("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},H.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),ut=y("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},H.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ze=y("editor.findMatchBorder",{light:null,dark:null,hc:l},H.a("editorFindMatchBorder","Border color of the current search match.")),st=y("editor.findMatchHighlightBorder",{light:null,dark:null,hc:l},H.a("findMatchHighlightBorder","Border color of the other search matches.")),_t=y("editor.findRangeHighlightBorder",{dark:null,light:null,hc:tt(l,.4)},H.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ri=y("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},H.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),li=y("editorHoverWidget.background",{light:Ni,dark:Ni,hc:Ni},H.a("hoverBackground","Background color of the editor hover.")),gi=y("editorHoverWidget.foreground",{light:pi,dark:pi,hc:pi},H.a("hoverForeground","Foreground color of the editor hover.")),ki=y("editorHoverWidget.border",{light:et,dark:et,hc:et},H.a("hoverBorder","Border color of the editor hover.")),Ri=y("editorHoverWidget.statusBarBackground",{dark:Ze(li,.2),light:qe(li,.05),hc:Ni},H.a("statusBarBackground","Background color of the editor hover status bar.")),$i=y("editorLink.activeForeground",{dark:"#4E94CE",light:f.a.blue,hc:f.a.cyan},H.a("activeLinkForeground","Color of active links.")),Hi=y("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},H.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),yi=y("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},H.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),kt=new f.a(new f.c(155,185,85,.2)),Et=new f.a(new f.c(255,0,0,.2)),si=y("diffEditor.insertedTextBackground",{dark:kt,light:kt,hc:null},H.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Si=y("diffEditor.removedTextBackground",{dark:Et,light:Et,hc:null},H.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Pi=y("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},H.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Wi=y("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},H.a("diffEditorRemovedOutline","Outline color for text that got removed.")),xn=y("diffEditor.border",{dark:null,light:null,hc:k},H.a("diffEditorBorder","Border color between the two text editors.")),un=y("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},H.a("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),bn=y("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},H.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Fn=y("list.focusForeground",{dark:null,light:null,hc:null},H.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Mn=y("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},H.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Nn=y("list.activeSelectionForeground",{dark:f.a.white,light:f.a.white,hc:null},H.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Hn=y("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},H.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Jn=y("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},H.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),br=y("list.inactiveFocusBackground",{dark:null,light:null,hc:null},H.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),pn=y("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},H.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Gn=y("list.hoverForeground",{dark:null,light:null,hc:null},H.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),rn=y("list.dropBackground",{dark:bn,light:bn,hc:null},H.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dr=y("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:V},H.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Dn=y("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:f.a.black},H.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),On=y("listFilterWidget.outline",{dark:f.a.transparent,light:f.a.transparent,hc:"#f38518"},H.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),qt=y("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:k},H.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),I=y("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},H.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ne=y("menu.border",{dark:null,light:null,hc:k},H.a("menuBorder","Border color of menus.")),_e=y("menu.foreground",{dark:nt,light:C,hc:nt},H.a("menuForeground","Foreground color of menu items.")),Fe=y("menu.background",{dark:L,light:L,hc:L},H.a("menuBackground","Background color of menu items.")),Xe=y("menu.selectionForeground",{dark:Nn,light:Nn,hc:Nn},H.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),rt=y("menu.selectionBackground",{dark:Mn,light:Mn,hc:Mn},H.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Mt=y("menu.selectionBorder",{dark:null,light:null,hc:l},H.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Dt=y("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:k},H.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Tt=y("editor.snippetTabstopHighlightBackground",{dark:new f.a(new f.c(124,124,124,.3)),light:new f.a(new f.c(10,50,100,.2)),hc:new f.a(new f.c(124,124,124,.3))},H.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Ht=y("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},H.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),jt=y("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},H.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Kt=y("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new f.a(new f.c(10,50,100,.5)),hc:"#525252"},H.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),wi=y("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},H.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ti=y("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},H.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ft=y("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},H.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),X=y("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},H.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ae=y("minimap.errorHighlight",{dark:new f.a(new f.c(255,18,18,.7)),light:new f.a(new f.c(255,18,18,.7)),hc:new f.a(new f.c(255,50,50,1))},H.a("minimapError","Minimap marker color for errors.")),Ge=y("minimap.warningHighlight",{dark:De,light:De,hc:$e},H.a("overviewRuleWarning","Minimap marker color for warnings.")),lt=y("minimap.background",{dark:null,light:null,hc:null},H.a("minimapBackground","Minimap background color.")),Ot=y("minimapSlider.background",{light:tt(z,.5),dark:tt(z,.5),hc:tt(z,.5)},H.a("minimapSliderBackground","Minimap slider background color.")),Gt=y("minimapSlider.hoverBackground",{light:tt(J,.5),dark:tt(J,.5),hc:tt(J,.5)},H.a("minimapSliderHoverBackground","Minimap slider background color when hovering.")),ti=y("minimapSlider.activeBackground",{light:tt(Se,.5),dark:tt(Se,.5),hc:tt(Se,.5)},H.a("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),ye=y("problemsErrorIcon.foreground",{dark:ee,light:ee,hc:ee},H.a("problemsErrorIconForeground","The color used for the problems error icon.")),le=y("problemsWarningIcon.foreground",{dark:De,light:De,hc:De},H.a("problemsWarningIconForeground","The color used for the problems warning icon.")),ue=y("problemsInfoIcon.foreground",{dark:pt,light:pt,hc:pt},H.a("problemsInfoIconForeground","The color used for the problems info icon."));function qe(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.darken(fi)}}function Ze(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.lighten(fi)}}function tt(ai,fi){return ui=>{let Te=Jt(ai,ui);if(Te)return Te.transparent(fi)}}function ot(...ai){return fi=>{for(let ui of ai){let Te=Jt(ui,fi);if(Te)return Te}}}function zt(ai,fi,ui,Te){return Ee=>{let ve=Jt(ai,Ee);if(ve){let Re=Jt(fi,Ee);return Re?ve.isDarkerThan(Re)?f.a.getLighterColor(ve,Re,ui).transparent(Te):f.a.getDarkerColor(ve,Re,ui).transparent(Te):ve.transparent(ui*Te)}}}function Jt(ai,fi){if(ai!==null)return typeof ai=="string"?ai[0]==="#"?f.a.fromHex(ai):fi.getColor(ai):ai instanceof f.a?ai:typeof ai=="function"?ai(fi):void 0}let xi=h.a.as(E.a.JSONContribution);xi.registerSchema("vscode://schemas/workbench-colors",Q.getColorSchema());let Ei=new ge.d(()=>xi.notifySchemaChanged("vscode://schemas/workbench-colors"),200);Q.onDidChangeSchema(()=>{Ei.isScheduled()||Ei.schedule()})},function(Ie,w,r){"use strict";r.d(w,"b",function(){return h}),r.d(w,"a",function(){return E}),r.d(w,"d",function(){return ge}),r.d(w,"c",function(){return W}),r.d(w,"e",function(){return Q});var h,f=r(13),O=r(2),H=r(53);(function(y){function C(g){return(j,ie=null,U)=>{let q,B=!1;return q=g(se=>{if(!B)return q?q.dispose():B=!0,j.call(ie,se)},null,U),B&&q.dispose(),q}}function S(g,j){return l((ie,U=null,q)=>g(B=>ie.call(U,j(B)),null,q))}function P(g,j){return l((ie,U=null,q)=>g(B=>{j(B),ie.call(U,B)},null,q))}function V(g,j){return l((ie,U=null,q)=>g(B=>j(B)&&ie.call(U,B),null,q))}function k(g,j,ie){let U=ie;return S(g,q=>(U=j(U,q),U))}function l(g){let j,ie=new E({onFirstListenerAdd(){j=g(ie.fire,ie)},onLastListenerRemove(){j.dispose()}});return ie.event}function T(g,j,ie=100,U=!1,q){let B,se,ke,xe=0,Y=new E({leakWarningThreshold:q,onFirstListenerAdd(){B=g(Z=>{xe++,se=j(se,Z),U&&!ke&&(Y.fire(se),se=void 0),clearTimeout(ke),ke=setTimeout(()=>{let te=se;se=void 0,ke=void 0,(!U||xe>1)&&Y.fire(te),xe=0},ie)})},onLastListenerRemove(){B.dispose()}});return Y.event}function N(g){let j,ie=!0;return V(g,U=>{let q=ie||U!==j;return ie=!1,j=U,q})}y.None=()=>O.a.None,y.once=C,y.map=S,y.forEach=P,y.filter=V,y.signal=function(g){return g},y.any=function(...g){return(j,ie=null,U)=>Object(O.e)(...g.map(q=>q(B=>j.call(ie,B),null,U)))},y.reduce=k,y.snapshot=l,y.debounce=T,y.stopwatch=function(g){let j=new Date().getTime();return S(C(g),ie=>new Date().getTime()-j)},y.latch=N,y.buffer=function(g,j=!1,ie=[]){let U=ie.slice(),q=g(ke=>{U?U.push(ke):se.fire(ke)}),B=()=>{U&&U.forEach(ke=>se.fire(ke)),U=null},se=new E({onFirstListenerAdd(){q||(q=g(ke=>se.fire(ke)))},onFirstListenerDidAdd(){U&&(j?setTimeout(B):B())},onLastListenerRemove(){q&&q.dispose(),q=null}});return se.event};class b{constructor(j){this.event=j}map(j){return new b(S(this.event,j))}forEach(j){return new b(P(this.event,j))}filter(j){return new b(V(this.event,j))}reduce(j,ie){return new b(k(this.event,j,ie))}latch(){return new b(N(this.event))}debounce(j,ie=100,U=!1,q){return new b(T(this.event,j,ie,U,q))}on(j,ie,U){return this.event(j,ie,U)}once(j,ie,U){return C(this.event)(j,ie,U)}}y.chain=function(g){return new b(g)},y.fromNodeEventEmitter=function(g,j,ie=U=>U){let U=(...B)=>q.fire(ie(...B)),q=new E({onFirstListenerAdd:()=>g.on(j,U),onLastListenerRemove:()=>g.removeListener(j,U)});return q.event},y.fromDOMEventEmitter=function(g,j,ie=U=>U){let U=(...B)=>q.fire(ie(...B)),q=new E({onFirstListenerAdd:()=>g.addEventListener(j,U),onLastListenerRemove:()=>g.removeEventListener(j,U)});return q.event},y.fromPromise=function(g){let j=new E,ie=!1;return g.then(void 0,()=>null).then(()=>{ie?j.fire(void 0):setTimeout(()=>j.fire(void 0),0)}),ie=!0,j.event},y.toPromise=function(g){return new Promise(j=>C(g)(j))}})(h||(h={}));class E{constructor(C){this._disposed=!1,this._options=C,this._leakageMon=void 0}get event(){return this._event||(this._event=(C,S,P)=>{this._listeners||(this._listeners=new H.a);let V=this._listeners.isEmpty();V&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let k=this._listeners.push(S?[C,S]:C),l,T;return V&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,C,S),this._leakageMon&&(l=this._leakageMon.check(this._listeners.size)),T={dispose:()=>{l&&l(),T.dispose=E._noop,!this._disposed&&(k(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}},P instanceof O.b?P.add(T):Array.isArray(P)&&P.push(T),T}),this._event}fire(C){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new H.a);for(let S of this._listeners)this._deliveryQueue.push([S,C]);for(;this._deliveryQueue.size>0;){let[S,P]=this._deliveryQueue.shift();try{typeof S=="function"?S.call(void 0,P):S[0].call(S[1],P)}catch(V){Object(f.e)(V)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}E._noop=function(){};class ge extends E{constructor(C){super(C),this._isPaused=0,this._eventQueue=new H.a,this._mergeFn=C&&C.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){let C=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(C))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(C){this._listeners&&(this._isPaused!==0?this._eventQueue.push(C):super.fire(C))}}class W{constructor(){this.buffers=[]}wrapEvent(C){return(S,P,V)=>C(k=>{let l=this.buffers[this.buffers.length-1];l?l.push(()=>S.call(P,k)):S.call(P,k)},void 0,V)}bufferEvents(C){let S=[];this.buffers.push(S);let P=C();return this.buffers.pop(),S.forEach(V=>V()),P}}class Q{constructor(){this.listening=!1,this.inputEvent=h.None,this.inputEventListener=O.a.None,this.emitter=new E({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(C){this.inputEvent=C,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=C(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h});var h,f=r(10);(function(O){O.editorSimpleInput=new f.c("editorSimpleInput",!1),O.editorTextFocus=new f.c("editorTextFocus",!1),O.focus=new f.c("editorFocus",!1),O.textInputFocus=new f.c("textInputFocus",!1),O.readOnly=new f.c("editorReadonly",!1),O.columnSelection=new f.c("editorColumnSelection",!1),O.writable=O.readOnly.toNegated(),O.hasNonEmptySelection=new f.c("editorHasSelection",!1),O.hasOnlyEmptySelection=O.hasNonEmptySelection.toNegated(),O.hasMultipleSelections=new f.c("editorHasMultipleSelections",!1),O.hasSingleSelection=O.hasMultipleSelections.toNegated(),O.tabMovesFocus=new f.c("editorTabMovesFocus",!1),O.tabDoesNotMoveFocus=O.tabMovesFocus.toNegated(),O.isInWalkThroughSnippet=new f.c("isInEmbeddedEditor",!1),O.canUndo=new f.c("canUndo",!1),O.canRedo=new f.c("canRedo",!1),O.hoverVisible=new f.c("editorHoverVisible",!1),O.inCompositeEditor=new f.c("inCompositeEditor",void 0),O.notInCompositeEditor=O.inCompositeEditor.toNegated(),O.languageId=new f.c("editorLangId",""),O.hasCompletionItemProvider=new f.c("editorHasCompletionItemProvider",!1),O.hasCodeActionsProvider=new f.c("editorHasCodeActionsProvider",!1),O.hasCodeLensProvider=new f.c("editorHasCodeLensProvider",!1),O.hasDefinitionProvider=new f.c("editorHasDefinitionProvider",!1),O.hasDeclarationProvider=new f.c("editorHasDeclarationProvider",!1),O.hasImplementationProvider=new f.c("editorHasImplementationProvider",!1),O.hasTypeDefinitionProvider=new f.c("editorHasTypeDefinitionProvider",!1),O.hasHoverProvider=new f.c("editorHasHoverProvider",!1),O.hasDocumentHighlightProvider=new f.c("editorHasDocumentHighlightProvider",!1),O.hasDocumentSymbolProvider=new f.c("editorHasDocumentSymbolProvider",!1),O.hasReferenceProvider=new f.c("editorHasReferenceProvider",!1),O.hasRenameProvider=new f.c("editorHasRenameProvider",!1),O.hasSignatureHelpProvider=new f.c("editorHasSignatureHelpProvider",!1),O.hasDocumentFormattingProvider=new f.c("editorHasDocumentFormattingProvider",!1),O.hasDocumentSelectionFormattingProvider=new f.c("editorHasDocumentSelectionFormattingProvider",!1),O.hasMultipleDocumentFormattingProvider=new f.c("editorHasMultipleDocumentFormattingProvider",!1),O.hasMultipleDocumentSelectionFormattingProvider=new f.c("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(h||(h={}))},function(Ie,w,r){"use strict";function h(et){return!et||typeof et!="string"||et.trim().length===0}function f(et,Wt,Li="0"){let Ii=""+et,Ai=[Ii];for(let Zi=Ii.length;Zi<Wt;Zi++)Ai.push(Li);return Ai.reverse().join("")}r.d(w,"D",function(){return h}),r.d(w,"M",function(){return f}),r.d(w,"x",function(){return H}),r.d(w,"u",function(){return E}),r.d(w,"v",function(){return ge}),r.d(w,"W",function(){return W}),r.d(w,"K",function(){return Q}),r.d(w,"Q",function(){return y}),r.d(w,"p",function(){return C}),r.d(w,"V",function(){return S}),r.d(w,"S",function(){return P}),r.d(w,"s",function(){return V}),r.d(w,"q",function(){return k}),r.d(w,"P",function(){return l}),r.d(w,"O",function(){return T}),r.d(w,"w",function(){return N}),r.d(w,"z",function(){return b}),r.d(w,"J",function(){return g}),r.d(w,"f",function(){return j}),r.d(w,"h",function(){return ie}),r.d(w,"g",function(){return U}),r.d(w,"i",function(){return q}),r.d(w,"H",function(){return B}),r.d(w,"I",function(){return se}),r.d(w,"t",function(){return xe}),r.d(w,"T",function(){return Z}),r.d(w,"d",function(){return te}),r.d(w,"e",function(){return he}),r.d(w,"F",function(){return Ce}),r.d(w,"G",function(){return Ae}),r.d(w,"j",function(){return L}),r.d(w,"A",function(){return nt}),r.d(w,"L",function(){return Ye}),r.d(w,"N",function(){return ht}),r.d(w,"r",function(){return fe}),r.d(w,"m",function(){return G}),r.d(w,"k",function(){return J}),r.d(w,"B",function(){return A}),r.d(w,"a",function(){return ee}),r.d(w,"n",function(){return de}),r.d(w,"l",function(){return De}),r.d(w,"E",function(){return $e}),r.d(w,"C",function(){return pt}),r.d(w,"b",function(){return it}),r.d(w,"U",function(){return At}),r.d(w,"o",function(){return Nt}),r.d(w,"R",function(){return _i}),r.d(w,"y",function(){return wt}),r.d(w,"c",function(){return Ni});let O=/{(\d+)}/g;function H(et,...Wt){return Wt.length===0?et:et.replace(O,function(Li,Ii){let Ai=parseInt(Ii,10);return isNaN(Ai)||Ai<0||Ai>=Wt.length?Li:Wt[Ai]})}function E(et){return et.replace(/[<>&]/g,function(Wt){switch(Wt){case"<":return"<";case">":return">";case"&":return"&";default:return Wt}})}function ge(et){return et.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(et,Wt=" "){return y(Q(et,Wt),Wt)}function Q(et,Wt){if(!et||!Wt)return et;let Li=Wt.length;if(Li===0||et.length===0)return et;let Ii=0;for(;et.indexOf(Wt,Ii)===Ii;)Ii+=Li;return et.substring(Ii)}function y(et,Wt){if(!et||!Wt)return et;let Li=Wt.length,Ii=et.length;if(Li===0||Ii===0)return et;let Ai=Ii,Zi=-1;for(;Zi=et.lastIndexOf(Wt,Ai-1),Zi!==-1&&Zi+Li===Ai;){if(Zi===0)return"";Ai=Zi}return et.substring(0,Ai)}function C(et){return et.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function S(et){return et.replace(/\*/g,"")}function P(et,Wt){if(et.length<Wt.length)return!1;if(et===Wt)return!0;for(let Li=0;Li<Wt.length;Li++)if(et[Li]!==Wt[Li])return!1;return!0}function V(et,Wt){let Li=et.length-Wt.length;return Li>0?et.indexOf(Wt,Li)===Li:Li===0&&et===Wt}function k(et,Wt,Li={}){if(!et)throw new Error("Cannot create regex from empty string");Wt||(et=ge(et)),Li.wholeWord&&(/\B/.test(et.charAt(0))||(et="\\b"+et),/\B/.test(et.charAt(et.length-1))||(et+="\\b"));let Ii="";return Li.global&&(Ii+="g"),Li.matchCase||(Ii+="i"),Li.multiline&&(Ii+="m"),Li.unicode&&(Ii+="u"),new RegExp(et,Ii)}function l(et){return et.source==="^"||et.source==="^$"||et.source==="$"||et.source==="^\\s*$"?!1:!(!et.exec("")||et.lastIndex!==0)}function T(et){return(et.global?"g":"")+(et.ignoreCase?"i":"")+(et.multiline?"m":"")+(et.unicode?"u":"")}function N(et){for(let Wt=0,Li=et.length;Wt<Li;Wt++){let Ii=et.charCodeAt(Wt);if(Ii!==32&&Ii!==9)return Wt}return-1}function b(et,Wt=0,Li=et.length){for(let Ii=Wt;Ii<Li;Ii++){let Ai=et.charCodeAt(Ii);if(Ai!==32&&Ai!==9)return et.substring(Wt,Ii)}return et.substring(Wt,Li)}function g(et,Wt=et.length-1){for(let Li=Wt;Li>=0;Li--){let Ii=et.charCodeAt(Li);if(Ii!==32&&Ii!==9)return Li}return-1}function j(et,Wt){return et<Wt?-1:et>Wt?1:0}function ie(et,Wt,Li=0,Ii=et.length,Ai=0,Zi=Wt.length){for(;Li<Ii&&Ai<Zi;Li++,Ai++){let Oi=et.charCodeAt(Li),gt=Wt.charCodeAt(Ai);if(Oi<gt)return-1;if(Oi>gt)return 1}let Bi=Ii-Li,Lt=Zi-Ai;return Bi<Lt?-1:Bi>Lt?1:0}function U(et,Wt){return q(et,Wt,0,et.length,0,Wt.length)}function q(et,Wt,Li=0,Ii=et.length,Ai=0,Zi=Wt.length){for(;Li<Ii&&Ai<Zi;Li++,Ai++){let Oi=et.charCodeAt(Li),gt=Wt.charCodeAt(Ai);if(Oi===gt)continue;let vi=Oi-gt;if((vi!==32||!se(gt))&&(vi!==-32||!se(Oi)))return B(Oi)&&B(gt)?vi:ie(et.toLowerCase(),Wt.toLowerCase(),Li,Ii,Ai,Zi)}let Bi=Ii-Li,Lt=Zi-Ai;return Bi<Lt?-1:Bi>Lt?1:0}function B(et){return et>=97&&et<=122}function se(et){return et>=65&&et<=90}function ke(et){return B(et)||se(et)}function xe(et,Wt){return et.length===Wt.length&&Y(et,Wt)}function Y(et,Wt,Li=et.length){for(let Ii=0;Ii<Li;Ii++){let Ai=et.charCodeAt(Ii),Zi=Wt.charCodeAt(Ii);if(Ai!==Zi){if(ke(Ai)&&ke(Zi)){let Bi=Math.abs(Ai-Zi);if(Bi!==0&&Bi!==32)return!1}else if(String.fromCharCode(Ai).toLowerCase()!==String.fromCharCode(Zi).toLowerCase())return!1}}return!0}function Z(et,Wt){let Li=Wt.length;return!(Wt.length>et.length)&&Y(et,Wt,Li)}function te(et,Wt){let Li,Ii=Math.min(et.length,Wt.length);for(Li=0;Li<Ii;Li++)if(et.charCodeAt(Li)!==Wt.charCodeAt(Li))return Li;return Ii}function he(et,Wt){let Li,Ii=Math.min(et.length,Wt.length),Ai=et.length-1,Zi=Wt.length-1;for(Li=0;Li<Ii;Li++)if(et.charCodeAt(Ai-Li)!==Wt.charCodeAt(Zi-Li))return Li;return Ii}function Ce(et){return 55296<=et&&et<=56319}function Ae(et){return 56320<=et&&et<=57343}function L(et,Wt){return Wt-56320+(et-55296<<10)+65536}function nt(et,Wt,Li){let Ii=et.charCodeAt(Li);if(Ce(Ii)&&Li+1<Wt){let Ai=et.charCodeAt(Li+1);if(Ae(Ai))return L(Ii,Ai)}return Ii}function ct(et,Wt){let Li=et.charCodeAt(Wt-1);if(Ae(Li)&&Wt>1){let Ii=et.charCodeAt(Wt-2);if(Ce(Ii))return L(Ii,Li)}return Li}function Ye(et,Wt){let Li=pi.getInstance(),Ii=Wt,Ai=et.length,Zi=nt(et,Ai,Wt);Wt+=Zi>=65536?2:1;let Bi=Li.getGraphemeBreakType(Zi);for(;Wt<Ai;){let Lt=nt(et,Ai,Wt),Oi=Li.getGraphemeBreakType(Lt);if(Ni(Bi,Oi))break;Wt+=Lt>=65536?2:1,Bi=Oi}return Wt-Ii}function ht(et,Wt){let Li=pi.getInstance(),Ii=Wt,Ai=ct(et,Wt);Wt-=Ai>=65536?2:1;let Zi=Li.getGraphemeBreakType(Ai);for(;Wt>0;){let Bi=ct(et,Wt),Lt=Li.getGraphemeBreakType(Bi);if(Ni(Lt,Zi))break;Wt-=Bi>=65536?2:1,Zi=Lt}return Ii-Wt}function fe(et){let Wt=et.byteLength,Li=[],Ii=0;for(;Ii<Wt;){let Ai=et[Ii],Zi;if(Zi=Ai>=240&&Ii+3<Wt?(7&et[Ii++])<<18>>>0|(63&et[Ii++])<<12>>>0|(63&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:Ai>=224&&Ii+2<Wt?(15&et[Ii++])<<12>>>0|(63&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:Ai>=192&&Ii+1<Wt?(31&et[Ii++])<<6>>>0|(63&et[Ii++])<<0>>>0:et[Ii++],Zi>=0&&Zi<=55295||Zi>=57344&&Zi<=65535)Li.push(String.fromCharCode(Zi));else if(Zi>=65536&&Zi<=1114111){let Bi=Zi-65536,Lt=55296+((1047552&Bi)>>>10),Oi=56320+((1023&Bi)>>>0);Li.push(String.fromCharCode(Lt)),Li.push(String.fromCharCode(Oi))}else Li.push(String.fromCharCode(65533))}return Li.join("")}let $=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(et){return $.test(et)}let z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function J(et){return z.test(et)}let Se=/^[\t\n\r\x20-\x7E]*$/;function A(et){return Se.test(et)}let ee=/[\u2028\u2029]/;function de(et){return ee.test(et)}function De(et){for(let Wt=0,Li=et.length;Wt<Li;Wt++)if($e(et.charCodeAt(Wt)))return!0;return!1}function $e(et){return(et=+et)>=11904&&et<=55215||et>=63744&&et<=64255||et>=65281&&et<=65374}function pt(et){return et>=127462&&et<=127487||et>=9728&&et<=10175||et>=127744&&et<=128591||et>=128640&&et<=128764||et>=128992&&et<=129003||et>=129280&&et<=129535||et>=129648&&et<=129651||et>=129656&&et<=129666||et>=129680&&et<=129685}let it=String.fromCharCode(65279);function At(et){return!!(et&&et.length>0&&et.charCodeAt(0)===65279)}function Nt(et,Wt=!1){return!!et&&(Wt&&(et=et.replace(/\\./g,"")),et.toLowerCase()!==et)}function _i(et){return(et%=52)<26?String.fromCharCode(97+et):String.fromCharCode(65+et-26)}function wt(et){return pi.getInstance().getGraphemeBreakType(et)}function Ni(et,Wt){return et===0?Wt!==5&&Wt!==7:(et!==2||Wt!==3)&&(et===4||et===2||et===3||Wt===4||Wt===2||Wt===3||(et!==8||Wt!==8&&Wt!==9&&Wt!==11&&Wt!==12)&&(et!==11&&et!==9||Wt!==9&&Wt!==10)&&(et!==12&&et!==10||Wt!==10)&&Wt!==5&&Wt!==13&&Wt!==7&&et!==1&&(et!==13||Wt!==14)&&(et!==6||Wt!==6))}class pi{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return pi._INSTANCE||(pi._INSTANCE=new pi),pi._INSTANCE}getGraphemeBreakType(Wt){if(Wt<32)return Wt===10?3:Wt===13?2:4;if(Wt<127)return 0;let Li=this._data,Ii=Li.length/3,Ai=1;for(;Ai<=Ii;)if(Wt<Li[3*Ai])Ai*=2;else{if(!(Wt>Li[3*Ai+1]))return Li[3*Ai+2];Ai=2*Ai+1}return 0}}pi._INSTANCE=null},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h});class h{constructor(O,H){this.lineNumber=O,this.column=H}with(O=this.lineNumber,H=this.column){return O===this.lineNumber&&H===this.column?this:new h(O,H)}delta(O=0,H=0){return this.with(this.lineNumber+O,this.column+H)}equals(O){return h.equals(this,O)}static equals(O,H){return!O&&!H||!!O&&!!H&&O.lineNumber===H.lineNumber&&O.column===H.column}isBefore(O){return h.isBefore(this,O)}static isBefore(O,H){return O.lineNumber<H.lineNumber||!(H.lineNumber<O.lineNumber)&&O.column<H.column}isBeforeOrEqual(O){return h.isBeforeOrEqual(this,O)}static isBeforeOrEqual(O,H){return O.lineNumber<H.lineNumber||!(H.lineNumber<O.lineNumber)&&O.column<=H.column}static compare(O,H){let E=0|O.lineNumber,ge=0|H.lineNumber;return E===ge?(0|O.column)-(0|H.column):E-ge}clone(){return new h(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(O){return new h(O.lineNumber,O.column)}static isIPosition(O){return O&&typeof O.lineNumber=="number"&&typeof O.column=="number"}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"c",function(){return j}),r.d(w,"b",function(){return ie}),r.d(w,"d",function(){return U});var h=r(8),f=r(18),O=r(11);let H=new Map;H.set("false",!1),H.set("true",!0),H.set("isMac",O.f),H.set("isLinux",O.d),H.set("isWindows",O.i),H.set("isWeb",O.h),H.set("isMacNative",O.f&&!O.h);let E=Object.prototype.hasOwnProperty;class ge{static has(B){return C.create(B)}static equals(B,se){return S.create(B,se)}static regex(B,se){return T.create(B,se)}static not(B){return l.create(B)}static and(...B){return b.create(B)}static or(...B){return g.create(B)}static deserialize(B,se=!1){if(B)return this._deserializeOrExpression(B,se)}static _deserializeOrExpression(B,se){let ke=B.split("||");return g.create(ke.map(xe=>this._deserializeAndExpression(xe,se)))}static _deserializeAndExpression(B,se){let ke=B.split("&&");return b.create(ke.map(xe=>this._deserializeOne(xe,se)))}static _deserializeOne(B,se){if((B=B.trim()).indexOf("!=")>=0){let ke=B.split("!=");return k.create(ke[0].trim(),this._deserializeValue(ke[1],se))}if(B.indexOf("==")>=0){let ke=B.split("==");return S.create(ke[0].trim(),this._deserializeValue(ke[1],se))}if(B.indexOf("=~")>=0){let ke=B.split("=~");return T.create(ke[0].trim(),this._deserializeRegexValue(ke[1],se))}if(B.indexOf(" in ")>=0){let ke=B.split(" in ");return P.create(ke[0].trim(),ke[1].trim())}return/^\!\s*/.test(B)?l.create(B.substr(1).trim()):C.create(B)}static _deserializeValue(B,se){if((B=B.trim())==="true")return!0;if(B==="false")return!1;let ke=/^'([^']*)'$/.exec(B);return ke?ke[1].trim():B}static _deserializeRegexValue(B,se){if(Object(h.D)(B)){if(se)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ke=B.indexOf("/"),xe=B.lastIndexOf("/");if(ke===xe||ke<0){if(se)throw new Error(`bad regexp-value '${B}', missing /-enclosure`);return console.warn(`bad regexp-value '${B}', missing /-enclosure`),null}let Y=B.slice(ke+1,xe),Z=B[xe+1]==="i"?"i":"";try{return new RegExp(Y,Z)}catch(te){if(se)throw new Error(`bad regexp-value '${B}', parse error: ${te}`);return console.warn(`bad regexp-value '${B}', parse error: ${te}`),null}}}function W(q,B){return q.cmp(B)}class Q{constructor(){this.type=0}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}evaluate(B){return!1}serialize(){return"false"}keys(){return[]}negate(){return y.INSTANCE}}Q.INSTANCE=new Q;class y{constructor(){this.type=1}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}evaluate(B){return!0}serialize(){return"true"}keys(){return[]}negate(){return Q.INSTANCE}}y.INSTANCE=new y;class C{constructor(B){this.key=B,this.type=2}static create(B){let se=H.get(B);return typeof se=="boolean"?se?y.INSTANCE:Q.INSTANCE:new C(B)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:0}equals(B){return B.type===this.type&&this.key===B.key}evaluate(B){return!!B.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return l.create(this.key)}}class S{constructor(B,se){this.key=B,this.value=se,this.type=4}static create(B,se){if(typeof se=="boolean")return se?C.create(B):l.create(B);let ke=H.get(B);return typeof ke=="boolean"?se===(ke?"true":"false")?y.INSTANCE:Q.INSTANCE:new S(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.value<B.value?-1:this.value>B.value?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.value===B.value}evaluate(B){return B.getValue(this.key)==this.value}serialize(){return this.key+" == '"+this.value+"'"}keys(){return[this.key]}negate(){return k.create(this.key,this.value)}}class P{constructor(B,se){this.key=B,this.valueKey=se,this.type=10}static create(B,se){return new P(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.valueKey<B.valueKey?-1:this.valueKey>B.valueKey?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.valueKey===B.valueKey}evaluate(B){let se=B.getValue(this.valueKey),ke=B.getValue(this.key);return Array.isArray(se)?se.indexOf(ke)>=0:typeof ke=="string"&&typeof se=="object"&&se!==null&&E.call(se,ke)}serialize(){return this.key+" in '"+this.valueKey+"'"}keys(){return[this.key,this.valueKey]}negate(){return V.create(this)}}class V{constructor(B){this._actual=B,this.type=11}static create(B){return new V(B)}cmp(B){return B.type!==this.type?this.type-B.type:this._actual.cmp(B._actual)}equals(B){return B.type===this.type&&this._actual.equals(B._actual)}evaluate(B){return!this._actual.evaluate(B)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class k{constructor(B,se){this.key=B,this.value=se,this.type=5}static create(B,se){if(typeof se=="boolean")return se?l.create(B):C.create(B);let ke=H.get(B);return typeof ke=="boolean"?se===(ke?"true":"false")?Q.INSTANCE:y.INSTANCE:new k(B,se)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:this.value<B.value?-1:this.value>B.value?1:0}equals(B){return B.type===this.type&&this.key===B.key&&this.value===B.value}evaluate(B){return B.getValue(this.key)!=this.value}serialize(){return this.key+" != '"+this.value+"'"}keys(){return[this.key]}negate(){return S.create(this.key,this.value)}}class l{constructor(B){this.key=B,this.type=3}static create(B){let se=H.get(B);return typeof se=="boolean"?se?Q.INSTANCE:y.INSTANCE:new l(B)}cmp(B){return B.type!==this.type?this.type-B.type:this.key<B.key?-1:this.key>B.key?1:0}equals(B){return B.type===this.type&&this.key===B.key}evaluate(B){return!B.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return C.create(this.key)}}class T{constructor(B,se){this.key=B,this.regexp=se,this.type=7}static create(B,se){return new T(B,se)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.key<B.key)return-1;if(this.key>B.key)return 1;let se=this.regexp?this.regexp.source:"",ke=B.regexp?B.regexp.source:"";return se<ke?-1:se>ke?1:0}equals(B){if(B.type===this.type){let se=this.regexp?this.regexp.source:"",ke=B.regexp?B.regexp.source:"";return this.key===B.key&&se===ke}return!1}evaluate(B){let se=B.getValue(this.key);return!!this.regexp&&this.regexp.test(se)}serialize(){let B=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${B}`}keys(){return[this.key]}negate(){return N.create(this)}}class N{constructor(B){this._actual=B,this.type=8}static create(B){return new N(B)}cmp(B){return B.type!==this.type?this.type-B.type:this._actual.cmp(B._actual)}equals(B){return B.type===this.type&&this._actual.equals(B._actual)}evaluate(B){return!this._actual.evaluate(B)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class b{constructor(B){this.expr=B,this.type=6}static create(B){return b._normalizeArr(B)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let se=0,ke=this.expr.length;se<ke;se++){let xe=W(this.expr[se],B.expr[se]);if(xe!==0)return xe}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].equals(B.expr[se]))return!1;return!0}return!1}evaluate(B){for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].evaluate(B))return!1;return!0}static _normalizeArr(B){let se=[],ke=!1;for(let xe of B)if(xe)if(xe.type!==1){if(xe.type===0)return Q.INSTANCE;xe.type!==6?se.push(xe):se.push(...xe.expr)}else ke=!0;if(se.length===0&&ke)return y.INSTANCE;if(se.length!==0){if(se.length===1)return se[0];for(se.sort(W);se.length>1;){let xe=se[se.length-1];if(xe.type!==9)break;se.pop();let Y=se.pop(),Z=g.create(xe.expr.map(te=>b.create([te,Y])));Z&&(se.push(Z),se.sort(W))}return new b(se)}}serialize(){return this.expr.map(B=>B.serialize()).join(" && ")}keys(){let B=[];for(let se of this.expr)B.push(...se.keys());return B}negate(){let B=[];for(let se of this.expr)B.push(se.negate());return g.create(B)}}class g{constructor(B){this.expr=B,this.type=9}static create(B){let se=g._normalizeArr(B);if(se.length!==0)return se.length===1?se[0]:new g(se)}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let se=0,ke=this.expr.length;se<ke;se++){let xe=W(this.expr[se],B.expr[se]);if(xe!==0)return xe}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let se=0,ke=this.expr.length;se<ke;se++)if(!this.expr[se].equals(B.expr[se]))return!1;return!0}return!1}evaluate(B){for(let se=0,ke=this.expr.length;se<ke;se++)if(this.expr[se].evaluate(B))return!0;return!1}static _normalizeArr(B){let se=[],ke=!1;if(B){for(let xe=0,Y=B.length;xe<Y;xe++){let Z=B[xe];if(Z)if(Z.type!==0){if(Z.type===1)return[y.INSTANCE];Z.type!==9?se.push(Z):se=se.concat(Z.expr)}else ke=!0}if(se.length===0&&ke)return[Q.INSTANCE];se.sort(W)}return se}serialize(){return this.expr.map(B=>B.serialize()).join(" || ")}keys(){let B=[];for(let se of this.expr)B.push(...se.keys());return B}negate(){let B=[];for(let ke of this.expr)B.push(ke.negate());let se=ke=>ke.type===9?ke.expr:[ke];for(;B.length>1;){let ke=B.shift(),xe=B.shift(),Y=[];for(let Z of se(ke))for(let te of se(xe))Y.push(ge.and(Z,te));B.unshift(ge.or(...Y))}return B[0]}}class j extends C{constructor(B,se){super(B),this._defaultValue=se}bindTo(B){return B.createKey(this.key,this._defaultValue)}getValue(B){return B.getContextKeyValue(this.key)}toNegated(){return ge.not(this.key)}}let ie=Object(f.c)("contextKeyService"),U="setContext"},function(Ie,w,r){"use strict";(function(h,f){r.d(w,"i",function(){return l}),r.d(w,"f",function(){return T}),r.d(w,"d",function(){return N}),r.d(w,"g",function(){return b}),r.d(w,"h",function(){return g}),r.d(w,"c",function(){return j}),r.d(w,"b",function(){return ie}),r.d(w,"j",function(){return U}),r.d(w,"a",function(){return q}),r.d(w,"e",function(){return ke});let O=!1,H=!1,E=!1,ge=!1,W=!1,Q=!1,y,C="en",S,P,V=h!==void 0&&h.versions!==void 0&&h.versions.electron!==void 0&&h.type==="renderer";if(typeof navigator!="object"||V){if(typeof h=="object"){O=h.platform==="win32",H=h.platform==="darwin",E=h.platform==="linux",y="en",C="en";let xe=h.env.VSCODE_NLS_CONFIG;if(xe)try{let Y=JSON.parse(xe),Z=Y.availableLanguages["*"];y=Y.locale,C=Z||"en",S=Y._translationsConfigFile}catch(Y){}ge=!0}}else P=navigator.userAgent,O=P.indexOf("Windows")>=0,H=P.indexOf("Macintosh")>=0,Q=(P.indexOf("Macintosh")>=0||P.indexOf("iPad")>=0||P.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,E=P.indexOf("Linux")>=0,W=!0,y=navigator.language,C=y;let k=0;H?k=1:O?k=3:E&&(k=2);let l=O,T=H,N=E,b=ge,g=W,j=Q,ie=typeof self=="object"?self:typeof f=="object"?f:{},U=function(){if(ie.setImmediate)return ie.setImmediate.bind(ie);if(typeof ie.postMessage=="function"&&!ie.importScripts){let Y=[];ie.addEventListener("message",te=>{if(te.data&&te.data.vscodeSetImmediateId)for(let he=0,Ce=Y.length;he<Ce;he++){let Ae=Y[he];if(Ae.id===te.data.vscodeSetImmediateId)return Y.splice(he,1),void Ae.callback()}});let Z=0;return te=>{let he=++Z;Y.push({id:he,callback:te}),ie.postMessage({vscodeSetImmediateId:he},"*")}}if(h!==void 0&&typeof h.nextTick=="function")return h.nextTick.bind(h);let xe=Promise.resolve();return Y=>xe.then(Y)}(),q=H||Q?2:O?1:3,B=!0,se=!1;function ke(){if(!se){se=!0;let xe=new Uint8Array(2);xe[0]=1,xe[1]=2,B=new Uint16Array(xe.buffer)[0]===513}return B}}).call(this,r(86),r(137))},function(Ie,w,r){"use strict";r.d(w,"r",function(){return P}),r.d(w,"B",function(){return V}),r.d(w,"F",function(){return k}),r.d(w,"E",function(){return l}),r.d(w,"z",function(){return T}),r.d(w,"h",function(){return N}),r.d(w,"G",function(){return g}),r.d(w,"A",function(){return b}),r.d(w,"n",function(){return j}),r.d(w,"v",function(){return ie}),r.d(w,"w",function(){return U}),r.d(w,"d",function(){return q}),r.d(w,"y",function(){return B}),r.d(w,"p",function(){return se}),r.d(w,"m",function(){return ke}),r.d(w,"i",function(){return xe}),r.d(w,"u",function(){return Y}),r.d(w,"f",function(){return Z}),r.d(w,"e",function(){return te}),r.d(w,"q",function(){return he}),r.d(w,"D",function(){return Ce}),r.d(w,"b",function(){return Ae}),r.d(w,"a",function(){return L}),r.d(w,"g",function(){return nt}),r.d(w,"j",function(){return ct}),r.d(w,"t",function(){return Ye}),r.d(w,"s",function(){return ht}),r.d(w,"c",function(){return fe}),r.d(w,"x",function(){return $}),r.d(w,"o",function(){return G}),r.d(w,"l",function(){return z}),r.d(w,"k",function(){return J}),r.d(w,"C",function(){return Se});var h=r(23),f=r(3),O=r(6),H=r(2),E=r(187),ge=r(42);function W(A,ee,de,De){if(Array.isArray(A)){let $e=0;for(let pt of A){let it=W(pt,ee,de,De);if(it===10)return it;it>$e&&($e=it)}return $e}if(typeof A=="string")return De?A==="*"?5:A===de?10:0:0;if(A){let{language:$e,pattern:pt,scheme:it,hasAccessToAllModels:At}=A;if(!De&&!At)return 0;let Nt=0;if(it)if(it===ee.scheme)Nt=10;else{if(it!=="*")return 0;Nt=5}if($e)if($e===de)Nt=10;else{if($e!=="*")return 0;Nt=Math.max(Nt,5)}if(pt){let _i;if(_i=typeof pt=="string"?pt:Object.assign(Object.assign({},pt),{base:Object(ge.d)(pt.base)}),_i!==ee.fsPath&&!Object(E.a)(_i,ee.fsPath))return 0;Nt=10}return Nt}return 0}var Q=r(64);function y(A){return typeof A!="string"&&(Array.isArray(A)?A.every(y):!!A.exclusive)}class C{constructor(){this._clock=0,this._entries=[],this._onDidChange=new O.a}get onDidChange(){return this._onDidChange.event}register(ee,de){let De={selector:ee,provider:de,_score:-1,_time:this._clock++};return this._entries.push(De),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(H.h)(()=>{if(De){let $e=this._entries.indexOf(De);$e>=0&&(this._entries.splice($e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),De=void 0)}})}has(ee){return this.all(ee).length>0}all(ee){if(!ee)return[];this._updateScores(ee);let de=[];for(let De of this._entries)De._score>0&&de.push(De.provider);return de}ordered(ee){let de=[];return this._orderedForEach(ee,De=>de.push(De.provider)),de}orderedGroups(ee){let de=[],De,$e;return this._orderedForEach(ee,pt=>{De&&$e===pt._score?De.push(pt.provider):($e=pt._score,De=[pt.provider],de.push(De))}),de}_orderedForEach(ee,de){if(ee){this._updateScores(ee);for(let De of this._entries)De._score>0&&de(De)}}_updateScores(ee){let de={uri:ee.uri.toString(),language:ee.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==de.language||this._lastCandidate.uri!==de.uri){this._lastCandidate=de;for(let De of this._entries)if(De._score=W(De.selector,ee.uri,ee.getLanguageIdentifier().language,Object(Q.b)(ee)),y(De.selector)&&De._score>0){for(let $e of this._entries)$e._score=0;De._score=1e3;break}this._entries.sort(C._compareByScoreAndTime)}}static _compareByScoreAndTime(ee,de){return ee._score<de._score?1:ee._score>de._score?-1:ee._time<de._time?1:ee._time>de._time?-1:0}}var S=r(17);class P{constructor(ee,de){this.language=ee,this.id=de}}class V{static getLanguageId(ee){return(255&ee)>>>0}static getTokenType(ee){return(1792&ee)>>>8}static getFontStyle(ee){return(14336&ee)>>>11}static getForeground(ee){return(8372224&ee)>>>14}static getBackground(ee){return(4286578688&ee)>>>23}static getClassNameFromMetadata(ee){let de="mtk"+this.getForeground(ee),De=this.getFontStyle(ee);return 1&De&&(de+=" mtki"),2&De&&(de+=" mtkb"),4&De&&(de+=" mtku"),de}static getInlineStyleFromMetadata(ee,de){let De=this.getForeground(ee),$e=this.getFontStyle(ee),pt=`color: ${de[De]};`;return 1&$e&&(pt+="font-style: italic;"),2&$e&&(pt+="font-weight: bold;"),4&$e&&(pt+="text-decoration: underline;"),pt}}let k=function(){let A=Object.create(null);return A[0]="symbol-method",A[1]="symbol-function",A[2]="symbol-constructor",A[3]="symbol-field",A[4]="symbol-variable",A[5]="symbol-class",A[6]="symbol-struct",A[7]="symbol-interface",A[8]="symbol-module",A[9]="symbol-property",A[10]="symbol-event",A[11]="symbol-operator",A[12]="symbol-unit",A[13]="symbol-value",A[14]="symbol-constant",A[15]="symbol-enum",A[16]="symbol-enum-member",A[17]="symbol-keyword",A[27]="symbol-snippet",A[18]="symbol-text",A[19]="symbol-color",A[20]="symbol-file",A[21]="symbol-reference",A[22]="symbol-customcolor",A[23]="symbol-folder",A[24]="symbol-type-parameter",A[25]="account",A[26]="issues",function(ee){let de=A[ee],De=de&&S.c.get(de);return De||(console.info("No codicon found for CompletionItemKind "+ee),De=S.a.symbolProperty),De.classNames}}(),l=function(){let A=Object.create(null);return A.method=0,A.function=1,A.constructor=2,A.field=3,A.variable=4,A.class=5,A.struct=6,A.interface=7,A.module=8,A.property=9,A.event=10,A.operator=11,A.unit=12,A.value=13,A.constant=14,A.enum=15,A["enum-member"]=16,A.enumMember=16,A.keyword=17,A.snippet=27,A.text=18,A.color=19,A.file=20,A.reference=21,A.customcolor=22,A.folder=23,A["type-parameter"]=24,A.typeParameter=24,A.account=25,A.issue=26,function(ee,de){let De=A[ee];return De!==void 0||de||(De=9),De}}();var T,N,b;function g(A){return A&&h.a.isUri(A.uri)&&f.a.isIRange(A.range)&&(f.a.isIRange(A.originSelectionRange)||f.a.isIRange(A.targetSelectionRange))}(function(A){A[A.Invoke=1]="Invoke",A[A.TriggerCharacter=2]="TriggerCharacter",A[A.ContentChange=3]="ContentChange"})(T||(T={})),function(A){A[A.Text=0]="Text",A[A.Read=1]="Read",A[A.Write=2]="Write"}(N||(N={})),function(A){let ee=new Map;ee.set("file",0),ee.set("module",1),ee.set("namespace",2),ee.set("package",3),ee.set("class",4),ee.set("method",5),ee.set("property",6),ee.set("field",7),ee.set("constructor",8),ee.set("enum",9),ee.set("interface",10),ee.set("function",11),ee.set("variable",12),ee.set("constant",13),ee.set("string",14),ee.set("number",15),ee.set("boolean",16),ee.set("array",17),ee.set("object",18),ee.set("key",19),ee.set("null",20),ee.set("enum-member",21),ee.set("struct",22),ee.set("event",23),ee.set("operator",24),ee.set("type-parameter",25);let de=new Map;de.set(0,"file"),de.set(1,"module"),de.set(2,"namespace"),de.set(3,"package"),de.set(4,"class"),de.set(5,"method"),de.set(6,"property"),de.set(7,"field"),de.set(8,"constructor"),de.set(9,"enum"),de.set(10,"interface"),de.set(11,"function"),de.set(12,"variable"),de.set(13,"constant"),de.set(14,"string"),de.set(15,"number"),de.set(16,"boolean"),de.set(17,"array"),de.set(18,"object"),de.set(19,"key"),de.set(20,"null"),de.set(21,"enum-member"),de.set(22,"struct"),de.set(23,"event"),de.set(24,"operator"),de.set(25,"type-parameter"),A.fromString=function(De){return ee.get(De)},A.toString=function(De){return de.get(De)},A.toCssClassName=function(De,$e){let pt=de.get(De),it=pt&&S.c.get("symbol-"+pt);return it||(console.info("No codicon found for SymbolKind "+De),it=S.a.symbolProperty),`${$e?"inline":"block"} ${it.classNames}`}}(b||(b={}));class j{constructor(ee){this.value=ee}}j.Comment=new j("comment"),j.Imports=new j("imports"),j.Region=new j("region");let ie=new C,U=new C,q=new C,B=new C,se=new C,ke=new C,xe=new C,Y=new C,Z=new C,te=new C,he=new C,Ce=new C,Ae=new C,L=new C,nt=new C,ct=new C,Ye=new C,ht=new C,fe=new C,$=new C,G=new C,z=new C,J=new C,Se=new class{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new O.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(A){this._onDidChange.fire({changedLanguages:A,changedColorMap:!1})}register(A,ee){return this._map.set(A,ee),this.fire([A]),Object(H.h)(()=>{this._map.get(A)===ee&&(this._map.delete(A),this.fire([A]))})}registerPromise(A,ee){let de=null,De=!1;return this._promises.set(A,ee.then($e=>{this._promises.delete(A),!De&&$e&&(de=this.register(A,$e))})),Object(H.h)(()=>{De=!0,de&&de.dispose()})}getPromise(A){let ee=this.get(A);if(ee)return Promise.resolve(ee);let de=this._promises.get(A);return de?de.then(De=>this.get(A)):null}get(A){return this._map.get(A)||null}setColorMap(A){this._colorMap=A,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},function(Ie,w,r){"use strict";r.d(w,"e",function(){return f}),r.d(w,"f",function(){return O}),r.d(w,"g",function(){return H}),r.d(w,"d",function(){return E}),r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return W}),r.d(w,"c",function(){return Q});let h=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?new Error(y.message+` + +`+y.stack):y},0)}}emit(y){this.listeners.forEach(C=>{C(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}};function f(y){E(y)||h.onUnexpectedError(y)}function O(y){E(y)||h.onUnexpectedExternalError(y)}function H(y){if(y instanceof Error){let{name:C,message:S}=y;return{$isError:!0,name:C,message:S,stack:y.stacktrace||y.stack}}return y}function E(y){return y instanceof Error&&y.name==="Canceled"&&y.message==="Canceled"}function ge(){let y=new Error("Canceled");return y.name=y.message,y}function W(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function Q(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},function(Ie,w,r){"use strict";function h(T){return Array.isArray(T)}function f(T){return typeof T=="string"}function O(T){return!(typeof T!="object"||T===null||Array.isArray(T)||T instanceof RegExp||T instanceof Date)}function H(T){return typeof T=="number"&&!isNaN(T)}function E(T){return T===!0||T===!1}function ge(T){return T===void 0}function W(T){return ge(T)||T===null}function Q(T,N){if(!T)throw new Error(N?`Unexpected type, expected '${N}'`:"Unexpected type")}function y(T){if(W(T))throw new Error("Assertion Failed: argument is undefined or null");return T}function C(T){return typeof T=="function"}function S(T,N){let b=Math.min(T.length,N.length);for(let g=0;g<b;g++)P(T[g],N[g])}function P(T,N){if(f(N)){if(typeof T!==N)throw new Error("argument does not match constraint: typeof "+N)}else if(C(N)){try{if(T instanceof N)return}catch(b){}if(!W(T)&&T.constructor===N||N.length===1&&N.call(void 0,T)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function V(T){let N=[];for(let b of function(g){let j=[],ie=Object.getPrototypeOf(g);for(;Object.prototype!==ie;)j=j.concat(Object.getOwnPropertyNames(ie)),ie=Object.getPrototypeOf(ie);return j}(T))typeof T[b]=="function"&&N.push(b);return N}function k(T,N){let b=j=>function(){let ie=Array.prototype.slice.call(arguments,0);return N(j,ie)},g={};for(let j of T)g[j]=b(j);return g}function l(T){return T===null?void 0:T}r.d(w,"e",function(){return h}),r.d(w,"j",function(){return f}),r.d(w,"i",function(){return O}),r.d(w,"h",function(){return H}),r.d(w,"f",function(){return E}),r.d(w,"k",function(){return ge}),r.d(w,"l",function(){return W}),r.d(w,"b",function(){return Q}),r.d(w,"a",function(){return y}),r.d(w,"g",function(){return C}),r.d(w,"m",function(){return S}),r.d(w,"d",function(){return V}),r.d(w,"c",function(){return k}),r.d(w,"n",function(){return l})},function(Ie,w,r){"use strict";function h(ge,W){let Q=Math.pow(10,W);return Math.round(ge*Q)/Q}r.d(w,"c",function(){return f}),r.d(w,"b",function(){return H}),r.d(w,"a",function(){return E});class f{constructor(W,Q,y,C=1){this.r=0|Math.min(255,Math.max(0,W)),this.g=0|Math.min(255,Math.max(0,Q)),this.b=0|Math.min(255,Math.max(0,y)),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.r===Q.r&&W.g===Q.g&&W.b===Q.b&&W.a===Q.a}}class O{constructor(W,Q,y,C){this.h=0|Math.max(Math.min(360,W),0),this.s=h(Math.max(Math.min(1,Q),0),3),this.l=h(Math.max(Math.min(1,y),0),3),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.h===Q.h&&W.s===Q.s&&W.l===Q.l&&W.a===Q.a}static fromRGBA(W){let Q=W.r/255,y=W.g/255,C=W.b/255,S=W.a,P=Math.max(Q,y,C),V=Math.min(Q,y,C),k=0,l=0,T=(V+P)/2,N=P-V;if(N>0){switch(l=Math.min(T<=.5?N/(2*T):N/(2-2*T),1),P){case Q:k=(y-C)/N+(y<C?6:0);break;case y:k=(C-Q)/N+2;break;case C:k=(Q-y)/N+4}k*=60,k=Math.round(k)}return new O(k,l,T,S)}static _hue2rgb(W,Q,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?W+6*(Q-W)*y:y<.5?Q:y<2/3?W+(Q-W)*(2/3-y)*6:W}static toRGBA(W){let Q=W.h/360,{s:y,l:C,a:S}=W,P,V,k;if(y===0)P=V=k=C;else{let l=C<.5?C*(1+y):C+y-C*y,T=2*C-l;P=O._hue2rgb(T,l,Q+1/3),V=O._hue2rgb(T,l,Q),k=O._hue2rgb(T,l,Q-1/3)}return new f(Math.round(255*P),Math.round(255*V),Math.round(255*k),S)}}class H{constructor(W,Q,y,C){this.h=0|Math.max(Math.min(360,W),0),this.s=h(Math.max(Math.min(1,Q),0),3),this.v=h(Math.max(Math.min(1,y),0),3),this.a=h(Math.max(Math.min(1,C),0),3)}static equals(W,Q){return W.h===Q.h&&W.s===Q.s&&W.v===Q.v&&W.a===Q.a}static fromRGBA(W){let Q=W.r/255,y=W.g/255,C=W.b/255,S=Math.max(Q,y,C),P=S-Math.min(Q,y,C),V=S===0?0:P/S,k;return k=P===0?0:S===Q?((y-C)/P%6+6)%6:S===y?(C-Q)/P+2:(Q-y)/P+4,new H(Math.round(60*k),V,S,W.a)}static toRGBA(W){let{h:Q,s:y,v:C,a:S}=W,P=C*y,V=P*(1-Math.abs(Q/60%2-1)),k=C-P,[l,T,N]=[0,0,0];return Q<60?(l=P,T=V):Q<120?(l=V,T=P):Q<180?(T=P,N=V):Q<240?(T=V,N=P):Q<300?(l=V,N=P):Q<360&&(l=P,N=V),l=Math.round(255*(l+k)),T=Math.round(255*(T+k)),N=Math.round(255*(N+k)),new f(l,T,N,S)}}class E{constructor(W){if(!W)throw new Error("Color needs a value");if(W instanceof f)this.rgba=W;else if(W instanceof O)this._hsla=W,this.rgba=O.toRGBA(W);else{if(!(W instanceof H))throw new Error("Invalid color ctor argument");this._hsva=W,this.rgba=H.toRGBA(W)}}static fromHex(W){return E.Format.CSS.parseHex(W)||E.red}get hsla(){return this._hsla?this._hsla:O.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:H.fromRGBA(this.rgba)}equals(W){return!!W&&f.equals(this.rgba,W.rgba)&&O.equals(this.hsla,W.hsla)&&H.equals(this.hsva,W.hsva)}getRelativeLuminance(){return h(.2126*E._relativeLuminanceForComponent(this.rgba.r)+.7152*E._relativeLuminanceForComponent(this.rgba.g)+.0722*E._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(W){let Q=W/255;return Q<=.03928?Q/12.92:Math.pow((Q+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(W){return this.getRelativeLuminance()>W.getRelativeLuminance()}isDarkerThan(W){return this.getRelativeLuminance()<W.getRelativeLuminance()}lighten(W){return new E(new O(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*W,this.hsla.a))}darken(W){return new E(new O(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*W,this.hsla.a))}transparent(W){let{r:Q,g:y,b:C,a:S}=this.rgba;return new E(new f(Q,y,C,S*W))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new E(new f(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+E.Format.CSS.format(this)}static getLighterColor(W,Q,y){if(W.isLighterThan(Q))return W;y=y||.5;let C=W.getRelativeLuminance(),S=Q.getRelativeLuminance();return y=y*(S-C)/S,W.lighten(y)}static getDarkerColor(W,Q,y){if(W.isDarkerThan(Q))return W;y=y||.5;let C=W.getRelativeLuminance();return y=y*(C-Q.getRelativeLuminance())/C,W.darken(y)}}E.white=new E(new f(255,255,255,1)),E.black=new E(new f(0,0,0,1)),E.red=new E(new f(255,0,0,1)),E.blue=new E(new f(0,0,255,1)),E.cyan=new E(new f(0,255,255,1)),E.lightgrey=new E(new f(211,211,211,1)),E.transparent=new E(new f(0,0,0,0)),function(ge){let W;(function(Q){let y;(function(C){function S(V){let k=V.toString(16);return k.length!==2?"0"+k:k}function P(V){switch(V){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}C.formatRGB=function(V){return V.rgba.a===1?`rgb(${V.rgba.r}, ${V.rgba.g}, ${V.rgba.b})`:ge.Format.CSS.formatRGBA(V)},C.formatRGBA=function(V){return`rgba(${V.rgba.r}, ${V.rgba.g}, ${V.rgba.b}, ${+V.rgba.a.toFixed(2)})`},C.formatHSL=function(V){return V.hsla.a===1?`hsl(${V.hsla.h}, ${(100*V.hsla.s).toFixed(2)}%, ${(100*V.hsla.l).toFixed(2)}%)`:ge.Format.CSS.formatHSLA(V)},C.formatHSLA=function(V){return`hsla(${V.hsla.h}, ${(100*V.hsla.s).toFixed(2)}%, ${(100*V.hsla.l).toFixed(2)}%, ${V.hsla.a.toFixed(2)})`},C.formatHex=function(V){return`#${S(V.rgba.r)}${S(V.rgba.g)}${S(V.rgba.b)}`},C.formatHexA=function(V,k=!1){return k&&V.rgba.a===1?ge.Format.CSS.formatHex(V):`#${S(V.rgba.r)}${S(V.rgba.g)}${S(V.rgba.b)}${S(Math.round(255*V.rgba.a))}`},C.format=function(V){return V.isOpaque()?ge.Format.CSS.formatHex(V):ge.Format.CSS.formatRGBA(V)},C.parseHex=function(V){let k=V.length;if(k===0||V.charCodeAt(0)!==35)return null;if(k===7){let l=16*P(V.charCodeAt(1))+P(V.charCodeAt(2)),T=16*P(V.charCodeAt(3))+P(V.charCodeAt(4)),N=16*P(V.charCodeAt(5))+P(V.charCodeAt(6));return new ge(new f(l,T,N,1))}if(k===9){let l=16*P(V.charCodeAt(1))+P(V.charCodeAt(2)),T=16*P(V.charCodeAt(3))+P(V.charCodeAt(4)),N=16*P(V.charCodeAt(5))+P(V.charCodeAt(6)),b=16*P(V.charCodeAt(7))+P(V.charCodeAt(8));return new ge(new f(l,T,N,b/255))}if(k===4){let l=P(V.charCodeAt(1)),T=P(V.charCodeAt(2)),N=P(V.charCodeAt(3));return new ge(new f(16*l+l,16*T+T,16*N+N))}if(k===5){let l=P(V.charCodeAt(1)),T=P(V.charCodeAt(2)),N=P(V.charCodeAt(3)),b=P(V.charCodeAt(4));return new ge(new f(16*l+l,16*T+T,16*N+N,(16*b+b)/255))}return null}})(y=Q.CSS||(Q.CSS={}))})(W=ge.Format||(ge.Format={}))}(E||(E={}))},function(Ie,w,r){"use strict";function h(U,q=0){return U[U.length-(1+q)]}function f(U){if(U.length===0)throw new Error("Invalid tail call");return[U.slice(0,U.length-1),U[U.length-1]]}function O(U,q,B=(se,ke)=>se===ke){if(U===q)return!0;if(!U||!q||U.length!==q.length)return!1;for(let se=0,ke=U.length;se<ke;se++)if(!B(U[se],q[se]))return!1;return!0}function H(U,q,B){let se=0,ke=U.length-1;for(;se<=ke;){let xe=(se+ke)/2|0,Y=B(U[xe],q);if(Y<0)se=xe+1;else{if(!(Y>0))return xe;ke=xe-1}}return-(se+1)}function E(U,q){let B=0,se=U.length;if(se===0)return 0;for(;B<se;){let ke=Math.floor((B+se)/2);q(U[ke])?se=ke:B=ke+1}return B}function ge(U,q){return function B(se,ke,xe,Y,Z){if(Y<=xe)return;let te=xe+(Y-xe)/2|0;B(se,ke,xe,te,Z),B(se,ke,te+1,Y,Z),!(ke(se[te],se[te+1])<=0)&&function(he,Ce,Ae,L,nt,ct){let Ye=Ae,ht=L+1;for(let fe=Ae;fe<=nt;fe++)ct[fe]=he[fe];for(let fe=Ae;fe<=nt;fe++)Ye>L?he[fe]=ct[ht++]:ht>nt?he[fe]=ct[Ye++]:Ce(ct[ht],ct[Ye])<0?he[fe]=ct[ht++]:he[fe]=ct[Ye++]}(se,ke,xe,te,Y,Z)}(U,q,0,U.length-1,[]),U}function W(U,q){let B=[],se;for(let ke of ge(U.slice(0),q))se&&q(se[0],ke)===0?se.push(ke):(se=[ke],B.push(se));return B}function Q(U){return U.filter(q=>!!q)}function y(U){return!Array.isArray(U)||U.length===0}function C(U){return Array.isArray(U)&&U.length>0}function S(U,q){if(!q)return U.filter((se,ke)=>U.indexOf(se)===ke);let B=Object.create(null);return U.filter(se=>{let ke=q(se);return!B[ke]&&(B[ke]=!0,!0)})}function P(U){let q=new Set;return U.filter(B=>!q.has(B)&&(q.add(B),!0))}function V(U,q){for(let B=0;B<U.length;B++)if(q(U[B]))return B;return-1}function k(U,q,B){let se=V(U,q);return se<0?B:U[se]}function l(U,q){return U.length>0?U[0]:q}function T(U){return[].concat(...U)}function N(U,q){let B=typeof q=="number"?U:0;typeof q=="number"?B=U:(B=0,q=U);let se=[];if(B<=q)for(let ke=B;ke<q;ke++)se.push(ke);else for(let ke=B;ke>q;ke--)se.push(ke);return se}function b(U,q,B){let se=U.slice(0,q),ke=U.slice(q);return se.concat(B,ke)}function g(U,q){let B=U.indexOf(q);B>-1&&(U.splice(B,1),U.unshift(q))}function j(U,q){let B=U.indexOf(q);B>-1&&(U.splice(B,1),U.push(q))}function ie(U){return Array.isArray(U)?U:[U]}r.d(w,"t",function(){return h}),r.d(w,"u",function(){return f}),r.d(w,"g",function(){return O}),r.d(w,"c",function(){return H}),r.d(w,"h",function(){return E}),r.d(w,"p",function(){return ge}),r.d(w,"m",function(){return W}),r.d(w,"d",function(){return Q}),r.d(w,"n",function(){return y}),r.d(w,"o",function(){return C}),r.d(w,"e",function(){return S}),r.d(w,"f",function(){return P}),r.d(w,"j",function(){return V}),r.d(w,"i",function(){return k}),r.d(w,"k",function(){return l}),r.d(w,"l",function(){return T}),r.d(w,"s",function(){return N}),r.d(w,"a",function(){return b}),r.d(w,"r",function(){return g}),r.d(w,"q",function(){return j}),r.d(w,"b",function(){return ie})},function(Ie,w,r){"use strict";r.d(w,"c",function(){return H}),r.d(w,"e",function(){return E}),r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return Q}),r.d(w,"d",function(){return C}),r.d(w,"g",function(){return S}),r.d(w,"f",function(){return P}),r.d(w,"h",function(){return k});var h=r(151),f=r(6);let O=new class{constructor(){this._icons=new Map,this._onDidRegister=new f.a}add(l){this._icons.has(l.id)?console.error("Duplicate registration of codicon "+l.id):(this._icons.set(l.id,l),this._onDidRegister.fire(l))}get(l){return this._icons.get(l)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},H=O;function E(l,T,N){return new ge(l,T)}class ge{constructor(T,N,b){this.id=T,this.definition=N,this.description=b,O.add(this)}get classNames(){return"codicon codicon-"+this.id}get cssSelector(){return".codicon.codicon-"+this.id}}(function(l){l.add=new l("add",{character:"\\ea60"}),l.plus=new l("plus",{character:"\\ea60"}),l.gistNew=new l("gist-new",{character:"\\ea60"}),l.repoCreate=new l("repo-create",{character:"\\ea60"}),l.lightbulb=new l("lightbulb",{character:"\\ea61"}),l.lightBulb=new l("light-bulb",{character:"\\ea61"}),l.repo=new l("repo",{character:"\\ea62"}),l.repoDelete=new l("repo-delete",{character:"\\ea62"}),l.gistFork=new l("gist-fork",{character:"\\ea63"}),l.repoForked=new l("repo-forked",{character:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{character:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{character:"\\ea64"}),l.recordKeys=new l("record-keys",{character:"\\ea65"}),l.keyboard=new l("keyboard",{character:"\\ea65"}),l.tag=new l("tag",{character:"\\ea66"}),l.tagAdd=new l("tag-add",{character:"\\ea66"}),l.tagRemove=new l("tag-remove",{character:"\\ea66"}),l.person=new l("person",{character:"\\ea67"}),l.personAdd=new l("person-add",{character:"\\ea67"}),l.personFollow=new l("person-follow",{character:"\\ea67"}),l.personOutline=new l("person-outline",{character:"\\ea67"}),l.personFilled=new l("person-filled",{character:"\\ea67"}),l.gitBranch=new l("git-branch",{character:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{character:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{character:"\\ea68"}),l.sourceControl=new l("source-control",{character:"\\ea68"}),l.mirror=new l("mirror",{character:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{character:"\\ea69"}),l.star=new l("star",{character:"\\ea6a"}),l.starAdd=new l("star-add",{character:"\\ea6a"}),l.starDelete=new l("star-delete",{character:"\\ea6a"}),l.starEmpty=new l("star-empty",{character:"\\ea6a"}),l.comment=new l("comment",{character:"\\ea6b"}),l.commentAdd=new l("comment-add",{character:"\\ea6b"}),l.alert=new l("alert",{character:"\\ea6c"}),l.warning=new l("warning",{character:"\\ea6c"}),l.search=new l("search",{character:"\\ea6d"}),l.searchSave=new l("search-save",{character:"\\ea6d"}),l.logOut=new l("log-out",{character:"\\ea6e"}),l.signOut=new l("sign-out",{character:"\\ea6e"}),l.logIn=new l("log-in",{character:"\\ea6f"}),l.signIn=new l("sign-in",{character:"\\ea6f"}),l.eye=new l("eye",{character:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{character:"\\ea70"}),l.eyeWatch=new l("eye-watch",{character:"\\ea70"}),l.circleFilled=new l("circle-filled",{character:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{character:"\\ea71"}),l.closeDirty=new l("close-dirty",{character:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{character:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{character:"\\ea71"}),l.debugHint=new l("debug-hint",{character:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{character:"\\ea72"}),l.edit=new l("edit",{character:"\\ea73"}),l.pencil=new l("pencil",{character:"\\ea73"}),l.info=new l("info",{character:"\\ea74"}),l.issueOpened=new l("issue-opened",{character:"\\ea74"}),l.gistPrivate=new l("gist-private",{character:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{character:"\\ea75"}),l.lock=new l("lock",{character:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{character:"\\ea75"}),l.close=new l("close",{character:"\\ea76"}),l.removeClose=new l("remove-close",{character:"\\ea76"}),l.x=new l("x",{character:"\\ea76"}),l.repoSync=new l("repo-sync",{character:"\\ea77"}),l.sync=new l("sync",{character:"\\ea77"}),l.clone=new l("clone",{character:"\\ea78"}),l.desktopDownload=new l("desktop-download",{character:"\\ea78"}),l.beaker=new l("beaker",{character:"\\ea79"}),l.microscope=new l("microscope",{character:"\\ea79"}),l.vm=new l("vm",{character:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{character:"\\ea7a"}),l.file=new l("file",{character:"\\ea7b"}),l.fileText=new l("file-text",{character:"\\ea7b"}),l.more=new l("more",{character:"\\ea7c"}),l.ellipsis=new l("ellipsis",{character:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{character:"\\ea7c"}),l.mailReply=new l("mail-reply",{character:"\\ea7d"}),l.reply=new l("reply",{character:"\\ea7d"}),l.organization=new l("organization",{character:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{character:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{character:"\\ea7e"}),l.newFile=new l("new-file",{character:"\\ea7f"}),l.fileAdd=new l("file-add",{character:"\\ea7f"}),l.newFolder=new l("new-folder",{character:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{character:"\\ea80"}),l.trash=new l("trash",{character:"\\ea81"}),l.trashcan=new l("trashcan",{character:"\\ea81"}),l.history=new l("history",{character:"\\ea82"}),l.clock=new l("clock",{character:"\\ea82"}),l.folder=new l("folder",{character:"\\ea83"}),l.fileDirectory=new l("file-directory",{character:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{character:"\\ea83"}),l.logoGithub=new l("logo-github",{character:"\\ea84"}),l.markGithub=new l("mark-github",{character:"\\ea84"}),l.github=new l("github",{character:"\\ea84"}),l.terminal=new l("terminal",{character:"\\ea85"}),l.console=new l("console",{character:"\\ea85"}),l.repl=new l("repl",{character:"\\ea85"}),l.zap=new l("zap",{character:"\\ea86"}),l.symbolEvent=new l("symbol-event",{character:"\\ea86"}),l.error=new l("error",{character:"\\ea87"}),l.stop=new l("stop",{character:"\\ea87"}),l.variable=new l("variable",{character:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{character:"\\ea88"}),l.array=new l("array",{character:"\\ea8a"}),l.symbolArray=new l("symbol-array",{character:"\\ea8a"}),l.symbolModule=new l("symbol-module",{character:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{character:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{character:"\\ea8b"}),l.symbolObject=new l("symbol-object",{character:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{character:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{character:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{character:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{character:"\\ea8f"}),l.symbolNull=new l("symbol-null",{character:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{character:"\\ea90"}),l.symbolNumber=new l("symbol-number",{character:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{character:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{character:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{character:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{character:"\\ea92"}),l.symbolKey=new l("symbol-key",{character:"\\ea93"}),l.symbolText=new l("symbol-text",{character:"\\ea93"}),l.symbolReference=new l("symbol-reference",{character:"\\ea94"}),l.goToFile=new l("go-to-file",{character:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{character:"\\ea95"}),l.symbolValue=new l("symbol-value",{character:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{character:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{character:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{character:"\\ea97"}),l.archive=new l("archive",{character:"\\ea98"}),l.arrowBoth=new l("arrow-both",{character:"\\ea99"}),l.arrowDown=new l("arrow-down",{character:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{character:"\\ea9b"}),l.arrowRight=new l("arrow-right",{character:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{character:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{character:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{character:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{character:"\\eaa0"}),l.arrowUp=new l("arrow-up",{character:"\\eaa1"}),l.bell=new l("bell",{character:"\\eaa2"}),l.bold=new l("bold",{character:"\\eaa3"}),l.book=new l("book",{character:"\\eaa4"}),l.bookmark=new l("bookmark",{character:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{character:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{character:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{character:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{character:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{character:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{character:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{character:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{character:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{character:"\\eaab"}),l.briefcase=new l("briefcase",{character:"\\eaac"}),l.broadcast=new l("broadcast",{character:"\\eaad"}),l.browser=new l("browser",{character:"\\eaae"}),l.bug=new l("bug",{character:"\\eaaf"}),l.calendar=new l("calendar",{character:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{character:"\\eab1"}),l.check=new l("check",{character:"\\eab2"}),l.checklist=new l("checklist",{character:"\\eab3"}),l.chevronDown=new l("chevron-down",{character:"\\eab4"}),l.chevronLeft=new l("chevron-left",{character:"\\eab5"}),l.chevronRight=new l("chevron-right",{character:"\\eab6"}),l.chevronUp=new l("chevron-up",{character:"\\eab7"}),l.chromeClose=new l("chrome-close",{character:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{character:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{character:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{character:"\\eabb"}),l.circleOutline=new l("circle-outline",{character:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{character:"\\eabc"}),l.circleSlash=new l("circle-slash",{character:"\\eabd"}),l.circuitBoard=new l("circuit-board",{character:"\\eabe"}),l.clearAll=new l("clear-all",{character:"\\eabf"}),l.clippy=new l("clippy",{character:"\\eac0"}),l.closeAll=new l("close-all",{character:"\\eac1"}),l.cloudDownload=new l("cloud-download",{character:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{character:"\\eac3"}),l.code=new l("code",{character:"\\eac4"}),l.collapseAll=new l("collapse-all",{character:"\\eac5"}),l.colorMode=new l("color-mode",{character:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{character:"\\eac7"}),l.compareChanges=new l("compare-changes",{character:"\\eafd"}),l.creditCard=new l("credit-card",{character:"\\eac9"}),l.dash=new l("dash",{character:"\\eacc"}),l.dashboard=new l("dashboard",{character:"\\eacd"}),l.database=new l("database",{character:"\\eace"}),l.debugContinue=new l("debug-continue",{character:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{character:"\\ead0"}),l.debugPause=new l("debug-pause",{character:"\\ead1"}),l.debugRestart=new l("debug-restart",{character:"\\ead2"}),l.debugStart=new l("debug-start",{character:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{character:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{character:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{character:"\\ead6"}),l.debugStop=new l("debug-stop",{character:"\\ead7"}),l.debug=new l("debug",{character:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{character:"\\ead9"}),l.deviceCamera=new l("device-camera",{character:"\\eada"}),l.deviceMobile=new l("device-mobile",{character:"\\eadb"}),l.diffAdded=new l("diff-added",{character:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{character:"\\eadd"}),l.diffModified=new l("diff-modified",{character:"\\eade"}),l.diffRemoved=new l("diff-removed",{character:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{character:"\\eae0"}),l.diff=new l("diff",{character:"\\eae1"}),l.discard=new l("discard",{character:"\\eae2"}),l.editorLayout=new l("editor-layout",{character:"\\eae3"}),l.emptyWindow=new l("empty-window",{character:"\\eae4"}),l.exclude=new l("exclude",{character:"\\eae5"}),l.extensions=new l("extensions",{character:"\\eae6"}),l.eyeClosed=new l("eye-closed",{character:"\\eae7"}),l.fileBinary=new l("file-binary",{character:"\\eae8"}),l.fileCode=new l("file-code",{character:"\\eae9"}),l.fileMedia=new l("file-media",{character:"\\eaea"}),l.filePdf=new l("file-pdf",{character:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{character:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{character:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{character:"\\eaee"}),l.fileZip=new l("file-zip",{character:"\\eaef"}),l.files=new l("files",{character:"\\eaf0"}),l.filter=new l("filter",{character:"\\eaf1"}),l.flame=new l("flame",{character:"\\eaf2"}),l.foldDown=new l("fold-down",{character:"\\eaf3"}),l.foldUp=new l("fold-up",{character:"\\eaf4"}),l.fold=new l("fold",{character:"\\eaf5"}),l.folderActive=new l("folder-active",{character:"\\eaf6"}),l.folderOpened=new l("folder-opened",{character:"\\eaf7"}),l.gear=new l("gear",{character:"\\eaf8"}),l.gift=new l("gift",{character:"\\eaf9"}),l.gistSecret=new l("gist-secret",{character:"\\eafa"}),l.gist=new l("gist",{character:"\\eafb"}),l.gitCommit=new l("git-commit",{character:"\\eafc"}),l.gitCompare=new l("git-compare",{character:"\\eafd"}),l.gitMerge=new l("git-merge",{character:"\\eafe"}),l.githubAction=new l("github-action",{character:"\\eaff"}),l.githubAlt=new l("github-alt",{character:"\\eb00"}),l.globe=new l("globe",{character:"\\eb01"}),l.grabber=new l("grabber",{character:"\\eb02"}),l.graph=new l("graph",{character:"\\eb03"}),l.gripper=new l("gripper",{character:"\\eb04"}),l.heart=new l("heart",{character:"\\eb05"}),l.home=new l("home",{character:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{character:"\\eb07"}),l.hubot=new l("hubot",{character:"\\eb08"}),l.inbox=new l("inbox",{character:"\\eb09"}),l.issueClosed=new l("issue-closed",{character:"\\eb0a"}),l.issueReopened=new l("issue-reopened",{character:"\\eb0b"}),l.issues=new l("issues",{character:"\\eb0c"}),l.italic=new l("italic",{character:"\\eb0d"}),l.jersey=new l("jersey",{character:"\\eb0e"}),l.json=new l("json",{character:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{character:"\\eb10"}),l.key=new l("key",{character:"\\eb11"}),l.law=new l("law",{character:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{character:"\\eb13"}),l.linkExternal=new l("link-external",{character:"\\eb14"}),l.link=new l("link",{character:"\\eb15"}),l.listOrdered=new l("list-ordered",{character:"\\eb16"}),l.listUnordered=new l("list-unordered",{character:"\\eb17"}),l.liveShare=new l("live-share",{character:"\\eb18"}),l.loading=new l("loading",{character:"\\eb19"}),l.location=new l("location",{character:"\\eb1a"}),l.mailRead=new l("mail-read",{character:"\\eb1b"}),l.mail=new l("mail",{character:"\\eb1c"}),l.markdown=new l("markdown",{character:"\\eb1d"}),l.megaphone=new l("megaphone",{character:"\\eb1e"}),l.mention=new l("mention",{character:"\\eb1f"}),l.milestone=new l("milestone",{character:"\\eb20"}),l.mortarBoard=new l("mortar-board",{character:"\\eb21"}),l.move=new l("move",{character:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{character:"\\eb23"}),l.mute=new l("mute",{character:"\\eb24"}),l.noNewline=new l("no-newline",{character:"\\eb25"}),l.note=new l("note",{character:"\\eb26"}),l.octoface=new l("octoface",{character:"\\eb27"}),l.openPreview=new l("open-preview",{character:"\\eb28"}),l.package_=new l("package",{character:"\\eb29"}),l.paintcan=new l("paintcan",{character:"\\eb2a"}),l.pin=new l("pin",{character:"\\eb2b"}),l.play=new l("play",{character:"\\eb2c"}),l.run=new l("run",{character:"\\eb2c"}),l.plug=new l("plug",{character:"\\eb2d"}),l.preserveCase=new l("preserve-case",{character:"\\eb2e"}),l.preview=new l("preview",{character:"\\eb2f"}),l.project=new l("project",{character:"\\eb30"}),l.pulse=new l("pulse",{character:"\\eb31"}),l.question=new l("question",{character:"\\eb32"}),l.quote=new l("quote",{character:"\\eb33"}),l.radioTower=new l("radio-tower",{character:"\\eb34"}),l.reactions=new l("reactions",{character:"\\eb35"}),l.references=new l("references",{character:"\\eb36"}),l.refresh=new l("refresh",{character:"\\eb37"}),l.regex=new l("regex",{character:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{character:"\\eb39"}),l.remote=new l("remote",{character:"\\eb3a"}),l.remove=new l("remove",{character:"\\eb3b"}),l.replaceAll=new l("replace-all",{character:"\\eb3c"}),l.replace=new l("replace",{character:"\\eb3d"}),l.repoClone=new l("repo-clone",{character:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{character:"\\eb3f"}),l.repoPull=new l("repo-pull",{character:"\\eb40"}),l.repoPush=new l("repo-push",{character:"\\eb41"}),l.report=new l("report",{character:"\\eb42"}),l.requestChanges=new l("request-changes",{character:"\\eb43"}),l.rocket=new l("rocket",{character:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{character:"\\eb45"}),l.rootFolder=new l("root-folder",{character:"\\eb46"}),l.rss=new l("rss",{character:"\\eb47"}),l.ruby=new l("ruby",{character:"\\eb48"}),l.saveAll=new l("save-all",{character:"\\eb49"}),l.saveAs=new l("save-as",{character:"\\eb4a"}),l.save=new l("save",{character:"\\eb4b"}),l.screenFull=new l("screen-full",{character:"\\eb4c"}),l.screenNormal=new l("screen-normal",{character:"\\eb4d"}),l.searchStop=new l("search-stop",{character:"\\eb4e"}),l.server=new l("server",{character:"\\eb50"}),l.settingsGear=new l("settings-gear",{character:"\\eb51"}),l.settings=new l("settings",{character:"\\eb52"}),l.shield=new l("shield",{character:"\\eb53"}),l.smiley=new l("smiley",{character:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{character:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{character:"\\eb56"}),l.splitVertical=new l("split-vertical",{character:"\\eb57"}),l.squirrel=new l("squirrel",{character:"\\eb58"}),l.starFull=new l("star-full",{character:"\\eb59"}),l.starHalf=new l("star-half",{character:"\\eb5a"}),l.symbolClass=new l("symbol-class",{character:"\\eb5b"}),l.symbolColor=new l("symbol-color",{character:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{character:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{character:"\\eb5e"}),l.symbolField=new l("symbol-field",{character:"\\eb5f"}),l.symbolFile=new l("symbol-file",{character:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{character:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{character:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{character:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{character:"\\eb64"}),l.symbolProperty=new l("symbol-property",{character:"\\eb65"}),l.wrench=new l("wrench",{character:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{character:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{character:"\\eb66"}),l.tasklist=new l("tasklist",{character:"\\eb67"}),l.telescope=new l("telescope",{character:"\\eb68"}),l.textSize=new l("text-size",{character:"\\eb69"}),l.threeBars=new l("three-bars",{character:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{character:"\\eb6b"}),l.thumbsup=new l("thumbsup",{character:"\\eb6c"}),l.tools=new l("tools",{character:"\\eb6d"}),l.triangleDown=new l("triangle-down",{character:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{character:"\\eb6f"}),l.triangleRight=new l("triangle-right",{character:"\\eb70"}),l.triangleUp=new l("triangle-up",{character:"\\eb71"}),l.twitter=new l("twitter",{character:"\\eb72"}),l.unfold=new l("unfold",{character:"\\eb73"}),l.unlock=new l("unlock",{character:"\\eb74"}),l.unmute=new l("unmute",{character:"\\eb75"}),l.unverified=new l("unverified",{character:"\\eb76"}),l.verified=new l("verified",{character:"\\eb77"}),l.versions=new l("versions",{character:"\\eb78"}),l.vmActive=new l("vm-active",{character:"\\eb79"}),l.vmOutline=new l("vm-outline",{character:"\\eb7a"}),l.vmRunning=new l("vm-running",{character:"\\eb7b"}),l.watch=new l("watch",{character:"\\eb7c"}),l.whitespace=new l("whitespace",{character:"\\eb7d"}),l.wholeWord=new l("whole-word",{character:"\\eb7e"}),l.window=new l("window",{character:"\\eb7f"}),l.wordWrap=new l("word-wrap",{character:"\\eb80"}),l.zoomIn=new l("zoom-in",{character:"\\eb81"}),l.zoomOut=new l("zoom-out",{character:"\\eb82"}),l.listFilter=new l("list-filter",{character:"\\eb83"}),l.listFlat=new l("list-flat",{character:"\\eb84"}),l.listSelection=new l("list-selection",{character:"\\eb85"}),l.selection=new l("selection",{character:"\\eb85"}),l.listTree=new l("list-tree",{character:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{character:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{character:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{character:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{character:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{character:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{character:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{character:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{character:"\\eb8c"}),l.symbolString=new l("symbol-string",{character:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{character:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{character:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{character:"\\eb90"}),l.callIncoming=new l("call-incoming",{character:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{character:"\\eb93"}),l.menu=new l("menu",{character:"\\eb94"}),l.expandAll=new l("expand-all",{character:"\\eb95"}),l.feedback=new l("feedback",{character:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{character:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{character:"\\eb98"}),l.account=new l("account",{character:"\\eb99"}),l.bellDot=new l("bell-dot",{character:"\\eb9a"}),l.debugConsole=new l("debug-console",{character:"\\eb9b"}),l.library=new l("library",{character:"\\eb9c"}),l.output=new l("output",{character:"\\eb9d"}),l.runAll=new l("run-all",{character:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{character:"\\eb9f"}),l.pinned=new l("pinned",{character:"\\eba0"}),l.githubInverted=new l("github-inverted",{character:"\\eba1"}),l.debugAlt=new l("debug-alt",{character:"\\eb91"}),l.serverProcess=new l("server-process",{character:"\\eba2"}),l.serverEnvironment=new l("server-environment",{character:"\\eba3"}),l.pass=new l("pass",{character:"\\eba4"}),l.stopCircle=new l("stop-circle",{character:"\\eba5"}),l.playCircle=new l("play-circle",{character:"\\eba6"}),l.record=new l("record",{character:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{character:"\\eba8"}),l.vmConnect=new l("vm-connect",{character:"\\eba9"}),l.cloud=new l("cloud",{character:"\\ebaa"}),l.merge=new l("merge",{character:"\\ebab"})})(ge||(ge={}));let W=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function Q(l){return l.replace(W,(T,N)=>N?T:"\\"+T)}let y=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function C(l){return l.replace(y,T=>"\\"+T)}let S=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function P(l){return l.replace(S,(T,N,b,g,j)=>N?`$(${b})`:`<span class="codicon codicon-${g}${j?" codicon-animation-"+j:""}"></span>`)}let V=/(\s)?(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)(\s)?/gi;function k(l){return l.indexOf(h.a)===-1?l:l.replace(V,(T,N,b,g)=>b?T:N||g||"")}},function(Ie,w,r){"use strict";var h;r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f}),r.d(w,"c",function(){return H}),r.d(w,"d",function(){return E}),function(ge){ge.serviceIds=new Map,ge.DI_TARGET="$di$target",ge.DI_DEPENDENCIES="$di$dependencies",ge.getServiceDependencies=function(W){return W[ge.DI_DEPENDENCIES]||[]}}(h||(h={}));let f=H("instantiationService");function O(ge,W,Q,y){W[h.DI_TARGET]===W?W[h.DI_DEPENDENCIES].push({id:ge,index:Q,optional:y}):(W[h.DI_DEPENDENCIES]=[{id:ge,index:Q,optional:y}],W[h.DI_TARGET]=W)}function H(ge){if(h.serviceIds.has(ge))return h.serviceIds.get(ge);let W=function(Q,y,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(W,Q,C,!1)};return W.toString=()=>ge,h.serviceIds.set(ge,W),W}function E(ge){return function(W,Q,y){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(ge,W,y,!0)}}},function(Ie,w,r){"use strict";r.d(w,"c",function(){return E}),r.d(w,"h",function(){return ge}),r.d(w,"e",function(){return W}),r.d(w,"b",function(){return Q}),r.d(w,"f",function(){return y}),r.d(w,"a",function(){return C}),r.d(w,"g",function(){return P}),r.d(w,"d",function(){return V});var h=r(18),f=r(2),O=r(56),H=r(6);let E=Object(h.c)("themeService");function ge(k){return{id:k}}var W;(function(k){k.isThemeIcon=function(N){return N&&typeof N=="object"&&typeof N.id=="string"};let l=/^\$\(([a-z.]+\/)?([a-z-~]+)\)$/i;k.fromString=function(N){let b=l.exec(N);if(!b)return;let[,g,j]=b;return g||(g="codicon/"),{id:g+j}};let T=/^(codicon\/)?([a-z-]+)(~[a-z]+)?$/i;k.asClassName=function(N){let b=T.exec(N.id);if(!b)return;let[,,g,j]=b,ie="codicon codicon-"+g;return j&&(ie+=" "+j.substr(1)),ie}})(W||(W={}));let Q="hc";function y(k){switch(k){case"dark":return"vs-dark";case Q:return"hc-black";default:return"vs"}}let C={ThemingContribution:"base.contributions.theming"},S=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new H.a}onColorThemeChange(k){return this.themingParticipants.push(k),this.onThemingParticipantAddedEmitter.fire(k),Object(f.h)(()=>{let l=this.themingParticipants.indexOf(k);this.themingParticipants.splice(l,1)})}getThemingParticipants(){return this.themingParticipants}};function P(k){return S.onColorThemeChange(k)}O.a.add(C.ThemingContribution,S);class V extends f.a{constructor(l){super(),this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(T=>this.onThemeChange(T)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},function(Ie,w,r){"use strict";r.d(w,"i",function(){return H}),r.d(w,"f",function(){return E}),r.d(w,"j",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"l",function(){return Q}),r.d(w,"g",function(){return y}),r.d(w,"h",function(){return C}),r.d(w,"e",function(){return S}),r.d(w,"c",function(){return P}),r.d(w,"d",function(){return V}),r.d(w,"k",function(){return k}),r.d(w,"b",function(){return l});var h=r(25),f=r(13),O=r(2);function H(T){return T&&typeof T.then=="function"}function E(T){let N=new h.b,b=T(N.token),g=new Promise((j,ie)=>{N.token.onCancellationRequested(()=>{ie(f.a())}),Promise.resolve(b).then(U=>{N.dispose(),j(U)},U=>{N.dispose(),ie(U)})});return new class{cancel(){N.cancel()}then(j,ie){return g.then(j,ie)}catch(j){return this.then(void 0,j)}finally(j){return g.finally(j)}}}function ge(T,N,b){return Promise.race([T,new Promise(g=>N.onCancellationRequested(()=>g(b)))])}class W{constructor(N){this.defaultDelay=N,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(N,b=this.defaultDelay){return this.task=N,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((g,j)=>{this.doResolve=g,this.doReject=j}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let g=this.task;return this.task=null,g()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},b),this.completionPromise}isTriggered(){return this.timeout!==null}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(f.a()),this.completionPromise=null)}cancelTimeout(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}function Q(T,N){return N?new Promise((b,g)=>{let j=setTimeout(b,T);N.onCancellationRequested(()=>{clearTimeout(j),g(f.a())})}):E(b=>Q(T,b))}function y(T,N=0){let b=setTimeout(T,N);return Object(O.h)(()=>clearTimeout(b))}function C(T,N=g=>!!g,b=null){let g=0,j=T.length,ie=()=>{if(g>=j)return Promise.resolve(b);let U=T[g++];return Promise.resolve(U()).then(q=>N(q)?Promise.resolve(q):ie())};return ie()}class S{constructor(N,b){this._token=-1,typeof N=="function"&&typeof b=="number"&&this.setIfNotSet(N,b)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(N,b){this.cancel(),this._token=setTimeout(()=>{this._token=-1,N()},b)}setIfNotSet(N,b){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,N()},b))}}class P{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(N,b){this.cancel(),this._token=setInterval(()=>{N()},b)}}class V{constructor(N,b){this.timeoutToken=-1,this.runner=N,this.timeout=b,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(N=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,N)}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let k;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){let T=Object.freeze({didTimeout:!0,timeRemaining:()=>15});k=N=>{let b=setTimeout(()=>N(T)),g=!1;return{dispose(){g||(g=!0,clearTimeout(b))}}}}else k=(T,N)=>{let b=requestIdleCallback(T,typeof N=="number"?{timeout:N}:void 0),g=!1;return{dispose(){g||(g=!0,cancelIdleCallback(b))}}}})();class l{constructor(N){this._didRun=!1,this._executor=()=>{try{this._value=N()}catch(b){this._error=b}finally{this._didRun=!0}},this._handle=k(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(9),f=r(3);class O extends f.a{constructor(E,ge,W,Q){super(E,ge,W,Q),this.selectionStartLineNumber=E,this.selectionStartColumn=ge,this.positionLineNumber=W,this.positionColumn=Q}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(E){return O.selectionsEqual(this,E)}static selectionsEqual(E,ge){return E.selectionStartLineNumber===ge.selectionStartLineNumber&&E.selectionStartColumn===ge.selectionStartColumn&&E.positionLineNumber===ge.positionLineNumber&&E.positionColumn===ge.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(E,ge){return this.getDirection()===0?new O(this.startLineNumber,this.startColumn,E,ge):new O(E,ge,this.startLineNumber,this.startColumn)}getPosition(){return new h.a(this.positionLineNumber,this.positionColumn)}setStartPosition(E,ge){return this.getDirection()===0?new O(E,ge,this.endLineNumber,this.endColumn):new O(this.endLineNumber,this.endColumn,E,ge)}static fromPositions(E,ge=E){return new O(E.lineNumber,E.column,ge.lineNumber,ge.column)}static liftSelection(E){return new O(E.selectionStartLineNumber,E.selectionStartColumn,E.positionLineNumber,E.positionColumn)}static selectionsArrEqual(E,ge){if(E&&!ge||!E&&ge)return!1;if(!E&&!ge)return!0;if(E.length!==ge.length)return!1;for(let W=0,Q=E.length;W<Q;W++)if(!this.selectionsEqual(E[W],ge[W]))return!1;return!0}static isISelection(E){return E&&typeof E.selectionStartLineNumber=="number"&&typeof E.selectionStartColumn=="number"&&typeof E.positionLineNumber=="number"&&typeof E.positionColumn=="number"}static createWithDirection(E,ge,W,Q,y){return y===0?new O(E,ge,W,Q):new O(W,Q,E,ge)}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return P}),r.d(w,"f",function(){return V}),r.d(w,"c",function(){return k}),r.d(w,"d",function(){return N}),r.d(w,"e",function(){return b}),r.d(w,"a",function(){return g}),r.d(w,"g",function(){return j});var h=r(13),f=r(8),O=r(9),H=r(3),E=r(21),ge=r(30),W=r(39);let Q=()=>!0,y=()=>!1,C=ie=>ie===" "||ie===" ";function S(ie,U,q){ie.has(U)?ie.get(U).push(q):ie.set(U,[q])}class P{constructor(U,q,B){this._languageIdentifier=U;let se=B.options,ke=se.get(117);this.readOnly=se.get(72),this.tabSize=q.tabSize,this.indentSize=q.indentSize,this.insertSpaces=q.insertSpaces,this.lineHeight=se.get(51),this.pageSize=Math.max(1,Math.floor(ke.height/this.lineHeight)-2),this.useTabStops=se.get(104),this.wordSeparators=se.get(105),this.emptySelectionClipboard=se.get(26),this.copyWithSyntaxHighlighting=se.get(16),this.multiCursorMergeOverlapping=se.get(60),this.multiCursorPaste=se.get(62),this.autoClosingBrackets=se.get(5),this.autoClosingQuotes=se.get(7),this.autoClosingOvertype=se.get(6),this.autoSurround=se.get(10),this.autoIndent=se.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:P._getShouldAutoClose(U,this.autoClosingQuotes),bracket:P._getShouldAutoClose(U,this.autoClosingBrackets)};let xe=P._getAutoClosingPairs(U);if(xe)for(let Z of xe)S(this.autoClosingPairsOpen2,Z.open.charAt(Z.open.length-1),Z),Z.close.length===1&&S(this.autoClosingPairsClose2,Z.close,Z);let Y=P._getSurroundingPairs(U);if(Y)for(let Z of Y)this.surroundingPairs[Z.open]=Z.close}static shouldRecreate(U){return U.hasChanged(117)||U.hasChanged(105)||U.hasChanged(26)||U.hasChanged(60)||U.hasChanged(62)||U.hasChanged(5)||U.hasChanged(7)||U.hasChanged(6)||U.hasChanged(10)||U.hasChanged(104)||U.hasChanged(51)||U.hasChanged(72)}get electricChars(){if(!this._electricChars){this._electricChars={};let U=P._getElectricCharacters(this._languageIdentifier);if(U)for(let q of U)this._electricChars[q]=!0}return this._electricChars}normalizeIndentation(U){return ge.b.normalizeIndentation(U,this.indentSize,this.insertSpaces)}static _getElectricCharacters(U){try{return W.a.getElectricCharacters(U.id)}catch(q){return Object(h.e)(q),null}}static _getAutoClosingPairs(U){try{return W.a.getAutoClosingPairs(U.id)}catch(q){return Object(h.e)(q),null}}static _getShouldAutoClose(U,q){switch(q){case"beforeWhitespace":return C;case"languageDefined":return P._getLanguageDefinedShouldAutoClose(U);case"always":return Q;case"never":return y}}static _getLanguageDefinedShouldAutoClose(U){try{let q=W.a.getAutoCloseBeforeSet(U.id);return B=>q.indexOf(B)!==-1}catch(q){return Object(h.e)(q),y}}static _getSurroundingPairs(U){try{return W.a.getSurroundingPairs(U.id)}catch(q){return Object(h.e)(q),null}}}class V{constructor(U,q,B,se){this.selectionStart=U,this.selectionStartLeftoverVisibleColumns=q,this.position=B,this.leftoverVisibleColumns=se,this.selection=V._computeSelection(this.selectionStart,this.position)}equals(U){return this.selectionStartLeftoverVisibleColumns===U.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===U.leftoverVisibleColumns&&this.position.equals(U.position)&&this.selectionStart.equalsRange(U.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(U,q,B,se){return U?new V(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new O.a(q,B),se):new V(new H.a(q,B,q,B),se,new O.a(q,B),se)}static _computeSelection(U,q){let B,se,ke,xe;return U.isEmpty()?(B=U.startLineNumber,se=U.startColumn,ke=q.lineNumber,xe=q.column):q.isBeforeOrEqual(U.getStartPosition())?(B=U.endLineNumber,se=U.endColumn,ke=q.lineNumber,xe=q.column):(B=U.startLineNumber,se=U.startColumn,ke=q.lineNumber,xe=q.column),new E.a(B,se,ke,xe)}}class k{constructor(U,q,B){this.model=U,this.coordinatesConverter=q,this.cursorConfig=B}}class l{constructor(U){this.modelState=U,this.viewState=null}}class T{constructor(U){this.modelState=null,this.viewState=U}}class N{constructor(U,q){this.modelState=U,this.viewState=q}static fromModelState(U){return new l(U)}static fromViewState(U){return new T(U)}static fromModelSelection(U){let q=U.selectionStartLineNumber,B=U.selectionStartColumn,se=U.positionLineNumber,ke=U.positionColumn,xe=new V(new H.a(q,B,q,B),0,new O.a(se,ke),0);return N.fromModelState(xe)}static fromModelSelections(U){let q=[];for(let B=0,se=U.length;B<se;B++)q[B]=this.fromModelSelection(U[B]);return q}equals(U){return this.viewState.equals(U.viewState)&&this.modelState.equals(U.modelState)}}class b{constructor(U,q,B){this.type=U,this.commands=q,this.shouldPushStackElementBefore=B.shouldPushStackElementBefore,this.shouldPushStackElementAfter=B.shouldPushStackElementAfter}}class g{static visibleColumnFromColumn(U,q,B){let se=U.length,ke=q-1<se?q-1:se,xe=0,Y=0;for(;Y<ke;){let Z=f.A(U,ke,Y);if(Y+=Z>=65536?2:1,Z===9)xe=g.nextRenderTabStop(xe,B);else{let te=f.y(Z);for(;Y<ke;){let he=f.A(U,ke,Y),Ce=f.y(he);if(f.c(te,Ce))break;Y+=he>=65536?2:1,te=Ce}f.E(Z)||f.C(Z)?xe+=2:xe+=1}}return xe}static visibleColumnFromColumn2(U,q,B){return this.visibleColumnFromColumn(q.getLineContent(B.lineNumber),B.column,U.tabSize)}static columnFromVisibleColumn(U,q,B){if(q<=0)return 1;let se=U.length,ke=0,xe=1,Y=0;for(;Y<se;){let Z=f.A(U,se,Y),te;if(Y+=Z>=65536?2:1,Z===9)te=g.nextRenderTabStop(ke,B);else{let Ce=f.y(Z);for(;Y<se;){let Ae=f.A(U,se,Y),L=f.y(Ae);if(f.c(Ce,L))break;Y+=Ae>=65536?2:1,Ce=L}te=f.E(Z)||f.C(Z)?ke+2:ke+1}let he=Y+1;if(te>=q)return te-q<q-ke?he:xe;ke=te,xe=he}return se+1}static columnFromVisibleColumn2(U,q,B,se){let ke=this.columnFromVisibleColumn(q.getLineContent(B),se,U.tabSize),xe=q.getLineMinColumn(B);if(ke<xe)return xe;let Y=q.getLineMaxColumn(B);return ke>Y?Y:ke}static nextRenderTabStop(U,q){return U+q-U%q}static nextIndentTabStop(U,q){return U+q-U%q}static prevRenderTabStop(U,q){return U-1-(U-1)%q}static prevIndentTabStop(U,q){return U-1-(U-1)%q}}function j(ie){return ie==="'"||ie==='"'||ie==="`"}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Q}),r.d(w,"b",function(){return k});var h=r(11),f=r(42);let O=/^\w[\w\d+.-]*$/,H=/^\//,E=/^\/\//,ge="/",W=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Q{constructor(g,j,ie,U,q,B=!1){typeof g=="object"?(this.scheme=g.scheme||"",this.authority=g.authority||"",this.path=g.path||"",this.query=g.query||"",this.fragment=g.fragment||""):(this.scheme=function(se,ke){return se||ke?se:"file"}(g,B),this.authority=j||"",this.path=function(se,ke){switch(se){case"https":case"http":case"file":ke?ke[0]!==ge&&(ke=ge+ke):ke=ge}return ke}(this.scheme,ie||""),this.query=U||"",this.fragment=q||"",function(se,ke){if(!se.scheme&&ke)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${se.authority}", path: "${se.path}", query: "${se.query}", fragment: "${se.fragment}"}`);if(se.scheme&&!O.test(se.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(se.path){if(se.authority){if(!H.test(se.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(E.test(se.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,B))}static isUri(g){return g instanceof Q||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="function"&&typeof g.with=="function"&&typeof g.toString=="function"}get fsPath(){return k(this,!1)}with(g){if(!g)return this;let{scheme:j,authority:ie,path:U,query:q,fragment:B}=g;return j===void 0?j=this.scheme:j===null&&(j=""),ie===void 0?ie=this.authority:ie===null&&(ie=""),U===void 0?U=this.path:U===null&&(U=""),q===void 0?q=this.query:q===null&&(q=""),B===void 0?B=this.fragment:B===null&&(B=""),j===this.scheme&&ie===this.authority&&U===this.path&&q===this.query&&B===this.fragment?this:new C(j,ie,U,q,B)}static parse(g,j=!1){let ie=W.exec(g);return ie?new C(ie[2]||"",N(ie[4]||""),N(ie[5]||""),N(ie[7]||""),N(ie[9]||""),j):new C("","","","","")}static file(g){let j="";if(h.i&&(g=g.replace(/\\/g,ge)),g[0]===ge&&g[1]===ge){let ie=g.indexOf(ge,2);ie===-1?(j=g.substring(2),g=ge):(j=g.substring(2,ie),g=g.substring(ie)||ge)}return new C("file",j,g,"","")}static from(g){return new C(g.scheme,g.authority,g.path,g.query,g.fragment)}static joinPath(g,...j){if(!g.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let ie;return ie=h.i&&g.scheme==="file"?Q.file(f.i.join(k(g,!0),...j)).path:f.e.join(g.path,...j),g.with({path:ie})}toString(g=!1){return l(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof Q)return g;{let j=new C(g);return j._formatted=g.external,j._fsPath=g._sep===y?g.fsPath:null,j}}return g}}let y=h.i?1:void 0;class C extends Q{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath}toString(g=!1){return g?l(this,!0):(this._formatted||(this._formatted=l(this,!1)),this._formatted)}toJSON(){let g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=y),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}let S={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function P(b,g){let j,ie=-1;for(let U=0;U<b.length;U++){let q=b.charCodeAt(U);if(q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===45||q===46||q===95||q===126||g&&q===47)ie!==-1&&(j+=encodeURIComponent(b.substring(ie,U)),ie=-1),j!==void 0&&(j+=b.charAt(U));else{j===void 0&&(j=b.substr(0,U));let B=S[q];B!==void 0?(ie!==-1&&(j+=encodeURIComponent(b.substring(ie,U)),ie=-1),j+=B):ie===-1&&(ie=U)}}return ie!==-1&&(j+=encodeURIComponent(b.substring(ie))),j!==void 0?j:b}function V(b){let g;for(let j=0;j<b.length;j++){let ie=b.charCodeAt(j);ie===35||ie===63?(g===void 0&&(g=b.substr(0,j)),g+=S[ie]):g!==void 0&&(g+=b[j])}return g!==void 0?g:b}function k(b,g){let j;return j=b.authority&&b.path.length>1&&b.scheme==="file"?`//${b.authority}${b.path}`:b.path.charCodeAt(0)===47&&(b.path.charCodeAt(1)>=65&&b.path.charCodeAt(1)<=90||b.path.charCodeAt(1)>=97&&b.path.charCodeAt(1)<=122)&&b.path.charCodeAt(2)===58?g?b.path.substr(1):b.path[1].toLowerCase()+b.path.substr(2):b.path,h.i&&(j=j.replace(/\//g,"\\")),j}function l(b,g){let j=g?V:P,ie="",{scheme:U,authority:q,path:B,query:se,fragment:ke}=b;if(U&&(ie+=U,ie+=":"),(q||U==="file")&&(ie+=ge,ie+=ge),q){let xe=q.indexOf("@");if(xe!==-1){let Y=q.substr(0,xe);q=q.substr(xe+1),xe=Y.indexOf(":"),xe===-1?ie+=j(Y,!1):(ie+=j(Y.substr(0,xe),!1),ie+=":",ie+=j(Y.substr(xe+1),!1)),ie+="@"}q=q.toLowerCase(),xe=q.indexOf(":"),xe===-1?ie+=j(q,!1):(ie+=j(q.substr(0,xe),!1),ie+=q.substr(xe))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){let xe=B.charCodeAt(1);xe>=65&&xe<=90&&(B=`/${String.fromCharCode(xe+32)}:${B.substr(3)}`)}else if(B.length>=2&&B.charCodeAt(1)===58){let xe=B.charCodeAt(0);xe>=65&&xe<=90&&(B=`${String.fromCharCode(xe+32)}:${B.substr(2)}`)}ie+=j(B,!0)}return se&&(ie+="?",ie+=j(se,!1)),ke&&(ie+="#",ie+=g?ke:P(ke,!1)),ie}let T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function N(b){return b.match(T)?b.replace(T,g=>function j(ie){try{return decodeURIComponent(ie)}catch(U){return ie.length>3?ie.substr(0,3)+j(ie.substr(3)):ie}}(g)):b}},function(Ie,w,r){"use strict";r.d(w,"f",function(){return S}),r.d(w,"b",function(){return P}),r.d(w,"a",function(){return V}),r.d(w,"d",function(){return k}),r.d(w,"e",function(){return T}),r.d(w,"c",function(){return N});var h=r(60),f=r(18),O=r(10),H=r(27),E=r(2),ge=r(6),W=r(37),Q=r(53),y=function(b,g,j,ie){var U,q=arguments.length,B=q<3?g:ie===null?ie=Object.getOwnPropertyDescriptor(g,j):ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(b,g,j,ie);else for(var se=b.length-1;se>=0;se--)(U=b[se])&&(B=(q<3?U(B):q>3?U(g,j,B):U(g,j))||B);return q>3&&B&&Object.defineProperty(g,j,B),B},C=function(b,g){return function(j,ie){g(j,ie,b)}};function S(b){return b.command!==void 0}class P{constructor(g){this.id=P._idPool++,this._debugName=g}}P._idPool=0,P.CommandPalette=new P("CommandPalette"),P.EditorContext=new P("EditorContext"),P.EditorContextPeek=new P("EditorContextPeek"),P.MenubarEditMenu=new P("MenubarEditMenu"),P.MenubarGoMenu=new P("MenubarGoMenu"),P.MenubarSelectionMenu=new P("MenubarSelectionMenu");let V=Object(f.c)("menuService"),k=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ge.a,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:b=>b===P.CommandPalette}}addCommand(b){return this.addCommands(W.a.single(b))}addCommands(b){for(let g of b)this._commands.set(g.id,g);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(E.h)(()=>{let g=!1;for(let j of b)g=this._commands.delete(j.id)||g;g&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(b){return this._commands.get(b)}getCommands(){let b=new Map;return this._commands.forEach((g,j)=>b.set(j,g)),b}appendMenuItem(b,g){return this.appendMenuItems(W.a.single({id:b,item:g}))}appendMenuItems(b){let g=new Set,j=new Q.a;for(let{id:ie,item:U}of b){let q=this._menuItems.get(ie);q||(q=new Q.a,this._menuItems.set(ie,q)),j.push(q.push(U)),g.add(ie)}return this._onDidChangeMenu.fire(g),Object(E.h)(()=>{if(j.size>0){for(let ie of j)ie();this._onDidChangeMenu.fire(g),j.clear()}})}getMenuItems(b){let g;return g=this._menuItems.has(b)?[...this._menuItems.get(b)]:[],b===P.CommandPalette&&this._appendImplicitItems(g),g}_appendImplicitItems(b){let g=new Set;for(let j of b)S(j)&&(g.add(j.command.id),j.alt&&g.add(j.alt.id));this._commands.forEach((j,ie)=>{g.has(ie)||b.push({command:j})})}},l=class extends h.a{constructor(b,g,j){super(b,g),this._commandService=j}run(...b){return this._commandService.executeCommand(this.id,...b)}};l=y([C(2,H.b)],l);class T extends h.d{constructor(g,j,ie,U){super("submenuitem."+g.submenu.id,typeof g.title=="string"?g.title:g.title.value,()=>{let q=[],B=j.createMenu(g.submenu,ie),se=B.getActions(U);B.dispose();for(let ke of se){let[,xe]=ke;xe.length>0&&(q.push(...xe),q.push(new h.c))}return q.length&&q.pop(),q},"submenu"),this.item=g}}let N=class em extends l{constructor(g,j,ie,U,q){if(typeof g.title=="string"?super(g.id,g.title,q):super(g.id,g.title.value,q),this._cssClass=void 0,this._enabled=!g.precondition||U.contextMatchesRules(g.precondition),this._tooltip=g.tooltip?typeof g.tooltip=="string"?g.tooltip:g.tooltip.value:void 0,g.toggled){let B=g.toggled.condition?g.toggled:{condition:g.toggled};this._checked=U.contextMatchesRules(B.condition),this._checked&&B.tooltip&&(this._tooltip=typeof B.tooltip=="string"?B.tooltip:B.tooltip.value)}this._options=ie||{},this.item=g,this.alt=j?new em(j,void 0,this._options,U,q):void 0}dispose(){this.alt&&this.alt.dispose(),super.dispose()}run(...g){let j=[];return this._options.arg&&(j=[...j,this._options.arg]),this._options.shouldForwardArgs&&(j=[...j,...g]),super.run(...j)}};N=y([C(3,O.b),C(4,H.b)],N)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O}),r.d(w,"b",function(){return E});var h=r(6);let f=Object.freeze(function(ge,W){let Q=setTimeout(ge.bind(W),0);return{dispose(){clearTimeout(Q)}}});var O;(function(ge){ge.isCancellationToken=function(W){return W===ge.None||W===ge.Cancelled||W instanceof H||!(!W||typeof W!="object")&&typeof W.isCancellationRequested=="boolean"&&typeof W.onCancellationRequested=="function"},ge.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:h.b.None}),ge.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:f})})(O||(O={}));class H{constructor(){this._isCancelled=!1,this._emitter=null}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?f:(this._emitter||(this._emitter=new h.a),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class E{constructor(W){this._token=void 0,this._parentListener=void 0,this._parentListener=W&&W.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new H),this._token}cancel(){this._token?this._token instanceof H&&this._token.cancel():this._token=O.Cancelled}dispose(W=!1){W&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof H&&this._token.dispose():this._token=O.None}}},function(Ie,w,r){"use strict";r.d(w,"h",function(){return H}),r.d(w,"b",function(){return E}),r.d(w,"j",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"i",function(){return N}),r.d(w,"e",function(){return b}),r.d(w,"f",function(){return j}),r.d(w,"l",function(){return ie}),r.d(w,"c",function(){return q}),r.d(w,"d",function(){return B}),r.d(w,"k",function(){return se}),r.d(w,"g",function(){return xe});var h=r(0),f=r(11),O=r(73);let H=8;class E{constructor(Z){this._values=Z}hasChanged(Z){return this._values[Z]}}class ge{constructor(){this._values=[]}_read(Z){return this._values[Z]}get(Z){return this._values[Z]}_write(Z,te){this._values[Z]=te}}class W{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Q{constructor(Z,te,he,Ce){this.id=Z,this.name=te,this.defaultValue=he,this.schema=Ce}compute(Z,te,he){return he}}class y{constructor(Z,te=null){this.schema=void 0,this.id=Z,this.name="_never_",this.defaultValue=void 0,this.deps=te}validate(Z){return this.defaultValue}}class C{constructor(Z,te,he,Ce){this.id=Z,this.name=te,this.defaultValue=he,this.schema=Ce}validate(Z){return Z===void 0?this.defaultValue:Z}compute(Z,te,he){return he}}class S extends C{static boolean(Z,te){return Z===void 0?te:Z!=="false"&&Boolean(Z)}constructor(Z,te,he,Ce){Ce!==void 0&&(Ce.type="boolean",Ce.default=he),super(Z,te,he,Ce)}validate(Z){return S.boolean(Z,this.defaultValue)}}class P extends C{constructor(Z,te,he,Ce,Ae,L){L!==void 0&&(L.type="integer",L.default=he,L.minimum=Ce,L.maximum=Ae),super(Z,te,he,L),this.minimum=Ce,this.maximum=Ae}static clampedInt(Z,te,he,Ce){if(Z===void 0)return te;let Ae=parseInt(Z,10);return isNaN(Ae)?te:(Ae=Math.max(he,Ae),Ae=Math.min(Ce,Ae),0|Ae)}validate(Z){return P.clampedInt(Z,this.defaultValue,this.minimum,this.maximum)}}class V extends C{constructor(Z,te,he,Ce,Ae){Ae!==void 0&&(Ae.type="number",Ae.default=he),super(Z,te,he,Ae),this.validationFn=Ce}static clamp(Z,te,he){return Z<te?te:Z>he?he:Z}static float(Z,te){if(typeof Z=="number")return Z;if(Z===void 0)return te;let he=parseFloat(Z);return isNaN(he)?te:he}validate(Z){return this.validationFn(V.float(Z,this.defaultValue))}}class k extends C{static string(Z,te){return typeof Z!="string"?te:Z}constructor(Z,te,he,Ce){Ce!==void 0&&(Ce.type="string",Ce.default=he),super(Z,te,he,Ce)}validate(Z){return k.string(Z,this.defaultValue)}}class l extends C{constructor(Z,te,he,Ce,Ae){Ae!==void 0&&(Ae.type="string",Ae.enum=Ce,Ae.default=he),super(Z,te,he,Ae),this._allowedValues=Ce}static stringSet(Z,te,he){return typeof Z!="string"||he.indexOf(Z)===-1?te:Z}validate(Z){return l.stringSet(Z,this.defaultValue,this._allowedValues)}}class T extends Q{constructor(Z,te,he,Ce,Ae,L,nt){nt!==void 0&&(nt.type="string",nt.enum=Ae,nt.default=Ce),super(Z,te,he,nt),this._allowedValues=Ae,this._convert=L}validate(Z){return typeof Z!="string"||this._allowedValues.indexOf(Z)===-1?this.defaultValue:this._convert(Z)}}var N;(function(Y){Y[Y.Line=1]="Line",Y[Y.Block=2]="Block",Y[Y.Underline=3]="Underline",Y[Y.LineThin=4]="LineThin",Y[Y.BlockOutline=5]="BlockOutline",Y[Y.UnderlineThin=6]="UnderlineThin"})(N||(N={}));class b extends Q{constructor(){super(37,"fontLigatures",b.OFF,{anyOf:[{type:"boolean",description:h.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:h.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:h.a("fontLigaturesGeneral","Configures font ligatures or font features."),default:!1})}validate(Z){return Z===void 0?this.defaultValue:typeof Z=="string"?Z==="false"?b.OFF:Z==="true"?b.ON:Z:Boolean(Z)?b.ON:b.OFF}}b.OFF='"liga" off, "calt" off',b.ON='"liga" on, "calt" on';class g extends Q{constructor(){super(39,"fontWeight",q.fontWeight,{anyOf:[{type:"number",minimum:g.MINIMUM_VALUE,maximum:g.MAXIMUM_VALUE,errorMessage:h.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:g.SUGGESTION_VALUES}],default:q.fontWeight,description:h.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(Z){return Z==="normal"||Z==="bold"?Z:String(P.clampedInt(Z,q.fontWeight,g.MINIMUM_VALUE,g.MAXIMUM_VALUE))}}g.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],g.MINIMUM_VALUE=1,g.MAXIMUM_VALUE=1e3;class j extends y{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(Z,te,he){return j.computeLayout(te,{memory:Z.memory,outerWidth:Z.outerWidth,outerHeight:Z.outerHeight,isDominatedByLongLines:Z.isDominatedByLongLines,lineHeight:Z.fontInfo.lineHeight,viewLineCount:Z.viewLineCount,lineNumbersDigitCount:Z.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Z.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Z.fontInfo.maxDigitWidth,pixelRatio:Z.pixelRatio})}static computeContainedMinimapLineCount(Z){let te=Z.height/Z.lineHeight,he=Z.scrollBeyondLastLine?te-1:0,Ce=(Z.viewLineCount+he)/(Z.pixelRatio*Z.height);return{typicalViewportLineCount:te,extraLinesBeyondLastLine:he,desiredRatio:Ce,minimapLineCount:Math.floor(Z.viewLineCount/Ce)}}static _computeMinimapLayout(Z,te){let he=Z.outerWidth,Ce=Z.outerHeight,Ae=Z.pixelRatio;if(!Z.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Ae*Ce),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Ce};let L=te.stableMinimapLayoutInput,nt=L&&Z.outerHeight===L.outerHeight&&Z.lineHeight===L.lineHeight&&Z.typicalHalfwidthCharacterWidth===L.typicalHalfwidthCharacterWidth&&Z.pixelRatio===L.pixelRatio&&Z.scrollBeyondLastLine===L.scrollBeyondLastLine&&Z.minimap.enabled===L.minimap.enabled&&Z.minimap.side===L.minimap.side&&Z.minimap.size===L.minimap.size&&Z.minimap.showSlider===L.minimap.showSlider&&Z.minimap.renderCharacters===L.minimap.renderCharacters&&Z.minimap.maxColumn===L.minimap.maxColumn&&Z.minimap.scale===L.minimap.scale&&Z.verticalScrollbarWidth===L.verticalScrollbarWidth&&Z.isViewportWrapping===L.isViewportWrapping,ct=Z.lineHeight,Ye=Z.typicalHalfwidthCharacterWidth,ht=Z.scrollBeyondLastLine,fe=Z.minimap.renderCharacters,$=Ae>=2?Math.round(2*Z.minimap.scale):Z.minimap.scale,G=Z.minimap.maxColumn,z=Z.minimap.size,J=Z.minimap.side,Se=Z.verticalScrollbarWidth,A=Z.viewLineCount,ee=Z.remainingWidth,de=Z.isViewportWrapping,De=fe?2:3,$e=Math.floor(Ae*Ce),pt=$e/Ae,it=!1,At=!1,Nt=De*$,_i=$/Ae,wt=1;if(z==="fill"||z==="fit"){let{typicalViewportLineCount:Li,extraLinesBeyondLastLine:Ii,desiredRatio:Ai,minimapLineCount:Zi}=j.computeContainedMinimapLineCount({viewLineCount:A,scrollBeyondLastLine:ht,height:Ce,lineHeight:ct,pixelRatio:Ae});if(A/Zi>1)it=!0,At=!0,$=1,Nt=1,_i=$/Ae;else{let Bi=!1,Lt=$+1;if(z==="fit"){let Oi=Math.ceil((A+Ii)*Nt);de&&nt&&ee<=te.stableFitRemainingWidth?(Bi=!0,Lt=te.stableFitMaxMinimapScale):(Bi=Oi>$e,de&&Bi?(te.stableMinimapLayoutInput=Z,te.stableFitRemainingWidth=ee):(te.stableMinimapLayoutInput=null,te.stableFitRemainingWidth=0))}if(z==="fill"||Bi){it=!0;let Oi=$;Nt=Math.min(ct*Ae,Math.max(1,Math.floor(1/Ai))),$=Math.min(Lt,Math.max(1,Math.floor(Nt/De))),$>Oi&&(wt=Math.min(2,$/Oi)),_i=$/Ae/wt,$e=Math.ceil(Math.max(Li,A+Ii)*Nt),de&&Bi&&(te.stableFitMaxMinimapScale=$)}}}let Ni=Math.floor(G*_i),pi=Math.min(Ni,Math.max(0,Math.floor((ee-Se-2)*_i/(Ye+_i)))+H),et=Math.floor(Ae*pi),Wt=et/Ae;return et=Math.floor(et*wt),{renderMinimap:fe?1:2,minimapLeft:J==="left"?0:he-pi-Se,minimapWidth:pi,minimapHeightIsEditorHeight:it,minimapIsSampling:At,minimapScale:$,minimapLineHeight:Nt,minimapCanvasInnerWidth:et,minimapCanvasInnerHeight:$e,minimapCanvasOuterWidth:Wt,minimapCanvasOuterHeight:pt}}static computeLayout(Z,te){let he=0|te.outerWidth,Ce=0|te.outerHeight,Ae=0|te.lineHeight,L=0|te.lineNumbersDigitCount,nt=te.typicalHalfwidthCharacterWidth,ct=te.maxDigitWidth,Ye=te.pixelRatio,ht=te.viewLineCount,fe=Z.get(106),$=Z.get(109),G=Z.get(110),z=Z.get(2),J=te.isDominatedByLongLines,Se=Z.get(42),A=Z.get(52).renderType!==0,ee=Z.get(53),de=Z.get(86),De=Z.get(56),$e=Z.get(84),pt=$e.verticalScrollbarSize,it=$e.verticalHasArrows,At=$e.arrowSize,Nt=$e.horizontalScrollbarSize,_i=Z.get(50),wt=Z.get(31),Ni;if(typeof _i=="string"&&/^\d+(\.\d+)?ch$/.test(_i)){let Ue=parseFloat(_i.substr(0,_i.length-2));Ni=P.clampedInt(Ue*nt,0,0,1e3)}else Ni=P.clampedInt(_i,0,0,1e3);wt&&(Ni+=16);let pi=0;if(A){let Ue=Math.max(L,ee);pi=Math.round(Ue*ct)}let et=0;Se&&(et=Ae);let Wt=0,Li=Wt+et,Ii=Li+pi,Ai=Ii+Ni,Zi=he-et-pi-Ni,Bi=!1,Lt=!1,Oi=-1;z!==2&&(G&&J?(Bi=!0,Lt=!0):fe==="on"||fe==="bounded"?Lt=!0:fe==="wordWrapColumn"&&(Oi=$));let gt=j._computeMinimapLayout({outerWidth:he,outerHeight:Ce,lineHeight:Ae,typicalHalfwidthCharacterWidth:nt,pixelRatio:Ye,scrollBeyondLastLine:de,minimap:De,verticalScrollbarWidth:pt,viewLineCount:ht,remainingWidth:Zi,isViewportWrapping:Lt},te.memory||new W);gt.renderMinimap!==0&>.minimapLeft===0&&(Wt+=gt.minimapWidth,Li+=gt.minimapWidth,Ii+=gt.minimapWidth,Ai+=gt.minimapWidth);let vi=Zi-gt.minimapWidth,Rt=Math.max(1,Math.floor((vi-pt-2)/nt)),vt=it?At:0;return Lt&&(Oi=Math.max(1,Rt),fe==="bounded"&&(Oi=Math.min(Oi,$))),{width:he,height:Ce,glyphMarginLeft:Wt,glyphMarginWidth:et,lineNumbersLeft:Li,lineNumbersWidth:pi,decorationsLeft:Ii,decorationsWidth:Ni,contentLeft:Ai,contentWidth:vi,minimap:gt,viewportColumn:Rt,isWordWrapMinified:Bi,isViewportWrapping:Lt,wrappingColumn:Oi,verticalScrollbarWidth:pt,horizontalScrollbarHeight:Nt,overviewRuler:{top:vt,width:pt,height:Ce-2*vt,right:0}}}}function ie(Y){let Z=Y.get(79);return Z==="editable"?Y.get(72):Z!=="on"}function U(Y,Z){if(typeof Y!="string")return Z;switch(Y){case"hidden":return 2;case"visible":return 3;default:return 1}}let q={fontFamily:f.f?"Menlo, Monaco, 'Courier New', monospace":f.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:f.f?12:14,lineHeight:0,letterSpacing:0},B={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},se=[];function ke(Y){return se[Y.id]=Y,Y}let xe={acceptSuggestionOnCommitCharacter:ke(new S(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:h.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ke(new l(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",h.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:h.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ke(new class extends Q{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[h.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),h.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),h.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:h.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})}validate(Y){switch(Y){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(Y,Z,te){return te===0?Y.accessibilitySupport:te}}),accessibilityPageSize:ke(new P(3,"accessibilityPageSize",10,1,1073741824,{description:h.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ke(new k(4,"ariaLabel",h.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ke(new l(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),h.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:h.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ke(new l(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",h.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:h.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ke(new l(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),h.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:h.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ke(new T(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(Y){switch(Y){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}},{enumDescriptions:[h.a("editor.autoIndent.none","The editor will not insert indentation automatically."),h.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),h.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),h.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),h.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:h.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ke(new S(9,"automaticLayout",!1)),autoSurround:ke(new l(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[h.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),h.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),h.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:h.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ke(new S(11,"codeLens",!0,{description:h.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ke(new S(12,"colorDecorators",!0,{description:h.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:ke(new S(13,"columnSelection",!1,{description:h.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ke(new class extends Q{constructor(){let Y={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",Y,{"editor.comments.insertSpace":{type:"boolean",default:Y.insertSpace,description:h.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:Y.ignoreEmptyLines,description:h.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{insertSpace:S.boolean(Z.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:S.boolean(Z.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:ke(new S(15,"contextmenu",!0)),copyWithSyntaxHighlighting:ke(new S(16,"copyWithSyntaxHighlighting",!0,{description:h.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ke(new T(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(Y){switch(Y){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}},{description:h.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ke(new S(18,"cursorSmoothCaretAnimation",!1,{description:h.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ke(new T(19,"cursorStyle",N.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],function(Y){switch(Y){case"line":return N.Line;case"block":return N.Block;case"underline":return N.Underline;case"line-thin":return N.LineThin;case"block-outline":return N.BlockOutline;case"underline-thin":return N.UnderlineThin}},{description:h.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ke(new P(20,"cursorSurroundingLines",0,0,1073741824,{description:h.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:ke(new l(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[h.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),h.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:h.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ke(new P(22,"cursorWidth",0,0,1073741824,{markdownDescription:h.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ke(new S(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:ke(new S(24,"disableMonospaceOptimizations",!1)),dragAndDrop:ke(new S(25,"dragAndDrop",!0,{description:h.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ke(new class extends S{constructor(){super(26,"emptySelectionClipboard",!0,{description:h.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(Y,Z,te){return te&&Y.emptySelectionClipboard}}),extraEditorClassName:ke(new k(27,"extraEditorClassName","")),fastScrollSensitivity:ke(new V(28,"fastScrollSensitivity",5,Y=>Y<=0?5:Y,{markdownDescription:h.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ke(new class extends Q{constructor(){let Y={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",Y,{"editor.find.cursorMoveOnType":{type:"boolean",default:Y.cursorMoveOnType,description:h.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Y.seedSearchStringFromSelection,description:h.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:Y.autoFindInSelection,enumDescriptions:[h.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),h.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),h.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:h.a("find.autoFindInSelection","Controls the condition for turning on find in selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:Y.globalFindClipboard,description:h.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:f.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Y.addExtraSpaceOnTop,description:h.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:Y.loop,description:h.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{cursorMoveOnType:S.boolean(Z.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:S.boolean(Z.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Y.autoFindInSelection=="boolean"?Y.autoFindInSelection?"always":"never":l.stringSet(Z.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:S.boolean(Z.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:S.boolean(Z.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:S.boolean(Z.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:ke(new S(30,"fixedOverflowWidgets",!1)),folding:ke(new S(31,"folding",!0,{description:h.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ke(new l(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[h.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),h.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:h.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ke(new S(33,"foldingHighlight",!0,{description:h.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),unfoldOnClickAfterEndOfLine:ke(new S(34,"unfoldOnClickAfterEndOfLine",!1,{description:h.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ke(new k(35,"fontFamily",q.fontFamily,{description:h.a("fontFamily","Controls the font family.")})),fontInfo:ke(new class extends y{constructor(){super(36)}compute(Y,Z,te){return Y.fontInfo}}),fontLigatures2:ke(new b),fontSize:ke(new class extends C{constructor(){super(38,"fontSize",q.fontSize,{type:"number",minimum:6,maximum:100,default:q.fontSize,description:h.a("fontSize","Controls the font size in pixels.")})}validate(Y){let Z=V.float(Y,this.defaultValue);return Z===0?q.fontSize:V.clamp(Z,6,100)}compute(Y,Z,te){return Y.fontInfo.fontSize}}),fontWeight:ke(new g),formatOnPaste:ke(new S(40,"formatOnPaste",!1,{description:h.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ke(new S(41,"formatOnType",!1,{description:h.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ke(new S(42,"glyphMargin",!0,{description:h.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ke(new class extends Q{constructor(){let Y={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},Z={type:"string",enum:["peek","gotoAndPeek","goto"],default:Y.multiple,enumDescriptions:[h.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),h.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),h.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};super(43,"gotoLocation",Y,{"editor.gotoLocation.multiple":{deprecationMessage:h.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:h.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:h.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleDeclarations":Object.assign({description:h.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleImplementations":Object.assign({description:h.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleReferences":Object.assign({description:h.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Z),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Y.alternativeDefinitionCommand,description:h.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:Y.alternativeTypeDefinitionCommand,description:h.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:Y.alternativeDeclarationCommand,description:h.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:Y.alternativeImplementationCommand,description:h.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:Y.alternativeReferenceCommand,description:h.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(Y){var Z,te,he,Ce,Ae;if(!Y||typeof Y!="object")return this.defaultValue;let L=Y;return{multiple:l.stringSet(L.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Z=L.multipleDefinitions)!==null&&Z!==void 0?Z:l.stringSet(L.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(te=L.multipleTypeDefinitions)!==null&&te!==void 0?te:l.stringSet(L.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(he=L.multipleDeclarations)!==null&&he!==void 0?he:l.stringSet(L.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Ce=L.multipleImplementations)!==null&&Ce!==void 0?Ce:l.stringSet(L.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Ae=L.multipleReferences)!==null&&Ae!==void 0?Ae:l.stringSet(L.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:k.string(L.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:k.string(L.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:k.string(L.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:k.string(L.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:k.string(L.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:ke(new S(44,"hideCursorInOverviewRuler",!1,{description:h.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ke(new S(45,"highlightActiveIndentGuide",!0,{description:h.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ke(new class extends Q{constructor(){let Y={enabled:!0,delay:300,sticky:!0};super(46,"hover",Y,{"editor.hover.enabled":{type:"boolean",default:Y.enabled,description:h.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Y.delay,description:h.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Y.sticky,description:h.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),delay:P.clampedInt(Z.delay,this.defaultValue.delay,0,1e4),sticky:S.boolean(Z.sticky,this.defaultValue.sticky)}}}),inDiffEditor:ke(new S(47,"inDiffEditor",!1)),letterSpacing:ke(new V(48,"letterSpacing",q.letterSpacing,Y=>V.clamp(Y,-5,20),{description:h.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ke(new class extends Q{constructor(){let Y={enabled:!0};super(49,"lightbulb",Y,{"editor.lightbulb.enabled":{type:"boolean",default:Y.enabled,description:h.a("codeActions","Enables the code action lightbulb in the editor.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:ke(new C(50,"lineDecorationsWidth",10)),lineHeight:ke(new class extends P{constructor(){super(51,"lineHeight",q.lineHeight,0,150,{description:h.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})}compute(Y,Z,te){return Y.fontInfo.lineHeight}}),lineNumbers:ke(new class extends Q{constructor(){super(52,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[h.a("lineNumbers.off","Line numbers are not rendered."),h.a("lineNumbers.on","Line numbers are rendered as absolute number."),h.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),h.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:h.a("lineNumbers","Controls the display of line numbers.")})}validate(Y){let Z=this.defaultValue.renderType,te=this.defaultValue.renderFn;return Y!==void 0&&(typeof Y=="function"?(Z=4,te=Y):Z=Y==="interval"?3:Y==="relative"?2:Y==="on"?1:0),{renderType:Z,renderFn:te}}}),lineNumbersMinChars:ke(new P(53,"lineNumbersMinChars",5,1,300)),links:ke(new S(54,"links",!0,{description:h.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ke(new l(55,"matchBrackets","always",["always","near","never"],{description:h.a("matchBrackets","Highlight matching brackets.")})),minimap:ke(new class extends Q{constructor(){let Y={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(56,"minimap",Y,{"editor.minimap.enabled":{type:"boolean",default:Y.enabled,description:h.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[h.a("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),h.a("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),h.a("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:Y.size,description:h.a("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Y.side,description:h.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Y.showSlider,description:h.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Y.scale,minimum:1,maximum:3,enum:[1,2,3],description:h.a("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:Y.renderCharacters,description:h.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Y.maxColumn,description:h.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),size:l.stringSet(Z.size,this.defaultValue.size,["proportional","fill","fit"]),side:l.stringSet(Z.side,this.defaultValue.side,["right","left"]),showSlider:l.stringSet(Z.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:S.boolean(Z.renderCharacters,this.defaultValue.renderCharacters),scale:P.clampedInt(Z.scale,1,1,3),maxColumn:P.clampedInt(Z.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:ke(new l(57,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ke(new V(58,"mouseWheelScrollSensitivity",1,Y=>Y===0?1:Y,{markdownDescription:h.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ke(new S(59,"mouseWheelZoom",!1,{markdownDescription:h.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ke(new S(60,"multiCursorMergeOverlapping",!0,{description:h.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ke(new T(61,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(Y){return Y==="ctrlCmd"?f.f?"metaKey":"ctrlKey":"altKey"},{markdownEnumDescriptions:[h.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),h.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:h.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ke(new l(62,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[h.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),h.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:h.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ke(new S(63,"occurrencesHighlight",!0,{description:h.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ke(new S(64,"overviewRulerBorder",!0,{description:h.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ke(new P(65,"overviewRulerLanes",3,0,3)),padding:ke(new class extends Q{constructor(){super(66,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:h.a("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:h.a("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{top:P.clampedInt(Z.top,0,0,1e3),bottom:P.clampedInt(Z.bottom,0,0,1e3)}}}),parameterHints:ke(new class extends Q{constructor(){let Y={enabled:!0,cycle:!1};super(67,"parameterHints",Y,{"editor.parameterHints.enabled":{type:"boolean",default:Y.enabled,description:h.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Y.cycle,description:h.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y;return{enabled:S.boolean(Z.enabled,this.defaultValue.enabled),cycle:S.boolean(Z.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:ke(new l(68,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[h.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),h.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:h.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ke(new S(69,"definitionLinkOpensInPeek",!1,{description:h.a("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ke(new class extends Q{constructor(){let Y={other:!0,comments:!1,strings:!1};super(70,"quickSuggestions",Y,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Y.strings,description:h.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Y.comments,description:h.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Y.other,description:h.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Y,description:h.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=Y}validate(Y){if(typeof Y=="boolean")return Y;if(Y&&typeof Y=="object"){let Z=Y,te={other:S.boolean(Z.other,this.defaultValue.other),comments:S.boolean(Z.comments,this.defaultValue.comments),strings:S.boolean(Z.strings,this.defaultValue.strings)};return!!(te.other&&te.comments&&te.strings)||!!(te.other||te.comments||te.strings)&&te}return this.defaultValue}}),quickSuggestionsDelay:ke(new P(71,"quickSuggestionsDelay",10,0,1073741824,{description:h.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ke(new S(72,"readOnly",!1)),renameOnType:ke(new S(73,"renameOnType",!1,{description:h.a("renameOnType","Controls whether the editor auto renames on type.")})),renderControlCharacters:ke(new S(74,"renderControlCharacters",!1,{description:h.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ke(new S(75,"renderIndentGuides",!0,{description:h.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ke(new S(76,"renderFinalNewline",!0,{description:h.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ke(new l(77,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",h.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:h.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ke(new S(78,"renderLineHighlightOnlyWhenFocus",!1,{description:h.a("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused")})),renderValidationDecorations:ke(new l(79,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ke(new l(80,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",h.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),h.a("renderWhitespace.selection","Render whitespace characters only on selected text."),h.a("renderWhitespace.trailing","Render only trailing whitespace characters"),""],description:h.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ke(new P(81,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ke(new S(82,"roundedSelection",!0,{description:h.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ke(new class extends Q{constructor(){let Y=[],Z={type:"number",description:h.a("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(83,"rulers",Y,{type:"array",items:{anyOf:[Z,{type:["object"],properties:{column:Z,color:{type:"string",description:h.a("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:Y,description:h.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(Y){if(Array.isArray(Y)){let Z=[];for(let te of Y)if(typeof te=="number")Z.push({column:P.clampedInt(te,0,0,1e4),color:null});else if(te&&typeof te=="object"){let he=te;Z.push({column:P.clampedInt(he.column,0,0,1e4),color:he.color})}return Z.sort((te,he)=>te.column-he.column),Z}return this.defaultValue}}),scrollbar:ke(new class extends Q{constructor(){super(84,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})}validate(Y){if(!Y||typeof Y!="object")return this.defaultValue;let Z=Y,te=P.clampedInt(Z.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),he=P.clampedInt(Z.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:P.clampedInt(Z.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:U(Z.vertical,this.defaultValue.vertical),horizontal:U(Z.horizontal,this.defaultValue.horizontal),useShadows:S.boolean(Z.useShadows,this.defaultValue.useShadows),verticalHasArrows:S.boolean(Z.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:S.boolean(Z.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:S.boolean(Z.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:S.boolean(Z.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:te,horizontalSliderSize:P.clampedInt(Z.horizontalSliderSize,te,0,1e3),verticalScrollbarSize:he,verticalSliderSize:P.clampedInt(Z.verticalSliderSize,he,0,1e3)}}}),scrollBeyondLastColumn:ke(new P(85,"scrollBeyondLastColumn",5,0,1073741824,{description:h.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ke(new S(86,"scrollBeyondLastLine",!0,{description:h.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ke(new S(87,"scrollPredominantAxis",!0,{description:h.a("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ke(new S(88,"selectionClipboard",!0,{description:h.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:f.d})),selectionHighlight:ke(new S(89,"selectionHighlight",!0,{description:h.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ke(new S(90,"selectOnLineNumbers",!0)),showFoldingControls:ke(new l(91,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[h.a("showFoldingControls.always","Always show the folding controls."),h.a("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:h.a("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ke(new S(92,"showUnused",!0,{description:h.a("showUnused","Controls fading out of unused code.")})),showDeprecated:ke(new S(113,"showDeprecated",!0,{description:h.a("showDeprecated","Controls strikethrough deprecated variables.")})),snippetSuggestions:ke(new l(93,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[h.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),h.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),h.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),h.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:h.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ke(new S(94,"smoothScrolling",!1,{description:h.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ke(new P(95,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ke(new class extends Q{constructor(){let Y={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,statusBar:{visible:!1}};super(96,"suggest",Y,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[h.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),h.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:Y.insertMode,description:h.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:Y.filterGraceful,description:h.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Y.localityBonus,description:h.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Y.shareSuggestSelections,markdownDescription:h.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:Y.snippetsPreventQuickSuggestions,description:h.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Y.showIcons,description:h.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Y.maxVisibleSuggestions,minimum:1,maximum:15,description:h.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:h.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:h.a("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,markdownDescription:h.a("editor.suggest.statusBar.visible","Controls the visibility of the status bar at the bottom of the suggest widget.")}})}validate(Y){var Z;if(!Y||typeof Y!="object")return this.defaultValue;let te=Y;return{insertMode:l.stringSet(te.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:S.boolean(te.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:S.boolean(te.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:S.boolean(te.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:S.boolean(te.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:S.boolean(te.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:P.clampedInt(te.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:S.boolean(te.showMethods,this.defaultValue.showMethods),showFunctions:S.boolean(te.showFunctions,this.defaultValue.showFunctions),showConstructors:S.boolean(te.showConstructors,this.defaultValue.showConstructors),showFields:S.boolean(te.showFields,this.defaultValue.showFields),showVariables:S.boolean(te.showVariables,this.defaultValue.showVariables),showClasses:S.boolean(te.showClasses,this.defaultValue.showClasses),showStructs:S.boolean(te.showStructs,this.defaultValue.showStructs),showInterfaces:S.boolean(te.showInterfaces,this.defaultValue.showInterfaces),showModules:S.boolean(te.showModules,this.defaultValue.showModules),showProperties:S.boolean(te.showProperties,this.defaultValue.showProperties),showEvents:S.boolean(te.showEvents,this.defaultValue.showEvents),showOperators:S.boolean(te.showOperators,this.defaultValue.showOperators),showUnits:S.boolean(te.showUnits,this.defaultValue.showUnits),showValues:S.boolean(te.showValues,this.defaultValue.showValues),showConstants:S.boolean(te.showConstants,this.defaultValue.showConstants),showEnums:S.boolean(te.showEnums,this.defaultValue.showEnums),showEnumMembers:S.boolean(te.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:S.boolean(te.showKeywords,this.defaultValue.showKeywords),showWords:S.boolean(te.showWords,this.defaultValue.showWords),showColors:S.boolean(te.showColors,this.defaultValue.showColors),showFiles:S.boolean(te.showFiles,this.defaultValue.showFiles),showReferences:S.boolean(te.showReferences,this.defaultValue.showReferences),showFolders:S.boolean(te.showFolders,this.defaultValue.showFolders),showTypeParameters:S.boolean(te.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:S.boolean(te.showSnippets,this.defaultValue.showSnippets),showUsers:S.boolean(te.showUsers,this.defaultValue.showUsers),showIssues:S.boolean(te.showIssues,this.defaultValue.showIssues),statusBar:{visible:S.boolean((Z=te.statusBar)===null||Z===void 0?void 0:Z.visible,!!this.defaultValue.statusBar.visible)}}}}),suggestFontSize:ke(new P(97,"suggestFontSize",0,0,1e3,{markdownDescription:h.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ke(new P(98,"suggestLineHeight",0,0,1e3,{markdownDescription:h.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:ke(new S(99,"suggestOnTriggerCharacters",!0,{description:h.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ke(new l(100,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[h.a("suggestSelection.first","Always select the first suggestion."),h.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),h.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:h.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ke(new l(101,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[h.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),h.a("tabCompletion.off","Disable tab completions."),h.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:h.a("tabCompletion","Enables tab completions.")})),tabIndex:ke(new P(102,"tabIndex",0,-1,1073741824)),unusualLineTerminators:ke(new l(103,"unusualLineTerminators","prompt",["off","prompt","auto"],{enumDescriptions:[h.a("unusualLineTerminators.off","Unusual line terminators are ignored."),h.a("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed."),h.a("unusualLineTerminators.auto","Unusual line terminators are automatically removed.")],description:h.a("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useTabStops:ke(new S(104,"useTabStops",!0,{description:h.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ke(new k(105,"wordSeparators",O.b,{description:h.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ke(new l(106,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[h.a("wordWrap.off","Lines will never wrap."),h.a("wordWrap.on","Lines will wrap at the viewport width."),h.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),h.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:h.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ke(new k(107,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ke(new k(108,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ke(new P(109,"wordWrapColumn",80,1,1073741824,{markdownDescription:h.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ke(new S(110,"wordWrapMinified",!0)),wrappingIndent:ke(new T(111,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],function(Y){switch(Y){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}},{enumDescriptions:[h.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),h.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),h.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),h.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:h.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ke(new l(112,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[h.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),h.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:h.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ke(new class extends y{constructor(){super(114,[57,27])}compute(Y,Z,te){let he=["monaco-editor"];return Z.get(27)&&he.push(Z.get(27)),Y.extraEditorClassName&&he.push(Y.extraEditorClassName),Z.get(57)==="default"?he.push("mouse-default"):Z.get(57)==="copy"&&he.push("mouse-copy"),Z.get(92)&&he.push("showUnused"),Z.get(113)&&he.push("showDeprecated"),he.join(" ")}}),pixelRatio:ke(new class extends y{constructor(){super(115)}compute(Y,Z,te){return Y.pixelRatio}}),tabFocusMode:ke(new class extends y{constructor(){super(116,[72])}compute(Y,Z,te){return!!Z.get(72)||Y.tabFocusMode}}),layoutInfo:ke(new j),wrappingInfo:ke(new class extends y{constructor(){super(118,[117])}compute(Y,Z,te){let he=Z.get(117);return{isDominatedByLongLines:Y.isDominatedByLongLines,isWordWrapMinified:he.isWordWrapMinified,isViewportWrapping:he.isViewportWrapping,wrappingColumn:he.wrappingColumn}}})}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return W}),r.d(w,"a",function(){return Q});var h=r(2),f=r(14),O=r(18),H=r(6),E=r(53),ge=r(37);let W=Object(O.c)("commandService"),Q=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new H.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(y,C){if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:y,handler:C})}if(y.description){let l=[];for(let N of y.description.args)l.push(N.constraint);let T=y.handler;y.handler=function(N,...b){return Object(f.m)(b,l),T(N,...b)}}let{id:S}=y,P=this._commands.get(S);P||(P=new E.a,this._commands.set(S,P));let V=P.unshift(y),k=Object(h.h)(()=>{V();let l=this._commands.get(S);(l==null?void 0:l.isEmpty())&&this._commands.delete(S)});return this._onDidRegisterCommand.fire(S),k}registerCommandAlias(y,C){return Q.registerCommand(y,(S,...P)=>S.get(W).executeCommand(C,...P))}getCommand(y){let C=this._commands.get(y);if(C&&!C.isEmpty())return ge.a.first(C)}getCommands(){let y=new Map;for(let C of this._commands.keys()){let S=this.getCommand(C);S&&y.set(C,S)}return y}}},function(Ie,w,r){"use strict";(function(h){r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E}),r.d(w,"c",function(){return ge});var f=r(11);let O=h===void 0?{cwd:()=>"/",env:Object.create(null),get platform(){return f.i?"win32":f.f?"darwin":"linux"},nextTick:W=>Object(f.j)(W)}:h,H=O.cwd,E=O.env,ge=O.platform}).call(this,r(86))},function(Ie,w,r){"use strict";var h=r(108);r.d(w,"a",function(){return h.b}),r.d(w,"b",function(){return h.e}),r.d(w,"c",function(){return h.f}),r.d(w,"d",function(){return h.h}),r.d(w,"e",function(){return h.l}),r.d(w,"f",function(){return h.m}),r.d(w,"g",function(){return h.n})},function(Ie,w,r){"use strict";r.d(w,"b",function(){return Mn}),r.d(w,"a",function(){return Gn});var h=r(13),f=r(6),O=r(2),H=r(8),E=r(23),ge=r(26),W=r(9),Q=r(3),y=r(21),C=r(58),S=r(175);class P{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function V(qt,I,ne,_e,Fe){let Xe;for(Fe.spacesDiff=0,Fe.looksLikeAlignment=!1,Xe=0;Xe<I&&Xe<_e&&qt.charCodeAt(Xe)===ne.charCodeAt(Xe);Xe++);let rt=0,Mt=0;for(let Kt=Xe;Kt<I;Kt++)qt.charCodeAt(Kt)===32?rt++:Mt++;let Dt=0,Tt=0;for(let Kt=Xe;Kt<_e;Kt++)ne.charCodeAt(Kt)===32?Dt++:Tt++;if(rt>0&&Mt>0||Dt>0&&Tt>0)return;let Ht=Math.abs(Mt-Tt),jt=Math.abs(rt-Dt);if(Ht===0)return Fe.spacesDiff=jt,void(jt>0&&0<=Dt-1&&Dt-1<qt.length&&Dt<ne.length&&ne.charCodeAt(Dt)!==32&&qt.charCodeAt(Dt-1)===32&&qt.charCodeAt(qt.length-1)===44&&(Fe.looksLikeAlignment=!0));jt%Ht!=0||(Fe.spacesDiff=jt/Ht)}function k(qt,I,ne){let _e=Math.min(qt.getLineCount(),1e4),Fe=0,Xe=0,rt="",Mt=0,Dt=[2,4,6,8,3,5,7],Tt=[0,0,0,0,0,0,0,0,0],Ht=new P;for(let wi=1;wi<=_e;wi++){let Ti=qt.getLineLength(wi),ft=qt.getLineContent(wi),X=Ti<=65536,ae=!1,Ge=0,lt=0,Ot=0;for(let ti=0,ye=Ti;ti<ye;ti++){let le=X?ft.charCodeAt(ti):qt.getLineCharCode(wi,ti);if(le===9)Ot++;else{if(le!==32){ae=!0,Ge=ti;break}lt++}}if(!ae||(Ot>0?Fe++:lt>1&&Xe++,V(rt,Mt,ft,Ge,Ht),Ht.looksLikeAlignment&&(!ne||I!==Ht.spacesDiff)))continue;let Gt=Ht.spacesDiff;Gt<=8&&Tt[Gt]++,rt=ft,Mt=Ge}let jt=ne;Fe!==Xe&&(jt=Fe<Xe);let Kt=I;if(jt){let wi=jt?0:.1*_e;Dt.forEach(Ti=>{let ft=Tt[Ti];ft>wi&&(wi=ft,Kt=Ti)}),Kt===4&&Tt[4]>0&&Tt[2]>0&&Tt[2]>=Tt[4]/2&&(Kt=2)}return{insertSpaces:jt,tabSize:Kt}}function l(qt){return(1&qt.metadata)>>>0}function T(qt,I){qt.metadata=254&qt.metadata|I<<0}function N(qt){return(2&qt.metadata)>>>1==1}function b(qt,I){qt.metadata=253&qt.metadata|(I?1:0)<<1}function g(qt){return(4&qt.metadata)>>>2==1}function j(qt,I){qt.metadata=251&qt.metadata|(I?1:0)<<2}function ie(qt){return(8&qt.metadata)>>>3==1}function U(qt,I){qt.metadata=247&qt.metadata|(I?1:0)<<3}function q(qt,I){qt.metadata=207&qt.metadata|I<<4}function B(qt,I){qt.metadata=191&qt.metadata|(I?1:0)<<6}class se{constructor(I,ne,_e){this.metadata=0,this.parent=this,this.left=this,this.right=this,T(this,1),this.start=ne,this.end=_e,this.delta=0,this.maxEnd=_e,this.id=I,this.ownerId=0,this.options=null,j(this,!1),q(this,1),U(this,!1),B(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=ne,this.cachedAbsoluteEnd=_e,this.range=null,b(this,!1)}reset(I,ne,_e,Fe){this.start=ne,this.end=_e,this.maxEnd=_e,this.cachedVersionId=I,this.cachedAbsoluteStart=ne,this.cachedAbsoluteEnd=_e,this.range=Fe}setOptions(I){this.options=I;let ne=this.options.className;j(this,ne==="squiggly-error"||ne==="squiggly-warning"||ne==="squiggly-info"),q(this,this.options.stickiness),U(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),B(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(I,ne,_e){this.cachedVersionId!==_e&&(this.range=null),this.cachedVersionId=_e,this.cachedAbsoluteStart=I,this.cachedAbsoluteEnd=ne}detach(){this.parent=null,this.left=null,this.right=null}}let ke=new se(null,0,0);ke.parent=ke,ke.left=ke,ke.right=ke,T(ke,0);class xe{constructor(){this.root=ke,this.requestNormalizeDelta=!1}intervalSearch(I,ne,_e,Fe,Xe){return this.root===ke?[]:function(rt,Mt,Dt,Tt,Ht,jt){let Kt=rt.root,wi=0,Ti=0,ft=0,X=0,ae=[],Ge=0;for(;Kt!==ke;)if(N(Kt))b(Kt.left,!1),b(Kt.right,!1),Kt===Kt.parent.right&&(wi-=Kt.parent.delta),Kt=Kt.parent;else{if(!N(Kt.left)){if(Ti=wi+Kt.maxEnd,Ti<Mt){b(Kt,!0);continue}if(Kt.left!==ke){Kt=Kt.left;continue}}if(ft=wi+Kt.start,ft>Dt)b(Kt,!0);else{if(X=wi+Kt.end,X>=Mt){Kt.setCachedOffsets(ft,X,jt);let lt=!0;Tt&&Kt.ownerId&&Kt.ownerId!==Tt&&(lt=!1),Ht&&g(Kt)&&(lt=!1),lt&&(ae[Ge++]=Kt)}b(Kt,!0),Kt.right===ke||N(Kt.right)||(wi+=Kt.delta,Kt=Kt.right)}}return b(rt.root,!1),ae}(this,I,ne,_e,Fe,Xe)}search(I,ne,_e){return this.root===ke?[]:function(Fe,Xe,rt,Mt){let Dt=Fe.root,Tt=0,Ht=0,jt=0,Kt=[],wi=0;for(;Dt!==ke;){if(N(Dt)){b(Dt.left,!1),b(Dt.right,!1),Dt===Dt.parent.right&&(Tt-=Dt.parent.delta),Dt=Dt.parent;continue}if(Dt.left!==ke&&!N(Dt.left)){Dt=Dt.left;continue}Ht=Tt+Dt.start,jt=Tt+Dt.end,Dt.setCachedOffsets(Ht,jt,Mt);let Ti=!0;Xe&&Dt.ownerId&&Dt.ownerId!==Xe&&(Ti=!1),rt&&g(Dt)&&(Ti=!1),Ti&&(Kt[wi++]=Dt),b(Dt,!0),Dt.right===ke||N(Dt.right)||(Tt+=Dt.delta,Dt=Dt.right)}return b(Fe.root,!1),Kt}(this,I,ne,_e)}collectNodesFromOwner(I){return function(ne,_e){let Fe=ne.root,Xe=[],rt=0;for(;Fe!==ke;)N(Fe)?(b(Fe.left,!1),b(Fe.right,!1),Fe=Fe.parent):Fe.left===ke||N(Fe.left)?(Fe.ownerId===_e&&(Xe[rt++]=Fe),b(Fe,!0),Fe.right===ke||N(Fe.right)||(Fe=Fe.right)):Fe=Fe.left;return b(ne.root,!1),Xe}(this,I)}collectNodesPostOrder(){return function(I){let ne=I.root,_e=[],Fe=0;for(;ne!==ke;)N(ne)?(b(ne.left,!1),b(ne.right,!1),ne=ne.parent):ne.left===ke||N(ne.left)?ne.right===ke||N(ne.right)?(_e[Fe++]=ne,b(ne,!0)):ne=ne.right:ne=ne.left;return b(I.root,!1),_e}(this)}insert(I){te(this,I),this._normalizeDeltaIfNecessary()}delete(I){he(this,I),this._normalizeDeltaIfNecessary()}resolveNode(I,ne){let _e=I,Fe=0;for(;I!==this.root;)I===I.parent.right&&(Fe+=I.parent.delta),I=I.parent;let Xe=_e.start+Fe,rt=_e.end+Fe;_e.setCachedOffsets(Xe,rt,ne)}acceptReplace(I,ne,_e,Fe){let Xe=function(rt,Mt,Dt){let Tt=rt.root,Ht=0,jt=0,Kt=0,wi=0,Ti=[],ft=0;for(;Tt!==ke;)if(N(Tt))b(Tt.left,!1),b(Tt.right,!1),Tt===Tt.parent.right&&(Ht-=Tt.parent.delta),Tt=Tt.parent;else{if(!N(Tt.left)){if(jt=Ht+Tt.maxEnd,jt<Mt){b(Tt,!0);continue}if(Tt.left!==ke){Tt=Tt.left;continue}}Kt=Ht+Tt.start,Kt>Dt?b(Tt,!0):(wi=Ht+Tt.end,wi>=Mt&&(Tt.setCachedOffsets(Kt,wi,0),Ti[ft++]=Tt),b(Tt,!0),Tt.right===ke||N(Tt.right)||(Ht+=Tt.delta,Tt=Tt.right))}return b(rt.root,!1),Ti}(this,I,I+ne);for(let rt=0,Mt=Xe.length;rt<Mt;rt++)he(this,Xe[rt]);this._normalizeDeltaIfNecessary(),function(rt,Mt,Dt,Tt){let Ht=rt.root,jt=0,Kt=0,wi=0,Ti=Tt-(Dt-Mt);for(;Ht!==ke;)if(N(Ht))b(Ht.left,!1),b(Ht.right,!1),Ht===Ht.parent.right&&(jt-=Ht.parent.delta),ct(Ht),Ht=Ht.parent;else{if(!N(Ht.left)){if(Kt=jt+Ht.maxEnd,Kt<Mt){b(Ht,!0);continue}if(Ht.left!==ke){Ht=Ht.left;continue}}wi=jt+Ht.start,wi>Dt?(Ht.start+=Ti,Ht.end+=Ti,Ht.delta+=Ti,(Ht.delta<-1073741824||Ht.delta>1073741824)&&(rt.requestNormalizeDelta=!0),b(Ht,!0)):(b(Ht,!0),Ht.right===ke||N(Ht.right)||(jt+=Ht.delta,Ht=Ht.right))}b(rt.root,!1)}(this,I,I+ne,_e),this._normalizeDeltaIfNecessary();for(let rt=0,Mt=Xe.length;rt<Mt;rt++){let Dt=Xe[rt];Dt.start=Dt.cachedAbsoluteStart,Dt.end=Dt.cachedAbsoluteEnd,Z(Dt,I,I+ne,_e,Fe),Dt.maxEnd=Dt.end,te(this,Dt)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(I){let ne=I.root,_e=0;for(;ne!==ke;)ne.left===ke||N(ne.left)?ne.right===ke||N(ne.right)?(ne.start=_e+ne.start,ne.end=_e+ne.end,ne.delta=0,ct(ne),b(ne,!0),b(ne.left,!1),b(ne.right,!1),ne===ne.parent.right&&(_e-=ne.parent.delta),ne=ne.parent):(_e+=ne.delta,ne=ne.right):ne=ne.left;b(I.root,!1)}(this))}}function Y(qt,I,ne,_e){return qt<ne||!(qt>ne)&&_e!==1&&(_e===2||I)}function Z(qt,I,ne,_e,Fe){let Xe=function(X){return(48&X.metadata)>>>4}(qt),rt=Xe===0||Xe===2,Mt=Xe===1||Xe===2,Dt=ne-I,Tt=_e,Ht=Math.min(Dt,Tt),jt=qt.start,Kt=!1,wi=qt.end,Ti=!1;I<=jt&&wi<=ne&&function(X){return(64&X.metadata)>>>6==1}(qt)&&(qt.start=I,Kt=!0,qt.end=I,Ti=!0);{let X=Fe?1:Dt>0?2:0;!Kt&&Y(jt,rt,I,X)&&(Kt=!0),!Ti&&Y(wi,Mt,I,X)&&(Ti=!0)}if(Ht>0&&!Fe){let X=Dt>Tt?2:0;!Kt&&Y(jt,rt,I+Ht,X)&&(Kt=!0),!Ti&&Y(wi,Mt,I+Ht,X)&&(Ti=!0)}{let X=Fe?1:0;!Kt&&Y(jt,rt,ne,X)&&(qt.start=I+Tt,Kt=!0),!Ti&&Y(wi,Mt,ne,X)&&(qt.end=I+Tt,Ti=!0)}let ft=Tt-Dt;Kt||(qt.start=Math.max(0,jt+ft)),Ti||(qt.end=Math.max(0,wi+ft)),qt.start>qt.end&&(qt.end=qt.start)}function te(qt,I){if(qt.root===ke)return I.parent=ke,I.left=ke,I.right=ke,T(I,0),qt.root=I,qt.root;(function(_e,Fe){let Xe=0,rt=_e.root,Mt=Fe.start,Dt=Fe.end;for(;;)if(ht(Mt,Dt,rt.start+Xe,rt.end+Xe)<0){if(rt.left===ke){Fe.start-=Xe,Fe.end-=Xe,Fe.maxEnd-=Xe,rt.left=Fe;break}rt=rt.left}else{if(rt.right===ke){Fe.start-=Xe+rt.delta,Fe.end-=Xe+rt.delta,Fe.maxEnd-=Xe+rt.delta,rt.right=Fe;break}Xe+=rt.delta,rt=rt.right}Fe.parent=rt,Fe.left=ke,Fe.right=ke,T(Fe,1)})(qt,I),Ye(I.parent);let ne=I;for(;ne!==qt.root&&l(ne.parent)===1;)if(ne.parent===ne.parent.parent.left){let _e=ne.parent.parent.right;l(_e)===1?(T(ne.parent,0),T(_e,0),T(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.right&&(ne=ne.parent,Ae(qt,ne)),T(ne.parent,0),T(ne.parent.parent,1),L(qt,ne.parent.parent))}else{let _e=ne.parent.parent.left;l(_e)===1?(T(ne.parent,0),T(_e,0),T(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.left&&(ne=ne.parent,L(qt,ne)),T(ne.parent,0),T(ne.parent.parent,1),Ae(qt,ne.parent.parent))}return T(qt.root,0),I}function he(qt,I){let ne,_e;if(I.left===ke?(ne=I.right,_e=I,ne.delta+=I.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),ne.start+=I.delta,ne.end+=I.delta):I.right===ke?(ne=I.left,_e=I):(_e=function(rt){for(;rt.left!==ke;)rt=rt.left;return rt}(I.right),ne=_e.right,ne.start+=_e.delta,ne.end+=_e.delta,ne.delta+=_e.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),_e.start+=I.delta,_e.end+=I.delta,_e.delta=I.delta,(_e.delta<-1073741824||_e.delta>1073741824)&&(qt.requestNormalizeDelta=!0)),_e===qt.root)return qt.root=ne,T(ne,0),I.detach(),Ce(),ct(ne),void(qt.root.parent=ke);let Fe,Xe=l(_e)===1;if(_e===_e.parent.left?_e.parent.left=ne:_e.parent.right=ne,_e===I?ne.parent=_e.parent:(_e.parent===I?ne.parent=_e:ne.parent=_e.parent,_e.left=I.left,_e.right=I.right,_e.parent=I.parent,T(_e,l(I)),I===qt.root?qt.root=_e:I===I.parent.left?I.parent.left=_e:I.parent.right=_e,_e.left!==ke&&(_e.left.parent=_e),_e.right!==ke&&(_e.right.parent=_e)),I.detach(),Xe)return Ye(ne.parent),_e!==I&&(Ye(_e),Ye(_e.parent)),void Ce();for(Ye(ne),Ye(ne.parent),_e!==I&&(Ye(_e),Ye(_e.parent));ne!==qt.root&&l(ne)===0;)ne===ne.parent.left?(Fe=ne.parent.right,l(Fe)===1&&(T(Fe,0),T(ne.parent,1),Ae(qt,ne.parent),Fe=ne.parent.right),l(Fe.left)===0&&l(Fe.right)===0?(T(Fe,1),ne=ne.parent):(l(Fe.right)===0&&(T(Fe.left,0),T(Fe,1),L(qt,Fe),Fe=ne.parent.right),T(Fe,l(ne.parent)),T(ne.parent,0),T(Fe.right,0),Ae(qt,ne.parent),ne=qt.root)):(Fe=ne.parent.left,l(Fe)===1&&(T(Fe,0),T(ne.parent,1),L(qt,ne.parent),Fe=ne.parent.left),l(Fe.left)===0&&l(Fe.right)===0?(T(Fe,1),ne=ne.parent):(l(Fe.left)===0&&(T(Fe.right,0),T(Fe,1),Ae(qt,Fe),Fe=ne.parent.left),T(Fe,l(ne.parent)),T(ne.parent,0),T(Fe.left,0),L(qt,ne.parent),ne=qt.root));T(ne,0),Ce()}function Ce(){ke.parent=ke,ke.delta=0,ke.start=0,ke.end=0}function Ae(qt,I){let ne=I.right;ne.delta+=I.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(qt.requestNormalizeDelta=!0),ne.start+=I.delta,ne.end+=I.delta,I.right=ne.left,ne.left!==ke&&(ne.left.parent=I),ne.parent=I.parent,I.parent===ke?qt.root=ne:I===I.parent.left?I.parent.left=ne:I.parent.right=ne,ne.left=I,I.parent=ne,ct(I),ct(ne)}function L(qt,I){let ne=I.left;I.delta-=ne.delta,(I.delta<-1073741824||I.delta>1073741824)&&(qt.requestNormalizeDelta=!0),I.start-=ne.delta,I.end-=ne.delta,I.left=ne.right,ne.right!==ke&&(ne.right.parent=I),ne.parent=I.parent,I.parent===ke?qt.root=ne:I===I.parent.right?I.parent.right=ne:I.parent.left=ne,ne.right=I,I.parent=ne,ct(I),ct(ne)}function nt(qt){let I=qt.end;if(qt.left!==ke){let ne=qt.left.maxEnd;ne>I&&(I=ne)}if(qt.right!==ke){let ne=qt.right.maxEnd+qt.delta;ne>I&&(I=ne)}return I}function ct(qt){qt.maxEnd=nt(qt)}function Ye(qt){for(;qt!==ke;){let I=nt(qt);if(qt.maxEnd===I)return;qt.maxEnd=I,qt=qt.parent}}function ht(qt,I,ne,_e){return qt===ne?I-_e:qt-ne}class fe{constructor(I,ne){this.piece=I,this.color=ne,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==$)return G(this.right);let I=this;for(;I.parent!==$&&I.parent.left!==I;)I=I.parent;return I.parent===$?$:I.parent}prev(){if(this.left!==$)return z(this.left);let I=this;for(;I.parent!==$&&I.parent.right!==I;)I=I.parent;return I.parent===$?$:I.parent}detach(){this.parent=null,this.left=null,this.right=null}}let $=new fe(null,0);function G(qt){for(;qt.left!==$;)qt=qt.left;return qt}function z(qt){for(;qt.right!==$;)qt=qt.right;return qt}function J(qt){return qt===$?0:qt.size_left+qt.piece.length+J(qt.right)}function Se(qt){return qt===$?0:qt.lf_left+qt.piece.lineFeedCnt+Se(qt.right)}function A(){$.parent=$}function ee(qt,I){let ne=I.right;ne.size_left+=I.size_left+(I.piece?I.piece.length:0),ne.lf_left+=I.lf_left+(I.piece?I.piece.lineFeedCnt:0),I.right=ne.left,ne.left!==$&&(ne.left.parent=I),ne.parent=I.parent,I.parent===$?qt.root=ne:I.parent.left===I?I.parent.left=ne:I.parent.right=ne,ne.left=I,I.parent=ne}function de(qt,I){let ne=I.left;I.left=ne.right,ne.right!==$&&(ne.right.parent=I),ne.parent=I.parent,I.size_left-=ne.size_left+(ne.piece?ne.piece.length:0),I.lf_left-=ne.lf_left+(ne.piece?ne.piece.lineFeedCnt:0),I.parent===$?qt.root=ne:I===I.parent.right?I.parent.right=ne:I.parent.left=ne,ne.right=I,I.parent=ne}function De(qt,I){let ne,_e;if(I.left===$?(_e=I,ne=_e.right):I.right===$?(_e=I,ne=_e.left):(_e=G(I.right),ne=_e.right),_e===qt.root)return qt.root=ne,ne.color=0,I.detach(),A(),void(qt.root.parent=$);let Fe,Xe=_e.color===1;if(_e===_e.parent.left?_e.parent.left=ne:_e.parent.right=ne,_e===I?(ne.parent=_e.parent,it(qt,ne)):(_e.parent===I?ne.parent=_e:ne.parent=_e.parent,it(qt,ne),_e.left=I.left,_e.right=I.right,_e.parent=I.parent,_e.color=I.color,I===qt.root?qt.root=_e:I===I.parent.left?I.parent.left=_e:I.parent.right=_e,_e.left!==$&&(_e.left.parent=_e),_e.right!==$&&(_e.right.parent=_e),_e.size_left=I.size_left,_e.lf_left=I.lf_left,it(qt,_e)),I.detach(),ne.parent.left===ne){let rt=J(ne),Mt=Se(ne);if(rt!==ne.parent.size_left||Mt!==ne.parent.lf_left){let Dt=rt-ne.parent.size_left,Tt=Mt-ne.parent.lf_left;ne.parent.size_left=rt,ne.parent.lf_left=Mt,pt(qt,ne.parent,Dt,Tt)}}if(it(qt,ne.parent),Xe)A();else{for(;ne!==qt.root&&ne.color===0;)ne===ne.parent.left?(Fe=ne.parent.right,Fe.color===1&&(Fe.color=0,ne.parent.color=1,ee(qt,ne.parent),Fe=ne.parent.right),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,ne=ne.parent):(Fe.right.color===0&&(Fe.left.color=0,Fe.color=1,de(qt,Fe),Fe=ne.parent.right),Fe.color=ne.parent.color,ne.parent.color=0,Fe.right.color=0,ee(qt,ne.parent),ne=qt.root)):(Fe=ne.parent.left,Fe.color===1&&(Fe.color=0,ne.parent.color=1,de(qt,ne.parent),Fe=ne.parent.left),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,ne=ne.parent):(Fe.left.color===0&&(Fe.right.color=0,Fe.color=1,ee(qt,Fe),Fe=ne.parent.left),Fe.color=ne.parent.color,ne.parent.color=0,Fe.left.color=0,de(qt,ne.parent),ne=qt.root));ne.color=0,A()}}function $e(qt,I){for(it(qt,I);I!==qt.root&&I.parent.color===1;)if(I.parent===I.parent.parent.left){let ne=I.parent.parent.right;ne.color===1?(I.parent.color=0,ne.color=0,I.parent.parent.color=1,I=I.parent.parent):(I===I.parent.right&&ee(qt,I=I.parent),I.parent.color=0,I.parent.parent.color=1,de(qt,I.parent.parent))}else{let ne=I.parent.parent.left;ne.color===1?(I.parent.color=0,ne.color=0,I.parent.parent.color=1,I=I.parent.parent):(I===I.parent.left&&de(qt,I=I.parent),I.parent.color=0,I.parent.parent.color=1,ee(qt,I.parent.parent))}qt.root.color=0}function pt(qt,I,ne,_e){for(;I!==qt.root&&I!==$;)I.parent.left===I&&(I.parent.size_left+=ne,I.parent.lf_left+=_e),I=I.parent}function it(qt,I){let ne=0,_e=0;if(I!==qt.root){if(ne===0){for(;I!==qt.root&&I===I.parent.right;)I=I.parent;if(I===qt.root)return;ne=J((I=I.parent).left)-I.size_left,_e=Se(I.left)-I.lf_left,I.size_left+=ne,I.lf_left+=_e}for(;I!==qt.root&&(ne!==0||_e!==0);)I.parent.left===I&&(I.parent.size_left+=ne,I.parent.lf_left+=_e),I=I.parent}}$.parent=$,$.left=$,$.right=$,$.color=0;var At=r(106);function Nt(qt){let I;return I=qt[qt.length-1]<65536?new Uint16Array(qt.length):new Uint32Array(qt.length),I.set(qt,0),I}class _i{constructor(I,ne,_e,Fe,Xe){this.lineStarts=I,this.cr=ne,this.lf=_e,this.crlf=Fe,this.isBasicASCII=Xe}}function wt(qt,I=!0){let ne=[0],_e=1;for(let Fe=0,Xe=qt.length;Fe<Xe;Fe++){let rt=qt.charCodeAt(Fe);rt===13?Fe+1<Xe&&qt.charCodeAt(Fe+1)===10?(ne[_e++]=Fe+2,Fe++):ne[_e++]=Fe+1:rt===10&&(ne[_e++]=Fe+1)}return I?Nt(ne):ne}class Ni{constructor(I,ne,_e,Fe,Xe){this.bufferIndex=I,this.start=ne,this.end=_e,this.lineFeedCnt=Fe,this.length=Xe}}class pi{constructor(I,ne){this.buffer=I,this.lineStarts=ne}}class et{constructor(I,ne){this._pieces=[],this._tree=I,this._BOM=ne,this._index=0,I.root!==$&&I.iterate(I.root,_e=>(_e!==$&&this._pieces.push(_e.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Wt{constructor(I){this._limit=I,this._cache=[]}get(I){for(let ne=this._cache.length-1;ne>=0;ne--){let _e=this._cache[ne];if(_e.nodeStartOffset<=I&&_e.nodeStartOffset+_e.node.piece.length>=I)return _e}return null}get2(I){for(let ne=this._cache.length-1;ne>=0;ne--){let _e=this._cache[ne];if(_e.nodeStartLineNumber&&_e.nodeStartLineNumber<I&&_e.nodeStartLineNumber+_e.node.piece.lineFeedCnt>=I)return _e}return null}set(I){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(I)}validate(I){let ne=!1,_e=this._cache;for(let Fe=0;Fe<_e.length;Fe++){let Xe=_e[Fe];(Xe.node.parent===null||Xe.nodeStartOffset>=I)&&(_e[Fe]=null,ne=!0)}if(ne){let Fe=[];for(let Xe of _e)Xe!==null&&Fe.push(Xe);this._cache=Fe}}}class Li{constructor(I,ne,_e){this.create(I,ne,_e)}create(I,ne,_e){this._buffers=[new pi("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=$,this._lineCnt=1,this._length=0,this._EOL=ne,this._EOLLength=ne.length,this._EOLNormalized=_e;let Fe=null;for(let Xe=0,rt=I.length;Xe<rt;Xe++)if(I[Xe].buffer.length>0){I[Xe].lineStarts||(I[Xe].lineStarts=wt(I[Xe].buffer));let Mt=new Ni(Xe+1,{line:0,column:0},{line:I[Xe].lineStarts.length-1,column:I[Xe].buffer.length-I[Xe].lineStarts[I[Xe].lineStarts.length-1]},I[Xe].lineStarts.length-1,I[Xe].buffer.length);this._buffers.push(I[Xe]),Fe=this.rbInsertRight(Fe,Mt)}this._searchCache=new Wt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(I){let ne=65535-Math.floor(21845),_e=2*ne,Fe="",Xe=0,rt=[];if(this.iterate(this.root,Mt=>{let Dt=this.getNodeContent(Mt),Tt=Dt.length;if(Xe<=ne||Xe+Tt<_e)return Fe+=Dt,Xe+=Tt,!0;let Ht=Fe.replace(/\r\n|\r|\n/g,I);return rt.push(new pi(Ht,wt(Ht))),Fe=Dt,Xe=Tt,!0}),Xe>0){let Mt=Fe.replace(/\r\n|\r|\n/g,I);rt.push(new pi(Mt,wt(Mt)))}this.create(rt,I,!0)}getEOL(){return this._EOL}setEOL(I){this._EOL=I,this._EOLLength=this._EOL.length,this.normalizeEOL(I)}createSnapshot(I){return new et(this,I)}getOffsetAt(I,ne){let _e=0,Fe=this.root;for(;Fe!==$;)if(Fe.left!==$&&Fe.lf_left+1>=I)Fe=Fe.left;else{if(Fe.lf_left+Fe.piece.lineFeedCnt+1>=I)return _e+=Fe.size_left,_e+(this.getAccumulatedValue(Fe,I-Fe.lf_left-2)+ne-1);I-=Fe.lf_left+Fe.piece.lineFeedCnt,_e+=Fe.size_left+Fe.piece.length,Fe=Fe.right}return _e}getPositionAt(I){I=Math.floor(I),I=Math.max(0,I);let ne=this.root,_e=0,Fe=I;for(;ne!==$;)if(ne.size_left!==0&&ne.size_left>=I)ne=ne.left;else{if(ne.size_left+ne.piece.length>=I){let Xe=this.getIndexOf(ne,I-ne.size_left);if(_e+=ne.lf_left+Xe.index,Xe.index===0){let rt=Fe-this.getOffsetAt(_e+1,1);return new W.a(_e+1,rt+1)}return new W.a(_e+1,Xe.remainder+1)}if(I-=ne.size_left+ne.piece.length,_e+=ne.lf_left+ne.piece.lineFeedCnt,ne.right===$){let Xe=Fe-I-this.getOffsetAt(_e+1,1);return new W.a(_e+1,Xe+1)}ne=ne.right}return new W.a(1,1)}getValueInRange(I,ne){if(I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn)return"";let _e=this.nodeAt2(I.startLineNumber,I.startColumn),Fe=this.nodeAt2(I.endLineNumber,I.endColumn),Xe=this.getValueInRange2(_e,Fe);return ne?ne===this._EOL&&this._EOLNormalized&&ne===this.getEOL()&&this._EOLNormalized?Xe:Xe.replace(/\r\n|\r|\n/g,ne):Xe}getValueInRange2(I,ne){if(I.node===ne.node){let Mt=I.node,Dt=this._buffers[Mt.piece.bufferIndex].buffer,Tt=this.offsetInBuffer(Mt.piece.bufferIndex,Mt.piece.start);return Dt.substring(Tt+I.remainder,Tt+ne.remainder)}let _e=I.node,Fe=this._buffers[_e.piece.bufferIndex].buffer,Xe=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start),rt=Fe.substring(Xe+I.remainder,Xe+_e.piece.length);for(_e=_e.next();_e!==$;){let Mt=this._buffers[_e.piece.bufferIndex].buffer,Dt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);if(_e===ne.node){rt+=Mt.substring(Dt,Dt+ne.remainder);break}rt+=Mt.substr(Dt,_e.piece.length),_e=_e.next()}return rt}getLinesContent(){let I=[],ne=0,_e="",Fe=!1;return this.iterate(this.root,Xe=>{if(Xe===$)return!0;let rt=Xe.piece,Mt=rt.length;if(Mt===0)return!0;let Dt=this._buffers[rt.bufferIndex].buffer,Tt=this._buffers[rt.bufferIndex].lineStarts,Ht=rt.start.line,jt=rt.end.line,Kt=Tt[Ht]+rt.start.column;if(Fe&&(Dt.charCodeAt(Kt)===10&&(Kt++,Mt--),I[ne++]=_e,_e="",Fe=!1,Mt===0))return!0;if(Ht===jt)return this._EOLNormalized||Dt.charCodeAt(Kt+Mt-1)!==13?_e+=Dt.substr(Kt,Mt):(Fe=!0,_e+=Dt.substr(Kt,Mt-1)),!0;_e+=this._EOLNormalized?Dt.substring(Kt,Math.max(Kt,Tt[Ht+1]-this._EOLLength)):Dt.substring(Kt,Tt[Ht+1]).replace(/(\r\n|\r|\n)$/,""),I[ne++]=_e;for(let wi=Ht+1;wi<jt;wi++)_e=this._EOLNormalized?Dt.substring(Tt[wi],Tt[wi+1]-this._EOLLength):Dt.substring(Tt[wi],Tt[wi+1]).replace(/(\r\n|\r|\n)$/,""),I[ne++]=_e;return this._EOLNormalized||Dt.charCodeAt(Tt[jt]+rt.end.column-1)!==13?_e=Dt.substr(Tt[jt],rt.end.column):(Fe=!0,rt.end.column===0?ne--:_e=Dt.substr(Tt[jt],rt.end.column-1)),!0}),Fe&&(I[ne++]=_e,_e=""),I[ne++]=_e,I}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(I){return this._lastVisitedLine.lineNumber===I||(this._lastVisitedLine.lineNumber=I,I===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(I):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(I,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(I).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(I){if(I.remainder===I.node.piece.length){let ne=I.node.next();if(!ne)return 0;let _e=this._buffers[ne.piece.bufferIndex],Fe=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);return _e.buffer.charCodeAt(Fe)}{let ne=this._buffers[I.node.piece.bufferIndex],_e=this.offsetInBuffer(I.node.piece.bufferIndex,I.node.piece.start)+I.remainder;return ne.buffer.charCodeAt(_e)}}getLineCharCode(I,ne){let _e=this.nodeAt2(I,ne+1);return this._getCharCode(_e)}getLineLength(I){if(I===this.getLineCount()){let ne=this.getOffsetAt(I,1);return this.getLength()-ne}return this.getOffsetAt(I+1,1)-this.getOffsetAt(I,1)-this._EOLLength}findMatchesInNode(I,ne,_e,Fe,Xe,rt,Mt,Dt,Tt,Ht,jt){let Kt,wi,Ti,ft=this._buffers[I.piece.bufferIndex],X=this.offsetInBuffer(I.piece.bufferIndex,I.piece.start),ae=this.offsetInBuffer(I.piece.bufferIndex,Xe),Ge=this.offsetInBuffer(I.piece.bufferIndex,rt),lt={line:0,column:0};ne._wordSeparators?(wi=ft.buffer.substring(ae,Ge),Ti=Ot=>Ot+ae,ne.reset(0)):(wi=ft.buffer,Ti=Ot=>Ot,ne.reset(ae));do if(Kt=ne.next(wi),Kt){if(Ti(Kt.index)>=Ge)return Ht;this.positionInBuffer(I,Ti(Kt.index)-X,lt);let Ot=this.getLineFeedCnt(I.piece.bufferIndex,Xe,lt),Gt=lt.line===Xe.line?lt.column-Xe.column+Fe:lt.column+1,ti=Gt+Kt[0].length;if(jt[Ht++]=Object(At.d)(new Q.a(_e+Ot,Gt,_e+Ot,ti),Kt,Dt),Ti(Kt.index)+Kt[0].length>=Ge||Ht>=Tt)return Ht}while(Kt);return Ht}findMatchesLineByLine(I,ne,_e,Fe){let Xe=[],rt=0,Mt=new At.b(ne.wordSeparators,ne.regex),Dt=this.nodeAt2(I.startLineNumber,I.startColumn);if(Dt===null)return[];let Tt=this.nodeAt2(I.endLineNumber,I.endColumn);if(Tt===null)return[];let Ht=this.positionInBuffer(Dt.node,Dt.remainder),jt=this.positionInBuffer(Tt.node,Tt.remainder);if(Dt.node===Tt.node)return this.findMatchesInNode(Dt.node,Mt,I.startLineNumber,I.startColumn,Ht,jt,ne,_e,Fe,rt,Xe),Xe;let Kt=I.startLineNumber,wi=Dt.node;for(;wi!==Tt.node;){let ft=this.getLineFeedCnt(wi.piece.bufferIndex,Ht,wi.piece.end);if(ft>=1){let ae=this._buffers[wi.piece.bufferIndex].lineStarts,Ge=this.offsetInBuffer(wi.piece.bufferIndex,wi.piece.start),lt=ae[Ht.line+ft],Ot=Kt===I.startLineNumber?I.startColumn:1;if(rt=this.findMatchesInNode(wi,Mt,Kt,Ot,Ht,this.positionInBuffer(wi,lt-Ge),ne,_e,Fe,rt,Xe),rt>=Fe)return Xe;Kt+=ft}let X=Kt===I.startLineNumber?I.startColumn-1:0;if(Kt===I.endLineNumber){let ae=this.getLineContent(Kt).substring(X,I.endColumn-1);return rt=this._findMatchesInLine(ne,Mt,ae,I.endLineNumber,X,rt,Xe,_e,Fe),Xe}if(rt=this._findMatchesInLine(ne,Mt,this.getLineContent(Kt).substr(X),Kt,X,rt,Xe,_e,Fe),rt>=Fe)return Xe;Kt++,Dt=this.nodeAt2(Kt,1),wi=Dt.node,Ht=this.positionInBuffer(Dt.node,Dt.remainder)}if(Kt===I.endLineNumber){let ft=Kt===I.startLineNumber?I.startColumn-1:0,X=this.getLineContent(Kt).substring(ft,I.endColumn-1);return rt=this._findMatchesInLine(ne,Mt,X,I.endLineNumber,ft,rt,Xe,_e,Fe),Xe}let Ti=Kt===I.startLineNumber?I.startColumn:1;return rt=this.findMatchesInNode(Tt.node,Mt,Kt,Ti,Ht,jt,ne,_e,Fe,rt,Xe),Xe}_findMatchesInLine(I,ne,_e,Fe,Xe,rt,Mt,Dt,Tt){let Ht=I.wordSeparators;if(!Dt&&I.simpleSearch){let Kt=I.simpleSearch,wi=Kt.length,Ti=_e.length,ft=-wi;for(;(ft=_e.indexOf(Kt,ft+wi))!==-1;)if((!Ht||Object(At.e)(Ht,_e,Ti,ft,wi))&&(Mt[rt++]=new C.b(new Q.a(Fe,ft+1+Xe,Fe,ft+1+wi+Xe),null),rt>=Tt))return rt;return rt}let jt;ne.reset(0);do if(jt=ne.next(_e),jt&&(Mt[rt++]=Object(At.d)(new Q.a(Fe,jt.index+1+Xe,Fe,jt.index+1+jt[0].length+Xe),jt,Dt),rt>=Tt))return rt;while(jt);return rt}insert(I,ne,_e=!1){if(this._EOLNormalized=this._EOLNormalized&&_e,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==$){let{node:Fe,remainder:Xe,nodeStartOffset:rt}=this.nodeAt(I),Mt=Fe.piece,Dt=Mt.bufferIndex,Tt=this.positionInBuffer(Fe,Xe);if(Fe.piece.bufferIndex===0&&Mt.end.line===this._lastChangeBufferPos.line&&Mt.end.column===this._lastChangeBufferPos.column&&rt+Mt.length===I&&ne.length<65535)return this.appendToNode(Fe,ne),void this.computeBufferMetadata();if(rt===I)this.insertContentToNodeLeft(ne,Fe),this._searchCache.validate(I);else if(rt+Fe.piece.length>I){let Ht=[],jt=new Ni(Mt.bufferIndex,Tt,Mt.end,this.getLineFeedCnt(Mt.bufferIndex,Tt,Mt.end),this.offsetInBuffer(Dt,Mt.end)-this.offsetInBuffer(Dt,Tt));if(this.shouldCheckCRLF()&&this.endWithCR(ne)&&this.nodeCharCodeAt(Fe,Xe)===10){let Ti={line:jt.start.line+1,column:0};jt=new Ni(jt.bufferIndex,Ti,jt.end,this.getLineFeedCnt(jt.bufferIndex,Ti,jt.end),jt.length-1),ne+=` +`}if(this.shouldCheckCRLF()&&this.startWithLF(ne))if(this.nodeCharCodeAt(Fe,Xe-1)===13){let Ti=this.positionInBuffer(Fe,Xe-1);this.deleteNodeTail(Fe,Ti),ne="\r"+ne,Fe.piece.length===0&&Ht.push(Fe)}else this.deleteNodeTail(Fe,Tt);else this.deleteNodeTail(Fe,Tt);let Kt=this.createNewPieces(ne);jt.length>0&&this.rbInsertRight(Fe,jt);let wi=Fe;for(let Ti=0;Ti<Kt.length;Ti++)wi=this.rbInsertRight(wi,Kt[Ti]);this.deleteNodes(Ht)}else this.insertContentToNodeRight(ne,Fe)}else{let Fe=this.createNewPieces(ne),Xe=this.rbInsertLeft(null,Fe[0]);for(let rt=1;rt<Fe.length;rt++)Xe=this.rbInsertRight(Xe,Fe[rt])}this.computeBufferMetadata()}delete(I,ne){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",ne<=0||this.root===$)return;let _e=this.nodeAt(I),Fe=this.nodeAt(I+ne),Xe=_e.node,rt=Fe.node;if(Xe===rt){let jt=this.positionInBuffer(Xe,_e.remainder),Kt=this.positionInBuffer(Xe,Fe.remainder);if(_e.nodeStartOffset===I){if(ne===Xe.piece.length){let wi=Xe.next();return De(this,Xe),this.validateCRLFWithPrevNode(wi),void this.computeBufferMetadata()}return this.deleteNodeHead(Xe,Kt),this._searchCache.validate(I),this.validateCRLFWithPrevNode(Xe),void this.computeBufferMetadata()}return _e.nodeStartOffset+Xe.piece.length===I+ne?(this.deleteNodeTail(Xe,jt),this.validateCRLFWithNextNode(Xe),void this.computeBufferMetadata()):(this.shrinkNode(Xe,jt,Kt),void this.computeBufferMetadata())}let Mt=[],Dt=this.positionInBuffer(Xe,_e.remainder);this.deleteNodeTail(Xe,Dt),this._searchCache.validate(I),Xe.piece.length===0&&Mt.push(Xe);let Tt=this.positionInBuffer(rt,Fe.remainder);this.deleteNodeHead(rt,Tt),rt.piece.length===0&&Mt.push(rt);for(let jt=Xe.next();jt!==$&&jt!==rt;jt=jt.next())Mt.push(jt);let Ht=Xe.piece.length===0?Xe.prev():Xe;this.deleteNodes(Mt),this.validateCRLFWithNextNode(Ht),this.computeBufferMetadata()}insertContentToNodeLeft(I,ne){let _e=[];if(this.shouldCheckCRLF()&&this.endWithCR(I)&&this.startWithLF(ne)){let rt=ne.piece,Mt={line:rt.start.line+1,column:0},Dt=new Ni(rt.bufferIndex,Mt,rt.end,this.getLineFeedCnt(rt.bufferIndex,Mt,rt.end),rt.length-1);ne.piece=Dt,I+=` +`,pt(this,ne,-1,-1),ne.piece.length===0&&_e.push(ne)}let Fe=this.createNewPieces(I),Xe=this.rbInsertLeft(ne,Fe[Fe.length-1]);for(let rt=Fe.length-2;rt>=0;rt--)Xe=this.rbInsertLeft(Xe,Fe[rt]);this.validateCRLFWithPrevNode(Xe),this.deleteNodes(_e)}insertContentToNodeRight(I,ne){this.adjustCarriageReturnFromNext(I,ne)&&(I+=` +`);let _e=this.createNewPieces(I),Fe=this.rbInsertRight(ne,_e[0]),Xe=Fe;for(let rt=1;rt<_e.length;rt++)Xe=this.rbInsertRight(Xe,_e[rt]);this.validateCRLFWithPrevNode(Fe)}positionInBuffer(I,ne,_e){let Fe=I.piece,Xe=I.piece.bufferIndex,rt=this._buffers[Xe].lineStarts,Mt=rt[Fe.start.line]+Fe.start.column+ne,Dt=Fe.start.line,Tt=Fe.end.line,Ht=0,jt=0,Kt=0;for(;Dt<=Tt&&(Ht=Dt+(Tt-Dt)/2|0,Kt=rt[Ht],Ht!==Tt);)if(jt=rt[Ht+1],Mt<Kt)Tt=Ht-1;else{if(!(Mt>=jt))break;Dt=Ht+1}return _e?(_e.line=Ht,_e.column=Mt-Kt,null):{line:Ht,column:Mt-Kt}}getLineFeedCnt(I,ne,_e){if(_e.column===0)return _e.line-ne.line;let Fe=this._buffers[I].lineStarts;if(_e.line===Fe.length-1)return _e.line-ne.line;let Xe=Fe[_e.line+1],rt=Fe[_e.line]+_e.column;if(Xe>rt+1)return _e.line-ne.line;let Mt=rt-1;return this._buffers[I].buffer.charCodeAt(Mt)===13?_e.line-ne.line+1:_e.line-ne.line}offsetInBuffer(I,ne){return this._buffers[I].lineStarts[ne.line]+ne.column}deleteNodes(I){for(let ne=0;ne<I.length;ne++)De(this,I[ne])}createNewPieces(I){if(I.length>65535){let Tt=[];for(;I.length>65535;){let jt=I.charCodeAt(65534),Kt;jt===13||jt>=55296&&jt<=56319?(Kt=I.substring(0,65534),I=I.substring(65534)):(Kt=I.substring(0,65535),I=I.substring(65535));let wi=wt(Kt);Tt.push(new Ni(this._buffers.length,{line:0,column:0},{line:wi.length-1,column:Kt.length-wi[wi.length-1]},wi.length-1,Kt.length)),this._buffers.push(new pi(Kt,wi))}let Ht=wt(I);return Tt.push(new Ni(this._buffers.length,{line:0,column:0},{line:Ht.length-1,column:I.length-Ht[Ht.length-1]},Ht.length-1,I.length)),this._buffers.push(new pi(I,Ht)),Tt}let ne=this._buffers[0].buffer.length,_e=wt(I,!1),Fe=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ne&&ne!==0&&this.startWithLF(I)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},Fe=this._lastChangeBufferPos;for(let Tt=0;Tt<_e.length;Tt++)_e[Tt]+=ne+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(_e.slice(1)),this._buffers[0].buffer+="_"+I,ne+=1}else{if(ne!==0)for(let Tt=0;Tt<_e.length;Tt++)_e[Tt]+=ne;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(_e.slice(1)),this._buffers[0].buffer+=I}let Xe=this._buffers[0].buffer.length,rt=this._buffers[0].lineStarts.length-1,Mt={line:rt,column:Xe-this._buffers[0].lineStarts[rt]},Dt=new Ni(0,Fe,Mt,this.getLineFeedCnt(0,Fe,Mt),Xe-ne);return this._lastChangeBufferPos=Mt,[Dt]}getLineRawContent(I,ne=0){let _e=this.root,Fe="",Xe=this._searchCache.get2(I);if(Xe){_e=Xe.node;let rt=this.getAccumulatedValue(_e,I-Xe.nodeStartLineNumber-1),Mt=this._buffers[_e.piece.bufferIndex].buffer,Dt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);if(Xe.nodeStartLineNumber+_e.piece.lineFeedCnt!==I){let Tt=this.getAccumulatedValue(_e,I-Xe.nodeStartLineNumber);return Mt.substring(Dt+rt,Dt+Tt-ne)}Fe=Mt.substring(Dt+rt,Dt+_e.piece.length)}else{let rt=0,Mt=I;for(;_e!==$;)if(_e.left!==$&&_e.lf_left>=I-1)_e=_e.left;else{if(_e.lf_left+_e.piece.lineFeedCnt>I-1){let Dt=this.getAccumulatedValue(_e,I-_e.lf_left-2),Tt=this.getAccumulatedValue(_e,I-_e.lf_left-1),Ht=this._buffers[_e.piece.bufferIndex].buffer,jt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);return rt+=_e.size_left,this._searchCache.set({node:_e,nodeStartOffset:rt,nodeStartLineNumber:Mt-(I-1-_e.lf_left)}),Ht.substring(jt+Dt,jt+Tt-ne)}if(_e.lf_left+_e.piece.lineFeedCnt===I-1){let Dt=this.getAccumulatedValue(_e,I-_e.lf_left-2),Tt=this._buffers[_e.piece.bufferIndex].buffer,Ht=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);Fe=Tt.substring(Ht+Dt,Ht+_e.piece.length);break}I-=_e.lf_left+_e.piece.lineFeedCnt,rt+=_e.size_left+_e.piece.length,_e=_e.right}}for(_e=_e.next();_e!==$;){let rt=this._buffers[_e.piece.bufferIndex].buffer;if(_e.piece.lineFeedCnt>0){let Mt=this.getAccumulatedValue(_e,0),Dt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);return Fe+=rt.substring(Dt,Dt+Mt-ne),Fe}{let Mt=this.offsetInBuffer(_e.piece.bufferIndex,_e.piece.start);Fe+=rt.substr(Mt,_e.piece.length)}_e=_e.next()}return Fe}computeBufferMetadata(){let I=this.root,ne=1,_e=0;for(;I!==$;)ne+=I.lf_left+I.piece.lineFeedCnt,_e+=I.size_left+I.piece.length,I=I.right;this._lineCnt=ne,this._length=_e,this._searchCache.validate(this._length)}getIndexOf(I,ne){let _e=I.piece,Fe=this.positionInBuffer(I,ne),Xe=Fe.line-_e.start.line;if(this.offsetInBuffer(_e.bufferIndex,_e.end)-this.offsetInBuffer(_e.bufferIndex,_e.start)===ne){let rt=this.getLineFeedCnt(I.piece.bufferIndex,_e.start,Fe);if(rt!==Xe)return{index:rt,remainder:0}}return{index:Xe,remainder:Fe.column}}getAccumulatedValue(I,ne){if(ne<0)return 0;let _e=I.piece,Fe=this._buffers[_e.bufferIndex].lineStarts,Xe=_e.start.line+ne+1;return Xe>_e.end.line?Fe[_e.end.line]+_e.end.column-Fe[_e.start.line]-_e.start.column:Fe[Xe]-Fe[_e.start.line]-_e.start.column}deleteNodeTail(I,ne){let _e=I.piece,Fe=_e.lineFeedCnt,Xe=this.offsetInBuffer(_e.bufferIndex,_e.end),rt=ne,Mt=this.offsetInBuffer(_e.bufferIndex,rt),Dt=this.getLineFeedCnt(_e.bufferIndex,_e.start,rt),Tt=Dt-Fe,Ht=Mt-Xe,jt=_e.length+Ht;I.piece=new Ni(_e.bufferIndex,_e.start,rt,Dt,jt),pt(this,I,Ht,Tt)}deleteNodeHead(I,ne){let _e=I.piece,Fe=_e.lineFeedCnt,Xe=this.offsetInBuffer(_e.bufferIndex,_e.start),rt=ne,Mt=this.getLineFeedCnt(_e.bufferIndex,rt,_e.end),Dt=Mt-Fe,Tt=Xe-this.offsetInBuffer(_e.bufferIndex,rt),Ht=_e.length+Tt;I.piece=new Ni(_e.bufferIndex,rt,_e.end,Mt,Ht),pt(this,I,Tt,Dt)}shrinkNode(I,ne,_e){let Fe=I.piece,Xe=Fe.start,rt=Fe.end,Mt=Fe.length,Dt=Fe.lineFeedCnt,Tt=ne,Ht=this.getLineFeedCnt(Fe.bufferIndex,Fe.start,Tt),jt=this.offsetInBuffer(Fe.bufferIndex,ne)-this.offsetInBuffer(Fe.bufferIndex,Xe);I.piece=new Ni(Fe.bufferIndex,Fe.start,Tt,Ht,jt),pt(this,I,jt-Mt,Ht-Dt);let Kt=new Ni(Fe.bufferIndex,_e,rt,this.getLineFeedCnt(Fe.bufferIndex,_e,rt),this.offsetInBuffer(Fe.bufferIndex,rt)-this.offsetInBuffer(Fe.bufferIndex,_e)),wi=this.rbInsertRight(I,Kt);this.validateCRLFWithPrevNode(wi)}appendToNode(I,ne){this.adjustCarriageReturnFromNext(ne,I)&&(ne+=` +`);let _e=this.shouldCheckCRLF()&&this.startWithLF(ne)&&this.endWithCR(I),Fe=this._buffers[0].buffer.length;this._buffers[0].buffer+=ne;let Xe=wt(ne,!1);for(let Kt=0;Kt<Xe.length;Kt++)Xe[Kt]+=Fe;if(_e){let Kt=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:Fe-Kt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Xe.slice(1));let rt=this._buffers[0].lineStarts.length-1,Mt={line:rt,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[rt]},Dt=I.piece.length+ne.length,Tt=I.piece.lineFeedCnt,Ht=this.getLineFeedCnt(0,I.piece.start,Mt),jt=Ht-Tt;I.piece=new Ni(I.piece.bufferIndex,I.piece.start,Mt,Ht,Dt),this._lastChangeBufferPos=Mt,pt(this,I,ne.length,jt)}nodeAt(I){let ne=this.root,_e=this._searchCache.get(I);if(_e)return{node:_e.node,nodeStartOffset:_e.nodeStartOffset,remainder:I-_e.nodeStartOffset};let Fe=0;for(;ne!==$;)if(ne.size_left>I)ne=ne.left;else{if(ne.size_left+ne.piece.length>=I){Fe+=ne.size_left;let Xe={node:ne,remainder:I-ne.size_left,nodeStartOffset:Fe};return this._searchCache.set(Xe),Xe}I-=ne.size_left+ne.piece.length,Fe+=ne.size_left+ne.piece.length,ne=ne.right}return null}nodeAt2(I,ne){let _e=this.root,Fe=0;for(;_e!==$;)if(_e.left!==$&&_e.lf_left>=I-1)_e=_e.left;else{if(_e.lf_left+_e.piece.lineFeedCnt>I-1){let Xe=this.getAccumulatedValue(_e,I-_e.lf_left-2),rt=this.getAccumulatedValue(_e,I-_e.lf_left-1);return Fe+=_e.size_left,{node:_e,remainder:Math.min(Xe+ne-1,rt),nodeStartOffset:Fe}}if(_e.lf_left+_e.piece.lineFeedCnt===I-1){let Xe=this.getAccumulatedValue(_e,I-_e.lf_left-2);if(Xe+ne-1<=_e.piece.length)return{node:_e,remainder:Xe+ne-1,nodeStartOffset:Fe};ne-=_e.piece.length-Xe;break}I-=_e.lf_left+_e.piece.lineFeedCnt,Fe+=_e.size_left+_e.piece.length,_e=_e.right}for(_e=_e.next();_e!==$;){if(_e.piece.lineFeedCnt>0){let Xe=this.getAccumulatedValue(_e,0),rt=this.offsetOfNode(_e);return{node:_e,remainder:Math.min(ne-1,Xe),nodeStartOffset:rt}}if(_e.piece.length>=ne-1)return{node:_e,remainder:ne-1,nodeStartOffset:this.offsetOfNode(_e)};ne-=_e.piece.length,_e=_e.next()}return null}nodeCharCodeAt(I,ne){if(I.piece.lineFeedCnt<1)return-1;let _e=this._buffers[I.piece.bufferIndex],Fe=this.offsetInBuffer(I.piece.bufferIndex,I.piece.start)+ne;return _e.buffer.charCodeAt(Fe)}offsetOfNode(I){if(!I)return 0;let ne=I.size_left;for(;I!==this.root;)I.parent.right===I&&(ne+=I.parent.size_left+I.parent.piece.length),I=I.parent;return ne}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` +`)}startWithLF(I){if(typeof I=="string")return I.charCodeAt(0)===10;if(I===$||I.piece.lineFeedCnt===0)return!1;let ne=I.piece,_e=this._buffers[ne.bufferIndex].lineStarts,Fe=ne.start.line,Xe=_e[Fe]+ne.start.column;return Fe!==_e.length-1&&!(_e[Fe+1]>Xe+1)&&this._buffers[ne.bufferIndex].buffer.charCodeAt(Xe)===10}endWithCR(I){return typeof I=="string"?I.charCodeAt(I.length-1)===13:I!==$&&I.piece.lineFeedCnt!==0&&this.nodeCharCodeAt(I,I.piece.length-1)===13}validateCRLFWithPrevNode(I){if(this.shouldCheckCRLF()&&this.startWithLF(I)){let ne=I.prev();this.endWithCR(ne)&&this.fixCRLF(ne,I)}}validateCRLFWithNextNode(I){if(this.shouldCheckCRLF()&&this.endWithCR(I)){let ne=I.next();this.startWithLF(ne)&&this.fixCRLF(I,ne)}}fixCRLF(I,ne){let _e,Fe=[],Xe=this._buffers[I.piece.bufferIndex].lineStarts;_e=I.piece.end.column===0?{line:I.piece.end.line-1,column:Xe[I.piece.end.line]-Xe[I.piece.end.line-1]-1}:{line:I.piece.end.line,column:I.piece.end.column-1};let rt=I.piece.length-1,Mt=I.piece.lineFeedCnt-1;I.piece=new Ni(I.piece.bufferIndex,I.piece.start,_e,Mt,rt),pt(this,I,-1,-1),I.piece.length===0&&Fe.push(I);let Dt={line:ne.piece.start.line+1,column:0},Tt=ne.piece.length-1,Ht=this.getLineFeedCnt(ne.piece.bufferIndex,Dt,ne.piece.end);ne.piece=new Ni(ne.piece.bufferIndex,Dt,ne.piece.end,Ht,Tt),pt(this,ne,-1,-1),ne.piece.length===0&&Fe.push(ne);let jt=this.createNewPieces(`\r +`);this.rbInsertRight(I,jt[0]);for(let Kt=0;Kt<Fe.length;Kt++)De(this,Fe[Kt])}adjustCarriageReturnFromNext(I,ne){if(this.shouldCheckCRLF()&&this.endWithCR(I)){let _e=ne.next();if(this.startWithLF(_e)){if(I+=` +`,_e.piece.length===1)De(this,_e);else{let Fe=_e.piece,Xe={line:Fe.start.line+1,column:0},rt=Fe.length-1,Mt=this.getLineFeedCnt(Fe.bufferIndex,Xe,Fe.end);_e.piece=new Ni(Fe.bufferIndex,Xe,Fe.end,Mt,rt),pt(this,_e,-1,-1)}return!0}}return!1}iterate(I,ne){if(I===$)return ne($);let _e=this.iterate(I.left,ne);return _e&&ne(I)&&this.iterate(I.right,ne)}getNodeContent(I){if(I===$)return"";let ne,_e=this._buffers[I.piece.bufferIndex],Fe=I.piece,Xe=this.offsetInBuffer(Fe.bufferIndex,Fe.start),rt=this.offsetInBuffer(Fe.bufferIndex,Fe.end);return ne=_e.buffer.substring(Xe,rt),ne}getPieceContent(I){let ne=this._buffers[I.bufferIndex],_e=this.offsetInBuffer(I.bufferIndex,I.start),Fe=this.offsetInBuffer(I.bufferIndex,I.end);return ne.buffer.substring(_e,Fe)}rbInsertRight(I,ne){let _e=new fe(ne,1);if(_e.left=$,_e.right=$,_e.parent=$,_e.size_left=0,_e.lf_left=0,this.root===$)this.root=_e,_e.color=0;else if(I.right===$)I.right=_e,_e.parent=I;else{let Fe=G(I.right);Fe.left=_e,_e.parent=Fe}return $e(this,_e),_e}rbInsertLeft(I,ne){let _e=new fe(ne,1);if(_e.left=$,_e.right=$,_e.parent=$,_e.size_left=0,_e.lf_left=0,this.root===$)this.root=_e,_e.color=0;else if(I.left===$)I.left=_e,_e.parent=I;else{let Fe=z(I.left);Fe.right=_e,_e.parent=Fe}return $e(this,_e),_e}}var Ii=r(124),Ai=r(180);class Zi{constructor(I,ne,_e,Fe,Xe,rt,Mt){this._onDidChangeContent=new f.a,this._BOM=ne,this._mightContainNonBasicASCII=!rt,this._mightContainRTL=Fe,this._mightContainUnusualLineTerminators=Xe,this._pieceTree=new Li(I,_e,Mt)}dispose(){this._onDidChangeContent.dispose()}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(I){return this._pieceTree.createSnapshot(I?this._BOM:"")}getOffsetAt(I,ne){return this._pieceTree.getOffsetAt(I,ne)}getPositionAt(I){return this._pieceTree.getPositionAt(I)}getRangeAt(I,ne){let _e=I+ne,Fe=this.getPositionAt(I),Xe=this.getPositionAt(_e);return new Q.a(Fe.lineNumber,Fe.column,Xe.lineNumber,Xe.column)}getValueInRange(I,ne=0){if(I.isEmpty())return"";let _e=this._getEndOfLine(ne);return this._pieceTree.getValueInRange(I,_e)}getValueLengthInRange(I,ne=0){if(I.isEmpty())return 0;if(I.startLineNumber===I.endLineNumber)return I.endColumn-I.startColumn;let _e=this.getOffsetAt(I.startLineNumber,I.startColumn);return this.getOffsetAt(I.endLineNumber,I.endColumn)-_e}getCharacterCountInRange(I,ne=0){if(this._mightContainNonBasicASCII){let _e=0,Fe=I.startLineNumber,Xe=I.endLineNumber;for(let rt=Fe;rt<=Xe;rt++){let Mt=this.getLineContent(rt),Dt=rt===Fe?I.startColumn-1:0,Tt=rt===Xe?I.endColumn-1:Mt.length;for(let Ht=Dt;Ht<Tt;Ht++)H.F(Mt.charCodeAt(Ht))?(_e+=1,Ht+=1):_e+=1}return _e+=this._getEndOfLine(ne).length*(Xe-Fe),_e}return this.getValueLengthInRange(I,ne)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(I){return this._pieceTree.getLineContent(I)}getLineCharCode(I,ne){return this._pieceTree.getLineCharCode(I,ne)}getLineLength(I){return this._pieceTree.getLineLength(I)}getLineFirstNonWhitespaceColumn(I){let ne=H.w(this.getLineContent(I));return ne===-1?0:ne+1}getLineLastNonWhitespaceColumn(I){let ne=H.J(this.getLineContent(I));return ne===-1?0:ne+2}_getEndOfLine(I){switch(I){case 1:return` `;case 2:return`\r -`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(I){this._pieceTree.setEOL(I)}applyEdits(I,ne,_e){let Fe=this._mightContainRTL,Xe=this._mightContainUnusualLineTerminators,ot=this._mightContainNonBasicASCII,Mt=!0,Ot=[];for(let ft=0;ft<I.length;ft++){let X=I[ft];Mt&&X._isTracked&&(Mt=!1);let ae=X.range;if(X.text){let ti=!0;ot||(ti=!H.B(X.text),ot=ti),!Fe&&ti&&(Fe=H.m(X.text)),!Xe&&ti&&(Xe=H.n(X.text))}let Ge="",lt=0,Dt=0,Gt=0;if(X.text){let ti;[lt,Dt,Gt,ti]=Object(Ii.f)(X.text);let ye=this.getEOL();Ge=ti===0||ti===(ye===`\r -`?2:1)?X.text:X.text.replace(/\r\n|\r|\n/g,ye)}Ot[ft]={sortIndex:ft,identifier:X.identifier||null,range:ae,rangeOffset:this.getOffsetAt(ae.startLineNumber,ae.startColumn),rangeLength:this.getValueLengthInRange(ae),text:Ge,eolCount:lt,firstLineLength:Dt,lastLineLength:Gt,forceMoveMarkers:Boolean(X.forceMoveMarkers),isAutoWhitespaceEdit:X.isAutoWhitespaceEdit||!1}}Ot.sort(Zi._sortOpsAscending);let Tt=!1;for(let ft=0,X=Ot.length-1;ft<X;ft++){let ae=Ot[ft].range.getEndPosition(),Ge=Ot[ft+1].range.getStartPosition();if(Ge.isBeforeOrEqual(ae)){if(Ge.isBefore(ae))throw new Error("Overlapping ranges are not allowed!");Tt=!0}}Mt&&(Ot=this._reduceOperations(Ot));let Ht=_e||ne?Zi._getInverseEditRanges(Ot):[],jt=[];if(ne)for(let ft=0;ft<Ot.length;ft++){let X=Ot[ft],ae=Ht[ft];if(X.isAutoWhitespaceEdit&&X.range.isEmpty())for(let Ge=ae.startLineNumber;Ge<=ae.endLineNumber;Ge++){let lt="";Ge===ae.startLineNumber&&(lt=this.getLineContent(X.range.startLineNumber),H.w(lt)!==-1)||jt.push({lineNumber:Ge,oldContent:lt})}}let Kt=null;if(_e){let ft=0;Kt=[];for(let X=0;X<Ot.length;X++){let ae=Ot[X],Ge=Ht[X],lt=this.getValueInRange(ae.range),Dt=ae.rangeOffset+ft;ft+=ae.text.length-lt.length,Kt[X]={sortIndex:ae.sortIndex,identifier:ae.identifier,range:Ge,text:lt,textChange:new Ai.a(ae.rangeOffset,lt,Dt,ae.text)}}Tt||Kt.sort((X,ae)=>X.sortIndex-ae.sortIndex)}this._mightContainRTL=Fe,this._mightContainUnusualLineTerminators=Xe,this._mightContainNonBasicASCII=ot;let wi=this._doApplyEdits(Ot),Ti=null;if(ne&&jt.length>0){jt.sort((ft,X)=>X.lineNumber-ft.lineNumber),Ti=[];for(let ft=0,X=jt.length;ft<X;ft++){let ae=jt[ft].lineNumber;if(ft>0&&jt[ft-1].lineNumber===ae)continue;let Ge=jt[ft].oldContent,lt=this.getLineContent(ae);lt.length!==0&<!==Ge&&H.w(lt)===-1&&Ti.push(ae)}}return this._onDidChangeContent.fire(),new C.a(Kt,wi,Ti)}_reduceOperations(I){return I.length<1e3?I:[this._toSingleEditOperation(I)]}_toSingleEditOperation(I){let ne=!1,_e=I[0].range,Fe=I[I.length-1].range,Xe=new Q.a(_e.startLineNumber,_e.startColumn,Fe.endLineNumber,Fe.endColumn),ot=_e.startLineNumber,Mt=_e.startColumn,Ot=[];for(let wi=0,Ti=I.length;wi<Ti;wi++){let ft=I[wi],X=ft.range;ne=ne||ft.forceMoveMarkers,Ot.push(this.getValueInRange(new Q.a(ot,Mt,X.startLineNumber,X.startColumn))),ft.text.length>0&&Ot.push(ft.text),ot=X.endLineNumber,Mt=X.endColumn}let Tt=Ot.join(""),[Ht,jt,Kt]=Object(Ii.f)(Tt);return{sortIndex:0,identifier:I[0].identifier,range:Xe,rangeOffset:this.getOffsetAt(Xe.startLineNumber,Xe.startColumn),rangeLength:this.getValueLengthInRange(Xe,0),text:Tt,eolCount:Ht,firstLineLength:jt,lastLineLength:Kt,forceMoveMarkers:ne,isAutoWhitespaceEdit:!1}}_doApplyEdits(I){I.sort(Zi._sortOpsDescending);let ne=[];for(let _e=0;_e<I.length;_e++){let Fe=I[_e],Xe=Fe.range.startLineNumber,ot=Fe.range.startColumn,Mt=Fe.range.endLineNumber,Ot=Fe.range.endColumn;if(Xe===Mt&&ot===Ot&&Fe.text.length===0)continue;Fe.text?(this._pieceTree.delete(Fe.rangeOffset,Fe.rangeLength),this._pieceTree.insert(Fe.rangeOffset,Fe.text,!0)):this._pieceTree.delete(Fe.rangeOffset,Fe.rangeLength);let Tt=new Q.a(Xe,ot,Mt,Ot);ne.push({range:Tt,rangeLength:Fe.rangeLength,text:Fe.text,rangeOffset:Fe.rangeOffset,forceMoveMarkers:Fe.forceMoveMarkers})}return ne}findMatchesLineByLine(I,ne,_e,Fe){return this._pieceTree.findMatchesLineByLine(I,ne,_e,Fe)}static _getInverseEditRanges(I){let ne=[],_e=0,Fe=0,Xe=null;for(let ot=0,Mt=I.length;ot<Mt;ot++){let Ot,Tt,Ht,jt=I[ot];if(Xe?Xe.range.endLineNumber===jt.range.startLineNumber?(Ot=_e,Tt=Fe+(jt.range.startColumn-Xe.range.endColumn)):(Ot=_e+(jt.range.startLineNumber-Xe.range.endLineNumber),Tt=jt.range.startColumn):(Ot=jt.range.startLineNumber,Tt=jt.range.startColumn),jt.text.length>0){let Kt=jt.eolCount+1;Ht=Kt===1?new Q.a(Ot,Tt,Ot,Tt+jt.firstLineLength):new Q.a(Ot,Tt,Ot+Kt-1,jt.lastLineLength+1)}else Ht=new Q.a(Ot,Tt,Ot,Tt);_e=Ht.endLineNumber,Fe=Ht.endColumn,ne.push(Ht),Xe=jt}return ne}static _sortOpsAscending(I,ne){let _e=Q.a.compareRangesUsingEnds(I.range,ne.range);return _e===0?I.sortIndex-ne.sortIndex:_e}static _sortOpsDescending(I,ne){let _e=Q.a.compareRangesUsingEnds(I.range,ne.range);return _e===0?ne.sortIndex-I.sortIndex:-_e}}class Bi{constructor(I,ne,_e,Fe,Xe,ot,Mt,Ot,Tt){this._chunks=I,this._bom=ne,this._cr=_e,this._lf=Fe,this._crlf=Xe,this._containsRTL=ot,this._containsUnusualLineTerminators=Mt,this._isBasicASCII=Ot,this._normalizeEOL=Tt}_getEOL(I){let ne=this._cr+this._lf+this._crlf,_e=this._cr+this._crlf;return ne===0?I===1?` +`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(I){this._pieceTree.setEOL(I)}applyEdits(I,ne,_e){let Fe=this._mightContainRTL,Xe=this._mightContainUnusualLineTerminators,rt=this._mightContainNonBasicASCII,Mt=!0,Dt=[];for(let ft=0;ft<I.length;ft++){let X=I[ft];Mt&&X._isTracked&&(Mt=!1);let ae=X.range;if(X.text){let ti=!0;rt||(ti=!H.B(X.text),rt=ti),!Fe&&ti&&(Fe=H.m(X.text)),!Xe&&ti&&(Xe=H.n(X.text))}let Ge="",lt=0,Ot=0,Gt=0;if(X.text){let ti;[lt,Ot,Gt,ti]=Object(Ii.f)(X.text);let ye=this.getEOL();Ge=ti===0||ti===(ye===`\r +`?2:1)?X.text:X.text.replace(/\r\n|\r|\n/g,ye)}Dt[ft]={sortIndex:ft,identifier:X.identifier||null,range:ae,rangeOffset:this.getOffsetAt(ae.startLineNumber,ae.startColumn),rangeLength:this.getValueLengthInRange(ae),text:Ge,eolCount:lt,firstLineLength:Ot,lastLineLength:Gt,forceMoveMarkers:Boolean(X.forceMoveMarkers),isAutoWhitespaceEdit:X.isAutoWhitespaceEdit||!1}}Dt.sort(Zi._sortOpsAscending);let Tt=!1;for(let ft=0,X=Dt.length-1;ft<X;ft++){let ae=Dt[ft].range.getEndPosition(),Ge=Dt[ft+1].range.getStartPosition();if(Ge.isBeforeOrEqual(ae)){if(Ge.isBefore(ae))throw new Error("Overlapping ranges are not allowed!");Tt=!0}}Mt&&(Dt=this._reduceOperations(Dt));let Ht=_e||ne?Zi._getInverseEditRanges(Dt):[],jt=[];if(ne)for(let ft=0;ft<Dt.length;ft++){let X=Dt[ft],ae=Ht[ft];if(X.isAutoWhitespaceEdit&&X.range.isEmpty())for(let Ge=ae.startLineNumber;Ge<=ae.endLineNumber;Ge++){let lt="";Ge===ae.startLineNumber&&(lt=this.getLineContent(X.range.startLineNumber),H.w(lt)!==-1)||jt.push({lineNumber:Ge,oldContent:lt})}}let Kt=null;if(_e){let ft=0;Kt=[];for(let X=0;X<Dt.length;X++){let ae=Dt[X],Ge=Ht[X],lt=this.getValueInRange(ae.range),Ot=ae.rangeOffset+ft;ft+=ae.text.length-lt.length,Kt[X]={sortIndex:ae.sortIndex,identifier:ae.identifier,range:Ge,text:lt,textChange:new Ai.a(ae.rangeOffset,lt,Ot,ae.text)}}Tt||Kt.sort((X,ae)=>X.sortIndex-ae.sortIndex)}this._mightContainRTL=Fe,this._mightContainUnusualLineTerminators=Xe,this._mightContainNonBasicASCII=rt;let wi=this._doApplyEdits(Dt),Ti=null;if(ne&&jt.length>0){jt.sort((ft,X)=>X.lineNumber-ft.lineNumber),Ti=[];for(let ft=0,X=jt.length;ft<X;ft++){let ae=jt[ft].lineNumber;if(ft>0&&jt[ft-1].lineNumber===ae)continue;let Ge=jt[ft].oldContent,lt=this.getLineContent(ae);lt.length!==0&<!==Ge&&H.w(lt)===-1&&Ti.push(ae)}}return this._onDidChangeContent.fire(),new C.a(Kt,wi,Ti)}_reduceOperations(I){return I.length<1e3?I:[this._toSingleEditOperation(I)]}_toSingleEditOperation(I){let ne=!1,_e=I[0].range,Fe=I[I.length-1].range,Xe=new Q.a(_e.startLineNumber,_e.startColumn,Fe.endLineNumber,Fe.endColumn),rt=_e.startLineNumber,Mt=_e.startColumn,Dt=[];for(let wi=0,Ti=I.length;wi<Ti;wi++){let ft=I[wi],X=ft.range;ne=ne||ft.forceMoveMarkers,Dt.push(this.getValueInRange(new Q.a(rt,Mt,X.startLineNumber,X.startColumn))),ft.text.length>0&&Dt.push(ft.text),rt=X.endLineNumber,Mt=X.endColumn}let Tt=Dt.join(""),[Ht,jt,Kt]=Object(Ii.f)(Tt);return{sortIndex:0,identifier:I[0].identifier,range:Xe,rangeOffset:this.getOffsetAt(Xe.startLineNumber,Xe.startColumn),rangeLength:this.getValueLengthInRange(Xe,0),text:Tt,eolCount:Ht,firstLineLength:jt,lastLineLength:Kt,forceMoveMarkers:ne,isAutoWhitespaceEdit:!1}}_doApplyEdits(I){I.sort(Zi._sortOpsDescending);let ne=[];for(let _e=0;_e<I.length;_e++){let Fe=I[_e],Xe=Fe.range.startLineNumber,rt=Fe.range.startColumn,Mt=Fe.range.endLineNumber,Dt=Fe.range.endColumn;if(Xe===Mt&&rt===Dt&&Fe.text.length===0)continue;Fe.text?(this._pieceTree.delete(Fe.rangeOffset,Fe.rangeLength),this._pieceTree.insert(Fe.rangeOffset,Fe.text,!0)):this._pieceTree.delete(Fe.rangeOffset,Fe.rangeLength);let Tt=new Q.a(Xe,rt,Mt,Dt);ne.push({range:Tt,rangeLength:Fe.rangeLength,text:Fe.text,rangeOffset:Fe.rangeOffset,forceMoveMarkers:Fe.forceMoveMarkers})}return ne}findMatchesLineByLine(I,ne,_e,Fe){return this._pieceTree.findMatchesLineByLine(I,ne,_e,Fe)}static _getInverseEditRanges(I){let ne=[],_e=0,Fe=0,Xe=null;for(let rt=0,Mt=I.length;rt<Mt;rt++){let Dt,Tt,Ht,jt=I[rt];if(Xe?Xe.range.endLineNumber===jt.range.startLineNumber?(Dt=_e,Tt=Fe+(jt.range.startColumn-Xe.range.endColumn)):(Dt=_e+(jt.range.startLineNumber-Xe.range.endLineNumber),Tt=jt.range.startColumn):(Dt=jt.range.startLineNumber,Tt=jt.range.startColumn),jt.text.length>0){let Kt=jt.eolCount+1;Ht=Kt===1?new Q.a(Dt,Tt,Dt,Tt+jt.firstLineLength):new Q.a(Dt,Tt,Dt+Kt-1,jt.lastLineLength+1)}else Ht=new Q.a(Dt,Tt,Dt,Tt);_e=Ht.endLineNumber,Fe=Ht.endColumn,ne.push(Ht),Xe=jt}return ne}static _sortOpsAscending(I,ne){let _e=Q.a.compareRangesUsingEnds(I.range,ne.range);return _e===0?I.sortIndex-ne.sortIndex:_e}static _sortOpsDescending(I,ne){let _e=Q.a.compareRangesUsingEnds(I.range,ne.range);return _e===0?ne.sortIndex-I.sortIndex:-_e}}class Bi{constructor(I,ne,_e,Fe,Xe,rt,Mt,Dt,Tt){this._chunks=I,this._bom=ne,this._cr=_e,this._lf=Fe,this._crlf=Xe,this._containsRTL=rt,this._containsUnusualLineTerminators=Mt,this._isBasicASCII=Dt,this._normalizeEOL=Tt}_getEOL(I){let ne=this._cr+this._lf+this._crlf,_e=this._cr+this._crlf;return ne===0?I===1?` `:`\r `:_e>ne/2?`\r `:` `}create(I){let ne=this._getEOL(I),_e=this._chunks;if(this._normalizeEOL&&(ne===`\r `&&(this._cr>0||this._lf>0)||ne===` -`&&(this._cr>0||this._crlf>0)))for(let Fe=0,Xe=_e.length;Fe<Xe;Fe++){let ot=_e[Fe].buffer.replace(/\r\n|\r|\n/g,ne),Mt=wt(ot);_e[Fe]=new pi(ot,Mt)}return new Zi(_e,this._bom,ne,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL)}}class Lt{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(I){if(I.length===0)return;this.chunks.length===0&&H.U(I)&&(this.BOM=H.b,I=I.substr(1));let ne=I.charCodeAt(I.length-1);ne===13||ne>=55296&&ne<=56319?(this._acceptChunk1(I.substr(0,I.length-1),!1),this._hasPreviousChar=!0,this._previousChar=ne):(this._acceptChunk1(I,!1),this._hasPreviousChar=!1,this._previousChar=ne)}_acceptChunk1(I,ne){(ne||I.length!==0)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+I):this._acceptChunk2(I))}_acceptChunk2(I){let ne=function(_e,Fe){_e.length=0,_e[0]=0;let Xe=1,ot=0,Mt=0,Ot=0,Tt=!0;for(let jt=0,Kt=Fe.length;jt<Kt;jt++){let wi=Fe.charCodeAt(jt);wi===13?jt+1<Kt&&Fe.charCodeAt(jt+1)===10?(Ot++,_e[Xe++]=jt+2,jt++):(ot++,_e[Xe++]=jt+1):wi===10?(Mt++,_e[Xe++]=jt+1):Tt&&wi!==9&&(wi<32||wi>126)&&(Tt=!1)}let Ht=new _i(Nt(_e),ot,Mt,Ot,Tt);return _e.length=0,Ht}(this._tmpLineStarts,I);this.chunks.push(new pi(I,ne.lineStarts)),this.cr+=ne.cr,this.lf+=ne.lf,this.crlf+=ne.crlf,this.isBasicASCII&&(this.isBasicASCII=ne.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=H.m(I)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=H.n(I))}finish(I=!0){return this._finish(),new Bi(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,I)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let I=this.chunks[this.chunks.length-1];I.buffer+=String.fromCharCode(this._previousChar);let ne=wt(I.buffer);I.lineStarts=ne,this._previousChar===13&&this.cr++}}}class Di{constructor(){this.changeType=1}}class gt{constructor(I,ne){this.changeType=2,this.lineNumber=I,this.detail=ne}}class vi{constructor(I,ne){this.changeType=3,this.fromLineNumber=I,this.toLineNumber=ne}}class Rt{constructor(I,ne,_e){this.changeType=4,this.fromLineNumber=I,this.toLineNumber=ne,this.detail=_e}}class vt{constructor(){this.changeType=5}}class Ue{constructor(I,ne,_e,Fe){this.changes=I,this.versionId=ne,this.isUndoing=_e,this.isRedoing=Fe,this.resultingSelection=null}containsEvent(I){for(let ne=0,_e=this.changes.length;ne<_e;ne++)if(this.changes[ne].changeType===I)return!0;return!1}static merge(I,ne){let _e=[].concat(I.changes).concat(ne.changes),Fe=ne.versionId,Xe=I.isUndoing||ne.isUndoing,ot=I.isRedoing||ne.isRedoing;return new Ue(_e,Fe,Xe,ot)}}class ut{constructor(I,ne){this.rawContentChangedEvent=I,this.contentChangedEvent=ne}merge(I){let ne=Ue.merge(this.rawContentChangedEvent,I.rawContentChangedEvent),_e=ut._mergeChangeEvents(this.contentChangedEvent,I.contentChangedEvent);return new ut(ne,_e)}static _mergeChangeEvents(I,ne){return{changes:[].concat(I.changes).concat(ne.changes),eol:ne.eol,versionId:ne.versionId,isUndoing:I.isUndoing||ne.isUndoing,isRedoing:I.isRedoing||ne.isRedoing,isFlush:I.isFlush||ne.isFlush}}}var ze=o(15),st=o(111),_t=o(12),oi=o(90),li=o(158),gi=o(11);class ki{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(I){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,I&&this._setBeginState(0,I)}flush(I){this._reset(I)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(I){I<this._len&&(this._valid[I]=!1),I<this._invalidLineStartIndex&&(this._invalidLineStartIndex=I)}_isValid(I){return I<this._len&&this._valid[I]}getBeginState(I){return I<this._len?this._beginState[I]:null}_ensureLine(I){for(;I>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(I,ne){ne!==0&&(I+ne>this._len&&(ne=this._len-I),this._beginState.splice(I,ne),this._valid.splice(I,ne),this._len-=ne)}_insertLines(I,ne){if(ne===0)return;let _e=[],Fe=[];for(let Xe=0;Xe<ne;Xe++)_e[Xe]=null,Fe[Xe]=!1;this._beginState=ze.a(this._beginState,I,_e),this._valid=ze.a(this._valid,I,Fe),this._len+=ne}_setValid(I,ne){this._ensureLine(I),this._valid[I]=ne}_setBeginState(I,ne){this._ensureLine(I),this._beginState[I]=ne}setEndState(I,ne,_e){if(this._setValid(ne,!0),this._invalidLineStartIndex=ne+1,ne===I-1)return;let Fe=this.getBeginState(ne+1);if(Fe===null||!_e.equals(Fe))return this._setBeginState(ne+1,_e),void this._invalidateLine(ne+1);let Xe=ne+1;for(;Xe<I&&this._isValid(Xe);)Xe++;this._invalidLineStartIndex=Xe}setFakeTokens(I){this._setValid(I,!1)}applyEdits(I,ne){let _e=I.endLineNumber-I.startLineNumber,Fe=ne;for(let Xe=Math.min(_e,Fe);Xe>=0;Xe--)this._invalidateLine(I.startLineNumber+Xe-1);this._acceptDeleteRange(I),this._acceptInsertText(new W.a(I.startLineNumber,I.startColumn),ne)}_acceptDeleteRange(I){I.startLineNumber-1>=this._len||this._deleteLines(I.startLineNumber,I.endLineNumber-I.startLineNumber)}_acceptInsertText(I,ne){I.lineNumber-1>=this._len||this._insertLines(I.lineNumber,ne)}}class Ri extends D.a{constructor(I){super(),this._isDisposed=!1,this._textModel=I,this._tokenizationStateStore=new ki,this._tokenizationSupport=null,this._register(_t.C.onDidChange(ne=>{let _e=this._textModel.getLanguageIdentifier();ne.changedLanguages.indexOf(_e.language)!==-1&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeRawContentFast(ne=>{ne.containsEvent(1)&&this._resetTokenizationState()})),this._register(this._textModel.onDidChangeContentFast(ne=>{for(let _e=0,Fe=ne.changes.length;_e<Fe;_e++){let Xe=ne.changes[_e],[ot]=Object(Ii.f)(Xe.text);this._tokenizationStateStore.applyEdits(Xe.range,ot)}this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){let[I,ne]=function(_e){let Fe=_e.getLanguageIdentifier(),Xe=_e.isTooLargeForTokenization()?null:_t.C.get(Fe.language),ot=null;if(Xe)try{ot=Xe.getInitialState()}catch(Mt){Object(h.e)(Mt),Xe=null}return[Xe,ot]}(this._textModel);this._tokenizationSupport=I,this._tokenizationStateStore.flush(ne),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&gi.j(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(I=this._textModel.getLineCount()){let ne=new Ii.b,_e=li.a.create(!1);for(;this._hasLinesToTokenize()&&!(_e.elapsed()>1)&&!(this._tokenizeOneInvalidLine(ne)>=I););this._beginBackgroundTokenization(),this._textModel.setTokens(ne.tokens)}tokenizeViewport(I,ne){let _e=new Ii.b;this._tokenizeViewport(_e,I,ne),this._textModel.setTokens(_e.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(I){let ne=new Ii.b;this._updateTokensUntilLine(ne,I),this._textModel.setTokens(ne.tokens)}isCheapToTokenize(I){if(!this._tokenizationSupport)return!0;let ne=this._tokenizationStateStore.invalidLineStartIndex+1;return!(I>ne)&&(I<ne||this._textModel.getLineLength(I)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(I){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;let ne=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(I,ne),ne}_updateTokensUntilLine(I,ne){if(!this._tokenizationSupport)return;let _e=this._textModel.getLanguageIdentifier(),Fe=this._textModel.getLineCount(),Xe=ne-1;for(let ot=this._tokenizationStateStore.invalidLineStartIndex;ot<=Xe;ot++){let Mt=this._textModel.getLineContent(ot+1),Ot=this._tokenizationStateStore.getBeginState(ot),Tt=$i(_e,this._tokenizationSupport,Mt,Ot);I.add(ot+1,Tt.tokens),this._tokenizationStateStore.setEndState(Fe,ot,Tt.endState),ot=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(I,ne,_e){if(!this._tokenizationSupport||_e<=this._tokenizationStateStore.invalidLineStartIndex)return;if(ne<=this._tokenizationStateStore.invalidLineStartIndex)return void this._updateTokensUntilLine(I,_e);let Fe=this._textModel.getLineFirstNonWhitespaceColumn(ne),Xe=[],ot=null;for(let Tt=ne-1;Fe>0&&Tt>=1;Tt--){let Ht=this._textModel.getLineFirstNonWhitespaceColumn(Tt);if(Ht!==0&&Ht<Fe){if(ot=this._tokenizationStateStore.getBeginState(Tt-1),ot)break;Xe.push(this._textModel.getLineContent(Tt)),Fe=Ht}}ot||(ot=this._tokenizationSupport.getInitialState());let Mt=this._textModel.getLanguageIdentifier(),Ot=ot;for(let Tt=Xe.length-1;Tt>=0;Tt--)Ot=$i(Mt,this._tokenizationSupport,Xe[Tt],Ot).endState;for(let Tt=ne;Tt<=_e;Tt++){let Ht=this._textModel.getLineContent(Tt),jt=$i(Mt,this._tokenizationSupport,Ht,Ot);I.add(Tt,jt.tokens),this._tokenizationStateStore.setFakeTokens(Tt-1),Ot=jt.endState}}}function $i(qt,I,ne,_e){let Fe=null;if(I)try{Fe=I.tokenize2(ne,_e.clone(),0)}catch(Xe){Object(h.e)(Xe)}return Fe||(Fe=Object(oi.e)(qt.id,ne,_e,0)),st.a.convertToEndOffset(Fe.tokens,ne.length),Fe}var Hi=o(73),yi=o(39),kt=o(114),Et=o(119),si=o(16);function Si(qt){let I=new Lt;return I.acceptChunk(qt),I.finish()}function Pi(qt,I){return(typeof qt=="string"?Si(qt):qt).create(I)}let Wi=0;class xn{constructor(I){this._source=I,this._eos=!1}read(){if(this._eos)return null;let I=[],ne=0,_e=0;for(;;){let Fe=this._source.read();if(Fe===null)return this._eos=!0,ne===0?null:I.join("");if(Fe.length>0&&(I[ne++]=Fe,_e+=Fe.length),_e>=65536)return I.join("")}}}let un=()=>{throw new Error("Invalid change accessor")};class bn{constructor(){this._searchCanceledBrand=void 0}}function Fn(qt){return qt instanceof bn?null:qt}bn.INSTANCE=new bn;class Mn extends D.a{constructor(I,ne,_e,Fe=null,Xe){super(),this._onWillDispose=this._register(new f.a),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new On),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new f.a),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new f.a),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new f.a),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new f.a),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new f.a),this.onDidChangeAttached=this._onDidChangeAttached.event,this._eventEmitter=this._register(new Dn),Wi++,this.id="$model"+Wi,this.isForSimpleWidget=ne.isForSimpleWidget,this._associatedResource=Fe??E.a.parse("inmemory://model/"+Wi),this._undoRedoService=Xe,this._attachedEditorCount=0,this._buffer=Pi(I,ne.defaultEOL),this._options=Mn.resolveOptions(this._buffer,ne);let ot=this._buffer.getLineCount(),Mt=this._buffer.getValueLengthInRange(new Q.a(1,1,ot,this._buffer.getLineLength(ot)+1),0);ne.largeFileOptimizations?this._isTooLargeForTokenization=Mt>Mn.LARGE_FILE_SIZE_THRESHOLD||ot>Mn.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=Mt>Mn.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=_e||oi.a,this._languageRegistryListener=yi.a.onDidChange(Ot=>{Ot.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=H.R(Wi),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Nn,this._commandManager=new S.a(this,Xe),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new Ii.d,this._tokens2=new Ii.e,this._tokenization=new Ri(this)}static resolveOptions(I,ne){if(ne.detectIndentation){let _e=k(I,ne.tabSize,ne.insertSpaces);return new C.e({tabSize:_e.tabSize,indentSize:_e.tabSize,insertSpaces:_e.insertSpaces,trimAutoWhitespace:ne.trimAutoWhitespace,defaultEOL:ne.defaultEOL})}return new C.e({tabSize:ne.tabSize,indentSize:ne.indentSize,insertSpaces:ne.insertSpaces,trimAutoWhitespace:ne.trimAutoWhitespace,defaultEOL:ne.defaultEOL})}onDidChangeRawContentFast(I){return this._eventEmitter.fastEvent(ne=>I(ne.rawContentChangedEvent))}onDidChangeContentFast(I){return this._eventEmitter.fastEvent(ne=>I(ne.contentChangedEvent))}onDidChangeContent(I){return this._eventEmitter.slowEvent(ne=>I(ne.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._isDisposing=!1}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(I,ne){this._isDisposing||this._eventEmitter.fire(new ut(I,ne))}setValue(I){if(this._assertNotDisposed(),I===null)return;let ne=Pi(I,this._options.defaultEOL);this.setValueFromTextBuffer(ne)}_createContentChanged2(I,ne,_e,Fe,Xe,ot,Mt){return{changes:[{range:I,rangeOffset:ne,rangeLength:_e,text:Fe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Xe,isRedoing:ot,isFlush:Mt}}setValueFromTextBuffer(I){if(this._assertNotDisposed(),I===null)return;let ne=this.getFullModelRange(),_e=this.getValueLengthInRange(ne),Fe=this.getLineCount(),Xe=this.getLineMaxColumn(Fe);this._buffer=I,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Nn,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Ue([new Di],this._versionId,!1,!1),this._createContentChanged2(new Q.a(1,1,Fe,Xe),0,_e,this.getValue(),!1,!1,!0))}setEOL(I){this._assertNotDisposed();let ne=I===1?`\r +`&&(this._cr>0||this._crlf>0)))for(let Fe=0,Xe=_e.length;Fe<Xe;Fe++){let rt=_e[Fe].buffer.replace(/\r\n|\r|\n/g,ne),Mt=wt(rt);_e[Fe]=new pi(rt,Mt)}return new Zi(_e,this._bom,ne,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL)}}class Lt{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(I){if(I.length===0)return;this.chunks.length===0&&H.U(I)&&(this.BOM=H.b,I=I.substr(1));let ne=I.charCodeAt(I.length-1);ne===13||ne>=55296&&ne<=56319?(this._acceptChunk1(I.substr(0,I.length-1),!1),this._hasPreviousChar=!0,this._previousChar=ne):(this._acceptChunk1(I,!1),this._hasPreviousChar=!1,this._previousChar=ne)}_acceptChunk1(I,ne){(ne||I.length!==0)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+I):this._acceptChunk2(I))}_acceptChunk2(I){let ne=function(_e,Fe){_e.length=0,_e[0]=0;let Xe=1,rt=0,Mt=0,Dt=0,Tt=!0;for(let jt=0,Kt=Fe.length;jt<Kt;jt++){let wi=Fe.charCodeAt(jt);wi===13?jt+1<Kt&&Fe.charCodeAt(jt+1)===10?(Dt++,_e[Xe++]=jt+2,jt++):(rt++,_e[Xe++]=jt+1):wi===10?(Mt++,_e[Xe++]=jt+1):Tt&&wi!==9&&(wi<32||wi>126)&&(Tt=!1)}let Ht=new _i(Nt(_e),rt,Mt,Dt,Tt);return _e.length=0,Ht}(this._tmpLineStarts,I);this.chunks.push(new pi(I,ne.lineStarts)),this.cr+=ne.cr,this.lf+=ne.lf,this.crlf+=ne.crlf,this.isBasicASCII&&(this.isBasicASCII=ne.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=H.m(I)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=H.n(I))}finish(I=!0){return this._finish(),new Bi(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,I)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let I=this.chunks[this.chunks.length-1];I.buffer+=String.fromCharCode(this._previousChar);let ne=wt(I.buffer);I.lineStarts=ne,this._previousChar===13&&this.cr++}}}class Oi{constructor(){this.changeType=1}}class gt{constructor(I,ne){this.changeType=2,this.lineNumber=I,this.detail=ne}}class vi{constructor(I,ne){this.changeType=3,this.fromLineNumber=I,this.toLineNumber=ne}}class Rt{constructor(I,ne,_e){this.changeType=4,this.fromLineNumber=I,this.toLineNumber=ne,this.detail=_e}}class vt{constructor(){this.changeType=5}}class Ue{constructor(I,ne,_e,Fe){this.changes=I,this.versionId=ne,this.isUndoing=_e,this.isRedoing=Fe,this.resultingSelection=null}containsEvent(I){for(let ne=0,_e=this.changes.length;ne<_e;ne++)if(this.changes[ne].changeType===I)return!0;return!1}static merge(I,ne){let _e=[].concat(I.changes).concat(ne.changes),Fe=ne.versionId,Xe=I.isUndoing||ne.isUndoing,rt=I.isRedoing||ne.isRedoing;return new Ue(_e,Fe,Xe,rt)}}class ut{constructor(I,ne){this.rawContentChangedEvent=I,this.contentChangedEvent=ne}merge(I){let ne=Ue.merge(this.rawContentChangedEvent,I.rawContentChangedEvent),_e=ut._mergeChangeEvents(this.contentChangedEvent,I.contentChangedEvent);return new ut(ne,_e)}static _mergeChangeEvents(I,ne){return{changes:[].concat(I.changes).concat(ne.changes),eol:ne.eol,versionId:ne.versionId,isUndoing:I.isUndoing||ne.isUndoing,isRedoing:I.isRedoing||ne.isRedoing,isFlush:I.isFlush||ne.isFlush}}}var ze=r(16),st=r(111),_t=r(12),ri=r(90),li=r(158),gi=r(11);class ki{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(I){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,I&&this._setBeginState(0,I)}flush(I){this._reset(I)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(I){I<this._len&&(this._valid[I]=!1),I<this._invalidLineStartIndex&&(this._invalidLineStartIndex=I)}_isValid(I){return I<this._len&&this._valid[I]}getBeginState(I){return I<this._len?this._beginState[I]:null}_ensureLine(I){for(;I>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(I,ne){ne!==0&&(I+ne>this._len&&(ne=this._len-I),this._beginState.splice(I,ne),this._valid.splice(I,ne),this._len-=ne)}_insertLines(I,ne){if(ne===0)return;let _e=[],Fe=[];for(let Xe=0;Xe<ne;Xe++)_e[Xe]=null,Fe[Xe]=!1;this._beginState=ze.a(this._beginState,I,_e),this._valid=ze.a(this._valid,I,Fe),this._len+=ne}_setValid(I,ne){this._ensureLine(I),this._valid[I]=ne}_setBeginState(I,ne){this._ensureLine(I),this._beginState[I]=ne}setEndState(I,ne,_e){if(this._setValid(ne,!0),this._invalidLineStartIndex=ne+1,ne===I-1)return;let Fe=this.getBeginState(ne+1);if(Fe===null||!_e.equals(Fe))return this._setBeginState(ne+1,_e),void this._invalidateLine(ne+1);let Xe=ne+1;for(;Xe<I&&this._isValid(Xe);)Xe++;this._invalidLineStartIndex=Xe}setFakeTokens(I){this._setValid(I,!1)}applyEdits(I,ne){let _e=I.endLineNumber-I.startLineNumber,Fe=ne;for(let Xe=Math.min(_e,Fe);Xe>=0;Xe--)this._invalidateLine(I.startLineNumber+Xe-1);this._acceptDeleteRange(I),this._acceptInsertText(new W.a(I.startLineNumber,I.startColumn),ne)}_acceptDeleteRange(I){I.startLineNumber-1>=this._len||this._deleteLines(I.startLineNumber,I.endLineNumber-I.startLineNumber)}_acceptInsertText(I,ne){I.lineNumber-1>=this._len||this._insertLines(I.lineNumber,ne)}}class Ri extends O.a{constructor(I){super(),this._isDisposed=!1,this._textModel=I,this._tokenizationStateStore=new ki,this._tokenizationSupport=null,this._register(_t.C.onDidChange(ne=>{let _e=this._textModel.getLanguageIdentifier();ne.changedLanguages.indexOf(_e.language)!==-1&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeRawContentFast(ne=>{ne.containsEvent(1)&&this._resetTokenizationState()})),this._register(this._textModel.onDidChangeContentFast(ne=>{for(let _e=0,Fe=ne.changes.length;_e<Fe;_e++){let Xe=ne.changes[_e],[rt]=Object(Ii.f)(Xe.text);this._tokenizationStateStore.applyEdits(Xe.range,rt)}this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){let[I,ne]=function(_e){let Fe=_e.getLanguageIdentifier(),Xe=_e.isTooLargeForTokenization()?null:_t.C.get(Fe.language),rt=null;if(Xe)try{rt=Xe.getInitialState()}catch(Mt){Object(h.e)(Mt),Xe=null}return[Xe,rt]}(this._textModel);this._tokenizationSupport=I,this._tokenizationStateStore.flush(ne),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&gi.j(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(I=this._textModel.getLineCount()){let ne=new Ii.b,_e=li.a.create(!1);for(;this._hasLinesToTokenize()&&!(_e.elapsed()>1)&&!(this._tokenizeOneInvalidLine(ne)>=I););this._beginBackgroundTokenization(),this._textModel.setTokens(ne.tokens)}tokenizeViewport(I,ne){let _e=new Ii.b;this._tokenizeViewport(_e,I,ne),this._textModel.setTokens(_e.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(I){let ne=new Ii.b;this._updateTokensUntilLine(ne,I),this._textModel.setTokens(ne.tokens)}isCheapToTokenize(I){if(!this._tokenizationSupport)return!0;let ne=this._tokenizationStateStore.invalidLineStartIndex+1;return!(I>ne)&&(I<ne||this._textModel.getLineLength(I)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(I){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;let ne=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(I,ne),ne}_updateTokensUntilLine(I,ne){if(!this._tokenizationSupport)return;let _e=this._textModel.getLanguageIdentifier(),Fe=this._textModel.getLineCount(),Xe=ne-1;for(let rt=this._tokenizationStateStore.invalidLineStartIndex;rt<=Xe;rt++){let Mt=this._textModel.getLineContent(rt+1),Dt=this._tokenizationStateStore.getBeginState(rt),Tt=$i(_e,this._tokenizationSupport,Mt,Dt);I.add(rt+1,Tt.tokens),this._tokenizationStateStore.setEndState(Fe,rt,Tt.endState),rt=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(I,ne,_e){if(!this._tokenizationSupport||_e<=this._tokenizationStateStore.invalidLineStartIndex)return;if(ne<=this._tokenizationStateStore.invalidLineStartIndex)return void this._updateTokensUntilLine(I,_e);let Fe=this._textModel.getLineFirstNonWhitespaceColumn(ne),Xe=[],rt=null;for(let Tt=ne-1;Fe>0&&Tt>=1;Tt--){let Ht=this._textModel.getLineFirstNonWhitespaceColumn(Tt);if(Ht!==0&&Ht<Fe){if(rt=this._tokenizationStateStore.getBeginState(Tt-1),rt)break;Xe.push(this._textModel.getLineContent(Tt)),Fe=Ht}}rt||(rt=this._tokenizationSupport.getInitialState());let Mt=this._textModel.getLanguageIdentifier(),Dt=rt;for(let Tt=Xe.length-1;Tt>=0;Tt--)Dt=$i(Mt,this._tokenizationSupport,Xe[Tt],Dt).endState;for(let Tt=ne;Tt<=_e;Tt++){let Ht=this._textModel.getLineContent(Tt),jt=$i(Mt,this._tokenizationSupport,Ht,Dt);I.add(Tt,jt.tokens),this._tokenizationStateStore.setFakeTokens(Tt-1),Dt=jt.endState}}}function $i(qt,I,ne,_e){let Fe=null;if(I)try{Fe=I.tokenize2(ne,_e.clone(),0)}catch(Xe){Object(h.e)(Xe)}return Fe||(Fe=Object(ri.e)(qt.id,ne,_e,0)),st.a.convertToEndOffset(Fe.tokens,ne.length),Fe}var Hi=r(73),yi=r(39),kt=r(114),Et=r(119),si=r(15);function Si(qt){let I=new Lt;return I.acceptChunk(qt),I.finish()}function Pi(qt,I){return(typeof qt=="string"?Si(qt):qt).create(I)}let Wi=0;class xn{constructor(I){this._source=I,this._eos=!1}read(){if(this._eos)return null;let I=[],ne=0,_e=0;for(;;){let Fe=this._source.read();if(Fe===null)return this._eos=!0,ne===0?null:I.join("");if(Fe.length>0&&(I[ne++]=Fe,_e+=Fe.length),_e>=65536)return I.join("")}}}let un=()=>{throw new Error("Invalid change accessor")};class bn{constructor(){this._searchCanceledBrand=void 0}}function Fn(qt){return qt instanceof bn?null:qt}bn.INSTANCE=new bn;class Mn extends O.a{constructor(I,ne,_e,Fe=null,Xe){super(),this._onWillDispose=this._register(new f.a),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Dn),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new f.a),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new f.a),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new f.a),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new f.a),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new f.a),this.onDidChangeAttached=this._onDidChangeAttached.event,this._eventEmitter=this._register(new On),Wi++,this.id="$model"+Wi,this.isForSimpleWidget=ne.isForSimpleWidget,this._associatedResource=Fe??E.a.parse("inmemory://model/"+Wi),this._undoRedoService=Xe,this._attachedEditorCount=0,this._buffer=Pi(I,ne.defaultEOL),this._options=Mn.resolveOptions(this._buffer,ne);let rt=this._buffer.getLineCount(),Mt=this._buffer.getValueLengthInRange(new Q.a(1,1,rt,this._buffer.getLineLength(rt)+1),0);ne.largeFileOptimizations?this._isTooLargeForTokenization=Mt>Mn.LARGE_FILE_SIZE_THRESHOLD||rt>Mn.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=Mt>Mn.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=_e||ri.a,this._languageRegistryListener=yi.a.onDidChange(Dt=>{Dt.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=H.R(Wi),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Nn,this._commandManager=new S.a(this,Xe),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new Ii.d,this._tokens2=new Ii.e,this._tokenization=new Ri(this)}static resolveOptions(I,ne){if(ne.detectIndentation){let _e=k(I,ne.tabSize,ne.insertSpaces);return new C.e({tabSize:_e.tabSize,indentSize:_e.tabSize,insertSpaces:_e.insertSpaces,trimAutoWhitespace:ne.trimAutoWhitespace,defaultEOL:ne.defaultEOL})}return new C.e({tabSize:ne.tabSize,indentSize:ne.indentSize,insertSpaces:ne.insertSpaces,trimAutoWhitespace:ne.trimAutoWhitespace,defaultEOL:ne.defaultEOL})}onDidChangeRawContentFast(I){return this._eventEmitter.fastEvent(ne=>I(ne.rawContentChangedEvent))}onDidChangeContentFast(I){return this._eventEmitter.fastEvent(ne=>I(ne.contentChangedEvent))}onDidChangeContent(I){return this._eventEmitter.slowEvent(ne=>I(ne.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._isDisposing=!1}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(I,ne){this._isDisposing||this._eventEmitter.fire(new ut(I,ne))}setValue(I){if(this._assertNotDisposed(),I===null)return;let ne=Pi(I,this._options.defaultEOL);this.setValueFromTextBuffer(ne)}_createContentChanged2(I,ne,_e,Fe,Xe,rt,Mt){return{changes:[{range:I,rangeOffset:ne,rangeLength:_e,text:Fe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Xe,isRedoing:rt,isFlush:Mt}}setValueFromTextBuffer(I){if(this._assertNotDisposed(),I===null)return;let ne=this.getFullModelRange(),_e=this.getValueLengthInRange(ne),Fe=this.getLineCount(),Xe=this.getLineMaxColumn(Fe);this._buffer=I,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Nn,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Ue([new Oi],this._versionId,!1,!1),this._createContentChanged2(new Q.a(1,1,Fe,Xe),0,_e,this.getValue(),!1,!1,!0))}setEOL(I){this._assertNotDisposed();let ne=I===1?`\r `:` -`;if(this._buffer.getEOL()===ne)return;let _e=this.getFullModelRange(),Fe=this.getValueLengthInRange(_e),Xe=this.getLineCount(),ot=this.getLineMaxColumn(Xe);this._onBeforeEOLChange(),this._buffer.setEOL(ne),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Ue([new vt],this._versionId,!1,!1),this._createContentChanged2(new Q.a(1,1,Xe,ot),0,Fe,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){let I=this.getVersionId(),ne=this._decorationsTree.search(0,!1,!1,I);this._ensureNodesHaveRanges(ne)}_onAfterEOLChange(){let I=this.getVersionId(),ne=this._decorationsTree.collectNodesPostOrder();for(let _e=0,Fe=ne.length;_e<Fe;_e++){let Xe=ne[_e],ot=Xe.cachedAbsoluteStart-Xe.start,Mt=this._buffer.getOffsetAt(Xe.range.startLineNumber,Xe.range.startColumn),Ot=this._buffer.getOffsetAt(Xe.range.endLineNumber,Xe.range.endColumn);Xe.cachedAbsoluteStart=Mt,Xe.cachedAbsoluteEnd=Ot,Xe.cachedVersionId=I,Xe.start=Mt-ot,Xe.end=Ot-ot,ct(Xe)}}onBeforeAttached(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let I=0,ne=0,_e=this._buffer.getLineCount();for(let Fe=1;Fe<=_e;Fe++){let Xe=this._buffer.getLineLength(Fe);Xe>=1e4?ne+=Xe:I+=Xe}return ne>I}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(I){this._assertNotDisposed();let ne=I.tabSize!==void 0?I.tabSize:this._options.tabSize,_e=I.indentSize!==void 0?I.indentSize:this._options.indentSize,Fe=I.insertSpaces!==void 0?I.insertSpaces:this._options.insertSpaces,Xe=I.trimAutoWhitespace!==void 0?I.trimAutoWhitespace:this._options.trimAutoWhitespace,ot=new C.e({tabSize:ne,indentSize:_e,insertSpaces:Fe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Xe});if(this._options.equals(ot))return;let Mt=this._options.createChangeEvent(ot);this._options=ot,this._onDidChangeOptions.fire(Mt)}detectIndentation(I,ne){this._assertNotDisposed();let _e=k(this._buffer,ne,I);this.updateOptions({insertSpaces:_e.insertSpaces,tabSize:_e.tabSize,indentSize:_e.tabSize})}static _normalizeIndentationFromWhitespace(I,ne,_e){let Fe=0;for(let ot=0;ot<I.length;ot++)I.charAt(ot)===" "?Fe+=ne:Fe++;let Xe="";if(!_e){let ot=Math.floor(Fe/ne);Fe%=ne;for(let Mt=0;Mt<ot;Mt++)Xe+=" "}for(let ot=0;ot<Fe;ot++)Xe+=" ";return Xe}static normalizeIndentation(I,ne,_e){let Fe=H.w(I);return Fe===-1&&(Fe=I.length),Mn._normalizeIndentationFromWhitespace(I.substring(0,Fe),ne,_e)+I.substring(Fe)}normalizeIndentation(I){return this._assertNotDisposed(),Mn.normalizeIndentation(I,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(I=null){let ne=this.findMatches(H.a.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(I,ne.map(_e=>({range:_e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getOffsetAt(I){this._assertNotDisposed();let ne=this._validatePosition(I.lineNumber,I.column,0);return this._buffer.getOffsetAt(ne.lineNumber,ne.column)}getPositionAt(I){this._assertNotDisposed();let ne=Math.min(this._buffer.getLength(),Math.max(0,I));return this._buffer.getPositionAt(ne)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(I){this._versionId=I}_overwriteAlternativeVersionId(I){this._alternativeVersionId=I}_overwriteInitialUndoRedoSnapshot(I){this._initialUndoRedoSnapshot=I}getValue(I,ne=!1){this._assertNotDisposed();let _e=this.getFullModelRange(),Fe=this.getValueInRange(_e,I);return ne?this._buffer.getBOM()+Fe:Fe}createSnapshot(I=!1){return new xn(this._buffer.createSnapshot(I))}getValueLength(I,ne=!1){this._assertNotDisposed();let _e=this.getFullModelRange(),Fe=this.getValueLengthInRange(_e,I);return ne?this._buffer.getBOM().length+Fe:Fe}getValueInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(I),ne)}getValueLengthInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(I),ne)}getCharacterCountInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(I),ne)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(I)}getLineLength(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(I)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getLineMinColumn(I){return this._assertNotDisposed(),1}getLineMaxColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(I)+1}getLineFirstNonWhitespaceColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(I)}getLineLastNonWhitespaceColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(I)}_validateRangeRelaxedNoAllocations(I){let ne=this._buffer.getLineCount(),_e=I.startLineNumber,Fe=I.startColumn,Xe,ot;if(_e<1)Xe=1,ot=1;else if(_e>ne)Xe=ne,ot=this.getLineMaxColumn(Xe);else if(Xe=0|_e,Fe<=1)ot=1;else{let jt=this.getLineMaxColumn(Xe);ot=Fe>=jt?jt:0|Fe}let Mt=I.endLineNumber,Ot=I.endColumn,Tt,Ht;if(Mt<1)Tt=1,Ht=1;else if(Mt>ne)Tt=ne,Ht=this.getLineMaxColumn(Tt);else if(Tt=0|Mt,Ot<=1)Ht=1;else{let jt=this.getLineMaxColumn(Tt);Ht=Ot>=jt?jt:0|Ot}return _e===Xe&&Fe===ot&&Mt===Tt&&Ot===Ht&&I instanceof Q.a&&!(I instanceof y.a)?I:new Q.a(Xe,ot,Tt,Ht)}_isValidPosition(I,ne,_e){if(typeof I!="number"||typeof ne!="number"||isNaN(I)||isNaN(ne)||I<1||ne<1||(0|I)!==I||(0|ne)!==ne||I>this._buffer.getLineCount())return!1;if(ne===1)return!0;if(ne>this.getLineMaxColumn(I))return!1;if(_e===1){let Fe=this._buffer.getLineCharCode(I,ne-2);if(H.F(Fe))return!1}return!0}_validatePosition(I,ne,_e){let Fe=Math.floor(typeof I!="number"||isNaN(I)?1:I),Xe=Math.floor(typeof ne!="number"||isNaN(ne)?1:ne),ot=this._buffer.getLineCount();if(Fe<1)return new W.a(1,1);if(Fe>ot)return new W.a(ot,this.getLineMaxColumn(ot));if(Xe<=1)return new W.a(Fe,1);let Mt=this.getLineMaxColumn(Fe);if(Xe>=Mt)return new W.a(Fe,Mt);if(_e===1){let Ot=this._buffer.getLineCharCode(Fe,Xe-2);if(H.F(Ot))return new W.a(Fe,Xe-1)}return new W.a(Fe,Xe)}validatePosition(I){return this._assertNotDisposed(),I instanceof W.a&&this._isValidPosition(I.lineNumber,I.column,1)?I:this._validatePosition(I.lineNumber,I.column,1)}_isValidRange(I,ne){let _e=I.startLineNumber,Fe=I.startColumn,Xe=I.endLineNumber,ot=I.endColumn;if(!this._isValidPosition(_e,Fe,0)||!this._isValidPosition(Xe,ot,0))return!1;if(ne===1){let Mt=Fe>1?this._buffer.getLineCharCode(_e,Fe-2):0,Ot=ot>1&&ot<=this._buffer.getLineLength(Xe)?this._buffer.getLineCharCode(Xe,ot-2):0,Tt=H.F(Mt),Ht=H.F(Ot);return!Tt&&!Ht}return!0}validateRange(I){if(this._assertNotDisposed(),I instanceof Q.a&&!(I instanceof y.a)&&this._isValidRange(I,1))return I;let ne=this._validatePosition(I.startLineNumber,I.startColumn,0),_e=this._validatePosition(I.endLineNumber,I.endColumn,0),Fe=ne.lineNumber,Xe=ne.column,ot=_e.lineNumber,Mt=_e.column;{let Ot=Xe>1?this._buffer.getLineCharCode(Fe,Xe-2):0,Tt=Mt>1&&Mt<=this._buffer.getLineLength(ot)?this._buffer.getLineCharCode(ot,Mt-2):0,Ht=H.F(Ot),jt=H.F(Tt);return Ht||jt?Fe===ot&&Xe===Mt?new Q.a(Fe,Xe-1,ot,Mt-1):Ht&&jt?new Q.a(Fe,Xe-1,ot,Mt+1):Ht?new Q.a(Fe,Xe-1,ot,Mt):new Q.a(Fe,Xe,ot,Mt+1):new Q.a(Fe,Xe,ot,Mt)}}modifyPosition(I,ne){this._assertNotDisposed();let _e=this.getOffsetAt(I)+ne;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,_e)))}getFullModelRange(){this._assertNotDisposed();let I=this.getLineCount();return new Q.a(1,1,I,this.getLineMaxColumn(I))}findMatchesLineByLine(I,ne,_e,Fe){return this._buffer.findMatchesLineByLine(I,ne,_e,Fe)}findMatches(I,ne,_e,Fe,Xe,ot,Mt=999){this._assertNotDisposed();let Ot=null;ne!==null&&(Array.isArray(ne)||(ne=[ne]),ne.every(jt=>Q.a.isIRange(jt))&&(Ot=ne.map(jt=>this.validateRange(jt)))),Ot===null&&(Ot=[this.getFullModelRange()]),Ot=Ot.sort((jt,Kt)=>jt.startLineNumber-Kt.startLineNumber||jt.startColumn-Kt.startColumn);let Tt=[],Ht;if(Tt.push(Ot.reduce((jt,Kt)=>Q.a.areIntersecting(jt,Kt)?jt.plusRange(Kt):(Tt.push(jt),Kt))),!_e&&I.indexOf(` -`)<0){let jt=new At.a(I,_e,Fe,Xe).parseSearchRequest();if(!jt)return[];Ht=Kt=>this.findMatchesLineByLine(Kt,jt,ot,Mt)}else Ht=jt=>At.c.findMatches(this,new At.a(I,_e,Fe,Xe),jt,ot,Mt);return Tt.map(Ht).reduce((jt,Kt)=>jt.concat(Kt),[])}findNextMatch(I,ne,_e,Fe,Xe,ot){this._assertNotDisposed();let Mt=this.validatePosition(ne);if(!_e&&I.indexOf(` -`)<0){let Ot=new At.a(I,_e,Fe,Xe).parseSearchRequest();if(!Ot)return null;let Tt=this.getLineCount(),Ht=new Q.a(Mt.lineNumber,Mt.column,Tt,this.getLineMaxColumn(Tt)),jt=this.findMatchesLineByLine(Ht,Ot,ot,1);return At.c.findNextMatch(this,new At.a(I,_e,Fe,Xe),Mt,ot),jt.length>0?jt[0]:(Ht=new Q.a(1,1,Mt.lineNumber,this.getLineMaxColumn(Mt.lineNumber)),jt=this.findMatchesLineByLine(Ht,Ot,ot,1),jt.length>0?jt[0]:null)}return At.c.findNextMatch(this,new At.a(I,_e,Fe,Xe),Mt,ot)}findPreviousMatch(I,ne,_e,Fe,Xe,ot){this._assertNotDisposed();let Mt=this.validatePosition(ne);return At.c.findPreviousMatch(this,new At.a(I,_e,Fe,Xe),Mt,ot)}pushStackElement(){this._commandManager.pushStackElement()}pushEOL(I){if((this.getEOL()===` -`?0:1)!==I)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(I)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(I){return I instanceof C.f?I:new C.f(I.identifier||null,this.validateRange(I.range),I.text,I.forceMoveMarkers||!1,I.isAutoWhitespaceEdit||!1,I._isTracked||!1)}_validateEditOperations(I){let ne=[];for(let _e=0,Fe=I.length;_e<Fe;_e++)ne[_e]=this._validateEditOperation(I[_e]);return ne}pushEditOperations(I,ne,_e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(I,this._validateEditOperations(ne),_e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(I,ne,_e){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let Fe=ne.map(ot=>({range:this.validateRange(ot.range),text:ot.text})),Xe=!0;if(I)for(let ot=0,Mt=I.length;ot<Mt;ot++){let Ot=I[ot],Tt=!1;for(let Ht=0,jt=Fe.length;Ht<jt;Ht++){let Kt=Fe[Ht].range,wi=Kt.startLineNumber>Ot.endLineNumber,Ti=Ot.startLineNumber>Kt.endLineNumber;if(!wi&&!Ti){Tt=!0;break}}if(!Tt){Xe=!1;break}}if(Xe)for(let ot=0,Mt=this._trimAutoWhitespaceLines.length;ot<Mt;ot++){let Ot=this._trimAutoWhitespaceLines[ot],Tt=this.getLineMaxColumn(Ot),Ht=!0;for(let jt=0,Kt=Fe.length;jt<Kt;jt++){let wi=Fe[jt].range,Ti=Fe[jt].text;if(!(Ot<wi.startLineNumber||Ot>wi.endLineNumber)&&!(Ot===wi.startLineNumber&&wi.startColumn===Tt&&wi.isEmpty()&&Ti&&Ti.length>0&&Ti.charAt(0)===` -`||Ot===wi.startLineNumber&&wi.startColumn===1&&wi.isEmpty()&&Ti&&Ti.length>0&&Ti.charAt(Ti.length-1)===` -`)){Ht=!1;break}}if(Ht){let jt=new Q.a(Ot,1,Ot,Tt);ne.push(new C.f(null,jt,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(I,ne,_e)}_applyUndo(I,ne,_e,Fe){let Xe=I.map(ot=>{let Mt=this.getPositionAt(ot.newPosition),Ot=this.getPositionAt(ot.newEnd);return{range:new Q.a(Mt.lineNumber,Mt.column,Ot.lineNumber,Ot.column),text:ot.oldText}});this._applyUndoRedoEdits(Xe,ne,!0,!1,_e,Fe)}_applyRedo(I,ne,_e,Fe){let Xe=I.map(ot=>{let Mt=this.getPositionAt(ot.oldPosition),Ot=this.getPositionAt(ot.oldEnd);return{range:new Q.a(Mt.lineNumber,Mt.column,Ot.lineNumber,Ot.column),text:ot.newText}});this._applyUndoRedoEdits(Xe,ne,!1,!0,_e,Fe)}_applyUndoRedoEdits(I,ne,_e,Fe,Xe,ot){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=_e,this._isRedoing=Fe,this.applyEdits(I,!1),this.setEOL(ne),this._overwriteAlternativeVersionId(Xe)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(ot),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(I,ne=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let _e=this._validateEditOperations(I);return this._doApplyEdits(_e,ne)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(I,ne){let _e=this._buffer.getLineCount(),Fe=this._buffer.applyEdits(I,this._options.trimAutoWhitespace,ne),Xe=this._buffer.getLineCount(),ot=Fe.changes;if(this._trimAutoWhitespaceLines=Fe.trimAutoWhitespaceLineNumbers,ot.length!==0){let Mt=[],Ot=_e;for(let Tt=0,Ht=ot.length;Tt<Ht;Tt++){let jt=ot[Tt],[Kt,wi,Ti]=Object(Ii.f)(jt.text);this._tokens.acceptEdit(jt.range,Kt,wi),this._tokens2.acceptEdit(jt.range,Kt,wi,Ti,jt.text.length>0?jt.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(jt.rangeOffset,jt.rangeLength,jt.text.length,jt.forceMoveMarkers);let ft=jt.range.startLineNumber,X=jt.range.endLineNumber,ae=X-ft,Ge=Kt,lt=Math.min(ae,Ge),Dt=Ge-ae;for(let Gt=lt;Gt>=0;Gt--){let ti=ft+Gt,ye=Xe-Ot-Dt+ti;Mt.push(new gt(ti,this.getLineContent(ye)))}if(lt<ae){let Gt=ft+lt;Mt.push(new vi(Gt+1,X))}if(lt<Ge){let Gt=ft+lt,ti=Ge-lt,ye=Xe-Ot-ti+Gt+1,le=[];for(let ue=0;ue<ti;ue++){let qe=ye+ue;le[qe-ye]=this.getLineContent(qe)}Mt.push(new Rt(Gt+1,ft+Ge,le))}Ot+=Dt}this._increaseVersionId(),this._emitContentChangedEvent(new Ue(Mt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ot,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Fe.reverseEdits===null?void 0:Fe.reverseEdits}undo(){this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}changeDecorations(I,ne=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(ne,I)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(I,ne){let _e={addDecoration:(Xe,ot)=>this._deltaDecorationsImpl(I,[],[{range:Xe,options:ot}])[0],changeDecoration:(Xe,ot)=>{this._changeDecorationImpl(Xe,ot)},changeDecorationOptions:(Xe,ot)=>{this._changeDecorationOptionsImpl(Xe,ho(ot))},removeDecoration:Xe=>{this._deltaDecorationsImpl(I,[Xe],[])},deltaDecorations:(Xe,ot)=>Xe.length===0&&ot.length===0?[]:this._deltaDecorationsImpl(I,Xe,ot)},Fe=null;try{Fe=ne(_e)}catch(Xe){Object(h.e)(Xe)}return _e.addDecoration=un,_e.changeDecoration=un,_e.changeDecorationOptions=un,_e.removeDecoration=un,_e.deltaDecorations=un,Fe}deltaDecorations(I,ne,_e=0){if(this._assertNotDisposed(),I||(I=[]),I.length===0&&ne.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(_e,I,ne)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(I){return this.getDecorationRange(I)}_setTrackedRange(I,ne,_e){let Fe=I?this._decorations[I]:null;if(!Fe)return ne?this._deltaDecorationsImpl(0,[],[{range:ne,options:on[_e]}])[0]:null;if(!ne)return this._decorationsTree.delete(Fe),delete this._decorations[Fe.id],null;let Xe=this._validateRangeRelaxedNoAllocations(ne),ot=this._buffer.getOffsetAt(Xe.startLineNumber,Xe.startColumn),Mt=this._buffer.getOffsetAt(Xe.endLineNumber,Xe.endColumn);return this._decorationsTree.delete(Fe),Fe.reset(this.getVersionId(),ot,Mt,Xe),Fe.setOptions(on[_e]),this._decorationsTree.insert(Fe),Fe.id}removeAllDecorationsWithOwnerId(I){if(this._isDisposed)return;let ne=this._decorationsTree.collectNodesFromOwner(I);for(let _e=0,Fe=ne.length;_e<Fe;_e++){let Xe=ne[_e];this._decorationsTree.delete(Xe),delete this._decorations[Xe.id]}}getDecorationOptions(I){let ne=this._decorations[I];return ne?ne.options:null}getDecorationRange(I){let ne=this._decorations[I];if(!ne)return null;let _e=this.getVersionId();return ne.cachedVersionId!==_e&&this._decorationsTree.resolveNode(ne,_e),ne.range===null&&(ne.range=this._getRangeAt(ne.cachedAbsoluteStart,ne.cachedAbsoluteEnd)),ne.range}getLineDecorations(I,ne=0,_e=!1){return I<1||I>this.getLineCount()?[]:this.getLinesDecorations(I,I,ne,_e)}getLinesDecorations(I,ne,_e=0,Fe=!1){let Xe=this.getLineCount(),ot=Math.min(Xe,Math.max(1,I)),Mt=Math.min(Xe,Math.max(1,ne)),Ot=this.getLineMaxColumn(Mt);return this._getDecorationsInRange(new Q.a(ot,1,Mt,Ot),_e,Fe)}getDecorationsInRange(I,ne=0,_e=!1){let Fe=this.validateRange(I);return this._getDecorationsInRange(Fe,ne,_e)}getOverviewRulerDecorations(I=0,ne=!1){let _e=this.getVersionId(),Fe=this._decorationsTree.search(I,ne,!0,_e);return this._ensureNodesHaveRanges(Fe)}getAllDecorations(I=0,ne=!1){let _e=this.getVersionId(),Fe=this._decorationsTree.search(I,ne,!1,_e);return this._ensureNodesHaveRanges(Fe)}_getDecorationsInRange(I,ne,_e){let Fe=this._buffer.getOffsetAt(I.startLineNumber,I.startColumn),Xe=this._buffer.getOffsetAt(I.endLineNumber,I.endColumn),ot=this.getVersionId(),Mt=this._decorationsTree.intervalSearch(Fe,Xe,ne,_e,ot);return this._ensureNodesHaveRanges(Mt)}_ensureNodesHaveRanges(I){for(let ne=0,_e=I.length;ne<_e;ne++){let Fe=I[ne];Fe.range===null&&(Fe.range=this._getRangeAt(Fe.cachedAbsoluteStart,Fe.cachedAbsoluteEnd))}return I}_getRangeAt(I,ne){return this._buffer.getRangeAt(I,ne-I)}_changeDecorationImpl(I,ne){let _e=this._decorations[I];if(!_e)return;let Fe=this._validateRangeRelaxedNoAllocations(ne),Xe=this._buffer.getOffsetAt(Fe.startLineNumber,Fe.startColumn),ot=this._buffer.getOffsetAt(Fe.endLineNumber,Fe.endColumn);this._decorationsTree.delete(_e),_e.reset(this.getVersionId(),Xe,ot,Fe),this._decorationsTree.insert(_e),this._onDidChangeDecorations.checkAffectedAndFire(_e.options)}_changeDecorationOptionsImpl(I,ne){let _e=this._decorations[I];if(!_e)return;let Fe=!(!_e.options.overviewRuler||!_e.options.overviewRuler.color),Xe=!(!ne.overviewRuler||!ne.overviewRuler.color);this._onDidChangeDecorations.checkAffectedAndFire(_e.options),this._onDidChangeDecorations.checkAffectedAndFire(ne),Fe!==Xe?(this._decorationsTree.delete(_e),_e.setOptions(ne),this._decorationsTree.insert(_e)):_e.setOptions(ne)}_deltaDecorationsImpl(I,ne,_e){let Fe=this.getVersionId(),Xe=ne.length,ot=0,Mt=_e.length,Ot=0,Tt=new Array(Mt);for(;ot<Xe||Ot<Mt;){let Ht=null;if(ot<Xe){do Ht=this._decorations[ne[ot++]];while(!Ht&&ot<Xe);Ht&&(this._decorationsTree.delete(Ht),this._onDidChangeDecorations.checkAffectedAndFire(Ht.options))}if(Ot<Mt){if(!Ht){let X=++this._lastDecorationId,ae=`${this._instanceId};${X}`;Ht=new se(ae,0,0),this._decorations[ae]=Ht}let jt=_e[Ot],Kt=this._validateRangeRelaxedNoAllocations(jt.range),wi=ho(jt.options),Ti=this._buffer.getOffsetAt(Kt.startLineNumber,Kt.startColumn),ft=this._buffer.getOffsetAt(Kt.endLineNumber,Kt.endColumn);Ht.ownerId=I,Ht.reset(Fe,Ti,ft,Kt),Ht.setOptions(wi),this._onDidChangeDecorations.checkAffectedAndFire(wi),this._decorationsTree.insert(Ht),Tt[Ot]=Ht.id,Ot++}else Ht&&delete this._decorations[Ht.id]}return Tt}setTokens(I){if(I.length===0)return;let ne=[];for(let _e=0,Fe=I.length;_e<Fe;_e++){let Xe=I[_e],ot=0,Mt=0,Ot=!1;for(let Tt=0,Ht=Xe.tokens.length;Tt<Ht;Tt++){let jt=Xe.startLineNumber+Tt;Ot?(this._tokens.setTokens(this._languageIdentifier.id,jt-1,this._buffer.getLineLength(jt),Xe.tokens[Tt],!1),Mt=jt):this._tokens.setTokens(this._languageIdentifier.id,jt-1,this._buffer.getLineLength(jt),Xe.tokens[Tt],!0)&&(Ot=!0,ot=jt,Mt=jt)}Ot&&ne.push({fromLineNumber:ot,toLineNumber:Mt})}ne.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:ne})}setSemanticTokens(I,ne){this._tokens2.set(I,ne),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:I!==null,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasSemanticTokens(){return this._tokens2.isComplete()}setPartialSemanticTokens(I,ne){if(this.hasSemanticTokens())return;let _e=this._tokens2.setPartial(I,ne);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:_e.startLineNumber,toLineNumber:_e.endLineNumber}]})}tokenizeViewport(I,ne){I=Math.max(1,I),ne=Math.min(this._buffer.getLineCount(),ne),this._tokenization.tokenizeViewport(I,ne)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(I){this._isDisposing||this._onDidChangeTokens.fire(I)}resetTokenization(){this._tokenization.reset()}forceTokenization(I){if(I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(I)}isCheapToTokenize(I){return this._tokenization.isCheapToTokenize(I)}tokenizeIfCheap(I){this.isCheapToTokenize(I)&&this.forceTokenization(I)}getLineTokens(I){if(I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(I)}_getLineTokens(I){let ne=this.getLineContent(I),_e=this._tokens.getTokens(this._languageIdentifier.id,I-1,ne);return this._tokens2.addSemanticTokens(I,_e)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(I){if(this._languageIdentifier.id===I.id)return;let ne={oldLanguage:this._languageIdentifier.language,newLanguage:I.language};this._languageIdentifier=I,this._onDidChangeLanguage.fire(ne),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(I,ne){let _e=this.validatePosition(new W.a(I,ne)),Fe=this.getLineTokens(_e.lineNumber);return Fe.getLanguageId(Fe.findTokenIndexAtOffset(_e.column-1))}getWordAtPosition(I){this._assertNotDisposed();let ne=this.validatePosition(I),_e=this.getLineContent(ne.lineNumber),Fe=this._getLineTokens(ne.lineNumber),Xe=Fe.findTokenIndexAtOffset(ne.column-1),[ot,Mt]=Mn._findLanguageBoundaries(Fe,Xe),Ot=Object(Hi.d)(ne.column,yi.a.getWordDefinition(Fe.getLanguageId(Xe)),_e.substring(ot,Mt),ot);if(Ot&&Ot.startColumn<=I.column&&I.column<=Ot.endColumn)return Ot;if(Xe>0&&ot===ne.column-1){let[Tt,Ht]=Mn._findLanguageBoundaries(Fe,Xe-1),jt=Object(Hi.d)(ne.column,yi.a.getWordDefinition(Fe.getLanguageId(Xe-1)),_e.substring(Tt,Ht),Tt);if(jt&&jt.startColumn<=I.column&&I.column<=jt.endColumn)return jt}return null}static _findLanguageBoundaries(I,ne){let _e=I.getLanguageId(ne),Fe=0;for(let ot=ne;ot>=0&&I.getLanguageId(ot)===_e;ot--)Fe=I.getStartOffset(ot);let Xe=I.getLineContent().length;for(let ot=ne,Mt=I.getCount();ot<Mt&&I.getLanguageId(ot)===_e;ot++)Xe=I.getEndOffset(ot);return[Fe,Xe]}getWordUntilPosition(I){let ne=this.getWordAtPosition(I);return ne?{word:ne.word.substr(0,I.column-ne.startColumn),startColumn:ne.startColumn,endColumn:I.column}:{word:"",startColumn:I.column,endColumn:I.column}}findMatchingBracketUp(I,ne){let _e=I.toLowerCase(),Fe=this.validatePosition(ne),Xe=this._getLineTokens(Fe.lineNumber),ot=Xe.getLanguageId(Xe.findTokenIndexAtOffset(Fe.column-1)),Mt=yi.a.getBracketsSupport(ot);if(!Mt)return null;let Ot=Mt.textIsBracket[_e];return Ot?Fn(this._findMatchingBracketUp(Ot,Fe,null)):null}matchBracket(I){return this._matchBracket(this.validatePosition(I))}_matchBracket(I){let ne=I.lineNumber,_e=this._getLineTokens(ne),Fe=_e.getCount(),Xe=this._buffer.getLineContent(ne),ot=_e.findTokenIndexAtOffset(I.column-1);if(ot<0)return null;let Mt=yi.a.getBracketsSupport(_e.getLanguageId(ot));if(Mt&&!Object(kt.b)(_e.getStandardTokenType(ot))){let Ot=Math.max(0,I.column-1-Mt.maxBracketLength);for(let jt=ot-1;jt>=0;jt--){let Kt=_e.getEndOffset(jt);if(Kt<=Ot)break;Object(kt.b)(_e.getStandardTokenType(jt))&&(Ot=Kt)}let Tt=Math.min(Xe.length,I.column-1+Mt.maxBracketLength),Ht=null;for(;;){let jt=Et.a.findNextBracketInRange(Mt.forwardRegex,ne,Xe,Ot,Tt);if(!jt)break;if(jt.startColumn<=I.column&&I.column<=jt.endColumn){let Kt=Xe.substring(jt.startColumn-1,jt.endColumn-1).toLowerCase(),wi=this._matchFoundBracket(jt,Mt.textIsBracket[Kt],Mt.textIsOpenBracket[Kt],null);if(wi){if(wi instanceof bn)return null;Ht=wi}}Ot=jt.endColumn-1}if(Ht)return Ht}if(ot>0&&_e.getStartOffset(ot)===I.column-1){let Ot=ot-1,Tt=yi.a.getBracketsSupport(_e.getLanguageId(Ot));if(Tt&&!Object(kt.b)(_e.getStandardTokenType(Ot))){let Ht=Math.max(0,I.column-1-Tt.maxBracketLength),jt=Math.min(Xe.length,I.column-1+Tt.maxBracketLength);for(let wi=Ot+1;wi<Fe;wi++){let Ti=_e.getStartOffset(wi);if(Ti>=jt)break;Object(kt.b)(_e.getStandardTokenType(wi))&&(jt=Ti)}let Kt=Et.a.findPrevBracketInRange(Tt.reversedRegex,ne,Xe,Ht,jt);if(Kt&&Kt.startColumn<=I.column&&I.column<=Kt.endColumn){let wi=Xe.substring(Kt.startColumn-1,Kt.endColumn-1).toLowerCase(),Ti=this._matchFoundBracket(Kt,Tt.textIsBracket[wi],Tt.textIsOpenBracket[wi],null);if(Ti)return Ti instanceof bn?null:Ti}}}return null}_matchFoundBracket(I,ne,_e,Fe){if(!ne)return null;let Xe=_e?this._findMatchingBracketDown(ne,I.getEndPosition(),Fe):this._findMatchingBracketUp(ne,I.getStartPosition(),Fe);return Xe?Xe instanceof bn?Xe:[I,Xe]:null}_findMatchingBracketUp(I,ne,_e){let Fe=I.languageIdentifier.id,Xe=I.reversedRegex,ot=-1,Mt=0,Ot=(Tt,Ht,jt,Kt)=>{for(;;){if(_e&&++Mt%100==0&&!_e())return bn.INSTANCE;let wi=Et.a.findPrevBracketInRange(Xe,Tt,Ht,jt,Kt);if(!wi)break;let Ti=Ht.substring(wi.startColumn-1,wi.endColumn-1).toLowerCase();if(I.isOpen(Ti)?ot++:I.isClose(Ti)&&ot--,ot===0)return wi;Kt=wi.startColumn-1}return null};for(let Tt=ne.lineNumber;Tt>=1;Tt--){let Ht=this._getLineTokens(Tt),jt=Ht.getCount(),Kt=this._buffer.getLineContent(Tt),wi=jt-1,Ti=Kt.length,ft=Kt.length;Tt===ne.lineNumber&&(wi=Ht.findTokenIndexAtOffset(ne.column-1),Ti=ne.column-1,ft=ne.column-1);let X=!0;for(;wi>=0;wi--){let ae=Ht.getLanguageId(wi)===Fe&&!Object(kt.b)(Ht.getStandardTokenType(wi));if(ae)X?Ti=Ht.getStartOffset(wi):(Ti=Ht.getStartOffset(wi),ft=Ht.getEndOffset(wi));else if(X&&Ti!==ft){let Ge=Ot(Tt,Kt,Ti,ft);if(Ge)return Ge}X=ae}if(X&&Ti!==ft){let ae=Ot(Tt,Kt,Ti,ft);if(ae)return ae}}return null}_findMatchingBracketDown(I,ne,_e){let Fe=I.languageIdentifier.id,Xe=I.forwardRegex,ot=1,Mt=0,Ot=(Ht,jt,Kt,wi)=>{for(;;){if(_e&&++Mt%100==0&&!_e())return bn.INSTANCE;let Ti=Et.a.findNextBracketInRange(Xe,Ht,jt,Kt,wi);if(!Ti)break;let ft=jt.substring(Ti.startColumn-1,Ti.endColumn-1).toLowerCase();if(I.isOpen(ft)?ot++:I.isClose(ft)&&ot--,ot===0)return Ti;Kt=Ti.endColumn-1}return null},Tt=this.getLineCount();for(let Ht=ne.lineNumber;Ht<=Tt;Ht++){let jt=this._getLineTokens(Ht),Kt=jt.getCount(),wi=this._buffer.getLineContent(Ht),Ti=0,ft=0,X=0;Ht===ne.lineNumber&&(Ti=jt.findTokenIndexAtOffset(ne.column-1),ft=ne.column-1,X=ne.column-1);let ae=!0;for(;Ti<Kt;Ti++){let Ge=jt.getLanguageId(Ti)===Fe&&!Object(kt.b)(jt.getStandardTokenType(Ti));if(Ge)ae||(ft=jt.getStartOffset(Ti)),X=jt.getEndOffset(Ti);else if(ae&&ft!==X){let lt=Ot(Ht,wi,ft,X);if(lt)return lt}ae=Ge}if(ae&&ft!==X){let Ge=Ot(Ht,wi,ft,X);if(Ge)return Ge}}return null}findPrevBracket(I){let ne=this.validatePosition(I),_e=-1,Fe=null;for(let Xe=ne.lineNumber;Xe>=1;Xe--){let ot=this._getLineTokens(Xe),Mt=ot.getCount(),Ot=this._buffer.getLineContent(Xe),Tt=Mt-1,Ht=Ot.length,jt=Ot.length;if(Xe===ne.lineNumber){Tt=ot.findTokenIndexAtOffset(ne.column-1),Ht=ne.column-1,jt=ne.column-1;let wi=ot.getLanguageId(Tt);_e!==wi&&(_e=wi,Fe=yi.a.getBracketsSupport(_e))}let Kt=!0;for(;Tt>=0;Tt--){let wi=ot.getLanguageId(Tt);if(_e!==wi){if(Fe&&Kt&&Ht!==jt){let ft=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Ot,Ht,jt);if(ft)return this._toFoundBracket(Fe,ft);Kt=!1}_e=wi,Fe=yi.a.getBracketsSupport(_e)}let Ti=!!Fe&&!Object(kt.b)(ot.getStandardTokenType(Tt));if(Ti)Kt?Ht=ot.getStartOffset(Tt):(Ht=ot.getStartOffset(Tt),jt=ot.getEndOffset(Tt));else if(Fe&&Kt&&Ht!==jt){let ft=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Ot,Ht,jt);if(ft)return this._toFoundBracket(Fe,ft)}Kt=Ti}if(Fe&&Kt&&Ht!==jt){let wi=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Ot,Ht,jt);if(wi)return this._toFoundBracket(Fe,wi)}}return null}findNextBracket(I){let ne=this.validatePosition(I),_e=this.getLineCount(),Fe=-1,Xe=null;for(let ot=ne.lineNumber;ot<=_e;ot++){let Mt=this._getLineTokens(ot),Ot=Mt.getCount(),Tt=this._buffer.getLineContent(ot),Ht=0,jt=0,Kt=0;if(ot===ne.lineNumber){Ht=Mt.findTokenIndexAtOffset(ne.column-1),jt=ne.column-1,Kt=ne.column-1;let Ti=Mt.getLanguageId(Ht);Fe!==Ti&&(Fe=Ti,Xe=yi.a.getBracketsSupport(Fe))}let wi=!0;for(;Ht<Ot;Ht++){let Ti=Mt.getLanguageId(Ht);if(Fe!==Ti){if(Xe&&wi&&jt!==Kt){let X=Et.a.findNextBracketInRange(Xe.forwardRegex,ot,Tt,jt,Kt);if(X)return this._toFoundBracket(Xe,X);wi=!1}Fe=Ti,Xe=yi.a.getBracketsSupport(Fe)}let ft=!!Xe&&!Object(kt.b)(Mt.getStandardTokenType(Ht));if(ft)wi||(jt=Mt.getStartOffset(Ht)),Kt=Mt.getEndOffset(Ht);else if(Xe&&wi&&jt!==Kt){let X=Et.a.findNextBracketInRange(Xe.forwardRegex,ot,Tt,jt,Kt);if(X)return this._toFoundBracket(Xe,X)}wi=ft}if(Xe&&wi&&jt!==Kt){let Ti=Et.a.findNextBracketInRange(Xe.forwardRegex,ot,Tt,jt,Kt);if(Ti)return this._toFoundBracket(Xe,Ti)}}return null}findEnclosingBrackets(I,ne){let _e;if(ne===void 0)_e=null;else{let wi=Date.now();_e=()=>Date.now()-wi<=ne}let Fe=this.validatePosition(I),Xe=this.getLineCount(),ot=new Map,Mt=[],Ot=(wi,Ti)=>{if(!ot.has(wi)){let ft=[];for(let X=0,ae=Ti?Ti.brackets.length:0;X<ae;X++)ft[X]=0;ot.set(wi,ft)}Mt=ot.get(wi)},Tt=0,Ht=(wi,Ti,ft,X,ae)=>{for(;;){if(_e&&++Tt%100==0&&!_e())return bn.INSTANCE;let Ge=Et.a.findNextBracketInRange(wi.forwardRegex,Ti,ft,X,ae);if(!Ge)break;let lt=ft.substring(Ge.startColumn-1,Ge.endColumn-1).toLowerCase(),Dt=wi.textIsBracket[lt];if(Dt&&(Dt.isOpen(lt)?Mt[Dt.index]++:Dt.isClose(lt)&&Mt[Dt.index]--,Mt[Dt.index]===-1))return this._matchFoundBracket(Ge,Dt,!1,_e);X=Ge.endColumn-1}return null},jt=-1,Kt=null;for(let wi=Fe.lineNumber;wi<=Xe;wi++){let Ti=this._getLineTokens(wi),ft=Ti.getCount(),X=this._buffer.getLineContent(wi),ae=0,Ge=0,lt=0;if(wi===Fe.lineNumber){ae=Ti.findTokenIndexAtOffset(Fe.column-1),Ge=Fe.column-1,lt=Fe.column-1;let Gt=Ti.getLanguageId(ae);jt!==Gt&&(jt=Gt,Kt=yi.a.getBracketsSupport(jt),Ot(jt,Kt))}let Dt=!0;for(;ae<ft;ae++){let Gt=Ti.getLanguageId(ae);if(jt!==Gt){if(Kt&&Dt&&Ge!==lt){let ye=Ht(Kt,wi,X,Ge,lt);if(ye)return Fn(ye);Dt=!1}jt=Gt,Kt=yi.a.getBracketsSupport(jt),Ot(jt,Kt)}let ti=!!Kt&&!Object(kt.b)(Ti.getStandardTokenType(ae));if(ti)Dt||(Ge=Ti.getStartOffset(ae)),lt=Ti.getEndOffset(ae);else if(Kt&&Dt&&Ge!==lt){let ye=Ht(Kt,wi,X,Ge,lt);if(ye)return Fn(ye)}Dt=ti}if(Kt&&Dt&&Ge!==lt){let Gt=Ht(Kt,wi,X,Ge,lt);if(Gt)return Fn(Gt)}}return null}_toFoundBracket(I,ne){if(!ne)return null;let _e=this.getValueInRange(ne);_e=_e.toLowerCase();let Fe=I.textIsBracket[_e];return Fe?{range:ne,open:Fe.open,close:Fe.close,isOpen:I.textIsOpenBracket[_e]}:null}static computeIndentLevel(I,ne){let _e=0,Fe=0,Xe=I.length;for(;Fe<Xe;){let ot=I.charCodeAt(Fe);if(ot===32)_e++;else{if(ot!==9)break;_e=_e-_e%ne+ne}Fe++}return Fe===Xe?-1:_e}_computeIndentLevel(I){return Mn.computeIndentLevel(this._buffer.getLineContent(I+1),this._options.tabSize)}getActiveIndentGuide(I,ne,_e){this._assertNotDisposed();let Fe=this.getLineCount();if(I<1||I>Fe)throw new Error("Illegal value for lineNumber");let Xe=yi.a.getFoldingRules(this._languageIdentifier.id),ot=Boolean(Xe&&Xe.offSide),Mt=-2,Ot=-1,Tt=-2,Ht=-1,jt=ye=>{if(Mt!==-1&&(Mt===-2||Mt>ye-1)){Mt=-1,Ot=-1;for(let le=ye-2;le>=0;le--){let ue=this._computeIndentLevel(le);if(ue>=0){Mt=le,Ot=ue;break}}}if(Tt===-2){Tt=-1,Ht=-1;for(let le=ye;le<Fe;le++){let ue=this._computeIndentLevel(le);if(ue>=0){Tt=le,Ht=ue;break}}}},Kt=-2,wi=-1,Ti=-2,ft=-1,X=ye=>{if(Kt===-2){Kt=-1,wi=-1;for(let le=ye-2;le>=0;le--){let ue=this._computeIndentLevel(le);if(ue>=0){Kt=le,wi=ue;break}}}if(Ti!==-1&&(Ti===-2||Ti<ye-1)){Ti=-1,ft=-1;for(let le=ye;le<Fe;le++){let ue=this._computeIndentLevel(le);if(ue>=0){Ti=le,ft=ue;break}}}},ae=0,Ge=!0,lt=0,Dt=!0,Gt=0,ti=0;for(let ye=0;Ge||Dt;ye++){let le=I-ye,ue=I+ye;ye>1&&(le<1||le<ne)&&(Ge=!1),ye>1&&(ue>Fe||ue>_e)&&(Dt=!1),ye>5e4&&(Ge=!1,Dt=!1);let qe=-1;if(Ge){let tt=this._computeIndentLevel(le-1);tt>=0?(Tt=le-1,Ht=tt,qe=Math.ceil(tt/this._options.indentSize)):(jt(le),qe=this._getIndentLevelForWhitespaceLine(ot,Ot,Ht))}let Ze=-1;if(Dt){let tt=this._computeIndentLevel(ue-1);tt>=0?(Kt=ue-1,wi=tt,Ze=Math.ceil(tt/this._options.indentSize)):(X(ue),Ze=this._getIndentLevelForWhitespaceLine(ot,wi,ft))}if(ye!==0){if(ye===1){if(ue<=Fe&&Ze>=0&&ti+1===Ze){Ge=!1,ae=ue,lt=ue,Gt=Ze;continue}if(le>=1&&qe>=0&&qe-1===ti){Dt=!1,ae=le,lt=le,Gt=qe;continue}if(ae=I,lt=I,Gt=ti,Gt===0)return{startLineNumber:ae,endLineNumber:lt,indent:Gt}}Ge&&(qe>=Gt?ae=le:Ge=!1),Dt&&(Ze>=Gt?lt=ue:Dt=!1)}else ti=qe}return{startLineNumber:ae,endLineNumber:lt,indent:Gt}}getLinesIndentGuides(I,ne){this._assertNotDisposed();let _e=this.getLineCount();if(I<1||I>_e)throw new Error("Illegal value for startLineNumber");if(ne<1||ne>_e)throw new Error("Illegal value for endLineNumber");let Fe=yi.a.getFoldingRules(this._languageIdentifier.id),Xe=Boolean(Fe&&Fe.offSide),ot=new Array(ne-I+1),Mt=-2,Ot=-1,Tt=-2,Ht=-1;for(let jt=I;jt<=ne;jt++){let Kt=jt-I,wi=this._computeIndentLevel(jt-1);if(wi>=0)Mt=jt-1,Ot=wi,ot[Kt]=Math.ceil(wi/this._options.indentSize);else{if(Mt===-2){Mt=-1,Ot=-1;for(let Ti=jt-2;Ti>=0;Ti--){let ft=this._computeIndentLevel(Ti);if(ft>=0){Mt=Ti,Ot=ft;break}}}if(Tt!==-1&&(Tt===-2||Tt<jt-1)){Tt=-1,Ht=-1;for(let Ti=jt;Ti<_e;Ti++){let ft=this._computeIndentLevel(Ti);if(ft>=0){Tt=Ti,Ht=ft;break}}}ot[Kt]=this._getIndentLevelForWhitespaceLine(Xe,Ot,Ht)}}return ot}_getIndentLevelForWhitespaceLine(I,ne,_e){return ne===-1||_e===-1?0:ne<_e?1+Math.floor(ne/this._options.indentSize):ne===_e||I?Math.ceil(_e/this._options.indentSize):1+Math.floor(_e/this._options.indentSize)}}Mn.MODEL_SYNC_LIMIT=52428800,Mn.LARGE_FILE_SIZE_THRESHOLD=20971520,Mn.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Mn.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:ge.d.tabSize,indentSize:ge.d.indentSize,insertSpaces:ge.d.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:ge.d.trimAutoWhitespace,largeFileOptimizations:ge.d.largeFileOptimizations};class Nn{constructor(){this._decorationsTree0=new xe,this._decorationsTree1=new xe}intervalSearch(I,ne,_e,Fe,Xe){let ot=this._decorationsTree0.intervalSearch(I,ne,_e,Fe,Xe),Mt=this._decorationsTree1.intervalSearch(I,ne,_e,Fe,Xe);return ot.concat(Mt)}search(I,ne,_e,Fe){if(_e)return this._decorationsTree1.search(I,ne,Fe);{let Xe=this._decorationsTree0.search(I,ne,Fe),ot=this._decorationsTree1.search(I,ne,Fe);return Xe.concat(ot)}}collectNodesFromOwner(I){let ne=this._decorationsTree0.collectNodesFromOwner(I),_e=this._decorationsTree1.collectNodesFromOwner(I);return ne.concat(_e)}collectNodesPostOrder(){let I=this._decorationsTree0.collectNodesPostOrder(),ne=this._decorationsTree1.collectNodesPostOrder();return I.concat(ne)}insert(I){ie(I)?this._decorationsTree1.insert(I):this._decorationsTree0.insert(I)}delete(I){ie(I)?this._decorationsTree1.delete(I):this._decorationsTree0.delete(I)}resolveNode(I,ne){ie(I)?this._decorationsTree1.resolveNode(I,ne):this._decorationsTree0.resolveNode(I,ne)}acceptReplace(I,ne,_e,Fe){this._decorationsTree0.acceptReplace(I,ne,_e,Fe),this._decorationsTree1.acceptReplace(I,ne,_e,Fe)}}function Hn(qt){return qt.replace(/[^a-z0-9\-_]/gi," ")}class Jn{constructor(I){this.color=I.color||"",this.darkColor=I.darkColor||""}}class _o extends Jn{constructor(I){super(I),this._resolvedColor=null,this.position=typeof I.position=="number"?I.position:C.d.Center}getColor(I){return this._resolvedColor||(I.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,I):this._resolvedColor=this._resolveColor(this.color,I)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(I,ne){if(typeof I=="string")return I;let _e=I?ne.getColor(I.id):null;return _e?_e.toString():""}}class pn extends Jn{constructor(I){super(I),this.position=I.position}getColor(I){return this._resolvedColor||(I.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,I):this._resolvedColor=this._resolveColor(this.color,I)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(I,ne){return typeof I=="string"?si.a.fromHex(I):ne.getColor(I.id)}}class Gn{constructor(I){this.stickiness=I.stickiness||0,this.zIndex=I.zIndex||0,this.className=I.className?Hn(I.className):null,this.hoverMessage=I.hoverMessage||null,this.glyphMarginHoverMessage=I.glyphMarginHoverMessage||null,this.isWholeLine=I.isWholeLine||!1,this.showIfCollapsed=I.showIfCollapsed||!1,this.collapseOnReplaceEdit=I.collapseOnReplaceEdit||!1,this.overviewRuler=I.overviewRuler?new _o(I.overviewRuler):null,this.minimap=I.minimap?new pn(I.minimap):null,this.glyphMarginClassName=I.glyphMarginClassName?Hn(I.glyphMarginClassName):null,this.linesDecorationsClassName=I.linesDecorationsClassName?Hn(I.linesDecorationsClassName):null,this.firstLineDecorationClassName=I.firstLineDecorationClassName?Hn(I.firstLineDecorationClassName):null,this.marginClassName=I.marginClassName?Hn(I.marginClassName):null,this.inlineClassName=I.inlineClassName?Hn(I.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=I.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=I.beforeContentClassName?Hn(I.beforeContentClassName):null,this.afterContentClassName=I.afterContentClassName?Hn(I.afterContentClassName):null}static register(I){return new Gn(I)}static createDynamic(I){return new Gn(I)}}Gn.EMPTY=Gn.register({});let on=[Gn.register({stickiness:0}),Gn.register({stickiness:1}),Gn.register({stickiness:2}),Gn.register({stickiness:3})];function ho(qt){return qt instanceof Gn?qt:Gn.createDynamic(qt)}class On extends D.a{constructor(){super(),this._actual=this._register(new f.a),this.event=this._actual.event,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){if(this._deferredCnt--,this._deferredCnt===0&&this._shouldFire){let I={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(I)}}checkAffectedAndFire(I){this._affectsMinimap||(this._affectsMinimap=!(!I.minimap||!I.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!I.overviewRuler||!I.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Dn extends D.a{constructor(){super(),this._fastEmitter=this._register(new f.a),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new f.a),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(I=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=I;let ne=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(ne),this._slowEmitter.fire(ne)}}fire(I){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(I):this._deferredEvent=I:(this._fastEmitter.fire(I),this._slowEmitter.fire(I))}}},function(Ie,w,o){"use strict";function h(Te,Ee){return Ee.length===0?Te:Te.replace(/\{(\d+)\}/g,function(ve,Re){var We=Re[0];return Ee[We]!==void 0?Ee[We]:ve})}function f(Te,Ee){for(var ve=[],Re=2;Re<arguments.length;Re++)ve[Re-2]=arguments[Re];return h(Ee,ve)}function D(Te){return f}var H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie,U,q,B;o.d(w,"g",function(){return pi}),o.d(w,"d",function(){return S}),o.d(w,"b",function(){return k}),o.d(w,"a",function(){return te}),o.d(w,"e",function(){return he}),o.d(w,"c",function(){return $}),o.d(w,"f",function(){return z}),o.d(w,"h",function(){return ui}),function(Te){Te.create=function(Ee,ve){return{line:Ee,character:ve}},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&wt.number(ve.line)&&wt.number(ve.character)}}(H||(H={})),function(Te){Te.create=function(Ee,ve,Re,We){if(wt.number(Ee)&&wt.number(ve)&&wt.number(Re)&&wt.number(We))return{start:H.create(Ee,ve),end:H.create(Re,We)};if(H.is(Ee)&&H.is(ve))return{start:Ee,end:ve};throw new Error("Range#create called with invalid arguments["+Ee+", "+ve+", "+Re+", "+We+"]")},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&H.is(ve.start)&&H.is(ve.end)}}(E||(E={})),function(Te){Te.create=function(Ee,ve){return{uri:Ee,range:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.string(ve.uri)||wt.undefined(ve.uri))}}(ge||(ge={})),function(Te){Te.create=function(Ee,ve,Re,We){return{targetUri:Ee,targetRange:ve,targetSelectionRange:Re,originSelectionRange:We}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.targetRange)&&wt.string(ve.targetUri)&&(E.is(ve.targetSelectionRange)||wt.undefined(ve.targetSelectionRange))&&(E.is(ve.originSelectionRange)||wt.undefined(ve.originSelectionRange))}}(W||(W={})),function(Te){Te.create=function(Ee,ve,Re,We){return{red:Ee,green:ve,blue:Re,alpha:We}},Te.is=function(Ee){var ve=Ee;return wt.number(ve.red)&&wt.number(ve.green)&&wt.number(ve.blue)&&wt.number(ve.alpha)}}(Q||(Q={})),function(Te){Te.create=function(Ee,ve){return{range:Ee,color:ve}},Te.is=function(Ee){var ve=Ee;return E.is(ve.range)&&Q.is(ve.color)}}(y||(y={})),function(Te){Te.create=function(Ee,ve,Re){return{label:Ee,textEdit:ve,additionalTextEdits:Re}},Te.is=function(Ee){var ve=Ee;return wt.string(ve.label)&&(wt.undefined(ve.textEdit)||g.is(ve))&&(wt.undefined(ve.additionalTextEdits)||wt.typedArray(ve.additionalTextEdits,g.is))}}(C||(C={})),function(Te){Te.Comment="comment",Te.Imports="imports",Te.Region="region"}(S||(S={})),function(Te){Te.create=function(Ee,ve,Re,We,Be){var Le={startLine:Ee,endLine:ve};return wt.defined(Re)&&(Le.startCharacter=Re),wt.defined(We)&&(Le.endCharacter=We),wt.defined(Be)&&(Le.kind=Be),Le},Te.is=function(Ee){var ve=Ee;return wt.number(ve.startLine)&&wt.number(ve.startLine)&&(wt.undefined(ve.startCharacter)||wt.number(ve.startCharacter))&&(wt.undefined(ve.endCharacter)||wt.number(ve.endCharacter))&&(wt.undefined(ve.kind)||wt.string(ve.kind))}}(P||(P={})),function(Te){Te.create=function(Ee,ve){return{location:Ee,message:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&ge.is(ve.location)&&wt.string(ve.message)}}(V||(V={})),function(Te){Te.Error=1,Te.Warning=2,Te.Information=3,Te.Hint=4}(k||(k={})),function(Te){Te.Unnecessary=1,Te.Deprecated=2}(l||(l={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve!=null&&(wt.number(ve.value)||wt.string(ve.value))&&wt.string(ve.target)}}(T||(T={})),function(Te){Te.create=function(Ee,ve,Re,We,Be,Le){var Ke={range:Ee,message:ve};return wt.defined(Re)&&(Ke.severity=Re),wt.defined(We)&&(Ke.code=We),wt.defined(Be)&&(Ke.source=Be),wt.defined(Le)&&(Ke.relatedInformation=Le),Ke},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&wt.string(ve.message)&&(wt.number(ve.severity)||wt.undefined(ve.severity))&&(wt.number(ve.code)||wt.string(ve.code)||wt.undefined(ve.code))&&(wt.string(ve.source)||wt.undefined(ve.source))&&(wt.undefined(ve.relatedInformation)||wt.typedArray(ve.relatedInformation,V.is))}}(N||(N={})),function(Te){Te.create=function(Ee,ve){for(var Re=[],We=2;We<arguments.length;We++)Re[We-2]=arguments[We];var Be={title:Ee,command:ve};return wt.defined(Re)&&Re.length>0&&(Be.arguments=Re),Be},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.title)&&wt.string(ve.command)}}(b||(b={})),function(Te){Te.replace=function(Ee,ve){return{range:Ee,newText:ve}},Te.insert=function(Ee,ve){return{range:{start:Ee,end:Ee},newText:ve}},Te.del=function(Ee){return{range:Ee,newText:""}},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&wt.string(ve.newText)&&E.is(ve.range)}}(g||(g={})),function(Te){Te.create=function(Ee,ve){return{textDocument:Ee,edits:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&ke.is(ve.textDocument)&&Array.isArray(ve.edits)}}(j||(j={})),function(Te){Te.create=function(Ee,ve){var Re={kind:"create",uri:Ee};return ve===void 0||ve.overwrite===void 0&&ve.ignoreIfExists===void 0||(Re.options=ve),Re},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="create"&&wt.string(ve.uri)&&(ve.options===void 0||(ve.options.overwrite===void 0||wt.boolean(ve.options.overwrite))&&(ve.options.ignoreIfExists===void 0||wt.boolean(ve.options.ignoreIfExists)))}}(ie||(ie={})),function(Te){Te.create=function(Ee,ve,Re){var We={kind:"rename",oldUri:Ee,newUri:ve};return Re===void 0||Re.overwrite===void 0&&Re.ignoreIfExists===void 0||(We.options=Re),We},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="rename"&&wt.string(ve.oldUri)&&wt.string(ve.newUri)&&(ve.options===void 0||(ve.options.overwrite===void 0||wt.boolean(ve.options.overwrite))&&(ve.options.ignoreIfExists===void 0||wt.boolean(ve.options.ignoreIfExists)))}}(U||(U={})),function(Te){Te.create=function(Ee,ve){var Re={kind:"delete",uri:Ee};return ve===void 0||ve.recursive===void 0&&ve.ignoreIfNotExists===void 0||(Re.options=ve),Re},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="delete"&&wt.string(ve.uri)&&(ve.options===void 0||(ve.options.recursive===void 0||wt.boolean(ve.options.recursive))&&(ve.options.ignoreIfNotExists===void 0||wt.boolean(ve.options.ignoreIfNotExists)))}}(q||(q={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve&&(ve.changes!==void 0||ve.documentChanges!==void 0)&&(ve.documentChanges===void 0||ve.documentChanges.every(function(Re){return wt.string(Re.kind)?ie.is(Re)||U.is(Re)||q.is(Re):j.is(Re)}))}}(B||(B={}));var se,ke,xe,Y,Z,te,he,Ce,Ae,L,nt,ct,Ye,ht,fe,$,G,z,J,Se,A,ee,de,Oe,$e,pt,it,At,Nt=function(){function Te(Ee){this.edits=Ee}return Te.prototype.insert=function(Ee,ve){this.edits.push(g.insert(Ee,ve))},Te.prototype.replace=function(Ee,ve){this.edits.push(g.replace(Ee,ve))},Te.prototype.delete=function(Ee){this.edits.push(g.del(Ee))},Te.prototype.add=function(Ee){this.edits.push(Ee)},Te.prototype.all=function(){return this.edits},Te.prototype.clear=function(){this.edits.splice(0,this.edits.length)},Te}();(function(){function Te(Ee){var ve=this;this._textEditChanges=Object.create(null),Ee&&(this._workspaceEdit=Ee,Ee.documentChanges?Ee.documentChanges.forEach(function(Re){if(j.is(Re)){var We=new Nt(Re.edits);ve._textEditChanges[Re.textDocument.uri]=We}}):Ee.changes&&Object.keys(Ee.changes).forEach(function(Re){var We=new Nt(Ee.changes[Re]);ve._textEditChanges[Re]=We}))}Object.defineProperty(Te.prototype,"edit",{get:function(){return this._workspaceEdit===void 0?{documentChanges:[]}:this._workspaceEdit},enumerable:!0,configurable:!0}),Te.prototype.getTextEditChange=function(Ee){if(ke.is(Ee)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var ve=Ee;if(!(We=this._textEditChanges[ve.uri])){var Re={textDocument:ve,edits:Be=[]};this._workspaceEdit.documentChanges.push(Re),We=new Nt(Be),this._textEditChanges[ve.uri]=We}return We}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var We;if(!(We=this._textEditChanges[Ee])){var Be=[];this._workspaceEdit.changes[Ee]=Be,We=new Nt(Be),this._textEditChanges[Ee]=We}return We},Te.prototype.createFile=function(Ee,ve){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(ie.create(Ee,ve))},Te.prototype.renameFile=function(Ee,ve,Re){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(U.create(Ee,ve,Re))},Te.prototype.deleteFile=function(Ee,ve){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(q.create(Ee,ve))},Te.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(Te){Te.create=function(Ee){return{uri:Ee}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)}}(se||(se={})),function(Te){Te.create=function(Ee,ve){return{uri:Ee,version:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)&&(ve.version===null||wt.number(ve.version))}}(ke||(ke={})),function(Te){Te.create=function(Ee,ve,Re,We){return{uri:Ee,languageId:ve,version:Re,text:We}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)&&wt.string(ve.languageId)&&wt.number(ve.version)&&wt.string(ve.text)}}(xe||(xe={})),function(Te){Te.PlainText="plaintext",Te.Markdown="markdown"}(Y||(Y={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve===Te.PlainText||ve===Te.Markdown}}(Y||(Y={})),function(Te){Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(Ee)&&Y.is(ve.kind)&&wt.string(ve.value)}}(Z||(Z={})),function(Te){Te.Text=1,Te.Method=2,Te.Function=3,Te.Constructor=4,Te.Field=5,Te.Variable=6,Te.Class=7,Te.Interface=8,Te.Module=9,Te.Property=10,Te.Unit=11,Te.Value=12,Te.Enum=13,Te.Keyword=14,Te.Snippet=15,Te.Color=16,Te.File=17,Te.Reference=18,Te.Folder=19,Te.EnumMember=20,Te.Constant=21,Te.Struct=22,Te.Event=23,Te.Operator=24,Te.TypeParameter=25}(te||(te={})),function(Te){Te.PlainText=1,Te.Snippet=2}(he||(he={})),function(Te){Te.Deprecated=1}(Ce||(Ce={})),function(Te){Te.create=function(Ee,ve,Re){return{newText:Ee,insert:ve,replace:Re}},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.newText)&&E.is(ve.insert)&&E.is(ve.replace)}}(Ae||(Ae={})),function(Te){Te.create=function(Ee){return{label:Ee}}}(L||(L={})),function(Te){Te.create=function(Ee,ve){return{items:Ee||[],isIncomplete:!!ve}}}(nt||(nt={})),function(Te){Te.fromPlainText=function(Ee){return Ee.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Te.is=function(Ee){var ve=Ee;return wt.string(ve)||wt.objectLiteral(ve)&&wt.string(ve.language)&&wt.string(ve.value)}}(ct||(ct={})),function(Te){Te.is=function(Ee){var ve=Ee;return!!ve&&wt.objectLiteral(ve)&&(Z.is(ve.contents)||ct.is(ve.contents)||wt.typedArray(ve.contents,ct.is))&&(Ee.range===void 0||E.is(Ee.range))}}(Ye||(Ye={})),function(Te){Te.create=function(Ee,ve){return ve?{label:Ee,documentation:ve}:{label:Ee}}}(ht||(ht={})),function(Te){Te.create=function(Ee,ve){for(var Re=[],We=2;We<arguments.length;We++)Re[We-2]=arguments[We];var Be={label:Ee};return wt.defined(ve)&&(Be.documentation=ve),wt.defined(Re)?Be.parameters=Re:Be.parameters=[],Be}}(fe||(fe={})),function(Te){Te.Text=1,Te.Read=2,Te.Write=3}($||($={})),function(Te){Te.create=function(Ee,ve){var Re={range:Ee};return wt.number(ve)&&(Re.kind=ve),Re}}(G||(G={})),function(Te){Te.File=1,Te.Module=2,Te.Namespace=3,Te.Package=4,Te.Class=5,Te.Method=6,Te.Property=7,Te.Field=8,Te.Constructor=9,Te.Enum=10,Te.Interface=11,Te.Function=12,Te.Variable=13,Te.Constant=14,Te.String=15,Te.Number=16,Te.Boolean=17,Te.Array=18,Te.Object=19,Te.Key=20,Te.Null=21,Te.EnumMember=22,Te.Struct=23,Te.Event=24,Te.Operator=25,Te.TypeParameter=26}(z||(z={})),function(Te){Te.Deprecated=1}(J||(J={})),function(Te){Te.create=function(Ee,ve,Re,We,Be){var Le={name:Ee,kind:ve,location:{uri:We,range:Re}};return Be&&(Le.containerName=Be),Le}}(Se||(Se={})),function(Te){Te.create=function(Ee,ve,Re,We,Be,Le){var Ke={name:Ee,detail:ve,kind:Re,range:We,selectionRange:Be};return Le!==void 0&&(Ke.children=Le),Ke},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.name)&&wt.number(ve.kind)&&E.is(ve.range)&&E.is(ve.selectionRange)&&(ve.detail===void 0||wt.string(ve.detail))&&(ve.deprecated===void 0||wt.boolean(ve.deprecated))&&(ve.children===void 0||Array.isArray(ve.children))&&(ve.tags===void 0||Array.isArray(ve.tags))}}(A||(A={})),function(Te){Te.Empty="",Te.QuickFix="quickfix",Te.Refactor="refactor",Te.RefactorExtract="refactor.extract",Te.RefactorInline="refactor.inline",Te.RefactorRewrite="refactor.rewrite",Te.Source="source",Te.SourceOrganizeImports="source.organizeImports",Te.SourceFixAll="source.fixAll"}(ee||(ee={})),function(Te){Te.create=function(Ee,ve){var Re={diagnostics:Ee};return ve!=null&&(Re.only=ve),Re},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.typedArray(ve.diagnostics,N.is)&&(ve.only===void 0||wt.typedArray(ve.only,wt.string))}}(de||(de={})),function(Te){Te.create=function(Ee,ve,Re){var We={title:Ee};return b.is(ve)?We.command=ve:We.edit=ve,Re!==void 0&&(We.kind=Re),We},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.title)&&(ve.diagnostics===void 0||wt.typedArray(ve.diagnostics,N.is))&&(ve.kind===void 0||wt.string(ve.kind))&&(ve.edit!==void 0||ve.command!==void 0)&&(ve.command===void 0||b.is(ve.command))&&(ve.isPreferred===void 0||wt.boolean(ve.isPreferred))&&(ve.edit===void 0||B.is(ve.edit))}}(Oe||(Oe={})),function(Te){Te.create=function(Ee,ve){var Re={range:Ee};return wt.defined(ve)&&(Re.data=ve),Re},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.undefined(ve.command)||b.is(ve.command))}}($e||($e={})),function(Te){Te.create=function(Ee,ve){return{tabSize:Ee,insertSpaces:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.number(ve.tabSize)&&wt.boolean(ve.insertSpaces)}}(pt||(pt={})),function(Te){Te.create=function(Ee,ve,Re){return{range:Ee,target:ve,data:Re}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.undefined(ve.target)||wt.string(ve.target))}}(it||(it={})),function(Te){Te.create=function(Ee,ve){return{range:Ee,parent:ve}},Te.is=function(Ee){var ve=Ee;return ve!==void 0&&E.is(ve.range)&&(ve.parent===void 0||Te.is(ve.parent))}}(At||(At={}));var _i;(function(Te){Te.create=function(Ee,ve,Re,We){return new Ni(Ee,ve,Re,We)},Te.is=function(Ee){var ve=Ee;return!!(wt.defined(ve)&&wt.string(ve.uri)&&(wt.undefined(ve.languageId)||wt.string(ve.languageId))&&wt.number(ve.lineCount)&&wt.func(ve.getText)&&wt.func(ve.positionAt)&&wt.func(ve.offsetAt))},Te.applyEdits=function(Ee,ve){for(var Re=Ee.getText(),We=function xt(Xt,mi){if(Xt.length<=1)return Xt;var Yt=Xt.length/2|0,ri=Xt.slice(0,Yt),qi=Xt.slice(Yt);xt(ri,mi),xt(qi,mi);for(var an=0,_n=0,ei=0;an<ri.length&&_n<qi.length;){var ii=mi(ri[an],qi[_n]);Xt[ei++]=ii<=0?ri[an++]:qi[_n++]}for(;an<ri.length;)Xt[ei++]=ri[an++];for(;_n<qi.length;)Xt[ei++]=qi[_n++];return Xt}(ve,function(xt,Xt){var mi=xt.range.start.line-Xt.range.start.line;return mi===0?xt.range.start.character-Xt.range.start.character:mi}),Be=Re.length,Le=We.length-1;Le>=0;Le--){var Ke=We[Le],dt=Ee.offsetAt(Ke.range.start),yt=Ee.offsetAt(Ke.range.end);if(!(yt<=Be))throw new Error("Overlapping edit");Re=Re.substring(0,dt)+Ke.newText+Re.substring(yt,Re.length),Be=dt}return Re}})(_i||(_i={}));var wt,Ni=function(){function Te(Ee,ve,Re,We){this._uri=Ee,this._languageId=ve,this._version=Re,this._content=We,this._lineOffsets=void 0}return Object.defineProperty(Te.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),Te.prototype.getText=function(Ee){if(Ee){var ve=this.offsetAt(Ee.start),Re=this.offsetAt(Ee.end);return this._content.substring(ve,Re)}return this._content},Te.prototype.update=function(Ee,ve){this._content=Ee.text,this._version=ve,this._lineOffsets=void 0},Te.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var Ee=[],ve=this._content,Re=!0,We=0;We<ve.length;We++){Re&&(Ee.push(We),Re=!1);var Be=ve.charAt(We);Re=Be==="\r"||Be===` +`;if(this._buffer.getEOL()===ne)return;let _e=this.getFullModelRange(),Fe=this.getValueLengthInRange(_e),Xe=this.getLineCount(),rt=this.getLineMaxColumn(Xe);this._onBeforeEOLChange(),this._buffer.setEOL(ne),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Ue([new vt],this._versionId,!1,!1),this._createContentChanged2(new Q.a(1,1,Xe,rt),0,Fe,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){let I=this.getVersionId(),ne=this._decorationsTree.search(0,!1,!1,I);this._ensureNodesHaveRanges(ne)}_onAfterEOLChange(){let I=this.getVersionId(),ne=this._decorationsTree.collectNodesPostOrder();for(let _e=0,Fe=ne.length;_e<Fe;_e++){let Xe=ne[_e],rt=Xe.cachedAbsoluteStart-Xe.start,Mt=this._buffer.getOffsetAt(Xe.range.startLineNumber,Xe.range.startColumn),Dt=this._buffer.getOffsetAt(Xe.range.endLineNumber,Xe.range.endColumn);Xe.cachedAbsoluteStart=Mt,Xe.cachedAbsoluteEnd=Dt,Xe.cachedVersionId=I,Xe.start=Mt-rt,Xe.end=Dt-rt,ct(Xe)}}onBeforeAttached(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let I=0,ne=0,_e=this._buffer.getLineCount();for(let Fe=1;Fe<=_e;Fe++){let Xe=this._buffer.getLineLength(Fe);Xe>=1e4?ne+=Xe:I+=Xe}return ne>I}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(I){this._assertNotDisposed();let ne=I.tabSize!==void 0?I.tabSize:this._options.tabSize,_e=I.indentSize!==void 0?I.indentSize:this._options.indentSize,Fe=I.insertSpaces!==void 0?I.insertSpaces:this._options.insertSpaces,Xe=I.trimAutoWhitespace!==void 0?I.trimAutoWhitespace:this._options.trimAutoWhitespace,rt=new C.e({tabSize:ne,indentSize:_e,insertSpaces:Fe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Xe});if(this._options.equals(rt))return;let Mt=this._options.createChangeEvent(rt);this._options=rt,this._onDidChangeOptions.fire(Mt)}detectIndentation(I,ne){this._assertNotDisposed();let _e=k(this._buffer,ne,I);this.updateOptions({insertSpaces:_e.insertSpaces,tabSize:_e.tabSize,indentSize:_e.tabSize})}static _normalizeIndentationFromWhitespace(I,ne,_e){let Fe=0;for(let rt=0;rt<I.length;rt++)I.charAt(rt)===" "?Fe+=ne:Fe++;let Xe="";if(!_e){let rt=Math.floor(Fe/ne);Fe%=ne;for(let Mt=0;Mt<rt;Mt++)Xe+=" "}for(let rt=0;rt<Fe;rt++)Xe+=" ";return Xe}static normalizeIndentation(I,ne,_e){let Fe=H.w(I);return Fe===-1&&(Fe=I.length),Mn._normalizeIndentationFromWhitespace(I.substring(0,Fe),ne,_e)+I.substring(Fe)}normalizeIndentation(I){return this._assertNotDisposed(),Mn.normalizeIndentation(I,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(I=null){let ne=this.findMatches(H.a.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(I,ne.map(_e=>({range:_e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getOffsetAt(I){this._assertNotDisposed();let ne=this._validatePosition(I.lineNumber,I.column,0);return this._buffer.getOffsetAt(ne.lineNumber,ne.column)}getPositionAt(I){this._assertNotDisposed();let ne=Math.min(this._buffer.getLength(),Math.max(0,I));return this._buffer.getPositionAt(ne)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(I){this._versionId=I}_overwriteAlternativeVersionId(I){this._alternativeVersionId=I}_overwriteInitialUndoRedoSnapshot(I){this._initialUndoRedoSnapshot=I}getValue(I,ne=!1){this._assertNotDisposed();let _e=this.getFullModelRange(),Fe=this.getValueInRange(_e,I);return ne?this._buffer.getBOM()+Fe:Fe}createSnapshot(I=!1){return new xn(this._buffer.createSnapshot(I))}getValueLength(I,ne=!1){this._assertNotDisposed();let _e=this.getFullModelRange(),Fe=this.getValueLengthInRange(_e,I);return ne?this._buffer.getBOM().length+Fe:Fe}getValueInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(I),ne)}getValueLengthInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(I),ne)}getCharacterCountInRange(I,ne=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(I),ne)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(I)}getLineLength(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(I)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getLineMinColumn(I){return this._assertNotDisposed(),1}getLineMaxColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(I)+1}getLineFirstNonWhitespaceColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(I)}getLineLastNonWhitespaceColumn(I){if(this._assertNotDisposed(),I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(I)}_validateRangeRelaxedNoAllocations(I){let ne=this._buffer.getLineCount(),_e=I.startLineNumber,Fe=I.startColumn,Xe,rt;if(_e<1)Xe=1,rt=1;else if(_e>ne)Xe=ne,rt=this.getLineMaxColumn(Xe);else if(Xe=0|_e,Fe<=1)rt=1;else{let jt=this.getLineMaxColumn(Xe);rt=Fe>=jt?jt:0|Fe}let Mt=I.endLineNumber,Dt=I.endColumn,Tt,Ht;if(Mt<1)Tt=1,Ht=1;else if(Mt>ne)Tt=ne,Ht=this.getLineMaxColumn(Tt);else if(Tt=0|Mt,Dt<=1)Ht=1;else{let jt=this.getLineMaxColumn(Tt);Ht=Dt>=jt?jt:0|Dt}return _e===Xe&&Fe===rt&&Mt===Tt&&Dt===Ht&&I instanceof Q.a&&!(I instanceof y.a)?I:new Q.a(Xe,rt,Tt,Ht)}_isValidPosition(I,ne,_e){if(typeof I!="number"||typeof ne!="number"||isNaN(I)||isNaN(ne)||I<1||ne<1||(0|I)!==I||(0|ne)!==ne||I>this._buffer.getLineCount())return!1;if(ne===1)return!0;if(ne>this.getLineMaxColumn(I))return!1;if(_e===1){let Fe=this._buffer.getLineCharCode(I,ne-2);if(H.F(Fe))return!1}return!0}_validatePosition(I,ne,_e){let Fe=Math.floor(typeof I!="number"||isNaN(I)?1:I),Xe=Math.floor(typeof ne!="number"||isNaN(ne)?1:ne),rt=this._buffer.getLineCount();if(Fe<1)return new W.a(1,1);if(Fe>rt)return new W.a(rt,this.getLineMaxColumn(rt));if(Xe<=1)return new W.a(Fe,1);let Mt=this.getLineMaxColumn(Fe);if(Xe>=Mt)return new W.a(Fe,Mt);if(_e===1){let Dt=this._buffer.getLineCharCode(Fe,Xe-2);if(H.F(Dt))return new W.a(Fe,Xe-1)}return new W.a(Fe,Xe)}validatePosition(I){return this._assertNotDisposed(),I instanceof W.a&&this._isValidPosition(I.lineNumber,I.column,1)?I:this._validatePosition(I.lineNumber,I.column,1)}_isValidRange(I,ne){let _e=I.startLineNumber,Fe=I.startColumn,Xe=I.endLineNumber,rt=I.endColumn;if(!this._isValidPosition(_e,Fe,0)||!this._isValidPosition(Xe,rt,0))return!1;if(ne===1){let Mt=Fe>1?this._buffer.getLineCharCode(_e,Fe-2):0,Dt=rt>1&&rt<=this._buffer.getLineLength(Xe)?this._buffer.getLineCharCode(Xe,rt-2):0,Tt=H.F(Mt),Ht=H.F(Dt);return!Tt&&!Ht}return!0}validateRange(I){if(this._assertNotDisposed(),I instanceof Q.a&&!(I instanceof y.a)&&this._isValidRange(I,1))return I;let ne=this._validatePosition(I.startLineNumber,I.startColumn,0),_e=this._validatePosition(I.endLineNumber,I.endColumn,0),Fe=ne.lineNumber,Xe=ne.column,rt=_e.lineNumber,Mt=_e.column;{let Dt=Xe>1?this._buffer.getLineCharCode(Fe,Xe-2):0,Tt=Mt>1&&Mt<=this._buffer.getLineLength(rt)?this._buffer.getLineCharCode(rt,Mt-2):0,Ht=H.F(Dt),jt=H.F(Tt);return Ht||jt?Fe===rt&&Xe===Mt?new Q.a(Fe,Xe-1,rt,Mt-1):Ht&&jt?new Q.a(Fe,Xe-1,rt,Mt+1):Ht?new Q.a(Fe,Xe-1,rt,Mt):new Q.a(Fe,Xe,rt,Mt+1):new Q.a(Fe,Xe,rt,Mt)}}modifyPosition(I,ne){this._assertNotDisposed();let _e=this.getOffsetAt(I)+ne;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,_e)))}getFullModelRange(){this._assertNotDisposed();let I=this.getLineCount();return new Q.a(1,1,I,this.getLineMaxColumn(I))}findMatchesLineByLine(I,ne,_e,Fe){return this._buffer.findMatchesLineByLine(I,ne,_e,Fe)}findMatches(I,ne,_e,Fe,Xe,rt,Mt=999){this._assertNotDisposed();let Dt=null;ne!==null&&(Array.isArray(ne)||(ne=[ne]),ne.every(jt=>Q.a.isIRange(jt))&&(Dt=ne.map(jt=>this.validateRange(jt)))),Dt===null&&(Dt=[this.getFullModelRange()]),Dt=Dt.sort((jt,Kt)=>jt.startLineNumber-Kt.startLineNumber||jt.startColumn-Kt.startColumn);let Tt=[],Ht;if(Tt.push(Dt.reduce((jt,Kt)=>Q.a.areIntersecting(jt,Kt)?jt.plusRange(Kt):(Tt.push(jt),Kt))),!_e&&I.indexOf(` +`)<0){let jt=new At.a(I,_e,Fe,Xe).parseSearchRequest();if(!jt)return[];Ht=Kt=>this.findMatchesLineByLine(Kt,jt,rt,Mt)}else Ht=jt=>At.c.findMatches(this,new At.a(I,_e,Fe,Xe),jt,rt,Mt);return Tt.map(Ht).reduce((jt,Kt)=>jt.concat(Kt),[])}findNextMatch(I,ne,_e,Fe,Xe,rt){this._assertNotDisposed();let Mt=this.validatePosition(ne);if(!_e&&I.indexOf(` +`)<0){let Dt=new At.a(I,_e,Fe,Xe).parseSearchRequest();if(!Dt)return null;let Tt=this.getLineCount(),Ht=new Q.a(Mt.lineNumber,Mt.column,Tt,this.getLineMaxColumn(Tt)),jt=this.findMatchesLineByLine(Ht,Dt,rt,1);return At.c.findNextMatch(this,new At.a(I,_e,Fe,Xe),Mt,rt),jt.length>0?jt[0]:(Ht=new Q.a(1,1,Mt.lineNumber,this.getLineMaxColumn(Mt.lineNumber)),jt=this.findMatchesLineByLine(Ht,Dt,rt,1),jt.length>0?jt[0]:null)}return At.c.findNextMatch(this,new At.a(I,_e,Fe,Xe),Mt,rt)}findPreviousMatch(I,ne,_e,Fe,Xe,rt){this._assertNotDisposed();let Mt=this.validatePosition(ne);return At.c.findPreviousMatch(this,new At.a(I,_e,Fe,Xe),Mt,rt)}pushStackElement(){this._commandManager.pushStackElement()}pushEOL(I){if((this.getEOL()===` +`?0:1)!==I)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(I)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(I){return I instanceof C.f?I:new C.f(I.identifier||null,this.validateRange(I.range),I.text,I.forceMoveMarkers||!1,I.isAutoWhitespaceEdit||!1,I._isTracked||!1)}_validateEditOperations(I){let ne=[];for(let _e=0,Fe=I.length;_e<Fe;_e++)ne[_e]=this._validateEditOperation(I[_e]);return ne}pushEditOperations(I,ne,_e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(I,this._validateEditOperations(ne),_e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(I,ne,_e){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let Fe=ne.map(rt=>({range:this.validateRange(rt.range),text:rt.text})),Xe=!0;if(I)for(let rt=0,Mt=I.length;rt<Mt;rt++){let Dt=I[rt],Tt=!1;for(let Ht=0,jt=Fe.length;Ht<jt;Ht++){let Kt=Fe[Ht].range,wi=Kt.startLineNumber>Dt.endLineNumber,Ti=Dt.startLineNumber>Kt.endLineNumber;if(!wi&&!Ti){Tt=!0;break}}if(!Tt){Xe=!1;break}}if(Xe)for(let rt=0,Mt=this._trimAutoWhitespaceLines.length;rt<Mt;rt++){let Dt=this._trimAutoWhitespaceLines[rt],Tt=this.getLineMaxColumn(Dt),Ht=!0;for(let jt=0,Kt=Fe.length;jt<Kt;jt++){let wi=Fe[jt].range,Ti=Fe[jt].text;if(!(Dt<wi.startLineNumber||Dt>wi.endLineNumber)&&!(Dt===wi.startLineNumber&&wi.startColumn===Tt&&wi.isEmpty()&&Ti&&Ti.length>0&&Ti.charAt(0)===` +`||Dt===wi.startLineNumber&&wi.startColumn===1&&wi.isEmpty()&&Ti&&Ti.length>0&&Ti.charAt(Ti.length-1)===` +`)){Ht=!1;break}}if(Ht){let jt=new Q.a(Dt,1,Dt,Tt);ne.push(new C.f(null,jt,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(I,ne,_e)}_applyUndo(I,ne,_e,Fe){let Xe=I.map(rt=>{let Mt=this.getPositionAt(rt.newPosition),Dt=this.getPositionAt(rt.newEnd);return{range:new Q.a(Mt.lineNumber,Mt.column,Dt.lineNumber,Dt.column),text:rt.oldText}});this._applyUndoRedoEdits(Xe,ne,!0,!1,_e,Fe)}_applyRedo(I,ne,_e,Fe){let Xe=I.map(rt=>{let Mt=this.getPositionAt(rt.oldPosition),Dt=this.getPositionAt(rt.oldEnd);return{range:new Q.a(Mt.lineNumber,Mt.column,Dt.lineNumber,Dt.column),text:rt.newText}});this._applyUndoRedoEdits(Xe,ne,!1,!0,_e,Fe)}_applyUndoRedoEdits(I,ne,_e,Fe,Xe,rt){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=_e,this._isRedoing=Fe,this.applyEdits(I,!1),this.setEOL(ne),this._overwriteAlternativeVersionId(Xe)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(rt),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(I,ne=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let _e=this._validateEditOperations(I);return this._doApplyEdits(_e,ne)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(I,ne){let _e=this._buffer.getLineCount(),Fe=this._buffer.applyEdits(I,this._options.trimAutoWhitespace,ne),Xe=this._buffer.getLineCount(),rt=Fe.changes;if(this._trimAutoWhitespaceLines=Fe.trimAutoWhitespaceLineNumbers,rt.length!==0){let Mt=[],Dt=_e;for(let Tt=0,Ht=rt.length;Tt<Ht;Tt++){let jt=rt[Tt],[Kt,wi,Ti]=Object(Ii.f)(jt.text);this._tokens.acceptEdit(jt.range,Kt,wi),this._tokens2.acceptEdit(jt.range,Kt,wi,Ti,jt.text.length>0?jt.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(jt.rangeOffset,jt.rangeLength,jt.text.length,jt.forceMoveMarkers);let ft=jt.range.startLineNumber,X=jt.range.endLineNumber,ae=X-ft,Ge=Kt,lt=Math.min(ae,Ge),Ot=Ge-ae;for(let Gt=lt;Gt>=0;Gt--){let ti=ft+Gt,ye=Xe-Dt-Ot+ti;Mt.push(new gt(ti,this.getLineContent(ye)))}if(lt<ae){let Gt=ft+lt;Mt.push(new vi(Gt+1,X))}if(lt<Ge){let Gt=ft+lt,ti=Ge-lt,ye=Xe-Dt-ti+Gt+1,le=[];for(let ue=0;ue<ti;ue++){let qe=ye+ue;le[qe-ye]=this.getLineContent(qe)}Mt.push(new Rt(Gt+1,ft+Ge,le))}Dt+=Ot}this._increaseVersionId(),this._emitContentChangedEvent(new Ue(Mt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:rt,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Fe.reverseEdits===null?void 0:Fe.reverseEdits}undo(){this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}changeDecorations(I,ne=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(ne,I)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(I,ne){let _e={addDecoration:(Xe,rt)=>this._deltaDecorationsImpl(I,[],[{range:Xe,options:rt}])[0],changeDecoration:(Xe,rt)=>{this._changeDecorationImpl(Xe,rt)},changeDecorationOptions:(Xe,rt)=>{this._changeDecorationOptionsImpl(Xe,dr(rt))},removeDecoration:Xe=>{this._deltaDecorationsImpl(I,[Xe],[])},deltaDecorations:(Xe,rt)=>Xe.length===0&&rt.length===0?[]:this._deltaDecorationsImpl(I,Xe,rt)},Fe=null;try{Fe=ne(_e)}catch(Xe){Object(h.e)(Xe)}return _e.addDecoration=un,_e.changeDecoration=un,_e.changeDecorationOptions=un,_e.removeDecoration=un,_e.deltaDecorations=un,Fe}deltaDecorations(I,ne,_e=0){if(this._assertNotDisposed(),I||(I=[]),I.length===0&&ne.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(_e,I,ne)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(I){return this.getDecorationRange(I)}_setTrackedRange(I,ne,_e){let Fe=I?this._decorations[I]:null;if(!Fe)return ne?this._deltaDecorationsImpl(0,[],[{range:ne,options:rn[_e]}])[0]:null;if(!ne)return this._decorationsTree.delete(Fe),delete this._decorations[Fe.id],null;let Xe=this._validateRangeRelaxedNoAllocations(ne),rt=this._buffer.getOffsetAt(Xe.startLineNumber,Xe.startColumn),Mt=this._buffer.getOffsetAt(Xe.endLineNumber,Xe.endColumn);return this._decorationsTree.delete(Fe),Fe.reset(this.getVersionId(),rt,Mt,Xe),Fe.setOptions(rn[_e]),this._decorationsTree.insert(Fe),Fe.id}removeAllDecorationsWithOwnerId(I){if(this._isDisposed)return;let ne=this._decorationsTree.collectNodesFromOwner(I);for(let _e=0,Fe=ne.length;_e<Fe;_e++){let Xe=ne[_e];this._decorationsTree.delete(Xe),delete this._decorations[Xe.id]}}getDecorationOptions(I){let ne=this._decorations[I];return ne?ne.options:null}getDecorationRange(I){let ne=this._decorations[I];if(!ne)return null;let _e=this.getVersionId();return ne.cachedVersionId!==_e&&this._decorationsTree.resolveNode(ne,_e),ne.range===null&&(ne.range=this._getRangeAt(ne.cachedAbsoluteStart,ne.cachedAbsoluteEnd)),ne.range}getLineDecorations(I,ne=0,_e=!1){return I<1||I>this.getLineCount()?[]:this.getLinesDecorations(I,I,ne,_e)}getLinesDecorations(I,ne,_e=0,Fe=!1){let Xe=this.getLineCount(),rt=Math.min(Xe,Math.max(1,I)),Mt=Math.min(Xe,Math.max(1,ne)),Dt=this.getLineMaxColumn(Mt);return this._getDecorationsInRange(new Q.a(rt,1,Mt,Dt),_e,Fe)}getDecorationsInRange(I,ne=0,_e=!1){let Fe=this.validateRange(I);return this._getDecorationsInRange(Fe,ne,_e)}getOverviewRulerDecorations(I=0,ne=!1){let _e=this.getVersionId(),Fe=this._decorationsTree.search(I,ne,!0,_e);return this._ensureNodesHaveRanges(Fe)}getAllDecorations(I=0,ne=!1){let _e=this.getVersionId(),Fe=this._decorationsTree.search(I,ne,!1,_e);return this._ensureNodesHaveRanges(Fe)}_getDecorationsInRange(I,ne,_e){let Fe=this._buffer.getOffsetAt(I.startLineNumber,I.startColumn),Xe=this._buffer.getOffsetAt(I.endLineNumber,I.endColumn),rt=this.getVersionId(),Mt=this._decorationsTree.intervalSearch(Fe,Xe,ne,_e,rt);return this._ensureNodesHaveRanges(Mt)}_ensureNodesHaveRanges(I){for(let ne=0,_e=I.length;ne<_e;ne++){let Fe=I[ne];Fe.range===null&&(Fe.range=this._getRangeAt(Fe.cachedAbsoluteStart,Fe.cachedAbsoluteEnd))}return I}_getRangeAt(I,ne){return this._buffer.getRangeAt(I,ne-I)}_changeDecorationImpl(I,ne){let _e=this._decorations[I];if(!_e)return;let Fe=this._validateRangeRelaxedNoAllocations(ne),Xe=this._buffer.getOffsetAt(Fe.startLineNumber,Fe.startColumn),rt=this._buffer.getOffsetAt(Fe.endLineNumber,Fe.endColumn);this._decorationsTree.delete(_e),_e.reset(this.getVersionId(),Xe,rt,Fe),this._decorationsTree.insert(_e),this._onDidChangeDecorations.checkAffectedAndFire(_e.options)}_changeDecorationOptionsImpl(I,ne){let _e=this._decorations[I];if(!_e)return;let Fe=!(!_e.options.overviewRuler||!_e.options.overviewRuler.color),Xe=!(!ne.overviewRuler||!ne.overviewRuler.color);this._onDidChangeDecorations.checkAffectedAndFire(_e.options),this._onDidChangeDecorations.checkAffectedAndFire(ne),Fe!==Xe?(this._decorationsTree.delete(_e),_e.setOptions(ne),this._decorationsTree.insert(_e)):_e.setOptions(ne)}_deltaDecorationsImpl(I,ne,_e){let Fe=this.getVersionId(),Xe=ne.length,rt=0,Mt=_e.length,Dt=0,Tt=new Array(Mt);for(;rt<Xe||Dt<Mt;){let Ht=null;if(rt<Xe){do Ht=this._decorations[ne[rt++]];while(!Ht&&rt<Xe);Ht&&(this._decorationsTree.delete(Ht),this._onDidChangeDecorations.checkAffectedAndFire(Ht.options))}if(Dt<Mt){if(!Ht){let X=++this._lastDecorationId,ae=`${this._instanceId};${X}`;Ht=new se(ae,0,0),this._decorations[ae]=Ht}let jt=_e[Dt],Kt=this._validateRangeRelaxedNoAllocations(jt.range),wi=dr(jt.options),Ti=this._buffer.getOffsetAt(Kt.startLineNumber,Kt.startColumn),ft=this._buffer.getOffsetAt(Kt.endLineNumber,Kt.endColumn);Ht.ownerId=I,Ht.reset(Fe,Ti,ft,Kt),Ht.setOptions(wi),this._onDidChangeDecorations.checkAffectedAndFire(wi),this._decorationsTree.insert(Ht),Tt[Dt]=Ht.id,Dt++}else Ht&&delete this._decorations[Ht.id]}return Tt}setTokens(I){if(I.length===0)return;let ne=[];for(let _e=0,Fe=I.length;_e<Fe;_e++){let Xe=I[_e],rt=0,Mt=0,Dt=!1;for(let Tt=0,Ht=Xe.tokens.length;Tt<Ht;Tt++){let jt=Xe.startLineNumber+Tt;Dt?(this._tokens.setTokens(this._languageIdentifier.id,jt-1,this._buffer.getLineLength(jt),Xe.tokens[Tt],!1),Mt=jt):this._tokens.setTokens(this._languageIdentifier.id,jt-1,this._buffer.getLineLength(jt),Xe.tokens[Tt],!0)&&(Dt=!0,rt=jt,Mt=jt)}Dt&&ne.push({fromLineNumber:rt,toLineNumber:Mt})}ne.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:ne})}setSemanticTokens(I,ne){this._tokens2.set(I,ne),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:I!==null,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasSemanticTokens(){return this._tokens2.isComplete()}setPartialSemanticTokens(I,ne){if(this.hasSemanticTokens())return;let _e=this._tokens2.setPartial(I,ne);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:_e.startLineNumber,toLineNumber:_e.endLineNumber}]})}tokenizeViewport(I,ne){I=Math.max(1,I),ne=Math.min(this._buffer.getLineCount(),ne),this._tokenization.tokenizeViewport(I,ne)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(I){this._isDisposing||this._onDidChangeTokens.fire(I)}resetTokenization(){this._tokenization.reset()}forceTokenization(I){if(I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(I)}isCheapToTokenize(I){return this._tokenization.isCheapToTokenize(I)}tokenizeIfCheap(I){this.isCheapToTokenize(I)&&this.forceTokenization(I)}getLineTokens(I){if(I<1||I>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(I)}_getLineTokens(I){let ne=this.getLineContent(I),_e=this._tokens.getTokens(this._languageIdentifier.id,I-1,ne);return this._tokens2.addSemanticTokens(I,_e)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(I){if(this._languageIdentifier.id===I.id)return;let ne={oldLanguage:this._languageIdentifier.language,newLanguage:I.language};this._languageIdentifier=I,this._onDidChangeLanguage.fire(ne),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(I,ne){let _e=this.validatePosition(new W.a(I,ne)),Fe=this.getLineTokens(_e.lineNumber);return Fe.getLanguageId(Fe.findTokenIndexAtOffset(_e.column-1))}getWordAtPosition(I){this._assertNotDisposed();let ne=this.validatePosition(I),_e=this.getLineContent(ne.lineNumber),Fe=this._getLineTokens(ne.lineNumber),Xe=Fe.findTokenIndexAtOffset(ne.column-1),[rt,Mt]=Mn._findLanguageBoundaries(Fe,Xe),Dt=Object(Hi.d)(ne.column,yi.a.getWordDefinition(Fe.getLanguageId(Xe)),_e.substring(rt,Mt),rt);if(Dt&&Dt.startColumn<=I.column&&I.column<=Dt.endColumn)return Dt;if(Xe>0&&rt===ne.column-1){let[Tt,Ht]=Mn._findLanguageBoundaries(Fe,Xe-1),jt=Object(Hi.d)(ne.column,yi.a.getWordDefinition(Fe.getLanguageId(Xe-1)),_e.substring(Tt,Ht),Tt);if(jt&&jt.startColumn<=I.column&&I.column<=jt.endColumn)return jt}return null}static _findLanguageBoundaries(I,ne){let _e=I.getLanguageId(ne),Fe=0;for(let rt=ne;rt>=0&&I.getLanguageId(rt)===_e;rt--)Fe=I.getStartOffset(rt);let Xe=I.getLineContent().length;for(let rt=ne,Mt=I.getCount();rt<Mt&&I.getLanguageId(rt)===_e;rt++)Xe=I.getEndOffset(rt);return[Fe,Xe]}getWordUntilPosition(I){let ne=this.getWordAtPosition(I);return ne?{word:ne.word.substr(0,I.column-ne.startColumn),startColumn:ne.startColumn,endColumn:I.column}:{word:"",startColumn:I.column,endColumn:I.column}}findMatchingBracketUp(I,ne){let _e=I.toLowerCase(),Fe=this.validatePosition(ne),Xe=this._getLineTokens(Fe.lineNumber),rt=Xe.getLanguageId(Xe.findTokenIndexAtOffset(Fe.column-1)),Mt=yi.a.getBracketsSupport(rt);if(!Mt)return null;let Dt=Mt.textIsBracket[_e];return Dt?Fn(this._findMatchingBracketUp(Dt,Fe,null)):null}matchBracket(I){return this._matchBracket(this.validatePosition(I))}_matchBracket(I){let ne=I.lineNumber,_e=this._getLineTokens(ne),Fe=_e.getCount(),Xe=this._buffer.getLineContent(ne),rt=_e.findTokenIndexAtOffset(I.column-1);if(rt<0)return null;let Mt=yi.a.getBracketsSupport(_e.getLanguageId(rt));if(Mt&&!Object(kt.b)(_e.getStandardTokenType(rt))){let Dt=Math.max(0,I.column-1-Mt.maxBracketLength);for(let jt=rt-1;jt>=0;jt--){let Kt=_e.getEndOffset(jt);if(Kt<=Dt)break;Object(kt.b)(_e.getStandardTokenType(jt))&&(Dt=Kt)}let Tt=Math.min(Xe.length,I.column-1+Mt.maxBracketLength),Ht=null;for(;;){let jt=Et.a.findNextBracketInRange(Mt.forwardRegex,ne,Xe,Dt,Tt);if(!jt)break;if(jt.startColumn<=I.column&&I.column<=jt.endColumn){let Kt=Xe.substring(jt.startColumn-1,jt.endColumn-1).toLowerCase(),wi=this._matchFoundBracket(jt,Mt.textIsBracket[Kt],Mt.textIsOpenBracket[Kt],null);if(wi){if(wi instanceof bn)return null;Ht=wi}}Dt=jt.endColumn-1}if(Ht)return Ht}if(rt>0&&_e.getStartOffset(rt)===I.column-1){let Dt=rt-1,Tt=yi.a.getBracketsSupport(_e.getLanguageId(Dt));if(Tt&&!Object(kt.b)(_e.getStandardTokenType(Dt))){let Ht=Math.max(0,I.column-1-Tt.maxBracketLength),jt=Math.min(Xe.length,I.column-1+Tt.maxBracketLength);for(let wi=Dt+1;wi<Fe;wi++){let Ti=_e.getStartOffset(wi);if(Ti>=jt)break;Object(kt.b)(_e.getStandardTokenType(wi))&&(jt=Ti)}let Kt=Et.a.findPrevBracketInRange(Tt.reversedRegex,ne,Xe,Ht,jt);if(Kt&&Kt.startColumn<=I.column&&I.column<=Kt.endColumn){let wi=Xe.substring(Kt.startColumn-1,Kt.endColumn-1).toLowerCase(),Ti=this._matchFoundBracket(Kt,Tt.textIsBracket[wi],Tt.textIsOpenBracket[wi],null);if(Ti)return Ti instanceof bn?null:Ti}}}return null}_matchFoundBracket(I,ne,_e,Fe){if(!ne)return null;let Xe=_e?this._findMatchingBracketDown(ne,I.getEndPosition(),Fe):this._findMatchingBracketUp(ne,I.getStartPosition(),Fe);return Xe?Xe instanceof bn?Xe:[I,Xe]:null}_findMatchingBracketUp(I,ne,_e){let Fe=I.languageIdentifier.id,Xe=I.reversedRegex,rt=-1,Mt=0,Dt=(Tt,Ht,jt,Kt)=>{for(;;){if(_e&&++Mt%100==0&&!_e())return bn.INSTANCE;let wi=Et.a.findPrevBracketInRange(Xe,Tt,Ht,jt,Kt);if(!wi)break;let Ti=Ht.substring(wi.startColumn-1,wi.endColumn-1).toLowerCase();if(I.isOpen(Ti)?rt++:I.isClose(Ti)&&rt--,rt===0)return wi;Kt=wi.startColumn-1}return null};for(let Tt=ne.lineNumber;Tt>=1;Tt--){let Ht=this._getLineTokens(Tt),jt=Ht.getCount(),Kt=this._buffer.getLineContent(Tt),wi=jt-1,Ti=Kt.length,ft=Kt.length;Tt===ne.lineNumber&&(wi=Ht.findTokenIndexAtOffset(ne.column-1),Ti=ne.column-1,ft=ne.column-1);let X=!0;for(;wi>=0;wi--){let ae=Ht.getLanguageId(wi)===Fe&&!Object(kt.b)(Ht.getStandardTokenType(wi));if(ae)X?Ti=Ht.getStartOffset(wi):(Ti=Ht.getStartOffset(wi),ft=Ht.getEndOffset(wi));else if(X&&Ti!==ft){let Ge=Dt(Tt,Kt,Ti,ft);if(Ge)return Ge}X=ae}if(X&&Ti!==ft){let ae=Dt(Tt,Kt,Ti,ft);if(ae)return ae}}return null}_findMatchingBracketDown(I,ne,_e){let Fe=I.languageIdentifier.id,Xe=I.forwardRegex,rt=1,Mt=0,Dt=(Ht,jt,Kt,wi)=>{for(;;){if(_e&&++Mt%100==0&&!_e())return bn.INSTANCE;let Ti=Et.a.findNextBracketInRange(Xe,Ht,jt,Kt,wi);if(!Ti)break;let ft=jt.substring(Ti.startColumn-1,Ti.endColumn-1).toLowerCase();if(I.isOpen(ft)?rt++:I.isClose(ft)&&rt--,rt===0)return Ti;Kt=Ti.endColumn-1}return null},Tt=this.getLineCount();for(let Ht=ne.lineNumber;Ht<=Tt;Ht++){let jt=this._getLineTokens(Ht),Kt=jt.getCount(),wi=this._buffer.getLineContent(Ht),Ti=0,ft=0,X=0;Ht===ne.lineNumber&&(Ti=jt.findTokenIndexAtOffset(ne.column-1),ft=ne.column-1,X=ne.column-1);let ae=!0;for(;Ti<Kt;Ti++){let Ge=jt.getLanguageId(Ti)===Fe&&!Object(kt.b)(jt.getStandardTokenType(Ti));if(Ge)ae||(ft=jt.getStartOffset(Ti)),X=jt.getEndOffset(Ti);else if(ae&&ft!==X){let lt=Dt(Ht,wi,ft,X);if(lt)return lt}ae=Ge}if(ae&&ft!==X){let Ge=Dt(Ht,wi,ft,X);if(Ge)return Ge}}return null}findPrevBracket(I){let ne=this.validatePosition(I),_e=-1,Fe=null;for(let Xe=ne.lineNumber;Xe>=1;Xe--){let rt=this._getLineTokens(Xe),Mt=rt.getCount(),Dt=this._buffer.getLineContent(Xe),Tt=Mt-1,Ht=Dt.length,jt=Dt.length;if(Xe===ne.lineNumber){Tt=rt.findTokenIndexAtOffset(ne.column-1),Ht=ne.column-1,jt=ne.column-1;let wi=rt.getLanguageId(Tt);_e!==wi&&(_e=wi,Fe=yi.a.getBracketsSupport(_e))}let Kt=!0;for(;Tt>=0;Tt--){let wi=rt.getLanguageId(Tt);if(_e!==wi){if(Fe&&Kt&&Ht!==jt){let ft=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Dt,Ht,jt);if(ft)return this._toFoundBracket(Fe,ft);Kt=!1}_e=wi,Fe=yi.a.getBracketsSupport(_e)}let Ti=!!Fe&&!Object(kt.b)(rt.getStandardTokenType(Tt));if(Ti)Kt?Ht=rt.getStartOffset(Tt):(Ht=rt.getStartOffset(Tt),jt=rt.getEndOffset(Tt));else if(Fe&&Kt&&Ht!==jt){let ft=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Dt,Ht,jt);if(ft)return this._toFoundBracket(Fe,ft)}Kt=Ti}if(Fe&&Kt&&Ht!==jt){let wi=Et.a.findPrevBracketInRange(Fe.reversedRegex,Xe,Dt,Ht,jt);if(wi)return this._toFoundBracket(Fe,wi)}}return null}findNextBracket(I){let ne=this.validatePosition(I),_e=this.getLineCount(),Fe=-1,Xe=null;for(let rt=ne.lineNumber;rt<=_e;rt++){let Mt=this._getLineTokens(rt),Dt=Mt.getCount(),Tt=this._buffer.getLineContent(rt),Ht=0,jt=0,Kt=0;if(rt===ne.lineNumber){Ht=Mt.findTokenIndexAtOffset(ne.column-1),jt=ne.column-1,Kt=ne.column-1;let Ti=Mt.getLanguageId(Ht);Fe!==Ti&&(Fe=Ti,Xe=yi.a.getBracketsSupport(Fe))}let wi=!0;for(;Ht<Dt;Ht++){let Ti=Mt.getLanguageId(Ht);if(Fe!==Ti){if(Xe&&wi&&jt!==Kt){let X=Et.a.findNextBracketInRange(Xe.forwardRegex,rt,Tt,jt,Kt);if(X)return this._toFoundBracket(Xe,X);wi=!1}Fe=Ti,Xe=yi.a.getBracketsSupport(Fe)}let ft=!!Xe&&!Object(kt.b)(Mt.getStandardTokenType(Ht));if(ft)wi||(jt=Mt.getStartOffset(Ht)),Kt=Mt.getEndOffset(Ht);else if(Xe&&wi&&jt!==Kt){let X=Et.a.findNextBracketInRange(Xe.forwardRegex,rt,Tt,jt,Kt);if(X)return this._toFoundBracket(Xe,X)}wi=ft}if(Xe&&wi&&jt!==Kt){let Ti=Et.a.findNextBracketInRange(Xe.forwardRegex,rt,Tt,jt,Kt);if(Ti)return this._toFoundBracket(Xe,Ti)}}return null}findEnclosingBrackets(I,ne){let _e;if(ne===void 0)_e=null;else{let wi=Date.now();_e=()=>Date.now()-wi<=ne}let Fe=this.validatePosition(I),Xe=this.getLineCount(),rt=new Map,Mt=[],Dt=(wi,Ti)=>{if(!rt.has(wi)){let ft=[];for(let X=0,ae=Ti?Ti.brackets.length:0;X<ae;X++)ft[X]=0;rt.set(wi,ft)}Mt=rt.get(wi)},Tt=0,Ht=(wi,Ti,ft,X,ae)=>{for(;;){if(_e&&++Tt%100==0&&!_e())return bn.INSTANCE;let Ge=Et.a.findNextBracketInRange(wi.forwardRegex,Ti,ft,X,ae);if(!Ge)break;let lt=ft.substring(Ge.startColumn-1,Ge.endColumn-1).toLowerCase(),Ot=wi.textIsBracket[lt];if(Ot&&(Ot.isOpen(lt)?Mt[Ot.index]++:Ot.isClose(lt)&&Mt[Ot.index]--,Mt[Ot.index]===-1))return this._matchFoundBracket(Ge,Ot,!1,_e);X=Ge.endColumn-1}return null},jt=-1,Kt=null;for(let wi=Fe.lineNumber;wi<=Xe;wi++){let Ti=this._getLineTokens(wi),ft=Ti.getCount(),X=this._buffer.getLineContent(wi),ae=0,Ge=0,lt=0;if(wi===Fe.lineNumber){ae=Ti.findTokenIndexAtOffset(Fe.column-1),Ge=Fe.column-1,lt=Fe.column-1;let Gt=Ti.getLanguageId(ae);jt!==Gt&&(jt=Gt,Kt=yi.a.getBracketsSupport(jt),Dt(jt,Kt))}let Ot=!0;for(;ae<ft;ae++){let Gt=Ti.getLanguageId(ae);if(jt!==Gt){if(Kt&&Ot&&Ge!==lt){let ye=Ht(Kt,wi,X,Ge,lt);if(ye)return Fn(ye);Ot=!1}jt=Gt,Kt=yi.a.getBracketsSupport(jt),Dt(jt,Kt)}let ti=!!Kt&&!Object(kt.b)(Ti.getStandardTokenType(ae));if(ti)Ot||(Ge=Ti.getStartOffset(ae)),lt=Ti.getEndOffset(ae);else if(Kt&&Ot&&Ge!==lt){let ye=Ht(Kt,wi,X,Ge,lt);if(ye)return Fn(ye)}Ot=ti}if(Kt&&Ot&&Ge!==lt){let Gt=Ht(Kt,wi,X,Ge,lt);if(Gt)return Fn(Gt)}}return null}_toFoundBracket(I,ne){if(!ne)return null;let _e=this.getValueInRange(ne);_e=_e.toLowerCase();let Fe=I.textIsBracket[_e];return Fe?{range:ne,open:Fe.open,close:Fe.close,isOpen:I.textIsOpenBracket[_e]}:null}static computeIndentLevel(I,ne){let _e=0,Fe=0,Xe=I.length;for(;Fe<Xe;){let rt=I.charCodeAt(Fe);if(rt===32)_e++;else{if(rt!==9)break;_e=_e-_e%ne+ne}Fe++}return Fe===Xe?-1:_e}_computeIndentLevel(I){return Mn.computeIndentLevel(this._buffer.getLineContent(I+1),this._options.tabSize)}getActiveIndentGuide(I,ne,_e){this._assertNotDisposed();let Fe=this.getLineCount();if(I<1||I>Fe)throw new Error("Illegal value for lineNumber");let Xe=yi.a.getFoldingRules(this._languageIdentifier.id),rt=Boolean(Xe&&Xe.offSide),Mt=-2,Dt=-1,Tt=-2,Ht=-1,jt=ye=>{if(Mt!==-1&&(Mt===-2||Mt>ye-1)){Mt=-1,Dt=-1;for(let le=ye-2;le>=0;le--){let ue=this._computeIndentLevel(le);if(ue>=0){Mt=le,Dt=ue;break}}}if(Tt===-2){Tt=-1,Ht=-1;for(let le=ye;le<Fe;le++){let ue=this._computeIndentLevel(le);if(ue>=0){Tt=le,Ht=ue;break}}}},Kt=-2,wi=-1,Ti=-2,ft=-1,X=ye=>{if(Kt===-2){Kt=-1,wi=-1;for(let le=ye-2;le>=0;le--){let ue=this._computeIndentLevel(le);if(ue>=0){Kt=le,wi=ue;break}}}if(Ti!==-1&&(Ti===-2||Ti<ye-1)){Ti=-1,ft=-1;for(let le=ye;le<Fe;le++){let ue=this._computeIndentLevel(le);if(ue>=0){Ti=le,ft=ue;break}}}},ae=0,Ge=!0,lt=0,Ot=!0,Gt=0,ti=0;for(let ye=0;Ge||Ot;ye++){let le=I-ye,ue=I+ye;ye>1&&(le<1||le<ne)&&(Ge=!1),ye>1&&(ue>Fe||ue>_e)&&(Ot=!1),ye>5e4&&(Ge=!1,Ot=!1);let qe=-1;if(Ge){let tt=this._computeIndentLevel(le-1);tt>=0?(Tt=le-1,Ht=tt,qe=Math.ceil(tt/this._options.indentSize)):(jt(le),qe=this._getIndentLevelForWhitespaceLine(rt,Dt,Ht))}let Ze=-1;if(Ot){let tt=this._computeIndentLevel(ue-1);tt>=0?(Kt=ue-1,wi=tt,Ze=Math.ceil(tt/this._options.indentSize)):(X(ue),Ze=this._getIndentLevelForWhitespaceLine(rt,wi,ft))}if(ye!==0){if(ye===1){if(ue<=Fe&&Ze>=0&&ti+1===Ze){Ge=!1,ae=ue,lt=ue,Gt=Ze;continue}if(le>=1&&qe>=0&&qe-1===ti){Ot=!1,ae=le,lt=le,Gt=qe;continue}if(ae=I,lt=I,Gt=ti,Gt===0)return{startLineNumber:ae,endLineNumber:lt,indent:Gt}}Ge&&(qe>=Gt?ae=le:Ge=!1),Ot&&(Ze>=Gt?lt=ue:Ot=!1)}else ti=qe}return{startLineNumber:ae,endLineNumber:lt,indent:Gt}}getLinesIndentGuides(I,ne){this._assertNotDisposed();let _e=this.getLineCount();if(I<1||I>_e)throw new Error("Illegal value for startLineNumber");if(ne<1||ne>_e)throw new Error("Illegal value for endLineNumber");let Fe=yi.a.getFoldingRules(this._languageIdentifier.id),Xe=Boolean(Fe&&Fe.offSide),rt=new Array(ne-I+1),Mt=-2,Dt=-1,Tt=-2,Ht=-1;for(let jt=I;jt<=ne;jt++){let Kt=jt-I,wi=this._computeIndentLevel(jt-1);if(wi>=0)Mt=jt-1,Dt=wi,rt[Kt]=Math.ceil(wi/this._options.indentSize);else{if(Mt===-2){Mt=-1,Dt=-1;for(let Ti=jt-2;Ti>=0;Ti--){let ft=this._computeIndentLevel(Ti);if(ft>=0){Mt=Ti,Dt=ft;break}}}if(Tt!==-1&&(Tt===-2||Tt<jt-1)){Tt=-1,Ht=-1;for(let Ti=jt;Ti<_e;Ti++){let ft=this._computeIndentLevel(Ti);if(ft>=0){Tt=Ti,Ht=ft;break}}}rt[Kt]=this._getIndentLevelForWhitespaceLine(Xe,Dt,Ht)}}return rt}_getIndentLevelForWhitespaceLine(I,ne,_e){return ne===-1||_e===-1?0:ne<_e?1+Math.floor(ne/this._options.indentSize):ne===_e||I?Math.ceil(_e/this._options.indentSize):1+Math.floor(_e/this._options.indentSize)}}Mn.MODEL_SYNC_LIMIT=52428800,Mn.LARGE_FILE_SIZE_THRESHOLD=20971520,Mn.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Mn.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:ge.d.tabSize,indentSize:ge.d.indentSize,insertSpaces:ge.d.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:ge.d.trimAutoWhitespace,largeFileOptimizations:ge.d.largeFileOptimizations};class Nn{constructor(){this._decorationsTree0=new xe,this._decorationsTree1=new xe}intervalSearch(I,ne,_e,Fe,Xe){let rt=this._decorationsTree0.intervalSearch(I,ne,_e,Fe,Xe),Mt=this._decorationsTree1.intervalSearch(I,ne,_e,Fe,Xe);return rt.concat(Mt)}search(I,ne,_e,Fe){if(_e)return this._decorationsTree1.search(I,ne,Fe);{let Xe=this._decorationsTree0.search(I,ne,Fe),rt=this._decorationsTree1.search(I,ne,Fe);return Xe.concat(rt)}}collectNodesFromOwner(I){let ne=this._decorationsTree0.collectNodesFromOwner(I),_e=this._decorationsTree1.collectNodesFromOwner(I);return ne.concat(_e)}collectNodesPostOrder(){let I=this._decorationsTree0.collectNodesPostOrder(),ne=this._decorationsTree1.collectNodesPostOrder();return I.concat(ne)}insert(I){ie(I)?this._decorationsTree1.insert(I):this._decorationsTree0.insert(I)}delete(I){ie(I)?this._decorationsTree1.delete(I):this._decorationsTree0.delete(I)}resolveNode(I,ne){ie(I)?this._decorationsTree1.resolveNode(I,ne):this._decorationsTree0.resolveNode(I,ne)}acceptReplace(I,ne,_e,Fe){this._decorationsTree0.acceptReplace(I,ne,_e,Fe),this._decorationsTree1.acceptReplace(I,ne,_e,Fe)}}function Hn(qt){return qt.replace(/[^a-z0-9\-_]/gi," ")}class Jn{constructor(I){this.color=I.color||"",this.darkColor=I.darkColor||""}}class br extends Jn{constructor(I){super(I),this._resolvedColor=null,this.position=typeof I.position=="number"?I.position:C.d.Center}getColor(I){return this._resolvedColor||(I.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,I):this._resolvedColor=this._resolveColor(this.color,I)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(I,ne){if(typeof I=="string")return I;let _e=I?ne.getColor(I.id):null;return _e?_e.toString():""}}class pn extends Jn{constructor(I){super(I),this.position=I.position}getColor(I){return this._resolvedColor||(I.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,I):this._resolvedColor=this._resolveColor(this.color,I)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(I,ne){return typeof I=="string"?si.a.fromHex(I):ne.getColor(I.id)}}class Gn{constructor(I){this.stickiness=I.stickiness||0,this.zIndex=I.zIndex||0,this.className=I.className?Hn(I.className):null,this.hoverMessage=I.hoverMessage||null,this.glyphMarginHoverMessage=I.glyphMarginHoverMessage||null,this.isWholeLine=I.isWholeLine||!1,this.showIfCollapsed=I.showIfCollapsed||!1,this.collapseOnReplaceEdit=I.collapseOnReplaceEdit||!1,this.overviewRuler=I.overviewRuler?new br(I.overviewRuler):null,this.minimap=I.minimap?new pn(I.minimap):null,this.glyphMarginClassName=I.glyphMarginClassName?Hn(I.glyphMarginClassName):null,this.linesDecorationsClassName=I.linesDecorationsClassName?Hn(I.linesDecorationsClassName):null,this.firstLineDecorationClassName=I.firstLineDecorationClassName?Hn(I.firstLineDecorationClassName):null,this.marginClassName=I.marginClassName?Hn(I.marginClassName):null,this.inlineClassName=I.inlineClassName?Hn(I.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=I.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=I.beforeContentClassName?Hn(I.beforeContentClassName):null,this.afterContentClassName=I.afterContentClassName?Hn(I.afterContentClassName):null}static register(I){return new Gn(I)}static createDynamic(I){return new Gn(I)}}Gn.EMPTY=Gn.register({});let rn=[Gn.register({stickiness:0}),Gn.register({stickiness:1}),Gn.register({stickiness:2}),Gn.register({stickiness:3})];function dr(qt){return qt instanceof Gn?qt:Gn.createDynamic(qt)}class Dn extends O.a{constructor(){super(),this._actual=this._register(new f.a),this.event=this._actual.event,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){if(this._deferredCnt--,this._deferredCnt===0&&this._shouldFire){let I={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(I)}}checkAffectedAndFire(I){this._affectsMinimap||(this._affectsMinimap=!(!I.minimap||!I.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!I.overviewRuler||!I.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class On extends O.a{constructor(){super(),this._fastEmitter=this._register(new f.a),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new f.a),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(I=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=I;let ne=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(ne),this._slowEmitter.fire(ne)}}fire(I){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(I):this._deferredEvent=I:(this._fastEmitter.fire(I),this._slowEmitter.fire(I))}}},function(Ie,w,r){"use strict";function h(Te,Ee){return Ee.length===0?Te:Te.replace(/\{(\d+)\}/g,function(ve,Re){var We=Re[0];return Ee[We]!==void 0?Ee[We]:ve})}function f(Te,Ee){for(var ve=[],Re=2;Re<arguments.length;Re++)ve[Re-2]=arguments[Re];return h(Ee,ve)}function O(Te){return f}var H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie,U,q,B;r.d(w,"g",function(){return pi}),r.d(w,"d",function(){return S}),r.d(w,"b",function(){return k}),r.d(w,"a",function(){return te}),r.d(w,"e",function(){return he}),r.d(w,"c",function(){return $}),r.d(w,"f",function(){return z}),r.d(w,"h",function(){return ui}),function(Te){Te.create=function(Ee,ve){return{line:Ee,character:ve}},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&wt.number(ve.line)&&wt.number(ve.character)}}(H||(H={})),function(Te){Te.create=function(Ee,ve,Re,We){if(wt.number(Ee)&&wt.number(ve)&&wt.number(Re)&&wt.number(We))return{start:H.create(Ee,ve),end:H.create(Re,We)};if(H.is(Ee)&&H.is(ve))return{start:Ee,end:ve};throw new Error("Range#create called with invalid arguments["+Ee+", "+ve+", "+Re+", "+We+"]")},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&H.is(ve.start)&&H.is(ve.end)}}(E||(E={})),function(Te){Te.create=function(Ee,ve){return{uri:Ee,range:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.string(ve.uri)||wt.undefined(ve.uri))}}(ge||(ge={})),function(Te){Te.create=function(Ee,ve,Re,We){return{targetUri:Ee,targetRange:ve,targetSelectionRange:Re,originSelectionRange:We}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.targetRange)&&wt.string(ve.targetUri)&&(E.is(ve.targetSelectionRange)||wt.undefined(ve.targetSelectionRange))&&(E.is(ve.originSelectionRange)||wt.undefined(ve.originSelectionRange))}}(W||(W={})),function(Te){Te.create=function(Ee,ve,Re,We){return{red:Ee,green:ve,blue:Re,alpha:We}},Te.is=function(Ee){var ve=Ee;return wt.number(ve.red)&&wt.number(ve.green)&&wt.number(ve.blue)&&wt.number(ve.alpha)}}(Q||(Q={})),function(Te){Te.create=function(Ee,ve){return{range:Ee,color:ve}},Te.is=function(Ee){var ve=Ee;return E.is(ve.range)&&Q.is(ve.color)}}(y||(y={})),function(Te){Te.create=function(Ee,ve,Re){return{label:Ee,textEdit:ve,additionalTextEdits:Re}},Te.is=function(Ee){var ve=Ee;return wt.string(ve.label)&&(wt.undefined(ve.textEdit)||g.is(ve))&&(wt.undefined(ve.additionalTextEdits)||wt.typedArray(ve.additionalTextEdits,g.is))}}(C||(C={})),function(Te){Te.Comment="comment",Te.Imports="imports",Te.Region="region"}(S||(S={})),function(Te){Te.create=function(Ee,ve,Re,We,Be){var Le={startLine:Ee,endLine:ve};return wt.defined(Re)&&(Le.startCharacter=Re),wt.defined(We)&&(Le.endCharacter=We),wt.defined(Be)&&(Le.kind=Be),Le},Te.is=function(Ee){var ve=Ee;return wt.number(ve.startLine)&&wt.number(ve.startLine)&&(wt.undefined(ve.startCharacter)||wt.number(ve.startCharacter))&&(wt.undefined(ve.endCharacter)||wt.number(ve.endCharacter))&&(wt.undefined(ve.kind)||wt.string(ve.kind))}}(P||(P={})),function(Te){Te.create=function(Ee,ve){return{location:Ee,message:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&ge.is(ve.location)&&wt.string(ve.message)}}(V||(V={})),function(Te){Te.Error=1,Te.Warning=2,Te.Information=3,Te.Hint=4}(k||(k={})),function(Te){Te.Unnecessary=1,Te.Deprecated=2}(l||(l={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve!=null&&(wt.number(ve.value)||wt.string(ve.value))&&wt.string(ve.target)}}(T||(T={})),function(Te){Te.create=function(Ee,ve,Re,We,Be,Le){var Ke={range:Ee,message:ve};return wt.defined(Re)&&(Ke.severity=Re),wt.defined(We)&&(Ke.code=We),wt.defined(Be)&&(Ke.source=Be),wt.defined(Le)&&(Ke.relatedInformation=Le),Ke},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&wt.string(ve.message)&&(wt.number(ve.severity)||wt.undefined(ve.severity))&&(wt.number(ve.code)||wt.string(ve.code)||wt.undefined(ve.code))&&(wt.string(ve.source)||wt.undefined(ve.source))&&(wt.undefined(ve.relatedInformation)||wt.typedArray(ve.relatedInformation,V.is))}}(N||(N={})),function(Te){Te.create=function(Ee,ve){for(var Re=[],We=2;We<arguments.length;We++)Re[We-2]=arguments[We];var Be={title:Ee,command:ve};return wt.defined(Re)&&Re.length>0&&(Be.arguments=Re),Be},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.title)&&wt.string(ve.command)}}(b||(b={})),function(Te){Te.replace=function(Ee,ve){return{range:Ee,newText:ve}},Te.insert=function(Ee,ve){return{range:{start:Ee,end:Ee},newText:ve}},Te.del=function(Ee){return{range:Ee,newText:""}},Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(ve)&&wt.string(ve.newText)&&E.is(ve.range)}}(g||(g={})),function(Te){Te.create=function(Ee,ve){return{textDocument:Ee,edits:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&ke.is(ve.textDocument)&&Array.isArray(ve.edits)}}(j||(j={})),function(Te){Te.create=function(Ee,ve){var Re={kind:"create",uri:Ee};return ve===void 0||ve.overwrite===void 0&&ve.ignoreIfExists===void 0||(Re.options=ve),Re},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="create"&&wt.string(ve.uri)&&(ve.options===void 0||(ve.options.overwrite===void 0||wt.boolean(ve.options.overwrite))&&(ve.options.ignoreIfExists===void 0||wt.boolean(ve.options.ignoreIfExists)))}}(ie||(ie={})),function(Te){Te.create=function(Ee,ve,Re){var We={kind:"rename",oldUri:Ee,newUri:ve};return Re===void 0||Re.overwrite===void 0&&Re.ignoreIfExists===void 0||(We.options=Re),We},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="rename"&&wt.string(ve.oldUri)&&wt.string(ve.newUri)&&(ve.options===void 0||(ve.options.overwrite===void 0||wt.boolean(ve.options.overwrite))&&(ve.options.ignoreIfExists===void 0||wt.boolean(ve.options.ignoreIfExists)))}}(U||(U={})),function(Te){Te.create=function(Ee,ve){var Re={kind:"delete",uri:Ee};return ve===void 0||ve.recursive===void 0&&ve.ignoreIfNotExists===void 0||(Re.options=ve),Re},Te.is=function(Ee){var ve=Ee;return ve&&ve.kind==="delete"&&wt.string(ve.uri)&&(ve.options===void 0||(ve.options.recursive===void 0||wt.boolean(ve.options.recursive))&&(ve.options.ignoreIfNotExists===void 0||wt.boolean(ve.options.ignoreIfNotExists)))}}(q||(q={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve&&(ve.changes!==void 0||ve.documentChanges!==void 0)&&(ve.documentChanges===void 0||ve.documentChanges.every(function(Re){return wt.string(Re.kind)?ie.is(Re)||U.is(Re)||q.is(Re):j.is(Re)}))}}(B||(B={}));var se,ke,xe,Y,Z,te,he,Ce,Ae,L,nt,ct,Ye,ht,fe,$,G,z,J,Se,A,ee,de,De,$e,pt,it,At,Nt=function(){function Te(Ee){this.edits=Ee}return Te.prototype.insert=function(Ee,ve){this.edits.push(g.insert(Ee,ve))},Te.prototype.replace=function(Ee,ve){this.edits.push(g.replace(Ee,ve))},Te.prototype.delete=function(Ee){this.edits.push(g.del(Ee))},Te.prototype.add=function(Ee){this.edits.push(Ee)},Te.prototype.all=function(){return this.edits},Te.prototype.clear=function(){this.edits.splice(0,this.edits.length)},Te}();(function(){function Te(Ee){var ve=this;this._textEditChanges=Object.create(null),Ee&&(this._workspaceEdit=Ee,Ee.documentChanges?Ee.documentChanges.forEach(function(Re){if(j.is(Re)){var We=new Nt(Re.edits);ve._textEditChanges[Re.textDocument.uri]=We}}):Ee.changes&&Object.keys(Ee.changes).forEach(function(Re){var We=new Nt(Ee.changes[Re]);ve._textEditChanges[Re]=We}))}Object.defineProperty(Te.prototype,"edit",{get:function(){return this._workspaceEdit===void 0?{documentChanges:[]}:this._workspaceEdit},enumerable:!0,configurable:!0}),Te.prototype.getTextEditChange=function(Ee){if(ke.is(Ee)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var ve=Ee;if(!(We=this._textEditChanges[ve.uri])){var Re={textDocument:ve,edits:Be=[]};this._workspaceEdit.documentChanges.push(Re),We=new Nt(Be),this._textEditChanges[ve.uri]=We}return We}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var We;if(!(We=this._textEditChanges[Ee])){var Be=[];this._workspaceEdit.changes[Ee]=Be,We=new Nt(Be),this._textEditChanges[Ee]=We}return We},Te.prototype.createFile=function(Ee,ve){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(ie.create(Ee,ve))},Te.prototype.renameFile=function(Ee,ve,Re){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(U.create(Ee,ve,Re))},Te.prototype.deleteFile=function(Ee,ve){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(q.create(Ee,ve))},Te.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(Te){Te.create=function(Ee){return{uri:Ee}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)}}(se||(se={})),function(Te){Te.create=function(Ee,ve){return{uri:Ee,version:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)&&(ve.version===null||wt.number(ve.version))}}(ke||(ke={})),function(Te){Te.create=function(Ee,ve,Re,We){return{uri:Ee,languageId:ve,version:Re,text:We}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.string(ve.uri)&&wt.string(ve.languageId)&&wt.number(ve.version)&&wt.string(ve.text)}}(xe||(xe={})),function(Te){Te.PlainText="plaintext",Te.Markdown="markdown"}(Y||(Y={})),function(Te){Te.is=function(Ee){var ve=Ee;return ve===Te.PlainText||ve===Te.Markdown}}(Y||(Y={})),function(Te){Te.is=function(Ee){var ve=Ee;return wt.objectLiteral(Ee)&&Y.is(ve.kind)&&wt.string(ve.value)}}(Z||(Z={})),function(Te){Te.Text=1,Te.Method=2,Te.Function=3,Te.Constructor=4,Te.Field=5,Te.Variable=6,Te.Class=7,Te.Interface=8,Te.Module=9,Te.Property=10,Te.Unit=11,Te.Value=12,Te.Enum=13,Te.Keyword=14,Te.Snippet=15,Te.Color=16,Te.File=17,Te.Reference=18,Te.Folder=19,Te.EnumMember=20,Te.Constant=21,Te.Struct=22,Te.Event=23,Te.Operator=24,Te.TypeParameter=25}(te||(te={})),function(Te){Te.PlainText=1,Te.Snippet=2}(he||(he={})),function(Te){Te.Deprecated=1}(Ce||(Ce={})),function(Te){Te.create=function(Ee,ve,Re){return{newText:Ee,insert:ve,replace:Re}},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.newText)&&E.is(ve.insert)&&E.is(ve.replace)}}(Ae||(Ae={})),function(Te){Te.create=function(Ee){return{label:Ee}}}(L||(L={})),function(Te){Te.create=function(Ee,ve){return{items:Ee||[],isIncomplete:!!ve}}}(nt||(nt={})),function(Te){Te.fromPlainText=function(Ee){return Ee.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Te.is=function(Ee){var ve=Ee;return wt.string(ve)||wt.objectLiteral(ve)&&wt.string(ve.language)&&wt.string(ve.value)}}(ct||(ct={})),function(Te){Te.is=function(Ee){var ve=Ee;return!!ve&&wt.objectLiteral(ve)&&(Z.is(ve.contents)||ct.is(ve.contents)||wt.typedArray(ve.contents,ct.is))&&(Ee.range===void 0||E.is(Ee.range))}}(Ye||(Ye={})),function(Te){Te.create=function(Ee,ve){return ve?{label:Ee,documentation:ve}:{label:Ee}}}(ht||(ht={})),function(Te){Te.create=function(Ee,ve){for(var Re=[],We=2;We<arguments.length;We++)Re[We-2]=arguments[We];var Be={label:Ee};return wt.defined(ve)&&(Be.documentation=ve),wt.defined(Re)?Be.parameters=Re:Be.parameters=[],Be}}(fe||(fe={})),function(Te){Te.Text=1,Te.Read=2,Te.Write=3}($||($={})),function(Te){Te.create=function(Ee,ve){var Re={range:Ee};return wt.number(ve)&&(Re.kind=ve),Re}}(G||(G={})),function(Te){Te.File=1,Te.Module=2,Te.Namespace=3,Te.Package=4,Te.Class=5,Te.Method=6,Te.Property=7,Te.Field=8,Te.Constructor=9,Te.Enum=10,Te.Interface=11,Te.Function=12,Te.Variable=13,Te.Constant=14,Te.String=15,Te.Number=16,Te.Boolean=17,Te.Array=18,Te.Object=19,Te.Key=20,Te.Null=21,Te.EnumMember=22,Te.Struct=23,Te.Event=24,Te.Operator=25,Te.TypeParameter=26}(z||(z={})),function(Te){Te.Deprecated=1}(J||(J={})),function(Te){Te.create=function(Ee,ve,Re,We,Be){var Le={name:Ee,kind:ve,location:{uri:We,range:Re}};return Be&&(Le.containerName=Be),Le}}(Se||(Se={})),function(Te){Te.create=function(Ee,ve,Re,We,Be,Le){var Ke={name:Ee,detail:ve,kind:Re,range:We,selectionRange:Be};return Le!==void 0&&(Ke.children=Le),Ke},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.name)&&wt.number(ve.kind)&&E.is(ve.range)&&E.is(ve.selectionRange)&&(ve.detail===void 0||wt.string(ve.detail))&&(ve.deprecated===void 0||wt.boolean(ve.deprecated))&&(ve.children===void 0||Array.isArray(ve.children))&&(ve.tags===void 0||Array.isArray(ve.tags))}}(A||(A={})),function(Te){Te.Empty="",Te.QuickFix="quickfix",Te.Refactor="refactor",Te.RefactorExtract="refactor.extract",Te.RefactorInline="refactor.inline",Te.RefactorRewrite="refactor.rewrite",Te.Source="source",Te.SourceOrganizeImports="source.organizeImports",Te.SourceFixAll="source.fixAll"}(ee||(ee={})),function(Te){Te.create=function(Ee,ve){var Re={diagnostics:Ee};return ve!=null&&(Re.only=ve),Re},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.typedArray(ve.diagnostics,N.is)&&(ve.only===void 0||wt.typedArray(ve.only,wt.string))}}(de||(de={})),function(Te){Te.create=function(Ee,ve,Re){var We={title:Ee};return b.is(ve)?We.command=ve:We.edit=ve,Re!==void 0&&(We.kind=Re),We},Te.is=function(Ee){var ve=Ee;return ve&&wt.string(ve.title)&&(ve.diagnostics===void 0||wt.typedArray(ve.diagnostics,N.is))&&(ve.kind===void 0||wt.string(ve.kind))&&(ve.edit!==void 0||ve.command!==void 0)&&(ve.command===void 0||b.is(ve.command))&&(ve.isPreferred===void 0||wt.boolean(ve.isPreferred))&&(ve.edit===void 0||B.is(ve.edit))}}(De||(De={})),function(Te){Te.create=function(Ee,ve){var Re={range:Ee};return wt.defined(ve)&&(Re.data=ve),Re},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.undefined(ve.command)||b.is(ve.command))}}($e||($e={})),function(Te){Te.create=function(Ee,ve){return{tabSize:Ee,insertSpaces:ve}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&wt.number(ve.tabSize)&&wt.boolean(ve.insertSpaces)}}(pt||(pt={})),function(Te){Te.create=function(Ee,ve,Re){return{range:Ee,target:ve,data:Re}},Te.is=function(Ee){var ve=Ee;return wt.defined(ve)&&E.is(ve.range)&&(wt.undefined(ve.target)||wt.string(ve.target))}}(it||(it={})),function(Te){Te.create=function(Ee,ve){return{range:Ee,parent:ve}},Te.is=function(Ee){var ve=Ee;return ve!==void 0&&E.is(ve.range)&&(ve.parent===void 0||Te.is(ve.parent))}}(At||(At={}));var _i;(function(Te){Te.create=function(Ee,ve,Re,We){return new Ni(Ee,ve,Re,We)},Te.is=function(Ee){var ve=Ee;return!!(wt.defined(ve)&&wt.string(ve.uri)&&(wt.undefined(ve.languageId)||wt.string(ve.languageId))&&wt.number(ve.lineCount)&&wt.func(ve.getText)&&wt.func(ve.positionAt)&&wt.func(ve.offsetAt))},Te.applyEdits=function(Ee,ve){for(var Re=Ee.getText(),We=function xt(Xt,mi){if(Xt.length<=1)return Xt;var Yt=Xt.length/2|0,oi=Xt.slice(0,Yt),qi=Xt.slice(Yt);xt(oi,mi),xt(qi,mi);for(var an=0,_n=0,ei=0;an<oi.length&&_n<qi.length;){var ii=mi(oi[an],qi[_n]);Xt[ei++]=ii<=0?oi[an++]:qi[_n++]}for(;an<oi.length;)Xt[ei++]=oi[an++];for(;_n<qi.length;)Xt[ei++]=qi[_n++];return Xt}(ve,function(xt,Xt){var mi=xt.range.start.line-Xt.range.start.line;return mi===0?xt.range.start.character-Xt.range.start.character:mi}),Be=Re.length,Le=We.length-1;Le>=0;Le--){var Ke=We[Le],dt=Ee.offsetAt(Ke.range.start),yt=Ee.offsetAt(Ke.range.end);if(!(yt<=Be))throw new Error("Overlapping edit");Re=Re.substring(0,dt)+Ke.newText+Re.substring(yt,Re.length),Be=dt}return Re}})(_i||(_i={}));var wt,Ni=function(){function Te(Ee,ve,Re,We){this._uri=Ee,this._languageId=ve,this._version=Re,this._content=We,this._lineOffsets=void 0}return Object.defineProperty(Te.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),Te.prototype.getText=function(Ee){if(Ee){var ve=this.offsetAt(Ee.start),Re=this.offsetAt(Ee.end);return this._content.substring(ve,Re)}return this._content},Te.prototype.update=function(Ee,ve){this._content=Ee.text,this._version=ve,this._lineOffsets=void 0},Te.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var Ee=[],ve=this._content,Re=!0,We=0;We<ve.length;We++){Re&&(Ee.push(We),Re=!1);var Be=ve.charAt(We);Re=Be==="\r"||Be===` `,Be==="\r"&&We+1<ve.length&&ve.charAt(We+1)===` -`&&We++}Re&&ve.length>0&&Ee.push(ve.length),this._lineOffsets=Ee}return this._lineOffsets},Te.prototype.positionAt=function(Ee){Ee=Math.max(Math.min(Ee,this._content.length),0);var ve=this.getLineOffsets(),Re=0,We=ve.length;if(We===0)return H.create(0,Ee);for(;Re<We;){var Be=Math.floor((Re+We)/2);ve[Be]>Ee?We=Be:Re=Be+1}var Le=Re-1;return H.create(Le,Ee-ve[Le])},Te.prototype.offsetAt=function(Ee){var ve=this.getLineOffsets();if(Ee.line>=ve.length)return this._content.length;if(Ee.line<0)return 0;var Re=ve[Ee.line],We=Ee.line+1<ve.length?ve[Ee.line+1]:this._content.length;return Math.max(Math.min(Re+Ee.character,We),Re)},Object.defineProperty(Te.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),Te}();(function(Te){var Ee=Object.prototype.toString;Te.defined=function(ve){return ve!==void 0},Te.undefined=function(ve){return ve===void 0},Te.boolean=function(ve){return ve===!0||ve===!1},Te.string=function(ve){return Ee.call(ve)==="[object String]"},Te.number=function(ve){return Ee.call(ve)==="[object Number]"},Te.func=function(ve){return Ee.call(ve)==="[object Function]"},Te.objectLiteral=function(ve){return ve!==null&&typeof ve=="object"},Te.typedArray=function(ve,Re){return Array.isArray(ve)&&ve.every(Re)}})(wt||(wt={}));var pi,et,Wt,Li,Ii,Ai=function(){function Te(Ee,ve,Re,We){this._uri=Ee,this._languageId=ve,this._version=Re,this._content=We,this._lineOffsets=void 0}return Object.defineProperty(Te.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),Te.prototype.getText=function(Ee){if(Ee){var ve=this.offsetAt(Ee.start),Re=this.offsetAt(Ee.end);return this._content.substring(ve,Re)}return this._content},Te.prototype.update=function(Ee,ve){for(var Re=0,We=Ee;Re<We.length;Re++){var Be=We[Re];if(Te.isIncremental(Be)){var Le=Bi(Be.range),Ke=this.offsetAt(Le.start),dt=this.offsetAt(Le.end);this._content=this._content.substring(0,Ke)+Be.text+this._content.substring(dt,this._content.length);var yt=Math.max(Le.start.line,0),xt=Math.max(Le.end.line,0),Xt=this._lineOffsets,mi=Zi(Be.text,!1,Ke);if(xt-yt===mi.length)for(var Yt=0,ri=mi.length;Yt<ri;Yt++)Xt[Yt+yt+1]=mi[Yt];else mi.length<1e4?Xt.splice.apply(Xt,[yt+1,xt-yt].concat(mi)):this._lineOffsets=Xt=Xt.slice(0,yt+1).concat(mi,Xt.slice(xt+1));var qi=Be.text.length-(dt-Ke);if(qi!==0)for(Yt=yt+1+mi.length,ri=Xt.length;Yt<ri;Yt++)Xt[Yt]=Xt[Yt]+qi}else{if(!Te.isFull(Be))throw new Error("Unknown change event received");this._content=Be.text,this._lineOffsets=void 0}}this._version=ve},Te.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Zi(this._content,!0)),this._lineOffsets},Te.prototype.positionAt=function(Ee){Ee=Math.max(Math.min(Ee,this._content.length),0);var ve=this.getLineOffsets(),Re=0,We=ve.length;if(We===0)return{line:0,character:Ee};for(;Re<We;){var Be=Math.floor((Re+We)/2);ve[Be]>Ee?We=Be:Re=Be+1}var Le=Re-1;return{line:Le,character:Ee-ve[Le]}},Te.prototype.offsetAt=function(Ee){var ve=this.getLineOffsets();if(Ee.line>=ve.length)return this._content.length;if(Ee.line<0)return 0;var Re=ve[Ee.line],We=Ee.line+1<ve.length?ve[Ee.line+1]:this._content.length;return Math.max(Math.min(Re+Ee.character,We),Re)},Object.defineProperty(Te.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),Te.isIncremental=function(Ee){var ve=Ee;return ve!=null&&typeof ve.text=="string"&&ve.range!==void 0&&(ve.rangeLength===void 0||typeof ve.rangeLength=="number")},Te.isFull=function(Ee){var ve=Ee;return ve!=null&&typeof ve.text=="string"&&ve.range===void 0&&ve.rangeLength===void 0},Te}();function Zi(Te,Ee,ve){ve===void 0&&(ve=0);for(var Re=Ee?[ve]:[],We=0;We<Te.length;We++){var Be=Te.charCodeAt(We);Be!==13&&Be!==10||(Be===13&&We+1<Te.length&&Te.charCodeAt(We+1)===10&&We++,Re.push(ve+We+1))}return Re}function Bi(Te){var Ee=Te.start,ve=Te.end;return Ee.line>ve.line||Ee.line===ve.line&&Ee.character>ve.character?{start:ve,end:Ee}:Te}function Lt(Te){var Ee=Bi(Te.range);return Ee!==Te.range?{newText:Te.newText,range:Ee}:Te}(function(Te){Te.create=function(Ee,ve,Re,We){return new Ai(Ee,ve,Re,We)},Te.update=function(Ee,ve,Re){if(Ee instanceof Ai)return Ee.update(ve,Re),Ee;throw new Error("TextDocument.update: document must be created by TextDocument.create")},Te.applyEdits=function(Ee,ve){for(var Re=Ee.getText(),We=0,Be=[],Le=0,Ke=function xt(Xt,mi){if(Xt.length<=1)return Xt;var Yt=Xt.length/2|0,ri=Xt.slice(0,Yt),qi=Xt.slice(Yt);xt(ri,mi),xt(qi,mi);for(var an=0,_n=0,ei=0;an<ri.length&&_n<qi.length;){var ii=mi(ri[an],qi[_n]);Xt[ei++]=ii<=0?ri[an++]:qi[_n++]}for(;an<ri.length;)Xt[ei++]=ri[an++];for(;_n<qi.length;)Xt[ei++]=qi[_n++];return Xt}(ve.map(Lt),function(xt,Xt){var mi=xt.range.start.line-Xt.range.start.line;return mi===0?xt.range.start.character-Xt.range.start.character:mi});Le<Ke.length;Le++){var dt=Ke[Le],yt=Ee.offsetAt(dt.range.start);if(yt<We)throw new Error("Overlapping edit");yt>We&&Be.push(Re.substring(We,yt)),dt.newText.length&&Be.push(dt.newText),We=Ee.offsetAt(dt.range.end)}return Be.push(Re.substr(We)),Be.join("")}})(pi||(pi={})),function(Te){Te[Te.StartCommentTag=0]="StartCommentTag",Te[Te.Comment=1]="Comment",Te[Te.EndCommentTag=2]="EndCommentTag",Te[Te.StartTagOpen=3]="StartTagOpen",Te[Te.StartTagClose=4]="StartTagClose",Te[Te.StartTagSelfClose=5]="StartTagSelfClose",Te[Te.StartTag=6]="StartTag",Te[Te.EndTagOpen=7]="EndTagOpen",Te[Te.EndTagClose=8]="EndTagClose",Te[Te.EndTag=9]="EndTag",Te[Te.DelimiterAssign=10]="DelimiterAssign",Te[Te.AttributeName=11]="AttributeName",Te[Te.AttributeValue=12]="AttributeValue",Te[Te.StartDoctypeTag=13]="StartDoctypeTag",Te[Te.Doctype=14]="Doctype",Te[Te.EndDoctypeTag=15]="EndDoctypeTag",Te[Te.Content=16]="Content",Te[Te.Whitespace=17]="Whitespace",Te[Te.Unknown=18]="Unknown",Te[Te.Script=19]="Script",Te[Te.Styles=20]="Styles",Te[Te.EOS=21]="EOS"}(et||(et={})),function(Te){Te[Te.WithinContent=0]="WithinContent",Te[Te.AfterOpeningStartTag=1]="AfterOpeningStartTag",Te[Te.AfterOpeningEndTag=2]="AfterOpeningEndTag",Te[Te.WithinDoctype=3]="WithinDoctype",Te[Te.WithinTag=4]="WithinTag",Te[Te.WithinEndTag=5]="WithinEndTag",Te[Te.WithinComment=6]="WithinComment",Te[Te.WithinScriptContent=7]="WithinScriptContent",Te[Te.WithinStyleContent=8]="WithinStyleContent",Te[Te.AfterAttributeName=9]="AfterAttributeName",Te[Te.BeforeAttributeValue=10]="BeforeAttributeValue"}(Wt||(Wt={})),(Li||(Li={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Y.Markdown,Y.PlainText]}},hover:{contentFormat:[Y.Markdown,Y.PlainText]}}},function(Te){Te[Te.Unknown=0]="Unknown",Te[Te.File=1]="File",Te[Te.Directory=2]="Directory",Te[Te.SymbolicLink=64]="SymbolicLink"}(Ii||(Ii={}));var Di=D(),gt=function(){function Te(Ee,ve){this.source=Ee,this.len=Ee.length,this.position=ve}return Te.prototype.eos=function(){return this.len<=this.position},Te.prototype.getSource=function(){return this.source},Te.prototype.pos=function(){return this.position},Te.prototype.goBackTo=function(Ee){this.position=Ee},Te.prototype.goBack=function(Ee){this.position-=Ee},Te.prototype.advance=function(Ee){this.position+=Ee},Te.prototype.goToEnd=function(){this.position=this.source.length},Te.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},Te.prototype.peekChar=function(Ee){return Ee===void 0&&(Ee=0),this.source.charCodeAt(this.position+Ee)||0},Te.prototype.advanceIfChar=function(Ee){return Ee===this.source.charCodeAt(this.position)&&(this.position++,!0)},Te.prototype.advanceIfChars=function(Ee){var ve;if(this.position+Ee.length>this.source.length)return!1;for(ve=0;ve<Ee.length;ve++)if(this.source.charCodeAt(this.position+ve)!==Ee[ve])return!1;return this.advance(ve),!0},Te.prototype.advanceIfRegExp=function(Ee){var ve=this.source.substr(this.position).match(Ee);return ve?(this.position=this.position+ve.index+ve[0].length,ve[0]):""},Te.prototype.advanceUntilRegExp=function(Ee){var ve=this.source.substr(this.position).match(Ee);return ve?(this.position=this.position+ve.index,ve[0]):(this.goToEnd(),"")},Te.prototype.advanceUntilChar=function(Ee){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===Ee)return!0;this.advance(1)}return!1},Te.prototype.advanceUntilChars=function(Ee){for(;this.position+Ee.length<=this.source.length;){for(var ve=0;ve<Ee.length&&this.source.charCodeAt(this.position+ve)===Ee[ve];ve++);if(ve===Ee.length)return!0;this.advance(1)}return this.goToEnd(),!1},Te.prototype.skipWhitespace=function(){return this.advanceWhileChar(function(Ee){return Ee===ki||Ee===Ri||Ee===oi||Ee===gi||Ee===li})>0},Te.prototype.advanceWhileChar=function(Ee){for(var ve=this.position;this.position<this.len&&Ee(this.source.charCodeAt(this.position));)this.position++;return this.position-ve},Te}(),vi="!".charCodeAt(0),Rt="-".charCodeAt(0),vt="<".charCodeAt(0),Ue=">".charCodeAt(0),ut="/".charCodeAt(0),ze="=".charCodeAt(0),st='"'.charCodeAt(0),_t="'".charCodeAt(0),oi=` -`.charCodeAt(0),li="\r".charCodeAt(0),gi="\f".charCodeAt(0),ki=" ".charCodeAt(0),Ri=" ".charCodeAt(0),$i={"text/x-handlebars-template":!0};function Hi(Te,Ee,ve,Re){Ee===void 0&&(Ee=0),ve===void 0&&(ve=Wt.WithinContent),Re===void 0&&(Re=!1);var We,Be,Le,Ke,dt,yt=new gt(Te,Ee),xt=ve,Xt=0,mi=et.Unknown;function Yt(){return yt.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function ri(qi,an,_n){return mi=an,Xt=qi,We=_n,an}return{scan:function(){var qi=yt.pos(),an=xt,_n=function ei(){var ii,bi=yt.pos();if(yt.eos())return ri(bi,et.EOS);switch(xt){case Wt.WithinComment:return yt.advanceIfChars([Rt,Rt,Ue])?(xt=Wt.WithinContent,ri(bi,et.EndCommentTag)):(yt.advanceUntilChars([Rt,Rt,Ue]),ri(bi,et.Comment));case Wt.WithinDoctype:return yt.advanceIfChar(Ue)?(xt=Wt.WithinContent,ri(bi,et.EndDoctypeTag)):(yt.advanceUntilChar(Ue),ri(bi,et.Doctype));case Wt.WithinContent:if(yt.advanceIfChar(vt)){if(!yt.eos()&&yt.peekChar()===vi){if(yt.advanceIfChars([vi,Rt,Rt]))return xt=Wt.WithinComment,ri(bi,et.StartCommentTag);if(yt.advanceIfRegExp(/^!doctype/i))return xt=Wt.WithinDoctype,ri(bi,et.StartDoctypeTag)}return yt.advanceIfChar(ut)?(xt=Wt.AfterOpeningEndTag,ri(bi,et.EndTagOpen)):(xt=Wt.AfterOpeningStartTag,ri(bi,et.StartTagOpen))}return yt.advanceUntilChar(vt),ri(bi,et.Content);case Wt.AfterOpeningEndTag:return Yt().length>0?(xt=Wt.WithinEndTag,ri(bi,et.EndTag)):yt.skipWhitespace()?ri(bi,et.Whitespace,Di("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(xt=Wt.WithinEndTag,yt.advanceUntilChar(Ue),bi<yt.pos()?ri(bi,et.Unknown,Di("error.endTagNameExpected","End tag name expected.")):ei());case Wt.WithinEndTag:if(yt.skipWhitespace())return ri(bi,et.Whitespace);if(yt.advanceIfChar(Ue))return xt=Wt.WithinContent,ri(bi,et.EndTagClose);if(Re&&yt.peekChar()===vt)return xt=Wt.WithinContent,ri(bi,et.EndTagClose,Di("error.closingBracketMissing","Closing bracket missing."));ii=Di("error.closingBracketExpected","Closing bracket expected.");break;case Wt.AfterOpeningStartTag:return Le=Yt(),dt=void 0,Ke=void 0,Le.length>0?(Be=!1,xt=Wt.WithinTag,ri(bi,et.StartTag)):yt.skipWhitespace()?ri(bi,et.Whitespace,Di("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(xt=Wt.WithinTag,yt.advanceUntilChar(Ue),bi<yt.pos()?ri(bi,et.Unknown,Di("error.startTagNameExpected","Start tag name expected.")):ei());case Wt.WithinTag:return yt.skipWhitespace()?(Be=!0,ri(bi,et.Whitespace)):Be&&(Ke=yt.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()).length>0?(xt=Wt.AfterAttributeName,Be=!1,ri(bi,et.AttributeName)):yt.advanceIfChars([ut,Ue])?(xt=Wt.WithinContent,ri(bi,et.StartTagSelfClose)):yt.advanceIfChar(Ue)?(xt=Le==="script"?dt&&$i[dt]?Wt.WithinContent:Wt.WithinScriptContent:Le==="style"?Wt.WithinStyleContent:Wt.WithinContent,ri(bi,et.StartTagClose)):Re&&yt.peekChar()===vt?(xt=Wt.WithinContent,ri(bi,et.StartTagClose,Di("error.closingBracketMissing","Closing bracket missing."))):(yt.advance(1),ri(bi,et.Unknown,Di("error.unexpectedCharacterInTag","Unexpected character in tag.")));case Wt.AfterAttributeName:return yt.skipWhitespace()?(Be=!0,ri(bi,et.Whitespace)):yt.advanceIfChar(ze)?(xt=Wt.BeforeAttributeValue,ri(bi,et.DelimiterAssign)):(xt=Wt.WithinTag,ei());case Wt.BeforeAttributeValue:if(yt.skipWhitespace())return ri(bi,et.Whitespace);var ln=yt.advanceIfRegExp(/^[^\s"'`=<>]+/);if(ln.length>0)return yt.peekChar()===Ue&&yt.peekChar(-1)===ut&&(yt.goBack(1),ln=ln.substr(0,ln.length-1)),Ke==="type"&&(dt=ln),xt=Wt.WithinTag,Be=!1,ri(bi,et.AttributeValue);var mn=yt.peekChar();return mn===_t||mn===st?(yt.advance(1),yt.advanceUntilChar(mn)&&yt.advance(1),Ke==="type"&&(dt=yt.getSource().substring(bi+1,yt.pos()-1)),xt=Wt.WithinTag,Be=!1,ri(bi,et.AttributeValue)):(xt=Wt.WithinTag,Be=!1,ei());case Wt.WithinScriptContent:for(var sn=1;!yt.eos();){var gn=yt.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(gn.length===0)return yt.goToEnd(),ri(bi,et.Script);if(gn==="<!--")sn===1&&(sn=2);else if(gn==="-->")sn=1;else if(gn[1]!=="/")sn===2&&(sn=3);else{if(sn!==3){yt.goBack(gn.length);break}sn=2}}return xt=Wt.WithinContent,bi<yt.pos()?ri(bi,et.Script):ei();case Wt.WithinStyleContent:return yt.advanceUntilRegExp(/<\/style/i),xt=Wt.WithinContent,bi<yt.pos()?ri(bi,et.Styles):ei()}return yt.advance(1),xt=Wt.WithinContent,ri(bi,et.Unknown,ii)}();return _n===et.EOS||qi!==yt.pos()||Re&&(_n===et.StartTagClose||_n===et.EndTagClose)?_n:(console.log("Scanner.scan has not advanced at offset "+qi+", state before: "+an+" after: "+xt),yt.advance(1),ri(qi,et.Unknown))},getTokenType:function(){return mi},getTokenOffset:function(){return Xt},getTokenLength:function(){return yt.pos()-Xt},getTokenEnd:function(){return yt.pos()},getTokenText:function(){return yt.getSource().substring(Xt,yt.pos())},getScannerState:function(){return xt},getTokenError:function(){return We}}}function yi(Te,Ee){var ve=0,Re=Te.length;if(Re===0)return 0;for(;ve<Re;){var We=Math.floor((ve+Re)/2);Ee(Te[We])?Re=We:ve=We+1}return ve}var kt=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Et(Te){return!!Te&&function(Ee,ve,Re){for(var We=0,Be=Ee.length-1;We<=Be;){var Le=(We+Be)/2|0,Ke=Re(Ee[Le],ve);if(Ke<0)We=Le+1;else{if(!(Ke>0))return Le;Be=Le-1}}return-(We+1)}(kt,Te.toLowerCase(),function(Ee,ve){return Ee.localeCompare(ve)})>=0}var si=function(){function Te(Ee,ve,Re,We){this.start=Ee,this.end=ve,this.children=Re,this.parent=We,this.closed=!1}return Object.defineProperty(Te.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),Te.prototype.isSameTag=function(Ee){return this.tag===void 0?Ee===void 0:Ee!==void 0&&this.tag.length===Ee.length&&this.tag.toLowerCase()===Ee},Object.defineProperty(Te.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),Te.prototype.findNodeBefore=function(Ee){var ve=yi(this.children,function(Be){return Ee<=Be.start})-1;if(ve>=0){var Re=this.children[ve];if(Ee>Re.start){if(Ee<Re.end)return Re.findNodeBefore(Ee);var We=Re.lastChild;return We&&We.end===Re.end?Re.findNodeBefore(Ee):Re}}return this},Te.prototype.findNodeAt=function(Ee){var ve=yi(this.children,function(We){return Ee<=We.start})-1;if(ve>=0){var Re=this.children[ve];if(Ee>Re.start&&Ee<=Re.end)return Re.findNodeAt(Ee)}return this},Te}();function Si(Te){for(var Ee=Hi(Te,void 0,void 0,!0),ve=new si(0,Te.length,[],void 0),Re=ve,We=-1,Be=void 0,Le=null,Ke=Ee.scan();Ke!==et.EOS;){switch(Ke){case et.StartTagOpen:var dt=new si(Ee.getTokenOffset(),Te.length,[],Re);Re.children.push(dt),Re=dt;break;case et.StartTag:Re.tag=Ee.getTokenText();break;case et.StartTagClose:Re.parent&&(Re.end=Ee.getTokenEnd(),Ee.getTokenLength()?(Re.startTagEnd=Ee.getTokenEnd(),Re.tag&&Et(Re.tag)&&(Re.closed=!0,Re=Re.parent)):Re=Re.parent);break;case et.StartTagSelfClose:Re.parent&&(Re.closed=!0,Re.end=Ee.getTokenEnd(),Re.startTagEnd=Ee.getTokenEnd(),Re=Re.parent);break;case et.EndTagOpen:We=Ee.getTokenOffset(),Be=void 0;break;case et.EndTag:Be=Ee.getTokenText().toLowerCase();break;case et.EndTagClose:for(var yt=Re;!yt.isSameTag(Be)&&yt.parent;)yt=yt.parent;if(yt.parent){for(;Re!==yt;)Re.end=We,Re.closed=!1,Re=Re.parent;Re.closed=!0,Re.endTagStart=We,Re.end=Ee.getTokenEnd(),Re=Re.parent}break;case et.AttributeName:Le=Ee.getTokenText(),(xt=Re.attributes)||(Re.attributes=xt={}),xt[Le]=null;break;case et.AttributeValue:var xt,Xt=Ee.getTokenText();(xt=Re.attributes)&&Le&&(xt[Le]=Xt,Le=null)}Ke=Ee.scan()}for(;Re.parent;)Re.end=Te.length,Re.closed=!1,Re=Re.parent;return{roots:ve.children,findNodeBefore:ve.findNodeBefore.bind(ve),findNodeAt:ve.findNodeAt.bind(ve)}}var Pi={"Aacute;":"\xC1",Aacute:"\xC1","aacute;":"\xE1",aacute:"\xE1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223E","acd;":"\u223F","acE;":"\u223E\u0333","Acirc;":"\xC2",Acirc:"\xC2","acirc;":"\xE2",acirc:"\xE2","acute;":"\xB4",acute:"\xB4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xC6",AElig:"\xC6","aelig;":"\xE6",aelig:"\xE6","af;":"\u2061","Afr;":"\u{1D504}","afr;":"\u{1D51E}","Agrave;":"\xC0",Agrave:"\xC0","agrave;":"\xE0",agrave:"\xE0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2A53","and;":"\u2227","andand;":"\u2A55","andd;":"\u2A5C","andslope;":"\u2A58","andv;":"\u2A5A","ang;":"\u2220","ange;":"\u29A4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angrt;":"\u221F","angrtvb;":"\u22BE","angrtvbd;":"\u299D","angsph;":"\u2222","angst;":"\xC5","angzarr;":"\u237C","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\u{1D538}","aopf;":"\u{1D552}","ap;":"\u2248","apacir;":"\u2A6F","apE;":"\u2A70","ape;":"\u224A","apid;":"\u224B","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224A","Aring;":"\xC5",Aring:"\xC5","aring;":"\xE5",aring:"\xE5","Ascr;":"\u{1D49C}","ascr;":"\u{1D4B6}","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224D","Atilde;":"\xC3",Atilde:"\xC3","atilde;":"\xE3",atilde:"\xE3","Auml;":"\xC4",Auml:"\xC4","auml;":"\xE4",auml:"\xE4","awconint;":"\u2233","awint;":"\u2A11","backcong;":"\u224C","backepsilon;":"\u03F6","backprime;":"\u2035","backsim;":"\u223D","backsimeq;":"\u22CD","Backslash;":"\u2216","Barv;":"\u2AE7","barvee;":"\u22BD","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23B5","bbrktbrk;":"\u23B6","bcong;":"\u224C","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201E","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29B0","bepsi;":"\u03F6","bernou;":"\u212C","Bernoullis;":"\u212C","Beta;":"\u0392","beta;":"\u03B2","beth;":"\u2136","between;":"\u226C","Bfr;":"\u{1D505}","bfr;":"\u{1D51F}","bigcap;":"\u22C2","bigcirc;":"\u25EF","bigcup;":"\u22C3","bigodot;":"\u2A00","bigoplus;":"\u2A01","bigotimes;":"\u2A02","bigsqcup;":"\u2A06","bigstar;":"\u2605","bigtriangledown;":"\u25BD","bigtriangleup;":"\u25B3","biguplus;":"\u2A04","bigvee;":"\u22C1","bigwedge;":"\u22C0","bkarow;":"\u290D","blacklozenge;":"\u29EB","blacksquare;":"\u25AA","blacktriangle;":"\u25B4","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","blacktriangleright;":"\u25B8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20E5","bnequiv;":"\u2261\u20E5","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\u{1D539}","bopf;":"\u{1D553}","bot;":"\u22A5","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250C","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252C","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229F","boxplus;":"\u229E","boxtimes;":"\u22A0","boxUL;":"\u255D","boxUl;":"\u255C","boxuL;":"\u255B","boxul;":"\u2518","boxUR;":"\u255A","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256C","boxVh;":"\u256B","boxvH;":"\u256A","boxvh;":"\u253C","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255F","boxvR;":"\u255E","boxvr;":"\u251C","bprime;":"\u2035","Breve;":"\u02D8","breve;":"\u02D8","brvbar;":"\xA6",brvbar:"\xA6","Bscr;":"\u212C","bscr;":"\u{1D4B7}","bsemi;":"\u204F","bsim;":"\u223D","bsime;":"\u22CD","bsol;":"\\","bsolb;":"\u29C5","bsolhsub;":"\u27C8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224E","bumpE;":"\u2AAE","bumpe;":"\u224F","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22D2","cap;":"\u2229","capand;":"\u2A44","capbrcup;":"\u2A49","capcap;":"\u2A4B","capcup;":"\u2A47","capdot;":"\u2A40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\uFE00","caret;":"\u2041","caron;":"\u02C7","Cayleys;":"\u212D","ccaps;":"\u2A4D","Ccaron;":"\u010C","ccaron;":"\u010D","Ccedil;":"\xC7",Ccedil:"\xC7","ccedil;":"\xE7",ccedil:"\xE7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2A4C","ccupssm;":"\u2A50","Cdot;":"\u010A","cdot;":"\u010B","cedil;":"\xB8",cedil:"\xB8","Cedilla;":"\xB8","cemptyv;":"\u29B2","cent;":"\xA2",cent:"\xA2","CenterDot;":"\xB7","centerdot;":"\xB7","Cfr;":"\u212D","cfr;":"\u{1D520}","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03A7","chi;":"\u03C7","cir;":"\u25CB","circ;":"\u02C6","circeq;":"\u2257","circlearrowleft;":"\u21BA","circlearrowright;":"\u21BB","circledast;":"\u229B","circledcirc;":"\u229A","circleddash;":"\u229D","CircleDot;":"\u2299","circledR;":"\xAE","circledS;":"\u24C8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29C3","cire;":"\u2257","cirfnint;":"\u2A10","cirmid;":"\u2AEF","cirscir;":"\u29C2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201D","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2A74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2A6D","Congruent;":"\u2261","Conint;":"\u222F","conint;":"\u222E","ContourIntegral;":"\u222E","Copf;":"\u2102","copf;":"\u{1D554}","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xA9",COPY:"\xA9","copy;":"\xA9",copy:"\xA9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21B5","Cross;":"\u2A2F","cross;":"\u2717","Cscr;":"\u{1D49E}","cscr;":"\u{1D4B8}","csub;":"\u2ACF","csube;":"\u2AD1","csup;":"\u2AD0","csupe;":"\u2AD2","ctdot;":"\u22EF","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22DE","cuesc;":"\u22DF","cularr;":"\u21B6","cularrp;":"\u293D","Cup;":"\u22D3","cup;":"\u222A","cupbrcap;":"\u2A48","CupCap;":"\u224D","cupcap;":"\u2A46","cupcup;":"\u2A4A","cupdot;":"\u228D","cupor;":"\u2A45","cups;":"\u222A\uFE00","curarr;":"\u21B7","curarrm;":"\u293C","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","curlyvee;":"\u22CE","curlywedge;":"\u22CF","curren;":"\xA4",curren:"\xA4","curvearrowleft;":"\u21B6","curvearrowright;":"\u21B7","cuvee;":"\u22CE","cuwed;":"\u22CF","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232D","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21A1","dArr;":"\u21D3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2AE4","dashv;":"\u22A3","dbkarow;":"\u290F","dblac;":"\u02DD","Dcaron;":"\u010E","dcaron;":"\u010F","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21CA","DDotrahd;":"\u2911","ddotseq;":"\u2A77","deg;":"\xB0",deg:"\xB0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03B4","demptyv;":"\u29B1","dfisht;":"\u297F","Dfr;":"\u{1D507}","dfr;":"\u{1D521}","dHar;":"\u2965","dharl;":"\u21C3","dharr;":"\u21C2","DiacriticalAcute;":"\xB4","DiacriticalDot;":"\u02D9","DiacriticalDoubleAcute;":"\u02DD","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02DC","diam;":"\u22C4","Diamond;":"\u22C4","diamond;":"\u22C4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xA8","DifferentialD;":"\u2146","digamma;":"\u03DD","disin;":"\u22F2","div;":"\xF7","divide;":"\xF7",divide:"\xF7","divideontimes;":"\u22C7","divonx;":"\u22C7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"$","Dopf;":"\u{1D53B}","dopf;":"\u{1D555}","Dot;":"\xA8","dot;":"\u02D9","DotDot;":"\u20DC","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22A1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222F","DoubleDot;":"\xA8","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","DoubleLeftRightArrow;":"\u21D4","DoubleLeftTee;":"\u2AE4","DoubleLongLeftArrow;":"\u27F8","DoubleLongLeftRightArrow;":"\u27FA","DoubleLongRightArrow;":"\u27F9","DoubleRightArrow;":"\u21D2","DoubleRightTee;":"\u22A8","DoubleUpArrow;":"\u21D1","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21D3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21F5","DownBreve;":"\u0311","downdownarrows;":"\u21CA","downharpoonleft;":"\u21C3","downharpoonright;":"\u21C2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295E","DownLeftVector;":"\u21BD","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295F","DownRightVector;":"\u21C1","DownRightVectorBar;":"\u2957","DownTee;":"\u22A4","DownTeeArrow;":"\u21A7","drbkarow;":"\u2910","drcorn;":"\u231F","drcrop;":"\u230C","Dscr;":"\u{1D49F}","dscr;":"\u{1D4B9}","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22F1","dtri;":"\u25BF","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F","dwangle;":"\u29A6","DZcy;":"\u040F","dzcy;":"\u045F","dzigrarr;":"\u27FF","Eacute;":"\xC9",Eacute:"\xC9","eacute;":"\xE9",eacute:"\xE9","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecir;":"\u2256","Ecirc;":"\xCA",Ecirc:"\xCA","ecirc;":"\xEA",ecirc:"\xEA","ecolon;":"\u2255","Ecy;":"\u042D","ecy;":"\u044D","eDDot;":"\u2A77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\u{1D508}","efr;":"\u{1D522}","eg;":"\u2A9A","Egrave;":"\xC8",Egrave:"\xC8","egrave;":"\xE8",egrave:"\xE8","egs;":"\u2A96","egsdot;":"\u2A98","el;":"\u2A99","Element;":"\u2208","elinters;":"\u23E7","ell;":"\u2113","els;":"\u2A95","elsdot;":"\u2A97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25FB","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25AB","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014A","eng;":"\u014B","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\u{1D53C}","eopf;":"\u{1D556}","epar;":"\u22D5","eparsl;":"\u29E3","eplus;":"\u2A71","epsi;":"\u03B5","Epsilon;":"\u0395","epsilon;":"\u03B5","epsiv;":"\u03F5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2A96","eqslantless;":"\u2A95","Equal;":"\u2A75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225F","Equilibrium;":"\u21CC","equiv;":"\u2261","equivDD;":"\u2A78","eqvparsl;":"\u29E5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212F","esdot;":"\u2250","Esim;":"\u2A73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\xD0",ETH:"\xD0","eth;":"\xF0",eth:"\xF0","Euml;":"\xCB",Euml:"\xCB","euml;":"\xEB",euml:"\xEB","euro;":"\u20AC","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\uFB03","fflig;":"\uFB00","ffllig;":"\uFB04","Ffr;":"\u{1D509}","ffr;":"\u{1D523}","filig;":"\uFB01","FilledSmallSquare;":"\u25FC","FilledVerySmallSquare;":"\u25AA","fjlig;":"fj","flat;":"\u266D","fllig;":"\uFB02","fltns;":"\u25B1","fnof;":"\u0192","Fopf;":"\u{1D53D}","fopf;":"\u{1D557}","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22D4","forkv;":"\u2AD9","Fouriertrf;":"\u2131","fpartint;":"\u2A0D","frac12;":"\xBD",frac12:"\xBD","frac13;":"\u2153","frac14;":"\xBC",frac14:"\xBC","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xBE",frac34:"\xBE","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\u{1D4BB}","gacute;":"\u01F5","Gamma;":"\u0393","gamma;":"\u03B3","Gammad;":"\u03DC","gammad;":"\u03DD","gap;":"\u2A86","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","Gcirc;":"\u011C","gcirc;":"\u011D","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2A7E","ges;":"\u2A7E","gescc;":"\u2AA9","gesdot;":"\u2A80","gesdoto;":"\u2A82","gesdotol;":"\u2A84","gesl;":"\u22DB\uFE00","gesles;":"\u2A94","Gfr;":"\u{1D50A}","gfr;":"\u{1D524}","Gg;":"\u22D9","gg;":"\u226B","ggg;":"\u22D9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2AA5","glE;":"\u2A92","glj;":"\u2AA4","gnap;":"\u2A8A","gnapprox;":"\u2A8A","gnE;":"\u2269","gne;":"\u2A88","gneq;":"\u2A88","gneqq;":"\u2269","gnsim;":"\u22E7","Gopf;":"\u{1D53E}","gopf;":"\u{1D558}","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2AA2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2A7E","GreaterTilde;":"\u2273","Gscr;":"\u{1D4A2}","gscr;":"\u210A","gsim;":"\u2273","gsime;":"\u2A8E","gsiml;":"\u2A90","GT;":">",GT:">","Gt;":"\u226B","gt;":">",gt:">","gtcc;":"\u2AA7","gtcir;":"\u2A7A","gtdot;":"\u22D7","gtlPar;":"\u2995","gtquest;":"\u2A7C","gtrapprox;":"\u2A86","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtreqless;":"\u22DB","gtreqqless;":"\u2A8C","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\uFE00","gvnE;":"\u2269\uFE00","Hacek;":"\u02C7","hairsp;":"\u200A","half;":"\xBD","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","hArr;":"\u21D4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21AD","Hat;":"^","hbar;":"\u210F","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22B9","Hfr;":"\u210C","hfr;":"\u{1D525}","HilbertSpace;":"\u210B","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21FF","homtht;":"\u223B","hookleftarrow;":"\u21A9","hookrightarrow;":"\u21AA","Hopf;":"\u210D","hopf;":"\u{1D559}","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210B","hscr;":"\u{1D4BD}","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224E","HumpEqual;":"\u224F","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xCD",Iacute:"\xCD","iacute;":"\xED",iacute:"\xED","ic;":"\u2063","Icirc;":"\xCE",Icirc:"\xCE","icirc;":"\xEE",icirc:"\xEE","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xA1",iexcl:"\xA1","iff;":"\u21D4","Ifr;":"\u2111","ifr;":"\u{1D526}","Igrave;":"\xCC",Igrave:"\xCC","igrave;":"\xEC",igrave:"\xEC","ii;":"\u2148","iiiint;":"\u2A0C","iiint;":"\u222D","iinfin;":"\u29DC","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012A","imacr;":"\u012B","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22B7","imped;":"\u01B5","Implies;":"\u21D2","in;":"\u2208","incare;":"\u2105","infin;":"\u221E","infintie;":"\u29DD","inodot;":"\u0131","Int;":"\u222C","int;":"\u222B","intcal;":"\u22BA","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","Intersection;":"\u22C2","intlarhk;":"\u2A17","intprod;":"\u2A3C","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012E","iogon;":"\u012F","Iopf;":"\u{1D540}","iopf;":"\u{1D55A}","Iota;":"\u0399","iota;":"\u03B9","iprod;":"\u2A3C","iquest;":"\xBF",iquest:"\xBF","Iscr;":"\u2110","iscr;":"\u{1D4BE}","isin;":"\u2208","isindot;":"\u22F5","isinE;":"\u22F9","isins;":"\u22F4","isinsv;":"\u22F3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xCF",Iuml:"\xCF","iuml;":"\xEF",iuml:"\xEF","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\u{1D50D}","jfr;":"\u{1D527}","jmath;":"\u0237","Jopf;":"\u{1D541}","jopf;":"\u{1D55B}","Jscr;":"\u{1D4A5}","jscr;":"\u{1D4BF}","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039A","kappa;":"\u03BA","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\u{1D50E}","kfr;":"\u{1D528}","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\u{1D542}","kopf;":"\u{1D55C}","Kscr;":"\u{1D4A6}","kscr;":"\u{1D4C0}","lAarr;":"\u21DA","Lacute;":"\u0139","lacute;":"\u013A","laemptyv;":"\u29B4","lagran;":"\u2112","Lambda;":"\u039B","lambda;":"\u03BB","Lang;":"\u27EA","lang;":"\u27E8","langd;":"\u2991","langle;":"\u27E8","lap;":"\u2A85","Laplacetrf;":"\u2112","laquo;":"\xAB",laquo:"\xAB","Larr;":"\u219E","lArr;":"\u21D0","larr;":"\u2190","larrb;":"\u21E4","larrbfs;":"\u291F","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21A2","lat;":"\u2AAB","lAtail;":"\u291B","latail;":"\u2919","late;":"\u2AAD","lates;":"\u2AAD\uFE00","lBarr;":"\u290E","lbarr;":"\u290C","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298B","lbrksld;":"\u298F","lbrkslu;":"\u298D","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041B","lcy;":"\u043B","ldca;":"\u2936","ldquo;":"\u201C","ldquor;":"\u201E","ldrdhar;":"\u2967","ldrushar;":"\u294B","ldsh;":"\u21B2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27E8","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","leftarrow;":"\u2190","LeftArrowBar;":"\u21E4","LeftArrowRightArrow;":"\u21C6","leftarrowtail;":"\u21A2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21C3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230A","leftharpoondown;":"\u21BD","leftharpoonup;":"\u21BC","leftleftarrows;":"\u21C7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21C6","leftrightharpoons;":"\u21CB","leftrightsquigarrow;":"\u21AD","LeftRightVector;":"\u294E","LeftTee;":"\u22A3","LeftTeeArrow;":"\u21A4","LeftTeeVector;":"\u295A","leftthreetimes;":"\u22CB","LeftTriangle;":"\u22B2","LeftTriangleBar;":"\u29CF","LeftTriangleEqual;":"\u22B4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21BF","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21BC","LeftVectorBar;":"\u2952","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2A7D","les;":"\u2A7D","lescc;":"\u2AA8","lesdot;":"\u2A7F","lesdoto;":"\u2A81","lesdotor;":"\u2A83","lesg;":"\u22DA\uFE00","lesges;":"\u2A93","lessapprox;":"\u2A85","lessdot;":"\u22D6","lesseqgtr;":"\u22DA","lesseqqgtr;":"\u2A8B","LessEqualGreater;":"\u22DA","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2AA1","lesssim;":"\u2272","LessSlantEqual;":"\u2A7D","LessTilde;":"\u2272","lfisht;":"\u297C","lfloor;":"\u230A","Lfr;":"\u{1D50F}","lfr;":"\u{1D529}","lg;":"\u2276","lgE;":"\u2A91","lHar;":"\u2962","lhard;":"\u21BD","lharu;":"\u21BC","lharul;":"\u296A","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22D8","ll;":"\u226A","llarr;":"\u21C7","llcorner;":"\u231E","Lleftarrow;":"\u21DA","llhard;":"\u296B","lltri;":"\u25FA","Lmidot;":"\u013F","lmidot;":"\u0140","lmoust;":"\u23B0","lmoustache;":"\u23B0","lnap;":"\u2A89","lnapprox;":"\u2A89","lnE;":"\u2268","lne;":"\u2A87","lneq;":"\u2A87","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftarrow;":"\u27F5","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longleftrightarrow;":"\u27F7","longmapsto;":"\u27FC","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","longrightarrow;":"\u27F6","looparrowleft;":"\u21AB","looparrowright;":"\u21AC","lopar;":"\u2985","Lopf;":"\u{1D543}","lopf;":"\u{1D55D}","loplus;":"\u2A2D","lotimes;":"\u2A34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25CA","lozenge;":"\u25CA","lozf;":"\u29EB","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21C6","lrcorner;":"\u231F","lrhar;":"\u21CB","lrhard;":"\u296D","lrm;":"\u200E","lrtri;":"\u22BF","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\u{1D4C1}","Lsh;":"\u21B0","lsh;":"\u21B0","lsim;":"\u2272","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226A","lt;":"<",lt:"<","ltcc;":"\u2AA6","ltcir;":"\u2A79","ltdot;":"\u22D6","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltquest;":"\u2A7B","ltri;":"\u25C3","ltrie;":"\u22B4","ltrif;":"\u25C2","ltrPar;":"\u2996","lurdshar;":"\u294A","luruhar;":"\u2966","lvertneqq;":"\u2268\uFE00","lvnE;":"\u2268\uFE00","macr;":"\xAF",macr:"\xAF","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21A6","mapsto;":"\u21A6","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","mapstoup;":"\u21A5","marker;":"\u25AE","mcomma;":"\u2A29","Mcy;":"\u041C","mcy;":"\u043C","mdash;":"\u2014","mDDot;":"\u223A","measuredangle;":"\u2221","MediumSpace;":"\u205F","Mellintrf;":"\u2133","Mfr;":"\u{1D510}","mfr;":"\u{1D52A}","mho;":"\u2127","micro;":"\xB5",micro:"\xB5","mid;":"\u2223","midast;":"*","midcir;":"\u2AF0","middot;":"\xB7",middot:"\xB7","minus;":"\u2212","minusb;":"\u229F","minusd;":"\u2238","minusdu;":"\u2A2A","MinusPlus;":"\u2213","mlcp;":"\u2ADB","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22A7","Mopf;":"\u{1D544}","mopf;":"\u{1D55E}","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\u{1D4C2}","mstpos;":"\u223E","Mu;":"\u039C","mu;":"\u03BC","multimap;":"\u22B8","mumap;":"\u22B8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20D2","nap;":"\u2249","napE;":"\u2A70\u0338","napid;":"\u224B\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266E","natural;":"\u266E","naturals;":"\u2115","nbsp;":"\xA0",nbsp:"\xA0","nbump;":"\u224E\u0338","nbumpe;":"\u224F\u0338","ncap;":"\u2A43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2A6D\u0338","ncup;":"\u2A42","Ncy;":"\u041D","ncy;":"\u043D","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21D7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200B","NegativeThickSpace;":"\u200B","NegativeThinSpace;":"\u200B","NegativeVeryThinSpace;":"\u200B","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226B","NestedLessLess;":"\u226A","NewLine;":` -`,"nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\u{1D511}","nfr;":"\u{1D52B}","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2A7E\u0338","nges;":"\u2A7E\u0338","nGg;":"\u22D9\u0338","ngsim;":"\u2275","nGt;":"\u226B\u20D2","ngt;":"\u226F","ngtr;":"\u226F","nGtv;":"\u226B\u0338","nhArr;":"\u21CE","nharr;":"\u21AE","nhpar;":"\u2AF2","ni;":"\u220B","nis;":"\u22FC","nisd;":"\u22FA","niv;":"\u220B","NJcy;":"\u040A","njcy;":"\u045A","nlArr;":"\u21CD","nlarr;":"\u219A","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21CD","nleftarrow;":"\u219A","nLeftrightarrow;":"\u21CE","nleftrightarrow;":"\u21AE","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2A7D\u0338","nles;":"\u2A7D\u0338","nless;":"\u226E","nLl;":"\u22D8\u0338","nlsim;":"\u2274","nLt;":"\u226A\u20D2","nlt;":"\u226E","nltri;":"\u22EA","nltrie;":"\u22EC","nLtv;":"\u226A\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xA0","Nopf;":"\u2115","nopf;":"\u{1D55F}","Not;":"\u2AEC","not;":"\xAC",not:"\xAC","NotCongruent;":"\u2262","NotCupCap;":"\u226D","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226F","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226B\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2A7E\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224E\u0338","NotHumpEqual;":"\u224F\u0338","notin;":"\u2209","notindot;":"\u22F5\u0338","notinE;":"\u22F9\u0338","notinva;":"\u2209","notinvb;":"\u22F7","notinvc;":"\u22F6","NotLeftTriangle;":"\u22EA","NotLeftTriangleBar;":"\u29CF\u0338","NotLeftTriangleEqual;":"\u22EC","NotLess;":"\u226E","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226A\u0338","NotLessSlantEqual;":"\u2A7D\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2AA2\u0338","NotNestedLessLess;":"\u2AA1\u0338","notni;":"\u220C","notniva;":"\u220C","notnivb;":"\u22FE","notnivc;":"\u22FD","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2AAF\u0338","NotPrecedesSlantEqual;":"\u22E0","NotReverseElement;":"\u220C","NotRightTriangle;":"\u22EB","NotRightTriangleBar;":"\u29D0\u0338","NotRightTriangleEqual;":"\u22ED","NotSquareSubset;":"\u228F\u0338","NotSquareSubsetEqual;":"\u22E2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22E3","NotSubset;":"\u2282\u20D2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2AB0\u0338","NotSucceedsSlantEqual;":"\u22E1","NotSucceedsTilde;":"\u227F\u0338","NotSuperset;":"\u2283\u20D2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2AFD\u20E5","npart;":"\u2202\u0338","npolint;":"\u2A14","npr;":"\u2280","nprcue;":"\u22E0","npre;":"\u2AAF\u0338","nprec;":"\u2280","npreceq;":"\u2AAF\u0338","nrArr;":"\u21CF","nrarr;":"\u219B","nrarrc;":"\u2933\u0338","nrarrw;":"\u219D\u0338","nRightarrow;":"\u21CF","nrightarrow;":"\u219B","nrtri;":"\u22EB","nrtrie;":"\u22ED","nsc;":"\u2281","nsccue;":"\u22E1","nsce;":"\u2AB0\u0338","Nscr;":"\u{1D4A9}","nscr;":"\u{1D4C3}","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22E2","nsqsupe;":"\u22E3","nsub;":"\u2284","nsubE;":"\u2AC5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20D2","nsubseteq;":"\u2288","nsubseteqq;":"\u2AC5\u0338","nsucc;":"\u2281","nsucceq;":"\u2AB0\u0338","nsup;":"\u2285","nsupE;":"\u2AC6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20D2","nsupseteq;":"\u2289","nsupseteqq;":"\u2AC6\u0338","ntgl;":"\u2279","Ntilde;":"\xD1",Ntilde:"\xD1","ntilde;":"\xF1",ntilde:"\xF1","ntlg;":"\u2278","ntriangleleft;":"\u22EA","ntrianglelefteq;":"\u22EC","ntriangleright;":"\u22EB","ntrianglerighteq;":"\u22ED","Nu;":"\u039D","nu;":"\u03BD","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224D\u20D2","nVDash;":"\u22AF","nVdash;":"\u22AE","nvDash;":"\u22AD","nvdash;":"\u22AC","nvge;":"\u2265\u20D2","nvgt;":">\u20D2","nvHarr;":"\u2904","nvinfin;":"\u29DE","nvlArr;":"\u2902","nvle;":"\u2264\u20D2","nvlt;":"<\u20D2","nvltrie;":"\u22B4\u20D2","nvrArr;":"\u2903","nvrtrie;":"\u22B5\u20D2","nvsim;":"\u223C\u20D2","nwarhk;":"\u2923","nwArr;":"\u21D6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xD3",Oacute:"\xD3","oacute;":"\xF3",oacute:"\xF3","oast;":"\u229B","ocir;":"\u229A","Ocirc;":"\xD4",Ocirc:"\xD4","ocirc;":"\xF4",ocirc:"\xF4","Ocy;":"\u041E","ocy;":"\u043E","odash;":"\u229D","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2A38","odot;":"\u2299","odsold;":"\u29BC","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29BF","Ofr;":"\u{1D512}","ofr;":"\u{1D52C}","ogon;":"\u02DB","Ograve;":"\xD2",Ograve:"\xD2","ograve;":"\xF2",ograve:"\xF2","ogt;":"\u29C1","ohbar;":"\u29B5","ohm;":"\u03A9","oint;":"\u222E","olarr;":"\u21BA","olcir;":"\u29BE","olcross;":"\u29BB","oline;":"\u203E","olt;":"\u29C0","Omacr;":"\u014C","omacr;":"\u014D","Omega;":"\u03A9","omega;":"\u03C9","Omicron;":"\u039F","omicron;":"\u03BF","omid;":"\u29B6","ominus;":"\u2296","Oopf;":"\u{1D546}","oopf;":"\u{1D560}","opar;":"\u29B7","OpenCurlyDoubleQuote;":"\u201C","OpenCurlyQuote;":"\u2018","operp;":"\u29B9","oplus;":"\u2295","Or;":"\u2A54","or;":"\u2228","orarr;":"\u21BB","ord;":"\u2A5D","order;":"\u2134","orderof;":"\u2134","ordf;":"\xAA",ordf:"\xAA","ordm;":"\xBA",ordm:"\xBA","origof;":"\u22B6","oror;":"\u2A56","orslope;":"\u2A57","orv;":"\u2A5B","oS;":"\u24C8","Oscr;":"\u{1D4AA}","oscr;":"\u2134","Oslash;":"\xD8",Oslash:"\xD8","oslash;":"\xF8",oslash:"\xF8","osol;":"\u2298","Otilde;":"\xD5",Otilde:"\xD5","otilde;":"\xF5",otilde:"\xF5","Otimes;":"\u2A37","otimes;":"\u2297","otimesas;":"\u2A36","Ouml;":"\xD6",Ouml:"\xD6","ouml;":"\xF6",ouml:"\xF6","ovbar;":"\u233D","OverBar;":"\u203E","OverBrace;":"\u23DE","OverBracket;":"\u23B4","OverParenthesis;":"\u23DC","par;":"\u2225","para;":"\xB6",para:"\xB6","parallel;":"\u2225","parsim;":"\u2AF3","parsl;":"\u2AFD","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041F","pcy;":"\u043F","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22A5","pertenk;":"\u2031","Pfr;":"\u{1D513}","pfr;":"\u{1D52D}","Phi;":"\u03A6","phi;":"\u03C6","phiv;":"\u03D5","phmmat;":"\u2133","phone;":"\u260E","Pi;":"\u03A0","pi;":"\u03C0","pitchfork;":"\u22D4","piv;":"\u03D6","planck;":"\u210F","planckh;":"\u210E","plankv;":"\u210F","plus;":"+","plusacir;":"\u2A23","plusb;":"\u229E","pluscir;":"\u2A22","plusdo;":"\u2214","plusdu;":"\u2A25","pluse;":"\u2A72","PlusMinus;":"\xB1","plusmn;":"\xB1",plusmn:"\xB1","plussim;":"\u2A26","plustwo;":"\u2A27","pm;":"\xB1","Poincareplane;":"\u210C","pointint;":"\u2A15","Popf;":"\u2119","popf;":"\u{1D561}","pound;":"\xA3",pound:"\xA3","Pr;":"\u2ABB","pr;":"\u227A","prap;":"\u2AB7","prcue;":"\u227C","prE;":"\u2AB3","pre;":"\u2AAF","prec;":"\u227A","precapprox;":"\u2AB7","preccurlyeq;":"\u227C","Precedes;":"\u227A","PrecedesEqual;":"\u2AAF","PrecedesSlantEqual;":"\u227C","PrecedesTilde;":"\u227E","preceq;":"\u2AAF","precnapprox;":"\u2AB9","precneqq;":"\u2AB5","precnsim;":"\u22E8","precsim;":"\u227E","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2AB9","prnE;":"\u2AB5","prnsim;":"\u22E8","prod;":"\u220F","Product;":"\u220F","profalar;":"\u232E","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221D","Proportion;":"\u2237","Proportional;":"\u221D","propto;":"\u221D","prsim;":"\u227E","prurel;":"\u22B0","Pscr;":"\u{1D4AB}","pscr;":"\u{1D4C5}","Psi;":"\u03A8","psi;":"\u03C8","puncsp;":"\u2008","Qfr;":"\u{1D514}","qfr;":"\u{1D52E}","qint;":"\u2A0C","Qopf;":"\u211A","qopf;":"\u{1D562}","qprime;":"\u2057","Qscr;":"\u{1D4AC}","qscr;":"\u{1D4C6}","quaternions;":"\u210D","quatint;":"\u2A16","quest;":"?","questeq;":"\u225F","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21DB","race;":"\u223D\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221A","raemptyv;":"\u29B3","Rang;":"\u27EB","rang;":"\u27E9","rangd;":"\u2992","range;":"\u29A5","rangle;":"\u27E9","raquo;":"\xBB",raquo:"\xBB","Rarr;":"\u21A0","rArr;":"\u21D2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21E5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291E","rarrhk;":"\u21AA","rarrlp;":"\u21AC","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21A3","rarrw;":"\u219D","rAtail;":"\u291C","ratail;":"\u291A","ratio;":"\u2236","rationals;":"\u211A","RBarr;":"\u2910","rBarr;":"\u290F","rbarr;":"\u290D","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298C","rbrksld;":"\u298E","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201D","rdquor;":"\u201D","rdsh;":"\u21B3","Re;":"\u211C","real;":"\u211C","realine;":"\u211B","realpart;":"\u211C","reals;":"\u211D","rect;":"\u25AD","REG;":"\xAE",REG:"\xAE","reg;":"\xAE",reg:"\xAE","ReverseElement;":"\u220B","ReverseEquilibrium;":"\u21CB","ReverseUpEquilibrium;":"\u296F","rfisht;":"\u297D","rfloor;":"\u230B","Rfr;":"\u211C","rfr;":"\u{1D52F}","rHar;":"\u2964","rhard;":"\u21C1","rharu;":"\u21C0","rharul;":"\u296C","Rho;":"\u03A1","rho;":"\u03C1","rhov;":"\u03F1","RightAngleBracket;":"\u27E9","RightArrow;":"\u2192","Rightarrow;":"\u21D2","rightarrow;":"\u2192","RightArrowBar;":"\u21E5","RightArrowLeftArrow;":"\u21C4","rightarrowtail;":"\u21A3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27E7","RightDownTeeVector;":"\u295D","RightDownVector;":"\u21C2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230B","rightharpoondown;":"\u21C1","rightharpoonup;":"\u21C0","rightleftarrows;":"\u21C4","rightleftharpoons;":"\u21CC","rightrightarrows;":"\u21C9","rightsquigarrow;":"\u219D","RightTee;":"\u22A2","RightTeeArrow;":"\u21A6","RightTeeVector;":"\u295B","rightthreetimes;":"\u22CC","RightTriangle;":"\u22B3","RightTriangleBar;":"\u29D0","RightTriangleEqual;":"\u22B5","RightUpDownVector;":"\u294F","RightUpTeeVector;":"\u295C","RightUpVector;":"\u21BE","RightUpVectorBar;":"\u2954","RightVector;":"\u21C0","RightVectorBar;":"\u2953","ring;":"\u02DA","risingdotseq;":"\u2253","rlarr;":"\u21C4","rlhar;":"\u21CC","rlm;":"\u200F","rmoust;":"\u23B1","rmoustache;":"\u23B1","rnmid;":"\u2AEE","roang;":"\u27ED","roarr;":"\u21FE","robrk;":"\u27E7","ropar;":"\u2986","Ropf;":"\u211D","ropf;":"\u{1D563}","roplus;":"\u2A2E","rotimes;":"\u2A35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2A12","rrarr;":"\u21C9","Rrightarrow;":"\u21DB","rsaquo;":"\u203A","Rscr;":"\u211B","rscr;":"\u{1D4C7}","Rsh;":"\u21B1","rsh;":"\u21B1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22CC","rtimes;":"\u22CA","rtri;":"\u25B9","rtrie;":"\u22B5","rtrif;":"\u25B8","rtriltri;":"\u29CE","RuleDelayed;":"\u29F4","ruluhar;":"\u2968","rx;":"\u211E","Sacute;":"\u015A","sacute;":"\u015B","sbquo;":"\u201A","Sc;":"\u2ABC","sc;":"\u227B","scap;":"\u2AB8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227D","scE;":"\u2AB4","sce;":"\u2AB0","Scedil;":"\u015E","scedil;":"\u015F","Scirc;":"\u015C","scirc;":"\u015D","scnap;":"\u2ABA","scnE;":"\u2AB6","scnsim;":"\u22E9","scpolint;":"\u2A13","scsim;":"\u227F","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22C5","sdotb;":"\u22A1","sdote;":"\u2A66","searhk;":"\u2925","seArr;":"\u21D8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xA7",sect:"\xA7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\u{1D516}","sfr;":"\u{1D530}","sfrown;":"\u2322","sharp;":"\u266F","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xAD",shy:"\xAD","Sigma;":"\u03A3","sigma;":"\u03C3","sigmaf;":"\u03C2","sigmav;":"\u03C2","sim;":"\u223C","simdot;":"\u2A6A","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2A9E","simgE;":"\u2AA0","siml;":"\u2A9D","simlE;":"\u2A9F","simne;":"\u2246","simplus;":"\u2A24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2A33","smeparsl;":"\u29E4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2AAA","smte;":"\u2AAC","smtes;":"\u2AAC\uFE00","SOFTcy;":"\u042C","softcy;":"\u044C","sol;":"/","solb;":"\u29C4","solbar;":"\u233F","Sopf;":"\u{1D54A}","sopf;":"\u{1D564}","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\uFE00","sqcup;":"\u2294","sqcups;":"\u2294\uFE00","Sqrt;":"\u221A","sqsub;":"\u228F","sqsube;":"\u2291","sqsubset;":"\u228F","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25A1","Square;":"\u25A1","square;":"\u25A1","SquareIntersection;":"\u2293","SquareSubset;":"\u228F","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25AA","squf;":"\u25AA","srarr;":"\u2192","Sscr;":"\u{1D4AE}","sscr;":"\u{1D4C8}","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22C6","Star;":"\u22C6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03F5","straightphi;":"\u03D5","strns;":"\xAF","Sub;":"\u22D0","sub;":"\u2282","subdot;":"\u2ABD","subE;":"\u2AC5","sube;":"\u2286","subedot;":"\u2AC3","submult;":"\u2AC1","subnE;":"\u2ACB","subne;":"\u228A","subplus;":"\u2ABF","subrarr;":"\u2979","Subset;":"\u22D0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2AC5","SubsetEqual;":"\u2286","subsetneq;":"\u228A","subsetneqq;":"\u2ACB","subsim;":"\u2AC7","subsub;":"\u2AD5","subsup;":"\u2AD3","succ;":"\u227B","succapprox;":"\u2AB8","succcurlyeq;":"\u227D","Succeeds;":"\u227B","SucceedsEqual;":"\u2AB0","SucceedsSlantEqual;":"\u227D","SucceedsTilde;":"\u227F","succeq;":"\u2AB0","succnapprox;":"\u2ABA","succneqq;":"\u2AB6","succnsim;":"\u22E9","succsim;":"\u227F","SuchThat;":"\u220B","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266A","Sup;":"\u22D1","sup;":"\u2283","sup1;":"\xB9",sup1:"\xB9","sup2;":"\xB2",sup2:"\xB2","sup3;":"\xB3",sup3:"\xB3","supdot;":"\u2ABE","supdsub;":"\u2AD8","supE;":"\u2AC6","supe;":"\u2287","supedot;":"\u2AC4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27C9","suphsub;":"\u2AD7","suplarr;":"\u297B","supmult;":"\u2AC2","supnE;":"\u2ACC","supne;":"\u228B","supplus;":"\u2AC0","Supset;":"\u22D1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2AC6","supsetneq;":"\u228B","supsetneqq;":"\u2ACC","supsim;":"\u2AC8","supsub;":"\u2AD4","supsup;":"\u2AD6","swarhk;":"\u2926","swArr;":"\u21D9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292A","szlig;":"\xDF",szlig:"\xDF","Tab;":" ","target;":"\u2316","Tau;":"\u03A4","tau;":"\u03C4","tbrk;":"\u23B4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20DB","telrec;":"\u2315","Tfr;":"\u{1D517}","tfr;":"\u{1D531}","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03B8","thetasym;":"\u03D1","thetav;":"\u03D1","thickapprox;":"\u2248","thicksim;":"\u223C","ThickSpace;":"\u205F\u200A","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223C","THORN;":"\xDE",THORN:"\xDE","thorn;":"\xFE",thorn:"\xFE","Tilde;":"\u223C","tilde;":"\u02DC","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xD7",times:"\xD7","timesb;":"\u22A0","timesbar;":"\u2A31","timesd;":"\u2A30","tint;":"\u222D","toea;":"\u2928","top;":"\u22A4","topbot;":"\u2336","topcir;":"\u2AF1","Topf;":"\u{1D54B}","topf;":"\u{1D565}","topfork;":"\u2ADA","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25B5","triangledown;":"\u25BF","triangleleft;":"\u25C3","trianglelefteq;":"\u22B4","triangleq;":"\u225C","triangleright;":"\u25B9","trianglerighteq;":"\u22B5","tridot;":"\u25EC","trie;":"\u225C","triminus;":"\u2A3A","TripleDot;":"\u20DB","triplus;":"\u2A39","trisb;":"\u29CD","tritime;":"\u2A3B","trpezium;":"\u23E2","Tscr;":"\u{1D4AF}","tscr;":"\u{1D4C9}","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040B","tshcy;":"\u045B","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226C","twoheadleftarrow;":"\u219E","twoheadrightarrow;":"\u21A0","Uacute;":"\xDA",Uacute:"\xDA","uacute;":"\xFA",uacute:"\xFA","Uarr;":"\u219F","uArr;":"\u21D1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040E","ubrcy;":"\u045E","Ubreve;":"\u016C","ubreve;":"\u016D","Ucirc;":"\xDB",Ucirc:"\xDB","ucirc;":"\xFB",ucirc:"\xFB","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21C5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296E","ufisht;":"\u297E","Ufr;":"\u{1D518}","ufr;":"\u{1D532}","Ugrave;":"\xD9",Ugrave:"\xD9","ugrave;":"\xF9",ugrave:"\xF9","uHar;":"\u2963","uharl;":"\u21BF","uharr;":"\u21BE","uhblk;":"\u2580","ulcorn;":"\u231C","ulcorner;":"\u231C","ulcrop;":"\u230F","ultri;":"\u25F8","Umacr;":"\u016A","umacr;":"\u016B","uml;":"\xA8",uml:"\xA8","UnderBar;":"_","UnderBrace;":"\u23DF","UnderBracket;":"\u23B5","UnderParenthesis;":"\u23DD","Union;":"\u22C3","UnionPlus;":"\u228E","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\u{1D54C}","uopf;":"\u{1D566}","UpArrow;":"\u2191","Uparrow;":"\u21D1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21C5","UpDownArrow;":"\u2195","Updownarrow;":"\u21D5","updownarrow;":"\u2195","UpEquilibrium;":"\u296E","upharpoonleft;":"\u21BF","upharpoonright;":"\u21BE","uplus;":"\u228E","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03D2","upsi;":"\u03C5","upsih;":"\u03D2","Upsilon;":"\u03A5","upsilon;":"\u03C5","UpTee;":"\u22A5","UpTeeArrow;":"\u21A5","upuparrows;":"\u21C8","urcorn;":"\u231D","urcorner;":"\u231D","urcrop;":"\u230E","Uring;":"\u016E","uring;":"\u016F","urtri;":"\u25F9","Uscr;":"\u{1D4B0}","uscr;":"\u{1D4CA}","utdot;":"\u22F0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25B5","utrif;":"\u25B4","uuarr;":"\u21C8","Uuml;":"\xDC",Uuml:"\xDC","uuml;":"\xFC",uuml:"\xFC","uwangle;":"\u29A7","vangrt;":"\u299C","varepsilon;":"\u03F5","varkappa;":"\u03F0","varnothing;":"\u2205","varphi;":"\u03D5","varpi;":"\u03D6","varpropto;":"\u221D","vArr;":"\u21D5","varr;":"\u2195","varrho;":"\u03F1","varsigma;":"\u03C2","varsubsetneq;":"\u228A\uFE00","varsubsetneqq;":"\u2ACB\uFE00","varsupsetneq;":"\u228B\uFE00","varsupsetneqq;":"\u2ACC\uFE00","vartheta;":"\u03D1","vartriangleleft;":"\u22B2","vartriangleright;":"\u22B3","Vbar;":"\u2AEB","vBar;":"\u2AE8","vBarv;":"\u2AE9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22AB","Vdash;":"\u22A9","vDash;":"\u22A8","vdash;":"\u22A2","Vdashl;":"\u2AE6","Vee;":"\u22C1","vee;":"\u2228","veebar;":"\u22BB","veeeq;":"\u225A","vellip;":"\u22EE","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200A","Vfr;":"\u{1D519}","vfr;":"\u{1D533}","vltri;":"\u22B2","vnsub;":"\u2282\u20D2","vnsup;":"\u2283\u20D2","Vopf;":"\u{1D54D}","vopf;":"\u{1D567}","vprop;":"\u221D","vrtri;":"\u22B3","Vscr;":"\u{1D4B1}","vscr;":"\u{1D4CB}","vsubnE;":"\u2ACB\uFE00","vsubne;":"\u228A\uFE00","vsupnE;":"\u2ACC\uFE00","vsupne;":"\u228B\uFE00","Vvdash;":"\u22AA","vzigzag;":"\u299A","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2A5F","Wedge;":"\u22C0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\u{1D51A}","wfr;":"\u{1D534}","Wopf;":"\u{1D54E}","wopf;":"\u{1D568}","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\u{1D4B2}","wscr;":"\u{1D4CC}","xcap;":"\u22C2","xcirc;":"\u25EF","xcup;":"\u22C3","xdtri;":"\u25BD","Xfr;":"\u{1D51B}","xfr;":"\u{1D535}","xhArr;":"\u27FA","xharr;":"\u27F7","Xi;":"\u039E","xi;":"\u03BE","xlArr;":"\u27F8","xlarr;":"\u27F5","xmap;":"\u27FC","xnis;":"\u22FB","xodot;":"\u2A00","Xopf;":"\u{1D54F}","xopf;":"\u{1D569}","xoplus;":"\u2A01","xotime;":"\u2A02","xrArr;":"\u27F9","xrarr;":"\u27F6","Xscr;":"\u{1D4B3}","xscr;":"\u{1D4CD}","xsqcup;":"\u2A06","xuplus;":"\u2A04","xutri;":"\u25B3","xvee;":"\u22C1","xwedge;":"\u22C0","Yacute;":"\xDD",Yacute:"\xDD","yacute;":"\xFD",yacute:"\xFD","YAcy;":"\u042F","yacy;":"\u044F","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042B","ycy;":"\u044B","yen;":"\xA5",yen:"\xA5","Yfr;":"\u{1D51C}","yfr;":"\u{1D536}","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\u{1D550}","yopf;":"\u{1D56A}","Yscr;":"\u{1D4B4}","yscr;":"\u{1D4CE}","YUcy;":"\u042E","yucy;":"\u044E","Yuml;":"\u0178","yuml;":"\xFF",yuml:"\xFF","Zacute;":"\u0179","zacute;":"\u017A","Zcaron;":"\u017D","zcaron;":"\u017E","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017B","zdot;":"\u017C","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200B","Zeta;":"\u0396","zeta;":"\u03B6","Zfr;":"\u2128","zfr;":"\u{1D537}","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21DD","Zopf;":"\u2124","zopf;":"\u{1D56B}","Zscr;":"\u{1D4B5}","zscr;":"\u{1D4CF}","zwj;":"\u200D","zwnj;":"\u200C"};function Wi(Te,Ee){if(Te.length<Ee.length)return!1;for(var ve=0;ve<Ee.length;ve++)if(Te[ve]!==Ee[ve])return!1;return!0}function xn(Te,Ee){for(var ve="";Ee>0;)(1&Ee)==1&&(ve+=Te),Te+=Te,Ee>>>=1;return ve}var un="a".charCodeAt(0),bn="z".charCodeAt(0),Fn="A".charCodeAt(0),Mn="Z".charCodeAt(0),Nn="0".charCodeAt(0),Hn="9".charCodeAt(0);function Jn(Te,Ee){var ve=Te.charCodeAt(Ee);return un<=ve&&ve<=bn||Fn<=ve&&ve<=Mn||Nn<=ve&&ve<=Hn}function _o(Te){return Te!==void 0}var pn=function(){function Te(Ee,ve){var Re=this;this.id=Ee,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=ve.tags||[],this._globalAttributes=ve.globalAttributes||[],this._tags.forEach(function(We){Re._tagMap[We.name.toLowerCase()]=We}),ve.valueSets&&ve.valueSets.forEach(function(We){Re._valueSetMap[We.name]=We.values})}return Te.prototype.isApplicable=function(){return!0},Te.prototype.getId=function(){return this.id},Te.prototype.provideTags=function(){return this._tags},Te.prototype.provideAttributes=function(Ee){var ve=[],Re=function(Be){ve.push(Be)},We=this._tagMap[Ee.toLowerCase()];return We&&We.attributes.forEach(Re),this._globalAttributes.forEach(Re),ve},Te.prototype.provideValues=function(Ee,ve){var Re=this,We=[];ve=ve.toLowerCase();var Be=function(Ke){Ke.forEach(function(dt){dt.name.toLowerCase()===ve&&(dt.values&&dt.values.forEach(function(yt){We.push(yt)}),dt.valueSet&&Re._valueSetMap[dt.valueSet]&&Re._valueSetMap[dt.valueSet].forEach(function(yt){We.push(yt)}))})},Le=this._tagMap[Ee.toLowerCase()];return Le?(Be(Le.attributes),Be(this._globalAttributes),We):[]},Te}();function Gn(Te,Ee){var ve={kind:Ee?"markdown":"plaintext",value:""};if(Te.description){var Re=function(We){if(We)return typeof We=="string"?{kind:"markdown",value:We}:{kind:"markdown",value:We.value}}(Te.description);Re&&(ve.value+=Re.value)}if(Te.references&&Te.references.length>0&&(ve.value+=` +`&&We++}Re&&ve.length>0&&Ee.push(ve.length),this._lineOffsets=Ee}return this._lineOffsets},Te.prototype.positionAt=function(Ee){Ee=Math.max(Math.min(Ee,this._content.length),0);var ve=this.getLineOffsets(),Re=0,We=ve.length;if(We===0)return H.create(0,Ee);for(;Re<We;){var Be=Math.floor((Re+We)/2);ve[Be]>Ee?We=Be:Re=Be+1}var Le=Re-1;return H.create(Le,Ee-ve[Le])},Te.prototype.offsetAt=function(Ee){var ve=this.getLineOffsets();if(Ee.line>=ve.length)return this._content.length;if(Ee.line<0)return 0;var Re=ve[Ee.line],We=Ee.line+1<ve.length?ve[Ee.line+1]:this._content.length;return Math.max(Math.min(Re+Ee.character,We),Re)},Object.defineProperty(Te.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),Te}();(function(Te){var Ee=Object.prototype.toString;Te.defined=function(ve){return ve!==void 0},Te.undefined=function(ve){return ve===void 0},Te.boolean=function(ve){return ve===!0||ve===!1},Te.string=function(ve){return Ee.call(ve)==="[object String]"},Te.number=function(ve){return Ee.call(ve)==="[object Number]"},Te.func=function(ve){return Ee.call(ve)==="[object Function]"},Te.objectLiteral=function(ve){return ve!==null&&typeof ve=="object"},Te.typedArray=function(ve,Re){return Array.isArray(ve)&&ve.every(Re)}})(wt||(wt={}));var pi,et,Wt,Li,Ii,Ai=function(){function Te(Ee,ve,Re,We){this._uri=Ee,this._languageId=ve,this._version=Re,this._content=We,this._lineOffsets=void 0}return Object.defineProperty(Te.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),Te.prototype.getText=function(Ee){if(Ee){var ve=this.offsetAt(Ee.start),Re=this.offsetAt(Ee.end);return this._content.substring(ve,Re)}return this._content},Te.prototype.update=function(Ee,ve){for(var Re=0,We=Ee;Re<We.length;Re++){var Be=We[Re];if(Te.isIncremental(Be)){var Le=Bi(Be.range),Ke=this.offsetAt(Le.start),dt=this.offsetAt(Le.end);this._content=this._content.substring(0,Ke)+Be.text+this._content.substring(dt,this._content.length);var yt=Math.max(Le.start.line,0),xt=Math.max(Le.end.line,0),Xt=this._lineOffsets,mi=Zi(Be.text,!1,Ke);if(xt-yt===mi.length)for(var Yt=0,oi=mi.length;Yt<oi;Yt++)Xt[Yt+yt+1]=mi[Yt];else mi.length<1e4?Xt.splice.apply(Xt,[yt+1,xt-yt].concat(mi)):this._lineOffsets=Xt=Xt.slice(0,yt+1).concat(mi,Xt.slice(xt+1));var qi=Be.text.length-(dt-Ke);if(qi!==0)for(Yt=yt+1+mi.length,oi=Xt.length;Yt<oi;Yt++)Xt[Yt]=Xt[Yt]+qi}else{if(!Te.isFull(Be))throw new Error("Unknown change event received");this._content=Be.text,this._lineOffsets=void 0}}this._version=ve},Te.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Zi(this._content,!0)),this._lineOffsets},Te.prototype.positionAt=function(Ee){Ee=Math.max(Math.min(Ee,this._content.length),0);var ve=this.getLineOffsets(),Re=0,We=ve.length;if(We===0)return{line:0,character:Ee};for(;Re<We;){var Be=Math.floor((Re+We)/2);ve[Be]>Ee?We=Be:Re=Be+1}var Le=Re-1;return{line:Le,character:Ee-ve[Le]}},Te.prototype.offsetAt=function(Ee){var ve=this.getLineOffsets();if(Ee.line>=ve.length)return this._content.length;if(Ee.line<0)return 0;var Re=ve[Ee.line],We=Ee.line+1<ve.length?ve[Ee.line+1]:this._content.length;return Math.max(Math.min(Re+Ee.character,We),Re)},Object.defineProperty(Te.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),Te.isIncremental=function(Ee){var ve=Ee;return ve!=null&&typeof ve.text=="string"&&ve.range!==void 0&&(ve.rangeLength===void 0||typeof ve.rangeLength=="number")},Te.isFull=function(Ee){var ve=Ee;return ve!=null&&typeof ve.text=="string"&&ve.range===void 0&&ve.rangeLength===void 0},Te}();function Zi(Te,Ee,ve){ve===void 0&&(ve=0);for(var Re=Ee?[ve]:[],We=0;We<Te.length;We++){var Be=Te.charCodeAt(We);Be!==13&&Be!==10||(Be===13&&We+1<Te.length&&Te.charCodeAt(We+1)===10&&We++,Re.push(ve+We+1))}return Re}function Bi(Te){var Ee=Te.start,ve=Te.end;return Ee.line>ve.line||Ee.line===ve.line&&Ee.character>ve.character?{start:ve,end:Ee}:Te}function Lt(Te){var Ee=Bi(Te.range);return Ee!==Te.range?{newText:Te.newText,range:Ee}:Te}(function(Te){Te.create=function(Ee,ve,Re,We){return new Ai(Ee,ve,Re,We)},Te.update=function(Ee,ve,Re){if(Ee instanceof Ai)return Ee.update(ve,Re),Ee;throw new Error("TextDocument.update: document must be created by TextDocument.create")},Te.applyEdits=function(Ee,ve){for(var Re=Ee.getText(),We=0,Be=[],Le=0,Ke=function xt(Xt,mi){if(Xt.length<=1)return Xt;var Yt=Xt.length/2|0,oi=Xt.slice(0,Yt),qi=Xt.slice(Yt);xt(oi,mi),xt(qi,mi);for(var an=0,_n=0,ei=0;an<oi.length&&_n<qi.length;){var ii=mi(oi[an],qi[_n]);Xt[ei++]=ii<=0?oi[an++]:qi[_n++]}for(;an<oi.length;)Xt[ei++]=oi[an++];for(;_n<qi.length;)Xt[ei++]=qi[_n++];return Xt}(ve.map(Lt),function(xt,Xt){var mi=xt.range.start.line-Xt.range.start.line;return mi===0?xt.range.start.character-Xt.range.start.character:mi});Le<Ke.length;Le++){var dt=Ke[Le],yt=Ee.offsetAt(dt.range.start);if(yt<We)throw new Error("Overlapping edit");yt>We&&Be.push(Re.substring(We,yt)),dt.newText.length&&Be.push(dt.newText),We=Ee.offsetAt(dt.range.end)}return Be.push(Re.substr(We)),Be.join("")}})(pi||(pi={})),function(Te){Te[Te.StartCommentTag=0]="StartCommentTag",Te[Te.Comment=1]="Comment",Te[Te.EndCommentTag=2]="EndCommentTag",Te[Te.StartTagOpen=3]="StartTagOpen",Te[Te.StartTagClose=4]="StartTagClose",Te[Te.StartTagSelfClose=5]="StartTagSelfClose",Te[Te.StartTag=6]="StartTag",Te[Te.EndTagOpen=7]="EndTagOpen",Te[Te.EndTagClose=8]="EndTagClose",Te[Te.EndTag=9]="EndTag",Te[Te.DelimiterAssign=10]="DelimiterAssign",Te[Te.AttributeName=11]="AttributeName",Te[Te.AttributeValue=12]="AttributeValue",Te[Te.StartDoctypeTag=13]="StartDoctypeTag",Te[Te.Doctype=14]="Doctype",Te[Te.EndDoctypeTag=15]="EndDoctypeTag",Te[Te.Content=16]="Content",Te[Te.Whitespace=17]="Whitespace",Te[Te.Unknown=18]="Unknown",Te[Te.Script=19]="Script",Te[Te.Styles=20]="Styles",Te[Te.EOS=21]="EOS"}(et||(et={})),function(Te){Te[Te.WithinContent=0]="WithinContent",Te[Te.AfterOpeningStartTag=1]="AfterOpeningStartTag",Te[Te.AfterOpeningEndTag=2]="AfterOpeningEndTag",Te[Te.WithinDoctype=3]="WithinDoctype",Te[Te.WithinTag=4]="WithinTag",Te[Te.WithinEndTag=5]="WithinEndTag",Te[Te.WithinComment=6]="WithinComment",Te[Te.WithinScriptContent=7]="WithinScriptContent",Te[Te.WithinStyleContent=8]="WithinStyleContent",Te[Te.AfterAttributeName=9]="AfterAttributeName",Te[Te.BeforeAttributeValue=10]="BeforeAttributeValue"}(Wt||(Wt={})),(Li||(Li={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Y.Markdown,Y.PlainText]}},hover:{contentFormat:[Y.Markdown,Y.PlainText]}}},function(Te){Te[Te.Unknown=0]="Unknown",Te[Te.File=1]="File",Te[Te.Directory=2]="Directory",Te[Te.SymbolicLink=64]="SymbolicLink"}(Ii||(Ii={}));var Oi=O(),gt=function(){function Te(Ee,ve){this.source=Ee,this.len=Ee.length,this.position=ve}return Te.prototype.eos=function(){return this.len<=this.position},Te.prototype.getSource=function(){return this.source},Te.prototype.pos=function(){return this.position},Te.prototype.goBackTo=function(Ee){this.position=Ee},Te.prototype.goBack=function(Ee){this.position-=Ee},Te.prototype.advance=function(Ee){this.position+=Ee},Te.prototype.goToEnd=function(){this.position=this.source.length},Te.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},Te.prototype.peekChar=function(Ee){return Ee===void 0&&(Ee=0),this.source.charCodeAt(this.position+Ee)||0},Te.prototype.advanceIfChar=function(Ee){return Ee===this.source.charCodeAt(this.position)&&(this.position++,!0)},Te.prototype.advanceIfChars=function(Ee){var ve;if(this.position+Ee.length>this.source.length)return!1;for(ve=0;ve<Ee.length;ve++)if(this.source.charCodeAt(this.position+ve)!==Ee[ve])return!1;return this.advance(ve),!0},Te.prototype.advanceIfRegExp=function(Ee){var ve=this.source.substr(this.position).match(Ee);return ve?(this.position=this.position+ve.index+ve[0].length,ve[0]):""},Te.prototype.advanceUntilRegExp=function(Ee){var ve=this.source.substr(this.position).match(Ee);return ve?(this.position=this.position+ve.index,ve[0]):(this.goToEnd(),"")},Te.prototype.advanceUntilChar=function(Ee){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===Ee)return!0;this.advance(1)}return!1},Te.prototype.advanceUntilChars=function(Ee){for(;this.position+Ee.length<=this.source.length;){for(var ve=0;ve<Ee.length&&this.source.charCodeAt(this.position+ve)===Ee[ve];ve++);if(ve===Ee.length)return!0;this.advance(1)}return this.goToEnd(),!1},Te.prototype.skipWhitespace=function(){return this.advanceWhileChar(function(Ee){return Ee===ki||Ee===Ri||Ee===ri||Ee===gi||Ee===li})>0},Te.prototype.advanceWhileChar=function(Ee){for(var ve=this.position;this.position<this.len&&Ee(this.source.charCodeAt(this.position));)this.position++;return this.position-ve},Te}(),vi="!".charCodeAt(0),Rt="-".charCodeAt(0),vt="<".charCodeAt(0),Ue=">".charCodeAt(0),ut="/".charCodeAt(0),ze="=".charCodeAt(0),st='"'.charCodeAt(0),_t="'".charCodeAt(0),ri=` +`.charCodeAt(0),li="\r".charCodeAt(0),gi="\f".charCodeAt(0),ki=" ".charCodeAt(0),Ri=" ".charCodeAt(0),$i={"text/x-handlebars-template":!0};function Hi(Te,Ee,ve,Re){Ee===void 0&&(Ee=0),ve===void 0&&(ve=Wt.WithinContent),Re===void 0&&(Re=!1);var We,Be,Le,Ke,dt,yt=new gt(Te,Ee),xt=ve,Xt=0,mi=et.Unknown;function Yt(){return yt.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function oi(qi,an,_n){return mi=an,Xt=qi,We=_n,an}return{scan:function(){var qi=yt.pos(),an=xt,_n=function ei(){var ii,bi=yt.pos();if(yt.eos())return oi(bi,et.EOS);switch(xt){case Wt.WithinComment:return yt.advanceIfChars([Rt,Rt,Ue])?(xt=Wt.WithinContent,oi(bi,et.EndCommentTag)):(yt.advanceUntilChars([Rt,Rt,Ue]),oi(bi,et.Comment));case Wt.WithinDoctype:return yt.advanceIfChar(Ue)?(xt=Wt.WithinContent,oi(bi,et.EndDoctypeTag)):(yt.advanceUntilChar(Ue),oi(bi,et.Doctype));case Wt.WithinContent:if(yt.advanceIfChar(vt)){if(!yt.eos()&&yt.peekChar()===vi){if(yt.advanceIfChars([vi,Rt,Rt]))return xt=Wt.WithinComment,oi(bi,et.StartCommentTag);if(yt.advanceIfRegExp(/^!doctype/i))return xt=Wt.WithinDoctype,oi(bi,et.StartDoctypeTag)}return yt.advanceIfChar(ut)?(xt=Wt.AfterOpeningEndTag,oi(bi,et.EndTagOpen)):(xt=Wt.AfterOpeningStartTag,oi(bi,et.StartTagOpen))}return yt.advanceUntilChar(vt),oi(bi,et.Content);case Wt.AfterOpeningEndTag:return Yt().length>0?(xt=Wt.WithinEndTag,oi(bi,et.EndTag)):yt.skipWhitespace()?oi(bi,et.Whitespace,Oi("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(xt=Wt.WithinEndTag,yt.advanceUntilChar(Ue),bi<yt.pos()?oi(bi,et.Unknown,Oi("error.endTagNameExpected","End tag name expected.")):ei());case Wt.WithinEndTag:if(yt.skipWhitespace())return oi(bi,et.Whitespace);if(yt.advanceIfChar(Ue))return xt=Wt.WithinContent,oi(bi,et.EndTagClose);if(Re&&yt.peekChar()===vt)return xt=Wt.WithinContent,oi(bi,et.EndTagClose,Oi("error.closingBracketMissing","Closing bracket missing."));ii=Oi("error.closingBracketExpected","Closing bracket expected.");break;case Wt.AfterOpeningStartTag:return Le=Yt(),dt=void 0,Ke=void 0,Le.length>0?(Be=!1,xt=Wt.WithinTag,oi(bi,et.StartTag)):yt.skipWhitespace()?oi(bi,et.Whitespace,Oi("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(xt=Wt.WithinTag,yt.advanceUntilChar(Ue),bi<yt.pos()?oi(bi,et.Unknown,Oi("error.startTagNameExpected","Start tag name expected.")):ei());case Wt.WithinTag:return yt.skipWhitespace()?(Be=!0,oi(bi,et.Whitespace)):Be&&(Ke=yt.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()).length>0?(xt=Wt.AfterAttributeName,Be=!1,oi(bi,et.AttributeName)):yt.advanceIfChars([ut,Ue])?(xt=Wt.WithinContent,oi(bi,et.StartTagSelfClose)):yt.advanceIfChar(Ue)?(xt=Le==="script"?dt&&$i[dt]?Wt.WithinContent:Wt.WithinScriptContent:Le==="style"?Wt.WithinStyleContent:Wt.WithinContent,oi(bi,et.StartTagClose)):Re&&yt.peekChar()===vt?(xt=Wt.WithinContent,oi(bi,et.StartTagClose,Oi("error.closingBracketMissing","Closing bracket missing."))):(yt.advance(1),oi(bi,et.Unknown,Oi("error.unexpectedCharacterInTag","Unexpected character in tag.")));case Wt.AfterAttributeName:return yt.skipWhitespace()?(Be=!0,oi(bi,et.Whitespace)):yt.advanceIfChar(ze)?(xt=Wt.BeforeAttributeValue,oi(bi,et.DelimiterAssign)):(xt=Wt.WithinTag,ei());case Wt.BeforeAttributeValue:if(yt.skipWhitespace())return oi(bi,et.Whitespace);var ln=yt.advanceIfRegExp(/^[^\s"'`=<>]+/);if(ln.length>0)return yt.peekChar()===Ue&&yt.peekChar(-1)===ut&&(yt.goBack(1),ln=ln.substr(0,ln.length-1)),Ke==="type"&&(dt=ln),xt=Wt.WithinTag,Be=!1,oi(bi,et.AttributeValue);var mn=yt.peekChar();return mn===_t||mn===st?(yt.advance(1),yt.advanceUntilChar(mn)&&yt.advance(1),Ke==="type"&&(dt=yt.getSource().substring(bi+1,yt.pos()-1)),xt=Wt.WithinTag,Be=!1,oi(bi,et.AttributeValue)):(xt=Wt.WithinTag,Be=!1,ei());case Wt.WithinScriptContent:for(var sn=1;!yt.eos();){var gn=yt.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(gn.length===0)return yt.goToEnd(),oi(bi,et.Script);if(gn==="<!--")sn===1&&(sn=2);else if(gn==="-->")sn=1;else if(gn[1]!=="/")sn===2&&(sn=3);else{if(sn!==3){yt.goBack(gn.length);break}sn=2}}return xt=Wt.WithinContent,bi<yt.pos()?oi(bi,et.Script):ei();case Wt.WithinStyleContent:return yt.advanceUntilRegExp(/<\/style/i),xt=Wt.WithinContent,bi<yt.pos()?oi(bi,et.Styles):ei()}return yt.advance(1),xt=Wt.WithinContent,oi(bi,et.Unknown,ii)}();return _n===et.EOS||qi!==yt.pos()||Re&&(_n===et.StartTagClose||_n===et.EndTagClose)?_n:(console.log("Scanner.scan has not advanced at offset "+qi+", state before: "+an+" after: "+xt),yt.advance(1),oi(qi,et.Unknown))},getTokenType:function(){return mi},getTokenOffset:function(){return Xt},getTokenLength:function(){return yt.pos()-Xt},getTokenEnd:function(){return yt.pos()},getTokenText:function(){return yt.getSource().substring(Xt,yt.pos())},getScannerState:function(){return xt},getTokenError:function(){return We}}}function yi(Te,Ee){var ve=0,Re=Te.length;if(Re===0)return 0;for(;ve<Re;){var We=Math.floor((ve+Re)/2);Ee(Te[We])?Re=We:ve=We+1}return ve}var kt=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Et(Te){return!!Te&&function(Ee,ve,Re){for(var We=0,Be=Ee.length-1;We<=Be;){var Le=(We+Be)/2|0,Ke=Re(Ee[Le],ve);if(Ke<0)We=Le+1;else{if(!(Ke>0))return Le;Be=Le-1}}return-(We+1)}(kt,Te.toLowerCase(),function(Ee,ve){return Ee.localeCompare(ve)})>=0}var si=function(){function Te(Ee,ve,Re,We){this.start=Ee,this.end=ve,this.children=Re,this.parent=We,this.closed=!1}return Object.defineProperty(Te.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),Te.prototype.isSameTag=function(Ee){return this.tag===void 0?Ee===void 0:Ee!==void 0&&this.tag.length===Ee.length&&this.tag.toLowerCase()===Ee},Object.defineProperty(Te.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),Te.prototype.findNodeBefore=function(Ee){var ve=yi(this.children,function(Be){return Ee<=Be.start})-1;if(ve>=0){var Re=this.children[ve];if(Ee>Re.start){if(Ee<Re.end)return Re.findNodeBefore(Ee);var We=Re.lastChild;return We&&We.end===Re.end?Re.findNodeBefore(Ee):Re}}return this},Te.prototype.findNodeAt=function(Ee){var ve=yi(this.children,function(We){return Ee<=We.start})-1;if(ve>=0){var Re=this.children[ve];if(Ee>Re.start&&Ee<=Re.end)return Re.findNodeAt(Ee)}return this},Te}();function Si(Te){for(var Ee=Hi(Te,void 0,void 0,!0),ve=new si(0,Te.length,[],void 0),Re=ve,We=-1,Be=void 0,Le=null,Ke=Ee.scan();Ke!==et.EOS;){switch(Ke){case et.StartTagOpen:var dt=new si(Ee.getTokenOffset(),Te.length,[],Re);Re.children.push(dt),Re=dt;break;case et.StartTag:Re.tag=Ee.getTokenText();break;case et.StartTagClose:Re.parent&&(Re.end=Ee.getTokenEnd(),Ee.getTokenLength()?(Re.startTagEnd=Ee.getTokenEnd(),Re.tag&&Et(Re.tag)&&(Re.closed=!0,Re=Re.parent)):Re=Re.parent);break;case et.StartTagSelfClose:Re.parent&&(Re.closed=!0,Re.end=Ee.getTokenEnd(),Re.startTagEnd=Ee.getTokenEnd(),Re=Re.parent);break;case et.EndTagOpen:We=Ee.getTokenOffset(),Be=void 0;break;case et.EndTag:Be=Ee.getTokenText().toLowerCase();break;case et.EndTagClose:for(var yt=Re;!yt.isSameTag(Be)&&yt.parent;)yt=yt.parent;if(yt.parent){for(;Re!==yt;)Re.end=We,Re.closed=!1,Re=Re.parent;Re.closed=!0,Re.endTagStart=We,Re.end=Ee.getTokenEnd(),Re=Re.parent}break;case et.AttributeName:Le=Ee.getTokenText(),(xt=Re.attributes)||(Re.attributes=xt={}),xt[Le]=null;break;case et.AttributeValue:var xt,Xt=Ee.getTokenText();(xt=Re.attributes)&&Le&&(xt[Le]=Xt,Le=null)}Ke=Ee.scan()}for(;Re.parent;)Re.end=Te.length,Re.closed=!1,Re=Re.parent;return{roots:ve.children,findNodeBefore:ve.findNodeBefore.bind(ve),findNodeAt:ve.findNodeAt.bind(ve)}}var Pi={"Aacute;":"\xC1",Aacute:"\xC1","aacute;":"\xE1",aacute:"\xE1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223E","acd;":"\u223F","acE;":"\u223E\u0333","Acirc;":"\xC2",Acirc:"\xC2","acirc;":"\xE2",acirc:"\xE2","acute;":"\xB4",acute:"\xB4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xC6",AElig:"\xC6","aelig;":"\xE6",aelig:"\xE6","af;":"\u2061","Afr;":"\u{1D504}","afr;":"\u{1D51E}","Agrave;":"\xC0",Agrave:"\xC0","agrave;":"\xE0",agrave:"\xE0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2A53","and;":"\u2227","andand;":"\u2A55","andd;":"\u2A5C","andslope;":"\u2A58","andv;":"\u2A5A","ang;":"\u2220","ange;":"\u29A4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angrt;":"\u221F","angrtvb;":"\u22BE","angrtvbd;":"\u299D","angsph;":"\u2222","angst;":"\xC5","angzarr;":"\u237C","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\u{1D538}","aopf;":"\u{1D552}","ap;":"\u2248","apacir;":"\u2A6F","apE;":"\u2A70","ape;":"\u224A","apid;":"\u224B","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224A","Aring;":"\xC5",Aring:"\xC5","aring;":"\xE5",aring:"\xE5","Ascr;":"\u{1D49C}","ascr;":"\u{1D4B6}","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224D","Atilde;":"\xC3",Atilde:"\xC3","atilde;":"\xE3",atilde:"\xE3","Auml;":"\xC4",Auml:"\xC4","auml;":"\xE4",auml:"\xE4","awconint;":"\u2233","awint;":"\u2A11","backcong;":"\u224C","backepsilon;":"\u03F6","backprime;":"\u2035","backsim;":"\u223D","backsimeq;":"\u22CD","Backslash;":"\u2216","Barv;":"\u2AE7","barvee;":"\u22BD","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23B5","bbrktbrk;":"\u23B6","bcong;":"\u224C","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201E","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29B0","bepsi;":"\u03F6","bernou;":"\u212C","Bernoullis;":"\u212C","Beta;":"\u0392","beta;":"\u03B2","beth;":"\u2136","between;":"\u226C","Bfr;":"\u{1D505}","bfr;":"\u{1D51F}","bigcap;":"\u22C2","bigcirc;":"\u25EF","bigcup;":"\u22C3","bigodot;":"\u2A00","bigoplus;":"\u2A01","bigotimes;":"\u2A02","bigsqcup;":"\u2A06","bigstar;":"\u2605","bigtriangledown;":"\u25BD","bigtriangleup;":"\u25B3","biguplus;":"\u2A04","bigvee;":"\u22C1","bigwedge;":"\u22C0","bkarow;":"\u290D","blacklozenge;":"\u29EB","blacksquare;":"\u25AA","blacktriangle;":"\u25B4","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","blacktriangleright;":"\u25B8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20E5","bnequiv;":"\u2261\u20E5","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\u{1D539}","bopf;":"\u{1D553}","bot;":"\u22A5","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250C","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252C","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229F","boxplus;":"\u229E","boxtimes;":"\u22A0","boxUL;":"\u255D","boxUl;":"\u255C","boxuL;":"\u255B","boxul;":"\u2518","boxUR;":"\u255A","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256C","boxVh;":"\u256B","boxvH;":"\u256A","boxvh;":"\u253C","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255F","boxvR;":"\u255E","boxvr;":"\u251C","bprime;":"\u2035","Breve;":"\u02D8","breve;":"\u02D8","brvbar;":"\xA6",brvbar:"\xA6","Bscr;":"\u212C","bscr;":"\u{1D4B7}","bsemi;":"\u204F","bsim;":"\u223D","bsime;":"\u22CD","bsol;":"\\","bsolb;":"\u29C5","bsolhsub;":"\u27C8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224E","bumpE;":"\u2AAE","bumpe;":"\u224F","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22D2","cap;":"\u2229","capand;":"\u2A44","capbrcup;":"\u2A49","capcap;":"\u2A4B","capcup;":"\u2A47","capdot;":"\u2A40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\uFE00","caret;":"\u2041","caron;":"\u02C7","Cayleys;":"\u212D","ccaps;":"\u2A4D","Ccaron;":"\u010C","ccaron;":"\u010D","Ccedil;":"\xC7",Ccedil:"\xC7","ccedil;":"\xE7",ccedil:"\xE7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2A4C","ccupssm;":"\u2A50","Cdot;":"\u010A","cdot;":"\u010B","cedil;":"\xB8",cedil:"\xB8","Cedilla;":"\xB8","cemptyv;":"\u29B2","cent;":"\xA2",cent:"\xA2","CenterDot;":"\xB7","centerdot;":"\xB7","Cfr;":"\u212D","cfr;":"\u{1D520}","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03A7","chi;":"\u03C7","cir;":"\u25CB","circ;":"\u02C6","circeq;":"\u2257","circlearrowleft;":"\u21BA","circlearrowright;":"\u21BB","circledast;":"\u229B","circledcirc;":"\u229A","circleddash;":"\u229D","CircleDot;":"\u2299","circledR;":"\xAE","circledS;":"\u24C8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29C3","cire;":"\u2257","cirfnint;":"\u2A10","cirmid;":"\u2AEF","cirscir;":"\u29C2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201D","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2A74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2A6D","Congruent;":"\u2261","Conint;":"\u222F","conint;":"\u222E","ContourIntegral;":"\u222E","Copf;":"\u2102","copf;":"\u{1D554}","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xA9",COPY:"\xA9","copy;":"\xA9",copy:"\xA9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21B5","Cross;":"\u2A2F","cross;":"\u2717","Cscr;":"\u{1D49E}","cscr;":"\u{1D4B8}","csub;":"\u2ACF","csube;":"\u2AD1","csup;":"\u2AD0","csupe;":"\u2AD2","ctdot;":"\u22EF","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22DE","cuesc;":"\u22DF","cularr;":"\u21B6","cularrp;":"\u293D","Cup;":"\u22D3","cup;":"\u222A","cupbrcap;":"\u2A48","CupCap;":"\u224D","cupcap;":"\u2A46","cupcup;":"\u2A4A","cupdot;":"\u228D","cupor;":"\u2A45","cups;":"\u222A\uFE00","curarr;":"\u21B7","curarrm;":"\u293C","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","curlyvee;":"\u22CE","curlywedge;":"\u22CF","curren;":"\xA4",curren:"\xA4","curvearrowleft;":"\u21B6","curvearrowright;":"\u21B7","cuvee;":"\u22CE","cuwed;":"\u22CF","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232D","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21A1","dArr;":"\u21D3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2AE4","dashv;":"\u22A3","dbkarow;":"\u290F","dblac;":"\u02DD","Dcaron;":"\u010E","dcaron;":"\u010F","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21CA","DDotrahd;":"\u2911","ddotseq;":"\u2A77","deg;":"\xB0",deg:"\xB0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03B4","demptyv;":"\u29B1","dfisht;":"\u297F","Dfr;":"\u{1D507}","dfr;":"\u{1D521}","dHar;":"\u2965","dharl;":"\u21C3","dharr;":"\u21C2","DiacriticalAcute;":"\xB4","DiacriticalDot;":"\u02D9","DiacriticalDoubleAcute;":"\u02DD","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02DC","diam;":"\u22C4","Diamond;":"\u22C4","diamond;":"\u22C4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xA8","DifferentialD;":"\u2146","digamma;":"\u03DD","disin;":"\u22F2","div;":"\xF7","divide;":"\xF7",divide:"\xF7","divideontimes;":"\u22C7","divonx;":"\u22C7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"$","Dopf;":"\u{1D53B}","dopf;":"\u{1D555}","Dot;":"\xA8","dot;":"\u02D9","DotDot;":"\u20DC","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22A1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222F","DoubleDot;":"\xA8","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","DoubleLeftRightArrow;":"\u21D4","DoubleLeftTee;":"\u2AE4","DoubleLongLeftArrow;":"\u27F8","DoubleLongLeftRightArrow;":"\u27FA","DoubleLongRightArrow;":"\u27F9","DoubleRightArrow;":"\u21D2","DoubleRightTee;":"\u22A8","DoubleUpArrow;":"\u21D1","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21D3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21F5","DownBreve;":"\u0311","downdownarrows;":"\u21CA","downharpoonleft;":"\u21C3","downharpoonright;":"\u21C2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295E","DownLeftVector;":"\u21BD","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295F","DownRightVector;":"\u21C1","DownRightVectorBar;":"\u2957","DownTee;":"\u22A4","DownTeeArrow;":"\u21A7","drbkarow;":"\u2910","drcorn;":"\u231F","drcrop;":"\u230C","Dscr;":"\u{1D49F}","dscr;":"\u{1D4B9}","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22F1","dtri;":"\u25BF","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F","dwangle;":"\u29A6","DZcy;":"\u040F","dzcy;":"\u045F","dzigrarr;":"\u27FF","Eacute;":"\xC9",Eacute:"\xC9","eacute;":"\xE9",eacute:"\xE9","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecir;":"\u2256","Ecirc;":"\xCA",Ecirc:"\xCA","ecirc;":"\xEA",ecirc:"\xEA","ecolon;":"\u2255","Ecy;":"\u042D","ecy;":"\u044D","eDDot;":"\u2A77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\u{1D508}","efr;":"\u{1D522}","eg;":"\u2A9A","Egrave;":"\xC8",Egrave:"\xC8","egrave;":"\xE8",egrave:"\xE8","egs;":"\u2A96","egsdot;":"\u2A98","el;":"\u2A99","Element;":"\u2208","elinters;":"\u23E7","ell;":"\u2113","els;":"\u2A95","elsdot;":"\u2A97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25FB","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25AB","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014A","eng;":"\u014B","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\u{1D53C}","eopf;":"\u{1D556}","epar;":"\u22D5","eparsl;":"\u29E3","eplus;":"\u2A71","epsi;":"\u03B5","Epsilon;":"\u0395","epsilon;":"\u03B5","epsiv;":"\u03F5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2A96","eqslantless;":"\u2A95","Equal;":"\u2A75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225F","Equilibrium;":"\u21CC","equiv;":"\u2261","equivDD;":"\u2A78","eqvparsl;":"\u29E5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212F","esdot;":"\u2250","Esim;":"\u2A73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\xD0",ETH:"\xD0","eth;":"\xF0",eth:"\xF0","Euml;":"\xCB",Euml:"\xCB","euml;":"\xEB",euml:"\xEB","euro;":"\u20AC","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\uFB03","fflig;":"\uFB00","ffllig;":"\uFB04","Ffr;":"\u{1D509}","ffr;":"\u{1D523}","filig;":"\uFB01","FilledSmallSquare;":"\u25FC","FilledVerySmallSquare;":"\u25AA","fjlig;":"fj","flat;":"\u266D","fllig;":"\uFB02","fltns;":"\u25B1","fnof;":"\u0192","Fopf;":"\u{1D53D}","fopf;":"\u{1D557}","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22D4","forkv;":"\u2AD9","Fouriertrf;":"\u2131","fpartint;":"\u2A0D","frac12;":"\xBD",frac12:"\xBD","frac13;":"\u2153","frac14;":"\xBC",frac14:"\xBC","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xBE",frac34:"\xBE","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\u{1D4BB}","gacute;":"\u01F5","Gamma;":"\u0393","gamma;":"\u03B3","Gammad;":"\u03DC","gammad;":"\u03DD","gap;":"\u2A86","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","Gcirc;":"\u011C","gcirc;":"\u011D","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2A7E","ges;":"\u2A7E","gescc;":"\u2AA9","gesdot;":"\u2A80","gesdoto;":"\u2A82","gesdotol;":"\u2A84","gesl;":"\u22DB\uFE00","gesles;":"\u2A94","Gfr;":"\u{1D50A}","gfr;":"\u{1D524}","Gg;":"\u22D9","gg;":"\u226B","ggg;":"\u22D9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2AA5","glE;":"\u2A92","glj;":"\u2AA4","gnap;":"\u2A8A","gnapprox;":"\u2A8A","gnE;":"\u2269","gne;":"\u2A88","gneq;":"\u2A88","gneqq;":"\u2269","gnsim;":"\u22E7","Gopf;":"\u{1D53E}","gopf;":"\u{1D558}","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2AA2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2A7E","GreaterTilde;":"\u2273","Gscr;":"\u{1D4A2}","gscr;":"\u210A","gsim;":"\u2273","gsime;":"\u2A8E","gsiml;":"\u2A90","GT;":">",GT:">","Gt;":"\u226B","gt;":">",gt:">","gtcc;":"\u2AA7","gtcir;":"\u2A7A","gtdot;":"\u22D7","gtlPar;":"\u2995","gtquest;":"\u2A7C","gtrapprox;":"\u2A86","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtreqless;":"\u22DB","gtreqqless;":"\u2A8C","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\uFE00","gvnE;":"\u2269\uFE00","Hacek;":"\u02C7","hairsp;":"\u200A","half;":"\xBD","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","hArr;":"\u21D4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21AD","Hat;":"^","hbar;":"\u210F","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22B9","Hfr;":"\u210C","hfr;":"\u{1D525}","HilbertSpace;":"\u210B","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21FF","homtht;":"\u223B","hookleftarrow;":"\u21A9","hookrightarrow;":"\u21AA","Hopf;":"\u210D","hopf;":"\u{1D559}","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210B","hscr;":"\u{1D4BD}","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224E","HumpEqual;":"\u224F","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xCD",Iacute:"\xCD","iacute;":"\xED",iacute:"\xED","ic;":"\u2063","Icirc;":"\xCE",Icirc:"\xCE","icirc;":"\xEE",icirc:"\xEE","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xA1",iexcl:"\xA1","iff;":"\u21D4","Ifr;":"\u2111","ifr;":"\u{1D526}","Igrave;":"\xCC",Igrave:"\xCC","igrave;":"\xEC",igrave:"\xEC","ii;":"\u2148","iiiint;":"\u2A0C","iiint;":"\u222D","iinfin;":"\u29DC","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012A","imacr;":"\u012B","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22B7","imped;":"\u01B5","Implies;":"\u21D2","in;":"\u2208","incare;":"\u2105","infin;":"\u221E","infintie;":"\u29DD","inodot;":"\u0131","Int;":"\u222C","int;":"\u222B","intcal;":"\u22BA","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","Intersection;":"\u22C2","intlarhk;":"\u2A17","intprod;":"\u2A3C","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012E","iogon;":"\u012F","Iopf;":"\u{1D540}","iopf;":"\u{1D55A}","Iota;":"\u0399","iota;":"\u03B9","iprod;":"\u2A3C","iquest;":"\xBF",iquest:"\xBF","Iscr;":"\u2110","iscr;":"\u{1D4BE}","isin;":"\u2208","isindot;":"\u22F5","isinE;":"\u22F9","isins;":"\u22F4","isinsv;":"\u22F3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xCF",Iuml:"\xCF","iuml;":"\xEF",iuml:"\xEF","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\u{1D50D}","jfr;":"\u{1D527}","jmath;":"\u0237","Jopf;":"\u{1D541}","jopf;":"\u{1D55B}","Jscr;":"\u{1D4A5}","jscr;":"\u{1D4BF}","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039A","kappa;":"\u03BA","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\u{1D50E}","kfr;":"\u{1D528}","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\u{1D542}","kopf;":"\u{1D55C}","Kscr;":"\u{1D4A6}","kscr;":"\u{1D4C0}","lAarr;":"\u21DA","Lacute;":"\u0139","lacute;":"\u013A","laemptyv;":"\u29B4","lagran;":"\u2112","Lambda;":"\u039B","lambda;":"\u03BB","Lang;":"\u27EA","lang;":"\u27E8","langd;":"\u2991","langle;":"\u27E8","lap;":"\u2A85","Laplacetrf;":"\u2112","laquo;":"\xAB",laquo:"\xAB","Larr;":"\u219E","lArr;":"\u21D0","larr;":"\u2190","larrb;":"\u21E4","larrbfs;":"\u291F","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21A2","lat;":"\u2AAB","lAtail;":"\u291B","latail;":"\u2919","late;":"\u2AAD","lates;":"\u2AAD\uFE00","lBarr;":"\u290E","lbarr;":"\u290C","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298B","lbrksld;":"\u298F","lbrkslu;":"\u298D","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041B","lcy;":"\u043B","ldca;":"\u2936","ldquo;":"\u201C","ldquor;":"\u201E","ldrdhar;":"\u2967","ldrushar;":"\u294B","ldsh;":"\u21B2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27E8","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","leftarrow;":"\u2190","LeftArrowBar;":"\u21E4","LeftArrowRightArrow;":"\u21C6","leftarrowtail;":"\u21A2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21C3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230A","leftharpoondown;":"\u21BD","leftharpoonup;":"\u21BC","leftleftarrows;":"\u21C7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21C6","leftrightharpoons;":"\u21CB","leftrightsquigarrow;":"\u21AD","LeftRightVector;":"\u294E","LeftTee;":"\u22A3","LeftTeeArrow;":"\u21A4","LeftTeeVector;":"\u295A","leftthreetimes;":"\u22CB","LeftTriangle;":"\u22B2","LeftTriangleBar;":"\u29CF","LeftTriangleEqual;":"\u22B4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21BF","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21BC","LeftVectorBar;":"\u2952","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2A7D","les;":"\u2A7D","lescc;":"\u2AA8","lesdot;":"\u2A7F","lesdoto;":"\u2A81","lesdotor;":"\u2A83","lesg;":"\u22DA\uFE00","lesges;":"\u2A93","lessapprox;":"\u2A85","lessdot;":"\u22D6","lesseqgtr;":"\u22DA","lesseqqgtr;":"\u2A8B","LessEqualGreater;":"\u22DA","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2AA1","lesssim;":"\u2272","LessSlantEqual;":"\u2A7D","LessTilde;":"\u2272","lfisht;":"\u297C","lfloor;":"\u230A","Lfr;":"\u{1D50F}","lfr;":"\u{1D529}","lg;":"\u2276","lgE;":"\u2A91","lHar;":"\u2962","lhard;":"\u21BD","lharu;":"\u21BC","lharul;":"\u296A","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22D8","ll;":"\u226A","llarr;":"\u21C7","llcorner;":"\u231E","Lleftarrow;":"\u21DA","llhard;":"\u296B","lltri;":"\u25FA","Lmidot;":"\u013F","lmidot;":"\u0140","lmoust;":"\u23B0","lmoustache;":"\u23B0","lnap;":"\u2A89","lnapprox;":"\u2A89","lnE;":"\u2268","lne;":"\u2A87","lneq;":"\u2A87","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftarrow;":"\u27F5","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longleftrightarrow;":"\u27F7","longmapsto;":"\u27FC","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","longrightarrow;":"\u27F6","looparrowleft;":"\u21AB","looparrowright;":"\u21AC","lopar;":"\u2985","Lopf;":"\u{1D543}","lopf;":"\u{1D55D}","loplus;":"\u2A2D","lotimes;":"\u2A34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25CA","lozenge;":"\u25CA","lozf;":"\u29EB","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21C6","lrcorner;":"\u231F","lrhar;":"\u21CB","lrhard;":"\u296D","lrm;":"\u200E","lrtri;":"\u22BF","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\u{1D4C1}","Lsh;":"\u21B0","lsh;":"\u21B0","lsim;":"\u2272","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226A","lt;":"<",lt:"<","ltcc;":"\u2AA6","ltcir;":"\u2A79","ltdot;":"\u22D6","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltquest;":"\u2A7B","ltri;":"\u25C3","ltrie;":"\u22B4","ltrif;":"\u25C2","ltrPar;":"\u2996","lurdshar;":"\u294A","luruhar;":"\u2966","lvertneqq;":"\u2268\uFE00","lvnE;":"\u2268\uFE00","macr;":"\xAF",macr:"\xAF","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21A6","mapsto;":"\u21A6","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","mapstoup;":"\u21A5","marker;":"\u25AE","mcomma;":"\u2A29","Mcy;":"\u041C","mcy;":"\u043C","mdash;":"\u2014","mDDot;":"\u223A","measuredangle;":"\u2221","MediumSpace;":"\u205F","Mellintrf;":"\u2133","Mfr;":"\u{1D510}","mfr;":"\u{1D52A}","mho;":"\u2127","micro;":"\xB5",micro:"\xB5","mid;":"\u2223","midast;":"*","midcir;":"\u2AF0","middot;":"\xB7",middot:"\xB7","minus;":"\u2212","minusb;":"\u229F","minusd;":"\u2238","minusdu;":"\u2A2A","MinusPlus;":"\u2213","mlcp;":"\u2ADB","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22A7","Mopf;":"\u{1D544}","mopf;":"\u{1D55E}","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\u{1D4C2}","mstpos;":"\u223E","Mu;":"\u039C","mu;":"\u03BC","multimap;":"\u22B8","mumap;":"\u22B8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20D2","nap;":"\u2249","napE;":"\u2A70\u0338","napid;":"\u224B\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266E","natural;":"\u266E","naturals;":"\u2115","nbsp;":"\xA0",nbsp:"\xA0","nbump;":"\u224E\u0338","nbumpe;":"\u224F\u0338","ncap;":"\u2A43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2A6D\u0338","ncup;":"\u2A42","Ncy;":"\u041D","ncy;":"\u043D","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21D7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200B","NegativeThickSpace;":"\u200B","NegativeThinSpace;":"\u200B","NegativeVeryThinSpace;":"\u200B","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226B","NestedLessLess;":"\u226A","NewLine;":` +`,"nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\u{1D511}","nfr;":"\u{1D52B}","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2A7E\u0338","nges;":"\u2A7E\u0338","nGg;":"\u22D9\u0338","ngsim;":"\u2275","nGt;":"\u226B\u20D2","ngt;":"\u226F","ngtr;":"\u226F","nGtv;":"\u226B\u0338","nhArr;":"\u21CE","nharr;":"\u21AE","nhpar;":"\u2AF2","ni;":"\u220B","nis;":"\u22FC","nisd;":"\u22FA","niv;":"\u220B","NJcy;":"\u040A","njcy;":"\u045A","nlArr;":"\u21CD","nlarr;":"\u219A","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21CD","nleftarrow;":"\u219A","nLeftrightarrow;":"\u21CE","nleftrightarrow;":"\u21AE","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2A7D\u0338","nles;":"\u2A7D\u0338","nless;":"\u226E","nLl;":"\u22D8\u0338","nlsim;":"\u2274","nLt;":"\u226A\u20D2","nlt;":"\u226E","nltri;":"\u22EA","nltrie;":"\u22EC","nLtv;":"\u226A\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xA0","Nopf;":"\u2115","nopf;":"\u{1D55F}","Not;":"\u2AEC","not;":"\xAC",not:"\xAC","NotCongruent;":"\u2262","NotCupCap;":"\u226D","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226F","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226B\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2A7E\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224E\u0338","NotHumpEqual;":"\u224F\u0338","notin;":"\u2209","notindot;":"\u22F5\u0338","notinE;":"\u22F9\u0338","notinva;":"\u2209","notinvb;":"\u22F7","notinvc;":"\u22F6","NotLeftTriangle;":"\u22EA","NotLeftTriangleBar;":"\u29CF\u0338","NotLeftTriangleEqual;":"\u22EC","NotLess;":"\u226E","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226A\u0338","NotLessSlantEqual;":"\u2A7D\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2AA2\u0338","NotNestedLessLess;":"\u2AA1\u0338","notni;":"\u220C","notniva;":"\u220C","notnivb;":"\u22FE","notnivc;":"\u22FD","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2AAF\u0338","NotPrecedesSlantEqual;":"\u22E0","NotReverseElement;":"\u220C","NotRightTriangle;":"\u22EB","NotRightTriangleBar;":"\u29D0\u0338","NotRightTriangleEqual;":"\u22ED","NotSquareSubset;":"\u228F\u0338","NotSquareSubsetEqual;":"\u22E2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22E3","NotSubset;":"\u2282\u20D2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2AB0\u0338","NotSucceedsSlantEqual;":"\u22E1","NotSucceedsTilde;":"\u227F\u0338","NotSuperset;":"\u2283\u20D2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2AFD\u20E5","npart;":"\u2202\u0338","npolint;":"\u2A14","npr;":"\u2280","nprcue;":"\u22E0","npre;":"\u2AAF\u0338","nprec;":"\u2280","npreceq;":"\u2AAF\u0338","nrArr;":"\u21CF","nrarr;":"\u219B","nrarrc;":"\u2933\u0338","nrarrw;":"\u219D\u0338","nRightarrow;":"\u21CF","nrightarrow;":"\u219B","nrtri;":"\u22EB","nrtrie;":"\u22ED","nsc;":"\u2281","nsccue;":"\u22E1","nsce;":"\u2AB0\u0338","Nscr;":"\u{1D4A9}","nscr;":"\u{1D4C3}","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22E2","nsqsupe;":"\u22E3","nsub;":"\u2284","nsubE;":"\u2AC5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20D2","nsubseteq;":"\u2288","nsubseteqq;":"\u2AC5\u0338","nsucc;":"\u2281","nsucceq;":"\u2AB0\u0338","nsup;":"\u2285","nsupE;":"\u2AC6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20D2","nsupseteq;":"\u2289","nsupseteqq;":"\u2AC6\u0338","ntgl;":"\u2279","Ntilde;":"\xD1",Ntilde:"\xD1","ntilde;":"\xF1",ntilde:"\xF1","ntlg;":"\u2278","ntriangleleft;":"\u22EA","ntrianglelefteq;":"\u22EC","ntriangleright;":"\u22EB","ntrianglerighteq;":"\u22ED","Nu;":"\u039D","nu;":"\u03BD","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224D\u20D2","nVDash;":"\u22AF","nVdash;":"\u22AE","nvDash;":"\u22AD","nvdash;":"\u22AC","nvge;":"\u2265\u20D2","nvgt;":">\u20D2","nvHarr;":"\u2904","nvinfin;":"\u29DE","nvlArr;":"\u2902","nvle;":"\u2264\u20D2","nvlt;":"<\u20D2","nvltrie;":"\u22B4\u20D2","nvrArr;":"\u2903","nvrtrie;":"\u22B5\u20D2","nvsim;":"\u223C\u20D2","nwarhk;":"\u2923","nwArr;":"\u21D6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xD3",Oacute:"\xD3","oacute;":"\xF3",oacute:"\xF3","oast;":"\u229B","ocir;":"\u229A","Ocirc;":"\xD4",Ocirc:"\xD4","ocirc;":"\xF4",ocirc:"\xF4","Ocy;":"\u041E","ocy;":"\u043E","odash;":"\u229D","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2A38","odot;":"\u2299","odsold;":"\u29BC","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29BF","Ofr;":"\u{1D512}","ofr;":"\u{1D52C}","ogon;":"\u02DB","Ograve;":"\xD2",Ograve:"\xD2","ograve;":"\xF2",ograve:"\xF2","ogt;":"\u29C1","ohbar;":"\u29B5","ohm;":"\u03A9","oint;":"\u222E","olarr;":"\u21BA","olcir;":"\u29BE","olcross;":"\u29BB","oline;":"\u203E","olt;":"\u29C0","Omacr;":"\u014C","omacr;":"\u014D","Omega;":"\u03A9","omega;":"\u03C9","Omicron;":"\u039F","omicron;":"\u03BF","omid;":"\u29B6","ominus;":"\u2296","Oopf;":"\u{1D546}","oopf;":"\u{1D560}","opar;":"\u29B7","OpenCurlyDoubleQuote;":"\u201C","OpenCurlyQuote;":"\u2018","operp;":"\u29B9","oplus;":"\u2295","Or;":"\u2A54","or;":"\u2228","orarr;":"\u21BB","ord;":"\u2A5D","order;":"\u2134","orderof;":"\u2134","ordf;":"\xAA",ordf:"\xAA","ordm;":"\xBA",ordm:"\xBA","origof;":"\u22B6","oror;":"\u2A56","orslope;":"\u2A57","orv;":"\u2A5B","oS;":"\u24C8","Oscr;":"\u{1D4AA}","oscr;":"\u2134","Oslash;":"\xD8",Oslash:"\xD8","oslash;":"\xF8",oslash:"\xF8","osol;":"\u2298","Otilde;":"\xD5",Otilde:"\xD5","otilde;":"\xF5",otilde:"\xF5","Otimes;":"\u2A37","otimes;":"\u2297","otimesas;":"\u2A36","Ouml;":"\xD6",Ouml:"\xD6","ouml;":"\xF6",ouml:"\xF6","ovbar;":"\u233D","OverBar;":"\u203E","OverBrace;":"\u23DE","OverBracket;":"\u23B4","OverParenthesis;":"\u23DC","par;":"\u2225","para;":"\xB6",para:"\xB6","parallel;":"\u2225","parsim;":"\u2AF3","parsl;":"\u2AFD","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041F","pcy;":"\u043F","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22A5","pertenk;":"\u2031","Pfr;":"\u{1D513}","pfr;":"\u{1D52D}","Phi;":"\u03A6","phi;":"\u03C6","phiv;":"\u03D5","phmmat;":"\u2133","phone;":"\u260E","Pi;":"\u03A0","pi;":"\u03C0","pitchfork;":"\u22D4","piv;":"\u03D6","planck;":"\u210F","planckh;":"\u210E","plankv;":"\u210F","plus;":"+","plusacir;":"\u2A23","plusb;":"\u229E","pluscir;":"\u2A22","plusdo;":"\u2214","plusdu;":"\u2A25","pluse;":"\u2A72","PlusMinus;":"\xB1","plusmn;":"\xB1",plusmn:"\xB1","plussim;":"\u2A26","plustwo;":"\u2A27","pm;":"\xB1","Poincareplane;":"\u210C","pointint;":"\u2A15","Popf;":"\u2119","popf;":"\u{1D561}","pound;":"\xA3",pound:"\xA3","Pr;":"\u2ABB","pr;":"\u227A","prap;":"\u2AB7","prcue;":"\u227C","prE;":"\u2AB3","pre;":"\u2AAF","prec;":"\u227A","precapprox;":"\u2AB7","preccurlyeq;":"\u227C","Precedes;":"\u227A","PrecedesEqual;":"\u2AAF","PrecedesSlantEqual;":"\u227C","PrecedesTilde;":"\u227E","preceq;":"\u2AAF","precnapprox;":"\u2AB9","precneqq;":"\u2AB5","precnsim;":"\u22E8","precsim;":"\u227E","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2AB9","prnE;":"\u2AB5","prnsim;":"\u22E8","prod;":"\u220F","Product;":"\u220F","profalar;":"\u232E","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221D","Proportion;":"\u2237","Proportional;":"\u221D","propto;":"\u221D","prsim;":"\u227E","prurel;":"\u22B0","Pscr;":"\u{1D4AB}","pscr;":"\u{1D4C5}","Psi;":"\u03A8","psi;":"\u03C8","puncsp;":"\u2008","Qfr;":"\u{1D514}","qfr;":"\u{1D52E}","qint;":"\u2A0C","Qopf;":"\u211A","qopf;":"\u{1D562}","qprime;":"\u2057","Qscr;":"\u{1D4AC}","qscr;":"\u{1D4C6}","quaternions;":"\u210D","quatint;":"\u2A16","quest;":"?","questeq;":"\u225F","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21DB","race;":"\u223D\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221A","raemptyv;":"\u29B3","Rang;":"\u27EB","rang;":"\u27E9","rangd;":"\u2992","range;":"\u29A5","rangle;":"\u27E9","raquo;":"\xBB",raquo:"\xBB","Rarr;":"\u21A0","rArr;":"\u21D2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21E5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291E","rarrhk;":"\u21AA","rarrlp;":"\u21AC","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21A3","rarrw;":"\u219D","rAtail;":"\u291C","ratail;":"\u291A","ratio;":"\u2236","rationals;":"\u211A","RBarr;":"\u2910","rBarr;":"\u290F","rbarr;":"\u290D","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298C","rbrksld;":"\u298E","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201D","rdquor;":"\u201D","rdsh;":"\u21B3","Re;":"\u211C","real;":"\u211C","realine;":"\u211B","realpart;":"\u211C","reals;":"\u211D","rect;":"\u25AD","REG;":"\xAE",REG:"\xAE","reg;":"\xAE",reg:"\xAE","ReverseElement;":"\u220B","ReverseEquilibrium;":"\u21CB","ReverseUpEquilibrium;":"\u296F","rfisht;":"\u297D","rfloor;":"\u230B","Rfr;":"\u211C","rfr;":"\u{1D52F}","rHar;":"\u2964","rhard;":"\u21C1","rharu;":"\u21C0","rharul;":"\u296C","Rho;":"\u03A1","rho;":"\u03C1","rhov;":"\u03F1","RightAngleBracket;":"\u27E9","RightArrow;":"\u2192","Rightarrow;":"\u21D2","rightarrow;":"\u2192","RightArrowBar;":"\u21E5","RightArrowLeftArrow;":"\u21C4","rightarrowtail;":"\u21A3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27E7","RightDownTeeVector;":"\u295D","RightDownVector;":"\u21C2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230B","rightharpoondown;":"\u21C1","rightharpoonup;":"\u21C0","rightleftarrows;":"\u21C4","rightleftharpoons;":"\u21CC","rightrightarrows;":"\u21C9","rightsquigarrow;":"\u219D","RightTee;":"\u22A2","RightTeeArrow;":"\u21A6","RightTeeVector;":"\u295B","rightthreetimes;":"\u22CC","RightTriangle;":"\u22B3","RightTriangleBar;":"\u29D0","RightTriangleEqual;":"\u22B5","RightUpDownVector;":"\u294F","RightUpTeeVector;":"\u295C","RightUpVector;":"\u21BE","RightUpVectorBar;":"\u2954","RightVector;":"\u21C0","RightVectorBar;":"\u2953","ring;":"\u02DA","risingdotseq;":"\u2253","rlarr;":"\u21C4","rlhar;":"\u21CC","rlm;":"\u200F","rmoust;":"\u23B1","rmoustache;":"\u23B1","rnmid;":"\u2AEE","roang;":"\u27ED","roarr;":"\u21FE","robrk;":"\u27E7","ropar;":"\u2986","Ropf;":"\u211D","ropf;":"\u{1D563}","roplus;":"\u2A2E","rotimes;":"\u2A35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2A12","rrarr;":"\u21C9","Rrightarrow;":"\u21DB","rsaquo;":"\u203A","Rscr;":"\u211B","rscr;":"\u{1D4C7}","Rsh;":"\u21B1","rsh;":"\u21B1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22CC","rtimes;":"\u22CA","rtri;":"\u25B9","rtrie;":"\u22B5","rtrif;":"\u25B8","rtriltri;":"\u29CE","RuleDelayed;":"\u29F4","ruluhar;":"\u2968","rx;":"\u211E","Sacute;":"\u015A","sacute;":"\u015B","sbquo;":"\u201A","Sc;":"\u2ABC","sc;":"\u227B","scap;":"\u2AB8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227D","scE;":"\u2AB4","sce;":"\u2AB0","Scedil;":"\u015E","scedil;":"\u015F","Scirc;":"\u015C","scirc;":"\u015D","scnap;":"\u2ABA","scnE;":"\u2AB6","scnsim;":"\u22E9","scpolint;":"\u2A13","scsim;":"\u227F","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22C5","sdotb;":"\u22A1","sdote;":"\u2A66","searhk;":"\u2925","seArr;":"\u21D8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xA7",sect:"\xA7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\u{1D516}","sfr;":"\u{1D530}","sfrown;":"\u2322","sharp;":"\u266F","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xAD",shy:"\xAD","Sigma;":"\u03A3","sigma;":"\u03C3","sigmaf;":"\u03C2","sigmav;":"\u03C2","sim;":"\u223C","simdot;":"\u2A6A","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2A9E","simgE;":"\u2AA0","siml;":"\u2A9D","simlE;":"\u2A9F","simne;":"\u2246","simplus;":"\u2A24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2A33","smeparsl;":"\u29E4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2AAA","smte;":"\u2AAC","smtes;":"\u2AAC\uFE00","SOFTcy;":"\u042C","softcy;":"\u044C","sol;":"/","solb;":"\u29C4","solbar;":"\u233F","Sopf;":"\u{1D54A}","sopf;":"\u{1D564}","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\uFE00","sqcup;":"\u2294","sqcups;":"\u2294\uFE00","Sqrt;":"\u221A","sqsub;":"\u228F","sqsube;":"\u2291","sqsubset;":"\u228F","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25A1","Square;":"\u25A1","square;":"\u25A1","SquareIntersection;":"\u2293","SquareSubset;":"\u228F","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25AA","squf;":"\u25AA","srarr;":"\u2192","Sscr;":"\u{1D4AE}","sscr;":"\u{1D4C8}","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22C6","Star;":"\u22C6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03F5","straightphi;":"\u03D5","strns;":"\xAF","Sub;":"\u22D0","sub;":"\u2282","subdot;":"\u2ABD","subE;":"\u2AC5","sube;":"\u2286","subedot;":"\u2AC3","submult;":"\u2AC1","subnE;":"\u2ACB","subne;":"\u228A","subplus;":"\u2ABF","subrarr;":"\u2979","Subset;":"\u22D0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2AC5","SubsetEqual;":"\u2286","subsetneq;":"\u228A","subsetneqq;":"\u2ACB","subsim;":"\u2AC7","subsub;":"\u2AD5","subsup;":"\u2AD3","succ;":"\u227B","succapprox;":"\u2AB8","succcurlyeq;":"\u227D","Succeeds;":"\u227B","SucceedsEqual;":"\u2AB0","SucceedsSlantEqual;":"\u227D","SucceedsTilde;":"\u227F","succeq;":"\u2AB0","succnapprox;":"\u2ABA","succneqq;":"\u2AB6","succnsim;":"\u22E9","succsim;":"\u227F","SuchThat;":"\u220B","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266A","Sup;":"\u22D1","sup;":"\u2283","sup1;":"\xB9",sup1:"\xB9","sup2;":"\xB2",sup2:"\xB2","sup3;":"\xB3",sup3:"\xB3","supdot;":"\u2ABE","supdsub;":"\u2AD8","supE;":"\u2AC6","supe;":"\u2287","supedot;":"\u2AC4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27C9","suphsub;":"\u2AD7","suplarr;":"\u297B","supmult;":"\u2AC2","supnE;":"\u2ACC","supne;":"\u228B","supplus;":"\u2AC0","Supset;":"\u22D1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2AC6","supsetneq;":"\u228B","supsetneqq;":"\u2ACC","supsim;":"\u2AC8","supsub;":"\u2AD4","supsup;":"\u2AD6","swarhk;":"\u2926","swArr;":"\u21D9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292A","szlig;":"\xDF",szlig:"\xDF","Tab;":" ","target;":"\u2316","Tau;":"\u03A4","tau;":"\u03C4","tbrk;":"\u23B4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20DB","telrec;":"\u2315","Tfr;":"\u{1D517}","tfr;":"\u{1D531}","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03B8","thetasym;":"\u03D1","thetav;":"\u03D1","thickapprox;":"\u2248","thicksim;":"\u223C","ThickSpace;":"\u205F\u200A","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223C","THORN;":"\xDE",THORN:"\xDE","thorn;":"\xFE",thorn:"\xFE","Tilde;":"\u223C","tilde;":"\u02DC","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xD7",times:"\xD7","timesb;":"\u22A0","timesbar;":"\u2A31","timesd;":"\u2A30","tint;":"\u222D","toea;":"\u2928","top;":"\u22A4","topbot;":"\u2336","topcir;":"\u2AF1","Topf;":"\u{1D54B}","topf;":"\u{1D565}","topfork;":"\u2ADA","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25B5","triangledown;":"\u25BF","triangleleft;":"\u25C3","trianglelefteq;":"\u22B4","triangleq;":"\u225C","triangleright;":"\u25B9","trianglerighteq;":"\u22B5","tridot;":"\u25EC","trie;":"\u225C","triminus;":"\u2A3A","TripleDot;":"\u20DB","triplus;":"\u2A39","trisb;":"\u29CD","tritime;":"\u2A3B","trpezium;":"\u23E2","Tscr;":"\u{1D4AF}","tscr;":"\u{1D4C9}","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040B","tshcy;":"\u045B","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226C","twoheadleftarrow;":"\u219E","twoheadrightarrow;":"\u21A0","Uacute;":"\xDA",Uacute:"\xDA","uacute;":"\xFA",uacute:"\xFA","Uarr;":"\u219F","uArr;":"\u21D1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040E","ubrcy;":"\u045E","Ubreve;":"\u016C","ubreve;":"\u016D","Ucirc;":"\xDB",Ucirc:"\xDB","ucirc;":"\xFB",ucirc:"\xFB","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21C5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296E","ufisht;":"\u297E","Ufr;":"\u{1D518}","ufr;":"\u{1D532}","Ugrave;":"\xD9",Ugrave:"\xD9","ugrave;":"\xF9",ugrave:"\xF9","uHar;":"\u2963","uharl;":"\u21BF","uharr;":"\u21BE","uhblk;":"\u2580","ulcorn;":"\u231C","ulcorner;":"\u231C","ulcrop;":"\u230F","ultri;":"\u25F8","Umacr;":"\u016A","umacr;":"\u016B","uml;":"\xA8",uml:"\xA8","UnderBar;":"_","UnderBrace;":"\u23DF","UnderBracket;":"\u23B5","UnderParenthesis;":"\u23DD","Union;":"\u22C3","UnionPlus;":"\u228E","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\u{1D54C}","uopf;":"\u{1D566}","UpArrow;":"\u2191","Uparrow;":"\u21D1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21C5","UpDownArrow;":"\u2195","Updownarrow;":"\u21D5","updownarrow;":"\u2195","UpEquilibrium;":"\u296E","upharpoonleft;":"\u21BF","upharpoonright;":"\u21BE","uplus;":"\u228E","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03D2","upsi;":"\u03C5","upsih;":"\u03D2","Upsilon;":"\u03A5","upsilon;":"\u03C5","UpTee;":"\u22A5","UpTeeArrow;":"\u21A5","upuparrows;":"\u21C8","urcorn;":"\u231D","urcorner;":"\u231D","urcrop;":"\u230E","Uring;":"\u016E","uring;":"\u016F","urtri;":"\u25F9","Uscr;":"\u{1D4B0}","uscr;":"\u{1D4CA}","utdot;":"\u22F0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25B5","utrif;":"\u25B4","uuarr;":"\u21C8","Uuml;":"\xDC",Uuml:"\xDC","uuml;":"\xFC",uuml:"\xFC","uwangle;":"\u29A7","vangrt;":"\u299C","varepsilon;":"\u03F5","varkappa;":"\u03F0","varnothing;":"\u2205","varphi;":"\u03D5","varpi;":"\u03D6","varpropto;":"\u221D","vArr;":"\u21D5","varr;":"\u2195","varrho;":"\u03F1","varsigma;":"\u03C2","varsubsetneq;":"\u228A\uFE00","varsubsetneqq;":"\u2ACB\uFE00","varsupsetneq;":"\u228B\uFE00","varsupsetneqq;":"\u2ACC\uFE00","vartheta;":"\u03D1","vartriangleleft;":"\u22B2","vartriangleright;":"\u22B3","Vbar;":"\u2AEB","vBar;":"\u2AE8","vBarv;":"\u2AE9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22AB","Vdash;":"\u22A9","vDash;":"\u22A8","vdash;":"\u22A2","Vdashl;":"\u2AE6","Vee;":"\u22C1","vee;":"\u2228","veebar;":"\u22BB","veeeq;":"\u225A","vellip;":"\u22EE","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200A","Vfr;":"\u{1D519}","vfr;":"\u{1D533}","vltri;":"\u22B2","vnsub;":"\u2282\u20D2","vnsup;":"\u2283\u20D2","Vopf;":"\u{1D54D}","vopf;":"\u{1D567}","vprop;":"\u221D","vrtri;":"\u22B3","Vscr;":"\u{1D4B1}","vscr;":"\u{1D4CB}","vsubnE;":"\u2ACB\uFE00","vsubne;":"\u228A\uFE00","vsupnE;":"\u2ACC\uFE00","vsupne;":"\u228B\uFE00","Vvdash;":"\u22AA","vzigzag;":"\u299A","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2A5F","Wedge;":"\u22C0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\u{1D51A}","wfr;":"\u{1D534}","Wopf;":"\u{1D54E}","wopf;":"\u{1D568}","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\u{1D4B2}","wscr;":"\u{1D4CC}","xcap;":"\u22C2","xcirc;":"\u25EF","xcup;":"\u22C3","xdtri;":"\u25BD","Xfr;":"\u{1D51B}","xfr;":"\u{1D535}","xhArr;":"\u27FA","xharr;":"\u27F7","Xi;":"\u039E","xi;":"\u03BE","xlArr;":"\u27F8","xlarr;":"\u27F5","xmap;":"\u27FC","xnis;":"\u22FB","xodot;":"\u2A00","Xopf;":"\u{1D54F}","xopf;":"\u{1D569}","xoplus;":"\u2A01","xotime;":"\u2A02","xrArr;":"\u27F9","xrarr;":"\u27F6","Xscr;":"\u{1D4B3}","xscr;":"\u{1D4CD}","xsqcup;":"\u2A06","xuplus;":"\u2A04","xutri;":"\u25B3","xvee;":"\u22C1","xwedge;":"\u22C0","Yacute;":"\xDD",Yacute:"\xDD","yacute;":"\xFD",yacute:"\xFD","YAcy;":"\u042F","yacy;":"\u044F","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042B","ycy;":"\u044B","yen;":"\xA5",yen:"\xA5","Yfr;":"\u{1D51C}","yfr;":"\u{1D536}","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\u{1D550}","yopf;":"\u{1D56A}","Yscr;":"\u{1D4B4}","yscr;":"\u{1D4CE}","YUcy;":"\u042E","yucy;":"\u044E","Yuml;":"\u0178","yuml;":"\xFF",yuml:"\xFF","Zacute;":"\u0179","zacute;":"\u017A","Zcaron;":"\u017D","zcaron;":"\u017E","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017B","zdot;":"\u017C","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200B","Zeta;":"\u0396","zeta;":"\u03B6","Zfr;":"\u2128","zfr;":"\u{1D537}","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21DD","Zopf;":"\u2124","zopf;":"\u{1D56B}","Zscr;":"\u{1D4B5}","zscr;":"\u{1D4CF}","zwj;":"\u200D","zwnj;":"\u200C"};function Wi(Te,Ee){if(Te.length<Ee.length)return!1;for(var ve=0;ve<Ee.length;ve++)if(Te[ve]!==Ee[ve])return!1;return!0}function xn(Te,Ee){for(var ve="";Ee>0;)(1&Ee)==1&&(ve+=Te),Te+=Te,Ee>>>=1;return ve}var un="a".charCodeAt(0),bn="z".charCodeAt(0),Fn="A".charCodeAt(0),Mn="Z".charCodeAt(0),Nn="0".charCodeAt(0),Hn="9".charCodeAt(0);function Jn(Te,Ee){var ve=Te.charCodeAt(Ee);return un<=ve&&ve<=bn||Fn<=ve&&ve<=Mn||Nn<=ve&&ve<=Hn}function br(Te){return Te!==void 0}var pn=function(){function Te(Ee,ve){var Re=this;this.id=Ee,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=ve.tags||[],this._globalAttributes=ve.globalAttributes||[],this._tags.forEach(function(We){Re._tagMap[We.name.toLowerCase()]=We}),ve.valueSets&&ve.valueSets.forEach(function(We){Re._valueSetMap[We.name]=We.values})}return Te.prototype.isApplicable=function(){return!0},Te.prototype.getId=function(){return this.id},Te.prototype.provideTags=function(){return this._tags},Te.prototype.provideAttributes=function(Ee){var ve=[],Re=function(Be){ve.push(Be)},We=this._tagMap[Ee.toLowerCase()];return We&&We.attributes.forEach(Re),this._globalAttributes.forEach(Re),ve},Te.prototype.provideValues=function(Ee,ve){var Re=this,We=[];ve=ve.toLowerCase();var Be=function(Ke){Ke.forEach(function(dt){dt.name.toLowerCase()===ve&&(dt.values&&dt.values.forEach(function(yt){We.push(yt)}),dt.valueSet&&Re._valueSetMap[dt.valueSet]&&Re._valueSetMap[dt.valueSet].forEach(function(yt){We.push(yt)}))})},Le=this._tagMap[Ee.toLowerCase()];return Le?(Be(Le.attributes),Be(this._globalAttributes),We):[]},Te}();function Gn(Te,Ee){var ve={kind:Ee?"markdown":"plaintext",value:""};if(Te.description){var Re=function(We){if(We)return typeof We=="string"?{kind:"markdown",value:We}:{kind:"markdown",value:We.value}}(Te.description);Re&&(ve.value+=Re.value)}if(Te.references&&Te.references.length>0&&(ve.value+=` `,ve.value+=Ee?Te.references.map(function(We){return"["+We.name+"]("+We.url+")"}).join(" | "):Te.references.map(function(We){return We.name+": "+We.url}).join(` -`)),ve.value!=="")return ve}var on=function(Te,Ee,ve,Re){return new(ve||(ve=Promise))(function(We,Be){function Le(yt){try{dt(Re.next(yt))}catch(xt){Be(xt)}}function Ke(yt){try{dt(Re.throw(yt))}catch(xt){Be(xt)}}function dt(yt){var xt;yt.done?We(yt.value):(xt=yt.value,xt instanceof ve?xt:new ve(function(Xt){Xt(xt)})).then(Le,Ke)}dt((Re=Re.apply(Te,Ee||[])).next())})},ho=function(Te,Ee){var ve,Re,We,Be,Le={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return Be={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Ke(dt){return function(yt){return function(xt){if(ve)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ve=1,Re&&(We=2&xt[0]?Re.return:xt[0]?Re.throw||((We=Re.return)&&We.call(Re),0):Re.next)&&!(We=We.call(Re,xt[1])).done)return We;switch(Re=0,We&&(xt=[2&xt[0],We.value]),xt[0]){case 0:case 1:We=xt;break;case 4:return Le.label++,{value:xt[1],done:!1};case 5:Le.label++,Re=xt[1],xt=[0];continue;case 7:xt=Le.ops.pop(),Le.trys.pop();continue;default:if(We=Le.trys,!((We=We.length>0&&We[We.length-1])||xt[0]!==6&&xt[0]!==2)){Le=0;continue}if(xt[0]===3&&(!We||xt[1]>We[0]&&xt[1]<We[3])){Le.label=xt[1];break}if(xt[0]===6&&Le.label<We[1]){Le.label=We[1],We=xt;break}if(We&&Le.label<We[2]){Le.label=We[2],Le.ops.push(xt);break}We[2]&&Le.ops.pop(),Le.trys.pop();continue}xt=Ee.call(Te,Le)}catch(Xt){xt=[6,Xt],Re=0}finally{ve=We=0}if(5&xt[0])throw xt[1];return{value:xt[0]?xt[1]:void 0,done:!0}}([dt,yt])}}},On=function(){function Te(Ee){this.readDirectory=Ee,this.atributeCompletions=[]}return Te.prototype.onHtmlAttributeValue=function(Ee){(function(ve,Re){var We=ne[ve];return We?typeof We=="string"?We===Re:We.indexOf(Re)!==-1:!1})(Ee.tag,Ee.attribute)&&this.atributeCompletions.push(Ee)},Te.prototype.computeCompletions=function(Ee,ve){return on(this,void 0,void 0,function(){var Re,We,Be,Le,Ke,dt,yt,xt,Xt,mi;return ho(this,function(Yt){switch(Yt.label){case 0:Re={items:[],isIncomplete:!1},We=0,Be=this.atributeCompletions,Yt.label=1;case 1:return We<Be.length?(Le=Be[We],function(ri){return!(Wi(ri,"http")||Wi(ri,"https")||Wi(ri,"//"))}(Ke=function(ri){return Wi(ri,"'")||Wi(ri,'"')?ri.slice(1,-1):ri}(Ee.getText(Le.range)))?Ke!=="."&&Ke!==".."?[3,2]:(Re.isIncomplete=!0,[3,4]):[3,4]):[3,5];case 2:return dt=function(ri,qi,an){var _n,ei=ri.lastIndexOf("/");if(ei===-1)_n=function(sn,gn,Sn){var En=I(sn.start,gn),Xn=I(sn.end,Sn);return E.create(En,Xn)}(an,1,-1);else{var ii=qi.slice(ei+1),bi=I(an.end,-1-ii.length),ln=ii.indexOf(" "),mn=void 0;mn=ln!==-1?I(bi,ln):I(an.end,-1),_n=E.create(bi,mn)}return _n}(Le.value,Ke,Le.range),[4,this.providePathSuggestions(Le.value,dt,Ee,ve)];case 3:for(yt=Yt.sent(),xt=0,Xt=yt;xt<Xt.length;xt++)mi=Xt[xt],Re.items.push(mi);Yt.label=4;case 4:return We++,[3,1];case 5:return[2,Re]}})})},Te.prototype.providePathSuggestions=function(Ee,ve,Re,We){return on(this,void 0,void 0,function(){var Be,Le,Ke,dt,yt,xt,Xt,mi,Yt;return ho(this,function(ri){switch(ri.label){case 0:if(Be=Ee.substring(0,Ee.lastIndexOf("/")+1),!(Le=We.resolveReference(Be||".",Re.uri)))return[3,4];ri.label=1;case 1:return ri.trys.push([1,3,,4]),Ke=[],[4,this.readDirectory(Le)];case 2:for(dt=ri.sent(),yt=0,xt=dt;yt<xt.length;yt++)Xt=xt[yt],mi=Xt[0],Yt=Xt[1],mi.charCodeAt(0)!==Dn&&Ke.push(qt(mi,Yt===Ii.Directory,ve));return[2,Ke];case 3:return ri.sent(),[3,4];case 4:return[2,[]]}})})},Te}(),Dn=".".charCodeAt(0);function qt(Te,Ee,ve){return Ee?{label:Te+="/",kind:te.Folder,textEdit:g.replace(ve,Te),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Te,kind:te.File,textEdit:g.replace(ve,Te)}}function I(Te,Ee){return H.create(Te.line,Te.character+Ee)}var ne={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},_e=function(Te,Ee,ve,Re){return new(ve||(ve=Promise))(function(We,Be){function Le(yt){try{dt(Re.next(yt))}catch(xt){Be(xt)}}function Ke(yt){try{dt(Re.throw(yt))}catch(xt){Be(xt)}}function dt(yt){var xt;yt.done?We(yt.value):(xt=yt.value,xt instanceof ve?xt:new ve(function(Xt){Xt(xt)})).then(Le,Ke)}dt((Re=Re.apply(Te,Ee||[])).next())})},Fe=function(Te,Ee){var ve,Re,We,Be,Le={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return Be={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Ke(dt){return function(yt){return function(xt){if(ve)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ve=1,Re&&(We=2&xt[0]?Re.return:xt[0]?Re.throw||((We=Re.return)&&We.call(Re),0):Re.next)&&!(We=We.call(Re,xt[1])).done)return We;switch(Re=0,We&&(xt=[2&xt[0],We.value]),xt[0]){case 0:case 1:We=xt;break;case 4:return Le.label++,{value:xt[1],done:!1};case 5:Le.label++,Re=xt[1],xt=[0];continue;case 7:xt=Le.ops.pop(),Le.trys.pop();continue;default:if(We=Le.trys,!((We=We.length>0&&We[We.length-1])||xt[0]!==6&&xt[0]!==2)){Le=0;continue}if(xt[0]===3&&(!We||xt[1]>We[0]&&xt[1]<We[3])){Le.label=xt[1];break}if(xt[0]===6&&Le.label<We[1]){Le.label=We[1],We=xt;break}if(We&&Le.label<We[2]){Le.label=We[2],Le.ops.push(xt);break}We[2]&&Le.ops.pop(),Le.trys.pop();continue}xt=Ee.call(Te,Le)}catch(Xt){xt=[6,Xt],Re=0}finally{ve=We=0}if(5&xt[0])throw xt[1];return{value:xt[0]?xt[1]:void 0,done:!0}}([dt,yt])}}},Xe=D(),ot=function(){function Te(Ee,ve){this.lsOptions=Ee,this.dataManager=ve,this.completionParticipants=[]}return Te.prototype.setCompletionParticipants=function(Ee){this.completionParticipants=Ee||[]},Te.prototype.doComplete2=function(Ee,ve,Re,We,Be){return _e(this,void 0,void 0,function(){var Le,Ke,dt,yt;return Fe(this,function(xt){switch(xt.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(Ee,ve,Re,Be)];Le=new On(this.lsOptions.fileSystemProvider.readDirectory),Ke=this.completionParticipants,this.completionParticipants=[Le].concat(Ke),dt=this.doComplete(Ee,ve,Re,Be),xt.label=1;case 1:return xt.trys.push([1,,3,4]),[4,Le.computeCompletions(Ee,We)];case 2:return yt=xt.sent(),[2,{isIncomplete:dt.isIncomplete||yt.isIncomplete,items:yt.items.concat(dt.items)}];case 3:return this.completionParticipants=Ke,[7];case 4:return[2]}})})},Te.prototype.doComplete=function(Ee,ve,Re,We){var Be=this._doComplete(Ee,ve,Re,We);return this.convertCompletionList(Be)},Te.prototype._doComplete=function(Ee,ve,Re,We){var Be={isIncomplete:!1,items:[]},Le=this.completionParticipants,Ke=this.dataManager.getDataProviders().filter(function(In){return In.isApplicable(Ee.languageId)&&(!We||We[In.getId()]!==!1)}),dt=this.doesSupportMarkdown(),yt=Ee.getText(),xt=Ee.offsetAt(ve),Xt=Re.findNodeBefore(xt);if(!Xt)return Be;var mi,Yt=Hi(yt,Xt.start),ri="";function qi(In,Rn){return Rn===void 0&&(Rn=xt),In>xt&&(In=xt),{start:Ee.positionAt(In),end:Ee.positionAt(Rn)}}function an(In,Rn){var Qn=qi(In,Rn);return Ke.forEach(function(vo){vo.provideTags().forEach(function(Mo){Be.items.push({label:Mo.name,kind:te.Property,documentation:Gn(Mo,dt),textEdit:g.replace(Qn,Mo.name),insertTextFormat:he.PlainText})})}),Be}function _n(In){for(var Rn=In;Rn>0;){var Qn=yt.charAt(Rn-1);if(` -\r`.indexOf(Qn)>=0)return yt.substring(Rn,In);if(!Mt(Qn))return null;Rn--}return yt.substring(0,In)}function ei(In,Rn,Qn){Qn===void 0&&(Qn=xt);var vo=qi(In,Qn),Mo=Ot(yt,Qn,Wt.WithinEndTag,et.EndTagClose)?"":">",So=Xt;for(Rn&&(So=So.parent);So;){var ko=So.tag;if(ko&&(!So.closed||So.endTagStart&&So.endTagStart>xt)){var po={label:"/"+ko,kind:te.Property,filterText:"/"+ko,textEdit:g.replace(vo,"/"+ko+Mo),insertTextFormat:he.PlainText},Tn=_n(So.start),No=_n(In-1);if(Tn!==null&&No!==null&&Tn!==No){var Ho=Tn+"</"+ko+Mo;po.textEdit=g.replace(qi(In-1-No.length),Ho),po.filterText=No+"</"+ko}return Be.items.push(po),Be}So=So.parent}return Rn||Ke.forEach(function(gr){gr.provideTags().forEach(function(wo){Be.items.push({label:"/"+wo.name,kind:te.Property,documentation:Gn(wo,dt),filterText:"/"+wo+Mo,textEdit:g.replace(vo,"/"+wo+Mo),insertTextFormat:he.PlainText})})}),Be}function ii(In,Rn){if(We&&We.hideAutoCompleteProposals)return Be;if(!Et(Rn)){var Qn=Ee.positionAt(In);Be.items.push({label:"</"+Rn+">",kind:te.Property,filterText:"</"+Rn+">",textEdit:g.insert(Qn,"$0</"+Rn+">"),insertTextFormat:he.Snippet})}return Be}function bi(In,Rn){return an(In,Rn),ei(In,!0,Rn),Be}function ln(In,Rn){Rn===void 0&&(Rn=xt);for(var Qn=xt;Qn<Rn&&yt[Qn]!=="<";)Qn++;var vo=qi(In,Qn),Mo=Ot(yt,Rn,Wt.AfterAttributeName,et.DelimiterAssign)?"":'="$1"',So=Object.create(null);return Ke.forEach(function(ko){ko.provideAttributes(ri).forEach(function(po){if(!So[po.name]){So[po.name]=!0;var Tn,No=po.name;po.valueSet!=="v"&&Mo.length&&(No+=Mo,(po.valueSet||po.name==="style")&&(Tn={title:"Suggest",command:"editor.action.triggerSuggest"})),Be.items.push({label:po.name,kind:po.valueSet==="handler"?te.Function:te.Value,documentation:Gn(po,dt),textEdit:g.replace(vo,No),insertTextFormat:he.Snippet,command:Tn})}})}),function(ko,po){var Tn={};Tn["data-"]='data-$1="$2"',Re&&Re.roots.forEach(function(No){return function Ho(gr){gr.attributeNames.forEach(function(wo){!Wi(wo,"data-")||Tn[wo]||po[wo]||(Tn[wo]=wo+'="$1"')}),gr.children.forEach(function(wo){return Ho(wo)})}(No)}),Object.keys(Tn).forEach(function(No){return Be.items.push({label:No,kind:te.Value,textEdit:g.replace(ko,Tn[No]),insertTextFormat:he.Snippet})})}(vo,So),Be}function mn(In,Rn){var Qn,vo,Mo,So;if(Rn===void 0&&(Rn=xt),xt>In&&xt<=Rn&&(So=yt[In],/^["']*$/.test(So))){var ko=In+1,po=Rn;Rn>In&&yt[Rn-1]===yt[In]&&po--;var Tn=function(cr,Eo,Lr){for(;Eo>Lr&&!Mt(cr[Eo-1]);)Eo--;return Eo}(yt,xt,ko),No=function(cr,Eo,Lr){for(;Eo<Lr&&!Mt(cr[Eo]);)Eo++;return Eo}(yt,xt,po);Qn=qi(Tn,No),Mo=xt>=ko&&xt<=po?yt.substring(ko,xt):"",vo=!1}else Qn=qi(In,Rn),Mo=yt.substring(In,xt),vo=!0;if(Le.length>0)for(var Ho=ri.toLowerCase(),gr=mi.toLowerCase(),wo=qi(In,Rn),ls=0,Br=Le;ls<Br.length;ls++){var Kn=Br[ls];Kn.onHtmlAttributeValue&&Kn.onHtmlAttributeValue({document:Ee,position:ve,tag:Ho,attribute:gr,value:Mo,range:wo})}return Ke.forEach(function(cr){cr.provideValues(ri,mi).forEach(function(Eo){var Lr=vo?'"'+Eo.name+'"':Eo.name;Be.items.push({label:Eo.name,filterText:Lr,kind:te.Unit,documentation:Gn(Eo,dt),textEdit:g.replace(Qn,Lr),insertTextFormat:he.PlainText})})}),Sn(),Be}function sn(In){return xt===Yt.getTokenEnd()&&(Xn=Yt.scan())===In&&Yt.getTokenOffset()===xt?Yt.getTokenEnd():xt}function gn(){for(var In=0,Rn=Le;In<Rn.length;In++){var Qn=Rn[In];Qn.onHtmlContent&&Qn.onHtmlContent({document:Ee,position:ve})}return Sn()}function Sn(){for(var In,Rn,Qn,vo=xt-1,Mo=ve.character;vo>=0&&Jn(yt,vo);)vo--,Mo--;if(vo>=0&&yt[vo]==="&"){var So=E.create(H.create(ve.line,Mo-1),ve);for(var ko in Pi)if(Rn=";",Qn=void 0,(Qn=(In=ko).length-Rn.length)>0?In.lastIndexOf(Rn)===Qn:Qn===0&&In===Rn){var po="&"+ko;Be.items.push({label:po,kind:te.Keyword,documentation:Xe("entity.propose","Character entity representing '"+Pi[ko]+"'"),textEdit:g.replace(So,po),insertTextFormat:he.PlainText})}}return Be}for(var En,Xn=Yt.scan();Xn!==et.EOS&&Yt.getTokenOffset()<=xt;){switch(Xn){case et.StartTagOpen:if(Yt.getTokenEnd()===xt){var Yn=sn(et.StartTag);return ve.line===0&&(En=void 0,En=qi(xt,Yn),Be.items.push({label:"!DOCTYPE",kind:te.Property,documentation:"A preamble for an HTML document.",textEdit:g.replace(En,"!DOCTYPE html>"),insertTextFormat:he.PlainText})),bi(xt,Yn)}break;case et.StartTag:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return an(Yt.getTokenOffset(),Yt.getTokenEnd());ri=Yt.getTokenText();break;case et.AttributeName:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return ln(Yt.getTokenOffset(),Yt.getTokenEnd());mi=Yt.getTokenText();break;case et.DelimiterAssign:if(Yt.getTokenEnd()===xt)return Yn=sn(et.AttributeValue),mn(xt,Yn);break;case et.AttributeValue:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return mn(Yt.getTokenOffset(),Yt.getTokenEnd());break;case et.Whitespace:if(xt<=Yt.getTokenEnd())switch(Yt.getScannerState()){case Wt.AfterOpeningStartTag:return bi(Yt.getTokenOffset(),sn(et.StartTag));case Wt.WithinTag:case Wt.AfterAttributeName:return ln(Yt.getTokenEnd());case Wt.BeforeAttributeValue:return mn(Yt.getTokenEnd());case Wt.AfterOpeningEndTag:return ei(Yt.getTokenOffset()-1,!1);case Wt.WithinContent:return gn()}break;case et.EndTagOpen:if(xt<=Yt.getTokenEnd())return ei(Yt.getTokenOffset()+1,!1,sn(et.EndTag));break;case et.EndTag:if(xt<=Yt.getTokenEnd())for(var Io=Yt.getTokenOffset()-1;Io>=0;){var Ro=yt.charAt(Io);if(Ro==="/")return ei(Io,!1,Yt.getTokenEnd());if(!Mt(Ro))break;Io--}break;case et.StartTagClose:if(xt<=Yt.getTokenEnd()&&ri)return ii(Yt.getTokenEnd(),ri);break;case et.Content:if(xt<=Yt.getTokenEnd())return gn();break;default:if(xt<=Yt.getTokenEnd())return Be}Xn=Yt.scan()}return Be},Te.prototype.doTagComplete=function(Ee,ve,Re){var We=Ee.offsetAt(ve);if(We<=0)return null;var Be=Ee.getText().charAt(We-1);if(Be===">"){if((Ke=Re.findNodeBefore(We))&&Ke.tag&&!Et(Ke.tag)&&Ke.start<We&&(!Ke.endTagStart||Ke.endTagStart>We))for(var Le=(dt=Hi(Ee.getText(),Ke.start)).scan();Le!==et.EOS&&dt.getTokenEnd()<=We;){if(Le===et.StartTagClose&&dt.getTokenEnd()===We)return"$0</"+Ke.tag+">";Le=dt.scan()}}else if(Be==="/"){for(var Ke=Re.findNodeBefore(We);Ke&&Ke.closed;)Ke=Ke.parent;if(Ke&&Ke.tag){var dt;for(Le=(dt=Hi(Ee.getText(),Ke.start)).scan();Le!==et.EOS&&dt.getTokenEnd()<=We;){if(Le===et.EndTagOpen&&dt.getTokenEnd()===We)return Ke.tag+">";Le=dt.scan()}}}return null},Te.prototype.convertCompletionList=function(Ee){return this.doesSupportMarkdown()||Ee.items.forEach(function(ve){ve.documentation&&typeof ve.documentation!="string"&&(ve.documentation={kind:"plaintext",value:ve.documentation.value})}),Ee},Te.prototype.doesSupportMarkdown=function(){var Ee,ve,Re;if(!_o(this.supportsMarkdown)){if(!_o(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var We=(Re=(ve=(Ee=this.lsOptions.clientCapabilities.textDocument)===null||Ee===void 0?void 0:Ee.completion)===null||ve===void 0?void 0:ve.completionItem)===null||Re===void 0?void 0:Re.documentationFormat;this.supportsMarkdown=Array.isArray(We)&&We.indexOf(Y.Markdown)!==-1}return this.supportsMarkdown},Te}();function Mt(Te){return/^\s*$/.test(Te)}function Ot(Te,Ee,ve,Re){for(var We=Hi(Te,Ee,ve),Be=We.scan();Be===et.Whitespace;)Be=We.scan();return Be===Re}var Tt=function(){function Te(Ee,ve){this.lsOptions=Ee,this.dataManager=ve}return Te.prototype.doHover=function(Ee,ve,Re){var We=this.convertContents.bind(this),Be=this.doesSupportMarkdown(),Le=Ee.offsetAt(ve),Ke=Re.findNodeAt(Le);if(!Ke||!Ke.tag)return null;var dt=this.dataManager.getDataProviders().filter(function(ei){return ei.isApplicable(Ee.languageId)});function yt(ei,ii,bi){for(var ln=function(Sn){var En=null;if(Sn.provideTags().forEach(function(Xn){if(Xn.name.toLowerCase()===ei.toLowerCase()){var Yn=Gn(Xn,Be);Yn||(Yn={kind:Be?"markdown":"plaintext",value:""}),En={contents:Yn,range:ii}}}),En)return En.contents=We(En.contents),{value:En}},mn=0,sn=dt;mn<sn.length;mn++){var gn=ln(sn[mn]);if(typeof gn=="object")return gn.value}return null}function xt(ei,ii){for(var bi=Hi(Ee.getText(),ii),ln=bi.scan();ln!==et.EOS&&(bi.getTokenEnd()<Le||bi.getTokenEnd()===Le&&ln!==ei);)ln=bi.scan();return ln===ei&&Le<=bi.getTokenEnd()?{start:Ee.positionAt(bi.getTokenOffset()),end:Ee.positionAt(bi.getTokenEnd())}:null}if(Ke.endTagStart&&Le>=Ke.endTagStart){var Xt=xt(et.EndTag,Ke.endTagStart);return Xt?yt(Ke.tag,Xt):null}var mi=xt(et.StartTag,Ke.start);if(mi)return yt(Ke.tag,mi);var Yt=xt(et.AttributeName,Ke.start);if(Yt)return function(ei,ii,bi){for(var ln=function(Sn){var En=null;if(Sn.provideAttributes(ei).forEach(function(Xn){if(ii===Xn.name&&Xn.description){var Yn=Gn(Xn,Be);En=Yn?{contents:Yn,range:bi}:null}}),En)return En.contents=We(En.contents),{value:En}},mn=0,sn=dt;mn<sn.length;mn++){var gn=ln(sn[mn]);if(typeof gn=="object")return gn.value}return null}(qi=Ke.tag,Ee.getText(Yt),Yt);var ri=xt(et.AttributeValue,Ke.start);if(ri){var qi=Ke.tag,an=function(ei){return ei.length<=1?ei.replace(/['"]/,""):(ei[0]!=="'"&&ei[0]!=='"'||(ei=ei.slice(1)),ei[ei.length-1]!=="'"&&ei[ei.length-1]!=='"'||(ei=ei.slice(0,-1)),ei)}(Ee.getText(ri)),_n=function(ei,ii){for(var bi=Hi(Ee.getText(),ei),ln=bi.scan(),mn=void 0;ln!==et.EOS&&bi.getTokenEnd()<=ii;)(ln=bi.scan())===et.AttributeName&&(mn=bi.getTokenText());return mn}(Ke.start,Ee.offsetAt(ri.start));if(_n)return function(ei,ii,bi,ln){for(var mn=function(En){var Xn=null;if(En.provideValues(ei,ii).forEach(function(Yn){if(bi===Yn.name&&Yn.description){var Io=Gn(Yn,Be);Xn=Io?{contents:Io,range:ln}:null}}),Xn)return Xn.contents=We(Xn.contents),{value:Xn}},sn=0,gn=dt;sn<gn.length;sn++){var Sn=mn(gn[sn]);if(typeof Sn=="object")return Sn.value}return null}(qi,_n,an,ri)}return null},Te.prototype.convertContents=function(Ee){if(!this.doesSupportMarkdown()){if(typeof Ee=="string")return Ee;if("kind"in Ee)return{kind:"plaintext",value:Ee.value};if(!Array.isArray(Ee))return Ee.value;Ee.map(function(ve){return typeof ve=="string"?ve:ve.value})}return Ee},Te.prototype.doesSupportMarkdown=function(){var Ee,ve,Re;if(!_o(this.supportsMarkdown)){if(!_o(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var We=(Re=(ve=(Ee=this.lsOptions.clientCapabilities)===null||Ee===void 0?void 0:Ee.textDocument)===null||ve===void 0?void 0:ve.hover)===null||Re===void 0?void 0:Re.contentFormat;this.supportsMarkdown=Array.isArray(We)&&We.indexOf(Y.Markdown)!==-1}return this.supportsMarkdown},Te}();function Ht(Te,Ee){return Te}var jt=function(Te){var Ee={};function ve(Re){if(Ee[Re])return Ee[Re].exports;var We=Ee[Re]={i:Re,l:!1,exports:{}};return Te[Re].call(We.exports,We,We.exports,ve),We.l=!0,We.exports}return ve.m=Te,ve.c=Ee,ve.d=function(Re,We,Be){ve.o(Re,We)||Object.defineProperty(Re,We,{enumerable:!0,get:Be})},ve.r=function(Re){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Re,"__esModule",{value:!0})},ve.t=function(Re,We){if(1&We&&(Re=ve(Re)),8&We||4&We&&typeof Re=="object"&&Re&&Re.__esModule)return Re;var Be=Object.create(null);if(ve.r(Be),Object.defineProperty(Be,"default",{enumerable:!0,value:Re}),2&We&&typeof Re!="string")for(var Le in Re)ve.d(Be,Le,function(Ke){return Re[Ke]}.bind(null,Le));return Be},ve.n=function(Re){var We=Re&&Re.__esModule?function(){return Re.default}:function(){return Re};return ve.d(We,"a",We),We},ve.o=function(Re,We){return Object.prototype.hasOwnProperty.call(Re,We)},ve.p="",ve(ve.s=15)}([,,function(Te,Ee,ve){function Re(Le){this.__parent=Le,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function We(Le,Ke){this.__cache=[""],this.__indent_size=Le.indent_size,this.__indent_string=Le.indent_char,Le.indent_with_tabs||(this.__indent_string=new Array(Le.indent_size+1).join(Le.indent_char)),Ke=Ke||"",Le.indent_level>0&&(Ke=new Array(Le.indent_level+1).join(this.__indent_string)),this.__base_string=Ke,this.__base_string_length=Ke.length}function Be(Le,Ke){this.__indent_cache=new We(Le,Ke),this.raw=!1,this._end_with_newline=Le.end_with_newline,this.indent_size=Le.indent_size,this.wrap_line_length=Le.wrap_line_length,this.indent_empty_lines=Le.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Re.prototype.clone_empty=function(){var Le=new Re(this.__parent);return Le.set_indent(this.__indent_count,this.__alignment_count),Le},Re.prototype.item=function(Le){return Le<0?this.__items[this.__items.length+Le]:this.__items[Le]},Re.prototype.has_match=function(Le){for(var Ke=this.__items.length-1;Ke>=0;Ke--)if(this.__items[Ke].match(Le))return!0;return!1},Re.prototype.set_indent=function(Le,Ke){this.is_empty()&&(this.__indent_count=Le||0,this.__alignment_count=Ke||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var Le=this.__parent.current_line;return Le.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),Le.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),Le.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,Le.__items[0]===" "&&(Le.__items.splice(0,1),Le.__character_count-=1),!0}return!1},Re.prototype.is_empty=function(){return this.__items.length===0},Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Re.prototype.push=function(Le){this.__items.push(Le);var Ke=Le.lastIndexOf(` +`)),ve.value!=="")return ve}var rn=function(Te,Ee,ve,Re){return new(ve||(ve=Promise))(function(We,Be){function Le(yt){try{dt(Re.next(yt))}catch(xt){Be(xt)}}function Ke(yt){try{dt(Re.throw(yt))}catch(xt){Be(xt)}}function dt(yt){var xt;yt.done?We(yt.value):(xt=yt.value,xt instanceof ve?xt:new ve(function(Xt){Xt(xt)})).then(Le,Ke)}dt((Re=Re.apply(Te,Ee||[])).next())})},dr=function(Te,Ee){var ve,Re,We,Be,Le={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return Be={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Ke(dt){return function(yt){return function(xt){if(ve)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ve=1,Re&&(We=2&xt[0]?Re.return:xt[0]?Re.throw||((We=Re.return)&&We.call(Re),0):Re.next)&&!(We=We.call(Re,xt[1])).done)return We;switch(Re=0,We&&(xt=[2&xt[0],We.value]),xt[0]){case 0:case 1:We=xt;break;case 4:return Le.label++,{value:xt[1],done:!1};case 5:Le.label++,Re=xt[1],xt=[0];continue;case 7:xt=Le.ops.pop(),Le.trys.pop();continue;default:if(We=Le.trys,!((We=We.length>0&&We[We.length-1])||xt[0]!==6&&xt[0]!==2)){Le=0;continue}if(xt[0]===3&&(!We||xt[1]>We[0]&&xt[1]<We[3])){Le.label=xt[1];break}if(xt[0]===6&&Le.label<We[1]){Le.label=We[1],We=xt;break}if(We&&Le.label<We[2]){Le.label=We[2],Le.ops.push(xt);break}We[2]&&Le.ops.pop(),Le.trys.pop();continue}xt=Ee.call(Te,Le)}catch(Xt){xt=[6,Xt],Re=0}finally{ve=We=0}if(5&xt[0])throw xt[1];return{value:xt[0]?xt[1]:void 0,done:!0}}([dt,yt])}}},Dn=function(){function Te(Ee){this.readDirectory=Ee,this.atributeCompletions=[]}return Te.prototype.onHtmlAttributeValue=function(Ee){(function(ve,Re){var We=ne[ve];return We?typeof We=="string"?We===Re:We.indexOf(Re)!==-1:!1})(Ee.tag,Ee.attribute)&&this.atributeCompletions.push(Ee)},Te.prototype.computeCompletions=function(Ee,ve){return rn(this,void 0,void 0,function(){var Re,We,Be,Le,Ke,dt,yt,xt,Xt,mi;return dr(this,function(Yt){switch(Yt.label){case 0:Re={items:[],isIncomplete:!1},We=0,Be=this.atributeCompletions,Yt.label=1;case 1:return We<Be.length?(Le=Be[We],function(oi){return!(Wi(oi,"http")||Wi(oi,"https")||Wi(oi,"//"))}(Ke=function(oi){return Wi(oi,"'")||Wi(oi,'"')?oi.slice(1,-1):oi}(Ee.getText(Le.range)))?Ke!=="."&&Ke!==".."?[3,2]:(Re.isIncomplete=!0,[3,4]):[3,4]):[3,5];case 2:return dt=function(oi,qi,an){var _n,ei=oi.lastIndexOf("/");if(ei===-1)_n=function(sn,gn,Sn){var En=I(sn.start,gn),Xn=I(sn.end,Sn);return E.create(En,Xn)}(an,1,-1);else{var ii=qi.slice(ei+1),bi=I(an.end,-1-ii.length),ln=ii.indexOf(" "),mn=void 0;mn=ln!==-1?I(bi,ln):I(an.end,-1),_n=E.create(bi,mn)}return _n}(Le.value,Ke,Le.range),[4,this.providePathSuggestions(Le.value,dt,Ee,ve)];case 3:for(yt=Yt.sent(),xt=0,Xt=yt;xt<Xt.length;xt++)mi=Xt[xt],Re.items.push(mi);Yt.label=4;case 4:return We++,[3,1];case 5:return[2,Re]}})})},Te.prototype.providePathSuggestions=function(Ee,ve,Re,We){return rn(this,void 0,void 0,function(){var Be,Le,Ke,dt,yt,xt,Xt,mi,Yt;return dr(this,function(oi){switch(oi.label){case 0:if(Be=Ee.substring(0,Ee.lastIndexOf("/")+1),!(Le=We.resolveReference(Be||".",Re.uri)))return[3,4];oi.label=1;case 1:return oi.trys.push([1,3,,4]),Ke=[],[4,this.readDirectory(Le)];case 2:for(dt=oi.sent(),yt=0,xt=dt;yt<xt.length;yt++)Xt=xt[yt],mi=Xt[0],Yt=Xt[1],mi.charCodeAt(0)!==On&&Ke.push(qt(mi,Yt===Ii.Directory,ve));return[2,Ke];case 3:return oi.sent(),[3,4];case 4:return[2,[]]}})})},Te}(),On=".".charCodeAt(0);function qt(Te,Ee,ve){return Ee?{label:Te+="/",kind:te.Folder,textEdit:g.replace(ve,Te),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Te,kind:te.File,textEdit:g.replace(ve,Te)}}function I(Te,Ee){return H.create(Te.line,Te.character+Ee)}var ne={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},_e=function(Te,Ee,ve,Re){return new(ve||(ve=Promise))(function(We,Be){function Le(yt){try{dt(Re.next(yt))}catch(xt){Be(xt)}}function Ke(yt){try{dt(Re.throw(yt))}catch(xt){Be(xt)}}function dt(yt){var xt;yt.done?We(yt.value):(xt=yt.value,xt instanceof ve?xt:new ve(function(Xt){Xt(xt)})).then(Le,Ke)}dt((Re=Re.apply(Te,Ee||[])).next())})},Fe=function(Te,Ee){var ve,Re,We,Be,Le={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return Be={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Ke(dt){return function(yt){return function(xt){if(ve)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ve=1,Re&&(We=2&xt[0]?Re.return:xt[0]?Re.throw||((We=Re.return)&&We.call(Re),0):Re.next)&&!(We=We.call(Re,xt[1])).done)return We;switch(Re=0,We&&(xt=[2&xt[0],We.value]),xt[0]){case 0:case 1:We=xt;break;case 4:return Le.label++,{value:xt[1],done:!1};case 5:Le.label++,Re=xt[1],xt=[0];continue;case 7:xt=Le.ops.pop(),Le.trys.pop();continue;default:if(We=Le.trys,!((We=We.length>0&&We[We.length-1])||xt[0]!==6&&xt[0]!==2)){Le=0;continue}if(xt[0]===3&&(!We||xt[1]>We[0]&&xt[1]<We[3])){Le.label=xt[1];break}if(xt[0]===6&&Le.label<We[1]){Le.label=We[1],We=xt;break}if(We&&Le.label<We[2]){Le.label=We[2],Le.ops.push(xt);break}We[2]&&Le.ops.pop(),Le.trys.pop();continue}xt=Ee.call(Te,Le)}catch(Xt){xt=[6,Xt],Re=0}finally{ve=We=0}if(5&xt[0])throw xt[1];return{value:xt[0]?xt[1]:void 0,done:!0}}([dt,yt])}}},Xe=O(),rt=function(){function Te(Ee,ve){this.lsOptions=Ee,this.dataManager=ve,this.completionParticipants=[]}return Te.prototype.setCompletionParticipants=function(Ee){this.completionParticipants=Ee||[]},Te.prototype.doComplete2=function(Ee,ve,Re,We,Be){return _e(this,void 0,void 0,function(){var Le,Ke,dt,yt;return Fe(this,function(xt){switch(xt.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(Ee,ve,Re,Be)];Le=new Dn(this.lsOptions.fileSystemProvider.readDirectory),Ke=this.completionParticipants,this.completionParticipants=[Le].concat(Ke),dt=this.doComplete(Ee,ve,Re,Be),xt.label=1;case 1:return xt.trys.push([1,,3,4]),[4,Le.computeCompletions(Ee,We)];case 2:return yt=xt.sent(),[2,{isIncomplete:dt.isIncomplete||yt.isIncomplete,items:yt.items.concat(dt.items)}];case 3:return this.completionParticipants=Ke,[7];case 4:return[2]}})})},Te.prototype.doComplete=function(Ee,ve,Re,We){var Be=this._doComplete(Ee,ve,Re,We);return this.convertCompletionList(Be)},Te.prototype._doComplete=function(Ee,ve,Re,We){var Be={isIncomplete:!1,items:[]},Le=this.completionParticipants,Ke=this.dataManager.getDataProviders().filter(function(In){return In.isApplicable(Ee.languageId)&&(!We||We[In.getId()]!==!1)}),dt=this.doesSupportMarkdown(),yt=Ee.getText(),xt=Ee.offsetAt(ve),Xt=Re.findNodeBefore(xt);if(!Xt)return Be;var mi,Yt=Hi(yt,Xt.start),oi="";function qi(In,Rn){return Rn===void 0&&(Rn=xt),In>xt&&(In=xt),{start:Ee.positionAt(In),end:Ee.positionAt(Rn)}}function an(In,Rn){var Qn=qi(In,Rn);return Ke.forEach(function(_r){_r.provideTags().forEach(function(Rr){Be.items.push({label:Rr.name,kind:te.Property,documentation:Gn(Rr,dt),textEdit:g.replace(Qn,Rr.name),insertTextFormat:he.PlainText})})}),Be}function _n(In){for(var Rn=In;Rn>0;){var Qn=yt.charAt(Rn-1);if(` +\r`.indexOf(Qn)>=0)return yt.substring(Rn,In);if(!Mt(Qn))return null;Rn--}return yt.substring(0,In)}function ei(In,Rn,Qn){Qn===void 0&&(Qn=xt);var _r=qi(In,Qn),Rr=Dt(yt,Qn,Wt.WithinEndTag,et.EndTagClose)?"":">",xr=Xt;for(Rn&&(xr=xr.parent);xr;){var Sr=xr.tag;if(Sr&&(!xr.closed||xr.endTagStart&&xr.endTagStart>xt)){var ur={label:"/"+Sr,kind:te.Property,filterText:"/"+Sr,textEdit:g.replace(_r,"/"+Sr+Rr),insertTextFormat:he.PlainText},Tn=_n(xr.start),Lr=_n(In-1);if(Tn!==null&&Lr!==null&&Tn!==Lr){var Ur=Tn+"</"+Sr+Rr;ur.textEdit=g.replace(qi(In-1-Lr.length),Ur),ur.filterText=Lr+"</"+Sr}return Be.items.push(ur),Be}xr=xr.parent}return Rn||Ke.forEach(function(go){go.provideTags().forEach(function(vr){Be.items.push({label:"/"+vr.name,kind:te.Property,documentation:Gn(vr,dt),filterText:"/"+vr+Rr,textEdit:g.replace(_r,"/"+vr+Rr),insertTextFormat:he.PlainText})})}),Be}function ii(In,Rn){if(We&&We.hideAutoCompleteProposals)return Be;if(!Et(Rn)){var Qn=Ee.positionAt(In);Be.items.push({label:"</"+Rn+">",kind:te.Property,filterText:"</"+Rn+">",textEdit:g.insert(Qn,"$0</"+Rn+">"),insertTextFormat:he.Snippet})}return Be}function bi(In,Rn){return an(In,Rn),ei(In,!0,Rn),Be}function ln(In,Rn){Rn===void 0&&(Rn=xt);for(var Qn=xt;Qn<Rn&&yt[Qn]!=="<";)Qn++;var _r=qi(In,Qn),Rr=Dt(yt,Rn,Wt.AfterAttributeName,et.DelimiterAssign)?"":'="$1"',xr=Object.create(null);return Ke.forEach(function(Sr){Sr.provideAttributes(oi).forEach(function(ur){if(!xr[ur.name]){xr[ur.name]=!0;var Tn,Lr=ur.name;ur.valueSet!=="v"&&Rr.length&&(Lr+=Rr,(ur.valueSet||ur.name==="style")&&(Tn={title:"Suggest",command:"editor.action.triggerSuggest"})),Be.items.push({label:ur.name,kind:ur.valueSet==="handler"?te.Function:te.Value,documentation:Gn(ur,dt),textEdit:g.replace(_r,Lr),insertTextFormat:he.Snippet,command:Tn})}})}),function(Sr,ur){var Tn={};Tn["data-"]='data-$1="$2"',Re&&Re.roots.forEach(function(Lr){return function Ur(go){go.attributeNames.forEach(function(vr){!Wi(vr,"data-")||Tn[vr]||ur[vr]||(Tn[vr]=vr+'="$1"')}),go.children.forEach(function(vr){return Ur(vr)})}(Lr)}),Object.keys(Tn).forEach(function(Lr){return Be.items.push({label:Lr,kind:te.Value,textEdit:g.replace(Sr,Tn[Lr]),insertTextFormat:he.Snippet})})}(_r,xr),Be}function mn(In,Rn){var Qn,_r,Rr,xr;if(Rn===void 0&&(Rn=xt),xt>In&&xt<=Rn&&(xr=yt[In],/^["']*$/.test(xr))){var Sr=In+1,ur=Rn;Rn>In&&yt[Rn-1]===yt[In]&&ur--;var Tn=function(lo,kr,Lo){for(;kr>Lo&&!Mt(lo[kr-1]);)kr--;return kr}(yt,xt,Sr),Lr=function(lo,kr,Lo){for(;kr<Lo&&!Mt(lo[kr]);)kr++;return kr}(yt,xt,ur);Qn=qi(Tn,Lr),Rr=xt>=Sr&&xt<=ur?yt.substring(Sr,xt):"",_r=!1}else Qn=qi(In,Rn),Rr=yt.substring(In,xt),_r=!0;if(Le.length>0)for(var Ur=oi.toLowerCase(),go=mi.toLowerCase(),vr=qi(In,Rn),ls=0,Bo=Le;ls<Bo.length;ls++){var Kn=Bo[ls];Kn.onHtmlAttributeValue&&Kn.onHtmlAttributeValue({document:Ee,position:ve,tag:Ur,attribute:go,value:Rr,range:vr})}return Ke.forEach(function(lo){lo.provideValues(oi,mi).forEach(function(kr){var Lo=_r?'"'+kr.name+'"':kr.name;Be.items.push({label:kr.name,filterText:Lo,kind:te.Unit,documentation:Gn(kr,dt),textEdit:g.replace(Qn,Lo),insertTextFormat:he.PlainText})})}),Sn(),Be}function sn(In){return xt===Yt.getTokenEnd()&&(Xn=Yt.scan())===In&&Yt.getTokenOffset()===xt?Yt.getTokenEnd():xt}function gn(){for(var In=0,Rn=Le;In<Rn.length;In++){var Qn=Rn[In];Qn.onHtmlContent&&Qn.onHtmlContent({document:Ee,position:ve})}return Sn()}function Sn(){for(var In,Rn,Qn,_r=xt-1,Rr=ve.character;_r>=0&&Jn(yt,_r);)_r--,Rr--;if(_r>=0&&yt[_r]==="&"){var xr=E.create(H.create(ve.line,Rr-1),ve);for(var Sr in Pi)if(Rn=";",Qn=void 0,(Qn=(In=Sr).length-Rn.length)>0?In.lastIndexOf(Rn)===Qn:Qn===0&&In===Rn){var ur="&"+Sr;Be.items.push({label:ur,kind:te.Keyword,documentation:Xe("entity.propose","Character entity representing '"+Pi[Sr]+"'"),textEdit:g.replace(xr,ur),insertTextFormat:he.PlainText})}}return Be}for(var En,Xn=Yt.scan();Xn!==et.EOS&&Yt.getTokenOffset()<=xt;){switch(Xn){case et.StartTagOpen:if(Yt.getTokenEnd()===xt){var Yn=sn(et.StartTag);return ve.line===0&&(En=void 0,En=qi(xt,Yn),Be.items.push({label:"!DOCTYPE",kind:te.Property,documentation:"A preamble for an HTML document.",textEdit:g.replace(En,"!DOCTYPE html>"),insertTextFormat:he.PlainText})),bi(xt,Yn)}break;case et.StartTag:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return an(Yt.getTokenOffset(),Yt.getTokenEnd());oi=Yt.getTokenText();break;case et.AttributeName:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return ln(Yt.getTokenOffset(),Yt.getTokenEnd());mi=Yt.getTokenText();break;case et.DelimiterAssign:if(Yt.getTokenEnd()===xt)return Yn=sn(et.AttributeValue),mn(xt,Yn);break;case et.AttributeValue:if(Yt.getTokenOffset()<=xt&&xt<=Yt.getTokenEnd())return mn(Yt.getTokenOffset(),Yt.getTokenEnd());break;case et.Whitespace:if(xt<=Yt.getTokenEnd())switch(Yt.getScannerState()){case Wt.AfterOpeningStartTag:return bi(Yt.getTokenOffset(),sn(et.StartTag));case Wt.WithinTag:case Wt.AfterAttributeName:return ln(Yt.getTokenEnd());case Wt.BeforeAttributeValue:return mn(Yt.getTokenEnd());case Wt.AfterOpeningEndTag:return ei(Yt.getTokenOffset()-1,!1);case Wt.WithinContent:return gn()}break;case et.EndTagOpen:if(xt<=Yt.getTokenEnd())return ei(Yt.getTokenOffset()+1,!1,sn(et.EndTag));break;case et.EndTag:if(xt<=Yt.getTokenEnd())for(var Nr=Yt.getTokenOffset()-1;Nr>=0;){var Ar=yt.charAt(Nr);if(Ar==="/")return ei(Nr,!1,Yt.getTokenEnd());if(!Mt(Ar))break;Nr--}break;case et.StartTagClose:if(xt<=Yt.getTokenEnd()&&oi)return ii(Yt.getTokenEnd(),oi);break;case et.Content:if(xt<=Yt.getTokenEnd())return gn();break;default:if(xt<=Yt.getTokenEnd())return Be}Xn=Yt.scan()}return Be},Te.prototype.doTagComplete=function(Ee,ve,Re){var We=Ee.offsetAt(ve);if(We<=0)return null;var Be=Ee.getText().charAt(We-1);if(Be===">"){if((Ke=Re.findNodeBefore(We))&&Ke.tag&&!Et(Ke.tag)&&Ke.start<We&&(!Ke.endTagStart||Ke.endTagStart>We))for(var Le=(dt=Hi(Ee.getText(),Ke.start)).scan();Le!==et.EOS&&dt.getTokenEnd()<=We;){if(Le===et.StartTagClose&&dt.getTokenEnd()===We)return"$0</"+Ke.tag+">";Le=dt.scan()}}else if(Be==="/"){for(var Ke=Re.findNodeBefore(We);Ke&&Ke.closed;)Ke=Ke.parent;if(Ke&&Ke.tag){var dt;for(Le=(dt=Hi(Ee.getText(),Ke.start)).scan();Le!==et.EOS&&dt.getTokenEnd()<=We;){if(Le===et.EndTagOpen&&dt.getTokenEnd()===We)return Ke.tag+">";Le=dt.scan()}}}return null},Te.prototype.convertCompletionList=function(Ee){return this.doesSupportMarkdown()||Ee.items.forEach(function(ve){ve.documentation&&typeof ve.documentation!="string"&&(ve.documentation={kind:"plaintext",value:ve.documentation.value})}),Ee},Te.prototype.doesSupportMarkdown=function(){var Ee,ve,Re;if(!br(this.supportsMarkdown)){if(!br(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var We=(Re=(ve=(Ee=this.lsOptions.clientCapabilities.textDocument)===null||Ee===void 0?void 0:Ee.completion)===null||ve===void 0?void 0:ve.completionItem)===null||Re===void 0?void 0:Re.documentationFormat;this.supportsMarkdown=Array.isArray(We)&&We.indexOf(Y.Markdown)!==-1}return this.supportsMarkdown},Te}();function Mt(Te){return/^\s*$/.test(Te)}function Dt(Te,Ee,ve,Re){for(var We=Hi(Te,Ee,ve),Be=We.scan();Be===et.Whitespace;)Be=We.scan();return Be===Re}var Tt=function(){function Te(Ee,ve){this.lsOptions=Ee,this.dataManager=ve}return Te.prototype.doHover=function(Ee,ve,Re){var We=this.convertContents.bind(this),Be=this.doesSupportMarkdown(),Le=Ee.offsetAt(ve),Ke=Re.findNodeAt(Le);if(!Ke||!Ke.tag)return null;var dt=this.dataManager.getDataProviders().filter(function(ei){return ei.isApplicable(Ee.languageId)});function yt(ei,ii,bi){for(var ln=function(Sn){var En=null;if(Sn.provideTags().forEach(function(Xn){if(Xn.name.toLowerCase()===ei.toLowerCase()){var Yn=Gn(Xn,Be);Yn||(Yn={kind:Be?"markdown":"plaintext",value:""}),En={contents:Yn,range:ii}}}),En)return En.contents=We(En.contents),{value:En}},mn=0,sn=dt;mn<sn.length;mn++){var gn=ln(sn[mn]);if(typeof gn=="object")return gn.value}return null}function xt(ei,ii){for(var bi=Hi(Ee.getText(),ii),ln=bi.scan();ln!==et.EOS&&(bi.getTokenEnd()<Le||bi.getTokenEnd()===Le&&ln!==ei);)ln=bi.scan();return ln===ei&&Le<=bi.getTokenEnd()?{start:Ee.positionAt(bi.getTokenOffset()),end:Ee.positionAt(bi.getTokenEnd())}:null}if(Ke.endTagStart&&Le>=Ke.endTagStart){var Xt=xt(et.EndTag,Ke.endTagStart);return Xt?yt(Ke.tag,Xt):null}var mi=xt(et.StartTag,Ke.start);if(mi)return yt(Ke.tag,mi);var Yt=xt(et.AttributeName,Ke.start);if(Yt)return function(ei,ii,bi){for(var ln=function(Sn){var En=null;if(Sn.provideAttributes(ei).forEach(function(Xn){if(ii===Xn.name&&Xn.description){var Yn=Gn(Xn,Be);En=Yn?{contents:Yn,range:bi}:null}}),En)return En.contents=We(En.contents),{value:En}},mn=0,sn=dt;mn<sn.length;mn++){var gn=ln(sn[mn]);if(typeof gn=="object")return gn.value}return null}(qi=Ke.tag,Ee.getText(Yt),Yt);var oi=xt(et.AttributeValue,Ke.start);if(oi){var qi=Ke.tag,an=function(ei){return ei.length<=1?ei.replace(/['"]/,""):(ei[0]!=="'"&&ei[0]!=='"'||(ei=ei.slice(1)),ei[ei.length-1]!=="'"&&ei[ei.length-1]!=='"'||(ei=ei.slice(0,-1)),ei)}(Ee.getText(oi)),_n=function(ei,ii){for(var bi=Hi(Ee.getText(),ei),ln=bi.scan(),mn=void 0;ln!==et.EOS&&bi.getTokenEnd()<=ii;)(ln=bi.scan())===et.AttributeName&&(mn=bi.getTokenText());return mn}(Ke.start,Ee.offsetAt(oi.start));if(_n)return function(ei,ii,bi,ln){for(var mn=function(En){var Xn=null;if(En.provideValues(ei,ii).forEach(function(Yn){if(bi===Yn.name&&Yn.description){var Nr=Gn(Yn,Be);Xn=Nr?{contents:Nr,range:ln}:null}}),Xn)return Xn.contents=We(Xn.contents),{value:Xn}},sn=0,gn=dt;sn<gn.length;sn++){var Sn=mn(gn[sn]);if(typeof Sn=="object")return Sn.value}return null}(qi,_n,an,oi)}return null},Te.prototype.convertContents=function(Ee){if(!this.doesSupportMarkdown()){if(typeof Ee=="string")return Ee;if("kind"in Ee)return{kind:"plaintext",value:Ee.value};if(!Array.isArray(Ee))return Ee.value;Ee.map(function(ve){return typeof ve=="string"?ve:ve.value})}return Ee},Te.prototype.doesSupportMarkdown=function(){var Ee,ve,Re;if(!br(this.supportsMarkdown)){if(!br(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var We=(Re=(ve=(Ee=this.lsOptions.clientCapabilities)===null||Ee===void 0?void 0:Ee.textDocument)===null||ve===void 0?void 0:ve.hover)===null||Re===void 0?void 0:Re.contentFormat;this.supportsMarkdown=Array.isArray(We)&&We.indexOf(Y.Markdown)!==-1}return this.supportsMarkdown},Te}();function Ht(Te,Ee){return Te}var jt=function(Te){var Ee={};function ve(Re){if(Ee[Re])return Ee[Re].exports;var We=Ee[Re]={i:Re,l:!1,exports:{}};return Te[Re].call(We.exports,We,We.exports,ve),We.l=!0,We.exports}return ve.m=Te,ve.c=Ee,ve.d=function(Re,We,Be){ve.o(Re,We)||Object.defineProperty(Re,We,{enumerable:!0,get:Be})},ve.r=function(Re){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Re,"__esModule",{value:!0})},ve.t=function(Re,We){if(1&We&&(Re=ve(Re)),8&We||4&We&&typeof Re=="object"&&Re&&Re.__esModule)return Re;var Be=Object.create(null);if(ve.r(Be),Object.defineProperty(Be,"default",{enumerable:!0,value:Re}),2&We&&typeof Re!="string")for(var Le in Re)ve.d(Be,Le,function(Ke){return Re[Ke]}.bind(null,Le));return Be},ve.n=function(Re){var We=Re&&Re.__esModule?function(){return Re.default}:function(){return Re};return ve.d(We,"a",We),We},ve.o=function(Re,We){return Object.prototype.hasOwnProperty.call(Re,We)},ve.p="",ve(ve.s=15)}([,,function(Te,Ee,ve){function Re(Le){this.__parent=Le,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function We(Le,Ke){this.__cache=[""],this.__indent_size=Le.indent_size,this.__indent_string=Le.indent_char,Le.indent_with_tabs||(this.__indent_string=new Array(Le.indent_size+1).join(Le.indent_char)),Ke=Ke||"",Le.indent_level>0&&(Ke=new Array(Le.indent_level+1).join(this.__indent_string)),this.__base_string=Ke,this.__base_string_length=Ke.length}function Be(Le,Ke){this.__indent_cache=new We(Le,Ke),this.raw=!1,this._end_with_newline=Le.end_with_newline,this.indent_size=Le.indent_size,this.wrap_line_length=Le.wrap_line_length,this.indent_empty_lines=Le.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Re.prototype.clone_empty=function(){var Le=new Re(this.__parent);return Le.set_indent(this.__indent_count,this.__alignment_count),Le},Re.prototype.item=function(Le){return Le<0?this.__items[this.__items.length+Le]:this.__items[Le]},Re.prototype.has_match=function(Le){for(var Ke=this.__items.length-1;Ke>=0;Ke--)if(this.__items[Ke].match(Le))return!0;return!1},Re.prototype.set_indent=function(Le,Ke){this.is_empty()&&(this.__indent_count=Le||0,this.__alignment_count=Ke||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var Le=this.__parent.current_line;return Le.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),Le.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),Le.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,Le.__items[0]===" "&&(Le.__items.splice(0,1),Le.__character_count-=1),!0}return!1},Re.prototype.is_empty=function(){return this.__items.length===0},Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Re.prototype.push=function(Le){this.__items.push(Le);var Ke=Le.lastIndexOf(` `);Ke!==-1?this.__character_count=Le.length-Ke:this.__character_count+=Le.length},Re.prototype.pop=function(){var Le=null;return this.is_empty()||(Le=this.__items.pop(),this.__character_count-=Le.length),Le},Re.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},Re.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},Re.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},Re.prototype.toString=function(){var Le="";return this.is_empty()?this.__parent.indent_empty_lines&&(Le=this.__parent.get_indent_string(this.__indent_count)):(Le=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),Le+=this.__items.join("")),Le},We.prototype.get_indent_size=function(Le,Ke){var dt=this.__base_string_length;return Ke=Ke||0,Le<0&&(dt=0),dt+=Le*this.__indent_size,dt+=Ke},We.prototype.get_indent_string=function(Le,Ke){var dt=this.__base_string;return Ke=Ke||0,Le<0&&(Le=0,dt=""),Ke+=Le*this.__indent_size,this.__ensure_cache(Ke),dt+=this.__cache[Ke]},We.prototype.__ensure_cache=function(Le){for(;Le>=this.__cache.length;)this.__add_column()},We.prototype.__add_column=function(){var Le=this.__cache.length,Ke=0,dt="";this.__indent_size&&Le>=this.__indent_size&&(Le-=(Ke=Math.floor(Le/this.__indent_size))*this.__indent_size,dt=new Array(Ke+1).join(this.__indent_string)),Le&&(dt+=new Array(Le+1).join(" ")),this.__cache.push(dt)},Be.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},Be.prototype.get_line_number=function(){return this.__lines.length},Be.prototype.get_indent_string=function(Le,Ke){return this.__indent_cache.get_indent_string(Le,Ke)},Be.prototype.get_indent_size=function(Le,Ke){return this.__indent_cache.get_indent_size(Le,Ke)},Be.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},Be.prototype.add_new_line=function(Le){return!(this.is_empty()||!Le&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},Be.prototype.get_code=function(Le){this.trim(!0);var Ke=this.current_line.pop();Ke&&(Ke[Ke.length-1]===` `&&(Ke=Ke.replace(/\n+$/g,"")),this.current_line.push(Ke)),this._end_with_newline&&this.__add_outputline();var dt=this.__lines.join(` `);return Le!==` @@ -41,11 +41,11 @@ `+Ke+` You passed in: '`+this.raw_options[Le]+"'");return yt[0]},Re.prototype._get_selection_list=function(Le,Ke,dt){if(!Ke||Ke.length===0)throw new Error("Selection list cannot be empty.");if(dt=dt||[Ke[0]],!this._is_valid_selection(dt,Ke))throw new Error("Invalid Default Value!");var yt=this._get_array(Le,dt);if(!this._is_valid_selection(yt,Ke))throw new Error("Invalid Option Value: The option '"+Le+`' can contain only the following values: `+Ke+` -You passed in: '`+this.raw_options[Le]+"'");return yt},Re.prototype._is_valid_selection=function(Le,Ke){return Le.length&&Ke.length&&!Le.some(function(dt){return Ke.indexOf(dt)===-1})},Te.exports.Options=Re,Te.exports.normalizeOpts=Be,Te.exports.mergeOpts=We},,function(Te,Ee,ve){var Re=RegExp.prototype.hasOwnProperty("sticky");function We(Be){this.__input=Be||"",this.__input_length=this.__input.length,this.__position=0}We.prototype.restart=function(){this.__position=0},We.prototype.back=function(){this.__position>0&&(this.__position-=1)},We.prototype.hasNext=function(){return this.__position<this.__input_length},We.prototype.next=function(){var Be=null;return this.hasNext()&&(Be=this.__input.charAt(this.__position),this.__position+=1),Be},We.prototype.peek=function(Be){var Le=null;return Be=Be||0,(Be+=this.__position)>=0&&Be<this.__input_length&&(Le=this.__input.charAt(Be)),Le},We.prototype.__match=function(Be,Le){Be.lastIndex=Le;var Ke=Be.exec(this.__input);return!Ke||Re&&Be.sticky||Ke.index!==Le&&(Ke=null),Ke},We.prototype.test=function(Be,Le){return Le=Le||0,(Le+=this.__position)>=0&&Le<this.__input_length&&!!this.__match(Be,Le)},We.prototype.testChar=function(Be,Le){var Ke=this.peek(Le);return Be.lastIndex=0,Ke!==null&&Be.test(Ke)},We.prototype.match=function(Be){var Le=this.__match(Be,this.__position);return Le?this.__position+=Le[0].length:Le=null,Le},We.prototype.read=function(Be,Le,Ke){var dt,yt="";return Be&&(dt=this.match(Be))&&(yt+=dt[0]),!Le||!dt&&Be||(yt+=this.readUntil(Le,Ke)),yt},We.prototype.readUntil=function(Be,Le){var Ke,dt=this.__position;Be.lastIndex=this.__position;var yt=Be.exec(this.__input);return yt?(dt=yt.index,Le&&(dt+=yt[0].length)):dt=this.__input_length,Ke=this.__input.substring(this.__position,dt),this.__position=dt,Ke},We.prototype.readUntilAfter=function(Be){return this.readUntil(Be,!0)},We.prototype.get_regexp=function(Be,Le){var Ke=null,dt="g";return Le&&Re&&(dt="y"),typeof Be=="string"&&Be!==""?Ke=new RegExp(Be,dt):Be&&(Ke=new RegExp(Be.source,dt)),Ke},We.prototype.get_literal_regexp=function(Be){return RegExp(Be.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},We.prototype.peekUntilAfter=function(Be){var Le=this.__position,Ke=this.readUntilAfter(Be);return this.__position=Le,Ke},We.prototype.lookBack=function(Be){var Le=this.__position-1;return Le>=Be.length&&this.__input.substring(Le-Be.length,Le).toLowerCase()===Be},Te.exports.InputScanner=We},,,,,function(Te,Ee,ve){function Re(We,Be){We=typeof We=="string"?We:We.source,Be=typeof Be=="string"?Be:Be.source,this.__directives_block_pattern=new RegExp(We+/ beautify( \w+[:]\w+)+ /.source+Be,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(We+/\sbeautify\signore:end\s/.source+Be,"g")}Re.prototype.get_directives=function(We){if(!We.match(this.__directives_block_pattern))return null;var Be={};this.__directive_pattern.lastIndex=0;for(var Le=this.__directive_pattern.exec(We);Le;)Be[Le[1]]=Le[2],Le=this.__directive_pattern.exec(We);return Be},Re.prototype.readIgnored=function(We){return We.readUntilAfter(this.__directives_end_ignore_pattern)},Te.exports.Directives=Re},,function(Te,Ee,ve){var Re=ve(16).Beautifier,We=ve(17).Options;Te.exports=function(Be,Le){return new Re(Be,Le).beautify()},Te.exports.defaultOptions=function(){return new We}},function(Te,Ee,ve){var Re=ve(17).Options,We=ve(2).Output,Be=ve(8).InputScanner,Le=new(ve(13)).Directives(/\/\*/,/\*\//),Ke=/\r\n|[\r\n]/,dt=/\r\n|[\r\n]/g,yt=/\s/,xt=/(?:\s|\n)+/g,Xt=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,mi=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Yt(ri,qi){this._source_text=ri||"",this._options=new Re(qi),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}Yt.prototype.eatString=function(ri){var qi="";for(this._ch=this._input.next();this._ch;){if(qi+=this._ch,this._ch==="\\")qi+=this._input.next();else if(ri.indexOf(this._ch)!==-1||this._ch===` -`)break;this._ch=this._input.next()}return qi},Yt.prototype.eatWhitespace=function(ri){for(var qi=yt.test(this._input.peek()),an=!0;yt.test(this._input.peek());)this._ch=this._input.next(),ri&&this._ch===` -`&&(this._options.preserve_newlines||an)&&(an=!1,this._output.add_new_line(!0));return qi},Yt.prototype.foundNestedPseudoClass=function(){for(var ri=0,qi=1,an=this._input.peek(qi);an;){if(an==="{")return!0;if(an==="(")ri+=1;else if(an===")"){if(ri===0)return!1;ri-=1}else if(an===";"||an==="}")return!1;qi++,an=this._input.peek(qi)}return!1},Yt.prototype.print_string=function(ri){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(ri)},Yt.prototype.preserveSingleSpace=function(ri){ri&&(this._output.space_before_token=!0)},Yt.prototype.indent=function(){this._indentLevel++},Yt.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},Yt.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ri=this._source_text,qi=this._options.eol;qi==="auto"&&(qi=` -`,ri&&Ke.test(ri||"")&&(qi=ri.match(Ke)[0]));var an=(ri=ri.replace(dt,` -`)).match(/^[\t ]*/)[0];this._output=new We(this._options,an),this._input=new Be(ri),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _n,ei,ii=0,bi=!1,ln=!1,mn=!1,sn=!1,gn=!1,Sn=this._ch;_n=this._input.read(xt)!=="",ei=Sn,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Sn=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var En=this._input.read(Xt),Xn=Le.get_directives(En);Xn&&Xn.ignore==="start"&&(En+=Le.readIgnored(this._input)),this.print_string(En),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(mi)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(_n),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Yn=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Yn.match(/[ :]$/)&&(Yn=this.eatString(": ").replace(/\s$/,""),this.print_string(Yn),this._output.space_before_token=!0),(Yn=Yn.replace(/\s$/,""))==="extend"?sn=!0:Yn==="import"&&(gn=!0),Yn in this.NESTED_AT_RULE?(this._nestedLevel+=1,Yn in this.CONDITIONAL_GROUP_RULE&&(mn=!0)):bi||ii!==0||Yn.indexOf(":")===-1||(ln=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(_n),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(ln&&(ln=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),mn?(mn=!1,bi=this._indentLevel>this._nestedLevel):bi=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&bi&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),ei==="{"&&this._output.trim(!0),gn=!1,sn=!1,ln&&(this.outdent(),ln=!1),this.print_string(this._ch),bi=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?!bi&&!mn||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||sn||ii!==0?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),ln||(ln=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(_n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?ii===0?(ln&&(this.outdent(),ln=!1),sn=!1,gn=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),ii++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),ii&&(ii--,this.outdent()))):(this.preserveSingleSpace(_n),this.print_string(this._ch),this.eatWhitespace(),ii++,this.indent()):this._ch===")"?(ii&&(ii--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||ln||ii!==0||gn?this._output.space_before_token=!0:this._output.add_new_line()):this._ch!==">"&&this._ch!=="+"&&this._ch!=="~"||ln||ii!==0?this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(_n),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),yt.test(this._ch)&&(this._ch="")):this._ch!=="!"||this._input.lookBack("\\")?(this.preserveSingleSpace(_n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&yt.test(this._ch)&&(this._ch=""));return this._output.get_code(qi)},Te.exports.Beautifier=Yt},function(Te,Ee,ve){var Re=ve(6).Options;function We(Be){Re.call(this,Be,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var Le=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||Le}We.prototype=new Re,Te.exports.Options=We}]),Kt=function(Te){var Ee={};function ve(Re){if(Ee[Re])return Ee[Re].exports;var We=Ee[Re]={i:Re,l:!1,exports:{}};return Te[Re].call(We.exports,We,We.exports,ve),We.l=!0,We.exports}return ve.m=Te,ve.c=Ee,ve.d=function(Re,We,Be){ve.o(Re,We)||Object.defineProperty(Re,We,{enumerable:!0,get:Be})},ve.r=function(Re){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Re,"__esModule",{value:!0})},ve.t=function(Re,We){if(1&We&&(Re=ve(Re)),8&We||4&We&&typeof Re=="object"&&Re&&Re.__esModule)return Re;var Be=Object.create(null);if(ve.r(Be),Object.defineProperty(Be,"default",{enumerable:!0,value:Re}),2&We&&typeof Re!="string")for(var Le in Re)ve.d(Be,Le,function(Ke){return Re[Ke]}.bind(null,Le));return Be},ve.n=function(Re){var We=Re&&Re.__esModule?function(){return Re.default}:function(){return Re};return ve.d(We,"a",We),We},ve.o=function(Re,We){return Object.prototype.hasOwnProperty.call(Re,We)},ve.p="",ve(ve.s=18)}([,,function(Te,Ee,ve){function Re(Le){this.__parent=Le,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function We(Le,Ke){this.__cache=[""],this.__indent_size=Le.indent_size,this.__indent_string=Le.indent_char,Le.indent_with_tabs||(this.__indent_string=new Array(Le.indent_size+1).join(Le.indent_char)),Ke=Ke||"",Le.indent_level>0&&(Ke=new Array(Le.indent_level+1).join(this.__indent_string)),this.__base_string=Ke,this.__base_string_length=Ke.length}function Be(Le,Ke){this.__indent_cache=new We(Le,Ke),this.raw=!1,this._end_with_newline=Le.end_with_newline,this.indent_size=Le.indent_size,this.wrap_line_length=Le.wrap_line_length,this.indent_empty_lines=Le.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Re.prototype.clone_empty=function(){var Le=new Re(this.__parent);return Le.set_indent(this.__indent_count,this.__alignment_count),Le},Re.prototype.item=function(Le){return Le<0?this.__items[this.__items.length+Le]:this.__items[Le]},Re.prototype.has_match=function(Le){for(var Ke=this.__items.length-1;Ke>=0;Ke--)if(this.__items[Ke].match(Le))return!0;return!1},Re.prototype.set_indent=function(Le,Ke){this.is_empty()&&(this.__indent_count=Le||0,this.__alignment_count=Ke||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var Le=this.__parent.current_line;return Le.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),Le.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),Le.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,Le.__items[0]===" "&&(Le.__items.splice(0,1),Le.__character_count-=1),!0}return!1},Re.prototype.is_empty=function(){return this.__items.length===0},Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Re.prototype.push=function(Le){this.__items.push(Le);var Ke=Le.lastIndexOf(` +You passed in: '`+this.raw_options[Le]+"'");return yt},Re.prototype._is_valid_selection=function(Le,Ke){return Le.length&&Ke.length&&!Le.some(function(dt){return Ke.indexOf(dt)===-1})},Te.exports.Options=Re,Te.exports.normalizeOpts=Be,Te.exports.mergeOpts=We},,function(Te,Ee,ve){var Re=RegExp.prototype.hasOwnProperty("sticky");function We(Be){this.__input=Be||"",this.__input_length=this.__input.length,this.__position=0}We.prototype.restart=function(){this.__position=0},We.prototype.back=function(){this.__position>0&&(this.__position-=1)},We.prototype.hasNext=function(){return this.__position<this.__input_length},We.prototype.next=function(){var Be=null;return this.hasNext()&&(Be=this.__input.charAt(this.__position),this.__position+=1),Be},We.prototype.peek=function(Be){var Le=null;return Be=Be||0,(Be+=this.__position)>=0&&Be<this.__input_length&&(Le=this.__input.charAt(Be)),Le},We.prototype.__match=function(Be,Le){Be.lastIndex=Le;var Ke=Be.exec(this.__input);return!Ke||Re&&Be.sticky||Ke.index!==Le&&(Ke=null),Ke},We.prototype.test=function(Be,Le){return Le=Le||0,(Le+=this.__position)>=0&&Le<this.__input_length&&!!this.__match(Be,Le)},We.prototype.testChar=function(Be,Le){var Ke=this.peek(Le);return Be.lastIndex=0,Ke!==null&&Be.test(Ke)},We.prototype.match=function(Be){var Le=this.__match(Be,this.__position);return Le?this.__position+=Le[0].length:Le=null,Le},We.prototype.read=function(Be,Le,Ke){var dt,yt="";return Be&&(dt=this.match(Be))&&(yt+=dt[0]),!Le||!dt&&Be||(yt+=this.readUntil(Le,Ke)),yt},We.prototype.readUntil=function(Be,Le){var Ke,dt=this.__position;Be.lastIndex=this.__position;var yt=Be.exec(this.__input);return yt?(dt=yt.index,Le&&(dt+=yt[0].length)):dt=this.__input_length,Ke=this.__input.substring(this.__position,dt),this.__position=dt,Ke},We.prototype.readUntilAfter=function(Be){return this.readUntil(Be,!0)},We.prototype.get_regexp=function(Be,Le){var Ke=null,dt="g";return Le&&Re&&(dt="y"),typeof Be=="string"&&Be!==""?Ke=new RegExp(Be,dt):Be&&(Ke=new RegExp(Be.source,dt)),Ke},We.prototype.get_literal_regexp=function(Be){return RegExp(Be.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},We.prototype.peekUntilAfter=function(Be){var Le=this.__position,Ke=this.readUntilAfter(Be);return this.__position=Le,Ke},We.prototype.lookBack=function(Be){var Le=this.__position-1;return Le>=Be.length&&this.__input.substring(Le-Be.length,Le).toLowerCase()===Be},Te.exports.InputScanner=We},,,,,function(Te,Ee,ve){function Re(We,Be){We=typeof We=="string"?We:We.source,Be=typeof Be=="string"?Be:Be.source,this.__directives_block_pattern=new RegExp(We+/ beautify( \w+[:]\w+)+ /.source+Be,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(We+/\sbeautify\signore:end\s/.source+Be,"g")}Re.prototype.get_directives=function(We){if(!We.match(this.__directives_block_pattern))return null;var Be={};this.__directive_pattern.lastIndex=0;for(var Le=this.__directive_pattern.exec(We);Le;)Be[Le[1]]=Le[2],Le=this.__directive_pattern.exec(We);return Be},Re.prototype.readIgnored=function(We){return We.readUntilAfter(this.__directives_end_ignore_pattern)},Te.exports.Directives=Re},,function(Te,Ee,ve){var Re=ve(16).Beautifier,We=ve(17).Options;Te.exports=function(Be,Le){return new Re(Be,Le).beautify()},Te.exports.defaultOptions=function(){return new We}},function(Te,Ee,ve){var Re=ve(17).Options,We=ve(2).Output,Be=ve(8).InputScanner,Le=new(ve(13)).Directives(/\/\*/,/\*\//),Ke=/\r\n|[\r\n]/,dt=/\r\n|[\r\n]/g,yt=/\s/,xt=/(?:\s|\n)+/g,Xt=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,mi=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Yt(oi,qi){this._source_text=oi||"",this._options=new Re(qi),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}Yt.prototype.eatString=function(oi){var qi="";for(this._ch=this._input.next();this._ch;){if(qi+=this._ch,this._ch==="\\")qi+=this._input.next();else if(oi.indexOf(this._ch)!==-1||this._ch===` +`)break;this._ch=this._input.next()}return qi},Yt.prototype.eatWhitespace=function(oi){for(var qi=yt.test(this._input.peek()),an=!0;yt.test(this._input.peek());)this._ch=this._input.next(),oi&&this._ch===` +`&&(this._options.preserve_newlines||an)&&(an=!1,this._output.add_new_line(!0));return qi},Yt.prototype.foundNestedPseudoClass=function(){for(var oi=0,qi=1,an=this._input.peek(qi);an;){if(an==="{")return!0;if(an==="(")oi+=1;else if(an===")"){if(oi===0)return!1;oi-=1}else if(an===";"||an==="}")return!1;qi++,an=this._input.peek(qi)}return!1},Yt.prototype.print_string=function(oi){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(oi)},Yt.prototype.preserveSingleSpace=function(oi){oi&&(this._output.space_before_token=!0)},Yt.prototype.indent=function(){this._indentLevel++},Yt.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},Yt.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var oi=this._source_text,qi=this._options.eol;qi==="auto"&&(qi=` +`,oi&&Ke.test(oi||"")&&(qi=oi.match(Ke)[0]));var an=(oi=oi.replace(dt,` +`)).match(/^[\t ]*/)[0];this._output=new We(this._options,an),this._input=new Be(oi),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _n,ei,ii=0,bi=!1,ln=!1,mn=!1,sn=!1,gn=!1,Sn=this._ch;_n=this._input.read(xt)!=="",ei=Sn,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Sn=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var En=this._input.read(Xt),Xn=Le.get_directives(En);Xn&&Xn.ignore==="start"&&(En+=Le.readIgnored(this._input)),this.print_string(En),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(mi)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(_n),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Yn=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Yn.match(/[ :]$/)&&(Yn=this.eatString(": ").replace(/\s$/,""),this.print_string(Yn),this._output.space_before_token=!0),(Yn=Yn.replace(/\s$/,""))==="extend"?sn=!0:Yn==="import"&&(gn=!0),Yn in this.NESTED_AT_RULE?(this._nestedLevel+=1,Yn in this.CONDITIONAL_GROUP_RULE&&(mn=!0)):bi||ii!==0||Yn.indexOf(":")===-1||(ln=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(_n),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(ln&&(ln=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),mn?(mn=!1,bi=this._indentLevel>this._nestedLevel):bi=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&bi&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),ei==="{"&&this._output.trim(!0),gn=!1,sn=!1,ln&&(this.outdent(),ln=!1),this.print_string(this._ch),bi=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?!bi&&!mn||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||sn||ii!==0?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),ln||(ln=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(_n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?ii===0?(ln&&(this.outdent(),ln=!1),sn=!1,gn=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),ii++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),ii&&(ii--,this.outdent()))):(this.preserveSingleSpace(_n),this.print_string(this._ch),this.eatWhitespace(),ii++,this.indent()):this._ch===")"?(ii&&(ii--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||ln||ii!==0||gn?this._output.space_before_token=!0:this._output.add_new_line()):this._ch!==">"&&this._ch!=="+"&&this._ch!=="~"||ln||ii!==0?this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(_n),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),yt.test(this._ch)&&(this._ch="")):this._ch!=="!"||this._input.lookBack("\\")?(this.preserveSingleSpace(_n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&yt.test(this._ch)&&(this._ch=""));return this._output.get_code(qi)},Te.exports.Beautifier=Yt},function(Te,Ee,ve){var Re=ve(6).Options;function We(Be){Re.call(this,Be,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var Le=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||Le}We.prototype=new Re,Te.exports.Options=We}]),Kt=function(Te){var Ee={};function ve(Re){if(Ee[Re])return Ee[Re].exports;var We=Ee[Re]={i:Re,l:!1,exports:{}};return Te[Re].call(We.exports,We,We.exports,ve),We.l=!0,We.exports}return ve.m=Te,ve.c=Ee,ve.d=function(Re,We,Be){ve.o(Re,We)||Object.defineProperty(Re,We,{enumerable:!0,get:Be})},ve.r=function(Re){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Re,"__esModule",{value:!0})},ve.t=function(Re,We){if(1&We&&(Re=ve(Re)),8&We||4&We&&typeof Re=="object"&&Re&&Re.__esModule)return Re;var Be=Object.create(null);if(ve.r(Be),Object.defineProperty(Be,"default",{enumerable:!0,value:Re}),2&We&&typeof Re!="string")for(var Le in Re)ve.d(Be,Le,function(Ke){return Re[Ke]}.bind(null,Le));return Be},ve.n=function(Re){var We=Re&&Re.__esModule?function(){return Re.default}:function(){return Re};return ve.d(We,"a",We),We},ve.o=function(Re,We){return Object.prototype.hasOwnProperty.call(Re,We)},ve.p="",ve(ve.s=18)}([,,function(Te,Ee,ve){function Re(Le){this.__parent=Le,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function We(Le,Ke){this.__cache=[""],this.__indent_size=Le.indent_size,this.__indent_string=Le.indent_char,Le.indent_with_tabs||(this.__indent_string=new Array(Le.indent_size+1).join(Le.indent_char)),Ke=Ke||"",Le.indent_level>0&&(Ke=new Array(Le.indent_level+1).join(this.__indent_string)),this.__base_string=Ke,this.__base_string_length=Ke.length}function Be(Le,Ke){this.__indent_cache=new We(Le,Ke),this.raw=!1,this._end_with_newline=Le.end_with_newline,this.indent_size=Le.indent_size,this.wrap_line_length=Le.wrap_line_length,this.indent_empty_lines=Le.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Re.prototype.clone_empty=function(){var Le=new Re(this.__parent);return Le.set_indent(this.__indent_count,this.__alignment_count),Le},Re.prototype.item=function(Le){return Le<0?this.__items[this.__items.length+Le]:this.__items[Le]},Re.prototype.has_match=function(Le){for(var Ke=this.__items.length-1;Ke>=0;Ke--)if(this.__items[Ke].match(Le))return!0;return!1},Re.prototype.set_indent=function(Le,Ke){this.is_empty()&&(this.__indent_count=Le||0,this.__alignment_count=Ke||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var Le=this.__parent.current_line;return Le.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),Le.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),Le.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,Le.__items[0]===" "&&(Le.__items.splice(0,1),Le.__character_count-=1),!0}return!1},Re.prototype.is_empty=function(){return this.__items.length===0},Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Re.prototype.push=function(Le){this.__items.push(Le);var Ke=Le.lastIndexOf(` `);Ke!==-1?this.__character_count=Le.length-Ke:this.__character_count+=Le.length},Re.prototype.pop=function(){var Le=null;return this.is_empty()||(Le=this.__items.pop(),this.__character_count-=Le.length),Le},Re.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},Re.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},Re.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},Re.prototype.toString=function(){var Le="";return this.is_empty()?this.__parent.indent_empty_lines&&(Le=this.__parent.get_indent_string(this.__indent_count)):(Le=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),Le+=this.__items.join("")),Le},We.prototype.get_indent_size=function(Le,Ke){var dt=this.__base_string_length;return Ke=Ke||0,Le<0&&(dt=0),dt+=Le*this.__indent_size,dt+=Ke},We.prototype.get_indent_string=function(Le,Ke){var dt=this.__base_string;return Ke=Ke||0,Le<0&&(Le=0,dt=""),Ke+=Le*this.__indent_size,this.__ensure_cache(Ke),dt+=this.__cache[Ke]},We.prototype.__ensure_cache=function(Le){for(;Le>=this.__cache.length;)this.__add_column()},We.prototype.__add_column=function(){var Le=this.__cache.length,Ke=0,dt="";this.__indent_size&&Le>=this.__indent_size&&(Le-=(Ke=Math.floor(Le/this.__indent_size))*this.__indent_size,dt=new Array(Ke+1).join(this.__indent_string)),Le&&(dt+=new Array(Le+1).join(" ")),this.__cache.push(dt)},Be.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},Be.prototype.get_line_number=function(){return this.__lines.length},Be.prototype.get_indent_string=function(Le,Ke){return this.__indent_cache.get_indent_string(Le,Ke)},Be.prototype.get_indent_size=function(Le,Ke){return this.__indent_cache.get_indent_size(Le,Ke)},Be.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},Be.prototype.add_new_line=function(Le){return!(this.is_empty()||!Le&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},Be.prototype.get_code=function(Le){this.trim(!0);var Ke=this.current_line.pop();Ke&&(Ke[Ke.length-1]===` `&&(Ke=Ke.replace(/\n+$/g,"")),this.current_line.push(Ke)),this._end_with_newline&&this.__add_outputline();var dt=this.__lines.join(` `);return Le!==` @@ -54,21 +54,21 @@ You passed in: '`+this.raw_options[Le]+"'");return yt},Re.prototype._is_valid_se `+Ke+` You passed in: '`+this.raw_options[Le]+"'");return yt[0]},Re.prototype._get_selection_list=function(Le,Ke,dt){if(!Ke||Ke.length===0)throw new Error("Selection list cannot be empty.");if(dt=dt||[Ke[0]],!this._is_valid_selection(dt,Ke))throw new Error("Invalid Default Value!");var yt=this._get_array(Le,dt);if(!this._is_valid_selection(yt,Ke))throw new Error("Invalid Option Value: The option '"+Le+`' can contain only the following values: `+Ke+` -You passed in: '`+this.raw_options[Le]+"'");return yt},Re.prototype._is_valid_selection=function(Le,Ke){return Le.length&&Ke.length&&!Le.some(function(dt){return Ke.indexOf(dt)===-1})},Te.exports.Options=Re,Te.exports.normalizeOpts=Be,Te.exports.mergeOpts=We},,function(Te,Ee,ve){var Re=RegExp.prototype.hasOwnProperty("sticky");function We(Be){this.__input=Be||"",this.__input_length=this.__input.length,this.__position=0}We.prototype.restart=function(){this.__position=0},We.prototype.back=function(){this.__position>0&&(this.__position-=1)},We.prototype.hasNext=function(){return this.__position<this.__input_length},We.prototype.next=function(){var Be=null;return this.hasNext()&&(Be=this.__input.charAt(this.__position),this.__position+=1),Be},We.prototype.peek=function(Be){var Le=null;return Be=Be||0,(Be+=this.__position)>=0&&Be<this.__input_length&&(Le=this.__input.charAt(Be)),Le},We.prototype.__match=function(Be,Le){Be.lastIndex=Le;var Ke=Be.exec(this.__input);return!Ke||Re&&Be.sticky||Ke.index!==Le&&(Ke=null),Ke},We.prototype.test=function(Be,Le){return Le=Le||0,(Le+=this.__position)>=0&&Le<this.__input_length&&!!this.__match(Be,Le)},We.prototype.testChar=function(Be,Le){var Ke=this.peek(Le);return Be.lastIndex=0,Ke!==null&&Be.test(Ke)},We.prototype.match=function(Be){var Le=this.__match(Be,this.__position);return Le?this.__position+=Le[0].length:Le=null,Le},We.prototype.read=function(Be,Le,Ke){var dt,yt="";return Be&&(dt=this.match(Be))&&(yt+=dt[0]),!Le||!dt&&Be||(yt+=this.readUntil(Le,Ke)),yt},We.prototype.readUntil=function(Be,Le){var Ke,dt=this.__position;Be.lastIndex=this.__position;var yt=Be.exec(this.__input);return yt?(dt=yt.index,Le&&(dt+=yt[0].length)):dt=this.__input_length,Ke=this.__input.substring(this.__position,dt),this.__position=dt,Ke},We.prototype.readUntilAfter=function(Be){return this.readUntil(Be,!0)},We.prototype.get_regexp=function(Be,Le){var Ke=null,dt="g";return Le&&Re&&(dt="y"),typeof Be=="string"&&Be!==""?Ke=new RegExp(Be,dt):Be&&(Ke=new RegExp(Be.source,dt)),Ke},We.prototype.get_literal_regexp=function(Be){return RegExp(Be.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},We.prototype.peekUntilAfter=function(Be){var Le=this.__position,Ke=this.readUntilAfter(Be);return this.__position=Le,Ke},We.prototype.lookBack=function(Be){var Le=this.__position-1;return Le>=Be.length&&this.__input.substring(Le-Be.length,Le).toLowerCase()===Be},Te.exports.InputScanner=We},function(Te,Ee,ve){var Re=ve(8).InputScanner,We=ve(3).Token,Be=ve(10).TokenStream,Le=ve(11).WhitespacePattern,Ke={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},dt=function(yt,xt){this._input=new Re(yt),this._options=xt||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new Le(this._input)};dt.prototype.tokenize=function(){var yt;this._input.restart(),this.__tokens=new Be,this._reset();for(var xt=new We(Ke.START,""),Xt=null,mi=[],Yt=new Be;xt.type!==Ke.EOF;){for(yt=this._get_next_token(xt,Xt);this._is_comment(yt);)Yt.add(yt),yt=this._get_next_token(xt,Xt);Yt.isEmpty()||(yt.comments_before=Yt,Yt=new Be),yt.parent=Xt,this._is_opening(yt)?(mi.push(Xt),Xt=yt):Xt&&this._is_closing(yt,Xt)&&(yt.opened=Xt,Xt.closed=yt,Xt=mi.pop(),yt.parent=Xt),yt.previous=xt,xt.next=yt,this.__tokens.add(yt),xt=yt}return this.__tokens},dt.prototype._is_first_token=function(){return this.__tokens.isEmpty()},dt.prototype._reset=function(){},dt.prototype._get_next_token=function(yt,xt){this._readWhitespace();var Xt=this._input.read(/.+/g);return Xt?this._create_token(Ke.RAW,Xt):this._create_token(Ke.EOF,"")},dt.prototype._is_comment=function(yt){return!1},dt.prototype._is_opening=function(yt){return!1},dt.prototype._is_closing=function(yt,xt){return!1},dt.prototype._create_token=function(yt,xt){return new We(yt,xt,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},dt.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Te.exports.Tokenizer=dt,Te.exports.TOKEN=Ke},function(Te,Ee,ve){function Re(We){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=We}Re.prototype.restart=function(){this.__position=0},Re.prototype.isEmpty=function(){return this.__tokens_length===0},Re.prototype.hasNext=function(){return this.__position<this.__tokens_length},Re.prototype.next=function(){var We=null;return this.hasNext()&&(We=this.__tokens[this.__position],this.__position+=1),We},Re.prototype.peek=function(We){var Be=null;return We=We||0,(We+=this.__position)>=0&&We<this.__tokens_length&&(Be=this.__tokens[We]),Be},Re.prototype.add=function(We){this.__parent_token&&(We.parent=this.__parent_token),this.__tokens.push(We),this.__tokens_length+=1},Te.exports.TokenStream=Re},function(Te,Ee,ve){var Re=ve(12).Pattern;function We(Be,Le){Re.call(this,Be,Le),Le?this._line_regexp=this._input.get_regexp(Le._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}We.prototype=new Re,We.prototype.__set_whitespace_patterns=function(Be,Le){Be+="\\t ",Le+="\\n\\r",this._match_pattern=this._input.get_regexp("["+Be+Le+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+Le+"]")},We.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var Be=this._input.read(this._match_pattern);if(Be===" ")this.whitespace_before_token=" ";else if(Be){var Le=this.__split(this._newline_regexp,Be);this.newline_count=Le.length-1,this.whitespace_before_token=Le[this.newline_count]}return Be},We.prototype.matching=function(Be,Le){var Ke=this._create();return Ke.__set_whitespace_patterns(Be,Le),Ke._update(),Ke},We.prototype._create=function(){return new We(this._input,this)},We.prototype.__split=function(Be,Le){Be.lastIndex=0;for(var Ke=0,dt=[],yt=Be.exec(Le);yt;)dt.push(Le.substring(Ke,yt.index)),Ke=yt.index+yt[0].length,yt=Be.exec(Le);return Ke<Le.length?dt.push(Le.substring(Ke,Le.length)):dt.push(""),dt},Te.exports.WhitespacePattern=We},function(Te,Ee,ve){function Re(We,Be){this._input=We,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,Be&&(this._starting_pattern=this._input.get_regexp(Be._starting_pattern,!0),this._match_pattern=this._input.get_regexp(Be._match_pattern,!0),this._until_pattern=this._input.get_regexp(Be._until_pattern),this._until_after=Be._until_after)}Re.prototype.read=function(){var We=this._input.read(this._starting_pattern);return this._starting_pattern&&!We||(We+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),We},Re.prototype.read_match=function(){return this._input.match(this._match_pattern)},Re.prototype.until_after=function(We){var Be=this._create();return Be._until_after=!0,Be._until_pattern=this._input.get_regexp(We),Be._update(),Be},Re.prototype.until=function(We){var Be=this._create();return Be._until_after=!1,Be._until_pattern=this._input.get_regexp(We),Be._update(),Be},Re.prototype.starting_with=function(We){var Be=this._create();return Be._starting_pattern=this._input.get_regexp(We,!0),Be._update(),Be},Re.prototype.matching=function(We){var Be=this._create();return Be._match_pattern=this._input.get_regexp(We,!0),Be._update(),Be},Re.prototype._create=function(){return new Re(this._input,this)},Re.prototype._update=function(){},Te.exports.Pattern=Re},function(Te,Ee,ve){function Re(We,Be){We=typeof We=="string"?We:We.source,Be=typeof Be=="string"?Be:Be.source,this.__directives_block_pattern=new RegExp(We+/ beautify( \w+[:]\w+)+ /.source+Be,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(We+/\sbeautify\signore:end\s/.source+Be,"g")}Re.prototype.get_directives=function(We){if(!We.match(this.__directives_block_pattern))return null;var Be={};this.__directive_pattern.lastIndex=0;for(var Le=this.__directive_pattern.exec(We);Le;)Be[Le[1]]=Le[2],Le=this.__directive_pattern.exec(We);return Be},Re.prototype.readIgnored=function(We){return We.readUntilAfter(this.__directives_end_ignore_pattern)},Te.exports.Directives=Re},function(Te,Ee,ve){var Re=ve(12).Pattern,We={django:!1,erb:!1,handlebars:!1,php:!1};function Be(Le,Ke){Re.call(this,Le,Ke),this.__template_pattern=null,this._disabled=Object.assign({},We),this._excluded=Object.assign({},We),Ke&&(this.__template_pattern=this._input.get_regexp(Ke.__template_pattern),this._excluded=Object.assign(this._excluded,Ke._excluded),this._disabled=Object.assign(this._disabled,Ke._disabled));var dt=new Re(Le);this.__patterns={handlebars_comment:dt.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:dt.starting_with(/{{{/).until_after(/}}}/),handlebars:dt.starting_with(/{{/).until_after(/}}/),php:dt.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:dt.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:dt.starting_with(/{%/).until_after(/%}/),django_value:dt.starting_with(/{{/).until_after(/}}/),django_comment:dt.starting_with(/{#/).until_after(/#}/)}}Be.prototype=new Re,Be.prototype._create=function(){return new Be(this._input,this)},Be.prototype._update=function(){this.__set_templated_pattern()},Be.prototype.disable=function(Le){var Ke=this._create();return Ke._disabled[Le]=!0,Ke._update(),Ke},Be.prototype.read_options=function(Le){var Ke=this._create();for(var dt in We)Ke._disabled[dt]=Le.templating.indexOf(dt)===-1;return Ke._update(),Ke},Be.prototype.exclude=function(Le){var Ke=this._create();return Ke._excluded[Le]=!0,Ke._update(),Ke},Be.prototype.read=function(){var Le="";Le=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var Ke=this._read_template();Ke;)this._match_pattern?Ke+=this._input.read(this._match_pattern):Ke+=this._input.readUntil(this.__template_pattern),Le+=Ke,Ke=this._read_template();return this._until_after&&(Le+=this._input.readUntilAfter(this._until_pattern)),Le},Be.prototype.__set_templated_pattern=function(){var Le=[];this._disabled.php||Le.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||Le.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||Le.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(Le.push(this.__patterns.django._starting_pattern.source),Le.push(this.__patterns.django_value._starting_pattern.source),Le.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&Le.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+Le.join("|")+")")},Be.prototype._read_template=function(){var Le="",Ke=this._input.peek();if(Ke==="<"){var dt=this._input.peek(1);this._disabled.php||this._excluded.php||dt!=="?"||(Le=Le||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||dt!=="%"||(Le=Le||this.__patterns.erb.read())}else Ke==="{"&&(this._disabled.handlebars||this._excluded.handlebars||(Le=(Le=(Le=Le||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(Le=Le||this.__patterns.django_value.read()),this._excluded.django||(Le=(Le=Le||this.__patterns.django_comment.read())||this.__patterns.django.read())));return Le},Te.exports.TemplatablePattern=Be},,,,function(Te,Ee,ve){var Re=ve(19).Beautifier,We=ve(20).Options;Te.exports=function(Be,Le,Ke,dt){return new Re(Be,Le,Ke,dt).beautify()},Te.exports.defaultOptions=function(){return new We}},function(Te,Ee,ve){var Re=ve(20).Options,We=ve(2).Output,Be=ve(21).Tokenizer,Le=ve(21).TOKEN,Ke=/\r\n|[\r\n]/,dt=/\r\n|[\r\n]/g,yt=function(ei,ii){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ei.max_preserve_newlines,this.preserve_newlines=ei.preserve_newlines,this._output=new We(ei,ii)};yt.prototype.current_line_has_match=function(ei){return this._output.current_line.has_match(ei)},yt.prototype.set_space_before_token=function(ei,ii){this._output.space_before_token=ei,this._output.non_breaking_space=ii},yt.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},yt.prototype.add_raw_token=function(ei){this._output.add_raw_token(ei)},yt.prototype.print_preserved_newlines=function(ei){var ii=0;ei.type!==Le.TEXT&&ei.previous.type!==Le.TEXT&&(ii=ei.newlines?1:0),this.preserve_newlines&&(ii=ei.newlines<this.max_preserve_newlines+1?ei.newlines:this.max_preserve_newlines+1);for(var bi=0;bi<ii;bi++)this.print_newline(bi>0);return ii!==0},yt.prototype.traverse_whitespace=function(ei){return!(!ei.whitespace_before&&!ei.newlines)&&(this.print_preserved_newlines(ei)||(this._output.space_before_token=!0),!0)},yt.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},yt.prototype.print_newline=function(ei){this._output.add_new_line(ei)},yt.prototype.print_token=function(ei){ei.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ei.text))},yt.prototype.indent=function(){this.indent_level++},yt.prototype.get_full_indent=function(ei){return(ei=this.indent_level+(ei||0))<1?"":this._output.get_indent_string(ei)};var xt=function(ei,ii){var bi=null,ln=null;return ii.closed?(ei==="script"?bi="text/javascript":ei==="style"&&(bi="text/css"),(bi=function(mn){for(var sn=null,gn=mn.next;gn.type!==Le.EOF&&mn.closed!==gn;){if(gn.type===Le.ATTRIBUTE&&gn.text==="type"){gn.next&&gn.next.type===Le.EQUALS&&gn.next.next&&gn.next.next.type===Le.VALUE&&(sn=gn.next.next.text);break}gn=gn.next}return sn}(ii)||bi).search("text/css")>-1?ln="css":bi.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ln="javascript":bi.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ln="html":bi.search(/test\/null/)>-1&&(ln="null"),ln):null};function Xt(ei,ii){return ii.indexOf(ei)!==-1}function mi(ei,ii,bi){this.parent=ei||null,this.tag=ii?ii.tag_name:"",this.indent_level=bi||0,this.parser_token=ii||null}function Yt(ei){this._printer=ei,this._current_frame=null}function ri(ei,ii,bi,ln){this._source_text=ei||"",ii=ii||{},this._js_beautify=bi,this._css_beautify=ln,this._tag_stack=null;var mn=new Re(ii,"html");this._options=mn,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Yt.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Yt.prototype.record_tag=function(ei){var ii=new mi(this._current_frame,ei,this._printer.indent_level);this._current_frame=ii},Yt.prototype._try_pop_frame=function(ei){var ii=null;return ei&&(ii=ei.parser_token,this._printer.indent_level=ei.indent_level,this._current_frame=ei.parent),ii},Yt.prototype._get_frame=function(ei,ii){for(var bi=this._current_frame;bi&&ei.indexOf(bi.tag)===-1;){if(ii&&ii.indexOf(bi.tag)!==-1){bi=null;break}bi=bi.parent}return bi},Yt.prototype.try_pop=function(ei,ii){var bi=this._get_frame([ei],ii);return this._try_pop_frame(bi)},Yt.prototype.indent_to_tag=function(ei){var ii=this._get_frame(ei);ii&&(this._printer.indent_level=ii.indent_level)},ri.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ei=this._source_text,ii=this._options.eol;this._options.eol==="auto"&&(ii=` +You passed in: '`+this.raw_options[Le]+"'");return yt},Re.prototype._is_valid_selection=function(Le,Ke){return Le.length&&Ke.length&&!Le.some(function(dt){return Ke.indexOf(dt)===-1})},Te.exports.Options=Re,Te.exports.normalizeOpts=Be,Te.exports.mergeOpts=We},,function(Te,Ee,ve){var Re=RegExp.prototype.hasOwnProperty("sticky");function We(Be){this.__input=Be||"",this.__input_length=this.__input.length,this.__position=0}We.prototype.restart=function(){this.__position=0},We.prototype.back=function(){this.__position>0&&(this.__position-=1)},We.prototype.hasNext=function(){return this.__position<this.__input_length},We.prototype.next=function(){var Be=null;return this.hasNext()&&(Be=this.__input.charAt(this.__position),this.__position+=1),Be},We.prototype.peek=function(Be){var Le=null;return Be=Be||0,(Be+=this.__position)>=0&&Be<this.__input_length&&(Le=this.__input.charAt(Be)),Le},We.prototype.__match=function(Be,Le){Be.lastIndex=Le;var Ke=Be.exec(this.__input);return!Ke||Re&&Be.sticky||Ke.index!==Le&&(Ke=null),Ke},We.prototype.test=function(Be,Le){return Le=Le||0,(Le+=this.__position)>=0&&Le<this.__input_length&&!!this.__match(Be,Le)},We.prototype.testChar=function(Be,Le){var Ke=this.peek(Le);return Be.lastIndex=0,Ke!==null&&Be.test(Ke)},We.prototype.match=function(Be){var Le=this.__match(Be,this.__position);return Le?this.__position+=Le[0].length:Le=null,Le},We.prototype.read=function(Be,Le,Ke){var dt,yt="";return Be&&(dt=this.match(Be))&&(yt+=dt[0]),!Le||!dt&&Be||(yt+=this.readUntil(Le,Ke)),yt},We.prototype.readUntil=function(Be,Le){var Ke,dt=this.__position;Be.lastIndex=this.__position;var yt=Be.exec(this.__input);return yt?(dt=yt.index,Le&&(dt+=yt[0].length)):dt=this.__input_length,Ke=this.__input.substring(this.__position,dt),this.__position=dt,Ke},We.prototype.readUntilAfter=function(Be){return this.readUntil(Be,!0)},We.prototype.get_regexp=function(Be,Le){var Ke=null,dt="g";return Le&&Re&&(dt="y"),typeof Be=="string"&&Be!==""?Ke=new RegExp(Be,dt):Be&&(Ke=new RegExp(Be.source,dt)),Ke},We.prototype.get_literal_regexp=function(Be){return RegExp(Be.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},We.prototype.peekUntilAfter=function(Be){var Le=this.__position,Ke=this.readUntilAfter(Be);return this.__position=Le,Ke},We.prototype.lookBack=function(Be){var Le=this.__position-1;return Le>=Be.length&&this.__input.substring(Le-Be.length,Le).toLowerCase()===Be},Te.exports.InputScanner=We},function(Te,Ee,ve){var Re=ve(8).InputScanner,We=ve(3).Token,Be=ve(10).TokenStream,Le=ve(11).WhitespacePattern,Ke={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},dt=function(yt,xt){this._input=new Re(yt),this._options=xt||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new Le(this._input)};dt.prototype.tokenize=function(){var yt;this._input.restart(),this.__tokens=new Be,this._reset();for(var xt=new We(Ke.START,""),Xt=null,mi=[],Yt=new Be;xt.type!==Ke.EOF;){for(yt=this._get_next_token(xt,Xt);this._is_comment(yt);)Yt.add(yt),yt=this._get_next_token(xt,Xt);Yt.isEmpty()||(yt.comments_before=Yt,Yt=new Be),yt.parent=Xt,this._is_opening(yt)?(mi.push(Xt),Xt=yt):Xt&&this._is_closing(yt,Xt)&&(yt.opened=Xt,Xt.closed=yt,Xt=mi.pop(),yt.parent=Xt),yt.previous=xt,xt.next=yt,this.__tokens.add(yt),xt=yt}return this.__tokens},dt.prototype._is_first_token=function(){return this.__tokens.isEmpty()},dt.prototype._reset=function(){},dt.prototype._get_next_token=function(yt,xt){this._readWhitespace();var Xt=this._input.read(/.+/g);return Xt?this._create_token(Ke.RAW,Xt):this._create_token(Ke.EOF,"")},dt.prototype._is_comment=function(yt){return!1},dt.prototype._is_opening=function(yt){return!1},dt.prototype._is_closing=function(yt,xt){return!1},dt.prototype._create_token=function(yt,xt){return new We(yt,xt,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},dt.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Te.exports.Tokenizer=dt,Te.exports.TOKEN=Ke},function(Te,Ee,ve){function Re(We){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=We}Re.prototype.restart=function(){this.__position=0},Re.prototype.isEmpty=function(){return this.__tokens_length===0},Re.prototype.hasNext=function(){return this.__position<this.__tokens_length},Re.prototype.next=function(){var We=null;return this.hasNext()&&(We=this.__tokens[this.__position],this.__position+=1),We},Re.prototype.peek=function(We){var Be=null;return We=We||0,(We+=this.__position)>=0&&We<this.__tokens_length&&(Be=this.__tokens[We]),Be},Re.prototype.add=function(We){this.__parent_token&&(We.parent=this.__parent_token),this.__tokens.push(We),this.__tokens_length+=1},Te.exports.TokenStream=Re},function(Te,Ee,ve){var Re=ve(12).Pattern;function We(Be,Le){Re.call(this,Be,Le),Le?this._line_regexp=this._input.get_regexp(Le._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}We.prototype=new Re,We.prototype.__set_whitespace_patterns=function(Be,Le){Be+="\\t ",Le+="\\n\\r",this._match_pattern=this._input.get_regexp("["+Be+Le+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+Le+"]")},We.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var Be=this._input.read(this._match_pattern);if(Be===" ")this.whitespace_before_token=" ";else if(Be){var Le=this.__split(this._newline_regexp,Be);this.newline_count=Le.length-1,this.whitespace_before_token=Le[this.newline_count]}return Be},We.prototype.matching=function(Be,Le){var Ke=this._create();return Ke.__set_whitespace_patterns(Be,Le),Ke._update(),Ke},We.prototype._create=function(){return new We(this._input,this)},We.prototype.__split=function(Be,Le){Be.lastIndex=0;for(var Ke=0,dt=[],yt=Be.exec(Le);yt;)dt.push(Le.substring(Ke,yt.index)),Ke=yt.index+yt[0].length,yt=Be.exec(Le);return Ke<Le.length?dt.push(Le.substring(Ke,Le.length)):dt.push(""),dt},Te.exports.WhitespacePattern=We},function(Te,Ee,ve){function Re(We,Be){this._input=We,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,Be&&(this._starting_pattern=this._input.get_regexp(Be._starting_pattern,!0),this._match_pattern=this._input.get_regexp(Be._match_pattern,!0),this._until_pattern=this._input.get_regexp(Be._until_pattern),this._until_after=Be._until_after)}Re.prototype.read=function(){var We=this._input.read(this._starting_pattern);return this._starting_pattern&&!We||(We+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),We},Re.prototype.read_match=function(){return this._input.match(this._match_pattern)},Re.prototype.until_after=function(We){var Be=this._create();return Be._until_after=!0,Be._until_pattern=this._input.get_regexp(We),Be._update(),Be},Re.prototype.until=function(We){var Be=this._create();return Be._until_after=!1,Be._until_pattern=this._input.get_regexp(We),Be._update(),Be},Re.prototype.starting_with=function(We){var Be=this._create();return Be._starting_pattern=this._input.get_regexp(We,!0),Be._update(),Be},Re.prototype.matching=function(We){var Be=this._create();return Be._match_pattern=this._input.get_regexp(We,!0),Be._update(),Be},Re.prototype._create=function(){return new Re(this._input,this)},Re.prototype._update=function(){},Te.exports.Pattern=Re},function(Te,Ee,ve){function Re(We,Be){We=typeof We=="string"?We:We.source,Be=typeof Be=="string"?Be:Be.source,this.__directives_block_pattern=new RegExp(We+/ beautify( \w+[:]\w+)+ /.source+Be,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(We+/\sbeautify\signore:end\s/.source+Be,"g")}Re.prototype.get_directives=function(We){if(!We.match(this.__directives_block_pattern))return null;var Be={};this.__directive_pattern.lastIndex=0;for(var Le=this.__directive_pattern.exec(We);Le;)Be[Le[1]]=Le[2],Le=this.__directive_pattern.exec(We);return Be},Re.prototype.readIgnored=function(We){return We.readUntilAfter(this.__directives_end_ignore_pattern)},Te.exports.Directives=Re},function(Te,Ee,ve){var Re=ve(12).Pattern,We={django:!1,erb:!1,handlebars:!1,php:!1};function Be(Le,Ke){Re.call(this,Le,Ke),this.__template_pattern=null,this._disabled=Object.assign({},We),this._excluded=Object.assign({},We),Ke&&(this.__template_pattern=this._input.get_regexp(Ke.__template_pattern),this._excluded=Object.assign(this._excluded,Ke._excluded),this._disabled=Object.assign(this._disabled,Ke._disabled));var dt=new Re(Le);this.__patterns={handlebars_comment:dt.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:dt.starting_with(/{{{/).until_after(/}}}/),handlebars:dt.starting_with(/{{/).until_after(/}}/),php:dt.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:dt.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:dt.starting_with(/{%/).until_after(/%}/),django_value:dt.starting_with(/{{/).until_after(/}}/),django_comment:dt.starting_with(/{#/).until_after(/#}/)}}Be.prototype=new Re,Be.prototype._create=function(){return new Be(this._input,this)},Be.prototype._update=function(){this.__set_templated_pattern()},Be.prototype.disable=function(Le){var Ke=this._create();return Ke._disabled[Le]=!0,Ke._update(),Ke},Be.prototype.read_options=function(Le){var Ke=this._create();for(var dt in We)Ke._disabled[dt]=Le.templating.indexOf(dt)===-1;return Ke._update(),Ke},Be.prototype.exclude=function(Le){var Ke=this._create();return Ke._excluded[Le]=!0,Ke._update(),Ke},Be.prototype.read=function(){var Le="";Le=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var Ke=this._read_template();Ke;)this._match_pattern?Ke+=this._input.read(this._match_pattern):Ke+=this._input.readUntil(this.__template_pattern),Le+=Ke,Ke=this._read_template();return this._until_after&&(Le+=this._input.readUntilAfter(this._until_pattern)),Le},Be.prototype.__set_templated_pattern=function(){var Le=[];this._disabled.php||Le.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||Le.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||Le.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(Le.push(this.__patterns.django._starting_pattern.source),Le.push(this.__patterns.django_value._starting_pattern.source),Le.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&Le.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+Le.join("|")+")")},Be.prototype._read_template=function(){var Le="",Ke=this._input.peek();if(Ke==="<"){var dt=this._input.peek(1);this._disabled.php||this._excluded.php||dt!=="?"||(Le=Le||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||dt!=="%"||(Le=Le||this.__patterns.erb.read())}else Ke==="{"&&(this._disabled.handlebars||this._excluded.handlebars||(Le=(Le=(Le=Le||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(Le=Le||this.__patterns.django_value.read()),this._excluded.django||(Le=(Le=Le||this.__patterns.django_comment.read())||this.__patterns.django.read())));return Le},Te.exports.TemplatablePattern=Be},,,,function(Te,Ee,ve){var Re=ve(19).Beautifier,We=ve(20).Options;Te.exports=function(Be,Le,Ke,dt){return new Re(Be,Le,Ke,dt).beautify()},Te.exports.defaultOptions=function(){return new We}},function(Te,Ee,ve){var Re=ve(20).Options,We=ve(2).Output,Be=ve(21).Tokenizer,Le=ve(21).TOKEN,Ke=/\r\n|[\r\n]/,dt=/\r\n|[\r\n]/g,yt=function(ei,ii){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ei.max_preserve_newlines,this.preserve_newlines=ei.preserve_newlines,this._output=new We(ei,ii)};yt.prototype.current_line_has_match=function(ei){return this._output.current_line.has_match(ei)},yt.prototype.set_space_before_token=function(ei,ii){this._output.space_before_token=ei,this._output.non_breaking_space=ii},yt.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},yt.prototype.add_raw_token=function(ei){this._output.add_raw_token(ei)},yt.prototype.print_preserved_newlines=function(ei){var ii=0;ei.type!==Le.TEXT&&ei.previous.type!==Le.TEXT&&(ii=ei.newlines?1:0),this.preserve_newlines&&(ii=ei.newlines<this.max_preserve_newlines+1?ei.newlines:this.max_preserve_newlines+1);for(var bi=0;bi<ii;bi++)this.print_newline(bi>0);return ii!==0},yt.prototype.traverse_whitespace=function(ei){return!(!ei.whitespace_before&&!ei.newlines)&&(this.print_preserved_newlines(ei)||(this._output.space_before_token=!0),!0)},yt.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},yt.prototype.print_newline=function(ei){this._output.add_new_line(ei)},yt.prototype.print_token=function(ei){ei.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ei.text))},yt.prototype.indent=function(){this.indent_level++},yt.prototype.get_full_indent=function(ei){return(ei=this.indent_level+(ei||0))<1?"":this._output.get_indent_string(ei)};var xt=function(ei,ii){var bi=null,ln=null;return ii.closed?(ei==="script"?bi="text/javascript":ei==="style"&&(bi="text/css"),(bi=function(mn){for(var sn=null,gn=mn.next;gn.type!==Le.EOF&&mn.closed!==gn;){if(gn.type===Le.ATTRIBUTE&&gn.text==="type"){gn.next&&gn.next.type===Le.EQUALS&&gn.next.next&&gn.next.next.type===Le.VALUE&&(sn=gn.next.next.text);break}gn=gn.next}return sn}(ii)||bi).search("text/css")>-1?ln="css":bi.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ln="javascript":bi.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ln="html":bi.search(/test\/null/)>-1&&(ln="null"),ln):null};function Xt(ei,ii){return ii.indexOf(ei)!==-1}function mi(ei,ii,bi){this.parent=ei||null,this.tag=ii?ii.tag_name:"",this.indent_level=bi||0,this.parser_token=ii||null}function Yt(ei){this._printer=ei,this._current_frame=null}function oi(ei,ii,bi,ln){this._source_text=ei||"",ii=ii||{},this._js_beautify=bi,this._css_beautify=ln,this._tag_stack=null;var mn=new Re(ii,"html");this._options=mn,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Yt.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Yt.prototype.record_tag=function(ei){var ii=new mi(this._current_frame,ei,this._printer.indent_level);this._current_frame=ii},Yt.prototype._try_pop_frame=function(ei){var ii=null;return ei&&(ii=ei.parser_token,this._printer.indent_level=ei.indent_level,this._current_frame=ei.parent),ii},Yt.prototype._get_frame=function(ei,ii){for(var bi=this._current_frame;bi&&ei.indexOf(bi.tag)===-1;){if(ii&&ii.indexOf(bi.tag)!==-1){bi=null;break}bi=bi.parent}return bi},Yt.prototype.try_pop=function(ei,ii){var bi=this._get_frame([ei],ii);return this._try_pop_frame(bi)},Yt.prototype.indent_to_tag=function(ei){var ii=this._get_frame(ei);ii&&(this._printer.indent_level=ii.indent_level)},oi.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ei=this._source_text,ii=this._options.eol;this._options.eol==="auto"&&(ii=` `,ei&&Ke.test(ei)&&(ii=ei.match(Ke)[0]));var bi=(ei=ei.replace(dt,` -`)).match(/^[\t ]*/)[0],ln={text:"",type:""},mn=new qi,sn=new yt(this._options,bi),gn=new Be(ei,this._options).tokenize();this._tag_stack=new Yt(sn);for(var Sn=null,En=gn.next();En.type!==Le.EOF;)En.type===Le.TAG_OPEN||En.type===Le.COMMENT?mn=Sn=this._handle_tag_open(sn,En,mn,ln):En.type===Le.ATTRIBUTE||En.type===Le.EQUALS||En.type===Le.VALUE||En.type===Le.TEXT&&!mn.tag_complete?Sn=this._handle_inside_tag(sn,En,mn,gn):En.type===Le.TAG_CLOSE?Sn=this._handle_tag_close(sn,En,mn):En.type===Le.TEXT?Sn=this._handle_text(sn,En,mn):sn.add_raw_token(En),ln=Sn,En=gn.next();return sn._output.get_code(ii)},ri.prototype._handle_tag_close=function(ei,ii,bi){var ln={text:ii.text,type:ii.type};return ei.alignment_size=0,bi.tag_complete=!0,ei.set_space_before_token(ii.newlines||ii.whitespace_before!=="",!0),bi.is_unformatted?ei.add_raw_token(ii):(bi.tag_start_char==="<"&&(ei.set_space_before_token(ii.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&bi.has_wrapped_attrs&&ei.print_newline(!1)),ei.print_token(ii)),!bi.indent_content||bi.is_unformatted||bi.is_content_unformatted||(ei.indent(),bi.indent_content=!1),bi.is_inline_element||bi.is_unformatted||bi.is_content_unformatted||ei.set_wrap_point(),ln},ri.prototype._handle_inside_tag=function(ei,ii,bi,ln){var mn=bi.has_wrapped_attrs,sn={text:ii.text,type:ii.type};if(ei.set_space_before_token(ii.newlines||ii.whitespace_before!=="",!0),bi.is_unformatted)ei.add_raw_token(ii);else if(bi.tag_start_char==="{"&&ii.type===Le.TEXT)ei.print_preserved_newlines(ii)?(ii.newlines=0,ei.add_raw_token(ii)):ei.print_token(ii);else{if(ii.type===Le.ATTRIBUTE?(ei.set_space_before_token(!0),bi.attr_count+=1):(ii.type===Le.EQUALS||ii.type===Le.VALUE&&ii.previous.type===Le.EQUALS)&&ei.set_space_before_token(!1),ii.type===Le.ATTRIBUTE&&bi.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ei.traverse_whitespace(ii),mn=mn||ii.newlines!==0),this._is_wrap_attributes_force)){var gn=bi.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&bi.attr_count===1){var Sn,En=!0,Xn=0;do{if((Sn=ln.peek(Xn)).type===Le.ATTRIBUTE){En=!1;break}Xn+=1}while(Xn<4&&Sn.type!==Le.EOF&&Sn.type!==Le.TAG_CLOSE);gn=!En}gn&&(ei.print_newline(!1),mn=!0)}ei.print_token(ii),mn=mn||ei.previous_token_wrapped(),bi.has_wrapped_attrs=mn}return sn},ri.prototype._handle_text=function(ei,ii,bi){var ln={text:ii.text,type:"TK_CONTENT"};return bi.custom_beautifier_name?this._print_custom_beatifier_text(ei,ii,bi):bi.is_unformatted||bi.is_content_unformatted?ei.add_raw_token(ii):(ei.traverse_whitespace(ii),ei.print_token(ii)),ln},ri.prototype._print_custom_beatifier_text=function(ei,ii,bi){var ln=this;if(ii.text!==""){var mn,sn=ii.text,gn=1,Sn="",En="";bi.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?mn=this._js_beautify:bi.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?mn=this._css_beautify:bi.custom_beautifier_name==="html"&&(mn=function(In,Rn){return new ri(In,Rn,ln._js_beautify,ln._css_beautify).beautify()}),this._options.indent_scripts==="keep"?gn=0:this._options.indent_scripts==="separate"&&(gn=-ei.indent_level);var Xn=ei.get_full_indent(gn);if(sn=sn.replace(/\n[ \t]*$/,""),bi.custom_beautifier_name!=="html"&&sn[0]==="<"&&sn.match(/^(<!--|<!\[CDATA\[)/)){var Yn=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(sn);if(!Yn)return void ei.add_raw_token(ii);Sn=Xn+Yn[1]+` +`)).match(/^[\t ]*/)[0],ln={text:"",type:""},mn=new qi,sn=new yt(this._options,bi),gn=new Be(ei,this._options).tokenize();this._tag_stack=new Yt(sn);for(var Sn=null,En=gn.next();En.type!==Le.EOF;)En.type===Le.TAG_OPEN||En.type===Le.COMMENT?mn=Sn=this._handle_tag_open(sn,En,mn,ln):En.type===Le.ATTRIBUTE||En.type===Le.EQUALS||En.type===Le.VALUE||En.type===Le.TEXT&&!mn.tag_complete?Sn=this._handle_inside_tag(sn,En,mn,gn):En.type===Le.TAG_CLOSE?Sn=this._handle_tag_close(sn,En,mn):En.type===Le.TEXT?Sn=this._handle_text(sn,En,mn):sn.add_raw_token(En),ln=Sn,En=gn.next();return sn._output.get_code(ii)},oi.prototype._handle_tag_close=function(ei,ii,bi){var ln={text:ii.text,type:ii.type};return ei.alignment_size=0,bi.tag_complete=!0,ei.set_space_before_token(ii.newlines||ii.whitespace_before!=="",!0),bi.is_unformatted?ei.add_raw_token(ii):(bi.tag_start_char==="<"&&(ei.set_space_before_token(ii.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&bi.has_wrapped_attrs&&ei.print_newline(!1)),ei.print_token(ii)),!bi.indent_content||bi.is_unformatted||bi.is_content_unformatted||(ei.indent(),bi.indent_content=!1),bi.is_inline_element||bi.is_unformatted||bi.is_content_unformatted||ei.set_wrap_point(),ln},oi.prototype._handle_inside_tag=function(ei,ii,bi,ln){var mn=bi.has_wrapped_attrs,sn={text:ii.text,type:ii.type};if(ei.set_space_before_token(ii.newlines||ii.whitespace_before!=="",!0),bi.is_unformatted)ei.add_raw_token(ii);else if(bi.tag_start_char==="{"&&ii.type===Le.TEXT)ei.print_preserved_newlines(ii)?(ii.newlines=0,ei.add_raw_token(ii)):ei.print_token(ii);else{if(ii.type===Le.ATTRIBUTE?(ei.set_space_before_token(!0),bi.attr_count+=1):(ii.type===Le.EQUALS||ii.type===Le.VALUE&&ii.previous.type===Le.EQUALS)&&ei.set_space_before_token(!1),ii.type===Le.ATTRIBUTE&&bi.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ei.traverse_whitespace(ii),mn=mn||ii.newlines!==0),this._is_wrap_attributes_force)){var gn=bi.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&bi.attr_count===1){var Sn,En=!0,Xn=0;do{if((Sn=ln.peek(Xn)).type===Le.ATTRIBUTE){En=!1;break}Xn+=1}while(Xn<4&&Sn.type!==Le.EOF&&Sn.type!==Le.TAG_CLOSE);gn=!En}gn&&(ei.print_newline(!1),mn=!0)}ei.print_token(ii),mn=mn||ei.previous_token_wrapped(),bi.has_wrapped_attrs=mn}return sn},oi.prototype._handle_text=function(ei,ii,bi){var ln={text:ii.text,type:"TK_CONTENT"};return bi.custom_beautifier_name?this._print_custom_beatifier_text(ei,ii,bi):bi.is_unformatted||bi.is_content_unformatted?ei.add_raw_token(ii):(ei.traverse_whitespace(ii),ei.print_token(ii)),ln},oi.prototype._print_custom_beatifier_text=function(ei,ii,bi){var ln=this;if(ii.text!==""){var mn,sn=ii.text,gn=1,Sn="",En="";bi.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?mn=this._js_beautify:bi.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?mn=this._css_beautify:bi.custom_beautifier_name==="html"&&(mn=function(In,Rn){return new oi(In,Rn,ln._js_beautify,ln._css_beautify).beautify()}),this._options.indent_scripts==="keep"?gn=0:this._options.indent_scripts==="separate"&&(gn=-ei.indent_level);var Xn=ei.get_full_indent(gn);if(sn=sn.replace(/\n[ \t]*$/,""),bi.custom_beautifier_name!=="html"&&sn[0]==="<"&&sn.match(/^(<!--|<!\[CDATA\[)/)){var Yn=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(sn);if(!Yn)return void ei.add_raw_token(ii);Sn=Xn+Yn[1]+` `,sn=Yn[4],Yn[5]&&(En=Xn+Yn[5]),sn=sn.replace(/\n[ \t]*$/,""),(Yn[2]||Yn[3].indexOf(` -`)!==-1)&&(Yn=Yn[3].match(/[ \t]+$/))&&(ii.whitespace_before=Yn[0])}if(sn)if(mn){var Io=function(){this.eol=` -`};Io.prototype=this._options.raw_options,sn=mn(Xn+sn,new Io)}else{var Ro=ii.whitespace_before;Ro&&(sn=sn.replace(new RegExp(` -(`+Ro+")?","g"),` +`)!==-1)&&(Yn=Yn[3].match(/[ \t]+$/))&&(ii.whitespace_before=Yn[0])}if(sn)if(mn){var Nr=function(){this.eol=` +`};Nr.prototype=this._options.raw_options,sn=mn(Xn+sn,new Nr)}else{var Ar=ii.whitespace_before;Ar&&(sn=sn.replace(new RegExp(` +(`+Ar+")?","g"),` `)),sn=Xn+sn.replace(/\n/g,` `+Xn)}Sn&&(sn=sn?Sn+sn+` -`+En:Sn+En),ei.print_newline(!1),sn&&(ii.text=sn,ii.whitespace_before="",ii.newlines=0,ei.add_raw_token(ii),ei.print_newline(!0))}},ri.prototype._handle_tag_open=function(ei,ii,bi,ln){var mn=this._get_tag_open_token(ii);return(bi.is_unformatted||bi.is_content_unformatted)&&ii.type===Le.TAG_OPEN&&ii.text.indexOf("</")===0?(ei.add_raw_token(ii),mn.start_tag_token=this._tag_stack.try_pop(mn.tag_name)):(ei.traverse_whitespace(ii),this._set_tag_position(ei,ii,mn,bi,ln),mn.is_inline_element||ei.set_wrap_point(),ei.print_token(ii)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(mn.alignment_size=ii.text.length+1),mn.tag_complete||mn.is_unformatted||(ei.alignment_size=mn.alignment_size),mn};var qi=function(ei,ii){var bi;this.parent=ei||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",ii?(this.tag_start_char=ii.text[0],this.text=ii.text,this.tag_start_char==="<"?(bi=ii.text.match(/^<([^\s>]*)/),this.tag_check=bi?bi[1]:""):(bi=ii.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=bi?bi[1]:"",ii.text==="{{#>"&&this.tag_check===">"&&ii.next!==null&&(this.tag_check=ii.next.text)),this.tag_check=this.tag_check.toLowerCase(),ii.type===Le.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||ii.closed&&ii.closed.text==="/>",this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};ri.prototype._get_tag_open_token=function(ei){var ii=new qi(this._tag_stack.get_parser_token(),ei);return ii.alignment_size=this._options.wrap_attributes_indent_size,ii.is_end_tag=ii.is_end_tag||Xt(ii.tag_check,this._options.void_elements),ii.is_empty_element=ii.tag_complete||ii.is_start_tag&&ii.is_end_tag,ii.is_unformatted=!ii.tag_complete&&Xt(ii.tag_check,this._options.unformatted),ii.is_content_unformatted=!ii.is_empty_element&&Xt(ii.tag_check,this._options.content_unformatted),ii.is_inline_element=Xt(ii.tag_name,this._options.inline)||ii.tag_start_char==="{",ii},ri.prototype._set_tag_position=function(ei,ii,bi,ln,mn){bi.is_empty_element||(bi.is_end_tag?bi.start_tag_token=this._tag_stack.try_pop(bi.tag_name):(this._do_optional_end_element(bi)&&(bi.is_inline_element||(bi.parent&&(bi.parent.multiline_content=!0),ei.print_newline(!1))),this._tag_stack.record_tag(bi),bi.tag_name!=="script"&&bi.tag_name!=="style"||bi.is_unformatted||bi.is_content_unformatted||(bi.custom_beautifier_name=xt(bi.tag_check,ii)))),Xt(bi.tag_check,this._options.extra_liners)&&(ei.print_newline(!1),ei._output.just_added_blankline()||ei.print_newline(!0)),bi.is_empty_element?(bi.tag_start_char==="{"&&bi.tag_check==="else"&&(this._tag_stack.indent_to_tag(["if","unless","each"]),bi.indent_content=!0,ei.current_line_has_match(/{{#if/)||ei.print_newline(!1)),bi.tag_name==="!--"&&mn.type===Le.TAG_CLOSE&&ln.is_end_tag&&bi.text.indexOf(` -`)===-1||bi.is_inline_element||bi.is_unformatted||ei.print_newline(!1)):bi.is_unformatted||bi.is_content_unformatted?bi.is_inline_element||bi.is_unformatted||ei.print_newline(!1):bi.is_end_tag?(bi.start_tag_token&&bi.start_tag_token.multiline_content||!(bi.is_inline_element||ln.is_inline_element||mn.type===Le.TAG_CLOSE&&bi.start_tag_token===ln||mn.type==="TK_CONTENT"))&&ei.print_newline(!1):(bi.indent_content=!bi.custom_beautifier_name,bi.tag_start_char==="<"&&(bi.tag_name==="html"?bi.indent_content=this._options.indent_inner_html:bi.tag_name==="head"?bi.indent_content=this._options.indent_head_inner_html:bi.tag_name==="body"&&(bi.indent_content=this._options.indent_body_inner_html)),bi.is_inline_element||mn.type==="TK_CONTENT"||(bi.parent&&(bi.parent.multiline_content=!0),ei.print_newline(!1)))};var an=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],_n=["a","audio","del","ins","map","noscript","video"];ri.prototype._do_optional_end_element=function(ei){var ii=null;if(!ei.is_empty_element&&ei.is_start_tag&&ei.parent){if(ei.tag_name==="body")ii=ii||this._tag_stack.try_pop("head");else if(ei.tag_name==="li")ii=ii||this._tag_stack.try_pop("li",["ol","ul"]);else if(ei.tag_name==="dd"||ei.tag_name==="dt")ii=(ii=ii||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if(ei.parent.tag_name==="p"&&an.indexOf(ei.tag_name)!==-1){var bi=ei.parent.parent;bi&&_n.indexOf(bi.tag_name)!==-1||(ii=ii||this._tag_stack.try_pop("p"))}else ei.tag_name==="rp"||ei.tag_name==="rt"?ii=(ii=ii||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):ei.tag_name==="optgroup"?ii=ii||this._tag_stack.try_pop("optgroup",["select"]):ei.tag_name==="option"?ii=ii||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ei.tag_name==="colgroup"?ii=ii||this._tag_stack.try_pop("caption",["table"]):ei.tag_name==="thead"?ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):ei.tag_name==="tbody"||ei.tag_name==="tfoot"?ii=(ii=(ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):ei.tag_name==="tr"?ii=(ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):ei.tag_name!=="th"&&ei.tag_name!=="td"||(ii=(ii=ii||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ei.parent=this._tag_stack.get_parser_token(),ii}},Te.exports.Beautifier=ri},function(Te,Ee,ve){var Re=ve(6).Options;function We(Be){Re.call(this,Be,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}We.prototype=new Re,Te.exports.Options=We},function(Te,Ee,ve){var Re=ve(9).Tokenizer,We=ve(9).TOKEN,Be=ve(13).Directives,Le=ve(14).TemplatablePattern,Ke=ve(12).Pattern,dt={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:We.START,RAW:We.RAW,EOF:We.EOF},yt=new Be(/<\!--/,/-->/),xt=function(Xt,mi){Re.call(this,Xt,mi),this._current_tag_name="";var Yt=new Le(this._input).read_options(this._options),ri=new Ke(this._input);if(this.__patterns={word:Yt.until(/[\n\r\t <]/),single_quote:Yt.until_after(/'/),double_quote:Yt.until_after(/"/),attribute:Yt.until(/[\n\r\t =>]|\/>/),element_name:Yt.until(/[\n\r\t >\/]/),handlebars_comment:ri.starting_with(/{{!--/).until_after(/--}}/),handlebars:ri.starting_with(/{{/).until_after(/}}/),handlebars_open:ri.until(/[\n\r\t }]/),handlebars_raw_close:ri.until(/}}/),comment:ri.starting_with(/<!--/).until_after(/-->/),cdata:ri.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:ri.starting_with(/<!\[/).until_after(/]>/),processing:ri.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var qi=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=ri.matching(qi).until_after(qi)}};(xt.prototype=new Re)._is_comment=function(Xt){return!1},xt.prototype._is_opening=function(Xt){return Xt.type===dt.TAG_OPEN},xt.prototype._is_closing=function(Xt,mi){return Xt.type===dt.TAG_CLOSE&&mi&&((Xt.text===">"||Xt.text==="/>")&&mi.text[0]==="<"||Xt.text==="}}"&&mi.text[0]==="{"&&mi.text[1]==="{")},xt.prototype._reset=function(){this._current_tag_name=""},xt.prototype._get_next_token=function(Xt,mi){var Yt=null;this._readWhitespace();var ri=this._input.peek();return ri===null?this._create_token(dt.EOF,""):Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=Yt||this._read_open_handlebars(ri,mi))||this._read_attribute(ri,Xt,mi))||this._read_raw_content(ri,Xt,mi))||this._read_close(ri,mi))||this._read_content_word(ri))||this._read_comment_or_cdata(ri))||this._read_processing(ri))||this._read_open(ri,mi))||this._create_token(dt.UNKNOWN,this._input.next())},xt.prototype._read_comment_or_cdata=function(Xt){var mi=null,Yt=null,ri=null;return Xt==="<"&&(this._input.peek(1)==="!"&&((Yt=this.__patterns.comment.read())?(ri=yt.get_directives(Yt))&&ri.ignore==="start"&&(Yt+=yt.readIgnored(this._input)):Yt=this.__patterns.cdata.read()),Yt&&((mi=this._create_token(dt.COMMENT,Yt)).directives=ri)),mi},xt.prototype._read_processing=function(Xt){var mi=null,Yt=null;if(Xt==="<"){var ri=this._input.peek(1);ri!=="!"&&ri!=="?"||(Yt=(Yt=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),Yt&&((mi=this._create_token(dt.COMMENT,Yt)).directives=null)}return mi},xt.prototype._read_open=function(Xt,mi){var Yt=null,ri=null;return mi||Xt==="<"&&(Yt=this._input.next(),this._input.peek()==="/"&&(Yt+=this._input.next()),Yt+=this.__patterns.element_name.read(),ri=this._create_token(dt.TAG_OPEN,Yt)),ri},xt.prototype._read_open_handlebars=function(Xt,mi){var Yt=null,ri=null;return mi||this._options.indent_handlebars&&Xt==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(Yt=(Yt=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),ri=this._create_token(dt.COMMENT,Yt)):(Yt=this.__patterns.handlebars_open.read(),ri=this._create_token(dt.TAG_OPEN,Yt))),ri},xt.prototype._read_close=function(Xt,mi){var Yt=null,ri=null;return mi&&(mi.text[0]==="<"&&(Xt===">"||Xt==="/"&&this._input.peek(1)===">")?(Yt=this._input.next(),Xt==="/"&&(Yt+=this._input.next()),ri=this._create_token(dt.TAG_CLOSE,Yt)):mi.text[0]==="{"&&Xt==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),ri=this._create_token(dt.TAG_CLOSE,"}}"))),ri},xt.prototype._read_attribute=function(Xt,mi,Yt){var ri=null,qi="";if(Yt&&Yt.text[0]==="<")if(Xt==="=")ri=this._create_token(dt.EQUALS,this._input.next());else if(Xt==='"'||Xt==="'"){var an=this._input.next();an+=Xt==='"'?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),ri=this._create_token(dt.VALUE,an)}else(qi=this.__patterns.attribute.read())&&(ri=mi.type===dt.EQUALS?this._create_token(dt.VALUE,qi):this._create_token(dt.ATTRIBUTE,qi));return ri},xt.prototype._is_content_unformatted=function(Xt){return this._options.void_elements.indexOf(Xt)===-1&&(this._options.content_unformatted.indexOf(Xt)!==-1||this._options.unformatted.indexOf(Xt)!==-1)},xt.prototype._read_raw_content=function(Xt,mi,Yt){var ri="";if(Yt&&Yt.text[0]==="{")ri=this.__patterns.handlebars_raw_close.read();else if(mi.type===dt.TAG_CLOSE&&mi.opened.text[0]==="<"){var qi=mi.opened.text.substr(1).toLowerCase();if(qi==="script"||qi==="style"){var an=this._read_comment_or_cdata(Xt);if(an)return an.type=dt.TEXT,an;ri=this._input.readUntil(new RegExp("</"+qi+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(qi)&&(ri=this._input.readUntil(new RegExp("</"+qi+"[\\n\\r\\t ]*?>","ig")))}return ri?this._create_token(dt.TEXT,ri):null},xt.prototype._read_content_word=function(Xt){var mi="";if(this._options.unformatted_content_delimiter&&Xt===this._options.unformatted_content_delimiter[0]&&(mi=this.__patterns.unformatted_content_delimiter.read()),mi||(mi=this.__patterns.word.read()),mi)return this._create_token(dt.TEXT,mi)},Te.exports.Tokenizer=xt,Te.exports.TOKEN=dt}]);function wi(Te,Ee,ve){var Re=Te.getText(),We=!0,Be=0,Le=ve.tabSize||4;if(Ee){for(var Ke=Te.offsetAt(Ee.start),dt=Ke;dt>0&&ae(Re,dt-1);)dt--;dt===0||X(Re,dt-1)?Ke=dt:dt<Ke&&(Ke=dt+1);for(var yt=Te.offsetAt(Ee.end),xt=yt;xt<Re.length&&ae(Re,xt);)xt++;(xt===Re.length||X(Re,xt))&&(yt=xt),Ee=E.create(Te.positionAt(Ke),Te.positionAt(yt));var Xt=Re.substring(0,Ke);if(new RegExp(/.*[<][^>]*$/).test(Xt))return[{range:Ee,newText:Re=Re.substring(Ke,yt)}];if(We=yt===Re.length,Re=Re.substring(Ke,yt),Ke!==0){var mi=Te.offsetAt(H.create(Ee.start.line,0));Be=function(an,_n,ei){for(var ii=_n,bi=0,ln=ei.tabSize||4;ii<an.length;){var mn=an.charAt(ii);if(mn===" ")bi++;else{if(mn!==" ")break;bi+=ln}ii++}return Math.floor(bi/ln)}(Te.getText(),mi,ve)}}else Ee=E.create(H.create(0,0),Te.positionAt(Re.length));var Yt={indent_size:Le,indent_char:ve.insertSpaces?" ":" ",indent_empty_lines:Ti(ve,"indentEmptyLines",!1),wrap_line_length:Ti(ve,"wrapLineLength",120),unformatted:ft(ve,"unformatted",void 0),content_unformatted:ft(ve,"contentUnformatted",void 0),indent_inner_html:Ti(ve,"indentInnerHtml",!1),preserve_newlines:Ti(ve,"preserveNewLines",!0),max_preserve_newlines:Ti(ve,"maxPreserveNewLines",32786),indent_handlebars:Ti(ve,"indentHandlebars",!1),end_with_newline:We&&Ti(ve,"endWithNewline",!1),extra_liners:ft(ve,"extraLiners",void 0),wrap_attributes:Ti(ve,"wrapAttributes","auto"),wrap_attributes_indent_size:Ti(ve,"wrapAttributesIndentSize",void 0),eol:` -`},ri=function(an,_n){return Kt(an,_n,Ht,jt)}(Re.replace(/^\s+/,""),Yt);if(Be>0){var qi=ve.insertSpaces?xn(" ",Le*Be):xn(" ",Be);ri=ri.split(` +`+En:Sn+En),ei.print_newline(!1),sn&&(ii.text=sn,ii.whitespace_before="",ii.newlines=0,ei.add_raw_token(ii),ei.print_newline(!0))}},oi.prototype._handle_tag_open=function(ei,ii,bi,ln){var mn=this._get_tag_open_token(ii);return(bi.is_unformatted||bi.is_content_unformatted)&&ii.type===Le.TAG_OPEN&&ii.text.indexOf("</")===0?(ei.add_raw_token(ii),mn.start_tag_token=this._tag_stack.try_pop(mn.tag_name)):(ei.traverse_whitespace(ii),this._set_tag_position(ei,ii,mn,bi,ln),mn.is_inline_element||ei.set_wrap_point(),ei.print_token(ii)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(mn.alignment_size=ii.text.length+1),mn.tag_complete||mn.is_unformatted||(ei.alignment_size=mn.alignment_size),mn};var qi=function(ei,ii){var bi;this.parent=ei||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",ii?(this.tag_start_char=ii.text[0],this.text=ii.text,this.tag_start_char==="<"?(bi=ii.text.match(/^<([^\s>]*)/),this.tag_check=bi?bi[1]:""):(bi=ii.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=bi?bi[1]:"",ii.text==="{{#>"&&this.tag_check===">"&&ii.next!==null&&(this.tag_check=ii.next.text)),this.tag_check=this.tag_check.toLowerCase(),ii.type===Le.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||ii.closed&&ii.closed.text==="/>",this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};oi.prototype._get_tag_open_token=function(ei){var ii=new qi(this._tag_stack.get_parser_token(),ei);return ii.alignment_size=this._options.wrap_attributes_indent_size,ii.is_end_tag=ii.is_end_tag||Xt(ii.tag_check,this._options.void_elements),ii.is_empty_element=ii.tag_complete||ii.is_start_tag&&ii.is_end_tag,ii.is_unformatted=!ii.tag_complete&&Xt(ii.tag_check,this._options.unformatted),ii.is_content_unformatted=!ii.is_empty_element&&Xt(ii.tag_check,this._options.content_unformatted),ii.is_inline_element=Xt(ii.tag_name,this._options.inline)||ii.tag_start_char==="{",ii},oi.prototype._set_tag_position=function(ei,ii,bi,ln,mn){bi.is_empty_element||(bi.is_end_tag?bi.start_tag_token=this._tag_stack.try_pop(bi.tag_name):(this._do_optional_end_element(bi)&&(bi.is_inline_element||(bi.parent&&(bi.parent.multiline_content=!0),ei.print_newline(!1))),this._tag_stack.record_tag(bi),bi.tag_name!=="script"&&bi.tag_name!=="style"||bi.is_unformatted||bi.is_content_unformatted||(bi.custom_beautifier_name=xt(bi.tag_check,ii)))),Xt(bi.tag_check,this._options.extra_liners)&&(ei.print_newline(!1),ei._output.just_added_blankline()||ei.print_newline(!0)),bi.is_empty_element?(bi.tag_start_char==="{"&&bi.tag_check==="else"&&(this._tag_stack.indent_to_tag(["if","unless","each"]),bi.indent_content=!0,ei.current_line_has_match(/{{#if/)||ei.print_newline(!1)),bi.tag_name==="!--"&&mn.type===Le.TAG_CLOSE&&ln.is_end_tag&&bi.text.indexOf(` +`)===-1||bi.is_inline_element||bi.is_unformatted||ei.print_newline(!1)):bi.is_unformatted||bi.is_content_unformatted?bi.is_inline_element||bi.is_unformatted||ei.print_newline(!1):bi.is_end_tag?(bi.start_tag_token&&bi.start_tag_token.multiline_content||!(bi.is_inline_element||ln.is_inline_element||mn.type===Le.TAG_CLOSE&&bi.start_tag_token===ln||mn.type==="TK_CONTENT"))&&ei.print_newline(!1):(bi.indent_content=!bi.custom_beautifier_name,bi.tag_start_char==="<"&&(bi.tag_name==="html"?bi.indent_content=this._options.indent_inner_html:bi.tag_name==="head"?bi.indent_content=this._options.indent_head_inner_html:bi.tag_name==="body"&&(bi.indent_content=this._options.indent_body_inner_html)),bi.is_inline_element||mn.type==="TK_CONTENT"||(bi.parent&&(bi.parent.multiline_content=!0),ei.print_newline(!1)))};var an=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],_n=["a","audio","del","ins","map","noscript","video"];oi.prototype._do_optional_end_element=function(ei){var ii=null;if(!ei.is_empty_element&&ei.is_start_tag&&ei.parent){if(ei.tag_name==="body")ii=ii||this._tag_stack.try_pop("head");else if(ei.tag_name==="li")ii=ii||this._tag_stack.try_pop("li",["ol","ul"]);else if(ei.tag_name==="dd"||ei.tag_name==="dt")ii=(ii=ii||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if(ei.parent.tag_name==="p"&&an.indexOf(ei.tag_name)!==-1){var bi=ei.parent.parent;bi&&_n.indexOf(bi.tag_name)!==-1||(ii=ii||this._tag_stack.try_pop("p"))}else ei.tag_name==="rp"||ei.tag_name==="rt"?ii=(ii=ii||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):ei.tag_name==="optgroup"?ii=ii||this._tag_stack.try_pop("optgroup",["select"]):ei.tag_name==="option"?ii=ii||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ei.tag_name==="colgroup"?ii=ii||this._tag_stack.try_pop("caption",["table"]):ei.tag_name==="thead"?ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):ei.tag_name==="tbody"||ei.tag_name==="tfoot"?ii=(ii=(ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):ei.tag_name==="tr"?ii=(ii=(ii=ii||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):ei.tag_name!=="th"&&ei.tag_name!=="td"||(ii=(ii=ii||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ei.parent=this._tag_stack.get_parser_token(),ii}},Te.exports.Beautifier=oi},function(Te,Ee,ve){var Re=ve(6).Options;function We(Be){Re.call(this,Be,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}We.prototype=new Re,Te.exports.Options=We},function(Te,Ee,ve){var Re=ve(9).Tokenizer,We=ve(9).TOKEN,Be=ve(13).Directives,Le=ve(14).TemplatablePattern,Ke=ve(12).Pattern,dt={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:We.START,RAW:We.RAW,EOF:We.EOF},yt=new Be(/<\!--/,/-->/),xt=function(Xt,mi){Re.call(this,Xt,mi),this._current_tag_name="";var Yt=new Le(this._input).read_options(this._options),oi=new Ke(this._input);if(this.__patterns={word:Yt.until(/[\n\r\t <]/),single_quote:Yt.until_after(/'/),double_quote:Yt.until_after(/"/),attribute:Yt.until(/[\n\r\t =>]|\/>/),element_name:Yt.until(/[\n\r\t >\/]/),handlebars_comment:oi.starting_with(/{{!--/).until_after(/--}}/),handlebars:oi.starting_with(/{{/).until_after(/}}/),handlebars_open:oi.until(/[\n\r\t }]/),handlebars_raw_close:oi.until(/}}/),comment:oi.starting_with(/<!--/).until_after(/-->/),cdata:oi.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:oi.starting_with(/<!\[/).until_after(/]>/),processing:oi.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var qi=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=oi.matching(qi).until_after(qi)}};(xt.prototype=new Re)._is_comment=function(Xt){return!1},xt.prototype._is_opening=function(Xt){return Xt.type===dt.TAG_OPEN},xt.prototype._is_closing=function(Xt,mi){return Xt.type===dt.TAG_CLOSE&&mi&&((Xt.text===">"||Xt.text==="/>")&&mi.text[0]==="<"||Xt.text==="}}"&&mi.text[0]==="{"&&mi.text[1]==="{")},xt.prototype._reset=function(){this._current_tag_name=""},xt.prototype._get_next_token=function(Xt,mi){var Yt=null;this._readWhitespace();var oi=this._input.peek();return oi===null?this._create_token(dt.EOF,""):Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=(Yt=Yt||this._read_open_handlebars(oi,mi))||this._read_attribute(oi,Xt,mi))||this._read_raw_content(oi,Xt,mi))||this._read_close(oi,mi))||this._read_content_word(oi))||this._read_comment_or_cdata(oi))||this._read_processing(oi))||this._read_open(oi,mi))||this._create_token(dt.UNKNOWN,this._input.next())},xt.prototype._read_comment_or_cdata=function(Xt){var mi=null,Yt=null,oi=null;return Xt==="<"&&(this._input.peek(1)==="!"&&((Yt=this.__patterns.comment.read())?(oi=yt.get_directives(Yt))&&oi.ignore==="start"&&(Yt+=yt.readIgnored(this._input)):Yt=this.__patterns.cdata.read()),Yt&&((mi=this._create_token(dt.COMMENT,Yt)).directives=oi)),mi},xt.prototype._read_processing=function(Xt){var mi=null,Yt=null;if(Xt==="<"){var oi=this._input.peek(1);oi!=="!"&&oi!=="?"||(Yt=(Yt=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),Yt&&((mi=this._create_token(dt.COMMENT,Yt)).directives=null)}return mi},xt.prototype._read_open=function(Xt,mi){var Yt=null,oi=null;return mi||Xt==="<"&&(Yt=this._input.next(),this._input.peek()==="/"&&(Yt+=this._input.next()),Yt+=this.__patterns.element_name.read(),oi=this._create_token(dt.TAG_OPEN,Yt)),oi},xt.prototype._read_open_handlebars=function(Xt,mi){var Yt=null,oi=null;return mi||this._options.indent_handlebars&&Xt==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(Yt=(Yt=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),oi=this._create_token(dt.COMMENT,Yt)):(Yt=this.__patterns.handlebars_open.read(),oi=this._create_token(dt.TAG_OPEN,Yt))),oi},xt.prototype._read_close=function(Xt,mi){var Yt=null,oi=null;return mi&&(mi.text[0]==="<"&&(Xt===">"||Xt==="/"&&this._input.peek(1)===">")?(Yt=this._input.next(),Xt==="/"&&(Yt+=this._input.next()),oi=this._create_token(dt.TAG_CLOSE,Yt)):mi.text[0]==="{"&&Xt==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),oi=this._create_token(dt.TAG_CLOSE,"}}"))),oi},xt.prototype._read_attribute=function(Xt,mi,Yt){var oi=null,qi="";if(Yt&&Yt.text[0]==="<")if(Xt==="=")oi=this._create_token(dt.EQUALS,this._input.next());else if(Xt==='"'||Xt==="'"){var an=this._input.next();an+=Xt==='"'?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),oi=this._create_token(dt.VALUE,an)}else(qi=this.__patterns.attribute.read())&&(oi=mi.type===dt.EQUALS?this._create_token(dt.VALUE,qi):this._create_token(dt.ATTRIBUTE,qi));return oi},xt.prototype._is_content_unformatted=function(Xt){return this._options.void_elements.indexOf(Xt)===-1&&(this._options.content_unformatted.indexOf(Xt)!==-1||this._options.unformatted.indexOf(Xt)!==-1)},xt.prototype._read_raw_content=function(Xt,mi,Yt){var oi="";if(Yt&&Yt.text[0]==="{")oi=this.__patterns.handlebars_raw_close.read();else if(mi.type===dt.TAG_CLOSE&&mi.opened.text[0]==="<"){var qi=mi.opened.text.substr(1).toLowerCase();if(qi==="script"||qi==="style"){var an=this._read_comment_or_cdata(Xt);if(an)return an.type=dt.TEXT,an;oi=this._input.readUntil(new RegExp("</"+qi+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(qi)&&(oi=this._input.readUntil(new RegExp("</"+qi+"[\\n\\r\\t ]*?>","ig")))}return oi?this._create_token(dt.TEXT,oi):null},xt.prototype._read_content_word=function(Xt){var mi="";if(this._options.unformatted_content_delimiter&&Xt===this._options.unformatted_content_delimiter[0]&&(mi=this.__patterns.unformatted_content_delimiter.read()),mi||(mi=this.__patterns.word.read()),mi)return this._create_token(dt.TEXT,mi)},Te.exports.Tokenizer=xt,Te.exports.TOKEN=dt}]);function wi(Te,Ee,ve){var Re=Te.getText(),We=!0,Be=0,Le=ve.tabSize||4;if(Ee){for(var Ke=Te.offsetAt(Ee.start),dt=Ke;dt>0&&ae(Re,dt-1);)dt--;dt===0||X(Re,dt-1)?Ke=dt:dt<Ke&&(Ke=dt+1);for(var yt=Te.offsetAt(Ee.end),xt=yt;xt<Re.length&&ae(Re,xt);)xt++;(xt===Re.length||X(Re,xt))&&(yt=xt),Ee=E.create(Te.positionAt(Ke),Te.positionAt(yt));var Xt=Re.substring(0,Ke);if(new RegExp(/.*[<][^>]*$/).test(Xt))return[{range:Ee,newText:Re=Re.substring(Ke,yt)}];if(We=yt===Re.length,Re=Re.substring(Ke,yt),Ke!==0){var mi=Te.offsetAt(H.create(Ee.start.line,0));Be=function(an,_n,ei){for(var ii=_n,bi=0,ln=ei.tabSize||4;ii<an.length;){var mn=an.charAt(ii);if(mn===" ")bi++;else{if(mn!==" ")break;bi+=ln}ii++}return Math.floor(bi/ln)}(Te.getText(),mi,ve)}}else Ee=E.create(H.create(0,0),Te.positionAt(Re.length));var Yt={indent_size:Le,indent_char:ve.insertSpaces?" ":" ",indent_empty_lines:Ti(ve,"indentEmptyLines",!1),wrap_line_length:Ti(ve,"wrapLineLength",120),unformatted:ft(ve,"unformatted",void 0),content_unformatted:ft(ve,"contentUnformatted",void 0),indent_inner_html:Ti(ve,"indentInnerHtml",!1),preserve_newlines:Ti(ve,"preserveNewLines",!0),max_preserve_newlines:Ti(ve,"maxPreserveNewLines",32786),indent_handlebars:Ti(ve,"indentHandlebars",!1),end_with_newline:We&&Ti(ve,"endWithNewline",!1),extra_liners:ft(ve,"extraLiners",void 0),wrap_attributes:Ti(ve,"wrapAttributes","auto"),wrap_attributes_indent_size:Ti(ve,"wrapAttributesIndentSize",void 0),eol:` +`},oi=function(an,_n){return Kt(an,_n,Ht,jt)}(Re.replace(/^\s+/,""),Yt);if(Be>0){var qi=ve.insertSpaces?xn(" ",Le*Be):xn(" ",Be);oi=oi.split(` `).join(` -`+qi),Ee.start.character===0&&(ri=qi+ri)}return[{range:Ee,newText:ri}]}function Ti(Te,Ee,ve){if(Te&&Te.hasOwnProperty(Ee)){var Re=Te[Ee];if(Re!==null)return Re}return ve}function ft(Te,Ee,ve){var Re=Ti(Te,Ee,null);return typeof Re=="string"?Re.length>0?Re.split(",").map(function(We){return We.trim().toLowerCase()}):[]:ve}function X(Te,Ee){return`\r -`.indexOf(Te.charAt(Ee))!==-1}function ae(Te,Ee){return" ".indexOf(Te.charAt(Ee))!==-1}var Ge=o(176);function lt(Te){var Ee=Te[0];return Ee!==Te[Te.length-1]||Ee!=="'"&&Ee!=='"'||(Te=Te.substr(1,Te.length-2)),Te}function Dt(Te,Ee,ve,Re,We,Be){var Le=lt(ve);if(Ke=Le,dt=Te.languageId,Ke.length&&(dt!=="handlebars"||!/{{.*}}/.test(Ke))&&/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(Ke)){var Ke,dt;Le.length<ve.length&&(Re++,We--);var yt=function(xt,Xt,mi,Yt){if(!/^\s*javascript\:/i.test(Xt)&&!/[\n\r]/.test(Xt))return Xt=Xt.replace(/^\s*/g,""),/^https?:\/\//i.test(Xt)||/^file:\/\//i.test(Xt)?Xt:/^\#/i.test(Xt)?xt+Xt:/^\/\//i.test(Xt)?(Wi(xt,"https://")?"https":"http")+":"+Xt.replace(/^\s*/g,""):mi?mi.resolveReference(Xt,Yt||xt):Xt}(Te.uri,Le,Ee,Be);if(yt&&function(xt){try{return Ge.a.parse(xt),!0}catch(Xt){return!1}}(yt))return{range:E.create(Te.positionAt(Re),Te.positionAt(We)),target:yt}}}function Gt(Te,Ee){for(var ve=[],Re=Hi(Te.getText(),0),We=Re.scan(),Be=void 0,Le=!1,Ke=void 0,dt={};We!==et.EOS;){switch(We){case et.StartTag:Ke||(Le=Re.getTokenText().toLowerCase()==="base");break;case et.AttributeName:Be=Re.getTokenText().toLowerCase();break;case et.AttributeValue:if(Be==="src"||Be==="href"){var yt=Re.getTokenText();Le||(mi=Dt(Te,Ee,yt,Re.getTokenOffset(),Re.getTokenEnd(),Ke))&&ve.push(mi),Le&&Ke===void 0&&(Ke=lt(yt))&&Ee&&(Ke=Ee.resolveReference(Ke,Te.uri)),Le=!1,Be=void 0}else Be==="id"&&(dt[lt(Re.getTokenText())]=Re.getTokenOffset())}We=Re.scan()}for(var xt=0,Xt=ve;xt<Xt.length;xt++){var mi=Xt[xt],Yt=Te.uri+"#";if(mi.target&&Wi(mi.target,Yt)){var ri=dt[mi.target.substr(Yt.length)];if(ri!==void 0){var qi=Te.positionAt(ri);mi.target=""+Yt+(qi.line+1)+","+(qi.character+1)}}}return ve}function ti(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re);if(!We.tag)return[];var Be=[],Le=ue(et.StartTag,Te,We.start),Ke=typeof We.endTagStart=="number"&&ue(et.EndTag,Te,We.endTagStart);return(Le&&le(Le,Ee)||Ke&&le(Ke,Ee))&&(Le&&Be.push({kind:$.Read,range:Le}),Ke&&Be.push({kind:$.Read,range:Ke})),Be}function ye(Te,Ee){return Te.line<Ee.line||Te.line===Ee.line&&Te.character<=Ee.character}function le(Te,Ee){return ye(Te.start,Ee)&&ye(Ee,Te.end)}function ue(Te,Ee,ve){for(var Re=Hi(Ee.getText(),ve),We=Re.scan();We!==et.EOS&&We!==Te;)We=Re.scan();return We!==et.EOS?{start:Ee.positionAt(Re.getTokenOffset()),end:Ee.positionAt(Re.getTokenEnd())}:null}function qe(Te,Ee){var ve=[];return Ee.roots.forEach(function(Re){(function We(Be,Le,Ke,dt){var yt=function(mi){var Yt=mi.tag;if(mi.attributes){var ri=mi.attributes.id,qi=mi.attributes.class;ri&&(Yt+="#"+ri.replace(/[\"\']/g,"")),qi&&(Yt+=qi.replace(/[\"\']/g,"").split(/\s+/).map(function(an){return"."+an}).join(""))}return Yt||"?"}(Le),xt=ge.create(Be.uri,E.create(Be.positionAt(Le.start),Be.positionAt(Le.end))),Xt={name:yt,location:xt,containerName:Ke,kind:z.Field};dt.push(Xt),Le.children.forEach(function(mi){We(Be,mi,yt,dt)})})(Te,Re,"",ve)}),ve}function Ze(Te,Ee,ve,Re){var We,Be=Te.offsetAt(Ee),Le=Re.findNodeAt(Be);if(!Le.tag||!function(xt,Xt,mi){return xt.endTagStart&&xt.endTagStart+"</".length<=Xt&&Xt<=xt.endTagStart+"</".length+mi.length?!0:xt.start+"<".length<=Xt&&Xt<=xt.start+"<".length+mi.length}(Le,Be,Le.tag))return null;var Ke=[],dt={start:Te.positionAt(Le.start+"<".length),end:Te.positionAt(Le.start+"<".length+Le.tag.length)};if(Ke.push({range:dt,newText:ve}),Le.endTagStart){var yt={start:Te.positionAt(Le.endTagStart+"</".length),end:Te.positionAt(Le.endTagStart+"</".length+Le.tag.length)};Ke.push({range:yt,newText:ve})}return{changes:((We={})[Te.uri.toString()]=Ke,We)}}function tt(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re);if(!We.tag||!We.endTagStart)return null;if(We.start+"<".length<=Re&&Re<=We.start+"<".length+We.tag.length){var Be=Re-"<".length-We.start+We.endTagStart+"</".length;return Te.positionAt(Be)}return We.endTagStart+"</".length<=Re&&Re<=We.endTagStart+"</".length+We.tag.length?(Be=Re-"</".length-We.endTagStart+We.start+"<".length,Te.positionAt(Be)):null}function rt(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re),Be=We.tag?We.tag.length:0;return We.endTagStart&&(We.start+"<".length<=Re&&Re<=We.start+"<".length+Be||We.endTagStart+"</".length<=Re&&Re<=We.endTagStart+"</".length+Be)?[E.create(Te.positionAt(We.start+"<".length),Te.positionAt(We.start+"<".length+Be)),E.create(Te.positionAt(We.endTagStart+"</".length),Te.positionAt(We.endTagStart+"</".length+Be))]:null}function zt(Te,Ee){var ve=Hi(Te.getText()),Re=ve.scan(),We=[],Be=[],Le=null,Ke=-1;function dt(an){We.push(an),Ke=an.startLine}for(;Re!==et.EOS;){switch(Re){case et.StartTag:var yt=ve.getTokenText(),xt=Te.positionAt(ve.getTokenOffset()).line;Be.push({startLine:xt,tagName:yt}),Le=yt;break;case et.EndTag:Le=ve.getTokenText();break;case et.StartTagClose:if(!Le||!Et(Le))break;case et.EndTagClose:case et.StartTagSelfClose:for(var Xt=Be.length-1;Xt>=0&&Be[Xt].tagName!==Le;)Xt--;if(Xt>=0){var mi=Be[Xt];Be.length=Xt,(ri=Te.positionAt(ve.getTokenOffset()).line-1)>(xt=mi.startLine)&&Ke!==xt&&dt({startLine:xt,endLine:ri})}break;case et.Comment:xt=Te.positionAt(ve.getTokenOffset()).line;var Yt=ve.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(Yt)if(Yt[1])Be.push({startLine:xt,tagName:""});else{for(Xt=Be.length-1;Xt>=0&&Be[Xt].tagName.length;)Xt--;if(Xt>=0){var ri;mi=Be[Xt],Be.length=Xt,(ri=xt)>(xt=mi.startLine)&&Ke!==xt&&dt({startLine:xt,endLine:ri,kind:S.Region})}}else xt<(ri=Te.positionAt(ve.getTokenOffset()+ve.getTokenLength()).line)&&dt({startLine:xt,endLine:ri,kind:S.Comment})}Re=ve.scan()}var qi=Ee&&Ee.rangeLimit||Number.MAX_VALUE;return We.length>qi?function(an,_n){an=an.sort(function(Ro,In){var Rn=Ro.startLine-In.startLine;return Rn===0&&(Rn=Ro.endLine-In.endLine),Rn});for(var ei=void 0,ii=[],bi=[],ln=[],mn=function(Ro,In){bi[Ro]=In,In<30&&(ln[In]=(ln[In]||0)+1)},sn=0;sn<an.length;sn++){var gn=an[sn];if(ei){if(gn.startLine>ei.startLine){if(gn.endLine<=ei.endLine)ii.push(ei),ei=gn,mn(sn,ii.length);else if(gn.startLine>ei.endLine){do ei=ii.pop();while(ei&&gn.startLine>ei.endLine);ei&&ii.push(ei),ei=gn,mn(sn,ii.length)}}}else ei=gn,mn(sn,0)}var Sn=0,En=0;for(sn=0;sn<ln.length;sn++){var Xn=ln[sn];if(Xn){if(Xn+Sn>_n){En=sn;break}Sn+=Xn}}var Yn=[];for(sn=0;sn<an.length;sn++){var Io=bi[sn];typeof Io=="number"&&(Io<En||Io===En&&Sn++<_n)&&Yn.push(an[sn])}return Yn}(We,qi):We}function Jt(Te,Ee){return Ee.map(function(ve){for(var Re=function(dt,yt){var xt=Si(dt.getText()),Xt=dt.offsetAt(yt),mi=xt.findNodeAt(Xt),Yt=function(an){for(var _n=an,ei=[];_n.parent;)_n=_n.parent,(ii=_n,ii.startTagEnd&&ii.endTagStart&&ii.startTagEnd<ii.endTagStart?[[ii.startTagEnd,ii.endTagStart],[ii.start,ii.end]]:[[ii.start,ii.end]]).forEach(function(bi){return ei.push(bi)});var ii;return ei}(mi);if(mi.startTagEnd&&!mi.endTagStart){if(mi.startTagEnd!==mi.end)return[[mi.start,mi.end]];var ri=E.create(dt.positionAt(mi.startTagEnd-2),dt.positionAt(mi.startTagEnd));dt.getText(ri)==="/>"?Yt.unshift([mi.start+1,mi.startTagEnd-2]):Yt.unshift([mi.start+1,mi.startTagEnd-1]);var qi=xi(dt,mi,Xt);return Yt=qi.concat(Yt)}return!mi.startTagEnd||!mi.endTagStart?Yt:(Yt.unshift([mi.start,mi.end]),mi.start<Xt&&Xt<mi.startTagEnd?(Yt.unshift([mi.start+1,mi.startTagEnd-1]),qi=xi(dt,mi,Xt),Yt=qi.concat(Yt)):mi.startTagEnd<=Xt&&Xt<=mi.endTagStart?(Yt.unshift([mi.startTagEnd,mi.endTagStart]),Yt):(Xt>=mi.endTagStart+2&&Yt.unshift([mi.endTagStart+2,mi.end-1]),Yt))}(Te,ve),We=void 0,Be=void 0,Le=Re.length-1;Le>=0;Le--){var Ke=Re[Le];We&&Ke[0]===We[0]&&Ke[1]===We[1]||(Be=At.create(E.create(Te.positionAt(Re[Le][0]),Te.positionAt(Re[Le][1])),Be)),We=Ke}return Be||(Be=At.create(E.create(ve,ve))),Be})}function xi(Te,Ee,ve){for(var Re=E.create(Te.positionAt(Ee.start),Te.positionAt(Ee.end)),We=Te.getText(Re),Be=ve-Ee.start,Le=Hi(We),Ke=Le.scan(),dt=Ee.start,yt=[],xt=!1,Xt=-1;Ke!==et.EOS;){switch(Ke){case et.AttributeName:if(Be<Le.getTokenOffset()){xt=!1;break}Be<=Le.getTokenEnd()&&yt.unshift([Le.getTokenOffset(),Le.getTokenEnd()]),xt=!0,Xt=Le.getTokenOffset();break;case et.AttributeValue:if(!xt)break;var mi=Le.getTokenText();if(Be<Le.getTokenOffset()){yt.push([Xt,Le.getTokenEnd()]);break}Be>=Le.getTokenOffset()&&Be<=Le.getTokenEnd()&&(yt.unshift([Le.getTokenOffset(),Le.getTokenEnd()]),(mi[0]==='"'&&mi[mi.length-1]==='"'||mi[0]==="'"&&mi[mi.length-1]==="'")&&Be>=Le.getTokenOffset()+1&&Be<=Le.getTokenEnd()-1&&yt.unshift([Le.getTokenOffset()+1,Le.getTokenEnd()-1]),yt.push([Xt,Le.getTokenEnd()]))}Ke=Le.scan()}return yt.map(function(Yt){return[Yt[0]+dt,Yt[1]+dt]})}var Ei={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set. +`+qi),Ee.start.character===0&&(oi=qi+oi)}return[{range:Ee,newText:oi}]}function Ti(Te,Ee,ve){if(Te&&Te.hasOwnProperty(Ee)){var Re=Te[Ee];if(Re!==null)return Re}return ve}function ft(Te,Ee,ve){var Re=Ti(Te,Ee,null);return typeof Re=="string"?Re.length>0?Re.split(",").map(function(We){return We.trim().toLowerCase()}):[]:ve}function X(Te,Ee){return`\r +`.indexOf(Te.charAt(Ee))!==-1}function ae(Te,Ee){return" ".indexOf(Te.charAt(Ee))!==-1}var Ge=r(176);function lt(Te){var Ee=Te[0];return Ee!==Te[Te.length-1]||Ee!=="'"&&Ee!=='"'||(Te=Te.substr(1,Te.length-2)),Te}function Ot(Te,Ee,ve,Re,We,Be){var Le=lt(ve);if(Ke=Le,dt=Te.languageId,Ke.length&&(dt!=="handlebars"||!/{{.*}}/.test(Ke))&&/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(Ke)){var Ke,dt;Le.length<ve.length&&(Re++,We--);var yt=function(xt,Xt,mi,Yt){if(!/^\s*javascript\:/i.test(Xt)&&!/[\n\r]/.test(Xt))return Xt=Xt.replace(/^\s*/g,""),/^https?:\/\//i.test(Xt)||/^file:\/\//i.test(Xt)?Xt:/^\#/i.test(Xt)?xt+Xt:/^\/\//i.test(Xt)?(Wi(xt,"https://")?"https":"http")+":"+Xt.replace(/^\s*/g,""):mi?mi.resolveReference(Xt,Yt||xt):Xt}(Te.uri,Le,Ee,Be);if(yt&&function(xt){try{return Ge.a.parse(xt),!0}catch(Xt){return!1}}(yt))return{range:E.create(Te.positionAt(Re),Te.positionAt(We)),target:yt}}}function Gt(Te,Ee){for(var ve=[],Re=Hi(Te.getText(),0),We=Re.scan(),Be=void 0,Le=!1,Ke=void 0,dt={};We!==et.EOS;){switch(We){case et.StartTag:Ke||(Le=Re.getTokenText().toLowerCase()==="base");break;case et.AttributeName:Be=Re.getTokenText().toLowerCase();break;case et.AttributeValue:if(Be==="src"||Be==="href"){var yt=Re.getTokenText();Le||(mi=Ot(Te,Ee,yt,Re.getTokenOffset(),Re.getTokenEnd(),Ke))&&ve.push(mi),Le&&Ke===void 0&&(Ke=lt(yt))&&Ee&&(Ke=Ee.resolveReference(Ke,Te.uri)),Le=!1,Be=void 0}else Be==="id"&&(dt[lt(Re.getTokenText())]=Re.getTokenOffset())}We=Re.scan()}for(var xt=0,Xt=ve;xt<Xt.length;xt++){var mi=Xt[xt],Yt=Te.uri+"#";if(mi.target&&Wi(mi.target,Yt)){var oi=dt[mi.target.substr(Yt.length)];if(oi!==void 0){var qi=Te.positionAt(oi);mi.target=""+Yt+(qi.line+1)+","+(qi.character+1)}}}return ve}function ti(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re);if(!We.tag)return[];var Be=[],Le=ue(et.StartTag,Te,We.start),Ke=typeof We.endTagStart=="number"&&ue(et.EndTag,Te,We.endTagStart);return(Le&&le(Le,Ee)||Ke&&le(Ke,Ee))&&(Le&&Be.push({kind:$.Read,range:Le}),Ke&&Be.push({kind:$.Read,range:Ke})),Be}function ye(Te,Ee){return Te.line<Ee.line||Te.line===Ee.line&&Te.character<=Ee.character}function le(Te,Ee){return ye(Te.start,Ee)&&ye(Ee,Te.end)}function ue(Te,Ee,ve){for(var Re=Hi(Ee.getText(),ve),We=Re.scan();We!==et.EOS&&We!==Te;)We=Re.scan();return We!==et.EOS?{start:Ee.positionAt(Re.getTokenOffset()),end:Ee.positionAt(Re.getTokenEnd())}:null}function qe(Te,Ee){var ve=[];return Ee.roots.forEach(function(Re){(function We(Be,Le,Ke,dt){var yt=function(mi){var Yt=mi.tag;if(mi.attributes){var oi=mi.attributes.id,qi=mi.attributes.class;oi&&(Yt+="#"+oi.replace(/[\"\']/g,"")),qi&&(Yt+=qi.replace(/[\"\']/g,"").split(/\s+/).map(function(an){return"."+an}).join(""))}return Yt||"?"}(Le),xt=ge.create(Be.uri,E.create(Be.positionAt(Le.start),Be.positionAt(Le.end))),Xt={name:yt,location:xt,containerName:Ke,kind:z.Field};dt.push(Xt),Le.children.forEach(function(mi){We(Be,mi,yt,dt)})})(Te,Re,"",ve)}),ve}function Ze(Te,Ee,ve,Re){var We,Be=Te.offsetAt(Ee),Le=Re.findNodeAt(Be);if(!Le.tag||!function(xt,Xt,mi){return xt.endTagStart&&xt.endTagStart+"</".length<=Xt&&Xt<=xt.endTagStart+"</".length+mi.length?!0:xt.start+"<".length<=Xt&&Xt<=xt.start+"<".length+mi.length}(Le,Be,Le.tag))return null;var Ke=[],dt={start:Te.positionAt(Le.start+"<".length),end:Te.positionAt(Le.start+"<".length+Le.tag.length)};if(Ke.push({range:dt,newText:ve}),Le.endTagStart){var yt={start:Te.positionAt(Le.endTagStart+"</".length),end:Te.positionAt(Le.endTagStart+"</".length+Le.tag.length)};Ke.push({range:yt,newText:ve})}return{changes:((We={})[Te.uri.toString()]=Ke,We)}}function tt(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re);if(!We.tag||!We.endTagStart)return null;if(We.start+"<".length<=Re&&Re<=We.start+"<".length+We.tag.length){var Be=Re-"<".length-We.start+We.endTagStart+"</".length;return Te.positionAt(Be)}return We.endTagStart+"</".length<=Re&&Re<=We.endTagStart+"</".length+We.tag.length?(Be=Re-"</".length-We.endTagStart+We.start+"<".length,Te.positionAt(Be)):null}function ot(Te,Ee,ve){var Re=Te.offsetAt(Ee),We=ve.findNodeAt(Re),Be=We.tag?We.tag.length:0;return We.endTagStart&&(We.start+"<".length<=Re&&Re<=We.start+"<".length+Be||We.endTagStart+"</".length<=Re&&Re<=We.endTagStart+"</".length+Be)?[E.create(Te.positionAt(We.start+"<".length),Te.positionAt(We.start+"<".length+Be)),E.create(Te.positionAt(We.endTagStart+"</".length),Te.positionAt(We.endTagStart+"</".length+Be))]:null}function zt(Te,Ee){var ve=Hi(Te.getText()),Re=ve.scan(),We=[],Be=[],Le=null,Ke=-1;function dt(an){We.push(an),Ke=an.startLine}for(;Re!==et.EOS;){switch(Re){case et.StartTag:var yt=ve.getTokenText(),xt=Te.positionAt(ve.getTokenOffset()).line;Be.push({startLine:xt,tagName:yt}),Le=yt;break;case et.EndTag:Le=ve.getTokenText();break;case et.StartTagClose:if(!Le||!Et(Le))break;case et.EndTagClose:case et.StartTagSelfClose:for(var Xt=Be.length-1;Xt>=0&&Be[Xt].tagName!==Le;)Xt--;if(Xt>=0){var mi=Be[Xt];Be.length=Xt,(oi=Te.positionAt(ve.getTokenOffset()).line-1)>(xt=mi.startLine)&&Ke!==xt&&dt({startLine:xt,endLine:oi})}break;case et.Comment:xt=Te.positionAt(ve.getTokenOffset()).line;var Yt=ve.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(Yt)if(Yt[1])Be.push({startLine:xt,tagName:""});else{for(Xt=Be.length-1;Xt>=0&&Be[Xt].tagName.length;)Xt--;if(Xt>=0){var oi;mi=Be[Xt],Be.length=Xt,(oi=xt)>(xt=mi.startLine)&&Ke!==xt&&dt({startLine:xt,endLine:oi,kind:S.Region})}}else xt<(oi=Te.positionAt(ve.getTokenOffset()+ve.getTokenLength()).line)&&dt({startLine:xt,endLine:oi,kind:S.Comment})}Re=ve.scan()}var qi=Ee&&Ee.rangeLimit||Number.MAX_VALUE;return We.length>qi?function(an,_n){an=an.sort(function(Ar,In){var Rn=Ar.startLine-In.startLine;return Rn===0&&(Rn=Ar.endLine-In.endLine),Rn});for(var ei=void 0,ii=[],bi=[],ln=[],mn=function(Ar,In){bi[Ar]=In,In<30&&(ln[In]=(ln[In]||0)+1)},sn=0;sn<an.length;sn++){var gn=an[sn];if(ei){if(gn.startLine>ei.startLine){if(gn.endLine<=ei.endLine)ii.push(ei),ei=gn,mn(sn,ii.length);else if(gn.startLine>ei.endLine){do ei=ii.pop();while(ei&&gn.startLine>ei.endLine);ei&&ii.push(ei),ei=gn,mn(sn,ii.length)}}}else ei=gn,mn(sn,0)}var Sn=0,En=0;for(sn=0;sn<ln.length;sn++){var Xn=ln[sn];if(Xn){if(Xn+Sn>_n){En=sn;break}Sn+=Xn}}var Yn=[];for(sn=0;sn<an.length;sn++){var Nr=bi[sn];typeof Nr=="number"&&(Nr<En||Nr===En&&Sn++<_n)&&Yn.push(an[sn])}return Yn}(We,qi):We}function Jt(Te,Ee){return Ee.map(function(ve){for(var Re=function(dt,yt){var xt=Si(dt.getText()),Xt=dt.offsetAt(yt),mi=xt.findNodeAt(Xt),Yt=function(an){for(var _n=an,ei=[];_n.parent;)_n=_n.parent,(ii=_n,ii.startTagEnd&&ii.endTagStart&&ii.startTagEnd<ii.endTagStart?[[ii.startTagEnd,ii.endTagStart],[ii.start,ii.end]]:[[ii.start,ii.end]]).forEach(function(bi){return ei.push(bi)});var ii;return ei}(mi);if(mi.startTagEnd&&!mi.endTagStart){if(mi.startTagEnd!==mi.end)return[[mi.start,mi.end]];var oi=E.create(dt.positionAt(mi.startTagEnd-2),dt.positionAt(mi.startTagEnd));dt.getText(oi)==="/>"?Yt.unshift([mi.start+1,mi.startTagEnd-2]):Yt.unshift([mi.start+1,mi.startTagEnd-1]);var qi=xi(dt,mi,Xt);return Yt=qi.concat(Yt)}return!mi.startTagEnd||!mi.endTagStart?Yt:(Yt.unshift([mi.start,mi.end]),mi.start<Xt&&Xt<mi.startTagEnd?(Yt.unshift([mi.start+1,mi.startTagEnd-1]),qi=xi(dt,mi,Xt),Yt=qi.concat(Yt)):mi.startTagEnd<=Xt&&Xt<=mi.endTagStart?(Yt.unshift([mi.startTagEnd,mi.endTagStart]),Yt):(Xt>=mi.endTagStart+2&&Yt.unshift([mi.endTagStart+2,mi.end-1]),Yt))}(Te,ve),We=void 0,Be=void 0,Le=Re.length-1;Le>=0;Le--){var Ke=Re[Le];We&&Ke[0]===We[0]&&Ke[1]===We[1]||(Be=At.create(E.create(Te.positionAt(Re[Le][0]),Te.positionAt(Re[Le][1])),Be)),We=Ke}return Be||(Be=At.create(E.create(ve,ve))),Be})}function xi(Te,Ee,ve){for(var Re=E.create(Te.positionAt(Ee.start),Te.positionAt(Ee.end)),We=Te.getText(Re),Be=ve-Ee.start,Le=Hi(We),Ke=Le.scan(),dt=Ee.start,yt=[],xt=!1,Xt=-1;Ke!==et.EOS;){switch(Ke){case et.AttributeName:if(Be<Le.getTokenOffset()){xt=!1;break}Be<=Le.getTokenEnd()&&yt.unshift([Le.getTokenOffset(),Le.getTokenEnd()]),xt=!0,Xt=Le.getTokenOffset();break;case et.AttributeValue:if(!xt)break;var mi=Le.getTokenText();if(Be<Le.getTokenOffset()){yt.push([Xt,Le.getTokenEnd()]);break}Be>=Le.getTokenOffset()&&Be<=Le.getTokenEnd()&&(yt.unshift([Le.getTokenOffset(),Le.getTokenEnd()]),(mi[0]==='"'&&mi[mi.length-1]==='"'||mi[0]==="'"&&mi[mi.length-1]==="'")&&Be>=Le.getTokenOffset()+1&&Be<=Le.getTokenEnd()-1&&yt.unshift([Le.getTokenOffset()+1,Le.getTokenEnd()-1]),yt.push([Xt,Le.getTokenEnd()]))}Ke=Le.scan()}return yt.map(function(Yt){return[Yt[0]+dt,Yt[1]+dt]})}var Ei={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set. This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are: @@ -467,38 +467,38 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support * a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation; * \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention; -* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedat",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedat"}]},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-kbdshortcuts",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-kbdshortcuts"}]},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"GET",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"POST",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"GET"},{name:"POST"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]}]},ai=function(){function Te(Ee){this.dataProviders=[],this.setDataProviders(Ee.useDefaultDataProvider!==!1,Ee.customDataProviders||[])}return Te.prototype.setDataProviders=function(Ee,ve){var Re;this.dataProviders=[],Ee&&this.dataProviders.push(new pn("html5",Ei)),(Re=this.dataProviders).push.apply(Re,ve)},Te.prototype.getDataProviders=function(){return this.dataProviders},Te}(),fi={};function ui(Te){Te===void 0&&(Te=fi);var Ee=new ai(Te),ve=new Tt(Te,Ee),Re=new ot(Te,Ee);return{setDataProviders:Ee.setDataProviders.bind(Ee),createScanner:Hi,parseHTMLDocument:function(We){return Si(We.getText())},doComplete:Re.doComplete.bind(Re),doComplete2:Re.doComplete2.bind(Re),setCompletionParticipants:Re.setCompletionParticipants.bind(Re),doHover:ve.doHover.bind(ve),format:wi,findDocumentHighlights:ti,findDocumentLinks:Gt,findDocumentSymbols:qe,getFoldingRanges:zt,getSelectionRanges:Jt,doTagComplete:Re.doTagComplete.bind(Re),doRename:Ze,findMatchingTagPosition:tt,findOnTypeRenameRanges:rt}}},function(Ie,w,o){"use strict";var h,f=function(){return h===void 0&&(h=Boolean(window&&document&&document.all&&!window.atob)),h},D=function(){var l={};return function(T){if(l[T]===void 0){var N=document.querySelector(T);if(window.HTMLIFrameElement&&N instanceof window.HTMLIFrameElement)try{N=N.contentDocument.head}catch(b){N=null}l[T]=N}return l[T]}}(),H=[];function E(l){for(var T=-1,N=0;N<H.length;N++)if(H[N].identifier===l){T=N;break}return T}function ge(l,T){for(var N={},b=[],g=0;g<l.length;g++){var j=l[g],ie=T.base?j[0]+T.base:j[0],U=N[ie]||0,q="".concat(ie," ").concat(U);N[ie]=U+1;var B=E(q),se={css:j[1],media:j[2],sourceMap:j[3]};B!==-1?(H[B].references++,H[B].updater(se)):H.push({identifier:q,updater:k(se,T),references:1}),b.push(q)}return b}function W(l){var T=document.createElement("style"),N=l.attributes||{};if(N.nonce===void 0){var b=o.nc;b&&(N.nonce=b)}if(Object.keys(N).forEach(function(j){T.setAttribute(j,N[j])}),typeof l.insert=="function")l.insert(T);else{var g=D(l.insert||"head");if(!g)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");g.appendChild(T)}return T}var Q,y=(Q=[],function(l,T){return Q[l]=T,Q.filter(Boolean).join(` -`)});function C(l,T,N,b){var g=N?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(l.styleSheet)l.styleSheet.cssText=y(T,g);else{var j=document.createTextNode(g),ie=l.childNodes;ie[T]&&l.removeChild(ie[T]),ie.length?l.insertBefore(j,ie[T]):l.appendChild(j)}}function S(l,T,N){var b=N.css,g=N.media,j=N.sourceMap;if(g?l.setAttribute("media",g):l.removeAttribute("media"),j&&btoa&&(b+=` -/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(j))))," */")),l.styleSheet)l.styleSheet.cssText=b;else{for(;l.firstChild;)l.removeChild(l.firstChild);l.appendChild(document.createTextNode(b))}}var P=null,V=0;function k(l,T){var N,b,g;if(T.singleton){var j=V++;N=P||(P=W(T)),b=C.bind(null,N,j,!1),g=C.bind(null,N,j,!0)}else N=W(T),b=S.bind(null,N,T),g=function(){(function(ie){if(ie.parentNode===null)return!1;ie.parentNode.removeChild(ie)})(N)};return b(l),function(ie){if(ie){if(ie.css===l.css&&ie.media===l.media&&ie.sourceMap===l.sourceMap)return;b(l=ie)}else g()}}Ie.exports=function(l,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=f());var N=ge(l=l||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var g=0;g<N.length;g++){var j=E(N[g]);H[j].references--}for(var ie=ge(b,T),U=0;U<N.length;U++){var q=E(N[U]);H[q].references===0&&(H[q].updater(),H.splice(q,1))}N=ie}}}},function(Ie,w,o){"use strict";Ie.exports=function(h){var f=[];return f.toString=function(){return this.map(function(D){var H=function(E,ge){var W=E[1]||"",Q=E[3];if(!Q)return W;if(ge&&typeof btoa=="function"){var y=(S=Q,P=btoa(unescape(encodeURIComponent(JSON.stringify(S)))),V="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(P),"/*# ".concat(V," */")),C=Q.sources.map(function(k){return"/*# sourceURL=".concat(Q.sourceRoot||"").concat(k," */")});return[W].concat(C).concat([y]).join(` +* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedat",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedat"}]},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-kbdshortcuts",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-kbdshortcuts"}]},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"GET",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"POST",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"GET"},{name:"POST"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]}]},ai=function(){function Te(Ee){this.dataProviders=[],this.setDataProviders(Ee.useDefaultDataProvider!==!1,Ee.customDataProviders||[])}return Te.prototype.setDataProviders=function(Ee,ve){var Re;this.dataProviders=[],Ee&&this.dataProviders.push(new pn("html5",Ei)),(Re=this.dataProviders).push.apply(Re,ve)},Te.prototype.getDataProviders=function(){return this.dataProviders},Te}(),fi={};function ui(Te){Te===void 0&&(Te=fi);var Ee=new ai(Te),ve=new Tt(Te,Ee),Re=new rt(Te,Ee);return{setDataProviders:Ee.setDataProviders.bind(Ee),createScanner:Hi,parseHTMLDocument:function(We){return Si(We.getText())},doComplete:Re.doComplete.bind(Re),doComplete2:Re.doComplete2.bind(Re),setCompletionParticipants:Re.setCompletionParticipants.bind(Re),doHover:ve.doHover.bind(ve),format:wi,findDocumentHighlights:ti,findDocumentLinks:Gt,findDocumentSymbols:qe,getFoldingRanges:zt,getSelectionRanges:Jt,doTagComplete:Re.doTagComplete.bind(Re),doRename:Ze,findMatchingTagPosition:tt,findOnTypeRenameRanges:ot}}},function(Ie,w,r){"use strict";var h,f=function(){return h===void 0&&(h=Boolean(window&&document&&document.all&&!window.atob)),h},O=function(){var l={};return function(T){if(l[T]===void 0){var N=document.querySelector(T);if(window.HTMLIFrameElement&&N instanceof window.HTMLIFrameElement)try{N=N.contentDocument.head}catch(b){N=null}l[T]=N}return l[T]}}(),H=[];function E(l){for(var T=-1,N=0;N<H.length;N++)if(H[N].identifier===l){T=N;break}return T}function ge(l,T){for(var N={},b=[],g=0;g<l.length;g++){var j=l[g],ie=T.base?j[0]+T.base:j[0],U=N[ie]||0,q="".concat(ie," ").concat(U);N[ie]=U+1;var B=E(q),se={css:j[1],media:j[2],sourceMap:j[3]};B!==-1?(H[B].references++,H[B].updater(se)):H.push({identifier:q,updater:k(se,T),references:1}),b.push(q)}return b}function W(l){var T=document.createElement("style"),N=l.attributes||{};if(N.nonce===void 0){var b=r.nc;b&&(N.nonce=b)}if(Object.keys(N).forEach(function(j){T.setAttribute(j,N[j])}),typeof l.insert=="function")l.insert(T);else{var g=O(l.insert||"head");if(!g)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");g.appendChild(T)}return T}var Q,y=(Q=[],function(l,T){return Q[l]=T,Q.filter(Boolean).join(` +`)});function C(l,T,N,b){var g=N?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(l.styleSheet)l.styleSheet.cssText=y(T,g);else{var j=document.createTextNode(g),ie=l.childNodes;ie[T]&&l.removeChild(ie[T]),ie.length?l.insertBefore(j,ie[T]):l.appendChild(j)}}function S(l,T,N){var b=N.css,g=N.media,j=N.sourceMap;if(g?l.setAttribute("media",g):l.removeAttribute("media"),j&&typeof btoa!="undefined"&&(b+=` +/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(j))))," */")),l.styleSheet)l.styleSheet.cssText=b;else{for(;l.firstChild;)l.removeChild(l.firstChild);l.appendChild(document.createTextNode(b))}}var P=null,V=0;function k(l,T){var N,b,g;if(T.singleton){var j=V++;N=P||(P=W(T)),b=C.bind(null,N,j,!1),g=C.bind(null,N,j,!0)}else N=W(T),b=S.bind(null,N,T),g=function(){(function(ie){if(ie.parentNode===null)return!1;ie.parentNode.removeChild(ie)})(N)};return b(l),function(ie){if(ie){if(ie.css===l.css&&ie.media===l.media&&ie.sourceMap===l.sourceMap)return;b(l=ie)}else g()}}Ie.exports=function(l,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=f());var N=ge(l=l||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var g=0;g<N.length;g++){var j=E(N[g]);H[j].references--}for(var ie=ge(b,T),U=0;U<N.length;U++){var q=E(N[U]);H[q].references===0&&(H[q].updater(),H.splice(q,1))}N=ie}}}},function(Ie,w,r){"use strict";Ie.exports=function(h){var f=[];return f.toString=function(){return this.map(function(O){var H=function(E,ge){var W=E[1]||"",Q=E[3];if(!Q)return W;if(ge&&typeof btoa=="function"){var y=(S=Q,P=btoa(unescape(encodeURIComponent(JSON.stringify(S)))),V="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(P),"/*# ".concat(V," */")),C=Q.sources.map(function(k){return"/*# sourceURL=".concat(Q.sourceRoot||"").concat(k," */")});return[W].concat(C).concat([y]).join(` `)}var S,P,V;return[W].join(` -`)}(D,h);return D[2]?"@media ".concat(D[2]," {").concat(H,"}"):H}).join("")},f.i=function(D,H,E){typeof D=="string"&&(D=[[null,D,""]]);var ge={};if(E)for(var W=0;W<this.length;W++){var Q=this[W][0];Q!=null&&(ge[Q]=!0)}for(var y=0;y<D.length;y++){var C=[].concat(D[y]);E&&ge[C[0]]||(H&&(C[2]?C[2]="".concat(H," and ").concat(C[2]):C[2]=H),f.push(C))}},f}},function(Ie,w,o){"use strict";o.d(w,"d",function(){return D}),o.d(w,"b",function(){return H}),o.d(w,"n",function(){return E}),o.d(w,"c",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"f",function(){return y}),o.d(w,"h",function(){return C}),o.d(w,"l",function(){return S}),o.d(w,"e",function(){return P}),o.d(w,"j",function(){return V}),o.d(w,"m",function(){return k}),o.d(w,"i",function(){return l}),o.d(w,"g",function(){return T}),o.d(w,"k",function(){return N});var h=o(6);class f{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new h.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let g=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1)}}function D(){return f.INSTANCE.getZoomLevel()}function H(){return f.INSTANCE.getTimeSinceLastZoomLevelChanged()}function E(b){return f.INSTANCE.onDidChangeZoomLevel(b)}function ge(){return f.INSTANCE.getZoomFactor()}function W(){return f.INSTANCE.getPixelRatio()}f.INSTANCE=new f;let Q=navigator.userAgent,y=Q.indexOf("Edge/")>=0,C=Q.indexOf("Firefox")>=0,S=Q.indexOf("AppleWebKit")>=0,P=Q.indexOf("Chrome")>=0,V=!P&&Q.indexOf("Safari")>=0,k=!P&&!V&&S,l=Q.indexOf("iPad")>=0||V&&navigator.maxTouchPoints>0,T=y&&Q.indexOf("WebView/")>=0,N=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(1);class f{constructor(E){this.domNode=E,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(E){this._maxWidth!==E&&(this._maxWidth=E,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(E){this._width!==E&&(this._width=E,this.domNode.style.width=this._width+"px")}setHeight(E){this._height!==E&&(this._height=E,this.domNode.style.height=this._height+"px")}setTop(E){this._top!==E&&(this._top=E,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(E){this._left!==E&&(this._left=E,this.domNode.style.left=this._left+"px")}setBottom(E){this._bottom!==E&&(this._bottom=E,this.domNode.style.bottom=this._bottom+"px")}setRight(E){this._right!==E&&(this._right=E,this.domNode.style.right=this._right+"px")}setFontFamily(E){this._fontFamily!==E&&(this._fontFamily=E,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(E){this._fontWeight!==E&&(this._fontWeight=E,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(E){this._fontSize!==E&&(this._fontSize=E,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(E){this._fontFeatureSettings!==E&&(this._fontFeatureSettings=E,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(E){this._lineHeight!==E&&(this._lineHeight=E,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(E){this._letterSpacing!==E&&(this._letterSpacing=E,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(E){this._className!==E&&(this._className=E,this.domNode.className=this._className)}toggleClassName(E,ge){h.ab(this.domNode,E,ge),this._className=this.domNode.className}setDisplay(E){this._display!==E&&(this._display=E,this.domNode.style.display=this._display)}setPosition(E){this._position!==E&&(this._position=E,this.domNode.style.position=this._position)}setVisibility(E){this._visibility!==E&&(this._visibility=E,this.domNode.style.visibility=this._visibility)}setBackgroundColor(E){this._backgroundColor!==E&&(this._backgroundColor=E,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(E){this._layerHint!==E&&(this._layerHint=E,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(E){this._boxShadow!==E&&(this._boxShadow=E,this.domNode.style.boxShadow=E)}setContain(E){this._contain!==E&&(this._contain=E,this.domNode.style.contain=this._contain)}setAttribute(E,ge){this.domNode.setAttribute(E,ge)}removeAttribute(E){this.domNode.removeAttribute(E)}appendChild(E){this.domNode.appendChild(E.domNode)}removeChild(E){this.domNode.removeChild(E.domNode)}}function D(H){return new f(H)}},function(Ie,w,o){"use strict";function h(D){return D<0?0:D>255?255:0|D}function f(D){return D<0?0:D>4294967295?4294967295:0|D}o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f})},function(Ie,w,o){"use strict";var h;o.d(w,"a",function(){return h}),function(f){f.is=function(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"};let D=Object.freeze([]);f.empty=function(){return D},f.single=function*(H){yield H},f.from=function(H){return H||D},f.first=function(H){return H[Symbol.iterator]().next().value},f.some=function(H,E){for(let ge of H)if(E(ge))return!0;return!1},f.filter=function*(H,E){for(let ge of H)E(ge)&&(yield ge)},f.map=function*(H,E){for(let ge of H)yield E(ge)},f.concat=function*(...H){for(let E of H)for(let ge of E)yield ge},f.consume=function(H,E=Number.POSITIVE_INFINITY){let ge=[];if(E===0)return[ge,H];let W=H[Symbol.iterator]();for(let Q=0;Q<E;Q++){let y=W.next();if(y.done)return[ge,f.empty()];ge.push(y.value)}return[ge,{[Symbol.iterator]:()=>W}]}}(h||(h={}))},function(Ie,w,o){"use strict";o.d(w,"f",function(){return pi}),o.d(w,"c",function(){return Q}),o.d(w,"b",function(){return S}),o.d(w,"a",function(){return he}),o.d(w,"d",function(){return Ce}),o.d(w,"e",function(){return z}),o.d(w,"g",function(){return ti});var h,f,D,H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie=o(65);function U(ye,le){if(ye===le)return!0;if(ye==null||le==null||typeof ye!=typeof le||typeof ye!="object"||Array.isArray(ye)!==Array.isArray(le))return!1;var ue,qe;if(Array.isArray(ye)){if(ye.length!==le.length)return!1;for(ue=0;ue<ye.length;ue++)if(!U(ye[ue],le[ue]))return!1}else{var Ze=[];for(qe in ye)Ze.push(qe);Ze.sort();var tt=[];for(qe in le)tt.push(qe);if(tt.sort(),!U(Ze,tt))return!1;for(ue=0;ue<Ze.length;ue++)if(!U(ye[Ze[ue]],le[Ze[ue]]))return!1}return!0}function q(ye){return typeof ye=="number"}function B(ye){return ye!==void 0}function se(ye){return typeof ye=="boolean"}(function(ye){ye.create=function(le,ue){return{line:le,character:ue}},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&wt.number(ue.line)&&wt.number(ue.character)}})(h||(h={})),function(ye){ye.create=function(le,ue,qe,Ze){if(wt.number(le)&&wt.number(ue)&&wt.number(qe)&&wt.number(Ze))return{start:h.create(le,ue),end:h.create(qe,Ze)};if(h.is(le)&&h.is(ue))return{start:le,end:ue};throw new Error("Range#create called with invalid arguments["+le+", "+ue+", "+qe+", "+Ze+"]")},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&h.is(ue.start)&&h.is(ue.end)}}(f||(f={})),function(ye){ye.create=function(le,ue){return{uri:le,range:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.string(ue.uri)||wt.undefined(ue.uri))}}(D||(D={})),function(ye){ye.create=function(le,ue,qe,Ze){return{targetUri:le,targetRange:ue,targetSelectionRange:qe,originSelectionRange:Ze}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.targetRange)&&wt.string(ue.targetUri)&&(f.is(ue.targetSelectionRange)||wt.undefined(ue.targetSelectionRange))&&(f.is(ue.originSelectionRange)||wt.undefined(ue.originSelectionRange))}}(H||(H={})),function(ye){ye.create=function(le,ue,qe,Ze){return{red:le,green:ue,blue:qe,alpha:Ze}},ye.is=function(le){var ue=le;return wt.number(ue.red)&&wt.number(ue.green)&&wt.number(ue.blue)&&wt.number(ue.alpha)}}(E||(E={})),function(ye){ye.create=function(le,ue){return{range:le,color:ue}},ye.is=function(le){var ue=le;return f.is(ue.range)&&E.is(ue.color)}}(ge||(ge={})),function(ye){ye.create=function(le,ue,qe){return{label:le,textEdit:ue,additionalTextEdits:qe}},ye.is=function(le){var ue=le;return wt.string(ue.label)&&(wt.undefined(ue.textEdit)||l.is(ue))&&(wt.undefined(ue.additionalTextEdits)||wt.typedArray(ue.additionalTextEdits,l.is))}}(W||(W={})),function(ye){ye.Comment="comment",ye.Imports="imports",ye.Region="region"}(Q||(Q={})),function(ye){ye.create=function(le,ue,qe,Ze,tt){var rt={startLine:le,endLine:ue};return wt.defined(qe)&&(rt.startCharacter=qe),wt.defined(Ze)&&(rt.endCharacter=Ze),wt.defined(tt)&&(rt.kind=tt),rt},ye.is=function(le){var ue=le;return wt.number(ue.startLine)&&wt.number(ue.startLine)&&(wt.undefined(ue.startCharacter)||wt.number(ue.startCharacter))&&(wt.undefined(ue.endCharacter)||wt.number(ue.endCharacter))&&(wt.undefined(ue.kind)||wt.string(ue.kind))}}(y||(y={})),function(ye){ye.create=function(le,ue){return{location:le,message:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&D.is(ue.location)&&wt.string(ue.message)}}(C||(C={})),function(ye){ye.Error=1,ye.Warning=2,ye.Information=3,ye.Hint=4}(S||(S={})),function(ye){ye.Unnecessary=1,ye.Deprecated=2}(P||(P={})),function(ye){ye.create=function(le,ue,qe,Ze,tt,rt){var zt={range:le,message:ue};return wt.defined(qe)&&(zt.severity=qe),wt.defined(Ze)&&(zt.code=Ze),wt.defined(tt)&&(zt.source=tt),wt.defined(rt)&&(zt.relatedInformation=rt),zt},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&wt.string(ue.message)&&(wt.number(ue.severity)||wt.undefined(ue.severity))&&(wt.number(ue.code)||wt.string(ue.code)||wt.undefined(ue.code))&&(wt.string(ue.source)||wt.undefined(ue.source))&&(wt.undefined(ue.relatedInformation)||wt.typedArray(ue.relatedInformation,C.is))}}(V||(V={})),function(ye){ye.create=function(le,ue){for(var qe=[],Ze=2;Ze<arguments.length;Ze++)qe[Ze-2]=arguments[Ze];var tt={title:le,command:ue};return wt.defined(qe)&&qe.length>0&&(tt.arguments=qe),tt},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.title)&&wt.string(ue.command)}}(k||(k={})),function(ye){ye.replace=function(le,ue){return{range:le,newText:ue}},ye.insert=function(le,ue){return{range:{start:le,end:le},newText:ue}},ye.del=function(le){return{range:le,newText:""}},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&wt.string(ue.newText)&&f.is(ue.range)}}(l||(l={})),function(ye){ye.create=function(le,ue){return{textDocument:le,edits:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&xe.is(ue.textDocument)&&Array.isArray(ue.edits)}}(T||(T={})),function(ye){ye.create=function(le,ue){var qe={kind:"create",uri:le};return ue===void 0||ue.overwrite===void 0&&ue.ignoreIfExists===void 0||(qe.options=ue),qe},ye.is=function(le){var ue=le;return ue&&ue.kind==="create"&&wt.string(ue.uri)&&(ue.options===void 0||(ue.options.overwrite===void 0||wt.boolean(ue.options.overwrite))&&(ue.options.ignoreIfExists===void 0||wt.boolean(ue.options.ignoreIfExists)))}}(N||(N={})),function(ye){ye.create=function(le,ue,qe){var Ze={kind:"rename",oldUri:le,newUri:ue};return qe===void 0||qe.overwrite===void 0&&qe.ignoreIfExists===void 0||(Ze.options=qe),Ze},ye.is=function(le){var ue=le;return ue&&ue.kind==="rename"&&wt.string(ue.oldUri)&&wt.string(ue.newUri)&&(ue.options===void 0||(ue.options.overwrite===void 0||wt.boolean(ue.options.overwrite))&&(ue.options.ignoreIfExists===void 0||wt.boolean(ue.options.ignoreIfExists)))}}(b||(b={})),function(ye){ye.create=function(le,ue){var qe={kind:"delete",uri:le};return ue===void 0||ue.recursive===void 0&&ue.ignoreIfNotExists===void 0||(qe.options=ue),qe},ye.is=function(le){var ue=le;return ue&&ue.kind==="delete"&&wt.string(ue.uri)&&(ue.options===void 0||(ue.options.recursive===void 0||wt.boolean(ue.options.recursive))&&(ue.options.ignoreIfNotExists===void 0||wt.boolean(ue.options.ignoreIfNotExists)))}}(g||(g={})),function(ye){ye.is=function(le){var ue=le;return ue&&(ue.changes!==void 0||ue.documentChanges!==void 0)&&(ue.documentChanges===void 0||ue.documentChanges.every(function(qe){return wt.string(qe.kind)?N.is(qe)||b.is(qe)||g.is(qe):T.is(qe)}))}}(j||(j={}));var ke,xe,Y,Z,te,he,Ce,Ae,L,nt,ct,Ye,ht,fe,$,G,z,J,Se,A,ee,de,Oe,$e,pt,it,At,Nt=function(){function ye(le){this.edits=le}return ye.prototype.insert=function(le,ue){this.edits.push(l.insert(le,ue))},ye.prototype.replace=function(le,ue){this.edits.push(l.replace(le,ue))},ye.prototype.delete=function(le){this.edits.push(l.del(le))},ye.prototype.add=function(le){this.edits.push(le)},ye.prototype.all=function(){return this.edits},ye.prototype.clear=function(){this.edits.splice(0,this.edits.length)},ye}();(function(){function ye(le){var ue=this;this._textEditChanges=Object.create(null),le&&(this._workspaceEdit=le,le.documentChanges?le.documentChanges.forEach(function(qe){if(T.is(qe)){var Ze=new Nt(qe.edits);ue._textEditChanges[qe.textDocument.uri]=Ze}}):le.changes&&Object.keys(le.changes).forEach(function(qe){var Ze=new Nt(le.changes[qe]);ue._textEditChanges[qe]=Ze}))}Object.defineProperty(ye.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),ye.prototype.getTextEditChange=function(le){if(xe.is(le)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var ue=le;if(!(Ze=this._textEditChanges[ue.uri])){var qe={textDocument:ue,edits:tt=[]};this._workspaceEdit.documentChanges.push(qe),Ze=new Nt(tt),this._textEditChanges[ue.uri]=Ze}return Ze}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var Ze;if(!(Ze=this._textEditChanges[le])){var tt=[];this._workspaceEdit.changes[le]=tt,Ze=new Nt(tt),this._textEditChanges[le]=Ze}return Ze},ye.prototype.createFile=function(le,ue){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(N.create(le,ue))},ye.prototype.renameFile=function(le,ue,qe){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(le,ue,qe))},ye.prototype.deleteFile=function(le,ue){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(g.create(le,ue))},ye.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(ye){ye.create=function(le){return{uri:le}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)}}(ke||(ke={})),function(ye){ye.create=function(le,ue){return{uri:le,version:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)&&(ue.version===null||wt.number(ue.version))}}(xe||(xe={})),function(ye){ye.create=function(le,ue,qe,Ze){return{uri:le,languageId:ue,version:qe,text:Ze}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)&&wt.string(ue.languageId)&&wt.number(ue.version)&&wt.string(ue.text)}}(Y||(Y={})),function(ye){ye.PlainText="plaintext",ye.Markdown="markdown"}(Z||(Z={})),function(ye){ye.is=function(le){var ue=le;return ue===ye.PlainText||ue===ye.Markdown}}(Z||(Z={})),function(ye){ye.is=function(le){var ue=le;return wt.objectLiteral(le)&&Z.is(ue.kind)&&wt.string(ue.value)}}(te||(te={})),function(ye){ye.Text=1,ye.Method=2,ye.Function=3,ye.Constructor=4,ye.Field=5,ye.Variable=6,ye.Class=7,ye.Interface=8,ye.Module=9,ye.Property=10,ye.Unit=11,ye.Value=12,ye.Enum=13,ye.Keyword=14,ye.Snippet=15,ye.Color=16,ye.File=17,ye.Reference=18,ye.Folder=19,ye.EnumMember=20,ye.Constant=21,ye.Struct=22,ye.Event=23,ye.Operator=24,ye.TypeParameter=25}(he||(he={})),function(ye){ye.PlainText=1,ye.Snippet=2}(Ce||(Ce={})),function(ye){ye.Deprecated=1}(Ae||(Ae={})),function(ye){ye.create=function(le){return{label:le}}}(L||(L={})),function(ye){ye.create=function(le,ue){return{items:le||[],isIncomplete:!!ue}}}(nt||(nt={})),function(ye){ye.fromPlainText=function(le){return le.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ye.is=function(le){var ue=le;return wt.string(ue)||wt.objectLiteral(ue)&&wt.string(ue.language)&&wt.string(ue.value)}}(ct||(ct={})),function(ye){ye.is=function(le){var ue=le;return!!ue&&wt.objectLiteral(ue)&&(te.is(ue.contents)||ct.is(ue.contents)||wt.typedArray(ue.contents,ct.is))&&(le.range===void 0||f.is(le.range))}}(Ye||(Ye={})),function(ye){ye.create=function(le,ue){return ue?{label:le,documentation:ue}:{label:le}}}(ht||(ht={})),function(ye){ye.create=function(le,ue){for(var qe=[],Ze=2;Ze<arguments.length;Ze++)qe[Ze-2]=arguments[Ze];var tt={label:le};return wt.defined(ue)&&(tt.documentation=ue),wt.defined(qe)?tt.parameters=qe:tt.parameters=[],tt}}(fe||(fe={})),function(ye){ye.Text=1,ye.Read=2,ye.Write=3}($||($={})),function(ye){ye.create=function(le,ue){var qe={range:le};return wt.number(ue)&&(qe.kind=ue),qe}}(G||(G={})),function(ye){ye.File=1,ye.Module=2,ye.Namespace=3,ye.Package=4,ye.Class=5,ye.Method=6,ye.Property=7,ye.Field=8,ye.Constructor=9,ye.Enum=10,ye.Interface=11,ye.Function=12,ye.Variable=13,ye.Constant=14,ye.String=15,ye.Number=16,ye.Boolean=17,ye.Array=18,ye.Object=19,ye.Key=20,ye.Null=21,ye.EnumMember=22,ye.Struct=23,ye.Event=24,ye.Operator=25,ye.TypeParameter=26}(z||(z={})),function(ye){ye.Deprecated=1}(J||(J={})),function(ye){ye.create=function(le,ue,qe,Ze,tt){var rt={name:le,kind:ue,location:{uri:Ze,range:qe}};return tt&&(rt.containerName=tt),rt}}(Se||(Se={})),function(ye){ye.create=function(le,ue,qe,Ze,tt,rt){var zt={name:le,detail:ue,kind:qe,range:Ze,selectionRange:tt};return rt!==void 0&&(zt.children=rt),zt},ye.is=function(le){var ue=le;return ue&&wt.string(ue.name)&&wt.number(ue.kind)&&f.is(ue.range)&&f.is(ue.selectionRange)&&(ue.detail===void 0||wt.string(ue.detail))&&(ue.deprecated===void 0||wt.boolean(ue.deprecated))&&(ue.children===void 0||Array.isArray(ue.children))}}(A||(A={})),function(ye){ye.Empty="",ye.QuickFix="quickfix",ye.Refactor="refactor",ye.RefactorExtract="refactor.extract",ye.RefactorInline="refactor.inline",ye.RefactorRewrite="refactor.rewrite",ye.Source="source",ye.SourceOrganizeImports="source.organizeImports",ye.SourceFixAll="source.fixAll"}(ee||(ee={})),function(ye){ye.create=function(le,ue){var qe={diagnostics:le};return ue!=null&&(qe.only=ue),qe},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.typedArray(ue.diagnostics,V.is)&&(ue.only===void 0||wt.typedArray(ue.only,wt.string))}}(de||(de={})),function(ye){ye.create=function(le,ue,qe){var Ze={title:le};return k.is(ue)?Ze.command=ue:Ze.edit=ue,qe!==void 0&&(Ze.kind=qe),Ze},ye.is=function(le){var ue=le;return ue&&wt.string(ue.title)&&(ue.diagnostics===void 0||wt.typedArray(ue.diagnostics,V.is))&&(ue.kind===void 0||wt.string(ue.kind))&&(ue.edit!==void 0||ue.command!==void 0)&&(ue.command===void 0||k.is(ue.command))&&(ue.isPreferred===void 0||wt.boolean(ue.isPreferred))&&(ue.edit===void 0||j.is(ue.edit))}}(Oe||(Oe={})),function(ye){ye.create=function(le,ue){var qe={range:le};return wt.defined(ue)&&(qe.data=ue),qe},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.undefined(ue.command)||k.is(ue.command))}}($e||($e={})),function(ye){ye.create=function(le,ue){return{tabSize:le,insertSpaces:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.number(ue.tabSize)&&wt.boolean(ue.insertSpaces)}}(pt||(pt={})),function(ye){ye.create=function(le,ue,qe){return{range:le,target:ue,data:qe}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.undefined(ue.target)||wt.string(ue.target))}}(it||(it={})),function(ye){ye.create=function(le,ue){return{range:le,parent:ue}},ye.is=function(le){var ue=le;return ue!==void 0&&f.is(ue.range)&&(ue.parent===void 0||ye.is(ue.parent))}}(At||(At={}));var _i;(function(ye){ye.create=function(le,ue,qe,Ze){return new Ni(le,ue,qe,Ze)},ye.is=function(le){var ue=le;return!!(wt.defined(ue)&&wt.string(ue.uri)&&(wt.undefined(ue.languageId)||wt.string(ue.languageId))&&wt.number(ue.lineCount)&&wt.func(ue.getText)&&wt.func(ue.positionAt)&&wt.func(ue.offsetAt))},ye.applyEdits=function(le,ue){for(var qe=le.getText(),Ze=function Ei(ai,fi){if(ai.length<=1)return ai;var ui=ai.length/2|0,Te=ai.slice(0,ui),Ee=ai.slice(ui);Ei(Te,fi),Ei(Ee,fi);for(var ve=0,Re=0,We=0;ve<Te.length&&Re<Ee.length;){var Be=fi(Te[ve],Ee[Re]);ai[We++]=Be<=0?Te[ve++]:Ee[Re++]}for(;ve<Te.length;)ai[We++]=Te[ve++];for(;Re<Ee.length;)ai[We++]=Ee[Re++];return ai}(ue,function(Ei,ai){var fi=Ei.range.start.line-ai.range.start.line;return fi===0?Ei.range.start.character-ai.range.start.character:fi}),tt=qe.length,rt=Ze.length-1;rt>=0;rt--){var zt=Ze[rt],Jt=le.offsetAt(zt.range.start),xi=le.offsetAt(zt.range.end);if(!(xi<=tt))throw new Error("Overlapping edit");qe=qe.substring(0,Jt)+zt.newText+qe.substring(xi,qe.length),tt=Jt}return qe}})(_i||(_i={}));var wt,Ni=function(){function ye(le,ue,qe,Ze){this._uri=le,this._languageId=ue,this._version=qe,this._content=Ze,this._lineOffsets=void 0}return Object.defineProperty(ye.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),ye.prototype.getText=function(le){if(le){var ue=this.offsetAt(le.start),qe=this.offsetAt(le.end);return this._content.substring(ue,qe)}return this._content},ye.prototype.update=function(le,ue){this._content=le.text,this._version=ue,this._lineOffsets=void 0},ye.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var le=[],ue=this._content,qe=!0,Ze=0;Ze<ue.length;Ze++){qe&&(le.push(Ze),qe=!1);var tt=ue.charAt(Ze);qe=tt==="\r"||tt===` +`)}(O,h);return O[2]?"@media ".concat(O[2]," {").concat(H,"}"):H}).join("")},f.i=function(O,H,E){typeof O=="string"&&(O=[[null,O,""]]);var ge={};if(E)for(var W=0;W<this.length;W++){var Q=this[W][0];Q!=null&&(ge[Q]=!0)}for(var y=0;y<O.length;y++){var C=[].concat(O[y]);E&&ge[C[0]]||(H&&(C[2]?C[2]="".concat(H," and ").concat(C[2]):C[2]=H),f.push(C))}},f}},function(Ie,w,r){"use strict";r.d(w,"d",function(){return O}),r.d(w,"b",function(){return H}),r.d(w,"n",function(){return E}),r.d(w,"c",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"f",function(){return y}),r.d(w,"h",function(){return C}),r.d(w,"l",function(){return S}),r.d(w,"e",function(){return P}),r.d(w,"j",function(){return V}),r.d(w,"m",function(){return k}),r.d(w,"i",function(){return l}),r.d(w,"g",function(){return T}),r.d(w,"k",function(){return N});var h=r(6);class f{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new h.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let g=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1)}}function O(){return f.INSTANCE.getZoomLevel()}function H(){return f.INSTANCE.getTimeSinceLastZoomLevelChanged()}function E(b){return f.INSTANCE.onDidChangeZoomLevel(b)}function ge(){return f.INSTANCE.getZoomFactor()}function W(){return f.INSTANCE.getPixelRatio()}f.INSTANCE=new f;let Q=navigator.userAgent,y=Q.indexOf("Edge/")>=0,C=Q.indexOf("Firefox")>=0,S=Q.indexOf("AppleWebKit")>=0,P=Q.indexOf("Chrome")>=0,V=!P&&Q.indexOf("Safari")>=0,k=!P&&!V&&S,l=Q.indexOf("iPad")>=0||V&&navigator.maxTouchPoints>0,T=y&&Q.indexOf("WebView/")>=0,N=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(1);class f{constructor(E){this.domNode=E,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(E){this._maxWidth!==E&&(this._maxWidth=E,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(E){this._width!==E&&(this._width=E,this.domNode.style.width=this._width+"px")}setHeight(E){this._height!==E&&(this._height=E,this.domNode.style.height=this._height+"px")}setTop(E){this._top!==E&&(this._top=E,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(E){this._left!==E&&(this._left=E,this.domNode.style.left=this._left+"px")}setBottom(E){this._bottom!==E&&(this._bottom=E,this.domNode.style.bottom=this._bottom+"px")}setRight(E){this._right!==E&&(this._right=E,this.domNode.style.right=this._right+"px")}setFontFamily(E){this._fontFamily!==E&&(this._fontFamily=E,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(E){this._fontWeight!==E&&(this._fontWeight=E,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(E){this._fontSize!==E&&(this._fontSize=E,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(E){this._fontFeatureSettings!==E&&(this._fontFeatureSettings=E,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(E){this._lineHeight!==E&&(this._lineHeight=E,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(E){this._letterSpacing!==E&&(this._letterSpacing=E,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(E){this._className!==E&&(this._className=E,this.domNode.className=this._className)}toggleClassName(E,ge){h.ab(this.domNode,E,ge),this._className=this.domNode.className}setDisplay(E){this._display!==E&&(this._display=E,this.domNode.style.display=this._display)}setPosition(E){this._position!==E&&(this._position=E,this.domNode.style.position=this._position)}setVisibility(E){this._visibility!==E&&(this._visibility=E,this.domNode.style.visibility=this._visibility)}setBackgroundColor(E){this._backgroundColor!==E&&(this._backgroundColor=E,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(E){this._layerHint!==E&&(this._layerHint=E,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(E){this._boxShadow!==E&&(this._boxShadow=E,this.domNode.style.boxShadow=E)}setContain(E){this._contain!==E&&(this._contain=E,this.domNode.style.contain=this._contain)}setAttribute(E,ge){this.domNode.setAttribute(E,ge)}removeAttribute(E){this.domNode.removeAttribute(E)}appendChild(E){this.domNode.appendChild(E.domNode)}removeChild(E){this.domNode.removeChild(E.domNode)}}function O(H){return new f(H)}},function(Ie,w,r){"use strict";function h(O){return O<0?0:O>255?255:0|O}function f(O){return O<0?0:O>4294967295?4294967295:0|O}r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f})},function(Ie,w,r){"use strict";var h;r.d(w,"a",function(){return h}),function(f){f.is=function(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"};let O=Object.freeze([]);f.empty=function(){return O},f.single=function*(H){yield H},f.from=function(H){return H||O},f.first=function(H){return H[Symbol.iterator]().next().value},f.some=function(H,E){for(let ge of H)if(E(ge))return!0;return!1},f.filter=function*(H,E){for(let ge of H)E(ge)&&(yield ge)},f.map=function*(H,E){for(let ge of H)yield E(ge)},f.concat=function*(...H){for(let E of H)for(let ge of E)yield ge},f.consume=function(H,E=Number.POSITIVE_INFINITY){let ge=[];if(E===0)return[ge,H];let W=H[Symbol.iterator]();for(let Q=0;Q<E;Q++){let y=W.next();if(y.done)return[ge,f.empty()];ge.push(y.value)}return[ge,{[Symbol.iterator]:()=>W}]}}(h||(h={}))},function(Ie,w,r){"use strict";r.d(w,"f",function(){return pi}),r.d(w,"c",function(){return Q}),r.d(w,"b",function(){return S}),r.d(w,"a",function(){return he}),r.d(w,"d",function(){return Ce}),r.d(w,"e",function(){return z}),r.d(w,"g",function(){return ti});var h,f,O,H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie=r(65);function U(ye,le){if(ye===le)return!0;if(ye==null||le==null||typeof ye!=typeof le||typeof ye!="object"||Array.isArray(ye)!==Array.isArray(le))return!1;var ue,qe;if(Array.isArray(ye)){if(ye.length!==le.length)return!1;for(ue=0;ue<ye.length;ue++)if(!U(ye[ue],le[ue]))return!1}else{var Ze=[];for(qe in ye)Ze.push(qe);Ze.sort();var tt=[];for(qe in le)tt.push(qe);if(tt.sort(),!U(Ze,tt))return!1;for(ue=0;ue<Ze.length;ue++)if(!U(ye[Ze[ue]],le[Ze[ue]]))return!1}return!0}function q(ye){return typeof ye=="number"}function B(ye){return ye!==void 0}function se(ye){return typeof ye=="boolean"}(function(ye){ye.create=function(le,ue){return{line:le,character:ue}},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&wt.number(ue.line)&&wt.number(ue.character)}})(h||(h={})),function(ye){ye.create=function(le,ue,qe,Ze){if(wt.number(le)&&wt.number(ue)&&wt.number(qe)&&wt.number(Ze))return{start:h.create(le,ue),end:h.create(qe,Ze)};if(h.is(le)&&h.is(ue))return{start:le,end:ue};throw new Error("Range#create called with invalid arguments["+le+", "+ue+", "+qe+", "+Ze+"]")},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&h.is(ue.start)&&h.is(ue.end)}}(f||(f={})),function(ye){ye.create=function(le,ue){return{uri:le,range:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.string(ue.uri)||wt.undefined(ue.uri))}}(O||(O={})),function(ye){ye.create=function(le,ue,qe,Ze){return{targetUri:le,targetRange:ue,targetSelectionRange:qe,originSelectionRange:Ze}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.targetRange)&&wt.string(ue.targetUri)&&(f.is(ue.targetSelectionRange)||wt.undefined(ue.targetSelectionRange))&&(f.is(ue.originSelectionRange)||wt.undefined(ue.originSelectionRange))}}(H||(H={})),function(ye){ye.create=function(le,ue,qe,Ze){return{red:le,green:ue,blue:qe,alpha:Ze}},ye.is=function(le){var ue=le;return wt.number(ue.red)&&wt.number(ue.green)&&wt.number(ue.blue)&&wt.number(ue.alpha)}}(E||(E={})),function(ye){ye.create=function(le,ue){return{range:le,color:ue}},ye.is=function(le){var ue=le;return f.is(ue.range)&&E.is(ue.color)}}(ge||(ge={})),function(ye){ye.create=function(le,ue,qe){return{label:le,textEdit:ue,additionalTextEdits:qe}},ye.is=function(le){var ue=le;return wt.string(ue.label)&&(wt.undefined(ue.textEdit)||l.is(ue))&&(wt.undefined(ue.additionalTextEdits)||wt.typedArray(ue.additionalTextEdits,l.is))}}(W||(W={})),function(ye){ye.Comment="comment",ye.Imports="imports",ye.Region="region"}(Q||(Q={})),function(ye){ye.create=function(le,ue,qe,Ze,tt){var ot={startLine:le,endLine:ue};return wt.defined(qe)&&(ot.startCharacter=qe),wt.defined(Ze)&&(ot.endCharacter=Ze),wt.defined(tt)&&(ot.kind=tt),ot},ye.is=function(le){var ue=le;return wt.number(ue.startLine)&&wt.number(ue.startLine)&&(wt.undefined(ue.startCharacter)||wt.number(ue.startCharacter))&&(wt.undefined(ue.endCharacter)||wt.number(ue.endCharacter))&&(wt.undefined(ue.kind)||wt.string(ue.kind))}}(y||(y={})),function(ye){ye.create=function(le,ue){return{location:le,message:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&O.is(ue.location)&&wt.string(ue.message)}}(C||(C={})),function(ye){ye.Error=1,ye.Warning=2,ye.Information=3,ye.Hint=4}(S||(S={})),function(ye){ye.Unnecessary=1,ye.Deprecated=2}(P||(P={})),function(ye){ye.create=function(le,ue,qe,Ze,tt,ot){var zt={range:le,message:ue};return wt.defined(qe)&&(zt.severity=qe),wt.defined(Ze)&&(zt.code=Ze),wt.defined(tt)&&(zt.source=tt),wt.defined(ot)&&(zt.relatedInformation=ot),zt},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&wt.string(ue.message)&&(wt.number(ue.severity)||wt.undefined(ue.severity))&&(wt.number(ue.code)||wt.string(ue.code)||wt.undefined(ue.code))&&(wt.string(ue.source)||wt.undefined(ue.source))&&(wt.undefined(ue.relatedInformation)||wt.typedArray(ue.relatedInformation,C.is))}}(V||(V={})),function(ye){ye.create=function(le,ue){for(var qe=[],Ze=2;Ze<arguments.length;Ze++)qe[Ze-2]=arguments[Ze];var tt={title:le,command:ue};return wt.defined(qe)&&qe.length>0&&(tt.arguments=qe),tt},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.title)&&wt.string(ue.command)}}(k||(k={})),function(ye){ye.replace=function(le,ue){return{range:le,newText:ue}},ye.insert=function(le,ue){return{range:{start:le,end:le},newText:ue}},ye.del=function(le){return{range:le,newText:""}},ye.is=function(le){var ue=le;return wt.objectLiteral(ue)&&wt.string(ue.newText)&&f.is(ue.range)}}(l||(l={})),function(ye){ye.create=function(le,ue){return{textDocument:le,edits:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&xe.is(ue.textDocument)&&Array.isArray(ue.edits)}}(T||(T={})),function(ye){ye.create=function(le,ue){var qe={kind:"create",uri:le};return ue===void 0||ue.overwrite===void 0&&ue.ignoreIfExists===void 0||(qe.options=ue),qe},ye.is=function(le){var ue=le;return ue&&ue.kind==="create"&&wt.string(ue.uri)&&(ue.options===void 0||(ue.options.overwrite===void 0||wt.boolean(ue.options.overwrite))&&(ue.options.ignoreIfExists===void 0||wt.boolean(ue.options.ignoreIfExists)))}}(N||(N={})),function(ye){ye.create=function(le,ue,qe){var Ze={kind:"rename",oldUri:le,newUri:ue};return qe===void 0||qe.overwrite===void 0&&qe.ignoreIfExists===void 0||(Ze.options=qe),Ze},ye.is=function(le){var ue=le;return ue&&ue.kind==="rename"&&wt.string(ue.oldUri)&&wt.string(ue.newUri)&&(ue.options===void 0||(ue.options.overwrite===void 0||wt.boolean(ue.options.overwrite))&&(ue.options.ignoreIfExists===void 0||wt.boolean(ue.options.ignoreIfExists)))}}(b||(b={})),function(ye){ye.create=function(le,ue){var qe={kind:"delete",uri:le};return ue===void 0||ue.recursive===void 0&&ue.ignoreIfNotExists===void 0||(qe.options=ue),qe},ye.is=function(le){var ue=le;return ue&&ue.kind==="delete"&&wt.string(ue.uri)&&(ue.options===void 0||(ue.options.recursive===void 0||wt.boolean(ue.options.recursive))&&(ue.options.ignoreIfNotExists===void 0||wt.boolean(ue.options.ignoreIfNotExists)))}}(g||(g={})),function(ye){ye.is=function(le){var ue=le;return ue&&(ue.changes!==void 0||ue.documentChanges!==void 0)&&(ue.documentChanges===void 0||ue.documentChanges.every(function(qe){return wt.string(qe.kind)?N.is(qe)||b.is(qe)||g.is(qe):T.is(qe)}))}}(j||(j={}));var ke,xe,Y,Z,te,he,Ce,Ae,L,nt,ct,Ye,ht,fe,$,G,z,J,Se,A,ee,de,De,$e,pt,it,At,Nt=function(){function ye(le){this.edits=le}return ye.prototype.insert=function(le,ue){this.edits.push(l.insert(le,ue))},ye.prototype.replace=function(le,ue){this.edits.push(l.replace(le,ue))},ye.prototype.delete=function(le){this.edits.push(l.del(le))},ye.prototype.add=function(le){this.edits.push(le)},ye.prototype.all=function(){return this.edits},ye.prototype.clear=function(){this.edits.splice(0,this.edits.length)},ye}();(function(){function ye(le){var ue=this;this._textEditChanges=Object.create(null),le&&(this._workspaceEdit=le,le.documentChanges?le.documentChanges.forEach(function(qe){if(T.is(qe)){var Ze=new Nt(qe.edits);ue._textEditChanges[qe.textDocument.uri]=Ze}}):le.changes&&Object.keys(le.changes).forEach(function(qe){var Ze=new Nt(le.changes[qe]);ue._textEditChanges[qe]=Ze}))}Object.defineProperty(ye.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),ye.prototype.getTextEditChange=function(le){if(xe.is(le)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var ue=le;if(!(Ze=this._textEditChanges[ue.uri])){var qe={textDocument:ue,edits:tt=[]};this._workspaceEdit.documentChanges.push(qe),Ze=new Nt(tt),this._textEditChanges[ue.uri]=Ze}return Ze}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var Ze;if(!(Ze=this._textEditChanges[le])){var tt=[];this._workspaceEdit.changes[le]=tt,Ze=new Nt(tt),this._textEditChanges[le]=Ze}return Ze},ye.prototype.createFile=function(le,ue){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(N.create(le,ue))},ye.prototype.renameFile=function(le,ue,qe){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(le,ue,qe))},ye.prototype.deleteFile=function(le,ue){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(g.create(le,ue))},ye.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(ye){ye.create=function(le){return{uri:le}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)}}(ke||(ke={})),function(ye){ye.create=function(le,ue){return{uri:le,version:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)&&(ue.version===null||wt.number(ue.version))}}(xe||(xe={})),function(ye){ye.create=function(le,ue,qe,Ze){return{uri:le,languageId:ue,version:qe,text:Ze}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.string(ue.uri)&&wt.string(ue.languageId)&&wt.number(ue.version)&&wt.string(ue.text)}}(Y||(Y={})),function(ye){ye.PlainText="plaintext",ye.Markdown="markdown"}(Z||(Z={})),function(ye){ye.is=function(le){var ue=le;return ue===ye.PlainText||ue===ye.Markdown}}(Z||(Z={})),function(ye){ye.is=function(le){var ue=le;return wt.objectLiteral(le)&&Z.is(ue.kind)&&wt.string(ue.value)}}(te||(te={})),function(ye){ye.Text=1,ye.Method=2,ye.Function=3,ye.Constructor=4,ye.Field=5,ye.Variable=6,ye.Class=7,ye.Interface=8,ye.Module=9,ye.Property=10,ye.Unit=11,ye.Value=12,ye.Enum=13,ye.Keyword=14,ye.Snippet=15,ye.Color=16,ye.File=17,ye.Reference=18,ye.Folder=19,ye.EnumMember=20,ye.Constant=21,ye.Struct=22,ye.Event=23,ye.Operator=24,ye.TypeParameter=25}(he||(he={})),function(ye){ye.PlainText=1,ye.Snippet=2}(Ce||(Ce={})),function(ye){ye.Deprecated=1}(Ae||(Ae={})),function(ye){ye.create=function(le){return{label:le}}}(L||(L={})),function(ye){ye.create=function(le,ue){return{items:le||[],isIncomplete:!!ue}}}(nt||(nt={})),function(ye){ye.fromPlainText=function(le){return le.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ye.is=function(le){var ue=le;return wt.string(ue)||wt.objectLiteral(ue)&&wt.string(ue.language)&&wt.string(ue.value)}}(ct||(ct={})),function(ye){ye.is=function(le){var ue=le;return!!ue&&wt.objectLiteral(ue)&&(te.is(ue.contents)||ct.is(ue.contents)||wt.typedArray(ue.contents,ct.is))&&(le.range===void 0||f.is(le.range))}}(Ye||(Ye={})),function(ye){ye.create=function(le,ue){return ue?{label:le,documentation:ue}:{label:le}}}(ht||(ht={})),function(ye){ye.create=function(le,ue){for(var qe=[],Ze=2;Ze<arguments.length;Ze++)qe[Ze-2]=arguments[Ze];var tt={label:le};return wt.defined(ue)&&(tt.documentation=ue),wt.defined(qe)?tt.parameters=qe:tt.parameters=[],tt}}(fe||(fe={})),function(ye){ye.Text=1,ye.Read=2,ye.Write=3}($||($={})),function(ye){ye.create=function(le,ue){var qe={range:le};return wt.number(ue)&&(qe.kind=ue),qe}}(G||(G={})),function(ye){ye.File=1,ye.Module=2,ye.Namespace=3,ye.Package=4,ye.Class=5,ye.Method=6,ye.Property=7,ye.Field=8,ye.Constructor=9,ye.Enum=10,ye.Interface=11,ye.Function=12,ye.Variable=13,ye.Constant=14,ye.String=15,ye.Number=16,ye.Boolean=17,ye.Array=18,ye.Object=19,ye.Key=20,ye.Null=21,ye.EnumMember=22,ye.Struct=23,ye.Event=24,ye.Operator=25,ye.TypeParameter=26}(z||(z={})),function(ye){ye.Deprecated=1}(J||(J={})),function(ye){ye.create=function(le,ue,qe,Ze,tt){var ot={name:le,kind:ue,location:{uri:Ze,range:qe}};return tt&&(ot.containerName=tt),ot}}(Se||(Se={})),function(ye){ye.create=function(le,ue,qe,Ze,tt,ot){var zt={name:le,detail:ue,kind:qe,range:Ze,selectionRange:tt};return ot!==void 0&&(zt.children=ot),zt},ye.is=function(le){var ue=le;return ue&&wt.string(ue.name)&&wt.number(ue.kind)&&f.is(ue.range)&&f.is(ue.selectionRange)&&(ue.detail===void 0||wt.string(ue.detail))&&(ue.deprecated===void 0||wt.boolean(ue.deprecated))&&(ue.children===void 0||Array.isArray(ue.children))}}(A||(A={})),function(ye){ye.Empty="",ye.QuickFix="quickfix",ye.Refactor="refactor",ye.RefactorExtract="refactor.extract",ye.RefactorInline="refactor.inline",ye.RefactorRewrite="refactor.rewrite",ye.Source="source",ye.SourceOrganizeImports="source.organizeImports",ye.SourceFixAll="source.fixAll"}(ee||(ee={})),function(ye){ye.create=function(le,ue){var qe={diagnostics:le};return ue!=null&&(qe.only=ue),qe},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.typedArray(ue.diagnostics,V.is)&&(ue.only===void 0||wt.typedArray(ue.only,wt.string))}}(de||(de={})),function(ye){ye.create=function(le,ue,qe){var Ze={title:le};return k.is(ue)?Ze.command=ue:Ze.edit=ue,qe!==void 0&&(Ze.kind=qe),Ze},ye.is=function(le){var ue=le;return ue&&wt.string(ue.title)&&(ue.diagnostics===void 0||wt.typedArray(ue.diagnostics,V.is))&&(ue.kind===void 0||wt.string(ue.kind))&&(ue.edit!==void 0||ue.command!==void 0)&&(ue.command===void 0||k.is(ue.command))&&(ue.isPreferred===void 0||wt.boolean(ue.isPreferred))&&(ue.edit===void 0||j.is(ue.edit))}}(De||(De={})),function(ye){ye.create=function(le,ue){var qe={range:le};return wt.defined(ue)&&(qe.data=ue),qe},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.undefined(ue.command)||k.is(ue.command))}}($e||($e={})),function(ye){ye.create=function(le,ue){return{tabSize:le,insertSpaces:ue}},ye.is=function(le){var ue=le;return wt.defined(ue)&&wt.number(ue.tabSize)&&wt.boolean(ue.insertSpaces)}}(pt||(pt={})),function(ye){ye.create=function(le,ue,qe){return{range:le,target:ue,data:qe}},ye.is=function(le){var ue=le;return wt.defined(ue)&&f.is(ue.range)&&(wt.undefined(ue.target)||wt.string(ue.target))}}(it||(it={})),function(ye){ye.create=function(le,ue){return{range:le,parent:ue}},ye.is=function(le){var ue=le;return ue!==void 0&&f.is(ue.range)&&(ue.parent===void 0||ye.is(ue.parent))}}(At||(At={}));var _i;(function(ye){ye.create=function(le,ue,qe,Ze){return new Ni(le,ue,qe,Ze)},ye.is=function(le){var ue=le;return!!(wt.defined(ue)&&wt.string(ue.uri)&&(wt.undefined(ue.languageId)||wt.string(ue.languageId))&&wt.number(ue.lineCount)&&wt.func(ue.getText)&&wt.func(ue.positionAt)&&wt.func(ue.offsetAt))},ye.applyEdits=function(le,ue){for(var qe=le.getText(),Ze=function Ei(ai,fi){if(ai.length<=1)return ai;var ui=ai.length/2|0,Te=ai.slice(0,ui),Ee=ai.slice(ui);Ei(Te,fi),Ei(Ee,fi);for(var ve=0,Re=0,We=0;ve<Te.length&&Re<Ee.length;){var Be=fi(Te[ve],Ee[Re]);ai[We++]=Be<=0?Te[ve++]:Ee[Re++]}for(;ve<Te.length;)ai[We++]=Te[ve++];for(;Re<Ee.length;)ai[We++]=Ee[Re++];return ai}(ue,function(Ei,ai){var fi=Ei.range.start.line-ai.range.start.line;return fi===0?Ei.range.start.character-ai.range.start.character:fi}),tt=qe.length,ot=Ze.length-1;ot>=0;ot--){var zt=Ze[ot],Jt=le.offsetAt(zt.range.start),xi=le.offsetAt(zt.range.end);if(!(xi<=tt))throw new Error("Overlapping edit");qe=qe.substring(0,Jt)+zt.newText+qe.substring(xi,qe.length),tt=Jt}return qe}})(_i||(_i={}));var wt,Ni=function(){function ye(le,ue,qe,Ze){this._uri=le,this._languageId=ue,this._version=qe,this._content=Ze,this._lineOffsets=void 0}return Object.defineProperty(ye.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),ye.prototype.getText=function(le){if(le){var ue=this.offsetAt(le.start),qe=this.offsetAt(le.end);return this._content.substring(ue,qe)}return this._content},ye.prototype.update=function(le,ue){this._content=le.text,this._version=ue,this._lineOffsets=void 0},ye.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var le=[],ue=this._content,qe=!0,Ze=0;Ze<ue.length;Ze++){qe&&(le.push(Ze),qe=!1);var tt=ue.charAt(Ze);qe=tt==="\r"||tt===` `,tt==="\r"&&Ze+1<ue.length&&ue.charAt(Ze+1)===` -`&&Ze++}qe&&ue.length>0&&le.push(ue.length),this._lineOffsets=le}return this._lineOffsets},ye.prototype.positionAt=function(le){le=Math.max(Math.min(le,this._content.length),0);var ue=this.getLineOffsets(),qe=0,Ze=ue.length;if(Ze===0)return h.create(0,le);for(;qe<Ze;){var tt=Math.floor((qe+Ze)/2);ue[tt]>le?Ze=tt:qe=tt+1}var rt=qe-1;return h.create(rt,le-ue[rt])},ye.prototype.offsetAt=function(le){var ue=this.getLineOffsets();if(le.line>=ue.length)return this._content.length;if(le.line<0)return 0;var qe=ue[le.line],Ze=le.line+1<ue.length?ue[le.line+1]:this._content.length;return Math.max(Math.min(qe+le.character,Ze),qe)},Object.defineProperty(ye.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),ye}();(function(ye){var le=Object.prototype.toString;ye.defined=function(ue){return ue!==void 0},ye.undefined=function(ue){return ue===void 0},ye.boolean=function(ue){return ue===!0||ue===!1},ye.string=function(ue){return le.call(ue)==="[object String]"},ye.number=function(ue){return le.call(ue)==="[object Number]"},ye.func=function(ue){return le.call(ue)==="[object Function]"},ye.objectLiteral=function(ue){return ue!==null&&typeof ue=="object"},ye.typedArray=function(ue,qe){return Array.isArray(ue)&&ue.every(qe)}})(wt||(wt={}));var pi,et,Wt,Li=function(){function ye(le,ue,qe,Ze){this._uri=le,this._languageId=ue,this._version=qe,this._content=Ze,this._lineOffsets=void 0}return Object.defineProperty(ye.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),ye.prototype.getText=function(le){if(le){var ue=this.offsetAt(le.start),qe=this.offsetAt(le.end);return this._content.substring(ue,qe)}return this._content},ye.prototype.update=function(le,ue){for(var qe=0,Ze=le;qe<Ze.length;qe++){var tt=Ze[qe];if(ye.isIncremental(tt)){var rt=Ai(tt.range),zt=this.offsetAt(rt.start),Jt=this.offsetAt(rt.end);this._content=this._content.substring(0,zt)+tt.text+this._content.substring(Jt,this._content.length);var xi=Math.max(rt.start.line,0),Ei=Math.max(rt.end.line,0),ai=this._lineOffsets,fi=Ii(tt.text,!1,zt);if(Ei-xi===fi.length)for(var ui=0,Te=fi.length;ui<Te;ui++)ai[ui+xi+1]=fi[ui];else fi.length<1e4?ai.splice.apply(ai,[xi+1,Ei-xi].concat(fi)):this._lineOffsets=ai=ai.slice(0,xi+1).concat(fi,ai.slice(Ei+1));var Ee=tt.text.length-(Jt-zt);if(Ee!==0)for(ui=xi+1+fi.length,Te=ai.length;ui<Te;ui++)ai[ui]=ai[ui]+Ee}else{if(!ye.isFull(tt))throw new Error("Unknown change event received");this._content=tt.text,this._lineOffsets=void 0}}this._version=ue},ye.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ii(this._content,!0)),this._lineOffsets},ye.prototype.positionAt=function(le){le=Math.max(Math.min(le,this._content.length),0);var ue=this.getLineOffsets(),qe=0,Ze=ue.length;if(Ze===0)return{line:0,character:le};for(;qe<Ze;){var tt=Math.floor((qe+Ze)/2);ue[tt]>le?Ze=tt:qe=tt+1}var rt=qe-1;return{line:rt,character:le-ue[rt]}},ye.prototype.offsetAt=function(le){var ue=this.getLineOffsets();if(le.line>=ue.length)return this._content.length;if(le.line<0)return 0;var qe=ue[le.line],Ze=le.line+1<ue.length?ue[le.line+1]:this._content.length;return Math.max(Math.min(qe+le.character,Ze),qe)},Object.defineProperty(ye.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),ye.isIncremental=function(le){var ue=le;return ue!=null&&typeof ue.text=="string"&&ue.range!==void 0&&(ue.rangeLength===void 0||typeof ue.rangeLength=="number")},ye.isFull=function(le){var ue=le;return ue!=null&&typeof ue.text=="string"&&ue.range===void 0&&ue.rangeLength===void 0},ye}();function Ii(ye,le,ue){ue===void 0&&(ue=0);for(var qe=le?[ue]:[],Ze=0;Ze<ye.length;Ze++){var tt=ye.charCodeAt(Ze);tt!==13&&tt!==10||(tt===13&&Ze+1<ye.length&&ye.charCodeAt(Ze+1)===10&&Ze++,qe.push(ue+Ze+1))}return qe}function Ai(ye){var le=ye.start,ue=ye.end;return le.line>ue.line||le.line===ue.line&&le.character>ue.character?{start:ue,end:le}:ye}function Zi(ye){var le=Ai(ye.range);return le!==ye.range?{newText:ye.newText,range:le}:ye}function Bi(ye,le){return le.length===0?ye:ye.replace(/\{(\d+)\}/g,function(ue,qe){var Ze=qe[0];return le[Ze]!==void 0?le[Ze]:ue})}function Lt(ye,le){for(var ue=[],qe=2;qe<arguments.length;qe++)ue[qe-2]=arguments[qe];return Bi(le,ue)}function Di(ye){return Lt}(function(ye){ye.create=function(le,ue,qe,Ze){return new Li(le,ue,qe,Ze)},ye.update=function(le,ue,qe){if(le instanceof Li)return le.update(ue,qe),le;throw new Error("TextDocument.update: document must be created by TextDocument.create")},ye.applyEdits=function(le,ue){for(var qe=le.getText(),Ze=0,tt=[],rt=0,zt=function Ei(ai,fi){if(ai.length<=1)return ai;var ui=ai.length/2|0,Te=ai.slice(0,ui),Ee=ai.slice(ui);Ei(Te,fi),Ei(Ee,fi);for(var ve=0,Re=0,We=0;ve<Te.length&&Re<Ee.length;){var Be=fi(Te[ve],Ee[Re]);ai[We++]=Be<=0?Te[ve++]:Ee[Re++]}for(;ve<Te.length;)ai[We++]=Te[ve++];for(;Re<Ee.length;)ai[We++]=Ee[Re++];return ai}(ue.map(Zi),function(Ei,ai){var fi=Ei.range.start.line-ai.range.start.line;return fi===0?Ei.range.start.character-ai.range.start.character:fi});rt<zt.length;rt++){var Jt=zt[rt],xi=le.offsetAt(Jt.range.start);if(xi<Ze)throw new Error("Overlapping edit");xi>Ze&&tt.push(qe.substring(Ze,xi)),Jt.newText.length&&tt.push(Jt.newText),Ze=le.offsetAt(Jt.range.end)}return tt.push(qe.substr(Ze)),tt.join("")}})(pi||(pi={})),function(ye){ye[ye.Undefined=0]="Undefined",ye[ye.EnumValueMismatch=1]="EnumValueMismatch",ye[ye.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",ye[ye.UnexpectedEndOfString=258]="UnexpectedEndOfString",ye[ye.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",ye[ye.InvalidUnicode=260]="InvalidUnicode",ye[ye.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",ye[ye.InvalidCharacter=262]="InvalidCharacter",ye[ye.PropertyExpected=513]="PropertyExpected",ye[ye.CommaExpected=514]="CommaExpected",ye[ye.ColonExpected=515]="ColonExpected",ye[ye.ValueExpected=516]="ValueExpected",ye[ye.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",ye[ye.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",ye[ye.TrailingComma=519]="TrailingComma",ye[ye.DuplicateKey=520]="DuplicateKey",ye[ye.CommentNotPermitted=521]="CommentNotPermitted",ye[ye.SchemaResolveError=768]="SchemaResolveError"}(et||(et={})),(Wt||(Wt={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Z.Markdown,Z.PlainText],commitCharactersSupport:!0}}}};var gt,vi,Rt=(gt=function(ye,le){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,qe){ue.__proto__=qe}||function(ue,qe){for(var Ze in qe)qe.hasOwnProperty(Ze)&&(ue[Ze]=qe[Ze])})(ye,le)},function(ye,le){function ue(){this.constructor=ye}gt(ye,le),ye.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)}),vt=Di(),Ue={"color-hex":{errorMessage:vt("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:vt("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:vt("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:vt("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:vt("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ut=function(){function ye(le,ue,qe){qe===void 0&&(qe=0),this.offset=ue,this.length=qe,this.parent=le}return Object.defineProperty(ye.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},ye}(),ze=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="null",Ze.value=null,Ze}return Rt(le,ye),le}(ut),st=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,Ze)||this;return tt.type="boolean",tt.value=qe,tt}return Rt(le,ye),le}(ut),_t=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="array",Ze.items=[],Ze}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),le}(ut),oi=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="number",Ze.isInteger=!0,Ze.value=Number.NaN,Ze}return Rt(le,ye),le}(ut),li=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,qe,Ze)||this;return tt.type="string",tt.value="",tt}return Rt(le,ye),le}(ut),gi=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,qe)||this;return tt.type="property",tt.colonOffset=-1,tt.keyNode=Ze,tt}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),le}(ut),ki=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="object",Ze.properties=[],Ze}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),le}(ut);function Ri(ye){return se(ye)?ye?{}:{not:{}}:ye}(function(ye){ye[ye.Key=0]="Key",ye[ye.Enum=1]="Enum"})(vi||(vi={}));var $i=function(){function ye(le,ue){le===void 0&&(le=-1),this.focusOffset=le,this.exclude=ue,this.schemas=[]}return ye.prototype.add=function(le){this.schemas.push(le)},ye.prototype.merge=function(le){Array.prototype.push.apply(this.schemas,le.schemas)},ye.prototype.include=function(le){return(this.focusOffset===-1||si(le,this.focusOffset))&&le!==this.exclude},ye.prototype.newSub=function(){return new ye(-1,this.exclude)},ye}(),Hi=function(){function ye(){}return Object.defineProperty(ye.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.add=function(le){},ye.prototype.merge=function(le){},ye.prototype.include=function(le){return!0},ye.prototype.newSub=function(){return this},ye.instance=new ye,ye}(),yi=function(){function ye(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return ye.prototype.hasProblems=function(){return!!this.problems.length},ye.prototype.mergeAll=function(le){for(var ue=0,qe=le;ue<qe.length;ue++){var Ze=qe[ue];this.merge(Ze)}},ye.prototype.merge=function(le){this.problems=this.problems.concat(le.problems)},ye.prototype.mergeEnumValues=function(le){if(!this.enumValueMatch&&!le.enumValueMatch&&this.enumValues&&le.enumValues){this.enumValues=this.enumValues.concat(le.enumValues);for(var ue=0,qe=this.problems;ue<qe.length;ue++){var Ze=qe[ue];Ze.code===et.EnumValueMismatch&&(Ze.message=vt("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(tt){return JSON.stringify(tt)}).join(", ")))}}},ye.prototype.mergePropertyMatch=function(le){this.merge(le),this.propertiesMatches++,(le.enumValueMatch||!le.hasProblems()&&le.propertiesMatches)&&this.propertiesValueMatches++,le.enumValueMatch&&le.enumValues&&le.enumValues.length===1&&this.primaryValueMatches++},ye.prototype.compare=function(le){var ue=this.hasProblems();return ue!==le.hasProblems()?ue?-1:1:this.enumValueMatch!==le.enumValueMatch?le.enumValueMatch?-1:1:this.primaryValueMatches!==le.primaryValueMatches?this.primaryValueMatches-le.primaryValueMatches:this.propertiesValueMatches!==le.propertiesValueMatches?this.propertiesValueMatches-le.propertiesValueMatches:this.propertiesMatches-le.propertiesMatches},ye}();function kt(ye){return ie.e(ye)}function Et(ye){return ie.d(ye)}function si(ye,le,ue){return ue===void 0&&(ue=!1),le>=ye.offset&&le<ye.offset+ye.length||ue&&le===ye.offset+ye.length}var Si=function(){function ye(le,ue,qe){ue===void 0&&(ue=[]),qe===void 0&&(qe=[]),this.root=le,this.syntaxErrors=ue,this.comments=qe}return ye.prototype.getNodeFromOffset=function(le,ue){if(ue===void 0&&(ue=!1),this.root)return ie.b(this.root,le,ue)},ye.prototype.visit=function(le){if(this.root){var ue=function(qe){var Ze=le(qe),tt=qe.children;if(Array.isArray(tt))for(var rt=0;rt<tt.length&&Ze;rt++)Ze=ue(tt[rt]);return Ze};ue(this.root)}},ye.prototype.validate=function(le,ue){if(this.root&&ue){var qe=new yi;return Pi(this.root,ue,qe,Hi.instance),qe.problems.map(function(Ze){var tt=f.create(le.positionAt(Ze.location.offset),le.positionAt(Ze.location.offset+Ze.location.length));return V.create(tt,Ze.message,Ze.severity,Ze.code)})}},ye.prototype.getMatchingSchemas=function(le,ue,qe){ue===void 0&&(ue=-1);var Ze=new $i(ue,qe);return this.root&&le&&Pi(this.root,le,new yi,Ze),Ze.schemas},ye}();function Pi(ye,le,ue,qe){if(ye&&qe.include(ye)){var Ze=ye;switch(Ze.type){case"object":(function(tt,rt,zt,Jt){for(var xi=Object.create(null),Ei=[],ai=0,fi=tt.properties;ai<fi.length;ai++){var ui=(yt=fi[ai]).keyNode.value;xi[ui]=yt.valueNode,Ei.push(ui)}if(Array.isArray(rt.required))for(var Te=0,Ee=rt.required;Te<Ee.length;Te++){var ve=Ee[Te];if(!xi[ve]){var Re=tt.parent&&tt.parent.type==="property"&&tt.parent.keyNode,We=Re?{offset:Re.offset,length:Re.length}:{offset:tt.offset,length:1};zt.problems.push({location:We,severity:S.Warning,message:vt("MissingRequiredPropWarning",'Missing property "{0}".',ve)})}}var Be=function(Rn){for(var Qn=Ei.indexOf(Rn);Qn>=0;)Ei.splice(Qn,1),Qn=Ei.indexOf(Rn)};if(rt.properties)for(var Le=0,Ke=Object.keys(rt.properties);Le<Ke.length;Le++){ve=Ke[Le],Be(ve);var dt=rt.properties[ve];if(ln=xi[ve])if(se(dt))if(dt)zt.propertiesMatches++,zt.propertiesValueMatches++;else{var yt=ln.parent;zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:rt.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)})}else{var xt=new yi;Pi(ln,dt,xt,Jt),zt.mergePropertyMatch(xt)}}if(rt.patternProperties)for(var Xt=0,mi=Object.keys(rt.patternProperties);Xt<mi.length;Xt++)for(var Yt=mi[Xt],ri=new RegExp(Yt),qi=0,an=Ei.slice(0);qi<an.length;qi++)ve=an[qi],ri.test(ve)&&(Be(ve),(ln=xi[ve])&&(se(dt=rt.patternProperties[Yt])?dt?(zt.propertiesMatches++,zt.propertiesValueMatches++):(yt=ln.parent,zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:rt.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)})):(xt=new yi,Pi(ln,dt,xt,Jt),zt.mergePropertyMatch(xt))));if(typeof rt.additionalProperties=="object")for(var _n=0,ei=Ei;_n<ei.length;_n++)ve=ei[_n],(ln=xi[ve])&&(xt=new yi,Pi(ln,rt.additionalProperties,xt,Jt),zt.mergePropertyMatch(xt));else if(rt.additionalProperties===!1&&Ei.length>0)for(var ii=0,bi=Ei;ii<bi.length;ii++){var ln;ve=bi[ii],(ln=xi[ve])&&(yt=ln.parent,zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:rt.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)}))}if(q(rt.maxProperties)&&tt.properties.length>rt.maxProperties&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("MaxPropWarning","Object has more properties than limit of {0}.",rt.maxProperties)}),q(rt.minProperties)&&tt.properties.length<rt.minProperties&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("MinPropWarning","Object has fewer properties than the required number of {0}",rt.minProperties)}),rt.dependencies){for(var mn=0,sn=Object.keys(rt.dependencies);mn<sn.length;mn++)if(ui=sn[mn],xi[ui]){var gn=rt.dependencies[ui];if(Array.isArray(gn))for(var Sn=0,En=gn;Sn<En.length;Sn++){var Xn=En[Sn];xi[Xn]?zt.propertiesValueMatches++:zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Xn,ui)})}else(dt=Ri(gn))&&(xt=new yi,Pi(tt,dt,xt,Jt),zt.mergePropertyMatch(xt))}}var Yn=Ri(rt.propertyNames);if(Yn)for(var Io=0,Ro=tt.properties;Io<Ro.length;Io++){var In=Ro[Io];(ui=In.keyNode)&&Pi(ui,Yn,zt,Hi.instance)}})(Ze,le,ue,qe);break;case"array":(function(tt,rt,zt,Jt){if(Array.isArray(rt.items)){for(var xi=rt.items,Ei=0;Ei<xi.length;Ei++){var ai=Ri(xi[Ei]),fi=new yi;(Re=tt.items[Ei])?(Pi(Re,ai,fi,Jt),zt.mergePropertyMatch(fi)):tt.items.length>=xi.length&&zt.propertiesValueMatches++}if(tt.items.length>xi.length)if(typeof rt.additionalItems=="object")for(var ui=xi.length;ui<tt.items.length;ui++)fi=new yi,Pi(tt.items[ui],rt.additionalItems,fi,Jt),zt.mergePropertyMatch(fi);else rt.additionalItems===!1&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",xi.length)})}else{var Te=Ri(rt.items);if(Te)for(var Ee=0,ve=tt.items;Ee<ve.length;Ee++){var Re=ve[Ee];fi=new yi,Pi(Re,Te,fi,Jt),zt.mergePropertyMatch(fi)}}var We=Ri(rt.contains);if(We&&(tt.items.some(function(Le){var Ke=new yi;return Pi(Le,We,Ke,Hi.instance),!Ke.hasProblems()})||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:rt.errorMessage||vt("requiredItemMissingWarning","Array does not contain required item.")})),q(rt.minItems)&&tt.items.length<rt.minItems&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minItemsWarning","Array has too few items. Expected {0} or more.",rt.minItems)}),q(rt.maxItems)&&tt.items.length>rt.maxItems&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maxItemsWarning","Array has too many items. Expected {0} or fewer.",rt.maxItems)}),rt.uniqueItems===!0){var Be=kt(tt);Be.some(function(Le,Ke){return Ke!==Be.lastIndexOf(Le)})&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("uniqueItemsWarning","Array has duplicate items.")})}})(Ze,le,ue,qe);break;case"string":(function(tt,rt,zt,Jt){q(rt.minLength)&&tt.value.length<rt.minLength&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minLengthWarning","String is shorter than the minimum length of {0}.",rt.minLength)}),q(rt.maxLength)&&tt.value.length>rt.maxLength&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maxLengthWarning","String is longer than the maximum length of {0}.",rt.maxLength)}),xi=rt.pattern,typeof xi=="string"&&(new RegExp(rt.pattern).test(tt.value)||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:rt.patternErrorMessage||rt.errorMessage||vt("patternWarning",'String does not match the pattern of "{0}".',rt.pattern)}));var xi;if(rt.format)switch(rt.format){case"uri":case"uri-reference":var Ei=void 0;if(tt.value){var ai=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(tt.value);ai?ai[2]||rt.format!=="uri"||(Ei=vt("uriSchemeMissing","URI with a scheme is expected.")):Ei=vt("uriMissing","URI is expected.")}else Ei=vt("uriEmpty","URI expected.");Ei&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:rt.patternErrorMessage||rt.errorMessage||vt("uriFormatWarning","String is not a URI: {0}",Ei)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var fi=Ue[rt.format];tt.value&&fi.pattern.exec(tt.value)||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:rt.patternErrorMessage||rt.errorMessage||fi.errorMessage})}})(Ze,le,ue);break;case"number":(function(tt,rt,zt,Jt){var xi=tt.value;function Ei(Ke){var dt,yt=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(Ke.toString());return yt&&{value:Number(yt[1]+(yt[2]||"")),multiplier:(((dt=yt[2])===null||dt===void 0?void 0:dt.length)||0)-(parseInt(yt[3])||0)}}if(q(rt.multipleOf)){var ai=-1;if(Number.isInteger(rt.multipleOf))ai=xi%rt.multipleOf;else{var fi=Ei(rt.multipleOf),ui=Ei(xi);if(fi&&ui){var Te=Math.pow(10,Math.abs(ui.multiplier-fi.multiplier));ui.multiplier<fi.multiplier?ui.value*=Te:fi.value*=Te,ai=ui.value%fi.value}}ai!==0&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("multipleOfWarning","Value is not divisible by {0}.",rt.multipleOf)})}function Ee(Ke,dt){return q(dt)?dt:se(dt)&&dt?Ke:void 0}function ve(Ke,dt){if(!se(dt)||!dt)return Ke}var Re=Ee(rt.minimum,rt.exclusiveMinimum);q(Re)&&xi<=Re&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",Re)});var We=Ee(rt.maximum,rt.exclusiveMaximum);q(We)&&xi>=We&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",We)});var Be=ve(rt.minimum,rt.exclusiveMinimum);q(Be)&&xi<Be&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minimumWarning","Value is below the minimum of {0}.",Be)});var Le=ve(rt.maximum,rt.exclusiveMaximum);q(Le)&&xi>Le&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maximumWarning","Value is above the maximum of {0}.",Le)})})(Ze,le,ue);break;case"property":return Pi(Ze.valueNode,le,ue,qe)}(function(){function tt(yt){return Ze.type===yt||yt==="integer"&&Ze.type==="number"&&Ze.isInteger}if(Array.isArray(le.type)?le.type.some(tt)||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:le.errorMessage||vt("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",le.type.join(", "))}):le.type&&(tt(le.type)||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:le.errorMessage||vt("typeMismatchWarning",'Incorrect type. Expected "{0}".',le.type)})),Array.isArray(le.allOf))for(var rt=0,zt=le.allOf;rt<zt.length;rt++){var Jt=zt[rt];Pi(Ze,Ri(Jt),ue,qe)}var xi=Ri(le.not);if(xi){var Ei=new yi,ai=qe.newSub();Pi(Ze,xi,Ei,ai),Ei.hasProblems()||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:vt("notSchemaWarning","Matches a schema that is not allowed.")});for(var fi=0,ui=ai.schemas;fi<ui.length;fi++){var Te=ui[fi];Te.inverted=!Te.inverted,qe.add(Te)}}var Ee=function(yt,xt){for(var Xt=[],mi=void 0,Yt=0,ri=yt;Yt<ri.length;Yt++){var qi=Ri(ri[Yt]),an=new yi,_n=qe.newSub();if(Pi(Ze,qi,an,_n),an.hasProblems()||Xt.push(qi),mi)if(xt||an.hasProblems()||mi.validationResult.hasProblems()){var ei=an.compare(mi.validationResult);ei>0?mi={schema:qi,validationResult:an,matchingSchemas:_n}:ei===0&&(mi.matchingSchemas.merge(_n),mi.validationResult.mergeEnumValues(an))}else mi.matchingSchemas.merge(_n),mi.validationResult.propertiesMatches+=an.propertiesMatches,mi.validationResult.propertiesValueMatches+=an.propertiesValueMatches;else mi={schema:qi,validationResult:an,matchingSchemas:_n}}return Xt.length>1&&xt&&ue.problems.push({location:{offset:Ze.offset,length:1},severity:S.Warning,message:vt("oneOfWarning","Matches multiple schemas when only one must validate.")}),mi&&(ue.merge(mi.validationResult),ue.propertiesMatches+=mi.validationResult.propertiesMatches,ue.propertiesValueMatches+=mi.validationResult.propertiesValueMatches,qe.merge(mi.matchingSchemas)),Xt.length};Array.isArray(le.anyOf)&&Ee(le.anyOf,!1),Array.isArray(le.oneOf)&&Ee(le.oneOf,!0);var ve=function(yt){var xt=new yi,Xt=qe.newSub();Pi(Ze,Ri(yt),xt,Xt),ue.merge(xt),ue.propertiesMatches+=xt.propertiesMatches,ue.propertiesValueMatches+=xt.propertiesValueMatches,qe.merge(Xt)},Re=Ri(le.if);if(Re&&function(yt,xt,Xt){var mi=Ri(yt),Yt=new yi,ri=qe.newSub();Pi(Ze,mi,Yt,ri),qe.merge(ri),Yt.hasProblems()?Xt&&ve(Xt):xt&&ve(xt)}(Re,Ri(le.then),Ri(le.else)),Array.isArray(le.enum)){for(var We=kt(Ze),Be=!1,Le=0,Ke=le.enum;Le<Ke.length;Le++){var dt=Ke[Le];if(U(We,dt)){Be=!0;break}}ue.enumValues=le.enum,ue.enumValueMatch=Be,Be||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,code:et.EnumValueMismatch,message:le.errorMessage||vt("enumWarning","Value is not accepted. Valid values: {0}.",le.enum.map(function(yt){return JSON.stringify(yt)}).join(", "))})}B(le.const)&&(U(We=kt(Ze),le.const)?ue.enumValueMatch=!0:(ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,code:et.EnumValueMismatch,message:le.errorMessage||vt("constWarning","Value must be {0}.",JSON.stringify(le.const))}),ue.enumValueMatch=!1),ue.enumValues=[le.const]),le.deprecationMessage&&Ze.parent&&ue.problems.push({location:{offset:Ze.parent.offset,length:Ze.parent.length},severity:S.Warning,message:le.deprecationMessage})})(),qe.add({node:Ze,schema:le})}}function Wi(ye,le){var ue=[],qe=-1,Ze=ye.getText(),tt=ie.a(Ze,!1),rt=le&&le.collectComments?[]:void 0;function zt(){for(;;){var Re=tt.scan();switch(Ei(),Re){case 12:case 13:Array.isArray(rt)&&rt.push(f.create(ye.positionAt(tt.getTokenOffset()),ye.positionAt(tt.getTokenOffset()+tt.getTokenLength())));break;case 15:case 14:break;default:return Re}}}function Jt(Re,We,Be,Le,Ke){if(Ke===void 0&&(Ke=S.Error),ue.length===0||Be!==qe){var dt=f.create(ye.positionAt(Be),ye.positionAt(Le));ue.push(V.create(dt,Re,Ke,We,ye.languageId)),qe=Be}}function xi(Re,We,Be,Le,Ke){Be===void 0&&(Be=void 0),Le===void 0&&(Le=[]),Ke===void 0&&(Ke=[]);var dt=tt.getTokenOffset(),yt=tt.getTokenOffset()+tt.getTokenLength();if(dt===yt&&dt>0){for(dt--;dt>0&&/\s/.test(Ze.charAt(dt));)dt--;yt=dt+1}if(Jt(Re,We,dt,yt),Be&&ai(Be,!1),Le.length+Ke.length>0)for(var xt=tt.getToken();xt!==17;){if(Le.indexOf(xt)!==-1){zt();break}if(Ke.indexOf(xt)!==-1)break;xt=zt()}return Be}function Ei(){switch(tt.getTokenError()){case 4:return xi(vt("InvalidUnicode","Invalid unicode sequence in string."),et.InvalidUnicode),!0;case 5:return xi(vt("InvalidEscapeCharacter","Invalid escape character in string."),et.InvalidEscapeCharacter),!0;case 3:return xi(vt("UnexpectedEndOfNumber","Unexpected end of number."),et.UnexpectedEndOfNumber),!0;case 1:return xi(vt("UnexpectedEndOfComment","Unexpected end of comment."),et.UnexpectedEndOfComment),!0;case 2:return xi(vt("UnexpectedEndOfString","Unexpected end of string."),et.UnexpectedEndOfString),!0;case 6:return xi(vt("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),et.InvalidCharacter),!0}return!1}function ai(Re,We){return Re.length=tt.getTokenOffset()+tt.getTokenLength()-Re.offset,We&&zt(),Re}var fi=new li(void 0,0,0);function ui(Re,We){var Be=new gi(Re,tt.getTokenOffset(),fi),Le=Te(Be);if(!Le){if(tt.getToken()!==16)return;xi(vt("DoubleQuotesExpected","Property keys must be doublequoted"),et.Undefined);var Ke=new li(Be,tt.getTokenOffset(),tt.getTokenLength());Ke.value=tt.getTokenValue(),Le=Ke,zt()}Be.keyNode=Le;var dt=We[Le.value];if(dt?(Jt(vt("DuplicateKeyWarning","Duplicate object key"),et.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,S.Warning),typeof dt=="object"&&Jt(vt("DuplicateKeyWarning","Duplicate object key"),et.DuplicateKey,dt.keyNode.offset,dt.keyNode.offset+dt.keyNode.length,S.Warning),We[Le.value]=!0):We[Le.value]=Be,tt.getToken()===6)Be.colonOffset=tt.getTokenOffset(),zt();else if(xi(vt("ColonExpected","Colon expected"),et.ColonExpected),tt.getToken()===10&&ye.positionAt(Le.offset+Le.length).line<ye.positionAt(tt.getTokenOffset()).line)return Be.length=Le.length,Be;var yt=Ee(Be);return yt?(Be.valueNode=yt,Be.length=yt.offset+yt.length-Be.offset,Be):xi(vt("ValueExpected","Value expected"),et.ValueExpected,Be,[],[2,5])}function Te(Re){if(tt.getToken()===10){var We=new li(Re,tt.getTokenOffset());return We.value=tt.getTokenValue(),ai(We,!0)}}function Ee(Re){return function(We){if(tt.getToken()===3){var Be=new _t(We,tt.getTokenOffset());zt();for(var Le=!1;tt.getToken()!==4&&tt.getToken()!==17;){if(tt.getToken()===5){Le||xi(vt("ValueExpected","Value expected"),et.ValueExpected);var Ke=tt.getTokenOffset();if(zt(),tt.getToken()===4){Le&&Jt(vt("TrailingComma","Trailing comma"),et.TrailingComma,Ke,Ke+1);continue}}else Le&&xi(vt("ExpectedComma","Expected comma"),et.CommaExpected);var dt=Ee(Be);dt?Be.items.push(dt):xi(vt("PropertyExpected","Value expected"),et.ValueExpected,void 0,[],[4,5]),Le=!0}return tt.getToken()!==4?xi(vt("ExpectedCloseBracket","Expected comma or closing bracket"),et.CommaOrCloseBacketExpected,Be):ai(Be,!0)}}(Re)||function(We){if(tt.getToken()===1){var Be=new ki(We,tt.getTokenOffset()),Le=Object.create(null);zt();for(var Ke=!1;tt.getToken()!==2&&tt.getToken()!==17;){if(tt.getToken()===5){Ke||xi(vt("PropertyExpected","Property expected"),et.PropertyExpected);var dt=tt.getTokenOffset();if(zt(),tt.getToken()===2){Ke&&Jt(vt("TrailingComma","Trailing comma"),et.TrailingComma,dt,dt+1);continue}}else Ke&&xi(vt("ExpectedComma","Expected comma"),et.CommaExpected);var yt=ui(Be,Le);yt?Be.properties.push(yt):xi(vt("PropertyExpected","Property expected"),et.PropertyExpected,void 0,[],[2,5]),Ke=!0}return tt.getToken()!==2?xi(vt("ExpectedCloseBrace","Expected comma or closing brace"),et.CommaOrCloseBraceExpected,Be):ai(Be,!0)}}(Re)||Te(Re)||function(We){if(tt.getToken()===11){var Be=new oi(We,tt.getTokenOffset());if(tt.getTokenError()===0){var Le=tt.getTokenValue();try{var Ke=JSON.parse(Le);if(!q(Ke))return xi(vt("InvalidNumberFormat","Invalid number format."),et.Undefined,Be);Be.value=Ke}catch(dt){return xi(vt("InvalidNumberFormat","Invalid number format."),et.Undefined,Be)}Be.isInteger=Le.indexOf(".")===-1}return ai(Be,!0)}}(Re)||function(We){switch(tt.getToken()){case 7:return ai(new ze(We,tt.getTokenOffset()),!0);case 8:return ai(new st(We,!0,tt.getTokenOffset()),!0);case 9:return ai(new st(We,!1,tt.getTokenOffset()),!0);default:return}}(Re)}var ve=void 0;return zt()!==17&&((ve=Ee(ve))?tt.getToken()!==17&&xi(vt("End of file expected","End of file expected."),et.Undefined):xi(vt("Invalid symbol","Expected a JSON object, array or literal."),et.Undefined)),new Si(ve,ue,rt)}function xn(ye,le){var ue=ye.length-le.length;return ue>0?ye.lastIndexOf(le)===ue:ue===0&&ye===le}function un(ye){return ye.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}var bn=Di(),Fn=function(){function ye(le,ue,qe,Ze){ue===void 0&&(ue=[]),qe===void 0&&(qe=Promise),Ze===void 0&&(Ze={}),this.schemaService=le,this.contributions=ue,this.promiseConstructor=qe,this.clientCapabilities=Ze}return ye.prototype.doResolve=function(le){for(var ue=this.contributions.length-1;ue>=0;ue--){var qe=this.contributions[ue].resolveCompletion;if(qe){var Ze=qe(le);if(Ze)return Ze}}return this.promiseConstructor.resolve(le)},ye.prototype.doComplete=function(le,ue,qe){var Ze=this,tt={items:[],isIncomplete:!1},rt=le.getText(),zt=le.offsetAt(ue),Jt=qe.getNodeFromOffset(zt,!0);if(this.isInComment(le,Jt?Jt.offset:0,zt))return Promise.resolve(tt);if(Jt&&zt===Jt.offset+Jt.length&&zt>0){var xi=rt[zt-1];(Jt.type==="object"&&xi==="}"||Jt.type==="array"&&xi==="]")&&(Jt=Jt.parent)}var Ei,ai=this.getCurrentWord(le,zt);if(!Jt||Jt.type!=="string"&&Jt.type!=="number"&&Jt.type!=="boolean"&&Jt.type!=="null"){var fi=zt-ai.length;fi>0&&rt[fi-1]==='"'&&fi--,Ei=f.create(le.positionAt(fi),ue)}else Ei=f.create(le.positionAt(Jt.offset),le.positionAt(Jt.offset+Jt.length));var ui={},Te={add:function(Ee){var ve=Ee.label,Re=ui[ve];if(Re)Re.documentation||(Re.documentation=Ee.documentation);else{if((ve=ve.replace(/[\n]/g,"\u21B5")).length>60){var We=ve.substr(0,57).trim()+"...";ui[We]||(ve=We)}Ei&&Ee.insertText!==void 0&&(Ee.textEdit=l.replace(Ei,Ee.insertText)),Ee.label=ve,ui[ve]=Ee,tt.items.push(Ee)}},setAsIncomplete:function(){tt.isIncomplete=!0},error:function(Ee){console.error(Ee)},log:function(Ee){console.log(Ee)},getNumberOfProposals:function(){return tt.items.length}};return this.schemaService.getSchemaForResource(le.uri,qe).then(function(Ee){var ve=[],Re=!0,We="",Be=void 0;if(Jt&&Jt.type==="string"){var Le=Jt.parent;Le&&Le.type==="property"&&Le.keyNode===Jt&&(Re=!Le.valueNode,Be=Le,We=rt.substr(Jt.offset+1,Jt.length-2),Le&&(Jt=Le.parent))}if(Jt&&Jt.type==="object"){if(Jt.offset===zt)return tt;Jt.properties.forEach(function(xt){Be&&Be===xt||(ui[xt.keyNode.value]=L.create("__"))});var Ke="";Re&&(Ke=Ze.evaluateSeparatorAfter(le,le.offsetAt(Ei.end))),Ee?Ze.getPropertyCompletions(Ee,qe,Jt,Re,Ke,Te):Ze.getSchemaLessPropertyCompletions(qe,Jt,We,Te);var dt=Et(Jt);Ze.contributions.forEach(function(xt){var Xt=xt.collectPropertyCompletions(le.uri,dt,ai,Re,Ke==="",Te);Xt&&ve.push(Xt)}),!Ee&&ai.length>0&&rt.charAt(zt-ai.length-1)!=='"'&&(Te.add({kind:he.Property,label:Ze.getLabelForValue(ai),insertText:Ze.getInsertTextForProperty(ai,void 0,!1,Ke),insertTextFormat:Ce.Snippet,documentation:""}),Te.setAsIncomplete())}var yt={};return Ee?Ze.getValueCompletions(Ee,qe,Jt,zt,le,Te,yt):Ze.getSchemaLessValueCompletions(qe,Jt,zt,le,Te),Ze.contributions.length>0&&Ze.getContributedValueCompletions(qe,Jt,zt,le,Te,ve),Ze.promiseConstructor.all(ve).then(function(){if(Te.getNumberOfProposals()===0){var xt=zt;!Jt||Jt.type!=="string"&&Jt.type!=="number"&&Jt.type!=="boolean"&&Jt.type!=="null"||(xt=Jt.offset+Jt.length);var Xt=Ze.evaluateSeparatorAfter(le,xt);Ze.addFillerValueCompletions(yt,Xt,Te)}return tt})})},ye.prototype.getPropertyCompletions=function(le,ue,qe,Ze,tt,rt){var zt=this;ue.getMatchingSchemas(le.schema,qe.offset).forEach(function(Jt){if(Jt.node===qe&&!Jt.inverted){var xi=Jt.schema.properties;xi&&Object.keys(xi).forEach(function(Te){var Ee=xi[Te];if(typeof Ee=="object"&&!Ee.deprecationMessage&&!Ee.doNotSuggest){var ve={kind:he.Property,label:Te,insertText:zt.getInsertTextForProperty(Te,Ee,Ze,tt),insertTextFormat:Ce.Snippet,filterText:zt.getFilterTextForValue(Te),documentation:zt.fromMarkup(Ee.markdownDescription)||Ee.description||""};Ee.suggestSortText!==void 0&&(ve.sortText=Ee.suggestSortText),ve.insertText&&xn(ve.insertText,"$1"+tt)&&(ve.command={title:"Suggest",command:"editor.action.triggerSuggest"}),rt.add(ve)}});var Ei=Jt.schema.propertyNames;if(typeof Ei=="object"&&!Ei.deprecationMessage&&!Ei.doNotSuggest){var ai=function(Te,Ee){Ee===void 0&&(Ee=void 0);var ve={kind:he.Property,label:Te,insertText:zt.getInsertTextForProperty(Te,void 0,Ze,tt),insertTextFormat:Ce.Snippet,filterText:zt.getFilterTextForValue(Te),documentation:Ee||zt.fromMarkup(Ei.markdownDescription)||Ei.description||""};Ei.suggestSortText!==void 0&&(ve.sortText=Ei.suggestSortText),ve.insertText&&xn(ve.insertText,"$1"+tt)&&(ve.command={title:"Suggest",command:"editor.action.triggerSuggest"}),rt.add(ve)};if(Ei.enum)for(var fi=0;fi<Ei.enum.length;fi++){var ui=void 0;Ei.markdownEnumDescriptions&&fi<Ei.markdownEnumDescriptions.length?ui=zt.fromMarkup(Ei.markdownEnumDescriptions[fi]):Ei.enumDescriptions&&fi<Ei.enumDescriptions.length&&(ui=Ei.enumDescriptions[fi]),ai(Ei.enum[fi],ui)}Ei.const&&ai(Ei.const)}}})},ye.prototype.getSchemaLessPropertyCompletions=function(le,ue,qe,Ze){var tt=this,rt=function(Jt){Jt.properties.forEach(function(xi){var Ei=xi.keyNode.value;Ze.add({kind:he.Property,label:Ei,insertText:tt.getInsertTextForValue(Ei,""),insertTextFormat:Ce.Snippet,filterText:tt.getFilterTextForValue(Ei),documentation:""})})};if(ue.parent)if(ue.parent.type==="property"){var zt=ue.parent.keyNode.value;le.visit(function(Jt){return Jt.type==="property"&&Jt!==ue.parent&&Jt.keyNode.value===zt&&Jt.valueNode&&Jt.valueNode.type==="object"&&rt(Jt.valueNode),!0})}else ue.parent.type==="array"&&ue.parent.items.forEach(function(Jt){Jt.type==="object"&&Jt!==ue&&rt(Jt)});else ue.type==="object"&&Ze.add({kind:he.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Ce.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},ye.prototype.getSchemaLessValueCompletions=function(le,ue,qe,Ze,tt){var rt=this,zt=qe;if(!ue||ue.type!=="string"&&ue.type!=="number"&&ue.type!=="boolean"&&ue.type!=="null"||(zt=ue.offset+ue.length,ue=ue.parent),!ue)return tt.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Ce.Snippet,documentation:""}),void tt.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Ce.Snippet,documentation:""});var Jt=this.evaluateSeparatorAfter(Ze,zt),xi=function(ui){ui.parent&&!si(ui.parent,qe,!0)&&tt.add({kind:rt.getSuggestionKind(ui.type),label:rt.getLabelTextForMatchingNode(ui,Ze),insertText:rt.getInsertTextForMatchingNode(ui,Ze,Jt),insertTextFormat:Ce.Snippet,documentation:""}),ui.type==="boolean"&&rt.addBooleanValueCompletion(!ui.value,Jt,tt)};if(ue.type==="property"&&qe>(ue.colonOffset||0)){var Ei=ue.valueNode;if(Ei&&(qe>Ei.offset+Ei.length||Ei.type==="object"||Ei.type==="array"))return;var ai=ue.keyNode.value;le.visit(function(ui){return ui.type==="property"&&ui.keyNode.value===ai&&ui.valueNode&&xi(ui.valueNode),!0}),ai==="$schema"&&ue.parent&&!ue.parent.parent&&this.addDollarSchemaCompletions(Jt,tt)}if(ue.type==="array")if(ue.parent&&ue.parent.type==="property"){var fi=ue.parent.keyNode.value;le.visit(function(ui){return ui.type==="property"&&ui.keyNode.value===fi&&ui.valueNode&&ui.valueNode.type==="array"&&ui.valueNode.items.forEach(xi),!0})}else ue.items.forEach(xi)},ye.prototype.getValueCompletions=function(le,ue,qe,Ze,tt,rt,zt){var Jt=Ze,xi=void 0,Ei=void 0;if(!qe||qe.type!=="string"&&qe.type!=="number"&&qe.type!=="boolean"&&qe.type!=="null"||(Jt=qe.offset+qe.length,Ei=qe,qe=qe.parent),qe){if(qe.type==="property"&&Ze>(qe.colonOffset||0)){var ai=qe.valueNode;if(ai&&Ze>ai.offset+ai.length)return;xi=qe.keyNode.value,qe=qe.parent}if(qe&&(xi!==void 0||qe.type==="array")){for(var fi=this.evaluateSeparatorAfter(tt,Jt),ui=0,Te=ue.getMatchingSchemas(le.schema,qe.offset,Ei);ui<Te.length;ui++){var Ee=Te[ui];if(Ee.node===qe&&!Ee.inverted&&Ee.schema){if(qe.type==="array"&&Ee.schema.items)if(Array.isArray(Ee.schema.items)){var ve=this.findItemAtOffset(qe,tt,Ze);ve<Ee.schema.items.length&&this.addSchemaValueCompletions(Ee.schema.items[ve],fi,rt,zt)}else this.addSchemaValueCompletions(Ee.schema.items,fi,rt,zt);if(xi!==void 0){var Re=!1;if(Ee.schema.properties&&(Ke=Ee.schema.properties[xi])&&(Re=!0,this.addSchemaValueCompletions(Ke,fi,rt,zt)),Ee.schema.patternProperties&&!Re)for(var We=0,Be=Object.keys(Ee.schema.patternProperties);We<Be.length;We++){var Le=Be[We];if(new RegExp(Le).test(xi)){Re=!0;var Ke=Ee.schema.patternProperties[Le];this.addSchemaValueCompletions(Ke,fi,rt,zt)}}Ee.schema.additionalProperties&&!Re&&(Ke=Ee.schema.additionalProperties,this.addSchemaValueCompletions(Ke,fi,rt,zt))}}}xi!=="$schema"||qe.parent||this.addDollarSchemaCompletions(fi,rt),zt.boolean&&(this.addBooleanValueCompletion(!0,fi,rt),this.addBooleanValueCompletion(!1,fi,rt)),zt.null&&this.addNullValueCompletion(fi,rt)}}else this.addSchemaValueCompletions(le.schema,"",rt,zt)},ye.prototype.getContributedValueCompletions=function(le,ue,qe,Ze,tt,rt){if(ue){if(ue.type!=="string"&&ue.type!=="number"&&ue.type!=="boolean"&&ue.type!=="null"||(ue=ue.parent),ue&&ue.type==="property"&&qe>(ue.colonOffset||0)){var zt=ue.keyNode.value,Jt=ue.valueNode;if((!Jt||qe<=Jt.offset+Jt.length)&&ue.parent){var xi=Et(ue.parent);this.contributions.forEach(function(Ei){var ai=Ei.collectValueCompletions(Ze.uri,xi,zt,tt);ai&&rt.push(ai)})}}}else this.contributions.forEach(function(Ei){var ai=Ei.collectDefaultCompletions(Ze.uri,tt);ai&&rt.push(ai)})},ye.prototype.addSchemaValueCompletions=function(le,ue,qe,Ze){var tt=this;typeof le=="object"&&(this.addEnumValueCompletions(le,ue,qe),this.addDefaultValueCompletions(le,ue,qe),this.collectTypes(le,Ze),Array.isArray(le.allOf)&&le.allOf.forEach(function(rt){return tt.addSchemaValueCompletions(rt,ue,qe,Ze)}),Array.isArray(le.anyOf)&&le.anyOf.forEach(function(rt){return tt.addSchemaValueCompletions(rt,ue,qe,Ze)}),Array.isArray(le.oneOf)&&le.oneOf.forEach(function(rt){return tt.addSchemaValueCompletions(rt,ue,qe,Ze)}))},ye.prototype.addDefaultValueCompletions=function(le,ue,qe,Ze){var tt=this;Ze===void 0&&(Ze=0);var rt=!1;if(B(le.default)){for(var zt=le.type,Jt=le.default,xi=Ze;xi>0;xi--)Jt=[Jt],zt="array";qe.add({kind:this.getSuggestionKind(zt),label:this.getLabelForValue(Jt),insertText:this.getInsertTextForValue(Jt,ue),insertTextFormat:Ce.Snippet,detail:bn("json.suggest.default","Default value")}),rt=!0}Array.isArray(le.examples)&&le.examples.forEach(function(Ei){for(var ai=le.type,fi=Ei,ui=Ze;ui>0;ui--)fi=[fi],ai="array";qe.add({kind:tt.getSuggestionKind(ai),label:tt.getLabelForValue(fi),insertText:tt.getInsertTextForValue(fi,ue),insertTextFormat:Ce.Snippet}),rt=!0}),Array.isArray(le.defaultSnippets)&&le.defaultSnippets.forEach(function(Ei){var ai,fi,ui=le.type,Te=Ei.body,Ee=Ei.label;if(B(Te)){le.type;for(var ve=Ze;ve>0;ve--)Te=[Te];ai=tt.getInsertTextForSnippetValue(Te,ue),fi=tt.getFilterTextForSnippetValue(Te),Ee=Ee||tt.getLabelForSnippetValue(Te)}else{if(typeof Ei.bodyText!="string")return;var Re="",We="",Be="";for(ve=Ze;ve>0;ve--)Re=Re+Be+`[ +`&&Ze++}qe&&ue.length>0&&le.push(ue.length),this._lineOffsets=le}return this._lineOffsets},ye.prototype.positionAt=function(le){le=Math.max(Math.min(le,this._content.length),0);var ue=this.getLineOffsets(),qe=0,Ze=ue.length;if(Ze===0)return h.create(0,le);for(;qe<Ze;){var tt=Math.floor((qe+Ze)/2);ue[tt]>le?Ze=tt:qe=tt+1}var ot=qe-1;return h.create(ot,le-ue[ot])},ye.prototype.offsetAt=function(le){var ue=this.getLineOffsets();if(le.line>=ue.length)return this._content.length;if(le.line<0)return 0;var qe=ue[le.line],Ze=le.line+1<ue.length?ue[le.line+1]:this._content.length;return Math.max(Math.min(qe+le.character,Ze),qe)},Object.defineProperty(ye.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),ye}();(function(ye){var le=Object.prototype.toString;ye.defined=function(ue){return ue!==void 0},ye.undefined=function(ue){return ue===void 0},ye.boolean=function(ue){return ue===!0||ue===!1},ye.string=function(ue){return le.call(ue)==="[object String]"},ye.number=function(ue){return le.call(ue)==="[object Number]"},ye.func=function(ue){return le.call(ue)==="[object Function]"},ye.objectLiteral=function(ue){return ue!==null&&typeof ue=="object"},ye.typedArray=function(ue,qe){return Array.isArray(ue)&&ue.every(qe)}})(wt||(wt={}));var pi,et,Wt,Li=function(){function ye(le,ue,qe,Ze){this._uri=le,this._languageId=ue,this._version=qe,this._content=Ze,this._lineOffsets=void 0}return Object.defineProperty(ye.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),ye.prototype.getText=function(le){if(le){var ue=this.offsetAt(le.start),qe=this.offsetAt(le.end);return this._content.substring(ue,qe)}return this._content},ye.prototype.update=function(le,ue){for(var qe=0,Ze=le;qe<Ze.length;qe++){var tt=Ze[qe];if(ye.isIncremental(tt)){var ot=Ai(tt.range),zt=this.offsetAt(ot.start),Jt=this.offsetAt(ot.end);this._content=this._content.substring(0,zt)+tt.text+this._content.substring(Jt,this._content.length);var xi=Math.max(ot.start.line,0),Ei=Math.max(ot.end.line,0),ai=this._lineOffsets,fi=Ii(tt.text,!1,zt);if(Ei-xi===fi.length)for(var ui=0,Te=fi.length;ui<Te;ui++)ai[ui+xi+1]=fi[ui];else fi.length<1e4?ai.splice.apply(ai,[xi+1,Ei-xi].concat(fi)):this._lineOffsets=ai=ai.slice(0,xi+1).concat(fi,ai.slice(Ei+1));var Ee=tt.text.length-(Jt-zt);if(Ee!==0)for(ui=xi+1+fi.length,Te=ai.length;ui<Te;ui++)ai[ui]=ai[ui]+Ee}else{if(!ye.isFull(tt))throw new Error("Unknown change event received");this._content=tt.text,this._lineOffsets=void 0}}this._version=ue},ye.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ii(this._content,!0)),this._lineOffsets},ye.prototype.positionAt=function(le){le=Math.max(Math.min(le,this._content.length),0);var ue=this.getLineOffsets(),qe=0,Ze=ue.length;if(Ze===0)return{line:0,character:le};for(;qe<Ze;){var tt=Math.floor((qe+Ze)/2);ue[tt]>le?Ze=tt:qe=tt+1}var ot=qe-1;return{line:ot,character:le-ue[ot]}},ye.prototype.offsetAt=function(le){var ue=this.getLineOffsets();if(le.line>=ue.length)return this._content.length;if(le.line<0)return 0;var qe=ue[le.line],Ze=le.line+1<ue.length?ue[le.line+1]:this._content.length;return Math.max(Math.min(qe+le.character,Ze),qe)},Object.defineProperty(ye.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),ye.isIncremental=function(le){var ue=le;return ue!=null&&typeof ue.text=="string"&&ue.range!==void 0&&(ue.rangeLength===void 0||typeof ue.rangeLength=="number")},ye.isFull=function(le){var ue=le;return ue!=null&&typeof ue.text=="string"&&ue.range===void 0&&ue.rangeLength===void 0},ye}();function Ii(ye,le,ue){ue===void 0&&(ue=0);for(var qe=le?[ue]:[],Ze=0;Ze<ye.length;Ze++){var tt=ye.charCodeAt(Ze);tt!==13&&tt!==10||(tt===13&&Ze+1<ye.length&&ye.charCodeAt(Ze+1)===10&&Ze++,qe.push(ue+Ze+1))}return qe}function Ai(ye){var le=ye.start,ue=ye.end;return le.line>ue.line||le.line===ue.line&&le.character>ue.character?{start:ue,end:le}:ye}function Zi(ye){var le=Ai(ye.range);return le!==ye.range?{newText:ye.newText,range:le}:ye}function Bi(ye,le){return le.length===0?ye:ye.replace(/\{(\d+)\}/g,function(ue,qe){var Ze=qe[0];return le[Ze]!==void 0?le[Ze]:ue})}function Lt(ye,le){for(var ue=[],qe=2;qe<arguments.length;qe++)ue[qe-2]=arguments[qe];return Bi(le,ue)}function Oi(ye){return Lt}(function(ye){ye.create=function(le,ue,qe,Ze){return new Li(le,ue,qe,Ze)},ye.update=function(le,ue,qe){if(le instanceof Li)return le.update(ue,qe),le;throw new Error("TextDocument.update: document must be created by TextDocument.create")},ye.applyEdits=function(le,ue){for(var qe=le.getText(),Ze=0,tt=[],ot=0,zt=function Ei(ai,fi){if(ai.length<=1)return ai;var ui=ai.length/2|0,Te=ai.slice(0,ui),Ee=ai.slice(ui);Ei(Te,fi),Ei(Ee,fi);for(var ve=0,Re=0,We=0;ve<Te.length&&Re<Ee.length;){var Be=fi(Te[ve],Ee[Re]);ai[We++]=Be<=0?Te[ve++]:Ee[Re++]}for(;ve<Te.length;)ai[We++]=Te[ve++];for(;Re<Ee.length;)ai[We++]=Ee[Re++];return ai}(ue.map(Zi),function(Ei,ai){var fi=Ei.range.start.line-ai.range.start.line;return fi===0?Ei.range.start.character-ai.range.start.character:fi});ot<zt.length;ot++){var Jt=zt[ot],xi=le.offsetAt(Jt.range.start);if(xi<Ze)throw new Error("Overlapping edit");xi>Ze&&tt.push(qe.substring(Ze,xi)),Jt.newText.length&&tt.push(Jt.newText),Ze=le.offsetAt(Jt.range.end)}return tt.push(qe.substr(Ze)),tt.join("")}})(pi||(pi={})),function(ye){ye[ye.Undefined=0]="Undefined",ye[ye.EnumValueMismatch=1]="EnumValueMismatch",ye[ye.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",ye[ye.UnexpectedEndOfString=258]="UnexpectedEndOfString",ye[ye.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",ye[ye.InvalidUnicode=260]="InvalidUnicode",ye[ye.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",ye[ye.InvalidCharacter=262]="InvalidCharacter",ye[ye.PropertyExpected=513]="PropertyExpected",ye[ye.CommaExpected=514]="CommaExpected",ye[ye.ColonExpected=515]="ColonExpected",ye[ye.ValueExpected=516]="ValueExpected",ye[ye.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",ye[ye.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",ye[ye.TrailingComma=519]="TrailingComma",ye[ye.DuplicateKey=520]="DuplicateKey",ye[ye.CommentNotPermitted=521]="CommentNotPermitted",ye[ye.SchemaResolveError=768]="SchemaResolveError"}(et||(et={})),(Wt||(Wt={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Z.Markdown,Z.PlainText],commitCharactersSupport:!0}}}};var gt,vi,Rt=(gt=function(ye,le){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,qe){ue.__proto__=qe}||function(ue,qe){for(var Ze in qe)qe.hasOwnProperty(Ze)&&(ue[Ze]=qe[Ze])})(ye,le)},function(ye,le){function ue(){this.constructor=ye}gt(ye,le),ye.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)}),vt=Oi(),Ue={"color-hex":{errorMessage:vt("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:vt("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:vt("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:vt("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:vt("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ut=function(){function ye(le,ue,qe){qe===void 0&&(qe=0),this.offset=ue,this.length=qe,this.parent=le}return Object.defineProperty(ye.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},ye}(),ze=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="null",Ze.value=null,Ze}return Rt(le,ye),le}(ut),st=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,Ze)||this;return tt.type="boolean",tt.value=qe,tt}return Rt(le,ye),le}(ut),_t=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="array",Ze.items=[],Ze}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),le}(ut),ri=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="number",Ze.isInteger=!0,Ze.value=Number.NaN,Ze}return Rt(le,ye),le}(ut),li=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,qe,Ze)||this;return tt.type="string",tt.value="",tt}return Rt(le,ye),le}(ut),gi=function(ye){function le(ue,qe,Ze){var tt=ye.call(this,ue,qe)||this;return tt.type="property",tt.colonOffset=-1,tt.keyNode=Ze,tt}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),le}(ut),ki=function(ye){function le(ue,qe){var Ze=ye.call(this,ue,qe)||this;return Ze.type="object",Ze.properties=[],Ze}return Rt(le,ye),Object.defineProperty(le.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),le}(ut);function Ri(ye){return se(ye)?ye?{}:{not:{}}:ye}(function(ye){ye[ye.Key=0]="Key",ye[ye.Enum=1]="Enum"})(vi||(vi={}));var $i=function(){function ye(le,ue){le===void 0&&(le=-1),this.focusOffset=le,this.exclude=ue,this.schemas=[]}return ye.prototype.add=function(le){this.schemas.push(le)},ye.prototype.merge=function(le){Array.prototype.push.apply(this.schemas,le.schemas)},ye.prototype.include=function(le){return(this.focusOffset===-1||si(le,this.focusOffset))&&le!==this.exclude},ye.prototype.newSub=function(){return new ye(-1,this.exclude)},ye}(),Hi=function(){function ye(){}return Object.defineProperty(ye.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.add=function(le){},ye.prototype.merge=function(le){},ye.prototype.include=function(le){return!0},ye.prototype.newSub=function(){return this},ye.instance=new ye,ye}(),yi=function(){function ye(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return ye.prototype.hasProblems=function(){return!!this.problems.length},ye.prototype.mergeAll=function(le){for(var ue=0,qe=le;ue<qe.length;ue++){var Ze=qe[ue];this.merge(Ze)}},ye.prototype.merge=function(le){this.problems=this.problems.concat(le.problems)},ye.prototype.mergeEnumValues=function(le){if(!this.enumValueMatch&&!le.enumValueMatch&&this.enumValues&&le.enumValues){this.enumValues=this.enumValues.concat(le.enumValues);for(var ue=0,qe=this.problems;ue<qe.length;ue++){var Ze=qe[ue];Ze.code===et.EnumValueMismatch&&(Ze.message=vt("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(tt){return JSON.stringify(tt)}).join(", ")))}}},ye.prototype.mergePropertyMatch=function(le){this.merge(le),this.propertiesMatches++,(le.enumValueMatch||!le.hasProblems()&&le.propertiesMatches)&&this.propertiesValueMatches++,le.enumValueMatch&&le.enumValues&&le.enumValues.length===1&&this.primaryValueMatches++},ye.prototype.compare=function(le){var ue=this.hasProblems();return ue!==le.hasProblems()?ue?-1:1:this.enumValueMatch!==le.enumValueMatch?le.enumValueMatch?-1:1:this.primaryValueMatches!==le.primaryValueMatches?this.primaryValueMatches-le.primaryValueMatches:this.propertiesValueMatches!==le.propertiesValueMatches?this.propertiesValueMatches-le.propertiesValueMatches:this.propertiesMatches-le.propertiesMatches},ye}();function kt(ye){return ie.e(ye)}function Et(ye){return ie.d(ye)}function si(ye,le,ue){return ue===void 0&&(ue=!1),le>=ye.offset&&le<ye.offset+ye.length||ue&&le===ye.offset+ye.length}var Si=function(){function ye(le,ue,qe){ue===void 0&&(ue=[]),qe===void 0&&(qe=[]),this.root=le,this.syntaxErrors=ue,this.comments=qe}return ye.prototype.getNodeFromOffset=function(le,ue){if(ue===void 0&&(ue=!1),this.root)return ie.b(this.root,le,ue)},ye.prototype.visit=function(le){if(this.root){var ue=function(qe){var Ze=le(qe),tt=qe.children;if(Array.isArray(tt))for(var ot=0;ot<tt.length&&Ze;ot++)Ze=ue(tt[ot]);return Ze};ue(this.root)}},ye.prototype.validate=function(le,ue){if(this.root&&ue){var qe=new yi;return Pi(this.root,ue,qe,Hi.instance),qe.problems.map(function(Ze){var tt=f.create(le.positionAt(Ze.location.offset),le.positionAt(Ze.location.offset+Ze.location.length));return V.create(tt,Ze.message,Ze.severity,Ze.code)})}},ye.prototype.getMatchingSchemas=function(le,ue,qe){ue===void 0&&(ue=-1);var Ze=new $i(ue,qe);return this.root&&le&&Pi(this.root,le,new yi,Ze),Ze.schemas},ye}();function Pi(ye,le,ue,qe){if(ye&&qe.include(ye)){var Ze=ye;switch(Ze.type){case"object":(function(tt,ot,zt,Jt){for(var xi=Object.create(null),Ei=[],ai=0,fi=tt.properties;ai<fi.length;ai++){var ui=(yt=fi[ai]).keyNode.value;xi[ui]=yt.valueNode,Ei.push(ui)}if(Array.isArray(ot.required))for(var Te=0,Ee=ot.required;Te<Ee.length;Te++){var ve=Ee[Te];if(!xi[ve]){var Re=tt.parent&&tt.parent.type==="property"&&tt.parent.keyNode,We=Re?{offset:Re.offset,length:Re.length}:{offset:tt.offset,length:1};zt.problems.push({location:We,severity:S.Warning,message:vt("MissingRequiredPropWarning",'Missing property "{0}".',ve)})}}var Be=function(Rn){for(var Qn=Ei.indexOf(Rn);Qn>=0;)Ei.splice(Qn,1),Qn=Ei.indexOf(Rn)};if(ot.properties)for(var Le=0,Ke=Object.keys(ot.properties);Le<Ke.length;Le++){ve=Ke[Le],Be(ve);var dt=ot.properties[ve];if(ln=xi[ve])if(se(dt))if(dt)zt.propertiesMatches++,zt.propertiesValueMatches++;else{var yt=ln.parent;zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:ot.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)})}else{var xt=new yi;Pi(ln,dt,xt,Jt),zt.mergePropertyMatch(xt)}}if(ot.patternProperties)for(var Xt=0,mi=Object.keys(ot.patternProperties);Xt<mi.length;Xt++)for(var Yt=mi[Xt],oi=new RegExp(Yt),qi=0,an=Ei.slice(0);qi<an.length;qi++)ve=an[qi],oi.test(ve)&&(Be(ve),(ln=xi[ve])&&(se(dt=ot.patternProperties[Yt])?dt?(zt.propertiesMatches++,zt.propertiesValueMatches++):(yt=ln.parent,zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:ot.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)})):(xt=new yi,Pi(ln,dt,xt,Jt),zt.mergePropertyMatch(xt))));if(typeof ot.additionalProperties=="object")for(var _n=0,ei=Ei;_n<ei.length;_n++)ve=ei[_n],(ln=xi[ve])&&(xt=new yi,Pi(ln,ot.additionalProperties,xt,Jt),zt.mergePropertyMatch(xt));else if(ot.additionalProperties===!1&&Ei.length>0)for(var ii=0,bi=Ei;ii<bi.length;ii++){var ln;ve=bi[ii],(ln=xi[ve])&&(yt=ln.parent,zt.problems.push({location:{offset:yt.keyNode.offset,length:yt.keyNode.length},severity:S.Warning,message:ot.errorMessage||vt("DisallowedExtraPropWarning","Property {0} is not allowed.",ve)}))}if(q(ot.maxProperties)&&tt.properties.length>ot.maxProperties&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("MaxPropWarning","Object has more properties than limit of {0}.",ot.maxProperties)}),q(ot.minProperties)&&tt.properties.length<ot.minProperties&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("MinPropWarning","Object has fewer properties than the required number of {0}",ot.minProperties)}),ot.dependencies){for(var mn=0,sn=Object.keys(ot.dependencies);mn<sn.length;mn++)if(ui=sn[mn],xi[ui]){var gn=ot.dependencies[ui];if(Array.isArray(gn))for(var Sn=0,En=gn;Sn<En.length;Sn++){var Xn=En[Sn];xi[Xn]?zt.propertiesValueMatches++:zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Xn,ui)})}else(dt=Ri(gn))&&(xt=new yi,Pi(tt,dt,xt,Jt),zt.mergePropertyMatch(xt))}}var Yn=Ri(ot.propertyNames);if(Yn)for(var Nr=0,Ar=tt.properties;Nr<Ar.length;Nr++){var In=Ar[Nr];(ui=In.keyNode)&&Pi(ui,Yn,zt,Hi.instance)}})(Ze,le,ue,qe);break;case"array":(function(tt,ot,zt,Jt){if(Array.isArray(ot.items)){for(var xi=ot.items,Ei=0;Ei<xi.length;Ei++){var ai=Ri(xi[Ei]),fi=new yi;(Re=tt.items[Ei])?(Pi(Re,ai,fi,Jt),zt.mergePropertyMatch(fi)):tt.items.length>=xi.length&&zt.propertiesValueMatches++}if(tt.items.length>xi.length)if(typeof ot.additionalItems=="object")for(var ui=xi.length;ui<tt.items.length;ui++)fi=new yi,Pi(tt.items[ui],ot.additionalItems,fi,Jt),zt.mergePropertyMatch(fi);else ot.additionalItems===!1&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",xi.length)})}else{var Te=Ri(ot.items);if(Te)for(var Ee=0,ve=tt.items;Ee<ve.length;Ee++){var Re=ve[Ee];fi=new yi,Pi(Re,Te,fi,Jt),zt.mergePropertyMatch(fi)}}var We=Ri(ot.contains);if(We&&(tt.items.some(function(Le){var Ke=new yi;return Pi(Le,We,Ke,Hi.instance),!Ke.hasProblems()})||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:ot.errorMessage||vt("requiredItemMissingWarning","Array does not contain required item.")})),q(ot.minItems)&&tt.items.length<ot.minItems&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minItemsWarning","Array has too few items. Expected {0} or more.",ot.minItems)}),q(ot.maxItems)&&tt.items.length>ot.maxItems&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maxItemsWarning","Array has too many items. Expected {0} or fewer.",ot.maxItems)}),ot.uniqueItems===!0){var Be=kt(tt);Be.some(function(Le,Ke){return Ke!==Be.lastIndexOf(Le)})&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("uniqueItemsWarning","Array has duplicate items.")})}})(Ze,le,ue,qe);break;case"string":(function(tt,ot,zt,Jt){q(ot.minLength)&&tt.value.length<ot.minLength&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minLengthWarning","String is shorter than the minimum length of {0}.",ot.minLength)}),q(ot.maxLength)&&tt.value.length>ot.maxLength&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maxLengthWarning","String is longer than the maximum length of {0}.",ot.maxLength)}),xi=ot.pattern,typeof xi=="string"&&(new RegExp(ot.pattern).test(tt.value)||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:ot.patternErrorMessage||ot.errorMessage||vt("patternWarning",'String does not match the pattern of "{0}".',ot.pattern)}));var xi;if(ot.format)switch(ot.format){case"uri":case"uri-reference":var Ei=void 0;if(tt.value){var ai=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(tt.value);ai?ai[2]||ot.format!=="uri"||(Ei=vt("uriSchemeMissing","URI with a scheme is expected.")):Ei=vt("uriMissing","URI is expected.")}else Ei=vt("uriEmpty","URI expected.");Ei&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:ot.patternErrorMessage||ot.errorMessage||vt("uriFormatWarning","String is not a URI: {0}",Ei)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var fi=Ue[ot.format];tt.value&&fi.pattern.exec(tt.value)||zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:ot.patternErrorMessage||ot.errorMessage||fi.errorMessage})}})(Ze,le,ue);break;case"number":(function(tt,ot,zt,Jt){var xi=tt.value;function Ei(Ke){var dt,yt=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(Ke.toString());return yt&&{value:Number(yt[1]+(yt[2]||"")),multiplier:(((dt=yt[2])===null||dt===void 0?void 0:dt.length)||0)-(parseInt(yt[3])||0)}}if(q(ot.multipleOf)){var ai=-1;if(Number.isInteger(ot.multipleOf))ai=xi%ot.multipleOf;else{var fi=Ei(ot.multipleOf),ui=Ei(xi);if(fi&&ui){var Te=Math.pow(10,Math.abs(ui.multiplier-fi.multiplier));ui.multiplier<fi.multiplier?ui.value*=Te:fi.value*=Te,ai=ui.value%fi.value}}ai!==0&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("multipleOfWarning","Value is not divisible by {0}.",ot.multipleOf)})}function Ee(Ke,dt){return q(dt)?dt:se(dt)&&dt?Ke:void 0}function ve(Ke,dt){if(!se(dt)||!dt)return Ke}var Re=Ee(ot.minimum,ot.exclusiveMinimum);q(Re)&&xi<=Re&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",Re)});var We=Ee(ot.maximum,ot.exclusiveMaximum);q(We)&&xi>=We&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",We)});var Be=ve(ot.minimum,ot.exclusiveMinimum);q(Be)&&xi<Be&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("minimumWarning","Value is below the minimum of {0}.",Be)});var Le=ve(ot.maximum,ot.exclusiveMaximum);q(Le)&&xi>Le&&zt.problems.push({location:{offset:tt.offset,length:tt.length},severity:S.Warning,message:vt("maximumWarning","Value is above the maximum of {0}.",Le)})})(Ze,le,ue);break;case"property":return Pi(Ze.valueNode,le,ue,qe)}(function(){function tt(yt){return Ze.type===yt||yt==="integer"&&Ze.type==="number"&&Ze.isInteger}if(Array.isArray(le.type)?le.type.some(tt)||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:le.errorMessage||vt("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",le.type.join(", "))}):le.type&&(tt(le.type)||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:le.errorMessage||vt("typeMismatchWarning",'Incorrect type. Expected "{0}".',le.type)})),Array.isArray(le.allOf))for(var ot=0,zt=le.allOf;ot<zt.length;ot++){var Jt=zt[ot];Pi(Ze,Ri(Jt),ue,qe)}var xi=Ri(le.not);if(xi){var Ei=new yi,ai=qe.newSub();Pi(Ze,xi,Ei,ai),Ei.hasProblems()||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,message:vt("notSchemaWarning","Matches a schema that is not allowed.")});for(var fi=0,ui=ai.schemas;fi<ui.length;fi++){var Te=ui[fi];Te.inverted=!Te.inverted,qe.add(Te)}}var Ee=function(yt,xt){for(var Xt=[],mi=void 0,Yt=0,oi=yt;Yt<oi.length;Yt++){var qi=Ri(oi[Yt]),an=new yi,_n=qe.newSub();if(Pi(Ze,qi,an,_n),an.hasProblems()||Xt.push(qi),mi)if(xt||an.hasProblems()||mi.validationResult.hasProblems()){var ei=an.compare(mi.validationResult);ei>0?mi={schema:qi,validationResult:an,matchingSchemas:_n}:ei===0&&(mi.matchingSchemas.merge(_n),mi.validationResult.mergeEnumValues(an))}else mi.matchingSchemas.merge(_n),mi.validationResult.propertiesMatches+=an.propertiesMatches,mi.validationResult.propertiesValueMatches+=an.propertiesValueMatches;else mi={schema:qi,validationResult:an,matchingSchemas:_n}}return Xt.length>1&&xt&&ue.problems.push({location:{offset:Ze.offset,length:1},severity:S.Warning,message:vt("oneOfWarning","Matches multiple schemas when only one must validate.")}),mi&&(ue.merge(mi.validationResult),ue.propertiesMatches+=mi.validationResult.propertiesMatches,ue.propertiesValueMatches+=mi.validationResult.propertiesValueMatches,qe.merge(mi.matchingSchemas)),Xt.length};Array.isArray(le.anyOf)&&Ee(le.anyOf,!1),Array.isArray(le.oneOf)&&Ee(le.oneOf,!0);var ve=function(yt){var xt=new yi,Xt=qe.newSub();Pi(Ze,Ri(yt),xt,Xt),ue.merge(xt),ue.propertiesMatches+=xt.propertiesMatches,ue.propertiesValueMatches+=xt.propertiesValueMatches,qe.merge(Xt)},Re=Ri(le.if);if(Re&&function(yt,xt,Xt){var mi=Ri(yt),Yt=new yi,oi=qe.newSub();Pi(Ze,mi,Yt,oi),qe.merge(oi),Yt.hasProblems()?Xt&&ve(Xt):xt&&ve(xt)}(Re,Ri(le.then),Ri(le.else)),Array.isArray(le.enum)){for(var We=kt(Ze),Be=!1,Le=0,Ke=le.enum;Le<Ke.length;Le++){var dt=Ke[Le];if(U(We,dt)){Be=!0;break}}ue.enumValues=le.enum,ue.enumValueMatch=Be,Be||ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,code:et.EnumValueMismatch,message:le.errorMessage||vt("enumWarning","Value is not accepted. Valid values: {0}.",le.enum.map(function(yt){return JSON.stringify(yt)}).join(", "))})}B(le.const)&&(U(We=kt(Ze),le.const)?ue.enumValueMatch=!0:(ue.problems.push({location:{offset:Ze.offset,length:Ze.length},severity:S.Warning,code:et.EnumValueMismatch,message:le.errorMessage||vt("constWarning","Value must be {0}.",JSON.stringify(le.const))}),ue.enumValueMatch=!1),ue.enumValues=[le.const]),le.deprecationMessage&&Ze.parent&&ue.problems.push({location:{offset:Ze.parent.offset,length:Ze.parent.length},severity:S.Warning,message:le.deprecationMessage})})(),qe.add({node:Ze,schema:le})}}function Wi(ye,le){var ue=[],qe=-1,Ze=ye.getText(),tt=ie.a(Ze,!1),ot=le&&le.collectComments?[]:void 0;function zt(){for(;;){var Re=tt.scan();switch(Ei(),Re){case 12:case 13:Array.isArray(ot)&&ot.push(f.create(ye.positionAt(tt.getTokenOffset()),ye.positionAt(tt.getTokenOffset()+tt.getTokenLength())));break;case 15:case 14:break;default:return Re}}}function Jt(Re,We,Be,Le,Ke){if(Ke===void 0&&(Ke=S.Error),ue.length===0||Be!==qe){var dt=f.create(ye.positionAt(Be),ye.positionAt(Le));ue.push(V.create(dt,Re,Ke,We,ye.languageId)),qe=Be}}function xi(Re,We,Be,Le,Ke){Be===void 0&&(Be=void 0),Le===void 0&&(Le=[]),Ke===void 0&&(Ke=[]);var dt=tt.getTokenOffset(),yt=tt.getTokenOffset()+tt.getTokenLength();if(dt===yt&&dt>0){for(dt--;dt>0&&/\s/.test(Ze.charAt(dt));)dt--;yt=dt+1}if(Jt(Re,We,dt,yt),Be&&ai(Be,!1),Le.length+Ke.length>0)for(var xt=tt.getToken();xt!==17;){if(Le.indexOf(xt)!==-1){zt();break}if(Ke.indexOf(xt)!==-1)break;xt=zt()}return Be}function Ei(){switch(tt.getTokenError()){case 4:return xi(vt("InvalidUnicode","Invalid unicode sequence in string."),et.InvalidUnicode),!0;case 5:return xi(vt("InvalidEscapeCharacter","Invalid escape character in string."),et.InvalidEscapeCharacter),!0;case 3:return xi(vt("UnexpectedEndOfNumber","Unexpected end of number."),et.UnexpectedEndOfNumber),!0;case 1:return xi(vt("UnexpectedEndOfComment","Unexpected end of comment."),et.UnexpectedEndOfComment),!0;case 2:return xi(vt("UnexpectedEndOfString","Unexpected end of string."),et.UnexpectedEndOfString),!0;case 6:return xi(vt("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),et.InvalidCharacter),!0}return!1}function ai(Re,We){return Re.length=tt.getTokenOffset()+tt.getTokenLength()-Re.offset,We&&zt(),Re}var fi=new li(void 0,0,0);function ui(Re,We){var Be=new gi(Re,tt.getTokenOffset(),fi),Le=Te(Be);if(!Le){if(tt.getToken()!==16)return;xi(vt("DoubleQuotesExpected","Property keys must be doublequoted"),et.Undefined);var Ke=new li(Be,tt.getTokenOffset(),tt.getTokenLength());Ke.value=tt.getTokenValue(),Le=Ke,zt()}Be.keyNode=Le;var dt=We[Le.value];if(dt?(Jt(vt("DuplicateKeyWarning","Duplicate object key"),et.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,S.Warning),typeof dt=="object"&&Jt(vt("DuplicateKeyWarning","Duplicate object key"),et.DuplicateKey,dt.keyNode.offset,dt.keyNode.offset+dt.keyNode.length,S.Warning),We[Le.value]=!0):We[Le.value]=Be,tt.getToken()===6)Be.colonOffset=tt.getTokenOffset(),zt();else if(xi(vt("ColonExpected","Colon expected"),et.ColonExpected),tt.getToken()===10&&ye.positionAt(Le.offset+Le.length).line<ye.positionAt(tt.getTokenOffset()).line)return Be.length=Le.length,Be;var yt=Ee(Be);return yt?(Be.valueNode=yt,Be.length=yt.offset+yt.length-Be.offset,Be):xi(vt("ValueExpected","Value expected"),et.ValueExpected,Be,[],[2,5])}function Te(Re){if(tt.getToken()===10){var We=new li(Re,tt.getTokenOffset());return We.value=tt.getTokenValue(),ai(We,!0)}}function Ee(Re){return function(We){if(tt.getToken()===3){var Be=new _t(We,tt.getTokenOffset());zt();for(var Le=!1;tt.getToken()!==4&&tt.getToken()!==17;){if(tt.getToken()===5){Le||xi(vt("ValueExpected","Value expected"),et.ValueExpected);var Ke=tt.getTokenOffset();if(zt(),tt.getToken()===4){Le&&Jt(vt("TrailingComma","Trailing comma"),et.TrailingComma,Ke,Ke+1);continue}}else Le&&xi(vt("ExpectedComma","Expected comma"),et.CommaExpected);var dt=Ee(Be);dt?Be.items.push(dt):xi(vt("PropertyExpected","Value expected"),et.ValueExpected,void 0,[],[4,5]),Le=!0}return tt.getToken()!==4?xi(vt("ExpectedCloseBracket","Expected comma or closing bracket"),et.CommaOrCloseBacketExpected,Be):ai(Be,!0)}}(Re)||function(We){if(tt.getToken()===1){var Be=new ki(We,tt.getTokenOffset()),Le=Object.create(null);zt();for(var Ke=!1;tt.getToken()!==2&&tt.getToken()!==17;){if(tt.getToken()===5){Ke||xi(vt("PropertyExpected","Property expected"),et.PropertyExpected);var dt=tt.getTokenOffset();if(zt(),tt.getToken()===2){Ke&&Jt(vt("TrailingComma","Trailing comma"),et.TrailingComma,dt,dt+1);continue}}else Ke&&xi(vt("ExpectedComma","Expected comma"),et.CommaExpected);var yt=ui(Be,Le);yt?Be.properties.push(yt):xi(vt("PropertyExpected","Property expected"),et.PropertyExpected,void 0,[],[2,5]),Ke=!0}return tt.getToken()!==2?xi(vt("ExpectedCloseBrace","Expected comma or closing brace"),et.CommaOrCloseBraceExpected,Be):ai(Be,!0)}}(Re)||Te(Re)||function(We){if(tt.getToken()===11){var Be=new ri(We,tt.getTokenOffset());if(tt.getTokenError()===0){var Le=tt.getTokenValue();try{var Ke=JSON.parse(Le);if(!q(Ke))return xi(vt("InvalidNumberFormat","Invalid number format."),et.Undefined,Be);Be.value=Ke}catch(dt){return xi(vt("InvalidNumberFormat","Invalid number format."),et.Undefined,Be)}Be.isInteger=Le.indexOf(".")===-1}return ai(Be,!0)}}(Re)||function(We){switch(tt.getToken()){case 7:return ai(new ze(We,tt.getTokenOffset()),!0);case 8:return ai(new st(We,!0,tt.getTokenOffset()),!0);case 9:return ai(new st(We,!1,tt.getTokenOffset()),!0);default:return}}(Re)}var ve=void 0;return zt()!==17&&((ve=Ee(ve))?tt.getToken()!==17&&xi(vt("End of file expected","End of file expected."),et.Undefined):xi(vt("Invalid symbol","Expected a JSON object, array or literal."),et.Undefined)),new Si(ve,ue,ot)}function xn(ye,le){var ue=ye.length-le.length;return ue>0?ye.lastIndexOf(le)===ue:ue===0&&ye===le}function un(ye){return ye.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}var bn=Oi(),Fn=function(){function ye(le,ue,qe,Ze){ue===void 0&&(ue=[]),qe===void 0&&(qe=Promise),Ze===void 0&&(Ze={}),this.schemaService=le,this.contributions=ue,this.promiseConstructor=qe,this.clientCapabilities=Ze}return ye.prototype.doResolve=function(le){for(var ue=this.contributions.length-1;ue>=0;ue--){var qe=this.contributions[ue].resolveCompletion;if(qe){var Ze=qe(le);if(Ze)return Ze}}return this.promiseConstructor.resolve(le)},ye.prototype.doComplete=function(le,ue,qe){var Ze=this,tt={items:[],isIncomplete:!1},ot=le.getText(),zt=le.offsetAt(ue),Jt=qe.getNodeFromOffset(zt,!0);if(this.isInComment(le,Jt?Jt.offset:0,zt))return Promise.resolve(tt);if(Jt&&zt===Jt.offset+Jt.length&&zt>0){var xi=ot[zt-1];(Jt.type==="object"&&xi==="}"||Jt.type==="array"&&xi==="]")&&(Jt=Jt.parent)}var Ei,ai=this.getCurrentWord(le,zt);if(!Jt||Jt.type!=="string"&&Jt.type!=="number"&&Jt.type!=="boolean"&&Jt.type!=="null"){var fi=zt-ai.length;fi>0&&ot[fi-1]==='"'&&fi--,Ei=f.create(le.positionAt(fi),ue)}else Ei=f.create(le.positionAt(Jt.offset),le.positionAt(Jt.offset+Jt.length));var ui={},Te={add:function(Ee){var ve=Ee.label,Re=ui[ve];if(Re)Re.documentation||(Re.documentation=Ee.documentation);else{if((ve=ve.replace(/[\n]/g,"\u21B5")).length>60){var We=ve.substr(0,57).trim()+"...";ui[We]||(ve=We)}Ei&&Ee.insertText!==void 0&&(Ee.textEdit=l.replace(Ei,Ee.insertText)),Ee.label=ve,ui[ve]=Ee,tt.items.push(Ee)}},setAsIncomplete:function(){tt.isIncomplete=!0},error:function(Ee){console.error(Ee)},log:function(Ee){console.log(Ee)},getNumberOfProposals:function(){return tt.items.length}};return this.schemaService.getSchemaForResource(le.uri,qe).then(function(Ee){var ve=[],Re=!0,We="",Be=void 0;if(Jt&&Jt.type==="string"){var Le=Jt.parent;Le&&Le.type==="property"&&Le.keyNode===Jt&&(Re=!Le.valueNode,Be=Le,We=ot.substr(Jt.offset+1,Jt.length-2),Le&&(Jt=Le.parent))}if(Jt&&Jt.type==="object"){if(Jt.offset===zt)return tt;Jt.properties.forEach(function(xt){Be&&Be===xt||(ui[xt.keyNode.value]=L.create("__"))});var Ke="";Re&&(Ke=Ze.evaluateSeparatorAfter(le,le.offsetAt(Ei.end))),Ee?Ze.getPropertyCompletions(Ee,qe,Jt,Re,Ke,Te):Ze.getSchemaLessPropertyCompletions(qe,Jt,We,Te);var dt=Et(Jt);Ze.contributions.forEach(function(xt){var Xt=xt.collectPropertyCompletions(le.uri,dt,ai,Re,Ke==="",Te);Xt&&ve.push(Xt)}),!Ee&&ai.length>0&&ot.charAt(zt-ai.length-1)!=='"'&&(Te.add({kind:he.Property,label:Ze.getLabelForValue(ai),insertText:Ze.getInsertTextForProperty(ai,void 0,!1,Ke),insertTextFormat:Ce.Snippet,documentation:""}),Te.setAsIncomplete())}var yt={};return Ee?Ze.getValueCompletions(Ee,qe,Jt,zt,le,Te,yt):Ze.getSchemaLessValueCompletions(qe,Jt,zt,le,Te),Ze.contributions.length>0&&Ze.getContributedValueCompletions(qe,Jt,zt,le,Te,ve),Ze.promiseConstructor.all(ve).then(function(){if(Te.getNumberOfProposals()===0){var xt=zt;!Jt||Jt.type!=="string"&&Jt.type!=="number"&&Jt.type!=="boolean"&&Jt.type!=="null"||(xt=Jt.offset+Jt.length);var Xt=Ze.evaluateSeparatorAfter(le,xt);Ze.addFillerValueCompletions(yt,Xt,Te)}return tt})})},ye.prototype.getPropertyCompletions=function(le,ue,qe,Ze,tt,ot){var zt=this;ue.getMatchingSchemas(le.schema,qe.offset).forEach(function(Jt){if(Jt.node===qe&&!Jt.inverted){var xi=Jt.schema.properties;xi&&Object.keys(xi).forEach(function(Te){var Ee=xi[Te];if(typeof Ee=="object"&&!Ee.deprecationMessage&&!Ee.doNotSuggest){var ve={kind:he.Property,label:Te,insertText:zt.getInsertTextForProperty(Te,Ee,Ze,tt),insertTextFormat:Ce.Snippet,filterText:zt.getFilterTextForValue(Te),documentation:zt.fromMarkup(Ee.markdownDescription)||Ee.description||""};Ee.suggestSortText!==void 0&&(ve.sortText=Ee.suggestSortText),ve.insertText&&xn(ve.insertText,"$1"+tt)&&(ve.command={title:"Suggest",command:"editor.action.triggerSuggest"}),ot.add(ve)}});var Ei=Jt.schema.propertyNames;if(typeof Ei=="object"&&!Ei.deprecationMessage&&!Ei.doNotSuggest){var ai=function(Te,Ee){Ee===void 0&&(Ee=void 0);var ve={kind:he.Property,label:Te,insertText:zt.getInsertTextForProperty(Te,void 0,Ze,tt),insertTextFormat:Ce.Snippet,filterText:zt.getFilterTextForValue(Te),documentation:Ee||zt.fromMarkup(Ei.markdownDescription)||Ei.description||""};Ei.suggestSortText!==void 0&&(ve.sortText=Ei.suggestSortText),ve.insertText&&xn(ve.insertText,"$1"+tt)&&(ve.command={title:"Suggest",command:"editor.action.triggerSuggest"}),ot.add(ve)};if(Ei.enum)for(var fi=0;fi<Ei.enum.length;fi++){var ui=void 0;Ei.markdownEnumDescriptions&&fi<Ei.markdownEnumDescriptions.length?ui=zt.fromMarkup(Ei.markdownEnumDescriptions[fi]):Ei.enumDescriptions&&fi<Ei.enumDescriptions.length&&(ui=Ei.enumDescriptions[fi]),ai(Ei.enum[fi],ui)}Ei.const&&ai(Ei.const)}}})},ye.prototype.getSchemaLessPropertyCompletions=function(le,ue,qe,Ze){var tt=this,ot=function(Jt){Jt.properties.forEach(function(xi){var Ei=xi.keyNode.value;Ze.add({kind:he.Property,label:Ei,insertText:tt.getInsertTextForValue(Ei,""),insertTextFormat:Ce.Snippet,filterText:tt.getFilterTextForValue(Ei),documentation:""})})};if(ue.parent)if(ue.parent.type==="property"){var zt=ue.parent.keyNode.value;le.visit(function(Jt){return Jt.type==="property"&&Jt!==ue.parent&&Jt.keyNode.value===zt&&Jt.valueNode&&Jt.valueNode.type==="object"&&ot(Jt.valueNode),!0})}else ue.parent.type==="array"&&ue.parent.items.forEach(function(Jt){Jt.type==="object"&&Jt!==ue&&ot(Jt)});else ue.type==="object"&&Ze.add({kind:he.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Ce.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},ye.prototype.getSchemaLessValueCompletions=function(le,ue,qe,Ze,tt){var ot=this,zt=qe;if(!ue||ue.type!=="string"&&ue.type!=="number"&&ue.type!=="boolean"&&ue.type!=="null"||(zt=ue.offset+ue.length,ue=ue.parent),!ue)return tt.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Ce.Snippet,documentation:""}),void tt.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Ce.Snippet,documentation:""});var Jt=this.evaluateSeparatorAfter(Ze,zt),xi=function(ui){ui.parent&&!si(ui.parent,qe,!0)&&tt.add({kind:ot.getSuggestionKind(ui.type),label:ot.getLabelTextForMatchingNode(ui,Ze),insertText:ot.getInsertTextForMatchingNode(ui,Ze,Jt),insertTextFormat:Ce.Snippet,documentation:""}),ui.type==="boolean"&&ot.addBooleanValueCompletion(!ui.value,Jt,tt)};if(ue.type==="property"&&qe>(ue.colonOffset||0)){var Ei=ue.valueNode;if(Ei&&(qe>Ei.offset+Ei.length||Ei.type==="object"||Ei.type==="array"))return;var ai=ue.keyNode.value;le.visit(function(ui){return ui.type==="property"&&ui.keyNode.value===ai&&ui.valueNode&&xi(ui.valueNode),!0}),ai==="$schema"&&ue.parent&&!ue.parent.parent&&this.addDollarSchemaCompletions(Jt,tt)}if(ue.type==="array")if(ue.parent&&ue.parent.type==="property"){var fi=ue.parent.keyNode.value;le.visit(function(ui){return ui.type==="property"&&ui.keyNode.value===fi&&ui.valueNode&&ui.valueNode.type==="array"&&ui.valueNode.items.forEach(xi),!0})}else ue.items.forEach(xi)},ye.prototype.getValueCompletions=function(le,ue,qe,Ze,tt,ot,zt){var Jt=Ze,xi=void 0,Ei=void 0;if(!qe||qe.type!=="string"&&qe.type!=="number"&&qe.type!=="boolean"&&qe.type!=="null"||(Jt=qe.offset+qe.length,Ei=qe,qe=qe.parent),qe){if(qe.type==="property"&&Ze>(qe.colonOffset||0)){var ai=qe.valueNode;if(ai&&Ze>ai.offset+ai.length)return;xi=qe.keyNode.value,qe=qe.parent}if(qe&&(xi!==void 0||qe.type==="array")){for(var fi=this.evaluateSeparatorAfter(tt,Jt),ui=0,Te=ue.getMatchingSchemas(le.schema,qe.offset,Ei);ui<Te.length;ui++){var Ee=Te[ui];if(Ee.node===qe&&!Ee.inverted&&Ee.schema){if(qe.type==="array"&&Ee.schema.items)if(Array.isArray(Ee.schema.items)){var ve=this.findItemAtOffset(qe,tt,Ze);ve<Ee.schema.items.length&&this.addSchemaValueCompletions(Ee.schema.items[ve],fi,ot,zt)}else this.addSchemaValueCompletions(Ee.schema.items,fi,ot,zt);if(xi!==void 0){var Re=!1;if(Ee.schema.properties&&(Ke=Ee.schema.properties[xi])&&(Re=!0,this.addSchemaValueCompletions(Ke,fi,ot,zt)),Ee.schema.patternProperties&&!Re)for(var We=0,Be=Object.keys(Ee.schema.patternProperties);We<Be.length;We++){var Le=Be[We];if(new RegExp(Le).test(xi)){Re=!0;var Ke=Ee.schema.patternProperties[Le];this.addSchemaValueCompletions(Ke,fi,ot,zt)}}Ee.schema.additionalProperties&&!Re&&(Ke=Ee.schema.additionalProperties,this.addSchemaValueCompletions(Ke,fi,ot,zt))}}}xi!=="$schema"||qe.parent||this.addDollarSchemaCompletions(fi,ot),zt.boolean&&(this.addBooleanValueCompletion(!0,fi,ot),this.addBooleanValueCompletion(!1,fi,ot)),zt.null&&this.addNullValueCompletion(fi,ot)}}else this.addSchemaValueCompletions(le.schema,"",ot,zt)},ye.prototype.getContributedValueCompletions=function(le,ue,qe,Ze,tt,ot){if(ue){if(ue.type!=="string"&&ue.type!=="number"&&ue.type!=="boolean"&&ue.type!=="null"||(ue=ue.parent),ue&&ue.type==="property"&&qe>(ue.colonOffset||0)){var zt=ue.keyNode.value,Jt=ue.valueNode;if((!Jt||qe<=Jt.offset+Jt.length)&&ue.parent){var xi=Et(ue.parent);this.contributions.forEach(function(Ei){var ai=Ei.collectValueCompletions(Ze.uri,xi,zt,tt);ai&&ot.push(ai)})}}}else this.contributions.forEach(function(Ei){var ai=Ei.collectDefaultCompletions(Ze.uri,tt);ai&&ot.push(ai)})},ye.prototype.addSchemaValueCompletions=function(le,ue,qe,Ze){var tt=this;typeof le=="object"&&(this.addEnumValueCompletions(le,ue,qe),this.addDefaultValueCompletions(le,ue,qe),this.collectTypes(le,Ze),Array.isArray(le.allOf)&&le.allOf.forEach(function(ot){return tt.addSchemaValueCompletions(ot,ue,qe,Ze)}),Array.isArray(le.anyOf)&&le.anyOf.forEach(function(ot){return tt.addSchemaValueCompletions(ot,ue,qe,Ze)}),Array.isArray(le.oneOf)&&le.oneOf.forEach(function(ot){return tt.addSchemaValueCompletions(ot,ue,qe,Ze)}))},ye.prototype.addDefaultValueCompletions=function(le,ue,qe,Ze){var tt=this;Ze===void 0&&(Ze=0);var ot=!1;if(B(le.default)){for(var zt=le.type,Jt=le.default,xi=Ze;xi>0;xi--)Jt=[Jt],zt="array";qe.add({kind:this.getSuggestionKind(zt),label:this.getLabelForValue(Jt),insertText:this.getInsertTextForValue(Jt,ue),insertTextFormat:Ce.Snippet,detail:bn("json.suggest.default","Default value")}),ot=!0}Array.isArray(le.examples)&&le.examples.forEach(function(Ei){for(var ai=le.type,fi=Ei,ui=Ze;ui>0;ui--)fi=[fi],ai="array";qe.add({kind:tt.getSuggestionKind(ai),label:tt.getLabelForValue(fi),insertText:tt.getInsertTextForValue(fi,ue),insertTextFormat:Ce.Snippet}),ot=!0}),Array.isArray(le.defaultSnippets)&&le.defaultSnippets.forEach(function(Ei){var ai,fi,ui=le.type,Te=Ei.body,Ee=Ei.label;if(B(Te)){le.type;for(var ve=Ze;ve>0;ve--)Te=[Te];ai=tt.getInsertTextForSnippetValue(Te,ue),fi=tt.getFilterTextForSnippetValue(Te),Ee=Ee||tt.getLabelForSnippetValue(Te)}else{if(typeof Ei.bodyText!="string")return;var Re="",We="",Be="";for(ve=Ze;ve>0;ve--)Re=Re+Be+`[ `,We=We+` `+Be+"]",Be+=" ",ui="array";ai=Re+Be+Ei.bodyText.split(` `).join(` -`+Be)+We+ue,Ee=Ee||ai,fi=ai.replace(/[\n]/g,"")}qe.add({kind:tt.getSuggestionKind(ui),label:Ee,documentation:tt.fromMarkup(Ei.markdownDescription)||Ei.description,insertText:ai,insertTextFormat:Ce.Snippet,filterText:fi}),rt=!0}),!rt&&typeof le.items=="object"&&!Array.isArray(le.items)&&Ze<5&&this.addDefaultValueCompletions(le.items,ue,qe,Ze+1)},ye.prototype.addEnumValueCompletions=function(le,ue,qe){if(B(le.const)&&qe.add({kind:this.getSuggestionKind(le.type),label:this.getLabelForValue(le.const),insertText:this.getInsertTextForValue(le.const,ue),insertTextFormat:Ce.Snippet,documentation:this.fromMarkup(le.markdownDescription)||le.description}),Array.isArray(le.enum))for(var Ze=0,tt=le.enum.length;Ze<tt;Ze++){var rt=le.enum[Ze],zt=this.fromMarkup(le.markdownDescription)||le.description;le.markdownEnumDescriptions&&Ze<le.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?zt=this.fromMarkup(le.markdownEnumDescriptions[Ze]):le.enumDescriptions&&Ze<le.enumDescriptions.length&&(zt=le.enumDescriptions[Ze]),qe.add({kind:this.getSuggestionKind(le.type),label:this.getLabelForValue(rt),insertText:this.getInsertTextForValue(rt,ue),insertTextFormat:Ce.Snippet,documentation:zt})}},ye.prototype.collectTypes=function(le,ue){if(!Array.isArray(le.enum)&&!B(le.const)){var qe=le.type;Array.isArray(qe)?qe.forEach(function(Ze){return ue[Ze]=!0}):qe&&(ue[qe]=!0)}},ye.prototype.addFillerValueCompletions=function(le,ue,qe){le.object&&qe.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},ue),insertTextFormat:Ce.Snippet,detail:bn("defaults.object","New object"),documentation:""}),le.array&&qe.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],ue),insertTextFormat:Ce.Snippet,detail:bn("defaults.array","New array"),documentation:""})},ye.prototype.addBooleanValueCompletion=function(le,ue,qe){qe.add({kind:this.getSuggestionKind("boolean"),label:le?"true":"false",insertText:this.getInsertTextForValue(le,ue),insertTextFormat:Ce.Snippet,documentation:""})},ye.prototype.addNullValueCompletion=function(le,ue){ue.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+le,insertTextFormat:Ce.Snippet,documentation:""})},ye.prototype.addDollarSchemaCompletions=function(le,ue){var qe=this;this.schemaService.getRegisteredSchemaIds(function(Ze){return Ze==="http"||Ze==="https"}).forEach(function(Ze){return ue.add({kind:he.Module,label:qe.getLabelForValue(Ze),filterText:qe.getFilterTextForValue(Ze),insertText:qe.getInsertTextForValue(Ze,le),insertTextFormat:Ce.Snippet,documentation:""})})},ye.prototype.getLabelForValue=function(le){return JSON.stringify(le)},ye.prototype.getFilterTextForValue=function(le){return JSON.stringify(le)},ye.prototype.getFilterTextForSnippetValue=function(le){return JSON.stringify(le).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},ye.prototype.getLabelForSnippetValue=function(le){return JSON.stringify(le).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},ye.prototype.getInsertTextForPlainText=function(le){return le.replace(/[\\\$\}]/g,"\\$&")},ye.prototype.getInsertTextForValue=function(le,ue){var qe=JSON.stringify(le,null," ");return qe==="{}"?"{$1}"+ue:qe==="[]"?"[$1]"+ue:this.getInsertTextForPlainText(qe+ue)},ye.prototype.getInsertTextForSnippetValue=function(le,ue){return function qe(Ze,tt,rt){if(Ze!==null&&typeof Ze=="object"){var zt=tt+" ";if(Array.isArray(Ze)){if(Ze.length===0)return"[]";for(var Jt=`[ -`,xi=0;xi<Ze.length;xi++)Jt+=zt+qe(Ze[xi],zt,rt),xi<Ze.length-1&&(Jt+=","),Jt+=` +`+Be)+We+ue,Ee=Ee||ai,fi=ai.replace(/[\n]/g,"")}qe.add({kind:tt.getSuggestionKind(ui),label:Ee,documentation:tt.fromMarkup(Ei.markdownDescription)||Ei.description,insertText:ai,insertTextFormat:Ce.Snippet,filterText:fi}),ot=!0}),!ot&&typeof le.items=="object"&&!Array.isArray(le.items)&&Ze<5&&this.addDefaultValueCompletions(le.items,ue,qe,Ze+1)},ye.prototype.addEnumValueCompletions=function(le,ue,qe){if(B(le.const)&&qe.add({kind:this.getSuggestionKind(le.type),label:this.getLabelForValue(le.const),insertText:this.getInsertTextForValue(le.const,ue),insertTextFormat:Ce.Snippet,documentation:this.fromMarkup(le.markdownDescription)||le.description}),Array.isArray(le.enum))for(var Ze=0,tt=le.enum.length;Ze<tt;Ze++){var ot=le.enum[Ze],zt=this.fromMarkup(le.markdownDescription)||le.description;le.markdownEnumDescriptions&&Ze<le.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?zt=this.fromMarkup(le.markdownEnumDescriptions[Ze]):le.enumDescriptions&&Ze<le.enumDescriptions.length&&(zt=le.enumDescriptions[Ze]),qe.add({kind:this.getSuggestionKind(le.type),label:this.getLabelForValue(ot),insertText:this.getInsertTextForValue(ot,ue),insertTextFormat:Ce.Snippet,documentation:zt})}},ye.prototype.collectTypes=function(le,ue){if(!Array.isArray(le.enum)&&!B(le.const)){var qe=le.type;Array.isArray(qe)?qe.forEach(function(Ze){return ue[Ze]=!0}):qe&&(ue[qe]=!0)}},ye.prototype.addFillerValueCompletions=function(le,ue,qe){le.object&&qe.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},ue),insertTextFormat:Ce.Snippet,detail:bn("defaults.object","New object"),documentation:""}),le.array&&qe.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],ue),insertTextFormat:Ce.Snippet,detail:bn("defaults.array","New array"),documentation:""})},ye.prototype.addBooleanValueCompletion=function(le,ue,qe){qe.add({kind:this.getSuggestionKind("boolean"),label:le?"true":"false",insertText:this.getInsertTextForValue(le,ue),insertTextFormat:Ce.Snippet,documentation:""})},ye.prototype.addNullValueCompletion=function(le,ue){ue.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+le,insertTextFormat:Ce.Snippet,documentation:""})},ye.prototype.addDollarSchemaCompletions=function(le,ue){var qe=this;this.schemaService.getRegisteredSchemaIds(function(Ze){return Ze==="http"||Ze==="https"}).forEach(function(Ze){return ue.add({kind:he.Module,label:qe.getLabelForValue(Ze),filterText:qe.getFilterTextForValue(Ze),insertText:qe.getInsertTextForValue(Ze,le),insertTextFormat:Ce.Snippet,documentation:""})})},ye.prototype.getLabelForValue=function(le){return JSON.stringify(le)},ye.prototype.getFilterTextForValue=function(le){return JSON.stringify(le)},ye.prototype.getFilterTextForSnippetValue=function(le){return JSON.stringify(le).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},ye.prototype.getLabelForSnippetValue=function(le){return JSON.stringify(le).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},ye.prototype.getInsertTextForPlainText=function(le){return le.replace(/[\\\$\}]/g,"\\$&")},ye.prototype.getInsertTextForValue=function(le,ue){var qe=JSON.stringify(le,null," ");return qe==="{}"?"{$1}"+ue:qe==="[]"?"[$1]"+ue:this.getInsertTextForPlainText(qe+ue)},ye.prototype.getInsertTextForSnippetValue=function(le,ue){return function qe(Ze,tt,ot){if(Ze!==null&&typeof Ze=="object"){var zt=tt+" ";if(Array.isArray(Ze)){if(Ze.length===0)return"[]";for(var Jt=`[ +`,xi=0;xi<Ze.length;xi++)Jt+=zt+qe(Ze[xi],zt,ot),xi<Ze.length-1&&(Jt+=","),Jt+=` `;return Jt+=tt+"]"}var Ei=Object.keys(Ze);if(Ei.length===0)return"{}";for(Jt=`{ -`,xi=0;xi<Ei.length;xi++){var ai=Ei[xi];Jt+=zt+JSON.stringify(ai)+": "+qe(Ze[ai],zt,rt),xi<Ei.length-1&&(Jt+=","),Jt+=` -`}return Jt+=tt+"}"}return rt(Ze)}(le,"",function(qe){return typeof qe=="string"&&qe[0]==="^"?qe.substr(1):JSON.stringify(qe)})+ue},ye.prototype.getInsertTextForGuessedValue=function(le,ue){switch(typeof le){case"object":return le===null?"${1:null}"+ue:this.getInsertTextForValue(le,ue);case"string":var qe=JSON.stringify(le);return qe=qe.substr(1,qe.length-2),'"${1:'+(qe=this.getInsertTextForPlainText(qe))+'}"'+ue;case"number":case"boolean":return"${1:"+JSON.stringify(le)+"}"+ue}return this.getInsertTextForValue(le,ue)},ye.prototype.getSuggestionKind=function(le){if(Array.isArray(le)){var ue=le;le=ue.length>0?ue[0]:void 0}if(!le)return he.Value;switch(le){case"string":return he.Value;case"object":return he.Module;case"property":return he.Property;default:return he.Value}},ye.prototype.getLabelTextForMatchingNode=function(le,ue){switch(le.type){case"array":return"[]";case"object":return"{}";default:return ue.getText().substr(le.offset,le.length)}},ye.prototype.getInsertTextForMatchingNode=function(le,ue,qe){switch(le.type){case"array":return this.getInsertTextForValue([],qe);case"object":return this.getInsertTextForValue({},qe);default:var Ze=ue.getText().substr(le.offset,le.length)+qe;return this.getInsertTextForPlainText(Ze)}},ye.prototype.getInsertTextForProperty=function(le,ue,qe,Ze){var tt=this.getInsertTextForValue(le,"");if(!qe)return tt;var rt,zt=tt+": ",Jt=0;if(ue){if(Array.isArray(ue.defaultSnippets)){if(ue.defaultSnippets.length===1){var xi=ue.defaultSnippets[0].body;B(xi)&&(rt=this.getInsertTextForSnippetValue(xi,""))}Jt+=ue.defaultSnippets.length}if(ue.enum&&(rt||ue.enum.length!==1||(rt=this.getInsertTextForGuessedValue(ue.enum[0],"")),Jt+=ue.enum.length),B(ue.default)&&(rt||(rt=this.getInsertTextForGuessedValue(ue.default,"")),Jt++),Array.isArray(ue.examples)&&ue.examples.length&&(rt||(rt=this.getInsertTextForGuessedValue(ue.examples[0],"")),Jt+=ue.examples.length),Jt===0){var Ei=Array.isArray(ue.type)?ue.type[0]:ue.type;switch(Ei||(ue.properties?Ei="object":ue.items&&(Ei="array")),Ei){case"boolean":rt="$1";break;case"string":rt='"$1"';break;case"object":rt="{$1}";break;case"array":rt="[$1]";break;case"number":case"integer":rt="${1:0}";break;case"null":rt="${1:null}";break;default:return tt}}}return(!rt||Jt>1)&&(rt="$1"),zt+rt+Ze},ye.prototype.getCurrentWord=function(le,ue){for(var qe=ue-1,Ze=le.getText();qe>=0&&` -\r\v":{[,]}`.indexOf(Ze.charAt(qe))===-1;)qe--;return Ze.substring(qe+1,ue)},ye.prototype.evaluateSeparatorAfter=function(le,ue){var qe=ie.a(le.getText(),!0);switch(qe.setPosition(ue),qe.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},ye.prototype.findItemAtOffset=function(le,ue,qe){for(var Ze=ie.a(ue.getText(),!0),tt=le.items,rt=tt.length-1;rt>=0;rt--){var zt=tt[rt];if(qe>zt.offset+zt.length)return Ze.setPosition(zt.offset+zt.length),Ze.scan()===5&&qe>=Ze.getTokenOffset()+Ze.getTokenLength()?rt+1:rt;if(qe>=zt.offset)return rt}return 0},ye.prototype.isInComment=function(le,ue,qe){var Ze=ie.a(le.getText(),!1);Ze.setPosition(ue);for(var tt=Ze.scan();tt!==17&&Ze.getTokenOffset()+Ze.getTokenLength()<qe;)tt=Ze.scan();return(tt===12||tt===13)&&Ze.getTokenOffset()<=qe},ye.prototype.fromMarkup=function(le){if(le&&this.doesSupportMarkdown())return{kind:Z.Markdown,value:le}},ye.prototype.doesSupportMarkdown=function(){if(!B(this.supportsMarkdown)){var le=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=le&&le.completionItem&&Array.isArray(le.completionItem.documentationFormat)&&le.completionItem.documentationFormat.indexOf(Z.Markdown)!==-1}return this.supportsMarkdown},ye.prototype.doesSupportsCommitCharacters=function(){if(!B(this.supportsCommitCharacters)){var le=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=le&&le.completionItem&&!!le.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},ye}(),Mn=function(){function ye(le,ue,qe){ue===void 0&&(ue=[]),this.schemaService=le,this.contributions=ue,this.promise=qe||Promise}return ye.prototype.doHover=function(le,ue,qe){var Ze=le.offsetAt(ue),tt=qe.getNodeFromOffset(Ze);if(!tt||(tt.type==="object"||tt.type==="array")&&Ze>tt.offset+1&&Ze<tt.offset+tt.length-1)return this.promise.resolve(null);var rt=tt;if(tt.type==="string"){var zt=tt.parent;if(zt&&zt.type==="property"&&zt.keyNode===tt&&!(tt=zt.valueNode))return this.promise.resolve(null)}for(var Jt=f.create(le.positionAt(rt.offset),le.positionAt(rt.offset+rt.length)),xi=function(ui){return{contents:ui,range:Jt}},Ei=Et(tt),ai=this.contributions.length-1;ai>=0;ai--){var fi=this.contributions[ai].getInfoContribution(le.uri,Ei);if(fi)return fi.then(function(ui){return xi(ui)})}return this.schemaService.getSchemaForResource(le.uri,qe).then(function(ui){if(ui&&tt){var Te=qe.getMatchingSchemas(ui.schema,tt.offset),Ee=void 0,ve=void 0,Re=void 0,We=void 0;Te.every(function(Le){if(Le.node===tt&&!Le.inverted&&Le.schema&&(Ee=Ee||Le.schema.title,ve=ve||Le.schema.markdownDescription||Nn(Le.schema.description),Le.schema.enum)){var Ke=Le.schema.enum.indexOf(kt(tt));Le.schema.markdownEnumDescriptions?Re=Le.schema.markdownEnumDescriptions[Ke]:Le.schema.enumDescriptions&&(Re=Nn(Le.schema.enumDescriptions[Ke])),Re&&typeof(We=Le.schema.enum[Ke])!="string"&&(We=JSON.stringify(We))}return!0});var Be="";return Ee&&(Be=Nn(Ee)),ve&&(Be.length>0&&(Be+=` +`,xi=0;xi<Ei.length;xi++){var ai=Ei[xi];Jt+=zt+JSON.stringify(ai)+": "+qe(Ze[ai],zt,ot),xi<Ei.length-1&&(Jt+=","),Jt+=` +`}return Jt+=tt+"}"}return ot(Ze)}(le,"",function(qe){return typeof qe=="string"&&qe[0]==="^"?qe.substr(1):JSON.stringify(qe)})+ue},ye.prototype.getInsertTextForGuessedValue=function(le,ue){switch(typeof le){case"object":return le===null?"${1:null}"+ue:this.getInsertTextForValue(le,ue);case"string":var qe=JSON.stringify(le);return qe=qe.substr(1,qe.length-2),'"${1:'+(qe=this.getInsertTextForPlainText(qe))+'}"'+ue;case"number":case"boolean":return"${1:"+JSON.stringify(le)+"}"+ue}return this.getInsertTextForValue(le,ue)},ye.prototype.getSuggestionKind=function(le){if(Array.isArray(le)){var ue=le;le=ue.length>0?ue[0]:void 0}if(!le)return he.Value;switch(le){case"string":return he.Value;case"object":return he.Module;case"property":return he.Property;default:return he.Value}},ye.prototype.getLabelTextForMatchingNode=function(le,ue){switch(le.type){case"array":return"[]";case"object":return"{}";default:return ue.getText().substr(le.offset,le.length)}},ye.prototype.getInsertTextForMatchingNode=function(le,ue,qe){switch(le.type){case"array":return this.getInsertTextForValue([],qe);case"object":return this.getInsertTextForValue({},qe);default:var Ze=ue.getText().substr(le.offset,le.length)+qe;return this.getInsertTextForPlainText(Ze)}},ye.prototype.getInsertTextForProperty=function(le,ue,qe,Ze){var tt=this.getInsertTextForValue(le,"");if(!qe)return tt;var ot,zt=tt+": ",Jt=0;if(ue){if(Array.isArray(ue.defaultSnippets)){if(ue.defaultSnippets.length===1){var xi=ue.defaultSnippets[0].body;B(xi)&&(ot=this.getInsertTextForSnippetValue(xi,""))}Jt+=ue.defaultSnippets.length}if(ue.enum&&(ot||ue.enum.length!==1||(ot=this.getInsertTextForGuessedValue(ue.enum[0],"")),Jt+=ue.enum.length),B(ue.default)&&(ot||(ot=this.getInsertTextForGuessedValue(ue.default,"")),Jt++),Array.isArray(ue.examples)&&ue.examples.length&&(ot||(ot=this.getInsertTextForGuessedValue(ue.examples[0],"")),Jt+=ue.examples.length),Jt===0){var Ei=Array.isArray(ue.type)?ue.type[0]:ue.type;switch(Ei||(ue.properties?Ei="object":ue.items&&(Ei="array")),Ei){case"boolean":ot="$1";break;case"string":ot='"$1"';break;case"object":ot="{$1}";break;case"array":ot="[$1]";break;case"number":case"integer":ot="${1:0}";break;case"null":ot="${1:null}";break;default:return tt}}}return(!ot||Jt>1)&&(ot="$1"),zt+ot+Ze},ye.prototype.getCurrentWord=function(le,ue){for(var qe=ue-1,Ze=le.getText();qe>=0&&` +\r\v":{[,]}`.indexOf(Ze.charAt(qe))===-1;)qe--;return Ze.substring(qe+1,ue)},ye.prototype.evaluateSeparatorAfter=function(le,ue){var qe=ie.a(le.getText(),!0);switch(qe.setPosition(ue),qe.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},ye.prototype.findItemAtOffset=function(le,ue,qe){for(var Ze=ie.a(ue.getText(),!0),tt=le.items,ot=tt.length-1;ot>=0;ot--){var zt=tt[ot];if(qe>zt.offset+zt.length)return Ze.setPosition(zt.offset+zt.length),Ze.scan()===5&&qe>=Ze.getTokenOffset()+Ze.getTokenLength()?ot+1:ot;if(qe>=zt.offset)return ot}return 0},ye.prototype.isInComment=function(le,ue,qe){var Ze=ie.a(le.getText(),!1);Ze.setPosition(ue);for(var tt=Ze.scan();tt!==17&&Ze.getTokenOffset()+Ze.getTokenLength()<qe;)tt=Ze.scan();return(tt===12||tt===13)&&Ze.getTokenOffset()<=qe},ye.prototype.fromMarkup=function(le){if(le&&this.doesSupportMarkdown())return{kind:Z.Markdown,value:le}},ye.prototype.doesSupportMarkdown=function(){if(!B(this.supportsMarkdown)){var le=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=le&&le.completionItem&&Array.isArray(le.completionItem.documentationFormat)&&le.completionItem.documentationFormat.indexOf(Z.Markdown)!==-1}return this.supportsMarkdown},ye.prototype.doesSupportsCommitCharacters=function(){if(!B(this.supportsCommitCharacters)){var le=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=le&&le.completionItem&&!!le.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},ye}(),Mn=function(){function ye(le,ue,qe){ue===void 0&&(ue=[]),this.schemaService=le,this.contributions=ue,this.promise=qe||Promise}return ye.prototype.doHover=function(le,ue,qe){var Ze=le.offsetAt(ue),tt=qe.getNodeFromOffset(Ze);if(!tt||(tt.type==="object"||tt.type==="array")&&Ze>tt.offset+1&&Ze<tt.offset+tt.length-1)return this.promise.resolve(null);var ot=tt;if(tt.type==="string"){var zt=tt.parent;if(zt&&zt.type==="property"&&zt.keyNode===tt&&!(tt=zt.valueNode))return this.promise.resolve(null)}for(var Jt=f.create(le.positionAt(ot.offset),le.positionAt(ot.offset+ot.length)),xi=function(ui){return{contents:ui,range:Jt}},Ei=Et(tt),ai=this.contributions.length-1;ai>=0;ai--){var fi=this.contributions[ai].getInfoContribution(le.uri,Ei);if(fi)return fi.then(function(ui){return xi(ui)})}return this.schemaService.getSchemaForResource(le.uri,qe).then(function(ui){if(ui&&tt){var Te=qe.getMatchingSchemas(ui.schema,tt.offset),Ee=void 0,ve=void 0,Re=void 0,We=void 0;Te.every(function(Le){if(Le.node===tt&&!Le.inverted&&Le.schema&&(Ee=Ee||Le.schema.title,ve=ve||Le.schema.markdownDescription||Nn(Le.schema.description),Le.schema.enum)){var Ke=Le.schema.enum.indexOf(kt(tt));Le.schema.markdownEnumDescriptions?Re=Le.schema.markdownEnumDescriptions[Ke]:Le.schema.enumDescriptions&&(Re=Nn(Le.schema.enumDescriptions[Ke])),Re&&typeof(We=Le.schema.enum[Ke])!="string"&&(We=JSON.stringify(We))}return!0});var Be="";return Ee&&(Be=Nn(Ee)),ve&&(Be.length>0&&(Be+=` `),Be+=ve),Re&&(Be.length>0&&(Be+=` `),Be+="`"+function(Le){return Le.indexOf("`")!==-1?"`` "+Le+" ``":Le}(We)+"`: "+Re),xi([Be])}return null})},ye}();function Nn(ye){if(ye)return ye.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1 -$3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Hn=o(140),Jn=Di(),_o=function(){function ye(le,ue){this.patternRegExps=[],this.isInclude=[];try{for(var qe=0,Ze=le;qe<Ze.length;qe++){var tt=Ze[qe],rt=tt[0]!=="!";rt||(tt=tt.substring(1)),this.patternRegExps.push(new RegExp(un(tt)+"$")),this.isInclude.push(rt)}this.uris=ue}catch(zt){this.patternRegExps.length=0,this.isInclude.length=0,this.uris=[]}}return ye.prototype.matchesPattern=function(le){for(var ue=!1,qe=0;qe<this.patternRegExps.length;qe++)this.patternRegExps[qe].test(le)&&(ue=this.isInclude[qe]);return ue},ye.prototype.getURIs=function(){return this.uris},ye}(),pn=function(){function ye(le,ue,qe){this.service=le,this.url=ue,this.dependencies={},qe&&(this.unresolvedSchema=this.service.promise.resolve(new Gn(qe)))}return ye.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},ye.prototype.getResolvedSchema=function(){var le=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(ue){return le.service.resolveSchemaContent(ue,le.url,le.dependencies)})),this.resolvedSchema},ye.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},ye}(),Gn=function(ye,le){le===void 0&&(le=[]),this.schema=ye,this.errors=le},on=function(){function ye(le,ue){ue===void 0&&(ue=[]),this.schema=le,this.errors=ue}return ye.prototype.getSection=function(le){var ue=this.getSectionRecursive(le,this.schema);if(ue)return Ri(ue)},ye.prototype.getSectionRecursive=function(le,ue){if(!ue||typeof ue=="boolean"||le.length===0)return ue;var qe=le.shift();if(ue.properties&&(ue.properties[qe],1))return this.getSectionRecursive(le,ue.properties[qe]);if(ue.patternProperties)for(var Ze=0,tt=Object.keys(ue.patternProperties);Ze<tt.length;Ze++){var rt=tt[Ze];if(new RegExp(rt).test(qe))return this.getSectionRecursive(le,ue.patternProperties[rt])}else{if(typeof ue.additionalProperties=="object")return this.getSectionRecursive(le,ue.additionalProperties);if(qe.match("[0-9]+")){if(Array.isArray(ue.items)){var zt=parseInt(qe,10);if(!isNaN(zt)&&ue.items[zt])return this.getSectionRecursive(le,ue.items[zt])}else if(ue.items)return this.getSectionRecursive(le,ue.items)}}},ye}(),ho=function(){function ye(le,ue,qe){this.contextService=ue,this.requestService=le,this.promiseConstructor=qe||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return ye.prototype.getRegisteredSchemaIds=function(le){return Object.keys(this.registeredSchemasIds).filter(function(ue){var qe=Hn.a.parse(ue).scheme;return qe!=="schemaservice"&&(!le||le(qe))})},Object.defineProperty(ye.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),ye.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},ye.prototype.onResourceChange=function(le){for(var ue=this,qe=!1,Ze=[le=Dn(le)],tt=Object.keys(this.schemasById).map(function(xi){return ue.schemasById[xi]});Ze.length;)for(var rt=Ze.pop(),zt=0;zt<tt.length;zt++){var Jt=tt[zt];Jt&&(Jt.url===rt||Jt.dependencies[rt])&&(Jt.url!==rt&&Ze.push(Jt.url),Jt.clearSchema(),tt[zt]=void 0,qe=!0)}return qe},ye.prototype.setSchemaContributions=function(le){if(le.schemas){var ue=le.schemas;for(var qe in ue){var Ze=Dn(qe);this.contributionSchemas[Ze]=this.addSchemaHandle(Ze,ue[qe])}}if(Array.isArray(le.schemaAssociations))for(var tt=0,rt=le.schemaAssociations;tt<rt.length;tt++){var zt=rt[tt],Jt=zt.uris.map(Dn),xi=this.addFilePatternAssociation(zt.pattern,Jt);this.contributionAssociations.push(xi)}},ye.prototype.addSchemaHandle=function(le,ue){var qe=new pn(this,le,ue);return this.schemasById[le]=qe,qe},ye.prototype.getOrAddSchemaHandle=function(le,ue){return this.schemasById[le]||this.addSchemaHandle(le,ue)},ye.prototype.addFilePatternAssociation=function(le,ue){var qe=new _o(le,ue);return this.filePatternAssociations.push(qe),qe},ye.prototype.registerExternalSchema=function(le,ue,qe){var Ze=Dn(le);return this.registeredSchemasIds[Ze]=!0,this.cachedSchemaForResource=void 0,ue&&this.addFilePatternAssociation(ue,[le]),qe?this.addSchemaHandle(Ze,qe):this.getOrAddSchemaHandle(Ze)},ye.prototype.clearExternalSchemas=function(){for(var le in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[le]=this.contributionSchemas[le],this.registeredSchemasIds[le]=!0;for(var ue=0,qe=this.contributionAssociations;ue<qe.length;ue++){var Ze=qe[ue];this.filePatternAssociations.push(Ze)}},ye.prototype.getResolvedSchema=function(le){var ue=Dn(le),qe=this.schemasById[ue];return qe?qe.getResolvedSchema():this.promise.resolve(void 0)},ye.prototype.loadSchema=function(le){if(!this.requestService){var ue=Jn("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",qt(le));return this.promise.resolve(new Gn({},[ue]))}return this.requestService(le).then(function(qe){if(!qe){var Ze=Jn("json.schema.nocontent","Unable to load schema from '{0}': No content.",qt(le));return new Gn({},[Ze])}var tt,rt=[];tt=ie.f(qe,rt);var zt=rt.length?[Jn("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",qt(le),rt[0].offset)]:[];return new Gn(tt,zt)},function(qe){var Ze=qe.toString(),tt=qe.toString().split("Error: ");return tt.length>1&&(Ze=tt[1]),xn(Ze,".")&&(Ze=Ze.substr(0,Ze.length-1)),new Gn({},[Jn("json.schema.nocontent","Unable to load schema from '{0}': {1}.",qt(le),Ze)])})},ye.prototype.resolveSchemaContent=function(le,ue,qe){var Ze=this,tt=le.errors.slice(0),rt=le.schema;if(rt.$schema){var zt=Dn(rt.$schema);if(zt==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new on({},[Jn("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));zt==="https://json-schema.org/draft/2019-09/schema"&&tt.push(Jn("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var Jt=this.contextService,xi=function(fi,ui,Te,Ee){var ve=Ee?decodeURIComponent(Ee):void 0,Re=function(Be,Le){if(!Le)return Be;var Ke=Be;return Le[0]==="/"&&(Le=Le.substr(1)),Le.split("/").some(function(dt){return!(Ke=Ke[dt])}),Ke}(ui,ve);if(Re)for(var We in Re)Re.hasOwnProperty(We)&&!fi.hasOwnProperty(We)&&(fi[We]=Re[We]);else tt.push(Jn("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",ve,Te))},Ei=function(fi,ui,Te,Ee,ve){Jt&&!/^\w+:\/\/.*/.test(ui)&&(ui=Jt.resolveRelativePath(ui,Ee)),ui=Dn(ui);var Re=Ze.getOrAddSchemaHandle(ui);return Re.getUnresolvedSchema().then(function(We){if(ve[ui]=!0,We.errors.length){var Be=Te?ui+"#"+Te:ui;tt.push(Jn("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Be,We.errors[0]))}return xi(fi,We.schema,ui,Te),ai(fi,We.schema,ui,Re.dependencies)})},ai=function(fi,ui,Te,Ee){if(!fi||typeof fi!="object")return Promise.resolve(null);for(var ve=[fi],Re=[],We=[],Be=function(Ke){for(var dt=[];Ke.$ref;){var yt=Ke.$ref,xt=yt.split("#",2);if(delete Ke.$ref,xt[0].length>0)return void We.push(Ei(Ke,xt[0],xt[1],Te,Ee));dt.indexOf(yt)===-1&&(xi(Ke,ui,Te,xt[1]),dt.push(yt))}(function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,ri=Xt;Yt<ri.length;Yt++){var qi=ri[Yt];typeof qi=="object"&&ve.push(qi)}})(Ke.items,Ke.additionalItems,Ke.additionalProperties,Ke.not,Ke.contains,Ke.propertyNames,Ke.if,Ke.then,Ke.else),function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,ri=Xt;Yt<ri.length;Yt++){var qi=ri[Yt];if(typeof qi=="object")for(var an in qi){var _n=an,ei=qi[_n];typeof ei=="object"&&ve.push(ei)}}}(Ke.definitions,Ke.properties,Ke.patternProperties,Ke.dependencies),function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,ri=Xt;Yt<ri.length;Yt++){var qi=ri[Yt];if(Array.isArray(qi))for(var an=0,_n=qi;an<_n.length;an++){var ei=_n[an];typeof ei=="object"&&ve.push(ei)}}}(Ke.anyOf,Ke.allOf,Ke.oneOf,Ke.items)};ve.length;){var Le=ve.pop();Re.indexOf(Le)>=0||(Re.push(Le),Be(Le))}return Ze.promise.all(We)};return ai(rt,rt,ue,qe).then(function(fi){return new on(rt,tt)})},ye.prototype.getSchemaForResource=function(le,ue){if(ue&&ue.root&&ue.root.type==="object"){var qe=ue.root.properties.filter(function(ve){return ve.keyNode.value==="$schema"&&ve.valueNode&&ve.valueNode.type==="string"});if(qe.length>0){var Ze=qe[0].valueNode;if(Ze&&Ze.type==="string"){var tt=kt(Ze);if(tt&&function(ve,Re){if(ve.length<Re.length)return!1;for(var We=0;We<Re.length;We++)if(ve[We]!==Re[We])return!1;return!0}(tt,".")&&this.contextService&&(tt=this.contextService.resolveRelativePath(tt,le)),tt){var rt=Dn(tt);return this.getOrAddSchemaHandle(rt).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===le)return this.cachedSchemaForResource.resolvedSchema;for(var zt=Object.create(null),Jt=[],xi=0,Ei=this.filePatternAssociations;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.matchesPattern(le))for(var fi=0,ui=ai.getURIs();fi<ui.length;fi++){var Te=ui[fi];zt[Te]||(Jt.push(Te),zt[Te]=!0)}}var Ee=Jt.length>0?this.createCombinedSchema(le,Jt).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:le,resolvedSchema:Ee},Ee},ye.prototype.createCombinedSchema=function(le,ue){if(ue.length===1)return this.getOrAddSchemaHandle(ue[0]);var qe="schemaservice://combinedSchema/"+encodeURIComponent(le),Ze={allOf:ue.map(function(tt){return{$ref:tt}})};return this.addSchemaHandle(qe,Ze)},ye.prototype.getMatchingSchemas=function(le,ue,qe){if(qe){var Ze=qe.id||"schemaservice://untitled/matchingSchemas/"+On++;return this.resolveSchemaContent(new Gn(qe),Ze,{}).then(function(tt){return ue.getMatchingSchemas(tt.schema).filter(function(rt){return!rt.inverted})})}return this.getSchemaForResource(le.uri,ue).then(function(tt){return tt?ue.getMatchingSchemas(tt.schema).filter(function(rt){return!rt.inverted}):[]})},ye}(),On=0;function Dn(ye){try{return Hn.a.parse(ye).toString()}catch(le){return ye}}function qt(ye){try{var le=Hn.a.parse(ye);if(le.scheme==="file")return le.fsPath}catch(ue){}return ye}var I=Di(),ne=function(){function ye(le,ue){this.jsonSchemaService=le,this.promise=ue,this.validationEnabled=!0}return ye.prototype.configure=function(le){le&&(this.validationEnabled=le.validate,this.commentSeverity=le.allowComments?void 0:S.Error)},ye.prototype.doValidation=function(le,ue,qe,Ze){var tt=this;if(!this.validationEnabled)return this.promise.resolve([]);var rt=[],zt={},Jt=function(ai){var fi=ai.range.start.line+" "+ai.range.start.character+" "+ai.message;zt[fi]||(zt[fi]=!0,rt.push(ai))},xi=function(ai){var fi=qe?Fe(qe.trailingCommas):S.Error,ui=qe?Fe(qe.comments):tt.commentSeverity;if(ai){if(ai.errors.length&&ue.root){var Te=ue.root,Ee=Te.type==="object"?Te.properties[0]:void 0;if(Ee&&Ee.keyNode.value==="$schema"){var ve=Ee.valueNode||Ee,Re=f.create(le.positionAt(ve.offset),le.positionAt(ve.offset+ve.length));Jt(V.create(Re,ai.errors[0],S.Warning,et.SchemaResolveError))}else Re=f.create(le.positionAt(Te.offset),le.positionAt(Te.offset+1)),Jt(V.create(Re,ai.errors[0],S.Warning,et.SchemaResolveError))}else{var We=ue.validate(le,ai.schema);We&&We.forEach(Jt)}(function yt(xt){if(xt&&typeof xt=="object"){if(se(xt.allowComments))return xt.allowComments;if(xt.allOf)for(var Xt=0,mi=xt.allOf;Xt<mi.length;Xt++){var Yt=mi[Xt],ri=yt(Yt);if(se(ri))return ri}}})(ai.schema)&&(ui=void 0),function yt(xt){if(xt&&typeof xt=="object"){if(se(xt.allowTrailingCommas))return xt.allowTrailingCommas;var Xt=xt;if(se(Xt.allowsTrailingCommas))return Xt.allowsTrailingCommas;if(xt.allOf)for(var mi=0,Yt=xt.allOf;mi<Yt.length;mi++){var ri=Yt[mi],qi=yt(ri);if(se(qi))return qi}}}(ai.schema)&&(fi=void 0)}for(var Be=0,Le=ue.syntaxErrors;Be<Le.length;Be++){var Ke=Le[Be];if(Ke.code===et.TrailingComma){if(typeof fi!="number")continue;Ke.severity=fi}Jt(Ke)}if(typeof ui=="number"){var dt=I("InvalidCommentToken","Comments are not permitted in JSON.");ue.comments.forEach(function(yt){Jt(V.create(yt,dt,ui,et.CommentNotPermitted))})}return rt};if(Ze){var Ei=Ze.id||"schemaservice://untitled/"+_e++;return this.jsonSchemaService.resolveSchemaContent(new Gn(Ze),Ei,{}).then(function(ai){return xi(ai)})}return this.jsonSchemaService.getSchemaForResource(le.uri,ue).then(function(ai){return xi(ai)})},ye}(),_e=0;function Fe(ye){switch(ye){case"error":return S.Error;case"warning":return S.Warning;case"ignore":return}}function Xe(ye){return ye<48?0:ye<=57?ye-48:(ye<97&&(ye+=32),ye>=97&&ye<=102?ye-97+10:0)}function ot(ye){if(ye[0]==="#")switch(ye.length){case 4:return{red:17*Xe(ye.charCodeAt(1))/255,green:17*Xe(ye.charCodeAt(2))/255,blue:17*Xe(ye.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Xe(ye.charCodeAt(1))/255,green:17*Xe(ye.charCodeAt(2))/255,blue:17*Xe(ye.charCodeAt(3))/255,alpha:17*Xe(ye.charCodeAt(4))/255};case 7:return{red:(16*Xe(ye.charCodeAt(1))+Xe(ye.charCodeAt(2)))/255,green:(16*Xe(ye.charCodeAt(3))+Xe(ye.charCodeAt(4)))/255,blue:(16*Xe(ye.charCodeAt(5))+Xe(ye.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Xe(ye.charCodeAt(1))+Xe(ye.charCodeAt(2)))/255,green:(16*Xe(ye.charCodeAt(3))+Xe(ye.charCodeAt(4)))/255,blue:(16*Xe(ye.charCodeAt(5))+Xe(ye.charCodeAt(6)))/255,alpha:(16*Xe(ye.charCodeAt(7))+Xe(ye.charCodeAt(8)))/255}}}var Mt=function(){function ye(le){this.schemaService=le}return ye.prototype.findDocumentSymbols=function(le,ue,qe){var Ze=this;qe===void 0&&(qe={resultLimit:Number.MAX_VALUE});var tt=ue.root;if(!tt)return[];var rt=qe.resultLimit||Number.MAX_VALUE,zt=le.uri;if((zt==="vscode://defaultsettings/keybindings.json"||xn(zt.toLowerCase(),"/user/keybindings.json"))&&tt.type==="array"){for(var Jt=[],xi=0,Ei=tt.items;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.type==="object")for(var fi=0,ui=ai.properties;fi<ui.length;fi++){var Te=ui[fi];if(Te.keyNode.value==="key"&&Te.valueNode){var Ee=D.create(le.uri,Ot(le,ai));if(Jt.push({name:kt(Te.valueNode),kind:z.Function,location:Ee}),--rt<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Jt}}}return Jt}for(var ve=[{node:tt,containerName:""}],Re=0,We=!1,Be=[],Le=function(dt,yt){dt.type==="array"?dt.items.forEach(function(xt){xt&&ve.push({node:xt,containerName:yt})}):dt.type==="object"&&dt.properties.forEach(function(xt){var Xt=xt.valueNode;if(Xt)if(rt>0){rt--;var mi=D.create(le.uri,Ot(le,xt)),Yt=yt?yt+"."+xt.keyNode.value:xt.keyNode.value;Be.push({name:Ze.getKeyLabel(xt),kind:Ze.getSymbolKind(Xt.type),location:mi,containerName:yt}),ve.push({node:Xt,containerName:Yt})}else We=!0})};Re<ve.length;){var Ke=ve[Re++];Le(Ke.node,Ke.containerName)}return We&&qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Be},ye.prototype.findDocumentSymbols2=function(le,ue,qe){var Ze=this;qe===void 0&&(qe={resultLimit:Number.MAX_VALUE});var tt=ue.root;if(!tt)return[];var rt=qe.resultLimit||Number.MAX_VALUE,zt=le.uri;if((zt==="vscode://defaultsettings/keybindings.json"||xn(zt.toLowerCase(),"/user/keybindings.json"))&&tt.type==="array"){for(var Jt=[],xi=0,Ei=tt.items;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.type==="object")for(var fi=0,ui=ai.properties;fi<ui.length;fi++){var Te=ui[fi];if(Te.keyNode.value==="key"&&Te.valueNode){var Ee=Ot(le,ai),ve=Ot(le,Te.keyNode);if(Jt.push({name:kt(Te.valueNode),kind:z.Function,range:Ee,selectionRange:ve}),--rt<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Jt}}}return Jt}for(var Re=[],We=[{node:tt,result:Re}],Be=0,Le=!1,Ke=function(yt,xt){yt.type==="array"?yt.items.forEach(function(Xt,mi){if(Xt)if(rt>0){rt--;var Yt=Ot(le,Xt),ri=Yt,qi={name:String(mi),kind:Ze.getSymbolKind(Xt.type),range:Yt,selectionRange:ri,children:[]};xt.push(qi),We.push({result:qi.children,node:Xt})}else Le=!0}):yt.type==="object"&&yt.properties.forEach(function(Xt){var mi=Xt.valueNode;if(mi)if(rt>0){rt--;var Yt=Ot(le,Xt),ri=Ot(le,Xt.keyNode),qi={name:Ze.getKeyLabel(Xt),kind:Ze.getSymbolKind(mi.type),range:Yt,selectionRange:ri,children:[]};xt.push(qi),We.push({result:qi.children,node:mi})}else Le=!0})};Be<We.length;){var dt=We[Be++];Ke(dt.node,dt.result)}return Le&&qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Re},ye.prototype.getSymbolKind=function(le){switch(le){case"object":return z.Module;case"string":return z.String;case"number":return z.Number;case"array":return z.Array;case"boolean":return z.Boolean;default:return z.Variable}},ye.prototype.getKeyLabel=function(le){var ue=le.keyNode.value;return ue&&(ue=ue.replace(/[\n]/g,"\u21B5")),ue&&ue.trim()?ue:'"'+ue+'"'},ye.prototype.findDocumentColors=function(le,ue,qe){return this.schemaService.getSchemaForResource(le.uri,ue).then(function(Ze){var tt=[];if(Ze)for(var rt=qe&&typeof qe.resultLimit=="number"?qe.resultLimit:Number.MAX_VALUE,zt={},Jt=0,xi=ue.getMatchingSchemas(Ze.schema);Jt<xi.length;Jt++){var Ei=xi[Jt];if(!Ei.inverted&&Ei.schema&&(Ei.schema.format==="color"||Ei.schema.format==="color-hex")&&Ei.node&&Ei.node.type==="string"){var ai=String(Ei.node.offset);if(!zt[ai]){var fi=ot(kt(Ei.node));if(fi){var ui=Ot(le,Ei.node);tt.push({color:fi,range:ui})}if(zt[ai]=!0,--rt<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(le.uri),tt}}}return tt})},ye.prototype.getColorPresentations=function(le,ue,qe,Ze){var tt,rt=[],zt=Math.round(255*qe.red),Jt=Math.round(255*qe.green),xi=Math.round(255*qe.blue);function Ei(ai){var fi=ai.toString(16);return fi.length!==2?"0"+fi:fi}return tt=qe.alpha===1?"#"+Ei(zt)+Ei(Jt)+Ei(xi):"#"+Ei(zt)+Ei(Jt)+Ei(xi)+Ei(Math.round(255*qe.alpha)),rt.push({label:tt,textEdit:l.replace(Ze,JSON.stringify(tt))}),rt},ye}();function Ot(ye,le){return f.create(ye.positionAt(le.offset),ye.positionAt(le.offset+le.length))}var Tt=Di(),Ht={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:Tt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:Tt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},jt={id:Tt("schema.json.id","A unique identifier for the schema."),$schema:Tt("schema.json.$schema","The schema to verify this document against."),title:Tt("schema.json.title","A descriptive title of the element."),description:Tt("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Tt("schema.json.default","A default value. Used by suggestions."),multipleOf:Tt("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Tt("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Tt("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Tt("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Tt("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Tt("schema.json.maxLength","The maximum length of a string."),minLength:Tt("schema.json.minLength","The minimum length of a string."),pattern:Tt("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Tt("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:Tt("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:Tt("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Tt("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Tt("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Tt("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Tt("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Tt("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Tt("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:Tt("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Tt("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Tt("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Tt("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:Tt("schema.json.enum","The set of literal values that are valid."),type:Tt("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:Tt("schema.json.format","Describes the format expected for the value."),allOf:Tt("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Tt("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Tt("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Tt("schema.json.not","A schema which must not match."),$id:Tt("schema.json.$id","A unique identifier for the schema."),$ref:Tt("schema.json.$ref","Reference a definition hosted on any location."),$comment:Tt("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Tt("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Tt("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Tt("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Tt("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:Tt("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Tt("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Tt("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Tt("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Tt("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Tt("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var Kt in Ht.schemas){var wi=Ht.schemas[Kt];for(var Ti in wi.properties){var ft=wi.properties[Ti];typeof ft=="boolean"&&(ft=wi.properties[Ti]={});var X=jt[Ti];X?ft.description=X:console.log(Ti+": localize('schema.json."+Ti+`', "")`)}}function ae(ye,le){var ue=[],qe=[],Ze=[],tt=-1,rt=Object(ie.a)(ye.getText(),!1),zt=rt.scan();function Jt(Xt){ue.push(Xt),qe.push(Ze.length)}for(;zt!==17;){switch(zt){case 1:case 3:var xi={startLine:fi=ye.positionAt(rt.getTokenOffset()).line,endLine:fi,kind:zt===1?"object":"array"};Ze.push(xi);break;case 2:case 4:var Ei=zt===2?"object":"array";if(Ze.length>0&&Ze[Ze.length-1].kind===Ei){xi=Ze.pop();var ai=ye.positionAt(rt.getTokenOffset()).line;xi&&ai>xi.startLine+1&&tt!==xi.startLine&&(xi.endLine=ai-1,Jt(xi),tt=xi.startLine)}break;case 13:var fi=ye.positionAt(rt.getTokenOffset()).line,ui=ye.positionAt(rt.getTokenOffset()+rt.getTokenLength()).line;rt.getTokenError()===1&&fi+1<ye.lineCount?rt.setPosition(ye.offsetAt(h.create(fi+1,0))):fi<ui&&(Jt({startLine:fi,endLine:ui,kind:Q.Comment}),tt=fi);break;case 12:var Te=ye.getText().substr(rt.getTokenOffset(),rt.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(Te)if(ai=ye.positionAt(rt.getTokenOffset()).line,Te[1])xi={startLine:ai,endLine:ai,kind:Q.Region},Ze.push(xi);else{for(var Ee=Ze.length-1;Ee>=0&&Ze[Ee].kind!==Q.Region;)Ee--;Ee>=0&&(xi=Ze[Ee],Ze.length=Ee,ai>xi.startLine&&tt!==xi.startLine&&(xi.endLine=ai,Jt(xi),tt=xi.startLine))}}zt=rt.scan()}var ve=le&&le.rangeLimit;if(typeof ve!="number"||ue.length<=ve)return ue;le&&le.onRangeLimitExceeded&&le.onRangeLimitExceeded(ye.uri);for(var Re=[],We=0,Be=qe;We<Be.length;We++)(xt=Be[We])<30&&(Re[xt]=(Re[xt]||0)+1);var Le=0,Ke=0;for(Ee=0;Ee<Re.length;Ee++){var dt=Re[Ee];if(dt){if(dt+Le>ve){Ke=Ee;break}Le+=dt}}var yt=[];for(Ee=0;Ee<ue.length;Ee++){var xt;typeof(xt=qe[Ee])=="number"&&(xt<Ke||xt===Ke&&Le++<ve)&&yt.push(ue[Ee])}return yt}function Ge(ye,le,ue){function qe(rt,zt){return f.create(ye.positionAt(rt),ye.positionAt(zt))}var Ze=Object(ie.a)(ye.getText(),!0);function tt(rt,zt){return Ze.setPosition(rt),Ze.scan()===zt?Ze.getTokenOffset()+Ze.getTokenLength():-1}return le.map(function(rt){for(var zt=ye.offsetAt(rt),Jt=ue.getNodeFromOffset(zt,!0),xi=[];Jt;){switch(Jt.type){case"string":case"object":case"array":var Ei=Jt.offset+1,ai=Jt.offset+Jt.length-1;Ei<ai&&zt>=Ei&&zt<=ai&&xi.push(qe(Ei,ai)),xi.push(qe(Jt.offset,Jt.offset+Jt.length));break;case"number":case"boolean":case"null":case"property":xi.push(qe(Jt.offset,Jt.offset+Jt.length))}if(Jt.type==="property"||Jt.parent&&Jt.parent.type==="array"){var fi=tt(Jt.offset+Jt.length,5);fi!==-1&&xi.push(qe(Jt.offset,fi))}Jt=Jt.parent}for(var ui=void 0,Te=xi.length-1;Te>=0;Te--)ui=At.create(xi[Te],ui);return ui||(ui=At.create(f.create(rt,rt))),ui})}function lt(ye,le,ue){var qe=ye.offsetAt(le),Ze=ue.getNodeFromOffset(qe,!0);if(!Ze||!function(Jt){return Jt.type==="string"&&Jt.parent&&Jt.parent.type==="property"&&Jt.parent.valueNode===Jt&&Jt.parent.keyNode.value==="$ref"||!1}(Ze))return Promise.resolve([]);var tt=Ze.parent.valueNode,rt=function(Jt,xi){var Ei=function(ai){return ai==="#"?[]:ai[0]!=="#"||ai[1]!=="/"?null:ai.substring(2).split(/\//).map(Gt)}(xi);return Ei?function ai(fi,ui){if(!ui)return null;if(fi.length===0)return ui;var Te=fi.shift();if(ui&&ui.type==="object"){var Ee=ui.properties.find(function(We){return We.keyNode.value===Te});return Ee?ai(fi,Ee.valueNode):null}if(ui&&ui.type==="array"&&Te.match(/^(0|[1-9][0-9]*)$/)){var ve=Number.parseInt(Te),Re=ui.items[ve];return Re?ai(fi,Re):null}return null}(Ei,Jt.root):null}(ue,tt.value);if(!rt)return Promise.resolve([]);var zt={targetUri:ye.uri,originSelectionRange:Dt(ye,tt),targetRange:Dt(ye,rt),targetSelectionRange:Dt(ye,rt)};return Promise.resolve([zt])}function Dt(ye,le){return f.create(ye.positionAt(le.offset),ye.positionAt(le.offset+le.length))}function Gt(ye){return ye.replace(/~1/g,"/").replace(/~0/g,"~")}function ti(ye){var le=ye.promiseConstructor||Promise,ue=new ho(ye.schemaRequestService,ye.workspaceContext,le);ue.setSchemaContributions(Ht);var qe=new Fn(ue,ye.contributions,le,ye.clientCapabilities),Ze=new Mn(ue,ye.contributions,le),tt=new Mt(ue),rt=new ne(ue,le);return{configure:function(zt){ue.clearExternalSchemas(),zt.schemas&&zt.schemas.forEach(function(Jt){ue.registerExternalSchema(Jt.uri,Jt.fileMatch,Jt.schema)}),rt.configure(zt)},resetSchema:function(zt){return ue.onResourceChange(zt)},doValidation:rt.doValidation.bind(rt),parseJSONDocument:function(zt){return Wi(zt,{collectComments:!0})},newJSONDocument:function(zt,Jt){return function(xi,Ei){return Ei===void 0&&(Ei=[]),new Si(xi,Ei,[])}(zt,Jt)},getMatchingSchemas:ue.getMatchingSchemas.bind(ue),doResolve:qe.doResolve.bind(qe),doComplete:qe.doComplete.bind(qe),findDocumentSymbols:tt.findDocumentSymbols.bind(tt),findDocumentSymbols2:tt.findDocumentSymbols2.bind(tt),findColorSymbols:function(zt,Jt){return tt.findDocumentColors(zt,Jt).then(function(xi){return xi.map(function(Ei){return Ei.range})})},findDocumentColors:tt.findDocumentColors.bind(tt),getColorPresentations:tt.getColorPresentations.bind(tt),doHover:Ze.doHover.bind(Ze),getFoldingRanges:ae,getSelectionRanges:Ge,findDefinition:lt,format:function(zt,Jt,xi){var Ei=void 0;if(Jt){var ai=zt.offsetAt(Jt.start);Ei={offset:ai,length:zt.offsetAt(Jt.end)-ai}}var fi={tabSize:xi?xi.tabSize:4,insertSpaces:!xi||xi.insertSpaces,eol:` -`};return Object(ie.c)(zt.getText(),Ei,fi).map(function(ui){return l.replace(f.create(zt.positionAt(ui.offset),zt.positionAt(ui.offset+ui.length)),ui.content)})}}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return l});var h=o(6),f=o(2),D=o(8),H=o(73),E=o(75),ge=o(114);class W{constructor(N){if(N.autoClosingPairs?this._autoClosingPairs=N.autoClosingPairs.map(b=>new E.b(b)):N.brackets?this._autoClosingPairs=N.brackets.map(b=>new E.b({open:b[0],close:b[1]})):this._autoClosingPairs=[],N.__electricCharacterSupport&&N.__electricCharacterSupport.docComment){let b=N.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new E.b({open:b.open,close:b.close||""}))}this._autoCloseBefore=typeof N.autoCloseBefore=="string"?N.autoCloseBefore:W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=N.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(N,b,g){if(b.getTokenCount()===0)return!0;let j=b.findTokenIndexAtOffset(g-2),ie=b.getStandardTokenType(j);return N.isOK(ie)}getSurroundingPairs(){return this._surroundingPairs}}W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> - `;var Q=o(119);class y{constructor(N){this._richEditBrackets=N}getElectricCharacters(){let N=[];if(this._richEditBrackets)for(let b of this._richEditBrackets.brackets)for(let g of b.close){let j=g.charAt(g.length-1);N.push(j)}return N=N.filter((b,g,j)=>j.indexOf(b)===g),N}onElectricCharacter(N,b,g){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;let j=b.findTokenIndexAtOffset(g-1);if(Object(ge.b)(b.getStandardTokenType(j)))return null;let ie=this._richEditBrackets.reversedRegex,U=b.getLineContent().substring(0,g-1)+N,q=Q.a.findPrevBracketInRange(ie,1,U,0,U.length);if(!q)return null;let B=U.substring(q.startColumn-1,q.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[B])return null;let se=b.getActualLineContentBefore(q.startColumn-1);return/^\s*$/.test(se)?{matchOpenBracket:B}:null}}class C{constructor(N){this._indentationRules=N}shouldIncrease(N){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(N))}shouldDecrease(N){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(N))}shouldIndentNextLine(N){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(N))}shouldIgnore(N){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(N))}getIndentMetadata(N){let b=0;return this.shouldIncrease(N)&&(b+=1),this.shouldDecrease(N)&&(b+=2),this.shouldIndentNextLine(N)&&(b+=4),this.shouldIgnore(N)&&(b+=8),b}}var S=o(13);class P{constructor(N){(N=N||{}).brackets=N.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],N.brackets.forEach(b=>{let g=P._createOpenBracketRegExp(b[0]),j=P._createCloseBracketRegExp(b[1]);g&&j&&this._brackets.push({open:b[0],openRegExp:g,close:b[1],closeRegExp:j})}),this._regExpRules=N.onEnterRules||[]}onEnter(N,b,g,j){if(N>=3)for(let ie=0,U=this._regExpRules.length;ie<U;ie++){let q=this._regExpRules[ie];if([{reg:q.beforeText,text:g},{reg:q.afterText,text:j},{reg:q.oneLineAboveText,text:b}].every(B=>!B.reg||B.reg.test(B.text)))return q.action}if(N>=2&&g.length>0&&j.length>0)for(let ie=0,U=this._brackets.length;ie<U;ie++){let q=this._brackets[ie];if(q.openRegExp.test(g)&&q.closeRegExp.test(j))return{indentAction:E.a.IndentOutdent}}if(N>=2&&g.length>0){for(let ie=0,U=this._brackets.length;ie<U;ie++)if(this._brackets[ie].openRegExp.test(g))return{indentAction:E.a.Indent}}return null}static _createOpenBracketRegExp(N){let b=D.v(N);return/\B/.test(b.charAt(0))||(b="\\b"+b),b+="\\s*$",P._safeRegExp(b)}static _createCloseBracketRegExp(N){let b=D.v(N);return/\B/.test(b.charAt(b.length-1))||(b+="\\b"),b="^\\s*"+b,P._safeRegExp(b)}static _safeRegExp(N){try{return new RegExp(N)}catch(b){return Object(S.e)(b),null}}}class V{constructor(N,b,g){this._languageIdentifier=N,this._brackets=null,this._electricCharacter=null;let j=null;b&&(j=b._conf),this._conf=V._mergeConf(j,g),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new P(this._conf):null,this.comments=V._handleComments(this._conf),this.characterPair=new W(this._conf),this.wordDefinition=this._conf.wordPattern||H.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new C(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Q.b(this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new y(this.brackets)),this._electricCharacter}onEnter(N,b,g,j){return this._onEnterSupport?this._onEnterSupport.onEnter(N,b,g,j):null}static _mergeConf(N,b){return{comments:N?b.comments||N.comments:b.comments,brackets:N?b.brackets||N.brackets:b.brackets,wordPattern:N?b.wordPattern||N.wordPattern:b.wordPattern,indentationRules:N?b.indentationRules||N.indentationRules:b.indentationRules,onEnterRules:N?b.onEnterRules||N.onEnterRules:b.onEnterRules,autoClosingPairs:N?b.autoClosingPairs||N.autoClosingPairs:b.autoClosingPairs,surroundingPairs:N?b.surroundingPairs||N.surroundingPairs:b.surroundingPairs,autoCloseBefore:N?b.autoCloseBefore||N.autoCloseBefore:b.autoCloseBefore,folding:N?b.folding||N.folding:b.folding,__electricCharacterSupport:N?b.__electricCharacterSupport||N.__electricCharacterSupport:b.__electricCharacterSupport}}static _handleComments(N){let b=N.comments;if(!b)return null;let g={};if(b.lineComment&&(g.lineCommentToken=b.lineComment),b.blockComment){let[j,ie]=b.blockComment;g.blockCommentStartToken=j,g.blockCommentEndToken=ie}return g}}class k{constructor(N){this.languageIdentifier=N}}let l=new class{constructor(){this._entries=new Map,this._onDidChange=new h.a,this.onDidChange=this._onDidChange.event}register(T,N){let b=this._getRichEditSupport(T.id),g=new V(T,b,N);return this._entries.set(T.id,g),this._onDidChange.fire(new k(T)),Object(f.h)(()=>{this._entries.get(T.id)===g&&(this._entries.set(T.id,b),this._onDidChange.fire(new k(T)))})}_getRichEditSupport(T){return this._entries.get(T)}getIndentationRules(T){let N=this._entries.get(T);return N&&N.indentationRules||null}_getElectricCharacterSupport(T){let N=this._getRichEditSupport(T);return N&&N.electricCharacter||null}getElectricCharacters(T){let N=this._getElectricCharacterSupport(T);return N?N.getElectricCharacters():[]}onElectricCharacter(T,N,b){let g=Object(ge.a)(N,b-1),j=this._getElectricCharacterSupport(g.languageId);return j?j.onElectricCharacter(T,g,b-g.firstCharOffset):null}getComments(T){let N=this._getRichEditSupport(T);return N&&N.comments||null}_getCharacterPairSupport(T){let N=this._getRichEditSupport(T);return N&&N.characterPair||null}getAutoClosingPairs(T){let N=this._getCharacterPairSupport(T);return N?N.getAutoClosingPairs():[]}getAutoCloseBeforeSet(T){let N=this._getCharacterPairSupport(T);return N?N.getAutoCloseBeforeSet():W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(T){let N=this._getCharacterPairSupport(T);return N?N.getSurroundingPairs():[]}shouldAutoClosePair(T,N,b){let g=Object(ge.a)(N,b-1);return W.shouldAutoClosePair(T,g,b-g.firstCharOffset)}getWordDefinition(T){let N=this._getRichEditSupport(T);return N?Object(H.c)(N.wordDefinition||null):Object(H.c)(null)}getFoldingRules(T){let N=this._getRichEditSupport(T);return N?N.foldingRules:{}}getIndentRulesSupport(T){let N=this._getRichEditSupport(T);return N&&N.indentRulesSupport||null}getPrecedingValidLine(T,N,b){let g=T.getLanguageIdAtPosition(N,0);if(N>1){let j,ie=-1;for(j=N-1;j>=1;j--){if(T.getLanguageIdAtPosition(j,0)!==g)return ie;let U=T.getLineContent(j);if(!b.shouldIgnore(U)&&!/^\s+$/.test(U)&&U!=="")return j;ie=j}}return-1}getInheritIndentForLine(T,N,b,g=!0){if(T<4)return null;let j=this.getIndentRulesSupport(N.getLanguageIdentifier().id);if(!j)return null;if(b<=1)return{indentation:"",action:null};let ie=this.getPrecedingValidLine(N,b,j);if(ie<0)return null;if(ie<1)return{indentation:"",action:null};let U=N.getLineContent(ie);if(j.shouldIncrease(U)||j.shouldIndentNextLine(U))return{indentation:D.z(U),action:E.a.Indent,line:ie};if(j.shouldDecrease(U))return{indentation:D.z(U),action:null,line:ie};{if(ie===1)return{indentation:D.z(N.getLineContent(ie)),action:null,line:ie};let q=ie-1,B=j.getIndentMetadata(N.getLineContent(q));if(!(3&B)&&4&B){let se=0;for(let ke=q-1;ke>0;ke--)if(!j.shouldIndentNextLine(N.getLineContent(ke))){se=ke;break}return{indentation:D.z(N.getLineContent(se+1)),action:null,line:se+1}}if(g)return{indentation:D.z(N.getLineContent(ie)),action:null,line:ie};for(let se=ie;se>0;se--){let ke=N.getLineContent(se);if(j.shouldIncrease(ke))return{indentation:D.z(ke),action:E.a.Indent,line:se};if(j.shouldIndentNextLine(ke)){let xe=0;for(let Y=se-1;Y>0;Y--)if(!j.shouldIndentNextLine(N.getLineContent(se))){xe=Y;break}return{indentation:D.z(N.getLineContent(xe+1)),action:null,line:xe+1}}if(j.shouldDecrease(ke))return{indentation:D.z(ke),action:null,line:se}}return{indentation:D.z(N.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(T,N,b,g,j){if(T<4)return null;let ie=this._getRichEditSupport(b);if(!ie)return null;let U=this.getIndentRulesSupport(b);if(!U)return null;let q=this.getInheritIndentForLine(T,N,g),B=N.getLineContent(g);if(q){let se=q.line;if(se!==void 0){let ke=ie.onEnter(T,"",N.getLineContent(se),"");if(ke){let xe=D.z(N.getLineContent(se));return ke.removeText&&(xe=xe.substring(0,xe.length-ke.removeText)),ke.indentAction===E.a.Indent||ke.indentAction===E.a.IndentOutdent?xe=j.shiftIndent(xe):ke.indentAction===E.a.Outdent&&(xe=j.unshiftIndent(xe)),U.shouldDecrease(B)&&(xe=j.unshiftIndent(xe)),ke.appendText&&(xe+=ke.appendText),D.z(xe)}}return U.shouldDecrease(B)?q.action===E.a.Indent?q.indentation:j.unshiftIndent(q.indentation):q.action===E.a.Indent?j.shiftIndent(q.indentation):q.indentation}return null}getIndentForEnter(T,N,b,g){if(T<4)return null;N.forceTokenization(b.startLineNumber);let j=N.getLineTokens(b.startLineNumber),ie=Object(ge.a)(j,b.startColumn-1),U=ie.getLineContent(),q,B,se=!1;ie.firstCharOffset>0&&j.getLanguageId(0)!==ie.languageId?(se=!0,q=U.substr(0,b.startColumn-1-ie.firstCharOffset)):q=j.getLineContent().substring(0,b.startColumn-1),b.isEmpty()?B=U.substr(b.startColumn-1-ie.firstCharOffset):B=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-ie.firstCharOffset);let ke=this.getIndentRulesSupport(ie.languageId);if(!ke)return null;let xe=q,Y=D.z(q),Z={getLineTokens:Ae=>N.getLineTokens(Ae),getLanguageIdentifier:()=>N.getLanguageIdentifier(),getLanguageIdAtPosition:(Ae,L)=>N.getLanguageIdAtPosition(Ae,L),getLineContent:Ae=>Ae===b.startLineNumber?xe:N.getLineContent(Ae)},te=D.z(j.getLineContent()),he=this.getInheritIndentForLine(T,Z,b.startLineNumber+1);if(!he){let Ae=se?te:Y;return{beforeEnter:Ae,afterEnter:Ae}}let Ce=se?te:he.indentation;return he.action===E.a.Indent&&(Ce=g.shiftIndent(Ce)),ke.shouldDecrease(B)&&(Ce=g.unshiftIndent(Ce)),{beforeEnter:se?te:Y,afterEnter:Ce}}getIndentActionForType(T,N,b,g,j){if(T<4)return null;let ie=this.getScopedLineTokens(N,b.startLineNumber,b.startColumn),U=this.getIndentRulesSupport(ie.languageId);if(!U)return null;let q=ie.getLineContent(),B=q.substr(0,b.startColumn-1-ie.firstCharOffset),se;if(b.isEmpty()?se=q.substr(b.startColumn-1-ie.firstCharOffset):se=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-ie.firstCharOffset),!U.shouldDecrease(B+se)&&U.shouldDecrease(B+g+se)){let ke=this.getInheritIndentForLine(T,N,b.startLineNumber,!1);if(!ke)return null;let xe=ke.indentation;return ke.action!==E.a.Indent&&(xe=j.unshiftIndent(xe)),xe}return null}getIndentMetadata(T,N){let b=this.getIndentRulesSupport(T.getLanguageIdentifier().id);return b?N<1||N>T.getLineCount()?null:b.getIndentMetadata(T.getLineContent(N)):null}getEnterAction(T,N,b){let g=this.getScopedLineTokens(N,b.startLineNumber,b.startColumn),j=this._getRichEditSupport(g.languageId);if(!j)return null;let ie=g.getLineContent(),U=ie.substr(0,b.startColumn-1-g.firstCharOffset),q;b.isEmpty()?q=ie.substr(b.startColumn-1-g.firstCharOffset):q=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-g.firstCharOffset);let B="";if(b.startLineNumber>1&&g.firstCharOffset===0){let te=this.getScopedLineTokens(N,b.startLineNumber-1);te.languageId===g.languageId&&(B=te.getLineContent())}let se=j.onEnter(T,B,U,q);if(!se)return null;let ke=se.indentAction,xe=se.appendText,Y=se.removeText||0;xe||(xe=ke===E.a.Indent||ke===E.a.IndentOutdent?" ":"");let Z=this.getIndentationAtPosition(N,b.startLineNumber,b.startColumn);return Y&&(Z=Z.substring(0,Z.length-Y)),{indentAction:ke,appendText:xe,removeText:Y,indentation:Z}}getIndentationAtPosition(T,N,b){let g=T.getLineContent(N),j=D.z(g);return j.length>b-1&&(j=j.substring(0,b-1)),j}getScopedLineTokens(T,N,b){T.forceTokenization(N);let g=T.getLineTokens(N),j=b===void 0?T.getLineMaxColumn(N)-1:b-1;return Object(ge.a)(g,j)}getBracketsSupport(T){let N=this._getRichEditSupport(T);return N&&N.brackets||null}}},function(Ie,w,o){"use strict";var h,f,D,H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y,Z,te,he,Ce,Ae;o.d(w,"a",function(){return h}),o.d(w,"b",function(){return f}),o.d(w,"c",function(){return D}),o.d(w,"d",function(){return H}),o.d(w,"e",function(){return E}),o.d(w,"f",function(){return ge}),o.d(w,"g",function(){return W}),o.d(w,"h",function(){return Q}),o.d(w,"i",function(){return y}),o.d(w,"j",function(){return C}),o.d(w,"k",function(){return S}),o.d(w,"l",function(){return P}),o.d(w,"m",function(){return V}),o.d(w,"n",function(){return k}),o.d(w,"o",function(){return l}),o.d(w,"p",function(){return T}),o.d(w,"q",function(){return N}),o.d(w,"r",function(){return b}),o.d(w,"s",function(){return g}),o.d(w,"t",function(){return j}),o.d(w,"u",function(){return ie}),o.d(w,"v",function(){return U}),o.d(w,"w",function(){return q}),o.d(w,"x",function(){return B}),o.d(w,"y",function(){return se}),o.d(w,"z",function(){return ke}),o.d(w,"A",function(){return xe}),o.d(w,"B",function(){return Y}),o.d(w,"C",function(){return Z}),o.d(w,"D",function(){return te}),o.d(w,"E",function(){return he}),o.d(w,"F",function(){return Ce}),o.d(w,"G",function(){return Ae}),function(L){L[L.Unknown=0]="Unknown",L[L.Disabled=1]="Disabled",L[L.Enabled=2]="Enabled"}(h||(h={})),function(L){L[L.KeepWhitespace=1]="KeepWhitespace",L[L.InsertAsSnippet=4]="InsertAsSnippet"}(f||(f={})),function(L){L[L.Method=0]="Method",L[L.Function=1]="Function",L[L.Constructor=2]="Constructor",L[L.Field=3]="Field",L[L.Variable=4]="Variable",L[L.Class=5]="Class",L[L.Struct=6]="Struct",L[L.Interface=7]="Interface",L[L.Module=8]="Module",L[L.Property=9]="Property",L[L.Event=10]="Event",L[L.Operator=11]="Operator",L[L.Unit=12]="Unit",L[L.Value=13]="Value",L[L.Constant=14]="Constant",L[L.Enum=15]="Enum",L[L.EnumMember=16]="EnumMember",L[L.Keyword=17]="Keyword",L[L.Text=18]="Text",L[L.Color=19]="Color",L[L.File=20]="File",L[L.Reference=21]="Reference",L[L.Customcolor=22]="Customcolor",L[L.Folder=23]="Folder",L[L.TypeParameter=24]="TypeParameter",L[L.User=25]="User",L[L.Issue=26]="Issue",L[L.Snippet=27]="Snippet"}(D||(D={})),function(L){L[L.Deprecated=1]="Deprecated"}(H||(H={})),function(L){L[L.Invoke=0]="Invoke",L[L.TriggerCharacter=1]="TriggerCharacter",L[L.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(E||(E={})),function(L){L[L.EXACT=0]="EXACT",L[L.ABOVE=1]="ABOVE",L[L.BELOW=2]="BELOW"}(ge||(ge={})),function(L){L[L.NotSet=0]="NotSet",L[L.ContentFlush=1]="ContentFlush",L[L.RecoverFromMarkers=2]="RecoverFromMarkers",L[L.Explicit=3]="Explicit",L[L.Paste=4]="Paste",L[L.Undo=5]="Undo",L[L.Redo=6]="Redo"}(W||(W={})),function(L){L[L.LF=1]="LF",L[L.CRLF=2]="CRLF"}(Q||(Q={})),function(L){L[L.Text=0]="Text",L[L.Read=1]="Read",L[L.Write=2]="Write"}(y||(y={})),function(L){L[L.None=0]="None",L[L.Keep=1]="Keep",L[L.Brackets=2]="Brackets",L[L.Advanced=3]="Advanced",L[L.Full=4]="Full"}(C||(C={})),function(L){L[L.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",L[L.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",L[L.accessibilitySupport=2]="accessibilitySupport",L[L.accessibilityPageSize=3]="accessibilityPageSize",L[L.ariaLabel=4]="ariaLabel",L[L.autoClosingBrackets=5]="autoClosingBrackets",L[L.autoClosingOvertype=6]="autoClosingOvertype",L[L.autoClosingQuotes=7]="autoClosingQuotes",L[L.autoIndent=8]="autoIndent",L[L.automaticLayout=9]="automaticLayout",L[L.autoSurround=10]="autoSurround",L[L.codeLens=11]="codeLens",L[L.colorDecorators=12]="colorDecorators",L[L.columnSelection=13]="columnSelection",L[L.comments=14]="comments",L[L.contextmenu=15]="contextmenu",L[L.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",L[L.cursorBlinking=17]="cursorBlinking",L[L.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",L[L.cursorStyle=19]="cursorStyle",L[L.cursorSurroundingLines=20]="cursorSurroundingLines",L[L.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",L[L.cursorWidth=22]="cursorWidth",L[L.disableLayerHinting=23]="disableLayerHinting",L[L.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",L[L.dragAndDrop=25]="dragAndDrop",L[L.emptySelectionClipboard=26]="emptySelectionClipboard",L[L.extraEditorClassName=27]="extraEditorClassName",L[L.fastScrollSensitivity=28]="fastScrollSensitivity",L[L.find=29]="find",L[L.fixedOverflowWidgets=30]="fixedOverflowWidgets",L[L.folding=31]="folding",L[L.foldingStrategy=32]="foldingStrategy",L[L.foldingHighlight=33]="foldingHighlight",L[L.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",L[L.fontFamily=35]="fontFamily",L[L.fontInfo=36]="fontInfo",L[L.fontLigatures=37]="fontLigatures",L[L.fontSize=38]="fontSize",L[L.fontWeight=39]="fontWeight",L[L.formatOnPaste=40]="formatOnPaste",L[L.formatOnType=41]="formatOnType",L[L.glyphMargin=42]="glyphMargin",L[L.gotoLocation=43]="gotoLocation",L[L.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",L[L.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",L[L.hover=46]="hover",L[L.inDiffEditor=47]="inDiffEditor",L[L.letterSpacing=48]="letterSpacing",L[L.lightbulb=49]="lightbulb",L[L.lineDecorationsWidth=50]="lineDecorationsWidth",L[L.lineHeight=51]="lineHeight",L[L.lineNumbers=52]="lineNumbers",L[L.lineNumbersMinChars=53]="lineNumbersMinChars",L[L.links=54]="links",L[L.matchBrackets=55]="matchBrackets",L[L.minimap=56]="minimap",L[L.mouseStyle=57]="mouseStyle",L[L.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",L[L.mouseWheelZoom=59]="mouseWheelZoom",L[L.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",L[L.multiCursorModifier=61]="multiCursorModifier",L[L.multiCursorPaste=62]="multiCursorPaste",L[L.occurrencesHighlight=63]="occurrencesHighlight",L[L.overviewRulerBorder=64]="overviewRulerBorder",L[L.overviewRulerLanes=65]="overviewRulerLanes",L[L.padding=66]="padding",L[L.parameterHints=67]="parameterHints",L[L.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",L[L.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",L[L.quickSuggestions=70]="quickSuggestions",L[L.quickSuggestionsDelay=71]="quickSuggestionsDelay",L[L.readOnly=72]="readOnly",L[L.renameOnType=73]="renameOnType",L[L.renderControlCharacters=74]="renderControlCharacters",L[L.renderIndentGuides=75]="renderIndentGuides",L[L.renderFinalNewline=76]="renderFinalNewline",L[L.renderLineHighlight=77]="renderLineHighlight",L[L.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",L[L.renderValidationDecorations=79]="renderValidationDecorations",L[L.renderWhitespace=80]="renderWhitespace",L[L.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",L[L.roundedSelection=82]="roundedSelection",L[L.rulers=83]="rulers",L[L.scrollbar=84]="scrollbar",L[L.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",L[L.scrollBeyondLastLine=86]="scrollBeyondLastLine",L[L.scrollPredominantAxis=87]="scrollPredominantAxis",L[L.selectionClipboard=88]="selectionClipboard",L[L.selectionHighlight=89]="selectionHighlight",L[L.selectOnLineNumbers=90]="selectOnLineNumbers",L[L.showFoldingControls=91]="showFoldingControls",L[L.showUnused=92]="showUnused",L[L.snippetSuggestions=93]="snippetSuggestions",L[L.smoothScrolling=94]="smoothScrolling",L[L.stopRenderingLineAfter=95]="stopRenderingLineAfter",L[L.suggest=96]="suggest",L[L.suggestFontSize=97]="suggestFontSize",L[L.suggestLineHeight=98]="suggestLineHeight",L[L.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",L[L.suggestSelection=100]="suggestSelection",L[L.tabCompletion=101]="tabCompletion",L[L.tabIndex=102]="tabIndex",L[L.unusualLineTerminators=103]="unusualLineTerminators",L[L.useTabStops=104]="useTabStops",L[L.wordSeparators=105]="wordSeparators",L[L.wordWrap=106]="wordWrap",L[L.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",L[L.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",L[L.wordWrapColumn=109]="wordWrapColumn",L[L.wordWrapMinified=110]="wordWrapMinified",L[L.wrappingIndent=111]="wrappingIndent",L[L.wrappingStrategy=112]="wrappingStrategy",L[L.showDeprecated=113]="showDeprecated",L[L.editorClassName=114]="editorClassName",L[L.pixelRatio=115]="pixelRatio",L[L.tabFocusMode=116]="tabFocusMode",L[L.layoutInfo=117]="layoutInfo",L[L.wrappingInfo=118]="wrappingInfo"}(S||(S={})),function(L){L[L.TextDefined=0]="TextDefined",L[L.LF=1]="LF",L[L.CRLF=2]="CRLF"}(P||(P={})),function(L){L[L.LF=0]="LF",L[L.CRLF=1]="CRLF"}(V||(V={})),function(L){L[L.None=0]="None",L[L.Indent=1]="Indent",L[L.IndentOutdent=2]="IndentOutdent",L[L.Outdent=3]="Outdent"}(k||(k={})),function(L){L[L.Unknown=0]="Unknown",L[L.Backspace=1]="Backspace",L[L.Tab=2]="Tab",L[L.Enter=3]="Enter",L[L.Shift=4]="Shift",L[L.Ctrl=5]="Ctrl",L[L.Alt=6]="Alt",L[L.PauseBreak=7]="PauseBreak",L[L.CapsLock=8]="CapsLock",L[L.Escape=9]="Escape",L[L.Space=10]="Space",L[L.PageUp=11]="PageUp",L[L.PageDown=12]="PageDown",L[L.End=13]="End",L[L.Home=14]="Home",L[L.LeftArrow=15]="LeftArrow",L[L.UpArrow=16]="UpArrow",L[L.RightArrow=17]="RightArrow",L[L.DownArrow=18]="DownArrow",L[L.Insert=19]="Insert",L[L.Delete=20]="Delete",L[L.KEY_0=21]="KEY_0",L[L.KEY_1=22]="KEY_1",L[L.KEY_2=23]="KEY_2",L[L.KEY_3=24]="KEY_3",L[L.KEY_4=25]="KEY_4",L[L.KEY_5=26]="KEY_5",L[L.KEY_6=27]="KEY_6",L[L.KEY_7=28]="KEY_7",L[L.KEY_8=29]="KEY_8",L[L.KEY_9=30]="KEY_9",L[L.KEY_A=31]="KEY_A",L[L.KEY_B=32]="KEY_B",L[L.KEY_C=33]="KEY_C",L[L.KEY_D=34]="KEY_D",L[L.KEY_E=35]="KEY_E",L[L.KEY_F=36]="KEY_F",L[L.KEY_G=37]="KEY_G",L[L.KEY_H=38]="KEY_H",L[L.KEY_I=39]="KEY_I",L[L.KEY_J=40]="KEY_J",L[L.KEY_K=41]="KEY_K",L[L.KEY_L=42]="KEY_L",L[L.KEY_M=43]="KEY_M",L[L.KEY_N=44]="KEY_N",L[L.KEY_O=45]="KEY_O",L[L.KEY_P=46]="KEY_P",L[L.KEY_Q=47]="KEY_Q",L[L.KEY_R=48]="KEY_R",L[L.KEY_S=49]="KEY_S",L[L.KEY_T=50]="KEY_T",L[L.KEY_U=51]="KEY_U",L[L.KEY_V=52]="KEY_V",L[L.KEY_W=53]="KEY_W",L[L.KEY_X=54]="KEY_X",L[L.KEY_Y=55]="KEY_Y",L[L.KEY_Z=56]="KEY_Z",L[L.Meta=57]="Meta",L[L.ContextMenu=58]="ContextMenu",L[L.F1=59]="F1",L[L.F2=60]="F2",L[L.F3=61]="F3",L[L.F4=62]="F4",L[L.F5=63]="F5",L[L.F6=64]="F6",L[L.F7=65]="F7",L[L.F8=66]="F8",L[L.F9=67]="F9",L[L.F10=68]="F10",L[L.F11=69]="F11",L[L.F12=70]="F12",L[L.F13=71]="F13",L[L.F14=72]="F14",L[L.F15=73]="F15",L[L.F16=74]="F16",L[L.F17=75]="F17",L[L.F18=76]="F18",L[L.F19=77]="F19",L[L.NumLock=78]="NumLock",L[L.ScrollLock=79]="ScrollLock",L[L.US_SEMICOLON=80]="US_SEMICOLON",L[L.US_EQUAL=81]="US_EQUAL",L[L.US_COMMA=82]="US_COMMA",L[L.US_MINUS=83]="US_MINUS",L[L.US_DOT=84]="US_DOT",L[L.US_SLASH=85]="US_SLASH",L[L.US_BACKTICK=86]="US_BACKTICK",L[L.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",L[L.US_BACKSLASH=88]="US_BACKSLASH",L[L.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",L[L.US_QUOTE=90]="US_QUOTE",L[L.OEM_8=91]="OEM_8",L[L.OEM_102=92]="OEM_102",L[L.NUMPAD_0=93]="NUMPAD_0",L[L.NUMPAD_1=94]="NUMPAD_1",L[L.NUMPAD_2=95]="NUMPAD_2",L[L.NUMPAD_3=96]="NUMPAD_3",L[L.NUMPAD_4=97]="NUMPAD_4",L[L.NUMPAD_5=98]="NUMPAD_5",L[L.NUMPAD_6=99]="NUMPAD_6",L[L.NUMPAD_7=100]="NUMPAD_7",L[L.NUMPAD_8=101]="NUMPAD_8",L[L.NUMPAD_9=102]="NUMPAD_9",L[L.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",L[L.NUMPAD_ADD=104]="NUMPAD_ADD",L[L.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",L[L.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",L[L.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",L[L.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",L[L.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",L[L.ABNT_C1=110]="ABNT_C1",L[L.ABNT_C2=111]="ABNT_C2",L[L.MAX_VALUE=112]="MAX_VALUE"}(l||(l={})),function(L){L[L.Hint=1]="Hint",L[L.Info=2]="Info",L[L.Warning=4]="Warning",L[L.Error=8]="Error"}(T||(T={})),function(L){L[L.Unnecessary=1]="Unnecessary",L[L.Deprecated=2]="Deprecated"}(N||(N={})),function(L){L[L.Inline=1]="Inline",L[L.Gutter=2]="Gutter"}(b||(b={})),function(L){L[L.UNKNOWN=0]="UNKNOWN",L[L.TEXTAREA=1]="TEXTAREA",L[L.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",L[L.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",L[L.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",L[L.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",L[L.CONTENT_TEXT=6]="CONTENT_TEXT",L[L.CONTENT_EMPTY=7]="CONTENT_EMPTY",L[L.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",L[L.CONTENT_WIDGET=9]="CONTENT_WIDGET",L[L.OVERVIEW_RULER=10]="OVERVIEW_RULER",L[L.SCROLLBAR=11]="SCROLLBAR",L[L.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",L[L.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(g||(g={})),function(L){L[L.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",L[L.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",L[L.TOP_CENTER=2]="TOP_CENTER"}(j||(j={})),function(L){L[L.Left=1]="Left",L[L.Center=2]="Center",L[L.Right=4]="Right",L[L.Full=7]="Full"}(ie||(ie={})),function(L){L[L.Off=0]="Off",L[L.On=1]="On",L[L.Relative=2]="Relative",L[L.Interval=3]="Interval",L[L.Custom=4]="Custom"}(U||(U={})),function(L){L[L.None=0]="None",L[L.Text=1]="Text",L[L.Blocks=2]="Blocks"}(q||(q={})),function(L){L[L.Smooth=0]="Smooth",L[L.Immediate=1]="Immediate"}(B||(B={})),function(L){L[L.Auto=1]="Auto",L[L.Hidden=2]="Hidden",L[L.Visible=3]="Visible"}(se||(se={})),function(L){L[L.LTR=0]="LTR",L[L.RTL=1]="RTL"}(ke||(ke={})),function(L){L[L.Invoke=1]="Invoke",L[L.TriggerCharacter=2]="TriggerCharacter",L[L.ContentChange=3]="ContentChange"}(xe||(xe={})),function(L){L[L.File=0]="File",L[L.Module=1]="Module",L[L.Namespace=2]="Namespace",L[L.Package=3]="Package",L[L.Class=4]="Class",L[L.Method=5]="Method",L[L.Property=6]="Property",L[L.Field=7]="Field",L[L.Constructor=8]="Constructor",L[L.Enum=9]="Enum",L[L.Interface=10]="Interface",L[L.Function=11]="Function",L[L.Variable=12]="Variable",L[L.Constant=13]="Constant",L[L.String=14]="String",L[L.Number=15]="Number",L[L.Boolean=16]="Boolean",L[L.Array=17]="Array",L[L.Object=18]="Object",L[L.Key=19]="Key",L[L.Null=20]="Null",L[L.EnumMember=21]="EnumMember",L[L.Struct=22]="Struct",L[L.Event=23]="Event",L[L.Operator=24]="Operator",L[L.TypeParameter=25]="TypeParameter"}(Y||(Y={})),function(L){L[L.Deprecated=1]="Deprecated"}(Z||(Z={})),function(L){L[L.Hidden=0]="Hidden",L[L.Blink=1]="Blink",L[L.Smooth=2]="Smooth",L[L.Phase=3]="Phase",L[L.Expand=4]="Expand",L[L.Solid=5]="Solid"}(te||(te={})),function(L){L[L.Line=1]="Line",L[L.Block=2]="Block",L[L.Underline=3]="Underline",L[L.LineThin=4]="LineThin",L[L.BlockOutline=5]="BlockOutline",L[L.UnderlineThin=6]="UnderlineThin"}(he||(he={})),function(L){L[L.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",L[L.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",L[L.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",L[L.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Ce||(Ce={})),function(L){L[L.None=0]="None",L[L.Same=1]="Same",L[L.Indent=2]="Indent",L[L.DeepIndent=3]="DeepIndent"}(Ae||(Ae={}))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("codeEditorService")},function(Ie,w,o){"use strict";o.d(w,"i",function(){return y}),o.d(w,"e",function(){return C}),o.d(w,"d",function(){return S}),o.d(w,"g",function(){return P}),o.d(w,"f",function(){return V}),o.d(w,"b",function(){return k}),o.d(w,"a",function(){return l}),o.d(w,"c",function(){return T}),o.d(w,"h",function(){return N});var h=o(28);class f extends Error{constructor(g,j,ie){let U;typeof j=="string"&&j.indexOf("not ")===0?(U="must not be",j=j.replace(/^not /,"")):U="must be";let q=g.indexOf(".")!==-1?"property":"argument",B=`The "${g}" ${q} ${U} of type ${j}`;B+=". Received type "+typeof ie,super(B),this.code="ERR_INVALID_ARG_TYPE"}}function D(b,g){if(typeof b!="string")throw new f(g,"string",b)}function H(b){return b===47||b===92}function E(b){return b===47}function ge(b){return b>=65&&b<=90||b>=97&&b<=122}function W(b,g,j,ie){let U="",q=0,B=-1,se=0,ke=0;for(let xe=0;xe<=b.length;++xe){if(xe<b.length)ke=b.charCodeAt(xe);else{if(ie(ke))break;ke=47}if(ie(ke)){if(!(B===xe-1||se===1))if(se===2){if(U.length<2||q!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){let Y=U.lastIndexOf(j);Y===-1?(U="",q=0):(U=U.slice(0,Y),q=U.length-1-U.lastIndexOf(j)),B=xe,se=0;continue}if(U.length!==0){U="",q=0,B=xe,se=0;continue}}g&&(U+=U.length>0?j+"..":"..",q=2)}else U.length>0?U+=`${j}${b.slice(B+1,xe)}`:U=b.slice(B+1,xe),q=xe-B-1;B=xe,se=0}else ke===46&&se!==-1?++se:se=-1}return U}function Q(b,g){if(g===null||typeof g!="object")throw new f("pathObject","Object",g);let j=g.dir||g.root,ie=g.base||`${g.name||""}${g.ext||""}`;return j?j===g.root?`${j}${ie}`:`${j}${b}${ie}`:ie}let y={resolve(...b){let g="",j="",ie=!1;for(let U=b.length-1;U>=-1;U--){let q;if(U>=0){if(q=b[U],D(q,"path"),q.length===0)continue}else g.length===0?q=h.a():(q=h.b["="+g]||h.a(),(q===void 0||q.slice(0,2).toLowerCase()!==g.toLowerCase()&&q.charCodeAt(2)===92)&&(q=g+"\\"));let B=q.length,se=0,ke="",xe=!1,Y=q.charCodeAt(0);if(B===1)H(Y)&&(se=1,xe=!0);else if(H(Y))if(xe=!0,H(q.charCodeAt(1))){let Z=2,te=Z;for(;Z<B&&!H(q.charCodeAt(Z));)Z++;if(Z<B&&Z!==te){let he=q.slice(te,Z);for(te=Z;Z<B&&H(q.charCodeAt(Z));)Z++;if(Z<B&&Z!==te){for(te=Z;Z<B&&!H(q.charCodeAt(Z));)Z++;Z!==B&&Z===te||(ke=`\\\\${he}\\${q.slice(te,Z)}`,se=Z)}}}else se=1;else ge(Y)&&q.charCodeAt(1)===58&&(ke=q.slice(0,2),se=2,B>2&&H(q.charCodeAt(2))&&(xe=!0,se=3));if(ke.length>0)if(g.length>0){if(ke.toLowerCase()!==g.toLowerCase())continue}else g=ke;if(ie){if(g.length>0)break}else if(j=`${q.slice(se)}\\${j}`,ie=xe,xe&&g.length>0)break}return j=W(j,!ie,"\\",H),ie?`${g}\\${j}`:`${g}${j}`||"."},normalize(b){D(b,"path");let g=b.length;if(g===0)return".";let j,ie=0,U=!1,q=b.charCodeAt(0);if(g===1)return E(q)?"\\":b;if(H(q))if(U=!0,H(b.charCodeAt(1))){let se=2,ke=se;for(;se<g&&!H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){let xe=b.slice(ke,se);for(ke=se;se<g&&H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&!H(b.charCodeAt(se));)se++;if(se===g)return`\\\\${xe}\\${b.slice(ke)}\\`;se!==ke&&(j=`\\\\${xe}\\${b.slice(ke,se)}`,ie=se)}}}else ie=1;else ge(q)&&b.charCodeAt(1)===58&&(j=b.slice(0,2),ie=2,g>2&&H(b.charCodeAt(2))&&(U=!0,ie=3));let B=ie<g?W(b.slice(ie),!U,"\\",H):"";return B.length!==0||U||(B="."),B.length>0&&H(b.charCodeAt(g-1))&&(B+="\\"),j===void 0?U?"\\"+B:B:U?`${j}\\${B}`:`${j}${B}`},isAbsolute(b){D(b,"path");let g=b.length;if(g===0)return!1;let j=b.charCodeAt(0);return H(j)||g>2&&ge(j)&&b.charCodeAt(1)===58&&H(b.charCodeAt(2))},join(...b){if(b.length===0)return".";let g,j;for(let q=0;q<b.length;++q){let B=b[q];D(B,"path"),B.length>0&&(g===void 0?g=j=B:g+="\\"+B)}if(g===void 0)return".";let ie=!0,U=0;if(typeof j=="string"&&H(j.charCodeAt(0))){++U;let q=j.length;q>1&&H(j.charCodeAt(1))&&(++U,q>2&&(H(j.charCodeAt(2))?++U:ie=!1))}if(ie){for(;U<g.length&&H(g.charCodeAt(U));)U++;U>=2&&(g="\\"+g.slice(U))}return y.normalize(g)},relative(b,g){if(D(b,"from"),D(g,"to"),b===g)return"";let j=y.resolve(b),ie=y.resolve(g);if(j===ie||(b=j.toLowerCase())===(g=ie.toLowerCase()))return"";let U=0;for(;U<b.length&&b.charCodeAt(U)===92;)U++;let q=b.length;for(;q-1>U&&b.charCodeAt(q-1)===92;)q--;let B=q-U,se=0;for(;se<g.length&&g.charCodeAt(se)===92;)se++;let ke=g.length;for(;ke-1>se&&g.charCodeAt(ke-1)===92;)ke--;let xe=ke-se,Y=B<xe?B:xe,Z=-1,te=0;for(;te<Y;te++){let Ce=b.charCodeAt(U+te);if(Ce!==g.charCodeAt(se+te))break;Ce===92&&(Z=te)}if(te!==Y){if(Z===-1)return ie}else{if(xe>Y){if(g.charCodeAt(se+te)===92)return ie.slice(se+te+1);if(te===2)return ie.slice(se+te)}B>Y&&(b.charCodeAt(U+te)===92?Z=te:te===2&&(Z=3)),Z===-1&&(Z=0)}let he="";for(te=U+Z+1;te<=q;++te)te!==q&&b.charCodeAt(te)!==92||(he+=he.length===0?"..":"\\..");return se+=Z,he.length>0?`${he}${ie.slice(se,ke)}`:(ie.charCodeAt(se)===92&&++se,ie.slice(se,ke))},toNamespacedPath(b){if(typeof b!="string")return b;if(b.length===0)return"";let g=y.resolve(b);if(g.length<=2)return b;if(g.charCodeAt(0)===92){if(g.charCodeAt(1)===92){let j=g.charCodeAt(2);if(j!==63&&j!==46)return"\\\\?\\UNC\\"+g.slice(2)}}else if(ge(g.charCodeAt(0))&&g.charCodeAt(1)===58&&g.charCodeAt(2)===92)return"\\\\?\\"+g;return b},dirname(b){D(b,"path");let g=b.length;if(g===0)return".";let j=-1,ie=0,U=b.charCodeAt(0);if(g===1)return H(U)?b:".";if(H(U)){if(j=ie=1,H(b.charCodeAt(1))){let se=2,ke=se;for(;se<g&&!H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&!H(b.charCodeAt(se));)se++;if(se===g)return b;se!==ke&&(j=ie=se+1)}}}}else ge(U)&&b.charCodeAt(1)===58&&(j=g>2&&H(b.charCodeAt(2))?3:2,ie=j);let q=-1,B=!0;for(let se=g-1;se>=ie;--se)if(H(b.charCodeAt(se))){if(!B){q=se;break}}else B=!1;if(q===-1){if(j===-1)return".";q=j}return b.slice(0,q)},basename(b,g){g!==void 0&&D(g,"ext"),D(b,"path");let j,ie=0,U=-1,q=!0;if(b.length>=2&&ge(b.charCodeAt(0))&&b.charCodeAt(1)===58&&(ie=2),g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let B=g.length-1,se=-1;for(j=b.length-1;j>=ie;--j){let ke=b.charCodeAt(j);if(H(ke)){if(!q){ie=j+1;break}}else se===-1&&(q=!1,se=j+1),B>=0&&(ke===g.charCodeAt(B)?--B==-1&&(U=j):(B=-1,U=se))}return ie===U?U=se:U===-1&&(U=b.length),b.slice(ie,U)}for(j=b.length-1;j>=ie;--j)if(H(b.charCodeAt(j))){if(!q){ie=j+1;break}}else U===-1&&(q=!1,U=j+1);return U===-1?"":b.slice(ie,U)},extname(b){D(b,"path");let g=0,j=-1,ie=0,U=-1,q=!0,B=0;b.length>=2&&b.charCodeAt(1)===58&&ge(b.charCodeAt(0))&&(g=ie=2);for(let se=b.length-1;se>=g;--se){let ke=b.charCodeAt(se);if(H(ke)){if(!q){ie=se+1;break}}else U===-1&&(q=!1,U=se+1),ke===46?j===-1?j=se:B!==1&&(B=1):j!==-1&&(B=-1)}return j===-1||U===-1||B===0||B===1&&j===U-1&&j===ie+1?"":b.slice(j,U)},format:Q.bind(null,"\\"),parse(b){D(b,"path");let g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;let j=b.length,ie=0,U=b.charCodeAt(0);if(j===1)return H(U)?(g.root=g.dir=b,g):(g.base=g.name=b,g);if(H(U)){if(ie=1,H(b.charCodeAt(1))){let Z=2,te=Z;for(;Z<j&&!H(b.charCodeAt(Z));)Z++;if(Z<j&&Z!==te){for(te=Z;Z<j&&H(b.charCodeAt(Z));)Z++;if(Z<j&&Z!==te){for(te=Z;Z<j&&!H(b.charCodeAt(Z));)Z++;Z===j?ie=Z:Z!==te&&(ie=Z+1)}}}}else if(ge(U)&&b.charCodeAt(1)===58){if(j<=2)return g.root=g.dir=b,g;if(ie=2,H(b.charCodeAt(2))){if(j===3)return g.root=g.dir=b,g;ie=3}}ie>0&&(g.root=b.slice(0,ie));let q=-1,B=ie,se=-1,ke=!0,xe=b.length-1,Y=0;for(;xe>=ie;--xe)if(U=b.charCodeAt(xe),H(U)){if(!ke){B=xe+1;break}}else se===-1&&(ke=!1,se=xe+1),U===46?q===-1?q=xe:Y!==1&&(Y=1):q!==-1&&(Y=-1);return se!==-1&&(q===-1||Y===0||Y===1&&q===se-1&&q===B+1?g.base=g.name=b.slice(B,se):(g.name=b.slice(B,q),g.base=b.slice(B,se),g.ext=b.slice(q,se))),g.dir=B>0&&B!==ie?b.slice(0,B-1):g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...b){let g="",j=!1;for(let ie=b.length-1;ie>=-1&&!j;ie--){let U=ie>=0?b[ie]:h.a();D(U,"path"),U.length!==0&&(g=`${U}/${g}`,j=U.charCodeAt(0)===47)}return g=W(g,!j,"/",E),j?"/"+g:g.length>0?g:"."},normalize(b){if(D(b,"path"),b.length===0)return".";let g=b.charCodeAt(0)===47,j=b.charCodeAt(b.length-1)===47;return(b=W(b,!g,"/",E)).length===0?g?"/":j?"./":".":(j&&(b+="/"),g?"/"+b:b)},isAbsolute:b=>(D(b,"path"),b.length>0&&b.charCodeAt(0)===47),join(...b){if(b.length===0)return".";let g;for(let j=0;j<b.length;++j){let ie=b[j];D(ie,"path"),ie.length>0&&(g===void 0?g=ie:g+="/"+ie)}return g===void 0?".":C.normalize(g)},relative(b,g){if(D(b,"from"),D(g,"to"),b===g||(b=C.resolve(b))===(g=C.resolve(g)))return"";let j=b.length,ie=j-1,U=g.length-1,q=ie<U?ie:U,B=-1,se=0;for(;se<q;se++){let xe=b.charCodeAt(1+se);if(xe!==g.charCodeAt(1+se))break;xe===47&&(B=se)}if(se===q)if(U>q){if(g.charCodeAt(1+se)===47)return g.slice(1+se+1);if(se===0)return g.slice(1+se)}else ie>q&&(b.charCodeAt(1+se)===47?B=se:se===0&&(B=0));let ke="";for(se=1+B+1;se<=j;++se)se!==j&&b.charCodeAt(se)!==47||(ke+=ke.length===0?"..":"/..");return`${ke}${g.slice(1+B)}`},toNamespacedPath:b=>b,dirname(b){if(D(b,"path"),b.length===0)return".";let g=b.charCodeAt(0)===47,j=-1,ie=!0;for(let U=b.length-1;U>=1;--U)if(b.charCodeAt(U)===47){if(!ie){j=U;break}}else ie=!1;return j===-1?g?"/":".":g&&j===1?"//":b.slice(0,j)},basename(b,g){g!==void 0&&D(g,"ext"),D(b,"path");let j,ie=0,U=-1,q=!0;if(g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let B=g.length-1,se=-1;for(j=b.length-1;j>=0;--j){let ke=b.charCodeAt(j);if(ke===47){if(!q){ie=j+1;break}}else se===-1&&(q=!1,se=j+1),B>=0&&(ke===g.charCodeAt(B)?--B==-1&&(U=j):(B=-1,U=se))}return ie===U?U=se:U===-1&&(U=b.length),b.slice(ie,U)}for(j=b.length-1;j>=0;--j)if(b.charCodeAt(j)===47){if(!q){ie=j+1;break}}else U===-1&&(q=!1,U=j+1);return U===-1?"":b.slice(ie,U)},extname(b){D(b,"path");let g=-1,j=0,ie=-1,U=!0,q=0;for(let B=b.length-1;B>=0;--B){let se=b.charCodeAt(B);if(se!==47)ie===-1&&(U=!1,ie=B+1),se===46?g===-1?g=B:q!==1&&(q=1):g!==-1&&(q=-1);else if(!U){j=B+1;break}}return g===-1||ie===-1||q===0||q===1&&g===ie-1&&g===j+1?"":b.slice(g,ie)},format:Q.bind(null,"/"),parse(b){D(b,"path");let g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;let j=b.charCodeAt(0)===47,ie;j?(g.root="/",ie=1):ie=0;let U=-1,q=0,B=-1,se=!0,ke=b.length-1,xe=0;for(;ke>=ie;--ke){let Y=b.charCodeAt(ke);if(Y!==47)B===-1&&(se=!1,B=ke+1),Y===46?U===-1?U=ke:xe!==1&&(xe=1):U!==-1&&(xe=-1);else if(!se){q=ke+1;break}}if(B!==-1){let Y=q===0&&j?1:q;U===-1||xe===0||xe===1&&U===B-1&&U===q+1?g.base=g.name=b.slice(Y,B):(g.name=b.slice(Y,U),g.base=b.slice(Y,B),g.ext=b.slice(U,B))}return q>0?g.dir=b.slice(0,q-1):j&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};C.win32=y.win32=y,C.posix=y.posix=C;let S=h.c==="win32"?y.normalize:C.normalize,P=h.c==="win32"?y.resolve:C.resolve,V=h.c==="win32"?y.relative:C.relative,k=h.c==="win32"?y.dirname:C.dirname,l=h.c==="win32"?y.basename:C.basename,T=h.c==="win32"?y.extname:C.extname,N=h.c==="win32"?y.sep:C.sep},function(Ie,w,o){"use strict";o.d(w,"b",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"f",function(){return Q}),o.d(w,"e",function(){return C}),o.d(w,"d",function(){return P}),o.d(w,"c",function(){return V});var h=o(13);class f{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(l,T){this._keyCodeToStr[l]=T,this._strToKeyCode[T.toLowerCase()]=l}keyCodeToStr(l){return this._keyCodeToStr[l]}strToKeyCode(l){return this._strToKeyCode[l.toLowerCase()]||0}}let D=new f,H=new f,E=new f;var ge;function W(k,l){return(k|(65535&l)<<16>>>0)>>>0}function Q(k,l){if(k===0)return null;let T=(65535&k)>>>0,N=(4294901760&k)>>>16;return new S(N!==0?[y(T,l),y(N,l)]:[y(T,l)])}function y(k,l){let T=!!(2048&k),N=!!(256&k);return new C(l===2?N:T,!!(1024&k),!!(512&k),l===2?T:N,255&k)}(function(){function k(l,T,N=T,b=N){D.define(l,T),H.define(l,N),E.define(l,b)}k(0,"unknown"),k(1,"Backspace"),k(2,"Tab"),k(3,"Enter"),k(4,"Shift"),k(5,"Ctrl"),k(6,"Alt"),k(7,"PauseBreak"),k(8,"CapsLock"),k(9,"Escape"),k(10,"Space"),k(11,"PageUp"),k(12,"PageDown"),k(13,"End"),k(14,"Home"),k(15,"LeftArrow","Left"),k(16,"UpArrow","Up"),k(17,"RightArrow","Right"),k(18,"DownArrow","Down"),k(19,"Insert"),k(20,"Delete"),k(21,"0"),k(22,"1"),k(23,"2"),k(24,"3"),k(25,"4"),k(26,"5"),k(27,"6"),k(28,"7"),k(29,"8"),k(30,"9"),k(31,"A"),k(32,"B"),k(33,"C"),k(34,"D"),k(35,"E"),k(36,"F"),k(37,"G"),k(38,"H"),k(39,"I"),k(40,"J"),k(41,"K"),k(42,"L"),k(43,"M"),k(44,"N"),k(45,"O"),k(46,"P"),k(47,"Q"),k(48,"R"),k(49,"S"),k(50,"T"),k(51,"U"),k(52,"V"),k(53,"W"),k(54,"X"),k(55,"Y"),k(56,"Z"),k(57,"Meta"),k(58,"ContextMenu"),k(59,"F1"),k(60,"F2"),k(61,"F3"),k(62,"F4"),k(63,"F5"),k(64,"F6"),k(65,"F7"),k(66,"F8"),k(67,"F9"),k(68,"F10"),k(69,"F11"),k(70,"F12"),k(71,"F13"),k(72,"F14"),k(73,"F15"),k(74,"F16"),k(75,"F17"),k(76,"F18"),k(77,"F19"),k(78,"NumLock"),k(79,"ScrollLock"),k(80,";",";","OEM_1"),k(81,"=","=","OEM_PLUS"),k(82,",",",","OEM_COMMA"),k(83,"-","-","OEM_MINUS"),k(84,".",".","OEM_PERIOD"),k(85,"/","/","OEM_2"),k(86,"`","`","OEM_3"),k(110,"ABNT_C1"),k(111,"ABNT_C2"),k(87,"[","[","OEM_4"),k(88,"\\","\\","OEM_5"),k(89,"]","]","OEM_6"),k(90,"'","'","OEM_7"),k(91,"OEM_8"),k(92,"OEM_102"),k(93,"NumPad0"),k(94,"NumPad1"),k(95,"NumPad2"),k(96,"NumPad3"),k(97,"NumPad4"),k(98,"NumPad5"),k(99,"NumPad6"),k(100,"NumPad7"),k(101,"NumPad8"),k(102,"NumPad9"),k(103,"NumPad_Multiply"),k(104,"NumPad_Add"),k(105,"NumPad_Separator"),k(106,"NumPad_Subtract"),k(107,"NumPad_Decimal"),k(108,"NumPad_Divide")})(),function(k){k.toString=function(l){return D.keyCodeToStr(l)},k.fromString=function(l){return D.strToKeyCode(l)},k.toUserSettingsUS=function(l){return H.keyCodeToStr(l)},k.toUserSettingsGeneral=function(l){return E.keyCodeToStr(l)},k.fromUserSettings=function(l){return H.strToKeyCode(l)||E.strToKeyCode(l)}}(ge||(ge={}));class C{constructor(l,T,N,b,g){this.ctrlKey=l,this.shiftKey=T,this.altKey=N,this.metaKey=b,this.keyCode=g}equals(l){return this.ctrlKey===l.ctrlKey&&this.shiftKey===l.shiftKey&&this.altKey===l.altKey&&this.metaKey===l.metaKey&&this.keyCode===l.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new S([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class S{constructor(l){if(l.length===0)throw Object(h.b)("parts");this.parts=l}}class P{constructor(l,T,N,b,g,j){this.ctrlKey=l,this.shiftKey=T,this.altKey=N,this.metaKey=b,this.keyLabel=g,this.keyAriaLabel=j}}class V{}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(6);let f=(H,E,ge)=>{let W=y=>Q.fire(y),Q=new h.a({onFirstListenerAdd:()=>{H.addEventListener(E,W,ge)},onLastListenerRemove:()=>{H.removeEventListener(E,W,ge)}});return Q.event};function D(H){return h.b.map(H,E=>(E.preventDefault(),E.stopPropagation(),E))}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return h}),o.d(w,"a",function(){return H});var h,f=o(23),D=o(11);(function(E){E.inMemory="inmemory",E.vscode="vscode",E.internal="private",E.walkThrough="walkThrough",E.walkThroughSnippet="walkThroughSnippet",E.http="http",E.https="https",E.file="file",E.mailto="mailto",E.untitled="untitled",E.data="data",E.command="command",E.vscodeRemote="vscode-remote",E.vscodeRemoteResource="vscode-remote-resource",E.userData="vscode-userdata",E.vscodeCustomEditor="vscode-custom-editor",E.vscodeNotebook="vscode-notebook",E.vscodeNotebookCell="vscode-notebook-cell",E.vscodeSettings="vscode-settings",E.webviewPanel="webview-panel",E.vscodeWebview="vscode-webview",E.vscodeWebviewResource="vscode-webview-resource",E.extension="extension"})(h||(h={}));let H=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(E){this._preferredWebSchema=E}rewrite(E){if(this._delegate)return this._delegate(E);let ge=E.authority,W=this._hosts[ge];W&&W.indexOf(":")!==-1&&(W=`[${W}]`);let Q=this._ports[ge],y=this._connectionTokens[ge],C="path="+encodeURIComponent(E.path);return typeof y=="string"&&(C+="&tkn="+encodeURIComponent(y)),f.a.from({scheme:D.h?this._preferredWebSchema:h.vscodeRemoteResource,authority:`${W}:${Q}`,path:"/vscode-remote-resource",query:C})}}},function(Ie,w,o){"use strict";o.d(w,"c",function(){return f}),o.d(w,"d",function(){return D}),o.d(w,"b",function(){return E}),o.d(w,"g",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"e",function(){return Q}),o.d(w,"f",function(){return y});var h=o(14);function f(C){if(!C||typeof C!="object"||C instanceof RegExp)return C;let S=Array.isArray(C)?[]:{};return Object.keys(C).forEach(P=>{C[P]&&typeof C[P]=="object"?S[P]=f(C[P]):S[P]=C[P]}),S}function D(C){if(!C||typeof C!="object")return C;let S=[C];for(;S.length>0;){let P=S.shift();Object.freeze(P);for(let V in P)if(H.call(P,V)){let k=P[V];typeof k!="object"||Object.isFrozen(k)||S.push(k)}}return C}let H=Object.prototype.hasOwnProperty;function E(C,S){return function P(V,k,l){if(Object(h.l)(V))return V;let T=k(V);if(T!==void 0)return T;if(Object(h.e)(V)){let N=[];for(let b of V)N.push(P(b,k,l));return N}if(Object(h.i)(V)){if(l.has(V))throw new Error("Cannot clone recursive data-structure");l.add(V);let N={};for(let b in V)H.call(V,b)&&(N[b]=P(V[b],k,l));return l.delete(V),N}return V}(C,S,new Set)}function ge(C,S,P=!0){return Object(h.i)(C)?(Object(h.i)(S)&&Object.keys(S).forEach(V=>{V in C?P&&(Object(h.i)(C[V])&&Object(h.i)(S[V])?ge(C[V],S[V],P):C[V]=S[V]):C[V]=S[V]}),C):S}function W(C,...S){return S.forEach(P=>Object.keys(P).forEach(V=>C[V]=P[V])),C}function Q(C,S){if(C===S)return!0;if(C==null||S==null||typeof C!=typeof S||typeof C!="object"||Array.isArray(C)!==Array.isArray(S))return!1;let P,V;if(Array.isArray(C)){if(C.length!==S.length)return!1;for(P=0;P<C.length;P++)if(!Q(C[P],S[P]))return!1}else{let k=[];for(V in C)k.push(V);k.sort();let l=[];for(V in S)l.push(V);if(l.sort(),!Q(k,l))return!1;for(P=0;P<k.length;P++)if(!Q(C[k[P]],S[k[P]]))return!1}return!0}function y(C,S,P){let V=S(C);return V===void 0?P:V}},function(Ie,w,o){"use strict";var h=o(108);o.d(w,"a",function(){return h.b}),o.d(w,"b",function(){return h.e}),o.d(w,"c",function(){return h.h}),o.d(w,"d",function(){return h.l}),o.d(w,"e",function(){return h.m}),o.d(w,"f",function(){return h.n})},function(Ie,w,o){"use strict";var h;o.d(w,"g",function(){return xs}),o.d(w,"d",function(){return In}),o.d(w,"b",function(){return vo}),o.d(w,"a",function(){return zn}),o.d(w,"e",function(){return eo}),o.d(w,"c",function(){return Ur}),o.d(w,"f",function(){return dr}),o.d(w,"h",function(){return Nc}),o.d(w,"j",function(){return Ic}),o.d(w,"i",function(){return Oc}),function(x){x[x.Ident=0]="Ident",x[x.AtKeyword=1]="AtKeyword",x[x.String=2]="String",x[x.BadString=3]="BadString",x[x.UnquotedString=4]="UnquotedString",x[x.Hash=5]="Hash",x[x.Num=6]="Num",x[x.Percentage=7]="Percentage",x[x.Dimension=8]="Dimension",x[x.UnicodeRange=9]="UnicodeRange",x[x.CDO=10]="CDO",x[x.CDC=11]="CDC",x[x.Colon=12]="Colon",x[x.SemiColon=13]="SemiColon",x[x.CurlyL=14]="CurlyL",x[x.CurlyR=15]="CurlyR",x[x.ParenthesisL=16]="ParenthesisL",x[x.ParenthesisR=17]="ParenthesisR",x[x.BracketL=18]="BracketL",x[x.BracketR=19]="BracketR",x[x.Whitespace=20]="Whitespace",x[x.Includes=21]="Includes",x[x.Dashmatch=22]="Dashmatch",x[x.SubstringOperator=23]="SubstringOperator",x[x.PrefixOperator=24]="PrefixOperator",x[x.SuffixOperator=25]="SuffixOperator",x[x.Delim=26]="Delim",x[x.EMS=27]="EMS",x[x.EXS=28]="EXS",x[x.Length=29]="Length",x[x.Angle=30]="Angle",x[x.Time=31]="Time",x[x.Freq=32]="Freq",x[x.Exclamation=33]="Exclamation",x[x.Resolution=34]="Resolution",x[x.Comma=35]="Comma",x[x.Charset=36]="Charset",x[x.EscapedJavaScript=37]="EscapedJavaScript",x[x.BadEscapedJavaScript=38]="BadEscapedJavaScript",x[x.Comment=39]="Comment",x[x.SingleLineComment=40]="SingleLineComment",x[x.EOF=41]="EOF",x[x.CustomToken=42]="CustomToken"}(h||(h={}));var f=function(){function x(c){this.source=c,this.len=c.length,this.position=0}return x.prototype.substring=function(c,p){return p===void 0&&(p=this.position),this.source.substring(c,p)},x.prototype.eos=function(){return this.len<=this.position},x.prototype.pos=function(){return this.position},x.prototype.goBackTo=function(c){this.position=c},x.prototype.goBack=function(c){this.position-=c},x.prototype.advance=function(c){this.position+=c},x.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},x.prototype.peekChar=function(c){return c===void 0&&(c=0),this.source.charCodeAt(this.position+c)||0},x.prototype.lookbackChar=function(c){return c===void 0&&(c=0),this.source.charCodeAt(this.position-c)||0},x.prototype.advanceIfChar=function(c){return c===this.source.charCodeAt(this.position)&&(this.position++,!0)},x.prototype.advanceIfChars=function(c){if(this.position+c.length>this.source.length)return!1;for(var p=0;p<c.length;p++)if(this.source.charCodeAt(this.position+p)!==c[p])return!1;return this.advance(p),!0},x.prototype.advanceWhileChar=function(c){for(var p=this.position;this.position<this.len&&c(this.source.charCodeAt(this.position));)this.position++;return this.position-p},x}(),D="a".charCodeAt(0),H="f".charCodeAt(0),E="z".charCodeAt(0),ge="A".charCodeAt(0),W="F".charCodeAt(0),Q="Z".charCodeAt(0),y="0".charCodeAt(0),C="9".charCodeAt(0),S="~".charCodeAt(0),P="^".charCodeAt(0),V="=".charCodeAt(0),k="|".charCodeAt(0),l="-".charCodeAt(0),T="_".charCodeAt(0),N="%".charCodeAt(0),b="*".charCodeAt(0),g="(".charCodeAt(0),j=")".charCodeAt(0),ie="<".charCodeAt(0),U=">".charCodeAt(0),q="@".charCodeAt(0),B="#".charCodeAt(0),se="$".charCodeAt(0),ke="\\".charCodeAt(0),xe="/".charCodeAt(0),Y=` +$3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Hn=r(140),Jn=Oi(),br=function(){function ye(le,ue){this.patternRegExps=[],this.isInclude=[];try{for(var qe=0,Ze=le;qe<Ze.length;qe++){var tt=Ze[qe],ot=tt[0]!=="!";ot||(tt=tt.substring(1)),this.patternRegExps.push(new RegExp(un(tt)+"$")),this.isInclude.push(ot)}this.uris=ue}catch(zt){this.patternRegExps.length=0,this.isInclude.length=0,this.uris=[]}}return ye.prototype.matchesPattern=function(le){for(var ue=!1,qe=0;qe<this.patternRegExps.length;qe++)this.patternRegExps[qe].test(le)&&(ue=this.isInclude[qe]);return ue},ye.prototype.getURIs=function(){return this.uris},ye}(),pn=function(){function ye(le,ue,qe){this.service=le,this.url=ue,this.dependencies={},qe&&(this.unresolvedSchema=this.service.promise.resolve(new Gn(qe)))}return ye.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},ye.prototype.getResolvedSchema=function(){var le=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(ue){return le.service.resolveSchemaContent(ue,le.url,le.dependencies)})),this.resolvedSchema},ye.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},ye}(),Gn=function(ye,le){le===void 0&&(le=[]),this.schema=ye,this.errors=le},rn=function(){function ye(le,ue){ue===void 0&&(ue=[]),this.schema=le,this.errors=ue}return ye.prototype.getSection=function(le){var ue=this.getSectionRecursive(le,this.schema);if(ue)return Ri(ue)},ye.prototype.getSectionRecursive=function(le,ue){if(!ue||typeof ue=="boolean"||le.length===0)return ue;var qe=le.shift();if(ue.properties&&(ue.properties[qe],1))return this.getSectionRecursive(le,ue.properties[qe]);if(ue.patternProperties)for(var Ze=0,tt=Object.keys(ue.patternProperties);Ze<tt.length;Ze++){var ot=tt[Ze];if(new RegExp(ot).test(qe))return this.getSectionRecursive(le,ue.patternProperties[ot])}else{if(typeof ue.additionalProperties=="object")return this.getSectionRecursive(le,ue.additionalProperties);if(qe.match("[0-9]+")){if(Array.isArray(ue.items)){var zt=parseInt(qe,10);if(!isNaN(zt)&&ue.items[zt])return this.getSectionRecursive(le,ue.items[zt])}else if(ue.items)return this.getSectionRecursive(le,ue.items)}}},ye}(),dr=function(){function ye(le,ue,qe){this.contextService=ue,this.requestService=le,this.promiseConstructor=qe||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return ye.prototype.getRegisteredSchemaIds=function(le){return Object.keys(this.registeredSchemasIds).filter(function(ue){var qe=Hn.a.parse(ue).scheme;return qe!=="schemaservice"&&(!le||le(qe))})},Object.defineProperty(ye.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),ye.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},ye.prototype.onResourceChange=function(le){for(var ue=this,qe=!1,Ze=[le=On(le)],tt=Object.keys(this.schemasById).map(function(xi){return ue.schemasById[xi]});Ze.length;)for(var ot=Ze.pop(),zt=0;zt<tt.length;zt++){var Jt=tt[zt];Jt&&(Jt.url===ot||Jt.dependencies[ot])&&(Jt.url!==ot&&Ze.push(Jt.url),Jt.clearSchema(),tt[zt]=void 0,qe=!0)}return qe},ye.prototype.setSchemaContributions=function(le){if(le.schemas){var ue=le.schemas;for(var qe in ue){var Ze=On(qe);this.contributionSchemas[Ze]=this.addSchemaHandle(Ze,ue[qe])}}if(Array.isArray(le.schemaAssociations))for(var tt=0,ot=le.schemaAssociations;tt<ot.length;tt++){var zt=ot[tt],Jt=zt.uris.map(On),xi=this.addFilePatternAssociation(zt.pattern,Jt);this.contributionAssociations.push(xi)}},ye.prototype.addSchemaHandle=function(le,ue){var qe=new pn(this,le,ue);return this.schemasById[le]=qe,qe},ye.prototype.getOrAddSchemaHandle=function(le,ue){return this.schemasById[le]||this.addSchemaHandle(le,ue)},ye.prototype.addFilePatternAssociation=function(le,ue){var qe=new br(le,ue);return this.filePatternAssociations.push(qe),qe},ye.prototype.registerExternalSchema=function(le,ue,qe){var Ze=On(le);return this.registeredSchemasIds[Ze]=!0,this.cachedSchemaForResource=void 0,ue&&this.addFilePatternAssociation(ue,[le]),qe?this.addSchemaHandle(Ze,qe):this.getOrAddSchemaHandle(Ze)},ye.prototype.clearExternalSchemas=function(){for(var le in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[le]=this.contributionSchemas[le],this.registeredSchemasIds[le]=!0;for(var ue=0,qe=this.contributionAssociations;ue<qe.length;ue++){var Ze=qe[ue];this.filePatternAssociations.push(Ze)}},ye.prototype.getResolvedSchema=function(le){var ue=On(le),qe=this.schemasById[ue];return qe?qe.getResolvedSchema():this.promise.resolve(void 0)},ye.prototype.loadSchema=function(le){if(!this.requestService){var ue=Jn("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",qt(le));return this.promise.resolve(new Gn({},[ue]))}return this.requestService(le).then(function(qe){if(!qe){var Ze=Jn("json.schema.nocontent","Unable to load schema from '{0}': No content.",qt(le));return new Gn({},[Ze])}var tt,ot=[];tt=ie.f(qe,ot);var zt=ot.length?[Jn("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",qt(le),ot[0].offset)]:[];return new Gn(tt,zt)},function(qe){var Ze=qe.toString(),tt=qe.toString().split("Error: ");return tt.length>1&&(Ze=tt[1]),xn(Ze,".")&&(Ze=Ze.substr(0,Ze.length-1)),new Gn({},[Jn("json.schema.nocontent","Unable to load schema from '{0}': {1}.",qt(le),Ze)])})},ye.prototype.resolveSchemaContent=function(le,ue,qe){var Ze=this,tt=le.errors.slice(0),ot=le.schema;if(ot.$schema){var zt=On(ot.$schema);if(zt==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new rn({},[Jn("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));zt==="https://json-schema.org/draft/2019-09/schema"&&tt.push(Jn("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var Jt=this.contextService,xi=function(fi,ui,Te,Ee){var ve=Ee?decodeURIComponent(Ee):void 0,Re=function(Be,Le){if(!Le)return Be;var Ke=Be;return Le[0]==="/"&&(Le=Le.substr(1)),Le.split("/").some(function(dt){return!(Ke=Ke[dt])}),Ke}(ui,ve);if(Re)for(var We in Re)Re.hasOwnProperty(We)&&!fi.hasOwnProperty(We)&&(fi[We]=Re[We]);else tt.push(Jn("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",ve,Te))},Ei=function(fi,ui,Te,Ee,ve){Jt&&!/^\w+:\/\/.*/.test(ui)&&(ui=Jt.resolveRelativePath(ui,Ee)),ui=On(ui);var Re=Ze.getOrAddSchemaHandle(ui);return Re.getUnresolvedSchema().then(function(We){if(ve[ui]=!0,We.errors.length){var Be=Te?ui+"#"+Te:ui;tt.push(Jn("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Be,We.errors[0]))}return xi(fi,We.schema,ui,Te),ai(fi,We.schema,ui,Re.dependencies)})},ai=function(fi,ui,Te,Ee){if(!fi||typeof fi!="object")return Promise.resolve(null);for(var ve=[fi],Re=[],We=[],Be=function(Ke){for(var dt=[];Ke.$ref;){var yt=Ke.$ref,xt=yt.split("#",2);if(delete Ke.$ref,xt[0].length>0)return void We.push(Ei(Ke,xt[0],xt[1],Te,Ee));dt.indexOf(yt)===-1&&(xi(Ke,ui,Te,xt[1]),dt.push(yt))}(function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,oi=Xt;Yt<oi.length;Yt++){var qi=oi[Yt];typeof qi=="object"&&ve.push(qi)}})(Ke.items,Ke.additionalItems,Ke.additionalProperties,Ke.not,Ke.contains,Ke.propertyNames,Ke.if,Ke.then,Ke.else),function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,oi=Xt;Yt<oi.length;Yt++){var qi=oi[Yt];if(typeof qi=="object")for(var an in qi){var _n=an,ei=qi[_n];typeof ei=="object"&&ve.push(ei)}}}(Ke.definitions,Ke.properties,Ke.patternProperties,Ke.dependencies),function(){for(var Xt=[],mi=0;mi<arguments.length;mi++)Xt[mi]=arguments[mi];for(var Yt=0,oi=Xt;Yt<oi.length;Yt++){var qi=oi[Yt];if(Array.isArray(qi))for(var an=0,_n=qi;an<_n.length;an++){var ei=_n[an];typeof ei=="object"&&ve.push(ei)}}}(Ke.anyOf,Ke.allOf,Ke.oneOf,Ke.items)};ve.length;){var Le=ve.pop();Re.indexOf(Le)>=0||(Re.push(Le),Be(Le))}return Ze.promise.all(We)};return ai(ot,ot,ue,qe).then(function(fi){return new rn(ot,tt)})},ye.prototype.getSchemaForResource=function(le,ue){if(ue&&ue.root&&ue.root.type==="object"){var qe=ue.root.properties.filter(function(ve){return ve.keyNode.value==="$schema"&&ve.valueNode&&ve.valueNode.type==="string"});if(qe.length>0){var Ze=qe[0].valueNode;if(Ze&&Ze.type==="string"){var tt=kt(Ze);if(tt&&function(ve,Re){if(ve.length<Re.length)return!1;for(var We=0;We<Re.length;We++)if(ve[We]!==Re[We])return!1;return!0}(tt,".")&&this.contextService&&(tt=this.contextService.resolveRelativePath(tt,le)),tt){var ot=On(tt);return this.getOrAddSchemaHandle(ot).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===le)return this.cachedSchemaForResource.resolvedSchema;for(var zt=Object.create(null),Jt=[],xi=0,Ei=this.filePatternAssociations;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.matchesPattern(le))for(var fi=0,ui=ai.getURIs();fi<ui.length;fi++){var Te=ui[fi];zt[Te]||(Jt.push(Te),zt[Te]=!0)}}var Ee=Jt.length>0?this.createCombinedSchema(le,Jt).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:le,resolvedSchema:Ee},Ee},ye.prototype.createCombinedSchema=function(le,ue){if(ue.length===1)return this.getOrAddSchemaHandle(ue[0]);var qe="schemaservice://combinedSchema/"+encodeURIComponent(le),Ze={allOf:ue.map(function(tt){return{$ref:tt}})};return this.addSchemaHandle(qe,Ze)},ye.prototype.getMatchingSchemas=function(le,ue,qe){if(qe){var Ze=qe.id||"schemaservice://untitled/matchingSchemas/"+Dn++;return this.resolveSchemaContent(new Gn(qe),Ze,{}).then(function(tt){return ue.getMatchingSchemas(tt.schema).filter(function(ot){return!ot.inverted})})}return this.getSchemaForResource(le.uri,ue).then(function(tt){return tt?ue.getMatchingSchemas(tt.schema).filter(function(ot){return!ot.inverted}):[]})},ye}(),Dn=0;function On(ye){try{return Hn.a.parse(ye).toString()}catch(le){return ye}}function qt(ye){try{var le=Hn.a.parse(ye);if(le.scheme==="file")return le.fsPath}catch(ue){}return ye}var I=Oi(),ne=function(){function ye(le,ue){this.jsonSchemaService=le,this.promise=ue,this.validationEnabled=!0}return ye.prototype.configure=function(le){le&&(this.validationEnabled=le.validate,this.commentSeverity=le.allowComments?void 0:S.Error)},ye.prototype.doValidation=function(le,ue,qe,Ze){var tt=this;if(!this.validationEnabled)return this.promise.resolve([]);var ot=[],zt={},Jt=function(ai){var fi=ai.range.start.line+" "+ai.range.start.character+" "+ai.message;zt[fi]||(zt[fi]=!0,ot.push(ai))},xi=function(ai){var fi=qe?Fe(qe.trailingCommas):S.Error,ui=qe?Fe(qe.comments):tt.commentSeverity;if(ai){if(ai.errors.length&&ue.root){var Te=ue.root,Ee=Te.type==="object"?Te.properties[0]:void 0;if(Ee&&Ee.keyNode.value==="$schema"){var ve=Ee.valueNode||Ee,Re=f.create(le.positionAt(ve.offset),le.positionAt(ve.offset+ve.length));Jt(V.create(Re,ai.errors[0],S.Warning,et.SchemaResolveError))}else Re=f.create(le.positionAt(Te.offset),le.positionAt(Te.offset+1)),Jt(V.create(Re,ai.errors[0],S.Warning,et.SchemaResolveError))}else{var We=ue.validate(le,ai.schema);We&&We.forEach(Jt)}(function yt(xt){if(xt&&typeof xt=="object"){if(se(xt.allowComments))return xt.allowComments;if(xt.allOf)for(var Xt=0,mi=xt.allOf;Xt<mi.length;Xt++){var Yt=mi[Xt],oi=yt(Yt);if(se(oi))return oi}}})(ai.schema)&&(ui=void 0),function yt(xt){if(xt&&typeof xt=="object"){if(se(xt.allowTrailingCommas))return xt.allowTrailingCommas;var Xt=xt;if(se(Xt.allowsTrailingCommas))return Xt.allowsTrailingCommas;if(xt.allOf)for(var mi=0,Yt=xt.allOf;mi<Yt.length;mi++){var oi=Yt[mi],qi=yt(oi);if(se(qi))return qi}}}(ai.schema)&&(fi=void 0)}for(var Be=0,Le=ue.syntaxErrors;Be<Le.length;Be++){var Ke=Le[Be];if(Ke.code===et.TrailingComma){if(typeof fi!="number")continue;Ke.severity=fi}Jt(Ke)}if(typeof ui=="number"){var dt=I("InvalidCommentToken","Comments are not permitted in JSON.");ue.comments.forEach(function(yt){Jt(V.create(yt,dt,ui,et.CommentNotPermitted))})}return ot};if(Ze){var Ei=Ze.id||"schemaservice://untitled/"+_e++;return this.jsonSchemaService.resolveSchemaContent(new Gn(Ze),Ei,{}).then(function(ai){return xi(ai)})}return this.jsonSchemaService.getSchemaForResource(le.uri,ue).then(function(ai){return xi(ai)})},ye}(),_e=0;function Fe(ye){switch(ye){case"error":return S.Error;case"warning":return S.Warning;case"ignore":return}}function Xe(ye){return ye<48?0:ye<=57?ye-48:(ye<97&&(ye+=32),ye>=97&&ye<=102?ye-97+10:0)}function rt(ye){if(ye[0]==="#")switch(ye.length){case 4:return{red:17*Xe(ye.charCodeAt(1))/255,green:17*Xe(ye.charCodeAt(2))/255,blue:17*Xe(ye.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Xe(ye.charCodeAt(1))/255,green:17*Xe(ye.charCodeAt(2))/255,blue:17*Xe(ye.charCodeAt(3))/255,alpha:17*Xe(ye.charCodeAt(4))/255};case 7:return{red:(16*Xe(ye.charCodeAt(1))+Xe(ye.charCodeAt(2)))/255,green:(16*Xe(ye.charCodeAt(3))+Xe(ye.charCodeAt(4)))/255,blue:(16*Xe(ye.charCodeAt(5))+Xe(ye.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Xe(ye.charCodeAt(1))+Xe(ye.charCodeAt(2)))/255,green:(16*Xe(ye.charCodeAt(3))+Xe(ye.charCodeAt(4)))/255,blue:(16*Xe(ye.charCodeAt(5))+Xe(ye.charCodeAt(6)))/255,alpha:(16*Xe(ye.charCodeAt(7))+Xe(ye.charCodeAt(8)))/255}}}var Mt=function(){function ye(le){this.schemaService=le}return ye.prototype.findDocumentSymbols=function(le,ue,qe){var Ze=this;qe===void 0&&(qe={resultLimit:Number.MAX_VALUE});var tt=ue.root;if(!tt)return[];var ot=qe.resultLimit||Number.MAX_VALUE,zt=le.uri;if((zt==="vscode://defaultsettings/keybindings.json"||xn(zt.toLowerCase(),"/user/keybindings.json"))&&tt.type==="array"){for(var Jt=[],xi=0,Ei=tt.items;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.type==="object")for(var fi=0,ui=ai.properties;fi<ui.length;fi++){var Te=ui[fi];if(Te.keyNode.value==="key"&&Te.valueNode){var Ee=O.create(le.uri,Dt(le,ai));if(Jt.push({name:kt(Te.valueNode),kind:z.Function,location:Ee}),--ot<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Jt}}}return Jt}for(var ve=[{node:tt,containerName:""}],Re=0,We=!1,Be=[],Le=function(dt,yt){dt.type==="array"?dt.items.forEach(function(xt){xt&&ve.push({node:xt,containerName:yt})}):dt.type==="object"&&dt.properties.forEach(function(xt){var Xt=xt.valueNode;if(Xt)if(ot>0){ot--;var mi=O.create(le.uri,Dt(le,xt)),Yt=yt?yt+"."+xt.keyNode.value:xt.keyNode.value;Be.push({name:Ze.getKeyLabel(xt),kind:Ze.getSymbolKind(Xt.type),location:mi,containerName:yt}),ve.push({node:Xt,containerName:Yt})}else We=!0})};Re<ve.length;){var Ke=ve[Re++];Le(Ke.node,Ke.containerName)}return We&&qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Be},ye.prototype.findDocumentSymbols2=function(le,ue,qe){var Ze=this;qe===void 0&&(qe={resultLimit:Number.MAX_VALUE});var tt=ue.root;if(!tt)return[];var ot=qe.resultLimit||Number.MAX_VALUE,zt=le.uri;if((zt==="vscode://defaultsettings/keybindings.json"||xn(zt.toLowerCase(),"/user/keybindings.json"))&&tt.type==="array"){for(var Jt=[],xi=0,Ei=tt.items;xi<Ei.length;xi++){var ai=Ei[xi];if(ai.type==="object")for(var fi=0,ui=ai.properties;fi<ui.length;fi++){var Te=ui[fi];if(Te.keyNode.value==="key"&&Te.valueNode){var Ee=Dt(le,ai),ve=Dt(le,Te.keyNode);if(Jt.push({name:kt(Te.valueNode),kind:z.Function,range:Ee,selectionRange:ve}),--ot<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Jt}}}return Jt}for(var Re=[],We=[{node:tt,result:Re}],Be=0,Le=!1,Ke=function(yt,xt){yt.type==="array"?yt.items.forEach(function(Xt,mi){if(Xt)if(ot>0){ot--;var Yt=Dt(le,Xt),oi=Yt,qi={name:String(mi),kind:Ze.getSymbolKind(Xt.type),range:Yt,selectionRange:oi,children:[]};xt.push(qi),We.push({result:qi.children,node:Xt})}else Le=!0}):yt.type==="object"&&yt.properties.forEach(function(Xt){var mi=Xt.valueNode;if(mi)if(ot>0){ot--;var Yt=Dt(le,Xt),oi=Dt(le,Xt.keyNode),qi={name:Ze.getKeyLabel(Xt),kind:Ze.getSymbolKind(mi.type),range:Yt,selectionRange:oi,children:[]};xt.push(qi),We.push({result:qi.children,node:mi})}else Le=!0})};Be<We.length;){var dt=We[Be++];Ke(dt.node,dt.result)}return Le&&qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(zt),Re},ye.prototype.getSymbolKind=function(le){switch(le){case"object":return z.Module;case"string":return z.String;case"number":return z.Number;case"array":return z.Array;case"boolean":return z.Boolean;default:return z.Variable}},ye.prototype.getKeyLabel=function(le){var ue=le.keyNode.value;return ue&&(ue=ue.replace(/[\n]/g,"\u21B5")),ue&&ue.trim()?ue:'"'+ue+'"'},ye.prototype.findDocumentColors=function(le,ue,qe){return this.schemaService.getSchemaForResource(le.uri,ue).then(function(Ze){var tt=[];if(Ze)for(var ot=qe&&typeof qe.resultLimit=="number"?qe.resultLimit:Number.MAX_VALUE,zt={},Jt=0,xi=ue.getMatchingSchemas(Ze.schema);Jt<xi.length;Jt++){var Ei=xi[Jt];if(!Ei.inverted&&Ei.schema&&(Ei.schema.format==="color"||Ei.schema.format==="color-hex")&&Ei.node&&Ei.node.type==="string"){var ai=String(Ei.node.offset);if(!zt[ai]){var fi=rt(kt(Ei.node));if(fi){var ui=Dt(le,Ei.node);tt.push({color:fi,range:ui})}if(zt[ai]=!0,--ot<=0)return qe&&qe.onResultLimitExceeded&&qe.onResultLimitExceeded(le.uri),tt}}}return tt})},ye.prototype.getColorPresentations=function(le,ue,qe,Ze){var tt,ot=[],zt=Math.round(255*qe.red),Jt=Math.round(255*qe.green),xi=Math.round(255*qe.blue);function Ei(ai){var fi=ai.toString(16);return fi.length!==2?"0"+fi:fi}return tt=qe.alpha===1?"#"+Ei(zt)+Ei(Jt)+Ei(xi):"#"+Ei(zt)+Ei(Jt)+Ei(xi)+Ei(Math.round(255*qe.alpha)),ot.push({label:tt,textEdit:l.replace(Ze,JSON.stringify(tt))}),ot},ye}();function Dt(ye,le){return f.create(ye.positionAt(le.offset),ye.positionAt(le.offset+le.length))}var Tt=Oi(),Ht={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:Tt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:Tt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},jt={id:Tt("schema.json.id","A unique identifier for the schema."),$schema:Tt("schema.json.$schema","The schema to verify this document against."),title:Tt("schema.json.title","A descriptive title of the element."),description:Tt("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Tt("schema.json.default","A default value. Used by suggestions."),multipleOf:Tt("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Tt("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Tt("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Tt("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Tt("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Tt("schema.json.maxLength","The maximum length of a string."),minLength:Tt("schema.json.minLength","The minimum length of a string."),pattern:Tt("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Tt("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:Tt("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:Tt("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Tt("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Tt("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Tt("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Tt("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Tt("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Tt("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:Tt("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Tt("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Tt("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Tt("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:Tt("schema.json.enum","The set of literal values that are valid."),type:Tt("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:Tt("schema.json.format","Describes the format expected for the value."),allOf:Tt("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Tt("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Tt("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Tt("schema.json.not","A schema which must not match."),$id:Tt("schema.json.$id","A unique identifier for the schema."),$ref:Tt("schema.json.$ref","Reference a definition hosted on any location."),$comment:Tt("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Tt("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Tt("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Tt("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Tt("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:Tt("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Tt("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Tt("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Tt("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Tt("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Tt("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var Kt in Ht.schemas){var wi=Ht.schemas[Kt];for(var Ti in wi.properties){var ft=wi.properties[Ti];typeof ft=="boolean"&&(ft=wi.properties[Ti]={});var X=jt[Ti];X?ft.description=X:console.log(Ti+": localize('schema.json."+Ti+`', "")`)}}function ae(ye,le){var ue=[],qe=[],Ze=[],tt=-1,ot=Object(ie.a)(ye.getText(),!1),zt=ot.scan();function Jt(Xt){ue.push(Xt),qe.push(Ze.length)}for(;zt!==17;){switch(zt){case 1:case 3:var xi={startLine:fi=ye.positionAt(ot.getTokenOffset()).line,endLine:fi,kind:zt===1?"object":"array"};Ze.push(xi);break;case 2:case 4:var Ei=zt===2?"object":"array";if(Ze.length>0&&Ze[Ze.length-1].kind===Ei){xi=Ze.pop();var ai=ye.positionAt(ot.getTokenOffset()).line;xi&&ai>xi.startLine+1&&tt!==xi.startLine&&(xi.endLine=ai-1,Jt(xi),tt=xi.startLine)}break;case 13:var fi=ye.positionAt(ot.getTokenOffset()).line,ui=ye.positionAt(ot.getTokenOffset()+ot.getTokenLength()).line;ot.getTokenError()===1&&fi+1<ye.lineCount?ot.setPosition(ye.offsetAt(h.create(fi+1,0))):fi<ui&&(Jt({startLine:fi,endLine:ui,kind:Q.Comment}),tt=fi);break;case 12:var Te=ye.getText().substr(ot.getTokenOffset(),ot.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(Te)if(ai=ye.positionAt(ot.getTokenOffset()).line,Te[1])xi={startLine:ai,endLine:ai,kind:Q.Region},Ze.push(xi);else{for(var Ee=Ze.length-1;Ee>=0&&Ze[Ee].kind!==Q.Region;)Ee--;Ee>=0&&(xi=Ze[Ee],Ze.length=Ee,ai>xi.startLine&&tt!==xi.startLine&&(xi.endLine=ai,Jt(xi),tt=xi.startLine))}}zt=ot.scan()}var ve=le&&le.rangeLimit;if(typeof ve!="number"||ue.length<=ve)return ue;le&&le.onRangeLimitExceeded&&le.onRangeLimitExceeded(ye.uri);for(var Re=[],We=0,Be=qe;We<Be.length;We++)(xt=Be[We])<30&&(Re[xt]=(Re[xt]||0)+1);var Le=0,Ke=0;for(Ee=0;Ee<Re.length;Ee++){var dt=Re[Ee];if(dt){if(dt+Le>ve){Ke=Ee;break}Le+=dt}}var yt=[];for(Ee=0;Ee<ue.length;Ee++){var xt;typeof(xt=qe[Ee])=="number"&&(xt<Ke||xt===Ke&&Le++<ve)&&yt.push(ue[Ee])}return yt}function Ge(ye,le,ue){function qe(ot,zt){return f.create(ye.positionAt(ot),ye.positionAt(zt))}var Ze=Object(ie.a)(ye.getText(),!0);function tt(ot,zt){return Ze.setPosition(ot),Ze.scan()===zt?Ze.getTokenOffset()+Ze.getTokenLength():-1}return le.map(function(ot){for(var zt=ye.offsetAt(ot),Jt=ue.getNodeFromOffset(zt,!0),xi=[];Jt;){switch(Jt.type){case"string":case"object":case"array":var Ei=Jt.offset+1,ai=Jt.offset+Jt.length-1;Ei<ai&&zt>=Ei&&zt<=ai&&xi.push(qe(Ei,ai)),xi.push(qe(Jt.offset,Jt.offset+Jt.length));break;case"number":case"boolean":case"null":case"property":xi.push(qe(Jt.offset,Jt.offset+Jt.length))}if(Jt.type==="property"||Jt.parent&&Jt.parent.type==="array"){var fi=tt(Jt.offset+Jt.length,5);fi!==-1&&xi.push(qe(Jt.offset,fi))}Jt=Jt.parent}for(var ui=void 0,Te=xi.length-1;Te>=0;Te--)ui=At.create(xi[Te],ui);return ui||(ui=At.create(f.create(ot,ot))),ui})}function lt(ye,le,ue){var qe=ye.offsetAt(le),Ze=ue.getNodeFromOffset(qe,!0);if(!Ze||!function(Jt){return Jt.type==="string"&&Jt.parent&&Jt.parent.type==="property"&&Jt.parent.valueNode===Jt&&Jt.parent.keyNode.value==="$ref"||!1}(Ze))return Promise.resolve([]);var tt=Ze.parent.valueNode,ot=function(Jt,xi){var Ei=function(ai){return ai==="#"?[]:ai[0]!=="#"||ai[1]!=="/"?null:ai.substring(2).split(/\//).map(Gt)}(xi);return Ei?function ai(fi,ui){if(!ui)return null;if(fi.length===0)return ui;var Te=fi.shift();if(ui&&ui.type==="object"){var Ee=ui.properties.find(function(We){return We.keyNode.value===Te});return Ee?ai(fi,Ee.valueNode):null}if(ui&&ui.type==="array"&&Te.match(/^(0|[1-9][0-9]*)$/)){var ve=Number.parseInt(Te),Re=ui.items[ve];return Re?ai(fi,Re):null}return null}(Ei,Jt.root):null}(ue,tt.value);if(!ot)return Promise.resolve([]);var zt={targetUri:ye.uri,originSelectionRange:Ot(ye,tt),targetRange:Ot(ye,ot),targetSelectionRange:Ot(ye,ot)};return Promise.resolve([zt])}function Ot(ye,le){return f.create(ye.positionAt(le.offset),ye.positionAt(le.offset+le.length))}function Gt(ye){return ye.replace(/~1/g,"/").replace(/~0/g,"~")}function ti(ye){var le=ye.promiseConstructor||Promise,ue=new dr(ye.schemaRequestService,ye.workspaceContext,le);ue.setSchemaContributions(Ht);var qe=new Fn(ue,ye.contributions,le,ye.clientCapabilities),Ze=new Mn(ue,ye.contributions,le),tt=new Mt(ue),ot=new ne(ue,le);return{configure:function(zt){ue.clearExternalSchemas(),zt.schemas&&zt.schemas.forEach(function(Jt){ue.registerExternalSchema(Jt.uri,Jt.fileMatch,Jt.schema)}),ot.configure(zt)},resetSchema:function(zt){return ue.onResourceChange(zt)},doValidation:ot.doValidation.bind(ot),parseJSONDocument:function(zt){return Wi(zt,{collectComments:!0})},newJSONDocument:function(zt,Jt){return function(xi,Ei){return Ei===void 0&&(Ei=[]),new Si(xi,Ei,[])}(zt,Jt)},getMatchingSchemas:ue.getMatchingSchemas.bind(ue),doResolve:qe.doResolve.bind(qe),doComplete:qe.doComplete.bind(qe),findDocumentSymbols:tt.findDocumentSymbols.bind(tt),findDocumentSymbols2:tt.findDocumentSymbols2.bind(tt),findColorSymbols:function(zt,Jt){return tt.findDocumentColors(zt,Jt).then(function(xi){return xi.map(function(Ei){return Ei.range})})},findDocumentColors:tt.findDocumentColors.bind(tt),getColorPresentations:tt.getColorPresentations.bind(tt),doHover:Ze.doHover.bind(Ze),getFoldingRanges:ae,getSelectionRanges:Ge,findDefinition:lt,format:function(zt,Jt,xi){var Ei=void 0;if(Jt){var ai=zt.offsetAt(Jt.start);Ei={offset:ai,length:zt.offsetAt(Jt.end)-ai}}var fi={tabSize:xi?xi.tabSize:4,insertSpaces:!xi||xi.insertSpaces,eol:` +`};return Object(ie.c)(zt.getText(),Ei,fi).map(function(ui){return l.replace(f.create(zt.positionAt(ui.offset),zt.positionAt(ui.offset+ui.length)),ui.content)})}}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return l});var h=r(6),f=r(2),O=r(8),H=r(73),E=r(75),ge=r(114);class W{constructor(N){if(N.autoClosingPairs?this._autoClosingPairs=N.autoClosingPairs.map(b=>new E.b(b)):N.brackets?this._autoClosingPairs=N.brackets.map(b=>new E.b({open:b[0],close:b[1]})):this._autoClosingPairs=[],N.__electricCharacterSupport&&N.__electricCharacterSupport.docComment){let b=N.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new E.b({open:b.open,close:b.close||""}))}this._autoCloseBefore=typeof N.autoCloseBefore=="string"?N.autoCloseBefore:W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=N.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(N,b,g){if(b.getTokenCount()===0)return!0;let j=b.findTokenIndexAtOffset(g-2),ie=b.getStandardTokenType(j);return N.isOK(ie)}getSurroundingPairs(){return this._surroundingPairs}}W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> + `;var Q=r(119);class y{constructor(N){this._richEditBrackets=N}getElectricCharacters(){let N=[];if(this._richEditBrackets)for(let b of this._richEditBrackets.brackets)for(let g of b.close){let j=g.charAt(g.length-1);N.push(j)}return N=N.filter((b,g,j)=>j.indexOf(b)===g),N}onElectricCharacter(N,b,g){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;let j=b.findTokenIndexAtOffset(g-1);if(Object(ge.b)(b.getStandardTokenType(j)))return null;let ie=this._richEditBrackets.reversedRegex,U=b.getLineContent().substring(0,g-1)+N,q=Q.a.findPrevBracketInRange(ie,1,U,0,U.length);if(!q)return null;let B=U.substring(q.startColumn-1,q.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[B])return null;let se=b.getActualLineContentBefore(q.startColumn-1);return/^\s*$/.test(se)?{matchOpenBracket:B}:null}}class C{constructor(N){this._indentationRules=N}shouldIncrease(N){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(N))}shouldDecrease(N){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(N))}shouldIndentNextLine(N){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(N))}shouldIgnore(N){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(N))}getIndentMetadata(N){let b=0;return this.shouldIncrease(N)&&(b+=1),this.shouldDecrease(N)&&(b+=2),this.shouldIndentNextLine(N)&&(b+=4),this.shouldIgnore(N)&&(b+=8),b}}var S=r(13);class P{constructor(N){(N=N||{}).brackets=N.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],N.brackets.forEach(b=>{let g=P._createOpenBracketRegExp(b[0]),j=P._createCloseBracketRegExp(b[1]);g&&j&&this._brackets.push({open:b[0],openRegExp:g,close:b[1],closeRegExp:j})}),this._regExpRules=N.onEnterRules||[]}onEnter(N,b,g,j){if(N>=3)for(let ie=0,U=this._regExpRules.length;ie<U;ie++){let q=this._regExpRules[ie];if([{reg:q.beforeText,text:g},{reg:q.afterText,text:j},{reg:q.oneLineAboveText,text:b}].every(B=>!B.reg||B.reg.test(B.text)))return q.action}if(N>=2&&g.length>0&&j.length>0)for(let ie=0,U=this._brackets.length;ie<U;ie++){let q=this._brackets[ie];if(q.openRegExp.test(g)&&q.closeRegExp.test(j))return{indentAction:E.a.IndentOutdent}}if(N>=2&&g.length>0){for(let ie=0,U=this._brackets.length;ie<U;ie++)if(this._brackets[ie].openRegExp.test(g))return{indentAction:E.a.Indent}}return null}static _createOpenBracketRegExp(N){let b=O.v(N);return/\B/.test(b.charAt(0))||(b="\\b"+b),b+="\\s*$",P._safeRegExp(b)}static _createCloseBracketRegExp(N){let b=O.v(N);return/\B/.test(b.charAt(b.length-1))||(b+="\\b"),b="^\\s*"+b,P._safeRegExp(b)}static _safeRegExp(N){try{return new RegExp(N)}catch(b){return Object(S.e)(b),null}}}class V{constructor(N,b,g){this._languageIdentifier=N,this._brackets=null,this._electricCharacter=null;let j=null;b&&(j=b._conf),this._conf=V._mergeConf(j,g),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new P(this._conf):null,this.comments=V._handleComments(this._conf),this.characterPair=new W(this._conf),this.wordDefinition=this._conf.wordPattern||H.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new C(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Q.b(this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new y(this.brackets)),this._electricCharacter}onEnter(N,b,g,j){return this._onEnterSupport?this._onEnterSupport.onEnter(N,b,g,j):null}static _mergeConf(N,b){return{comments:N?b.comments||N.comments:b.comments,brackets:N?b.brackets||N.brackets:b.brackets,wordPattern:N?b.wordPattern||N.wordPattern:b.wordPattern,indentationRules:N?b.indentationRules||N.indentationRules:b.indentationRules,onEnterRules:N?b.onEnterRules||N.onEnterRules:b.onEnterRules,autoClosingPairs:N?b.autoClosingPairs||N.autoClosingPairs:b.autoClosingPairs,surroundingPairs:N?b.surroundingPairs||N.surroundingPairs:b.surroundingPairs,autoCloseBefore:N?b.autoCloseBefore||N.autoCloseBefore:b.autoCloseBefore,folding:N?b.folding||N.folding:b.folding,__electricCharacterSupport:N?b.__electricCharacterSupport||N.__electricCharacterSupport:b.__electricCharacterSupport}}static _handleComments(N){let b=N.comments;if(!b)return null;let g={};if(b.lineComment&&(g.lineCommentToken=b.lineComment),b.blockComment){let[j,ie]=b.blockComment;g.blockCommentStartToken=j,g.blockCommentEndToken=ie}return g}}class k{constructor(N){this.languageIdentifier=N}}let l=new class{constructor(){this._entries=new Map,this._onDidChange=new h.a,this.onDidChange=this._onDidChange.event}register(T,N){let b=this._getRichEditSupport(T.id),g=new V(T,b,N);return this._entries.set(T.id,g),this._onDidChange.fire(new k(T)),Object(f.h)(()=>{this._entries.get(T.id)===g&&(this._entries.set(T.id,b),this._onDidChange.fire(new k(T)))})}_getRichEditSupport(T){return this._entries.get(T)}getIndentationRules(T){let N=this._entries.get(T);return N&&N.indentationRules||null}_getElectricCharacterSupport(T){let N=this._getRichEditSupport(T);return N&&N.electricCharacter||null}getElectricCharacters(T){let N=this._getElectricCharacterSupport(T);return N?N.getElectricCharacters():[]}onElectricCharacter(T,N,b){let g=Object(ge.a)(N,b-1),j=this._getElectricCharacterSupport(g.languageId);return j?j.onElectricCharacter(T,g,b-g.firstCharOffset):null}getComments(T){let N=this._getRichEditSupport(T);return N&&N.comments||null}_getCharacterPairSupport(T){let N=this._getRichEditSupport(T);return N&&N.characterPair||null}getAutoClosingPairs(T){let N=this._getCharacterPairSupport(T);return N?N.getAutoClosingPairs():[]}getAutoCloseBeforeSet(T){let N=this._getCharacterPairSupport(T);return N?N.getAutoCloseBeforeSet():W.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(T){let N=this._getCharacterPairSupport(T);return N?N.getSurroundingPairs():[]}shouldAutoClosePair(T,N,b){let g=Object(ge.a)(N,b-1);return W.shouldAutoClosePair(T,g,b-g.firstCharOffset)}getWordDefinition(T){let N=this._getRichEditSupport(T);return N?Object(H.c)(N.wordDefinition||null):Object(H.c)(null)}getFoldingRules(T){let N=this._getRichEditSupport(T);return N?N.foldingRules:{}}getIndentRulesSupport(T){let N=this._getRichEditSupport(T);return N&&N.indentRulesSupport||null}getPrecedingValidLine(T,N,b){let g=T.getLanguageIdAtPosition(N,0);if(N>1){let j,ie=-1;for(j=N-1;j>=1;j--){if(T.getLanguageIdAtPosition(j,0)!==g)return ie;let U=T.getLineContent(j);if(!b.shouldIgnore(U)&&!/^\s+$/.test(U)&&U!=="")return j;ie=j}}return-1}getInheritIndentForLine(T,N,b,g=!0){if(T<4)return null;let j=this.getIndentRulesSupport(N.getLanguageIdentifier().id);if(!j)return null;if(b<=1)return{indentation:"",action:null};let ie=this.getPrecedingValidLine(N,b,j);if(ie<0)return null;if(ie<1)return{indentation:"",action:null};let U=N.getLineContent(ie);if(j.shouldIncrease(U)||j.shouldIndentNextLine(U))return{indentation:O.z(U),action:E.a.Indent,line:ie};if(j.shouldDecrease(U))return{indentation:O.z(U),action:null,line:ie};{if(ie===1)return{indentation:O.z(N.getLineContent(ie)),action:null,line:ie};let q=ie-1,B=j.getIndentMetadata(N.getLineContent(q));if(!(3&B)&&4&B){let se=0;for(let ke=q-1;ke>0;ke--)if(!j.shouldIndentNextLine(N.getLineContent(ke))){se=ke;break}return{indentation:O.z(N.getLineContent(se+1)),action:null,line:se+1}}if(g)return{indentation:O.z(N.getLineContent(ie)),action:null,line:ie};for(let se=ie;se>0;se--){let ke=N.getLineContent(se);if(j.shouldIncrease(ke))return{indentation:O.z(ke),action:E.a.Indent,line:se};if(j.shouldIndentNextLine(ke)){let xe=0;for(let Y=se-1;Y>0;Y--)if(!j.shouldIndentNextLine(N.getLineContent(se))){xe=Y;break}return{indentation:O.z(N.getLineContent(xe+1)),action:null,line:xe+1}}if(j.shouldDecrease(ke))return{indentation:O.z(ke),action:null,line:se}}return{indentation:O.z(N.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(T,N,b,g,j){if(T<4)return null;let ie=this._getRichEditSupport(b);if(!ie)return null;let U=this.getIndentRulesSupport(b);if(!U)return null;let q=this.getInheritIndentForLine(T,N,g),B=N.getLineContent(g);if(q){let se=q.line;if(se!==void 0){let ke=ie.onEnter(T,"",N.getLineContent(se),"");if(ke){let xe=O.z(N.getLineContent(se));return ke.removeText&&(xe=xe.substring(0,xe.length-ke.removeText)),ke.indentAction===E.a.Indent||ke.indentAction===E.a.IndentOutdent?xe=j.shiftIndent(xe):ke.indentAction===E.a.Outdent&&(xe=j.unshiftIndent(xe)),U.shouldDecrease(B)&&(xe=j.unshiftIndent(xe)),ke.appendText&&(xe+=ke.appendText),O.z(xe)}}return U.shouldDecrease(B)?q.action===E.a.Indent?q.indentation:j.unshiftIndent(q.indentation):q.action===E.a.Indent?j.shiftIndent(q.indentation):q.indentation}return null}getIndentForEnter(T,N,b,g){if(T<4)return null;N.forceTokenization(b.startLineNumber);let j=N.getLineTokens(b.startLineNumber),ie=Object(ge.a)(j,b.startColumn-1),U=ie.getLineContent(),q,B,se=!1;ie.firstCharOffset>0&&j.getLanguageId(0)!==ie.languageId?(se=!0,q=U.substr(0,b.startColumn-1-ie.firstCharOffset)):q=j.getLineContent().substring(0,b.startColumn-1),b.isEmpty()?B=U.substr(b.startColumn-1-ie.firstCharOffset):B=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-ie.firstCharOffset);let ke=this.getIndentRulesSupport(ie.languageId);if(!ke)return null;let xe=q,Y=O.z(q),Z={getLineTokens:Ae=>N.getLineTokens(Ae),getLanguageIdentifier:()=>N.getLanguageIdentifier(),getLanguageIdAtPosition:(Ae,L)=>N.getLanguageIdAtPosition(Ae,L),getLineContent:Ae=>Ae===b.startLineNumber?xe:N.getLineContent(Ae)},te=O.z(j.getLineContent()),he=this.getInheritIndentForLine(T,Z,b.startLineNumber+1);if(!he){let Ae=se?te:Y;return{beforeEnter:Ae,afterEnter:Ae}}let Ce=se?te:he.indentation;return he.action===E.a.Indent&&(Ce=g.shiftIndent(Ce)),ke.shouldDecrease(B)&&(Ce=g.unshiftIndent(Ce)),{beforeEnter:se?te:Y,afterEnter:Ce}}getIndentActionForType(T,N,b,g,j){if(T<4)return null;let ie=this.getScopedLineTokens(N,b.startLineNumber,b.startColumn),U=this.getIndentRulesSupport(ie.languageId);if(!U)return null;let q=ie.getLineContent(),B=q.substr(0,b.startColumn-1-ie.firstCharOffset),se;if(b.isEmpty()?se=q.substr(b.startColumn-1-ie.firstCharOffset):se=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-ie.firstCharOffset),!U.shouldDecrease(B+se)&&U.shouldDecrease(B+g+se)){let ke=this.getInheritIndentForLine(T,N,b.startLineNumber,!1);if(!ke)return null;let xe=ke.indentation;return ke.action!==E.a.Indent&&(xe=j.unshiftIndent(xe)),xe}return null}getIndentMetadata(T,N){let b=this.getIndentRulesSupport(T.getLanguageIdentifier().id);return b?N<1||N>T.getLineCount()?null:b.getIndentMetadata(T.getLineContent(N)):null}getEnterAction(T,N,b){let g=this.getScopedLineTokens(N,b.startLineNumber,b.startColumn),j=this._getRichEditSupport(g.languageId);if(!j)return null;let ie=g.getLineContent(),U=ie.substr(0,b.startColumn-1-g.firstCharOffset),q;b.isEmpty()?q=ie.substr(b.startColumn-1-g.firstCharOffset):q=this.getScopedLineTokens(N,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-g.firstCharOffset);let B="";if(b.startLineNumber>1&&g.firstCharOffset===0){let te=this.getScopedLineTokens(N,b.startLineNumber-1);te.languageId===g.languageId&&(B=te.getLineContent())}let se=j.onEnter(T,B,U,q);if(!se)return null;let ke=se.indentAction,xe=se.appendText,Y=se.removeText||0;xe||(xe=ke===E.a.Indent||ke===E.a.IndentOutdent?" ":"");let Z=this.getIndentationAtPosition(N,b.startLineNumber,b.startColumn);return Y&&(Z=Z.substring(0,Z.length-Y)),{indentAction:ke,appendText:xe,removeText:Y,indentation:Z}}getIndentationAtPosition(T,N,b){let g=T.getLineContent(N),j=O.z(g);return j.length>b-1&&(j=j.substring(0,b-1)),j}getScopedLineTokens(T,N,b){T.forceTokenization(N);let g=T.getLineTokens(N),j=b===void 0?T.getLineMaxColumn(N)-1:b-1;return Object(ge.a)(g,j)}getBracketsSupport(T){let N=this._getRichEditSupport(T);return N&&N.brackets||null}}},function(Ie,w,r){"use strict";var h,f,O,H,E,ge,W,Q,y,C,S,P,V,k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y,Z,te,he,Ce,Ae;r.d(w,"a",function(){return h}),r.d(w,"b",function(){return f}),r.d(w,"c",function(){return O}),r.d(w,"d",function(){return H}),r.d(w,"e",function(){return E}),r.d(w,"f",function(){return ge}),r.d(w,"g",function(){return W}),r.d(w,"h",function(){return Q}),r.d(w,"i",function(){return y}),r.d(w,"j",function(){return C}),r.d(w,"k",function(){return S}),r.d(w,"l",function(){return P}),r.d(w,"m",function(){return V}),r.d(w,"n",function(){return k}),r.d(w,"o",function(){return l}),r.d(w,"p",function(){return T}),r.d(w,"q",function(){return N}),r.d(w,"r",function(){return b}),r.d(w,"s",function(){return g}),r.d(w,"t",function(){return j}),r.d(w,"u",function(){return ie}),r.d(w,"v",function(){return U}),r.d(w,"w",function(){return q}),r.d(w,"x",function(){return B}),r.d(w,"y",function(){return se}),r.d(w,"z",function(){return ke}),r.d(w,"A",function(){return xe}),r.d(w,"B",function(){return Y}),r.d(w,"C",function(){return Z}),r.d(w,"D",function(){return te}),r.d(w,"E",function(){return he}),r.d(w,"F",function(){return Ce}),r.d(w,"G",function(){return Ae}),function(L){L[L.Unknown=0]="Unknown",L[L.Disabled=1]="Disabled",L[L.Enabled=2]="Enabled"}(h||(h={})),function(L){L[L.KeepWhitespace=1]="KeepWhitespace",L[L.InsertAsSnippet=4]="InsertAsSnippet"}(f||(f={})),function(L){L[L.Method=0]="Method",L[L.Function=1]="Function",L[L.Constructor=2]="Constructor",L[L.Field=3]="Field",L[L.Variable=4]="Variable",L[L.Class=5]="Class",L[L.Struct=6]="Struct",L[L.Interface=7]="Interface",L[L.Module=8]="Module",L[L.Property=9]="Property",L[L.Event=10]="Event",L[L.Operator=11]="Operator",L[L.Unit=12]="Unit",L[L.Value=13]="Value",L[L.Constant=14]="Constant",L[L.Enum=15]="Enum",L[L.EnumMember=16]="EnumMember",L[L.Keyword=17]="Keyword",L[L.Text=18]="Text",L[L.Color=19]="Color",L[L.File=20]="File",L[L.Reference=21]="Reference",L[L.Customcolor=22]="Customcolor",L[L.Folder=23]="Folder",L[L.TypeParameter=24]="TypeParameter",L[L.User=25]="User",L[L.Issue=26]="Issue",L[L.Snippet=27]="Snippet"}(O||(O={})),function(L){L[L.Deprecated=1]="Deprecated"}(H||(H={})),function(L){L[L.Invoke=0]="Invoke",L[L.TriggerCharacter=1]="TriggerCharacter",L[L.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(E||(E={})),function(L){L[L.EXACT=0]="EXACT",L[L.ABOVE=1]="ABOVE",L[L.BELOW=2]="BELOW"}(ge||(ge={})),function(L){L[L.NotSet=0]="NotSet",L[L.ContentFlush=1]="ContentFlush",L[L.RecoverFromMarkers=2]="RecoverFromMarkers",L[L.Explicit=3]="Explicit",L[L.Paste=4]="Paste",L[L.Undo=5]="Undo",L[L.Redo=6]="Redo"}(W||(W={})),function(L){L[L.LF=1]="LF",L[L.CRLF=2]="CRLF"}(Q||(Q={})),function(L){L[L.Text=0]="Text",L[L.Read=1]="Read",L[L.Write=2]="Write"}(y||(y={})),function(L){L[L.None=0]="None",L[L.Keep=1]="Keep",L[L.Brackets=2]="Brackets",L[L.Advanced=3]="Advanced",L[L.Full=4]="Full"}(C||(C={})),function(L){L[L.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",L[L.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",L[L.accessibilitySupport=2]="accessibilitySupport",L[L.accessibilityPageSize=3]="accessibilityPageSize",L[L.ariaLabel=4]="ariaLabel",L[L.autoClosingBrackets=5]="autoClosingBrackets",L[L.autoClosingOvertype=6]="autoClosingOvertype",L[L.autoClosingQuotes=7]="autoClosingQuotes",L[L.autoIndent=8]="autoIndent",L[L.automaticLayout=9]="automaticLayout",L[L.autoSurround=10]="autoSurround",L[L.codeLens=11]="codeLens",L[L.colorDecorators=12]="colorDecorators",L[L.columnSelection=13]="columnSelection",L[L.comments=14]="comments",L[L.contextmenu=15]="contextmenu",L[L.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",L[L.cursorBlinking=17]="cursorBlinking",L[L.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",L[L.cursorStyle=19]="cursorStyle",L[L.cursorSurroundingLines=20]="cursorSurroundingLines",L[L.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",L[L.cursorWidth=22]="cursorWidth",L[L.disableLayerHinting=23]="disableLayerHinting",L[L.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",L[L.dragAndDrop=25]="dragAndDrop",L[L.emptySelectionClipboard=26]="emptySelectionClipboard",L[L.extraEditorClassName=27]="extraEditorClassName",L[L.fastScrollSensitivity=28]="fastScrollSensitivity",L[L.find=29]="find",L[L.fixedOverflowWidgets=30]="fixedOverflowWidgets",L[L.folding=31]="folding",L[L.foldingStrategy=32]="foldingStrategy",L[L.foldingHighlight=33]="foldingHighlight",L[L.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",L[L.fontFamily=35]="fontFamily",L[L.fontInfo=36]="fontInfo",L[L.fontLigatures=37]="fontLigatures",L[L.fontSize=38]="fontSize",L[L.fontWeight=39]="fontWeight",L[L.formatOnPaste=40]="formatOnPaste",L[L.formatOnType=41]="formatOnType",L[L.glyphMargin=42]="glyphMargin",L[L.gotoLocation=43]="gotoLocation",L[L.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",L[L.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",L[L.hover=46]="hover",L[L.inDiffEditor=47]="inDiffEditor",L[L.letterSpacing=48]="letterSpacing",L[L.lightbulb=49]="lightbulb",L[L.lineDecorationsWidth=50]="lineDecorationsWidth",L[L.lineHeight=51]="lineHeight",L[L.lineNumbers=52]="lineNumbers",L[L.lineNumbersMinChars=53]="lineNumbersMinChars",L[L.links=54]="links",L[L.matchBrackets=55]="matchBrackets",L[L.minimap=56]="minimap",L[L.mouseStyle=57]="mouseStyle",L[L.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",L[L.mouseWheelZoom=59]="mouseWheelZoom",L[L.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",L[L.multiCursorModifier=61]="multiCursorModifier",L[L.multiCursorPaste=62]="multiCursorPaste",L[L.occurrencesHighlight=63]="occurrencesHighlight",L[L.overviewRulerBorder=64]="overviewRulerBorder",L[L.overviewRulerLanes=65]="overviewRulerLanes",L[L.padding=66]="padding",L[L.parameterHints=67]="parameterHints",L[L.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",L[L.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",L[L.quickSuggestions=70]="quickSuggestions",L[L.quickSuggestionsDelay=71]="quickSuggestionsDelay",L[L.readOnly=72]="readOnly",L[L.renameOnType=73]="renameOnType",L[L.renderControlCharacters=74]="renderControlCharacters",L[L.renderIndentGuides=75]="renderIndentGuides",L[L.renderFinalNewline=76]="renderFinalNewline",L[L.renderLineHighlight=77]="renderLineHighlight",L[L.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",L[L.renderValidationDecorations=79]="renderValidationDecorations",L[L.renderWhitespace=80]="renderWhitespace",L[L.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",L[L.roundedSelection=82]="roundedSelection",L[L.rulers=83]="rulers",L[L.scrollbar=84]="scrollbar",L[L.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",L[L.scrollBeyondLastLine=86]="scrollBeyondLastLine",L[L.scrollPredominantAxis=87]="scrollPredominantAxis",L[L.selectionClipboard=88]="selectionClipboard",L[L.selectionHighlight=89]="selectionHighlight",L[L.selectOnLineNumbers=90]="selectOnLineNumbers",L[L.showFoldingControls=91]="showFoldingControls",L[L.showUnused=92]="showUnused",L[L.snippetSuggestions=93]="snippetSuggestions",L[L.smoothScrolling=94]="smoothScrolling",L[L.stopRenderingLineAfter=95]="stopRenderingLineAfter",L[L.suggest=96]="suggest",L[L.suggestFontSize=97]="suggestFontSize",L[L.suggestLineHeight=98]="suggestLineHeight",L[L.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",L[L.suggestSelection=100]="suggestSelection",L[L.tabCompletion=101]="tabCompletion",L[L.tabIndex=102]="tabIndex",L[L.unusualLineTerminators=103]="unusualLineTerminators",L[L.useTabStops=104]="useTabStops",L[L.wordSeparators=105]="wordSeparators",L[L.wordWrap=106]="wordWrap",L[L.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",L[L.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",L[L.wordWrapColumn=109]="wordWrapColumn",L[L.wordWrapMinified=110]="wordWrapMinified",L[L.wrappingIndent=111]="wrappingIndent",L[L.wrappingStrategy=112]="wrappingStrategy",L[L.showDeprecated=113]="showDeprecated",L[L.editorClassName=114]="editorClassName",L[L.pixelRatio=115]="pixelRatio",L[L.tabFocusMode=116]="tabFocusMode",L[L.layoutInfo=117]="layoutInfo",L[L.wrappingInfo=118]="wrappingInfo"}(S||(S={})),function(L){L[L.TextDefined=0]="TextDefined",L[L.LF=1]="LF",L[L.CRLF=2]="CRLF"}(P||(P={})),function(L){L[L.LF=0]="LF",L[L.CRLF=1]="CRLF"}(V||(V={})),function(L){L[L.None=0]="None",L[L.Indent=1]="Indent",L[L.IndentOutdent=2]="IndentOutdent",L[L.Outdent=3]="Outdent"}(k||(k={})),function(L){L[L.Unknown=0]="Unknown",L[L.Backspace=1]="Backspace",L[L.Tab=2]="Tab",L[L.Enter=3]="Enter",L[L.Shift=4]="Shift",L[L.Ctrl=5]="Ctrl",L[L.Alt=6]="Alt",L[L.PauseBreak=7]="PauseBreak",L[L.CapsLock=8]="CapsLock",L[L.Escape=9]="Escape",L[L.Space=10]="Space",L[L.PageUp=11]="PageUp",L[L.PageDown=12]="PageDown",L[L.End=13]="End",L[L.Home=14]="Home",L[L.LeftArrow=15]="LeftArrow",L[L.UpArrow=16]="UpArrow",L[L.RightArrow=17]="RightArrow",L[L.DownArrow=18]="DownArrow",L[L.Insert=19]="Insert",L[L.Delete=20]="Delete",L[L.KEY_0=21]="KEY_0",L[L.KEY_1=22]="KEY_1",L[L.KEY_2=23]="KEY_2",L[L.KEY_3=24]="KEY_3",L[L.KEY_4=25]="KEY_4",L[L.KEY_5=26]="KEY_5",L[L.KEY_6=27]="KEY_6",L[L.KEY_7=28]="KEY_7",L[L.KEY_8=29]="KEY_8",L[L.KEY_9=30]="KEY_9",L[L.KEY_A=31]="KEY_A",L[L.KEY_B=32]="KEY_B",L[L.KEY_C=33]="KEY_C",L[L.KEY_D=34]="KEY_D",L[L.KEY_E=35]="KEY_E",L[L.KEY_F=36]="KEY_F",L[L.KEY_G=37]="KEY_G",L[L.KEY_H=38]="KEY_H",L[L.KEY_I=39]="KEY_I",L[L.KEY_J=40]="KEY_J",L[L.KEY_K=41]="KEY_K",L[L.KEY_L=42]="KEY_L",L[L.KEY_M=43]="KEY_M",L[L.KEY_N=44]="KEY_N",L[L.KEY_O=45]="KEY_O",L[L.KEY_P=46]="KEY_P",L[L.KEY_Q=47]="KEY_Q",L[L.KEY_R=48]="KEY_R",L[L.KEY_S=49]="KEY_S",L[L.KEY_T=50]="KEY_T",L[L.KEY_U=51]="KEY_U",L[L.KEY_V=52]="KEY_V",L[L.KEY_W=53]="KEY_W",L[L.KEY_X=54]="KEY_X",L[L.KEY_Y=55]="KEY_Y",L[L.KEY_Z=56]="KEY_Z",L[L.Meta=57]="Meta",L[L.ContextMenu=58]="ContextMenu",L[L.F1=59]="F1",L[L.F2=60]="F2",L[L.F3=61]="F3",L[L.F4=62]="F4",L[L.F5=63]="F5",L[L.F6=64]="F6",L[L.F7=65]="F7",L[L.F8=66]="F8",L[L.F9=67]="F9",L[L.F10=68]="F10",L[L.F11=69]="F11",L[L.F12=70]="F12",L[L.F13=71]="F13",L[L.F14=72]="F14",L[L.F15=73]="F15",L[L.F16=74]="F16",L[L.F17=75]="F17",L[L.F18=76]="F18",L[L.F19=77]="F19",L[L.NumLock=78]="NumLock",L[L.ScrollLock=79]="ScrollLock",L[L.US_SEMICOLON=80]="US_SEMICOLON",L[L.US_EQUAL=81]="US_EQUAL",L[L.US_COMMA=82]="US_COMMA",L[L.US_MINUS=83]="US_MINUS",L[L.US_DOT=84]="US_DOT",L[L.US_SLASH=85]="US_SLASH",L[L.US_BACKTICK=86]="US_BACKTICK",L[L.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",L[L.US_BACKSLASH=88]="US_BACKSLASH",L[L.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",L[L.US_QUOTE=90]="US_QUOTE",L[L.OEM_8=91]="OEM_8",L[L.OEM_102=92]="OEM_102",L[L.NUMPAD_0=93]="NUMPAD_0",L[L.NUMPAD_1=94]="NUMPAD_1",L[L.NUMPAD_2=95]="NUMPAD_2",L[L.NUMPAD_3=96]="NUMPAD_3",L[L.NUMPAD_4=97]="NUMPAD_4",L[L.NUMPAD_5=98]="NUMPAD_5",L[L.NUMPAD_6=99]="NUMPAD_6",L[L.NUMPAD_7=100]="NUMPAD_7",L[L.NUMPAD_8=101]="NUMPAD_8",L[L.NUMPAD_9=102]="NUMPAD_9",L[L.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",L[L.NUMPAD_ADD=104]="NUMPAD_ADD",L[L.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",L[L.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",L[L.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",L[L.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",L[L.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",L[L.ABNT_C1=110]="ABNT_C1",L[L.ABNT_C2=111]="ABNT_C2",L[L.MAX_VALUE=112]="MAX_VALUE"}(l||(l={})),function(L){L[L.Hint=1]="Hint",L[L.Info=2]="Info",L[L.Warning=4]="Warning",L[L.Error=8]="Error"}(T||(T={})),function(L){L[L.Unnecessary=1]="Unnecessary",L[L.Deprecated=2]="Deprecated"}(N||(N={})),function(L){L[L.Inline=1]="Inline",L[L.Gutter=2]="Gutter"}(b||(b={})),function(L){L[L.UNKNOWN=0]="UNKNOWN",L[L.TEXTAREA=1]="TEXTAREA",L[L.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",L[L.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",L[L.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",L[L.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",L[L.CONTENT_TEXT=6]="CONTENT_TEXT",L[L.CONTENT_EMPTY=7]="CONTENT_EMPTY",L[L.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",L[L.CONTENT_WIDGET=9]="CONTENT_WIDGET",L[L.OVERVIEW_RULER=10]="OVERVIEW_RULER",L[L.SCROLLBAR=11]="SCROLLBAR",L[L.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",L[L.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(g||(g={})),function(L){L[L.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",L[L.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",L[L.TOP_CENTER=2]="TOP_CENTER"}(j||(j={})),function(L){L[L.Left=1]="Left",L[L.Center=2]="Center",L[L.Right=4]="Right",L[L.Full=7]="Full"}(ie||(ie={})),function(L){L[L.Off=0]="Off",L[L.On=1]="On",L[L.Relative=2]="Relative",L[L.Interval=3]="Interval",L[L.Custom=4]="Custom"}(U||(U={})),function(L){L[L.None=0]="None",L[L.Text=1]="Text",L[L.Blocks=2]="Blocks"}(q||(q={})),function(L){L[L.Smooth=0]="Smooth",L[L.Immediate=1]="Immediate"}(B||(B={})),function(L){L[L.Auto=1]="Auto",L[L.Hidden=2]="Hidden",L[L.Visible=3]="Visible"}(se||(se={})),function(L){L[L.LTR=0]="LTR",L[L.RTL=1]="RTL"}(ke||(ke={})),function(L){L[L.Invoke=1]="Invoke",L[L.TriggerCharacter=2]="TriggerCharacter",L[L.ContentChange=3]="ContentChange"}(xe||(xe={})),function(L){L[L.File=0]="File",L[L.Module=1]="Module",L[L.Namespace=2]="Namespace",L[L.Package=3]="Package",L[L.Class=4]="Class",L[L.Method=5]="Method",L[L.Property=6]="Property",L[L.Field=7]="Field",L[L.Constructor=8]="Constructor",L[L.Enum=9]="Enum",L[L.Interface=10]="Interface",L[L.Function=11]="Function",L[L.Variable=12]="Variable",L[L.Constant=13]="Constant",L[L.String=14]="String",L[L.Number=15]="Number",L[L.Boolean=16]="Boolean",L[L.Array=17]="Array",L[L.Object=18]="Object",L[L.Key=19]="Key",L[L.Null=20]="Null",L[L.EnumMember=21]="EnumMember",L[L.Struct=22]="Struct",L[L.Event=23]="Event",L[L.Operator=24]="Operator",L[L.TypeParameter=25]="TypeParameter"}(Y||(Y={})),function(L){L[L.Deprecated=1]="Deprecated"}(Z||(Z={})),function(L){L[L.Hidden=0]="Hidden",L[L.Blink=1]="Blink",L[L.Smooth=2]="Smooth",L[L.Phase=3]="Phase",L[L.Expand=4]="Expand",L[L.Solid=5]="Solid"}(te||(te={})),function(L){L[L.Line=1]="Line",L[L.Block=2]="Block",L[L.Underline=3]="Underline",L[L.LineThin=4]="LineThin",L[L.BlockOutline=5]="BlockOutline",L[L.UnderlineThin=6]="UnderlineThin"}(he||(he={})),function(L){L[L.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",L[L.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",L[L.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",L[L.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Ce||(Ce={})),function(L){L[L.None=0]="None",L[L.Same=1]="Same",L[L.Indent=2]="Indent",L[L.DeepIndent=3]="DeepIndent"}(Ae||(Ae={}))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("codeEditorService")},function(Ie,w,r){"use strict";r.d(w,"i",function(){return y}),r.d(w,"e",function(){return C}),r.d(w,"d",function(){return S}),r.d(w,"g",function(){return P}),r.d(w,"f",function(){return V}),r.d(w,"b",function(){return k}),r.d(w,"a",function(){return l}),r.d(w,"c",function(){return T}),r.d(w,"h",function(){return N});var h=r(28);class f extends Error{constructor(g,j,ie){let U;typeof j=="string"&&j.indexOf("not ")===0?(U="must not be",j=j.replace(/^not /,"")):U="must be";let q=g.indexOf(".")!==-1?"property":"argument",B=`The "${g}" ${q} ${U} of type ${j}`;B+=". Received type "+typeof ie,super(B),this.code="ERR_INVALID_ARG_TYPE"}}function O(b,g){if(typeof b!="string")throw new f(g,"string",b)}function H(b){return b===47||b===92}function E(b){return b===47}function ge(b){return b>=65&&b<=90||b>=97&&b<=122}function W(b,g,j,ie){let U="",q=0,B=-1,se=0,ke=0;for(let xe=0;xe<=b.length;++xe){if(xe<b.length)ke=b.charCodeAt(xe);else{if(ie(ke))break;ke=47}if(ie(ke)){if(!(B===xe-1||se===1))if(se===2){if(U.length<2||q!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){let Y=U.lastIndexOf(j);Y===-1?(U="",q=0):(U=U.slice(0,Y),q=U.length-1-U.lastIndexOf(j)),B=xe,se=0;continue}if(U.length!==0){U="",q=0,B=xe,se=0;continue}}g&&(U+=U.length>0?j+"..":"..",q=2)}else U.length>0?U+=`${j}${b.slice(B+1,xe)}`:U=b.slice(B+1,xe),q=xe-B-1;B=xe,se=0}else ke===46&&se!==-1?++se:se=-1}return U}function Q(b,g){if(g===null||typeof g!="object")throw new f("pathObject","Object",g);let j=g.dir||g.root,ie=g.base||`${g.name||""}${g.ext||""}`;return j?j===g.root?`${j}${ie}`:`${j}${b}${ie}`:ie}let y={resolve(...b){let g="",j="",ie=!1;for(let U=b.length-1;U>=-1;U--){let q;if(U>=0){if(q=b[U],O(q,"path"),q.length===0)continue}else g.length===0?q=h.a():(q=h.b["="+g]||h.a(),(q===void 0||q.slice(0,2).toLowerCase()!==g.toLowerCase()&&q.charCodeAt(2)===92)&&(q=g+"\\"));let B=q.length,se=0,ke="",xe=!1,Y=q.charCodeAt(0);if(B===1)H(Y)&&(se=1,xe=!0);else if(H(Y))if(xe=!0,H(q.charCodeAt(1))){let Z=2,te=Z;for(;Z<B&&!H(q.charCodeAt(Z));)Z++;if(Z<B&&Z!==te){let he=q.slice(te,Z);for(te=Z;Z<B&&H(q.charCodeAt(Z));)Z++;if(Z<B&&Z!==te){for(te=Z;Z<B&&!H(q.charCodeAt(Z));)Z++;Z!==B&&Z===te||(ke=`\\\\${he}\\${q.slice(te,Z)}`,se=Z)}}}else se=1;else ge(Y)&&q.charCodeAt(1)===58&&(ke=q.slice(0,2),se=2,B>2&&H(q.charCodeAt(2))&&(xe=!0,se=3));if(ke.length>0)if(g.length>0){if(ke.toLowerCase()!==g.toLowerCase())continue}else g=ke;if(ie){if(g.length>0)break}else if(j=`${q.slice(se)}\\${j}`,ie=xe,xe&&g.length>0)break}return j=W(j,!ie,"\\",H),ie?`${g}\\${j}`:`${g}${j}`||"."},normalize(b){O(b,"path");let g=b.length;if(g===0)return".";let j,ie=0,U=!1,q=b.charCodeAt(0);if(g===1)return E(q)?"\\":b;if(H(q))if(U=!0,H(b.charCodeAt(1))){let se=2,ke=se;for(;se<g&&!H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){let xe=b.slice(ke,se);for(ke=se;se<g&&H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&!H(b.charCodeAt(se));)se++;if(se===g)return`\\\\${xe}\\${b.slice(ke)}\\`;se!==ke&&(j=`\\\\${xe}\\${b.slice(ke,se)}`,ie=se)}}}else ie=1;else ge(q)&&b.charCodeAt(1)===58&&(j=b.slice(0,2),ie=2,g>2&&H(b.charCodeAt(2))&&(U=!0,ie=3));let B=ie<g?W(b.slice(ie),!U,"\\",H):"";return B.length!==0||U||(B="."),B.length>0&&H(b.charCodeAt(g-1))&&(B+="\\"),j===void 0?U?"\\"+B:B:U?`${j}\\${B}`:`${j}${B}`},isAbsolute(b){O(b,"path");let g=b.length;if(g===0)return!1;let j=b.charCodeAt(0);return H(j)||g>2&&ge(j)&&b.charCodeAt(1)===58&&H(b.charCodeAt(2))},join(...b){if(b.length===0)return".";let g,j;for(let q=0;q<b.length;++q){let B=b[q];O(B,"path"),B.length>0&&(g===void 0?g=j=B:g+="\\"+B)}if(g===void 0)return".";let ie=!0,U=0;if(typeof j=="string"&&H(j.charCodeAt(0))){++U;let q=j.length;q>1&&H(j.charCodeAt(1))&&(++U,q>2&&(H(j.charCodeAt(2))?++U:ie=!1))}if(ie){for(;U<g.length&&H(g.charCodeAt(U));)U++;U>=2&&(g="\\"+g.slice(U))}return y.normalize(g)},relative(b,g){if(O(b,"from"),O(g,"to"),b===g)return"";let j=y.resolve(b),ie=y.resolve(g);if(j===ie||(b=j.toLowerCase())===(g=ie.toLowerCase()))return"";let U=0;for(;U<b.length&&b.charCodeAt(U)===92;)U++;let q=b.length;for(;q-1>U&&b.charCodeAt(q-1)===92;)q--;let B=q-U,se=0;for(;se<g.length&&g.charCodeAt(se)===92;)se++;let ke=g.length;for(;ke-1>se&&g.charCodeAt(ke-1)===92;)ke--;let xe=ke-se,Y=B<xe?B:xe,Z=-1,te=0;for(;te<Y;te++){let Ce=b.charCodeAt(U+te);if(Ce!==g.charCodeAt(se+te))break;Ce===92&&(Z=te)}if(te!==Y){if(Z===-1)return ie}else{if(xe>Y){if(g.charCodeAt(se+te)===92)return ie.slice(se+te+1);if(te===2)return ie.slice(se+te)}B>Y&&(b.charCodeAt(U+te)===92?Z=te:te===2&&(Z=3)),Z===-1&&(Z=0)}let he="";for(te=U+Z+1;te<=q;++te)te!==q&&b.charCodeAt(te)!==92||(he+=he.length===0?"..":"\\..");return se+=Z,he.length>0?`${he}${ie.slice(se,ke)}`:(ie.charCodeAt(se)===92&&++se,ie.slice(se,ke))},toNamespacedPath(b){if(typeof b!="string")return b;if(b.length===0)return"";let g=y.resolve(b);if(g.length<=2)return b;if(g.charCodeAt(0)===92){if(g.charCodeAt(1)===92){let j=g.charCodeAt(2);if(j!==63&&j!==46)return"\\\\?\\UNC\\"+g.slice(2)}}else if(ge(g.charCodeAt(0))&&g.charCodeAt(1)===58&&g.charCodeAt(2)===92)return"\\\\?\\"+g;return b},dirname(b){O(b,"path");let g=b.length;if(g===0)return".";let j=-1,ie=0,U=b.charCodeAt(0);if(g===1)return H(U)?b:".";if(H(U)){if(j=ie=1,H(b.charCodeAt(1))){let se=2,ke=se;for(;se<g&&!H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&H(b.charCodeAt(se));)se++;if(se<g&&se!==ke){for(ke=se;se<g&&!H(b.charCodeAt(se));)se++;if(se===g)return b;se!==ke&&(j=ie=se+1)}}}}else ge(U)&&b.charCodeAt(1)===58&&(j=g>2&&H(b.charCodeAt(2))?3:2,ie=j);let q=-1,B=!0;for(let se=g-1;se>=ie;--se)if(H(b.charCodeAt(se))){if(!B){q=se;break}}else B=!1;if(q===-1){if(j===-1)return".";q=j}return b.slice(0,q)},basename(b,g){g!==void 0&&O(g,"ext"),O(b,"path");let j,ie=0,U=-1,q=!0;if(b.length>=2&&ge(b.charCodeAt(0))&&b.charCodeAt(1)===58&&(ie=2),g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let B=g.length-1,se=-1;for(j=b.length-1;j>=ie;--j){let ke=b.charCodeAt(j);if(H(ke)){if(!q){ie=j+1;break}}else se===-1&&(q=!1,se=j+1),B>=0&&(ke===g.charCodeAt(B)?--B==-1&&(U=j):(B=-1,U=se))}return ie===U?U=se:U===-1&&(U=b.length),b.slice(ie,U)}for(j=b.length-1;j>=ie;--j)if(H(b.charCodeAt(j))){if(!q){ie=j+1;break}}else U===-1&&(q=!1,U=j+1);return U===-1?"":b.slice(ie,U)},extname(b){O(b,"path");let g=0,j=-1,ie=0,U=-1,q=!0,B=0;b.length>=2&&b.charCodeAt(1)===58&&ge(b.charCodeAt(0))&&(g=ie=2);for(let se=b.length-1;se>=g;--se){let ke=b.charCodeAt(se);if(H(ke)){if(!q){ie=se+1;break}}else U===-1&&(q=!1,U=se+1),ke===46?j===-1?j=se:B!==1&&(B=1):j!==-1&&(B=-1)}return j===-1||U===-1||B===0||B===1&&j===U-1&&j===ie+1?"":b.slice(j,U)},format:Q.bind(null,"\\"),parse(b){O(b,"path");let g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;let j=b.length,ie=0,U=b.charCodeAt(0);if(j===1)return H(U)?(g.root=g.dir=b,g):(g.base=g.name=b,g);if(H(U)){if(ie=1,H(b.charCodeAt(1))){let Z=2,te=Z;for(;Z<j&&!H(b.charCodeAt(Z));)Z++;if(Z<j&&Z!==te){for(te=Z;Z<j&&H(b.charCodeAt(Z));)Z++;if(Z<j&&Z!==te){for(te=Z;Z<j&&!H(b.charCodeAt(Z));)Z++;Z===j?ie=Z:Z!==te&&(ie=Z+1)}}}}else if(ge(U)&&b.charCodeAt(1)===58){if(j<=2)return g.root=g.dir=b,g;if(ie=2,H(b.charCodeAt(2))){if(j===3)return g.root=g.dir=b,g;ie=3}}ie>0&&(g.root=b.slice(0,ie));let q=-1,B=ie,se=-1,ke=!0,xe=b.length-1,Y=0;for(;xe>=ie;--xe)if(U=b.charCodeAt(xe),H(U)){if(!ke){B=xe+1;break}}else se===-1&&(ke=!1,se=xe+1),U===46?q===-1?q=xe:Y!==1&&(Y=1):q!==-1&&(Y=-1);return se!==-1&&(q===-1||Y===0||Y===1&&q===se-1&&q===B+1?g.base=g.name=b.slice(B,se):(g.name=b.slice(B,q),g.base=b.slice(B,se),g.ext=b.slice(q,se))),g.dir=B>0&&B!==ie?b.slice(0,B-1):g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...b){let g="",j=!1;for(let ie=b.length-1;ie>=-1&&!j;ie--){let U=ie>=0?b[ie]:h.a();O(U,"path"),U.length!==0&&(g=`${U}/${g}`,j=U.charCodeAt(0)===47)}return g=W(g,!j,"/",E),j?"/"+g:g.length>0?g:"."},normalize(b){if(O(b,"path"),b.length===0)return".";let g=b.charCodeAt(0)===47,j=b.charCodeAt(b.length-1)===47;return(b=W(b,!g,"/",E)).length===0?g?"/":j?"./":".":(j&&(b+="/"),g?"/"+b:b)},isAbsolute:b=>(O(b,"path"),b.length>0&&b.charCodeAt(0)===47),join(...b){if(b.length===0)return".";let g;for(let j=0;j<b.length;++j){let ie=b[j];O(ie,"path"),ie.length>0&&(g===void 0?g=ie:g+="/"+ie)}return g===void 0?".":C.normalize(g)},relative(b,g){if(O(b,"from"),O(g,"to"),b===g||(b=C.resolve(b))===(g=C.resolve(g)))return"";let j=b.length,ie=j-1,U=g.length-1,q=ie<U?ie:U,B=-1,se=0;for(;se<q;se++){let xe=b.charCodeAt(1+se);if(xe!==g.charCodeAt(1+se))break;xe===47&&(B=se)}if(se===q)if(U>q){if(g.charCodeAt(1+se)===47)return g.slice(1+se+1);if(se===0)return g.slice(1+se)}else ie>q&&(b.charCodeAt(1+se)===47?B=se:se===0&&(B=0));let ke="";for(se=1+B+1;se<=j;++se)se!==j&&b.charCodeAt(se)!==47||(ke+=ke.length===0?"..":"/..");return`${ke}${g.slice(1+B)}`},toNamespacedPath:b=>b,dirname(b){if(O(b,"path"),b.length===0)return".";let g=b.charCodeAt(0)===47,j=-1,ie=!0;for(let U=b.length-1;U>=1;--U)if(b.charCodeAt(U)===47){if(!ie){j=U;break}}else ie=!1;return j===-1?g?"/":".":g&&j===1?"//":b.slice(0,j)},basename(b,g){g!==void 0&&O(g,"ext"),O(b,"path");let j,ie=0,U=-1,q=!0;if(g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let B=g.length-1,se=-1;for(j=b.length-1;j>=0;--j){let ke=b.charCodeAt(j);if(ke===47){if(!q){ie=j+1;break}}else se===-1&&(q=!1,se=j+1),B>=0&&(ke===g.charCodeAt(B)?--B==-1&&(U=j):(B=-1,U=se))}return ie===U?U=se:U===-1&&(U=b.length),b.slice(ie,U)}for(j=b.length-1;j>=0;--j)if(b.charCodeAt(j)===47){if(!q){ie=j+1;break}}else U===-1&&(q=!1,U=j+1);return U===-1?"":b.slice(ie,U)},extname(b){O(b,"path");let g=-1,j=0,ie=-1,U=!0,q=0;for(let B=b.length-1;B>=0;--B){let se=b.charCodeAt(B);if(se!==47)ie===-1&&(U=!1,ie=B+1),se===46?g===-1?g=B:q!==1&&(q=1):g!==-1&&(q=-1);else if(!U){j=B+1;break}}return g===-1||ie===-1||q===0||q===1&&g===ie-1&&g===j+1?"":b.slice(g,ie)},format:Q.bind(null,"/"),parse(b){O(b,"path");let g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;let j=b.charCodeAt(0)===47,ie;j?(g.root="/",ie=1):ie=0;let U=-1,q=0,B=-1,se=!0,ke=b.length-1,xe=0;for(;ke>=ie;--ke){let Y=b.charCodeAt(ke);if(Y!==47)B===-1&&(se=!1,B=ke+1),Y===46?U===-1?U=ke:xe!==1&&(xe=1):U!==-1&&(xe=-1);else if(!se){q=ke+1;break}}if(B!==-1){let Y=q===0&&j?1:q;U===-1||xe===0||xe===1&&U===B-1&&U===q+1?g.base=g.name=b.slice(Y,B):(g.name=b.slice(Y,U),g.base=b.slice(Y,B),g.ext=b.slice(U,B))}return q>0?g.dir=b.slice(0,q-1):j&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};C.win32=y.win32=y,C.posix=y.posix=C;let S=h.c==="win32"?y.normalize:C.normalize,P=h.c==="win32"?y.resolve:C.resolve,V=h.c==="win32"?y.relative:C.relative,k=h.c==="win32"?y.dirname:C.dirname,l=h.c==="win32"?y.basename:C.basename,T=h.c==="win32"?y.extname:C.extname,N=h.c==="win32"?y.sep:C.sep},function(Ie,w,r){"use strict";r.d(w,"b",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"f",function(){return Q}),r.d(w,"e",function(){return C}),r.d(w,"d",function(){return P}),r.d(w,"c",function(){return V});var h=r(13);class f{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(l,T){this._keyCodeToStr[l]=T,this._strToKeyCode[T.toLowerCase()]=l}keyCodeToStr(l){return this._keyCodeToStr[l]}strToKeyCode(l){return this._strToKeyCode[l.toLowerCase()]||0}}let O=new f,H=new f,E=new f;var ge;function W(k,l){return(k|(65535&l)<<16>>>0)>>>0}function Q(k,l){if(k===0)return null;let T=(65535&k)>>>0,N=(4294901760&k)>>>16;return new S(N!==0?[y(T,l),y(N,l)]:[y(T,l)])}function y(k,l){let T=!!(2048&k),N=!!(256&k);return new C(l===2?N:T,!!(1024&k),!!(512&k),l===2?T:N,255&k)}(function(){function k(l,T,N=T,b=N){O.define(l,T),H.define(l,N),E.define(l,b)}k(0,"unknown"),k(1,"Backspace"),k(2,"Tab"),k(3,"Enter"),k(4,"Shift"),k(5,"Ctrl"),k(6,"Alt"),k(7,"PauseBreak"),k(8,"CapsLock"),k(9,"Escape"),k(10,"Space"),k(11,"PageUp"),k(12,"PageDown"),k(13,"End"),k(14,"Home"),k(15,"LeftArrow","Left"),k(16,"UpArrow","Up"),k(17,"RightArrow","Right"),k(18,"DownArrow","Down"),k(19,"Insert"),k(20,"Delete"),k(21,"0"),k(22,"1"),k(23,"2"),k(24,"3"),k(25,"4"),k(26,"5"),k(27,"6"),k(28,"7"),k(29,"8"),k(30,"9"),k(31,"A"),k(32,"B"),k(33,"C"),k(34,"D"),k(35,"E"),k(36,"F"),k(37,"G"),k(38,"H"),k(39,"I"),k(40,"J"),k(41,"K"),k(42,"L"),k(43,"M"),k(44,"N"),k(45,"O"),k(46,"P"),k(47,"Q"),k(48,"R"),k(49,"S"),k(50,"T"),k(51,"U"),k(52,"V"),k(53,"W"),k(54,"X"),k(55,"Y"),k(56,"Z"),k(57,"Meta"),k(58,"ContextMenu"),k(59,"F1"),k(60,"F2"),k(61,"F3"),k(62,"F4"),k(63,"F5"),k(64,"F6"),k(65,"F7"),k(66,"F8"),k(67,"F9"),k(68,"F10"),k(69,"F11"),k(70,"F12"),k(71,"F13"),k(72,"F14"),k(73,"F15"),k(74,"F16"),k(75,"F17"),k(76,"F18"),k(77,"F19"),k(78,"NumLock"),k(79,"ScrollLock"),k(80,";",";","OEM_1"),k(81,"=","=","OEM_PLUS"),k(82,",",",","OEM_COMMA"),k(83,"-","-","OEM_MINUS"),k(84,".",".","OEM_PERIOD"),k(85,"/","/","OEM_2"),k(86,"`","`","OEM_3"),k(110,"ABNT_C1"),k(111,"ABNT_C2"),k(87,"[","[","OEM_4"),k(88,"\\","\\","OEM_5"),k(89,"]","]","OEM_6"),k(90,"'","'","OEM_7"),k(91,"OEM_8"),k(92,"OEM_102"),k(93,"NumPad0"),k(94,"NumPad1"),k(95,"NumPad2"),k(96,"NumPad3"),k(97,"NumPad4"),k(98,"NumPad5"),k(99,"NumPad6"),k(100,"NumPad7"),k(101,"NumPad8"),k(102,"NumPad9"),k(103,"NumPad_Multiply"),k(104,"NumPad_Add"),k(105,"NumPad_Separator"),k(106,"NumPad_Subtract"),k(107,"NumPad_Decimal"),k(108,"NumPad_Divide")})(),function(k){k.toString=function(l){return O.keyCodeToStr(l)},k.fromString=function(l){return O.strToKeyCode(l)},k.toUserSettingsUS=function(l){return H.keyCodeToStr(l)},k.toUserSettingsGeneral=function(l){return E.keyCodeToStr(l)},k.fromUserSettings=function(l){return H.strToKeyCode(l)||E.strToKeyCode(l)}}(ge||(ge={}));class C{constructor(l,T,N,b,g){this.ctrlKey=l,this.shiftKey=T,this.altKey=N,this.metaKey=b,this.keyCode=g}equals(l){return this.ctrlKey===l.ctrlKey&&this.shiftKey===l.shiftKey&&this.altKey===l.altKey&&this.metaKey===l.metaKey&&this.keyCode===l.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new S([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class S{constructor(l){if(l.length===0)throw Object(h.b)("parts");this.parts=l}}class P{constructor(l,T,N,b,g,j){this.ctrlKey=l,this.shiftKey=T,this.altKey=N,this.metaKey=b,this.keyLabel=g,this.keyAriaLabel=j}}class V{}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(6);let f=(H,E,ge)=>{let W=y=>Q.fire(y),Q=new h.a({onFirstListenerAdd:()=>{H.addEventListener(E,W,ge)},onLastListenerRemove:()=>{H.removeEventListener(E,W,ge)}});return Q.event};function O(H){return h.b.map(H,E=>(E.preventDefault(),E.stopPropagation(),E))}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return h}),r.d(w,"a",function(){return H});var h,f=r(23),O=r(11);(function(E){E.inMemory="inmemory",E.vscode="vscode",E.internal="private",E.walkThrough="walkThrough",E.walkThroughSnippet="walkThroughSnippet",E.http="http",E.https="https",E.file="file",E.mailto="mailto",E.untitled="untitled",E.data="data",E.command="command",E.vscodeRemote="vscode-remote",E.vscodeRemoteResource="vscode-remote-resource",E.userData="vscode-userdata",E.vscodeCustomEditor="vscode-custom-editor",E.vscodeNotebook="vscode-notebook",E.vscodeNotebookCell="vscode-notebook-cell",E.vscodeSettings="vscode-settings",E.webviewPanel="webview-panel",E.vscodeWebview="vscode-webview",E.vscodeWebviewResource="vscode-webview-resource",E.extension="extension"})(h||(h={}));let H=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(E){this._preferredWebSchema=E}rewrite(E){if(this._delegate)return this._delegate(E);let ge=E.authority,W=this._hosts[ge];W&&W.indexOf(":")!==-1&&(W=`[${W}]`);let Q=this._ports[ge],y=this._connectionTokens[ge],C="path="+encodeURIComponent(E.path);return typeof y=="string"&&(C+="&tkn="+encodeURIComponent(y)),f.a.from({scheme:O.h?this._preferredWebSchema:h.vscodeRemoteResource,authority:`${W}:${Q}`,path:"/vscode-remote-resource",query:C})}}},function(Ie,w,r){"use strict";r.d(w,"c",function(){return f}),r.d(w,"d",function(){return O}),r.d(w,"b",function(){return E}),r.d(w,"g",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"e",function(){return Q}),r.d(w,"f",function(){return y});var h=r(14);function f(C){if(!C||typeof C!="object"||C instanceof RegExp)return C;let S=Array.isArray(C)?[]:{};return Object.keys(C).forEach(P=>{C[P]&&typeof C[P]=="object"?S[P]=f(C[P]):S[P]=C[P]}),S}function O(C){if(!C||typeof C!="object")return C;let S=[C];for(;S.length>0;){let P=S.shift();Object.freeze(P);for(let V in P)if(H.call(P,V)){let k=P[V];typeof k!="object"||Object.isFrozen(k)||S.push(k)}}return C}let H=Object.prototype.hasOwnProperty;function E(C,S){return function P(V,k,l){if(Object(h.l)(V))return V;let T=k(V);if(T!==void 0)return T;if(Object(h.e)(V)){let N=[];for(let b of V)N.push(P(b,k,l));return N}if(Object(h.i)(V)){if(l.has(V))throw new Error("Cannot clone recursive data-structure");l.add(V);let N={};for(let b in V)H.call(V,b)&&(N[b]=P(V[b],k,l));return l.delete(V),N}return V}(C,S,new Set)}function ge(C,S,P=!0){return Object(h.i)(C)?(Object(h.i)(S)&&Object.keys(S).forEach(V=>{V in C?P&&(Object(h.i)(C[V])&&Object(h.i)(S[V])?ge(C[V],S[V],P):C[V]=S[V]):C[V]=S[V]}),C):S}function W(C,...S){return S.forEach(P=>Object.keys(P).forEach(V=>C[V]=P[V])),C}function Q(C,S){if(C===S)return!0;if(C==null||S==null||typeof C!=typeof S||typeof C!="object"||Array.isArray(C)!==Array.isArray(S))return!1;let P,V;if(Array.isArray(C)){if(C.length!==S.length)return!1;for(P=0;P<C.length;P++)if(!Q(C[P],S[P]))return!1}else{let k=[];for(V in C)k.push(V);k.sort();let l=[];for(V in S)l.push(V);if(l.sort(),!Q(k,l))return!1;for(P=0;P<k.length;P++)if(!Q(C[k[P]],S[k[P]]))return!1}return!0}function y(C,S,P){let V=S(C);return V===void 0?P:V}},function(Ie,w,r){"use strict";var h=r(108);r.d(w,"a",function(){return h.b}),r.d(w,"b",function(){return h.e}),r.d(w,"c",function(){return h.h}),r.d(w,"d",function(){return h.l}),r.d(w,"e",function(){return h.m}),r.d(w,"f",function(){return h.n})},function(Ie,w,r){"use strict";var h;r.d(w,"g",function(){return xs}),r.d(w,"d",function(){return In}),r.d(w,"b",function(){return _r}),r.d(w,"a",function(){return zn}),r.d(w,"e",function(){return er}),r.d(w,"c",function(){return Uo}),r.d(w,"f",function(){return co}),r.d(w,"h",function(){return Nc}),r.d(w,"j",function(){return Ic}),r.d(w,"i",function(){return Dc}),function(x){x[x.Ident=0]="Ident",x[x.AtKeyword=1]="AtKeyword",x[x.String=2]="String",x[x.BadString=3]="BadString",x[x.UnquotedString=4]="UnquotedString",x[x.Hash=5]="Hash",x[x.Num=6]="Num",x[x.Percentage=7]="Percentage",x[x.Dimension=8]="Dimension",x[x.UnicodeRange=9]="UnicodeRange",x[x.CDO=10]="CDO",x[x.CDC=11]="CDC",x[x.Colon=12]="Colon",x[x.SemiColon=13]="SemiColon",x[x.CurlyL=14]="CurlyL",x[x.CurlyR=15]="CurlyR",x[x.ParenthesisL=16]="ParenthesisL",x[x.ParenthesisR=17]="ParenthesisR",x[x.BracketL=18]="BracketL",x[x.BracketR=19]="BracketR",x[x.Whitespace=20]="Whitespace",x[x.Includes=21]="Includes",x[x.Dashmatch=22]="Dashmatch",x[x.SubstringOperator=23]="SubstringOperator",x[x.PrefixOperator=24]="PrefixOperator",x[x.SuffixOperator=25]="SuffixOperator",x[x.Delim=26]="Delim",x[x.EMS=27]="EMS",x[x.EXS=28]="EXS",x[x.Length=29]="Length",x[x.Angle=30]="Angle",x[x.Time=31]="Time",x[x.Freq=32]="Freq",x[x.Exclamation=33]="Exclamation",x[x.Resolution=34]="Resolution",x[x.Comma=35]="Comma",x[x.Charset=36]="Charset",x[x.EscapedJavaScript=37]="EscapedJavaScript",x[x.BadEscapedJavaScript=38]="BadEscapedJavaScript",x[x.Comment=39]="Comment",x[x.SingleLineComment=40]="SingleLineComment",x[x.EOF=41]="EOF",x[x.CustomToken=42]="CustomToken"}(h||(h={}));var f=function(){function x(c){this.source=c,this.len=c.length,this.position=0}return x.prototype.substring=function(c,p){return p===void 0&&(p=this.position),this.source.substring(c,p)},x.prototype.eos=function(){return this.len<=this.position},x.prototype.pos=function(){return this.position},x.prototype.goBackTo=function(c){this.position=c},x.prototype.goBack=function(c){this.position-=c},x.prototype.advance=function(c){this.position+=c},x.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},x.prototype.peekChar=function(c){return c===void 0&&(c=0),this.source.charCodeAt(this.position+c)||0},x.prototype.lookbackChar=function(c){return c===void 0&&(c=0),this.source.charCodeAt(this.position-c)||0},x.prototype.advanceIfChar=function(c){return c===this.source.charCodeAt(this.position)&&(this.position++,!0)},x.prototype.advanceIfChars=function(c){if(this.position+c.length>this.source.length)return!1;for(var p=0;p<c.length;p++)if(this.source.charCodeAt(this.position+p)!==c[p])return!1;return this.advance(p),!0},x.prototype.advanceWhileChar=function(c){for(var p=this.position;this.position<this.len&&c(this.source.charCodeAt(this.position));)this.position++;return this.position-p},x}(),O="a".charCodeAt(0),H="f".charCodeAt(0),E="z".charCodeAt(0),ge="A".charCodeAt(0),W="F".charCodeAt(0),Q="Z".charCodeAt(0),y="0".charCodeAt(0),C="9".charCodeAt(0),S="~".charCodeAt(0),P="^".charCodeAt(0),V="=".charCodeAt(0),k="|".charCodeAt(0),l="-".charCodeAt(0),T="_".charCodeAt(0),N="%".charCodeAt(0),b="*".charCodeAt(0),g="(".charCodeAt(0),j=")".charCodeAt(0),ie="<".charCodeAt(0),U=">".charCodeAt(0),q="@".charCodeAt(0),B="#".charCodeAt(0),se="$".charCodeAt(0),ke="\\".charCodeAt(0),xe="/".charCodeAt(0),Y=` `.charCodeAt(0),Z="\r".charCodeAt(0),te="\f".charCodeAt(0),he='"'.charCodeAt(0),Ce="'".charCodeAt(0),Ae=" ".charCodeAt(0),L=" ".charCodeAt(0),nt=";".charCodeAt(0),ct=":".charCodeAt(0),Ye="{".charCodeAt(0),ht="}".charCodeAt(0),fe="[".charCodeAt(0),$="]".charCodeAt(0),G=",".charCodeAt(0),z=".".charCodeAt(0),J="!".charCodeAt(0),Se={};Se[nt]=h.SemiColon,Se[ct]=h.Colon,Se[Ye]=h.CurlyL,Se[ht]=h.CurlyR,Se[$]=h.BracketR,Se[fe]=h.BracketL,Se[g]=h.ParenthesisL,Se[j]=h.ParenthesisR,Se[G]=h.Comma;var A={};A.em=h.EMS,A.ex=h.EXS,A.px=h.Length,A.cm=h.Length,A.mm=h.Length,A.in=h.Length,A.pt=h.Length,A.pc=h.Length,A.deg=h.Angle,A.rad=h.Angle,A.grad=h.Angle,A.ms=h.Time,A.s=h.Time,A.hz=h.Freq,A.khz=h.Freq,A["%"]=h.Percentage,A.fr=h.Percentage,A.dpi=h.Resolution,A.dpcm=h.Resolution;var ee=function(){function x(){this.stream=new f(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return x.prototype.setSource=function(c){this.stream=new f(c)},x.prototype.finishToken=function(c,p,F){return{offset:c,len:this.stream.pos()-c,type:p,text:F||this.stream.substring(c)}},x.prototype.substring=function(c,p){return this.stream.substring(c,c+p)},x.prototype.pos=function(){return this.stream.pos()},x.prototype.goBackTo=function(c){this.stream.goBackTo(c)},x.prototype.scanUnquotedString=function(){var c=this.stream.pos(),p=[];return this._unquotedString(p)?this.finishToken(c,h.UnquotedString,p.join("")):null},x.prototype.scan=function(){var c=this.trivia();if(c!==null)return c;var p=this.stream.pos();return this.stream.eos()?this.finishToken(p,h.EOF):this.scanNext(p)},x.prototype.scanNext=function(c){if(this.stream.advanceIfChars([ie,J,l,l]))return this.finishToken(c,h.CDO);if(this.stream.advanceIfChars([l,l,U]))return this.finishToken(c,h.CDC);var p=[];if(this.ident(p))return this.finishToken(c,h.Ident,p.join(""));if(this.stream.advanceIfChar(q)){if(p=["@"],this._name(p)){var F=p.join("");return F==="@charset"?this.finishToken(c,h.Charset,F):this.finishToken(c,h.AtKeyword,F)}return this.finishToken(c,h.Delim)}if(this.stream.advanceIfChar(B))return p=["#"],this._name(p)?this.finishToken(c,h.Hash,p.join("")):this.finishToken(c,h.Delim);if(this.stream.advanceIfChar(J))return this.finishToken(c,h.Exclamation);if(this._number()){var pe=this.stream.pos();if(p=[this.stream.substring(c,pe)],this.stream.advanceIfChar(N))return this.finishToken(c,h.Percentage);if(this.ident(p)){var He=this.stream.substring(pe).toLowerCase(),Qe=A[He];return Qe!==void 0?this.finishToken(c,Qe,p.join("")):this.finishToken(c,h.Dimension,p.join(""))}return this.finishToken(c,h.Num)}p=[];var Vt=this._string(p);return Vt!==null?this.finishToken(c,Vt,p.join("")):(Vt=Se[this.stream.peekChar()])!==void 0?(this.stream.advance(1),this.finishToken(c,Vt)):this.stream.peekChar(0)===S&&this.stream.peekChar(1)===V?(this.stream.advance(2),this.finishToken(c,h.Includes)):this.stream.peekChar(0)===k&&this.stream.peekChar(1)===V?(this.stream.advance(2),this.finishToken(c,h.Dashmatch)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===V?(this.stream.advance(2),this.finishToken(c,h.SubstringOperator)):this.stream.peekChar(0)===P&&this.stream.peekChar(1)===V?(this.stream.advance(2),this.finishToken(c,h.PrefixOperator)):this.stream.peekChar(0)===se&&this.stream.peekChar(1)===V?(this.stream.advance(2),this.finishToken(c,h.SuffixOperator)):(this.stream.nextChar(),this.finishToken(c,h.Delim))},x.prototype.trivia=function(){for(;;){var c=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(c,h.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(c,h.Comment)}}},x.prototype.comment=function(){if(this.stream.advanceIfChars([xe,b])){var c=!1,p=!1;return this.stream.advanceWhileChar(function(F){return p&&F===xe?(c=!0,!1):(p=F===b,!0)}),c&&this.stream.advance(1),!0}return!1},x.prototype._number=function(){var c,p=0;return this.stream.peekChar()===z&&(p=1),(c=this.stream.peekChar(p))>=y&&c<=C&&(this.stream.advance(p+1),this.stream.advanceWhileChar(function(F){return F>=y&&F<=C||p===0&&F===z}),!0)},x.prototype._newline=function(c){var p=this.stream.peekChar();switch(p){case Z:case te:case Y:return this.stream.advance(1),c.push(String.fromCharCode(p)),p===Z&&this.stream.advanceIfChar(Y)&&c.push(` -`),!0}return!1},x.prototype._escape=function(c,p){var F=this.stream.peekChar();if(F===ke){this.stream.advance(1),F=this.stream.peekChar();for(var pe=0;pe<6&&(F>=y&&F<=C||F>=D&&F<=H||F>=ge&&F<=W);)this.stream.advance(1),F=this.stream.peekChar(),pe++;if(pe>0){try{var He=parseInt(this.stream.substring(this.stream.pos()-pe),16);He&&c.push(String.fromCharCode(He))}catch(Qe){}return F===Ae||F===L?this.stream.advance(1):this._newline([]),!0}if(F!==Z&&F!==te&&F!==Y)return this.stream.advance(1),c.push(String.fromCharCode(F)),!0;if(p)return this._newline(c)}return!1},x.prototype._stringChar=function(c,p){var F=this.stream.peekChar();return F!==0&&F!==c&&F!==ke&&F!==Z&&F!==te&&F!==Y&&(this.stream.advance(1),p.push(String.fromCharCode(F)),!0)},x.prototype._string=function(c){if(this.stream.peekChar()===Ce||this.stream.peekChar()===he){var p=this.stream.nextChar();for(c.push(String.fromCharCode(p));this._stringChar(p,c)||this._escape(c,!0););return this.stream.peekChar()===p?(this.stream.nextChar(),c.push(String.fromCharCode(p)),h.String):h.BadString}return null},x.prototype._unquotedChar=function(c){var p=this.stream.peekChar();return p!==0&&p!==ke&&p!==Ce&&p!==he&&p!==g&&p!==j&&p!==Ae&&p!==L&&p!==Y&&p!==te&&p!==Z&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._unquotedString=function(c){for(var p=!1;this._unquotedChar(c)||this._escape(c);)p=!0;return p},x.prototype._whitespace=function(){return this.stream.advanceWhileChar(function(c){return c===Ae||c===L||c===Y||c===te||c===Z})>0},x.prototype._name=function(c){for(var p=!1;this._identChar(c)||this._escape(c);)p=!0;return p},x.prototype.ident=function(c){var p=this.stream.pos();if(this._minus(c)&&this._minus(c)){if(this._identFirstChar(c)||this._escape(c)){for(;this._identChar(c)||this._escape(c););return!0}}else if(this._identFirstChar(c)||this._escape(c)){for(;this._identChar(c)||this._escape(c););return!0}return this.stream.goBackTo(p),!1},x.prototype._identFirstChar=function(c){var p=this.stream.peekChar();return(p===T||p>=D&&p<=E||p>=ge&&p<=Q||p>=128&&p<=65535)&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._minus=function(c){var p=this.stream.peekChar();return p===l&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._identChar=function(c){var p=this.stream.peekChar();return(p===T||p===l||p>=D&&p<=E||p>=ge&&p<=Q||p>=y&&p<=C||p>=128&&p<=65535)&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x}();function de(x,c){if(x.length<c.length)return!1;for(var p=0;p<c.length;p++)if(x[p]!==c[p])return!1;return!0}function Oe(x,c){var p=x.length-c.length;return p>0?x.lastIndexOf(c)===p:p===0&&x===c}function $e(x,c){return c===void 0&&(c=!0),x?x.length<140?x:x.slice(0,140)+(c?"\u2026":""):""}var pt,it,At,Nt=(pt=function(x,c){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,F){p.__proto__=F}||function(p,F){for(var pe in F)F.hasOwnProperty(pe)&&(p[pe]=F[pe])})(x,c)},function(x,c){function p(){this.constructor=x}pt(x,c),x.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)});function _i(x,c){var p=null;return!x||c<x.offset||c>x.end?null:(x.accept(function(F){return F.offset===-1&&F.length===-1||F.offset<=c&&F.end>=c&&(p?F.length<=p.length&&(p=F):p=F,!0)}),p)}function wt(x,c){for(var p=_i(x,c),F=[];p;)F.unshift(p),p=p.parent;return F}(function(x){x[x.Undefined=0]="Undefined",x[x.Identifier=1]="Identifier",x[x.Stylesheet=2]="Stylesheet",x[x.Ruleset=3]="Ruleset",x[x.Selector=4]="Selector",x[x.SimpleSelector=5]="SimpleSelector",x[x.SelectorInterpolation=6]="SelectorInterpolation",x[x.SelectorCombinator=7]="SelectorCombinator",x[x.SelectorCombinatorParent=8]="SelectorCombinatorParent",x[x.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",x[x.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",x[x.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",x[x.Page=12]="Page",x[x.PageBoxMarginBox=13]="PageBoxMarginBox",x[x.ClassSelector=14]="ClassSelector",x[x.IdentifierSelector=15]="IdentifierSelector",x[x.ElementNameSelector=16]="ElementNameSelector",x[x.PseudoSelector=17]="PseudoSelector",x[x.AttributeSelector=18]="AttributeSelector",x[x.Declaration=19]="Declaration",x[x.Declarations=20]="Declarations",x[x.Property=21]="Property",x[x.Expression=22]="Expression",x[x.BinaryExpression=23]="BinaryExpression",x[x.Term=24]="Term",x[x.Operator=25]="Operator",x[x.Value=26]="Value",x[x.StringLiteral=27]="StringLiteral",x[x.URILiteral=28]="URILiteral",x[x.EscapedValue=29]="EscapedValue",x[x.Function=30]="Function",x[x.NumericValue=31]="NumericValue",x[x.HexColorValue=32]="HexColorValue",x[x.MixinDeclaration=33]="MixinDeclaration",x[x.MixinReference=34]="MixinReference",x[x.VariableName=35]="VariableName",x[x.VariableDeclaration=36]="VariableDeclaration",x[x.Prio=37]="Prio",x[x.Interpolation=38]="Interpolation",x[x.NestedProperties=39]="NestedProperties",x[x.ExtendsReference=40]="ExtendsReference",x[x.SelectorPlaceholder=41]="SelectorPlaceholder",x[x.Debug=42]="Debug",x[x.If=43]="If",x[x.Else=44]="Else",x[x.For=45]="For",x[x.Each=46]="Each",x[x.While=47]="While",x[x.MixinContentReference=48]="MixinContentReference",x[x.MixinContentDeclaration=49]="MixinContentDeclaration",x[x.Media=50]="Media",x[x.Keyframe=51]="Keyframe",x[x.FontFace=52]="FontFace",x[x.Import=53]="Import",x[x.Namespace=54]="Namespace",x[x.Invocation=55]="Invocation",x[x.FunctionDeclaration=56]="FunctionDeclaration",x[x.ReturnStatement=57]="ReturnStatement",x[x.MediaQuery=58]="MediaQuery",x[x.FunctionParameter=59]="FunctionParameter",x[x.FunctionArgument=60]="FunctionArgument",x[x.KeyframeSelector=61]="KeyframeSelector",x[x.ViewPort=62]="ViewPort",x[x.Document=63]="Document",x[x.AtApplyRule=64]="AtApplyRule",x[x.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",x[x.CustomPropertySet=66]="CustomPropertySet",x[x.ListEntry=67]="ListEntry",x[x.Supports=68]="Supports",x[x.SupportsCondition=69]="SupportsCondition",x[x.NamespacePrefix=70]="NamespacePrefix",x[x.GridLine=71]="GridLine",x[x.Plugin=72]="Plugin",x[x.UnknownAtRule=73]="UnknownAtRule",x[x.Use=74]="Use",x[x.ModuleConfiguration=75]="ModuleConfiguration",x[x.Forward=76]="Forward",x[x.ForwardVisibility=77]="ForwardVisibility",x[x.Module=78]="Module"})(it||(it={})),function(x){x[x.Mixin=0]="Mixin",x[x.Rule=1]="Rule",x[x.Variable=2]="Variable",x[x.Function=3]="Function",x[x.Keyframe=4]="Keyframe",x[x.Unknown=5]="Unknown",x[x.Module=6]="Module",x[x.Forward=7]="Forward",x[x.ForwardVisibility=8]="ForwardVisibility"}(At||(At={}));var Ni,pi=function(){function x(c,p,F){c===void 0&&(c=-1),p===void 0&&(p=-1),this.parent=null,this.offset=c,this.length=p,F&&(this.nodeType=F)}return Object.defineProperty(x.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"type",{get:function(){return this.nodeType||it.Undefined},set:function(c){this.nodeType=c},enumerable:!0,configurable:!0}),x.prototype.getTextProvider=function(){for(var c=this;c&&!c.textProvider;)c=c.parent;return c?c.textProvider:function(){return"unknown"}},x.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},x.prototype.matches=function(c){return this.length===c.length&&this.getTextProvider()(this.offset,this.length)===c},x.prototype.startsWith=function(c){return this.length>=c.length&&this.getTextProvider()(this.offset,c.length)===c},x.prototype.endsWith=function(c){return this.length>=c.length&&this.getTextProvider()(this.end-c.length,c.length)===c},x.prototype.accept=function(c){if(c(this)&&this.children)for(var p=0,F=this.children;p<F.length;p++)F[p].accept(c)},x.prototype.acceptVisitor=function(c){this.accept(c.visitNode.bind(c))},x.prototype.adoptChild=function(c,p){if(p===void 0&&(p=-1),c.parent&&c.parent.children){var F=c.parent.children.indexOf(c);F>=0&&c.parent.children.splice(F,1)}c.parent=this;var pe=this.children;return pe||(pe=this.children=[]),p!==-1?pe.splice(p,0,c):pe.push(c),c},x.prototype.attachTo=function(c,p){return p===void 0&&(p=-1),c&&c.adoptChild(this,p),this},x.prototype.collectIssues=function(c){this.issues&&c.push.apply(c,this.issues)},x.prototype.addIssue=function(c){this.issues||(this.issues=[]),this.issues.push(c)},x.prototype.hasIssue=function(c){return Array.isArray(this.issues)&&this.issues.some(function(p){return p.getRule()===c})},x.prototype.isErroneous=function(c){return c===void 0&&(c=!1),!!(this.issues&&this.issues.length>0)||c&&Array.isArray(this.children)&&this.children.some(function(p){return p.isErroneous(!0)})},x.prototype.setNode=function(c,p,F){return F===void 0&&(F=-1),!!p&&(p.attachTo(this,F),this[c]=p,!0)},x.prototype.addChild=function(c){return!!c&&(this.children||(this.children=[]),c.attachTo(this),this.updateOffsetAndLength(c),!0)},x.prototype.updateOffsetAndLength=function(c){(c.offset<this.offset||this.offset===-1)&&(this.offset=c.offset);var p=c.end;(p>this.end||this.length===-1)&&(this.length=p-this.offset)},x.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},x.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},x.prototype.getChild=function(c){return this.children&&c<this.children.length?this.children[c]:null},x.prototype.addChildren=function(c){for(var p=0,F=c;p<F.length;p++){var pe=F[p];this.addChild(pe)}},x.prototype.findFirstChildBeforeOffset=function(c){if(this.children){for(var p=null,F=this.children.length-1;F>=0;F--)if((p=this.children[F]).offset<=c)return p}return null},x.prototype.findChildAtOffset=function(c,p){var F=this.findFirstChildBeforeOffset(c);return F&&F.end>=c?p&&F.findChildAtOffset(c,!0)||F:null},x.prototype.encloses=function(c){return this.offset<=c.offset&&this.offset+this.length>=c.offset+c.length},x.prototype.getParent=function(){for(var c=this.parent;c instanceof et;)c=c.parent;return c},x.prototype.findParent=function(c){for(var p=this;p&&p.type!==c;)p=p.parent;return p},x.prototype.findAParent=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];for(var F=this;F&&!c.some(function(pe){return F.type===pe});)F=F.parent;return F},x.prototype.setData=function(c,p){this.options||(this.options={}),this.options[c]=p},x.prototype.getData=function(c){return this.options&&this.options.hasOwnProperty(c)?this.options[c]:null},x}(),et=function(x){function c(p,F){F===void 0&&(F=-1);var pe=x.call(this,-1,-1)||this;return pe.attachTo(p,F),pe.offset=-1,pe.length=-1,pe}return Nt(c,x),c}(pi),Wt=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.isCustomProperty=!1,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Identifier},enumerable:!0,configurable:!0}),c.prototype.containsInterpolation=function(){return this.hasChildren()},c}(pi),Li=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Stylesheet},enumerable:!0,configurable:!0}),c}(pi),Ii=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Declarations},enumerable:!0,configurable:!0}),c}(pi),Ai=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c.prototype.getDeclarations=function(){return this.declarations},c.prototype.setDeclarations=function(p){return this.setNode("declarations",p)},c}(pi),Zi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Ruleset},enumerable:!0,configurable:!0}),c.prototype.getSelectors=function(){return this.selectors||(this.selectors=new et(this)),this.selectors},c.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(it.Declarations)!==null},c}(Ai),Bi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Selector},enumerable:!0,configurable:!0}),c}(pi),Lt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.SimpleSelector},enumerable:!0,configurable:!0}),c}(pi),Di=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.AtApplyRule},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(pi),gt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c}(pi),vi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.CustomPropertyDeclaration},enumerable:!0,configurable:!0}),c.prototype.setProperty=function(p){return this.setNode("property",p)},c.prototype.getProperty=function(){return this.property},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c.prototype.setPropertySet=function(p){return this.setNode("propertySet",p)},c.prototype.getPropertySet=function(){return this.propertySet},c}(gt),Rt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.CustomPropertySet},enumerable:!0,configurable:!0}),c}(Ai),vt=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.property=null,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Declaration},enumerable:!0,configurable:!0}),c.prototype.setProperty=function(p){return this.setNode("property",p)},c.prototype.getProperty=function(){return this.property},c.prototype.getFullPropertyName=function(){var p=this.property?this.property.getName():"unknown";if(this.parent instanceof Ii&&this.parent.getParent()instanceof yi){var F=this.parent.getParent().getParent();if(F instanceof c)return F.getFullPropertyName()+p}return p},c.prototype.getNonPrefixedPropertyName=function(){var p=this.getFullPropertyName();if(p&&p.charAt(0)==="-"){var F=p.indexOf("-",1);if(F!==-1)return p.substring(F+1)}return p},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c.prototype.setNestedProperties=function(p){return this.setNode("nestedProperties",p)},c.prototype.getNestedProperties=function(){return this.nestedProperties},c}(gt),Ue=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Property},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return p=this.getText(),(F=/[_\+]+$/.exec(p))&&F[0].length?p.substr(0,p.length-F[0].length):p;var p,F},c.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},c}(pi),ut=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Function},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Invocation},enumerable:!0,configurable:!0}),c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c}(pi)),ze=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionParameter},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setDefaultValue=function(p){return this.setNode("defaultValue",p,0)},c.prototype.getDefaultValue=function(){return this.defaultValue},c}(pi),st=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionArgument},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setValue=function(p){return this.setNode("value",p,0)},c.prototype.getValue=function(){return this.value},c}(pi),_t=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.If},enumerable:!0,configurable:!0}),c.prototype.setExpression=function(p){return this.setNode("expression",p,0)},c.prototype.setElseClause=function(p){return this.setNode("elseClause",p)},c}(Ai),oi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.For},enumerable:!0,configurable:!0}),c.prototype.setVariable=function(p){return this.setNode("variable",p,0)},c}(Ai),li=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Each},enumerable:!0,configurable:!0}),c.prototype.getVariables=function(){return this.variables||(this.variables=new et(this)),this.variables},c}(Ai),gi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.While},enumerable:!0,configurable:!0}),c}(Ai),ki=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Else},enumerable:!0,configurable:!0}),c}(Ai),Ri=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionDeclaration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c}(Ai),$i=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ViewPort},enumerable:!0,configurable:!0}),c}(Ai),Hi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FontFace},enumerable:!0,configurable:!0}),c}(Ai),yi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.NestedProperties},enumerable:!0,configurable:!0}),c}(Ai),kt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Keyframe},enumerable:!0,configurable:!0}),c.prototype.setKeyword=function(p){return this.setNode("keyword",p,0)},c.prototype.getKeyword=function(){return this.keyword},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(Ai),Et=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.KeyframeSelector},enumerable:!0,configurable:!0}),c}(Ai),si=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Import},enumerable:!0,configurable:!0}),c.prototype.setMedialist=function(p){return!!p&&(p.attachTo(this),!0)},c}(pi),Si=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Use},enumerable:!0,configurable:!0}),c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),Pi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ModuleConfiguration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setValue=function(p){return this.setNode("value",p,0)},c.prototype.getValue=function(){return this.value},c}(pi),Wi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Forward},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),xn=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ForwardVisibility},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),un=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Namespace},enumerable:!0,configurable:!0}),c}(pi),bn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Media},enumerable:!0,configurable:!0}),c}(Ai),Fn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Supports},enumerable:!0,configurable:!0}),c}(Ai),Mn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Document},enumerable:!0,configurable:!0}),c}(Ai),Nn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c.prototype.getMediums=function(){return this.mediums||(this.mediums=new et(this)),this.mediums},c}(pi),Hn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MediaQuery},enumerable:!0,configurable:!0}),c}(pi),Jn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.SupportsCondition},enumerable:!0,configurable:!0}),c}(pi),_o=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Page},enumerable:!0,configurable:!0}),c}(Ai),pn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.PageBoxMarginBox},enumerable:!0,configurable:!0}),c}(Ai),Gn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Expression},enumerable:!0,configurable:!0}),c}(pi),on=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.BinaryExpression},enumerable:!0,configurable:!0}),c.prototype.setLeft=function(p){return this.setNode("left",p)},c.prototype.getLeft=function(){return this.left},c.prototype.setRight=function(p){return this.setNode("right",p)},c.prototype.getRight=function(){return this.right},c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c}(pi),ho=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Term},enumerable:!0,configurable:!0}),c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c.prototype.setExpression=function(p){return this.setNode("expression",p)},c.prototype.getExpression=function(){return this.expression},c}(pi),On=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.AttributeSelector},enumerable:!0,configurable:!0}),c.prototype.setNamespacePrefix=function(p){return this.setNode("namespacePrefix",p)},c.prototype.getNamespacePrefix=function(){return this.namespacePrefix},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c}(pi),Dn=(function(x){function c(p,F){return x.call(this,p,F)||this}Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Operator},enumerable:!0,configurable:!0})}(pi),function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.HexColorValue},enumerable:!0,configurable:!0}),c}(pi)),qt=".".charCodeAt(0),I="0".charCodeAt(0),ne="9".charCodeAt(0),_e=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.NumericValue},enumerable:!0,configurable:!0}),c.prototype.getValue=function(){for(var p,F=this.getText(),pe=0,He=0,Qe=F.length;He<Qe&&(p=F.charCodeAt(He),I<=p&&p<=ne||p===qt);He++)pe+=1;return{value:F.substring(0,pe),unit:pe<F.length?F.substring(pe):void 0}},c}(pi),Fe=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.variable=null,pe.value=null,pe.needsSemicolon=!0,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.VariableDeclaration},enumerable:!0,configurable:!0}),c.prototype.setVariable=function(p){return!!p&&(p.attachTo(this),this.variable=p,!0)},c.prototype.getVariable=function(){return this.variable},c.prototype.getName=function(){return this.variable?this.variable.getName():""},c.prototype.setValue=function(p){return!!p&&(p.attachTo(this),this.value=p,!0)},c.prototype.getValue=function(){return this.value},c}(gt),Xe=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Interpolation},enumerable:!0,configurable:!0}),c}(pi),ot=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.VariableName},enumerable:!0,configurable:!0}),c.prototype.getName=function(){return this.getText()},c}(pi),Mt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ExtendsReference},enumerable:!0,configurable:!0}),c.prototype.getSelectors=function(){return this.selectors||(this.selectors=new et(this)),this.selectors},c}(pi),Ot=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinContentReference},enumerable:!0,configurable:!0}),c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c}(pi),Tt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinContentReference},enumerable:!0,configurable:!0}),c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c}(Ai),Ht=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinReference},enumerable:!0,configurable:!0}),c.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new et(this)),this.namespaces},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c.prototype.setContent=function(p){return this.setNode("content",p)},c.prototype.getContent=function(){return this.content},c}(pi),jt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinDeclaration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c.prototype.setGuard=function(p){return p&&(p.attachTo(this),this.guard=p),!1},c}(Ai),Kt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.UnknownAtRule},enumerable:!0,configurable:!0}),c.prototype.setAtRuleName=function(p){this.atRuleName=p},c.prototype.getAtRuleName=function(){return this.atRuleName},c}(Ai),wi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ListEntry},enumerable:!0,configurable:!0}),c.prototype.setKey=function(p){return this.setNode("key",p,0)},c.prototype.setValue=function(p){return this.setNode("value",p,1)},c}(pi),Ti=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),c.prototype.getConditions=function(){return this.conditions||(this.conditions=new et(this)),this.conditions},c}(pi),ft=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),c.prototype.setVariable=function(p){return this.setNode("variable",p)},c}(pi),X=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Module},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi);(function(x){x[x.Ignore=1]="Ignore",x[x.Warning=2]="Warning",x[x.Error=4]="Error"})(Ni||(Ni={}));var ae=function(){function x(c,p,F,pe,He,Qe){He===void 0&&(He=c.offset),Qe===void 0&&(Qe=c.length),this.node=c,this.rule=p,this.level=F,this.message=pe||p.message,this.offset=He,this.length=Qe}return x.prototype.getRule=function(){return this.rule},x.prototype.getLevel=function(){return this.level},x.prototype.getOffset=function(){return this.offset},x.prototype.getLength=function(){return this.length},x.prototype.getNode=function(){return this.node},x.prototype.getMessage=function(){return this.message},x}(),Ge=function(){function x(){this.entries=[]}return x.entries=function(c){var p=new x;return c.acceptVisitor(p),p.entries},x.prototype.visitNode=function(c){return c.isErroneous()&&c.collectIssues(this.entries),!0},x}();function lt(x,c){return c.length===0?x:x.replace(/\{(\d+)\}/g,function(p,F){var pe=F[0];return c[pe]!==void 0?c[pe]:p})}function Dt(x,c){for(var p=[],F=2;F<arguments.length;F++)p[F-2]=arguments[F];return lt(c,p)}function Gt(x){return Dt}var ti=Gt(),ye=function(x,c){this.id=x,this.message=c},le={NumberExpected:new ye("css-numberexpected",ti("expected.number","number expected")),ConditionExpected:new ye("css-conditionexpected",ti("expected.condt","condition expected")),RuleOrSelectorExpected:new ye("css-ruleorselectorexpected",ti("expected.ruleorselector","at-rule or selector expected")),DotExpected:new ye("css-dotexpected",ti("expected.dot","dot expected")),ColonExpected:new ye("css-colonexpected",ti("expected.colon","colon expected")),SemiColonExpected:new ye("css-semicolonexpected",ti("expected.semicolon","semi-colon expected")),TermExpected:new ye("css-termexpected",ti("expected.term","term expected")),ExpressionExpected:new ye("css-expressionexpected",ti("expected.expression","expression expected")),OperatorExpected:new ye("css-operatorexpected",ti("expected.operator","operator expected")),IdentifierExpected:new ye("css-identifierexpected",ti("expected.ident","identifier expected")),PercentageExpected:new ye("css-percentageexpected",ti("expected.percentage","percentage expected")),URIOrStringExpected:new ye("css-uriorstringexpected",ti("expected.uriorstring","uri or string expected")),URIExpected:new ye("css-uriexpected",ti("expected.uri","URI expected")),VariableNameExpected:new ye("css-varnameexpected",ti("expected.varname","variable name expected")),VariableValueExpected:new ye("css-varvalueexpected",ti("expected.varvalue","variable value expected")),PropertyValueExpected:new ye("css-propertyvalueexpected",ti("expected.propvalue","property value expected")),LeftCurlyExpected:new ye("css-lcurlyexpected",ti("expected.lcurly","{ expected")),RightCurlyExpected:new ye("css-rcurlyexpected",ti("expected.rcurly","} expected")),LeftSquareBracketExpected:new ye("css-rbracketexpected",ti("expected.lsquare","[ expected")),RightSquareBracketExpected:new ye("css-lbracketexpected",ti("expected.rsquare","] expected")),LeftParenthesisExpected:new ye("css-lparentexpected",ti("expected.lparen","( expected")),RightParenthesisExpected:new ye("css-rparentexpected",ti("expected.rparent",") expected")),CommaExpected:new ye("css-commaexpected",ti("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new ye("css-pagedirordeclexpected",ti("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new ye("css-unknownatrule",ti("unknown.atrule","at-rule unknown")),UnknownKeyword:new ye("css-unknownkeyword",ti("unknown.keyword","unknown keyword")),SelectorExpected:new ye("css-selectorexpected",ti("expected.selector","selector expected")),StringLiteralExpected:new ye("css-stringliteralexpected",ti("expected.stringliteral","string literal expected")),WhitespaceExpected:new ye("css-whitespaceexpected",ti("expected.whitespace","whitespace expected")),MediaQueryExpected:new ye("css-mediaqueryexpected",ti("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new ye("css-idorwildcardexpected",ti("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new ye("css-wildcardexpected",ti("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new ye("css-idorvarexpected",ti("expected.idorvar","identifier or variable expected"))},ue={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function qe(x){switch(x){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F +`),!0}return!1},x.prototype._escape=function(c,p){var F=this.stream.peekChar();if(F===ke){this.stream.advance(1),F=this.stream.peekChar();for(var pe=0;pe<6&&(F>=y&&F<=C||F>=O&&F<=H||F>=ge&&F<=W);)this.stream.advance(1),F=this.stream.peekChar(),pe++;if(pe>0){try{var He=parseInt(this.stream.substring(this.stream.pos()-pe),16);He&&c.push(String.fromCharCode(He))}catch(Qe){}return F===Ae||F===L?this.stream.advance(1):this._newline([]),!0}if(F!==Z&&F!==te&&F!==Y)return this.stream.advance(1),c.push(String.fromCharCode(F)),!0;if(p)return this._newline(c)}return!1},x.prototype._stringChar=function(c,p){var F=this.stream.peekChar();return F!==0&&F!==c&&F!==ke&&F!==Z&&F!==te&&F!==Y&&(this.stream.advance(1),p.push(String.fromCharCode(F)),!0)},x.prototype._string=function(c){if(this.stream.peekChar()===Ce||this.stream.peekChar()===he){var p=this.stream.nextChar();for(c.push(String.fromCharCode(p));this._stringChar(p,c)||this._escape(c,!0););return this.stream.peekChar()===p?(this.stream.nextChar(),c.push(String.fromCharCode(p)),h.String):h.BadString}return null},x.prototype._unquotedChar=function(c){var p=this.stream.peekChar();return p!==0&&p!==ke&&p!==Ce&&p!==he&&p!==g&&p!==j&&p!==Ae&&p!==L&&p!==Y&&p!==te&&p!==Z&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._unquotedString=function(c){for(var p=!1;this._unquotedChar(c)||this._escape(c);)p=!0;return p},x.prototype._whitespace=function(){return this.stream.advanceWhileChar(function(c){return c===Ae||c===L||c===Y||c===te||c===Z})>0},x.prototype._name=function(c){for(var p=!1;this._identChar(c)||this._escape(c);)p=!0;return p},x.prototype.ident=function(c){var p=this.stream.pos();if(this._minus(c)&&this._minus(c)){if(this._identFirstChar(c)||this._escape(c)){for(;this._identChar(c)||this._escape(c););return!0}}else if(this._identFirstChar(c)||this._escape(c)){for(;this._identChar(c)||this._escape(c););return!0}return this.stream.goBackTo(p),!1},x.prototype._identFirstChar=function(c){var p=this.stream.peekChar();return(p===T||p>=O&&p<=E||p>=ge&&p<=Q||p>=128&&p<=65535)&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._minus=function(c){var p=this.stream.peekChar();return p===l&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x.prototype._identChar=function(c){var p=this.stream.peekChar();return(p===T||p===l||p>=O&&p<=E||p>=ge&&p<=Q||p>=y&&p<=C||p>=128&&p<=65535)&&(this.stream.advance(1),c.push(String.fromCharCode(p)),!0)},x}();function de(x,c){if(x.length<c.length)return!1;for(var p=0;p<c.length;p++)if(x[p]!==c[p])return!1;return!0}function De(x,c){var p=x.length-c.length;return p>0?x.lastIndexOf(c)===p:p===0&&x===c}function $e(x,c){return c===void 0&&(c=!0),x?x.length<140?x:x.slice(0,140)+(c?"\u2026":""):""}var pt,it,At,Nt=(pt=function(x,c){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,F){p.__proto__=F}||function(p,F){for(var pe in F)F.hasOwnProperty(pe)&&(p[pe]=F[pe])})(x,c)},function(x,c){function p(){this.constructor=x}pt(x,c),x.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)});function _i(x,c){var p=null;return!x||c<x.offset||c>x.end?null:(x.accept(function(F){return F.offset===-1&&F.length===-1||F.offset<=c&&F.end>=c&&(p?F.length<=p.length&&(p=F):p=F,!0)}),p)}function wt(x,c){for(var p=_i(x,c),F=[];p;)F.unshift(p),p=p.parent;return F}(function(x){x[x.Undefined=0]="Undefined",x[x.Identifier=1]="Identifier",x[x.Stylesheet=2]="Stylesheet",x[x.Ruleset=3]="Ruleset",x[x.Selector=4]="Selector",x[x.SimpleSelector=5]="SimpleSelector",x[x.SelectorInterpolation=6]="SelectorInterpolation",x[x.SelectorCombinator=7]="SelectorCombinator",x[x.SelectorCombinatorParent=8]="SelectorCombinatorParent",x[x.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",x[x.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",x[x.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",x[x.Page=12]="Page",x[x.PageBoxMarginBox=13]="PageBoxMarginBox",x[x.ClassSelector=14]="ClassSelector",x[x.IdentifierSelector=15]="IdentifierSelector",x[x.ElementNameSelector=16]="ElementNameSelector",x[x.PseudoSelector=17]="PseudoSelector",x[x.AttributeSelector=18]="AttributeSelector",x[x.Declaration=19]="Declaration",x[x.Declarations=20]="Declarations",x[x.Property=21]="Property",x[x.Expression=22]="Expression",x[x.BinaryExpression=23]="BinaryExpression",x[x.Term=24]="Term",x[x.Operator=25]="Operator",x[x.Value=26]="Value",x[x.StringLiteral=27]="StringLiteral",x[x.URILiteral=28]="URILiteral",x[x.EscapedValue=29]="EscapedValue",x[x.Function=30]="Function",x[x.NumericValue=31]="NumericValue",x[x.HexColorValue=32]="HexColorValue",x[x.MixinDeclaration=33]="MixinDeclaration",x[x.MixinReference=34]="MixinReference",x[x.VariableName=35]="VariableName",x[x.VariableDeclaration=36]="VariableDeclaration",x[x.Prio=37]="Prio",x[x.Interpolation=38]="Interpolation",x[x.NestedProperties=39]="NestedProperties",x[x.ExtendsReference=40]="ExtendsReference",x[x.SelectorPlaceholder=41]="SelectorPlaceholder",x[x.Debug=42]="Debug",x[x.If=43]="If",x[x.Else=44]="Else",x[x.For=45]="For",x[x.Each=46]="Each",x[x.While=47]="While",x[x.MixinContentReference=48]="MixinContentReference",x[x.MixinContentDeclaration=49]="MixinContentDeclaration",x[x.Media=50]="Media",x[x.Keyframe=51]="Keyframe",x[x.FontFace=52]="FontFace",x[x.Import=53]="Import",x[x.Namespace=54]="Namespace",x[x.Invocation=55]="Invocation",x[x.FunctionDeclaration=56]="FunctionDeclaration",x[x.ReturnStatement=57]="ReturnStatement",x[x.MediaQuery=58]="MediaQuery",x[x.FunctionParameter=59]="FunctionParameter",x[x.FunctionArgument=60]="FunctionArgument",x[x.KeyframeSelector=61]="KeyframeSelector",x[x.ViewPort=62]="ViewPort",x[x.Document=63]="Document",x[x.AtApplyRule=64]="AtApplyRule",x[x.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",x[x.CustomPropertySet=66]="CustomPropertySet",x[x.ListEntry=67]="ListEntry",x[x.Supports=68]="Supports",x[x.SupportsCondition=69]="SupportsCondition",x[x.NamespacePrefix=70]="NamespacePrefix",x[x.GridLine=71]="GridLine",x[x.Plugin=72]="Plugin",x[x.UnknownAtRule=73]="UnknownAtRule",x[x.Use=74]="Use",x[x.ModuleConfiguration=75]="ModuleConfiguration",x[x.Forward=76]="Forward",x[x.ForwardVisibility=77]="ForwardVisibility",x[x.Module=78]="Module"})(it||(it={})),function(x){x[x.Mixin=0]="Mixin",x[x.Rule=1]="Rule",x[x.Variable=2]="Variable",x[x.Function=3]="Function",x[x.Keyframe=4]="Keyframe",x[x.Unknown=5]="Unknown",x[x.Module=6]="Module",x[x.Forward=7]="Forward",x[x.ForwardVisibility=8]="ForwardVisibility"}(At||(At={}));var Ni,pi=function(){function x(c,p,F){c===void 0&&(c=-1),p===void 0&&(p=-1),this.parent=null,this.offset=c,this.length=p,F&&(this.nodeType=F)}return Object.defineProperty(x.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"type",{get:function(){return this.nodeType||it.Undefined},set:function(c){this.nodeType=c},enumerable:!0,configurable:!0}),x.prototype.getTextProvider=function(){for(var c=this;c&&!c.textProvider;)c=c.parent;return c?c.textProvider:function(){return"unknown"}},x.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},x.prototype.matches=function(c){return this.length===c.length&&this.getTextProvider()(this.offset,this.length)===c},x.prototype.startsWith=function(c){return this.length>=c.length&&this.getTextProvider()(this.offset,c.length)===c},x.prototype.endsWith=function(c){return this.length>=c.length&&this.getTextProvider()(this.end-c.length,c.length)===c},x.prototype.accept=function(c){if(c(this)&&this.children)for(var p=0,F=this.children;p<F.length;p++)F[p].accept(c)},x.prototype.acceptVisitor=function(c){this.accept(c.visitNode.bind(c))},x.prototype.adoptChild=function(c,p){if(p===void 0&&(p=-1),c.parent&&c.parent.children){var F=c.parent.children.indexOf(c);F>=0&&c.parent.children.splice(F,1)}c.parent=this;var pe=this.children;return pe||(pe=this.children=[]),p!==-1?pe.splice(p,0,c):pe.push(c),c},x.prototype.attachTo=function(c,p){return p===void 0&&(p=-1),c&&c.adoptChild(this,p),this},x.prototype.collectIssues=function(c){this.issues&&c.push.apply(c,this.issues)},x.prototype.addIssue=function(c){this.issues||(this.issues=[]),this.issues.push(c)},x.prototype.hasIssue=function(c){return Array.isArray(this.issues)&&this.issues.some(function(p){return p.getRule()===c})},x.prototype.isErroneous=function(c){return c===void 0&&(c=!1),!!(this.issues&&this.issues.length>0)||c&&Array.isArray(this.children)&&this.children.some(function(p){return p.isErroneous(!0)})},x.prototype.setNode=function(c,p,F){return F===void 0&&(F=-1),!!p&&(p.attachTo(this,F),this[c]=p,!0)},x.prototype.addChild=function(c){return!!c&&(this.children||(this.children=[]),c.attachTo(this),this.updateOffsetAndLength(c),!0)},x.prototype.updateOffsetAndLength=function(c){(c.offset<this.offset||this.offset===-1)&&(this.offset=c.offset);var p=c.end;(p>this.end||this.length===-1)&&(this.length=p-this.offset)},x.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},x.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},x.prototype.getChild=function(c){return this.children&&c<this.children.length?this.children[c]:null},x.prototype.addChildren=function(c){for(var p=0,F=c;p<F.length;p++){var pe=F[p];this.addChild(pe)}},x.prototype.findFirstChildBeforeOffset=function(c){if(this.children){for(var p=null,F=this.children.length-1;F>=0;F--)if((p=this.children[F]).offset<=c)return p}return null},x.prototype.findChildAtOffset=function(c,p){var F=this.findFirstChildBeforeOffset(c);return F&&F.end>=c?p&&F.findChildAtOffset(c,!0)||F:null},x.prototype.encloses=function(c){return this.offset<=c.offset&&this.offset+this.length>=c.offset+c.length},x.prototype.getParent=function(){for(var c=this.parent;c instanceof et;)c=c.parent;return c},x.prototype.findParent=function(c){for(var p=this;p&&p.type!==c;)p=p.parent;return p},x.prototype.findAParent=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];for(var F=this;F&&!c.some(function(pe){return F.type===pe});)F=F.parent;return F},x.prototype.setData=function(c,p){this.options||(this.options={}),this.options[c]=p},x.prototype.getData=function(c){return this.options&&this.options.hasOwnProperty(c)?this.options[c]:null},x}(),et=function(x){function c(p,F){F===void 0&&(F=-1);var pe=x.call(this,-1,-1)||this;return pe.attachTo(p,F),pe.offset=-1,pe.length=-1,pe}return Nt(c,x),c}(pi),Wt=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.isCustomProperty=!1,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Identifier},enumerable:!0,configurable:!0}),c.prototype.containsInterpolation=function(){return this.hasChildren()},c}(pi),Li=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Stylesheet},enumerable:!0,configurable:!0}),c}(pi),Ii=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Declarations},enumerable:!0,configurable:!0}),c}(pi),Ai=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c.prototype.getDeclarations=function(){return this.declarations},c.prototype.setDeclarations=function(p){return this.setNode("declarations",p)},c}(pi),Zi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Ruleset},enumerable:!0,configurable:!0}),c.prototype.getSelectors=function(){return this.selectors||(this.selectors=new et(this)),this.selectors},c.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(it.Declarations)!==null},c}(Ai),Bi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Selector},enumerable:!0,configurable:!0}),c}(pi),Lt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.SimpleSelector},enumerable:!0,configurable:!0}),c}(pi),Oi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.AtApplyRule},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(pi),gt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c}(pi),vi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.CustomPropertyDeclaration},enumerable:!0,configurable:!0}),c.prototype.setProperty=function(p){return this.setNode("property",p)},c.prototype.getProperty=function(){return this.property},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c.prototype.setPropertySet=function(p){return this.setNode("propertySet",p)},c.prototype.getPropertySet=function(){return this.propertySet},c}(gt),Rt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.CustomPropertySet},enumerable:!0,configurable:!0}),c}(Ai),vt=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.property=null,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Declaration},enumerable:!0,configurable:!0}),c.prototype.setProperty=function(p){return this.setNode("property",p)},c.prototype.getProperty=function(){return this.property},c.prototype.getFullPropertyName=function(){var p=this.property?this.property.getName():"unknown";if(this.parent instanceof Ii&&this.parent.getParent()instanceof yi){var F=this.parent.getParent().getParent();if(F instanceof c)return F.getFullPropertyName()+p}return p},c.prototype.getNonPrefixedPropertyName=function(){var p=this.getFullPropertyName();if(p&&p.charAt(0)==="-"){var F=p.indexOf("-",1);if(F!==-1)return p.substring(F+1)}return p},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c.prototype.setNestedProperties=function(p){return this.setNode("nestedProperties",p)},c.prototype.getNestedProperties=function(){return this.nestedProperties},c}(gt),Ue=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Property},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return p=this.getText(),(F=/[_\+]+$/.exec(p))&&F[0].length?p.substr(0,p.length-F[0].length):p;var p,F},c.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},c}(pi),ut=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Function},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Invocation},enumerable:!0,configurable:!0}),c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c}(pi)),ze=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionParameter},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setDefaultValue=function(p){return this.setNode("defaultValue",p,0)},c.prototype.getDefaultValue=function(){return this.defaultValue},c}(pi),st=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionArgument},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setValue=function(p){return this.setNode("value",p,0)},c.prototype.getValue=function(){return this.value},c}(pi),_t=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.If},enumerable:!0,configurable:!0}),c.prototype.setExpression=function(p){return this.setNode("expression",p,0)},c.prototype.setElseClause=function(p){return this.setNode("elseClause",p)},c}(Ai),ri=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.For},enumerable:!0,configurable:!0}),c.prototype.setVariable=function(p){return this.setNode("variable",p,0)},c}(Ai),li=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Each},enumerable:!0,configurable:!0}),c.prototype.getVariables=function(){return this.variables||(this.variables=new et(this)),this.variables},c}(Ai),gi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.While},enumerable:!0,configurable:!0}),c}(Ai),ki=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Else},enumerable:!0,configurable:!0}),c}(Ai),Ri=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FunctionDeclaration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c}(Ai),$i=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ViewPort},enumerable:!0,configurable:!0}),c}(Ai),Hi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.FontFace},enumerable:!0,configurable:!0}),c}(Ai),yi=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.NestedProperties},enumerable:!0,configurable:!0}),c}(Ai),kt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Keyframe},enumerable:!0,configurable:!0}),c.prototype.setKeyword=function(p){return this.setNode("keyword",p,0)},c.prototype.getKeyword=function(){return this.keyword},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c}(Ai),Et=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.KeyframeSelector},enumerable:!0,configurable:!0}),c}(Ai),si=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Import},enumerable:!0,configurable:!0}),c.prototype.setMedialist=function(p){return!!p&&(p.attachTo(this),!0)},c}(pi),Si=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Use},enumerable:!0,configurable:!0}),c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),Pi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ModuleConfiguration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.setValue=function(p){return this.setNode("value",p,0)},c.prototype.getValue=function(){return this.value},c}(pi),Wi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Forward},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),xn=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ForwardVisibility},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi),un=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Namespace},enumerable:!0,configurable:!0}),c}(pi),bn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Media},enumerable:!0,configurable:!0}),c}(Ai),Fn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Supports},enumerable:!0,configurable:!0}),c}(Ai),Mn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Document},enumerable:!0,configurable:!0}),c}(Ai),Nn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),c.prototype.getMediums=function(){return this.mediums||(this.mediums=new et(this)),this.mediums},c}(pi),Hn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MediaQuery},enumerable:!0,configurable:!0}),c}(pi),Jn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.SupportsCondition},enumerable:!0,configurable:!0}),c}(pi),br=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Page},enumerable:!0,configurable:!0}),c}(Ai),pn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.PageBoxMarginBox},enumerable:!0,configurable:!0}),c}(Ai),Gn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Expression},enumerable:!0,configurable:!0}),c}(pi),rn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.BinaryExpression},enumerable:!0,configurable:!0}),c.prototype.setLeft=function(p){return this.setNode("left",p)},c.prototype.getLeft=function(){return this.left},c.prototype.setRight=function(p){return this.setNode("right",p)},c.prototype.getRight=function(){return this.right},c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c}(pi),dr=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Term},enumerable:!0,configurable:!0}),c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c.prototype.setExpression=function(p){return this.setNode("expression",p)},c.prototype.getExpression=function(){return this.expression},c}(pi),Dn=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.AttributeSelector},enumerable:!0,configurable:!0}),c.prototype.setNamespacePrefix=function(p){return this.setNode("namespacePrefix",p)},c.prototype.getNamespacePrefix=function(){return this.namespacePrefix},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.setOperator=function(p){return this.setNode("operator",p)},c.prototype.getOperator=function(){return this.operator},c.prototype.setValue=function(p){return this.setNode("value",p)},c.prototype.getValue=function(){return this.value},c}(pi),On=(function(x){function c(p,F){return x.call(this,p,F)||this}Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Operator},enumerable:!0,configurable:!0})}(pi),function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.HexColorValue},enumerable:!0,configurable:!0}),c}(pi)),qt=".".charCodeAt(0),I="0".charCodeAt(0),ne="9".charCodeAt(0),_e=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.NumericValue},enumerable:!0,configurable:!0}),c.prototype.getValue=function(){for(var p,F=this.getText(),pe=0,He=0,Qe=F.length;He<Qe&&(p=F.charCodeAt(He),I<=p&&p<=ne||p===qt);He++)pe+=1;return{value:F.substring(0,pe),unit:pe<F.length?F.substring(pe):void 0}},c}(pi),Fe=function(x){function c(p,F){var pe=x.call(this,p,F)||this;return pe.variable=null,pe.value=null,pe.needsSemicolon=!0,pe}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.VariableDeclaration},enumerable:!0,configurable:!0}),c.prototype.setVariable=function(p){return!!p&&(p.attachTo(this),this.variable=p,!0)},c.prototype.getVariable=function(){return this.variable},c.prototype.getName=function(){return this.variable?this.variable.getName():""},c.prototype.setValue=function(p){return!!p&&(p.attachTo(this),this.value=p,!0)},c.prototype.getValue=function(){return this.value},c}(gt),Xe=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Interpolation},enumerable:!0,configurable:!0}),c}(pi),rt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.VariableName},enumerable:!0,configurable:!0}),c.prototype.getName=function(){return this.getText()},c}(pi),Mt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ExtendsReference},enumerable:!0,configurable:!0}),c.prototype.getSelectors=function(){return this.selectors||(this.selectors=new et(this)),this.selectors},c}(pi),Dt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinContentReference},enumerable:!0,configurable:!0}),c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c}(pi),Tt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinContentReference},enumerable:!0,configurable:!0}),c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c}(Ai),Ht=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinReference},enumerable:!0,configurable:!0}),c.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new et(this)),this.namespaces},c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getArguments=function(){return this.arguments||(this.arguments=new et(this)),this.arguments},c.prototype.setContent=function(p){return this.setNode("content",p)},c.prototype.getContent=function(){return this.content},c}(pi),jt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.MixinDeclaration},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c.prototype.getName=function(){return this.identifier?this.identifier.getText():""},c.prototype.getParameters=function(){return this.parameters||(this.parameters=new et(this)),this.parameters},c.prototype.setGuard=function(p){return p&&(p.attachTo(this),this.guard=p),!1},c}(Ai),Kt=function(x){function c(p,F){return x.call(this,p,F)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.UnknownAtRule},enumerable:!0,configurable:!0}),c.prototype.setAtRuleName=function(p){this.atRuleName=p},c.prototype.getAtRuleName=function(){return this.atRuleName},c}(Ai),wi=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.ListEntry},enumerable:!0,configurable:!0}),c.prototype.setKey=function(p){return this.setNode("key",p,0)},c.prototype.setValue=function(p){return this.setNode("value",p,1)},c}(pi),Ti=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),c.prototype.getConditions=function(){return this.conditions||(this.conditions=new et(this)),this.conditions},c}(pi),ft=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),c.prototype.setVariable=function(p){return this.setNode("variable",p)},c}(pi),X=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Nt(c,x),Object.defineProperty(c.prototype,"type",{get:function(){return it.Module},enumerable:!0,configurable:!0}),c.prototype.setIdentifier=function(p){return this.setNode("identifier",p,0)},c.prototype.getIdentifier=function(){return this.identifier},c}(pi);(function(x){x[x.Ignore=1]="Ignore",x[x.Warning=2]="Warning",x[x.Error=4]="Error"})(Ni||(Ni={}));var ae=function(){function x(c,p,F,pe,He,Qe){He===void 0&&(He=c.offset),Qe===void 0&&(Qe=c.length),this.node=c,this.rule=p,this.level=F,this.message=pe||p.message,this.offset=He,this.length=Qe}return x.prototype.getRule=function(){return this.rule},x.prototype.getLevel=function(){return this.level},x.prototype.getOffset=function(){return this.offset},x.prototype.getLength=function(){return this.length},x.prototype.getNode=function(){return this.node},x.prototype.getMessage=function(){return this.message},x}(),Ge=function(){function x(){this.entries=[]}return x.entries=function(c){var p=new x;return c.acceptVisitor(p),p.entries},x.prototype.visitNode=function(c){return c.isErroneous()&&c.collectIssues(this.entries),!0},x}();function lt(x,c){return c.length===0?x:x.replace(/\{(\d+)\}/g,function(p,F){var pe=F[0];return c[pe]!==void 0?c[pe]:p})}function Ot(x,c){for(var p=[],F=2;F<arguments.length;F++)p[F-2]=arguments[F];return lt(c,p)}function Gt(x){return Ot}var ti=Gt(),ye=function(x,c){this.id=x,this.message=c},le={NumberExpected:new ye("css-numberexpected",ti("expected.number","number expected")),ConditionExpected:new ye("css-conditionexpected",ti("expected.condt","condition expected")),RuleOrSelectorExpected:new ye("css-ruleorselectorexpected",ti("expected.ruleorselector","at-rule or selector expected")),DotExpected:new ye("css-dotexpected",ti("expected.dot","dot expected")),ColonExpected:new ye("css-colonexpected",ti("expected.colon","colon expected")),SemiColonExpected:new ye("css-semicolonexpected",ti("expected.semicolon","semi-colon expected")),TermExpected:new ye("css-termexpected",ti("expected.term","term expected")),ExpressionExpected:new ye("css-expressionexpected",ti("expected.expression","expression expected")),OperatorExpected:new ye("css-operatorexpected",ti("expected.operator","operator expected")),IdentifierExpected:new ye("css-identifierexpected",ti("expected.ident","identifier expected")),PercentageExpected:new ye("css-percentageexpected",ti("expected.percentage","percentage expected")),URIOrStringExpected:new ye("css-uriorstringexpected",ti("expected.uriorstring","uri or string expected")),URIExpected:new ye("css-uriexpected",ti("expected.uri","URI expected")),VariableNameExpected:new ye("css-varnameexpected",ti("expected.varname","variable name expected")),VariableValueExpected:new ye("css-varvalueexpected",ti("expected.varvalue","variable value expected")),PropertyValueExpected:new ye("css-propertyvalueexpected",ti("expected.propvalue","property value expected")),LeftCurlyExpected:new ye("css-lcurlyexpected",ti("expected.lcurly","{ expected")),RightCurlyExpected:new ye("css-rcurlyexpected",ti("expected.rcurly","} expected")),LeftSquareBracketExpected:new ye("css-rbracketexpected",ti("expected.lsquare","[ expected")),RightSquareBracketExpected:new ye("css-lbracketexpected",ti("expected.rsquare","] expected")),LeftParenthesisExpected:new ye("css-lparentexpected",ti("expected.lparen","( expected")),RightParenthesisExpected:new ye("css-rparentexpected",ti("expected.rparent",") expected")),CommaExpected:new ye("css-commaexpected",ti("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new ye("css-pagedirordeclexpected",ti("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new ye("css-unknownatrule",ti("unknown.atrule","at-rule unknown")),UnknownKeyword:new ye("css-unknownkeyword",ti("unknown.keyword","unknown keyword")),SelectorExpected:new ye("css-selectorexpected",ti("expected.selector","selector expected")),StringLiteralExpected:new ye("css-stringliteralexpected",ti("expected.stringliteral","string literal expected")),WhitespaceExpected:new ye("css-whitespaceexpected",ti("expected.whitespace","whitespace expected")),MediaQueryExpected:new ye("css-mediaqueryexpected",ti("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new ye("css-idorwildcardexpected",ti("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new ye("css-wildcardexpected",ti("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new ye("css-idorvarexpected",ti("expected.idorvar","identifier or variable expected"))},ue={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function qe(x){switch(x){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F `;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. `;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. -`;default:return""}}function Ze(x,c){var p;if((p=c?{kind:"markdown",value:zt(x)}:{kind:"plaintext",value:rt(x)}).value!=="")return p}function tt(x){return(x=x.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function rt(x){if(!x.description||x.description==="")return"";if(typeof x.description!="string")return x.description.value;var c="";x.status&&(c+=qe(x.status)),c+=x.description;var p=Jt(x.browsers);return p&&(c+=` +`;default:return""}}function Ze(x,c){var p;if((p=c?{kind:"markdown",value:zt(x)}:{kind:"plaintext",value:ot(x)}).value!=="")return p}function tt(x){return(x=x.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function ot(x){if(!x.description||x.description==="")return"";if(typeof x.description!="string")return x.description.value;var c="";x.status&&(c+=qe(x.status)),c+=x.description;var p=Jt(x.browsers);return p&&(c+=` (`+p+")"),"syntax"in x&&(c+=` Syntax: `+x.syntax),x.references&&x.references.length>0&&(c+=` @@ -509,21 +509,21 @@ Syntax: `+x.syntax),x.references&&x.references.length>0&&(c+=` Syntax: `+tt(x.syntax)),x.references&&x.references.length>0&&(c+=` -`,c+=x.references.map(function(F){return"["+F.name+"]("+F.url+")"}).join(" | ")),c}function Jt(x){return x===void 0&&(x=[]),x.length===0?null:x.map(function(c){var p="",F=c.match(/([A-Z]+)(\d+)?/),pe=F[1],He=F[2];return pe in ue&&(p+=ue[pe]),He&&(p+=" "+He),p}).join(", ")}var xi=Gt(),Ei=[{func:"rgb($red, $green, $blue)",desc:xi("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:xi("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:xi("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:xi("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],ai={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},fi={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function ui(x,c){var p=x.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(p){p[2]&&(c=100);var F=parseFloat(p[1])/c;if(F>=0&&F<=1)return F}throw new Error}function Te(x){var c=x.getName();return!!c&&/^(rgb|rgba|hsl|hsla)$/gi.test(c)}function Ee(x){return x<48?0:x<=57?x-48:(x<97&&(x+=32),x>=97&&x<=102?x-97+10:0)}function ve(x){if(x[0]!=="#")return null;switch(x.length){case 4:return{red:17*Ee(x.charCodeAt(1))/255,green:17*Ee(x.charCodeAt(2))/255,blue:17*Ee(x.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Ee(x.charCodeAt(1))/255,green:17*Ee(x.charCodeAt(2))/255,blue:17*Ee(x.charCodeAt(3))/255,alpha:17*Ee(x.charCodeAt(4))/255};case 7:return{red:(16*Ee(x.charCodeAt(1))+Ee(x.charCodeAt(2)))/255,green:(16*Ee(x.charCodeAt(3))+Ee(x.charCodeAt(4)))/255,blue:(16*Ee(x.charCodeAt(5))+Ee(x.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Ee(x.charCodeAt(1))+Ee(x.charCodeAt(2)))/255,green:(16*Ee(x.charCodeAt(3))+Ee(x.charCodeAt(4)))/255,blue:(16*Ee(x.charCodeAt(5))+Ee(x.charCodeAt(6)))/255,alpha:(16*Ee(x.charCodeAt(7))+Ee(x.charCodeAt(8)))/255}}return null}function Re(x){if(x.type===it.HexColorValue)return ve(x.getText());if(x.type===it.Function){var c=x,p=c.getName(),F=c.getArguments().getChildren();if(!p||F.length<3||F.length>4)return null;try{var pe=F.length===4?ui(F[3],1):1;if(p==="rgb"||p==="rgba")return{red:ui(F[0],255),green:ui(F[1],255),blue:ui(F[2],255),alpha:pe};if(p==="hsl"||p==="hsla")return function(ci,Ft,Fi,cn){if(cn===void 0&&(cn=1),Ft===0)return{red:Fi,green:Fi,blue:Fi,alpha:cn};var vn=function(jn,Vn,Ln){for(;Ln<0;)Ln+=6;for(;Ln>=6;)Ln-=6;return Ln<1?(Vn-jn)*Ln+jn:Ln<3?Vn:Ln<4?(Vn-jn)*(4-Ln)+jn:jn},rn=Fi<=.5?Fi*(Ft+1):Fi+Ft-Fi*Ft,Pn=2*Fi-rn;return{red:vn(Pn,rn,(ci/=60)+2),green:vn(Pn,rn,ci),blue:vn(Pn,rn,ci-2),alpha:cn}}(function(ci){var Ft=ci.getText();if(Ft.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(Ft)%360;throw new Error}(F[0]),ui(F[1],100),ui(F[2],100),pe)}catch(ci){return null}}else if(x.type===it.Identifier){if(x.parent&&x.parent.type!==it.Term)return null;var He=x.parent;if(He&&He.parent&&He.parent.type===it.BinaryExpression){var Qe=He.parent;if(Qe.parent&&Qe.parent.type===it.ListEntry&&Qe.parent.key===Qe)return null}var Vt=x.getText().toLowerCase();if(Vt==="none")return null;var $t=ai[Vt];if($t)return ve($t)}return null}var We={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Be={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Le={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Ke=["medium","thick","thin"],dt={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},yt={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},xt={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Xt={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},mi={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Yt={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},ri={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},qi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],an=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],_n=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function ei(x){return Object.keys(x).map(function(c){return x[c]})}function ii(x){return x!==void 0}var bi=function(){for(var x=0,c=0,p=arguments.length;c<p;c++)x+=arguments[c].length;var F=Array(x),pe=0;for(c=0;c<p;c++)for(var He=arguments[c],Qe=0,Vt=He.length;Qe<Vt;Qe++,pe++)F[pe]=He[Qe];return F},ln=function(){function x(c){c===void 0&&(c=new ee),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=c,this.token={type:h.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return x.prototype.peekIdent=function(c){return h.Ident===this.token.type&&c.length===this.token.text.length&&c===this.token.text.toLowerCase()},x.prototype.peekKeyword=function(c){return h.AtKeyword===this.token.type&&c.length===this.token.text.length&&c===this.token.text.toLowerCase()},x.prototype.peekDelim=function(c){return h.Delim===this.token.type&&c===this.token.text},x.prototype.peek=function(c){return c===this.token.type},x.prototype.peekRegExp=function(c,p){return c===this.token.type&&p.test(this.token.text)},x.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},x.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},x.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},x.prototype.restoreAtMark=function(c){this.prevToken=c.prev,this.token=c.curr,this.scanner.goBackTo(c.pos)},x.prototype.try=function(c){var p=this.mark(),F=c();return F||(this.restoreAtMark(p),null)},x.prototype.acceptOneKeyword=function(c){if(h.AtKeyword===this.token.type)for(var p=0,F=c;p<F.length;p++){var pe=F[p];if(pe.length===this.token.text.length&&pe===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},x.prototype.accept=function(c){return c===this.token.type&&(this.consumeToken(),!0)},x.prototype.acceptIdent=function(c){return!!this.peekIdent(c)&&(this.consumeToken(),!0)},x.prototype.acceptKeyword=function(c){return!!this.peekKeyword(c)&&(this.consumeToken(),!0)},x.prototype.acceptDelim=function(c){return!!this.peekDelim(c)&&(this.consumeToken(),!0)},x.prototype.acceptRegexp=function(c){return!!c.test(this.token.text)&&(this.consumeToken(),!0)},x.prototype._parseRegexp=function(c){var p=this.createNode(it.Identifier);do;while(this.acceptRegexp(c));return this.finish(p)},x.prototype.acceptUnquotedString=function(){var c=this.scanner.pos();this.scanner.goBackTo(this.token.offset);var p=this.scanner.scanUnquotedString();return p?(this.token=p,this.consumeToken(),!0):(this.scanner.goBackTo(c),!1)},x.prototype.resync=function(c,p){for(;;){if(c&&c.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(p&&p.indexOf(this.token.type)!==-1)return!0;if(this.token.type===h.EOF)return!1;this.token=this.scanner.scan()}},x.prototype.createNode=function(c){return new pi(this.token.offset,this.token.len,c)},x.prototype.create=function(c){return new c(this.token.offset,this.token.len)},x.prototype.finish=function(c,p,F,pe){if(!(c instanceof et)&&(p&&this.markError(c,p,F,pe),this.prevToken)){var He=this.prevToken.offset+this.prevToken.len;c.length=He>c.offset?He-c.offset:0}return c},x.prototype.markError=function(c,p,F,pe){this.token!==this.lastErrorToken&&(c.addIssue(new ae(c,p,Ni.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(F||pe)&&this.resync(F,pe)},x.prototype.parseStylesheet=function(c){var p=c.version,F=c.getText();return this.internalParse(F,this._parseStylesheet,function(pe,He){if(c.version!==p)throw new Error("Underlying model has changed, AST is no longer valid");return F.substr(pe,He)})},x.prototype.internalParse=function(c,p,F){this.scanner.setSource(c),this.token=this.scanner.scan();var pe=p.bind(this)();return pe&&(pe.textProvider=F||function(He,Qe){return c.substr(He,Qe)}),pe},x.prototype._parseStylesheet=function(){for(var c=this.create(Li);c.addChild(this._parseStylesheetStart()););var p=!1;do{var F=!1;do{F=!1;var pe=this._parseStylesheetStatement();for(pe&&(c.addChild(pe),F=!0,p=!1,this.peek(h.EOF)||!this._needsSemicolonAfter(pe)||this.accept(h.SemiColon)||this.markError(c,le.SemiColonExpected));this.accept(h.SemiColon)||this.accept(h.CDO)||this.accept(h.CDC);)F=!0,p=!1}while(F);if(this.peek(h.EOF))break;p||(this.peek(h.AtKeyword)?this.markError(c,le.UnknownAtRule):this.markError(c,le.RuleOrSelectorExpected),p=!0),this.consumeToken()}while(!this.peek(h.EOF));return this.finish(c)},x.prototype._parseStylesheetStart=function(){return this._parseCharset()},x.prototype._parseStylesheetStatement=function(c){return c===void 0&&(c=!1),this.peek(h.AtKeyword)?this._parseStylesheetAtStatement(c):this._parseRuleset(c)},x.prototype._parseStylesheetAtStatement=function(c){return c===void 0&&(c=!1),this._parseImport()||this._parseMedia(c)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(c)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},x.prototype._tryParseRuleset=function(c){var p=this.mark();if(this._parseSelector(c)){for(;this.accept(h.Comma)&&this._parseSelector(c););if(this.accept(h.CurlyL))return this.restoreAtMark(p),this._parseRuleset(c)}return this.restoreAtMark(p),null},x.prototype._parseRuleset=function(c){c===void 0&&(c=!1);var p=this.create(Zi),F=p.getSelectors();if(!F.addChild(this._parseSelector(c)))return null;for(;this.accept(h.Comma);)if(!F.addChild(this._parseSelector(c)))return this.finish(p,le.SelectorExpected);return this._parseBody(p,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseAtApply()||this._parseUnknownAtRule()},x.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._tryParseCustomPropertyDeclaration()||this._parseDeclaration()},x.prototype._parseAtApply=function(){if(!this.peekKeyword("@apply"))return null;var c=this.create(Di);return this.consumeToken(),c.setIdentifier(this._parseIdent([At.Variable]))?this.finish(c):this.finish(c,le.IdentifierExpected)},x.prototype._needsSemicolonAfter=function(c){switch(c.type){case it.Keyframe:case it.ViewPort:case it.Media:case it.Ruleset:case it.Namespace:case it.If:case it.For:case it.Each:case it.While:case it.MixinDeclaration:case it.FunctionDeclaration:case it.MixinContentDeclaration:return!1;case it.ExtendsReference:case it.MixinContentReference:case it.ReturnStatement:case it.MediaQuery:case it.Debug:case it.Import:case it.AtApplyRule:case it.CustomPropertyDeclaration:return!0;case it.VariableDeclaration:return c.needsSemicolon;case it.MixinReference:return!c.getContent();case it.Declaration:return!c.getNestedProperties()}return!1},x.prototype._parseDeclarations=function(c){var p=this.create(Ii);if(!this.accept(h.CurlyL))return null;for(var F=c();p.addChild(F)&&!this.peek(h.CurlyR);){if(this._needsSemicolonAfter(F)&&!this.accept(h.SemiColon))return this.finish(p,le.SemiColonExpected,[h.SemiColon,h.CurlyR]);for(F&&this.prevToken&&this.prevToken.type===h.SemiColon&&(F.semicolonPosition=this.prevToken.offset);this.accept(h.SemiColon););F=c()}return this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.RightCurlyExpected,[h.CurlyR,h.SemiColon])},x.prototype._parseBody=function(c,p){return c.setDeclarations(this._parseDeclarations(p))?this.finish(c):this.finish(c,le.LeftCurlyExpected,[h.CurlyR,h.SemiColon])},x.prototype._parseSelector=function(c){var p=this.create(Bi),F=!1;for(c&&(F=p.addChild(this._parseCombinator()));p.addChild(this._parseSimpleSelector());)F=!0,p.addChild(this._parseCombinator());return F?this.finish(p):null},x.prototype._parseDeclaration=function(c){var p=this.create(vt);if(!p.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon)){var F=c?bi(c,[h.SemiColon]):[h.SemiColon];return this.finish(p,le.ColonExpected,[h.Colon],F)}return this.prevToken&&(p.colonPosition=this.prevToken.offset),p.setValue(this._parseExpr())?(p.addChild(this._parsePrio()),this.peek(h.SemiColon)&&(p.semicolonPosition=this.token.offset),this.finish(p)):this.finish(p,le.PropertyValueExpected)},x.prototype._tryParseCustomPropertyDeclaration=function(){if(!this.peekRegExp(h.Ident,/^--/))return null;var c=this.create(vi);if(!c.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(c,le.ColonExpected,[h.Colon]);this.prevToken&&(c.colonPosition=this.prevToken.offset);var p=this.mark();if(this.peek(h.CurlyL)){var F=this.create(Rt),pe=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(F.setDeclarations(pe)&&!pe.isErroneous(!0)&&(F.addChild(this._parsePrio()),this.peek(h.SemiColon)))return this.finish(F),c.setPropertySet(F),c.semicolonPosition=this.token.offset,this.finish(c);this.restoreAtMark(p)}var He=this._parseExpr();return He&&!He.isErroneous(!0)&&(this._parsePrio(),this.peek(h.SemiColon))?(c.setValue(He),c.semicolonPosition=this.token.offset,this.finish(c)):(this.restoreAtMark(p),c.addChild(this._parseCustomPropertyValue()),c.addChild(this._parsePrio()),ii(c.colonPosition)&&this.token.offset===c.colonPosition+1?this.finish(c,le.PropertyValueExpected):this.finish(c))},x.prototype._parseCustomPropertyValue=function(){var c=this.create(pi),p=function(){return F===0&&pe===0&&He===0},F=0,pe=0,He=0;e:for(;;){switch(this.token.type){case h.SemiColon:case h.Exclamation:if(p())break e;break;case h.CurlyL:F++;break;case h.CurlyR:if(--F<0){if(pe===0&&He===0)break e;return this.finish(c,le.LeftCurlyExpected)}break;case h.ParenthesisL:pe++;break;case h.ParenthesisR:if(--pe<0)return this.finish(c,le.LeftParenthesisExpected);break;case h.BracketL:He++;break;case h.BracketR:if(--He<0)return this.finish(c,le.LeftSquareBracketExpected);break;case h.BadString:break e;case h.EOF:var Qe=le.RightCurlyExpected;return He>0?Qe=le.RightSquareBracketExpected:pe>0&&(Qe=le.RightParenthesisExpected),this.finish(c,Qe)}this.consumeToken()}return this.finish(c)},x.prototype._tryToParseDeclaration=function(){var c=this.mark();return this._parseProperty()&&this.accept(h.Colon)?(this.restoreAtMark(c),this._parseDeclaration()):(this.restoreAtMark(c),null)},x.prototype._parseProperty=function(){var c=this.create(Ue),p=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(p),null):c.setIdentifier(this._parsePropertyIdentifier())?this.finish(c):null},x.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},x.prototype._parseCharset=function(){if(!this.peek(h.Charset))return null;var c=this.create(pi);return this.consumeToken(),this.accept(h.String)?this.accept(h.SemiColon)?this.finish(c):this.finish(c,le.SemiColonExpected):this.finish(c,le.IdentifierExpected)},x.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var c=this.create(si);return this.consumeToken(),c.addChild(this._parseURILiteral())||c.addChild(this._parseStringLiteral())?(this.peek(h.SemiColon)||this.peek(h.EOF)||c.setMedialist(this._parseMediaQueryList()),this.finish(c)):this.finish(c,le.URIOrStringExpected)},x.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var c=this.create(un);return this.consumeToken(),c.addChild(this._parseURILiteral())||(c.addChild(this._parseIdent()),c.addChild(this._parseURILiteral())||c.addChild(this._parseStringLiteral()))?this.accept(h.SemiColon)?this.finish(c):this.finish(c,le.SemiColonExpected):this.finish(c,le.URIExpected,[h.SemiColon])},x.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var c=this.create(Hi);return this.consumeToken(),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var c=this.create($i);return this.consumeToken(),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseKeyframe=function(){if(!this.peekRegExp(h.AtKeyword,this.keyframeRegex))return null;var c=this.create(kt),p=this.create(pi);return this.consumeToken(),c.setKeyword(this.finish(p)),p.matches("@-ms-keyframes")&&this.markError(p,le.UnknownKeyword),c.setIdentifier(this._parseKeyframeIdent())?this._parseBody(c,this._parseKeyframeSelector.bind(this)):this.finish(c,le.IdentifierExpected,[h.CurlyR])},x.prototype._parseKeyframeIdent=function(){return this._parseIdent([At.Keyframe])},x.prototype._parseKeyframeSelector=function(){var c=this.create(Et);if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.finish(c,le.PercentageExpected);return this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._tryParseKeyframeSelector=function(){var c=this.create(Et),p=this.mark();if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.restoreAtMark(p),null;return this.peek(h.CurlyL)?this._parseBody(c,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(p),null)},x.prototype._parseSupports=function(c){if(c===void 0&&(c=!1),!this.peekKeyword("@supports"))return null;var p=this.create(Fn);return this.consumeToken(),p.addChild(this._parseSupportsCondition()),this._parseBody(p,this._parseSupportsDeclaration.bind(this,c))},x.prototype._parseSupportsDeclaration=function(c){return c===void 0&&(c=!1),c?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},x.prototype._parseSupportsCondition=function(){var c=this.create(Jn);if(this.acceptIdent("not"))c.addChild(this._parseSupportsConditionInParens());else if(c.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(h.Ident,/^(and|or)$/i))for(var p=this.token.text.toLowerCase();this.acceptIdent(p);)c.addChild(this._parseSupportsConditionInParens());return this.finish(c)},x.prototype._parseSupportsConditionInParens=function(){var c=this.create(Jn);if(this.accept(h.ParenthesisL))return this.prevToken&&(c.lParent=this.prevToken.offset),c.addChild(this._tryToParseDeclaration())||this._parseSupportsCondition()?this.accept(h.ParenthesisR)?(this.prevToken&&(c.rParent=this.prevToken.offset),this.finish(c)):this.finish(c,le.RightParenthesisExpected,[h.ParenthesisR],[]):this.finish(c,le.ConditionExpected);if(this.peek(h.Ident)){var p=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(h.ParenthesisL)){for(var F=1;this.token.type!==h.EOF&&F!==0;)this.token.type===h.ParenthesisL?F++:this.token.type===h.ParenthesisR&&F--,this.consumeToken();return this.finish(c)}this.restoreAtMark(p)}return this.finish(c,le.LeftParenthesisExpected,[],[h.ParenthesisL])},x.prototype._parseMediaDeclaration=function(c){return c===void 0&&(c=!1),c?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},x.prototype._parseMedia=function(c){if(c===void 0&&(c=!1),!this.peekKeyword("@media"))return null;var p=this.create(bn);return this.consumeToken(),p.addChild(this._parseMediaQueryList())?this._parseBody(p,this._parseMediaDeclaration.bind(this,c)):this.finish(p,le.MediaQueryExpected)},x.prototype._parseMediaQueryList=function(){var c=this.create(Nn);if(!c.addChild(this._parseMediaQuery([h.CurlyL])))return this.finish(c,le.MediaQueryExpected);for(;this.accept(h.Comma);)if(!c.addChild(this._parseMediaQuery([h.CurlyL])))return this.finish(c,le.MediaQueryExpected);return this.finish(c)},x.prototype._parseMediaQuery=function(c){var p=this.create(Hn),F=!0,pe=!1;if(!this.peek(h.ParenthesisL)){if(this.acceptIdent("only")||this.acceptIdent("not"),!p.addChild(this._parseIdent()))return null;pe=!0,F=this.acceptIdent("and")}for(;F;)if(p.addChild(this._parseMediaContentStart()))F=this.acceptIdent("and");else{if(!this.accept(h.ParenthesisL))return pe?this.finish(p,le.LeftParenthesisExpected,[],c):null;if(!p.addChild(this._parseMediaFeatureName()))return this.finish(p,le.IdentifierExpected,[],c);if(this.accept(h.Colon)&&!p.addChild(this._parseExpr()))return this.finish(p,le.TermExpected,[],c);if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[],c);F=this.acceptIdent("and")}return this.finish(p)},x.prototype._parseMediaContentStart=function(){return null},x.prototype._parseMediaFeatureName=function(){return this._parseIdent()},x.prototype._parseMedium=function(){var c=this.create(pi);return c.addChild(this._parseIdent())?this.finish(c):null},x.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},x.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var c=this.create(_o);if(this.consumeToken(),c.addChild(this._parsePageSelector())){for(;this.accept(h.Comma);)if(!c.addChild(this._parsePageSelector()))return this.finish(c,le.IdentifierExpected)}return this._parseBody(c,this._parsePageDeclaration.bind(this))},x.prototype._parsePageMarginBox=function(){if(!this.peek(h.AtKeyword))return null;var c=this.create(pn);return this.acceptOneKeyword(_n)||this.markError(c,le.UnknownAtRule,[],[h.CurlyL]),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parsePageSelector=function(){if(!this.peek(h.Ident)&&!this.peek(h.Colon))return null;var c=this.create(pi);return c.addChild(this._parseIdent()),this.accept(h.Colon)&&!c.addChild(this._parseIdent())?this.finish(c,le.IdentifierExpected):this.finish(c)},x.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var c=this.create(Mn);return this.consumeToken(),this.resync([],[h.CurlyL]),this._parseBody(c,this._parseStylesheetStatement.bind(this))},x.prototype._parseUnknownAtRule=function(){if(!this.peek(h.AtKeyword))return null;var c=this.create(Kt);c.addChild(this._parseUnknownAtRuleName());var p=0,F=0,pe=0,He=0;e:for(;;){switch(this.token.type){case h.SemiColon:if(F===0&&pe===0&&He===0)break e;break;case h.EOF:return F>0?this.finish(c,le.RightCurlyExpected):He>0?this.finish(c,le.RightSquareBracketExpected):pe>0?this.finish(c,le.RightParenthesisExpected):this.finish(c);case h.CurlyL:p++,F++;break;case h.CurlyR:if(F--,p>0&&F===0){if(this.consumeToken(),He>0)return this.finish(c,le.RightSquareBracketExpected);if(pe>0)return this.finish(c,le.RightParenthesisExpected);break e}if(F<0){if(pe===0&&He===0)break e;return this.finish(c,le.LeftCurlyExpected)}break;case h.ParenthesisL:pe++;break;case h.ParenthesisR:if(--pe<0)return this.finish(c,le.LeftParenthesisExpected);break;case h.BracketL:He++;break;case h.BracketR:if(--He<0)return this.finish(c,le.LeftSquareBracketExpected)}this.consumeToken()}return c},x.prototype._parseUnknownAtRuleName=function(){var c=this.create(pi);return this.accept(h.AtKeyword)?this.finish(c):c},x.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(h.Dashmatch)||this.peek(h.Includes)||this.peek(h.SubstringOperator)||this.peek(h.PrefixOperator)||this.peek(h.SuffixOperator)||this.peekDelim("=")){var c=this.createNode(it.Operator);return this.consumeToken(),this.finish(c)}return null},x.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var c=this.create(pi);return this.consumeToken(),this.finish(c)},x.prototype._parseCombinator=function(){if(this.peekDelim(">")){var c=this.create(pi);this.consumeToken();var p=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return c.type=it.SelectorCombinatorShadowPiercingDescendant,this.finish(c);this.restoreAtMark(p)}return c.type=it.SelectorCombinatorParent,this.finish(c)}if(this.peekDelim("+"))return c=this.create(pi),this.consumeToken(),c.type=it.SelectorCombinatorSibling,this.finish(c);if(this.peekDelim("~"))return c=this.create(pi),this.consumeToken(),c.type=it.SelectorCombinatorAllSiblings,this.finish(c);if(this.peekDelim("/")){if(c=this.create(pi),this.consumeToken(),p=this.mark(),!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return c.type=it.SelectorCombinatorShadowPiercingDescendant,this.finish(c);this.restoreAtMark(p)}return null},x.prototype._parseSimpleSelector=function(){var c=this.create(Lt),p=0;for(c.addChild(this._parseElementName())&&p++;(p===0||!this.hasWhitespace())&&c.addChild(this._parseSimpleSelectorBody());)p++;return p>0?this.finish(c):null},x.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},x.prototype._parseSelectorIdent=function(){return this._parseIdent()},x.prototype._parseHash=function(){if(!this.peek(h.Hash)&&!this.peekDelim("#"))return null;var c=this.createNode(it.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!c.addChild(this._parseSelectorIdent()))return this.finish(c,le.IdentifierExpected)}else this.consumeToken();return this.finish(c)},x.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var c=this.createNode(it.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!c.addChild(this._parseSelectorIdent())?this.finish(c,le.IdentifierExpected):this.finish(c)},x.prototype._parseElementName=function(){var c=this.mark(),p=this.createNode(it.ElementNameSelector);return p.addChild(this._parseNamespacePrefix()),p.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(p):(this.restoreAtMark(c),null)},x.prototype._parseNamespacePrefix=function(){var c=this.mark(),p=this.createNode(it.NamespacePrefix);return!p.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(p):(this.restoreAtMark(c),null)},x.prototype._parseAttrib=function(){if(!this.peek(h.BracketL))return null;var c=this.create(On);return this.consumeToken(),c.setNamespacePrefix(this._parseNamespacePrefix()),c.setIdentifier(this._parseIdent())?(c.setOperator(this._parseOperator())&&(c.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(h.BracketR)?this.finish(c):this.finish(c,le.RightSquareBracketExpected)):this.finish(c,le.IdentifierExpected)},x.prototype._parsePseudo=function(){var c=this,p=this._tryParsePseudoIdentifier();return p?!this.hasWhitespace()&&this.accept(h.ParenthesisL)&&(p.addChild(this.try(function(){var F=c.create(pi);if(!F.addChild(c._parseSelector(!1)))return null;for(;c.accept(h.Comma)&&F.addChild(c._parseSelector(!1)););return c.peek(h.ParenthesisR)?c.finish(F):null})||this._parseBinaryExpr()),!this.accept(h.ParenthesisR))?this.finish(p,le.RightParenthesisExpected):this.finish(p):null},x.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(h.Colon))return null;var c=this.mark(),p=this.createNode(it.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(c),null):(this.accept(h.Colon)&&this.hasWhitespace()&&this.markError(p,le.IdentifierExpected),p.addChild(this._parseIdent())||this.markError(p,le.IdentifierExpected),p)},x.prototype._tryParsePrio=function(){var c=this.mark(),p=this._parsePrio();return p||(this.restoreAtMark(c),null)},x.prototype._parsePrio=function(){if(!this.peek(h.Exclamation))return null;var c=this.createNode(it.Prio);return this.accept(h.Exclamation)&&this.acceptIdent("important")?this.finish(c):null},x.prototype._parseExpr=function(c){c===void 0&&(c=!1);var p=this.create(Gn);if(!p.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(h.Comma)){if(c)return this.finish(p);this.consumeToken()}if(!p.addChild(this._parseBinaryExpr()))break}return this.finish(p)},x.prototype._parseNamedLine=function(){if(!this.peek(h.BracketL))return null;var c=this.createNode(it.GridLine);for(this.consumeToken();c.addChild(this._parseIdent()););return this.accept(h.BracketR)?this.finish(c):this.finish(c,le.RightSquareBracketExpected)},x.prototype._parseBinaryExpr=function(c,p){var F=this.create(on);if(!F.setLeft(c||this._parseTerm()))return null;if(!F.setOperator(p||this._parseOperator()))return this.finish(F);if(!F.setRight(this._parseTerm()))return this.finish(F,le.TermExpected);F=this.finish(F);var pe=this._parseOperator();return pe&&(F=this._parseBinaryExpr(F,pe)),this.finish(F)},x.prototype._parseTerm=function(){var c=this.create(ho);return c.setOperator(this._parseUnaryOperator()),c.setExpression(this._parseTermExpression())?this.finish(c):null},x.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},x.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var c=this.create(pi);return this.consumeToken(),c.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(c):this.finish(c,le.RightParenthesisExpected)},x.prototype._parseNumeric=function(){if(this.peek(h.Num)||this.peek(h.Percentage)||this.peek(h.Resolution)||this.peek(h.Length)||this.peek(h.EMS)||this.peek(h.EXS)||this.peek(h.Angle)||this.peek(h.Time)||this.peek(h.Dimension)||this.peek(h.Freq)){var c=this.create(_e);return this.consumeToken(),this.finish(c)}return null},x.prototype._parseStringLiteral=function(){if(!this.peek(h.String)&&!this.peek(h.BadString))return null;var c=this.createNode(it.StringLiteral);return this.consumeToken(),this.finish(c)},x.prototype._parseURILiteral=function(){if(!this.peekRegExp(h.Ident,/^url(-prefix)?$/i))return null;var c=this.mark(),p=this.createNode(it.URILiteral);return this.accept(h.Ident),this.hasWhitespace()||!this.peek(h.ParenthesisL)?(this.restoreAtMark(c),null):(this.scanner.inURL=!0,this.consumeToken(),p.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected))},x.prototype._parseURLArgument=function(){var c=this.create(pi);return this.accept(h.String)||this.accept(h.BadString)||this.acceptUnquotedString()?this.finish(c):null},x.prototype._parseIdent=function(c){if(!this.peek(h.Ident))return null;var p=this.create(Wt);return c&&(p.referenceTypes=c),p.isCustomProperty=this.peekRegExp(h.Ident,/^--/),this.consumeToken(),this.finish(p)},x.prototype._parseFunction=function(){var c=this.mark(),p=this.create(ut);if(!p.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(c),null;if(p.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)p.getArguments().addChild(this._parseFunctionArgument())||this.markError(p,le.ExpressionExpected);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},x.prototype._parseFunctionIdentifier=function(){if(!this.peek(h.Ident))return null;var c=this.create(Wt);if(c.referenceTypes=[At.Function],this.acceptIdent("progid")){if(this.accept(h.Colon))for(;this.accept(h.Ident)&&this.acceptDelim("."););return this.finish(c)}return this.consumeToken(),this.finish(c)},x.prototype._parseFunctionArgument=function(){var c=this.create(st);return c.setValue(this._parseExpr(!0))?this.finish(c):null},x.prototype._parseHexColor=function(){if(this.peekRegExp(h.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var c=this.create(Dn);return this.consumeToken(),this.finish(c)}return null},x}();function mn(x,c){return x.indexOf(c)!==-1}function sn(){for(var x=[],c=0;c<arguments.length;c++)x[c]=arguments[c];for(var p=[],F=0,pe=x;F<pe.length;F++)for(var He=pe[F],Qe=0,Vt=He;Qe<Vt.length;Qe++){var $t=Vt[Qe];mn(p,$t)||p.push($t)}return p}var gn,Sn,En,Xn,Yn,Io,Ro,In,Rn,Qn,vo,Mo,So,ko,po,Tn,No,Ho,gr,wo,ls,Br=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Kn=function(){function x(c,p){this.offset=c,this.length=p,this.symbols=[],this.parent=null,this.children=[]}return x.prototype.addChild=function(c){this.children.push(c),c.setParent(this)},x.prototype.setParent=function(c){this.parent=c},x.prototype.findScope=function(c,p){return p===void 0&&(p=0),this.offset<=c&&this.offset+this.length>c+p||this.offset===c&&this.length===p?this.findInScope(c,p):null},x.prototype.findInScope=function(c,p){p===void 0&&(p=0);var F=c+p,pe=function(Qe,Vt){var $t=0,ci=Qe.length;if(ci===0)return 0;for(;$t<ci;){var Ft=Math.floor(($t+ci)/2);Vt(Qe[Ft])?ci=Ft:$t=Ft+1}return $t}(this.children,function(Qe){return Qe.offset>F});if(pe===0)return this;var He=this.children[pe-1];return He.offset<=c&&He.offset+He.length>=c+p?He.findInScope(c,p):this},x.prototype.addSymbol=function(c){this.symbols.push(c)},x.prototype.getSymbol=function(c,p){for(var F=0;F<this.symbols.length;F++){var pe=this.symbols[F];if(pe.name===c&&pe.type===p)return pe}return null},x.prototype.getSymbols=function(){return this.symbols},x}(),cr=function(x){function c(){return x.call(this,0,Number.MAX_VALUE)||this}return Br(c,x),c}(Kn),Eo=function(x,c,p,F){this.name=x,this.value=c,this.node=p,this.type=F},Lr=function(){function x(c){this.scope=c}return x.prototype.addSymbol=function(c,p,F,pe){if(c.offset!==-1){var He=this.scope.findScope(c.offset,c.length);He&&He.addSymbol(new Eo(p,F,c,pe))}},x.prototype.addScope=function(c){if(c.offset!==-1){var p=this.scope.findScope(c.offset,c.length);if(p&&(p.offset!==c.offset||p.length!==c.length)){var F=new Kn(c.offset,c.length);return p.addChild(F),F}return p}return null},x.prototype.addSymbolToChildScope=function(c,p,F,pe,He){if(c&&c.offset!==-1){var Qe=this.addScope(c);Qe&&Qe.addSymbol(new Eo(F,pe,p,He))}},x.prototype.visitNode=function(c){switch(c.type){case it.Keyframe:return this.addSymbol(c,c.getName(),void 0,At.Keyframe),!0;case it.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(c);case it.VariableDeclaration:return this.visitVariableDeclarationNode(c);case it.Ruleset:return this.visitRuleSet(c);case it.MixinDeclaration:return this.addSymbol(c,c.getName(),void 0,At.Mixin),!0;case it.FunctionDeclaration:return this.addSymbol(c,c.getName(),void 0,At.Function),!0;case it.FunctionParameter:return this.visitFunctionParameterNode(c);case it.Declarations:return this.addScope(c),!0;case it.For:var p=c,F=p.getDeclarations();return F&&p.variable&&this.addSymbolToChildScope(F,p.variable,p.variable.getName(),void 0,At.Variable),!0;case it.Each:var pe=c,He=pe.getDeclarations();if(He)for(var Qe=0,Vt=pe.getVariables().getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];this.addSymbolToChildScope(He,$t,$t.getName(),void 0,At.Variable)}return!0}return!0},x.prototype.visitRuleSet=function(c){var p=this.scope.findScope(c.offset,c.length);if(p)for(var F=0,pe=c.getSelectors().getChildren();F<pe.length;F++){var He=pe[F];He instanceof Bi&&He.getChildren().length===1&&p.addSymbol(new Eo(He.getChild(0).getText(),void 0,He,At.Rule))}return!0},x.prototype.visitVariableDeclarationNode=function(c){var p=c.getValue()?c.getValue().getText():void 0;return this.addSymbol(c,c.getName(),p,At.Variable),!0},x.prototype.visitFunctionParameterNode=function(c){var p=c.getParent().getDeclarations();if(p){var F=c.getDefaultValue(),pe=F?F.getText():void 0;this.addSymbolToChildScope(p,c,c.getName(),pe,At.Variable)}return!0},x.prototype.visitCustomPropertyDeclarationNode=function(c){var p=c.getValue()?c.getValue().getText():"";return this.addCSSVariable(c.getProperty(),c.getProperty().getName(),p,At.Variable),!0},x.prototype.addCSSVariable=function(c,p,F,pe){c.offset!==-1&&this.scope.addSymbol(new Eo(p,F,c,pe))},x}(),jr=function(){function x(c){this.global=new cr,c.acceptVisitor(new Lr(this.global))}return x.prototype.findSymbolsAtOffset=function(c,p){for(var F=this.global.findScope(c,0),pe=[],He={};F;){for(var Qe=F.getSymbols(),Vt=0;Vt<Qe.length;Vt++){var $t=Qe[Vt];$t.type!==p||He[$t.name]||(pe.push($t),He[$t.name]=!0)}F=F.parent}return pe},x.prototype.internalFindSymbol=function(c,p){var F=c;if(c.parent instanceof ze&&c.parent.getParent()instanceof Ai&&(F=c.parent.getParent().getDeclarations()),c.parent instanceof st&&c.parent.getParent()instanceof ut){var pe=c.parent.getParent().getIdentifier();if(pe){var He=this.internalFindSymbol(pe,[At.Function]);He&&(F=He.node.getDeclarations())}}if(!F)return null;for(var Qe=c.getText(),Vt=this.global.findScope(F.offset,F.length);Vt;){for(var $t=0;$t<p.length;$t++){var ci=p[$t],Ft=Vt.getSymbol(Qe,ci);if(Ft)return Ft}Vt=Vt.parent}return null},x.prototype.evaluateReferenceTypes=function(c){if(c instanceof Wt){var p=c.referenceTypes;if(p)return p;if(c.isCustomProperty)return[At.Variable];var F=function(He){var Qe=He.findParent(it.Declaration),Vt=Qe&&Qe.getValue();return Vt&&Vt.encloses(He)?Qe:null}(c);if(F){var pe=F.getNonPrefixedPropertyName();if((pe==="animation"||pe==="animation-name")&&F.getValue()&&F.getValue().offset===c.offset)return[At.Keyframe]}}else if(c instanceof ot)return[At.Variable];return c.findAParent(it.Selector,it.ExtendsReference)?[At.Rule]:null},x.prototype.findSymbolFromNode=function(c){if(!c)return null;for(;c.type===it.Interpolation;)c=c.getParent();var p=this.evaluateReferenceTypes(c);return p?this.internalFindSymbol(c,p):null},x.prototype.matchesSymbol=function(c,p){if(!c)return!1;for(;c.type===it.Interpolation;)c=c.getParent();if(!c.matches(p.name))return!1;var F=this.evaluateReferenceTypes(c);return!(!F||F.indexOf(p.type)===-1)&&this.internalFindSymbol(c,F)===p},x.prototype.findSymbol=function(c,p,F){for(var pe=this.global.findScope(F);pe;){var He=pe.getSymbol(c,p);if(He)return He;pe=pe.parent}return null},x}();(function(x){x.create=function(c,p){return{line:c,character:p}},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&Ui.number(p.line)&&Ui.number(p.character)}})(gn||(gn={})),function(x){x.create=function(c,p,F,pe){if(Ui.number(c)&&Ui.number(p)&&Ui.number(F)&&Ui.number(pe))return{start:gn.create(c,p),end:gn.create(F,pe)};if(gn.is(c)&&gn.is(p))return{start:c,end:p};throw new Error("Range#create called with invalid arguments["+c+", "+p+", "+F+", "+pe+"]")},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&gn.is(p.start)&&gn.is(p.end)}}(Sn||(Sn={})),function(x){x.create=function(c,p){return{uri:c,range:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.string(p.uri)||Ui.undefined(p.uri))}}(En||(En={})),function(x){x.create=function(c,p,F,pe){return{targetUri:c,targetRange:p,targetSelectionRange:F,originSelectionRange:pe}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.targetRange)&&Ui.string(p.targetUri)&&(Sn.is(p.targetSelectionRange)||Ui.undefined(p.targetSelectionRange))&&(Sn.is(p.originSelectionRange)||Ui.undefined(p.originSelectionRange))}}(Xn||(Xn={})),function(x){x.create=function(c,p,F,pe){return{red:c,green:p,blue:F,alpha:pe}},x.is=function(c){var p=c;return Ui.number(p.red)&&Ui.number(p.green)&&Ui.number(p.blue)&&Ui.number(p.alpha)}}(Yn||(Yn={})),function(x){x.create=function(c,p){return{range:c,color:p}},x.is=function(c){var p=c;return Sn.is(p.range)&&Yn.is(p.color)}}(Io||(Io={})),function(x){x.create=function(c,p,F){return{label:c,textEdit:p,additionalTextEdits:F}},x.is=function(c){var p=c;return Ui.string(p.label)&&(Ui.undefined(p.textEdit)||Tn.is(p))&&(Ui.undefined(p.additionalTextEdits)||Ui.typedArray(p.additionalTextEdits,Tn.is))}}(Ro||(Ro={})),function(x){x.Comment="comment",x.Imports="imports",x.Region="region"}(In||(In={})),function(x){x.create=function(c,p,F,pe,He){var Qe={startLine:c,endLine:p};return Ui.defined(F)&&(Qe.startCharacter=F),Ui.defined(pe)&&(Qe.endCharacter=pe),Ui.defined(He)&&(Qe.kind=He),Qe},x.is=function(c){var p=c;return Ui.number(p.startLine)&&Ui.number(p.startLine)&&(Ui.undefined(p.startCharacter)||Ui.number(p.startCharacter))&&(Ui.undefined(p.endCharacter)||Ui.number(p.endCharacter))&&(Ui.undefined(p.kind)||Ui.string(p.kind))}}(Rn||(Rn={})),function(x){x.create=function(c,p){return{location:c,message:p}},x.is=function(c){var p=c;return Ui.defined(p)&&En.is(p.location)&&Ui.string(p.message)}}(Qn||(Qn={})),function(x){x.Error=1,x.Warning=2,x.Information=3,x.Hint=4}(vo||(vo={})),function(x){x.Unnecessary=1,x.Deprecated=2}(Mo||(Mo={})),function(x){x.is=function(c){var p=c;return p!=null&&(Ui.number(p.value)||Ui.string(p.value))&&Ui.string(p.target)}}(So||(So={})),function(x){x.create=function(c,p,F,pe,He,Qe){var Vt={range:c,message:p};return Ui.defined(F)&&(Vt.severity=F),Ui.defined(pe)&&(Vt.code=pe),Ui.defined(He)&&(Vt.source=He),Ui.defined(Qe)&&(Vt.relatedInformation=Qe),Vt},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&Ui.string(p.message)&&(Ui.number(p.severity)||Ui.undefined(p.severity))&&(Ui.number(p.code)||Ui.string(p.code)||Ui.undefined(p.code))&&(Ui.string(p.source)||Ui.undefined(p.source))&&(Ui.undefined(p.relatedInformation)||Ui.typedArray(p.relatedInformation,Qn.is))}}(ko||(ko={})),function(x){x.create=function(c,p){for(var F=[],pe=2;pe<arguments.length;pe++)F[pe-2]=arguments[pe];var He={title:c,command:p};return Ui.defined(F)&&F.length>0&&(He.arguments=F),He},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.title)&&Ui.string(p.command)}}(po||(po={})),function(x){x.replace=function(c,p){return{range:c,newText:p}},x.insert=function(c,p){return{range:{start:c,end:c},newText:p}},x.del=function(c){return{range:c,newText:""}},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&Ui.string(p.newText)&&Sn.is(p.range)}}(Tn||(Tn={})),function(x){x.create=function(c,p){return{textDocument:c,edits:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Cn.is(p.textDocument)&&Array.isArray(p.edits)}}(No||(No={})),function(x){x.create=function(c,p){var F={kind:"create",uri:c};return p===void 0||p.overwrite===void 0&&p.ignoreIfExists===void 0||(F.options=p),F},x.is=function(c){var p=c;return p&&p.kind==="create"&&Ui.string(p.uri)&&(p.options===void 0||(p.options.overwrite===void 0||Ui.boolean(p.options.overwrite))&&(p.options.ignoreIfExists===void 0||Ui.boolean(p.options.ignoreIfExists)))}}(Ho||(Ho={})),function(x){x.create=function(c,p,F){var pe={kind:"rename",oldUri:c,newUri:p};return F===void 0||F.overwrite===void 0&&F.ignoreIfExists===void 0||(pe.options=F),pe},x.is=function(c){var p=c;return p&&p.kind==="rename"&&Ui.string(p.oldUri)&&Ui.string(p.newUri)&&(p.options===void 0||(p.options.overwrite===void 0||Ui.boolean(p.options.overwrite))&&(p.options.ignoreIfExists===void 0||Ui.boolean(p.options.ignoreIfExists)))}}(gr||(gr={})),function(x){x.create=function(c,p){var F={kind:"delete",uri:c};return p===void 0||p.recursive===void 0&&p.ignoreIfNotExists===void 0||(F.options=p),F},x.is=function(c){var p=c;return p&&p.kind==="delete"&&Ui.string(p.uri)&&(p.options===void 0||(p.options.recursive===void 0||Ui.boolean(p.options.recursive))&&(p.options.ignoreIfNotExists===void 0||Ui.boolean(p.options.ignoreIfNotExists)))}}(wo||(wo={})),function(x){x.is=function(c){var p=c;return p&&(p.changes!==void 0||p.documentChanges!==void 0)&&(p.documentChanges===void 0||p.documentChanges.every(function(F){return Ui.string(F.kind)?Ho.is(F)||gr.is(F)||wo.is(F):No.is(F)}))}}(ls||(ls={}));var Ko,Cn,Oo,Do,fr,zn,eo,br,va,es,Vr,Nr,ts,na,is,Ur,cs,dr,nr,_r,wa,zo,Cs,Hr,ya,vr,ds,oa,wr=function(){function x(c){this.edits=c}return x.prototype.insert=function(c,p){this.edits.push(Tn.insert(c,p))},x.prototype.replace=function(c,p){this.edits.push(Tn.replace(c,p))},x.prototype.delete=function(c){this.edits.push(Tn.del(c))},x.prototype.add=function(c){this.edits.push(c)},x.prototype.all=function(){return this.edits},x.prototype.clear=function(){this.edits.splice(0,this.edits.length)},x}();(function(){function x(c){var p=this;this._textEditChanges=Object.create(null),c&&(this._workspaceEdit=c,c.documentChanges?c.documentChanges.forEach(function(F){if(No.is(F)){var pe=new wr(F.edits);p._textEditChanges[F.textDocument.uri]=pe}}):c.changes&&Object.keys(c.changes).forEach(function(F){var pe=new wr(c.changes[F]);p._textEditChanges[F]=pe}))}Object.defineProperty(x.prototype,"edit",{get:function(){return this._workspaceEdit===void 0?{documentChanges:[]}:this._workspaceEdit},enumerable:!0,configurable:!0}),x.prototype.getTextEditChange=function(c){if(Cn.is(c)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var p=c;if(!(pe=this._textEditChanges[p.uri])){var F={textDocument:p,edits:He=[]};this._workspaceEdit.documentChanges.push(F),pe=new wr(He),this._textEditChanges[p.uri]=pe}return pe}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var pe;if(!(pe=this._textEditChanges[c])){var He=[];this._workspaceEdit.changes[c]=He,pe=new wr(He),this._textEditChanges[c]=pe}return pe},x.prototype.createFile=function(c,p){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ho.create(c,p))},x.prototype.renameFile=function(c,p,F){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(gr.create(c,p,F))},x.prototype.deleteFile=function(c,p){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(wo.create(c,p))},x.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(x){x.create=function(c){return{uri:c}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)}}(Ko||(Ko={})),function(x){x.create=function(c,p){return{uri:c,version:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)&&(p.version===null||Ui.number(p.version))}}(Cn||(Cn={})),function(x){x.create=function(c,p,F,pe){return{uri:c,languageId:p,version:F,text:pe}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)&&Ui.string(p.languageId)&&Ui.number(p.version)&&Ui.string(p.text)}}(Oo||(Oo={})),function(x){x.PlainText="plaintext",x.Markdown="markdown"}(Do||(Do={})),function(x){x.is=function(c){var p=c;return p===x.PlainText||p===x.Markdown}}(Do||(Do={})),function(x){x.is=function(c){var p=c;return Ui.objectLiteral(c)&&Do.is(p.kind)&&Ui.string(p.value)}}(fr||(fr={})),function(x){x.Text=1,x.Method=2,x.Function=3,x.Constructor=4,x.Field=5,x.Variable=6,x.Class=7,x.Interface=8,x.Module=9,x.Property=10,x.Unit=11,x.Value=12,x.Enum=13,x.Keyword=14,x.Snippet=15,x.Color=16,x.File=17,x.Reference=18,x.Folder=19,x.EnumMember=20,x.Constant=21,x.Struct=22,x.Event=23,x.Operator=24,x.TypeParameter=25}(zn||(zn={})),function(x){x.PlainText=1,x.Snippet=2}(eo||(eo={})),function(x){x.Deprecated=1}(br||(br={})),function(x){x.create=function(c,p,F){return{newText:c,insert:p,replace:F}},x.is=function(c){var p=c;return p&&Ui.string(p.newText)&&Sn.is(p.insert)&&Sn.is(p.replace)}}(va||(va={})),function(x){x.create=function(c){return{label:c}}}(es||(es={})),function(x){x.create=function(c,p){return{items:c||[],isIncomplete:!!p}}}(Vr||(Vr={})),function(x){x.fromPlainText=function(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},x.is=function(c){var p=c;return Ui.string(p)||Ui.objectLiteral(p)&&Ui.string(p.language)&&Ui.string(p.value)}}(Nr||(Nr={})),function(x){x.is=function(c){var p=c;return!!p&&Ui.objectLiteral(p)&&(fr.is(p.contents)||Nr.is(p.contents)||Ui.typedArray(p.contents,Nr.is))&&(c.range===void 0||Sn.is(c.range))}}(ts||(ts={})),function(x){x.create=function(c,p){return p?{label:c,documentation:p}:{label:c}}}(na||(na={})),function(x){x.create=function(c,p){for(var F=[],pe=2;pe<arguments.length;pe++)F[pe-2]=arguments[pe];var He={label:c};return Ui.defined(p)&&(He.documentation=p),Ui.defined(F)?He.parameters=F:He.parameters=[],He}}(is||(is={})),function(x){x.Text=1,x.Read=2,x.Write=3}(Ur||(Ur={})),function(x){x.create=function(c,p){var F={range:c};return Ui.number(p)&&(F.kind=p),F}}(cs||(cs={})),function(x){x.File=1,x.Module=2,x.Namespace=3,x.Package=4,x.Class=5,x.Method=6,x.Property=7,x.Field=8,x.Constructor=9,x.Enum=10,x.Interface=11,x.Function=12,x.Variable=13,x.Constant=14,x.String=15,x.Number=16,x.Boolean=17,x.Array=18,x.Object=19,x.Key=20,x.Null=21,x.EnumMember=22,x.Struct=23,x.Event=24,x.Operator=25,x.TypeParameter=26}(dr||(dr={})),function(x){x.Deprecated=1}(nr||(nr={})),function(x){x.create=function(c,p,F,pe,He){var Qe={name:c,kind:p,location:{uri:pe,range:F}};return He&&(Qe.containerName=He),Qe}}(_r||(_r={})),function(x){x.create=function(c,p,F,pe,He,Qe){var Vt={name:c,detail:p,kind:F,range:pe,selectionRange:He};return Qe!==void 0&&(Vt.children=Qe),Vt},x.is=function(c){var p=c;return p&&Ui.string(p.name)&&Ui.number(p.kind)&&Sn.is(p.range)&&Sn.is(p.selectionRange)&&(p.detail===void 0||Ui.string(p.detail))&&(p.deprecated===void 0||Ui.boolean(p.deprecated))&&(p.children===void 0||Array.isArray(p.children))&&(p.tags===void 0||Array.isArray(p.tags))}}(wa||(wa={})),function(x){x.Empty="",x.QuickFix="quickfix",x.Refactor="refactor",x.RefactorExtract="refactor.extract",x.RefactorInline="refactor.inline",x.RefactorRewrite="refactor.rewrite",x.Source="source",x.SourceOrganizeImports="source.organizeImports",x.SourceFixAll="source.fixAll"}(zo||(zo={})),function(x){x.create=function(c,p){var F={diagnostics:c};return p!=null&&(F.only=p),F},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.typedArray(p.diagnostics,ko.is)&&(p.only===void 0||Ui.typedArray(p.only,Ui.string))}}(Cs||(Cs={})),function(x){x.create=function(c,p,F){var pe={title:c};return po.is(p)?pe.command=p:pe.edit=p,F!==void 0&&(pe.kind=F),pe},x.is=function(c){var p=c;return p&&Ui.string(p.title)&&(p.diagnostics===void 0||Ui.typedArray(p.diagnostics,ko.is))&&(p.kind===void 0||Ui.string(p.kind))&&(p.edit!==void 0||p.command!==void 0)&&(p.command===void 0||po.is(p.command))&&(p.isPreferred===void 0||Ui.boolean(p.isPreferred))&&(p.edit===void 0||ls.is(p.edit))}}(Hr||(Hr={})),function(x){x.create=function(c,p){var F={range:c};return Ui.defined(p)&&(F.data=p),F},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.undefined(p.command)||po.is(p.command))}}(ya||(ya={})),function(x){x.create=function(c,p){return{tabSize:c,insertSpaces:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.number(p.tabSize)&&Ui.boolean(p.insertSpaces)}}(vr||(vr={})),function(x){x.create=function(c,p,F){return{range:c,target:p,data:F}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.undefined(p.target)||Ui.string(p.target))}}(ds||(ds={})),function(x){x.create=function(c,p){return{range:c,parent:p}},x.is=function(c){var p=c;return p!==void 0&&Sn.is(p.range)&&(p.parent===void 0||x.is(p.parent))}}(oa||(oa={}));var ns;(function(x){x.create=function(c,p,F,pe){return new or(c,p,F,pe)},x.is=function(c){var p=c;return!!(Ui.defined(p)&&Ui.string(p.uri)&&(Ui.undefined(p.languageId)||Ui.string(p.languageId))&&Ui.number(p.lineCount)&&Ui.func(p.getText)&&Ui.func(p.positionAt)&&Ui.func(p.offsetAt))},x.applyEdits=function(c,p){for(var F=c.getText(),pe=function Ft(Fi,cn){if(Fi.length<=1)return Fi;var vn=Fi.length/2|0,rn=Fi.slice(0,vn),Pn=Fi.slice(vn);Ft(rn,cn),Ft(Pn,cn);for(var jn=0,Vn=0,Ln=0;jn<rn.length&&Vn<Pn.length;){var mo=cn(rn[jn],Pn[Vn]);Fi[Ln++]=mo<=0?rn[jn++]:Pn[Vn++]}for(;jn<rn.length;)Fi[Ln++]=rn[jn++];for(;Vn<Pn.length;)Fi[Ln++]=Pn[Vn++];return Fi}(p,function(Ft,Fi){var cn=Ft.range.start.line-Fi.range.start.line;return cn===0?Ft.range.start.character-Fi.range.start.character:cn}),He=F.length,Qe=pe.length-1;Qe>=0;Qe--){var Vt=pe[Qe],$t=c.offsetAt(Vt.range.start),ci=c.offsetAt(Vt.range.end);if(!(ci<=He))throw new Error("Overlapping edit");F=F.substring(0,$t)+Vt.newText+F.substring(ci,F.length),He=$t}return F}})(ns||(ns={}));var Ui,or=function(){function x(c,p,F,pe){this._uri=c,this._languageId=p,this._version=F,this._content=pe,this._lineOffsets=void 0}return Object.defineProperty(x.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),x.prototype.getText=function(c){if(c){var p=this.offsetAt(c.start),F=this.offsetAt(c.end);return this._content.substring(p,F)}return this._content},x.prototype.update=function(c,p){this._content=c.text,this._version=p,this._lineOffsets=void 0},x.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var c=[],p=this._content,F=!0,pe=0;pe<p.length;pe++){F&&(c.push(pe),F=!1);var He=p.charAt(pe);F=He==="\r"||He===` +`,c+=x.references.map(function(F){return"["+F.name+"]("+F.url+")"}).join(" | ")),c}function Jt(x){return x===void 0&&(x=[]),x.length===0?null:x.map(function(c){var p="",F=c.match(/([A-Z]+)(\d+)?/),pe=F[1],He=F[2];return pe in ue&&(p+=ue[pe]),He&&(p+=" "+He),p}).join(", ")}var xi=Gt(),Ei=[{func:"rgb($red, $green, $blue)",desc:xi("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:xi("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:xi("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:xi("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],ai={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},fi={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function ui(x,c){var p=x.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(p){p[2]&&(c=100);var F=parseFloat(p[1])/c;if(F>=0&&F<=1)return F}throw new Error}function Te(x){var c=x.getName();return!!c&&/^(rgb|rgba|hsl|hsla)$/gi.test(c)}function Ee(x){return x<48?0:x<=57?x-48:(x<97&&(x+=32),x>=97&&x<=102?x-97+10:0)}function ve(x){if(x[0]!=="#")return null;switch(x.length){case 4:return{red:17*Ee(x.charCodeAt(1))/255,green:17*Ee(x.charCodeAt(2))/255,blue:17*Ee(x.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Ee(x.charCodeAt(1))/255,green:17*Ee(x.charCodeAt(2))/255,blue:17*Ee(x.charCodeAt(3))/255,alpha:17*Ee(x.charCodeAt(4))/255};case 7:return{red:(16*Ee(x.charCodeAt(1))+Ee(x.charCodeAt(2)))/255,green:(16*Ee(x.charCodeAt(3))+Ee(x.charCodeAt(4)))/255,blue:(16*Ee(x.charCodeAt(5))+Ee(x.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Ee(x.charCodeAt(1))+Ee(x.charCodeAt(2)))/255,green:(16*Ee(x.charCodeAt(3))+Ee(x.charCodeAt(4)))/255,blue:(16*Ee(x.charCodeAt(5))+Ee(x.charCodeAt(6)))/255,alpha:(16*Ee(x.charCodeAt(7))+Ee(x.charCodeAt(8)))/255}}return null}function Re(x){if(x.type===it.HexColorValue)return ve(x.getText());if(x.type===it.Function){var c=x,p=c.getName(),F=c.getArguments().getChildren();if(!p||F.length<3||F.length>4)return null;try{var pe=F.length===4?ui(F[3],1):1;if(p==="rgb"||p==="rgba")return{red:ui(F[0],255),green:ui(F[1],255),blue:ui(F[2],255),alpha:pe};if(p==="hsl"||p==="hsla")return function(ci,Ft,Fi,cn){if(cn===void 0&&(cn=1),Ft===0)return{red:Fi,green:Fi,blue:Fi,alpha:cn};var vn=function(jn,Vn,Ln){for(;Ln<0;)Ln+=6;for(;Ln>=6;)Ln-=6;return Ln<1?(Vn-jn)*Ln+jn:Ln<3?Vn:Ln<4?(Vn-jn)*(4-Ln)+jn:jn},on=Fi<=.5?Fi*(Ft+1):Fi+Ft-Fi*Ft,Pn=2*Fi-on;return{red:vn(Pn,on,(ci/=60)+2),green:vn(Pn,on,ci),blue:vn(Pn,on,ci-2),alpha:cn}}(function(ci){var Ft=ci.getText();if(Ft.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(Ft)%360;throw new Error}(F[0]),ui(F[1],100),ui(F[2],100),pe)}catch(ci){return null}}else if(x.type===it.Identifier){if(x.parent&&x.parent.type!==it.Term)return null;var He=x.parent;if(He&&He.parent&&He.parent.type===it.BinaryExpression){var Qe=He.parent;if(Qe.parent&&Qe.parent.type===it.ListEntry&&Qe.parent.key===Qe)return null}var Vt=x.getText().toLowerCase();if(Vt==="none")return null;var $t=ai[Vt];if($t)return ve($t)}return null}var We={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Be={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Le={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Ke=["medium","thick","thin"],dt={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},yt={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},xt={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Xt={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},mi={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Yt={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},oi={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},qi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],an=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],_n=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function ei(x){return Object.keys(x).map(function(c){return x[c]})}function ii(x){return x!==void 0}var bi=function(){for(var x=0,c=0,p=arguments.length;c<p;c++)x+=arguments[c].length;var F=Array(x),pe=0;for(c=0;c<p;c++)for(var He=arguments[c],Qe=0,Vt=He.length;Qe<Vt;Qe++,pe++)F[pe]=He[Qe];return F},ln=function(){function x(c){c===void 0&&(c=new ee),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=c,this.token={type:h.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return x.prototype.peekIdent=function(c){return h.Ident===this.token.type&&c.length===this.token.text.length&&c===this.token.text.toLowerCase()},x.prototype.peekKeyword=function(c){return h.AtKeyword===this.token.type&&c.length===this.token.text.length&&c===this.token.text.toLowerCase()},x.prototype.peekDelim=function(c){return h.Delim===this.token.type&&c===this.token.text},x.prototype.peek=function(c){return c===this.token.type},x.prototype.peekRegExp=function(c,p){return c===this.token.type&&p.test(this.token.text)},x.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},x.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},x.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},x.prototype.restoreAtMark=function(c){this.prevToken=c.prev,this.token=c.curr,this.scanner.goBackTo(c.pos)},x.prototype.try=function(c){var p=this.mark(),F=c();return F||(this.restoreAtMark(p),null)},x.prototype.acceptOneKeyword=function(c){if(h.AtKeyword===this.token.type)for(var p=0,F=c;p<F.length;p++){var pe=F[p];if(pe.length===this.token.text.length&&pe===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},x.prototype.accept=function(c){return c===this.token.type&&(this.consumeToken(),!0)},x.prototype.acceptIdent=function(c){return!!this.peekIdent(c)&&(this.consumeToken(),!0)},x.prototype.acceptKeyword=function(c){return!!this.peekKeyword(c)&&(this.consumeToken(),!0)},x.prototype.acceptDelim=function(c){return!!this.peekDelim(c)&&(this.consumeToken(),!0)},x.prototype.acceptRegexp=function(c){return!!c.test(this.token.text)&&(this.consumeToken(),!0)},x.prototype._parseRegexp=function(c){var p=this.createNode(it.Identifier);do;while(this.acceptRegexp(c));return this.finish(p)},x.prototype.acceptUnquotedString=function(){var c=this.scanner.pos();this.scanner.goBackTo(this.token.offset);var p=this.scanner.scanUnquotedString();return p?(this.token=p,this.consumeToken(),!0):(this.scanner.goBackTo(c),!1)},x.prototype.resync=function(c,p){for(;;){if(c&&c.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(p&&p.indexOf(this.token.type)!==-1)return!0;if(this.token.type===h.EOF)return!1;this.token=this.scanner.scan()}},x.prototype.createNode=function(c){return new pi(this.token.offset,this.token.len,c)},x.prototype.create=function(c){return new c(this.token.offset,this.token.len)},x.prototype.finish=function(c,p,F,pe){if(!(c instanceof et)&&(p&&this.markError(c,p,F,pe),this.prevToken)){var He=this.prevToken.offset+this.prevToken.len;c.length=He>c.offset?He-c.offset:0}return c},x.prototype.markError=function(c,p,F,pe){this.token!==this.lastErrorToken&&(c.addIssue(new ae(c,p,Ni.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(F||pe)&&this.resync(F,pe)},x.prototype.parseStylesheet=function(c){var p=c.version,F=c.getText();return this.internalParse(F,this._parseStylesheet,function(pe,He){if(c.version!==p)throw new Error("Underlying model has changed, AST is no longer valid");return F.substr(pe,He)})},x.prototype.internalParse=function(c,p,F){this.scanner.setSource(c),this.token=this.scanner.scan();var pe=p.bind(this)();return pe&&(pe.textProvider=F||function(He,Qe){return c.substr(He,Qe)}),pe},x.prototype._parseStylesheet=function(){for(var c=this.create(Li);c.addChild(this._parseStylesheetStart()););var p=!1;do{var F=!1;do{F=!1;var pe=this._parseStylesheetStatement();for(pe&&(c.addChild(pe),F=!0,p=!1,this.peek(h.EOF)||!this._needsSemicolonAfter(pe)||this.accept(h.SemiColon)||this.markError(c,le.SemiColonExpected));this.accept(h.SemiColon)||this.accept(h.CDO)||this.accept(h.CDC);)F=!0,p=!1}while(F);if(this.peek(h.EOF))break;p||(this.peek(h.AtKeyword)?this.markError(c,le.UnknownAtRule):this.markError(c,le.RuleOrSelectorExpected),p=!0),this.consumeToken()}while(!this.peek(h.EOF));return this.finish(c)},x.prototype._parseStylesheetStart=function(){return this._parseCharset()},x.prototype._parseStylesheetStatement=function(c){return c===void 0&&(c=!1),this.peek(h.AtKeyword)?this._parseStylesheetAtStatement(c):this._parseRuleset(c)},x.prototype._parseStylesheetAtStatement=function(c){return c===void 0&&(c=!1),this._parseImport()||this._parseMedia(c)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(c)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},x.prototype._tryParseRuleset=function(c){var p=this.mark();if(this._parseSelector(c)){for(;this.accept(h.Comma)&&this._parseSelector(c););if(this.accept(h.CurlyL))return this.restoreAtMark(p),this._parseRuleset(c)}return this.restoreAtMark(p),null},x.prototype._parseRuleset=function(c){c===void 0&&(c=!1);var p=this.create(Zi),F=p.getSelectors();if(!F.addChild(this._parseSelector(c)))return null;for(;this.accept(h.Comma);)if(!F.addChild(this._parseSelector(c)))return this.finish(p,le.SelectorExpected);return this._parseBody(p,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseAtApply()||this._parseUnknownAtRule()},x.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._tryParseCustomPropertyDeclaration()||this._parseDeclaration()},x.prototype._parseAtApply=function(){if(!this.peekKeyword("@apply"))return null;var c=this.create(Oi);return this.consumeToken(),c.setIdentifier(this._parseIdent([At.Variable]))?this.finish(c):this.finish(c,le.IdentifierExpected)},x.prototype._needsSemicolonAfter=function(c){switch(c.type){case it.Keyframe:case it.ViewPort:case it.Media:case it.Ruleset:case it.Namespace:case it.If:case it.For:case it.Each:case it.While:case it.MixinDeclaration:case it.FunctionDeclaration:case it.MixinContentDeclaration:return!1;case it.ExtendsReference:case it.MixinContentReference:case it.ReturnStatement:case it.MediaQuery:case it.Debug:case it.Import:case it.AtApplyRule:case it.CustomPropertyDeclaration:return!0;case it.VariableDeclaration:return c.needsSemicolon;case it.MixinReference:return!c.getContent();case it.Declaration:return!c.getNestedProperties()}return!1},x.prototype._parseDeclarations=function(c){var p=this.create(Ii);if(!this.accept(h.CurlyL))return null;for(var F=c();p.addChild(F)&&!this.peek(h.CurlyR);){if(this._needsSemicolonAfter(F)&&!this.accept(h.SemiColon))return this.finish(p,le.SemiColonExpected,[h.SemiColon,h.CurlyR]);for(F&&this.prevToken&&this.prevToken.type===h.SemiColon&&(F.semicolonPosition=this.prevToken.offset);this.accept(h.SemiColon););F=c()}return this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.RightCurlyExpected,[h.CurlyR,h.SemiColon])},x.prototype._parseBody=function(c,p){return c.setDeclarations(this._parseDeclarations(p))?this.finish(c):this.finish(c,le.LeftCurlyExpected,[h.CurlyR,h.SemiColon])},x.prototype._parseSelector=function(c){var p=this.create(Bi),F=!1;for(c&&(F=p.addChild(this._parseCombinator()));p.addChild(this._parseSimpleSelector());)F=!0,p.addChild(this._parseCombinator());return F?this.finish(p):null},x.prototype._parseDeclaration=function(c){var p=this.create(vt);if(!p.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon)){var F=c?bi(c,[h.SemiColon]):[h.SemiColon];return this.finish(p,le.ColonExpected,[h.Colon],F)}return this.prevToken&&(p.colonPosition=this.prevToken.offset),p.setValue(this._parseExpr())?(p.addChild(this._parsePrio()),this.peek(h.SemiColon)&&(p.semicolonPosition=this.token.offset),this.finish(p)):this.finish(p,le.PropertyValueExpected)},x.prototype._tryParseCustomPropertyDeclaration=function(){if(!this.peekRegExp(h.Ident,/^--/))return null;var c=this.create(vi);if(!c.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(c,le.ColonExpected,[h.Colon]);this.prevToken&&(c.colonPosition=this.prevToken.offset);var p=this.mark();if(this.peek(h.CurlyL)){var F=this.create(Rt),pe=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(F.setDeclarations(pe)&&!pe.isErroneous(!0)&&(F.addChild(this._parsePrio()),this.peek(h.SemiColon)))return this.finish(F),c.setPropertySet(F),c.semicolonPosition=this.token.offset,this.finish(c);this.restoreAtMark(p)}var He=this._parseExpr();return He&&!He.isErroneous(!0)&&(this._parsePrio(),this.peek(h.SemiColon))?(c.setValue(He),c.semicolonPosition=this.token.offset,this.finish(c)):(this.restoreAtMark(p),c.addChild(this._parseCustomPropertyValue()),c.addChild(this._parsePrio()),ii(c.colonPosition)&&this.token.offset===c.colonPosition+1?this.finish(c,le.PropertyValueExpected):this.finish(c))},x.prototype._parseCustomPropertyValue=function(){var c=this.create(pi),p=function(){return F===0&&pe===0&&He===0},F=0,pe=0,He=0;e:for(;;){switch(this.token.type){case h.SemiColon:case h.Exclamation:if(p())break e;break;case h.CurlyL:F++;break;case h.CurlyR:if(--F<0){if(pe===0&&He===0)break e;return this.finish(c,le.LeftCurlyExpected)}break;case h.ParenthesisL:pe++;break;case h.ParenthesisR:if(--pe<0)return this.finish(c,le.LeftParenthesisExpected);break;case h.BracketL:He++;break;case h.BracketR:if(--He<0)return this.finish(c,le.LeftSquareBracketExpected);break;case h.BadString:break e;case h.EOF:var Qe=le.RightCurlyExpected;return He>0?Qe=le.RightSquareBracketExpected:pe>0&&(Qe=le.RightParenthesisExpected),this.finish(c,Qe)}this.consumeToken()}return this.finish(c)},x.prototype._tryToParseDeclaration=function(){var c=this.mark();return this._parseProperty()&&this.accept(h.Colon)?(this.restoreAtMark(c),this._parseDeclaration()):(this.restoreAtMark(c),null)},x.prototype._parseProperty=function(){var c=this.create(Ue),p=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(p),null):c.setIdentifier(this._parsePropertyIdentifier())?this.finish(c):null},x.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},x.prototype._parseCharset=function(){if(!this.peek(h.Charset))return null;var c=this.create(pi);return this.consumeToken(),this.accept(h.String)?this.accept(h.SemiColon)?this.finish(c):this.finish(c,le.SemiColonExpected):this.finish(c,le.IdentifierExpected)},x.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var c=this.create(si);return this.consumeToken(),c.addChild(this._parseURILiteral())||c.addChild(this._parseStringLiteral())?(this.peek(h.SemiColon)||this.peek(h.EOF)||c.setMedialist(this._parseMediaQueryList()),this.finish(c)):this.finish(c,le.URIOrStringExpected)},x.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var c=this.create(un);return this.consumeToken(),c.addChild(this._parseURILiteral())||(c.addChild(this._parseIdent()),c.addChild(this._parseURILiteral())||c.addChild(this._parseStringLiteral()))?this.accept(h.SemiColon)?this.finish(c):this.finish(c,le.SemiColonExpected):this.finish(c,le.URIExpected,[h.SemiColon])},x.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var c=this.create(Hi);return this.consumeToken(),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var c=this.create($i);return this.consumeToken(),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parseKeyframe=function(){if(!this.peekRegExp(h.AtKeyword,this.keyframeRegex))return null;var c=this.create(kt),p=this.create(pi);return this.consumeToken(),c.setKeyword(this.finish(p)),p.matches("@-ms-keyframes")&&this.markError(p,le.UnknownKeyword),c.setIdentifier(this._parseKeyframeIdent())?this._parseBody(c,this._parseKeyframeSelector.bind(this)):this.finish(c,le.IdentifierExpected,[h.CurlyR])},x.prototype._parseKeyframeIdent=function(){return this._parseIdent([At.Keyframe])},x.prototype._parseKeyframeSelector=function(){var c=this.create(Et);if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.finish(c,le.PercentageExpected);return this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._tryParseKeyframeSelector=function(){var c=this.create(Et),p=this.mark();if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!c.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.restoreAtMark(p),null;return this.peek(h.CurlyL)?this._parseBody(c,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(p),null)},x.prototype._parseSupports=function(c){if(c===void 0&&(c=!1),!this.peekKeyword("@supports"))return null;var p=this.create(Fn);return this.consumeToken(),p.addChild(this._parseSupportsCondition()),this._parseBody(p,this._parseSupportsDeclaration.bind(this,c))},x.prototype._parseSupportsDeclaration=function(c){return c===void 0&&(c=!1),c?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},x.prototype._parseSupportsCondition=function(){var c=this.create(Jn);if(this.acceptIdent("not"))c.addChild(this._parseSupportsConditionInParens());else if(c.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(h.Ident,/^(and|or)$/i))for(var p=this.token.text.toLowerCase();this.acceptIdent(p);)c.addChild(this._parseSupportsConditionInParens());return this.finish(c)},x.prototype._parseSupportsConditionInParens=function(){var c=this.create(Jn);if(this.accept(h.ParenthesisL))return this.prevToken&&(c.lParent=this.prevToken.offset),c.addChild(this._tryToParseDeclaration())||this._parseSupportsCondition()?this.accept(h.ParenthesisR)?(this.prevToken&&(c.rParent=this.prevToken.offset),this.finish(c)):this.finish(c,le.RightParenthesisExpected,[h.ParenthesisR],[]):this.finish(c,le.ConditionExpected);if(this.peek(h.Ident)){var p=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(h.ParenthesisL)){for(var F=1;this.token.type!==h.EOF&&F!==0;)this.token.type===h.ParenthesisL?F++:this.token.type===h.ParenthesisR&&F--,this.consumeToken();return this.finish(c)}this.restoreAtMark(p)}return this.finish(c,le.LeftParenthesisExpected,[],[h.ParenthesisL])},x.prototype._parseMediaDeclaration=function(c){return c===void 0&&(c=!1),c?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},x.prototype._parseMedia=function(c){if(c===void 0&&(c=!1),!this.peekKeyword("@media"))return null;var p=this.create(bn);return this.consumeToken(),p.addChild(this._parseMediaQueryList())?this._parseBody(p,this._parseMediaDeclaration.bind(this,c)):this.finish(p,le.MediaQueryExpected)},x.prototype._parseMediaQueryList=function(){var c=this.create(Nn);if(!c.addChild(this._parseMediaQuery([h.CurlyL])))return this.finish(c,le.MediaQueryExpected);for(;this.accept(h.Comma);)if(!c.addChild(this._parseMediaQuery([h.CurlyL])))return this.finish(c,le.MediaQueryExpected);return this.finish(c)},x.prototype._parseMediaQuery=function(c){var p=this.create(Hn),F=!0,pe=!1;if(!this.peek(h.ParenthesisL)){if(this.acceptIdent("only")||this.acceptIdent("not"),!p.addChild(this._parseIdent()))return null;pe=!0,F=this.acceptIdent("and")}for(;F;)if(p.addChild(this._parseMediaContentStart()))F=this.acceptIdent("and");else{if(!this.accept(h.ParenthesisL))return pe?this.finish(p,le.LeftParenthesisExpected,[],c):null;if(!p.addChild(this._parseMediaFeatureName()))return this.finish(p,le.IdentifierExpected,[],c);if(this.accept(h.Colon)&&!p.addChild(this._parseExpr()))return this.finish(p,le.TermExpected,[],c);if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[],c);F=this.acceptIdent("and")}return this.finish(p)},x.prototype._parseMediaContentStart=function(){return null},x.prototype._parseMediaFeatureName=function(){return this._parseIdent()},x.prototype._parseMedium=function(){var c=this.create(pi);return c.addChild(this._parseIdent())?this.finish(c):null},x.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},x.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var c=this.create(br);if(this.consumeToken(),c.addChild(this._parsePageSelector())){for(;this.accept(h.Comma);)if(!c.addChild(this._parsePageSelector()))return this.finish(c,le.IdentifierExpected)}return this._parseBody(c,this._parsePageDeclaration.bind(this))},x.prototype._parsePageMarginBox=function(){if(!this.peek(h.AtKeyword))return null;var c=this.create(pn);return this.acceptOneKeyword(_n)||this.markError(c,le.UnknownAtRule,[],[h.CurlyL]),this._parseBody(c,this._parseRuleSetDeclaration.bind(this))},x.prototype._parsePageSelector=function(){if(!this.peek(h.Ident)&&!this.peek(h.Colon))return null;var c=this.create(pi);return c.addChild(this._parseIdent()),this.accept(h.Colon)&&!c.addChild(this._parseIdent())?this.finish(c,le.IdentifierExpected):this.finish(c)},x.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var c=this.create(Mn);return this.consumeToken(),this.resync([],[h.CurlyL]),this._parseBody(c,this._parseStylesheetStatement.bind(this))},x.prototype._parseUnknownAtRule=function(){if(!this.peek(h.AtKeyword))return null;var c=this.create(Kt);c.addChild(this._parseUnknownAtRuleName());var p=0,F=0,pe=0,He=0;e:for(;;){switch(this.token.type){case h.SemiColon:if(F===0&&pe===0&&He===0)break e;break;case h.EOF:return F>0?this.finish(c,le.RightCurlyExpected):He>0?this.finish(c,le.RightSquareBracketExpected):pe>0?this.finish(c,le.RightParenthesisExpected):this.finish(c);case h.CurlyL:p++,F++;break;case h.CurlyR:if(F--,p>0&&F===0){if(this.consumeToken(),He>0)return this.finish(c,le.RightSquareBracketExpected);if(pe>0)return this.finish(c,le.RightParenthesisExpected);break e}if(F<0){if(pe===0&&He===0)break e;return this.finish(c,le.LeftCurlyExpected)}break;case h.ParenthesisL:pe++;break;case h.ParenthesisR:if(--pe<0)return this.finish(c,le.LeftParenthesisExpected);break;case h.BracketL:He++;break;case h.BracketR:if(--He<0)return this.finish(c,le.LeftSquareBracketExpected)}this.consumeToken()}return c},x.prototype._parseUnknownAtRuleName=function(){var c=this.create(pi);return this.accept(h.AtKeyword)?this.finish(c):c},x.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(h.Dashmatch)||this.peek(h.Includes)||this.peek(h.SubstringOperator)||this.peek(h.PrefixOperator)||this.peek(h.SuffixOperator)||this.peekDelim("=")){var c=this.createNode(it.Operator);return this.consumeToken(),this.finish(c)}return null},x.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var c=this.create(pi);return this.consumeToken(),this.finish(c)},x.prototype._parseCombinator=function(){if(this.peekDelim(">")){var c=this.create(pi);this.consumeToken();var p=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return c.type=it.SelectorCombinatorShadowPiercingDescendant,this.finish(c);this.restoreAtMark(p)}return c.type=it.SelectorCombinatorParent,this.finish(c)}if(this.peekDelim("+"))return c=this.create(pi),this.consumeToken(),c.type=it.SelectorCombinatorSibling,this.finish(c);if(this.peekDelim("~"))return c=this.create(pi),this.consumeToken(),c.type=it.SelectorCombinatorAllSiblings,this.finish(c);if(this.peekDelim("/")){if(c=this.create(pi),this.consumeToken(),p=this.mark(),!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return c.type=it.SelectorCombinatorShadowPiercingDescendant,this.finish(c);this.restoreAtMark(p)}return null},x.prototype._parseSimpleSelector=function(){var c=this.create(Lt),p=0;for(c.addChild(this._parseElementName())&&p++;(p===0||!this.hasWhitespace())&&c.addChild(this._parseSimpleSelectorBody());)p++;return p>0?this.finish(c):null},x.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},x.prototype._parseSelectorIdent=function(){return this._parseIdent()},x.prototype._parseHash=function(){if(!this.peek(h.Hash)&&!this.peekDelim("#"))return null;var c=this.createNode(it.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!c.addChild(this._parseSelectorIdent()))return this.finish(c,le.IdentifierExpected)}else this.consumeToken();return this.finish(c)},x.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var c=this.createNode(it.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!c.addChild(this._parseSelectorIdent())?this.finish(c,le.IdentifierExpected):this.finish(c)},x.prototype._parseElementName=function(){var c=this.mark(),p=this.createNode(it.ElementNameSelector);return p.addChild(this._parseNamespacePrefix()),p.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(p):(this.restoreAtMark(c),null)},x.prototype._parseNamespacePrefix=function(){var c=this.mark(),p=this.createNode(it.NamespacePrefix);return!p.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(p):(this.restoreAtMark(c),null)},x.prototype._parseAttrib=function(){if(!this.peek(h.BracketL))return null;var c=this.create(Dn);return this.consumeToken(),c.setNamespacePrefix(this._parseNamespacePrefix()),c.setIdentifier(this._parseIdent())?(c.setOperator(this._parseOperator())&&(c.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(h.BracketR)?this.finish(c):this.finish(c,le.RightSquareBracketExpected)):this.finish(c,le.IdentifierExpected)},x.prototype._parsePseudo=function(){var c=this,p=this._tryParsePseudoIdentifier();return p?!this.hasWhitespace()&&this.accept(h.ParenthesisL)&&(p.addChild(this.try(function(){var F=c.create(pi);if(!F.addChild(c._parseSelector(!1)))return null;for(;c.accept(h.Comma)&&F.addChild(c._parseSelector(!1)););return c.peek(h.ParenthesisR)?c.finish(F):null})||this._parseBinaryExpr()),!this.accept(h.ParenthesisR))?this.finish(p,le.RightParenthesisExpected):this.finish(p):null},x.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(h.Colon))return null;var c=this.mark(),p=this.createNode(it.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(c),null):(this.accept(h.Colon)&&this.hasWhitespace()&&this.markError(p,le.IdentifierExpected),p.addChild(this._parseIdent())||this.markError(p,le.IdentifierExpected),p)},x.prototype._tryParsePrio=function(){var c=this.mark(),p=this._parsePrio();return p||(this.restoreAtMark(c),null)},x.prototype._parsePrio=function(){if(!this.peek(h.Exclamation))return null;var c=this.createNode(it.Prio);return this.accept(h.Exclamation)&&this.acceptIdent("important")?this.finish(c):null},x.prototype._parseExpr=function(c){c===void 0&&(c=!1);var p=this.create(Gn);if(!p.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(h.Comma)){if(c)return this.finish(p);this.consumeToken()}if(!p.addChild(this._parseBinaryExpr()))break}return this.finish(p)},x.prototype._parseNamedLine=function(){if(!this.peek(h.BracketL))return null;var c=this.createNode(it.GridLine);for(this.consumeToken();c.addChild(this._parseIdent()););return this.accept(h.BracketR)?this.finish(c):this.finish(c,le.RightSquareBracketExpected)},x.prototype._parseBinaryExpr=function(c,p){var F=this.create(rn);if(!F.setLeft(c||this._parseTerm()))return null;if(!F.setOperator(p||this._parseOperator()))return this.finish(F);if(!F.setRight(this._parseTerm()))return this.finish(F,le.TermExpected);F=this.finish(F);var pe=this._parseOperator();return pe&&(F=this._parseBinaryExpr(F,pe)),this.finish(F)},x.prototype._parseTerm=function(){var c=this.create(dr);return c.setOperator(this._parseUnaryOperator()),c.setExpression(this._parseTermExpression())?this.finish(c):null},x.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},x.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var c=this.create(pi);return this.consumeToken(),c.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(c):this.finish(c,le.RightParenthesisExpected)},x.prototype._parseNumeric=function(){if(this.peek(h.Num)||this.peek(h.Percentage)||this.peek(h.Resolution)||this.peek(h.Length)||this.peek(h.EMS)||this.peek(h.EXS)||this.peek(h.Angle)||this.peek(h.Time)||this.peek(h.Dimension)||this.peek(h.Freq)){var c=this.create(_e);return this.consumeToken(),this.finish(c)}return null},x.prototype._parseStringLiteral=function(){if(!this.peek(h.String)&&!this.peek(h.BadString))return null;var c=this.createNode(it.StringLiteral);return this.consumeToken(),this.finish(c)},x.prototype._parseURILiteral=function(){if(!this.peekRegExp(h.Ident,/^url(-prefix)?$/i))return null;var c=this.mark(),p=this.createNode(it.URILiteral);return this.accept(h.Ident),this.hasWhitespace()||!this.peek(h.ParenthesisL)?(this.restoreAtMark(c),null):(this.scanner.inURL=!0,this.consumeToken(),p.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected))},x.prototype._parseURLArgument=function(){var c=this.create(pi);return this.accept(h.String)||this.accept(h.BadString)||this.acceptUnquotedString()?this.finish(c):null},x.prototype._parseIdent=function(c){if(!this.peek(h.Ident))return null;var p=this.create(Wt);return c&&(p.referenceTypes=c),p.isCustomProperty=this.peekRegExp(h.Ident,/^--/),this.consumeToken(),this.finish(p)},x.prototype._parseFunction=function(){var c=this.mark(),p=this.create(ut);if(!p.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(c),null;if(p.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)p.getArguments().addChild(this._parseFunctionArgument())||this.markError(p,le.ExpressionExpected);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},x.prototype._parseFunctionIdentifier=function(){if(!this.peek(h.Ident))return null;var c=this.create(Wt);if(c.referenceTypes=[At.Function],this.acceptIdent("progid")){if(this.accept(h.Colon))for(;this.accept(h.Ident)&&this.acceptDelim("."););return this.finish(c)}return this.consumeToken(),this.finish(c)},x.prototype._parseFunctionArgument=function(){var c=this.create(st);return c.setValue(this._parseExpr(!0))?this.finish(c):null},x.prototype._parseHexColor=function(){if(this.peekRegExp(h.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var c=this.create(On);return this.consumeToken(),this.finish(c)}return null},x}();function mn(x,c){return x.indexOf(c)!==-1}function sn(){for(var x=[],c=0;c<arguments.length;c++)x[c]=arguments[c];for(var p=[],F=0,pe=x;F<pe.length;F++)for(var He=pe[F],Qe=0,Vt=He;Qe<Vt.length;Qe++){var $t=Vt[Qe];mn(p,$t)||p.push($t)}return p}var gn,Sn,En,Xn,Yn,Nr,Ar,In,Rn,Qn,_r,Rr,xr,Sr,ur,Tn,Lr,Ur,go,vr,ls,Bo=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Kn=function(){function x(c,p){this.offset=c,this.length=p,this.symbols=[],this.parent=null,this.children=[]}return x.prototype.addChild=function(c){this.children.push(c),c.setParent(this)},x.prototype.setParent=function(c){this.parent=c},x.prototype.findScope=function(c,p){return p===void 0&&(p=0),this.offset<=c&&this.offset+this.length>c+p||this.offset===c&&this.length===p?this.findInScope(c,p):null},x.prototype.findInScope=function(c,p){p===void 0&&(p=0);var F=c+p,pe=function(Qe,Vt){var $t=0,ci=Qe.length;if(ci===0)return 0;for(;$t<ci;){var Ft=Math.floor(($t+ci)/2);Vt(Qe[Ft])?ci=Ft:$t=Ft+1}return $t}(this.children,function(Qe){return Qe.offset>F});if(pe===0)return this;var He=this.children[pe-1];return He.offset<=c&&He.offset+He.length>=c+p?He.findInScope(c,p):this},x.prototype.addSymbol=function(c){this.symbols.push(c)},x.prototype.getSymbol=function(c,p){for(var F=0;F<this.symbols.length;F++){var pe=this.symbols[F];if(pe.name===c&&pe.type===p)return pe}return null},x.prototype.getSymbols=function(){return this.symbols},x}(),lo=function(x){function c(){return x.call(this,0,Number.MAX_VALUE)||this}return Bo(c,x),c}(Kn),kr=function(x,c,p,F){this.name=x,this.value=c,this.node=p,this.type=F},Lo=function(){function x(c){this.scope=c}return x.prototype.addSymbol=function(c,p,F,pe){if(c.offset!==-1){var He=this.scope.findScope(c.offset,c.length);He&&He.addSymbol(new kr(p,F,c,pe))}},x.prototype.addScope=function(c){if(c.offset!==-1){var p=this.scope.findScope(c.offset,c.length);if(p&&(p.offset!==c.offset||p.length!==c.length)){var F=new Kn(c.offset,c.length);return p.addChild(F),F}return p}return null},x.prototype.addSymbolToChildScope=function(c,p,F,pe,He){if(c&&c.offset!==-1){var Qe=this.addScope(c);Qe&&Qe.addSymbol(new kr(F,pe,p,He))}},x.prototype.visitNode=function(c){switch(c.type){case it.Keyframe:return this.addSymbol(c,c.getName(),void 0,At.Keyframe),!0;case it.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(c);case it.VariableDeclaration:return this.visitVariableDeclarationNode(c);case it.Ruleset:return this.visitRuleSet(c);case it.MixinDeclaration:return this.addSymbol(c,c.getName(),void 0,At.Mixin),!0;case it.FunctionDeclaration:return this.addSymbol(c,c.getName(),void 0,At.Function),!0;case it.FunctionParameter:return this.visitFunctionParameterNode(c);case it.Declarations:return this.addScope(c),!0;case it.For:var p=c,F=p.getDeclarations();return F&&p.variable&&this.addSymbolToChildScope(F,p.variable,p.variable.getName(),void 0,At.Variable),!0;case it.Each:var pe=c,He=pe.getDeclarations();if(He)for(var Qe=0,Vt=pe.getVariables().getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];this.addSymbolToChildScope(He,$t,$t.getName(),void 0,At.Variable)}return!0}return!0},x.prototype.visitRuleSet=function(c){var p=this.scope.findScope(c.offset,c.length);if(p)for(var F=0,pe=c.getSelectors().getChildren();F<pe.length;F++){var He=pe[F];He instanceof Bi&&He.getChildren().length===1&&p.addSymbol(new kr(He.getChild(0).getText(),void 0,He,At.Rule))}return!0},x.prototype.visitVariableDeclarationNode=function(c){var p=c.getValue()?c.getValue().getText():void 0;return this.addSymbol(c,c.getName(),p,At.Variable),!0},x.prototype.visitFunctionParameterNode=function(c){var p=c.getParent().getDeclarations();if(p){var F=c.getDefaultValue(),pe=F?F.getText():void 0;this.addSymbolToChildScope(p,c,c.getName(),pe,At.Variable)}return!0},x.prototype.visitCustomPropertyDeclarationNode=function(c){var p=c.getValue()?c.getValue().getText():"";return this.addCSSVariable(c.getProperty(),c.getProperty().getName(),p,At.Variable),!0},x.prototype.addCSSVariable=function(c,p,F,pe){c.offset!==-1&&this.scope.addSymbol(new kr(p,F,c,pe))},x}(),jo=function(){function x(c){this.global=new lo,c.acceptVisitor(new Lo(this.global))}return x.prototype.findSymbolsAtOffset=function(c,p){for(var F=this.global.findScope(c,0),pe=[],He={};F;){for(var Qe=F.getSymbols(),Vt=0;Vt<Qe.length;Vt++){var $t=Qe[Vt];$t.type!==p||He[$t.name]||(pe.push($t),He[$t.name]=!0)}F=F.parent}return pe},x.prototype.internalFindSymbol=function(c,p){var F=c;if(c.parent instanceof ze&&c.parent.getParent()instanceof Ai&&(F=c.parent.getParent().getDeclarations()),c.parent instanceof st&&c.parent.getParent()instanceof ut){var pe=c.parent.getParent().getIdentifier();if(pe){var He=this.internalFindSymbol(pe,[At.Function]);He&&(F=He.node.getDeclarations())}}if(!F)return null;for(var Qe=c.getText(),Vt=this.global.findScope(F.offset,F.length);Vt;){for(var $t=0;$t<p.length;$t++){var ci=p[$t],Ft=Vt.getSymbol(Qe,ci);if(Ft)return Ft}Vt=Vt.parent}return null},x.prototype.evaluateReferenceTypes=function(c){if(c instanceof Wt){var p=c.referenceTypes;if(p)return p;if(c.isCustomProperty)return[At.Variable];var F=function(He){var Qe=He.findParent(it.Declaration),Vt=Qe&&Qe.getValue();return Vt&&Vt.encloses(He)?Qe:null}(c);if(F){var pe=F.getNonPrefixedPropertyName();if((pe==="animation"||pe==="animation-name")&&F.getValue()&&F.getValue().offset===c.offset)return[At.Keyframe]}}else if(c instanceof rt)return[At.Variable];return c.findAParent(it.Selector,it.ExtendsReference)?[At.Rule]:null},x.prototype.findSymbolFromNode=function(c){if(!c)return null;for(;c.type===it.Interpolation;)c=c.getParent();var p=this.evaluateReferenceTypes(c);return p?this.internalFindSymbol(c,p):null},x.prototype.matchesSymbol=function(c,p){if(!c)return!1;for(;c.type===it.Interpolation;)c=c.getParent();if(!c.matches(p.name))return!1;var F=this.evaluateReferenceTypes(c);return!(!F||F.indexOf(p.type)===-1)&&this.internalFindSymbol(c,F)===p},x.prototype.findSymbol=function(c,p,F){for(var pe=this.global.findScope(F);pe;){var He=pe.getSymbol(c,p);if(He)return He;pe=pe.parent}return null},x}();(function(x){x.create=function(c,p){return{line:c,character:p}},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&Ui.number(p.line)&&Ui.number(p.character)}})(gn||(gn={})),function(x){x.create=function(c,p,F,pe){if(Ui.number(c)&&Ui.number(p)&&Ui.number(F)&&Ui.number(pe))return{start:gn.create(c,p),end:gn.create(F,pe)};if(gn.is(c)&&gn.is(p))return{start:c,end:p};throw new Error("Range#create called with invalid arguments["+c+", "+p+", "+F+", "+pe+"]")},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&gn.is(p.start)&&gn.is(p.end)}}(Sn||(Sn={})),function(x){x.create=function(c,p){return{uri:c,range:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.string(p.uri)||Ui.undefined(p.uri))}}(En||(En={})),function(x){x.create=function(c,p,F,pe){return{targetUri:c,targetRange:p,targetSelectionRange:F,originSelectionRange:pe}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.targetRange)&&Ui.string(p.targetUri)&&(Sn.is(p.targetSelectionRange)||Ui.undefined(p.targetSelectionRange))&&(Sn.is(p.originSelectionRange)||Ui.undefined(p.originSelectionRange))}}(Xn||(Xn={})),function(x){x.create=function(c,p,F,pe){return{red:c,green:p,blue:F,alpha:pe}},x.is=function(c){var p=c;return Ui.number(p.red)&&Ui.number(p.green)&&Ui.number(p.blue)&&Ui.number(p.alpha)}}(Yn||(Yn={})),function(x){x.create=function(c,p){return{range:c,color:p}},x.is=function(c){var p=c;return Sn.is(p.range)&&Yn.is(p.color)}}(Nr||(Nr={})),function(x){x.create=function(c,p,F){return{label:c,textEdit:p,additionalTextEdits:F}},x.is=function(c){var p=c;return Ui.string(p.label)&&(Ui.undefined(p.textEdit)||Tn.is(p))&&(Ui.undefined(p.additionalTextEdits)||Ui.typedArray(p.additionalTextEdits,Tn.is))}}(Ar||(Ar={})),function(x){x.Comment="comment",x.Imports="imports",x.Region="region"}(In||(In={})),function(x){x.create=function(c,p,F,pe,He){var Qe={startLine:c,endLine:p};return Ui.defined(F)&&(Qe.startCharacter=F),Ui.defined(pe)&&(Qe.endCharacter=pe),Ui.defined(He)&&(Qe.kind=He),Qe},x.is=function(c){var p=c;return Ui.number(p.startLine)&&Ui.number(p.startLine)&&(Ui.undefined(p.startCharacter)||Ui.number(p.startCharacter))&&(Ui.undefined(p.endCharacter)||Ui.number(p.endCharacter))&&(Ui.undefined(p.kind)||Ui.string(p.kind))}}(Rn||(Rn={})),function(x){x.create=function(c,p){return{location:c,message:p}},x.is=function(c){var p=c;return Ui.defined(p)&&En.is(p.location)&&Ui.string(p.message)}}(Qn||(Qn={})),function(x){x.Error=1,x.Warning=2,x.Information=3,x.Hint=4}(_r||(_r={})),function(x){x.Unnecessary=1,x.Deprecated=2}(Rr||(Rr={})),function(x){x.is=function(c){var p=c;return p!=null&&(Ui.number(p.value)||Ui.string(p.value))&&Ui.string(p.target)}}(xr||(xr={})),function(x){x.create=function(c,p,F,pe,He,Qe){var Vt={range:c,message:p};return Ui.defined(F)&&(Vt.severity=F),Ui.defined(pe)&&(Vt.code=pe),Ui.defined(He)&&(Vt.source=He),Ui.defined(Qe)&&(Vt.relatedInformation=Qe),Vt},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&Ui.string(p.message)&&(Ui.number(p.severity)||Ui.undefined(p.severity))&&(Ui.number(p.code)||Ui.string(p.code)||Ui.undefined(p.code))&&(Ui.string(p.source)||Ui.undefined(p.source))&&(Ui.undefined(p.relatedInformation)||Ui.typedArray(p.relatedInformation,Qn.is))}}(Sr||(Sr={})),function(x){x.create=function(c,p){for(var F=[],pe=2;pe<arguments.length;pe++)F[pe-2]=arguments[pe];var He={title:c,command:p};return Ui.defined(F)&&F.length>0&&(He.arguments=F),He},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.title)&&Ui.string(p.command)}}(ur||(ur={})),function(x){x.replace=function(c,p){return{range:c,newText:p}},x.insert=function(c,p){return{range:{start:c,end:c},newText:p}},x.del=function(c){return{range:c,newText:""}},x.is=function(c){var p=c;return Ui.objectLiteral(p)&&Ui.string(p.newText)&&Sn.is(p.range)}}(Tn||(Tn={})),function(x){x.create=function(c,p){return{textDocument:c,edits:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Cn.is(p.textDocument)&&Array.isArray(p.edits)}}(Lr||(Lr={})),function(x){x.create=function(c,p){var F={kind:"create",uri:c};return p===void 0||p.overwrite===void 0&&p.ignoreIfExists===void 0||(F.options=p),F},x.is=function(c){var p=c;return p&&p.kind==="create"&&Ui.string(p.uri)&&(p.options===void 0||(p.options.overwrite===void 0||Ui.boolean(p.options.overwrite))&&(p.options.ignoreIfExists===void 0||Ui.boolean(p.options.ignoreIfExists)))}}(Ur||(Ur={})),function(x){x.create=function(c,p,F){var pe={kind:"rename",oldUri:c,newUri:p};return F===void 0||F.overwrite===void 0&&F.ignoreIfExists===void 0||(pe.options=F),pe},x.is=function(c){var p=c;return p&&p.kind==="rename"&&Ui.string(p.oldUri)&&Ui.string(p.newUri)&&(p.options===void 0||(p.options.overwrite===void 0||Ui.boolean(p.options.overwrite))&&(p.options.ignoreIfExists===void 0||Ui.boolean(p.options.ignoreIfExists)))}}(go||(go={})),function(x){x.create=function(c,p){var F={kind:"delete",uri:c};return p===void 0||p.recursive===void 0&&p.ignoreIfNotExists===void 0||(F.options=p),F},x.is=function(c){var p=c;return p&&p.kind==="delete"&&Ui.string(p.uri)&&(p.options===void 0||(p.options.recursive===void 0||Ui.boolean(p.options.recursive))&&(p.options.ignoreIfNotExists===void 0||Ui.boolean(p.options.ignoreIfNotExists)))}}(vr||(vr={})),function(x){x.is=function(c){var p=c;return p&&(p.changes!==void 0||p.documentChanges!==void 0)&&(p.documentChanges===void 0||p.documentChanges.every(function(F){return Ui.string(F.kind)?Ur.is(F)||go.is(F)||vr.is(F):Lr.is(F)}))}}(ls||(ls={}));var $r,Cn,Ir,Dr,fo,zn,er,bo,va,es,Vo,No,ts,na,is,Uo,cs,co,io,_o,wa,Wr,Cs,Ho,ya,vo,ds,ra,wo=function(){function x(c){this.edits=c}return x.prototype.insert=function(c,p){this.edits.push(Tn.insert(c,p))},x.prototype.replace=function(c,p){this.edits.push(Tn.replace(c,p))},x.prototype.delete=function(c){this.edits.push(Tn.del(c))},x.prototype.add=function(c){this.edits.push(c)},x.prototype.all=function(){return this.edits},x.prototype.clear=function(){this.edits.splice(0,this.edits.length)},x}();(function(){function x(c){var p=this;this._textEditChanges=Object.create(null),c&&(this._workspaceEdit=c,c.documentChanges?c.documentChanges.forEach(function(F){if(Lr.is(F)){var pe=new wo(F.edits);p._textEditChanges[F.textDocument.uri]=pe}}):c.changes&&Object.keys(c.changes).forEach(function(F){var pe=new wo(c.changes[F]);p._textEditChanges[F]=pe}))}Object.defineProperty(x.prototype,"edit",{get:function(){return this._workspaceEdit===void 0?{documentChanges:[]}:this._workspaceEdit},enumerable:!0,configurable:!0}),x.prototype.getTextEditChange=function(c){if(Cn.is(c)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var p=c;if(!(pe=this._textEditChanges[p.uri])){var F={textDocument:p,edits:He=[]};this._workspaceEdit.documentChanges.push(F),pe=new wo(He),this._textEditChanges[p.uri]=pe}return pe}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var pe;if(!(pe=this._textEditChanges[c])){var He=[];this._workspaceEdit.changes[c]=He,pe=new wo(He),this._textEditChanges[c]=pe}return pe},x.prototype.createFile=function(c,p){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ur.create(c,p))},x.prototype.renameFile=function(c,p,F){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(go.create(c,p,F))},x.prototype.deleteFile=function(c,p){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(vr.create(c,p))},x.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}})(),function(x){x.create=function(c){return{uri:c}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)}}($r||($r={})),function(x){x.create=function(c,p){return{uri:c,version:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)&&(p.version===null||Ui.number(p.version))}}(Cn||(Cn={})),function(x){x.create=function(c,p,F,pe){return{uri:c,languageId:p,version:F,text:pe}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.string(p.uri)&&Ui.string(p.languageId)&&Ui.number(p.version)&&Ui.string(p.text)}}(Ir||(Ir={})),function(x){x.PlainText="plaintext",x.Markdown="markdown"}(Dr||(Dr={})),function(x){x.is=function(c){var p=c;return p===x.PlainText||p===x.Markdown}}(Dr||(Dr={})),function(x){x.is=function(c){var p=c;return Ui.objectLiteral(c)&&Dr.is(p.kind)&&Ui.string(p.value)}}(fo||(fo={})),function(x){x.Text=1,x.Method=2,x.Function=3,x.Constructor=4,x.Field=5,x.Variable=6,x.Class=7,x.Interface=8,x.Module=9,x.Property=10,x.Unit=11,x.Value=12,x.Enum=13,x.Keyword=14,x.Snippet=15,x.Color=16,x.File=17,x.Reference=18,x.Folder=19,x.EnumMember=20,x.Constant=21,x.Struct=22,x.Event=23,x.Operator=24,x.TypeParameter=25}(zn||(zn={})),function(x){x.PlainText=1,x.Snippet=2}(er||(er={})),function(x){x.Deprecated=1}(bo||(bo={})),function(x){x.create=function(c,p,F){return{newText:c,insert:p,replace:F}},x.is=function(c){var p=c;return p&&Ui.string(p.newText)&&Sn.is(p.insert)&&Sn.is(p.replace)}}(va||(va={})),function(x){x.create=function(c){return{label:c}}}(es||(es={})),function(x){x.create=function(c,p){return{items:c||[],isIncomplete:!!p}}}(Vo||(Vo={})),function(x){x.fromPlainText=function(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},x.is=function(c){var p=c;return Ui.string(p)||Ui.objectLiteral(p)&&Ui.string(p.language)&&Ui.string(p.value)}}(No||(No={})),function(x){x.is=function(c){var p=c;return!!p&&Ui.objectLiteral(p)&&(fo.is(p.contents)||No.is(p.contents)||Ui.typedArray(p.contents,No.is))&&(c.range===void 0||Sn.is(c.range))}}(ts||(ts={})),function(x){x.create=function(c,p){return p?{label:c,documentation:p}:{label:c}}}(na||(na={})),function(x){x.create=function(c,p){for(var F=[],pe=2;pe<arguments.length;pe++)F[pe-2]=arguments[pe];var He={label:c};return Ui.defined(p)&&(He.documentation=p),Ui.defined(F)?He.parameters=F:He.parameters=[],He}}(is||(is={})),function(x){x.Text=1,x.Read=2,x.Write=3}(Uo||(Uo={})),function(x){x.create=function(c,p){var F={range:c};return Ui.number(p)&&(F.kind=p),F}}(cs||(cs={})),function(x){x.File=1,x.Module=2,x.Namespace=3,x.Package=4,x.Class=5,x.Method=6,x.Property=7,x.Field=8,x.Constructor=9,x.Enum=10,x.Interface=11,x.Function=12,x.Variable=13,x.Constant=14,x.String=15,x.Number=16,x.Boolean=17,x.Array=18,x.Object=19,x.Key=20,x.Null=21,x.EnumMember=22,x.Struct=23,x.Event=24,x.Operator=25,x.TypeParameter=26}(co||(co={})),function(x){x.Deprecated=1}(io||(io={})),function(x){x.create=function(c,p,F,pe,He){var Qe={name:c,kind:p,location:{uri:pe,range:F}};return He&&(Qe.containerName=He),Qe}}(_o||(_o={})),function(x){x.create=function(c,p,F,pe,He,Qe){var Vt={name:c,detail:p,kind:F,range:pe,selectionRange:He};return Qe!==void 0&&(Vt.children=Qe),Vt},x.is=function(c){var p=c;return p&&Ui.string(p.name)&&Ui.number(p.kind)&&Sn.is(p.range)&&Sn.is(p.selectionRange)&&(p.detail===void 0||Ui.string(p.detail))&&(p.deprecated===void 0||Ui.boolean(p.deprecated))&&(p.children===void 0||Array.isArray(p.children))&&(p.tags===void 0||Array.isArray(p.tags))}}(wa||(wa={})),function(x){x.Empty="",x.QuickFix="quickfix",x.Refactor="refactor",x.RefactorExtract="refactor.extract",x.RefactorInline="refactor.inline",x.RefactorRewrite="refactor.rewrite",x.Source="source",x.SourceOrganizeImports="source.organizeImports",x.SourceFixAll="source.fixAll"}(Wr||(Wr={})),function(x){x.create=function(c,p){var F={diagnostics:c};return p!=null&&(F.only=p),F},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.typedArray(p.diagnostics,Sr.is)&&(p.only===void 0||Ui.typedArray(p.only,Ui.string))}}(Cs||(Cs={})),function(x){x.create=function(c,p,F){var pe={title:c};return ur.is(p)?pe.command=p:pe.edit=p,F!==void 0&&(pe.kind=F),pe},x.is=function(c){var p=c;return p&&Ui.string(p.title)&&(p.diagnostics===void 0||Ui.typedArray(p.diagnostics,Sr.is))&&(p.kind===void 0||Ui.string(p.kind))&&(p.edit!==void 0||p.command!==void 0)&&(p.command===void 0||ur.is(p.command))&&(p.isPreferred===void 0||Ui.boolean(p.isPreferred))&&(p.edit===void 0||ls.is(p.edit))}}(Ho||(Ho={})),function(x){x.create=function(c,p){var F={range:c};return Ui.defined(p)&&(F.data=p),F},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.undefined(p.command)||ur.is(p.command))}}(ya||(ya={})),function(x){x.create=function(c,p){return{tabSize:c,insertSpaces:p}},x.is=function(c){var p=c;return Ui.defined(p)&&Ui.number(p.tabSize)&&Ui.boolean(p.insertSpaces)}}(vo||(vo={})),function(x){x.create=function(c,p,F){return{range:c,target:p,data:F}},x.is=function(c){var p=c;return Ui.defined(p)&&Sn.is(p.range)&&(Ui.undefined(p.target)||Ui.string(p.target))}}(ds||(ds={})),function(x){x.create=function(c,p){return{range:c,parent:p}},x.is=function(c){var p=c;return p!==void 0&&Sn.is(p.range)&&(p.parent===void 0||x.is(p.parent))}}(ra||(ra={}));var ns;(function(x){x.create=function(c,p,F,pe){return new no(c,p,F,pe)},x.is=function(c){var p=c;return!!(Ui.defined(p)&&Ui.string(p.uri)&&(Ui.undefined(p.languageId)||Ui.string(p.languageId))&&Ui.number(p.lineCount)&&Ui.func(p.getText)&&Ui.func(p.positionAt)&&Ui.func(p.offsetAt))},x.applyEdits=function(c,p){for(var F=c.getText(),pe=function Ft(Fi,cn){if(Fi.length<=1)return Fi;var vn=Fi.length/2|0,on=Fi.slice(0,vn),Pn=Fi.slice(vn);Ft(on,cn),Ft(Pn,cn);for(var jn=0,Vn=0,Ln=0;jn<on.length&&Vn<Pn.length;){var pr=cn(on[jn],Pn[Vn]);Fi[Ln++]=pr<=0?on[jn++]:Pn[Vn++]}for(;jn<on.length;)Fi[Ln++]=on[jn++];for(;Vn<Pn.length;)Fi[Ln++]=Pn[Vn++];return Fi}(p,function(Ft,Fi){var cn=Ft.range.start.line-Fi.range.start.line;return cn===0?Ft.range.start.character-Fi.range.start.character:cn}),He=F.length,Qe=pe.length-1;Qe>=0;Qe--){var Vt=pe[Qe],$t=c.offsetAt(Vt.range.start),ci=c.offsetAt(Vt.range.end);if(!(ci<=He))throw new Error("Overlapping edit");F=F.substring(0,$t)+Vt.newText+F.substring(ci,F.length),He=$t}return F}})(ns||(ns={}));var Ui,no=function(){function x(c,p,F,pe){this._uri=c,this._languageId=p,this._version=F,this._content=pe,this._lineOffsets=void 0}return Object.defineProperty(x.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),x.prototype.getText=function(c){if(c){var p=this.offsetAt(c.start),F=this.offsetAt(c.end);return this._content.substring(p,F)}return this._content},x.prototype.update=function(c,p){this._content=c.text,this._version=p,this._lineOffsets=void 0},x.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var c=[],p=this._content,F=!0,pe=0;pe<p.length;pe++){F&&(c.push(pe),F=!1);var He=p.charAt(pe);F=He==="\r"||He===` `,He==="\r"&&pe+1<p.length&&p.charAt(pe+1)===` -`&&pe++}F&&p.length>0&&c.push(p.length),this._lineOffsets=c}return this._lineOffsets},x.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var p=this.getLineOffsets(),F=0,pe=p.length;if(pe===0)return gn.create(0,c);for(;F<pe;){var He=Math.floor((F+pe)/2);p[He]>c?pe=He:F=He+1}var Qe=F-1;return gn.create(Qe,c-p[Qe])},x.prototype.offsetAt=function(c){var p=this.getLineOffsets();if(c.line>=p.length)return this._content.length;if(c.line<0)return 0;var F=p[c.line],pe=c.line+1<p.length?p[c.line+1]:this._content.length;return Math.max(Math.min(F+c.character,pe),F)},Object.defineProperty(x.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),x}();(function(x){var c=Object.prototype.toString;x.defined=function(p){return p!==void 0},x.undefined=function(p){return p===void 0},x.boolean=function(p){return p===!0||p===!1},x.string=function(p){return c.call(p)==="[object String]"},x.number=function(p){return c.call(p)==="[object Number]"},x.func=function(p){return c.call(p)==="[object Function]"},x.objectLiteral=function(p){return p!==null&&typeof p=="object"},x.typedArray=function(p,F){return Array.isArray(p)&&p.every(F)}})(Ui||(Ui={}));var xs,yr,qr,Ss=function(){function x(c,p,F,pe){this._uri=c,this._languageId=p,this._version=F,this._content=pe,this._lineOffsets=void 0}return Object.defineProperty(x.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),x.prototype.getText=function(c){if(c){var p=this.offsetAt(c.start),F=this.offsetAt(c.end);return this._content.substring(p,F)}return this._content},x.prototype.update=function(c,p){for(var F=0,pe=c;F<pe.length;F++){var He=pe[F];if(x.isIncremental(He)){var Qe=us(He.range),Vt=this.offsetAt(Qe.start),$t=this.offsetAt(Qe.end);this._content=this._content.substring(0,Vt)+He.text+this._content.substring($t,this._content.length);var ci=Math.max(Qe.start.line,0),Ft=Math.max(Qe.end.line,0),Fi=this._lineOffsets,cn=hs(He.text,!1,Vt);if(Ft-ci===cn.length)for(var vn=0,rn=cn.length;vn<rn;vn++)Fi[vn+ci+1]=cn[vn];else cn.length<1e4?Fi.splice.apply(Fi,[ci+1,Ft-ci].concat(cn)):this._lineOffsets=Fi=Fi.slice(0,ci+1).concat(cn,Fi.slice(Ft+1));var Pn=He.text.length-($t-Vt);if(Pn!==0)for(vn=ci+1+cn.length,rn=Fi.length;vn<rn;vn++)Fi[vn]=Fi[vn]+Pn}else{if(!x.isFull(He))throw new Error("Unknown change event received");this._content=He.text,this._lineOffsets=void 0}}this._version=p},x.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=hs(this._content,!0)),this._lineOffsets},x.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var p=this.getLineOffsets(),F=0,pe=p.length;if(pe===0)return{line:0,character:c};for(;F<pe;){var He=Math.floor((F+pe)/2);p[He]>c?pe=He:F=He+1}var Qe=F-1;return{line:Qe,character:c-p[Qe]}},x.prototype.offsetAt=function(c){var p=this.getLineOffsets();if(c.line>=p.length)return this._content.length;if(c.line<0)return 0;var F=p[c.line],pe=c.line+1<p.length?p[c.line+1]:this._content.length;return Math.max(Math.min(F+c.character,pe),F)},Object.defineProperty(x.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),x.isIncremental=function(c){var p=c;return p!=null&&typeof p.text=="string"&&p.range!==void 0&&(p.rangeLength===void 0||typeof p.rangeLength=="number")},x.isFull=function(c){var p=c;return p!=null&&typeof p.text=="string"&&p.range===void 0&&p.rangeLength===void 0},x}();function hs(x,c,p){p===void 0&&(p=0);for(var F=c?[p]:[],pe=0;pe<x.length;pe++){var He=x.charCodeAt(pe);He!==13&&He!==10||(He===13&&pe+1<x.length&&x.charCodeAt(pe+1)===10&&pe++,F.push(p+pe+1))}return F}function us(x){var c=x.start,p=x.end;return c.line>p.line||c.line===p.line&&c.character>p.character?{start:p,end:c}:x}function Ca(x){var c=us(x.range);return c!==x.range?{newText:x.newText,range:c}:x}(function(x){x.create=function(c,p,F,pe){return new Ss(c,p,F,pe)},x.update=function(c,p,F){if(c instanceof Ss)return c.update(p,F),c;throw new Error("TextDocument.update: document must be created by TextDocument.create")},x.applyEdits=function(c,p){for(var F=c.getText(),pe=0,He=[],Qe=0,Vt=function Ft(Fi,cn){if(Fi.length<=1)return Fi;var vn=Fi.length/2|0,rn=Fi.slice(0,vn),Pn=Fi.slice(vn);Ft(rn,cn),Ft(Pn,cn);for(var jn=0,Vn=0,Ln=0;jn<rn.length&&Vn<Pn.length;){var mo=cn(rn[jn],Pn[Vn]);Fi[Ln++]=mo<=0?rn[jn++]:Pn[Vn++]}for(;jn<rn.length;)Fi[Ln++]=rn[jn++];for(;Vn<Pn.length;)Fi[Ln++]=Pn[Vn++];return Fi}(p.map(Ca),function(Ft,Fi){var cn=Ft.range.start.line-Fi.range.start.line;return cn===0?Ft.range.start.character-Fi.range.start.character:cn});Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=c.offsetAt($t.range.start);if(ci<pe)throw new Error("Overlapping edit");ci>pe&&He.push(F.substring(pe,ci)),$t.newText.length&&He.push($t.newText),pe=c.offsetAt($t.range.end)}return He.push(F.substr(pe)),He.join("")}})(xs||(xs={})),(yr||(yr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Do.Markdown,Do.PlainText]}},hover:{contentFormat:[Do.Markdown,Do.PlainText]}}},function(x){x[x.Unknown=0]="Unknown",x[x.File=1]="File",x[x.Directory=2]="Directory",x[x.SymbolicLink=64]="SymbolicLink"}(qr||(qr={}));var xa=o(144),ks="/".charCodeAt(0),Ir=".".charCodeAt(0);function $r(x){var c=x.lastIndexOf("/");return c!==-1?x.substr(0,c):""}function Vs(x){for(var c=[],p=0,F=x;p<F.length;p++){var pe=F[p];pe.length===0||pe.length===1&&pe.charCodeAt(0)===Ir||(pe.length===2&&pe.charCodeAt(0)===Ir&&pe.charCodeAt(1)===Ir?c.pop():c.push(pe))}x.length>1&&x[x.length-1].length===0&&c.push("");var He=c.join("/");return x[0].length===0&&(He="/"+He),He}function Es(x){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];for(var F=xa.a.parse(x),pe=F.path.split("/"),He=0,Qe=c;He<Qe.length;He++){var Vt=Qe[He];pe.push.apply(pe,Vt.split("/"))}return F.with({path:Vs(pe)}).toString()}var ps=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Us=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Kr=function(){function x(c){this.readDirectory=c,this.literalCompletions=[],this.importCompletions=[]}return x.prototype.onCssURILiteralValue=function(c){this.literalCompletions.push(c)},x.prototype.onCssImportPath=function(c){this.importCompletions.push(c)},x.prototype.computeCompletions=function(c,p){return ps(this,void 0,void 0,function(){var F,pe,He,Qe,Vt,$t,ci,Ft,Fi,cn,vn,rn,Pn,jn,Vn,Ln,mo;return Us(this,function(yo){switch(yo.label){case 0:F={items:[],isIncomplete:!1},pe=0,He=this.literalCompletions,yo.label=1;case 1:return pe<He.length?(Qe=He[pe],Vt=Qe.uriValue,(Pn=Hs(Vt))!=="."&&Pn!==".."?[3,2]:(F.isIncomplete=!0,[3,4])):[3,5];case 2:return[4,this.providePathSuggestions(Vt,Qe.position,Qe.range,c,p)];case 3:for($t=yo.sent(),ci=0,Ft=$t;ci<Ft.length;ci++)mo=Ft[ci],F.items.push(mo);yo.label=4;case 4:return pe++,[3,1];case 5:Fi=0,cn=this.importCompletions,yo.label=6;case 6:return Fi<cn.length?(vn=cn[Fi],rn=vn.pathValue,(Pn=Hs(rn))!=="."&&Pn!==".."?[3,7]:(F.isIncomplete=!0,[3,9])):[3,10];case 7:return[4,this.providePathSuggestions(rn,vn.position,vn.range,c,p)];case 8:for(jn=yo.sent(),c.languageId==="scss"&&jn.forEach(function(fo){de(fo.label,"_")&&Oe(fo.label,".scss")&&(fo.textEdit?fo.textEdit.newText=fo.label.slice(1,-5):fo.label=fo.label.slice(1,-5))}),Vn=0,Ln=jn;Vn<Ln.length;Vn++)mo=Ln[Vn],F.items.push(mo);yo.label=9;case 9:return Fi++,[3,6];case 10:return[2,F]}})})},x.prototype.providePathSuggestions=function(c,p,F,pe,He){return ps(this,void 0,void 0,function(){var Qe,Vt,$t,ci,Ft,Fi,cn,vn,rn,Pn,jn,Vn,Ln,mo,yo;return Us(this,function(fo){switch(fo.label){case 0:if(Qe=Hs(c),Vt=de(c,"'")||de(c,'"'),$t=Vt?Qe.slice(0,p.character-(F.start.character+1)):Qe.slice(0,p.character-F.start.character),ci=pe.uri,Ft=Vt?function(To,Co,Wo){var Sr=Or(To.start,Co),_s=Or(To.end,Wo);return Sn.create(Sr,_s)}(F,1,-1):F,Fi=function(To,Co,Wo){var Sr,_s=To.lastIndexOf("/");if(_s===-1)Sr=Wo;else{var Ra=Co.slice(_s+1),rs=Or(Wo.end,-Ra.length),tr=Ra.indexOf(" "),da=void 0;da=tr!==-1?Or(rs,tr):Wo.end,Sr=Sn.create(rs,da)}return Sr}($t,Qe,Ft),cn=$t.substring(0,$t.lastIndexOf("/")+1),!(vn=He.resolveReference(cn||".",ci)))return[3,4];fo.label=1;case 1:return fo.trys.push([1,3,,4]),rn=[],[4,this.readDirectory(vn)];case 2:for(Pn=fo.sent(),jn=0,Vn=Pn;jn<Vn.length;jn++)Ln=Vn[jn],mo=Ln[0],yo=Ln[1],mo.charCodeAt(0)===os||yo!==qr.Directory&&Es(vn,mo)===ci||rn.push(ms(mo,yo===qr.Directory,Fi));return[2,rn];case 3:return fo.sent(),[3,4];case 4:return[2,[]]}})})},x}(),os=".".charCodeAt(0);function Hs(x){return de(x,"'")||de(x,'"')?x.slice(1,-1):x}function ms(x,c,p){return c?{label:gs(x+="/"),kind:zn.Folder,textEdit:Tn.replace(p,gs(x)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:gs(x),kind:zn.File,textEdit:Tn.replace(p,gs(x))}}function gs(x){return x.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Or(x,c){return gn.create(x.line,x.character+c)}var Go,rr=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Sa=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},qs=Gt(),Dr=eo.Snippet;(function(x){x.Enums=" ",x.Normal="d",x.VendorPrefixed="x",x.Term="y",x.Variable="z"})(Go||(Go={}));var Ar=function(){function x(c,p,F){c===void 0&&(c=null),this.variablePrefix=c,this.lsOptions=p,this.cssDataManager=F,this.completionParticipants=[]}return x.prototype.configure=function(c){this.settings=c},x.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new jr(this.styleSheet)),this.symbolContext},x.prototype.setCompletionParticipants=function(c){this.completionParticipants=c||[]},x.prototype.doComplete2=function(c,p,F,pe){return rr(this,void 0,void 0,function(){var He,Qe,Vt,$t;return Sa(this,function(ci){switch(ci.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(c,p,F)];He=new Kr(this.lsOptions.fileSystemProvider.readDirectory),Qe=this.completionParticipants,this.completionParticipants=[He].concat(Qe),Vt=this.doComplete(c,p,F),ci.label=1;case 1:return ci.trys.push([1,,3,4]),[4,He.computeCompletions(c,pe)];case 2:return $t=ci.sent(),[2,{isIncomplete:Vt.isIncomplete||$t.isIncomplete,items:$t.items.concat(Vt.items)}];case 3:return this.completionParticipants=Qe,[7];case 4:return[2]}})})},x.prototype.doComplete=function(c,p,F){this.offset=c.offsetAt(p),this.position=p,this.currentWord=function(ci,Ft){for(var Fi=Ft-1,cn=ci.getText();Fi>=0&&` -\r":{[()]},*>+`.indexOf(cn.charAt(Fi))===-1;)Fi--;return cn.substring(Fi+1,Ft)}(c,this.offset),this.defaultReplaceRange=Sn.create(gn.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=c,this.styleSheet=F;try{var pe={isIncomplete:!1,items:[]};this.nodePath=wt(this.styleSheet,this.offset);for(var He=this.nodePath.length-1;He>=0;He--){var Qe=this.nodePath[He];if(Qe instanceof Ue)this.getCompletionsForDeclarationProperty(Qe.getParent(),pe);else if(Qe instanceof Gn)Qe.parent instanceof Xe?this.getVariableProposals(null,pe):this.getCompletionsForExpression(Qe,pe);else if(Qe instanceof Lt){var Vt=Qe.findAParent(it.ExtendsReference,it.Ruleset);if(Vt)if(Vt.type===it.ExtendsReference)this.getCompletionsForExtendsReference(Vt,Qe,pe);else{var $t=Vt;this.getCompletionsForSelector($t,$t&&$t.isNested(),pe)}}else if(Qe instanceof st)this.getCompletionsForFunctionArgument(Qe,Qe.getParent(),pe);else if(Qe instanceof Ii)this.getCompletionsForDeclarations(Qe,pe);else if(Qe instanceof Fe)this.getCompletionsForVariableDeclaration(Qe,pe);else if(Qe instanceof Zi)this.getCompletionsForRuleSet(Qe,pe);else if(Qe instanceof Xe)this.getCompletionsForInterpolation(Qe,pe);else if(Qe instanceof Ri)this.getCompletionsForFunctionDeclaration(Qe,pe);else if(Qe instanceof Ht)this.getCompletionsForMixinReference(Qe,pe);else if(Qe instanceof ut)this.getCompletionsForFunctionArgument(null,Qe,pe);else if(Qe instanceof Fn)this.getCompletionsForSupports(Qe,pe);else if(Qe instanceof Jn)this.getCompletionsForSupportsCondition(Qe,pe);else if(Qe instanceof Mt)this.getCompletionsForExtendsReference(Qe,null,pe);else if(Qe.type===it.URILiteral)this.getCompletionForUriLiteralValue(Qe,pe);else if(Qe.parent===null)this.getCompletionForTopLevel(pe);else{if(Qe.type!==it.StringLiteral||!this.isImportPathParent(Qe.parent.type))continue;this.getCompletionForImportPath(Qe,pe)}if(pe.items.length>0||this.offset>Qe.offset)return this.finalize(pe)}return this.getCompletionsForStylesheet(pe),pe.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,pe),this.finalize(pe)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},x.prototype.isImportPathParent=function(c){return c===it.Import},x.prototype.finalize=function(c){return c},x.prototype.findInNodePath=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];for(var F=this.nodePath.length-1;F>=0;F--){var pe=this.nodePath[F];if(c.indexOf(pe.type)!==-1)return pe}return null},x.prototype.getCompletionsForDeclarationProperty=function(c,p){return this.getPropertyProposals(c,p)},x.prototype.getPropertyProposals=function(c,p){var F=this,pe=this.isTriggerPropertyValueCompletionEnabled,He=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(function(Qe){var Vt,$t,ci=!1;c?(Vt=F.getCompletionRange(c.getProperty()),$t=Qe.name,ii(c.colonPosition)||($t+=": ",ci=!0)):(Vt=F.getCompletionRange(null),$t=Qe.name+": ",ci=!0),!c&&He&&($t+="$0;"),c&&!c.semicolonPosition&&He&&F.offset>=F.textDocument.offsetAt(Vt.end)&&($t+="$0;");var Ft={label:Qe.name,documentation:Ze(Qe,F.doesSupportMarkdown()),tags:$s(Qe)?[br.Deprecated]:[],textEdit:Tn.replace(Vt,$t),insertTextFormat:eo.Snippet,kind:zn.Property};Qe.restrictions||(ci=!1),pe&&ci&&(Ft.command={title:"Suggest",command:"editor.action.triggerSuggest"});var Fi=(255-(typeof Qe.relevance=="number"?Math.min(Math.max(Qe.relevance,0),99):50)).toString(16),cn=de(Qe.name,"-")?Go.VendorPrefixed:Go.Normal;Ft.sortText=cn+"_"+Fi,p.items.push(Ft)}),this.completionParticipants.forEach(function(Qe){Qe.onCssProperty&&Qe.onCssProperty({propertyName:F.currentWord,range:F.defaultReplaceRange})}),p},Object.defineProperty(x.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){return!this.settings||!this.settings.completion||this.settings.completion.triggerPropertyValueCompletion===void 0||this.settings.completion.triggerPropertyValueCompletion},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){return!this.settings||!this.settings.completion||this.settings.completion.completePropertyWithSemicolon===void 0||this.settings.completion.completePropertyWithSemicolon},enumerable:!0,configurable:!0}),x.prototype.getCompletionsForDeclarationValue=function(c,p){for(var F=this,pe=c.getFullPropertyName(),He=this.cssDataManager.getProperty(pe),Qe=c.getValue()||null;Qe&&Qe.hasChildren();)Qe=Qe.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(cn){cn.onCssPropertyValue&&cn.onCssPropertyValue({propertyName:pe,propertyValue:F.currentWord,range:F.getCompletionRange(Qe)})}),He){if(He.restrictions)for(var Vt=0,$t=He.restrictions;Vt<$t.length;Vt++)switch($t[Vt]){case"color":this.getColorProposals(He,Qe,p);break;case"position":this.getPositionProposals(He,Qe,p);break;case"repeat":this.getRepeatStyleProposals(He,Qe,p);break;case"line-style":this.getLineStyleProposals(He,Qe,p);break;case"line-width":this.getLineWidthProposals(He,Qe,p);break;case"geometry-box":this.getGeometryBoxProposals(He,Qe,p);break;case"box":this.getBoxProposals(He,Qe,p);break;case"image":this.getImageProposals(He,Qe,p);break;case"timing-function":this.getTimingFunctionProposals(He,Qe,p);break;case"shape":this.getBasicShapeProposals(He,Qe,p)}this.getValueEnumProposals(He,Qe,p),this.getCSSWideKeywordProposals(He,Qe,p),this.getUnitProposals(He,Qe,p)}else for(var ci=0,Ft=function(cn,vn){var rn=vn.getFullPropertyName(),Pn=new ka;function jn(Vn){return(Vn instanceof Wt||Vn instanceof _e||Vn instanceof Dn)&&Pn.add(Vn.getText()),!0}return cn.accept(function(Vn){if(Vn instanceof vt&&Vn!==vn&&function(mo){var yo=mo.getFullPropertyName();return rn===yo}(Vn)){var Ln=Vn.getValue();Ln&&Ln.accept(jn)}return!0}),Pn}(this.styleSheet,c).getEntries();ci<Ft.length;ci++){var Fi=Ft[ci];p.items.push({label:Fi,textEdit:Tn.replace(this.getCompletionRange(Qe),Fi),kind:zn.Value})}return this.getVariableProposals(Qe,p),this.getTermProposals(He,Qe,p),p},x.prototype.getValueEnumProposals=function(c,p,F){if(c.values)for(var pe=0,He=c.values;pe<He.length;pe++){var Qe=He[pe],Vt=Qe.name,$t=void 0;if(Oe(Vt,")")){var ci=Vt.lastIndexOf("(");ci!==-1&&(Vt=Vt.substr(0,ci)+"($1)",$t=Dr)}var Ft=Go.Enums;de(Qe.name,"-")&&(Ft+=Go.VendorPrefixed);var Fi={label:Qe.name,documentation:Ze(Qe,this.doesSupportMarkdown()),tags:$s(c)?[br.Deprecated]:[],textEdit:Tn.replace(this.getCompletionRange(p),Vt),sortText:Ft,kind:zn.Value,insertTextFormat:$t};F.items.push(Fi)}return F},x.prototype.getCSSWideKeywordProposals=function(c,p,F){for(var pe in xt)F.items.push({label:pe,documentation:xt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getCompletionsForInterpolation=function(c,p){return this.offset>=c.offset+2&&this.getVariableProposals(null,p),p},x.prototype.getVariableProposals=function(c,p){for(var F=0,pe=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Variable);F<pe.length;F++){var He=pe[F],Qe=de(He.name,"--")?"var("+He.name+")":He.name,Vt={label:He.name,documentation:He.value?$e(He.value):He.value,textEdit:Tn.replace(this.getCompletionRange(c),Qe),kind:zn.Variable,sortText:Go.Variable};if(typeof Vt.documentation=="string"&&Ts(Vt.documentation)&&(Vt.kind=zn.Color),He.node.type===it.FunctionParameter){var $t=He.node.getParent();$t.type===it.MixinDeclaration&&(Vt.detail=qs("completion.argument","argument from '{0}'",$t.getName()))}p.items.push(Vt)}return p},x.prototype.getVariableProposalsForCSSVarFunction=function(c){for(var p=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Variable),F=0,pe=p=p.filter(function(Vt){return de(Vt.name,"--")});F<pe.length;F++){var He=pe[F],Qe={label:He.name,documentation:He.value?$e(He.value):He.value,textEdit:Tn.replace(this.getCompletionRange(null),He.name),kind:zn.Variable};typeof Qe.documentation=="string"&&Ts(Qe.documentation)&&(Qe.kind=zn.Color),c.items.push(Qe)}return c},x.prototype.getUnitProposals=function(c,p,F){var pe="0";if(this.currentWord.length>0){var He=this.currentWord.match(/^-?\d[\.\d+]*/);He&&(pe=He[0],F.isIncomplete=pe.length===this.currentWord.length)}else this.currentWord.length===0&&(F.isIncomplete=!0);if(p&&p.parent&&p.parent.type===it.Term&&(p=p.getParent()),c.restrictions)for(var Qe=0,Vt=c.restrictions;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=ri[$t];if(ci)for(var Ft=0,Fi=ci;Ft<Fi.length;Ft++){var cn=pe+Fi[Ft];F.items.push({label:cn,textEdit:Tn.replace(this.getCompletionRange(p),cn),kind:zn.Unit})}}return F},x.prototype.getCompletionRange=function(c){if(c&&c.offset<=this.offset&&this.offset<=c.end){var p=c.end!==-1?this.textDocument.positionAt(c.end):this.position,F=this.textDocument.positionAt(c.offset);if(F.line===p.line)return Sn.create(F,p)}return this.defaultReplaceRange},x.prototype.getColorProposals=function(c,p,F){for(var pe in ai)F.items.push({label:pe,documentation:ai[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Color});for(var pe in fi)F.items.push({label:pe,documentation:fi[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});var He=new ka;this.styleSheet.acceptVisitor(new Ks(He,this.offset));for(var Qe=0,Vt=He.getEntries();Qe<Vt.length;Qe++)pe=Vt[Qe],F.items.push({label:pe,textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Color});for(var $t=function(cn){var vn=1,rn=cn.func.replace(/\[?\$(\w+)\]?/g,function(Pn,jn){return"${"+vn+++":"+jn+"}"});F.items.push({label:cn.func.substr(0,cn.func.indexOf("(")),detail:cn.func,documentation:cn.desc,textEdit:Tn.replace(ci.getCompletionRange(p),rn),insertTextFormat:Dr,kind:zn.Function})},ci=this,Ft=0,Fi=Ei;Ft<Fi.length;Ft++)$t(Fi[Ft]);return F},x.prototype.getPositionProposals=function(c,p,F){for(var pe in We)F.items.push({label:pe,documentation:We[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getRepeatStyleProposals=function(c,p,F){for(var pe in Be)F.items.push({label:pe,documentation:Be[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getLineStyleProposals=function(c,p,F){for(var pe in Le)F.items.push({label:pe,documentation:Le[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getLineWidthProposals=function(c,p,F){for(var pe=0,He=Ke;pe<He.length;pe++){var Qe=He[pe];F.items.push({label:Qe,textEdit:Tn.replace(this.getCompletionRange(p),Qe),kind:zn.Value})}return F},x.prototype.getGeometryBoxProposals=function(c,p,F){for(var pe in yt)F.items.push({label:pe,documentation:yt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getBoxProposals=function(c,p,F){for(var pe in dt)F.items.push({label:pe,documentation:dt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getImageProposals=function(c,p,F){for(var pe in Xt){var He=hr(pe);F.items.push({label:pe,documentation:Xt[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Dr:void 0})}return F},x.prototype.getTimingFunctionProposals=function(c,p,F){for(var pe in mi){var He=hr(pe);F.items.push({label:pe,documentation:mi[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Dr:void 0})}return F},x.prototype.getBasicShapeProposals=function(c,p,F){for(var pe in Yt){var He=hr(pe);F.items.push({label:pe,documentation:Yt[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Dr:void 0})}return F},x.prototype.getCompletionsForStylesheet=function(c){var p=this.styleSheet.findFirstChildBeforeOffset(this.offset);return p?p instanceof Zi?this.getCompletionsForRuleSet(p,c):p instanceof Fn?this.getCompletionsForSupports(p,c):c:this.getCompletionForTopLevel(c)},x.prototype.getCompletionForTopLevel=function(c){var p=this;return this.cssDataManager.getAtDirectives().forEach(function(F){c.items.push({label:F.name,textEdit:Tn.replace(p.getCompletionRange(null),F.name),documentation:Ze(F,p.doesSupportMarkdown()),tags:$s(F)?[br.Deprecated]:[],kind:zn.Keyword})}),this.getCompletionsForSelector(null,!1,c),c},x.prototype.getCompletionsForRuleSet=function(c,p){var F=c.getDeclarations();return F&&F.endsWith("}")&&this.offset>=F.end?this.getCompletionForTopLevel(p):!F||this.offset<=F.offset?this.getCompletionsForSelector(c,c.isNested(),p):this.getCompletionsForDeclarations(c.getDeclarations(),p)},x.prototype.getCompletionsForSelector=function(c,p,F){var pe=this,He=this.findInNodePath(it.PseudoSelector,it.IdentifierSelector,it.ClassSelector,it.ElementNameSelector);if(!He&&this.offset-this.currentWord.length>0&&this.textDocument.getText()[this.offset-this.currentWord.length-1]===":"&&(this.currentWord=":"+this.currentWord,this.defaultReplaceRange=Sn.create(gn.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(function(rn){var Pn=hr(rn.name),jn={label:rn.name,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),documentation:Ze(rn,pe.doesSupportMarkdown()),tags:$s(rn)?[br.Deprecated]:[],kind:zn.Function,insertTextFormat:rn.name!==Pn?Dr:void 0};de(rn.name,":-")&&(jn.sortText=Go.VendorPrefixed),F.items.push(jn)}),this.cssDataManager.getPseudoElements().forEach(function(rn){var Pn=hr(rn.name),jn={label:rn.name,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),documentation:Ze(rn,pe.doesSupportMarkdown()),tags:$s(rn)?[br.Deprecated]:[],kind:zn.Function,insertTextFormat:rn.name!==Pn?Dr:void 0};de(rn.name,"::-")&&(jn.sortText=Go.VendorPrefixed),F.items.push(jn)}),!p){for(var Qe=0,Vt=qi;Qe<Vt.length;Qe++){var $t=Vt[Qe];F.items.push({label:$t,textEdit:Tn.replace(this.getCompletionRange(He),$t),kind:zn.Keyword})}for(var ci=0,Ft=an;ci<Ft.length;ci++)$t=Ft[ci],F.items.push({label:$t,textEdit:Tn.replace(this.getCompletionRange(He),$t),kind:zn.Keyword})}var Fi={};Fi[this.currentWord]=!0;var cn=this.textDocument.getText();if(this.styleSheet.accept(function(rn){if(rn.type===it.SimpleSelector&&rn.length>0){var Pn=cn.substr(rn.offset,rn.length);return Pn.charAt(0)!=="."||Fi[Pn]||(Fi[Pn]=!0,F.items.push({label:Pn,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),kind:zn.Keyword})),!1}return!0}),c&&c.isNested()){var vn=c.getSelectors().findFirstChildBeforeOffset(this.offset);vn&&c.getSelectors().getChildren().indexOf(vn)===0&&this.getPropertyProposals(null,F)}return F},x.prototype.getCompletionsForDeclarations=function(c,p){if(!c||this.offset===c.offset)return p;var F=c.findFirstChildBeforeOffset(this.offset);if(!F)return this.getCompletionsForDeclarationProperty(null,p);if(F instanceof gt){var pe=F;if(!ii(pe.colonPosition)||this.offset<=pe.colonPosition)return this.getCompletionsForDeclarationProperty(pe,p);if(ii(pe.semicolonPosition)&&pe.semicolonPosition<this.offset)return this.offset===pe.semicolonPosition+1?p:this.getCompletionsForDeclarationProperty(null,p);if(pe instanceof vt)return this.getCompletionsForDeclarationValue(pe,p)}else F instanceof Mt?this.getCompletionsForExtendsReference(F,null,p):(this.currentWord&&this.currentWord[0]==="@"||F instanceof Zi)&&this.getCompletionsForDeclarationProperty(null,p);return p},x.prototype.getCompletionsForVariableDeclaration=function(c,p){return this.offset&&ii(c.colonPosition)&&this.offset>c.colonPosition&&this.getVariableProposals(c.getValue(),p),p},x.prototype.getCompletionsForExpression=function(c,p){var F=c.getParent();if(F instanceof st)return this.getCompletionsForFunctionArgument(F,F.getParent(),p),p;var pe=c.findParent(it.Declaration);if(!pe)return this.getTermProposals(void 0,null,p),p;var He=c.findChildAtOffset(this.offset,!0);return He?He instanceof _e||He instanceof Wt?this.getCompletionsForDeclarationValue(pe,p):p:this.getCompletionsForDeclarationValue(pe,p)},x.prototype.getCompletionsForFunctionArgument=function(c,p,F){var pe=p.getIdentifier();return pe&&pe.matches("var")&&(p.getArguments().hasChildren()&&p.getArguments().getChild(0)!==c||this.getVariableProposalsForCSSVarFunction(F)),F},x.prototype.getCompletionsForFunctionDeclaration=function(c,p){var F=c.getDeclarations();return F&&this.offset>F.offset&&this.offset<F.end&&this.getTermProposals(void 0,null,p),p},x.prototype.getCompletionsForMixinReference=function(c,p){for(var F=this,pe=0,He=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Mixin);pe<He.length;pe++){var Qe=He[pe];Qe.node instanceof jt&&p.items.push(this.makeTermProposal(Qe,Qe.node.getParameters(),null))}var Vt=c.getIdentifier()||null;return this.completionParticipants.forEach(function($t){$t.onCssMixinReference&&$t.onCssMixinReference({mixinName:F.currentWord,range:F.getCompletionRange(Vt)})}),p},x.prototype.getTermProposals=function(c,p,F){for(var pe=0,He=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Function);pe<He.length;pe++){var Qe=He[pe];Qe.node instanceof Ri&&F.items.push(this.makeTermProposal(Qe,Qe.node.getParameters(),p))}return F},x.prototype.makeTermProposal=function(c,p,F){c.node;var pe=p.getChildren().map(function(Qe){return Qe instanceof ze?Qe.getName():Qe.getText()}),He=c.name+"("+pe.map(function(Qe,Vt){return"${"+(Vt+1)+":"+Qe+"}"}).join(", ")+")";return{label:c.name,detail:c.name+"("+pe.join(", ")+")",textEdit:Tn.replace(this.getCompletionRange(F),He),insertTextFormat:Dr,kind:zn.Function,sortText:Go.Term}},x.prototype.getCompletionsForSupportsCondition=function(c,p){var F=c.findFirstChildBeforeOffset(this.offset);if(F){if(F instanceof vt)return!ii(F.colonPosition)||this.offset<=F.colonPosition?this.getCompletionsForDeclarationProperty(F,p):this.getCompletionsForDeclarationValue(F,p);if(F instanceof Jn)return this.getCompletionsForSupportsCondition(F,p)}return ii(c.lParent)&&this.offset>c.lParent&&(!ii(c.rParent)||this.offset<=c.rParent)?this.getCompletionsForDeclarationProperty(null,p):p},x.prototype.getCompletionsForSupports=function(c,p){var F=c.getDeclarations();if(!F||this.offset<=F.offset){var pe=c.findFirstChildBeforeOffset(this.offset);return pe instanceof Jn?this.getCompletionsForSupportsCondition(pe,p):p}return this.getCompletionForTopLevel(p)},x.prototype.getCompletionsForExtendsReference=function(c,p,F){return F},x.prototype.getCompletionForUriLiteralValue=function(c,p){var F,pe,He;if(c.hasChildren()){var Qe=c.getChild(0);F=Qe.getText(),pe=this.position,He=this.getCompletionRange(Qe)}else{F="",pe=this.position;var Vt=this.textDocument.positionAt(c.offset+"url(".length);He=Sn.create(Vt,Vt)}return this.completionParticipants.forEach(function($t){$t.onCssURILiteralValue&&$t.onCssURILiteralValue({uriValue:F,position:pe,range:He})}),p},x.prototype.getCompletionForImportPath=function(c,p){var F=this;return this.completionParticipants.forEach(function(pe){pe.onCssImportPath&&pe.onCssImportPath({pathValue:c.getText(),position:F.position,range:F.getCompletionRange(c)})}),p},x.prototype.doesSupportMarkdown=function(){var c,p,F;if(!ii(this.supportsMarkdown)){if(!ii(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var pe=(F=(p=(c=this.lsOptions.clientCapabilities.textDocument)===null||c===void 0?void 0:c.completion)===null||p===void 0?void 0:p.completionItem)===null||F===void 0?void 0:F.documentationFormat;this.supportsMarkdown=Array.isArray(pe)&&pe.indexOf(Do.Markdown)!==-1}return this.supportsMarkdown},x}();function $s(x){return!(!x.status||x.status!=="nonstandard"&&x.status!=="obsolete")}var ka=function(){function x(){this.entries={}}return x.prototype.add=function(c){this.entries[c]=!0},x.prototype.getEntries=function(){return Object.keys(this.entries)},x}();function hr(x){return x.replace(/\(\)$/,"($1)")}var Ks=function(){function x(c,p){this.entries=c,this.currentOffset=p}return x.prototype.visitNode=function(c){return(c instanceof Dn||c instanceof ut&&Te(c))&&(this.currentOffset<c.offset||c.end<this.currentOffset)&&this.entries.add(c.getText()),!0},x}();function Ts(x){return x.toLowerCase()in ai||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(x)}var Qo,sr=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),ra=Gt(),Ls=function(){function x(){this.parent=null,this.children=null,this.attributes=null}return x.prototype.findAttribute=function(c){if(this.attributes)for(var p=0,F=this.attributes;p<F.length;p++){var pe=F[p];if(pe.name===c)return pe.value}return null},x.prototype.addChild=function(c){c instanceof x&&(c.parent=this),this.children||(this.children=[]),this.children.push(c)},x.prototype.append=function(c){if(this.attributes){var p=this.attributes[this.attributes.length-1];p.value=p.value+c}},x.prototype.prepend=function(c){if(this.attributes){var p=this.attributes[0];p.value=c+p.value}},x.prototype.findRoot=function(){for(var c=this;c.parent&&!(c.parent instanceof qo);)c=c.parent;return c},x.prototype.removeChild=function(c){if(this.children){var p=this.children.indexOf(c);if(p!==-1)return this.children.splice(p,1),!0}return!1},x.prototype.addAttr=function(c,p){this.attributes||(this.attributes=[]);for(var F=0,pe=this.attributes;F<pe.length;F++){var He=pe[F];if(He.name===c)return void(He.value+=" "+p)}this.attributes.push({name:c,value:p})},x.prototype.clone=function(c){c===void 0&&(c=!0);var p=new x;if(this.attributes){p.attributes=[];for(var F=0,pe=this.attributes;F<pe.length;F++){var He=pe[F];p.addAttr(He.name,He.value)}}if(c&&this.children){p.children=[];for(var Qe=0;Qe<this.children.length;Qe++)p.addChild(this.children[Qe].clone())}return p},x.prototype.cloneWithParent=function(){var c=this.clone(!1);return!this.parent||this.parent instanceof qo||this.parent.cloneWithParent().addChild(c),c},x}(),qo=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return sr(c,x),c}(Ls),Ns=function(x){function c(p){var F=x.call(this)||this;return F.addAttr("name",p),F}return sr(c,x),c}(Ls),ar=function(){function x(c){this.quote=c,this.result=[]}return x.prototype.print=function(c){return this.result=[],c instanceof qo?c.children&&this.doPrint(c.children,0):this.doPrint([c],0),[{language:"html",value:this.result.join(` -`)}]},x.prototype.doPrint=function(c,p){for(var F=0,pe=c;F<pe.length;F++){var He=pe[F];this.doPrintElement(He,p),He.children&&this.doPrint(He.children,p+1)}},x.prototype.writeLine=function(c,p){var F=new Array(c+1).join(" ");this.result.push(F+p)},x.prototype.doPrintElement=function(c,p){var F=c.findAttribute("name");if(c instanceof Ns||F==="\u2026")this.writeLine(p,F);else{var pe=["<"];if(F?pe.push(F):pe.push("element"),c.attributes)for(var He=0,Qe=c.attributes;He<Qe.length;He++){var Vt=Qe[He];if(Vt.name!=="name"){pe.push(" "),pe.push(Vt.name);var $t=Vt.value;$t&&(pe.push("="),pe.push(Qo.ensure($t,this.quote)))}}pe.push(">"),this.writeLine(p,pe.join(""))}},x}();(function(x){function c(p){var F=p.match(/^['"](.*)["']$/);return F?F[1]:p}x.ensure=function(p,F){return F+c(p)+F},x.remove=c})(Qo||(Qo={}));var Zt=function(){this.id=0,this.attr=0,this.tag=0};function i(x,c){for(var p=new Ls,F=0,pe=x.getChildren();F<pe.length;F++){var He=pe[F];switch(He.type){case it.SelectorCombinator:if(c){var Qe=He.getText().split("&");if(Qe.length===1){p.addAttr("name",Qe[0]);break}p=c.cloneWithParent(),Qe[0]&&p.findRoot().prepend(Qe[0]);for(var Vt=1;Vt<Qe.length;Vt++){if(Vt>1){var $t=c.cloneWithParent();p.addChild($t.findRoot()),p=$t}p.append(Qe[Vt])}}break;case it.SelectorPlaceholder:if(He.matches("@at-root"))return p;case it.ElementNameSelector:var ci=He.getText();p.addAttr("name",ci==="*"?"element":a(ci));break;case it.ClassSelector:p.addAttr("class",a(He.getText().substring(1)));break;case it.IdentifierSelector:p.addAttr("id",a(He.getText().substring(1)));break;case it.MixinDeclaration:p.addAttr("class",He.getName());break;case it.PseudoSelector:p.addAttr(a(He.getText()),"");break;case it.AttributeSelector:var Ft=He,Fi=Ft.getIdentifier();if(Fi){var cn=Ft.getValue(),vn=Ft.getOperator(),rn=void 0;if(cn&&vn)switch(a(vn.getText())){case"|=":rn=Qo.remove(a(cn.getText()))+"-\u2026";break;case"^=":rn=Qo.remove(a(cn.getText()))+"\u2026";break;case"$=":rn="\u2026"+Qo.remove(a(cn.getText()));break;case"~=":rn=" \u2026 "+Qo.remove(a(cn.getText()))+" \u2026 ";break;case"*=":rn="\u2026"+Qo.remove(a(cn.getText()))+"\u2026";break;default:rn=Qo.remove(a(cn.getText()))}p.addAttr(a(Fi.getText()),rn)}}}return p}function a(x){var c=new ee;c.setSource(x);var p=c.scanUnquotedString();return p?p.text:x}var _=function(){function x(c){this.cssDataManager=c}return x.prototype.selectorToMarkedString=function(c){var p=function(pe){if(pe.matches("@at-root"))return null;var He=new qo,Qe=[],Vt=pe.getParent();if(Vt instanceof Zi)for(var $t=Vt.getParent();$t&&!K($t);){if($t instanceof Zi){if($t.getSelectors().matches("@at-root"))break;Qe.push($t)}$t=$t.getParent()}for(var ci=new R(He),Ft=Qe.length-1;Ft>=0;Ft--){var Fi=Qe[Ft].getSelectors().getChild(0);Fi&&ci.processSelector(Fi)}return ci.processSelector(pe),He}(c);if(p){var F=new ar('"').print(p);return F.push(this.selectorToSpecificityMarkedString(c)),F}return[]},x.prototype.simpleSelectorToMarkedString=function(c){var p=i(c),F=new ar('"').print(p);return F.push(this.selectorToSpecificityMarkedString(c)),F},x.prototype.isPseudoElementIdentifier=function(c){var p=c.match(/^::?([\w-]+)/);return!!p&&!!this.cssDataManager.getPseudoElement("::"+p[1])},x.prototype.selectorToSpecificityMarkedString=function(c){var p=this,F=function(He){for(var Qe=0,Vt=He.getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];switch($t.type){case it.IdentifierSelector:pe.id++;break;case it.ClassSelector:case it.AttributeSelector:pe.attr++;break;case it.ElementNameSelector:if($t.matches("*"))break;pe.tag++;break;case it.PseudoSelector:var ci=$t.getText();if(p.isPseudoElementIdentifier(ci))pe.tag++;else{if(ci.match(/^:not/i))break;pe.attr++}}$t.getChildren().length>0&&F($t)}},pe=new Zt;return F(c),ra("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",pe.id,pe.attr,pe.tag)},x}(),R=function(){function x(c){this.prev=null,this.element=c}return x.prototype.processSelector=function(c){var p=null;if(!(this.element instanceof qo)&&c.getChildren().some(function(Ft){return Ft.hasChildren()&&Ft.getChild(0).type===it.SelectorCombinator})){var F=this.element.findRoot();F.parent instanceof qo&&(p=this.element,this.element=F.parent,this.element.removeChild(F),this.prev=null)}for(var pe=0,He=c.getChildren();pe<He.length;pe++){var Qe=He[pe];if(Qe instanceof Lt){if(this.prev instanceof Lt){var Vt=new Ns("\u2026");this.element.addChild(Vt),this.element=Vt}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&(this.element.addChild(i(Qe)),this.element.addChild(new Ns("\u22EE")));var $t=i(Qe,p),ci=$t.findRoot();this.element.addChild(ci),this.element=$t}(Qe instanceof Lt||Qe.type===it.SelectorCombinatorParent||Qe.type===it.SelectorCombinatorShadowPiercingDescendant||Qe.type===it.SelectorCombinatorSibling||Qe.type===it.SelectorCombinatorAllSiblings)&&(this.prev=Qe)}},x}();function K(x){switch(x.type){case it.MixinDeclaration:case it.Stylesheet:return!0}return!1}var we=function(){function x(c,p){this.clientCapabilities=c,this.cssDataManager=p,this.selectorPrinting=new _(p)}return x.prototype.doHover=function(c,p,F){function pe(rn){return Sn.create(c.positionAt(rn.offset),c.positionAt(rn.end))}for(var He=wt(F,c.offsetAt(p)),Qe=null,Vt=0;Vt<He.length;Vt++){var $t=He[Vt];if($t instanceof Bi){Qe={contents:this.selectorPrinting.selectorToMarkedString($t),range:pe($t)};break}if($t instanceof Lt){de($t.getText(),"@")||(Qe={contents:this.selectorPrinting.simpleSelectorToMarkedString($t),range:pe($t)});break}if($t instanceof vt){var ci=$t.getFullPropertyName();(Fi=this.cssDataManager.getProperty(ci))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}else if($t instanceof Kt){var Ft=$t.getText();(Fi=this.cssDataManager.getAtDirective(Ft))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}else if($t instanceof pi&&$t.type===it.PseudoSelector){var Fi,cn,vn=$t.getText();(Fi=vn.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(vn):this.cssDataManager.getPseudoClass(vn))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}}return Qe&&(Qe.contents=this.convertContents(Qe.contents)),Qe},x.prototype.convertContents=function(c){return this.doesSupportMarkdown()||typeof c=="string"?c:"kind"in c?{kind:"plaintext",value:c.value}:Array.isArray(c)?c.map(function(p){return typeof p=="string"?p:p.value}):c.value},x.prototype.doesSupportMarkdown=function(){if(!ii(this.supportsMarkdown)){if(!ii(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var c=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=c&&c.contentFormat&&Array.isArray(c.contentFormat)&&c.contentFormat.indexOf(Do.Markdown)!==-1}return this.supportsMarkdown},x}(),Pe=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Ve=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Je=Gt(),at=function(){function x(c){this.fileSystemProvider=c}return x.prototype.findDefinition=function(c,p,F){var pe=new jr(F),He=_i(F,c.offsetAt(p));if(!He)return null;var Qe=pe.findSymbolFromNode(He);return Qe?{uri:c.uri,range:bt(Qe.node,c)}:null},x.prototype.findReferences=function(c,p,F){return this.findDocumentHighlights(c,p,F).map(function(pe){return{uri:c.uri,range:pe.range}})},x.prototype.findDocumentHighlights=function(c,p,F){var pe=[],He=_i(F,c.offsetAt(p));if(!He||He.type===it.Stylesheet||He.type===it.Declarations)return pe;He.type===it.Identifier&&He.parent&&He.parent.type===it.ClassSelector&&(He=He.parent);var Qe=new jr(F),Vt=Qe.findSymbolFromNode(He),$t=He.getText();return F.accept(function(ci){if(Vt){if(Qe.matchesSymbol(ci,Vt))return pe.push({kind:Bt(ci),range:bt(ci,c)}),!1}else He&&He.type===ci.type&&ci.matches($t)&&pe.push({kind:Bt(ci),range:bt(ci,c)});return!0}),pe},x.prototype.isRawStringDocumentLinkNode=function(c){return c.type===it.Import},x.prototype.findDocumentLinks=function(c,p,F){for(var pe=this.findUnresolvedLinks(c,p),He=0;He<pe.length;He++){var Qe=pe[He].target;if(Qe&&!/^\w+:\/\//g.test(Qe)){var Vt=F.resolveReference(Qe,c.uri);Vt&&(pe[He].target=Vt)}}return pe},x.prototype.findDocumentLinks2=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe,He,Qe,Vt,$t,ci,Ft;return Ve(this,function(Fi){switch(Fi.label){case 0:pe=this.findUnresolvedLinks(c,p),He=[],Qe=0,Vt=pe,Fi.label=1;case 1:return Qe<Vt.length?($t=Vt[Qe],!(ci=$t.target)||/^\w+:\/\//g.test(ci)?[3,3]:[4,this.resolveRelativeReference(ci,c.uri,F)]):[3,5];case 2:return(Ft=Fi.sent())!==void 0&&($t.target=Ft,He.push($t)),[3,4];case 3:He.push($t),Fi.label=4;case 4:return Qe++,[3,1];case 5:return[2,He]}})})},x.prototype.findUnresolvedLinks=function(c,p){var F=this,pe=[],He=function(Qe){var Vt=Qe.getText(),$t=bt(Qe,c);$t.start.line===$t.end.line&&$t.start.character===$t.end.character||((de(Vt,"'")||de(Vt,'"'))&&(Vt=Vt.slice(1,-1)),pe.push({target:Vt,range:$t}))};return p.accept(function(Qe){if(Qe.type===it.URILiteral){var Vt=Qe.getChild(0);return Vt&&He(Vt),!1}if(Qe.parent&&F.isRawStringDocumentLinkNode(Qe.parent)){var $t=Qe.getText();return(de($t,"'")||de($t,'"'))&&He(Qe),!1}return!0}),pe},x.prototype.findDocumentSymbols=function(c,p){var F=[];return p.accept(function(pe){var He={name:null,kind:dr.Class,location:null},Qe=pe;if(pe instanceof Bi)return He.name=pe.getText(),(Qe=pe.findAParent(it.Ruleset,it.ExtendsReference))&&(He.location=En.create(c.uri,bt(Qe,c)),F.push(He)),!1;if(pe instanceof Fe)He.name=pe.getName(),He.kind=dr.Variable;else if(pe instanceof jt)He.name=pe.getName(),He.kind=dr.Method;else if(pe instanceof Ri)He.name=pe.getName(),He.kind=dr.Function;else if(pe instanceof kt)He.name=Je("literal.keyframes","@keyframes {0}",pe.getName());else if(pe instanceof Hi)He.name=Je("literal.fontface","@font-face");else if(pe instanceof bn){var Vt=pe.getChild(0);Vt instanceof Nn&&(He.name="@media "+Vt.getText(),He.kind=dr.Module)}return He.name&&(He.location=En.create(c.uri,bt(Qe,c)),F.push(He)),!0}),F},x.prototype.findDocumentColors=function(c,p){var F=[];return p.accept(function(pe){var He=function(Qe,Vt){var $t=Re(Qe);if($t){var ci=bt(Qe,Vt);return{color:$t,range:ci}}return null}(pe,c);return He&&F.push(He),!0}),F},x.prototype.getColorPresentations=function(c,p,F,pe){var He,Qe=[],Vt=Math.round(255*F.red),$t=Math.round(255*F.green),ci=Math.round(255*F.blue);He=F.alpha===1?"rgb("+Vt+", "+$t+", "+ci+")":"rgba("+Vt+", "+$t+", "+ci+", "+F.alpha+")",Qe.push({label:He,textEdit:Tn.replace(pe,He)}),He=F.alpha===1?"#"+Pt(Vt)+Pt($t)+Pt(ci):"#"+Pt(Vt)+Pt($t)+Pt(ci)+Pt(Math.round(255*F.alpha)),Qe.push({label:He,textEdit:Tn.replace(pe,He)});var Ft=function(Fi){var cn=Fi.red,vn=Fi.green,rn=Fi.blue,Pn=Fi.alpha,jn=Math.max(cn,vn,rn),Vn=Math.min(cn,vn,rn),Ln=0,mo=0,yo=(Vn+jn)/2,fo=jn-Vn;if(fo>0){switch(mo=Math.min(yo<=.5?fo/(2*yo):fo/(2-2*yo),1),jn){case cn:Ln=(vn-rn)/fo+(vn<rn?6:0);break;case vn:Ln=(rn-cn)/fo+2;break;case rn:Ln=(cn-vn)/fo+4}Ln*=60,Ln=Math.round(Ln)}return{h:Ln,s:mo,l:yo,a:Pn}}(F);return He=Ft.a===1?"hsl("+Ft.h+", "+Math.round(100*Ft.s)+"%, "+Math.round(100*Ft.l)+"%)":"hsla("+Ft.h+", "+Math.round(100*Ft.s)+"%, "+Math.round(100*Ft.l)+"%, "+Ft.a+")",Qe.push({label:He,textEdit:Tn.replace(pe,He)}),Qe},x.prototype.doRename=function(c,p,F,pe){var He,Qe=this.findDocumentHighlights(c,p,pe).map(function(Vt){return Tn.replace(Vt.range,F)});return{changes:(He={},He[c.uri]=Qe,He)}},x.prototype.resolveRelativeReference=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe,He,Qe,Vt,$t;return Ve(this,function(ci){switch(ci.label){case 0:return c[0]==="~"&&c[1]!=="/"&&this.fileSystemProvider?(c=c.substring(1),de(p,"file://")?(pe=function(Ft){return Ft[0]==="@"?Ft.substring(0,Ft.indexOf("/",Ft.indexOf("/")+1)):Ft.substring(0,Ft.indexOf("/"))}(c),He=F.resolveReference("/",p),Qe=$r(p),[4,this.resolvePathToModule(pe,Qe,He)]):[3,2]):[3,3];case 1:if(Vt=ci.sent())return $t=c.substring(pe.length+1),[2,Es(Vt,$t)];ci.label=2;case 2:case 3:return[2,F.resolveReference(c,p)]}})})},x.prototype.resolvePathToModule=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe;return Ve(this,function(He){switch(He.label){case 0:return pe=Es(p,"node_modules",c,"package.json"),[4,this.fileExists(pe)];case 1:return He.sent()?[2,$r(pe)]:F&&p.startsWith(F)&&p.length!==F.length?[2,this.resolvePathToModule(c,$r(p),F)]:[2,void 0]}})})},x.prototype.fileExists=function(c){return Pe(this,void 0,void 0,function(){var p;return Ve(this,function(F){switch(F.label){case 0:if(!this.fileSystemProvider)return[2,!1];F.label=1;case 1:return F.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(c)];case 2:return(p=F.sent()).type===qr.Unknown&&p.size===-1?[2,!1]:[2,!0];case 3:return F.sent(),[2,!1];case 4:return[2]}})})},x}();function bt(x,c){return Sn.create(c.positionAt(x.offset),c.positionAt(x.end))}function Bt(x){if(x.type===it.Selector||x instanceof Wt&&x.parent&&x.parent instanceof Ue&&x.isCustomProperty)return Ur.Write;if(x.parent)switch(x.parent.type){case it.FunctionDeclaration:case it.MixinDeclaration:case it.Keyframe:case it.VariableDeclaration:case it.FunctionParameter:return Ur.Write}return Ur.Read}function Pt(x){var c=x.toString(16);return c.length!==2?"0"+c:c}var ni=Gt(),Ci=Ni.Warning,Vi=Ni.Error,Mi=Ni.Ignore,zi=function(x,c,p){this.id=x,this.message=c,this.defaultValue=p},Yi=function(x,c,p){this.id=x,this.message=c,this.defaultValue=p},Gi={AllVendorPrefixes:new zi("compatibleVendorPrefixes",ni("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Mi),IncludeStandardPropertyWhenUsingVendorPrefix:new zi("vendorPrefix",ni("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),Ci),DuplicateDeclarations:new zi("duplicateProperties",ni("rule.duplicateDeclarations","Do not use duplicate style definitions"),Mi),EmptyRuleSet:new zi("emptyRules",ni("rule.emptyRuleSets","Do not use empty rulesets"),Ci),ImportStatemement:new zi("importStatement",ni("rule.importDirective","Import statements do not load in parallel"),Mi),BewareOfBoxModelSize:new zi("boxModel",ni("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Mi),UniversalSelector:new zi("universalSelector",ni("rule.universalSelector","The universal selector (*) is known to be slow"),Mi),ZeroWithUnit:new zi("zeroUnits",ni("rule.zeroWidthUnit","No unit for zero needed"),Mi),RequiredPropertiesForFontFace:new zi("fontFaceProperties",ni("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),Ci),HexColorLength:new zi("hexColorLength",ni("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Vi),ArgsInColorFunction:new zi("argumentsInColorFunction",ni("rule.colorFunction","Invalid number of parameters"),Vi),UnknownProperty:new zi("unknownProperties",ni("rule.unknownProperty","Unknown property."),Ci),UnknownAtRules:new zi("unknownAtRules",ni("rule.unknownAtRules","Unknown at-rule."),Ci),IEStarHack:new zi("ieHack",ni("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Mi),UnknownVendorSpecificProperty:new zi("unknownVendorSpecificProperties",ni("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Mi),PropertyIgnoredDueToDisplay:new zi("propertyIgnoredDueToDisplay",ni("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),Ci),AvoidImportant:new zi("important",ni("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Mi),AvoidFloat:new zi("float",ni("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Mi),AvoidIdSelector:new zi("idSelector",ni("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Mi)},wn={ValidProperties:new Yi("validProperties",ni("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},nn=function(){function x(c){c===void 0&&(c={}),this.conf=c}return x.prototype.getRule=function(c){if(this.conf.hasOwnProperty(c.id)){var p=function(F){switch(F){case"ignore":return Ni.Ignore;case"warning":return Ni.Warning;case"error":return Ni.Error}return null}(this.conf[c.id]);if(p)return p}return c.defaultValue},x.prototype.getSetting=function(c){return this.conf[c.id]},x}(),Wn=Gt(),An=function(){function x(c){this.cssDataManager=c}return x.prototype.doCodeActions=function(c,p,F,pe){return this.doCodeActions2(c,p,F,pe).map(function(He){var Qe=He.edit&&He.edit.documentChanges&&He.edit.documentChanges[0];return po.create(He.title,"_css.applyCodeAction",c.uri,c.version,Qe&&Qe.edits)})},x.prototype.doCodeActions2=function(c,p,F,pe){var He=[];if(F.diagnostics)for(var Qe=0,Vt=F.diagnostics;Qe<Vt.length;Qe++){var $t=Vt[Qe];this.appendFixesForMarker(c,pe,$t,He)}return He},x.prototype.getFixesForUnknownProperty=function(c,p,F,pe){var He=p.getName(),Qe=[];this.cssDataManager.getProperties().forEach(function(jn){var Vn=function(Ln,mo,yo){yo===void 0&&(yo=4);var fo=Math.abs(Ln.length-mo.length);if(fo>yo)return 0;var To,Co,Wo=[],Sr=[];for(To=0;To<mo.length+1;++To)Sr.push(0);for(To=0;To<Ln.length+1;++To)Wo.push(Sr);for(To=1;To<Ln.length+1;++To)for(Co=1;Co<mo.length+1;++Co)Ln[To-1]===mo[Co-1]?Wo[To][Co]=Wo[To-1][Co-1]+1:Wo[To][Co]=Math.max(Wo[To-1][Co],Wo[To][Co-1]);return Wo[Ln.length][mo.length]-Math.sqrt(fo)}(He,jn.name);Vn>=He.length/2&&Qe.push({property:jn.name,score:Vn})}),Qe.sort(function(jn,Vn){return Vn.score-jn.score||jn.property.localeCompare(Vn.property)});for(var Vt=3,$t=0,ci=Qe;$t<ci.length;$t++){var Ft=ci[$t].property,Fi=Wn("css.codeaction.rename","Rename to '{0}'",Ft),cn=Tn.replace(F.range,Ft),vn=Cn.create(c.uri,c.version),rn={documentChanges:[No.create(vn,[cn])]},Pn=Hr.create(Fi,rn,zo.QuickFix);if(Pn.diagnostics=[F],pe.push(Pn),--Vt<=0)return}},x.prototype.appendFixesForMarker=function(c,p,F,pe){if(F.code===Gi.UnknownProperty.id)for(var He=c.offsetAt(F.range.start),Qe=c.offsetAt(F.range.end),Vt=wt(p,He),$t=Vt.length-1;$t>=0;$t--){var ci=Vt[$t];if(ci instanceof vt){var Ft=ci.getProperty();if(Ft&&Ft.offset===He&&Ft.end===Qe)return void this.getFixesForUnknownProperty(c,Ft,F,pe)}}},x}(),qn=function(x){this.fullPropertyName=x.getFullPropertyName().toLowerCase(),this.node=x};function ro(x,c,p,F){var pe=x[c];pe.value=p,p&&(mn(pe.properties,F)||pe.properties.push(F))}function Un(x,c,p,F){c==="top"||c==="right"||c==="bottom"||c==="left"?ro(x,c,p,F):function(pe,He,Qe){ro(pe,"top",He,Qe),ro(pe,"right",He,Qe),ro(pe,"bottom",He,Qe),ro(pe,"left",He,Qe)}(x,p,F)}function Lo(x,c,p){switch(c.length){case 1:Un(x,void 0,c[0],p);break;case 2:Un(x,"top",c[0],p),Un(x,"bottom",c[0],p),Un(x,"right",c[1],p),Un(x,"left",c[1],p);break;case 3:Un(x,"top",c[0],p),Un(x,"right",c[1],p),Un(x,"left",c[1],p),Un(x,"bottom",c[2],p);break;case 4:Un(x,"top",c[0],p),Un(x,"right",c[1],p),Un(x,"bottom",c[2],p),Un(x,"left",c[3],p)}}function Ao(x,c){for(var p=0,F=c;p<F.length;p++){var pe=F[p];if(x.matches(pe))return!0}return!1}function Bo(x,c){return c===void 0&&(c=!0),(!c||!Ao(x,["initial","unset"]))&&parseFloat(x.getText())!==0}function jo(x,c){return c===void 0&&(c=!0),x.map(function(p){return Bo(p,c)})}function $o(x,c){return c===void 0&&(c=!0),!Ao(x,["none","hidden"])&&(!c||!Ao(x,["initial","unset"]))}function Po(x,c){return c===void 0&&(c=!0),x.map(function(p){return $o(p,c)})}function Rr(x){var c=x.getChildren();if(c.length===1)return Bo(pe=c[0])&&$o(pe);for(var p=0,F=c;p<F.length;p++){var pe;if(!Bo(pe=F[p],!1)||!$o(pe,!1))return!1}return!0}var Fo=Gt(),Gr=function(){function x(){this.data={}}return x.prototype.add=function(c,p,F){var pe=this.data[c];pe||(pe={nodes:[],names:[]},this.data[c]=pe),pe.names.push(p),F&&pe.nodes.push(F)},x}(),Is=function(){function x(c,p,F){var pe=this;this.cssDataManager=F,this.warnings=[],this.settings=p,this.documentText=c.getText(),this.keyframes=new Gr,this.validProperties={};var He=p.getSetting(wn.ValidProperties);Array.isArray(He)&&He.forEach(function(Qe){if(typeof Qe=="string"){var Vt=Qe.trim().toLowerCase();Vt.length&&(pe.validProperties[Vt]=!0)}})}return x.entries=function(c,p,F,pe,He){var Qe=new x(p,F,pe);return c.acceptVisitor(Qe),Qe.completeValidations(),Qe.getEntries(He)},x.prototype.isValidPropertyDeclaration=function(c){var p=c.fullPropertyName;return this.validProperties[p]},x.prototype.fetch=function(c,p){for(var F=[],pe=0,He=c;pe<He.length;pe++){var Qe=He[pe];Qe.fullPropertyName===p&&F.push(Qe)}return F},x.prototype.fetchWithValue=function(c,p,F){for(var pe=[],He=0,Qe=c;He<Qe.length;He++){var Vt=Qe[He];if(Vt.fullPropertyName===p){var $t=Vt.node.getValue();$t&&this.findValueInExpression($t,F)&&pe.push(Vt)}}return pe},x.prototype.findValueInExpression=function(c,p){var F=!1;return c.accept(function(pe){return pe.type===it.Identifier&&pe.matches(p)&&(F=!0),!F}),F},x.prototype.getEntries=function(c){return c===void 0&&(c=Ni.Warning|Ni.Error),this.warnings.filter(function(p){return(p.getLevel()&c)!=0})},x.prototype.addEntry=function(c,p,F){var pe=new ae(c,p,this.settings.getRule(p),F);this.warnings.push(pe)},x.prototype.getMissingNames=function(c,p){for(var F=c.slice(0),pe=0;pe<p.length;pe++){var He=F.indexOf(p[pe]);He!==-1&&(F[He]=null)}var Qe=null;for(pe=0;pe<F.length;pe++){var Vt=F[pe];Vt&&(Qe=Qe===null?Fo("namelist.single","'{0}'",Vt):Fo("namelist.concatenated","{0}, '{1}'",Qe,Vt))}return Qe},x.prototype.visitNode=function(c){switch(c.type){case it.UnknownAtRule:return this.visitUnknownAtRule(c);case it.Keyframe:return this.visitKeyframe(c);case it.FontFace:return this.visitFontFace(c);case it.Ruleset:return this.visitRuleSet(c);case it.SimpleSelector:return this.visitSimpleSelector(c);case it.Function:return this.visitFunction(c);case it.NumericValue:return this.visitNumericValue(c);case it.Import:return this.visitImport(c);case it.HexColorValue:return this.visitHexColorValue(c);case it.Prio:return this.visitPrio(c)}return!0},x.prototype.completeValidations=function(){this.validateKeyframes()},x.prototype.visitUnknownAtRule=function(c){var p=c.getChild(0);return!!p&&!this.cssDataManager.getAtDirective(p.getText())&&(this.addEntry(p,Gi.UnknownAtRules,"Unknown at rule "+p.getText()),!0)},x.prototype.visitKeyframe=function(c){var p=c.getKeyword();if(!p)return!1;var F=p.getText();return this.keyframes.add(c.getName(),F,F!=="@keyframes"?p:null),!0},x.prototype.validateKeyframes=function(){var c=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(var p in this.keyframes.data){var F=this.keyframes.data[p].names,pe=F.indexOf("@keyframes")===-1;if(pe||F.length!==1){var He=this.getMissingNames(c,F);if(He||pe)for(var Qe=0,Vt=this.keyframes.data[p].nodes;Qe<Vt.length;Qe++){var $t=Vt[Qe];if(pe){var ci=Fo("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes.");this.addEntry($t,Gi.IncludeStandardPropertyWhenUsingVendorPrefix,ci)}He&&(ci=Fo("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",He),this.addEntry($t,Gi.AllVendorPrefixes,ci))}}}return!0},x.prototype.visitSimpleSelector=function(c){var p=this.documentText.charAt(c.offset);return c.length===1&&p==="*"&&this.addEntry(c,Gi.UniversalSelector),p==="#"&&this.addEntry(c,Gi.AvoidIdSelector),!0},x.prototype.visitImport=function(c){return this.addEntry(c,Gi.ImportStatemement),!0},x.prototype.visitRuleSet=function(c){var p=c.getDeclarations();if(!p)return!1;p.hasChildren()||this.addEntry(c.getSelectors(),Gi.EmptyRuleSet);for(var F=[],pe=0,He=p.getChildren();pe<He.length;pe++)(Co=He[pe])instanceof vt&&F.push(new qn(Co));var Qe=function(el){for(var kr={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},Vo=0,Ll=el;Vo<Ll.length;Vo++){var Fr=Ll[Vo],vs=Fr.node.value;if(vs!==void 0)switch(Fr.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":kr.width=Fr;break;case"height":kr.height=Fr;break;default:var Ps=Fr.fullPropertyName.split("-");switch(Ps[0]){case"border":switch(Ps[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(Ps[2]){case void 0:Un(kr,Ps[1],Rr(vs),Fr);break;case"width":Un(kr,Ps[1],Bo(vs,!1),Fr);break;case"style":Un(kr,Ps[1],$o(vs,!0),Fr)}break;case"width":Lo(kr,jo(vs.getChildren(),!1),Fr);break;case"style":Lo(kr,Po(vs.getChildren(),!0),Fr)}break;case"padding":Ps.length===1?Lo(kr,jo(vs.getChildren(),!0),Fr):Un(kr,Ps[1],Bo(vs,!0),Fr)}}}return kr}(F);if(Qe.width){var Vt=[];if(Qe.right.value&&(Vt=sn(Vt,Qe.right.properties)),Qe.left.value&&(Vt=sn(Vt,Qe.left.properties)),Vt.length!==0){for(var $t=0,ci=Vt;$t<ci.length;$t++){var Ft=ci[$t];this.addEntry(Ft.node,Gi.BewareOfBoxModelSize)}this.addEntry(Qe.width.node,Gi.BewareOfBoxModelSize)}}if(Qe.height&&(Vt=[],Qe.top.value&&(Vt=sn(Vt,Qe.top.properties)),Qe.bottom.value&&(Vt=sn(Vt,Qe.bottom.properties)),Vt.length!==0)){for(var Fi=0,cn=Vt;Fi<cn.length;Fi++)Ft=cn[Fi],this.addEntry(Ft.node,Gi.BewareOfBoxModelSize);this.addEntry(Qe.height.node,Gi.BewareOfBoxModelSize)}var vn=this.fetchWithValue(F,"display","inline");if(vn.length>0)for(var rn=0,Pn=["width","height","margin-top","margin-bottom","float"];rn<Pn.length;rn++)for(var jn=Pn[rn],Vn=this.fetch(F,jn),Ln=0;Ln<Vn.length;Ln++){var mo=Vn[Ln].node,yo=mo.getValue();(jn!=="float"||yo&&!yo.matches("none"))&&this.addEntry(mo,Gi.PropertyIgnoredDueToDisplay,Fo("rule.propertyIgnoredDueToDisplayInline","Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect."))}if((vn=this.fetchWithValue(F,"display","inline-block")).length>0)for(Vn=this.fetch(F,"float"),Ln=0;Ln<Vn.length;Ln++){var fo=Vn[Ln].node;(yo=fo.getValue())&&!yo.matches("none")&&this.addEntry(fo,Gi.PropertyIgnoredDueToDisplay,Fo("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if((vn=this.fetchWithValue(F,"display","block")).length>0)for(Vn=this.fetch(F,"vertical-align"),Ln=0;Ln<Vn.length;Ln++)this.addEntry(Vn[Ln].node,Gi.PropertyIgnoredDueToDisplay,Fo("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));var To=this.fetch(F,"float");for(Ln=0;Ln<To.length;Ln++){var Co=To[Ln];this.isValidPropertyDeclaration(Co)||this.addEntry(Co.node,Gi.AvoidFloat)}for(var Wo=0;Wo<F.length;Wo++)if((Co=F[Wo]).fullPropertyName!=="background"&&!this.validProperties[Co.fullPropertyName]&&(yo=Co.node.getValue())&&this.documentText.charAt(yo.offset)!=="-"){var Sr=this.fetch(F,Co.fullPropertyName);if(Sr.length>1)for(var _s=0;_s<Sr.length;_s++){var Ra=Sr[_s].node.getValue();Ra&&this.documentText.charAt(Ra.offset)!=="-"&&Sr[_s]!==Co&&this.addEntry(Co.node,Gi.DuplicateDeclarations)}}if(!c.getSelectors().matches(":export")){for(var rs=new Gr,tr=!1,da=0,ec=F;da<ec.length;da++){var ta=(Co=ec[da]).node;if(this.isCSSDeclaration(ta)){var Pr=Co.fullPropertyName,Za=Pr.charAt(0);if(Za==="-"){if(Pr.charAt(1)!=="-"){this.cssDataManager.isKnownProperty(Pr)||this.validProperties[Pr]||this.addEntry(ta.getProperty(),Gi.UnknownVendorSpecificProperty);var Ma=ta.getNonPrefixedPropertyName();rs.add(Ma,Pr,ta.getProperty())}}else{var ha=Pr;Za!=="*"&&Za!=="_"||(this.addEntry(ta.getProperty(),Gi.IEStarHack),Pr=Pr.substr(1)),this.cssDataManager.isKnownProperty(ha)||this.cssDataManager.isKnownProperty(Pr)||this.validProperties[Pr]||this.addEntry(ta.getProperty(),Gi.UnknownProperty,Fo("property.unknownproperty.detailed","Unknown property: '{0}'",ta.getFullPropertyName())),rs.add(Pr,Pr,null)}}else tr=!0}if(!tr)for(var ua in rs.data){var kl=rs.data[ua],Ms=kl.names,Pa=this.cssDataManager.isStandardProperty(ua)&&Ms.indexOf(ua)===-1;if(Pa||Ms.length!==1){for(var Xa=[],tc=(Wo=0,x.prefixes.length);Wo<tc;Wo++){var El=x.prefixes[Wo];this.cssDataManager.isStandardProperty(El+ua)&&Xa.push(El+ua)}var Qa=this.getMissingNames(Xa,Ms);if(Qa||Pa)for(var Jo=0,Ja=kl.nodes;Jo<Ja.length;Jo++){var pa=Ja[Jo];if(Pa){var Tl=Fo("property.standard.missing","Also define the standard property '{0}' for compatibility",ua);this.addEntry(pa,Gi.IncludeStandardPropertyWhenUsingVendorPrefix,Tl)}Qa&&(Tl=Fo("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",Qa),this.addEntry(pa,Gi.AllVendorPrefixes,Tl))}}}}return!0},x.prototype.visitPrio=function(c){return this.addEntry(c,Gi.AvoidImportant),!0},x.prototype.visitNumericValue=function(c){var p=c.findParent(it.Function);if(p&&p.getName()==="calc")return!0;var F=c.findParent(it.Declaration);if(F&&F.getValue()){var pe=c.getValue();if(!pe.unit||ri.length.indexOf(pe.unit.toLowerCase())===-1)return!0;parseFloat(pe.value)===0&&pe.unit&&!this.validProperties[F.getFullPropertyName()]&&this.addEntry(c,Gi.ZeroWithUnit)}return!0},x.prototype.visitFontFace=function(c){var p=c.getDeclarations();if(!p)return!1;for(var F=!1,pe=!1,He=!1,Qe=0,Vt=p.getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];if(this.isCSSDeclaration($t)){var ci=$t.getProperty().getName().toLowerCase();ci==="src"&&(F=!0),ci==="font-family"&&(pe=!0)}else He=!0}return He||F&&pe||this.addEntry(c,Gi.RequiredPropertiesForFontFace),!0},x.prototype.isCSSDeclaration=function(c){if(c instanceof vt){if(!c.getValue())return!1;var p=c.getProperty();if(!p)return!1;var F=p.getIdentifier();return!(!F||F.containsInterpolation())}return!1},x.prototype.visitHexColorValue=function(c){var p=c.length;return p!==9&&p!==7&&p!==5&&p!==4&&this.addEntry(c,Gi.HexColorLength),!1},x.prototype.visitFunction=function(c){var p=c.getName().toLowerCase(),F=-1,pe=0;switch(p){case"rgb(":case"hsl(":F=3;break;case"rgba(":case"hsla(":F=4}return F!==-1&&(c.getArguments().accept(function(He){return!(He instanceof on)||(pe+=1,!1)}),pe!==F&&this.addEntry(c,Gi.ArgsInColorFunction)),!0},x.prefixes=["-ms-","-moz-","-o-","-webkit-"],x}(),Gs=function(){function x(c){this.cssDataManager=c}return x.prototype.configure=function(c){this.settings=c},x.prototype.doValidation=function(c,p,F){if(F===void 0&&(F=this.settings),F&&F.validate===!1)return[];var pe=[];pe.push.apply(pe,Ge.entries(p)),pe.push.apply(pe,Is.entries(p,c,new nn(F&&F.lint),this.cssDataManager));var He=[];for(var Qe in Gi)He.push(Gi[Qe].id);return pe.filter(function(Vt){return Vt.getLevel()!==Ni.Ignore}).map(function(Vt){var $t=Sn.create(c.positionAt(Vt.getOffset()),c.positionAt(Vt.getOffset()+Vt.getLength())),ci=c.languageId;return{code:Vt.getRule().id,source:ci,message:Vt.getMessage(),severity:Vt.getLevel()===Ni.Warning?vo.Warning:vo.Error,range:$t}})},x}(),sa=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),gl="/".charCodeAt(0),Kl=` -`.charCodeAt(0),Mr="\r".charCodeAt(0),Os="\f".charCodeAt(0),Ua="$".charCodeAt(0),ur="#".charCodeAt(0),Ea="{".charCodeAt(0),fs="=".charCodeAt(0),fl="!".charCodeAt(0),Ta="<".charCodeAt(0),Yr=">".charCodeAt(0),bl=".".charCodeAt(0),Cr=("@".charCodeAt(0),h.CustomToken),_l=Cr++,so=Cr++,to=(Cr++,Cr++),aa=Cr++,Gl=Cr++,Yl=Cr++,bs=Cr++,Ha=(Cr++,function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return sa(c,x),c.prototype.scanNext=function(p){if(this.stream.advanceIfChar(Ua)){var F=["$"];if(this.ident(F))return this.finishToken(p,_l,F.join(""));this.stream.goBackTo(p)}return this.stream.advanceIfChars([ur,Ea])?this.finishToken(p,so):this.stream.advanceIfChars([fs,fs])?this.finishToken(p,to):this.stream.advanceIfChars([fl,fs])?this.finishToken(p,aa):this.stream.advanceIfChar(Ta)?this.stream.advanceIfChar(fs)?this.finishToken(p,Yl):this.finishToken(p,h.Delim):this.stream.advanceIfChar(Yr)?this.stream.advanceIfChar(fs)?this.finishToken(p,Gl):this.finishToken(p,h.Delim):this.stream.advanceIfChars([bl,bl,bl])?this.finishToken(p,bs):x.prototype.scanNext.call(this,p)},c.prototype.comment=function(){return!!x.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([gl,gl]))&&(this.stream.advanceWhileChar(function(p){switch(p){case Kl:case Mr:case Os:return!1;default:return!0}}),!0)},c}(ee)),La=Gt(),Na=function(x,c){this.id=x,this.message=c},la={FromExpected:new Na("scss-fromexpected",La("expected.from","'from' expected")),ThroughOrToExpected:new Na("scss-throughexpected",La("expected.through","'through' or 'to' expected")),InExpected:new Na("scss-fromexpected",La("expected.in","'in' expected"))},vl=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),xr=function(x){function c(){return x.call(this,new Ha)||this}return vl(c,x),c.prototype._parseStylesheetStatement=function(p){return p===void 0&&(p=!1),this.peek(h.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(p)||x.prototype._parseStylesheetAtStatement.call(this,p):this._parseRuleset(!0)||this._parseVariableDeclaration()},c.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var p=this.create(si);if(this.consumeToken(),!p.addChild(this._parseURILiteral())&&!p.addChild(this._parseStringLiteral()))return this.finish(p,le.URIOrStringExpected);for(;this.accept(h.Comma);)if(!p.addChild(this._parseURILiteral())&&!p.addChild(this._parseStringLiteral()))return this.finish(p,le.URIOrStringExpected);return this.peek(h.SemiColon)||this.peek(h.EOF)||p.setMedialist(this._parseMediaQueryList()),this.finish(p)},c.prototype._parseVariableDeclaration=function(p){if(p===void 0&&(p=[]),!this.peek(_l))return null;var F=this.create(Fe);if(!F.setVariable(this._parseVariable()))return null;if(!this.accept(h.Colon))return this.finish(F,le.ColonExpected);if(this.prevToken&&(F.colonPosition=this.prevToken.offset),!F.setValue(this._parseExpr()))return this.finish(F,le.VariableValueExpected,[],p);for(;this.peek(h.Exclamation);)if(!F.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(h.Ident,/^(default|global)$/))return this.finish(F,le.UnknownKeyword);this.consumeToken()}return this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseMediaContentStart=function(){return this._parseInterpolation()},c.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},c.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},c.prototype._parseVariable=function(){if(!this.peek(_l))return null;var p=this.create(ot);return this.consumeToken(),p},c.prototype._parseModuleMember=function(){var p=this.mark(),F=this.create(X);return F.setIdentifier(this._parseIdent([At.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(p),null):F.addChild(this._parseVariable()||this._parseFunction())?F:this.finish(F,le.IdentifierOrVariableExpected):null},c.prototype._parseIdent=function(p){var F=this;if(!this.peek(h.Ident)&&!this.peek(so)&&!this.peekDelim("-"))return null;var pe=this.create(Wt);pe.referenceTypes=p,pe.isCustomProperty=this.peekRegExp(h.Ident,/^--/);for(var He,Qe=!1;(this.accept(h.Ident)||pe.addChild((He=void 0,He=F.mark(),F.acceptDelim("-")&&(F.hasWhitespace()||F.acceptDelim("-"),F.hasWhitespace())?(F.restoreAtMark(He),null):F._parseInterpolation()))||Qe&&this.acceptRegexp(/[\w-]/))&&(Qe=!0,!this.hasWhitespace()););return Qe?this.finish(pe):null},c.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||x.prototype._parseTermExpression.call(this)},c.prototype._parseInterpolation=function(){if(this.peek(so)){var p=this.create(Xe);return this.consumeToken(),p.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.RightCurlyExpected):this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.ExpressionExpected)}return null},c.prototype._parseOperator=function(){if(this.peek(to)||this.peek(aa)||this.peek(Gl)||this.peek(Yl)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var p=this.createNode(it.Operator);return this.consumeToken(),this.finish(p)}return x.prototype._parseOperator.call(this)},c.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var p=this.create(pi);return this.consumeToken(),this.finish(p)}return x.prototype._parseUnaryOperator.call(this)},c.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||x.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||x.prototype._parseRuleSetDeclaration.call(this)},c.prototype._parseDeclaration=function(p){var F=this.create(vt);if(!F.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(F,le.ColonExpected,[h.Colon],p);this.prevToken&&(F.colonPosition=this.prevToken.offset);var pe=!1;if(F.setValue(this._parseExpr())&&(pe=!0,F.addChild(this._parsePrio())),this.peek(h.CurlyL))F.setNestedProperties(this._parseNestedProperties());else if(!pe)return this.finish(F,le.PropertyValueExpected);return this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseNestedProperties=function(){var p=this.create(yi);return this._parseBody(p,this._parseDeclaration.bind(this))},c.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var p=this.create(Mt);if(this.consumeToken(),!p.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(p,le.SelectorExpected);for(;this.accept(h.Comma);)p.getSelectors().addChild(this._parseSimpleSelector());return this.accept(h.Exclamation)&&!this.acceptIdent("optional")?this.finish(p,le.UnknownKeyword):this.finish(p)}return null},c.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||x.prototype._parseSimpleSelectorBody.call(this)},c.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var p=this.createNode(it.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||p.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(p)}return null},c.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var p=this.createNode(it.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(p)}return this.peekKeyword("@at-root")?(p=this.createNode(it.SelectorPlaceholder),this.consumeToken(),this.finish(p)):null},c.prototype._parseElementName=function(){var p=this.mark(),F=x.prototype._parseElementName.call(this);return F&&!this.hasWhitespace()&&this.peek(h.ParenthesisL)?(this.restoreAtMark(p),null):F},c.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||x.prototype._tryParsePseudoIdentifier.call(this)},c.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var p=this.createNode(it.Debug);return this.consumeToken(),p.addChild(this._parseExpr()),this.finish(p)},c.prototype._parseControlStatement=function(p){return p===void 0&&(p=this._parseRuleSetDeclaration.bind(this)),this.peek(h.AtKeyword)?this._parseIfStatement(p)||this._parseForStatement(p)||this._parseEachStatement(p)||this._parseWhileStatement(p):null},c.prototype._parseIfStatement=function(p){return this.peekKeyword("@if")?this._internalParseIfStatement(p):null},c.prototype._internalParseIfStatement=function(p){var F=this.create(_t);if(this.consumeToken(),!F.setExpression(this._parseExpr(!0)))return this.finish(F,le.ExpressionExpected);if(this._parseBody(F,p),this.acceptKeyword("@else")){if(this.peekIdent("if"))F.setElseClause(this._internalParseIfStatement(p));else if(this.peek(h.CurlyL)){var pe=this.create(ki);this._parseBody(pe,p),F.setElseClause(pe)}}return this.finish(F)},c.prototype._parseForStatement=function(p){if(!this.peekKeyword("@for"))return null;var F=this.create(oi);return this.consumeToken(),F.setVariable(this._parseVariable())?this.acceptIdent("from")?F.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?F.addChild(this._parseBinaryExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.ThroughOrToExpected,[h.CurlyR]):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.FromExpected,[h.CurlyR]):this.finish(F,le.VariableNameExpected,[h.CurlyR])},c.prototype._parseEachStatement=function(p){if(!this.peekKeyword("@each"))return null;var F=this.create(li);this.consumeToken();var pe=F.getVariables();if(!pe.addChild(this._parseVariable()))return this.finish(F,le.VariableNameExpected,[h.CurlyR]);for(;this.accept(h.Comma);)if(!pe.addChild(this._parseVariable()))return this.finish(F,le.VariableNameExpected,[h.CurlyR]);return this.finish(pe),this.acceptIdent("in")?F.addChild(this._parseExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.InExpected,[h.CurlyR])},c.prototype._parseWhileStatement=function(p){if(!this.peekKeyword("@while"))return null;var F=this.create(gi);return this.consumeToken(),F.addChild(this._parseBinaryExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR])},c.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},c.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var p=this.create(Ri);if(this.consumeToken(),!p.setIdentifier(this._parseIdent([At.Function])))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.CurlyR]);if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}return this.accept(h.ParenthesisR)?this._parseBody(p,this._parseFunctionBodyDeclaration.bind(this)):this.finish(p,le.RightParenthesisExpected,[h.CurlyR])},c.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var p=this.createNode(it.ReturnStatement);return this.consumeToken(),p.addChild(this._parseExpr())?this.finish(p):this.finish(p,le.ExpressionExpected)},c.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var p=this.create(jt);if(this.consumeToken(),!p.setIdentifier(this._parseIdent([At.Mixin])))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(this.accept(h.ParenthesisL)){if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.CurlyR])}return this._parseBody(p,this._parseRuleSetDeclaration.bind(this))},c.prototype._parseParameterDeclaration=function(){var p=this.create(ze);return p.setIdentifier(this._parseVariable())?(this.accept(bs),this.accept(h.Colon)&&!p.setDefaultValue(this._parseExpr(!0))?this.finish(p,le.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):this.finish(p)):null},c.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var p=this.create(Ot);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(p.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getArguments().addChild(this._parseFunctionArgument()))return this.finish(p,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}return this.finish(p)},c.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var p=this.create(Ht);this.consumeToken();var F=this._parseIdent([At.Mixin]);if(!p.setIdentifier(F))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var pe=this._parseIdent([At.Mixin]);if(!pe)return this.finish(p,le.IdentifierExpected,[h.CurlyR]);var He=this.create(X);F.referenceTypes=[At.Module],He.setIdentifier(F),p.setIdentifier(pe),p.addChild(He)}if(this.accept(h.ParenthesisL)){if(p.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getArguments().addChild(this._parseFunctionArgument()))return this.finish(p,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(h.CurlyL))&&p.setContent(this._parseMixinContentDeclaration()),this.finish(p)},c.prototype._parseMixinContentDeclaration=function(){var p=this.create(Tt);if(this.acceptIdent("using")){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.CurlyL]);if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.CurlyL])}return this.peek(h.CurlyL)&&this._parseBody(p,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(p)},c.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},c.prototype._parseFunctionArgument=function(){var p=this.create(st),F=this.mark(),pe=this._parseVariable();if(pe)if(this.accept(h.Colon))p.setIdentifier(pe);else{if(this.accept(bs))return p.setValue(pe),this.finish(p);this.restoreAtMark(F)}return p.setValue(this._parseExpr(!0))?(this.accept(bs),p.addChild(this._parsePrio()),this.finish(p)):p.setValue(this._tryParsePrio())?this.finish(p):null},c.prototype._parseURLArgument=function(){var p=this.mark(),F=x.prototype._parseURLArgument.call(this);if(!F||!this.peek(h.ParenthesisR)){this.restoreAtMark(p);var pe=this.create(pi);return pe.addChild(this._parseBinaryExpr()),this.finish(pe)}return F},c.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var p=this.create(pi);for(this.consumeToken();p.addChild(this._parseListElement());)this.accept(h.Comma);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseListElement=function(){var p=this.create(wi),F=this._parseBinaryExpr();if(!F)return null;if(this.accept(h.Colon)){if(p.setKey(F),!p.setValue(this._parseBinaryExpr()))return this.finish(p,le.ExpressionExpected)}else p.setValue(F);return this.finish(p)},c.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var p=this.create(Si);if(this.consumeToken(),!p.addChild(this._parseStringLiteral()))return this.finish(p,le.StringLiteralExpected);if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|with/))return this.finish(p,le.UnknownKeyword);if(this.acceptIdent("as")&&!p.setIdentifier(this._parseIdent([At.Module]))&&!this.acceptDelim("*"))return this.finish(p,le.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.ParenthesisR]);if(!p.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(p,le.VariableNameExpected);for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(p,le.VariableNameExpected);if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}}return this.accept(h.SemiColon)||this.accept(h.EOF)?this.finish(p):this.finish(p,le.SemiColonExpected)},c.prototype._parseModuleConfigDeclaration=function(){var p=this.create(Pi);return p.setIdentifier(this._parseVariable())?this.accept(h.Colon)&&p.setValue(this._parseExpr(!0))?this.finish(p):this.finish(p,le.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):null},c.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var p=this.create(Wi);if(this.consumeToken(),!p.addChild(this._parseStringLiteral()))return this.finish(p,le.StringLiteralExpected);if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|hide|show/))return this.finish(p,le.UnknownKeyword);if(this.acceptIdent("as")){var F=this._parseIdent([At.Forward]);if(!p.setIdentifier(F))return this.finish(p,le.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(p,le.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!p.addChild(this._parseForwardVisibility()))return this.finish(p,le.IdentifierOrVariableExpected)}return this.accept(h.SemiColon)||this.accept(h.EOF)?this.finish(p):this.finish(p,le.SemiColonExpected)},c.prototype._parseForwardVisibility=function(){var p=this.create(xn);for(p.setIdentifier(this._parseIdent());p.addChild(this._parseVariable()||this._parseIdent()););return p.getChildren().length>1?p:null},c.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||x.prototype._parseSupportsCondition.call(this)},c}(ln),Zl=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Xi=Gt(),wl=function(x){function c(p,F){var pe=x.call(this,"$",p,F)||this;return Xl(c.scssModuleLoaders),Xl(c.scssModuleBuiltIns),pe}return Zl(c,x),c.prototype.isImportPathParent=function(p){return p===it.Forward||p===it.Use||x.prototype.isImportPathParent.call(this,p)},c.prototype.getCompletionForImportPath=function(p,F){var pe=p.getParent().type;if(pe===it.Forward||pe===it.Use)for(var He=0,Qe=c.scssModuleBuiltIns;He<Qe.length;He++){var Vt=Qe[He],$t={label:Vt.label,documentation:Vt.documentation,textEdit:Tn.replace(this.getCompletionRange(p),"'"+Vt.label+"'"),kind:zn.Module};F.items.push($t)}return x.prototype.getCompletionForImportPath.call(this,p,F)},c.prototype.createReplaceFunction=function(){var p=1;return function(F,pe){return"\\"+pe+": ${"+p+++":"+(c.variableDefaults[pe]||"")+"}"}},c.prototype.createFunctionProposals=function(p,F,pe,He){for(var Qe=0,Vt=p;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=$t.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),Ft={label:$t.func.substr(0,$t.func.indexOf("(")),detail:$t.func,documentation:$t.desc,textEdit:Tn.replace(this.getCompletionRange(F),ci),insertTextFormat:eo.Snippet,kind:zn.Function};pe&&(Ft.sortText="z"),He.items.push(Ft)}return He},c.prototype.getCompletionsForSelector=function(p,F,pe){return this.createFunctionProposals(c.selectorFuncs,null,!0,pe),x.prototype.getCompletionsForSelector.call(this,p,F,pe)},c.prototype.getTermProposals=function(p,F,pe){var He=c.builtInFuncs;return p&&(He=He.filter(function(Qe){return!Qe.type||!p.restrictions||p.restrictions.indexOf(Qe.type)!==-1})),this.createFunctionProposals(He,F,!0,pe),x.prototype.getTermProposals.call(this,p,F,pe)},c.prototype.getColorProposals=function(p,F,pe){return this.createFunctionProposals(c.colorProposals,F,!1,pe),x.prototype.getColorProposals.call(this,p,F,pe)},c.prototype.getCompletionsForDeclarationProperty=function(p,F){return this.getCompletionForAtDirectives(F),this.getCompletionsForSelector(null,!0,F),x.prototype.getCompletionsForDeclarationProperty.call(this,p,F)},c.prototype.getCompletionsForExtendsReference=function(p,F,pe){for(var He=0,Qe=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Rule);He<Qe.length;He++){var Vt=Qe[He],$t={label:Vt.name,textEdit:Tn.replace(this.getCompletionRange(F),Vt.name),kind:zn.Function};pe.items.push($t)}return pe},c.prototype.getCompletionForAtDirectives=function(p){var F;return(F=p.items).push.apply(F,c.scssAtDirectives),p},c.prototype.getCompletionForTopLevel=function(p){return this.getCompletionForAtDirectives(p),this.getCompletionForModuleLoaders(p),x.prototype.getCompletionForTopLevel.call(this,p),p},c.prototype.getCompletionForModuleLoaders=function(p){var F;return(F=p.items).push.apply(F,c.scssModuleLoaders),p},c.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},c.colorProposals=[{func:"red($color)",desc:Xi("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:Xi("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:Xi("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Xi("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:Xi("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:Xi("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:Xi("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Xi("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Xi("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:Xi("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:Xi("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Xi("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:Xi("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:Xi("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:Xi("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:Xi("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Xi("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Xi("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Xi("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Xi("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Xi("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Xi("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],c.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Xi("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Xi("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Xi("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Xi("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Xi("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Xi("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Xi("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Xi("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],c.builtInFuncs=[{func:"unquote($string)",desc:Xi("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:Xi("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:Xi("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Xi("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Xi("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Xi("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Xi("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Xi("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:Xi("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Xi("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Xi("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Xi("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Xi("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:Xi("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Xi("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Xi("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:Xi("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:Xi("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Xi("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Xi("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Xi("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Xi("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Xi("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Xi("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Xi("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Xi("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Xi("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Xi("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Xi("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Xi("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Xi("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Xi("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Xi("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Xi("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Xi("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Xi("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Xi("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Xi("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:Xi("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Xi("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Xi("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Xi("scss.builtin.call","Dynamically calls a Sass function.")}],c.scssAtDirectives=[{label:"@extend",documentation:Xi("scss.builtin.@extend","Inherits the styles of another selector."),kind:zn.Keyword},{label:"@at-root",documentation:Xi("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:zn.Keyword},{label:"@debug",documentation:Xi("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:zn.Keyword},{label:"@warn",documentation:Xi("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:zn.Keyword},{label:"@error",documentation:Xi("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:zn.Keyword},{label:"@if",documentation:Xi("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} { +`&&pe++}F&&p.length>0&&c.push(p.length),this._lineOffsets=c}return this._lineOffsets},x.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var p=this.getLineOffsets(),F=0,pe=p.length;if(pe===0)return gn.create(0,c);for(;F<pe;){var He=Math.floor((F+pe)/2);p[He]>c?pe=He:F=He+1}var Qe=F-1;return gn.create(Qe,c-p[Qe])},x.prototype.offsetAt=function(c){var p=this.getLineOffsets();if(c.line>=p.length)return this._content.length;if(c.line<0)return 0;var F=p[c.line],pe=c.line+1<p.length?p[c.line+1]:this._content.length;return Math.max(Math.min(F+c.character,pe),F)},Object.defineProperty(x.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),x}();(function(x){var c=Object.prototype.toString;x.defined=function(p){return p!==void 0},x.undefined=function(p){return p===void 0},x.boolean=function(p){return p===!0||p===!1},x.string=function(p){return c.call(p)==="[object String]"},x.number=function(p){return c.call(p)==="[object Number]"},x.func=function(p){return c.call(p)==="[object Function]"},x.objectLiteral=function(p){return p!==null&&typeof p=="object"},x.typedArray=function(p,F){return Array.isArray(p)&&p.every(F)}})(Ui||(Ui={}));var xs,yo,qo,Ss=function(){function x(c,p,F,pe){this._uri=c,this._languageId=p,this._version=F,this._content=pe,this._lineOffsets=void 0}return Object.defineProperty(x.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),x.prototype.getText=function(c){if(c){var p=this.offsetAt(c.start),F=this.offsetAt(c.end);return this._content.substring(p,F)}return this._content},x.prototype.update=function(c,p){for(var F=0,pe=c;F<pe.length;F++){var He=pe[F];if(x.isIncremental(He)){var Qe=us(He.range),Vt=this.offsetAt(Qe.start),$t=this.offsetAt(Qe.end);this._content=this._content.substring(0,Vt)+He.text+this._content.substring($t,this._content.length);var ci=Math.max(Qe.start.line,0),Ft=Math.max(Qe.end.line,0),Fi=this._lineOffsets,cn=hs(He.text,!1,Vt);if(Ft-ci===cn.length)for(var vn=0,on=cn.length;vn<on;vn++)Fi[vn+ci+1]=cn[vn];else cn.length<1e4?Fi.splice.apply(Fi,[ci+1,Ft-ci].concat(cn)):this._lineOffsets=Fi=Fi.slice(0,ci+1).concat(cn,Fi.slice(Ft+1));var Pn=He.text.length-($t-Vt);if(Pn!==0)for(vn=ci+1+cn.length,on=Fi.length;vn<on;vn++)Fi[vn]=Fi[vn]+Pn}else{if(!x.isFull(He))throw new Error("Unknown change event received");this._content=He.text,this._lineOffsets=void 0}}this._version=p},x.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=hs(this._content,!0)),this._lineOffsets},x.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var p=this.getLineOffsets(),F=0,pe=p.length;if(pe===0)return{line:0,character:c};for(;F<pe;){var He=Math.floor((F+pe)/2);p[He]>c?pe=He:F=He+1}var Qe=F-1;return{line:Qe,character:c-p[Qe]}},x.prototype.offsetAt=function(c){var p=this.getLineOffsets();if(c.line>=p.length)return this._content.length;if(c.line<0)return 0;var F=p[c.line],pe=c.line+1<p.length?p[c.line+1]:this._content.length;return Math.max(Math.min(F+c.character,pe),F)},Object.defineProperty(x.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),x.isIncremental=function(c){var p=c;return p!=null&&typeof p.text=="string"&&p.range!==void 0&&(p.rangeLength===void 0||typeof p.rangeLength=="number")},x.isFull=function(c){var p=c;return p!=null&&typeof p.text=="string"&&p.range===void 0&&p.rangeLength===void 0},x}();function hs(x,c,p){p===void 0&&(p=0);for(var F=c?[p]:[],pe=0;pe<x.length;pe++){var He=x.charCodeAt(pe);He!==13&&He!==10||(He===13&&pe+1<x.length&&x.charCodeAt(pe+1)===10&&pe++,F.push(p+pe+1))}return F}function us(x){var c=x.start,p=x.end;return c.line>p.line||c.line===p.line&&c.character>p.character?{start:p,end:c}:x}function Ca(x){var c=us(x.range);return c!==x.range?{newText:x.newText,range:c}:x}(function(x){x.create=function(c,p,F,pe){return new Ss(c,p,F,pe)},x.update=function(c,p,F){if(c instanceof Ss)return c.update(p,F),c;throw new Error("TextDocument.update: document must be created by TextDocument.create")},x.applyEdits=function(c,p){for(var F=c.getText(),pe=0,He=[],Qe=0,Vt=function Ft(Fi,cn){if(Fi.length<=1)return Fi;var vn=Fi.length/2|0,on=Fi.slice(0,vn),Pn=Fi.slice(vn);Ft(on,cn),Ft(Pn,cn);for(var jn=0,Vn=0,Ln=0;jn<on.length&&Vn<Pn.length;){var pr=cn(on[jn],Pn[Vn]);Fi[Ln++]=pr<=0?on[jn++]:Pn[Vn++]}for(;jn<on.length;)Fi[Ln++]=on[jn++];for(;Vn<Pn.length;)Fi[Ln++]=Pn[Vn++];return Fi}(p.map(Ca),function(Ft,Fi){var cn=Ft.range.start.line-Fi.range.start.line;return cn===0?Ft.range.start.character-Fi.range.start.character:cn});Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=c.offsetAt($t.range.start);if(ci<pe)throw new Error("Overlapping edit");ci>pe&&He.push(F.substring(pe,ci)),$t.newText.length&&He.push($t.newText),pe=c.offsetAt($t.range.end)}return He.push(F.substr(pe)),He.join("")}})(xs||(xs={})),(yo||(yo={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Dr.Markdown,Dr.PlainText]}},hover:{contentFormat:[Dr.Markdown,Dr.PlainText]}}},function(x){x[x.Unknown=0]="Unknown",x[x.File=1]="File",x[x.Directory=2]="Directory",x[x.SymbolicLink=64]="SymbolicLink"}(qo||(qo={}));var xa=r(144),ks="/".charCodeAt(0),Io=".".charCodeAt(0);function $o(x){var c=x.lastIndexOf("/");return c!==-1?x.substr(0,c):""}function Vs(x){for(var c=[],p=0,F=x;p<F.length;p++){var pe=F[p];pe.length===0||pe.length===1&&pe.charCodeAt(0)===Io||(pe.length===2&&pe.charCodeAt(0)===Io&&pe.charCodeAt(1)===Io?c.pop():c.push(pe))}x.length>1&&x[x.length-1].length===0&&c.push("");var He=c.join("/");return x[0].length===0&&(He="/"+He),He}function Es(x){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];for(var F=xa.a.parse(x),pe=F.path.split("/"),He=0,Qe=c;He<Qe.length;He++){var Vt=Qe[He];pe.push.apply(pe,Vt.split("/"))}return F.with({path:Vs(pe)}).toString()}var ps=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Us=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Ko=function(){function x(c){this.readDirectory=c,this.literalCompletions=[],this.importCompletions=[]}return x.prototype.onCssURILiteralValue=function(c){this.literalCompletions.push(c)},x.prototype.onCssImportPath=function(c){this.importCompletions.push(c)},x.prototype.computeCompletions=function(c,p){return ps(this,void 0,void 0,function(){var F,pe,He,Qe,Vt,$t,ci,Ft,Fi,cn,vn,on,Pn,jn,Vn,Ln,pr;return Us(this,function(wr){switch(wr.label){case 0:F={items:[],isIncomplete:!1},pe=0,He=this.literalCompletions,wr.label=1;case 1:return pe<He.length?(Qe=He[pe],Vt=Qe.uriValue,(Pn=Hs(Vt))!=="."&&Pn!==".."?[3,2]:(F.isIncomplete=!0,[3,4])):[3,5];case 2:return[4,this.providePathSuggestions(Vt,Qe.position,Qe.range,c,p)];case 3:for($t=wr.sent(),ci=0,Ft=$t;ci<Ft.length;ci++)pr=Ft[ci],F.items.push(pr);wr.label=4;case 4:return pe++,[3,1];case 5:Fi=0,cn=this.importCompletions,wr.label=6;case 6:return Fi<cn.length?(vn=cn[Fi],on=vn.pathValue,(Pn=Hs(on))!=="."&&Pn!==".."?[3,7]:(F.isIncomplete=!0,[3,9])):[3,10];case 7:return[4,this.providePathSuggestions(on,vn.position,vn.range,c,p)];case 8:for(jn=wr.sent(),c.languageId==="scss"&&jn.forEach(function(gr){de(gr.label,"_")&&De(gr.label,".scss")&&(gr.textEdit?gr.textEdit.newText=gr.label.slice(1,-5):gr.label=gr.label.slice(1,-5))}),Vn=0,Ln=jn;Vn<Ln.length;Vn++)pr=Ln[Vn],F.items.push(pr);wr.label=9;case 9:return Fi++,[3,6];case 10:return[2,F]}})})},x.prototype.providePathSuggestions=function(c,p,F,pe,He){return ps(this,void 0,void 0,function(){var Qe,Vt,$t,ci,Ft,Fi,cn,vn,on,Pn,jn,Vn,Ln,pr,wr;return Us(this,function(gr){switch(gr.label){case 0:if(Qe=Hs(c),Vt=de(c,"'")||de(c,'"'),$t=Vt?Qe.slice(0,p.character-(F.start.character+1)):Qe.slice(0,p.character-F.start.character),ci=pe.uri,Ft=Vt?function(Er,yr,Fr){var So=Do(Er.start,yr),_s=Do(Er.end,Fr);return Sn.create(So,_s)}(F,1,-1):F,Fi=function(Er,yr,Fr){var So,_s=Er.lastIndexOf("/");if(_s===-1)So=Fr;else{var Ra=yr.slice(_s+1),os=Do(Fr.end,-Ra.length),eo=Ra.indexOf(" "),da=void 0;da=eo!==-1?Do(os,eo):Fr.end,So=Sn.create(os,da)}return So}($t,Qe,Ft),cn=$t.substring(0,$t.lastIndexOf("/")+1),!(vn=He.resolveReference(cn||".",ci)))return[3,4];gr.label=1;case 1:return gr.trys.push([1,3,,4]),on=[],[4,this.readDirectory(vn)];case 2:for(Pn=gr.sent(),jn=0,Vn=Pn;jn<Vn.length;jn++)Ln=Vn[jn],pr=Ln[0],wr=Ln[1],pr.charCodeAt(0)===rs||wr!==qo.Directory&&Es(vn,pr)===ci||on.push(ms(pr,wr===qo.Directory,Fi));return[2,on];case 3:return gr.sent(),[3,4];case 4:return[2,[]]}})})},x}(),rs=".".charCodeAt(0);function Hs(x){return de(x,"'")||de(x,'"')?x.slice(1,-1):x}function ms(x,c,p){return c?{label:gs(x+="/"),kind:zn.Folder,textEdit:Tn.replace(p,gs(x)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:gs(x),kind:zn.File,textEdit:Tn.replace(p,gs(x))}}function gs(x){return x.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Do(x,c){return gn.create(x.line,x.character+c)}var Kr,ro=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Sa=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},qs=Gt(),Oo=er.Snippet;(function(x){x.Enums=" ",x.Normal="d",x.VendorPrefixed="x",x.Term="y",x.Variable="z"})(Kr||(Kr={}));var Ao=function(){function x(c,p,F){c===void 0&&(c=null),this.variablePrefix=c,this.lsOptions=p,this.cssDataManager=F,this.completionParticipants=[]}return x.prototype.configure=function(c){this.settings=c},x.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new jo(this.styleSheet)),this.symbolContext},x.prototype.setCompletionParticipants=function(c){this.completionParticipants=c||[]},x.prototype.doComplete2=function(c,p,F,pe){return ro(this,void 0,void 0,function(){var He,Qe,Vt,$t;return Sa(this,function(ci){switch(ci.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(c,p,F)];He=new Ko(this.lsOptions.fileSystemProvider.readDirectory),Qe=this.completionParticipants,this.completionParticipants=[He].concat(Qe),Vt=this.doComplete(c,p,F),ci.label=1;case 1:return ci.trys.push([1,,3,4]),[4,He.computeCompletions(c,pe)];case 2:return $t=ci.sent(),[2,{isIncomplete:Vt.isIncomplete||$t.isIncomplete,items:$t.items.concat(Vt.items)}];case 3:return this.completionParticipants=Qe,[7];case 4:return[2]}})})},x.prototype.doComplete=function(c,p,F){this.offset=c.offsetAt(p),this.position=p,this.currentWord=function(ci,Ft){for(var Fi=Ft-1,cn=ci.getText();Fi>=0&&` +\r":{[()]},*>+`.indexOf(cn.charAt(Fi))===-1;)Fi--;return cn.substring(Fi+1,Ft)}(c,this.offset),this.defaultReplaceRange=Sn.create(gn.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=c,this.styleSheet=F;try{var pe={isIncomplete:!1,items:[]};this.nodePath=wt(this.styleSheet,this.offset);for(var He=this.nodePath.length-1;He>=0;He--){var Qe=this.nodePath[He];if(Qe instanceof Ue)this.getCompletionsForDeclarationProperty(Qe.getParent(),pe);else if(Qe instanceof Gn)Qe.parent instanceof Xe?this.getVariableProposals(null,pe):this.getCompletionsForExpression(Qe,pe);else if(Qe instanceof Lt){var Vt=Qe.findAParent(it.ExtendsReference,it.Ruleset);if(Vt)if(Vt.type===it.ExtendsReference)this.getCompletionsForExtendsReference(Vt,Qe,pe);else{var $t=Vt;this.getCompletionsForSelector($t,$t&&$t.isNested(),pe)}}else if(Qe instanceof st)this.getCompletionsForFunctionArgument(Qe,Qe.getParent(),pe);else if(Qe instanceof Ii)this.getCompletionsForDeclarations(Qe,pe);else if(Qe instanceof Fe)this.getCompletionsForVariableDeclaration(Qe,pe);else if(Qe instanceof Zi)this.getCompletionsForRuleSet(Qe,pe);else if(Qe instanceof Xe)this.getCompletionsForInterpolation(Qe,pe);else if(Qe instanceof Ri)this.getCompletionsForFunctionDeclaration(Qe,pe);else if(Qe instanceof Ht)this.getCompletionsForMixinReference(Qe,pe);else if(Qe instanceof ut)this.getCompletionsForFunctionArgument(null,Qe,pe);else if(Qe instanceof Fn)this.getCompletionsForSupports(Qe,pe);else if(Qe instanceof Jn)this.getCompletionsForSupportsCondition(Qe,pe);else if(Qe instanceof Mt)this.getCompletionsForExtendsReference(Qe,null,pe);else if(Qe.type===it.URILiteral)this.getCompletionForUriLiteralValue(Qe,pe);else if(Qe.parent===null)this.getCompletionForTopLevel(pe);else{if(Qe.type!==it.StringLiteral||!this.isImportPathParent(Qe.parent.type))continue;this.getCompletionForImportPath(Qe,pe)}if(pe.items.length>0||this.offset>Qe.offset)return this.finalize(pe)}return this.getCompletionsForStylesheet(pe),pe.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,pe),this.finalize(pe)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},x.prototype.isImportPathParent=function(c){return c===it.Import},x.prototype.finalize=function(c){return c},x.prototype.findInNodePath=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];for(var F=this.nodePath.length-1;F>=0;F--){var pe=this.nodePath[F];if(c.indexOf(pe.type)!==-1)return pe}return null},x.prototype.getCompletionsForDeclarationProperty=function(c,p){return this.getPropertyProposals(c,p)},x.prototype.getPropertyProposals=function(c,p){var F=this,pe=this.isTriggerPropertyValueCompletionEnabled,He=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(function(Qe){var Vt,$t,ci=!1;c?(Vt=F.getCompletionRange(c.getProperty()),$t=Qe.name,ii(c.colonPosition)||($t+=": ",ci=!0)):(Vt=F.getCompletionRange(null),$t=Qe.name+": ",ci=!0),!c&&He&&($t+="$0;"),c&&!c.semicolonPosition&&He&&F.offset>=F.textDocument.offsetAt(Vt.end)&&($t+="$0;");var Ft={label:Qe.name,documentation:Ze(Qe,F.doesSupportMarkdown()),tags:$s(Qe)?[bo.Deprecated]:[],textEdit:Tn.replace(Vt,$t),insertTextFormat:er.Snippet,kind:zn.Property};Qe.restrictions||(ci=!1),pe&&ci&&(Ft.command={title:"Suggest",command:"editor.action.triggerSuggest"});var Fi=(255-(typeof Qe.relevance=="number"?Math.min(Math.max(Qe.relevance,0),99):50)).toString(16),cn=de(Qe.name,"-")?Kr.VendorPrefixed:Kr.Normal;Ft.sortText=cn+"_"+Fi,p.items.push(Ft)}),this.completionParticipants.forEach(function(Qe){Qe.onCssProperty&&Qe.onCssProperty({propertyName:F.currentWord,range:F.defaultReplaceRange})}),p},Object.defineProperty(x.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){return!this.settings||!this.settings.completion||this.settings.completion.triggerPropertyValueCompletion===void 0||this.settings.completion.triggerPropertyValueCompletion},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){return!this.settings||!this.settings.completion||this.settings.completion.completePropertyWithSemicolon===void 0||this.settings.completion.completePropertyWithSemicolon},enumerable:!0,configurable:!0}),x.prototype.getCompletionsForDeclarationValue=function(c,p){for(var F=this,pe=c.getFullPropertyName(),He=this.cssDataManager.getProperty(pe),Qe=c.getValue()||null;Qe&&Qe.hasChildren();)Qe=Qe.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(cn){cn.onCssPropertyValue&&cn.onCssPropertyValue({propertyName:pe,propertyValue:F.currentWord,range:F.getCompletionRange(Qe)})}),He){if(He.restrictions)for(var Vt=0,$t=He.restrictions;Vt<$t.length;Vt++)switch($t[Vt]){case"color":this.getColorProposals(He,Qe,p);break;case"position":this.getPositionProposals(He,Qe,p);break;case"repeat":this.getRepeatStyleProposals(He,Qe,p);break;case"line-style":this.getLineStyleProposals(He,Qe,p);break;case"line-width":this.getLineWidthProposals(He,Qe,p);break;case"geometry-box":this.getGeometryBoxProposals(He,Qe,p);break;case"box":this.getBoxProposals(He,Qe,p);break;case"image":this.getImageProposals(He,Qe,p);break;case"timing-function":this.getTimingFunctionProposals(He,Qe,p);break;case"shape":this.getBasicShapeProposals(He,Qe,p)}this.getValueEnumProposals(He,Qe,p),this.getCSSWideKeywordProposals(He,Qe,p),this.getUnitProposals(He,Qe,p)}else for(var ci=0,Ft=function(cn,vn){var on=vn.getFullPropertyName(),Pn=new ka;function jn(Vn){return(Vn instanceof Wt||Vn instanceof _e||Vn instanceof On)&&Pn.add(Vn.getText()),!0}return cn.accept(function(Vn){if(Vn instanceof vt&&Vn!==vn&&function(pr){var wr=pr.getFullPropertyName();return on===wr}(Vn)){var Ln=Vn.getValue();Ln&&Ln.accept(jn)}return!0}),Pn}(this.styleSheet,c).getEntries();ci<Ft.length;ci++){var Fi=Ft[ci];p.items.push({label:Fi,textEdit:Tn.replace(this.getCompletionRange(Qe),Fi),kind:zn.Value})}return this.getVariableProposals(Qe,p),this.getTermProposals(He,Qe,p),p},x.prototype.getValueEnumProposals=function(c,p,F){if(c.values)for(var pe=0,He=c.values;pe<He.length;pe++){var Qe=He[pe],Vt=Qe.name,$t=void 0;if(De(Vt,")")){var ci=Vt.lastIndexOf("(");ci!==-1&&(Vt=Vt.substr(0,ci)+"($1)",$t=Oo)}var Ft=Kr.Enums;de(Qe.name,"-")&&(Ft+=Kr.VendorPrefixed);var Fi={label:Qe.name,documentation:Ze(Qe,this.doesSupportMarkdown()),tags:$s(c)?[bo.Deprecated]:[],textEdit:Tn.replace(this.getCompletionRange(p),Vt),sortText:Ft,kind:zn.Value,insertTextFormat:$t};F.items.push(Fi)}return F},x.prototype.getCSSWideKeywordProposals=function(c,p,F){for(var pe in xt)F.items.push({label:pe,documentation:xt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getCompletionsForInterpolation=function(c,p){return this.offset>=c.offset+2&&this.getVariableProposals(null,p),p},x.prototype.getVariableProposals=function(c,p){for(var F=0,pe=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Variable);F<pe.length;F++){var He=pe[F],Qe=de(He.name,"--")?"var("+He.name+")":He.name,Vt={label:He.name,documentation:He.value?$e(He.value):He.value,textEdit:Tn.replace(this.getCompletionRange(c),Qe),kind:zn.Variable,sortText:Kr.Variable};if(typeof Vt.documentation=="string"&&Ts(Vt.documentation)&&(Vt.kind=zn.Color),He.node.type===it.FunctionParameter){var $t=He.node.getParent();$t.type===it.MixinDeclaration&&(Vt.detail=qs("completion.argument","argument from '{0}'",$t.getName()))}p.items.push(Vt)}return p},x.prototype.getVariableProposalsForCSSVarFunction=function(c){for(var p=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Variable),F=0,pe=p=p.filter(function(Vt){return de(Vt.name,"--")});F<pe.length;F++){var He=pe[F],Qe={label:He.name,documentation:He.value?$e(He.value):He.value,textEdit:Tn.replace(this.getCompletionRange(null),He.name),kind:zn.Variable};typeof Qe.documentation=="string"&&Ts(Qe.documentation)&&(Qe.kind=zn.Color),c.items.push(Qe)}return c},x.prototype.getUnitProposals=function(c,p,F){var pe="0";if(this.currentWord.length>0){var He=this.currentWord.match(/^-?\d[\.\d+]*/);He&&(pe=He[0],F.isIncomplete=pe.length===this.currentWord.length)}else this.currentWord.length===0&&(F.isIncomplete=!0);if(p&&p.parent&&p.parent.type===it.Term&&(p=p.getParent()),c.restrictions)for(var Qe=0,Vt=c.restrictions;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=oi[$t];if(ci)for(var Ft=0,Fi=ci;Ft<Fi.length;Ft++){var cn=pe+Fi[Ft];F.items.push({label:cn,textEdit:Tn.replace(this.getCompletionRange(p),cn),kind:zn.Unit})}}return F},x.prototype.getCompletionRange=function(c){if(c&&c.offset<=this.offset&&this.offset<=c.end){var p=c.end!==-1?this.textDocument.positionAt(c.end):this.position,F=this.textDocument.positionAt(c.offset);if(F.line===p.line)return Sn.create(F,p)}return this.defaultReplaceRange},x.prototype.getColorProposals=function(c,p,F){for(var pe in ai)F.items.push({label:pe,documentation:ai[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Color});for(var pe in fi)F.items.push({label:pe,documentation:fi[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});var He=new ka;this.styleSheet.acceptVisitor(new Ks(He,this.offset));for(var Qe=0,Vt=He.getEntries();Qe<Vt.length;Qe++)pe=Vt[Qe],F.items.push({label:pe,textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Color});for(var $t=function(cn){var vn=1,on=cn.func.replace(/\[?\$(\w+)\]?/g,function(Pn,jn){return"${"+vn+++":"+jn+"}"});F.items.push({label:cn.func.substr(0,cn.func.indexOf("(")),detail:cn.func,documentation:cn.desc,textEdit:Tn.replace(ci.getCompletionRange(p),on),insertTextFormat:Oo,kind:zn.Function})},ci=this,Ft=0,Fi=Ei;Ft<Fi.length;Ft++)$t(Fi[Ft]);return F},x.prototype.getPositionProposals=function(c,p,F){for(var pe in We)F.items.push({label:pe,documentation:We[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getRepeatStyleProposals=function(c,p,F){for(var pe in Be)F.items.push({label:pe,documentation:Be[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getLineStyleProposals=function(c,p,F){for(var pe in Le)F.items.push({label:pe,documentation:Le[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getLineWidthProposals=function(c,p,F){for(var pe=0,He=Ke;pe<He.length;pe++){var Qe=He[pe];F.items.push({label:Qe,textEdit:Tn.replace(this.getCompletionRange(p),Qe),kind:zn.Value})}return F},x.prototype.getGeometryBoxProposals=function(c,p,F){for(var pe in yt)F.items.push({label:pe,documentation:yt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getBoxProposals=function(c,p,F){for(var pe in dt)F.items.push({label:pe,documentation:dt[pe],textEdit:Tn.replace(this.getCompletionRange(p),pe),kind:zn.Value});return F},x.prototype.getImageProposals=function(c,p,F){for(var pe in Xt){var He=ho(pe);F.items.push({label:pe,documentation:Xt[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Oo:void 0})}return F},x.prototype.getTimingFunctionProposals=function(c,p,F){for(var pe in mi){var He=ho(pe);F.items.push({label:pe,documentation:mi[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Oo:void 0})}return F},x.prototype.getBasicShapeProposals=function(c,p,F){for(var pe in Yt){var He=ho(pe);F.items.push({label:pe,documentation:Yt[pe],textEdit:Tn.replace(this.getCompletionRange(p),He),kind:zn.Function,insertTextFormat:pe!==He?Oo:void 0})}return F},x.prototype.getCompletionsForStylesheet=function(c){var p=this.styleSheet.findFirstChildBeforeOffset(this.offset);return p?p instanceof Zi?this.getCompletionsForRuleSet(p,c):p instanceof Fn?this.getCompletionsForSupports(p,c):c:this.getCompletionForTopLevel(c)},x.prototype.getCompletionForTopLevel=function(c){var p=this;return this.cssDataManager.getAtDirectives().forEach(function(F){c.items.push({label:F.name,textEdit:Tn.replace(p.getCompletionRange(null),F.name),documentation:Ze(F,p.doesSupportMarkdown()),tags:$s(F)?[bo.Deprecated]:[],kind:zn.Keyword})}),this.getCompletionsForSelector(null,!1,c),c},x.prototype.getCompletionsForRuleSet=function(c,p){var F=c.getDeclarations();return F&&F.endsWith("}")&&this.offset>=F.end?this.getCompletionForTopLevel(p):!F||this.offset<=F.offset?this.getCompletionsForSelector(c,c.isNested(),p):this.getCompletionsForDeclarations(c.getDeclarations(),p)},x.prototype.getCompletionsForSelector=function(c,p,F){var pe=this,He=this.findInNodePath(it.PseudoSelector,it.IdentifierSelector,it.ClassSelector,it.ElementNameSelector);if(!He&&this.offset-this.currentWord.length>0&&this.textDocument.getText()[this.offset-this.currentWord.length-1]===":"&&(this.currentWord=":"+this.currentWord,this.defaultReplaceRange=Sn.create(gn.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(function(on){var Pn=ho(on.name),jn={label:on.name,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),documentation:Ze(on,pe.doesSupportMarkdown()),tags:$s(on)?[bo.Deprecated]:[],kind:zn.Function,insertTextFormat:on.name!==Pn?Oo:void 0};de(on.name,":-")&&(jn.sortText=Kr.VendorPrefixed),F.items.push(jn)}),this.cssDataManager.getPseudoElements().forEach(function(on){var Pn=ho(on.name),jn={label:on.name,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),documentation:Ze(on,pe.doesSupportMarkdown()),tags:$s(on)?[bo.Deprecated]:[],kind:zn.Function,insertTextFormat:on.name!==Pn?Oo:void 0};de(on.name,"::-")&&(jn.sortText=Kr.VendorPrefixed),F.items.push(jn)}),!p){for(var Qe=0,Vt=qi;Qe<Vt.length;Qe++){var $t=Vt[Qe];F.items.push({label:$t,textEdit:Tn.replace(this.getCompletionRange(He),$t),kind:zn.Keyword})}for(var ci=0,Ft=an;ci<Ft.length;ci++)$t=Ft[ci],F.items.push({label:$t,textEdit:Tn.replace(this.getCompletionRange(He),$t),kind:zn.Keyword})}var Fi={};Fi[this.currentWord]=!0;var cn=this.textDocument.getText();if(this.styleSheet.accept(function(on){if(on.type===it.SimpleSelector&&on.length>0){var Pn=cn.substr(on.offset,on.length);return Pn.charAt(0)!=="."||Fi[Pn]||(Fi[Pn]=!0,F.items.push({label:Pn,textEdit:Tn.replace(pe.getCompletionRange(He),Pn),kind:zn.Keyword})),!1}return!0}),c&&c.isNested()){var vn=c.getSelectors().findFirstChildBeforeOffset(this.offset);vn&&c.getSelectors().getChildren().indexOf(vn)===0&&this.getPropertyProposals(null,F)}return F},x.prototype.getCompletionsForDeclarations=function(c,p){if(!c||this.offset===c.offset)return p;var F=c.findFirstChildBeforeOffset(this.offset);if(!F)return this.getCompletionsForDeclarationProperty(null,p);if(F instanceof gt){var pe=F;if(!ii(pe.colonPosition)||this.offset<=pe.colonPosition)return this.getCompletionsForDeclarationProperty(pe,p);if(ii(pe.semicolonPosition)&&pe.semicolonPosition<this.offset)return this.offset===pe.semicolonPosition+1?p:this.getCompletionsForDeclarationProperty(null,p);if(pe instanceof vt)return this.getCompletionsForDeclarationValue(pe,p)}else F instanceof Mt?this.getCompletionsForExtendsReference(F,null,p):(this.currentWord&&this.currentWord[0]==="@"||F instanceof Zi)&&this.getCompletionsForDeclarationProperty(null,p);return p},x.prototype.getCompletionsForVariableDeclaration=function(c,p){return this.offset&&ii(c.colonPosition)&&this.offset>c.colonPosition&&this.getVariableProposals(c.getValue(),p),p},x.prototype.getCompletionsForExpression=function(c,p){var F=c.getParent();if(F instanceof st)return this.getCompletionsForFunctionArgument(F,F.getParent(),p),p;var pe=c.findParent(it.Declaration);if(!pe)return this.getTermProposals(void 0,null,p),p;var He=c.findChildAtOffset(this.offset,!0);return He?He instanceof _e||He instanceof Wt?this.getCompletionsForDeclarationValue(pe,p):p:this.getCompletionsForDeclarationValue(pe,p)},x.prototype.getCompletionsForFunctionArgument=function(c,p,F){var pe=p.getIdentifier();return pe&&pe.matches("var")&&(p.getArguments().hasChildren()&&p.getArguments().getChild(0)!==c||this.getVariableProposalsForCSSVarFunction(F)),F},x.prototype.getCompletionsForFunctionDeclaration=function(c,p){var F=c.getDeclarations();return F&&this.offset>F.offset&&this.offset<F.end&&this.getTermProposals(void 0,null,p),p},x.prototype.getCompletionsForMixinReference=function(c,p){for(var F=this,pe=0,He=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Mixin);pe<He.length;pe++){var Qe=He[pe];Qe.node instanceof jt&&p.items.push(this.makeTermProposal(Qe,Qe.node.getParameters(),null))}var Vt=c.getIdentifier()||null;return this.completionParticipants.forEach(function($t){$t.onCssMixinReference&&$t.onCssMixinReference({mixinName:F.currentWord,range:F.getCompletionRange(Vt)})}),p},x.prototype.getTermProposals=function(c,p,F){for(var pe=0,He=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Function);pe<He.length;pe++){var Qe=He[pe];Qe.node instanceof Ri&&F.items.push(this.makeTermProposal(Qe,Qe.node.getParameters(),p))}return F},x.prototype.makeTermProposal=function(c,p,F){c.node;var pe=p.getChildren().map(function(Qe){return Qe instanceof ze?Qe.getName():Qe.getText()}),He=c.name+"("+pe.map(function(Qe,Vt){return"${"+(Vt+1)+":"+Qe+"}"}).join(", ")+")";return{label:c.name,detail:c.name+"("+pe.join(", ")+")",textEdit:Tn.replace(this.getCompletionRange(F),He),insertTextFormat:Oo,kind:zn.Function,sortText:Kr.Term}},x.prototype.getCompletionsForSupportsCondition=function(c,p){var F=c.findFirstChildBeforeOffset(this.offset);if(F){if(F instanceof vt)return!ii(F.colonPosition)||this.offset<=F.colonPosition?this.getCompletionsForDeclarationProperty(F,p):this.getCompletionsForDeclarationValue(F,p);if(F instanceof Jn)return this.getCompletionsForSupportsCondition(F,p)}return ii(c.lParent)&&this.offset>c.lParent&&(!ii(c.rParent)||this.offset<=c.rParent)?this.getCompletionsForDeclarationProperty(null,p):p},x.prototype.getCompletionsForSupports=function(c,p){var F=c.getDeclarations();if(!F||this.offset<=F.offset){var pe=c.findFirstChildBeforeOffset(this.offset);return pe instanceof Jn?this.getCompletionsForSupportsCondition(pe,p):p}return this.getCompletionForTopLevel(p)},x.prototype.getCompletionsForExtendsReference=function(c,p,F){return F},x.prototype.getCompletionForUriLiteralValue=function(c,p){var F,pe,He;if(c.hasChildren()){var Qe=c.getChild(0);F=Qe.getText(),pe=this.position,He=this.getCompletionRange(Qe)}else{F="",pe=this.position;var Vt=this.textDocument.positionAt(c.offset+"url(".length);He=Sn.create(Vt,Vt)}return this.completionParticipants.forEach(function($t){$t.onCssURILiteralValue&&$t.onCssURILiteralValue({uriValue:F,position:pe,range:He})}),p},x.prototype.getCompletionForImportPath=function(c,p){var F=this;return this.completionParticipants.forEach(function(pe){pe.onCssImportPath&&pe.onCssImportPath({pathValue:c.getText(),position:F.position,range:F.getCompletionRange(c)})}),p},x.prototype.doesSupportMarkdown=function(){var c,p,F;if(!ii(this.supportsMarkdown)){if(!ii(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var pe=(F=(p=(c=this.lsOptions.clientCapabilities.textDocument)===null||c===void 0?void 0:c.completion)===null||p===void 0?void 0:p.completionItem)===null||F===void 0?void 0:F.documentationFormat;this.supportsMarkdown=Array.isArray(pe)&&pe.indexOf(Dr.Markdown)!==-1}return this.supportsMarkdown},x}();function $s(x){return!(!x.status||x.status!=="nonstandard"&&x.status!=="obsolete")}var ka=function(){function x(){this.entries={}}return x.prototype.add=function(c){this.entries[c]=!0},x.prototype.getEntries=function(){return Object.keys(this.entries)},x}();function ho(x){return x.replace(/\(\)$/,"($1)")}var Ks=function(){function x(c,p){this.entries=c,this.currentOffset=p}return x.prototype.visitNode=function(c){return(c instanceof On||c instanceof ut&&Te(c))&&(this.currentOffset<c.offset||c.end<this.currentOffset)&&this.entries.add(c.getText()),!0},x}();function Ts(x){return x.toLowerCase()in ai||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(x)}var Xr,oo=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),oa=Gt(),Ls=function(){function x(){this.parent=null,this.children=null,this.attributes=null}return x.prototype.findAttribute=function(c){if(this.attributes)for(var p=0,F=this.attributes;p<F.length;p++){var pe=F[p];if(pe.name===c)return pe.value}return null},x.prototype.addChild=function(c){c instanceof x&&(c.parent=this),this.children||(this.children=[]),this.children.push(c)},x.prototype.append=function(c){if(this.attributes){var p=this.attributes[this.attributes.length-1];p.value=p.value+c}},x.prototype.prepend=function(c){if(this.attributes){var p=this.attributes[0];p.value=c+p.value}},x.prototype.findRoot=function(){for(var c=this;c.parent&&!(c.parent instanceof Hr);)c=c.parent;return c},x.prototype.removeChild=function(c){if(this.children){var p=this.children.indexOf(c);if(p!==-1)return this.children.splice(p,1),!0}return!1},x.prototype.addAttr=function(c,p){this.attributes||(this.attributes=[]);for(var F=0,pe=this.attributes;F<pe.length;F++){var He=pe[F];if(He.name===c)return void(He.value+=" "+p)}this.attributes.push({name:c,value:p})},x.prototype.clone=function(c){c===void 0&&(c=!0);var p=new x;if(this.attributes){p.attributes=[];for(var F=0,pe=this.attributes;F<pe.length;F++){var He=pe[F];p.addAttr(He.name,He.value)}}if(c&&this.children){p.children=[];for(var Qe=0;Qe<this.children.length;Qe++)p.addChild(this.children[Qe].clone())}return p},x.prototype.cloneWithParent=function(){var c=this.clone(!1);return!this.parent||this.parent instanceof Hr||this.parent.cloneWithParent().addChild(c),c},x}(),Hr=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return oo(c,x),c}(Ls),Ns=function(x){function c(p){var F=x.call(this)||this;return F.addAttr("name",p),F}return oo(c,x),c}(Ls),so=function(){function x(c){this.quote=c,this.result=[]}return x.prototype.print=function(c){return this.result=[],c instanceof Hr?c.children&&this.doPrint(c.children,0):this.doPrint([c],0),[{language:"html",value:this.result.join(` +`)}]},x.prototype.doPrint=function(c,p){for(var F=0,pe=c;F<pe.length;F++){var He=pe[F];this.doPrintElement(He,p),He.children&&this.doPrint(He.children,p+1)}},x.prototype.writeLine=function(c,p){var F=new Array(c+1).join(" ");this.result.push(F+p)},x.prototype.doPrintElement=function(c,p){var F=c.findAttribute("name");if(c instanceof Ns||F==="\u2026")this.writeLine(p,F);else{var pe=["<"];if(F?pe.push(F):pe.push("element"),c.attributes)for(var He=0,Qe=c.attributes;He<Qe.length;He++){var Vt=Qe[He];if(Vt.name!=="name"){pe.push(" "),pe.push(Vt.name);var $t=Vt.value;$t&&(pe.push("="),pe.push(Xr.ensure($t,this.quote)))}}pe.push(">"),this.writeLine(p,pe.join(""))}},x}();(function(x){function c(p){var F=p.match(/^['"](.*)["']$/);return F?F[1]:p}x.ensure=function(p,F){return F+c(p)+F},x.remove=c})(Xr||(Xr={}));var Zt=function(){this.id=0,this.attr=0,this.tag=0};function i(x,c){for(var p=new Ls,F=0,pe=x.getChildren();F<pe.length;F++){var He=pe[F];switch(He.type){case it.SelectorCombinator:if(c){var Qe=He.getText().split("&");if(Qe.length===1){p.addAttr("name",Qe[0]);break}p=c.cloneWithParent(),Qe[0]&&p.findRoot().prepend(Qe[0]);for(var Vt=1;Vt<Qe.length;Vt++){if(Vt>1){var $t=c.cloneWithParent();p.addChild($t.findRoot()),p=$t}p.append(Qe[Vt])}}break;case it.SelectorPlaceholder:if(He.matches("@at-root"))return p;case it.ElementNameSelector:var ci=He.getText();p.addAttr("name",ci==="*"?"element":a(ci));break;case it.ClassSelector:p.addAttr("class",a(He.getText().substring(1)));break;case it.IdentifierSelector:p.addAttr("id",a(He.getText().substring(1)));break;case it.MixinDeclaration:p.addAttr("class",He.getName());break;case it.PseudoSelector:p.addAttr(a(He.getText()),"");break;case it.AttributeSelector:var Ft=He,Fi=Ft.getIdentifier();if(Fi){var cn=Ft.getValue(),vn=Ft.getOperator(),on=void 0;if(cn&&vn)switch(a(vn.getText())){case"|=":on=Xr.remove(a(cn.getText()))+"-\u2026";break;case"^=":on=Xr.remove(a(cn.getText()))+"\u2026";break;case"$=":on="\u2026"+Xr.remove(a(cn.getText()));break;case"~=":on=" \u2026 "+Xr.remove(a(cn.getText()))+" \u2026 ";break;case"*=":on="\u2026"+Xr.remove(a(cn.getText()))+"\u2026";break;default:on=Xr.remove(a(cn.getText()))}p.addAttr(a(Fi.getText()),on)}}}return p}function a(x){var c=new ee;c.setSource(x);var p=c.scanUnquotedString();return p?p.text:x}var _=function(){function x(c){this.cssDataManager=c}return x.prototype.selectorToMarkedString=function(c){var p=function(pe){if(pe.matches("@at-root"))return null;var He=new Hr,Qe=[],Vt=pe.getParent();if(Vt instanceof Zi)for(var $t=Vt.getParent();$t&&!K($t);){if($t instanceof Zi){if($t.getSelectors().matches("@at-root"))break;Qe.push($t)}$t=$t.getParent()}for(var ci=new R(He),Ft=Qe.length-1;Ft>=0;Ft--){var Fi=Qe[Ft].getSelectors().getChild(0);Fi&&ci.processSelector(Fi)}return ci.processSelector(pe),He}(c);if(p){var F=new so('"').print(p);return F.push(this.selectorToSpecificityMarkedString(c)),F}return[]},x.prototype.simpleSelectorToMarkedString=function(c){var p=i(c),F=new so('"').print(p);return F.push(this.selectorToSpecificityMarkedString(c)),F},x.prototype.isPseudoElementIdentifier=function(c){var p=c.match(/^::?([\w-]+)/);return!!p&&!!this.cssDataManager.getPseudoElement("::"+p[1])},x.prototype.selectorToSpecificityMarkedString=function(c){var p=this,F=function(He){for(var Qe=0,Vt=He.getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];switch($t.type){case it.IdentifierSelector:pe.id++;break;case it.ClassSelector:case it.AttributeSelector:pe.attr++;break;case it.ElementNameSelector:if($t.matches("*"))break;pe.tag++;break;case it.PseudoSelector:var ci=$t.getText();if(p.isPseudoElementIdentifier(ci))pe.tag++;else{if(ci.match(/^:not/i))break;pe.attr++}}$t.getChildren().length>0&&F($t)}},pe=new Zt;return F(c),oa("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",pe.id,pe.attr,pe.tag)},x}(),R=function(){function x(c){this.prev=null,this.element=c}return x.prototype.processSelector=function(c){var p=null;if(!(this.element instanceof Hr)&&c.getChildren().some(function(Ft){return Ft.hasChildren()&&Ft.getChild(0).type===it.SelectorCombinator})){var F=this.element.findRoot();F.parent instanceof Hr&&(p=this.element,this.element=F.parent,this.element.removeChild(F),this.prev=null)}for(var pe=0,He=c.getChildren();pe<He.length;pe++){var Qe=He[pe];if(Qe instanceof Lt){if(this.prev instanceof Lt){var Vt=new Ns("\u2026");this.element.addChild(Vt),this.element=Vt}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&(this.element.addChild(i(Qe)),this.element.addChild(new Ns("\u22EE")));var $t=i(Qe,p),ci=$t.findRoot();this.element.addChild(ci),this.element=$t}(Qe instanceof Lt||Qe.type===it.SelectorCombinatorParent||Qe.type===it.SelectorCombinatorShadowPiercingDescendant||Qe.type===it.SelectorCombinatorSibling||Qe.type===it.SelectorCombinatorAllSiblings)&&(this.prev=Qe)}},x}();function K(x){switch(x.type){case it.MixinDeclaration:case it.Stylesheet:return!0}return!1}var we=function(){function x(c,p){this.clientCapabilities=c,this.cssDataManager=p,this.selectorPrinting=new _(p)}return x.prototype.doHover=function(c,p,F){function pe(on){return Sn.create(c.positionAt(on.offset),c.positionAt(on.end))}for(var He=wt(F,c.offsetAt(p)),Qe=null,Vt=0;Vt<He.length;Vt++){var $t=He[Vt];if($t instanceof Bi){Qe={contents:this.selectorPrinting.selectorToMarkedString($t),range:pe($t)};break}if($t instanceof Lt){de($t.getText(),"@")||(Qe={contents:this.selectorPrinting.simpleSelectorToMarkedString($t),range:pe($t)});break}if($t instanceof vt){var ci=$t.getFullPropertyName();(Fi=this.cssDataManager.getProperty(ci))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}else if($t instanceof Kt){var Ft=$t.getText();(Fi=this.cssDataManager.getAtDirective(Ft))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}else if($t instanceof pi&&$t.type===it.PseudoSelector){var Fi,cn,vn=$t.getText();(Fi=vn.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(vn):this.cssDataManager.getPseudoClass(vn))&&(Qe=(cn=Ze(Fi,this.doesSupportMarkdown()))?{contents:cn,range:pe($t)}:null)}}return Qe&&(Qe.contents=this.convertContents(Qe.contents)),Qe},x.prototype.convertContents=function(c){return this.doesSupportMarkdown()||typeof c=="string"?c:"kind"in c?{kind:"plaintext",value:c.value}:Array.isArray(c)?c.map(function(p){return typeof p=="string"?p:p.value}):c.value},x.prototype.doesSupportMarkdown=function(){if(!ii(this.supportsMarkdown)){if(!ii(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var c=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=c&&c.contentFormat&&Array.isArray(c.contentFormat)&&c.contentFormat.indexOf(Dr.Markdown)!==-1}return this.supportsMarkdown},x}(),Pe=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Ve=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Je=Gt(),at=function(){function x(c){this.fileSystemProvider=c}return x.prototype.findDefinition=function(c,p,F){var pe=new jo(F),He=_i(F,c.offsetAt(p));if(!He)return null;var Qe=pe.findSymbolFromNode(He);return Qe?{uri:c.uri,range:bt(Qe.node,c)}:null},x.prototype.findReferences=function(c,p,F){return this.findDocumentHighlights(c,p,F).map(function(pe){return{uri:c.uri,range:pe.range}})},x.prototype.findDocumentHighlights=function(c,p,F){var pe=[],He=_i(F,c.offsetAt(p));if(!He||He.type===it.Stylesheet||He.type===it.Declarations)return pe;He.type===it.Identifier&&He.parent&&He.parent.type===it.ClassSelector&&(He=He.parent);var Qe=new jo(F),Vt=Qe.findSymbolFromNode(He),$t=He.getText();return F.accept(function(ci){if(Vt){if(Qe.matchesSymbol(ci,Vt))return pe.push({kind:Bt(ci),range:bt(ci,c)}),!1}else He&&He.type===ci.type&&ci.matches($t)&&pe.push({kind:Bt(ci),range:bt(ci,c)});return!0}),pe},x.prototype.isRawStringDocumentLinkNode=function(c){return c.type===it.Import},x.prototype.findDocumentLinks=function(c,p,F){for(var pe=this.findUnresolvedLinks(c,p),He=0;He<pe.length;He++){var Qe=pe[He].target;if(Qe&&!/^\w+:\/\//g.test(Qe)){var Vt=F.resolveReference(Qe,c.uri);Vt&&(pe[He].target=Vt)}}return pe},x.prototype.findDocumentLinks2=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe,He,Qe,Vt,$t,ci,Ft;return Ve(this,function(Fi){switch(Fi.label){case 0:pe=this.findUnresolvedLinks(c,p),He=[],Qe=0,Vt=pe,Fi.label=1;case 1:return Qe<Vt.length?($t=Vt[Qe],!(ci=$t.target)||/^\w+:\/\//g.test(ci)?[3,3]:[4,this.resolveRelativeReference(ci,c.uri,F)]):[3,5];case 2:return(Ft=Fi.sent())!==void 0&&($t.target=Ft,He.push($t)),[3,4];case 3:He.push($t),Fi.label=4;case 4:return Qe++,[3,1];case 5:return[2,He]}})})},x.prototype.findUnresolvedLinks=function(c,p){var F=this,pe=[],He=function(Qe){var Vt=Qe.getText(),$t=bt(Qe,c);$t.start.line===$t.end.line&&$t.start.character===$t.end.character||((de(Vt,"'")||de(Vt,'"'))&&(Vt=Vt.slice(1,-1)),pe.push({target:Vt,range:$t}))};return p.accept(function(Qe){if(Qe.type===it.URILiteral){var Vt=Qe.getChild(0);return Vt&&He(Vt),!1}if(Qe.parent&&F.isRawStringDocumentLinkNode(Qe.parent)){var $t=Qe.getText();return(de($t,"'")||de($t,'"'))&&He(Qe),!1}return!0}),pe},x.prototype.findDocumentSymbols=function(c,p){var F=[];return p.accept(function(pe){var He={name:null,kind:co.Class,location:null},Qe=pe;if(pe instanceof Bi)return He.name=pe.getText(),(Qe=pe.findAParent(it.Ruleset,it.ExtendsReference))&&(He.location=En.create(c.uri,bt(Qe,c)),F.push(He)),!1;if(pe instanceof Fe)He.name=pe.getName(),He.kind=co.Variable;else if(pe instanceof jt)He.name=pe.getName(),He.kind=co.Method;else if(pe instanceof Ri)He.name=pe.getName(),He.kind=co.Function;else if(pe instanceof kt)He.name=Je("literal.keyframes","@keyframes {0}",pe.getName());else if(pe instanceof Hi)He.name=Je("literal.fontface","@font-face");else if(pe instanceof bn){var Vt=pe.getChild(0);Vt instanceof Nn&&(He.name="@media "+Vt.getText(),He.kind=co.Module)}return He.name&&(He.location=En.create(c.uri,bt(Qe,c)),F.push(He)),!0}),F},x.prototype.findDocumentColors=function(c,p){var F=[];return p.accept(function(pe){var He=function(Qe,Vt){var $t=Re(Qe);if($t){var ci=bt(Qe,Vt);return{color:$t,range:ci}}return null}(pe,c);return He&&F.push(He),!0}),F},x.prototype.getColorPresentations=function(c,p,F,pe){var He,Qe=[],Vt=Math.round(255*F.red),$t=Math.round(255*F.green),ci=Math.round(255*F.blue);He=F.alpha===1?"rgb("+Vt+", "+$t+", "+ci+")":"rgba("+Vt+", "+$t+", "+ci+", "+F.alpha+")",Qe.push({label:He,textEdit:Tn.replace(pe,He)}),He=F.alpha===1?"#"+Pt(Vt)+Pt($t)+Pt(ci):"#"+Pt(Vt)+Pt($t)+Pt(ci)+Pt(Math.round(255*F.alpha)),Qe.push({label:He,textEdit:Tn.replace(pe,He)});var Ft=function(Fi){var cn=Fi.red,vn=Fi.green,on=Fi.blue,Pn=Fi.alpha,jn=Math.max(cn,vn,on),Vn=Math.min(cn,vn,on),Ln=0,pr=0,wr=(Vn+jn)/2,gr=jn-Vn;if(gr>0){switch(pr=Math.min(wr<=.5?gr/(2*wr):gr/(2-2*wr),1),jn){case cn:Ln=(vn-on)/gr+(vn<on?6:0);break;case vn:Ln=(on-cn)/gr+2;break;case on:Ln=(cn-vn)/gr+4}Ln*=60,Ln=Math.round(Ln)}return{h:Ln,s:pr,l:wr,a:Pn}}(F);return He=Ft.a===1?"hsl("+Ft.h+", "+Math.round(100*Ft.s)+"%, "+Math.round(100*Ft.l)+"%)":"hsla("+Ft.h+", "+Math.round(100*Ft.s)+"%, "+Math.round(100*Ft.l)+"%, "+Ft.a+")",Qe.push({label:He,textEdit:Tn.replace(pe,He)}),Qe},x.prototype.doRename=function(c,p,F,pe){var He,Qe=this.findDocumentHighlights(c,p,pe).map(function(Vt){return Tn.replace(Vt.range,F)});return{changes:(He={},He[c.uri]=Qe,He)}},x.prototype.resolveRelativeReference=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe,He,Qe,Vt,$t;return Ve(this,function(ci){switch(ci.label){case 0:return c[0]==="~"&&c[1]!=="/"&&this.fileSystemProvider?(c=c.substring(1),de(p,"file://")?(pe=function(Ft){return Ft[0]==="@"?Ft.substring(0,Ft.indexOf("/",Ft.indexOf("/")+1)):Ft.substring(0,Ft.indexOf("/"))}(c),He=F.resolveReference("/",p),Qe=$o(p),[4,this.resolvePathToModule(pe,Qe,He)]):[3,2]):[3,3];case 1:if(Vt=ci.sent())return $t=c.substring(pe.length+1),[2,Es(Vt,$t)];ci.label=2;case 2:case 3:return[2,F.resolveReference(c,p)]}})})},x.prototype.resolvePathToModule=function(c,p,F){return Pe(this,void 0,void 0,function(){var pe;return Ve(this,function(He){switch(He.label){case 0:return pe=Es(p,"node_modules",c,"package.json"),[4,this.fileExists(pe)];case 1:return He.sent()?[2,$o(pe)]:F&&p.startsWith(F)&&p.length!==F.length?[2,this.resolvePathToModule(c,$o(p),F)]:[2,void 0]}})})},x.prototype.fileExists=function(c){return Pe(this,void 0,void 0,function(){var p;return Ve(this,function(F){switch(F.label){case 0:if(!this.fileSystemProvider)return[2,!1];F.label=1;case 1:return F.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(c)];case 2:return(p=F.sent()).type===qo.Unknown&&p.size===-1?[2,!1]:[2,!0];case 3:return F.sent(),[2,!1];case 4:return[2]}})})},x}();function bt(x,c){return Sn.create(c.positionAt(x.offset),c.positionAt(x.end))}function Bt(x){if(x.type===it.Selector||x instanceof Wt&&x.parent&&x.parent instanceof Ue&&x.isCustomProperty)return Uo.Write;if(x.parent)switch(x.parent.type){case it.FunctionDeclaration:case it.MixinDeclaration:case it.Keyframe:case it.VariableDeclaration:case it.FunctionParameter:return Uo.Write}return Uo.Read}function Pt(x){var c=x.toString(16);return c.length!==2?"0"+c:c}var ni=Gt(),Ci=Ni.Warning,Vi=Ni.Error,Mi=Ni.Ignore,zi=function(x,c,p){this.id=x,this.message=c,this.defaultValue=p},Yi=function(x,c,p){this.id=x,this.message=c,this.defaultValue=p},Gi={AllVendorPrefixes:new zi("compatibleVendorPrefixes",ni("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Mi),IncludeStandardPropertyWhenUsingVendorPrefix:new zi("vendorPrefix",ni("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),Ci),DuplicateDeclarations:new zi("duplicateProperties",ni("rule.duplicateDeclarations","Do not use duplicate style definitions"),Mi),EmptyRuleSet:new zi("emptyRules",ni("rule.emptyRuleSets","Do not use empty rulesets"),Ci),ImportStatemement:new zi("importStatement",ni("rule.importDirective","Import statements do not load in parallel"),Mi),BewareOfBoxModelSize:new zi("boxModel",ni("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Mi),UniversalSelector:new zi("universalSelector",ni("rule.universalSelector","The universal selector (*) is known to be slow"),Mi),ZeroWithUnit:new zi("zeroUnits",ni("rule.zeroWidthUnit","No unit for zero needed"),Mi),RequiredPropertiesForFontFace:new zi("fontFaceProperties",ni("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),Ci),HexColorLength:new zi("hexColorLength",ni("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Vi),ArgsInColorFunction:new zi("argumentsInColorFunction",ni("rule.colorFunction","Invalid number of parameters"),Vi),UnknownProperty:new zi("unknownProperties",ni("rule.unknownProperty","Unknown property."),Ci),UnknownAtRules:new zi("unknownAtRules",ni("rule.unknownAtRules","Unknown at-rule."),Ci),IEStarHack:new zi("ieHack",ni("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Mi),UnknownVendorSpecificProperty:new zi("unknownVendorSpecificProperties",ni("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Mi),PropertyIgnoredDueToDisplay:new zi("propertyIgnoredDueToDisplay",ni("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),Ci),AvoidImportant:new zi("important",ni("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Mi),AvoidFloat:new zi("float",ni("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Mi),AvoidIdSelector:new zi("idSelector",ni("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Mi)},wn={ValidProperties:new Yi("validProperties",ni("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},nn=function(){function x(c){c===void 0&&(c={}),this.conf=c}return x.prototype.getRule=function(c){if(this.conf.hasOwnProperty(c.id)){var p=function(F){switch(F){case"ignore":return Ni.Ignore;case"warning":return Ni.Warning;case"error":return Ni.Error}return null}(this.conf[c.id]);if(p)return p}return c.defaultValue},x.prototype.getSetting=function(c){return this.conf[c.id]},x}(),Wn=Gt(),An=function(){function x(c){this.cssDataManager=c}return x.prototype.doCodeActions=function(c,p,F,pe){return this.doCodeActions2(c,p,F,pe).map(function(He){var Qe=He.edit&&He.edit.documentChanges&&He.edit.documentChanges[0];return ur.create(He.title,"_css.applyCodeAction",c.uri,c.version,Qe&&Qe.edits)})},x.prototype.doCodeActions2=function(c,p,F,pe){var He=[];if(F.diagnostics)for(var Qe=0,Vt=F.diagnostics;Qe<Vt.length;Qe++){var $t=Vt[Qe];this.appendFixesForMarker(c,pe,$t,He)}return He},x.prototype.getFixesForUnknownProperty=function(c,p,F,pe){var He=p.getName(),Qe=[];this.cssDataManager.getProperties().forEach(function(jn){var Vn=function(Ln,pr,wr){wr===void 0&&(wr=4);var gr=Math.abs(Ln.length-pr.length);if(gr>wr)return 0;var Er,yr,Fr=[],So=[];for(Er=0;Er<pr.length+1;++Er)So.push(0);for(Er=0;Er<Ln.length+1;++Er)Fr.push(So);for(Er=1;Er<Ln.length+1;++Er)for(yr=1;yr<pr.length+1;++yr)Ln[Er-1]===pr[yr-1]?Fr[Er][yr]=Fr[Er-1][yr-1]+1:Fr[Er][yr]=Math.max(Fr[Er-1][yr],Fr[Er][yr-1]);return Fr[Ln.length][pr.length]-Math.sqrt(gr)}(He,jn.name);Vn>=He.length/2&&Qe.push({property:jn.name,score:Vn})}),Qe.sort(function(jn,Vn){return Vn.score-jn.score||jn.property.localeCompare(Vn.property)});for(var Vt=3,$t=0,ci=Qe;$t<ci.length;$t++){var Ft=ci[$t].property,Fi=Wn("css.codeaction.rename","Rename to '{0}'",Ft),cn=Tn.replace(F.range,Ft),vn=Cn.create(c.uri,c.version),on={documentChanges:[Lr.create(vn,[cn])]},Pn=Ho.create(Fi,on,Wr.QuickFix);if(Pn.diagnostics=[F],pe.push(Pn),--Vt<=0)return}},x.prototype.appendFixesForMarker=function(c,p,F,pe){if(F.code===Gi.UnknownProperty.id)for(var He=c.offsetAt(F.range.start),Qe=c.offsetAt(F.range.end),Vt=wt(p,He),$t=Vt.length-1;$t>=0;$t--){var ci=Vt[$t];if(ci instanceof vt){var Ft=ci.getProperty();if(Ft&&Ft.offset===He&&Ft.end===Qe)return void this.getFixesForUnknownProperty(c,Ft,F,pe)}}},x}(),qn=function(x){this.fullPropertyName=x.getFullPropertyName().toLowerCase(),this.node=x};function or(x,c,p,F){var pe=x[c];pe.value=p,p&&(mn(pe.properties,F)||pe.properties.push(F))}function Un(x,c,p,F){c==="top"||c==="right"||c==="bottom"||c==="left"?or(x,c,p,F):function(pe,He,Qe){or(pe,"top",He,Qe),or(pe,"right",He,Qe),or(pe,"bottom",He,Qe),or(pe,"left",He,Qe)}(x,p,F)}function Tr(x,c,p){switch(c.length){case 1:Un(x,void 0,c[0],p);break;case 2:Un(x,"top",c[0],p),Un(x,"bottom",c[0],p),Un(x,"right",c[1],p),Un(x,"left",c[1],p);break;case 3:Un(x,"top",c[0],p),Un(x,"right",c[1],p),Un(x,"left",c[1],p),Un(x,"bottom",c[2],p);break;case 4:Un(x,"top",c[0],p),Un(x,"right",c[1],p),Un(x,"bottom",c[2],p),Un(x,"left",c[3],p)}}function Or(x,c){for(var p=0,F=c;p<F.length;p++){var pe=F[p];if(x.matches(pe))return!0}return!1}function zr(x,c){return c===void 0&&(c=!0),(!c||!Or(x,["initial","unset"]))&&parseFloat(x.getText())!==0}function Br(x,c){return c===void 0&&(c=!0),x.map(function(p){return zr(p,c)})}function qr(x,c){return c===void 0&&(c=!0),!Or(x,["none","hidden"])&&(!c||!Or(x,["initial","unset"]))}function Mr(x,c){return c===void 0&&(c=!0),x.map(function(p){return qr(p,c)})}function Ro(x){var c=x.getChildren();if(c.length===1)return zr(pe=c[0])&&qr(pe);for(var p=0,F=c;p<F.length;p++){var pe;if(!zr(pe=F[p],!1)||!qr(pe,!1))return!1}return!0}var Pr=Gt(),Go=function(){function x(){this.data={}}return x.prototype.add=function(c,p,F){var pe=this.data[c];pe||(pe={nodes:[],names:[]},this.data[c]=pe),pe.names.push(p),F&&pe.nodes.push(F)},x}(),Is=function(){function x(c,p,F){var pe=this;this.cssDataManager=F,this.warnings=[],this.settings=p,this.documentText=c.getText(),this.keyframes=new Go,this.validProperties={};var He=p.getSetting(wn.ValidProperties);Array.isArray(He)&&He.forEach(function(Qe){if(typeof Qe=="string"){var Vt=Qe.trim().toLowerCase();Vt.length&&(pe.validProperties[Vt]=!0)}})}return x.entries=function(c,p,F,pe,He){var Qe=new x(p,F,pe);return c.acceptVisitor(Qe),Qe.completeValidations(),Qe.getEntries(He)},x.prototype.isValidPropertyDeclaration=function(c){var p=c.fullPropertyName;return this.validProperties[p]},x.prototype.fetch=function(c,p){for(var F=[],pe=0,He=c;pe<He.length;pe++){var Qe=He[pe];Qe.fullPropertyName===p&&F.push(Qe)}return F},x.prototype.fetchWithValue=function(c,p,F){for(var pe=[],He=0,Qe=c;He<Qe.length;He++){var Vt=Qe[He];if(Vt.fullPropertyName===p){var $t=Vt.node.getValue();$t&&this.findValueInExpression($t,F)&&pe.push(Vt)}}return pe},x.prototype.findValueInExpression=function(c,p){var F=!1;return c.accept(function(pe){return pe.type===it.Identifier&&pe.matches(p)&&(F=!0),!F}),F},x.prototype.getEntries=function(c){return c===void 0&&(c=Ni.Warning|Ni.Error),this.warnings.filter(function(p){return(p.getLevel()&c)!=0})},x.prototype.addEntry=function(c,p,F){var pe=new ae(c,p,this.settings.getRule(p),F);this.warnings.push(pe)},x.prototype.getMissingNames=function(c,p){for(var F=c.slice(0),pe=0;pe<p.length;pe++){var He=F.indexOf(p[pe]);He!==-1&&(F[He]=null)}var Qe=null;for(pe=0;pe<F.length;pe++){var Vt=F[pe];Vt&&(Qe=Qe===null?Pr("namelist.single","'{0}'",Vt):Pr("namelist.concatenated","{0}, '{1}'",Qe,Vt))}return Qe},x.prototype.visitNode=function(c){switch(c.type){case it.UnknownAtRule:return this.visitUnknownAtRule(c);case it.Keyframe:return this.visitKeyframe(c);case it.FontFace:return this.visitFontFace(c);case it.Ruleset:return this.visitRuleSet(c);case it.SimpleSelector:return this.visitSimpleSelector(c);case it.Function:return this.visitFunction(c);case it.NumericValue:return this.visitNumericValue(c);case it.Import:return this.visitImport(c);case it.HexColorValue:return this.visitHexColorValue(c);case it.Prio:return this.visitPrio(c)}return!0},x.prototype.completeValidations=function(){this.validateKeyframes()},x.prototype.visitUnknownAtRule=function(c){var p=c.getChild(0);return!!p&&!this.cssDataManager.getAtDirective(p.getText())&&(this.addEntry(p,Gi.UnknownAtRules,"Unknown at rule "+p.getText()),!0)},x.prototype.visitKeyframe=function(c){var p=c.getKeyword();if(!p)return!1;var F=p.getText();return this.keyframes.add(c.getName(),F,F!=="@keyframes"?p:null),!0},x.prototype.validateKeyframes=function(){var c=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(var p in this.keyframes.data){var F=this.keyframes.data[p].names,pe=F.indexOf("@keyframes")===-1;if(pe||F.length!==1){var He=this.getMissingNames(c,F);if(He||pe)for(var Qe=0,Vt=this.keyframes.data[p].nodes;Qe<Vt.length;Qe++){var $t=Vt[Qe];if(pe){var ci=Pr("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes.");this.addEntry($t,Gi.IncludeStandardPropertyWhenUsingVendorPrefix,ci)}He&&(ci=Pr("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",He),this.addEntry($t,Gi.AllVendorPrefixes,ci))}}}return!0},x.prototype.visitSimpleSelector=function(c){var p=this.documentText.charAt(c.offset);return c.length===1&&p==="*"&&this.addEntry(c,Gi.UniversalSelector),p==="#"&&this.addEntry(c,Gi.AvoidIdSelector),!0},x.prototype.visitImport=function(c){return this.addEntry(c,Gi.ImportStatemement),!0},x.prototype.visitRuleSet=function(c){var p=c.getDeclarations();if(!p)return!1;p.hasChildren()||this.addEntry(c.getSelectors(),Gi.EmptyRuleSet);for(var F=[],pe=0,He=p.getChildren();pe<He.length;pe++)(yr=He[pe])instanceof vt&&F.push(new qn(yr));var Qe=function(el){for(var ko={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},jr=0,Ll=el;jr<Ll.length;jr++){var Fo=Ll[jr],vs=Fo.node.value;if(vs!==void 0)switch(Fo.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":ko.width=Fo;break;case"height":ko.height=Fo;break;default:var Ps=Fo.fullPropertyName.split("-");switch(Ps[0]){case"border":switch(Ps[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(Ps[2]){case void 0:Un(ko,Ps[1],Ro(vs),Fo);break;case"width":Un(ko,Ps[1],zr(vs,!1),Fo);break;case"style":Un(ko,Ps[1],qr(vs,!0),Fo)}break;case"width":Tr(ko,Br(vs.getChildren(),!1),Fo);break;case"style":Tr(ko,Mr(vs.getChildren(),!0),Fo)}break;case"padding":Ps.length===1?Tr(ko,Br(vs.getChildren(),!0),Fo):Un(ko,Ps[1],zr(vs,!0),Fo)}}}return ko}(F);if(Qe.width){var Vt=[];if(Qe.right.value&&(Vt=sn(Vt,Qe.right.properties)),Qe.left.value&&(Vt=sn(Vt,Qe.left.properties)),Vt.length!==0){for(var $t=0,ci=Vt;$t<ci.length;$t++){var Ft=ci[$t];this.addEntry(Ft.node,Gi.BewareOfBoxModelSize)}this.addEntry(Qe.width.node,Gi.BewareOfBoxModelSize)}}if(Qe.height&&(Vt=[],Qe.top.value&&(Vt=sn(Vt,Qe.top.properties)),Qe.bottom.value&&(Vt=sn(Vt,Qe.bottom.properties)),Vt.length!==0)){for(var Fi=0,cn=Vt;Fi<cn.length;Fi++)Ft=cn[Fi],this.addEntry(Ft.node,Gi.BewareOfBoxModelSize);this.addEntry(Qe.height.node,Gi.BewareOfBoxModelSize)}var vn=this.fetchWithValue(F,"display","inline");if(vn.length>0)for(var on=0,Pn=["width","height","margin-top","margin-bottom","float"];on<Pn.length;on++)for(var jn=Pn[on],Vn=this.fetch(F,jn),Ln=0;Ln<Vn.length;Ln++){var pr=Vn[Ln].node,wr=pr.getValue();(jn!=="float"||wr&&!wr.matches("none"))&&this.addEntry(pr,Gi.PropertyIgnoredDueToDisplay,Pr("rule.propertyIgnoredDueToDisplayInline","Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect."))}if((vn=this.fetchWithValue(F,"display","inline-block")).length>0)for(Vn=this.fetch(F,"float"),Ln=0;Ln<Vn.length;Ln++){var gr=Vn[Ln].node;(wr=gr.getValue())&&!wr.matches("none")&&this.addEntry(gr,Gi.PropertyIgnoredDueToDisplay,Pr("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if((vn=this.fetchWithValue(F,"display","block")).length>0)for(Vn=this.fetch(F,"vertical-align"),Ln=0;Ln<Vn.length;Ln++)this.addEntry(Vn[Ln].node,Gi.PropertyIgnoredDueToDisplay,Pr("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));var Er=this.fetch(F,"float");for(Ln=0;Ln<Er.length;Ln++){var yr=Er[Ln];this.isValidPropertyDeclaration(yr)||this.addEntry(yr.node,Gi.AvoidFloat)}for(var Fr=0;Fr<F.length;Fr++)if((yr=F[Fr]).fullPropertyName!=="background"&&!this.validProperties[yr.fullPropertyName]&&(wr=yr.node.getValue())&&this.documentText.charAt(wr.offset)!=="-"){var So=this.fetch(F,yr.fullPropertyName);if(So.length>1)for(var _s=0;_s<So.length;_s++){var Ra=So[_s].node.getValue();Ra&&this.documentText.charAt(Ra.offset)!=="-"&&So[_s]!==yr&&this.addEntry(yr.node,Gi.DuplicateDeclarations)}}if(!c.getSelectors().matches(":export")){for(var os=new Go,eo=!1,da=0,ec=F;da<ec.length;da++){var ta=(yr=ec[da]).node;if(this.isCSSDeclaration(ta)){var Po=yr.fullPropertyName,Za=Po.charAt(0);if(Za==="-"){if(Po.charAt(1)!=="-"){this.cssDataManager.isKnownProperty(Po)||this.validProperties[Po]||this.addEntry(ta.getProperty(),Gi.UnknownVendorSpecificProperty);var Ma=ta.getNonPrefixedPropertyName();os.add(Ma,Po,ta.getProperty())}}else{var ha=Po;Za!=="*"&&Za!=="_"||(this.addEntry(ta.getProperty(),Gi.IEStarHack),Po=Po.substr(1)),this.cssDataManager.isKnownProperty(ha)||this.cssDataManager.isKnownProperty(Po)||this.validProperties[Po]||this.addEntry(ta.getProperty(),Gi.UnknownProperty,Pr("property.unknownproperty.detailed","Unknown property: '{0}'",ta.getFullPropertyName())),os.add(Po,Po,null)}}else eo=!0}if(!eo)for(var ua in os.data){var kl=os.data[ua],Ms=kl.names,Pa=this.cssDataManager.isStandardProperty(ua)&&Ms.indexOf(ua)===-1;if(Pa||Ms.length!==1){for(var Xa=[],tc=(Fr=0,x.prefixes.length);Fr<tc;Fr++){var El=x.prefixes[Fr];this.cssDataManager.isStandardProperty(El+ua)&&Xa.push(El+ua)}var Qa=this.getMissingNames(Xa,Ms);if(Qa||Pa)for(var Qr=0,Ja=kl.nodes;Qr<Ja.length;Qr++){var pa=Ja[Qr];if(Pa){var Tl=Pr("property.standard.missing","Also define the standard property '{0}' for compatibility",ua);this.addEntry(pa,Gi.IncludeStandardPropertyWhenUsingVendorPrefix,Tl)}Qa&&(Tl=Pr("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",Qa),this.addEntry(pa,Gi.AllVendorPrefixes,Tl))}}}}return!0},x.prototype.visitPrio=function(c){return this.addEntry(c,Gi.AvoidImportant),!0},x.prototype.visitNumericValue=function(c){var p=c.findParent(it.Function);if(p&&p.getName()==="calc")return!0;var F=c.findParent(it.Declaration);if(F&&F.getValue()){var pe=c.getValue();if(!pe.unit||oi.length.indexOf(pe.unit.toLowerCase())===-1)return!0;parseFloat(pe.value)===0&&pe.unit&&!this.validProperties[F.getFullPropertyName()]&&this.addEntry(c,Gi.ZeroWithUnit)}return!0},x.prototype.visitFontFace=function(c){var p=c.getDeclarations();if(!p)return!1;for(var F=!1,pe=!1,He=!1,Qe=0,Vt=p.getChildren();Qe<Vt.length;Qe++){var $t=Vt[Qe];if(this.isCSSDeclaration($t)){var ci=$t.getProperty().getName().toLowerCase();ci==="src"&&(F=!0),ci==="font-family"&&(pe=!0)}else He=!0}return He||F&&pe||this.addEntry(c,Gi.RequiredPropertiesForFontFace),!0},x.prototype.isCSSDeclaration=function(c){if(c instanceof vt){if(!c.getValue())return!1;var p=c.getProperty();if(!p)return!1;var F=p.getIdentifier();return!(!F||F.containsInterpolation())}return!1},x.prototype.visitHexColorValue=function(c){var p=c.length;return p!==9&&p!==7&&p!==5&&p!==4&&this.addEntry(c,Gi.HexColorLength),!1},x.prototype.visitFunction=function(c){var p=c.getName().toLowerCase(),F=-1,pe=0;switch(p){case"rgb(":case"hsl(":F=3;break;case"rgba(":case"hsla(":F=4}return F!==-1&&(c.getArguments().accept(function(He){return!(He instanceof rn)||(pe+=1,!1)}),pe!==F&&this.addEntry(c,Gi.ArgsInColorFunction)),!0},x.prefixes=["-ms-","-moz-","-o-","-webkit-"],x}(),Gs=function(){function x(c){this.cssDataManager=c}return x.prototype.configure=function(c){this.settings=c},x.prototype.doValidation=function(c,p,F){if(F===void 0&&(F=this.settings),F&&F.validate===!1)return[];var pe=[];pe.push.apply(pe,Ge.entries(p)),pe.push.apply(pe,Is.entries(p,c,new nn(F&&F.lint),this.cssDataManager));var He=[];for(var Qe in Gi)He.push(Gi[Qe].id);return pe.filter(function(Vt){return Vt.getLevel()!==Ni.Ignore}).map(function(Vt){var $t=Sn.create(c.positionAt(Vt.getOffset()),c.positionAt(Vt.getOffset()+Vt.getLength())),ci=c.languageId;return{code:Vt.getRule().id,source:ci,message:Vt.getMessage(),severity:Vt.getLevel()===Ni.Warning?_r.Warning:_r.Error,range:$t}})},x}(),sa=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),gl="/".charCodeAt(0),Kl=` +`.charCodeAt(0),Mo="\r".charCodeAt(0),Ds="\f".charCodeAt(0),Ua="$".charCodeAt(0),uo="#".charCodeAt(0),Ea="{".charCodeAt(0),fs="=".charCodeAt(0),fl="!".charCodeAt(0),Ta="<".charCodeAt(0),Yo=">".charCodeAt(0),bl=".".charCodeAt(0),Co=("@".charCodeAt(0),h.CustomToken),_l=Co++,sr=Co++,tr=(Co++,Co++),aa=Co++,Gl=Co++,Yl=Co++,bs=Co++,Ha=(Co++,function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return sa(c,x),c.prototype.scanNext=function(p){if(this.stream.advanceIfChar(Ua)){var F=["$"];if(this.ident(F))return this.finishToken(p,_l,F.join(""));this.stream.goBackTo(p)}return this.stream.advanceIfChars([uo,Ea])?this.finishToken(p,sr):this.stream.advanceIfChars([fs,fs])?this.finishToken(p,tr):this.stream.advanceIfChars([fl,fs])?this.finishToken(p,aa):this.stream.advanceIfChar(Ta)?this.stream.advanceIfChar(fs)?this.finishToken(p,Yl):this.finishToken(p,h.Delim):this.stream.advanceIfChar(Yo)?this.stream.advanceIfChar(fs)?this.finishToken(p,Gl):this.finishToken(p,h.Delim):this.stream.advanceIfChars([bl,bl,bl])?this.finishToken(p,bs):x.prototype.scanNext.call(this,p)},c.prototype.comment=function(){return!!x.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([gl,gl]))&&(this.stream.advanceWhileChar(function(p){switch(p){case Kl:case Mo:case Ds:return!1;default:return!0}}),!0)},c}(ee)),La=Gt(),Na=function(x,c){this.id=x,this.message=c},la={FromExpected:new Na("scss-fromexpected",La("expected.from","'from' expected")),ThroughOrToExpected:new Na("scss-throughexpected",La("expected.through","'through' or 'to' expected")),InExpected:new Na("scss-fromexpected",La("expected.in","'in' expected"))},vl=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),xo=function(x){function c(){return x.call(this,new Ha)||this}return vl(c,x),c.prototype._parseStylesheetStatement=function(p){return p===void 0&&(p=!1),this.peek(h.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(p)||x.prototype._parseStylesheetAtStatement.call(this,p):this._parseRuleset(!0)||this._parseVariableDeclaration()},c.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var p=this.create(si);if(this.consumeToken(),!p.addChild(this._parseURILiteral())&&!p.addChild(this._parseStringLiteral()))return this.finish(p,le.URIOrStringExpected);for(;this.accept(h.Comma);)if(!p.addChild(this._parseURILiteral())&&!p.addChild(this._parseStringLiteral()))return this.finish(p,le.URIOrStringExpected);return this.peek(h.SemiColon)||this.peek(h.EOF)||p.setMedialist(this._parseMediaQueryList()),this.finish(p)},c.prototype._parseVariableDeclaration=function(p){if(p===void 0&&(p=[]),!this.peek(_l))return null;var F=this.create(Fe);if(!F.setVariable(this._parseVariable()))return null;if(!this.accept(h.Colon))return this.finish(F,le.ColonExpected);if(this.prevToken&&(F.colonPosition=this.prevToken.offset),!F.setValue(this._parseExpr()))return this.finish(F,le.VariableValueExpected,[],p);for(;this.peek(h.Exclamation);)if(!F.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(h.Ident,/^(default|global)$/))return this.finish(F,le.UnknownKeyword);this.consumeToken()}return this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseMediaContentStart=function(){return this._parseInterpolation()},c.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},c.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},c.prototype._parseVariable=function(){if(!this.peek(_l))return null;var p=this.create(rt);return this.consumeToken(),p},c.prototype._parseModuleMember=function(){var p=this.mark(),F=this.create(X);return F.setIdentifier(this._parseIdent([At.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(p),null):F.addChild(this._parseVariable()||this._parseFunction())?F:this.finish(F,le.IdentifierOrVariableExpected):null},c.prototype._parseIdent=function(p){var F=this;if(!this.peek(h.Ident)&&!this.peek(sr)&&!this.peekDelim("-"))return null;var pe=this.create(Wt);pe.referenceTypes=p,pe.isCustomProperty=this.peekRegExp(h.Ident,/^--/);for(var He,Qe=!1;(this.accept(h.Ident)||pe.addChild((He=void 0,He=F.mark(),F.acceptDelim("-")&&(F.hasWhitespace()||F.acceptDelim("-"),F.hasWhitespace())?(F.restoreAtMark(He),null):F._parseInterpolation()))||Qe&&this.acceptRegexp(/[\w-]/))&&(Qe=!0,!this.hasWhitespace()););return Qe?this.finish(pe):null},c.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||x.prototype._parseTermExpression.call(this)},c.prototype._parseInterpolation=function(){if(this.peek(sr)){var p=this.create(Xe);return this.consumeToken(),p.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.RightCurlyExpected):this.accept(h.CurlyR)?this.finish(p):this.finish(p,le.ExpressionExpected)}return null},c.prototype._parseOperator=function(){if(this.peek(tr)||this.peek(aa)||this.peek(Gl)||this.peek(Yl)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var p=this.createNode(it.Operator);return this.consumeToken(),this.finish(p)}return x.prototype._parseOperator.call(this)},c.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var p=this.create(pi);return this.consumeToken(),this.finish(p)}return x.prototype._parseUnaryOperator.call(this)},c.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||x.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||x.prototype._parseRuleSetDeclaration.call(this)},c.prototype._parseDeclaration=function(p){var F=this.create(vt);if(!F.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(F,le.ColonExpected,[h.Colon],p);this.prevToken&&(F.colonPosition=this.prevToken.offset);var pe=!1;if(F.setValue(this._parseExpr())&&(pe=!0,F.addChild(this._parsePrio())),this.peek(h.CurlyL))F.setNestedProperties(this._parseNestedProperties());else if(!pe)return this.finish(F,le.PropertyValueExpected);return this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseNestedProperties=function(){var p=this.create(yi);return this._parseBody(p,this._parseDeclaration.bind(this))},c.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var p=this.create(Mt);if(this.consumeToken(),!p.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(p,le.SelectorExpected);for(;this.accept(h.Comma);)p.getSelectors().addChild(this._parseSimpleSelector());return this.accept(h.Exclamation)&&!this.acceptIdent("optional")?this.finish(p,le.UnknownKeyword):this.finish(p)}return null},c.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||x.prototype._parseSimpleSelectorBody.call(this)},c.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var p=this.createNode(it.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||p.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(p)}return null},c.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var p=this.createNode(it.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(p)}return this.peekKeyword("@at-root")?(p=this.createNode(it.SelectorPlaceholder),this.consumeToken(),this.finish(p)):null},c.prototype._parseElementName=function(){var p=this.mark(),F=x.prototype._parseElementName.call(this);return F&&!this.hasWhitespace()&&this.peek(h.ParenthesisL)?(this.restoreAtMark(p),null):F},c.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||x.prototype._tryParsePseudoIdentifier.call(this)},c.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var p=this.createNode(it.Debug);return this.consumeToken(),p.addChild(this._parseExpr()),this.finish(p)},c.prototype._parseControlStatement=function(p){return p===void 0&&(p=this._parseRuleSetDeclaration.bind(this)),this.peek(h.AtKeyword)?this._parseIfStatement(p)||this._parseForStatement(p)||this._parseEachStatement(p)||this._parseWhileStatement(p):null},c.prototype._parseIfStatement=function(p){return this.peekKeyword("@if")?this._internalParseIfStatement(p):null},c.prototype._internalParseIfStatement=function(p){var F=this.create(_t);if(this.consumeToken(),!F.setExpression(this._parseExpr(!0)))return this.finish(F,le.ExpressionExpected);if(this._parseBody(F,p),this.acceptKeyword("@else")){if(this.peekIdent("if"))F.setElseClause(this._internalParseIfStatement(p));else if(this.peek(h.CurlyL)){var pe=this.create(ki);this._parseBody(pe,p),F.setElseClause(pe)}}return this.finish(F)},c.prototype._parseForStatement=function(p){if(!this.peekKeyword("@for"))return null;var F=this.create(ri);return this.consumeToken(),F.setVariable(this._parseVariable())?this.acceptIdent("from")?F.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?F.addChild(this._parseBinaryExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.ThroughOrToExpected,[h.CurlyR]):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.FromExpected,[h.CurlyR]):this.finish(F,le.VariableNameExpected,[h.CurlyR])},c.prototype._parseEachStatement=function(p){if(!this.peekKeyword("@each"))return null;var F=this.create(li);this.consumeToken();var pe=F.getVariables();if(!pe.addChild(this._parseVariable()))return this.finish(F,le.VariableNameExpected,[h.CurlyR]);for(;this.accept(h.Comma);)if(!pe.addChild(this._parseVariable()))return this.finish(F,le.VariableNameExpected,[h.CurlyR]);return this.finish(pe),this.acceptIdent("in")?F.addChild(this._parseExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR]):this.finish(F,la.InExpected,[h.CurlyR])},c.prototype._parseWhileStatement=function(p){if(!this.peekKeyword("@while"))return null;var F=this.create(gi);return this.consumeToken(),F.addChild(this._parseBinaryExpr())?this._parseBody(F,p):this.finish(F,le.ExpressionExpected,[h.CurlyR])},c.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},c.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var p=this.create(Ri);if(this.consumeToken(),!p.setIdentifier(this._parseIdent([At.Function])))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.CurlyR]);if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}return this.accept(h.ParenthesisR)?this._parseBody(p,this._parseFunctionBodyDeclaration.bind(this)):this.finish(p,le.RightParenthesisExpected,[h.CurlyR])},c.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var p=this.createNode(it.ReturnStatement);return this.consumeToken(),p.addChild(this._parseExpr())?this.finish(p):this.finish(p,le.ExpressionExpected)},c.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var p=this.create(jt);if(this.consumeToken(),!p.setIdentifier(this._parseIdent([At.Mixin])))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(this.accept(h.ParenthesisL)){if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.CurlyR])}return this._parseBody(p,this._parseRuleSetDeclaration.bind(this))},c.prototype._parseParameterDeclaration=function(){var p=this.create(ze);return p.setIdentifier(this._parseVariable())?(this.accept(bs),this.accept(h.Colon)&&!p.setDefaultValue(this._parseExpr(!0))?this.finish(p,le.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):this.finish(p)):null},c.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var p=this.create(Dt);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(p.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getArguments().addChild(this._parseFunctionArgument()))return this.finish(p,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}return this.finish(p)},c.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var p=this.create(Ht);this.consumeToken();var F=this._parseIdent([At.Mixin]);if(!p.setIdentifier(F))return this.finish(p,le.IdentifierExpected,[h.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var pe=this._parseIdent([At.Mixin]);if(!pe)return this.finish(p,le.IdentifierExpected,[h.CurlyR]);var He=this.create(X);F.referenceTypes=[At.Module],He.setIdentifier(F),p.setIdentifier(pe),p.addChild(He)}if(this.accept(h.ParenthesisL)){if(p.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getArguments().addChild(this._parseFunctionArgument()))return this.finish(p,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(h.CurlyL))&&p.setContent(this._parseMixinContentDeclaration()),this.finish(p)},c.prototype._parseMixinContentDeclaration=function(){var p=this.create(Tt);if(this.acceptIdent("using")){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.CurlyL]);if(p.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(p,le.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.CurlyL])}return this.peek(h.CurlyL)&&this._parseBody(p,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(p)},c.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},c.prototype._parseFunctionArgument=function(){var p=this.create(st),F=this.mark(),pe=this._parseVariable();if(pe)if(this.accept(h.Colon))p.setIdentifier(pe);else{if(this.accept(bs))return p.setValue(pe),this.finish(p);this.restoreAtMark(F)}return p.setValue(this._parseExpr(!0))?(this.accept(bs),p.addChild(this._parsePrio()),this.finish(p)):p.setValue(this._tryParsePrio())?this.finish(p):null},c.prototype._parseURLArgument=function(){var p=this.mark(),F=x.prototype._parseURLArgument.call(this);if(!F||!this.peek(h.ParenthesisR)){this.restoreAtMark(p);var pe=this.create(pi);return pe.addChild(this._parseBinaryExpr()),this.finish(pe)}return F},c.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var p=this.create(pi);for(this.consumeToken();p.addChild(this._parseListElement());)this.accept(h.Comma);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseListElement=function(){var p=this.create(wi),F=this._parseBinaryExpr();if(!F)return null;if(this.accept(h.Colon)){if(p.setKey(F),!p.setValue(this._parseBinaryExpr()))return this.finish(p,le.ExpressionExpected)}else p.setValue(F);return this.finish(p)},c.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var p=this.create(Si);if(this.consumeToken(),!p.addChild(this._parseStringLiteral()))return this.finish(p,le.StringLiteralExpected);if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|with/))return this.finish(p,le.UnknownKeyword);if(this.acceptIdent("as")&&!p.setIdentifier(this._parseIdent([At.Module]))&&!this.acceptDelim("*"))return this.finish(p,le.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected,[h.ParenthesisR]);if(!p.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(p,le.VariableNameExpected);for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!p.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(p,le.VariableNameExpected);if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected)}}return this.accept(h.SemiColon)||this.accept(h.EOF)?this.finish(p):this.finish(p,le.SemiColonExpected)},c.prototype._parseModuleConfigDeclaration=function(){var p=this.create(Pi);return p.setIdentifier(this._parseVariable())?this.accept(h.Colon)&&p.setValue(this._parseExpr(!0))?this.finish(p):this.finish(p,le.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):null},c.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var p=this.create(Wi);if(this.consumeToken(),!p.addChild(this._parseStringLiteral()))return this.finish(p,le.StringLiteralExpected);if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|hide|show/))return this.finish(p,le.UnknownKeyword);if(this.acceptIdent("as")){var F=this._parseIdent([At.Forward]);if(!p.setIdentifier(F))return this.finish(p,le.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(p,le.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!p.addChild(this._parseForwardVisibility()))return this.finish(p,le.IdentifierOrVariableExpected)}return this.accept(h.SemiColon)||this.accept(h.EOF)?this.finish(p):this.finish(p,le.SemiColonExpected)},c.prototype._parseForwardVisibility=function(){var p=this.create(xn);for(p.setIdentifier(this._parseIdent());p.addChild(this._parseVariable()||this._parseIdent()););return p.getChildren().length>1?p:null},c.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||x.prototype._parseSupportsCondition.call(this)},c}(ln),Zl=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Xi=Gt(),wl=function(x){function c(p,F){var pe=x.call(this,"$",p,F)||this;return Xl(c.scssModuleLoaders),Xl(c.scssModuleBuiltIns),pe}return Zl(c,x),c.prototype.isImportPathParent=function(p){return p===it.Forward||p===it.Use||x.prototype.isImportPathParent.call(this,p)},c.prototype.getCompletionForImportPath=function(p,F){var pe=p.getParent().type;if(pe===it.Forward||pe===it.Use)for(var He=0,Qe=c.scssModuleBuiltIns;He<Qe.length;He++){var Vt=Qe[He],$t={label:Vt.label,documentation:Vt.documentation,textEdit:Tn.replace(this.getCompletionRange(p),"'"+Vt.label+"'"),kind:zn.Module};F.items.push($t)}return x.prototype.getCompletionForImportPath.call(this,p,F)},c.prototype.createReplaceFunction=function(){var p=1;return function(F,pe){return"\\"+pe+": ${"+p+++":"+(c.variableDefaults[pe]||"")+"}"}},c.prototype.createFunctionProposals=function(p,F,pe,He){for(var Qe=0,Vt=p;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci=$t.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),Ft={label:$t.func.substr(0,$t.func.indexOf("(")),detail:$t.func,documentation:$t.desc,textEdit:Tn.replace(this.getCompletionRange(F),ci),insertTextFormat:er.Snippet,kind:zn.Function};pe&&(Ft.sortText="z"),He.items.push(Ft)}return He},c.prototype.getCompletionsForSelector=function(p,F,pe){return this.createFunctionProposals(c.selectorFuncs,null,!0,pe),x.prototype.getCompletionsForSelector.call(this,p,F,pe)},c.prototype.getTermProposals=function(p,F,pe){var He=c.builtInFuncs;return p&&(He=He.filter(function(Qe){return!Qe.type||!p.restrictions||p.restrictions.indexOf(Qe.type)!==-1})),this.createFunctionProposals(He,F,!0,pe),x.prototype.getTermProposals.call(this,p,F,pe)},c.prototype.getColorProposals=function(p,F,pe){return this.createFunctionProposals(c.colorProposals,F,!1,pe),x.prototype.getColorProposals.call(this,p,F,pe)},c.prototype.getCompletionsForDeclarationProperty=function(p,F){return this.getCompletionForAtDirectives(F),this.getCompletionsForSelector(null,!0,F),x.prototype.getCompletionsForDeclarationProperty.call(this,p,F)},c.prototype.getCompletionsForExtendsReference=function(p,F,pe){for(var He=0,Qe=this.getSymbolContext().findSymbolsAtOffset(this.offset,At.Rule);He<Qe.length;He++){var Vt=Qe[He],$t={label:Vt.name,textEdit:Tn.replace(this.getCompletionRange(F),Vt.name),kind:zn.Function};pe.items.push($t)}return pe},c.prototype.getCompletionForAtDirectives=function(p){var F;return(F=p.items).push.apply(F,c.scssAtDirectives),p},c.prototype.getCompletionForTopLevel=function(p){return this.getCompletionForAtDirectives(p),this.getCompletionForModuleLoaders(p),x.prototype.getCompletionForTopLevel.call(this,p),p},c.prototype.getCompletionForModuleLoaders=function(p){var F;return(F=p.items).push.apply(F,c.scssModuleLoaders),p},c.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},c.colorProposals=[{func:"red($color)",desc:Xi("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:Xi("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:Xi("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Xi("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:Xi("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:Xi("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:Xi("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Xi("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Xi("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:Xi("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:Xi("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Xi("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:Xi("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:Xi("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:Xi("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:Xi("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Xi("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Xi("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Xi("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Xi("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Xi("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Xi("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Xi("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],c.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Xi("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Xi("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Xi("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Xi("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Xi("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Xi("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Xi("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Xi("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],c.builtInFuncs=[{func:"unquote($string)",desc:Xi("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:Xi("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:Xi("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Xi("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Xi("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Xi("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Xi("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Xi("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:Xi("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Xi("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Xi("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Xi("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Xi("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:Xi("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Xi("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Xi("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:Xi("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:Xi("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Xi("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Xi("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Xi("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Xi("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Xi("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Xi("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Xi("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Xi("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Xi("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Xi("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Xi("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Xi("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Xi("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Xi("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Xi("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Xi("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Xi("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Xi("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Xi("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Xi("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:Xi("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Xi("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Xi("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Xi("scss.builtin.call","Dynamically calls a Sass function.")}],c.scssAtDirectives=[{label:"@extend",documentation:Xi("scss.builtin.@extend","Inherits the styles of another selector."),kind:zn.Keyword},{label:"@at-root",documentation:Xi("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:zn.Keyword},{label:"@debug",documentation:Xi("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:zn.Keyword},{label:"@warn",documentation:Xi("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:zn.Keyword},{label:"@error",documentation:Xi("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:zn.Keyword},{label:"@if",documentation:Xi("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} { $0 -}`,insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@for",documentation:Xi("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@each",documentation:Xi("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n $0\n}",insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@while",documentation:Xi("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} { +}`,insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@for",documentation:Xi("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@each",documentation:Xi("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n $0\n}",insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@while",documentation:Xi("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} { $0 -}`,insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@mixin",documentation:Xi("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} { +}`,insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@mixin",documentation:Xi("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} { $0 -}`,insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@include",documentation:Xi("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:zn.Keyword},{label:"@function",documentation:Xi("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:zn.Keyword}],c.scssModuleLoaders=[{label:"@use",documentation:Xi("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use '$0';",insertTextFormat:eo.Snippet,kind:zn.Keyword},{label:"@forward",documentation:Xi("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward '$0';",insertTextFormat:eo.Snippet,kind:zn.Keyword}],c.scssModuleBuiltIns=[{label:"sass:math",documentation:Xi("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Xi("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Xi("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Xi("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Xi("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Xi("scss.builtin.sass:selector","Provides access to Sass\u2019s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Xi("scss.builtin.sass:meta","Exposes the details of Sass\u2019s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],c}(Ar);function Xl(x){x.forEach(function(c){if(c.documentation&&c.references&&c.references.length>0){var p=typeof c.documentation=="string"?{kind:"markdown",value:c.documentation}:{kind:"markdown",value:c.documentation.value};p.value+=` +}`,insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@include",documentation:Xi("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:zn.Keyword},{label:"@function",documentation:Xi("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:zn.Keyword}],c.scssModuleLoaders=[{label:"@use",documentation:Xi("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use '$0';",insertTextFormat:er.Snippet,kind:zn.Keyword},{label:"@forward",documentation:Xi("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward '$0';",insertTextFormat:er.Snippet,kind:zn.Keyword}],c.scssModuleBuiltIns=[{label:"sass:math",documentation:Xi("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Xi("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Xi("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Xi("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Xi("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Xi("scss.builtin.sass:selector","Provides access to Sass\u2019s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Xi("scss.builtin.sass:meta","Exposes the details of Sass\u2019s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],c}(Ao);function Xl(x){x.forEach(function(c){if(c.documentation&&c.references&&c.references.length>0){var p=typeof c.documentation=="string"?{kind:"markdown",value:c.documentation}:{kind:"markdown",value:c.documentation.value};p.value+=` -`,p.value+=c.references.map(function(F){return"["+F.name+"]("+F.url+")"}).join(" | "),c.documentation=p}})}var Ia=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Oa="/".charCodeAt(0),yl=` -`.charCodeAt(0),Cl="\r".charCodeAt(0),Ql="\f".charCodeAt(0),xl="`".charCodeAt(0),qa=".".charCodeAt(0),pr=h.CustomToken,Ds=pr++,er=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Ia(c,x),c.prototype.scanNext=function(p){var F=this.escapedJavaScript();return F!==null?this.finishToken(p,F):this.stream.advanceIfChars([qa,qa,qa])?this.finishToken(p,Ds):x.prototype.scanNext.call(this,p)},c.prototype.comment=function(){return!!x.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Oa,Oa]))&&(this.stream.advanceWhileChar(function(p){switch(p){case yl:case Cl:case Ql:return!1;default:return!0}}),!0)},c.prototype.escapedJavaScript=function(){return this.stream.peekChar()===xl?(this.stream.advance(1),this.stream.advanceWhileChar(function(p){return p!==xl}),this.stream.advanceIfChar(xl)?h.EscapedJavaScript:h.BadEscapedJavaScript):null},c}(ee),$a=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),As=function(x){function c(){return x.call(this,new er)||this}return $a(c,x),c.prototype._parseStylesheetStatement=function(p){return p===void 0&&(p=!1),this.peek(h.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||x.prototype._parseStylesheetAtStatement.call(this,p):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},c.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var p=this.create(si);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(!this.accept(h.Ident))return this.finish(p,le.IdentifierExpected,[h.SemiColon]);do if(!this.accept(h.Comma))break;while(this.accept(h.Ident));if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.SemiColon])}return p.addChild(this._parseURILiteral())||p.addChild(this._parseStringLiteral())?(this.peek(h.SemiColon)||this.peek(h.EOF)||p.setMedialist(this._parseMediaQueryList()),this.finish(p)):this.finish(p,le.URIOrStringExpected,[h.SemiColon])},c.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var p=this.createNode(it.Plugin);return this.consumeToken(),p.addChild(this._parseStringLiteral())?this.accept(h.SemiColon)?this.finish(p):this.finish(p,le.SemiColonExpected):this.finish(p,le.StringLiteralExpected)},c.prototype._parseMediaQuery=function(p){var F=x.prototype._parseMediaQuery.call(this,p);if(!F){var pe=this.create(Hn);return pe.addChild(this._parseVariable())?this.finish(pe):null}return F},c.prototype._parseMediaDeclaration=function(p){return p===void 0&&(p=!1),this._tryParseRuleset(p)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(p)},c.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},c.prototype._parseVariableDeclaration=function(p){p===void 0&&(p=[]);var F=this.create(Fe),pe=this.mark();if(!F.setVariable(this._parseVariable(!0)))return null;if(!this.accept(h.Colon))return this.restoreAtMark(pe),null;if(this.prevToken&&(F.colonPosition=this.prevToken.offset),F.setValue(this._parseDetachedRuleSet()))F.needsSemicolon=!1;else if(!F.setValue(this._parseExpr()))return this.finish(F,le.VariableValueExpected,[],p);return F.addChild(this._parsePrio()),this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseDetachedRuleSet=function(){var p=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;var F=this.create(jt);if(F.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)F.getParameters().addChild(this._parseMixinParameter())||this.markError(F,le.IdentifierExpected,[],[h.ParenthesisR]);if(!this.accept(h.ParenthesisR))return this.restoreAtMark(p),null}if(!this.peek(h.CurlyL))return null;var pe=this.create(Ai);return this._parseBody(pe,this._parseDetachedRuleSetBody.bind(this)),this.finish(pe)},c.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},c.prototype._addLookupChildren=function(p){if(!p.addChild(this._parseLookupValue()))return!1;for(var F=!1;this.peek(h.BracketL)&&(F=!0),p.addChild(this._parseLookupValue());)F=!1;return!F},c.prototype._parseLookupValue=function(){var p=this.create(pi),F=this.mark();return this.accept(h.BracketL)&&((p.addChild(this._parseVariable(!1,!0))||p.addChild(this._parsePropertyIdentifier()))&&this.accept(h.BracketR)||this.accept(h.BracketR))?p:(this.restoreAtMark(F),null)},c.prototype._parseVariable=function(p,F){p===void 0&&(p=!1),F===void 0&&(F=!1);var pe=!p&&this.peekDelim("$");if(!this.peekDelim("@")&&!pe&&!this.peek(h.AtKeyword))return null;for(var He=this.create(ot),Qe=this.mark();this.acceptDelim("@")||!p&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(Qe),null;return(this.accept(h.AtKeyword)||this.accept(h.Ident))&&(F||!this.peek(h.BracketL)||this._addLookupChildren(He))?He:(this.restoreAtMark(Qe),null)},c.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||x.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},c.prototype._parseEscaped=function(){if(this.peek(h.EscapedJavaScript)||this.peek(h.BadEscapedJavaScript)){var p=this.createNode(it.EscapedValue);return this.consumeToken(),this.finish(p)}return this.peekDelim("~")?(p=this.createNode(it.EscapedValue),this.consumeToken(),this.accept(h.String)||this.accept(h.EscapedJavaScript)?this.finish(p):this.finish(p,le.TermExpected)):null},c.prototype._parseOperator=function(){var p=this._parseGuardOperator();return p||x.prototype._parseOperator.call(this)},c.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var p=this.createNode(it.Operator);return this.consumeToken(),this.acceptDelim("="),p}return this.peekDelim("=")?(p=this.createNode(it.Operator),this.consumeToken(),this.acceptDelim("<"),p):this.peekDelim("<")?(p=this.createNode(it.Operator),this.consumeToken(),this.acceptDelim("="),p):null},c.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||x.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||x.prototype._parseRuleSetDeclaration.call(this)},c.prototype._parseKeyframeIdent=function(){return this._parseIdent([At.Keyframe])||this._parseVariable()},c.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||x.prototype._parseKeyframeSelector.call(this)},c.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||x.prototype._parseSimpleSelectorBody.call(this)},c.prototype._parseSelector=function(p){var F=this.create(Bi),pe=!1;for(p&&(pe=F.addChild(this._parseCombinator()));F.addChild(this._parseSimpleSelector());){pe=!0;var He=this.mark();if(F.addChild(this._parseGuard())&&this.peek(h.CurlyL))break;this.restoreAtMark(He),F.addChild(this._parseCombinator())}return pe?this.finish(F):null},c.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var p=this.createNode(it.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||p.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(p)}return null},c.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var p=this.createNode(it.SelectorInterpolation);return this._acceptInterpolatedIdent(p)?this.finish(p):null},c.prototype._parsePropertyIdentifier=function(p){p===void 0&&(p=!1);var F=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,F))return null;var pe=this.mark(),He=this.create(Wt);return He.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-"),(p?He.isCustomProperty?He.addChild(this._parseIdent()):He.addChild(this._parseRegexp(F)):He.isCustomProperty?this._acceptInterpolatedIdent(He):this._acceptInterpolatedIdent(He,F))?(p||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(He)):(this.restoreAtMark(pe),null)},c.prototype.peekInterpolatedIdent=function(){return this.peek(h.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},c.prototype._acceptInterpolatedIdent=function(p,F){for(var pe=this,He=!1,Qe=function(){var $t=pe.mark();return pe.acceptDelim("-")&&(pe.hasWhitespace()||pe.acceptDelim("-"),pe.hasWhitespace())?(pe.restoreAtMark($t),null):pe._parseInterpolation()},Vt=F?function(){return pe.acceptRegexp(F)}:function(){return pe.accept(h.Ident)};(Vt()||p.addChild(this._parseInterpolation()||this.try(Qe)))&&(He=!0,!this.hasWhitespace()););return He},c.prototype._parseInterpolation=function(){var p=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var F=this.createNode(it.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(h.CurlyL)?(this.restoreAtMark(p),null):F.addChild(this._parseIdent())?this.accept(h.CurlyR)?this.finish(F):this.finish(F,le.RightCurlyExpected):this.finish(F,le.IdentifierExpected)}return null},c.prototype._tryParseMixinDeclaration=function(){var p=this.mark(),F=this.create(jt);if(!F.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;if(F.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)F.getParameters().addChild(this._parseMixinParameter())||this.markError(F,le.IdentifierExpected,[],[h.ParenthesisR]);return this.accept(h.ParenthesisR)?(F.setGuard(this._parseGuard()),this.peek(h.CurlyL)?this._parseBody(F,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(p),null)):(this.restoreAtMark(p),null)},c.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},c.prototype._parseMixinDeclarationIdentifier=function(){var p;if(this.peekDelim("#")||this.peekDelim(".")){if(p=this.create(Wt),this.consumeToken(),this.hasWhitespace()||!p.addChild(this._parseIdent()))return null}else{if(!this.peek(h.Hash))return null;p=this.create(Wt),this.consumeToken()}return p.referenceTypes=[At.Mixin],this.finish(p)},c.prototype._parsePseudo=function(){if(!this.peek(h.Colon))return null;var p=this.mark(),F=this.create(Mt);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(F):(this.restoreAtMark(p),x.prototype._parsePseudo.call(this))},c.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var p=this.mark(),F=this.create(Mt);return this.consumeToken(),!this.hasWhitespace()&&this.accept(h.Colon)&&this.acceptIdent("extend")?this._completeExtends(F):(this.restoreAtMark(p),null)},c.prototype._completeExtends=function(p){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected);var F=p.getSelectors();if(!F.addChild(this._parseSelector(!0)))return this.finish(p,le.SelectorExpected);for(;this.accept(h.Comma);)if(!F.addChild(this._parseSelector(!0)))return this.finish(p,le.SelectorExpected);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(h.AtKeyword))return null;var p=this.mark(),F=this.create(Ht);return!F.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(h.ParenthesisL)?this.accept(h.ParenthesisR)?this.finish(F):this.finish(F,le.RightParenthesisExpected):(this.restoreAtMark(p),null)},c.prototype._tryParseMixinReference=function(p){p===void 0&&(p=!0);for(var F=this.mark(),pe=this.create(Ht),He=this._parseMixinDeclarationIdentifier();He;){this.acceptDelim(">");var Qe=this._parseMixinDeclarationIdentifier();if(!Qe)break;pe.getNamespaces().addChild(He),He=Qe}if(!pe.setIdentifier(He))return this.restoreAtMark(F),null;var Vt=!1;if(this.accept(h.ParenthesisL)){if(Vt=!0,pe.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!pe.getArguments().addChild(this._parseMixinArgument()))return this.finish(pe,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(pe,le.RightParenthesisExpected);He.referenceTypes=[At.Mixin]}else He.referenceTypes=[At.Mixin,At.Rule];return this.peek(h.BracketL)?p||this._addLookupChildren(pe):pe.addChild(this._parsePrio()),Vt||this.peek(h.SemiColon)||this.peek(h.CurlyR)||this.peek(h.EOF)?this.finish(pe):(this.restoreAtMark(F),null)},c.prototype._parseMixinArgument=function(){var p=this.create(st),F=this.mark(),pe=this._parseVariable();return pe&&(this.accept(h.Colon)?p.setIdentifier(pe):this.restoreAtMark(F)),p.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(p):(this.restoreAtMark(F),null)},c.prototype._parseMixinParameter=function(){var p=this.create(ze);if(this.peekKeyword("@rest")){var F=this.create(pi);return this.consumeToken(),this.accept(Ds)?(p.setIdentifier(this.finish(F)),this.finish(p)):this.finish(p,le.DotExpected,[],[h.Comma,h.ParenthesisR])}if(this.peek(Ds)){var pe=this.create(pi);return this.consumeToken(),p.setIdentifier(this.finish(pe)),this.finish(p)}var He=!1;return p.setIdentifier(this._parseVariable())&&(this.accept(h.Colon),He=!0),p.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||He?this.finish(p):null},c.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var p=this.create(Ti);if(this.consumeToken(),p.isNegated=this.acceptIdent("not"),!p.getConditions().addChild(this._parseGuardCondition()))return this.finish(p,le.ConditionExpected);for(;this.acceptIdent("and")||this.accept(h.Comma);)if(!p.getConditions().addChild(this._parseGuardCondition()))return this.finish(p,le.ConditionExpected);return this.finish(p)},c.prototype._parseGuardCondition=function(){if(!this.peek(h.ParenthesisL))return null;var p=this.create(ft);return this.consumeToken(),p.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseFunction=function(){var p=this.mark(),F=this.create(ut);if(!F.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;if(F.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!F.getArguments().addChild(this._parseMixinArgument()))return this.finish(F,le.ExpressionExpected)}return this.accept(h.ParenthesisR)?this.finish(F):this.finish(F,le.RightParenthesisExpected)},c.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var p=this.create(Wt);return p.referenceTypes=[At.Function],this.consumeToken(),this.finish(p)}return x.prototype._parseFunctionIdentifier.call(this)},c.prototype._parseURLArgument=function(){var p=this.mark(),F=x.prototype._parseURLArgument.call(this);if(!F||!this.peek(h.ParenthesisR)){this.restoreAtMark(p);var pe=this.create(pi);return pe.addChild(this._parseBinaryExpr()),this.finish(pe)}return F},c}(ln),Ys=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Bn=Gt(),Zs=function(x){function c(p,F){return x.call(this,"@",p,F)||this}return Ys(c,x),c.prototype.createFunctionProposals=function(p,F,pe,He){for(var Qe=0,Vt=p;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci={label:$t.name,detail:$t.example,documentation:$t.description,textEdit:Tn.replace(this.getCompletionRange(F),$t.name+"($0)"),insertTextFormat:eo.Snippet,kind:zn.Function};pe&&(ci.sortText="z"),He.items.push(ci)}return He},c.prototype.getTermProposals=function(p,F,pe){var He=c.builtInProposals;return p&&(He=He.filter(function(Qe){return!Qe.type||!p.restrictions||p.restrictions.indexOf(Qe.type)!==-1})),this.createFunctionProposals(He,F,!0,pe),x.prototype.getTermProposals.call(this,p,F,pe)},c.prototype.getColorProposals=function(p,F,pe){return this.createFunctionProposals(c.colorProposals,F,!1,pe),x.prototype.getColorProposals.call(this,p,F,pe)},c.prototype.getCompletionsForDeclarationProperty=function(p,F){return this.getCompletionsForSelector(null,!0,F),x.prototype.getCompletionsForDeclarationProperty.call(this,p,F)},c.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Bn("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Bn("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Bn("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Bn("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Bn("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Bn("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Bn("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:Bn("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Bn("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Bn("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Bn("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Bn("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Bn("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Bn("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:Bn("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Bn("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Bn("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:Bn("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:Bn("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Bn("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Bn("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Bn("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Bn("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:Bn("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:Bn("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Bn("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:Bn("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Bn("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Bn("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Bn("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],c.colorProposals=[{name:"argb",example:"argb(@color);",description:Bn("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Bn("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Bn("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Bn("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Bn("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:Bn("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Bn("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Bn("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Bn("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Bn("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Bn("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Bn("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Bn("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Bn("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Bn("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Bn("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Bn("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Bn("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Bn("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Bn("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Bn("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Bn("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Bn("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Bn("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Bn("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Bn("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Bn("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],c}(Ar);function ca(x,c){return function(p,F){var pe=F&&F.rangeLimit||Number.MAX_VALUE,He=p.sort(function($t,ci){var Ft=$t.startLine-ci.startLine;return Ft===0&&(Ft=$t.endLine-ci.endLine),Ft}),Qe=[],Vt=-1;return He.forEach(function($t){$t.startLine<Vt&&Vt<$t.endLine||(Qe.push($t),Vt=$t.endLine)}),Qe.length<pe?Qe:Qe.slice(0,pe)}(function(p){function F(Fi){return p.positionAt(Fi.offset).line}function pe(Fi){return p.positionAt(Fi.offset+Fi.len).line}var He=[],Qe=[],Vt=function(){switch(p.languageId){case"scss":return new Ha;case"less":return new er;default:return new ee}}();Vt.ignoreComment=!1,Vt.setSource(p.getText());for(var $t=Vt.scan(),ci=null,Ft=function(){switch($t.type){case h.CurlyL:case so:Qe.push({line:F($t),type:"brace",isStart:!0});break;case h.CurlyR:if(Qe.length!==0){if(!(rn=Da(Qe,"brace")))break;var Fi=pe($t);rn.type==="brace"&&(ci&&pe(ci)!==Fi&&Fi--,rn.line!==Fi&&He.push({startLine:rn.line,endLine:Fi,kind:void 0}))}break;case h.Comment:var cn=function(jn){return jn==="#region"?{line:F($t),type:"comment",isStart:!0}:{line:pe($t),type:"comment",isStart:!1}},vn=function(jn){var Vn=jn.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(Vn)return cn(Vn[1]);if(p.languageId==="scss"||p.languageId==="less"){var Ln=jn.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(Ln)return cn(Ln[1])}return null}($t);if(vn)if(vn.isStart)Qe.push(vn);else{var rn;if(!(rn=Da(Qe,"comment")))break;rn.type==="comment"&&rn.line!==vn.line&&He.push({startLine:rn.line,endLine:vn.line,kind:"region"})}else{var Pn=function(jn,Vn){var Ln=F(jn),mo=pe(jn);return Ln!==mo?{startLine:Ln,endLine:mo,kind:Vn}:null}($t,"comment");Pn&&He.push(Pn)}}ci=$t,$t=Vt.scan()};$t.type!==h.EOF;)Ft();return He}(x),c)}function Da(x,c){if(x.length===0)return null;for(var p=x.length-1;p>=0;p--)if(x[p].type===c&&x[p].isStart)return x.splice(p,1)[0];return null}var ao={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:59,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:81,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:50,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:69,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",syntax:"<timing-function>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element\u2019s contents: if the element has a scrolling mechanism, the background scrolls with the element\u2019s contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element\u2019s border.)"}],syntax:"<attachment>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",syntax:"<box>#",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",syntax:"<bg-position>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",values:[{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"left",description:"Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."},{name:"right",description:"Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",values:[{name:"bottom",description:"Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."},{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"top",description:"Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Logical 'width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",syntax:"<line-width> || <line-style> || <color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",syntax:"<line-width> || <line-style> || <color>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",syntax:"<'border-top-color'>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",syntax:"<length-percentage>{1,2}",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",syntax:"<line-style>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",syntax:"<line-width>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",values:[],syntax:"<color>{1,4}",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",syntax:"<line-width> || <line-style> || <color>",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",syntax:"<color>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",syntax:"<line-width>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",syntax:"<line-width> || <line-style> || <color>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",syntax:"<color>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",syntax:"<line-width>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",syntax:"<length> <length>?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",values:[],syntax:"<line-style>{1,4}",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",syntax:"<line-width> || <line-style> || <color>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",syntax:"<color>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",syntax:"<length-percentage>{1,2}",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",syntax:"<line-style>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",values:[],syntax:"<line-width>{1,4}",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S6.1","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:50,description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element\u2019s box.",restrictions:["enum"]},{name:"clip-path",values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:52,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","C52","O40"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ size || layout || style || paint ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <custom-ident> <integer>? ]+ | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <custom-ident> <integer>? ]+ | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",description:"Indicates that something can be grabbed."},{name:"grabbing",description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",description:"Inline-level flex container."},{name:"inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck"},{name:"-moz-grid"},{name:"-moz-grid-group"},{name:"-moz-grid-line"},{name:"-moz-groupbox"},{name:"-moz-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid"},{name:"-moz-inline-stack"},{name:"-moz-marker"},{name:"-moz-popup"},{name:"-moz-stack"},{name:"-ms-flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background"},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can\u2019t create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:74,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."}],syntax:"content | <'width'>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:78,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"flex-flow",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",syntax:"<number>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",syntax:"<number>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",values:[{name:"inline-end",description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",values:[{name:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],syntax:"<family-name>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],syntax:"normal | <feature-tag-value>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["E79","FF40","C43","O30"],values:[{name:"none",description:"Do not preserve the font\u2019s x-height."}],syntax:"none | <number>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",description:"Indicates a wider value relative to the width of the parent element."}],syntax:"<font-stretch-absolute>{1,2}",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],syntax:"normal | italic | oblique <angle>{0,2}",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["FF34","S9"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["FF34"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of \u2018normal\u2019 implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["FF34"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],syntax:"<font-weight-absolute>{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:"If specified, the auto-placement algorithm uses a \u201Cdense\u201D packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later."}],syntax:"[ row | column ] || dense",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:1,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:1,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:1,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn\u2019t define any named grid areas."}],syntax:"none | <string>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Logical 'height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:82,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],syntax:"auto | loose | normal | strict | anywhere",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",values:[{name:"none",description:"The default contents of the of the list item\u2019s marker are given by 'list-style-type' instead."}],syntax:"<url> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item\u2019s marker",restrictions:["enum","string"]},{name:"margin",values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given \u2018path\u2019 element or basic shape.",restrictions:["url"]},{name:"marker-end",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E16","FF53","S4","C1","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["FF53"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E79","FF53","S4","C1","O15"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E18","FF53","S3.2","C1","O15"],syntax:"<position>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E18","FF53","S3.2","C1","O15"],syntax:"<repeat-style>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E18","FF53","S4","C4","O15"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S6.1","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Logical 'max-width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S10.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Logical 'max-height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Logical 'min-width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Logical 'min-height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E12","IE10"],relevance:50,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E12","IE10"],relevance:50,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE5"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"}],description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030\u2013U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content\u2019s containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E16","FF36","S10","C31","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E16","FF36","S10","C31","O19"],syntax:"<position>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",syntax:"<alpha-value>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",syntax:"<integer>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",values:[{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"<color> | invert",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",syntax:"<line-width>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",description:"Same as the standardized 'clip', except doesn\u2019t establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],syntax:"<integer> && <symbol>",relevance:50,description:"@counter-style descriptor. Specifies a \u201Cfixed-width\u201D counter style, where representations shorter than the pad value are padded with a particular <symbol>",restrictions:["integer","image","string","identifier"]},{name:"padding",values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E17","FF60","S8","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and the pointer is over either the interior or the perimete of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over a \u2018painted\u2019 area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38"],values:[{name:"auto",browsers:["FF38"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E12","FF38"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],status:"experimental",syntax:"over | under | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"}],description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container\u2019s snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"}],description:"Define the x and y coordinate within the scroll container\u2019s visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"}],description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"}],description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | <shape-box> || <basic-shape> | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:52,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:67,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",relevance:51,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:63,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:58,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",relevance:58,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:50,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",relevance:50,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",relevance:51,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",relevance:60,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:"Represents \u201Csign-value\u201D numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together."},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:`interprets the list of counter symbols as digits to a "place-value" numbering system, similar to the default 'decimal' counter style.`},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter\u2019s representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF4","S6.1","C21","O15"],syntax:"<integer> | <length>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E12","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S5.1","C48","O15"],values:[{name:"sideways",browsers:["E79","FF41","S5.1","C48","O15"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S5.1","C48","O15"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xB0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The \u2018text-rendering\u2019 property provides these hints.",restrictions:["enum"]},{name:"text-shadow",values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element\u2019s text.",restrictions:["enum"]},{name:"text-underline-position",values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline\u2019s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element\u2019s content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x"},{name:"cross-slide-y"},{name:"double-tap-zoom"},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element\u2019s nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element\u2019s nearest ancestor with vertically scrollable content."},{name:"pinch-zoom"}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",syntax:"<timing-function>#",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00\u2013FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200\u201322FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530\u201358F",description:"Armenian."},{name:"U+590\u20135FF",description:"Hebrew."},{name:"U+600\u20136FF",description:"Arabic."},{name:"U+750\u201377F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0\u20138FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700\u201374F",description:"Syriac."},{name:"U+900\u201397F",description:"Devanagari."},{name:"U+980\u20139FF",description:"Bengali."},{name:"U+A00\u2013A7F",description:"Gurmukhi."},{name:"U+A80\u2013AFF",description:"Gujarati."},{name:"U+B00\u2013B7F",description:"Oriya."},{name:"U+B80\u2013BFF",description:"Tamil."},{name:"U+C00\u2013C7F",description:"Telugu."},{name:"U+C80\u2013CFF",description:"Kannada."},{name:"U+D00\u2013D7F",description:"Malayalam."},{name:"U+D80\u2013DFF",description:"Sinhala."},{name:"U+118A0\u2013118FF",description:"Warang Citi."},{name:"U+E00\u2013E7F",description:"Thai."},{name:"U+1A20\u20131AAF",description:"Tai Tham."},{name:"U+AA80\u2013AADF",description:"Tai Viet."},{name:"U+E80\u2013EFF",description:"Lao."},{name:"U+F00\u2013FFF",description:"Tibetan."},{name:"U+1000\u2013109F",description:"Myanmar (Burmese)."},{name:"U+10A0\u201310FF",description:"Georgian."},{name:"U+1200\u2013137F",description:"Ethiopic."},{name:"U+1380\u2013139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80\u20132DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00\u2013AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780\u201317FF",description:"Khmer."},{name:"U+1800\u201318AF",description:"Mongolian."},{name:"U+1B80\u20131BBF",description:"Sundanese."},{name:"U+1CC0\u20131CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00\u20139FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400\u20134DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00\u20132FDF",description:"Kangxi Radicals."},{name:"U+2E80\u20132EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100\u201311FF",description:"Hangul Jamo."},{name:"U+AC00\u2013D7AF",description:"Hangul Syllables."},{name:"U+3040\u2013309F",description:"Hiragana."},{name:"U+30A0\u201330FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0\u2013A4FF",description:"Lisu."},{name:"U+A000\u2013A48F",description:"Yi Syllables."},{name:"U+A490\u2013A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000\u2013303F",description:"CJK Symbols and Punctuation."},{name:"U+2070\u2013209F",description:"Superscripts and Subscripts."},{name:"U+20A0\u201320CF",description:"Currency Symbols."},{name:"U+2100\u2013214F",description:"Letterlike Symbols."},{name:"U+2150\u2013218F",description:"Number Forms."},{name:"U+2190\u201321FF",description:"Arrows."},{name:"U+2200\u201322FF",description:"Mathematical Operators."},{name:"U+2300\u201323FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00\u2013FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50\u2013FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600\u20131F64F",description:"Emoji: Emoticons."},{name:"U+2600\u201326FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300\u20131F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900\u20131F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680\u20131F6FF",description:"Emoji: Transport and Map Symbols."}],syntax:"<unicode-range>#",relevance:58,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],status:"nonstandard",syntax:"auto | text | none | contain | all",relevance:24,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle"}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the \u2018display\u2019 property to \u2018none\u2019 to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["C","S3"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["C","S3"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O\u226415"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],status:"nonstandard",syntax:"<length> || <color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<length>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["C","S3.1"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["C","S3.1"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["C","S4"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["S3"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["C","S3"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],status:"nonstandard",syntax:"read-only | read-write | read-write-plaintext-only",relevance:0,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"white-space",values:[{name:"normal",description:"Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'."},{name:"nowrap",description:"Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'."},{name:"pre",description:"Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'."},{name:"pre-line",description:"Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'."},{name:"pre-wrap",description:"Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'."}],syntax:"normal | pre | nowrap | pre-wrap | pre-line | break-spaces",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],description:"Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element\u2019s contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length-percentage>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:"Specifies additional spacing between \u201Cwords\u201D.",restrictions:["length","percentage"]},{name:"word-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],syntax:"auto | <number> | <percentage>",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"}],description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,browsers:["FF55"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"}],description:`If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value. +`,p.value+=c.references.map(function(F){return"["+F.name+"]("+F.url+")"}).join(" | "),c.documentation=p}})}var Ia=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Da="/".charCodeAt(0),yl=` +`.charCodeAt(0),Cl="\r".charCodeAt(0),Ql="\f".charCodeAt(0),xl="`".charCodeAt(0),qa=".".charCodeAt(0),po=h.CustomToken,Os=po++,Jr=function(x){function c(){return x!==null&&x.apply(this,arguments)||this}return Ia(c,x),c.prototype.scanNext=function(p){var F=this.escapedJavaScript();return F!==null?this.finishToken(p,F):this.stream.advanceIfChars([qa,qa,qa])?this.finishToken(p,Os):x.prototype.scanNext.call(this,p)},c.prototype.comment=function(){return!!x.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Da,Da]))&&(this.stream.advanceWhileChar(function(p){switch(p){case yl:case Cl:case Ql:return!1;default:return!0}}),!0)},c.prototype.escapedJavaScript=function(){return this.stream.peekChar()===xl?(this.stream.advance(1),this.stream.advanceWhileChar(function(p){return p!==xl}),this.stream.advanceIfChar(xl)?h.EscapedJavaScript:h.BadEscapedJavaScript):null},c}(ee),$a=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),As=function(x){function c(){return x.call(this,new Jr)||this}return $a(c,x),c.prototype._parseStylesheetStatement=function(p){return p===void 0&&(p=!1),this.peek(h.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||x.prototype._parseStylesheetAtStatement.call(this,p):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},c.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var p=this.create(si);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(!this.accept(h.Ident))return this.finish(p,le.IdentifierExpected,[h.SemiColon]);do if(!this.accept(h.Comma))break;while(this.accept(h.Ident));if(!this.accept(h.ParenthesisR))return this.finish(p,le.RightParenthesisExpected,[h.SemiColon])}return p.addChild(this._parseURILiteral())||p.addChild(this._parseStringLiteral())?(this.peek(h.SemiColon)||this.peek(h.EOF)||p.setMedialist(this._parseMediaQueryList()),this.finish(p)):this.finish(p,le.URIOrStringExpected,[h.SemiColon])},c.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var p=this.createNode(it.Plugin);return this.consumeToken(),p.addChild(this._parseStringLiteral())?this.accept(h.SemiColon)?this.finish(p):this.finish(p,le.SemiColonExpected):this.finish(p,le.StringLiteralExpected)},c.prototype._parseMediaQuery=function(p){var F=x.prototype._parseMediaQuery.call(this,p);if(!F){var pe=this.create(Hn);return pe.addChild(this._parseVariable())?this.finish(pe):null}return F},c.prototype._parseMediaDeclaration=function(p){return p===void 0&&(p=!1),this._tryParseRuleset(p)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(p)},c.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},c.prototype._parseVariableDeclaration=function(p){p===void 0&&(p=[]);var F=this.create(Fe),pe=this.mark();if(!F.setVariable(this._parseVariable(!0)))return null;if(!this.accept(h.Colon))return this.restoreAtMark(pe),null;if(this.prevToken&&(F.colonPosition=this.prevToken.offset),F.setValue(this._parseDetachedRuleSet()))F.needsSemicolon=!1;else if(!F.setValue(this._parseExpr()))return this.finish(F,le.VariableValueExpected,[],p);return F.addChild(this._parsePrio()),this.peek(h.SemiColon)&&(F.semicolonPosition=this.token.offset),this.finish(F)},c.prototype._parseDetachedRuleSet=function(){var p=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;var F=this.create(jt);if(F.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)F.getParameters().addChild(this._parseMixinParameter())||this.markError(F,le.IdentifierExpected,[],[h.ParenthesisR]);if(!this.accept(h.ParenthesisR))return this.restoreAtMark(p),null}if(!this.peek(h.CurlyL))return null;var pe=this.create(Ai);return this._parseBody(pe,this._parseDetachedRuleSetBody.bind(this)),this.finish(pe)},c.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},c.prototype._addLookupChildren=function(p){if(!p.addChild(this._parseLookupValue()))return!1;for(var F=!1;this.peek(h.BracketL)&&(F=!0),p.addChild(this._parseLookupValue());)F=!1;return!F},c.prototype._parseLookupValue=function(){var p=this.create(pi),F=this.mark();return this.accept(h.BracketL)&&((p.addChild(this._parseVariable(!1,!0))||p.addChild(this._parsePropertyIdentifier()))&&this.accept(h.BracketR)||this.accept(h.BracketR))?p:(this.restoreAtMark(F),null)},c.prototype._parseVariable=function(p,F){p===void 0&&(p=!1),F===void 0&&(F=!1);var pe=!p&&this.peekDelim("$");if(!this.peekDelim("@")&&!pe&&!this.peek(h.AtKeyword))return null;for(var He=this.create(rt),Qe=this.mark();this.acceptDelim("@")||!p&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(Qe),null;return(this.accept(h.AtKeyword)||this.accept(h.Ident))&&(F||!this.peek(h.BracketL)||this._addLookupChildren(He))?He:(this.restoreAtMark(Qe),null)},c.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||x.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},c.prototype._parseEscaped=function(){if(this.peek(h.EscapedJavaScript)||this.peek(h.BadEscapedJavaScript)){var p=this.createNode(it.EscapedValue);return this.consumeToken(),this.finish(p)}return this.peekDelim("~")?(p=this.createNode(it.EscapedValue),this.consumeToken(),this.accept(h.String)||this.accept(h.EscapedJavaScript)?this.finish(p):this.finish(p,le.TermExpected)):null},c.prototype._parseOperator=function(){var p=this._parseGuardOperator();return p||x.prototype._parseOperator.call(this)},c.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var p=this.createNode(it.Operator);return this.consumeToken(),this.acceptDelim("="),p}return this.peekDelim("=")?(p=this.createNode(it.Operator),this.consumeToken(),this.acceptDelim("<"),p):this.peekDelim("<")?(p=this.createNode(it.Operator),this.consumeToken(),this.acceptDelim("="),p):null},c.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||x.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||x.prototype._parseRuleSetDeclaration.call(this)},c.prototype._parseKeyframeIdent=function(){return this._parseIdent([At.Keyframe])||this._parseVariable()},c.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||x.prototype._parseKeyframeSelector.call(this)},c.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||x.prototype._parseSimpleSelectorBody.call(this)},c.prototype._parseSelector=function(p){var F=this.create(Bi),pe=!1;for(p&&(pe=F.addChild(this._parseCombinator()));F.addChild(this._parseSimpleSelector());){pe=!0;var He=this.mark();if(F.addChild(this._parseGuard())&&this.peek(h.CurlyL))break;this.restoreAtMark(He),F.addChild(this._parseCombinator())}return pe?this.finish(F):null},c.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var p=this.createNode(it.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||p.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(p)}return null},c.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var p=this.createNode(it.SelectorInterpolation);return this._acceptInterpolatedIdent(p)?this.finish(p):null},c.prototype._parsePropertyIdentifier=function(p){p===void 0&&(p=!1);var F=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,F))return null;var pe=this.mark(),He=this.create(Wt);return He.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-"),(p?He.isCustomProperty?He.addChild(this._parseIdent()):He.addChild(this._parseRegexp(F)):He.isCustomProperty?this._acceptInterpolatedIdent(He):this._acceptInterpolatedIdent(He,F))?(p||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(He)):(this.restoreAtMark(pe),null)},c.prototype.peekInterpolatedIdent=function(){return this.peek(h.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},c.prototype._acceptInterpolatedIdent=function(p,F){for(var pe=this,He=!1,Qe=function(){var $t=pe.mark();return pe.acceptDelim("-")&&(pe.hasWhitespace()||pe.acceptDelim("-"),pe.hasWhitespace())?(pe.restoreAtMark($t),null):pe._parseInterpolation()},Vt=F?function(){return pe.acceptRegexp(F)}:function(){return pe.accept(h.Ident)};(Vt()||p.addChild(this._parseInterpolation()||this.try(Qe)))&&(He=!0,!this.hasWhitespace()););return He},c.prototype._parseInterpolation=function(){var p=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var F=this.createNode(it.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(h.CurlyL)?(this.restoreAtMark(p),null):F.addChild(this._parseIdent())?this.accept(h.CurlyR)?this.finish(F):this.finish(F,le.RightCurlyExpected):this.finish(F,le.IdentifierExpected)}return null},c.prototype._tryParseMixinDeclaration=function(){var p=this.mark(),F=this.create(jt);if(!F.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;if(F.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)F.getParameters().addChild(this._parseMixinParameter())||this.markError(F,le.IdentifierExpected,[],[h.ParenthesisR]);return this.accept(h.ParenthesisR)?(F.setGuard(this._parseGuard()),this.peek(h.CurlyL)?this._parseBody(F,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(p),null)):(this.restoreAtMark(p),null)},c.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},c.prototype._parseMixinDeclarationIdentifier=function(){var p;if(this.peekDelim("#")||this.peekDelim(".")){if(p=this.create(Wt),this.consumeToken(),this.hasWhitespace()||!p.addChild(this._parseIdent()))return null}else{if(!this.peek(h.Hash))return null;p=this.create(Wt),this.consumeToken()}return p.referenceTypes=[At.Mixin],this.finish(p)},c.prototype._parsePseudo=function(){if(!this.peek(h.Colon))return null;var p=this.mark(),F=this.create(Mt);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(F):(this.restoreAtMark(p),x.prototype._parsePseudo.call(this))},c.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var p=this.mark(),F=this.create(Mt);return this.consumeToken(),!this.hasWhitespace()&&this.accept(h.Colon)&&this.acceptIdent("extend")?this._completeExtends(F):(this.restoreAtMark(p),null)},c.prototype._completeExtends=function(p){if(!this.accept(h.ParenthesisL))return this.finish(p,le.LeftParenthesisExpected);var F=p.getSelectors();if(!F.addChild(this._parseSelector(!0)))return this.finish(p,le.SelectorExpected);for(;this.accept(h.Comma);)if(!F.addChild(this._parseSelector(!0)))return this.finish(p,le.SelectorExpected);return this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(h.AtKeyword))return null;var p=this.mark(),F=this.create(Ht);return!F.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(h.ParenthesisL)?this.accept(h.ParenthesisR)?this.finish(F):this.finish(F,le.RightParenthesisExpected):(this.restoreAtMark(p),null)},c.prototype._tryParseMixinReference=function(p){p===void 0&&(p=!0);for(var F=this.mark(),pe=this.create(Ht),He=this._parseMixinDeclarationIdentifier();He;){this.acceptDelim(">");var Qe=this._parseMixinDeclarationIdentifier();if(!Qe)break;pe.getNamespaces().addChild(He),He=Qe}if(!pe.setIdentifier(He))return this.restoreAtMark(F),null;var Vt=!1;if(this.accept(h.ParenthesisL)){if(Vt=!0,pe.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!pe.getArguments().addChild(this._parseMixinArgument()))return this.finish(pe,le.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(pe,le.RightParenthesisExpected);He.referenceTypes=[At.Mixin]}else He.referenceTypes=[At.Mixin,At.Rule];return this.peek(h.BracketL)?p||this._addLookupChildren(pe):pe.addChild(this._parsePrio()),Vt||this.peek(h.SemiColon)||this.peek(h.CurlyR)||this.peek(h.EOF)?this.finish(pe):(this.restoreAtMark(F),null)},c.prototype._parseMixinArgument=function(){var p=this.create(st),F=this.mark(),pe=this._parseVariable();return pe&&(this.accept(h.Colon)?p.setIdentifier(pe):this.restoreAtMark(F)),p.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(p):(this.restoreAtMark(F),null)},c.prototype._parseMixinParameter=function(){var p=this.create(ze);if(this.peekKeyword("@rest")){var F=this.create(pi);return this.consumeToken(),this.accept(Os)?(p.setIdentifier(this.finish(F)),this.finish(p)):this.finish(p,le.DotExpected,[],[h.Comma,h.ParenthesisR])}if(this.peek(Os)){var pe=this.create(pi);return this.consumeToken(),p.setIdentifier(this.finish(pe)),this.finish(p)}var He=!1;return p.setIdentifier(this._parseVariable())&&(this.accept(h.Colon),He=!0),p.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||He?this.finish(p):null},c.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var p=this.create(Ti);if(this.consumeToken(),p.isNegated=this.acceptIdent("not"),!p.getConditions().addChild(this._parseGuardCondition()))return this.finish(p,le.ConditionExpected);for(;this.acceptIdent("and")||this.accept(h.Comma);)if(!p.getConditions().addChild(this._parseGuardCondition()))return this.finish(p,le.ConditionExpected);return this.finish(p)},c.prototype._parseGuardCondition=function(){if(!this.peek(h.ParenthesisL))return null;var p=this.create(ft);return this.consumeToken(),p.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(p):this.finish(p,le.RightParenthesisExpected)},c.prototype._parseFunction=function(){var p=this.mark(),F=this.create(ut);if(!F.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(p),null;if(F.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!F.getArguments().addChild(this._parseMixinArgument()))return this.finish(F,le.ExpressionExpected)}return this.accept(h.ParenthesisR)?this.finish(F):this.finish(F,le.RightParenthesisExpected)},c.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var p=this.create(Wt);return p.referenceTypes=[At.Function],this.consumeToken(),this.finish(p)}return x.prototype._parseFunctionIdentifier.call(this)},c.prototype._parseURLArgument=function(){var p=this.mark(),F=x.prototype._parseURLArgument.call(this);if(!F||!this.peek(h.ParenthesisR)){this.restoreAtMark(p);var pe=this.create(pi);return pe.addChild(this._parseBinaryExpr()),this.finish(pe)}return F},c}(ln),Ys=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Bn=Gt(),Zs=function(x){function c(p,F){return x.call(this,"@",p,F)||this}return Ys(c,x),c.prototype.createFunctionProposals=function(p,F,pe,He){for(var Qe=0,Vt=p;Qe<Vt.length;Qe++){var $t=Vt[Qe],ci={label:$t.name,detail:$t.example,documentation:$t.description,textEdit:Tn.replace(this.getCompletionRange(F),$t.name+"($0)"),insertTextFormat:er.Snippet,kind:zn.Function};pe&&(ci.sortText="z"),He.items.push(ci)}return He},c.prototype.getTermProposals=function(p,F,pe){var He=c.builtInProposals;return p&&(He=He.filter(function(Qe){return!Qe.type||!p.restrictions||p.restrictions.indexOf(Qe.type)!==-1})),this.createFunctionProposals(He,F,!0,pe),x.prototype.getTermProposals.call(this,p,F,pe)},c.prototype.getColorProposals=function(p,F,pe){return this.createFunctionProposals(c.colorProposals,F,!1,pe),x.prototype.getColorProposals.call(this,p,F,pe)},c.prototype.getCompletionsForDeclarationProperty=function(p,F){return this.getCompletionsForSelector(null,!0,F),x.prototype.getCompletionsForDeclarationProperty.call(this,p,F)},c.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Bn("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Bn("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Bn("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Bn("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Bn("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Bn("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Bn("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:Bn("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Bn("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Bn("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Bn("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Bn("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Bn("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Bn("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:Bn("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Bn("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Bn("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:Bn("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:Bn("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Bn("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Bn("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Bn("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Bn("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:Bn("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:Bn("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Bn("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:Bn("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Bn("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Bn("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Bn("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],c.colorProposals=[{name:"argb",example:"argb(@color);",description:Bn("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Bn("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Bn("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Bn("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Bn("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:Bn("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Bn("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Bn("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Bn("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Bn("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Bn("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Bn("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Bn("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Bn("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Bn("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Bn("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Bn("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Bn("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Bn("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Bn("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Bn("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Bn("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Bn("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Bn("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Bn("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Bn("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Bn("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],c}(Ao);function ca(x,c){return function(p,F){var pe=F&&F.rangeLimit||Number.MAX_VALUE,He=p.sort(function($t,ci){var Ft=$t.startLine-ci.startLine;return Ft===0&&(Ft=$t.endLine-ci.endLine),Ft}),Qe=[],Vt=-1;return He.forEach(function($t){$t.startLine<Vt&&Vt<$t.endLine||(Qe.push($t),Vt=$t.endLine)}),Qe.length<pe?Qe:Qe.slice(0,pe)}(function(p){function F(Fi){return p.positionAt(Fi.offset).line}function pe(Fi){return p.positionAt(Fi.offset+Fi.len).line}var He=[],Qe=[],Vt=function(){switch(p.languageId){case"scss":return new Ha;case"less":return new Jr;default:return new ee}}();Vt.ignoreComment=!1,Vt.setSource(p.getText());for(var $t=Vt.scan(),ci=null,Ft=function(){switch($t.type){case h.CurlyL:case sr:Qe.push({line:F($t),type:"brace",isStart:!0});break;case h.CurlyR:if(Qe.length!==0){if(!(on=Oa(Qe,"brace")))break;var Fi=pe($t);on.type==="brace"&&(ci&&pe(ci)!==Fi&&Fi--,on.line!==Fi&&He.push({startLine:on.line,endLine:Fi,kind:void 0}))}break;case h.Comment:var cn=function(jn){return jn==="#region"?{line:F($t),type:"comment",isStart:!0}:{line:pe($t),type:"comment",isStart:!1}},vn=function(jn){var Vn=jn.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(Vn)return cn(Vn[1]);if(p.languageId==="scss"||p.languageId==="less"){var Ln=jn.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(Ln)return cn(Ln[1])}return null}($t);if(vn)if(vn.isStart)Qe.push(vn);else{var on;if(!(on=Oa(Qe,"comment")))break;on.type==="comment"&&on.line!==vn.line&&He.push({startLine:on.line,endLine:vn.line,kind:"region"})}else{var Pn=function(jn,Vn){var Ln=F(jn),pr=pe(jn);return Ln!==pr?{startLine:Ln,endLine:pr,kind:Vn}:null}($t,"comment");Pn&&He.push(Pn)}}ci=$t,$t=Vt.scan()};$t.type!==h.EOF;)Ft();return He}(x),c)}function Oa(x,c){if(x.length===0)return null;for(var p=x.length-1;p>=0;p--)if(x[p].type===c&&x[p].isStart)return x.splice(p,1)[0];return null}var ar={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:59,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:81,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:50,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:69,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",syntax:"<timing-function>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element\u2019s contents: if the element has a scrolling mechanism, the background scrolls with the element\u2019s contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element\u2019s border.)"}],syntax:"<attachment>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",syntax:"<box>#",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",syntax:"<bg-position>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",values:[{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"left",description:"Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."},{name:"right",description:"Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",values:[{name:"bottom",description:"Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."},{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"top",description:"Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Logical 'width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",syntax:"<line-width> || <line-style> || <color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",syntax:"<line-width> || <line-style> || <color>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",syntax:"<'border-top-color'>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",syntax:"<length-percentage>{1,2}",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",syntax:"<line-style>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",syntax:"<line-width>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",values:[],syntax:"<color>{1,4}",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",syntax:"<line-width> || <line-style> || <color>",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",syntax:"<color>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",syntax:"<line-width>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",syntax:"<line-width> || <line-style> || <color>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",syntax:"<color>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",syntax:"<line-width>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",syntax:"<length> <length>?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",values:[],syntax:"<line-style>{1,4}",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",syntax:"<line-width> || <line-style> || <color>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",syntax:"<color>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",syntax:"<length-percentage>{1,2}",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",syntax:"<line-style>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",values:[],syntax:"<line-width>{1,4}",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S6.1","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:50,description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element\u2019s box.",restrictions:["enum"]},{name:"clip-path",values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:52,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","C52","O40"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ size || layout || style || paint ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <custom-ident> <integer>? ]+ | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <custom-ident> <integer>? ]+ | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",description:"Indicates that something can be grabbed."},{name:"grabbing",description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",description:"Inline-level flex container."},{name:"inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck"},{name:"-moz-grid"},{name:"-moz-grid-group"},{name:"-moz-grid-line"},{name:"-moz-groupbox"},{name:"-moz-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid"},{name:"-moz-inline-stack"},{name:"-moz-marker"},{name:"-moz-popup"},{name:"-moz-stack"},{name:"-ms-flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background"},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can\u2019t create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:74,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."}],syntax:"content | <'width'>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:78,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"flex-flow",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",syntax:"<number>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",syntax:"<number>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",values:[{name:"inline-end",description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",values:[{name:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],syntax:"<family-name>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],syntax:"normal | <feature-tag-value>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["E79","FF40","C43","O30"],values:[{name:"none",description:"Do not preserve the font\u2019s x-height."}],syntax:"none | <number>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",description:"Indicates a wider value relative to the width of the parent element."}],syntax:"<font-stretch-absolute>{1,2}",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],syntax:"normal | italic | oblique <angle>{0,2}",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["FF34","S9"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["FF34"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of \u2018normal\u2019 implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["FF34"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],syntax:"<font-weight-absolute>{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:"If specified, the auto-placement algorithm uses a \u201Cdense\u201D packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later."}],syntax:"[ row | column ] || dense",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:1,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:1,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:1,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn\u2019t define any named grid areas."}],syntax:"none | <string>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Logical 'height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:82,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],syntax:"auto | loose | normal | strict | anywhere",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",values:[{name:"none",description:"The default contents of the of the list item\u2019s marker are given by 'list-style-type' instead."}],syntax:"<url> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item\u2019s marker",restrictions:["enum","string"]},{name:"margin",values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given \u2018path\u2019 element or basic shape.",restrictions:["url"]},{name:"marker-end",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E16","FF53","S4","C1","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["FF53"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E79","FF53","S4","C1","O15"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E18","FF53","S3.2","C1","O15"],syntax:"<position>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E18","FF53","S3.2","C1","O15"],syntax:"<repeat-style>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E18","FF53","S4","C4","O15"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S6.1","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Logical 'max-width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S10.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Logical 'max-height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Logical 'min-width'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Logical 'min-height'. Mapping depends on the element\u2019s 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E12","IE10"],relevance:50,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E12","IE10"],relevance:50,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE5"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"}],description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030\u2013U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content\u2019s containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E16","FF36","S10","C31","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E16","FF36","S10","C31","O19"],syntax:"<position>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",syntax:"<alpha-value>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",syntax:"<integer>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",values:[{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"<color> | invert",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",syntax:"<line-width>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",description:"Same as the standardized 'clip', except doesn\u2019t establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],syntax:"<integer> && <symbol>",relevance:50,description:"@counter-style descriptor. Specifies a \u201Cfixed-width\u201D counter style, where representations shorter than the pad value are padded with a particular <symbol>",restrictions:["integer","image","string","identifier"]},{name:"padding",values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E17","FF60","S8","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and the pointer is over either the interior or the perimete of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over a \u2018painted\u2019 area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38"],values:[{name:"auto",browsers:["FF38"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E12","FF38"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],status:"experimental",syntax:"over | under | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"}],description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container\u2019s snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"}],description:"Define the x and y coordinate within the scroll container\u2019s visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"}],description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"}],description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | <shape-box> || <basic-shape> | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:52,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:67,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",relevance:51,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:63,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:58,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",relevance:58,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:50,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",relevance:50,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",relevance:51,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",relevance:60,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:"Represents \u201Csign-value\u201D numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together."},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:`interprets the list of counter symbols as digits to a "place-value" numbering system, similar to the default 'decimal' counter style.`},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter\u2019s representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF4","S6.1","C21","O15"],syntax:"<integer> | <length>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E12","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S5.1","C48","O15"],values:[{name:"sideways",browsers:["E79","FF41","S5.1","C48","O15"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S5.1","C48","O15"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xB0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The \u2018text-rendering\u2019 property provides these hints.",restrictions:["enum"]},{name:"text-shadow",values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element\u2019s text.",restrictions:["enum"]},{name:"text-underline-position",values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline\u2019s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element\u2019s content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x"},{name:"cross-slide-y"},{name:"double-tap-zoom"},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element\u2019s nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element\u2019s nearest ancestor with vertically scrollable content."},{name:"pinch-zoom"}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",syntax:"<time>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",syntax:"<timing-function>#",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00\u2013FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200\u201322FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530\u201358F",description:"Armenian."},{name:"U+590\u20135FF",description:"Hebrew."},{name:"U+600\u20136FF",description:"Arabic."},{name:"U+750\u201377F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0\u20138FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700\u201374F",description:"Syriac."},{name:"U+900\u201397F",description:"Devanagari."},{name:"U+980\u20139FF",description:"Bengali."},{name:"U+A00\u2013A7F",description:"Gurmukhi."},{name:"U+A80\u2013AFF",description:"Gujarati."},{name:"U+B00\u2013B7F",description:"Oriya."},{name:"U+B80\u2013BFF",description:"Tamil."},{name:"U+C00\u2013C7F",description:"Telugu."},{name:"U+C80\u2013CFF",description:"Kannada."},{name:"U+D00\u2013D7F",description:"Malayalam."},{name:"U+D80\u2013DFF",description:"Sinhala."},{name:"U+118A0\u2013118FF",description:"Warang Citi."},{name:"U+E00\u2013E7F",description:"Thai."},{name:"U+1A20\u20131AAF",description:"Tai Tham."},{name:"U+AA80\u2013AADF",description:"Tai Viet."},{name:"U+E80\u2013EFF",description:"Lao."},{name:"U+F00\u2013FFF",description:"Tibetan."},{name:"U+1000\u2013109F",description:"Myanmar (Burmese)."},{name:"U+10A0\u201310FF",description:"Georgian."},{name:"U+1200\u2013137F",description:"Ethiopic."},{name:"U+1380\u2013139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80\u20132DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00\u2013AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780\u201317FF",description:"Khmer."},{name:"U+1800\u201318AF",description:"Mongolian."},{name:"U+1B80\u20131BBF",description:"Sundanese."},{name:"U+1CC0\u20131CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00\u20139FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400\u20134DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00\u20132FDF",description:"Kangxi Radicals."},{name:"U+2E80\u20132EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100\u201311FF",description:"Hangul Jamo."},{name:"U+AC00\u2013D7AF",description:"Hangul Syllables."},{name:"U+3040\u2013309F",description:"Hiragana."},{name:"U+30A0\u201330FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0\u2013A4FF",description:"Lisu."},{name:"U+A000\u2013A48F",description:"Yi Syllables."},{name:"U+A490\u2013A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000\u2013303F",description:"CJK Symbols and Punctuation."},{name:"U+2070\u2013209F",description:"Superscripts and Subscripts."},{name:"U+20A0\u201320CF",description:"Currency Symbols."},{name:"U+2100\u2013214F",description:"Letterlike Symbols."},{name:"U+2150\u2013218F",description:"Number Forms."},{name:"U+2190\u201321FF",description:"Arrows."},{name:"U+2200\u201322FF",description:"Mathematical Operators."},{name:"U+2300\u201323FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00\u2013FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50\u2013FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600\u20131F64F",description:"Emoji: Emoticons."},{name:"U+2600\u201326FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300\u20131F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900\u20131F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680\u20131F6FF",description:"Emoji: Transport and Map Symbols."}],syntax:"<unicode-range>#",relevance:58,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],status:"nonstandard",syntax:"auto | text | none | contain | all",relevance:24,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle"}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the \u2018display\u2019 property to \u2018none\u2019 to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["C","S3"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["C","S3"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O\u226415"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],status:"nonstandard",syntax:"<length> || <color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<length>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["C","S3.1"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["C","S3.1"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["C","S4"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["S3"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["C","S3"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],status:"nonstandard",syntax:"read-only | read-write | read-write-plaintext-only",relevance:0,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"white-space",values:[{name:"normal",description:"Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'normal'."},{name:"nowrap",description:"Sets 'white-space-collapsing' to 'collapse' and 'text-wrap' to 'none'."},{name:"pre",description:"Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'none'."},{name:"pre-line",description:"Sets 'white-space-collapsing' to 'preserve-breaks' and 'text-wrap' to 'normal'."},{name:"pre-wrap",description:"Sets 'white-space-collapsing' to 'preserve' and 'text-wrap' to 'normal'."}],syntax:"normal | pre | nowrap | pre-wrap | pre-line | break-spaces",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],description:"Shorthand property for the 'white-space-collapsing' and 'text-wrap' properties.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element\u2019s contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length-percentage>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:"Specifies additional spacing between \u201Cwords\u201D.",restrictions:["length","percentage"]},{name:"word-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],syntax:"auto | <number> | <percentage>",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"}],description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,browsers:["FF55"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"}],description:`If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value. This feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true.`},{name:"-moz-float-edge",status:"nonstandard",syntax:"border-box | content-box | margin-box | padding-box",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}],description:"The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."},{name:"-moz-force-broken-image-icon",status:"nonstandard",syntax:"<integer>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}],description:"The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."},{name:"-moz-image-region",status:"nonstandard",syntax:"<shape> | auto",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}],description:"For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."},{name:"-moz-orient",status:"nonstandard",syntax:"inline | block | horizontal | vertical",relevance:0,browsers:["FF6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}],description:"The -moz-orient CSS property specifies the orientation of the element to which it's applied."},{name:"-moz-outline-radius",status:"nonstandard",syntax:"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"}],description:"In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."},{name:"-moz-outline-radius-bottomleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"}],description:"In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."},{name:"-moz-outline-radius-bottomright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"}],description:"In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."},{name:"-moz-outline-radius-topleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"}],description:"In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."},{name:"-moz-outline-radius-topright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"}],description:"In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."},{name:"-moz-stack-sizing",status:"nonstandard",syntax:"ignore | stretch-to-fit",relevance:0,description:"-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."},{name:"-moz-text-blink",status:"nonstandard",syntax:"none | blink",relevance:0,description:"The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."},{name:"-moz-user-input",status:"nonstandard",syntax:"auto | none | enabled | disabled",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}],description:"In Mozilla applications, -moz-user-input determines if an element will accept user input."},{name:"-moz-user-modify",status:"nonstandard",syntax:"read-only | read-write | write-only",relevance:0,description:"The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."},{name:"-moz-window-dragging",status:"nonstandard",syntax:"drag | no-drag",relevance:0,description:"The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."},{name:"-moz-window-shadow",status:"nonstandard",syntax:"default | menu | tooltip | sheet | none",relevance:0,description:"The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."},{name:"-webkit-border-before",status:"nonstandard",syntax:"<'border-width'> || <'border-style'> || <'color'>",relevance:0,browsers:["E79","S5.1","C8","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}],description:"The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."},{name:"-webkit-border-before-color",status:"nonstandard",syntax:"<'color'>",relevance:0,description:"The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-style",status:"nonstandard",syntax:"<'border-style'>",relevance:0,description:"The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-width",status:"nonstandard",syntax:"<'border-width'>",relevance:0,description:"The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-line-clamp",syntax:"none | <integer>",relevance:50,browsers:["E17","FF68","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}],description:"The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."},{name:"-webkit-mask",status:"nonstandard",syntax:"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",relevance:0,description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"-webkit-mask-attachment",status:"nonstandard",syntax:"<attachment>#",relevance:0,browsers:["S4","C1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}],description:"If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."},{name:"-webkit-mask-composite",status:"nonstandard",syntax:"<composite-style>#",relevance:0,browsers:["E18","FF53","S3.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}],description:"The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."},{name:"-webkit-mask-position",status:"nonstandard",syntax:"<position>#",relevance:0,description:"The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."},{name:"-webkit-mask-position-x",status:"nonstandard",syntax:"[ <length-percentage> | left | center | right ]#",relevance:0,browsers:["E18","FF49","S3.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}],description:"The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."},{name:"-webkit-mask-position-y",status:"nonstandard",syntax:"[ <length-percentage> | top | center | bottom ]#",relevance:0,browsers:["E18","FF49","S3.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}],description:"The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."},{name:"-webkit-mask-repeat-x",status:"nonstandard",syntax:"repeat | no-repeat | space | round",relevance:0,browsers:["E18","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}],description:"The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."},{name:"-webkit-mask-repeat-y",status:"nonstandard",syntax:"repeat | no-repeat | space | round",relevance:0,browsers:["E18","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}],description:"The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."},{name:"appearance",status:"experimental",syntax:"none | auto | button | textfield | menulist-button | <compat-auto>",relevance:60,browsers:["E84","FF1","S3","C84","O70"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/appearance"}],description:"Changes the appearance of buttons and other controls to resemble native controls."},{name:"aspect-ratio",status:"experimental",syntax:"auto | <ratio>",relevance:50,browsers:["E79","FF71","C79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}],description:"The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."},{name:"azimuth",status:"obsolete",syntax:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/azimuth"}],description:"In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."},{name:"backdrop-filter",syntax:"none | <filter-function-list>",relevance:51,browsers:["E17","FF70","S9","C76","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}],description:"The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."},{name:"border-block",syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block"}],description:"The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."},{name:"border-block-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-color"}],description:"The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-style"}],description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-width"}],description:"The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-end-end-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["FF66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}],description:"The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."},{name:"border-end-start-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["FF66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}],description:"The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-inline",syntax:"<'border-top-width'> || <'border-top-style'> || <'color'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline"}],description:"The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."},{name:"border-inline-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}],description:"The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}],description:"The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}],description:"The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-start-end-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["FF66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}],description:"The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-start-start-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["FF66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}],description:"The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."},{name:"box-align",status:"nonstandard",syntax:"start | center | end | baseline | stretch",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-align"}],description:"The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."},{name:"box-direction",status:"nonstandard",syntax:"normal | reverse | inherit",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-direction"}],description:"The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."},{name:"box-flex",status:"nonstandard",syntax:"<number>",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex"}],description:"The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."},{name:"box-flex-group",status:"nonstandard",syntax:"<integer>",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}],description:"The box-flex-group CSS property assigns the flexbox's child elements to a flex group."},{name:"box-lines",status:"nonstandard",syntax:"single | multiple",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-lines"}],description:"The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."},{name:"box-ordinal-group",status:"nonstandard",syntax:"<integer>",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}],description:"The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."},{name:"box-orient",status:"nonstandard",syntax:"horizontal | vertical | inline-axis | block-axis | inherit",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-orient"}],description:"The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."},{name:"box-pack",status:"nonstandard",syntax:"start | center | end | justify",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-pack"}],description:"The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."},{name:"color-adjust",syntax:"economy | exact",relevance:50,browsers:["E79","FF48","S6","C49","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color-adjust"}],description:"The color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine."},{name:"counter-set",syntax:"[ <custom-ident> <integer>? ]+ | none",relevance:50,browsers:["FF68"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-set"}],description:"The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."},{name:"font-optical-sizing",syntax:"auto | none",relevance:50,browsers:["E17","FF62","S11","C79","O66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}],description:"The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."},{name:"font-variation-settings",syntax:"normal | [ <string> <number> ]#",relevance:50,browsers:["E17","FF62","S11","C62","O49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}],description:"The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."},{name:"font-smooth",status:"nonstandard",syntax:"auto | never | always | <absolute-size> | <length>",relevance:0,browsers:["E79","FF25","S4","C5","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-smooth"}],description:""},{name:"gap",syntax:"<'row-gap'> <'column-gap'>?",relevance:50,browsers:["E84","FF63","S10.1","C84","O70"],description:"The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."},{name:"hanging-punctuation",syntax:"none | [ first || [ force-end | allow-end ] || last ]",relevance:50,browsers:["S10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}],description:"The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."},{name:"image-resolution",status:"experimental",syntax:"[ from-image || <resolution> ] && snap?",relevance:50,description:"The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."},{name:"initial-letter",status:"experimental",syntax:"normal | [ <number> <integer>? ]",relevance:50,browsers:["S9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter"}],description:"The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."},{name:"initial-letter-align",status:"experimental",syntax:"[ auto | alphabetic | hanging | ideographic ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}],description:"The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."},{name:"inset",syntax:"<'top'>{1,4}",relevance:50,browsers:["FF66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset"}],description:"The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block",syntax:"<'top'>{1,2}",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block"}],description:"The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-end",syntax:"<'top'>",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}],description:"The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-start",syntax:"<'top'>",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}],description:"The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline",syntax:"<'top'>{1,2}",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline"}],description:"The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-end",syntax:"<'top'>",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}],description:"The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-start",syntax:"<'top'>",relevance:50,browsers:["E79","FF63","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}],description:"The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"line-clamp",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."},{name:"line-height-step",status:"experimental",syntax:"<length>",relevance:50,browsers:["E79","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height-step"}],description:"The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."},{name:"margin-block",syntax:"<'margin-left'>{1,2}",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block"}],description:"The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-inline",syntax:"<'margin-left'>{1,2}",relevance:50,browsers:["E79","FF66","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline"}],description:"The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-trim",status:"experimental",syntax:"none | in-flow | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-trim"}],description:"The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."},{name:"mask",syntax:"<mask-layer>#",relevance:50,browsers:["E12","FF2","S3.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask"}],description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"mask-border",syntax:"<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",relevance:50,description:`The mask-border CSS property lets you create a mask along the edge of an element's border. @@ -543,15 +543,15 @@ A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out.`},{name:"orientation",syntax:"auto | portrait | landscape",relevance:50,description:"The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."},{name:"user-zoom",syntax:"zoom | fixed",relevance:50,description:"The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."},{name:"viewport-fit",syntax:"auto | contain | cover",relevance:50,description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}],atDirectives:[{name:"@charset",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],description:"Defines character set of the document."},{name:"@counter-style",browsers:["FF33"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],description:"Defines a custom counter style."},{name:"@font-face",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],description:"Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."},{name:"@font-feature-values",browsers:["FF34","S9.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],description:"Includes content of another file."},{name:"@keyframes",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],description:"Defines set of animation key frames."},{name:"@media",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],description:"Defines a stylesheet for a particular media type."},{name:"@-moz-document",browsers:["FF1.8"],description:"Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."},{name:"@-moz-keyframes",browsers:["FF5"],description:"Defines set of animation key frames."},{name:"@-ms-viewport",browsers:["E","IE10"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@namespace",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],description:"Declares a prefix and associates it with a namespace name."},{name:"@-o-keyframes",browsers:["O12"],description:"Defines set of animation key frames."},{name:"@-o-viewport",browsers:["O11"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@page",browsers:["E12","FF19","C2","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],description:"Directive defines various page parameters."},{name:"@supports",browsers:["E12","FF22","S9","C28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],description:"A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."},{name:"@-webkit-keyframes",browsers:["C","S4"],description:"Defines set of animation key frames."}],pseudoClasses:[{name:":active",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],description:"Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."},{name:":any-link",browsers:["E79","FF50","S9","C65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],description:"Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."},{name:":corner-present",browsers:["C","S5"],description:"Non-standard. Indicates whether or not a scrollbar corner is present."},{name:":decrement",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view\u2019s position when used."},{name:":default",browsers:["E79","FF4","S5","C10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],description:"Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."},{name:":disabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],description:"Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."},{name:":double-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."},{name:":empty",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],description:"Represents an element that has no children at all."},{name:":enabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],description:"Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."},{name:":end",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."},{name:":first",browsers:["E12","S6","C18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":first-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],description:"Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."},{name:":focus",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["C","O16","S6"],description:"Represents any element that is defined to occur entirely after a :current element."},{name:":horizontal",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."},{name:":host",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],description:"When evaluated in the context of a shadow tree, matches the shadow tree\u2019s host element."},{name:":host()",browsers:["C35","O22"],description:"When evaluated in the context of a shadow tree, it matches the shadow tree\u2019s host element if the host element, in its normal context, matches the selector argument."},{name:":host-context()",browsers:["C35","O22"],description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],description:"Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."},{name:":increment",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view\u2019s position when used."},{name:":indeterminate",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":invalid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":lang()",browsers:["E","C","FF1","IE8","O8","S3"],description:"Represents an element that is in language specified."},{name:":last-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],description:"Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."},{name:":left",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":link",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],description:"Applies to links that have not yet been visited."},{name:":matches()",browsers:["S9"],description:"Takes a selector list as its argument. It represents an element that is represented by its argument."},{name:":-moz-any()",browsers:["FF4"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-moz-any-link",browsers:["FF1"],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":-moz-broken",browsers:["FF3"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],description:"Non-standard. Matches elements representing broken images."},{name:":-moz-drag-over",browsers:["FF1"],description:"Non-standard. Matches elements when a drag-over event applies to it."},{name:":-moz-first-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the first child node of some other element."},{name:":-moz-focusring",browsers:["FF4"],description:"Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."},{name:":-moz-full-screen",browsers:["FF9"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":-moz-last-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the last child node of some other element."},{name:":-moz-loading",browsers:["FF3"],description:"Non-standard. Matches elements, such as images, that haven\u2019t started loading yet."},{name:":-moz-only-whitespace",browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],description:"The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."},{name:":-moz-placeholder",browsers:["FF4"],description:"Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."},{name:":-moz-submit-invalid",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],description:"Non-standard. Represents any submit button when the contents of the associated form are not valid."},{name:":-moz-suppressed",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been blocked from loading."},{name:":-moz-ui-invalid",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-invalid"}],description:"Non-standard. Represents any validated form element whose value isn't valid "},{name:":-moz-ui-valid",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-ui-valid"}],description:"Non-standard. Represents any validated form element whose value is valid "},{name:":-moz-user-disabled",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been disabled due to the user\u2019s preferences."},{name:":-moz-window-inactive",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}],description:"Non-standard. Matches elements in an inactive window."},{name:":-ms-fullscreen",browsers:["IE11"],description:"Matches any element that has its fullscreen flag set."},{name:":-ms-input-placeholder",browsers:["IE10"],description:"Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."},{name:":-ms-keyboard-active",browsers:["IE10"],description:"Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."},{name:":-ms-lang()",browsers:["E","IE10"],description:"Represents an element that is in the language specified. Accepts a comma separated list of language tokens."},{name:":no-button",browsers:["C","S5"],description:"Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."},{name:":not()",browsers:["E","C","FF1","IE9","O9.5","S2"],description:"The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."},{name:":nth-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":nth-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":only-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],description:"Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."},{name:":only-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],description:"Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."},{name:":optional",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":out-of-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":past",browsers:["C","O16","S6"],description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":read-write",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":required",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":right",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":root",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],description:"Represents an element that is the root of the document. In HTML 4, this is always the HTML element."},{name:":scope",browsers:["E79","FF32","S7","C27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],description:"Represents any element that is in the contextual reference element set."},{name:":single-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."},{name:":start",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."},{name:":target",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],description:"Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."},{name:":valid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":vertical",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a vertical orientation."},{name:":visited",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],description:"Applies once the link has been visited by the user."},{name:":-webkit-any()",browsers:["C","S5"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-webkit-full-screen",browsers:["C","S6"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":window-inactive",browsers:["C","S3"],description:"Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."},{name:":blank",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:blank"}],description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":defined",status:"experimental",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],description:"The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."},{name:":dir",browsers:["FF49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",status:"experimental",browsers:["E79","FF4","C67","O54"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],description:"The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."},{name:":focus-within",status:"experimental",browsers:["E79","FF52","S10.1","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],description:"The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."},{name:":has",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],description:":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."},{name:":is",status:"experimental",browsers:["E79","FF78","S9","C68","O55"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],description:"The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."},{name:":placeholder-shown",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":where",status:"experimental",browsers:["FF78","C72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],description:"The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."}],pseudoElements:[{name:"::after",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],description:"Represents a styleable child pseudo-element immediately after the originating element\u2019s actual content."},{name:"::backdrop",browsers:["E12","FF47","C37","IE11","O24"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::before",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],description:"Represents a styleable child pseudo-element immediately before the originating element\u2019s actual content."},{name:"::content",browsers:["C35","O22"],description:"Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."},{name:"::cue",browsers:["E79","FF55","S6.1","C26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}]},{name:"::cue()",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region()",browsers:["C","O16","S6"]},{name:"::first-letter",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],description:"Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."},{name:"::first-line",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF4"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF1"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF1"],description:"Used to style the numbers of a list element. Similar to the standardized ::marker."},{name:"::-moz-placeholder",browsers:["FF19"],description:"Represents placeholder text in an input field"},{name:"::-moz-progress-bar",browsers:["FF9"],description:"Represents the bar portion of a progress bar."},{name:"::-moz-selection",browsers:["FF1"],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::-ms-backdrop",browsers:["IE11"],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::-ms-browse",browsers:["E","IE10"],description:"Represents the browse button of an input type=file control."},{name:"::-ms-check",browsers:["E","IE10"],description:"Represents the check of a checkbox or radio button input control."},{name:"::-ms-clear",browsers:["E","IE10"],description:"Represents the clear button of a text input control"},{name:"::-ms-expand",browsers:["E","IE10"],description:"Represents the drop-down button of a select control."},{name:"::-ms-fill",browsers:["E","IE10"],description:"Represents the bar portion of a progress bar."},{name:"::-ms-fill-lower",browsers:["E","IE10"],description:"Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."},{name:"::-ms-fill-upper",browsers:["E","IE10"],description:"Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."},{name:"::-ms-reveal",browsers:["E","IE10"],description:"Represents the password reveal button of an input type=password control."},{name:"::-ms-thumb",browsers:["E","IE10"],description:"Represents the portion of range input control (also known as a slider control) that the user drags."},{name:"::-ms-ticks-after",browsers:["E","IE10"],description:"Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."},{name:"::-ms-ticks-before",browsers:["E","IE10"],description:"Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."},{name:"::-ms-tooltip",browsers:["E","IE10"],description:"Represents the tooltip of a slider (input type=range)."},{name:"::-ms-track",browsers:["E","IE10"],description:"Represents the track of a slider."},{name:"::-ms-value",browsers:["E","IE10"],description:"Represents the content of a text or password input control, or a select control."},{name:"::selection",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::shadow",browsers:["C35","O22"],description:"Matches the shadow root if an element has a shadow tree."},{name:"::-webkit-file-upload-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-file-upload-button"}]},{name:"::-webkit-inner-spin-button",browsers:["E79","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]},{name:"::-webkit-outer-spin-button",browsers:["S5","C6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]},{name:"::-webkit-progress-bar",browsers:["E79","S6.1","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]},{name:"::-webkit-progress-inner-element",browsers:["E79","S6.1","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]},{name:"::-webkit-progress-value",browsers:["E79","S6.1","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]},{name:"::-webkit-resizer",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["C","O","S6"]},{name:"::-webkit-slider-thumb",browsers:["C","O","S6"]},{name:"::-webkit-textfield-decoration-container",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow-clipper",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-heading",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-message",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-text-block",browsers:["C","O","S6"]},{name:"::-moz-range-progress",status:"nonstandard",browsers:["FF22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],description:'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'},{name:"::-moz-range-thumb",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],description:`The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.`},{name:"::-moz-range-track",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],description:'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'},{name:"::-webkit-progress-inner-value",status:"nonstandard",description:`The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element. -In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::grammar-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E80","FF68","S11.1","C80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E12","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]},Xs=function(){function x(c){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(c)}return x.prototype.provideProperties=function(){return this._properties},x.prototype.provideAtDirectives=function(){return this._atDirectives},x.prototype.providePseudoClasses=function(){return this._pseudoClasses},x.prototype.providePseudoElements=function(){return this._pseudoElements},x.prototype.addData=function(c){if(Array.isArray(c.properties))for(var p=0,F=c.properties;p<F.length;p++){var pe=F[p];typeof pe.name=="string"&&this._properties.push(pe)}if(Array.isArray(c.atDirectives))for(var He=0,Qe=c.atDirectives;He<Qe.length;He++)Rs(pe=Qe[He])&&this._atDirectives.push(pe);if(Array.isArray(c.pseudoClasses))for(var Vt=0,$t=c.pseudoClasses;Vt<$t.length;Vt++)Zr(pe=$t[Vt])&&this._pseudoClasses.push(pe);if(Array.isArray(c.pseudoElements))for(var ci=0,Ft=c.pseudoElements;ci<Ft.length;ci++)Qs(pe=Ft[ci])&&this._pseudoElements.push(pe)},x}();function Rs(x){return typeof x.name=="string"}function Zr(x){return typeof x.name=="string"}function Qs(x){return typeof x.name=="string"}var Aa=function(){function x(c){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders((c==null?void 0:c.useDefaultDataProvider)!==!1,(c==null?void 0:c.customDataProviders)||[])}return x.prototype.setDataProviders=function(c,p){var F;this.dataProviders=[],c&&this.dataProviders.push(new Xs(ao)),(F=this.dataProviders).push.apply(F,p),this.collectData()},x.prototype.collectData=function(){var c=this;this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(function(p){p.provideProperties().forEach(function(F){c._propertySet[F.name]||(c._propertySet[F.name]=F)}),p.provideAtDirectives().forEach(function(F){c._atDirectiveSet[F.name]||(c._atDirectiveSet[F.name]=F)}),p.providePseudoClasses().forEach(function(F){c._pseudoClassSet[F.name]||(c._pseudoClassSet[F.name]=F)}),p.providePseudoElements().forEach(function(F){c._pseudoElementSet[F.name]||(c._pseudoElementSet[F.name]=F)})}),this._properties=ei(this._propertySet),this._atDirectives=ei(this._atDirectiveSet),this._pseudoClasses=ei(this._pseudoClassSet),this._pseudoElements=ei(this._pseudoElementSet)},x.prototype.getProperty=function(c){return this._propertySet[c]},x.prototype.getAtDirective=function(c){return this._atDirectiveSet[c]},x.prototype.getPseudoClass=function(c){return this._pseudoClassSet[c]},x.prototype.getPseudoElement=function(c){return this._pseudoElementSet[c]},x.prototype.getProperties=function(){return this._properties},x.prototype.getAtDirectives=function(){return this._atDirectives},x.prototype.getPseudoClasses=function(){return this._pseudoClasses},x.prototype.getPseudoElements=function(){return this._pseudoElements},x.prototype.isKnownProperty=function(c){return c.toLowerCase()in this._propertySet},x.prototype.isStandardProperty=function(c){return this.isKnownProperty(c)&&(!this._propertySet[c.toLowerCase()].status||this._propertySet[c.toLowerCase()].status==="standard")},x}();function Sl(x,c,p){return c.map(function(F){for(var pe=function(Vt){var $t=x.offsetAt(Vt),ci=p.findChildAtOffset($t,!0);if(!ci)return[];for(var Ft=[];ci;)ci.parent&&ci.offset===ci.parent.offset&&ci.end===ci.parent.end||(ci.type===it.Declarations&&$t>ci.offset&&$t<ci.end&&Ft.push([ci.offset+1,ci.end-1]),Ft.push([ci.offset,ci.end])),ci=ci.parent;return Ft}(F),He=void 0,Qe=pe.length-1;Qe>=0;Qe--)He=oa.create(Sn.create(x.positionAt(pe[Qe][0]),x.positionAt(pe[Qe][1])),He);return He||(He=oa.create(Sn.create(F,F))),He})}var Ka=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Js=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Ga=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Jl=function(x){function c(p){return x.call(this,p)||this}return Ka(c,x),c.prototype.isRawStringDocumentLinkNode=function(p){return x.prototype.isRawStringDocumentLinkNode.call(this,p)||p.type===it.Use||p.type===it.Forward},c.prototype.resolveRelativeReference=function(p,F,pe){return Js(this,void 0,void 0,function(){var He,Qe,Vt,$t;return Ga(this,function(ci){switch(ci.label){case 0:return de(p,"sass:")?[2,void 0]:[4,x.prototype.resolveRelativeReference.call(this,p,F,pe)];case 1:if(He=ci.sent(),!this.fileSystemProvider||!He||function(Ft){for(var Fi=Ft.length-1;Fi>=0;Fi--){var cn=Ft.charCodeAt(Fi);if(cn===Ir){if(Fi>0&&Ft.charCodeAt(Fi-1)!==ks)return Ft.substr(Fi);break}if(cn===ks)break}return""}(He).length!==0)return[3,8];ci.label=2;case 2:if(ci.trys.push([2,7,,8]),Qe=xa.a.parse(He),!(Vt=function(Ft){if(Ft.path!==""&&!Ft.path.endsWith(".scss")&&!Ft.path.endsWith(".css")){if(Ft.path.endsWith("/"))return[Ft.with({path:Ft.path+"index.scss"}).toString(),Ft.with({path:Ft.path+"_index.scss"}).toString()];var Fi=Ft.path.split("/"),cn=Fi[Fi.length-1],vn=Ft.path.slice(0,-cn.length);if(cn.startsWith("_"))return Ft.path.endsWith(".scss")?void 0:[Ft.with({path:Ft.path+".scss"}).toString()];var rn=cn+".scss",Pn=function(jn){return Ft.with({path:vn+jn}).toString()};return[Pn(rn),Pn("_"+rn),Pn(rn.slice(0,-5)+"/index.scss"),Pn(rn.slice(0,-5)+"/_index.scss"),Pn(rn.slice(0,-5)+".css")]}}(Qe)))return[3,6];$t=0,ci.label=3;case 3:return $t<Vt.length?[4,this.fileExists(Vt[$t])]:[3,6];case 4:if(ci.sent())return[2,Vt[$t]];ci.label=5;case 5:return $t++,[3,3];case 6:return[2,void 0];case 7:return ci.sent(),[3,8];case 8:return[2,He]}})})},c}(at);function ea(x,c,p,F,pe,He,Qe){return{configure:function(Vt){He.configure(Vt),c.configure(Vt)},setDataProviders:Qe.setDataProviders.bind(Qe),doValidation:He.doValidation.bind(He),parseStylesheet:x.parseStylesheet.bind(x),doComplete:c.doComplete.bind(c),doComplete2:c.doComplete2.bind(c),setCompletionParticipants:c.setCompletionParticipants.bind(c),doHover:p.doHover.bind(p),findDefinition:F.findDefinition.bind(F),findReferences:F.findReferences.bind(F),findDocumentHighlights:F.findDocumentHighlights.bind(F),findDocumentLinks:F.findDocumentLinks.bind(F),findDocumentLinks2:F.findDocumentLinks2.bind(F),findDocumentSymbols:F.findDocumentSymbols.bind(F),doCodeActions:pe.doCodeActions.bind(pe),doCodeActions2:pe.doCodeActions2.bind(pe),findColorSymbols:function(Vt,$t){return F.findDocumentColors(Vt,$t).map(function(ci){return ci.range})},findDocumentColors:F.findDocumentColors.bind(F),getColorPresentations:F.getColorPresentations.bind(F),doRename:F.doRename.bind(F),getFoldingRanges:ca,getSelectionRanges:Sl}}var Ya={};function Nc(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new ln,new Ar(null,x,c),new we(x&&x.clientCapabilities,c),new at(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}function Ic(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new xr,new wl(x,c),new we(x&&x.clientCapabilities,c),new Jl(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}function Oc(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new As,new Zs(x,c),new we(x&&x.clientCapabilities,c),new at(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D}),o.d(w,"b",function(){return H});var h=o(68),f=o(18);h.a;let D=Object(f.c)("notificationService");class H{}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("keybindingService")},function(Ie,w,o){"use strict";o.d(w,"i",function(){return W}),o.d(w,"e",function(){return Q}),o.d(w,"f",function(){return y}),o.d(w,"c",function(){return C}),o.d(w,"b",function(){return S}),o.d(w,"d",function(){return P}),o.d(w,"g",function(){return V}),o.d(w,"h",function(){return k}),o.d(w,"j",function(){return l}),o.d(w,"k",function(){return T}),o.d(w,"a",function(){return b});var h=o(179),f=o(42),D=o(23),H=o(8),E=o(45),ge=o(11);function W(g){return Object(D.b)(g,!0)}let Q=new class{constructor(g){this._ignorePathCasing=g}compare(g,j,ie=!1){return g===j?0:Object(H.f)(this.getComparisonKey(g,ie),this.getComparisonKey(j,ie))}isEqual(g,j,ie=!1){return g===j||!(!g||!j)&&this.getComparisonKey(g,ie)===this.getComparisonKey(j,ie)}getComparisonKey(g,j=!1){return g.with({path:this._ignorePathCasing(g)?g.path.toLowerCase():void 0,fragment:j?null:void 0}).toString()}joinPath(g,...j){return D.a.joinPath(g,...j)}basenameOrAuthority(g){return S(g)||g.authority}basename(g){return f.e.basename(g.path)}dirname(g){if(g.path.length===0)return g;let j;return g.scheme===E.b.file?j=D.a.file(f.b(W(g))).path:(j=f.e.dirname(g.path),g.authority&&j.length&&j.charCodeAt(0)!==47&&(console.error(`dirname("${g.toString})) resulted in a relative path`),j="/")),g.with({path:j})}normalizePath(g){if(!g.path.length)return g;let j;return j=g.scheme===E.b.file?D.a.file(f.d(W(g))).path:f.e.normalize(g.path),g.with({path:j})}relativePath(g,j){if(g.scheme!==j.scheme||!N(g.authority,j.authority))return;if(g.scheme===E.b.file){let q=f.f(W(g),W(j));return ge.i?h.b(q):q}let ie=g.path||"/",U=j.path||"/";if(this._ignorePathCasing(g)){let q=0;for(let B=Math.min(ie.length,U.length);q<B&&(ie.charCodeAt(q)===U.charCodeAt(q)||ie.charAt(q).toLowerCase()===U.charAt(q).toLowerCase());q++);ie=U.substr(0,q)+ie.substr(q)}return f.e.relative(ie,U)}resolvePath(g,j){if(g.scheme===E.b.file){let ie=D.a.file(f.g(W(g),j));return g.with({authority:ie.authority,path:ie.path})}return j.indexOf("/")===-1&&(j=h.b(j),/^[a-zA-Z]:(\/|$)/.test(j)&&(j="/"+j)),g.with({path:f.e.resolve(g.path,j)})}isEqualAuthority(g,j){return g===j||Object(H.t)(g,j)}}(()=>!1),y=Q.isEqual.bind(Q),C=Q.basenameOrAuthority.bind(Q),S=Q.basename.bind(Q),P=Q.dirname.bind(Q),V=Q.joinPath.bind(Q),k=Q.normalizePath.bind(Q),l=Q.relativePath.bind(Q),T=Q.resolvePath.bind(Q),N=Q.isEqualAuthority.bind(Q);var b;(function(g){g.META_DATA_LABEL="label",g.META_DATA_DESCRIPTION="description",g.META_DATA_SIZE="size",g.META_DATA_MIME="mime",g.parseMetaData=function(j){let ie=new Map;j.path.substring(j.path.indexOf(";")+1,j.path.lastIndexOf(";")).split(";").forEach(q=>{let[B,se]=q.split(":");B&&se&&ie.set(B,se)});let U=j.path.substring(0,j.path.indexOf(";"));return U&&ie.set(g.META_DATA_MIME,U),ie}})(b||(b={}))},function(Ie,w,o){"use strict";var h=o(108);o.d(w,"a",function(){return h.b}),o.d(w,"b",function(){return h.e}),o.d(w,"c",function(){return h.h}),o.d(w,"d",function(){return h.l}),o.d(w,"e",function(){return h.m}),o.d(w,"f",function(){return h.n})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});class h{constructor(H){this.element=H,this.next=h.Undefined,this.prev=h.Undefined}}h.Undefined=new h(void 0);class f{constructor(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===h.Undefined}clear(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}unshift(H){return this._insert(H,!1)}push(H){return this._insert(H,!0)}_insert(H,E){let ge=new h(H);if(this._first===h.Undefined)this._first=ge,this._last=ge;else if(E){let Q=this._last;this._last=ge,ge.prev=Q,Q.next=ge}else{let Q=this._first;this._first=ge,ge.next=Q,Q.prev=ge}this._size+=1;let W=!1;return()=>{W||(W=!0,this._remove(ge))}}shift(){if(this._first!==h.Undefined){let H=this._first.element;return this._remove(this._first),H}}pop(){if(this._last!==h.Undefined){let H=this._last.element;return this._remove(this._last),H}}_remove(H){if(H.prev!==h.Undefined&&H.next!==h.Undefined){let E=H.prev;E.next=H.next,H.next.prev=E}else H.prev===h.Undefined&&H.next===h.Undefined?(this._first=h.Undefined,this._last=h.Undefined):H.next===h.Undefined?(this._last=this._last.prev,this._last.next=h.Undefined):H.prev===h.Undefined&&(this._first=this._first.next,this._first.prev=h.Undefined);this._size-=1}*[Symbol.iterator](){let H=this._first;for(;H!==h.Undefined;)yield H.element,H=H.next}toArray(){let H=[];for(let E=this._first;E!==h.Undefined;E=E.next)H.push(E.element);return H}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"g",function(){return E}),o.d(w,"b",function(){return ge}),o.d(w,"f",function(){return W}),o.d(w,"d",function(){return Q}),o.d(w,"c",function(){return y}),o.d(w,"e",function(){return C});var h=o(56),f=o(18),D=o(128);let H=Object(f.c)("configurationService");function E(S,P){let V=Object.create(null);for(let k in S)ge(V,k,S[k],P);return V}function ge(S,P,V,k){let l=P.split("."),T=l.pop(),N=S;for(let b=0;b<l.length;b++){let g=l[b],j=N[g];switch(typeof j){case"undefined":j=N[g]=Object.create(null);break;case"object":break;default:return void k(`Ignoring ${P} as ${l.slice(0,b+1).join(".")} is ${JSON.stringify(j)}`)}N=j}if(typeof N=="object"&&N!==null)try{N[T]=V}catch(b){k(`Ignoring ${P} as ${l.join(".")} is ${JSON.stringify(N)}`)}else k(`Ignoring ${P} as ${l.join(".")} is ${JSON.stringify(N)}`)}function W(S,P){(function V(k,l){let T=l.shift();if(l.length===0)return void delete k[T];if(Object.keys(k).indexOf(T)!==-1){let N=k[T];typeof N!="object"||Array.isArray(N)||(V(N,l),Object.keys(N).length===0&&delete k[T])}})(S,P.split("."))}function Q(S,P,V){let k=function(l,T){let N=l;for(let b of T){if(typeof N!="object"||N===null)return;N=N[b]}return N}(S,P.split("."));return k===void 0?V:k}function y(){let S=h.a.as(D.a.Configuration).getConfigurationProperties();return Object.keys(S)}function C(){let S=Object.create(null),P=h.a.as(D.a.Configuration).getConfigurationProperties();for(let V in P)ge(S,V,P[V].default,k=>console.error("Conflict in default settings: "+k));return S}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"c",function(){return f}),o.d(w,"b",function(){return D}),o.d(w,"e",function(){return H}),o.d(w,"d",function(){return E}),o.d(w,"f",function(){return ge}),o.d(w,"h",function(){return W}),o.d(w,"i",function(){return Q}),o.d(w,"g",function(){return y});var h,f,D,H,E,ge,W,Q,y,C=o(0);(function(S){S.noSelection=C.a("noSelection","No selection"),S.singleSelectionRange=C.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),S.singleSelection=C.a("singleSelection","Line {0}, Column {1}"),S.multiSelectionRange=C.a("multiSelectionRange","{0} selections ({1} characters selected)"),S.multiSelection=C.a("multiSelection","{0} selections"),S.emergencyConfOn=C.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),S.openingDocs=C.a("openingDocs","Now opening the Editor Accessibility documentation page."),S.readonlyDiffEditor=C.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),S.editableDiffEditor=C.a("editableDiffEditor"," in a pane of a diff editor."),S.readonlyEditor=C.a("readonlyEditor"," in a read-only code editor"),S.editableEditor=C.a("editableEditor"," in a code editor"),S.changeConfigToOnMac=C.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),S.changeConfigToOnWinLinux=C.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),S.auto_on=C.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),S.auto_off=C.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),S.tabFocusModeOnMsg=C.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),S.tabFocusModeOnMsgNoKb=C.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),S.tabFocusModeOffMsg=C.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),S.tabFocusModeOffMsgNoKb=C.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),S.openDocMac=C.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),S.openDocWinLinux=C.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),S.outroMsg=C.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),S.showAccessibilityHelpAction=C.a("showAccessibilityHelpAction","Show Accessibility Help")})(h||(h={})),function(S){S.inspectTokensAction=C.a("inspectTokens","Developer: Inspect Tokens")}(f||(f={})),function(S){S.gotoLineActionLabel=C.a("gotoLineActionLabel","Go to Line/Column...")}(D||(D={})),function(S){S.helpQuickAccessActionLabel=C.a("helpQuickAccess","Show all Quick Access Providers")}(H||(H={})),function(S){S.quickCommandActionLabel=C.a("quickCommandActionLabel","Command Palette"),S.quickCommandHelp=C.a("quickCommandActionHelp","Show And Run Commands")}(E||(E={})),function(S){S.quickOutlineActionLabel=C.a("quickOutlineActionLabel","Go to Symbol..."),S.quickOutlineByCategoryActionLabel=C.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(ge||(ge={})),function(S){S.editorViewAccessibleLabel=C.a("editorViewAccessibleLabel","Editor content"),S.accessibilityHelpMessage=C.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(W||(W={})),function(S){S.toggleHighContrast=C.a("toggleHighContrast","Toggle High Contrast Theme")}(Q||(Q={})),function(S){S.bulkEditServiceSummary=C.a("bulkEditServiceSummary","Made {0} edits in {1} files")}(y||(y={}))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(14),f=o(174);let D=new class{constructor(){this.data=new Map}add(H,E){f.a(h.j(H)),f.a(h.i(E)),f.a(!this.data.has(H),"There is already an extension with this id"),this.data.set(H,E)}as(H){return this.data.get(H)||null}}},function(Ie,w,o){"use strict";o.d(w,"i",function(){return E}),o.d(w,"j",function(){return ge}),o.d(w,"g",function(){return S}),o.d(w,"f",function(){return P}),o.d(w,"h",function(){return k}),o.d(w,"a",function(){return l}),o.d(w,"k",function(){return T}),o.d(w,"b",function(){return b}),o.d(w,"n",function(){return g}),o.d(w,"e",function(){return j}),o.d(w,"c",function(){return ie}),o.d(w,"d",function(){return U}),o.d(w,"m",function(){return q}),o.d(w,"l",function(){return B}),o.d(w,"o",function(){return ke}),o.d(w,"p",function(){return xe}),o.d(w,"s",function(){return Z}),o.d(w,"q",function(){return te}),o.d(w,"t",function(){return he}),o.d(w,"r",function(){return Ce});var h=o(0),f=o(16),D=o(5),H=o(19);let E=Object(D.gc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},h.a("lineHighlight","Background color for the highlight of line at the cursor position.")),ge=Object(D.gc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},h.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),W=Object(D.gc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},h.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Q=Object(D.gc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:D.b},h.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),y=Object(D.gc)("editor.symbolHighlightBackground",{dark:D.x,light:D.x,hc:null},h.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(D.gc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:D.b},h.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),S=Object(D.gc)("editorCursor.foreground",{dark:"#AEAFAD",light:f.a.black,hc:f.a.white},h.a("caret","Color of the editor cursor.")),P=Object(D.gc)("editorCursor.background",null,h.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),V=Object(D.gc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},h.a("editorWhitespaces","Color of whitespace characters in the editor.")),k=Object(D.gc)("editorIndentGuide.background",{dark:V,light:V,hc:V},h.a("editorIndentGuides","Color of the editor indentation guides.")),l=Object(D.gc)("editorIndentGuide.activeBackground",{dark:V,light:V,hc:V},h.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),T=Object(D.gc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:f.a.white},h.a("editorLineNumbers","Color of editor line numbers.")),N=Object(D.gc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:D.b},h.a("editorActiveLineNumber","Color of editor active line number"),!1,h.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),b=Object(D.gc)("editorLineNumber.activeForeground",{dark:N,light:N,hc:N},h.a("editorActiveLineNumber","Color of editor active line number")),g=Object(D.gc)("editorRuler.foreground",{dark:"#5A5A5A",light:f.a.lightgrey,hc:f.a.white},h.a("editorRuler","Color of the editor rulers.")),j=Object(D.gc)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},h.a("editorCodeLensForeground","Foreground color of editor CodeLens")),ie=Object(D.gc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},h.a("editorBracketMatchBackground","Background color behind matching brackets")),U=Object(D.gc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:D.h},h.a("editorBracketMatchBorder","Color for matching brackets boxes")),q=Object(D.gc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},h.a("editorOverviewRulerBorder","Color of the overview ruler border.")),B=Object(D.gc)("editorOverviewRuler.background",null,h.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),se=Object(D.gc)("editorGutter.background",{dark:D.s,light:D.s,hc:D.s},h.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),ke=Object(D.gc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:f.a.fromHex("#fff").transparent(.8)},h.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),xe=Object(D.gc)("editorUnnecessaryCode.opacity",{dark:f.a.fromHex("#000a"),light:f.a.fromHex("#0007"),hc:null},h.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Y=new f.a(new f.c(0,122,204,.6)),Z=Object(D.gc)("editorOverviewRuler.rangeHighlightForeground",{dark:Y,light:Y,hc:Y},h.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),te=Object(D.gc)("editorOverviewRuler.errorForeground",{dark:new f.a(new f.c(255,18,18,.7)),light:new f.a(new f.c(255,18,18,.7)),hc:new f.a(new f.c(255,50,50,1))},h.a("overviewRuleError","Overview ruler marker color for errors.")),he=Object(D.gc)("editorOverviewRuler.warningForeground",{dark:D.T,light:D.T,hc:D.S},h.a("overviewRuleWarning","Overview ruler marker color for warnings.")),Ce=Object(D.gc)("editorOverviewRuler.infoForeground",{dark:D.L,light:D.L,hc:D.K},h.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(H.g)((Ae,L)=>{let nt=Ae.getColor(D.s);nt&&L.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${nt}; }`);let ct=Ae.getColor(D.B);ct&&L.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${ct}; }`);let Ye=Ae.getColor(se);Ye&&L.addRule(`.monaco-editor .margin { background-color: ${Ye}; }`);let ht=Ae.getColor(W);ht&&L.addRule(`.monaco-editor .rangeHighlight { background-color: ${ht}; }`);let fe=Ae.getColor(Q);fe&&L.addRule(`.monaco-editor .rangeHighlight { border: 1px ${Ae.type==="hc"?"dotted":"solid"} ${fe}; }`);let $=Ae.getColor(y);$&&L.addRule(`.monaco-editor .symbolHighlight { background-color: ${$}; }`);let G=Ae.getColor(C);G&&L.addRule(`.monaco-editor .symbolHighlight { border: 1px ${Ae.type==="hc"?"dotted":"solid"} ${G}; }`);let z=Ae.getColor(V);z&&(L.addRule(`.monaco-editor .mtkw { color: ${z} !important; }`),L.addRule(`.monaco-editor .mtkz { color: ${z} !important; }`))})},function(Ie,w,o){"use strict";var h,f;o.d(w,"d",function(){return h}),o.d(w,"c",function(){return f}),o.d(w,"e",function(){return D}),o.d(w,"b",function(){return H}),o.d(w,"f",function(){return E}),o.d(w,"a",function(){return ge}),function(W){W[W.Left=1]="Left",W[W.Center=2]="Center",W[W.Right=4]="Right",W[W.Full=7]="Full"}(h||(h={})),function(W){W[W.Inline=1]="Inline",W[W.Gutter=2]="Gutter"}(f||(f={}));class D{constructor(Q){this.tabSize=Math.max(1,0|Q.tabSize),this.indentSize=0|Q.tabSize,this.insertSpaces=Boolean(Q.insertSpaces),this.defaultEOL=0|Q.defaultEOL,this.trimAutoWhitespace=Boolean(Q.trimAutoWhitespace)}equals(Q){return this.tabSize===Q.tabSize&&this.indentSize===Q.indentSize&&this.insertSpaces===Q.insertSpaces&&this.defaultEOL===Q.defaultEOL&&this.trimAutoWhitespace===Q.trimAutoWhitespace}createChangeEvent(Q){return{tabSize:this.tabSize!==Q.tabSize,indentSize:this.indentSize!==Q.indentSize,insertSpaces:this.insertSpaces!==Q.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==Q.trimAutoWhitespace}}}class H{constructor(Q,y){this.range=Q,this.matches=y}}class E{constructor(Q,y,C,S,P,V){this.identifier=Q,this.range=y,this.text=C,this.forceMoveMarkers=S,this.isAutoWhitespaceEdit=P,this._isTracked=V}}class ge{constructor(Q,y,C){this.reverseEdits=Q,this.changes=y,this.trimAutoWhitespaceLineNumbers=C}}},function(Ie,w,o){"use strict";var h=o(108);o.d(w,"a",function(){return h.b}),o.d(w,"b",function(){return h.e}),o.d(w,"c",function(){return h.h}),o.d(w,"d",function(){return h.l}),o.d(w,"e",function(){return h.m}),o.d(w,"f",function(){return h.n})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E}),o.d(w,"c",function(){return ge}),o.d(w,"d",function(){return W});var h=o(2),f=o(6),D=function(Q,y,C,S){return new(C||(C=Promise))(function(P,V){function k(N){try{T(S.next(N))}catch(b){V(b)}}function l(N){try{T(S.throw(N))}catch(b){V(b)}}function T(N){var b;N.done?P(N.value):(b=N.value,b instanceof C?b:new C(function(g){g(b)})).then(k,l)}T((S=S.apply(Q,y||[])).next())})};class H extends h.a{constructor(y,C="",S="",P=!0,V){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=y,this._label=C,this._cssClass=S,this._enabled=P,this._actionCallback=V}get id(){return this._id}get label(){return this._label}set label(y){this._setLabel(y)}_setLabel(y){this._label!==y&&(this._label=y,this._onDidChange.fire({label:y}))}get tooltip(){return this._tooltip||""}set tooltip(y){this._setTooltip(y)}_setTooltip(y){this._tooltip!==y&&(this._tooltip=y,this._onDidChange.fire({tooltip:y}))}get class(){return this._cssClass}set class(y){this._setClass(y)}_setClass(y){this._cssClass!==y&&(this._cssClass=y,this._onDidChange.fire({class:y}))}get enabled(){return this._enabled}set enabled(y){this._setEnabled(y)}_setEnabled(y){this._enabled!==y&&(this._enabled=y,this._onDidChange.fire({enabled:y}))}get checked(){return this._checked}set checked(y){this._setChecked(y)}_setChecked(y){this._checked!==y&&(this._checked=y,this._onDidChange.fire({checked:y}))}run(y,C){return this._actionCallback?this._actionCallback(y):Promise.resolve(!0)}}class E extends h.a{constructor(){super(...arguments),this._onDidBeforeRun=this._register(new f.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this._onDidRun=this._register(new f.a),this.onDidRun=this._onDidRun.event}run(y,C){return D(this,void 0,void 0,function*(){if(!y.enabled)return Promise.resolve(null);this._onDidBeforeRun.fire({action:y});try{let S=yield this.runAction(y,C);this._onDidRun.fire({action:y,result:S})}catch(S){this._onDidRun.fire({action:y,error:S})}})}runAction(y,C){let S=C?y.run(C):y.run();return Promise.resolve(S)}}class ge extends H{constructor(y){super(ge.ID,y,y?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ge.ID="vs.actions.separator";class W extends H{constructor(y,C,S,P){super(y,C,P,!0),this._actions=S}get actions(){return Array.isArray(this._actions)?this._actions:this._actions()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"b",function(){return W});var h,f=o(15),D=o(2),H=o(1),E=o(98),ge=function(Q,y,C,S){var P,V=arguments.length,k=V<3?y:S===null?S=Object.getOwnPropertyDescriptor(y,C):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(Q,y,C,S);else for(var l=Q.length-1;l>=0;l--)(P=Q[l])&&(k=(V<3?P(k):V>3?P(y,C,k):P(y,C))||k);return V>3&&k&&Object.defineProperty(y,C,k),k};(function(Q){Q.Tap="-monaco-gesturetap",Q.Change="-monaco-gesturechange",Q.Start="-monaco-gesturestart",Q.End="-monaco-gesturesend",Q.Contextmenu="-monaco-gesturecontextmenu"})(h||(h={}));class W extends D.a{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(H.i(document,"touchstart",y=>this.onTouchStart(y),{passive:!1})),this._register(H.i(document,"touchend",y=>this.onTouchEnd(y))),this._register(H.i(document,"touchmove",y=>this.onTouchMove(y),{passive:!1}))}static addTarget(y){return W.isTouchDevice()?(W.INSTANCE||(W.INSTANCE=new W),W.INSTANCE.targets.push(y),{dispose:()=>{W.INSTANCE.targets=W.INSTANCE.targets.filter(C=>C!==y)}}):D.a.None}static ignoreTarget(y){return W.isTouchDevice()?(W.INSTANCE||(W.INSTANCE=new W),W.INSTANCE.ignoreTargets.push(y),{dispose:()=>{W.INSTANCE.ignoreTargets=W.INSTANCE.ignoreTargets.filter(C=>C!==y)}}):D.a.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(y){let C=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let S=0,P=y.targetTouches.length;S<P;S++){let V=y.targetTouches.item(S);this.activeTouches[V.identifier]={id:V.identifier,initialTarget:V.target,initialTimeStamp:C,initialPageX:V.pageX,initialPageY:V.pageY,rollingTimestamps:[C],rollingPageX:[V.pageX],rollingPageY:[V.pageY]};let k=this.newGestureEvent(h.Start,V.target);k.pageX=V.pageX,k.pageY=V.pageY,this.dispatchEvent(k)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}onTouchEnd(y){let C=Date.now(),S=Object.keys(this.activeTouches).length;for(let P=0,V=y.changedTouches.length;P<V;P++){let k=y.changedTouches.item(P);if(!this.activeTouches.hasOwnProperty(String(k.identifier))){console.warn("move of an UNKNOWN touch",k);continue}let l=this.activeTouches[k.identifier],T=Date.now()-l.initialTimeStamp;if(T<W.HOLD_DELAY&&Math.abs(l.initialPageX-f.t(l.rollingPageX))<30&&Math.abs(l.initialPageY-f.t(l.rollingPageY))<30){let N=this.newGestureEvent(h.Tap,l.initialTarget);N.pageX=f.t(l.rollingPageX),N.pageY=f.t(l.rollingPageY),this.dispatchEvent(N)}else if(T>=W.HOLD_DELAY&&Math.abs(l.initialPageX-f.t(l.rollingPageX))<30&&Math.abs(l.initialPageY-f.t(l.rollingPageY))<30){let N=this.newGestureEvent(h.Contextmenu,l.initialTarget);N.pageX=f.t(l.rollingPageX),N.pageY=f.t(l.rollingPageY),this.dispatchEvent(N)}else if(S===1){let N=f.t(l.rollingPageX),b=f.t(l.rollingPageY),g=f.t(l.rollingTimestamps)-l.rollingTimestamps[0],j=N-l.rollingPageX[0],ie=b-l.rollingPageY[0],U=this.targets.filter(q=>l.initialTarget instanceof Node&&q.contains(l.initialTarget));this.inertia(U,C,Math.abs(j)/g,j>0?1:-1,N,Math.abs(ie)/g,ie>0?1:-1,b)}this.dispatchEvent(this.newGestureEvent(h.End,l.initialTarget)),delete this.activeTouches[k.identifier]}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}newGestureEvent(y,C){let S=document.createEvent("CustomEvent");return S.initEvent(y,!1,!0),S.initialTarget=C,S.tapCount=0,S}dispatchEvent(y){if(y.type===h.Tap){let C=new Date().getTime(),S=0;S=C-this._lastSetTapCountTime>W.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=C,y.tapCount=S}else y.type!==h.Change&&y.type!==h.Contextmenu||(this._lastSetTapCountTime=0);for(let C=0;C<this.ignoreTargets.length;C++)if(y.initialTarget instanceof Node&&this.ignoreTargets[C].contains(y.initialTarget))return;this.targets.forEach(C=>{y.initialTarget instanceof Node&&C.contains(y.initialTarget)&&(C.dispatchEvent(y),this.dispatched=!0)})}inertia(y,C,S,P,V,k,l,T){this.handle=H.Y(()=>{let N=Date.now(),b=N-C,g=0,j=0,ie=!0;S+=W.SCROLL_FRICTION*b,k+=W.SCROLL_FRICTION*b,S>0&&(ie=!1,g=P*S*b),k>0&&(ie=!1,j=l*k*b);let U=this.newGestureEvent(h.Change);U.translationX=g,U.translationY=j,y.forEach(q=>q.dispatchEvent(U)),ie||this.inertia(y,N,S,P,V+g,k,l,T+j)})}onTouchMove(y){let C=Date.now();for(let S=0,P=y.changedTouches.length;S<P;S++){let V=y.changedTouches.item(S);if(!this.activeTouches.hasOwnProperty(String(V.identifier))){console.warn("end of an UNKNOWN touch",V);continue}let k=this.activeTouches[V.identifier],l=this.newGestureEvent(h.Change,k.initialTarget);l.translationX=V.pageX-f.t(k.rollingPageX),l.translationY=V.pageY-f.t(k.rollingPageY),l.pageX=V.pageX,l.pageY=V.pageY,this.dispatchEvent(l),k.rollingPageX.length>3&&(k.rollingPageX.shift(),k.rollingPageY.shift(),k.rollingTimestamps.shift()),k.rollingPageX.push(V.pageX),k.rollingPageY.push(V.pageY),k.rollingTimestamps.push(C)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}}W.SCROLL_FRICTION=-.005,W.HOLD_DELAY=700,W.CLEAR_TAP_COUNT_TIME=400,ge([E.a],W,"isTouchDevice",null)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"c",function(){return D}),o.d(w,"e",function(){return H}),o.d(w,"d",function(){return E}),o.d(w,"b",function(){return ge});var h=o(21);class f{constructor(Q,y,C=!1){this._range=Q,this._text=y,this.insertsAutoWhitespace=C}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.endLineNumber,C.endColumn,C.endLineNumber,C.endColumn)}}class D{constructor(Q,y){this._range=Q,this._text=y}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)}}class H{constructor(Q,y,C=!1){this._range=Q,this._text=y,this.insertsAutoWhitespace=C}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.startLineNumber,C.startColumn,C.startLineNumber,C.startColumn)}}class E{constructor(Q,y,C,S,P=!1){this._range=Q,this._text=y,this._columnDeltaOffset=S,this._lineNumberDeltaOffset=C,this.insertsAutoWhitespace=P}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.endLineNumber+this._lineNumberDeltaOffset,C.endColumn+this._columnDeltaOffset,C.endLineNumber+this._lineNumberDeltaOffset,C.endColumn+this._columnDeltaOffset)}}class ge{constructor(Q,y,C,S=!1){this._range=Q,this._text=y,this._initialSelection=C,this._forceMoveMarkers=S,this._selectionId=null}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=y.trackSelection(this._initialSelection)}computeCursorState(Q,y){return y.getTrackedSelection(this._selectionId)}}},function(Ie,w,o){"use strict";o.d(w,"c",function(){return h}),o.d(w,"a",function(){return f}),o.d(w,"b",function(){return ge});var h,f,D=o(18),H=o(0),E=o(68);(function(W){W[W.Hint=1]="Hint",W[W.Info=2]="Info",W[W.Warning=4]="Warning",W[W.Error=8]="Error"})(h||(h={})),function(W){W.compare=function(y,C){return C-y};let Q=Object.create(null);Q[W.Error]=Object(H.a)("sev.error","Error"),Q[W.Warning]=Object(H.a)("sev.warning","Warning"),Q[W.Info]=Object(H.a)("sev.info","Info"),W.toString=function(y){return Q[y]||""},W.fromSeverity=function(y){switch(y){case E.a.Error:return W.Error;case E.a.Warning:return W.Warning;case E.a.Info:return W.Info;case E.a.Ignore:return W.Hint}},W.toSeverity=function(y){switch(y){case W.Error:return E.a.Error;case W.Warning:return E.a.Warning;case W.Info:return E.a.Info;case W.Hint:return E.a.Ignore}}}(h||(h={})),function(W){function Q(y,C){let S=[""];return y.source?S.push(y.source.replace("\xA6","\\\xA6")):S.push(""),y.code?typeof y.code=="string"?S.push(y.code.replace("\xA6","\\\xA6")):S.push(y.code.value.replace("\xA6","\\\xA6")):S.push(""),y.severity!==void 0&&y.severity!==null?S.push(h.toString(y.severity)):S.push(""),y.message&&C?S.push(y.message.replace("\xA6","\\\xA6")):S.push(""),y.startLineNumber!==void 0&&y.startLineNumber!==null?S.push(y.startLineNumber.toString()):S.push(""),y.startColumn!==void 0&&y.startColumn!==null?S.push(y.startColumn.toString()):S.push(""),y.endLineNumber!==void 0&&y.endLineNumber!==null?S.push(y.endLineNumber.toString()):S.push(""),y.endColumn!==void 0&&y.endColumn!==null?S.push(y.endColumn.toString()):S.push(""),S.push(""),S.join("\xA6")}W.makeKey=function(y){return Q(y,!0)},W.makeKeyOptionalMessage=Q}(f||(f={}));let ge=Object(D.c)("markerService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(18);let f=Object(h.c)("modelService");function D(H){return!H.isTooLargeForSyncing()&&!H.isForSimpleWidget}},function(Ie,w,o){"use strict";function h(T,N){N===void 0&&(N=!1);var b=T.length,g=0,j="",ie=0,U=16,q=0,B=0,se=0,ke=0,xe=0;function Y(he,Ce){for(var Ae=0,L=0;Ae<he||!Ce;){var nt=T.charCodeAt(g);if(nt>=48&&nt<=57)L=16*L+nt-48;else if(nt>=65&&nt<=70)L=16*L+nt-65+10;else{if(!(nt>=97&&nt<=102))break;L=16*L+nt-97+10}g++,Ae++}return Ae<he&&(L=-1),L}function Z(){if(j="",xe=0,ie=g,B=q,ke=se,g>=b)return ie=b,U=17;var he=T.charCodeAt(g);if(f(he)){do g++,j+=String.fromCharCode(he),he=T.charCodeAt(g);while(f(he));return U=15}if(D(he))return g++,j+=String.fromCharCode(he),he===13&&T.charCodeAt(g)===10&&(g++,j+=` -`),q++,se=g,U=14;switch(he){case 123:return g++,U=1;case 125:return g++,U=2;case 91:return g++,U=3;case 93:return g++,U=4;case 58:return g++,U=6;case 44:return g++,U=5;case 34:return g++,j=function(){for(var ct="",Ye=g;;){if(g>=b){ct+=T.substring(Ye,g),xe=2;break}var ht=T.charCodeAt(g);if(ht===34){ct+=T.substring(Ye,g),g++;break}if(ht!==92){if(ht>=0&&ht<=31){if(D(ht)){ct+=T.substring(Ye,g),xe=2;break}xe=6}g++}else{if(ct+=T.substring(Ye,g),++g>=b){xe=2;break}switch(T.charCodeAt(g++)){case 34:ct+='"';break;case 92:ct+="\\";break;case 47:ct+="/";break;case 98:ct+="\b";break;case 102:ct+="\f";break;case 110:ct+=` -`;break;case 114:ct+="\r";break;case 116:ct+=" ";break;case 117:var fe=Y(4,!0);fe>=0?ct+=String.fromCharCode(fe):xe=4;break;default:xe=5}Ye=g}}return ct}(),U=10;case 47:var Ce=g-1;if(T.charCodeAt(g+1)===47){for(g+=2;g<b&&!D(T.charCodeAt(g));)g++;return j=T.substring(Ce,g),U=12}if(T.charCodeAt(g+1)===42){g+=2;for(var Ae=b-1,L=!1;g<Ae;){var nt=T.charCodeAt(g);if(nt===42&&T.charCodeAt(g+1)===47){g+=2,L=!0;break}g++,D(nt)&&(nt===13&&T.charCodeAt(g)===10&&g++,q++,se=g)}return L||(g++,xe=1),j=T.substring(Ce,g),U=13}return j+=String.fromCharCode(he),g++,U=16;case 45:if(j+=String.fromCharCode(he),++g===b||!H(T.charCodeAt(g)))return U=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return j+=function(){var ct=g;if(T.charCodeAt(g)===48)g++;else for(g++;g<T.length&&H(T.charCodeAt(g));)g++;if(g<T.length&&T.charCodeAt(g)===46){if(!(++g<T.length&&H(T.charCodeAt(g))))return xe=3,T.substring(ct,g);for(g++;g<T.length&&H(T.charCodeAt(g));)g++}var Ye=g;if(g<T.length&&(T.charCodeAt(g)===69||T.charCodeAt(g)===101))if((++g<T.length&&T.charCodeAt(g)===43||T.charCodeAt(g)===45)&&g++,g<T.length&&H(T.charCodeAt(g))){for(g++;g<T.length&&H(T.charCodeAt(g));)g++;Ye=g}else xe=3;return T.substring(ct,Ye)}(),U=11;default:for(;g<b&&te(he);)g++,he=T.charCodeAt(g);if(ie!==g){switch(j=T.substring(ie,g)){case"true":return U=8;case"false":return U=9;case"null":return U=7}return U=16}return j+=String.fromCharCode(he),g++,U=16}}function te(he){if(f(he)||D(he))return!1;switch(he){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(he){g=he,j="",ie=0,U=16,xe=0},getPosition:function(){return g},scan:N?function(){var he;do he=Z();while(he>=12&&he<=15);return he}:Z,getToken:function(){return U},getTokenValue:function(){return j},getTokenOffset:function(){return ie},getTokenLength:function(){return g-ie},getTokenStartLine:function(){return B},getTokenStartCharacter:function(){return ie-ke},getTokenError:function(){return xe}}}function f(T){return T===32||T===9||T===11||T===12||T===160||T===5760||T>=8192&&T<=8203||T===8239||T===8287||T===12288||T===65279}function D(T){return T===10||T===13||T===8232||T===8233}function H(T){return T>=48&&T<=57}function E(T,N,b){var g,j,ie,U,q;if(N){for(U=N.offset,q=U+N.length,ie=U;ie>0&&!W(T,ie-1);)ie--;for(var B=q;B<T.length&&!W(T,B);)B++;j=T.substring(ie,B),g=function($,G){for(var z=0,J=0,Se=G.tabSize||4;z<$.length;){var A=$.charAt(z);if(A===" ")J++;else{if(A!==" ")break;J+=Se}z++}return Math.floor(J/Se)}(j,b)}else j=T,g=0,ie=0,U=0,q=T.length;var se,ke=function($,G){for(var z=0;z<G.length;z++){var J=G.charAt(z);if(J==="\r")return z+1<G.length&&G.charAt(z+1)===` +In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::grammar-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E80","FF68","S11.1","C80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E12","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]},Xs=function(){function x(c){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(c)}return x.prototype.provideProperties=function(){return this._properties},x.prototype.provideAtDirectives=function(){return this._atDirectives},x.prototype.providePseudoClasses=function(){return this._pseudoClasses},x.prototype.providePseudoElements=function(){return this._pseudoElements},x.prototype.addData=function(c){if(Array.isArray(c.properties))for(var p=0,F=c.properties;p<F.length;p++){var pe=F[p];typeof pe.name=="string"&&this._properties.push(pe)}if(Array.isArray(c.atDirectives))for(var He=0,Qe=c.atDirectives;He<Qe.length;He++)Rs(pe=Qe[He])&&this._atDirectives.push(pe);if(Array.isArray(c.pseudoClasses))for(var Vt=0,$t=c.pseudoClasses;Vt<$t.length;Vt++)Zo(pe=$t[Vt])&&this._pseudoClasses.push(pe);if(Array.isArray(c.pseudoElements))for(var ci=0,Ft=c.pseudoElements;ci<Ft.length;ci++)Qs(pe=Ft[ci])&&this._pseudoElements.push(pe)},x}();function Rs(x){return typeof x.name=="string"}function Zo(x){return typeof x.name=="string"}function Qs(x){return typeof x.name=="string"}var Aa=function(){function x(c){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders((c==null?void 0:c.useDefaultDataProvider)!==!1,(c==null?void 0:c.customDataProviders)||[])}return x.prototype.setDataProviders=function(c,p){var F;this.dataProviders=[],c&&this.dataProviders.push(new Xs(ar)),(F=this.dataProviders).push.apply(F,p),this.collectData()},x.prototype.collectData=function(){var c=this;this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(function(p){p.provideProperties().forEach(function(F){c._propertySet[F.name]||(c._propertySet[F.name]=F)}),p.provideAtDirectives().forEach(function(F){c._atDirectiveSet[F.name]||(c._atDirectiveSet[F.name]=F)}),p.providePseudoClasses().forEach(function(F){c._pseudoClassSet[F.name]||(c._pseudoClassSet[F.name]=F)}),p.providePseudoElements().forEach(function(F){c._pseudoElementSet[F.name]||(c._pseudoElementSet[F.name]=F)})}),this._properties=ei(this._propertySet),this._atDirectives=ei(this._atDirectiveSet),this._pseudoClasses=ei(this._pseudoClassSet),this._pseudoElements=ei(this._pseudoElementSet)},x.prototype.getProperty=function(c){return this._propertySet[c]},x.prototype.getAtDirective=function(c){return this._atDirectiveSet[c]},x.prototype.getPseudoClass=function(c){return this._pseudoClassSet[c]},x.prototype.getPseudoElement=function(c){return this._pseudoElementSet[c]},x.prototype.getProperties=function(){return this._properties},x.prototype.getAtDirectives=function(){return this._atDirectives},x.prototype.getPseudoClasses=function(){return this._pseudoClasses},x.prototype.getPseudoElements=function(){return this._pseudoElements},x.prototype.isKnownProperty=function(c){return c.toLowerCase()in this._propertySet},x.prototype.isStandardProperty=function(c){return this.isKnownProperty(c)&&(!this._propertySet[c.toLowerCase()].status||this._propertySet[c.toLowerCase()].status==="standard")},x}();function Sl(x,c,p){return c.map(function(F){for(var pe=function(Vt){var $t=x.offsetAt(Vt),ci=p.findChildAtOffset($t,!0);if(!ci)return[];for(var Ft=[];ci;)ci.parent&&ci.offset===ci.parent.offset&&ci.end===ci.parent.end||(ci.type===it.Declarations&&$t>ci.offset&&$t<ci.end&&Ft.push([ci.offset+1,ci.end-1]),Ft.push([ci.offset,ci.end])),ci=ci.parent;return Ft}(F),He=void 0,Qe=pe.length-1;Qe>=0;Qe--)He=ra.create(Sn.create(x.positionAt(pe[Qe][0]),x.positionAt(pe[Qe][1])),He);return He||(He=ra.create(Sn.create(F,F))),He})}var Ka=function(){var x=function(c,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,pe){F.__proto__=pe}||function(F,pe){for(var He in pe)pe.hasOwnProperty(He)&&(F[He]=pe[He])})(c,p)};return function(c,p){function F(){this.constructor=c}x(c,p),c.prototype=p===null?Object.create(p):(F.prototype=p.prototype,new F)}}(),Js=function(x,c,p,F){return new(p||(p=Promise))(function(pe,He){function Qe(ci){try{$t(F.next(ci))}catch(Ft){He(Ft)}}function Vt(ci){try{$t(F.throw(ci))}catch(Ft){He(Ft)}}function $t(ci){var Ft;ci.done?pe(ci.value):(Ft=ci.value,Ft instanceof p?Ft:new p(function(Fi){Fi(Ft)})).then(Qe,Vt)}$t((F=F.apply(x,c||[])).next())})},Ga=function(x,c){var p,F,pe,He,Qe={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return He={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function Vt($t){return function(ci){return function(Ft){if(p)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(p=1,F&&(pe=2&Ft[0]?F.return:Ft[0]?F.throw||((pe=F.return)&&pe.call(F),0):F.next)&&!(pe=pe.call(F,Ft[1])).done)return pe;switch(F=0,pe&&(Ft=[2&Ft[0],pe.value]),Ft[0]){case 0:case 1:pe=Ft;break;case 4:return Qe.label++,{value:Ft[1],done:!1};case 5:Qe.label++,F=Ft[1],Ft=[0];continue;case 7:Ft=Qe.ops.pop(),Qe.trys.pop();continue;default:if(pe=Qe.trys,!((pe=pe.length>0&&pe[pe.length-1])||Ft[0]!==6&&Ft[0]!==2)){Qe=0;continue}if(Ft[0]===3&&(!pe||Ft[1]>pe[0]&&Ft[1]<pe[3])){Qe.label=Ft[1];break}if(Ft[0]===6&&Qe.label<pe[1]){Qe.label=pe[1],pe=Ft;break}if(pe&&Qe.label<pe[2]){Qe.label=pe[2],Qe.ops.push(Ft);break}pe[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Ft=c.call(x,Qe)}catch(Fi){Ft=[6,Fi],F=0}finally{p=pe=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([$t,ci])}}},Jl=function(x){function c(p){return x.call(this,p)||this}return Ka(c,x),c.prototype.isRawStringDocumentLinkNode=function(p){return x.prototype.isRawStringDocumentLinkNode.call(this,p)||p.type===it.Use||p.type===it.Forward},c.prototype.resolveRelativeReference=function(p,F,pe){return Js(this,void 0,void 0,function(){var He,Qe,Vt,$t;return Ga(this,function(ci){switch(ci.label){case 0:return de(p,"sass:")?[2,void 0]:[4,x.prototype.resolveRelativeReference.call(this,p,F,pe)];case 1:if(He=ci.sent(),!this.fileSystemProvider||!He||function(Ft){for(var Fi=Ft.length-1;Fi>=0;Fi--){var cn=Ft.charCodeAt(Fi);if(cn===Io){if(Fi>0&&Ft.charCodeAt(Fi-1)!==ks)return Ft.substr(Fi);break}if(cn===ks)break}return""}(He).length!==0)return[3,8];ci.label=2;case 2:if(ci.trys.push([2,7,,8]),Qe=xa.a.parse(He),!(Vt=function(Ft){if(Ft.path!==""&&!Ft.path.endsWith(".scss")&&!Ft.path.endsWith(".css")){if(Ft.path.endsWith("/"))return[Ft.with({path:Ft.path+"index.scss"}).toString(),Ft.with({path:Ft.path+"_index.scss"}).toString()];var Fi=Ft.path.split("/"),cn=Fi[Fi.length-1],vn=Ft.path.slice(0,-cn.length);if(cn.startsWith("_"))return Ft.path.endsWith(".scss")?void 0:[Ft.with({path:Ft.path+".scss"}).toString()];var on=cn+".scss",Pn=function(jn){return Ft.with({path:vn+jn}).toString()};return[Pn(on),Pn("_"+on),Pn(on.slice(0,-5)+"/index.scss"),Pn(on.slice(0,-5)+"/_index.scss"),Pn(on.slice(0,-5)+".css")]}}(Qe)))return[3,6];$t=0,ci.label=3;case 3:return $t<Vt.length?[4,this.fileExists(Vt[$t])]:[3,6];case 4:if(ci.sent())return[2,Vt[$t]];ci.label=5;case 5:return $t++,[3,3];case 6:return[2,void 0];case 7:return ci.sent(),[3,8];case 8:return[2,He]}})})},c}(at);function ea(x,c,p,F,pe,He,Qe){return{configure:function(Vt){He.configure(Vt),c.configure(Vt)},setDataProviders:Qe.setDataProviders.bind(Qe),doValidation:He.doValidation.bind(He),parseStylesheet:x.parseStylesheet.bind(x),doComplete:c.doComplete.bind(c),doComplete2:c.doComplete2.bind(c),setCompletionParticipants:c.setCompletionParticipants.bind(c),doHover:p.doHover.bind(p),findDefinition:F.findDefinition.bind(F),findReferences:F.findReferences.bind(F),findDocumentHighlights:F.findDocumentHighlights.bind(F),findDocumentLinks:F.findDocumentLinks.bind(F),findDocumentLinks2:F.findDocumentLinks2.bind(F),findDocumentSymbols:F.findDocumentSymbols.bind(F),doCodeActions:pe.doCodeActions.bind(pe),doCodeActions2:pe.doCodeActions2.bind(pe),findColorSymbols:function(Vt,$t){return F.findDocumentColors(Vt,$t).map(function(ci){return ci.range})},findDocumentColors:F.findDocumentColors.bind(F),getColorPresentations:F.getColorPresentations.bind(F),doRename:F.doRename.bind(F),getFoldingRanges:ca,getSelectionRanges:Sl}}var Ya={};function Nc(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new ln,new Ao(null,x,c),new we(x&&x.clientCapabilities,c),new at(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}function Ic(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new xo,new wl(x,c),new we(x&&x.clientCapabilities,c),new Jl(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}function Dc(x){x===void 0&&(x=Ya);var c=new Aa(x);return ea(new As,new Zs(x,c),new we(x&&x.clientCapabilities,c),new at(x&&x.fileSystemProvider),new An(c),new Gs(c),c)}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O}),r.d(w,"b",function(){return H});var h=r(68),f=r(18);h.a;let O=Object(f.c)("notificationService");class H{}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("keybindingService")},function(Ie,w,r){"use strict";r.d(w,"i",function(){return W}),r.d(w,"e",function(){return Q}),r.d(w,"f",function(){return y}),r.d(w,"c",function(){return C}),r.d(w,"b",function(){return S}),r.d(w,"d",function(){return P}),r.d(w,"g",function(){return V}),r.d(w,"h",function(){return k}),r.d(w,"j",function(){return l}),r.d(w,"k",function(){return T}),r.d(w,"a",function(){return b});var h=r(179),f=r(42),O=r(23),H=r(8),E=r(45),ge=r(11);function W(g){return Object(O.b)(g,!0)}let Q=new class{constructor(g){this._ignorePathCasing=g}compare(g,j,ie=!1){return g===j?0:Object(H.f)(this.getComparisonKey(g,ie),this.getComparisonKey(j,ie))}isEqual(g,j,ie=!1){return g===j||!(!g||!j)&&this.getComparisonKey(g,ie)===this.getComparisonKey(j,ie)}getComparisonKey(g,j=!1){return g.with({path:this._ignorePathCasing(g)?g.path.toLowerCase():void 0,fragment:j?null:void 0}).toString()}joinPath(g,...j){return O.a.joinPath(g,...j)}basenameOrAuthority(g){return S(g)||g.authority}basename(g){return f.e.basename(g.path)}dirname(g){if(g.path.length===0)return g;let j;return g.scheme===E.b.file?j=O.a.file(f.b(W(g))).path:(j=f.e.dirname(g.path),g.authority&&j.length&&j.charCodeAt(0)!==47&&(console.error(`dirname("${g.toString})) resulted in a relative path`),j="/")),g.with({path:j})}normalizePath(g){if(!g.path.length)return g;let j;return j=g.scheme===E.b.file?O.a.file(f.d(W(g))).path:f.e.normalize(g.path),g.with({path:j})}relativePath(g,j){if(g.scheme!==j.scheme||!N(g.authority,j.authority))return;if(g.scheme===E.b.file){let q=f.f(W(g),W(j));return ge.i?h.b(q):q}let ie=g.path||"/",U=j.path||"/";if(this._ignorePathCasing(g)){let q=0;for(let B=Math.min(ie.length,U.length);q<B&&(ie.charCodeAt(q)===U.charCodeAt(q)||ie.charAt(q).toLowerCase()===U.charAt(q).toLowerCase());q++);ie=U.substr(0,q)+ie.substr(q)}return f.e.relative(ie,U)}resolvePath(g,j){if(g.scheme===E.b.file){let ie=O.a.file(f.g(W(g),j));return g.with({authority:ie.authority,path:ie.path})}return j.indexOf("/")===-1&&(j=h.b(j),/^[a-zA-Z]:(\/|$)/.test(j)&&(j="/"+j)),g.with({path:f.e.resolve(g.path,j)})}isEqualAuthority(g,j){return g===j||Object(H.t)(g,j)}}(()=>!1),y=Q.isEqual.bind(Q),C=Q.basenameOrAuthority.bind(Q),S=Q.basename.bind(Q),P=Q.dirname.bind(Q),V=Q.joinPath.bind(Q),k=Q.normalizePath.bind(Q),l=Q.relativePath.bind(Q),T=Q.resolvePath.bind(Q),N=Q.isEqualAuthority.bind(Q);var b;(function(g){g.META_DATA_LABEL="label",g.META_DATA_DESCRIPTION="description",g.META_DATA_SIZE="size",g.META_DATA_MIME="mime",g.parseMetaData=function(j){let ie=new Map;j.path.substring(j.path.indexOf(";")+1,j.path.lastIndexOf(";")).split(";").forEach(q=>{let[B,se]=q.split(":");B&&se&&ie.set(B,se)});let U=j.path.substring(0,j.path.indexOf(";"));return U&&ie.set(g.META_DATA_MIME,U),ie}})(b||(b={}))},function(Ie,w,r){"use strict";var h=r(108);r.d(w,"a",function(){return h.b}),r.d(w,"b",function(){return h.e}),r.d(w,"c",function(){return h.h}),r.d(w,"d",function(){return h.l}),r.d(w,"e",function(){return h.m}),r.d(w,"f",function(){return h.n})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});class h{constructor(H){this.element=H,this.next=h.Undefined,this.prev=h.Undefined}}h.Undefined=new h(void 0);class f{constructor(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===h.Undefined}clear(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}unshift(H){return this._insert(H,!1)}push(H){return this._insert(H,!0)}_insert(H,E){let ge=new h(H);if(this._first===h.Undefined)this._first=ge,this._last=ge;else if(E){let Q=this._last;this._last=ge,ge.prev=Q,Q.next=ge}else{let Q=this._first;this._first=ge,ge.next=Q,Q.prev=ge}this._size+=1;let W=!1;return()=>{W||(W=!0,this._remove(ge))}}shift(){if(this._first!==h.Undefined){let H=this._first.element;return this._remove(this._first),H}}pop(){if(this._last!==h.Undefined){let H=this._last.element;return this._remove(this._last),H}}_remove(H){if(H.prev!==h.Undefined&&H.next!==h.Undefined){let E=H.prev;E.next=H.next,H.next.prev=E}else H.prev===h.Undefined&&H.next===h.Undefined?(this._first=h.Undefined,this._last=h.Undefined):H.next===h.Undefined?(this._last=this._last.prev,this._last.next=h.Undefined):H.prev===h.Undefined&&(this._first=this._first.next,this._first.prev=h.Undefined);this._size-=1}*[Symbol.iterator](){let H=this._first;for(;H!==h.Undefined;)yield H.element,H=H.next}toArray(){let H=[];for(let E=this._first;E!==h.Undefined;E=E.next)H.push(E.element);return H}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"g",function(){return E}),r.d(w,"b",function(){return ge}),r.d(w,"f",function(){return W}),r.d(w,"d",function(){return Q}),r.d(w,"c",function(){return y}),r.d(w,"e",function(){return C});var h=r(56),f=r(18),O=r(128);let H=Object(f.c)("configurationService");function E(S,P){let V=Object.create(null);for(let k in S)ge(V,k,S[k],P);return V}function ge(S,P,V,k){let l=P.split("."),T=l.pop(),N=S;for(let b=0;b<l.length;b++){let g=l[b],j=N[g];switch(typeof j){case"undefined":j=N[g]=Object.create(null);break;case"object":break;default:return void k(`Ignoring ${P} as ${l.slice(0,b+1).join(".")} is ${JSON.stringify(j)}`)}N=j}if(typeof N=="object"&&N!==null)try{N[T]=V}catch(b){k(`Ignoring ${P} as ${l.join(".")} is ${JSON.stringify(N)}`)}else k(`Ignoring ${P} as ${l.join(".")} is ${JSON.stringify(N)}`)}function W(S,P){(function V(k,l){let T=l.shift();if(l.length===0)return void delete k[T];if(Object.keys(k).indexOf(T)!==-1){let N=k[T];typeof N!="object"||Array.isArray(N)||(V(N,l),Object.keys(N).length===0&&delete k[T])}})(S,P.split("."))}function Q(S,P,V){let k=function(l,T){let N=l;for(let b of T){if(typeof N!="object"||N===null)return;N=N[b]}return N}(S,P.split("."));return k===void 0?V:k}function y(){let S=h.a.as(O.a.Configuration).getConfigurationProperties();return Object.keys(S)}function C(){let S=Object.create(null),P=h.a.as(O.a.Configuration).getConfigurationProperties();for(let V in P)ge(S,V,P[V].default,k=>console.error("Conflict in default settings: "+k));return S}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"c",function(){return f}),r.d(w,"b",function(){return O}),r.d(w,"e",function(){return H}),r.d(w,"d",function(){return E}),r.d(w,"f",function(){return ge}),r.d(w,"h",function(){return W}),r.d(w,"i",function(){return Q}),r.d(w,"g",function(){return y});var h,f,O,H,E,ge,W,Q,y,C=r(0);(function(S){S.noSelection=C.a("noSelection","No selection"),S.singleSelectionRange=C.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),S.singleSelection=C.a("singleSelection","Line {0}, Column {1}"),S.multiSelectionRange=C.a("multiSelectionRange","{0} selections ({1} characters selected)"),S.multiSelection=C.a("multiSelection","{0} selections"),S.emergencyConfOn=C.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),S.openingDocs=C.a("openingDocs","Now opening the Editor Accessibility documentation page."),S.readonlyDiffEditor=C.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),S.editableDiffEditor=C.a("editableDiffEditor"," in a pane of a diff editor."),S.readonlyEditor=C.a("readonlyEditor"," in a read-only code editor"),S.editableEditor=C.a("editableEditor"," in a code editor"),S.changeConfigToOnMac=C.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),S.changeConfigToOnWinLinux=C.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),S.auto_on=C.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),S.auto_off=C.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),S.tabFocusModeOnMsg=C.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),S.tabFocusModeOnMsgNoKb=C.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),S.tabFocusModeOffMsg=C.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),S.tabFocusModeOffMsgNoKb=C.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),S.openDocMac=C.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),S.openDocWinLinux=C.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),S.outroMsg=C.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),S.showAccessibilityHelpAction=C.a("showAccessibilityHelpAction","Show Accessibility Help")})(h||(h={})),function(S){S.inspectTokensAction=C.a("inspectTokens","Developer: Inspect Tokens")}(f||(f={})),function(S){S.gotoLineActionLabel=C.a("gotoLineActionLabel","Go to Line/Column...")}(O||(O={})),function(S){S.helpQuickAccessActionLabel=C.a("helpQuickAccess","Show all Quick Access Providers")}(H||(H={})),function(S){S.quickCommandActionLabel=C.a("quickCommandActionLabel","Command Palette"),S.quickCommandHelp=C.a("quickCommandActionHelp","Show And Run Commands")}(E||(E={})),function(S){S.quickOutlineActionLabel=C.a("quickOutlineActionLabel","Go to Symbol..."),S.quickOutlineByCategoryActionLabel=C.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(ge||(ge={})),function(S){S.editorViewAccessibleLabel=C.a("editorViewAccessibleLabel","Editor content"),S.accessibilityHelpMessage=C.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(W||(W={})),function(S){S.toggleHighContrast=C.a("toggleHighContrast","Toggle High Contrast Theme")}(Q||(Q={})),function(S){S.bulkEditServiceSummary=C.a("bulkEditServiceSummary","Made {0} edits in {1} files")}(y||(y={}))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(14),f=r(174);let O=new class{constructor(){this.data=new Map}add(H,E){f.a(h.j(H)),f.a(h.i(E)),f.a(!this.data.has(H),"There is already an extension with this id"),this.data.set(H,E)}as(H){return this.data.get(H)||null}}},function(Ie,w,r){"use strict";r.d(w,"i",function(){return E}),r.d(w,"j",function(){return ge}),r.d(w,"g",function(){return S}),r.d(w,"f",function(){return P}),r.d(w,"h",function(){return k}),r.d(w,"a",function(){return l}),r.d(w,"k",function(){return T}),r.d(w,"b",function(){return b}),r.d(w,"n",function(){return g}),r.d(w,"e",function(){return j}),r.d(w,"c",function(){return ie}),r.d(w,"d",function(){return U}),r.d(w,"m",function(){return q}),r.d(w,"l",function(){return B}),r.d(w,"o",function(){return ke}),r.d(w,"p",function(){return xe}),r.d(w,"s",function(){return Z}),r.d(w,"q",function(){return te}),r.d(w,"t",function(){return he}),r.d(w,"r",function(){return Ce});var h=r(0),f=r(15),O=r(5),H=r(19);let E=Object(O.gc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},h.a("lineHighlight","Background color for the highlight of line at the cursor position.")),ge=Object(O.gc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},h.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),W=Object(O.gc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},h.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Q=Object(O.gc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:O.b},h.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),y=Object(O.gc)("editor.symbolHighlightBackground",{dark:O.x,light:O.x,hc:null},h.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(O.gc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:O.b},h.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),S=Object(O.gc)("editorCursor.foreground",{dark:"#AEAFAD",light:f.a.black,hc:f.a.white},h.a("caret","Color of the editor cursor.")),P=Object(O.gc)("editorCursor.background",null,h.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),V=Object(O.gc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},h.a("editorWhitespaces","Color of whitespace characters in the editor.")),k=Object(O.gc)("editorIndentGuide.background",{dark:V,light:V,hc:V},h.a("editorIndentGuides","Color of the editor indentation guides.")),l=Object(O.gc)("editorIndentGuide.activeBackground",{dark:V,light:V,hc:V},h.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),T=Object(O.gc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:f.a.white},h.a("editorLineNumbers","Color of editor line numbers.")),N=Object(O.gc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:O.b},h.a("editorActiveLineNumber","Color of editor active line number"),!1,h.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),b=Object(O.gc)("editorLineNumber.activeForeground",{dark:N,light:N,hc:N},h.a("editorActiveLineNumber","Color of editor active line number")),g=Object(O.gc)("editorRuler.foreground",{dark:"#5A5A5A",light:f.a.lightgrey,hc:f.a.white},h.a("editorRuler","Color of the editor rulers.")),j=Object(O.gc)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},h.a("editorCodeLensForeground","Foreground color of editor CodeLens")),ie=Object(O.gc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},h.a("editorBracketMatchBackground","Background color behind matching brackets")),U=Object(O.gc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:O.h},h.a("editorBracketMatchBorder","Color for matching brackets boxes")),q=Object(O.gc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},h.a("editorOverviewRulerBorder","Color of the overview ruler border.")),B=Object(O.gc)("editorOverviewRuler.background",null,h.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),se=Object(O.gc)("editorGutter.background",{dark:O.s,light:O.s,hc:O.s},h.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),ke=Object(O.gc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:f.a.fromHex("#fff").transparent(.8)},h.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),xe=Object(O.gc)("editorUnnecessaryCode.opacity",{dark:f.a.fromHex("#000a"),light:f.a.fromHex("#0007"),hc:null},h.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Y=new f.a(new f.c(0,122,204,.6)),Z=Object(O.gc)("editorOverviewRuler.rangeHighlightForeground",{dark:Y,light:Y,hc:Y},h.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),te=Object(O.gc)("editorOverviewRuler.errorForeground",{dark:new f.a(new f.c(255,18,18,.7)),light:new f.a(new f.c(255,18,18,.7)),hc:new f.a(new f.c(255,50,50,1))},h.a("overviewRuleError","Overview ruler marker color for errors.")),he=Object(O.gc)("editorOverviewRuler.warningForeground",{dark:O.T,light:O.T,hc:O.S},h.a("overviewRuleWarning","Overview ruler marker color for warnings.")),Ce=Object(O.gc)("editorOverviewRuler.infoForeground",{dark:O.L,light:O.L,hc:O.K},h.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(H.g)((Ae,L)=>{let nt=Ae.getColor(O.s);nt&&L.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${nt}; }`);let ct=Ae.getColor(O.B);ct&&L.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${ct}; }`);let Ye=Ae.getColor(se);Ye&&L.addRule(`.monaco-editor .margin { background-color: ${Ye}; }`);let ht=Ae.getColor(W);ht&&L.addRule(`.monaco-editor .rangeHighlight { background-color: ${ht}; }`);let fe=Ae.getColor(Q);fe&&L.addRule(`.monaco-editor .rangeHighlight { border: 1px ${Ae.type==="hc"?"dotted":"solid"} ${fe}; }`);let $=Ae.getColor(y);$&&L.addRule(`.monaco-editor .symbolHighlight { background-color: ${$}; }`);let G=Ae.getColor(C);G&&L.addRule(`.monaco-editor .symbolHighlight { border: 1px ${Ae.type==="hc"?"dotted":"solid"} ${G}; }`);let z=Ae.getColor(V);z&&(L.addRule(`.monaco-editor .mtkw { color: ${z} !important; }`),L.addRule(`.monaco-editor .mtkz { color: ${z} !important; }`))})},function(Ie,w,r){"use strict";var h,f;r.d(w,"d",function(){return h}),r.d(w,"c",function(){return f}),r.d(w,"e",function(){return O}),r.d(w,"b",function(){return H}),r.d(w,"f",function(){return E}),r.d(w,"a",function(){return ge}),function(W){W[W.Left=1]="Left",W[W.Center=2]="Center",W[W.Right=4]="Right",W[W.Full=7]="Full"}(h||(h={})),function(W){W[W.Inline=1]="Inline",W[W.Gutter=2]="Gutter"}(f||(f={}));class O{constructor(Q){this.tabSize=Math.max(1,0|Q.tabSize),this.indentSize=0|Q.tabSize,this.insertSpaces=Boolean(Q.insertSpaces),this.defaultEOL=0|Q.defaultEOL,this.trimAutoWhitespace=Boolean(Q.trimAutoWhitespace)}equals(Q){return this.tabSize===Q.tabSize&&this.indentSize===Q.indentSize&&this.insertSpaces===Q.insertSpaces&&this.defaultEOL===Q.defaultEOL&&this.trimAutoWhitespace===Q.trimAutoWhitespace}createChangeEvent(Q){return{tabSize:this.tabSize!==Q.tabSize,indentSize:this.indentSize!==Q.indentSize,insertSpaces:this.insertSpaces!==Q.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==Q.trimAutoWhitespace}}}class H{constructor(Q,y){this.range=Q,this.matches=y}}class E{constructor(Q,y,C,S,P,V){this.identifier=Q,this.range=y,this.text=C,this.forceMoveMarkers=S,this.isAutoWhitespaceEdit=P,this._isTracked=V}}class ge{constructor(Q,y,C){this.reverseEdits=Q,this.changes=y,this.trimAutoWhitespaceLineNumbers=C}}},function(Ie,w,r){"use strict";var h=r(108);r.d(w,"a",function(){return h.b}),r.d(w,"b",function(){return h.e}),r.d(w,"c",function(){return h.h}),r.d(w,"d",function(){return h.l}),r.d(w,"e",function(){return h.m}),r.d(w,"f",function(){return h.n})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E}),r.d(w,"c",function(){return ge}),r.d(w,"d",function(){return W});var h=r(2),f=r(6),O=function(Q,y,C,S){return new(C||(C=Promise))(function(P,V){function k(N){try{T(S.next(N))}catch(b){V(b)}}function l(N){try{T(S.throw(N))}catch(b){V(b)}}function T(N){var b;N.done?P(N.value):(b=N.value,b instanceof C?b:new C(function(g){g(b)})).then(k,l)}T((S=S.apply(Q,y||[])).next())})};class H extends h.a{constructor(y,C="",S="",P=!0,V){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=y,this._label=C,this._cssClass=S,this._enabled=P,this._actionCallback=V}get id(){return this._id}get label(){return this._label}set label(y){this._setLabel(y)}_setLabel(y){this._label!==y&&(this._label=y,this._onDidChange.fire({label:y}))}get tooltip(){return this._tooltip||""}set tooltip(y){this._setTooltip(y)}_setTooltip(y){this._tooltip!==y&&(this._tooltip=y,this._onDidChange.fire({tooltip:y}))}get class(){return this._cssClass}set class(y){this._setClass(y)}_setClass(y){this._cssClass!==y&&(this._cssClass=y,this._onDidChange.fire({class:y}))}get enabled(){return this._enabled}set enabled(y){this._setEnabled(y)}_setEnabled(y){this._enabled!==y&&(this._enabled=y,this._onDidChange.fire({enabled:y}))}get checked(){return this._checked}set checked(y){this._setChecked(y)}_setChecked(y){this._checked!==y&&(this._checked=y,this._onDidChange.fire({checked:y}))}run(y,C){return this._actionCallback?this._actionCallback(y):Promise.resolve(!0)}}class E extends h.a{constructor(){super(...arguments),this._onDidBeforeRun=this._register(new f.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this._onDidRun=this._register(new f.a),this.onDidRun=this._onDidRun.event}run(y,C){return O(this,void 0,void 0,function*(){if(!y.enabled)return Promise.resolve(null);this._onDidBeforeRun.fire({action:y});try{let S=yield this.runAction(y,C);this._onDidRun.fire({action:y,result:S})}catch(S){this._onDidRun.fire({action:y,error:S})}})}runAction(y,C){let S=C?y.run(C):y.run();return Promise.resolve(S)}}class ge extends H{constructor(y){super(ge.ID,y,y?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ge.ID="vs.actions.separator";class W extends H{constructor(y,C,S,P){super(y,C,P,!0),this._actions=S}get actions(){return Array.isArray(this._actions)?this._actions:this._actions()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"b",function(){return W});var h,f=r(16),O=r(2),H=r(1),E=r(98),ge=function(Q,y,C,S){var P,V=arguments.length,k=V<3?y:S===null?S=Object.getOwnPropertyDescriptor(y,C):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(Q,y,C,S);else for(var l=Q.length-1;l>=0;l--)(P=Q[l])&&(k=(V<3?P(k):V>3?P(y,C,k):P(y,C))||k);return V>3&&k&&Object.defineProperty(y,C,k),k};(function(Q){Q.Tap="-monaco-gesturetap",Q.Change="-monaco-gesturechange",Q.Start="-monaco-gesturestart",Q.End="-monaco-gesturesend",Q.Contextmenu="-monaco-gesturecontextmenu"})(h||(h={}));class W extends O.a{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(H.i(document,"touchstart",y=>this.onTouchStart(y),{passive:!1})),this._register(H.i(document,"touchend",y=>this.onTouchEnd(y))),this._register(H.i(document,"touchmove",y=>this.onTouchMove(y),{passive:!1}))}static addTarget(y){return W.isTouchDevice()?(W.INSTANCE||(W.INSTANCE=new W),W.INSTANCE.targets.push(y),{dispose:()=>{W.INSTANCE.targets=W.INSTANCE.targets.filter(C=>C!==y)}}):O.a.None}static ignoreTarget(y){return W.isTouchDevice()?(W.INSTANCE||(W.INSTANCE=new W),W.INSTANCE.ignoreTargets.push(y),{dispose:()=>{W.INSTANCE.ignoreTargets=W.INSTANCE.ignoreTargets.filter(C=>C!==y)}}):O.a.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(y){let C=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let S=0,P=y.targetTouches.length;S<P;S++){let V=y.targetTouches.item(S);this.activeTouches[V.identifier]={id:V.identifier,initialTarget:V.target,initialTimeStamp:C,initialPageX:V.pageX,initialPageY:V.pageY,rollingTimestamps:[C],rollingPageX:[V.pageX],rollingPageY:[V.pageY]};let k=this.newGestureEvent(h.Start,V.target);k.pageX=V.pageX,k.pageY=V.pageY,this.dispatchEvent(k)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}onTouchEnd(y){let C=Date.now(),S=Object.keys(this.activeTouches).length;for(let P=0,V=y.changedTouches.length;P<V;P++){let k=y.changedTouches.item(P);if(!this.activeTouches.hasOwnProperty(String(k.identifier))){console.warn("move of an UNKNOWN touch",k);continue}let l=this.activeTouches[k.identifier],T=Date.now()-l.initialTimeStamp;if(T<W.HOLD_DELAY&&Math.abs(l.initialPageX-f.t(l.rollingPageX))<30&&Math.abs(l.initialPageY-f.t(l.rollingPageY))<30){let N=this.newGestureEvent(h.Tap,l.initialTarget);N.pageX=f.t(l.rollingPageX),N.pageY=f.t(l.rollingPageY),this.dispatchEvent(N)}else if(T>=W.HOLD_DELAY&&Math.abs(l.initialPageX-f.t(l.rollingPageX))<30&&Math.abs(l.initialPageY-f.t(l.rollingPageY))<30){let N=this.newGestureEvent(h.Contextmenu,l.initialTarget);N.pageX=f.t(l.rollingPageX),N.pageY=f.t(l.rollingPageY),this.dispatchEvent(N)}else if(S===1){let N=f.t(l.rollingPageX),b=f.t(l.rollingPageY),g=f.t(l.rollingTimestamps)-l.rollingTimestamps[0],j=N-l.rollingPageX[0],ie=b-l.rollingPageY[0],U=this.targets.filter(q=>l.initialTarget instanceof Node&&q.contains(l.initialTarget));this.inertia(U,C,Math.abs(j)/g,j>0?1:-1,N,Math.abs(ie)/g,ie>0?1:-1,b)}this.dispatchEvent(this.newGestureEvent(h.End,l.initialTarget)),delete this.activeTouches[k.identifier]}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}newGestureEvent(y,C){let S=document.createEvent("CustomEvent");return S.initEvent(y,!1,!0),S.initialTarget=C,S.tapCount=0,S}dispatchEvent(y){if(y.type===h.Tap){let C=new Date().getTime(),S=0;S=C-this._lastSetTapCountTime>W.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=C,y.tapCount=S}else y.type!==h.Change&&y.type!==h.Contextmenu||(this._lastSetTapCountTime=0);for(let C=0;C<this.ignoreTargets.length;C++)if(y.initialTarget instanceof Node&&this.ignoreTargets[C].contains(y.initialTarget))return;this.targets.forEach(C=>{y.initialTarget instanceof Node&&C.contains(y.initialTarget)&&(C.dispatchEvent(y),this.dispatched=!0)})}inertia(y,C,S,P,V,k,l,T){this.handle=H.Y(()=>{let N=Date.now(),b=N-C,g=0,j=0,ie=!0;S+=W.SCROLL_FRICTION*b,k+=W.SCROLL_FRICTION*b,S>0&&(ie=!1,g=P*S*b),k>0&&(ie=!1,j=l*k*b);let U=this.newGestureEvent(h.Change);U.translationX=g,U.translationY=j,y.forEach(q=>q.dispatchEvent(U)),ie||this.inertia(y,N,S,P,V+g,k,l,T+j)})}onTouchMove(y){let C=Date.now();for(let S=0,P=y.changedTouches.length;S<P;S++){let V=y.changedTouches.item(S);if(!this.activeTouches.hasOwnProperty(String(V.identifier))){console.warn("end of an UNKNOWN touch",V);continue}let k=this.activeTouches[V.identifier],l=this.newGestureEvent(h.Change,k.initialTarget);l.translationX=V.pageX-f.t(k.rollingPageX),l.translationY=V.pageY-f.t(k.rollingPageY),l.pageX=V.pageX,l.pageY=V.pageY,this.dispatchEvent(l),k.rollingPageX.length>3&&(k.rollingPageX.shift(),k.rollingPageY.shift(),k.rollingTimestamps.shift()),k.rollingPageX.push(V.pageX),k.rollingPageY.push(V.pageY),k.rollingTimestamps.push(C)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)}}W.SCROLL_FRICTION=-.005,W.HOLD_DELAY=700,W.CLEAR_TAP_COUNT_TIME=400,ge([E.a],W,"isTouchDevice",null)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"c",function(){return O}),r.d(w,"e",function(){return H}),r.d(w,"d",function(){return E}),r.d(w,"b",function(){return ge});var h=r(21);class f{constructor(Q,y,C=!1){this._range=Q,this._text=y,this.insertsAutoWhitespace=C}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.endLineNumber,C.endColumn,C.endLineNumber,C.endColumn)}}class O{constructor(Q,y){this._range=Q,this._text=y}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)}}class H{constructor(Q,y,C=!1){this._range=Q,this._text=y,this.insertsAutoWhitespace=C}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.startLineNumber,C.startColumn,C.startLineNumber,C.startColumn)}}class E{constructor(Q,y,C,S,P=!1){this._range=Q,this._text=y,this._columnDeltaOffset=S,this._lineNumberDeltaOffset=C,this.insertsAutoWhitespace=P}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text)}computeCursorState(Q,y){let C=y.getInverseEditOperations()[0].range;return new h.a(C.endLineNumber+this._lineNumberDeltaOffset,C.endColumn+this._columnDeltaOffset,C.endLineNumber+this._lineNumberDeltaOffset,C.endColumn+this._columnDeltaOffset)}}class ge{constructor(Q,y,C,S=!1){this._range=Q,this._text=y,this._initialSelection=C,this._forceMoveMarkers=S,this._selectionId=null}getEditOperations(Q,y){y.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=y.trackSelection(this._initialSelection)}computeCursorState(Q,y){return y.getTrackedSelection(this._selectionId)}}},function(Ie,w,r){"use strict";r.d(w,"c",function(){return h}),r.d(w,"a",function(){return f}),r.d(w,"b",function(){return ge});var h,f,O=r(18),H=r(0),E=r(68);(function(W){W[W.Hint=1]="Hint",W[W.Info=2]="Info",W[W.Warning=4]="Warning",W[W.Error=8]="Error"})(h||(h={})),function(W){W.compare=function(y,C){return C-y};let Q=Object.create(null);Q[W.Error]=Object(H.a)("sev.error","Error"),Q[W.Warning]=Object(H.a)("sev.warning","Warning"),Q[W.Info]=Object(H.a)("sev.info","Info"),W.toString=function(y){return Q[y]||""},W.fromSeverity=function(y){switch(y){case E.a.Error:return W.Error;case E.a.Warning:return W.Warning;case E.a.Info:return W.Info;case E.a.Ignore:return W.Hint}},W.toSeverity=function(y){switch(y){case W.Error:return E.a.Error;case W.Warning:return E.a.Warning;case W.Info:return E.a.Info;case W.Hint:return E.a.Ignore}}}(h||(h={})),function(W){function Q(y,C){let S=[""];return y.source?S.push(y.source.replace("\xA6","\\\xA6")):S.push(""),y.code?typeof y.code=="string"?S.push(y.code.replace("\xA6","\\\xA6")):S.push(y.code.value.replace("\xA6","\\\xA6")):S.push(""),y.severity!==void 0&&y.severity!==null?S.push(h.toString(y.severity)):S.push(""),y.message&&C?S.push(y.message.replace("\xA6","\\\xA6")):S.push(""),y.startLineNumber!==void 0&&y.startLineNumber!==null?S.push(y.startLineNumber.toString()):S.push(""),y.startColumn!==void 0&&y.startColumn!==null?S.push(y.startColumn.toString()):S.push(""),y.endLineNumber!==void 0&&y.endLineNumber!==null?S.push(y.endLineNumber.toString()):S.push(""),y.endColumn!==void 0&&y.endColumn!==null?S.push(y.endColumn.toString()):S.push(""),S.push(""),S.join("\xA6")}W.makeKey=function(y){return Q(y,!0)},W.makeKeyOptionalMessage=Q}(f||(f={}));let ge=Object(O.c)("markerService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(18);let f=Object(h.c)("modelService");function O(H){return!H.isTooLargeForSyncing()&&!H.isForSimpleWidget}},function(Ie,w,r){"use strict";function h(T,N){N===void 0&&(N=!1);var b=T.length,g=0,j="",ie=0,U=16,q=0,B=0,se=0,ke=0,xe=0;function Y(he,Ce){for(var Ae=0,L=0;Ae<he||!Ce;){var nt=T.charCodeAt(g);if(nt>=48&&nt<=57)L=16*L+nt-48;else if(nt>=65&&nt<=70)L=16*L+nt-65+10;else{if(!(nt>=97&&nt<=102))break;L=16*L+nt-97+10}g++,Ae++}return Ae<he&&(L=-1),L}function Z(){if(j="",xe=0,ie=g,B=q,ke=se,g>=b)return ie=b,U=17;var he=T.charCodeAt(g);if(f(he)){do g++,j+=String.fromCharCode(he),he=T.charCodeAt(g);while(f(he));return U=15}if(O(he))return g++,j+=String.fromCharCode(he),he===13&&T.charCodeAt(g)===10&&(g++,j+=` +`),q++,se=g,U=14;switch(he){case 123:return g++,U=1;case 125:return g++,U=2;case 91:return g++,U=3;case 93:return g++,U=4;case 58:return g++,U=6;case 44:return g++,U=5;case 34:return g++,j=function(){for(var ct="",Ye=g;;){if(g>=b){ct+=T.substring(Ye,g),xe=2;break}var ht=T.charCodeAt(g);if(ht===34){ct+=T.substring(Ye,g),g++;break}if(ht!==92){if(ht>=0&&ht<=31){if(O(ht)){ct+=T.substring(Ye,g),xe=2;break}xe=6}g++}else{if(ct+=T.substring(Ye,g),++g>=b){xe=2;break}switch(T.charCodeAt(g++)){case 34:ct+='"';break;case 92:ct+="\\";break;case 47:ct+="/";break;case 98:ct+="\b";break;case 102:ct+="\f";break;case 110:ct+=` +`;break;case 114:ct+="\r";break;case 116:ct+=" ";break;case 117:var fe=Y(4,!0);fe>=0?ct+=String.fromCharCode(fe):xe=4;break;default:xe=5}Ye=g}}return ct}(),U=10;case 47:var Ce=g-1;if(T.charCodeAt(g+1)===47){for(g+=2;g<b&&!O(T.charCodeAt(g));)g++;return j=T.substring(Ce,g),U=12}if(T.charCodeAt(g+1)===42){g+=2;for(var Ae=b-1,L=!1;g<Ae;){var nt=T.charCodeAt(g);if(nt===42&&T.charCodeAt(g+1)===47){g+=2,L=!0;break}g++,O(nt)&&(nt===13&&T.charCodeAt(g)===10&&g++,q++,se=g)}return L||(g++,xe=1),j=T.substring(Ce,g),U=13}return j+=String.fromCharCode(he),g++,U=16;case 45:if(j+=String.fromCharCode(he),++g===b||!H(T.charCodeAt(g)))return U=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return j+=function(){var ct=g;if(T.charCodeAt(g)===48)g++;else for(g++;g<T.length&&H(T.charCodeAt(g));)g++;if(g<T.length&&T.charCodeAt(g)===46){if(!(++g<T.length&&H(T.charCodeAt(g))))return xe=3,T.substring(ct,g);for(g++;g<T.length&&H(T.charCodeAt(g));)g++}var Ye=g;if(g<T.length&&(T.charCodeAt(g)===69||T.charCodeAt(g)===101))if((++g<T.length&&T.charCodeAt(g)===43||T.charCodeAt(g)===45)&&g++,g<T.length&&H(T.charCodeAt(g))){for(g++;g<T.length&&H(T.charCodeAt(g));)g++;Ye=g}else xe=3;return T.substring(ct,Ye)}(),U=11;default:for(;g<b&&te(he);)g++,he=T.charCodeAt(g);if(ie!==g){switch(j=T.substring(ie,g)){case"true":return U=8;case"false":return U=9;case"null":return U=7}return U=16}return j+=String.fromCharCode(he),g++,U=16}}function te(he){if(f(he)||O(he))return!1;switch(he){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(he){g=he,j="",ie=0,U=16,xe=0},getPosition:function(){return g},scan:N?function(){var he;do he=Z();while(he>=12&&he<=15);return he}:Z,getToken:function(){return U},getTokenValue:function(){return j},getTokenOffset:function(){return ie},getTokenLength:function(){return g-ie},getTokenStartLine:function(){return B},getTokenStartCharacter:function(){return ie-ke},getTokenError:function(){return xe}}}function f(T){return T===32||T===9||T===11||T===12||T===160||T===5760||T>=8192&&T<=8203||T===8239||T===8287||T===12288||T===65279}function O(T){return T===10||T===13||T===8232||T===8233}function H(T){return T>=48&&T<=57}function E(T,N,b){var g,j,ie,U,q;if(N){for(U=N.offset,q=U+N.length,ie=U;ie>0&&!W(T,ie-1);)ie--;for(var B=q;B<T.length&&!W(T,B);)B++;j=T.substring(ie,B),g=function($,G){for(var z=0,J=0,Se=G.tabSize||4;z<$.length;){var A=$.charAt(z);if(A===" ")J++;else{if(A!==" ")break;J+=Se}z++}return Math.floor(J/Se)}(j,b)}else j=T,g=0,ie=0,U=0,q=T.length;var se,ke=function($,G){for(var z=0;z<G.length;z++){var J=G.charAt(z);if(J==="\r")return z+1<G.length&&G.charAt(z+1)===` `?`\r `:"\r";if(J===` `)return` `}return $&&$.eol||` `}(b,T),xe=!1,Y=0;se=b.insertSpaces?ge(" ",b.tabSize||4):" ";var Z=h(j,!1),te=!1;function he(){return ke+ge(se,g+Y)}function Ce(){var $=Z.scan();for(xe=!1;$===15||$===14;)xe=xe||$===14,$=Z.scan();return te=$===16||Z.getTokenError()!==0,$}var Ae=[];function L($,G,z){!te&&G<q&&z>U&&T.substring(G,z)!==$&&Ae.push({offset:G,length:z-G,content:$})}var nt=Ce();if(nt!==17){var ct=Z.getTokenOffset()+ie;L(ge(se,g),ie,ct)}for(;nt!==17;){for(var Ye=Z.getTokenOffset()+Z.getTokenLength()+ie,ht=Ce(),fe="";!xe&&(ht===12||ht===13);)L(" ",Ye,Z.getTokenOffset()+ie),Ye=Z.getTokenOffset()+Z.getTokenLength()+ie,fe=ht===12?he():"",ht=Ce();if(ht===2)nt!==1&&(Y--,fe=he());else if(ht===4)nt!==3&&(Y--,fe=he());else{switch(nt){case 3:case 1:Y++,fe=he();break;case 5:case 12:fe=he();break;case 13:fe=xe?he():" ";break;case 6:fe=" ";break;case 10:if(ht===6){fe="";break}case 7:case 8:case 9:case 11:case 2:case 4:ht===12||ht===13?fe=" ":ht!==5&&ht!==17&&(te=!0);break;case 16:te=!0}!xe||ht!==12&&ht!==13||(fe=he())}L(fe,Ye,Z.getTokenOffset()+ie),nt=ht}return Ae}function ge(T,N){for(var b="",g=0;g<N;g++)b+=T;return b}function W(T,N){return`\r -`.indexOf(T.charAt(N))!==-1}var Q;function y(T,N,b){b===void 0&&(b=Q.DEFAULT);var g=h(T,!1);function j(Ye){return Ye?function(){return Ye(g.getTokenOffset(),g.getTokenLength(),g.getTokenStartLine(),g.getTokenStartCharacter())}:function(){return!0}}function ie(Ye){return Ye?function(ht){return Ye(ht,g.getTokenOffset(),g.getTokenLength(),g.getTokenStartLine(),g.getTokenStartCharacter())}:function(){return!0}}var U=j(N.onObjectBegin),q=ie(N.onObjectProperty),B=j(N.onObjectEnd),se=j(N.onArrayBegin),ke=j(N.onArrayEnd),xe=ie(N.onLiteralValue),Y=ie(N.onSeparator),Z=j(N.onComment),te=ie(N.onError),he=b&&b.disallowComments,Ce=b&&b.allowTrailingComma;function Ae(){for(;;){var Ye=g.scan();switch(g.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:he||L(11);break;case 2:L(12);break;case 6:L(16)}switch(Ye){case 12:case 13:he?L(10):Z();break;case 16:L(1);break;case 15:case 14:break;default:return Ye}}}function L(Ye,ht,fe){if(ht===void 0&&(ht=[]),fe===void 0&&(fe=[]),te(Ye),ht.length+fe.length>0)for(var $=g.getToken();$!==17;){if(ht.indexOf($)!==-1){Ae();break}if(fe.indexOf($)!==-1)break;$=Ae()}}function nt(Ye){var ht=g.getTokenValue();return Ye?xe(ht):q(ht),Ae(),!0}function ct(){switch(g.getToken()){case 3:return function(){se(),Ae();for(var Ye=!1;g.getToken()!==4&&g.getToken()!==17;){if(g.getToken()===5){if(Ye||L(4,[],[]),Y(","),Ae(),g.getToken()===4&&Ce)break}else Ye&&L(6,[],[]);ct()||L(4,[],[4,5]),Ye=!0}return ke(),g.getToken()!==4?L(8,[4],[]):Ae(),!0}();case 1:return function(){U(),Ae();for(var Ye=!1;g.getToken()!==2&&g.getToken()!==17;){if(g.getToken()===5){if(Ye||L(4,[],[]),Y(","),Ae(),g.getToken()===2&&Ce)break}else Ye&&L(6,[],[]);(g.getToken()!==10?(L(3,[],[2,5]),0):(nt(!1),g.getToken()===6?(Y(":"),Ae(),ct()||L(4,[],[2,5])):L(5,[],[2,5]),1))||L(4,[],[2,5]),Ye=!0}return B(),g.getToken()!==2?L(7,[2],[]):Ae(),!0}();case 10:return nt(!0);default:return function(){switch(g.getToken()){case 11:var Ye=0;try{typeof(Ye=JSON.parse(g.getTokenValue()))!="number"&&(L(2),Ye=0)}catch(ht){L(2)}xe(Ye);break;case 7:xe(null);break;case 8:xe(!0);break;case 9:xe(!1);break;default:return!1}return Ae(),!0}()}}return Ae(),g.getToken()===17?!!b.allowEmptyContent||(L(4,[],[]),!1):ct()?(g.getToken()!==17&&L(9,[],[]),!0):(L(4,[],[]),!1)}o.d(w,"a",function(){return C}),o.d(w,"f",function(){return S}),o.d(w,"b",function(){return P}),o.d(w,"d",function(){return V}),o.d(w,"e",function(){return k}),o.d(w,"c",function(){return l}),function(T){T.DEFAULT={allowTrailingComma:!1}}(Q||(Q={}));var C=h,S=function(T,N,b){N===void 0&&(N=[]),b===void 0&&(b=Q.DEFAULT);var g=null,j=[],ie=[];function U(q){Array.isArray(j)?j.push(q):g!==null&&(j[g]=q)}return y(T,{onObjectBegin:function(){var q={};U(q),ie.push(j),j=q,g=null},onObjectProperty:function(q){g=q},onObjectEnd:function(){j=ie.pop()},onArrayBegin:function(){var q=[];U(q),ie.push(j),j=q,g=null},onArrayEnd:function(){j=ie.pop()},onLiteralValue:U,onError:function(q,B,se){N.push({error:q,offset:B,length:se})}},b),j[0]},P=function T(N,b,g){if(g===void 0&&(g=!1),function(q,B,se){return se===void 0&&(se=!1),B>=q.offset&&B<q.offset+q.length||se&&B===q.offset+q.length}(N,b,g)){var j=N.children;if(Array.isArray(j))for(var ie=0;ie<j.length&&j[ie].offset<=b;ie++){var U=T(j[ie],b,g);if(U)return U}return N}},V=function T(N){if(!N.parent||!N.parent.children)return[];var b=T(N.parent);if(N.parent.type==="property"){var g=N.parent.children[0].value;b.push(g)}else if(N.parent.type==="array"){var j=N.parent.children.indexOf(N);j!==-1&&b.push(j)}return b},k=function T(N){switch(N.type){case"array":return N.children.map(T);case"object":for(var b=Object.create(null),g=0,j=N.children;g<j.length;g++){var ie=j[g],U=ie.children[1];U&&(b[ie.children[0].value]=T(U))}return b;case"null":case"string":case"number":case"boolean":return N.value;default:return}};function l(T,N,b){return E(T,N,b)}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return Q}),o.d(w,"a",function(){return y}),o.d(w,"c",function(){return C}),o(206);var h=o(11),f=o(1);let D,H,E,ge,W;function Q(P){D=document.createElement("div"),D.className="monaco-aria-container";let V=()=>{let l=document.createElement("div");return l.className="monaco-alert",l.setAttribute("role","alert"),l.setAttribute("aria-atomic","true"),D.appendChild(l),l};H=V(),E=V();let k=()=>{let l=document.createElement("div");return l.className="monaco-status",l.setAttribute("role","complementary"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),D.appendChild(l),l};ge=k(),W=k(),P.appendChild(D)}function y(P){D&&(H.textContent!==P?(f.s(E),S(H,P)):(f.s(H),S(E,P)))}function C(P){D&&(h.f?y(P):ge.textContent!==P?(f.s(W),S(ge,P)):(f.s(ge),S(W,P)))}function S(P,V){f.s(P),V.length>2e4&&(V=V.substr(0,2e4)),P.textContent=V,P.style.visibility="hidden",P.style.visibility="visible"}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Q});var h=o(34),f=o(43),D=o(11);let H=new Array(230),E=new Array(112);(function(){for(let C=0;C<E.length;C++)E[C]=-1;function y(C,S){H[C]=S,E[S]=C}y(3,7),y(8,1),y(9,2),y(13,3),y(16,4),y(17,5),y(18,6),y(19,7),y(20,8),y(27,9),y(32,10),y(33,11),y(34,12),y(35,13),y(36,14),y(37,15),y(38,16),y(39,17),y(40,18),y(45,19),y(46,20),y(48,21),y(49,22),y(50,23),y(51,24),y(52,25),y(53,26),y(54,27),y(55,28),y(56,29),y(57,30),y(65,31),y(66,32),y(67,33),y(68,34),y(69,35),y(70,36),y(71,37),y(72,38),y(73,39),y(74,40),y(75,41),y(76,42),y(77,43),y(78,44),y(79,45),y(80,46),y(81,47),y(82,48),y(83,49),y(84,50),y(85,51),y(86,52),y(87,53),y(88,54),y(89,55),y(90,56),y(93,58),y(96,93),y(97,94),y(98,95),y(99,96),y(100,97),y(101,98),y(102,99),y(103,100),y(104,101),y(105,102),y(106,103),y(107,104),y(108,105),y(109,106),y(110,107),y(111,108),y(112,59),y(113,60),y(114,61),y(115,62),y(116,63),y(117,64),y(118,65),y(119,66),y(120,67),y(121,68),y(122,69),y(123,70),y(124,71),y(125,72),y(126,73),y(127,74),y(128,75),y(129,76),y(130,77),y(144,78),y(145,79),y(186,80),y(187,81),y(188,82),y(189,83),y(190,84),y(191,85),y(192,86),y(193,110),y(194,111),y(219,87),y(220,88),y(221,89),y(222,90),y(223,91),y(226,92),y(229,109),h.h?(y(59,80),y(107,81),y(109,83),D.f&&y(224,57)):h.l&&(y(91,57),D.f?y(93,57):y(92,57))})();let ge=D.f?256:2048,W=D.f?2048:256;class Q{constructor(C){this._standardKeyboardEventBrand=!0;let S=C;this.browserEvent=S,this.target=S.target,this.ctrlKey=S.ctrlKey,this.shiftKey=S.shiftKey,this.altKey=S.altKey,this.metaKey=S.metaKey,this.keyCode=function(P){if(P.charCode){let V=String.fromCharCode(P.charCode).toUpperCase();return f.b.fromString(V)}return H[P.keyCode]||0}(S),this.code=S.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(C){return this._asKeybinding===C}_computeKeybinding(){let C=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(C=this.keyCode);let S=0;return this.ctrlKey&&(S|=ge),this.altKey&&(S|=512),this.shiftKey&&(S|=1024),this.metaKey&&(S|=W),S|=C,S}_computeRuntimeKeybinding(){let C=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(C=this.keyCode),new f.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,C)}}},function(Ie,w,o){"use strict";var h,f=o(8);(function(D){D[D.Ignore=0]="Ignore",D[D.Info=1]="Info",D[D.Warning=2]="Warning",D[D.Error=3]="Error"})(h||(h={})),function(D){D.fromValue=function(H){return H?f.t("error",H)?D.Error:f.t("warning",H)||f.t("warn",H)?D.Warning:f.t("info",H)?D.Info:D.Ignore:D.Ignore}}(h||(h={})),w.a=h},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E});var h=o(34),f=o(177),D=o(11);class H{constructor(W){this.timestamp=Date.now(),this.browserEvent=W,this.leftButton=W.button===0,this.middleButton=W.button===1,this.rightButton=W.button===2,this.buttons=W.buttons,this.target=W.target,this.detail=W.detail||1,W.type==="dblclick"&&(this.detail=2),this.ctrlKey=W.ctrlKey,this.shiftKey=W.shiftKey,this.altKey=W.altKey,this.metaKey=W.metaKey,typeof W.pageX=="number"?(this.posx=W.pageX,this.posy=W.pageY):(this.posx=W.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=W.clientY+document.body.scrollTop+document.documentElement.scrollTop);let Q=f.a.getPositionOfChildWindowRelativeToAncestorWindow(self,W.view);this.posx-=Q.left,this.posy-=Q.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class E{constructor(W,Q=0,y=0){if(this.browserEvent=W||null,this.target=W?W.target||W.targetNode||W.srcElement:null,this.deltaY=y,this.deltaX=Q,W){let C=W,S=W;if(C.wheelDeltaY!==void 0)this.deltaY=C.wheelDeltaY/120;else if(S.VERTICAL_AXIS!==void 0&&S.axis===S.VERTICAL_AXIS)this.deltaY=-S.detail/3;else if(W.type==="wheel"){let P=W;P.deltaMode===P.DOM_DELTA_LINE?h.h&&!D.f?this.deltaY=-W.deltaY/3:this.deltaY=-W.deltaY:this.deltaY=-W.deltaY/40}if(C.wheelDeltaX!==void 0)h.j&&D.i?this.deltaX=-C.wheelDeltaX/120:this.deltaX=C.wheelDeltaX/120;else if(S.HORIZONTAL_AXIS!==void 0&&S.axis===S.HORIZONTAL_AXIS)this.deltaX=-W.detail/3;else if(W.type==="wheel"){let P=W;P.deltaMode===P.DOM_DELTA_LINE?h.h&&!D.f?this.deltaX=-W.deltaX/3:this.deltaX=-W.deltaX:this.deltaX=-W.deltaX/40}this.deltaY===0&&this.deltaX===0&&W.wheelDelta&&(this.deltaY=W.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(3);class f{static insert(H,E){return{range:new h.a(H.lineNumber,H.column,H.lineNumber,H.column),text:E,forceMoveMarkers:!0}}static delete(H){return{range:H,text:null}}static replace(H,E){return{range:H,text:E}}static replaceMove(H,E){return{range:H,text:E,forceMoveMarkers:!0}}}},function(Ie,w,o){"use strict";o.d(w,"j",function(){return D}),o.d(w,"h",function(){return H}),o.d(w,"f",function(){return E}),o.d(w,"i",function(){return N}),o.d(w,"g",function(){return q}),o.d(w,"b",function(){return B}),o.d(w,"c",function(){return se}),o.d(w,"a",function(){return Ae}),o.d(w,"d",function(){return L}),o.d(w,"e",function(){return G});var h=o(78),f=o(8);function D(...J){return function(Se,A){for(let ee=0,de=J.length;ee<de;ee++){let Oe=J[ee](Se,A);if(Oe)return Oe}return null}}let H=function(J,Se,A){if(!A||A.length<Se.length)return null;let ee;return ee=J?f.T(A,Se):A.indexOf(Se)===0,ee?Se.length>0?[{start:0,end:Se.length}]:[]:null}.bind(void 0,!0);function E(J,Se){let A=Se.toLowerCase().indexOf(J.toLowerCase());return A===-1?null:[{start:A,end:A+J.length}]}function ge(J){return 97<=J&&J<=122}function W(J){return 65<=J&&J<=90}function Q(J){return 48<=J&&J<=57}function y(J){return J===32||J===9||J===10||J===13}let C=new Set;function S(J){return y(J)||C.has(J)}function P(J){return ge(J)||W(J)||Q(J)}function V(J,Se){return Se.length===0?Se=[J]:J.end===Se[0].start?Se[0].start=J.start:Se.unshift(J),Se}function k(J,Se){for(let A=Se;A<J.length;A++){let ee=J.charCodeAt(A);if(W(ee)||Q(ee)||A>0&&!P(J.charCodeAt(A-1)))return A}return J.length}function l(J,Se,A,ee){if(A===J.length)return[];if(ee===Se.length||J[A]!==Se[ee].toLowerCase())return null;{let de=null,Oe=ee+1;for(de=l(J,Se,A+1,ee+1);!de&&(Oe=k(Se,Oe))<Se.length;)de=l(J,Se,A+1,Oe),Oe++;return de===null?null:V({start:ee,end:ee+1},de)}}function T(J,Se){if(!Se||(Se=Se.trim()).length===0||!function(Oe){let $e=0,pt=0,it=0,At=0;for(let Nt=0;Nt<Oe.length;Nt++)it=Oe.charCodeAt(Nt),W(it)&&$e++,ge(it)&&pt++,y(it)&&At++;return $e!==0&&pt!==0||At!==0?$e<=5:Oe.length<=30}(J)||Se.length>60)return null;let A=function(Oe){let $e=0,pt=0,it=0,At=0,Nt=0;for(let _i=0;_i<Oe.length;_i++)Nt=Oe.charCodeAt(_i),W(Nt)&&$e++,ge(Nt)&&pt++,P(Nt)&&it++,Q(Nt)&&At++;return{upperPercent:$e/Oe.length,lowerPercent:pt/Oe.length,alphaPercent:it/Oe.length,numericPercent:At/Oe.length}}(Se);if(!function(Oe){let{upperPercent:$e,lowerPercent:pt,alphaPercent:it,numericPercent:At}=Oe;return pt>.2&&$e<.8&&it>.6&&At<.2}(A)){if(!function(Oe){let{upperPercent:$e,lowerPercent:pt}=Oe;return pt===0&&$e>.6}(A))return null;Se=Se.toLowerCase()}let ee=null,de=0;for(J=J.toLowerCase();de<Se.length&&(ee=l(J,Se,0,de))===null;)de=k(Se,de+1);return ee}function N(J,Se,A=!1){if(!Se||Se.length===0)return null;let ee=null,de=0;for(J=J.toLowerCase(),Se=Se.toLowerCase();de<Se.length&&(ee=b(J,Se,0,de,A))===null;)de=g(Se,de+1);return ee}function b(J,Se,A,ee,de){if(A===J.length)return[];if(ee===Se.length)return null;if(Oe=J.charCodeAt(A),$e=Se.charCodeAt(ee),Oe===$e||S(Oe)&&S($e)){let pt=null,it=ee+1;if(pt=b(J,Se,A+1,ee+1,de),!de)for(;!pt&&(it=g(Se,it))<Se.length;)pt=b(J,Se,A+1,it,de),it++;return pt===null?null:V({start:ee,end:ee+1},pt)}return null;var Oe,$e}function g(J,Se){for(let A=Se;A<J.length;A++)if(S(J.charCodeAt(A))||A>0&&S(J.charCodeAt(A-1)))return A;return J.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(J=>C.add(J.charCodeAt(0)));let j=D(H,T,E),ie=D(H,T,function(J,Se){return function A(ee,de,Oe,$e){if(Oe===ee.length)return[];if($e===de.length)return null;if(ee[Oe]===de[$e]){let pt=null;return(pt=A(ee,de,Oe+1,$e+1))?V({start:$e,end:$e+1},pt):null}return A(ee,de,Oe,$e+1)}(J.toLowerCase(),Se.toLowerCase(),0,0)}),U=new h.a(1e4);function q(J,Se,A=!1){if(typeof J!="string"||typeof Se!="string")return null;let ee=U.get(J);ee||(ee=new RegExp(f.p(J),"i"),U.set(J,ee));let de=ee.exec(Se);return de?[{start:de.index,end:de.index+de[0].length}]:A?ie(J,Se):j(J,Se)}function B(J,Se,A,ee,de,Oe){let $e=L(J,Se,0,ee,de,0,!0);if($e)return $e;let pt=0,it=0,At=Oe;for(let Nt=0;Nt<Se.length&&Nt<ke;++Nt){let _i=de.indexOf(Se.charAt(Nt),At);if(_i>=0)it+=1,pt+=Math.pow(2,_i),At=_i+1;else if(pt!==0)break}return[it,pt,Oe]}function se(J){if(J===void 0)return[];let Se=J[1].toString(2),A=[];for(let ee=J[2];ee<ke;ee++)if(Se[Se.length-(ee+1)]==="1"){let de=A[A.length-1];de&&de.end===ee?de.end=ee+1:A.push({start:ee,end:ee+1})}return A}let ke=128;function xe(){let J=[],Se=[0];for(let A=1;A<=ke;A++)Se.push(-A);for(let A=0;A<=ke;A++){let ee=Se.slice(0);ee[0]=-A,J.push(ee)}return J}let Y=xe(),Z=xe(),te=xe();function he(J,Se){if(Se<0||Se>=J.length)return!1;switch(J.charCodeAt(Se)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function Ce(J,Se,A){return Se[J]!==A[J]}var Ae;function L(J,Se,A,ee,de,Oe,$e){let pt=J.length>ke?ke:J.length,it=ee.length>ke?ke:ee.length;if(A>=pt||Oe>=it||pt-A>it-Oe||!function(pi,et,Wt,Li,Ii,Ai){for(;et<Wt&&Ii<Ai;)pi[et]===Li[Ii]&&(et+=1),Ii+=1;return et===Wt}(Se,A,pt,de,Oe,it))return;let At=1,Nt=1,_i=A,wt=Oe,Ni=!1;for(At=1,_i=A;_i<pt;At++,_i++)for(Nt=1,wt=Oe;wt<it;Nt++,wt++){let pi=nt(J,Se,_i,A,ee,de,wt);_i===A&&pi>1&&(Ni=!0),Z[At][Nt]=pi;let et=Y[At-1][Nt-1]+(pi>1?1:pi),Wt=Y[At-1][Nt]+-1,Li=Y[At][Nt-1]+-1;Li>=Wt?Li>et?(Y[At][Nt]=Li,te[At][Nt]=4):Li===et?(Y[At][Nt]=Li,te[At][Nt]=6):(Y[At][Nt]=et,te[At][Nt]=2):Wt>et?(Y[At][Nt]=Wt,te[At][Nt]=1):Wt===et?(Y[At][Nt]=Wt,te[At][Nt]=3):(Y[At][Nt]=et,te[At][Nt]=2)}return(Ni||$e)&&(ct=0,ht=-100,fe=Oe,$=$e,function pi(et,Wt,Li,Ii,Ai){if(ct>=10||Li<-25)return;let Zi=0;for(;et>0&&Wt>0;){let Bi=Z[et][Wt],Lt=te[et][Wt];if(Lt===4)Wt-=1,Ai?Li-=5:Ii!==0&&(Li-=1),Ai=!1,Zi=0;else{if(!(2&Lt))return;if(4&Lt&&pi(et,Wt-1,Ii!==0?Li-1:Li,Ii,Ai),Li+=Bi,et-=1,Wt-=1,Ai=!0,Ii+=Math.pow(2,Wt+fe),Bi===1){if(Zi+=1,et===0&&!$)return}else Li+=1+Zi*(Bi-1),Zi=0}}ct+=1,(Li-=Wt>=3?9:3*Wt)>ht&&(ht=Li,Ye=Ii)}(At-1,Nt-1,pt===it?1:0,0,!1),ct!==0)?[ht,Ye,Oe]:void 0}function nt(J,Se,A,ee,de,Oe,$e){return Se[A]!==Oe[$e]?-1:$e===A-ee?J[A]===de[$e]?7:5:!Ce($e,de,Oe)||$e!==0&&Ce($e-1,de,Oe)?!he(Oe,$e)||$e!==0&&he(Oe,$e-1)?he(Oe,$e-1)||function(pt,it){if(it<0||it>=pt.length)return!1;switch(pt.charCodeAt(it)){case 32:case 9:return!0;default:return!1}}(Oe,$e-1)?5:1:5:J[A]===de[$e]?7:5}(function(J){J.Default=Object.freeze([-100,0,0]),J.isDefault=function(Se){return!Se||Se[0]===-100&&Se[1]===0&&Se[2]===0}})(Ae||(Ae={}));let ct=0,Ye=0,ht=0,fe=0,$=!1;function G(J,Se,A,ee,de,Oe,$e){return function(pt,it,At,Nt,_i,wt,Ni,pi){let et=L(pt,it,At,Nt,_i,wt,pi);if(et&&!Ni)return et;if(pt.length>=3){let Wt=Math.min(7,pt.length-1);for(let Li=At+1;Li<Wt;Li++){let Ii=z(pt,Li);if(Ii){let Ai=L(Ii,Ii.toLowerCase(),At,Nt,_i,wt,pi);Ai&&(Ai[0]-=3,(!et||Ai[0]>et[0])&&(et=Ai))}}}return et}(J,Se,A,ee,de,Oe,!0,$e)}function z(J,Se){if(Se+1>=J.length)return;let A=J[Se],ee=J[Se+1];return A!==ee?J.slice(0,Se)+ee+A+J.slice(Se+2):void 0}},function(Ie,w,o){"use strict";(function(h){o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return W}),o.d(w,"e",function(){return Q}),o.d(w,"c",function(){return y}),o.d(w,"f",function(){return C}),o.d(w,"d",function(){return S}),o.d(w,"g",function(){return P});var f=o(8);let D=h!==void 0,H=typeof TextDecoder!="undefined",E;class ge{constructor(k){this.buffer=k,this.byteLength=this.buffer.byteLength}toString(){return D?this.buffer.toString():H?(E||(E=new TextDecoder),E.decode(this.buffer)):f.r(this.buffer)}}function W(V,k){return V[k+0]<<0>>>0|V[k+1]<<8>>>0}function Q(V,k,l){V[l+0]=255&k,k>>>=8,V[l+1]=255&k}function y(V,k){return V[k]*Math.pow(2,24)+V[k+1]*Math.pow(2,16)+V[k+2]*Math.pow(2,8)+V[k+3]}function C(V,k,l){V[l+3]=k,k>>>=8,V[l+2]=k,k>>>=8,V[l+1]=k,k>>>=8,V[l]=k}function S(V,k){return V[k]}function P(V,k,l){V[l]=k}}).call(this,o(202).Buffer)},function(Ie,w,o){"use strict";o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f}),o.d(w,"c",function(){return D}),o.d(w,"d",function(){return E});let h="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",f=function(W=""){let Q="(-?\\d*\\.\\d\\w*)|([^";for(let y of h)W.indexOf(y)>=0||(Q+="\\"+y);return Q+="\\s]+)",new RegExp(Q,"g")}();function D(W){let Q=f;if(W&&W instanceof RegExp)if(W.global)Q=W;else{let y="g";W.ignoreCase&&(y+="i"),W.multiline&&(y+="m"),W.unicode&&(y+="u"),Q=new RegExp(W.source,y)}return Q.lastIndex=0,Q}let H={maxLen:1e3,windowSize:15,timeBudget:150};function E(W,Q,y,C,S=H){if(y.length>S.maxLen){let l=W-S.maxLen/2;return l<0?(C+=W,l=0):C+=l,E(W,Q,y=y.substring(l,W+S.maxLen/2),C,S)}Date.now();let P=W-1-C,V=-1,k=null;for(let l=1;;l++){Date.now(),S.timeBudget;let T=P-S.windowSize*l;Q.lastIndex=Math.max(0,T);let N=ge(Q,y,P,V);if(!N&&k||(k=N,T<=0))break;V=T}if(k){let l={word:k[0],startColumn:C+1+k.index,endColumn:C+1+k.index+k[0].length};return Q.lastIndex=0,l}return null}function ge(W,Q,y,C){let S;for(;S=W.exec(Q);){let P=S.index||0;if(P<=y&&W.lastIndex>=y)return S;if(C>0&&P>C)return null}return null}},function(Ie,w,o){"use strict";o.d(w,"f",function(){return f}),o.d(w,"b",function(){return D}),o.d(w,"c",function(){return H}),o.d(w,"d",function(){return E}),o.d(w,"a",function(){return ge}),o.d(w,"e",function(){return W});var h=o(8);class f{constructor(y,C,S,P){this.top=0|y,this.left=0|C,this.width=0|S,this.height=0|P}}class D{constructor(y,C){this.tabSize=y,this.data=C}}class H{constructor(y,C,S,P,V,k){this.content=y,this.continuesWithWrappedLine=C,this.minColumn=S,this.maxColumn=P,this.startVisibleColumn=V,this.tokens=k}}class E{constructor(y,C,S,P,V,k,l,T,N,b){this.minColumn=y,this.maxColumn=C,this.content=S,this.continuesWithWrappedLine=P,this.isBasicASCII=E.isBasicASCII(S,k),this.containsRTL=E.containsRTL(S,this.isBasicASCII,V),this.tokens=l,this.inlineDecorations=T,this.tabSize=N,this.startVisibleColumn=b}static isBasicASCII(y,C){return!C||h.B(y)}static containsRTL(y,C,S){return!(C||!S)&&h.m(y)}}class ge{constructor(y,C,S){this.range=y,this.inlineClassName=C,this.type=S}}class W{constructor(y,C){this.range=y,this.options=C}}},function(Ie,w,o){"use strict";var h;o.d(w,"a",function(){return h}),o.d(w,"b",function(){return f}),function(D){D[D.None=0]="None",D[D.Indent=1]="Indent",D[D.IndentOutdent=2]="IndentOutdent",D[D.Outdent=3]="Outdent"}(h||(h={}));class f{constructor(H){if(this.open=H.open,this.close=H.close,this._standardTokenMask=0,Array.isArray(H.notIn))for(let E=0,ge=H.notIn.length;E<ge;E++)switch(H.notIn[E]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}isOK(H){return(this._standardTokenMask&H)==0}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(36);class f{constructor(E){let ge=Object(h.b)(E);this._defaultValue=ge,this._asciiMap=f._createAsciiMap(ge),this._map=new Map}static _createAsciiMap(E){let ge=new Uint8Array(256);for(let W=0;W<256;W++)ge[W]=E;return ge}set(E,ge){let W=Object(h.b)(ge);E>=0&&E<256?this._asciiMap[E]=W:this._map.set(E,W)}get(E){return E>=0&&E<256?this._asciiMap[E]:this._map.get(E)||this._defaultValue}}class D{constructor(){this._actual=new f(0)}add(E){this._actual.set(E,1)}has(E){return this._actual.get(E)===1}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"b",function(){return f}),o.d(w,"c",function(){return D});class h{constructor(E,ge,W){this.offset=0|E,this.type=ge,this.language=W}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(E,ge){this.tokens=E,this.endState=ge}}class D{constructor(E,ge){this.tokens=E,this.endState=ge}}},function(Ie,w,o){"use strict";o.d(w,"c",function(){return y}),o.d(w,"b",function(){return C}),o.d(w,"a",function(){return P});var h=o(23),f=o(8),D=o(45),H=o(11);class E{constructor(){this._value="",this._pos=0}reset(k){return this._value=k,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(k){return k.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class ge{constructor(k=!0,l=!0){this._splitOnBackslash=k,this._caseSensitive=l}reset(k){return this._value=k.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let k=!0;for(;this._to<this._value.length;this._to++){let l=this._value.charCodeAt(this._to);if(l===47||this._splitOnBackslash&&l===92){if(!k)break;this._from++}else k=!1}return this}cmp(k){return this._caseSensitive?Object(f.h)(k,this._value,0,k.length,this._from,this._to):Object(f.i)(k,this._value,0,k.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class W{constructor(){this._states=[],this._stateIdx=0}reset(k){if(this._value=k,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path){let l=k.scheme===D.b.file&&H.d;this._pathIterator=new ge(!1,l),this._pathIterator.reset(k.path),this._pathIterator.value()&&this._states.push(3)}return this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(k){if(this._states[this._stateIdx]===1)return Object(f.f)(k,this._value.scheme);if(this._states[this._stateIdx]===2)return Object(f.i)(k,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(k);if(this._states[this._stateIdx]===4)return Object(f.f)(k,this._value.query);if(this._states[this._stateIdx]===5)return Object(f.f)(k,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class Q{}class y{constructor(k){this._iter=k}static forUris(){return new y(new W)}static forStrings(){return new y(new E)}clear(){this._root=void 0}set(k,l){let T=this._iter.reset(k),N;for(this._root||(this._root=new Q,this._root.segment=T.value()),N=this._root;;){let g=T.cmp(N.segment);if(g>0)N.left||(N.left=new Q,N.left.segment=T.value()),N=N.left;else if(g<0)N.right||(N.right=new Q,N.right.segment=T.value()),N=N.right;else{if(!T.hasNext())break;T.next(),N.mid||(N.mid=new Q,N.mid.segment=T.value()),N=N.mid}}let b=N.value;return N.value=l,N.key=k,b}get(k){let l=this._iter.reset(k),T=this._root;for(;T;){let N=l.cmp(T.segment);if(N>0)T=T.left;else if(N<0)T=T.right;else{if(!l.hasNext())break;l.next(),T=T.mid}}return T?T.value:void 0}findSubstr(k){let l=this._iter.reset(k),T=this._root,N;for(;T;){let b=l.cmp(T.segment);if(b>0)T=T.left;else if(b<0)T=T.right;else{if(!l.hasNext())break;l.next(),N=T.value||N,T=T.mid}}return T&&T.value||N}forEach(k){this._forEach(this._root,k)}_forEach(k,l){k&&(this._forEach(k.left,l),k.value&&l(k.value,k.key),this._forEach(k.mid,l),this._forEach(k.right,l))}}class C{constructor(k,l){this[Symbol.toStringTag]="ResourceMap",k instanceof C?(this.map=new Map(k.map),this.toKey=l??C.defaultToKey):(this.map=new Map,this.toKey=k??C.defaultToKey)}set(k,l){return this.map.set(this.toKey(k),l),this}get(k){return this.map.get(this.toKey(k))}has(k){return this.map.has(this.toKey(k))}get size(){return this.map.size}clear(){this.map.clear()}delete(k){return this.map.delete(this.toKey(k))}forEach(k,l){l!==void 0&&(k=k.bind(l));for(let[T,N]of this.map)k(N,h.a.parse(T),this)}values(){return this.map.values()}*keys(){for(let k of this.map.keys())yield h.a.parse(k)}*entries(){for(let k of this.map.entries())yield[h.a.parse(k[0]),k[1]]}*[Symbol.iterator](){for(let k of this.map)yield[h.a.parse(k[0]),k[1]]}}C.defaultToKey=V=>V.toString();class S{constructor(){this[Symbol.toStringTag]="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(){var k;return(k=this._head)===null||k===void 0?void 0:k.value}get last(){var k;return(k=this._tail)===null||k===void 0?void 0:k.value}has(k){return this._map.has(k)}get(k,l=0){let T=this._map.get(k);if(T)return l!==0&&this.touch(T,l),T.value}set(k,l,T=0){let N=this._map.get(k);if(N)N.value=l,T!==0&&this.touch(N,T);else{switch(N={key:k,value:l,next:void 0,previous:void 0},T){case 0:this.addItemLast(N);break;case 1:this.addItemFirst(N);break;case 2:default:this.addItemLast(N)}this._map.set(k,N),this._size++}return this}delete(k){return!!this.remove(k)}remove(k){let l=this._map.get(k);if(l)return this._map.delete(k),this.removeItem(l),this._size--,l.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let k=this._head;return this._map.delete(k.key),this.removeItem(k),this._size--,k.value}forEach(k,l){let T=this._state,N=this._head;for(;N;){if(l?k.bind(l)(N.value,N.key,this):k(N.value,N.key,this),this._state!==T)throw new Error("LinkedMap got modified during iteration.");N=N.next}}keys(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:T.key,done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}values(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:T.value,done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}entries(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:[T.key,T.value],done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}[Symbol.iterator](){return this.entries()}trimOld(k){if(k>=this.size)return;if(k===0)return void this.clear();let l=this._head,T=this.size;for(;l&&T>k;)this._map.delete(l.key),l=l.next,T--;this._head=l,this._size=T,l&&(l.previous=void 0),this._state++}addItemFirst(k){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");k.next=this._head,this._head.previous=k}else this._tail=k;this._head=k,this._state++}addItemLast(k){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");k.previous=this._tail,this._tail.next=k}else this._head=k;this._tail=k,this._state++}removeItem(k){if(k===this._head&&k===this._tail)this._head=void 0,this._tail=void 0;else if(k===this._head){if(!k.next)throw new Error("Invalid list");k.next.previous=void 0,this._head=k.next}else if(k===this._tail){if(!k.previous)throw new Error("Invalid list");k.previous.next=void 0,this._tail=k.previous}else{let l=k.next,T=k.previous;if(!l||!T)throw new Error("Invalid list");l.previous=T,T.next=l}k.next=void 0,k.previous=void 0,this._state++}touch(k,l){if(!this._head||!this._tail)throw new Error("Invalid list");if(l===1||l===2){if(l===1){if(k===this._head)return;let T=k.next,N=k.previous;k===this._tail?(N.next=void 0,this._tail=N):(T.previous=N,N.next=T),k.previous=void 0,k.next=this._head,this._head.previous=k,this._head=k,this._state++}else if(l===2){if(k===this._tail)return;let T=k.next,N=k.previous;k===this._head?(T.previous=void 0,this._head=T):(T.previous=N,N.next=T),k.next=void 0,k.previous=this._tail,this._tail.next=k,this._tail=k,this._state++}}}toJSON(){let k=[];return this.forEach((l,T)=>{k.push([T,l])}),k}fromJSON(k){this.clear();for(let[l,T]of k)this.set(l,T)}}class P extends S{constructor(k,l=1){super(),this._limit=k,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(k){this._limit=k,this.checkTrim()}get(k,l=2){return super.get(k,l)}peek(k){return super.get(k,0)}set(k,l){return super.set(k,l,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return W}),o.d(w,"c",function(){return Q});var h=o(23),f=o(18),D=o(2),H=o(8),E=function(y,C,S,P){return new(S||(S=Promise))(function(V,k){function l(b){try{N(P.next(b))}catch(g){k(g)}}function T(b){try{N(P.throw(b))}catch(g){k(g)}}function N(b){var g;b.done?V(b.value):(g=b.value,g instanceof S?g:new S(function(j){j(g)})).then(l,T)}N((P=P.apply(y,C||[])).next())})};let ge=Object(f.c)("openerService"),W=Object.freeze({_serviceBrand:void 0,registerOpener:()=>D.a.None,registerValidator:()=>D.a.None,registerExternalUriResolver:()=>D.a.None,setExternalOpener(){},open(){return E(this,void 0,void 0,function*(){return!1})},resolveExternalUri(y){return E(this,void 0,void 0,function*(){return{resolved:y,dispose(){}}})}});function Q(y,C){return h.a.isUri(y)?Object(H.t)(y.scheme,C):Object(H.T)(y,C+":")}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return D}),o.d(w,"a",function(){return H});var h=o(18),f=o(10);let D=Object(h.c)("accessibilityService"),H=new f.c("accessibilityModeEnabled",!1)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge});var h=o(22),f=o(9),D=o(3),H=o(8);class E{constructor(Q,y,C){this.lineNumber=Q,this.column=y,this.leftoverVisibleColumns=C}}class ge{static leftPosition(Q,y,C){return C>Q.getLineMinColumn(y)?C-=H.N(Q.getLineContent(y),C-1):y>1&&(y-=1,C=Q.getLineMaxColumn(y)),new f.a(y,C)}static left(Q,y,C,S){let P=ge.leftPosition(y,C,S);return new E(P.lineNumber,P.column,0)}static moveLeft(Q,y,C,S,P){let V,k;if(C.hasSelection()&&!S)V=C.selection.startLineNumber,k=C.selection.startColumn;else{let l=ge.left(Q,y,C.position.lineNumber,C.position.column-(P-1));V=l.lineNumber,k=l.column}return C.move(S,V,k,0)}static rightPosition(Q,y,C){return C<Q.getLineMaxColumn(y)?C+=H.L(Q.getLineContent(y),C-1):y<Q.getLineCount()&&(y+=1,C=Q.getLineMinColumn(y)),new f.a(y,C)}static right(Q,y,C,S){let P=ge.rightPosition(y,C,S);return new E(P.lineNumber,P.column,0)}static moveRight(Q,y,C,S,P){let V,k;if(C.hasSelection()&&!S)V=C.selection.endLineNumber,k=C.selection.endColumn;else{let l=ge.right(Q,y,C.position.lineNumber,C.position.column+(P-1));V=l.lineNumber,k=l.column}return C.move(S,V,k,0)}static down(Q,y,C,S,P,V,k){let l=h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize)+P,T=y.getLineCount(),N=C===T&&S===y.getLineMaxColumn(C);return(C+=V)>T?(C=T,S=k?y.getLineMaxColumn(C):Math.min(y.getLineMaxColumn(C),S)):S=h.a.columnFromVisibleColumn2(Q,y,C,l),P=N?0:l-h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize),new E(C,S,P)}static moveDown(Q,y,C,S,P){let V,k;C.hasSelection()&&!S?(V=C.selection.endLineNumber,k=C.selection.endColumn):(V=C.position.lineNumber,k=C.position.column);let l=ge.down(Q,y,V,k,C.leftoverVisibleColumns,P,!0);return C.move(S,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(Q,y,C){let S=C.selection,P=ge.down(Q,y,S.selectionStartLineNumber,S.selectionStartColumn,C.selectionStartLeftoverVisibleColumns,1,!1),V=ge.down(Q,y,S.positionLineNumber,S.positionColumn,C.leftoverVisibleColumns,1,!1);return new h.f(new D.a(P.lineNumber,P.column,P.lineNumber,P.column),P.leftoverVisibleColumns,new f.a(V.lineNumber,V.column),V.leftoverVisibleColumns)}static up(Q,y,C,S,P,V,k){let l=h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize)+P,T=C===1&&S===1;return(C-=V)<1?(C=1,S=k?y.getLineMinColumn(C):Math.min(y.getLineMaxColumn(C),S)):S=h.a.columnFromVisibleColumn2(Q,y,C,l),P=T?0:l-h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize),new E(C,S,P)}static moveUp(Q,y,C,S,P){let V,k;C.hasSelection()&&!S?(V=C.selection.startLineNumber,k=C.selection.startColumn):(V=C.position.lineNumber,k=C.position.column);let l=ge.up(Q,y,V,k,C.leftoverVisibleColumns,P,!0);return C.move(S,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(Q,y,C){let S=C.selection,P=ge.up(Q,y,S.selectionStartLineNumber,S.selectionStartColumn,C.selectionStartLeftoverVisibleColumns,1,!1),V=ge.up(Q,y,S.positionLineNumber,S.positionColumn,C.leftoverVisibleColumns,1,!1);return new h.f(new D.a(P.lineNumber,P.column,P.lineNumber,P.column),P.leftoverVisibleColumns,new f.a(V.lineNumber,V.column),V.leftoverVisibleColumns)}static moveToBeginningOfLine(Q,y,C,S){let P,V=C.position.lineNumber,k=y.getLineMinColumn(V),l=y.getLineFirstNonWhitespaceColumn(V)||k;return P=C.position.column===l?k:l,C.move(S,V,P,0)}static moveToEndOfLine(Q,y,C,S,P){let V=C.position.lineNumber,k=y.getLineMaxColumn(V);return C.move(S,V,k,P?1073741824-k:0)}static moveToBeginningOfBuffer(Q,y,C,S){return C.move(S,1,1,0)}static moveToEndOfBuffer(Q,y,C,S){let P=y.getLineCount(),V=y.getLineMaxColumn(P);return C.move(S,P,V,0)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge});var h=o(1),f=o(67),D=o(69),H=o(2),E=o(61);class ge extends H.a{onclick(Q,y){this._register(h.i(Q,h.c.CLICK,C=>y(new D.a(C))))}onmousedown(Q,y){this._register(h.i(Q,h.c.MOUSE_DOWN,C=>y(new D.a(C))))}onmouseover(Q,y){this._register(h.i(Q,h.c.MOUSE_OVER,C=>y(new D.a(C))))}onnonbubblingmouseout(Q,y){this._register(h.j(Q,C=>y(new D.a(C))))}onkeydown(Q,y){this._register(h.i(Q,h.c.KEY_DOWN,C=>y(new f.a(C))))}onkeyup(Q,y){this._register(h.i(Q,h.c.KEY_UP,C=>y(new f.a(C))))}oninput(Q,y){this._register(h.i(Q,h.c.INPUT,y))}onblur(Q,y){this._register(h.i(Q,h.c.BLUR,y))}onfocus(Q,y){this._register(h.i(Q,h.c.FOCUS,y))}ignoreGesture(Q){E.b.ignoreTarget(Q)}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"a",function(){return D});var h=o(18);class f{constructor(E){this.callback=E}report(E){this._value=E,this.callback(this._value)}}f.None=Object.freeze({report(){}});let D=Object(h.c)("editorProgressService")},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"a",function(){return D});var h=o(18);let f=Object(h.c)("contextViewService"),D=Object(h.c)("contextMenuService")},function(Ie,w,o){"use strict";o.d(w,"b",function(){return Q}),o.d(w,"a",function(){return h});var h,f=o(14),D=o(22),H=o(81),E=o(129),ge=o(9),W=o(3);class Q{static addCursorDown(C,S,P){let V=[],k=0;for(let l=0,T=S.length;l<T;l++){let N=S[l];V[k++]=new D.d(N.modelState,N.viewState),V[k++]=P?D.d.fromModelState(H.a.translateDown(C.cursorConfig,C.model,N.modelState)):D.d.fromViewState(H.a.translateDown(C.cursorConfig,C,N.viewState))}return V}static addCursorUp(C,S,P){let V=[],k=0;for(let l=0,T=S.length;l<T;l++){let N=S[l];V[k++]=new D.d(N.modelState,N.viewState),V[k++]=P?D.d.fromModelState(H.a.translateUp(C.cursorConfig,C.model,N.modelState)):D.d.fromViewState(H.a.translateUp(C.cursorConfig,C,N.viewState))}return V}static moveToBeginningOfLine(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=this._moveToLineStart(C,T,P)}return V}static _moveToLineStart(C,S,P){let V=S.viewState.position.column,k=V===S.modelState.position.column,l=S.viewState.position.lineNumber,T=C.getLineFirstNonWhitespaceColumn(l);return k||V===T?this._moveToLineStartByModel(C,S,P):this._moveToLineStartByView(C,S,P)}static _moveToLineStartByView(C,S,P){return D.d.fromViewState(H.a.moveToBeginningOfLine(C.cursorConfig,C,S.viewState,P))}static _moveToLineStartByModel(C,S,P){return D.d.fromModelState(H.a.moveToBeginningOfLine(C.cursorConfig,C.model,S.modelState,P))}static moveToEndOfLine(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=this._moveToLineEnd(C,N,P,V)}return k}static _moveToLineEnd(C,S,P,V){let k=S.viewState.position,l=C.getLineMaxColumn(k.lineNumber),T=k.column===l,N=S.modelState.position,b=C.model.getLineMaxColumn(N.lineNumber),g=l-k.column==b-N.column;return T||g?this._moveToLineEndByModel(C,S,P,V):this._moveToLineEndByView(C,S,P,V)}static _moveToLineEndByView(C,S,P,V){return D.d.fromViewState(H.a.moveToEndOfLine(C.cursorConfig,C,S.viewState,P,V))}static _moveToLineEndByModel(C,S,P,V){return D.d.fromModelState(H.a.moveToEndOfLine(C.cursorConfig,C.model,S.modelState,P,V))}static expandLineSelection(C,S){let P=[];for(let V=0,k=S.length;V<k;V++){let l=S[V],T=l.modelState.selection.startLineNumber,N=C.model.getLineCount(),b,g=l.modelState.selection.endLineNumber;g===N?b=C.model.getLineMaxColumn(N):(g++,b=1),P[V]=D.d.fromModelState(new D.f(new W.a(T,1,T,1),0,new ge.a(g,b),0))}return P}static moveToBeginningOfBuffer(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=D.d.fromModelState(H.a.moveToBeginningOfBuffer(C.cursorConfig,C.model,T.modelState,P))}return V}static moveToEndOfBuffer(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=D.d.fromModelState(H.a.moveToEndOfBuffer(C.cursorConfig,C.model,T.modelState,P))}return V}static selectAll(C,S){let P=C.model.getLineCount(),V=C.model.getLineMaxColumn(P);return D.d.fromModelState(new D.f(new W.a(1,1,1,1),0,new ge.a(P,V),0))}static line(C,S,P,V,k){let l=C.model.validatePosition(V),T=k?C.coordinatesConverter.validateViewPosition(new ge.a(k.lineNumber,k.column),l):C.coordinatesConverter.convertModelPositionToViewPosition(l);if(!P||!S.modelState.hasSelection()){let b=C.model.getLineCount(),g=l.lineNumber+1,j=1;return g>b&&(g=b,j=C.model.getLineMaxColumn(g)),D.d.fromModelState(new D.f(new W.a(l.lineNumber,1,g,j),0,new ge.a(g,j),0))}let N=S.modelState.selectionStart.getStartPosition().lineNumber;if(l.lineNumber<N)return D.d.fromViewState(S.viewState.move(S.modelState.hasSelection(),T.lineNumber,1,0));if(l.lineNumber>N){let b=C.getLineCount(),g=T.lineNumber+1,j=1;return g>b&&(g=b,j=C.getLineMaxColumn(g)),D.d.fromViewState(S.viewState.move(S.modelState.hasSelection(),g,j,0))}{let b=S.modelState.selectionStart.getEndPosition();return D.d.fromModelState(S.modelState.move(S.modelState.hasSelection(),b.lineNumber,b.column,0))}}static word(C,S,P,V){let k=C.model.validatePosition(V);return D.d.fromModelState(E.a.word(C.cursorConfig,C.model,S.modelState,P,k))}static cancelSelection(C,S){if(!S.modelState.hasSelection())return new D.d(S.modelState,S.viewState);let P=S.viewState.position.lineNumber,V=S.viewState.position.column;return D.d.fromViewState(new D.f(new W.a(P,V,P,V),0,new ge.a(P,V),0))}static moveTo(C,S,P,V,k){let l=C.model.validatePosition(V),T=k?C.coordinatesConverter.validateViewPosition(new ge.a(k.lineNumber,k.column),l):C.coordinatesConverter.convertModelPositionToViewPosition(l);return D.d.fromViewState(S.viewState.move(P,T.lineNumber,T.column,0))}static simpleMove(C,S,P,V,k,l){switch(P){case 0:return l===4?this._moveHalfLineLeft(C,S,V):this._moveLeft(C,S,V,k);case 1:return l===4?this._moveHalfLineRight(C,S,V):this._moveRight(C,S,V,k);case 2:return l===2?this._moveUpByViewLines(C,S,V,k):this._moveUpByModelLines(C,S,V,k);case 3:return l===2?this._moveDownByViewLines(C,S,V,k):this._moveDownByModelLines(C,S,V,k);case 4:return this._moveToViewMinColumn(C,S,V);case 5:return this._moveToViewFirstNonWhitespaceColumn(C,S,V);case 6:return this._moveToViewCenterColumn(C,S,V);case 7:return this._moveToViewMaxColumn(C,S,V);case 8:return this._moveToViewLastNonWhitespaceColumn(C,S,V);default:return null}}static viewportMove(C,S,P,V,k){let l=C.getCompletelyVisibleViewRange(),T=C.coordinatesConverter.convertViewRangeToModelRange(l);switch(P){case 9:{let N=this._firstLineNumberInRange(C.model,T,k),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 11:{let N=this._lastLineNumberInRange(C.model,T,k),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 10:{let N=Math.round((T.startLineNumber+T.endLineNumber)/2),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 12:{let N=[];for(let b=0,g=S.length;b<g;b++){let j=S[b];N[b]=this.findPositionInViewportIfOutside(C,j,l,V)}return N}default:return null}}static findPositionInViewportIfOutside(C,S,P,V){let k=S.viewState.position.lineNumber;if(P.startLineNumber<=k&&k<=P.endLineNumber-1)return new D.d(S.modelState,S.viewState);{k>P.endLineNumber-1&&(k=P.endLineNumber-1),k<P.startLineNumber&&(k=P.startLineNumber);let l=C.getLineFirstNonWhitespaceColumn(k);return this._moveToViewPosition(C,S,V,k,l)}}static _firstLineNumberInRange(C,S,P){let V=S.startLineNumber;return S.startColumn!==C.getLineMinColumn(V)&&V++,Math.min(S.endLineNumber,V+P-1)}static _lastLineNumberInRange(C,S,P){let V=S.startLineNumber;return S.startColumn!==C.getLineMinColumn(V)&&V++,Math.max(V,S.endLineNumber-P+1)}static _moveLeft(C,S,P,V){let k=S.length>1,l=[];for(let T=0,N=S.length;T<N;T++){let b=S[T],g=k||!b.viewState.hasSelection(),j=H.a.moveLeft(C.cursorConfig,C,b.viewState,P,V);g&&V===1&&j.position.lineNumber!==b.viewState.position.lineNumber&&C.coordinatesConverter.convertViewPositionToModelPosition(j.position).lineNumber===b.modelState.position.lineNumber&&(j=H.a.moveLeft(C.cursorConfig,C,j,P,1)),l[T]=D.d.fromViewState(j)}return l}static _moveHalfLineLeft(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round(C.getLineContent(N).length/2);V[k]=D.d.fromViewState(H.a.moveLeft(C.cursorConfig,C,T.viewState,P,b))}return V}static _moveRight(C,S,P,V){let k=S.length>1,l=[];for(let T=0,N=S.length;T<N;T++){let b=S[T],g=k||!b.viewState.hasSelection(),j=H.a.moveRight(C.cursorConfig,C,b.viewState,P,V);g&&V===1&&j.position.lineNumber!==b.viewState.position.lineNumber&&C.coordinatesConverter.convertViewPositionToModelPosition(j.position).lineNumber===b.modelState.position.lineNumber&&(j=H.a.moveRight(C.cursorConfig,C,j,P,1)),l[T]=D.d.fromViewState(j)}return l}static _moveHalfLineRight(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round(C.getLineContent(N).length/2);V[k]=D.d.fromViewState(H.a.moveRight(C.cursorConfig,C,T.viewState,P,b))}return V}static _moveDownByViewLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=D.d.fromViewState(H.a.moveDown(C.cursorConfig,C,N.viewState,P,V))}return k}static _moveDownByModelLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=D.d.fromModelState(H.a.moveDown(C.cursorConfig,C.model,N.modelState,P,V))}return k}static _moveUpByViewLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=D.d.fromViewState(H.a.moveUp(C.cursorConfig,C,N.viewState,P,V))}return k}static _moveUpByModelLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=D.d.fromModelState(H.a.moveUp(C.cursorConfig,C.model,N.modelState,P,V))}return k}static _moveToViewPosition(C,S,P,V,k){return D.d.fromViewState(S.viewState.move(P,V,k,0))}static _moveToModelPosition(C,S,P,V,k){return D.d.fromModelState(S.modelState.move(P,V,k,0))}static _moveToViewMinColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineMinColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewFirstNonWhitespaceColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineFirstNonWhitespaceColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewCenterColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round((C.getLineMaxColumn(N)+C.getLineMinColumn(N))/2);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewMaxColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineMaxColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewLastNonWhitespaceColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineLastNonWhitespaceColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}}(function(y){y.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument: +`.indexOf(T.charAt(N))!==-1}var Q;function y(T,N,b){b===void 0&&(b=Q.DEFAULT);var g=h(T,!1);function j(Ye){return Ye?function(){return Ye(g.getTokenOffset(),g.getTokenLength(),g.getTokenStartLine(),g.getTokenStartCharacter())}:function(){return!0}}function ie(Ye){return Ye?function(ht){return Ye(ht,g.getTokenOffset(),g.getTokenLength(),g.getTokenStartLine(),g.getTokenStartCharacter())}:function(){return!0}}var U=j(N.onObjectBegin),q=ie(N.onObjectProperty),B=j(N.onObjectEnd),se=j(N.onArrayBegin),ke=j(N.onArrayEnd),xe=ie(N.onLiteralValue),Y=ie(N.onSeparator),Z=j(N.onComment),te=ie(N.onError),he=b&&b.disallowComments,Ce=b&&b.allowTrailingComma;function Ae(){for(;;){var Ye=g.scan();switch(g.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:he||L(11);break;case 2:L(12);break;case 6:L(16)}switch(Ye){case 12:case 13:he?L(10):Z();break;case 16:L(1);break;case 15:case 14:break;default:return Ye}}}function L(Ye,ht,fe){if(ht===void 0&&(ht=[]),fe===void 0&&(fe=[]),te(Ye),ht.length+fe.length>0)for(var $=g.getToken();$!==17;){if(ht.indexOf($)!==-1){Ae();break}if(fe.indexOf($)!==-1)break;$=Ae()}}function nt(Ye){var ht=g.getTokenValue();return Ye?xe(ht):q(ht),Ae(),!0}function ct(){switch(g.getToken()){case 3:return function(){se(),Ae();for(var Ye=!1;g.getToken()!==4&&g.getToken()!==17;){if(g.getToken()===5){if(Ye||L(4,[],[]),Y(","),Ae(),g.getToken()===4&&Ce)break}else Ye&&L(6,[],[]);ct()||L(4,[],[4,5]),Ye=!0}return ke(),g.getToken()!==4?L(8,[4],[]):Ae(),!0}();case 1:return function(){U(),Ae();for(var Ye=!1;g.getToken()!==2&&g.getToken()!==17;){if(g.getToken()===5){if(Ye||L(4,[],[]),Y(","),Ae(),g.getToken()===2&&Ce)break}else Ye&&L(6,[],[]);(g.getToken()!==10?(L(3,[],[2,5]),0):(nt(!1),g.getToken()===6?(Y(":"),Ae(),ct()||L(4,[],[2,5])):L(5,[],[2,5]),1))||L(4,[],[2,5]),Ye=!0}return B(),g.getToken()!==2?L(7,[2],[]):Ae(),!0}();case 10:return nt(!0);default:return function(){switch(g.getToken()){case 11:var Ye=0;try{typeof(Ye=JSON.parse(g.getTokenValue()))!="number"&&(L(2),Ye=0)}catch(ht){L(2)}xe(Ye);break;case 7:xe(null);break;case 8:xe(!0);break;case 9:xe(!1);break;default:return!1}return Ae(),!0}()}}return Ae(),g.getToken()===17?!!b.allowEmptyContent||(L(4,[],[]),!1):ct()?(g.getToken()!==17&&L(9,[],[]),!0):(L(4,[],[]),!1)}r.d(w,"a",function(){return C}),r.d(w,"f",function(){return S}),r.d(w,"b",function(){return P}),r.d(w,"d",function(){return V}),r.d(w,"e",function(){return k}),r.d(w,"c",function(){return l}),function(T){T.DEFAULT={allowTrailingComma:!1}}(Q||(Q={}));var C=h,S=function(T,N,b){N===void 0&&(N=[]),b===void 0&&(b=Q.DEFAULT);var g=null,j=[],ie=[];function U(q){Array.isArray(j)?j.push(q):g!==null&&(j[g]=q)}return y(T,{onObjectBegin:function(){var q={};U(q),ie.push(j),j=q,g=null},onObjectProperty:function(q){g=q},onObjectEnd:function(){j=ie.pop()},onArrayBegin:function(){var q=[];U(q),ie.push(j),j=q,g=null},onArrayEnd:function(){j=ie.pop()},onLiteralValue:U,onError:function(q,B,se){N.push({error:q,offset:B,length:se})}},b),j[0]},P=function T(N,b,g){if(g===void 0&&(g=!1),function(q,B,se){return se===void 0&&(se=!1),B>=q.offset&&B<q.offset+q.length||se&&B===q.offset+q.length}(N,b,g)){var j=N.children;if(Array.isArray(j))for(var ie=0;ie<j.length&&j[ie].offset<=b;ie++){var U=T(j[ie],b,g);if(U)return U}return N}},V=function T(N){if(!N.parent||!N.parent.children)return[];var b=T(N.parent);if(N.parent.type==="property"){var g=N.parent.children[0].value;b.push(g)}else if(N.parent.type==="array"){var j=N.parent.children.indexOf(N);j!==-1&&b.push(j)}return b},k=function T(N){switch(N.type){case"array":return N.children.map(T);case"object":for(var b=Object.create(null),g=0,j=N.children;g<j.length;g++){var ie=j[g],U=ie.children[1];U&&(b[ie.children[0].value]=T(U))}return b;case"null":case"string":case"number":case"boolean":return N.value;default:return}};function l(T,N,b){return E(T,N,b)}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return Q}),r.d(w,"a",function(){return y}),r.d(w,"c",function(){return C}),r(206);var h=r(11),f=r(1);let O,H,E,ge,W;function Q(P){O=document.createElement("div"),O.className="monaco-aria-container";let V=()=>{let l=document.createElement("div");return l.className="monaco-alert",l.setAttribute("role","alert"),l.setAttribute("aria-atomic","true"),O.appendChild(l),l};H=V(),E=V();let k=()=>{let l=document.createElement("div");return l.className="monaco-status",l.setAttribute("role","complementary"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),O.appendChild(l),l};ge=k(),W=k(),P.appendChild(O)}function y(P){O&&(H.textContent!==P?(f.s(E),S(H,P)):(f.s(H),S(E,P)))}function C(P){O&&(h.f?y(P):ge.textContent!==P?(f.s(W),S(ge,P)):(f.s(ge),S(W,P)))}function S(P,V){f.s(P),V.length>2e4&&(V=V.substr(0,2e4)),P.textContent=V,P.style.visibility="hidden",P.style.visibility="visible"}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Q});var h=r(34),f=r(43),O=r(11);let H=new Array(230),E=new Array(112);(function(){for(let C=0;C<E.length;C++)E[C]=-1;function y(C,S){H[C]=S,E[S]=C}y(3,7),y(8,1),y(9,2),y(13,3),y(16,4),y(17,5),y(18,6),y(19,7),y(20,8),y(27,9),y(32,10),y(33,11),y(34,12),y(35,13),y(36,14),y(37,15),y(38,16),y(39,17),y(40,18),y(45,19),y(46,20),y(48,21),y(49,22),y(50,23),y(51,24),y(52,25),y(53,26),y(54,27),y(55,28),y(56,29),y(57,30),y(65,31),y(66,32),y(67,33),y(68,34),y(69,35),y(70,36),y(71,37),y(72,38),y(73,39),y(74,40),y(75,41),y(76,42),y(77,43),y(78,44),y(79,45),y(80,46),y(81,47),y(82,48),y(83,49),y(84,50),y(85,51),y(86,52),y(87,53),y(88,54),y(89,55),y(90,56),y(93,58),y(96,93),y(97,94),y(98,95),y(99,96),y(100,97),y(101,98),y(102,99),y(103,100),y(104,101),y(105,102),y(106,103),y(107,104),y(108,105),y(109,106),y(110,107),y(111,108),y(112,59),y(113,60),y(114,61),y(115,62),y(116,63),y(117,64),y(118,65),y(119,66),y(120,67),y(121,68),y(122,69),y(123,70),y(124,71),y(125,72),y(126,73),y(127,74),y(128,75),y(129,76),y(130,77),y(144,78),y(145,79),y(186,80),y(187,81),y(188,82),y(189,83),y(190,84),y(191,85),y(192,86),y(193,110),y(194,111),y(219,87),y(220,88),y(221,89),y(222,90),y(223,91),y(226,92),y(229,109),h.h?(y(59,80),y(107,81),y(109,83),O.f&&y(224,57)):h.l&&(y(91,57),O.f?y(93,57):y(92,57))})();let ge=O.f?256:2048,W=O.f?2048:256;class Q{constructor(C){this._standardKeyboardEventBrand=!0;let S=C;this.browserEvent=S,this.target=S.target,this.ctrlKey=S.ctrlKey,this.shiftKey=S.shiftKey,this.altKey=S.altKey,this.metaKey=S.metaKey,this.keyCode=function(P){if(P.charCode){let V=String.fromCharCode(P.charCode).toUpperCase();return f.b.fromString(V)}return H[P.keyCode]||0}(S),this.code=S.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(C){return this._asKeybinding===C}_computeKeybinding(){let C=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(C=this.keyCode);let S=0;return this.ctrlKey&&(S|=ge),this.altKey&&(S|=512),this.shiftKey&&(S|=1024),this.metaKey&&(S|=W),S|=C,S}_computeRuntimeKeybinding(){let C=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(C=this.keyCode),new f.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,C)}}},function(Ie,w,r){"use strict";var h,f=r(8);(function(O){O[O.Ignore=0]="Ignore",O[O.Info=1]="Info",O[O.Warning=2]="Warning",O[O.Error=3]="Error"})(h||(h={})),function(O){O.fromValue=function(H){return H?f.t("error",H)?O.Error:f.t("warning",H)||f.t("warn",H)?O.Warning:f.t("info",H)?O.Info:O.Ignore:O.Ignore}}(h||(h={})),w.a=h},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E});var h=r(34),f=r(177),O=r(11);class H{constructor(W){this.timestamp=Date.now(),this.browserEvent=W,this.leftButton=W.button===0,this.middleButton=W.button===1,this.rightButton=W.button===2,this.buttons=W.buttons,this.target=W.target,this.detail=W.detail||1,W.type==="dblclick"&&(this.detail=2),this.ctrlKey=W.ctrlKey,this.shiftKey=W.shiftKey,this.altKey=W.altKey,this.metaKey=W.metaKey,typeof W.pageX=="number"?(this.posx=W.pageX,this.posy=W.pageY):(this.posx=W.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=W.clientY+document.body.scrollTop+document.documentElement.scrollTop);let Q=f.a.getPositionOfChildWindowRelativeToAncestorWindow(self,W.view);this.posx-=Q.left,this.posy-=Q.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class E{constructor(W,Q=0,y=0){if(this.browserEvent=W||null,this.target=W?W.target||W.targetNode||W.srcElement:null,this.deltaY=y,this.deltaX=Q,W){let C=W,S=W;if(C.wheelDeltaY!==void 0)this.deltaY=C.wheelDeltaY/120;else if(S.VERTICAL_AXIS!==void 0&&S.axis===S.VERTICAL_AXIS)this.deltaY=-S.detail/3;else if(W.type==="wheel"){let P=W;P.deltaMode===P.DOM_DELTA_LINE?h.h&&!O.f?this.deltaY=-W.deltaY/3:this.deltaY=-W.deltaY:this.deltaY=-W.deltaY/40}if(C.wheelDeltaX!==void 0)h.j&&O.i?this.deltaX=-C.wheelDeltaX/120:this.deltaX=C.wheelDeltaX/120;else if(S.HORIZONTAL_AXIS!==void 0&&S.axis===S.HORIZONTAL_AXIS)this.deltaX=-W.detail/3;else if(W.type==="wheel"){let P=W;P.deltaMode===P.DOM_DELTA_LINE?h.h&&!O.f?this.deltaX=-W.deltaX/3:this.deltaX=-W.deltaX:this.deltaX=-W.deltaX/40}this.deltaY===0&&this.deltaX===0&&W.wheelDelta&&(this.deltaY=W.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(3);class f{static insert(H,E){return{range:new h.a(H.lineNumber,H.column,H.lineNumber,H.column),text:E,forceMoveMarkers:!0}}static delete(H){return{range:H,text:null}}static replace(H,E){return{range:H,text:E}}static replaceMove(H,E){return{range:H,text:E,forceMoveMarkers:!0}}}},function(Ie,w,r){"use strict";r.d(w,"j",function(){return O}),r.d(w,"h",function(){return H}),r.d(w,"f",function(){return E}),r.d(w,"i",function(){return N}),r.d(w,"g",function(){return q}),r.d(w,"b",function(){return B}),r.d(w,"c",function(){return se}),r.d(w,"a",function(){return Ae}),r.d(w,"d",function(){return L}),r.d(w,"e",function(){return G});var h=r(78),f=r(8);function O(...J){return function(Se,A){for(let ee=0,de=J.length;ee<de;ee++){let De=J[ee](Se,A);if(De)return De}return null}}let H=function(J,Se,A){if(!A||A.length<Se.length)return null;let ee;return ee=J?f.T(A,Se):A.indexOf(Se)===0,ee?Se.length>0?[{start:0,end:Se.length}]:[]:null}.bind(void 0,!0);function E(J,Se){let A=Se.toLowerCase().indexOf(J.toLowerCase());return A===-1?null:[{start:A,end:A+J.length}]}function ge(J){return 97<=J&&J<=122}function W(J){return 65<=J&&J<=90}function Q(J){return 48<=J&&J<=57}function y(J){return J===32||J===9||J===10||J===13}let C=new Set;function S(J){return y(J)||C.has(J)}function P(J){return ge(J)||W(J)||Q(J)}function V(J,Se){return Se.length===0?Se=[J]:J.end===Se[0].start?Se[0].start=J.start:Se.unshift(J),Se}function k(J,Se){for(let A=Se;A<J.length;A++){let ee=J.charCodeAt(A);if(W(ee)||Q(ee)||A>0&&!P(J.charCodeAt(A-1)))return A}return J.length}function l(J,Se,A,ee){if(A===J.length)return[];if(ee===Se.length||J[A]!==Se[ee].toLowerCase())return null;{let de=null,De=ee+1;for(de=l(J,Se,A+1,ee+1);!de&&(De=k(Se,De))<Se.length;)de=l(J,Se,A+1,De),De++;return de===null?null:V({start:ee,end:ee+1},de)}}function T(J,Se){if(!Se||(Se=Se.trim()).length===0||!function(De){let $e=0,pt=0,it=0,At=0;for(let Nt=0;Nt<De.length;Nt++)it=De.charCodeAt(Nt),W(it)&&$e++,ge(it)&&pt++,y(it)&&At++;return $e!==0&&pt!==0||At!==0?$e<=5:De.length<=30}(J)||Se.length>60)return null;let A=function(De){let $e=0,pt=0,it=0,At=0,Nt=0;for(let _i=0;_i<De.length;_i++)Nt=De.charCodeAt(_i),W(Nt)&&$e++,ge(Nt)&&pt++,P(Nt)&&it++,Q(Nt)&&At++;return{upperPercent:$e/De.length,lowerPercent:pt/De.length,alphaPercent:it/De.length,numericPercent:At/De.length}}(Se);if(!function(De){let{upperPercent:$e,lowerPercent:pt,alphaPercent:it,numericPercent:At}=De;return pt>.2&&$e<.8&&it>.6&&At<.2}(A)){if(!function(De){let{upperPercent:$e,lowerPercent:pt}=De;return pt===0&&$e>.6}(A))return null;Se=Se.toLowerCase()}let ee=null,de=0;for(J=J.toLowerCase();de<Se.length&&(ee=l(J,Se,0,de))===null;)de=k(Se,de+1);return ee}function N(J,Se,A=!1){if(!Se||Se.length===0)return null;let ee=null,de=0;for(J=J.toLowerCase(),Se=Se.toLowerCase();de<Se.length&&(ee=b(J,Se,0,de,A))===null;)de=g(Se,de+1);return ee}function b(J,Se,A,ee,de){if(A===J.length)return[];if(ee===Se.length)return null;if(De=J.charCodeAt(A),$e=Se.charCodeAt(ee),De===$e||S(De)&&S($e)){let pt=null,it=ee+1;if(pt=b(J,Se,A+1,ee+1,de),!de)for(;!pt&&(it=g(Se,it))<Se.length;)pt=b(J,Se,A+1,it,de),it++;return pt===null?null:V({start:ee,end:ee+1},pt)}return null;var De,$e}function g(J,Se){for(let A=Se;A<J.length;A++)if(S(J.charCodeAt(A))||A>0&&S(J.charCodeAt(A-1)))return A;return J.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(J=>C.add(J.charCodeAt(0)));let j=O(H,T,E),ie=O(H,T,function(J,Se){return function A(ee,de,De,$e){if(De===ee.length)return[];if($e===de.length)return null;if(ee[De]===de[$e]){let pt=null;return(pt=A(ee,de,De+1,$e+1))?V({start:$e,end:$e+1},pt):null}return A(ee,de,De,$e+1)}(J.toLowerCase(),Se.toLowerCase(),0,0)}),U=new h.a(1e4);function q(J,Se,A=!1){if(typeof J!="string"||typeof Se!="string")return null;let ee=U.get(J);ee||(ee=new RegExp(f.p(J),"i"),U.set(J,ee));let de=ee.exec(Se);return de?[{start:de.index,end:de.index+de[0].length}]:A?ie(J,Se):j(J,Se)}function B(J,Se,A,ee,de,De){let $e=L(J,Se,0,ee,de,0,!0);if($e)return $e;let pt=0,it=0,At=De;for(let Nt=0;Nt<Se.length&&Nt<ke;++Nt){let _i=de.indexOf(Se.charAt(Nt),At);if(_i>=0)it+=1,pt+=Math.pow(2,_i),At=_i+1;else if(pt!==0)break}return[it,pt,De]}function se(J){if(J===void 0)return[];let Se=J[1].toString(2),A=[];for(let ee=J[2];ee<ke;ee++)if(Se[Se.length-(ee+1)]==="1"){let de=A[A.length-1];de&&de.end===ee?de.end=ee+1:A.push({start:ee,end:ee+1})}return A}let ke=128;function xe(){let J=[],Se=[0];for(let A=1;A<=ke;A++)Se.push(-A);for(let A=0;A<=ke;A++){let ee=Se.slice(0);ee[0]=-A,J.push(ee)}return J}let Y=xe(),Z=xe(),te=xe();function he(J,Se){if(Se<0||Se>=J.length)return!1;switch(J.charCodeAt(Se)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function Ce(J,Se,A){return Se[J]!==A[J]}var Ae;function L(J,Se,A,ee,de,De,$e){let pt=J.length>ke?ke:J.length,it=ee.length>ke?ke:ee.length;if(A>=pt||De>=it||pt-A>it-De||!function(pi,et,Wt,Li,Ii,Ai){for(;et<Wt&&Ii<Ai;)pi[et]===Li[Ii]&&(et+=1),Ii+=1;return et===Wt}(Se,A,pt,de,De,it))return;let At=1,Nt=1,_i=A,wt=De,Ni=!1;for(At=1,_i=A;_i<pt;At++,_i++)for(Nt=1,wt=De;wt<it;Nt++,wt++){let pi=nt(J,Se,_i,A,ee,de,wt);_i===A&&pi>1&&(Ni=!0),Z[At][Nt]=pi;let et=Y[At-1][Nt-1]+(pi>1?1:pi),Wt=Y[At-1][Nt]+-1,Li=Y[At][Nt-1]+-1;Li>=Wt?Li>et?(Y[At][Nt]=Li,te[At][Nt]=4):Li===et?(Y[At][Nt]=Li,te[At][Nt]=6):(Y[At][Nt]=et,te[At][Nt]=2):Wt>et?(Y[At][Nt]=Wt,te[At][Nt]=1):Wt===et?(Y[At][Nt]=Wt,te[At][Nt]=3):(Y[At][Nt]=et,te[At][Nt]=2)}return(Ni||$e)&&(ct=0,ht=-100,fe=De,$=$e,function pi(et,Wt,Li,Ii,Ai){if(ct>=10||Li<-25)return;let Zi=0;for(;et>0&&Wt>0;){let Bi=Z[et][Wt],Lt=te[et][Wt];if(Lt===4)Wt-=1,Ai?Li-=5:Ii!==0&&(Li-=1),Ai=!1,Zi=0;else{if(!(2&Lt))return;if(4&Lt&&pi(et,Wt-1,Ii!==0?Li-1:Li,Ii,Ai),Li+=Bi,et-=1,Wt-=1,Ai=!0,Ii+=Math.pow(2,Wt+fe),Bi===1){if(Zi+=1,et===0&&!$)return}else Li+=1+Zi*(Bi-1),Zi=0}}ct+=1,(Li-=Wt>=3?9:3*Wt)>ht&&(ht=Li,Ye=Ii)}(At-1,Nt-1,pt===it?1:0,0,!1),ct!==0)?[ht,Ye,De]:void 0}function nt(J,Se,A,ee,de,De,$e){return Se[A]!==De[$e]?-1:$e===A-ee?J[A]===de[$e]?7:5:!Ce($e,de,De)||$e!==0&&Ce($e-1,de,De)?!he(De,$e)||$e!==0&&he(De,$e-1)?he(De,$e-1)||function(pt,it){if(it<0||it>=pt.length)return!1;switch(pt.charCodeAt(it)){case 32:case 9:return!0;default:return!1}}(De,$e-1)?5:1:5:J[A]===de[$e]?7:5}(function(J){J.Default=Object.freeze([-100,0,0]),J.isDefault=function(Se){return!Se||Se[0]===-100&&Se[1]===0&&Se[2]===0}})(Ae||(Ae={}));let ct=0,Ye=0,ht=0,fe=0,$=!1;function G(J,Se,A,ee,de,De,$e){return function(pt,it,At,Nt,_i,wt,Ni,pi){let et=L(pt,it,At,Nt,_i,wt,pi);if(et&&!Ni)return et;if(pt.length>=3){let Wt=Math.min(7,pt.length-1);for(let Li=At+1;Li<Wt;Li++){let Ii=z(pt,Li);if(Ii){let Ai=L(Ii,Ii.toLowerCase(),At,Nt,_i,wt,pi);Ai&&(Ai[0]-=3,(!et||Ai[0]>et[0])&&(et=Ai))}}}return et}(J,Se,A,ee,de,De,!0,$e)}function z(J,Se){if(Se+1>=J.length)return;let A=J[Se],ee=J[Se+1];return A!==ee?J.slice(0,Se)+ee+A+J.slice(Se+2):void 0}},function(Ie,w,r){"use strict";(function(h){r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return W}),r.d(w,"e",function(){return Q}),r.d(w,"c",function(){return y}),r.d(w,"f",function(){return C}),r.d(w,"d",function(){return S}),r.d(w,"g",function(){return P});var f=r(8);let O=h!==void 0,H=typeof TextDecoder!="undefined",E;class ge{constructor(k){this.buffer=k,this.byteLength=this.buffer.byteLength}toString(){return O?this.buffer.toString():H?(E||(E=new TextDecoder),E.decode(this.buffer)):f.r(this.buffer)}}function W(V,k){return V[k+0]<<0>>>0|V[k+1]<<8>>>0}function Q(V,k,l){V[l+0]=255&k,k>>>=8,V[l+1]=255&k}function y(V,k){return V[k]*Math.pow(2,24)+V[k+1]*Math.pow(2,16)+V[k+2]*Math.pow(2,8)+V[k+3]}function C(V,k,l){V[l+3]=k,k>>>=8,V[l+2]=k,k>>>=8,V[l+1]=k,k>>>=8,V[l]=k}function S(V,k){return V[k]}function P(V,k,l){V[l]=k}}).call(this,r(202).Buffer)},function(Ie,w,r){"use strict";r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f}),r.d(w,"c",function(){return O}),r.d(w,"d",function(){return E});let h="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",f=function(W=""){let Q="(-?\\d*\\.\\d\\w*)|([^";for(let y of h)W.indexOf(y)>=0||(Q+="\\"+y);return Q+="\\s]+)",new RegExp(Q,"g")}();function O(W){let Q=f;if(W&&W instanceof RegExp)if(W.global)Q=W;else{let y="g";W.ignoreCase&&(y+="i"),W.multiline&&(y+="m"),W.unicode&&(y+="u"),Q=new RegExp(W.source,y)}return Q.lastIndex=0,Q}let H={maxLen:1e3,windowSize:15,timeBudget:150};function E(W,Q,y,C,S=H){if(y.length>S.maxLen){let l=W-S.maxLen/2;return l<0?(C+=W,l=0):C+=l,E(W,Q,y=y.substring(l,W+S.maxLen/2),C,S)}Date.now();let P=W-1-C,V=-1,k=null;for(let l=1;;l++){Date.now(),S.timeBudget;let T=P-S.windowSize*l;Q.lastIndex=Math.max(0,T);let N=ge(Q,y,P,V);if(!N&&k||(k=N,T<=0))break;V=T}if(k){let l={word:k[0],startColumn:C+1+k.index,endColumn:C+1+k.index+k[0].length};return Q.lastIndex=0,l}return null}function ge(W,Q,y,C){let S;for(;S=W.exec(Q);){let P=S.index||0;if(P<=y&&W.lastIndex>=y)return S;if(C>0&&P>C)return null}return null}},function(Ie,w,r){"use strict";r.d(w,"f",function(){return f}),r.d(w,"b",function(){return O}),r.d(w,"c",function(){return H}),r.d(w,"d",function(){return E}),r.d(w,"a",function(){return ge}),r.d(w,"e",function(){return W});var h=r(8);class f{constructor(y,C,S,P){this.top=0|y,this.left=0|C,this.width=0|S,this.height=0|P}}class O{constructor(y,C){this.tabSize=y,this.data=C}}class H{constructor(y,C,S,P,V,k){this.content=y,this.continuesWithWrappedLine=C,this.minColumn=S,this.maxColumn=P,this.startVisibleColumn=V,this.tokens=k}}class E{constructor(y,C,S,P,V,k,l,T,N,b){this.minColumn=y,this.maxColumn=C,this.content=S,this.continuesWithWrappedLine=P,this.isBasicASCII=E.isBasicASCII(S,k),this.containsRTL=E.containsRTL(S,this.isBasicASCII,V),this.tokens=l,this.inlineDecorations=T,this.tabSize=N,this.startVisibleColumn=b}static isBasicASCII(y,C){return!C||h.B(y)}static containsRTL(y,C,S){return!(C||!S)&&h.m(y)}}class ge{constructor(y,C,S){this.range=y,this.inlineClassName=C,this.type=S}}class W{constructor(y,C){this.range=y,this.options=C}}},function(Ie,w,r){"use strict";var h;r.d(w,"a",function(){return h}),r.d(w,"b",function(){return f}),function(O){O[O.None=0]="None",O[O.Indent=1]="Indent",O[O.IndentOutdent=2]="IndentOutdent",O[O.Outdent=3]="Outdent"}(h||(h={}));class f{constructor(H){if(this.open=H.open,this.close=H.close,this._standardTokenMask=0,Array.isArray(H.notIn))for(let E=0,ge=H.notIn.length;E<ge;E++)switch(H.notIn[E]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}isOK(H){return(this._standardTokenMask&H)==0}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(36);class f{constructor(E){let ge=Object(h.b)(E);this._defaultValue=ge,this._asciiMap=f._createAsciiMap(ge),this._map=new Map}static _createAsciiMap(E){let ge=new Uint8Array(256);for(let W=0;W<256;W++)ge[W]=E;return ge}set(E,ge){let W=Object(h.b)(ge);E>=0&&E<256?this._asciiMap[E]=W:this._map.set(E,W)}get(E){return E>=0&&E<256?this._asciiMap[E]:this._map.get(E)||this._defaultValue}}class O{constructor(){this._actual=new f(0)}add(E){this._actual.set(E,1)}has(E){return this._actual.get(E)===1}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"b",function(){return f}),r.d(w,"c",function(){return O});class h{constructor(E,ge,W){this.offset=0|E,this.type=ge,this.language=W}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(E,ge){this.tokens=E,this.endState=ge}}class O{constructor(E,ge){this.tokens=E,this.endState=ge}}},function(Ie,w,r){"use strict";r.d(w,"c",function(){return y}),r.d(w,"b",function(){return C}),r.d(w,"a",function(){return P});var h=r(23),f=r(8),O=r(45),H=r(11);class E{constructor(){this._value="",this._pos=0}reset(k){return this._value=k,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(k){return k.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class ge{constructor(k=!0,l=!0){this._splitOnBackslash=k,this._caseSensitive=l}reset(k){return this._value=k.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let k=!0;for(;this._to<this._value.length;this._to++){let l=this._value.charCodeAt(this._to);if(l===47||this._splitOnBackslash&&l===92){if(!k)break;this._from++}else k=!1}return this}cmp(k){return this._caseSensitive?Object(f.h)(k,this._value,0,k.length,this._from,this._to):Object(f.i)(k,this._value,0,k.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class W{constructor(){this._states=[],this._stateIdx=0}reset(k){if(this._value=k,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path){let l=k.scheme===O.b.file&&H.d;this._pathIterator=new ge(!1,l),this._pathIterator.reset(k.path),this._pathIterator.value()&&this._states.push(3)}return this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(k){if(this._states[this._stateIdx]===1)return Object(f.f)(k,this._value.scheme);if(this._states[this._stateIdx]===2)return Object(f.i)(k,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(k);if(this._states[this._stateIdx]===4)return Object(f.f)(k,this._value.query);if(this._states[this._stateIdx]===5)return Object(f.f)(k,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class Q{}class y{constructor(k){this._iter=k}static forUris(){return new y(new W)}static forStrings(){return new y(new E)}clear(){this._root=void 0}set(k,l){let T=this._iter.reset(k),N;for(this._root||(this._root=new Q,this._root.segment=T.value()),N=this._root;;){let g=T.cmp(N.segment);if(g>0)N.left||(N.left=new Q,N.left.segment=T.value()),N=N.left;else if(g<0)N.right||(N.right=new Q,N.right.segment=T.value()),N=N.right;else{if(!T.hasNext())break;T.next(),N.mid||(N.mid=new Q,N.mid.segment=T.value()),N=N.mid}}let b=N.value;return N.value=l,N.key=k,b}get(k){let l=this._iter.reset(k),T=this._root;for(;T;){let N=l.cmp(T.segment);if(N>0)T=T.left;else if(N<0)T=T.right;else{if(!l.hasNext())break;l.next(),T=T.mid}}return T?T.value:void 0}findSubstr(k){let l=this._iter.reset(k),T=this._root,N;for(;T;){let b=l.cmp(T.segment);if(b>0)T=T.left;else if(b<0)T=T.right;else{if(!l.hasNext())break;l.next(),N=T.value||N,T=T.mid}}return T&&T.value||N}forEach(k){this._forEach(this._root,k)}_forEach(k,l){k&&(this._forEach(k.left,l),k.value&&l(k.value,k.key),this._forEach(k.mid,l),this._forEach(k.right,l))}}class C{constructor(k,l){this[Symbol.toStringTag]="ResourceMap",k instanceof C?(this.map=new Map(k.map),this.toKey=l??C.defaultToKey):(this.map=new Map,this.toKey=k??C.defaultToKey)}set(k,l){return this.map.set(this.toKey(k),l),this}get(k){return this.map.get(this.toKey(k))}has(k){return this.map.has(this.toKey(k))}get size(){return this.map.size}clear(){this.map.clear()}delete(k){return this.map.delete(this.toKey(k))}forEach(k,l){l!==void 0&&(k=k.bind(l));for(let[T,N]of this.map)k(N,h.a.parse(T),this)}values(){return this.map.values()}*keys(){for(let k of this.map.keys())yield h.a.parse(k)}*entries(){for(let k of this.map.entries())yield[h.a.parse(k[0]),k[1]]}*[Symbol.iterator](){for(let k of this.map)yield[h.a.parse(k[0]),k[1]]}}C.defaultToKey=V=>V.toString();class S{constructor(){this[Symbol.toStringTag]="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(){var k;return(k=this._head)===null||k===void 0?void 0:k.value}get last(){var k;return(k=this._tail)===null||k===void 0?void 0:k.value}has(k){return this._map.has(k)}get(k,l=0){let T=this._map.get(k);if(T)return l!==0&&this.touch(T,l),T.value}set(k,l,T=0){let N=this._map.get(k);if(N)N.value=l,T!==0&&this.touch(N,T);else{switch(N={key:k,value:l,next:void 0,previous:void 0},T){case 0:this.addItemLast(N);break;case 1:this.addItemFirst(N);break;case 2:default:this.addItemLast(N)}this._map.set(k,N),this._size++}return this}delete(k){return!!this.remove(k)}remove(k){let l=this._map.get(k);if(l)return this._map.delete(k),this.removeItem(l),this._size--,l.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let k=this._head;return this._map.delete(k.key),this.removeItem(k),this._size--,k.value}forEach(k,l){let T=this._state,N=this._head;for(;N;){if(l?k.bind(l)(N.value,N.key,this):k(N.value,N.key,this),this._state!==T)throw new Error("LinkedMap got modified during iteration.");N=N.next}}keys(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:T.key,done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}values(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:T.value,done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}entries(){let k=this,l=this._state,T=this._head,N={[Symbol.iterator]:()=>N,next(){if(k._state!==l)throw new Error("LinkedMap got modified during iteration.");if(T){let b={value:[T.key,T.value],done:!1};return T=T.next,b}return{value:void 0,done:!0}}};return N}[Symbol.iterator](){return this.entries()}trimOld(k){if(k>=this.size)return;if(k===0)return void this.clear();let l=this._head,T=this.size;for(;l&&T>k;)this._map.delete(l.key),l=l.next,T--;this._head=l,this._size=T,l&&(l.previous=void 0),this._state++}addItemFirst(k){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");k.next=this._head,this._head.previous=k}else this._tail=k;this._head=k,this._state++}addItemLast(k){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");k.previous=this._tail,this._tail.next=k}else this._head=k;this._tail=k,this._state++}removeItem(k){if(k===this._head&&k===this._tail)this._head=void 0,this._tail=void 0;else if(k===this._head){if(!k.next)throw new Error("Invalid list");k.next.previous=void 0,this._head=k.next}else if(k===this._tail){if(!k.previous)throw new Error("Invalid list");k.previous.next=void 0,this._tail=k.previous}else{let l=k.next,T=k.previous;if(!l||!T)throw new Error("Invalid list");l.previous=T,T.next=l}k.next=void 0,k.previous=void 0,this._state++}touch(k,l){if(!this._head||!this._tail)throw new Error("Invalid list");if(l===1||l===2){if(l===1){if(k===this._head)return;let T=k.next,N=k.previous;k===this._tail?(N.next=void 0,this._tail=N):(T.previous=N,N.next=T),k.previous=void 0,k.next=this._head,this._head.previous=k,this._head=k,this._state++}else if(l===2){if(k===this._tail)return;let T=k.next,N=k.previous;k===this._head?(T.previous=void 0,this._head=T):(T.previous=N,N.next=T),k.next=void 0,k.previous=this._tail,this._tail.next=k,this._tail=k,this._state++}}}toJSON(){let k=[];return this.forEach((l,T)=>{k.push([T,l])}),k}fromJSON(k){this.clear();for(let[l,T]of k)this.set(l,T)}}class P extends S{constructor(k,l=1){super(),this._limit=k,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(k){this._limit=k,this.checkTrim()}get(k,l=2){return super.get(k,l)}peek(k){return super.get(k,0)}set(k,l){return super.set(k,l,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return W}),r.d(w,"c",function(){return Q});var h=r(23),f=r(18),O=r(2),H=r(8),E=function(y,C,S,P){return new(S||(S=Promise))(function(V,k){function l(b){try{N(P.next(b))}catch(g){k(g)}}function T(b){try{N(P.throw(b))}catch(g){k(g)}}function N(b){var g;b.done?V(b.value):(g=b.value,g instanceof S?g:new S(function(j){j(g)})).then(l,T)}N((P=P.apply(y,C||[])).next())})};let ge=Object(f.c)("openerService"),W=Object.freeze({_serviceBrand:void 0,registerOpener:()=>O.a.None,registerValidator:()=>O.a.None,registerExternalUriResolver:()=>O.a.None,setExternalOpener(){},open(){return E(this,void 0,void 0,function*(){return!1})},resolveExternalUri(y){return E(this,void 0,void 0,function*(){return{resolved:y,dispose(){}}})}});function Q(y,C){return h.a.isUri(y)?Object(H.t)(y.scheme,C):Object(H.T)(y,C+":")}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return O}),r.d(w,"a",function(){return H});var h=r(18),f=r(10);let O=Object(h.c)("accessibilityService"),H=new f.c("accessibilityModeEnabled",!1)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge});var h=r(22),f=r(9),O=r(3),H=r(8);class E{constructor(Q,y,C){this.lineNumber=Q,this.column=y,this.leftoverVisibleColumns=C}}class ge{static leftPosition(Q,y,C){return C>Q.getLineMinColumn(y)?C-=H.N(Q.getLineContent(y),C-1):y>1&&(y-=1,C=Q.getLineMaxColumn(y)),new f.a(y,C)}static left(Q,y,C,S){let P=ge.leftPosition(y,C,S);return new E(P.lineNumber,P.column,0)}static moveLeft(Q,y,C,S,P){let V,k;if(C.hasSelection()&&!S)V=C.selection.startLineNumber,k=C.selection.startColumn;else{let l=ge.left(Q,y,C.position.lineNumber,C.position.column-(P-1));V=l.lineNumber,k=l.column}return C.move(S,V,k,0)}static rightPosition(Q,y,C){return C<Q.getLineMaxColumn(y)?C+=H.L(Q.getLineContent(y),C-1):y<Q.getLineCount()&&(y+=1,C=Q.getLineMinColumn(y)),new f.a(y,C)}static right(Q,y,C,S){let P=ge.rightPosition(y,C,S);return new E(P.lineNumber,P.column,0)}static moveRight(Q,y,C,S,P){let V,k;if(C.hasSelection()&&!S)V=C.selection.endLineNumber,k=C.selection.endColumn;else{let l=ge.right(Q,y,C.position.lineNumber,C.position.column+(P-1));V=l.lineNumber,k=l.column}return C.move(S,V,k,0)}static down(Q,y,C,S,P,V,k){let l=h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize)+P,T=y.getLineCount(),N=C===T&&S===y.getLineMaxColumn(C);return(C+=V)>T?(C=T,S=k?y.getLineMaxColumn(C):Math.min(y.getLineMaxColumn(C),S)):S=h.a.columnFromVisibleColumn2(Q,y,C,l),P=N?0:l-h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize),new E(C,S,P)}static moveDown(Q,y,C,S,P){let V,k;C.hasSelection()&&!S?(V=C.selection.endLineNumber,k=C.selection.endColumn):(V=C.position.lineNumber,k=C.position.column);let l=ge.down(Q,y,V,k,C.leftoverVisibleColumns,P,!0);return C.move(S,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(Q,y,C){let S=C.selection,P=ge.down(Q,y,S.selectionStartLineNumber,S.selectionStartColumn,C.selectionStartLeftoverVisibleColumns,1,!1),V=ge.down(Q,y,S.positionLineNumber,S.positionColumn,C.leftoverVisibleColumns,1,!1);return new h.f(new O.a(P.lineNumber,P.column,P.lineNumber,P.column),P.leftoverVisibleColumns,new f.a(V.lineNumber,V.column),V.leftoverVisibleColumns)}static up(Q,y,C,S,P,V,k){let l=h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize)+P,T=C===1&&S===1;return(C-=V)<1?(C=1,S=k?y.getLineMinColumn(C):Math.min(y.getLineMaxColumn(C),S)):S=h.a.columnFromVisibleColumn2(Q,y,C,l),P=T?0:l-h.a.visibleColumnFromColumn(y.getLineContent(C),S,Q.tabSize),new E(C,S,P)}static moveUp(Q,y,C,S,P){let V,k;C.hasSelection()&&!S?(V=C.selection.startLineNumber,k=C.selection.startColumn):(V=C.position.lineNumber,k=C.position.column);let l=ge.up(Q,y,V,k,C.leftoverVisibleColumns,P,!0);return C.move(S,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(Q,y,C){let S=C.selection,P=ge.up(Q,y,S.selectionStartLineNumber,S.selectionStartColumn,C.selectionStartLeftoverVisibleColumns,1,!1),V=ge.up(Q,y,S.positionLineNumber,S.positionColumn,C.leftoverVisibleColumns,1,!1);return new h.f(new O.a(P.lineNumber,P.column,P.lineNumber,P.column),P.leftoverVisibleColumns,new f.a(V.lineNumber,V.column),V.leftoverVisibleColumns)}static moveToBeginningOfLine(Q,y,C,S){let P,V=C.position.lineNumber,k=y.getLineMinColumn(V),l=y.getLineFirstNonWhitespaceColumn(V)||k;return P=C.position.column===l?k:l,C.move(S,V,P,0)}static moveToEndOfLine(Q,y,C,S,P){let V=C.position.lineNumber,k=y.getLineMaxColumn(V);return C.move(S,V,k,P?1073741824-k:0)}static moveToBeginningOfBuffer(Q,y,C,S){return C.move(S,1,1,0)}static moveToEndOfBuffer(Q,y,C,S){let P=y.getLineCount(),V=y.getLineMaxColumn(P);return C.move(S,P,V,0)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge});var h=r(1),f=r(67),O=r(69),H=r(2),E=r(61);class ge extends H.a{onclick(Q,y){this._register(h.i(Q,h.c.CLICK,C=>y(new O.a(C))))}onmousedown(Q,y){this._register(h.i(Q,h.c.MOUSE_DOWN,C=>y(new O.a(C))))}onmouseover(Q,y){this._register(h.i(Q,h.c.MOUSE_OVER,C=>y(new O.a(C))))}onnonbubblingmouseout(Q,y){this._register(h.j(Q,C=>y(new O.a(C))))}onkeydown(Q,y){this._register(h.i(Q,h.c.KEY_DOWN,C=>y(new f.a(C))))}onkeyup(Q,y){this._register(h.i(Q,h.c.KEY_UP,C=>y(new f.a(C))))}oninput(Q,y){this._register(h.i(Q,h.c.INPUT,y))}onblur(Q,y){this._register(h.i(Q,h.c.BLUR,y))}onfocus(Q,y){this._register(h.i(Q,h.c.FOCUS,y))}ignoreGesture(Q){E.b.ignoreTarget(Q)}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"a",function(){return O});var h=r(18);class f{constructor(E){this.callback=E}report(E){this._value=E,this.callback(this._value)}}f.None=Object.freeze({report(){}});let O=Object(h.c)("editorProgressService")},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"a",function(){return O});var h=r(18);let f=Object(h.c)("contextViewService"),O=Object(h.c)("contextMenuService")},function(Ie,w,r){"use strict";r.d(w,"b",function(){return Q}),r.d(w,"a",function(){return h});var h,f=r(14),O=r(22),H=r(81),E=r(129),ge=r(9),W=r(3);class Q{static addCursorDown(C,S,P){let V=[],k=0;for(let l=0,T=S.length;l<T;l++){let N=S[l];V[k++]=new O.d(N.modelState,N.viewState),V[k++]=P?O.d.fromModelState(H.a.translateDown(C.cursorConfig,C.model,N.modelState)):O.d.fromViewState(H.a.translateDown(C.cursorConfig,C,N.viewState))}return V}static addCursorUp(C,S,P){let V=[],k=0;for(let l=0,T=S.length;l<T;l++){let N=S[l];V[k++]=new O.d(N.modelState,N.viewState),V[k++]=P?O.d.fromModelState(H.a.translateUp(C.cursorConfig,C.model,N.modelState)):O.d.fromViewState(H.a.translateUp(C.cursorConfig,C,N.viewState))}return V}static moveToBeginningOfLine(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=this._moveToLineStart(C,T,P)}return V}static _moveToLineStart(C,S,P){let V=S.viewState.position.column,k=V===S.modelState.position.column,l=S.viewState.position.lineNumber,T=C.getLineFirstNonWhitespaceColumn(l);return k||V===T?this._moveToLineStartByModel(C,S,P):this._moveToLineStartByView(C,S,P)}static _moveToLineStartByView(C,S,P){return O.d.fromViewState(H.a.moveToBeginningOfLine(C.cursorConfig,C,S.viewState,P))}static _moveToLineStartByModel(C,S,P){return O.d.fromModelState(H.a.moveToBeginningOfLine(C.cursorConfig,C.model,S.modelState,P))}static moveToEndOfLine(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=this._moveToLineEnd(C,N,P,V)}return k}static _moveToLineEnd(C,S,P,V){let k=S.viewState.position,l=C.getLineMaxColumn(k.lineNumber),T=k.column===l,N=S.modelState.position,b=C.model.getLineMaxColumn(N.lineNumber),g=l-k.column==b-N.column;return T||g?this._moveToLineEndByModel(C,S,P,V):this._moveToLineEndByView(C,S,P,V)}static _moveToLineEndByView(C,S,P,V){return O.d.fromViewState(H.a.moveToEndOfLine(C.cursorConfig,C,S.viewState,P,V))}static _moveToLineEndByModel(C,S,P,V){return O.d.fromModelState(H.a.moveToEndOfLine(C.cursorConfig,C.model,S.modelState,P,V))}static expandLineSelection(C,S){let P=[];for(let V=0,k=S.length;V<k;V++){let l=S[V],T=l.modelState.selection.startLineNumber,N=C.model.getLineCount(),b,g=l.modelState.selection.endLineNumber;g===N?b=C.model.getLineMaxColumn(N):(g++,b=1),P[V]=O.d.fromModelState(new O.f(new W.a(T,1,T,1),0,new ge.a(g,b),0))}return P}static moveToBeginningOfBuffer(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=O.d.fromModelState(H.a.moveToBeginningOfBuffer(C.cursorConfig,C.model,T.modelState,P))}return V}static moveToEndOfBuffer(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k];V[k]=O.d.fromModelState(H.a.moveToEndOfBuffer(C.cursorConfig,C.model,T.modelState,P))}return V}static selectAll(C,S){let P=C.model.getLineCount(),V=C.model.getLineMaxColumn(P);return O.d.fromModelState(new O.f(new W.a(1,1,1,1),0,new ge.a(P,V),0))}static line(C,S,P,V,k){let l=C.model.validatePosition(V),T=k?C.coordinatesConverter.validateViewPosition(new ge.a(k.lineNumber,k.column),l):C.coordinatesConverter.convertModelPositionToViewPosition(l);if(!P||!S.modelState.hasSelection()){let b=C.model.getLineCount(),g=l.lineNumber+1,j=1;return g>b&&(g=b,j=C.model.getLineMaxColumn(g)),O.d.fromModelState(new O.f(new W.a(l.lineNumber,1,g,j),0,new ge.a(g,j),0))}let N=S.modelState.selectionStart.getStartPosition().lineNumber;if(l.lineNumber<N)return O.d.fromViewState(S.viewState.move(S.modelState.hasSelection(),T.lineNumber,1,0));if(l.lineNumber>N){let b=C.getLineCount(),g=T.lineNumber+1,j=1;return g>b&&(g=b,j=C.getLineMaxColumn(g)),O.d.fromViewState(S.viewState.move(S.modelState.hasSelection(),g,j,0))}{let b=S.modelState.selectionStart.getEndPosition();return O.d.fromModelState(S.modelState.move(S.modelState.hasSelection(),b.lineNumber,b.column,0))}}static word(C,S,P,V){let k=C.model.validatePosition(V);return O.d.fromModelState(E.a.word(C.cursorConfig,C.model,S.modelState,P,k))}static cancelSelection(C,S){if(!S.modelState.hasSelection())return new O.d(S.modelState,S.viewState);let P=S.viewState.position.lineNumber,V=S.viewState.position.column;return O.d.fromViewState(new O.f(new W.a(P,V,P,V),0,new ge.a(P,V),0))}static moveTo(C,S,P,V,k){let l=C.model.validatePosition(V),T=k?C.coordinatesConverter.validateViewPosition(new ge.a(k.lineNumber,k.column),l):C.coordinatesConverter.convertModelPositionToViewPosition(l);return O.d.fromViewState(S.viewState.move(P,T.lineNumber,T.column,0))}static simpleMove(C,S,P,V,k,l){switch(P){case 0:return l===4?this._moveHalfLineLeft(C,S,V):this._moveLeft(C,S,V,k);case 1:return l===4?this._moveHalfLineRight(C,S,V):this._moveRight(C,S,V,k);case 2:return l===2?this._moveUpByViewLines(C,S,V,k):this._moveUpByModelLines(C,S,V,k);case 3:return l===2?this._moveDownByViewLines(C,S,V,k):this._moveDownByModelLines(C,S,V,k);case 4:return this._moveToViewMinColumn(C,S,V);case 5:return this._moveToViewFirstNonWhitespaceColumn(C,S,V);case 6:return this._moveToViewCenterColumn(C,S,V);case 7:return this._moveToViewMaxColumn(C,S,V);case 8:return this._moveToViewLastNonWhitespaceColumn(C,S,V);default:return null}}static viewportMove(C,S,P,V,k){let l=C.getCompletelyVisibleViewRange(),T=C.coordinatesConverter.convertViewRangeToModelRange(l);switch(P){case 9:{let N=this._firstLineNumberInRange(C.model,T,k),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 11:{let N=this._lastLineNumberInRange(C.model,T,k),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 10:{let N=Math.round((T.startLineNumber+T.endLineNumber)/2),b=C.model.getLineFirstNonWhitespaceColumn(N);return[this._moveToModelPosition(C,S[0],V,N,b)]}case 12:{let N=[];for(let b=0,g=S.length;b<g;b++){let j=S[b];N[b]=this.findPositionInViewportIfOutside(C,j,l,V)}return N}default:return null}}static findPositionInViewportIfOutside(C,S,P,V){let k=S.viewState.position.lineNumber;if(P.startLineNumber<=k&&k<=P.endLineNumber-1)return new O.d(S.modelState,S.viewState);{k>P.endLineNumber-1&&(k=P.endLineNumber-1),k<P.startLineNumber&&(k=P.startLineNumber);let l=C.getLineFirstNonWhitespaceColumn(k);return this._moveToViewPosition(C,S,V,k,l)}}static _firstLineNumberInRange(C,S,P){let V=S.startLineNumber;return S.startColumn!==C.getLineMinColumn(V)&&V++,Math.min(S.endLineNumber,V+P-1)}static _lastLineNumberInRange(C,S,P){let V=S.startLineNumber;return S.startColumn!==C.getLineMinColumn(V)&&V++,Math.max(V,S.endLineNumber-P+1)}static _moveLeft(C,S,P,V){let k=S.length>1,l=[];for(let T=0,N=S.length;T<N;T++){let b=S[T],g=k||!b.viewState.hasSelection(),j=H.a.moveLeft(C.cursorConfig,C,b.viewState,P,V);g&&V===1&&j.position.lineNumber!==b.viewState.position.lineNumber&&C.coordinatesConverter.convertViewPositionToModelPosition(j.position).lineNumber===b.modelState.position.lineNumber&&(j=H.a.moveLeft(C.cursorConfig,C,j,P,1)),l[T]=O.d.fromViewState(j)}return l}static _moveHalfLineLeft(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round(C.getLineContent(N).length/2);V[k]=O.d.fromViewState(H.a.moveLeft(C.cursorConfig,C,T.viewState,P,b))}return V}static _moveRight(C,S,P,V){let k=S.length>1,l=[];for(let T=0,N=S.length;T<N;T++){let b=S[T],g=k||!b.viewState.hasSelection(),j=H.a.moveRight(C.cursorConfig,C,b.viewState,P,V);g&&V===1&&j.position.lineNumber!==b.viewState.position.lineNumber&&C.coordinatesConverter.convertViewPositionToModelPosition(j.position).lineNumber===b.modelState.position.lineNumber&&(j=H.a.moveRight(C.cursorConfig,C,j,P,1)),l[T]=O.d.fromViewState(j)}return l}static _moveHalfLineRight(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round(C.getLineContent(N).length/2);V[k]=O.d.fromViewState(H.a.moveRight(C.cursorConfig,C,T.viewState,P,b))}return V}static _moveDownByViewLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=O.d.fromViewState(H.a.moveDown(C.cursorConfig,C,N.viewState,P,V))}return k}static _moveDownByModelLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=O.d.fromModelState(H.a.moveDown(C.cursorConfig,C.model,N.modelState,P,V))}return k}static _moveUpByViewLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=O.d.fromViewState(H.a.moveUp(C.cursorConfig,C,N.viewState,P,V))}return k}static _moveUpByModelLines(C,S,P,V){let k=[];for(let l=0,T=S.length;l<T;l++){let N=S[l];k[l]=O.d.fromModelState(H.a.moveUp(C.cursorConfig,C.model,N.modelState,P,V))}return k}static _moveToViewPosition(C,S,P,V,k){return O.d.fromViewState(S.viewState.move(P,V,k,0))}static _moveToModelPosition(C,S,P,V,k){return O.d.fromModelState(S.modelState.move(P,V,k,0))}static _moveToViewMinColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineMinColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewFirstNonWhitespaceColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineFirstNonWhitespaceColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewCenterColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=Math.round((C.getLineMaxColumn(N)+C.getLineMinColumn(N))/2);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewMaxColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineMaxColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}static _moveToViewLastNonWhitespaceColumn(C,S,P){let V=[];for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T.viewState.position.lineNumber,b=C.getLineLastNonWhitespaceColumn(N);V[k]=this._moveToViewPosition(C,T,P,N,b)}return V}}(function(y){y.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument: * 'to': A mandatory logical position value providing where to move the cursor. \`\`\` 'left', 'right', 'up', 'down' @@ -565,22 +565,22 @@ In order to let ::-webkit-progress-value take effect, -webkit-appearance needs t \`\`\` * 'value': Number of units to move. Default is '1'. * 'select': If 'true' makes the selection. Default is 'false'. - `,constraint:function(C){if(!f.i(C))return!1;let S=C;return!!f.j(S.to)&&!(!f.k(S.select)&&!f.f(S.select))&&!(!f.k(S.by)&&!f.j(S.by))&&!(!f.k(S.value)&&!f.h(S.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},y.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},y.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},y.parse=function(C){if(!C.to)return null;let S;switch(C.to){case y.RawDirection.Left:S=0;break;case y.RawDirection.Right:S=1;break;case y.RawDirection.Up:S=2;break;case y.RawDirection.Down:S=3;break;case y.RawDirection.WrappedLineStart:S=4;break;case y.RawDirection.WrappedLineFirstNonWhitespaceCharacter:S=5;break;case y.RawDirection.WrappedLineColumnCenter:S=6;break;case y.RawDirection.WrappedLineEnd:S=7;break;case y.RawDirection.WrappedLineLastNonWhitespaceCharacter:S=8;break;case y.RawDirection.ViewPortTop:S=9;break;case y.RawDirection.ViewPortBottom:S=11;break;case y.RawDirection.ViewPortCenter:S=10;break;case y.RawDirection.ViewPortIfOutside:S=12;break;default:return null}let P=0;switch(C.by){case y.RawUnit.Line:P=1;break;case y.RawUnit.WrappedLine:P=2;break;case y.RawUnit.Character:P=3;break;case y.RawUnit.HalfLine:P=4}return{direction:S,unit:P,select:!!C.select,value:C.value||1}}})(h||(h={}))},function(Ie,w){var o,h,f=Ie.exports={};function D(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}function E(k){if(o===setTimeout)return setTimeout(k,0);if((o===D||!o)&&setTimeout)return o=setTimeout,setTimeout(k,0);try{return o(k,0)}catch(l){try{return o.call(null,k,0)}catch(T){return o.call(this,k,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:D}catch(k){o=D}try{h=typeof clearTimeout=="function"?clearTimeout:H}catch(k){h=H}})();var ge,W=[],Q=!1,y=-1;function C(){Q&&ge&&(Q=!1,ge.length?W=ge.concat(W):y=-1,W.length&&S())}function S(){if(!Q){var k=E(C);Q=!0;for(var l=W.length;l;){for(ge=W,W=[];++y<l;)ge&&ge[y].run();y=-1,l=W.length}ge=null,Q=!1,function(T){if(h===clearTimeout)return clearTimeout(T);if((h===H||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(T);try{h(T)}catch(N){try{return h.call(null,T)}catch(b){return h.call(this,T)}}}(k)}}function P(k,l){this.fun=k,this.array=l}function V(){}f.nextTick=function(k){var l=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)l[T-1]=arguments[T];W.push(new P(k,l)),W.length!==1||Q||E(S)},P.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=V,f.addListener=V,f.once=V,f.off=V,f.removeListener=V,f.removeAllListeners=V,f.emit=V,f.prependListener=V,f.prependOnceListener=V,f.listeners=function(k){return[]},f.binding=function(k){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(k){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return P}),o.d(w,"a",function(){return k});var h=o(34),f=o(6),D=o(2),H=o(11);class E{constructor(T,N){this.chr=T,this.type=N,this.width=0}fulfill(T){this.width=T}}class ge{constructor(T,N){this._bareFontInfo=T,this._requests=N,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let T=document.createElement("div");T.style.position="absolute",T.style.top="-50000px",T.style.width="50000px";let N=document.createElement("div");N.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),N.style.fontWeight=this._bareFontInfo.fontWeight,N.style.fontSize=this._bareFontInfo.fontSize+"px",N.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,N.style.lineHeight=this._bareFontInfo.lineHeight+"px",N.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",T.appendChild(N);let b=document.createElement("div");b.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),b.style.fontWeight="bold",b.style.fontSize=this._bareFontInfo.fontSize+"px",b.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,b.style.lineHeight=this._bareFontInfo.lineHeight+"px",b.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",T.appendChild(b);let g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight=this._bareFontInfo.fontWeight,g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",g.style.fontStyle="italic",T.appendChild(g);let j=[];for(let ie of this._requests){let U;ie.type===0&&(U=N),ie.type===2&&(U=b),ie.type===1&&(U=g),U.appendChild(document.createElement("br"));let q=document.createElement("span");ge._render(q,ie),U.appendChild(q),j.push(q)}this._container=T,this._testElements=j}static _render(T,N){if(N.chr===" "){let b="\xA0";for(let g=0;g<8;g++)b+=b;T.innerText=b}else{let b=N.chr;for(let g=0;g<8;g++)b+=b;T.textContent=b}}_readFromDomElements(){for(let T=0,N=this._requests.length;T<N;T++){let b=this._requests[T],g=this._testElements[T];b.fulfill(g.offsetWidth/256)}}}var W=o(190),Q=o(161),y=o(26),C=o(160);class S{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(T){let N=T.getId();return!!this._values[N]}get(T){let N=T.getId();return this._values[N]}put(T,N){let b=T.getId();this._keys[b]=T,this._values[b]=N}remove(T){let N=T.getId();delete this._keys[N],delete this._values[N]}getValues(){return Object.keys(this._keys).map(T=>this._values[T])}}function P(){V.INSTANCE.clearCache()}class V extends D.a{constructor(){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._cache=new S,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new S,this._onDidChange.fire()}_writeToCache(T,N){this._cache.put(T,N),N.isTrusted||this._evictUntrustedReadingsTimeout!==-1||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let T=this._cache.getValues(),N=!1;for(let b=0,g=T.length;b<g;b++){let j=T[b];j.isTrusted||(N=!0,this._cache.remove(j))}N&&this._onDidChange.fire()}readConfiguration(T){if(!this._cache.has(T)){let N=V._actualReadConfiguration(T);(N.typicalHalfwidthCharacterWidth<=2||N.typicalFullwidthCharacterWidth<=2||N.spaceWidth<=2||N.maxDigitWidth<=2)&&(N=new C.b({zoomLevel:h.d(),fontFamily:N.fontFamily,fontWeight:N.fontWeight,fontSize:N.fontSize,fontFeatureSettings:N.fontFeatureSettings,lineHeight:N.lineHeight,letterSpacing:N.letterSpacing,isMonospace:N.isMonospace,typicalHalfwidthCharacterWidth:Math.max(N.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(N.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:N.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(N.spaceWidth,5),middotWidth:Math.max(N.middotWidth,5),wsmiddotWidth:Math.max(N.wsmiddotWidth,5),maxDigitWidth:Math.max(N.maxDigitWidth,5)},!1)),this._writeToCache(T,N)}return this._cache.get(T)}static createRequest(T,N,b,g){let j=new E(T,N);return b.push(j),g&&g.push(j),j}static _actualReadConfiguration(T){let N=[],b=[],g=this.createRequest("n",0,N,b),j=this.createRequest("\uFF4D",0,N,null),ie=this.createRequest(" ",0,N,b),U=this.createRequest("0",0,N,b),q=this.createRequest("1",0,N,b),B=this.createRequest("2",0,N,b),se=this.createRequest("3",0,N,b),ke=this.createRequest("4",0,N,b),xe=this.createRequest("5",0,N,b),Y=this.createRequest("6",0,N,b),Z=this.createRequest("7",0,N,b),te=this.createRequest("8",0,N,b),he=this.createRequest("9",0,N,b),Ce=this.createRequest("\u2192",0,N,b),Ae=this.createRequest("\uFFEB",0,N,null),L=this.createRequest("\xB7",0,N,b),nt=this.createRequest(String.fromCharCode(11825),0,N,null);this.createRequest("|",0,N,b),this.createRequest("/",0,N,b),this.createRequest("-",0,N,b),this.createRequest("_",0,N,b),this.createRequest("i",0,N,b),this.createRequest("l",0,N,b),this.createRequest("m",0,N,b),this.createRequest("|",1,N,b),this.createRequest("_",1,N,b),this.createRequest("i",1,N,b),this.createRequest("l",1,N,b),this.createRequest("m",1,N,b),this.createRequest("n",1,N,b),this.createRequest("|",2,N,b),this.createRequest("_",2,N,b),this.createRequest("i",2,N,b),this.createRequest("l",2,N,b),this.createRequest("m",2,N,b),this.createRequest("n",2,N,b),function(G,z){new ge(G,z).read()}(T,N);let ct=Math.max(U.width,q.width,B.width,se.width,ke.width,xe.width,Y.width,Z.width,te.width,he.width),Ye=T.fontFeatureSettings===y.e.OFF,ht=b[0].width;for(let G=1,z=b.length;Ye&&G<z;G++){let J=ht-b[G].width;if(J<-.001||J>.001){Ye=!1;break}}let fe=!0;Ye&&Ae.width!==ht&&(fe=!1),Ae.width>Ce.width&&(fe=!1);let $=h.b()>2e3;return new C.b({zoomLevel:h.d(),fontFamily:T.fontFamily,fontWeight:T.fontWeight,fontSize:T.fontSize,fontFeatureSettings:T.fontFeatureSettings,lineHeight:T.lineHeight,letterSpacing:T.letterSpacing,isMonospace:Ye,typicalHalfwidthCharacterWidth:g.width,typicalFullwidthCharacterWidth:j.width,canUseHalfwidthRightwardsArrow:fe,spaceWidth:ie.width,middotWidth:L.width,wsmiddotWidth:nt.width,maxDigitWidth:ct},$)}}V.INSTANCE=new V;class k extends Q.a{constructor(T,N,b=null,g){super(T,N),this.accessibilityService=g,this._elementSizeObserver=this._register(new W.a(b,N.dimension,()=>this._onReferenceDomElementSizeChanged())),this._register(V.INSTANCE.onDidChange(()=>this._onCSSBasedConfigurationChanged())),this._validatedOptions.get(9)&&this._elementSizeObserver.startObserving(),this._register(h.n(j=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(T,N){T.style.fontFamily=N.getMassagedFontFamily(),T.style.fontWeight=N.fontWeight,T.style.fontSize=N.fontSize+"px",T.style.fontFeatureSettings=N.fontFeatureSettings,T.style.lineHeight=N.lineHeight+"px",T.style.letterSpacing=N.letterSpacing+"px"}static applyFontInfo(T,N){T.setFontFamily(N.getMassagedFontFamily()),T.setFontWeight(N.fontWeight),T.setFontSize(N.fontSize),T.setFontFeatureSettings(N.fontFeatureSettings),T.setLineHeight(N.lineHeight),T.setLetterSpacing(N.letterSpacing)}_onReferenceDomElementSizeChanged(){this._recomputeOptions()}_onCSSBasedConfigurationChanged(){this._recomputeOptions()}observeReferenceElement(T){this._elementSizeObserver.observe(T)}dispose(){super.dispose()}_getExtraEditorClassName(){let T="";return h.j||h.m||(T+="no-user-select "),H.f&&(T+="mac "),T}_getEnvConfiguration(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:h.l||h.h,pixelRatio:h.a(),zoomLevel:h.d(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(T){return V.INSTANCE.readConfiguration(T)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return V}),o.d(w,"b",function(){return k}),o.d(w,"d",function(){return l}),o.d(w,"c",function(){return T});var h=o(8),f=o(3),D=o(25),H=o(2),E=o(4),ge=o(10),W=o(53),Q=o(18),y=o(115);let C=Object(Q.c)("IEditorCancelService"),S=new ge.c("cancellableOperation",!1);Object(y.b)(C,class{constructor(){this._tokens=new WeakMap}add(N,b){let g,j=this._tokens.get(N);return j||(j=N.invokeWithinContext(ie=>({key:S.bindTo(ie.get(ge.b)),tokens:new W.a})),this._tokens.set(N,j)),j.key.set(!0),g=j.tokens.push(b),()=>{g&&(g(),j.key.set(!j.tokens.isEmpty()),g=void 0)}}cancel(N){let b=this._tokens.get(N);if(!b)return;let g=b.tokens.pop();g&&(g.cancel(),b.key.set(!b.tokens.isEmpty()))}},!0);class P extends D.b{constructor(b,g){super(g),this.editor=b,this._unregister=b.invokeWithinContext(j=>j.get(C).add(b,this))}dispose(){this._unregister(),super.dispose()}}Object(E.l)(new class extends E.c{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:S})}runEditorCommand(N,b){N.get(C).cancel(b)}});class V{constructor(b,g){if(this.flags=g,(1&this.flags)!=0){let j=b.getModel();this.modelVersionId=j?h.x("{0}#{1}",j.uri.toString(),j.getVersionId()):null}else this.modelVersionId=null;(4&this.flags)!=0?this.position=b.getPosition():this.position=null,(2&this.flags)!=0?this.selection=b.getSelection():this.selection=null,(8&this.flags)!=0?(this.scrollLeft=b.getScrollLeft(),this.scrollTop=b.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(b){if(!(b instanceof V))return!1;let g=b;return this.modelVersionId===g.modelVersionId&&this.scrollLeft===g.scrollLeft&&this.scrollTop===g.scrollTop&&!(!this.position&&g.position||this.position&&!g.position||this.position&&g.position&&!this.position.equals(g.position))&&!(!this.selection&&g.selection||this.selection&&!g.selection||this.selection&&g.selection&&!this.selection.equalsRange(g.selection))}validate(b){return this._equals(new V(b,this.flags))}}class k extends P{constructor(b,g,j,ie){super(b,ie),this.editor=b,this._listener=new H.b,4&g&&this._listener.add(b.onDidChangeCursorPosition(U=>{j&&f.a.containsPosition(j,U.position)||this.cancel()})),2&g&&this._listener.add(b.onDidChangeCursorSelection(U=>{j&&f.a.containsRange(j,U.selection)||this.cancel()})),8&g&&this._listener.add(b.onDidScrollChange(U=>this.cancel())),1&g&&(this._listener.add(b.onDidChangeModel(U=>this.cancel())),this._listener.add(b.onDidChangeModelContent(U=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class l extends D.b{constructor(b,g){super(g),this._listener=b.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class T{constructor(b,g,j){this._visiblePosition=b,this._visiblePositionScrollDelta=g,this._cursorPosition=j}static capture(b){let g=null,j=0;if(b.getScrollTop()!==0){let ie=b.getVisibleRanges();if(ie.length>0){g=ie[0].getStartPosition();let U=b.getTopForPosition(g.lineNumber,g.column);j=b.getScrollTop()-U}}return new T(g,j,b.getPosition())}restore(b){if(this._visiblePosition){let g=b.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);b.setScrollTop(g+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(b){let g=b.getPosition();if(!this._cursorPosition||!g)return;let j=b.getTopForLineNumber(g.lineNumber)-b.getTopForLineNumber(this._cursorPosition.lineNumber);b.setScrollTop(b.getScrollTop()+j)}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"c",function(){return E}),o.d(w,"a",function(){return y});var h=o(8);function f(C){return D(C,0)}function D(C,S){switch(typeof C){case"object":return C===null?H(349,S):Array.isArray(C)?(P=C,V=H(104579,V=S),P.reduce((k,l)=>D(l,k),V)):function(k,l){return l=H(181387,l),Object.keys(k).sort().reduce((T,N)=>(T=E(N,T),D(k[N],T)),l)}(C,S);case"string":return E(C,S);case"boolean":return function(k,l){return H(k?433:863,l)}(C,S);case"number":return H(C,S);case"undefined":return H(937,S);default:return H(617,S)}var P,V}function H(C,S){return(S<<5)-S+C|0}function E(C,S){S=H(149417,S);for(let P=0,V=C.length;P<V;P++)S=H(C.charCodeAt(P),S);return S}function ge(C,S,P=32){let V=P-S;return(C<<S|(~((1<<V)-1)&C)>>>V)>>>0}function W(C,S=0,P=C.byteLength,V=0){for(let k=0;k<P;k++)C[S+k]=V}function Q(C,S=32){return function(P,V,k="0"){for(;P.length<V;)P=k+P;return P}((C>>>0).toString(16),S/4)}class y{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(S){let P=S.length;if(P===0)return;let V=this._buff,k,l,T=this._buffLen,N=this._leftoverHighSurrogate;for(N!==0?(k=N,l=-1,N=0):(k=S.charCodeAt(0),l=0);;){let b=k;if(h.F(k)){if(!(l+1<P)){N=k;break}{let g=S.charCodeAt(l+1);h.G(g)?(l++,b=h.j(k,g)):b=65533}}else h.G(k)&&(b=65533);if(T=this._push(V,T,b),l++,!(l<P))break;k=S.charCodeAt(l)}this._buffLen=T,this._leftoverHighSurrogate=N}_push(S,P,V){return V<128?S[P++]=V:V<2048?(S[P++]=192|(1984&V)>>>6,S[P++]=128|(63&V)>>>0):V<65536?(S[P++]=224|(61440&V)>>>12,S[P++]=128|(4032&V)>>>6,S[P++]=128|(63&V)>>>0):(S[P++]=240|(1835008&V)>>>18,S[P++]=128|(258048&V)>>>12,S[P++]=128|(4032&V)>>>6,S[P++]=128|(63&V)>>>0),P>=64&&(this._step(),P-=64,this._totalLen+=64,S[0]=S[64],S[1]=S[65],S[2]=S[66]),P}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Q(this._h0)+Q(this._h1)+Q(this._h2)+Q(this._h3)+Q(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,W(this._buff,this._buffLen),this._buffLen>56&&(this._step(),W(this._buff));let S=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(S/4294967296),!1),this._buffDV.setUint32(60,S%4294967296,!1),this._step()}_step(){let S=y._bigBlock32,P=this._buffDV;for(let ie=0;ie<64;ie+=4)S.setUint32(ie,P.getUint32(ie,!1),!1);for(let ie=64;ie<320;ie+=4)S.setUint32(ie,ge(S.getUint32(ie-12,!1)^S.getUint32(ie-32,!1)^S.getUint32(ie-56,!1)^S.getUint32(ie-64,!1),1),!1);let V,k,l,T=this._h0,N=this._h1,b=this._h2,g=this._h3,j=this._h4;for(let ie=0;ie<80;ie++)ie<20?(V=N&b|~N&g,k=1518500249):ie<40?(V=N^b^g,k=1859775393):ie<60?(V=N&b|N&g|b&g,k=2400959708):(V=N^b^g,k=3395469782),l=ge(T,5)+V+j+k+S.getUint32(4*ie,!1)&4294967295,j=g,g=b,b=ge(N,30),N=T,T=l;this._h0=this._h0+T&4294967295,this._h1=this._h1+N&4294967295,this._h2=this._h2+b&4294967295,this._h3=this._h3+g&4294967295,this._h4=this._h4+j&4294967295}}y._bigBlock32=new DataView(new ArrayBuffer(320))},function(Ie,w,o){"use strict";o.d(w,"c",function(){return D}),o.d(w,"b",function(){return H}),o.d(w,"a",function(){return E}),o.d(w,"d",function(){return ge}),o.d(w,"e",function(){return W});var h=o(77),f=o(12);let D=new class{clone(){return this}equals(Q){return this===Q}},H="vs.editor.nullMode",E=new f.r(H,0);function ge(Q,y,C,S){return new h.b([new h.a(S,"",Q)],C)}function W(Q,y,C,S){let P=new Uint32Array(2);return P[0]=S,P[1]=(16384|Q<<0|2<<23)>>>0,new h.c(P,C===null?D:C)}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return E}),o.d(w,"c",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"d",function(){return y}),o.d(w,"e",function(){return S});var h=o(8),f=o(132),D=o(155);class H{constructor(k,l,T){this.endIndex=k,this.type=l,this.metadata=T}isWhitespace(){return!!(1&this.metadata)}}class E{constructor(k,l){this.startOffset=k,this.endOffset=l}equals(k){return this.startOffset===k.startOffset&&this.endOffset===k.endOffset}}class ge{constructor(k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y,Z,te,he,Ce){this.useMonospaceOptimizations=k,this.canUseHalfwidthRightwardsArrow=l,this.lineContent=T,this.continuesWithWrappedLine=N,this.isBasicASCII=b,this.containsRTL=g,this.fauxIndentLength=j,this.lineTokens=ie,this.lineDecorations=U,this.tabSize=q,this.startVisibleColumn=B,this.spaceWidth=se,this.stopRenderingLineAfter=Y,this.renderWhitespace=Z==="all"?4:Z==="boundary"?1:Z==="selection"?2:Z==="trailing"?3:0,this.renderControlCharacters=te,this.fontLigatures=he,this.selectionsOnLine=Ce&&Ce.sort((Ae,L)=>Ae.startOffset<L.startOffset?-1:1),Math.abs(xe-se)<Math.abs(ke-se)?(this.renderSpaceWidth=xe,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=ke,this.renderSpaceCharCode=183)}sameSelection(k){if(this.selectionsOnLine===null)return k===null;if(k===null||k.length!==this.selectionsOnLine.length)return!1;for(let l=0;l<this.selectionsOnLine.length;l++)if(!this.selectionsOnLine[l].equals(k[l]))return!1;return!0}equals(k){return this.useMonospaceOptimizations===k.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===k.canUseHalfwidthRightwardsArrow&&this.lineContent===k.lineContent&&this.continuesWithWrappedLine===k.continuesWithWrappedLine&&this.isBasicASCII===k.isBasicASCII&&this.containsRTL===k.containsRTL&&this.fauxIndentLength===k.fauxIndentLength&&this.tabSize===k.tabSize&&this.startVisibleColumn===k.startVisibleColumn&&this.spaceWidth===k.spaceWidth&&this.renderSpaceWidth===k.renderSpaceWidth&&this.renderSpaceCharCode===k.renderSpaceCharCode&&this.stopRenderingLineAfter===k.stopRenderingLineAfter&&this.renderWhitespace===k.renderWhitespace&&this.renderControlCharacters===k.renderControlCharacters&&this.fontLigatures===k.fontLigatures&&D.a.equalsArr(this.lineDecorations,k.lineDecorations)&&this.lineTokens.equals(k.lineTokens)&&this.sameSelection(k.selectionsOnLine)}}class W{constructor(k,l){this.length=k,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(k){return(4294901760&k)>>>16}static getCharIndex(k){return(65535&k)>>>0}setPartData(k,l,T,N){let b=(l<<16|T<<0)>>>0;this._data[k]=b,this._absoluteOffsets[k]=N+T}getAbsoluteOffsets(){return this._absoluteOffsets}charOffsetToPartData(k){return this.length===0?0:k<0?this._data[0]:k>=this.length?this._data[this.length-1]:this._data[k]}partDataToCharOffset(k,l,T){if(this.length===0)return 0;let N=(k<<16|T<<0)>>>0,b=0,g=this.length-1;for(;b+1<g;){let se=b+g>>>1,ke=this._data[se];if(ke===N)return se;ke>N?g=se:b=se}if(b===g)return b;let j=this._data[b],ie=this._data[g];if(j===N)return b;if(ie===N)return g;let U,q=W.getPartIndex(j),B=W.getCharIndex(j);return U=q!==W.getPartIndex(ie)?l:W.getCharIndex(ie),T-B<=U-T?b:g}}class Q{constructor(k,l,T){this.characterMapping=k,this.containsRTL=l,this.containsForeignElements=T}}function y(V,k){if(V.lineContent.length===0){let l=0,T="<span><span></span></span>";if(V.lineDecorations.length>0){let N=[],b=[];for(let g=0,j=V.lineDecorations.length;g<j;g++){let ie=V.lineDecorations[g];ie.type===1&&(N.push(V.lineDecorations[g].className),l|=1),ie.type===2&&(b.push(V.lineDecorations[g].className),l|=2)}l!==0&&(T=`<span>${N.length>0?`<span class="${N.join(" ")}"></span>`:""}${b.length>0?`<span class="${b.join(" ")}"></span>`:""}</span>`)}return k.appendASCIIString(T),new Q(new W(0,0),!1,l)}return function(l,T){let N=l.fontIsMonospace,b=l.canUseHalfwidthRightwardsArrow,g=l.containsForeignElements,j=l.lineContent,ie=l.len,U=l.isOverflowing,q=l.parts,B=l.fauxIndentLength,se=l.tabSize,ke=l.startVisibleColumn,xe=l.containsRTL,Y=l.spaceWidth,Z=l.renderSpaceCharCode,te=l.renderWhitespace,he=l.renderControlCharacters,Ce=new W(ie+1,q.length),Ae=0,L=ke,nt=0,ct=0,Ye=0,ht=0;xe?T.appendASCIIString('<span dir="ltr">'):T.appendASCIIString("<span>");for(let fe=0,$=q.length;fe<$;fe++){ht+=Ye;let G=q[fe],z=G.endIndex,J=G.type,Se=te!==0&&G.isWhitespace(),A=Se&&!N&&(J==="mtkw"||!g),ee=Ae===z&&G.metadata===4;if(nt=0,T.appendASCIIString('<span class="'),T.appendASCIIString(A?"mtkz":J),T.appendASCII(34),Se){let de=0;{let Oe=Ae,$e=L;for(;Oe<z;Oe++){let pt=0|(j.charCodeAt(Oe)===9?se-$e%se:1);de+=pt,Oe>=B&&($e+=pt)}}for(A&&(T.appendASCIIString(' style="width:'),T.appendASCIIString(String(Y*de)),T.appendASCIIString('px"')),T.appendASCII(62);Ae<z;Ae++){Ce.setPartData(Ae,fe-ct,nt,ht),ct=0;let Oe;if(j.charCodeAt(Ae)===9){Oe=se-L%se|0,!b||Oe>1?T.write1(8594):T.write1(65515);for(let $e=2;$e<=Oe;$e++)T.write1(160)}else Oe=1,T.write1(Z);nt+=Oe,Ae>=B&&(L+=Oe)}Ye=de}else{let de=0;for(T.appendASCII(62);Ae<z;Ae++){Ce.setPartData(Ae,fe-ct,nt,ht),ct=0;let Oe=j.charCodeAt(Ae),$e=1,pt=1;switch(Oe){case 9:$e=se-L%se,pt=$e;for(let it=1;it<=$e;it++)T.write1(160);break;case 32:T.write1(160);break;case 60:T.appendASCIIString("<");break;case 62:T.appendASCIIString(">");break;case 38:T.appendASCIIString("&");break;case 0:T.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:T.write1(65533);break;default:h.E(Oe)&&pt++,he&&Oe<32?T.write1(9216+Oe):T.write1(Oe)}nt+=$e,de+=$e,Ae>=B&&(L+=pt)}Ye=de}ee?ct++:ct=0,T.appendASCIIString("</span>")}return Ce.setPartData(ie,q.length-1,nt,ht),U&&T.appendASCIIString("<span>…</span>"),T.appendASCIIString("</span>"),new Q(Ce,xe,g)}(function(l){let T=l.lineContent,N,b;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter<T.length?(N=!0,b=l.stopRenderingLineAfter):(N=!1,b=T.length);let g=function(ie,U,q){let B=[],se=0;U>0&&(B[se++]=new H(U,"",0));for(let ke=0,xe=ie.getCount();ke<xe;ke++){let Y=ie.getEndOffset(ke);if(Y<=U)continue;let Z=ie.getClassName(ke);if(Y>=q){B[se++]=new H(q,Z,0);break}B[se++]=new H(Y,Z,0)}return B}(l.lineTokens,l.fauxIndentLength,b);(l.renderWhitespace===4||l.renderWhitespace===1||l.renderWhitespace===2&&l.selectionsOnLine||l.renderWhitespace===3)&&(g=function(ie,U,q,B){let se=ie.continuesWithWrappedLine,ke=ie.fauxIndentLength,xe=ie.tabSize,Y=ie.startVisibleColumn,Z=ie.useMonospaceOptimizations,te=ie.selectionsOnLine,he=ie.renderWhitespace===1,Ce=ie.renderWhitespace===3,Ae=ie.renderSpaceWidth!==ie.spaceWidth,L=[],nt=0,ct=0,Ye=B[ct].type,ht=B[ct].endIndex,fe=B.length,$,G=!1,z=h.w(U);z===-1?(G=!0,z=q,$=q):$=h.J(U);let J=!1,Se=0,A=te&&te[Se],ee=Y%xe;for(let Oe=ke;Oe<q;Oe++){let $e=U.charCodeAt(Oe),pt;if(A&&Oe>=A.endOffset&&(Se++,A=te&&te[Se]),Oe<z||Oe>$)pt=!0;else if($e===9)pt=!0;else if($e===32)if(he)if(J)pt=!0;else{let it=Oe+1<q?U.charCodeAt(Oe+1):0;pt=it===32||it===9}else pt=!0;else pt=!1;if(pt&&te&&(pt=!!A&&A.startOffset<=Oe&&A.endOffset>Oe),pt&&Ce&&(pt=G||Oe>$),J){if(!pt||!Z&&ee>=xe){if(Ae)for(let it=(nt>0?L[nt-1].endIndex:ke)+1;it<=Oe;it++)L[nt++]=new H(it,"mtkw",1);else L[nt++]=new H(Oe,"mtkw",1);ee%=xe}}else(Oe===ht||pt&&Oe>ke)&&(L[nt++]=new H(Oe,Ye,0),ee%=xe);for($e===9?ee=xe:h.E($e)?ee+=2:ee++,J=pt;Oe===ht;)ct++,ct<fe&&(Ye=B[ct].type,ht=B[ct].endIndex)}let de=!1;if(J)if(se&&he){let Oe=q>0?U.charCodeAt(q-1):0,$e=q>1?U.charCodeAt(q-2):0;Oe===32&&$e!==32&&$e!==9||(de=!0)}else de=!0;if(de)if(Ae)for(let Oe=(nt>0?L[nt-1].endIndex:ke)+1;Oe<=q;Oe++)L[nt++]=new H(Oe,"mtkw",1);else L[nt++]=new H(q,"mtkw",1);else L[nt++]=new H(q,Ye,0);return L}(l,T,b,g));let j=0;if(l.lineDecorations.length>0){for(let ie=0,U=l.lineDecorations.length;ie<U;ie++){let q=l.lineDecorations[ie];q.type===3||q.type===1?j|=1:q.type===2&&(j|=2)}g=function(ie,U,q,B){B.sort(D.a.compare);let se=D.b.normalize(ie,B),ke=se.length,xe=0,Y=[],Z=0,te=0;for(let Ce=0,Ae=q.length;Ce<Ae;Ce++){let L=q[Ce],nt=L.endIndex,ct=L.type,Ye=L.metadata;for(;xe<ke&&se[xe].startOffset<nt;){let ht=se[xe];if(ht.startOffset>te&&(te=ht.startOffset,Y[Z++]=new H(te,ct,Ye)),!(ht.endOffset+1<=nt)){te=nt,Y[Z++]=new H(te,ct+" "+ht.className,Ye|ht.metadata);break}te=ht.endOffset+1,Y[Z++]=new H(te,ct+" "+ht.className,Ye|ht.metadata),xe++}nt>te&&(te=nt,Y[Z++]=new H(te,ct,Ye))}let he=q[q.length-1].endIndex;if(xe<ke&&se[xe].startOffset===he){let Ce=[],Ae=0;for(;xe<ke&&se[xe].startOffset===he;)Ce.push(se[xe].className),Ae|=se[xe].metadata,xe++;Y[Z++]=new H(te,Ce.join(" "),Ae)}return Y}(T,0,g,l.lineDecorations)}return l.containsRTL||(g=function(ie,U,q){let B=0,se=[],ke=0;if(q)for(let xe=0,Y=U.length;xe<Y;xe++){let Z=U[xe],te=Z.endIndex;if(B+50<te){let he=Z.type,Ce=Z.metadata,Ae=-1,L=B;for(let nt=B;nt<te;nt++)ie.charCodeAt(nt)===32&&(Ae=nt),Ae!==-1&&nt-L>=50&&(se[ke++]=new H(Ae+1,he,Ce),L=Ae+1,Ae=-1);L!==te&&(se[ke++]=new H(te,he,Ce))}else se[ke++]=Z;B=te}else for(let xe=0,Y=U.length;xe<Y;xe++){let Z=U[xe],te=Z.endIndex,he=te-B;if(he>50){let Ce=Z.type,Ae=Z.metadata,L=Math.ceil(he/50);for(let nt=1;nt<L;nt++){let ct=B+50*nt;se[ke++]=new H(ct,Ce,Ae)}se[ke++]=new H(te,Ce,Ae)}else se[ke++]=Z;B=te}return se}(T,g,!l.isBasicASCII||l.fontLigatures)),new P(l.useMonospaceOptimizations,l.canUseHalfwidthRightwardsArrow,T,b,N,g,j,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.renderSpaceCharCode,l.renderWhitespace,l.renderControlCharacters)}(V),k)}class C{constructor(k,l,T,N){this.characterMapping=k,this.html=l,this.containsRTL=T,this.containsForeignElements=N}}function S(V){let k=Object(f.a)(1e4),l=y(V,k);return new C(l.characterMapping,k.build(),l.containsRTL,l.containsForeignElements)}class P{constructor(k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y){this.fontIsMonospace=k,this.canUseHalfwidthRightwardsArrow=l,this.lineContent=T,this.len=N,this.isOverflowing=b,this.parts=g,this.containsForeignElements=j,this.fauxIndentLength=ie,this.tabSize=U,this.startVisibleColumn=q,this.containsRTL=B,this.spaceWidth=se,this.renderSpaceCharCode=ke,this.renderWhitespace=xe,this.renderControlCharacters=Y}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge});var h=o(43),f=o(11),D=o(27),H=o(56);class E{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(y){if(f.a===1){if(y&&y.win)return y.win}else if(f.a===2){if(y&&y.mac)return y.mac}else if(y&&y.linux)return y.linux;return y}registerKeybindingRule(y){let C=E.bindToCurrentPlatform(y);if(C&&C.primary){let S=Object(h.f)(C.primary,f.a);S&&this._registerDefaultKeybinding(S,y.id,y.args,y.weight,0,y.when)}if(C&&Array.isArray(C.secondary))for(let S=0,P=C.secondary.length;S<P;S++){let V=C.secondary[S],k=Object(h.f)(V,f.a);k&&this._registerDefaultKeybinding(k,y.id,y.args,y.weight,-S-1,y.when)}}registerCommandAndKeybindingRule(y){this.registerKeybindingRule(y),D.a.registerCommand(y)}static _mightProduceChar(y){return y>=21&&y<=30||y>=31&&y<=56||y===80||y===81||y===82||y===83||y===84||y===85||y===86||y===110||y===111||y===87||y===88||y===89||y===90||y===91||y===92}_assertNoCtrlAlt(y,C){y.ctrlKey&&y.altKey&&!y.metaKey&&E._mightProduceChar(y.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",y," for ",C)}_registerDefaultKeybinding(y,C,S,P,V,k){f.a===1&&this._assertNoCtrlAlt(y.parts[0],C),this._coreKeybindings.push({keybinding:y,command:C,commandArgs:S,when:k,weight1:P,weight2:V,extensionId:null}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(W)),this._cachedMergedKeybindings.slice(0)}}let ge=new E;function W(Q,y){return Q.weight1!==y.weight1?Q.weight1-y.weight1:Q.command<y.command?-1:Q.command>y.command?1:Q.weight2-y.weight2}H.a.add("platform.keybindingsRegistry",ge)},function(Ie,w,o){"use strict";o.d(w,"d",function(){return f}),o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E}),o.d(w,"e",function(){return ge}),o.d(w,"c",function(){return Q});var h=o(5);function f(y,C){let S=Object.create(null);for(let P in C){let V=C[P];V&&(S[P]=Object(h.hc)(V,y))}return S}function D(y,C,S){function P(V){let k=f(y.getColorTheme(),C);typeof S=="function"?S(k):S.style(k)}return P(y.getColorTheme()),y.onDidColorThemeChange(P)}function H(y,C,S){return D(C,{badgeBackground:S&&S.badgeBackground||h.c,badgeForeground:S&&S.badgeForeground||h.d,badgeBorder:h.h},y)}function E(y,C,S){return D(C,Object.assign(Object.assign({},ge),S||{}),y)}let ge={listFocusBackground:h.xb,listFocusForeground:h.yb,listActiveSelectionBackground:Object(h.i)(h.rb,.1),listActiveSelectionForeground:h.sb,listFocusAndSelectionBackground:h.rb,listFocusAndSelectionForeground:h.sb,listInactiveSelectionBackground:h.Db,listInactiveSelectionForeground:h.Eb,listInactiveFocusBackground:h.Cb,listHoverBackground:h.Ab,listHoverForeground:h.Bb,listDropBackground:h.tb,listFocusOutline:h.b,listSelectionOutline:h.b,listHoverOutline:h.b,listFilterWidgetBackground:h.ub,listFilterWidgetOutline:h.wb,listFilterWidgetNoMatchesOutline:h.vb,listMatchesShadow:h.uc,treeIndentGuidesStroke:h.tc},W={shadowColor:h.uc,borderColor:h.Gb,foregroundColor:h.Hb,backgroundColor:h.Fb,selectionForegroundColor:h.Kb,selectionBackgroundColor:h.Ib,selectionBorderColor:h.Jb,separatorColor:h.Lb};function Q(y,C,S){return D(C,Object.assign(Object.assign({},W),S),y)}},function(Ie,w,o){"use strict";o.d(w,"c",function(){return ge}),o.d(w,"a",function(){return Q}),o.d(w,"b",function(){return y});var h=o(13),f=o(2),D=o(11),H=o(14);let E=!1;function ge(C){D.h&&(E||(E=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(C.message))}class W{constructor(S){this._workerId=-1,this._handler=S,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(S){this._workerId=S}sendMessage(S,P){let V=String(++this._lastSentReq);return new Promise((k,l)=>{this._pendingReplies[V]={resolve:k,reject:l},this._send({vsWorker:this._workerId,req:V,method:S,args:P})})}handleMessage(S){S&&S.vsWorker&&(this._workerId!==-1&&S.vsWorker!==this._workerId||this._handleMessage(S))}_handleMessage(S){if(S.seq){let k=S;if(!this._pendingReplies[k.seq])return void console.warn("Got reply to unknown seq");let l=this._pendingReplies[k.seq];if(delete this._pendingReplies[k.seq],k.err){let T=k.err;return k.err.$isError&&(T=new Error,T.name=k.err.name,T.message=k.err.message,T.stack=k.err.stack),void l.reject(T)}return void l.resolve(k.res)}let P=S,V=P.req;this._handler.handleMessage(P.method,P.args).then(k=>{this._send({vsWorker:this._workerId,seq:V,res:k,err:void 0})},k=>{k.detail instanceof Error&&(k.detail=Object(h.g)(k.detail)),this._send({vsWorker:this._workerId,seq:V,res:void 0,err:Object(h.g)(k)})})}_send(S){let P=[];if(S.req){let V=S;for(let k=0;k<V.args.length;k++)V.args[k]instanceof ArrayBuffer&&P.push(V.args[k])}else{let V=S;V.res instanceof ArrayBuffer&&P.push(V.res)}this._handler.sendMessage(S,P)}}class Q extends f.a{constructor(S,P,V){super();let k=null;this._worker=this._register(S.create("vs/base/common/worker/simpleWorker",b=>{this._protocol.handleMessage(b)},b=>{k&&k(b)})),this._protocol=new W({sendMessage:(b,g)=>{this._worker.postMessage(b,g)},handleMessage:(b,g)=>{if(typeof V[b]!="function")return Promise.reject(new Error("Missing method "+b+" on main thread host."));try{return Promise.resolve(V[b].apply(V,g))}catch(j){return Promise.reject(j)}}}),this._protocol.setWorkerId(this._worker.getId());let l=null;self.require!==void 0&&typeof self.require.getConfig=="function"?l=self.require.getConfig():self.requirejs!==void 0&&(l=self.requirejs.s.contexts._.config);let T=H.d(V);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(l)),P,T]);let N=(b,g)=>this._request(b,g);this._lazyProxy=new Promise((b,g)=>{k=g,this._onModuleLoaded.then(j=>{b(H.c(j,N))},j=>{g(j),this._onError("Worker failed to load "+P,j)})})}getProxyObject(){return this._lazyProxy}_request(S,P){return new Promise((V,k)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(S,P).then(V,k)},k)})}_onError(S,P){console.error(S),console.info(P)}}class y{constructor(S,P){this._requestHandlerFactory=P,this._requestHandler=null,this._protocol=new W({sendMessage:(V,k)=>{S(V,k)},handleMessage:(V,k)=>this._handleMessage(V,k)})}onmessage(S){this._protocol.handleMessage(S)}_handleMessage(S,P){if(S==="$initialize")return this.initialize(P[0],P[1],P[2],P[3]);if(!this._requestHandler||typeof this._requestHandler[S]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+S));try{return Promise.resolve(this._requestHandler[S].apply(this._requestHandler,P))}catch(V){return Promise.reject(V)}}initialize(S,P,V,k){this._protocol.setWorkerId(S);let l=H.c(k,(T,N)=>this._protocol.sendMessage(T,N));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(H.d(this._requestHandler))):(P&&(P.baseUrl!==void 0&&delete P.baseUrl,P.paths!==void 0&&P.paths.vs!==void 0&&delete P.paths.vs,P.catchError=!0,self.require.config(P)),new Promise((T,N)=>{self.require([V],b=>{this._requestHandler=b.create(l),this._requestHandler?T(H.d(this._requestHandler)):N(new Error("No RequestHandler!"))},N)}))}}},function(Ie,w,o){"use strict";var h=o(108);o.d(w,"a",function(){return h.n})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("editorWorkerService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return E}),o.d(w,"c",function(){return ge}),o.d(w,"b",function(){return W});var h=o(18),f=o(6),D=o(2),H=o(14);let E=Object(h.c)("storageService");var ge;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.SHUTDOWN=1]="SHUTDOWN"})(ge||(ge={}));class W extends D.a{constructor(){super(...arguments),this._onDidChangeStorage=this._register(new f.a),this._onWillSaveState=this._register(new f.a),this.onWillSaveState=this._onWillSaveState.event,this.globalCache=new Map,this.workspaceCache=new Map}getCache(y){return y===0?this.globalCache:this.workspaceCache}get(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:P}getBoolean(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:P==="true"}getNumber(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:parseInt(P,10)}store(y,C,S){if(Object(H.l)(C))return this.remove(y,S);let P=String(C);return this.getCache(S).get(y)===P||(this.getCache(S).set(y,P),this._onDidChangeStorage.fire({scope:S,key:y})),Promise.resolve()}remove(y,C){return this.getCache(C).delete(y)&&this._onDidChangeStorage.fire({scope:C,key:y}),Promise.resolve()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});let h=0;function f(D,H,E){return function(){let ge="$memoize"+h++,W,Q=function(y,C,S){let P=null,V=null;if(typeof S.value=="function"?(P="value",V=S.value,V.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(P="get",V=S.get),!V)throw new Error("not supported");let k=`${ge}:${C}`;S[P]=function(...l){return W=this,this.hasOwnProperty(k)||Object.defineProperty(this,k,{configurable:!0,enumerable:!1,writable:!0,value:V.apply(this,l)}),this[k]}};return Q.clear=()=>{W!==void 0&&Object.getOwnPropertyNames(W).forEach(y=>{y.indexOf(ge)===0&&delete W[y]})},Q}()(D,H,E)}},function(Ie,w,o){"use strict";var h;o.d(w,"a",function(){return h}),function(f){function D(E,ge){if(E.start>=ge.end||ge.start>=E.end)return{start:0,end:0};let W=Math.max(E.start,ge.start),Q=Math.min(E.end,ge.end);return Q-W<=0?{start:0,end:0}:{start:W,end:Q}}function H(E){return E.end-E.start<=0}f.intersect=D,f.isEmpty=H,f.intersects=function(E,ge){return!H(D(E,ge))},f.relativeComplement=function(E,ge){let W=[],Q={start:E.start,end:Math.min(ge.start,E.end)},y={start:Math.max(ge.end,E.start),end:E.end};return H(Q)||W.push(Q),H(y)||W.push(y),W}}(h||(h={}))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return S});var h=o(25),f=o(6),D=o(43),H=o(23),E=o(9),ge=o(3),W=o(21),Q=o(77),y=o(40);class C{static chord(V,k){return Object(D.a)(V,k)}}function S(){return{editor:void 0,languages:void 0,CancellationTokenSource:h.b,Emitter:f.a,KeyCode:y.o,KeyMod:C,Position:E.a,Range:ge.a,Selection:W.a,SelectionDirection:y.z,MarkerSeverity:y.p,MarkerTag:y.q,Uri:H.a,Token:Q.a}}C.CtrlCmd=2048,C.Shift=1024,C.Alt=512,C.WinCtrl=256},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"a",function(){return D});var h=o(36);class f{constructor(E,ge){this.index=E,this.remainder=ge}}class D{constructor(E){this.values=E,this.prefixSum=new Uint32Array(E.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(E,ge){E=Object(h.a)(E);let W=this.values,Q=this.prefixSum,y=ge.length;return y!==0&&(this.values=new Uint32Array(W.length+y),this.values.set(W.subarray(0,E),0),this.values.set(W.subarray(E),E+y),this.values.set(ge,E),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(Q.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(E,ge){return E=Object(h.a)(E),ge=Object(h.a)(ge),this.values[E]!==ge&&(this.values[E]=ge,E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),!0)}removeValues(E,ge){E=Object(h.a)(E),ge=Object(h.a)(ge);let W=this.values,Q=this.prefixSum;if(E>=W.length)return!1;let y=W.length-E;return ge>=y&&(ge=y),ge!==0&&(this.values=new Uint32Array(W.length-ge),this.values.set(W.subarray(0,E),0),this.values.set(W.subarray(E+ge),E),this.prefixSum=new Uint32Array(this.values.length),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(Q.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(E){return E<0?0:(E=Object(h.a)(E),this._getAccumulatedValue(E))}_getAccumulatedValue(E){if(E<=this.prefixSumValidIndex[0])return this.prefixSum[E];let ge=this.prefixSumValidIndex[0]+1;ge===0&&(this.prefixSum[0]=this.values[0],ge++),E>=this.values.length&&(E=this.values.length-1);for(let W=ge;W<=E;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],E),this.prefixSum[E]}getIndexOf(E){E=Math.floor(E),this.getTotalValue();let ge=0,W=this.values.length-1,Q=0,y=0,C=0;for(;ge<=W;)if(Q=ge+(W-ge)/2|0,y=this.prefixSum[Q],C=y-this.values[Q],E<C)W=Q-1;else{if(!(E>=y))break;ge=Q+1}return new f(Q,E-C)}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return H}),o.d(w,"c",function(){return E}),o.d(w,"a",function(){return Q});var h=o(18),f=o(2),D=o(6);let H=Object(h.c)("logService");var E;(function(y){y[y.Trace=0]="Trace",y[y.Debug=1]="Debug",y[y.Info=2]="Info",y[y.Warning=3]="Warning",y[y.Error=4]="Error",y[y.Critical=5]="Critical",y[y.Off=6]="Off"})(E||(E={}));let ge=E.Info;class W extends f.a{constructor(){super(...arguments),this.level=ge,this._onDidChangeLogLevel=this._register(new D.a)}setLevel(C){this.level!==C&&(this.level=C,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class Q extends W{constructor(C=ge){super(),this.setLevel(C)}trace(C,...S){this.getLevel()<=E.Trace&&console.log("%cTRACE","color: #888",C,...S)}info(C,...S){this.getLevel()<=E.Info&&console.log("%c INFO","color: #33f",C,...S)}error(C,...S){this.getLevel()<=E.Error&&console.log("%c ERR","color: #f33",C,...S)}dispose(){}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return W}),o.d(w,"a",function(){return Q});var h=o(1),f=o(11),D=o(177),H=o(69),E=o(2),ge=o(138);function W(y,C){let S=new H.a(C);return S.preventDefault(),{leftButton:S.leftButton,buttons:S.buttons,posx:S.posx,posy:S.posy}}class Q{constructor(){this._hooks=new E.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(C){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;let S=this._onStopCallback;this._onStopCallback=null,C&&S&&S()}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(C,S,P,V,k){if(this.isMonitoring())return;this._mouseMoveEventMerger=P,this._mouseMoveCallback=V,this._onStopCallback=k;let l=D.a.getSameOriginWindowChain(),T=f.c&&ge.a.pointerEvents?"pointermove":"mousemove",N=f.c&&ge.a.pointerEvents?"pointerup":"mouseup",b=l.map(j=>j.window.document),g=h.E(C);g&&b.unshift(g);for(let j of b)this._hooks.add(h.l(j,T,ie=>{ie.buttons===S?this._mouseMoveCallback(ie):this.stopMonitoring(!0)},(ie,U)=>this._mouseMoveEventMerger(ie,U))),this._hooks.add(h.i(j,N,ie=>this.stopMonitoring(!0)));if(D.a.hasDifferentOriginAncestor()){let j=l[l.length-1];this._hooks.add(h.i(j.window.document,"mouseout",ie=>{new H.a(ie).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.i(j.window.document,"mouseover",ie=>{new H.a(ie).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.i(j.window.document.body,"mouseleave",ie=>{this.stopMonitoring(!0)}))}}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Ye});var h=o(15);class f{constructor(fe,$,G,z){this.originalStart=fe,this.originalLength=$,this.modifiedStart=G,this.modifiedLength=z}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var D=o(89);class H{constructor(fe){this.source=fe}getElements(){let fe=this.source,$=new Int32Array(fe.length);for(let G=0,z=fe.length;G<z;G++)$[G]=fe.charCodeAt(G);return $}}function E(ht,fe,$){return new y(new H(ht),new H(fe)).ComputeDiff($).changes}class ge{static Assert(fe,$){if(!fe)throw new Error($)}}class W{static Copy(fe,$,G,z,J){for(let Se=0;Se<J;Se++)G[z+Se]=fe[$+Se]}static Copy2(fe,$,G,z,J){for(let Se=0;Se<J;Se++)G[z+Se]=fe[$+Se]}}class Q{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new f(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(fe,$){this.m_originalStart=Math.min(this.m_originalStart,fe),this.m_modifiedStart=Math.min(this.m_modifiedStart,$),this.m_originalCount++}AddModifiedElement(fe,$){this.m_originalStart=Math.min(this.m_originalStart,fe),this.m_modifiedStart=Math.min(this.m_modifiedStart,$),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class y{constructor(fe,$,G=null){this.ContinueProcessingPredicate=G;let[z,J,Se]=y._getElements(fe),[A,ee,de]=y._getElements($);this._hasStrings=Se&&de,this._originalStringElements=z,this._originalElementsOrHash=J,this._modifiedStringElements=A,this._modifiedElementsOrHash=ee,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(fe){return fe.length>0&&typeof fe[0]=="string"}static _getElements(fe){let $=fe.getElements();if(y._isStringArray($)){let G=new Int32Array($.length);for(let z=0,J=$.length;z<J;z++)G[z]=Object(D.c)($[z],0);return[$,G,!0]}return $ instanceof Int32Array?[[],$,!1]:[[],new Int32Array($),!1]}ElementsAreEqual(fe,$){return this._originalElementsOrHash[fe]===this._modifiedElementsOrHash[$]&&(!this._hasStrings||this._originalStringElements[fe]===this._modifiedStringElements[$])}OriginalElementsAreEqual(fe,$){return this._originalElementsOrHash[fe]===this._originalElementsOrHash[$]&&(!this._hasStrings||this._originalStringElements[fe]===this._originalStringElements[$])}ModifiedElementsAreEqual(fe,$){return this._modifiedElementsOrHash[fe]===this._modifiedElementsOrHash[$]&&(!this._hasStrings||this._modifiedStringElements[fe]===this._modifiedStringElements[$])}ComputeDiff(fe){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,fe)}_ComputeDiff(fe,$,G,z,J){let Se=[!1],A=this.ComputeDiffRecursive(fe,$,G,z,Se);return J&&(A=this.PrettifyChanges(A)),{quitEarly:Se[0],changes:A}}ComputeDiffRecursive(fe,$,G,z,J){for(J[0]=!1;fe<=$&&G<=z&&this.ElementsAreEqual(fe,G);)fe++,G++;for(;$>=fe&&z>=G&&this.ElementsAreEqual($,z);)$--,z--;if(fe>$||G>z){let $e;return G<=z?(ge.Assert(fe===$+1,"originalStart should only be one more than originalEnd"),$e=[new f(fe,0,G,z-G+1)]):fe<=$?(ge.Assert(G===z+1,"modifiedStart should only be one more than modifiedEnd"),$e=[new f(fe,$-fe+1,G,0)]):(ge.Assert(fe===$+1,"originalStart should only be one more than originalEnd"),ge.Assert(G===z+1,"modifiedStart should only be one more than modifiedEnd"),$e=[]),$e}let Se=[0],A=[0],ee=this.ComputeRecursionPoint(fe,$,G,z,Se,A,J),de=Se[0],Oe=A[0];if(ee!==null)return ee;if(!J[0]){let $e=this.ComputeDiffRecursive(fe,de,G,Oe,J),pt=[];return pt=J[0]?[new f(de+1,$-(de+1)+1,Oe+1,z-(Oe+1)+1)]:this.ComputeDiffRecursive(de+1,$,Oe+1,z,J),this.ConcatenateChanges($e,pt)}return[new f(fe,$-fe+1,G,z-G+1)]}WALKTRACE(fe,$,G,z,J,Se,A,ee,de,Oe,$e,pt,it,At,Nt,_i,wt,Ni){let pi=null,et=null,Wt=new Q,Li=$,Ii=G,Ai=it[0]-_i[0]-z,Zi=-1073741824,Bi=this.m_forwardHistory.length-1;do{let Lt=Ai+fe;Lt===Li||Lt<Ii&&de[Lt-1]<de[Lt+1]?(At=($e=de[Lt+1])-Ai-z,$e<Zi&&Wt.MarkNextChange(),Zi=$e,Wt.AddModifiedElement($e+1,At),Ai=Lt+1-fe):(At=($e=de[Lt-1]+1)-Ai-z,$e<Zi&&Wt.MarkNextChange(),Zi=$e-1,Wt.AddOriginalElement($e,At+1),Ai=Lt-1-fe),Bi>=0&&(fe=(de=this.m_forwardHistory[Bi])[0],Li=1,Ii=de.length-1)}while(--Bi>=-1);if(pi=Wt.getReverseChanges(),Ni[0]){let Lt=it[0]+1,Di=_i[0]+1;if(pi!==null&&pi.length>0){let gt=pi[pi.length-1];Lt=Math.max(Lt,gt.getOriginalEnd()),Di=Math.max(Di,gt.getModifiedEnd())}et=[new f(Lt,pt-Lt+1,Di,Nt-Di+1)]}else{Wt=new Q,Li=Se,Ii=A,Ai=it[0]-_i[0]-ee,Zi=1073741824,Bi=wt?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let Lt=Ai+J;Lt===Li||Lt<Ii&&Oe[Lt-1]>=Oe[Lt+1]?(At=($e=Oe[Lt+1]-1)-Ai-ee,$e>Zi&&Wt.MarkNextChange(),Zi=$e+1,Wt.AddOriginalElement($e+1,At+1),Ai=Lt+1-J):(At=($e=Oe[Lt-1])-Ai-ee,$e>Zi&&Wt.MarkNextChange(),Zi=$e,Wt.AddModifiedElement($e+1,At+1),Ai=Lt-1-J),Bi>=0&&(J=(Oe=this.m_reverseHistory[Bi])[0],Li=1,Ii=Oe.length-1)}while(--Bi>=-1);et=Wt.getChanges()}return this.ConcatenateChanges(pi,et)}ComputeRecursionPoint(fe,$,G,z,J,Se,A){let ee=0,de=0,Oe=0,$e=0,pt=0,it=0;fe--,G--,J[0]=0,Se[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let At=$-fe+(z-G),Nt=At+1,_i=new Int32Array(Nt),wt=new Int32Array(Nt),Ni=z-G,pi=$-fe,et=fe-G,Wt=$-z,Li=(pi-Ni)%2==0;_i[Ni]=fe,wt[pi]=$,A[0]=!1;for(let Ii=1;Ii<=At/2+1;Ii++){let Ai=0,Zi=0;Oe=this.ClipDiagonalBound(Ni-Ii,Ii,Ni,Nt),$e=this.ClipDiagonalBound(Ni+Ii,Ii,Ni,Nt);for(let Lt=Oe;Lt<=$e;Lt+=2){ee=Lt===Oe||Lt<$e&&_i[Lt-1]<_i[Lt+1]?_i[Lt+1]:_i[Lt-1]+1,de=ee-(Lt-Ni)-et;let Di=ee;for(;ee<$&&de<z&&this.ElementsAreEqual(ee+1,de+1);)ee++,de++;if(_i[Lt]=ee,ee+de>Ai+Zi&&(Ai=ee,Zi=de),!Li&&Math.abs(Lt-pi)<=Ii-1&&ee>=wt[Lt])return J[0]=ee,Se[0]=de,Di<=wt[Lt]&&Ii<=1448?this.WALKTRACE(Ni,Oe,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):null}let Bi=(Ai-fe+(Zi-G)-Ii)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ai,Bi))return A[0]=!0,J[0]=Ai,Se[0]=Zi,Bi>0&&Ii<=1448?this.WALKTRACE(Ni,Oe,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):(fe++,G++,[new f(fe,$-fe+1,G,z-G+1)]);pt=this.ClipDiagonalBound(pi-Ii,Ii,pi,Nt),it=this.ClipDiagonalBound(pi+Ii,Ii,pi,Nt);for(let Lt=pt;Lt<=it;Lt+=2){ee=Lt===pt||Lt<it&&wt[Lt-1]>=wt[Lt+1]?wt[Lt+1]-1:wt[Lt-1],de=ee-(Lt-pi)-Wt;let Di=ee;for(;ee>fe&&de>G&&this.ElementsAreEqual(ee,de);)ee--,de--;if(wt[Lt]=ee,Li&&Math.abs(Lt-Ni)<=Ii&&ee<=_i[Lt])return J[0]=ee,Se[0]=de,Di>=_i[Lt]&&Ii<=1448?this.WALKTRACE(Ni,Oe,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):null}if(Ii<=1447){let Lt=new Int32Array($e-Oe+2);Lt[0]=Ni-Oe+1,W.Copy2(_i,Oe,Lt,1,$e-Oe+1),this.m_forwardHistory.push(Lt),Lt=new Int32Array(it-pt+2),Lt[0]=pi-pt+1,W.Copy2(wt,pt,Lt,1,it-pt+1),this.m_reverseHistory.push(Lt)}}return this.WALKTRACE(Ni,Oe,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A)}PrettifyChanges(fe){for(let $=0;$<fe.length;$++){let G=fe[$],z=$<fe.length-1?fe[$+1].originalStart:this._originalElementsOrHash.length,J=$<fe.length-1?fe[$+1].modifiedStart:this._modifiedElementsOrHash.length,Se=G.originalLength>0,A=G.modifiedLength>0;for(;G.originalStart+G.originalLength<z&&G.modifiedStart+G.modifiedLength<J&&(!Se||this.OriginalElementsAreEqual(G.originalStart,G.originalStart+G.originalLength))&&(!A||this.ModifiedElementsAreEqual(G.modifiedStart,G.modifiedStart+G.modifiedLength));)G.originalStart++,G.modifiedStart++;let ee=[null];$<fe.length-1&&this.ChangesOverlap(fe[$],fe[$+1],ee)&&(fe[$]=ee[0],fe.splice($+1,1),$--)}for(let $=fe.length-1;$>=0;$--){let G=fe[$],z=0,J=0;if($>0){let Oe=fe[$-1];Oe.originalLength>0&&(z=Oe.originalStart+Oe.originalLength),Oe.modifiedLength>0&&(J=Oe.modifiedStart+Oe.modifiedLength)}let Se=G.originalLength>0,A=G.modifiedLength>0,ee=0,de=this._boundaryScore(G.originalStart,G.originalLength,G.modifiedStart,G.modifiedLength);for(let Oe=1;;Oe++){let $e=G.originalStart-Oe,pt=G.modifiedStart-Oe;if($e<z||pt<J||Se&&!this.OriginalElementsAreEqual($e,$e+G.originalLength)||A&&!this.ModifiedElementsAreEqual(pt,pt+G.modifiedLength))break;let it=this._boundaryScore($e,G.originalLength,pt,G.modifiedLength);it>de&&(de=it,ee=Oe)}G.originalStart-=ee,G.modifiedStart-=ee}return fe}_OriginalIsBoundary(fe){return fe<=0||fe>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[fe])}_OriginalRegionIsBoundary(fe,$){if(this._OriginalIsBoundary(fe)||this._OriginalIsBoundary(fe-1))return!0;if($>0){let G=fe+$;if(this._OriginalIsBoundary(G-1)||this._OriginalIsBoundary(G))return!0}return!1}_ModifiedIsBoundary(fe){return fe<=0||fe>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[fe])}_ModifiedRegionIsBoundary(fe,$){if(this._ModifiedIsBoundary(fe)||this._ModifiedIsBoundary(fe-1))return!0;if($>0){let G=fe+$;if(this._ModifiedIsBoundary(G-1)||this._ModifiedIsBoundary(G))return!0}return!1}_boundaryScore(fe,$,G,z){return(this._OriginalRegionIsBoundary(fe,$)?1:0)+(this._ModifiedRegionIsBoundary(G,z)?1:0)}ConcatenateChanges(fe,$){let G=[];if(fe.length===0||$.length===0)return $.length>0?$:fe;if(this.ChangesOverlap(fe[fe.length-1],$[0],G)){let z=new Array(fe.length+$.length-1);return W.Copy(fe,0,z,0,fe.length-1),z[fe.length-1]=G[0],W.Copy($,1,z,fe.length,$.length-1),z}{let z=new Array(fe.length+$.length);return W.Copy(fe,0,z,0,fe.length),W.Copy($,0,z,fe.length,$.length),z}}ChangesOverlap(fe,$,G){if(ge.Assert(fe.originalStart<=$.originalStart,"Left change is not less than or equal to right change"),ge.Assert(fe.modifiedStart<=$.modifiedStart,"Left change is not less than or equal to right change"),fe.originalStart+fe.originalLength>=$.originalStart||fe.modifiedStart+fe.modifiedLength>=$.modifiedStart){let z=fe.originalStart,J=fe.originalLength,Se=fe.modifiedStart,A=fe.modifiedLength;return fe.originalStart+fe.originalLength>=$.originalStart&&(J=$.originalStart+$.originalLength-fe.originalStart),fe.modifiedStart+fe.modifiedLength>=$.modifiedStart&&(A=$.modifiedStart+$.modifiedLength-fe.modifiedStart),G[0]=new f(z,J,Se,A),!0}return G[0]=null,!1}ClipDiagonalBound(fe,$,G,z){if(fe>=0&&fe<z)return fe;let J=$%2==0;return fe<0?J===(G%2==0)?0:1:J===((z-G-1)%2==0)?z-1:z-2}}var C=o(11),S=o(23),P=o(9),V=o(3),k=o(8);function l(ht,fe,$,G){return new y(ht,fe,$).ComputeDiff(G)}class T{constructor(fe){let $=[],G=[];for(let z=0,J=fe.length;z<J;z++)$[z]=ie(fe[z],1),G[z]=U(fe[z],1);this.lines=fe,this._startColumns=$,this._endColumns=G}getElements(){let fe=[];for(let $=0,G=this.lines.length;$<G;$++)fe[$]=this.lines[$].substring(this._startColumns[$]-1,this._endColumns[$]-1);return fe}getStartLineNumber(fe){return fe+1}getEndLineNumber(fe){return fe+1}createCharSequence(fe,$,G){let z=[],J=[],Se=[],A=0;for(let ee=$;ee<=G;ee++){let de=this.lines[ee],Oe=fe?this._startColumns[ee]:1,$e=fe?this._endColumns[ee]:de.length+1;for(let pt=Oe;pt<$e;pt++)z[A]=de.charCodeAt(pt-1),J[A]=ee+1,Se[A]=pt,A++}return new N(z,J,Se)}}class N{constructor(fe,$,G){this._charCodes=fe,this._lineNumbers=$,this._columns=G}getElements(){return this._charCodes}getStartLineNumber(fe){return this._lineNumbers[fe]}getStartColumn(fe){return this._columns[fe]}getEndLineNumber(fe){return this._lineNumbers[fe]}getEndColumn(fe){return this._columns[fe]+1}}class b{constructor(fe,$,G,z,J,Se,A,ee){this.originalStartLineNumber=fe,this.originalStartColumn=$,this.originalEndLineNumber=G,this.originalEndColumn=z,this.modifiedStartLineNumber=J,this.modifiedStartColumn=Se,this.modifiedEndLineNumber=A,this.modifiedEndColumn=ee}static createFromDiffChange(fe,$,G){let z,J,Se,A,ee,de,Oe,$e;return fe.originalLength===0?(z=0,J=0,Se=0,A=0):(z=$.getStartLineNumber(fe.originalStart),J=$.getStartColumn(fe.originalStart),Se=$.getEndLineNumber(fe.originalStart+fe.originalLength-1),A=$.getEndColumn(fe.originalStart+fe.originalLength-1)),fe.modifiedLength===0?(ee=0,de=0,Oe=0,$e=0):(ee=G.getStartLineNumber(fe.modifiedStart),de=G.getStartColumn(fe.modifiedStart),Oe=G.getEndLineNumber(fe.modifiedStart+fe.modifiedLength-1),$e=G.getEndColumn(fe.modifiedStart+fe.modifiedLength-1)),new b(z,J,Se,A,ee,de,Oe,$e)}}class g{constructor(fe,$,G,z,J){this.originalStartLineNumber=fe,this.originalEndLineNumber=$,this.modifiedStartLineNumber=G,this.modifiedEndLineNumber=z,this.charChanges=J}static createFromDiffResult(fe,$,G,z,J,Se,A){let ee,de,Oe,$e,pt;if($.originalLength===0?(ee=G.getStartLineNumber($.originalStart)-1,de=0):(ee=G.getStartLineNumber($.originalStart),de=G.getEndLineNumber($.originalStart+$.originalLength-1)),$.modifiedLength===0?(Oe=z.getStartLineNumber($.modifiedStart)-1,$e=0):(Oe=z.getStartLineNumber($.modifiedStart),$e=z.getEndLineNumber($.modifiedStart+$.modifiedLength-1)),Se&&$.originalLength>0&&$.originalLength<20&&$.modifiedLength>0&&$.modifiedLength<20&&J()){let it=G.createCharSequence(fe,$.originalStart,$.originalStart+$.originalLength-1),At=z.createCharSequence(fe,$.modifiedStart,$.modifiedStart+$.modifiedLength-1),Nt=l(it,At,J,!0).changes;A&&(Nt=function(_i){if(_i.length<=1)return _i;let wt=[_i[0]],Ni=wt[0];for(let pi=1,et=_i.length;pi<et;pi++){let Wt=_i[pi],Li=Wt.originalStart-(Ni.originalStart+Ni.originalLength),Ii=Wt.modifiedStart-(Ni.modifiedStart+Ni.modifiedLength);Math.min(Li,Ii)<3?(Ni.originalLength=Wt.originalStart+Wt.originalLength-Ni.originalStart,Ni.modifiedLength=Wt.modifiedStart+Wt.modifiedLength-Ni.modifiedStart):(wt.push(Wt),Ni=Wt)}return wt}(Nt)),pt=[];for(let _i=0,wt=Nt.length;_i<wt;_i++)pt.push(b.createFromDiffChange(Nt[_i],it,At))}return new g(ee,de,Oe,$e,pt)}}class j{constructor(fe,$,G){this.shouldComputeCharChanges=G.shouldComputeCharChanges,this.shouldPostProcessCharChanges=G.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=G.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=G.shouldMakePrettyDiff,this.originalLines=fe,this.modifiedLines=$,this.original=new T(fe),this.modified=new T($),this.continueLineDiff=q(G.maxComputationTime),this.continueCharDiff=q(G.maxComputationTime===0?0:Math.min(G.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let fe=l(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),$=fe.changes,G=fe.quitEarly;if(this.shouldIgnoreTrimWhitespace){let A=[];for(let ee=0,de=$.length;ee<de;ee++)A.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,$[ee],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:G,changes:A}}let z=[],J=0,Se=0;for(let A=-1,ee=$.length;A<ee;A++){let de=A+1<ee?$[A+1]:null,Oe=de?de.originalStart:this.originalLines.length,$e=de?de.modifiedStart:this.modifiedLines.length;for(;J<Oe&&Se<$e;){let pt=this.originalLines[J],it=this.modifiedLines[Se];if(pt!==it){{let At=ie(pt,1),Nt=ie(it,1);for(;At>1&&Nt>1&&pt.charCodeAt(At-2)===it.charCodeAt(Nt-2);)At--,Nt--;(At>1||Nt>1)&&this._pushTrimWhitespaceCharChange(z,J+1,1,At,Se+1,1,Nt)}{let At=U(pt,1),Nt=U(it,1),_i=pt.length+1,wt=it.length+1;for(;At<_i&&Nt<wt&&pt.charCodeAt(At-1)===pt.charCodeAt(Nt-1);)At++,Nt++;(At<_i||Nt<wt)&&this._pushTrimWhitespaceCharChange(z,J+1,At,_i,Se+1,Nt,wt)}}J++,Se++}de&&(z.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,de,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),J+=de.originalLength,Se+=de.modifiedLength)}return{quitEarly:G,changes:z}}_pushTrimWhitespaceCharChange(fe,$,G,z,J,Se,A){if(this._mergeTrimWhitespaceCharChange(fe,$,G,z,J,Se,A))return;let ee;this.shouldComputeCharChanges&&(ee=[new b($,G,$,z,J,Se,J,A)]),fe.push(new g($,$,J,J,ee))}_mergeTrimWhitespaceCharChange(fe,$,G,z,J,Se,A){let ee=fe.length;if(ee===0)return!1;let de=fe[ee-1];return de.originalEndLineNumber!==0&&de.modifiedEndLineNumber!==0&&de.originalEndLineNumber+1===$&&de.modifiedEndLineNumber+1===J&&(de.originalEndLineNumber=$,de.modifiedEndLineNumber=J,this.shouldComputeCharChanges&&de.charChanges&&de.charChanges.push(new b($,G,$,z,J,Se,J,A)),!0)}}function ie(ht,fe){let $=k.w(ht);return $===-1?fe:$+1}function U(ht,fe){let $=k.J(ht);return $===-1?fe:$+2}function q(ht){if(ht===0)return()=>!0;let fe=Date.now();return()=>Date.now()-fe<ht}var B=o(101),se=o(73),ke=o(76);class xe{constructor(fe,$,G){let z=new Uint8Array(fe*$);for(let J=0,Se=fe*$;J<Se;J++)z[J]=G;this._data=z,this.rows=fe,this.cols=$}get(fe,$){return this._data[fe*this.cols+$]}set(fe,$,G){this._data[fe*this.cols+$]=G}}class Y{constructor(fe){let $=0,G=0;for(let J=0,Se=fe.length;J<Se;J++){let[A,ee,de]=fe[J];ee>$&&($=ee),A>G&&(G=A),de>G&&(G=de)}$++,G++;let z=new xe(G,$,0);for(let J=0,Se=fe.length;J<Se;J++){let[A,ee,de]=fe[J];z.set(A,ee,de)}this._states=z,this._maxCharCode=$}nextState(fe,$){return $<0||$>=this._maxCharCode?0:this._states.get(fe,$)}}let Z=null,te=null;class he{static _createLink(fe,$,G,z,J){let Se=J-1;do{let A=$.charCodeAt(Se);if(fe.get(A)!==2)break;Se--}while(Se>z);if(z>0){let A=$.charCodeAt(z-1),ee=$.charCodeAt(Se);(A===40&&ee===41||A===91&&ee===93||A===123&&ee===125)&&Se--}return{range:{startLineNumber:G,startColumn:z+1,endLineNumber:G,endColumn:Se+2},url:$.substring(z,Se+1)}}static computeLinks(fe,$=function(){return Z===null&&(Z=new Y([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Z}()){let G=function(){if(te===null){te=new ke.a(0);let J=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`;for(let A=0;A<J.length;A++)te.set(J.charCodeAt(A),1);let Se=".,;";for(let A=0;A<Se.length;A++)te.set(Se.charCodeAt(A),2)}return te}(),z=[];for(let J=1,Se=fe.getLineCount();J<=Se;J++){let A=fe.getLineContent(J),ee=A.length,de=0,Oe=0,$e=0,pt=1,it=!1,At=!1,Nt=!1,_i=!1;for(;de<ee;){let wt=!1,Ni=A.charCodeAt(de);if(pt===13){let pi;switch(Ni){case 40:it=!0,pi=0;break;case 41:pi=it?0:1;break;case 91:Nt=!0,At=!0,pi=0;break;case 93:Nt=!1,pi=At?0:1;break;case 123:_i=!0,pi=0;break;case 125:pi=_i?0:1;break;case 39:pi=$e===34||$e===96?0:1;break;case 34:pi=$e===39||$e===96?0:1;break;case 96:pi=$e===39||$e===34?0:1;break;case 42:pi=$e===42?1:0;break;case 124:pi=$e===124?1:0;break;case 32:pi=Nt?0:1;break;default:pi=G.get(Ni)}pi===1&&(z.push(he._createLink(G,A,J,Oe,de)),wt=!0)}else if(pt===12){let pi;Ni===91?(At=!0,pi=0):pi=G.get(Ni),pi===1?wt=!0:pt=13}else pt=$.nextState(pt,Ni),pt===0&&(wt=!0);wt&&(pt=1,it=!1,At=!1,_i=!1,Oe=de+1,$e=Ni),de++}pt===13&&z.push(he._createLink(G,A,J,Oe,ee))}return z}}class Ce{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(fe,$,G,z,J){if(fe&&$){let Se=this.doNavigateValueSet($,J);if(Se)return{range:fe,value:Se}}if(G&&z){let Se=this.doNavigateValueSet(z,J);if(Se)return{range:G,value:Se}}return null}doNavigateValueSet(fe,$){let G=this.numberReplace(fe,$);return G!==null?G:this.textReplace(fe,$)}numberReplace(fe,$){let G=Math.pow(10,fe.length-(fe.lastIndexOf(".")+1)),z=Number(fe),J=parseFloat(fe);return isNaN(z)||isNaN(J)||z!==J?null:z!==0||$?(z=Math.floor(z*G),z+=$?G:-G,String(z/G)):null}textReplace(fe,$){return this.valueSetsReplace(this._defaultValueSet,fe,$)}valueSetsReplace(fe,$,G){let z=null;for(let J=0,Se=fe.length;z===null&&J<Se;J++)z=this.valueSetReplace(fe[J],$,G);return z}valueSetReplace(fe,$,G){let z=fe.indexOf($);return z>=0?(z+=G?1:-1,z<0?z=fe.length-1:z%=fe.length,fe[z]):null}}Ce.INSTANCE=new Ce;var Ae=o(100),L=o(14),nt=function(ht,fe,$,G){return new($||($=Promise))(function(z,J){function Se(de){try{ee(G.next(de))}catch(Oe){J(Oe)}}function A(de){try{ee(G.throw(de))}catch(Oe){J(Oe)}}function ee(de){var Oe;de.done?z(de.value):(Oe=de.value,Oe instanceof $?Oe:new $(function($e){$e(Oe)})).then(Se,A)}ee((G=G.apply(ht,fe||[])).next())})};class ct extends class{constructor(fe,$,G,z){this._uri=fe,this._lines=$,this._eol=G,this._versionId=z,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(fe){fe.eol&&fe.eol!==this._eol&&(this._eol=fe.eol,this._lineStarts=null);let $=fe.changes;for(let G of $)this._acceptDeleteRange(G.range),this._acceptInsertText(new P.a(G.range.startLineNumber,G.range.startColumn),G.text);this._versionId=fe.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let fe=this._eol.length,$=this._lines.length,G=new Uint32Array($);for(let z=0;z<$;z++)G[z]=this._lines[z].length+fe;this._lineStarts=new B.a(G)}}_setLineText(fe,$){this._lines[fe]=$,this._lineStarts&&this._lineStarts.changeValue(fe,this._lines[fe].length+this._eol.length)}_acceptDeleteRange(fe){if(fe.startLineNumber!==fe.endLineNumber)this._setLineText(fe.startLineNumber-1,this._lines[fe.startLineNumber-1].substring(0,fe.startColumn-1)+this._lines[fe.endLineNumber-1].substring(fe.endColumn-1)),this._lines.splice(fe.startLineNumber,fe.endLineNumber-fe.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(fe.startLineNumber,fe.endLineNumber-fe.startLineNumber);else{if(fe.startColumn===fe.endColumn)return;this._setLineText(fe.startLineNumber-1,this._lines[fe.startLineNumber-1].substring(0,fe.startColumn-1)+this._lines[fe.startLineNumber-1].substring(fe.endColumn-1))}}_acceptInsertText(fe,$){if($.length===0)return;let G=$.split(/\r\n|\r|\n/);if(G.length===1)return void this._setLineText(fe.lineNumber-1,this._lines[fe.lineNumber-1].substring(0,fe.column-1)+G[0]+this._lines[fe.lineNumber-1].substring(fe.column-1));G[G.length-1]+=this._lines[fe.lineNumber-1].substring(fe.column-1),this._setLineText(fe.lineNumber-1,this._lines[fe.lineNumber-1].substring(0,fe.column-1)+G[0]);let z=new Uint32Array(G.length-1);for(let J=1;J<G.length;J++)this._lines.splice(fe.lineNumber+J-1,0,G[J]),z[J-1]=G[J].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(fe.lineNumber,z)}}{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(fe){return this._lines[fe-1]}getWordAtPosition(fe,$){let G=Object(se.d)(fe.column,Object(se.c)($),this._lines[fe.lineNumber-1],0);return G?new V.a(fe.lineNumber,G.startColumn,fe.lineNumber,G.endColumn):null}words(fe){let $=this._lines,G=this._wordenize.bind(this),z=0,J="",Se=0,A=[];return{*[Symbol.iterator](){for(;;)if(Se<A.length){let ee=J.substring(A[Se].start,A[Se].end);Se+=1,yield ee}else{if(!(z<$.length))break;J=$[z],A=G(J,fe),Se=0,z+=1}}}}getLineWords(fe,$){let G=this._lines[fe-1],z=this._wordenize(G,$),J=[];for(let Se of z)J.push({word:G.substring(Se.start,Se.end),startColumn:Se.start+1,endColumn:Se.end+1});return J}_wordenize(fe,$){let G=[],z;for($.lastIndex=0;(z=$.exec(fe))&&z[0].length!==0;)G.push({start:z.index,end:z.index+z[0].length});return G}getValueInRange(fe){if((fe=this._validateRange(fe)).startLineNumber===fe.endLineNumber)return this._lines[fe.startLineNumber-1].substring(fe.startColumn-1,fe.endColumn-1);let $=this._eol,G=fe.startLineNumber-1,z=fe.endLineNumber-1,J=[];J.push(this._lines[G].substring(fe.startColumn-1));for(let Se=G+1;Se<z;Se++)J.push(this._lines[Se]);return J.push(this._lines[z].substring(0,fe.endColumn-1)),J.join($)}offsetAt(fe){return fe=this._validatePosition(fe),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(fe.lineNumber-2)+(fe.column-1)}positionAt(fe){fe=Math.floor(fe),fe=Math.max(0,fe),this._ensureLineStarts();let $=this._lineStarts.getIndexOf(fe),G=this._lines[$.index].length;return{lineNumber:1+$.index,column:1+Math.min($.remainder,G)}}_validateRange(fe){let $=this._validatePosition({lineNumber:fe.startLineNumber,column:fe.startColumn}),G=this._validatePosition({lineNumber:fe.endLineNumber,column:fe.endColumn});return $.lineNumber!==fe.startLineNumber||$.column!==fe.startColumn||G.lineNumber!==fe.endLineNumber||G.column!==fe.endColumn?{startLineNumber:$.lineNumber,startColumn:$.column,endLineNumber:G.lineNumber,endColumn:G.column}:fe}_validatePosition(fe){if(!P.a.isIPosition(fe))throw new Error("bad position");let{lineNumber:$,column:G}=fe,z=!1;if($<1)$=1,G=1,z=!0;else if($>this._lines.length)$=this._lines.length,G=this._lines[$-1].length+1,z=!0;else{let J=this._lines[$-1].length+1;G<1?(G=1,z=!0):G>J&&(G=J,z=!0)}return z?{lineNumber:$,column:G}:fe}}class Ye{constructor(fe,$){this._host=fe,this._models=Object.create(null),this._foreignModuleFactory=$,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(fe){return this._models[fe]}_getModels(){let fe=[];return Object.keys(this._models).forEach($=>fe.push(this._models[$])),fe}acceptNewModel(fe){this._models[fe.url]=new ct(S.a.parse(fe.url),fe.lines,fe.EOL,fe.versionId)}acceptModelChanged(fe,$){!this._models[fe]||this._models[fe].onEvents($)}acceptRemovedModel(fe){this._models[fe]&&delete this._models[fe]}computeDiff(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe),Se=this._getModel($);if(!J||!Se)return null;let A=J.getLinesContent(),ee=Se.getLinesContent(),de=new j(A,ee,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:G,shouldMakePrettyDiff:!0,maxComputationTime:z}).computeDiff(),Oe=!(de.changes.length>0)&&this._modelsAreIdentical(J,Se);return{quitEarly:de.quitEarly,identical:Oe,changes:de.changes}})}_modelsAreIdentical(fe,$){let G=fe.getLineCount();if(G!==$.getLineCount())return!1;for(let z=1;z<=G;z++)if(fe.getLineContent(z)!==$.getLineContent(z))return!1;return!0}computeMoreMinimalEdits(fe,$){return nt(this,void 0,void 0,function*(){let G=this._getModel(fe);if(!G)return $;let z=[],J;$=Object(h.p)($,(Se,A)=>Se.range&&A.range?V.a.compareRangesUsingStarts(Se.range,A.range):(Se.range?0:1)-(A.range?0:1));for(let{range:Se,text:A,eol:ee}of $){if(typeof ee=="number"&&(J=ee),V.a.isEmpty(Se)&&!A)continue;let de=G.getValueInRange(Se);if(A=A.replace(/\r\n|\n|\r/g,G.eol),de===A)continue;if(Math.max(A.length,de.length)>Ye._diffLimit){z.push({range:Se,text:A});continue}let Oe=E(de,A,!1),$e=G.offsetAt(V.a.lift(Se).getStartPosition());for(let pt of Oe){let it=G.positionAt($e+pt.originalStart),At=G.positionAt($e+pt.originalStart+pt.originalLength),Nt={text:A.substr(pt.modifiedStart,pt.modifiedLength),range:{startLineNumber:it.lineNumber,startColumn:it.column,endLineNumber:At.lineNumber,endColumn:At.column}};G.getValueInRange(Nt.range)!==Nt.text&&z.push(Nt)}}return typeof J=="number"&&z.push({eol:J,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),z})}computeLinks(fe){return nt(this,void 0,void 0,function*(){let $=this._getModel(fe);return $?function(G){return G&&typeof G.getLineCount=="function"&&typeof G.getLineContent=="function"?he.computeLinks(G):[]}($):null})}textualSuggest(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe);if(!J)return null;let Se=[],A=new Set,ee=new RegExp(G,z),de=J.getWordAtPosition($,ee);de&&A.add(J.getValueInRange(de));for(let Oe of J.words(ee))if(!A.has(Oe)&&(A.add(Oe),isNaN(Number(Oe))&&(Se.push(Oe),A.size>Ye._suggestionsLimit)))break;return Se})}computeWordRanges(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe);if(!J)return Object.create(null);let Se=new RegExp(G,z),A=Object.create(null);for(let ee=$.startLineNumber;ee<$.endLineNumber;ee++){let de=J.getLineWords(ee,Se);for(let Oe of de){if(!isNaN(Number(Oe.word)))continue;let $e=A[Oe.word];$e||($e=[],A[Oe.word]=$e),$e.push({startLineNumber:ee,startColumn:Oe.startColumn,endLineNumber:ee,endColumn:Oe.endColumn})}}return A})}navigateValueSet(fe,$,G,z,J){return nt(this,void 0,void 0,function*(){let Se=this._getModel(fe);if(!Se)return null;let A=new RegExp(z,J);$.startColumn===$.endColumn&&($={startLineNumber:$.startLineNumber,startColumn:$.startColumn,endLineNumber:$.endLineNumber,endColumn:$.endColumn+1});let ee=Se.getValueInRange($),de=Se.getWordAtPosition({lineNumber:$.startLineNumber,column:$.startColumn},A);if(!de)return null;let Oe=Se.getValueInRange(de);return Ce.INSTANCE.navigateValueSet($,ee,de,Oe,G)})}loadForeignModule(fe,$,G){let z={host:L.c(G,(J,Se)=>this._host.fhr(J,Se)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(z,$),Promise.resolve(L.d(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(fe,$){if(!this._foreignModule||typeof this._foreignModule[fe]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+fe));try{return Promise.resolve(this._foreignModule[fe].apply(this._foreignModule,$))}catch(G){return Promise.reject(G)}}}Ye._diffLimit=1e5,Ye._suggestionsLimit=1e4,typeof importScripts=="function"&&(C.b.monaco=Object(Ae.a)())},function(Ie,w,o){"use strict";o.d(w,"b",function(){return ke}),o.d(w,"c",function(){return xe}),o.d(w,"a",function(){return Y}),o(220);var h=o(1),f=o(35),D=o(69),H=o(103),E=o(82),ge=o(20);class W extends E.a{constructor(te){super(),this._onActivate=te.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=te.bgWidth+"px",this.bgDomNode.style.height=te.bgHeight+"px",te.top!==void 0&&(this.bgDomNode.style.top="0px"),te.left!==void 0&&(this.bgDomNode.style.left="0px"),te.bottom!==void 0&&(this.bgDomNode.style.bottom="0px"),te.right!==void 0&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=te.className,Object(h.f)(this.domNode,te.icon.classNames),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",te.top!==void 0&&(this.domNode.style.top=te.top+"px"),te.left!==void 0&&(this.domNode.style.left=te.left+"px"),te.bottom!==void 0&&(this.domNode.style.bottom=te.bottom+"px"),te.right!==void 0&&(this.domNode.style.right=te.right+"px"),this._mouseMoveMonitor=this._register(new H.a),this.onmousedown(this.bgDomNode,he=>this._arrowMouseDown(he)),this.onmousedown(this.domNode,he=>this._arrowMouseDown(he)),this._mousedownRepeatTimer=this._register(new ge.c),this._mousedownScheduleRepeatTimer=this._register(new ge.e)}_arrowMouseDown(te){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)},200),this._mouseMoveMonitor.startMonitoring(te.target,te.buttons,H.b,he=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),te.preventDefault()}}var Q=o(2);class y extends Q.a{constructor(te,he,Ce){super(),this._visibility=te,this._visibleClassName=he,this._invisibleClassName=Ce,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ge.e)}applyVisibilitySetting(te){return this._visibility!==2&&(this._visibility===3||te)}setShouldBeVisible(te){let he=this.applyVisibilitySetting(te);this._shouldBeVisible!==he&&(this._shouldBeVisible=he,this.ensureVisibility())}setIsNeeded(te){this._isNeeded!==te&&(this._isNeeded=te,this.ensureVisibility())}setDomNode(te){this._domNode=te,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(te){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(te?" fade":"")))}}var C=o(11);class S extends E.a{constructor(te){super(),this._lazyRender=te.lazyRender,this._host=te.host,this._scrollable=te.scrollable,this._scrollbarState=te.scrollbarState,this._visibilityController=this._register(new y(te.visibility,"visible scrollbar "+te.extraScrollbarClassName,"invisible scrollbar "+te.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new H.a),this._shouldRender=!0,this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,he=>this._domNodeMouseDown(he))}_createArrow(te){let he=this._register(new W(te));this.domNode.domNode.appendChild(he.bgDomNode),this.domNode.domNode.appendChild(he.domNode)}_createSlider(te,he,Ce,Ae){this.slider=Object(f.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(te),this.slider.setLeft(he),typeof Ce=="number"&&this.slider.setWidth(Ce),typeof Ae=="number"&&this.slider.setHeight(Ae),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,L=>{L.leftButton&&(L.preventDefault(),this._sliderMouseDown(L,()=>{}))}),this.onclick(this.slider.domNode,L=>{L.leftButton&&L.stopPropagation()})}_onElementSize(te){return this._scrollbarState.setVisibleSize(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(te){return this._scrollbarState.setScrollSize(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(te){return this._scrollbarState.setScrollPosition(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(te){te.target===this.domNode.domNode&&this._onMouseDown(te)}delegateMouseDown(te){let he=this.domNode.domNode.getClientRects()[0].top,Ce=he+this._scrollbarState.getSliderPosition(),Ae=he+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),L=this._sliderMousePosition(te);Ce<=L&&L<=Ae?te.leftButton&&(te.preventDefault(),this._sliderMouseDown(te,()=>{})):this._onMouseDown(te)}_onMouseDown(te){let he,Ce;if(te.target===this.domNode.domNode&&typeof te.browserEvent.offsetX=="number"&&typeof te.browserEvent.offsetY=="number")he=te.browserEvent.offsetX,Ce=te.browserEvent.offsetY;else{let Ae=h.C(this.domNode.domNode);he=te.posx-Ae.left,Ce=te.posy-Ae.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(he,Ce))),te.leftButton&&(te.preventDefault(),this._sliderMouseDown(te,()=>{}))}_sliderMouseDown(te,he){let Ce=this._sliderMousePosition(te),Ae=this._sliderOrthogonalMousePosition(te),L=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(te.target,te.buttons,H.b,nt=>{let ct=this._sliderOrthogonalMousePosition(nt),Ye=Math.abs(ct-Ae);if(C.i&&Ye>140)return void this._setDesiredScrollPositionNow(L.getScrollPosition());let ht=this._sliderMousePosition(nt)-Ce;this._setDesiredScrollPositionNow(L.getDesiredScrollPositionFromDelta(ht))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),he()}),this._host.onDragStart()}_setDesiredScrollPositionNow(te){let he={};this.writeScrollPosition(he,te),this._scrollable.setScrollPositionNow(he)}updateScrollbarSize(te){this._updateScrollbarSize(te),this._scrollbarState.setScrollbarSize(te),this._shouldRender=!0,this._lazyRender||this.render()}}class P{constructor(te,he,Ce,Ae,L,nt){this._scrollbarSize=Math.round(he),this._oppositeScrollbarSize=Math.round(Ce),this._arrowSize=Math.round(te),this._visibleSize=Ae,this._scrollSize=L,this._scrollPosition=nt,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new P(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(te){let he=Math.round(te);return this._visibleSize!==he&&(this._visibleSize=he,this._refreshComputedValues(),!0)}setScrollSize(te){let he=Math.round(te);return this._scrollSize!==he&&(this._scrollSize=he,this._refreshComputedValues(),!0)}setScrollPosition(te){let he=Math.round(te);return this._scrollPosition!==he&&(this._scrollPosition=he,this._refreshComputedValues(),!0)}setScrollbarSize(te){this._scrollbarSize=te}static _computeValues(te,he,Ce,Ae,L){let nt=Math.max(0,Ce-te),ct=Math.max(0,nt-2*he),Ye=Ae>0&&Ae>Ce;if(!Ye)return{computedAvailableSize:Math.round(nt),computedIsNeeded:Ye,computedSliderSize:Math.round(ct),computedSliderRatio:0,computedSliderPosition:0};let ht=Math.round(Math.max(20,Math.floor(Ce*ct/Ae))),fe=(ct-ht)/(Ae-Ce),$=L*fe;return{computedAvailableSize:Math.round(nt),computedIsNeeded:Ye,computedSliderSize:Math.round(ht),computedSliderRatio:fe,computedSliderPosition:Math.round($)}}_refreshComputedValues(){let te=P._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=te.computedAvailableSize,this._computedIsNeeded=te.computedIsNeeded,this._computedSliderSize=te.computedSliderSize,this._computedSliderRatio=te.computedSliderRatio,this._computedSliderPosition=te.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(te){if(!this._computedIsNeeded)return 0;let he=te-this._arrowSize-this._computedSliderSize/2;return Math.round(he/this._computedSliderRatio)}getDesiredScrollPositionFromDelta(te){if(!this._computedIsNeeded)return 0;let he=this._computedSliderPosition+te;return Math.round(he/this._computedSliderRatio)}}var V=o(17);let k=Object(V.e)("scrollbar-button-left",V.a.triangleLeft),l=Object(V.e)("scrollbar-button-right",V.a.triangleRight);class T extends S{constructor(te,he,Ce){let Ae=te.getScrollDimensions(),L=te.getCurrentScrollPosition();if(super({lazyRender:he.lazyRender,host:Ce,scrollbarState:new P(he.horizontalHasArrows?he.arrowSize:0,he.horizontal===2?0:he.horizontalScrollbarSize,he.vertical===2?0:he.verticalScrollbarSize,Ae.width,Ae.scrollWidth,L.scrollLeft),visibility:he.horizontal,extraScrollbarClassName:"horizontal",scrollable:te}),he.horizontalHasArrows){let nt=(he.arrowSize-11)/2,ct=(he.horizontalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:k,top:ct,left:nt,bottom:void 0,right:void 0,bgWidth:he.arrowSize,bgHeight:he.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new D.b(null,1,0))}),this._createArrow({className:"scra",icon:l,top:ct,left:void 0,bottom:void 0,right:nt,bgWidth:he.arrowSize,bgHeight:he.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new D.b(null,-1,0))})}this._createSlider(Math.floor((he.horizontalScrollbarSize-he.horizontalSliderSize)/2),0,void 0,he.horizontalSliderSize)}_updateSlider(te,he){this.slider.setWidth(te),this.slider.setLeft(he)}_renderDomNode(te,he){this.domNode.setWidth(te),this.domNode.setHeight(he),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(te){return this._shouldRender=this._onElementScrollSize(te.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(te.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(te.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(te,he){return te}_sliderMousePosition(te){return te.posx}_sliderOrthogonalMousePosition(te){return te.posy}_updateScrollbarSize(te){this.slider.setHeight(te)}writeScrollPosition(te,he){te.scrollLeft=he}}let N=Object(V.e)("scrollbar-button-up",V.a.triangleUp),b=Object(V.e)("scrollbar-button-down",V.a.triangleDown);class g extends S{constructor(te,he,Ce){let Ae=te.getScrollDimensions(),L=te.getCurrentScrollPosition();if(super({lazyRender:he.lazyRender,host:Ce,scrollbarState:new P(he.verticalHasArrows?he.arrowSize:0,he.vertical===2?0:he.verticalScrollbarSize,0,Ae.height,Ae.scrollHeight,L.scrollTop),visibility:he.vertical,extraScrollbarClassName:"vertical",scrollable:te}),he.verticalHasArrows){let nt=(he.arrowSize-11)/2,ct=(he.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:N,top:nt,left:ct,bottom:void 0,right:void 0,bgWidth:he.verticalScrollbarSize,bgHeight:he.arrowSize,onActivate:()=>this._host.onMouseWheel(new D.b(null,0,1))}),this._createArrow({className:"scra",icon:b,top:void 0,left:ct,bottom:nt,right:void 0,bgWidth:he.verticalScrollbarSize,bgHeight:he.arrowSize,onActivate:()=>this._host.onMouseWheel(new D.b(null,0,-1))})}this._createSlider(0,Math.floor((he.verticalScrollbarSize-he.verticalSliderSize)/2),he.verticalSliderSize,void 0)}_updateSlider(te,he){this.slider.setHeight(te),this.slider.setTop(he)}_renderDomNode(te,he){this.domNode.setWidth(he),this.domNode.setHeight(te),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(te){return this._shouldRender=this._onElementScrollSize(te.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(te.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(te.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(te,he){return he}_sliderMousePosition(te){return te.posy}_sliderOrthogonalMousePosition(te){return te.posx}_updateScrollbarSize(te){this.slider.setWidth(te)}writeScrollPosition(te,he){te.scrollTop=he}}var j=o(6),ie=o(170),U=o(34);class q{constructor(te,he,Ce){this.timestamp=te,this.deltaX=he,this.deltaY=Ce,this.score=0}}class B{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let te=1,he=0,Ce=1,Ae=this._rear;for(;;){let L=Ae===this._front?te:Math.pow(2,-Ce);if(te-=L,he+=this._memory[Ae].score*L,Ae===this._front)break;Ae=(this._capacity+Ae-1)%this._capacity,Ce++}return he<=.5}accept(te,he,Ce){let Ae=new q(te,he,Ce);Ae.score=this._computeScore(Ae),this._front===-1&&this._rear===-1?(this._memory[0]=Ae,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=Ae)}_computeScore(te){if(Math.abs(te.deltaX)>0&&Math.abs(te.deltaY)>0)return 1;let he=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],this._isAlmostInt(te.deltaX)&&this._isAlmostInt(te.deltaY)||(he+=.25),Math.min(Math.max(he,0),1)}_isAlmostInt(te){return Math.abs(Math.round(te)-te)<.01}}B.INSTANCE=new B;class se extends E.a{constructor(te,he,Ce){super(),this._onScroll=this._register(new j.a),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new j.a),te.style.overflow="hidden",this._options=function(L){let nt={lazyRender:L.lazyRender!==void 0&&L.lazyRender,className:L.className!==void 0?L.className:"",useShadows:L.useShadows===void 0||L.useShadows,handleMouseWheel:L.handleMouseWheel===void 0||L.handleMouseWheel,flipAxes:L.flipAxes!==void 0&&L.flipAxes,alwaysConsumeMouseWheel:L.alwaysConsumeMouseWheel!==void 0&&L.alwaysConsumeMouseWheel,scrollYToX:L.scrollYToX!==void 0&&L.scrollYToX,mouseWheelScrollSensitivity:L.mouseWheelScrollSensitivity!==void 0?L.mouseWheelScrollSensitivity:1,fastScrollSensitivity:L.fastScrollSensitivity!==void 0?L.fastScrollSensitivity:5,scrollPredominantAxis:L.scrollPredominantAxis===void 0||L.scrollPredominantAxis,mouseWheelSmoothScroll:L.mouseWheelSmoothScroll===void 0||L.mouseWheelSmoothScroll,arrowSize:L.arrowSize!==void 0?L.arrowSize:11,listenOnDomNode:L.listenOnDomNode!==void 0?L.listenOnDomNode:null,horizontal:L.horizontal!==void 0?L.horizontal:1,horizontalScrollbarSize:L.horizontalScrollbarSize!==void 0?L.horizontalScrollbarSize:10,horizontalSliderSize:L.horizontalSliderSize!==void 0?L.horizontalSliderSize:0,horizontalHasArrows:L.horizontalHasArrows!==void 0&&L.horizontalHasArrows,vertical:L.vertical!==void 0?L.vertical:1,verticalScrollbarSize:L.verticalScrollbarSize!==void 0?L.verticalScrollbarSize:10,verticalHasArrows:L.verticalHasArrows!==void 0&&L.verticalHasArrows,verticalSliderSize:L.verticalSliderSize!==void 0?L.verticalSliderSize:0};return nt.horizontalSliderSize=L.horizontalSliderSize!==void 0?L.horizontalSliderSize:nt.horizontalScrollbarSize,nt.verticalSliderSize=L.verticalSliderSize!==void 0?L.verticalSliderSize:nt.verticalScrollbarSize,C.f&&(nt.className+=" mac"),nt}(he),this._scrollable=Ce,this._register(this._scrollable.onScroll(L=>{this._onWillScroll.fire(L),this._onDidScroll(L),this._onScroll.fire(L)}));let Ae={onMouseWheel:L=>this._onMouseWheel(L),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new g(this._scrollable,this._options,Ae)),this._horizontalScrollbar=this._register(new T(this._scrollable,this._options,Ae)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(te),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(f.b)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(f.b)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(f.b)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,L=>this._onMouseOver(L)),this.onnonbubblingmouseout(this._listenOnDomNode,L=>this._onMouseOut(L)),this._hideTimeout=this._register(new ge.e),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(Q.f)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(te){this._verticalScrollbar.delegateMouseDown(te)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(te){this._scrollable.setScrollDimensions(te,!1)}updateClassName(te){this._options.className=te,C.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(te){te.handleMouseWheel!==void 0&&(this._options.handleMouseWheel=te.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),te.mouseWheelScrollSensitivity!==void 0&&(this._options.mouseWheelScrollSensitivity=te.mouseWheelScrollSensitivity),te.fastScrollSensitivity!==void 0&&(this._options.fastScrollSensitivity=te.fastScrollSensitivity),te.scrollPredominantAxis!==void 0&&(this._options.scrollPredominantAxis=te.scrollPredominantAxis),te.horizontalScrollbarSize!==void 0&&this._horizontalScrollbar.updateScrollbarSize(te.horizontalScrollbarSize),this._options.lazyRender||this._render()}_setListeningToMouseWheel(te){if(this._mouseWheelToDispose.length>0!==te&&(this._mouseWheelToDispose=Object(Q.f)(this._mouseWheelToDispose),te)){let he=Ce=>{this._onMouseWheel(new D.b(Ce))};this._mouseWheelToDispose.push(h.i(this._listenOnDomNode,h.c.MOUSE_WHEEL,he,{passive:!1}))}}_onMouseWheel(te){let he=B.INSTANCE;{let Ce=window.devicePixelRatio/Object(U.c)();C.i||C.d?he.accept(Date.now(),te.deltaX/Ce,te.deltaY/Ce):he.accept(Date.now(),te.deltaX,te.deltaY)}if(te.deltaY||te.deltaX){let Ce=te.deltaY*this._options.mouseWheelScrollSensitivity,Ae=te.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(Ce)>=Math.abs(Ae)?Ae=0:Ce=0),this._options.flipAxes&&([Ce,Ae]=[Ae,Ce]);let L=!C.f&&te.browserEvent&&te.browserEvent.shiftKey;!this._options.scrollYToX&&!L||Ae||(Ae=Ce,Ce=0),te.browserEvent&&te.browserEvent.altKey&&(Ae*=this._options.fastScrollSensitivity,Ce*=this._options.fastScrollSensitivity);let nt=this._scrollable.getFutureScrollPosition(),ct={};if(Ce){let Ye=nt.scrollTop-50*Ce;this._verticalScrollbar.writeScrollPosition(ct,Ye)}if(Ae){let Ye=nt.scrollLeft-50*Ae;this._horizontalScrollbar.writeScrollPosition(ct,Ye)}ct=this._scrollable.validateScrollPosition(ct),(nt.scrollLeft!==ct.scrollLeft||nt.scrollTop!==ct.scrollTop)&&(this._options.mouseWheelSmoothScroll&&he.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(ct):this._scrollable.setScrollPositionNow(ct),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(te.preventDefault(),te.stopPropagation())}_onDidScroll(te){this._shouldRender=this._horizontalScrollbar.onDidScroll(te)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(te)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let te=this._scrollable.getCurrentScrollPosition(),he=te.scrollTop>0,Ce=te.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(Ce?" left":"")),this._topShadowDomNode.setClassName("shadow"+(he?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(he?" top":"")+(Ce?" left":""))}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(te){this._mouseIsOver=!1,this._hide()}_onMouseOver(te){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class ke extends se{constructor(te,he){(he=he||{}).mouseWheelSmoothScroll=!1;let Ce=new ie.a(0,Ae=>h.Y(Ae));super(te,he,Ce),this._register(Ce)}setScrollPosition(te){this._scrollable.setScrollPositionNow(te)}}class xe extends se{constructor(te,he,Ce){super(te,he,Ce)}setScrollPosition(te){this._scrollable.setScrollPositionNow(te)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class Y extends ke{constructor(te,he){super(te,he),this._element=te,this.onScroll(Ce=>{Ce.scrollTopChanged&&(this._element.scrollTop=Ce.scrollTop),Ce.scrollLeftChanged&&(this._element.scrollLeft=Ce.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"d",function(){return Q}),o.d(w,"c",function(){return C}),o.d(w,"e",function(){return S}),o.d(w,"b",function(){return P});var h=o(8),f=o(117),D=o(9),H=o(3),E=o(58);class ge{constructor(k,l,T,N){this.searchString=k,this.isRegex=l,this.matchCase=T,this.wordSeparators=N}parseSearchRequest(){if(this.searchString==="")return null;let k;k=this.isRegex?function(N){if(!N||N.length===0)return!1;for(let b=0,g=N.length;b<g;b++)if(N.charCodeAt(b)===92){if(b++,b>=g)break;let j=N.charCodeAt(b);if(j===110||j===114||j===87||j===119)return!0}return!1}(this.searchString):this.searchString.indexOf(` + `,constraint:function(C){if(!f.i(C))return!1;let S=C;return!!f.j(S.to)&&!(!f.k(S.select)&&!f.f(S.select))&&!(!f.k(S.by)&&!f.j(S.by))&&!(!f.k(S.value)&&!f.h(S.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},y.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},y.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},y.parse=function(C){if(!C.to)return null;let S;switch(C.to){case y.RawDirection.Left:S=0;break;case y.RawDirection.Right:S=1;break;case y.RawDirection.Up:S=2;break;case y.RawDirection.Down:S=3;break;case y.RawDirection.WrappedLineStart:S=4;break;case y.RawDirection.WrappedLineFirstNonWhitespaceCharacter:S=5;break;case y.RawDirection.WrappedLineColumnCenter:S=6;break;case y.RawDirection.WrappedLineEnd:S=7;break;case y.RawDirection.WrappedLineLastNonWhitespaceCharacter:S=8;break;case y.RawDirection.ViewPortTop:S=9;break;case y.RawDirection.ViewPortBottom:S=11;break;case y.RawDirection.ViewPortCenter:S=10;break;case y.RawDirection.ViewPortIfOutside:S=12;break;default:return null}let P=0;switch(C.by){case y.RawUnit.Line:P=1;break;case y.RawUnit.WrappedLine:P=2;break;case y.RawUnit.Character:P=3;break;case y.RawUnit.HalfLine:P=4}return{direction:S,unit:P,select:!!C.select,value:C.value||1}}})(h||(h={}))},function(Ie,w){var r,h,f=Ie.exports={};function O(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}function E(k){if(r===setTimeout)return setTimeout(k,0);if((r===O||!r)&&setTimeout)return r=setTimeout,setTimeout(k,0);try{return r(k,0)}catch(l){try{return r.call(null,k,0)}catch(T){return r.call(this,k,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:O}catch(k){r=O}try{h=typeof clearTimeout=="function"?clearTimeout:H}catch(k){h=H}})();var ge,W=[],Q=!1,y=-1;function C(){Q&&ge&&(Q=!1,ge.length?W=ge.concat(W):y=-1,W.length&&S())}function S(){if(!Q){var k=E(C);Q=!0;for(var l=W.length;l;){for(ge=W,W=[];++y<l;)ge&&ge[y].run();y=-1,l=W.length}ge=null,Q=!1,function(T){if(h===clearTimeout)return clearTimeout(T);if((h===H||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(T);try{h(T)}catch(N){try{return h.call(null,T)}catch(b){return h.call(this,T)}}}(k)}}function P(k,l){this.fun=k,this.array=l}function V(){}f.nextTick=function(k){var l=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)l[T-1]=arguments[T];W.push(new P(k,l)),W.length!==1||Q||E(S)},P.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=V,f.addListener=V,f.once=V,f.off=V,f.removeListener=V,f.removeAllListeners=V,f.emit=V,f.prependListener=V,f.prependOnceListener=V,f.listeners=function(k){return[]},f.binding=function(k){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(k){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return P}),r.d(w,"a",function(){return k});var h=r(34),f=r(6),O=r(2),H=r(11);class E{constructor(T,N){this.chr=T,this.type=N,this.width=0}fulfill(T){this.width=T}}class ge{constructor(T,N){this._bareFontInfo=T,this._requests=N,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let T=document.createElement("div");T.style.position="absolute",T.style.top="-50000px",T.style.width="50000px";let N=document.createElement("div");N.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),N.style.fontWeight=this._bareFontInfo.fontWeight,N.style.fontSize=this._bareFontInfo.fontSize+"px",N.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,N.style.lineHeight=this._bareFontInfo.lineHeight+"px",N.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",T.appendChild(N);let b=document.createElement("div");b.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),b.style.fontWeight="bold",b.style.fontSize=this._bareFontInfo.fontSize+"px",b.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,b.style.lineHeight=this._bareFontInfo.lineHeight+"px",b.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",T.appendChild(b);let g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight=this._bareFontInfo.fontWeight,g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",g.style.fontStyle="italic",T.appendChild(g);let j=[];for(let ie of this._requests){let U;ie.type===0&&(U=N),ie.type===2&&(U=b),ie.type===1&&(U=g),U.appendChild(document.createElement("br"));let q=document.createElement("span");ge._render(q,ie),U.appendChild(q),j.push(q)}this._container=T,this._testElements=j}static _render(T,N){if(N.chr===" "){let b="\xA0";for(let g=0;g<8;g++)b+=b;T.innerText=b}else{let b=N.chr;for(let g=0;g<8;g++)b+=b;T.textContent=b}}_readFromDomElements(){for(let T=0,N=this._requests.length;T<N;T++){let b=this._requests[T],g=this._testElements[T];b.fulfill(g.offsetWidth/256)}}}var W=r(190),Q=r(161),y=r(26),C=r(160);class S{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(T){let N=T.getId();return!!this._values[N]}get(T){let N=T.getId();return this._values[N]}put(T,N){let b=T.getId();this._keys[b]=T,this._values[b]=N}remove(T){let N=T.getId();delete this._keys[N],delete this._values[N]}getValues(){return Object.keys(this._keys).map(T=>this._values[T])}}function P(){V.INSTANCE.clearCache()}class V extends O.a{constructor(){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._cache=new S,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new S,this._onDidChange.fire()}_writeToCache(T,N){this._cache.put(T,N),N.isTrusted||this._evictUntrustedReadingsTimeout!==-1||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let T=this._cache.getValues(),N=!1;for(let b=0,g=T.length;b<g;b++){let j=T[b];j.isTrusted||(N=!0,this._cache.remove(j))}N&&this._onDidChange.fire()}readConfiguration(T){if(!this._cache.has(T)){let N=V._actualReadConfiguration(T);(N.typicalHalfwidthCharacterWidth<=2||N.typicalFullwidthCharacterWidth<=2||N.spaceWidth<=2||N.maxDigitWidth<=2)&&(N=new C.b({zoomLevel:h.d(),fontFamily:N.fontFamily,fontWeight:N.fontWeight,fontSize:N.fontSize,fontFeatureSettings:N.fontFeatureSettings,lineHeight:N.lineHeight,letterSpacing:N.letterSpacing,isMonospace:N.isMonospace,typicalHalfwidthCharacterWidth:Math.max(N.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(N.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:N.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(N.spaceWidth,5),middotWidth:Math.max(N.middotWidth,5),wsmiddotWidth:Math.max(N.wsmiddotWidth,5),maxDigitWidth:Math.max(N.maxDigitWidth,5)},!1)),this._writeToCache(T,N)}return this._cache.get(T)}static createRequest(T,N,b,g){let j=new E(T,N);return b.push(j),g&&g.push(j),j}static _actualReadConfiguration(T){let N=[],b=[],g=this.createRequest("n",0,N,b),j=this.createRequest("\uFF4D",0,N,null),ie=this.createRequest(" ",0,N,b),U=this.createRequest("0",0,N,b),q=this.createRequest("1",0,N,b),B=this.createRequest("2",0,N,b),se=this.createRequest("3",0,N,b),ke=this.createRequest("4",0,N,b),xe=this.createRequest("5",0,N,b),Y=this.createRequest("6",0,N,b),Z=this.createRequest("7",0,N,b),te=this.createRequest("8",0,N,b),he=this.createRequest("9",0,N,b),Ce=this.createRequest("\u2192",0,N,b),Ae=this.createRequest("\uFFEB",0,N,null),L=this.createRequest("\xB7",0,N,b),nt=this.createRequest(String.fromCharCode(11825),0,N,null);this.createRequest("|",0,N,b),this.createRequest("/",0,N,b),this.createRequest("-",0,N,b),this.createRequest("_",0,N,b),this.createRequest("i",0,N,b),this.createRequest("l",0,N,b),this.createRequest("m",0,N,b),this.createRequest("|",1,N,b),this.createRequest("_",1,N,b),this.createRequest("i",1,N,b),this.createRequest("l",1,N,b),this.createRequest("m",1,N,b),this.createRequest("n",1,N,b),this.createRequest("|",2,N,b),this.createRequest("_",2,N,b),this.createRequest("i",2,N,b),this.createRequest("l",2,N,b),this.createRequest("m",2,N,b),this.createRequest("n",2,N,b),function(G,z){new ge(G,z).read()}(T,N);let ct=Math.max(U.width,q.width,B.width,se.width,ke.width,xe.width,Y.width,Z.width,te.width,he.width),Ye=T.fontFeatureSettings===y.e.OFF,ht=b[0].width;for(let G=1,z=b.length;Ye&&G<z;G++){let J=ht-b[G].width;if(J<-.001||J>.001){Ye=!1;break}}let fe=!0;Ye&&Ae.width!==ht&&(fe=!1),Ae.width>Ce.width&&(fe=!1);let $=h.b()>2e3;return new C.b({zoomLevel:h.d(),fontFamily:T.fontFamily,fontWeight:T.fontWeight,fontSize:T.fontSize,fontFeatureSettings:T.fontFeatureSettings,lineHeight:T.lineHeight,letterSpacing:T.letterSpacing,isMonospace:Ye,typicalHalfwidthCharacterWidth:g.width,typicalFullwidthCharacterWidth:j.width,canUseHalfwidthRightwardsArrow:fe,spaceWidth:ie.width,middotWidth:L.width,wsmiddotWidth:nt.width,maxDigitWidth:ct},$)}}V.INSTANCE=new V;class k extends Q.a{constructor(T,N,b=null,g){super(T,N),this.accessibilityService=g,this._elementSizeObserver=this._register(new W.a(b,N.dimension,()=>this._onReferenceDomElementSizeChanged())),this._register(V.INSTANCE.onDidChange(()=>this._onCSSBasedConfigurationChanged())),this._validatedOptions.get(9)&&this._elementSizeObserver.startObserving(),this._register(h.n(j=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(T,N){T.style.fontFamily=N.getMassagedFontFamily(),T.style.fontWeight=N.fontWeight,T.style.fontSize=N.fontSize+"px",T.style.fontFeatureSettings=N.fontFeatureSettings,T.style.lineHeight=N.lineHeight+"px",T.style.letterSpacing=N.letterSpacing+"px"}static applyFontInfo(T,N){T.setFontFamily(N.getMassagedFontFamily()),T.setFontWeight(N.fontWeight),T.setFontSize(N.fontSize),T.setFontFeatureSettings(N.fontFeatureSettings),T.setLineHeight(N.lineHeight),T.setLetterSpacing(N.letterSpacing)}_onReferenceDomElementSizeChanged(){this._recomputeOptions()}_onCSSBasedConfigurationChanged(){this._recomputeOptions()}observeReferenceElement(T){this._elementSizeObserver.observe(T)}dispose(){super.dispose()}_getExtraEditorClassName(){let T="";return h.j||h.m||(T+="no-user-select "),H.f&&(T+="mac "),T}_getEnvConfiguration(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:h.l||h.h,pixelRatio:h.a(),zoomLevel:h.d(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(T){return V.INSTANCE.readConfiguration(T)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return V}),r.d(w,"b",function(){return k}),r.d(w,"d",function(){return l}),r.d(w,"c",function(){return T});var h=r(8),f=r(3),O=r(25),H=r(2),E=r(4),ge=r(10),W=r(53),Q=r(18),y=r(115);let C=Object(Q.c)("IEditorCancelService"),S=new ge.c("cancellableOperation",!1);Object(y.b)(C,class{constructor(){this._tokens=new WeakMap}add(N,b){let g,j=this._tokens.get(N);return j||(j=N.invokeWithinContext(ie=>({key:S.bindTo(ie.get(ge.b)),tokens:new W.a})),this._tokens.set(N,j)),j.key.set(!0),g=j.tokens.push(b),()=>{g&&(g(),j.key.set(!j.tokens.isEmpty()),g=void 0)}}cancel(N){let b=this._tokens.get(N);if(!b)return;let g=b.tokens.pop();g&&(g.cancel(),b.key.set(!b.tokens.isEmpty()))}},!0);class P extends O.b{constructor(b,g){super(g),this.editor=b,this._unregister=b.invokeWithinContext(j=>j.get(C).add(b,this))}dispose(){this._unregister(),super.dispose()}}Object(E.l)(new class extends E.c{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:S})}runEditorCommand(N,b){N.get(C).cancel(b)}});class V{constructor(b,g){if(this.flags=g,(1&this.flags)!=0){let j=b.getModel();this.modelVersionId=j?h.x("{0}#{1}",j.uri.toString(),j.getVersionId()):null}else this.modelVersionId=null;(4&this.flags)!=0?this.position=b.getPosition():this.position=null,(2&this.flags)!=0?this.selection=b.getSelection():this.selection=null,(8&this.flags)!=0?(this.scrollLeft=b.getScrollLeft(),this.scrollTop=b.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(b){if(!(b instanceof V))return!1;let g=b;return this.modelVersionId===g.modelVersionId&&this.scrollLeft===g.scrollLeft&&this.scrollTop===g.scrollTop&&!(!this.position&&g.position||this.position&&!g.position||this.position&&g.position&&!this.position.equals(g.position))&&!(!this.selection&&g.selection||this.selection&&!g.selection||this.selection&&g.selection&&!this.selection.equalsRange(g.selection))}validate(b){return this._equals(new V(b,this.flags))}}class k extends P{constructor(b,g,j,ie){super(b,ie),this.editor=b,this._listener=new H.b,4&g&&this._listener.add(b.onDidChangeCursorPosition(U=>{j&&f.a.containsPosition(j,U.position)||this.cancel()})),2&g&&this._listener.add(b.onDidChangeCursorSelection(U=>{j&&f.a.containsRange(j,U.selection)||this.cancel()})),8&g&&this._listener.add(b.onDidScrollChange(U=>this.cancel())),1&g&&(this._listener.add(b.onDidChangeModel(U=>this.cancel())),this._listener.add(b.onDidChangeModelContent(U=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class l extends O.b{constructor(b,g){super(g),this._listener=b.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class T{constructor(b,g,j){this._visiblePosition=b,this._visiblePositionScrollDelta=g,this._cursorPosition=j}static capture(b){let g=null,j=0;if(b.getScrollTop()!==0){let ie=b.getVisibleRanges();if(ie.length>0){g=ie[0].getStartPosition();let U=b.getTopForPosition(g.lineNumber,g.column);j=b.getScrollTop()-U}}return new T(g,j,b.getPosition())}restore(b){if(this._visiblePosition){let g=b.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);b.setScrollTop(g+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(b){let g=b.getPosition();if(!this._cursorPosition||!g)return;let j=b.getTopForLineNumber(g.lineNumber)-b.getTopForLineNumber(this._cursorPosition.lineNumber);b.setScrollTop(b.getScrollTop()+j)}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"c",function(){return E}),r.d(w,"a",function(){return y});var h=r(8);function f(C){return O(C,0)}function O(C,S){switch(typeof C){case"object":return C===null?H(349,S):Array.isArray(C)?(P=C,V=H(104579,V=S),P.reduce((k,l)=>O(l,k),V)):function(k,l){return l=H(181387,l),Object.keys(k).sort().reduce((T,N)=>(T=E(N,T),O(k[N],T)),l)}(C,S);case"string":return E(C,S);case"boolean":return function(k,l){return H(k?433:863,l)}(C,S);case"number":return H(C,S);case"undefined":return H(937,S);default:return H(617,S)}var P,V}function H(C,S){return(S<<5)-S+C|0}function E(C,S){S=H(149417,S);for(let P=0,V=C.length;P<V;P++)S=H(C.charCodeAt(P),S);return S}function ge(C,S,P=32){let V=P-S;return(C<<S|(~((1<<V)-1)&C)>>>V)>>>0}function W(C,S=0,P=C.byteLength,V=0){for(let k=0;k<P;k++)C[S+k]=V}function Q(C,S=32){return function(P,V,k="0"){for(;P.length<V;)P=k+P;return P}((C>>>0).toString(16),S/4)}class y{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(S){let P=S.length;if(P===0)return;let V=this._buff,k,l,T=this._buffLen,N=this._leftoverHighSurrogate;for(N!==0?(k=N,l=-1,N=0):(k=S.charCodeAt(0),l=0);;){let b=k;if(h.F(k)){if(!(l+1<P)){N=k;break}{let g=S.charCodeAt(l+1);h.G(g)?(l++,b=h.j(k,g)):b=65533}}else h.G(k)&&(b=65533);if(T=this._push(V,T,b),l++,!(l<P))break;k=S.charCodeAt(l)}this._buffLen=T,this._leftoverHighSurrogate=N}_push(S,P,V){return V<128?S[P++]=V:V<2048?(S[P++]=192|(1984&V)>>>6,S[P++]=128|(63&V)>>>0):V<65536?(S[P++]=224|(61440&V)>>>12,S[P++]=128|(4032&V)>>>6,S[P++]=128|(63&V)>>>0):(S[P++]=240|(1835008&V)>>>18,S[P++]=128|(258048&V)>>>12,S[P++]=128|(4032&V)>>>6,S[P++]=128|(63&V)>>>0),P>=64&&(this._step(),P-=64,this._totalLen+=64,S[0]=S[64],S[1]=S[65],S[2]=S[66]),P}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Q(this._h0)+Q(this._h1)+Q(this._h2)+Q(this._h3)+Q(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,W(this._buff,this._buffLen),this._buffLen>56&&(this._step(),W(this._buff));let S=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(S/4294967296),!1),this._buffDV.setUint32(60,S%4294967296,!1),this._step()}_step(){let S=y._bigBlock32,P=this._buffDV;for(let ie=0;ie<64;ie+=4)S.setUint32(ie,P.getUint32(ie,!1),!1);for(let ie=64;ie<320;ie+=4)S.setUint32(ie,ge(S.getUint32(ie-12,!1)^S.getUint32(ie-32,!1)^S.getUint32(ie-56,!1)^S.getUint32(ie-64,!1),1),!1);let V,k,l,T=this._h0,N=this._h1,b=this._h2,g=this._h3,j=this._h4;for(let ie=0;ie<80;ie++)ie<20?(V=N&b|~N&g,k=1518500249):ie<40?(V=N^b^g,k=1859775393):ie<60?(V=N&b|N&g|b&g,k=2400959708):(V=N^b^g,k=3395469782),l=ge(T,5)+V+j+k+S.getUint32(4*ie,!1)&4294967295,j=g,g=b,b=ge(N,30),N=T,T=l;this._h0=this._h0+T&4294967295,this._h1=this._h1+N&4294967295,this._h2=this._h2+b&4294967295,this._h3=this._h3+g&4294967295,this._h4=this._h4+j&4294967295}}y._bigBlock32=new DataView(new ArrayBuffer(320))},function(Ie,w,r){"use strict";r.d(w,"c",function(){return O}),r.d(w,"b",function(){return H}),r.d(w,"a",function(){return E}),r.d(w,"d",function(){return ge}),r.d(w,"e",function(){return W});var h=r(77),f=r(12);let O=new class{clone(){return this}equals(Q){return this===Q}},H="vs.editor.nullMode",E=new f.r(H,0);function ge(Q,y,C,S){return new h.b([new h.a(S,"",Q)],C)}function W(Q,y,C,S){let P=new Uint32Array(2);return P[0]=S,P[1]=(16384|Q<<0|2<<23)>>>0,new h.c(P,C===null?O:C)}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return E}),r.d(w,"c",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"d",function(){return y}),r.d(w,"e",function(){return S});var h=r(8),f=r(132),O=r(155);class H{constructor(k,l,T){this.endIndex=k,this.type=l,this.metadata=T}isWhitespace(){return!!(1&this.metadata)}}class E{constructor(k,l){this.startOffset=k,this.endOffset=l}equals(k){return this.startOffset===k.startOffset&&this.endOffset===k.endOffset}}class ge{constructor(k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y,Z,te,he,Ce){this.useMonospaceOptimizations=k,this.canUseHalfwidthRightwardsArrow=l,this.lineContent=T,this.continuesWithWrappedLine=N,this.isBasicASCII=b,this.containsRTL=g,this.fauxIndentLength=j,this.lineTokens=ie,this.lineDecorations=U,this.tabSize=q,this.startVisibleColumn=B,this.spaceWidth=se,this.stopRenderingLineAfter=Y,this.renderWhitespace=Z==="all"?4:Z==="boundary"?1:Z==="selection"?2:Z==="trailing"?3:0,this.renderControlCharacters=te,this.fontLigatures=he,this.selectionsOnLine=Ce&&Ce.sort((Ae,L)=>Ae.startOffset<L.startOffset?-1:1),Math.abs(xe-se)<Math.abs(ke-se)?(this.renderSpaceWidth=xe,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=ke,this.renderSpaceCharCode=183)}sameSelection(k){if(this.selectionsOnLine===null)return k===null;if(k===null||k.length!==this.selectionsOnLine.length)return!1;for(let l=0;l<this.selectionsOnLine.length;l++)if(!this.selectionsOnLine[l].equals(k[l]))return!1;return!0}equals(k){return this.useMonospaceOptimizations===k.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===k.canUseHalfwidthRightwardsArrow&&this.lineContent===k.lineContent&&this.continuesWithWrappedLine===k.continuesWithWrappedLine&&this.isBasicASCII===k.isBasicASCII&&this.containsRTL===k.containsRTL&&this.fauxIndentLength===k.fauxIndentLength&&this.tabSize===k.tabSize&&this.startVisibleColumn===k.startVisibleColumn&&this.spaceWidth===k.spaceWidth&&this.renderSpaceWidth===k.renderSpaceWidth&&this.renderSpaceCharCode===k.renderSpaceCharCode&&this.stopRenderingLineAfter===k.stopRenderingLineAfter&&this.renderWhitespace===k.renderWhitespace&&this.renderControlCharacters===k.renderControlCharacters&&this.fontLigatures===k.fontLigatures&&O.a.equalsArr(this.lineDecorations,k.lineDecorations)&&this.lineTokens.equals(k.lineTokens)&&this.sameSelection(k.selectionsOnLine)}}class W{constructor(k,l){this.length=k,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(k){return(4294901760&k)>>>16}static getCharIndex(k){return(65535&k)>>>0}setPartData(k,l,T,N){let b=(l<<16|T<<0)>>>0;this._data[k]=b,this._absoluteOffsets[k]=N+T}getAbsoluteOffsets(){return this._absoluteOffsets}charOffsetToPartData(k){return this.length===0?0:k<0?this._data[0]:k>=this.length?this._data[this.length-1]:this._data[k]}partDataToCharOffset(k,l,T){if(this.length===0)return 0;let N=(k<<16|T<<0)>>>0,b=0,g=this.length-1;for(;b+1<g;){let se=b+g>>>1,ke=this._data[se];if(ke===N)return se;ke>N?g=se:b=se}if(b===g)return b;let j=this._data[b],ie=this._data[g];if(j===N)return b;if(ie===N)return g;let U,q=W.getPartIndex(j),B=W.getCharIndex(j);return U=q!==W.getPartIndex(ie)?l:W.getCharIndex(ie),T-B<=U-T?b:g}}class Q{constructor(k,l,T){this.characterMapping=k,this.containsRTL=l,this.containsForeignElements=T}}function y(V,k){if(V.lineContent.length===0){let l=0,T="<span><span></span></span>";if(V.lineDecorations.length>0){let N=[],b=[];for(let g=0,j=V.lineDecorations.length;g<j;g++){let ie=V.lineDecorations[g];ie.type===1&&(N.push(V.lineDecorations[g].className),l|=1),ie.type===2&&(b.push(V.lineDecorations[g].className),l|=2)}l!==0&&(T=`<span>${N.length>0?`<span class="${N.join(" ")}"></span>`:""}${b.length>0?`<span class="${b.join(" ")}"></span>`:""}</span>`)}return k.appendASCIIString(T),new Q(new W(0,0),!1,l)}return function(l,T){let N=l.fontIsMonospace,b=l.canUseHalfwidthRightwardsArrow,g=l.containsForeignElements,j=l.lineContent,ie=l.len,U=l.isOverflowing,q=l.parts,B=l.fauxIndentLength,se=l.tabSize,ke=l.startVisibleColumn,xe=l.containsRTL,Y=l.spaceWidth,Z=l.renderSpaceCharCode,te=l.renderWhitespace,he=l.renderControlCharacters,Ce=new W(ie+1,q.length),Ae=0,L=ke,nt=0,ct=0,Ye=0,ht=0;xe?T.appendASCIIString('<span dir="ltr">'):T.appendASCIIString("<span>");for(let fe=0,$=q.length;fe<$;fe++){ht+=Ye;let G=q[fe],z=G.endIndex,J=G.type,Se=te!==0&&G.isWhitespace(),A=Se&&!N&&(J==="mtkw"||!g),ee=Ae===z&&G.metadata===4;if(nt=0,T.appendASCIIString('<span class="'),T.appendASCIIString(A?"mtkz":J),T.appendASCII(34),Se){let de=0;{let De=Ae,$e=L;for(;De<z;De++){let pt=0|(j.charCodeAt(De)===9?se-$e%se:1);de+=pt,De>=B&&($e+=pt)}}for(A&&(T.appendASCIIString(' style="width:'),T.appendASCIIString(String(Y*de)),T.appendASCIIString('px"')),T.appendASCII(62);Ae<z;Ae++){Ce.setPartData(Ae,fe-ct,nt,ht),ct=0;let De;if(j.charCodeAt(Ae)===9){De=se-L%se|0,!b||De>1?T.write1(8594):T.write1(65515);for(let $e=2;$e<=De;$e++)T.write1(160)}else De=1,T.write1(Z);nt+=De,Ae>=B&&(L+=De)}Ye=de}else{let de=0;for(T.appendASCII(62);Ae<z;Ae++){Ce.setPartData(Ae,fe-ct,nt,ht),ct=0;let De=j.charCodeAt(Ae),$e=1,pt=1;switch(De){case 9:$e=se-L%se,pt=$e;for(let it=1;it<=$e;it++)T.write1(160);break;case 32:T.write1(160);break;case 60:T.appendASCIIString("<");break;case 62:T.appendASCIIString(">");break;case 38:T.appendASCIIString("&");break;case 0:T.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:T.write1(65533);break;default:h.E(De)&&pt++,he&&De<32?T.write1(9216+De):T.write1(De)}nt+=$e,de+=$e,Ae>=B&&(L+=pt)}Ye=de}ee?ct++:ct=0,T.appendASCIIString("</span>")}return Ce.setPartData(ie,q.length-1,nt,ht),U&&T.appendASCIIString("<span>…</span>"),T.appendASCIIString("</span>"),new Q(Ce,xe,g)}(function(l){let T=l.lineContent,N,b;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter<T.length?(N=!0,b=l.stopRenderingLineAfter):(N=!1,b=T.length);let g=function(ie,U,q){let B=[],se=0;U>0&&(B[se++]=new H(U,"",0));for(let ke=0,xe=ie.getCount();ke<xe;ke++){let Y=ie.getEndOffset(ke);if(Y<=U)continue;let Z=ie.getClassName(ke);if(Y>=q){B[se++]=new H(q,Z,0);break}B[se++]=new H(Y,Z,0)}return B}(l.lineTokens,l.fauxIndentLength,b);(l.renderWhitespace===4||l.renderWhitespace===1||l.renderWhitespace===2&&l.selectionsOnLine||l.renderWhitespace===3)&&(g=function(ie,U,q,B){let se=ie.continuesWithWrappedLine,ke=ie.fauxIndentLength,xe=ie.tabSize,Y=ie.startVisibleColumn,Z=ie.useMonospaceOptimizations,te=ie.selectionsOnLine,he=ie.renderWhitespace===1,Ce=ie.renderWhitespace===3,Ae=ie.renderSpaceWidth!==ie.spaceWidth,L=[],nt=0,ct=0,Ye=B[ct].type,ht=B[ct].endIndex,fe=B.length,$,G=!1,z=h.w(U);z===-1?(G=!0,z=q,$=q):$=h.J(U);let J=!1,Se=0,A=te&&te[Se],ee=Y%xe;for(let De=ke;De<q;De++){let $e=U.charCodeAt(De),pt;if(A&&De>=A.endOffset&&(Se++,A=te&&te[Se]),De<z||De>$)pt=!0;else if($e===9)pt=!0;else if($e===32)if(he)if(J)pt=!0;else{let it=De+1<q?U.charCodeAt(De+1):0;pt=it===32||it===9}else pt=!0;else pt=!1;if(pt&&te&&(pt=!!A&&A.startOffset<=De&&A.endOffset>De),pt&&Ce&&(pt=G||De>$),J){if(!pt||!Z&&ee>=xe){if(Ae)for(let it=(nt>0?L[nt-1].endIndex:ke)+1;it<=De;it++)L[nt++]=new H(it,"mtkw",1);else L[nt++]=new H(De,"mtkw",1);ee%=xe}}else(De===ht||pt&&De>ke)&&(L[nt++]=new H(De,Ye,0),ee%=xe);for($e===9?ee=xe:h.E($e)?ee+=2:ee++,J=pt;De===ht;)ct++,ct<fe&&(Ye=B[ct].type,ht=B[ct].endIndex)}let de=!1;if(J)if(se&&he){let De=q>0?U.charCodeAt(q-1):0,$e=q>1?U.charCodeAt(q-2):0;De===32&&$e!==32&&$e!==9||(de=!0)}else de=!0;if(de)if(Ae)for(let De=(nt>0?L[nt-1].endIndex:ke)+1;De<=q;De++)L[nt++]=new H(De,"mtkw",1);else L[nt++]=new H(q,"mtkw",1);else L[nt++]=new H(q,Ye,0);return L}(l,T,b,g));let j=0;if(l.lineDecorations.length>0){for(let ie=0,U=l.lineDecorations.length;ie<U;ie++){let q=l.lineDecorations[ie];q.type===3||q.type===1?j|=1:q.type===2&&(j|=2)}g=function(ie,U,q,B){B.sort(O.a.compare);let se=O.b.normalize(ie,B),ke=se.length,xe=0,Y=[],Z=0,te=0;for(let Ce=0,Ae=q.length;Ce<Ae;Ce++){let L=q[Ce],nt=L.endIndex,ct=L.type,Ye=L.metadata;for(;xe<ke&&se[xe].startOffset<nt;){let ht=se[xe];if(ht.startOffset>te&&(te=ht.startOffset,Y[Z++]=new H(te,ct,Ye)),!(ht.endOffset+1<=nt)){te=nt,Y[Z++]=new H(te,ct+" "+ht.className,Ye|ht.metadata);break}te=ht.endOffset+1,Y[Z++]=new H(te,ct+" "+ht.className,Ye|ht.metadata),xe++}nt>te&&(te=nt,Y[Z++]=new H(te,ct,Ye))}let he=q[q.length-1].endIndex;if(xe<ke&&se[xe].startOffset===he){let Ce=[],Ae=0;for(;xe<ke&&se[xe].startOffset===he;)Ce.push(se[xe].className),Ae|=se[xe].metadata,xe++;Y[Z++]=new H(te,Ce.join(" "),Ae)}return Y}(T,0,g,l.lineDecorations)}return l.containsRTL||(g=function(ie,U,q){let B=0,se=[],ke=0;if(q)for(let xe=0,Y=U.length;xe<Y;xe++){let Z=U[xe],te=Z.endIndex;if(B+50<te){let he=Z.type,Ce=Z.metadata,Ae=-1,L=B;for(let nt=B;nt<te;nt++)ie.charCodeAt(nt)===32&&(Ae=nt),Ae!==-1&&nt-L>=50&&(se[ke++]=new H(Ae+1,he,Ce),L=Ae+1,Ae=-1);L!==te&&(se[ke++]=new H(te,he,Ce))}else se[ke++]=Z;B=te}else for(let xe=0,Y=U.length;xe<Y;xe++){let Z=U[xe],te=Z.endIndex,he=te-B;if(he>50){let Ce=Z.type,Ae=Z.metadata,L=Math.ceil(he/50);for(let nt=1;nt<L;nt++){let ct=B+50*nt;se[ke++]=new H(ct,Ce,Ae)}se[ke++]=new H(te,Ce,Ae)}else se[ke++]=Z;B=te}return se}(T,g,!l.isBasicASCII||l.fontLigatures)),new P(l.useMonospaceOptimizations,l.canUseHalfwidthRightwardsArrow,T,b,N,g,j,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.renderSpaceCharCode,l.renderWhitespace,l.renderControlCharacters)}(V),k)}class C{constructor(k,l,T,N){this.characterMapping=k,this.html=l,this.containsRTL=T,this.containsForeignElements=N}}function S(V){let k=Object(f.a)(1e4),l=y(V,k);return new C(l.characterMapping,k.build(),l.containsRTL,l.containsForeignElements)}class P{constructor(k,l,T,N,b,g,j,ie,U,q,B,se,ke,xe,Y){this.fontIsMonospace=k,this.canUseHalfwidthRightwardsArrow=l,this.lineContent=T,this.len=N,this.isOverflowing=b,this.parts=g,this.containsForeignElements=j,this.fauxIndentLength=ie,this.tabSize=U,this.startVisibleColumn=q,this.containsRTL=B,this.spaceWidth=se,this.renderSpaceCharCode=ke,this.renderWhitespace=xe,this.renderControlCharacters=Y}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge});var h=r(43),f=r(11),O=r(27),H=r(56);class E{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(y){if(f.a===1){if(y&&y.win)return y.win}else if(f.a===2){if(y&&y.mac)return y.mac}else if(y&&y.linux)return y.linux;return y}registerKeybindingRule(y){let C=E.bindToCurrentPlatform(y);if(C&&C.primary){let S=Object(h.f)(C.primary,f.a);S&&this._registerDefaultKeybinding(S,y.id,y.args,y.weight,0,y.when)}if(C&&Array.isArray(C.secondary))for(let S=0,P=C.secondary.length;S<P;S++){let V=C.secondary[S],k=Object(h.f)(V,f.a);k&&this._registerDefaultKeybinding(k,y.id,y.args,y.weight,-S-1,y.when)}}registerCommandAndKeybindingRule(y){this.registerKeybindingRule(y),O.a.registerCommand(y)}static _mightProduceChar(y){return y>=21&&y<=30||y>=31&&y<=56||y===80||y===81||y===82||y===83||y===84||y===85||y===86||y===110||y===111||y===87||y===88||y===89||y===90||y===91||y===92}_assertNoCtrlAlt(y,C){y.ctrlKey&&y.altKey&&!y.metaKey&&E._mightProduceChar(y.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",y," for ",C)}_registerDefaultKeybinding(y,C,S,P,V,k){f.a===1&&this._assertNoCtrlAlt(y.parts[0],C),this._coreKeybindings.push({keybinding:y,command:C,commandArgs:S,when:k,weight1:P,weight2:V,extensionId:null}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(W)),this._cachedMergedKeybindings.slice(0)}}let ge=new E;function W(Q,y){return Q.weight1!==y.weight1?Q.weight1-y.weight1:Q.command<y.command?-1:Q.command>y.command?1:Q.weight2-y.weight2}H.a.add("platform.keybindingsRegistry",ge)},function(Ie,w,r){"use strict";r.d(w,"d",function(){return f}),r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E}),r.d(w,"e",function(){return ge}),r.d(w,"c",function(){return Q});var h=r(5);function f(y,C){let S=Object.create(null);for(let P in C){let V=C[P];V&&(S[P]=Object(h.hc)(V,y))}return S}function O(y,C,S){function P(V){let k=f(y.getColorTheme(),C);typeof S=="function"?S(k):S.style(k)}return P(y.getColorTheme()),y.onDidColorThemeChange(P)}function H(y,C,S){return O(C,{badgeBackground:S&&S.badgeBackground||h.c,badgeForeground:S&&S.badgeForeground||h.d,badgeBorder:h.h},y)}function E(y,C,S){return O(C,Object.assign(Object.assign({},ge),S||{}),y)}let ge={listFocusBackground:h.xb,listFocusForeground:h.yb,listActiveSelectionBackground:Object(h.i)(h.rb,.1),listActiveSelectionForeground:h.sb,listFocusAndSelectionBackground:h.rb,listFocusAndSelectionForeground:h.sb,listInactiveSelectionBackground:h.Db,listInactiveSelectionForeground:h.Eb,listInactiveFocusBackground:h.Cb,listHoverBackground:h.Ab,listHoverForeground:h.Bb,listDropBackground:h.tb,listFocusOutline:h.b,listSelectionOutline:h.b,listHoverOutline:h.b,listFilterWidgetBackground:h.ub,listFilterWidgetOutline:h.wb,listFilterWidgetNoMatchesOutline:h.vb,listMatchesShadow:h.uc,treeIndentGuidesStroke:h.tc},W={shadowColor:h.uc,borderColor:h.Gb,foregroundColor:h.Hb,backgroundColor:h.Fb,selectionForegroundColor:h.Kb,selectionBackgroundColor:h.Ib,selectionBorderColor:h.Jb,separatorColor:h.Lb};function Q(y,C,S){return O(C,Object.assign(Object.assign({},W),S),y)}},function(Ie,w,r){"use strict";r.d(w,"c",function(){return ge}),r.d(w,"a",function(){return Q}),r.d(w,"b",function(){return y});var h=r(13),f=r(2),O=r(11),H=r(14);let E=!1;function ge(C){O.h&&(E||(E=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(C.message))}class W{constructor(S){this._workerId=-1,this._handler=S,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(S){this._workerId=S}sendMessage(S,P){let V=String(++this._lastSentReq);return new Promise((k,l)=>{this._pendingReplies[V]={resolve:k,reject:l},this._send({vsWorker:this._workerId,req:V,method:S,args:P})})}handleMessage(S){S&&S.vsWorker&&(this._workerId!==-1&&S.vsWorker!==this._workerId||this._handleMessage(S))}_handleMessage(S){if(S.seq){let k=S;if(!this._pendingReplies[k.seq])return void console.warn("Got reply to unknown seq");let l=this._pendingReplies[k.seq];if(delete this._pendingReplies[k.seq],k.err){let T=k.err;return k.err.$isError&&(T=new Error,T.name=k.err.name,T.message=k.err.message,T.stack=k.err.stack),void l.reject(T)}return void l.resolve(k.res)}let P=S,V=P.req;this._handler.handleMessage(P.method,P.args).then(k=>{this._send({vsWorker:this._workerId,seq:V,res:k,err:void 0})},k=>{k.detail instanceof Error&&(k.detail=Object(h.g)(k.detail)),this._send({vsWorker:this._workerId,seq:V,res:void 0,err:Object(h.g)(k)})})}_send(S){let P=[];if(S.req){let V=S;for(let k=0;k<V.args.length;k++)V.args[k]instanceof ArrayBuffer&&P.push(V.args[k])}else{let V=S;V.res instanceof ArrayBuffer&&P.push(V.res)}this._handler.sendMessage(S,P)}}class Q extends f.a{constructor(S,P,V){super();let k=null;this._worker=this._register(S.create("vs/base/common/worker/simpleWorker",b=>{this._protocol.handleMessage(b)},b=>{k&&k(b)})),this._protocol=new W({sendMessage:(b,g)=>{this._worker.postMessage(b,g)},handleMessage:(b,g)=>{if(typeof V[b]!="function")return Promise.reject(new Error("Missing method "+b+" on main thread host."));try{return Promise.resolve(V[b].apply(V,g))}catch(j){return Promise.reject(j)}}}),this._protocol.setWorkerId(this._worker.getId());let l=null;self.require!==void 0&&typeof self.require.getConfig=="function"?l=self.require.getConfig():self.requirejs!==void 0&&(l=self.requirejs.s.contexts._.config);let T=H.d(V);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(l)),P,T]);let N=(b,g)=>this._request(b,g);this._lazyProxy=new Promise((b,g)=>{k=g,this._onModuleLoaded.then(j=>{b(H.c(j,N))},j=>{g(j),this._onError("Worker failed to load "+P,j)})})}getProxyObject(){return this._lazyProxy}_request(S,P){return new Promise((V,k)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(S,P).then(V,k)},k)})}_onError(S,P){console.error(S),console.info(P)}}class y{constructor(S,P){this._requestHandlerFactory=P,this._requestHandler=null,this._protocol=new W({sendMessage:(V,k)=>{S(V,k)},handleMessage:(V,k)=>this._handleMessage(V,k)})}onmessage(S){this._protocol.handleMessage(S)}_handleMessage(S,P){if(S==="$initialize")return this.initialize(P[0],P[1],P[2],P[3]);if(!this._requestHandler||typeof this._requestHandler[S]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+S));try{return Promise.resolve(this._requestHandler[S].apply(this._requestHandler,P))}catch(V){return Promise.reject(V)}}initialize(S,P,V,k){this._protocol.setWorkerId(S);let l=H.c(k,(T,N)=>this._protocol.sendMessage(T,N));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(H.d(this._requestHandler))):(P&&(P.baseUrl!==void 0&&delete P.baseUrl,P.paths!==void 0&&P.paths.vs!==void 0&&delete P.paths.vs,P.catchError=!0,self.require.config(P)),new Promise((T,N)=>{self.require([V],b=>{this._requestHandler=b.create(l),this._requestHandler?T(H.d(this._requestHandler)):N(new Error("No RequestHandler!"))},N)}))}}},function(Ie,w,r){"use strict";var h=r(108);r.d(w,"a",function(){return h.n})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("editorWorkerService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return E}),r.d(w,"c",function(){return ge}),r.d(w,"b",function(){return W});var h=r(18),f=r(6),O=r(2),H=r(14);let E=Object(h.c)("storageService");var ge;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.SHUTDOWN=1]="SHUTDOWN"})(ge||(ge={}));class W extends O.a{constructor(){super(...arguments),this._onDidChangeStorage=this._register(new f.a),this._onWillSaveState=this._register(new f.a),this.onWillSaveState=this._onWillSaveState.event,this.globalCache=new Map,this.workspaceCache=new Map}getCache(y){return y===0?this.globalCache:this.workspaceCache}get(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:P}getBoolean(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:P==="true"}getNumber(y,C,S){let P=this.getCache(C).get(y);return Object(H.l)(P)?S:parseInt(P,10)}store(y,C,S){if(Object(H.l)(C))return this.remove(y,S);let P=String(C);return this.getCache(S).get(y)===P||(this.getCache(S).set(y,P),this._onDidChangeStorage.fire({scope:S,key:y})),Promise.resolve()}remove(y,C){return this.getCache(C).delete(y)&&this._onDidChangeStorage.fire({scope:C,key:y}),Promise.resolve()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});let h=0;function f(O,H,E){return function(){let ge="$memoize"+h++,W,Q=function(y,C,S){let P=null,V=null;if(typeof S.value=="function"?(P="value",V=S.value,V.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(P="get",V=S.get),!V)throw new Error("not supported");let k=`${ge}:${C}`;S[P]=function(...l){return W=this,this.hasOwnProperty(k)||Object.defineProperty(this,k,{configurable:!0,enumerable:!1,writable:!0,value:V.apply(this,l)}),this[k]}};return Q.clear=()=>{W!==void 0&&Object.getOwnPropertyNames(W).forEach(y=>{y.indexOf(ge)===0&&delete W[y]})},Q}()(O,H,E)}},function(Ie,w,r){"use strict";var h;r.d(w,"a",function(){return h}),function(f){function O(E,ge){if(E.start>=ge.end||ge.start>=E.end)return{start:0,end:0};let W=Math.max(E.start,ge.start),Q=Math.min(E.end,ge.end);return Q-W<=0?{start:0,end:0}:{start:W,end:Q}}function H(E){return E.end-E.start<=0}f.intersect=O,f.isEmpty=H,f.intersects=function(E,ge){return!H(O(E,ge))},f.relativeComplement=function(E,ge){let W=[],Q={start:E.start,end:Math.min(ge.start,E.end)},y={start:Math.max(ge.end,E.start),end:E.end};return H(Q)||W.push(Q),H(y)||W.push(y),W}}(h||(h={}))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return S});var h=r(25),f=r(6),O=r(43),H=r(23),E=r(9),ge=r(3),W=r(21),Q=r(77),y=r(40);class C{static chord(V,k){return Object(O.a)(V,k)}}function S(){return{editor:void 0,languages:void 0,CancellationTokenSource:h.b,Emitter:f.a,KeyCode:y.o,KeyMod:C,Position:E.a,Range:ge.a,Selection:W.a,SelectionDirection:y.z,MarkerSeverity:y.p,MarkerTag:y.q,Uri:H.a,Token:Q.a}}C.CtrlCmd=2048,C.Shift=1024,C.Alt=512,C.WinCtrl=256},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"a",function(){return O});var h=r(36);class f{constructor(E,ge){this.index=E,this.remainder=ge}}class O{constructor(E){this.values=E,this.prefixSum=new Uint32Array(E.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(E,ge){E=Object(h.a)(E);let W=this.values,Q=this.prefixSum,y=ge.length;return y!==0&&(this.values=new Uint32Array(W.length+y),this.values.set(W.subarray(0,E),0),this.values.set(W.subarray(E),E+y),this.values.set(ge,E),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(Q.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(E,ge){return E=Object(h.a)(E),ge=Object(h.a)(ge),this.values[E]!==ge&&(this.values[E]=ge,E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),!0)}removeValues(E,ge){E=Object(h.a)(E),ge=Object(h.a)(ge);let W=this.values,Q=this.prefixSum;if(E>=W.length)return!1;let y=W.length-E;return ge>=y&&(ge=y),ge!==0&&(this.values=new Uint32Array(W.length-ge),this.values.set(W.subarray(0,E),0),this.values.set(W.subarray(E+ge),E),this.prefixSum=new Uint32Array(this.values.length),E-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=E-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(Q.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(E){return E<0?0:(E=Object(h.a)(E),this._getAccumulatedValue(E))}_getAccumulatedValue(E){if(E<=this.prefixSumValidIndex[0])return this.prefixSum[E];let ge=this.prefixSumValidIndex[0]+1;ge===0&&(this.prefixSum[0]=this.values[0],ge++),E>=this.values.length&&(E=this.values.length-1);for(let W=ge;W<=E;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],E),this.prefixSum[E]}getIndexOf(E){E=Math.floor(E),this.getTotalValue();let ge=0,W=this.values.length-1,Q=0,y=0,C=0;for(;ge<=W;)if(Q=ge+(W-ge)/2|0,y=this.prefixSum[Q],C=y-this.values[Q],E<C)W=Q-1;else{if(!(E>=y))break;ge=Q+1}return new f(Q,E-C)}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return H}),r.d(w,"c",function(){return E}),r.d(w,"a",function(){return Q});var h=r(18),f=r(2),O=r(6);let H=Object(h.c)("logService");var E;(function(y){y[y.Trace=0]="Trace",y[y.Debug=1]="Debug",y[y.Info=2]="Info",y[y.Warning=3]="Warning",y[y.Error=4]="Error",y[y.Critical=5]="Critical",y[y.Off=6]="Off"})(E||(E={}));let ge=E.Info;class W extends f.a{constructor(){super(...arguments),this.level=ge,this._onDidChangeLogLevel=this._register(new O.a)}setLevel(C){this.level!==C&&(this.level=C,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class Q extends W{constructor(C=ge){super(),this.setLevel(C)}trace(C,...S){this.getLevel()<=E.Trace&&console.log("%cTRACE","color: #888",C,...S)}info(C,...S){this.getLevel()<=E.Info&&console.log("%c INFO","color: #33f",C,...S)}error(C,...S){this.getLevel()<=E.Error&&console.log("%c ERR","color: #f33",C,...S)}dispose(){}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return W}),r.d(w,"a",function(){return Q});var h=r(1),f=r(11),O=r(177),H=r(69),E=r(2),ge=r(138);function W(y,C){let S=new H.a(C);return S.preventDefault(),{leftButton:S.leftButton,buttons:S.buttons,posx:S.posx,posy:S.posy}}class Q{constructor(){this._hooks=new E.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(C){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;let S=this._onStopCallback;this._onStopCallback=null,C&&S&&S()}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(C,S,P,V,k){if(this.isMonitoring())return;this._mouseMoveEventMerger=P,this._mouseMoveCallback=V,this._onStopCallback=k;let l=O.a.getSameOriginWindowChain(),T=f.c&&ge.a.pointerEvents?"pointermove":"mousemove",N=f.c&&ge.a.pointerEvents?"pointerup":"mouseup",b=l.map(j=>j.window.document),g=h.E(C);g&&b.unshift(g);for(let j of b)this._hooks.add(h.l(j,T,ie=>{ie.buttons===S?this._mouseMoveCallback(ie):this.stopMonitoring(!0)},(ie,U)=>this._mouseMoveEventMerger(ie,U))),this._hooks.add(h.i(j,N,ie=>this.stopMonitoring(!0)));if(O.a.hasDifferentOriginAncestor()){let j=l[l.length-1];this._hooks.add(h.i(j.window.document,"mouseout",ie=>{new H.a(ie).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.i(j.window.document,"mouseover",ie=>{new H.a(ie).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(h.i(j.window.document.body,"mouseleave",ie=>{this.stopMonitoring(!0)}))}}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Ye});var h=r(16);class f{constructor(fe,$,G,z){this.originalStart=fe,this.originalLength=$,this.modifiedStart=G,this.modifiedLength=z}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var O=r(89);class H{constructor(fe){this.source=fe}getElements(){let fe=this.source,$=new Int32Array(fe.length);for(let G=0,z=fe.length;G<z;G++)$[G]=fe.charCodeAt(G);return $}}function E(ht,fe,$){return new y(new H(ht),new H(fe)).ComputeDiff($).changes}class ge{static Assert(fe,$){if(!fe)throw new Error($)}}class W{static Copy(fe,$,G,z,J){for(let Se=0;Se<J;Se++)G[z+Se]=fe[$+Se]}static Copy2(fe,$,G,z,J){for(let Se=0;Se<J;Se++)G[z+Se]=fe[$+Se]}}class Q{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new f(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(fe,$){this.m_originalStart=Math.min(this.m_originalStart,fe),this.m_modifiedStart=Math.min(this.m_modifiedStart,$),this.m_originalCount++}AddModifiedElement(fe,$){this.m_originalStart=Math.min(this.m_originalStart,fe),this.m_modifiedStart=Math.min(this.m_modifiedStart,$),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class y{constructor(fe,$,G=null){this.ContinueProcessingPredicate=G;let[z,J,Se]=y._getElements(fe),[A,ee,de]=y._getElements($);this._hasStrings=Se&&de,this._originalStringElements=z,this._originalElementsOrHash=J,this._modifiedStringElements=A,this._modifiedElementsOrHash=ee,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(fe){return fe.length>0&&typeof fe[0]=="string"}static _getElements(fe){let $=fe.getElements();if(y._isStringArray($)){let G=new Int32Array($.length);for(let z=0,J=$.length;z<J;z++)G[z]=Object(O.c)($[z],0);return[$,G,!0]}return $ instanceof Int32Array?[[],$,!1]:[[],new Int32Array($),!1]}ElementsAreEqual(fe,$){return this._originalElementsOrHash[fe]===this._modifiedElementsOrHash[$]&&(!this._hasStrings||this._originalStringElements[fe]===this._modifiedStringElements[$])}OriginalElementsAreEqual(fe,$){return this._originalElementsOrHash[fe]===this._originalElementsOrHash[$]&&(!this._hasStrings||this._originalStringElements[fe]===this._originalStringElements[$])}ModifiedElementsAreEqual(fe,$){return this._modifiedElementsOrHash[fe]===this._modifiedElementsOrHash[$]&&(!this._hasStrings||this._modifiedStringElements[fe]===this._modifiedStringElements[$])}ComputeDiff(fe){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,fe)}_ComputeDiff(fe,$,G,z,J){let Se=[!1],A=this.ComputeDiffRecursive(fe,$,G,z,Se);return J&&(A=this.PrettifyChanges(A)),{quitEarly:Se[0],changes:A}}ComputeDiffRecursive(fe,$,G,z,J){for(J[0]=!1;fe<=$&&G<=z&&this.ElementsAreEqual(fe,G);)fe++,G++;for(;$>=fe&&z>=G&&this.ElementsAreEqual($,z);)$--,z--;if(fe>$||G>z){let $e;return G<=z?(ge.Assert(fe===$+1,"originalStart should only be one more than originalEnd"),$e=[new f(fe,0,G,z-G+1)]):fe<=$?(ge.Assert(G===z+1,"modifiedStart should only be one more than modifiedEnd"),$e=[new f(fe,$-fe+1,G,0)]):(ge.Assert(fe===$+1,"originalStart should only be one more than originalEnd"),ge.Assert(G===z+1,"modifiedStart should only be one more than modifiedEnd"),$e=[]),$e}let Se=[0],A=[0],ee=this.ComputeRecursionPoint(fe,$,G,z,Se,A,J),de=Se[0],De=A[0];if(ee!==null)return ee;if(!J[0]){let $e=this.ComputeDiffRecursive(fe,de,G,De,J),pt=[];return pt=J[0]?[new f(de+1,$-(de+1)+1,De+1,z-(De+1)+1)]:this.ComputeDiffRecursive(de+1,$,De+1,z,J),this.ConcatenateChanges($e,pt)}return[new f(fe,$-fe+1,G,z-G+1)]}WALKTRACE(fe,$,G,z,J,Se,A,ee,de,De,$e,pt,it,At,Nt,_i,wt,Ni){let pi=null,et=null,Wt=new Q,Li=$,Ii=G,Ai=it[0]-_i[0]-z,Zi=-1073741824,Bi=this.m_forwardHistory.length-1;do{let Lt=Ai+fe;Lt===Li||Lt<Ii&&de[Lt-1]<de[Lt+1]?(At=($e=de[Lt+1])-Ai-z,$e<Zi&&Wt.MarkNextChange(),Zi=$e,Wt.AddModifiedElement($e+1,At),Ai=Lt+1-fe):(At=($e=de[Lt-1]+1)-Ai-z,$e<Zi&&Wt.MarkNextChange(),Zi=$e-1,Wt.AddOriginalElement($e,At+1),Ai=Lt-1-fe),Bi>=0&&(fe=(de=this.m_forwardHistory[Bi])[0],Li=1,Ii=de.length-1)}while(--Bi>=-1);if(pi=Wt.getReverseChanges(),Ni[0]){let Lt=it[0]+1,Oi=_i[0]+1;if(pi!==null&&pi.length>0){let gt=pi[pi.length-1];Lt=Math.max(Lt,gt.getOriginalEnd()),Oi=Math.max(Oi,gt.getModifiedEnd())}et=[new f(Lt,pt-Lt+1,Oi,Nt-Oi+1)]}else{Wt=new Q,Li=Se,Ii=A,Ai=it[0]-_i[0]-ee,Zi=1073741824,Bi=wt?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let Lt=Ai+J;Lt===Li||Lt<Ii&&De[Lt-1]>=De[Lt+1]?(At=($e=De[Lt+1]-1)-Ai-ee,$e>Zi&&Wt.MarkNextChange(),Zi=$e+1,Wt.AddOriginalElement($e+1,At+1),Ai=Lt+1-J):(At=($e=De[Lt-1])-Ai-ee,$e>Zi&&Wt.MarkNextChange(),Zi=$e,Wt.AddModifiedElement($e+1,At+1),Ai=Lt-1-J),Bi>=0&&(J=(De=this.m_reverseHistory[Bi])[0],Li=1,Ii=De.length-1)}while(--Bi>=-1);et=Wt.getChanges()}return this.ConcatenateChanges(pi,et)}ComputeRecursionPoint(fe,$,G,z,J,Se,A){let ee=0,de=0,De=0,$e=0,pt=0,it=0;fe--,G--,J[0]=0,Se[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let At=$-fe+(z-G),Nt=At+1,_i=new Int32Array(Nt),wt=new Int32Array(Nt),Ni=z-G,pi=$-fe,et=fe-G,Wt=$-z,Li=(pi-Ni)%2==0;_i[Ni]=fe,wt[pi]=$,A[0]=!1;for(let Ii=1;Ii<=At/2+1;Ii++){let Ai=0,Zi=0;De=this.ClipDiagonalBound(Ni-Ii,Ii,Ni,Nt),$e=this.ClipDiagonalBound(Ni+Ii,Ii,Ni,Nt);for(let Lt=De;Lt<=$e;Lt+=2){ee=Lt===De||Lt<$e&&_i[Lt-1]<_i[Lt+1]?_i[Lt+1]:_i[Lt-1]+1,de=ee-(Lt-Ni)-et;let Oi=ee;for(;ee<$&&de<z&&this.ElementsAreEqual(ee+1,de+1);)ee++,de++;if(_i[Lt]=ee,ee+de>Ai+Zi&&(Ai=ee,Zi=de),!Li&&Math.abs(Lt-pi)<=Ii-1&&ee>=wt[Lt])return J[0]=ee,Se[0]=de,Oi<=wt[Lt]&&Ii<=1448?this.WALKTRACE(Ni,De,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):null}let Bi=(Ai-fe+(Zi-G)-Ii)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ai,Bi))return A[0]=!0,J[0]=Ai,Se[0]=Zi,Bi>0&&Ii<=1448?this.WALKTRACE(Ni,De,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):(fe++,G++,[new f(fe,$-fe+1,G,z-G+1)]);pt=this.ClipDiagonalBound(pi-Ii,Ii,pi,Nt),it=this.ClipDiagonalBound(pi+Ii,Ii,pi,Nt);for(let Lt=pt;Lt<=it;Lt+=2){ee=Lt===pt||Lt<it&&wt[Lt-1]>=wt[Lt+1]?wt[Lt+1]-1:wt[Lt-1],de=ee-(Lt-pi)-Wt;let Oi=ee;for(;ee>fe&&de>G&&this.ElementsAreEqual(ee,de);)ee--,de--;if(wt[Lt]=ee,Li&&Math.abs(Lt-Ni)<=Ii&&ee<=_i[Lt])return J[0]=ee,Se[0]=de,Oi>=_i[Lt]&&Ii<=1448?this.WALKTRACE(Ni,De,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A):null}if(Ii<=1447){let Lt=new Int32Array($e-De+2);Lt[0]=Ni-De+1,W.Copy2(_i,De,Lt,1,$e-De+1),this.m_forwardHistory.push(Lt),Lt=new Int32Array(it-pt+2),Lt[0]=pi-pt+1,W.Copy2(wt,pt,Lt,1,it-pt+1),this.m_reverseHistory.push(Lt)}}return this.WALKTRACE(Ni,De,$e,et,pi,pt,it,Wt,_i,wt,ee,$,J,de,z,Se,Li,A)}PrettifyChanges(fe){for(let $=0;$<fe.length;$++){let G=fe[$],z=$<fe.length-1?fe[$+1].originalStart:this._originalElementsOrHash.length,J=$<fe.length-1?fe[$+1].modifiedStart:this._modifiedElementsOrHash.length,Se=G.originalLength>0,A=G.modifiedLength>0;for(;G.originalStart+G.originalLength<z&&G.modifiedStart+G.modifiedLength<J&&(!Se||this.OriginalElementsAreEqual(G.originalStart,G.originalStart+G.originalLength))&&(!A||this.ModifiedElementsAreEqual(G.modifiedStart,G.modifiedStart+G.modifiedLength));)G.originalStart++,G.modifiedStart++;let ee=[null];$<fe.length-1&&this.ChangesOverlap(fe[$],fe[$+1],ee)&&(fe[$]=ee[0],fe.splice($+1,1),$--)}for(let $=fe.length-1;$>=0;$--){let G=fe[$],z=0,J=0;if($>0){let De=fe[$-1];De.originalLength>0&&(z=De.originalStart+De.originalLength),De.modifiedLength>0&&(J=De.modifiedStart+De.modifiedLength)}let Se=G.originalLength>0,A=G.modifiedLength>0,ee=0,de=this._boundaryScore(G.originalStart,G.originalLength,G.modifiedStart,G.modifiedLength);for(let De=1;;De++){let $e=G.originalStart-De,pt=G.modifiedStart-De;if($e<z||pt<J||Se&&!this.OriginalElementsAreEqual($e,$e+G.originalLength)||A&&!this.ModifiedElementsAreEqual(pt,pt+G.modifiedLength))break;let it=this._boundaryScore($e,G.originalLength,pt,G.modifiedLength);it>de&&(de=it,ee=De)}G.originalStart-=ee,G.modifiedStart-=ee}return fe}_OriginalIsBoundary(fe){return fe<=0||fe>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[fe])}_OriginalRegionIsBoundary(fe,$){if(this._OriginalIsBoundary(fe)||this._OriginalIsBoundary(fe-1))return!0;if($>0){let G=fe+$;if(this._OriginalIsBoundary(G-1)||this._OriginalIsBoundary(G))return!0}return!1}_ModifiedIsBoundary(fe){return fe<=0||fe>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[fe])}_ModifiedRegionIsBoundary(fe,$){if(this._ModifiedIsBoundary(fe)||this._ModifiedIsBoundary(fe-1))return!0;if($>0){let G=fe+$;if(this._ModifiedIsBoundary(G-1)||this._ModifiedIsBoundary(G))return!0}return!1}_boundaryScore(fe,$,G,z){return(this._OriginalRegionIsBoundary(fe,$)?1:0)+(this._ModifiedRegionIsBoundary(G,z)?1:0)}ConcatenateChanges(fe,$){let G=[];if(fe.length===0||$.length===0)return $.length>0?$:fe;if(this.ChangesOverlap(fe[fe.length-1],$[0],G)){let z=new Array(fe.length+$.length-1);return W.Copy(fe,0,z,0,fe.length-1),z[fe.length-1]=G[0],W.Copy($,1,z,fe.length,$.length-1),z}{let z=new Array(fe.length+$.length);return W.Copy(fe,0,z,0,fe.length),W.Copy($,0,z,fe.length,$.length),z}}ChangesOverlap(fe,$,G){if(ge.Assert(fe.originalStart<=$.originalStart,"Left change is not less than or equal to right change"),ge.Assert(fe.modifiedStart<=$.modifiedStart,"Left change is not less than or equal to right change"),fe.originalStart+fe.originalLength>=$.originalStart||fe.modifiedStart+fe.modifiedLength>=$.modifiedStart){let z=fe.originalStart,J=fe.originalLength,Se=fe.modifiedStart,A=fe.modifiedLength;return fe.originalStart+fe.originalLength>=$.originalStart&&(J=$.originalStart+$.originalLength-fe.originalStart),fe.modifiedStart+fe.modifiedLength>=$.modifiedStart&&(A=$.modifiedStart+$.modifiedLength-fe.modifiedStart),G[0]=new f(z,J,Se,A),!0}return G[0]=null,!1}ClipDiagonalBound(fe,$,G,z){if(fe>=0&&fe<z)return fe;let J=$%2==0;return fe<0?J===(G%2==0)?0:1:J===((z-G-1)%2==0)?z-1:z-2}}var C=r(11),S=r(23),P=r(9),V=r(3),k=r(8);function l(ht,fe,$,G){return new y(ht,fe,$).ComputeDiff(G)}class T{constructor(fe){let $=[],G=[];for(let z=0,J=fe.length;z<J;z++)$[z]=ie(fe[z],1),G[z]=U(fe[z],1);this.lines=fe,this._startColumns=$,this._endColumns=G}getElements(){let fe=[];for(let $=0,G=this.lines.length;$<G;$++)fe[$]=this.lines[$].substring(this._startColumns[$]-1,this._endColumns[$]-1);return fe}getStartLineNumber(fe){return fe+1}getEndLineNumber(fe){return fe+1}createCharSequence(fe,$,G){let z=[],J=[],Se=[],A=0;for(let ee=$;ee<=G;ee++){let de=this.lines[ee],De=fe?this._startColumns[ee]:1,$e=fe?this._endColumns[ee]:de.length+1;for(let pt=De;pt<$e;pt++)z[A]=de.charCodeAt(pt-1),J[A]=ee+1,Se[A]=pt,A++}return new N(z,J,Se)}}class N{constructor(fe,$,G){this._charCodes=fe,this._lineNumbers=$,this._columns=G}getElements(){return this._charCodes}getStartLineNumber(fe){return this._lineNumbers[fe]}getStartColumn(fe){return this._columns[fe]}getEndLineNumber(fe){return this._lineNumbers[fe]}getEndColumn(fe){return this._columns[fe]+1}}class b{constructor(fe,$,G,z,J,Se,A,ee){this.originalStartLineNumber=fe,this.originalStartColumn=$,this.originalEndLineNumber=G,this.originalEndColumn=z,this.modifiedStartLineNumber=J,this.modifiedStartColumn=Se,this.modifiedEndLineNumber=A,this.modifiedEndColumn=ee}static createFromDiffChange(fe,$,G){let z,J,Se,A,ee,de,De,$e;return fe.originalLength===0?(z=0,J=0,Se=0,A=0):(z=$.getStartLineNumber(fe.originalStart),J=$.getStartColumn(fe.originalStart),Se=$.getEndLineNumber(fe.originalStart+fe.originalLength-1),A=$.getEndColumn(fe.originalStart+fe.originalLength-1)),fe.modifiedLength===0?(ee=0,de=0,De=0,$e=0):(ee=G.getStartLineNumber(fe.modifiedStart),de=G.getStartColumn(fe.modifiedStart),De=G.getEndLineNumber(fe.modifiedStart+fe.modifiedLength-1),$e=G.getEndColumn(fe.modifiedStart+fe.modifiedLength-1)),new b(z,J,Se,A,ee,de,De,$e)}}class g{constructor(fe,$,G,z,J){this.originalStartLineNumber=fe,this.originalEndLineNumber=$,this.modifiedStartLineNumber=G,this.modifiedEndLineNumber=z,this.charChanges=J}static createFromDiffResult(fe,$,G,z,J,Se,A){let ee,de,De,$e,pt;if($.originalLength===0?(ee=G.getStartLineNumber($.originalStart)-1,de=0):(ee=G.getStartLineNumber($.originalStart),de=G.getEndLineNumber($.originalStart+$.originalLength-1)),$.modifiedLength===0?(De=z.getStartLineNumber($.modifiedStart)-1,$e=0):(De=z.getStartLineNumber($.modifiedStart),$e=z.getEndLineNumber($.modifiedStart+$.modifiedLength-1)),Se&&$.originalLength>0&&$.originalLength<20&&$.modifiedLength>0&&$.modifiedLength<20&&J()){let it=G.createCharSequence(fe,$.originalStart,$.originalStart+$.originalLength-1),At=z.createCharSequence(fe,$.modifiedStart,$.modifiedStart+$.modifiedLength-1),Nt=l(it,At,J,!0).changes;A&&(Nt=function(_i){if(_i.length<=1)return _i;let wt=[_i[0]],Ni=wt[0];for(let pi=1,et=_i.length;pi<et;pi++){let Wt=_i[pi],Li=Wt.originalStart-(Ni.originalStart+Ni.originalLength),Ii=Wt.modifiedStart-(Ni.modifiedStart+Ni.modifiedLength);Math.min(Li,Ii)<3?(Ni.originalLength=Wt.originalStart+Wt.originalLength-Ni.originalStart,Ni.modifiedLength=Wt.modifiedStart+Wt.modifiedLength-Ni.modifiedStart):(wt.push(Wt),Ni=Wt)}return wt}(Nt)),pt=[];for(let _i=0,wt=Nt.length;_i<wt;_i++)pt.push(b.createFromDiffChange(Nt[_i],it,At))}return new g(ee,de,De,$e,pt)}}class j{constructor(fe,$,G){this.shouldComputeCharChanges=G.shouldComputeCharChanges,this.shouldPostProcessCharChanges=G.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=G.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=G.shouldMakePrettyDiff,this.originalLines=fe,this.modifiedLines=$,this.original=new T(fe),this.modified=new T($),this.continueLineDiff=q(G.maxComputationTime),this.continueCharDiff=q(G.maxComputationTime===0?0:Math.min(G.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let fe=l(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),$=fe.changes,G=fe.quitEarly;if(this.shouldIgnoreTrimWhitespace){let A=[];for(let ee=0,de=$.length;ee<de;ee++)A.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,$[ee],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:G,changes:A}}let z=[],J=0,Se=0;for(let A=-1,ee=$.length;A<ee;A++){let de=A+1<ee?$[A+1]:null,De=de?de.originalStart:this.originalLines.length,$e=de?de.modifiedStart:this.modifiedLines.length;for(;J<De&&Se<$e;){let pt=this.originalLines[J],it=this.modifiedLines[Se];if(pt!==it){{let At=ie(pt,1),Nt=ie(it,1);for(;At>1&&Nt>1&&pt.charCodeAt(At-2)===it.charCodeAt(Nt-2);)At--,Nt--;(At>1||Nt>1)&&this._pushTrimWhitespaceCharChange(z,J+1,1,At,Se+1,1,Nt)}{let At=U(pt,1),Nt=U(it,1),_i=pt.length+1,wt=it.length+1;for(;At<_i&&Nt<wt&&pt.charCodeAt(At-1)===pt.charCodeAt(Nt-1);)At++,Nt++;(At<_i||Nt<wt)&&this._pushTrimWhitespaceCharChange(z,J+1,At,_i,Se+1,Nt,wt)}}J++,Se++}de&&(z.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,de,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),J+=de.originalLength,Se+=de.modifiedLength)}return{quitEarly:G,changes:z}}_pushTrimWhitespaceCharChange(fe,$,G,z,J,Se,A){if(this._mergeTrimWhitespaceCharChange(fe,$,G,z,J,Se,A))return;let ee;this.shouldComputeCharChanges&&(ee=[new b($,G,$,z,J,Se,J,A)]),fe.push(new g($,$,J,J,ee))}_mergeTrimWhitespaceCharChange(fe,$,G,z,J,Se,A){let ee=fe.length;if(ee===0)return!1;let de=fe[ee-1];return de.originalEndLineNumber!==0&&de.modifiedEndLineNumber!==0&&de.originalEndLineNumber+1===$&&de.modifiedEndLineNumber+1===J&&(de.originalEndLineNumber=$,de.modifiedEndLineNumber=J,this.shouldComputeCharChanges&&de.charChanges&&de.charChanges.push(new b($,G,$,z,J,Se,J,A)),!0)}}function ie(ht,fe){let $=k.w(ht);return $===-1?fe:$+1}function U(ht,fe){let $=k.J(ht);return $===-1?fe:$+2}function q(ht){if(ht===0)return()=>!0;let fe=Date.now();return()=>Date.now()-fe<ht}var B=r(101),se=r(73),ke=r(76);class xe{constructor(fe,$,G){let z=new Uint8Array(fe*$);for(let J=0,Se=fe*$;J<Se;J++)z[J]=G;this._data=z,this.rows=fe,this.cols=$}get(fe,$){return this._data[fe*this.cols+$]}set(fe,$,G){this._data[fe*this.cols+$]=G}}class Y{constructor(fe){let $=0,G=0;for(let J=0,Se=fe.length;J<Se;J++){let[A,ee,de]=fe[J];ee>$&&($=ee),A>G&&(G=A),de>G&&(G=de)}$++,G++;let z=new xe(G,$,0);for(let J=0,Se=fe.length;J<Se;J++){let[A,ee,de]=fe[J];z.set(A,ee,de)}this._states=z,this._maxCharCode=$}nextState(fe,$){return $<0||$>=this._maxCharCode?0:this._states.get(fe,$)}}let Z=null,te=null;class he{static _createLink(fe,$,G,z,J){let Se=J-1;do{let A=$.charCodeAt(Se);if(fe.get(A)!==2)break;Se--}while(Se>z);if(z>0){let A=$.charCodeAt(z-1),ee=$.charCodeAt(Se);(A===40&&ee===41||A===91&&ee===93||A===123&&ee===125)&&Se--}return{range:{startLineNumber:G,startColumn:z+1,endLineNumber:G,endColumn:Se+2},url:$.substring(z,Se+1)}}static computeLinks(fe,$=function(){return Z===null&&(Z=new Y([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Z}()){let G=function(){if(te===null){te=new ke.a(0);let J=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`;for(let A=0;A<J.length;A++)te.set(J.charCodeAt(A),1);let Se=".,;";for(let A=0;A<Se.length;A++)te.set(Se.charCodeAt(A),2)}return te}(),z=[];for(let J=1,Se=fe.getLineCount();J<=Se;J++){let A=fe.getLineContent(J),ee=A.length,de=0,De=0,$e=0,pt=1,it=!1,At=!1,Nt=!1,_i=!1;for(;de<ee;){let wt=!1,Ni=A.charCodeAt(de);if(pt===13){let pi;switch(Ni){case 40:it=!0,pi=0;break;case 41:pi=it?0:1;break;case 91:Nt=!0,At=!0,pi=0;break;case 93:Nt=!1,pi=At?0:1;break;case 123:_i=!0,pi=0;break;case 125:pi=_i?0:1;break;case 39:pi=$e===34||$e===96?0:1;break;case 34:pi=$e===39||$e===96?0:1;break;case 96:pi=$e===39||$e===34?0:1;break;case 42:pi=$e===42?1:0;break;case 124:pi=$e===124?1:0;break;case 32:pi=Nt?0:1;break;default:pi=G.get(Ni)}pi===1&&(z.push(he._createLink(G,A,J,De,de)),wt=!0)}else if(pt===12){let pi;Ni===91?(At=!0,pi=0):pi=G.get(Ni),pi===1?wt=!0:pt=13}else pt=$.nextState(pt,Ni),pt===0&&(wt=!0);wt&&(pt=1,it=!1,At=!1,_i=!1,De=de+1,$e=Ni),de++}pt===13&&z.push(he._createLink(G,A,J,De,ee))}return z}}class Ce{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(fe,$,G,z,J){if(fe&&$){let Se=this.doNavigateValueSet($,J);if(Se)return{range:fe,value:Se}}if(G&&z){let Se=this.doNavigateValueSet(z,J);if(Se)return{range:G,value:Se}}return null}doNavigateValueSet(fe,$){let G=this.numberReplace(fe,$);return G!==null?G:this.textReplace(fe,$)}numberReplace(fe,$){let G=Math.pow(10,fe.length-(fe.lastIndexOf(".")+1)),z=Number(fe),J=parseFloat(fe);return isNaN(z)||isNaN(J)||z!==J?null:z!==0||$?(z=Math.floor(z*G),z+=$?G:-G,String(z/G)):null}textReplace(fe,$){return this.valueSetsReplace(this._defaultValueSet,fe,$)}valueSetsReplace(fe,$,G){let z=null;for(let J=0,Se=fe.length;z===null&&J<Se;J++)z=this.valueSetReplace(fe[J],$,G);return z}valueSetReplace(fe,$,G){let z=fe.indexOf($);return z>=0?(z+=G?1:-1,z<0?z=fe.length-1:z%=fe.length,fe[z]):null}}Ce.INSTANCE=new Ce;var Ae=r(100),L=r(14),nt=function(ht,fe,$,G){return new($||($=Promise))(function(z,J){function Se(de){try{ee(G.next(de))}catch(De){J(De)}}function A(de){try{ee(G.throw(de))}catch(De){J(De)}}function ee(de){var De;de.done?z(de.value):(De=de.value,De instanceof $?De:new $(function($e){$e(De)})).then(Se,A)}ee((G=G.apply(ht,fe||[])).next())})};class ct extends class{constructor(fe,$,G,z){this._uri=fe,this._lines=$,this._eol=G,this._versionId=z,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(fe){fe.eol&&fe.eol!==this._eol&&(this._eol=fe.eol,this._lineStarts=null);let $=fe.changes;for(let G of $)this._acceptDeleteRange(G.range),this._acceptInsertText(new P.a(G.range.startLineNumber,G.range.startColumn),G.text);this._versionId=fe.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let fe=this._eol.length,$=this._lines.length,G=new Uint32Array($);for(let z=0;z<$;z++)G[z]=this._lines[z].length+fe;this._lineStarts=new B.a(G)}}_setLineText(fe,$){this._lines[fe]=$,this._lineStarts&&this._lineStarts.changeValue(fe,this._lines[fe].length+this._eol.length)}_acceptDeleteRange(fe){if(fe.startLineNumber!==fe.endLineNumber)this._setLineText(fe.startLineNumber-1,this._lines[fe.startLineNumber-1].substring(0,fe.startColumn-1)+this._lines[fe.endLineNumber-1].substring(fe.endColumn-1)),this._lines.splice(fe.startLineNumber,fe.endLineNumber-fe.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(fe.startLineNumber,fe.endLineNumber-fe.startLineNumber);else{if(fe.startColumn===fe.endColumn)return;this._setLineText(fe.startLineNumber-1,this._lines[fe.startLineNumber-1].substring(0,fe.startColumn-1)+this._lines[fe.startLineNumber-1].substring(fe.endColumn-1))}}_acceptInsertText(fe,$){if($.length===0)return;let G=$.split(/\r\n|\r|\n/);if(G.length===1)return void this._setLineText(fe.lineNumber-1,this._lines[fe.lineNumber-1].substring(0,fe.column-1)+G[0]+this._lines[fe.lineNumber-1].substring(fe.column-1));G[G.length-1]+=this._lines[fe.lineNumber-1].substring(fe.column-1),this._setLineText(fe.lineNumber-1,this._lines[fe.lineNumber-1].substring(0,fe.column-1)+G[0]);let z=new Uint32Array(G.length-1);for(let J=1;J<G.length;J++)this._lines.splice(fe.lineNumber+J-1,0,G[J]),z[J-1]=G[J].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(fe.lineNumber,z)}}{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(fe){return this._lines[fe-1]}getWordAtPosition(fe,$){let G=Object(se.d)(fe.column,Object(se.c)($),this._lines[fe.lineNumber-1],0);return G?new V.a(fe.lineNumber,G.startColumn,fe.lineNumber,G.endColumn):null}words(fe){let $=this._lines,G=this._wordenize.bind(this),z=0,J="",Se=0,A=[];return{*[Symbol.iterator](){for(;;)if(Se<A.length){let ee=J.substring(A[Se].start,A[Se].end);Se+=1,yield ee}else{if(!(z<$.length))break;J=$[z],A=G(J,fe),Se=0,z+=1}}}}getLineWords(fe,$){let G=this._lines[fe-1],z=this._wordenize(G,$),J=[];for(let Se of z)J.push({word:G.substring(Se.start,Se.end),startColumn:Se.start+1,endColumn:Se.end+1});return J}_wordenize(fe,$){let G=[],z;for($.lastIndex=0;(z=$.exec(fe))&&z[0].length!==0;)G.push({start:z.index,end:z.index+z[0].length});return G}getValueInRange(fe){if((fe=this._validateRange(fe)).startLineNumber===fe.endLineNumber)return this._lines[fe.startLineNumber-1].substring(fe.startColumn-1,fe.endColumn-1);let $=this._eol,G=fe.startLineNumber-1,z=fe.endLineNumber-1,J=[];J.push(this._lines[G].substring(fe.startColumn-1));for(let Se=G+1;Se<z;Se++)J.push(this._lines[Se]);return J.push(this._lines[z].substring(0,fe.endColumn-1)),J.join($)}offsetAt(fe){return fe=this._validatePosition(fe),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(fe.lineNumber-2)+(fe.column-1)}positionAt(fe){fe=Math.floor(fe),fe=Math.max(0,fe),this._ensureLineStarts();let $=this._lineStarts.getIndexOf(fe),G=this._lines[$.index].length;return{lineNumber:1+$.index,column:1+Math.min($.remainder,G)}}_validateRange(fe){let $=this._validatePosition({lineNumber:fe.startLineNumber,column:fe.startColumn}),G=this._validatePosition({lineNumber:fe.endLineNumber,column:fe.endColumn});return $.lineNumber!==fe.startLineNumber||$.column!==fe.startColumn||G.lineNumber!==fe.endLineNumber||G.column!==fe.endColumn?{startLineNumber:$.lineNumber,startColumn:$.column,endLineNumber:G.lineNumber,endColumn:G.column}:fe}_validatePosition(fe){if(!P.a.isIPosition(fe))throw new Error("bad position");let{lineNumber:$,column:G}=fe,z=!1;if($<1)$=1,G=1,z=!0;else if($>this._lines.length)$=this._lines.length,G=this._lines[$-1].length+1,z=!0;else{let J=this._lines[$-1].length+1;G<1?(G=1,z=!0):G>J&&(G=J,z=!0)}return z?{lineNumber:$,column:G}:fe}}class Ye{constructor(fe,$){this._host=fe,this._models=Object.create(null),this._foreignModuleFactory=$,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(fe){return this._models[fe]}_getModels(){let fe=[];return Object.keys(this._models).forEach($=>fe.push(this._models[$])),fe}acceptNewModel(fe){this._models[fe.url]=new ct(S.a.parse(fe.url),fe.lines,fe.EOL,fe.versionId)}acceptModelChanged(fe,$){!this._models[fe]||this._models[fe].onEvents($)}acceptRemovedModel(fe){this._models[fe]&&delete this._models[fe]}computeDiff(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe),Se=this._getModel($);if(!J||!Se)return null;let A=J.getLinesContent(),ee=Se.getLinesContent(),de=new j(A,ee,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:G,shouldMakePrettyDiff:!0,maxComputationTime:z}).computeDiff(),De=!(de.changes.length>0)&&this._modelsAreIdentical(J,Se);return{quitEarly:de.quitEarly,identical:De,changes:de.changes}})}_modelsAreIdentical(fe,$){let G=fe.getLineCount();if(G!==$.getLineCount())return!1;for(let z=1;z<=G;z++)if(fe.getLineContent(z)!==$.getLineContent(z))return!1;return!0}computeMoreMinimalEdits(fe,$){return nt(this,void 0,void 0,function*(){let G=this._getModel(fe);if(!G)return $;let z=[],J;$=Object(h.p)($,(Se,A)=>Se.range&&A.range?V.a.compareRangesUsingStarts(Se.range,A.range):(Se.range?0:1)-(A.range?0:1));for(let{range:Se,text:A,eol:ee}of $){if(typeof ee=="number"&&(J=ee),V.a.isEmpty(Se)&&!A)continue;let de=G.getValueInRange(Se);if(A=A.replace(/\r\n|\n|\r/g,G.eol),de===A)continue;if(Math.max(A.length,de.length)>Ye._diffLimit){z.push({range:Se,text:A});continue}let De=E(de,A,!1),$e=G.offsetAt(V.a.lift(Se).getStartPosition());for(let pt of De){let it=G.positionAt($e+pt.originalStart),At=G.positionAt($e+pt.originalStart+pt.originalLength),Nt={text:A.substr(pt.modifiedStart,pt.modifiedLength),range:{startLineNumber:it.lineNumber,startColumn:it.column,endLineNumber:At.lineNumber,endColumn:At.column}};G.getValueInRange(Nt.range)!==Nt.text&&z.push(Nt)}}return typeof J=="number"&&z.push({eol:J,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),z})}computeLinks(fe){return nt(this,void 0,void 0,function*(){let $=this._getModel(fe);return $?function(G){return G&&typeof G.getLineCount=="function"&&typeof G.getLineContent=="function"?he.computeLinks(G):[]}($):null})}textualSuggest(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe);if(!J)return null;let Se=[],A=new Set,ee=new RegExp(G,z),de=J.getWordAtPosition($,ee);de&&A.add(J.getValueInRange(de));for(let De of J.words(ee))if(!A.has(De)&&(A.add(De),isNaN(Number(De))&&(Se.push(De),A.size>Ye._suggestionsLimit)))break;return Se})}computeWordRanges(fe,$,G,z){return nt(this,void 0,void 0,function*(){let J=this._getModel(fe);if(!J)return Object.create(null);let Se=new RegExp(G,z),A=Object.create(null);for(let ee=$.startLineNumber;ee<$.endLineNumber;ee++){let de=J.getLineWords(ee,Se);for(let De of de){if(!isNaN(Number(De.word)))continue;let $e=A[De.word];$e||($e=[],A[De.word]=$e),$e.push({startLineNumber:ee,startColumn:De.startColumn,endLineNumber:ee,endColumn:De.endColumn})}}return A})}navigateValueSet(fe,$,G,z,J){return nt(this,void 0,void 0,function*(){let Se=this._getModel(fe);if(!Se)return null;let A=new RegExp(z,J);$.startColumn===$.endColumn&&($={startLineNumber:$.startLineNumber,startColumn:$.startColumn,endLineNumber:$.endLineNumber,endColumn:$.endColumn+1});let ee=Se.getValueInRange($),de=Se.getWordAtPosition({lineNumber:$.startLineNumber,column:$.startColumn},A);if(!de)return null;let De=Se.getValueInRange(de);return Ce.INSTANCE.navigateValueSet($,ee,de,De,G)})}loadForeignModule(fe,$,G){let z={host:L.c(G,(J,Se)=>this._host.fhr(J,Se)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(z,$),Promise.resolve(L.d(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(fe,$){if(!this._foreignModule||typeof this._foreignModule[fe]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+fe));try{return Promise.resolve(this._foreignModule[fe].apply(this._foreignModule,$))}catch(G){return Promise.reject(G)}}}Ye._diffLimit=1e5,Ye._suggestionsLimit=1e4,typeof importScripts=="function"&&(C.b.monaco=Object(Ae.a)())},function(Ie,w,r){"use strict";r.d(w,"b",function(){return ke}),r.d(w,"c",function(){return xe}),r.d(w,"a",function(){return Y}),r(220);var h=r(1),f=r(35),O=r(69),H=r(103),E=r(82),ge=r(20);class W extends E.a{constructor(te){super(),this._onActivate=te.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=te.bgWidth+"px",this.bgDomNode.style.height=te.bgHeight+"px",te.top!==void 0&&(this.bgDomNode.style.top="0px"),te.left!==void 0&&(this.bgDomNode.style.left="0px"),te.bottom!==void 0&&(this.bgDomNode.style.bottom="0px"),te.right!==void 0&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=te.className,Object(h.f)(this.domNode,te.icon.classNames),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",te.top!==void 0&&(this.domNode.style.top=te.top+"px"),te.left!==void 0&&(this.domNode.style.left=te.left+"px"),te.bottom!==void 0&&(this.domNode.style.bottom=te.bottom+"px"),te.right!==void 0&&(this.domNode.style.right=te.right+"px"),this._mouseMoveMonitor=this._register(new H.a),this.onmousedown(this.bgDomNode,he=>this._arrowMouseDown(he)),this.onmousedown(this.domNode,he=>this._arrowMouseDown(he)),this._mousedownRepeatTimer=this._register(new ge.c),this._mousedownScheduleRepeatTimer=this._register(new ge.e)}_arrowMouseDown(te){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)},200),this._mouseMoveMonitor.startMonitoring(te.target,te.buttons,H.b,he=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),te.preventDefault()}}var Q=r(2);class y extends Q.a{constructor(te,he,Ce){super(),this._visibility=te,this._visibleClassName=he,this._invisibleClassName=Ce,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ge.e)}applyVisibilitySetting(te){return this._visibility!==2&&(this._visibility===3||te)}setShouldBeVisible(te){let he=this.applyVisibilitySetting(te);this._shouldBeVisible!==he&&(this._shouldBeVisible=he,this.ensureVisibility())}setIsNeeded(te){this._isNeeded!==te&&(this._isNeeded=te,this.ensureVisibility())}setDomNode(te){this._domNode=te,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(te){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(te?" fade":"")))}}var C=r(11);class S extends E.a{constructor(te){super(),this._lazyRender=te.lazyRender,this._host=te.host,this._scrollable=te.scrollable,this._scrollbarState=te.scrollbarState,this._visibilityController=this._register(new y(te.visibility,"visible scrollbar "+te.extraScrollbarClassName,"invisible scrollbar "+te.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new H.a),this._shouldRender=!0,this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,he=>this._domNodeMouseDown(he))}_createArrow(te){let he=this._register(new W(te));this.domNode.domNode.appendChild(he.bgDomNode),this.domNode.domNode.appendChild(he.domNode)}_createSlider(te,he,Ce,Ae){this.slider=Object(f.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(te),this.slider.setLeft(he),typeof Ce=="number"&&this.slider.setWidth(Ce),typeof Ae=="number"&&this.slider.setHeight(Ae),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,L=>{L.leftButton&&(L.preventDefault(),this._sliderMouseDown(L,()=>{}))}),this.onclick(this.slider.domNode,L=>{L.leftButton&&L.stopPropagation()})}_onElementSize(te){return this._scrollbarState.setVisibleSize(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(te){return this._scrollbarState.setScrollSize(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(te){return this._scrollbarState.setScrollPosition(te)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(te){te.target===this.domNode.domNode&&this._onMouseDown(te)}delegateMouseDown(te){let he=this.domNode.domNode.getClientRects()[0].top,Ce=he+this._scrollbarState.getSliderPosition(),Ae=he+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),L=this._sliderMousePosition(te);Ce<=L&&L<=Ae?te.leftButton&&(te.preventDefault(),this._sliderMouseDown(te,()=>{})):this._onMouseDown(te)}_onMouseDown(te){let he,Ce;if(te.target===this.domNode.domNode&&typeof te.browserEvent.offsetX=="number"&&typeof te.browserEvent.offsetY=="number")he=te.browserEvent.offsetX,Ce=te.browserEvent.offsetY;else{let Ae=h.C(this.domNode.domNode);he=te.posx-Ae.left,Ce=te.posy-Ae.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(he,Ce))),te.leftButton&&(te.preventDefault(),this._sliderMouseDown(te,()=>{}))}_sliderMouseDown(te,he){let Ce=this._sliderMousePosition(te),Ae=this._sliderOrthogonalMousePosition(te),L=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(te.target,te.buttons,H.b,nt=>{let ct=this._sliderOrthogonalMousePosition(nt),Ye=Math.abs(ct-Ae);if(C.i&&Ye>140)return void this._setDesiredScrollPositionNow(L.getScrollPosition());let ht=this._sliderMousePosition(nt)-Ce;this._setDesiredScrollPositionNow(L.getDesiredScrollPositionFromDelta(ht))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),he()}),this._host.onDragStart()}_setDesiredScrollPositionNow(te){let he={};this.writeScrollPosition(he,te),this._scrollable.setScrollPositionNow(he)}updateScrollbarSize(te){this._updateScrollbarSize(te),this._scrollbarState.setScrollbarSize(te),this._shouldRender=!0,this._lazyRender||this.render()}}class P{constructor(te,he,Ce,Ae,L,nt){this._scrollbarSize=Math.round(he),this._oppositeScrollbarSize=Math.round(Ce),this._arrowSize=Math.round(te),this._visibleSize=Ae,this._scrollSize=L,this._scrollPosition=nt,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new P(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(te){let he=Math.round(te);return this._visibleSize!==he&&(this._visibleSize=he,this._refreshComputedValues(),!0)}setScrollSize(te){let he=Math.round(te);return this._scrollSize!==he&&(this._scrollSize=he,this._refreshComputedValues(),!0)}setScrollPosition(te){let he=Math.round(te);return this._scrollPosition!==he&&(this._scrollPosition=he,this._refreshComputedValues(),!0)}setScrollbarSize(te){this._scrollbarSize=te}static _computeValues(te,he,Ce,Ae,L){let nt=Math.max(0,Ce-te),ct=Math.max(0,nt-2*he),Ye=Ae>0&&Ae>Ce;if(!Ye)return{computedAvailableSize:Math.round(nt),computedIsNeeded:Ye,computedSliderSize:Math.round(ct),computedSliderRatio:0,computedSliderPosition:0};let ht=Math.round(Math.max(20,Math.floor(Ce*ct/Ae))),fe=(ct-ht)/(Ae-Ce),$=L*fe;return{computedAvailableSize:Math.round(nt),computedIsNeeded:Ye,computedSliderSize:Math.round(ht),computedSliderRatio:fe,computedSliderPosition:Math.round($)}}_refreshComputedValues(){let te=P._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=te.computedAvailableSize,this._computedIsNeeded=te.computedIsNeeded,this._computedSliderSize=te.computedSliderSize,this._computedSliderRatio=te.computedSliderRatio,this._computedSliderPosition=te.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(te){if(!this._computedIsNeeded)return 0;let he=te-this._arrowSize-this._computedSliderSize/2;return Math.round(he/this._computedSliderRatio)}getDesiredScrollPositionFromDelta(te){if(!this._computedIsNeeded)return 0;let he=this._computedSliderPosition+te;return Math.round(he/this._computedSliderRatio)}}var V=r(17);let k=Object(V.e)("scrollbar-button-left",V.a.triangleLeft),l=Object(V.e)("scrollbar-button-right",V.a.triangleRight);class T extends S{constructor(te,he,Ce){let Ae=te.getScrollDimensions(),L=te.getCurrentScrollPosition();if(super({lazyRender:he.lazyRender,host:Ce,scrollbarState:new P(he.horizontalHasArrows?he.arrowSize:0,he.horizontal===2?0:he.horizontalScrollbarSize,he.vertical===2?0:he.verticalScrollbarSize,Ae.width,Ae.scrollWidth,L.scrollLeft),visibility:he.horizontal,extraScrollbarClassName:"horizontal",scrollable:te}),he.horizontalHasArrows){let nt=(he.arrowSize-11)/2,ct=(he.horizontalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:k,top:ct,left:nt,bottom:void 0,right:void 0,bgWidth:he.arrowSize,bgHeight:he.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new O.b(null,1,0))}),this._createArrow({className:"scra",icon:l,top:ct,left:void 0,bottom:void 0,right:nt,bgWidth:he.arrowSize,bgHeight:he.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new O.b(null,-1,0))})}this._createSlider(Math.floor((he.horizontalScrollbarSize-he.horizontalSliderSize)/2),0,void 0,he.horizontalSliderSize)}_updateSlider(te,he){this.slider.setWidth(te),this.slider.setLeft(he)}_renderDomNode(te,he){this.domNode.setWidth(te),this.domNode.setHeight(he),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(te){return this._shouldRender=this._onElementScrollSize(te.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(te.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(te.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(te,he){return te}_sliderMousePosition(te){return te.posx}_sliderOrthogonalMousePosition(te){return te.posy}_updateScrollbarSize(te){this.slider.setHeight(te)}writeScrollPosition(te,he){te.scrollLeft=he}}let N=Object(V.e)("scrollbar-button-up",V.a.triangleUp),b=Object(V.e)("scrollbar-button-down",V.a.triangleDown);class g extends S{constructor(te,he,Ce){let Ae=te.getScrollDimensions(),L=te.getCurrentScrollPosition();if(super({lazyRender:he.lazyRender,host:Ce,scrollbarState:new P(he.verticalHasArrows?he.arrowSize:0,he.vertical===2?0:he.verticalScrollbarSize,0,Ae.height,Ae.scrollHeight,L.scrollTop),visibility:he.vertical,extraScrollbarClassName:"vertical",scrollable:te}),he.verticalHasArrows){let nt=(he.arrowSize-11)/2,ct=(he.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:N,top:nt,left:ct,bottom:void 0,right:void 0,bgWidth:he.verticalScrollbarSize,bgHeight:he.arrowSize,onActivate:()=>this._host.onMouseWheel(new O.b(null,0,1))}),this._createArrow({className:"scra",icon:b,top:void 0,left:ct,bottom:nt,right:void 0,bgWidth:he.verticalScrollbarSize,bgHeight:he.arrowSize,onActivate:()=>this._host.onMouseWheel(new O.b(null,0,-1))})}this._createSlider(0,Math.floor((he.verticalScrollbarSize-he.verticalSliderSize)/2),he.verticalSliderSize,void 0)}_updateSlider(te,he){this.slider.setHeight(te),this.slider.setTop(he)}_renderDomNode(te,he){this.domNode.setWidth(he),this.domNode.setHeight(te),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(te){return this._shouldRender=this._onElementScrollSize(te.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(te.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(te.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(te,he){return he}_sliderMousePosition(te){return te.posy}_sliderOrthogonalMousePosition(te){return te.posx}_updateScrollbarSize(te){this.slider.setWidth(te)}writeScrollPosition(te,he){te.scrollTop=he}}var j=r(6),ie=r(170),U=r(34);class q{constructor(te,he,Ce){this.timestamp=te,this.deltaX=he,this.deltaY=Ce,this.score=0}}class B{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let te=1,he=0,Ce=1,Ae=this._rear;for(;;){let L=Ae===this._front?te:Math.pow(2,-Ce);if(te-=L,he+=this._memory[Ae].score*L,Ae===this._front)break;Ae=(this._capacity+Ae-1)%this._capacity,Ce++}return he<=.5}accept(te,he,Ce){let Ae=new q(te,he,Ce);Ae.score=this._computeScore(Ae),this._front===-1&&this._rear===-1?(this._memory[0]=Ae,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=Ae)}_computeScore(te){if(Math.abs(te.deltaX)>0&&Math.abs(te.deltaY)>0)return 1;let he=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],this._isAlmostInt(te.deltaX)&&this._isAlmostInt(te.deltaY)||(he+=.25),Math.min(Math.max(he,0),1)}_isAlmostInt(te){return Math.abs(Math.round(te)-te)<.01}}B.INSTANCE=new B;class se extends E.a{constructor(te,he,Ce){super(),this._onScroll=this._register(new j.a),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new j.a),te.style.overflow="hidden",this._options=function(L){let nt={lazyRender:L.lazyRender!==void 0&&L.lazyRender,className:L.className!==void 0?L.className:"",useShadows:L.useShadows===void 0||L.useShadows,handleMouseWheel:L.handleMouseWheel===void 0||L.handleMouseWheel,flipAxes:L.flipAxes!==void 0&&L.flipAxes,alwaysConsumeMouseWheel:L.alwaysConsumeMouseWheel!==void 0&&L.alwaysConsumeMouseWheel,scrollYToX:L.scrollYToX!==void 0&&L.scrollYToX,mouseWheelScrollSensitivity:L.mouseWheelScrollSensitivity!==void 0?L.mouseWheelScrollSensitivity:1,fastScrollSensitivity:L.fastScrollSensitivity!==void 0?L.fastScrollSensitivity:5,scrollPredominantAxis:L.scrollPredominantAxis===void 0||L.scrollPredominantAxis,mouseWheelSmoothScroll:L.mouseWheelSmoothScroll===void 0||L.mouseWheelSmoothScroll,arrowSize:L.arrowSize!==void 0?L.arrowSize:11,listenOnDomNode:L.listenOnDomNode!==void 0?L.listenOnDomNode:null,horizontal:L.horizontal!==void 0?L.horizontal:1,horizontalScrollbarSize:L.horizontalScrollbarSize!==void 0?L.horizontalScrollbarSize:10,horizontalSliderSize:L.horizontalSliderSize!==void 0?L.horizontalSliderSize:0,horizontalHasArrows:L.horizontalHasArrows!==void 0&&L.horizontalHasArrows,vertical:L.vertical!==void 0?L.vertical:1,verticalScrollbarSize:L.verticalScrollbarSize!==void 0?L.verticalScrollbarSize:10,verticalHasArrows:L.verticalHasArrows!==void 0&&L.verticalHasArrows,verticalSliderSize:L.verticalSliderSize!==void 0?L.verticalSliderSize:0};return nt.horizontalSliderSize=L.horizontalSliderSize!==void 0?L.horizontalSliderSize:nt.horizontalScrollbarSize,nt.verticalSliderSize=L.verticalSliderSize!==void 0?L.verticalSliderSize:nt.verticalScrollbarSize,C.f&&(nt.className+=" mac"),nt}(he),this._scrollable=Ce,this._register(this._scrollable.onScroll(L=>{this._onWillScroll.fire(L),this._onDidScroll(L),this._onScroll.fire(L)}));let Ae={onMouseWheel:L=>this._onMouseWheel(L),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new g(this._scrollable,this._options,Ae)),this._horizontalScrollbar=this._register(new T(this._scrollable,this._options,Ae)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(te),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(f.b)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(f.b)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(f.b)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,L=>this._onMouseOver(L)),this.onnonbubblingmouseout(this._listenOnDomNode,L=>this._onMouseOut(L)),this._hideTimeout=this._register(new ge.e),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(Q.f)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(te){this._verticalScrollbar.delegateMouseDown(te)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(te){this._scrollable.setScrollDimensions(te,!1)}updateClassName(te){this._options.className=te,C.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(te){te.handleMouseWheel!==void 0&&(this._options.handleMouseWheel=te.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),te.mouseWheelScrollSensitivity!==void 0&&(this._options.mouseWheelScrollSensitivity=te.mouseWheelScrollSensitivity),te.fastScrollSensitivity!==void 0&&(this._options.fastScrollSensitivity=te.fastScrollSensitivity),te.scrollPredominantAxis!==void 0&&(this._options.scrollPredominantAxis=te.scrollPredominantAxis),te.horizontalScrollbarSize!==void 0&&this._horizontalScrollbar.updateScrollbarSize(te.horizontalScrollbarSize),this._options.lazyRender||this._render()}_setListeningToMouseWheel(te){if(this._mouseWheelToDispose.length>0!==te&&(this._mouseWheelToDispose=Object(Q.f)(this._mouseWheelToDispose),te)){let he=Ce=>{this._onMouseWheel(new O.b(Ce))};this._mouseWheelToDispose.push(h.i(this._listenOnDomNode,h.c.MOUSE_WHEEL,he,{passive:!1}))}}_onMouseWheel(te){let he=B.INSTANCE;{let Ce=window.devicePixelRatio/Object(U.c)();C.i||C.d?he.accept(Date.now(),te.deltaX/Ce,te.deltaY/Ce):he.accept(Date.now(),te.deltaX,te.deltaY)}if(te.deltaY||te.deltaX){let Ce=te.deltaY*this._options.mouseWheelScrollSensitivity,Ae=te.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(Ce)>=Math.abs(Ae)?Ae=0:Ce=0),this._options.flipAxes&&([Ce,Ae]=[Ae,Ce]);let L=!C.f&&te.browserEvent&&te.browserEvent.shiftKey;!this._options.scrollYToX&&!L||Ae||(Ae=Ce,Ce=0),te.browserEvent&&te.browserEvent.altKey&&(Ae*=this._options.fastScrollSensitivity,Ce*=this._options.fastScrollSensitivity);let nt=this._scrollable.getFutureScrollPosition(),ct={};if(Ce){let Ye=nt.scrollTop-50*Ce;this._verticalScrollbar.writeScrollPosition(ct,Ye)}if(Ae){let Ye=nt.scrollLeft-50*Ae;this._horizontalScrollbar.writeScrollPosition(ct,Ye)}ct=this._scrollable.validateScrollPosition(ct),(nt.scrollLeft!==ct.scrollLeft||nt.scrollTop!==ct.scrollTop)&&(this._options.mouseWheelSmoothScroll&&he.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(ct):this._scrollable.setScrollPositionNow(ct),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(te.preventDefault(),te.stopPropagation())}_onDidScroll(te){this._shouldRender=this._horizontalScrollbar.onDidScroll(te)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(te)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let te=this._scrollable.getCurrentScrollPosition(),he=te.scrollTop>0,Ce=te.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(Ce?" left":"")),this._topShadowDomNode.setClassName("shadow"+(he?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(he?" top":"")+(Ce?" left":""))}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(te){this._mouseIsOver=!1,this._hide()}_onMouseOver(te){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class ke extends se{constructor(te,he){(he=he||{}).mouseWheelSmoothScroll=!1;let Ce=new ie.a(0,Ae=>h.Y(Ae));super(te,he,Ce),this._register(Ce)}setScrollPosition(te){this._scrollable.setScrollPositionNow(te)}}class xe extends se{constructor(te,he,Ce){super(te,he,Ce)}setScrollPosition(te){this._scrollable.setScrollPositionNow(te)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class Y extends ke{constructor(te,he){super(te,he),this._element=te,this.onScroll(Ce=>{Ce.scrollTopChanged&&(this._element.scrollTop=Ce.scrollTop),Ce.scrollLeftChanged&&(this._element.scrollLeft=Ce.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"d",function(){return Q}),r.d(w,"c",function(){return C}),r.d(w,"e",function(){return S}),r.d(w,"b",function(){return P});var h=r(8),f=r(117),O=r(9),H=r(3),E=r(58);class ge{constructor(k,l,T,N){this.searchString=k,this.isRegex=l,this.matchCase=T,this.wordSeparators=N}parseSearchRequest(){if(this.searchString==="")return null;let k;k=this.isRegex?function(N){if(!N||N.length===0)return!1;for(let b=0,g=N.length;b<g;b++)if(N.charCodeAt(b)===92){if(b++,b>=g)break;let j=N.charCodeAt(b);if(j===110||j===114||j===87||j===119)return!0}return!1}(this.searchString):this.searchString.indexOf(` `)>=0;let l=null;try{l=h.q(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:k,global:!0,unicode:!0})}catch(N){return null}if(!l)return null;let T=!this.isRegex&&!k;return T&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(T=this.matchCase),new W(l,this.wordSeparators?Object(f.a)(this.wordSeparators):null,T?this.searchString:null)}}class W{constructor(k,l,T){this.regex=k,this.wordSeparators=l,this.simpleSearch=T}}function Q(V,k,l){if(!l)return new E.b(V,null);let T=[];for(let N=0,b=k.length;N<b;N++)T[N]=k[N];return new E.b(V,T)}class y{constructor(k){let l=[],T=0;for(let N=0,b=k.length;N<b;N++)k.charCodeAt(N)===10&&(l[T++]=N);this._lineFeedsOffsets=l}findLineFeedCountBeforeOffset(k){let l=this._lineFeedsOffsets,T=0,N=l.length-1;if(N===-1||k<=l[0])return 0;for(;T<N;){let b=T+((N-T)/2>>0);l[b]>=k?N=b-1:l[b+1]>=k?(T=b,N=b):T=b+1}return T+1}}class C{static findMatches(k,l,T,N,b){let g=l.parseSearchRequest();return g?g.regex.multiline?this._doFindMatchesMultiline(k,T,new P(g.wordSeparators,g.regex),N,b):this._doFindMatchesLineByLine(k,T,g,N,b):[]}static _getMultilineMatchRange(k,l,T,N,b,g){let j,ie,U=0;if(N?(U=N.findLineFeedCountBeforeOffset(b),j=l+b+U):j=l+b,N){let se=N.findLineFeedCountBeforeOffset(b+g.length)-U;ie=j+g.length+se}else ie=j+g.length;let q=k.getPositionAt(j),B=k.getPositionAt(ie);return new H.a(q.lineNumber,q.column,B.lineNumber,B.column)}static _doFindMatchesMultiline(k,l,T,N,b){let g=k.getOffsetAt(l.getStartPosition()),j=k.getValueInRange(l,1),ie=k.getEOL()===`\r -`?new y(j):null,U=[],q,B=0;for(T.reset(0);q=T.next(j);)if(U[B++]=Q(this._getMultilineMatchRange(k,g,j,ie,q.index,q[0]),q,N),B>=b)return U;return U}static _doFindMatchesLineByLine(k,l,T,N,b){let g=[],j=0;if(l.startLineNumber===l.endLineNumber){let U=k.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return j=this._findMatchesInLine(T,U,l.startLineNumber,l.startColumn-1,j,g,N,b),g}let ie=k.getLineContent(l.startLineNumber).substring(l.startColumn-1);j=this._findMatchesInLine(T,ie,l.startLineNumber,l.startColumn-1,j,g,N,b);for(let U=l.startLineNumber+1;U<l.endLineNumber&&j<b;U++)j=this._findMatchesInLine(T,k.getLineContent(U),U,0,j,g,N,b);if(j<b){let U=k.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);j=this._findMatchesInLine(T,U,l.endLineNumber,0,j,g,N,b)}return g}static _findMatchesInLine(k,l,T,N,b,g,j,ie){let U=k.wordSeparators;if(!j&&k.simpleSearch){let se=k.simpleSearch,ke=se.length,xe=l.length,Y=-ke;for(;(Y=l.indexOf(se,Y+ke))!==-1;)if((!U||S(U,l,xe,Y,ke))&&(g[b++]=new E.b(new H.a(T,Y+1+N,T,Y+1+ke+N),null),b>=ie))return b;return b}let q=new P(k.wordSeparators,k.regex),B;q.reset(0);do if(B=q.next(l),B&&(g[b++]=Q(new H.a(T,B.index+1+N,T,B.index+1+B[0].length+N),B,j),b>=ie))return b;while(B);return b}static findNextMatch(k,l,T,N){let b=l.parseSearchRequest();if(!b)return null;let g=new P(b.wordSeparators,b.regex);return b.regex.multiline?this._doFindNextMatchMultiline(k,T,g,N):this._doFindNextMatchLineByLine(k,T,g,N)}static _doFindNextMatchMultiline(k,l,T,N){let b=new D.a(l.lineNumber,1),g=k.getOffsetAt(b),j=k.getLineCount(),ie=k.getValueInRange(new H.a(b.lineNumber,b.column,j,k.getLineMaxColumn(j)),1),U=k.getEOL()===`\r -`?new y(ie):null;T.reset(l.column-1);let q=T.next(ie);return q?Q(this._getMultilineMatchRange(k,g,ie,U,q.index,q[0]),q,N):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(k,new D.a(1,1),T,N):null}static _doFindNextMatchLineByLine(k,l,T,N){let b=k.getLineCount(),g=l.lineNumber,j=k.getLineContent(g),ie=this._findFirstMatchInLine(T,j,g,l.column,N);if(ie)return ie;for(let U=1;U<=b;U++){let q=(g+U-1)%b,B=k.getLineContent(q+1),se=this._findFirstMatchInLine(T,B,q+1,1,N);if(se)return se}return null}static _findFirstMatchInLine(k,l,T,N,b){k.reset(N-1);let g=k.next(l);return g?Q(new H.a(T,g.index+1,T,g.index+1+g[0].length),g,b):null}static findPreviousMatch(k,l,T,N){let b=l.parseSearchRequest();if(!b)return null;let g=new P(b.wordSeparators,b.regex);return b.regex.multiline?this._doFindPreviousMatchMultiline(k,T,g,N):this._doFindPreviousMatchLineByLine(k,T,g,N)}static _doFindPreviousMatchMultiline(k,l,T,N){let b=this._doFindMatchesMultiline(k,new H.a(1,1,l.lineNumber,l.column),T,N,9990);if(b.length>0)return b[b.length-1];let g=k.getLineCount();return l.lineNumber!==g||l.column!==k.getLineMaxColumn(g)?this._doFindPreviousMatchMultiline(k,new D.a(g,k.getLineMaxColumn(g)),T,N):null}static _doFindPreviousMatchLineByLine(k,l,T,N){let b=k.getLineCount(),g=l.lineNumber,j=k.getLineContent(g).substring(0,l.column-1),ie=this._findLastMatchInLine(T,j,g,N);if(ie)return ie;for(let U=1;U<=b;U++){let q=(b+g-U-1)%b,B=k.getLineContent(q+1),se=this._findLastMatchInLine(T,B,q+1,N);if(se)return se}return null}static _findLastMatchInLine(k,l,T,N){let b,g=null;for(k.reset(0);b=k.next(l);)g=Q(new H.a(T,b.index+1,T,b.index+1+b[0].length),b,N);return g}}function S(V,k,l,T,N){return function(b,g,j,ie,U){if(ie===0)return!0;let q=g.charCodeAt(ie-1);if(b.get(q)!==0||q===13||q===10)return!0;if(U>0){let B=g.charCodeAt(ie);if(b.get(B)!==0)return!0}return!1}(V,k,0,T,N)&&function(b,g,j,ie,U){if(ie+U===j)return!0;let q=g.charCodeAt(ie+U);if(b.get(q)!==0||q===13||q===10)return!0;if(U>0){let B=g.charCodeAt(ie+U-1);if(b.get(B)!==0)return!0}return!1}(V,k,l,T,N)}class P{constructor(k,l){this._wordSeparators=k,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(k){this._searchRegex.lastIndex=k,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(k){let l=k.length,T;do{if(this._prevMatchStartIndex+this._prevMatchLength===l||(T=this._searchRegex.exec(k),!T))return null;let N=T.index,b=T[0].length;if(N===this._prevMatchStartIndex&&b===this._prevMatchLength){if(b===0){h.A(k,l,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=N,this._prevMatchLength=b,!this._wordSeparators||S(this._wordSeparators,k,l,N,b))return T}while(T);return null}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return j}),o.d(w,"a",function(){return se});var h=o(0),f=o(14),D=o(4),H=o(41),E=o(22),ge=o(9),W=o(3);class Q{static columnSelect(Z,te,he,Ce,Ae,L){let nt=Math.abs(Ae-he)+1,ct=he>Ae,Ye=Ce>L,ht=Ce<L,fe=[];for(let $=0;$<nt;$++){let G=he+(ct?-$:$),z=E.a.columnFromVisibleColumn2(Z,te,G,Ce),J=E.a.columnFromVisibleColumn2(Z,te,G,L),Se=E.a.visibleColumnFromColumn2(Z,te,new ge.a(G,z)),A=E.a.visibleColumnFromColumn2(Z,te,new ge.a(G,J));ht&&(Se>L||A<Ce)||Ye&&(A>Ce||Se<L)||fe.push(new E.f(new W.a(G,z,G,z),0,new ge.a(G,J),0))}if(fe.length===0)for(let $=0;$<nt;$++){let G=he+(ct?-$:$),z=te.getLineMaxColumn(G);fe.push(new E.f(new W.a(G,z,G,z),0,new ge.a(G,z),0))}return{viewStates:fe,reversed:ct,fromLineNumber:he,fromVisualColumn:Ce,toLineNumber:Ae,toVisualColumn:L}}static columnSelectLeft(Z,te,he){let Ce=he.toViewVisualColumn;return Ce>1&&Ce--,Q.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,Ce)}static columnSelectRight(Z,te,he){let Ce=0,Ae=Math.min(he.fromViewLineNumber,he.toViewLineNumber),L=Math.max(he.fromViewLineNumber,he.toViewLineNumber);for(let ct=Ae;ct<=L;ct++){let Ye=te.getLineMaxColumn(ct),ht=E.a.visibleColumnFromColumn2(Z,te,new ge.a(ct,Ye));Ce=Math.max(Ce,ht)}let nt=he.toViewVisualColumn;return nt<Ce&&nt++,this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,nt)}static columnSelectUp(Z,te,he,Ce){let Ae=Ce?Z.pageSize:1,L=Math.max(1,he.toViewLineNumber-Ae);return this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,L,he.toViewVisualColumn)}static columnSelectDown(Z,te,he,Ce){let Ae=Ce?Z.pageSize:1,L=Math.min(te.getLineCount(),he.toViewLineNumber+Ae);return this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,L,he.toViewVisualColumn)}}var y=o(181),C=o(85),S=o(126),P=o(7),V=o(10),k=o(92);class l extends D.c{runEditorCommand(Z,te,he){let Ce=te._getViewModel();Ce&&this.runCoreEditorCommand(Ce,he||{})}}var T,N,b,g,j;(N=T||(T={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:function(Y){if(!f.i(Y))return!1;let Z=Y;return!(!f.j(Z.to)||!f.k(Z.by)&&!f.j(Z.by)||!f.k(Z.value)&&!f.h(Z.value)||!f.k(Z.revealCursor)&&!f.f(Z.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},N.RawDirection={Up:"up",Down:"down"},N.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},N.parse=function(Y){let Z,te;switch(Y.to){case N.RawDirection.Up:Z=1;break;case N.RawDirection.Down:Z=2;break;default:return null}switch(Y.by){case N.RawUnit.Line:te=1;break;case N.RawUnit.WrappedLine:te=2;break;case N.RawUnit.Page:te=3;break;case N.RawUnit.HalfPage:te=4;break;default:te=2}return{direction:Z,unit:te,value:Math.floor(Y.value||1),revealCursor:!!Y.revealCursor,select:!!Y.select}},(g=b||(b={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:function(Y){if(!f.i(Y))return!1;let Z=Y;return!(!f.h(Z.lineNumber)||!f.k(Z.at)&&!f.j(Z.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},g.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class ie{constructor(Z){Z.addImplementation(1e4,(te,he)=>{let Ce=te.get(H.a).getFocusedCodeEditor();return!(!Ce||!Ce.hasTextFocus())&&(this.runEditorCommand(te,Ce,he),!0)}),Z.addImplementation(1e3,(te,he)=>{let Ce=document.activeElement;return!!(Ce&&["input","textarea"].indexOf(Ce.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),Z.addImplementation(0,(te,he)=>{let Ce=te.get(H.a).getActiveCodeEditor();return!!Ce&&(Ce.focus(),this.runEditorCommand(te,Ce,he),!0)})}}(function(Y){class Z extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.moveTo(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position,de.viewPosition)]),ee.revealPrimaryCursor(de.source,!0)}}Y.MoveTo=Object(D.l)(new Z({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),Y.MoveToSelect=Object(D.l)(new Z({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class te extends l{runCoreEditorCommand(ee,de){ee.model.pushStackElement();let Oe=this._getColumnSelectResult(ee,ee.getPrimaryCursorState(),ee.getCursorColumnSelectData(),de);ee.setCursorStates(de.source,3,Oe.viewStates.map($e=>E.d.fromViewState($e))),ee.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:Oe.fromLineNumber,fromViewVisualColumn:Oe.fromVisualColumn,toViewLineNumber:Oe.toLineNumber,toViewVisualColumn:Oe.toVisualColumn}),Oe.reversed?ee.revealTopMostCursor(de.source):ee.revealBottomMostCursor(de.source)}}Y.ColumnSelect=Object(D.l)(new class extends te{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(A,ee,de,Oe){let $e=A.model.validatePosition(Oe.position),pt=A.coordinatesConverter.validateViewPosition(new ge.a(Oe.viewPosition.lineNumber,Oe.viewPosition.column),$e),it=Oe.doColumnSelect?de.fromViewLineNumber:pt.lineNumber,At=Oe.doColumnSelect?de.fromViewVisualColumn:Oe.mouseColumn-1;return Q.columnSelect(A.cursorConfig,A,it,At,pt.lineNumber,Oe.mouseColumn-1)}}),Y.CursorColumnSelectLeft=Object(D.l)(new class extends te{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(A,ee,de,Oe){return Q.columnSelectLeft(A.cursorConfig,A,de)}}),Y.CursorColumnSelectRight=Object(D.l)(new class extends te{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(A,ee,de,Oe){return Q.columnSelectRight(A.cursorConfig,A,de)}});class he extends te{constructor(ee){super(ee),this._isPaged=ee.isPaged}_getColumnSelectResult(ee,de,Oe,$e){return Q.columnSelectUp(ee.cursorConfig,ee,Oe,this._isPaged)}}Y.CursorColumnSelectUp=Object(D.l)(new he({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3600,linux:{primary:0}}})),Y.CursorColumnSelectPageUp=Object(D.l)(new he({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3595,linux:{primary:0}}}));class Ce extends te{constructor(ee){super(ee),this._isPaged=ee.isPaged}_getColumnSelectResult(ee,de,Oe,$e){return Q.columnSelectDown(ee.cursorConfig,ee,Oe,this._isPaged)}}Y.CursorColumnSelectDown=Object(D.l)(new Ce({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3602,linux:{primary:0}}})),Y.CursorColumnSelectPageDown=Object(D.l)(new Ce({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3596,linux:{primary:0}}}));class Ae extends l{constructor(){super({id:"cursorMove",precondition:void 0,description:C.a.description})}runCoreEditorCommand(ee,de){let Oe=C.a.parse(de);Oe&&this._runCursorMove(ee,de.source,Oe)}_runCursorMove(ee,de,Oe){ee.model.pushStackElement(),ee.setCursorStates(de,3,Ae._move(ee,ee.getCursorStates(),Oe)),ee.revealPrimaryCursor(de,!0)}static _move(ee,de,Oe){let $e=Oe.select,pt=Oe.value;switch(Oe.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:return C.b.simpleMove(ee,de,Oe.direction,$e,pt,Oe.unit);case 9:case 11:case 10:case 12:return C.b.viewportMove(ee,de,Oe.direction,$e,pt);default:return null}}}Y.CursorMoveImpl=Ae,Y.CursorMove=Object(D.l)(new Ae);class L extends l{constructor(ee){super(ee),this._staticArgs=ee.args}runCoreEditorCommand(ee,de){let Oe=this._staticArgs;this._staticArgs.value===-1&&(Oe={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ee.cursorConfig.pageSize}),ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.simpleMove(ee,ee.getCursorStates(),Oe.direction,Oe.select,Oe.value,Oe.unit)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorLeft=Object(D.l)(new L({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),Y.CursorLeftSelect=Object(D.l)(new L({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1039}})),Y.CursorRight=Object(D.l)(new L({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),Y.CursorRightSelect=Object(D.l)(new L({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1041}})),Y.CursorUp=Object(D.l)(new L({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),Y.CursorUpSelect=Object(D.l)(new L({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),Y.CursorPageUp=Object(D.l)(new L({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:11}})),Y.CursorPageUpSelect=Object(D.l)(new L({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1035}})),Y.CursorDown=Object(D.l)(new L({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),Y.CursorDownSelect=Object(D.l)(new L({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),Y.CursorPageDown=Object(D.l)(new L({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:12}})),Y.CursorPageDownSelect=Object(D.l)(new L({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1036}})),Y.CreateCursor=Object(D.l)(new class extends l{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(A,ee){let de;de=ee.wholeLine?C.b.line(A,A.getPrimaryCursorState(),!1,ee.position,ee.viewPosition):C.b.moveTo(A,A.getPrimaryCursorState(),!1,ee.position,ee.viewPosition);let Oe=A.getCursorStates();if(Oe.length>1){let $e=de.modelState?de.modelState.position:null,pt=de.viewState?de.viewState.position:null;for(let it=0,At=Oe.length;it<At;it++){let Nt=Oe[it];if((!$e||Nt.modelState.selection.containsPosition($e))&&(!pt||Nt.viewState.selection.containsPosition(pt)))return Oe.splice(it,1),A.model.pushStackElement(),void A.setCursorStates(ee.source,3,Oe)}}Oe.push(de),A.model.pushStackElement(),A.setCursorStates(ee.source,3,Oe)}}),Y.LastCursorMoveToSelect=Object(D.l)(new class extends l{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(A,ee){let de=A.getLastAddedCursorIndex(),Oe=A.getCursorStates(),$e=Oe.slice(0);$e[de]=C.b.moveTo(A,Oe[de],!0,ee.position,ee.viewPosition),A.model.pushStackElement(),A.setCursorStates(ee.source,3,$e)}});class nt extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToBeginningOfLine(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorHome=Object(D.l)(new nt({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),Y.CursorHomeSelect=Object(D.l)(new nt({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class ct extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,this._exec(ee.getCursorStates())),ee.revealPrimaryCursor(de.source,!0)}_exec(ee){let de=[];for(let Oe=0,$e=ee.length;Oe<$e;Oe++){let pt=ee[Oe],it=pt.modelState.position.lineNumber;de[Oe]=E.d.fromModelState(pt.modelState.move(this._inSelectionMode,it,1,0))}return de}}Y.CursorLineStart=Object(D.l)(new ct({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:287}}})),Y.CursorLineStartSelect=Object(D.l)(new ct({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:1311}}}));class Ye extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToEndOfLine(ee,ee.getCursorStates(),this._inSelectionMode,de.sticky||!1)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorEnd=Object(D.l)(new Ye({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:P.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:h.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),Y.CursorEndSelect=Object(D.l)(new Ye({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:P.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:h.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class ht extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,this._exec(ee,ee.getCursorStates())),ee.revealPrimaryCursor(de.source,!0)}_exec(ee,de){let Oe=[];for(let $e=0,pt=de.length;$e<pt;$e++){let it=de[$e],At=it.modelState.position.lineNumber,Nt=ee.model.getLineMaxColumn(At);Oe[$e]=E.d.fromModelState(it.modelState.move(this._inSelectionMode,At,Nt,0))}return Oe}}Y.CursorLineEnd=Object(D.l)(new ht({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:291}}})),Y.CursorLineEndSelect=Object(D.l)(new ht({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:1315}}}));class fe extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToBeginningOfBuffer(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorTop=Object(D.l)(new fe({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2062,mac:{primary:2064}}})),Y.CursorTopSelect=Object(D.l)(new fe({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3086,mac:{primary:3088}}}));class $ extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToEndOfBuffer(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorBottom=Object(D.l)(new $({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2061,mac:{primary:2066}}})),Y.CursorBottomSelect=Object(D.l)(new $({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3085,mac:{primary:3090}}}));class G extends l{constructor(){super({id:"editorScroll",precondition:void 0,description:T.description})}runCoreEditorCommand(ee,de){let Oe=T.parse(de);Oe&&this._runEditorScroll(ee,de.source,Oe)}_runEditorScroll(ee,de,Oe){let $e=this._computeDesiredScrollTop(ee,Oe);if(Oe.revealCursor){let pt=ee.getCompletelyVisibleViewRangeAtScrollTop($e);ee.setCursorStates(de,3,[C.b.findPositionInViewportIfOutside(ee,ee.getPrimaryCursorState(),pt,Oe.select)])}ee.setScrollTop($e,0)}_computeDesiredScrollTop(ee,de){if(de.unit===1){let pt=ee.getCompletelyVisibleViewRange(),it=ee.coordinatesConverter.convertViewRangeToModelRange(pt),At;At=de.direction===1?Math.max(1,it.startLineNumber-de.value):Math.min(ee.model.getLineCount(),it.startLineNumber+de.value);let Nt=ee.coordinatesConverter.convertModelPositionToViewPosition(new ge.a(At,1));return ee.getVerticalOffsetForLineNumber(Nt.lineNumber)}let Oe;Oe=de.unit===3?ee.cursorConfig.pageSize*de.value:de.unit===4?Math.round(ee.cursorConfig.pageSize/2)*de.value:de.value;let $e=(de.direction===1?-1:1)*Oe;return ee.getScrollTop()+$e*ee.cursorConfig.lineHeight}}Y.EditorScrollImpl=G,Y.EditorScroll=Object(D.l)(new G),Y.ScrollLineUp=Object(D.l)(new class extends l{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),Y.ScrollPageUp=Object(D.l)(new class extends l{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),Y.ScrollLineDown=Object(D.l)(new class extends l{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),Y.ScrollPageDown=Object(D.l)(new class extends l{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class z extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.word(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position)]),ee.revealPrimaryCursor(de.source,!0)}}Y.WordSelect=Object(D.l)(new z({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),Y.WordSelectDrag=Object(D.l)(new z({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),Y.LastCursorWordSelect=Object(D.l)(new class extends l{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(A,ee){let de=A.getLastAddedCursorIndex(),Oe=A.getCursorStates(),$e=Oe.slice(0),pt=Oe[de];$e[de]=C.b.word(A,pt,pt.modelState.hasSelection(),ee.position),A.model.pushStackElement(),A.setCursorStates(ee.source,3,$e)}});class J extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.line(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position,de.viewPosition)]),ee.revealPrimaryCursor(de.source,!1)}}Y.LineSelect=Object(D.l)(new J({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),Y.LineSelectDrag=Object(D.l)(new J({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class Se extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){let Oe=ee.getLastAddedCursorIndex(),$e=ee.getCursorStates(),pt=$e.slice(0);pt[Oe]=C.b.line(ee,$e[Oe],this._inSelectionMode,de.position,de.viewPosition),ee.model.pushStackElement(),ee.setCursorStates(de.source,3,pt)}}Y.LastCursorLineSelect=Object(D.l)(new Se({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),Y.LastCursorLineSelectDrag=Object(D.l)(new Se({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),Y.ExpandLineSelection=Object(D.l)(new class extends l{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2090}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,C.b.expandLineSelection(A,A.getCursorStates())),A.revealPrimaryCursor(ee.source,!0)}}),Y.CancelSelection=Object(D.l)(new class extends l{constructor(){super({id:"cancelSelection",precondition:P.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[C.b.cancelSelection(A,A.getPrimaryCursorState())]),A.revealPrimaryCursor(ee.source,!0)}}),Y.RemoveSecondaryCursors=Object(D.l)(new class extends l{constructor(){super({id:"removeSecondaryCursors",precondition:P.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:P.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[A.getPrimaryCursorState()]),A.revealPrimaryCursor(ee.source,!0)}}),Y.RevealLine=Object(D.l)(new class extends l{constructor(){super({id:"revealLine",precondition:void 0,description:b.description})}runCoreEditorCommand(A,ee){let de=ee,Oe=(de.lineNumber||0)+1;Oe<1&&(Oe=1);let $e=A.model.getLineCount();Oe>$e&&(Oe=$e);let pt=new W.a(Oe,1,Oe,A.model.getLineMaxColumn(Oe)),it=0;if(de.at)switch(de.at){case b.RawAtArgument.Top:it=3;break;case b.RawAtArgument.Center:it=1;break;case b.RawAtArgument.Bottom:it=4}let At=A.coordinatesConverter.convertModelRangeToViewRange(pt);A.revealRange(ee.source,!1,At,it,0)}}),Y.SelectAll=new class extends ie{constructor(){super(D.h)}runDOMCommand(){document.execCommand("selectAll")}runEditorCommand(A,ee,de){let Oe=ee._getViewModel();Oe&&this.runCoreEditorCommand(Oe,de)}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates("keyboard",3,[C.b.selectAll(A,A.getPrimaryCursorState())])}},Y.SetSelection=Object(D.l)(new class extends l{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[E.d.fromModelSelection(ee.selection)])}})})(j||(j={}));let U=V.a.and(P.a.textInputFocus,P.a.columnSelection);function q(Y,Z){k.a.registerKeybindingRule({id:Y,primary:Z,when:U,weight:1})}function B(Y){return Y.register(),Y}var se;q(j.CursorColumnSelectLeft.id,1039),q(j.CursorColumnSelectRight.id,1041),q(j.CursorColumnSelectUp.id,1040),q(j.CursorColumnSelectPageUp.id,1035),q(j.CursorColumnSelectDown.id,1042),q(j.CursorColumnSelectPageDown.id,1036),function(Y){class Z extends D.c{runEditorCommand(he,Ce,Ae){let L=Ce._getViewModel();L&&this.runCoreEditingCommand(Ce,L,Ae||{})}}Y.CoreEditingCommand=Z,Y.LineBreakInsert=Object(D.l)(new class extends Z{constructor(){super({id:"lineBreakInsert",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.lineBreakInsert(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection)))}}),Y.Outdent=Object(D.l)(new class extends Z{constructor(){super({id:"outdent",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:V.a.and(P.a.editorTextFocus,P.a.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.outdent(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection))),te.pushUndoStop()}}),Y.Tab=Object(D.l)(new class extends Z{constructor(){super({id:"tab",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:V.a.and(P.a.editorTextFocus,P.a.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.tab(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection))),te.pushUndoStop()}}),Y.DeleteLeft=Object(D.l)(new class extends Z{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(te,he,Ce){let[Ae,L]=y.a.deleteLeft(he.getPrevEditOperationType(),he.cursorConfig,he.model,he.getCursorStates().map(nt=>nt.modelState.selection));Ae&&te.pushUndoStop(),te.executeCommands(this.id,L),he.setPrevEditOperationType(2)}}),Y.DeleteRight=Object(D.l)(new class extends Z{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(te,he,Ce){let[Ae,L]=y.a.deleteRight(he.getPrevEditOperationType(),he.cursorConfig,he.model,he.getCursorStates().map(nt=>nt.modelState.selection));Ae&&te.pushUndoStop(),te.executeCommands(this.id,L),he.setPrevEditOperationType(3)}}),Y.Undo=new class extends ie{constructor(){super(D.i)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(te,he,Ce){he.hasModel()&&he.getOption(72)!==!0&&he.getModel().undo()}},Y.Redo=new class extends ie{constructor(){super(D.g)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(te,he,Ce){he.hasModel()&&he.getOption(72)!==!0&&he.getModel().redo()}}}(se||(se={}));class ke extends D.a{constructor(Z,te,he){super({id:Z,precondition:void 0,description:he}),this._handlerId=te}runCommand(Z,te){let he=Z.get(H.a).getFocusedCodeEditor();he&&he.trigger("keyboard",this._handlerId,te)}}function xe(Y,Z){B(new ke("default:"+Y,Y)),B(new ke(Y,Y,Z))}xe("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),xe("replacePreviousChar"),xe("compositionStart"),xe("compositionEnd"),xe("paste"),xe("cut")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Ll}),o.d(w,"b",function(){return Fr}),o.d(w,"c",function(){return vs}),o.d(w,"d",function(){return Ps}),o.d(w,"g",function(){return Qd}),o.d(w,"h",function(){return Jd}),o.d(w,"i",function(){return eh}),o.d(w,"j",function(){return ic}),o.d(w,"e",function(){return th}),o.d(w,"f",function(){return ih}),o.d(w,"l",function(){return nh}),o.d(w,"k",function(){return oh}),o.d(w,"m",function(){return rh}),o.d(w,"n",function(){return ma});var h,f=o(26),D=o(100),H=(o(200),o(41)),E=o(1),ge=o(53),W=o(178),Q=o(45),y=o(51),C=o(23),S=o(27),P=o(79);(function(me){me[me.API=0]="API",me[me.USER=1]="USER"})(h||(h={}));var V=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},k=function(me,s){return function(v,M){s(v,M,me)}},l=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};let T=class{constructor(me){this._commandService=me}open(me){return l(this,void 0,void 0,function*(){if(!Object(P.c)(me,Q.b.command))return!1;typeof me=="string"&&(me=C.a.parse(me));let s=[];try{s=Object(W.a)(decodeURIComponent(me.query))}catch(v){try{s=Object(W.a)(me.query)}catch(M){}}return Array.isArray(s)||(s=[s]),yield this._commandService.executeCommand(me.path,...s),!0})}};T=V([k(0,S.b)],T);let N=class{constructor(me){this._editorService=me}open(me,s){return l(this,void 0,void 0,function*(){typeof me=="string"&&(me=C.a.parse(me));let v,M=/^L?(\d+)(?:,(\d+))?/.exec(me.fragment);return M&&(v={startLineNumber:parseInt(M[1]),startColumn:M[2]?parseInt(M[2]):1},me=me.with({fragment:""})),me.scheme===Q.b.file&&(me=Object(y.h)(me)),yield this._editorService.openCodeEditor({resource:me,options:{selection:v,context:(s==null?void 0:s.fromUserGesture)?h.USER:h.API}},this._editorService.getFocusedCodeEditor(),s==null?void 0:s.openToSide),!0})}};N=V([k(0,H.a)],N);let b=class{constructor(me,s){this._openers=new ge.a,this._validators=new ge.a,this._resolvers=new ge.a,this._externalOpener={openExternal:v=>(Object(P.c)(v,Q.b.http)||Object(P.c)(v,Q.b.https)?E.cb(v):window.location.href=v,Promise.resolve(!0))},this._openers.push({open:(v,M)=>l(this,void 0,void 0,function*(){return!!((M==null?void 0:M.openExternal)||Object(P.c)(v,Q.b.mailto)||Object(P.c)(v,Q.b.http)||Object(P.c)(v,Q.b.https))&&(yield this._doOpenExternal(v,M),!0)})}),this._openers.push(new T(s)),this._openers.push(new N(me))}open(me,s){return l(this,void 0,void 0,function*(){for(let v of this._validators.toArray())if(!(yield v.shouldOpen(me)))return!1;for(let v of this._openers.toArray())if(yield v.open(me,s))return!0;return!1})}resolveExternalUri(me,s){return l(this,void 0,void 0,function*(){for(let v of this._resolvers.toArray()){let M=yield v.resolveExternalUri(me,s);if(M)return M}return{resolved:me,dispose:()=>{}}})}_doOpenExternal(me,s){return l(this,void 0,void 0,function*(){let v=typeof me=="string"?C.a.parse(me):me,{resolved:M}=yield this.resolveExternalUri(v,s);return typeof me=="string"&&v.toString()===M.toString()?this._externalOpener.openExternal(me):this._externalOpener.openExternal(encodeURI(M.toString(!0)))})}dispose(){this._validators.clear()}};b=V([k(0,H.a),k(1,S.b)],b);var g=o(193),j=o(160),ie=o(143),U=o(58),q=o(12),B=o(90),se=o(96),ke=o(122),xe=o(20),Y=o(2),Z=o(94),te=o(11);class he{constructor(s,v,M,be,Ne){this.id=v;let De=function(je,mt){if(te.b.MonacoEnvironment){if(typeof te.b.MonacoEnvironment.getWorker=="function")return te.b.MonacoEnvironment.getWorker(je,mt);if(typeof te.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(te.b.MonacoEnvironment.getWorkerUrl(je,mt))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",M);typeof De.then=="function"?this.worker=De:this.worker=Promise.resolve(De),this.postMessage(s,[]),this.worker.then(je=>{je.onmessage=function(mt){be(mt.data)},je.onmessageerror=Ne,typeof je.addEventListener=="function"&&je.addEventListener("error",Ne)})}getId(){return this.id}postMessage(s,v){this.worker&&this.worker.then(M=>M.postMessage(s,v))}dispose(){this.worker&&this.worker.then(s=>s.terminate()),this.worker=null}}class Ce{constructor(s){this._label=s,this._webWorkerFailedBeforeError=!1}create(s,v,M){let be=++Ce.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new he(s,be,this._label||"anonymous"+be,v,Ne=>{Object(Z.c)(Ne),this._webWorkerFailedBeforeError=Ne,M(Ne)})}}Ce.LAST_WORKER_ID=0;var Ae=o(3),L=o(39),nt=o(104),ct=o(64),Ye=o(152),ht=o(8),fe=o(15),$=o(102),G=o(158),z=o(13),J=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Se=function(me,s){return function(v,M){s(v,M,me)}},A=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};function ee(me,s){let v=me.getModel(s);return!!v&&!v.isTooLargeForSyncing()}let de=class extends Y.a{constructor(me,s,v){super(),this._modelService=me,this._workerManager=this._register(new $e(this._modelService)),this._logService=v,this._register(q.s.register("*",{provideLinks:(M,be)=>ee(this._modelService,M.uri)?this._workerManager.withWorker().then(Ne=>Ne.computeLinks(M.uri)).then(Ne=>Ne&&{links:Ne}):Promise.resolve({links:[]})})),this._register(q.d.register("*",new Oe(this._workerManager,s,this._modelService)))}dispose(){super.dispose()}canComputeDiff(me,s){return ee(this._modelService,me)&&ee(this._modelService,s)}computeDiff(me,s,v,M){return this._workerManager.withWorker().then(be=>be.computeDiff(me,s,v,M))}computeMoreMinimalEdits(me,s){if(Object(fe.o)(s)){if(!ee(this._modelService,me))return Promise.resolve(s);let v=G.a.create(!0),M=this._workerManager.withWorker().then(be=>be.computeMoreMinimalEdits(me,s));return M.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",me.toString(!0),v.elapsed())),M}return Promise.resolve(void 0)}canNavigateValueSet(me){return ee(this._modelService,me)}navigateValueSet(me,s,v){return this._workerManager.withWorker().then(M=>M.navigateValueSet(me,s,v))}canComputeWordRanges(me){return ee(this._modelService,me)}computeWordRanges(me,s){return this._workerManager.withWorker().then(v=>v.computeWordRanges(me,s))}};de=J([Se(0,ct.a),Se(1,Ye.a),Se(2,$.b)],de);class Oe{constructor(s,v,M){this._debugDisplayName="wordbasedCompletions",this._workerManager=s,this._configurationService=v,this._modelService=M}provideCompletionItems(s,v){return A(this,void 0,void 0,function*(){let{wordBasedSuggestions:M}=this._configurationService.getValue(s.uri,v,"editor");if(!M||!ee(this._modelService,s.uri))return;let be=s.getWordAtPosition(v),Ne=be?new Ae.a(v.lineNumber,be.startColumn,v.lineNumber,be.endColumn):Ae.a.fromPositions(v),De=Ne.setEndPosition(v.lineNumber,v.column),je=yield this._workerManager.withWorker(),mt=yield je.textualSuggest(s.uri,v);return mt?{suggestions:mt.map(It=>({kind:18,label:It,insertText:It,range:{insert:De,replace:Ne}}))}:void 0})}}class $e extends Y.a{constructor(s){super(),this._modelService=s,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new xe.c).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(v=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){!this._editorWorkerClient||this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Nt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class pt extends Y.a{constructor(s,v,M){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=s,this._modelService=v,!M){let be=new xe.c;be.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(be)}}dispose(){for(let s in this._syncedModels)Object(Y.f)(this._syncedModels[s]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(s){for(let v of s){let M=v.toString();this._syncedModels[M]||this._beginModelSync(v),this._syncedModels[M]&&(this._syncedModelsLastUsedTime[M]=new Date().getTime())}}_checkStopModelSync(){let s=new Date().getTime(),v=[];for(let M in this._syncedModelsLastUsedTime)s-this._syncedModelsLastUsedTime[M]>6e4&&v.push(M);for(let M of v)this._stopModelSync(M)}_beginModelSync(s){let v=this._modelService.getModel(s);if(!v||v.isTooLargeForSyncing())return;let M=s.toString();this._proxy.acceptNewModel({url:v.uri.toString(),lines:v.getLinesContent(),EOL:v.getEOL(),versionId:v.getVersionId()});let be=new Y.b;be.add(v.onDidChangeContent(Ne=>{this._proxy.acceptModelChanged(M.toString(),Ne)})),be.add(v.onWillDispose(()=>{this._stopModelSync(M)})),be.add(Object(Y.h)(()=>{this._proxy.acceptRemovedModel(M)})),this._syncedModels[M]=be}_stopModelSync(s){let v=this._syncedModels[s];delete this._syncedModels[s],delete this._syncedModelsLastUsedTime[s],Object(Y.f)(v)}}class it{constructor(s){this._instance=s,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class At{constructor(s){this._workerClient=s}fhr(s,v){return this._workerClient.fhr(s,v)}}class Nt extends Y.a{constructor(s,v,M){super(),this._disposed=!1,this._modelService=s,this._keepIdleModels=v,this._workerFactory=new Ce(M),this._worker=null,this._modelManager=null}fhr(s,v){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Z.a(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new At(this)))}catch(s){Object(Z.c)(s),this._worker=new it(new nt.a(new At(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,s=>(Object(Z.c)(s),this._worker=new it(new nt.a(new At(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(s){return this._modelManager||(this._modelManager=this._register(new pt(s,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(s){return this._disposed?Promise.reject(Object(z.a)()):this._getProxy().then(v=>(this._getOrCreateModelManager(v).ensureSyncedResources(s),v))}computeDiff(s,v,M,be){return this._withSyncedResources([s,v]).then(Ne=>Ne.computeDiff(s.toString(),v.toString(),M,be))}computeMoreMinimalEdits(s,v){return this._withSyncedResources([s]).then(M=>M.computeMoreMinimalEdits(s.toString(),v))}computeLinks(s){return this._withSyncedResources([s]).then(v=>v.computeLinks(s.toString()))}textualSuggest(s,v){return this._withSyncedResources([s]).then(M=>{let be=this._modelService.getModel(s);if(!be)return null;let Ne=L.a.getWordDefinition(be.getLanguageIdentifier().id),De=Ne.source,je=Object(ht.O)(Ne);return M.textualSuggest(s.toString(),v,De,je)})}computeWordRanges(s,v){return this._withSyncedResources([s]).then(M=>{let be=this._modelService.getModel(s);if(!be)return Promise.resolve(null);let Ne=L.a.getWordDefinition(be.getLanguageIdentifier().id),De=Ne.source,je=Object(ht.O)(Ne);return M.computeWordRanges(s.toString(),v,De,je)})}navigateValueSet(s,v,M){return this._withSyncedResources([s]).then(be=>{let Ne=this._modelService.getModel(s);if(!Ne)return null;let De=L.a.getWordDefinition(Ne.getLanguageIdentifier().id),je=De.source,mt=Object(ht.O)(De);return be.navigateValueSet(s.toString(),v,M,je,mt)})}dispose(){super.dispose(),this._disposed=!0}}var _i=o(14);class wt extends Nt{constructor(s,v){super(s,v.keepIdleModels||!1,v.label),this._foreignModuleId=v.moduleId,this._foreignModuleCreateData=v.createData||null,this._foreignModuleHost=v.host||null,this._foreignProxy=null}fhr(s,v){if(!this._foreignModuleHost||typeof this._foreignModuleHost[s]!="function")return Promise.reject(new Error("Missing method "+s+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[s].apply(this._foreignModuleHost,v))}catch(M){return Promise.reject(M)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(s=>{let v=this._foreignModuleHost?_i.d(this._foreignModuleHost):[];return s.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,v).then(M=>{this._foreignModuleCreateData=null;let be=(je,mt)=>s.fmr(je,mt),Ne=(je,mt)=>function(){let It=Array.prototype.slice.call(arguments,0);return mt(je,It)},De={};for(let je of M)De[je]=Ne(je,be);return De})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(s){return this._withSyncedResources(s).then(v=>this.getProxy())}}var Ni=o(40),pi=o(111),et=o(91),Wt=o(74),Li=o(77);function Ii(me){return!function(s){return Array.isArray(s)}(me)}function Ai(me){return typeof me=="string"}function Zi(me){return!Ai(me)}function Bi(me){return!me}function Lt(me,s){return me.ignoreCase&&s?s.toLowerCase():s}function Di(me){return me.replace(/[&<>'"_]/g,"-")}function gt(me,s){return new Error(`${me.languageId}: ${s}`)}function vi(me,s,v,M,be){let Ne=null;return s.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(De,je,mt,It,Qt,Oi,en,tn,kn){return Bi(mt)?Bi(It)?!Bi(Qt)&&Qt<M.length?Lt(me,M[Qt]):!Bi(en)&&me&&typeof me[en]=="string"?me[en]:(Ne===null&&(Ne=be.split("."),Ne.unshift(be)),!Bi(Oi)&&Oi<Ne.length?Lt(me,Ne[Oi]):""):Lt(me,v):"$"})}function Rt(me,s){let v=s;for(;v&&v.length>0;){let M=me.tokenizer[v];if(M)return M;let be=v.lastIndexOf(".");v=be<0?null:v.substr(0,be)}return null}class vt{constructor(s){this._maxCacheDepth=s,this._entries=Object.create(null)}static create(s,v){return this._INSTANCE.create(s,v)}create(s,v){if(s!==null&&s.depth>=this._maxCacheDepth)return new Ue(s,v);let M=Ue.getStackElementId(s);M.length>0&&(M+="|"),M+=v;let be=this._entries[M];return be||(be=new Ue(s,v),this._entries[M]=be,be)}}vt._INSTANCE=new vt(5);class Ue{constructor(s,v){this.parent=s,this.state=v,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(s){let v="";for(;s!==null;)v.length>0&&(v+="|"),v+=s.state,s=s.parent;return v}static _equals(s,v){for(;s!==null&&v!==null;){if(s===v)return!0;if(s.state!==v.state)return!1;s=s.parent,v=v.parent}return s===null&&v===null}equals(s){return Ue._equals(this,s)}push(s){return vt.create(this,s)}pop(){return this.parent}popall(){let s=this;for(;s.parent;)s=s.parent;return s}switchTo(s){return vt.create(this.parent,s)}}class ut{constructor(s,v){this.modeId=s,this.state=v}equals(s){return this.modeId===s.modeId&&this.state.equals(s.state)}clone(){return this.state.clone()===this.state?this:new ut(this.modeId,this.state)}}class ze{constructor(s){this._maxCacheDepth=s,this._entries=Object.create(null)}static create(s,v){return this._INSTANCE.create(s,v)}create(s,v){if(v!==null)return new st(s,v);if(s!==null&&s.depth>=this._maxCacheDepth)return new st(s,v);let M=Ue.getStackElementId(s),be=this._entries[M];return be||(be=new st(s,null),this._entries[M]=be,be)}}ze._INSTANCE=new ze(5);class st{constructor(s,v){this.stack=s,this.embeddedModeData=v}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:ze.create(this.stack,this.embeddedModeData)}equals(s){return s instanceof st&&!!this.stack.equals(s.stack)&&(this.embeddedModeData===null&&s.embeddedModeData===null||this.embeddedModeData!==null&&s.embeddedModeData!==null&&this.embeddedModeData.equals(s.embeddedModeData))}}class _t{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(s,v){this._language=v}emit(s,v){this._lastTokenType===v&&this._lastTokenLanguage===this._language||(this._lastTokenType=v,this._lastTokenLanguage=this._language,this._tokens.push(new Li.a(s,v,this._language)))}nestedModeTokenize(s,v,M){let be=v.modeId,Ne=v.state,De=q.C.get(be);if(!De)return this.enterMode(M,be),this.emit(M,""),Ne;let je=De.tokenize(s,Ne,M);return this._tokens=this._tokens.concat(je.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,je.endState}finalize(s){return new Li.b(this._tokens,s)}}class oi{constructor(s,v){this._modeService=s,this._theme=v,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(s,v){this._currentLanguageId=this._modeService.getLanguageIdentifier(v).id}emit(s,v){let M=this._theme.match(this._currentLanguageId,v);this._lastTokenMetadata!==M&&(this._lastTokenMetadata=M,this._tokens.push(s),this._tokens.push(M))}static _merge(s,v,M){let be=s!==null?s.length:0,Ne=v.length,De=M!==null?M.length:0;if(be===0&&Ne===0&&De===0)return new Uint32Array(0);if(be===0&&Ne===0)return M;if(Ne===0&&De===0)return s;let je=new Uint32Array(be+Ne+De);s!==null&&je.set(s);for(let mt=0;mt<Ne;mt++)je[be+mt]=v[mt];return M!==null&&je.set(M,be+Ne),je}nestedModeTokenize(s,v,M){let be=v.modeId,Ne=v.state,De=q.C.get(be);if(!De)return this.enterMode(M,be),this.emit(M,""),Ne;let je=De.tokenize2(s,Ne,M);return this._prependTokens=oi._merge(this._prependTokens,this._tokens,je.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,je.endState}finalize(s){return new Li.c(oi._merge(this._prependTokens,this._tokens,null),s)}}class li{constructor(s,v,M,be){this._modeService=s,this._standaloneThemeService=v,this._modeId=M,this._lexer=be,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let Ne=!1;this._tokenizationRegistryListener=q.C.onDidChange(De=>{if(Ne)return;let je=!1;for(let mt=0,It=De.changedLanguages.length;mt<It;mt++){let Qt=De.changedLanguages[mt];if(this._embeddedModes[Qt]){je=!0;break}}je&&(Ne=!0,q.C.fire([this._modeId]),Ne=!1)})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let s=[];for(let v in this._embeddedModes){let M=q.C.get(v);if(M){if(M instanceof li){let Ne=M.getLoadStatus();Ne.loaded===!1&&s.push(Ne.promise)}continue}let be=q.C.getPromise(v);be&&s.push(be)}return s.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(s).then(v=>{})}}getInitialState(){let s=vt.create(null,this._lexer.start);return ze.create(s,null)}tokenize(s,v,M){let be=new _t,Ne=this._tokenize(s,v,M,be);return be.finalize(Ne)}tokenize2(s,v,M){let be=new oi(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),Ne=this._tokenize(s,v,M,be);return be.finalize(Ne)}_tokenize(s,v,M,be){return v.embeddedModeData?this._nestedTokenize(s,v,M,be):this._myTokenize(s,v,M,be)}_findLeavingNestedModeOffset(s,v){let M=this._lexer.tokenizer[v.stack.state];if(!M&&(M=Rt(this._lexer,v.stack.state),!M))throw gt(this._lexer,"tokenizer state is not defined: "+v.stack.state);let be=-1,Ne=!1;for(let De of M){if(!Zi(De.action)||De.action.nextEmbedded!=="@pop")continue;Ne=!0;let je=De.regex,mt=De.regex.source;if(mt.substr(0,4)==="^(?:"&&mt.substr(mt.length-1,1)===")"){let Qt=(je.ignoreCase?"i":"")+(je.unicode?"u":"");je=new RegExp(mt.substr(4,mt.length-5),Qt)}let It=s.search(je);It===-1||It!==0&&De.matchOnlyAtLineStart||(be===-1||It<be)&&(be=It)}if(!Ne)throw gt(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+v.stack.state);return be}_nestedTokenize(s,v,M,be){let Ne=this._findLeavingNestedModeOffset(s,v);if(Ne===-1){let mt=be.nestedModeTokenize(s,v.embeddedModeData,M);return ze.create(v.stack,new ut(v.embeddedModeData.modeId,mt))}let De=s.substring(0,Ne);De.length>0&&be.nestedModeTokenize(De,v.embeddedModeData,M);let je=s.substring(Ne);return this._myTokenize(je,v,M+Ne,be)}_safeRuleName(s){return s?s.name:"(unknown)"}_myTokenize(s,v,M,be){be.enterMode(M,this._modeId);let Ne=s.length,De=v.embeddedModeData,je=v.stack,mt=0,It=null,Qt=!0;for(;Qt||mt<Ne;){let tn=mt,kn=je.depth,no=It?It.groups.length:0,lo=je.state,uo=null,oo=null,io=null,mr=null,Fa=null;if(It){uo=It.matches;let go=It.groups.shift();oo=go.matched,io=go.action,mr=It.rule,It.groups.length===0&&(It=null)}else{if(!Qt&&mt>=Ne)break;Qt=!1;let go=this._lexer.tokenizer[lo];if(!go&&(go=Rt(this._lexer,lo),!go))throw gt(this._lexer,"tokenizer state is not defined: "+lo);let Zn=s.substr(mt);for(let Zo of go)if((mt===0||!Zo.matchOnlyAtLineStart)&&(uo=Zn.match(Zo.regex),uo)){oo=uo[0],io=Zo.action;break}}if(uo||(uo=[""],oo=""),io||(mt<Ne&&(uo=[s.charAt(mt)],oo=uo[0]),io=this._lexer.defaultToken),oo===null)break;for(mt+=oo.length;Ii(io)&&Zi(io)&&io.test;)io=io.test(oo,uo,lo,mt===Ne);let Yo=null;if(typeof io=="string"||Array.isArray(io))Yo=io;else if(io.group)Yo=io.group;else if(io.token!==null&&io.token!==void 0){if(Yo=io.tokenSubst?vi(this._lexer,io.token,oo,uo,lo):io.token,io.nextEmbedded)if(io.nextEmbedded==="@pop"){if(!De)throw gt(this._lexer,"cannot pop embedded mode if not inside one");De=null}else{if(De)throw gt(this._lexer,"cannot enter embedded mode from within an embedded mode");Fa=vi(this._lexer,io.nextEmbedded,oo,uo,lo)}if(io.goBack&&(mt=Math.max(0,mt-io.goBack)),io.switchTo&&typeof io.switchTo=="string"){let go=vi(this._lexer,io.switchTo,oo,uo,lo);if(go[0]==="@"&&(go=go.substr(1)),!Rt(this._lexer,go))throw gt(this._lexer,"trying to switch to a state '"+go+"' that is undefined in rule: "+this._safeRuleName(mr));je=je.switchTo(go)}else{if(io.transform&&typeof io.transform=="function")throw gt(this._lexer,"action.transform not supported");if(io.next)if(io.next==="@push"){if(je.depth>=this._lexer.maxStack)throw gt(this._lexer,"maximum tokenizer stack size reached: ["+je.state+","+je.parent.state+",...]");je=je.push(lo)}else if(io.next==="@pop"){if(je.depth<=1)throw gt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(mr));je=je.pop()}else if(io.next==="@popall")je=je.popall();else{let go=vi(this._lexer,io.next,oo,uo,lo);if(go[0]==="@"&&(go=go.substr(1)),!Rt(this._lexer,go))throw gt(this._lexer,"trying to set a next state '"+go+"' that is undefined in rule: "+this._safeRuleName(mr));je=je.push(go)}}io.log&&typeof io.log=="string"&&(Oi=this._lexer,en=this._lexer.languageId+": "+vi(this._lexer,io.log,oo,uo,lo),console.log(`${Oi.languageId}: ${en}`))}if(Yo===null)throw gt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(mr));let Er=go=>{let Zn=this._modeService.getModeIdForLanguageName(go);Zn&&(go=Zn);let Zo=this._getNestedEmbeddedModeData(go);if(mt<Ne){let ws=s.substr(mt);return this._nestedTokenize(ws,ze.create(je,Zo),M+mt,be)}return ze.create(je,Zo)};if(Array.isArray(Yo)){if(It&&It.groups.length>0)throw gt(this._lexer,"groups cannot be nested: "+this._safeRuleName(mr));if(uo.length!==Yo.length+1)throw gt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(mr));let go=0;for(let Zn=1;Zn<uo.length;Zn++)go+=uo[Zn].length;if(go!==oo.length)throw gt(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(mr));It={rule:mr,matches:uo,groups:[]};for(let Zn=0;Zn<Yo.length;Zn++)It.groups[Zn]={action:Yo[Zn],matched:uo[Zn+1]};mt-=oo.length}else{{if(Yo==="@rematch"&&(mt-=oo.length,oo="",uo=null,Yo="",Fa!==null))return Er(Fa);if(oo.length===0){if(Ne===0||kn!==je.depth||lo!==je.state||(It?It.groups.length:0)!==no)continue;throw gt(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(mr))}let go=null;if(Ai(Yo)&&Yo.indexOf("@brackets")===0){let Zn=Yo.substr("@brackets".length),Zo=gi(this._lexer,oo);if(!Zo)throw gt(this._lexer,"@brackets token returned but no bracket defined as: "+oo);go=Di(Zo.token+Zn)}else go=Di(Yo===""?"":Yo+this._lexer.tokenPostfix);be.emit(tn+M,go)}if(Fa!==null)return Er(Fa)}}var Oi,en;return ze.create(je,De)}_getNestedEmbeddedModeData(s){let v=this._locateMode(s);if(v){let M=q.C.get(v);if(M)return new ut(v,M.getInitialState())}return new ut(v||B.b,B.c)}_locateMode(s){if(!s||!this._modeService.isRegisteredMode(s))return null;if(s===this._modeId)return s;let v=this._modeService.getModeId(s);return v&&(this._modeService.triggerMode(v),this._embeddedModes[v]=!0),v}}function gi(me,s){if(!s)return null;s=Lt(me,s);let v=me.brackets;for(let M of v){if(M.open===s)return{token:M.token,bracketType:1};if(M.close===s)return{token:M.token,bracketType:-1}}return null}class ki{static colorizeElement(s,v,M,be){let Ne=(be=be||{}).theme||"vs",De=be.mimeType||M.getAttribute("lang")||M.getAttribute("data-lang");if(!De)return console.error("Mode not detected"),Promise.resolve();s.setTheme(Ne);let je=M.firstChild?M.firstChild.nodeValue:"";return M.className+=" "+Ne,this.colorize(v,je||"",De,be).then(mt=>{M.innerHTML=mt},mt=>console.error(mt))}static colorize(s,v,M,be){let Ne=4;be&&typeof be.tabSize=="number"&&(Ne=be.tabSize),ht.U(v)&&(v=v.substr(1));let De=v.split(/\r\n|\r|\n/),je=s.getModeId(M);if(!je)return Promise.resolve($i(De,Ne));s.triggerMode(je);let mt=q.C.get(je);if(mt)return Ri(De,Ne,mt);let It=q.C.getPromise(je);return new Promise(It?(Qt,Oi)=>{It.then(en=>{Ri(De,Ne,en).then(Qt,Oi)},Oi)}:(Qt,Oi)=>{let en=null,tn=null,kn=()=>{en&&(en.dispose(),en=null),tn&&(tn.dispose(),tn=null);let no=q.C.get(je);no?Ri(De,Ne,no).then(Qt,Oi):Qt($i(De,Ne))};tn=new xe.e,tn.cancelAndSet(kn,500),en=q.C.onDidChange(no=>{no.changedLanguages.indexOf(je)>=0&&kn()})})}static colorizeLine(s,v,M,be,Ne=4){let De=Wt.d.isBasicASCII(s,v),je=Wt.d.containsRTL(s,De,M);return Object(et.e)(new et.c(!1,!0,s,!1,De,je,0,be,[],Ne,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(s,v,M=4){let be=s.getLineContent(v);s.forceTokenization(v);let Ne=s.getLineTokens(v).inflate();return this.colorizeLine(be,s.mightContainNonBasicASCII(),s.mightContainRTL(),Ne,M)}}function Ri(me,s,v){return new Promise((M,be)=>{let Ne=()=>{let De=function(je,mt,It){let Qt=[],Oi=It.getInitialState();for(let en=0,tn=je.length;en<tn;en++){let kn=je[en],no=It.tokenize2(kn,Oi,0);pi.a.convertToEndOffset(no.tokens,kn.length);let lo=new pi.a(no.tokens,kn),uo=Wt.d.isBasicASCII(kn,!0),oo=Wt.d.containsRTL(kn,uo,!0),io=Object(et.e)(new et.c(!1,!0,kn,!1,uo,oo,0,lo.inflate(),[],mt,0,0,0,0,-1,"none",!1,!1,null));Qt=Qt.concat(io.html),Qt.push("<br/>"),Oi=no.endState}return Qt.join("")}(me,s,v);if(v instanceof li){let je=v.getLoadStatus();if(je.loaded===!1)return void je.promise.then(Ne,be)}M(De)};Ne()})}function $i(me,s){let v=[],M=new Uint32Array(2);M[0]=0,M[1]=16793600;for(let be=0,Ne=me.length;be<Ne;be++){let De=me[be];M[0]=De.length;let je=new pi.a(M,De),mt=Wt.d.isBasicASCII(De,!0),It=Wt.d.containsRTL(De,mt,!0),Qt=Object(et.e)(new et.c(!1,!0,De,!1,mt,It,0,je,[],s,0,0,0,0,-1,"none",!1,!1,null));v=v.concat(Qt.html),v.push("<br/>")}return v.join("")}var Hi=o(67),yi=o(6),kt=o(43),Et=o(68),si=o(112),Si=o(148),Pi=o(161),Wi=o(70),xn=o(9),un=o(54),bn=o(78),Fn=o(46),Mn=o(128);class Nn{constructor(s={},v=[],M=[]){this._contents=s,this._keys=v,this._overrides=M,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(s){return s?Object(un.d)(this.contents,s):this.contents}override(s){let v=this.getContentsForOverrideIdentifer(s);if(!v||typeof v!="object"||!Object.keys(v).length)return this;let M={};for(let be of fe.e([...Object.keys(this.contents),...Object.keys(v)])){let Ne=this.contents[be],De=v[be];De&&(typeof Ne=="object"&&typeof De=="object"?(Ne=Fn.c(Ne),this.mergeContents(Ne,De)):Ne=De),M[be]=Ne}return new Nn(M,this.keys,this.overrides)}merge(...s){let v=Fn.c(this.contents),M=Fn.c(this.overrides),be=[...this.keys];for(let Ne of s){this.mergeContents(v,Ne.contents);for(let De of Ne.overrides){let[je]=M.filter(mt=>fe.g(mt.identifiers,De.identifiers));je?this.mergeContents(je.contents,De.contents):M.push(Fn.c(De))}for(let De of Ne.keys)be.indexOf(De)===-1&&be.push(De)}return new Nn(v,be,M)}freeze(){return this.isFrozen=!0,this}mergeContents(s,v){for(let M of Object.keys(v))M in s&&_i.i(s[M])&&_i.i(v[M])?this.mergeContents(s[M],v[M]):s[M]=Fn.c(v[M])}checkAndFreeze(s){return this.isFrozen&&!Object.isFrozen(s)?Fn.d(s):s}getContentsForOverrideIdentifer(s){for(let v of this.overrides)if(v.identifiers.indexOf(s)!==-1)return v.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(s,v){this.addKey(s),Object(un.b)(this.contents,s,v,M=>{throw new Error(M)})}removeValue(s){this.removeKey(s)&&Object(un.f)(this.contents,s)}addKey(s){let v=this.keys.length;for(let M=0;M<v;M++)s.indexOf(this.keys[M])===0&&(v=M);this.keys.splice(v,1,s)}removeKey(s){let v=this.keys.indexOf(s);return v!==-1&&(this.keys.splice(v,1),!0)}}class Hn extends Nn{constructor(){let s=Object(un.e)(),v=Object(un.c)(),M=[];for(let be of Object.keys(s))Mn.b.test(be)&&M.push({identifiers:[Object(Mn.c)(be).trim()],keys:Object.keys(s[be]),contents:Object(un.g)(s[be],Ne=>console.error("Conflict in default settings file: "+Ne))});super(s,v,M)}}class Jn{constructor(s,v,M=new Nn,be=new Nn,Ne=new bn.b,De=new Nn,je=new bn.b,mt=!0){this._defaultConfiguration=s,this._localUserConfiguration=v,this._remoteUserConfiguration=M,this._workspaceConfiguration=be,this._folderConfigurations=Ne,this._memoryConfiguration=De,this._memoryConfigurationByResource=je,this._freeze=mt,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new bn.b,this._userConfiguration=null}getValue(s,v,M){return this.getConsolidateConfigurationModel(v,M).getValue(s)}updateValue(s,v,M={}){let be;M.resource?(be=this._memoryConfigurationByResource.get(M.resource),be||(be=new Nn,this._memoryConfigurationByResource.set(M.resource,be))):be=this._memoryConfiguration,v===void 0?be.removeValue(s):be.setValue(s,v),M.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(s,v){let M=this.getConsolidatedConfigurationModelForResource(s,v);return s.overrideIdentifier?M.override(s.overrideIdentifier):M}getConsolidatedConfigurationModelForResource({resource:s},v){let M=this.getWorkspaceConsolidatedConfiguration();if(v&&s){let be=v.getFolder(s);be&&(M=this.getFolderConsolidatedConfiguration(be.uri)||M);let Ne=this._memoryConfigurationByResource.get(s);Ne&&(M=M.merge(Ne))}return M}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(s){let v=this._foldersConsolidatedConfigurations.get(s);if(!v){let M=this.getWorkspaceConsolidatedConfiguration(),be=this._folderConfigurations.get(s);be?(v=M.merge(be),this._freeze&&(v=v.freeze()),this._foldersConsolidatedConfigurations.set(s,v)):v=M}return v}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((s,v)=>{let{contents:M,overrides:be,keys:Ne}=this._folderConfigurations.get(v);return s.push([v,{contents:M,overrides:be,keys:Ne}]),s},[])}}static parse(s){let v=this.parseConfigurationModel(s.defaults),M=this.parseConfigurationModel(s.user),be=this.parseConfigurationModel(s.workspace),Ne=s.folders.reduce((De,je)=>(De.set(C.a.revive(je[0]),this.parseConfigurationModel(je[1])),De),new bn.b);return new Jn(v,M,new Nn,be,Ne,new Nn,new bn.b,!1)}static parseConfigurationModel(s){return new Nn(s.contents,s.keys,s.overrides).freeze()}}class _o{constructor(s,v,M,be){this.change=s,this.previous=v,this.currentConfiguraiton=M,this.currentWorkspace=be,this._previousConfiguration=void 0;let Ne=new Set;s.keys.forEach(je=>Ne.add(je)),s.overrides.forEach(([,je])=>je.forEach(mt=>Ne.add(mt))),this.affectedKeys=[...Ne.values()];let De=new Nn;this.affectedKeys.forEach(je=>De.setValue(je,{})),this.affectedKeysTree=De.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jn.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(s,v){var M;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,s)){if(v){let be=this.previousConfiguration?this.previousConfiguration.getValue(s,v,(M=this.previous)===null||M===void 0?void 0:M.workspace):void 0,Ne=this.currentConfiguraiton.getValue(s,v,this.currentWorkspace);return!Fn.e(be,Ne)}return!0}return!1}doesAffectedKeysTreeContains(s,v){let M,be=Object(un.g)({[v]:!0},()=>{});for(;typeof be=="object"&&(M=Object.keys(be)[0]);){if(!(s=s[M]))return!1;be=be[M]}return!0}}var pn=o(0);class Gn extends Y.a{constructor(s,v,M,be,Ne){super(),this._contextKeyService=s,this._commandService=v,this._telemetryService=M,this._notificationService=be,this._logService=Ne,this._onDidUpdateKeybindings=this._register(new yi.a),this._currentChord=null,this._currentChordChecker=new xe.c,this._currentChordStatusMessage=null,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:yi.b.None}dispose(){super.dispose()}_log(s){this._logging&&this._logService.info("[KeybindingService]: "+s)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybindings(s){return fe.d(this._getResolver().lookupKeybindings(s).map(v=>v.resolvedKeybinding))}lookupKeybinding(s){let v=this._getResolver().lookupPrimaryKeybinding(s);if(v)return v.resolvedKeybinding}dispatchEvent(s,v){return this._dispatch(s,v)}softDispatch(s,v){let M=this.resolveKeyboardEvent(s);if(M.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;let[be]=M.getDispatchParts();if(be===null)return null;let Ne=this._contextKeyService.getContext(v),De=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(Ne,De,be)}_enterChordMode(s,v){this._currentChord={keypress:s,label:v},this._currentChordStatusMessage=this._notificationService.status(pn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",v));let M=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-M>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(s,v){return this._doDispatch(this.resolveKeyboardEvent(s),v)}_doDispatch(s,v){let M=!1;if(s.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let[be]=s.getDispatchParts();if(be===null)return this._log("\\ Keyboard event cannot be dispatched."),M;let Ne=this._contextKeyService.getContext(v),De=this._currentChord?this._currentChord.keypress:null,je=s.getLabel(),mt=this._getResolver().resolve(Ne,De,be);return this._logService.trace("KeybindingService#dispatch",je,mt==null?void 0:mt.commandId),mt&&mt.enterChord?(M=!0,this._enterChordMode(be,je),M):(this._currentChord&&(mt&&mt.commandId||(this._notificationService.status(pn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,je),{hideAfter:1e4}),M=!0)),this._leaveChordMode(),mt&&mt.commandId&&(mt.bubble||(M=!0),mt.commandArgs===void 0?this._commandService.executeCommand(mt.commandId).then(void 0,It=>this._notificationService.warn(It)):this._commandService.executeCommand(mt.commandId,mt.commandArgs).then(void 0,It=>this._notificationService.warn(It)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:mt.commandId,from:"keybinding"})),M)}mightProducePrintableCharacter(s){return!s.ctrlKey&&!s.metaKey&&(s.keyCode>=31&&s.keyCode<=56||s.keyCode>=21&&s.keyCode<=30)}}class on{constructor(s,v,M){this._log=M,this._defaultKeybindings=s,this._defaultBoundCommands=new Map;for(let be=0,Ne=s.length;be<Ne;be++){let De=s[be].command;De&&this._defaultBoundCommands.set(De,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=on.combine(s,v);for(let be=0,Ne=this._keybindings.length;be<Ne;be++){let De=this._keybindings[be];De.keypressParts.length!==0&&(De.when&&De.when.type===0||this._addKeyPress(De.keypressParts[0],De))}}static _isTargetedForRemoval(s,v,M,be,Ne){return!(s.command!==be||v&&s.keypressParts[0]!==v||M&&s.keypressParts[1]!==M||Ne&&(!s.when||!Ne.equals(s.when)))}static combine(s,v){s=s.slice(0);let M=[];for(let be of v){if(!be.command||be.command.length===0||be.command.charAt(0)!=="-"){M.push(be);continue}let Ne=be.command.substr(1),De=be.keypressParts[0],je=be.keypressParts[1],mt=be.when;for(let It=s.length-1;It>=0;It--)this._isTargetedForRemoval(s[It],De,je,Ne,mt)&&s.splice(It,1)}return s.concat(M)}_addKeyPress(s,v){let M=this._map.get(s);if(M===void 0)return this._map.set(s,[v]),void this._addToLookupMap(v);for(let be=M.length-1;be>=0;be--){let Ne=M[be];if(Ne.command===v.command)continue;let De=Ne.keypressParts.length>1,je=v.keypressParts.length>1;De&&je&&Ne.keypressParts[1]!==v.keypressParts[1]||on.whenIsEntirelyIncluded(Ne.when,v.when)&&this._removeFromLookupMap(Ne)}M.push(v),this._addToLookupMap(v)}_addToLookupMap(s){if(!s.command)return;let v=this._lookupMap.get(s.command);v===void 0?(v=[s],this._lookupMap.set(s.command,v)):v.push(s)}_removeFromLookupMap(s){if(!s.command)return;let v=this._lookupMap.get(s.command);if(v!==void 0){for(let M=0,be=v.length;M<be;M++)if(v[M]===s)return void v.splice(M,1)}}static whenIsEntirelyIncluded(s,v){return!v||!!s&&this._implies(s,v)}static _implies(s,v){let M=Ne=>Ne.type===9?Ne.expr:[Ne],be=M(s.negate()).concat(M(v));for(let Ne=0;Ne<be.length;Ne++){let De=be[Ne].negate();for(let je=Ne+1;je<be.length;je++){let mt=be[je];if(De.equals(mt))return!0}}return!1}getKeybindings(){return this._keybindings}lookupKeybindings(s){let v=this._lookupMap.get(s);if(v===void 0||v.length===0)return[];let M=[],be=0;for(let Ne=v.length-1;Ne>=0;Ne--)M[be++]=v[Ne];return M}lookupPrimaryKeybinding(s){let v=this._lookupMap.get(s);return v===void 0||v.length===0?null:v[v.length-1]}resolve(s,v,M){this._log(`| Resolving ${M}${v?" chorded from "+v:""}`);let be=null;if(v!==null){let De=this._map.get(v);if(De===void 0)return this._log("\\ No keybinding entries."),null;be=[];for(let je=0,mt=De.length;je<mt;je++){let It=De[je];It.keypressParts[1]===M&&be.push(It)}}else{let De=this._map.get(M);if(De===void 0)return this._log("\\ No keybinding entries."),null;be=De}let Ne=this._findCommand(s,be);return Ne?v===null&&Ne.keypressParts.length>1&&Ne.keypressParts[1]!==null?(this._log(`\\ From ${be.length} keybinding entries, matched chord, when: ${ho(Ne.when)}, source: ${On(Ne)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${be.length} keybinding entries, matched ${Ne.command}, when: ${ho(Ne.when)}, source: ${On(Ne)}.`),{enterChord:!1,leaveChord:Ne.keypressParts.length>1,commandId:Ne.command,commandArgs:Ne.commandArgs,bubble:Ne.bubble}):(this._log(`\\ From ${be.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(s,v){for(let M=v.length-1;M>=0;M--){let be=v[M];if(on.contextMatchesRules(s,be.when))return be}return null}static contextMatchesRules(s,v){return!v||v.evaluate(s)}}function ho(me){return me?""+me.serialize():"no when condition"}function On(me){return me.isDefault?me.extensionId?"built-in extension "+me.extensionId:"built-in":me.extensionId?"user extension "+me.extensionId:"user"}var Dn=o(92);class qt{constructor(s,v,M,be,Ne,De){this.resolvedKeybinding=s,this.keypressParts=s?function(je){let mt=[];for(let It=0,Qt=je.length;It<Qt;It++){let Oi=je[It];if(!Oi)return mt;mt.push(Oi)}return mt}(s.getDispatchParts()):[],this.bubble=!!v&&v.charCodeAt(0)===94,this.command=this.bubble?v.substr(1):v,this.commandArgs=M,this.when=be,this.isDefault=Ne,this.extensionId=De}}class I{constructor(s,v,M=v){this.modifierLabels=[null],this.modifierLabels[2]=s,this.modifierLabels[1]=v,this.modifierLabels[3]=M}toLabel(s,v,M){if(v.length===0)return null;let be=[];for(let Ne=0,De=v.length;Ne<De;Ne++){let je=v[Ne],mt=M(je);if(mt===null)return null;be[Ne]=Fe(je,mt,this.modifierLabels[s])}return be.join(" ")}}let ne=new I({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),_e=new I({ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function Fe(me,s,v){if(s===null)return"";let M=[];return me.ctrlKey&&M.push(v.ctrlKey),me.shiftKey&&M.push(v.shiftKey),me.altKey&&M.push(v.altKey),me.metaKey&&M.push(v.metaKey),s!==""&&M.push(s),M.join(v.separator)}class Xe extends kt.c{constructor(s,v){if(super(),v.length===0)throw Object(z.b)("parts");this._os=s,this._parts=v}getLabel(){return ne.toLabel(this._os,this._parts,s=>this._getLabel(s))}getAriaLabel(){return _e.toLabel(this._os,this._parts,s=>this._getAriaLabel(s))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(s=>this._getPart(s))}_getPart(s){return new kt.d(s.ctrlKey,s.shiftKey,s.altKey,s.metaKey,this._getLabel(s),this._getAriaLabel(s))}getDispatchParts(){return this._parts.map(s=>this._getDispatchPart(s))}}class ot extends Xe{constructor(s,v){super(v,s.parts)}_keyCodeToUILabel(s){if(this._os===2)switch(s){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return kt.b.toString(s)}_getLabel(s){return s.isDuplicateModifierCase()?"":this._keyCodeToUILabel(s.keyCode)}_getAriaLabel(s){return s.isDuplicateModifierCase()?"":kt.b.toString(s.keyCode)}_getDispatchPart(s){return ot.getDispatchStr(s)}static getDispatchStr(s){if(s.isModifierKey())return null;let v="";return s.ctrlKey&&(v+="ctrl+"),s.shiftKey&&(v+="shift+"),s.altKey&&(v+="alt+"),s.metaKey&&(v+="meta+"),v+=kt.b.toString(s.keyCode),v}}var Mt=o(49),Ot=o(169),Tt=o(55),Ht=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},jt=function(me,s){return function(v,M){s(v,M,me)}},Kt=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};class wi{constructor(s){this.disposed=!1,this.model=s,this._onDispose=new yi.a}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onDispose.fire()}}let Ti=class{constructor(me){this.modelService=me}setEditor(me){this.editor=me}createModelReference(me){let s=null;var v,M,be;return this.editor&&(v=this.editor,M=Ne=>this.findModel(Ne,me),be=Ne=>this.findModel(Ne.getOriginalEditor(),me)||this.findModel(Ne.getModifiedEditor(),me),s=Object(si.b)(v)?M(v):be(v)),s?Promise.resolve(new Y.c(new wi(s))):Promise.reject(new Error("Model not found"))}findModel(me,s){let v=this.modelService.getModel(s);return v&&v.uri.toString()!==s.toString()?null:v}};Ti=Ht([jt(0,ct.a)],Ti);class ft{show(){return ft.NULL_PROGRESS_RUNNER}showWhile(s,v){return Promise.resolve(void 0)}}ft.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class X{confirm(s){return this.doConfirm(s).then(v=>({confirmed:v,checkboxChecked:!1}))}doConfirm(s){let v=s.message;return s.detail&&(v=v+` +`?new y(j):null,U=[],q,B=0;for(T.reset(0);q=T.next(j);)if(U[B++]=Q(this._getMultilineMatchRange(k,g,j,ie,q.index,q[0]),q,N),B>=b)return U;return U}static _doFindMatchesLineByLine(k,l,T,N,b){let g=[],j=0;if(l.startLineNumber===l.endLineNumber){let U=k.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return j=this._findMatchesInLine(T,U,l.startLineNumber,l.startColumn-1,j,g,N,b),g}let ie=k.getLineContent(l.startLineNumber).substring(l.startColumn-1);j=this._findMatchesInLine(T,ie,l.startLineNumber,l.startColumn-1,j,g,N,b);for(let U=l.startLineNumber+1;U<l.endLineNumber&&j<b;U++)j=this._findMatchesInLine(T,k.getLineContent(U),U,0,j,g,N,b);if(j<b){let U=k.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);j=this._findMatchesInLine(T,U,l.endLineNumber,0,j,g,N,b)}return g}static _findMatchesInLine(k,l,T,N,b,g,j,ie){let U=k.wordSeparators;if(!j&&k.simpleSearch){let se=k.simpleSearch,ke=se.length,xe=l.length,Y=-ke;for(;(Y=l.indexOf(se,Y+ke))!==-1;)if((!U||S(U,l,xe,Y,ke))&&(g[b++]=new E.b(new H.a(T,Y+1+N,T,Y+1+ke+N),null),b>=ie))return b;return b}let q=new P(k.wordSeparators,k.regex),B;q.reset(0);do if(B=q.next(l),B&&(g[b++]=Q(new H.a(T,B.index+1+N,T,B.index+1+B[0].length+N),B,j),b>=ie))return b;while(B);return b}static findNextMatch(k,l,T,N){let b=l.parseSearchRequest();if(!b)return null;let g=new P(b.wordSeparators,b.regex);return b.regex.multiline?this._doFindNextMatchMultiline(k,T,g,N):this._doFindNextMatchLineByLine(k,T,g,N)}static _doFindNextMatchMultiline(k,l,T,N){let b=new O.a(l.lineNumber,1),g=k.getOffsetAt(b),j=k.getLineCount(),ie=k.getValueInRange(new H.a(b.lineNumber,b.column,j,k.getLineMaxColumn(j)),1),U=k.getEOL()===`\r +`?new y(ie):null;T.reset(l.column-1);let q=T.next(ie);return q?Q(this._getMultilineMatchRange(k,g,ie,U,q.index,q[0]),q,N):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(k,new O.a(1,1),T,N):null}static _doFindNextMatchLineByLine(k,l,T,N){let b=k.getLineCount(),g=l.lineNumber,j=k.getLineContent(g),ie=this._findFirstMatchInLine(T,j,g,l.column,N);if(ie)return ie;for(let U=1;U<=b;U++){let q=(g+U-1)%b,B=k.getLineContent(q+1),se=this._findFirstMatchInLine(T,B,q+1,1,N);if(se)return se}return null}static _findFirstMatchInLine(k,l,T,N,b){k.reset(N-1);let g=k.next(l);return g?Q(new H.a(T,g.index+1,T,g.index+1+g[0].length),g,b):null}static findPreviousMatch(k,l,T,N){let b=l.parseSearchRequest();if(!b)return null;let g=new P(b.wordSeparators,b.regex);return b.regex.multiline?this._doFindPreviousMatchMultiline(k,T,g,N):this._doFindPreviousMatchLineByLine(k,T,g,N)}static _doFindPreviousMatchMultiline(k,l,T,N){let b=this._doFindMatchesMultiline(k,new H.a(1,1,l.lineNumber,l.column),T,N,9990);if(b.length>0)return b[b.length-1];let g=k.getLineCount();return l.lineNumber!==g||l.column!==k.getLineMaxColumn(g)?this._doFindPreviousMatchMultiline(k,new O.a(g,k.getLineMaxColumn(g)),T,N):null}static _doFindPreviousMatchLineByLine(k,l,T,N){let b=k.getLineCount(),g=l.lineNumber,j=k.getLineContent(g).substring(0,l.column-1),ie=this._findLastMatchInLine(T,j,g,N);if(ie)return ie;for(let U=1;U<=b;U++){let q=(b+g-U-1)%b,B=k.getLineContent(q+1),se=this._findLastMatchInLine(T,B,q+1,N);if(se)return se}return null}static _findLastMatchInLine(k,l,T,N){let b,g=null;for(k.reset(0);b=k.next(l);)g=Q(new H.a(T,b.index+1,T,b.index+1+b[0].length),b,N);return g}}function S(V,k,l,T,N){return function(b,g,j,ie,U){if(ie===0)return!0;let q=g.charCodeAt(ie-1);if(b.get(q)!==0||q===13||q===10)return!0;if(U>0){let B=g.charCodeAt(ie);if(b.get(B)!==0)return!0}return!1}(V,k,0,T,N)&&function(b,g,j,ie,U){if(ie+U===j)return!0;let q=g.charCodeAt(ie+U);if(b.get(q)!==0||q===13||q===10)return!0;if(U>0){let B=g.charCodeAt(ie+U-1);if(b.get(B)!==0)return!0}return!1}(V,k,l,T,N)}class P{constructor(k,l){this._wordSeparators=k,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(k){this._searchRegex.lastIndex=k,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(k){let l=k.length,T;do{if(this._prevMatchStartIndex+this._prevMatchLength===l||(T=this._searchRegex.exec(k),!T))return null;let N=T.index,b=T[0].length;if(N===this._prevMatchStartIndex&&b===this._prevMatchLength){if(b===0){h.A(k,l,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=N,this._prevMatchLength=b,!this._wordSeparators||S(this._wordSeparators,k,l,N,b))return T}while(T);return null}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return j}),r.d(w,"a",function(){return se});var h=r(0),f=r(14),O=r(4),H=r(41),E=r(22),ge=r(9),W=r(3);class Q{static columnSelect(Z,te,he,Ce,Ae,L){let nt=Math.abs(Ae-he)+1,ct=he>Ae,Ye=Ce>L,ht=Ce<L,fe=[];for(let $=0;$<nt;$++){let G=he+(ct?-$:$),z=E.a.columnFromVisibleColumn2(Z,te,G,Ce),J=E.a.columnFromVisibleColumn2(Z,te,G,L),Se=E.a.visibleColumnFromColumn2(Z,te,new ge.a(G,z)),A=E.a.visibleColumnFromColumn2(Z,te,new ge.a(G,J));ht&&(Se>L||A<Ce)||Ye&&(A>Ce||Se<L)||fe.push(new E.f(new W.a(G,z,G,z),0,new ge.a(G,J),0))}if(fe.length===0)for(let $=0;$<nt;$++){let G=he+(ct?-$:$),z=te.getLineMaxColumn(G);fe.push(new E.f(new W.a(G,z,G,z),0,new ge.a(G,z),0))}return{viewStates:fe,reversed:ct,fromLineNumber:he,fromVisualColumn:Ce,toLineNumber:Ae,toVisualColumn:L}}static columnSelectLeft(Z,te,he){let Ce=he.toViewVisualColumn;return Ce>1&&Ce--,Q.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,Ce)}static columnSelectRight(Z,te,he){let Ce=0,Ae=Math.min(he.fromViewLineNumber,he.toViewLineNumber),L=Math.max(he.fromViewLineNumber,he.toViewLineNumber);for(let ct=Ae;ct<=L;ct++){let Ye=te.getLineMaxColumn(ct),ht=E.a.visibleColumnFromColumn2(Z,te,new ge.a(ct,Ye));Ce=Math.max(Ce,ht)}let nt=he.toViewVisualColumn;return nt<Ce&&nt++,this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,nt)}static columnSelectUp(Z,te,he,Ce){let Ae=Ce?Z.pageSize:1,L=Math.max(1,he.toViewLineNumber-Ae);return this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,L,he.toViewVisualColumn)}static columnSelectDown(Z,te,he,Ce){let Ae=Ce?Z.pageSize:1,L=Math.min(te.getLineCount(),he.toViewLineNumber+Ae);return this.columnSelect(Z,te,he.fromViewLineNumber,he.fromViewVisualColumn,L,he.toViewVisualColumn)}}var y=r(181),C=r(85),S=r(126),P=r(7),V=r(10),k=r(92);class l extends O.c{runEditorCommand(Z,te,he){let Ce=te._getViewModel();Ce&&this.runCoreEditorCommand(Ce,he||{})}}var T,N,b,g,j;(N=T||(T={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:function(Y){if(!f.i(Y))return!1;let Z=Y;return!(!f.j(Z.to)||!f.k(Z.by)&&!f.j(Z.by)||!f.k(Z.value)&&!f.h(Z.value)||!f.k(Z.revealCursor)&&!f.f(Z.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},N.RawDirection={Up:"up",Down:"down"},N.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},N.parse=function(Y){let Z,te;switch(Y.to){case N.RawDirection.Up:Z=1;break;case N.RawDirection.Down:Z=2;break;default:return null}switch(Y.by){case N.RawUnit.Line:te=1;break;case N.RawUnit.WrappedLine:te=2;break;case N.RawUnit.Page:te=3;break;case N.RawUnit.HalfPage:te=4;break;default:te=2}return{direction:Z,unit:te,value:Math.floor(Y.value||1),revealCursor:!!Y.revealCursor,select:!!Y.select}},(g=b||(b={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:function(Y){if(!f.i(Y))return!1;let Z=Y;return!(!f.h(Z.lineNumber)||!f.k(Z.at)&&!f.j(Z.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},g.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class ie{constructor(Z){Z.addImplementation(1e4,(te,he)=>{let Ce=te.get(H.a).getFocusedCodeEditor();return!(!Ce||!Ce.hasTextFocus())&&(this.runEditorCommand(te,Ce,he),!0)}),Z.addImplementation(1e3,(te,he)=>{let Ce=document.activeElement;return!!(Ce&&["input","textarea"].indexOf(Ce.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),Z.addImplementation(0,(te,he)=>{let Ce=te.get(H.a).getActiveCodeEditor();return!!Ce&&(Ce.focus(),this.runEditorCommand(te,Ce,he),!0)})}}(function(Y){class Z extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.moveTo(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position,de.viewPosition)]),ee.revealPrimaryCursor(de.source,!0)}}Y.MoveTo=Object(O.l)(new Z({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),Y.MoveToSelect=Object(O.l)(new Z({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class te extends l{runCoreEditorCommand(ee,de){ee.model.pushStackElement();let De=this._getColumnSelectResult(ee,ee.getPrimaryCursorState(),ee.getCursorColumnSelectData(),de);ee.setCursorStates(de.source,3,De.viewStates.map($e=>E.d.fromViewState($e))),ee.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:De.fromLineNumber,fromViewVisualColumn:De.fromVisualColumn,toViewLineNumber:De.toLineNumber,toViewVisualColumn:De.toVisualColumn}),De.reversed?ee.revealTopMostCursor(de.source):ee.revealBottomMostCursor(de.source)}}Y.ColumnSelect=Object(O.l)(new class extends te{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(A,ee,de,De){let $e=A.model.validatePosition(De.position),pt=A.coordinatesConverter.validateViewPosition(new ge.a(De.viewPosition.lineNumber,De.viewPosition.column),$e),it=De.doColumnSelect?de.fromViewLineNumber:pt.lineNumber,At=De.doColumnSelect?de.fromViewVisualColumn:De.mouseColumn-1;return Q.columnSelect(A.cursorConfig,A,it,At,pt.lineNumber,De.mouseColumn-1)}}),Y.CursorColumnSelectLeft=Object(O.l)(new class extends te{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(A,ee,de,De){return Q.columnSelectLeft(A.cursorConfig,A,de)}}),Y.CursorColumnSelectRight=Object(O.l)(new class extends te{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(A,ee,de,De){return Q.columnSelectRight(A.cursorConfig,A,de)}});class he extends te{constructor(ee){super(ee),this._isPaged=ee.isPaged}_getColumnSelectResult(ee,de,De,$e){return Q.columnSelectUp(ee.cursorConfig,ee,De,this._isPaged)}}Y.CursorColumnSelectUp=Object(O.l)(new he({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3600,linux:{primary:0}}})),Y.CursorColumnSelectPageUp=Object(O.l)(new he({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3595,linux:{primary:0}}}));class Ce extends te{constructor(ee){super(ee),this._isPaged=ee.isPaged}_getColumnSelectResult(ee,de,De,$e){return Q.columnSelectDown(ee.cursorConfig,ee,De,this._isPaged)}}Y.CursorColumnSelectDown=Object(O.l)(new Ce({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3602,linux:{primary:0}}})),Y.CursorColumnSelectPageDown=Object(O.l)(new Ce({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3596,linux:{primary:0}}}));class Ae extends l{constructor(){super({id:"cursorMove",precondition:void 0,description:C.a.description})}runCoreEditorCommand(ee,de){let De=C.a.parse(de);De&&this._runCursorMove(ee,de.source,De)}_runCursorMove(ee,de,De){ee.model.pushStackElement(),ee.setCursorStates(de,3,Ae._move(ee,ee.getCursorStates(),De)),ee.revealPrimaryCursor(de,!0)}static _move(ee,de,De){let $e=De.select,pt=De.value;switch(De.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:return C.b.simpleMove(ee,de,De.direction,$e,pt,De.unit);case 9:case 11:case 10:case 12:return C.b.viewportMove(ee,de,De.direction,$e,pt);default:return null}}}Y.CursorMoveImpl=Ae,Y.CursorMove=Object(O.l)(new Ae);class L extends l{constructor(ee){super(ee),this._staticArgs=ee.args}runCoreEditorCommand(ee,de){let De=this._staticArgs;this._staticArgs.value===-1&&(De={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ee.cursorConfig.pageSize}),ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.simpleMove(ee,ee.getCursorStates(),De.direction,De.select,De.value,De.unit)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorLeft=Object(O.l)(new L({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),Y.CursorLeftSelect=Object(O.l)(new L({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1039}})),Y.CursorRight=Object(O.l)(new L({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),Y.CursorRightSelect=Object(O.l)(new L({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1041}})),Y.CursorUp=Object(O.l)(new L({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),Y.CursorUpSelect=Object(O.l)(new L({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),Y.CursorPageUp=Object(O.l)(new L({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:11}})),Y.CursorPageUpSelect=Object(O.l)(new L({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1035}})),Y.CursorDown=Object(O.l)(new L({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),Y.CursorDownSelect=Object(O.l)(new L({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),Y.CursorPageDown=Object(O.l)(new L({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:12}})),Y.CursorPageDownSelect=Object(O.l)(new L({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1036}})),Y.CreateCursor=Object(O.l)(new class extends l{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(A,ee){let de;de=ee.wholeLine?C.b.line(A,A.getPrimaryCursorState(),!1,ee.position,ee.viewPosition):C.b.moveTo(A,A.getPrimaryCursorState(),!1,ee.position,ee.viewPosition);let De=A.getCursorStates();if(De.length>1){let $e=de.modelState?de.modelState.position:null,pt=de.viewState?de.viewState.position:null;for(let it=0,At=De.length;it<At;it++){let Nt=De[it];if((!$e||Nt.modelState.selection.containsPosition($e))&&(!pt||Nt.viewState.selection.containsPosition(pt)))return De.splice(it,1),A.model.pushStackElement(),void A.setCursorStates(ee.source,3,De)}}De.push(de),A.model.pushStackElement(),A.setCursorStates(ee.source,3,De)}}),Y.LastCursorMoveToSelect=Object(O.l)(new class extends l{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(A,ee){let de=A.getLastAddedCursorIndex(),De=A.getCursorStates(),$e=De.slice(0);$e[de]=C.b.moveTo(A,De[de],!0,ee.position,ee.viewPosition),A.model.pushStackElement(),A.setCursorStates(ee.source,3,$e)}});class nt extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToBeginningOfLine(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorHome=Object(O.l)(new nt({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),Y.CursorHomeSelect=Object(O.l)(new nt({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class ct extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,this._exec(ee.getCursorStates())),ee.revealPrimaryCursor(de.source,!0)}_exec(ee){let de=[];for(let De=0,$e=ee.length;De<$e;De++){let pt=ee[De],it=pt.modelState.position.lineNumber;de[De]=E.d.fromModelState(pt.modelState.move(this._inSelectionMode,it,1,0))}return de}}Y.CursorLineStart=Object(O.l)(new ct({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:287}}})),Y.CursorLineStartSelect=Object(O.l)(new ct({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:1311}}}));class Ye extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToEndOfLine(ee,ee.getCursorStates(),this._inSelectionMode,de.sticky||!1)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorEnd=Object(O.l)(new Ye({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:P.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:h.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),Y.CursorEndSelect=Object(O.l)(new Ye({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:P.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:h.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class ht extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,this._exec(ee,ee.getCursorStates())),ee.revealPrimaryCursor(de.source,!0)}_exec(ee,de){let De=[];for(let $e=0,pt=de.length;$e<pt;$e++){let it=de[$e],At=it.modelState.position.lineNumber,Nt=ee.model.getLineMaxColumn(At);De[$e]=E.d.fromModelState(it.modelState.move(this._inSelectionMode,At,Nt,0))}return De}}Y.CursorLineEnd=Object(O.l)(new ht({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:291}}})),Y.CursorLineEndSelect=Object(O.l)(new ht({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:1315}}}));class fe extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToBeginningOfBuffer(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorTop=Object(O.l)(new fe({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2062,mac:{primary:2064}}})),Y.CursorTopSelect=Object(O.l)(new fe({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3086,mac:{primary:3088}}}));class $ extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,C.b.moveToEndOfBuffer(ee,ee.getCursorStates(),this._inSelectionMode)),ee.revealPrimaryCursor(de.source,!0)}}Y.CursorBottom=Object(O.l)(new $({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2061,mac:{primary:2066}}})),Y.CursorBottomSelect=Object(O.l)(new $({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:3085,mac:{primary:3090}}}));class G extends l{constructor(){super({id:"editorScroll",precondition:void 0,description:T.description})}runCoreEditorCommand(ee,de){let De=T.parse(de);De&&this._runEditorScroll(ee,de.source,De)}_runEditorScroll(ee,de,De){let $e=this._computeDesiredScrollTop(ee,De);if(De.revealCursor){let pt=ee.getCompletelyVisibleViewRangeAtScrollTop($e);ee.setCursorStates(de,3,[C.b.findPositionInViewportIfOutside(ee,ee.getPrimaryCursorState(),pt,De.select)])}ee.setScrollTop($e,0)}_computeDesiredScrollTop(ee,de){if(de.unit===1){let pt=ee.getCompletelyVisibleViewRange(),it=ee.coordinatesConverter.convertViewRangeToModelRange(pt),At;At=de.direction===1?Math.max(1,it.startLineNumber-de.value):Math.min(ee.model.getLineCount(),it.startLineNumber+de.value);let Nt=ee.coordinatesConverter.convertModelPositionToViewPosition(new ge.a(At,1));return ee.getVerticalOffsetForLineNumber(Nt.lineNumber)}let De;De=de.unit===3?ee.cursorConfig.pageSize*de.value:de.unit===4?Math.round(ee.cursorConfig.pageSize/2)*de.value:de.value;let $e=(de.direction===1?-1:1)*De;return ee.getScrollTop()+$e*ee.cursorConfig.lineHeight}}Y.EditorScrollImpl=G,Y.EditorScroll=Object(O.l)(new G),Y.ScrollLineUp=Object(O.l)(new class extends l{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),Y.ScrollPageUp=Object(O.l)(new class extends l{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),Y.ScrollLineDown=Object(O.l)(new class extends l{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),Y.ScrollPageDown=Object(O.l)(new class extends l{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(A,ee){Y.EditorScroll._runEditorScroll(A,ee.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class z extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.word(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position)]),ee.revealPrimaryCursor(de.source,!0)}}Y.WordSelect=Object(O.l)(new z({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),Y.WordSelectDrag=Object(O.l)(new z({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),Y.LastCursorWordSelect=Object(O.l)(new class extends l{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(A,ee){let de=A.getLastAddedCursorIndex(),De=A.getCursorStates(),$e=De.slice(0),pt=De[de];$e[de]=C.b.word(A,pt,pt.modelState.hasSelection(),ee.position),A.model.pushStackElement(),A.setCursorStates(ee.source,3,$e)}});class J extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){ee.model.pushStackElement(),ee.setCursorStates(de.source,3,[C.b.line(ee,ee.getPrimaryCursorState(),this._inSelectionMode,de.position,de.viewPosition)]),ee.revealPrimaryCursor(de.source,!1)}}Y.LineSelect=Object(O.l)(new J({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),Y.LineSelectDrag=Object(O.l)(new J({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class Se extends l{constructor(ee){super(ee),this._inSelectionMode=ee.inSelectionMode}runCoreEditorCommand(ee,de){let De=ee.getLastAddedCursorIndex(),$e=ee.getCursorStates(),pt=$e.slice(0);pt[De]=C.b.line(ee,$e[De],this._inSelectionMode,de.position,de.viewPosition),ee.model.pushStackElement(),ee.setCursorStates(de.source,3,pt)}}Y.LastCursorLineSelect=Object(O.l)(new Se({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),Y.LastCursorLineSelectDrag=Object(O.l)(new Se({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),Y.ExpandLineSelection=Object(O.l)(new class extends l{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:2090}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,C.b.expandLineSelection(A,A.getCursorStates())),A.revealPrimaryCursor(ee.source,!0)}}),Y.CancelSelection=Object(O.l)(new class extends l{constructor(){super({id:"cancelSelection",precondition:P.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[C.b.cancelSelection(A,A.getPrimaryCursorState())]),A.revealPrimaryCursor(ee.source,!0)}}),Y.RemoveSecondaryCursors=Object(O.l)(new class extends l{constructor(){super({id:"removeSecondaryCursors",precondition:P.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:P.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[A.getPrimaryCursorState()]),A.revealPrimaryCursor(ee.source,!0)}}),Y.RevealLine=Object(O.l)(new class extends l{constructor(){super({id:"revealLine",precondition:void 0,description:b.description})}runCoreEditorCommand(A,ee){let de=ee,De=(de.lineNumber||0)+1;De<1&&(De=1);let $e=A.model.getLineCount();De>$e&&(De=$e);let pt=new W.a(De,1,De,A.model.getLineMaxColumn(De)),it=0;if(de.at)switch(de.at){case b.RawAtArgument.Top:it=3;break;case b.RawAtArgument.Center:it=1;break;case b.RawAtArgument.Bottom:it=4}let At=A.coordinatesConverter.convertModelRangeToViewRange(pt);A.revealRange(ee.source,!1,At,it,0)}}),Y.SelectAll=new class extends ie{constructor(){super(O.h)}runDOMCommand(){document.execCommand("selectAll")}runEditorCommand(A,ee,de){let De=ee._getViewModel();De&&this.runCoreEditorCommand(De,de)}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates("keyboard",3,[C.b.selectAll(A,A.getPrimaryCursorState())])}},Y.SetSelection=Object(O.l)(new class extends l{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(A,ee){A.model.pushStackElement(),A.setCursorStates(ee.source,3,[E.d.fromModelSelection(ee.selection)])}})})(j||(j={}));let U=V.a.and(P.a.textInputFocus,P.a.columnSelection);function q(Y,Z){k.a.registerKeybindingRule({id:Y,primary:Z,when:U,weight:1})}function B(Y){return Y.register(),Y}var se;q(j.CursorColumnSelectLeft.id,1039),q(j.CursorColumnSelectRight.id,1041),q(j.CursorColumnSelectUp.id,1040),q(j.CursorColumnSelectPageUp.id,1035),q(j.CursorColumnSelectDown.id,1042),q(j.CursorColumnSelectPageDown.id,1036),function(Y){class Z extends O.c{runEditorCommand(he,Ce,Ae){let L=Ce._getViewModel();L&&this.runCoreEditingCommand(Ce,L,Ae||{})}}Y.CoreEditingCommand=Z,Y.LineBreakInsert=Object(O.l)(new class extends Z{constructor(){super({id:"lineBreakInsert",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.lineBreakInsert(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection)))}}),Y.Outdent=Object(O.l)(new class extends Z{constructor(){super({id:"outdent",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:V.a.and(P.a.editorTextFocus,P.a.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.outdent(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection))),te.pushUndoStop()}}),Y.Tab=Object(O.l)(new class extends Z{constructor(){super({id:"tab",precondition:P.a.writable,kbOpts:{weight:0,kbExpr:V.a.and(P.a.editorTextFocus,P.a.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(te,he,Ce){te.pushUndoStop(),te.executeCommands(this.id,S.a.tab(he.cursorConfig,he.model,he.getCursorStates().map(Ae=>Ae.modelState.selection))),te.pushUndoStop()}}),Y.DeleteLeft=Object(O.l)(new class extends Z{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(te,he,Ce){let[Ae,L]=y.a.deleteLeft(he.getPrevEditOperationType(),he.cursorConfig,he.model,he.getCursorStates().map(nt=>nt.modelState.selection));Ae&&te.pushUndoStop(),te.executeCommands(this.id,L),he.setPrevEditOperationType(2)}}),Y.DeleteRight=Object(O.l)(new class extends Z{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:P.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(te,he,Ce){let[Ae,L]=y.a.deleteRight(he.getPrevEditOperationType(),he.cursorConfig,he.model,he.getCursorStates().map(nt=>nt.modelState.selection));Ae&&te.pushUndoStop(),te.executeCommands(this.id,L),he.setPrevEditOperationType(3)}}),Y.Undo=new class extends ie{constructor(){super(O.i)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(te,he,Ce){he.hasModel()&&he.getOption(72)!==!0&&he.getModel().undo()}},Y.Redo=new class extends ie{constructor(){super(O.g)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(te,he,Ce){he.hasModel()&&he.getOption(72)!==!0&&he.getModel().redo()}}}(se||(se={}));class ke extends O.a{constructor(Z,te,he){super({id:Z,precondition:void 0,description:he}),this._handlerId=te}runCommand(Z,te){let he=Z.get(H.a).getFocusedCodeEditor();he&&he.trigger("keyboard",this._handlerId,te)}}function xe(Y,Z){B(new ke("default:"+Y,Y)),B(new ke(Y,Y,Z))}xe("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),xe("replacePreviousChar"),xe("compositionStart"),xe("compositionEnd"),xe("paste"),xe("cut")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Ll}),r.d(w,"b",function(){return Fo}),r.d(w,"c",function(){return vs}),r.d(w,"d",function(){return Ps}),r.d(w,"g",function(){return Qd}),r.d(w,"h",function(){return Jd}),r.d(w,"i",function(){return eh}),r.d(w,"j",function(){return ic}),r.d(w,"e",function(){return th}),r.d(w,"f",function(){return ih}),r.d(w,"l",function(){return nh}),r.d(w,"k",function(){return rh}),r.d(w,"m",function(){return oh}),r.d(w,"n",function(){return ma});var h,f=r(26),O=r(100),H=(r(200),r(41)),E=r(1),ge=r(53),W=r(178),Q=r(45),y=r(51),C=r(23),S=r(27),P=r(79);(function(me){me[me.API=0]="API",me[me.USER=1]="USER"})(h||(h={}));var V=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},k=function(me,s){return function(v,M){s(v,M,me)}},l=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};let T=class{constructor(me){this._commandService=me}open(me){return l(this,void 0,void 0,function*(){if(!Object(P.c)(me,Q.b.command))return!1;typeof me=="string"&&(me=C.a.parse(me));let s=[];try{s=Object(W.a)(decodeURIComponent(me.query))}catch(v){try{s=Object(W.a)(me.query)}catch(M){}}return Array.isArray(s)||(s=[s]),yield this._commandService.executeCommand(me.path,...s),!0})}};T=V([k(0,S.b)],T);let N=class{constructor(me){this._editorService=me}open(me,s){return l(this,void 0,void 0,function*(){typeof me=="string"&&(me=C.a.parse(me));let v,M=/^L?(\d+)(?:,(\d+))?/.exec(me.fragment);return M&&(v={startLineNumber:parseInt(M[1]),startColumn:M[2]?parseInt(M[2]):1},me=me.with({fragment:""})),me.scheme===Q.b.file&&(me=Object(y.h)(me)),yield this._editorService.openCodeEditor({resource:me,options:{selection:v,context:(s==null?void 0:s.fromUserGesture)?h.USER:h.API}},this._editorService.getFocusedCodeEditor(),s==null?void 0:s.openToSide),!0})}};N=V([k(0,H.a)],N);let b=class{constructor(me,s){this._openers=new ge.a,this._validators=new ge.a,this._resolvers=new ge.a,this._externalOpener={openExternal:v=>(Object(P.c)(v,Q.b.http)||Object(P.c)(v,Q.b.https)?E.cb(v):window.location.href=v,Promise.resolve(!0))},this._openers.push({open:(v,M)=>l(this,void 0,void 0,function*(){return!!((M==null?void 0:M.openExternal)||Object(P.c)(v,Q.b.mailto)||Object(P.c)(v,Q.b.http)||Object(P.c)(v,Q.b.https))&&(yield this._doOpenExternal(v,M),!0)})}),this._openers.push(new T(s)),this._openers.push(new N(me))}open(me,s){return l(this,void 0,void 0,function*(){for(let v of this._validators.toArray())if(!(yield v.shouldOpen(me)))return!1;for(let v of this._openers.toArray())if(yield v.open(me,s))return!0;return!1})}resolveExternalUri(me,s){return l(this,void 0,void 0,function*(){for(let v of this._resolvers.toArray()){let M=yield v.resolveExternalUri(me,s);if(M)return M}return{resolved:me,dispose:()=>{}}})}_doOpenExternal(me,s){return l(this,void 0,void 0,function*(){let v=typeof me=="string"?C.a.parse(me):me,{resolved:M}=yield this.resolveExternalUri(v,s);return typeof me=="string"&&v.toString()===M.toString()?this._externalOpener.openExternal(me):this._externalOpener.openExternal(encodeURI(M.toString(!0)))})}dispose(){this._validators.clear()}};b=V([k(0,H.a),k(1,S.b)],b);var g=r(193),j=r(160),ie=r(143),U=r(58),q=r(12),B=r(90),se=r(96),ke=r(122),xe=r(20),Y=r(2),Z=r(94),te=r(11);class he{constructor(s,v,M,be,Ne){this.id=v;let Oe=function(je,mt){if(te.b.MonacoEnvironment){if(typeof te.b.MonacoEnvironment.getWorker=="function")return te.b.MonacoEnvironment.getWorker(je,mt);if(typeof te.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(te.b.MonacoEnvironment.getWorkerUrl(je,mt))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",M);typeof Oe.then=="function"?this.worker=Oe:this.worker=Promise.resolve(Oe),this.postMessage(s,[]),this.worker.then(je=>{je.onmessage=function(mt){be(mt.data)},je.onmessageerror=Ne,typeof je.addEventListener=="function"&&je.addEventListener("error",Ne)})}getId(){return this.id}postMessage(s,v){this.worker&&this.worker.then(M=>M.postMessage(s,v))}dispose(){this.worker&&this.worker.then(s=>s.terminate()),this.worker=null}}class Ce{constructor(s){this._label=s,this._webWorkerFailedBeforeError=!1}create(s,v,M){let be=++Ce.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new he(s,be,this._label||"anonymous"+be,v,Ne=>{Object(Z.c)(Ne),this._webWorkerFailedBeforeError=Ne,M(Ne)})}}Ce.LAST_WORKER_ID=0;var Ae=r(3),L=r(39),nt=r(104),ct=r(64),Ye=r(152),ht=r(8),fe=r(16),$=r(102),G=r(158),z=r(13),J=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Se=function(me,s){return function(v,M){s(v,M,me)}},A=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};function ee(me,s){let v=me.getModel(s);return!!v&&!v.isTooLargeForSyncing()}let de=class extends Y.a{constructor(me,s,v){super(),this._modelService=me,this._workerManager=this._register(new $e(this._modelService)),this._logService=v,this._register(q.s.register("*",{provideLinks:(M,be)=>ee(this._modelService,M.uri)?this._workerManager.withWorker().then(Ne=>Ne.computeLinks(M.uri)).then(Ne=>Ne&&{links:Ne}):Promise.resolve({links:[]})})),this._register(q.d.register("*",new De(this._workerManager,s,this._modelService)))}dispose(){super.dispose()}canComputeDiff(me,s){return ee(this._modelService,me)&&ee(this._modelService,s)}computeDiff(me,s,v,M){return this._workerManager.withWorker().then(be=>be.computeDiff(me,s,v,M))}computeMoreMinimalEdits(me,s){if(Object(fe.o)(s)){if(!ee(this._modelService,me))return Promise.resolve(s);let v=G.a.create(!0),M=this._workerManager.withWorker().then(be=>be.computeMoreMinimalEdits(me,s));return M.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",me.toString(!0),v.elapsed())),M}return Promise.resolve(void 0)}canNavigateValueSet(me){return ee(this._modelService,me)}navigateValueSet(me,s,v){return this._workerManager.withWorker().then(M=>M.navigateValueSet(me,s,v))}canComputeWordRanges(me){return ee(this._modelService,me)}computeWordRanges(me,s){return this._workerManager.withWorker().then(v=>v.computeWordRanges(me,s))}};de=J([Se(0,ct.a),Se(1,Ye.a),Se(2,$.b)],de);class De{constructor(s,v,M){this._debugDisplayName="wordbasedCompletions",this._workerManager=s,this._configurationService=v,this._modelService=M}provideCompletionItems(s,v){return A(this,void 0,void 0,function*(){let{wordBasedSuggestions:M}=this._configurationService.getValue(s.uri,v,"editor");if(!M||!ee(this._modelService,s.uri))return;let be=s.getWordAtPosition(v),Ne=be?new Ae.a(v.lineNumber,be.startColumn,v.lineNumber,be.endColumn):Ae.a.fromPositions(v),Oe=Ne.setEndPosition(v.lineNumber,v.column),je=yield this._workerManager.withWorker(),mt=yield je.textualSuggest(s.uri,v);return mt?{suggestions:mt.map(It=>({kind:18,label:It,insertText:It,range:{insert:Oe,replace:Ne}}))}:void 0})}}class $e extends Y.a{constructor(s){super(),this._modelService=s,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new xe.c).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(v=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){!this._editorWorkerClient||this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Nt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class pt extends Y.a{constructor(s,v,M){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=s,this._modelService=v,!M){let be=new xe.c;be.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(be)}}dispose(){for(let s in this._syncedModels)Object(Y.f)(this._syncedModels[s]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(s){for(let v of s){let M=v.toString();this._syncedModels[M]||this._beginModelSync(v),this._syncedModels[M]&&(this._syncedModelsLastUsedTime[M]=new Date().getTime())}}_checkStopModelSync(){let s=new Date().getTime(),v=[];for(let M in this._syncedModelsLastUsedTime)s-this._syncedModelsLastUsedTime[M]>6e4&&v.push(M);for(let M of v)this._stopModelSync(M)}_beginModelSync(s){let v=this._modelService.getModel(s);if(!v||v.isTooLargeForSyncing())return;let M=s.toString();this._proxy.acceptNewModel({url:v.uri.toString(),lines:v.getLinesContent(),EOL:v.getEOL(),versionId:v.getVersionId()});let be=new Y.b;be.add(v.onDidChangeContent(Ne=>{this._proxy.acceptModelChanged(M.toString(),Ne)})),be.add(v.onWillDispose(()=>{this._stopModelSync(M)})),be.add(Object(Y.h)(()=>{this._proxy.acceptRemovedModel(M)})),this._syncedModels[M]=be}_stopModelSync(s){let v=this._syncedModels[s];delete this._syncedModels[s],delete this._syncedModelsLastUsedTime[s],Object(Y.f)(v)}}class it{constructor(s){this._instance=s,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class At{constructor(s){this._workerClient=s}fhr(s,v){return this._workerClient.fhr(s,v)}}class Nt extends Y.a{constructor(s,v,M){super(),this._disposed=!1,this._modelService=s,this._keepIdleModels=v,this._workerFactory=new Ce(M),this._worker=null,this._modelManager=null}fhr(s,v){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Z.a(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new At(this)))}catch(s){Object(Z.c)(s),this._worker=new it(new nt.a(new At(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,s=>(Object(Z.c)(s),this._worker=new it(new nt.a(new At(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(s){return this._modelManager||(this._modelManager=this._register(new pt(s,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(s){return this._disposed?Promise.reject(Object(z.a)()):this._getProxy().then(v=>(this._getOrCreateModelManager(v).ensureSyncedResources(s),v))}computeDiff(s,v,M,be){return this._withSyncedResources([s,v]).then(Ne=>Ne.computeDiff(s.toString(),v.toString(),M,be))}computeMoreMinimalEdits(s,v){return this._withSyncedResources([s]).then(M=>M.computeMoreMinimalEdits(s.toString(),v))}computeLinks(s){return this._withSyncedResources([s]).then(v=>v.computeLinks(s.toString()))}textualSuggest(s,v){return this._withSyncedResources([s]).then(M=>{let be=this._modelService.getModel(s);if(!be)return null;let Ne=L.a.getWordDefinition(be.getLanguageIdentifier().id),Oe=Ne.source,je=Object(ht.O)(Ne);return M.textualSuggest(s.toString(),v,Oe,je)})}computeWordRanges(s,v){return this._withSyncedResources([s]).then(M=>{let be=this._modelService.getModel(s);if(!be)return Promise.resolve(null);let Ne=L.a.getWordDefinition(be.getLanguageIdentifier().id),Oe=Ne.source,je=Object(ht.O)(Ne);return M.computeWordRanges(s.toString(),v,Oe,je)})}navigateValueSet(s,v,M){return this._withSyncedResources([s]).then(be=>{let Ne=this._modelService.getModel(s);if(!Ne)return null;let Oe=L.a.getWordDefinition(Ne.getLanguageIdentifier().id),je=Oe.source,mt=Object(ht.O)(Oe);return be.navigateValueSet(s.toString(),v,M,je,mt)})}dispose(){super.dispose(),this._disposed=!0}}var _i=r(14);class wt extends Nt{constructor(s,v){super(s,v.keepIdleModels||!1,v.label),this._foreignModuleId=v.moduleId,this._foreignModuleCreateData=v.createData||null,this._foreignModuleHost=v.host||null,this._foreignProxy=null}fhr(s,v){if(!this._foreignModuleHost||typeof this._foreignModuleHost[s]!="function")return Promise.reject(new Error("Missing method "+s+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[s].apply(this._foreignModuleHost,v))}catch(M){return Promise.reject(M)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(s=>{let v=this._foreignModuleHost?_i.d(this._foreignModuleHost):[];return s.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,v).then(M=>{this._foreignModuleCreateData=null;let be=(je,mt)=>s.fmr(je,mt),Ne=(je,mt)=>function(){let It=Array.prototype.slice.call(arguments,0);return mt(je,It)},Oe={};for(let je of M)Oe[je]=Ne(je,be);return Oe})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(s){return this._withSyncedResources(s).then(v=>this.getProxy())}}var Ni=r(40),pi=r(111),et=r(91),Wt=r(74),Li=r(77);function Ii(me){return!function(s){return Array.isArray(s)}(me)}function Ai(me){return typeof me=="string"}function Zi(me){return!Ai(me)}function Bi(me){return!me}function Lt(me,s){return me.ignoreCase&&s?s.toLowerCase():s}function Oi(me){return me.replace(/[&<>'"_]/g,"-")}function gt(me,s){return new Error(`${me.languageId}: ${s}`)}function vi(me,s,v,M,be){let Ne=null;return s.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(Oe,je,mt,It,Qt,Di,en,tn,kn){return Bi(mt)?Bi(It)?!Bi(Qt)&&Qt<M.length?Lt(me,M[Qt]):!Bi(en)&&me&&typeof me[en]=="string"?me[en]:(Ne===null&&(Ne=be.split("."),Ne.unshift(be)),!Bi(Di)&&Di<Ne.length?Lt(me,Ne[Di]):""):Lt(me,v):"$"})}function Rt(me,s){let v=s;for(;v&&v.length>0;){let M=me.tokenizer[v];if(M)return M;let be=v.lastIndexOf(".");v=be<0?null:v.substr(0,be)}return null}class vt{constructor(s){this._maxCacheDepth=s,this._entries=Object.create(null)}static create(s,v){return this._INSTANCE.create(s,v)}create(s,v){if(s!==null&&s.depth>=this._maxCacheDepth)return new Ue(s,v);let M=Ue.getStackElementId(s);M.length>0&&(M+="|"),M+=v;let be=this._entries[M];return be||(be=new Ue(s,v),this._entries[M]=be,be)}}vt._INSTANCE=new vt(5);class Ue{constructor(s,v){this.parent=s,this.state=v,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(s){let v="";for(;s!==null;)v.length>0&&(v+="|"),v+=s.state,s=s.parent;return v}static _equals(s,v){for(;s!==null&&v!==null;){if(s===v)return!0;if(s.state!==v.state)return!1;s=s.parent,v=v.parent}return s===null&&v===null}equals(s){return Ue._equals(this,s)}push(s){return vt.create(this,s)}pop(){return this.parent}popall(){let s=this;for(;s.parent;)s=s.parent;return s}switchTo(s){return vt.create(this.parent,s)}}class ut{constructor(s,v){this.modeId=s,this.state=v}equals(s){return this.modeId===s.modeId&&this.state.equals(s.state)}clone(){return this.state.clone()===this.state?this:new ut(this.modeId,this.state)}}class ze{constructor(s){this._maxCacheDepth=s,this._entries=Object.create(null)}static create(s,v){return this._INSTANCE.create(s,v)}create(s,v){if(v!==null)return new st(s,v);if(s!==null&&s.depth>=this._maxCacheDepth)return new st(s,v);let M=Ue.getStackElementId(s),be=this._entries[M];return be||(be=new st(s,null),this._entries[M]=be,be)}}ze._INSTANCE=new ze(5);class st{constructor(s,v){this.stack=s,this.embeddedModeData=v}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:ze.create(this.stack,this.embeddedModeData)}equals(s){return s instanceof st&&!!this.stack.equals(s.stack)&&(this.embeddedModeData===null&&s.embeddedModeData===null||this.embeddedModeData!==null&&s.embeddedModeData!==null&&this.embeddedModeData.equals(s.embeddedModeData))}}class _t{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(s,v){this._language=v}emit(s,v){this._lastTokenType===v&&this._lastTokenLanguage===this._language||(this._lastTokenType=v,this._lastTokenLanguage=this._language,this._tokens.push(new Li.a(s,v,this._language)))}nestedModeTokenize(s,v,M){let be=v.modeId,Ne=v.state,Oe=q.C.get(be);if(!Oe)return this.enterMode(M,be),this.emit(M,""),Ne;let je=Oe.tokenize(s,Ne,M);return this._tokens=this._tokens.concat(je.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,je.endState}finalize(s){return new Li.b(this._tokens,s)}}class ri{constructor(s,v){this._modeService=s,this._theme=v,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(s,v){this._currentLanguageId=this._modeService.getLanguageIdentifier(v).id}emit(s,v){let M=this._theme.match(this._currentLanguageId,v);this._lastTokenMetadata!==M&&(this._lastTokenMetadata=M,this._tokens.push(s),this._tokens.push(M))}static _merge(s,v,M){let be=s!==null?s.length:0,Ne=v.length,Oe=M!==null?M.length:0;if(be===0&&Ne===0&&Oe===0)return new Uint32Array(0);if(be===0&&Ne===0)return M;if(Ne===0&&Oe===0)return s;let je=new Uint32Array(be+Ne+Oe);s!==null&&je.set(s);for(let mt=0;mt<Ne;mt++)je[be+mt]=v[mt];return M!==null&&je.set(M,be+Ne),je}nestedModeTokenize(s,v,M){let be=v.modeId,Ne=v.state,Oe=q.C.get(be);if(!Oe)return this.enterMode(M,be),this.emit(M,""),Ne;let je=Oe.tokenize2(s,Ne,M);return this._prependTokens=ri._merge(this._prependTokens,this._tokens,je.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,je.endState}finalize(s){return new Li.c(ri._merge(this._prependTokens,this._tokens,null),s)}}class li{constructor(s,v,M,be){this._modeService=s,this._standaloneThemeService=v,this._modeId=M,this._lexer=be,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let Ne=!1;this._tokenizationRegistryListener=q.C.onDidChange(Oe=>{if(Ne)return;let je=!1;for(let mt=0,It=Oe.changedLanguages.length;mt<It;mt++){let Qt=Oe.changedLanguages[mt];if(this._embeddedModes[Qt]){je=!0;break}}je&&(Ne=!0,q.C.fire([this._modeId]),Ne=!1)})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let s=[];for(let v in this._embeddedModes){let M=q.C.get(v);if(M){if(M instanceof li){let Ne=M.getLoadStatus();Ne.loaded===!1&&s.push(Ne.promise)}continue}let be=q.C.getPromise(v);be&&s.push(be)}return s.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(s).then(v=>{})}}getInitialState(){let s=vt.create(null,this._lexer.start);return ze.create(s,null)}tokenize(s,v,M){let be=new _t,Ne=this._tokenize(s,v,M,be);return be.finalize(Ne)}tokenize2(s,v,M){let be=new ri(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),Ne=this._tokenize(s,v,M,be);return be.finalize(Ne)}_tokenize(s,v,M,be){return v.embeddedModeData?this._nestedTokenize(s,v,M,be):this._myTokenize(s,v,M,be)}_findLeavingNestedModeOffset(s,v){let M=this._lexer.tokenizer[v.stack.state];if(!M&&(M=Rt(this._lexer,v.stack.state),!M))throw gt(this._lexer,"tokenizer state is not defined: "+v.stack.state);let be=-1,Ne=!1;for(let Oe of M){if(!Zi(Oe.action)||Oe.action.nextEmbedded!=="@pop")continue;Ne=!0;let je=Oe.regex,mt=Oe.regex.source;if(mt.substr(0,4)==="^(?:"&&mt.substr(mt.length-1,1)===")"){let Qt=(je.ignoreCase?"i":"")+(je.unicode?"u":"");je=new RegExp(mt.substr(4,mt.length-5),Qt)}let It=s.search(je);It===-1||It!==0&&Oe.matchOnlyAtLineStart||(be===-1||It<be)&&(be=It)}if(!Ne)throw gt(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+v.stack.state);return be}_nestedTokenize(s,v,M,be){let Ne=this._findLeavingNestedModeOffset(s,v);if(Ne===-1){let mt=be.nestedModeTokenize(s,v.embeddedModeData,M);return ze.create(v.stack,new ut(v.embeddedModeData.modeId,mt))}let Oe=s.substring(0,Ne);Oe.length>0&&be.nestedModeTokenize(Oe,v.embeddedModeData,M);let je=s.substring(Ne);return this._myTokenize(je,v,M+Ne,be)}_safeRuleName(s){return s?s.name:"(unknown)"}_myTokenize(s,v,M,be){be.enterMode(M,this._modeId);let Ne=s.length,Oe=v.embeddedModeData,je=v.stack,mt=0,It=null,Qt=!0;for(;Qt||mt<Ne;){let tn=mt,kn=je.depth,nr=It?It.groups.length:0,lr=je.state,hr=null,rr=null,ir=null,mo=null,Fa=null;if(It){hr=It.matches;let mr=It.groups.shift();rr=mr.matched,ir=mr.action,mo=It.rule,It.groups.length===0&&(It=null)}else{if(!Qt&&mt>=Ne)break;Qt=!1;let mr=this._lexer.tokenizer[lr];if(!mr&&(mr=Rt(this._lexer,lr),!mr))throw gt(this._lexer,"tokenizer state is not defined: "+lr);let Zn=s.substr(mt);for(let Yr of mr)if((mt===0||!Yr.matchOnlyAtLineStart)&&(hr=Zn.match(Yr.regex),hr)){rr=hr[0],ir=Yr.action;break}}if(hr||(hr=[""],rr=""),ir||(mt<Ne&&(hr=[s.charAt(mt)],rr=hr[0]),ir=this._lexer.defaultToken),rr===null)break;for(mt+=rr.length;Ii(ir)&&Zi(ir)&&ir.test;)ir=ir.test(rr,hr,lr,mt===Ne);let Gr=null;if(typeof ir=="string"||Array.isArray(ir))Gr=ir;else if(ir.group)Gr=ir.group;else if(ir.token!==null&&ir.token!==void 0){if(Gr=ir.tokenSubst?vi(this._lexer,ir.token,rr,hr,lr):ir.token,ir.nextEmbedded)if(ir.nextEmbedded==="@pop"){if(!Oe)throw gt(this._lexer,"cannot pop embedded mode if not inside one");Oe=null}else{if(Oe)throw gt(this._lexer,"cannot enter embedded mode from within an embedded mode");Fa=vi(this._lexer,ir.nextEmbedded,rr,hr,lr)}if(ir.goBack&&(mt=Math.max(0,mt-ir.goBack)),ir.switchTo&&typeof ir.switchTo=="string"){let mr=vi(this._lexer,ir.switchTo,rr,hr,lr);if(mr[0]==="@"&&(mr=mr.substr(1)),!Rt(this._lexer,mr))throw gt(this._lexer,"trying to switch to a state '"+mr+"' that is undefined in rule: "+this._safeRuleName(mo));je=je.switchTo(mr)}else{if(ir.transform&&typeof ir.transform=="function")throw gt(this._lexer,"action.transform not supported");if(ir.next)if(ir.next==="@push"){if(je.depth>=this._lexer.maxStack)throw gt(this._lexer,"maximum tokenizer stack size reached: ["+je.state+","+je.parent.state+",...]");je=je.push(lr)}else if(ir.next==="@pop"){if(je.depth<=1)throw gt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(mo));je=je.pop()}else if(ir.next==="@popall")je=je.popall();else{let mr=vi(this._lexer,ir.next,rr,hr,lr);if(mr[0]==="@"&&(mr=mr.substr(1)),!Rt(this._lexer,mr))throw gt(this._lexer,"trying to set a next state '"+mr+"' that is undefined in rule: "+this._safeRuleName(mo));je=je.push(mr)}}ir.log&&typeof ir.log=="string"&&(Di=this._lexer,en=this._lexer.languageId+": "+vi(this._lexer,ir.log,rr,hr,lr),console.log(`${Di.languageId}: ${en}`))}if(Gr===null)throw gt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(mo));let Eo=mr=>{let Zn=this._modeService.getModeIdForLanguageName(mr);Zn&&(mr=Zn);let Yr=this._getNestedEmbeddedModeData(mr);if(mt<Ne){let ws=s.substr(mt);return this._nestedTokenize(ws,ze.create(je,Yr),M+mt,be)}return ze.create(je,Yr)};if(Array.isArray(Gr)){if(It&&It.groups.length>0)throw gt(this._lexer,"groups cannot be nested: "+this._safeRuleName(mo));if(hr.length!==Gr.length+1)throw gt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(mo));let mr=0;for(let Zn=1;Zn<hr.length;Zn++)mr+=hr[Zn].length;if(mr!==rr.length)throw gt(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(mo));It={rule:mo,matches:hr,groups:[]};for(let Zn=0;Zn<Gr.length;Zn++)It.groups[Zn]={action:Gr[Zn],matched:hr[Zn+1]};mt-=rr.length}else{{if(Gr==="@rematch"&&(mt-=rr.length,rr="",hr=null,Gr="",Fa!==null))return Eo(Fa);if(rr.length===0){if(Ne===0||kn!==je.depth||lr!==je.state||(It?It.groups.length:0)!==nr)continue;throw gt(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(mo))}let mr=null;if(Ai(Gr)&&Gr.indexOf("@brackets")===0){let Zn=Gr.substr("@brackets".length),Yr=gi(this._lexer,rr);if(!Yr)throw gt(this._lexer,"@brackets token returned but no bracket defined as: "+rr);mr=Oi(Yr.token+Zn)}else mr=Oi(Gr===""?"":Gr+this._lexer.tokenPostfix);be.emit(tn+M,mr)}if(Fa!==null)return Eo(Fa)}}var Di,en;return ze.create(je,Oe)}_getNestedEmbeddedModeData(s){let v=this._locateMode(s);if(v){let M=q.C.get(v);if(M)return new ut(v,M.getInitialState())}return new ut(v||B.b,B.c)}_locateMode(s){if(!s||!this._modeService.isRegisteredMode(s))return null;if(s===this._modeId)return s;let v=this._modeService.getModeId(s);return v&&(this._modeService.triggerMode(v),this._embeddedModes[v]=!0),v}}function gi(me,s){if(!s)return null;s=Lt(me,s);let v=me.brackets;for(let M of v){if(M.open===s)return{token:M.token,bracketType:1};if(M.close===s)return{token:M.token,bracketType:-1}}return null}class ki{static colorizeElement(s,v,M,be){let Ne=(be=be||{}).theme||"vs",Oe=be.mimeType||M.getAttribute("lang")||M.getAttribute("data-lang");if(!Oe)return console.error("Mode not detected"),Promise.resolve();s.setTheme(Ne);let je=M.firstChild?M.firstChild.nodeValue:"";return M.className+=" "+Ne,this.colorize(v,je||"",Oe,be).then(mt=>{M.innerHTML=mt},mt=>console.error(mt))}static colorize(s,v,M,be){let Ne=4;be&&typeof be.tabSize=="number"&&(Ne=be.tabSize),ht.U(v)&&(v=v.substr(1));let Oe=v.split(/\r\n|\r|\n/),je=s.getModeId(M);if(!je)return Promise.resolve($i(Oe,Ne));s.triggerMode(je);let mt=q.C.get(je);if(mt)return Ri(Oe,Ne,mt);let It=q.C.getPromise(je);return new Promise(It?(Qt,Di)=>{It.then(en=>{Ri(Oe,Ne,en).then(Qt,Di)},Di)}:(Qt,Di)=>{let en=null,tn=null,kn=()=>{en&&(en.dispose(),en=null),tn&&(tn.dispose(),tn=null);let nr=q.C.get(je);nr?Ri(Oe,Ne,nr).then(Qt,Di):Qt($i(Oe,Ne))};tn=new xe.e,tn.cancelAndSet(kn,500),en=q.C.onDidChange(nr=>{nr.changedLanguages.indexOf(je)>=0&&kn()})})}static colorizeLine(s,v,M,be,Ne=4){let Oe=Wt.d.isBasicASCII(s,v),je=Wt.d.containsRTL(s,Oe,M);return Object(et.e)(new et.c(!1,!0,s,!1,Oe,je,0,be,[],Ne,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(s,v,M=4){let be=s.getLineContent(v);s.forceTokenization(v);let Ne=s.getLineTokens(v).inflate();return this.colorizeLine(be,s.mightContainNonBasicASCII(),s.mightContainRTL(),Ne,M)}}function Ri(me,s,v){return new Promise((M,be)=>{let Ne=()=>{let Oe=function(je,mt,It){let Qt=[],Di=It.getInitialState();for(let en=0,tn=je.length;en<tn;en++){let kn=je[en],nr=It.tokenize2(kn,Di,0);pi.a.convertToEndOffset(nr.tokens,kn.length);let lr=new pi.a(nr.tokens,kn),hr=Wt.d.isBasicASCII(kn,!0),rr=Wt.d.containsRTL(kn,hr,!0),ir=Object(et.e)(new et.c(!1,!0,kn,!1,hr,rr,0,lr.inflate(),[],mt,0,0,0,0,-1,"none",!1,!1,null));Qt=Qt.concat(ir.html),Qt.push("<br/>"),Di=nr.endState}return Qt.join("")}(me,s,v);if(v instanceof li){let je=v.getLoadStatus();if(je.loaded===!1)return void je.promise.then(Ne,be)}M(Oe)};Ne()})}function $i(me,s){let v=[],M=new Uint32Array(2);M[0]=0,M[1]=16793600;for(let be=0,Ne=me.length;be<Ne;be++){let Oe=me[be];M[0]=Oe.length;let je=new pi.a(M,Oe),mt=Wt.d.isBasicASCII(Oe,!0),It=Wt.d.containsRTL(Oe,mt,!0),Qt=Object(et.e)(new et.c(!1,!0,Oe,!1,mt,It,0,je,[],s,0,0,0,0,-1,"none",!1,!1,null));v=v.concat(Qt.html),v.push("<br/>")}return v.join("")}var Hi=r(67),yi=r(6),kt=r(43),Et=r(68),si=r(112),Si=r(148),Pi=r(161),Wi=r(70),xn=r(9),un=r(54),bn=r(78),Fn=r(46),Mn=r(128);class Nn{constructor(s={},v=[],M=[]){this._contents=s,this._keys=v,this._overrides=M,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(s){return s?Object(un.d)(this.contents,s):this.contents}override(s){let v=this.getContentsForOverrideIdentifer(s);if(!v||typeof v!="object"||!Object.keys(v).length)return this;let M={};for(let be of fe.e([...Object.keys(this.contents),...Object.keys(v)])){let Ne=this.contents[be],Oe=v[be];Oe&&(typeof Ne=="object"&&typeof Oe=="object"?(Ne=Fn.c(Ne),this.mergeContents(Ne,Oe)):Ne=Oe),M[be]=Ne}return new Nn(M,this.keys,this.overrides)}merge(...s){let v=Fn.c(this.contents),M=Fn.c(this.overrides),be=[...this.keys];for(let Ne of s){this.mergeContents(v,Ne.contents);for(let Oe of Ne.overrides){let[je]=M.filter(mt=>fe.g(mt.identifiers,Oe.identifiers));je?this.mergeContents(je.contents,Oe.contents):M.push(Fn.c(Oe))}for(let Oe of Ne.keys)be.indexOf(Oe)===-1&&be.push(Oe)}return new Nn(v,be,M)}freeze(){return this.isFrozen=!0,this}mergeContents(s,v){for(let M of Object.keys(v))M in s&&_i.i(s[M])&&_i.i(v[M])?this.mergeContents(s[M],v[M]):s[M]=Fn.c(v[M])}checkAndFreeze(s){return this.isFrozen&&!Object.isFrozen(s)?Fn.d(s):s}getContentsForOverrideIdentifer(s){for(let v of this.overrides)if(v.identifiers.indexOf(s)!==-1)return v.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(s,v){this.addKey(s),Object(un.b)(this.contents,s,v,M=>{throw new Error(M)})}removeValue(s){this.removeKey(s)&&Object(un.f)(this.contents,s)}addKey(s){let v=this.keys.length;for(let M=0;M<v;M++)s.indexOf(this.keys[M])===0&&(v=M);this.keys.splice(v,1,s)}removeKey(s){let v=this.keys.indexOf(s);return v!==-1&&(this.keys.splice(v,1),!0)}}class Hn extends Nn{constructor(){let s=Object(un.e)(),v=Object(un.c)(),M=[];for(let be of Object.keys(s))Mn.b.test(be)&&M.push({identifiers:[Object(Mn.c)(be).trim()],keys:Object.keys(s[be]),contents:Object(un.g)(s[be],Ne=>console.error("Conflict in default settings file: "+Ne))});super(s,v,M)}}class Jn{constructor(s,v,M=new Nn,be=new Nn,Ne=new bn.b,Oe=new Nn,je=new bn.b,mt=!0){this._defaultConfiguration=s,this._localUserConfiguration=v,this._remoteUserConfiguration=M,this._workspaceConfiguration=be,this._folderConfigurations=Ne,this._memoryConfiguration=Oe,this._memoryConfigurationByResource=je,this._freeze=mt,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new bn.b,this._userConfiguration=null}getValue(s,v,M){return this.getConsolidateConfigurationModel(v,M).getValue(s)}updateValue(s,v,M={}){let be;M.resource?(be=this._memoryConfigurationByResource.get(M.resource),be||(be=new Nn,this._memoryConfigurationByResource.set(M.resource,be))):be=this._memoryConfiguration,v===void 0?be.removeValue(s):be.setValue(s,v),M.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(s,v){let M=this.getConsolidatedConfigurationModelForResource(s,v);return s.overrideIdentifier?M.override(s.overrideIdentifier):M}getConsolidatedConfigurationModelForResource({resource:s},v){let M=this.getWorkspaceConsolidatedConfiguration();if(v&&s){let be=v.getFolder(s);be&&(M=this.getFolderConsolidatedConfiguration(be.uri)||M);let Ne=this._memoryConfigurationByResource.get(s);Ne&&(M=M.merge(Ne))}return M}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(s){let v=this._foldersConsolidatedConfigurations.get(s);if(!v){let M=this.getWorkspaceConsolidatedConfiguration(),be=this._folderConfigurations.get(s);be?(v=M.merge(be),this._freeze&&(v=v.freeze()),this._foldersConsolidatedConfigurations.set(s,v)):v=M}return v}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((s,v)=>{let{contents:M,overrides:be,keys:Ne}=this._folderConfigurations.get(v);return s.push([v,{contents:M,overrides:be,keys:Ne}]),s},[])}}static parse(s){let v=this.parseConfigurationModel(s.defaults),M=this.parseConfigurationModel(s.user),be=this.parseConfigurationModel(s.workspace),Ne=s.folders.reduce((Oe,je)=>(Oe.set(C.a.revive(je[0]),this.parseConfigurationModel(je[1])),Oe),new bn.b);return new Jn(v,M,new Nn,be,Ne,new Nn,new bn.b,!1)}static parseConfigurationModel(s){return new Nn(s.contents,s.keys,s.overrides).freeze()}}class br{constructor(s,v,M,be){this.change=s,this.previous=v,this.currentConfiguraiton=M,this.currentWorkspace=be,this._previousConfiguration=void 0;let Ne=new Set;s.keys.forEach(je=>Ne.add(je)),s.overrides.forEach(([,je])=>je.forEach(mt=>Ne.add(mt))),this.affectedKeys=[...Ne.values()];let Oe=new Nn;this.affectedKeys.forEach(je=>Oe.setValue(je,{})),this.affectedKeysTree=Oe.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jn.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(s,v){var M;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,s)){if(v){let be=this.previousConfiguration?this.previousConfiguration.getValue(s,v,(M=this.previous)===null||M===void 0?void 0:M.workspace):void 0,Ne=this.currentConfiguraiton.getValue(s,v,this.currentWorkspace);return!Fn.e(be,Ne)}return!0}return!1}doesAffectedKeysTreeContains(s,v){let M,be=Object(un.g)({[v]:!0},()=>{});for(;typeof be=="object"&&(M=Object.keys(be)[0]);){if(!(s=s[M]))return!1;be=be[M]}return!0}}var pn=r(0);class Gn extends Y.a{constructor(s,v,M,be,Ne){super(),this._contextKeyService=s,this._commandService=v,this._telemetryService=M,this._notificationService=be,this._logService=Ne,this._onDidUpdateKeybindings=this._register(new yi.a),this._currentChord=null,this._currentChordChecker=new xe.c,this._currentChordStatusMessage=null,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:yi.b.None}dispose(){super.dispose()}_log(s){this._logging&&this._logService.info("[KeybindingService]: "+s)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybindings(s){return fe.d(this._getResolver().lookupKeybindings(s).map(v=>v.resolvedKeybinding))}lookupKeybinding(s){let v=this._getResolver().lookupPrimaryKeybinding(s);if(v)return v.resolvedKeybinding}dispatchEvent(s,v){return this._dispatch(s,v)}softDispatch(s,v){let M=this.resolveKeyboardEvent(s);if(M.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;let[be]=M.getDispatchParts();if(be===null)return null;let Ne=this._contextKeyService.getContext(v),Oe=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(Ne,Oe,be)}_enterChordMode(s,v){this._currentChord={keypress:s,label:v},this._currentChordStatusMessage=this._notificationService.status(pn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",v));let M=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-M>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(s,v){return this._doDispatch(this.resolveKeyboardEvent(s),v)}_doDispatch(s,v){let M=!1;if(s.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let[be]=s.getDispatchParts();if(be===null)return this._log("\\ Keyboard event cannot be dispatched."),M;let Ne=this._contextKeyService.getContext(v),Oe=this._currentChord?this._currentChord.keypress:null,je=s.getLabel(),mt=this._getResolver().resolve(Ne,Oe,be);return this._logService.trace("KeybindingService#dispatch",je,mt==null?void 0:mt.commandId),mt&&mt.enterChord?(M=!0,this._enterChordMode(be,je),M):(this._currentChord&&(mt&&mt.commandId||(this._notificationService.status(pn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,je),{hideAfter:1e4}),M=!0)),this._leaveChordMode(),mt&&mt.commandId&&(mt.bubble||(M=!0),mt.commandArgs===void 0?this._commandService.executeCommand(mt.commandId).then(void 0,It=>this._notificationService.warn(It)):this._commandService.executeCommand(mt.commandId,mt.commandArgs).then(void 0,It=>this._notificationService.warn(It)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:mt.commandId,from:"keybinding"})),M)}mightProducePrintableCharacter(s){return!s.ctrlKey&&!s.metaKey&&(s.keyCode>=31&&s.keyCode<=56||s.keyCode>=21&&s.keyCode<=30)}}class rn{constructor(s,v,M){this._log=M,this._defaultKeybindings=s,this._defaultBoundCommands=new Map;for(let be=0,Ne=s.length;be<Ne;be++){let Oe=s[be].command;Oe&&this._defaultBoundCommands.set(Oe,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=rn.combine(s,v);for(let be=0,Ne=this._keybindings.length;be<Ne;be++){let Oe=this._keybindings[be];Oe.keypressParts.length!==0&&(Oe.when&&Oe.when.type===0||this._addKeyPress(Oe.keypressParts[0],Oe))}}static _isTargetedForRemoval(s,v,M,be,Ne){return!(s.command!==be||v&&s.keypressParts[0]!==v||M&&s.keypressParts[1]!==M||Ne&&(!s.when||!Ne.equals(s.when)))}static combine(s,v){s=s.slice(0);let M=[];for(let be of v){if(!be.command||be.command.length===0||be.command.charAt(0)!=="-"){M.push(be);continue}let Ne=be.command.substr(1),Oe=be.keypressParts[0],je=be.keypressParts[1],mt=be.when;for(let It=s.length-1;It>=0;It--)this._isTargetedForRemoval(s[It],Oe,je,Ne,mt)&&s.splice(It,1)}return s.concat(M)}_addKeyPress(s,v){let M=this._map.get(s);if(M===void 0)return this._map.set(s,[v]),void this._addToLookupMap(v);for(let be=M.length-1;be>=0;be--){let Ne=M[be];if(Ne.command===v.command)continue;let Oe=Ne.keypressParts.length>1,je=v.keypressParts.length>1;Oe&&je&&Ne.keypressParts[1]!==v.keypressParts[1]||rn.whenIsEntirelyIncluded(Ne.when,v.when)&&this._removeFromLookupMap(Ne)}M.push(v),this._addToLookupMap(v)}_addToLookupMap(s){if(!s.command)return;let v=this._lookupMap.get(s.command);v===void 0?(v=[s],this._lookupMap.set(s.command,v)):v.push(s)}_removeFromLookupMap(s){if(!s.command)return;let v=this._lookupMap.get(s.command);if(v!==void 0){for(let M=0,be=v.length;M<be;M++)if(v[M]===s)return void v.splice(M,1)}}static whenIsEntirelyIncluded(s,v){return!v||!!s&&this._implies(s,v)}static _implies(s,v){let M=Ne=>Ne.type===9?Ne.expr:[Ne],be=M(s.negate()).concat(M(v));for(let Ne=0;Ne<be.length;Ne++){let Oe=be[Ne].negate();for(let je=Ne+1;je<be.length;je++){let mt=be[je];if(Oe.equals(mt))return!0}}return!1}getKeybindings(){return this._keybindings}lookupKeybindings(s){let v=this._lookupMap.get(s);if(v===void 0||v.length===0)return[];let M=[],be=0;for(let Ne=v.length-1;Ne>=0;Ne--)M[be++]=v[Ne];return M}lookupPrimaryKeybinding(s){let v=this._lookupMap.get(s);return v===void 0||v.length===0?null:v[v.length-1]}resolve(s,v,M){this._log(`| Resolving ${M}${v?" chorded from "+v:""}`);let be=null;if(v!==null){let Oe=this._map.get(v);if(Oe===void 0)return this._log("\\ No keybinding entries."),null;be=[];for(let je=0,mt=Oe.length;je<mt;je++){let It=Oe[je];It.keypressParts[1]===M&&be.push(It)}}else{let Oe=this._map.get(M);if(Oe===void 0)return this._log("\\ No keybinding entries."),null;be=Oe}let Ne=this._findCommand(s,be);return Ne?v===null&&Ne.keypressParts.length>1&&Ne.keypressParts[1]!==null?(this._log(`\\ From ${be.length} keybinding entries, matched chord, when: ${dr(Ne.when)}, source: ${Dn(Ne)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${be.length} keybinding entries, matched ${Ne.command}, when: ${dr(Ne.when)}, source: ${Dn(Ne)}.`),{enterChord:!1,leaveChord:Ne.keypressParts.length>1,commandId:Ne.command,commandArgs:Ne.commandArgs,bubble:Ne.bubble}):(this._log(`\\ From ${be.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(s,v){for(let M=v.length-1;M>=0;M--){let be=v[M];if(rn.contextMatchesRules(s,be.when))return be}return null}static contextMatchesRules(s,v){return!v||v.evaluate(s)}}function dr(me){return me?""+me.serialize():"no when condition"}function Dn(me){return me.isDefault?me.extensionId?"built-in extension "+me.extensionId:"built-in":me.extensionId?"user extension "+me.extensionId:"user"}var On=r(92);class qt{constructor(s,v,M,be,Ne,Oe){this.resolvedKeybinding=s,this.keypressParts=s?function(je){let mt=[];for(let It=0,Qt=je.length;It<Qt;It++){let Di=je[It];if(!Di)return mt;mt.push(Di)}return mt}(s.getDispatchParts()):[],this.bubble=!!v&&v.charCodeAt(0)===94,this.command=this.bubble?v.substr(1):v,this.commandArgs=M,this.when=be,this.isDefault=Ne,this.extensionId=Oe}}class I{constructor(s,v,M=v){this.modifierLabels=[null],this.modifierLabels[2]=s,this.modifierLabels[1]=v,this.modifierLabels[3]=M}toLabel(s,v,M){if(v.length===0)return null;let be=[];for(let Ne=0,Oe=v.length;Ne<Oe;Ne++){let je=v[Ne],mt=M(je);if(mt===null)return null;be[Ne]=Fe(je,mt,this.modifierLabels[s])}return be.join(" ")}}let ne=new I({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),_e=new I({ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function Fe(me,s,v){if(s===null)return"";let M=[];return me.ctrlKey&&M.push(v.ctrlKey),me.shiftKey&&M.push(v.shiftKey),me.altKey&&M.push(v.altKey),me.metaKey&&M.push(v.metaKey),s!==""&&M.push(s),M.join(v.separator)}class Xe extends kt.c{constructor(s,v){if(super(),v.length===0)throw Object(z.b)("parts");this._os=s,this._parts=v}getLabel(){return ne.toLabel(this._os,this._parts,s=>this._getLabel(s))}getAriaLabel(){return _e.toLabel(this._os,this._parts,s=>this._getAriaLabel(s))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(s=>this._getPart(s))}_getPart(s){return new kt.d(s.ctrlKey,s.shiftKey,s.altKey,s.metaKey,this._getLabel(s),this._getAriaLabel(s))}getDispatchParts(){return this._parts.map(s=>this._getDispatchPart(s))}}class rt extends Xe{constructor(s,v){super(v,s.parts)}_keyCodeToUILabel(s){if(this._os===2)switch(s){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return kt.b.toString(s)}_getLabel(s){return s.isDuplicateModifierCase()?"":this._keyCodeToUILabel(s.keyCode)}_getAriaLabel(s){return s.isDuplicateModifierCase()?"":kt.b.toString(s.keyCode)}_getDispatchPart(s){return rt.getDispatchStr(s)}static getDispatchStr(s){if(s.isModifierKey())return null;let v="";return s.ctrlKey&&(v+="ctrl+"),s.shiftKey&&(v+="shift+"),s.altKey&&(v+="alt+"),s.metaKey&&(v+="meta+"),v+=kt.b.toString(s.keyCode),v}}var Mt=r(49),Dt=r(169),Tt=r(55),Ht=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},jt=function(me,s){return function(v,M){s(v,M,me)}},Kt=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};class wi{constructor(s){this.disposed=!1,this.model=s,this._onDispose=new yi.a}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onDispose.fire()}}let Ti=class{constructor(me){this.modelService=me}setEditor(me){this.editor=me}createModelReference(me){let s=null;var v,M,be;return this.editor&&(v=this.editor,M=Ne=>this.findModel(Ne,me),be=Ne=>this.findModel(Ne.getOriginalEditor(),me)||this.findModel(Ne.getModifiedEditor(),me),s=Object(si.b)(v)?M(v):be(v)),s?Promise.resolve(new Y.c(new wi(s))):Promise.reject(new Error("Model not found"))}findModel(me,s){let v=this.modelService.getModel(s);return v&&v.uri.toString()!==s.toString()?null:v}};Ti=Ht([jt(0,ct.a)],Ti);class ft{show(){return ft.NULL_PROGRESS_RUNNER}showWhile(s,v){return Promise.resolve(void 0)}}ft.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class X{confirm(s){return this.doConfirm(s).then(v=>({confirmed:v,checkboxChecked:!1}))}doConfirm(s){let v=s.message;return s.detail&&(v=v+` -`+s.detail),Promise.resolve(window.confirm(v))}show(s,v,M,be){return Promise.resolve({choice:0})}}class ae{info(s){return this.notify({severity:Et.a.Info,message:s})}warn(s){return this.notify({severity:Et.a.Warning,message:s})}error(s){return this.notify({severity:Et.a.Error,message:s})}notify(s){switch(s.severity){case Et.a.Error:console.error(s.message);break;case Et.a.Warning:console.warn(s.message);break;default:console.log(s.message)}return ae.NO_OP}status(s,v){return Y.a.None}}ae.NO_OP=new Mt.b;class Ge{constructor(s){this._onWillExecuteCommand=new yi.a,this._onDidExecuteCommand=new yi.a,this._instantiationService=s}executeCommand(s,...v){let M=S.a.getCommand(s);if(!M)return Promise.reject(new Error(`command '${s}' not found`));try{this._onWillExecuteCommand.fire({commandId:s,args:v});let be=this._instantiationService.invokeFunction.apply(this._instantiationService,[M.handler,...v]);return this._onDidExecuteCommand.fire({commandId:s,args:v}),Promise.resolve(be)}catch(be){return Promise.reject(be)}}}class lt extends Gn{constructor(s,v,M,be,Ne,De){super(s,v,M,be,Ne),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(E.i(De,E.c.KEY_DOWN,je=>{let mt=new Hi.a(je);this._dispatch(mt,mt.target)&&(mt.preventDefault(),mt.stopPropagation())}))}addDynamicKeybinding(s,v,M,be){let Ne=Object(kt.f)(v,te.a),De=new Y.b;return Ne&&(this._dynamicKeybindings.push({keybinding:Ne,command:s,when:be,weight1:1e3,weight2:0,extensionId:null}),De.add(Object(Y.h)(()=>{for(let je=0;je<this._dynamicKeybindings.length;je++)if(this._dynamicKeybindings[je].command===s)return this._dynamicKeybindings.splice(je,1),void this.updateResolver({source:1})}))),De.add(S.a.registerCommand(s,M)),this.updateResolver({source:1}),De}updateResolver(s){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(s)}_getResolver(){if(!this._cachedResolver){let s=this._toNormalizedKeybindingItems(Dn.a.getDefaultKeybindings(),!0),v=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new on(s,v,M=>this._log(M))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(s,v){let M=[],be=0;for(let Ne of s){let De=Ne.when||void 0,je=Ne.keybinding;if(je){let mt=this.resolveKeybinding(je);for(let It of mt)M[be++]=new qt(It,Ne.command,Ne.commandArgs,De,v,null)}else M[be++]=new qt(void 0,Ne.command,Ne.commandArgs,De,v,null)}return M}resolveKeybinding(s){return[new ot(s,te.a)]}resolveKeyboardEvent(s){let v=new kt.e(s.ctrlKey,s.shiftKey,s.altKey,s.metaKey,s.keyCode).toChord();return new ot(v,te.a)}}function Dt(me){return me&&typeof me=="object"&&(!me.overrideIdentifier||typeof me.overrideIdentifier=="string")&&(!me.resource||me.resource instanceof C.a)}class Gt{constructor(){this._onDidChangeConfiguration=new yi.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Jn(new Hn,new Nn)}getValue(s,v){let M=typeof s=="string"?s:void 0,be=Dt(s)?s:Dt(v)?v:{};return this._configuration.getValue(M,be,void 0)}updateValues(s){let v={data:this._configuration.toData()},M=[];for(let be of s){let[Ne,De]=be;this.getValue(Ne)!==De&&(this._configuration.updateValue(Ne,De),M.push(Ne))}if(M.length>0){let be=new _o({keys:M,overrides:[]},v,this._configuration);be.source=7,be.sourceConfig=null,this._onDidChangeConfiguration.fire(be)}return Promise.resolve()}}class ti{constructor(s){this.configurationService=s,this._onDidChangeConfiguration=new yi.a,this.configurationService.onDidChangeConfiguration(v=>{this._onDidChangeConfiguration.fire({affectedKeys:v.affectedKeys,affectsConfiguration:(M,be)=>v.affectsConfiguration(be)})})}getValue(s,v,M){let be=(xn.a.isIPosition(v)?v:null)?typeof M=="string"?M:void 0:typeof v=="string"?v:void 0;return be===void 0?this.configurationService.getValue():this.configurationService.getValue(be)}}let ye=class{constructor(me){this.configurationService=me}getEOL(me,s){let v=this.configurationService.getValue("files.eol",{overrideIdentifier:s,resource:me});return v&&v!=="auto"?v:te.d||te.f?` +`+s.detail),Promise.resolve(window.confirm(v))}show(s,v,M,be){return Promise.resolve({choice:0})}}class ae{info(s){return this.notify({severity:Et.a.Info,message:s})}warn(s){return this.notify({severity:Et.a.Warning,message:s})}error(s){return this.notify({severity:Et.a.Error,message:s})}notify(s){switch(s.severity){case Et.a.Error:console.error(s.message);break;case Et.a.Warning:console.warn(s.message);break;default:console.log(s.message)}return ae.NO_OP}status(s,v){return Y.a.None}}ae.NO_OP=new Mt.b;class Ge{constructor(s){this._onWillExecuteCommand=new yi.a,this._onDidExecuteCommand=new yi.a,this._instantiationService=s}executeCommand(s,...v){let M=S.a.getCommand(s);if(!M)return Promise.reject(new Error(`command '${s}' not found`));try{this._onWillExecuteCommand.fire({commandId:s,args:v});let be=this._instantiationService.invokeFunction.apply(this._instantiationService,[M.handler,...v]);return this._onDidExecuteCommand.fire({commandId:s,args:v}),Promise.resolve(be)}catch(be){return Promise.reject(be)}}}class lt extends Gn{constructor(s,v,M,be,Ne,Oe){super(s,v,M,be,Ne),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(E.i(Oe,E.c.KEY_DOWN,je=>{let mt=new Hi.a(je);this._dispatch(mt,mt.target)&&(mt.preventDefault(),mt.stopPropagation())}))}addDynamicKeybinding(s,v,M,be){let Ne=Object(kt.f)(v,te.a),Oe=new Y.b;return Ne&&(this._dynamicKeybindings.push({keybinding:Ne,command:s,when:be,weight1:1e3,weight2:0,extensionId:null}),Oe.add(Object(Y.h)(()=>{for(let je=0;je<this._dynamicKeybindings.length;je++)if(this._dynamicKeybindings[je].command===s)return this._dynamicKeybindings.splice(je,1),void this.updateResolver({source:1})}))),Oe.add(S.a.registerCommand(s,M)),this.updateResolver({source:1}),Oe}updateResolver(s){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(s)}_getResolver(){if(!this._cachedResolver){let s=this._toNormalizedKeybindingItems(On.a.getDefaultKeybindings(),!0),v=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new rn(s,v,M=>this._log(M))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(s,v){let M=[],be=0;for(let Ne of s){let Oe=Ne.when||void 0,je=Ne.keybinding;if(je){let mt=this.resolveKeybinding(je);for(let It of mt)M[be++]=new qt(It,Ne.command,Ne.commandArgs,Oe,v,null)}else M[be++]=new qt(void 0,Ne.command,Ne.commandArgs,Oe,v,null)}return M}resolveKeybinding(s){return[new rt(s,te.a)]}resolveKeyboardEvent(s){let v=new kt.e(s.ctrlKey,s.shiftKey,s.altKey,s.metaKey,s.keyCode).toChord();return new rt(v,te.a)}}function Ot(me){return me&&typeof me=="object"&&(!me.overrideIdentifier||typeof me.overrideIdentifier=="string")&&(!me.resource||me.resource instanceof C.a)}class Gt{constructor(){this._onDidChangeConfiguration=new yi.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Jn(new Hn,new Nn)}getValue(s,v){let M=typeof s=="string"?s:void 0,be=Ot(s)?s:Ot(v)?v:{};return this._configuration.getValue(M,be,void 0)}updateValues(s){let v={data:this._configuration.toData()},M=[];for(let be of s){let[Ne,Oe]=be;this.getValue(Ne)!==Oe&&(this._configuration.updateValue(Ne,Oe),M.push(Ne))}if(M.length>0){let be=new br({keys:M,overrides:[]},v,this._configuration);be.source=7,be.sourceConfig=null,this._onDidChangeConfiguration.fire(be)}return Promise.resolve()}}class ti{constructor(s){this.configurationService=s,this._onDidChangeConfiguration=new yi.a,this.configurationService.onDidChangeConfiguration(v=>{this._onDidChangeConfiguration.fire({affectedKeys:v.affectedKeys,affectsConfiguration:(M,be)=>v.affectsConfiguration(be)})})}getValue(s,v,M){let be=(xn.a.isIPosition(v)?v:null)?typeof M=="string"?M:void 0:typeof v=="string"?v:void 0;return be===void 0?this.configurationService.getValue():this.configurationService.getValue(be)}}let ye=class{constructor(me){this.configurationService=me}getEOL(me,s){let v=this.configurationService.getValue("files.eol",{overrideIdentifier:s,resource:me});return v&&v!=="auto"?v:te.d||te.f?` `:`\r -`}};ye=Ht([jt(0,un.a)],ye);class le{publicLog(s,v){return Promise.resolve(void 0)}publicLog2(s,v){return this.publicLog(s,v)}}class ue{constructor(){let s=C.a.from({scheme:ue.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Ot.b({uri:s,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(s){return s&&s.scheme===ue.SCHEME?this.workspace.folders[0]:null}}function qe(me,s,v){if(!s||!(me instanceof Gt))return;let M=[];Object.keys(s).forEach(be=>{Object(Pi.d)(be)&&M.push(["editor."+be,s[be]]),v&&Object(Pi.c)(be)&&M.push(["diffEditor."+be,s[be]])}),M.length>0&&me.updateValues(M)}ue.SCHEME="inmemory";class Ze{constructor(s){this._modelService=s}hasPreviewHandler(){return!1}apply(s,v){return Kt(this,void 0,void 0,function*(){let M=new Map;for(let De of s){if(!(De instanceof Si.c))throw new Error("bad edit - only text edits are supported");let je=this._modelService.getModel(De.resource);if(!je)throw new Error("bad edit - model not found");if(typeof De.versionId=="number"&&je.getVersionId()!==De.versionId)throw new Error("bad state - model changed in the meantime");let mt=M.get(je);mt||(mt=[],M.set(je,mt)),mt.push(Wi.a.replaceMove(Ae.a.lift(De.textEdit.range),De.textEdit.text))}let be=0,Ne=0;for(let[De,je]of M)De.pushStackElement(),De.pushEditOperations([],je,()=>[]),De.pushStackElement(),Ne+=1,be+=je.length;return{ariaSummary:ht.x(Tt.g.bulkEditServiceSummary,be,Ne)}})}}class tt{getUriLabel(s,v){return s.scheme==="file"?s.fsPath:s.path}}class rt{constructor(s,v){this._codeEditorService=s,this._container=v,this.onLayout=yi.b.None}get dimension(){return this._dimension||(this._dimension=E.y(window.document.body)),this._dimension}get container(){return this._container}focus(){var s;(s=this._codeEditorService.getFocusedCodeEditor())===null||s===void 0||s.focus()}}var zt=o(66),Jt=o(164),xi=o(194),Ei=o(191),ai=o(139),fi=o(24),ui=o(10),Te=o(84),Ee=o(18),ve=o(50),Re=o(19),We=o(80),Be=o(121),Le=o(83),Ke=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},dt=function(me,s){return function(v,M){s(v,M,me)}};let yt=0,xt=!1,Xt=class extends Jt.a{constructor(me,s,v,M,be,Ne,De,je,mt,It){(s=s||{}).ariaLabel=s.ariaLabel||Tt.h.editorViewAccessibleLabel,s.ariaLabel=s.ariaLabel+";"+Tt.h.accessibilityHelpMessage,super(me,s,{},v,M,be,Ne,je,mt,It),this._standaloneKeybindingService=De instanceof lt?De:null,xt||(xt=!0,zt.b(document.body))}addCommand(me,s,v){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let M="DYNAMIC_"+ ++yt,be=ui.a.deserialize(v);return this._standaloneKeybindingService.addDynamicKeybinding(M,me,s,be),M}createContextKey(me,s){return this._contextKeyService.createKey(me,s)}addAction(me){if(typeof me.id!="string"||typeof me.label!="string"||typeof me.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Y.a.None;let s=me.id,v=me.label,M=ui.a.and(ui.a.equals("editorId",this.getId()),ui.a.deserialize(me.precondition)),be=me.keybindings,Ne=ui.a.and(M,ui.a.deserialize(me.keybindingContext)),De=me.contextMenuGroupId||null,je=me.contextMenuOrder||0,mt=(en,...tn)=>Promise.resolve(me.run(this,...tn)),It=new Y.b,Qt=this.getId()+":"+s;if(It.add(S.a.registerCommand(Qt,mt)),De){let en={command:{id:Qt,title:v},when:M,group:De,order:je};It.add(fi.d.appendMenuItem(fi.b.EditorContext,en))}if(Array.isArray(be))for(let en of be)It.add(this._standaloneKeybindingService.addDynamicKeybinding(Qt,en,mt,Ne));let Oi=new Ei.a(Qt,v,v,M,mt,this._contextKeyService);return this._actions[s]=Oi,It.add(Object(Y.h)(()=>{delete this._actions[s]})),It}};Xt=Ke([dt(2,Ee.a),dt(3,H.a),dt(4,S.b),dt(5,ui.b),dt(6,ve.a),dt(7,Re.c),dt(8,Mt.a),dt(9,We.b)],Xt);let mi=class extends Xt{constructor(me,s,v,M,be,Ne,De,je,mt,It,Qt,Oi,en){qe(Oi,s,!1);let tn=It.registerEditorContainer(me);typeof(s=s||{}).theme=="string"&&It.setTheme(s.theme);let kn,no=s.model;if(delete s.model,super(me,s,M,be,Ne,De,je,It,Qt,en),this._contextViewService=mt,this._configurationService=Oi,this._standaloneThemeService=It,this._register(v),this._register(tn),no===void 0?(kn=self.monaco.editor.createModel(s.value||"",s.language||"text/plain"),this._ownsModel=!0):(kn=no,this._ownsModel=!1),this._attachModel(kn),kn){let lo={oldModelUrl:null,newModelUrl:kn.uri};this._onDidChangeModel.fire(lo)}}dispose(){super.dispose()}updateOptions(me){qe(this._configurationService,me,!1),typeof me.theme=="string"&&this._standaloneThemeService.setTheme(me.theme),super.updateOptions(me)}_attachModel(me){super._attachModel(me),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(me){super._postDetachModelCleanup(me),me&&this._ownsModel&&(me.dispose(),this._ownsModel=!1)}};mi=Ke([dt(3,Ee.a),dt(4,H.a),dt(5,S.b),dt(6,ui.b),dt(7,ve.a),dt(8,Te.b),dt(9,ai.a),dt(10,Mt.a),dt(11,un.a),dt(12,We.b)],mi);let Yt=class extends xi.a{constructor(me,s,v,M,be,Ne,De,je,mt,It,Qt,Oi,en,tn,kn){qe(Oi,s,!0);let no=It.registerEditorContainer(me);typeof(s=s||{}).theme=="string"&&(s.theme=It.setTheme(s.theme)),super(me,s,kn,je,be,M,mt,It,Qt,en,tn),this._contextViewService=De,this._configurationService=Oi,this._standaloneThemeService=It,this._register(v),this._register(no),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(me){qe(this._configurationService,me,!0),typeof me.theme=="string"&&this._standaloneThemeService.setTheme(me.theme),super.updateOptions(me)}_createInnerEditor(me,s,v){return me.createInstance(Xt,s,v)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(me,s,v){return this.getModifiedEditor().addCommand(me,s,v)}createContextKey(me,s){return this.getModifiedEditor().createContextKey(me,s)}addAction(me){return this.getModifiedEditor().addAction(me)}};Yt=Ke([dt(3,Ee.a),dt(4,ui.b),dt(5,ve.a),dt(6,Te.b),dt(7,se.a),dt(8,H.a),dt(9,ai.a),dt(10,Mt.a),dt(11,un.a),dt(12,Te.a),dt(13,Le.a),dt(14,Be.a)],Yt);var ri=o(109);class qi{constructor(s){this._languageIdentifier=s}getId(){return this._languageIdentifier.language}}var an=o(42),_n=o(187);let ei=[],ii=[],bi=[];function ln(me,s=!1){let v=function(M){return{id:M.id,mime:M.mime,filename:M.filename,extension:M.extension,filepattern:M.filepattern,firstline:M.firstline,userConfigured:M.userConfigured,filenameLowercase:M.filename?M.filename.toLowerCase():void 0,extensionLowercase:M.extension?M.extension.toLowerCase():void 0,filepatternLowercase:M.filepattern?M.filepattern.toLowerCase():void 0,filepatternOnPath:!!M.filepattern&&M.filepattern.indexOf(an.e.sep)>=0}}(me);ei.push(v),v.userConfigured?bi.push(v):ii.push(v),s&&!v.userConfigured&&ei.forEach(M=>{M.mime===v.mime||M.userConfigured||(v.extension&&M.extension===v.extension&&console.warn(`Overwriting extension <<${v.extension}>> to now point to mime <<${v.mime}>>`),v.filename&&M.filename===v.filename&&console.warn(`Overwriting filename <<${v.filename}>> to now point to mime <<${v.mime}>>`),v.filepattern&&M.filepattern===v.filepattern&&console.warn(`Overwriting filepattern <<${v.filepattern}>> to now point to mime <<${v.mime}>>`),v.firstline&&M.firstline===v.firstline&&console.warn(`Overwriting firstline <<${v.firstline}>> to now point to mime <<${v.mime}>>`))})}function mn(me,s){let v;if(me)switch(me.scheme){case Q.b.file:v=me.fsPath;break;case Q.b.data:v=y.a.parseMetaData(me).get(y.a.META_DATA_LABEL);break;default:v=me.path}if(!v)return["application/unknown"];v=v.toLowerCase();let M=Object(an.a)(v),be=sn(v,M,bi);if(be)return[be,"text/plain"];let Ne=sn(v,M,ii);if(Ne)return[Ne,"text/plain"];if(s){let De=function(je){if(Object(ht.U)(je)&&(je=je.substr(1)),je.length>0)for(let mt=ei.length-1;mt>=0;mt--){let It=ei[mt];if(!It.firstline)continue;let Qt=je.match(It.firstline);if(Qt&&Qt.length>0)return It.mime}return null}(s);if(De)return[De,"text/plain"]}return["application/unknown"]}function sn(me,s,v){let M=null,be=null,Ne=null;for(let De=v.length-1;De>=0;De--){let je=v[De];if(s===je.filenameLowercase){M=je;break}if(je.filepattern&&(!be||je.filepattern.length>be.filepattern.length)){let mt=je.filepatternOnPath?me:s;Object(_n.a)(je.filepatternLowercase,mt)&&(be=je)}je.extension&&(!Ne||je.extension.length>Ne.extension.length)&&s.endsWith(je.extensionLowercase)&&(Ne=je)}return M?M.mime:be?be.mime:Ne?Ne.mime:null}var gn=o(146),Sn=o(56);let En=Object.prototype.hasOwnProperty;class Xn extends Y.a{constructor(s=!0,v=!1){super(),this._onDidChange=this._register(new yi.a),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=v,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},s&&(this._initializeFromRegistry(),this._register(gn.a.onDidChangeLanguages(M=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};let s=gn.a.getLanguages();this._registerLanguages(s)}_registerLanguages(s){for(let v of s)this._registerLanguage(v);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(v=>{let M=this._languages[v];M.name&&(this._nameMap[M.name]=M.identifier),M.aliases.forEach(be=>{this._lowercaseNameMap[be.toLowerCase()]=M.identifier}),M.mimetypes.forEach(be=>{this._mimeTypesMap[be]=M.identifier})}),Sn.a.as(Mn.a.Configuration).registerOverrideIdentifiers(gn.a.getLanguages().map(v=>v.id)),this._onDidChange.fire()}_getLanguageId(s){if(this._languageToLanguageId[s])return this._languageToLanguageId[s];let v=this._nextLanguageId2++;return this._languageIdToLanguage[v]=s,this._languageToLanguageId[s]=v,v}_registerLanguage(s){let v=s.id,M;if(En.call(this._languages,v))M=this._languages[v];else{let be=this._getLanguageId(v);M={identifier:new q.r(v,be),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[v]=M}this._mergeLanguage(M,s)}_mergeLanguage(s,v){let M=v.id,be=null;if(Array.isArray(v.mimetypes)&&v.mimetypes.length>0&&(s.mimetypes.push(...v.mimetypes),be=v.mimetypes[0]),be||(be="text/x-"+M,s.mimetypes.push(be)),Array.isArray(v.extensions)){v.configuration?s.extensions=v.extensions.concat(s.extensions):s.extensions=s.extensions.concat(v.extensions);for(let je of v.extensions)ln({id:M,mime:be,extension:je},this._warnOnOverwrite)}if(Array.isArray(v.filenames))for(let je of v.filenames)ln({id:M,mime:be,filename:je},this._warnOnOverwrite),s.filenames.push(je);if(Array.isArray(v.filenamePatterns))for(let je of v.filenamePatterns)ln({id:M,mime:be,filepattern:je},this._warnOnOverwrite);if(typeof v.firstLine=="string"&&v.firstLine.length>0){let je=v.firstLine;je.charAt(0)!=="^"&&(je="^"+je);try{let mt=new RegExp(je);ht.P(mt)||ln({id:M,mime:be,firstline:mt},this._warnOnOverwrite)}catch(mt){Object(z.e)(mt)}}s.aliases.push(M);let Ne=null;if(v.aliases!==void 0&&Array.isArray(v.aliases)&&(Ne=v.aliases.length===0?[null]:v.aliases),Ne!==null)for(let je of Ne)je&&je.length!==0&&s.aliases.push(je);let De=Ne!==null&&Ne.length>0;if(!(De&&Ne[0]===null)){let je=(De?Ne[0]:null)||M;!De&&s.name||(s.name=je)}v.configuration&&s.configurationFiles.push(v.configuration)}isRegisteredMode(s){return!!En.call(this._mimeTypesMap,s)||En.call(this._languages,s)}getModeIdForLanguageNameLowercase(s){return En.call(this._lowercaseNameMap,s)?this._lowercaseNameMap[s].language:null}extractModeIds(s){return s?s.split(",").map(v=>v.trim()).map(v=>En.call(this._mimeTypesMap,v)?this._mimeTypesMap[v].language:v).filter(v=>En.call(this._languages,v)):[]}getLanguageIdentifier(s){if(s===B.b||s===0)return B.a;let v;if(typeof s=="string")v=s;else if(v=this._languageIdToLanguage[s],!v)return null;return En.call(this._languages,v)?this._languages[v].identifier:null}getModeIdsFromFilepathOrFirstLine(s,v){if(!s&&!v)return[];let M=mn(s,v);return this.extractModeIds(M.join(","))}}class Yn extends Y.a{constructor(s,v){super(),this._onDidChange=this._register(new yi.a),this.onDidChange=this._onDidChange.event,this._selector=v,this.languageIdentifier=this._selector(),this._register(s(()=>this._evaluate()))}_evaluate(){let s=this._selector();s.id!==this.languageIdentifier.id&&(this.languageIdentifier=s,this._onDidChange.fire(this.languageIdentifier))}}class Io{constructor(s=!1){this._onDidCreateMode=new yi.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new yi.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Xn(!0,s),this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire())}isRegisteredMode(s){return this._registry.isRegisteredMode(s)}getModeIdForLanguageName(s){return this._registry.getModeIdForLanguageNameLowercase(s)}getModeIdByFilepathOrFirstLine(s,v){let M=this._registry.getModeIdsFromFilepathOrFirstLine(s,v);return Object(fe.k)(M,null)}getModeId(s){let v=this._registry.extractModeIds(s);return Object(fe.k)(v,null)}getLanguageIdentifier(s){return this._registry.getLanguageIdentifier(s)}create(s){return new Yn(this.onLanguagesMaybeChanged,()=>{let v=this.getModeId(s);return this._createModeAndGetLanguageIdentifier(v)})}createByFilepathOrFirstLine(s,v){return new Yn(this.onLanguagesMaybeChanged,()=>{let M=this.getModeIdByFilepathOrFirstLine(s,v);return this._createModeAndGetLanguageIdentifier(M)})}_createModeAndGetLanguageIdentifier(s){let v=this.getLanguageIdentifier(s||"plaintext")||B.a;return this._getOrCreateMode(v.language),v}triggerMode(s){let v=this.getModeId(s);this._getOrCreateMode(v||"plaintext")}_getOrCreateMode(s){if(!this._instantiatedModes.hasOwnProperty(s)){let v=this.getLanguageIdentifier(s)||B.a;this._instantiatedModes[s]=new qi(v),this._onDidCreateMode.fire(this._instantiatedModes[s])}return this._instantiatedModes[s]}}var Ro=o(183);class In extends Y.a{constructor(){super(),this._onCodeEditorAdd=this._register(new yi.a),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new yi.a),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new yi.a),this._onDiffEditorRemove=this._register(new yi.a),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(s){this._codeEditors[s.getId()]=s,this._onCodeEditorAdd.fire(s)}removeCodeEditor(s){delete this._codeEditors[s.getId()]&&this._onCodeEditorRemove.fire(s)}listCodeEditors(){return Object.keys(this._codeEditors).map(s=>this._codeEditors[s])}addDiffEditor(s){this._diffEditors[s.getId()]=s,this._onDiffEditorAdd.fire(s)}removeDiffEditor(s){delete this._diffEditors[s.getId()]&&this._onDiffEditorRemove.fire(s)}listDiffEditors(){return Object.keys(this._diffEditors).map(s=>this._diffEditors[s])}getFocusedCodeEditor(){let s=null,v=this.listCodeEditors();for(let M of v){if(M.hasTextFocus())return M;M.hasWidgetFocus()&&(s=M)}return s}setModelProperty(s,v,M){let be=s.toString(),Ne;this._modelProperties.has(be)?Ne=this._modelProperties.get(be):(Ne=new Map,this._modelProperties.set(be,Ne)),Ne.set(v,M)}getModelProperty(s,v){let M=s.toString();if(this._modelProperties.has(M))return this._modelProperties.get(M).get(v)}}var Rn=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Qn=function(me,s){return function(v,M){s(v,M,me)}};class vo{constructor(s,v,M){this._parent=s,this._editorId=v,this._styleSheet=M,this._refCount=0}ref(){this._refCount++}unref(){var s;this._refCount--,this._refCount===0&&((s=this._styleSheet.parentNode)===null||s===void 0||s.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(s,v){this._styleSheet.sheet.insertRule(s,v)}removeRulesContainingSelector(s){E.P(s,this._styleSheet)}}class Mo{constructor(s){this._styleSheet=s}ref(){}unref(){}insertRule(s,v){this._styleSheet.sheet.insertRule(s,v)}removeRulesContainingSelector(s){E.P(s,this._styleSheet)}}let So=class extends In{constructor(me,s=null){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=s||null,this._themeService=me}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new Mo(E.v())),this._globalStyleSheet}_getOrCreateStyleSheet(me){if(!me)return this._getOrCreateGlobalStyleSheet();let s=me.getContainerDomNode();if(!E.O(s))return this._getOrCreateGlobalStyleSheet();let v=me.getId();if(!this._editorStyleSheets.has(v)){let M=new vo(this,v,E.v(s));this._editorStyleSheets.set(v,M)}return this._editorStyleSheets.get(v)}_removeEditorStyleSheets(me){this._editorStyleSheets.delete(me)}registerDecorationType(me,s,v,M){let be=this._decorationOptionProviders.get(me);if(!be){let Ne=this._getOrCreateStyleSheet(M),De={styleSheet:Ne,key:me,parentTypeKey:v,options:s||Object.create(null)};be=v?new ko(this._themeService,Ne,De):new po(this._themeService,Ne,De),this._decorationOptionProviders.set(me,be)}be.refCount++}removeDecorationType(me){let s=this._decorationOptionProviders.get(me);s&&(s.refCount--,s.refCount<=0&&(this._decorationOptionProviders.delete(me),s.dispose(),this.listCodeEditors().forEach(v=>v.removeDecorations(me))))}resolveDecorationOptions(me,s){let v=this._decorationOptionProviders.get(me);if(!v)throw new Error("Unknown decoration type key: "+me);return v.getOptions(this,s)}};So=Rn([Qn(0,Re.c)],So);class ko{constructor(s,v,M){this._styleSheet=v,this._styleSheet.ref(),this._parentTypeKey=M.parentTypeKey,this.refCount=0,this._beforeContentRules=new No(3,M,s),this._afterContentRules=new No(4,M,s)}getOptions(s,v){let M=s.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(M.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(M.afterContentClassName=this._afterContentRules.className),M}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class po{constructor(s,v,M){this._disposables=new Y.b,this._styleSheet=v,this._styleSheet.ref(),this.refCount=0;let be=It=>{let Qt=new No(It,M,s);if(this._disposables.add(Qt),Qt.hasContent)return Qt.className};this.className=be(0);let Ne=(It=>{let Qt=new No(It,M,s);return this._disposables.add(Qt),Qt.hasContent?{className:Qt.className,hasLetterSpacing:Qt.hasLetterSpacing}:null})(1);Ne&&(this.inlineClassName=Ne.className,this.inlineClassNameAffectsLetterSpacing=Ne.hasLetterSpacing),this.beforeContentClassName=be(3),this.afterContentClassName=be(4),this.glyphMarginClassName=be(2);let De=M.options;this.isWholeLine=Boolean(De.isWholeLine),this.stickiness=De.rangeBehavior;let je=De.light&&De.light.overviewRulerColor||De.overviewRulerColor,mt=De.dark&&De.dark.overviewRulerColor||De.overviewRulerColor;je===void 0&&mt===void 0||(this.overviewRuler={color:je||mt,darkColor:mt||je,position:De.overviewRulerLane||U.d.Center})}getOptions(s,v){return v?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}let Tn={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"};class No{constructor(s,v,M){this._theme=M.getColorTheme(),this._ruleType=s,this._providerArgs=v,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let be=Ho.getClassName(this._providerArgs.key,s);this._providerArgs.parentTypeKey&&(be=be+" "+Ho.getClassName(this._providerArgs.parentTypeKey,s)),this._className=be,this._unThemedSelector=Ho.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,s),this._buildCSS(),this._usesThemeColors?this._themeListener=M.onDidColorThemeChange(Ne=>{this._theme=M.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){let s=this._providerArgs.options,v,M,be;switch(this._ruleType){case 0:v=this.getCSSTextForModelDecorationClassName(s),M=this.getCSSTextForModelDecorationClassName(s.light),be=this.getCSSTextForModelDecorationClassName(s.dark);break;case 1:v=this.getCSSTextForModelDecorationInlineClassName(s),M=this.getCSSTextForModelDecorationInlineClassName(s.light),be=this.getCSSTextForModelDecorationInlineClassName(s.dark);break;case 2:v=this.getCSSTextForModelDecorationGlyphMarginClassName(s),M=this.getCSSTextForModelDecorationGlyphMarginClassName(s.light),be=this.getCSSTextForModelDecorationGlyphMarginClassName(s.dark);break;case 3:v=this.getCSSTextForModelDecorationContentClassName(s.before),M=this.getCSSTextForModelDecorationContentClassName(s.light&&s.light.before),be=this.getCSSTextForModelDecorationContentClassName(s.dark&&s.dark.before);break;case 4:v=this.getCSSTextForModelDecorationContentClassName(s.after),M=this.getCSSTextForModelDecorationContentClassName(s.light&&s.light.after),be=this.getCSSTextForModelDecorationContentClassName(s.dark&&s.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}let Ne=this._providerArgs.styleSheet,De=!1;v.length>0&&(Ne.insertRule(`${this._unThemedSelector} {${v}}`,0),De=!0),M.length>0&&(Ne.insertRule(`.vs${this._unThemedSelector} {${M}}`,0),De=!0),be.length>0&&(Ne.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${be}}`,0),De=!0),this._hasContent=De}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(s){if(!s)return"";let v=[];return this.collectCSSText(s,["backgroundColor"],v),this.collectCSSText(s,["outline","outlineColor","outlineStyle","outlineWidth"],v),this.collectBorderSettingsCSSText(s,v),v.join("")}getCSSTextForModelDecorationInlineClassName(s){if(!s)return"";let v=[];return this.collectCSSText(s,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],v),s.letterSpacing&&(this._hasLetterSpacing=!0),v.join("")}getCSSTextForModelDecorationContentClassName(s){if(!s)return"";let v=[];if(s!==void 0){if(this.collectBorderSettingsCSSText(s,v),s.contentIconPath!==void 0&&v.push(ht.x(Tn.contentIconPath,E.q(C.a.revive(s.contentIconPath)))),typeof s.contentText=="string"){let M=s.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");v.push(ht.x(Tn.contentText,M))}this.collectCSSText(s,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],v),this.collectCSSText(s,["width","height"],v)&&v.push("display:inline-block;")}return v.join("")}getCSSTextForModelDecorationGlyphMarginClassName(s){if(!s)return"";let v=[];return s.gutterIconPath!==void 0&&(v.push(ht.x(Tn.gutterIconPath,E.q(C.a.revive(s.gutterIconPath)))),s.gutterIconSize!==void 0&&v.push(ht.x(Tn.gutterIconSize,s.gutterIconSize))),v.join("")}collectBorderSettingsCSSText(s,v){return!!this.collectCSSText(s,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],v)&&(v.push(ht.x("box-sizing: border-box;")),!0)}collectCSSText(s,v,M){let be=M.length;for(let Ne of v){let De=this.resolveValue(s[Ne]);typeof De=="string"&&M.push(ht.x(Tn[Ne],De))}return M.length!==be}resolveValue(s){if(Object(ie.b)(s)){this._usesThemeColors=!0;let v=this._theme.getColor(s.id);return v?v.toString():"transparent"}return s}}class Ho{static getClassName(s,v){return"ced-"+s+"-"+v}static getSelector(s,v,M){let be=".monaco-editor ."+this.getClassName(s,M);return v&&(be=be+"."+this.getClassName(v,M)),M===3?be+="::before":M===4&&(be+="::after"),be}}class gr extends So{getActiveCodeEditor(){return null}openCodeEditor(s,v,M){return v?Promise.resolve(this.doOpenEditor(v,s)):Promise.resolve(null)}doOpenEditor(s,v){if(!this.findModel(s,v.resource)){if(v.resource){let be=v.resource.scheme;if(be===Q.b.http||be===Q.b.https)return Object(E.cb)(v.resource.toString()),s}return null}let M=v.options?v.options.selection:null;if(M)if(typeof M.endLineNumber=="number"&&typeof M.endColumn=="number")s.setSelection(M),s.revealRangeInCenter(M,1);else{let be={lineNumber:M.startLineNumber,column:M.startColumn};s.setPosition(be),s.revealPositionInCenter(be,1)}return s}findModel(s,v){let M=s.getModel();return M&&M.uri.toString()!==v.toString()?null:M}}var wo=o(16);class ls{constructor(s,v,M,be,Ne){this.token=s,this.index=v,this.fontStyle=M,this.foreground=be,this.background=Ne}}let Br=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class Kn{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(s){if(s===null)return 0;let v=s.match(Br);if(!v)throw new Error("Illegal value for token color: "+s);s=v[1].toUpperCase();let M=this._color2id.get(s);return M||(M=++this._lastColorId,this._color2id.set(s,M),this._id2color[M]=wo.a.fromHex("#"+s),M)}getColorMap(){return this._id2color.slice(0)}}class cr{constructor(s,v){this._colorMap=s,this._root=v,this._cache=new Map}static createFromRawTokenTheme(s,v){return this.createFromParsedTokenTheme(function(M){if(!M||!Array.isArray(M))return[];let be=[],Ne=0;for(let De=0,je=M.length;De<je;De++){let mt=M[De],It=-1;if(typeof mt.fontStyle=="string"){It=0;let en=mt.fontStyle.split(" ");for(let tn=0,kn=en.length;tn<kn;tn++)switch(en[tn]){case"italic":It|=1;break;case"bold":It|=2;break;case"underline":It|=4}}let Qt=null;typeof mt.foreground=="string"&&(Qt=mt.foreground);let Oi=null;typeof mt.background=="string"&&(Oi=mt.background),be[Ne++]=new ls(mt.token||"",De,It,Qt,Oi)}return be}(s),v)}static createFromParsedTokenTheme(s,v){return function(M,be){M.sort((tn,kn)=>{let no=function(lo,uo){return lo<uo?-1:lo>uo?1:0}(tn.token,kn.token);return no!==0?no:tn.index-kn.index});let Ne=0,De="000000",je="ffffff";for(;M.length>=1&&M[0].token==="";){let tn=M.shift();tn.fontStyle!==-1&&(Ne=tn.fontStyle),tn.foreground!==null&&(De=tn.foreground),tn.background!==null&&(je=tn.background)}let mt=new Kn;for(let tn of be)mt.getId(tn);let It=mt.getId(De),Qt=mt.getId(je),Oi=new Lr(Ne,It,Qt),en=new jr(Oi);for(let tn=0,kn=M.length;tn<kn;tn++){let no=M[tn];en.insert(no.token,no.fontStyle,mt.getId(no.foreground),mt.getId(no.background))}return new cr(mt,en)}(s,v)}getColorMap(){return this._colorMap.getColorMap()}_match(s){return this._root.match(s)}match(s,v){let M=this._cache.get(v);if(M===void 0){let be=this._match(v),Ne=function(De){let je=De.match(Eo);if(!je)return 0;switch(je[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(v);M=(be.metadata|Ne<<8)>>>0,this._cache.set(v,M)}return(M|s<<0)>>>0}}let Eo=/\b(comment|string|regex|regexp)\b/;class Lr{constructor(s,v,M){this._fontStyle=s,this._foreground=v,this._background=M,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new Lr(this._fontStyle,this._foreground,this._background)}acceptOverwrite(s,v,M){s!==-1&&(this._fontStyle=s),v!==0&&(this._foreground=v),M!==0&&(this._background=M),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class jr{constructor(s){this._mainRule=s,this._children=new Map}match(s){if(s==="")return this._mainRule;let v,M,be=s.indexOf(".");be===-1?(v=s,M=""):(v=s.substring(0,be),M=s.substring(be+1));let Ne=this._children.get(v);return Ne!==void 0?Ne.match(M):this._mainRule}insert(s,v,M,be){if(s==="")return void this._mainRule.acceptOverwrite(v,M,be);let Ne,De,je=s.indexOf(".");je===-1?(Ne=s,De=""):(Ne=s.substring(0,je),De=s.substring(je+1));let mt=this._children.get(Ne);mt===void 0&&(mt=new jr(this._mainRule.clone()),this._children.set(Ne,mt)),mt.insert(De,v,M,be)}}var Ko=o(57),Cn=o(5);let Oo={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#FFFFFE",[Cn.B]:"#000000",[Cn.J]:"#E5EBF1",[Ko.h]:"#D3D3D3",[Ko.a]:"#939393",[Cn.Q]:"#ADD6FF4D"}},Do={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#1E1E1E",[Cn.B]:"#D4D4D4",[Cn.J]:"#3A3D41",[Ko.h]:"#404040",[Ko.a]:"#707070",[Cn.Q]:"#ADD6FF26"}},fr={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#000000",[Cn.B]:"#FFFFFF",[Ko.h]:"#FFFFFF",[Ko.a]:"#FFFFFF"}};var zn=o(154);let eo=Sn.a.as(Cn.a.ColorContribution),br=Sn.a.as(Re.a.ThemingContribution);class va{constructor(s,v){this.semanticHighlighting=!1,this.themeData=v;let M=v.base;s.length>0?(this.id=M+" "+s,this.themeName=s):(this.id=M,this.themeName=M),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let s=new Map;for(let v in this.themeData.colors)s.set(v,wo.a.fromHex(this.themeData.colors[v]));if(this.themeData.inherit){let v=Vr(this.themeData.base);for(let M in v.colors)s.has(M)||s.set(M,wo.a.fromHex(v.colors[M]))}this.colors=s}return this.colors}getColor(s,v){return this.getColors().get(s)||(v!==!1?this.getDefault(s):void 0)}getDefault(s){let v=this.defaultColors[s];return v||(v=eo.resolveDefaultColor(s,this),this.defaultColors[s]=v,v)}defines(s){return Object.prototype.hasOwnProperty.call(this.getColors(),s)}get type(){switch(this.base){case"vs":return"light";case"hc-black":return"hc";default:return"dark"}}get tokenTheme(){if(!this._tokenTheme){let s=[],v=[];if(this.themeData.inherit){let M=Vr(this.themeData.base);s=M.rules,M.encodedTokensColors&&(v=M.encodedTokensColors)}s=s.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(v=this.themeData.encodedTokensColors),this._tokenTheme=cr.createFromRawTokenTheme(s,v)}return this._tokenTheme}getTokenStyleMetadata(s,v,M){let be=this.tokenTheme._match([s].concat(v).join(".")).metadata,Ne=q.B.getForeground(be),De=q.B.getFontStyle(be);return{foreground:Ne,italic:Boolean(1&De),bold:Boolean(2&De),underline:Boolean(4&De)}}}function es(me){return me==="vs"||me==="vs-dark"||me==="hc-black"}function Vr(me){switch(me){case"vs":return Oo;case"vs-dark":return Do;case"hc-black":return fr}}function Nr(me){let s=Vr(me);return new va(me,s)}class ts extends Y.a{constructor(){super(),this._onColorThemeChange=this._register(new yi.a),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._knownThemes=new Map,this._knownThemes.set("vs",Nr("vs")),this._knownThemes.set("vs-dark",Nr("vs-dark")),this._knownThemes.set("hc-black",Nr("hc-black")),this._codiconCSS=zn.a.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this.setTheme("vs"),zn.a.onDidChange(()=>{this._codiconCSS=zn.a.getCSS(),this._updateCSS()})}registerEditorContainer(s){return E.O(s)?this._registerShadowDomContainer(s):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=E.v(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._allCSS,this._styleElements.push(this._globalStyleElement)),Y.a.None}_registerShadowDomContainer(s){let v=E.v(s);return v.className="monaco-colors",v.innerHTML=this._allCSS,this._styleElements.push(v),{dispose:()=>{for(let M=0;M<this._styleElements.length;M++)if(this._styleElements[M]===v)return void this._styleElements.splice(M,1)}}}defineTheme(s,v){if(!/^[a-z0-9\-]+$/i.test(s))throw new Error("Illegal theme name!");if(!es(v.base)&&!es(s))throw new Error("Illegal theme base!");this._knownThemes.set(s,new va(s,v)),es(s)&&this._knownThemes.forEach(M=>{M.base===s&&M.notifyBaseUpdated()}),this._theme&&this._theme.themeName===s&&this.setTheme(s)}getColorTheme(){return this._theme}setTheme(s){let v;if(v=this._knownThemes.has(s)?this._knownThemes.get(s):this._knownThemes.get("vs"),this._theme===v)return v.id;this._theme=v;let M=[],be={},Ne={addRule:je=>{be[je]||(M.push(je),be[je]=!0)}};br.getThemingParticipants().forEach(je=>je(v,Ne,this._environment));let De=v.tokenTheme.getColorMap();return Ne.addRule(function(je){let mt=[];for(let It=1,Qt=je.length;It<Qt;It++){let Oi=je[It];mt[It]=`.mtk${It} { color: ${Oi}; }`}return mt.push(".mtki { font-style: italic; }"),mt.push(".mtkb { font-weight: bold; }"),mt.push(".mtku { text-decoration: underline; text-underline-position: under; }"),mt.join(` -`)}(De)),this._themeCSS=M.join(` -`),this._updateCSS(),q.C.setColorMap(De),this._onColorThemeChange.fire(v),v.id}_updateCSS(){this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._styleElements.forEach(s=>s.innerHTML=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var na=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},is=function(me,s){return function(v,M){s(v,M,me)}};class Ur{constructor(s,v){this._id=s,this._parent=v,this._value=Object.create(null),this._value._contextId=s}setValue(s,v){return this._value[s]!==v&&(this._value[s]=v,!0)}removeValue(s){return s in this._value&&(delete this._value[s],!0)}getValue(s){let v=this._value[s];return v===void 0&&this._parent?this._parent.getValue(s):v}}class cs extends Ur{constructor(){super(-1,null)}setValue(s,v){return!1}removeValue(s){return!1}getValue(s){}}cs.INSTANCE=new cs;class dr extends Ur{constructor(s,v,M){super(s,null),this._configurationService=v,this._values=new Map,this._listener=this._configurationService.onDidChangeConfiguration(be=>{if(be.source===6){let Ne=Array.from(this._values.keys());this._values.clear(),M.fire(new wa(Ne))}else{let Ne=[];for(let De of be.affectedKeys){let je="config."+De;this._values.has(je)&&(this._values.delete(je),Ne.push(je))}M.fire(new wa(Ne))}})}dispose(){this._listener.dispose()}getValue(s){if(s.indexOf(dr._keyPrefix)!==0)return super.getValue(s);if(this._values.has(s))return this._values.get(s);let v=s.substr(dr._keyPrefix.length),M=this._configurationService.getValue(v),be;switch(typeof M){case"number":case"boolean":case"string":be=M;break;default:Array.isArray(M)&&(be=JSON.stringify(M))}return this._values.set(s,be),be}setValue(s,v){return super.setValue(s,v)}removeValue(s){return super.removeValue(s)}}dr._keyPrefix="config.";class nr{constructor(s,v,M){this._service=s,this._key=v,this._defaultValue=M,this.reset()}set(s){this._service.setContext(this._key,s)}reset(){this._defaultValue===void 0?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class _r{constructor(s){this.key=s}affectsSome(s){return s.has(this.key)}}class wa{constructor(s){this.keys=s}affectsSome(s){for(let v of this.keys)if(s.has(v))return!0;return!1}}class zo{constructor(s){this.events=s}affectsSome(s){for(let v of this.events)if(v.affectsSome(s))return!0;return!1}}class Cs{constructor(s){this._onDidChangeContext=new yi.d({merge:v=>new zo(v)}),this._isDisposed=!1,this._myContextId=s}createKey(s,v){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new nr(this,s,v)}get onDidChangeContext(){return this._onDidChangeContext.event}bufferChangeEvents(s){this._onDidChangeContext.pause();try{s()}finally{this._onDidChangeContext.resume()}}createScoped(s){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ya(this,s)}contextMatchesRules(s){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");let v=this.getContextValuesContainer(this._myContextId);return on.contextMatchesRules(v,s)}getContextKeyValue(s){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(s)}setContext(s,v){if(this._isDisposed)return;let M=this.getContextValuesContainer(this._myContextId);M&&M.setValue(s,v)&&this._onDidChangeContext.fire(new _r(s))}removeContext(s){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(s)&&this._onDidChangeContext.fire(new _r(s))}getContext(s){return this._isDisposed?cs.INSTANCE:this.getContextValuesContainer(function(v){for(;v;){if(v.hasAttribute("data-keybinding-context")){let M=v.getAttribute("data-keybinding-context");return M?parseInt(M,10):NaN}v=v.parentElement}return 0}(s))}}let Hr=class extends Cs{constructor(me){super(0),this._contexts=new Map,this._toDispose=new Y.b,this._lastContextId=0;let s=new dr(this._myContextId,me,this._onDidChangeContext);this._contexts.set(this._myContextId,s),this._toDispose.add(s)}dispose(){this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(me){return this._isDisposed?cs.INSTANCE:this._contexts.get(me)||cs.INSTANCE}createChildContext(me=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let s=++this._lastContextId;return this._contexts.set(s,new Ur(s,this.getContextValuesContainer(me))),s}disposeContext(me){this._isDisposed||this._contexts.delete(me)}};Hr=na([is(0,un.a)],Hr);class ya extends Cs{constructor(s,v){super(s.createChildContext()),this._parent=s,v&&(this._domNode=v,this._domNode.setAttribute("data-keybinding-context",String(this._myContextId)))}dispose(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute("data-keybinding-context"),this._domNode=void 0)}get onDidChangeContext(){return yi.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)}getContextValuesContainer(s){return this._isDisposed?cs.INSTANCE:this._parent.getContextValuesContainer(s)}createChildContext(s=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(s)}disposeContext(s){this._isDisposed||this._parent.disposeContext(s)}}S.a.registerCommand(ui.d,function(me,s,v){me.get(ui.b).createKey(String(s),v)}),o(259);var vr=o(60),ds=o(116),oa=o(105),wr=(o(261),o(99)),ns=o(138);function Ui(me,s,v){let M=v.offset+v.size;return v.position===0?s<=me-M?M:s<=v.offset?v.offset-s:Math.max(me-s,0):s<=v.offset?v.offset-s:s<=me-M?M:0}class or extends Y.a{constructor(s,v){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=Y.a.None,this.toDisposeOnSetContainer=Y.a.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=E.a(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,E.K(this.view),this.setContainer(s,v),this._register(Object(Y.h)(()=>this.setContainer(null,1)))}setContainer(s,v){if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,E.S(this.shadowRootHostElement),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),s){this.container=s,this.useFixedPosition=v!==1,this.useShadowDOM=v===3,this.useShadowDOM?(this.shadowRootHostElement=E.a(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=` +`}};ye=Ht([jt(0,un.a)],ye);class le{publicLog(s,v){return Promise.resolve(void 0)}publicLog2(s,v){return this.publicLog(s,v)}}class ue{constructor(){let s=C.a.from({scheme:ue.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Dt.b({uri:s,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(s){return s&&s.scheme===ue.SCHEME?this.workspace.folders[0]:null}}function qe(me,s,v){if(!s||!(me instanceof Gt))return;let M=[];Object.keys(s).forEach(be=>{Object(Pi.d)(be)&&M.push(["editor."+be,s[be]]),v&&Object(Pi.c)(be)&&M.push(["diffEditor."+be,s[be]])}),M.length>0&&me.updateValues(M)}ue.SCHEME="inmemory";class Ze{constructor(s){this._modelService=s}hasPreviewHandler(){return!1}apply(s,v){return Kt(this,void 0,void 0,function*(){let M=new Map;for(let Oe of s){if(!(Oe instanceof Si.c))throw new Error("bad edit - only text edits are supported");let je=this._modelService.getModel(Oe.resource);if(!je)throw new Error("bad edit - model not found");if(typeof Oe.versionId=="number"&&je.getVersionId()!==Oe.versionId)throw new Error("bad state - model changed in the meantime");let mt=M.get(je);mt||(mt=[],M.set(je,mt)),mt.push(Wi.a.replaceMove(Ae.a.lift(Oe.textEdit.range),Oe.textEdit.text))}let be=0,Ne=0;for(let[Oe,je]of M)Oe.pushStackElement(),Oe.pushEditOperations([],je,()=>[]),Oe.pushStackElement(),Ne+=1,be+=je.length;return{ariaSummary:ht.x(Tt.g.bulkEditServiceSummary,be,Ne)}})}}class tt{getUriLabel(s,v){return s.scheme==="file"?s.fsPath:s.path}}class ot{constructor(s,v){this._codeEditorService=s,this._container=v,this.onLayout=yi.b.None}get dimension(){return this._dimension||(this._dimension=E.y(window.document.body)),this._dimension}get container(){return this._container}focus(){var s;(s=this._codeEditorService.getFocusedCodeEditor())===null||s===void 0||s.focus()}}var zt=r(66),Jt=r(164),xi=r(194),Ei=r(191),ai=r(139),fi=r(24),ui=r(10),Te=r(84),Ee=r(18),ve=r(50),Re=r(19),We=r(80),Be=r(121),Le=r(83),Ke=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},dt=function(me,s){return function(v,M){s(v,M,me)}};let yt=0,xt=!1,Xt=class extends Jt.a{constructor(me,s,v,M,be,Ne,Oe,je,mt,It){(s=s||{}).ariaLabel=s.ariaLabel||Tt.h.editorViewAccessibleLabel,s.ariaLabel=s.ariaLabel+";"+Tt.h.accessibilityHelpMessage,super(me,s,{},v,M,be,Ne,je,mt,It),this._standaloneKeybindingService=Oe instanceof lt?Oe:null,xt||(xt=!0,zt.b(document.body))}addCommand(me,s,v){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let M="DYNAMIC_"+ ++yt,be=ui.a.deserialize(v);return this._standaloneKeybindingService.addDynamicKeybinding(M,me,s,be),M}createContextKey(me,s){return this._contextKeyService.createKey(me,s)}addAction(me){if(typeof me.id!="string"||typeof me.label!="string"||typeof me.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Y.a.None;let s=me.id,v=me.label,M=ui.a.and(ui.a.equals("editorId",this.getId()),ui.a.deserialize(me.precondition)),be=me.keybindings,Ne=ui.a.and(M,ui.a.deserialize(me.keybindingContext)),Oe=me.contextMenuGroupId||null,je=me.contextMenuOrder||0,mt=(en,...tn)=>Promise.resolve(me.run(this,...tn)),It=new Y.b,Qt=this.getId()+":"+s;if(It.add(S.a.registerCommand(Qt,mt)),Oe){let en={command:{id:Qt,title:v},when:M,group:Oe,order:je};It.add(fi.d.appendMenuItem(fi.b.EditorContext,en))}if(Array.isArray(be))for(let en of be)It.add(this._standaloneKeybindingService.addDynamicKeybinding(Qt,en,mt,Ne));let Di=new Ei.a(Qt,v,v,M,mt,this._contextKeyService);return this._actions[s]=Di,It.add(Object(Y.h)(()=>{delete this._actions[s]})),It}};Xt=Ke([dt(2,Ee.a),dt(3,H.a),dt(4,S.b),dt(5,ui.b),dt(6,ve.a),dt(7,Re.c),dt(8,Mt.a),dt(9,We.b)],Xt);let mi=class extends Xt{constructor(me,s,v,M,be,Ne,Oe,je,mt,It,Qt,Di,en){qe(Di,s,!1);let tn=It.registerEditorContainer(me);typeof(s=s||{}).theme=="string"&&It.setTheme(s.theme);let kn,nr=s.model;if(delete s.model,super(me,s,M,be,Ne,Oe,je,It,Qt,en),this._contextViewService=mt,this._configurationService=Di,this._standaloneThemeService=It,this._register(v),this._register(tn),nr===void 0?(kn=self.monaco.editor.createModel(s.value||"",s.language||"text/plain"),this._ownsModel=!0):(kn=nr,this._ownsModel=!1),this._attachModel(kn),kn){let lr={oldModelUrl:null,newModelUrl:kn.uri};this._onDidChangeModel.fire(lr)}}dispose(){super.dispose()}updateOptions(me){qe(this._configurationService,me,!1),typeof me.theme=="string"&&this._standaloneThemeService.setTheme(me.theme),super.updateOptions(me)}_attachModel(me){super._attachModel(me),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(me){super._postDetachModelCleanup(me),me&&this._ownsModel&&(me.dispose(),this._ownsModel=!1)}};mi=Ke([dt(3,Ee.a),dt(4,H.a),dt(5,S.b),dt(6,ui.b),dt(7,ve.a),dt(8,Te.b),dt(9,ai.a),dt(10,Mt.a),dt(11,un.a),dt(12,We.b)],mi);let Yt=class extends xi.a{constructor(me,s,v,M,be,Ne,Oe,je,mt,It,Qt,Di,en,tn,kn){qe(Di,s,!0);let nr=It.registerEditorContainer(me);typeof(s=s||{}).theme=="string"&&(s.theme=It.setTheme(s.theme)),super(me,s,kn,je,be,M,mt,It,Qt,en,tn),this._contextViewService=Oe,this._configurationService=Di,this._standaloneThemeService=It,this._register(v),this._register(nr),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(me){qe(this._configurationService,me,!0),typeof me.theme=="string"&&this._standaloneThemeService.setTheme(me.theme),super.updateOptions(me)}_createInnerEditor(me,s,v){return me.createInstance(Xt,s,v)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(me,s,v){return this.getModifiedEditor().addCommand(me,s,v)}createContextKey(me,s){return this.getModifiedEditor().createContextKey(me,s)}addAction(me){return this.getModifiedEditor().addAction(me)}};Yt=Ke([dt(3,Ee.a),dt(4,ui.b),dt(5,ve.a),dt(6,Te.b),dt(7,se.a),dt(8,H.a),dt(9,ai.a),dt(10,Mt.a),dt(11,un.a),dt(12,Te.a),dt(13,Le.a),dt(14,Be.a)],Yt);var oi=r(109);class qi{constructor(s){this._languageIdentifier=s}getId(){return this._languageIdentifier.language}}var an=r(42),_n=r(187);let ei=[],ii=[],bi=[];function ln(me,s=!1){let v=function(M){return{id:M.id,mime:M.mime,filename:M.filename,extension:M.extension,filepattern:M.filepattern,firstline:M.firstline,userConfigured:M.userConfigured,filenameLowercase:M.filename?M.filename.toLowerCase():void 0,extensionLowercase:M.extension?M.extension.toLowerCase():void 0,filepatternLowercase:M.filepattern?M.filepattern.toLowerCase():void 0,filepatternOnPath:!!M.filepattern&&M.filepattern.indexOf(an.e.sep)>=0}}(me);ei.push(v),v.userConfigured?bi.push(v):ii.push(v),s&&!v.userConfigured&&ei.forEach(M=>{M.mime===v.mime||M.userConfigured||(v.extension&&M.extension===v.extension&&console.warn(`Overwriting extension <<${v.extension}>> to now point to mime <<${v.mime}>>`),v.filename&&M.filename===v.filename&&console.warn(`Overwriting filename <<${v.filename}>> to now point to mime <<${v.mime}>>`),v.filepattern&&M.filepattern===v.filepattern&&console.warn(`Overwriting filepattern <<${v.filepattern}>> to now point to mime <<${v.mime}>>`),v.firstline&&M.firstline===v.firstline&&console.warn(`Overwriting firstline <<${v.firstline}>> to now point to mime <<${v.mime}>>`))})}function mn(me,s){let v;if(me)switch(me.scheme){case Q.b.file:v=me.fsPath;break;case Q.b.data:v=y.a.parseMetaData(me).get(y.a.META_DATA_LABEL);break;default:v=me.path}if(!v)return["application/unknown"];v=v.toLowerCase();let M=Object(an.a)(v),be=sn(v,M,bi);if(be)return[be,"text/plain"];let Ne=sn(v,M,ii);if(Ne)return[Ne,"text/plain"];if(s){let Oe=function(je){if(Object(ht.U)(je)&&(je=je.substr(1)),je.length>0)for(let mt=ei.length-1;mt>=0;mt--){let It=ei[mt];if(!It.firstline)continue;let Qt=je.match(It.firstline);if(Qt&&Qt.length>0)return It.mime}return null}(s);if(Oe)return[Oe,"text/plain"]}return["application/unknown"]}function sn(me,s,v){let M=null,be=null,Ne=null;for(let Oe=v.length-1;Oe>=0;Oe--){let je=v[Oe];if(s===je.filenameLowercase){M=je;break}if(je.filepattern&&(!be||je.filepattern.length>be.filepattern.length)){let mt=je.filepatternOnPath?me:s;Object(_n.a)(je.filepatternLowercase,mt)&&(be=je)}je.extension&&(!Ne||je.extension.length>Ne.extension.length)&&s.endsWith(je.extensionLowercase)&&(Ne=je)}return M?M.mime:be?be.mime:Ne?Ne.mime:null}var gn=r(146),Sn=r(56);let En=Object.prototype.hasOwnProperty;class Xn extends Y.a{constructor(s=!0,v=!1){super(),this._onDidChange=this._register(new yi.a),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=v,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},s&&(this._initializeFromRegistry(),this._register(gn.a.onDidChangeLanguages(M=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};let s=gn.a.getLanguages();this._registerLanguages(s)}_registerLanguages(s){for(let v of s)this._registerLanguage(v);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(v=>{let M=this._languages[v];M.name&&(this._nameMap[M.name]=M.identifier),M.aliases.forEach(be=>{this._lowercaseNameMap[be.toLowerCase()]=M.identifier}),M.mimetypes.forEach(be=>{this._mimeTypesMap[be]=M.identifier})}),Sn.a.as(Mn.a.Configuration).registerOverrideIdentifiers(gn.a.getLanguages().map(v=>v.id)),this._onDidChange.fire()}_getLanguageId(s){if(this._languageToLanguageId[s])return this._languageToLanguageId[s];let v=this._nextLanguageId2++;return this._languageIdToLanguage[v]=s,this._languageToLanguageId[s]=v,v}_registerLanguage(s){let v=s.id,M;if(En.call(this._languages,v))M=this._languages[v];else{let be=this._getLanguageId(v);M={identifier:new q.r(v,be),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[v]=M}this._mergeLanguage(M,s)}_mergeLanguage(s,v){let M=v.id,be=null;if(Array.isArray(v.mimetypes)&&v.mimetypes.length>0&&(s.mimetypes.push(...v.mimetypes),be=v.mimetypes[0]),be||(be="text/x-"+M,s.mimetypes.push(be)),Array.isArray(v.extensions)){v.configuration?s.extensions=v.extensions.concat(s.extensions):s.extensions=s.extensions.concat(v.extensions);for(let je of v.extensions)ln({id:M,mime:be,extension:je},this._warnOnOverwrite)}if(Array.isArray(v.filenames))for(let je of v.filenames)ln({id:M,mime:be,filename:je},this._warnOnOverwrite),s.filenames.push(je);if(Array.isArray(v.filenamePatterns))for(let je of v.filenamePatterns)ln({id:M,mime:be,filepattern:je},this._warnOnOverwrite);if(typeof v.firstLine=="string"&&v.firstLine.length>0){let je=v.firstLine;je.charAt(0)!=="^"&&(je="^"+je);try{let mt=new RegExp(je);ht.P(mt)||ln({id:M,mime:be,firstline:mt},this._warnOnOverwrite)}catch(mt){Object(z.e)(mt)}}s.aliases.push(M);let Ne=null;if(v.aliases!==void 0&&Array.isArray(v.aliases)&&(Ne=v.aliases.length===0?[null]:v.aliases),Ne!==null)for(let je of Ne)je&&je.length!==0&&s.aliases.push(je);let Oe=Ne!==null&&Ne.length>0;if(!(Oe&&Ne[0]===null)){let je=(Oe?Ne[0]:null)||M;!Oe&&s.name||(s.name=je)}v.configuration&&s.configurationFiles.push(v.configuration)}isRegisteredMode(s){return!!En.call(this._mimeTypesMap,s)||En.call(this._languages,s)}getModeIdForLanguageNameLowercase(s){return En.call(this._lowercaseNameMap,s)?this._lowercaseNameMap[s].language:null}extractModeIds(s){return s?s.split(",").map(v=>v.trim()).map(v=>En.call(this._mimeTypesMap,v)?this._mimeTypesMap[v].language:v).filter(v=>En.call(this._languages,v)):[]}getLanguageIdentifier(s){if(s===B.b||s===0)return B.a;let v;if(typeof s=="string")v=s;else if(v=this._languageIdToLanguage[s],!v)return null;return En.call(this._languages,v)?this._languages[v].identifier:null}getModeIdsFromFilepathOrFirstLine(s,v){if(!s&&!v)return[];let M=mn(s,v);return this.extractModeIds(M.join(","))}}class Yn extends Y.a{constructor(s,v){super(),this._onDidChange=this._register(new yi.a),this.onDidChange=this._onDidChange.event,this._selector=v,this.languageIdentifier=this._selector(),this._register(s(()=>this._evaluate()))}_evaluate(){let s=this._selector();s.id!==this.languageIdentifier.id&&(this.languageIdentifier=s,this._onDidChange.fire(this.languageIdentifier))}}class Nr{constructor(s=!1){this._onDidCreateMode=new yi.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new yi.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Xn(!0,s),this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire())}isRegisteredMode(s){return this._registry.isRegisteredMode(s)}getModeIdForLanguageName(s){return this._registry.getModeIdForLanguageNameLowercase(s)}getModeIdByFilepathOrFirstLine(s,v){let M=this._registry.getModeIdsFromFilepathOrFirstLine(s,v);return Object(fe.k)(M,null)}getModeId(s){let v=this._registry.extractModeIds(s);return Object(fe.k)(v,null)}getLanguageIdentifier(s){return this._registry.getLanguageIdentifier(s)}create(s){return new Yn(this.onLanguagesMaybeChanged,()=>{let v=this.getModeId(s);return this._createModeAndGetLanguageIdentifier(v)})}createByFilepathOrFirstLine(s,v){return new Yn(this.onLanguagesMaybeChanged,()=>{let M=this.getModeIdByFilepathOrFirstLine(s,v);return this._createModeAndGetLanguageIdentifier(M)})}_createModeAndGetLanguageIdentifier(s){let v=this.getLanguageIdentifier(s||"plaintext")||B.a;return this._getOrCreateMode(v.language),v}triggerMode(s){let v=this.getModeId(s);this._getOrCreateMode(v||"plaintext")}_getOrCreateMode(s){if(!this._instantiatedModes.hasOwnProperty(s)){let v=this.getLanguageIdentifier(s)||B.a;this._instantiatedModes[s]=new qi(v),this._onDidCreateMode.fire(this._instantiatedModes[s])}return this._instantiatedModes[s]}}var Ar=r(183);class In extends Y.a{constructor(){super(),this._onCodeEditorAdd=this._register(new yi.a),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new yi.a),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new yi.a),this._onDiffEditorRemove=this._register(new yi.a),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(s){this._codeEditors[s.getId()]=s,this._onCodeEditorAdd.fire(s)}removeCodeEditor(s){delete this._codeEditors[s.getId()]&&this._onCodeEditorRemove.fire(s)}listCodeEditors(){return Object.keys(this._codeEditors).map(s=>this._codeEditors[s])}addDiffEditor(s){this._diffEditors[s.getId()]=s,this._onDiffEditorAdd.fire(s)}removeDiffEditor(s){delete this._diffEditors[s.getId()]&&this._onDiffEditorRemove.fire(s)}listDiffEditors(){return Object.keys(this._diffEditors).map(s=>this._diffEditors[s])}getFocusedCodeEditor(){let s=null,v=this.listCodeEditors();for(let M of v){if(M.hasTextFocus())return M;M.hasWidgetFocus()&&(s=M)}return s}setModelProperty(s,v,M){let be=s.toString(),Ne;this._modelProperties.has(be)?Ne=this._modelProperties.get(be):(Ne=new Map,this._modelProperties.set(be,Ne)),Ne.set(v,M)}getModelProperty(s,v){let M=s.toString();if(this._modelProperties.has(M))return this._modelProperties.get(M).get(v)}}var Rn=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Qn=function(me,s){return function(v,M){s(v,M,me)}};class _r{constructor(s,v,M){this._parent=s,this._editorId=v,this._styleSheet=M,this._refCount=0}ref(){this._refCount++}unref(){var s;this._refCount--,this._refCount===0&&((s=this._styleSheet.parentNode)===null||s===void 0||s.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(s,v){this._styleSheet.sheet.insertRule(s,v)}removeRulesContainingSelector(s){E.P(s,this._styleSheet)}}class Rr{constructor(s){this._styleSheet=s}ref(){}unref(){}insertRule(s,v){this._styleSheet.sheet.insertRule(s,v)}removeRulesContainingSelector(s){E.P(s,this._styleSheet)}}let xr=class extends In{constructor(me,s=null){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=s||null,this._themeService=me}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new Rr(E.v())),this._globalStyleSheet}_getOrCreateStyleSheet(me){if(!me)return this._getOrCreateGlobalStyleSheet();let s=me.getContainerDomNode();if(!E.O(s))return this._getOrCreateGlobalStyleSheet();let v=me.getId();if(!this._editorStyleSheets.has(v)){let M=new _r(this,v,E.v(s));this._editorStyleSheets.set(v,M)}return this._editorStyleSheets.get(v)}_removeEditorStyleSheets(me){this._editorStyleSheets.delete(me)}registerDecorationType(me,s,v,M){let be=this._decorationOptionProviders.get(me);if(!be){let Ne=this._getOrCreateStyleSheet(M),Oe={styleSheet:Ne,key:me,parentTypeKey:v,options:s||Object.create(null)};be=v?new Sr(this._themeService,Ne,Oe):new ur(this._themeService,Ne,Oe),this._decorationOptionProviders.set(me,be)}be.refCount++}removeDecorationType(me){let s=this._decorationOptionProviders.get(me);s&&(s.refCount--,s.refCount<=0&&(this._decorationOptionProviders.delete(me),s.dispose(),this.listCodeEditors().forEach(v=>v.removeDecorations(me))))}resolveDecorationOptions(me,s){let v=this._decorationOptionProviders.get(me);if(!v)throw new Error("Unknown decoration type key: "+me);return v.getOptions(this,s)}};xr=Rn([Qn(0,Re.c)],xr);class Sr{constructor(s,v,M){this._styleSheet=v,this._styleSheet.ref(),this._parentTypeKey=M.parentTypeKey,this.refCount=0,this._beforeContentRules=new Lr(3,M,s),this._afterContentRules=new Lr(4,M,s)}getOptions(s,v){let M=s.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(M.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(M.afterContentClassName=this._afterContentRules.className),M}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class ur{constructor(s,v,M){this._disposables=new Y.b,this._styleSheet=v,this._styleSheet.ref(),this.refCount=0;let be=It=>{let Qt=new Lr(It,M,s);if(this._disposables.add(Qt),Qt.hasContent)return Qt.className};this.className=be(0);let Ne=(It=>{let Qt=new Lr(It,M,s);return this._disposables.add(Qt),Qt.hasContent?{className:Qt.className,hasLetterSpacing:Qt.hasLetterSpacing}:null})(1);Ne&&(this.inlineClassName=Ne.className,this.inlineClassNameAffectsLetterSpacing=Ne.hasLetterSpacing),this.beforeContentClassName=be(3),this.afterContentClassName=be(4),this.glyphMarginClassName=be(2);let Oe=M.options;this.isWholeLine=Boolean(Oe.isWholeLine),this.stickiness=Oe.rangeBehavior;let je=Oe.light&&Oe.light.overviewRulerColor||Oe.overviewRulerColor,mt=Oe.dark&&Oe.dark.overviewRulerColor||Oe.overviewRulerColor;je===void 0&&mt===void 0||(this.overviewRuler={color:je||mt,darkColor:mt||je,position:Oe.overviewRulerLane||U.d.Center})}getOptions(s,v){return v?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}let Tn={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"};class Lr{constructor(s,v,M){this._theme=M.getColorTheme(),this._ruleType=s,this._providerArgs=v,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let be=Ur.getClassName(this._providerArgs.key,s);this._providerArgs.parentTypeKey&&(be=be+" "+Ur.getClassName(this._providerArgs.parentTypeKey,s)),this._className=be,this._unThemedSelector=Ur.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,s),this._buildCSS(),this._usesThemeColors?this._themeListener=M.onDidColorThemeChange(Ne=>{this._theme=M.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){let s=this._providerArgs.options,v,M,be;switch(this._ruleType){case 0:v=this.getCSSTextForModelDecorationClassName(s),M=this.getCSSTextForModelDecorationClassName(s.light),be=this.getCSSTextForModelDecorationClassName(s.dark);break;case 1:v=this.getCSSTextForModelDecorationInlineClassName(s),M=this.getCSSTextForModelDecorationInlineClassName(s.light),be=this.getCSSTextForModelDecorationInlineClassName(s.dark);break;case 2:v=this.getCSSTextForModelDecorationGlyphMarginClassName(s),M=this.getCSSTextForModelDecorationGlyphMarginClassName(s.light),be=this.getCSSTextForModelDecorationGlyphMarginClassName(s.dark);break;case 3:v=this.getCSSTextForModelDecorationContentClassName(s.before),M=this.getCSSTextForModelDecorationContentClassName(s.light&&s.light.before),be=this.getCSSTextForModelDecorationContentClassName(s.dark&&s.dark.before);break;case 4:v=this.getCSSTextForModelDecorationContentClassName(s.after),M=this.getCSSTextForModelDecorationContentClassName(s.light&&s.light.after),be=this.getCSSTextForModelDecorationContentClassName(s.dark&&s.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}let Ne=this._providerArgs.styleSheet,Oe=!1;v.length>0&&(Ne.insertRule(`${this._unThemedSelector} {${v}}`,0),Oe=!0),M.length>0&&(Ne.insertRule(`.vs${this._unThemedSelector} {${M}}`,0),Oe=!0),be.length>0&&(Ne.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${be}}`,0),Oe=!0),this._hasContent=Oe}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(s){if(!s)return"";let v=[];return this.collectCSSText(s,["backgroundColor"],v),this.collectCSSText(s,["outline","outlineColor","outlineStyle","outlineWidth"],v),this.collectBorderSettingsCSSText(s,v),v.join("")}getCSSTextForModelDecorationInlineClassName(s){if(!s)return"";let v=[];return this.collectCSSText(s,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],v),s.letterSpacing&&(this._hasLetterSpacing=!0),v.join("")}getCSSTextForModelDecorationContentClassName(s){if(!s)return"";let v=[];if(s!==void 0){if(this.collectBorderSettingsCSSText(s,v),s.contentIconPath!==void 0&&v.push(ht.x(Tn.contentIconPath,E.q(C.a.revive(s.contentIconPath)))),typeof s.contentText=="string"){let M=s.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");v.push(ht.x(Tn.contentText,M))}this.collectCSSText(s,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],v),this.collectCSSText(s,["width","height"],v)&&v.push("display:inline-block;")}return v.join("")}getCSSTextForModelDecorationGlyphMarginClassName(s){if(!s)return"";let v=[];return s.gutterIconPath!==void 0&&(v.push(ht.x(Tn.gutterIconPath,E.q(C.a.revive(s.gutterIconPath)))),s.gutterIconSize!==void 0&&v.push(ht.x(Tn.gutterIconSize,s.gutterIconSize))),v.join("")}collectBorderSettingsCSSText(s,v){return!!this.collectCSSText(s,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],v)&&(v.push(ht.x("box-sizing: border-box;")),!0)}collectCSSText(s,v,M){let be=M.length;for(let Ne of v){let Oe=this.resolveValue(s[Ne]);typeof Oe=="string"&&M.push(ht.x(Tn[Ne],Oe))}return M.length!==be}resolveValue(s){if(Object(ie.b)(s)){this._usesThemeColors=!0;let v=this._theme.getColor(s.id);return v?v.toString():"transparent"}return s}}class Ur{static getClassName(s,v){return"ced-"+s+"-"+v}static getSelector(s,v,M){let be=".monaco-editor ."+this.getClassName(s,M);return v&&(be=be+"."+this.getClassName(v,M)),M===3?be+="::before":M===4&&(be+="::after"),be}}class go extends xr{getActiveCodeEditor(){return null}openCodeEditor(s,v,M){return v?Promise.resolve(this.doOpenEditor(v,s)):Promise.resolve(null)}doOpenEditor(s,v){if(!this.findModel(s,v.resource)){if(v.resource){let be=v.resource.scheme;if(be===Q.b.http||be===Q.b.https)return Object(E.cb)(v.resource.toString()),s}return null}let M=v.options?v.options.selection:null;if(M)if(typeof M.endLineNumber=="number"&&typeof M.endColumn=="number")s.setSelection(M),s.revealRangeInCenter(M,1);else{let be={lineNumber:M.startLineNumber,column:M.startColumn};s.setPosition(be),s.revealPositionInCenter(be,1)}return s}findModel(s,v){let M=s.getModel();return M&&M.uri.toString()!==v.toString()?null:M}}var vr=r(15);class ls{constructor(s,v,M,be,Ne){this.token=s,this.index=v,this.fontStyle=M,this.foreground=be,this.background=Ne}}let Bo=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class Kn{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(s){if(s===null)return 0;let v=s.match(Bo);if(!v)throw new Error("Illegal value for token color: "+s);s=v[1].toUpperCase();let M=this._color2id.get(s);return M||(M=++this._lastColorId,this._color2id.set(s,M),this._id2color[M]=vr.a.fromHex("#"+s),M)}getColorMap(){return this._id2color.slice(0)}}class lo{constructor(s,v){this._colorMap=s,this._root=v,this._cache=new Map}static createFromRawTokenTheme(s,v){return this.createFromParsedTokenTheme(function(M){if(!M||!Array.isArray(M))return[];let be=[],Ne=0;for(let Oe=0,je=M.length;Oe<je;Oe++){let mt=M[Oe],It=-1;if(typeof mt.fontStyle=="string"){It=0;let en=mt.fontStyle.split(" ");for(let tn=0,kn=en.length;tn<kn;tn++)switch(en[tn]){case"italic":It|=1;break;case"bold":It|=2;break;case"underline":It|=4}}let Qt=null;typeof mt.foreground=="string"&&(Qt=mt.foreground);let Di=null;typeof mt.background=="string"&&(Di=mt.background),be[Ne++]=new ls(mt.token||"",Oe,It,Qt,Di)}return be}(s),v)}static createFromParsedTokenTheme(s,v){return function(M,be){M.sort((tn,kn)=>{let nr=function(lr,hr){return lr<hr?-1:lr>hr?1:0}(tn.token,kn.token);return nr!==0?nr:tn.index-kn.index});let Ne=0,Oe="000000",je="ffffff";for(;M.length>=1&&M[0].token==="";){let tn=M.shift();tn.fontStyle!==-1&&(Ne=tn.fontStyle),tn.foreground!==null&&(Oe=tn.foreground),tn.background!==null&&(je=tn.background)}let mt=new Kn;for(let tn of be)mt.getId(tn);let It=mt.getId(Oe),Qt=mt.getId(je),Di=new Lo(Ne,It,Qt),en=new jo(Di);for(let tn=0,kn=M.length;tn<kn;tn++){let nr=M[tn];en.insert(nr.token,nr.fontStyle,mt.getId(nr.foreground),mt.getId(nr.background))}return new lo(mt,en)}(s,v)}getColorMap(){return this._colorMap.getColorMap()}_match(s){return this._root.match(s)}match(s,v){let M=this._cache.get(v);if(M===void 0){let be=this._match(v),Ne=function(Oe){let je=Oe.match(kr);if(!je)return 0;switch(je[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(v);M=(be.metadata|Ne<<8)>>>0,this._cache.set(v,M)}return(M|s<<0)>>>0}}let kr=/\b(comment|string|regex|regexp)\b/;class Lo{constructor(s,v,M){this._fontStyle=s,this._foreground=v,this._background=M,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new Lo(this._fontStyle,this._foreground,this._background)}acceptOverwrite(s,v,M){s!==-1&&(this._fontStyle=s),v!==0&&(this._foreground=v),M!==0&&(this._background=M),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class jo{constructor(s){this._mainRule=s,this._children=new Map}match(s){if(s==="")return this._mainRule;let v,M,be=s.indexOf(".");be===-1?(v=s,M=""):(v=s.substring(0,be),M=s.substring(be+1));let Ne=this._children.get(v);return Ne!==void 0?Ne.match(M):this._mainRule}insert(s,v,M,be){if(s==="")return void this._mainRule.acceptOverwrite(v,M,be);let Ne,Oe,je=s.indexOf(".");je===-1?(Ne=s,Oe=""):(Ne=s.substring(0,je),Oe=s.substring(je+1));let mt=this._children.get(Ne);mt===void 0&&(mt=new jo(this._mainRule.clone()),this._children.set(Ne,mt)),mt.insert(Oe,v,M,be)}}var $r=r(57),Cn=r(5);let Ir={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#FFFFFE",[Cn.B]:"#000000",[Cn.J]:"#E5EBF1",[$r.h]:"#D3D3D3",[$r.a]:"#939393",[Cn.Q]:"#ADD6FF4D"}},Dr={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#1E1E1E",[Cn.B]:"#D4D4D4",[Cn.J]:"#3A3D41",[$r.h]:"#404040",[$r.a]:"#707070",[Cn.Q]:"#ADD6FF26"}},fo={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Cn.s]:"#000000",[Cn.B]:"#FFFFFF",[$r.h]:"#FFFFFF",[$r.a]:"#FFFFFF"}};var zn=r(154);let er=Sn.a.as(Cn.a.ColorContribution),bo=Sn.a.as(Re.a.ThemingContribution);class va{constructor(s,v){this.semanticHighlighting=!1,this.themeData=v;let M=v.base;s.length>0?(this.id=M+" "+s,this.themeName=s):(this.id=M,this.themeName=M),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let s=new Map;for(let v in this.themeData.colors)s.set(v,vr.a.fromHex(this.themeData.colors[v]));if(this.themeData.inherit){let v=Vo(this.themeData.base);for(let M in v.colors)s.has(M)||s.set(M,vr.a.fromHex(v.colors[M]))}this.colors=s}return this.colors}getColor(s,v){return this.getColors().get(s)||(v!==!1?this.getDefault(s):void 0)}getDefault(s){let v=this.defaultColors[s];return v||(v=er.resolveDefaultColor(s,this),this.defaultColors[s]=v,v)}defines(s){return Object.prototype.hasOwnProperty.call(this.getColors(),s)}get type(){switch(this.base){case"vs":return"light";case"hc-black":return"hc";default:return"dark"}}get tokenTheme(){if(!this._tokenTheme){let s=[],v=[];if(this.themeData.inherit){let M=Vo(this.themeData.base);s=M.rules,M.encodedTokensColors&&(v=M.encodedTokensColors)}s=s.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(v=this.themeData.encodedTokensColors),this._tokenTheme=lo.createFromRawTokenTheme(s,v)}return this._tokenTheme}getTokenStyleMetadata(s,v,M){let be=this.tokenTheme._match([s].concat(v).join(".")).metadata,Ne=q.B.getForeground(be),Oe=q.B.getFontStyle(be);return{foreground:Ne,italic:Boolean(1&Oe),bold:Boolean(2&Oe),underline:Boolean(4&Oe)}}}function es(me){return me==="vs"||me==="vs-dark"||me==="hc-black"}function Vo(me){switch(me){case"vs":return Ir;case"vs-dark":return Dr;case"hc-black":return fo}}function No(me){let s=Vo(me);return new va(me,s)}class ts extends Y.a{constructor(){super(),this._onColorThemeChange=this._register(new yi.a),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._knownThemes=new Map,this._knownThemes.set("vs",No("vs")),this._knownThemes.set("vs-dark",No("vs-dark")),this._knownThemes.set("hc-black",No("hc-black")),this._codiconCSS=zn.a.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this.setTheme("vs"),zn.a.onDidChange(()=>{this._codiconCSS=zn.a.getCSS(),this._updateCSS()})}registerEditorContainer(s){return E.O(s)?this._registerShadowDomContainer(s):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=E.v(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._allCSS,this._styleElements.push(this._globalStyleElement)),Y.a.None}_registerShadowDomContainer(s){let v=E.v(s);return v.className="monaco-colors",v.innerHTML=this._allCSS,this._styleElements.push(v),{dispose:()=>{for(let M=0;M<this._styleElements.length;M++)if(this._styleElements[M]===v)return void this._styleElements.splice(M,1)}}}defineTheme(s,v){if(!/^[a-z0-9\-]+$/i.test(s))throw new Error("Illegal theme name!");if(!es(v.base)&&!es(s))throw new Error("Illegal theme base!");this._knownThemes.set(s,new va(s,v)),es(s)&&this._knownThemes.forEach(M=>{M.base===s&&M.notifyBaseUpdated()}),this._theme&&this._theme.themeName===s&&this.setTheme(s)}getColorTheme(){return this._theme}setTheme(s){let v;if(v=this._knownThemes.has(s)?this._knownThemes.get(s):this._knownThemes.get("vs"),this._theme===v)return v.id;this._theme=v;let M=[],be={},Ne={addRule:je=>{be[je]||(M.push(je),be[je]=!0)}};bo.getThemingParticipants().forEach(je=>je(v,Ne,this._environment));let Oe=v.tokenTheme.getColorMap();return Ne.addRule(function(je){let mt=[];for(let It=1,Qt=je.length;It<Qt;It++){let Di=je[It];mt[It]=`.mtk${It} { color: ${Di}; }`}return mt.push(".mtki { font-style: italic; }"),mt.push(".mtkb { font-weight: bold; }"),mt.push(".mtku { text-decoration: underline; text-underline-position: under; }"),mt.join(` +`)}(Oe)),this._themeCSS=M.join(` +`),this._updateCSS(),q.C.setColorMap(Oe),this._onColorThemeChange.fire(v),v.id}_updateCSS(){this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._styleElements.forEach(s=>s.innerHTML=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var na=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},is=function(me,s){return function(v,M){s(v,M,me)}};class Uo{constructor(s,v){this._id=s,this._parent=v,this._value=Object.create(null),this._value._contextId=s}setValue(s,v){return this._value[s]!==v&&(this._value[s]=v,!0)}removeValue(s){return s in this._value&&(delete this._value[s],!0)}getValue(s){let v=this._value[s];return v===void 0&&this._parent?this._parent.getValue(s):v}}class cs extends Uo{constructor(){super(-1,null)}setValue(s,v){return!1}removeValue(s){return!1}getValue(s){}}cs.INSTANCE=new cs;class co extends Uo{constructor(s,v,M){super(s,null),this._configurationService=v,this._values=new Map,this._listener=this._configurationService.onDidChangeConfiguration(be=>{if(be.source===6){let Ne=Array.from(this._values.keys());this._values.clear(),M.fire(new wa(Ne))}else{let Ne=[];for(let Oe of be.affectedKeys){let je="config."+Oe;this._values.has(je)&&(this._values.delete(je),Ne.push(je))}M.fire(new wa(Ne))}})}dispose(){this._listener.dispose()}getValue(s){if(s.indexOf(co._keyPrefix)!==0)return super.getValue(s);if(this._values.has(s))return this._values.get(s);let v=s.substr(co._keyPrefix.length),M=this._configurationService.getValue(v),be;switch(typeof M){case"number":case"boolean":case"string":be=M;break;default:Array.isArray(M)&&(be=JSON.stringify(M))}return this._values.set(s,be),be}setValue(s,v){return super.setValue(s,v)}removeValue(s){return super.removeValue(s)}}co._keyPrefix="config.";class io{constructor(s,v,M){this._service=s,this._key=v,this._defaultValue=M,this.reset()}set(s){this._service.setContext(this._key,s)}reset(){this._defaultValue===void 0?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class _o{constructor(s){this.key=s}affectsSome(s){return s.has(this.key)}}class wa{constructor(s){this.keys=s}affectsSome(s){for(let v of this.keys)if(s.has(v))return!0;return!1}}class Wr{constructor(s){this.events=s}affectsSome(s){for(let v of this.events)if(v.affectsSome(s))return!0;return!1}}class Cs{constructor(s){this._onDidChangeContext=new yi.d({merge:v=>new Wr(v)}),this._isDisposed=!1,this._myContextId=s}createKey(s,v){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new io(this,s,v)}get onDidChangeContext(){return this._onDidChangeContext.event}bufferChangeEvents(s){this._onDidChangeContext.pause();try{s()}finally{this._onDidChangeContext.resume()}}createScoped(s){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ya(this,s)}contextMatchesRules(s){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");let v=this.getContextValuesContainer(this._myContextId);return rn.contextMatchesRules(v,s)}getContextKeyValue(s){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(s)}setContext(s,v){if(this._isDisposed)return;let M=this.getContextValuesContainer(this._myContextId);M&&M.setValue(s,v)&&this._onDidChangeContext.fire(new _o(s))}removeContext(s){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(s)&&this._onDidChangeContext.fire(new _o(s))}getContext(s){return this._isDisposed?cs.INSTANCE:this.getContextValuesContainer(function(v){for(;v;){if(v.hasAttribute("data-keybinding-context")){let M=v.getAttribute("data-keybinding-context");return M?parseInt(M,10):NaN}v=v.parentElement}return 0}(s))}}let Ho=class extends Cs{constructor(me){super(0),this._contexts=new Map,this._toDispose=new Y.b,this._lastContextId=0;let s=new co(this._myContextId,me,this._onDidChangeContext);this._contexts.set(this._myContextId,s),this._toDispose.add(s)}dispose(){this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(me){return this._isDisposed?cs.INSTANCE:this._contexts.get(me)||cs.INSTANCE}createChildContext(me=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let s=++this._lastContextId;return this._contexts.set(s,new Uo(s,this.getContextValuesContainer(me))),s}disposeContext(me){this._isDisposed||this._contexts.delete(me)}};Ho=na([is(0,un.a)],Ho);class ya extends Cs{constructor(s,v){super(s.createChildContext()),this._parent=s,v&&(this._domNode=v,this._domNode.setAttribute("data-keybinding-context",String(this._myContextId)))}dispose(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute("data-keybinding-context"),this._domNode=void 0)}get onDidChangeContext(){return yi.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)}getContextValuesContainer(s){return this._isDisposed?cs.INSTANCE:this._parent.getContextValuesContainer(s)}createChildContext(s=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(s)}disposeContext(s){this._isDisposed||this._parent.disposeContext(s)}}S.a.registerCommand(ui.d,function(me,s,v){me.get(ui.b).createKey(String(s),v)}),r(259);var vo=r(60),ds=r(116),ra=r(105),wo=(r(261),r(99)),ns=r(138);function Ui(me,s,v){let M=v.offset+v.size;return v.position===0?s<=me-M?M:s<=v.offset?v.offset-s:Math.max(me-s,0):s<=v.offset?v.offset-s:s<=me-M?M:0}class no extends Y.a{constructor(s,v){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=Y.a.None,this.toDisposeOnSetContainer=Y.a.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=E.a(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,E.K(this.view),this.setContainer(s,v),this._register(Object(Y.h)(()=>this.setContainer(null,1)))}setContainer(s,v){if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,E.S(this.shadowRootHostElement),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),s){this.container=s,this.useFixedPosition=v!==1,this.useShadowDOM=v===3,this.useShadowDOM?(this.shadowRootHostElement=E.a(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=` <style> ${xs} </style> - `,this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(E.a("slot"))):this.container.appendChild(this.view);let M=new Y.b;or.BUBBLE_UP_EVENTS.forEach(be=>{M.add(E.n(this.container,be,Ne=>{this.onDOMEvent(Ne,!1)}))}),or.BUBBLE_DOWN_EVENTS.forEach(be=>{M.add(E.n(this.container,be,Ne=>{this.onDOMEvent(Ne,!0)},!0))}),this.toDisposeOnSetContainer=M}}show(s){this.isVisible()&&this.hide(),E.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",E.Z(this.view),this.toDisposeOnClean=s.render(this.view)||Y.a.None,this.delegate=s,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(this.delegate.canRelayout!==!1||te.c&&ns.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let s,v=this.delegate.getAnchor();if(E.M(v)){let en=E.C(v);s={top:en.top,left:en.left,width:en.width,height:en.height}}else s={top:v.y,left:v.x,width:v.width||1,height:v.height||2};let M=E.H(this.view),be=E.G(this.view),Ne=this.delegate.anchorPosition||0,De=this.delegate.anchorAlignment||0,je={offset:s.top-window.pageYOffset,size:s.height,position:Ne===0?0:1},mt;mt=De===0?{offset:s.left,size:0,position:0}:{offset:s.left+s.width,size:0,position:1};let It=Ui(window.innerHeight,be,je)+window.pageYOffset;wr.a.intersects({start:It,end:It+be},{start:je.offset,end:je.offset+je.size})&&(mt.size=s.width,De===1&&(mt.offset=s.left));let Qt=Ui(window.innerWidth,M,mt);E.R(this.view,"top","bottom","left","right"),E.e(this.view,Ne===0?"bottom":"top"),E.e(this.view,De===0?"left":"right"),E.ab(this.view,"fixed",this.useFixedPosition);let Oi=E.C(this.container);this.view.style.top=It-(this.useFixedPosition?E.C(this.view).top:Oi.top)+"px",this.view.style.left=Qt-(this.useFixedPosition?E.C(this.view).left:Oi.left)+"px",this.view.style.width="initial"}hide(s){let v=this.delegate;this.delegate=null,(v==null?void 0:v.onHide)&&v.onHide(s),this.toDisposeOnClean.dispose(),E.K(this.view)}isVisible(){return!!this.delegate}onDOMEvent(s,v){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(s,document.activeElement):v&&!E.L(s.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}or.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],or.BUBBLE_DOWN_EVENTS=["click"];let xs=` + `,this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(E.a("slot"))):this.container.appendChild(this.view);let M=new Y.b;no.BUBBLE_UP_EVENTS.forEach(be=>{M.add(E.n(this.container,be,Ne=>{this.onDOMEvent(Ne,!1)}))}),no.BUBBLE_DOWN_EVENTS.forEach(be=>{M.add(E.n(this.container,be,Ne=>{this.onDOMEvent(Ne,!0)},!0))}),this.toDisposeOnSetContainer=M}}show(s){this.isVisible()&&this.hide(),E.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",E.Z(this.view),this.toDisposeOnClean=s.render(this.view)||Y.a.None,this.delegate=s,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(this.delegate.canRelayout!==!1||te.c&&ns.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let s,v=this.delegate.getAnchor();if(E.M(v)){let en=E.C(v);s={top:en.top,left:en.left,width:en.width,height:en.height}}else s={top:v.y,left:v.x,width:v.width||1,height:v.height||2};let M=E.H(this.view),be=E.G(this.view),Ne=this.delegate.anchorPosition||0,Oe=this.delegate.anchorAlignment||0,je={offset:s.top-window.pageYOffset,size:s.height,position:Ne===0?0:1},mt;mt=Oe===0?{offset:s.left,size:0,position:0}:{offset:s.left+s.width,size:0,position:1};let It=Ui(window.innerHeight,be,je)+window.pageYOffset;wo.a.intersects({start:It,end:It+be},{start:je.offset,end:je.offset+je.size})&&(mt.size=s.width,Oe===1&&(mt.offset=s.left));let Qt=Ui(window.innerWidth,M,mt);E.R(this.view,"top","bottom","left","right"),E.e(this.view,Ne===0?"bottom":"top"),E.e(this.view,Oe===0?"left":"right"),E.ab(this.view,"fixed",this.useFixedPosition);let Di=E.C(this.container);this.view.style.top=It-(this.useFixedPosition?E.C(this.view).top:Di.top)+"px",this.view.style.left=Qt-(this.useFixedPosition?E.C(this.view).left:Di.left)+"px",this.view.style.width="initial"}hide(s){let v=this.delegate;this.delegate=null,(v==null?void 0:v.onHide)&&v.onHide(s),this.toDisposeOnClean.dispose(),E.K(this.view)}isVisible(){return!!this.delegate}onDOMEvent(s,v){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(s,document.activeElement):v&&!E.L(s.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}no.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],no.BUBBLE_DOWN_EVENTS=["click"];let xs=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } @@ -624,7 +624,7 @@ ${this._themeCSS}`,this._styleElements.forEach(s=>s.innerHTML=this._allCSS)}getF :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } -`;var yr=o(17),qr=o(123),Ss=o(34),hs=o(69);let us=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Ca=/(&)?(&)([^\s&])/g,xa=Object(yr.e)("menu-selection",yr.a.check),ks=Object(yr.e)("menu-submenu",yr.a.chevronRight);var Ir;(function(me){me[me.Right=0]="Right",me[me.Left=1]="Left"})(Ir||(Ir={}));class $r extends ds.a{constructor(s,v,M={}){Object(E.e)(s,"monaco-menu-container"),s.setAttribute("role","presentation");let be=document.createElement("div");Object(E.e)(be,"monaco-menu"),be.setAttribute("role","presentation"),super(be,{orientation:2,actionViewItemProvider:je=>this.doGetActionViewItem(je,M,Ne),context:M.context,actionRunner:M.actionRunner,ariaLabel:M.ariaLabel,triggerKeys:{keys:[3,...te.f||te.d?[10]:[]],keyDown:!0}}),this.menuElement=be,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Y.b),this.initializeStyleSheet(s),Object(E.i)(be,E.c.KEY_DOWN,je=>{new Hi.a(je).equals(2)&&je.preventDefault()}),M.enableMnemonics&&this.menuDisposables.add(Object(E.i)(be,E.c.KEY_DOWN,je=>{let mt=je.key.toLocaleLowerCase();if(this.mnemonics.has(mt)){E.b.stop(je,!0);let It=this.mnemonics.get(mt);if(It.length===1&&(It[0]instanceof Es&&It[0].container&&this.focusItemByElement(It[0].container),It[0].onClick(je)),It.length>1){let Qt=It.shift();Qt&&Qt.container&&(this.focusItemByElement(Qt.container),It.push(Qt)),this.mnemonics.set(mt,It)}}})),te.d&&this._register(Object(E.i)(be,E.c.KEY_DOWN,je=>{let mt=new Hi.a(je);mt.equals(14)||mt.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),E.b.stop(je,!0)):(mt.equals(13)||mt.equals(12))&&(this.focusedItem=0,this.focusPrevious(),E.b.stop(je,!0))})),this._register(Object(E.i)(this.domNode,E.c.MOUSE_OUT,je=>{let mt=je.relatedTarget;Object(E.L)(mt,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),je.stopPropagation())})),this._register(Object(E.i)(this.actionsList,E.c.MOUSE_OVER,je=>{let mt=je.target;if(mt&&Object(E.L)(mt,this.actionsList)&&mt!==this.actionsList){for(;mt.parentElement!==this.actionsList&&mt.parentElement!==null;)mt=mt.parentElement;if(Object(E.I)(mt,"action-item")){let It=this.focusedItem;this.setFocusedItem(mt),It!==this.focusedItem&&this.updateFocus()}}}));let Ne={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new oa.a(be,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let De=this.scrollableElement.getDomNode();De.style.position="",this._register(Object(E.i)(De,E.c.MOUSE_UP,je=>{je.preventDefault()})),be.style.maxHeight=Math.max(10,window.innerHeight-s.getBoundingClientRect().top-35)+"px",v=v.filter(je=>{var mt;return!((mt=M.submenuIds)===null||mt===void 0?void 0:mt.has(je.id))||(console.warn("Found submenu cycle: "+je.id),!1)}),this.push(v,{icon:!0,label:!0,isMenu:!0}),s.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(je=>!(je instanceof ps)).forEach((je,mt,It)=>{je.updatePositionInSet(mt+1,It.length)})}initializeStyleSheet(s){Object(E.O)(s)?(this.styleSheet=Object(E.v)(s),this.styleSheet.innerHTML=Us):($r.globalStyleSheet||($r.globalStyleSheet=Object(E.v)(),$r.globalStyleSheet.innerHTML=Us),this.styleSheet=$r.globalStyleSheet)}style(s){let v=this.getContainer(),M=s.foregroundColor?""+s.foregroundColor:"",be=s.backgroundColor?""+s.backgroundColor:"",Ne=s.borderColor?"1px solid "+s.borderColor:"",De=s.shadowColor?"0 2px 4px "+s.shadowColor:"";v.style.border=Ne,this.domNode.style.color=M,this.domNode.style.backgroundColor=be,v.style.boxShadow=De,this.viewItems&&this.viewItems.forEach(je=>{(je instanceof Vs||je instanceof ps)&&je.style(s)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(s){let v=this.focusedItem;this.setFocusedItem(s),v!==this.focusedItem&&this.updateFocus()}setFocusedItem(s){for(let v=0;v<this.actionsList.children.length;v++)if(s===this.actionsList.children[v]){this.focusedItem=v;break}}updateFocus(s){super.updateFocus(s,!0),this.focusedItem!==void 0&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(s,v,M){if(s instanceof vr.c)return new ps(v.context,s,{icon:!0});if(s instanceof vr.d){let be=new Es(s,s.actions,M,Object.assign(Object.assign({},v),{submenuIds:new Set([...v.submenuIds||[],s.id])}));if(v.enableMnemonics){let Ne=be.getMnemonic();if(Ne&&be.isEnabled()){let De=[];this.mnemonics.has(Ne)&&(De=this.mnemonics.get(Ne)),De.push(be),this.mnemonics.set(Ne,De)}}return be}{let be={enableMnemonics:v.enableMnemonics,useEventAsContext:v.useEventAsContext};if(v.getKeyBinding){let De=v.getKeyBinding(s);if(De){let je=De.getLabel();je&&(be.keybinding=je)}}let Ne=new Vs(v.context,s,be);if(v.enableMnemonics){let De=Ne.getMnemonic();if(De&&Ne.isEnabled()){let je=[];this.mnemonics.has(De)&&(je=this.mnemonics.get(De)),je.push(Ne),this.mnemonics.set(De,je)}}return Ne}}}class Vs extends qr.b{constructor(s,v,M={}){if(M.isMenu=!0,super(v,v,M),this.options=M,this.options.icon=M.icon!==void 0&&M.icon,this.options.label=M.label===void 0||M.label,this.cssClass="",this.options.label&&M.enableMnemonics){let be=this.getAction().label;if(be){let Ne=us.exec(be);Ne&&(this.mnemonic=(Ne[1]?Ne[1]:Ne[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new xe.d(()=>{this.element&&(this._register(Object(E.i)(this.element,E.c.MOUSE_UP,be=>{if(E.b.stop(be,!0),Ss.h){if(new hs.a(be).rightButton)return;this.onClick(be)}setTimeout(()=>{this.onClick(be)},0)})),this._register(Object(E.i)(this.element,E.c.CONTEXT_MENU,be=>{E.b.stop(be,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(s){super.render(s),this.element&&(this.container=s,this.item=Object(E.p)(this.element,Object(E.a)("a.action-menu-item")),this._action.id===vr.c.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(E.p)(this.item,Object(E.a)("span.menu-item-check"+xa.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(E.p)(this.item,Object(E.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(E.p)(this.item,Object(E.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(s,v){this.item&&(this.item.setAttribute("aria-posinset",""+s),this.item.setAttribute("aria-setsize",""+v))}updateLabel(){if(this.label&&this.options.label){Object(E.s)(this.label);let s=Object(yr.h)(this.getAction().label);if(s){let v=function(be){let Ne=us,De=Ne.exec(be);if(!De)return be;let je=!De[1];return be.replace(Ne,je?"$2$3":"").trim()}(s);this.options.enableMnemonics||(s=v),this.label.setAttribute("aria-label",v.replace(/&&/g,"&"));let M=us.exec(s);if(M){s=ht.u(s),Ca.lastIndex=0;let be=Ca.exec(s);for(;be&&be[1];)be=Ca.exec(s);let Ne=De=>De.replace(/&&/g,"&");be?this.label.append(ht.K(Ne(s.substr(0,be.index))," "),Object(E.a)("u",{"aria-hidden":"true"},be[3]),ht.Q(Ne(s.substr(be.index+be[0].length))," ")):this.label.innerText=Ne(s).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(M[1]?M[1]:M[3]).toLocaleLowerCase())}else this.label.innerText=s.replace(/&&/g,"&").trim()}}}updateTooltip(){let s=null;this.getAction().tooltip?s=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(s=this.getAction().label,this.options.keybinding&&(s=pn.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",s,this.options.keybinding))),s&&this.item&&(this.item.title=s)}updateClass(){this.cssClass&&this.item&&Object(E.R)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(E.e)(this.label,"icon"),this.cssClass&&Object(E.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(E.Q)(this.label,"icon")}updateEnabled(){this.getAction().enabled?(this.element&&Object(E.Q)(this.element,"disabled"),this.item&&(Object(E.Q)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(E.e)(this.element,"disabled"),this.item&&(Object(E.e)(this.item,"disabled"),Object(E.T)(this.item)))}updateChecked(){this.item&&(this.getAction().checked?(Object(E.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(E.Q)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;let s=this.element&&Object(E.I)(this.element,"focused"),v=s&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,M=s&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,be=s&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=v?v.toString():"",this.item.style.backgroundColor=M?M.toString():""),this.check&&(this.check.style.color=v?v.toString():""),this.container&&(this.container.style.border=be)}style(s){this.menuStyle=s,this.applyStyle()}}class Es extends Vs{constructor(s,v,M,be){super(s,s,be),this.submenuActions=v,this.parentData=M,this.submenuOptions=be,this.mysubmenu=null,this.submenuDisposables=this._register(new Y.b),this.mouseOver=!1,this.expandDirection=be&&be.expandDirection!==void 0?be.expandDirection:Ir.Right,this.showScheduler=new xe.d(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new xe.d(()=>{this.element&&!Object(E.L)(Object(E.x)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(s){super.render(s),this.element&&(this.item&&(Object(E.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(E.p)(this.item,Object(E.a)("span.submenu-indicator"+ks.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(E.i)(this.element,E.c.KEY_UP,v=>{let M=new Hi.a(v);(M.equals(17)||M.equals(3))&&(E.b.stop(v,!0),this.createSubmenu(!0))})),this._register(Object(E.i)(this.element,E.c.KEY_DOWN,v=>{let M=new Hi.a(v);Object(E.x)()===this.item&&(M.equals(17)||M.equals(3))&&E.b.stop(v,!0)})),this._register(Object(E.i)(this.element,E.c.MOUSE_OVER,v=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(E.i)(this.element,E.c.MOUSE_LEAVE,v=>{this.mouseOver=!1})),this._register(Object(E.i)(this.element,E.c.FOCUS_OUT,v=>{this.element&&!Object(E.L)(Object(E.x)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}onClick(s){E.b.stop(s,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(s){if(this.parentData.submenu&&(s||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(v){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(s,v,M,be){let Ne={top:0,left:0};return Ne.left=Ui(s.width,v.width,{position:be===Ir.Right?0:1,offset:M.left,size:M.width}),Ne.left>=M.left&&Ne.left<M.left+M.width&&(M.left+10+v.width<=s.width&&(Ne.left=M.left+10),M.top+=10,M.height=0),Ne.top=Ui(s.height,v.height,{position:0,offset:M.top,size:0}),Ne.top+v.height===M.top&&Ne.top+M.height+v.height<=s.height&&(Ne.top+=M.height),Ne}createSubmenu(s=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(E.p)(this.element,Object(E.a)("div.monaco-submenu")),Object(E.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");let v=getComputedStyle(this.parentData.parent.domNode),M=parseFloat(v.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new $r(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);let be=this.element.getBoundingClientRect(),Ne={top:be.top-M,left:be.left,height:be.height+2*M,width:be.width},De=this.submenuContainer.getBoundingClientRect(),{top:je,left:mt}=this.calculateSubmenuMenuLayout({height:window.innerHeight,width:window.innerWidth},De,Ne,this.expandDirection);this.submenuContainer.style.left=mt+"px",this.submenuContainer.style.top=je+"px",this.submenuDisposables.add(Object(E.i)(this.submenuContainer,E.c.KEY_UP,It=>{new Hi.a(It).equals(15)&&(E.b.stop(It,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(E.i)(this.submenuContainer,E.c.KEY_DOWN,It=>{new Hi.a(It).equals(15)&&E.b.stop(It,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(s),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(s){var v;this.item&&((v=this.item)===null||v===void 0||v.setAttribute("aria-expanded",s))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;let s=this.element&&Object(E.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=s?""+s:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class ps extends qr.a{style(s){this.label&&(this.label.style.borderBottomColor=s.separatorColor?""+s.separatorColor:"")}}let Us=` +`;var yo=r(17),qo=r(123),Ss=r(34),hs=r(69);let us=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Ca=/(&)?(&)([^\s&])/g,xa=Object(yo.e)("menu-selection",yo.a.check),ks=Object(yo.e)("menu-submenu",yo.a.chevronRight);var Io;(function(me){me[me.Right=0]="Right",me[me.Left=1]="Left"})(Io||(Io={}));class $o extends ds.a{constructor(s,v,M={}){Object(E.e)(s,"monaco-menu-container"),s.setAttribute("role","presentation");let be=document.createElement("div");Object(E.e)(be,"monaco-menu"),be.setAttribute("role","presentation"),super(be,{orientation:2,actionViewItemProvider:je=>this.doGetActionViewItem(je,M,Ne),context:M.context,actionRunner:M.actionRunner,ariaLabel:M.ariaLabel,triggerKeys:{keys:[3,...te.f||te.d?[10]:[]],keyDown:!0}}),this.menuElement=be,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Y.b),this.initializeStyleSheet(s),Object(E.i)(be,E.c.KEY_DOWN,je=>{new Hi.a(je).equals(2)&&je.preventDefault()}),M.enableMnemonics&&this.menuDisposables.add(Object(E.i)(be,E.c.KEY_DOWN,je=>{let mt=je.key.toLocaleLowerCase();if(this.mnemonics.has(mt)){E.b.stop(je,!0);let It=this.mnemonics.get(mt);if(It.length===1&&(It[0]instanceof Es&&It[0].container&&this.focusItemByElement(It[0].container),It[0].onClick(je)),It.length>1){let Qt=It.shift();Qt&&Qt.container&&(this.focusItemByElement(Qt.container),It.push(Qt)),this.mnemonics.set(mt,It)}}})),te.d&&this._register(Object(E.i)(be,E.c.KEY_DOWN,je=>{let mt=new Hi.a(je);mt.equals(14)||mt.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),E.b.stop(je,!0)):(mt.equals(13)||mt.equals(12))&&(this.focusedItem=0,this.focusPrevious(),E.b.stop(je,!0))})),this._register(Object(E.i)(this.domNode,E.c.MOUSE_OUT,je=>{let mt=je.relatedTarget;Object(E.L)(mt,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),je.stopPropagation())})),this._register(Object(E.i)(this.actionsList,E.c.MOUSE_OVER,je=>{let mt=je.target;if(mt&&Object(E.L)(mt,this.actionsList)&&mt!==this.actionsList){for(;mt.parentElement!==this.actionsList&&mt.parentElement!==null;)mt=mt.parentElement;if(Object(E.I)(mt,"action-item")){let It=this.focusedItem;this.setFocusedItem(mt),It!==this.focusedItem&&this.updateFocus()}}}));let Ne={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new ra.a(be,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let Oe=this.scrollableElement.getDomNode();Oe.style.position="",this._register(Object(E.i)(Oe,E.c.MOUSE_UP,je=>{je.preventDefault()})),be.style.maxHeight=Math.max(10,window.innerHeight-s.getBoundingClientRect().top-35)+"px",v=v.filter(je=>{var mt;return!((mt=M.submenuIds)===null||mt===void 0?void 0:mt.has(je.id))||(console.warn("Found submenu cycle: "+je.id),!1)}),this.push(v,{icon:!0,label:!0,isMenu:!0}),s.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(je=>!(je instanceof ps)).forEach((je,mt,It)=>{je.updatePositionInSet(mt+1,It.length)})}initializeStyleSheet(s){Object(E.O)(s)?(this.styleSheet=Object(E.v)(s),this.styleSheet.innerHTML=Us):($o.globalStyleSheet||($o.globalStyleSheet=Object(E.v)(),$o.globalStyleSheet.innerHTML=Us),this.styleSheet=$o.globalStyleSheet)}style(s){let v=this.getContainer(),M=s.foregroundColor?""+s.foregroundColor:"",be=s.backgroundColor?""+s.backgroundColor:"",Ne=s.borderColor?"1px solid "+s.borderColor:"",Oe=s.shadowColor?"0 2px 4px "+s.shadowColor:"";v.style.border=Ne,this.domNode.style.color=M,this.domNode.style.backgroundColor=be,v.style.boxShadow=Oe,this.viewItems&&this.viewItems.forEach(je=>{(je instanceof Vs||je instanceof ps)&&je.style(s)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(s){let v=this.focusedItem;this.setFocusedItem(s),v!==this.focusedItem&&this.updateFocus()}setFocusedItem(s){for(let v=0;v<this.actionsList.children.length;v++)if(s===this.actionsList.children[v]){this.focusedItem=v;break}}updateFocus(s){super.updateFocus(s,!0),this.focusedItem!==void 0&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(s,v,M){if(s instanceof vo.c)return new ps(v.context,s,{icon:!0});if(s instanceof vo.d){let be=new Es(s,s.actions,M,Object.assign(Object.assign({},v),{submenuIds:new Set([...v.submenuIds||[],s.id])}));if(v.enableMnemonics){let Ne=be.getMnemonic();if(Ne&&be.isEnabled()){let Oe=[];this.mnemonics.has(Ne)&&(Oe=this.mnemonics.get(Ne)),Oe.push(be),this.mnemonics.set(Ne,Oe)}}return be}{let be={enableMnemonics:v.enableMnemonics,useEventAsContext:v.useEventAsContext};if(v.getKeyBinding){let Oe=v.getKeyBinding(s);if(Oe){let je=Oe.getLabel();je&&(be.keybinding=je)}}let Ne=new Vs(v.context,s,be);if(v.enableMnemonics){let Oe=Ne.getMnemonic();if(Oe&&Ne.isEnabled()){let je=[];this.mnemonics.has(Oe)&&(je=this.mnemonics.get(Oe)),je.push(Ne),this.mnemonics.set(Oe,je)}}return Ne}}}class Vs extends qo.b{constructor(s,v,M={}){if(M.isMenu=!0,super(v,v,M),this.options=M,this.options.icon=M.icon!==void 0&&M.icon,this.options.label=M.label===void 0||M.label,this.cssClass="",this.options.label&&M.enableMnemonics){let be=this.getAction().label;if(be){let Ne=us.exec(be);Ne&&(this.mnemonic=(Ne[1]?Ne[1]:Ne[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new xe.d(()=>{this.element&&(this._register(Object(E.i)(this.element,E.c.MOUSE_UP,be=>{if(E.b.stop(be,!0),Ss.h){if(new hs.a(be).rightButton)return;this.onClick(be)}setTimeout(()=>{this.onClick(be)},0)})),this._register(Object(E.i)(this.element,E.c.CONTEXT_MENU,be=>{E.b.stop(be,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(s){super.render(s),this.element&&(this.container=s,this.item=Object(E.p)(this.element,Object(E.a)("a.action-menu-item")),this._action.id===vo.c.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(E.p)(this.item,Object(E.a)("span.menu-item-check"+xa.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(E.p)(this.item,Object(E.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(E.p)(this.item,Object(E.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(s,v){this.item&&(this.item.setAttribute("aria-posinset",""+s),this.item.setAttribute("aria-setsize",""+v))}updateLabel(){if(this.label&&this.options.label){Object(E.s)(this.label);let s=Object(yo.h)(this.getAction().label);if(s){let v=function(be){let Ne=us,Oe=Ne.exec(be);if(!Oe)return be;let je=!Oe[1];return be.replace(Ne,je?"$2$3":"").trim()}(s);this.options.enableMnemonics||(s=v),this.label.setAttribute("aria-label",v.replace(/&&/g,"&"));let M=us.exec(s);if(M){s=ht.u(s),Ca.lastIndex=0;let be=Ca.exec(s);for(;be&&be[1];)be=Ca.exec(s);let Ne=Oe=>Oe.replace(/&&/g,"&");be?this.label.append(ht.K(Ne(s.substr(0,be.index))," "),Object(E.a)("u",{"aria-hidden":"true"},be[3]),ht.Q(Ne(s.substr(be.index+be[0].length))," ")):this.label.innerText=Ne(s).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(M[1]?M[1]:M[3]).toLocaleLowerCase())}else this.label.innerText=s.replace(/&&/g,"&").trim()}}}updateTooltip(){let s=null;this.getAction().tooltip?s=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(s=this.getAction().label,this.options.keybinding&&(s=pn.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",s,this.options.keybinding))),s&&this.item&&(this.item.title=s)}updateClass(){this.cssClass&&this.item&&Object(E.R)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(E.e)(this.label,"icon"),this.cssClass&&Object(E.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(E.Q)(this.label,"icon")}updateEnabled(){this.getAction().enabled?(this.element&&Object(E.Q)(this.element,"disabled"),this.item&&(Object(E.Q)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(E.e)(this.element,"disabled"),this.item&&(Object(E.e)(this.item,"disabled"),Object(E.T)(this.item)))}updateChecked(){this.item&&(this.getAction().checked?(Object(E.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(E.Q)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;let s=this.element&&Object(E.I)(this.element,"focused"),v=s&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,M=s&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,be=s&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=v?v.toString():"",this.item.style.backgroundColor=M?M.toString():""),this.check&&(this.check.style.color=v?v.toString():""),this.container&&(this.container.style.border=be)}style(s){this.menuStyle=s,this.applyStyle()}}class Es extends Vs{constructor(s,v,M,be){super(s,s,be),this.submenuActions=v,this.parentData=M,this.submenuOptions=be,this.mysubmenu=null,this.submenuDisposables=this._register(new Y.b),this.mouseOver=!1,this.expandDirection=be&&be.expandDirection!==void 0?be.expandDirection:Io.Right,this.showScheduler=new xe.d(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new xe.d(()=>{this.element&&!Object(E.L)(Object(E.x)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(s){super.render(s),this.element&&(this.item&&(Object(E.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(E.p)(this.item,Object(E.a)("span.submenu-indicator"+ks.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(E.i)(this.element,E.c.KEY_UP,v=>{let M=new Hi.a(v);(M.equals(17)||M.equals(3))&&(E.b.stop(v,!0),this.createSubmenu(!0))})),this._register(Object(E.i)(this.element,E.c.KEY_DOWN,v=>{let M=new Hi.a(v);Object(E.x)()===this.item&&(M.equals(17)||M.equals(3))&&E.b.stop(v,!0)})),this._register(Object(E.i)(this.element,E.c.MOUSE_OVER,v=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(E.i)(this.element,E.c.MOUSE_LEAVE,v=>{this.mouseOver=!1})),this._register(Object(E.i)(this.element,E.c.FOCUS_OUT,v=>{this.element&&!Object(E.L)(Object(E.x)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}onClick(s){E.b.stop(s,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(s){if(this.parentData.submenu&&(s||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(v){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(s,v,M,be){let Ne={top:0,left:0};return Ne.left=Ui(s.width,v.width,{position:be===Io.Right?0:1,offset:M.left,size:M.width}),Ne.left>=M.left&&Ne.left<M.left+M.width&&(M.left+10+v.width<=s.width&&(Ne.left=M.left+10),M.top+=10,M.height=0),Ne.top=Ui(s.height,v.height,{position:0,offset:M.top,size:0}),Ne.top+v.height===M.top&&Ne.top+M.height+v.height<=s.height&&(Ne.top+=M.height),Ne}createSubmenu(s=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(E.p)(this.element,Object(E.a)("div.monaco-submenu")),Object(E.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");let v=getComputedStyle(this.parentData.parent.domNode),M=parseFloat(v.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new $o(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);let be=this.element.getBoundingClientRect(),Ne={top:be.top-M,left:be.left,height:be.height+2*M,width:be.width},Oe=this.submenuContainer.getBoundingClientRect(),{top:je,left:mt}=this.calculateSubmenuMenuLayout({height:window.innerHeight,width:window.innerWidth},Oe,Ne,this.expandDirection);this.submenuContainer.style.left=mt+"px",this.submenuContainer.style.top=je+"px",this.submenuDisposables.add(Object(E.i)(this.submenuContainer,E.c.KEY_UP,It=>{new Hi.a(It).equals(15)&&(E.b.stop(It,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(E.i)(this.submenuContainer,E.c.KEY_DOWN,It=>{new Hi.a(It).equals(15)&&E.b.stop(It,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(s),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(s){var v;this.item&&((v=this.item)===null||v===void 0||v.setAttribute("aria-expanded",s))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;let s=this.element&&Object(E.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=s?""+s:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class ps extends qo.a{style(s){this.label&&(this.label.style.borderBottomColor=s.separatorColor?""+s.separatorColor:"")}}let Us=` .monaco-menu { font-size: 13px; @@ -1019,16 +1019,16 @@ ${Object(zn.b)(ks)} :host-context(.hc-black) .monaco-scrollable-element .shadow.top.left { box-shadow: none; } -`;var Kr=o(93),os=o(44);class Hs{constructor(s,v,M,be,Ne){this.contextViewService=s,this.telemetryService=v,this.notificationService=M,this.keybindingService=be,this.themeService=Ne,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(s){this.options=s}showContextMenu(s){let v=s.getActions();if(!v.length)return;let M;this.focusToReturn=document.activeElement;let be=Object(E.M)(s.domForShadowRoot)?s.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>s.getAnchor(),canRelayout:!1,anchorAlignment:s.anchorAlignment,render:Ne=>{let De=s.getMenuClassName?s.getMenuClassName():"";De&&(Ne.className+=" "+De),this.options.blockMouse&&(this.block=Ne.appendChild(Object(E.a)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(os.a)(this.block,E.c.MOUSE_DOWN)(It=>It.stopPropagation()));let je=new Y.b,mt=s.actionRunner||new vr.b;return mt.onDidBeforeRun(this.onActionRun,this,je),mt.onDidRun(this.onDidActionRun,this,je),M=new $r(Ne,v,{actionViewItemProvider:s.getActionViewItem,context:s.getActionsContext?s.getActionsContext():null,actionRunner:mt,getKeyBinding:s.getKeyBinding?s.getKeyBinding:It=>this.keybindingService.lookupKeybinding(It.id)}),je.add(Object(Kr.c)(M,this.themeService)),M.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,je),M.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,je),Object(os.a)(window,E.c.BLUR)(()=>{this.contextViewService.hideContextView(!0)},null,je),Object(os.a)(window,E.c.MOUSE_DOWN)(It=>{if(It.defaultPrevented)return;let Qt=new hs.a(It),Oi=Qt.target;if(!Qt.rightButton){for(;Oi;){if(Oi===Ne)return;Oi=Oi.parentElement}this.contextViewService.hideContextView(!0)}},null,je),Object(Y.e)(je,M)},focus:()=>{M&&M.focus(!!s.autoSelectFirstItem)},onHide:Ne=>{s.onHide&&s.onHide(!!Ne),this.block&&(Object(E.S)(this.block),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},be,!!be)}onActionRun(s){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:s.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(s){s.error&&this.notificationService&&this.notificationService.error(s.error)}}var ms=o(120),gs=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Or=function(me,s){return function(v,M){s(v,M,me)}};let Go=class extends Y.a{constructor(me,s,v,M,be){super(),this._onDidContextMenu=this._register(new yi.a),this.onDidContextMenu=this._onDidContextMenu.event,this.contextMenuHandler=new Hs(v,me,s,M,be)}configure(me){this.contextMenuHandler.configure(me)}showContextMenu(me){this.contextMenuHandler.showContextMenu(me),this._onDidContextMenu.fire()}};Go=gs([Or(0,ms.a),Or(1,Mt.a),Or(2,Te.b),Or(3,ve.a),Or(4,Re.c)],Go);let rr=Object(Ee.c)("layoutService");var Sa=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},qs=function(me,s){return function(v,M){s(v,M,me)}};let Dr=class extends Y.a{constructor(me){super(),this.layoutService=me,this.currentViewDisposable=Y.a.None,this.container=me.container,this.contextView=this._register(new or(this.container,1)),this.layout(),this._register(me.onLayout(()=>this.layout()))}setContainer(me,s){this.contextView.setContainer(me,s||1)}showContextView(me,s,v){s?s!==this.container&&(this.container=s,this.setContainer(s,v?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(me);let M=Object(Y.h)(()=>{this.currentViewDisposable===M&&this.hideContextView()});return this.currentViewDisposable=M,M}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(me){this.contextView.hide(me)}};Dr=Sa([qs(0,rr)],Dr);var Ar=o(171);class $s{constructor(s){this.incoming=new Map,this.outgoing=new Map,this.data=s}}class ka{constructor(s){this._hashFn=s,this._nodes=new Map}roots(){let s=[];for(let v of this._nodes.values())v.outgoing.size===0&&s.push(v);return s}insertEdge(s,v){let M=this.lookupOrInsertNode(s),be=this.lookupOrInsertNode(v);M.outgoing.set(this._hashFn(v),be),be.incoming.set(this._hashFn(s),M)}removeNode(s){let v=this._hashFn(s);this._nodes.delete(v);for(let M of this._nodes.values())M.outgoing.delete(v),M.incoming.delete(v)}lookupOrInsertNode(s){let v=this._hashFn(s),M=this._nodes.get(v);return M||(M=new $s(s),this._nodes.set(v,M)),M}isEmpty(){return this._nodes.size===0}toString(){let s=[];for(let[v,M]of this._nodes)s.push(`${v}, (incoming)[${[...M.incoming.keys()].join(", ")}], (outgoing)[${[...M.outgoing.keys()].join(",")}]`);return s.join(` -`)}}var hr=o(163),Ks=o(149);class Ts extends Error{constructor(s){super("cyclic dependency between services"),this.message=s.toString()}}class Qo{constructor(s=new Ks.a,v=!1,M){this._services=s,this._strict=v,this._parent=M,this._services.set(Ee.a,this)}createChild(s){return new Qo(s,this._strict,this)}invokeFunction(s,...v){let M=sr.traceInvocation(s),be=!1;try{return s({get:(Ne,De)=>{if(be)throw Object(z.c)("service accessor is only valid during the invocation of its target method");let je=this._getOrCreateServiceInstance(Ne,M);if(!je&&De!==Ee.d)throw new Error(`[invokeFunction] unknown service '${Ne}'`);return je}},...v)}finally{be=!0,M.stop()}}createInstance(s,...v){let M,be;return s instanceof hr.a?(M=sr.traceCreation(s.ctor),be=this._createInstance(s.ctor,s.staticArguments.concat(v),M)):(M=sr.traceCreation(s),be=this._createInstance(s,v,M)),M.stop(),be}_createInstance(s,v=[],M){let be=Ee.b.getServiceDependencies(s).sort((je,mt)=>je.index-mt.index),Ne=[];for(let je of be){let mt=this._getOrCreateServiceInstance(je.id,M);if(!mt&&this._strict&&!je.optional)throw new Error(`[createInstance] ${s.name} depends on UNKNOWN service ${je.id}.`);Ne.push(mt)}let De=be.length>0?be[0].index:v.length;if(v.length!==De){console.warn(`[createInstance] First service dependency of ${s.name} at position ${De+1} conflicts with ${v.length} static arguments`);let je=De-v.length;v=je>0?v.concat(new Array(je)):v.slice(0,De)}return new s(...[...v,...Ne])}_setServiceInstance(s,v){if(this._services.get(s)instanceof hr.a)this._services.set(s,v);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(s,v)}}_getServiceInstanceOrDescriptor(s){let v=this._services.get(s);return!v&&this._parent?this._parent._getServiceInstanceOrDescriptor(s):v}_getOrCreateServiceInstance(s,v){let M=this._getServiceInstanceOrDescriptor(s);return M instanceof hr.a?this._createAndCacheServiceInstance(s,M,v.branch(s,!0)):(v.branch(s,!1),M)}_createAndCacheServiceInstance(s,v,M){let be=new ka(je=>je.id.toString()),Ne=0,De=[{id:s,desc:v,_trace:M}];for(;De.length;){let je=De.pop();if(be.lookupOrInsertNode(je),Ne++>1e3)throw new Ts(be);for(let mt of Ee.b.getServiceDependencies(je.desc.ctor)){let It=this._getServiceInstanceOrDescriptor(mt.id);if(It||mt.optional||console.warn(`[createInstance] ${s} depends on ${mt.id} which is NOT registered.`),It instanceof hr.a){let Qt={id:mt.id,desc:It,_trace:je._trace.branch(mt.id,!0)};be.insertEdge(je,Qt),De.push(Qt)}}}for(;;){let je=be.roots();if(je.length===0){if(!be.isEmpty())throw new Ts(be);break}for(let{data:mt}of je){let It=this._createServiceInstanceWithOwner(mt.id,mt.desc.ctor,mt.desc.staticArguments,mt.desc.supportsDelayedInstantiation,mt._trace);this._setServiceInstance(mt.id,It),be.removeNode(mt)}}return this._getServiceInstanceOrDescriptor(s)}_createServiceInstanceWithOwner(s,v,M=[],be,Ne){if(this._services.get(s)instanceof hr.a)return this._createServiceInstance(v,M,be,Ne);if(this._parent)return this._parent._createServiceInstanceWithOwner(s,v,M,be,Ne);throw new Error("illegalState - creating UNKNOWN service instance "+v.name)}_createServiceInstance(s,v=[],M,be){if(M){let Ne=new xe.b(()=>this._createInstance(s,v,be));return new Proxy(Object.create(null),{get(De,je){if(je in De)return De[je];let mt=Ne.value,It=mt[je];return typeof It!="function"||(It=It.bind(mt),De[je]=It),It},set:(De,je,mt)=>(Ne.value[je]=mt,!0)})}return this._createInstance(s,v,be)}}class sr{constructor(s,v){this.type=s,this.name=v,this._start=Date.now(),this._dep=[]}static traceInvocation(s){return sr._None}static traceCreation(s){return sr._None}branch(s,v){let M=new sr(2,s.toString());return this._dep.push([s,v,M]),M}stop(){let s=Date.now()-this._start;sr._totals+=s;let v=!1,M=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,""+function be(Ne,De){let je=[],mt=new Array(Ne+1).join(" ");for(let[It,Qt,Oi]of De._dep)if(Qt&&Oi){v=!0,je.push(`${mt}CREATES -> ${It}`);let en=be(Ne+1,Oi);en&&je.push(en)}else je.push(`${mt}uses -> ${It}`);return je.join(` -`)}(1,this),`DONE, took ${s.toFixed(2)}ms (grand total ${sr._totals.toFixed(2)}ms)`];(s>2||v)&&console.log(M.join(` -`))}}sr._None=new class extends sr{constructor(){super(-1,null)}stop(){}branch(){return this}},sr._totals=0;var ra=o(159),Ls=o(136),qo=o(63),Ns=o(37);class ar{constructor(){this._byResource=new bn.b,this._byOwner=new Map}set(s,v,M){let be=this._byResource.get(s);be||(be=new Map,this._byResource.set(s,be)),be.set(v,M);let Ne=this._byOwner.get(v);Ne||(Ne=new bn.b,this._byOwner.set(v,Ne)),Ne.set(s,M)}get(s,v){let M=this._byResource.get(s);return M==null?void 0:M.get(v)}delete(s,v){let M=!1,be=!1,Ne=this._byResource.get(s);Ne&&(M=Ne.delete(v));let De=this._byOwner.get(v);if(De&&(be=De.delete(s)),M!==be)throw new Error("illegal state");return M&&be}values(s){var v,M,be,Ne;return typeof s=="string"?(M=(v=this._byOwner.get(s))===null||v===void 0?void 0:v.values())!==null&&M!==void 0?M:Ns.a.empty():C.a.isUri(s)?(Ne=(be=this._byResource.get(s))===null||be===void 0?void 0:be.values())!==null&&Ne!==void 0?Ne:Ns.a.empty():Ns.a.map(Ns.a.concat(...this._byOwner.values()),De=>De[1])}}class Zt{constructor(s){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new bn.b,this._service=s,this._subscription=s.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(s){for(let v of s){let M=this._data.get(v);M&&this._substract(M);let be=this._resourceStats(v);this._add(be),this._data.set(v,be)}}_resourceStats(s){let v={errors:0,warnings:0,infos:0,unknowns:0};if(s.scheme===Q.b.inMemory||s.scheme===Q.b.walkThrough||s.scheme===Q.b.walkThroughSnippet)return v;for(let{severity:M}of this._service.read({resource:s}))M===qo.c.Error?v.errors+=1:M===qo.c.Warning?v.warnings+=1:M===qo.c.Info?v.infos+=1:v.unknowns+=1;return v}_substract(s){this.errors-=s.errors,this.warnings-=s.warnings,this.infos-=s.infos,this.unknowns-=s.unknowns}_add(s){this.errors+=s.errors,this.warnings+=s.warnings,this.infos+=s.infos,this.unknowns+=s.unknowns}}class i{constructor(){this._onMarkerChanged=new yi.a,this.onMarkerChanged=yi.b.debounce(this._onMarkerChanged.event,i._debouncer,0),this._data=new ar,this._stats=new Zt(this)}dispose(){this._stats.dispose()}remove(s,v){for(let M of v||[])this.changeOne(s,M,[])}changeOne(s,v,M){if(Object(fe.n)(M))this._data.delete(v,s)&&this._onMarkerChanged.fire([v]);else{let be=[];for(let Ne of M){let De=i._toMarker(s,v,Ne);De&&be.push(De)}this._data.set(v,s,be),this._onMarkerChanged.fire([v])}}static _toMarker(s,v,M){let{code:be,severity:Ne,message:De,source:je,startLineNumber:mt,startColumn:It,endLineNumber:Qt,endColumn:Oi,relatedInformation:en,tags:tn}=M;if(De)return mt=mt>0?mt:1,It=It>0?It:1,Qt=Qt>=mt?Qt:mt,Oi=Oi>0?Oi:It,{resource:v,owner:s,code:be,severity:Ne,message:De,source:je,startLineNumber:mt,startColumn:It,endLineNumber:Qt,endColumn:Oi,relatedInformation:en,tags:tn}}read(s=Object.create(null)){let{owner:v,resource:M,severities:be,take:Ne}=s;if((!Ne||Ne<0)&&(Ne=-1),v&&M){let De=this._data.get(M,v);if(De){let je=[];for(let mt of De)if(i._accept(mt,be)){let It=je.push(mt);if(Ne>0&&It===Ne)break}return je}return[]}if(v||M){let De=this._data.values(M??v),je=[];for(let mt of De)for(let It of mt)if(i._accept(It,be)){let Qt=je.push(It);if(Ne>0&&Qt===Ne)return je}return je}{let De=[];for(let je of this._data.values())for(let mt of je)if(i._accept(mt,be)){let It=De.push(mt);if(Ne>0&&It===Ne)return De}return De}}static _accept(s,v){return v===void 0||(v&s.severity)===s.severity}static _debouncer(s,v){s||(i._dedupeMap=new bn.b,s=[]);for(let M of v)i._dedupeMap.has(M)||(i._dedupeMap.set(M,!0),s.push(M));return s}}var a=o(97),_=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},R=function(me,s){return function(v,M){s(v,M,me)}};let K=class{constructor(me){this._commandService=me}createMenu(me,s){return new we(me,this._commandService,s,this)}};K=_([R(0,S.b)],K);let we=class Lc{constructor(s,v,M,be){this._id=s,this._commandService=v,this._contextKeyService=M,this._menuService=be,this._onDidChange=new yi.a,this._dispoables=new Y.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(yi.b.debounce(yi.b.filter(fi.d.onDidChangeMenu,Ne=>Ne.has(this._id)),()=>{},50)(this._build,this)),this._dispoables.add(yi.b.debounce(this._contextKeyService.onDidChangeContext,(Ne,De)=>Ne||De.affectsSome(this._contextKeys),50)(Ne=>Ne&&this._onDidChange.fire(void 0),this))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();let s=fi.d.getMenuItems(this._id),v;s.sort(Lc._compareMenuItems);for(let M of s){let be=M.group||"";if(v&&v[0]===be||(v=[be,[]],this._menuGroups.push(v)),v[1].push(M),Lc._fillInKbExprKeys(M.when,this._contextKeys),Object(fi.f)(M)&&M.command.precondition&&Lc._fillInKbExprKeys(M.command.precondition,this._contextKeys),Object(fi.f)(M)&&M.command.toggled){let Ne=M.command.toggled.condition||M.command.toggled;Lc._fillInKbExprKeys(Ne,this._contextKeys)}}this._onDidChange.fire(this)}get onDidChange(){return this._onDidChange.event}getActions(s){let v=[];for(let M of this._menuGroups){let[be,Ne]=M,De=[];for(let je of Ne)if(this._contextKeyService.contextMatchesRules(je.when)){let mt=Object(fi.f)(je)?new fi.c(je.command,je.alt,s,this._contextKeyService,this._commandService):new fi.e(je,this._menuService,this._contextKeyService,s);De.push(mt)}De.length>0&&v.push([be,De])}return v}static _fillInKbExprKeys(s,v){if(s)for(let M of s.keys())v.add(M)}static _compareMenuItems(s,v){let M=s.group,be=v.group;if(M!==be){if(!M)return 1;if(!be||M==="navigation")return-1;if(be==="navigation")return 1;let je=M.localeCompare(be);if(je!==0)return je}let Ne=s.order||0,De=v.order||0;return Ne<De?-1:Ne>De?1:Lc._compareTitles(Object(fi.f)(s)?s.command.title:s.title,Object(fi.f)(v)?v.command.title:v.title)}static _compareTitles(s,v){let M=typeof s=="string"?s:s.value,be=typeof v=="string"?v:v.value;return M.localeCompare(be)}};we=_([R(1,S.b),R(2,ui.b),R(3,fi.a)],we);var Pe=o(192),Ve=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Je=function(me,s){return function(v,M){s(v,M,me)}};function at(me){return me.toString()}class bt extends Y.a{constructor(s){super(),this.model=s,this._markersData=new Map,this._register(Object(Y.h)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(s,v){let M=[...this._markersData.keys()];this._markersData.clear();let be=this.model.deltaDecorations(M,v);for(let Ne=0;Ne<be.length;Ne++)this._markersData.set(be[Ne],s[Ne]);return M.length!==0||be.length!==0}getMarker(s){return this._markersData.get(s.id)}}let Bt=class extends Y.a{constructor(me,s){super(),this._markerService=s,this._onDidChangeMarker=this._register(new yi.a),this._markerDecorations=new Map,me.getModels().forEach(v=>this._onModelAdded(v)),this._register(me.onModelAdded(this._onModelAdded,this)),this._register(me.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(me=>me.dispose()),this._markerDecorations.clear()}getMarker(me,s){let v=this._markerDecorations.get(at(me.uri));return v&&v.getMarker(s)||null}_handleMarkerChange(me){me.forEach(s=>{let v=this._markerDecorations.get(at(s));v&&this._updateDecorations(v)})}_onModelAdded(me){let s=new bt(me);this._markerDecorations.set(at(me.uri),s),this._updateDecorations(s)}_onModelRemoved(me){let s=this._markerDecorations.get(at(me.uri));s&&(s.dispose(),this._markerDecorations.delete(at(me.uri))),me.uri.scheme!==Q.b.inMemory&&me.uri.scheme!==Q.b.internal&&me.uri.scheme!==Q.b.vscode||this._markerService&&this._markerService.read({resource:me.uri}).map(v=>v.owner).forEach(v=>this._markerService.remove(v,[me.uri]))}_updateDecorations(me){let s=this._markerService.read({resource:me.model.uri,take:500}),v=s.map(M=>({range:this._createDecorationRange(me.model,M),options:this._createDecorationOption(M)}));me.update(s,v)&&this._onDidChangeMarker.fire(me.model)}_createDecorationRange(me,s){let v=Ae.a.lift(s);if(s.severity!==qo.c.Hint||this._hasMarkerTag(s,1)||this._hasMarkerTag(s,2)||(v=v.setEndPosition(v.startLineNumber,v.startColumn+2)),v=me.validateRange(v),v.isEmpty()){let M=me.getWordAtPosition(v.getStartPosition());if(M)v=new Ae.a(v.startLineNumber,M.startColumn,v.endLineNumber,M.endColumn);else{let be=me.getLineLastNonWhitespaceColumn(v.startLineNumber)||me.getLineMaxColumn(v.startLineNumber);be===1||(v=v.endColumn>=be?new Ae.a(v.startLineNumber,be-1,v.endLineNumber,be):new Ae.a(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn+1))}}else if(s.endColumn===Number.MAX_VALUE&&s.startColumn===1&&v.startLineNumber===v.endLineNumber){let M=me.getLineFirstNonWhitespaceColumn(s.startLineNumber);M<v.endColumn&&(v=new Ae.a(v.startLineNumber,M,v.endLineNumber,v.endColumn),s.startColumn=M)}return v}_createDecorationOption(me){let s,v,M,be,Ne;switch(me.severity){case qo.c.Hint:s=this._hasMarkerTag(me,2)?void 0:this._hasMarkerTag(me,1)?"squiggly-unnecessary":"squiggly-hint",v=0;break;case qo.c.Warning:s="squiggly-warning",be=Object(Re.h)(Ko.t),v=20,M={color:Object(Re.h)(Cn.Tb),position:U.c.Inline};break;case qo.c.Info:s="squiggly-info",be=Object(Re.h)(Ko.r),v=10;break;case qo.c.Error:default:s="squiggly-error",be=Object(Re.h)(Ko.q),v=30,M={color:Object(Re.h)(Cn.Nb),position:U.c.Inline}}return me.tags&&(me.tags.indexOf(1)!==-1&&(Ne="squiggly-inline-unnecessary"),me.tags.indexOf(2)!==-1&&(Ne="squiggly-inline-deprecated")),{stickiness:1,className:s,showIfCollapsed:!0,overviewRuler:{color:be,position:U.d.Right},minimap:M,zIndex:v,inlineClassName:Ne}}_hasMarkerTag(me,s){return!!me.tags&&me.tags.indexOf(s)>=0}};Bt=Ve([Je(0,ct.a),Je(1,qo.b)],Bt);var Pt=o(115),ni=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Ci=function(me,s){return function(v,M){s(v,M,me)}};let Vi=class extends Y.a{constructor(me,s){super(),this._contextKeyService=me,this._configurationService=s,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new yi.a,this._accessibilityModeEnabledContext=We.a.bindTo(this._contextKeyService);let v=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(M=>{M.affectsConfiguration("editor.accessibilitySupport")&&(v(),this._onDidChangeScreenReaderOptimized.fire())})),v(),this.onDidChangeScreenReaderOptimized(()=>v())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let me=this._configurationService.getValue("editor.accessibilitySupport");return me==="on"||me==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};Vi=ni([Ci(0,ui.b),Ci(1,un.a)],Vi);var Mi=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};class zi{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(s,v){return Mi(this,void 0,void 0,function*(){if(v)return void this.mapTextToType.set(v,s);try{return yield navigator.clipboard.writeText(s)}catch(Ne){console.error(Ne)}let M=document.activeElement,be=document.body.appendChild(Object(E.a)("textarea",{"aria-hidden":!0}));be.style.height="1px",be.style.width="1px",be.style.position="absolute",be.value=s,be.focus(),be.select(),document.execCommand("copy"),M instanceof HTMLElement&&M.focus(),document.body.removeChild(be)})}readText(s){return Mi(this,void 0,void 0,function*(){if(s)return this.mapTextToType.get(s)||"";try{return yield navigator.clipboard.readText()}catch(v){return console.error(v),""}})}readFindText(){return Mi(this,void 0,void 0,function*(){return this.findText})}writeFindText(s){return Mi(this,void 0,void 0,function*(){this.findText=s})}}var Yi=o(150),Gi=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},wn=function(me,s){return function(v,M){s(v,M,me)}},nn=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};function Wn(me){return me.scheme===Q.b.file?me.fsPath:me.path}let An=0;class qn{constructor(s,v,M){this.id=++An,this.type=0,this.actual=s,this.label=s.label,this.resourceLabel=v,this.strResource=M,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.isValid=!0}setValid(s){this.isValid=s}toString(){return`[${this.id}] [${this.isValid?"VALID":"INVALID"}] ${this.actual}`}}class ro{constructor(s,v){this.resourceLabel=s,this.reason=v}}class Un{constructor(){this.elements=new Map}createMessage(){let s=[],v=[];for(let[,be]of this.elements)(be.reason===0?s:v).push(be.resourceLabel);let M=[];return s.length>0&&M.push(pn.a({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",s.join(", "))),v.length>0&&M.push(pn.a({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",v.join(", "))),M.join(` -`)}get size(){return this.elements.size}has(s){return this.elements.has(s)}set(s,v){this.elements.set(s,v)}delete(s){return this.elements.delete(s)}}class Lo{constructor(s,v,M){this.id=++An,this.type=1,this.actual=s,this.label=s.label,this.resourceLabels=v,this.strResources=M,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(s,v,M){this.removedResources||(this.removedResources=new Un),this.removedResources.has(v)||this.removedResources.set(v,new ro(s,M))}setValid(s,v,M){M?this.invalidatedResources&&(this.invalidatedResources.delete(v),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Un),this.invalidatedResources.has(v)||this.invalidatedResources.set(v,new ro(s,0)))}toString(){return`[${this.id}] [${this.invalidatedResources?"INVALID":"VALID"}] ${this.actual}`}}class Ao{constructor(s,v){this.resourceLabel=s,this.strResource=v,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let s of this._past)s.type===1&&s.removeResource(this.resourceLabel,this.strResource,0);for(let s of this._future)s.type===1&&s.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let s=[];s.push(`* ${this.strResource}:`);for(let v=0;v<this._past.length;v++)s.push(" * [UNDO] "+this._past[v]);for(let v=this._future.length-1;v>=0;v--)s.push(" * [REDO] "+this._future[v]);return s.join(` -`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(s,v){s.type===1?s.setValid(this.resourceLabel,this.strResource,v):s.setValid(v)}setElementsValidFlag(s,v){for(let M of this._past)v(M.actual)&&this._setElementValidFlag(M,s);for(let M of this._future)v(M.actual)&&this._setElementValidFlag(M,s)}pushElement(s){for(let v of this._future)v.type===1&&v.removeResource(this.resourceLabel,this.strResource,1);if(this._future=[],this._past.length>0){let v=this._past[this._past.length-1];v.type!==0||v.isValid||(this._past=[])}this._past.push(s),this.versionId++}createSnapshot(s){let v=[];for(let M=0,be=this._past.length;M<be;M++)v.push(this._past[M].id);for(let M=this._future.length-1;M>=0;M--)v.push(this._future[M].id);return new Yi.b(s,v)}restoreSnapshot(s){let v=s.elements.length,M=!0,be=0,Ne=-1;for(let je=0,mt=this._past.length;je<mt;je++,be++){let It=this._past[je];M&&(be>=v||It.id!==s.elements[be])&&(M=!1,Ne=0),M||It.type!==1||It.removeResource(this.resourceLabel,this.strResource,0)}let De=-1;for(let je=this._future.length-1;je>=0;je--,be++){let mt=this._future[je];M&&(be>=v||mt.id!==s.elements[be])&&(M=!1,De=je),M||mt.type!==1||mt.removeResource(this.resourceLabel,this.strResource,0)}Ne!==-1&&(this._past=this._past.slice(0,Ne)),De!==-1&&(this._future=this._future.slice(De+1)),this.versionId++}getElements(){let s=[],v=[];for(let M of this._past)s.push(M.actual);for(let M of this._future)v.push(M.actual);return{past:s,future:v}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(s,v){for(let M=this._past.length-1;M>=0;M--)if(this._past[M]===s){v.has(this.strResource)?this._past[M]=v.get(this.strResource):this._past.splice(M,1);break}this.versionId++}splitFutureWorkspaceElement(s,v){for(let M=this._future.length-1;M>=0;M--)if(this._future[M]===s){v.has(this.strResource)?this._future[M]=v.get(this.strResource):this._future.splice(M,1);break}this.versionId++}moveBackward(s){this._past.pop(),this._future.push(s),this.versionId++}moveForward(s){this._future.pop(),this._past.push(s),this.versionId++}}class Bo{constructor(s){this.editStacks=s,this._versionIds=[];for(let v=0,M=this.editStacks.length;v<M;v++)this._versionIds[v]=this.editStacks[v].versionId}isValid(){for(let s=0,v=this.editStacks.length;s<v;s++)if(this._versionIds[s]!==this.editStacks[s].versionId)return!1;return!0}}let jo=new Ao("","");jo.locked=!0;let $o=class{constructor(me,s){this._dialogService=me,this._notificationService=s,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(me){for(let s of this._uriComparisonKeyComputers)if(s[0]===me.scheme)return s[1].getComparisonKey(me);return me.toString()}_print(me){console.log("------------------------------------"),console.log(`AFTER ${me}: `);let s=[];for(let v of this._editStacks)s.push(v[1].toString());console.log(s.join(` -`))}pushElement(me){if(me.type===0){let s=Wn(me.resource),v=this.getUriComparisonKey(me.resource);this._pushElement(new qn(me,s,v))}else{let s=new Set,v=[],M=[];for(let be of me.resources){let Ne=Wn(be),De=this.getUriComparisonKey(be);s.has(De)||(s.add(De),v.push(Ne),M.push(De))}v.length===1?this._pushElement(new qn(me,v[0],M[0])):this._pushElement(new Lo(me,v,M))}}_pushElement(me){for(let s=0,v=me.strResources.length;s<v;s++){let M=me.resourceLabels[s],be=me.strResources[s],Ne;this._editStacks.has(be)?Ne=this._editStacks.get(be):(Ne=new Ao(M,be),this._editStacks.set(be,Ne)),Ne.pushElement(me)}}getLastElement(me){let s=this.getUriComparisonKey(me);if(this._editStacks.has(s)){let v=this._editStacks.get(s);if(v.hasFutureElements())return null;let M=v.getClosestPastElement();return M?M.actual:null}return null}_splitPastWorkspaceElement(me,s){let v=me.actual.split(),M=new Map;for(let be of v){let Ne=Wn(be.resource),De=this.getUriComparisonKey(be.resource),je=new qn(be,Ne,De);M.set(je.strResource,je)}for(let be of me.strResources)s&&s.has(be)||this._editStacks.get(be).splitPastWorkspaceElement(me,M)}_splitFutureWorkspaceElement(me,s){let v=me.actual.split(),M=new Map;for(let be of v){let Ne=Wn(be.resource),De=this.getUriComparisonKey(be.resource),je=new qn(be,Ne,De);M.set(je.strResource,je)}for(let be of me.strResources)s&&s.has(be)||this._editStacks.get(be).splitFutureWorkspaceElement(me,M)}removeElements(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);this._editStacks.has(s)&&(this._editStacks.get(s).dispose(),this._editStacks.delete(s))}setElementsValidFlag(me,s,v){let M=this.getUriComparisonKey(me);this._editStacks.has(M)&&this._editStacks.get(M).setElementsValidFlag(s,v)}createSnapshot(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).createSnapshot(me):new Yi.b(me,[])}restoreSnapshot(me){let s=this.getUriComparisonKey(me.resource);if(this._editStacks.has(s)){let v=this._editStacks.get(s);v.restoreSnapshot(me),v.hasPastElements()||v.hasFutureElements()||(v.dispose(),this._editStacks.delete(s))}}getElements(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).getElements():{past:[],future:[]}}canUndo(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).hasPastElements():!1}_onError(me,s){Object(z.e)(me);for(let v of s.strResources)this.removeElements(v);this._notificationService.error(me)}_acquireLocks(me){for(let s of me.editStacks)if(s.locked)throw new Error("Cannot acquire edit stack lock");for(let s of me.editStacks)s.locked=!0;return()=>{for(let s of me.editStacks)s.locked=!1}}_safeInvokeWithLocks(me,s,v,M=Y.a.None){let be=this._acquireLocks(v),Ne;try{Ne=s()}catch(De){return be(),M.dispose(),this._onError(De,me)}if(Ne)return Ne.then(()=>{be(),M.dispose()},De=>(be(),M.dispose(),this._onError(De,me)));be(),M.dispose()}_invokeWorkspacePrepare(me){return nn(this,void 0,void 0,function*(){if(me.actual.prepareUndoRedo===void 0)return Y.a.None;let s=me.actual.prepareUndoRedo();return s===void 0?Y.a.None:s})}_invokeResourcePrepare(me,s){if(me.actual.type!==1||me.actual.prepareUndoRedo===void 0)return void s(Y.a.None);let v=me.actual.prepareUndoRedo();if(v){if(!Object(Y.g)(v))return v.then(M=>{s(M)});s(v)}else s(Y.a.None)}_getAffectedEditStacks(me){let s=[];for(let v of me.strResources)s.push(this._editStacks.get(v)||jo);return new Bo(s)}_tryToSplitAndUndo(me,s,v,M){if(s.canSplit())return this._splitPastWorkspaceElement(s,v),this._notificationService.info(M),new Po(this.undo(me));for(let be of s.strResources)this.removeElements(be);return this._notificationService.info(M),new Po}_checkWorkspaceUndo(me,s,v,M){if(s.removedResources)return this._tryToSplitAndUndo(me,s,s.removedResources,pn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",s.label,s.removedResources.createMessage()));if(M&&s.invalidatedResources)return this._tryToSplitAndUndo(me,s,s.invalidatedResources,pn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",s.label,s.invalidatedResources.createMessage()));let be=[];for(let De of v.editStacks)De.getClosestPastElement()!==s&&be.push(De.resourceLabel);if(be.length>0)return this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",s.label,be.join(", ")));let Ne=[];for(let De of v.editStacks)De.locked&&Ne.push(De.resourceLabel);return Ne.length>0?this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",s.label,Ne.join(", "))):v.isValid()?null:this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",s.label))}_workspaceUndo(me,s){let v=this._getAffectedEditStacks(s),M=this._checkWorkspaceUndo(me,s,v,!1);return M?M.returnValue:this._confirmAndExecuteWorkspaceUndo(me,s,v)}_confirmAndExecuteWorkspaceUndo(me,s,v){return nn(this,void 0,void 0,function*(){if(s.canSplit()){let Ne=yield this._dialogService.show(Et.a.Info,pn.a("confirmWorkspace","Would you like to undo '{0}' across all files?",s.label),[pn.a({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",v.editStacks.length),pn.a("nok","Undo this File"),pn.a("cancel","Cancel")],{cancelId:2});if(Ne.choice===2)return;if(Ne.choice===1)return this._splitPastWorkspaceElement(s,null),this.undo(me);let De=this._checkWorkspaceUndo(me,s,v,!1);if(De)return De.returnValue}let M;try{M=yield this._invokeWorkspacePrepare(s)}catch(Ne){return this._onError(Ne,s)}let be=this._checkWorkspaceUndo(me,s,v,!0);if(be)return M.dispose(),be.returnValue;for(let Ne of v.editStacks)Ne.moveBackward(s);return this._safeInvokeWithLocks(s,()=>s.actual.undo(),v,M)})}_resourceUndo(me,s){if(s.isValid){if(!me.locked)return this._invokeResourcePrepare(s,v=>(me.moveBackward(s),this._safeInvokeWithLocks(s,()=>s.actual.undo(),new Bo([me]),v)));{let v=pn.a({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",s.label);this._notificationService.info(v)}}else me.flushAllElements()}undo(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);if(!this._editStacks.has(s))return;let v=this._editStacks.get(s),M=v.getClosestPastElement();if(M)try{return M.type===1?this._workspaceUndo(s,M):this._resourceUndo(v,M)}finally{}}canRedo(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).hasFutureElements():!1}_tryToSplitAndRedo(me,s,v,M){if(s.canSplit())return this._splitFutureWorkspaceElement(s,v),this._notificationService.info(M),new Po(this.redo(me));for(let be of s.strResources)this.removeElements(be);return this._notificationService.info(M),new Po}_checkWorkspaceRedo(me,s,v,M){if(s.removedResources)return this._tryToSplitAndRedo(me,s,s.removedResources,pn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",s.label,s.removedResources.createMessage()));if(M&&s.invalidatedResources)return this._tryToSplitAndRedo(me,s,s.invalidatedResources,pn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",s.label,s.invalidatedResources.createMessage()));let be=[];for(let De of v.editStacks)De.getClosestFutureElement()!==s&&be.push(De.resourceLabel);if(be.length>0)return this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",s.label,be.join(", ")));let Ne=[];for(let De of v.editStacks)De.locked&&Ne.push(De.resourceLabel);return Ne.length>0?this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",s.label,Ne.join(", "))):v.isValid()?null:this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",s.label))}_workspaceRedo(me,s){let v=this._getAffectedEditStacks(s),M=this._checkWorkspaceRedo(me,s,v,!1);return M?M.returnValue:this._executeWorkspaceRedo(me,s,v)}_executeWorkspaceRedo(me,s,v){return nn(this,void 0,void 0,function*(){let M;try{M=yield this._invokeWorkspacePrepare(s)}catch(Ne){return this._onError(Ne,s)}let be=this._checkWorkspaceRedo(me,s,v,!0);if(be)return M.dispose(),be.returnValue;for(let Ne of v.editStacks)Ne.moveForward(s);return this._safeInvokeWithLocks(s,()=>s.actual.redo(),v,M)})}_resourceRedo(me,s){if(s.isValid){if(!me.locked)return this._invokeResourcePrepare(s,v=>(me.moveForward(s),this._safeInvokeWithLocks(s,()=>s.actual.redo(),new Bo([me]),v)));{let v=pn.a({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",s.label);this._notificationService.info(v)}}else me.flushAllElements()}redo(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);if(!this._editStacks.has(s))return;let v=this._editStacks.get(s),M=v.getClosestFutureElement();if(M)try{return M.type===1?this._workspaceRedo(s,M):this._resourceRedo(v,M)}finally{}}};$o=Gi([wn(0,Ar.a),wn(1,Mt.a)],$o);class Po{constructor(s){this.returnValue=s}}Object(Pt.b)(Yi.a,$o),o(266);var Rr=o(4),Fo=o(25),Gr=(o(186),o(141)),Is=o(151);let Gs=new xe.b(()=>{let me=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:me,collatorIsNumeric:me.resolvedOptions().numeric}});function sa(me,s,v){let M=me.toLowerCase(),be=s.toLowerCase(),Ne=function(mt,It,Qt){let Oi=mt.toLowerCase(),en=It.toLowerCase(),tn=Oi.startsWith(Qt),kn=en.startsWith(Qt);if(tn!==kn)return tn?-1:1;if(tn&&kn){if(Oi.length<en.length)return-1;if(Oi.length>en.length)return 1}return 0}(me,s,v);if(Ne)return Ne;let De=M.endsWith(v);if(De!==be.endsWith(v))return De?-1:1;let je=function(mt,It,Qt=!1){let Oi=mt||"",en=It||"",tn=Gs.value.collator.compare(Oi,en);return Gs.value.collatorIsNumeric&&tn===0&&Oi!==en?Oi<en?-1:1:tn}(M,be);return je!==0?je:M.localeCompare(be)}var gl=o(172),Kl=o(156),Mr=o(98),Os=o(147);let Ua={},ur=new Os.a("quick-input-button-icon-");function Ea(me){if(!me)return;let s,v=me.dark.toString();return Ua[v]?s=Ua[v]:(s=ur.nextId(),E.u("."+s,"background-image: "+E.q(me.light||me.dark)),E.u(`.vs-dark .${s}, .hc-black .${s}`,"background-image: "+E.q(me.dark)),Ua[v]=s),s}o(271);let fs=E.a;class fl{constructor(s,v,M){this.os=v,this.options=M,this.domNode=E.p(s,fs(".monaco-keybinding")),this.didEverRender=!1,s.appendChild(this.domNode)}set(s,v){this.didEverRender&&this.keybinding===s&&fl.areSame(this.matches,v)||(this.keybinding=s,this.matches=v,this.render())}render(){if(E.s(this.domNode),this.keybinding){let[s,v]=this.keybinding.getParts();s&&this.renderPart(this.domNode,s,this.matches?this.matches.firstPart:null),v&&(E.p(this.domNode,fs("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,v,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}renderPart(s,v,M){let be=ne.modifierLabels[this.os];v.ctrlKey&&this.renderKey(s,be.ctrlKey,Boolean(M==null?void 0:M.ctrlKey),be.separator),v.shiftKey&&this.renderKey(s,be.shiftKey,Boolean(M==null?void 0:M.shiftKey),be.separator),v.altKey&&this.renderKey(s,be.altKey,Boolean(M==null?void 0:M.altKey),be.separator),v.metaKey&&this.renderKey(s,be.metaKey,Boolean(M==null?void 0:M.metaKey),be.separator);let Ne=v.keyLabel;Ne&&this.renderKey(s,Ne,Boolean(M==null?void 0:M.keyCode),"")}renderKey(s,v,M,be){E.p(s,fs("span.monaco-keybinding-key"+(M?".highlight":""),void 0,v)),be&&E.p(s,fs("span.monaco-keybinding-key-separator",void 0,be))}renderUnbound(s){E.p(s,fs("span.monaco-keybinding-key",void 0,Object(pn.a)("unbound","Unbound")))}static areSame(s,v){return s===v||!s&&!v||!!s&&!!v&&Object(Fn.e)(s.firstPart,v.firstPart)&&Object(Fn.e)(s.chordPart,v.chordPart)}}var Ta=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De};let Yr=E.a;class bl{constructor(s){this.hidden=!1,this._onChecked=new yi.a,this.onChecked=this._onChecked.event,Object(Fn.a)(this,s)}get checked(){return!!this._checked}set checked(s){s!==this._checked&&(this._checked=s,this._onChecked.fire(s))}dispose(){this._onChecked.dispose()}}class Cr{get templateId(){return Cr.ID}renderTemplate(s){let v=Object.create(null);v.toDisposeElement=[],v.toDisposeTemplate=[],v.entry=E.p(s,Yr(".quick-input-list-entry"));let M=E.p(v.entry,Yr("label.quick-input-list-label"));v.toDisposeTemplate.push(E.n(M,E.c.CLICK,It=>{v.checkbox.offsetParent||It.preventDefault()})),v.checkbox=E.p(M,Yr("input.quick-input-list-checkbox")),v.checkbox.type="checkbox",v.toDisposeTemplate.push(E.n(v.checkbox,E.c.CHANGE,It=>{v.element.checked=v.checkbox.checked}));let be=E.p(M,Yr(".quick-input-list-rows")),Ne=E.p(be,Yr(".quick-input-list-row")),De=E.p(be,Yr(".quick-input-list-row"));v.label=new gl.a(Ne,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0});let je=E.p(Ne,Yr(".quick-input-list-entry-keybinding"));v.keybinding=new fl(je,te.a);let mt=E.p(De,Yr(".quick-input-list-label-meta"));return v.detail=new Kl.a(mt,!0),v.separator=E.p(v.entry,Yr(".quick-input-list-separator")),v.actionBar=new ds.a(v.entry),v.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),v.toDisposeTemplate.push(v.actionBar),v}renderElement(s,v,M){M.toDisposeElement=Object(Y.f)(M.toDisposeElement),M.element=s,M.checkbox.checked=s.checked,M.toDisposeElement.push(s.onChecked(It=>M.checkbox.checked=It));let{labelHighlights:be,descriptionHighlights:Ne,detailHighlights:De}=s,je=Object.create(null);je.matches=be||[],je.descriptionTitle=s.saneDescription,je.descriptionMatches=Ne||[],je.extraClasses=s.item.iconClasses,je.italic=s.item.italic,je.strikethrough=s.item.strikethrough,M.label.setLabel(s.saneLabel,s.saneDescription,je),M.keybinding.set(s.item.keybinding),M.detail.set(s.saneDetail,De),s.separator&&s.separator.label?(M.separator.textContent=s.separator.label,M.separator.style.display=""):M.separator.style.display="none",s.separator?E.e(M.entry,"quick-input-list-separator-border"):E.Q(M.entry,"quick-input-list-separator-border"),M.actionBar.clear();let mt=s.item.buttons;mt&&mt.length?(M.actionBar.push(mt.map((It,Qt)=>{let Oi=It.iconClass||(It.iconPath?Ea(It.iconPath):void 0);It.alwaysVisible&&(Oi=Oi?Oi+" always-visible":"always-visible");let en=new vr.a("id-"+Qt,"",Oi,!0,()=>(s.fireButtonTriggered({button:It,item:s.item}),Promise.resolve()));return en.tooltip=It.tooltip||"",en}),{icon:!0,label:!1}),E.e(M.entry,"has-actions")):E.Q(M.entry,"has-actions")}disposeElement(s,v,M){M.toDisposeElement=Object(Y.f)(M.toDisposeElement)}disposeTemplate(s){s.toDisposeElement=Object(Y.f)(s.toDisposeElement),s.toDisposeTemplate=Object(Y.f)(s.toDisposeTemplate)}}Cr.ID="listelement";class _l{getHeight(s){return s.saneDetail?44:22}getTemplateId(s){return Cr.ID}}var so;(function(me){me[me.First=1]="First",me[me.Second=2]="Second",me[me.Last=3]="Last",me[me.Next=4]="Next",me[me.Previous=5]="Previous",me[me.NextPage=6]="NextPage",me[me.PreviousPage=7]="PreviousPage"})(so||(so={}));class to{constructor(s,v,M){this.parent=s,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new yi.a,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new yi.a,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new yi.a,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new yi.a,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new yi.a,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new yi.a,this.onKeyDown=this._onKeyDown.event,this._onLeave=new yi.a,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=v,this.container=E.p(this.parent,Yr(".quick-input-list"));let be=new _l,Ne=new aa;this.list=M.createList("QuickInput",this.container,be,[new Cr],{identityProvider:{getId:De=>De.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:Ne}),this.list.getHTMLElement().id=v,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(De=>{let je=new Hi.a(De);switch(je.keyCode){case 10:this.toggleCheckbox();break;case 31:(te.f?De.metaKey:De.ctrlKey)&&this.list.setFocus(Object(fe.s)(this.list.length));break;case 16:let mt=this.list.getFocus();mt.length===1&&mt[0]===0&&this._onLeave.fire();break;case 18:let It=this.list.getFocus();It.length===1&&It[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(je)})),this.disposables.push(this.list.onMouseDown(De=>{De.browserEvent.button!==2&&De.browserEvent.preventDefault()})),this.disposables.push(E.i(this.container,E.c.CLICK,De=>{(De.x||De.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(De=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(De=>{typeof De.index=="number"&&(De.browserEvent.preventDefault(),this.list.setSelection([De.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return yi.b.map(this.list.onDidChangeFocus,s=>s.elements.map(v=>v.item))}get onDidChangeSelection(){return yi.b.map(this.list.onDidChangeSelection,s=>({items:s.elements.map(v=>v.item),event:s.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(s,v=!0){for(let M=0,be=s.length;M<be;M++){let Ne=s[M];if(!Ne.hidden){if(!Ne.checked)return!1;v=!0}}return v}getCheckedCount(){let s=0,v=this.elements;for(let M=0,be=v.length;M<be;M++)v[M].checked&&s++;return s}getVisibleCount(){let s=0,v=this.elements;for(let M=0,be=v.length;M<be;M++)v[M].hidden||s++;return s}setAllVisibleChecked(s){try{this._fireCheckedEvents=!1,this.elements.forEach(v=>{v.hidden||(v.checked=s)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(s){this.elementDisposables=Object(Y.f)(this.elementDisposables);let v=M=>this.fireButtonTriggered(M);this.inputElements=s,this.elements=s.reduce((M,be,Ne)=>{var De,je,mt;if(be.type!=="separator"){let It=Ne&&s[Ne-1],Qt=be.label&&be.label.replace(/\r?\n/g," "),Oi=be.description&&be.description.replace(/\r?\n/g," "),en=be.detail&&be.detail.replace(/\r?\n/g," "),tn=be.ariaLabel||[Qt,Oi,en].map(kn=>kn&&Object(Is.c)(kn).text).filter(kn=>!!kn).join(", ");M.push(new bl({index:Ne,item:be,saneLabel:Qt,saneAriaLabel:tn,saneDescription:Oi,saneDetail:en,labelHighlights:(De=be.highlights)===null||De===void 0?void 0:De.label,descriptionHighlights:(je=be.highlights)===null||je===void 0?void 0:je.description,detailHighlights:(mt=be.highlights)===null||mt===void 0?void 0:mt.detail,checked:!1,separator:It&&It.type==="separator"?It:void 0,fireButtonTriggered:v}))}return M},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(M=>M.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((M,be,Ne)=>(M.set(be.item,Ne),M),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(s=>s.item)}setFocusedElements(s){if(this.list.setFocus(s.filter(v=>this.elementsToIndexes.has(v)).map(v=>this.elementsToIndexes.get(v))),s.length>0){let v=this.list.getFocus()[0];typeof v=="number"&&this.list.reveal(v)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(s){this.list.setSelection(s.filter(v=>this.elementsToIndexes.has(v)).map(v=>this.elementsToIndexes.get(v)))}getCheckedElements(){return this.elements.filter(s=>s.checked).map(s=>s.item)}setCheckedElements(s){try{this._fireCheckedEvents=!1;let v=new Set;for(let M of s)v.add(M);for(let M of this.elements)M.checked=v.has(M.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(s){this.list.getHTMLElement().style.pointerEvents=s?"":"none"}focus(s){if(!this.list.length)return;switch(s===so.Next&&this.list.getFocus()[0]===this.list.length-1&&(s=so.First),s===so.Previous&&this.list.getFocus()[0]===0&&(s=so.Last),s===so.Second&&this.list.length<2&&(s=so.First),s){case so.First:this.list.focusFirst();break;case so.Second:this.list.focusNth(1);break;case so.Last:this.list.focusLast();break;case so.Next:this.list.focusNext();break;case so.Previous:this.list.focusPrevious();break;case so.NextPage:this.list.focusNextPage();break;case so.PreviousPage:this.list.focusPreviousPage()}let v=this.list.getFocus()[0];typeof v=="number"&&this.list.reveal(v)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(s){this.list.getHTMLElement().style.maxHeight=s?`calc(${44*Math.floor(s/44)}px)`:"",this.list.layout()}filter(s){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;(s=s.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach(M=>{let be=this.matchOnLabel?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneLabel))):void 0,Ne=this.matchOnDescription?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneDescription||""))):void 0,De=this.matchOnDetail?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneDetail||""))):void 0;be||Ne||De?(M.labelHighlights=be,M.descriptionHighlights=Ne,M.detailHighlights=De,M.hidden=!1):(M.labelHighlights=void 0,M.descriptionHighlights=void 0,M.detailHighlights=void 0,M.hidden=!M.item.alwaysShow),M.separator=void 0}):this.elements.forEach(M=>{M.labelHighlights=void 0,M.descriptionHighlights=void 0,M.detailHighlights=void 0,M.hidden=!1;let be=M.index&&this.inputElements[M.index-1];M.separator=be&&be.type==="separator"?be:void 0});let v=this.elements.filter(M=>!M.hidden);if(this.sortByLabel&&s){let M=s.toLowerCase();v.sort((be,Ne)=>function(De,je,mt){let It=De.labelHighlights||[],Qt=je.labelHighlights||[];return It.length&&!Qt.length?-1:!It.length&&Qt.length?1:It.length===0&&Qt.length===0?0:sa(De.saneLabel,je.saneLabel,mt)}(be,Ne,M))}return this.elementsToIndexes=v.reduce((M,be,Ne)=>(M.set(be.item,Ne),M),new Map),this.list.splice(0,this.list.length,v),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(v.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let s=this.list.getFocusedElements(),v=this.allVisibleChecked(s);for(let M of s)M.checked=!v}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(s){this.container.style.display=s?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=Object(Y.f)(this.elementDisposables),this.disposables=Object(Y.f)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(s){this._onButtonTriggered.fire(s)}style(s){this.list.style(s)}}Ta([Mr.a],to.prototype,"onDidChangeFocus",null),Ta([Mr.a],to.prototype,"onDidChangeSelection",null);class aa{getWidgetAriaLabel(){return Object(pn.a)("quickInput","Quick Input")}getAriaLabel(s){return s.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var Gl=o(173);let Yl=E.a;class bs extends Y.a{constructor(s){super(),this.parent=s,this.onKeyDown=v=>E.i(this.inputBox.inputElement,E.c.KEY_DOWN,M=>{v(new Hi.a(M))}),this.onMouseDown=v=>E.i(this.inputBox.inputElement,E.c.MOUSE_DOWN,M=>{v(new hs.a(M))}),this.onDidChange=v=>this.inputBox.onDidChange(v),this.container=E.p(this.parent,Yl(".quick-input-box")),this.inputBox=this._register(new Gl.b(this.container,void 0))}get value(){return this.inputBox.value}set value(s){this.inputBox.value=s}select(s=null){this.inputBox.select(s)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(s){this.inputBox.setPlaceHolder(s)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(s){this.inputBox.setAriaLabel(s)}get password(){return this.inputBox.inputElement.type==="password"}set password(s){this.inputBox.inputElement.type=s?"password":"text"}setAttribute(s,v){this.inputBox.inputElement.setAttribute(s,v)}removeAttribute(s){this.inputBox.inputElement.removeAttribute(s)}showDecoration(s){s===Et.a.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:s===Et.a.Info?1:s===Et.a.Warning?2:3,content:""})}stylesForType(s){return this.inputBox.stylesForType(s===Et.a.Info?1:s===Et.a.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(s){this.inputBox.style(s)}}var Ha=o(185);o(277);let La={progressBarBackground:wo.a.fromHex("#0E70C0")};class Na extends Y.a{constructor(s,v){super(),this.options=v||Object.create(null),Object(Fn.g)(this.options,La,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new xe.d(()=>Object(E.Z)(this.element),0)),this.create(s)}create(s){this.element=document.createElement("div"),Object(E.e)(this.element,"monaco-progress-container"),s.appendChild(this.element),this.bit=document.createElement("div"),Object(E.e)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(E.R)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(s){return Object(E.e)(this.element,"done"),Object(E.I)(this.element,"infinite")?(this.bit.style.opacity="0",s?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",s?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",Object(E.R)(this.element,"discrete","done"),Object(E.f)(this.element,"active","infinite"),this}getContainer(){return this.element}style(s){this.progressBarBackground=s.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){let s=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=s}}}o(279);var la=o(61);let vl={buttonBackground:wo.a.fromHex("#0E639C"),buttonHoverBackground:wo.a.fromHex("#006BB3"),buttonForeground:wo.a.white};class xr extends Y.a{constructor(s,v){super(),this._onDidClick=this._register(new yi.a),this.options=v||Object.create(null),Object(Fn.g)(this.options,vl,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),E.e(this._element,"monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),s.appendChild(this._element),this._register(la.b.addTarget(this._element)),[E.c.CLICK,la.a.Tap].forEach(M=>{this._register(E.i(this._element,M,be=>{this.enabled?this._onDidClick.fire(be):E.b.stop(be)}))}),this._register(E.i(this._element,E.c.KEY_DOWN,M=>{let be=new Hi.a(M),Ne=!1;this.enabled&&(be.equals(3)||be.equals(10))?(this._onDidClick.fire(M),Ne=!0):be.equals(9)&&(this._element.blur(),Ne=!0),Ne&&E.b.stop(be,!0)})),this._register(E.i(this._element,E.c.MOUSE_OVER,M=>{E.I(this._element,"disabled")||this.setHoverBackground()})),this._register(E.i(this._element,E.c.MOUSE_OUT,M=>{this.applyStyles()})),this.focusTracker=this._register(E.bb(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let s;s=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,s&&(this._element.style.backgroundColor=s)}style(s){this.buttonForeground=s.buttonForeground,this.buttonBackground=s.buttonBackground,this.buttonHoverBackground=s.buttonHoverBackground,this.buttonSecondaryForeground=s.buttonSecondaryForeground,this.buttonSecondaryBackground=s.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=s.buttonSecondaryHoverBackground,this.buttonBorder=s.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let s,v;this.options.secondary?(v=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",s=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(v=this.buttonForeground?this.buttonForeground.toString():"",s=this.buttonBackground?this.buttonBackground.toString():"");let M=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=v,this._element.style.backgroundColor=s,this._element.style.borderWidth=M?"1px":"",this._element.style.borderStyle=M?"solid":"",this._element.style.borderColor=M}}get element(){return this._element}set label(s){E.I(this._element,"monaco-text-button")||E.e(this._element,"monaco-text-button"),this.options.supportCodicons?E.U(this._element,...function(v){let M=new Array,be,Ne=0,De=0;for(;(be=yr.g.exec(v))!==null;){De=be.index||0,M.push(v.substring(Ne,De)),Ne=(be.index||0)+be[0].length;let[,je,mt,It,Qt]=be;M.push(je?`$(${mt})`:E.a(`span.codicon.codicon-${It}${Qt?".codicon-animation-"+Qt:""}`))}return Ne<v.length&&M.push(v.substring(Ne)),M}(s)):this._element.textContent=s,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=s)}set enabled(s){s?(E.Q(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(E.e(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),E.T(this._element))}get enabled(){return!E.I(this._element,"disabled")}}var Zl=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function De(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Oi){Oi(Qt)})).then(De,je)}mt((M=M.apply(me,s||[])).next())})};let Xi=E.a,wl={iconClass:Object(yr.e)("quick-input-back",yr.a.arrowLeft).classNames,tooltip:Object(pn.a)("quickInput.back","Back"),handle:-1};class Xl extends Y.a{constructor(s){super(),this.ui=s,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new yi.a),this.onDidHideEmitter=this._register(new yi.a),this.onDisposeEmitter=this._register(new yi.a),this.visibleDisposables=this._register(new Y.b),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(s){this._title=s,this.update()}get description(){return this._description}set description(s){this._description=s,this.update()}get step(){return this._steps}set step(s){this._steps=s,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(s){this._totalSteps=s,this.update()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this.update()}get contextKey(){return this._contextKey}set contextKey(s){this._contextKey=s,this.update()}get busy(){return this._busy}set busy(s){this._busy=s,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(s){this._ignoreFocusOut=s,this.update()}get buttons(){return this._buttons}set buttons(s){this._buttons=s,this.buttonsUpdated=!0,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(s=>{this.buttons.indexOf(s)!==-1&&this.onDidTriggerButtonEmitter.fire(s)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire()}update(){if(!this.visible)return;let s=this.getTitle();s&&this.ui.title.textContent!==s?this.ui.title.textContent=s:s||this.ui.title.innerHTML===" "||(this.ui.title.innerText="\xA0;");let v=this.getDescription();if(this.ui.description.textContent!==v&&(this.ui.description.textContent=v),this.busy&&!this.busyDelay&&(this.busyDelay=new xe.e,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let M=this.buttons.filter(Ne=>Ne===wl);this.ui.leftActionBar.push(M.map((Ne,De)=>{let je=new vr.a("id-"+De,"",Ne.iconClass||Ea(Ne.iconPath),!0,()=>Zl(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(Ne)}));return je.tooltip=Ne.tooltip||"",je}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();let be=this.buttons.filter(Ne=>Ne!==wl);this.ui.rightActionBar.push(be.map((Ne,De)=>{let je=new vr.a("id-"+De,"",Ne.iconClass||Ea(Ne.iconPath),!0,()=>Zl(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(Ne)}));return je.tooltip=Ne.tooltip||"",je}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey)}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(pn.a)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(s){if(this.ui.inputBox.showDecoration(s),s===Et.a.Error){let v=this.ui.inputBox.stylesForType(s);this.ui.message.style.color=v.foreground?""+v.foreground:"",this.ui.message.style.backgroundColor=v.background?""+v.background:"",this.ui.message.style.border=v.border?"1px solid "+v.border:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class Ia extends Xl{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new yi.a),this.onDidAcceptEmitter=this._register(new yi.a),this.onDidCustomEmitter=this._register(new yi.a),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?Gr.a.NONE:Gr.a.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new yi.a),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new yi.a),this.onDidTriggerItemButtonEmitter=this._register(new yi.a),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=s=>s,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(s){this._quickNavigate=s,this.update()}get value(){return this._value}set value(s){this._value=s||"",this.update()}set ariaLabel(s){this._ariaLabel=s,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(s){this._placeholder=s,this.update()}get items(){return this._items}set items(s){this._items=s,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(s){this._canSelectMany=s,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(s){this._canAcceptInBackground=s}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(s){this._matchOnDescription=s,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(s){this._matchOnDetail=s,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(s){this._matchOnLabel=s,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(s){this._sortByLabel=s,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(s){this._autoFocusOnList=s,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(s){this._itemActivation=s}get activeItems(){return this._activeItems}set activeItems(s){this._activeItems=s,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(s){this._selectedItems=s,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Gr.b:this.ui.keyMods}set valueSelection(s){this._valueSelection=s,this.valueSelectionUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(s){this._validationMessage=s,this.update()}get customButton(){return this._customButton}set customButton(s){this._customButton=s,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(s){this._customButtonLabel=s,this.update()}get customHover(){return this._customButtonHover}set customHover(s){this._customButtonHover=s,this.update()}get ok(){return this._ok}set ok(s){this._ok=s,this.update()}get hideInput(){return!!this._hideInput}set hideInput(s){this._hideInput=s,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(so.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(s=>{s!==this.value&&(this._value=s,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(s))})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(s=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(s=>{switch(s.keyCode){case 18:this.ui.list.focus(so.Next),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(so.Previous):this.ui.list.focus(so.Last),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 12:this.ui.list.focus(so.NextPage),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 11:this.ui.list.focus(so.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!0}));break;case 14:!s.ctrlKey&&!s.metaKey||s.shiftKey||s.altKey||(this.ui.list.focus(so.First),E.b.stop(s,!0));break;case 13:!s.ctrlKey&&!s.metaKey||s.shiftKey||s.altKey||(this.ui.list.focus(so.Last),E.b.stop(s,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.onDidAcceptEmitter.fire({inBackground:!1})})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(s=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(fe.g)(s,this._activeItems,(v,M)=>v===M)||(this._activeItems=s,this.onDidChangeActiveEmitter.fire(s))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:s,event:v})=>{this.canSelectMany?s.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(fe.g)(s,this._selectedItems,(M,be)=>M===be)||(this._selectedItems=s,this.onDidChangeSelectionEmitter.fire(s),s.length&&this.onDidAcceptEmitter.fire({inBackground:v instanceof MouseEvent&&v.button===1}))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(s=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(fe.g)(s,this._selectedItems,(v,M)=>v===M)||(this._selectedItems=s,this.onDidChangeSelectionEmitter.fire(s)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(s=>this.onDidTriggerItemButtonEmitter.fire(s))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}registerQuickNavigation(){return E.i(this.ui.container,E.c.KEY_UP,s=>{if(this.canSelectMany||!this._quickNavigate)return;let v=new Hi.a(s),M=v.keyCode;this._quickNavigate.keybindings.some(be=>{let[Ne,De]=be.getParts();return!De&&(Ne.shiftKey&&M===4?!(v.ctrlKey||v.altKey||v.metaKey):!(!Ne.altKey||M!==6)||!(!Ne.ctrlKey||M!==5)||!(!Ne.metaKey||M!==57))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!1})),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let s=!1,v=!1;this._hideInput&&this._items.length>0&&(this.ui.isScreenReaderOptimized()?v=!0:s=!0),E.ab(this.ui.container,"hidden-input",s);let M={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany,inputBox:!s,progressBar:!s,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};if(this.ui.setVisibilities(M),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),v)this.ui.inputBox.ariaLabel="";else{let be=this.ariaLabel||this.placeholder||Ia.DEFAULT_ARIA_LABEL;this.ui.inputBox.ariaLabel!==be&&(this.ui.inputBox.ariaLabel=be)}if(this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Gr.a.NONE:this._itemActivation=Gr.a.FIRST;break;case Gr.a.SECOND:this.ui.list.focus(so.Second),this._itemActivation=Gr.a.FIRST;break;case Gr.a.LAST:this.ui.list.focus(so.Last),this._itemActivation=Gr.a.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.validationMessage?(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(Et.a.Error)):(this.ui.message.textContent=null,this.showMessageDecoration(Et.a.Ignore)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),M.inputBox||this.ui.list.domFocus()}}Ia.DEFAULT_ARIA_LABEL=Object(pn.a)("quickInputBox.ariaLabel","Type to narrow down results.");class Oa extends Y.a{constructor(s){super(),this.options=s,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new yi.a),this.onDidCustomEmitter=this._register(new yi.a),this.onDidTriggerButtonEmitter=this._register(new yi.a),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new yi.a),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new yi.a),this.onHide=this.onHideEmitter.event,this.idPrefix=s.idPrefix,this.parentElement=s.container,this.styles=s.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){let s=v=>{this.keyMods.ctrlCmd=v.ctrlKey||v.metaKey,this.keyMods.alt=v.altKey};this._register(E.i(window,E.c.KEY_DOWN,s,!0)),this._register(E.i(window,E.c.KEY_UP,s,!0)),this._register(E.i(window,E.c.MOUSE_DOWN,s,!0))}getUI(){if(this.ui)return this.ui;let s=E.p(this.parentElement,Xi(".quick-input-widget.show-file-icons"));s.tabIndex=-1,s.style.display="none";let v=E.v(s),M=E.p(s,Xi(".quick-input-titlebar")),be=this._register(new ds.a(M));be.domNode.classList.add("quick-input-left-action-bar");let Ne=E.p(M,Xi(".quick-input-title")),De=this._register(new ds.a(M));De.domNode.classList.add("quick-input-right-action-bar");let je=E.p(s,Xi(".quick-input-description")),mt=E.p(s,Xi(".quick-input-header")),It=E.p(mt,Xi("input.quick-input-check-all"));It.type="checkbox",this._register(E.n(It,E.c.CHANGE,Zn=>{let Zo=It.checked;Er.setAllVisibleChecked(Zo)})),this._register(E.i(It,E.c.CLICK,Zn=>{(Zn.x||Zn.y)&&en.setFocus()}));let Qt=E.p(mt,Xi(".quick-input-and-message")),Oi=E.p(Qt,Xi(".quick-input-filter")),en=this._register(new bs(Oi));en.setAttribute("aria-describedby",this.idPrefix+"message");let tn=E.p(Oi,Xi(".quick-input-visible-count"));tn.setAttribute("aria-live","polite"),tn.setAttribute("aria-atomic","true");let kn=new Ha.a(tn,{countFormat:Object(pn.a)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),no=E.p(Oi,Xi(".quick-input-count"));no.setAttribute("aria-live","polite");let lo=new Ha.a(no,{countFormat:Object(pn.a)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),uo=E.p(mt,Xi(".quick-input-action")),oo=new xr(uo);oo.label=Object(pn.a)("ok","OK"),this._register(oo.onDidClick(Zn=>{this.onDidAcceptEmitter.fire()}));let io=E.p(mt,Xi(".quick-input-action")),mr=new xr(io);mr.label=Object(pn.a)("custom","Custom"),this._register(mr.onDidClick(Zn=>{this.onDidCustomEmitter.fire()}));let Fa=E.p(Qt,Xi(`#${this.idPrefix}message.quick-input-message`)),Yo=new Na(s);E.e(Yo.getContainer(),"quick-input-progress");let Er=this._register(new to(s,this.idPrefix+"list",this.options));this._register(Er.onChangedAllVisibleChecked(Zn=>{It.checked=Zn})),this._register(Er.onChangedVisibleCount(Zn=>{kn.setCount(Zn)})),this._register(Er.onChangedCheckedCount(Zn=>{lo.setCount(Zn)})),this._register(Er.onLeave(()=>{setTimeout(()=>{en.setFocus(),this.controller instanceof Ia&&this.controller.canSelectMany&&Er.clearFocus()},0)})),this._register(Er.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));let go=E.bb(s);return this._register(go),this._register(E.i(s,E.c.FOCUS,Zn=>{this.previousFocusElement=Zn.relatedTarget instanceof HTMLElement?Zn.relatedTarget:void 0},!0)),this._register(go.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(),this.previousFocusElement=void 0})),this._register(E.i(s,E.c.FOCUS,Zn=>{en.setFocus()})),this._register(E.i(s,E.c.KEY_DOWN,Zn=>{let Zo=new Hi.a(Zn);switch(Zo.keyCode){case 3:E.b.stop(Zn,!0),this.onDidAcceptEmitter.fire();break;case 9:E.b.stop(Zn,!0),this.hide();break;case 2:if(!Zo.altKey&&!Zo.ctrlKey&&!Zo.metaKey){let ws=[".action-label.codicon"];s.classList.contains("show-checkboxes")?ws.push("input"):ws.push("input[type=text]"),this.getUI().list.isDisplayed()&&ws.push(".monaco-list");let tl=s.querySelectorAll(ws.join(", "));Zo.shiftKey&&Zo.target===tl[0]?(E.b.stop(Zn,!0),tl[tl.length-1].focus()):Zo.shiftKey||Zo.target!==tl[tl.length-1]||(E.b.stop(Zn,!0),tl[0].focus())}}})),this.ui={container:s,styleSheet:v,leftActionBar:be,titleBar:M,title:Ne,description:je,rightActionBar:De,checkAll:It,filterContainer:Oi,inputBox:en,visibleCountContainer:tn,visibleCount:kn,countContainer:no,count:lo,okContainer:uo,ok:oo,message:Fa,customButtonContainer:io,customButton:mr,progressBar:Yo,list:Er,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:Zn=>this.show(Zn),hide:()=>this.hide(),setVisibilities:Zn=>this.setVisibilities(Zn),setComboboxAccessibility:Zn=>this.setComboboxAccessibility(Zn),setEnabled:Zn=>this.setEnabled(Zn),setContextKey:Zn=>this.options.setContextKey(Zn)},this.updateStyles(),this.ui}pick(s,v={},M=Fo.a.None){return new Promise((be,Ne)=>{let De=Qt=>{De=be,v.onKeyMods&&v.onKeyMods(je.keyMods),be(Qt)};if(M.isCancellationRequested)return void De(void 0);let je=this.createQuickPick(),mt,It=[je,je.onDidAccept(()=>{if(je.canSelectMany)De(je.selectedItems.slice()),je.hide();else{let Qt=je.activeItems[0];Qt&&(De(Qt),je.hide())}}),je.onDidChangeActive(Qt=>{let Oi=Qt[0];Oi&&v.onDidFocus&&v.onDidFocus(Oi)}),je.onDidChangeSelection(Qt=>{if(!je.canSelectMany){let Oi=Qt[0];Oi&&(De(Oi),je.hide())}}),je.onDidTriggerItemButton(Qt=>v.onDidTriggerItemButton&&v.onDidTriggerItemButton(Object.assign(Object.assign({},Qt),{removeItem:()=>{let Oi=je.items.indexOf(Qt.item);if(Oi!==-1){let en=je.items.slice();en.splice(Oi,1),je.items=en}}}))),je.onDidChangeValue(Qt=>{!mt||Qt||je.activeItems.length===1&&je.activeItems[0]===mt||(je.activeItems=[mt])}),M.onCancellationRequested(()=>{je.hide()}),je.onDidHide(()=>{Object(Y.f)(It),De(void 0)})];je.canSelectMany=!!v.canPickMany,je.placeholder=v.placeHolder,je.ignoreFocusOut=!!v.ignoreFocusLost,je.matchOnDescription=!!v.matchOnDescription,je.matchOnDetail=!!v.matchOnDetail,je.matchOnLabel=v.matchOnLabel===void 0||v.matchOnLabel,je.autoFocusOnList=v.autoFocusOnList===void 0||v.autoFocusOnList,je.quickNavigate=v.quickNavigate,je.contextKey=v.contextKey,je.busy=!0,Promise.all([s,v.activeItem]).then(([Qt,Oi])=>{mt=Oi,je.busy=!1,je.items=Qt,je.canSelectMany&&(je.selectedItems=Qt.filter(en=>en.type!=="separator"&&en.picked)),mt&&(je.activeItems=[mt])}),je.show(),Promise.resolve(s).then(void 0,Qt=>{Ne(Qt),je.hide()})})}createQuickPick(){let s=this.getUI();return new Ia(s)}show(s){let v=this.getUI();this.onShowEmitter.fire();let M=this.controller;this.controller=s,M&&M.didHide(),this.setEnabled(!0),v.leftActionBar.clear(),v.title.textContent="",v.description.textContent="",v.rightActionBar.clear(),v.checkAll.checked=!1,v.inputBox.placeholder="",v.inputBox.password=!1,v.inputBox.showDecoration(Et.a.Ignore),v.visibleCount.setCount(0),v.count.setCount(0),v.message.textContent="",v.progressBar.stop(),v.list.setElements([]),v.list.matchOnDescription=!1,v.list.matchOnDetail=!1,v.list.matchOnLabel=!0,v.list.sortByLabel=!0,v.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),v.inputBox.ariaLabel="";let be=this.options.backKeybindingLabel();wl.tooltip=be?Object(pn.a)("quickInput.backWithKeybinding","Back ({0})",be):Object(pn.a)("quickInput.back","Back"),v.container.style.display="",this.updateLayout(),v.inputBox.setFocus()}setVisibilities(s){let v=this.getUI();v.title.style.display=s.title?"":"none",v.description.style.display=s.description?"":"none",v.checkAll.style.display=s.checkAll?"":"none",v.filterContainer.style.display=s.inputBox?"":"none",v.visibleCountContainer.style.display=s.visibleCount?"":"none",v.countContainer.style.display=s.count?"":"none",v.okContainer.style.display=s.ok?"":"none",v.customButtonContainer.style.display=s.customButton?"":"none",v.message.style.display=s.message?"":"none",v.progressBar.getContainer().style.display=s.progressBar?"":"none",v.list.display(!!s.list),v.container.classList[s.checkAll?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(s){if(s!==this.comboboxAccessibility){let v=this.getUI();this.comboboxAccessibility=s,this.comboboxAccessibility?(v.inputBox.setAttribute("role","combobox"),v.inputBox.setAttribute("aria-haspopup","true"),v.inputBox.setAttribute("aria-autocomplete","list"),v.inputBox.setAttribute("aria-activedescendant",v.list.getActiveDescendant()||"")):(v.inputBox.removeAttribute("role"),v.inputBox.removeAttribute("aria-haspopup"),v.inputBox.removeAttribute("aria-autocomplete"),v.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(s){if(s!==this.enabled){this.enabled=s;for(let v of this.getUI().leftActionBar.viewItems)v.getAction().enabled=s;for(let v of this.getUI().rightActionBar.viewItems)v.getAction().enabled=s;this.getUI().checkAll.disabled=!s,this.getUI().ok.enabled=s,this.getUI().list.enabled=s}}hide(){var s;let v=this.controller;if(v){let M=!((s=this.ui)===null||s===void 0?void 0:s.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",M||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),v.didHide()}}layout(s,v){this.dimension=s,this.titleBarOffset=v,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";let s=this.ui.container.style,v=Math.min(.62*this.dimension.width,Oa.MAX_WIDTH);s.width=v+"px",s.marginLeft="-"+v/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(s){this.styles=s,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:s,quickInputBackground:v,quickInputForeground:M,contrastBorder:be,widgetShadow:Ne}=this.styles.widget;this.ui.titleBar.style.backgroundColor=s?s.toString():"",this.ui.container.style.backgroundColor=v?v.toString():"",this.ui.container.style.color=M?M.toString():"",this.ui.container.style.border=be?"1px solid "+be:"",this.ui.container.style.boxShadow=Ne?"0 5px 8px "+Ne:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);let De=[];this.styles.list.listInactiveFocusForeground&&(De.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`),De.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)),this.styles.list.pickerGroupBorder&&De.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&De.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);let je=De.join(` -`);je!==this.ui.styleSheet.innerHTML&&(this.ui.styleSheet.innerHTML=je)}}}Oa.MAX_WIDTH=600;var yl=o(110),Cl=o(134),Ql=o(133),xl=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},qa=function(me,s){return function(v,M){s(v,M,me)}};let pr=class extends Y.a{constructor(me,s){super(),this.quickInputService=me,this.instantiationService=s,this.registry=Sn.a.as(Cl.b.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(me="",s){var v;let[M,be]=this.getOrInstantiateProvider(me),Ne=this.visibleQuickAccess,De=Ne==null?void 0:Ne.descriptor;if(Ne&&be&&De===be)return me===be.prefix||(s==null?void 0:s.preserveValue)||(Ne.picker.value=me),void this.adjustValueSelection(Ne.picker,be,s);if(be&&!(s==null?void 0:s.preserveValue)){let Qt;if(Ne&&De&&De!==be){let Oi=Ne.value.substr(De.prefix.length);Oi&&(Qt=`${be.prefix}${Oi}`)}if(!Qt){let Oi=M==null?void 0:M.defaultFilterValue;Oi===Cl.a.LAST?Qt=this.lastAcceptedPickerValues.get(be):typeof Oi=="string"&&(Qt=`${be.prefix}${Oi}`)}typeof Qt=="string"&&(me=Qt)}let je=new Y.b,mt=je.add(this.quickInputService.createQuickPick());mt.value=me,this.adjustValueSelection(mt,be,s),mt.placeholder=be==null?void 0:be.placeholder,mt.quickNavigate=s==null?void 0:s.quickNavigateConfiguration,mt.hideInput=!!mt.quickNavigate&&!Ne,(typeof(s==null?void 0:s.itemActivation)=="number"||(s==null?void 0:s.quickNavigateConfiguration))&&(mt.itemActivation=(v=s==null?void 0:s.itemActivation)!==null&&v!==void 0?v:yl.b.SECOND),mt.contextKey=be==null?void 0:be.contextKey,mt.filterValue=Qt=>Qt.substring(be?be.prefix.length:0),(be==null?void 0:be.placeholder)&&(mt.ariaLabel=be==null?void 0:be.placeholder);let It=this.registerPickerListeners(mt,M,be,me,je);M&&je.add(M.provide(mt,It)),mt.show()}adjustValueSelection(me,s,v){var M;let be;be=(v==null?void 0:v.preserveValue)?[me.value.length,me.value.length]:[(M=s==null?void 0:s.prefix.length)!==null&&M!==void 0?M:0,me.value.length],me.valueSelection=be}registerPickerListeners(me,s,v,M,be){let Ne=this.visibleQuickAccess={picker:me,descriptor:v,value:M};be.add(Object(Y.h)(()=>{Ne===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),be.add(me.onDidChangeValue(je=>{let[mt]=this.getOrInstantiateProvider(je);mt!==s?this.show(je,{preserveValue:!0}):Ne.value=je})),v&&be.add(me.onDidAccept(()=>{this.lastAcceptedPickerValues.set(v,me.value)}));let De=be.add(new Fo.b);return Object(Ql.a)(me.onDidHide)(()=>{me.selectedItems.length===0&&De.cancel(),be.dispose()}),De.token}getOrInstantiateProvider(me){let s=this.registry.getQuickAccessProvider(me);if(!s)return[void 0,void 0];let v=this.mapProviderToDescriptor.get(s);return v||(v=this.instantiationService.createInstance(s.ctor),this.mapProviderToDescriptor.set(s,v)),[v,s]}};pr=xl([qa(0,yl.a),qa(1,Ee.a)],pr);var Ds=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},er=function(me,s){return function(v,M){s(v,M,me)}};let $a=class extends Re.d{constructor(me,s,v,M,be){super(v),this.instantiationService=me,this.contextKeyService=s,this.accessibilityService=M,this.layoutService=be,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(pr))),this._quickAccess}createController(me=this.layoutService,s){var v,M;let be={idPrefix:"quickInput_",container:me.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:De=>this.setContextKey(De),returnFocus:()=>me.focus(),createList:(De,je,mt,It,Qt)=>this.instantiationService.createInstance(Ls.d,De,je,mt,It,Qt),styles:this.computeStyles()},Ne=this._register(new Oa(Object.assign(Object.assign({},be),s)));return Ne.layout(me.dimension,(M=(v=me.offset)===null||v===void 0?void 0:v.top)!==null&&M!==void 0?M:0),this._register(me.onLayout(De=>{var je,mt;return Ne.layout(De,(mt=(je=me.offset)===null||je===void 0?void 0:je.top)!==null&&mt!==void 0?mt:0)})),this._register(Ne.onShow(()=>this.resetContextKeys())),this._register(Ne.onHide(()=>this.resetContextKeys())),Ne}setContextKey(me){let s;me&&(s=this.contexts.get(me),s||(s=new ui.c(me,!1).bindTo(this.contextKeyService),this.contexts.set(me,s))),s&&s.get()||(this.resetContextKeys(),s&&s.set(!0))}resetContextKeys(){this.contexts.forEach(me=>{me.get()&&me.reset()})}pick(me,s={},v=Fo.a.None){return this.controller.pick(me,s,v)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(Kr.d)(this.theme,{quickInputBackground:Cn.dc,quickInputForeground:Cn.ec,quickInputTitleBackground:Cn.fc,contrastBorder:Cn.h,widgetShadow:Cn.uc})),inputBox:Object(Kr.d)(this.theme,{inputForeground:Cn.hb,inputBackground:Cn.fb,inputBorder:Cn.gb,inputValidationInfoBackground:Cn.lb,inputValidationInfoForeground:Cn.nb,inputValidationInfoBorder:Cn.mb,inputValidationWarningBackground:Cn.ob,inputValidationWarningForeground:Cn.qb,inputValidationWarningBorder:Cn.pb,inputValidationErrorBackground:Cn.ib,inputValidationErrorForeground:Cn.kb,inputValidationErrorBorder:Cn.jb}),countBadge:Object(Kr.d)(this.theme,{badgeBackground:Cn.c,badgeForeground:Cn.d,badgeBorder:Cn.h}),button:Object(Kr.d)(this.theme,{buttonForeground:Cn.f,buttonBackground:Cn.e,buttonHoverBackground:Cn.g,buttonBorder:Cn.h}),progressBar:Object(Kr.d)(this.theme,{progressBarBackground:Cn.cc}),list:Object(Kr.d)(this.theme,{listBackground:Cn.dc,listInactiveFocusForeground:Cn.yb,listInactiveFocusBackground:Cn.xb,listFocusOutline:Cn.b,listInactiveFocusOutline:Cn.b,pickerGroupBorder:Cn.Xb,pickerGroupForeground:Cn.Yb})}}};$a=Ds([er(0,Ee.a),er(1,ui.b),er(2,Re.c),er(3,We.b),er(4,rr)],$a);var As=function(me,s,v,M){var be,Ne=arguments.length,De=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")De=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(De=(Ne<3?be(De):Ne>3?be(s,v,De):be(s,v))||De);return Ne>3&&De&&Object.defineProperty(s,v,De),De},Ys=function(me,s){return function(v,M){s(v,M,me)}};let Bn=class extends $a{constructor(me,s,v,M,be,Ne){super(s,v,M,be,Ne),this.host=void 0;let De=ca.get(me);this.host={_serviceBrand:void 0,get container(){return De.widget.getDomNode()},get dimension(){return me.getLayoutInfo()},get onLayout(){return me.onDidLayoutChange},focus:()=>me.focus()}}createController(){return super.createController(this.host)}};Bn=As([Ys(1,Ee.a),Ys(2,ui.b),Ys(3,Re.c),Ys(4,We.b),Ys(5,rr)],Bn);let Zs=class{constructor(me,s){this.instantiationService=me,this.codeEditorService=s,this.mapEditorToService=new Map}get activeService(){let me=this.codeEditorService.getFocusedCodeEditor();if(!me)throw new Error("Quick input service needs a focused editor to work.");let s=this.mapEditorToService.get(me);if(!s){let v=s=this.instantiationService.createInstance(Bn,me);this.mapEditorToService.set(me,s),Object(Ql.a)(me.onDidDispose)(()=>{v.dispose(),this.mapEditorToService.delete(me)})}return s}get quickAccess(){return this.activeService.quickAccess}pick(me,s={},v=Fo.a.None){return this.activeService.pick(me,s,v)}createQuickPick(){return this.activeService.createQuickPick()}};Zs=As([Ys(0,Ee.a),Ys(1,H.a)],Zs);class ca{constructor(s){this.editor=s,this.widget=new Da(this.editor)}static get(s){return s.getContribution(ca.ID)}dispose(){this.widget.dispose()}}ca.ID="editor.controller.quickInput";class Da{constructor(s){this.codeEditor=s,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Da.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Da.ID="editor.contrib.quickInputWidget",Object(Rr.m)(ca.ID,ca);var ao,Xs=o(166);(function(me){let s=new Ks.a;class v{constructor(je,mt){this._serviceId=je,this._factory=mt,this._value=null}get id(){return this._serviceId}get(je){if(!this._value){if(je&&(this._value=je[this._serviceId.toString()]),this._value||(this._value=this._factory(je)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");s.set(this._serviceId,this._value)}return this._value}}me.LazyStaticService=v;let M=[];function be(De,je){let mt=new v(De,je);return M.push(mt),mt}me.init=function(De){let je=new Ks.a;for(let[It,Qt]of Object(Pt.a)())je.set(It,Qt);for(let It in De)De.hasOwnProperty(It)&&je.set(Object(Ee.c)(It),De[It]);M.forEach(It=>je.set(It.id,It.get(De)));let mt=new Qo(je,!0);return je.set(Ee.a,mt),[je,mt]},me.instantiationService=be(Ee.a,()=>new Qo(s,!0));let Ne=new Gt;me.configurationService=be(un.a,()=>Ne),me.resourceConfigurationService=be(Ye.a,()=>new ti(Ne)),me.resourcePropertiesService=be(Ye.b,()=>new ye(Ne)),me.contextService=be(Ot.a,()=>new ue),me.labelService=be(ra.a,()=>new tt),me.telemetryService=be(ms.a,()=>new le),me.dialogService=be(Ar.a,()=>new X),me.notificationService=be(Mt.a,()=>new ae),me.markerService=be(qo.b,()=>new i),me.modeService=be(ri.a,De=>new Io),me.standaloneThemeService=be(ai.a,()=>new ts),me.logService=be($.b,()=>new $.a),me.undoRedoService=be(Yi.a,De=>new $o(me.dialogService.get(De),me.notificationService.get(De))),me.modelService=be(ct.a,De=>new Ro.a(me.configurationService.get(De),me.resourcePropertiesService.get(De),me.standaloneThemeService.get(De),me.logService.get(De),me.undoRedoService.get(De))),me.markerDecorationsService=be(Pe.a,De=>new Bt(me.modelService.get(De),me.markerService.get(De))),me.codeEditorService=be(H.a,De=>new gr(me.standaloneThemeService.get(De))),me.editorProgressService=be(Le.a,()=>new ft),me.storageService=be(a.a,()=>new a.b),me.storageSyncService=be(Xs.a,()=>new Xs.b),me.editorWorkerService=be(se.a,De=>new de(me.modelService.get(De),me.resourceConfigurationService.get(De),me.logService.get(De)))})(ao||(ao={}));class Rs extends Y.a{constructor(s,v){super();let[M,be]=ao.init(v);this._serviceCollection=M,this._instantiationService=be;let Ne=this.get(un.a),De=this.get(Mt.a),je=this.get(ms.a),mt=this.get(Re.c),It=this.get($.b),Qt=(lo,uo)=>{let oo=null;return v&&(oo=v[lo.toString()]),oo||(oo=uo()),this._serviceCollection.set(lo,oo),oo},Oi=Qt(ui.b,()=>this._register(new Hr(Ne)));Qt(We.b,()=>new Vi(Oi,Ne)),Qt(Ls.a,()=>new Ls.b(mt));let en=Qt(S.b,()=>new Ge(this._instantiationService)),tn=Qt(ve.a,()=>this._register(new lt(Oi,en,je,De,It,s))),kn=Qt(rr,()=>new rt(ao.codeEditorService.get(H.a),s));Qt(yl.a,()=>new Zs(be,ao.codeEditorService.get(H.a)));let no=Qt(Te.b,()=>this._register(new Dr(kn)));Qt(Be.a,()=>new zi),Qt(Te.a,()=>{let lo=new Go(je,De,no,tn,mt);return lo.configure({blockMouse:!1}),this._register(lo)}),Qt(fi.a,()=>new K(en)),Qt(Si.a,()=>new Ze(ao.modelService.get(ct.a)))}get(s){let v=this._serviceCollection.get(s);if(!v)throw new Error("Missing service "+s);return v}set(s,v){this._serviceCollection.set(s,v)}has(s){return this._serviceCollection.has(s)}}var Zr=o(87);function Qs(me,s,v){let M=new Rs(me,s),be=null;M.has(ke.a)||(be=new Ti(ao.modelService.get()),M.set(ke.a,be)),M.has(P.a)||M.set(P.a,new b(M.get(H.a),M.get(S.b)));let Ne=v(M);return be&&be.setEditor(Ne),Ne}function Aa(me,s,v){return Qs(me,v||{},M=>new mi(me,s,M,M.get(Ee.a),M.get(H.a),M.get(S.b),M.get(ui.b),M.get(ve.a),M.get(Te.b),M.get(ai.a),M.get(Mt.a),M.get(un.a),M.get(We.b)))}function Sl(me){return ao.codeEditorService.get().onCodeEditorAdd(s=>{me(s)})}function Ka(me,s,v){return Qs(me,v||{},M=>new Yt(me,s,M,M.get(Ee.a),M.get(ui.b),M.get(ve.a),M.get(Te.b),M.get(se.a),M.get(H.a),M.get(ai.a),M.get(Mt.a),M.get(un.a),M.get(Te.a),M.get(Le.a),M.get(Be.a)))}function Js(me,s){return new g.a(me,s)}function Ga(me,s,v){return ao.modelService.get().createModel(me,s,v)}function Jl(me,s,v){if(me=me||"",!s){let M=me.indexOf(` -`),be=me;return M!==-1&&(be=me.substring(0,M)),Ga(me,ao.modeService.get().createByFilepathOrFirstLine(v||null,be),v)}return Ga(me,ao.modeService.get().create(s),v)}function ea(me,s){ao.modelService.get().setMode(me,ao.modeService.get().create(s))}function Ya(me,s,v){me&&ao.markerService.get().changeOne(s,me.uri,v)}function Nc(me){return ao.markerService.get().read(me)}function Ic(me){return ao.modelService.get().getModel(me)}function Oc(){return ao.modelService.get().getModels()}function x(me){return ao.modelService.get().onModelAdded(me)}function c(me){return ao.modelService.get().onModelRemoved(me)}function p(me){return ao.modelService.get().onModelModeChanged(s=>{me({model:s.model,oldLanguage:s.oldModeId})})}function F(me){return function(s,v){return new wt(s,v)}(ao.modelService.get(),me)}function pe(me,s){let v=ao.standaloneThemeService.get();return v.registerEditorContainer(me),ki.colorizeElement(v,ao.modeService.get(),me,s)}function He(me,s,v){return ao.standaloneThemeService.get().registerEditorContainer(document.body),ki.colorize(ao.modeService.get(),me,s,v)}function Qe(me,s,v=4){return ao.standaloneThemeService.get().registerEditorContainer(document.body),ki.colorizeModelLine(me,s,v)}function Vt(me,s){ao.modeService.get().triggerMode(s);let v=function(De){return q.C.get(De)||{getInitialState:()=>B.c,tokenize:(mt,It,Qt)=>Object(B.d)(De,mt,It,Qt)}}(s),M=me.split(/\r\n|\r|\n/),be=[],Ne=v.getInitialState();for(let De=0,je=M.length;De<je;De++){let mt=M[De],It=v.tokenize(mt,Ne,0);be[De]=It.tokens,Ne=It.endState}return be}function $t(me,s){ao.standaloneThemeService.get().defineTheme(me,s)}function ci(me){ao.standaloneThemeService.get().setTheme(me)}function Ft(){Object(Zr.b)()}function Fi(me,s){return typeof me=="boolean"?me:s}function cn(me,s){return typeof me=="string"?me:s}function vn(me,s=!1){s&&(me=me.map(function(M){return M.toLowerCase()}));let v=function(M){let be={};for(let Ne of M)be[Ne]=!0;return be}(me);return s?function(M){return v[M.toLowerCase()]!==void 0&&v.hasOwnProperty(M.toLowerCase())}:function(M){return v[M]!==void 0&&v.hasOwnProperty(M)}}function rn(me,s){let v=0;for(;s.indexOf("@")>=0&&v<5;)v++,s=s.replace(/@(\w+)/g,function(be,Ne){let De="";if(typeof me[Ne]=="string")De=me[Ne];else{if(!(me[Ne]&&me[Ne]instanceof RegExp))throw me[Ne]===void 0?gt(me,"language definition does not contain attribute '"+Ne+"', used at: "+s):gt(me,"attribute reference '"+Ne+"' must be a string, used at: "+s);De=me[Ne].source}return Bi(De)?"":"(?:"+De+")"});let M=(me.ignoreCase?"i":"")+(me.unicode?"u":"");return new RegExp(s,M)}function Pn(me,s,v,M){let be=-1,Ne=v,De=v.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);De&&(De[3]&&(be=parseInt(De[3]),De[2]&&(be+=100)),Ne=De[4]);let je,mt="~",It=Ne;if(Ne&&Ne.length!==0?/^\w*$/.test(It)?mt="==":(De=Ne.match(/^(@|!@|~|!~|==|!=)(.*)$/),De&&(mt=De[1],It=De[2])):(mt="!=",It=""),mt!=="~"&&mt!=="!~"||!/^(\w|\|)*$/.test(It))if(mt==="@"||mt==="!@"){let Qt=me[It];if(!Qt)throw gt(me,"the @ match target '"+It+"' is not defined, in rule: "+s);if(!function(en,tn){if(!tn||!Array.isArray(tn))return!1;for(let kn of tn)if(!en(kn))return!1;return!0}(function(en){return typeof en=="string"},Qt))throw gt(me,"the @ match target '"+It+"' must be an array of strings, in rule: "+s);let Oi=vn(Qt,me.ignoreCase);je=function(en){return mt==="@"?Oi(en):!Oi(en)}}else if(mt==="~"||mt==="!~")if(It.indexOf("$")<0){let Qt=rn(me,"^"+It+"$");je=function(Oi){return mt==="~"?Qt.test(Oi):!Qt.test(Oi)}}else je=function(Qt,Oi,en,tn){return rn(me,"^"+vi(me,It,Oi,en,tn)+"$").test(Qt)};else if(It.indexOf("$")<0){let Qt=Lt(me,It);je=function(Oi){return mt==="=="?Oi===Qt:Oi!==Qt}}else{let Qt=Lt(me,It);je=function(Oi,en,tn,kn,no){let lo=vi(me,Qt,en,tn,kn);return mt==="=="?Oi===lo:Oi!==lo}}else{let Qt=vn(It.split("|"),me.ignoreCase);je=function(Oi){return mt==="~"?Qt(Oi):!Qt(Oi)}}return be===-1?{name:v,value:M,test:function(Qt,Oi,en,tn){return je(Qt,Qt,Oi,en,tn)}}:{name:v,value:M,test:function(Qt,Oi,en,tn){let kn=function(no,lo,uo,oo){if(oo<0)return no;if(oo<lo.length)return lo[oo];if(oo>=100){oo-=100;let io=uo.split(".");if(io.unshift(uo),oo<io.length)return io[oo]}return null}(Qt,Oi,en,be);return je(kn||"",Qt,Oi,en,tn)}}}class jn{constructor(s){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=s}setRegex(s,v){let M;if(typeof v=="string")M=v;else{if(!(v instanceof RegExp))throw gt(s,"rules must start with a match string or regular expression: "+this.name);M=v.source}this.matchOnlyAtLineStart=M.length>0&&M[0]==="^",this.name=this.name+": "+M,this.regex=rn(s,"^(?:"+(this.matchOnlyAtLineStart?M.substr(1):M)+")")}setAction(s,v){this.action=function M(be,Ne,De){if(De){if(typeof De=="string")return De;if(De.token||De.token===""){if(typeof De.token!="string")throw gt(be,"a 'token' attribute must be of type string, in rule: "+Ne);{let je={token:De.token};if(De.token.indexOf("$")>=0&&(je.tokenSubst=!0),typeof De.bracket=="string")if(De.bracket==="@open")je.bracket=1;else{if(De.bracket!=="@close")throw gt(be,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+Ne);je.bracket=-1}if(De.next){if(typeof De.next!="string")throw gt(be,"the next state must be a string value in rule: "+Ne);{let mt=De.next;if(!/^(@pop|@push|@popall)$/.test(mt)&&(mt[0]==="@"&&(mt=mt.substr(1)),mt.indexOf("$")<0&&!function(It,Qt){let Oi=Qt;for(;Oi&&Oi.length>0;){if(It.stateNames[Oi])return!0;let en=Oi.lastIndexOf(".");Oi=en<0?null:Oi.substr(0,en)}return!1}(be,vi(be,mt,"",[],""))))throw gt(be,"the next state '"+De.next+"' is not defined in rule: "+Ne);je.next=mt}}return typeof De.goBack=="number"&&(je.goBack=De.goBack),typeof De.switchTo=="string"&&(je.switchTo=De.switchTo),typeof De.log=="string"&&(je.log=De.log),typeof De.nextEmbedded=="string"&&(je.nextEmbedded=De.nextEmbedded,be.usesEmbedded=!0),je}}if(Array.isArray(De)){let je=[];for(let mt=0,It=De.length;mt<It;mt++)je[mt]=M(be,Ne,De[mt]);return{group:je}}if(De.cases){let je=[];for(let It in De.cases)if(De.cases.hasOwnProperty(It)){let Qt=M(be,Ne,De.cases[It]);It==="@default"||It==="@"||It===""?je.push({test:void 0,value:Qt,name:It}):It==="@eos"?je.push({test:function(Oi,en,tn,kn){return kn},value:Qt,name:It}):je.push(Pn(be,Ne,It,Qt))}let mt=be.defaultToken;return{test:function(It,Qt,Oi,en){for(let tn of je)if(!tn.test||tn.test(It,Qt,Oi,en))return tn.value;return mt}}}throw gt(be,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+Ne)}return{token:""}}(s,this.name,v)}}function Vn(me){gn.a.registerLanguage(me)}function Ln(){let me=[];return me=me.concat(gn.a.getLanguages()),me}function mo(me){let s=ao.modeService.get().getLanguageIdentifier(me);return s?s.id:0}function yo(me,s){let v=ao.modeService.get().onDidCreateMode(M=>{M.getId()===me&&(v.dispose(),s())});return v}function fo(me,s){let v=ao.modeService.get().getLanguageIdentifier(me);if(!v)throw new Error("Cannot set configuration for unknown language "+me);return L.a.register(v,s)}class To{constructor(s){this._actual=s}getInitialState(){return this._actual.getInitialState()}tokenize(s,v,M){throw new Error("Not supported!")}tokenize2(s,v){let M=this._actual.tokenizeEncoded(s,v);return new Li.c(M.tokens,M.endState)}}class Co{constructor(s,v,M){this._standaloneThemeService=s,this._languageIdentifier=v,this._actual=M}getInitialState(){return this._actual.getInitialState()}_toClassicTokens(s,v,M){let be=[],Ne=0;for(let De=0,je=s.length;De<je;De++){let mt=s[De],It=mt.startIndex;De===0?It=0:It<Ne&&(It=Ne),be[De]=new Li.a(It+M,mt.scopes,v),Ne=It}return be}tokenize(s,v,M){let be,Ne=this._actual.tokenize(s,v),De=this._toClassicTokens(Ne.tokens,this._languageIdentifier.language,M);return be=Ne.endState.equals(v)?v:Ne.endState,new Li.b(De,be)}_toBinaryTokens(s,v){let M=this._languageIdentifier.id,be=this._standaloneThemeService.getColorTheme().tokenTheme,Ne=[],De=0,je=0;for(let It=0,Qt=s.length;It<Qt;It++){let Oi=s[It],en=be.match(M,Oi.scopes);if(De>0&&Ne[De-1]===en)continue;let tn=Oi.startIndex;It===0?tn=0:tn<je&&(tn=je),Ne[De++]=tn+v,Ne[De++]=en,je=tn}let mt=new Uint32Array(De);for(let It=0;It<De;It++)mt[It]=Ne[It];return mt}tokenize2(s,v,M){let be,Ne=this._actual.tokenize(s,v),De=this._toBinaryTokens(Ne.tokens,M);return be=Ne.endState.equals(v)?v:Ne.endState,new Li.c(De,be)}}function Wo(me){return me&&typeof me.then=="function"}function Sr(me,s){let v=ao.modeService.get().getLanguageIdentifier(me);if(!v)throw new Error("Cannot set tokens provider for unknown language "+me);let M=be=>function(Ne){return"tokenizeEncoded"in Ne}(be)?new To(be):new Co(ao.standaloneThemeService.get(),v,be);return Wo(s)?q.C.registerPromise(me,s.then(be=>M(be))):q.C.register(me,M(s))}function _s(me,s){let v=M=>function(be,Ne,De,je){return new li(be,Ne,De,je)}(ao.modeService.get(),ao.standaloneThemeService.get(),me,function(be,Ne){if(!Ne||typeof Ne!="object")throw new Error("Monarch: expecting a language definition object");let De={};De.languageId=be,De.noThrow=!1,De.maxStack=100,De.start=typeof Ne.start=="string"?Ne.start:null,De.ignoreCase=Fi(Ne.ignoreCase,!1),De.unicode=Fi(Ne.unicode,!1),De.tokenPostfix=cn(Ne.tokenPostfix,"."+De.languageId),De.defaultToken=cn(Ne.defaultToken,"source"),De.usesEmbedded=!1;let je=Ne;function mt(Qt,Oi,en){for(let tn of en){let kn=tn.include;if(kn){if(typeof kn!="string")throw gt(De,"an 'include' attribute must be a string at: "+Qt);if(kn[0]==="@"&&(kn=kn.substr(1)),!Ne.tokenizer[kn])throw gt(De,"include target '"+kn+"' is not defined at: "+Qt);mt(Qt+"."+kn,Oi,Ne.tokenizer[kn])}else{let no=new jn(Qt);if(Array.isArray(tn)&&tn.length>=1&&tn.length<=3)if(no.setRegex(je,tn[0]),tn.length>=3)if(typeof tn[1]=="string")no.setAction(je,{token:tn[1],next:tn[2]});else{if(typeof tn[1]!="object")throw gt(De,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Qt);{let lo=tn[1];lo.next=tn[2],no.setAction(je,lo)}}else no.setAction(je,tn[1]);else{if(!tn.regex)throw gt(De,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Qt);tn.name&&typeof tn.name=="string"&&(no.name=tn.name),tn.matchOnlyAtStart&&(no.matchOnlyAtLineStart=Fi(tn.matchOnlyAtLineStart,!1)),no.setRegex(je,tn.regex),no.setAction(je,tn.action)}Oi.push(no)}}}if(je.languageId=be,je.ignoreCase=De.ignoreCase,je.unicode=De.unicode,je.noThrow=De.noThrow,je.usesEmbedded=De.usesEmbedded,je.stateNames=Ne.tokenizer,je.defaultToken=De.defaultToken,!Ne.tokenizer||typeof Ne.tokenizer!="object")throw gt(De,"a language definition must define the 'tokenizer' attribute as an object");De.tokenizer=[];for(let Qt in Ne.tokenizer)if(Ne.tokenizer.hasOwnProperty(Qt)){De.start||(De.start=Qt);let Oi=Ne.tokenizer[Qt];De.tokenizer[Qt]=new Array,mt("tokenizer."+Qt,De.tokenizer[Qt],Oi)}if(De.usesEmbedded=je.usesEmbedded,Ne.brackets){if(!Array.isArray(Ne.brackets))throw gt(De,"the 'brackets' attribute must be defined as an array")}else Ne.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let It=[];for(let Qt of Ne.brackets){let Oi=Qt;if(Oi&&Array.isArray(Oi)&&Oi.length===3&&(Oi={token:Oi[2],open:Oi[0],close:Oi[1]}),Oi.open===Oi.close)throw gt(De,"open and close brackets in a 'brackets' attribute must be different: "+Oi.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Oi.open!="string"||typeof Oi.token!="string"||typeof Oi.close!="string")throw gt(De,"every element in the 'brackets' array must be a '{open,close,token}' object or array");It.push({token:Oi.token+De.tokenPostfix,open:Lt(De,Oi.open),close:Lt(De,Oi.close)})}return De.brackets=It,De.noThrow=!0,De}(me,M));return Wo(s)?q.C.registerPromise(me,s.then(M=>v(M))):q.C.register(me,v(s))}function Ra(me,s){return q.v.register(me,s)}function rs(me,s){return q.w.register(me,s)}function tr(me,s){return q.y.register(me,s)}function da(me,s){return q.p.register(me,{provideHover:(v,M,be)=>{let Ne=v.getWordAtPosition(M);return Promise.resolve(s.provideHover(v,M,be)).then(De=>{if(De)return!De.range&&Ne&&(De.range=new Ae.a(M.lineNumber,Ne.startColumn,M.lineNumber,Ne.endColumn)),De.range||(De.range=new Ae.a(M.lineNumber,M.column,M.lineNumber,M.column)),De})}})}function ec(me,s){return q.m.register(me,s)}function ta(me,s){return q.i.register(me,s)}function Pr(me,s){return q.u.register(me,s)}function Za(me,s){return q.f.register(me,s)}function Ma(me,s){return q.q.register(me,s)}function ha(me,s){return q.D.register(me,s)}function ua(me,s){return q.b.register(me,s)}function kl(me,s){return q.a.register(me,{provideCodeActions:(v,M,be,Ne)=>{let De=ao.markerService.get().read({resource:v.uri}).filter(je=>Ae.a.areIntersectingOrTouching(je,M));return s.provideCodeActions(v,M,{markers:De,only:be.only},Ne)}})}function Ms(me,s){return q.g.register(me,s)}function Pa(me,s){return q.j.register(me,s)}function Xa(me,s){return q.t.register(me,s)}function tc(me,s){return q.s.register(me,s)}function El(me,s){return q.d.register(me,s)}function Qa(me,s){return q.c.register(me,s)}function Jo(me,s){return q.o.register(me,s)}function Ja(me,s){return q.e.register(me,s)}function pa(me,s){return q.x.register(me,s)}function Tl(me,s){return q.l.register(me,s)}function el(me,s){return q.k.register(me,s)}let kr=self;f.g.wrappingIndent.defaultValue=0,f.g.glyphMargin.defaultValue=!1,f.g.autoIndent.defaultValue=3,f.g.overviewRulerLanes.defaultValue=2;let Vo=Object(D.a)();Vo.editor={create:Aa,onDidCreateEditor:Sl,createDiffEditor:Ka,createDiffNavigator:Js,createModel:Jl,setModelLanguage:ea,setModelMarkers:Ya,getModelMarkers:Nc,getModels:Oc,getModel:Ic,onDidCreateModel:x,onWillDisposeModel:c,onDidChangeModelLanguage:p,createWebWorker:F,colorizeElement:pe,colorize:He,colorizeModelLine:Qe,tokenize:Vt,defineTheme:$t,setTheme:ci,remeasureFonts:Ft,AccessibilitySupport:Ni.a,ContentWidgetPositionPreference:Ni.f,CursorChangeReason:Ni.g,DefaultEndOfLine:Ni.h,EditorAutoIndentStrategy:Ni.j,EditorOption:Ni.k,EndOfLinePreference:Ni.l,EndOfLineSequence:Ni.m,MinimapPosition:Ni.r,MouseTargetType:Ni.s,OverlayWidgetPositionPreference:Ni.t,OverviewRulerLane:Ni.u,RenderLineNumbersType:Ni.v,RenderMinimap:Ni.w,ScrollbarVisibility:Ni.y,ScrollType:Ni.x,TextEditorCursorBlinkingStyle:Ni.D,TextEditorCursorStyle:Ni.E,TrackedRangeStickiness:Ni.F,WrappingIndent:Ni.G,ConfigurationChangedEvent:f.b,BareFontInfo:j.a,FontInfo:j.b,TextModelResolvedOptions:U.e,FindMatch:U.b,EditorType:ie.a,EditorOptions:f.g},Vo.languages={register:Vn,getLanguages:Ln,onLanguage:yo,getEncodedLanguageId:mo,setLanguageConfiguration:fo,setTokensProvider:Sr,setMonarchTokensProvider:_s,registerReferenceProvider:Ra,registerRenameProvider:rs,registerCompletionItemProvider:El,registerSignatureHelpProvider:tr,registerHoverProvider:da,registerDocumentSymbolProvider:ec,registerDocumentHighlightProvider:ta,registerOnTypeRenameProvider:Pr,registerDefinitionProvider:Za,registerImplementationProvider:Ma,registerTypeDefinitionProvider:ha,registerCodeLensProvider:ua,registerCodeActionProvider:kl,registerDocumentFormattingEditProvider:Ms,registerDocumentRangeFormattingEditProvider:Pa,registerOnTypeFormattingEditProvider:Xa,registerLinkProvider:tc,registerColorProvider:Qa,registerFoldingRangeProvider:Jo,registerDeclarationProvider:Ja,registerSelectionRangeProvider:pa,registerDocumentSemanticTokensProvider:Tl,registerDocumentRangeSemanticTokensProvider:el,DocumentHighlightKind:Ni.i,CompletionItemKind:Ni.c,CompletionItemTag:Ni.d,CompletionItemInsertTextRule:Ni.b,SymbolKind:Ni.B,SymbolTag:Ni.C,IndentAction:Ni.n,CompletionTriggerKind:Ni.e,SignatureHelpTriggerKind:Ni.A,FoldingRangeKind:q.n};let Ll=Vo.CancellationTokenSource,Fr=Vo.Emitter,vs=Vo.KeyCode,Ps=Vo.KeyMod,Qd=Vo.Position,Jd=Vo.Range,eh=Vo.Selection,ic=Vo.SelectionDirection,th=Vo.MarkerSeverity,ih=Vo.MarkerTag,nh=Vo.Uri,oh=Vo.Token,rh=Vo.editor,ma=Vo.languages;kr.monaco=Vo,kr.require!==void 0&&typeof kr.require.config=="function"&&kr.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"]})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("modeService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(18),f=o(141);o.d(w,"b",function(){return f.a});let D=Object(h.c)("quickInputService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(12);class f{constructor(E,ge){this._tokens=E,this._tokensCount=this._tokens.length>>>1,this._text=ge}equals(E){return E instanceof f&&this.slicedEquals(E,0,this._tokensCount)}slicedEquals(E,ge,W){if(this._text!==E._text||this._tokensCount!==E._tokensCount)return!1;let Q=ge<<1,y=Q+(W<<1);for(let C=Q;C<y;C++)if(this._tokens[C]!==E._tokens[C])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(E){return E>0?this._tokens[E-1<<1]:0}getMetadata(E){return this._tokens[1+(E<<1)]}getLanguageId(E){let ge=this._tokens[1+(E<<1)];return h.B.getLanguageId(ge)}getStandardTokenType(E){let ge=this._tokens[1+(E<<1)];return h.B.getTokenType(ge)}getForeground(E){let ge=this._tokens[1+(E<<1)];return h.B.getForeground(ge)}getClassName(E){let ge=this._tokens[1+(E<<1)];return h.B.getClassNameFromMetadata(ge)}getInlineStyle(E,ge){let W=this._tokens[1+(E<<1)];return h.B.getInlineStyleFromMetadata(W,ge)}getEndOffset(E){return this._tokens[E<<1]}findTokenIndexAtOffset(E){return f.findIndexInTokensArray(this._tokens,E)}inflate(){return this}sliceAndInflate(E,ge,W){return new D(this,E,ge,W)}static convertToEndOffset(E,ge){let W=(E.length>>>1)-1;for(let Q=0;Q<W;Q++)E[Q<<1]=E[Q+1<<1];E[W<<1]=ge}static findIndexInTokensArray(E,ge){if(E.length<=2)return 0;let W=0,Q=(E.length>>>1)-1;for(;W<Q;){let y=W+Math.floor((Q-W)/2),C=E[y<<1];if(C===ge)return y+1;C<ge?W=y+1:C>ge&&(Q=y)}return W}}class D{constructor(E,ge,W,Q){this._source=E,this._startOffset=ge,this._endOffset=W,this._deltaOffset=Q,this._firstTokenIndex=E.findTokenIndexAtOffset(ge),this._tokensCount=0;for(let y=this._firstTokenIndex,C=E.getCount();y<C&&!(E.getStartOffset(y)>=W);y++)this._tokensCount++}equals(E){return E instanceof D&&this._startOffset===E._startOffset&&this._endOffset===E._endOffset&&this._deltaOffset===E._deltaOffset&&this._source.slicedEquals(E._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(E){return this._source.getForeground(this._firstTokenIndex+E)}getEndOffset(E){let ge=this._source.getEndOffset(this._firstTokenIndex+E);return Math.min(this._endOffset,ge)-this._startOffset+this._deltaOffset}getClassName(E){return this._source.getClassName(this._firstTokenIndex+E)}getInlineStyle(E,ge){return this._source.getInlineStyle(this._firstTokenIndex+E,ge)}findTokenIndexAtOffset(E){return this._source.findTokenIndexAtOffset(E+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"c",function(){return D}),o.d(w,"a",function(){return H});var h=o(143);function f(E){return!(!E||typeof E.getEditorType!="function")&&E.getEditorType()===h.a.ICodeEditor}function D(E){return!(!E||typeof E.getEditorType!="function")&&E.getEditorType()===h.a.IDiffEditor}function H(E){return f(E)?E:D(E)?E.getModifiedEditor():null}},function(Ie,w,o){"use strict";o.d(w,"e",function(){return se}),o.d(w,"f",function(){return ke}),o.d(w,"a",function(){return Y}),o.d(w,"h",function(){return he}),o.d(w,"g",function(){return Ce}),o.d(w,"d",function(){return L}),o.d(w,"b",function(){return nt}),o.d(w,"c",function(){return J}),o(197);var h=o(2),f=o(14),D=o(15),H=o(98),E=o(1),ge=o(11),W=o(61),Q=o(67),y=o(6),C=o(44);class S extends Error{constructor(A,ee){super(`ListError [${A}] ${ee}`)}}var P=o(162),V=o(16),k=o(46);class l{constructor(A){this.spliceables=A}splice(A,ee,de){this.spliceables.forEach(Oe=>Oe.splice(A,ee,de))}}var T,N=o(118),b=o(71),g=o(66),j=function(Se,A,ee,de){var Oe,$e=arguments.length,pt=$e<3?A:de===null?de=Object.getOwnPropertyDescriptor(A,ee):de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pt=Reflect.decorate(Se,A,ee,de);else for(var it=Se.length-1;it>=0;it--)(Oe=Se[it])&&(pt=($e<3?Oe(pt):$e>3?Oe(A,ee,pt):Oe(A,ee))||pt);return $e>3&&pt&&Object.defineProperty(A,ee,pt),pt};class ie{constructor(A){this.trait=A,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(A){return A}renderElement(A,ee,de){let Oe=Object(D.j)(this.renderedElements,$e=>$e.templateData===de);if(Oe>=0){let $e=this.renderedElements[Oe];this.trait.unrender(de),$e.index=ee}else{let $e={index:ee,templateData:de};this.renderedElements.push($e)}this.trait.renderIndex(ee,de)}splice(A,ee,de){let Oe=[];for(let $e of this.renderedElements)$e.index<A?Oe.push($e):$e.index>=A+ee&&Oe.push({index:$e.index+de-ee,templateData:$e.templateData});this.renderedElements=Oe}renderIndexes(A){for(let{index:ee,templateData:de}of this.renderedElements)A.indexOf(ee)>-1&&this.trait.renderIndex(ee,de)}disposeTemplate(A){let ee=Object(D.j)(this.renderedElements,de=>de.templateData===A);ee<0||this.renderedElements.splice(ee,1)}}class U{constructor(A){this._trait=A,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new ie(this)}splice(A,ee,de){let Oe=de.length-ee,$e=A+ee,pt=[...this.sortedIndexes.filter(it=>it<A),...de.map((it,At)=>it?At+A:-1).filter(it=>it!==-1),...this.sortedIndexes.filter(it=>it>=$e).map(it=>it+Oe)];this.renderer.splice(A,ee,de.length),this._set(pt,pt)}renderIndex(A,ee){E.ab(ee,this._trait,this.contains(A))}unrender(A){E.Q(A,this._trait)}set(A,ee){return this._set(A,[...A].sort(fe),ee)}_set(A,ee,de){let Oe=this.indexes,$e=this.sortedIndexes;this.indexes=A,this.sortedIndexes=ee;let pt=ht($e,A);return this.renderer.renderIndexes(pt),this._onChange.fire({indexes:A,browserEvent:de}),Oe}get(){return this.indexes}contains(A){return Object(D.c)(this.sortedIndexes,A,fe)>=0}dispose(){Object(h.f)(this._onChange)}}j([H.a],U.prototype,"renderer",null);class q extends U{constructor(A){super("selected"),this.setAriaSelected=A}renderIndex(A,ee){super.renderIndex(A,ee),this.setAriaSelected&&(this.contains(A)?ee.setAttribute("aria-selected","true"):ee.setAttribute("aria-selected","false"))}}class B{constructor(A,ee,de){this.trait=A,this.view=ee,this.identityProvider=de}splice(A,ee,de){if(!this.identityProvider)return this.trait.splice(A,ee,de.map(()=>!1));let Oe=this.trait.get().map(pt=>this.identityProvider.getId(this.view.element(pt)).toString()),$e=de.map(pt=>Oe.indexOf(this.identityProvider.getId(pt).toString())>-1);this.trait.splice(A,ee,$e)}}function se(Se){return Se.tagName==="INPUT"||Se.tagName==="TEXTAREA"}function ke(Se){return!!E.I(Se,"monaco-editor")||!E.I(Se,"monaco-list")&&!!Se.parentElement&&ke(Se.parentElement)}class xe{constructor(A,ee,de){this.list=A,this.view=ee,this.disposables=new h.b;let Oe=de.multipleSelectionSupport!==!1,$e=y.b.chain(Object(C.a)(ee.domNode,"keydown")).filter(pt=>!se(pt.target)).map(pt=>new Q.a(pt));$e.filter(pt=>pt.keyCode===3).on(this.onEnter,this,this.disposables),$e.filter(pt=>pt.keyCode===16).on(this.onUpArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===18).on(this.onDownArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===11).on(this.onPageUpArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===12).on(this.onPageDownArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===9).on(this.onEscape,this,this.disposables),Oe&&$e.filter(pt=>(ge.f?pt.metaKey:pt.ctrlKey)&&pt.keyCode===31).on(this.onCtrlA,this,this.disposables)}onEnter(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection(this.list.getFocus(),A.browserEvent)}onUpArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusPrevious(1,!1,A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusNext(1,!1,A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusPreviousPage(A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusNextPage(A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection(Object(D.s)(this.list.length),A.browserEvent),this.view.domNode.focus()}onEscape(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection([],A.browserEvent),this.view.domNode.focus()}dispose(){this.disposables.dispose()}}(function(Se){Se[Se.Idle=0]="Idle",Se[Se.Typing=1]="Typing"})(T||(T={}));let Y=new class{mightProducePrintableCharacter(Se){return!(Se.ctrlKey||Se.metaKey||Se.altKey)&&(Se.keyCode>=31&&Se.keyCode<=56||Se.keyCode>=21&&Se.keyCode<=30||Se.keyCode>=93&&Se.keyCode<=102||Se.keyCode>=80&&Se.keyCode<=90)}};class Z{constructor(A,ee,de,Oe){this.list=A,this.view=ee,this.keyboardNavigationLabelProvider=de,this.delegate=Oe,this.enabled=!1,this.state=T.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new h.b,this.disposables=new h.b,this.updateOptions(A.options)}updateOptions(A){A.enableKeyboardNavigation===void 0||!!A.enableKeyboardNavigation?this.enable():this.disable(),A.automaticKeyboardNavigation!==void 0&&(this.automaticKeyboardNavigation=A.automaticKeyboardNavigation)}enable(){if(this.enabled)return;let A=y.b.chain(Object(C.a)(this.view.domNode,"keydown")).filter(de=>!se(de.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(de=>new Q.a(de)).filter(de=>this.delegate.mightProducePrintableCharacter(de)).forEach(de=>{de.stopPropagation(),de.preventDefault()}).map(de=>de.browserEvent.key).event,ee=y.b.debounce(A,()=>null,800);y.b.reduce(y.b.any(A,ee),(de,Oe)=>Oe===null?null:(de||"")+Oe)(this.onInput,this,this.enabledDisposables),ee(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var A;let ee=this.list.getFocus();if(ee.length>0&&ee[0]===this.previouslyFocused){let de=(A=this.list.options.accessibilityProvider)===null||A===void 0?void 0:A.getAriaLabel(this.list.element(ee[0]));de&&Object(g.a)(de)}this.previouslyFocused=-1}onInput(A){if(!A)return this.state=T.Idle,void(this.triggered=!1);let ee=this.list.getFocus(),de=ee.length>0?ee[0]:0,Oe=this.state===T.Idle?1:0;this.state=T.Typing;for(let $e=0;$e<this.list.length;$e++){let pt=(de+$e+Oe)%this.list.length,it=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(pt)),At=it&&it.toString();if(At===void 0||Object(b.h)(A,At))return this.previouslyFocused=de,this.list.setFocus([pt]),void this.list.reveal(pt)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class te{constructor(A,ee){this.list=A,this.view=ee,this.disposables=new h.b,y.b.chain(Object(C.a)(ee.domNode,"keydown")).filter(de=>!se(de.target)).map(de=>new Q.a(de)).filter(de=>!(de.keyCode!==2||de.ctrlKey||de.metaKey||de.shiftKey||de.altKey)).on(this.onTab,this,this.disposables)}onTab(A){if(A.target!==this.view.domNode)return;let ee=this.list.getFocus();if(ee.length===0)return;let de=this.view.domElement(ee[0]);if(!de)return;let Oe=de.querySelector("[tabIndex]");if(!(Oe&&Oe instanceof HTMLElement&&Oe.tabIndex!==-1))return;let $e=window.getComputedStyle(Oe);$e.visibility!=="hidden"&&$e.display!=="none"&&(A.preventDefault(),A.stopPropagation(),Oe.focus())}dispose(){this.disposables.dispose()}}function he(Se){return ge.f?Se.browserEvent.metaKey:Se.browserEvent.ctrlKey}function Ce(Se){return Se.browserEvent.shiftKey}let Ae={isSelectionSingleChangeEvent:he,isSelectionRangeChangeEvent:Ce};class L{constructor(A){this.list=A,this.disposables=new h.b,this._onPointer=new y.a,this.onPointer=this._onPointer.event,this.multipleSelectionSupport=A.options.multipleSelectionSupport!==!1,this.multipleSelectionSupport&&(this.multipleSelectionController=A.options.multipleSelectionController||Ae),this.mouseSupport=A.options.mouseSupport===void 0||!!A.options.mouseSupport,this.mouseSupport&&(A.onMouseDown(this.onMouseDown,this,this.disposables),A.onContextMenu(this.onContextMenu,this,this.disposables),A.onMouseDblClick(this.onDoubleClick,this,this.disposables),A.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(W.b.addTarget(A.getHTMLElement()))),y.b.any(A.onMouseClick,A.onMouseMiddleClick,A.onTap)(this.onViewPointer,this,this.disposables)}isSelectionSingleChangeEvent(A){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(A):ge.f?A.browserEvent.metaKey:A.browserEvent.ctrlKey}isSelectionRangeChangeEvent(A){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(A):A.browserEvent.shiftKey}isSelectionChangeEvent(A){return this.isSelectionSingleChangeEvent(A)||this.isSelectionRangeChangeEvent(A)}onMouseDown(A){ke(A.browserEvent.target)||document.activeElement!==A.browserEvent.target&&this.list.domFocus()}onContextMenu(A){if(ke(A.browserEvent.target))return;let ee=A.index===void 0?[]:[A.index];this.list.setFocus(ee,A.browserEvent)}onViewPointer(A){if(!this.mouseSupport||se(A.browserEvent.target)||ke(A.browserEvent.target))return;let ee=this.list.getFocus()[0],de=this.list.getSelection();ee=ee===void 0?de[0]:ee;let Oe=A.index;return Oe===void 0?(this.list.setFocus([],A.browserEvent),void this.list.setSelection([],A.browserEvent)):this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(A)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(A)?this.changeSelection(A,ee):(this.list.setFocus([Oe],A.browserEvent),($e=A.browserEvent)instanceof MouseEvent&&$e.button===2||this.list.setSelection([Oe],A.browserEvent),void this._onPointer.fire(A));var $e}onDoubleClick(A){if(se(A.browserEvent.target)||ke(A.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(A))return;let ee=this.list.getFocus();this.list.setSelection(ee,A.browserEvent)}changeSelection(A,ee){let de=A.index;if(this.isSelectionRangeChangeEvent(A)&&ee!==void 0){let Oe=Math.min(ee,de),$e=Math.max(ee,de),pt=Object(D.s)(Oe,$e+1),it=this.list.getSelection(),At=function(_i,wt){let Ni=_i.indexOf(wt);if(Ni===-1)return[];let pi=[],et=Ni-1;for(;et>=0&&_i[et]===wt-(Ni-et);)pi.push(_i[et--]);for(pi.reverse(),et=Ni;et<_i.length&&_i[et]===wt+(et-Ni);)pi.push(_i[et++]);return pi}(ht(it,[ee]),ee);if(At.length===0)return;let Nt=ht(pt,function(_i,wt){let Ni=[],pi=0,et=0;for(;pi<_i.length||et<wt.length;)if(pi>=_i.length)Ni.push(wt[et++]);else if(et>=wt.length)Ni.push(_i[pi++]);else{if(_i[pi]===wt[et]){pi++,et++;continue}_i[pi]<wt[et]?Ni.push(_i[pi++]):et++}return Ni}(it,At));this.list.setSelection(Nt,A.browserEvent)}else if(this.isSelectionSingleChangeEvent(A)){let Oe=this.list.getSelection(),$e=Oe.filter(pt=>pt!==de);this.list.setFocus([de]),Oe.length===$e.length?this.list.setSelection([...$e,de],A.browserEvent):this.list.setSelection($e,A.browserEvent)}}dispose(){this.disposables.dispose()}}class nt{constructor(A,ee){this.styleElement=A,this.selectorSuffix=ee}style(A){let ee=this.selectorSuffix&&"."+this.selectorSuffix,de=[];A.listBackground&&(A.listBackground.isOpaque()?de.push(`.monaco-list${ee} .monaco-list-rows { background: ${A.listBackground}; }`):ge.f||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),A.listFocusBackground&&(de.push(`.monaco-list${ee}:focus .monaco-list-row.focused { background-color: ${A.listFocusBackground}; }`),de.push(`.monaco-list${ee}:focus .monaco-list-row.focused:hover { background-color: ${A.listFocusBackground}; }`)),A.listFocusForeground&&de.push(`.monaco-list${ee}:focus .monaco-list-row.focused { color: ${A.listFocusForeground}; }`),A.listActiveSelectionBackground&&(de.push(`.monaco-list${ee}:focus .monaco-list-row.selected { background-color: ${A.listActiveSelectionBackground}; }`),de.push(`.monaco-list${ee}:focus .monaco-list-row.selected:hover { background-color: ${A.listActiveSelectionBackground}; }`)),A.listActiveSelectionForeground&&de.push(`.monaco-list${ee}:focus .monaco-list-row.selected { color: ${A.listActiveSelectionForeground}; }`),A.listFocusAndSelectionBackground&&de.push(` +`;var Ko=r(93),rs=r(44);class Hs{constructor(s,v,M,be,Ne){this.contextViewService=s,this.telemetryService=v,this.notificationService=M,this.keybindingService=be,this.themeService=Ne,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(s){this.options=s}showContextMenu(s){let v=s.getActions();if(!v.length)return;let M;this.focusToReturn=document.activeElement;let be=Object(E.M)(s.domForShadowRoot)?s.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>s.getAnchor(),canRelayout:!1,anchorAlignment:s.anchorAlignment,render:Ne=>{let Oe=s.getMenuClassName?s.getMenuClassName():"";Oe&&(Ne.className+=" "+Oe),this.options.blockMouse&&(this.block=Ne.appendChild(Object(E.a)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(rs.a)(this.block,E.c.MOUSE_DOWN)(It=>It.stopPropagation()));let je=new Y.b,mt=s.actionRunner||new vo.b;return mt.onDidBeforeRun(this.onActionRun,this,je),mt.onDidRun(this.onDidActionRun,this,je),M=new $o(Ne,v,{actionViewItemProvider:s.getActionViewItem,context:s.getActionsContext?s.getActionsContext():null,actionRunner:mt,getKeyBinding:s.getKeyBinding?s.getKeyBinding:It=>this.keybindingService.lookupKeybinding(It.id)}),je.add(Object(Ko.c)(M,this.themeService)),M.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,je),M.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,je),Object(rs.a)(window,E.c.BLUR)(()=>{this.contextViewService.hideContextView(!0)},null,je),Object(rs.a)(window,E.c.MOUSE_DOWN)(It=>{if(It.defaultPrevented)return;let Qt=new hs.a(It),Di=Qt.target;if(!Qt.rightButton){for(;Di;){if(Di===Ne)return;Di=Di.parentElement}this.contextViewService.hideContextView(!0)}},null,je),Object(Y.e)(je,M)},focus:()=>{M&&M.focus(!!s.autoSelectFirstItem)},onHide:Ne=>{s.onHide&&s.onHide(!!Ne),this.block&&(Object(E.S)(this.block),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},be,!!be)}onActionRun(s){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:s.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(s){s.error&&this.notificationService&&this.notificationService.error(s.error)}}var ms=r(120),gs=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Do=function(me,s){return function(v,M){s(v,M,me)}};let Kr=class extends Y.a{constructor(me,s,v,M,be){super(),this._onDidContextMenu=this._register(new yi.a),this.onDidContextMenu=this._onDidContextMenu.event,this.contextMenuHandler=new Hs(v,me,s,M,be)}configure(me){this.contextMenuHandler.configure(me)}showContextMenu(me){this.contextMenuHandler.showContextMenu(me),this._onDidContextMenu.fire()}};Kr=gs([Do(0,ms.a),Do(1,Mt.a),Do(2,Te.b),Do(3,ve.a),Do(4,Re.c)],Kr);let ro=Object(Ee.c)("layoutService");var Sa=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},qs=function(me,s){return function(v,M){s(v,M,me)}};let Oo=class extends Y.a{constructor(me){super(),this.layoutService=me,this.currentViewDisposable=Y.a.None,this.container=me.container,this.contextView=this._register(new no(this.container,1)),this.layout(),this._register(me.onLayout(()=>this.layout()))}setContainer(me,s){this.contextView.setContainer(me,s||1)}showContextView(me,s,v){s?s!==this.container&&(this.container=s,this.setContainer(s,v?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(me);let M=Object(Y.h)(()=>{this.currentViewDisposable===M&&this.hideContextView()});return this.currentViewDisposable=M,M}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(me){this.contextView.hide(me)}};Oo=Sa([qs(0,ro)],Oo);var Ao=r(171);class $s{constructor(s){this.incoming=new Map,this.outgoing=new Map,this.data=s}}class ka{constructor(s){this._hashFn=s,this._nodes=new Map}roots(){let s=[];for(let v of this._nodes.values())v.outgoing.size===0&&s.push(v);return s}insertEdge(s,v){let M=this.lookupOrInsertNode(s),be=this.lookupOrInsertNode(v);M.outgoing.set(this._hashFn(v),be),be.incoming.set(this._hashFn(s),M)}removeNode(s){let v=this._hashFn(s);this._nodes.delete(v);for(let M of this._nodes.values())M.outgoing.delete(v),M.incoming.delete(v)}lookupOrInsertNode(s){let v=this._hashFn(s),M=this._nodes.get(v);return M||(M=new $s(s),this._nodes.set(v,M)),M}isEmpty(){return this._nodes.size===0}toString(){let s=[];for(let[v,M]of this._nodes)s.push(`${v}, (incoming)[${[...M.incoming.keys()].join(", ")}], (outgoing)[${[...M.outgoing.keys()].join(",")}]`);return s.join(` +`)}}var ho=r(163),Ks=r(149);class Ts extends Error{constructor(s){super("cyclic dependency between services"),this.message=s.toString()}}class Xr{constructor(s=new Ks.a,v=!1,M){this._services=s,this._strict=v,this._parent=M,this._services.set(Ee.a,this)}createChild(s){return new Xr(s,this._strict,this)}invokeFunction(s,...v){let M=oo.traceInvocation(s),be=!1;try{return s({get:(Ne,Oe)=>{if(be)throw Object(z.c)("service accessor is only valid during the invocation of its target method");let je=this._getOrCreateServiceInstance(Ne,M);if(!je&&Oe!==Ee.d)throw new Error(`[invokeFunction] unknown service '${Ne}'`);return je}},...v)}finally{be=!0,M.stop()}}createInstance(s,...v){let M,be;return s instanceof ho.a?(M=oo.traceCreation(s.ctor),be=this._createInstance(s.ctor,s.staticArguments.concat(v),M)):(M=oo.traceCreation(s),be=this._createInstance(s,v,M)),M.stop(),be}_createInstance(s,v=[],M){let be=Ee.b.getServiceDependencies(s).sort((je,mt)=>je.index-mt.index),Ne=[];for(let je of be){let mt=this._getOrCreateServiceInstance(je.id,M);if(!mt&&this._strict&&!je.optional)throw new Error(`[createInstance] ${s.name} depends on UNKNOWN service ${je.id}.`);Ne.push(mt)}let Oe=be.length>0?be[0].index:v.length;if(v.length!==Oe){console.warn(`[createInstance] First service dependency of ${s.name} at position ${Oe+1} conflicts with ${v.length} static arguments`);let je=Oe-v.length;v=je>0?v.concat(new Array(je)):v.slice(0,Oe)}return new s(...[...v,...Ne])}_setServiceInstance(s,v){if(this._services.get(s)instanceof ho.a)this._services.set(s,v);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(s,v)}}_getServiceInstanceOrDescriptor(s){let v=this._services.get(s);return!v&&this._parent?this._parent._getServiceInstanceOrDescriptor(s):v}_getOrCreateServiceInstance(s,v){let M=this._getServiceInstanceOrDescriptor(s);return M instanceof ho.a?this._createAndCacheServiceInstance(s,M,v.branch(s,!0)):(v.branch(s,!1),M)}_createAndCacheServiceInstance(s,v,M){let be=new ka(je=>je.id.toString()),Ne=0,Oe=[{id:s,desc:v,_trace:M}];for(;Oe.length;){let je=Oe.pop();if(be.lookupOrInsertNode(je),Ne++>1e3)throw new Ts(be);for(let mt of Ee.b.getServiceDependencies(je.desc.ctor)){let It=this._getServiceInstanceOrDescriptor(mt.id);if(It||mt.optional||console.warn(`[createInstance] ${s} depends on ${mt.id} which is NOT registered.`),It instanceof ho.a){let Qt={id:mt.id,desc:It,_trace:je._trace.branch(mt.id,!0)};be.insertEdge(je,Qt),Oe.push(Qt)}}}for(;;){let je=be.roots();if(je.length===0){if(!be.isEmpty())throw new Ts(be);break}for(let{data:mt}of je){let It=this._createServiceInstanceWithOwner(mt.id,mt.desc.ctor,mt.desc.staticArguments,mt.desc.supportsDelayedInstantiation,mt._trace);this._setServiceInstance(mt.id,It),be.removeNode(mt)}}return this._getServiceInstanceOrDescriptor(s)}_createServiceInstanceWithOwner(s,v,M=[],be,Ne){if(this._services.get(s)instanceof ho.a)return this._createServiceInstance(v,M,be,Ne);if(this._parent)return this._parent._createServiceInstanceWithOwner(s,v,M,be,Ne);throw new Error("illegalState - creating UNKNOWN service instance "+v.name)}_createServiceInstance(s,v=[],M,be){if(M){let Ne=new xe.b(()=>this._createInstance(s,v,be));return new Proxy(Object.create(null),{get(Oe,je){if(je in Oe)return Oe[je];let mt=Ne.value,It=mt[je];return typeof It!="function"||(It=It.bind(mt),Oe[je]=It),It},set:(Oe,je,mt)=>(Ne.value[je]=mt,!0)})}return this._createInstance(s,v,be)}}class oo{constructor(s,v){this.type=s,this.name=v,this._start=Date.now(),this._dep=[]}static traceInvocation(s){return oo._None}static traceCreation(s){return oo._None}branch(s,v){let M=new oo(2,s.toString());return this._dep.push([s,v,M]),M}stop(){let s=Date.now()-this._start;oo._totals+=s;let v=!1,M=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,""+function be(Ne,Oe){let je=[],mt=new Array(Ne+1).join(" ");for(let[It,Qt,Di]of Oe._dep)if(Qt&&Di){v=!0,je.push(`${mt}CREATES -> ${It}`);let en=be(Ne+1,Di);en&&je.push(en)}else je.push(`${mt}uses -> ${It}`);return je.join(` +`)}(1,this),`DONE, took ${s.toFixed(2)}ms (grand total ${oo._totals.toFixed(2)}ms)`];(s>2||v)&&console.log(M.join(` +`))}}oo._None=new class extends oo{constructor(){super(-1,null)}stop(){}branch(){return this}},oo._totals=0;var oa=r(159),Ls=r(136),Hr=r(63),Ns=r(37);class so{constructor(){this._byResource=new bn.b,this._byOwner=new Map}set(s,v,M){let be=this._byResource.get(s);be||(be=new Map,this._byResource.set(s,be)),be.set(v,M);let Ne=this._byOwner.get(v);Ne||(Ne=new bn.b,this._byOwner.set(v,Ne)),Ne.set(s,M)}get(s,v){let M=this._byResource.get(s);return M==null?void 0:M.get(v)}delete(s,v){let M=!1,be=!1,Ne=this._byResource.get(s);Ne&&(M=Ne.delete(v));let Oe=this._byOwner.get(v);if(Oe&&(be=Oe.delete(s)),M!==be)throw new Error("illegal state");return M&&be}values(s){var v,M,be,Ne;return typeof s=="string"?(M=(v=this._byOwner.get(s))===null||v===void 0?void 0:v.values())!==null&&M!==void 0?M:Ns.a.empty():C.a.isUri(s)?(Ne=(be=this._byResource.get(s))===null||be===void 0?void 0:be.values())!==null&&Ne!==void 0?Ne:Ns.a.empty():Ns.a.map(Ns.a.concat(...this._byOwner.values()),Oe=>Oe[1])}}class Zt{constructor(s){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new bn.b,this._service=s,this._subscription=s.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(s){for(let v of s){let M=this._data.get(v);M&&this._substract(M);let be=this._resourceStats(v);this._add(be),this._data.set(v,be)}}_resourceStats(s){let v={errors:0,warnings:0,infos:0,unknowns:0};if(s.scheme===Q.b.inMemory||s.scheme===Q.b.walkThrough||s.scheme===Q.b.walkThroughSnippet)return v;for(let{severity:M}of this._service.read({resource:s}))M===Hr.c.Error?v.errors+=1:M===Hr.c.Warning?v.warnings+=1:M===Hr.c.Info?v.infos+=1:v.unknowns+=1;return v}_substract(s){this.errors-=s.errors,this.warnings-=s.warnings,this.infos-=s.infos,this.unknowns-=s.unknowns}_add(s){this.errors+=s.errors,this.warnings+=s.warnings,this.infos+=s.infos,this.unknowns+=s.unknowns}}class i{constructor(){this._onMarkerChanged=new yi.a,this.onMarkerChanged=yi.b.debounce(this._onMarkerChanged.event,i._debouncer,0),this._data=new so,this._stats=new Zt(this)}dispose(){this._stats.dispose()}remove(s,v){for(let M of v||[])this.changeOne(s,M,[])}changeOne(s,v,M){if(Object(fe.n)(M))this._data.delete(v,s)&&this._onMarkerChanged.fire([v]);else{let be=[];for(let Ne of M){let Oe=i._toMarker(s,v,Ne);Oe&&be.push(Oe)}this._data.set(v,s,be),this._onMarkerChanged.fire([v])}}static _toMarker(s,v,M){let{code:be,severity:Ne,message:Oe,source:je,startLineNumber:mt,startColumn:It,endLineNumber:Qt,endColumn:Di,relatedInformation:en,tags:tn}=M;if(Oe)return mt=mt>0?mt:1,It=It>0?It:1,Qt=Qt>=mt?Qt:mt,Di=Di>0?Di:It,{resource:v,owner:s,code:be,severity:Ne,message:Oe,source:je,startLineNumber:mt,startColumn:It,endLineNumber:Qt,endColumn:Di,relatedInformation:en,tags:tn}}read(s=Object.create(null)){let{owner:v,resource:M,severities:be,take:Ne}=s;if((!Ne||Ne<0)&&(Ne=-1),v&&M){let Oe=this._data.get(M,v);if(Oe){let je=[];for(let mt of Oe)if(i._accept(mt,be)){let It=je.push(mt);if(Ne>0&&It===Ne)break}return je}return[]}if(v||M){let Oe=this._data.values(M??v),je=[];for(let mt of Oe)for(let It of mt)if(i._accept(It,be)){let Qt=je.push(It);if(Ne>0&&Qt===Ne)return je}return je}{let Oe=[];for(let je of this._data.values())for(let mt of je)if(i._accept(mt,be)){let It=Oe.push(mt);if(Ne>0&&It===Ne)return Oe}return Oe}}static _accept(s,v){return v===void 0||(v&s.severity)===s.severity}static _debouncer(s,v){s||(i._dedupeMap=new bn.b,s=[]);for(let M of v)i._dedupeMap.has(M)||(i._dedupeMap.set(M,!0),s.push(M));return s}}var a=r(97),_=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},R=function(me,s){return function(v,M){s(v,M,me)}};let K=class{constructor(me){this._commandService=me}createMenu(me,s){return new we(me,this._commandService,s,this)}};K=_([R(0,S.b)],K);let we=class Lc{constructor(s,v,M,be){this._id=s,this._commandService=v,this._contextKeyService=M,this._menuService=be,this._onDidChange=new yi.a,this._dispoables=new Y.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(yi.b.debounce(yi.b.filter(fi.d.onDidChangeMenu,Ne=>Ne.has(this._id)),()=>{},50)(this._build,this)),this._dispoables.add(yi.b.debounce(this._contextKeyService.onDidChangeContext,(Ne,Oe)=>Ne||Oe.affectsSome(this._contextKeys),50)(Ne=>Ne&&this._onDidChange.fire(void 0),this))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();let s=fi.d.getMenuItems(this._id),v;s.sort(Lc._compareMenuItems);for(let M of s){let be=M.group||"";if(v&&v[0]===be||(v=[be,[]],this._menuGroups.push(v)),v[1].push(M),Lc._fillInKbExprKeys(M.when,this._contextKeys),Object(fi.f)(M)&&M.command.precondition&&Lc._fillInKbExprKeys(M.command.precondition,this._contextKeys),Object(fi.f)(M)&&M.command.toggled){let Ne=M.command.toggled.condition||M.command.toggled;Lc._fillInKbExprKeys(Ne,this._contextKeys)}}this._onDidChange.fire(this)}get onDidChange(){return this._onDidChange.event}getActions(s){let v=[];for(let M of this._menuGroups){let[be,Ne]=M,Oe=[];for(let je of Ne)if(this._contextKeyService.contextMatchesRules(je.when)){let mt=Object(fi.f)(je)?new fi.c(je.command,je.alt,s,this._contextKeyService,this._commandService):new fi.e(je,this._menuService,this._contextKeyService,s);Oe.push(mt)}Oe.length>0&&v.push([be,Oe])}return v}static _fillInKbExprKeys(s,v){if(s)for(let M of s.keys())v.add(M)}static _compareMenuItems(s,v){let M=s.group,be=v.group;if(M!==be){if(!M)return 1;if(!be||M==="navigation")return-1;if(be==="navigation")return 1;let je=M.localeCompare(be);if(je!==0)return je}let Ne=s.order||0,Oe=v.order||0;return Ne<Oe?-1:Ne>Oe?1:Lc._compareTitles(Object(fi.f)(s)?s.command.title:s.title,Object(fi.f)(v)?v.command.title:v.title)}static _compareTitles(s,v){let M=typeof s=="string"?s:s.value,be=typeof v=="string"?v:v.value;return M.localeCompare(be)}};we=_([R(1,S.b),R(2,ui.b),R(3,fi.a)],we);var Pe=r(192),Ve=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Je=function(me,s){return function(v,M){s(v,M,me)}};function at(me){return me.toString()}class bt extends Y.a{constructor(s){super(),this.model=s,this._markersData=new Map,this._register(Object(Y.h)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(s,v){let M=[...this._markersData.keys()];this._markersData.clear();let be=this.model.deltaDecorations(M,v);for(let Ne=0;Ne<be.length;Ne++)this._markersData.set(be[Ne],s[Ne]);return M.length!==0||be.length!==0}getMarker(s){return this._markersData.get(s.id)}}let Bt=class extends Y.a{constructor(me,s){super(),this._markerService=s,this._onDidChangeMarker=this._register(new yi.a),this._markerDecorations=new Map,me.getModels().forEach(v=>this._onModelAdded(v)),this._register(me.onModelAdded(this._onModelAdded,this)),this._register(me.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(me=>me.dispose()),this._markerDecorations.clear()}getMarker(me,s){let v=this._markerDecorations.get(at(me.uri));return v&&v.getMarker(s)||null}_handleMarkerChange(me){me.forEach(s=>{let v=this._markerDecorations.get(at(s));v&&this._updateDecorations(v)})}_onModelAdded(me){let s=new bt(me);this._markerDecorations.set(at(me.uri),s),this._updateDecorations(s)}_onModelRemoved(me){let s=this._markerDecorations.get(at(me.uri));s&&(s.dispose(),this._markerDecorations.delete(at(me.uri))),me.uri.scheme!==Q.b.inMemory&&me.uri.scheme!==Q.b.internal&&me.uri.scheme!==Q.b.vscode||this._markerService&&this._markerService.read({resource:me.uri}).map(v=>v.owner).forEach(v=>this._markerService.remove(v,[me.uri]))}_updateDecorations(me){let s=this._markerService.read({resource:me.model.uri,take:500}),v=s.map(M=>({range:this._createDecorationRange(me.model,M),options:this._createDecorationOption(M)}));me.update(s,v)&&this._onDidChangeMarker.fire(me.model)}_createDecorationRange(me,s){let v=Ae.a.lift(s);if(s.severity!==Hr.c.Hint||this._hasMarkerTag(s,1)||this._hasMarkerTag(s,2)||(v=v.setEndPosition(v.startLineNumber,v.startColumn+2)),v=me.validateRange(v),v.isEmpty()){let M=me.getWordAtPosition(v.getStartPosition());if(M)v=new Ae.a(v.startLineNumber,M.startColumn,v.endLineNumber,M.endColumn);else{let be=me.getLineLastNonWhitespaceColumn(v.startLineNumber)||me.getLineMaxColumn(v.startLineNumber);be===1||(v=v.endColumn>=be?new Ae.a(v.startLineNumber,be-1,v.endLineNumber,be):new Ae.a(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn+1))}}else if(s.endColumn===Number.MAX_VALUE&&s.startColumn===1&&v.startLineNumber===v.endLineNumber){let M=me.getLineFirstNonWhitespaceColumn(s.startLineNumber);M<v.endColumn&&(v=new Ae.a(v.startLineNumber,M,v.endLineNumber,v.endColumn),s.startColumn=M)}return v}_createDecorationOption(me){let s,v,M,be,Ne;switch(me.severity){case Hr.c.Hint:s=this._hasMarkerTag(me,2)?void 0:this._hasMarkerTag(me,1)?"squiggly-unnecessary":"squiggly-hint",v=0;break;case Hr.c.Warning:s="squiggly-warning",be=Object(Re.h)($r.t),v=20,M={color:Object(Re.h)(Cn.Tb),position:U.c.Inline};break;case Hr.c.Info:s="squiggly-info",be=Object(Re.h)($r.r),v=10;break;case Hr.c.Error:default:s="squiggly-error",be=Object(Re.h)($r.q),v=30,M={color:Object(Re.h)(Cn.Nb),position:U.c.Inline}}return me.tags&&(me.tags.indexOf(1)!==-1&&(Ne="squiggly-inline-unnecessary"),me.tags.indexOf(2)!==-1&&(Ne="squiggly-inline-deprecated")),{stickiness:1,className:s,showIfCollapsed:!0,overviewRuler:{color:be,position:U.d.Right},minimap:M,zIndex:v,inlineClassName:Ne}}_hasMarkerTag(me,s){return!!me.tags&&me.tags.indexOf(s)>=0}};Bt=Ve([Je(0,ct.a),Je(1,Hr.b)],Bt);var Pt=r(115),ni=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Ci=function(me,s){return function(v,M){s(v,M,me)}};let Vi=class extends Y.a{constructor(me,s){super(),this._contextKeyService=me,this._configurationService=s,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new yi.a,this._accessibilityModeEnabledContext=We.a.bindTo(this._contextKeyService);let v=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(M=>{M.affectsConfiguration("editor.accessibilitySupport")&&(v(),this._onDidChangeScreenReaderOptimized.fire())})),v(),this.onDidChangeScreenReaderOptimized(()=>v())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let me=this._configurationService.getValue("editor.accessibilitySupport");return me==="on"||me==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};Vi=ni([Ci(0,ui.b),Ci(1,un.a)],Vi);var Mi=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};class zi{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(s,v){return Mi(this,void 0,void 0,function*(){if(v)return void this.mapTextToType.set(v,s);try{return yield navigator.clipboard.writeText(s)}catch(Ne){console.error(Ne)}let M=document.activeElement,be=document.body.appendChild(Object(E.a)("textarea",{"aria-hidden":!0}));be.style.height="1px",be.style.width="1px",be.style.position="absolute",be.value=s,be.focus(),be.select(),document.execCommand("copy"),M instanceof HTMLElement&&M.focus(),document.body.removeChild(be)})}readText(s){return Mi(this,void 0,void 0,function*(){if(s)return this.mapTextToType.get(s)||"";try{return yield navigator.clipboard.readText()}catch(v){return console.error(v),""}})}readFindText(){return Mi(this,void 0,void 0,function*(){return this.findText})}writeFindText(s){return Mi(this,void 0,void 0,function*(){this.findText=s})}}var Yi=r(150),Gi=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},wn=function(me,s){return function(v,M){s(v,M,me)}},nn=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};function Wn(me){return me.scheme===Q.b.file?me.fsPath:me.path}let An=0;class qn{constructor(s,v,M){this.id=++An,this.type=0,this.actual=s,this.label=s.label,this.resourceLabel=v,this.strResource=M,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.isValid=!0}setValid(s){this.isValid=s}toString(){return`[${this.id}] [${this.isValid?"VALID":"INVALID"}] ${this.actual}`}}class or{constructor(s,v){this.resourceLabel=s,this.reason=v}}class Un{constructor(){this.elements=new Map}createMessage(){let s=[],v=[];for(let[,be]of this.elements)(be.reason===0?s:v).push(be.resourceLabel);let M=[];return s.length>0&&M.push(pn.a({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",s.join(", "))),v.length>0&&M.push(pn.a({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",v.join(", "))),M.join(` +`)}get size(){return this.elements.size}has(s){return this.elements.has(s)}set(s,v){this.elements.set(s,v)}delete(s){return this.elements.delete(s)}}class Tr{constructor(s,v,M){this.id=++An,this.type=1,this.actual=s,this.label=s.label,this.resourceLabels=v,this.strResources=M,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(s,v,M){this.removedResources||(this.removedResources=new Un),this.removedResources.has(v)||this.removedResources.set(v,new or(s,M))}setValid(s,v,M){M?this.invalidatedResources&&(this.invalidatedResources.delete(v),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Un),this.invalidatedResources.has(v)||this.invalidatedResources.set(v,new or(s,0)))}toString(){return`[${this.id}] [${this.invalidatedResources?"INVALID":"VALID"}] ${this.actual}`}}class Or{constructor(s,v){this.resourceLabel=s,this.strResource=v,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let s of this._past)s.type===1&&s.removeResource(this.resourceLabel,this.strResource,0);for(let s of this._future)s.type===1&&s.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let s=[];s.push(`* ${this.strResource}:`);for(let v=0;v<this._past.length;v++)s.push(" * [UNDO] "+this._past[v]);for(let v=this._future.length-1;v>=0;v--)s.push(" * [REDO] "+this._future[v]);return s.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(s,v){s.type===1?s.setValid(this.resourceLabel,this.strResource,v):s.setValid(v)}setElementsValidFlag(s,v){for(let M of this._past)v(M.actual)&&this._setElementValidFlag(M,s);for(let M of this._future)v(M.actual)&&this._setElementValidFlag(M,s)}pushElement(s){for(let v of this._future)v.type===1&&v.removeResource(this.resourceLabel,this.strResource,1);if(this._future=[],this._past.length>0){let v=this._past[this._past.length-1];v.type!==0||v.isValid||(this._past=[])}this._past.push(s),this.versionId++}createSnapshot(s){let v=[];for(let M=0,be=this._past.length;M<be;M++)v.push(this._past[M].id);for(let M=this._future.length-1;M>=0;M--)v.push(this._future[M].id);return new Yi.b(s,v)}restoreSnapshot(s){let v=s.elements.length,M=!0,be=0,Ne=-1;for(let je=0,mt=this._past.length;je<mt;je++,be++){let It=this._past[je];M&&(be>=v||It.id!==s.elements[be])&&(M=!1,Ne=0),M||It.type!==1||It.removeResource(this.resourceLabel,this.strResource,0)}let Oe=-1;for(let je=this._future.length-1;je>=0;je--,be++){let mt=this._future[je];M&&(be>=v||mt.id!==s.elements[be])&&(M=!1,Oe=je),M||mt.type!==1||mt.removeResource(this.resourceLabel,this.strResource,0)}Ne!==-1&&(this._past=this._past.slice(0,Ne)),Oe!==-1&&(this._future=this._future.slice(Oe+1)),this.versionId++}getElements(){let s=[],v=[];for(let M of this._past)s.push(M.actual);for(let M of this._future)v.push(M.actual);return{past:s,future:v}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(s,v){for(let M=this._past.length-1;M>=0;M--)if(this._past[M]===s){v.has(this.strResource)?this._past[M]=v.get(this.strResource):this._past.splice(M,1);break}this.versionId++}splitFutureWorkspaceElement(s,v){for(let M=this._future.length-1;M>=0;M--)if(this._future[M]===s){v.has(this.strResource)?this._future[M]=v.get(this.strResource):this._future.splice(M,1);break}this.versionId++}moveBackward(s){this._past.pop(),this._future.push(s),this.versionId++}moveForward(s){this._future.pop(),this._past.push(s),this.versionId++}}class zr{constructor(s){this.editStacks=s,this._versionIds=[];for(let v=0,M=this.editStacks.length;v<M;v++)this._versionIds[v]=this.editStacks[v].versionId}isValid(){for(let s=0,v=this.editStacks.length;s<v;s++)if(this._versionIds[s]!==this.editStacks[s].versionId)return!1;return!0}}let Br=new Or("","");Br.locked=!0;let qr=class{constructor(me,s){this._dialogService=me,this._notificationService=s,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(me){for(let s of this._uriComparisonKeyComputers)if(s[0]===me.scheme)return s[1].getComparisonKey(me);return me.toString()}_print(me){console.log("------------------------------------"),console.log(`AFTER ${me}: `);let s=[];for(let v of this._editStacks)s.push(v[1].toString());console.log(s.join(` +`))}pushElement(me){if(me.type===0){let s=Wn(me.resource),v=this.getUriComparisonKey(me.resource);this._pushElement(new qn(me,s,v))}else{let s=new Set,v=[],M=[];for(let be of me.resources){let Ne=Wn(be),Oe=this.getUriComparisonKey(be);s.has(Oe)||(s.add(Oe),v.push(Ne),M.push(Oe))}v.length===1?this._pushElement(new qn(me,v[0],M[0])):this._pushElement(new Tr(me,v,M))}}_pushElement(me){for(let s=0,v=me.strResources.length;s<v;s++){let M=me.resourceLabels[s],be=me.strResources[s],Ne;this._editStacks.has(be)?Ne=this._editStacks.get(be):(Ne=new Or(M,be),this._editStacks.set(be,Ne)),Ne.pushElement(me)}}getLastElement(me){let s=this.getUriComparisonKey(me);if(this._editStacks.has(s)){let v=this._editStacks.get(s);if(v.hasFutureElements())return null;let M=v.getClosestPastElement();return M?M.actual:null}return null}_splitPastWorkspaceElement(me,s){let v=me.actual.split(),M=new Map;for(let be of v){let Ne=Wn(be.resource),Oe=this.getUriComparisonKey(be.resource),je=new qn(be,Ne,Oe);M.set(je.strResource,je)}for(let be of me.strResources)s&&s.has(be)||this._editStacks.get(be).splitPastWorkspaceElement(me,M)}_splitFutureWorkspaceElement(me,s){let v=me.actual.split(),M=new Map;for(let be of v){let Ne=Wn(be.resource),Oe=this.getUriComparisonKey(be.resource),je=new qn(be,Ne,Oe);M.set(je.strResource,je)}for(let be of me.strResources)s&&s.has(be)||this._editStacks.get(be).splitFutureWorkspaceElement(me,M)}removeElements(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);this._editStacks.has(s)&&(this._editStacks.get(s).dispose(),this._editStacks.delete(s))}setElementsValidFlag(me,s,v){let M=this.getUriComparisonKey(me);this._editStacks.has(M)&&this._editStacks.get(M).setElementsValidFlag(s,v)}createSnapshot(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).createSnapshot(me):new Yi.b(me,[])}restoreSnapshot(me){let s=this.getUriComparisonKey(me.resource);if(this._editStacks.has(s)){let v=this._editStacks.get(s);v.restoreSnapshot(me),v.hasPastElements()||v.hasFutureElements()||(v.dispose(),this._editStacks.delete(s))}}getElements(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).getElements():{past:[],future:[]}}canUndo(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).hasPastElements():!1}_onError(me,s){Object(z.e)(me);for(let v of s.strResources)this.removeElements(v);this._notificationService.error(me)}_acquireLocks(me){for(let s of me.editStacks)if(s.locked)throw new Error("Cannot acquire edit stack lock");for(let s of me.editStacks)s.locked=!0;return()=>{for(let s of me.editStacks)s.locked=!1}}_safeInvokeWithLocks(me,s,v,M=Y.a.None){let be=this._acquireLocks(v),Ne;try{Ne=s()}catch(Oe){return be(),M.dispose(),this._onError(Oe,me)}if(Ne)return Ne.then(()=>{be(),M.dispose()},Oe=>(be(),M.dispose(),this._onError(Oe,me)));be(),M.dispose()}_invokeWorkspacePrepare(me){return nn(this,void 0,void 0,function*(){if(me.actual.prepareUndoRedo===void 0)return Y.a.None;let s=me.actual.prepareUndoRedo();return s===void 0?Y.a.None:s})}_invokeResourcePrepare(me,s){if(me.actual.type!==1||me.actual.prepareUndoRedo===void 0)return void s(Y.a.None);let v=me.actual.prepareUndoRedo();if(v){if(!Object(Y.g)(v))return v.then(M=>{s(M)});s(v)}else s(Y.a.None)}_getAffectedEditStacks(me){let s=[];for(let v of me.strResources)s.push(this._editStacks.get(v)||Br);return new zr(s)}_tryToSplitAndUndo(me,s,v,M){if(s.canSplit())return this._splitPastWorkspaceElement(s,v),this._notificationService.info(M),new Mr(this.undo(me));for(let be of s.strResources)this.removeElements(be);return this._notificationService.info(M),new Mr}_checkWorkspaceUndo(me,s,v,M){if(s.removedResources)return this._tryToSplitAndUndo(me,s,s.removedResources,pn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",s.label,s.removedResources.createMessage()));if(M&&s.invalidatedResources)return this._tryToSplitAndUndo(me,s,s.invalidatedResources,pn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",s.label,s.invalidatedResources.createMessage()));let be=[];for(let Oe of v.editStacks)Oe.getClosestPastElement()!==s&&be.push(Oe.resourceLabel);if(be.length>0)return this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",s.label,be.join(", ")));let Ne=[];for(let Oe of v.editStacks)Oe.locked&&Ne.push(Oe.resourceLabel);return Ne.length>0?this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",s.label,Ne.join(", "))):v.isValid()?null:this._tryToSplitAndUndo(me,s,null,pn.a({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",s.label))}_workspaceUndo(me,s){let v=this._getAffectedEditStacks(s),M=this._checkWorkspaceUndo(me,s,v,!1);return M?M.returnValue:this._confirmAndExecuteWorkspaceUndo(me,s,v)}_confirmAndExecuteWorkspaceUndo(me,s,v){return nn(this,void 0,void 0,function*(){if(s.canSplit()){let Ne=yield this._dialogService.show(Et.a.Info,pn.a("confirmWorkspace","Would you like to undo '{0}' across all files?",s.label),[pn.a({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",v.editStacks.length),pn.a("nok","Undo this File"),pn.a("cancel","Cancel")],{cancelId:2});if(Ne.choice===2)return;if(Ne.choice===1)return this._splitPastWorkspaceElement(s,null),this.undo(me);let Oe=this._checkWorkspaceUndo(me,s,v,!1);if(Oe)return Oe.returnValue}let M;try{M=yield this._invokeWorkspacePrepare(s)}catch(Ne){return this._onError(Ne,s)}let be=this._checkWorkspaceUndo(me,s,v,!0);if(be)return M.dispose(),be.returnValue;for(let Ne of v.editStacks)Ne.moveBackward(s);return this._safeInvokeWithLocks(s,()=>s.actual.undo(),v,M)})}_resourceUndo(me,s){if(s.isValid){if(!me.locked)return this._invokeResourcePrepare(s,v=>(me.moveBackward(s),this._safeInvokeWithLocks(s,()=>s.actual.undo(),new zr([me]),v)));{let v=pn.a({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",s.label);this._notificationService.info(v)}}else me.flushAllElements()}undo(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);if(!this._editStacks.has(s))return;let v=this._editStacks.get(s),M=v.getClosestPastElement();if(M)try{return M.type===1?this._workspaceUndo(s,M):this._resourceUndo(v,M)}finally{}}canRedo(me){let s=this.getUriComparisonKey(me);return this._editStacks.has(s)?this._editStacks.get(s).hasFutureElements():!1}_tryToSplitAndRedo(me,s,v,M){if(s.canSplit())return this._splitFutureWorkspaceElement(s,v),this._notificationService.info(M),new Mr(this.redo(me));for(let be of s.strResources)this.removeElements(be);return this._notificationService.info(M),new Mr}_checkWorkspaceRedo(me,s,v,M){if(s.removedResources)return this._tryToSplitAndRedo(me,s,s.removedResources,pn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",s.label,s.removedResources.createMessage()));if(M&&s.invalidatedResources)return this._tryToSplitAndRedo(me,s,s.invalidatedResources,pn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",s.label,s.invalidatedResources.createMessage()));let be=[];for(let Oe of v.editStacks)Oe.getClosestFutureElement()!==s&&be.push(Oe.resourceLabel);if(be.length>0)return this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",s.label,be.join(", ")));let Ne=[];for(let Oe of v.editStacks)Oe.locked&&Ne.push(Oe.resourceLabel);return Ne.length>0?this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",s.label,Ne.join(", "))):v.isValid()?null:this._tryToSplitAndRedo(me,s,null,pn.a({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",s.label))}_workspaceRedo(me,s){let v=this._getAffectedEditStacks(s),M=this._checkWorkspaceRedo(me,s,v,!1);return M?M.returnValue:this._executeWorkspaceRedo(me,s,v)}_executeWorkspaceRedo(me,s,v){return nn(this,void 0,void 0,function*(){let M;try{M=yield this._invokeWorkspacePrepare(s)}catch(Ne){return this._onError(Ne,s)}let be=this._checkWorkspaceRedo(me,s,v,!0);if(be)return M.dispose(),be.returnValue;for(let Ne of v.editStacks)Ne.moveForward(s);return this._safeInvokeWithLocks(s,()=>s.actual.redo(),v,M)})}_resourceRedo(me,s){if(s.isValid){if(!me.locked)return this._invokeResourcePrepare(s,v=>(me.moveForward(s),this._safeInvokeWithLocks(s,()=>s.actual.redo(),new zr([me]),v)));{let v=pn.a({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",s.label);this._notificationService.info(v)}}else me.flushAllElements()}redo(me){let s=typeof me=="string"?me:this.getUriComparisonKey(me);if(!this._editStacks.has(s))return;let v=this._editStacks.get(s),M=v.getClosestFutureElement();if(M)try{return M.type===1?this._workspaceRedo(s,M):this._resourceRedo(v,M)}finally{}}};qr=Gi([wn(0,Ao.a),wn(1,Mt.a)],qr);class Mr{constructor(s){this.returnValue=s}}Object(Pt.b)(Yi.a,qr),r(266);var Ro=r(4),Pr=r(25),Go=(r(186),r(141)),Is=r(151);let Gs=new xe.b(()=>{let me=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:me,collatorIsNumeric:me.resolvedOptions().numeric}});function sa(me,s,v){let M=me.toLowerCase(),be=s.toLowerCase(),Ne=function(mt,It,Qt){let Di=mt.toLowerCase(),en=It.toLowerCase(),tn=Di.startsWith(Qt),kn=en.startsWith(Qt);if(tn!==kn)return tn?-1:1;if(tn&&kn){if(Di.length<en.length)return-1;if(Di.length>en.length)return 1}return 0}(me,s,v);if(Ne)return Ne;let Oe=M.endsWith(v);if(Oe!==be.endsWith(v))return Oe?-1:1;let je=function(mt,It,Qt=!1){let Di=mt||"",en=It||"",tn=Gs.value.collator.compare(Di,en);return Gs.value.collatorIsNumeric&&tn===0&&Di!==en?Di<en?-1:1:tn}(M,be);return je!==0?je:M.localeCompare(be)}var gl=r(172),Kl=r(156),Mo=r(98),Ds=r(147);let Ua={},uo=new Ds.a("quick-input-button-icon-");function Ea(me){if(!me)return;let s,v=me.dark.toString();return Ua[v]?s=Ua[v]:(s=uo.nextId(),E.u("."+s,"background-image: "+E.q(me.light||me.dark)),E.u(`.vs-dark .${s}, .hc-black .${s}`,"background-image: "+E.q(me.dark)),Ua[v]=s),s}r(271);let fs=E.a;class fl{constructor(s,v,M){this.os=v,this.options=M,this.domNode=E.p(s,fs(".monaco-keybinding")),this.didEverRender=!1,s.appendChild(this.domNode)}set(s,v){this.didEverRender&&this.keybinding===s&&fl.areSame(this.matches,v)||(this.keybinding=s,this.matches=v,this.render())}render(){if(E.s(this.domNode),this.keybinding){let[s,v]=this.keybinding.getParts();s&&this.renderPart(this.domNode,s,this.matches?this.matches.firstPart:null),v&&(E.p(this.domNode,fs("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,v,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}renderPart(s,v,M){let be=ne.modifierLabels[this.os];v.ctrlKey&&this.renderKey(s,be.ctrlKey,Boolean(M==null?void 0:M.ctrlKey),be.separator),v.shiftKey&&this.renderKey(s,be.shiftKey,Boolean(M==null?void 0:M.shiftKey),be.separator),v.altKey&&this.renderKey(s,be.altKey,Boolean(M==null?void 0:M.altKey),be.separator),v.metaKey&&this.renderKey(s,be.metaKey,Boolean(M==null?void 0:M.metaKey),be.separator);let Ne=v.keyLabel;Ne&&this.renderKey(s,Ne,Boolean(M==null?void 0:M.keyCode),"")}renderKey(s,v,M,be){E.p(s,fs("span.monaco-keybinding-key"+(M?".highlight":""),void 0,v)),be&&E.p(s,fs("span.monaco-keybinding-key-separator",void 0,be))}renderUnbound(s){E.p(s,fs("span.monaco-keybinding-key",void 0,Object(pn.a)("unbound","Unbound")))}static areSame(s,v){return s===v||!s&&!v||!!s&&!!v&&Object(Fn.e)(s.firstPart,v.firstPart)&&Object(Fn.e)(s.chordPart,v.chordPart)}}var Ta=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe};let Yo=E.a;class bl{constructor(s){this.hidden=!1,this._onChecked=new yi.a,this.onChecked=this._onChecked.event,Object(Fn.a)(this,s)}get checked(){return!!this._checked}set checked(s){s!==this._checked&&(this._checked=s,this._onChecked.fire(s))}dispose(){this._onChecked.dispose()}}class Co{get templateId(){return Co.ID}renderTemplate(s){let v=Object.create(null);v.toDisposeElement=[],v.toDisposeTemplate=[],v.entry=E.p(s,Yo(".quick-input-list-entry"));let M=E.p(v.entry,Yo("label.quick-input-list-label"));v.toDisposeTemplate.push(E.n(M,E.c.CLICK,It=>{v.checkbox.offsetParent||It.preventDefault()})),v.checkbox=E.p(M,Yo("input.quick-input-list-checkbox")),v.checkbox.type="checkbox",v.toDisposeTemplate.push(E.n(v.checkbox,E.c.CHANGE,It=>{v.element.checked=v.checkbox.checked}));let be=E.p(M,Yo(".quick-input-list-rows")),Ne=E.p(be,Yo(".quick-input-list-row")),Oe=E.p(be,Yo(".quick-input-list-row"));v.label=new gl.a(Ne,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0});let je=E.p(Ne,Yo(".quick-input-list-entry-keybinding"));v.keybinding=new fl(je,te.a);let mt=E.p(Oe,Yo(".quick-input-list-label-meta"));return v.detail=new Kl.a(mt,!0),v.separator=E.p(v.entry,Yo(".quick-input-list-separator")),v.actionBar=new ds.a(v.entry),v.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),v.toDisposeTemplate.push(v.actionBar),v}renderElement(s,v,M){M.toDisposeElement=Object(Y.f)(M.toDisposeElement),M.element=s,M.checkbox.checked=s.checked,M.toDisposeElement.push(s.onChecked(It=>M.checkbox.checked=It));let{labelHighlights:be,descriptionHighlights:Ne,detailHighlights:Oe}=s,je=Object.create(null);je.matches=be||[],je.descriptionTitle=s.saneDescription,je.descriptionMatches=Ne||[],je.extraClasses=s.item.iconClasses,je.italic=s.item.italic,je.strikethrough=s.item.strikethrough,M.label.setLabel(s.saneLabel,s.saneDescription,je),M.keybinding.set(s.item.keybinding),M.detail.set(s.saneDetail,Oe),s.separator&&s.separator.label?(M.separator.textContent=s.separator.label,M.separator.style.display=""):M.separator.style.display="none",s.separator?E.e(M.entry,"quick-input-list-separator-border"):E.Q(M.entry,"quick-input-list-separator-border"),M.actionBar.clear();let mt=s.item.buttons;mt&&mt.length?(M.actionBar.push(mt.map((It,Qt)=>{let Di=It.iconClass||(It.iconPath?Ea(It.iconPath):void 0);It.alwaysVisible&&(Di=Di?Di+" always-visible":"always-visible");let en=new vo.a("id-"+Qt,"",Di,!0,()=>(s.fireButtonTriggered({button:It,item:s.item}),Promise.resolve()));return en.tooltip=It.tooltip||"",en}),{icon:!0,label:!1}),E.e(M.entry,"has-actions")):E.Q(M.entry,"has-actions")}disposeElement(s,v,M){M.toDisposeElement=Object(Y.f)(M.toDisposeElement)}disposeTemplate(s){s.toDisposeElement=Object(Y.f)(s.toDisposeElement),s.toDisposeTemplate=Object(Y.f)(s.toDisposeTemplate)}}Co.ID="listelement";class _l{getHeight(s){return s.saneDetail?44:22}getTemplateId(s){return Co.ID}}var sr;(function(me){me[me.First=1]="First",me[me.Second=2]="Second",me[me.Last=3]="Last",me[me.Next=4]="Next",me[me.Previous=5]="Previous",me[me.NextPage=6]="NextPage",me[me.PreviousPage=7]="PreviousPage"})(sr||(sr={}));class tr{constructor(s,v,M){this.parent=s,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new yi.a,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new yi.a,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new yi.a,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new yi.a,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new yi.a,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new yi.a,this.onKeyDown=this._onKeyDown.event,this._onLeave=new yi.a,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=v,this.container=E.p(this.parent,Yo(".quick-input-list"));let be=new _l,Ne=new aa;this.list=M.createList("QuickInput",this.container,be,[new Co],{identityProvider:{getId:Oe=>Oe.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:Ne}),this.list.getHTMLElement().id=v,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(Oe=>{let je=new Hi.a(Oe);switch(je.keyCode){case 10:this.toggleCheckbox();break;case 31:(te.f?Oe.metaKey:Oe.ctrlKey)&&this.list.setFocus(Object(fe.s)(this.list.length));break;case 16:let mt=this.list.getFocus();mt.length===1&&mt[0]===0&&this._onLeave.fire();break;case 18:let It=this.list.getFocus();It.length===1&&It[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(je)})),this.disposables.push(this.list.onMouseDown(Oe=>{Oe.browserEvent.button!==2&&Oe.browserEvent.preventDefault()})),this.disposables.push(E.i(this.container,E.c.CLICK,Oe=>{(Oe.x||Oe.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(Oe=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(Oe=>{typeof Oe.index=="number"&&(Oe.browserEvent.preventDefault(),this.list.setSelection([Oe.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return yi.b.map(this.list.onDidChangeFocus,s=>s.elements.map(v=>v.item))}get onDidChangeSelection(){return yi.b.map(this.list.onDidChangeSelection,s=>({items:s.elements.map(v=>v.item),event:s.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(s,v=!0){for(let M=0,be=s.length;M<be;M++){let Ne=s[M];if(!Ne.hidden){if(!Ne.checked)return!1;v=!0}}return v}getCheckedCount(){let s=0,v=this.elements;for(let M=0,be=v.length;M<be;M++)v[M].checked&&s++;return s}getVisibleCount(){let s=0,v=this.elements;for(let M=0,be=v.length;M<be;M++)v[M].hidden||s++;return s}setAllVisibleChecked(s){try{this._fireCheckedEvents=!1,this.elements.forEach(v=>{v.hidden||(v.checked=s)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(s){this.elementDisposables=Object(Y.f)(this.elementDisposables);let v=M=>this.fireButtonTriggered(M);this.inputElements=s,this.elements=s.reduce((M,be,Ne)=>{var Oe,je,mt;if(be.type!=="separator"){let It=Ne&&s[Ne-1],Qt=be.label&&be.label.replace(/\r?\n/g," "),Di=be.description&&be.description.replace(/\r?\n/g," "),en=be.detail&&be.detail.replace(/\r?\n/g," "),tn=be.ariaLabel||[Qt,Di,en].map(kn=>kn&&Object(Is.c)(kn).text).filter(kn=>!!kn).join(", ");M.push(new bl({index:Ne,item:be,saneLabel:Qt,saneAriaLabel:tn,saneDescription:Di,saneDetail:en,labelHighlights:(Oe=be.highlights)===null||Oe===void 0?void 0:Oe.label,descriptionHighlights:(je=be.highlights)===null||je===void 0?void 0:je.description,detailHighlights:(mt=be.highlights)===null||mt===void 0?void 0:mt.detail,checked:!1,separator:It&&It.type==="separator"?It:void 0,fireButtonTriggered:v}))}return M},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(M=>M.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((M,be,Ne)=>(M.set(be.item,Ne),M),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(s=>s.item)}setFocusedElements(s){if(this.list.setFocus(s.filter(v=>this.elementsToIndexes.has(v)).map(v=>this.elementsToIndexes.get(v))),s.length>0){let v=this.list.getFocus()[0];typeof v=="number"&&this.list.reveal(v)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(s){this.list.setSelection(s.filter(v=>this.elementsToIndexes.has(v)).map(v=>this.elementsToIndexes.get(v)))}getCheckedElements(){return this.elements.filter(s=>s.checked).map(s=>s.item)}setCheckedElements(s){try{this._fireCheckedEvents=!1;let v=new Set;for(let M of s)v.add(M);for(let M of this.elements)M.checked=v.has(M.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(s){this.list.getHTMLElement().style.pointerEvents=s?"":"none"}focus(s){if(!this.list.length)return;switch(s===sr.Next&&this.list.getFocus()[0]===this.list.length-1&&(s=sr.First),s===sr.Previous&&this.list.getFocus()[0]===0&&(s=sr.Last),s===sr.Second&&this.list.length<2&&(s=sr.First),s){case sr.First:this.list.focusFirst();break;case sr.Second:this.list.focusNth(1);break;case sr.Last:this.list.focusLast();break;case sr.Next:this.list.focusNext();break;case sr.Previous:this.list.focusPrevious();break;case sr.NextPage:this.list.focusNextPage();break;case sr.PreviousPage:this.list.focusPreviousPage()}let v=this.list.getFocus()[0];typeof v=="number"&&this.list.reveal(v)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(s){this.list.getHTMLElement().style.maxHeight=s?`calc(${44*Math.floor(s/44)}px)`:"",this.list.layout()}filter(s){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;(s=s.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach(M=>{let be=this.matchOnLabel?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneLabel))):void 0,Ne=this.matchOnDescription?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneDescription||""))):void 0,Oe=this.matchOnDetail?Object(_i.n)(Object(Is.b)(s,Object(Is.c)(M.saneDetail||""))):void 0;be||Ne||Oe?(M.labelHighlights=be,M.descriptionHighlights=Ne,M.detailHighlights=Oe,M.hidden=!1):(M.labelHighlights=void 0,M.descriptionHighlights=void 0,M.detailHighlights=void 0,M.hidden=!M.item.alwaysShow),M.separator=void 0}):this.elements.forEach(M=>{M.labelHighlights=void 0,M.descriptionHighlights=void 0,M.detailHighlights=void 0,M.hidden=!1;let be=M.index&&this.inputElements[M.index-1];M.separator=be&&be.type==="separator"?be:void 0});let v=this.elements.filter(M=>!M.hidden);if(this.sortByLabel&&s){let M=s.toLowerCase();v.sort((be,Ne)=>function(Oe,je,mt){let It=Oe.labelHighlights||[],Qt=je.labelHighlights||[];return It.length&&!Qt.length?-1:!It.length&&Qt.length?1:It.length===0&&Qt.length===0?0:sa(Oe.saneLabel,je.saneLabel,mt)}(be,Ne,M))}return this.elementsToIndexes=v.reduce((M,be,Ne)=>(M.set(be.item,Ne),M),new Map),this.list.splice(0,this.list.length,v),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(v.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let s=this.list.getFocusedElements(),v=this.allVisibleChecked(s);for(let M of s)M.checked=!v}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(s){this.container.style.display=s?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=Object(Y.f)(this.elementDisposables),this.disposables=Object(Y.f)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(s){this._onButtonTriggered.fire(s)}style(s){this.list.style(s)}}Ta([Mo.a],tr.prototype,"onDidChangeFocus",null),Ta([Mo.a],tr.prototype,"onDidChangeSelection",null);class aa{getWidgetAriaLabel(){return Object(pn.a)("quickInput","Quick Input")}getAriaLabel(s){return s.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var Gl=r(173);let Yl=E.a;class bs extends Y.a{constructor(s){super(),this.parent=s,this.onKeyDown=v=>E.i(this.inputBox.inputElement,E.c.KEY_DOWN,M=>{v(new Hi.a(M))}),this.onMouseDown=v=>E.i(this.inputBox.inputElement,E.c.MOUSE_DOWN,M=>{v(new hs.a(M))}),this.onDidChange=v=>this.inputBox.onDidChange(v),this.container=E.p(this.parent,Yl(".quick-input-box")),this.inputBox=this._register(new Gl.b(this.container,void 0))}get value(){return this.inputBox.value}set value(s){this.inputBox.value=s}select(s=null){this.inputBox.select(s)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(s){this.inputBox.setPlaceHolder(s)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(s){this.inputBox.setAriaLabel(s)}get password(){return this.inputBox.inputElement.type==="password"}set password(s){this.inputBox.inputElement.type=s?"password":"text"}setAttribute(s,v){this.inputBox.inputElement.setAttribute(s,v)}removeAttribute(s){this.inputBox.inputElement.removeAttribute(s)}showDecoration(s){s===Et.a.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:s===Et.a.Info?1:s===Et.a.Warning?2:3,content:""})}stylesForType(s){return this.inputBox.stylesForType(s===Et.a.Info?1:s===Et.a.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(s){this.inputBox.style(s)}}var Ha=r(185);r(277);let La={progressBarBackground:vr.a.fromHex("#0E70C0")};class Na extends Y.a{constructor(s,v){super(),this.options=v||Object.create(null),Object(Fn.g)(this.options,La,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new xe.d(()=>Object(E.Z)(this.element),0)),this.create(s)}create(s){this.element=document.createElement("div"),Object(E.e)(this.element,"monaco-progress-container"),s.appendChild(this.element),this.bit=document.createElement("div"),Object(E.e)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(E.R)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(s){return Object(E.e)(this.element,"done"),Object(E.I)(this.element,"infinite")?(this.bit.style.opacity="0",s?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",s?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",Object(E.R)(this.element,"discrete","done"),Object(E.f)(this.element,"active","infinite"),this}getContainer(){return this.element}style(s){this.progressBarBackground=s.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){let s=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=s}}}r(279);var la=r(61);let vl={buttonBackground:vr.a.fromHex("#0E639C"),buttonHoverBackground:vr.a.fromHex("#006BB3"),buttonForeground:vr.a.white};class xo extends Y.a{constructor(s,v){super(),this._onDidClick=this._register(new yi.a),this.options=v||Object.create(null),Object(Fn.g)(this.options,vl,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),E.e(this._element,"monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),s.appendChild(this._element),this._register(la.b.addTarget(this._element)),[E.c.CLICK,la.a.Tap].forEach(M=>{this._register(E.i(this._element,M,be=>{this.enabled?this._onDidClick.fire(be):E.b.stop(be)}))}),this._register(E.i(this._element,E.c.KEY_DOWN,M=>{let be=new Hi.a(M),Ne=!1;this.enabled&&(be.equals(3)||be.equals(10))?(this._onDidClick.fire(M),Ne=!0):be.equals(9)&&(this._element.blur(),Ne=!0),Ne&&E.b.stop(be,!0)})),this._register(E.i(this._element,E.c.MOUSE_OVER,M=>{E.I(this._element,"disabled")||this.setHoverBackground()})),this._register(E.i(this._element,E.c.MOUSE_OUT,M=>{this.applyStyles()})),this.focusTracker=this._register(E.bb(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let s;s=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,s&&(this._element.style.backgroundColor=s)}style(s){this.buttonForeground=s.buttonForeground,this.buttonBackground=s.buttonBackground,this.buttonHoverBackground=s.buttonHoverBackground,this.buttonSecondaryForeground=s.buttonSecondaryForeground,this.buttonSecondaryBackground=s.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=s.buttonSecondaryHoverBackground,this.buttonBorder=s.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let s,v;this.options.secondary?(v=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",s=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(v=this.buttonForeground?this.buttonForeground.toString():"",s=this.buttonBackground?this.buttonBackground.toString():"");let M=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=v,this._element.style.backgroundColor=s,this._element.style.borderWidth=M?"1px":"",this._element.style.borderStyle=M?"solid":"",this._element.style.borderColor=M}}get element(){return this._element}set label(s){E.I(this._element,"monaco-text-button")||E.e(this._element,"monaco-text-button"),this.options.supportCodicons?E.U(this._element,...function(v){let M=new Array,be,Ne=0,Oe=0;for(;(be=yo.g.exec(v))!==null;){Oe=be.index||0,M.push(v.substring(Ne,Oe)),Ne=(be.index||0)+be[0].length;let[,je,mt,It,Qt]=be;M.push(je?`$(${mt})`:E.a(`span.codicon.codicon-${It}${Qt?".codicon-animation-"+Qt:""}`))}return Ne<v.length&&M.push(v.substring(Ne)),M}(s)):this._element.textContent=s,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=s)}set enabled(s){s?(E.Q(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(E.e(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),E.T(this._element))}get enabled(){return!E.I(this._element,"disabled")}}var Zl=function(me,s,v,M){return new(v||(v=Promise))(function(be,Ne){function Oe(It){try{mt(M.next(It))}catch(Qt){Ne(Qt)}}function je(It){try{mt(M.throw(It))}catch(Qt){Ne(Qt)}}function mt(It){var Qt;It.done?be(It.value):(Qt=It.value,Qt instanceof v?Qt:new v(function(Di){Di(Qt)})).then(Oe,je)}mt((M=M.apply(me,s||[])).next())})};let Xi=E.a,wl={iconClass:Object(yo.e)("quick-input-back",yo.a.arrowLeft).classNames,tooltip:Object(pn.a)("quickInput.back","Back"),handle:-1};class Xl extends Y.a{constructor(s){super(),this.ui=s,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new yi.a),this.onDidHideEmitter=this._register(new yi.a),this.onDisposeEmitter=this._register(new yi.a),this.visibleDisposables=this._register(new Y.b),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(s){this._title=s,this.update()}get description(){return this._description}set description(s){this._description=s,this.update()}get step(){return this._steps}set step(s){this._steps=s,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(s){this._totalSteps=s,this.update()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this.update()}get contextKey(){return this._contextKey}set contextKey(s){this._contextKey=s,this.update()}get busy(){return this._busy}set busy(s){this._busy=s,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(s){this._ignoreFocusOut=s,this.update()}get buttons(){return this._buttons}set buttons(s){this._buttons=s,this.buttonsUpdated=!0,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(s=>{this.buttons.indexOf(s)!==-1&&this.onDidTriggerButtonEmitter.fire(s)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire()}update(){if(!this.visible)return;let s=this.getTitle();s&&this.ui.title.textContent!==s?this.ui.title.textContent=s:s||this.ui.title.innerHTML===" "||(this.ui.title.innerText="\xA0;");let v=this.getDescription();if(this.ui.description.textContent!==v&&(this.ui.description.textContent=v),this.busy&&!this.busyDelay&&(this.busyDelay=new xe.e,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let M=this.buttons.filter(Ne=>Ne===wl);this.ui.leftActionBar.push(M.map((Ne,Oe)=>{let je=new vo.a("id-"+Oe,"",Ne.iconClass||Ea(Ne.iconPath),!0,()=>Zl(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(Ne)}));return je.tooltip=Ne.tooltip||"",je}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();let be=this.buttons.filter(Ne=>Ne!==wl);this.ui.rightActionBar.push(be.map((Ne,Oe)=>{let je=new vo.a("id-"+Oe,"",Ne.iconClass||Ea(Ne.iconPath),!0,()=>Zl(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(Ne)}));return je.tooltip=Ne.tooltip||"",je}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey)}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(pn.a)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(s){if(this.ui.inputBox.showDecoration(s),s===Et.a.Error){let v=this.ui.inputBox.stylesForType(s);this.ui.message.style.color=v.foreground?""+v.foreground:"",this.ui.message.style.backgroundColor=v.background?""+v.background:"",this.ui.message.style.border=v.border?"1px solid "+v.border:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class Ia extends Xl{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new yi.a),this.onDidAcceptEmitter=this._register(new yi.a),this.onDidCustomEmitter=this._register(new yi.a),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?Go.a.NONE:Go.a.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new yi.a),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new yi.a),this.onDidTriggerItemButtonEmitter=this._register(new yi.a),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=s=>s,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(s){this._quickNavigate=s,this.update()}get value(){return this._value}set value(s){this._value=s||"",this.update()}set ariaLabel(s){this._ariaLabel=s,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(s){this._placeholder=s,this.update()}get items(){return this._items}set items(s){this._items=s,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(s){this._canSelectMany=s,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(s){this._canAcceptInBackground=s}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(s){this._matchOnDescription=s,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(s){this._matchOnDetail=s,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(s){this._matchOnLabel=s,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(s){this._sortByLabel=s,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(s){this._autoFocusOnList=s,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(s){this._itemActivation=s}get activeItems(){return this._activeItems}set activeItems(s){this._activeItems=s,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(s){this._selectedItems=s,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Go.b:this.ui.keyMods}set valueSelection(s){this._valueSelection=s,this.valueSelectionUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(s){this._validationMessage=s,this.update()}get customButton(){return this._customButton}set customButton(s){this._customButton=s,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(s){this._customButtonLabel=s,this.update()}get customHover(){return this._customButtonHover}set customHover(s){this._customButtonHover=s,this.update()}get ok(){return this._ok}set ok(s){this._ok=s,this.update()}get hideInput(){return!!this._hideInput}set hideInput(s){this._hideInput=s,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(sr.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(s=>{s!==this.value&&(this._value=s,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(s))})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(s=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(s=>{switch(s.keyCode){case 18:this.ui.list.focus(sr.Next),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(sr.Previous):this.ui.list.focus(sr.Last),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 12:this.ui.list.focus(sr.NextPage),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 11:this.ui.list.focus(sr.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),E.b.stop(s,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!0}));break;case 14:!s.ctrlKey&&!s.metaKey||s.shiftKey||s.altKey||(this.ui.list.focus(sr.First),E.b.stop(s,!0));break;case 13:!s.ctrlKey&&!s.metaKey||s.shiftKey||s.altKey||(this.ui.list.focus(sr.Last),E.b.stop(s,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.onDidAcceptEmitter.fire({inBackground:!1})})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(s=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(fe.g)(s,this._activeItems,(v,M)=>v===M)||(this._activeItems=s,this.onDidChangeActiveEmitter.fire(s))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:s,event:v})=>{this.canSelectMany?s.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(fe.g)(s,this._selectedItems,(M,be)=>M===be)||(this._selectedItems=s,this.onDidChangeSelectionEmitter.fire(s),s.length&&this.onDidAcceptEmitter.fire({inBackground:v instanceof MouseEvent&&v.button===1}))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(s=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(fe.g)(s,this._selectedItems,(v,M)=>v===M)||(this._selectedItems=s,this.onDidChangeSelectionEmitter.fire(s)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(s=>this.onDidTriggerItemButtonEmitter.fire(s))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}registerQuickNavigation(){return E.i(this.ui.container,E.c.KEY_UP,s=>{if(this.canSelectMany||!this._quickNavigate)return;let v=new Hi.a(s),M=v.keyCode;this._quickNavigate.keybindings.some(be=>{let[Ne,Oe]=be.getParts();return!Oe&&(Ne.shiftKey&&M===4?!(v.ctrlKey||v.altKey||v.metaKey):!(!Ne.altKey||M!==6)||!(!Ne.ctrlKey||M!==5)||!(!Ne.metaKey||M!==57))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!1})),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let s=!1,v=!1;this._hideInput&&this._items.length>0&&(this.ui.isScreenReaderOptimized()?v=!0:s=!0),E.ab(this.ui.container,"hidden-input",s);let M={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany,inputBox:!s,progressBar:!s,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};if(this.ui.setVisibilities(M),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),v)this.ui.inputBox.ariaLabel="";else{let be=this.ariaLabel||this.placeholder||Ia.DEFAULT_ARIA_LABEL;this.ui.inputBox.ariaLabel!==be&&(this.ui.inputBox.ariaLabel=be)}if(this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Go.a.NONE:this._itemActivation=Go.a.FIRST;break;case Go.a.SECOND:this.ui.list.focus(sr.Second),this._itemActivation=Go.a.FIRST;break;case Go.a.LAST:this.ui.list.focus(sr.Last),this._itemActivation=Go.a.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.validationMessage?(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(Et.a.Error)):(this.ui.message.textContent=null,this.showMessageDecoration(Et.a.Ignore)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),M.inputBox||this.ui.list.domFocus()}}Ia.DEFAULT_ARIA_LABEL=Object(pn.a)("quickInputBox.ariaLabel","Type to narrow down results.");class Da extends Y.a{constructor(s){super(),this.options=s,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new yi.a),this.onDidCustomEmitter=this._register(new yi.a),this.onDidTriggerButtonEmitter=this._register(new yi.a),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new yi.a),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new yi.a),this.onHide=this.onHideEmitter.event,this.idPrefix=s.idPrefix,this.parentElement=s.container,this.styles=s.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){let s=v=>{this.keyMods.ctrlCmd=v.ctrlKey||v.metaKey,this.keyMods.alt=v.altKey};this._register(E.i(window,E.c.KEY_DOWN,s,!0)),this._register(E.i(window,E.c.KEY_UP,s,!0)),this._register(E.i(window,E.c.MOUSE_DOWN,s,!0))}getUI(){if(this.ui)return this.ui;let s=E.p(this.parentElement,Xi(".quick-input-widget.show-file-icons"));s.tabIndex=-1,s.style.display="none";let v=E.v(s),M=E.p(s,Xi(".quick-input-titlebar")),be=this._register(new ds.a(M));be.domNode.classList.add("quick-input-left-action-bar");let Ne=E.p(M,Xi(".quick-input-title")),Oe=this._register(new ds.a(M));Oe.domNode.classList.add("quick-input-right-action-bar");let je=E.p(s,Xi(".quick-input-description")),mt=E.p(s,Xi(".quick-input-header")),It=E.p(mt,Xi("input.quick-input-check-all"));It.type="checkbox",this._register(E.n(It,E.c.CHANGE,Zn=>{let Yr=It.checked;Eo.setAllVisibleChecked(Yr)})),this._register(E.i(It,E.c.CLICK,Zn=>{(Zn.x||Zn.y)&&en.setFocus()}));let Qt=E.p(mt,Xi(".quick-input-and-message")),Di=E.p(Qt,Xi(".quick-input-filter")),en=this._register(new bs(Di));en.setAttribute("aria-describedby",this.idPrefix+"message");let tn=E.p(Di,Xi(".quick-input-visible-count"));tn.setAttribute("aria-live","polite"),tn.setAttribute("aria-atomic","true");let kn=new Ha.a(tn,{countFormat:Object(pn.a)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),nr=E.p(Di,Xi(".quick-input-count"));nr.setAttribute("aria-live","polite");let lr=new Ha.a(nr,{countFormat:Object(pn.a)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),hr=E.p(mt,Xi(".quick-input-action")),rr=new xo(hr);rr.label=Object(pn.a)("ok","OK"),this._register(rr.onDidClick(Zn=>{this.onDidAcceptEmitter.fire()}));let ir=E.p(mt,Xi(".quick-input-action")),mo=new xo(ir);mo.label=Object(pn.a)("custom","Custom"),this._register(mo.onDidClick(Zn=>{this.onDidCustomEmitter.fire()}));let Fa=E.p(Qt,Xi(`#${this.idPrefix}message.quick-input-message`)),Gr=new Na(s);E.e(Gr.getContainer(),"quick-input-progress");let Eo=this._register(new tr(s,this.idPrefix+"list",this.options));this._register(Eo.onChangedAllVisibleChecked(Zn=>{It.checked=Zn})),this._register(Eo.onChangedVisibleCount(Zn=>{kn.setCount(Zn)})),this._register(Eo.onChangedCheckedCount(Zn=>{lr.setCount(Zn)})),this._register(Eo.onLeave(()=>{setTimeout(()=>{en.setFocus(),this.controller instanceof Ia&&this.controller.canSelectMany&&Eo.clearFocus()},0)})),this._register(Eo.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));let mr=E.bb(s);return this._register(mr),this._register(E.i(s,E.c.FOCUS,Zn=>{this.previousFocusElement=Zn.relatedTarget instanceof HTMLElement?Zn.relatedTarget:void 0},!0)),this._register(mr.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(),this.previousFocusElement=void 0})),this._register(E.i(s,E.c.FOCUS,Zn=>{en.setFocus()})),this._register(E.i(s,E.c.KEY_DOWN,Zn=>{let Yr=new Hi.a(Zn);switch(Yr.keyCode){case 3:E.b.stop(Zn,!0),this.onDidAcceptEmitter.fire();break;case 9:E.b.stop(Zn,!0),this.hide();break;case 2:if(!Yr.altKey&&!Yr.ctrlKey&&!Yr.metaKey){let ws=[".action-label.codicon"];s.classList.contains("show-checkboxes")?ws.push("input"):ws.push("input[type=text]"),this.getUI().list.isDisplayed()&&ws.push(".monaco-list");let tl=s.querySelectorAll(ws.join(", "));Yr.shiftKey&&Yr.target===tl[0]?(E.b.stop(Zn,!0),tl[tl.length-1].focus()):Yr.shiftKey||Yr.target!==tl[tl.length-1]||(E.b.stop(Zn,!0),tl[0].focus())}}})),this.ui={container:s,styleSheet:v,leftActionBar:be,titleBar:M,title:Ne,description:je,rightActionBar:Oe,checkAll:It,filterContainer:Di,inputBox:en,visibleCountContainer:tn,visibleCount:kn,countContainer:nr,count:lr,okContainer:hr,ok:rr,message:Fa,customButtonContainer:ir,customButton:mo,progressBar:Gr,list:Eo,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:Zn=>this.show(Zn),hide:()=>this.hide(),setVisibilities:Zn=>this.setVisibilities(Zn),setComboboxAccessibility:Zn=>this.setComboboxAccessibility(Zn),setEnabled:Zn=>this.setEnabled(Zn),setContextKey:Zn=>this.options.setContextKey(Zn)},this.updateStyles(),this.ui}pick(s,v={},M=Pr.a.None){return new Promise((be,Ne)=>{let Oe=Qt=>{Oe=be,v.onKeyMods&&v.onKeyMods(je.keyMods),be(Qt)};if(M.isCancellationRequested)return void Oe(void 0);let je=this.createQuickPick(),mt,It=[je,je.onDidAccept(()=>{if(je.canSelectMany)Oe(je.selectedItems.slice()),je.hide();else{let Qt=je.activeItems[0];Qt&&(Oe(Qt),je.hide())}}),je.onDidChangeActive(Qt=>{let Di=Qt[0];Di&&v.onDidFocus&&v.onDidFocus(Di)}),je.onDidChangeSelection(Qt=>{if(!je.canSelectMany){let Di=Qt[0];Di&&(Oe(Di),je.hide())}}),je.onDidTriggerItemButton(Qt=>v.onDidTriggerItemButton&&v.onDidTriggerItemButton(Object.assign(Object.assign({},Qt),{removeItem:()=>{let Di=je.items.indexOf(Qt.item);if(Di!==-1){let en=je.items.slice();en.splice(Di,1),je.items=en}}}))),je.onDidChangeValue(Qt=>{!mt||Qt||je.activeItems.length===1&&je.activeItems[0]===mt||(je.activeItems=[mt])}),M.onCancellationRequested(()=>{je.hide()}),je.onDidHide(()=>{Object(Y.f)(It),Oe(void 0)})];je.canSelectMany=!!v.canPickMany,je.placeholder=v.placeHolder,je.ignoreFocusOut=!!v.ignoreFocusLost,je.matchOnDescription=!!v.matchOnDescription,je.matchOnDetail=!!v.matchOnDetail,je.matchOnLabel=v.matchOnLabel===void 0||v.matchOnLabel,je.autoFocusOnList=v.autoFocusOnList===void 0||v.autoFocusOnList,je.quickNavigate=v.quickNavigate,je.contextKey=v.contextKey,je.busy=!0,Promise.all([s,v.activeItem]).then(([Qt,Di])=>{mt=Di,je.busy=!1,je.items=Qt,je.canSelectMany&&(je.selectedItems=Qt.filter(en=>en.type!=="separator"&&en.picked)),mt&&(je.activeItems=[mt])}),je.show(),Promise.resolve(s).then(void 0,Qt=>{Ne(Qt),je.hide()})})}createQuickPick(){let s=this.getUI();return new Ia(s)}show(s){let v=this.getUI();this.onShowEmitter.fire();let M=this.controller;this.controller=s,M&&M.didHide(),this.setEnabled(!0),v.leftActionBar.clear(),v.title.textContent="",v.description.textContent="",v.rightActionBar.clear(),v.checkAll.checked=!1,v.inputBox.placeholder="",v.inputBox.password=!1,v.inputBox.showDecoration(Et.a.Ignore),v.visibleCount.setCount(0),v.count.setCount(0),v.message.textContent="",v.progressBar.stop(),v.list.setElements([]),v.list.matchOnDescription=!1,v.list.matchOnDetail=!1,v.list.matchOnLabel=!0,v.list.sortByLabel=!0,v.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),v.inputBox.ariaLabel="";let be=this.options.backKeybindingLabel();wl.tooltip=be?Object(pn.a)("quickInput.backWithKeybinding","Back ({0})",be):Object(pn.a)("quickInput.back","Back"),v.container.style.display="",this.updateLayout(),v.inputBox.setFocus()}setVisibilities(s){let v=this.getUI();v.title.style.display=s.title?"":"none",v.description.style.display=s.description?"":"none",v.checkAll.style.display=s.checkAll?"":"none",v.filterContainer.style.display=s.inputBox?"":"none",v.visibleCountContainer.style.display=s.visibleCount?"":"none",v.countContainer.style.display=s.count?"":"none",v.okContainer.style.display=s.ok?"":"none",v.customButtonContainer.style.display=s.customButton?"":"none",v.message.style.display=s.message?"":"none",v.progressBar.getContainer().style.display=s.progressBar?"":"none",v.list.display(!!s.list),v.container.classList[s.checkAll?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(s){if(s!==this.comboboxAccessibility){let v=this.getUI();this.comboboxAccessibility=s,this.comboboxAccessibility?(v.inputBox.setAttribute("role","combobox"),v.inputBox.setAttribute("aria-haspopup","true"),v.inputBox.setAttribute("aria-autocomplete","list"),v.inputBox.setAttribute("aria-activedescendant",v.list.getActiveDescendant()||"")):(v.inputBox.removeAttribute("role"),v.inputBox.removeAttribute("aria-haspopup"),v.inputBox.removeAttribute("aria-autocomplete"),v.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(s){if(s!==this.enabled){this.enabled=s;for(let v of this.getUI().leftActionBar.viewItems)v.getAction().enabled=s;for(let v of this.getUI().rightActionBar.viewItems)v.getAction().enabled=s;this.getUI().checkAll.disabled=!s,this.getUI().ok.enabled=s,this.getUI().list.enabled=s}}hide(){var s;let v=this.controller;if(v){let M=!((s=this.ui)===null||s===void 0?void 0:s.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",M||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),v.didHide()}}layout(s,v){this.dimension=s,this.titleBarOffset=v,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";let s=this.ui.container.style,v=Math.min(.62*this.dimension.width,Da.MAX_WIDTH);s.width=v+"px",s.marginLeft="-"+v/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(s){this.styles=s,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:s,quickInputBackground:v,quickInputForeground:M,contrastBorder:be,widgetShadow:Ne}=this.styles.widget;this.ui.titleBar.style.backgroundColor=s?s.toString():"",this.ui.container.style.backgroundColor=v?v.toString():"",this.ui.container.style.color=M?M.toString():"",this.ui.container.style.border=be?"1px solid "+be:"",this.ui.container.style.boxShadow=Ne?"0 5px 8px "+Ne:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);let Oe=[];this.styles.list.listInactiveFocusForeground&&(Oe.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`),Oe.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)),this.styles.list.pickerGroupBorder&&Oe.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&Oe.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);let je=Oe.join(` +`);je!==this.ui.styleSheet.innerHTML&&(this.ui.styleSheet.innerHTML=je)}}}Da.MAX_WIDTH=600;var yl=r(110),Cl=r(134),Ql=r(133),xl=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},qa=function(me,s){return function(v,M){s(v,M,me)}};let po=class extends Y.a{constructor(me,s){super(),this.quickInputService=me,this.instantiationService=s,this.registry=Sn.a.as(Cl.b.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(me="",s){var v;let[M,be]=this.getOrInstantiateProvider(me),Ne=this.visibleQuickAccess,Oe=Ne==null?void 0:Ne.descriptor;if(Ne&&be&&Oe===be)return me===be.prefix||(s==null?void 0:s.preserveValue)||(Ne.picker.value=me),void this.adjustValueSelection(Ne.picker,be,s);if(be&&!(s==null?void 0:s.preserveValue)){let Qt;if(Ne&&Oe&&Oe!==be){let Di=Ne.value.substr(Oe.prefix.length);Di&&(Qt=`${be.prefix}${Di}`)}if(!Qt){let Di=M==null?void 0:M.defaultFilterValue;Di===Cl.a.LAST?Qt=this.lastAcceptedPickerValues.get(be):typeof Di=="string"&&(Qt=`${be.prefix}${Di}`)}typeof Qt=="string"&&(me=Qt)}let je=new Y.b,mt=je.add(this.quickInputService.createQuickPick());mt.value=me,this.adjustValueSelection(mt,be,s),mt.placeholder=be==null?void 0:be.placeholder,mt.quickNavigate=s==null?void 0:s.quickNavigateConfiguration,mt.hideInput=!!mt.quickNavigate&&!Ne,(typeof(s==null?void 0:s.itemActivation)=="number"||(s==null?void 0:s.quickNavigateConfiguration))&&(mt.itemActivation=(v=s==null?void 0:s.itemActivation)!==null&&v!==void 0?v:yl.b.SECOND),mt.contextKey=be==null?void 0:be.contextKey,mt.filterValue=Qt=>Qt.substring(be?be.prefix.length:0),(be==null?void 0:be.placeholder)&&(mt.ariaLabel=be==null?void 0:be.placeholder);let It=this.registerPickerListeners(mt,M,be,me,je);M&&je.add(M.provide(mt,It)),mt.show()}adjustValueSelection(me,s,v){var M;let be;be=(v==null?void 0:v.preserveValue)?[me.value.length,me.value.length]:[(M=s==null?void 0:s.prefix.length)!==null&&M!==void 0?M:0,me.value.length],me.valueSelection=be}registerPickerListeners(me,s,v,M,be){let Ne=this.visibleQuickAccess={picker:me,descriptor:v,value:M};be.add(Object(Y.h)(()=>{Ne===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),be.add(me.onDidChangeValue(je=>{let[mt]=this.getOrInstantiateProvider(je);mt!==s?this.show(je,{preserveValue:!0}):Ne.value=je})),v&&be.add(me.onDidAccept(()=>{this.lastAcceptedPickerValues.set(v,me.value)}));let Oe=be.add(new Pr.b);return Object(Ql.a)(me.onDidHide)(()=>{me.selectedItems.length===0&&Oe.cancel(),be.dispose()}),Oe.token}getOrInstantiateProvider(me){let s=this.registry.getQuickAccessProvider(me);if(!s)return[void 0,void 0];let v=this.mapProviderToDescriptor.get(s);return v||(v=this.instantiationService.createInstance(s.ctor),this.mapProviderToDescriptor.set(s,v)),[v,s]}};po=xl([qa(0,yl.a),qa(1,Ee.a)],po);var Os=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Jr=function(me,s){return function(v,M){s(v,M,me)}};let $a=class extends Re.d{constructor(me,s,v,M,be){super(v),this.instantiationService=me,this.contextKeyService=s,this.accessibilityService=M,this.layoutService=be,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(po))),this._quickAccess}createController(me=this.layoutService,s){var v,M;let be={idPrefix:"quickInput_",container:me.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:Oe=>this.setContextKey(Oe),returnFocus:()=>me.focus(),createList:(Oe,je,mt,It,Qt)=>this.instantiationService.createInstance(Ls.d,Oe,je,mt,It,Qt),styles:this.computeStyles()},Ne=this._register(new Da(Object.assign(Object.assign({},be),s)));return Ne.layout(me.dimension,(M=(v=me.offset)===null||v===void 0?void 0:v.top)!==null&&M!==void 0?M:0),this._register(me.onLayout(Oe=>{var je,mt;return Ne.layout(Oe,(mt=(je=me.offset)===null||je===void 0?void 0:je.top)!==null&&mt!==void 0?mt:0)})),this._register(Ne.onShow(()=>this.resetContextKeys())),this._register(Ne.onHide(()=>this.resetContextKeys())),Ne}setContextKey(me){let s;me&&(s=this.contexts.get(me),s||(s=new ui.c(me,!1).bindTo(this.contextKeyService),this.contexts.set(me,s))),s&&s.get()||(this.resetContextKeys(),s&&s.set(!0))}resetContextKeys(){this.contexts.forEach(me=>{me.get()&&me.reset()})}pick(me,s={},v=Pr.a.None){return this.controller.pick(me,s,v)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(Ko.d)(this.theme,{quickInputBackground:Cn.dc,quickInputForeground:Cn.ec,quickInputTitleBackground:Cn.fc,contrastBorder:Cn.h,widgetShadow:Cn.uc})),inputBox:Object(Ko.d)(this.theme,{inputForeground:Cn.hb,inputBackground:Cn.fb,inputBorder:Cn.gb,inputValidationInfoBackground:Cn.lb,inputValidationInfoForeground:Cn.nb,inputValidationInfoBorder:Cn.mb,inputValidationWarningBackground:Cn.ob,inputValidationWarningForeground:Cn.qb,inputValidationWarningBorder:Cn.pb,inputValidationErrorBackground:Cn.ib,inputValidationErrorForeground:Cn.kb,inputValidationErrorBorder:Cn.jb}),countBadge:Object(Ko.d)(this.theme,{badgeBackground:Cn.c,badgeForeground:Cn.d,badgeBorder:Cn.h}),button:Object(Ko.d)(this.theme,{buttonForeground:Cn.f,buttonBackground:Cn.e,buttonHoverBackground:Cn.g,buttonBorder:Cn.h}),progressBar:Object(Ko.d)(this.theme,{progressBarBackground:Cn.cc}),list:Object(Ko.d)(this.theme,{listBackground:Cn.dc,listInactiveFocusForeground:Cn.yb,listInactiveFocusBackground:Cn.xb,listFocusOutline:Cn.b,listInactiveFocusOutline:Cn.b,pickerGroupBorder:Cn.Xb,pickerGroupForeground:Cn.Yb})}}};$a=Os([Jr(0,Ee.a),Jr(1,ui.b),Jr(2,Re.c),Jr(3,We.b),Jr(4,ro)],$a);var As=function(me,s,v,M){var be,Ne=arguments.length,Oe=Ne<3?s:M===null?M=Object.getOwnPropertyDescriptor(s,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(me,s,v,M);else for(var je=me.length-1;je>=0;je--)(be=me[je])&&(Oe=(Ne<3?be(Oe):Ne>3?be(s,v,Oe):be(s,v))||Oe);return Ne>3&&Oe&&Object.defineProperty(s,v,Oe),Oe},Ys=function(me,s){return function(v,M){s(v,M,me)}};let Bn=class extends $a{constructor(me,s,v,M,be,Ne){super(s,v,M,be,Ne),this.host=void 0;let Oe=ca.get(me);this.host={_serviceBrand:void 0,get container(){return Oe.widget.getDomNode()},get dimension(){return me.getLayoutInfo()},get onLayout(){return me.onDidLayoutChange},focus:()=>me.focus()}}createController(){return super.createController(this.host)}};Bn=As([Ys(1,Ee.a),Ys(2,ui.b),Ys(3,Re.c),Ys(4,We.b),Ys(5,ro)],Bn);let Zs=class{constructor(me,s){this.instantiationService=me,this.codeEditorService=s,this.mapEditorToService=new Map}get activeService(){let me=this.codeEditorService.getFocusedCodeEditor();if(!me)throw new Error("Quick input service needs a focused editor to work.");let s=this.mapEditorToService.get(me);if(!s){let v=s=this.instantiationService.createInstance(Bn,me);this.mapEditorToService.set(me,s),Object(Ql.a)(me.onDidDispose)(()=>{v.dispose(),this.mapEditorToService.delete(me)})}return s}get quickAccess(){return this.activeService.quickAccess}pick(me,s={},v=Pr.a.None){return this.activeService.pick(me,s,v)}createQuickPick(){return this.activeService.createQuickPick()}};Zs=As([Ys(0,Ee.a),Ys(1,H.a)],Zs);class ca{constructor(s){this.editor=s,this.widget=new Oa(this.editor)}static get(s){return s.getContribution(ca.ID)}dispose(){this.widget.dispose()}}ca.ID="editor.controller.quickInput";class Oa{constructor(s){this.codeEditor=s,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Oa.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Oa.ID="editor.contrib.quickInputWidget",Object(Ro.m)(ca.ID,ca);var ar,Xs=r(166);(function(me){let s=new Ks.a;class v{constructor(je,mt){this._serviceId=je,this._factory=mt,this._value=null}get id(){return this._serviceId}get(je){if(!this._value){if(je&&(this._value=je[this._serviceId.toString()]),this._value||(this._value=this._factory(je)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");s.set(this._serviceId,this._value)}return this._value}}me.LazyStaticService=v;let M=[];function be(Oe,je){let mt=new v(Oe,je);return M.push(mt),mt}me.init=function(Oe){let je=new Ks.a;for(let[It,Qt]of Object(Pt.a)())je.set(It,Qt);for(let It in Oe)Oe.hasOwnProperty(It)&&je.set(Object(Ee.c)(It),Oe[It]);M.forEach(It=>je.set(It.id,It.get(Oe)));let mt=new Xr(je,!0);return je.set(Ee.a,mt),[je,mt]},me.instantiationService=be(Ee.a,()=>new Xr(s,!0));let Ne=new Gt;me.configurationService=be(un.a,()=>Ne),me.resourceConfigurationService=be(Ye.a,()=>new ti(Ne)),me.resourcePropertiesService=be(Ye.b,()=>new ye(Ne)),me.contextService=be(Dt.a,()=>new ue),me.labelService=be(oa.a,()=>new tt),me.telemetryService=be(ms.a,()=>new le),me.dialogService=be(Ao.a,()=>new X),me.notificationService=be(Mt.a,()=>new ae),me.markerService=be(Hr.b,()=>new i),me.modeService=be(oi.a,Oe=>new Nr),me.standaloneThemeService=be(ai.a,()=>new ts),me.logService=be($.b,()=>new $.a),me.undoRedoService=be(Yi.a,Oe=>new qr(me.dialogService.get(Oe),me.notificationService.get(Oe))),me.modelService=be(ct.a,Oe=>new Ar.a(me.configurationService.get(Oe),me.resourcePropertiesService.get(Oe),me.standaloneThemeService.get(Oe),me.logService.get(Oe),me.undoRedoService.get(Oe))),me.markerDecorationsService=be(Pe.a,Oe=>new Bt(me.modelService.get(Oe),me.markerService.get(Oe))),me.codeEditorService=be(H.a,Oe=>new go(me.standaloneThemeService.get(Oe))),me.editorProgressService=be(Le.a,()=>new ft),me.storageService=be(a.a,()=>new a.b),me.storageSyncService=be(Xs.a,()=>new Xs.b),me.editorWorkerService=be(se.a,Oe=>new de(me.modelService.get(Oe),me.resourceConfigurationService.get(Oe),me.logService.get(Oe)))})(ar||(ar={}));class Rs extends Y.a{constructor(s,v){super();let[M,be]=ar.init(v);this._serviceCollection=M,this._instantiationService=be;let Ne=this.get(un.a),Oe=this.get(Mt.a),je=this.get(ms.a),mt=this.get(Re.c),It=this.get($.b),Qt=(lr,hr)=>{let rr=null;return v&&(rr=v[lr.toString()]),rr||(rr=hr()),this._serviceCollection.set(lr,rr),rr},Di=Qt(ui.b,()=>this._register(new Ho(Ne)));Qt(We.b,()=>new Vi(Di,Ne)),Qt(Ls.a,()=>new Ls.b(mt));let en=Qt(S.b,()=>new Ge(this._instantiationService)),tn=Qt(ve.a,()=>this._register(new lt(Di,en,je,Oe,It,s))),kn=Qt(ro,()=>new ot(ar.codeEditorService.get(H.a),s));Qt(yl.a,()=>new Zs(be,ar.codeEditorService.get(H.a)));let nr=Qt(Te.b,()=>this._register(new Oo(kn)));Qt(Be.a,()=>new zi),Qt(Te.a,()=>{let lr=new Kr(je,Oe,nr,tn,mt);return lr.configure({blockMouse:!1}),this._register(lr)}),Qt(fi.a,()=>new K(en)),Qt(Si.a,()=>new Ze(ar.modelService.get(ct.a)))}get(s){let v=this._serviceCollection.get(s);if(!v)throw new Error("Missing service "+s);return v}set(s,v){this._serviceCollection.set(s,v)}has(s){return this._serviceCollection.has(s)}}var Zo=r(87);function Qs(me,s,v){let M=new Rs(me,s),be=null;M.has(ke.a)||(be=new Ti(ar.modelService.get()),M.set(ke.a,be)),M.has(P.a)||M.set(P.a,new b(M.get(H.a),M.get(S.b)));let Ne=v(M);return be&&be.setEditor(Ne),Ne}function Aa(me,s,v){return Qs(me,v||{},M=>new mi(me,s,M,M.get(Ee.a),M.get(H.a),M.get(S.b),M.get(ui.b),M.get(ve.a),M.get(Te.b),M.get(ai.a),M.get(Mt.a),M.get(un.a),M.get(We.b)))}function Sl(me){return ar.codeEditorService.get().onCodeEditorAdd(s=>{me(s)})}function Ka(me,s,v){return Qs(me,v||{},M=>new Yt(me,s,M,M.get(Ee.a),M.get(ui.b),M.get(ve.a),M.get(Te.b),M.get(se.a),M.get(H.a),M.get(ai.a),M.get(Mt.a),M.get(un.a),M.get(Te.a),M.get(Le.a),M.get(Be.a)))}function Js(me,s){return new g.a(me,s)}function Ga(me,s,v){return ar.modelService.get().createModel(me,s,v)}function Jl(me,s,v){if(me=me||"",!s){let M=me.indexOf(` +`),be=me;return M!==-1&&(be=me.substring(0,M)),Ga(me,ar.modeService.get().createByFilepathOrFirstLine(v||null,be),v)}return Ga(me,ar.modeService.get().create(s),v)}function ea(me,s){ar.modelService.get().setMode(me,ar.modeService.get().create(s))}function Ya(me,s,v){me&&ar.markerService.get().changeOne(s,me.uri,v)}function Nc(me){return ar.markerService.get().read(me)}function Ic(me){return ar.modelService.get().getModel(me)}function Dc(){return ar.modelService.get().getModels()}function x(me){return ar.modelService.get().onModelAdded(me)}function c(me){return ar.modelService.get().onModelRemoved(me)}function p(me){return ar.modelService.get().onModelModeChanged(s=>{me({model:s.model,oldLanguage:s.oldModeId})})}function F(me){return function(s,v){return new wt(s,v)}(ar.modelService.get(),me)}function pe(me,s){let v=ar.standaloneThemeService.get();return v.registerEditorContainer(me),ki.colorizeElement(v,ar.modeService.get(),me,s)}function He(me,s,v){return ar.standaloneThemeService.get().registerEditorContainer(document.body),ki.colorize(ar.modeService.get(),me,s,v)}function Qe(me,s,v=4){return ar.standaloneThemeService.get().registerEditorContainer(document.body),ki.colorizeModelLine(me,s,v)}function Vt(me,s){ar.modeService.get().triggerMode(s);let v=function(Oe){return q.C.get(Oe)||{getInitialState:()=>B.c,tokenize:(mt,It,Qt)=>Object(B.d)(Oe,mt,It,Qt)}}(s),M=me.split(/\r\n|\r|\n/),be=[],Ne=v.getInitialState();for(let Oe=0,je=M.length;Oe<je;Oe++){let mt=M[Oe],It=v.tokenize(mt,Ne,0);be[Oe]=It.tokens,Ne=It.endState}return be}function $t(me,s){ar.standaloneThemeService.get().defineTheme(me,s)}function ci(me){ar.standaloneThemeService.get().setTheme(me)}function Ft(){Object(Zo.b)()}function Fi(me,s){return typeof me=="boolean"?me:s}function cn(me,s){return typeof me=="string"?me:s}function vn(me,s=!1){s&&(me=me.map(function(M){return M.toLowerCase()}));let v=function(M){let be={};for(let Ne of M)be[Ne]=!0;return be}(me);return s?function(M){return v[M.toLowerCase()]!==void 0&&v.hasOwnProperty(M.toLowerCase())}:function(M){return v[M]!==void 0&&v.hasOwnProperty(M)}}function on(me,s){let v=0;for(;s.indexOf("@")>=0&&v<5;)v++,s=s.replace(/@(\w+)/g,function(be,Ne){let Oe="";if(typeof me[Ne]=="string")Oe=me[Ne];else{if(!(me[Ne]&&me[Ne]instanceof RegExp))throw me[Ne]===void 0?gt(me,"language definition does not contain attribute '"+Ne+"', used at: "+s):gt(me,"attribute reference '"+Ne+"' must be a string, used at: "+s);Oe=me[Ne].source}return Bi(Oe)?"":"(?:"+Oe+")"});let M=(me.ignoreCase?"i":"")+(me.unicode?"u":"");return new RegExp(s,M)}function Pn(me,s,v,M){let be=-1,Ne=v,Oe=v.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);Oe&&(Oe[3]&&(be=parseInt(Oe[3]),Oe[2]&&(be+=100)),Ne=Oe[4]);let je,mt="~",It=Ne;if(Ne&&Ne.length!==0?/^\w*$/.test(It)?mt="==":(Oe=Ne.match(/^(@|!@|~|!~|==|!=)(.*)$/),Oe&&(mt=Oe[1],It=Oe[2])):(mt="!=",It=""),mt!=="~"&&mt!=="!~"||!/^(\w|\|)*$/.test(It))if(mt==="@"||mt==="!@"){let Qt=me[It];if(!Qt)throw gt(me,"the @ match target '"+It+"' is not defined, in rule: "+s);if(!function(en,tn){if(!tn||!Array.isArray(tn))return!1;for(let kn of tn)if(!en(kn))return!1;return!0}(function(en){return typeof en=="string"},Qt))throw gt(me,"the @ match target '"+It+"' must be an array of strings, in rule: "+s);let Di=vn(Qt,me.ignoreCase);je=function(en){return mt==="@"?Di(en):!Di(en)}}else if(mt==="~"||mt==="!~")if(It.indexOf("$")<0){let Qt=on(me,"^"+It+"$");je=function(Di){return mt==="~"?Qt.test(Di):!Qt.test(Di)}}else je=function(Qt,Di,en,tn){return on(me,"^"+vi(me,It,Di,en,tn)+"$").test(Qt)};else if(It.indexOf("$")<0){let Qt=Lt(me,It);je=function(Di){return mt==="=="?Di===Qt:Di!==Qt}}else{let Qt=Lt(me,It);je=function(Di,en,tn,kn,nr){let lr=vi(me,Qt,en,tn,kn);return mt==="=="?Di===lr:Di!==lr}}else{let Qt=vn(It.split("|"),me.ignoreCase);je=function(Di){return mt==="~"?Qt(Di):!Qt(Di)}}return be===-1?{name:v,value:M,test:function(Qt,Di,en,tn){return je(Qt,Qt,Di,en,tn)}}:{name:v,value:M,test:function(Qt,Di,en,tn){let kn=function(nr,lr,hr,rr){if(rr<0)return nr;if(rr<lr.length)return lr[rr];if(rr>=100){rr-=100;let ir=hr.split(".");if(ir.unshift(hr),rr<ir.length)return ir[rr]}return null}(Qt,Di,en,be);return je(kn||"",Qt,Di,en,tn)}}}class jn{constructor(s){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=s}setRegex(s,v){let M;if(typeof v=="string")M=v;else{if(!(v instanceof RegExp))throw gt(s,"rules must start with a match string or regular expression: "+this.name);M=v.source}this.matchOnlyAtLineStart=M.length>0&&M[0]==="^",this.name=this.name+": "+M,this.regex=on(s,"^(?:"+(this.matchOnlyAtLineStart?M.substr(1):M)+")")}setAction(s,v){this.action=function M(be,Ne,Oe){if(Oe){if(typeof Oe=="string")return Oe;if(Oe.token||Oe.token===""){if(typeof Oe.token!="string")throw gt(be,"a 'token' attribute must be of type string, in rule: "+Ne);{let je={token:Oe.token};if(Oe.token.indexOf("$")>=0&&(je.tokenSubst=!0),typeof Oe.bracket=="string")if(Oe.bracket==="@open")je.bracket=1;else{if(Oe.bracket!=="@close")throw gt(be,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+Ne);je.bracket=-1}if(Oe.next){if(typeof Oe.next!="string")throw gt(be,"the next state must be a string value in rule: "+Ne);{let mt=Oe.next;if(!/^(@pop|@push|@popall)$/.test(mt)&&(mt[0]==="@"&&(mt=mt.substr(1)),mt.indexOf("$")<0&&!function(It,Qt){let Di=Qt;for(;Di&&Di.length>0;){if(It.stateNames[Di])return!0;let en=Di.lastIndexOf(".");Di=en<0?null:Di.substr(0,en)}return!1}(be,vi(be,mt,"",[],""))))throw gt(be,"the next state '"+Oe.next+"' is not defined in rule: "+Ne);je.next=mt}}return typeof Oe.goBack=="number"&&(je.goBack=Oe.goBack),typeof Oe.switchTo=="string"&&(je.switchTo=Oe.switchTo),typeof Oe.log=="string"&&(je.log=Oe.log),typeof Oe.nextEmbedded=="string"&&(je.nextEmbedded=Oe.nextEmbedded,be.usesEmbedded=!0),je}}if(Array.isArray(Oe)){let je=[];for(let mt=0,It=Oe.length;mt<It;mt++)je[mt]=M(be,Ne,Oe[mt]);return{group:je}}if(Oe.cases){let je=[];for(let It in Oe.cases)if(Oe.cases.hasOwnProperty(It)){let Qt=M(be,Ne,Oe.cases[It]);It==="@default"||It==="@"||It===""?je.push({test:void 0,value:Qt,name:It}):It==="@eos"?je.push({test:function(Di,en,tn,kn){return kn},value:Qt,name:It}):je.push(Pn(be,Ne,It,Qt))}let mt=be.defaultToken;return{test:function(It,Qt,Di,en){for(let tn of je)if(!tn.test||tn.test(It,Qt,Di,en))return tn.value;return mt}}}throw gt(be,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+Ne)}return{token:""}}(s,this.name,v)}}function Vn(me){gn.a.registerLanguage(me)}function Ln(){let me=[];return me=me.concat(gn.a.getLanguages()),me}function pr(me){let s=ar.modeService.get().getLanguageIdentifier(me);return s?s.id:0}function wr(me,s){let v=ar.modeService.get().onDidCreateMode(M=>{M.getId()===me&&(v.dispose(),s())});return v}function gr(me,s){let v=ar.modeService.get().getLanguageIdentifier(me);if(!v)throw new Error("Cannot set configuration for unknown language "+me);return L.a.register(v,s)}class Er{constructor(s){this._actual=s}getInitialState(){return this._actual.getInitialState()}tokenize(s,v,M){throw new Error("Not supported!")}tokenize2(s,v){let M=this._actual.tokenizeEncoded(s,v);return new Li.c(M.tokens,M.endState)}}class yr{constructor(s,v,M){this._standaloneThemeService=s,this._languageIdentifier=v,this._actual=M}getInitialState(){return this._actual.getInitialState()}_toClassicTokens(s,v,M){let be=[],Ne=0;for(let Oe=0,je=s.length;Oe<je;Oe++){let mt=s[Oe],It=mt.startIndex;Oe===0?It=0:It<Ne&&(It=Ne),be[Oe]=new Li.a(It+M,mt.scopes,v),Ne=It}return be}tokenize(s,v,M){let be,Ne=this._actual.tokenize(s,v),Oe=this._toClassicTokens(Ne.tokens,this._languageIdentifier.language,M);return be=Ne.endState.equals(v)?v:Ne.endState,new Li.b(Oe,be)}_toBinaryTokens(s,v){let M=this._languageIdentifier.id,be=this._standaloneThemeService.getColorTheme().tokenTheme,Ne=[],Oe=0,je=0;for(let It=0,Qt=s.length;It<Qt;It++){let Di=s[It],en=be.match(M,Di.scopes);if(Oe>0&&Ne[Oe-1]===en)continue;let tn=Di.startIndex;It===0?tn=0:tn<je&&(tn=je),Ne[Oe++]=tn+v,Ne[Oe++]=en,je=tn}let mt=new Uint32Array(Oe);for(let It=0;It<Oe;It++)mt[It]=Ne[It];return mt}tokenize2(s,v,M){let be,Ne=this._actual.tokenize(s,v),Oe=this._toBinaryTokens(Ne.tokens,M);return be=Ne.endState.equals(v)?v:Ne.endState,new Li.c(Oe,be)}}function Fr(me){return me&&typeof me.then=="function"}function So(me,s){let v=ar.modeService.get().getLanguageIdentifier(me);if(!v)throw new Error("Cannot set tokens provider for unknown language "+me);let M=be=>function(Ne){return"tokenizeEncoded"in Ne}(be)?new Er(be):new yr(ar.standaloneThemeService.get(),v,be);return Fr(s)?q.C.registerPromise(me,s.then(be=>M(be))):q.C.register(me,M(s))}function _s(me,s){let v=M=>function(be,Ne,Oe,je){return new li(be,Ne,Oe,je)}(ar.modeService.get(),ar.standaloneThemeService.get(),me,function(be,Ne){if(!Ne||typeof Ne!="object")throw new Error("Monarch: expecting a language definition object");let Oe={};Oe.languageId=be,Oe.noThrow=!1,Oe.maxStack=100,Oe.start=typeof Ne.start=="string"?Ne.start:null,Oe.ignoreCase=Fi(Ne.ignoreCase,!1),Oe.unicode=Fi(Ne.unicode,!1),Oe.tokenPostfix=cn(Ne.tokenPostfix,"."+Oe.languageId),Oe.defaultToken=cn(Ne.defaultToken,"source"),Oe.usesEmbedded=!1;let je=Ne;function mt(Qt,Di,en){for(let tn of en){let kn=tn.include;if(kn){if(typeof kn!="string")throw gt(Oe,"an 'include' attribute must be a string at: "+Qt);if(kn[0]==="@"&&(kn=kn.substr(1)),!Ne.tokenizer[kn])throw gt(Oe,"include target '"+kn+"' is not defined at: "+Qt);mt(Qt+"."+kn,Di,Ne.tokenizer[kn])}else{let nr=new jn(Qt);if(Array.isArray(tn)&&tn.length>=1&&tn.length<=3)if(nr.setRegex(je,tn[0]),tn.length>=3)if(typeof tn[1]=="string")nr.setAction(je,{token:tn[1],next:tn[2]});else{if(typeof tn[1]!="object")throw gt(Oe,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Qt);{let lr=tn[1];lr.next=tn[2],nr.setAction(je,lr)}}else nr.setAction(je,tn[1]);else{if(!tn.regex)throw gt(Oe,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Qt);tn.name&&typeof tn.name=="string"&&(nr.name=tn.name),tn.matchOnlyAtStart&&(nr.matchOnlyAtLineStart=Fi(tn.matchOnlyAtLineStart,!1)),nr.setRegex(je,tn.regex),nr.setAction(je,tn.action)}Di.push(nr)}}}if(je.languageId=be,je.ignoreCase=Oe.ignoreCase,je.unicode=Oe.unicode,je.noThrow=Oe.noThrow,je.usesEmbedded=Oe.usesEmbedded,je.stateNames=Ne.tokenizer,je.defaultToken=Oe.defaultToken,!Ne.tokenizer||typeof Ne.tokenizer!="object")throw gt(Oe,"a language definition must define the 'tokenizer' attribute as an object");Oe.tokenizer=[];for(let Qt in Ne.tokenizer)if(Ne.tokenizer.hasOwnProperty(Qt)){Oe.start||(Oe.start=Qt);let Di=Ne.tokenizer[Qt];Oe.tokenizer[Qt]=new Array,mt("tokenizer."+Qt,Oe.tokenizer[Qt],Di)}if(Oe.usesEmbedded=je.usesEmbedded,Ne.brackets){if(!Array.isArray(Ne.brackets))throw gt(Oe,"the 'brackets' attribute must be defined as an array")}else Ne.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let It=[];for(let Qt of Ne.brackets){let Di=Qt;if(Di&&Array.isArray(Di)&&Di.length===3&&(Di={token:Di[2],open:Di[0],close:Di[1]}),Di.open===Di.close)throw gt(Oe,"open and close brackets in a 'brackets' attribute must be different: "+Di.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Di.open!="string"||typeof Di.token!="string"||typeof Di.close!="string")throw gt(Oe,"every element in the 'brackets' array must be a '{open,close,token}' object or array");It.push({token:Di.token+Oe.tokenPostfix,open:Lt(Oe,Di.open),close:Lt(Oe,Di.close)})}return Oe.brackets=It,Oe.noThrow=!0,Oe}(me,M));return Fr(s)?q.C.registerPromise(me,s.then(M=>v(M))):q.C.register(me,v(s))}function Ra(me,s){return q.v.register(me,s)}function os(me,s){return q.w.register(me,s)}function eo(me,s){return q.y.register(me,s)}function da(me,s){return q.p.register(me,{provideHover:(v,M,be)=>{let Ne=v.getWordAtPosition(M);return Promise.resolve(s.provideHover(v,M,be)).then(Oe=>{if(Oe)return!Oe.range&&Ne&&(Oe.range=new Ae.a(M.lineNumber,Ne.startColumn,M.lineNumber,Ne.endColumn)),Oe.range||(Oe.range=new Ae.a(M.lineNumber,M.column,M.lineNumber,M.column)),Oe})}})}function ec(me,s){return q.m.register(me,s)}function ta(me,s){return q.i.register(me,s)}function Po(me,s){return q.u.register(me,s)}function Za(me,s){return q.f.register(me,s)}function Ma(me,s){return q.q.register(me,s)}function ha(me,s){return q.D.register(me,s)}function ua(me,s){return q.b.register(me,s)}function kl(me,s){return q.a.register(me,{provideCodeActions:(v,M,be,Ne)=>{let Oe=ar.markerService.get().read({resource:v.uri}).filter(je=>Ae.a.areIntersectingOrTouching(je,M));return s.provideCodeActions(v,M,{markers:Oe,only:be.only},Ne)}})}function Ms(me,s){return q.g.register(me,s)}function Pa(me,s){return q.j.register(me,s)}function Xa(me,s){return q.t.register(me,s)}function tc(me,s){return q.s.register(me,s)}function El(me,s){return q.d.register(me,s)}function Qa(me,s){return q.c.register(me,s)}function Qr(me,s){return q.o.register(me,s)}function Ja(me,s){return q.e.register(me,s)}function pa(me,s){return q.x.register(me,s)}function Tl(me,s){return q.l.register(me,s)}function el(me,s){return q.k.register(me,s)}let ko=self;f.g.wrappingIndent.defaultValue=0,f.g.glyphMargin.defaultValue=!1,f.g.autoIndent.defaultValue=3,f.g.overviewRulerLanes.defaultValue=2;let jr=Object(O.a)();jr.editor={create:Aa,onDidCreateEditor:Sl,createDiffEditor:Ka,createDiffNavigator:Js,createModel:Jl,setModelLanguage:ea,setModelMarkers:Ya,getModelMarkers:Nc,getModels:Dc,getModel:Ic,onDidCreateModel:x,onWillDisposeModel:c,onDidChangeModelLanguage:p,createWebWorker:F,colorizeElement:pe,colorize:He,colorizeModelLine:Qe,tokenize:Vt,defineTheme:$t,setTheme:ci,remeasureFonts:Ft,AccessibilitySupport:Ni.a,ContentWidgetPositionPreference:Ni.f,CursorChangeReason:Ni.g,DefaultEndOfLine:Ni.h,EditorAutoIndentStrategy:Ni.j,EditorOption:Ni.k,EndOfLinePreference:Ni.l,EndOfLineSequence:Ni.m,MinimapPosition:Ni.r,MouseTargetType:Ni.s,OverlayWidgetPositionPreference:Ni.t,OverviewRulerLane:Ni.u,RenderLineNumbersType:Ni.v,RenderMinimap:Ni.w,ScrollbarVisibility:Ni.y,ScrollType:Ni.x,TextEditorCursorBlinkingStyle:Ni.D,TextEditorCursorStyle:Ni.E,TrackedRangeStickiness:Ni.F,WrappingIndent:Ni.G,ConfigurationChangedEvent:f.b,BareFontInfo:j.a,FontInfo:j.b,TextModelResolvedOptions:U.e,FindMatch:U.b,EditorType:ie.a,EditorOptions:f.g},jr.languages={register:Vn,getLanguages:Ln,onLanguage:wr,getEncodedLanguageId:pr,setLanguageConfiguration:gr,setTokensProvider:So,setMonarchTokensProvider:_s,registerReferenceProvider:Ra,registerRenameProvider:os,registerCompletionItemProvider:El,registerSignatureHelpProvider:eo,registerHoverProvider:da,registerDocumentSymbolProvider:ec,registerDocumentHighlightProvider:ta,registerOnTypeRenameProvider:Po,registerDefinitionProvider:Za,registerImplementationProvider:Ma,registerTypeDefinitionProvider:ha,registerCodeLensProvider:ua,registerCodeActionProvider:kl,registerDocumentFormattingEditProvider:Ms,registerDocumentRangeFormattingEditProvider:Pa,registerOnTypeFormattingEditProvider:Xa,registerLinkProvider:tc,registerColorProvider:Qa,registerFoldingRangeProvider:Qr,registerDeclarationProvider:Ja,registerSelectionRangeProvider:pa,registerDocumentSemanticTokensProvider:Tl,registerDocumentRangeSemanticTokensProvider:el,DocumentHighlightKind:Ni.i,CompletionItemKind:Ni.c,CompletionItemTag:Ni.d,CompletionItemInsertTextRule:Ni.b,SymbolKind:Ni.B,SymbolTag:Ni.C,IndentAction:Ni.n,CompletionTriggerKind:Ni.e,SignatureHelpTriggerKind:Ni.A,FoldingRangeKind:q.n};let Ll=jr.CancellationTokenSource,Fo=jr.Emitter,vs=jr.KeyCode,Ps=jr.KeyMod,Qd=jr.Position,Jd=jr.Range,eh=jr.Selection,ic=jr.SelectionDirection,th=jr.MarkerSeverity,ih=jr.MarkerTag,nh=jr.Uri,rh=jr.Token,oh=jr.editor,ma=jr.languages;ko.monaco=jr,ko.require!==void 0&&typeof ko.require.config=="function"&&ko.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"]})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("modeService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(18),f=r(141);r.d(w,"b",function(){return f.a});let O=Object(h.c)("quickInputService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(12);class f{constructor(E,ge){this._tokens=E,this._tokensCount=this._tokens.length>>>1,this._text=ge}equals(E){return E instanceof f&&this.slicedEquals(E,0,this._tokensCount)}slicedEquals(E,ge,W){if(this._text!==E._text||this._tokensCount!==E._tokensCount)return!1;let Q=ge<<1,y=Q+(W<<1);for(let C=Q;C<y;C++)if(this._tokens[C]!==E._tokens[C])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(E){return E>0?this._tokens[E-1<<1]:0}getMetadata(E){return this._tokens[1+(E<<1)]}getLanguageId(E){let ge=this._tokens[1+(E<<1)];return h.B.getLanguageId(ge)}getStandardTokenType(E){let ge=this._tokens[1+(E<<1)];return h.B.getTokenType(ge)}getForeground(E){let ge=this._tokens[1+(E<<1)];return h.B.getForeground(ge)}getClassName(E){let ge=this._tokens[1+(E<<1)];return h.B.getClassNameFromMetadata(ge)}getInlineStyle(E,ge){let W=this._tokens[1+(E<<1)];return h.B.getInlineStyleFromMetadata(W,ge)}getEndOffset(E){return this._tokens[E<<1]}findTokenIndexAtOffset(E){return f.findIndexInTokensArray(this._tokens,E)}inflate(){return this}sliceAndInflate(E,ge,W){return new O(this,E,ge,W)}static convertToEndOffset(E,ge){let W=(E.length>>>1)-1;for(let Q=0;Q<W;Q++)E[Q<<1]=E[Q+1<<1];E[W<<1]=ge}static findIndexInTokensArray(E,ge){if(E.length<=2)return 0;let W=0,Q=(E.length>>>1)-1;for(;W<Q;){let y=W+Math.floor((Q-W)/2),C=E[y<<1];if(C===ge)return y+1;C<ge?W=y+1:C>ge&&(Q=y)}return W}}class O{constructor(E,ge,W,Q){this._source=E,this._startOffset=ge,this._endOffset=W,this._deltaOffset=Q,this._firstTokenIndex=E.findTokenIndexAtOffset(ge),this._tokensCount=0;for(let y=this._firstTokenIndex,C=E.getCount();y<C&&!(E.getStartOffset(y)>=W);y++)this._tokensCount++}equals(E){return E instanceof O&&this._startOffset===E._startOffset&&this._endOffset===E._endOffset&&this._deltaOffset===E._deltaOffset&&this._source.slicedEquals(E._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(E){return this._source.getForeground(this._firstTokenIndex+E)}getEndOffset(E){let ge=this._source.getEndOffset(this._firstTokenIndex+E);return Math.min(this._endOffset,ge)-this._startOffset+this._deltaOffset}getClassName(E){return this._source.getClassName(this._firstTokenIndex+E)}getInlineStyle(E,ge){return this._source.getInlineStyle(this._firstTokenIndex+E,ge)}findTokenIndexAtOffset(E){return this._source.findTokenIndexAtOffset(E+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"c",function(){return O}),r.d(w,"a",function(){return H});var h=r(143);function f(E){return!(!E||typeof E.getEditorType!="function")&&E.getEditorType()===h.a.ICodeEditor}function O(E){return!(!E||typeof E.getEditorType!="function")&&E.getEditorType()===h.a.IDiffEditor}function H(E){return f(E)?E:O(E)?E.getModifiedEditor():null}},function(Ie,w,r){"use strict";r.d(w,"e",function(){return se}),r.d(w,"f",function(){return ke}),r.d(w,"a",function(){return Y}),r.d(w,"h",function(){return he}),r.d(w,"g",function(){return Ce}),r.d(w,"d",function(){return L}),r.d(w,"b",function(){return nt}),r.d(w,"c",function(){return J}),r(197);var h=r(2),f=r(14),O=r(16),H=r(98),E=r(1),ge=r(11),W=r(61),Q=r(67),y=r(6),C=r(44);class S extends Error{constructor(A,ee){super(`ListError [${A}] ${ee}`)}}var P=r(162),V=r(15),k=r(46);class l{constructor(A){this.spliceables=A}splice(A,ee,de){this.spliceables.forEach(De=>De.splice(A,ee,de))}}var T,N=r(118),b=r(71),g=r(66),j=function(Se,A,ee,de){var De,$e=arguments.length,pt=$e<3?A:de===null?de=Object.getOwnPropertyDescriptor(A,ee):de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pt=Reflect.decorate(Se,A,ee,de);else for(var it=Se.length-1;it>=0;it--)(De=Se[it])&&(pt=($e<3?De(pt):$e>3?De(A,ee,pt):De(A,ee))||pt);return $e>3&&pt&&Object.defineProperty(A,ee,pt),pt};class ie{constructor(A){this.trait=A,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(A){return A}renderElement(A,ee,de){let De=Object(O.j)(this.renderedElements,$e=>$e.templateData===de);if(De>=0){let $e=this.renderedElements[De];this.trait.unrender(de),$e.index=ee}else{let $e={index:ee,templateData:de};this.renderedElements.push($e)}this.trait.renderIndex(ee,de)}splice(A,ee,de){let De=[];for(let $e of this.renderedElements)$e.index<A?De.push($e):$e.index>=A+ee&&De.push({index:$e.index+de-ee,templateData:$e.templateData});this.renderedElements=De}renderIndexes(A){for(let{index:ee,templateData:de}of this.renderedElements)A.indexOf(ee)>-1&&this.trait.renderIndex(ee,de)}disposeTemplate(A){let ee=Object(O.j)(this.renderedElements,de=>de.templateData===A);ee<0||this.renderedElements.splice(ee,1)}}class U{constructor(A){this._trait=A,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new ie(this)}splice(A,ee,de){let De=de.length-ee,$e=A+ee,pt=[...this.sortedIndexes.filter(it=>it<A),...de.map((it,At)=>it?At+A:-1).filter(it=>it!==-1),...this.sortedIndexes.filter(it=>it>=$e).map(it=>it+De)];this.renderer.splice(A,ee,de.length),this._set(pt,pt)}renderIndex(A,ee){E.ab(ee,this._trait,this.contains(A))}unrender(A){E.Q(A,this._trait)}set(A,ee){return this._set(A,[...A].sort(fe),ee)}_set(A,ee,de){let De=this.indexes,$e=this.sortedIndexes;this.indexes=A,this.sortedIndexes=ee;let pt=ht($e,A);return this.renderer.renderIndexes(pt),this._onChange.fire({indexes:A,browserEvent:de}),De}get(){return this.indexes}contains(A){return Object(O.c)(this.sortedIndexes,A,fe)>=0}dispose(){Object(h.f)(this._onChange)}}j([H.a],U.prototype,"renderer",null);class q extends U{constructor(A){super("selected"),this.setAriaSelected=A}renderIndex(A,ee){super.renderIndex(A,ee),this.setAriaSelected&&(this.contains(A)?ee.setAttribute("aria-selected","true"):ee.setAttribute("aria-selected","false"))}}class B{constructor(A,ee,de){this.trait=A,this.view=ee,this.identityProvider=de}splice(A,ee,de){if(!this.identityProvider)return this.trait.splice(A,ee,de.map(()=>!1));let De=this.trait.get().map(pt=>this.identityProvider.getId(this.view.element(pt)).toString()),$e=de.map(pt=>De.indexOf(this.identityProvider.getId(pt).toString())>-1);this.trait.splice(A,ee,$e)}}function se(Se){return Se.tagName==="INPUT"||Se.tagName==="TEXTAREA"}function ke(Se){return!!E.I(Se,"monaco-editor")||!E.I(Se,"monaco-list")&&!!Se.parentElement&&ke(Se.parentElement)}class xe{constructor(A,ee,de){this.list=A,this.view=ee,this.disposables=new h.b;let De=de.multipleSelectionSupport!==!1,$e=y.b.chain(Object(C.a)(ee.domNode,"keydown")).filter(pt=>!se(pt.target)).map(pt=>new Q.a(pt));$e.filter(pt=>pt.keyCode===3).on(this.onEnter,this,this.disposables),$e.filter(pt=>pt.keyCode===16).on(this.onUpArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===18).on(this.onDownArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===11).on(this.onPageUpArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===12).on(this.onPageDownArrow,this,this.disposables),$e.filter(pt=>pt.keyCode===9).on(this.onEscape,this,this.disposables),De&&$e.filter(pt=>(ge.f?pt.metaKey:pt.ctrlKey)&&pt.keyCode===31).on(this.onCtrlA,this,this.disposables)}onEnter(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection(this.list.getFocus(),A.browserEvent)}onUpArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusPrevious(1,!1,A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusNext(1,!1,A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusPreviousPage(A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(A){A.preventDefault(),A.stopPropagation(),this.list.focusNextPage(A.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection(Object(O.s)(this.list.length),A.browserEvent),this.view.domNode.focus()}onEscape(A){A.preventDefault(),A.stopPropagation(),this.list.setSelection([],A.browserEvent),this.view.domNode.focus()}dispose(){this.disposables.dispose()}}(function(Se){Se[Se.Idle=0]="Idle",Se[Se.Typing=1]="Typing"})(T||(T={}));let Y=new class{mightProducePrintableCharacter(Se){return!(Se.ctrlKey||Se.metaKey||Se.altKey)&&(Se.keyCode>=31&&Se.keyCode<=56||Se.keyCode>=21&&Se.keyCode<=30||Se.keyCode>=93&&Se.keyCode<=102||Se.keyCode>=80&&Se.keyCode<=90)}};class Z{constructor(A,ee,de,De){this.list=A,this.view=ee,this.keyboardNavigationLabelProvider=de,this.delegate=De,this.enabled=!1,this.state=T.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new h.b,this.disposables=new h.b,this.updateOptions(A.options)}updateOptions(A){A.enableKeyboardNavigation===void 0||!!A.enableKeyboardNavigation?this.enable():this.disable(),A.automaticKeyboardNavigation!==void 0&&(this.automaticKeyboardNavigation=A.automaticKeyboardNavigation)}enable(){if(this.enabled)return;let A=y.b.chain(Object(C.a)(this.view.domNode,"keydown")).filter(de=>!se(de.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(de=>new Q.a(de)).filter(de=>this.delegate.mightProducePrintableCharacter(de)).forEach(de=>{de.stopPropagation(),de.preventDefault()}).map(de=>de.browserEvent.key).event,ee=y.b.debounce(A,()=>null,800);y.b.reduce(y.b.any(A,ee),(de,De)=>De===null?null:(de||"")+De)(this.onInput,this,this.enabledDisposables),ee(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var A;let ee=this.list.getFocus();if(ee.length>0&&ee[0]===this.previouslyFocused){let de=(A=this.list.options.accessibilityProvider)===null||A===void 0?void 0:A.getAriaLabel(this.list.element(ee[0]));de&&Object(g.a)(de)}this.previouslyFocused=-1}onInput(A){if(!A)return this.state=T.Idle,void(this.triggered=!1);let ee=this.list.getFocus(),de=ee.length>0?ee[0]:0,De=this.state===T.Idle?1:0;this.state=T.Typing;for(let $e=0;$e<this.list.length;$e++){let pt=(de+$e+De)%this.list.length,it=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(pt)),At=it&&it.toString();if(At===void 0||Object(b.h)(A,At))return this.previouslyFocused=de,this.list.setFocus([pt]),void this.list.reveal(pt)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class te{constructor(A,ee){this.list=A,this.view=ee,this.disposables=new h.b,y.b.chain(Object(C.a)(ee.domNode,"keydown")).filter(de=>!se(de.target)).map(de=>new Q.a(de)).filter(de=>!(de.keyCode!==2||de.ctrlKey||de.metaKey||de.shiftKey||de.altKey)).on(this.onTab,this,this.disposables)}onTab(A){if(A.target!==this.view.domNode)return;let ee=this.list.getFocus();if(ee.length===0)return;let de=this.view.domElement(ee[0]);if(!de)return;let De=de.querySelector("[tabIndex]");if(!(De&&De instanceof HTMLElement&&De.tabIndex!==-1))return;let $e=window.getComputedStyle(De);$e.visibility!=="hidden"&&$e.display!=="none"&&(A.preventDefault(),A.stopPropagation(),De.focus())}dispose(){this.disposables.dispose()}}function he(Se){return ge.f?Se.browserEvent.metaKey:Se.browserEvent.ctrlKey}function Ce(Se){return Se.browserEvent.shiftKey}let Ae={isSelectionSingleChangeEvent:he,isSelectionRangeChangeEvent:Ce};class L{constructor(A){this.list=A,this.disposables=new h.b,this._onPointer=new y.a,this.onPointer=this._onPointer.event,this.multipleSelectionSupport=A.options.multipleSelectionSupport!==!1,this.multipleSelectionSupport&&(this.multipleSelectionController=A.options.multipleSelectionController||Ae),this.mouseSupport=A.options.mouseSupport===void 0||!!A.options.mouseSupport,this.mouseSupport&&(A.onMouseDown(this.onMouseDown,this,this.disposables),A.onContextMenu(this.onContextMenu,this,this.disposables),A.onMouseDblClick(this.onDoubleClick,this,this.disposables),A.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(W.b.addTarget(A.getHTMLElement()))),y.b.any(A.onMouseClick,A.onMouseMiddleClick,A.onTap)(this.onViewPointer,this,this.disposables)}isSelectionSingleChangeEvent(A){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(A):ge.f?A.browserEvent.metaKey:A.browserEvent.ctrlKey}isSelectionRangeChangeEvent(A){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(A):A.browserEvent.shiftKey}isSelectionChangeEvent(A){return this.isSelectionSingleChangeEvent(A)||this.isSelectionRangeChangeEvent(A)}onMouseDown(A){ke(A.browserEvent.target)||document.activeElement!==A.browserEvent.target&&this.list.domFocus()}onContextMenu(A){if(ke(A.browserEvent.target))return;let ee=A.index===void 0?[]:[A.index];this.list.setFocus(ee,A.browserEvent)}onViewPointer(A){if(!this.mouseSupport||se(A.browserEvent.target)||ke(A.browserEvent.target))return;let ee=this.list.getFocus()[0],de=this.list.getSelection();ee=ee===void 0?de[0]:ee;let De=A.index;return De===void 0?(this.list.setFocus([],A.browserEvent),void this.list.setSelection([],A.browserEvent)):this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(A)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(A)?this.changeSelection(A,ee):(this.list.setFocus([De],A.browserEvent),($e=A.browserEvent)instanceof MouseEvent&&$e.button===2||this.list.setSelection([De],A.browserEvent),void this._onPointer.fire(A));var $e}onDoubleClick(A){if(se(A.browserEvent.target)||ke(A.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(A))return;let ee=this.list.getFocus();this.list.setSelection(ee,A.browserEvent)}changeSelection(A,ee){let de=A.index;if(this.isSelectionRangeChangeEvent(A)&&ee!==void 0){let De=Math.min(ee,de),$e=Math.max(ee,de),pt=Object(O.s)(De,$e+1),it=this.list.getSelection(),At=function(_i,wt){let Ni=_i.indexOf(wt);if(Ni===-1)return[];let pi=[],et=Ni-1;for(;et>=0&&_i[et]===wt-(Ni-et);)pi.push(_i[et--]);for(pi.reverse(),et=Ni;et<_i.length&&_i[et]===wt+(et-Ni);)pi.push(_i[et++]);return pi}(ht(it,[ee]),ee);if(At.length===0)return;let Nt=ht(pt,function(_i,wt){let Ni=[],pi=0,et=0;for(;pi<_i.length||et<wt.length;)if(pi>=_i.length)Ni.push(wt[et++]);else if(et>=wt.length)Ni.push(_i[pi++]);else{if(_i[pi]===wt[et]){pi++,et++;continue}_i[pi]<wt[et]?Ni.push(_i[pi++]):et++}return Ni}(it,At));this.list.setSelection(Nt,A.browserEvent)}else if(this.isSelectionSingleChangeEvent(A)){let De=this.list.getSelection(),$e=De.filter(pt=>pt!==de);this.list.setFocus([de]),De.length===$e.length?this.list.setSelection([...$e,de],A.browserEvent):this.list.setSelection($e,A.browserEvent)}}dispose(){this.disposables.dispose()}}class nt{constructor(A,ee){this.styleElement=A,this.selectorSuffix=ee}style(A){let ee=this.selectorSuffix&&"."+this.selectorSuffix,de=[];A.listBackground&&(A.listBackground.isOpaque()?de.push(`.monaco-list${ee} .monaco-list-rows { background: ${A.listBackground}; }`):ge.f||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),A.listFocusBackground&&(de.push(`.monaco-list${ee}:focus .monaco-list-row.focused { background-color: ${A.listFocusBackground}; }`),de.push(`.monaco-list${ee}:focus .monaco-list-row.focused:hover { background-color: ${A.listFocusBackground}; }`)),A.listFocusForeground&&de.push(`.monaco-list${ee}:focus .monaco-list-row.focused { color: ${A.listFocusForeground}; }`),A.listActiveSelectionBackground&&(de.push(`.monaco-list${ee}:focus .monaco-list-row.selected { background-color: ${A.listActiveSelectionBackground}; }`),de.push(`.monaco-list${ee}:focus .monaco-list-row.selected:hover { background-color: ${A.listActiveSelectionBackground}; }`)),A.listActiveSelectionForeground&&de.push(`.monaco-list${ee}:focus .monaco-list-row.selected { color: ${A.listActiveSelectionForeground}; }`),A.listFocusAndSelectionBackground&&de.push(` .monaco-drag-image, .monaco-list${ee}:focus .monaco-list-row.selected.focused { background-color: ${A.listFocusAndSelectionBackground}; } `),A.listFocusAndSelectionForeground&&de.push(` @@ -1041,37 +1041,37 @@ ${Object(zn.b)(ks)} .monaco-list${ee}.drop-target, .monaco-list${ee} .monaco-list-rows.drop-target, .monaco-list${ee} .monaco-list-row.drop-target { background-color: ${A.listDropBackground} !important; color: inherit !important; } - `),A.listFilterWidgetBackground&&de.push(`.monaco-list-type-filter { background-color: ${A.listFilterWidgetBackground} }`),A.listFilterWidgetOutline&&de.push(`.monaco-list-type-filter { border: 1px solid ${A.listFilterWidgetOutline}; }`),A.listFilterWidgetNoMatchesOutline&&de.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${A.listFilterWidgetNoMatchesOutline}; }`),A.listMatchesShadow&&de.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${A.listMatchesShadow}; }`);let Oe=de.join(` -`);Oe!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Oe)}}let ct={listFocusBackground:V.a.fromHex("#7FB0D0"),listActiveSelectionBackground:V.a.fromHex("#0E639C"),listActiveSelectionForeground:V.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:V.a.fromHex("#094771"),listFocusAndSelectionForeground:V.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:V.a.fromHex("#3F3F46"),listHoverBackground:V.a.fromHex("#2A2D2E"),listDropBackground:V.a.fromHex("#383B3D"),treeIndentGuidesStroke:V.a.fromHex("#a9a9a9")},Ye={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}}};function ht(Se,A){let ee=[],de=0,Oe=0;for(;de<Se.length||Oe<A.length;)if(de>=Se.length)ee.push(A[Oe++]);else if(Oe>=A.length)ee.push(Se[de++]);else{if(Se[de]===A[Oe]){ee.push(Se[de]),de++,Oe++;continue}Se[de]<A[Oe]?ee.push(Se[de++]):ee.push(A[Oe++])}return ee}let fe=(Se,A)=>Se-A;class ${constructor(A,ee){this._templateId=A,this.renderers=ee}get templateId(){return this._templateId}renderTemplate(A){return this.renderers.map(ee=>ee.renderTemplate(A))}renderElement(A,ee,de,Oe){let $e=0;for(let pt of this.renderers)pt.renderElement(A,ee,de[$e++],Oe)}disposeElement(A,ee,de,Oe){let $e=0;for(let pt of this.renderers)pt.disposeElement&&pt.disposeElement(A,ee,de[$e],Oe),$e+=1}disposeTemplate(A){let ee=0;for(let de of this.renderers)de.disposeTemplate(A[ee++])}}class G{constructor(A){this.accessibilityProvider=A,this.templateId="a18n"}renderTemplate(A){return A}renderElement(A,ee,de){let Oe=this.accessibilityProvider.getAriaLabel(A);Oe?de.setAttribute("aria-label",Oe):de.removeAttribute("aria-label");let $e=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(A);typeof $e=="number"?de.setAttribute("aria-level",""+$e):de.removeAttribute("aria-level")}disposeTemplate(A){}}class z{constructor(A,ee){this.list=A,this.dnd=ee}getDragElements(A){let ee=this.list.getSelectedElements();return ee.indexOf(A)>-1?ee:[A]}getDragURI(A){return this.dnd.getDragURI(A)}getDragLabel(A,ee){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(A,ee)}onDragStart(A,ee){this.dnd.onDragStart&&this.dnd.onDragStart(A,ee)}onDragOver(A,ee,de,Oe){return this.dnd.onDragOver(A,ee,de,Oe)}onDragEnd(A){this.dnd.onDragEnd&&this.dnd.onDragEnd(A)}drop(A,ee,de,Oe){this.dnd.drop(A,ee,de,Oe)}}class J{constructor(A,ee,de,Oe,$e=Ye){var pt;this.user=A,this._options=$e,this.eventBufferer=new y.c,this._ariaLabel="",this.disposables=new h.b,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event;let it=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(pt=this._options.accessibilityProvider)===null||pt===void 0?void 0:pt.getWidgetRole():"list";this.selection=new q(it!=="listbox"),this.focus=new U("focused"),Object(k.g)($e,ct,!1);let At=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=$e.accessibilityProvider,this.accessibilityProvider&&(At.push(new G(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),Oe=Oe.map(_i=>new $(_i.templateId,[...At,_i]));let Nt=Object.assign(Object.assign({},$e),{dnd:$e.dnd&&new z(this,$e.dnd)});if(this.view=new P.b(ee,de,Oe,Nt),this.view.domNode.setAttribute("role",it),$e.styleController)this.styleController=$e.styleController(this.view.domId);else{let _i=E.v(this.view.domNode);this.styleController=new nt(_i,this.view.domId)}if(this.spliceable=new l([new B(this.focus,this.view,$e.identityProvider),new B(this.selection,this.view,$e.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=y.b.map(Object(C.a)(this.view.domNode,"focus",!0),()=>null),this.onDidBlur=y.b.map(Object(C.a)(this.view.domNode,"blur",!0),()=>null),this.disposables.add(new te(this,this.view)),typeof $e.keyboardSupport!="boolean"||$e.keyboardSupport){let _i=new xe(this,this.view,$e);this.disposables.add(_i)}if($e.keyboardNavigationLabelProvider){let _i=$e.keyboardNavigationDelegate||Y;this.typeLabelController=new Z(this,this.view,$e.keyboardNavigationLabelProvider,_i),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController($e),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),$e.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),A=>this.toListEvent(A))}get onDidChangeSelection(){return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),A=>this.toListEvent(A))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let A=y.b.chain(Object(C.a)(this.view.domNode,"keydown")).map(Oe=>new Q.a(Oe)).filter(Oe=>this.didJustPressContextMenuKey=Oe.keyCode===58||Oe.shiftKey&&Oe.keyCode===68).filter(Oe=>(Oe.preventDefault(),Oe.stopPropagation(),!1)).event,ee=y.b.chain(Object(C.a)(this.view.domNode,"keyup")).filter(()=>{let Oe=this.didJustPressContextMenuKey;return this.didJustPressContextMenuKey=!1,Oe}).filter(()=>this.getFocus().length>0&&!!this.view.domElement(this.getFocus()[0])).map(Oe=>{let $e=this.getFocus()[0];return{index:$e,element:this.view.element($e),anchor:this.view.domElement($e),browserEvent:Oe}}).event,de=y.b.chain(this.view.onContextMenu).filter(()=>!this.didJustPressContextMenuKey).map(({element:Oe,index:$e,browserEvent:pt})=>({element:Oe,index:$e,anchor:{x:pt.clientX+1,y:pt.clientY},browserEvent:pt})).event;return y.b.any(A,ee,de)}get onKeyDown(){return Object(C.a)(this.view.domNode,"keydown")}createMouseController(A){return new L(this)}updateOptions(A={}){this._options=Object.assign(Object.assign({},this._options),A),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this.view.updateOptions(A)}get options(){return this._options}splice(A,ee,de=[]){if(A<0||A>this.view.length)throw new S(this.user,"Invalid start index: "+A);if(ee<0)throw new S(this.user,"Invalid delete count: "+ee);ee===0&&de.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(A,ee,de))}rerender(){this.view.rerender()}element(A){return this.view.element(A)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(A){this.view.setScrollTop(A)}get ariaLabel(){return this._ariaLabel}set ariaLabel(A){this._ariaLabel=A,this.view.domNode.setAttribute("aria-label",A)}domFocus(){this.view.domNode.focus()}layout(A,ee){this.view.layout(A,ee)}setSelection(A,ee){for(let de of A)if(de<0||de>=this.length)throw new S(this.user,"Invalid index "+de);this.selection.set(A,ee)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(A=>this.view.element(A))}setFocus(A,ee){for(let de of A)if(de<0||de>=this.length)throw new S(this.user,"Invalid index "+de);this.focus.set(A,ee)}focusNext(A=1,ee=!1,de,Oe){if(this.length===0)return;let $e=this.focus.get(),pt=this.findNextIndex($e.length>0?$e[0]+A:0,ee,Oe);pt>-1&&this.setFocus([pt],de)}focusPrevious(A=1,ee=!1,de,Oe){if(this.length===0)return;let $e=this.focus.get(),pt=this.findPreviousIndex($e.length>0?$e[0]-A:0,ee,Oe);pt>-1&&this.setFocus([pt],de)}focusNextPage(A,ee){let de=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);de=de===0?0:de-1;let Oe=this.view.element(de),$e=this.getFocusedElements()[0];if($e!==Oe){let pt=this.findPreviousIndex(de,!1,ee);pt>-1&&$e!==this.view.element(pt)?this.setFocus([pt],A):this.setFocus([de],A)}else{let pt=this.view.getScrollTop();this.view.setScrollTop(pt+this.view.renderHeight-this.view.elementHeight(de)),this.view.getScrollTop()!==pt&&setTimeout(()=>this.focusNextPage(A,ee),0)}}focusPreviousPage(A,ee){let de,Oe=this.view.getScrollTop();de=Oe===0?this.view.indexAt(Oe):this.view.indexAfter(Oe-1);let $e=this.view.element(de),pt=this.getFocusedElements()[0];if(pt!==$e){let it=this.findNextIndex(de,!1,ee);it>-1&&pt!==this.view.element(it)?this.setFocus([it],A):this.setFocus([de],A)}else{let it=Oe;this.view.setScrollTop(Oe-this.view.renderHeight),this.view.getScrollTop()!==it&&setTimeout(()=>this.focusPreviousPage(A,ee),0)}}focusLast(A,ee){if(this.length===0)return;let de=this.findPreviousIndex(this.length-1,!1,ee);de>-1&&this.setFocus([de],A)}focusFirst(A,ee){this.focusNth(0,A,ee)}focusNth(A,ee,de){if(this.length===0)return;let Oe=this.findNextIndex(A,!1,de);Oe>-1&&this.setFocus([Oe],ee)}findNextIndex(A,ee=!1,de){for(let Oe=0;Oe<this.length;Oe++){if(A>=this.length&&!ee)return-1;if(A%=this.length,!de||de(this.element(A)))return A;A++}return-1}findPreviousIndex(A,ee=!1,de){for(let Oe=0;Oe<this.length;Oe++){if(A<0&&!ee)return-1;if(A=(this.length+A%this.length)%this.length,!de||de(this.element(A)))return A;A--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(A=>this.view.element(A))}reveal(A,ee){if(A<0||A>=this.length)throw new S(this.user,"Invalid index "+A);let de=this.view.getScrollTop(),Oe=this.view.elementTop(A),$e=this.view.elementHeight(A);if(Object(f.h)(ee)){let pt=$e-this.view.renderHeight;this.view.setScrollTop(pt*Object(N.b)(ee,0,1)+Oe)}else{let pt=Oe+$e,it=de+this.view.renderHeight;Oe<de&&pt>=it||(Oe<de?this.view.setScrollTop(Oe):pt>=it&&this.view.setScrollTop(pt-this.view.renderHeight))}}getRelativeTop(A){if(A<0||A>=this.length)throw new S(this.user,"Invalid index "+A);let ee=this.view.getScrollTop(),de=this.view.elementTop(A),Oe=this.view.elementHeight(A);if(de<ee||de+Oe>ee+this.view.renderHeight)return null;let $e=Oe-this.view.renderHeight;return Math.abs((ee-de)/$e)}getHTMLElement(){return this.view.domNode}style(A){this.styleController.style(A)}toListEvent({indexes:A,browserEvent:ee}){return{indexes:A,elements:A.map(de=>this.view.element(de)),browserEvent:ee}}_onFocusChange(){let A=this.focus.get();E.ab(this.view.domNode,"element-focused",A.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var A;let ee=this.focus.get();if(ee.length>0){let de;((A=this.accessibilityProvider)===null||A===void 0?void 0:A.getActiveDescendantId)&&(de=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",de||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){let A=this.selection.get();E.ab(this.view.domNode,"selection-none",A.length===0),E.ab(this.view.domNode,"selection-single",A.length===1),E.ab(this.view.domNode,"selection-multiple",A.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}j([H.a],J.prototype,"onDidChangeFocus",null),j([H.a],J.prototype,"onDidChangeSelection",null),j([H.a],J.prototype,"onContextMenu",null)},function(Ie,w,o){"use strict";function h(H,E){let ge=H.getCount(),W=H.findTokenIndexAtOffset(E),Q=H.getLanguageId(W),y=W;for(;y+1<ge&&H.getLanguageId(y+1)===Q;)y++;let C=W;for(;C>0&&H.getLanguageId(C-1)===Q;)C--;return new f(H,Q,C,y+1,H.getStartOffset(C),H.getEndOffset(y))}o.d(w,"a",function(){return h}),o.d(w,"b",function(){return D});class f{constructor(E,ge,W,Q,y,C){this._actual=E,this.languageId=ge,this._firstTokenIndex=W,this._lastTokenIndex=Q,this.firstCharOffset=y,this._lastCharOffset=C}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(E){return this._actual.getLineContent().substring(0,this.firstCharOffset+E)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(E){return this._actual.findTokenIndexAtOffset(E+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(E){return this._actual.getStandardTokenType(E+this._firstTokenIndex)}}function D(H){return(7&H)!=0}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return D}),o.d(w,"a",function(){return H});var h=o(163);let f=[];function D(E,ge,W){f.push([E,new h.a(ge,[],W)])}function H(){return f}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Q}),o(196);var h=o(2),f=o(60),D=o(1),H=o(14),E=o(67),ge=o(6),W=o(123);class Q extends h.a{constructor(C,S={}){var P,V,k;let l,T;switch(super(),this._onDidBlur=this._register(new ge.a),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new ge.a),this.onDidCancel=this._onDidCancel.event,this._onDidRun=this._register(new ge.a),this.onDidRun=this._onDidRun.event,this._onDidBeforeRun=this._register(new ge.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this.options=S,this._context=(P=S.context)!==null&&P!==void 0?P:null,this._orientation=(V=this.options.orientation)!==null&&V!==void 0?V:0,this._triggerKeys=(k=this.options.triggerKeys)!==null&&k!==void 0?k:{keys:[3,10],keyDown:!1},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new f.b,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(N=>this._onDidRun.fire(N))),this._register(this._actionRunner.onDidBeforeRun(N=>this._onDidBeforeRun.fire(N))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",S.animated!==!1&&D.e(this.domNode,"animated"),this._orientation){case 0:l=15,T=17;break;case 1:l=17,T=15,this.domNode.className+=" reverse";break;case 2:l=16,T=18,this.domNode.className+=" vertical";break;case 3:l=18,T=16,this.domNode.className+=" vertical reverse"}this._register(D.i(this.domNode,D.c.KEY_DOWN,N=>{let b=new E.a(N),g=!0;b.equals(l)?g=this.focusPrevious():b.equals(T)?g=this.focusNext():b.equals(9)?this._onDidCancel.fire():this.isTriggerKeyEvent(b)?this._triggerKeys.keyDown&&this.doTrigger(b):g=!1,g&&(b.preventDefault(),b.stopPropagation())})),this._register(D.i(this.domNode,D.c.KEY_UP,N=>{let b=new E.a(N);this.isTriggerKeyEvent(b)?(this._triggerKeys.keyDown||this.doTrigger(b),b.preventDefault(),b.stopPropagation()):(b.equals(2)||b.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(D.bb(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{D.x()!==this.domNode&&D.L(D.x(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),C.appendChild(this.domNode)}isTriggerKeyEvent(C){let S=!1;return this._triggerKeys.keys.forEach(P=>{S=S||C.equals(P)}),S}updateFocusedItem(){for(let C=0;C<this.actionsList.children.length;C++){let S=this.actionsList.children[C];if(D.L(D.x(),S)){this.focusedItem=C;break}}}get context(){return this._context}set context(C){this._context=C,this.viewItems.forEach(S=>S.setActionContext(C))}get actionRunner(){return this._actionRunner}set actionRunner(C){C&&(this._actionRunner=C,this.viewItems.forEach(S=>S.actionRunner=C))}getContainer(){return this.domNode}push(C,S={}){let P=Array.isArray(C)?C:[C],V=H.h(S.index)?S.index:null;P.forEach(k=>{let l=document.createElement("li"),T;l.className="action-item",l.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(D.i(l,D.c.CONTEXT_MENU,N=>{D.b.stop(N,!0)})),this.options.actionViewItemProvider&&(T=this.options.actionViewItemProvider(k)),T||(T=new W.a(this.context,k,S)),T.actionRunner=this._actionRunner,T.setActionContext(this.context),T.render(l),V===null||V<0||V>=this.actionsList.children.length?(this.actionsList.appendChild(l),this.viewItems.push(T)):(this.actionsList.insertBefore(l,this.actionsList.children[V]),this.viewItems.splice(V,0,T),V++)}),this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(h.f)(this.viewItems),this.viewItems=[],D.s(this.actionsList)}focus(C){let S=!1,P;C===void 0?S=!0:typeof C=="number"?P=C:typeof C=="boolean"&&(S=C),S&&this.focusedItem===void 0?(this.focusedItem=-1,this.focusNext()):(P!==void 0&&(this.focusedItem=P),this.updateFocus())}focusNext(){this.focusedItem===void 0&&(this.focusedItem=this.viewItems.length-1);let C=this.focusedItem,S;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=C,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,S=this.viewItems[this.focusedItem]}while(this.focusedItem!==C&&!S.isEnabled());return this.focusedItem!==C||S.isEnabled()||(this.focusedItem=void 0),this.updateFocus(),!0}focusPrevious(){this.focusedItem===void 0&&(this.focusedItem=0);let C=this.focusedItem,S;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=C,!1;this.focusedItem=this.viewItems.length-1}S=this.viewItems[this.focusedItem]}while(this.focusedItem!==C&&!S.isEnabled());return this.focusedItem!==C||S.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0),!0}updateFocus(C,S){this.focusedItem===void 0&&this.actionsList.focus({preventScroll:S});for(let P=0;P<this.viewItems.length;P++){let V=this.viewItems[P];P===this.focusedItem?H.g(V.isEnabled)&&(V.isEnabled()&&H.g(V.focus)?V.focus(C):this.actionsList.focus({preventScroll:S})):H.g(V.blur)&&V.blur()}}doTrigger(C){if(this.focusedItem===void 0)return;let S=this.viewItems[this.focusedItem];if(S instanceof W.b){let P=S._context===null||S._context===void 0?C:S._context;this.run(S._action,P)}}run(C,S){return this._actionRunner.run(C,S)}dispose(){Object(h.f)(this.viewItems),this.viewItems=[],D.S(this.getContainer()),super.dispose()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(76);class f extends h.a{constructor(E){super(0);for(let ge=0,W=E.length;ge<W;ge++)this.set(E.charCodeAt(ge),2);this.set(32,1),this.set(9,1)}}let D=function(H){let E={};return ge=>(E.hasOwnProperty(ge)||(E[ge]=H(ge)),E[ge])}(H=>new f(H))},function(Ie,w,o){"use strict";function h(D,H,E){return Math.min(Math.max(D,H),E)}o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f});class f{constructor(){this._n=1,this._val=0}update(H){return this._val=this._val+(H-this._val)/this._n,this._n+=1,this}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return E}),o.d(w,"a",function(){return P});var h=o(8),f=o(132),D=o(3);class H{constructor(k,l,T,N,b,g){this.languageIdentifier=k,this.index=l,this.open=T,this.close=N,this.forwardRegex=b,this.reversedRegex=g,this._openSet=H._toSet(this.open),this._closeSet=H._toSet(this.close)}isOpen(k){return this._openSet.has(k)}isClose(k){return this._closeSet.has(k)}static _toSet(k){let l=new Set;for(let T of k)l.add(T);return l}}class E{constructor(k,l){let T=function(N){let b=N.length;N=N.map(q=>[q[0].toLowerCase(),q[1].toLowerCase()]);let g=[];for(let q=0;q<b;q++)g[q]=q;let j=(q,B)=>{let[se,ke]=q,[xe,Y]=B;return se===xe||se===Y||ke===xe||ke===Y},ie=(q,B)=>{let se=Math.min(q,B),ke=Math.max(q,B);for(let xe=0;xe<b;xe++)g[xe]===ke&&(g[xe]=se)};for(let q=0;q<b;q++){let B=N[q];for(let se=q+1;se<b;se++)j(B,N[se])&&ie(g[q],g[se])}let U=[];for(let q=0;q<b;q++){let B=[],se=[];for(let ke=0;ke<b;ke++)if(g[ke]===q){let[xe,Y]=N[ke];B.push(xe),se.push(Y)}B.length>0&&U.push({open:B,close:se})}return U}(l);this.brackets=T.map((N,b)=>new H(k,b,N.open,N.close,function(g,j,ie,U){let q=[];q=q.concat(g),q=q.concat(j);for(let B=0,se=q.length;B<se;B++)ge(q[B],ie,U,q);return q=Q(q),q.sort(W),q.reverse(),C(q)}(N.open,N.close,T,b),function(g,j,ie,U){let q=[];q=q.concat(g),q=q.concat(j);for(let B=0,se=q.length;B<se;B++)ge(q[B],ie,U,q);return q=Q(q),q.sort(W),q.reverse(),C(q.map(S))}(N.open,N.close,T,b))),this.forwardRegex=function(N){let b=[];for(let g of N){for(let j of g.open)b.push(j);for(let j of g.close)b.push(j)}return b=Q(b),C(b)}(this.brackets),this.reversedRegex=function(N){let b=[];for(let g of N){for(let j of g.open)b.push(j);for(let j of g.close)b.push(j)}return b=Q(b),C(b.map(S))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(let N of this.brackets){for(let b of N.open)this.textIsBracket[b]=N,this.textIsOpenBracket[b]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,b.length);for(let b of N.close)this.textIsBracket[b]=N,this.textIsOpenBracket[b]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,b.length)}}}function ge(V,k,l,T){for(let N=0,b=k.length;N<b;N++){if(N===l)continue;let g=k[N];for(let j of g.open)j.indexOf(V)>=0&&T.push(j);for(let j of g.close)j.indexOf(V)>=0&&T.push(j)}}function W(V,k){return V.length-k.length}function Q(V){if(V.length<=1)return V;let k=[],l=new Set;for(let T of V)l.has(T)||(k.push(T),l.add(T));return k}function y(V){let k=/^[\w ]+$/.test(V);return V=h.v(V),k?`\\b${V}\\b`:V}function C(V){let k=`(${V.map(y).join(")|(")})`;return h.q(k,!0)}let S=function(){let V=null,k=null;return function(l){return V!==l&&(V=l,k=function(T){if(f.d){let N=new Uint16Array(T.length),b=0;for(let g=T.length-1;g>=0;g--)N[b++]=T.charCodeAt(g);return f.c().decode(N)}{let N=[],b=0;for(let g=T.length-1;g>=0;g--)N[b++]=T.charAt(g);return N.join("")}}(V)),k}}();class P{static _findPrevBracketInText(k,l,T,N){let b=T.match(k);if(!b)return null;let g=T.length-(b.index||0),j=b[0].length,ie=N+g;return new D.a(l,ie-j+1,l,ie+1)}static findPrevBracketInRange(k,l,T,N,b){let g=S(T).substring(T.length-b,T.length-N);return this._findPrevBracketInText(k,l,g,N)}static findNextBracketInText(k,l,T,N){let b=T.match(k);if(!b)return null;let g=b.index||0,j=b[0].length;if(j===0)return null;let ie=N+g;return new D.a(l,ie+1,l,ie+1+j)}static findNextBracketInRange(k,l,T,N,b){let g=T.substring(N,b);return this.findNextBracketInText(k,l,g,N)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("telemetryService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("clipboardService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("textModelService")},function(Ie,w,o){"use strict";o.d(w,"b",function(){return C}),o.d(w,"a",function(){return S}),o(196);var h=o(11),f=o(0),D=o(2),H=o(60),E=o(1),ge=o(14),W=o(61),Q=o(125),y=o(34);class C extends D.a{constructor(V,k,l={}){super(),this.options=l,this._context=V||this,this._action=k,k instanceof H.a&&this._register(k.onDidChange(T=>{this.element&&this.handleActionChangeEvent(T)}))}handleActionChangeEvent(V){V.enabled!==void 0&&this.updateEnabled(),V.checked!==void 0&&this.updateChecked(),V.class!==void 0&&this.updateClass(),V.label!==void 0&&(this.updateLabel(),this.updateTooltip()),V.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new H.b)),this._actionRunner}set actionRunner(V){this._actionRunner=V}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(V){this._context=V}render(V){let k=this.element=V;this._register(W.b.addTarget(V));let l=this.options&&this.options.draggable;l&&(V.draggable=!0,y.h&&this._register(E.i(V,E.c.DRAG_START,T=>{var N;return(N=T.dataTransfer)===null||N===void 0?void 0:N.setData(Q.a.TEXT,this._action.label)}))),this._register(E.i(k,W.a.Tap,T=>this.onClick(T))),this._register(E.i(k,E.c.MOUSE_DOWN,T=>{l||E.b.stop(T,!0),this._action.enabled&&T.button===0&&E.e(k,"active")})),h.f&&this._register(E.i(k,E.c.CONTEXT_MENU,T=>{T.button===0&&T.ctrlKey===!0&&this.onClick(T)})),this._register(E.i(k,E.c.CLICK,T=>{E.b.stop(T,!0),this.options&&this.options.isMenu||h.j(()=>this.onClick(T))})),this._register(E.i(k,E.c.DBLCLICK,T=>{E.b.stop(T,!0)})),[E.c.MOUSE_UP,E.c.MOUSE_OUT].forEach(T=>{this._register(E.i(k,T,N=>{E.b.stop(N),E.Q(k,"active")}))})}onClick(V){var k;E.b.stop(V,!0);let l=ge.l(this._context)?((k=this.options)===null||k===void 0?void 0:k.useEventAsContext)?V:void 0:this._context;this.actionRunner.run(this._action,l)}focus(){this.element&&(this.element.focus(),E.e(this.element,"focused"))}blur(){this.element&&(this.element.blur(),E.Q(this.element,"focused"))}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(E.S(this.element),this.element=void 0),super.dispose()}}class S extends C{constructor(V,k,l={}){super(V,k,l),this.options=l,this.options.icon=l.icon!==void 0&&l.icon,this.options.label=l.label===void 0||l.label,this.cssClass=""}render(V){super.render(V),this.element&&(this.label=E.p(this.element,E.a("a.action-label"))),this.label&&(this._action.id===H.c.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(E.p(this.element,E.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){super.focus(),this.label&&this.label.focus()}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let V=null;this.getAction().tooltip?V=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(V=this.getAction().label,this.options.keybinding&&(V=f.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",V,this.options.keybinding))),V&&this.label&&(this.label.title=V)}updateClass(){this.cssClass&&this.label&&E.R(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(E.e(this.label,"codicon"),this.cssClass&&E.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&E.Q(this.label,"codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),E.Q(this.label,"disabled"),this.label.tabIndex=0),this.element&&E.Q(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),E.e(this.label,"disabled"),E.T(this.label)),this.element&&E.e(this.element,"disabled"))}updateChecked(){this.label&&(this.getAction().checked?E.e(this.label,"checked"):E.Q(this.label,"checked"))}}},function(Ie,w,o){"use strict";o.d(w,"f",function(){return ge}),o.d(w,"b",function(){return y}),o.d(w,"c",function(){return C}),o.d(w,"a",function(){return P}),o.d(w,"e",function(){return l}),o.d(w,"d",function(){return T});var h=o(15),f=o(111),D=o(9),H=o(3),E=o(12);function ge(N){let b=0,g=0,j=0,ie=0;for(let U=0,q=N.length;U<q;U++){let B=N.charCodeAt(U);B===13?(b===0&&(g=U),b++,U+1<q&&N.charCodeAt(U+1)===10?(ie|=2,U++):ie|=3,j=U+1):B===10&&(ie|=1,b===0&&(g=U),b++,j=U+1)}return b===0&&(g=N.length),[b,g,N.length-j,ie]}function W(N){return(16384|N<<0|2<<23)>>>0}let Q=new Uint32Array(0).buffer;class y{constructor(){this.tokens=[]}add(b,g){if(this.tokens.length>0){let j=this.tokens[this.tokens.length-1];if(j.startLineNumber+j.tokens.length-1+1===b)return void j.tokens.push(g)}this.tokens.push(new V(b,[g]))}}class C{constructor(b){this._tokens=b,this._tokenCount=b.length/4}toString(b){let g=[];for(let j=0;j<this._tokenCount;j++)g.push(`(${this._getDeltaLine(j)+b},${this._getStartCharacter(j)}-${this._getEndCharacter(j)})`);return`[${g.join(",")}]`}getMaxDeltaLine(){let b=this._getTokenCount();return b===0?-1:this._getDeltaLine(b-1)}getRange(){let b=this._getTokenCount();if(b===0)return null;let g=this._getStartCharacter(0),j=this._getDeltaLine(b-1),ie=this._getEndCharacter(b-1);return new H.a(0,g+1,j,ie+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(b){return this._tokens[4*b]}_getStartCharacter(b){return this._tokens[4*b+1]}_getEndCharacter(b){return this._tokens[4*b+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(b){let g=0,j=this._getTokenCount()-1;for(;g<j;){let ie=g+Math.floor((j-g)/2),U=this._getDeltaLine(ie);if(U<b)g=ie+1;else{if(!(U>b)){let q=ie;for(;q>g&&this._getDeltaLine(q-1)===b;)q--;let B=ie;for(;B<j&&this._getDeltaLine(B+1)===b;)B++;return new S(this._tokens.subarray(4*q,4*B+4))}j=ie-1}}return this._getDeltaLine(g)===b?new S(this._tokens.subarray(4*g,4*g+4)):null}clear(){this._tokenCount=0}removeTokens(b,g,j,ie){let U=this._tokens,q=this._tokenCount,B=0,se=!1,ke=0;for(let xe=0;xe<q;xe++){let Y=4*xe,Z=U[Y],te=U[Y+1],he=U[Y+2],Ce=U[Y+3];if((Z>b||Z===b&&he>=g)&&(Z<j||Z===j&&te<=ie))se=!0;else{if(B===0&&(ke=Z),se){let Ae=4*B;U[Ae]=Z-ke,U[Ae+1]=te,U[Ae+2]=he,U[Ae+3]=Ce}B++}}return this._tokenCount=B,ke}split(b,g,j,ie){let U=this._tokens,q=this._tokenCount,B=[],se=[],ke=B,xe=0,Y=0;for(let Z=0;Z<q;Z++){let te=4*Z,he=U[te],Ce=U[te+1],Ae=U[te+2],L=U[te+3];if(he>b||he===b&&Ae>=g){if(he<j||he===j&&Ce<=ie)continue;ke!==se&&(ke=se,xe=0,Y=he)}ke[xe++]=he-Y,ke[xe++]=Ce,ke[xe++]=Ae,ke[xe++]=L}return[new C(new Uint32Array(B)),new C(new Uint32Array(se)),Y]}acceptDeleteRange(b,g,j,ie,U){let q=this._tokens,B=this._tokenCount,se=ie-g,ke=0,xe=!1;for(let Y=0;Y<B;Y++){let Z=4*Y,te=q[Z],he=q[Z+1],Ce=q[Z+2],Ae=q[Z+3];if(te<g||te===g&&Ce<=j){ke++;continue}if(te===g&&he<j)te===ie&&Ce>U?Ce-=U-j:Ce=j;else if(te===g&&he===j){if(!(te===ie&&Ce>U)){xe=!0;continue}Ce-=U-j}else if(te<ie||te===ie&&he<U){if(!(te===ie&&Ce>U)){xe=!0;continue}te===g?(he=j,Ce=he+(Ce-U)):(he=0,Ce=he+(Ce-U))}else if(te>ie){if(se===0&&!xe){ke=B;break}te-=se}else{if(!(te===ie&&he>=U))throw new Error("Not possible!");b&&te===0&&(he+=b,Ce+=b),te-=se,he-=U-j,Ce-=U-j}let L=4*ke;q[L]=te,q[L+1]=he,q[L+2]=Ce,q[L+3]=Ae,ke++}this._tokenCount=ke}acceptInsertText(b,g,j,ie,U,q){let B=j===0&&ie===1&&(q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122),se=this._tokens,ke=this._tokenCount;for(let xe=0;xe<ke;xe++){let Y=4*xe,Z=se[Y],te=se[Y+1],he=se[Y+2];if(!(Z<b||Z===b&&he<g)){if(Z===b&&he===g){if(!B)continue;he+=1}else if(Z===b&&te<g&&g<he)j===0?he+=ie:he=g;else{if(Z===b&&te===g&&B)continue;if(Z===b)if(Z+=j,j===0)te+=ie,he+=ie;else{let Ce=he-te;te=U+(te-g),he=te+Ce}else Z+=j}se[Y]=Z,se[Y+1]=te,se[Y+2]=he}}}}class S{constructor(b){this._tokens=b}getCount(){return this._tokens.length/4}getStartCharacter(b){return this._tokens[4*b+1]}getEndCharacter(b){return this._tokens[4*b+2]}getMetadata(b){return this._tokens[4*b+3]}}class P{constructor(b,g){this.startLineNumber=b,this.tokens=g,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(b){return this.startLineNumber<=b&&b<=this.endLineNumber?this.tokens.getLineTokens(b-this.startLineNumber):null}getRange(){let b=this.tokens.getRange();return b&&new H.a(this.startLineNumber+b.startLineNumber,b.startColumn,this.startLineNumber+b.endLineNumber,b.endColumn)}removeTokens(b){let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(g,b.startColumn-1,j,b.endColumn-1),this._updateEndLineNumber()}split(b){let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber,[ie,U,q]=this.tokens.split(g,b.startColumn-1,j,b.endColumn-1);return[new P(this.startLineNumber,ie),new P(this.startLineNumber+q,U)]}applyEdit(b,g){let[j,ie,U]=ge(g);this.acceptEdit(b,j,ie,U,g.length>0?g.charCodeAt(0):0)}acceptEdit(b,g,j,ie,U){this._acceptDeleteRange(b),this._acceptInsertText(new D.a(b.startLineNumber,b.startColumn),g,j,ie,U),this._updateEndLineNumber()}_acceptDeleteRange(b){if(b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn)return;let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber;if(j<0){let U=j-g;return void(this.startLineNumber-=U)}let ie=this.tokens.getMaxDeltaLine();if(!(g>=ie+1)){if(g<0&&j>=ie+1)return this.startLineNumber=0,void this.tokens.clear();if(g<0){let U=-g;this.startLineNumber-=U,this.tokens.acceptDeleteRange(b.startColumn-1,0,0,j,b.endColumn-1)}else this.tokens.acceptDeleteRange(0,g,b.startColumn-1,j,b.endColumn-1)}}_acceptInsertText(b,g,j,ie,U){if(g===0&&j===0)return;let q=b.lineNumber-this.startLineNumber;if(q<0)return void(this.startLineNumber+=g);q>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(q,b.column-1,g,j,ie,U)}}class V{constructor(b,g){this.startLineNumber=b,this.tokens=g}}function k(N){return N instanceof Uint32Array?N:new Uint32Array(N)}class l{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}set(b,g){this._pieces=b||[],this._isComplete=g}setPartial(b,g){let j=b;if(g.length>0){let U=g[0].getRange(),q=g[g.length-1].getRange();if(!U||!q)return b;j=b.plusRange(U).plusRange(q)}let ie=null;for(let U=0,q=this._pieces.length;U<q;U++){let B=this._pieces[U];if(B.endLineNumber<j.startLineNumber)continue;if(B.startLineNumber>j.endLineNumber){ie=ie||{index:U};break}if(B.removeTokens(j),B.isEmpty()){this._pieces.splice(U,1),U--,q--;continue}if(B.endLineNumber<j.startLineNumber)continue;if(B.startLineNumber>j.endLineNumber){ie=ie||{index:U};continue}let[se,ke]=B.split(j);se.isEmpty()?ie=ie||{index:U}:ke.isEmpty()||(this._pieces.splice(U,1,se,ke),U++,q++,ie=ie||{index:U})}return ie=ie||{index:this._pieces.length},g.length>0&&(this._pieces=h.a(this._pieces,ie.index,g)),j}isComplete(){return this._isComplete}addSemanticTokens(b,g){let j=this._pieces;if(j.length===0)return g;let ie=j[l._findFirstPieceWithLine(j,b)].getLineTokens(b);if(!ie)return g;let U=g.getCount(),q=ie.getCount(),B=0,se=[],ke=0,xe=0,Y=(Z,te)=>{Z!==xe&&(xe=Z,se[ke++]=Z,se[ke++]=te)};for(let Z=0;Z<q;Z++){let te=ie.getStartCharacter(Z),he=ie.getEndCharacter(Z),Ce=ie.getMetadata(Z),Ae=((1&Ce?2048:0)|(2&Ce?4096:0)|(4&Ce?8192:0)|(8&Ce?8372224:0)|(16&Ce?4286578688:0))>>>0,L=~Ae>>>0;for(;B<U&&g.getEndOffset(B)<=te;)Y(g.getEndOffset(B),g.getMetadata(B)),B++;for(B<U&&g.getStartOffset(B)<te&&Y(te,g.getMetadata(B));B<U&&g.getEndOffset(B)<he;)Y(g.getEndOffset(B),g.getMetadata(B)&L|Ce&Ae),B++;if(B<U)Y(he,g.getMetadata(B)&L|Ce&Ae),g.getEndOffset(B)===he&&B++;else{let nt=Math.min(Math.max(0,B-1),U-1);Y(he,g.getMetadata(nt)&L|Ce&Ae)}}for(;B<U;)Y(g.getEndOffset(B),g.getMetadata(B)),B++;return new f.a(new Uint32Array(se),g.getLineContent())}static _findFirstPieceWithLine(b,g){let j=0,ie=b.length-1;for(;j<ie;){let U=j+Math.floor((ie-j)/2);if(b[U].endLineNumber<g)j=U+1;else{if(!(b[U].startLineNumber>g)){for(;U>j&&b[U-1].startLineNumber<=g&&g<=b[U-1].endLineNumber;)U--;return U}ie=U-1}}return j}acceptEdit(b,g,j,ie,U){for(let q of this._pieces)q.acceptEdit(b,g,j,ie,U)}}class T{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(b,g,j){let ie=null;if(g<this._len&&(ie=this._lineTokens[g]),ie!==null&&ie!==Q)return new f.a(k(ie),j);let U=new Uint32Array(2);return U[0]=j.length,U[1]=W(b),new f.a(U,j)}static _massageTokens(b,g,j){let ie=j?k(j):null;if(g===0){let U=!1;if(ie&&ie.length>1&&(U=E.B.getLanguageId(ie[1])!==b),!U)return Q}if(!ie||ie.length===0){let U=new Uint32Array(2);return U[0]=g,U[1]=W(b),U.buffer}return ie[ie.length-2]=g,ie.byteOffset===0&&ie.byteLength===ie.buffer.byteLength?ie.buffer:ie}_ensureLine(b){for(;b>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(b,g){g!==0&&(b+g>this._len&&(g=this._len-b),this._lineTokens.splice(b,g),this._len-=g)}_insertLines(b,g){if(g===0)return;let j=[];for(let ie=0;ie<g;ie++)j[ie]=null;this._lineTokens=h.a(this._lineTokens,b,j),this._len+=g}setTokens(b,g,j,ie,U){let q=T._massageTokens(b,j,ie);this._ensureLine(g);let B=this._lineTokens[g];return this._lineTokens[g]=q,!!U&&!T._equals(B,q)}static _equals(b,g){if(!b||!g)return!b&&!g;let j=k(b),ie=k(g);if(j.length!==ie.length)return!1;for(let U=0,q=j.length;U<q;U++)if(j[U]!==ie[U])return!1;return!0}acceptEdit(b,g,j){this._acceptDeleteRange(b),this._acceptInsertText(new D.a(b.startLineNumber,b.startColumn),g,j)}_acceptDeleteRange(b){let g=b.startLineNumber-1;if(g>=this._len)return;if(b.startLineNumber===b.endLineNumber)return b.startColumn===b.endColumn?void 0:void(this._lineTokens[g]=T._delete(this._lineTokens[g],b.startColumn-1,b.endColumn-1));this._lineTokens[g]=T._deleteEnding(this._lineTokens[g],b.startColumn-1);let j=b.endLineNumber-1,ie=null;j<this._len&&(ie=T._deleteBeginning(this._lineTokens[j],b.endColumn-1)),this._lineTokens[g]=T._append(this._lineTokens[g],ie),this._deleteLines(b.startLineNumber,b.endLineNumber-b.startLineNumber)}_acceptInsertText(b,g,j){if(g===0&&j===0)return;let ie=b.lineNumber-1;ie>=this._len||(g!==0?(this._lineTokens[ie]=T._deleteEnding(this._lineTokens[ie],b.column-1),this._lineTokens[ie]=T._insert(this._lineTokens[ie],b.column-1,j),this._insertLines(b.lineNumber,g)):this._lineTokens[ie]=T._insert(this._lineTokens[ie],b.column-1,j))}static _deleteBeginning(b,g){return b===null||b===Q?b:T._delete(b,0,g)}static _deleteEnding(b,g){if(b===null||b===Q)return b;let j=k(b),ie=j[j.length-2];return T._delete(b,g,ie)}static _delete(b,g,j){if(b===null||b===Q||g===j)return b;let ie=k(b),U=ie.length>>>1;if(g===0&&ie[ie.length-2]===j)return Q;let q=f.a.findIndexInTokensArray(ie,g),B=q>0?ie[q-1<<1]:0;if(j<ie[q<<1]){let Z=j-g;for(let te=q;te<U;te++)ie[te<<1]-=Z;return b}let se,ke;B!==g?(ie[q<<1]=g,se=q+1<<1,ke=g):(se=q<<1,ke=B);let xe=j-g;for(let Z=q+1;Z<U;Z++){let te=ie[Z<<1]-xe;te>ke&&(ie[se++]=te,ie[se++]=ie[1+(Z<<1)],ke=te)}if(se===ie.length)return b;let Y=new Uint32Array(se);return Y.set(ie.subarray(0,se),0),Y.buffer}static _append(b,g){if(g===Q)return b;if(b===Q)return g;if(b===null)return b;if(g===null)return null;let j=k(b),ie=k(g),U=ie.length>>>1,q=new Uint32Array(j.length+ie.length);q.set(j,0);let B=j.length,se=j[j.length-2];for(let ke=0;ke<U;ke++)q[B++]=ie[ke<<1]+se,q[B++]=ie[1+(ke<<1)];return q.buffer}static _insert(b,g,j){if(b===null||b===Q)return b;let ie=k(b),U=ie.length>>>1,q=f.a.findIndexInTokensArray(ie,g);q>0&&ie[q-1<<1]===g&&q--;for(let B=q;B<U;B++)ie[B<<1]+=j;return b}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"b",function(){return f}),o.d(w,"c",function(){return D});let h={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"};class f{constructor(E){this.data=E}update(){}getData(){return this.data}}let D={CurrentDragAndDropData:void 0}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return P}),o.d(w,"b",function(){return V});var h=o(13),f=o(8),D=o(62),H=o(130),E=o(3),ge=o(21);class W{constructor(l,T,N){this._range=l,this._charBeforeSelection=T,this._charAfterSelection=N}getEditOperations(l,T){T.addTrackedEditOperation(new E.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),T.addTrackedEditOperation(new E.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(l,T){let N=T.getInverseEditOperations(),b=N[0].range,g=N[1].range;return new ge.a(b.endLineNumber,b.endColumn,g.endLineNumber,g.endColumn-this._charAfterSelection.length)}}var Q=o(22),y=o(117),C=o(75),S=o(39);class P{static indent(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=new H.a(N[g],{isUnshift:!1,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent});return b}static outdent(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=new H.a(N[g],{isUnshift:!0,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent});return b}static shiftIndent(l,T,N){return N=N||1,H.a.shiftIndent(T,T.length+N,l.tabSize,l.indentSize,l.insertSpaces)}static unshiftIndent(l,T,N){return N=N||1,H.a.unshiftIndent(T,T.length+N,l.tabSize,l.indentSize,l.insertSpaces)}static _distributedPaste(l,T,N,b){let g=[];for(let j=0,ie=N.length;j<ie;j++)g[j]=new D.a(N[j],b[j]);return new Q.e(0,g,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(l,T,N,b,g){let j=[];for(let ie=0,U=N.length;ie<U;ie++){let q=N[ie],B=q.getPosition();if(g&&!q.isEmpty()&&(g=!1),g&&b.indexOf(` -`)!==b.length-1&&(g=!1),g){let se=new E.a(B.lineNumber,1,B.lineNumber,1);j[ie]=new D.b(se,b,q,!0)}else j[ie]=new D.a(q,b)}return new Q.e(0,j,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(l,T,N,b,g){if(b||T.length===1)return null;if(g&&g.length===T.length)return g;if(l.multiCursorPaste==="spread"){N.charCodeAt(N.length-1)===10&&(N=N.substr(0,N.length-1)),N.charCodeAt(N.length-1)===13&&(N=N.substr(0,N.length-1));let j=N.split(/\r\n|\r|\n/);if(j.length===T.length)return j}return null}static paste(l,T,N,b,g,j){let ie=this._distributePasteToCursors(l,N,b,g,j);return ie?(N=N.sort(E.a.compareRangesUsingStarts),this._distributedPaste(l,T,N,ie)):this._simplePaste(l,T,N,b,g)}static _goodIndentForLine(l,T,N){let b=null,g="",j=S.a.getInheritIndentForLine(l.autoIndent,T,N,!1);if(j)b=j.action,g=j.indentation;else if(N>1){let ie;for(ie=N-1;ie>=1;ie--){let B=T.getLineContent(ie);if(f.J(B)>=0)break}if(ie<1)return null;let U=T.getLineMaxColumn(ie),q=S.a.getEnterAction(l.autoIndent,T,new E.a(ie,U,ie,U));q&&(g=q.indentation+q.appendText)}return b&&(b===C.a.Indent&&(g=P.shiftIndent(l,g)),b===C.a.Outdent&&(g=P.unshiftIndent(l,g)),g=l.normalizeIndentation(g)),g||null}static _replaceJumpToNextIndent(l,T,N,b){let g="",j=N.getStartPosition();if(l.insertSpaces){let ie=Q.a.visibleColumnFromColumn2(l,T,j),U=l.indentSize,q=U-ie%U;for(let B=0;B<q;B++)g+=" "}else g=" ";return new D.a(N,g,b)}static tab(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g];if(ie.isEmpty()){let U=T.getLineContent(ie.startLineNumber);if(/^\s*$/.test(U)&&T.isCheapToTokenize(ie.startLineNumber)){let q=this._goodIndentForLine(l,T,ie.startLineNumber);q=q||" ";let B=l.normalizeIndentation(q);if(!f.S(U,B)){b[g]=new D.a(new E.a(ie.startLineNumber,1,ie.startLineNumber,U.length+1),B,!0);continue}}b[g]=this._replaceJumpToNextIndent(l,T,ie,!0)}else{if(ie.startLineNumber===ie.endLineNumber){let U=T.getLineMaxColumn(ie.startLineNumber);if(ie.startColumn!==1||ie.endColumn!==U){b[g]=this._replaceJumpToNextIndent(l,T,ie,!1);continue}}b[g]=new H.a(ie,{isUnshift:!1,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent})}}return b}static replacePreviousChar(l,T,N,b,g,j){let ie=[];for(let U=0,q=b.length;U<q;U++){let B=b[U];if(!B.isEmpty()){ie[U]=null;continue}let se=B.getPosition(),ke=Math.max(1,se.column-j),xe=new E.a(se.lineNumber,ke,se.lineNumber,se.column);N.getValueInRange(xe)!==g?ie[U]=new D.a(xe,g):ie[U]=null}return new Q.e(1,ie,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static _typeCommand(l,T,N){return N?new D.e(l,T,!0):new D.a(l,T,!0)}static _enter(l,T,N,b){if(l.autoIndent===0)return P._typeCommand(b,` + `),A.listFilterWidgetBackground&&de.push(`.monaco-list-type-filter { background-color: ${A.listFilterWidgetBackground} }`),A.listFilterWidgetOutline&&de.push(`.monaco-list-type-filter { border: 1px solid ${A.listFilterWidgetOutline}; }`),A.listFilterWidgetNoMatchesOutline&&de.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${A.listFilterWidgetNoMatchesOutline}; }`),A.listMatchesShadow&&de.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${A.listMatchesShadow}; }`);let De=de.join(` +`);De!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=De)}}let ct={listFocusBackground:V.a.fromHex("#7FB0D0"),listActiveSelectionBackground:V.a.fromHex("#0E639C"),listActiveSelectionForeground:V.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:V.a.fromHex("#094771"),listFocusAndSelectionForeground:V.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:V.a.fromHex("#3F3F46"),listHoverBackground:V.a.fromHex("#2A2D2E"),listDropBackground:V.a.fromHex("#383B3D"),treeIndentGuidesStroke:V.a.fromHex("#a9a9a9")},Ye={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}}};function ht(Se,A){let ee=[],de=0,De=0;for(;de<Se.length||De<A.length;)if(de>=Se.length)ee.push(A[De++]);else if(De>=A.length)ee.push(Se[de++]);else{if(Se[de]===A[De]){ee.push(Se[de]),de++,De++;continue}Se[de]<A[De]?ee.push(Se[de++]):ee.push(A[De++])}return ee}let fe=(Se,A)=>Se-A;class ${constructor(A,ee){this._templateId=A,this.renderers=ee}get templateId(){return this._templateId}renderTemplate(A){return this.renderers.map(ee=>ee.renderTemplate(A))}renderElement(A,ee,de,De){let $e=0;for(let pt of this.renderers)pt.renderElement(A,ee,de[$e++],De)}disposeElement(A,ee,de,De){let $e=0;for(let pt of this.renderers)pt.disposeElement&&pt.disposeElement(A,ee,de[$e],De),$e+=1}disposeTemplate(A){let ee=0;for(let de of this.renderers)de.disposeTemplate(A[ee++])}}class G{constructor(A){this.accessibilityProvider=A,this.templateId="a18n"}renderTemplate(A){return A}renderElement(A,ee,de){let De=this.accessibilityProvider.getAriaLabel(A);De?de.setAttribute("aria-label",De):de.removeAttribute("aria-label");let $e=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(A);typeof $e=="number"?de.setAttribute("aria-level",""+$e):de.removeAttribute("aria-level")}disposeTemplate(A){}}class z{constructor(A,ee){this.list=A,this.dnd=ee}getDragElements(A){let ee=this.list.getSelectedElements();return ee.indexOf(A)>-1?ee:[A]}getDragURI(A){return this.dnd.getDragURI(A)}getDragLabel(A,ee){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(A,ee)}onDragStart(A,ee){this.dnd.onDragStart&&this.dnd.onDragStart(A,ee)}onDragOver(A,ee,de,De){return this.dnd.onDragOver(A,ee,de,De)}onDragEnd(A){this.dnd.onDragEnd&&this.dnd.onDragEnd(A)}drop(A,ee,de,De){this.dnd.drop(A,ee,de,De)}}class J{constructor(A,ee,de,De,$e=Ye){var pt;this.user=A,this._options=$e,this.eventBufferer=new y.c,this._ariaLabel="",this.disposables=new h.b,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event;let it=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(pt=this._options.accessibilityProvider)===null||pt===void 0?void 0:pt.getWidgetRole():"list";this.selection=new q(it!=="listbox"),this.focus=new U("focused"),Object(k.g)($e,ct,!1);let At=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=$e.accessibilityProvider,this.accessibilityProvider&&(At.push(new G(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),De=De.map(_i=>new $(_i.templateId,[...At,_i]));let Nt=Object.assign(Object.assign({},$e),{dnd:$e.dnd&&new z(this,$e.dnd)});if(this.view=new P.b(ee,de,De,Nt),this.view.domNode.setAttribute("role",it),$e.styleController)this.styleController=$e.styleController(this.view.domId);else{let _i=E.v(this.view.domNode);this.styleController=new nt(_i,this.view.domId)}if(this.spliceable=new l([new B(this.focus,this.view,$e.identityProvider),new B(this.selection,this.view,$e.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=y.b.map(Object(C.a)(this.view.domNode,"focus",!0),()=>null),this.onDidBlur=y.b.map(Object(C.a)(this.view.domNode,"blur",!0),()=>null),this.disposables.add(new te(this,this.view)),typeof $e.keyboardSupport!="boolean"||$e.keyboardSupport){let _i=new xe(this,this.view,$e);this.disposables.add(_i)}if($e.keyboardNavigationLabelProvider){let _i=$e.keyboardNavigationDelegate||Y;this.typeLabelController=new Z(this,this.view,$e.keyboardNavigationLabelProvider,_i),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController($e),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),$e.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),A=>this.toListEvent(A))}get onDidChangeSelection(){return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),A=>this.toListEvent(A))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let A=y.b.chain(Object(C.a)(this.view.domNode,"keydown")).map(De=>new Q.a(De)).filter(De=>this.didJustPressContextMenuKey=De.keyCode===58||De.shiftKey&&De.keyCode===68).filter(De=>(De.preventDefault(),De.stopPropagation(),!1)).event,ee=y.b.chain(Object(C.a)(this.view.domNode,"keyup")).filter(()=>{let De=this.didJustPressContextMenuKey;return this.didJustPressContextMenuKey=!1,De}).filter(()=>this.getFocus().length>0&&!!this.view.domElement(this.getFocus()[0])).map(De=>{let $e=this.getFocus()[0];return{index:$e,element:this.view.element($e),anchor:this.view.domElement($e),browserEvent:De}}).event,de=y.b.chain(this.view.onContextMenu).filter(()=>!this.didJustPressContextMenuKey).map(({element:De,index:$e,browserEvent:pt})=>({element:De,index:$e,anchor:{x:pt.clientX+1,y:pt.clientY},browserEvent:pt})).event;return y.b.any(A,ee,de)}get onKeyDown(){return Object(C.a)(this.view.domNode,"keydown")}createMouseController(A){return new L(this)}updateOptions(A={}){this._options=Object.assign(Object.assign({},this._options),A),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this.view.updateOptions(A)}get options(){return this._options}splice(A,ee,de=[]){if(A<0||A>this.view.length)throw new S(this.user,"Invalid start index: "+A);if(ee<0)throw new S(this.user,"Invalid delete count: "+ee);ee===0&&de.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(A,ee,de))}rerender(){this.view.rerender()}element(A){return this.view.element(A)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(A){this.view.setScrollTop(A)}get ariaLabel(){return this._ariaLabel}set ariaLabel(A){this._ariaLabel=A,this.view.domNode.setAttribute("aria-label",A)}domFocus(){this.view.domNode.focus()}layout(A,ee){this.view.layout(A,ee)}setSelection(A,ee){for(let de of A)if(de<0||de>=this.length)throw new S(this.user,"Invalid index "+de);this.selection.set(A,ee)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(A=>this.view.element(A))}setFocus(A,ee){for(let de of A)if(de<0||de>=this.length)throw new S(this.user,"Invalid index "+de);this.focus.set(A,ee)}focusNext(A=1,ee=!1,de,De){if(this.length===0)return;let $e=this.focus.get(),pt=this.findNextIndex($e.length>0?$e[0]+A:0,ee,De);pt>-1&&this.setFocus([pt],de)}focusPrevious(A=1,ee=!1,de,De){if(this.length===0)return;let $e=this.focus.get(),pt=this.findPreviousIndex($e.length>0?$e[0]-A:0,ee,De);pt>-1&&this.setFocus([pt],de)}focusNextPage(A,ee){let de=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);de=de===0?0:de-1;let De=this.view.element(de),$e=this.getFocusedElements()[0];if($e!==De){let pt=this.findPreviousIndex(de,!1,ee);pt>-1&&$e!==this.view.element(pt)?this.setFocus([pt],A):this.setFocus([de],A)}else{let pt=this.view.getScrollTop();this.view.setScrollTop(pt+this.view.renderHeight-this.view.elementHeight(de)),this.view.getScrollTop()!==pt&&setTimeout(()=>this.focusNextPage(A,ee),0)}}focusPreviousPage(A,ee){let de,De=this.view.getScrollTop();de=De===0?this.view.indexAt(De):this.view.indexAfter(De-1);let $e=this.view.element(de),pt=this.getFocusedElements()[0];if(pt!==$e){let it=this.findNextIndex(de,!1,ee);it>-1&&pt!==this.view.element(it)?this.setFocus([it],A):this.setFocus([de],A)}else{let it=De;this.view.setScrollTop(De-this.view.renderHeight),this.view.getScrollTop()!==it&&setTimeout(()=>this.focusPreviousPage(A,ee),0)}}focusLast(A,ee){if(this.length===0)return;let de=this.findPreviousIndex(this.length-1,!1,ee);de>-1&&this.setFocus([de],A)}focusFirst(A,ee){this.focusNth(0,A,ee)}focusNth(A,ee,de){if(this.length===0)return;let De=this.findNextIndex(A,!1,de);De>-1&&this.setFocus([De],ee)}findNextIndex(A,ee=!1,de){for(let De=0;De<this.length;De++){if(A>=this.length&&!ee)return-1;if(A%=this.length,!de||de(this.element(A)))return A;A++}return-1}findPreviousIndex(A,ee=!1,de){for(let De=0;De<this.length;De++){if(A<0&&!ee)return-1;if(A=(this.length+A%this.length)%this.length,!de||de(this.element(A)))return A;A--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(A=>this.view.element(A))}reveal(A,ee){if(A<0||A>=this.length)throw new S(this.user,"Invalid index "+A);let de=this.view.getScrollTop(),De=this.view.elementTop(A),$e=this.view.elementHeight(A);if(Object(f.h)(ee)){let pt=$e-this.view.renderHeight;this.view.setScrollTop(pt*Object(N.b)(ee,0,1)+De)}else{let pt=De+$e,it=de+this.view.renderHeight;De<de&&pt>=it||(De<de?this.view.setScrollTop(De):pt>=it&&this.view.setScrollTop(pt-this.view.renderHeight))}}getRelativeTop(A){if(A<0||A>=this.length)throw new S(this.user,"Invalid index "+A);let ee=this.view.getScrollTop(),de=this.view.elementTop(A),De=this.view.elementHeight(A);if(de<ee||de+De>ee+this.view.renderHeight)return null;let $e=De-this.view.renderHeight;return Math.abs((ee-de)/$e)}getHTMLElement(){return this.view.domNode}style(A){this.styleController.style(A)}toListEvent({indexes:A,browserEvent:ee}){return{indexes:A,elements:A.map(de=>this.view.element(de)),browserEvent:ee}}_onFocusChange(){let A=this.focus.get();E.ab(this.view.domNode,"element-focused",A.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var A;let ee=this.focus.get();if(ee.length>0){let de;((A=this.accessibilityProvider)===null||A===void 0?void 0:A.getActiveDescendantId)&&(de=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",de||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){let A=this.selection.get();E.ab(this.view.domNode,"selection-none",A.length===0),E.ab(this.view.domNode,"selection-single",A.length===1),E.ab(this.view.domNode,"selection-multiple",A.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}j([H.a],J.prototype,"onDidChangeFocus",null),j([H.a],J.prototype,"onDidChangeSelection",null),j([H.a],J.prototype,"onContextMenu",null)},function(Ie,w,r){"use strict";function h(H,E){let ge=H.getCount(),W=H.findTokenIndexAtOffset(E),Q=H.getLanguageId(W),y=W;for(;y+1<ge&&H.getLanguageId(y+1)===Q;)y++;let C=W;for(;C>0&&H.getLanguageId(C-1)===Q;)C--;return new f(H,Q,C,y+1,H.getStartOffset(C),H.getEndOffset(y))}r.d(w,"a",function(){return h}),r.d(w,"b",function(){return O});class f{constructor(E,ge,W,Q,y,C){this._actual=E,this.languageId=ge,this._firstTokenIndex=W,this._lastTokenIndex=Q,this.firstCharOffset=y,this._lastCharOffset=C}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(E){return this._actual.getLineContent().substring(0,this.firstCharOffset+E)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(E){return this._actual.findTokenIndexAtOffset(E+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(E){return this._actual.getStandardTokenType(E+this._firstTokenIndex)}}function O(H){return(7&H)!=0}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return O}),r.d(w,"a",function(){return H});var h=r(163);let f=[];function O(E,ge,W){f.push([E,new h.a(ge,[],W)])}function H(){return f}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Q}),r(196);var h=r(2),f=r(60),O=r(1),H=r(14),E=r(67),ge=r(6),W=r(123);class Q extends h.a{constructor(C,S={}){var P,V,k;let l,T;switch(super(),this._onDidBlur=this._register(new ge.a),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new ge.a),this.onDidCancel=this._onDidCancel.event,this._onDidRun=this._register(new ge.a),this.onDidRun=this._onDidRun.event,this._onDidBeforeRun=this._register(new ge.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this.options=S,this._context=(P=S.context)!==null&&P!==void 0?P:null,this._orientation=(V=this.options.orientation)!==null&&V!==void 0?V:0,this._triggerKeys=(k=this.options.triggerKeys)!==null&&k!==void 0?k:{keys:[3,10],keyDown:!1},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new f.b,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(N=>this._onDidRun.fire(N))),this._register(this._actionRunner.onDidBeforeRun(N=>this._onDidBeforeRun.fire(N))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",S.animated!==!1&&O.e(this.domNode,"animated"),this._orientation){case 0:l=15,T=17;break;case 1:l=17,T=15,this.domNode.className+=" reverse";break;case 2:l=16,T=18,this.domNode.className+=" vertical";break;case 3:l=18,T=16,this.domNode.className+=" vertical reverse"}this._register(O.i(this.domNode,O.c.KEY_DOWN,N=>{let b=new E.a(N),g=!0;b.equals(l)?g=this.focusPrevious():b.equals(T)?g=this.focusNext():b.equals(9)?this._onDidCancel.fire():this.isTriggerKeyEvent(b)?this._triggerKeys.keyDown&&this.doTrigger(b):g=!1,g&&(b.preventDefault(),b.stopPropagation())})),this._register(O.i(this.domNode,O.c.KEY_UP,N=>{let b=new E.a(N);this.isTriggerKeyEvent(b)?(this._triggerKeys.keyDown||this.doTrigger(b),b.preventDefault(),b.stopPropagation()):(b.equals(2)||b.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(O.bb(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{O.x()!==this.domNode&&O.L(O.x(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),C.appendChild(this.domNode)}isTriggerKeyEvent(C){let S=!1;return this._triggerKeys.keys.forEach(P=>{S=S||C.equals(P)}),S}updateFocusedItem(){for(let C=0;C<this.actionsList.children.length;C++){let S=this.actionsList.children[C];if(O.L(O.x(),S)){this.focusedItem=C;break}}}get context(){return this._context}set context(C){this._context=C,this.viewItems.forEach(S=>S.setActionContext(C))}get actionRunner(){return this._actionRunner}set actionRunner(C){C&&(this._actionRunner=C,this.viewItems.forEach(S=>S.actionRunner=C))}getContainer(){return this.domNode}push(C,S={}){let P=Array.isArray(C)?C:[C],V=H.h(S.index)?S.index:null;P.forEach(k=>{let l=document.createElement("li"),T;l.className="action-item",l.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(O.i(l,O.c.CONTEXT_MENU,N=>{O.b.stop(N,!0)})),this.options.actionViewItemProvider&&(T=this.options.actionViewItemProvider(k)),T||(T=new W.a(this.context,k,S)),T.actionRunner=this._actionRunner,T.setActionContext(this.context),T.render(l),V===null||V<0||V>=this.actionsList.children.length?(this.actionsList.appendChild(l),this.viewItems.push(T)):(this.actionsList.insertBefore(l,this.actionsList.children[V]),this.viewItems.splice(V,0,T),V++)}),this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(h.f)(this.viewItems),this.viewItems=[],O.s(this.actionsList)}focus(C){let S=!1,P;C===void 0?S=!0:typeof C=="number"?P=C:typeof C=="boolean"&&(S=C),S&&this.focusedItem===void 0?(this.focusedItem=-1,this.focusNext()):(P!==void 0&&(this.focusedItem=P),this.updateFocus())}focusNext(){this.focusedItem===void 0&&(this.focusedItem=this.viewItems.length-1);let C=this.focusedItem,S;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=C,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,S=this.viewItems[this.focusedItem]}while(this.focusedItem!==C&&!S.isEnabled());return this.focusedItem!==C||S.isEnabled()||(this.focusedItem=void 0),this.updateFocus(),!0}focusPrevious(){this.focusedItem===void 0&&(this.focusedItem=0);let C=this.focusedItem,S;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=C,!1;this.focusedItem=this.viewItems.length-1}S=this.viewItems[this.focusedItem]}while(this.focusedItem!==C&&!S.isEnabled());return this.focusedItem!==C||S.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0),!0}updateFocus(C,S){this.focusedItem===void 0&&this.actionsList.focus({preventScroll:S});for(let P=0;P<this.viewItems.length;P++){let V=this.viewItems[P];P===this.focusedItem?H.g(V.isEnabled)&&(V.isEnabled()&&H.g(V.focus)?V.focus(C):this.actionsList.focus({preventScroll:S})):H.g(V.blur)&&V.blur()}}doTrigger(C){if(this.focusedItem===void 0)return;let S=this.viewItems[this.focusedItem];if(S instanceof W.b){let P=S._context===null||S._context===void 0?C:S._context;this.run(S._action,P)}}run(C,S){return this._actionRunner.run(C,S)}dispose(){Object(h.f)(this.viewItems),this.viewItems=[],O.S(this.getContainer()),super.dispose()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(76);class f extends h.a{constructor(E){super(0);for(let ge=0,W=E.length;ge<W;ge++)this.set(E.charCodeAt(ge),2);this.set(32,1),this.set(9,1)}}let O=function(H){let E={};return ge=>(E.hasOwnProperty(ge)||(E[ge]=H(ge)),E[ge])}(H=>new f(H))},function(Ie,w,r){"use strict";function h(O,H,E){return Math.min(Math.max(O,H),E)}r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f});class f{constructor(){this._n=1,this._val=0}update(H){return this._val=this._val+(H-this._val)/this._n,this._n+=1,this}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return E}),r.d(w,"a",function(){return P});var h=r(8),f=r(132),O=r(3);class H{constructor(k,l,T,N,b,g){this.languageIdentifier=k,this.index=l,this.open=T,this.close=N,this.forwardRegex=b,this.reversedRegex=g,this._openSet=H._toSet(this.open),this._closeSet=H._toSet(this.close)}isOpen(k){return this._openSet.has(k)}isClose(k){return this._closeSet.has(k)}static _toSet(k){let l=new Set;for(let T of k)l.add(T);return l}}class E{constructor(k,l){let T=function(N){let b=N.length;N=N.map(q=>[q[0].toLowerCase(),q[1].toLowerCase()]);let g=[];for(let q=0;q<b;q++)g[q]=q;let j=(q,B)=>{let[se,ke]=q,[xe,Y]=B;return se===xe||se===Y||ke===xe||ke===Y},ie=(q,B)=>{let se=Math.min(q,B),ke=Math.max(q,B);for(let xe=0;xe<b;xe++)g[xe]===ke&&(g[xe]=se)};for(let q=0;q<b;q++){let B=N[q];for(let se=q+1;se<b;se++)j(B,N[se])&&ie(g[q],g[se])}let U=[];for(let q=0;q<b;q++){let B=[],se=[];for(let ke=0;ke<b;ke++)if(g[ke]===q){let[xe,Y]=N[ke];B.push(xe),se.push(Y)}B.length>0&&U.push({open:B,close:se})}return U}(l);this.brackets=T.map((N,b)=>new H(k,b,N.open,N.close,function(g,j,ie,U){let q=[];q=q.concat(g),q=q.concat(j);for(let B=0,se=q.length;B<se;B++)ge(q[B],ie,U,q);return q=Q(q),q.sort(W),q.reverse(),C(q)}(N.open,N.close,T,b),function(g,j,ie,U){let q=[];q=q.concat(g),q=q.concat(j);for(let B=0,se=q.length;B<se;B++)ge(q[B],ie,U,q);return q=Q(q),q.sort(W),q.reverse(),C(q.map(S))}(N.open,N.close,T,b))),this.forwardRegex=function(N){let b=[];for(let g of N){for(let j of g.open)b.push(j);for(let j of g.close)b.push(j)}return b=Q(b),C(b)}(this.brackets),this.reversedRegex=function(N){let b=[];for(let g of N){for(let j of g.open)b.push(j);for(let j of g.close)b.push(j)}return b=Q(b),C(b.map(S))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(let N of this.brackets){for(let b of N.open)this.textIsBracket[b]=N,this.textIsOpenBracket[b]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,b.length);for(let b of N.close)this.textIsBracket[b]=N,this.textIsOpenBracket[b]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,b.length)}}}function ge(V,k,l,T){for(let N=0,b=k.length;N<b;N++){if(N===l)continue;let g=k[N];for(let j of g.open)j.indexOf(V)>=0&&T.push(j);for(let j of g.close)j.indexOf(V)>=0&&T.push(j)}}function W(V,k){return V.length-k.length}function Q(V){if(V.length<=1)return V;let k=[],l=new Set;for(let T of V)l.has(T)||(k.push(T),l.add(T));return k}function y(V){let k=/^[\w ]+$/.test(V);return V=h.v(V),k?`\\b${V}\\b`:V}function C(V){let k=`(${V.map(y).join(")|(")})`;return h.q(k,!0)}let S=function(){let V=null,k=null;return function(l){return V!==l&&(V=l,k=function(T){if(f.d){let N=new Uint16Array(T.length),b=0;for(let g=T.length-1;g>=0;g--)N[b++]=T.charCodeAt(g);return f.c().decode(N)}{let N=[],b=0;for(let g=T.length-1;g>=0;g--)N[b++]=T.charAt(g);return N.join("")}}(V)),k}}();class P{static _findPrevBracketInText(k,l,T,N){let b=T.match(k);if(!b)return null;let g=T.length-(b.index||0),j=b[0].length,ie=N+g;return new O.a(l,ie-j+1,l,ie+1)}static findPrevBracketInRange(k,l,T,N,b){let g=S(T).substring(T.length-b,T.length-N);return this._findPrevBracketInText(k,l,g,N)}static findNextBracketInText(k,l,T,N){let b=T.match(k);if(!b)return null;let g=b.index||0,j=b[0].length;if(j===0)return null;let ie=N+g;return new O.a(l,ie+1,l,ie+1+j)}static findNextBracketInRange(k,l,T,N,b){let g=T.substring(N,b);return this.findNextBracketInText(k,l,g,N)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("telemetryService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("clipboardService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("textModelService")},function(Ie,w,r){"use strict";r.d(w,"b",function(){return C}),r.d(w,"a",function(){return S}),r(196);var h=r(11),f=r(0),O=r(2),H=r(60),E=r(1),ge=r(14),W=r(61),Q=r(125),y=r(34);class C extends O.a{constructor(V,k,l={}){super(),this.options=l,this._context=V||this,this._action=k,k instanceof H.a&&this._register(k.onDidChange(T=>{this.element&&this.handleActionChangeEvent(T)}))}handleActionChangeEvent(V){V.enabled!==void 0&&this.updateEnabled(),V.checked!==void 0&&this.updateChecked(),V.class!==void 0&&this.updateClass(),V.label!==void 0&&(this.updateLabel(),this.updateTooltip()),V.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new H.b)),this._actionRunner}set actionRunner(V){this._actionRunner=V}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(V){this._context=V}render(V){let k=this.element=V;this._register(W.b.addTarget(V));let l=this.options&&this.options.draggable;l&&(V.draggable=!0,y.h&&this._register(E.i(V,E.c.DRAG_START,T=>{var N;return(N=T.dataTransfer)===null||N===void 0?void 0:N.setData(Q.a.TEXT,this._action.label)}))),this._register(E.i(k,W.a.Tap,T=>this.onClick(T))),this._register(E.i(k,E.c.MOUSE_DOWN,T=>{l||E.b.stop(T,!0),this._action.enabled&&T.button===0&&E.e(k,"active")})),h.f&&this._register(E.i(k,E.c.CONTEXT_MENU,T=>{T.button===0&&T.ctrlKey===!0&&this.onClick(T)})),this._register(E.i(k,E.c.CLICK,T=>{E.b.stop(T,!0),this.options&&this.options.isMenu||h.j(()=>this.onClick(T))})),this._register(E.i(k,E.c.DBLCLICK,T=>{E.b.stop(T,!0)})),[E.c.MOUSE_UP,E.c.MOUSE_OUT].forEach(T=>{this._register(E.i(k,T,N=>{E.b.stop(N),E.Q(k,"active")}))})}onClick(V){var k;E.b.stop(V,!0);let l=ge.l(this._context)?((k=this.options)===null||k===void 0?void 0:k.useEventAsContext)?V:void 0:this._context;this.actionRunner.run(this._action,l)}focus(){this.element&&(this.element.focus(),E.e(this.element,"focused"))}blur(){this.element&&(this.element.blur(),E.Q(this.element,"focused"))}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(E.S(this.element),this.element=void 0),super.dispose()}}class S extends C{constructor(V,k,l={}){super(V,k,l),this.options=l,this.options.icon=l.icon!==void 0&&l.icon,this.options.label=l.label===void 0||l.label,this.cssClass=""}render(V){super.render(V),this.element&&(this.label=E.p(this.element,E.a("a.action-label"))),this.label&&(this._action.id===H.c.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(E.p(this.element,E.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){super.focus(),this.label&&this.label.focus()}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let V=null;this.getAction().tooltip?V=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(V=this.getAction().label,this.options.keybinding&&(V=f.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",V,this.options.keybinding))),V&&this.label&&(this.label.title=V)}updateClass(){this.cssClass&&this.label&&E.R(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(E.e(this.label,"codicon"),this.cssClass&&E.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&E.Q(this.label,"codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),E.Q(this.label,"disabled"),this.label.tabIndex=0),this.element&&E.Q(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),E.e(this.label,"disabled"),E.T(this.label)),this.element&&E.e(this.element,"disabled"))}updateChecked(){this.label&&(this.getAction().checked?E.e(this.label,"checked"):E.Q(this.label,"checked"))}}},function(Ie,w,r){"use strict";r.d(w,"f",function(){return ge}),r.d(w,"b",function(){return y}),r.d(w,"c",function(){return C}),r.d(w,"a",function(){return P}),r.d(w,"e",function(){return l}),r.d(w,"d",function(){return T});var h=r(16),f=r(111),O=r(9),H=r(3),E=r(12);function ge(N){let b=0,g=0,j=0,ie=0;for(let U=0,q=N.length;U<q;U++){let B=N.charCodeAt(U);B===13?(b===0&&(g=U),b++,U+1<q&&N.charCodeAt(U+1)===10?(ie|=2,U++):ie|=3,j=U+1):B===10&&(ie|=1,b===0&&(g=U),b++,j=U+1)}return b===0&&(g=N.length),[b,g,N.length-j,ie]}function W(N){return(16384|N<<0|2<<23)>>>0}let Q=new Uint32Array(0).buffer;class y{constructor(){this.tokens=[]}add(b,g){if(this.tokens.length>0){let j=this.tokens[this.tokens.length-1];if(j.startLineNumber+j.tokens.length-1+1===b)return void j.tokens.push(g)}this.tokens.push(new V(b,[g]))}}class C{constructor(b){this._tokens=b,this._tokenCount=b.length/4}toString(b){let g=[];for(let j=0;j<this._tokenCount;j++)g.push(`(${this._getDeltaLine(j)+b},${this._getStartCharacter(j)}-${this._getEndCharacter(j)})`);return`[${g.join(",")}]`}getMaxDeltaLine(){let b=this._getTokenCount();return b===0?-1:this._getDeltaLine(b-1)}getRange(){let b=this._getTokenCount();if(b===0)return null;let g=this._getStartCharacter(0),j=this._getDeltaLine(b-1),ie=this._getEndCharacter(b-1);return new H.a(0,g+1,j,ie+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(b){return this._tokens[4*b]}_getStartCharacter(b){return this._tokens[4*b+1]}_getEndCharacter(b){return this._tokens[4*b+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(b){let g=0,j=this._getTokenCount()-1;for(;g<j;){let ie=g+Math.floor((j-g)/2),U=this._getDeltaLine(ie);if(U<b)g=ie+1;else{if(!(U>b)){let q=ie;for(;q>g&&this._getDeltaLine(q-1)===b;)q--;let B=ie;for(;B<j&&this._getDeltaLine(B+1)===b;)B++;return new S(this._tokens.subarray(4*q,4*B+4))}j=ie-1}}return this._getDeltaLine(g)===b?new S(this._tokens.subarray(4*g,4*g+4)):null}clear(){this._tokenCount=0}removeTokens(b,g,j,ie){let U=this._tokens,q=this._tokenCount,B=0,se=!1,ke=0;for(let xe=0;xe<q;xe++){let Y=4*xe,Z=U[Y],te=U[Y+1],he=U[Y+2],Ce=U[Y+3];if((Z>b||Z===b&&he>=g)&&(Z<j||Z===j&&te<=ie))se=!0;else{if(B===0&&(ke=Z),se){let Ae=4*B;U[Ae]=Z-ke,U[Ae+1]=te,U[Ae+2]=he,U[Ae+3]=Ce}B++}}return this._tokenCount=B,ke}split(b,g,j,ie){let U=this._tokens,q=this._tokenCount,B=[],se=[],ke=B,xe=0,Y=0;for(let Z=0;Z<q;Z++){let te=4*Z,he=U[te],Ce=U[te+1],Ae=U[te+2],L=U[te+3];if(he>b||he===b&&Ae>=g){if(he<j||he===j&&Ce<=ie)continue;ke!==se&&(ke=se,xe=0,Y=he)}ke[xe++]=he-Y,ke[xe++]=Ce,ke[xe++]=Ae,ke[xe++]=L}return[new C(new Uint32Array(B)),new C(new Uint32Array(se)),Y]}acceptDeleteRange(b,g,j,ie,U){let q=this._tokens,B=this._tokenCount,se=ie-g,ke=0,xe=!1;for(let Y=0;Y<B;Y++){let Z=4*Y,te=q[Z],he=q[Z+1],Ce=q[Z+2],Ae=q[Z+3];if(te<g||te===g&&Ce<=j){ke++;continue}if(te===g&&he<j)te===ie&&Ce>U?Ce-=U-j:Ce=j;else if(te===g&&he===j){if(!(te===ie&&Ce>U)){xe=!0;continue}Ce-=U-j}else if(te<ie||te===ie&&he<U){if(!(te===ie&&Ce>U)){xe=!0;continue}te===g?(he=j,Ce=he+(Ce-U)):(he=0,Ce=he+(Ce-U))}else if(te>ie){if(se===0&&!xe){ke=B;break}te-=se}else{if(!(te===ie&&he>=U))throw new Error("Not possible!");b&&te===0&&(he+=b,Ce+=b),te-=se,he-=U-j,Ce-=U-j}let L=4*ke;q[L]=te,q[L+1]=he,q[L+2]=Ce,q[L+3]=Ae,ke++}this._tokenCount=ke}acceptInsertText(b,g,j,ie,U,q){let B=j===0&&ie===1&&(q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122),se=this._tokens,ke=this._tokenCount;for(let xe=0;xe<ke;xe++){let Y=4*xe,Z=se[Y],te=se[Y+1],he=se[Y+2];if(!(Z<b||Z===b&&he<g)){if(Z===b&&he===g){if(!B)continue;he+=1}else if(Z===b&&te<g&&g<he)j===0?he+=ie:he=g;else{if(Z===b&&te===g&&B)continue;if(Z===b)if(Z+=j,j===0)te+=ie,he+=ie;else{let Ce=he-te;te=U+(te-g),he=te+Ce}else Z+=j}se[Y]=Z,se[Y+1]=te,se[Y+2]=he}}}}class S{constructor(b){this._tokens=b}getCount(){return this._tokens.length/4}getStartCharacter(b){return this._tokens[4*b+1]}getEndCharacter(b){return this._tokens[4*b+2]}getMetadata(b){return this._tokens[4*b+3]}}class P{constructor(b,g){this.startLineNumber=b,this.tokens=g,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(b){return this.startLineNumber<=b&&b<=this.endLineNumber?this.tokens.getLineTokens(b-this.startLineNumber):null}getRange(){let b=this.tokens.getRange();return b&&new H.a(this.startLineNumber+b.startLineNumber,b.startColumn,this.startLineNumber+b.endLineNumber,b.endColumn)}removeTokens(b){let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(g,b.startColumn-1,j,b.endColumn-1),this._updateEndLineNumber()}split(b){let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber,[ie,U,q]=this.tokens.split(g,b.startColumn-1,j,b.endColumn-1);return[new P(this.startLineNumber,ie),new P(this.startLineNumber+q,U)]}applyEdit(b,g){let[j,ie,U]=ge(g);this.acceptEdit(b,j,ie,U,g.length>0?g.charCodeAt(0):0)}acceptEdit(b,g,j,ie,U){this._acceptDeleteRange(b),this._acceptInsertText(new O.a(b.startLineNumber,b.startColumn),g,j,ie,U),this._updateEndLineNumber()}_acceptDeleteRange(b){if(b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn)return;let g=b.startLineNumber-this.startLineNumber,j=b.endLineNumber-this.startLineNumber;if(j<0){let U=j-g;return void(this.startLineNumber-=U)}let ie=this.tokens.getMaxDeltaLine();if(!(g>=ie+1)){if(g<0&&j>=ie+1)return this.startLineNumber=0,void this.tokens.clear();if(g<0){let U=-g;this.startLineNumber-=U,this.tokens.acceptDeleteRange(b.startColumn-1,0,0,j,b.endColumn-1)}else this.tokens.acceptDeleteRange(0,g,b.startColumn-1,j,b.endColumn-1)}}_acceptInsertText(b,g,j,ie,U){if(g===0&&j===0)return;let q=b.lineNumber-this.startLineNumber;if(q<0)return void(this.startLineNumber+=g);q>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(q,b.column-1,g,j,ie,U)}}class V{constructor(b,g){this.startLineNumber=b,this.tokens=g}}function k(N){return N instanceof Uint32Array?N:new Uint32Array(N)}class l{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}set(b,g){this._pieces=b||[],this._isComplete=g}setPartial(b,g){let j=b;if(g.length>0){let U=g[0].getRange(),q=g[g.length-1].getRange();if(!U||!q)return b;j=b.plusRange(U).plusRange(q)}let ie=null;for(let U=0,q=this._pieces.length;U<q;U++){let B=this._pieces[U];if(B.endLineNumber<j.startLineNumber)continue;if(B.startLineNumber>j.endLineNumber){ie=ie||{index:U};break}if(B.removeTokens(j),B.isEmpty()){this._pieces.splice(U,1),U--,q--;continue}if(B.endLineNumber<j.startLineNumber)continue;if(B.startLineNumber>j.endLineNumber){ie=ie||{index:U};continue}let[se,ke]=B.split(j);se.isEmpty()?ie=ie||{index:U}:ke.isEmpty()||(this._pieces.splice(U,1,se,ke),U++,q++,ie=ie||{index:U})}return ie=ie||{index:this._pieces.length},g.length>0&&(this._pieces=h.a(this._pieces,ie.index,g)),j}isComplete(){return this._isComplete}addSemanticTokens(b,g){let j=this._pieces;if(j.length===0)return g;let ie=j[l._findFirstPieceWithLine(j,b)].getLineTokens(b);if(!ie)return g;let U=g.getCount(),q=ie.getCount(),B=0,se=[],ke=0,xe=0,Y=(Z,te)=>{Z!==xe&&(xe=Z,se[ke++]=Z,se[ke++]=te)};for(let Z=0;Z<q;Z++){let te=ie.getStartCharacter(Z),he=ie.getEndCharacter(Z),Ce=ie.getMetadata(Z),Ae=((1&Ce?2048:0)|(2&Ce?4096:0)|(4&Ce?8192:0)|(8&Ce?8372224:0)|(16&Ce?4286578688:0))>>>0,L=~Ae>>>0;for(;B<U&&g.getEndOffset(B)<=te;)Y(g.getEndOffset(B),g.getMetadata(B)),B++;for(B<U&&g.getStartOffset(B)<te&&Y(te,g.getMetadata(B));B<U&&g.getEndOffset(B)<he;)Y(g.getEndOffset(B),g.getMetadata(B)&L|Ce&Ae),B++;if(B<U)Y(he,g.getMetadata(B)&L|Ce&Ae),g.getEndOffset(B)===he&&B++;else{let nt=Math.min(Math.max(0,B-1),U-1);Y(he,g.getMetadata(nt)&L|Ce&Ae)}}for(;B<U;)Y(g.getEndOffset(B),g.getMetadata(B)),B++;return new f.a(new Uint32Array(se),g.getLineContent())}static _findFirstPieceWithLine(b,g){let j=0,ie=b.length-1;for(;j<ie;){let U=j+Math.floor((ie-j)/2);if(b[U].endLineNumber<g)j=U+1;else{if(!(b[U].startLineNumber>g)){for(;U>j&&b[U-1].startLineNumber<=g&&g<=b[U-1].endLineNumber;)U--;return U}ie=U-1}}return j}acceptEdit(b,g,j,ie,U){for(let q of this._pieces)q.acceptEdit(b,g,j,ie,U)}}class T{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(b,g,j){let ie=null;if(g<this._len&&(ie=this._lineTokens[g]),ie!==null&&ie!==Q)return new f.a(k(ie),j);let U=new Uint32Array(2);return U[0]=j.length,U[1]=W(b),new f.a(U,j)}static _massageTokens(b,g,j){let ie=j?k(j):null;if(g===0){let U=!1;if(ie&&ie.length>1&&(U=E.B.getLanguageId(ie[1])!==b),!U)return Q}if(!ie||ie.length===0){let U=new Uint32Array(2);return U[0]=g,U[1]=W(b),U.buffer}return ie[ie.length-2]=g,ie.byteOffset===0&&ie.byteLength===ie.buffer.byteLength?ie.buffer:ie}_ensureLine(b){for(;b>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(b,g){g!==0&&(b+g>this._len&&(g=this._len-b),this._lineTokens.splice(b,g),this._len-=g)}_insertLines(b,g){if(g===0)return;let j=[];for(let ie=0;ie<g;ie++)j[ie]=null;this._lineTokens=h.a(this._lineTokens,b,j),this._len+=g}setTokens(b,g,j,ie,U){let q=T._massageTokens(b,j,ie);this._ensureLine(g);let B=this._lineTokens[g];return this._lineTokens[g]=q,!!U&&!T._equals(B,q)}static _equals(b,g){if(!b||!g)return!b&&!g;let j=k(b),ie=k(g);if(j.length!==ie.length)return!1;for(let U=0,q=j.length;U<q;U++)if(j[U]!==ie[U])return!1;return!0}acceptEdit(b,g,j){this._acceptDeleteRange(b),this._acceptInsertText(new O.a(b.startLineNumber,b.startColumn),g,j)}_acceptDeleteRange(b){let g=b.startLineNumber-1;if(g>=this._len)return;if(b.startLineNumber===b.endLineNumber)return b.startColumn===b.endColumn?void 0:void(this._lineTokens[g]=T._delete(this._lineTokens[g],b.startColumn-1,b.endColumn-1));this._lineTokens[g]=T._deleteEnding(this._lineTokens[g],b.startColumn-1);let j=b.endLineNumber-1,ie=null;j<this._len&&(ie=T._deleteBeginning(this._lineTokens[j],b.endColumn-1)),this._lineTokens[g]=T._append(this._lineTokens[g],ie),this._deleteLines(b.startLineNumber,b.endLineNumber-b.startLineNumber)}_acceptInsertText(b,g,j){if(g===0&&j===0)return;let ie=b.lineNumber-1;ie>=this._len||(g!==0?(this._lineTokens[ie]=T._deleteEnding(this._lineTokens[ie],b.column-1),this._lineTokens[ie]=T._insert(this._lineTokens[ie],b.column-1,j),this._insertLines(b.lineNumber,g)):this._lineTokens[ie]=T._insert(this._lineTokens[ie],b.column-1,j))}static _deleteBeginning(b,g){return b===null||b===Q?b:T._delete(b,0,g)}static _deleteEnding(b,g){if(b===null||b===Q)return b;let j=k(b),ie=j[j.length-2];return T._delete(b,g,ie)}static _delete(b,g,j){if(b===null||b===Q||g===j)return b;let ie=k(b),U=ie.length>>>1;if(g===0&&ie[ie.length-2]===j)return Q;let q=f.a.findIndexInTokensArray(ie,g),B=q>0?ie[q-1<<1]:0;if(j<ie[q<<1]){let Z=j-g;for(let te=q;te<U;te++)ie[te<<1]-=Z;return b}let se,ke;B!==g?(ie[q<<1]=g,se=q+1<<1,ke=g):(se=q<<1,ke=B);let xe=j-g;for(let Z=q+1;Z<U;Z++){let te=ie[Z<<1]-xe;te>ke&&(ie[se++]=te,ie[se++]=ie[1+(Z<<1)],ke=te)}if(se===ie.length)return b;let Y=new Uint32Array(se);return Y.set(ie.subarray(0,se),0),Y.buffer}static _append(b,g){if(g===Q)return b;if(b===Q)return g;if(b===null)return b;if(g===null)return null;let j=k(b),ie=k(g),U=ie.length>>>1,q=new Uint32Array(j.length+ie.length);q.set(j,0);let B=j.length,se=j[j.length-2];for(let ke=0;ke<U;ke++)q[B++]=ie[ke<<1]+se,q[B++]=ie[1+(ke<<1)];return q.buffer}static _insert(b,g,j){if(b===null||b===Q)return b;let ie=k(b),U=ie.length>>>1,q=f.a.findIndexInTokensArray(ie,g);q>0&&ie[q-1<<1]===g&&q--;for(let B=q;B<U;B++)ie[B<<1]+=j;return b}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"b",function(){return f}),r.d(w,"c",function(){return O});let h={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"};class f{constructor(E){this.data=E}update(){}getData(){return this.data}}let O={CurrentDragAndDropData:void 0}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return P}),r.d(w,"b",function(){return V});var h=r(13),f=r(8),O=r(62),H=r(130),E=r(3),ge=r(21);class W{constructor(l,T,N){this._range=l,this._charBeforeSelection=T,this._charAfterSelection=N}getEditOperations(l,T){T.addTrackedEditOperation(new E.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),T.addTrackedEditOperation(new E.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(l,T){let N=T.getInverseEditOperations(),b=N[0].range,g=N[1].range;return new ge.a(b.endLineNumber,b.endColumn,g.endLineNumber,g.endColumn-this._charAfterSelection.length)}}var Q=r(22),y=r(117),C=r(75),S=r(39);class P{static indent(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=new H.a(N[g],{isUnshift:!1,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent});return b}static outdent(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=new H.a(N[g],{isUnshift:!0,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent});return b}static shiftIndent(l,T,N){return N=N||1,H.a.shiftIndent(T,T.length+N,l.tabSize,l.indentSize,l.insertSpaces)}static unshiftIndent(l,T,N){return N=N||1,H.a.unshiftIndent(T,T.length+N,l.tabSize,l.indentSize,l.insertSpaces)}static _distributedPaste(l,T,N,b){let g=[];for(let j=0,ie=N.length;j<ie;j++)g[j]=new O.a(N[j],b[j]);return new Q.e(0,g,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(l,T,N,b,g){let j=[];for(let ie=0,U=N.length;ie<U;ie++){let q=N[ie],B=q.getPosition();if(g&&!q.isEmpty()&&(g=!1),g&&b.indexOf(` +`)!==b.length-1&&(g=!1),g){let se=new E.a(B.lineNumber,1,B.lineNumber,1);j[ie]=new O.b(se,b,q,!0)}else j[ie]=new O.a(q,b)}return new Q.e(0,j,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(l,T,N,b,g){if(b||T.length===1)return null;if(g&&g.length===T.length)return g;if(l.multiCursorPaste==="spread"){N.charCodeAt(N.length-1)===10&&(N=N.substr(0,N.length-1)),N.charCodeAt(N.length-1)===13&&(N=N.substr(0,N.length-1));let j=N.split(/\r\n|\r|\n/);if(j.length===T.length)return j}return null}static paste(l,T,N,b,g,j){let ie=this._distributePasteToCursors(l,N,b,g,j);return ie?(N=N.sort(E.a.compareRangesUsingStarts),this._distributedPaste(l,T,N,ie)):this._simplePaste(l,T,N,b,g)}static _goodIndentForLine(l,T,N){let b=null,g="",j=S.a.getInheritIndentForLine(l.autoIndent,T,N,!1);if(j)b=j.action,g=j.indentation;else if(N>1){let ie;for(ie=N-1;ie>=1;ie--){let B=T.getLineContent(ie);if(f.J(B)>=0)break}if(ie<1)return null;let U=T.getLineMaxColumn(ie),q=S.a.getEnterAction(l.autoIndent,T,new E.a(ie,U,ie,U));q&&(g=q.indentation+q.appendText)}return b&&(b===C.a.Indent&&(g=P.shiftIndent(l,g)),b===C.a.Outdent&&(g=P.unshiftIndent(l,g)),g=l.normalizeIndentation(g)),g||null}static _replaceJumpToNextIndent(l,T,N,b){let g="",j=N.getStartPosition();if(l.insertSpaces){let ie=Q.a.visibleColumnFromColumn2(l,T,j),U=l.indentSize,q=U-ie%U;for(let B=0;B<q;B++)g+=" "}else g=" ";return new O.a(N,g,b)}static tab(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g];if(ie.isEmpty()){let U=T.getLineContent(ie.startLineNumber);if(/^\s*$/.test(U)&&T.isCheapToTokenize(ie.startLineNumber)){let q=this._goodIndentForLine(l,T,ie.startLineNumber);q=q||" ";let B=l.normalizeIndentation(q);if(!f.S(U,B)){b[g]=new O.a(new E.a(ie.startLineNumber,1,ie.startLineNumber,U.length+1),B,!0);continue}}b[g]=this._replaceJumpToNextIndent(l,T,ie,!0)}else{if(ie.startLineNumber===ie.endLineNumber){let U=T.getLineMaxColumn(ie.startLineNumber);if(ie.startColumn!==1||ie.endColumn!==U){b[g]=this._replaceJumpToNextIndent(l,T,ie,!1);continue}}b[g]=new H.a(ie,{isUnshift:!1,tabSize:l.tabSize,indentSize:l.indentSize,insertSpaces:l.insertSpaces,useTabStops:l.useTabStops,autoIndent:l.autoIndent})}}return b}static replacePreviousChar(l,T,N,b,g,j){let ie=[];for(let U=0,q=b.length;U<q;U++){let B=b[U];if(!B.isEmpty()){ie[U]=null;continue}let se=B.getPosition(),ke=Math.max(1,se.column-j),xe=new E.a(se.lineNumber,ke,se.lineNumber,se.column);N.getValueInRange(xe)!==g?ie[U]=new O.a(xe,g):ie[U]=null}return new Q.e(1,ie,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static _typeCommand(l,T,N){return N?new O.e(l,T,!0):new O.a(l,T,!0)}static _enter(l,T,N,b){if(l.autoIndent===0)return P._typeCommand(b,` `,N);if(!T.isCheapToTokenize(b.getStartPosition().lineNumber)||l.autoIndent===1){let U=T.getLineContent(b.startLineNumber),q=f.z(U).substring(0,b.startColumn-1);return P._typeCommand(b,` `+l.normalizeIndentation(q),N)}let g=S.a.getEnterAction(l.autoIndent,T,b);if(g){if(g.indentAction===C.a.None||g.indentAction===C.a.Indent)return P._typeCommand(b,` `+l.normalizeIndentation(g.indentation+g.appendText),N);if(g.indentAction===C.a.IndentOutdent){let U=l.normalizeIndentation(g.indentation),q=l.normalizeIndentation(g.indentation+g.appendText),B=` `+q+` -`+U;return N?new D.e(b,B,!0):new D.d(b,B,-1,q.length-U.length,!0)}if(g.indentAction===C.a.Outdent){let U=P.unshiftIndent(l,g.indentation);return P._typeCommand(b,` +`+U;return N?new O.e(b,B,!0):new O.d(b,B,-1,q.length-U.length,!0)}if(g.indentAction===C.a.Outdent){let U=P.unshiftIndent(l,g.indentation);return P._typeCommand(b,` `+l.normalizeIndentation(U+g.appendText),N)}}let j=T.getLineContent(b.startLineNumber),ie=f.z(j).substring(0,b.startColumn-1);if(l.autoIndent>=4){let U=S.a.getIndentForEnter(l.autoIndent,T,b,{unshiftIndent:q=>P.unshiftIndent(l,q),shiftIndent:q=>P.shiftIndent(l,q),normalizeIndentation:q=>l.normalizeIndentation(q)});if(U){let q=Q.a.visibleColumnFromColumn2(l,T,b.getEndPosition()),B=b.endColumn,se=` `;ie!==l.normalizeIndentation(U.beforeEnter)&&(se=l.normalizeIndentation(U.beforeEnter)+j.substring(ie.length,b.startColumn-1)+` -`,b=new E.a(b.startLineNumber,1,b.endLineNumber,b.endColumn));let ke=T.getLineContent(b.endLineNumber),xe=f.w(ke);if(b=xe>=0?b.setEndPosition(b.endLineNumber,Math.max(b.endColumn,xe+1)):b.setEndPosition(b.endLineNumber,T.getLineMaxColumn(b.endLineNumber)),N)return new D.e(b,se+l.normalizeIndentation(U.afterEnter),!0);{let Y=0;return B<=xe+1&&(l.insertSpaces||(q=Math.ceil(q/l.indentSize)),Y=Math.min(q+1-l.normalizeIndentation(U.afterEnter).length-1,0)),new D.d(b,se+l.normalizeIndentation(U.afterEnter),0,Y,!0)}}}return P._typeCommand(b,` -`+l.normalizeIndentation(ie),N)}static _isAutoIndentType(l,T,N){if(l.autoIndent<4)return!1;for(let b=0,g=N.length;b<g;b++)if(!T.isCheapToTokenize(N[b].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(l,T,N,b){let g=S.a.getIndentationAtPosition(T,N.startLineNumber,N.startColumn),j=S.a.getIndentActionForType(l.autoIndent,T,N,b,{shiftIndent:ie=>P.shiftIndent(l,ie),unshiftIndent:ie=>P.unshiftIndent(l,ie)});if(j===null)return null;if(j!==l.normalizeIndentation(g)){let ie=T.getLineFirstNonWhitespaceColumn(N.startLineNumber);return ie===0?P._typeCommand(new E.a(N.startLineNumber,0,N.endLineNumber,N.endColumn),l.normalizeIndentation(j)+b,!1):P._typeCommand(new E.a(N.startLineNumber,0,N.endLineNumber,N.endColumn),l.normalizeIndentation(j)+T.getLineContent(N.startLineNumber).substring(ie-1,N.startColumn-1)+b,!1)}return null}static _isAutoClosingOvertype(l,T,N,b,g){if(l.autoClosingOvertype==="never"||!l.autoClosingPairsClose2.has(g))return!1;for(let j=0,ie=N.length;j<ie;j++){let U=N[j];if(!U.isEmpty())return!1;let q=U.getPosition(),B=T.getLineContent(q.lineNumber);if(B.charAt(q.column-1)!==g)return!1;let se=Object(Q.g)(g);if((q.column>2?B.charCodeAt(q.column-2):0)===92&&se)return!1;if(l.autoClosingOvertype==="auto"){let ke=!1;for(let xe=0,Y=b.length;xe<Y;xe++){let Z=b[xe];if(q.lineNumber===Z.startLineNumber&&q.column===Z.startColumn){ke=!0;break}}if(!ke)return!1}}return!0}static _runAutoClosingOvertype(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++){let q=b[ie].getPosition(),B=new E.a(q.lineNumber,q.column,q.lineNumber,q.column+1);j[ie]=new D.a(B,g)}return new Q.e(1,j,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static _autoClosingPairIsSymmetric(l){let{open:T,close:N}=l;return T.indexOf(N)>=0||N.indexOf(T)>=0}static _isBeforeClosingBrace(l,T,N){let b=l.autoClosingPairsClose2.get(N);if(!b)return!1;let g=P._autoClosingPairIsSymmetric(T);for(let j of b){let ie=P._autoClosingPairIsSymmetric(j);if(g||!ie)return!0}return!1}static _findAutoClosingPairOpen(l,T,N,b){let g=l.autoClosingPairsOpen2.get(b);if(!g)return null;let j=null;for(let ie of g)if(j===null||ie.open.length>j.open.length){let U=!0;for(let q of N)if(T.getValueInRange(new E.a(q.lineNumber,q.column-ie.open.length+1,q.lineNumber,q.column))+b!==ie.open){U=!1;break}U&&(j=ie)}return j}static _isAutoClosingOpenCharType(l,T,N,b,g){let j=Object(Q.g)(b),ie=j?l.autoClosingQuotes:l.autoClosingBrackets;if(ie==="never")return null;let U=this._findAutoClosingPairOpen(l,T,N.map(B=>B.getPosition()),b);if(!U)return null;let q=j?l.shouldAutoCloseBefore.quote:l.shouldAutoCloseBefore.bracket;for(let B=0,se=N.length;B<se;B++){let ke=N[B];if(!ke.isEmpty())return null;let xe=ke.getPosition(),Y=T.getLineContent(xe.lineNumber);if(Y.length>xe.column-1){let he=Y.charAt(xe.column-1);if(!P._isBeforeClosingBrace(l,U,he)&&!q(he))return null}if(!T.isCheapToTokenize(xe.lineNumber))return null;if(U.open.length===1&&j&&ie!=="always"){let he=Object(y.a)(l.wordSeparators);if(g&&xe.column>1&&he.get(Y.charCodeAt(xe.column-2))===0||!g&&xe.column>2&&he.get(Y.charCodeAt(xe.column-3))===0)return null}T.forceTokenization(xe.lineNumber);let Z=T.getLineTokens(xe.lineNumber),te=!1;try{te=S.a.shouldAutoClosePair(U,Z,g?xe.column:xe.column-1)}catch(he){Object(h.e)(he)}if(!te)return null}return U}static _runAutoClosingOpenCharType(l,T,N,b,g,j,ie){let U=[];for(let q=0,B=b.length;q<B;q++){let se=b[q];U[q]=new V(se,g,j,ie.close)}return new Q.e(1,U,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(l,T){return Object(Q.g)(T)?l.autoSurround==="quotes"||l.autoSurround==="languageDefined":l.autoSurround==="brackets"||l.autoSurround==="languageDefined"}static _isSurroundSelectionType(l,T,N,b){if(!P._shouldSurroundChar(l,b)||!l.surroundingPairs.hasOwnProperty(b))return!1;let g=Object(Q.g)(b);for(let j=0,ie=N.length;j<ie;j++){let U=N[j];if(U.isEmpty())return!1;let q=!0;for(let B=U.startLineNumber;B<=U.endLineNumber;B++){let se=T.getLineContent(B),ke=B===U.startLineNumber?U.startColumn-1:0,xe=B===U.endLineNumber?U.endColumn-1:se.length,Y=se.substring(ke,xe);if(/[^ \t]/.test(Y)){q=!1;break}}if(q)return!1;if(g&&U.startLineNumber===U.endLineNumber&&U.startColumn+1===U.endColumn){let B=T.getValueInRange(U);if(Object(Q.g)(B))return!1}}return!0}static _runSurroundSelectionType(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++){let q=b[ie],B=T.surroundingPairs[g];j[ie]=new W(q,g,B)}return new Q.e(0,j,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(l,T,N){return!(N.length!==1||!T.isCheapToTokenize(N[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(l,T,N,b,g){if(!T.electricChars.hasOwnProperty(g)||!b.isEmpty())return null;let j=b.getPosition();N.forceTokenization(j.lineNumber);let ie,U=N.getLineTokens(j.lineNumber);try{ie=S.a.onElectricCharacter(g,U,j.column)}catch(q){return Object(h.e)(q),null}if(!ie)return null;if(ie.matchOpenBracket){let q=(U.getLineContent()+g).lastIndexOf(ie.matchOpenBracket)+1,B=N.findMatchingBracketUp(ie.matchOpenBracket,{lineNumber:j.lineNumber,column:q});if(B){if(B.startLineNumber===j.lineNumber)return null;let se=N.getLineContent(B.startLineNumber),ke=f.z(se),xe=T.normalizeIndentation(ke),Y=N.getLineContent(j.lineNumber),Z=N.getLineFirstNonWhitespaceColumn(j.lineNumber)||j.column,te=xe+Y.substring(Z-1,j.column-1)+g,he=new E.a(j.lineNumber,1,j.lineNumber,j.column),Ce=new D.a(he,te);return new Q.e(1,[Ce],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(l,T,N,b,g,j){if(!b||ge.a.selectionsArrEqual(b,g))return null;let ie=null;for(let q of g){if(!q.isEmpty())return null;let B=q.getPosition(),se=N.getValueInRange(new E.a(B.lineNumber,B.column-1,B.lineNumber,B.column));if(ie===null)ie=se;else if(ie!==se)return null}if(!ie)return null;if(this._isAutoClosingOvertype(T,N,g,j,ie)){let q=g.map(B=>new D.a(new E.a(B.positionLineNumber,B.positionColumn,B.positionLineNumber,B.positionColumn+1),"",!1));return new Q.e(1,q,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let U=this._isAutoClosingOpenCharType(T,N,g,ie,!1);return U?this._runAutoClosingOpenCharType(l,T,N,g,ie,!1,U):null}static typeWithInterceptors(l,T,N,b,g,j,ie){if(!l&&ie===` -`){let B=[];for(let se=0,ke=g.length;se<ke;se++)B[se]=P._enter(N,b,!1,g[se]);return new Q.e(1,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!l&&this._isAutoIndentType(N,b,g)){let B=[],se=!1;for(let ke=0,xe=g.length;ke<xe;ke++)if(B[ke]=this._runAutoIndentType(N,b,g[ke],ie),!B[ke]){se=!0;break}if(!se)return new Q.e(1,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!l&&this._isAutoClosingOvertype(N,b,g,j,ie))return this._runAutoClosingOvertype(T,N,b,g,ie);if(!l){let B=this._isAutoClosingOpenCharType(N,b,g,ie,!0);if(B)return this._runAutoClosingOpenCharType(T,N,b,g,ie,!0,B)}if(this._isSurroundSelectionType(N,b,g,ie))return this._runSurroundSelectionType(T,N,b,g,ie);if(!l&&this._isTypeInterceptorElectricChar(N,b,g)){let B=this._typeInterceptorElectricChar(T,N,b,g[0],ie);if(B)return B}let U=[];for(let B=0,se=g.length;B<se;B++)U[B]=new D.a(g[B],ie);let q=T!==1;return ie===" "&&(q=!0),new Q.e(1,U,{shouldPushStackElementBefore:q,shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++)j[ie]=new D.a(b[ie],g);return new Q.e(1,j,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static lineInsertBefore(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g].positionLineNumber;if(ie===1)b[g]=new D.e(new E.a(1,1,1,1),` -`);else{ie--;let U=T.getLineMaxColumn(ie);b[g]=this._enter(l,T,!1,new E.a(ie,U,ie,U))}}return b}static lineInsertAfter(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g].positionLineNumber,U=T.getLineMaxColumn(ie);b[g]=this._enter(l,T,!1,new E.a(ie,U,ie,U))}return b}static lineBreakInsert(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=this._enter(l,T,!0,N[g]);return b}}class V extends D.d{constructor(l,T,N,b){super(l,(N?T:"")+b,0,-b.length),this._openCharacter=T,this._closeCharacter=b,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(l,T){let N=T.getInverseEditOperations()[0].range;return this.closeCharacterRange=new E.a(N.startLineNumber,N.endColumn-this._closeCharacter.length,N.endLineNumber,N.endColumn),this.enclosingRange=new E.a(N.startLineNumber,N.endColumn-this._openCharacter.length-this._closeCharacter.length,N.endLineNumber,N.endColumn),super.computeCursorState(l,T)}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return H}),o.d(w,"a",function(){return E});var h=o(8),f=o(9),D=o(3);class H{constructor(W,Q,y,C,S){this.value=W,this.selectionStart=Q,this.selectionEnd=y,this.selectionStartPosition=C,this.selectionEndPosition=S}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(W){return new H(W.getValue(),W.getSelectionStart(),W.getSelectionEnd(),null,null)}collapseSelection(){return new H(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(W,Q,y){Q.setValue(W,this.value),y&&Q.setSelectionRange(W,this.selectionStart,this.selectionEnd)}deduceEditorPosition(W){if(W<=this.selectionStart){let C=this.value.substring(W,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,C,-1)}if(W>=this.selectionEnd){let C=this.value.substring(this.selectionEnd,W);return this._finishDeduceEditorPosition(this.selectionEndPosition,C,1)}let Q=this.value.substring(this.selectionStart,W);if(Q.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,Q,1);let y=this.value.substring(W,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,y,-1)}_finishDeduceEditorPosition(W,Q,y){let C=0,S=-1;for(;(S=Q.indexOf(` +`,b=new E.a(b.startLineNumber,1,b.endLineNumber,b.endColumn));let ke=T.getLineContent(b.endLineNumber),xe=f.w(ke);if(b=xe>=0?b.setEndPosition(b.endLineNumber,Math.max(b.endColumn,xe+1)):b.setEndPosition(b.endLineNumber,T.getLineMaxColumn(b.endLineNumber)),N)return new O.e(b,se+l.normalizeIndentation(U.afterEnter),!0);{let Y=0;return B<=xe+1&&(l.insertSpaces||(q=Math.ceil(q/l.indentSize)),Y=Math.min(q+1-l.normalizeIndentation(U.afterEnter).length-1,0)),new O.d(b,se+l.normalizeIndentation(U.afterEnter),0,Y,!0)}}}return P._typeCommand(b,` +`+l.normalizeIndentation(ie),N)}static _isAutoIndentType(l,T,N){if(l.autoIndent<4)return!1;for(let b=0,g=N.length;b<g;b++)if(!T.isCheapToTokenize(N[b].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(l,T,N,b){let g=S.a.getIndentationAtPosition(T,N.startLineNumber,N.startColumn),j=S.a.getIndentActionForType(l.autoIndent,T,N,b,{shiftIndent:ie=>P.shiftIndent(l,ie),unshiftIndent:ie=>P.unshiftIndent(l,ie)});if(j===null)return null;if(j!==l.normalizeIndentation(g)){let ie=T.getLineFirstNonWhitespaceColumn(N.startLineNumber);return ie===0?P._typeCommand(new E.a(N.startLineNumber,0,N.endLineNumber,N.endColumn),l.normalizeIndentation(j)+b,!1):P._typeCommand(new E.a(N.startLineNumber,0,N.endLineNumber,N.endColumn),l.normalizeIndentation(j)+T.getLineContent(N.startLineNumber).substring(ie-1,N.startColumn-1)+b,!1)}return null}static _isAutoClosingOvertype(l,T,N,b,g){if(l.autoClosingOvertype==="never"||!l.autoClosingPairsClose2.has(g))return!1;for(let j=0,ie=N.length;j<ie;j++){let U=N[j];if(!U.isEmpty())return!1;let q=U.getPosition(),B=T.getLineContent(q.lineNumber);if(B.charAt(q.column-1)!==g)return!1;let se=Object(Q.g)(g);if((q.column>2?B.charCodeAt(q.column-2):0)===92&&se)return!1;if(l.autoClosingOvertype==="auto"){let ke=!1;for(let xe=0,Y=b.length;xe<Y;xe++){let Z=b[xe];if(q.lineNumber===Z.startLineNumber&&q.column===Z.startColumn){ke=!0;break}}if(!ke)return!1}}return!0}static _runAutoClosingOvertype(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++){let q=b[ie].getPosition(),B=new E.a(q.lineNumber,q.column,q.lineNumber,q.column+1);j[ie]=new O.a(B,g)}return new Q.e(1,j,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static _autoClosingPairIsSymmetric(l){let{open:T,close:N}=l;return T.indexOf(N)>=0||N.indexOf(T)>=0}static _isBeforeClosingBrace(l,T,N){let b=l.autoClosingPairsClose2.get(N);if(!b)return!1;let g=P._autoClosingPairIsSymmetric(T);for(let j of b){let ie=P._autoClosingPairIsSymmetric(j);if(g||!ie)return!0}return!1}static _findAutoClosingPairOpen(l,T,N,b){let g=l.autoClosingPairsOpen2.get(b);if(!g)return null;let j=null;for(let ie of g)if(j===null||ie.open.length>j.open.length){let U=!0;for(let q of N)if(T.getValueInRange(new E.a(q.lineNumber,q.column-ie.open.length+1,q.lineNumber,q.column))+b!==ie.open){U=!1;break}U&&(j=ie)}return j}static _isAutoClosingOpenCharType(l,T,N,b,g){let j=Object(Q.g)(b),ie=j?l.autoClosingQuotes:l.autoClosingBrackets;if(ie==="never")return null;let U=this._findAutoClosingPairOpen(l,T,N.map(B=>B.getPosition()),b);if(!U)return null;let q=j?l.shouldAutoCloseBefore.quote:l.shouldAutoCloseBefore.bracket;for(let B=0,se=N.length;B<se;B++){let ke=N[B];if(!ke.isEmpty())return null;let xe=ke.getPosition(),Y=T.getLineContent(xe.lineNumber);if(Y.length>xe.column-1){let he=Y.charAt(xe.column-1);if(!P._isBeforeClosingBrace(l,U,he)&&!q(he))return null}if(!T.isCheapToTokenize(xe.lineNumber))return null;if(U.open.length===1&&j&&ie!=="always"){let he=Object(y.a)(l.wordSeparators);if(g&&xe.column>1&&he.get(Y.charCodeAt(xe.column-2))===0||!g&&xe.column>2&&he.get(Y.charCodeAt(xe.column-3))===0)return null}T.forceTokenization(xe.lineNumber);let Z=T.getLineTokens(xe.lineNumber),te=!1;try{te=S.a.shouldAutoClosePair(U,Z,g?xe.column:xe.column-1)}catch(he){Object(h.e)(he)}if(!te)return null}return U}static _runAutoClosingOpenCharType(l,T,N,b,g,j,ie){let U=[];for(let q=0,B=b.length;q<B;q++){let se=b[q];U[q]=new V(se,g,j,ie.close)}return new Q.e(1,U,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(l,T){return Object(Q.g)(T)?l.autoSurround==="quotes"||l.autoSurround==="languageDefined":l.autoSurround==="brackets"||l.autoSurround==="languageDefined"}static _isSurroundSelectionType(l,T,N,b){if(!P._shouldSurroundChar(l,b)||!l.surroundingPairs.hasOwnProperty(b))return!1;let g=Object(Q.g)(b);for(let j=0,ie=N.length;j<ie;j++){let U=N[j];if(U.isEmpty())return!1;let q=!0;for(let B=U.startLineNumber;B<=U.endLineNumber;B++){let se=T.getLineContent(B),ke=B===U.startLineNumber?U.startColumn-1:0,xe=B===U.endLineNumber?U.endColumn-1:se.length,Y=se.substring(ke,xe);if(/[^ \t]/.test(Y)){q=!1;break}}if(q)return!1;if(g&&U.startLineNumber===U.endLineNumber&&U.startColumn+1===U.endColumn){let B=T.getValueInRange(U);if(Object(Q.g)(B))return!1}}return!0}static _runSurroundSelectionType(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++){let q=b[ie],B=T.surroundingPairs[g];j[ie]=new W(q,g,B)}return new Q.e(0,j,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(l,T,N){return!(N.length!==1||!T.isCheapToTokenize(N[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(l,T,N,b,g){if(!T.electricChars.hasOwnProperty(g)||!b.isEmpty())return null;let j=b.getPosition();N.forceTokenization(j.lineNumber);let ie,U=N.getLineTokens(j.lineNumber);try{ie=S.a.onElectricCharacter(g,U,j.column)}catch(q){return Object(h.e)(q),null}if(!ie)return null;if(ie.matchOpenBracket){let q=(U.getLineContent()+g).lastIndexOf(ie.matchOpenBracket)+1,B=N.findMatchingBracketUp(ie.matchOpenBracket,{lineNumber:j.lineNumber,column:q});if(B){if(B.startLineNumber===j.lineNumber)return null;let se=N.getLineContent(B.startLineNumber),ke=f.z(se),xe=T.normalizeIndentation(ke),Y=N.getLineContent(j.lineNumber),Z=N.getLineFirstNonWhitespaceColumn(j.lineNumber)||j.column,te=xe+Y.substring(Z-1,j.column-1)+g,he=new E.a(j.lineNumber,1,j.lineNumber,j.column),Ce=new O.a(he,te);return new Q.e(1,[Ce],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(l,T,N,b,g,j){if(!b||ge.a.selectionsArrEqual(b,g))return null;let ie=null;for(let q of g){if(!q.isEmpty())return null;let B=q.getPosition(),se=N.getValueInRange(new E.a(B.lineNumber,B.column-1,B.lineNumber,B.column));if(ie===null)ie=se;else if(ie!==se)return null}if(!ie)return null;if(this._isAutoClosingOvertype(T,N,g,j,ie)){let q=g.map(B=>new O.a(new E.a(B.positionLineNumber,B.positionColumn,B.positionLineNumber,B.positionColumn+1),"",!1));return new Q.e(1,q,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let U=this._isAutoClosingOpenCharType(T,N,g,ie,!1);return U?this._runAutoClosingOpenCharType(l,T,N,g,ie,!1,U):null}static typeWithInterceptors(l,T,N,b,g,j,ie){if(!l&&ie===` +`){let B=[];for(let se=0,ke=g.length;se<ke;se++)B[se]=P._enter(N,b,!1,g[se]);return new Q.e(1,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!l&&this._isAutoIndentType(N,b,g)){let B=[],se=!1;for(let ke=0,xe=g.length;ke<xe;ke++)if(B[ke]=this._runAutoIndentType(N,b,g[ke],ie),!B[ke]){se=!0;break}if(!se)return new Q.e(1,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!l&&this._isAutoClosingOvertype(N,b,g,j,ie))return this._runAutoClosingOvertype(T,N,b,g,ie);if(!l){let B=this._isAutoClosingOpenCharType(N,b,g,ie,!0);if(B)return this._runAutoClosingOpenCharType(T,N,b,g,ie,!0,B)}if(this._isSurroundSelectionType(N,b,g,ie))return this._runSurroundSelectionType(T,N,b,g,ie);if(!l&&this._isTypeInterceptorElectricChar(N,b,g)){let B=this._typeInterceptorElectricChar(T,N,b,g[0],ie);if(B)return B}let U=[];for(let B=0,se=g.length;B<se;B++)U[B]=new O.a(g[B],ie);let q=T!==1;return ie===" "&&(q=!0),new Q.e(1,U,{shouldPushStackElementBefore:q,shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(l,T,N,b,g){let j=[];for(let ie=0,U=b.length;ie<U;ie++)j[ie]=new O.a(b[ie],g);return new Q.e(1,j,{shouldPushStackElementBefore:l!==1,shouldPushStackElementAfter:!1})}static lineInsertBefore(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g].positionLineNumber;if(ie===1)b[g]=new O.e(new E.a(1,1,1,1),` +`);else{ie--;let U=T.getLineMaxColumn(ie);b[g]=this._enter(l,T,!1,new E.a(ie,U,ie,U))}}return b}static lineInsertAfter(l,T,N){if(T===null||N===null)return[];let b=[];for(let g=0,j=N.length;g<j;g++){let ie=N[g].positionLineNumber,U=T.getLineMaxColumn(ie);b[g]=this._enter(l,T,!1,new E.a(ie,U,ie,U))}return b}static lineBreakInsert(l,T,N){let b=[];for(let g=0,j=N.length;g<j;g++)b[g]=this._enter(l,T,!0,N[g]);return b}}class V extends O.d{constructor(l,T,N,b){super(l,(N?T:"")+b,0,-b.length),this._openCharacter=T,this._closeCharacter=b,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(l,T){let N=T.getInverseEditOperations()[0].range;return this.closeCharacterRange=new E.a(N.startLineNumber,N.endColumn-this._closeCharacter.length,N.endLineNumber,N.endColumn),this.enclosingRange=new E.a(N.startLineNumber,N.endColumn-this._openCharacter.length-this._closeCharacter.length,N.endLineNumber,N.endColumn),super.computeCursorState(l,T)}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return H}),r.d(w,"a",function(){return E});var h=r(8),f=r(9),O=r(3);class H{constructor(W,Q,y,C,S){this.value=W,this.selectionStart=Q,this.selectionEnd=y,this.selectionStartPosition=C,this.selectionEndPosition=S}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(W){return new H(W.getValue(),W.getSelectionStart(),W.getSelectionEnd(),null,null)}collapseSelection(){return new H(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(W,Q,y){Q.setValue(W,this.value),y&&Q.setSelectionRange(W,this.selectionStart,this.selectionEnd)}deduceEditorPosition(W){if(W<=this.selectionStart){let C=this.value.substring(W,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,C,-1)}if(W>=this.selectionEnd){let C=this.value.substring(this.selectionEnd,W);return this._finishDeduceEditorPosition(this.selectionEndPosition,C,1)}let Q=this.value.substring(this.selectionStart,W);if(Q.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,Q,1);let y=this.value.substring(W,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,y,-1)}_finishDeduceEditorPosition(W,Q,y){let C=0,S=-1;for(;(S=Q.indexOf(` `,S+1))!==-1;)C++;return[W,y*Q.length,C]}static selectedText(W){return new H(W,0,W.length,null,null)}static deduceInput(W,Q,y){if(!W)return{text:"",replaceCharCnt:0};let C=W.value,S=W.selectionStart,P=W.selectionEnd,V=Q.value,k=Q.selectionStart,l=Q.selectionEnd,T=C.substring(P),N=V.substring(l),b=h.e(T,N);V=V.substring(0,V.length-b),C=C.substring(0,C.length-b);let g=C.substring(0,S),j=V.substring(0,k),ie=h.d(g,j);if(V=V.substring(ie),C=C.substring(ie),k-=ie,S-=ie,l-=ie,P-=ie,y&&k===l&&C.length>0){let U=null;if(k===V.length?h.S(V,C)&&(U=V.substring(C.length)):h.s(V,C)&&(U=V.substring(0,V.length-C.length)),U!==null&&U.length>0&&(/\uFE0F/.test(U)||h.k(U)))return{text:U,replaceCharCnt:0}}return k===l?C===V&&S===0&&P===C.length&&k===V.length&&V.indexOf(` -`)===-1&&h.l(V)?{text:"",replaceCharCnt:0}:{text:V,replaceCharCnt:g.length-ie}:{text:V,replaceCharCnt:P-S}}}H.EMPTY=new H("",0,0,null,null);class E{static _getPageOfLine(W,Q){return Math.floor((W-1)/Q)}static _getRangeForPage(W,Q){let y=W*Q,C=y+1,S=y+Q;return new D.a(C,1,S+1,1)}static fromEditorSelection(W,Q,y,C,S){let P=E._getPageOfLine(y.startLineNumber,C),V=E._getRangeForPage(P,C),k=E._getPageOfLine(y.endLineNumber,C),l=E._getRangeForPage(k,C),T=V.intersectRanges(new D.a(1,1,y.startLineNumber,y.startColumn)),N=Q.getValueInRange(T,1),b=Q.getLineCount(),g=Q.getLineMaxColumn(b),j=l.intersectRanges(new D.a(y.endLineNumber,y.endColumn,b,g)),ie,U=Q.getValueInRange(j,1);if(P===k||P+1===k)ie=Q.getValueInRange(y,1);else{let q=V.intersectRanges(y),B=l.intersectRanges(y);ie=Q.getValueInRange(q,1)+String.fromCharCode(8230)+Q.getValueInRange(B,1)}if(S){let q=500;N.length>q&&(N=N.substring(N.length-q,N.length)),U.length>q&&(U=U.substring(0,q)),ie.length>2*q&&(ie=ie.substring(0,q)+String.fromCharCode(8230)+ie.substring(ie.length-q,ie.length))}return new H(N+ie+U,N.length,N.length+ie.length,new f.a(y.startLineNumber,y.startColumn),new f.a(y.endLineNumber,y.endColumn))}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return k}),o.d(w,"c",function(){return l});var h=o(0),f=o(6),D=o(56),H=o(14),E=o(188);let ge={Configuration:"base.contributions.configuration"},W={properties:{},patternProperties:{}},Q={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},C={properties:{},patternProperties:{}},S={properties:{},patternProperties:{}},P={properties:{},patternProperties:{}},V=D.a.as(E.a.JSONContribution),k=new RegExp("\\[.*\\]$");function l(b){return b.substring(1,b.length-1)}let T=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new f.a,this._onDidUpdateConfiguration=new f.a,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:h.a("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},V.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema)}registerConfiguration(b,g=!0){this.registerConfigurations([b],g)}registerConfigurations(b,g=!0){let j=[];b.forEach(ie=>{j.push(...this.validateAndRegisterProperties(ie,g)),this.configurationContributors.push(ie),this.registerJSONConfiguration(ie)}),V.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(j)}registerOverrideIdentifiers(b){for(let g of b)this.overrideIdentifiers.add(g);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(b,g=!0,j=3){j=H.l(b.scope)?j:b.scope;let ie=[],U=b.properties;if(U)for(let B in U){if(g&&N(B)){delete U[B];continue}let se=U[B];this.updatePropertyDefaultValue(B,se),k.test(B)?se.scope=void 0:se.scope=H.l(se.scope)?j:se.scope,!U[B].hasOwnProperty("included")||U[B].included?(this.configurationProperties[B]=U[B],!U[B].deprecationMessage&&U[B].markdownDeprecationMessage&&(U[B].deprecationMessage=U[B].markdownDeprecationMessage),ie.push(B)):(this.excludedConfigurationProperties[B]=U[B],delete U[B])}let q=b.allOf;if(q)for(let B of q)ie.push(...this.validateAndRegisterProperties(B,g,j));return ie}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(b){let g=j=>{let ie=j.properties;if(ie)for(let q in ie)this.updateSchema(q,ie[q]);let U=j.allOf;U&&U.forEach(g)};g(b)}updateSchema(b,g){switch(W.properties[b]=g,g.scope){case 1:Q.properties[b]=g;break;case 2:y.properties[b]=g;break;case 6:C.properties[b]=g;break;case 3:S.properties[b]=g;break;case 4:P.properties[b]=g;break;case 5:P.properties[b]=g,this.resourceLanguageSettingsSchema.properties[b]=g}}updateOverridePropertyPatternKey(){for(let b of this.overrideIdentifiers.values()){let g=`[${b}]`,j={type:"object",description:h.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:h.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:"vscode://schemas/settings/resourceLanguage"};this.updatePropertyDefaultValue(g,j),W.properties[g]=j,Q.properties[g]=j,y.properties[g]=j,C.properties[g]=j,S.properties[g]=j,P.properties[g]=j}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(b,g){let j=this.defaultValues[b];H.k(j)&&(j=g.default),H.k(j)&&(j=function(ie){switch(Array.isArray(ie)?ie[0]:ie){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(g.type)),g.default=j}};function N(b){return k.test(b)?h.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",b):T.getConfigurationProperties()[b]!==void 0?h.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",b):null}D.a.add(ge.Configuration,T)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"b",function(){return W});var h=o(8),f=o(22),D=o(117),H=o(9),E=o(3);class ge{static _createWord(C,S,P,V,k){return{start:V,end:k,wordType:S,nextCharClass:P}}static _findPreviousWordOnLine(C,S,P){let V=S.getLineContent(P.lineNumber);return this._doFindPreviousWordOnLine(V,C,P)}static _doFindPreviousWordOnLine(C,S,P){let V=0;for(let k=P.column-2;k>=0;k--){let l=C.charCodeAt(k),T=S.get(l);if(T===0){if(V===2)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1));V=1}else if(T===2){if(V===1)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1));V=2}else if(T===1&&V!==0)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1))}return V!==0?this._createWord(C,V,1,0,this._findEndOfWord(C,S,V,0)):null}static _findEndOfWord(C,S,P,V){let k=C.length;for(let l=V;l<k;l++){let T=C.charCodeAt(l),N=S.get(T);if(N===1||P===1&&N===2||P===2&&N===0)return l}return k}static _findNextWordOnLine(C,S,P){let V=S.getLineContent(P.lineNumber);return this._doFindNextWordOnLine(V,C,P)}static _doFindNextWordOnLine(C,S,P){let V=0,k=C.length;for(let l=P.column-1;l<k;l++){let T=C.charCodeAt(l),N=S.get(T);if(N===0){if(V===2)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l);V=1}else if(N===2){if(V===1)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l);V=2}else if(N===1&&V!==0)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l)}return V!==0?this._createWord(C,V,1,this._findStartOfWord(C,S,V,k-1),k):null}static _findStartOfWord(C,S,P,V){for(let k=V;k>=0;k--){let l=C.charCodeAt(k),T=S.get(l);if(T===1||P===1&&T===2||P===2&&T===0)return k+1}return 0}static moveWordLeft(C,S,P,V){let k=P.lineNumber,l=P.column;l===1&&k>1&&(k-=1,l=S.getLineMaxColumn(k));let T=ge._findPreviousWordOnLine(C,S,new H.a(k,l));if(V===0)return new H.a(k,T?T.start+1:1);if(V===1)return T&&T.wordType===2&&T.end-T.start==1&&T.nextCharClass===0&&(T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1))),new H.a(k,T?T.start+1:1);if(V===3){for(;T&&T.wordType===2;)T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1));return new H.a(k,T?T.start+1:1)}return T&&l<=T.end+1&&(T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1))),new H.a(k,T?T.end+1:1)}static _moveWordPartLeft(C,S){let P=S.lineNumber,V=C.getLineMaxColumn(P);if(S.column===1)return P>1?new H.a(P-1,C.getLineMaxColumn(P-1)):S;let k=C.getLineContent(P);for(let l=S.column-1;l>1;l--){let T=k.charCodeAt(l-2),N=k.charCodeAt(l-1);if(T===95&&N!==95)return new H.a(P,l);if(h.H(T)&&h.I(N))return new H.a(P,l);if(h.I(T)&&h.I(N)&&l+1<V){let b=k.charCodeAt(l);if(h.H(b))return new H.a(P,l)}}return new H.a(P,1)}static moveWordRight(C,S,P,V){let k=P.lineNumber,l=P.column,T=!1;l===S.getLineMaxColumn(k)&&k<S.getLineCount()&&(T=!0,k+=1,l=1);let N=ge._findNextWordOnLine(C,S,new H.a(k,l));if(V===2)N&&N.wordType===2&&N.end-N.start==1&&N.nextCharClass===0&&(N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1))),l=N?N.end+1:S.getLineMaxColumn(k);else if(V===3){for(T&&(l=0);N&&(N.wordType===2||N.start+1<=l);)N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1));l=N?N.start+1:S.getLineMaxColumn(k)}else N&&!T&&l>=N.start+1&&(N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1))),l=N?N.start+1:S.getLineMaxColumn(k);return new H.a(k,l)}static _moveWordPartRight(C,S){let P=S.lineNumber,V=C.getLineMaxColumn(P);if(S.column===V)return P<C.getLineCount()?new H.a(P+1,1):S;let k=C.getLineContent(P);for(let l=S.column+1;l<V;l++){let T=k.charCodeAt(l-2),N=k.charCodeAt(l-1);if(T!==95&&N===95)return new H.a(P,l);if(h.H(T)&&h.I(N))return new H.a(P,l);if(h.I(T)&&h.I(N)&&l+1<V){let b=k.charCodeAt(l);if(h.H(b))return new H.a(P,l)}}return new H.a(P,V)}static _deleteWordLeftWhitespace(C,S){let P=C.getLineContent(S.lineNumber),V=S.column-2,k=h.J(P,V);return k+1<V?new E.a(S.lineNumber,k+2,S.lineNumber,S.column):null}static deleteWordLeft(C,S,P,V,k){if(!P.isEmpty())return P;let l=new H.a(P.positionLineNumber,P.positionColumn),T=l.lineNumber,N=l.column;if(T===1&&N===1)return null;if(V){let g=this._deleteWordLeftWhitespace(S,l);if(g)return g}let b=ge._findPreviousWordOnLine(C,S,l);return k===0?b?N=b.start+1:N>1?N=1:(T--,N=S.getLineMaxColumn(T)):(b&&N<=b.end+1&&(b=ge._findPreviousWordOnLine(C,S,new H.a(T,b.start+1))),b?N=b.end+1:N>1?N=1:(T--,N=S.getLineMaxColumn(T))),new E.a(T,N,l.lineNumber,l.column)}static _deleteWordPartLeft(C,S){if(!S.isEmpty())return S;let P=S.getPosition(),V=ge._moveWordPartLeft(C,P);return new E.a(P.lineNumber,P.column,V.lineNumber,V.column)}static _findFirstNonWhitespaceChar(C,S){let P=C.length;for(let V=S;V<P;V++){let k=C.charAt(V);if(k!==" "&&k!==" ")return V}return P}static _deleteWordRightWhitespace(C,S){let P=C.getLineContent(S.lineNumber),V=S.column-1,k=this._findFirstNonWhitespaceChar(P,V);return V+1<k?new E.a(S.lineNumber,S.column,S.lineNumber,k+1):null}static deleteWordRight(C,S,P,V,k){if(!P.isEmpty())return P;let l=new H.a(P.positionLineNumber,P.positionColumn),T=l.lineNumber,N=l.column,b=S.getLineCount(),g=S.getLineMaxColumn(T);if(T===b&&N===g)return null;if(V){let ie=this._deleteWordRightWhitespace(S,l);if(ie)return ie}let j=ge._findNextWordOnLine(C,S,l);return k===2?j?N=j.end+1:N<g||T===b?N=g:(T++,j=ge._findNextWordOnLine(C,S,new H.a(T,1)),N=j?j.start+1:S.getLineMaxColumn(T)):(j&&N>=j.start+1&&(j=ge._findNextWordOnLine(C,S,new H.a(T,j.end+1))),j?N=j.start+1:N<g||T===b?N=g:(T++,j=ge._findNextWordOnLine(C,S,new H.a(T,1)),N=j?j.start+1:S.getLineMaxColumn(T))),new E.a(T,N,l.lineNumber,l.column)}static _deleteWordPartRight(C,S){if(!S.isEmpty())return S;let P=S.getPosition(),V=ge._moveWordPartRight(C,P);return new E.a(P.lineNumber,P.column,V.lineNumber,V.column)}static _createWordAtPosition(C,S,P){let V=new E.a(S,P.start+1,S,P.end+1);return{word:C.getValueInRange(V),startColumn:V.startColumn,endColumn:V.endColumn}}static getWordAtPosition(C,S,P){let V=Object(D.a)(S),k=ge._findPreviousWordOnLine(V,C,P);if(k&&k.wordType===1&&k.start<=P.column-1&&P.column-1<=k.end)return ge._createWordAtPosition(C,P.lineNumber,k);let l=ge._findNextWordOnLine(V,C,P);return l&&l.wordType===1&&l.start<=P.column-1&&P.column-1<=l.end?ge._createWordAtPosition(C,P.lineNumber,l):null}static word(C,S,P,V,k){let l=Object(D.a)(C.wordSeparators),T,N,b=ge._findPreviousWordOnLine(l,S,k),g=ge._findNextWordOnLine(l,S,k);if(!V){let U,q;return b&&b.wordType===1&&b.start<=k.column-1&&k.column-1<=b.end?(U=b.start+1,q=b.end+1):g&&g.wordType===1&&g.start<=k.column-1&&k.column-1<=g.end?(U=g.start+1,q=g.end+1):(U=b?b.end+1:1,q=g?g.start+1:S.getLineMaxColumn(k.lineNumber)),new f.f(new E.a(k.lineNumber,U,k.lineNumber,q),0,new H.a(k.lineNumber,q),0)}b&&b.wordType===1&&b.start<k.column-1&&k.column-1<b.end?(T=b.start+1,N=b.end+1):g&&g.wordType===1&&g.start<k.column-1&&k.column-1<g.end?(T=g.start+1,N=g.end+1):(T=k.column,N=k.column);let j,ie=k.lineNumber;if(P.selectionStart.containsPosition(k))j=P.selectionStart.endColumn;else if(k.isBeforeOrEqual(P.selectionStart.getStartPosition())){j=T;let U=new H.a(ie,j);P.selectionStart.containsPosition(U)&&(j=P.selectionStart.endColumn)}else{j=N;let U=new H.a(ie,j);P.selectionStart.containsPosition(U)&&(j=P.selectionStart.startColumn)}return P.move(!0,ie,j,0)}}class W extends ge{static deleteWordPartLeft(C,S,P,V){let k=Q([ge.deleteWordLeft(C,S,P,V,0),ge.deleteWordLeft(C,S,P,V,2),ge._deleteWordPartLeft(S,P)]);return k.sort(E.a.compareRangesUsingEnds),k[2]}static deleteWordPartRight(C,S,P,V){let k=Q([ge.deleteWordRight(C,S,P,V,0),ge.deleteWordRight(C,S,P,V,2),ge._deleteWordPartRight(S,P)]);return k.sort(E.a.compareRangesUsingStarts),k[0]}static moveWordPartLeft(C,S,P){let V=Q([ge.moveWordLeft(C,S,P,0),ge.moveWordLeft(C,S,P,2),ge._moveWordPartLeft(S,P)]);return V.sort(H.a.compare),V[2]}static moveWordPartRight(C,S,P){let V=Q([ge.moveWordRight(C,S,P,0),ge.moveWordRight(C,S,P,2),ge._moveWordPartRight(S,P)]);return V.sort(H.a.compare),V[0]}}function Q(y){return y.filter(C=>Boolean(C))}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Q});var h=o(8),f=o(22),D=o(3),H=o(21),E=o(39);let ge=Object.create(null);function W(y,C){ge[y]||(ge[y]=["",y]);let S=ge[y];for(let P=S.length;P<=C;P++)S[P]=S[P-1]+y;return S[C]}class Q{constructor(C,S){this._opts=S,this._selection=C,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(C,S,P,V,k){let l=f.a.visibleColumnFromColumn(C,S,P);if(k){let T=W(" ",V);return W(T,f.a.prevIndentTabStop(l,V)/V)}return W(" ",f.a.prevRenderTabStop(l,P)/P)}static shiftIndent(C,S,P,V,k){let l=f.a.visibleColumnFromColumn(C,S,P);if(k){let T=W(" ",V);return W(T,f.a.nextIndentTabStop(l,V)/V)}return W(" ",f.a.nextRenderTabStop(l,P)/P)}_addEditOperation(C,S,P){this._useLastEditRangeForCursorEndPosition?C.addTrackedEditOperation(S,P):C.addEditOperation(S,P)}getEditOperations(C,S){let P=this._selection.startLineNumber,V=this._selection.endLineNumber;this._selection.endColumn===1&&P!==V&&(V-=1);let{tabSize:k,indentSize:l,insertSpaces:T}=this._opts,N=P===V;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(C.getLineContent(P))&&(this._useLastEditRangeForCursorEndPosition=!0);let b=0,g=0;for(let j=P;j<=V;j++,b=g){g=0;let ie,U=C.getLineContent(j),q=h.w(U);if((!this._opts.isUnshift||U.length!==0&&q!==0)&&(N||this._opts.isUnshift||U.length!==0)){if(q===-1&&(q=U.length),j>1&&f.a.visibleColumnFromColumn(U,q+1,k)%l!=0&&C.isCheapToTokenize(j-1)){let B=E.a.getEnterAction(this._opts.autoIndent,C,new D.a(j-1,C.getLineMaxColumn(j-1),j-1,C.getLineMaxColumn(j-1)));if(B){if(g=b,B.appendText)for(let se=0,ke=B.appendText.length;se<ke&&g<l&&B.appendText.charCodeAt(se)===32;se++)g++;B.removeText&&(g=Math.max(0,g-B.removeText));for(let se=0;se<g&&q!==0&&U.charCodeAt(q-1)===32;se++)q--}}this._opts.isUnshift&&q===0||(ie=this._opts.isUnshift?Q.unshiftIndent(U,q+1,k,l,T):Q.shiftIndent(U,q+1,k,l,T),this._addEditOperation(S,new D.a(j,1,j,q+1),ie),j!==P||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=q+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&C.getLineLength(P)===0&&(this._useLastEditRangeForCursorEndPosition=!0);let b=T?W(" ",l):" ";for(let g=P;g<=V;g++){let j=C.getLineContent(g),ie=h.w(j);if((!this._opts.isUnshift||j.length!==0&&ie!==0)&&(N||this._opts.isUnshift||j.length!==0)&&(ie===-1&&(ie=j.length),!this._opts.isUnshift||ie!==0))if(this._opts.isUnshift){ie=Math.min(ie,l);for(let U=0;U<ie;U++)if(j.charCodeAt(U)===9){ie=U+1;break}this._addEditOperation(S,new D.a(g,1,g,ie+1),"")}else this._addEditOperation(S,new D.a(g,1,g,1),b),g!==P||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=S.trackSelection(this._selection)}computeCursorState(C,S){if(this._useLastEditRangeForCursorEndPosition){let V=S.getInverseEditOperations()[0];return new H.a(V.range.endLineNumber,V.range.endColumn,V.range.endLineNumber,V.range.endColumn)}let P=S.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){let V=this._selection.startColumn;return P.startColumn<=V?P:P.getDirection()===0?new H.a(P.startLineNumber,V,P.endLineNumber,P.endColumn):new H.a(P.endLineNumber,P.endColumn,P.startLineNumber,V)}return P}}},,function(Ie,w,o){"use strict";o.d(w,"c",function(){return E}),o.d(w,"d",function(){return ge}),o.d(w,"a",function(){return W}),o.d(w,"b",function(){return Q});var h=o(8),f=o(11),D=o(72);let H;function E(){return H||(H=new TextDecoder(f.e()?"UTF-16LE":"UTF-16BE")),H}let ge=typeof TextDecoder!="undefined",W,Q;ge?(W=S=>new y(S),Q=function(S,P,V){let k=new Uint16Array(S.buffer,P,V);return E().decode(k)}):(W=S=>new C,Q=function(S,P,V){let k=[],l=0;for(let T=0;T<V;T++){let N=D.b(S,P);P+=2,k[l++]=String.fromCharCode(N)}return k.join("")});class y{constructor(P){this._capacity=0|P,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";let P=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return E().decode(P)}_flushBuffer(){let P=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[P]:this._completedStrings[this._completedStrings.length]=P}write1(P){let V=this._capacity-this._bufferLength;V<=1&&(V===0||h.F(P))&&this._flushBuffer(),this._buffer[this._bufferLength++]=P}appendASCII(P){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=P}appendASCIIString(P){let V=P.length;if(this._bufferLength+V>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=P);for(let k=0;k<V;k++)this._buffer[this._bufferLength++]=P.charCodeAt(k)}}class C{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(P){this._pieces[this._piecesLen++]=String.fromCharCode(P)}appendASCII(P){this._pieces[this._piecesLen++]=String.fromCharCode(P)}appendASCIIString(P){this._pieces[this._piecesLen++]=P}}},function(Ie,w,o){"use strict";function h(f){let D=this,H,E=!1;return function(){return E||(E=!0,H=f.apply(D,arguments)),H}}o.d(w,"a",function(){return h})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"b",function(){return E});var h,f=o(56),D=o(15),H=o(2);(function(ge){ge[ge.PRESERVE=0]="PRESERVE",ge[ge.LAST=1]="LAST"})(h||(h={}));let E={Quickaccess:"workbench.contributions.quickaccess"};f.a.add(E.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(ge){return ge.prefix.length===0?this.defaultProvider=ge:this.providers.push(ge),this.providers.sort((W,Q)=>Q.prefix.length-W.prefix.length),Object(H.h)(()=>{this.providers.splice(this.providers.indexOf(ge),1),this.defaultProvider===ge&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(D.d)([this.defaultProvider,...this.providers])}getQuickAccessProvider(ge){return ge&&this.providers.find(W=>ge.startsWith(W.prefix))||void 0||this.defaultProvider}})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(6);let f=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new h.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(D){D=Math.min(Math.max(-5,D),20),this._zoomLevel!==D&&(this._zoomLevel=D,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return xn}),o.d(w,"b",function(){return un}),o.d(w,"e",function(){return Mn}),o.d(w,"d",function(){return _e}),o.d(w,"c",function(){return jt});var h=o(1),f=(o(197),o(2)),D=o(15),H=o(113),E=o(6),ge=o(25);class W{constructor(X,ae){this.renderer=X,this.modelProvider=ae}get templateId(){return this.renderer.templateId}renderTemplate(X){return{data:this.renderer.renderTemplate(X),disposable:f.a.None}}renderElement(X,ae,Ge,lt){if(Ge.disposable&&Ge.disposable.dispose(),!Ge.data)return;let Dt=this.modelProvider();if(Dt.isResolved(X))return this.renderer.renderElement(Dt.get(X),X,Ge.data,lt);let Gt=new ge.b,ti=Dt.resolve(X,Gt.token);Ge.disposable={dispose:()=>Gt.cancel()},this.renderer.renderPlaceholder(X,Ge.data),ti.then(ye=>this.renderer.renderElement(ye,X,Ge.data,lt))}disposeTemplate(X){X.disposable&&(X.disposable.dispose(),X.disposable=void 0),X.data&&(this.renderer.disposeTemplate(X.data),X.data=void 0)}}class Q{constructor(X,ae){this.modelProvider=X,this.accessibilityProvider=ae}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(X){let ae=this.modelProvider();return ae.isResolved(X)?this.accessibilityProvider.getAriaLabel(ae.get(X)):null}}var y=o(0),C=o(54),S=o(128),P=o(10),V=o(18),k=o(50),l=o(56),T=o(93),N=o(19),b,g=o(37),j=(o(264),o(67));(function(ft){ft[ft.Unknown=0]="Unknown",ft[ft.Twistie=1]="Twistie",ft[ft.Element=2]="Element"})(b||(b={}));class ie extends Error{constructor(X,ae){super(`TreeError [${X}] ${ae}`)}}class U{constructor(X){this.fn=X,this._map=new WeakMap}map(X){let ae=this._map.get(X);return ae||(ae=this.fn(X),this._map.set(X,ae)),ae}}var q=o(125),B=o(162),se=o(44),ke=o(71);function xe(ft){return typeof ft=="object"&&"visibility"in ft&&"data"in ft}function Y(ft){switch(ft){case!0:return 1;case!1:return 0;default:return ft}}function Z(ft){return typeof ft.collapsible=="boolean"}class te{constructor(X,ae,Ge,lt={}){this.user=X,this.list=ae,this.rootRef=[],this.eventBufferer=new E.c,this._onDidChangeCollapseState=new E.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new E.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new E.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=lt.collapseByDefault!==void 0&<.collapseByDefault,this.filter=lt.filter,this.autoExpandSingleChildren=lt.autoExpandSingleChildren!==void 0&<.autoExpandSingleChildren,this.root={parent:void 0,element:Ge,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(X,ae,Ge=g.a.empty(),lt,Dt){if(X.length===0)throw new ie(this.user,"Invalid tree location");let{parentNode:Gt,listIndex:ti,revealed:ye,visible:le}=this.getParentNodeWithListIndex(X),ue=[],qe=g.a.map(Ge,fi=>this.createTreeNode(fi,Gt,Gt.visible?1:0,ye,ue,lt)),Ze=X[X.length-1],tt=0;for(let fi=Ze;fi>=0&&fi<Gt.children.length;fi--){let ui=Gt.children[fi];if(ui.visible){tt=ui.visibleChildIndex;break}}let rt=[],zt=0,Jt=0;for(let fi of qe)rt.push(fi),Jt+=fi.renderNodeCount,fi.visible&&(fi.visibleChildIndex=tt+zt++);let xi=Gt.children.splice(Ze,ae,...rt),Ei=0;for(let fi of xi)fi.visible&&Ei++;if(Ei!==0)for(let fi=Ze+rt.length;fi<Gt.children.length;fi++){let ui=Gt.children[fi];ui.visible&&(ui.visibleChildIndex-=Ei)}if(Gt.visibleChildrenCount+=zt-Ei,ye&&le){let fi=xi.reduce((ui,Te)=>ui+(Te.visible?Te.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(Gt,Jt-fi),this.list.splice(ti,fi,ue)}if(xi.length>0&&Dt){let fi=ui=>{Dt(ui),ui.children.forEach(fi)};xi.forEach(fi)}this._onDidSplice.fire({insertedNodes:rt,deletedNodes:xi});let ai=Gt;for(;ai;){if(ai.visibility===2){this.refilter();break}ai=ai.parent}}rerender(X){if(X.length===0)throw new ie(this.user,"Invalid tree location");let{node:ae,listIndex:Ge,revealed:lt}=this.getTreeNodeWithListIndex(X);ae.visible&<&&this.list.splice(Ge,1,[ae])}has(X){return this.hasTreeNode(X)}getListIndex(X){let{listIndex:ae,visible:Ge,revealed:lt}=this.getTreeNodeWithListIndex(X);return Ge&<?ae:-1}getListRenderCount(X){return this.getTreeNode(X).renderNodeCount}isCollapsible(X){return this.getTreeNode(X).collapsible}setCollapsible(X,ae){let Ge=this.getTreeNode(X);ae===void 0&&(ae=!Ge.collapsible);let lt={collapsible:ae};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(X,lt))}isCollapsed(X){return this.getTreeNode(X).collapsed}setCollapsed(X,ae,Ge){let lt=this.getTreeNode(X);ae===void 0&&(ae=!lt.collapsed);let Dt={collapsed:ae,recursive:Ge||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(X,Dt))}_setCollapseState(X,ae){let{node:Ge,listIndex:lt,revealed:Dt}=this.getTreeNodeWithListIndex(X),Gt=this._setListNodeCollapseState(Ge,lt,Dt,ae);if(Ge!==this.root&&this.autoExpandSingleChildren&&Gt&&!Z(ae)&&Ge.collapsible&&!Ge.collapsed&&!ae.recursive){let ti=-1;for(let ye=0;ye<Ge.children.length;ye++)if(Ge.children[ye].visible){if(ti>-1){ti=-1;break}ti=ye}ti>-1&&this._setCollapseState([...X,ti],ae)}return Gt}_setListNodeCollapseState(X,ae,Ge,lt){let Dt=this._setNodeCollapseState(X,lt,!1);if(!Ge||!X.visible||!Dt)return Dt;let Gt=X.renderNodeCount,ti=this.updateNodeAfterCollapseChange(X),ye=Gt-(ae===-1?0:1);return this.list.splice(ae+1,ye,ti.slice(1)),Dt}_setNodeCollapseState(X,ae,Ge){let lt;if(X===this.root?lt=!1:(Z(ae)?(lt=X.collapsible!==ae.collapsible,X.collapsible=ae.collapsible):X.collapsible?(lt=X.collapsed!==ae.collapsed,X.collapsed=ae.collapsed):lt=!1,lt&&this._onDidChangeCollapseState.fire({node:X,deep:Ge})),!Z(ae)&&ae.recursive)for(let Dt of X.children)lt=this._setNodeCollapseState(Dt,ae,!0)||lt;return lt}expandTo(X){this.eventBufferer.bufferEvents(()=>{let ae=this.getTreeNode(X);for(;ae.parent;)ae=ae.parent,X=X.slice(0,X.length-1),ae.collapsed&&this._setCollapseState(X,{collapsed:!1,recursive:!1})})}refilter(){let X=this.root.renderNodeCount,ae=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,X,ae)}createTreeNode(X,ae,Ge,lt,Dt,Gt){let ti={parent:ae,element:X.element,children:[],depth:ae.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof X.collapsible=="boolean"?X.collapsible:X.collapsed!==void 0,collapsed:X.collapsed===void 0?this.collapseByDefault:X.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},ye=this._filterNode(ti,Ge);ti.visibility=ye,lt&&Dt.push(ti);let le=X.children||g.a.empty(),ue=lt&&ye!==0&&!ti.collapsed,qe=g.a.map(le,rt=>this.createTreeNode(rt,ti,ye,ue,Dt,Gt)),Ze=0,tt=1;for(let rt of qe)ti.children.push(rt),tt+=rt.renderNodeCount,rt.visible&&(rt.visibleChildIndex=Ze++);return ti.collapsible=ti.collapsible||ti.children.length>0,ti.visibleChildrenCount=Ze,ti.visible=ye===2?Ze>0:ye===1,ti.visible?ti.collapsed||(ti.renderNodeCount=tt):(ti.renderNodeCount=0,lt&&Dt.pop()),Gt&&Gt(ti),ti}updateNodeAfterCollapseChange(X){let ae=X.renderNodeCount,Ge=[];return this._updateNodeAfterCollapseChange(X,Ge),this._updateAncestorsRenderNodeCount(X.parent,Ge.length-ae),Ge}_updateNodeAfterCollapseChange(X,ae){if(X.visible===!1)return 0;if(ae.push(X),X.renderNodeCount=1,!X.collapsed)for(let Ge of X.children)X.renderNodeCount+=this._updateNodeAfterCollapseChange(Ge,ae);return this._onDidChangeRenderNodeCount.fire(X),X.renderNodeCount}updateNodeAfterFilterChange(X){let ae=X.renderNodeCount,Ge=[];return this._updateNodeAfterFilterChange(X,X.visible?1:0,Ge),this._updateAncestorsRenderNodeCount(X.parent,Ge.length-ae),Ge}_updateNodeAfterFilterChange(X,ae,Ge,lt=!0){let Dt;if(X!==this.root){if(Dt=this._filterNode(X,ae),Dt===0)return X.visible=!1,X.renderNodeCount=0,!1;lt&&Ge.push(X)}let Gt=Ge.length;X.renderNodeCount=X===this.root?0:1;let ti=!1;if(X.collapsed&&Dt===0)X.visibleChildrenCount=0;else{let ye=0;for(let le of X.children)ti=this._updateNodeAfterFilterChange(le,Dt,Ge,lt&&!X.collapsed)||ti,le.visible&&(le.visibleChildIndex=ye++);X.visibleChildrenCount=ye}return X!==this.root&&(X.visible=Dt===2?ti:Dt===1),X.visible?X.collapsed||(X.renderNodeCount+=Ge.length-Gt):(X.renderNodeCount=0,lt&&Ge.pop()),this._onDidChangeRenderNodeCount.fire(X),X.visible}_updateAncestorsRenderNodeCount(X,ae){if(ae!==0)for(;X;)X.renderNodeCount+=ae,this._onDidChangeRenderNodeCount.fire(X),X=X.parent}_filterNode(X,ae){let Ge=this.filter?this.filter.filter(X.element,ae):1;return typeof Ge=="boolean"?(X.filterData=void 0,Ge?1:0):xe(Ge)?(X.filterData=Ge.data,Y(Ge.visibility)):(X.filterData=void 0,Y(Ge))}hasTreeNode(X,ae=this.root){if(!X||X.length===0)return!0;let[Ge,...lt]=X;return!(Ge<0||Ge>ae.children.length)&&this.hasTreeNode(lt,ae.children[Ge])}getTreeNode(X,ae=this.root){if(!X||X.length===0)return ae;let[Ge,...lt]=X;if(Ge<0||Ge>ae.children.length)throw new ie(this.user,"Invalid tree location");return this.getTreeNode(lt,ae.children[Ge])}getTreeNodeWithListIndex(X){if(X.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:ae,listIndex:Ge,revealed:lt,visible:Dt}=this.getParentNodeWithListIndex(X),Gt=X[X.length-1];if(Gt<0||Gt>ae.children.length)throw new ie(this.user,"Invalid tree location");let ti=ae.children[Gt];return{node:ti,listIndex:Ge,revealed:lt,visible:Dt&&ti.visible}}getParentNodeWithListIndex(X,ae=this.root,Ge=0,lt=!0,Dt=!0){let[Gt,...ti]=X;if(Gt<0||Gt>ae.children.length)throw new ie(this.user,"Invalid tree location");for(let ye=0;ye<Gt;ye++)Ge+=ae.children[ye].renderNodeCount;return lt=lt&&!ae.collapsed,Dt=Dt&&ae.visible,ti.length===0?{parentNode:ae,listIndex:Ge,revealed:lt,visible:Dt}:this.getParentNodeWithListIndex(ti,ae.children[Gt],Ge+1,lt,Dt)}getNode(X=[]){return this.getTreeNode(X)}getNodeLocation(X){let ae=[],Ge=X;for(;Ge.parent;)ae.push(Ge.parent.children.indexOf(Ge)),Ge=Ge.parent;return ae.reverse()}getParentNodeLocation(X){return X.length===0?void 0:X.length===1?[]:Object(D.u)(X)[0]}}var he=o(20),Ce=o(11),Ae=o(118),L=o(189),nt=o(17);let ct=Object(nt.e)("tree-item-expanded",nt.a.chevronDown),Ye=Object(nt.e)("tree-filter-on-type-on",nt.a.listFilter),ht=Object(nt.e)("tree-filter-on-type-off",nt.a.listSelection),fe=Object(nt.e)("tree-filter-clear",nt.a.close),$=Object(nt.e)("tree-item-loading",nt.a.loading);class G extends B.a{constructor(X){super(X.elements.map(ae=>ae.element)),this.data=X}}function z(ft){return ft instanceof B.a?new G(ft):ft}class J{constructor(X,ae){this.modelProvider=X,this.dnd=ae,this.autoExpandDisposable=f.a.None}getDragURI(X){return this.dnd.getDragURI(X.element)}getDragLabel(X,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(X.map(Ge=>Ge.element),ae)}onDragStart(X,ae){this.dnd.onDragStart&&this.dnd.onDragStart(z(X),ae)}onDragOver(X,ae,Ge,lt,Dt=!0){let Gt=this.dnd.onDragOver(z(X),ae&&ae.element,Ge,lt),ti=this.autoExpandNode!==ae;if(ti&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ae),ae===void 0)return Gt;if(ti&&typeof Gt!="boolean"&&Gt.autoExpand&&(this.autoExpandDisposable=Object(he.g)(()=>{let Ze=this.modelProvider(),tt=Ze.getNodeLocation(ae);Ze.isCollapsed(tt)&&Ze.setCollapsed(tt,!1),this.autoExpandNode=void 0},500)),typeof Gt=="boolean"||!Gt.accept||Gt.bubble===void 0||Gt.feedback)return Dt?Gt:{accept:typeof Gt=="boolean"?Gt:Gt.accept,effect:typeof Gt=="boolean"?void 0:Gt.effect,feedback:[Ge]};if(Gt.bubble===1){let Ze=this.modelProvider(),tt=Ze.getNodeLocation(ae),rt=Ze.getParentNodeLocation(tt),zt=Ze.getNode(rt),Jt=rt&&Ze.getListIndex(rt);return this.onDragOver(X,zt,Jt,lt,!1)}let ye=this.modelProvider(),le=ye.getNodeLocation(ae),ue=ye.getListIndex(le),qe=ye.getListRenderCount(le);return Object.assign(Object.assign({},Gt),{feedback:Object(D.s)(ue,ue+qe)})}drop(X,ae,Ge,lt){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(z(X),ae&&ae.element,Ge,lt)}onDragEnd(X){this.dnd.onDragEnd&&this.dnd.onDragEnd(X)}}class Se{constructor(X){this.delegate=X}getHeight(X){return this.delegate.getHeight(X.element)}getTemplateId(X){return this.delegate.getTemplateId(X.element)}hasDynamicHeight(X){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(X.element)}setDynamicHeight(X,ae){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(X.element,ae)}}var A;(function(ft){ft.None="none",ft.OnHover="onHover",ft.Always="always"})(A||(A={}));class ee{constructor(X,ae=[]){this._elements=ae,this.onDidChange=E.b.forEach(X,Ge=>this._elements=Ge)}get elements(){return this._elements}}class de{constructor(X,ae,Ge,lt,Dt={}){this.renderer=X,this.modelProvider=ae,this.activeNodes=lt,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=de.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new L.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=f.a.None,this.disposables=new f.b,this.templateId=X.templateId,this.updateOptions(Dt),E.b.map(Ge,Gt=>Gt.node)(this.onDidChangeNodeTwistieState,this,this.disposables),X.onDidChangeTwistieState&&X.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(X={}){if(X.indent!==void 0&&(this.indent=Object(Ae.b)(X.indent,0,40)),X.renderIndentGuides!==void 0){let ae=X.renderIndentGuides!==A.None;if(ae!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ae,this.indentGuidesDisposable.dispose(),ae)){let Ge=new f.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,Ge),this.indentGuidesDisposable=Ge,this._onDidChangeActiveNodes(this.activeNodes.elements)}}X.hideTwistiesOfChildlessElements!==void 0&&(this.hideTwistiesOfChildlessElements=X.hideTwistiesOfChildlessElements)}renderTemplate(X){let ae=Object(h.p)(X,Object(h.a)(".monaco-tl-row")),Ge=Object(h.p)(ae,Object(h.a)(".monaco-tl-indent")),lt=Object(h.p)(ae,Object(h.a)(".monaco-tl-twistie")),Dt=Object(h.p)(ae,Object(h.a)(".monaco-tl-contents")),Gt=this.renderer.renderTemplate(Dt);return{container:X,indent:Ge,twistie:lt,indentGuidesDisposable:f.a.None,templateData:Gt}}renderElement(X,ae,Ge,lt){typeof lt=="number"&&(this.renderedNodes.set(X,{templateData:Ge,height:lt}),this.renderedElements.set(X.element,X));let Dt=de.DefaultIndent+(X.depth-1)*this.indent;Ge.twistie.style.paddingLeft=Dt+"px",Ge.indent.style.width=Dt+this.indent-16+"px",this.renderTwistie(X,Ge),typeof lt=="number"&&this.renderIndentGuides(X,Ge),this.renderer.renderElement(X,ae,Ge.templateData,lt)}disposeElement(X,ae,Ge,lt){Ge.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(X,ae,Ge.templateData,lt),typeof lt=="number"&&(this.renderedNodes.delete(X),this.renderedElements.delete(X.element))}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}onDidChangeTwistieState(X){let ae=this.renderedElements.get(X);ae&&this.onDidChangeNodeTwistieState(ae)}onDidChangeNodeTwistieState(X){let ae=this.renderedNodes.get(X);ae&&(this.renderTwistie(X,ae.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(X,ae.templateData))}renderTwistie(X,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(X.element,ae.twistie),X.collapsible&&(!this.hideTwistiesOfChildlessElements||X.visibleChildrenCount>0)?(Object(h.f)(ae.twistie,ct.classNames,"collapsible"),Object(h.ab)(ae.twistie,"collapsed",X.collapsed)):Object(h.R)(ae.twistie,ct.classNames,"collapsible","collapsed"),X.collapsible?ae.container.setAttribute("aria-expanded",String(!X.collapsed)):ae.container.removeAttribute("aria-expanded")}renderIndentGuides(X,ae){if(Object(h.s)(ae.indent),ae.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let Ge=new f.b,lt=this.modelProvider(),Dt=X;for(;;){let Gt=lt.getNodeLocation(Dt),ti=lt.getParentNodeLocation(Gt);if(!ti)break;let ye=lt.getNode(ti),le=Object(h.a)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(ye)&&Object(h.e)(le,"active"),ae.indent.childElementCount===0?ae.indent.appendChild(le):ae.indent.insertBefore(le,ae.indent.firstElementChild),this.renderedIndentGuides.add(ye,le),Ge.add(Object(f.h)(()=>this.renderedIndentGuides.delete(ye,le))),Dt=ye}ae.indentGuidesDisposable=Ge}_onDidChangeActiveNodes(X){if(!this.shouldRenderIndentGuides)return;let ae=new Set,Ge=this.modelProvider();X.forEach(lt=>{let Dt=Ge.getNodeLocation(lt);try{let Gt=Ge.getParentNodeLocation(Dt);lt.collapsible&<.children.length>0&&!lt.collapsed?ae.add(lt):Gt&&ae.add(Ge.getNode(Gt))}catch(Gt){}}),this.activeIndentNodes.forEach(lt=>{ae.has(lt)||this.renderedIndentGuides.forEach(lt,Dt=>Object(h.Q)(Dt,"active"))}),ae.forEach(lt=>{this.activeIndentNodes.has(lt)||this.renderedIndentGuides.forEach(lt,Dt=>Object(h.e)(Dt,"active"))}),this.activeIndentNodes=ae}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(f.f)(this.disposables)}}de.DefaultIndent=8;class Oe{constructor(X,ae,Ge){this.tree=X,this.keyboardNavigationLabelProvider=ae,this._filter=Ge,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new f.b,X.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(X){this._pattern=X,this._lowercasePattern=X.toLowerCase()}filter(X,ae){if(this._filter){let Gt=this._filter.filter(X,ae);if(this.tree.options.simpleKeyboardNavigation)return Gt;let ti;if(ti=typeof Gt=="boolean"?Gt?1:0:xe(Gt)?Y(Gt.visibility):Gt,ti===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:ke.a.Default,visibility:!0};let Ge=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(X),lt=Ge&&Ge.toString();if(lt===void 0)return{data:ke.a.Default,visibility:!0};let Dt=Object(ke.d)(this._pattern,this._lowercasePattern,0,lt,lt.toLowerCase(),0,!0);return Dt?(this._matchCount++,{data:Dt,visibility:!0}):this.tree.options.filterOnType?2:{data:ke.a.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(f.f)(this.disposables)}}class $e{constructor(X,ae,Ge,lt,Dt){this.tree=X,this.view=Ge,this.filter=lt,this.keyboardNavigationDelegate=Dt,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new E.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new E.a,this.enabledDisposables=new f.b,this.disposables=new f.b,this.domNode=Object(h.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(se.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(h.p)(Ge.getHTMLElement(),Object(h.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(h.p)(this.domNode,Object(h.a)("span.label"));let Gt=Object(h.p)(this.domNode,Object(h.a)(".controls"));this._filterOnType=!!X.options.filterOnType,this.filterOnTypeDomNode=Object(h.p)(Gt,Object(h.a)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),Object(se.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(h.p)(Gt,Object(h.a)("button.clear"+fe.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(y.a)("clear","Clear"),this.keyboardNavigationEventFilter=X.options.keyboardNavigationEventFilter,ae.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(X.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(X){X.simpleKeyboardNavigation?this.disable():this.enable(),X.filterOnType!==void 0&&(this._filterOnType=!!X.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),X.automaticKeyboardNavigation!==void 0&&(this.automaticKeyboardNavigation=X.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;let X=E.b.chain(Object(se.a)(this.view.getHTMLElement(),"keydown")).filter(Ge=>!Object(H.e)(Ge.target)||Ge.target===this.filterOnTypeDomNode).filter(Ge=>Ge.key!=="Dead"&&!/^Media/.test(Ge.key)).map(Ge=>new j.a(Ge)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(Ge=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(Ge)&&!(Ge.keyCode===18||Ge.keyCode===16||Ge.keyCode===15||Ge.keyCode===17)||(this.pattern.length>0||this.triggered)&&(Ge.keyCode===9||Ge.keyCode===1)&&!Ge.altKey&&!Ge.ctrlKey&&!Ge.metaKey||Ge.keyCode===1&&(Ce.f?Ge.altKey&&!Ge.metaKey:Ge.ctrlKey)&&!Ge.shiftKey).forEach(Ge=>{Ge.stopPropagation(),Ge.preventDefault()}).event,ae=Object(se.a)(this.clearDomNode,"click");E.b.chain(E.b.any(X,ae)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(X){typeof X=="string"?this.onInput(X):X instanceof MouseEvent||X.keyCode===9||X.keyCode===1&&(Ce.f?X.altKey:X.ctrlKey)?this.onInput(""):X.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+X.browserEvent.key)}onInput(X){let ae=this.view.getHTMLElement();X&&!this.domNode.parentElement?ae.append(this.domNode):!X&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=X,this._onDidChangePattern.fire(X),this.filter.pattern=X,this.tree.refilter(),X&&this.tree.focusNext(0,!0,void 0,lt=>!ke.a.isDefault(lt.filterData));let Ge=this.tree.getFocus();if(Ge.length>0){let lt=Ge[0];this.tree.getRelativeTop(lt)===null&&this.tree.reveal(lt,.5)}this.render(),X||(this.triggered=!1)}onDragStart(){let X=this.view.getHTMLElement(),{left:ae}=Object(h.C)(X),Ge=X.clientWidth,lt=Ge/2,Dt=this.domNode.clientWidth,Gt=new f.b,ti=this.positionClassName,ye=()=>{switch(ti){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=Ge-Dt-6+"px"}};ye(),Object(h.Q)(this.domNode,ti),Object(h.e)(this.domNode,"dragging"),Gt.add(Object(f.h)(()=>Object(h.Q)(this.domNode,"dragging"))),Object(se.a)(document,"dragover")(le=>{le.preventDefault();let ue=le.screenX-ae;le.dataTransfer&&(le.dataTransfer.dropEffect="none"),ti=ue<lt?"nw":"ne",ye()},null,Gt),Object(se.a)(this.domNode,"dragend")(()=>{this.positionClassName=ti,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Object(f.f)(Gt)},null,Gt),q.c.CurrentDragAndDropData=new q.b("vscode-ui"),Gt.add(Object(f.h)(()=>q.c.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&this.pattern.length!==0&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(Object(h.R)(this.filterOnTypeDomNode,ht.classNames),Object(h.f)(this.filterOnTypeDomNode,Ye.classNames),this.filterOnTypeDomNode.title=Object(y.a)("disable filter on type","Disable Filter on Type")):(Object(h.R)(this.filterOnTypeDomNode,Ye.classNames),Object(h.f)(this.filterOnTypeDomNode,ht.classNames),this.filterOnTypeDomNode.title=Object(y.a)("enable filter on type","Enable Filter on Type"))}render(){let X=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&X?(this.messageDomNode.textContent=Object(y.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),Object(h.ab)(this.domNode,"no-matches",X),this.domNode.title=Object(y.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(X){return!(this.enabled&&this.pattern&&!this.filterOnType)||this.filter.totalCount>0&&this.filter.matchCount<=1||!ke.a.isDefault(X.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(f.f)(this.disposables)}}function pt(ft){let X=b.Unknown;return Object(h.J)(ft.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?X=b.Twistie:Object(h.J)(ft.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(X=b.Element),{browserEvent:ft.browserEvent,element:ft.element?ft.element.element:null,target:X}}function it(ft,X){X(ft),ft.children.forEach(ae=>it(ae,X))}class At{constructor(X){this.identityProvider=X,this.nodes=[],this._onDidChange=new E.a,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(X,ae){Object(D.g)(this.nodes,X)||this._set(X,!1,ae)}_set(X,ae,Ge){if(this.nodes=[...X],this.elements=void 0,this._nodeSet=void 0,!ae){let lt=this;this._onDidChange.fire({get elements(){return lt.get()},browserEvent:Ge})}}get(){return this.elements||(this.elements=this.nodes.map(X=>X.element)),[...this.elements]}getNodes(){return this.nodes}has(X){return this.nodeSet.has(X)}onDidModelSplice({insertedNodes:X,deletedNodes:ae}){if(!this.identityProvider){let ye=this.createNodeSet(),le=ue=>ye.delete(ue);return ae.forEach(ue=>it(ue,le)),void this.set([...ye.values()])}let Ge=new Set,lt=ye=>Ge.add(this.identityProvider.getId(ye.element).toString());ae.forEach(ye=>it(ye,lt));let Dt=new Map,Gt=ye=>Dt.set(this.identityProvider.getId(ye.element).toString(),ye);X.forEach(ye=>it(ye,Gt));let ti=[];for(let ye of this.nodes){let le=this.identityProvider.getId(ye.element).toString();if(Ge.has(le)){let ue=Dt.get(le);ue&&ti.push(ue)}else ti.push(ye)}this._set(ti,!0)}createNodeSet(){let X=new Set;for(let ae of this.nodes)X.add(ae);return X}}class Nt extends H.d{constructor(X,ae){super(X),this.tree=ae}onViewPointer(X){if(Object(H.e)(X.browserEvent.target)||Object(H.f)(X.browserEvent.target))return;let ae=X.element;if(!ae)return super.onViewPointer(X);if(this.isSelectionRangeChangeEvent(X)||this.isSelectionSingleChangeEvent(X))return super.onViewPointer(X);let Ge=X.browserEvent.target,lt=Object(h.I)(Ge,"monaco-tl-twistie")||Object(h.I)(Ge,"monaco-icon-label")&&Object(h.I)(Ge,"folder-icon")&&X.browserEvent.offsetX<16,Dt=!1;if(Dt=typeof this.tree.expandOnlyOnTwistieClick=="function"?this.tree.expandOnlyOnTwistieClick(ae.element):!!this.tree.expandOnlyOnTwistieClick,Dt&&!lt)return super.onViewPointer(X);if(this.tree.expandOnlyOnDoubleClick&&X.browserEvent.detail!==2&&!lt)return super.onViewPointer(X);if(ae.collapsible){let Gt=this.tree.model,ti=Gt.getNodeLocation(ae),ye=X.browserEvent.altKey;if(Gt.setCollapsed(ti,void 0,ye),Dt&<)return}super.onViewPointer(X)}onDoubleClick(X){Object(h.I)(X.browserEvent.target,"monaco-tl-twistie")||super.onDoubleClick(X)}}class _i extends H.c{constructor(X,ae,Ge,lt,Dt,Gt,ti){super(X,ae,Ge,lt,ti),this.focusTrait=Dt,this.selectionTrait=Gt}createMouseController(X){return new Nt(this,X.tree)}splice(X,ae,Ge=[]){if(super.splice(X,ae,Ge),Ge.length===0)return;let lt=[],Dt=[];Ge.forEach((Gt,ti)=>{this.focusTrait.has(Gt)&<.push(X+ti),this.selectionTrait.has(Gt)&&Dt.push(X+ti)}),lt.length>0&&super.setFocus(Object(D.f)([...super.getFocus(),...lt])),Dt.length>0&&super.setSelection(Object(D.f)([...super.getSelection(),...Dt]))}setFocus(X,ae,Ge=!1){super.setFocus(X,ae),Ge||this.focusTrait.set(X.map(lt=>this.element(lt)),ae)}setSelection(X,ae,Ge=!1){super.setSelection(X,ae),Ge||this.selectionTrait.set(X.map(lt=>this.element(lt)),ae)}}class wt{constructor(X,ae,Ge,lt,Dt={}){this._options=Dt,this.eventBufferer=new E.c,this.disposables=new f.b,this._onWillRefilter=new E.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new E.a;let Gt=new Se(Ge),ti=new E.e,ye=new E.e,le=new ee(ye.event);this.renderers=lt.map(rt=>new de(rt,()=>this.model,ti.event,le,Dt));for(let rt of this.renderers)this.disposables.add(rt);let ue;var qe,Ze;Dt.keyboardNavigationLabelProvider&&(ue=new Oe(this,Dt.keyboardNavigationLabelProvider,Dt.filter),Dt=Object.assign(Object.assign({},Dt),{filter:ue}),this.disposables.add(ue)),this.focus=new At(Dt.identityProvider),this.selection=new At(Dt.identityProvider),this.view=new _i(X,ae,Gt,this.renderers,this.focus,this.selection,Object.assign(Object.assign({},(qe=()=>this.model,(Ze=Dt)&&Object.assign(Object.assign({},Ze),{identityProvider:Ze.identityProvider&&{getId:rt=>Ze.identityProvider.getId(rt.element)},dnd:Ze.dnd&&new J(qe,Ze.dnd),multipleSelectionController:Ze.multipleSelectionController&&{isSelectionSingleChangeEvent:rt=>Ze.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},rt),{element:rt.element})),isSelectionRangeChangeEvent:rt=>Ze.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},rt),{element:rt.element}))},accessibilityProvider:Ze.accessibilityProvider&&Object.assign(Object.assign({},Ze.accessibilityProvider),{getSetSize(rt){let zt=qe(),Jt=zt.getNodeLocation(rt),xi=zt.getParentNodeLocation(Jt);return zt.getNode(xi).visibleChildrenCount},getPosInSet:rt=>rt.visibleChildIndex+1,isChecked:Ze.accessibilityProvider&&Ze.accessibilityProvider.isChecked?rt=>Ze.accessibilityProvider.isChecked(rt.element):void 0,getRole:Ze.accessibilityProvider&&Ze.accessibilityProvider.getRole?rt=>Ze.accessibilityProvider.getRole(rt.element):()=>"treeitem",getAriaLabel:rt=>Ze.accessibilityProvider.getAriaLabel(rt.element),getWidgetAriaLabel:()=>Ze.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:Ze.accessibilityProvider&&Ze.accessibilityProvider.getWidgetRole?()=>Ze.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:rt=>rt.depth,getActiveDescendantId:Ze.accessibilityProvider.getActiveDescendantId&&(rt=>Ze.accessibilityProvider.getActiveDescendantId(rt.element))}),keyboardNavigationLabelProvider:Ze.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},Ze.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:rt=>Ze.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(rt.element)}),enableKeyboardNavigation:Ze.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(X,this.view,Dt),ti.input=this.model.onDidChangeCollapseState;let tt=E.b.forEach(this.model.onDidSplice,rt=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(rt),this.selection.onDidModelSplice(rt)})});if(tt(()=>null,null,this.disposables),ye.input=E.b.chain(E.b.any(tt,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{let rt=new Set;for(let zt of this.focus.getNodes())rt.add(zt);for(let zt of this.selection.getNodes())rt.add(zt);return[...rt.values()]}).event,Dt.keyboardSupport!==!1){let rt=E.b.chain(this.view.onKeyDown).filter(zt=>!Object(H.e)(zt.target)).map(zt=>new j.a(zt));rt.filter(zt=>zt.keyCode===15).on(this.onLeftArrow,this,this.disposables),rt.filter(zt=>zt.keyCode===17).on(this.onRightArrow,this,this.disposables),rt.filter(zt=>zt.keyCode===10).on(this.onSpace,this,this.disposables)}if(Dt.keyboardNavigationLabelProvider){let rt=Dt.keyboardNavigationDelegate||H.a;this.typeFilterController=new $e(this,this.model,this.view,ue,rt),this.focusNavigationFilter=zt=>this.typeFilterController.shouldAllowFocus(zt),this.disposables.add(this.typeFilterController)}this.styleElement=Object(h.v)(this.view.getHTMLElement()),Object(h.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===A.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return E.b.map(this.view.onMouseDblClick,pt)}get onPointer(){return E.b.map(this.view.onPointer,pt)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnlyOnDoubleClick(){var X;return(X=this._options.expandOnlyOnDoubleClick)!==null&&X!==void 0&&X}get expandOnlyOnTwistieClick(){return this._options.expandOnlyOnTwistieClick!==void 0&&this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(X={}){this._options=Object.assign(Object.assign({},this._options),X);for(let ae of this.renderers)ae.updateOptions(X);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation,smoothScrolling:this._options.smoothScrolling,horizontalScrolling:this._options.horizontalScrolling}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(h.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===A.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(X){this.view.scrollTop=X}domFocus(){this.view.domFocus()}layout(X,ae){this.view.layout(X,ae)}style(X){let ae="."+this.view.domId,Ge=[];X.treeIndentGuidesStroke&&(Ge.push(`.monaco-list${ae}:hover .monaco-tl-indent > .indent-guide, .monaco-list${ae}.always .monaco-tl-indent > .indent-guide { border-color: ${X.treeIndentGuidesStroke.transparent(.4)}; }`),Ge.push(`.monaco-list${ae} .monaco-tl-indent > .indent-guide.active { border-color: ${X.treeIndentGuidesStroke}; }`));let lt=Ge.join(` -`);lt!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=lt),this.view.style(X)}collapse(X,ae=!1){return this.model.setCollapsed(X,!0,ae)}expand(X,ae=!1){return this.model.setCollapsed(X,!1,ae)}isCollapsible(X){return this.model.isCollapsible(X)}setCollapsible(X,ae){return this.model.setCollapsible(X,ae)}isCollapsed(X){return this.model.isCollapsed(X)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(X,ae){let Ge=X.map(Dt=>this.model.getNode(Dt));this.selection.set(Ge,ae);let lt=X.map(Dt=>this.model.getListIndex(Dt)).filter(Dt=>Dt>-1);this.view.setSelection(lt,ae,!0)}getSelection(){return this.selection.get()}setFocus(X,ae){let Ge=X.map(Dt=>this.model.getNode(Dt));this.focus.set(Ge,ae);let lt=X.map(Dt=>this.model.getListIndex(Dt)).filter(Dt=>Dt>-1);this.view.setFocus(lt,ae,!0)}focusNext(X=1,ae=!1,Ge,lt=this.focusNavigationFilter){this.view.focusNext(X,ae,Ge,lt)}getFocus(){return this.focus.get()}reveal(X,ae){this.model.expandTo(X);let Ge=this.model.getListIndex(X);Ge!==-1&&this.view.reveal(Ge,ae)}getRelativeTop(X){let ae=this.model.getListIndex(X);return ae===-1?null:this.view.getRelativeTop(ae)}onLeftArrow(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge);if(!this.model.setCollapsed(lt,!0)){let Dt=this.model.getParentNodeLocation(lt);if(!Dt)return;let Gt=this.model.getListIndex(Dt);this.view.reveal(Gt),this.view.setFocus([Gt])}}onRightArrow(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge);if(!this.model.setCollapsed(lt,!1)){if(!Ge.children.some(ti=>ti.visible))return;let[Dt]=this.view.getFocus(),Gt=Dt+1;this.view.reveal(Gt),this.view.setFocus([Gt])}}onSpace(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge),Dt=X.browserEvent.altKey;this.model.setCollapsed(lt,void 0,Dt)}dispose(){Object(f.f)(this.disposables),this.view.dispose()}}class Ni{constructor(X,ae,Ge={}){this.user=X,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new te(X,ae,null,Ge),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Ge.sorter&&(this.sorter={compare:(lt,Dt)=>Ge.sorter.compare(lt.element,Dt.element)}),this.identityProvider=Ge.identityProvider}setChildren(X,ae=g.a.empty(),Ge,lt){let Dt=this.getElementLocation(X);this._setChildren(Dt,this.preserveCollapseState(ae),Ge,lt)}_setChildren(X,ae=g.a.empty(),Ge,lt){let Dt=new Set,Gt=new Set;this.model.splice([...X,0],Number.MAX_VALUE,ae,ti=>{if(ti.element===null)return;let ye=ti;if(Dt.add(ye.element),this.nodes.set(ye.element,ye),this.identityProvider){let le=this.identityProvider.getId(ye.element).toString();Gt.add(le),this.nodesByIdentity.set(le,ye)}Ge&&Ge(ye)},ti=>{if(ti.element===null)return;let ye=ti;if(Dt.has(ye.element)||this.nodes.delete(ye.element),this.identityProvider){let le=this.identityProvider.getId(ye.element).toString();Gt.has(le)||this.nodesByIdentity.delete(le)}lt&<(ye)})}preserveCollapseState(X=g.a.empty()){return this.sorter&&(X=Object(D.p)([...X],this.sorter.compare.bind(this.sorter))),g.a.map(X,ae=>{let Ge=this.nodes.get(ae.element);if(!Ge&&this.identityProvider){let Gt=this.identityProvider.getId(ae.element).toString();Ge=this.nodesByIdentity.get(Gt)}if(!Ge)return Object.assign(Object.assign({},ae),{children:this.preserveCollapseState(ae.children)});let lt=typeof ae.collapsible=="boolean"?ae.collapsible:Ge.collapsible,Dt=ae.collapsed!==void 0?ae.collapsed:Ge.collapsed;return Object.assign(Object.assign({},ae),{collapsible:lt,collapsed:Dt,children:this.preserveCollapseState(ae.children)})})}rerender(X){let ae=this.getElementLocation(X);this.model.rerender(ae)}has(X){return this.nodes.has(X)}getListIndex(X){let ae=this.getElementLocation(X);return this.model.getListIndex(ae)}getListRenderCount(X){let ae=this.getElementLocation(X);return this.model.getListRenderCount(ae)}isCollapsible(X){let ae=this.getElementLocation(X);return this.model.isCollapsible(ae)}setCollapsible(X,ae){let Ge=this.getElementLocation(X);return this.model.setCollapsible(Ge,ae)}isCollapsed(X){let ae=this.getElementLocation(X);return this.model.isCollapsed(ae)}setCollapsed(X,ae,Ge){let lt=this.getElementLocation(X);return this.model.setCollapsed(lt,ae,Ge)}expandTo(X){let ae=this.getElementLocation(X);this.model.expandTo(ae)}refilter(){this.model.refilter()}getNode(X=null){if(X===null)return this.model.getNode(this.model.rootRef);let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return ae}getNodeLocation(X){return X.element}getParentNodeLocation(X){if(X===null)throw new ie(this.user,"Invalid getParentNodeLocation call");let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);let Ge=this.model.getNodeLocation(ae),lt=this.model.getParentNodeLocation(Ge);return this.model.getNode(lt).element}getElementLocation(X){if(X===null)return[];let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return this.model.getNodeLocation(ae)}}function pi(ft){return{element:{elements:[ft.element],incompressible:ft.incompressible||!1},children:g.a.map(g.a.from(ft.children),pi),collapsible:ft.collapsible,collapsed:ft.collapsed}}function et(ft){let X=[ft.element],ae=ft.incompressible||!1,Ge,lt;for(;[lt,Ge]=g.a.consume(g.a.from(ft.children),2),lt.length===1&&!(ft=lt[0]).incompressible;)X.push(ft.element);return{element:{elements:X,incompressible:ae},children:g.a.map(g.a.concat(lt,Ge),et),collapsible:ft.collapsible,collapsed:ft.collapsed}}function Wt(ft){return function X(ae,Ge=0){let lt;return lt=Ge<ae.element.elements.length-1?[X(ae,Ge+1)]:g.a.map(g.a.from(ae.children),Dt=>X(Dt,0)),Ge===0&&ae.element.incompressible?{element:ae.element.elements[Ge],children:lt,incompressible:!0,collapsible:ae.collapsible,collapsed:ae.collapsed}:{element:ae.element.elements[Ge],children:lt,collapsible:ae.collapsible,collapsed:ae.collapsed}}(ft,0)}class Li{constructor(X,ae,Ge={}){this.user=X,this.rootRef=null,this.nodes=new Map,this.model=new Ni(X,ae,Ge),this.enabled=Ge.compressionEnabled===void 0||Ge.compressionEnabled}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(X,ae=g.a.empty()){if(X===null){let ue=g.a.map(ae,this.enabled?et:pi);return void this._setChildren(null,ue)}let Ge=this.nodes.get(X);if(!Ge)throw new Error("Unknown compressed tree node");let lt=this.model.getNode(Ge),Dt=this.model.getParentNodeLocation(Ge),Gt=this.model.getNode(Dt),ti=function ue(qe,Ze,tt){return qe.element===Ze?Object.assign(Object.assign({},qe),{children:tt}):Object.assign(Object.assign({},qe),{children:g.a.map(g.a.from(qe.children),rt=>ue(rt,Ze,tt))})}(Wt(lt),X,ae),ye=(this.enabled?et:pi)(ti),le=Gt.children.map(ue=>ue===lt?ye:ue);this._setChildren(Gt.element,le)}setCompressionEnabled(X){if(X===this.enabled)return;this.enabled=X;let ae=this.model.getNode().children,Ge=g.a.map(ae,Wt),lt=g.a.map(Ge,X?et:pi);this._setChildren(null,lt)}_setChildren(X,ae){let Ge=new Set;this.model.setChildren(X,ae,lt=>{for(let Dt of lt.element.elements)Ge.add(Dt),this.nodes.set(Dt,lt.element)},lt=>{for(let Dt of lt.element.elements)Ge.has(Dt)||this.nodes.delete(Dt)})}has(X){return this.nodes.has(X)}getListIndex(X){let ae=this.getCompressedNode(X);return this.model.getListIndex(ae)}getListRenderCount(X){let ae=this.getCompressedNode(X);return this.model.getListRenderCount(ae)}getNode(X){if(X===void 0)return this.model.getNode();let ae=this.getCompressedNode(X);return this.model.getNode(ae)}getNodeLocation(X){let ae=this.model.getNodeLocation(X);return ae===null?null:ae.elements[ae.elements.length-1]}getParentNodeLocation(X){let ae=this.getCompressedNode(X),Ge=this.model.getParentNodeLocation(ae);return Ge===null?null:Ge.elements[Ge.elements.length-1]}isCollapsible(X){let ae=this.getCompressedNode(X);return this.model.isCollapsible(ae)}setCollapsible(X,ae){let Ge=this.getCompressedNode(X);return this.model.setCollapsible(Ge,ae)}isCollapsed(X){let ae=this.getCompressedNode(X);return this.model.isCollapsed(ae)}setCollapsed(X,ae,Ge){let lt=this.getCompressedNode(X);return this.model.setCollapsed(lt,ae,Ge)}expandTo(X){let ae=this.getCompressedNode(X);this.model.expandTo(ae)}rerender(X){let ae=this.getCompressedNode(X);this.model.rerender(ae)}refilter(){this.model.refilter()}getCompressedNode(X){if(X===null)return null;let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return ae}}let Ii=ft=>ft[ft.length-1];class Ai{constructor(X,ae){this.unwrapper=X,this.node=ae}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(X=>new Ai(this.unwrapper,X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Zi{constructor(X,ae,Ge={}){this.rootRef=null,this.elementMapper=Ge.elementMapper||Ii;let lt=Dt=>this.elementMapper(Dt.elements);this.nodeMapper=new U(Dt=>new Ai(lt,Dt)),this.model=new Li(X,function(Dt,Gt){return{splice(ti,ye,le){Gt.splice(ti,ye,le.map(ue=>Dt.map(ue)))},updateElementHeight(ti,ye){Gt.updateElementHeight(ti,ye)}}}(this.nodeMapper,ae),function(Dt,Gt){return Object.assign(Object.assign({},Gt),{sorter:Gt.sorter&&{compare:(ti,ye)=>Gt.sorter.compare(ti.elements[0],ye.elements[0])},identityProvider:Gt.identityProvider&&{getId:ti=>Gt.identityProvider.getId(Dt(ti))},filter:Gt.filter&&{filter:(ti,ye)=>Gt.filter.filter(Dt(ti),ye)}})}(lt,Ge))}get onDidSplice(){return E.b.map(this.model.onDidSplice,({insertedNodes:X,deletedNodes:ae})=>({insertedNodes:X.map(Ge=>this.nodeMapper.map(Ge)),deletedNodes:ae.map(Ge=>this.nodeMapper.map(Ge))}))}get onDidChangeCollapseState(){return E.b.map(this.model.onDidChangeCollapseState,({node:X,deep:ae})=>({node:this.nodeMapper.map(X),deep:ae}))}get onDidChangeRenderNodeCount(){return E.b.map(this.model.onDidChangeRenderNodeCount,X=>this.nodeMapper.map(X))}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}setCompressionEnabled(X){this.model.setCompressionEnabled(X)}has(X){return this.model.has(X)}getListIndex(X){return this.model.getListIndex(X)}getListRenderCount(X){return this.model.getListRenderCount(X)}getNode(X){return this.nodeMapper.map(this.model.getNode(X))}getNodeLocation(X){return X.element}getParentNodeLocation(X){return this.model.getParentNodeLocation(X)}isCollapsible(X){return this.model.isCollapsible(X)}setCollapsible(X,ae){return this.model.setCollapsible(X,ae)}isCollapsed(X){return this.model.isCollapsed(X)}setCollapsed(X,ae,Ge){return this.model.setCollapsed(X,ae,Ge)}expandTo(X){return this.model.expandTo(X)}rerender(X){return this.model.rerender(X)}refilter(){return this.model.refilter()}getCompressedTreeNode(X=null){return this.model.getNode(X)}}var Bi=o(98),Lt=function(ft,X,ae,Ge){var lt,Dt=arguments.length,Gt=Dt<3?X:Ge===null?Ge=Object.getOwnPropertyDescriptor(X,ae):Ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Gt=Reflect.decorate(ft,X,ae,Ge);else for(var ti=ft.length-1;ti>=0;ti--)(lt=ft[ti])&&(Gt=(Dt<3?lt(Gt):Dt>3?lt(X,ae,Gt):lt(X,ae))||Gt);return Dt>3&&Gt&&Object.defineProperty(X,ae,Gt),Gt};class Di extends wt{constructor(X,ae,Ge,lt,Dt={}){super(X,ae,Ge,lt,Dt)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}rerender(X){X!==void 0?this.model.rerender(X):this.view.rerender()}hasElement(X){return this.model.has(X)}createModel(X,ae,Ge){return new Ni(X,ae,Ge)}}class gt{constructor(X,ae){this._compressedTreeNodeProvider=X,this.renderer=ae,this.templateId=ae.templateId,ae.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ae.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(X){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){let Dt=this.compressedTreeNodeProvider.getCompressedTreeNode(X.element);Dt.element.elements.length===1?(Ge.compressedTreeNode=void 0,this.renderer.renderElement(X,ae,Ge.data,lt)):(Ge.compressedTreeNode=Dt,this.renderer.renderCompressedElements(Dt,ae,Ge.data,lt))}disposeElement(X,ae,Ge,lt){Ge.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(Ge.compressedTreeNode,ae,Ge.data,lt):this.renderer.disposeElement&&this.renderer.disposeElement(X,ae,Ge.data,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.data)}renderTwistie(X,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(X,ae)}}Lt([Bi.a],gt.prototype,"compressedTreeNodeProvider",null);class vi extends Di{constructor(X,ae,Ge,lt,Dt={}){let Gt=()=>this;super(X,ae,Ge,lt.map(ti=>new gt(Gt,ti)),function(ti,ye){return ye&&Object.assign(Object.assign({},ye),{keyboardNavigationLabelProvider:ye.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(le){let ue;try{ue=ti().getCompressedTreeNode(le)}catch(qe){return ye.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(le)}return ue.element.elements.length===1?ye.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(le):ye.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(ue.element.elements)}}})}(Gt,Dt))}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}createModel(X,ae,Ge){return new Zi(X,ae,Ge)}updateOptions(X={}){super.updateOptions(X),X.compressionEnabled!==void 0&&this.model.setCompressionEnabled(X.compressionEnabled)}getCompressedTreeNode(X=null){return this.model.getCompressedTreeNode(X)}}var Rt=o(13),vt=function(ft,X,ae,Ge){return new(ae||(ae=Promise))(function(lt,Dt){function Gt(le){try{ye(Ge.next(le))}catch(ue){Dt(ue)}}function ti(le){try{ye(Ge.throw(le))}catch(ue){Dt(ue)}}function ye(le){var ue;le.done?lt(le.value):(ue=le.value,ue instanceof ae?ue:new ae(function(qe){qe(ue)})).then(Gt,ti)}ye((Ge=Ge.apply(ft,X||[])).next())})};function Ue(ft){return Object.assign(Object.assign({},ft),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ut(ft,X){return!!X.parent&&(X.parent===ft||ut(ft,X.parent))}class ze{constructor(X){this.node=X}get element(){return this.node.element.element}get children(){return this.node.children.map(X=>new ze(X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class st{constructor(X,ae,Ge){this.renderer=X,this.nodeMapper=ae,this.onDidChangeTwistieState=Ge,this.renderedNodes=new Map,this.templateId=X.templateId}renderTemplate(X){return{templateData:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){this.renderer.renderElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}renderTwistie(X,ae){return X.slow?Object(h.f)(ae,$.classNames):Object(h.R)(ae,$.classNames),!1}disposeElement(X,ae,Ge,lt){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}dispose(){this.renderedNodes.clear()}}function _t(ft){return{browserEvent:ft.browserEvent,elements:ft.elements.map(X=>X.element)}}function oi(ft){return{browserEvent:ft.browserEvent,element:ft.element&&ft.element.element,target:ft.target}}class li extends B.a{constructor(X){super(X.elements.map(ae=>ae.element)),this.data=X}}function gi(ft){return ft instanceof B.a?new li(ft):ft}class ki{constructor(X){this.dnd=X}getDragURI(X){return this.dnd.getDragURI(X.element)}getDragLabel(X,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(X.map(Ge=>Ge.element),ae)}onDragStart(X,ae){this.dnd.onDragStart&&this.dnd.onDragStart(gi(X),ae)}onDragOver(X,ae,Ge,lt,Dt=!0){return this.dnd.onDragOver(gi(X),ae&&ae.element,Ge,lt)}drop(X,ae,Ge,lt){this.dnd.drop(gi(X),ae&&ae.element,Ge,lt)}onDragEnd(X){this.dnd.onDragEnd&&this.dnd.onDragEnd(X)}}function Ri(ft){return ft&&Object.assign(Object.assign({},ft),{collapseByDefault:!0,identityProvider:ft.identityProvider&&{getId:X=>ft.identityProvider.getId(X.element)},dnd:ft.dnd&&new ki(ft.dnd),multipleSelectionController:ft.multipleSelectionController&&{isSelectionSingleChangeEvent:X=>ft.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},X),{element:X.element})),isSelectionRangeChangeEvent:X=>ft.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},X),{element:X.element}))},accessibilityProvider:ft.accessibilityProvider&&Object.assign(Object.assign({},ft.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:ft.accessibilityProvider.getRole?X=>ft.accessibilityProvider.getRole(X.element):()=>"treeitem",isChecked:ft.accessibilityProvider.isChecked?X=>{var ae;return!!((ae=ft.accessibilityProvider)===null||ae===void 0?void 0:ae.isChecked(X.element))}:void 0,getAriaLabel:X=>ft.accessibilityProvider.getAriaLabel(X.element),getWidgetAriaLabel:()=>ft.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:ft.accessibilityProvider.getWidgetRole?()=>ft.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:ft.accessibilityProvider.getAriaLevel&&(X=>ft.accessibilityProvider.getAriaLevel(X.element)),getActiveDescendantId:ft.accessibilityProvider.getActiveDescendantId&&(X=>ft.accessibilityProvider.getActiveDescendantId(X.element))}),filter:ft.filter&&{filter:(X,ae)=>ft.filter.filter(X.element,ae)},keyboardNavigationLabelProvider:ft.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},ft.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:X=>ft.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(X.element)}),sorter:void 0,expandOnlyOnTwistieClick:ft.expandOnlyOnTwistieClick===void 0?void 0:typeof ft.expandOnlyOnTwistieClick!="function"?ft.expandOnlyOnTwistieClick:X=>ft.expandOnlyOnTwistieClick(X.element),additionalScrollHeight:ft.additionalScrollHeight})}function $i(ft,X){X(ft),ft.children.forEach(ae=>$i(ae,X))}class Hi{constructor(X,ae,Ge,lt,Dt,Gt={}){this.user=X,this.dataSource=Dt,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new E.a,this._onDidChangeNodeSlowState=new E.a,this.nodeMapper=new U(ti=>new ze(ti)),this.disposables=new f.b,this.identityProvider=Gt.identityProvider,this.autoExpandSingleChildren=Gt.autoExpandSingleChildren!==void 0&&Gt.autoExpandSingleChildren,this.sorter=Gt.sorter,this.collapseByDefault=Gt.collapseByDefault,this.tree=this.createTree(X,ae,Ge,lt,Gt),this.root=Ue({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return E.b.map(this.tree.onDidChangeFocus,_t)}get onDidChangeSelection(){return E.b.map(this.tree.onDidChangeSelection,_t)}get onMouseDblClick(){return E.b.map(this.tree.onMouseDblClick,oi)}get onPointer(){return E.b.map(this.tree.onPointer,oi)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(X,ae,Ge,lt,Dt){let Gt=new Se(Ge),ti=lt.map(le=>new st(le,this.nodeMapper,this._onDidChangeNodeSlowState.event)),ye=Ri(Dt)||{};return new Di(X,ae,Gt,ti,ye)}updateOptions(X={}){this.tree.updateOptions(X)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(X){this.tree.scrollTop=X}domFocus(){this.tree.domFocus()}layout(X,ae){this.tree.layout(X,ae)}style(X){this.tree.style(X)}getInput(){return this.root.element}setInput(X,ae){return vt(this,void 0,void 0,function*(){this.refreshPromises.forEach(lt=>lt.cancel()),this.refreshPromises.clear(),this.root.element=X;let Ge=ae&&{viewState:ae,focus:[],selection:[]};yield this._updateChildren(X,!0,!1,Ge),Ge&&(this.tree.setFocus(Ge.focus),this.tree.setSelection(Ge.selection)),ae&&typeof ae.scrollTop=="number"&&(this.scrollTop=ae.scrollTop)})}_updateChildren(X=this.root.element,ae=!0,Ge=!1,lt){return vt(this,void 0,void 0,function*(){if(this.root.element===void 0)throw new ie(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event));let Dt=this.getDataNode(X);if(yield this.refreshAndRenderNode(Dt,ae,lt),Ge)try{this.tree.rerender(Dt)}catch(Gt){}})}rerender(X){if(X===void 0||X===this.root.element)return void this.tree.rerender();let ae=this.getDataNode(X);this.tree.rerender(ae)}collapse(X,ae=!1){let Ge=this.getDataNode(X);return this.tree.collapse(Ge===this.root?null:Ge,ae)}expand(X,ae=!1){return vt(this,void 0,void 0,function*(){if(this.root.element===void 0)throw new ie(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event));let Ge=this.getDataNode(X);if(this.tree.hasElement(Ge)&&!this.tree.isCollapsible(Ge)||(Ge.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event)),Ge!==this.root&&!Ge.refreshPromise&&!this.tree.isCollapsed(Ge)))return!1;let lt=this.tree.expand(Ge===this.root?null:Ge,ae);return Ge.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event)),lt})}setSelection(X,ae){let Ge=X.map(lt=>this.getDataNode(lt));this.tree.setSelection(Ge,ae)}getSelection(){return this.tree.getSelection().map(X=>X.element)}setFocus(X,ae){let Ge=X.map(lt=>this.getDataNode(lt));this.tree.setFocus(Ge,ae)}getFocus(){return this.tree.getFocus().map(X=>X.element)}reveal(X,ae){this.tree.reveal(this.getDataNode(X),ae)}getDataNode(X){let ae=this.nodes.get(X===this.root.element?null:X);if(!ae)throw new ie(this.user,"Data tree node not found: "+X);return ae}refreshAndRenderNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){yield this.refreshNode(X,ae,Ge),this.render(X,Ge)})}refreshNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;return this.subTreeRefreshPromises.forEach((Dt,Gt)=>{!lt&&function(ti,ye){return ti===ye||ut(ti,ye)||ut(ye,ti)}(Gt,X)&&(lt=Dt.then(()=>this.refreshNode(X,ae,Ge)))}),lt||this.doRefreshSubTree(X,ae,Ge)})}doRefreshSubTree(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;X.refreshPromise=new Promise(Dt=>lt=Dt),this.subTreeRefreshPromises.set(X,X.refreshPromise),X.refreshPromise.finally(()=>{X.refreshPromise=void 0,this.subTreeRefreshPromises.delete(X)});try{let Dt=yield this.doRefreshNode(X,ae,Ge);X.stale=!1,yield Promise.all(Dt.map(Gt=>this.doRefreshSubTree(Gt,ae,Ge)))}finally{lt()}})}doRefreshNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;if(X.hasChildren=!!this.dataSource.hasChildren(X.element),X.hasChildren){let Dt=Object(he.l)(800);Dt.then(()=>{X.slow=!0,this._onDidChangeNodeSlowState.fire(X)},Gt=>null),lt=this.doGetChildren(X).finally(()=>Dt.cancel())}else lt=Promise.resolve(g.a.empty());try{let Dt=yield lt;return this.setChildren(X,Dt,ae,Ge)}catch(Dt){if(X!==this.root&&this.tree.collapse(X===this.root?null:X),Object(Rt.d)(Dt))return[];throw Dt}finally{X.slow&&(X.slow=!1,this._onDidChangeNodeSlowState.fire(X))}})}doGetChildren(X){let ae=this.refreshPromises.get(X);return ae||(ae=Object(he.f)(()=>vt(this,void 0,void 0,function*(){let Ge=yield this.dataSource.getChildren(X.element);return this.processChildren(Ge)})),this.refreshPromises.set(X,ae),ae.finally(()=>{this.refreshPromises.delete(X)}))}_onDidChangeCollapseState({node:X,deep:ae}){X.element!==null&&!X.collapsed&&X.element.stale&&(ae?this.collapse(X.element.element):this.refreshAndRenderNode(X.element,!1).catch(Rt.e))}setChildren(X,ae,Ge,lt){let Dt=[...ae];if(X.children.length===0&&Dt.length===0)return[];let Gt=new Map,ti=new Map;for(let ue of X.children)if(Gt.set(ue.element,ue),this.identityProvider){let qe=this.tree.isCollapsed(ue);ti.set(ue.id,{node:ue,collapsed:qe})}let ye=[],le=Dt.map(ue=>{let qe=!!this.dataSource.hasChildren(ue);if(!this.identityProvider){let zt=Ue({element:ue,parent:X,hasChildren:qe});return qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(zt.collapsedByDefault=!1,ye.push(zt)),zt}let Ze=this.identityProvider.getId(ue).toString(),tt=ti.get(Ze);if(tt){let zt=tt.node;return Gt.delete(zt.element),this.nodes.delete(zt.element),this.nodes.set(ue,zt),zt.element=ue,zt.hasChildren=qe,Ge?tt.collapsed?(zt.children.forEach(Jt=>$i(Jt,xi=>this.nodes.delete(xi.element))),zt.children.splice(0,zt.children.length),zt.stale=!0):ye.push(zt):qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(zt.collapsedByDefault=!1,ye.push(zt)),zt}let rt=Ue({element:ue,parent:X,id:Ze,hasChildren:qe});return lt&<.viewState.focus&<.viewState.focus.indexOf(Ze)>-1&<.focus.push(rt),lt&<.viewState.selection&<.viewState.selection.indexOf(Ze)>-1&<.selection.push(rt),lt&<.viewState.expanded&<.viewState.expanded.indexOf(Ze)>-1?ye.push(rt):qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(rt.collapsedByDefault=!1,ye.push(rt)),rt});for(let ue of Gt.values())$i(ue,qe=>this.nodes.delete(qe.element));for(let ue of le)this.nodes.set(ue.element,ue);return X.children.splice(0,X.children.length,...le),X!==this.root&&this.autoExpandSingleChildren&&le.length===1&&ye.length===0&&(le[0].collapsedByDefault=!1,ye.push(le[0])),ye}render(X,ae){let Ge=X.children.map(lt=>this.asTreeElement(lt,ae));this.tree.setChildren(X===this.root?null:X,Ge),X!==this.root&&this.tree.setCollapsible(X,X.hasChildren),this._onDidRender.fire()}asTreeElement(X,ae){if(X.stale)return{element:X,collapsible:X.hasChildren,collapsed:!0};let Ge;return Ge=!(ae&&ae.viewState.expanded&&X.id&&ae.viewState.expanded.indexOf(X.id)>-1)&&X.collapsedByDefault,X.collapsedByDefault=void 0,{element:X,children:X.hasChildren?g.a.map(X.children,lt=>this.asTreeElement(lt,ae)):[],collapsible:X.hasChildren,collapsed:Ge}}processChildren(X){return this.sorter&&(X=[...X].sort(this.sorter.compare.bind(this.sorter))),X}dispose(){this.disposables.dispose()}}class yi{constructor(X){this.node=X}get element(){return{elements:this.node.element.elements.map(X=>X.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(X=>new yi(X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class kt{constructor(X,ae,Ge,lt){this.renderer=X,this.nodeMapper=ae,this.compressibleNodeMapperProvider=Ge,this.onDidChangeTwistieState=lt,this.renderedNodes=new Map,this.disposables=[],this.templateId=X.templateId}renderTemplate(X){return{templateData:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){this.renderer.renderElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}renderCompressedElements(X,ae,Ge,lt){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(X),ae,Ge.templateData,lt)}renderTwistie(X,ae){return X.slow?Object(h.f)(ae,$.classNames):Object(h.R)(ae,$.classNames),!1}disposeElement(X,ae,Ge,lt){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}disposeCompressedElements(X,ae,Ge,lt){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(X),ae,Ge.templateData,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(f.f)(this.disposables)}}class Et extends Hi{constructor(X,ae,Ge,lt,Dt,Gt,ti={}){super(X,ae,Ge,Dt,Gt,ti),this.compressionDelegate=lt,this.compressibleNodeMapper=new U(ye=>new yi(ye)),this.filter=ti.filter}createTree(X,ae,Ge,lt,Dt){let Gt=new Se(Ge),ti=lt.map(le=>new kt(le,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),ye=function(le){let ue=le&&Ri(le);return ue&&Object.assign(Object.assign({},ue),{keyboardNavigationLabelProvider:ue.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},ue.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:qe=>le.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(qe.map(Ze=>Ze.element))})})}(Dt)||{};return new vi(X,ae,Gt,ti,ye)}asTreeElement(X,ae){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(X.element)},super.asTreeElement(X,ae))}updateOptions(X={}){this.tree.updateOptions(X)}render(X,ae){if(!this.identityProvider)return super.render(X,ae);let Ge=Ze=>this.identityProvider.getId(Ze).toString(),lt=Ze=>{let tt=new Set;for(let rt of Ze){let zt=this.tree.getCompressedTreeNode(rt===this.root?null:rt);if(zt.element)for(let Jt of zt.element.elements)tt.add(Ge(Jt.element))}return tt},Dt=lt(this.tree.getSelection()),Gt=lt(this.tree.getFocus());super.render(X,ae);let ti=this.getSelection(),ye=!1,le=this.getFocus(),ue=!1,qe=Ze=>{let tt=Ze.element;if(tt)for(let rt=0;rt<tt.elements.length;rt++){let zt=Ge(tt.elements[rt].element),Jt=tt.elements[tt.elements.length-1].element;Dt.has(zt)&&ti.indexOf(Jt)===-1&&(ti.push(Jt),ye=!0),Gt.has(zt)&&le.indexOf(Jt)===-1&&(le.push(Jt),ue=!0)}Ze.children.forEach(qe)};qe(this.tree.getCompressedTreeNode(X===this.root?null:X)),ye&&this.setSelection(ti),ue&&this.setFocus(le)}processChildren(X){return this.filter&&(X=g.a.filter(X,ae=>{let Ge=this.filter.filter(ae,1),lt=typeof(Dt=Ge)=="boolean"?Dt?1:0:xe(Dt)?Y(Dt.visibility):Y(Dt);var Dt;if(lt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return lt===1})),super.processChildren(X)}}class si extends wt{constructor(X,ae,Ge,lt,Dt,Gt={}){super(X,ae,Ge,lt,Gt),this.user=X,this.dataSource=Dt,this.identityProvider=Gt.identityProvider}createModel(X,ae,Ge){return new Ni(X,ae,Ge)}}var Si=o(80),Pi=function(ft,X,ae,Ge){var lt,Dt=arguments.length,Gt=Dt<3?X:Ge===null?Ge=Object.getOwnPropertyDescriptor(X,ae):Ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Gt=Reflect.decorate(ft,X,ae,Ge);else for(var ti=ft.length-1;ti>=0;ti--)(lt=ft[ti])&&(Gt=(Dt<3?lt(Gt):Dt>3?lt(X,ae,Gt):lt(X,ae))||Gt);return Dt>3&&Gt&&Object.defineProperty(X,ae,Gt),Gt},Wi=function(ft,X){return function(ae,Ge){X(ae,Ge,ft)}};let xn=Object(V.c)("listService"),un=class{constructor(ft){this._themeService=ft,this.disposables=new f.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(ft,X){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;let Ge=new H.b(Object(h.v)(),"");this.disposables.add(Object(T.b)(Ge,this._themeService))}if(this.lists.some(Ge=>Ge.widget===ft))throw new Error("Cannot register the same widget multiple times");let ae={widget:ft,extraContextKeys:X};return this.lists.push(ae),ft.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=ft),Object(f.e)(ft.onDidFocus(()=>this._lastFocusedWidget=ft),Object(f.h)(()=>this.lists.splice(this.lists.indexOf(ae),1)),ft.onDidDispose(()=>{this.lists=this.lists.filter(Ge=>Ge!==ae),this._lastFocusedWidget===ft&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};un=Pi([Wi(0,N.c)],un);let bn=new P.c("listFocus",!0),Fn=new P.c("listSupportsMultiselect",!0),Mn=P.a.and(bn,P.a.not("inputFocus")),Nn=new P.c("listHasSelectionOrFocus",!1),Hn=new P.c("listDoubleSelection",!1),Jn=new P.c("listMultiSelection",!1),_o=new P.c("listSupportsKeyboardNavigation",!0),pn=new P.c("listAutomaticKeyboardNavigation",!0),Gn=!1;function on(ft,X){let ae=ft.createScoped(X.getHTMLElement());return bn.bindTo(ae),ae}let ho="workbench.list.horizontalScrolling",On="workbench.tree.indent",Dn="workbench.list.smoothScrolling";function qt(ft){return ft.getValue("workbench.list.multiSelectModifier")==="alt"}class I extends f.a{constructor(X){super(),this.configurationService=X,this.useAltAsMultipleSelectionModifier=qt(X),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(X=>{X.affectsConfiguration("workbench.list.multiSelectModifier")&&(this.useAltAsMultipleSelectionModifier=qt(this.configurationService))}))}isSelectionSingleChangeEvent(X){return this.useAltAsMultipleSelectionModifier?X.browserEvent.altKey:Object(H.h)(X)}isSelectionRangeChangeEvent(X){return Object(H.g)(X)}}function ne(ft,X,ae){let Ge=new f.b,lt=Object.assign({},ft);if(ft.multipleSelectionSupport!==!1&&!ft.multipleSelectionController){let Dt=new I(X);lt.multipleSelectionController=Dt,Ge.add(Dt)}return lt.keyboardNavigationDelegate={mightProducePrintableCharacter:Dt=>ae.mightProducePrintableCharacter(Dt)},lt.smoothScrolling=X.getValue(Dn),[lt,Ge]}let _e=class extends H.c{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le){let ue=lt.horizontalScrolling!==void 0?lt.horizontalScrolling:ye.getValue(ho),[qe,Ze]=ne(lt,ye,le);super(ft,X,ae,Ge,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(T.d)(ti.getColorTheme(),T.e)),qe),{horizontalScrolling:ue})),this.disposables.add(Ze),this.contextKeyService=on(Dt,this),this.themeService=ti,Fn.bindTo(this.contextKeyService).set(lt.multipleSelectionSupport!==!1),this.listHasSelectionOrFocus=Nn.bindTo(this.contextKeyService),this.listDoubleSelection=Hn.bindTo(this.contextKeyService),this.listMultiSelection=Jn.bindTo(this.contextKeyService),this.horizontalScrolling=lt.horizontalScrolling,this._useAltAsMultipleSelectionModifier=qt(ye),this.disposables.add(this.contextKeyService),this.disposables.add(Gt.register(this)),lt.overrideStyles&&this.updateStyles(lt.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let tt=this.getSelection(),rt=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(tt.length>0||rt.length>0),this.listMultiSelection.set(tt.length>1),this.listDoubleSelection.set(tt.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let tt=this.getSelection(),rt=this.getFocus();this.listHasSelectionOrFocus.set(tt.length>0||rt.length>0)})),this.disposables.add(ye.onDidChangeConfiguration(tt=>{tt.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ye));let rt={};if(tt.affectsConfiguration(ho)&&this.horizontalScrolling===void 0){let zt=ye.getValue(ho);rt=Object.assign(Object.assign({},rt),{horizontalScrolling:zt})}if(tt.affectsConfiguration(Dn)){let zt=ye.getValue(Dn);rt=Object.assign(Object.assign({},rt),{smoothScrolling:zt})}Object.keys(rt).length>0&&this.updateOptions(rt)}))}updateOptions(ft){super.updateOptions(ft),ft.overrideStyles&&this.updateStyles(ft.overrideStyles)}dispose(){super.dispose(),this._styler&&this._styler.dispose()}updateStyles(ft){this._styler&&this._styler.dispose(),this._styler=Object(T.b)(this,this.themeService,ft)}};_e=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a)],_e);let Fe=class extends class{constructor(ft,X,ae,Ge,lt={}){let Dt=()=>this.model,Gt=Ge.map(ti=>new W(ti,Dt));this.list=new H.c(ft,X,ae,Gt,function(ti,ye){return Object.assign(Object.assign({},ye),{accessibilityProvider:ye.accessibilityProvider&&new Q(ti,ye.accessibilityProvider)})}(Dt,lt))}updateOptions(ft){this.list.updateOptions(ft)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return E.b.map(this.list.onMouseDblClick,({element:ft,index:X,browserEvent:ae})=>({element:ft===void 0?void 0:this._model.get(ft),index:X,browserEvent:ae}))}get onPointer(){return E.b.map(this.list.onPointer,({element:ft,index:X,browserEvent:ae})=>({element:ft===void 0?void 0:this._model.get(ft),index:X,browserEvent:ae}))}get onDidChangeFocus(){return E.b.map(this.list.onDidChangeFocus,({elements:ft,indexes:X,browserEvent:ae})=>({elements:ft.map(Ge=>this._model.get(Ge)),indexes:X,browserEvent:ae}))}get onDidChangeSelection(){return E.b.map(this.list.onDidChangeSelection,({elements:ft,indexes:X,browserEvent:ae})=>({elements:ft.map(Ge=>this._model.get(Ge)),indexes:X,browserEvent:ae}))}get model(){return this._model}set model(ft){this._model=ft,this.list.splice(0,this.list.length,Object(D.s)(ft.length))}getFocus(){return this.list.getFocus()}setSelection(ft,X){this.list.setSelection(ft,X)}getSelection(){return this.list.getSelection()}style(ft){this.list.style(ft)}dispose(){this.list.dispose()}}{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le){let ue=lt.horizontalScrolling!==void 0?lt.horizontalScrolling:ye.getValue(ho),[qe,Ze]=ne(lt,ye,le);super(ft,X,ae,Ge,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(T.d)(ti.getColorTheme(),T.e)),qe),{horizontalScrolling:ue})),this.disposables=new f.b,this.disposables.add(Ze),this.contextKeyService=on(Dt,this),this.horizontalScrolling=lt.horizontalScrolling,Fn.bindTo(this.contextKeyService).set(lt.multipleSelectionSupport!==!1),this._useAltAsMultipleSelectionModifier=qt(ye),this.disposables.add(this.contextKeyService),this.disposables.add(Gt.register(this)),lt.overrideStyles&&this.disposables.add(Object(T.b)(this,ti,lt.overrideStyles)),this.disposables.add(ye.onDidChangeConfiguration(tt=>{tt.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ye));let rt={};if(tt.affectsConfiguration(ho)&&this.horizontalScrolling===void 0){let zt=ye.getValue(ho);rt=Object.assign(Object.assign({},rt),{horizontalScrolling:zt})}if(tt.affectsConfiguration(Dn)){let zt=ye.getValue(Dn);rt=Object.assign(Object.assign({},rt),{smoothScrolling:zt})}Object.keys(rt).length>0&&this.updateOptions(rt)}))}dispose(){super.dispose(),this.disposables.dispose()}};Fe=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a)],Fe);class Xe extends f.a{constructor(X,ae){var Ge,lt;super(),this.widget=X,this._onDidOpen=new E.a,this.onDidOpen=this._onDidOpen.event,this.openOnFocus=(Ge=ae==null?void 0:ae.openOnFocus)!==null&&Ge!==void 0&&Ge,this._register(E.b.filter(this.widget.onDidChangeSelection,Dt=>Dt.browserEvent instanceof KeyboardEvent)(Dt=>this.onSelectionFromKeyboard(Dt))),this._register(this.widget.onPointer(Dt=>this.onPointer(Dt.browserEvent))),this._register(this.widget.onMouseDblClick(Dt=>this.onMouseDblClick(Dt.browserEvent))),this.openOnFocus&&this._register(E.b.filter(this.widget.onDidChangeFocus,Dt=>Dt.browserEvent instanceof KeyboardEvent)(Dt=>this.onFocusFromKeyboard(Dt))),typeof(ae==null?void 0:ae.openOnSingleClick)!="boolean"&&(ae==null?void 0:ae.configurationService)?(this.openOnSingleClick=(ae==null?void 0:ae.configurationService.getValue("workbench.list.openMode"))!=="doubleClick",this._register(ae==null?void 0:ae.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(ae==null?void 0:ae.configurationService.getValue("workbench.list.openMode"))!=="doubleClick"}))):this.openOnSingleClick=(lt=ae==null?void 0:ae.openOnSingleClick)===null||lt===void 0||lt}onFocusFromKeyboard(X){let ae=this.widget.getFocus();this.widget.setSelection(ae,X.browserEvent);let Ge=typeof X.browserEvent.preserveFocus!="boolean"||X.browserEvent.preserveFocus;this._open(Ge,!1,!1,X.browserEvent)}onSelectionFromKeyboard(X){if(X.elements.length!==1)return;let ae=typeof X.browserEvent.preserveFocus!="boolean"||X.browserEvent.preserveFocus;this._open(ae,!1,!1,X.browserEvent)}onPointer(X){if(!this.openOnSingleClick||X.detail===2)return;let ae=X.button===1,Ge=X.ctrlKey||X.metaKey||X.altKey;this._open(!0,ae,Ge,X)}onMouseDblClick(X){if(!X)return;let ae=X.ctrlKey||X.metaKey||X.altKey;this._open(!1,!0,ae,X)}_open(X,ae,Ge,lt){this._onDidOpen.fire({editorOptions:{preserveFocus:X,pinned:ae,revealIfVisible:!0},sideBySide:Ge,element:this.widget.getSelection()[0],browserEvent:lt})}}class ot extends Xe{constructor(X,ae){super(X,ae)}}function Mt(ft,X){let ae=!1;return Ge=>{if(ae)return ae=!1,!1;let lt=X.softDispatch(Ge,ft);return lt&<.enterChord?(ae=!0,!1):(ae=!1,!0)}}let Ot=class extends Di{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le,ue){let{options:qe,getAutomaticKeyboardNavigation:Ze,disposable:tt}=wi(X,lt,Dt,ye,le,ue);super(ft,X,ae,Ge,qe),this.disposables.add(tt),this.internals=new Ti(this,lt,Ze,lt.overrideStyles,Dt,Gt,ti,ye,ue),this.disposables.add(this.internals)}};Ot=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a),Wi(10,Si.b)],Ot);let Tt=class extends vi{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le,ue){let{options:qe,getAutomaticKeyboardNavigation:Ze,disposable:tt}=wi(X,lt,Dt,ye,le,ue);super(ft,X,ae,Ge,qe),this.disposables.add(tt),this.internals=new Ti(this,lt,Ze,lt.overrideStyles,Dt,Gt,ti,ye,ue),this.disposables.add(this.internals)}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};Tt=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a),Wi(10,Si.b)],Tt);let Ht=class extends si{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le,ue,qe){let{options:Ze,getAutomaticKeyboardNavigation:tt,disposable:rt}=wi(X,Dt,Gt,le,ue,qe);super(ft,X,ae,Ge,lt,Ze),this.disposables.add(rt),this.internals=new Ti(this,Dt,tt,Dt.overrideStyles,Gt,ti,ye,le,qe),this.disposables.add(this.internals)}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};Ht=Pi([Wi(6,P.b),Wi(7,xn),Wi(8,N.c),Wi(9,C.a),Wi(10,k.a),Wi(11,Si.b)],Ht);let jt=class extends Hi{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le,ue,qe){let{options:Ze,getAutomaticKeyboardNavigation:tt,disposable:rt}=wi(X,Dt,Gt,le,ue,qe);super(ft,X,ae,Ge,lt,Ze),this.disposables.add(rt),this.internals=new Ti(this,Dt,tt,Dt.overrideStyles,Gt,ti,ye,le,qe),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};jt=Pi([Wi(6,P.b),Wi(7,xn),Wi(8,N.c),Wi(9,C.a),Wi(10,k.a),Wi(11,Si.b)],jt);let Kt=class extends Et{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye,le,ue,qe,Ze){let{options:tt,getAutomaticKeyboardNavigation:rt,disposable:zt}=wi(X,Gt,ti,ue,qe,Ze);super(ft,X,ae,Ge,lt,Dt,tt),this.disposables.add(zt),this.internals=new Ti(this,Gt,rt,Gt.overrideStyles,ti,ye,le,ue,Ze),this.disposables.add(this.internals)}};function wi(ft,X,ae,Ge,lt,Dt){_o.bindTo(ae),Gn||(pn.bindTo(ae),Gn=!0);let Gt=()=>{let Ze=ae.getContextKeyValue("listAutomaticKeyboardNavigation");return Ze&&(Ze=Ge.getValue("workbench.list.automaticKeyboardNavigation")),Ze},ti=Dt.isScreenReaderOptimized()?"simple":Ge.getValue("workbench.list.keyboardNavigation"),ye=X.horizontalScrolling!==void 0?X.horizontalScrolling:Ge.getValue(ho),[le,ue]=ne(X,Ge,lt),qe=X.additionalScrollHeight;return{getAutomaticKeyboardNavigation:Gt,disposable:ue,options:Object.assign(Object.assign({keyboardSupport:!1},le),{indent:Ge.getValue(On),renderIndentGuides:Ge.getValue("workbench.tree.renderIndentGuides"),smoothScrolling:Ge.getValue(Dn),automaticKeyboardNavigation:Gt(),simpleKeyboardNavigation:ti==="simple",filterOnType:ti==="filter",horizontalScrolling:ye,keyboardNavigationEventFilter:Mt(ft,lt),additionalScrollHeight:qe,hideTwistiesOfChildlessElements:X.hideTwistiesOfChildlessElements,expandOnlyOnDoubleClick:Ge.getValue("workbench.list.openMode")==="doubleClick"})}}Kt=Pi([Wi(7,P.b),Wi(8,xn),Wi(9,N.c),Wi(10,C.a),Wi(11,k.a),Wi(12,Si.b)],Kt);let Ti=class{constructor(ft,X,ae,Ge,lt,Dt,Gt,ti,ye){this.tree=ft,this.themeService=Gt,this.disposables=[],this.contextKeyService=on(lt,ft),Fn.bindTo(this.contextKeyService).set(X.multipleSelectionSupport!==!1),this.hasSelectionOrFocus=Nn.bindTo(this.contextKeyService),this.hasDoubleSelection=Hn.bindTo(this.contextKeyService),this.hasMultiSelection=Jn.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=qt(ti);let le=new Set;le.add("listAutomaticKeyboardNavigation");let ue=()=>{let qe=ye.isScreenReaderOptimized()?"simple":ti.getValue("workbench.list.keyboardNavigation");ft.updateOptions({simpleKeyboardNavigation:qe==="simple",filterOnType:qe==="filter"})};this.updateStyleOverrides(Ge),this.disposables.push(this.contextKeyService,Dt.register(ft),ft.onDidChangeSelection(()=>{let qe=ft.getSelection(),Ze=ft.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(qe.length>0||Ze.length>0),this.hasMultiSelection.set(qe.length>1),this.hasDoubleSelection.set(qe.length===2)})}),ft.onDidChangeFocus(()=>{let qe=ft.getSelection(),Ze=ft.getFocus();this.hasSelectionOrFocus.set(qe.length>0||Ze.length>0)}),ti.onDidChangeConfiguration(qe=>{let Ze={};if(qe.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ti)),qe.affectsConfiguration(On)){let tt=ti.getValue(On);Ze=Object.assign(Object.assign({},Ze),{indent:tt})}if(qe.affectsConfiguration("workbench.tree.renderIndentGuides")){let tt=ti.getValue("workbench.tree.renderIndentGuides");Ze=Object.assign(Object.assign({},Ze),{renderIndentGuides:tt})}if(qe.affectsConfiguration(Dn)){let tt=ti.getValue(Dn);Ze=Object.assign(Object.assign({},Ze),{smoothScrolling:tt})}if(qe.affectsConfiguration("workbench.list.keyboardNavigation")&&ue(),qe.affectsConfiguration("workbench.list.automaticKeyboardNavigation")&&(Ze=Object.assign(Object.assign({},Ze),{automaticKeyboardNavigation:ae()})),qe.affectsConfiguration(ho)&&X.horizontalScrolling===void 0){let tt=ti.getValue(ho);Ze=Object.assign(Object.assign({},Ze),{horizontalScrolling:tt})}qe.affectsConfiguration("workbench.list.openMode")&&(Ze=Object.assign(Object.assign({},Ze),{expandOnlyOnDoubleClick:ti.getValue("workbench.list.openMode")==="doubleClick"})),Object.keys(Ze).length>0&&ft.updateOptions(Ze)}),this.contextKeyService.onDidChangeContext(qe=>{qe.affectsSome(le)&&ft.updateOptions({automaticKeyboardNavigation:ae()})}),ye.onDidChangeScreenReaderOptimized(()=>ue())),this.navigator=new ot(ft,Object.assign({configurationService:ti},X)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateStyleOverrides(ft){Object(f.f)(this.styler),this.styler=ft?Object(T.b)(this.tree,this.themeService,ft):f.a.None}dispose(){this.disposables=Object(f.f)(this.disposables),Object(f.f)(this.styler),this.styler=void 0}};Ti=Pi([Wi(4,P.b),Wi(5,xn),Wi(6,N.c),Wi(7,C.a),Wi(8,Si.b)],Ti),l.a.as(S.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(y.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{"workbench.list.multiSelectModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(y.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(y.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(y.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(y.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},[ho]:{type:"boolean",default:!1,description:Object(y.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[On]:{type:"number",default:8,minimum:0,maximum:40,description:Object(y.a)("tree indent setting","Controls tree indentation in pixels.")},"workbench.tree.renderIndentGuides":{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(y.a)("render tree indent guides","Controls whether the tree should render indent guides.")},[Dn]:{type:"boolean",default:!1,description:Object(y.a)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},"workbench.list.keyboardNavigation":{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(y.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(y.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(y.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(y.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},"workbench.list.automaticKeyboardNavigation":{type:"boolean",default:!0,markdownDescription:Object(y.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")}}})},function(Ie,w){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(h){typeof window=="object"&&(o=window)}Ie.exports=o},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(34),f=o(11);let D={clipboard:{writeText:f.g||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:f.g||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:(()=>{if(h.f){let H=navigator.userAgent.indexOf("Edge/"),E=parseInt(navigator.userAgent.substring(H+5,navigator.userAgent.indexOf(".",H)),10);if(!E||E>=12&&E<=16)return!1}return!0})()},keyboard:f.g||h.k?0:navigator.keyboard||h.j?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("themeService")},function(Ie,w,o){"use strict";(function(h){o.d(w,"a",function(){return P});var f,D,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((D={})[58]="%3A",D[47]="%2F",D[63]="%3F",D[35]="%23",D[91]="%5B",D[93]="%5D",D[64]="%40",D[33]="%21",D[36]="%24",D[38]="%26",D[39]="%27",D[40]="%28",D[41]="%29",D[42]="%2A",D[43]="%2B",D[44]="%2C",D[59]="%3B",D[61]="%3D",D[32]="%20",D);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,o(86))},function(Ie,w,o){"use strict";o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f});let h={ctrlCmd:!1,alt:!1};var f;(function(D){D[D.NONE=0]="NONE",D[D.FIRST=1]="FIRST",D[D.SECOND=2]="SECOND",D[D.LAST=3]="LAST"})(f||(f={}))},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return f}),o.d(w,"language",function(){return D});var h=o(95),f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:h.a.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:h.a.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:h.a.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:h.a.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},D={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},function(Ie,w,o){"use strict";function h(D){return D&&typeof D.id=="string"}o.d(w,"b",function(){return h}),o.d(w,"a",function(){return f});let f={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},function(Ie,w,o){"use strict";(function(h){o.d(w,"a",function(){return P});var f,D,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((D={})[58]="%3A",D[47]="%2F",D[63]="%3F",D[35]="%23",D[91]="%5B",D[93]="%5D",D[64]="%40",D[33]="%21",D[36]="%24",D[38]="%26",D[39]="%27",D[40]="%28",D[41]="%29",D[42]="%2A",D[43]="%2B",D[44]="%2C",D[59]="%3B",D[61]="%3D",D[32]="%20",D);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,o(86))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o(214);let h="monaco-mouse-cursor-text"},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o.d(w,"c",function(){return W}),o.d(w,"b",function(){return Q});var h=o(0),f=o(6),D=o(12),H=o(39),E=o(56);let ge=new class{constructor(){this._onDidChangeLanguages=new f.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(y){return this._languages.push(y),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let C=0,S=this._languages.length;C<S;C++)if(this._languages[C]===y)return void this._languages.splice(C,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}};E.a.add("editor.modesRegistry",ge);let W="plaintext",Q=new D.r(W,1);ge.registerLanguage({id:W,extensions:[".txt"],aliases:[h.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),H.a.register(Q,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h}),o.d(w,"b",function(){return f});class h{constructor(H){this._prefix=H,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}let f=new h("id#")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E}),o.d(w,"c",function(){return ge});var h=o(18),f=o(23),D=o(14);let H=Object(h.c)("IWorkspaceEditService");class E{constructor(y){this.metadata=y}static convert(y){return y.edits.map(C=>{if(S=C,Object(D.i)(S)&&f.a.isUri(S.resource)&&Object(D.i)(S.edit))return new ge(C.resource,C.edit,C.modelVersionId,C.metadata);var S;if(function(P){return Object(D.i)(P)&&(Boolean(P.newUri)||Boolean(P.oldUri))}(C))return new W(C.oldUri,C.newUri,C.options,C.metadata);throw new Error("Unsupported edit")})}}class ge extends E{constructor(y,C,S,P){super(P),this.resource=y,this.textEdit=C,this.versionId=S,this.metadata=P}}class W extends E{constructor(y,C,S,P){super(P),this.oldResource=y,this.newResource=C,this.options=S,this.metadata=P}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h});class h{constructor(...D){this._entries=new Map;for(let[H,E]of D)this.set(H,E)}set(D,H){let E=this._entries.get(D);return this._entries.set(D,H),E}has(D){return this._entries.has(D)}get(D){return this._entries.get(D)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(18);let f=Object(h.c)("undoRedoService");class D{constructor(E,ge){this.resource=E,this.elements=ge}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D}),o.d(w,"c",function(){return H}),o.d(w,"b",function(){return E});var h=o(71),f=o(8);let D="$(";function H(ge){let W=ge.indexOf(D);return W===-1?{text:ge}:function(Q,y){let C=[],S="";function P(j){if(j){S+=j;for(let ie of j)C.push(N)}}let V,k,l=-1,T="",N=0,b=y,g=Q.length;for(P(Q.substr(0,y));b<g;)V=Q[b],k=Q[b+1],V===D[0]&&k===D[1]?(l=b,P(T),T=D,b++):V===")"&&l!==-1?(N+=b-l+1,l=-1,T=""):l!==-1?/^[a-z0-9\-]$/i.test(V)?T+=V:(P(T),l=-1,T=""):P(V),b++;return P(T),{text:S,codiconOffsets:C}}(ge,W)}function E(ge,W,Q=!1){let{text:y,codiconOffsets:C}=W;if(!C||C.length===0)return Object(h.g)(ge,y,Q);let S=Object(f.K)(y," "),P=y.length-S.length,V=Object(h.g)(ge,S,Q);if(V)for(let k of V){let l=C[k.start+P]+P;k.start+=l,k.end+=l}return V}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});var h=o(18);let f=Object(h.c)("textResourceConfigurationService"),D=Object(h.c)("textResourcePropertiesService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return C}),o(246);var h=o(2),f=o(11),D=o(14),H=o(61),E=o(69),ge=o(6),W=o(1),Q=o(44);let y=new ge.a;class C extends h.a{constructor(P,V,k){super(),this._state=3,this._onDidEnablementChange=this._register(new ge.a),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new ge.a),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new ge.a),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new ge.a),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new ge.a),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new h.b),this.orthogonalEndSashDisposables=this._register(new h.b),this.el=Object(W.p)(P,Object(W.a)(".monaco-sash")),f.f&&Object(W.e)(this.el,"mac"),this._register(Object(Q.a)(this.el,"mousedown")(this.onMouseDown,this)),this._register(Object(Q.a)(this.el,"dblclick")(this.onMouseDoubleClick,this)),this._register(H.b.addTarget(this.el)),this._register(Object(Q.a)(this.el,H.a.Start)(this.onTouchStart,this)),typeof k.size=="number"?(this.size=k.size,k.orientation===0?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=4,this._register(y.event(l=>{this.size=l,this.layout()}))),this.hidden=!1,this.layoutProvider=V,this.orthogonalStartSash=k.orthogonalStartSash,this.orthogonalEndSash=k.orthogonalEndSash,this.orientation=k.orientation||0,this.orientation===1?(Object(W.e)(this.el,"horizontal"),Object(W.Q)(this.el,"vertical")):(Object(W.Q)(this.el,"horizontal"),Object(W.e)(this.el,"vertical")),Object(W.ab)(this.el,"debug",!1),this.layout()}get state(){return this._state}set state(P){this._state!==P&&(Object(W.ab)(this.el,"disabled",P===0),Object(W.ab)(this.el,"minimum",P===1),Object(W.ab)(this.el,"maximum",P===2),this._state=P,this._onDidEnablementChange.fire(P))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(P){this.orthogonalStartSashDisposables.clear(),P?(this.orthogonalStartSashDisposables.add(P.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(P.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=P}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(P){this.orthogonalEndSashDisposables.clear(),P?(this.orthogonalEndSashDisposables.add(P.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(P.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=P}onMouseDown(P){W.b.stop(P,!1);let V=!1;if(!P.__orthogonalSashEvent){let q=this.getOrthogonalSash(P);q&&(V=!0,P.__orthogonalSashEvent=!0,q.onMouseDown(P))}if(this.linkedSash&&!P.__linkedSashEvent&&(P.__linkedSashEvent=!0,this.linkedSash.onMouseDown(P)),!this.state)return;let k=[...Object(W.D)("iframe"),...Object(W.D)("webview")];for(let q of k)q.style.pointerEvents="none";let l=new E.a(P),T=l.posx,N=l.posy,b=l.altKey,g={startX:T,currentX:T,startY:N,currentY:N,altKey:b};Object(W.e)(this.el,"active"),this._onDidStart.fire(g);let j=Object(W.v)(this.el),ie=()=>{let q="";q=V?"all-scroll":this.orientation===1?this.state===1?"s-resize":this.state===2?"n-resize":f.f?"row-resize":"ns-resize":this.state===1?"e-resize":this.state===2?"w-resize":f.f?"col-resize":"ew-resize",j.innerHTML=`* { cursor: ${q} !important; }`},U=new h.b;ie(),V||this.onDidEnablementChange(ie,null,U),Object(Q.a)(window,"mousemove")(q=>{W.b.stop(q,!1);let B=new E.a(q),se={startX:T,currentX:B.posx,startY:N,currentY:B.posy,altKey:b};this._onDidChange.fire(se)},null,U),Object(Q.a)(window,"mouseup")(q=>{W.b.stop(q,!1),this.el.removeChild(j),Object(W.Q)(this.el,"active"),this._onDidEnd.fire(),U.dispose();for(let B of k)B.style.pointerEvents="auto"},null,U)}onMouseDoubleClick(P){let V=this.getOrthogonalSash(P);V&&V._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}onTouchStart(P){W.b.stop(P);let V=[],k=P.pageX,l=P.pageY,T=P.altKey;this._onDidStart.fire({startX:k,currentX:k,startY:l,currentY:l,altKey:T}),V.push(Object(W.i)(this.el,H.a.Change,N=>{D.h(N.pageX)&&D.h(N.pageY)&&this._onDidChange.fire({startX:k,currentX:N.pageX,startY:l,currentY:N.pageY,altKey:T})})),V.push(Object(W.i)(this.el,H.a.End,N=>{this._onDidEnd.fire(),Object(h.f)(V)}))}layout(){if(this.orientation===0){let P=this.layoutProvider;this.el.style.left=P.getVerticalSashLeft(this)-this.size/2+"px",P.getVerticalSashTop&&(this.el.style.top=P.getVerticalSashTop(this)+"px"),P.getVerticalSashHeight&&(this.el.style.height=P.getVerticalSashHeight(this)+"px")}else{let P=this.layoutProvider;this.el.style.top=P.getHorizontalSashTop(this)-this.size/2+"px",P.getHorizontalSashLeft&&(this.el.style.left=P.getHorizontalSashLeft(this)+"px"),P.getHorizontalSashWidth&&(this.el.style.width=P.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}onOrthogonalStartSashEnablementChange(P){Object(W.ab)(this.el,"orthogonal-start",P!==0)}onOrthogonalEndSashEnablementChange(P){Object(W.ab)(this.el,"orthogonal-end",P!==0)}getOrthogonalSash(P){if(this.orientation===0){if(P.offsetY<=this.size)return this.orthogonalStartSash;if(P.offsetY>=this.el.clientHeight-this.size)return this.orthogonalEndSash}else{if(P.offsetX<=this.size)return this.orthogonalStartSash;if(P.offsetX>=this.el.clientWidth-this.size)return this.orthogonalEndSash}}dispose(){super.dispose(),this.el.remove()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D}),o(251),o(255),o(257);var h=o(17);let f=new class{constructor(){this.onDidChange=h.c.onDidRegister}getCSS(){let H=[];for(let E of h.c.all)H.push(D(E));return H.join(` -`)}};function D(H){let E=H.definition;for(;E instanceof h.a;)E=E.definition;return`.codicon-${H.id}:before { content: '${E.character}'; }`}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return E});var h=o(8);class f{constructor(W,Q,y,C){this.startColumn=W,this.endColumn=Q,this.className=y,this.type=C}static _equals(W,Q){return W.startColumn===Q.startColumn&&W.endColumn===Q.endColumn&&W.className===Q.className&&W.type===Q.type}static equalsArr(W,Q){let y=W.length;if(y!==Q.length)return!1;for(let C=0;C<y;C++)if(!f._equals(W[C],Q[C]))return!1;return!0}static filter(W,Q,y,C){if(W.length===0)return[];let S=[],P=0;for(let V=0,k=W.length;V<k;V++){let l=W[V],T=l.range;if(T.endLineNumber<Q||T.startLineNumber>Q||T.isEmpty()&&(l.type===0||l.type===3))continue;let N=T.startLineNumber===Q?T.startColumn:y,b=T.endLineNumber===Q?T.endColumn:C;S[P++]=new f(N,b,l.inlineClassName,l.type)}return S}static _typeCompare(W,Q){let y=[2,0,1,3];return y[W]-y[Q]}static compare(W,Q){if(W.startColumn===Q.startColumn){if(W.endColumn===Q.endColumn){let y=f._typeCompare(W.type,Q.type);return y===0?W.className<Q.className?-1:W.className>Q.className?1:0:y}return W.endColumn-Q.endColumn}return W.startColumn-Q.startColumn}}class D{constructor(W,Q,y,C){this.startOffset=W,this.endOffset=Q,this.className=y,this.metadata=C}}class H{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(W){let Q=0;for(let y=0,C=W.length;y<C;y++)Q|=W[y];return Q}consumeLowerThan(W,Q,y){for(;this.count>0&&this.stopOffsets[0]<W;){let C=0;for(;C+1<this.count&&this.stopOffsets[C]===this.stopOffsets[C+1];)C++;y.push(new D(Q,this.stopOffsets[C],this.classNames.join(" "),H._metadata(this.metadata))),Q=this.stopOffsets[C]+1,this.stopOffsets.splice(0,C+1),this.classNames.splice(0,C+1),this.metadata.splice(0,C+1),this.count-=C+1}return this.count>0&&Q<W&&(y.push(new D(Q,W-1,this.classNames.join(" "),H._metadata(this.metadata))),Q=W),Q}insert(W,Q,y){if(this.count===0||this.stopOffsets[this.count-1]<=W)this.stopOffsets.push(W),this.classNames.push(Q),this.metadata.push(y);else for(let C=0;C<this.count;C++)if(this.stopOffsets[C]>=W){this.stopOffsets.splice(C,0,W),this.classNames.splice(C,0,Q),this.metadata.splice(C,0,y);break}this.count++}}class E{static normalize(W,Q){if(Q.length===0)return[];let y=[],C=new H,S=0;for(let P=0,V=Q.length;P<V;P++){let k=Q[P],l=k.startColumn,T=k.endColumn,N=k.className,b=k.type===1?2:k.type===2?4:0;if(l>1){let ie=W.charCodeAt(l-2);h.F(ie)&&l--}if(T>1){let ie=W.charCodeAt(T-2);h.F(ie)&&T--}let g=l-1,j=T-2;S=C.consumeLowerThan(g,S,y),C.count===0&&(S=g),C.insert(j,N,b)}return C.consumeLowerThan(1073741824,S,y),y}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H});var h=o(46),f=o(17),D=o(8);class H{constructor(ge,W){this.supportCodicons=W,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",ge.appendChild(this.domNode)}get element(){return this.domNode}set(ge,W=[],Q="",y){ge||(ge=""),y&&(ge=H.escapeNewLines(ge,W)),this.didEverRender&&this.text===ge&&this.title===Q&&h.e(this.highlights,W)||(Array.isArray(W)||(W=[]),this.text=ge,this.title=Q,this.highlights=W,this.render())}render(){let ge="",W=0;for(let Q of this.highlights){if(Q.end===Q.start)continue;if(W<Q.start){ge+="<span>";let C=this.text.substring(W,Q.start);ge+=this.supportCodicons?Object(f.f)(Object(D.u)(C)):Object(D.u)(C),ge+="</span>",W=Q.end}Q.extraClasses?ge+=`<span class="highlight ${Q.extraClasses}">`:ge+='<span class="highlight">';let y=this.text.substring(Q.start,Q.end);ge+=this.supportCodicons?Object(f.f)(Object(D.u)(y)):Object(D.u)(y),ge+="</span>",W=Q.end}if(W<this.text.length){ge+="<span>";let Q=this.text.substring(W);ge+=this.supportCodicons?Object(f.f)(Object(D.u)(Q)):Object(D.u)(Q),ge+="</span>"}this.domNode.innerHTML=ge,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(ge,W){let Q=0,y=0;return ge.replace(/\r\n|\r|\n/g,(C,S)=>{y=C===`\r -`?-1:0,S+=Q;for(let P of W)P.end<=S||(P.start>=S&&(P.start+=y),P.end>=S&&(P.end+=y));return Q+=y,"\u23CE"})}}},,function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(11);let f=h.b.performance&&typeof h.b.performance.now=="function";class D{constructor(E){this._highResolution=f&&E,this._startTime=this._now(),this._stopTime=-1}static create(E=!0){return new D(E)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?h.b.performance.now():new Date().getTime()}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("labelService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E});var h=o(11),f=o(135);let D=h.f?1.5:1.35;class H{constructor(W){this.zoomLevel=W.zoomLevel,this.fontFamily=String(W.fontFamily),this.fontWeight=String(W.fontWeight),this.fontSize=W.fontSize,this.fontFeatureSettings=W.fontFeatureSettings,this.lineHeight=0|W.lineHeight,this.letterSpacing=W.letterSpacing}static createFromValidatedSettings(W,Q,y){let C=W.get(35),S=W.get(39),P=W.get(38),V=W.get(37),k=W.get(51),l=W.get(48);return H._create(C,S,P,V,k,l,Q,y)}static _create(W,Q,y,C,S,P,V,k){S===0?S=Math.round(D*y):S<8&&(S=8);let l=1+(k?0:.1*f.a.getZoomLevel());return new H({zoomLevel:V,fontFamily:W,fontWeight:Q,fontSize:y*=l,fontFeatureSettings:C,lineHeight:S*=l,letterSpacing:P})}getId(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class E extends H{constructor(W,Q){super(W),this.isTrusted=Q,this.isMonospace=W.isMonospace,this.typicalHalfwidthCharacterWidth=W.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=W.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=W.canUseHalfwidthRightwardsArrow,this.spaceWidth=W.spaceWidth,this.middotWidth=W.middotWidth,this.wsmiddotWidth=W.wsmiddotWidth,this.maxDigitWidth=W.maxDigitWidth}equals(W){return this.fontFamily===W.fontFamily&&this.fontWeight===W.fontWeight&&this.fontSize===W.fontSize&&this.fontFeatureSettings===W.fontFeatureSettings&&this.lineHeight===W.lineHeight&&this.letterSpacing===W.letterSpacing&&this.typicalHalfwidthCharacterWidth===W.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===W.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===W.canUseHalfwidthRightwardsArrow&&this.spaceWidth===W.spaceWidth&&this.middotWidth===W.middotWidth&&this.wsmiddotWidth===W.wsmiddotWidth&&this.maxDigitWidth===W.maxDigitWidth}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return P}),o.d(w,"a",function(){return b}),o.d(w,"d",function(){return se}),o.d(w,"c",function(){return ke});var h=o(0),f=o(6),D=o(2),H=o(46),E=o(15),ge=o(26),W=o(135),Q=o(160),y=o(128),C=o(56),S=o(189);let P=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new f.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(xe){this._tabFocus!==xe&&(this._tabFocus=xe,this._onDidChangeTabFocus.fire(this._tabFocus))}},V=Object.hasOwnProperty;class k{constructor(){this._values=[]}_read(Y){return this._values[Y]}get(Y){return this._values[Y]}_write(Y,Z){this._values[Y]=Z}}class l{constructor(){this._values=[]}_read(Y){return this._values[Y]}_write(Y,Z){this._values[Y]=Z}}class T{static readOptions(Y){let Z=Y,te=new l;for(let he of ge.k){let Ce=he.name==="_never_"?void 0:Z[he.name];te._write(he.id,Ce)}return te}static validateOptions(Y){let Z=new ge.j;for(let te of ge.k)Z._write(te.id,te.validate(Y._read(te.id)));return Z}static computeOptions(Y,Z){let te=new k;for(let he of ge.k)te._write(he.id,he.compute(Z,te,Y._read(he.id)));return te}static _deepEquals(Y,Z){if(typeof Y!="object"||typeof Z!="object")return Y===Z;if(Array.isArray(Y)||Array.isArray(Z))return!(!Array.isArray(Y)||!Array.isArray(Z))&&E.g(Y,Z);for(let te in Y)if(!T._deepEquals(Y[te],Z[te]))return!1;return!0}static checkEquals(Y,Z){let te=[],he=!1;for(let Ce of ge.k){let Ae=!T._deepEquals(Y._read(Ce.id),Z._read(Ce.id));te[Ce.id]=Ae,Ae&&(he=!0)}return he?new ge.b(te):null}}function N(xe){let Y=H.c(xe);return function(Z){let te=Z.wordWrap;te===!0?Z.wordWrap="on":te===!1&&(Z.wordWrap="off");let he=Z.lineNumbers;he===!0?Z.lineNumbers="on":he===!1&&(Z.lineNumbers="off"),Z.autoClosingBrackets===!1&&(Z.autoClosingBrackets="never",Z.autoClosingQuotes="never",Z.autoSurround="never"),Z.cursorBlinking==="visible"&&(Z.cursorBlinking="solid");let Ce=Z.renderWhitespace;Ce===!0?Z.renderWhitespace="boundary":Ce===!1&&(Z.renderWhitespace="none");let Ae=Z.renderLineHighlight;Ae===!0?Z.renderLineHighlight="line":Ae===!1&&(Z.renderLineHighlight="none");let L=Z.acceptSuggestionOnEnter;L===!0?Z.acceptSuggestionOnEnter="on":L===!1&&(Z.acceptSuggestionOnEnter="off");let nt=Z.tabCompletion;nt===!1?Z.tabCompletion="off":nt===!0&&(Z.tabCompletion="onlySnippets");let ct=Z.suggest;if(ct&&typeof ct.filteredTypes=="object"&&ct.filteredTypes){let G={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(S.b)(G,z=>{let J=ct.filteredTypes[z.key];J===!1&&(ct[z.value]=J)})}let Ye=Z.hover;Ye===!0?Z.hover={enabled:!0}:Ye===!1&&(Z.hover={enabled:!1});let ht=Z.parameterHints;ht===!0?Z.parameterHints={enabled:!0}:ht===!1&&(Z.parameterHints={enabled:!1});let fe=Z.autoIndent;fe===!0?Z.autoIndent="full":fe===!1&&(Z.autoIndent="advanced");let $=Z.matchBrackets;$===!0?Z.matchBrackets="always":$===!1&&(Z.matchBrackets="never")}(Y),Y}class b extends D.a{constructor(Y,Z){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new f.a),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=Y,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new ge.a,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=N(Z),this._readOptions=T.readOptions(this._rawOptions),this._validatedOptions=T.validateOptions(this._readOptions),this._register(W.a.onDidChangeZoomLevel(te=>this._recomputeOptions())),this._register(P.onDidChangeTabFocus(te=>this._recomputeOptions()))}observeReferenceElement(Y){}dispose(){super.dispose()}_recomputeOptions(){let Y=this.options,Z=this._computeInternalOptions();if(Y){let te=T.checkEquals(Y,Z);if(te===null)return;this.options=Z,this._onDidChangeFast.fire(te),this._onDidChange.fire(te)}else this.options=Z}getRawOptions(){return this._rawOptions}_computeInternalOptions(){let Y=this._getEnvConfiguration(),Z=Q.a.createFromValidatedSettings(this._validatedOptions,Y.zoomLevel,this.isSimpleWidget),te={memory:this._computeOptionsMemory,outerWidth:Y.outerWidth,outerHeight:Y.outerHeight,fontInfo:this.readConfiguration(Z),extraEditorClassName:Y.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:Y.emptySelectionClipboard,pixelRatio:Y.pixelRatio,tabFocusMode:P.getTabFocusMode(),accessibilitySupport:Y.accessibilitySupport};return T.computeOptions(this._validatedOptions,te)}static _subsetEquals(Y,Z){for(let te in Z)if(V.call(Z,te)){let he=Z[te],Ce=Y[te];if(Ce===he)continue;if(Array.isArray(Ce)&&Array.isArray(he)){if(!E.g(Ce,he))return!1;continue}if(Ce&&typeof Ce=="object"&&he&&typeof he=="object"){if(!this._subsetEquals(Ce,he))return!1;continue}return!1}return!0}updateOptions(Y){if(Y===void 0)return;let Z=N(Y);b._subsetEquals(this._rawOptions,Z)||(this._rawOptions=H.g(this._rawOptions,Z||{}),this._readOptions=T.readOptions(this._rawOptions),this._validatedOptions=T.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(Y){this._isDominatedByLongLines=Y,this._recomputeOptions()}setMaxLineNumber(Y){let Z=b._digitCount(Y);this._lineNumbersDigitCount!==Z&&(this._lineNumbersDigitCount=Z,this._recomputeOptions())}setViewLineCount(Y){this._viewLineCount!==Y&&(this._viewLineCount=Y,this._recomputeOptions())}static _digitCount(Y){let Z=0;for(;Y;)Y=Math.floor(Y/10),Z++;return Z||1}}let g=Object.freeze({id:"editor",order:5,type:"object",title:h.a("editorConfigurationTitle","Editor"),scope:5}),j=C.a.as(y.a.Configuration),ie=Object.assign(Object.assign({},g),{properties:{"editor.tabSize":{type:"number",default:ge.d.tabSize,minimum:1,markdownDescription:h.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ge.d.insertSpaces,markdownDescription:h.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ge.d.detectIndentation,markdownDescription:h.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ge.d.trimAutoWhitespace,description:h.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ge.d.largeFileOptimizations,description:h.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:h.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[h.a("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),h.a("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),h.a("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:h.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:h.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:h.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:h.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:h.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:h.a("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:h.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:h.a("codeLens","Controls whether the editor shows CodeLens.")}}});for(let xe of ge.k){let Y=xe.schema;if(Y!==void 0)if((U=Y).type!==void 0||U.anyOf!==void 0)ie.properties["editor."+xe.name]=Y;else for(let Z in Y)V.call(Y,Z)&&(ie.properties[Z]=Y[Z])}var U;let q=null;function B(){return q===null&&(q=Object.create(null),Object.keys(ie.properties).forEach(xe=>{q[xe]=!0})),q}function se(xe){return B()["editor."+xe]||!1}function ke(xe){return B()["diffEditor."+xe]||!1}j.registerConfiguration(ie)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ie}),o.d(w,"b",function(){return se});var h=o(46),f=o(2),D=o(61),H=o(1),E=o(6),ge=o(44),W=o(105),Q=o(170),y=o(99);function C(ke,xe){let Y=[];for(let Z of xe){if(ke.start>=Z.range.end)continue;if(ke.end<Z.range.start)break;let te=y.a.intersect(ke,Z.range);y.a.isEmpty(te)||Y.push({range:te,size:Z.size})}return Y}function S({start:ke,end:xe},Y){return{start:ke+Y,end:xe+Y}}class P{constructor(){this.groups=[],this._size=0}splice(xe,Y,Z=[]){let te=Z.length-Y,he=C({start:0,end:xe},this.groups),Ce=C({start:xe+Y,end:Number.POSITIVE_INFINITY},this.groups).map(L=>({range:S(L.range,te),size:L.size})),Ae=Z.map((L,nt)=>({range:{start:xe+nt,end:xe+nt+1},size:L.size}));this.groups=function(...L){return function(nt){let ct=[],Ye=null;for(let ht of nt){let fe=ht.range.start,$=ht.range.end,G=ht.size;Ye&&G===Ye.size?Ye.range.end=$:(Ye={range:{start:fe,end:$},size:G},ct.push(Ye))}return ct}(L.reduce((nt,ct)=>nt.concat(ct),[]))}(he,Ae,Ce),this._size=this.groups.reduce((L,nt)=>L+nt.size*(nt.range.end-nt.range.start),0)}get count(){let xe=this.groups.length;return xe?this.groups[xe-1].range.end:0}get size(){return this._size}indexAt(xe){if(xe<0)return-1;let Y=0,Z=0;for(let te of this.groups){let he=te.range.end-te.range.start,Ce=Z+he*te.size;if(xe<Ce)return Y+Math.floor((xe-Z)/te.size);Y+=he,Z=Ce}return Y}indexAfter(xe){return Math.min(this.indexAt(xe)+1,this.count)}positionAt(xe){if(xe<0)return-1;let Y=0,Z=0;for(let te of this.groups){let he=te.range.end-te.range.start,Ce=Z+he;if(xe<Ce)return Y+(xe-Z)*te.size;Y+=he*te.size,Z=Ce}return-1}}class V{constructor(xe){this.renderers=xe,this.cache=new Map}alloc(xe){let Y=this.getTemplateCache(xe).pop();if(!Y){let Z=Object(H.a)(".monaco-list-row");Y={domNode:Z,templateId:xe,templateData:this.getRenderer(xe).renderTemplate(Z)}}return Y}release(xe){xe&&this.releaseRow(xe)}releaseRow(xe){let{domNode:Y,templateId:Z}=xe;Y&&(Object(H.Q)(Y,"scrolling"),function(te){try{te.parentElement&&te.parentElement.removeChild(te)}catch(he){}}(Y)),this.getTemplateCache(Z).push(xe)}getTemplateCache(xe){let Y=this.cache.get(xe);return Y||(Y=[],this.cache.set(xe,Y)),Y}dispose(){this.cache.forEach((xe,Y)=>{for(let Z of xe)this.getRenderer(Y).disposeTemplate(Z.templateData),Z.domNode=null,Z.templateData=null}),this.cache.clear()}getRenderer(xe){let Y=this.renderers.get(xe);if(!Y)throw new Error("No renderer found for "+xe);return Y}}var k=o(98),l=o(15),T=o(125),N=o(20),b=o(34),g=function(ke,xe,Y,Z){var te,he=arguments.length,Ce=he<3?xe:Z===null?Z=Object.getOwnPropertyDescriptor(xe,Y):Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(ke,xe,Y,Z);else for(var Ae=ke.length-1;Ae>=0;Ae--)(te=ke[Ae])&&(Ce=(he<3?te(Ce):he>3?te(xe,Y,Ce):te(xe,Y))||Ce);return he>3&&Ce&&Object.defineProperty(xe,Y,Ce),Ce};let j={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:ke=>[ke],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0};class ie{constructor(xe){this.elements=xe}update(){}getData(){return this.elements}}class U{constructor(xe){this.elements=xe}update(){}getData(){return this.elements}}class q{constructor(){this.types=[],this.files=[]}update(xe){if(xe.types&&this.types.splice(0,this.types.length,...xe.types),xe.files){this.files.splice(0,this.files.length);for(let Y=0;Y<xe.files.length;Y++){let Z=xe.files.item(Y);Z&&(Z.size||Z.type)&&this.files.push(Z)}}}getData(){return{types:this.types,files:this.files}}}class B{constructor(xe){(xe==null?void 0:xe.getSetSize)?this.getSetSize=xe.getSetSize.bind(xe):this.getSetSize=(Y,Z,te)=>te,(xe==null?void 0:xe.getPosInSet)?this.getPosInSet=xe.getPosInSet.bind(xe):this.getPosInSet=(Y,Z)=>Z+1,(xe==null?void 0:xe.getRole)?this.getRole=xe.getRole.bind(xe):this.getRole=Y=>"listitem",(xe==null?void 0:xe.isChecked)?this.isChecked=xe.isChecked.bind(xe):this.isChecked=Y=>{}}}class se{constructor(xe,Y,Z,te=j){if(this.virtualDelegate=Y,this.domId="list_id_"+ ++se.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new N.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=f.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=f.a.None,this.onDragLeaveTimeout=f.a.None,this.disposables=new f.b,this._onDidChangeContentHeight=new E.a,this._horizontalScrolling=!1,te.horizontalScrolling&&te.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new P;for(let he of Z)this.renderers.set(he.templateId,he);this.cache=this.disposables.add(new V(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",H.e(this.domNode,this.domId),this.domNode.tabIndex=0,H.ab(this.domNode,"mouse-support",typeof te.mouseSupport!="boolean"||te.mouseSupport),this._horizontalScrolling=Object(h.f)(te,he=>he.horizontalScrolling,j.horizontalScrolling),H.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=te.additionalScrollHeight===void 0?0:te.additionalScrollHeight,this.accessibilityProvider=new B(te.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Object(h.f)(te,he=>he.transformOptimization,j.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(D.b.addTarget(this.rowsContainer)),this.scrollable=new Q.a(Object(h.f)(te,he=>he.smoothScrolling,!1)?125:0,he=>H.Y(he)),this.scrollableElement=this.disposables.add(new W.c(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:1,vertical:Object(h.f)(te,he=>he.verticalScrollMode,j.verticalScrollMode),useShadows:Object(h.f)(te,he=>he.useShadows,j.useShadows)},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),xe.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(ge.a)(this.rowsContainer,D.a.Change)(this.onTouchChange,this,this.disposables),Object(ge.a)(this.scrollableElement.getDomNode(),"scroll")(he=>he.target.scrollTop=0,null,this.disposables),E.b.map(Object(ge.a)(this.domNode,"dragover"),he=>this.toDragEvent(he))(this.onDragOver,this,this.disposables),E.b.map(Object(ge.a)(this.domNode,"drop"),he=>this.toDragEvent(he))(this.onDrop,this,this.disposables),Object(ge.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(ge.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(h.f)(te,he=>he.setRowLineHeight,j.setRowLineHeight),this.setRowHeight=Object(h.f)(te,he=>he.setRowHeight,j.setRowHeight),this.supportDynamicHeights=Object(h.f)(te,he=>he.supportDynamicHeights,j.supportDynamicHeights),this.dnd=Object(h.f)(te,he=>he.dnd,j.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(xe){if(xe!==this._horizontalScrolling){if(xe&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=xe,H.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(let Y of this.items)this.measureItemWidth(Y);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:H.B(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(xe){xe.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=xe.additionalScrollHeight),xe.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(xe.smoothScrolling?125:0),xe.horizontalScrolling!==void 0&&(this.horizontalScrolling=xe.horizontalScrolling)}splice(xe,Y,Z=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(xe,Y,Z)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(xe,Y,Z=[]){let te=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),he={start:xe,end:xe+Y},Ce=y.a.intersect(te,he);for(let ee=Ce.start;ee<Ce.end;ee++)this.removeItemFromDOM(ee);let Ae={start:xe+Y,end:this.items.length},L=y.a.intersect(Ae,te),nt=y.a.relativeComplement(Ae,te),ct=Z.map(ee=>({id:String(this.itemId++),element:ee,templateId:this.virtualDelegate.getTemplateId(ee),size:this.virtualDelegate.getHeight(ee),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(ee),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:f.a.None})),Ye;xe===0&&Y>=this.items.length?(this.rangeMap=new P,this.rangeMap.splice(0,0,ct),this.items=ct,Ye=[]):(this.rangeMap.splice(xe,Y,ct),Ye=this.items.splice(xe,Y,...ct));let ht=Z.length-Y,fe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),$=S(L,ht),G=y.a.intersect(fe,$);for(let ee=G.start;ee<G.end;ee++)this.updateItemInDOM(this.items[ee],ee);let z=y.a.relativeComplement($,fe);for(let ee of z)for(let de=ee.start;de<ee.end;de++)this.removeItemFromDOM(de);let J=nt.map(ee=>S(ee,ht)),Se=[{start:xe,end:xe+Z.length},...J].map(ee=>y.a.intersect(fe,ee)),A=this.getNextToLastElement(Se);for(let ee of Se)for(let de=ee.start;de<ee.end;de++)this.insertItemInDOM(de,A);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),Ye.map(ee=>ee.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=H.Y(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let xe=0;for(let Y of this.items)Y.width!==void 0&&(xe=Math.max(xe,Y.width));this.scrollWidth=xe,this.scrollableElement.setScrollDimensions({scrollWidth:xe===0?0:xe+10})}rerender(){if(this.supportDynamicHeights){for(let xe of this.items)xe.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(xe){return this.items[xe].element}domElement(xe){let Y=this.items[xe].row;return Y&&Y.domNode}elementHeight(xe){return this.items[xe].size}elementTop(xe){return this.rangeMap.positionAt(xe)}indexAt(xe){return this.rangeMap.indexAt(xe)}indexAfter(xe){return this.rangeMap.indexAfter(xe)}layout(xe,Y){let Z={height:typeof xe=="number"?xe:H.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Z.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Z),Y!==void 0&&(this.renderWidth=Y,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof Y=="number"?Y:H.B(this.domNode)}))}render(xe,Y,Z,te,he,Ce=!1){let Ae=this.getRenderRange(Y,Z),L=y.a.relativeComplement(Ae,xe),nt=y.a.relativeComplement(xe,Ae),ct=this.getNextToLastElement(L);if(Ce){let Ye=y.a.intersect(xe,Ae);for(let ht=Ye.start;ht<Ye.end;ht++)this.updateItemInDOM(this.items[ht],ht)}for(let Ye of L)for(let ht=Ye.start;ht<Ye.end;ht++)this.insertItemInDOM(ht,ct);for(let Ye of nt)for(let ht=Ye.start;ht<Ye.end;ht++)this.removeItemFromDOM(ht);te!==void 0&&(this.rowsContainer.style.left=`-${te}px`),this.rowsContainer.style.top=`-${Y}px`,this.horizontalScrolling&&he!==void 0&&(this.rowsContainer.style.width=Math.max(he,this.renderWidth)+"px"),this.lastRenderTop=Y,this.lastRenderHeight=Z}insertItemInDOM(xe,Y){let Z=this.items[xe];if(!Z.row){Z.row=this.cache.alloc(Z.templateId);let Ce=this.accessibilityProvider.getRole(Z.element)||"listitem";Z.row.domNode.setAttribute("role",Ce);let Ae=this.accessibilityProvider.isChecked(Z.element);Ae!==void 0&&Z.row.domNode.setAttribute("aria-checked",String(!!Ae))}Z.row.domNode.parentElement||(Y?this.rowsContainer.insertBefore(Z.row.domNode,Y):this.rowsContainer.appendChild(Z.row.domNode)),this.updateItemInDOM(Z,xe);let te=this.renderers.get(Z.templateId);if(!te)throw new Error("No renderer found for template id "+Z.templateId);te&&te.renderElement(Z.element,xe,Z.row.templateData,Z.size);let he=this.dnd.getDragURI(Z.element);if(Z.dragStartDisposable.dispose(),Z.row.domNode.draggable=!!he,he){let Ce=Object(ge.a)(Z.row.domNode,"dragstart");Z.dragStartDisposable=Ce(Ae=>this.onDragStart(Z.element,he,Ae))}this.horizontalScrolling&&(this.measureItemWidth(Z),this.eventuallyUpdateScrollWidth())}measureItemWidth(xe){if(!xe.row||!xe.row.domNode)return;xe.row.domNode.style.width=b.h?"-moz-fit-content":"fit-content",xe.width=H.B(xe.row.domNode);let Y=window.getComputedStyle(xe.row.domNode);Y.paddingLeft&&(xe.width+=parseFloat(Y.paddingLeft)),Y.paddingRight&&(xe.width+=parseFloat(Y.paddingRight)),xe.row.domNode.style.width=""}updateItemInDOM(xe,Y){xe.row.domNode.style.top=this.elementTop(Y)+"px",this.setRowHeight&&(xe.row.domNode.style.height=xe.size+"px"),this.setRowLineHeight&&(xe.row.domNode.style.lineHeight=xe.size+"px"),xe.row.domNode.setAttribute("data-index",""+Y),xe.row.domNode.setAttribute("data-last-element",Y===this.length-1?"true":"false"),xe.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(xe.element,Y,this.length))),xe.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(xe.element,Y))),xe.row.domNode.setAttribute("id",this.getElementDomId(Y)),H.ab(xe.row.domNode,"drop-target",xe.dropTarget)}removeItemFromDOM(xe){let Y=this.items[xe];Y.dragStartDisposable.dispose();let Z=this.renderers.get(Y.templateId);Y.row&&Z&&Z.disposeElement&&Z.disposeElement(Y.element,xe,Y.row.templateData,Y.size),this.cache.release(Y.row),Y.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(xe){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:xe})}get scrollTop(){return this.getScrollTop()}set scrollTop(xe){this.setScrollTop(xe)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return E.b.map(Object(ge.a)(this.domNode,"click"),xe=>this.toMouseEvent(xe))}get onMouseDblClick(){return E.b.map(Object(ge.a)(this.domNode,"dblclick"),xe=>this.toMouseEvent(xe))}get onMouseMiddleClick(){return E.b.filter(E.b.map(Object(ge.a)(this.domNode,"auxclick"),xe=>this.toMouseEvent(xe)),xe=>xe.browserEvent.button===1)}get onMouseDown(){return E.b.map(Object(ge.a)(this.domNode,"mousedown"),xe=>this.toMouseEvent(xe))}get onContextMenu(){return E.b.map(Object(ge.a)(this.domNode,"contextmenu"),xe=>this.toMouseEvent(xe))}get onTouchStart(){return E.b.map(Object(ge.a)(this.domNode,"touchstart"),xe=>this.toTouchEvent(xe))}get onTap(){return E.b.map(Object(ge.a)(this.rowsContainer,D.a.Tap),xe=>this.toGestureEvent(xe))}toMouseEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toTouchEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toGestureEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.initialTarget||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toDragEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}onScroll(xe){try{let Y=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(Y,xe.scrollTop,xe.height,xe.scrollLeft,xe.scrollWidth),this.supportDynamicHeights&&this._rerender(xe.scrollTop,xe.height)}catch(Y){throw console.error("Got bad scroll event:",xe),Y}}onTouchChange(xe){xe.preventDefault(),xe.stopPropagation(),this.scrollTop-=xe.translationY}onDragStart(xe,Y,Z){if(!Z.dataTransfer)return;let te=this.dnd.getDragElements(xe);if(Z.dataTransfer.effectAllowed="copyMove",Z.dataTransfer.setData(T.a.RESOURCES,JSON.stringify([Y])),Z.dataTransfer.setDragImage){let he;this.dnd.getDragLabel&&(he=this.dnd.getDragLabel(te,Z)),he===void 0&&(he=String(te.length));let Ce=H.a(".monaco-drag-image");Ce.textContent=he,document.body.appendChild(Ce),Z.dataTransfer.setDragImage(Ce,-10,-10),setTimeout(()=>document.body.removeChild(Ce),0)}this.currentDragData=new ie(te),T.c.CurrentDragAndDropData=new U(te),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Z)}onDragOver(xe){if(xe.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),T.c.CurrentDragAndDropData&&T.c.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(xe.browserEvent),!xe.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(T.c.CurrentDragAndDropData)this.currentDragData=T.c.CurrentDragAndDropData;else{if(!xe.browserEvent.dataTransfer.types)return!1;this.currentDragData=new q}let Y=this.dnd.onDragOver(this.currentDragData,xe.element,xe.index,xe.browserEvent);if(this.canDrop=typeof Y=="boolean"?Y:Y.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let Z;if(xe.browserEvent.dataTransfer.dropEffect=typeof Y!="boolean"&&Y.effect===0?"copy":"move",Z=typeof Y!="boolean"&&Y.feedback?Y.feedback:xe.index===void 0?[-1]:[xe.index],Z=Object(l.e)(Z).filter(Ce=>Ce>=-1&&Ce<this.length).sort((Ce,Ae)=>Ce-Ae),Z=Z[0]===-1?[-1]:Z,te=this.currentDragFeedback,he=Z,Array.isArray(te)&&Array.isArray(he)?Object(l.g)(te,he):te===he)return!0;var te,he;if(this.currentDragFeedback=Z,this.currentDragFeedbackDisposable.dispose(),Z[0]===-1)H.e(this.domNode,"drop-target"),H.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(f.h)(()=>{H.Q(this.domNode,"drop-target"),H.Q(this.rowsContainer,"drop-target")});else{for(let Ce of Z){let Ae=this.items[Ce];Ae.dropTarget=!0,Ae.row&&Ae.row.domNode&&H.e(Ae.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(f.h)(()=>{for(let Ce of Z){let Ae=this.items[Ce];Ae.dropTarget=!1,Ae.row&&Ae.row.domNode&&H.Q(Ae.row.domNode,"drop-target")}})}return!0}onDragLeave(){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(N.g)(()=>this.clearDragOverFeedback(),100)}onDrop(xe){if(!this.canDrop)return;let Y=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,T.c.CurrentDragAndDropData=void 0,Y&&xe.browserEvent.dataTransfer&&(xe.browserEvent.preventDefault(),Y.update(xe.browserEvent.dataTransfer),this.dnd.drop(Y,xe.element,xe.index,xe.browserEvent))}onDragEnd(xe){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,T.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(xe)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=f.a.None}setupDragAndDropScrollTopAnimation(xe){if(!this.dragOverAnimationDisposable){let Y=H.F(this.domNode).top;this.dragOverAnimationDisposable=H.o(this.animateDragAndDropScrollTop.bind(this,Y))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(N.g)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=xe.pageY}animateDragAndDropScrollTop(xe){if(this.dragOverMouseY===void 0)return;let Y=this.dragOverMouseY-xe,Z=this.renderHeight-35;Y<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(Y-35))):Y>Z&&(this.scrollTop+=Math.min(14,Math.floor(.3*(Y-Z))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(xe){let Y=this.scrollableElement.getDomNode(),Z=xe;for(;Z instanceof HTMLElement&&Z!==this.rowsContainer&&Y.contains(Z);){let te=Z.getAttribute("data-index");if(te){let he=Number(te);if(!isNaN(he))return he}Z=Z.parentElement}}getRenderRange(xe,Y){return{start:this.rangeMap.indexAt(xe),end:this.rangeMap.indexAfter(xe+Y-1)}}_rerender(xe,Y){let Z=this.getRenderRange(xe,Y),te,he;xe===this.elementTop(Z.start)?(te=Z.start,he=0):Z.end-Z.start>1&&(te=Z.start+1,he=this.elementTop(te)-xe);let Ce=0;for(;;){let Ae=this.getRenderRange(xe,Y),L=!1;for(let nt=Ae.start;nt<Ae.end;nt++){let ct=this.probeDynamicHeight(nt);ct!==0&&this.rangeMap.splice(nt,1,[this.items[nt]]),Ce+=ct,L=L||ct!==0}if(!L){Ce!==0&&this.eventuallyUpdateScrollDimensions();let nt=y.a.relativeComplement(Z,Ae);for(let Ye of nt)for(let ht=Ye.start;ht<Ye.end;ht++)this.items[ht].row&&this.removeItemFromDOM(ht);let ct=y.a.relativeComplement(Ae,Z);for(let Ye of ct)for(let ht=Ye.start;ht<Ye.end;ht++){let fe=ht+1,$=fe<this.items.length?this.items[fe].row:null,G=$?$.domNode:null;this.insertItemInDOM(ht,G)}for(let Ye=Ae.start;Ye<Ae.end;Ye++)this.items[Ye].row&&this.updateItemInDOM(this.items[Ye],Ye);return typeof te=="number"&&(this.scrollTop=this.elementTop(te)-he),void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(xe){let Y=this.items[xe];if(!Y.hasDynamicHeight||Y.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(Y.element))return 0;let Z=Y.size;if(!this.setRowHeight&&Y.row&&Y.row.domNode){let Ce=Y.row.domNode.offsetHeight;return Y.size=Ce,Y.lastDynamicHeightWidth=this.renderWidth,Ce-Z}let te=this.cache.alloc(Y.templateId);te.domNode.style.height="",this.rowsContainer.appendChild(te.domNode);let he=this.renderers.get(Y.templateId);return he&&(he.renderElement(Y.element,xe,te.templateData,void 0),he.disposeElement&&he.disposeElement(Y.element,xe,te.templateData,void 0)),Y.size=te.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(Y.element,Y.size),Y.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(te.domNode),this.cache.release(te),Y.size-Z}getNextToLastElement(xe){let Y=xe[xe.length-1];if(!Y)return null;let Z=this.items[Y.end];return Z&&Z.row?Z.row.domNode:null}getElementDomId(xe){return`${this.domId}_${xe}`}dispose(){if(this.items){for(let xe of this.items)if(xe.row){let Y=this.renderers.get(xe.row.templateId);Y&&Y.disposeTemplate(xe.row.templateData)}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(f.f)(this.disposables)}}se.InstanceCount=0,g([k.a],se.prototype,"onMouseClick",null),g([k.a],se.prototype,"onMouseDblClick",null),g([k.a],se.prototype,"onMouseMiddleClick",null),g([k.a],se.prototype,"onMouseDown",null),g([k.a],se.prototype,"onContextMenu",null),g([k.a],se.prototype,"onTouchStart",null),g([k.a],se.prototype,"onTap",null)},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h});class h{constructor(D,H=[],E=!1){this.ctor=D,this.staticArguments=H,this.supportsDelayedInstantiation=E}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return hr}),o(208);var h=o(0),f=o(1),D=o(13),H=o(6),E=o(2),ge=o(45),W=o(87),Q=o(4),y=o(41),C=o(21),S=o(35),P=o(11),V=o(61),k=o(69),l=o(20),T=o(34),N=o(103);class b{constructor(i,a){this.x=i,this.y=a}toClientCoordinates(){return new g(this.x-f.d.scrollX,this.y-f.d.scrollY)}}class g{constructor(i,a){this.clientX=i,this.clientY=a}toPageCoordinates(){return new b(this.clientX+f.d.scrollX,this.clientY+f.d.scrollY)}}class j{constructor(i,a,_,R){this.x=i,this.y=a,this.width=_,this.height=R}}function ie(Zt){let i=f.C(Zt);return new j(i.left,i.top,i.width,i.height)}class U extends k.a{constructor(i,a){super(i),this.pos=new b(this.posx,this.posy),this.editorPos=ie(a)}}class q{constructor(i){this._editorViewDomNode=i}_create(i){return new U(i,this._editorViewDomNode)}onContextMenu(i,a){return f.i(i,"contextmenu",_=>{a(this._create(_))})}onMouseUp(i,a){return f.i(i,"mouseup",_=>{a(this._create(_))})}onMouseDown(i,a){return f.i(i,"mousedown",_=>{a(this._create(_))})}onMouseLeave(i,a){return f.j(i,_=>{a(this._create(_))})}onMouseMoveThrottled(i,a,_,R){return f.l(i,"mousemove",a,(K,we)=>_(K,this._create(we)),R)}}class B{constructor(i){this._editorViewDomNode=i}_create(i){return new U(i,this._editorViewDomNode)}onPointerUp(i,a){return f.i(i,"pointerup",_=>{a(this._create(_))})}onPointerDown(i,a){return f.i(i,"pointerdown",_=>{a(this._create(_))})}onPointerLeave(i,a){return f.k(i,_=>{a(this._create(_))})}onPointerMoveThrottled(i,a,_,R){return f.l(i,"pointermove",a,(K,we)=>_(K,this._create(we)),R)}}class se extends E.a{constructor(i){super(),this._editorViewDomNode=i,this._globalMouseMoveMonitor=this._register(new N.a),this._keydownListener=null}startMonitoring(i,a,_,R,K){this._keydownListener=f.n(document,"keydown",we=>{we.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0)},!0),this._globalMouseMoveMonitor.startMonitoring(i,a,(we,Pe)=>_(we,new U(Pe,this._editorViewDomNode)),R,()=>{this._keydownListener.dispose(),K()})}}class ke extends E.a{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onConfigurationChanged(i){return!1}onCursorStateChanged(i){return!1}onDecorationsChanged(i){return!1}onFlushed(i){return!1}onFocusChanged(i){return!1}onLanguageConfigurationChanged(i){return!1}onLineMappingChanged(i){return!1}onLinesChanged(i){return!1}onLinesDeleted(i){return!1}onLinesInserted(i){return!1}onRevealRangeRequest(i){return!1}onScrollChanged(i){return!1}onThemeChanged(i){return!1}onTokensChanged(i){return!1}onTokensColorsChanged(i){return!1}onZonesChanged(i){return!1}handleEvents(i){let a=!1;for(let _=0,R=i.length;_<R;_++){let K=i[_];switch(K.type){case 0:this.onConfigurationChanged(K)&&(a=!0);break;case 1:this.onCursorStateChanged(K)&&(a=!0);break;case 2:this.onDecorationsChanged(K)&&(a=!0);break;case 3:this.onFlushed(K)&&(a=!0);break;case 4:this.onFocusChanged(K)&&(a=!0);break;case 5:this.onLanguageConfigurationChanged(K)&&(a=!0);break;case 6:this.onLineMappingChanged(K)&&(a=!0);break;case 7:this.onLinesChanged(K)&&(a=!0);break;case 8:this.onLinesDeleted(K)&&(a=!0);break;case 9:this.onLinesInserted(K)&&(a=!0);break;case 10:this.onRevealRangeRequest(K)&&(a=!0);break;case 11:this.onScrollChanged(K)&&(a=!0);break;case 13:this.onTokensChanged(K)&&(a=!0);break;case 12:this.onThemeChanged(K)&&(a=!0);break;case 14:this.onTokensColorsChanged(K)&&(a=!0);break;case 15:this.onZonesChanged(K)&&(a=!0);break;default:console.info("View received unknown event: "),console.info(K)}}a&&(this._shouldRender=!0)}}class xe extends ke{constructor(i){super(),this._context=i,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class Y{static write(i,a){S.a,i.setAttribute("data-mprt",String(a))}static read(i){let a=i.getAttribute("data-mprt");return a===null?0:parseInt(a,10)}static collect(i,a){let _=[],R=0;for(;i&&i!==document.body&&i!==a;)i.nodeType===i.ELEMENT_NODE&&(_[R++]=this.read(i)),i=i.parentElement;let K=new Uint8Array(R);for(let we=0;we<R;we++)K[we]=_[R-we-1];return K}}class Z extends class{constructor(i,a){this._viewLayout=i,this.viewportData=a,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let _=this._viewLayout.getCurrentViewport();this.scrollTop=_.top,this.scrollLeft=_.left,this.viewportWidth=_.width,this.viewportHeight=_.height}getScrolledTopFromAbsoluteTop(i){return i-this.scrollTop}getVerticalOffsetForLineNumber(i){return this._viewLayout.getVerticalOffsetForLineNumber(i)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}{constructor(i,a,_){super(i,a),this._viewLines=_}linesVisibleRangesForRange(i,a){return this._viewLines.linesVisibleRangesForRange(i,a)}visibleRangeForPosition(i){return this._viewLines.visibleRangeForPosition(i)}}class te{constructor(i,a,_){this.outsideRenderedLine=i,this.lineNumber=a,this.ranges=_}}class he{constructor(i,a){this.left=Math.round(i),this.width=Math.round(a)}toString(){return`[${this.left},${this.width}]`}}class Ce{constructor(i,a){this.outsideRenderedLine=i,this.left=Math.round(a)}}class Ae{constructor(i,a){this.outsideRenderedLine=i,this.ranges=a}}class L{constructor(i,a){this.left=i,this.width=a}toString(){return`[${this.left},${this.width}]`}static compare(i,a){return i.left-a.left}}class nt{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(i,a){i.selectNodeContents(a)}static _readClientRects(i,a,_,R,K){let we=this._createRange();try{return we.setStart(i,a),we.setEnd(_,R),we.getClientRects()}catch(Pe){return null}finally{this._detachRange(we,K)}}static _mergeAdjacentRanges(i){if(i.length===1)return[new he(i[0].left,i[0].width)];i.sort(L.compare);let a=[],_=0,R=i[0].left,K=i[0].width;for(let we=1,Pe=i.length;we<Pe;we++){let Ve=i[we],Je=Ve.left,at=Ve.width;R+K+.9>=Je?K=Math.max(K,Je+at-R):(a[_++]=new he(R,K),R=Je,K=at)}return a[_++]=new he(R,K),a}static _createHorizontalRangesFromClientRects(i,a){if(!i||i.length===0)return null;let _=[];for(let R=0,K=i.length;R<K;R++){let we=i[R];_[R]=new L(Math.max(0,we.left-a),we.width)}return this._mergeAdjacentRanges(_)}static readHorizontalRanges(i,a,_,R,K,we,Pe){let Ve=i.children.length-1;if(0>Ve)return null;if((a=Math.min(Ve,Math.max(0,a)))===(R=Math.min(Ve,Math.max(0,R)))&&_===K&&_===0){let Bt=i.children[a].getClientRects();return this._createHorizontalRangesFromClientRects(Bt,we)}a!==R&&R>0&&K===0&&(R--,K=1073741824);let Je=i.children[a].firstChild,at=i.children[R].firstChild;if(Je&&at||(!Je&&_===0&&a>0&&(Je=i.children[a-1].firstChild,_=1073741824),!at&&K===0&&R>0&&(at=i.children[R-1].firstChild,K=1073741824)),!Je||!at)return null;_=Math.min(Je.textContent.length,Math.max(0,_)),K=Math.min(at.textContent.length,Math.max(0,K));let bt=this._readClientRects(Je,_,at,K,Pe);return this._createHorizontalRangesFromClientRects(bt,we)}}var ct=o(155),Ye=o(91),ht=o(19),fe=o(26);let $=!!P.g||!(P.d||T.h||T.j),G=!0,z=T.f;class J{constructor(i,a){this._domNode=i,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=a}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class Se{constructor(i,a){this.themeType=a;let _=i.options,R=_.get(36);this.renderWhitespace=_.get(80),this.renderControlCharacters=_.get(74),this.spaceWidth=R.spaceWidth,this.middotWidth=R.middotWidth,this.wsmiddotWidth=R.wsmiddotWidth,this.useMonospaceOptimizations=R.isMonospace&&!_.get(24),this.canUseHalfwidthRightwardsArrow=R.canUseHalfwidthRightwardsArrow,this.lineHeight=_.get(51),this.stopRenderingLineAfter=_.get(95),this.fontLigatures=_.get(37)}equals(i){return this.themeType===i.themeType&&this.renderWhitespace===i.renderWhitespace&&this.renderControlCharacters===i.renderControlCharacters&&this.spaceWidth===i.spaceWidth&&this.middotWidth===i.middotWidth&&this.wsmiddotWidth===i.wsmiddotWidth&&this.useMonospaceOptimizations===i.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===i.canUseHalfwidthRightwardsArrow&&this.lineHeight===i.lineHeight&&this.stopRenderingLineAfter===i.stopRenderingLineAfter&&this.fontLigatures===i.fontLigatures}}class A{constructor(i){this._options=i,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(i){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(S.b)(i)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(i){this._isMaybeInvalid=!0,this._options=i}onSelectionChanged(){return!(!z&&this._options.themeType!==ht.b&&this._options.renderWhitespace!=="selection")&&(this._isMaybeInvalid=!0,!0)}renderLine(i,a,_,R){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;let K=_.getViewLineRenderingData(i),we=this._options,Pe=ct.a.filter(K.inlineDecorations,i,K.minColumn,K.maxColumn),Ve=null;if(z||we.themeType===ht.b||this._options.renderWhitespace==="selection"){let Bt=_.selections;for(let Pt of Bt){if(Pt.endLineNumber<i||Pt.startLineNumber>i)continue;let ni=Pt.startLineNumber===i?Pt.startColumn:K.minColumn,Ci=Pt.endLineNumber===i?Pt.endColumn:K.maxColumn;ni<Ci&&(we.themeType===ht.b||this._options.renderWhitespace!=="selection"?Pe.push(new ct.a(ni,Ci,"inline-selected-text",0)):(Ve||(Ve=[]),Ve.push(new Ye.b(ni-1,Ci-1))))}}let Je=new Ye.c(we.useMonospaceOptimizations,we.canUseHalfwidthRightwardsArrow,K.content,K.continuesWithWrappedLine,K.isBasicASCII,K.containsRTL,K.minColumn-1,K.tokens,Pe,K.tabSize,K.startVisibleColumn,we.spaceWidth,we.middotWidth,we.wsmiddotWidth,we.stopRenderingLineAfter,we.renderWhitespace,we.renderControlCharacters,we.fontLigatures!==fe.e.OFF,Ve);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Je))return!1;R.appendASCIIString('<div style="top:'),R.appendASCIIString(String(a)),R.appendASCIIString("px;height:"),R.appendASCIIString(String(this._options.lineHeight)),R.appendASCIIString('px;" class="'),R.appendASCIIString(A.CLASS_NAME),R.appendASCIIString('">');let at=Object(Ye.d)(Je,R);R.appendASCIIString("</div>");let bt=null;return G&&$&&K.isBasicASCII&&we.useMonospaceOptimizations&&at.containsForeignElements===0&&K.content.length<300&&Je.lineTokens.getCount()<100&&(bt=new ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Je,at.characterMapping)),bt||(bt=$e(this._renderedViewLine?this._renderedViewLine.domNode:null,Je,at.characterMapping,at.containsRTL,at.containsForeignElements)),this._renderedViewLine=bt,!0}layoutLine(i,a){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(a),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof ee}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof ee?this._renderedViewLine.monospaceAssumptionsAreValid():G}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof ee&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(i,a,_){if(!this._renderedViewLine)return null;i|=0,a|=0,i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i)),a=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,a));let R=0|this._renderedViewLine.input.stopRenderingLineAfter,K=!1;R!==-1&&i>R+1&&a>R+1&&(K=!0),R!==-1&&i>R+1&&(i=R+1),R!==-1&&a>R+1&&(a=R+1);let we=this._renderedViewLine.getVisibleRangesForRange(i,a,_);return we&&we.length>0?new Ae(K,we):null}getColumnOfNodeOffset(i,a,_){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(i,a,_):1}}A.CLASS_NAME="view-line";class ee{constructor(i,a,_){this.domNode=i,this.input=a,this._characterMapping=_,this._charWidth=a.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return G;let i=this.getWidth(),a=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(i-a)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),G=!1),G}toSlowRenderedLine(){return $e(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(i,a,_){let R=this._getCharPosition(i),K=this._getCharPosition(a);return[new he(R,K-R)]}_getCharPosition(i){let a=this._characterMapping.getAbsoluteOffsets();return a.length===0?0:Math.round(this._charWidth*a[i-1])}getColumnOfNodeOffset(i,a,_){let R=a.textContent.length,K=-1;for(;a;)a=a.previousSibling,K++;return this._characterMapping.partDataToCharOffset(K,R,_)+1}}class de{constructor(i,a,_,R,K){if(this.domNode=i,this.input=a,this._characterMapping=_,this._isWhitespaceOnly=/^\s*$/.test(a.lineContent),this._containsForeignElements=K,this._cachedWidth=-1,this._pixelOffsetCache=null,!R||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let we=0,Pe=this._characterMapping.length;we<=Pe;we++)this._pixelOffsetCache[we]=-1}}_getReadingTarget(i){return i.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(i,a,_){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){let R=this._readPixelOffset(this.domNode,i,_);if(R===-1)return null;let K=this._readPixelOffset(this.domNode,a,_);return K===-1?null:[new he(R,K-R)]}return this._readVisibleRangesForRange(this.domNode,i,a,_)}_readVisibleRangesForRange(i,a,_,R){if(a===_){let K=this._readPixelOffset(i,a,R);return K===-1?null:[new he(K,0)]}return this._readRawVisibleRangesForRange(i,a,_,R)}_readPixelOffset(i,a,_){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();let R=this._getReadingTarget(i);return R.firstChild?R.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){let R=this._pixelOffsetCache[a];if(R!==-1)return R;let K=this._actualReadPixelOffset(i,a,_);return this._pixelOffsetCache[a]=K,K}return this._actualReadPixelOffset(i,a,_)}_actualReadPixelOffset(i,a,_){if(this._characterMapping.length===0){let Je=nt.readHorizontalRanges(this._getReadingTarget(i),0,0,0,0,_.clientRectDeltaLeft,_.endNode);return Je&&Je.length!==0?Je[0].left:-1}if(a===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();let R=this._characterMapping.charOffsetToPartData(a-1),K=Ye.a.getPartIndex(R),we=Ye.a.getCharIndex(R),Pe=nt.readHorizontalRanges(this._getReadingTarget(i),K,we,K,we,_.clientRectDeltaLeft,_.endNode);if(!Pe||Pe.length===0)return-1;let Ve=Pe[0].left;if(this.input.isBasicASCII){let Je=this._characterMapping.getAbsoluteOffsets(),at=Math.round(this.input.spaceWidth*Je[a-1]);if(Math.abs(at-Ve)<=1)return at}return Ve}_readRawVisibleRangesForRange(i,a,_,R){if(a===1&&_===this._characterMapping.length)return[new he(0,this.getWidth())];let K=this._characterMapping.charOffsetToPartData(a-1),we=Ye.a.getPartIndex(K),Pe=Ye.a.getCharIndex(K),Ve=this._characterMapping.charOffsetToPartData(_-1),Je=Ye.a.getPartIndex(Ve),at=Ye.a.getCharIndex(Ve);return nt.readHorizontalRanges(this._getReadingTarget(i),we,Pe,Je,at,R.clientRectDeltaLeft,R.endNode)}getColumnOfNodeOffset(i,a,_){let R=a.textContent.length,K=-1;for(;a;)a=a.previousSibling,K++;return this._characterMapping.partDataToCharOffset(K,R,_)+1}}class Oe extends de{_readVisibleRangesForRange(i,a,_,R){let K=super._readVisibleRangesForRange(i,a,_,R);if(!K||K.length===0||a===_||a===1&&_===this._characterMapping.length)return K;if(!this.input.containsRTL){let we=this._readPixelOffset(i,_,R);if(we!==-1){let Pe=K[K.length-1];Pe.left<we&&(Pe.width=we-Pe.left)}}return K}}let $e=T.l?pt:it;function pt(Zt,i,a,_,R){return new Oe(Zt,i,a,_,R)}function it(Zt,i,a,_,R){return new de(Zt,i,a,_,R)}var At=o(9),Nt=o(3),_i=o(22);class wt{constructor(i,a){this.lastViewCursorsRenderData=i,this.lastTextareaPosition=a}}class Ni{constructor(i,a,_=0,R=null,K=null,we=null){this.element=i,this.type=a,this.mouseColumn=_,this.position=R,!K&&R&&(K=new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column)),this.range=K,this.detail=we}static _typeToString(i){return i===1?"TEXTAREA":i===2?"GUTTER_GLYPH_MARGIN":i===3?"GUTTER_LINE_NUMBERS":i===4?"GUTTER_LINE_DECORATIONS":i===5?"GUTTER_VIEW_ZONE":i===6?"CONTENT_TEXT":i===7?"CONTENT_EMPTY":i===8?"CONTENT_VIEW_ZONE":i===9?"CONTENT_WIDGET":i===10?"OVERVIEW_RULER":i===11?"SCROLLBAR":i===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(i){return this._typeToString(i.type)+": "+i.position+" - "+i.range+" - "+i.detail}toString(){return Ni.toString(this)}}class pi{static isTextArea(i){return i.length===2&&i[0]===3&&i[1]===6}static isChildOfViewLines(i){return i.length>=4&&i[0]===3&&i[3]===7}static isStrictChildOfViewLines(i){return i.length>4&&i[0]===3&&i[3]===7}static isChildOfScrollableElement(i){return i.length>=2&&i[0]===3&&i[1]===5}static isChildOfMinimap(i){return i.length>=2&&i[0]===3&&i[1]===8}static isChildOfContentWidgets(i){return i.length>=4&&i[0]===3&&i[3]===1}static isChildOfOverflowingContentWidgets(i){return i.length>=1&&i[0]===2}static isChildOfOverlayWidgets(i){return i.length>=2&&i[0]===3&&i[1]===4}}class et{constructor(i,a,_){this.model=i.model;let R=i.configuration.options;this.layoutInfo=R.get(117),this.viewDomNode=a.viewDomNode,this.lineHeight=R.get(51),this.typicalHalfwidthCharacterWidth=R.get(36).typicalHalfwidthCharacterWidth,this.lastRenderData=_,this._context=i,this._viewHelper=a}getZoneAtCoord(i){return et.getZoneAtCoord(this._context,i)}static getZoneAtCoord(i,a){let _=i.viewLayout.getWhitespaceAtVerticalOffset(a);if(_){let R,K=_.verticalOffset+_.height/2,we=i.model.getLineCount(),Pe=null,Ve=null;return _.afterLineNumber!==we&&(Ve=new At.a(_.afterLineNumber+1,1)),_.afterLineNumber>0&&(Pe=new At.a(_.afterLineNumber,i.model.getLineMaxColumn(_.afterLineNumber))),R=Ve===null?Pe:Pe===null?Ve:a<K?Pe:Ve,{viewZoneId:_.id,afterLineNumber:_.afterLineNumber,positionBefore:Pe,positionAfter:Ve,position:R}}return null}getFullLineRangeAtCoord(i){if(this._context.viewLayout.isAfterLines(i)){let R=this._context.model.getLineCount(),K=this._context.model.getLineMaxColumn(R);return{range:new Nt.a(R,K,R,K),isAfterLines:!0}}let a=this._context.viewLayout.getLineNumberAtVerticalOffset(i),_=this._context.model.getLineMaxColumn(a);return{range:new Nt.a(a,1,a,_),isAfterLines:!1}}getLineNumberAtVerticalOffset(i){return this._context.viewLayout.getLineNumberAtVerticalOffset(i)}isAfterLines(i){return this._context.viewLayout.isAfterLines(i)}getVerticalOffsetForLineNumber(i){return this._context.viewLayout.getVerticalOffsetForLineNumber(i)}findAttribute(i,a){return et._findAttribute(i,a,this._viewHelper.viewDomNode)}static _findAttribute(i,a,_){for(;i&&i!==document.body;){if(i.hasAttribute&&i.hasAttribute(a))return i.getAttribute(a);if(i===_)return null;i=i.parentNode}return null}getLineWidth(i){return this._viewHelper.getLineWidth(i)}visibleRangeForPosition(i,a){return this._viewHelper.visibleRangeForPosition(i,a)}getPositionFromDOMInfo(i,a){return this._viewHelper.getPositionFromDOMInfo(i,a)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class Wt extends class{constructor(i,a,_){this.editorPos=a,this.pos=_,this.mouseVerticalOffset=Math.max(0,i.getCurrentScrollTop()+_.y-a.y),this.mouseContentHorizontalOffset=i.getCurrentScrollLeft()+_.x-a.x-i.layoutInfo.contentLeft,this.isInMarginArea=_.x-a.x<i.layoutInfo.contentLeft&&_.x-a.x>=i.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Ai._getMouseColumn(this.mouseContentHorizontalOffset,i.typicalHalfwidthCharacterWidth))}}{constructor(i,a,_,R){super(i,a,_),this._ctx=i,R?(this.target=R,this.targetPath=Y.collect(R,i.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} - target: ${this.target?this.target.outerHTML:null}`}fulfill(i,a=null,_=null,R=null){let K=this.mouseColumn;return a&&a.column<this._ctx.model.getLineMaxColumn(a.lineNumber)&&(K=_i.a.visibleColumnFromColumn(this._ctx.model.getLineContent(a.lineNumber),a.column,this._ctx.model.getTextModelOptions().tabSize)+1),new Ni(this.target,i,K,a,_,R)}withTarget(i){return new Wt(this._ctx,this.editorPos,this.pos,i)}}let Li={isAfterLines:!0};function Ii(Zt){return{isAfterLines:!1,horizontalDistanceToText:Zt}}class Ai{constructor(i,a){this._context=i,this._viewHelper=a}mouseTargetIsWidget(i){let a=i.target,_=Y.collect(a,this._viewHelper.viewDomNode);return!(!pi.isChildOfContentWidgets(_)&&!pi.isChildOfOverflowingContentWidgets(_))||!!pi.isChildOfOverlayWidgets(_)}createMouseTarget(i,a,_,R){let K=new et(this._context,this._viewHelper,i),we=new Wt(K,a,_,R);try{return Ai._createMouseTarget(K,we,!1)}catch(Pe){return we.fulfill(0)}}static _createMouseTarget(i,a,_){if(a.target===null){if(_)return a.fulfill(0);let we=Ai._doHitTest(i,a);return we.position?Ai.createMouseTargetFromHitTestPosition(i,a,we.position.lineNumber,we.position.column):this._createMouseTarget(i,a.withTarget(we.hitTarget),!0)}let R=a,K=null;return K=K||Ai._hitTestContentWidget(i,R),K=K||Ai._hitTestOverlayWidget(i,R),K=K||Ai._hitTestMinimap(i,R),K=K||Ai._hitTestScrollbarSlider(i,R),K=K||Ai._hitTestViewZone(i,R),K=K||Ai._hitTestMargin(i,R),K=K||Ai._hitTestViewCursor(i,R),K=K||Ai._hitTestTextArea(i,R),K=K||Ai._hitTestViewLines(i,R,_),K=K||Ai._hitTestScrollbar(i,R),K||a.fulfill(0)}static _hitTestContentWidget(i,a){if(pi.isChildOfContentWidgets(a.targetPath)||pi.isChildOfOverflowingContentWidgets(a.targetPath)){let _=i.findAttribute(a.target,"widgetId");return _?a.fulfill(9,null,null,_):a.fulfill(0)}return null}static _hitTestOverlayWidget(i,a){if(pi.isChildOfOverlayWidgets(a.targetPath)){let _=i.findAttribute(a.target,"widgetId");return _?a.fulfill(12,null,null,_):a.fulfill(0)}return null}static _hitTestViewCursor(i,a){if(a.target){let _=i.lastRenderData.lastViewCursorsRenderData;for(let R of _)if(a.target===R.domNode)return a.fulfill(6,R.position)}if(a.isInContentArea){let _=i.lastRenderData.lastViewCursorsRenderData,R=a.mouseContentHorizontalOffset,K=a.mouseVerticalOffset;for(let we of _){if(R<we.contentLeft||R>we.contentLeft+we.width)continue;let Pe=i.getVerticalOffsetForLineNumber(we.position.lineNumber);if(Pe<=K&&K<=Pe+we.height)return a.fulfill(6,we.position)}}return null}static _hitTestViewZone(i,a){let _=i.getZoneAtCoord(a.mouseVerticalOffset);if(_){let R=a.isInContentArea?8:5;return a.fulfill(R,_.position,null,_)}return null}static _hitTestTextArea(i,a){return pi.isTextArea(a.targetPath)?i.lastRenderData.lastTextareaPosition?a.fulfill(6,i.lastRenderData.lastTextareaPosition):a.fulfill(1,i.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(i,a){if(a.isInMarginArea){let _=i.getFullLineRangeAtCoord(a.mouseVerticalOffset),R=_.range.getStartPosition(),K=Math.abs(a.pos.x-a.editorPos.x),we={isAfterLines:_.isAfterLines,glyphMarginLeft:i.layoutInfo.glyphMarginLeft,glyphMarginWidth:i.layoutInfo.glyphMarginWidth,lineNumbersWidth:i.layoutInfo.lineNumbersWidth,offsetX:K};return K-=i.layoutInfo.glyphMarginLeft,K<=i.layoutInfo.glyphMarginWidth?a.fulfill(2,R,_.range,we):(K-=i.layoutInfo.glyphMarginWidth,K<=i.layoutInfo.lineNumbersWidth?a.fulfill(3,R,_.range,we):(K-=i.layoutInfo.lineNumbersWidth,a.fulfill(4,R,_.range,we)))}return null}static _hitTestViewLines(i,a,_){if(!pi.isChildOfViewLines(a.targetPath))return null;if(i.isAfterLines(a.mouseVerticalOffset)){let K=i.model.getLineCount(),we=i.model.getLineMaxColumn(K);return a.fulfill(7,new At.a(K,we),void 0,Li)}if(_){if(pi.isStrictChildOfViewLines(a.targetPath)){let K=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset);if(i.model.getLineLength(K)===0){let Pe=i.getLineWidth(K),Ve=Ii(a.mouseContentHorizontalOffset-Pe);return a.fulfill(7,new At.a(K,1),void 0,Ve)}let we=i.getLineWidth(K);if(a.mouseContentHorizontalOffset>=we){let Pe=Ii(a.mouseContentHorizontalOffset-we),Ve=new At.a(K,i.model.getLineMaxColumn(K));return a.fulfill(7,Ve,void 0,Pe)}}return a.fulfill(0)}let R=Ai._doHitTest(i,a);return R.position?Ai.createMouseTargetFromHitTestPosition(i,a,R.position.lineNumber,R.position.column):this._createMouseTarget(i,a.withTarget(R.hitTarget),!0)}static _hitTestMinimap(i,a){if(pi.isChildOfMinimap(a.targetPath)){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.model.getLineMaxColumn(_);return a.fulfill(11,new At.a(_,R))}return null}static _hitTestScrollbarSlider(i,a){if(pi.isChildOfScrollableElement(a.targetPath)&&a.target&&a.target.nodeType===1){let _=a.target.className;if(_&&/\b(slider|scrollbar)\b/.test(_)){let R=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),K=i.model.getLineMaxColumn(R);return a.fulfill(11,new At.a(R,K))}}return null}static _hitTestScrollbar(i,a){if(pi.isChildOfScrollableElement(a.targetPath)){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.model.getLineMaxColumn(_);return a.fulfill(11,new At.a(_,R))}return null}getMouseColumn(i,a){let _=this._context.configuration.options,R=_.get(117),K=this._context.viewLayout.getCurrentScrollLeft()+a.x-i.x-R.contentLeft;return Ai._getMouseColumn(K,_.get(36).typicalHalfwidthCharacterWidth)}static _getMouseColumn(i,a){return i<0?1:Math.round(i/a)+1}static createMouseTargetFromHitTestPosition(i,a,_,R){let K=new At.a(_,R),we=i.getLineWidth(_);if(a.mouseContentHorizontalOffset>we){if(T.f&&K.column===1){let bt=Ii(a.mouseContentHorizontalOffset-we);return a.fulfill(7,new At.a(_,i.model.getLineMaxColumn(_)),void 0,bt)}let at=Ii(a.mouseContentHorizontalOffset-we);return a.fulfill(7,K,void 0,at)}let Pe=i.visibleRangeForPosition(_,R);if(!Pe)return a.fulfill(0,K);let Ve=Pe.left;if(a.mouseContentHorizontalOffset===Ve)return a.fulfill(6,K);let Je=[];if(Je.push({offset:Pe.left,column:R}),R>1){let at=i.visibleRangeForPosition(_,R-1);at&&Je.push({offset:at.left,column:R-1})}if(R<i.model.getLineMaxColumn(_)){let at=i.visibleRangeForPosition(_,R+1);at&&Je.push({offset:at.left,column:R+1})}Je.sort((at,bt)=>at.offset-bt.offset);for(let at=1;at<Je.length;at++){let bt=Je[at-1],Bt=Je[at];if(bt.offset<=a.mouseContentHorizontalOffset&&a.mouseContentHorizontalOffset<=Bt.offset){let Pt=new Nt.a(_,bt.column,_,Bt.column);return a.fulfill(6,K,Pt)}}return a.fulfill(6,K)}static _doHitTestWithCaretRangeFromPoint(i,a){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.getVerticalOffsetForLineNumber(_)+Math.floor(i.lineHeight/2),K=a.pos.y+(R-a.mouseVerticalOffset);K<=a.editorPos.y&&(K=a.editorPos.y+1),K>=a.editorPos.y+i.layoutInfo.height&&(K=a.editorPos.y+i.layoutInfo.height-1);let we=new b(a.pos.x,K),Pe=this._actualDoHitTestWithCaretRangeFromPoint(i,we.toClientCoordinates());return Pe.position?Pe:this._actualDoHitTestWithCaretRangeFromPoint(i,a.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(i,a){let _=f.E(i.viewDomNode),R;if(R=_?_.caretRangeFromPoint===void 0?function(Pe,Ve,Je){let at=document.createRange(),bt=Pe.elementFromPoint(Ve,Je);if(bt!==null){for(;bt&&bt.firstChild&&bt.firstChild.nodeType!==bt.firstChild.TEXT_NODE;)bt=bt.lastChild;let Bt=bt.getBoundingClientRect(),Pt=window.getComputedStyle(bt,null).getPropertyValue("font"),ni=bt.innerText,Ci,Vi=Bt.left,Mi=0;if(Ve>Bt.left+Bt.width)Mi=ni.length;else{let zi=Zi.getInstance();for(let Yi=0;Yi<ni.length+1;Yi++){if(Ci=zi.getCharWidth(ni.charAt(Yi),Pt)/2,Vi+=Ci,Ve<Vi){Mi=Yi;break}Vi+=Ci}}at.setStart(bt.firstChild,Mi),at.setEnd(bt.firstChild,Mi)}return at}(_,a.clientX,a.clientY):_.caretRangeFromPoint(a.clientX,a.clientY):document.caretRangeFromPoint(a.clientX,a.clientY),!R||!R.startContainer)return{position:null,hitTarget:null};let K=R.startContainer,we=null;if(K.nodeType===K.TEXT_NODE){let Pe=K.parentNode,Ve=Pe?Pe.parentNode:null,Je=Ve?Ve.parentNode:null;if((Je&&Je.nodeType===Je.ELEMENT_NODE?Je.className:null)===A.CLASS_NAME)return{position:i.getPositionFromDOMInfo(Pe,R.startOffset),hitTarget:null};we=K.parentNode}else if(K.nodeType===K.ELEMENT_NODE){let Pe=K.parentNode,Ve=Pe?Pe.parentNode:null;if((Ve&&Ve.nodeType===Ve.ELEMENT_NODE?Ve.className:null)===A.CLASS_NAME)return{position:i.getPositionFromDOMInfo(K,K.textContent.length),hitTarget:null};we=K}return{position:null,hitTarget:we}}static _doHitTestWithCaretPositionFromPoint(i,a){let _=document.caretPositionFromPoint(a.clientX,a.clientY);if(_.offsetNode.nodeType===_.offsetNode.TEXT_NODE){let R=_.offsetNode.parentNode,K=R?R.parentNode:null,we=K?K.parentNode:null;return(we&&we.nodeType===we.ELEMENT_NODE?we.className:null)===A.CLASS_NAME?{position:i.getPositionFromDOMInfo(_.offsetNode.parentNode,_.offset),hitTarget:null}:{position:null,hitTarget:_.offsetNode.parentNode}}if(_.offsetNode.nodeType===_.offsetNode.ELEMENT_NODE){let R=_.offsetNode.parentNode;if((R&&R.nodeType===R.ELEMENT_NODE?R.className:null)===A.CLASS_NAME){let K=_.offsetNode.childNodes[Math.min(_.offset,_.offsetNode.childNodes.length-1)];if(K)return{position:i.getPositionFromDOMInfo(K,0),hitTarget:null}}}return{position:null,hitTarget:_.offsetNode}}static _doHitTestWithMoveToPoint(i,a){let _=null,R=null,K=document.body.createTextRange();try{K.moveToPoint(a.clientX,a.clientY)}catch(Je){return{position:null,hitTarget:null}}K.collapse(!0);let we=K?K.parentElement():null,Pe=we?we.parentNode:null,Ve=Pe?Pe.parentNode:null;if((Ve&&Ve.nodeType===Ve.ELEMENT_NODE?Ve.className:"")===A.CLASS_NAME){let Je=K.duplicate();Je.moveToElementText(we),Je.setEndPoint("EndToStart",K),_=i.getPositionFromDOMInfo(we,Je.text.length),Je.moveToElementText(i.viewDomNode)}else R=we;return K.moveToElementText(i.viewDomNode),{position:_,hitTarget:R}}static _doHitTest(i,a){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(i,a):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(i,a.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(i,a.pos.toClientCoordinates()):{position:null,hitTarget:null}}}class Zi{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return Zi._INSTANCE||(Zi._INSTANCE=new Zi),Zi._INSTANCE}getCharWidth(i,a){let _=i+a;if(this._cache[_])return this._cache[_];let R=this._canvas.getContext("2d");R.font=a;let K=R.measureText(i).width;return this._cache[_]=K,K}}Zi._INSTANCE=null;var Bi=o(135);function Lt(Zt){return function(i,a){let _=!1;return Zt&&(_=Zt.mouseTargetIsWidget(a)),_||a.preventDefault(),a}}class Di extends ke{constructor(i,a,_){super(),this._context=i,this.viewController=a,this.viewHelper=_,this.mouseTargetFactory=new Ai(this._context,_),this._mouseDownOperation=this._register(new gt(this._context,this.viewController,this.viewHelper,(K,we)=>this._createMouseTarget(K,we),K=>this._getMouseColumn(K))),this.lastMouseLeaveTime=-1;let R=new q(this.viewHelper.viewDomNode);this._register(R.onContextMenu(this.viewHelper.viewDomNode,K=>this._onContextMenu(K,!0))),this._register(R.onMouseMoveThrottled(this.viewHelper.viewDomNode,K=>this._onMouseMove(K),Lt(this.mouseTargetFactory),Di.MOUSE_MOVE_MINIMUM_TIME)),this._register(R.onMouseUp(this.viewHelper.viewDomNode,K=>this._onMouseUp(K))),this._register(R.onMouseLeave(this.viewHelper.viewDomNode,K=>this._onMouseLeave(K))),this._register(R.onMouseDown(this.viewHelper.viewDomNode,K=>this._onMouseDown(K))),this._register(f.i(this.viewHelper.viewDomNode,f.c.MOUSE_WHEEL,K=>{if(this.viewController.emitMouseWheel(K),!this._context.configuration.options.get(59))return;let we=new k.b(K);if(we.browserEvent.ctrlKey||we.browserEvent.metaKey){let Pe=Bi.a.getZoomLevel(),Ve=we.deltaY>0?1:-1;Bi.a.setZoomLevel(Pe+Ve),we.preventDefault(),we.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onCursorStateChanged(i){return this._mouseDownOperation.onCursorStateChanged(i),!1}onFocusChanged(i){return!1}onScrollChanged(i){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(i,a){let _=new g(i,a).toPageCoordinates(),R=ie(this.viewHelper.viewDomNode);return _.y<R.y||_.y>R.y+R.height||_.x<R.x||_.x>R.x+R.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),R,_,null)}_createMouseTarget(i,a){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i.editorPos,i.pos,a?i.target:null)}_getMouseColumn(i){return this.mouseTargetFactory.getMouseColumn(i.editorPos,i.pos)}_onContextMenu(i,a){this.viewController.emitContextMenu({event:i,target:this._createMouseTarget(i,a)})}_onMouseMove(i){this._mouseDownOperation.isActive()||i.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:i,target:this._createMouseTarget(i,!0)})}_onMouseLeave(i){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:i,target:null})}_onMouseUp(i){this.viewController.emitMouseUp({event:i,target:this._createMouseTarget(i,!0)})}_onMouseDown(i){let a=this._createMouseTarget(i,!0),_=a.type===6||a.type===7,R=a.type===2||a.type===3||a.type===4,K=a.type===3,we=this._context.configuration.options.get(90),Pe=a.type===8||a.type===5,Ve=a.type===9,Je=i.leftButton||i.middleButton;P.f&&i.leftButton&&i.ctrlKey&&(Je=!1);let at=()=>{i.preventDefault(),this.viewHelper.focusTextArea()};if(Je&&(_||K&&we))at(),this._mouseDownOperation.start(a.type,i);else if(R)i.preventDefault();else if(Pe){let bt=a.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(bt.viewZoneId)&&(at(),this._mouseDownOperation.start(a.type,i),i.preventDefault())}else Ve&&this.viewHelper.shouldSuppressMouseDownOnWidget(a.detail)&&(at(),i.preventDefault());this.viewController.emitMouseDown({event:i,target:a})}}Di.MOUSE_MOVE_MINIMUM_TIME=100;class gt extends E.a{constructor(i,a,_,R,K){super(),this._context=i,this._viewController=a,this._viewHelper=_,this._createMouseTarget=R,this._getMouseColumn=K,this._mouseMoveMonitor=this._register(new se(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new l.e),this._mouseState=new vi,this._currentSelection=new C.a(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(i){this._lastMouseEvent=i,this._mouseState.setModifiers(i);let a=this._findMousePosition(i,!0);a&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:i,target:a}):this._dispatchMouse(a,!0))}start(i,a){this._lastMouseEvent=a,this._mouseState.setStartedOnLineNumbers(i===3),this._mouseState.setStartButtons(a),this._mouseState.setModifiers(a);let _=this._findMousePosition(a,!0);if(!_||!_.position)return;this._mouseState.trySetCount(a.detail,_.position),a.detail=this._mouseState.count;let R=this._context.configuration.options;if(!R.get(72)&&R.get(25)&&!R.get(13)&&!this._mouseState.altKey&&a.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&_.type===6&&_.position&&this._currentSelection.containsPosition(_.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(a.target,a.buttons,Lt(null),K=>this._onMouseDownThenMove(K),()=>{let K=this._findMousePosition(this._lastMouseEvent,!0);this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:K?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(_,a.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(a.target,a.buttons,Lt(null),K=>this._onMouseDownThenMove(K),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let i=this._findMousePosition(this._lastMouseEvent,!1);i&&(this._mouseState.isDragAndDrop||this._dispatchMouse(i,!0))},10)}onCursorStateChanged(i){this._currentSelection=i.selections[0]}_getPositionOutsideEditor(i){let a=i.editorPos,_=this._context.model,R=this._context.viewLayout,K=this._getMouseColumn(i);if(i.posy<a.y){let Pe=Math.max(R.getCurrentScrollTop()-(a.y-i.posy),0),Ve=et.getZoneAtCoord(this._context,Pe);if(Ve){let at=this._helpPositionJumpOverViewZone(Ve);if(at)return new Ni(null,13,K,at)}let Je=R.getLineNumberAtVerticalOffset(Pe);return new Ni(null,13,K,new At.a(Je,1))}if(i.posy>a.y+a.height){let Pe=R.getCurrentScrollTop()+(i.posy-a.y),Ve=et.getZoneAtCoord(this._context,Pe);if(Ve){let at=this._helpPositionJumpOverViewZone(Ve);if(at)return new Ni(null,13,K,at)}let Je=R.getLineNumberAtVerticalOffset(Pe);return new Ni(null,13,K,new At.a(Je,_.getLineMaxColumn(Je)))}let we=R.getLineNumberAtVerticalOffset(R.getCurrentScrollTop()+(i.posy-a.y));return i.posx<a.x?new Ni(null,13,K,new At.a(we,1)):i.posx>a.x+a.width?new Ni(null,13,K,new At.a(we,_.getLineMaxColumn(we))):null}_findMousePosition(i,a){let _=this._getPositionOutsideEditor(i);if(_)return _;let R=this._createMouseTarget(i,a);if(!R.position)return null;if(R.type===8||R.type===5){let K=this._helpPositionJumpOverViewZone(R.detail);if(K)return new Ni(R.element,R.type,R.mouseColumn,K,null,R.detail)}return R}_helpPositionJumpOverViewZone(i){let a=new At.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),_=i.positionBefore,R=i.positionAfter;return _&&R?_.isBefore(a)?_:R:null}_dispatchMouse(i,a){i.position&&this._viewController.dispatchMouse({position:i.position,mouseColumn:i.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:a,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class vi{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(i){this._altKey=i.altKey,this._ctrlKey=i.ctrlKey,this._metaKey=i.metaKey,this._shiftKey=i.shiftKey}setStartButtons(i){this._leftButton=i.leftButton,this._middleButton=i.middleButton}setStartedOnLineNumbers(i){this._startedOnLineNumbers=i}trySetCount(i,a){let _=new Date().getTime();_-this._lastSetMouseDownCountTime>vi.CLEAR_MOUSE_DOWN_COUNT_TIME&&(i=1),this._lastSetMouseDownCountTime=_,i>this._lastMouseDownCount+1&&(i=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(a)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=a,this._lastMouseDownCount=Math.min(i,this._lastMouseDownPositionEqualCount)}}vi.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Rt=o(138);function vt(Zt,i){let a={translationY:i.translationY,translationX:i.translationX};return Zt&&(a.translationY+=Zt.translationY,a.translationX+=Zt.translationX),a}class Ue extends Di{constructor(i,a,_){super(i,a,_),this.viewHelper.linesContentDomNode.style.touchAction="none",this._installGestureHandlerTimeout=window.setTimeout(()=>{if(this._installGestureHandlerTimeout=-1,window.MSGesture){let R=new MSGesture,K=new MSGesture;R.target=this.viewHelper.linesContentDomNode,K.target=this.viewHelper.linesContentDomNode,this.viewHelper.linesContentDomNode.addEventListener("pointerdown",we=>{let Pe=we.pointerType;Pe!=="mouse"?Pe==="touch"?(this._lastPointerType="touch",R.addPointer(we.pointerId)):(this._lastPointerType="pen",K.addPointer(we.pointerId)):this._lastPointerType="mouse"}),this._register(f.l(this.viewHelper.linesContentDomNode,"MSGestureChange",we=>this._onGestureChange(we),vt)),this._register(f.i(this.viewHelper.linesContentDomNode,"MSGestureTap",we=>this._onCaptureGestureTap(we),!0))}},100),this._lastPointerType="mouse"}_onMouseDown(i){this._lastPointerType==="mouse"&&super._onMouseDown(i)}_onCaptureGestureTap(i){let a=new U(i,this.viewHelper.viewDomNode),_=this._createMouseTarget(a,!1);_.position&&this.viewController.moveTo(_.position),a.browserEvent.fromElement?(a.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(()=>{this.viewHelper.focusTextArea()})}_onGestureChange(i){this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}dispose(){window.clearTimeout(this._installGestureHandlerTimeout),super.dispose()}}class ut extends Di{constructor(i,a,_){super(i,a,_),this._register(V.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Tap,K=>this.onTap(K))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Change,K=>this.onChange(K))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Contextmenu,K=>this._onContextMenu(new U(K,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(f.i(this.viewHelper.linesContentDomNode,"pointerdown",K=>{let we=K.pointerType;this._lastPointerType=we!=="mouse"?we==="touch"?"touch":"pen":"mouse"}));let R=new B(this.viewHelper.viewDomNode);this._register(R.onPointerMoveThrottled(this.viewHelper.viewDomNode,K=>this._onMouseMove(K),Lt(this.mouseTargetFactory),Di.MOUSE_MOVE_MINIMUM_TIME)),this._register(R.onPointerUp(this.viewHelper.viewDomNode,K=>this._onMouseUp(K))),this._register(R.onPointerLeave(this.viewHelper.viewDomNode,K=>this._onMouseLeave(K))),this._register(R.onPointerDown(this.viewHelper.viewDomNode,K=>this._onMouseDown(K)))}onTap(i){if(!i.initialTarget||!this.viewHelper.linesContentDomNode.contains(i.initialTarget))return;i.preventDefault(),this.viewHelper.focusTextArea();let a=this._createMouseTarget(new U(i,this.viewHelper.viewDomNode),!1);a.position&&this.viewController.dispatchMouse({position:a.position,mouseColumn:a.position.column,startedOnLineNumbers:!1,mouseDownCount:i.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(i){this._lastPointerType==="touch"&&this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}_onMouseDown(i){i.target&&this.viewHelper.linesContentDomNode.contains(i.target)&&this._lastPointerType==="touch"||super._onMouseDown(i)}}class ze extends Di{constructor(i,a,_){super(i,a,_),this._register(V.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Tap,R=>this.onTap(R))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Change,R=>this.onChange(R))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Contextmenu,R=>this._onContextMenu(new U(R,this.viewHelper.viewDomNode),!1)))}onTap(i){i.preventDefault(),this.viewHelper.focusTextArea();let a=this._createMouseTarget(new U(i,this.viewHelper.viewDomNode),!1);a.position&&this.viewController.moveTo(a.position)}onChange(i){this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}}class st extends E.a{constructor(i,a,_){super(),P.c&&Rt.a.pointerEvents?this.handler=this._register(new ut(i,a,_)):window.TouchEvent?this.handler=this._register(new ze(i,a,_)):window.navigator.pointerEnabled||window.PointerEvent?this.handler=this._register(new Ue(i,a,_)):this.handler=this._register(new Di(i,a,_))}getTargetAtClientPoint(i,a){return this.handler.getTargetAtClientPoint(i,a)}}o(210);var _t=o(8),oi=o(167),li=o(127);o(212);class gi extends ke{}var ki=o(57);class Ri extends gi{constructor(i){super(),this._context=i,this._readConfig(),this._lastCursorModelPosition=new At.a(1,1),this._renderResult=null,this._context.addEventHandler(this)}_readConfig(){let i=this._context.configuration.options;this._lineHeight=i.get(51);let a=i.get(52);this._renderLineNumbers=a.renderType,this._renderCustomLineNumbers=a.renderFn,this._renderFinalNewline=i.get(76);let _=i.get(117);this._lineNumbersLeft=_.lineNumbersLeft,this._lineNumbersWidth=_.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return this._readConfig(),!0}onCursorStateChanged(i){let a=i.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(a),this._renderLineNumbers===2||this._renderLineNumbers===3}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getLineRenderLineNumber(i){let a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i,1));if(a.column!==1)return"";let _=a.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(_);if(this._renderLineNumbers===2){let R=Math.abs(this._lastCursorModelPosition.lineNumber-_);return R===0?'<span class="relative-current-line-number">'+_+"</span>":String(R)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===_||_%10==0?String(_):"":String(_)}prepareRender(i){if(this._renderLineNumbers===0)return void(this._renderResult=null);let a=P.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber,K='<div class="'+Ri.CLASS_NAME+a+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',we=this._context.model.getLineCount(),Pe=[];for(let Ve=_;Ve<=R;Ve++){let Je=Ve-_;if(!this._renderFinalNewline&&Ve===we&&this._context.model.getLineLength(Ve)===0){Pe[Je]="";continue}let at=this._getLineRenderLineNumber(Ve);Pe[Je]=at?K+at+"</div>":""}this._renderResult=Pe}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}Ri.CLASS_NAME="line-numbers",Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.k);a&&i.addRule(`.monaco-editor .line-numbers { color: ${a}; }`);let _=Zt.getColor(ki.b);_&&i.addRule(`.monaco-editor .current-line ~ .line-numbers { color: ${_}; }`)});class $i extends xe{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._canUseLayerHinting=!a.get(23),this._contentLeft=_.contentLeft,this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setClassName($i.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(S.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName($i.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._canUseLayerHinting=!a.get(23),this._contentLeft=_.contentLeft,this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollTopChanged}prepareRender(i){}render(i){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");let a=i.scrollTop-i.bigNumbersDelta;this._domNode.setTop(-a);let _=Math.min(i.scrollHeight,1e6);this._domNode.setHeight(_),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(_)}}$i.CLASS_NAME="glyph-margin",$i.OUTER_CLASS_NAME="margin";var Hi=o(117),yi=o(145);class kt{constructor(i,a,_){this.top=i,this.left=a,this.width=_}setWidth(i){return new kt(this.top,this.left,i)}}let Et=T.f||T.h;class si extends xe{constructor(i,a,_){super(i),this._primaryCursorPosition=new At.a(1,1),this._primaryCursorVisibleRange=null,this._viewController=a,this._viewHelper=_,this._scrollLeft=0,this._scrollTop=0;let R=this._context.configuration.options,K=R.get(117);this._setAccessibilityOptions(R),this._contentLeft=K.contentLeft,this._contentWidth=K.contentWidth,this._contentHeight=K.height,this._fontInfo=R.get(36),this._lineHeight=R.get(51),this._emptySelectionClipboard=R.get(26),this._copyWithSyntaxHighlighting=R.get(16),this._visibleTextArea=null,this._selections=[new C.a(1,1,1,1)],this._modelSelections=[new C.a(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(S.b)(document.createElement("textarea")),Y.write(this.textArea,6),this.textArea.setClassName("inputarea "+yi.a),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(R)),this.textArea.setAttribute("tabindex",String(R.get(102))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",h.a("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),P.h&&R.get(72)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(S.b)(document.createElement("div")),this.textAreaCover.setPosition("absolute");let we={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:Ve=>this._context.model.getLineMaxColumn(Ve),getValueInRange:(Ve,Je)=>this._context.model.getValueInRange(Ve,Je)},Pe={getDataToCopy:Ve=>{let Je=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,P.i),at=this._context.model.getEOL(),bt=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),Bt=Array.isArray(Je)?Je:null,Pt=Array.isArray(Je)?Je.join(at):Je,ni,Ci=null;if(Ve&&(oi.a.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&Pt.length<65536)){let Vi=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);Vi&&(ni=Vi.html,Ci=Vi.mode)}return{isFromEmptySelection:bt,multicursorText:Bt,text:Pt,html:ni,mode:Ci}},getScreenReaderContent:Ve=>{if(this._accessibilitySupport===1){if(P.f){let Je=this._selections[0];if(Je.isEmpty()){let at=Je.getStartPosition(),bt=this._getWordBeforePosition(at);if(bt.length===0&&(bt=this._getCharacterBeforePosition(at)),bt.length>0)return new li.b(bt,bt.length,bt.length,at,at)}}return li.b.EMPTY}return li.a.fromEditorSelection(Ve,we,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(Ve,Je,at)=>this._context.model.deduceModelPositionRelativeToViewPosition(Ve,Je,at)};this._textAreaInput=this._register(new oi.c(Pe,this.textArea)),this._register(this._textAreaInput.onKeyDown(Ve=>{this._viewController.emitKeyDown(Ve)})),this._register(this._textAreaInput.onKeyUp(Ve=>{this._viewController.emitKeyUp(Ve)})),this._register(this._textAreaInput.onPaste(Ve=>{let Je=!1,at=null,bt=null;Ve.metadata&&(Je=this._emptySelectionClipboard&&!!Ve.metadata.isFromEmptySelection,at=Ve.metadata.multicursorText!==void 0?Ve.metadata.multicursorText:null,bt=Ve.metadata.mode),this._viewController.paste(Ve.text,Je,at,bt)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(Ve=>{Ve.replaceCharCnt?this._viewController.replacePreviousChar(Ve.text,Ve.replaceCharCnt):this._viewController.type(Ve.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(Ve=>{this._viewController.setSelection(Ve)})),this._register(this._textAreaInput.onCompositionStart(Ve=>{let Je=this._selections[0].startLineNumber,at=this._selections[0].startColumn-(Ve.moveOneCharacterLeft?1:0);this._context.model.revealRange("keyboard",!0,new Nt.a(Je,at,Je,at),0,1);let bt=this._viewHelper.visibleRangeForPositionRelativeToEditor(Je,at);bt&&(this._visibleTextArea=new kt(this._context.viewLayout.getVerticalOffsetForLineNumber(Je),bt.left,Et?0:1),this._render()),this.textArea.setClassName(`inputarea ${yi.a} ime-input`),this._viewController.compositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(Ve=>{T.f?this._visibleTextArea=this._visibleTextArea.setWidth(0):this._visibleTextArea=this._visibleTextArea.setWidth(function(Je,at){let bt=document.createElement("canvas").getContext("2d");bt.font=(Bt=at,Pt="normal",ni=Bt.fontWeight,Ci=Bt.fontSize,Vi=Bt.lineHeight,Mi=Bt.fontFamily,`${Pt} normal ${ni} ${Ci}px / ${Vi}px ${Mi}`);var Bt,Pt,ni,Ci,Vi,Mi;let zi=bt.measureText(Je);return T.h?zi.width+2:zi.width}(Ve.data,this._fontInfo)),this._render()})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+yi.a),this._viewController.compositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getWordBeforePosition(i){let a=this._context.model.getLineContent(i.lineNumber),_=Object(Hi.a)(this._context.configuration.options.get(105)),R=i.column,K=0;for(;R>1;){let we=a.charCodeAt(R-2);if(_.get(we)!==0||K>50)return a.substring(R-1,i.column-1);K++,R--}return a.substring(0,i.column-1)}_getCharacterBeforePosition(i){if(i.column>1){let a=this._context.model.getLineContent(i.lineNumber).charAt(i.column-2);if(!_t.F(a.charCodeAt(0)))return a}return""}_getAriaLabel(i){return i.get(2)===1?h.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",P.d?"Shift+Alt+F1":"Alt+F1"):i.get(4)}_setAccessibilityOptions(i){this._accessibilitySupport=i.get(2);let a=i.get(3);this._accessibilitySupport===2&&a===fe.g.accessibilityPageSize.defaultValue?this._accessibilityPageSize=100:this._accessibilityPageSize=a}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._setAccessibilityOptions(a),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._contentHeight=_.height,this._fontInfo=a.get(36),this._lineHeight=a.get(51),this._emptySelectionClipboard=a.get(26),this._copyWithSyntaxHighlighting=a.get(16),this.textArea.setAttribute("aria-label",this._getAriaLabel(a)),this.textArea.setAttribute("tabindex",String(a.get(102))),P.h&&i.hasChanged(72)&&(a.get(72)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),i.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),this._modelSelections=i.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return this._scrollLeft=i.scrollLeft,this._scrollTop=i.scrollTop,!0}onZonesChanged(i){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(i){i.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",i.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),i.role&&this.textArea.setAttribute("role",i.role)}prepareRender(i){this._primaryCursorPosition=new At.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=i.visibleRangeForPosition(this._primaryCursorPosition)}render(i){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();let i=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(i<this._contentLeft||i>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();let a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;a<0||a>this._contentHeight?this._renderAtTopLeft():P.f?this._renderInsideEditor(this._primaryCursorPosition,a,i,Et?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,a,i,Et?0:1,Et?0:1)}_renderInsideEditor(i,a,_,R,K){this._lastRenderPosition=i;let we=this.textArea,Pe=this.textAreaCover;W.a.applyFontInfo(we,this._fontInfo),we.setTop(a),we.setLeft(_),we.setWidth(R),we.setHeight(K),Pe.setTop(0),Pe.setLeft(0),Pe.setWidth(0),Pe.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;let i=this.textArea,a=this.textAreaCover;if(W.a.applyFontInfo(i,this._fontInfo),i.setTop(0),i.setLeft(0),a.setTop(0),a.setLeft(0),Et)return i.setWidth(0),i.setHeight(0),a.setWidth(0),void a.setHeight(0);i.setWidth(1),i.setHeight(1),a.setWidth(1),a.setHeight(1);let _=this._context.configuration.options;_.get(42)?a.setClassName("monaco-editor-background textAreaCover "+$i.OUTER_CLASS_NAME):_.get(52).renderType!==0?a.setClassName("monaco-editor-background textAreaCover "+Ri.CLASS_NAME):a.setClassName("monaco-editor-background textAreaCover")}}var Si=o(107);class Pi{constructor(i,a,_,R){this.configuration=i,this.viewModel=a,this.userInputEvents=_,this.commandDelegate=R}paste(i,a,_,R){this.commandDelegate.paste(i,a,_,R)}type(i){this.commandDelegate.type(i)}replacePreviousChar(i,a){this.commandDelegate.replacePreviousChar(i,a)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(i){Si.b.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:i})}_validateViewColumn(i){let a=this.viewModel.getLineMinColumn(i.lineNumber);return i.column<a?new At.a(i.lineNumber,a):i}_hasMulticursorModifier(i){switch(this.configuration.options.get(61)){case"altKey":return i.altKey;case"ctrlKey":return i.ctrlKey;case"metaKey":return i.metaKey;default:return!1}}_hasNonMulticursorModifier(i){switch(this.configuration.options.get(61)){case"altKey":return i.ctrlKey||i.metaKey;case"ctrlKey":return i.altKey||i.metaKey;case"metaKey":return i.ctrlKey||i.altKey;default:return!1}}dispatchMouse(i){let a=this.configuration.options,_=P.d&&a.get(88),R=a.get(13);i.middleButton&&!_?this._columnSelect(i.position,i.mouseColumn,i.inSelectionMode):i.startedOnLineNumbers?this._hasMulticursorModifier(i)?i.inSelectionMode?this._lastCursorLineSelect(i.position):this._createCursor(i.position,!0):i.inSelectionMode?this._lineSelectDrag(i.position):this._lineSelect(i.position):i.mouseDownCount>=4?this._selectAll():i.mouseDownCount===3?this._hasMulticursorModifier(i)?i.inSelectionMode?this._lastCursorLineSelectDrag(i.position):this._lastCursorLineSelect(i.position):i.inSelectionMode?this._lineSelectDrag(i.position):this._lineSelect(i.position):i.mouseDownCount===2?this._hasMulticursorModifier(i)?this._lastCursorWordSelect(i.position):i.inSelectionMode?this._wordSelectDrag(i.position):this._wordSelect(i.position):this._hasMulticursorModifier(i)?this._hasNonMulticursorModifier(i)||(i.shiftKey?this._columnSelect(i.position,i.mouseColumn,!0):i.inSelectionMode?this._lastCursorMoveToSelect(i.position):this._createCursor(i.position,!1)):i.inSelectionMode?i.altKey||R?this._columnSelect(i.position,i.mouseColumn,!0):this._moveToSelect(i.position):this.moveTo(i.position)}_usualArgs(i){return i=this._validateViewColumn(i),{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i}}moveTo(i){Si.b.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_moveToSelect(i){Si.b.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_columnSelect(i,a,_){i=this._validateViewColumn(i),Si.b.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,mouseColumn:a,doColumnSelect:_})}_createCursor(i,a){i=this._validateViewColumn(i),Si.b.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,wholeLine:a})}_lastCursorMoveToSelect(i){Si.b.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_wordSelect(i){Si.b.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_wordSelectDrag(i){Si.b.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorWordSelect(i){Si.b.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lineSelect(i){Si.b.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lineSelectDrag(i){Si.b.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorLineSelect(i){Si.b.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorLineSelectDrag(i){Si.b.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_selectAll(){Si.b.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(i){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i)}emitKeyDown(i){this.userInputEvents.emitKeyDown(i)}emitKeyUp(i){this.userInputEvents.emitKeyUp(i)}emitContextMenu(i){this.userInputEvents.emitContextMenu(i)}emitMouseMove(i){this.userInputEvents.emitMouseMove(i)}emitMouseLeave(i){this.userInputEvents.emitMouseLeave(i)}emitMouseUp(i){this.userInputEvents.emitMouseUp(i)}emitMouseDown(i){this.userInputEvents.emitMouseDown(i)}emitMouseDrag(i){this.userInputEvents.emitMouseDrag(i)}emitMouseDrop(i){this.userInputEvents.emitMouseDrop(i)}emitMouseWheel(i){this.userInputEvents.emitMouseWheel(i)}}class Wi{constructor(i){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseWheel=null,this._coordinatesConverter=i}emitKeyDown(i){this.onKeyDown&&this.onKeyDown(i)}emitKeyUp(i){this.onKeyUp&&this.onKeyUp(i)}emitContextMenu(i){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(i))}emitMouseMove(i){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(i))}emitMouseLeave(i){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(i))}emitMouseDown(i){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(i))}emitMouseUp(i){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(i))}emitMouseDrag(i){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(i))}emitMouseDrop(i){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(i))}emitMouseWheel(i){this.onMouseWheel&&this.onMouseWheel(i)}_convertViewToModelMouseEvent(i){return i.target?{event:i.event,target:this._convertViewToModelMouseTarget(i.target)}:i}_convertViewToModelMouseTarget(i){return Wi.convertViewToModelMouseTarget(i,this._coordinatesConverter)}static convertViewToModelMouseTarget(i,a){return new xn(i.element,i.type,i.mouseColumn,i.position?a.convertViewPositionToModelPosition(i.position):null,i.range?a.convertViewRangeToModelRange(i.range):null,i.detail)}}class xn{constructor(i,a,_,R,K,we){this.element=i,this.type=a,this.mouseColumn=_,this.position=R,this.range=K,this.detail=we}toString(){return Ni.toString(this)}}var un=o(132);class bn{constructor(i){this._createLine=i,this._set(1,[])}flush(){this._set(1,[])}_set(i,a){this._lines=a,this._rendLineNumberStart=i}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(i){let a=i-this._rendLineNumberStart;if(a<0||a>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[a]}onLinesDeleted(i,a){if(this.getCount()===0)return null;let _=this.getStartLineNumber(),R=this.getEndLineNumber();if(a<_){let Pe=a-i+1;return this._rendLineNumberStart-=Pe,null}if(i>R)return null;let K=0,we=0;for(let Pe=_;Pe<=R;Pe++){let Ve=Pe-this._rendLineNumberStart;i<=Pe&&Pe<=a&&(we===0?(K=Ve,we=1):we++)}if(i<_){let Pe=0;Pe=a<_?a-i+1:_-i,this._rendLineNumberStart-=Pe}return this._lines.splice(K,we)}onLinesChanged(i,a){if(this.getCount()===0)return!1;let _=this.getStartLineNumber(),R=this.getEndLineNumber(),K=!1;for(let we=i;we<=a;we++)we>=_&&we<=R&&(this._lines[we-this._rendLineNumberStart].onContentChanged(),K=!0);return K}onLinesInserted(i,a){if(this.getCount()===0)return null;let _=a-i+1,R=this.getStartLineNumber(),K=this.getEndLineNumber();if(i<=R)return this._rendLineNumberStart+=_,null;if(i>K)return null;if(_+i>K)return this._lines.splice(i-this._rendLineNumberStart,K-i+1);let we=[];for(let bt=0;bt<_;bt++)we[bt]=this._createLine();let Pe=i-this._rendLineNumberStart,Ve=this._lines.slice(0,Pe),Je=this._lines.slice(Pe,this._lines.length-_),at=this._lines.slice(this._lines.length-_,this._lines.length);return this._lines=Ve.concat(we).concat(Je),at}onTokensChanged(i){if(this.getCount()===0)return!1;let a=this.getStartLineNumber(),_=this.getEndLineNumber(),R=!1;for(let K=0,we=i.length;K<we;K++){let Pe=i[K];if(Pe.toLineNumber<a||Pe.fromLineNumber>_)continue;let Ve=Math.max(a,Pe.fromLineNumber),Je=Math.min(_,Pe.toLineNumber);for(let at=Ve;at<=Je;at++){let bt=at-this._rendLineNumberStart;this._lines[bt].onTokensChanged(),R=!0}}return R}}class Fn{constructor(i){this._host=i,this.domNode=this._createDomNode(),this._linesCollection=new bn(()=>this._host.createVisibleLine())}_createDomNode(){let i=Object(S.b)(document.createElement("div"));return i.setClassName("view-layer"),i.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i}onConfigurationChanged(i){return!!i.hasChanged(117)}onFlushed(i){return this._linesCollection.flush(),!0}onLinesChanged(i){return this._linesCollection.onLinesChanged(i.fromLineNumber,i.toLineNumber)}onLinesDeleted(i){let a=this._linesCollection.onLinesDeleted(i.fromLineNumber,i.toLineNumber);if(a)for(let _=0,R=a.length;_<R;_++){let K=a[_].getDomNode();K&&this.domNode.domNode.removeChild(K)}return!0}onLinesInserted(i){let a=this._linesCollection.onLinesInserted(i.fromLineNumber,i.toLineNumber);if(a)for(let _=0,R=a.length;_<R;_++){let K=a[_].getDomNode();K&&this.domNode.domNode.removeChild(K)}return!0}onScrollChanged(i){return i.scrollTopChanged}onTokensChanged(i){return this._linesCollection.onTokensChanged(i.ranges)}onZonesChanged(i){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(i){return this._linesCollection.getLine(i)}renderLines(i){let a=this._linesCollection._get(),_=new Mn(this.domNode.domNode,this._host,i),R={rendLineNumberStart:a.rendLineNumberStart,lines:a.lines,linesLength:a.lines.length},K=_.render(R,i.startLineNumber,i.endLineNumber,i.relativeVerticalOffset);this._linesCollection._set(K.rendLineNumberStart,K.lines)}}class Mn{constructor(i,a,_){this.domNode=i,this.host=a,this.viewportData=_}render(i,a,_,R){let K={rendLineNumberStart:i.rendLineNumberStart,lines:i.lines.slice(0),linesLength:i.linesLength};if(K.rendLineNumberStart+K.linesLength-1<a||_<K.rendLineNumberStart){K.rendLineNumberStart=a,K.linesLength=_-a+1,K.lines=[];for(let we=a;we<=_;we++)K.lines[we-a]=this.host.createVisibleLine();return this._finishRendering(K,!0,R),K}if(this._renderUntouchedLines(K,Math.max(a-K.rendLineNumberStart,0),Math.min(_-K.rendLineNumberStart,K.linesLength-1),R,a),K.rendLineNumberStart>a){let we=a,Pe=Math.min(_,K.rendLineNumberStart-1);we<=Pe&&(this._insertLinesBefore(K,we,Pe,R,a),K.linesLength+=Pe-we+1)}else if(K.rendLineNumberStart<a){let we=Math.min(K.linesLength,a-K.rendLineNumberStart);we>0&&(this._removeLinesBefore(K,we),K.linesLength-=we)}if(K.rendLineNumberStart=a,K.rendLineNumberStart+K.linesLength-1<_){let we=K.rendLineNumberStart+K.linesLength,Pe=_;we<=Pe&&(this._insertLinesAfter(K,we,Pe,R,a),K.linesLength+=Pe-we+1)}else if(K.rendLineNumberStart+K.linesLength-1>_){let we=Math.max(0,_-K.rendLineNumberStart+1),Pe=K.linesLength-1-we+1;Pe>0&&(this._removeLinesAfter(K,Pe),K.linesLength-=Pe)}return this._finishRendering(K,!1,R),K}_renderUntouchedLines(i,a,_,R,K){let we=i.rendLineNumberStart,Pe=i.lines;for(let Ve=a;Ve<=_;Ve++){let Je=we+Ve;Pe[Ve].layoutLine(Je,R[Je-K])}}_insertLinesBefore(i,a,_,R,K){let we=[],Pe=0;for(let Ve=a;Ve<=_;Ve++)we[Pe++]=this.host.createVisibleLine();i.lines=we.concat(i.lines)}_removeLinesBefore(i,a){for(let _=0;_<a;_++){let R=i.lines[_].getDomNode();R&&this.domNode.removeChild(R)}i.lines.splice(0,a)}_insertLinesAfter(i,a,_,R,K){let we=[],Pe=0;for(let Ve=a;Ve<=_;Ve++)we[Pe++]=this.host.createVisibleLine();i.lines=i.lines.concat(we)}_removeLinesAfter(i,a){let _=i.linesLength-a;for(let R=0;R<a;R++){let K=i.lines[_+R].getDomNode();K&&this.domNode.removeChild(K)}i.lines.splice(_,a)}_finishRenderingNewLines(i,a,_,R){let K=this.domNode.lastChild;a||!K?this.domNode.innerHTML=_:K.insertAdjacentHTML("afterend",_);let we=this.domNode.lastChild;for(let Pe=i.linesLength-1;Pe>=0;Pe--){let Ve=i.lines[Pe];R[Pe]&&(Ve.setDomNode(we),we=we.previousSibling)}}_finishRenderingInvalidLines(i,a,_){let R=document.createElement("div");R.innerHTML=a;for(let K=0;K<i.linesLength;K++){let we=i.lines[K];if(_[K]){let Pe=R.firstChild,Ve=we.getDomNode();Ve.parentNode.replaceChild(Pe,Ve),we.setDomNode(Pe)}}}_finishRendering(i,a,_){let R=Mn._sb,K=i.linesLength,we=i.lines,Pe=i.rendLineNumberStart,Ve=[];{R.reset();let Je=!1;for(let at=0;at<K;at++){let bt=we[at];Ve[at]=!1,!bt.getDomNode()&&bt.renderLine(at+Pe,_[at],this.viewportData,R)&&(Ve[at]=!0,Je=!0)}Je&&this._finishRenderingNewLines(i,a,R.build(),Ve)}{R.reset();let Je=!1,at=[];for(let bt=0;bt<K;bt++){let Bt=we[bt];at[bt]=!1,!Ve[bt]&&Bt.renderLine(bt+Pe,_[bt],this.viewportData,R)&&(at[bt]=!0,Je=!0)}Je&&this._finishRenderingInvalidLines(i,R.build(),at)}}}Mn._sb=Object(un.a)(1e5);class Nn extends xe{constructor(i){super(i),this._visibleLines=new Fn(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let i=0,a=this._dynamicOverlays.length;i<a;i++)if(this._dynamicOverlays[i].shouldRender())return!0;return!1}dispose(){super.dispose();for(let i=0,a=this._dynamicOverlays.length;i<a;i++)this._dynamicOverlays[i].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new Hn(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(i){this._dynamicOverlays.push(i)}onConfigurationChanged(i){this._visibleLines.onConfigurationChanged(i);let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)this._visibleLines.getVisibleLine(R).onConfigurationChanged(i);return!0}onFlushed(i){return this._visibleLines.onFlushed(i)}onFocusChanged(i){return this._isFocused=i.isFocused,!0}onLinesChanged(i){return this._visibleLines.onLinesChanged(i)}onLinesDeleted(i){return this._visibleLines.onLinesDeleted(i)}onLinesInserted(i){return this._visibleLines.onLinesInserted(i)}onScrollChanged(i){return this._visibleLines.onScrollChanged(i)||!0}onTokensChanged(i){return this._visibleLines.onTokensChanged(i)}onZonesChanged(i){return this._visibleLines.onZonesChanged(i)}prepareRender(i){let a=this._dynamicOverlays.filter(_=>_.shouldRender());for(let _=0,R=a.length;_<R;_++){let K=a[_];K.prepareRender(i),K.onDidRender()}}render(i){this._viewOverlaysRender(i),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(i){this._visibleLines.renderLines(i.viewportData)}}class Hn{constructor(i,a){this._configuration=i,this._lineHeight=this._configuration.options.get(51),this._dynamicOverlays=a,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(i){this._domNode=Object(S.b)(i)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(i){this._lineHeight=this._configuration.options.get(51)}renderLine(i,a,_,R){let K="";for(let we=0,Pe=this._dynamicOverlays.length;we<Pe;we++)K+=this._dynamicOverlays[we].render(_.startLineNumber,i);return this._renderedContent!==K&&(this._renderedContent=K,R.appendASCIIString('<div style="position:absolute;top:'),R.appendASCIIString(String(a)),R.appendASCIIString("px;width:100%;height:"),R.appendASCIIString(String(this._lineHeight)),R.appendASCIIString('px;">'),R.appendASCIIString(K),R.appendASCIIString("</div>"),!0)}layoutLine(i,a){this._domNode&&(this._domNode.setTop(a),this._domNode.setHeight(this._lineHeight))}}class Jn extends Nn{constructor(i){super(i);let a=this._context.configuration.options.get(117);this._contentWidth=a.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._contentWidth=a.contentWidth,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollWidthChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i),this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth))}}class _o extends Nn{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._contentLeft=_.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),W.a.applyFontInfo(this.domNode,a.get(36))}onConfigurationChanged(i){let a=this._context.configuration.options;W.a.applyFontInfo(this.domNode,a.get(36));let _=a.get(117);return this._contentLeft=_.contentLeft,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollHeightChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i);let a=Math.min(i.scrollHeight,1e6);this.domNode.setHeight(a),this.domNode.setWidth(this._contentLeft)}}class pn{constructor(i,a){this.top=i,this.left=a}}class Gn extends xe{constructor(i,a){super(i),this._viewDomNode=a,this._widgets={},this.domNode=Object(S.b)(document.createElement("div")),Y.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(S.b)(document.createElement("div")),Y.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onConfigurationChanged(i);return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLineMappingChanged(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onLineMappingChanged(i);return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return!0}onZonesChanged(i){return!0}addWidget(i){let a=new on(this._context,this._viewDomNode,i);this._widgets[a.id]=a,a.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(a.domNode):this.domNode.appendChild(a.domNode),this.setShouldRender()}setWidgetPosition(i,a,_){this._widgets[i.getId()].setPosition(a,_),this.setShouldRender()}removeWidget(i){let a=i.getId();if(this._widgets.hasOwnProperty(a)){let _=this._widgets[a];delete this._widgets[a];let R=_.domNode.domNode;R.parentNode.removeChild(R),R.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(i){return!!this._widgets.hasOwnProperty(i)&&this._widgets[i].suppressMouseDown}onBeforeRender(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onBeforeRender(i)}prepareRender(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].prepareRender(i)}render(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].render(i)}}class on{constructor(i,a,_){this._context=i,this._viewDomNode=a,this._actual=_,this.domNode=Object(S.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;let R=this._context.configuration.options,K=R.get(117);this._fixedOverflowWidgets=R.get(30),this._contentWidth=K.contentWidth,this._contentLeft=K.contentLeft,this._lineHeight=R.get(51),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(i){let a=this._context.configuration.options;if(this._lineHeight=a.get(51),i.hasChanged(117)){let _=a.get(117);this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(i){this._setPosition(this._range)}_setPosition(i){if(this._range=i,this._viewRange=null,this._range){let a=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(a.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(a.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(a))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(i,a){this._setPosition(i),this._preference=a,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(i,a,_,R,K){let we=i.top,Pe=we,Ve=a.top+this._lineHeight,Je=we-R,at=Pe>=R,bt=Ve,Bt=K.viewportHeight-Ve>=R,Pt=i.left,ni=a.left;return Pt+_>K.scrollLeft+K.viewportWidth&&(Pt=K.scrollLeft+K.viewportWidth-_),ni+_>K.scrollLeft+K.viewportWidth&&(ni=K.scrollLeft+K.viewportWidth-_),Pt<K.scrollLeft&&(Pt=K.scrollLeft),ni<K.scrollLeft&&(ni=K.scrollLeft),{fitsAbove:at,aboveTop:Je,aboveLeft:Pt,fitsBelow:Bt,belowTop:bt,belowLeft:ni}}_layoutHorizontalSegmentInPage(i,a,_,R){let K=Math.max(0,a.left-R),we=Math.min(a.left+a.width+R,i.width),Pe=a.left+_-f.d.scrollX;if(Pe+R>we){let Ve=Pe-(we-R);Pe-=Ve,_-=Ve}if(Pe<K){let Ve=Pe-K;Pe-=Ve,_-=Ve}return[_,Pe]}_layoutBoxInPage(i,a,_,R,K){let we=i.top-R,Pe=a.top+this._lineHeight,Ve=f.C(this._viewDomNode.domNode),Je=Ve.top+we-f.d.scrollY,at=Ve.top+Pe-f.d.scrollY,bt=f.y(document.body),[Bt,Pt]=this._layoutHorizontalSegmentInPage(bt,Ve,i.left-K.scrollLeft+this._contentLeft,_),[ni,Ci]=this._layoutHorizontalSegmentInPage(bt,Ve,a.left-K.scrollLeft+this._contentLeft,_),Vi=Je>=22,Mi=at+R<=bt.height-22;return this._fixedOverflowWidgets?{fitsAbove:Vi,aboveTop:Math.max(Je,22),aboveLeft:Pt,fitsBelow:Mi,belowTop:at,belowLeft:Ci}:{fitsAbove:Vi,aboveTop:we,aboveLeft:Bt,fitsBelow:Mi,belowTop:Pe,belowLeft:ni}}_prepareRenderWidgetAtExactPositionOverflowing(i){return new pn(i.top,i.left+this._contentLeft)}_getTopAndBottomLeft(i){if(!this._viewRange)return[null,null];let a=i.linesVisibleRangesForRange(this._viewRange,!1);if(!a||a.length===0)return[null,null];let _=a[0],R=a[0];for(let at of a)at.lineNumber<_.lineNumber&&(_=at),at.lineNumber>R.lineNumber&&(R=at);let K=1073741824;for(let at of _.ranges)at.left<K&&(K=at.left);let we=1073741824;for(let at of R.ranges)at.left<we&&(we=at.left);let Pe=i.getVerticalOffsetForLineNumber(_.lineNumber)-i.scrollTop,Ve=new pn(Pe,K),Je=i.getVerticalOffsetForLineNumber(R.lineNumber)-i.scrollTop;return[Ve,new pn(Je,we)]}_prepareRenderWidget(i){let[a,_]=this._getTopAndBottomLeft(i);if(!a||!_)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){let K=this.domNode.domNode;this._cachedDomNodeClientWidth=K.clientWidth,this._cachedDomNodeClientHeight=K.clientHeight}let R;if(R=this.allowEditorOverflow?this._layoutBoxInPage(a,_,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,i):this._layoutBoxInViewport(a,_,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,i),this._preference)for(let K=1;K<=2;K++)for(let we of this._preference)if(we===1){if(!R)return null;if(K===2||R.fitsAbove)return new pn(R.aboveTop,R.aboveLeft)}else{if(we!==2)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(a):a;if(!R)return null;if(K===2||R.fitsBelow)return new pn(R.belowTop,R.belowLeft)}return null}onBeforeRender(i){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<i.startLineNumber||this._viewRange.startLineNumber>i.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(i){this._renderData=this._prepareRenderWidget(i)}render(i){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+i.scrollTop-i.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))}}o(216);var ho=o(15);let On=!0;class Dn extends gi{constructor(i){super(),this._context=i;let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._renderLineHighlight=a.get(77),this._renderLineHightlightOnlyWhenFocus=a.get(78),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[],this._selections=[],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let i=!1,a=On?this._selections.slice(0,1):this._selections,_=a.map(K=>K.positionLineNumber);_.sort((K,we)=>K-we),ho.g(this._cursorLineNumbers,_)||(this._cursorLineNumbers=_,i=!0);let R=a.every(K=>K.isEmpty());return this._selectionIsEmpty!==R&&(this._selectionIsEmpty=R,i=!0),i}onThemeChanged(i){return this._readFromSelections()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._renderLineHighlight=a.get(77),this._renderLineHightlightOnlyWhenFocus=a.get(78),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,!0}onCursorStateChanged(i){return this._selections=i.selections,this._readFromSelections()}onFlushed(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollWidthChanged||i.scrollTopChanged}onZonesChanged(i){return!0}onFocusChanged(i){return!!this._renderLineHightlightOnlyWhenFocus&&(this._focused=i.isFocused,!0)}prepareRender(i){if(!this._shouldRenderThis())return void(this._renderData=null);let a=this._renderOne(i),_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,we=0,Pe=[];for(let Ve=_;Ve<=R;Ve++){let Je=Ve-_;for(;we<K&&this._cursorLineNumbers[we]<Ve;)we++;we<K&&this._cursorLineNumbers[we]===Ve?Pe[Je]=a:Pe[Je]=""}this._renderData=Pe}render(i,a){if(!this._renderData)return"";let _=a-i;return _>=this._renderData.length?"":this._renderData[_]}}class qt extends Dn{_renderOne(i){return`<div class="${"current-line"+(this._shouldRenderOther()?" current-line-both":"")}" style="width:${Math.max(i.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}class I extends Dn{_renderOne(i){return`<div class="${"current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"")}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}Object(ht.g)((Zt,i)=>{On=!1;let a=Zt.getColor(ki.i);if(a&&(i.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${a}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${a}; border: none; }`)),!a||a.isTransparent()||Zt.defines(ki.j)){let _=Zt.getColor(ki.j);_&&(On=!0,i.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${_}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${_}; }`),Zt.type==="hc"&&(i.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),i.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}),o(218);class ne extends gi{constructor(i){super(),this._context=i;let a=this._context.configuration.options;this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged||i.scrollWidthChanged}onZonesChanged(i){return!0}prepareRender(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let Ve=0,Je=a.length;Ve<Je;Ve++){let at=a[Ve];at.options.className&&(_[R++]=at)}_=_.sort((Ve,Je)=>{if(Ve.options.zIndex<Je.options.zIndex)return-1;if(Ve.options.zIndex>Je.options.zIndex)return 1;let at=Ve.options.className,bt=Je.options.className;return at<bt?-1:at>bt?1:Nt.a.compareRangesUsingStarts(Ve.range,Je.range)});let K=i.visibleRange.startLineNumber,we=i.visibleRange.endLineNumber,Pe=[];for(let Ve=K;Ve<=we;Ve++)Pe[Ve-K]="";this._renderWholeLineDecorations(i,_,Pe),this._renderNormalDecorations(i,_,Pe),this._renderResult=Pe}_renderWholeLineDecorations(i,a,_){let R=String(this._lineHeight),K=i.visibleRange.startLineNumber,we=i.visibleRange.endLineNumber;for(let Pe=0,Ve=a.length;Pe<Ve;Pe++){let Je=a[Pe];if(!Je.options.isWholeLine)continue;let at='<div class="cdr '+Je.options.className+'" style="left:0;width:100%;height:'+R+'px;"></div>',bt=Math.max(Je.range.startLineNumber,K),Bt=Math.min(Je.range.endLineNumber,we);for(let Pt=bt;Pt<=Bt;Pt++)_[Pt-K]+=at}}_renderNormalDecorations(i,a,_){let R=String(this._lineHeight),K=i.visibleRange.startLineNumber,we=null,Pe=!1,Ve=null;for(let Je=0,at=a.length;Je<at;Je++){let bt=a[Je];if(bt.options.isWholeLine)continue;let Bt=bt.options.className,Pt=Boolean(bt.options.showIfCollapsed),ni=bt.range;Pt&&ni.endColumn===1&&ni.endLineNumber!==ni.startLineNumber&&(ni=new Nt.a(ni.startLineNumber,ni.startColumn,ni.endLineNumber-1,this._context.model.getLineMaxColumn(ni.endLineNumber-1))),we===Bt&&Pe===Pt&&Nt.a.areIntersectingOrTouching(Ve,ni)?Ve=Nt.a.plusRange(Ve,ni):(we!==null&&this._renderNormalDecoration(i,Ve,we,Pe,R,K,_),we=Bt,Pe=Pt,Ve=ni)}we!==null&&this._renderNormalDecoration(i,Ve,we,Pe,R,K,_)}_renderNormalDecoration(i,a,_,R,K,we,Pe){let Ve=i.linesVisibleRangesForRange(a,_==="findMatch");if(Ve)for(let Je=0,at=Ve.length;Je<at;Je++){let bt=Ve[Je];if(bt.outsideRenderedLine)continue;let Bt=bt.lineNumber-we;if(R&&bt.ranges.length===1){let Pt=bt.ranges[0];Pt.width===0&&(bt.ranges[0]=new he(Pt.left,this._typicalHalfwidthCharacterWidth))}for(let Pt=0,ni=bt.ranges.length;Pt<ni;Pt++){let Ci=bt.ranges[Pt],Vi='<div class="cdr '+_+'" style="left:'+String(Ci.left)+"px;width:"+String(Ci.width)+"px;height:"+K+'px;"></div>';Pe[Bt]+=Vi}}}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}var _e=o(105);class Fe extends xe{constructor(i,a,_,R){super(i);let K=this._context.configuration.options,we=K.get(84),Pe=K.get(58),Ve=K.get(28),Je=K.get(87),at={listenOnDomNode:_.domNode,className:"editor-scrollable "+Object(ht.f)(i.theme.type),useShadows:!1,lazyRender:!0,vertical:we.vertical,horizontal:we.horizontal,verticalHasArrows:we.verticalHasArrows,horizontalHasArrows:we.horizontalHasArrows,verticalScrollbarSize:we.verticalScrollbarSize,verticalSliderSize:we.verticalSliderSize,horizontalScrollbarSize:we.horizontalScrollbarSize,horizontalSliderSize:we.horizontalSliderSize,handleMouseWheel:we.handleMouseWheel,alwaysConsumeMouseWheel:we.alwaysConsumeMouseWheel,arrowSize:we.arrowSize,mouseWheelScrollSensitivity:Pe,fastScrollSensitivity:Ve,scrollPredominantAxis:Je};this.scrollbar=this._register(new _e.c(a.domNode,at,this._context.viewLayout.getScrollable())),Y.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(S.b)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let bt=(Bt,Pt,ni)=>{let Ci={};if(Pt){let Vi=Bt.scrollTop;Vi&&(Ci.scrollTop=this._context.viewLayout.getCurrentScrollTop()+Vi,Bt.scrollTop=0)}if(ni){let Vi=Bt.scrollLeft;Vi&&(Ci.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+Vi,Bt.scrollLeft=0)}this._context.model.setScrollPosition(Ci,1)};this._register(f.i(_.domNode,"scroll",Bt=>bt(_.domNode,!0,!0))),this._register(f.i(a.domNode,"scroll",Bt=>bt(a.domNode,!0,!1))),this._register(f.i(R.domNode,"scroll",Bt=>bt(R.domNode,!0,!1))),this._register(f.i(this.scrollbarDomNode.domNode,"scroll",Bt=>bt(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let i=this._context.configuration.options,a=i.get(117);this.scrollbarDomNode.setLeft(a.contentLeft),i.get(56).side==="right"?this.scrollbarDomNode.setWidth(a.contentWidth+a.minimap.minimapWidth):this.scrollbarDomNode.setWidth(a.contentWidth),this.scrollbarDomNode.setHeight(a.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(i){this.scrollbar.delegateVerticalScrollbarMouseDown(i)}onConfigurationChanged(i){if(i.hasChanged(84)||i.hasChanged(58)||i.hasChanged(28)){let a=this._context.configuration.options,_=a.get(84),R=a.get(58),K=a.get(28),we=a.get(87),Pe={handleMouseWheel:_.handleMouseWheel,mouseWheelScrollSensitivity:R,fastScrollSensitivity:K,scrollPredominantAxis:we};this.scrollbar.updateOptions(Pe)}return i.hasChanged(117)&&this._setLayout(),!0}onScrollChanged(i){return!0}onThemeChanged(i){return this.scrollbar.updateClassName("editor-scrollable "+Object(ht.f)(this._context.theme.type)),!0}prepareRender(i){}render(i){this.scrollbar.renderNow()}}o(222);class Xe{constructor(i,a,_){this.startLineNumber=+i,this.endLineNumber=+a,this.className=String(_)}}class ot extends gi{_render(i,a,_){let R=[];for(let Pe=i;Pe<=a;Pe++)R[Pe-i]=[];if(_.length===0)return R;_.sort((Pe,Ve)=>Pe.className===Ve.className?Pe.startLineNumber===Ve.startLineNumber?Pe.endLineNumber-Ve.endLineNumber:Pe.startLineNumber-Ve.startLineNumber:Pe.className<Ve.className?-1:1);let K=null,we=0;for(let Pe=0,Ve=_.length;Pe<Ve;Pe++){let Je=_[Pe],at=Je.className,bt=Math.max(Je.startLineNumber,i)-i,Bt=Math.min(Je.endLineNumber,a)-i;K===at?(bt=Math.max(we+1,bt),we=Math.max(we,Bt)):(K=at,we=Bt);for(let Pt=bt;Pt<=we;Pt++)R[Pt].push(K)}return R}}class Mt extends ot{constructor(i){super(),this._context=i;let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._glyphMargin=a.get(42),this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._glyphMargin=a.get(42),this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.glyphMarginClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve))}return _}prepareRender(i){if(!this._glyphMargin)return void(this._renderResult=null);let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K=this._lineHeight.toString(),we='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+K+'px;"></div>',Pe=[];for(let Ve=a;Ve<=_;Ve++){let Je=Ve-a,at=R[Je];at.length===0?Pe[Je]="":Pe[Je]='<div class="cgmr codicon '+at.join(" ")+we}this._renderResult=Pe}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}o(224);class Ot extends gi{constructor(i){super(),this._context=i,this._primaryLineNumber=0;let a=this._context.configuration.options,_=a.get(118),R=a.get(36);this._lineHeight=a.get(51),this._spaceWidth=R.spaceWidth,this._enabled=a.get(75),this._activeIndentEnabled=a.get(45),this._maxIndentLeft=_.wrappingColumn===-1?-1:_.wrappingColumn*R.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(118),R=a.get(36);return this._lineHeight=a.get(51),this._spaceWidth=R.spaceWidth,this._enabled=a.get(75),this._activeIndentEnabled=a.get(45),this._maxIndentLeft=_.wrappingColumn===-1?-1:_.wrappingColumn*R.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){let a=i.selections[0],_=a.isEmpty()?a.positionLineNumber:0;return this._primaryLineNumber!==_&&(this._primaryLineNumber=_,!0)}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}onLanguageConfigurationChanged(i){return!0}prepareRender(i){if(!this._enabled)return void(this._renderResult=null);let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,{indentSize:R}=this._context.model.getTextModelOptions(),K=R*this._spaceWidth,we=i.scrollWidth,Pe=this._lineHeight,Ve=this._context.model.getLinesIndentGuides(a,_),Je=0,at=0,bt=0;if(this._activeIndentEnabled&&this._primaryLineNumber){let Pt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,a,_);Je=Pt.startLineNumber,at=Pt.endLineNumber,bt=Pt.indent}let Bt=[];for(let Pt=a;Pt<=_;Pt++){let ni=Je<=Pt&&Pt<=at,Ci=Pt-a,Vi=Ve[Ci],Mi="";if(Vi>=1){let zi=i.visibleRangeForPosition(new At.a(Pt,1)),Yi=zi?zi.left:0;for(let Gi=1;Gi<=Vi&&(Mi+=`<div class="${ni&&Gi===bt?"cigra":"cigr"}" style="left:${Yi}px;height:${Pe}px;width:${K}px"></div>`,Yi+=K,!(Yi>we||this._maxIndentLeft>0&&Yi>this._maxIndentLeft));Gi++);}Bt[Ci]=Mi}this._renderResult=Bt}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.h);a&&i.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${a} inset; }`);let _=Zt.getColor(ki.a)||a;_&&i.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${_} inset; }`)}),o(226);class Tt{constructor(){this._currentVisibleRange=new Nt.a(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(i){this._currentVisibleRange=i}}class Ht{constructor(i,a,_,R,K,we){this.lineNumber=i,this.startColumn=a,this.endColumn=_,this.startScrollTop=R,this.stopScrollTop=K,this.scrollType=we,this.type="range",this.minLineNumber=i,this.maxLineNumber=i}}class jt{constructor(i,a,_,R){this.selections=i,this.startScrollTop=a,this.stopScrollTop=_,this.scrollType=R,this.type="selections";let K=i[0].startLineNumber,we=i[0].endLineNumber;for(let Pe=1,Ve=i.length;Pe<Ve;Pe++){let Je=i[Pe];K=Math.min(K,Je.startLineNumber),we=Math.max(we,Je.endLineNumber)}this.minLineNumber=K,this.maxLineNumber=we}}class Kt extends xe{constructor(i,a){super(i),this._linesContent=a,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Fn(this),this.domNode=this._visibleLines.domNode;let _=this._context.configuration,R=this._context.configuration.options,K=R.get(36),we=R.get(118);this._lineHeight=R.get(51),this._typicalHalfwidthCharacterWidth=K.typicalHalfwidthCharacterWidth,this._isViewportWrapping=we.isViewportWrapping,this._revealHorizontalRightPadding=R.get(81),this._cursorSurroundingLines=R.get(20),this._cursorSurroundingLinesStyle=R.get(21),this._canUseLayerHinting=!R.get(23),this._viewLineOptions=new Se(_,this._context.theme.type),Y.write(this.domNode,7),this.domNode.setClassName("view-lines "+yi.a),W.a.applyFontInfo(this.domNode,K),this._maxLineWidth=0,this._asyncUpdateLineWidths=new l.d(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new l.d(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Tt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new A(this._viewLineOptions)}onConfigurationChanged(i){this._visibleLines.onConfigurationChanged(i),i.hasChanged(118)&&(this._maxLineWidth=0);let a=this._context.configuration.options,_=a.get(36),R=a.get(118);return this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._isViewportWrapping=R.isViewportWrapping,this._revealHorizontalRightPadding=a.get(81),this._cursorSurroundingLines=a.get(20),this._cursorSurroundingLinesStyle=a.get(21),this._canUseLayerHinting=!a.get(23),W.a.applyFontInfo(this.domNode,_),this._onOptionsMaybeChanged(),i.hasChanged(117)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){let i=this._context.configuration,a=new Se(i,this._context.theme.type);if(!this._viewLineOptions.equals(a)){this._viewLineOptions=a;let _=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++)this._visibleLines.getVisibleLine(K).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber(),R=!1;for(let K=a;K<=_;K++)R=this._visibleLines.getVisibleLine(K).onSelectionChanged()||R;return R}onDecorationsChanged(i){{let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)this._visibleLines.getVisibleLine(R).onDecorationsChanged()}return!0}onFlushed(i){let a=this._visibleLines.onFlushed(i);return this._maxLineWidth=0,a}onLinesChanged(i){return this._visibleLines.onLinesChanged(i)}onLinesDeleted(i){return this._visibleLines.onLinesDeleted(i)}onLinesInserted(i){return this._visibleLines.onLinesInserted(i)}onRevealRangeRequest(i){let a=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),i.source,i.range,i.selections,i.verticalType);if(a===-1)return!1;let _=this._context.viewLayout.validateScrollPosition({scrollTop:a});i.revealHorizontal?i.range&&i.range.startLineNumber!==i.range.endLineNumber?_={scrollTop:_.scrollTop,scrollLeft:0}:i.range?this._horizontalRevealRequest=new Ht(i.range.startLineNumber,i.range.startColumn,i.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),_.scrollTop,i.scrollType):i.selections&&i.selections.length>0&&(this._horizontalRevealRequest=new jt(i.selections,this._context.viewLayout.getCurrentScrollTop(),_.scrollTop,i.scrollType)):this._horizontalRevealRequest=null;let R=Math.abs(this._context.viewLayout.getCurrentScrollTop()-_.scrollTop)<=this._lineHeight?1:i.scrollType;return this._context.model.setScrollPosition(_,R),!0}onScrollChanged(i){if(this._horizontalRevealRequest&&i.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&i.scrollTopChanged){let a=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),_=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(i.scrollTop<a||i.scrollTop>_)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(i.scrollWidth),this._visibleLines.onScrollChanged(i)||!0}onTokensChanged(i){return this._visibleLines.onTokensChanged(i)}onZonesChanged(i){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(i)}onThemeChanged(i){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(i,a){let _=this._getViewLineDomNode(i);if(_===null)return null;let R=this._getLineNumberFor(_);if(R===-1||R<1||R>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(R)===1)return new At.a(R,1);let K=this._visibleLines.getStartLineNumber(),we=this._visibleLines.getEndLineNumber();if(R<K||R>we)return null;let Pe=this._visibleLines.getVisibleLine(R).getColumnOfNodeOffset(R,i,a),Ve=this._context.model.getLineMinColumn(R);return Pe<Ve&&(Pe=Ve),new At.a(R,Pe)}_getViewLineDomNode(i){for(;i&&i.nodeType===1;){if(i.className===A.CLASS_NAME)return i;i=i.parentElement}return null}_getLineNumberFor(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)if(i===this._visibleLines.getVisibleLine(R).getDomNode())return R;return-1}getLineWidth(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();return i<a||i>_?-1:this._visibleLines.getVisibleLine(i).getWidth()}linesVisibleRangesForRange(i,a){if(this.shouldRender())return null;let _=i.endLineNumber,R=Nt.a.intersectRanges(i,this._lastRenderedData.getCurrentVisibleRange());if(!R)return null;let K=[],we=0,Pe=new J(this.domNode.domNode,this._textRangeRestingSpot),Ve=0;a&&(Ve=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(R.startLineNumber,1)).lineNumber);let Je=this._visibleLines.getStartLineNumber(),at=this._visibleLines.getEndLineNumber();for(let bt=R.startLineNumber;bt<=R.endLineNumber;bt++){if(bt<Je||bt>at)continue;let Bt=bt===R.startLineNumber?R.startColumn:1,Pt=bt===R.endLineNumber?R.endColumn:this._context.model.getLineMaxColumn(bt),ni=this._visibleLines.getVisibleLine(bt).getVisibleRangesForRange(Bt,Pt,Pe);if(ni){if(a&&bt<_){let Ci=Ve;Ve=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(bt+1,1)).lineNumber,Ci!==Ve&&(ni.ranges[ni.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}K[we++]=new te(ni.outsideRenderedLine,bt,ni.ranges)}}return we===0?null:K}_visibleRangesForLineRange(i,a,_){return this.shouldRender()||i<this._visibleLines.getStartLineNumber()||i>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(i).getVisibleRangesForRange(a,_,new J(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(i){let a=this._visibleRangesForLineRange(i.lineNumber,i.column,i.column);return a?new Ce(a.outsideRenderedLine,a.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber(),R=1,K=!0;for(let we=a;we<=_;we++){let Pe=this._visibleLines.getVisibleLine(we);!i||Pe.getWidthIsFast()?R=Math.max(R,Pe.getWidth()):K=!1}return K&&a===1&&_===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(R),K}_checkMonospaceFontAssumptions(){let i=-1,a=-1,_=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++){let we=this._visibleLines.getVisibleLine(K);if(we.needsMonospaceFontCheck()){let Pe=we.getWidth();Pe>a&&(a=Pe,i=K)}}if(i!==-1&&!this._visibleLines.getVisibleLine(i).monospaceAssumptionsAreValid())for(let K=_;K<=R;K++)this._visibleLines.getVisibleLine(K).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(i){if(this._visibleLines.renderLines(i),this._lastRenderedData.setCurrentVisibleRange(i.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){let _=this._horizontalRevealRequest;if(i.startLineNumber<=_.minLineNumber&&_.maxLineNumber<=i.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();let R=this._computeScrollLeftToReveal(_);R&&(this._isViewportWrapping||this._ensureMaxLineWidth(R.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:R.scrollLeft},_.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),P.d&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){let _=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++)if(this._visibleLines.getVisibleLine(K).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");let a=this._context.viewLayout.getCurrentScrollTop()-i.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(i){let a=Math.ceil(i);this._maxLineWidth<a&&(this._maxLineWidth=a,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(i,a,_,R,K){let we=i.top,Pe=i.height,Ve=we+Pe,Je,at,bt;if(R&&R.length>0){let Pt=R[0].startLineNumber,ni=R[0].endLineNumber;for(let Ci=1,Vi=R.length;Ci<Vi;Ci++){let Mi=R[Ci];Pt=Math.min(Pt,Mi.startLineNumber),ni=Math.max(ni,Mi.endLineNumber)}Je=!1,at=this._context.viewLayout.getVerticalOffsetForLineNumber(Pt),bt=this._context.viewLayout.getVerticalOffsetForLineNumber(ni)+this._lineHeight}else{if(!_)return-1;Je=!0,at=this._context.viewLayout.getVerticalOffsetForLineNumber(_.startLineNumber),bt=this._context.viewLayout.getVerticalOffsetForLineNumber(_.endLineNumber)+this._lineHeight}if(!(a==="mouse"&&this._cursorSurroundingLinesStyle==="default")){let Pt=Math.min(Pe/this._lineHeight/2,this._cursorSurroundingLines);at-=Pt*this._lineHeight,bt+=Math.max(0,Pt-1)*this._lineHeight}let Bt;if(K!==0&&K!==4||(bt+=this._lineHeight),bt-at>Pe){if(!Je)return-1;Bt=at}else if(K===5||K===6)if(K===6&&we<=at&&bt<=Ve)Bt=we;else{let Pt=at-Math.max(5*this._lineHeight,.2*Pe),ni=bt-Pe;Bt=Math.max(ni,Pt)}else if(K===1||K===2)if(K===2&&we<=at&&bt<=Ve)Bt=we;else{let Pt=(at+bt)/2;Bt=Math.max(0,Pt-Pe/2)}else Bt=this._computeMinimumScrolling(we,Ve,at,bt,K===3,K===4);return Bt}_computeScrollLeftToReveal(i){let a=this._context.viewLayout.getCurrentViewport(),_=a.left,R=_+a.width,K=1073741824,we=0;if(i.type==="range"){let Pe=this._visibleRangesForLineRange(i.lineNumber,i.startColumn,i.endColumn);if(!Pe)return null;for(let Ve of Pe.ranges)K=Math.min(K,Ve.left),we=Math.max(we,Ve.left+Ve.width)}else for(let Pe of i.selections){if(Pe.startLineNumber!==Pe.endLineNumber)return null;let Ve=this._visibleRangesForLineRange(Pe.startLineNumber,Pe.startColumn,Pe.endColumn);if(!Ve)return null;for(let Je of Ve.ranges)K=Math.min(K,Je.left),we=Math.max(we,Je.left+Je.width)}return K=Math.max(0,K-Kt.HORIZONTAL_EXTRA_PX),we+=this._revealHorizontalRightPadding,i.type==="selections"&&we-K>a.width?null:{scrollLeft:this._computeMinimumScrolling(_,R,K,we),maxHorizontalOffset:we}}_computeMinimumScrolling(i,a,_,R,K,we){K=!!K,we=!!we;let Pe=(a|=0)-(i|=0);return(R|=0)-(_|=0)<Pe?K?_:we?Math.max(0,R-Pe):_<i?_:R>a?Math.max(0,R-Pe):i:_}}Kt.HORIZONTAL_EXTRA_PX=30,o(228);class wi extends ot{constructor(i){super(),this._context=i;let a=this._context.configuration.options.get(117);this._decorationsLeft=a.decorationsLeft,this._decorationsWidth=a.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._decorationsLeft=a.decorationsLeft,this._decorationsWidth=a.decorationsWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.linesDecorationsClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve));let Je=Pe.options.firstLineDecorationClassName;Je&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.startLineNumber,Je))}return _}prepareRender(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',we=[];for(let Pe=a;Pe<=_;Pe++){let Ve=Pe-a,Je=R[Ve],at="";for(let bt=0,Bt=Je.length;bt<Bt;bt++)at+='<div class="cldr '+Je[bt]+K;we[Ve]=at}this._renderResult=we}render(i,a){return this._renderResult?this._renderResult[a-i]:""}}o(230);class Ti extends ot{constructor(i){super(),this._context=i,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.marginClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve))}return _}prepareRender(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K=[];for(let we=a;we<=_;we++){let Pe=we-a,Ve=R[Pe],Je="";for(let at=0,bt=Ve.length;at<bt;at++)Je+='<div class="cmdr '+Ve[at]+'" style=""></div>';K[Pe]=Je}this._renderResult=K}render(i,a){return this._renderResult?this._renderResult[a-i]:""}}o(232);class ft{constructor(i,a,_,R){this.r=ft._clamp(i),this.g=ft._clamp(a),this.b=ft._clamp(_),this.a=ft._clamp(R)}equals(i){return this.r===i.r&&this.g===i.g&&this.b===i.b&&this.a===i.a}static _clamp(i){return i<0?0:i>255?255:0|i}}ft.Empty=new ft(0,0,0,0);var X=o(12);class ae{constructor(){this._onDidChange=new H.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),X.C.onDidChange(i=>{i.changedColorMap&&this._updateColorMap()})}static getInstance(){return this._INSTANCE||(this._INSTANCE=new ae),this._INSTANCE}_updateColorMap(){let i=X.C.getColorMap();if(!i)return this._colors=[ft.Empty],void(this._backgroundIsLight=!0);this._colors=[ft.Empty];for(let _=1;_<i.length;_++){let R=i[_].rgba;this._colors[_]=new ft(R.r,R.g,R.b,Math.round(255*R.a))}let a=i[2].getRelativeLuminance();this._backgroundIsLight=a>=.5,this._onDidChange.fire(void 0)}getColor(i){return(i<1||i>=this._colors.length)&&(i=2),this._colors[i]}backgroundIsLight(){return this._backgroundIsLight}}ae._INSTANCE=null;var Ge=o(74),lt=o(5);let Dt=(()=>{let Zt=[];for(let i=32;i<=126;i++)Zt.push(i);return Zt.push(65533),Zt})();var Gt=o(36);class ti{constructor(i,a){this.scale=a,this.charDataNormal=ti.soften(i,.8),this.charDataLight=ti.soften(i,50/60)}static soften(i,a){let _=new Uint8ClampedArray(i.length);for(let R=0,K=i.length;R<K;R++)_[R]=Object(Gt.b)(i[R]*a);return _}renderChar(i,a,_,R,K,we,Pe,Ve,Je){let at=1*this.scale,bt=2*this.scale,Bt=Je?1:bt;if(a+at>i.width||_+Bt>i.height)return void console.warn("bad render request outside image data");let Pt=Ve?this.charDataLight:this.charDataNormal,ni=((qn,ro)=>(qn-=32)<0||qn>96?ro<=2?(qn+96)%96:95:qn)(R,Pe),Ci=4*i.width,Vi=we.r,Mi=we.g,zi=we.b,Yi=K.r-Vi,Gi=K.g-Mi,wn=K.b-zi,nn=i.data,Wn=ni*at*bt,An=_*Ci+4*a;for(let qn=0;qn<Bt;qn++){let ro=An;for(let Un=0;Un<at;Un++){let Lo=Pt[Wn++]/255;nn[ro++]=Vi+Yi*Lo,nn[ro++]=Mi+Gi*Lo,nn[ro++]=zi+wn*Lo,ro++}An+=Ci}}blockRenderChar(i,a,_,R,K,we,Pe){let Ve=1*this.scale,Je=2*this.scale,at=Pe?1:Je;if(a+Ve>i.width||_+at>i.height)return void console.warn("bad render request outside image data");let bt=4*i.width,Bt=K.r,Pt=K.g,ni=K.b,Ci=Bt+.5*(R.r-Bt),Vi=Pt+.5*(R.g-Pt),Mi=ni+.5*(R.b-ni),zi=i.data,Yi=_*bt+4*a;for(let Gi=0;Gi<at;Gi++){let wn=Yi;for(let nn=0;nn<Ve;nn++)zi[wn++]=Ci,zi[wn++]=Vi,zi[wn++]=Mi,wn++;Yi+=bt}}}var ye=o(133);let le={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},ue=Zt=>{let i=new Uint8ClampedArray(Zt.length/2);for(let a=0;a<Zt.length;a+=2)i[a>>1]=le[Zt[a]]<<4|15&le[Zt[a+1]];return i},qe={1:Object(ye.a)(()=>ue("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(ye.a)(()=>ue("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class Ze{static create(i,a){if(this.lastCreated&&i===this.lastCreated.scale&&a===this.lastFontFamily)return this.lastCreated;let _;return _=qe[i]?new ti(qe[i](),i):Ze.createFromSampleData(Ze.createSampleData(a).data,i),this.lastFontFamily=a,this.lastCreated=_,_}static createSampleData(i){let a=document.createElement("canvas"),_=a.getContext("2d");a.style.height="16px",a.height=16,a.width=960,a.style.width="960px",_.fillStyle="#ffffff",_.font="bold 16px "+i,_.textBaseline="middle";let R=0;for(let K of Dt)_.fillText(String.fromCharCode(K),R,8),R+=10;return _.getImageData(0,0,960,16)}static createFromSampleData(i,a){if(i.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");let _=Ze._downsample(i,a);return new ti(_,a)}static _downsampleChar(i,a,_,R,K){let we=1*K,Pe=2*K,Ve=R,Je=0;for(let at=0;at<Pe;at++){let bt=at/Pe*16,Bt=(at+1)/Pe*16;for(let Pt=0;Pt<we;Pt++){let ni=Pt/we*10,Ci=(Pt+1)/we*10,Vi=0,Mi=0;for(let Yi=bt;Yi<Bt;Yi++){let Gi=a+3840*Math.floor(Yi),wn=1-(Yi-Math.floor(Yi));for(let nn=ni;nn<Ci;nn++){let Wn=1-(nn-Math.floor(nn)),An=Gi+4*Math.floor(nn),qn=Wn*wn;Mi+=qn,Vi+=i[An]*i[An+3]/255*qn}}let zi=Vi/Mi;Je=Math.max(Je,zi),_[Ve++]=Object(Gt.b)(zi)}}return Je}static _downsample(i,a){let _=2*a*1*a,R=96*_,K=new Uint8ClampedArray(R),we=0,Pe=0,Ve=0;for(let Je=0;Je<96;Je++)Ve=Math.max(Ve,this._downsampleChar(i,Pe,K,we,a)),we+=_,Pe+=40;if(Ve>0){let Je=255/Ve;for(let at=0;at<R;at++)K[at]*=Je}return K}}var tt=o(58);class rt{constructor(i,a,_){let R=i.options,K=R.get(115),we=R.get(117),Pe=we.minimap,Ve=R.get(36),Je=R.get(56);this.renderMinimap=Pe.renderMinimap,this.size=Je.size,this.minimapHeightIsEditorHeight=Pe.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=R.get(86),this.showSlider=Je.showSlider,this.pixelRatio=K,this.typicalHalfwidthCharacterWidth=Ve.typicalHalfwidthCharacterWidth,this.lineHeight=R.get(51),this.minimapLeft=Pe.minimapLeft,this.minimapWidth=Pe.minimapWidth,this.minimapHeight=we.height,this.canvasInnerWidth=Pe.minimapCanvasInnerWidth,this.canvasInnerHeight=Pe.minimapCanvasInnerHeight,this.canvasOuterWidth=Pe.minimapCanvasOuterWidth,this.canvasOuterHeight=Pe.minimapCanvasOuterHeight,this.isSampling=Pe.minimapIsSampling,this.editorHeight=we.height,this.fontScale=Pe.minimapScale,this.minimapLineHeight=Pe.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=Object(ye.a)(()=>Ze.create(this.fontScale,Ve.fontFamily)),this.backgroundColor=rt._getMinimapBackground(a,_)}static _getMinimapBackground(i,a){let _=i.getColor(lt.Mb);return _?new ft(_.rgba.r,_.rgba.g,_.rgba.b,_.rgba.a):a.getColor(2)}equals(i){return this.renderMinimap===i.renderMinimap&&this.size===i.size&&this.minimapHeightIsEditorHeight===i.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===i.scrollBeyondLastLine&&this.showSlider===i.showSlider&&this.pixelRatio===i.pixelRatio&&this.typicalHalfwidthCharacterWidth===i.typicalHalfwidthCharacterWidth&&this.lineHeight===i.lineHeight&&this.minimapLeft===i.minimapLeft&&this.minimapWidth===i.minimapWidth&&this.minimapHeight===i.minimapHeight&&this.canvasInnerWidth===i.canvasInnerWidth&&this.canvasInnerHeight===i.canvasInnerHeight&&this.canvasOuterWidth===i.canvasOuterWidth&&this.canvasOuterHeight===i.canvasOuterHeight&&this.isSampling===i.isSampling&&this.editorHeight===i.editorHeight&&this.fontScale===i.fontScale&&this.minimapLineHeight===i.minimapLineHeight&&this.minimapCharWidth===i.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(i.backgroundColor)}}class zt{constructor(i,a,_,R,K,we,Pe,Ve){this.scrollTop=i,this.scrollHeight=a,this.sliderNeeded=_,this._computedSliderRatio=R,this.sliderTop=K,this.sliderHeight=we,this.startLineNumber=Pe,this.endLineNumber=Ve}getDesiredScrollTopFromDelta(i){let a=this.sliderTop+i;return Math.round(a/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(i){return Math.round((i-this.sliderHeight/2)/this._computedSliderRatio)}static create(i,a,_,R,K,we,Pe,Ve,Je,at){let bt=i.pixelRatio,Bt=i.minimapLineHeight,Pt=Math.floor(i.canvasInnerHeight/Bt),ni=i.lineHeight;if(i.minimapHeightIsEditorHeight){let Gi=Pe*i.lineHeight+(i.scrollBeyondLastLine?R-i.lineHeight:0),wn=Math.max(1,Math.floor(R*R/Gi)),nn=Math.max(0,i.minimapHeight-wn),Wn=nn/(Je-R),An=Ve*Wn,qn=nn>0,ro=Math.floor(i.canvasInnerHeight/i.minimapLineHeight);return new zt(Ve,Je,qn,Wn,An,wn,1,Math.min(we,ro))}let Ci,Vi;if(K&&_!==we){let Gi=_-a+1;Ci=Math.floor(Gi*Bt/bt)}else{let Gi=R/ni;Ci=Math.floor(Gi*Bt/bt)}Vi=i.scrollBeyondLastLine?(we-1)*Bt/bt:Math.max(0,we*Bt/bt-Ci),Vi=Math.min(i.minimapHeight-Ci,Vi);let Mi=Vi/(Je-R),zi=Ve*Mi,Yi=0;if(i.scrollBeyondLastLine&&(Yi=R/ni-1),Pt>=we+Yi)return new zt(Ve,Je,Vi>0,Mi,zi,Ci,1,we);{let Gi=Math.max(1,Math.floor(a-zi*bt/Bt));at&&at.scrollHeight===Je&&(at.scrollTop>Ve&&(Gi=Math.min(Gi,at.startLineNumber)),at.scrollTop<Ve&&(Gi=Math.max(Gi,at.startLineNumber)));let wn=Math.min(we,Gi+Pt-1);return new zt(Ve,Je,!0,Mi,zi,Ci,Gi,wn)}}}class Jt{constructor(i){this.dy=i}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Jt.INVALID=new Jt(-1);class xi{constructor(i,a,_){this.renderedLayout=i,this._imageData=a,this._renderedLines=new bn(()=>Jt.INVALID),this._renderedLines._set(i.startLineNumber,_)}linesEquals(i){if(!this.scrollEquals(i))return!1;let a=this._renderedLines._get().lines;for(let _=0,R=a.length;_<R;_++)if(a[_].dy===-1)return!1;return!0}scrollEquals(i){return this.renderedLayout.startLineNumber===i.startLineNumber&&this.renderedLayout.endLineNumber===i.endLineNumber}_get(){let i=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:i.rendLineNumberStart,lines:i.lines}}onLinesChanged(i,a){return this._renderedLines.onLinesChanged(i,a)}onLinesDeleted(i,a){this._renderedLines.onLinesDeleted(i,a)}onLinesInserted(i,a){this._renderedLines.onLinesInserted(i,a)}onTokensChanged(i){return this._renderedLines.onTokensChanged(i)}}class Ei{constructor(i,a,_,R){this._backgroundFillData=Ei._createBackgroundFillData(a,_,R),this._buffers=[i.createImageData(a,_),i.createImageData(a,_)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;let i=this._buffers[this._lastUsedBuffer];return i.data.set(this._backgroundFillData),i}static _createBackgroundFillData(i,a,_){let R=_.r,K=_.g,we=_.b,Pe=new Uint8ClampedArray(i*a*4),Ve=0;for(let Je=0;Je<a;Je++)for(let at=0;at<i;at++)Pe[Ve]=R,Pe[Ve+1]=K,Pe[Ve+2]=we,Pe[Ve+3]=255,Ve+=4;return Pe}}class ai{constructor(i,a){this.samplingRatio=i,this.minimapLines=a}static compute(i,a,_){if(i.renderMinimap===0||!i.isSampling)return[null,[]];let R=i.pixelRatio,K=i.lineHeight,we=i.scrollBeyondLastLine,{minimapLineCount:Pe}=fe.f.computeContainedMinimapLineCount({viewLineCount:a,scrollBeyondLastLine:we,height:i.editorHeight,lineHeight:K,pixelRatio:R}),Ve=a/Pe,Je=Ve/2;if(!_||_.minimapLines.length===0){let zi=[];if(zi[0]=1,Pe>1){for(let Yi=0,Gi=Pe-1;Yi<Gi;Yi++)zi[Yi]=Math.round(Yi*Ve+Je);zi[Pe-1]=a}return[new ai(Ve,zi),[]]}let at=_.minimapLines,bt=at.length,Bt=[],Pt=0,ni=0,Ci=1,Vi=[],Mi=null;for(let zi=0;zi<Pe;zi++){let Yi=Math.max(Ci,Math.round(zi*Ve)),Gi=Math.max(Yi,Math.round((zi+1)*Ve));for(;Pt<bt&&at[Pt]<Yi;){if(Vi.length<10){let nn=Pt+1+ni;Mi&&Mi.type==="deleted"&&Mi._oldIndex===Pt-1?Mi.deleteToLineNumber++:(Mi={type:"deleted",_oldIndex:Pt,deleteFromLineNumber:nn,deleteToLineNumber:nn},Vi.push(Mi)),ni--}Pt++}let wn;if(Pt<bt&&at[Pt]<=Gi)wn=at[Pt],Pt++;else if(wn=zi===0?1:zi+1===Pe?a:Math.round(zi*Ve+Je),Vi.length<10){let nn=Pt+1+ni;Mi&&Mi.type==="inserted"&&Mi._i===zi-1?Mi.insertToLineNumber++:(Mi={type:"inserted",_i:zi,insertFromLineNumber:nn,insertToLineNumber:nn},Vi.push(Mi)),ni++}Bt[zi]=wn,Ci=wn}if(Vi.length<10)for(;Pt<bt;){let zi=Pt+1+ni;Mi&&Mi.type==="deleted"&&Mi._oldIndex===Pt-1?Mi.deleteToLineNumber++:(Mi={type:"deleted",_oldIndex:Pt,deleteFromLineNumber:zi,deleteToLineNumber:zi},Vi.push(Mi)),ni--,Pt++}else Vi=[{type:"flush"}];return[new ai(Ve,Bt),Vi]}modelLineToMinimapLine(i){return Math.min(this.minimapLines.length,Math.max(1,Math.round(i/this.samplingRatio)))}modelLineRangeToMinimapLineRange(i,a){let _=this.modelLineToMinimapLine(i)-1;for(;_>0&&this.minimapLines[_-1]>=i;)_--;let R=this.modelLineToMinimapLine(a)-1;for(;R+1<this.minimapLines.length&&this.minimapLines[R+1]<=a;)R++;if(_===R){let K=this.minimapLines[_];if(K<i||K>a)return null}return[_+1,R+1]}decorationLineRangeToMinimapLineRange(i,a){let _=this.modelLineToMinimapLine(i),R=this.modelLineToMinimapLine(a);return i!==a&&R===_&&(R===this.minimapLines.length?_>1&&_--:R++),[_,R]}onLinesDeleted(i){let a=i.toLineNumber-i.fromLineNumber+1,_=this.minimapLines.length,R=0;for(let K=this.minimapLines.length-1;K>=0&&!(this.minimapLines[K]<i.fromLineNumber);K--)this.minimapLines[K]<=i.toLineNumber?(this.minimapLines[K]=Math.max(1,i.fromLineNumber-1),_=Math.min(_,K),R=Math.max(R,K)):this.minimapLines[K]-=a;return[_,R]}onLinesInserted(i){let a=i.toLineNumber-i.fromLineNumber+1;for(let _=this.minimapLines.length-1;_>=0&&!(this.minimapLines[_]<i.fromLineNumber);_--)this.minimapLines[_]+=a}}class fi extends xe{constructor(i){super(i),this.tokensColorTracker=ae.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new rt(this._context.configuration,this._context.theme,this.tokensColorTracker);let[a]=ai.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=a,this._shouldCheckSampling=!1,this._actual=new ui(i.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){let i=new rt(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(i)&&(this.options=i,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(i){return this._onOptionsMaybeChanged()}onCursorStateChanged(i){return this._selections=i.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(i){return!!i.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(i){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(i){if(this._samplingState){let a=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);return!!a&&this._actual.onLinesChanged(a[0],a[1])}return this._actual.onLinesChanged(i.fromLineNumber,i.toLineNumber)}onLinesDeleted(i){if(this._samplingState){let[a,_]=this._samplingState.onLinesDeleted(i);return a<=_&&this._actual.onLinesChanged(a+1,_+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(i.fromLineNumber,i.toLineNumber)}onLinesInserted(i){return this._samplingState?(this._samplingState.onLinesInserted(i),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(i.fromLineNumber,i.toLineNumber)}onScrollChanged(i){return this._actual.onScrollChanged()}onThemeChanged(i){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(i){if(this._samplingState){let a=[];for(let _ of i.ranges){let R=this._samplingState.modelLineRangeToMinimapLineRange(_.fromLineNumber,_.toLineNumber);R&&a.push({fromLineNumber:R[0],toLineNumber:R[1]})}return!!a.length&&this._actual.onTokensChanged(a)}return this._actual.onTokensChanged(i.ranges)}onTokensColorsChanged(i){return this._actual.onTokensColorsChanged()}onZonesChanged(i){return this._actual.onZonesChanged()}prepareRender(i){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber;this._samplingState&&(a=this._samplingState.modelLineToMinimapLine(a),_=this._samplingState.modelLineToMinimapLine(_));let R={viewportContainsWhitespaceGaps:i.viewportData.whitespaceViewportData.length>0,scrollWidth:i.scrollWidth,scrollHeight:i.scrollHeight,viewportStartLineNumber:a,viewportEndLineNumber:_,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft,viewportWidth:i.viewportWidth,viewportHeight:i.viewportHeight};this._actual.render(R)}_recreateLineSampling(){this._minimapSelections=null;let i=Boolean(this._samplingState),[a,_]=ai.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=a,i&&this._samplingState)for(let R of _)switch(R.type){case"deleted":this._actual.onLinesDeleted(R.deleteFromLineNumber,R.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(R.insertFromLineNumber,R.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(i){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[i-1]):this._context.model.getLineContent(i)}getMinimapLinesRenderingData(i,a,_){if(this._samplingState){let R=[];for(let K=0,we=a-i+1;K<we;K++)_[K]?R[K]=this._context.model.getViewLineData(this._samplingState.minimapLines[i+K-1]):R[K]=null;return R}return this._context.model.getMinimapLinesRenderingData(i,a,_).data}getSelections(){if(this._minimapSelections===null)if(this._samplingState){this._minimapSelections=[];for(let i of this._selections){let[a,_]=this._samplingState.decorationLineRangeToMinimapLineRange(i.startLineNumber,i.endLineNumber);this._minimapSelections.push(new C.a(a,i.startColumn,_,i.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(i,a){let _;if(this._samplingState){let K=this._samplingState.minimapLines[i-1],we=this._samplingState.minimapLines[a-1];_=new Nt.a(K,1,we,this._context.model.getLineMaxColumn(we))}else _=new Nt.a(i,1,a,this._context.model.getLineMaxColumn(a));let R=this._context.model.getDecorationsInViewport(_);if(this._samplingState){let K=[];for(let we of R){if(!we.options.minimap)continue;let Pe=we.range,Ve=this._samplingState.modelLineToMinimapLine(Pe.startLineNumber),Je=this._samplingState.modelLineToMinimapLine(Pe.endLineNumber);K.push(new Ge.e(new Nt.a(Ve,Pe.startColumn,Je,Pe.endColumn),we.options))}return K}return R}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(i){this._samplingState&&(i=this._samplingState.minimapLines[i-1]),this._context.model.revealRange("mouse",!1,new Nt.a(i,1,i,1),1,0)}setScrollTop(i){this._context.model.setScrollPosition({scrollTop:i},1)}}class ui extends E.a{constructor(i,a){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=i,this._model=a,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(lt.Pb),this._domNode=Object(S.b)(document.createElement("div")),Y.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Object(S.b)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Object(S.b)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Object(S.b)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Object(S.b)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Object(S.b)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=f.n(this._domNode.domNode,"mousedown",_=>{if(_.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(_.leftButton&&this._lastRenderData){let Pe=f.C(this._slider.domNode),Ve=Pe.top+Pe.height/2;this._startSliderDragging(_.buttons,_.posx,Ve,_.posy,this._lastRenderData.renderedLayout)}return}let R=this._model.options.minimapLineHeight,K=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*_.browserEvent.offsetY,we=Math.floor(K/R)+this._lastRenderData.renderedLayout.startLineNumber;we=Math.min(we,this._model.getLineCount()),this._model.revealLineNumber(we)}),this._sliderMouseMoveMonitor=new N.a,this._sliderMouseDownListener=f.n(this._slider.domNode,"mousedown",_=>{_.preventDefault(),_.stopPropagation(),_.leftButton&&this._lastRenderData&&this._startSliderDragging(_.buttons,_.posx,_.posy,_.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=V.b.addTarget(this._domNode.domNode),this._sliderTouchStartListener=f.i(this._domNode.domNode,V.a.Start,_=>{_.preventDefault(),_.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(_))},{passive:!1}),this._sliderTouchMoveListener=f.i(this._domNode.domNode,V.a.Change,_=>{_.preventDefault(),_.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(_)},{passive:!1}),this._sliderTouchEndListener=f.n(this._domNode.domNode,V.a.End,_=>{_.preventDefault(),_.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(i,a,_,R,K){this._slider.toggleClassName("active",!0);let we=(Pe,Ve)=>{let Je=Math.abs(Ve-a);if(P.i&&Je>140)return void this._model.setScrollTop(K.scrollTop);let at=Pe-_;this._model.setScrollTop(K.getDesiredScrollTopFromDelta(at))};R!==_&&we(R,a),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,i,N.b,Pe=>we(Pe.posy,Pe.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(i){let a=this._domNode.domNode.getBoundingClientRect().top,_=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(i.pageY-a);this._model.setScrollTop(_)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return this._model.options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Ei(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(i,a){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(i,a)}onLinesDeleted(i,a){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(i,a),!0}onLinesInserted(i,a){return this._lastRenderData&&this._lastRenderData.onLinesInserted(i,a),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(lt.Pb),this._renderDecorations=!0,!0}onTokensChanged(i){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(i)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(i){if(this._model.options.renderMinimap===0)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);i.scrollLeft+i.viewportWidth>=i.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");let a=zt.create(this._model.options,i.viewportStartLineNumber,i.viewportEndLineNumber,i.viewportHeight,i.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),i.scrollTop,i.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(a.sliderNeeded?"block":"none"),this._slider.setTop(a.sliderTop),this._slider.setHeight(a.sliderHeight);let _=i.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,R=Math.min(this._model.options.minimapWidth,Math.round(_*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(R),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-R),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(a.sliderHeight),this.renderDecorations(a),this._lastRenderData=this.renderLines(a)}renderDecorations(i){if(this._renderDecorations){this._renderDecorations=!1;let a=this._model.getSelections(),_=this._model.getMinimapDecorationsInViewport(i.startLineNumber,i.endLineNumber),{canvasInnerWidth:R,canvasInnerHeight:K}=this._model.options,we=this._model.options.minimapLineHeight,Pe=this._model.options.minimapCharWidth,Ve=this._model.getOptions().tabSize,Je=this._decorationsCanvas.domNode.getContext("2d");Je.clearRect(0,0,R,K);let at=new Map;for(let bt=0;bt<a.length;bt++){let Bt=a[bt];for(let Pt=Bt.startLineNumber;Pt<=Bt.endLineNumber;Pt++)this.renderDecorationOnLine(Je,at,Bt,this._selectionColor,i,Pt,we,we,Ve,Pe)}for(let bt=0;bt<_.length;bt++){let Bt=_[bt];if(!Bt.options.minimap)continue;let Pt=Bt.options.minimap.getColor(this._theme);for(let ni=Bt.range.startLineNumber;ni<=Bt.range.endLineNumber;ni++)switch(Bt.options.minimap.position){case tt.c.Inline:this.renderDecorationOnLine(Je,at,Bt.range,Pt,i,ni,we,we,Ve,Pe);continue;case tt.c.Gutter:let Ci=(ni-i.startLineNumber)*we,Vi=2;this.renderDecoration(Je,Pt,Vi,Ci,2,we);continue}}}}renderDecorationOnLine(i,a,_,R,K,we,Pe,Ve,Je,at){let bt=(we-K.startLineNumber)*Ve;if(bt+Pe<0||bt>this._model.options.canvasInnerHeight)return;let Bt=a.get(we),Pt=!Bt;if(!Bt){let Gi=this._model.getLineContent(we);Bt=[fe.h];for(let wn=1;wn<Gi.length+1;wn++){let nn=Gi.charCodeAt(wn-1),Wn=nn===9?Je*at:_t.E(nn)?2*at:at;Bt[wn]=Bt[wn-1]+Wn}a.set(we,Bt)}let{startColumn:ni,endColumn:Ci,startLineNumber:Vi,endLineNumber:Mi}=_,zi=Vi===we?Bt[ni-1]:fe.h,Yi=Mi>we?Bt.length-1:Ci-1;if(Yi>0){let Gi=Bt[Yi]-zi||2;this.renderDecoration(i,R,zi,bt,Gi,Pe)}Pt&&this.renderLineHighlight(i,R,bt,Pe)}renderLineHighlight(i,a,_,R){i.fillStyle=a&&a.transparent(.5).toString()||"",i.fillRect(fe.h,_,i.canvas.width,R)}renderDecoration(i,a,_,R,K,we){i.fillStyle=a&&a.toString()||"",i.fillRect(_,R,K,we)}renderLines(i){let a=i.startLineNumber,_=i.endLineNumber,R=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(i)){let An=this._lastRenderData._get();return new xi(i,An.imageData,An.lines)}let K=this._getBuffer();if(!K)return null;let[we,Pe,Ve]=ui._renderUntouchedLines(K,a,_,R,this._lastRenderData),Je=this._model.getMinimapLinesRenderingData(a,_,Ve),at=this._model.getOptions().tabSize,bt=this._model.options.backgroundColor,Bt=this._model.tokensColorTracker,Pt=Bt.backgroundIsLight(),ni=this._model.options.renderMinimap,Ci=this._model.options.charRenderer(),Vi=this._model.options.fontScale,Mi=this._model.options.minimapCharWidth,zi=(ni===1?2:3)*Vi,Yi=R>zi?Math.floor((R-zi)/2):0,Gi=0,wn=[];for(let An=0,qn=_-a+1;An<qn;An++)Ve[An]&&ui._renderLine(K,bt,Pt,ni,Mi,Bt,Ci,Gi,Yi,at,Je[An],Vi,R),wn[An]=new Jt(Gi),Gi+=R;let nn=we===-1?0:we,Wn=(Pe===-1?K.height:Pe)-nn;return this._canvas.domNode.getContext("2d").putImageData(K,0,0,0,nn,K.width,Wn),new xi(i,K,wn)}static _renderUntouchedLines(i,a,_,R,K){let we=[];if(!K){for(let nn=0,Wn=_-a+1;nn<Wn;nn++)we[nn]=!0;return[-1,-1,we]}let Pe=K._get(),Ve=Pe.imageData.data,Je=Pe.rendLineNumberStart,at=Pe.lines,bt=at.length,Bt=i.width,Pt=i.data,ni=(_-a+1)*R*Bt*4,Ci=-1,Vi=-1,Mi=-1,zi=-1,Yi=-1,Gi=-1,wn=0;for(let nn=a;nn<=_;nn++){let Wn=nn-a,An=nn-Je,qn=An>=0&&An<bt?at[An].dy:-1;if(qn===-1){we[Wn]=!0,wn+=R;continue}let ro=qn*Bt*4,Un=(qn+R)*Bt*4,Lo=wn*Bt*4,Ao=(wn+R)*Bt*4;zi===ro&&Gi===Lo?(zi=Un,Gi=Ao):(Mi!==-1&&(Pt.set(Ve.subarray(Mi,zi),Yi),Ci===-1&&Mi===0&&Mi===Yi&&(Ci=zi),Vi===-1&&zi===ni&&Mi===Yi&&(Vi=Mi)),Mi=ro,zi=Un,Yi=Lo,Gi=Ao),we[Wn]=!1,wn+=R}return Mi!==-1&&(Pt.set(Ve.subarray(Mi,zi),Yi),Ci===-1&&Mi===0&&Mi===Yi&&(Ci=zi),Vi===-1&&zi===ni&&Mi===Yi&&(Vi=Mi)),[Ci===-1?-1:Ci/(4*Bt),Vi===-1?-1:Vi/(4*Bt),we]}static _renderLine(i,a,_,R,K,we,Pe,Ve,Je,at,bt,Bt,Pt){let ni=bt.content,Ci=bt.tokens,Vi=i.width-K,Mi=Pt===1,zi=fe.h,Yi=0,Gi=0;for(let wn=0,nn=Ci.getCount();wn<nn;wn++){let Wn=Ci.getEndOffset(wn),An=Ci.getForeground(wn),qn=we.getColor(An);for(;Yi<Wn;Yi++){if(zi>Vi)return;let ro=ni.charCodeAt(Yi);if(ro===9){let Un=at-(Yi+Gi)%at;Gi+=Un-1,zi+=Un*K}else if(ro===32)zi+=K;else{let Un=_t.E(ro)?2:1;for(let Lo=0;Lo<Un;Lo++)if(R===2?Pe.blockRenderChar(i,zi,Ve+Je,qn,a,_,Mi):Pe.renderChar(i,zi,Ve+Je,ro,qn,a,Bt,_,Mi),zi+=K,zi>Vi)return}}}}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.Mb);a&&i.addRule(`.monaco-editor .minimap > canvas { opacity: ${a.rgba.a}; will-change: opacity; }`);let _=Zt.getColor(lt.Rb);_&&i.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${_}; }`);let R=Zt.getColor(lt.Sb);R&&i.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${R}; }`);let K=Zt.getColor(lt.Qb);K&&i.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${K}; }`);let we=Zt.getColor(lt.ic);we&&i.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${we} -6px 0 6px -6px inset; }`)}),o(234);class Te extends xe{constructor(i){super(i);let a=this._context.configuration.options.get(117);this._widgets={},this._verticalScrollbarWidth=a.verticalScrollbarWidth,this._minimapWidth=a.minimap.minimapWidth,this._horizontalScrollbarHeight=a.horizontalScrollbarHeight,this._editorHeight=a.height,this._editorWidth=a.width,this._domNode=Object(S.b)(document.createElement("div")),Y.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._verticalScrollbarWidth=a.verticalScrollbarWidth,this._minimapWidth=a.minimap.minimapWidth,this._horizontalScrollbarHeight=a.horizontalScrollbarHeight,this._editorHeight=a.height,this._editorWidth=a.width,!0}addWidget(i){let a=Object(S.b)(i.getDomNode());this._widgets[i.getId()]={widget:i,preference:null,domNode:a},a.setPosition("absolute"),a.setAttribute("widgetId",i.getId()),this._domNode.appendChild(a),this.setShouldRender()}setWidgetPosition(i,a){let _=this._widgets[i.getId()];return _.preference!==a&&(_.preference=a,this.setShouldRender(),!0)}removeWidget(i){let a=i.getId();if(this._widgets.hasOwnProperty(a)){let _=this._widgets[a].domNode.domNode;delete this._widgets[a],_.parentNode.removeChild(_),this.setShouldRender()}}_renderWidget(i){let a=i.domNode;if(i.preference!==null)if(i.preference===0)a.setTop(0),a.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(i.preference===1){let _=a.domNode.clientHeight;a.setTop(this._editorHeight-_-2*this._horizontalScrollbarHeight),a.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else i.preference===2&&(a.setTop(0),a.domNode.style.right="50%");else a.unsetTop()}prepareRender(i){}render(i){this._domNode.setWidth(this._editorWidth);let a=Object.keys(this._widgets);for(let _=0,R=a.length;_<R;_++){let K=a[_];this._renderWidget(this._widgets[K])}}}var Ee=o(16);class ve{constructor(i,a){let _=i.options;this.lineHeight=_.get(51),this.pixelRatio=_.get(115),this.overviewRulerLanes=_.get(65),this.renderBorder=_.get(64);let R=a.getColor(ki.m);this.borderColor=R?R.toString():null,this.hideCursor=_.get(44);let K=a.getColor(ki.g);this.cursorColor=K?K.transparent(.7).toString():null,this.themeType=a.type;let we=_.get(56),Pe=we.enabled,Ve=we.side,Je=Pe?a.getColor(ki.l)||X.C.getDefaultBackground():null;this.backgroundColor=Je===null||Ve==="left"?null:Ee.a.Format.CSS.formatHex(Je);let at=_.get(117).overviewRuler;this.top=at.top,this.right=at.right,this.domWidth=at.width,this.domHeight=at.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);let[bt,Bt]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=bt,this.w=Bt}_initLanes(i,a,_){let R=a-i;if(_>=3){let K=Math.floor(R/3),we=Math.floor(R/3),Pe=R-K-we,Ve=i+K;return[[0,i,Ve,i,i+K+Pe,i,Ve,i],[0,K,Pe,K+Pe,we,K+Pe+we,Pe+we,K+Pe+we]]}if(_===2){let K=Math.floor(R/2),we=R-K;return[[0,i,i,i,i+K,i,i,i],[0,K,K,K,we,K+we,K+we,K+we]]}return[[0,i,i,i,i,i,i,i],[0,R,R,R,R,R,R,R]]}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColor===i.cursorColor&&this.themeType===i.themeType&&this.backgroundColor===i.backgroundColor&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}}class Re extends xe{constructor(i){super(i),this._domNode=Object(S.b)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=X.C.onDidChange(a=>{a.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(i){let a=new ve(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(a))&&(this._settings=a,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,i&&this._render(),!0)}onConfigurationChanged(i){return this._updateSettings(!1)}onCursorStateChanged(i){this._cursorPositions=[];for(let a=0,_=i.selections.length;a<_;a++)this._cursorPositions[a]=i.selections[a].getPosition();return this._cursorPositions.sort(At.a.compare),!0}onDecorationsChanged(i){return!!i.affectsOverviewRuler}onFlushed(i){return!0}onScrollChanged(i){return i.scrollHeightChanged}onZonesChanged(i){return!0}onThemeChanged(i){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(i){}render(i){this._render()}_render(){if(this._settings.overviewRulerLanes===0)return void this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");let i=this._settings.canvasWidth,a=this._settings.canvasHeight,_=this._settings.lineHeight,R=this._context.viewLayout,K=a/this._context.viewLayout.getScrollHeight(),we=this._context.model.getAllOverviewRulerDecorations(this._context.theme),Pe=6*this._settings.pixelRatio|0,Ve=Pe/2|0,Je=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?Je.clearRect(0,0,i,a):(Je.fillStyle=this._settings.backgroundColor,Je.fillRect(0,0,i,a));let at=this._settings.x,bt=this._settings.w,Bt=Object.keys(we);Bt.sort();for(let Pt=0,ni=Bt.length;Pt<ni;Pt++){let Ci=Bt[Pt],Vi=we[Ci];Je.fillStyle=Ci;let Mi=0,zi=0,Yi=0;for(let Gi=0,wn=Vi.length;Gi<wn;Gi++){let nn=Vi[3*Gi],Wn=Vi[3*Gi+1],An=Vi[3*Gi+2],qn=R.getVerticalOffsetForLineNumber(Wn)*K|0,ro=(R.getVerticalOffsetForLineNumber(An)+_)*K|0;if(ro-qn<Pe){let Un=(qn+ro)/2|0;Un<Ve?Un=Ve:Un+Ve>a&&(Un=a-Ve),qn=Un-Ve,ro=Un+Ve}qn>Yi+1||nn!==Mi?(Gi!==0&&Je.fillRect(at[Mi],zi,bt[Mi],Yi-zi),Mi=nn,zi=qn,Yi=ro):ro>Yi&&(Yi=ro)}Je.fillRect(at[Mi],zi,bt[Mi],Yi-zi)}if(!this._settings.hideCursor&&this._settings.cursorColor){let Pt=2*this._settings.pixelRatio|0,ni=Pt/2|0,Ci=this._settings.x[7],Vi=this._settings.w[7];Je.fillStyle=this._settings.cursorColor;let Mi=-100,zi=-100;for(let Yi=0,Gi=this._cursorPositions.length;Yi<Gi;Yi++){let wn=this._cursorPositions[Yi],nn=R.getVerticalOffsetForLineNumber(wn.lineNumber)*K|0;nn<ni?nn=ni:nn+ni>a&&(nn=a-ni);let Wn=nn-ni,An=Wn+Pt;Wn>zi+1?(Yi!==0&&Je.fillRect(Ci,Mi,Vi,zi-Mi),Mi=Wn,zi=An):An>zi&&(zi=An)}Je.fillRect(Ci,Mi,Vi,zi-Mi)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(Je.beginPath(),Je.lineWidth=1,Je.strokeStyle=this._settings.borderColor,Je.moveTo(0,0),Je.lineTo(0,a),Je.stroke(),Je.moveTo(0,0),Je.lineTo(i,0),Je.stroke())}}var We=o(168);class Be extends ke{constructor(i,a){super(),this._context=i;let _=this._context.configuration.options;this._domNode=Object(S.b)(document.createElement("canvas")),this._domNode.setClassName(a),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new We.b(R=>this._context.viewLayout.getVerticalOffsetForLineNumber(R)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(_.get(51)),this._zoneManager.setPixelRatio(_.get(115)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return i.hasChanged(51)&&(this._zoneManager.setLineHeight(a.get(51)),this._render()),i.hasChanged(115)&&(this._zoneManager.setPixelRatio(a.get(115)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(i){return this._render(),!0}onScrollChanged(i){return i.scrollHeightChanged&&(this._zoneManager.setOuterHeight(i.scrollHeight),this._render()),!0}onZonesChanged(i){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(i){this._domNode.setTop(i.top),this._domNode.setRight(i.right);let a=!1;a=this._zoneManager.setDOMWidth(i.width)||a,a=this._zoneManager.setDOMHeight(i.height)||a,a&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(i){this._zoneManager.setZones(i),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;let i=this._zoneManager.getCanvasWidth(),a=this._zoneManager.getCanvasHeight(),_=this._zoneManager.resolveColorZones(),R=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,i,a),_.length>0&&this._renderOneLane(K,_,R,i),!0}_renderOneLane(i,a,_,R){let K=0,we=0,Pe=0;for(let Ve of a){let Je=Ve.colorId,at=Ve.from,bt=Ve.to;Je!==K?(i.fillRect(0,we,R,Pe-we),K=Je,i.fillStyle=_[K],we=at,Pe=bt):Pe>=at?Pe=Math.max(Pe,bt):(i.fillRect(0,we,R,Pe-we),we=at,Pe=bt)}i.fillRect(0,we,R,Pe-we)}}o(236);class Le extends xe{constructor(i){super(i),this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];let a=this._context.configuration.options;this._rulers=a.get(83),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._rulers=a.get(83),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onScrollChanged(i){return i.scrollHeightChanged}prepareRender(i){}_ensureRulersCount(){let i=this._renderedRulers.length,a=this._rulers.length;if(i===a)return;if(i<a){let{tabSize:R}=this._context.model.getTextModelOptions(),K=R,we=a-i;for(;we>0;){let Pe=Object(S.b)(document.createElement("div"));Pe.setClassName("view-ruler"),Pe.setWidth(K),this.domNode.appendChild(Pe),this._renderedRulers.push(Pe),we--}return}let _=i-a;for(;_>0;){let R=this._renderedRulers.pop();this.domNode.removeChild(R),_--}}render(i){this._ensureRulersCount();for(let a=0,_=this._rulers.length;a<_;a++){let R=this._renderedRulers[a],K=this._rulers[a];R.setBoxShadow(K.color?`1px 0 0 0 ${K.color} inset`:""),R.setHeight(Math.min(i.scrollHeight,1e6)),R.setLeft(K.column*this._typicalHalfwidthCharacterWidth)}}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.n);a&&i.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${a} inset; }`)}),o(238);class Ke extends xe{constructor(i){super(i),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;let a=this._context.configuration.options.get(84);this._useShadows=a.useShadows,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){let i=this._useShadows&&this._scrollTop>0;return this._shouldShow!==i&&(this._shouldShow=i,!0)}getDomNode(){return this._domNode}_updateWidth(){let i=this._context.configuration.options.get(117);i.minimap.renderMinimap===0||i.minimap.minimapWidth>0&&i.minimap.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimap.minimapWidth-i.verticalScrollbarWidth}onConfigurationChanged(i){let a=this._context.configuration.options.get(84);return this._useShadows=a.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(i){return this._scrollTop=i.scrollTop,this._updateShouldShow()}prepareRender(i){}render(i){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.ic);a&&i.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${a} 0 6px 6px -6px inset; }`)}),o(240);class dt{constructor(i){this.left=i.left,this.width=i.width,this.startStyle=null,this.endStyle=null}}class yt{constructor(i,a){this.lineNumber=i,this.ranges=a}}function xt(Zt){return new dt(Zt)}function Xt(Zt){return new yt(Zt.lineNumber,Zt.ranges.map(xt))}let mi=T.f;class Yt extends gi{constructor(i){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=i;let a=this._context.configuration.options;this._lineHeight=a.get(51),this._roundedSelection=a.get(82),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._lineHeight=a.get(51),this._roundedSelection=a.get(82),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_visibleRangesHaveGaps(i){for(let a=0,_=i.length;a<_;a++)if(i[a].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(i,a,_){let R=this._typicalHalfwidthCharacterWidth/4,K=null,we=null;if(_&&_.length>0&&a.length>0){let Pe=a[0].lineNumber;if(Pe===i.startLineNumber)for(let Je=0;!K&&Je<_.length;Je++)_[Je].lineNumber===Pe&&(K=_[Je].ranges[0]);let Ve=a[a.length-1].lineNumber;if(Ve===i.endLineNumber)for(let Je=_.length-1;!we&&Je>=0;Je--)_[Je].lineNumber===Ve&&(we=_[Je].ranges[0]);K&&!K.startStyle&&(K=null),we&&!we.startStyle&&(we=null)}for(let Pe=0,Ve=a.length;Pe<Ve;Pe++){let Je=a[Pe].ranges[0],at=Je.left,bt=Je.left+Je.width,Bt={top:0,bottom:0},Pt={top:0,bottom:0};if(Pe>0){let ni=a[Pe-1].ranges[0].left,Ci=a[Pe-1].ranges[0].left+a[Pe-1].ranges[0].width;ri(at-ni)<R?Bt.top=2:at>ni&&(Bt.top=1),ri(bt-Ci)<R?Pt.top=2:ni<bt&&bt<Ci&&(Pt.top=1)}else K&&(Bt.top=K.startStyle.top,Pt.top=K.endStyle.top);if(Pe+1<Ve){let ni=a[Pe+1].ranges[0].left,Ci=a[Pe+1].ranges[0].left+a[Pe+1].ranges[0].width;ri(at-ni)<R?Bt.bottom=2:ni<at&&at<Ci&&(Bt.bottom=1),ri(bt-Ci)<R?Pt.bottom=2:bt<Ci&&(Pt.bottom=1)}else we&&(Bt.bottom=we.startStyle.bottom,Pt.bottom=we.endStyle.bottom);Je.startStyle=Bt,Je.endStyle=Pt}}_getVisibleRangesWithStyle(i,a,_){let R=(a.linesVisibleRangesForRange(i,!0)||[]).map(Xt),K=this._visibleRangesHaveGaps(R);return mi||K||!this._roundedSelection||this._enrichVisibleRangesWithStyle(a.visibleRange,R,_),R}_createSelectionPiece(i,a,_,R,K){return'<div class="cslr '+_+'" style="top:'+i.toString()+"px;left:"+R.toString()+"px;width:"+K.toString()+"px;height:"+a+'px;"></div>'}_actualRenderOneSelection(i,a,_,R){if(R.length===0)return;let K=!!R[0].ranges[0].startStyle,we=this._lineHeight.toString(),Pe=(this._lineHeight-1).toString(),Ve=R[0].lineNumber,Je=R[R.length-1].lineNumber;for(let at=0,bt=R.length;at<bt;at++){let Bt=R[at],Pt=Bt.lineNumber,ni=Pt-a,Ci=_&&(Pt===Je||Pt===Ve)?Pe:we,Vi=_&&Pt===Ve?1:0,Mi="",zi="";for(let Yi=0,Gi=Bt.ranges.length;Yi<Gi;Yi++){let wn=Bt.ranges[Yi];if(K){let Wn=wn.startStyle,An=wn.endStyle;if(Wn.top===1||Wn.bottom===1){Mi+=this._createSelectionPiece(Vi,Ci,Yt.SELECTION_CLASS_NAME,wn.left-Yt.ROUNDED_PIECE_WIDTH,Yt.ROUNDED_PIECE_WIDTH);let qn=Yt.EDITOR_BACKGROUND_CLASS_NAME;Wn.top===1&&(qn+=" "+Yt.SELECTION_TOP_RIGHT),Wn.bottom===1&&(qn+=" "+Yt.SELECTION_BOTTOM_RIGHT),Mi+=this._createSelectionPiece(Vi,Ci,qn,wn.left-Yt.ROUNDED_PIECE_WIDTH,Yt.ROUNDED_PIECE_WIDTH)}if(An.top===1||An.bottom===1){Mi+=this._createSelectionPiece(Vi,Ci,Yt.SELECTION_CLASS_NAME,wn.left+wn.width,Yt.ROUNDED_PIECE_WIDTH);let qn=Yt.EDITOR_BACKGROUND_CLASS_NAME;An.top===1&&(qn+=" "+Yt.SELECTION_TOP_LEFT),An.bottom===1&&(qn+=" "+Yt.SELECTION_BOTTOM_LEFT),Mi+=this._createSelectionPiece(Vi,Ci,qn,wn.left+wn.width,Yt.ROUNDED_PIECE_WIDTH)}}let nn=Yt.SELECTION_CLASS_NAME;if(K){let Wn=wn.startStyle,An=wn.endStyle;Wn.top===0&&(nn+=" "+Yt.SELECTION_TOP_LEFT),Wn.bottom===0&&(nn+=" "+Yt.SELECTION_BOTTOM_LEFT),An.top===0&&(nn+=" "+Yt.SELECTION_TOP_RIGHT),An.bottom===0&&(nn+=" "+Yt.SELECTION_BOTTOM_RIGHT)}zi+=this._createSelectionPiece(Vi,Ci,nn,wn.left,wn.width)}i[ni][0]+=Mi,i[ni][1]+=zi}}prepareRender(i){let a=[],_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber;for(let we=_;we<=R;we++)a[we-_]=["",""];let K=[];for(let we=0,Pe=this._selections.length;we<Pe;we++){let Ve=this._selections[we];if(Ve.isEmpty()){K[we]=null;continue}let Je=this._getVisibleRangesWithStyle(Ve,i,this._previousFrameVisibleRangesWithStyle[we]);K[we]=Je,this._actualRenderOneSelection(a,_,this._selections.length>1,Je)}this._previousFrameVisibleRangesWithStyle=K,this._renderResult=a.map(([we,Pe])=>we+Pe)}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}function ri(Zt){return Zt<0?-Zt:Zt}Yt.SELECTION_CLASS_NAME="selected-text",Yt.SELECTION_TOP_LEFT="top-left-radius",Yt.SELECTION_BOTTOM_LEFT="bottom-left-radius",Yt.SELECTION_TOP_RIGHT="top-right-radius",Yt.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Yt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Yt.ROUNDED_PIECE_WIDTH=10,Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.O);a&&i.addRule(`.monaco-editor .focused .selected-text { background-color: ${a}; }`);let _=Zt.getColor(lt.J);_&&i.addRule(`.monaco-editor .selected-text { background-color: ${_}; }`);let R=Zt.getColor(lt.P);R&&!R.isTransparent()&&i.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${R}; }`)}),o(242);class qi{constructor(i,a,_,R,K,we){this.top=i,this.left=a,this.width=_,this.height=R,this.textContent=K,this.textContentClassName=we}}class an{constructor(i){this._context=i;let a=this._context.configuration.options,_=a.get(36);this._cursorStyle=a.get(19),this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(a.get(22),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setClassName("cursor "+yi.a),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),W.a.applyFontInfo(this._domNode,_),this._domNode.setDisplay("none"),this._position=new At.a(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(36);return this._cursorStyle=a.get(19),this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(a.get(22),this._typicalHalfwidthCharacterWidth),W.a.applyFontInfo(this._domNode,_),!0}onCursorPositionChanged(i){return this._position=i,!0}_prepareRender(i){let a="";if(this._cursorStyle===fe.i.Line||this._cursorStyle===fe.i.LineThin){let Bt=i.visibleRangeForPosition(this._position);if(!Bt||Bt.outsideRenderedLine)return null;let Pt;if(this._cursorStyle===fe.i.Line){if(Pt=f.t(this._lineCursorWidth>0?this._lineCursorWidth:2),Pt>2){let Vi=this._context.model.getLineContent(this._position.lineNumber),Mi=_t.L(Vi,this._position.column-1);a=Vi.substr(this._position.column-1,Mi)}}else Pt=f.t(1);let ni=Bt.left;Pt>=2&&ni>=1&&(ni-=1);let Ci=i.getVerticalOffsetForLineNumber(this._position.lineNumber)-i.bigNumbersDelta;return new qi(Ci,ni,Pt,this._lineHeight,a,"")}let _=this._context.model.getLineContent(this._position.lineNumber),R=_t.L(_,this._position.column-1),K=i.linesVisibleRangesForRange(new Nt.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+R),!1);if(!K||K.length===0)return null;let we=K[0];if(we.outsideRenderedLine||we.ranges.length===0)return null;let Pe=we.ranges[0],Ve=Pe.width<1?this._typicalHalfwidthCharacterWidth:Pe.width,Je="";if(this._cursorStyle===fe.i.Block){let Bt=this._context.model.getViewLineData(this._position.lineNumber);a=_.substr(this._position.column-1,R);let Pt=Bt.tokens.findTokenIndexAtOffset(this._position.column-1);Je=Bt.tokens.getClassName(Pt)}let at=i.getVerticalOffsetForLineNumber(this._position.lineNumber)-i.bigNumbersDelta,bt=this._lineHeight;return this._cursorStyle!==fe.i.Underline&&this._cursorStyle!==fe.i.UnderlineThin||(at+=this._lineHeight-2,bt=2),new qi(at,Pe.left,Ve,bt,a,Je)}prepareRender(i){this._renderData=this._prepareRender(i)}render(i){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${yi.a} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class _n extends xe{constructor(i){super(i);let a=this._context.configuration.options;this._readOnly=a.get(72),this._cursorBlinking=a.get(17),this._cursorStyle=a.get(19),this._cursorSmoothCaretAnimation=a.get(18),this._selectionIsEmpty=!0,this._isVisible=!1,this._primaryCursor=new an(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new l.e,this._cursorFlatBlinkInterval=new l.c,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options;this._readOnly=a.get(72),this._cursorBlinking=a.get(17),this._cursorStyle=a.get(19),this._cursorSmoothCaretAnimation=a.get(18),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(i);for(let _=0,R=this._secondaryCursors.length;_<R;_++)this._secondaryCursors[_].onConfigurationChanged(i);return!0}_onCursorPositionChanged(i,a){if(this._primaryCursor.onCursorPositionChanged(i),this._updateBlinking(),this._secondaryCursors.length<a.length){let _=a.length-this._secondaryCursors.length;for(let R=0;R<_;R++){let K=new an(this._context);this._domNode.domNode.insertBefore(K.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(K)}}else if(this._secondaryCursors.length>a.length){let _=this._secondaryCursors.length-a.length;for(let R=0;R<_;R++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let _=0;_<a.length;_++)this._secondaryCursors[_].onCursorPositionChanged(a[_])}onCursorStateChanged(i){let a=[];for(let R=0,K=i.selections.length;R<K;R++)a[R]=i.selections[R].getPosition();this._onCursorPositionChanged(a[0],a.slice(1));let _=i.selections[0].isEmpty();return this._selectionIsEmpty!==_&&(this._selectionIsEmpty=_,this._updateDomClassName()),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onFocusChanged(i){return this._editorHasFocus=i.isFocused,this._updateBlinking(),!1}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return!0}onTokensChanged(i){let a=_=>{for(let R=0,K=i.ranges.length;R<K;R++)if(i.ranges[R].fromLineNumber<=_.lineNumber&&_.lineNumber<=i.ranges[R].toLineNumber)return!0;return!1};if(a(this._primaryCursor.getPosition()))return!0;for(let _ of this._secondaryCursors)if(a(_.getPosition()))return!0;return!1}onZonesChanged(i){return!0}_getCursorBlinking(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let i=this._getCursorBlinking(),a=i===0,_=i===5;a?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),a||_||(i===1?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},_n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},_n.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let i="cursors-layer";switch(this._selectionIsEmpty||(i+=" has-selection"),this._cursorStyle){case fe.i.Line:i+=" cursor-line-style";break;case fe.i.Block:i+=" cursor-block-style";break;case fe.i.Underline:i+=" cursor-underline-style";break;case fe.i.LineThin:i+=" cursor-line-thin-style";break;case fe.i.BlockOutline:i+=" cursor-block-outline-style";break;case fe.i.UnderlineThin:i+=" cursor-underline-thin-style";break;default:i+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:i+=" cursor-blink";break;case 2:i+=" cursor-smooth";break;case 3:i+=" cursor-phase";break;case 4:i+=" cursor-expand";break;case 5:i+=" cursor-solid";break;default:i+=" cursor-solid"}else i+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(i+=" cursor-smooth-caret-animation"),i}_show(){this._primaryCursor.show();for(let i=0,a=this._secondaryCursors.length;i<a;i++)this._secondaryCursors[i].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let i=0,a=this._secondaryCursors.length;i<a;i++)this._secondaryCursors[i].hide();this._isVisible=!1}prepareRender(i){this._primaryCursor.prepareRender(i);for(let a=0,_=this._secondaryCursors.length;a<_;a++)this._secondaryCursors[a].prepareRender(i)}render(i){let a=[],_=0,R=this._primaryCursor.render(i);R&&(a[_++]=R);for(let K=0,we=this._secondaryCursors.length;K<we;K++){let Pe=this._secondaryCursors[K].render(i);Pe&&(a[_++]=Pe)}this._renderData=a}getLastRenderData(){return this._renderData}}_n.BLINK_INTERVAL=500,Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.g);if(a){let _=Zt.getColor(ki.f);_||(_=a.opposite()),i.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${a}; border-color: ${a}; color: ${_}; }`),Zt.type==="hc"&&i.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${_}; border-right: 1px solid ${_}; }`)}});let ei=()=>{throw new Error("Invalid change accessor")};class ii extends xe{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._contentWidth=_.contentWidth,this._contentLeft=_.contentLeft,this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(S.b)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){let i=this._context.viewLayout.getWhitespaces(),a=new Map;for(let R of i)a.set(R.id,R);let _=!1;return this._context.model.changeWhitespace(R=>{let K=Object.keys(this._zones);for(let we=0,Pe=K.length;we<Pe;we++){let Ve=K[we],Je=this._zones[Ve],at=this._computeWhitespaceProps(Je.delegate),bt=a.get(Ve);!bt||bt.afterLineNumber===at.afterViewLineNumber&&bt.height===at.heightInPx||(R.changeOneWhitespace(Ve,at.afterViewLineNumber,at.heightInPx),this._safeCallOnComputedHeight(Je.delegate,at.heightInPx),_=!0)}}),_}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._contentWidth=_.contentWidth,this._contentLeft=_.contentLeft,i.hasChanged(51)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(i){return this._recomputeWhitespacesProps()}onLinesDeleted(i){return!0}onScrollChanged(i){return i.scrollTopChanged||i.scrollWidthChanged}onZonesChanged(i){return!0}onLinesInserted(i){return!0}_getZoneOrdinal(i){return i.afterColumn!==void 0?i.afterColumn:1e4}_computeWhitespaceProps(i){if(i.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(i),minWidthInPx:this._minWidthInPixels(i)};let a,_;if(i.afterColumn!==void 0)a=this._context.model.validateModelPosition({lineNumber:i.afterLineNumber,column:i.afterColumn});else{let we=this._context.model.validateModelPosition({lineNumber:i.afterLineNumber,column:1}).lineNumber;a=new At.a(we,this._context.model.getModelLineMaxColumn(we))}_=a.column===this._context.model.getModelLineMaxColumn(a.lineNumber)?this._context.model.validateModelPosition({lineNumber:a.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:a.lineNumber,column:a.column+1});let R=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(a),K=this._context.model.coordinatesConverter.modelPositionIsVisible(_);return{afterViewLineNumber:R.lineNumber,heightInPx:K?this._heightInPixels(i):0,minWidthInPx:this._minWidthInPixels(i)}}changeViewZones(i){let a=!1;return this._context.model.changeWhitespace(_=>{let R={addZone:K=>(a=!0,this._addZone(_,K)),removeZone:K=>{K&&(a=this._removeZone(_,K)||a)},layoutZone:K=>{K&&(a=this._layoutZone(_,K)||a)}};(function(K,we){try{K(we)}catch(Pe){Object(D.e)(Pe)}})(i,R),R.addZone=ei,R.removeZone=ei,R.layoutZone=ei}),a}_addZone(i,a){let _=this._computeWhitespaceProps(a),R={whitespaceId:i.insertWhitespace(_.afterViewLineNumber,this._getZoneOrdinal(a),_.heightInPx,_.minWidthInPx),delegate:a,isVisible:!1,domNode:Object(S.b)(a.domNode),marginDomNode:a.marginDomNode?Object(S.b)(a.marginDomNode):null};return this._safeCallOnComputedHeight(R.delegate,_.heightInPx),R.domNode.setPosition("absolute"),R.domNode.domNode.style.width="100%",R.domNode.setDisplay("none"),R.domNode.setAttribute("monaco-view-zone",R.whitespaceId),this.domNode.appendChild(R.domNode),R.marginDomNode&&(R.marginDomNode.setPosition("absolute"),R.marginDomNode.domNode.style.width="100%",R.marginDomNode.setDisplay("none"),R.marginDomNode.setAttribute("monaco-view-zone",R.whitespaceId),this.marginDomNode.appendChild(R.marginDomNode)),this._zones[R.whitespaceId]=R,this.setShouldRender(),R.whitespaceId}_removeZone(i,a){if(this._zones.hasOwnProperty(a)){let _=this._zones[a];return delete this._zones[a],i.removeWhitespace(_.whitespaceId),_.domNode.removeAttribute("monaco-visible-view-zone"),_.domNode.removeAttribute("monaco-view-zone"),_.domNode.domNode.parentNode.removeChild(_.domNode.domNode),_.marginDomNode&&(_.marginDomNode.removeAttribute("monaco-visible-view-zone"),_.marginDomNode.removeAttribute("monaco-view-zone"),_.marginDomNode.domNode.parentNode.removeChild(_.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(i,a){if(this._zones.hasOwnProperty(a)){let _=this._zones[a],R=this._computeWhitespaceProps(_.delegate);return i.changeOneWhitespace(_.whitespaceId,R.afterViewLineNumber,R.heightInPx),this._safeCallOnComputedHeight(_.delegate,R.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(i){if(this._zones.hasOwnProperty(i)){let a=this._zones[i];return Boolean(a.delegate.suppressMouseDown)}return!1}_heightInPixels(i){return typeof i.heightInPx=="number"?i.heightInPx:typeof i.heightInLines=="number"?this._lineHeight*i.heightInLines:this._lineHeight}_minWidthInPixels(i){return typeof i.minWidthInPx=="number"?i.minWidthInPx:0}_safeCallOnComputedHeight(i,a){if(typeof i.onComputedHeight=="function")try{i.onComputedHeight(a)}catch(_){Object(D.e)(_)}}_safeCallOnDomNodeTop(i,a){if(typeof i.onDomNodeTop=="function")try{i.onDomNodeTop(a)}catch(_){Object(D.e)(_)}}prepareRender(i){}render(i){let a=i.viewportData.whitespaceViewportData,_={},R=!1;for(let we=0,Pe=a.length;we<Pe;we++)_[a[we].id]=a[we],R=!0;let K=Object.keys(this._zones);for(let we=0,Pe=K.length;we<Pe;we++){let Ve=K[we],Je=this._zones[Ve],at=0,bt=0,Bt="none";_.hasOwnProperty(Ve)?(at=_[Ve].verticalOffset-i.bigNumbersDelta,bt=_[Ve].height,Bt="block",Je.isVisible||(Je.domNode.setAttribute("monaco-visible-view-zone","true"),Je.isVisible=!0),this._safeCallOnDomNodeTop(Je.delegate,i.getScrolledTopFromAbsoluteTop(_[Ve].verticalOffset))):(Je.isVisible&&(Je.domNode.removeAttribute("monaco-visible-view-zone"),Je.isVisible=!1),this._safeCallOnDomNodeTop(Je.delegate,i.getScrolledTopFromAbsoluteTop(-1e6))),Je.domNode.setTop(at),Je.domNode.setHeight(bt),Je.domNode.setDisplay(Bt),Je.marginDomNode&&(Je.marginDomNode.setTop(at),Je.marginDomNode.setHeight(bt),Je.marginDomNode.setDisplay(Bt))}R&&(this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}class bi{constructor(i){this._theme=i}get type(){return this._theme.type}update(i){this._theme=i}getColor(i){return this._theme.getColor(i)}}class ln{constructor(i,a,_){this.configuration=i,this.theme=new bi(a),this.model=_,this.viewLayout=_.viewLayout}addEventHandler(i){this.model.addViewEventHandler(i)}removeEventHandler(i){this.model.removeViewEventHandler(i)}}class mn{constructor(i,a,_,R){this.selections=i,this.startLineNumber=0|a.startLineNumber,this.endLineNumber=0|a.endLineNumber,this.relativeVerticalOffset=a.relativeVerticalOffset,this.bigNumbersDelta=0|a.bigNumbersDelta,this.whitespaceViewportData=_,this._model=R,this.visibleRange=new Nt.a(a.startLineNumber,this._model.getLineMinColumn(a.startLineNumber),a.endLineNumber,this._model.getLineMaxColumn(a.endLineNumber))}getViewLineRenderingData(i){return this._model.getViewLineRenderingData(this.visibleRange,i)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class sn extends ke{constructor(i,a,_,R,K,we){super(),this._selections=[new C.a(1,1,1,1)],this._renderAnimationFrame=null;let Pe=new Pi(a,R,K,i);this._context=new ln(a,_.getColorTheme(),R),this._context.addEventHandler(this),this._register(_.onDidColorThemeChange(Ci=>{this._context.theme.update(Ci),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new si(this._context,Pe,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(S.b)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(S.b)(document.createElement("div")),Y.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new Fe(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Kt(this._context,this._linesContent),this._viewZones=new ii(this._context),this._viewParts.push(this._viewZones);let Ve=new Re(this._context);this._viewParts.push(Ve);let Je=new Ke(this._context);this._viewParts.push(Je);let at=new Jn(this._context);this._viewParts.push(at),at.addDynamicOverlay(new qt(this._context)),at.addDynamicOverlay(new Yt(this._context)),at.addDynamicOverlay(new Ot(this._context)),at.addDynamicOverlay(new ne(this._context));let bt=new _o(this._context);this._viewParts.push(bt),bt.addDynamicOverlay(new I(this._context)),bt.addDynamicOverlay(new Mt(this._context)),bt.addDynamicOverlay(new Ti(this._context)),bt.addDynamicOverlay(new wi(this._context)),bt.addDynamicOverlay(new Ri(this._context));let Bt=new $i(this._context);Bt.getDomNode().appendChild(this._viewZones.marginDomNode),Bt.getDomNode().appendChild(bt.getDomNode()),this._viewParts.push(Bt),this._contentWidgets=new Gn(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new _n(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Te(this._context),this._viewParts.push(this._overlayWidgets);let Pt=new Le(this._context);this._viewParts.push(Pt);let ni=new fi(this._context);if(this._viewParts.push(ni),Ve){let Ci=this._scrollbar.getOverviewRulerLayoutInfo();Ci.parent.insertBefore(Ve.getDomNode(),Ci.insertBefore)}this._linesContent.appendChild(at.getDomNode()),this._linesContent.appendChild(Pt.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(Bt.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(Je.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(ni.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),we?we.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new st(this._context,Pe,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},getLastRenderData:()=>{let i=this._viewCursors.getLastRenderData()||[],a=this._textAreaHandler.getLastRenderData();return new wt(i,a)},shouldSuppressMouseDownOnViewZone:i=>this._viewZones.shouldSuppressMouseDownOnViewZone(i),shouldSuppressMouseDownOnWidget:i=>this._contentWidgets.shouldSuppressMouseDownOnWidget(i),getPositionFromDOMInfo:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(i,a)),visibleRangeForPosition:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new At.a(i,a))),getLineWidth:i=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(i))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new At.a(i,a)))}}_applyLayout(){let i=this._context.configuration.options.get(117);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this._overflowGuardContainer.setWidth(i.width),this._overflowGuardContainer.setHeight(i.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){let i=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(114)+" "+Object(ht.f)(this._context.theme.type)+i}handleEvents(i){super.handleEvents(i),this._scheduleRender()}onConfigurationChanged(i){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(i){return this._selections=i.selections,!1}onFocusChanged(i){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(i){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let i=0,a=this._viewParts.length;i<a;i++)this._viewParts[i].dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=f.W(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){(function(i){try{i()}catch(a){Object(D.e)(a)}})(()=>this._actualRender())}_getViewPartsToRender(){let i=[],a=0;for(let _=0,R=this._viewParts.length;_<R;_++){let K=this._viewParts[_];K.shouldRender()&&(i[a++]=K)}return i}_actualRender(){if(!f.N(this.domNode.domNode))return;let i=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&i.length===0)return;let a=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(a.startLineNumber,a.endLineNumber,a.centeredLineNumber);let _=new mn(this._selections,a,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(_),this._viewLines.shouldRender()&&(this._viewLines.renderText(_),this._viewLines.onDidRender(),i=this._getViewPartsToRender());let R=new Z(this._context.viewLayout,_,this._viewLines);for(let K=0,we=i.length;K<we;K++)i[K].prepareRender(R);for(let K=0,we=i.length;K<we;K++){let Pe=i[K];Pe.render(R),Pe.onDidRender()}}delegateVerticalScrollbarMouseDown(i){this._scrollbar.delegateVerticalScrollbarMouseDown(i)}restoreState(i){this._context.model.setScrollPosition({scrollTop:i.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:i.scrollLeft},1)}getOffsetForColumn(i,a){let _=this._context.model.validateModelPosition({lineNumber:i,column:a}),R=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(_);this._flushAccumulatedAndRenderNow();let K=this._viewLines.visibleRangeForPosition(new At.a(R.lineNumber,R.column));return K?K.left:-1}getTargetAtClientPoint(i,a){let _=this._pointerHandler.getTargetAtClientPoint(i,a);return _?Wi.convertViewToModelMouseTarget(_,this._context.model.coordinatesConverter):null}createOverviewRuler(i){return new Be(this._context,i)}change(i){this._viewZones.changeViewZones(i),this._scheduleRender()}render(i,a){if(a){this._viewLines.forceShouldRender();for(let _=0,R=this._viewParts.length;_<R;_++)this._viewParts[_].forceShouldRender()}i?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(i){this._textAreaHandler.setAriaOptions(i)}addContentWidget(i){this._contentWidgets.addWidget(i.widget),this.layoutContentWidget(i),this._scheduleRender()}layoutContentWidget(i){let a=i.position&&i.position.range||null;if(a===null){let R=i.position?i.position.position:null;R!==null&&(a=new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column))}let _=i.position?i.position.preference:null;this._contentWidgets.setWidgetPosition(i.widget,a,_),this._scheduleRender()}removeContentWidget(i){this._contentWidgets.removeWidget(i.widget),this._scheduleRender()}addOverlayWidget(i){this._overlayWidgets.addWidget(i.widget),this.layoutOverlayWidget(i),this._scheduleRender()}layoutOverlayWidget(i){let a=i.position?i.position.preference:null;this._overlayWidgets.setWidgetPosition(i.widget,a)&&this._scheduleRender()}removeOverlayWidget(i){this._overlayWidgets.removeWidget(i.widget),this._scheduleRender()}}class gn{constructor(i){this._selTrackedRange=null,this._trackSelection=!0,this._setState(i,new _i.f(new Nt.a(1,1,1,1),0,new At.a(1,1),0),new _i.f(new Nt.a(1,1,1,1),0,new At.a(1,1),0))}dispose(i){this._removeTrackedRange(i)}startTrackingSelection(i){this._trackSelection=!0,this._updateTrackedRange(i)}stopTrackingSelection(i){this._trackSelection=!1,this._removeTrackedRange(i)}_updateTrackedRange(i){this._trackSelection&&(this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(i){this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _i.d(this.modelState,this.viewState)}readSelectionFromMarkers(i){let a=i.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new C.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn):new C.a(a.endLineNumber,a.endColumn,a.startLineNumber,a.startColumn)}ensureValidState(i){this._setState(i,this.modelState,this.viewState)}setState(i,a,_){this._setState(i,a,_)}_setState(i,a,_){if(a){let R=i.model.validateRange(a.selectionStart),K=a.selectionStart.equalsRange(R)?a.selectionStartLeftoverVisibleColumns:0,we=i.model.validatePosition(a.position),Pe=a.position.equals(we)?a.leftoverVisibleColumns:0;a=new _i.f(R,K,we,Pe)}else{if(!_)return;let R=i.model.validateRange(i.coordinatesConverter.convertViewRangeToModelRange(_.selectionStart)),K=i.model.validatePosition(i.coordinatesConverter.convertViewPositionToModelPosition(_.position));a=new _i.f(R,_.selectionStartLeftoverVisibleColumns,K,_.leftoverVisibleColumns)}if(_){let R=i.coordinatesConverter.validateViewRange(_.selectionStart,a.selectionStart),K=i.coordinatesConverter.validateViewPosition(_.position,a.position);_=new _i.f(R,a.selectionStartLeftoverVisibleColumns,K,a.leftoverVisibleColumns)}else{let R=i.coordinatesConverter.convertModelPositionToViewPosition(new At.a(a.selectionStart.startLineNumber,a.selectionStart.startColumn)),K=i.coordinatesConverter.convertModelPositionToViewPosition(new At.a(a.selectionStart.endLineNumber,a.selectionStart.endColumn)),we=new Nt.a(R.lineNumber,R.column,K.lineNumber,K.column),Pe=i.coordinatesConverter.convertModelPositionToViewPosition(a.position);_=new _i.f(we,a.selectionStartLeftoverVisibleColumns,Pe,a.leftoverVisibleColumns)}this.modelState=a,this.viewState=_,this._updateTrackedRange(i)}}class Sn{constructor(i){this.context=i,this.primaryCursor=new gn(i),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].stopTrackingSelection(this.context)}updateContext(i){this.context=i}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].ensureValidState(this.context)}readSelectionFromMarkers(){let i=[];i[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].readSelectionFromMarkers(this.context);return i}getAll(){let i=[];i[0]=this.primaryCursor.asCursorState();for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].asCursorState();return i}getViewPositions(){let i=[];i[0]=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].viewState.position;return i}getTopMostViewPosition(){let i=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++){let R=this.secondaryCursors[a].viewState.position;R.isBefore(i)&&(i=R)}return i}getBottomMostViewPosition(){let i=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++){let R=this.secondaryCursors[a].viewState.position;i.isBeforeOrEqual(R)&&(i=R)}return i}getSelections(){let i=[];i[0]=this.primaryCursor.modelState.selection;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].modelState.selection;return i}getViewSelections(){let i=[];i[0]=this.primaryCursor.viewState.selection;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].viewState.selection;return i}setSelections(i){this.setStates(_i.d.fromModelSelections(i))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(i){i!==null&&(this.primaryCursor.setState(this.context,i[0].modelState,i[0].viewState),this._setSecondaryStates(i.slice(1)))}_setSecondaryStates(i){let a=this.secondaryCursors.length,_=i.length;if(a<_){let R=_-a;for(let K=0;K<R;K++)this._addSecondaryCursor()}else if(a>_){let R=a-_;for(let K=0;K<R;K++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let R=0;R<_;R++)this.secondaryCursors[R].setState(this.context,i[R].modelState,i[R].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new gn(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex}_removeSecondaryCursor(i){this.lastAddedCursorIndex>=i+1&&this.lastAddedCursorIndex--,this.secondaryCursors[i].dispose(this.context),this.secondaryCursors.splice(i,1)}_getAll(){let i=[];i[0]=this.primaryCursor;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a];return i}normalize(){if(this.secondaryCursors.length===0)return;let i=this._getAll(),a=[];for(let _=0,R=i.length;_<R;_++)a.push({index:_,selection:i[_].modelState.selection});a.sort((_,R)=>_.selection.startLineNumber===R.selection.startLineNumber?_.selection.startColumn-R.selection.startColumn:_.selection.startLineNumber-R.selection.startLineNumber);for(let _=0;_<a.length-1;_++){let R=a[_],K=a[_+1],we=R.selection,Pe=K.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let Ve;if(Ve=Pe.isEmpty()||we.isEmpty()?Pe.getStartPosition().isBeforeOrEqual(we.getEndPosition()):Pe.getStartPosition().isBefore(we.getEndPosition()),Ve){let Je=R.index<K.index?_:_+1,at=R.index<K.index?_+1:_,bt=a[at].index,Bt=a[Je].index,Pt=a[at].selection,ni=a[Je].selection;if(!Pt.equalsSelection(ni)){let Ci=Pt.plusRange(ni),Vi=Pt.selectionStartLineNumber===Pt.startLineNumber&&Pt.selectionStartColumn===Pt.startColumn,Mi=ni.selectionStartLineNumber===ni.startLineNumber&&ni.selectionStartColumn===ni.startColumn,zi,Yi;bt===this.lastAddedCursorIndex?(zi=Vi,this.lastAddedCursorIndex=Bt):zi=Mi,Yi=zi?new C.a(Ci.startLineNumber,Ci.startColumn,Ci.endLineNumber,Ci.endColumn):new C.a(Ci.endLineNumber,Ci.endColumn,Ci.startLineNumber,Ci.startColumn),a[Je].selection=Yi;let Gi=_i.d.fromModelSelection(Yi);i[Bt].setState(this.context,Gi.modelState,Gi.viewState)}for(let Ci of a)Ci.index>bt&&Ci.index--;i.splice(bt,1),a.splice(at,1),this._removeSecondaryCursor(bt-1),_--}}}}var En=o(181),Xn=o(126);class Yn{constructor(i){this.type=0,this._source=i}hasChanged(i){return this._source.hasChanged(i)}}class Io{constructor(i,a){this.type=1,this.selections=i,this.modelSelections=a}}class Ro{constructor(i){this.type=2,i?(this.affectsMinimap=i.affectsMinimap,this.affectsOverviewRuler=i.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class In{constructor(){this.type=3}}class Rn{constructor(i){this.type=4,this.isFocused=i}}class Qn{constructor(){this.type=5}}class vo{constructor(){this.type=6}}class Mo{constructor(i,a){this.type=7,this.fromLineNumber=i,this.toLineNumber=a}}class So{constructor(i,a){this.type=8,this.fromLineNumber=i,this.toLineNumber=a}}class ko{constructor(i,a){this.type=9,this.fromLineNumber=i,this.toLineNumber=a}}class po{constructor(i,a,_,R,K,we){this.type=10,this.source=i,this.range=a,this.selections=_,this.verticalType=R,this.revealHorizontal=K,this.scrollType=we}}class Tn{constructor(i){this.type=11,this.scrollWidth=i.scrollWidth,this.scrollLeft=i.scrollLeft,this.scrollHeight=i.scrollHeight,this.scrollTop=i.scrollTop,this.scrollWidthChanged=i.scrollWidthChanged,this.scrollLeftChanged=i.scrollLeftChanged,this.scrollHeightChanged=i.scrollHeightChanged,this.scrollTopChanged=i.scrollTopChanged}}class No{constructor(){this.type=12}}class Ho{constructor(i){this.type=13,this.ranges=i}}class gr{constructor(){this.type=14}}class wo{constructor(){this.type=15}}class ls extends E.a{constructor(){super(),this._onEvent=this._register(new H.a),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(i){this._addOutgoingEvent(i),this._emitOugoingEvents()}_addOutgoingEvent(i){for(let a=0,_=this._outgoingEvents.length;a<_;a++)if(this._outgoingEvents[a].kind===i.kind)return void(this._outgoingEvents[a]=this._outgoingEvents[a].merge(i));this._outgoingEvents.push(i)}_emitOugoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;let i=this._outgoingEvents.shift();i.isNoOp()||this._onEvent.fire(i)}}addViewEventHandler(i){for(let a=0,_=this._eventHandlers.length;a<_;a++)this._eventHandlers[a]===i&&console.warn("Detected duplicate listener in ViewEventDispatcher",i);this._eventHandlers.push(i)}removeViewEventHandler(i){for(let a=0;a<this._eventHandlers.length;a++)if(this._eventHandlers[a]===i){this._eventHandlers.splice(a,1);break}}beginEmitViewEvents(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Br),this._collector}endEmitViewEvents(){if(this._collectorCnt--,this._collectorCnt===0){let i=this._collector.outgoingEvents,a=this._collector.viewEvents;this._collector=null;for(let _ of i)this._addOutgoingEvent(_);a.length>0&&this._emitMany(a)}this._emitOugoingEvents()}emitSingleViewEvent(i){try{this.beginEmitViewEvents().emitViewEvent(i)}finally{this.endEmitViewEvents()}}_emitMany(i){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(i):this._viewEventQueue=i,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){let i=this._viewEventQueue;this._viewEventQueue=null;let a=this._eventHandlers.slice(0);for(let _ of a)_.handleEvents(i)}}}class Br{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(i){this.viewEvents.push(i)}emitOutgoingEvent(i){this.outgoingEvents.push(i)}}class Kn{constructor(i,a,_,R){this.kind=0,this._oldContentWidth=i,this._oldContentHeight=a,this.contentWidth=_,this.contentHeight=R,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(i){return i.kind!==0?this:new Kn(this._oldContentWidth,this._oldContentHeight,i.contentWidth,i.contentHeight)}}class cr{constructor(i,a){this.kind=1,this.oldHasFocus=i,this.hasFocus=a}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(i){return i.kind!==1?this:new cr(this.oldHasFocus,i.hasFocus)}}class Eo{constructor(i,a,_,R,K,we,Pe,Ve){this.kind=2,this._oldScrollWidth=i,this._oldScrollLeft=a,this._oldScrollHeight=_,this._oldScrollTop=R,this.scrollWidth=K,this.scrollLeft=we,this.scrollHeight=Pe,this.scrollTop=Ve,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(i){return i.kind!==2?this:new Eo(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,i.scrollWidth,i.scrollLeft,i.scrollHeight,i.scrollTop)}}class Lr{constructor(){this.kind=3}isNoOp(){return!1}merge(i){return this}}class jr{constructor(i,a,_,R,K,we,Pe){this.kind=5,this.oldSelections=i,this.selections=a,this.oldModelVersionId=_,this.modelVersionId=R,this.source=K,this.reason=we,this.reachedMaxCursorCount=Pe}static _selectionsAreEqual(i,a){if(!i&&!a)return!0;if(!i||!a)return!1;let _=i.length;if(_!==a.length)return!1;for(let R=0;R<_;R++)if(!i[R].equalsSelection(a[R]))return!1;return!0}isNoOp(){return jr._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(i){return i.kind!==5?this:new jr(this.oldSelections,i.selections,this.oldModelVersionId,i.modelVersionId,i.source,i.reason,this.reachedMaxCursorCount||i.reachedMaxCursorCount)}}class Ko{constructor(){this.kind=4}isNoOp(){return!1}merge(i){return this}}class Cn{constructor(i,a){this.modelVersionId=i.getVersionId(),this.cursorState=a.getCursorStates()}equals(i){if(!i||this.modelVersionId!==i.modelVersionId||this.cursorState.length!==i.cursorState.length)return!1;for(let a=0,_=this.cursorState.length;a<_;a++)if(!this.cursorState[a].equals(i.cursorState[a]))return!1;return!0}}class Oo{constructor(i,a,_){this._model=i,this._autoClosedCharactersDecorations=a,this._autoClosedEnclosingDecorations=_}static getAllAutoClosedCharacters(i){let a=[];for(let _ of i)a=a.concat(_.getAutoClosedCharactersRanges());return a}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let i=[];for(let a=0;a<this._autoClosedCharactersDecorations.length;a++){let _=this._model.getDecorationRange(this._autoClosedCharactersDecorations[a]);_&&i.push(_)}return i}isValid(i){let a=[];for(let _=0;_<this._autoClosedEnclosingDecorations.length;_++){let R=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[_]);if(R&&(a.push(R),R.startLineNumber!==R.endLineNumber))return!1}a.sort(Nt.a.compareRangesUsingStarts),i.sort(Nt.a.compareRangesUsingStarts);for(let _=0;_<i.length;_++)if(_>=a.length||!a[_].strictContainsRange(i[_]))return!1;return!0}}class Do extends E.a{constructor(i,a,_,R){super(),this._model=i,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=a,this._coordinatesConverter=_,this.context=new _i.c(this._model,this._coordinatesConverter,R),this._cursors=new Sn(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(E.f)(this._autoClosedActions),super.dispose()}updateConfiguration(i){this.context=new _i.c(this._model,this._coordinatesConverter,i),this._cursors.updateContext(this.context)}onLineMappingChanged(i){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(i,"viewModel",0,this.getCursorStates())}setHasFocus(i){this._hasFocus=i}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let i=this._cursors.getSelections();for(let a=0;a<this._autoClosedActions.length;a++){let _=this._autoClosedActions[a];_.isValid(i)||(_.dispose(),this._autoClosedActions.splice(a,1),a--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(i,a,_,R){let K=!1;R!==null&&R.length>Do.MAX_CURSOR_COUNT&&(R=R.slice(0,Do.MAX_CURSOR_COUNT),K=!0);let we=new Cn(this._model,this);return this._cursors.setStates(R),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(i,a,_,we,K)}setCursorColumnSelectData(i){this._columnSelectData=i}revealPrimary(i,a,_,R){let K=this._cursors.getViewPositions();if(K.length>1)this._emitCursorRevealRange(i,a,null,this._cursors.getViewSelections(),0,_,R);else{let we=K[0],Pe=new Nt.a(we.lineNumber,we.column,we.lineNumber,we.column);this._emitCursorRevealRange(i,a,Pe,null,0,_,R)}}_revealPrimaryCursor(i,a,_,R,K){let we=this._cursors.getViewPositions();if(we.length>1)this._emitCursorRevealRange(i,a,null,this._cursors.getViewSelections(),_,R,K);else{let Pe=we[0],Ve=new Nt.a(Pe.lineNumber,Pe.column,Pe.lineNumber,Pe.column);this._emitCursorRevealRange(i,a,Ve,null,_,R,K)}}_emitCursorRevealRange(i,a,_,R,K,we,Pe){i.emitViewEvent(new po(a,_,R,K,we,Pe))}saveState(){let i=[],a=this._cursors.getSelections();for(let _=0,R=a.length;_<R;_++){let K=a[_];i.push({inSelectionMode:!K.isEmpty(),selectionStart:{lineNumber:K.selectionStartLineNumber,column:K.selectionStartColumn},position:{lineNumber:K.positionLineNumber,column:K.positionColumn}})}return i}restoreState(i,a){let _=[];for(let R=0,K=a.length;R<K;R++){let we=a[R],Pe=1,Ve=1;we.position&&we.position.lineNumber&&(Pe=we.position.lineNumber),we.position&&we.position.column&&(Ve=we.position.column);let Je=Pe,at=Ve;we.selectionStart&&we.selectionStart.lineNumber&&(Je=we.selectionStart.lineNumber),we.selectionStart&&we.selectionStart.column&&(at=we.selectionStart.column),_.push({selectionStartLineNumber:Je,selectionStartColumn:at,positionLineNumber:Pe,positionColumn:Ve})}this.setStates(i,"restoreState",0,_i.d.fromModelSelections(_)),this.revealPrimary(i,"restoreState",!0,1)}onModelContentChanged(i,a){if(this._knownModelVersionId=a.versionId,this._isHandling)return;let _=a.containsEvent(1);if(this._prevEditOperationType=0,_)this._cursors.dispose(),this._cursors=new Sn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(i,"model",1,null,!1);else if(this._hasFocus&&a.resultingSelection&&a.resultingSelection.length>0){let R=_i.d.fromModelSelections(a.resultingSelection);this.setStates(i,"modelChange",a.isUndoing?5:a.isRedoing?6:2,R)&&this._revealPrimaryCursor(i,"modelChange",0,!0,0)}else{let R=this._cursors.readSelectionFromMarkers();this.setStates(i,"modelChange",2,_i.d.fromModelSelections(R))}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;let i=this._cursors.getPrimaryCursor(),a=i.viewState.selectionStart.getStartPosition(),_=i.viewState.position;return{isReal:!1,fromViewLineNumber:a.lineNumber,fromViewVisualColumn:_i.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,a),toViewLineNumber:_.lineNumber,toViewVisualColumn:_i.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,_)}}getSelections(){return this._cursors.getSelections()}setSelections(i,a,_){this.setStates(i,a,0,_i.d.fromModelSelections(_))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(i){this._prevEditOperationType=i}_pushAutoClosedAction(i,a){let _=[],R=[];for(let Pe=0,Ve=i.length;Pe<Ve;Pe++)_.push({range:i[Pe],options:{inlineClassName:"auto-closed-character",stickiness:1}}),R.push({range:a[Pe],options:{stickiness:1}});let K=this._model.deltaDecorations([],_),we=this._model.deltaDecorations([],R);this._autoClosedActions.push(new Oo(this._model,K,we))}_executeEditOperation(i){if(!i)return;i.shouldPushStackElementBefore&&this._model.pushStackElement();let a=class{static executeCommands(_,R,K){let we={model:_,selectionsBefore:R,trackedRanges:[],trackedRangesDirection:[]},Pe=this._innerExecuteCommands(we,K);for(let Ve=0,Je=we.trackedRanges.length;Ve<Je;Ve++)we.model._setTrackedRange(we.trackedRanges[Ve],null,0);return Pe}static _innerExecuteCommands(_,R){if(this._arrayIsEmpty(R))return null;let K=this._getEditOperations(_,R);if(K.operations.length===0)return null;let we=K.operations,Pe=this._getLoserCursorMap(we);if(Pe.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let Ve=[];for(let bt=0,Bt=we.length;bt<Bt;bt++)Pe.hasOwnProperty(we[bt].identifier.major.toString())||Ve.push(we[bt]);K.hadTrackedEditOperation&&Ve.length>0&&(Ve[0]._isTracked=!0);let Je=_.model.pushEditOperations(_.selectionsBefore,Ve,bt=>{let Bt=[];for(let Ci=0;Ci<_.selectionsBefore.length;Ci++)Bt[Ci]=[];for(let Ci of bt)Ci.identifier&&Bt[Ci.identifier.major].push(Ci);let Pt=(Ci,Vi)=>Ci.identifier.minor-Vi.identifier.minor,ni=[];for(let Ci=0;Ci<_.selectionsBefore.length;Ci++)Bt[Ci].length>0?(Bt[Ci].sort(Pt),ni[Ci]=R[Ci].computeCursorState(_.model,{getInverseEditOperations:()=>Bt[Ci],getTrackedSelection:Vi=>{let Mi=parseInt(Vi,10),zi=_.model._getTrackedRange(_.trackedRanges[Mi]);return _.trackedRangesDirection[Mi]===0?new C.a(zi.startLineNumber,zi.startColumn,zi.endLineNumber,zi.endColumn):new C.a(zi.endLineNumber,zi.endColumn,zi.startLineNumber,zi.startColumn)}})):ni[Ci]=_.selectionsBefore[Ci];return ni});Je||(Je=_.selectionsBefore);let at=[];for(let bt in Pe)Pe.hasOwnProperty(bt)&&at.push(parseInt(bt,10));at.sort((bt,Bt)=>Bt-bt);for(let bt of at)Je.splice(bt,1);return Je}static _arrayIsEmpty(_){for(let R=0,K=_.length;R<K;R++)if(_[R])return!1;return!0}static _getEditOperations(_,R){let K=[],we=!1;for(let Pe=0,Ve=R.length;Pe<Ve;Pe++){let Je=R[Pe];if(Je){let at=this._getEditOperationsFromCommand(_,Pe,Je);K=K.concat(at.operations),we=we||at.hadTrackedEditOperation}}return{operations:K,hadTrackedEditOperation:we}}static _getEditOperationsFromCommand(_,R,K){let we=[],Pe=0,Ve=(bt,Bt,Pt=!1)=>{Nt.a.isEmpty(bt)&&Bt===""||we.push({identifier:{major:R,minor:Pe++},range:bt,text:Bt,forceMoveMarkers:Pt,isAutoWhitespaceEdit:K.insertsAutoWhitespace})},Je=!1,at={addEditOperation:Ve,addTrackedEditOperation:(bt,Bt,Pt)=>{Je=!0,Ve(bt,Bt,Pt)},trackSelection:(bt,Bt)=>{let Pt=C.a.liftSelection(bt),ni;if(Pt.isEmpty())if(typeof Bt=="boolean")ni=Bt?2:3;else{let Mi=_.model.getLineMaxColumn(Pt.startLineNumber);ni=Pt.startColumn===Mi?2:3}else ni=1;let Ci=_.trackedRanges.length,Vi=_.model._setTrackedRange(null,Pt,ni);return _.trackedRanges[Ci]=Vi,_.trackedRangesDirection[Ci]=Pt.getDirection(),Ci.toString()}};try{K.getEditOperations(_.model,at)}catch(bt){return Object(D.e)(bt),{operations:[],hadTrackedEditOperation:!1}}return{operations:we,hadTrackedEditOperation:Je}}static _getLoserCursorMap(_){(_=_.slice(0)).sort((K,we)=>-Nt.a.compareRangesUsingEnds(K.range,we.range));let R={};for(let K=1;K<_.length;K++){let we=_[K-1],Pe=_[K];if(Nt.a.getStartPosition(we.range).isBefore(Nt.a.getEndPosition(Pe.range))){let Ve;Ve=we.identifier.major>Pe.identifier.major?we.identifier.major:Pe.identifier.major,R[Ve.toString()]=!0;for(let Je=0;Je<_.length;Je++)_[Je].identifier.major===Ve&&(_.splice(Je,1),Je<K&&K--,Je--);K>0&&K--}}return R}}.executeCommands(this._model,this._cursors.getSelections(),i.commands);if(a){this._interpretCommandResult(a);let _=[],R=[];for(let K=0;K<i.commands.length;K++){let we=i.commands[K];we instanceof Xn.b&&we.enclosingRange&&we.closeCharacterRange&&(_.push(we.closeCharacterRange),R.push(we.enclosingRange))}_.length>0&&this._pushAutoClosedAction(_,R),this._prevEditOperationType=i.type}i.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(i){i&&i.length!==0||(i=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(i),this._cursors.normalize()}_emitStateChangedIfNecessary(i,a,_,R,K){let we=new Cn(this._model,this);if(we.equals(R))return!1;let Pe=this._cursors.getSelections(),Ve=this._cursors.getViewSelections();if(i.emitViewEvent(new Io(Ve,Pe)),!R||R.cursorState.length!==we.cursorState.length||we.cursorState.some((Je,at)=>!Je.modelState.equals(R.cursorState[at].modelState))){let Je=R?R.cursorState.map(bt=>bt.modelState.selection):null,at=R?R.modelVersionId:0;i.emitOutgoingEvent(new jr(Je,Pe,at,we.modelVersionId,a||"keyboard",_,K))}return!0}_findAutoClosingPairs(i){if(!i.length)return null;let a=[];for(let _=0,R=i.length;_<R;_++){let K=i[_];if(!K.text||K.text.indexOf(` -`)>=0)return null;let we=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!we)return null;let Pe=we[1],Ve=this.context.cursorConfig.autoClosingPairsClose2.get(Pe);if(!Ve||Ve.length!==1)return null;let Je=Ve[0].open,at=K.text.length-we[2].length-1,bt=K.text.lastIndexOf(Je,at-1);if(bt===-1)return null;a.push([bt,at])}return a}executeEdits(i,a,_,R){let K=null;a==="snippet"&&(K=this._findAutoClosingPairs(_)),K&&(_[0]._isTracked=!0);let we=[],Pe=[],Ve=this._model.pushEditOperations(this.getSelections(),_,Je=>{if(K)for(let bt=0,Bt=K.length;bt<Bt;bt++){let[Pt,ni]=K[bt],Ci=Je[bt],Vi=Ci.range.startLineNumber,Mi=Ci.range.startColumn-1+Pt,zi=Ci.range.startColumn-1+ni;we.push(new Nt.a(Vi,zi+1,Vi,zi+2)),Pe.push(new Nt.a(Vi,Mi+1,Vi,zi+2))}let at=R(Je);return at&&(this._isHandling=!0),at});Ve&&(this._isHandling=!1,this.setSelections(i,a,Ve)),we.length>0&&this._pushAutoClosedAction(we,Pe)}_executeEdit(i,a,_,R=0){if(this.context.cursorConfig.readOnly)return;let K=new Cn(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),i()}catch(we){Object(D.e)(we)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(a,_,R,K,!1)&&this._revealPrimaryCursor(a,_,0,!0,0)}setIsDoingComposition(i){this._isDoingComposition=i}startComposition(i){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(i,a){this._executeEdit(()=>{if(a==="keyboard"){let _=Oo.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Xn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),_)),this._selectionsWhenCompositionStarted=null}},i,a)}type(i,a,_){this._executeEdit(()=>{if(_==="keyboard"){let R=a.length,K=0;for(;K<R;){let we=_t.L(a,K),Pe=a.substr(K,we),Ve=Oo.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Xn.a.typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),Ve,Pe)),K+=we}}else this._executeEditOperation(Xn.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),a))},i,_)}replacePreviousChar(i,a,_,R){this._executeEdit(()=>{this._executeEditOperation(Xn.a.replacePreviousChar(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),a,_))},i,R)}paste(i,a,_,R,K){this._executeEdit(()=>{this._executeEditOperation(Xn.a.paste(this.context.cursorConfig,this._model,this.getSelections(),a,_,R||[]))},i,K,4)}cut(i,a){this._executeEdit(()=>{this._executeEditOperation(En.a.cut(this.context.cursorConfig,this._model,this.getSelections()))},i,a)}executeCommand(i,a,_){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _i.e(0,[a],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,_)}executeCommands(i,a,_){this._executeEdit(()=>{this._executeEditOperation(new _i.e(0,a,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,_)}}Do.MAX_CURSOR_COUNT=1e4;var fr=o(191),zn=o(143),eo=o(7),br=o(182),va=o(170);class es{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(i){this._hasPending=!0,this._inserts.push(i)}change(i){this._hasPending=!0,this._changes.push(i)}remove(i){this._hasPending=!0,this._removes.push(i)}mustCommit(){return this._hasPending}commit(i){if(!this._hasPending)return;let a=this._inserts,_=this._changes,R=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],i._commitPendingChanges(a,_,R)}}class Vr{constructor(i,a,_,R,K){this.id=i,this.afterLineNumber=a,this.ordinal=_,this.height=R,this.minWidth=K,this.prefixSum=0}}class Nr{constructor(i,a,_,R){this._instanceId=_t.R(++Nr.INSTANCE_COUNT),this._pendingChanges=new es,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=i,this._lineHeight=a,this._paddingTop=_,this._paddingBottom=R}static findInsertionIndex(i,a,_){let R=0,K=i.length;for(;R<K;){let we=R+K>>>1;a===i[we].afterLineNumber?_<i[we].ordinal?K=we:R=we+1:a<i[we].afterLineNumber?K=we:R=we+1}return R}setLineHeight(i){this._checkPendingChanges(),this._lineHeight=i}setPadding(i,a){this._paddingTop=i,this._paddingBottom=a}onFlushed(i){this._checkPendingChanges(),this._lineCount=i}changeWhitespace(i){let a=!1;try{i({insertWhitespace:(_,R,K,we)=>{a=!0,_|=0,R|=0,K|=0,we|=0;let Pe=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Vr(Pe,_,R,K,we)),Pe},changeOneWhitespace:(_,R,K)=>{a=!0,R|=0,K|=0,this._pendingChanges.change({id:_,newAfterLineNumber:R,newHeight:K})},removeWhitespace:_=>{a=!0,this._pendingChanges.remove({id:_})}})}finally{this._pendingChanges.commit(this)}return a}_commitPendingChanges(i,a,_){if((i.length>0||_.length>0)&&(this._minWidth=-1),i.length+a.length+_.length<=1){for(let Ve of i)this._insertWhitespace(Ve);for(let Ve of a)this._changeOneWhitespace(Ve.id,Ve.newAfterLineNumber,Ve.newHeight);for(let Ve of _){let Je=this._findWhitespaceIndex(Ve.id);Je!==-1&&this._removeWhitespace(Je)}return}let R=new Set;for(let Ve of _)R.add(Ve.id);let K=new Map;for(let Ve of a)K.set(Ve.id,Ve);let we=Ve=>{let Je=[];for(let at of Ve)if(!R.has(at.id)){if(K.has(at.id)){let bt=K.get(at.id);at.afterLineNumber=bt.newAfterLineNumber,at.height=bt.newHeight}Je.push(at)}return Je},Pe=we(this._arr).concat(we(i));Pe.sort((Ve,Je)=>Ve.afterLineNumber===Je.afterLineNumber?Ve.ordinal-Je.ordinal:Ve.afterLineNumber-Je.afterLineNumber),this._arr=Pe,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(i){let a=Nr.findInsertionIndex(this._arr,i.afterLineNumber,i.ordinal);this._arr.splice(a,0,i),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,a-1)}_findWhitespaceIndex(i){let a=this._arr;for(let _=0,R=a.length;_<R;_++)if(a[_].id===i)return _;return-1}_changeOneWhitespace(i,a,_){let R=this._findWhitespaceIndex(i);if(R!==-1&&(this._arr[R].height!==_&&(this._arr[R].height=_,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,R-1)),this._arr[R].afterLineNumber!==a)){let K=this._arr[R];this._removeWhitespace(R),K.afterLineNumber=a,this._insertWhitespace(K)}}_removeWhitespace(i){this._arr.splice(i,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)}onLinesDeleted(i,a){this._checkPendingChanges(),i|=0,a|=0,this._lineCount-=a-i+1;for(let _=0,R=this._arr.length;_<R;_++){let K=this._arr[_].afterLineNumber;i<=K&&K<=a?this._arr[_].afterLineNumber=i-1:K>a&&(this._arr[_].afterLineNumber-=a-i+1)}}onLinesInserted(i,a){this._checkPendingChanges(),i|=0,a|=0,this._lineCount+=a-i+1;for(let _=0,R=this._arr.length;_<R;_++)i<=this._arr[_].afterLineNumber&&(this._arr[_].afterLineNumber+=a-i+1)}getWhitespacesTotalHeight(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(i){this._checkPendingChanges(),i|=0;let a=Math.max(0,this._prefixSumValidIndex+1);a===0&&(this._arr[0].prefixSum=this._arr[0].height,a++);for(let _=a;_<=i;_++)this._arr[_].prefixSum=this._arr[_-1].prefixSum+this._arr[_].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,i),this._arr[i].prefixSum}getLinesTotalHeight(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(i){this._checkPendingChanges(),i|=0;let a=this._findLastWhitespaceBeforeLineNumber(i);return a===-1?0:this.getWhitespacesAccumulatedHeight(a)}_findLastWhitespaceBeforeLineNumber(i){i|=0;let a=this._arr,_=0,R=a.length-1;for(;_<=R;){let K=_+((R-_|0)/2|0)|0;if(a[K].afterLineNumber<i){if(K+1>=a.length||a[K+1].afterLineNumber>=i)return K;_=K+1|0}else R=K-1|0}return-1}_findFirstWhitespaceAfterLineNumber(i){i|=0;let a=this._findLastWhitespaceBeforeLineNumber(i)+1;return a<this._arr.length?a:-1}getFirstWhitespaceIndexAfterLineNumber(i){return this._checkPendingChanges(),i|=0,this._findFirstWhitespaceAfterLineNumber(i)}getVerticalOffsetForLineNumber(i){let a;return this._checkPendingChanges(),a=(i|=0)>1?this._lineHeight*(i-1):0,a+this.getWhitespaceAccumulatedHeightBeforeLineNumber(i)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let i=0;for(let a=0,_=this._arr.length;a<_;a++)i=Math.max(i,this._arr[a].minWidth);this._minWidth=i}return this._minWidth}isAfterLines(i){return this._checkPendingChanges(),i>this.getLinesTotalHeight()}getLineNumberAtOrAfterVerticalOffset(i){if(this._checkPendingChanges(),(i|=0)<0)return 1;let a=0|this._lineCount,_=this._lineHeight,R=1,K=a;for(;R<K;){let we=(R+K)/2|0,Pe=0|this.getVerticalOffsetForLineNumber(we);if(i>=Pe+_)R=we+1;else{if(i>=Pe)return we;K=we}}return R>a?a:R}getLinesViewportData(i,a){this._checkPendingChanges(),i|=0,a|=0;let _=this._lineHeight,R=0|this.getLineNumberAtOrAfterVerticalOffset(i),K=0|this.getVerticalOffsetForLineNumber(R),we=0|this._lineCount,Pe=0|this.getFirstWhitespaceIndexAfterLineNumber(R),Ve=0|this.getWhitespacesCount(),Je,at;Pe===-1?(Pe=Ve,at=we+1,Je=0):(at=0|this.getAfterLineNumberForWhitespaceIndex(Pe),Je=0|this.getHeightForWhitespaceIndex(Pe));let bt=K,Bt=bt,Pt=0;K>=5e5&&(Pt=5e5*Math.floor(K/5e5),Pt=Math.floor(Pt/_)*_,Bt-=Pt);let ni=[],Ci=i+(a-i)/2,Vi=-1;for(let Gi=R;Gi<=we;Gi++){if(Vi===-1){let wn=bt,nn=bt+_;(wn<=Ci&&Ci<nn||wn>Ci)&&(Vi=Gi)}for(bt+=_,ni[Gi-R]=Bt,Bt+=_;at===Gi;)Bt+=Je,bt+=Je,Pe++,Pe>=Ve?at=we+1:(at=0|this.getAfterLineNumberForWhitespaceIndex(Pe),Je=0|this.getHeightForWhitespaceIndex(Pe));if(bt>=a){we=Gi;break}}Vi===-1&&(Vi=we);let Mi=0|this.getVerticalOffsetForLineNumber(we),zi=R,Yi=we;return zi<Yi&&K<i&&zi++,zi<Yi&&Mi+_>a&&Yi--,{bigNumbersDelta:Pt,startLineNumber:R,endLineNumber:we,relativeVerticalOffset:ni,centeredLineNumber:Vi,completelyVisibleStartLineNumber:zi,completelyVisibleEndLineNumber:Yi}}getVerticalOffsetForWhitespaceIndex(i){this._checkPendingChanges(),i|=0;let a=this.getAfterLineNumberForWhitespaceIndex(i),_,R;return _=a>=1?this._lineHeight*a:0,R=i>0?this.getWhitespacesAccumulatedHeight(i-1):0,_+R+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(i){this._checkPendingChanges(),i|=0;let a=0,_=this.getWhitespacesCount()-1;if(_<0||i>=this.getVerticalOffsetForWhitespaceIndex(_)+this.getHeightForWhitespaceIndex(_))return-1;for(;a<_;){let R=Math.floor((a+_)/2),K=this.getVerticalOffsetForWhitespaceIndex(R);if(i>=K+this.getHeightForWhitespaceIndex(R))a=R+1;else{if(i>=K)return R;_=R}}return a}getWhitespaceAtVerticalOffset(i){this._checkPendingChanges(),i|=0;let a=this.getWhitespaceIndexAtOrAfterVerticallOffset(i);if(a<0||a>=this.getWhitespacesCount())return null;let _=this.getVerticalOffsetForWhitespaceIndex(a);if(_>i)return null;let R=this.getHeightForWhitespaceIndex(a);return{id:this.getIdForWhitespaceIndex(a),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(a),verticalOffset:_,height:R}}getWhitespaceViewportData(i,a){this._checkPendingChanges(),i|=0,a|=0;let _=this.getWhitespaceIndexAtOrAfterVerticallOffset(i),R=this.getWhitespacesCount()-1;if(_<0)return[];let K=[];for(let we=_;we<=R;we++){let Pe=this.getVerticalOffsetForWhitespaceIndex(we),Ve=this.getHeightForWhitespaceIndex(we);if(Pe>=a)break;K.push({id:this.getIdForWhitespaceIndex(we),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(we),verticalOffset:Pe,height:Ve})}return K}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].id}getAfterLineNumberForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].afterLineNumber}getHeightForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].height}}Nr.INSTANCE_COUNT=0;class ts{constructor(i,a,_,R){(i|=0)<0&&(i=0),(a|=0)<0&&(a=0),(_|=0)<0&&(_=0),(R|=0)<0&&(R=0),this.width=i,this.contentWidth=a,this.scrollWidth=Math.max(i,a),this.height=_,this.contentHeight=R,this.scrollHeight=Math.max(_,R)}equals(i){return this.width===i.width&&this.contentWidth===i.contentWidth&&this.height===i.height&&this.contentHeight===i.contentHeight}}class na extends E.a{constructor(i,a){super(),this._onDidContentSizeChange=this._register(new H.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new ts(0,0,0,0),this._scrollable=this._register(new va.a(i,a)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(i){this._scrollable.setSmoothScrollDuration(i)}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}getScrollDimensions(){return this._dimensions}setScrollDimensions(i){if(this._dimensions.equals(i))return;let a=this._dimensions;this._dimensions=i,this._scrollable.setScrollDimensions({width:i.width,scrollWidth:i.scrollWidth,height:i.height,scrollHeight:i.scrollHeight},!0);let _=a.contentWidth!==i.contentWidth,R=a.contentHeight!==i.contentHeight;(_||R)&&this._onDidContentSizeChange.fire(new Kn(a.contentWidth,a.contentHeight,i.contentWidth,i.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(i){this._scrollable.setScrollPositionNow(i)}setScrollPositionSmooth(i){this._scrollable.setScrollPositionSmooth(i)}}class is extends E.a{constructor(i,a,_){super(),this._configuration=i;let R=this._configuration.options,K=R.get(117),we=R.get(66);this._linesLayout=new Nr(a,R.get(51),we.top,we.bottom),this._scrollable=this._register(new na(0,_)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new ts(K.contentWidth,0,K.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(94)?125:0)}onConfigurationChanged(i){let a=this._configuration.options;if(i.hasChanged(51)&&this._linesLayout.setLineHeight(a.get(51)),i.hasChanged(66)){let _=a.get(66);this._linesLayout.setPadding(_.top,_.bottom)}if(i.hasChanged(117)){let _=a.get(117),R=_.contentWidth,K=_.height,we=this._scrollable.getScrollDimensions(),Pe=we.contentWidth;this._scrollable.setScrollDimensions(new ts(R,we.contentWidth,K,this._getContentHeight(R,K,Pe)))}else this._updateHeight();i.hasChanged(94)&&this._configureSmoothScrollDuration()}onFlushed(i){this._linesLayout.onFlushed(i)}onLinesDeleted(i,a){this._linesLayout.onLinesDeleted(i,a)}onLinesInserted(i,a){this._linesLayout.onLinesInserted(i,a)}_getHorizontalScrollbarHeight(i,a){let _=this._configuration.options.get(84);return _.horizontal===2||i>=a?0:_.horizontalScrollbarSize}_getContentHeight(i,a,_){let R=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return R.get(86)?K+=a-R.get(51):K+=this._getHorizontalScrollbarHeight(i,_),K}_updateHeight(){let i=this._scrollable.getScrollDimensions(),a=i.width,_=i.height,R=i.contentWidth;this._scrollable.setScrollDimensions(new ts(a,i.contentWidth,_,this._getContentHeight(a,_,R)))}getCurrentViewport(){let i=this._scrollable.getScrollDimensions(),a=this._scrollable.getCurrentScrollPosition();return new Ge.f(a.scrollTop,a.scrollLeft,i.width,i.height)}getFutureViewport(){let i=this._scrollable.getScrollDimensions(),a=this._scrollable.getFutureScrollPosition();return new Ge.f(a.scrollTop,a.scrollLeft,i.width,i.height)}_computeContentWidth(i){let a=this._configuration.options,_=a.get(118),R=a.get(36);if(_.isViewportWrapping){let K=a.get(117),we=a.get(56);return i>K.contentWidth+R.typicalHalfwidthCharacterWidth&&we.enabled&&we.side==="right"?i+K.verticalScrollbarWidth:i}{let K=a.get(85)*R.typicalHalfwidthCharacterWidth,we=this._linesLayout.getWhitespaceMinWidth();return Math.max(i+K,we)}}setMaxLineWidth(i){let a=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ts(a.width,this._computeContentWidth(i),a.height,a.contentHeight)),this._updateHeight()}saveState(){let i=this._scrollable.getFutureScrollPosition(),a=i.scrollTop,_=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(a);return{scrollTop:a,scrollTopWithoutViewZones:a-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(_),scrollLeft:i.scrollLeft}}changeWhitespace(i){let a=this._linesLayout.changeWhitespace(i);return a&&this.onHeightMaybeChanged(),a}getVerticalOffsetForLineNumber(i){return this._linesLayout.getVerticalOffsetForLineNumber(i)}isAfterLines(i){return this._linesLayout.isAfterLines(i)}getLineNumberAtVerticalOffset(i){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i)}getWhitespaceAtVerticalOffset(i){return this._linesLayout.getWhitespaceAtVerticalOffset(i)}getLinesViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(i.top,i.top+i.height)}getLinesViewportDataAtScrollTop(i){let a=this._scrollable.getScrollDimensions();return i+a.height>a.scrollHeight&&(i=a.scrollHeight-a.height),i<0&&(i=0),this._linesLayout.getLinesViewportData(i,i+a.height)}getWhitespaceViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(i.top,i.top+i.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}setScrollPosition(i,a){a===1?this._scrollable.setScrollPositionNow(i):this._scrollable.setScrollPositionSmooth(i)}deltaScrollNow(i,a){let _=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:_.scrollLeft+i,scrollTop:_.scrollTop+a})}}var Ur=o(30),cs=o(101);class dr{constructor(i,a){this.outputLineIndex=i,this.outputOffset=a}}class nr{constructor(i,a,_){this.breakOffsets=i,this.breakOffsetsVisibleColumn=a,this.wrappedTextIndentLength=_}static getInputOffsetOfOutputPosition(i,a,_){return a===0?_:i[a-1]+_}static getOutputPositionOfInputOffset(i,a){let _=0,R=i.length-1,K=0,we=0;for(;_<=R;){K=_+(R-_)/2|0;let Pe=i[K];if(we=K>0?i[K-1]:0,a<we)R=K-1;else{if(!(a>=Pe))break;_=K+1}}return new dr(K,a-we)}}class _r{constructor(i){this._lines=i}convertViewPositionToModelPosition(i){return this._lines.convertViewPositionToModelPosition(i.lineNumber,i.column)}convertViewRangeToModelRange(i){return this._lines.convertViewRangeToModelRange(i)}validateViewPosition(i,a){return this._lines.validateViewPosition(i.lineNumber,i.column,a)}validateViewRange(i,a){return this._lines.validateViewRange(i,a)}convertModelPositionToViewPosition(i){return this._lines.convertModelPositionToViewPosition(i.lineNumber,i.column)}convertModelRangeToViewRange(i){return this._lines.convertModelRangeToViewRange(i)}modelPositionIsVisible(i){return this._lines.modelPositionIsVisible(i.lineNumber,i.column)}}class wa{constructor(i){this._counts=i,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(i){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,i-1)}_ensureValid(){if(!this._isValid){for(let i=this._validEndIndex+1,a=this._counts.length;i<a;i++){let _=this._counts[i],R=i>0?this._modelToView[i-1]:0;this._modelToView[i]=R+_;for(let K=0;K<_;K++)this._viewToModel[R+K]=i}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}}changeValue(i,a){this._counts[i]!==a&&(this._counts[i]=a,this._invalidate(i))}removeValues(i,a){this._counts.splice(i,a),this._invalidate(i)}insertValues(i,a){this._counts=ho.a(this._counts,i,a),this._invalidate(i)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(i){return this._ensureValid(),this._modelToView[i]}getIndexOf(i){this._ensureValid();let a=this._viewToModel[i],_=a>0?this._modelToView[a-1]:0;return new cs.b(a,i-_)}}class zo{constructor(i,a,_,R,K,we,Pe,Ve){this.model=i,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=a,this._monospaceLineBreaksComputerFactory=_,this.fontInfo=R,this.tabSize=K,this.wrappingStrategy=we,this.wrappingColumn=Pe,this.wrappingIndent=Ve,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new _r(this)}_constructLines(i,a){this.lines=[],i&&(this.hiddenAreasIds=[]);let _=this.model.getLinesContent(),R=_.length,K=this.createLineBreaksComputer();for(let Pt=0;Pt<R;Pt++)K.addRequest(_[Pt],a?a[Pt]:null);let we=K.finalize(),Pe=[],Ve=this.hiddenAreasIds.map(Pt=>this.model.getDecorationRange(Pt)).sort(Nt.a.compareRangesUsingStarts),Je=1,at=0,bt=-1,Bt=bt+1<Ve.length?at+1:R+2;for(let Pt=0;Pt<R;Pt++){let ni=Pt+1;ni===Bt&&(bt++,Je=Ve[bt].startLineNumber,at=Ve[bt].endLineNumber,Bt=bt+1<Ve.length?at+1:R+2);let Ci=ni>=Je&&ni<=at,Vi=wr(we[Pt],!Ci);Pe[Pt]=Vi.getViewLineCount(),this.lines[Pt]=Vi}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new wa(Pe)}getHiddenAreas(){return this.hiddenAreasIds.map(i=>this.model.getDecorationRange(i))}_reduceRanges(i){if(i.length===0)return[];let a=i.map(we=>this.model.validateRange(we)).sort(Nt.a.compareRangesUsingStarts),_=[],R=a[0].startLineNumber,K=a[0].endLineNumber;for(let we=1,Pe=a.length;we<Pe;we++){let Ve=a[we];Ve.startLineNumber>K+1?(_.push(new Nt.a(R,1,K,1)),R=Ve.startLineNumber,K=Ve.endLineNumber):Ve.endLineNumber>K&&(K=Ve.endLineNumber)}return _.push(new Nt.a(R,1,K,1)),_}setHiddenAreas(i){let a=this._reduceRanges(i),_=this.hiddenAreasIds.map(bt=>this.model.getDecorationRange(bt)).sort(Nt.a.compareRangesUsingStarts);if(a.length===_.length){let bt=!1;for(let Bt=0;Bt<a.length;Bt++)if(!a[Bt].equalsRange(_[Bt])){bt=!0;break}if(!bt)return!1}let R=[];for(let bt of a)R.push({range:bt,options:Ur.a.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,R);let K=a,we=1,Pe=0,Ve=-1,Je=Ve+1<K.length?Pe+1:this.lines.length+2,at=!1;for(let bt=0;bt<this.lines.length;bt++){let Bt=bt+1;Bt===Je&&(Ve++,we=K[Ve].startLineNumber,Pe=K[Ve].endLineNumber,Je=Ve+1<K.length?Pe+1:this.lines.length+2);let Pt=!1;if(Bt>=we&&Bt<=Pe?this.lines[bt].isVisible()&&(this.lines[bt]=this.lines[bt].setVisible(!1),Pt=!0):(at=!0,this.lines[bt].isVisible()||(this.lines[bt]=this.lines[bt].setVisible(!0),Pt=!0)),Pt){let ni=this.lines[bt].getViewLineCount();this.prefixSumComputer.changeValue(bt,ni)}}return at||this.setHiddenAreas([]),!0}modelPositionIsVisible(i,a){return!(i<1||i>this.lines.length)&&this.lines[i-1].isVisible()}setTabSize(i){return this.tabSize!==i&&(this.tabSize=i,this._constructLines(!1,null),!0)}setWrappingSettings(i,a,_,R){let K=this.fontInfo.equals(i),we=this.wrappingStrategy===a,Pe=this.wrappingColumn===_,Ve=this.wrappingIndent===R;if(K&&we&&Pe&&Ve)return!1;let Je=K&&we&&!Pe&&Ve;this.fontInfo=i,this.wrappingStrategy=a,this.wrappingColumn=_,this.wrappingIndent=R;let at=null;if(Je){at=[];for(let bt=0,Bt=this.lines.length;bt<Bt;bt++)at[bt]=this.lines[bt].getLineBreakData()}return this._constructLines(!1,at),!0}createLineBreaksComputer(){return(this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(i,a,_){if(i<=this._validModelVersionId)return null;let R=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,K=this.prefixSumComputer.getAccumulatedValue(_-1);return this.lines.splice(a-1,_-a+1),this.prefixSumComputer.removeValues(a-1,_-a+1),new So(R,K)}onModelLinesInserted(i,a,_,R){if(i<=this._validModelVersionId)return null;let K=this.getHiddenAreas(),we=!1,Pe=new At.a(a,1);for(let Bt of K)if(Bt.containsPosition(Pe)){we=!0;break}let Ve=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,Je=0,at=[],bt=[];for(let Bt=0,Pt=R.length;Bt<Pt;Bt++){let ni=wr(R[Bt],!we);at.push(ni);let Ci=ni.getViewLineCount();Je+=Ci,bt[Bt]=Ci}return this.lines=this.lines.slice(0,a-1).concat(at).concat(this.lines.slice(a-1)),this.prefixSumComputer.insertValues(a-1,bt),new ko(Ve,Ve+Je-1)}onModelLineChanged(i,a,_){if(i<=this._validModelVersionId)return[!1,null,null,null];let R=a-1,K=this.lines[R].getViewLineCount(),we=wr(_,this.lines[R].isVisible());this.lines[R]=we;let Pe=this.lines[R].getViewLineCount(),Ve=!1,Je=0,at=-1,bt=0,Bt=-1,Pt=0,ni=-1;return K>Pe?(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+Pe-1,Pt=at+1,ni=Pt+(K-Pe)-1,Ve=!0):K<Pe?(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+K-1,bt=at+1,Bt=bt+(Pe-K)-1,Ve=!0):(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+Pe-1),this.prefixSumComputer.changeValue(R,Pe),[Ve,Je<=at?new Mo(Je,at):null,bt<=Bt?new ko(bt,Bt):null,Pt<=ni?new So(Pt,ni):null]}acceptVersionId(i){this._validModelVersionId=i,this.lines.length!==1||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(i){if(i<1)return 1;let a=this.getViewLineCount();return i>a?a:0|i}getActiveIndentGuide(i,a,_){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a),_=this._toValidViewLineNumber(_);let R=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),K=this.convertViewPositionToModelPosition(a,this.getViewLineMinColumn(a)),we=this.convertViewPositionToModelPosition(_,this.getViewLineMinColumn(_)),Pe=this.model.getActiveIndentGuide(R.lineNumber,K.lineNumber,we.lineNumber),Ve=this.convertModelPositionToViewPosition(Pe.startLineNumber,1),Je=this.convertModelPositionToViewPosition(Pe.endLineNumber,this.model.getLineMaxColumn(Pe.endLineNumber));return{startLineNumber:Ve.lineNumber,endLineNumber:Je.lineNumber,indent:Pe.indent}}getViewLinesIndentGuides(i,a){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a);let _=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),R=this.convertViewPositionToModelPosition(a,this.getViewLineMaxColumn(a)),K=[],we=[],Pe=[],Ve=_.lineNumber-1,Je=R.lineNumber-1,at=null;for(let ni=Ve;ni<=Je;ni++){let Ci=this.lines[ni];if(Ci.isVisible()){let Vi=Ci.getViewLineNumberOfModelPosition(0,ni===Ve?_.column:1),Mi=Ci.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ni+1)),zi=Mi-Vi+1,Yi=0;zi>1&&Ci.getViewLineMinColumn(this.model,ni+1,Mi)===1&&(Yi=Vi===0?1:2),we.push(zi),Pe.push(Yi),at===null&&(at=new At.a(ni+1,0))}else at!==null&&(K=K.concat(this.model.getLinesIndentGuides(at.lineNumber,ni)),at=null)}at!==null&&(K=K.concat(this.model.getLinesIndentGuides(at.lineNumber,R.lineNumber)),at=null);let bt=a-i+1,Bt=new Array(bt),Pt=0;for(let ni=0,Ci=K.length;ni<Ci;ni++){let Vi,Mi=K[ni],zi=Math.min(bt-Pt,we[ni]),Yi=Pe[ni];Vi=Yi===2?0:Yi===1?1:zi;for(let Gi=0;Gi<zi;Gi++)Gi===Vi&&(Mi=0),Bt[Pt++]=Mi}return Bt}getViewLineContent(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineContent(this.model,_+1,R)}getViewLineLength(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineLength(this.model,_+1,R)}getViewLineMinColumn(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineMinColumn(this.model,_+1,R)}getViewLineMaxColumn(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineMaxColumn(this.model,_+1,R)}getViewLineData(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineData(this.model,_+1,R)}getViewLinesData(i,a,_){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a);let R=this.prefixSumComputer.getIndexOf(i-1),K=i,we=R.index,Pe=R.remainder,Ve=[];for(let Je=we,at=this.model.getLineCount();Je<at;Je++){let bt=this.lines[Je];if(!bt.isVisible())continue;let Bt=Je===we?Pe:0,Pt=bt.getViewLineCount()-Bt,ni=!1;K+Pt>a&&(ni=!0,Pt=a-K+1);let Ci=Bt+Pt;if(bt.getViewLinesData(this.model,Je+1,Bt,Ci,K-i,_,Ve),K+=Pt,ni)break}return Ve}validateViewPosition(i,a,_){i=this._toValidViewLineNumber(i);let R=this.prefixSumComputer.getIndexOf(i-1),K=R.index,we=R.remainder,Pe=this.lines[K],Ve=Pe.getViewLineMinColumn(this.model,K+1,we),Je=Pe.getViewLineMaxColumn(this.model,K+1,we);a<Ve&&(a=Ve),a>Je&&(a=Je);let at=Pe.getModelColumnOfViewPosition(we,a);return this.model.validatePosition(new At.a(K+1,at)).equals(_)?new At.a(i,a):this.convertModelPositionToViewPosition(_.lineNumber,_.column)}validateViewRange(i,a){let _=this.validateViewPosition(i.startLineNumber,i.startColumn,a.getStartPosition()),R=this.validateViewPosition(i.endLineNumber,i.endColumn,a.getEndPosition());return new Nt.a(_.lineNumber,_.column,R.lineNumber,R.column)}convertViewPositionToModelPosition(i,a){i=this._toValidViewLineNumber(i);let _=this.prefixSumComputer.getIndexOf(i-1),R=_.index,K=_.remainder,we=this.lines[R].getModelColumnOfViewPosition(K,a);return this.model.validatePosition(new At.a(R+1,we))}convertViewRangeToModelRange(i){let a=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),_=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);return new Nt.a(a.lineNumber,a.column,_.lineNumber,_.column)}convertModelPositionToViewPosition(i,a){let _=this.model.validatePosition(new At.a(i,a)),R=_.lineNumber,K=_.column,we=R-1,Pe=!1;for(;we>0&&!this.lines[we].isVisible();)we--,Pe=!0;if(we===0&&!this.lines[we].isVisible())return new At.a(1,1);let Ve=1+(we===0?0:this.prefixSumComputer.getAccumulatedValue(we-1)),Je;return Je=Pe?this.lines[we].getViewPositionOfModelPosition(Ve,this.model.getLineMaxColumn(we+1)):this.lines[R-1].getViewPositionOfModelPosition(Ve,K),Je}convertModelRangeToViewRange(i){let a=this.convertModelPositionToViewPosition(i.startLineNumber,i.startColumn),_=this.convertModelPositionToViewPosition(i.endLineNumber,i.endColumn);return i.startLineNumber===i.endLineNumber&&a.lineNumber!==_.lineNumber&&_.column===this.getViewLineMinColumn(_.lineNumber)?new Nt.a(a.lineNumber,a.column,_.lineNumber-1,this.getViewLineMaxColumn(_.lineNumber-1)):new Nt.a(a.lineNumber,a.column,_.lineNumber,_.column)}_getViewLineNumberForModelPosition(i,a){let _=i-1;if(this.lines[_].isVisible()){let K=1+(_===0?0:this.prefixSumComputer.getAccumulatedValue(_-1));return this.lines[_].getViewLineNumberOfModelPosition(K,a)}for(;_>0&&!this.lines[_].isVisible();)_--;if(_===0&&!this.lines[_].isVisible())return 1;let R=1+(_===0?0:this.prefixSumComputer.getAccumulatedValue(_-1));return this.lines[_].getViewLineNumberOfModelPosition(R,this.model.getLineMaxColumn(_+1))}getAllOverviewRulerDecorations(i,a,_){let R=this.model.getOverviewRulerDecorations(i,a),K=new or;for(let we of R){let Pe=we.options.overviewRuler,Ve=Pe?Pe.position:0;if(Ve===0)continue;let Je=Pe.getColor(_),at=this._getViewLineNumberForModelPosition(we.range.startLineNumber,we.range.startColumn),bt=this._getViewLineNumberForModelPosition(we.range.endLineNumber,we.range.endColumn);K.accept(Je,at,bt,Ve)}return K.result}getDecorationsInRange(i,a,_){let R=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),K=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);if(K.lineNumber-R.lineNumber<=i.endLineNumber-i.startLineNumber)return this.model.getDecorationsInRange(new Nt.a(R.lineNumber,1,K.lineNumber,K.column),a,_);let we=[],Pe=R.lineNumber-1,Ve=K.lineNumber-1,Je=null;for(let Pt=Pe;Pt<=Ve;Pt++)if(this.lines[Pt].isVisible())Je===null&&(Je=new At.a(Pt+1,Pt===Pe?R.column:1));else if(Je!==null){let ni=this.model.getLineMaxColumn(Pt);we=we.concat(this.model.getDecorationsInRange(new Nt.a(Je.lineNumber,Je.column,Pt,ni),a,_)),Je=null}Je!==null&&(we=we.concat(this.model.getDecorationsInRange(new Nt.a(Je.lineNumber,Je.column,K.lineNumber,K.column),a,_)),Je=null),we.sort((Pt,ni)=>{let Ci=Nt.a.compareRangesUsingStarts(Pt.range,ni.range);return Ci===0?Pt.id<ni.id?-1:Pt.id>ni.id?1:0:Ci});let at=[],bt=0,Bt=null;for(let Pt of we){let ni=Pt.id;Bt!==ni&&(Bt=ni,at[bt++]=Pt)}return at}}class Cs{constructor(){}isVisible(){return!0}setVisible(i){return i?this:Hr.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(i,a,_){return i.getLineContent(a)}getViewLineLength(i,a,_){return i.getLineLength(a)}getViewLineMinColumn(i,a,_){return i.getLineMinColumn(a)}getViewLineMaxColumn(i,a,_){return i.getLineMaxColumn(a)}getViewLineData(i,a,_){let R=i.getLineTokens(a),K=R.getLineContent();return new Ge.c(K,!1,1,K.length+1,0,R.inflate())}getViewLinesData(i,a,_,R,K,we,Pe){we[K]?Pe[K]=this.getViewLineData(i,a,0):Pe[K]=null}getModelColumnOfViewPosition(i,a){return a}getViewPositionOfModelPosition(i,a){return new At.a(i,a)}getViewLineNumberOfModelPosition(i,a){return i}}Cs.INSTANCE=new Cs;class Hr{constructor(){}isVisible(){return!1}setVisible(i){return i?Cs.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(i,a,_){throw new Error("Not supported")}getViewLineLength(i,a,_){throw new Error("Not supported")}getViewLineMinColumn(i,a,_){throw new Error("Not supported")}getViewLineMaxColumn(i,a,_){throw new Error("Not supported")}getViewLineData(i,a,_){throw new Error("Not supported")}getViewLinesData(i,a,_,R,K,we,Pe){throw new Error("Not supported")}getModelColumnOfViewPosition(i,a){throw new Error("Not supported")}getViewPositionOfModelPosition(i,a){throw new Error("Not supported")}getViewLineNumberOfModelPosition(i,a){throw new Error("Not supported")}}Hr.INSTANCE=new Hr;class ya{constructor(i,a){this._lineBreakData=i,this._isVisible=a}isVisible(){return this._isVisible}setVisible(i){return this._isVisible=i,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(i){return nr.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i,0)}getInputEndOffsetOfOutputLineIndex(i,a,_){return _+1===this._lineBreakData.breakOffsets.length?i.getLineMaxColumn(a)-1:nr.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,_+1,0)}getViewLineContent(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_),we=i.getValueInRange({startLineNumber:a,startColumn:R+1,endLineNumber:a,endColumn:K+1});return _>0&&(we=ds(this._lineBreakData.wrappedTextIndentLength)+we),we}getViewLineLength(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_)-R;return _>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K}getViewLineMinColumn(i,a,_){if(!this._isVisible)throw new Error("Not supported");return _>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(i,a,_){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(i,a,_).length+1}getViewLineData(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_),we=i.getValueInRange({startLineNumber:a,startColumn:R+1,endLineNumber:a,endColumn:K+1});_>0&&(we=ds(this._lineBreakData.wrappedTextIndentLength)+we);let Pe=_>0?this._lineBreakData.wrappedTextIndentLength+1:1,Ve=we.length+1,Je=_+1<this.getViewLineCount(),at=0;_>0&&(at=this._lineBreakData.wrappedTextIndentLength);let bt=i.getLineTokens(a),Bt=_===0?0:this._lineBreakData.breakOffsetsVisibleColumn[_-1];return new Ge.c(we,Je,Pe,Ve,Bt,bt.sliceAndInflate(R,K,at))}getViewLinesData(i,a,_,R,K,we,Pe){if(!this._isVisible)throw new Error("Not supported");for(let Ve=_;Ve<R;Ve++){let Je=K+Ve-_;we[Je]?Pe[Je]=this.getViewLineData(i,a,Ve):Pe[Je]=null}}getModelColumnOfViewPosition(i,a){if(!this._isVisible)throw new Error("Not supported");let _=a-1;return i>0&&(_<this._lineBreakData.wrappedTextIndentLength?_=0:_-=this._lineBreakData.wrappedTextIndentLength),nr.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i,_)+1}getViewPositionOfModelPosition(i,a){if(!this._isVisible)throw new Error("Not supported");let _=nr.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,a-1),R=_.outputLineIndex,K=_.outputOffset+1;return R>0&&(K+=this._lineBreakData.wrappedTextIndentLength),new At.a(i+R,K)}getViewLineNumberOfModelPosition(i,a){if(!this._isVisible)throw new Error("Not supported");return i+nr.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,a-1).outputLineIndex}}let vr=[""];function ds(Zt){if(Zt>=vr.length)for(let i=1;i<=Zt;i++)vr[i]=oa(i);return vr[Zt]}function oa(Zt){return new Array(Zt+1).join(" ")}function wr(Zt,i){return Zt===null?i?Cs.INSTANCE:Hr.INSTANCE:new ya(Zt,i)}class ns{constructor(i){this._lines=i}_validPosition(i){return this._lines.model.validatePosition(i)}_validRange(i){return this._lines.model.validateRange(i)}convertViewPositionToModelPosition(i){return this._validPosition(i)}convertViewRangeToModelRange(i){return this._validRange(i)}validateViewPosition(i,a){return this._validPosition(a)}validateViewRange(i,a){return this._validRange(a)}convertModelPositionToViewPosition(i){return this._validPosition(i)}convertModelRangeToViewRange(i){return this._validRange(i)}modelPositionIsVisible(i){let a=this._lines.model.getLineCount();return!(i.lineNumber<1||i.lineNumber>a)}}class Ui{constructor(i){this.model=i}dispose(){}createCoordinatesConverter(){return new ns(this)}getHiddenAreas(){return[]}setHiddenAreas(i){return!1}setTabSize(i){return!1}setWrappingSettings(i,a,_,R){return!1}createLineBreaksComputer(){let i=[];return{addRequest:(a,_)=>{i.push(null)},finalize:()=>i}}onModelFlushed(){}onModelLinesDeleted(i,a,_){return new So(a,_)}onModelLinesInserted(i,a,_,R){return new ko(a,_)}onModelLineChanged(i,a,_){return[!1,new Mo(a,a),null,null]}acceptVersionId(i){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(i,a,_){return{startLineNumber:i,endLineNumber:i,indent:0}}getViewLinesIndentGuides(i,a){let _=a-i+1,R=new Array(_);for(let K=0;K<_;K++)R[K]=0;return R}getViewLineContent(i){return this.model.getLineContent(i)}getViewLineLength(i){return this.model.getLineLength(i)}getViewLineMinColumn(i){return this.model.getLineMinColumn(i)}getViewLineMaxColumn(i){return this.model.getLineMaxColumn(i)}getViewLineData(i){let a=this.model.getLineTokens(i),_=a.getLineContent();return new Ge.c(_,!1,1,_.length+1,0,a.inflate())}getViewLinesData(i,a,_){let R=this.model.getLineCount();i=Math.min(Math.max(1,i),R),a=Math.min(Math.max(1,a),R);let K=[];for(let we=i;we<=a;we++){let Pe=we-i;_[Pe]||(K[Pe]=null),K[Pe]=this.getViewLineData(we)}return K}getAllOverviewRulerDecorations(i,a,_){let R=this.model.getOverviewRulerDecorations(i,a),K=new or;for(let we of R){let Pe=we.options.overviewRuler,Ve=Pe?Pe.position:0;if(Ve===0)continue;let Je=Pe.getColor(_),at=we.range.startLineNumber,bt=we.range.endLineNumber;K.accept(Je,at,bt,Ve)}return K.result}getDecorationsInRange(i,a,_){return this.model.getDecorationsInRange(i,a,_)}}class or{constructor(){this.result=Object.create(null)}accept(i,a,_,R){let K=this.result[i];if(K){let we=K[K.length-3],Pe=K[K.length-1];if(we===R&&Pe+1>=a)return void(_>Pe&&(K[K.length-1]=_));K.push(R,a,_)}else this.result[i]=[R,a,_]}}class xs{constructor(i,a,_,R,K){this.editorId=i,this.model=a,this.configuration=_,this._linesCollection=R,this._coordinatesConverter=K,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(i){let a=i.id,_=this._decorationsCache[a];if(!_){let R=i.range,K=i.options,we;if(K.isWholeLine){let Pe=this._coordinatesConverter.convertModelPositionToViewPosition(new At.a(R.startLineNumber,1)),Ve=this._coordinatesConverter.convertModelPositionToViewPosition(new At.a(R.endLineNumber,this.model.getLineMaxColumn(R.endLineNumber)));we=new Nt.a(Pe.lineNumber,Pe.column,Ve.lineNumber,Ve.column)}else we=this._coordinatesConverter.convertModelRangeToViewRange(R);_=new Ge.e(we,K),this._decorationsCache[a]=_}return _}getDecorationsViewportData(i){let a=this._cachedModelDecorationsResolver!==null;return a=a&&i.equalsRange(this._cachedModelDecorationsResolverViewRange),a||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(i),this._cachedModelDecorationsResolverViewRange=i),this._cachedModelDecorationsResolver}_getDecorationsViewportData(i){let a=this._linesCollection.getDecorationsInRange(i,this.editorId,Object(fe.l)(this.configuration.options)),_=i.startLineNumber,R=i.endLineNumber,K=[],we=0,Pe=[];for(let Ve=_;Ve<=R;Ve++)Pe[Ve-_]=[];for(let Ve=0,Je=a.length;Ve<Je;Ve++){let at=a[Ve],bt=at.options,Bt=this._getOrCreateViewModelDecoration(at),Pt=Bt.range;if(K[we++]=Bt,bt.inlineClassName){let ni=new Ge.a(Pt,bt.inlineClassName,bt.inlineClassNameAffectsLetterSpacing?3:0),Ci=Math.max(_,Pt.startLineNumber),Vi=Math.min(R,Pt.endLineNumber);for(let Mi=Ci;Mi<=Vi;Mi++)Pe[Mi-_].push(ni)}if(bt.beforeContentClassName&&_<=Pt.startLineNumber&&Pt.startLineNumber<=R){let ni=new Ge.a(new Nt.a(Pt.startLineNumber,Pt.startColumn,Pt.startLineNumber,Pt.startColumn),bt.beforeContentClassName,1);Pe[Pt.startLineNumber-_].push(ni)}if(bt.afterContentClassName&&_<=Pt.endLineNumber&&Pt.endLineNumber<=R){let ni=new Ge.a(new Nt.a(Pt.endLineNumber,Pt.endColumn,Pt.endLineNumber,Pt.endColumn),bt.afterContentClassName,2);Pe[Pt.endLineNumber-_].push(ni)}}return{decorations:K,inlineDecorations:Pe}}}class yr extends E.a{constructor(i,a,_,R,K,we){if(super(),this._editorId=i,this._configuration=a,this.model=_,this._eventDispatcher=new ls,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new l.d(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new l.d(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new Ui(this.model);else{let Pe=this._configuration.options,Ve=Pe.get(36),Je=Pe.get(112),at=Pe.get(118),bt=Pe.get(111);this._lines=new zo(this.model,R,K,Ve,this.model.getOptions().tabSize,Je,at.wrappingColumn,bt)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Do(_,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new is(this._configuration,this.getLineCount(),we)),this._register(this.viewLayout.onDidScroll(Pe=>{Pe.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Tn(Pe)),this._eventDispatcher.emitOutgoingEvent(new Eo(Pe.oldScrollWidth,Pe.oldScrollLeft,Pe.oldScrollHeight,Pe.oldScrollTop,Pe.scrollWidth,Pe.scrollLeft,Pe.scrollHeight,Pe.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(Pe=>{this._eventDispatcher.emitOutgoingEvent(Pe)})),this._decorations=new xs(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(Pe=>{try{let Ve=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(Ve,Pe)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(ae.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new gr)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}addViewEventHandler(i){this._eventDispatcher.addViewEventHandler(i)}removeViewEventHandler(i){this._eventDispatcher.removeViewEventHandler(i)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){let i=this.viewLayout.getLinesViewportData(),a=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i.startLineNumber,1)),_=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i.endLineNumber,1));this.model.tokenizeViewport(a.lineNumber,_.lineNumber)}setHasFocus(i){this._hasFocus=i,this._cursor.setHasFocus(i),this._eventDispatcher.emitSingleViewEvent(new Rn(i)),this._eventDispatcher.emitOutgoingEvent(new cr(!i,i))}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new No)}_onConfigurationChanged(i,a){let _=null;if(this._viewportStartLine!==-1){let at=new At.a(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));_=this.coordinatesConverter.convertViewPositionToModelPosition(at)}let R=!1,K=this._configuration.options,we=K.get(36),Pe=K.get(112),Ve=K.get(118),Je=K.get(111);if(this._lines.setWrappingSettings(we,Pe,Ve.wrappingColumn,Je)&&(i.emitViewEvent(new In),i.emitViewEvent(new vo),i.emitViewEvent(new Ro(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(R=!0),this._updateConfigurationViewLineCount.schedule()),a.hasChanged(72)&&(this._decorations.reset(),i.emitViewEvent(new Ro(null))),i.emitViewEvent(new Yn(a)),this.viewLayout.onConfigurationChanged(a),R&&_){let at=this.coordinatesConverter.convertModelPositionToViewPosition(_),bt=this.viewLayout.getVerticalOffsetForLineNumber(at.lineNumber);this.viewLayout.setScrollPosition({scrollTop:bt+this._viewportStartLineDelta},1)}_i.b.shouldRecreate(a)&&(this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeRawContentFast(i=>{try{let a=this._eventDispatcher.beginEmitViewEvents(),_=!1,R=!1,K=i.changes,we=i.versionId,Pe=this._lines.createLineBreaksComputer();for(let at of K)switch(at.changeType){case 4:for(let bt of at.detail)Pe.addRequest(bt,null);break;case 2:Pe.addRequest(at.detail,null)}let Ve=Pe.finalize(),Je=0;for(let at of K)switch(at.changeType){case 1:this._lines.onModelFlushed(),a.emitViewEvent(new In),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),_=!0;break;case 3:{let bt=this._lines.onModelLinesDeleted(we,at.fromLineNumber,at.toLineNumber);bt!==null&&(a.emitViewEvent(bt),this.viewLayout.onLinesDeleted(bt.fromLineNumber,bt.toLineNumber)),_=!0;break}case 4:{let bt=Ve.slice(Je,Je+at.detail.length);Je+=at.detail.length;let Bt=this._lines.onModelLinesInserted(we,at.fromLineNumber,at.toLineNumber,bt);Bt!==null&&(a.emitViewEvent(Bt),this.viewLayout.onLinesInserted(Bt.fromLineNumber,Bt.toLineNumber)),_=!0;break}case 2:{let bt=Ve[Je];Je++;let[Bt,Pt,ni,Ci]=this._lines.onModelLineChanged(we,at.lineNumber,bt);R=Bt,Pt&&a.emitViewEvent(Pt),ni&&(a.emitViewEvent(ni),this.viewLayout.onLinesInserted(ni.fromLineNumber,ni.toLineNumber)),Ci&&(a.emitViewEvent(Ci),this.viewLayout.onLinesDeleted(Ci.fromLineNumber,Ci.toLineNumber));break}}this._lines.acceptVersionId(we),this.viewLayout.onHeightMaybeChanged(),!_&&R&&(a.emitViewEvent(new vo),a.emitViewEvent(new Ro(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){let a=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(a){let _=this.coordinatesConverter.convertModelPositionToViewPosition(a.getStartPosition()),R=this.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber);this.viewLayout.setScrollPosition({scrollTop:R+this._viewportStartLineDelta},1)}}try{let a=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(a,i)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(i=>{let a=[];for(let _=0,R=i.ranges.length;_<R;_++){let K=i.ranges[_],we=this.coordinatesConverter.convertModelPositionToViewPosition(new At.a(K.fromLineNumber,1)).lineNumber,Pe=this.coordinatesConverter.convertModelPositionToViewPosition(new At.a(K.toLineNumber,this.model.getLineMaxColumn(K.toLineNumber))).lineNumber;a[_]={fromLineNumber:we,toLineNumber:Pe}}this._eventDispatcher.emitSingleViewEvent(new Ho(a)),i.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(i=>{this._eventDispatcher.emitSingleViewEvent(new Qn),this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(i=>{this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(i=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{let a=this._eventDispatcher.beginEmitViewEvents();a.emitViewEvent(new In),a.emitViewEvent(new vo),a.emitViewEvent(new Ro(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(i=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Ro(i))}))}setHiddenAreas(i){try{let a=this._eventDispatcher.beginEmitViewEvents();this._lines.setHiddenAreas(i)&&(a.emitViewEvent(new In),a.emitViewEvent(new vo),a.emitViewEvent(new Ro(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){let i=this._configuration.options.get(117),a=this._configuration.options.get(51),_=Math.max(20,Math.round(i.height/a)),R=this.viewLayout.getLinesViewportData(),K=Math.max(1,R.completelyVisibleStartLineNumber-_),we=Math.min(this.getLineCount(),R.completelyVisibleEndLineNumber+_);return this._toModelVisibleRanges(new Nt.a(K,this.getLineMinColumn(K),we,this.getLineMaxColumn(we)))}getVisibleRanges(){let i=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(i)}_toModelVisibleRanges(i){let a=this.coordinatesConverter.convertViewRangeToModelRange(i),_=this._lines.getHiddenAreas();if(_.length===0)return[a];let R=[],K=0,we=a.startLineNumber,Pe=a.startColumn,Ve=a.endLineNumber,Je=a.endColumn;for(let at=0,bt=_.length;at<bt;at++){let Bt=_[at].startLineNumber,Pt=_[at].endLineNumber;Pt<we||Bt>Ve||(we<Bt&&(R[K++]=new Nt.a(we,Pe,Bt-1,this.model.getLineMaxColumn(Bt-1))),we=Pt+1,Pe=1)}return(we<Ve||we===Ve&&Pe<Je)&&(R[K++]=new Nt.a(we,Pe,Ve,Je)),R}getCompletelyVisibleViewRange(){let i=this.viewLayout.getLinesViewportData(),a=i.completelyVisibleStartLineNumber,_=i.completelyVisibleEndLineNumber;return new Nt.a(a,this.getLineMinColumn(a),_,this.getLineMaxColumn(_))}getCompletelyVisibleViewRangeAtScrollTop(i){let a=this.viewLayout.getLinesViewportDataAtScrollTop(i),_=a.completelyVisibleStartLineNumber,R=a.completelyVisibleEndLineNumber;return new Nt.a(_,this.getLineMinColumn(_),R,this.getLineMaxColumn(R))}saveState(){let i=this.viewLayout.saveState(),a=i.scrollTop,_=this.viewLayout.getLineNumberAtVerticalOffset(a),R=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(_,this.getLineMinColumn(_))),K=this.viewLayout.getVerticalOffsetForLineNumber(_)-a;return{scrollLeft:i.scrollLeft,firstPosition:R,firstPositionDeltaTop:K}}reduceRestoreState(i){if(i.firstPosition===void 0)return this._reduceRestoreStateCompatibility(i);let a=this.model.validatePosition(i.firstPosition),_=this.coordinatesConverter.convertModelPositionToViewPosition(a),R=this.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber)-i.firstPositionDeltaTop;return{scrollLeft:i.scrollLeft,scrollTop:R}}_reduceRestoreStateCompatibility(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(i,a,_){this._viewportStartLine=i;let R=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i,this.getLineMinColumn(i)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column),1);let K=this.viewLayout.getVerticalOffsetForLineNumber(i),we=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=we-K}getActiveIndentGuide(i,a,_){return this._lines.getActiveIndentGuide(i,a,_)}getLinesIndentGuides(i,a){return this._lines.getViewLinesIndentGuides(i,a)}getLineContent(i){return this._lines.getViewLineContent(i)}getLineLength(i){return this._lines.getViewLineLength(i)}getLineMinColumn(i){return this._lines.getViewLineMinColumn(i)}getLineMaxColumn(i){return this._lines.getViewLineMaxColumn(i)}getLineFirstNonWhitespaceColumn(i){let a=_t.w(this.getLineContent(i));return a===-1?0:a+1}getLineLastNonWhitespaceColumn(i){let a=_t.J(this.getLineContent(i));return a===-1?0:a+2}getDecorationsInViewport(i){return this._decorations.getDecorationsViewportData(i).decorations}getViewLineRenderingData(i,a){let _=this.model.mightContainRTL(),R=this.model.mightContainNonBasicASCII(),K=this.getTabSize(),we=this._lines.getViewLineData(a),Pe=this._decorations.getDecorationsViewportData(i).inlineDecorations[a-i.startLineNumber];return new Ge.d(we.minColumn,we.maxColumn,we.content,we.continuesWithWrappedLine,_,R,we.tokens,Pe,K,we.startVisibleColumn)}getViewLineData(i){return this._lines.getViewLineData(i)}getMinimapLinesRenderingData(i,a,_){let R=this._lines.getViewLinesData(i,a,_);return new Ge.b(this.getTabSize(),R)}getAllOverviewRulerDecorations(i){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object(fe.l)(this._configuration.options),i)}invalidateOverviewRulerColorCache(){let i=this.model.getOverviewRulerDecorations();for(let a of i){let _=a.options.overviewRuler;_&&_.invalidateCachedColor()}}invalidateMinimapColorCache(){let i=this.model.getAllDecorations();for(let a of i){let _=a.options.minimap;_&&_.invalidateCachedColor()}}getValueInRange(i,a){let _=this.coordinatesConverter.convertViewRangeToModelRange(i);return this.model.getValueInRange(_,a)}getModelLineMaxColumn(i){return this.model.getLineMaxColumn(i)}validateModelPosition(i){return this.model.validatePosition(i)}validateModelRange(i){return this.model.validateRange(i)}deduceModelPositionRelativeToViewPosition(i,a,_){let R=this.coordinatesConverter.convertViewPositionToModelPosition(i);this.model.getEOL().length===2&&(a<0?a-=_:a+=_);let K=this.model.getOffsetAt(R)+a;return this.model.getPositionAt(K)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(i,a,_){let R=_?`\r -`:this.model.getEOL();(i=i.slice(0)).sort(Nt.a.compareRangesUsingStarts);let K=!1,we=!1;for(let Ve of i)Ve.isEmpty()?K=!0:we=!0;if(!we){if(!a)return"";let Ve=i.map(at=>at.startLineNumber),Je="";for(let at=0;at<Ve.length;at++)at>0&&Ve[at-1]===Ve[at]||(Je+=this.model.getLineContent(Ve[at])+R);return Je}if(K&&a){let Ve=[],Je=0;for(let at of i){let bt=at.startLineNumber;at.isEmpty()?bt!==Je&&Ve.push(this.model.getLineContent(bt)):Ve.push(this.model.getValueInRange(at,_?2:0)),Je=bt}return Ve.length===1?Ve[0]:Ve}let Pe=[];for(let Ve of i)Ve.isEmpty()||Pe.push(this.model.getValueInRange(Ve,_?2:0));return Pe.length===1?Pe[0]:Pe}getRichTextToCopy(i,a){let _=this.model.getLanguageIdentifier();if(_.id===1||i.length!==1)return null;let R=i[0];if(R.isEmpty()){if(!a)return null;let Ve=R.startLineNumber;R=new Nt.a(Ve,this.model.getLineMinColumn(Ve),Ve,this.model.getLineMaxColumn(Ve))}let K=this._configuration.options.get(36),we=this._getColorMap(),Pe=K.fontFamily===fe.c.fontFamily?K.fontFamily:`'${K.fontFamily}', ${fe.c.fontFamily}`;return{mode:_.language,html:`<div style="color: ${we[1]};background-color: ${we[2]};font-family: ${Pe};font-weight: ${K.fontWeight};font-size: ${K.fontSize}px;line-height: ${K.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(R,we)+"</div>"}}_getHTMLToCopy(i,a){let _=i.startLineNumber,R=i.startColumn,K=i.endLineNumber,we=i.endColumn,Pe=this.getTabSize(),Ve="";for(let Je=_;Je<=K;Je++){let at=this.model.getLineTokens(Je),bt=at.getLineContent(),Bt=Je===_?R-1:0,Pt=Je===K?we-1:bt.length;Ve+=bt===""?"<br>":Object(br.a)(bt,at.inflate(),a,Bt,Pt,Pe,P.i)}return Ve}_getColorMap(){let i=X.C.getColorMap(),a=["#000000"];if(i)for(let _=1,R=i.length;_<R;_++)a[_]=Ee.a.Format.CSS.formatHex(i[_]);return a}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(i,a,_){this._withViewEventsCollector(R=>this._cursor.setStates(R,i,a,_))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}setCursorColumnSelectData(i){this._cursor.setCursorColumnSelectData(i)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(i){this._cursor.setPrevEditOperationType(i)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(i,a){this._withViewEventsCollector(_=>this._cursor.setSelections(_,i,a))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(i){this._withViewEventsCollector(a=>this._cursor.restoreState(a,i))}_executeCursorEdit(i){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Ko):this._withViewEventsCollector(i)}executeEdits(i,a,_){this._executeCursorEdit(R=>this._cursor.executeEdits(R,i,a,_))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(i=>this._cursor.startComposition(i))}endComposition(i){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(a=>this._cursor.endComposition(a,i))}type(i,a){this._executeCursorEdit(_=>this._cursor.type(_,i,a))}replacePreviousChar(i,a,_){this._executeCursorEdit(R=>this._cursor.replacePreviousChar(R,i,a,_))}paste(i,a,_,R){this._executeCursorEdit(K=>this._cursor.paste(K,i,a,_,R))}cut(i){this._executeCursorEdit(a=>this._cursor.cut(a,i))}executeCommand(i,a){this._executeCursorEdit(_=>this._cursor.executeCommand(_,i,a))}executeCommands(i,a){this._executeCursorEdit(_=>this._cursor.executeCommands(_,i,a))}revealPrimaryCursor(i,a){this._withViewEventsCollector(_=>this._cursor.revealPrimary(_,i,a,0))}revealTopMostCursor(i){let a=this._cursor.getTopMostViewPosition(),_=new Nt.a(a.lineNumber,a.column,a.lineNumber,a.column);this._withViewEventsCollector(R=>R.emitViewEvent(new po(i,_,null,0,!0,0)))}revealBottomMostCursor(i){let a=this._cursor.getBottomMostViewPosition(),_=new Nt.a(a.lineNumber,a.column,a.lineNumber,a.column);this._withViewEventsCollector(R=>R.emitViewEvent(new po(i,_,null,0,!0,0)))}revealRange(i,a,_,R,K){this._withViewEventsCollector(we=>we.emitViewEvent(new po(i,_,null,R,a,K)))}getVerticalOffsetForLineNumber(i){return this.viewLayout.getVerticalOffsetForLineNumber(i)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(i,a){this.viewLayout.setScrollPosition({scrollTop:i},a)}setScrollPosition(i,a){this.viewLayout.setScrollPosition(i,a)}deltaScrollNow(i,a){this.viewLayout.deltaScrollNow(i,a)}changeWhitespace(i){this.viewLayout.changeWhitespace(i)&&(this._eventDispatcher.emitSingleViewEvent(new wo),this._eventDispatcher.emitOutgoingEvent(new Lr))}setMaxLineWidth(i){this.viewLayout.setMaxLineWidth(i)}_withViewEventsCollector(i){try{i(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}}var qr=o(27),Ss=o(10),hs=o(18),us=o(149),Ca=o(49),xa=o(80),ks=o(14),Ir=o(76);class $r extends Ir.a{constructor(i,a){super(0);for(let _=0;_<i.length;_++)this.set(i.charCodeAt(_),1);for(let _=0;_<a.length;_++)this.set(a.charCodeAt(_),2)}get(i){return i>=0&&i<256?this._asciiMap[i]:i>=12352&&i<=12543||i>=13312&&i<=19903||i>=19968&&i<=40959?3:this._map.get(i)||this._defaultValue}}let Vs=[],Es=[];class ps{constructor(i,a){this.classifier=new $r(i,a)}static create(i){return new ps(i.get(108),i.get(107))}createLineBreaksComputer(i,a,_,R){a|=0,_=+_;let K=[],we=[];return{addRequest:(Pe,Ve)=>{K.push(Pe),we.push(Ve)},finalize:()=>{let Pe=i.typicalFullwidthCharacterWidth/i.typicalHalfwidthCharacterWidth,Ve=[];for(let Je=0,at=K.length;Je<at;Je++){let bt=we[Je];Ve[Je]=bt?Us(this.classifier,bt,K[Je],a,_,Pe,R):Kr(this.classifier,K[Je],a,_,Pe,R)}return Vs.length=0,Es.length=0,Ve}}}}function Us(Zt,i,a,_,R,K,we){if(R===-1)return null;let Pe=a.length;if(Pe<=1)return null;let Ve=i.breakOffsets,Je=i.breakOffsetsVisibleColumn,at=gs(a,_,R,K,we),bt=R-at,Bt=Vs,Pt=Es,ni=0,Ci=0,Vi=0,Mi=R,zi=Ve.length,Yi=0;if(Yi>=0){let Gi=Math.abs(Je[Yi]-Mi);for(;Yi+1<zi;){let wn=Math.abs(Je[Yi+1]-Mi);if(wn>=Gi)break;Gi=wn,Yi++}}for(;Yi<zi;){let Gi=Yi<0?0:Ve[Yi],wn=Yi<0?0:Je[Yi];Ci>Gi&&(Gi=Ci,wn=Vi);let nn=0,Wn=0,An=0,qn=0;if(wn<=Mi){let Un=wn,Lo=Gi===0?0:a.charCodeAt(Gi-1),Ao=Gi===0?0:Zt.get(Lo),Bo=!0;for(let jo=Gi;jo<Pe;jo++){let $o=jo,Po=a.charCodeAt(jo),Rr,Fo;if(_t.F(Po)?(jo++,Rr=0,Fo=2):(Rr=Zt.get(Po),Fo=os(Po,Un,_,K)),$o>Ci&&ms(Lo,Ao,Po,Rr)&&(nn=$o,Wn=Un),Un+=Fo,Un>Mi){$o>Ci?(An=$o,qn=Un-Fo):(An=jo+1,qn=Un),Un-Wn>bt&&(nn=0),Bo=!1;break}Lo=Po,Ao=Rr}if(Bo){ni>0&&(Bt[ni]=Ve[Ve.length-1],Pt[ni]=Je[Ve.length-1],ni++);break}}if(nn===0){let Un=wn,Lo=a.charCodeAt(Gi),Ao=Zt.get(Lo),Bo=!1;for(let jo=Gi-1;jo>=Ci;jo--){let $o=jo+1,Po=a.charCodeAt(jo);if(Po===9){Bo=!0;break}let Rr,Fo;if(_t.G(Po)?(jo--,Rr=0,Fo=2):(Rr=Zt.get(Po),Fo=_t.E(Po)?K:1),Un<=Mi){if(An===0&&(An=$o,qn=Un),Un<=Mi-bt)break;if(ms(Po,Rr,Lo,Ao)){nn=$o,Wn=Un;break}}Un-=Fo,Lo=Po,Ao=Rr}if(nn!==0){let jo=bt-(qn-Wn);if(jo<=_){let $o=a.charCodeAt(An),Po;Po=_t.F($o)?2:os($o,qn,_,K),jo-Po<0&&(nn=0)}}if(Bo){Yi--;continue}}for(nn===0&&(nn=An,Wn=qn),Ci=nn,Bt[ni]=nn,Vi=Wn,Pt[ni]=Wn,ni++,Mi=Wn+bt;Yi<0||Yi<zi&&Je[Yi]<Wn;)Yi++;let ro=Math.abs(Je[Yi]-Mi);for(;Yi+1<zi;){let Un=Math.abs(Je[Yi+1]-Mi);if(Un>=ro)break;ro=Un,Yi++}}return ni===0?null:(Bt.length=ni,Pt.length=ni,Vs=i.breakOffsets,Es=i.breakOffsetsVisibleColumn,i.breakOffsets=Bt,i.breakOffsetsVisibleColumn=Pt,i.wrappedTextIndentLength=at,i)}function Kr(Zt,i,a,_,R,K){if(_===-1)return null;let we=i.length;if(we<=1)return null;let Pe=gs(i,a,_,R,K),Ve=_-Pe,Je=[],at=[],bt=0,Bt=0,Pt=0,ni=_,Ci=i.charCodeAt(0),Vi=Zt.get(Ci),Mi=os(Ci,0,a,R),zi=1;_t.F(Ci)&&(Mi+=1,Ci=i.charCodeAt(1),Vi=Zt.get(Ci),zi++);for(let Yi=zi;Yi<we;Yi++){let Gi=Yi,wn=i.charCodeAt(Yi),nn,Wn;_t.F(wn)?(Yi++,nn=0,Wn=2):(nn=Zt.get(wn),Wn=os(wn,Mi,a,R)),ms(Ci,Vi,wn,nn)&&(Bt=Gi,Pt=Mi),Mi+=Wn,Mi>ni&&((Bt===0||Mi-Pt>Ve)&&(Bt=Gi,Pt=Mi-Wn),Je[bt]=Bt,at[bt]=Pt,bt++,ni=Pt+Ve,Bt=0),Ci=wn,Vi=nn}return bt===0?null:(Je[bt]=we,at[bt]=Mi,new nr(Je,at,Pe))}function os(Zt,i,a,_){return Zt===9?a-i%a:_t.E(Zt)?_:1}function Hs(Zt,i){return i-Zt%i}function ms(Zt,i,a,_){return a!==32&&(i===2||i===3&&_!==2||_===1||_===3&&i!==1)}function gs(Zt,i,a,_,R){let K=0;if(R!==0){let we=_t.w(Zt);if(we!==-1){for(let Ve=0;Ve<we;Ve++)K+=Zt.charCodeAt(Ve)===9?Hs(K,i):1;let Pe=R===3?2:R===2?1:0;for(let Ve=0;Ve<Pe;Ve++)K+=Hs(K,i);K+_>a&&(K=0)}}return K}class Or{static create(){return new Or}constructor(){}createLineBreaksComputer(i,a,_,R){a|=0,_=+_;let K=[];return{addRequest:(we,Pe)=>{K.push(we)},finalize:()=>function(we,Pe,Ve,Je,at){if(Je===-1){let nn=[];for(let Wn=0,An=we.length;Wn<An;Wn++)nn[Wn]=null;return nn}let bt=Math.round(Je*Pe.typicalHalfwidthCharacterWidth);at!==2&&at!==3||(at=1);let Bt=document.createElement("div");W.a.applyFontInfoSlow(Bt,Pe);let Pt=Object(un.a)(1e4),ni=[],Ci=[],Vi=[],Mi=[],zi=[];for(let nn=0;nn<we.length;nn++){let Wn=we[nn],An=0,qn=0,ro=bt;if(at!==0)if(An=_t.w(Wn),An===-1)An=0;else{for(let Bo=0;Bo<An;Bo++)qn+=Wn.charCodeAt(Bo)===9?Ve-qn%Ve:1;let Ao=Math.ceil(Pe.spaceWidth*qn);Ao+Pe.typicalFullwidthCharacterWidth>bt?(An=0,qn=0):ro=bt-Ao}let Un=Wn.substr(An),Lo=Go(Un,qn,Ve,ro,Pt);ni[nn]=An,Ci[nn]=qn,Vi[nn]=Un,Mi[nn]=Lo[0],zi[nn]=Lo[1]}Bt.innerHTML=Pt.build(),Bt.style.position="absolute",Bt.style.top="10000",Bt.style.wordWrap="break-word",document.body.appendChild(Bt);let Yi=document.createRange(),Gi=Array.prototype.slice.call(Bt.children,0),wn=[];for(let nn=0;nn<we.length;nn++){let Wn=Gi[nn],An=rr(Yi,Wn,Vi[nn],Mi[nn]);if(An===null){wn[nn]=null;continue}let qn=ni[nn],ro=Ci[nn],Un=zi[nn],Lo=[];for(let Ao=0,Bo=An.length;Ao<Bo;Ao++)Lo[Ao]=Un[An[Ao]];if(qn!==0)for(let Ao=0,Bo=An.length;Ao<Bo;Ao++)An[Ao]+=qn;wn[nn]=new nr(An,Lo,ro)}return document.body.removeChild(Bt),wn}(K,i,a,_,R)}}}function Go(Zt,i,a,_,R){R.appendASCIIString('<div style="width:'),R.appendASCIIString(String(_)),R.appendASCIIString('px;">');let K=Zt.length,we=i,Pe=0,Ve=[],Je=[],at=0<K?Zt.charCodeAt(0):0;R.appendASCIIString("<span>");for(let bt=0;bt<K;bt++){bt!==0&&bt%16384==0&&R.appendASCIIString("</span><span>"),Ve[bt]=Pe,Je[bt]=we;let Bt=at;at=bt+1<K?Zt.charCodeAt(bt+1):0;let Pt=1,ni=1;switch(Bt){case 9:Pt=a-we%a,ni=Pt;for(let Ci=1;Ci<=Pt;Ci++)Ci<Pt?R.write1(160):R.appendASCII(32);break;case 32:at===32?R.write1(160):R.appendASCII(32);break;case 60:R.appendASCIIString("<");break;case 62:R.appendASCIIString(">");break;case 38:R.appendASCIIString("&");break;case 0:R.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:R.write1(65533);break;default:_t.E(Bt)&&ni++,R.write1(Bt)}Pe+=Pt,we+=ni}return R.appendASCIIString("</span>"),Ve[Zt.length]=Pe,Je[Zt.length]=we,R.appendASCIIString("</div>"),[Ve,Je]}function rr(Zt,i,a,_){if(a.length<=1)return null;let R=Array.prototype.slice.call(i.children,0),K=[];try{(function we(Pe,Ve,Je,at,bt,Bt,Pt,ni){if(at===Bt||(bt=bt||Sa(Pe,Ve,Je[at],Je[at+1]),Pt=Pt||Sa(Pe,Ve,Je[Bt],Je[Bt+1]),Math.abs(bt[0].top-Pt[0].top)<=.1))return;if(at+1===Bt)return void ni.push(Bt);let Ci=at+(Bt-at)/2|0,Vi=Sa(Pe,Ve,Je[Ci],Je[Ci+1]);we(Pe,Ve,Je,at,bt,Ci,Vi,ni),we(Pe,Ve,Je,Ci,Vi,Bt,Pt,ni)})(Zt,R,_,0,null,a.length-1,null,K)}catch(we){return console.log(we),null}return K.length===0?null:(K.push(a.length),K)}function Sa(Zt,i,a,_){return Zt.setStart(i[a/16384|0].firstChild,a%16384),Zt.setEnd(i[_/16384|0].firstChild,_%16384),Zt.getClientRects()}var qs=o(129),Dr=function(Zt,i,a,_){var R,K=arguments.length,we=K<3?i:_===null?_=Object.getOwnPropertyDescriptor(i,a):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(Zt,i,a,_);else for(var Pe=Zt.length-1;Pe>=0;Pe--)(R=Zt[Pe])&&(we=(K<3?R(we):K>3?R(i,a,we):R(i,a))||we);return K>3&&we&&Object.defineProperty(i,a,we),we},Ar=function(Zt,i){return function(a,_){i(a,_,Zt)}};let $s=0;class ka{constructor(i,a,_,R,K){this.model=i,this.viewModel=a,this.view=_,this.hasRealView=R,this.listenersToRemove=K}dispose(){Object(E.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let hr=class Ud extends E.a{constructor(i,a,_,R,K,we,Pe,Ve,Je,at){let bt;super(),this._onDidDispose=this._register(new H.a),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new H.a),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new H.a),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new H.a),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new H.a),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new H.a),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new H.a),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new H.a),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new H.a),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new H.a),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new H.a),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new H.a),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Ks),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Ks),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new H.a),this.onWillType=this._onWillType.event,this._onDidType=this._register(new H.a),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new H.a),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new H.a),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new H.a),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new H.a),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new H.a),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new H.a),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new H.a),this.onMouseDrop=this._onMouseDrop.event,this._onContextMenu=this._register(new H.a),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new H.a),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new H.a),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new H.a),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new H.a),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new H.a),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new H.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new H.a),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new H.a),this.onDidChangeViewZones=this._onDidChangeViewZones.event,a=a||{},this._domElement=i,this._overflowWidgetsDomNode=a.overflowWidgetsDomNode,this._id=++$s,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=_.isSimpleWidget||!1,this._telemetryData=_.telemetryData,this._configuration=this._register(this._createConfiguration(a,at)),this._register(this._configuration.onDidChange(Bt=>{this._onDidChangeConfiguration.fire(Bt);let Pt=this._configuration.options;if(Bt.hasChanged(117)){let ni=Pt.get(117);this._onDidLayoutChange.fire(ni)}})),this._contextKeyService=this._register(Pe.createScoped(this._domElement)),this._notificationService=Je,this._codeEditorService=K,this._commandService=we,this._themeService=Ve,this._register(new Ts(this,this._contextKeyService)),this._register(new Qo(this,this._contextKeyService)),this._instantiationService=R.createChild(new us.a([Ss.b,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new sr(i),this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}),this._contentWidgets={},this._overlayWidgets={},bt=Array.isArray(_.contributions)?_.contributions:Q.d.getEditorContributions();for(let Bt of bt)try{let Pt=this._instantiationService.createInstance(Bt.ctor,this);this._contributions[Bt.id]=Pt}catch(Pt){Object(D.e)(Pt)}Q.d.getEditorActions().forEach(Bt=>{let Pt=new fr.a(Bt.id,Bt.label,Bt.alias,Object(ks.n)(Bt.precondition),()=>this._instantiationService.invokeFunction(ni=>Promise.resolve(Bt.runEditorCommand(ni,this,null))),this._contextKeyService);this._actions[Pt.id]=Pt}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(i,a){return new W.a(this.isSimpleWidget,i,this._domElement,a)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return zn.a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();let i=Object.keys(this._contributions);for(let a=0,_=i.length;a<_;a++){let R=i[a];this._contributions[R].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(i){return this._instantiationService.invokeFunction(i)}updateOptions(i){this._configuration.updateOptions(i)}getOptions(){return this._configuration.options}getOption(i){return this._configuration.options.get(i)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(i){return this._modelData?qs.a.getWordAtPosition(this._modelData.model,this._configuration.options.get(105),i):null}getValue(i=null){if(!this._modelData)return"";let a=!(!i||!i.preserveBOM),_=0;return i&&i.lineEnding&&i.lineEnding===` +`)===-1&&h.l(V)?{text:"",replaceCharCnt:0}:{text:V,replaceCharCnt:g.length-ie}:{text:V,replaceCharCnt:P-S}}}H.EMPTY=new H("",0,0,null,null);class E{static _getPageOfLine(W,Q){return Math.floor((W-1)/Q)}static _getRangeForPage(W,Q){let y=W*Q,C=y+1,S=y+Q;return new O.a(C,1,S+1,1)}static fromEditorSelection(W,Q,y,C,S){let P=E._getPageOfLine(y.startLineNumber,C),V=E._getRangeForPage(P,C),k=E._getPageOfLine(y.endLineNumber,C),l=E._getRangeForPage(k,C),T=V.intersectRanges(new O.a(1,1,y.startLineNumber,y.startColumn)),N=Q.getValueInRange(T,1),b=Q.getLineCount(),g=Q.getLineMaxColumn(b),j=l.intersectRanges(new O.a(y.endLineNumber,y.endColumn,b,g)),ie,U=Q.getValueInRange(j,1);if(P===k||P+1===k)ie=Q.getValueInRange(y,1);else{let q=V.intersectRanges(y),B=l.intersectRanges(y);ie=Q.getValueInRange(q,1)+String.fromCharCode(8230)+Q.getValueInRange(B,1)}if(S){let q=500;N.length>q&&(N=N.substring(N.length-q,N.length)),U.length>q&&(U=U.substring(0,q)),ie.length>2*q&&(ie=ie.substring(0,q)+String.fromCharCode(8230)+ie.substring(ie.length-q,ie.length))}return new H(N+ie+U,N.length,N.length+ie.length,new f.a(y.startLineNumber,y.startColumn),new f.a(y.endLineNumber,y.endColumn))}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return k}),r.d(w,"c",function(){return l});var h=r(0),f=r(6),O=r(56),H=r(14),E=r(188);let ge={Configuration:"base.contributions.configuration"},W={properties:{},patternProperties:{}},Q={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},C={properties:{},patternProperties:{}},S={properties:{},patternProperties:{}},P={properties:{},patternProperties:{}},V=O.a.as(E.a.JSONContribution),k=new RegExp("\\[.*\\]$");function l(b){return b.substring(1,b.length-1)}let T=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new f.a,this._onDidUpdateConfiguration=new f.a,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:h.a("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},V.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema)}registerConfiguration(b,g=!0){this.registerConfigurations([b],g)}registerConfigurations(b,g=!0){let j=[];b.forEach(ie=>{j.push(...this.validateAndRegisterProperties(ie,g)),this.configurationContributors.push(ie),this.registerJSONConfiguration(ie)}),V.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(j)}registerOverrideIdentifiers(b){for(let g of b)this.overrideIdentifiers.add(g);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(b,g=!0,j=3){j=H.l(b.scope)?j:b.scope;let ie=[],U=b.properties;if(U)for(let B in U){if(g&&N(B)){delete U[B];continue}let se=U[B];this.updatePropertyDefaultValue(B,se),k.test(B)?se.scope=void 0:se.scope=H.l(se.scope)?j:se.scope,!U[B].hasOwnProperty("included")||U[B].included?(this.configurationProperties[B]=U[B],!U[B].deprecationMessage&&U[B].markdownDeprecationMessage&&(U[B].deprecationMessage=U[B].markdownDeprecationMessage),ie.push(B)):(this.excludedConfigurationProperties[B]=U[B],delete U[B])}let q=b.allOf;if(q)for(let B of q)ie.push(...this.validateAndRegisterProperties(B,g,j));return ie}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(b){let g=j=>{let ie=j.properties;if(ie)for(let q in ie)this.updateSchema(q,ie[q]);let U=j.allOf;U&&U.forEach(g)};g(b)}updateSchema(b,g){switch(W.properties[b]=g,g.scope){case 1:Q.properties[b]=g;break;case 2:y.properties[b]=g;break;case 6:C.properties[b]=g;break;case 3:S.properties[b]=g;break;case 4:P.properties[b]=g;break;case 5:P.properties[b]=g,this.resourceLanguageSettingsSchema.properties[b]=g}}updateOverridePropertyPatternKey(){for(let b of this.overrideIdentifiers.values()){let g=`[${b}]`,j={type:"object",description:h.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:h.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:"vscode://schemas/settings/resourceLanguage"};this.updatePropertyDefaultValue(g,j),W.properties[g]=j,Q.properties[g]=j,y.properties[g]=j,C.properties[g]=j,S.properties[g]=j,P.properties[g]=j}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(b,g){let j=this.defaultValues[b];H.k(j)&&(j=g.default),H.k(j)&&(j=function(ie){switch(Array.isArray(ie)?ie[0]:ie){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(g.type)),g.default=j}};function N(b){return k.test(b)?h.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",b):T.getConfigurationProperties()[b]!==void 0?h.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",b):null}O.a.add(ge.Configuration,T)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"b",function(){return W});var h=r(8),f=r(22),O=r(117),H=r(9),E=r(3);class ge{static _createWord(C,S,P,V,k){return{start:V,end:k,wordType:S,nextCharClass:P}}static _findPreviousWordOnLine(C,S,P){let V=S.getLineContent(P.lineNumber);return this._doFindPreviousWordOnLine(V,C,P)}static _doFindPreviousWordOnLine(C,S,P){let V=0;for(let k=P.column-2;k>=0;k--){let l=C.charCodeAt(k),T=S.get(l);if(T===0){if(V===2)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1));V=1}else if(T===2){if(V===1)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1));V=2}else if(T===1&&V!==0)return this._createWord(C,V,T,k+1,this._findEndOfWord(C,S,V,k+1))}return V!==0?this._createWord(C,V,1,0,this._findEndOfWord(C,S,V,0)):null}static _findEndOfWord(C,S,P,V){let k=C.length;for(let l=V;l<k;l++){let T=C.charCodeAt(l),N=S.get(T);if(N===1||P===1&&N===2||P===2&&N===0)return l}return k}static _findNextWordOnLine(C,S,P){let V=S.getLineContent(P.lineNumber);return this._doFindNextWordOnLine(V,C,P)}static _doFindNextWordOnLine(C,S,P){let V=0,k=C.length;for(let l=P.column-1;l<k;l++){let T=C.charCodeAt(l),N=S.get(T);if(N===0){if(V===2)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l);V=1}else if(N===2){if(V===1)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l);V=2}else if(N===1&&V!==0)return this._createWord(C,V,N,this._findStartOfWord(C,S,V,l-1),l)}return V!==0?this._createWord(C,V,1,this._findStartOfWord(C,S,V,k-1),k):null}static _findStartOfWord(C,S,P,V){for(let k=V;k>=0;k--){let l=C.charCodeAt(k),T=S.get(l);if(T===1||P===1&&T===2||P===2&&T===0)return k+1}return 0}static moveWordLeft(C,S,P,V){let k=P.lineNumber,l=P.column;l===1&&k>1&&(k-=1,l=S.getLineMaxColumn(k));let T=ge._findPreviousWordOnLine(C,S,new H.a(k,l));if(V===0)return new H.a(k,T?T.start+1:1);if(V===1)return T&&T.wordType===2&&T.end-T.start==1&&T.nextCharClass===0&&(T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1))),new H.a(k,T?T.start+1:1);if(V===3){for(;T&&T.wordType===2;)T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1));return new H.a(k,T?T.start+1:1)}return T&&l<=T.end+1&&(T=ge._findPreviousWordOnLine(C,S,new H.a(k,T.start+1))),new H.a(k,T?T.end+1:1)}static _moveWordPartLeft(C,S){let P=S.lineNumber,V=C.getLineMaxColumn(P);if(S.column===1)return P>1?new H.a(P-1,C.getLineMaxColumn(P-1)):S;let k=C.getLineContent(P);for(let l=S.column-1;l>1;l--){let T=k.charCodeAt(l-2),N=k.charCodeAt(l-1);if(T===95&&N!==95)return new H.a(P,l);if(h.H(T)&&h.I(N))return new H.a(P,l);if(h.I(T)&&h.I(N)&&l+1<V){let b=k.charCodeAt(l);if(h.H(b))return new H.a(P,l)}}return new H.a(P,1)}static moveWordRight(C,S,P,V){let k=P.lineNumber,l=P.column,T=!1;l===S.getLineMaxColumn(k)&&k<S.getLineCount()&&(T=!0,k+=1,l=1);let N=ge._findNextWordOnLine(C,S,new H.a(k,l));if(V===2)N&&N.wordType===2&&N.end-N.start==1&&N.nextCharClass===0&&(N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1))),l=N?N.end+1:S.getLineMaxColumn(k);else if(V===3){for(T&&(l=0);N&&(N.wordType===2||N.start+1<=l);)N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1));l=N?N.start+1:S.getLineMaxColumn(k)}else N&&!T&&l>=N.start+1&&(N=ge._findNextWordOnLine(C,S,new H.a(k,N.end+1))),l=N?N.start+1:S.getLineMaxColumn(k);return new H.a(k,l)}static _moveWordPartRight(C,S){let P=S.lineNumber,V=C.getLineMaxColumn(P);if(S.column===V)return P<C.getLineCount()?new H.a(P+1,1):S;let k=C.getLineContent(P);for(let l=S.column+1;l<V;l++){let T=k.charCodeAt(l-2),N=k.charCodeAt(l-1);if(T!==95&&N===95)return new H.a(P,l);if(h.H(T)&&h.I(N))return new H.a(P,l);if(h.I(T)&&h.I(N)&&l+1<V){let b=k.charCodeAt(l);if(h.H(b))return new H.a(P,l)}}return new H.a(P,V)}static _deleteWordLeftWhitespace(C,S){let P=C.getLineContent(S.lineNumber),V=S.column-2,k=h.J(P,V);return k+1<V?new E.a(S.lineNumber,k+2,S.lineNumber,S.column):null}static deleteWordLeft(C,S,P,V,k){if(!P.isEmpty())return P;let l=new H.a(P.positionLineNumber,P.positionColumn),T=l.lineNumber,N=l.column;if(T===1&&N===1)return null;if(V){let g=this._deleteWordLeftWhitespace(S,l);if(g)return g}let b=ge._findPreviousWordOnLine(C,S,l);return k===0?b?N=b.start+1:N>1?N=1:(T--,N=S.getLineMaxColumn(T)):(b&&N<=b.end+1&&(b=ge._findPreviousWordOnLine(C,S,new H.a(T,b.start+1))),b?N=b.end+1:N>1?N=1:(T--,N=S.getLineMaxColumn(T))),new E.a(T,N,l.lineNumber,l.column)}static _deleteWordPartLeft(C,S){if(!S.isEmpty())return S;let P=S.getPosition(),V=ge._moveWordPartLeft(C,P);return new E.a(P.lineNumber,P.column,V.lineNumber,V.column)}static _findFirstNonWhitespaceChar(C,S){let P=C.length;for(let V=S;V<P;V++){let k=C.charAt(V);if(k!==" "&&k!==" ")return V}return P}static _deleteWordRightWhitespace(C,S){let P=C.getLineContent(S.lineNumber),V=S.column-1,k=this._findFirstNonWhitespaceChar(P,V);return V+1<k?new E.a(S.lineNumber,S.column,S.lineNumber,k+1):null}static deleteWordRight(C,S,P,V,k){if(!P.isEmpty())return P;let l=new H.a(P.positionLineNumber,P.positionColumn),T=l.lineNumber,N=l.column,b=S.getLineCount(),g=S.getLineMaxColumn(T);if(T===b&&N===g)return null;if(V){let ie=this._deleteWordRightWhitespace(S,l);if(ie)return ie}let j=ge._findNextWordOnLine(C,S,l);return k===2?j?N=j.end+1:N<g||T===b?N=g:(T++,j=ge._findNextWordOnLine(C,S,new H.a(T,1)),N=j?j.start+1:S.getLineMaxColumn(T)):(j&&N>=j.start+1&&(j=ge._findNextWordOnLine(C,S,new H.a(T,j.end+1))),j?N=j.start+1:N<g||T===b?N=g:(T++,j=ge._findNextWordOnLine(C,S,new H.a(T,1)),N=j?j.start+1:S.getLineMaxColumn(T))),new E.a(T,N,l.lineNumber,l.column)}static _deleteWordPartRight(C,S){if(!S.isEmpty())return S;let P=S.getPosition(),V=ge._moveWordPartRight(C,P);return new E.a(P.lineNumber,P.column,V.lineNumber,V.column)}static _createWordAtPosition(C,S,P){let V=new E.a(S,P.start+1,S,P.end+1);return{word:C.getValueInRange(V),startColumn:V.startColumn,endColumn:V.endColumn}}static getWordAtPosition(C,S,P){let V=Object(O.a)(S),k=ge._findPreviousWordOnLine(V,C,P);if(k&&k.wordType===1&&k.start<=P.column-1&&P.column-1<=k.end)return ge._createWordAtPosition(C,P.lineNumber,k);let l=ge._findNextWordOnLine(V,C,P);return l&&l.wordType===1&&l.start<=P.column-1&&P.column-1<=l.end?ge._createWordAtPosition(C,P.lineNumber,l):null}static word(C,S,P,V,k){let l=Object(O.a)(C.wordSeparators),T,N,b=ge._findPreviousWordOnLine(l,S,k),g=ge._findNextWordOnLine(l,S,k);if(!V){let U,q;return b&&b.wordType===1&&b.start<=k.column-1&&k.column-1<=b.end?(U=b.start+1,q=b.end+1):g&&g.wordType===1&&g.start<=k.column-1&&k.column-1<=g.end?(U=g.start+1,q=g.end+1):(U=b?b.end+1:1,q=g?g.start+1:S.getLineMaxColumn(k.lineNumber)),new f.f(new E.a(k.lineNumber,U,k.lineNumber,q),0,new H.a(k.lineNumber,q),0)}b&&b.wordType===1&&b.start<k.column-1&&k.column-1<b.end?(T=b.start+1,N=b.end+1):g&&g.wordType===1&&g.start<k.column-1&&k.column-1<g.end?(T=g.start+1,N=g.end+1):(T=k.column,N=k.column);let j,ie=k.lineNumber;if(P.selectionStart.containsPosition(k))j=P.selectionStart.endColumn;else if(k.isBeforeOrEqual(P.selectionStart.getStartPosition())){j=T;let U=new H.a(ie,j);P.selectionStart.containsPosition(U)&&(j=P.selectionStart.endColumn)}else{j=N;let U=new H.a(ie,j);P.selectionStart.containsPosition(U)&&(j=P.selectionStart.startColumn)}return P.move(!0,ie,j,0)}}class W extends ge{static deleteWordPartLeft(C,S,P,V){let k=Q([ge.deleteWordLeft(C,S,P,V,0),ge.deleteWordLeft(C,S,P,V,2),ge._deleteWordPartLeft(S,P)]);return k.sort(E.a.compareRangesUsingEnds),k[2]}static deleteWordPartRight(C,S,P,V){let k=Q([ge.deleteWordRight(C,S,P,V,0),ge.deleteWordRight(C,S,P,V,2),ge._deleteWordPartRight(S,P)]);return k.sort(E.a.compareRangesUsingStarts),k[0]}static moveWordPartLeft(C,S,P){let V=Q([ge.moveWordLeft(C,S,P,0),ge.moveWordLeft(C,S,P,2),ge._moveWordPartLeft(S,P)]);return V.sort(H.a.compare),V[2]}static moveWordPartRight(C,S,P){let V=Q([ge.moveWordRight(C,S,P,0),ge.moveWordRight(C,S,P,2),ge._moveWordPartRight(S,P)]);return V.sort(H.a.compare),V[0]}}function Q(y){return y.filter(C=>Boolean(C))}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Q});var h=r(8),f=r(22),O=r(3),H=r(21),E=r(39);let ge=Object.create(null);function W(y,C){ge[y]||(ge[y]=["",y]);let S=ge[y];for(let P=S.length;P<=C;P++)S[P]=S[P-1]+y;return S[C]}class Q{constructor(C,S){this._opts=S,this._selection=C,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(C,S,P,V,k){let l=f.a.visibleColumnFromColumn(C,S,P);if(k){let T=W(" ",V);return W(T,f.a.prevIndentTabStop(l,V)/V)}return W(" ",f.a.prevRenderTabStop(l,P)/P)}static shiftIndent(C,S,P,V,k){let l=f.a.visibleColumnFromColumn(C,S,P);if(k){let T=W(" ",V);return W(T,f.a.nextIndentTabStop(l,V)/V)}return W(" ",f.a.nextRenderTabStop(l,P)/P)}_addEditOperation(C,S,P){this._useLastEditRangeForCursorEndPosition?C.addTrackedEditOperation(S,P):C.addEditOperation(S,P)}getEditOperations(C,S){let P=this._selection.startLineNumber,V=this._selection.endLineNumber;this._selection.endColumn===1&&P!==V&&(V-=1);let{tabSize:k,indentSize:l,insertSpaces:T}=this._opts,N=P===V;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(C.getLineContent(P))&&(this._useLastEditRangeForCursorEndPosition=!0);let b=0,g=0;for(let j=P;j<=V;j++,b=g){g=0;let ie,U=C.getLineContent(j),q=h.w(U);if((!this._opts.isUnshift||U.length!==0&&q!==0)&&(N||this._opts.isUnshift||U.length!==0)){if(q===-1&&(q=U.length),j>1&&f.a.visibleColumnFromColumn(U,q+1,k)%l!=0&&C.isCheapToTokenize(j-1)){let B=E.a.getEnterAction(this._opts.autoIndent,C,new O.a(j-1,C.getLineMaxColumn(j-1),j-1,C.getLineMaxColumn(j-1)));if(B){if(g=b,B.appendText)for(let se=0,ke=B.appendText.length;se<ke&&g<l&&B.appendText.charCodeAt(se)===32;se++)g++;B.removeText&&(g=Math.max(0,g-B.removeText));for(let se=0;se<g&&q!==0&&U.charCodeAt(q-1)===32;se++)q--}}this._opts.isUnshift&&q===0||(ie=this._opts.isUnshift?Q.unshiftIndent(U,q+1,k,l,T):Q.shiftIndent(U,q+1,k,l,T),this._addEditOperation(S,new O.a(j,1,j,q+1),ie),j!==P||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=q+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&C.getLineLength(P)===0&&(this._useLastEditRangeForCursorEndPosition=!0);let b=T?W(" ",l):" ";for(let g=P;g<=V;g++){let j=C.getLineContent(g),ie=h.w(j);if((!this._opts.isUnshift||j.length!==0&&ie!==0)&&(N||this._opts.isUnshift||j.length!==0)&&(ie===-1&&(ie=j.length),!this._opts.isUnshift||ie!==0))if(this._opts.isUnshift){ie=Math.min(ie,l);for(let U=0;U<ie;U++)if(j.charCodeAt(U)===9){ie=U+1;break}this._addEditOperation(S,new O.a(g,1,g,ie+1),"")}else this._addEditOperation(S,new O.a(g,1,g,1),b),g!==P||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=S.trackSelection(this._selection)}computeCursorState(C,S){if(this._useLastEditRangeForCursorEndPosition){let V=S.getInverseEditOperations()[0];return new H.a(V.range.endLineNumber,V.range.endColumn,V.range.endLineNumber,V.range.endColumn)}let P=S.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){let V=this._selection.startColumn;return P.startColumn<=V?P:P.getDirection()===0?new H.a(P.startLineNumber,V,P.endLineNumber,P.endColumn):new H.a(P.endLineNumber,P.endColumn,P.startLineNumber,V)}return P}}},,function(Ie,w,r){"use strict";r.d(w,"c",function(){return E}),r.d(w,"d",function(){return ge}),r.d(w,"a",function(){return W}),r.d(w,"b",function(){return Q});var h=r(8),f=r(11),O=r(72);let H;function E(){return H||(H=new TextDecoder(f.e()?"UTF-16LE":"UTF-16BE")),H}let ge=typeof TextDecoder!="undefined",W,Q;ge?(W=S=>new y(S),Q=function(S,P,V){let k=new Uint16Array(S.buffer,P,V);return E().decode(k)}):(W=S=>new C,Q=function(S,P,V){let k=[],l=0;for(let T=0;T<V;T++){let N=O.b(S,P);P+=2,k[l++]=String.fromCharCode(N)}return k.join("")});class y{constructor(P){this._capacity=0|P,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";let P=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return E().decode(P)}_flushBuffer(){let P=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[P]:this._completedStrings[this._completedStrings.length]=P}write1(P){let V=this._capacity-this._bufferLength;V<=1&&(V===0||h.F(P))&&this._flushBuffer(),this._buffer[this._bufferLength++]=P}appendASCII(P){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=P}appendASCIIString(P){let V=P.length;if(this._bufferLength+V>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=P);for(let k=0;k<V;k++)this._buffer[this._bufferLength++]=P.charCodeAt(k)}}class C{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(P){this._pieces[this._piecesLen++]=String.fromCharCode(P)}appendASCII(P){this._pieces[this._piecesLen++]=String.fromCharCode(P)}appendASCIIString(P){this._pieces[this._piecesLen++]=P}}},function(Ie,w,r){"use strict";function h(f){let O=this,H,E=!1;return function(){return E||(E=!0,H=f.apply(O,arguments)),H}}r.d(w,"a",function(){return h})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"b",function(){return E});var h,f=r(56),O=r(16),H=r(2);(function(ge){ge[ge.PRESERVE=0]="PRESERVE",ge[ge.LAST=1]="LAST"})(h||(h={}));let E={Quickaccess:"workbench.contributions.quickaccess"};f.a.add(E.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(ge){return ge.prefix.length===0?this.defaultProvider=ge:this.providers.push(ge),this.providers.sort((W,Q)=>Q.prefix.length-W.prefix.length),Object(H.h)(()=>{this.providers.splice(this.providers.indexOf(ge),1),this.defaultProvider===ge&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(O.d)([this.defaultProvider,...this.providers])}getQuickAccessProvider(ge){return ge&&this.providers.find(W=>ge.startsWith(W.prefix))||void 0||this.defaultProvider}})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(6);let f=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new h.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(O){O=Math.min(Math.max(-5,O),20),this._zoomLevel!==O&&(this._zoomLevel=O,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return xn}),r.d(w,"b",function(){return un}),r.d(w,"e",function(){return Mn}),r.d(w,"d",function(){return _e}),r.d(w,"c",function(){return jt});var h=r(1),f=(r(197),r(2)),O=r(16),H=r(113),E=r(6),ge=r(25);class W{constructor(X,ae){this.renderer=X,this.modelProvider=ae}get templateId(){return this.renderer.templateId}renderTemplate(X){return{data:this.renderer.renderTemplate(X),disposable:f.a.None}}renderElement(X,ae,Ge,lt){if(Ge.disposable&&Ge.disposable.dispose(),!Ge.data)return;let Ot=this.modelProvider();if(Ot.isResolved(X))return this.renderer.renderElement(Ot.get(X),X,Ge.data,lt);let Gt=new ge.b,ti=Ot.resolve(X,Gt.token);Ge.disposable={dispose:()=>Gt.cancel()},this.renderer.renderPlaceholder(X,Ge.data),ti.then(ye=>this.renderer.renderElement(ye,X,Ge.data,lt))}disposeTemplate(X){X.disposable&&(X.disposable.dispose(),X.disposable=void 0),X.data&&(this.renderer.disposeTemplate(X.data),X.data=void 0)}}class Q{constructor(X,ae){this.modelProvider=X,this.accessibilityProvider=ae}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(X){let ae=this.modelProvider();return ae.isResolved(X)?this.accessibilityProvider.getAriaLabel(ae.get(X)):null}}var y=r(0),C=r(54),S=r(128),P=r(10),V=r(18),k=r(50),l=r(56),T=r(93),N=r(19),b,g=r(37),j=(r(264),r(67));(function(ft){ft[ft.Unknown=0]="Unknown",ft[ft.Twistie=1]="Twistie",ft[ft.Element=2]="Element"})(b||(b={}));class ie extends Error{constructor(X,ae){super(`TreeError [${X}] ${ae}`)}}class U{constructor(X){this.fn=X,this._map=new WeakMap}map(X){let ae=this._map.get(X);return ae||(ae=this.fn(X),this._map.set(X,ae)),ae}}var q=r(125),B=r(162),se=r(44),ke=r(71);function xe(ft){return typeof ft=="object"&&"visibility"in ft&&"data"in ft}function Y(ft){switch(ft){case!0:return 1;case!1:return 0;default:return ft}}function Z(ft){return typeof ft.collapsible=="boolean"}class te{constructor(X,ae,Ge,lt={}){this.user=X,this.list=ae,this.rootRef=[],this.eventBufferer=new E.c,this._onDidChangeCollapseState=new E.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new E.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new E.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=lt.collapseByDefault!==void 0&<.collapseByDefault,this.filter=lt.filter,this.autoExpandSingleChildren=lt.autoExpandSingleChildren!==void 0&<.autoExpandSingleChildren,this.root={parent:void 0,element:Ge,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(X,ae,Ge=g.a.empty(),lt,Ot){if(X.length===0)throw new ie(this.user,"Invalid tree location");let{parentNode:Gt,listIndex:ti,revealed:ye,visible:le}=this.getParentNodeWithListIndex(X),ue=[],qe=g.a.map(Ge,fi=>this.createTreeNode(fi,Gt,Gt.visible?1:0,ye,ue,lt)),Ze=X[X.length-1],tt=0;for(let fi=Ze;fi>=0&&fi<Gt.children.length;fi--){let ui=Gt.children[fi];if(ui.visible){tt=ui.visibleChildIndex;break}}let ot=[],zt=0,Jt=0;for(let fi of qe)ot.push(fi),Jt+=fi.renderNodeCount,fi.visible&&(fi.visibleChildIndex=tt+zt++);let xi=Gt.children.splice(Ze,ae,...ot),Ei=0;for(let fi of xi)fi.visible&&Ei++;if(Ei!==0)for(let fi=Ze+ot.length;fi<Gt.children.length;fi++){let ui=Gt.children[fi];ui.visible&&(ui.visibleChildIndex-=Ei)}if(Gt.visibleChildrenCount+=zt-Ei,ye&&le){let fi=xi.reduce((ui,Te)=>ui+(Te.visible?Te.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(Gt,Jt-fi),this.list.splice(ti,fi,ue)}if(xi.length>0&&Ot){let fi=ui=>{Ot(ui),ui.children.forEach(fi)};xi.forEach(fi)}this._onDidSplice.fire({insertedNodes:ot,deletedNodes:xi});let ai=Gt;for(;ai;){if(ai.visibility===2){this.refilter();break}ai=ai.parent}}rerender(X){if(X.length===0)throw new ie(this.user,"Invalid tree location");let{node:ae,listIndex:Ge,revealed:lt}=this.getTreeNodeWithListIndex(X);ae.visible&<&&this.list.splice(Ge,1,[ae])}has(X){return this.hasTreeNode(X)}getListIndex(X){let{listIndex:ae,visible:Ge,revealed:lt}=this.getTreeNodeWithListIndex(X);return Ge&<?ae:-1}getListRenderCount(X){return this.getTreeNode(X).renderNodeCount}isCollapsible(X){return this.getTreeNode(X).collapsible}setCollapsible(X,ae){let Ge=this.getTreeNode(X);ae===void 0&&(ae=!Ge.collapsible);let lt={collapsible:ae};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(X,lt))}isCollapsed(X){return this.getTreeNode(X).collapsed}setCollapsed(X,ae,Ge){let lt=this.getTreeNode(X);ae===void 0&&(ae=!lt.collapsed);let Ot={collapsed:ae,recursive:Ge||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(X,Ot))}_setCollapseState(X,ae){let{node:Ge,listIndex:lt,revealed:Ot}=this.getTreeNodeWithListIndex(X),Gt=this._setListNodeCollapseState(Ge,lt,Ot,ae);if(Ge!==this.root&&this.autoExpandSingleChildren&&Gt&&!Z(ae)&&Ge.collapsible&&!Ge.collapsed&&!ae.recursive){let ti=-1;for(let ye=0;ye<Ge.children.length;ye++)if(Ge.children[ye].visible){if(ti>-1){ti=-1;break}ti=ye}ti>-1&&this._setCollapseState([...X,ti],ae)}return Gt}_setListNodeCollapseState(X,ae,Ge,lt){let Ot=this._setNodeCollapseState(X,lt,!1);if(!Ge||!X.visible||!Ot)return Ot;let Gt=X.renderNodeCount,ti=this.updateNodeAfterCollapseChange(X),ye=Gt-(ae===-1?0:1);return this.list.splice(ae+1,ye,ti.slice(1)),Ot}_setNodeCollapseState(X,ae,Ge){let lt;if(X===this.root?lt=!1:(Z(ae)?(lt=X.collapsible!==ae.collapsible,X.collapsible=ae.collapsible):X.collapsible?(lt=X.collapsed!==ae.collapsed,X.collapsed=ae.collapsed):lt=!1,lt&&this._onDidChangeCollapseState.fire({node:X,deep:Ge})),!Z(ae)&&ae.recursive)for(let Ot of X.children)lt=this._setNodeCollapseState(Ot,ae,!0)||lt;return lt}expandTo(X){this.eventBufferer.bufferEvents(()=>{let ae=this.getTreeNode(X);for(;ae.parent;)ae=ae.parent,X=X.slice(0,X.length-1),ae.collapsed&&this._setCollapseState(X,{collapsed:!1,recursive:!1})})}refilter(){let X=this.root.renderNodeCount,ae=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,X,ae)}createTreeNode(X,ae,Ge,lt,Ot,Gt){let ti={parent:ae,element:X.element,children:[],depth:ae.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof X.collapsible=="boolean"?X.collapsible:X.collapsed!==void 0,collapsed:X.collapsed===void 0?this.collapseByDefault:X.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},ye=this._filterNode(ti,Ge);ti.visibility=ye,lt&&Ot.push(ti);let le=X.children||g.a.empty(),ue=lt&&ye!==0&&!ti.collapsed,qe=g.a.map(le,ot=>this.createTreeNode(ot,ti,ye,ue,Ot,Gt)),Ze=0,tt=1;for(let ot of qe)ti.children.push(ot),tt+=ot.renderNodeCount,ot.visible&&(ot.visibleChildIndex=Ze++);return ti.collapsible=ti.collapsible||ti.children.length>0,ti.visibleChildrenCount=Ze,ti.visible=ye===2?Ze>0:ye===1,ti.visible?ti.collapsed||(ti.renderNodeCount=tt):(ti.renderNodeCount=0,lt&&Ot.pop()),Gt&&Gt(ti),ti}updateNodeAfterCollapseChange(X){let ae=X.renderNodeCount,Ge=[];return this._updateNodeAfterCollapseChange(X,Ge),this._updateAncestorsRenderNodeCount(X.parent,Ge.length-ae),Ge}_updateNodeAfterCollapseChange(X,ae){if(X.visible===!1)return 0;if(ae.push(X),X.renderNodeCount=1,!X.collapsed)for(let Ge of X.children)X.renderNodeCount+=this._updateNodeAfterCollapseChange(Ge,ae);return this._onDidChangeRenderNodeCount.fire(X),X.renderNodeCount}updateNodeAfterFilterChange(X){let ae=X.renderNodeCount,Ge=[];return this._updateNodeAfterFilterChange(X,X.visible?1:0,Ge),this._updateAncestorsRenderNodeCount(X.parent,Ge.length-ae),Ge}_updateNodeAfterFilterChange(X,ae,Ge,lt=!0){let Ot;if(X!==this.root){if(Ot=this._filterNode(X,ae),Ot===0)return X.visible=!1,X.renderNodeCount=0,!1;lt&&Ge.push(X)}let Gt=Ge.length;X.renderNodeCount=X===this.root?0:1;let ti=!1;if(X.collapsed&&Ot===0)X.visibleChildrenCount=0;else{let ye=0;for(let le of X.children)ti=this._updateNodeAfterFilterChange(le,Ot,Ge,lt&&!X.collapsed)||ti,le.visible&&(le.visibleChildIndex=ye++);X.visibleChildrenCount=ye}return X!==this.root&&(X.visible=Ot===2?ti:Ot===1),X.visible?X.collapsed||(X.renderNodeCount+=Ge.length-Gt):(X.renderNodeCount=0,lt&&Ge.pop()),this._onDidChangeRenderNodeCount.fire(X),X.visible}_updateAncestorsRenderNodeCount(X,ae){if(ae!==0)for(;X;)X.renderNodeCount+=ae,this._onDidChangeRenderNodeCount.fire(X),X=X.parent}_filterNode(X,ae){let Ge=this.filter?this.filter.filter(X.element,ae):1;return typeof Ge=="boolean"?(X.filterData=void 0,Ge?1:0):xe(Ge)?(X.filterData=Ge.data,Y(Ge.visibility)):(X.filterData=void 0,Y(Ge))}hasTreeNode(X,ae=this.root){if(!X||X.length===0)return!0;let[Ge,...lt]=X;return!(Ge<0||Ge>ae.children.length)&&this.hasTreeNode(lt,ae.children[Ge])}getTreeNode(X,ae=this.root){if(!X||X.length===0)return ae;let[Ge,...lt]=X;if(Ge<0||Ge>ae.children.length)throw new ie(this.user,"Invalid tree location");return this.getTreeNode(lt,ae.children[Ge])}getTreeNodeWithListIndex(X){if(X.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:ae,listIndex:Ge,revealed:lt,visible:Ot}=this.getParentNodeWithListIndex(X),Gt=X[X.length-1];if(Gt<0||Gt>ae.children.length)throw new ie(this.user,"Invalid tree location");let ti=ae.children[Gt];return{node:ti,listIndex:Ge,revealed:lt,visible:Ot&&ti.visible}}getParentNodeWithListIndex(X,ae=this.root,Ge=0,lt=!0,Ot=!0){let[Gt,...ti]=X;if(Gt<0||Gt>ae.children.length)throw new ie(this.user,"Invalid tree location");for(let ye=0;ye<Gt;ye++)Ge+=ae.children[ye].renderNodeCount;return lt=lt&&!ae.collapsed,Ot=Ot&&ae.visible,ti.length===0?{parentNode:ae,listIndex:Ge,revealed:lt,visible:Ot}:this.getParentNodeWithListIndex(ti,ae.children[Gt],Ge+1,lt,Ot)}getNode(X=[]){return this.getTreeNode(X)}getNodeLocation(X){let ae=[],Ge=X;for(;Ge.parent;)ae.push(Ge.parent.children.indexOf(Ge)),Ge=Ge.parent;return ae.reverse()}getParentNodeLocation(X){return X.length===0?void 0:X.length===1?[]:Object(O.u)(X)[0]}}var he=r(20),Ce=r(11),Ae=r(118),L=r(189),nt=r(17);let ct=Object(nt.e)("tree-item-expanded",nt.a.chevronDown),Ye=Object(nt.e)("tree-filter-on-type-on",nt.a.listFilter),ht=Object(nt.e)("tree-filter-on-type-off",nt.a.listSelection),fe=Object(nt.e)("tree-filter-clear",nt.a.close),$=Object(nt.e)("tree-item-loading",nt.a.loading);class G extends B.a{constructor(X){super(X.elements.map(ae=>ae.element)),this.data=X}}function z(ft){return ft instanceof B.a?new G(ft):ft}class J{constructor(X,ae){this.modelProvider=X,this.dnd=ae,this.autoExpandDisposable=f.a.None}getDragURI(X){return this.dnd.getDragURI(X.element)}getDragLabel(X,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(X.map(Ge=>Ge.element),ae)}onDragStart(X,ae){this.dnd.onDragStart&&this.dnd.onDragStart(z(X),ae)}onDragOver(X,ae,Ge,lt,Ot=!0){let Gt=this.dnd.onDragOver(z(X),ae&&ae.element,Ge,lt),ti=this.autoExpandNode!==ae;if(ti&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ae),ae===void 0)return Gt;if(ti&&typeof Gt!="boolean"&&Gt.autoExpand&&(this.autoExpandDisposable=Object(he.g)(()=>{let Ze=this.modelProvider(),tt=Ze.getNodeLocation(ae);Ze.isCollapsed(tt)&&Ze.setCollapsed(tt,!1),this.autoExpandNode=void 0},500)),typeof Gt=="boolean"||!Gt.accept||Gt.bubble===void 0||Gt.feedback)return Ot?Gt:{accept:typeof Gt=="boolean"?Gt:Gt.accept,effect:typeof Gt=="boolean"?void 0:Gt.effect,feedback:[Ge]};if(Gt.bubble===1){let Ze=this.modelProvider(),tt=Ze.getNodeLocation(ae),ot=Ze.getParentNodeLocation(tt),zt=Ze.getNode(ot),Jt=ot&&Ze.getListIndex(ot);return this.onDragOver(X,zt,Jt,lt,!1)}let ye=this.modelProvider(),le=ye.getNodeLocation(ae),ue=ye.getListIndex(le),qe=ye.getListRenderCount(le);return Object.assign(Object.assign({},Gt),{feedback:Object(O.s)(ue,ue+qe)})}drop(X,ae,Ge,lt){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(z(X),ae&&ae.element,Ge,lt)}onDragEnd(X){this.dnd.onDragEnd&&this.dnd.onDragEnd(X)}}class Se{constructor(X){this.delegate=X}getHeight(X){return this.delegate.getHeight(X.element)}getTemplateId(X){return this.delegate.getTemplateId(X.element)}hasDynamicHeight(X){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(X.element)}setDynamicHeight(X,ae){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(X.element,ae)}}var A;(function(ft){ft.None="none",ft.OnHover="onHover",ft.Always="always"})(A||(A={}));class ee{constructor(X,ae=[]){this._elements=ae,this.onDidChange=E.b.forEach(X,Ge=>this._elements=Ge)}get elements(){return this._elements}}class de{constructor(X,ae,Ge,lt,Ot={}){this.renderer=X,this.modelProvider=ae,this.activeNodes=lt,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=de.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new L.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=f.a.None,this.disposables=new f.b,this.templateId=X.templateId,this.updateOptions(Ot),E.b.map(Ge,Gt=>Gt.node)(this.onDidChangeNodeTwistieState,this,this.disposables),X.onDidChangeTwistieState&&X.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(X={}){if(X.indent!==void 0&&(this.indent=Object(Ae.b)(X.indent,0,40)),X.renderIndentGuides!==void 0){let ae=X.renderIndentGuides!==A.None;if(ae!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ae,this.indentGuidesDisposable.dispose(),ae)){let Ge=new f.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,Ge),this.indentGuidesDisposable=Ge,this._onDidChangeActiveNodes(this.activeNodes.elements)}}X.hideTwistiesOfChildlessElements!==void 0&&(this.hideTwistiesOfChildlessElements=X.hideTwistiesOfChildlessElements)}renderTemplate(X){let ae=Object(h.p)(X,Object(h.a)(".monaco-tl-row")),Ge=Object(h.p)(ae,Object(h.a)(".monaco-tl-indent")),lt=Object(h.p)(ae,Object(h.a)(".monaco-tl-twistie")),Ot=Object(h.p)(ae,Object(h.a)(".monaco-tl-contents")),Gt=this.renderer.renderTemplate(Ot);return{container:X,indent:Ge,twistie:lt,indentGuidesDisposable:f.a.None,templateData:Gt}}renderElement(X,ae,Ge,lt){typeof lt=="number"&&(this.renderedNodes.set(X,{templateData:Ge,height:lt}),this.renderedElements.set(X.element,X));let Ot=de.DefaultIndent+(X.depth-1)*this.indent;Ge.twistie.style.paddingLeft=Ot+"px",Ge.indent.style.width=Ot+this.indent-16+"px",this.renderTwistie(X,Ge),typeof lt=="number"&&this.renderIndentGuides(X,Ge),this.renderer.renderElement(X,ae,Ge.templateData,lt)}disposeElement(X,ae,Ge,lt){Ge.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(X,ae,Ge.templateData,lt),typeof lt=="number"&&(this.renderedNodes.delete(X),this.renderedElements.delete(X.element))}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}onDidChangeTwistieState(X){let ae=this.renderedElements.get(X);ae&&this.onDidChangeNodeTwistieState(ae)}onDidChangeNodeTwistieState(X){let ae=this.renderedNodes.get(X);ae&&(this.renderTwistie(X,ae.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(X,ae.templateData))}renderTwistie(X,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(X.element,ae.twistie),X.collapsible&&(!this.hideTwistiesOfChildlessElements||X.visibleChildrenCount>0)?(Object(h.f)(ae.twistie,ct.classNames,"collapsible"),Object(h.ab)(ae.twistie,"collapsed",X.collapsed)):Object(h.R)(ae.twistie,ct.classNames,"collapsible","collapsed"),X.collapsible?ae.container.setAttribute("aria-expanded",String(!X.collapsed)):ae.container.removeAttribute("aria-expanded")}renderIndentGuides(X,ae){if(Object(h.s)(ae.indent),ae.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let Ge=new f.b,lt=this.modelProvider(),Ot=X;for(;;){let Gt=lt.getNodeLocation(Ot),ti=lt.getParentNodeLocation(Gt);if(!ti)break;let ye=lt.getNode(ti),le=Object(h.a)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(ye)&&Object(h.e)(le,"active"),ae.indent.childElementCount===0?ae.indent.appendChild(le):ae.indent.insertBefore(le,ae.indent.firstElementChild),this.renderedIndentGuides.add(ye,le),Ge.add(Object(f.h)(()=>this.renderedIndentGuides.delete(ye,le))),Ot=ye}ae.indentGuidesDisposable=Ge}_onDidChangeActiveNodes(X){if(!this.shouldRenderIndentGuides)return;let ae=new Set,Ge=this.modelProvider();X.forEach(lt=>{let Ot=Ge.getNodeLocation(lt);try{let Gt=Ge.getParentNodeLocation(Ot);lt.collapsible&<.children.length>0&&!lt.collapsed?ae.add(lt):Gt&&ae.add(Ge.getNode(Gt))}catch(Gt){}}),this.activeIndentNodes.forEach(lt=>{ae.has(lt)||this.renderedIndentGuides.forEach(lt,Ot=>Object(h.Q)(Ot,"active"))}),ae.forEach(lt=>{this.activeIndentNodes.has(lt)||this.renderedIndentGuides.forEach(lt,Ot=>Object(h.e)(Ot,"active"))}),this.activeIndentNodes=ae}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(f.f)(this.disposables)}}de.DefaultIndent=8;class De{constructor(X,ae,Ge){this.tree=X,this.keyboardNavigationLabelProvider=ae,this._filter=Ge,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new f.b,X.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(X){this._pattern=X,this._lowercasePattern=X.toLowerCase()}filter(X,ae){if(this._filter){let Gt=this._filter.filter(X,ae);if(this.tree.options.simpleKeyboardNavigation)return Gt;let ti;if(ti=typeof Gt=="boolean"?Gt?1:0:xe(Gt)?Y(Gt.visibility):Gt,ti===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:ke.a.Default,visibility:!0};let Ge=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(X),lt=Ge&&Ge.toString();if(lt===void 0)return{data:ke.a.Default,visibility:!0};let Ot=Object(ke.d)(this._pattern,this._lowercasePattern,0,lt,lt.toLowerCase(),0,!0);return Ot?(this._matchCount++,{data:Ot,visibility:!0}):this.tree.options.filterOnType?2:{data:ke.a.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(f.f)(this.disposables)}}class $e{constructor(X,ae,Ge,lt,Ot){this.tree=X,this.view=Ge,this.filter=lt,this.keyboardNavigationDelegate=Ot,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new E.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new E.a,this.enabledDisposables=new f.b,this.disposables=new f.b,this.domNode=Object(h.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(se.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(h.p)(Ge.getHTMLElement(),Object(h.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(h.p)(this.domNode,Object(h.a)("span.label"));let Gt=Object(h.p)(this.domNode,Object(h.a)(".controls"));this._filterOnType=!!X.options.filterOnType,this.filterOnTypeDomNode=Object(h.p)(Gt,Object(h.a)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),Object(se.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(h.p)(Gt,Object(h.a)("button.clear"+fe.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(y.a)("clear","Clear"),this.keyboardNavigationEventFilter=X.options.keyboardNavigationEventFilter,ae.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(X.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(X){X.simpleKeyboardNavigation?this.disable():this.enable(),X.filterOnType!==void 0&&(this._filterOnType=!!X.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),X.automaticKeyboardNavigation!==void 0&&(this.automaticKeyboardNavigation=X.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;let X=E.b.chain(Object(se.a)(this.view.getHTMLElement(),"keydown")).filter(Ge=>!Object(H.e)(Ge.target)||Ge.target===this.filterOnTypeDomNode).filter(Ge=>Ge.key!=="Dead"&&!/^Media/.test(Ge.key)).map(Ge=>new j.a(Ge)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(Ge=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(Ge)&&!(Ge.keyCode===18||Ge.keyCode===16||Ge.keyCode===15||Ge.keyCode===17)||(this.pattern.length>0||this.triggered)&&(Ge.keyCode===9||Ge.keyCode===1)&&!Ge.altKey&&!Ge.ctrlKey&&!Ge.metaKey||Ge.keyCode===1&&(Ce.f?Ge.altKey&&!Ge.metaKey:Ge.ctrlKey)&&!Ge.shiftKey).forEach(Ge=>{Ge.stopPropagation(),Ge.preventDefault()}).event,ae=Object(se.a)(this.clearDomNode,"click");E.b.chain(E.b.any(X,ae)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(X){typeof X=="string"?this.onInput(X):X instanceof MouseEvent||X.keyCode===9||X.keyCode===1&&(Ce.f?X.altKey:X.ctrlKey)?this.onInput(""):X.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+X.browserEvent.key)}onInput(X){let ae=this.view.getHTMLElement();X&&!this.domNode.parentElement?ae.append(this.domNode):!X&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=X,this._onDidChangePattern.fire(X),this.filter.pattern=X,this.tree.refilter(),X&&this.tree.focusNext(0,!0,void 0,lt=>!ke.a.isDefault(lt.filterData));let Ge=this.tree.getFocus();if(Ge.length>0){let lt=Ge[0];this.tree.getRelativeTop(lt)===null&&this.tree.reveal(lt,.5)}this.render(),X||(this.triggered=!1)}onDragStart(){let X=this.view.getHTMLElement(),{left:ae}=Object(h.C)(X),Ge=X.clientWidth,lt=Ge/2,Ot=this.domNode.clientWidth,Gt=new f.b,ti=this.positionClassName,ye=()=>{switch(ti){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=Ge-Ot-6+"px"}};ye(),Object(h.Q)(this.domNode,ti),Object(h.e)(this.domNode,"dragging"),Gt.add(Object(f.h)(()=>Object(h.Q)(this.domNode,"dragging"))),Object(se.a)(document,"dragover")(le=>{le.preventDefault();let ue=le.screenX-ae;le.dataTransfer&&(le.dataTransfer.dropEffect="none"),ti=ue<lt?"nw":"ne",ye()},null,Gt),Object(se.a)(this.domNode,"dragend")(()=>{this.positionClassName=ti,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Object(f.f)(Gt)},null,Gt),q.c.CurrentDragAndDropData=new q.b("vscode-ui"),Gt.add(Object(f.h)(()=>q.c.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&this.pattern.length!==0&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(Object(h.R)(this.filterOnTypeDomNode,ht.classNames),Object(h.f)(this.filterOnTypeDomNode,Ye.classNames),this.filterOnTypeDomNode.title=Object(y.a)("disable filter on type","Disable Filter on Type")):(Object(h.R)(this.filterOnTypeDomNode,Ye.classNames),Object(h.f)(this.filterOnTypeDomNode,ht.classNames),this.filterOnTypeDomNode.title=Object(y.a)("enable filter on type","Enable Filter on Type"))}render(){let X=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&X?(this.messageDomNode.textContent=Object(y.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),Object(h.ab)(this.domNode,"no-matches",X),this.domNode.title=Object(y.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(X){return!(this.enabled&&this.pattern&&!this.filterOnType)||this.filter.totalCount>0&&this.filter.matchCount<=1||!ke.a.isDefault(X.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(f.f)(this.disposables)}}function pt(ft){let X=b.Unknown;return Object(h.J)(ft.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?X=b.Twistie:Object(h.J)(ft.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(X=b.Element),{browserEvent:ft.browserEvent,element:ft.element?ft.element.element:null,target:X}}function it(ft,X){X(ft),ft.children.forEach(ae=>it(ae,X))}class At{constructor(X){this.identityProvider=X,this.nodes=[],this._onDidChange=new E.a,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(X,ae){Object(O.g)(this.nodes,X)||this._set(X,!1,ae)}_set(X,ae,Ge){if(this.nodes=[...X],this.elements=void 0,this._nodeSet=void 0,!ae){let lt=this;this._onDidChange.fire({get elements(){return lt.get()},browserEvent:Ge})}}get(){return this.elements||(this.elements=this.nodes.map(X=>X.element)),[...this.elements]}getNodes(){return this.nodes}has(X){return this.nodeSet.has(X)}onDidModelSplice({insertedNodes:X,deletedNodes:ae}){if(!this.identityProvider){let ye=this.createNodeSet(),le=ue=>ye.delete(ue);return ae.forEach(ue=>it(ue,le)),void this.set([...ye.values()])}let Ge=new Set,lt=ye=>Ge.add(this.identityProvider.getId(ye.element).toString());ae.forEach(ye=>it(ye,lt));let Ot=new Map,Gt=ye=>Ot.set(this.identityProvider.getId(ye.element).toString(),ye);X.forEach(ye=>it(ye,Gt));let ti=[];for(let ye of this.nodes){let le=this.identityProvider.getId(ye.element).toString();if(Ge.has(le)){let ue=Ot.get(le);ue&&ti.push(ue)}else ti.push(ye)}this._set(ti,!0)}createNodeSet(){let X=new Set;for(let ae of this.nodes)X.add(ae);return X}}class Nt extends H.d{constructor(X,ae){super(X),this.tree=ae}onViewPointer(X){if(Object(H.e)(X.browserEvent.target)||Object(H.f)(X.browserEvent.target))return;let ae=X.element;if(!ae)return super.onViewPointer(X);if(this.isSelectionRangeChangeEvent(X)||this.isSelectionSingleChangeEvent(X))return super.onViewPointer(X);let Ge=X.browserEvent.target,lt=Object(h.I)(Ge,"monaco-tl-twistie")||Object(h.I)(Ge,"monaco-icon-label")&&Object(h.I)(Ge,"folder-icon")&&X.browserEvent.offsetX<16,Ot=!1;if(Ot=typeof this.tree.expandOnlyOnTwistieClick=="function"?this.tree.expandOnlyOnTwistieClick(ae.element):!!this.tree.expandOnlyOnTwistieClick,Ot&&!lt)return super.onViewPointer(X);if(this.tree.expandOnlyOnDoubleClick&&X.browserEvent.detail!==2&&!lt)return super.onViewPointer(X);if(ae.collapsible){let Gt=this.tree.model,ti=Gt.getNodeLocation(ae),ye=X.browserEvent.altKey;if(Gt.setCollapsed(ti,void 0,ye),Ot&<)return}super.onViewPointer(X)}onDoubleClick(X){Object(h.I)(X.browserEvent.target,"monaco-tl-twistie")||super.onDoubleClick(X)}}class _i extends H.c{constructor(X,ae,Ge,lt,Ot,Gt,ti){super(X,ae,Ge,lt,ti),this.focusTrait=Ot,this.selectionTrait=Gt}createMouseController(X){return new Nt(this,X.tree)}splice(X,ae,Ge=[]){if(super.splice(X,ae,Ge),Ge.length===0)return;let lt=[],Ot=[];Ge.forEach((Gt,ti)=>{this.focusTrait.has(Gt)&<.push(X+ti),this.selectionTrait.has(Gt)&&Ot.push(X+ti)}),lt.length>0&&super.setFocus(Object(O.f)([...super.getFocus(),...lt])),Ot.length>0&&super.setSelection(Object(O.f)([...super.getSelection(),...Ot]))}setFocus(X,ae,Ge=!1){super.setFocus(X,ae),Ge||this.focusTrait.set(X.map(lt=>this.element(lt)),ae)}setSelection(X,ae,Ge=!1){super.setSelection(X,ae),Ge||this.selectionTrait.set(X.map(lt=>this.element(lt)),ae)}}class wt{constructor(X,ae,Ge,lt,Ot={}){this._options=Ot,this.eventBufferer=new E.c,this.disposables=new f.b,this._onWillRefilter=new E.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new E.a;let Gt=new Se(Ge),ti=new E.e,ye=new E.e,le=new ee(ye.event);this.renderers=lt.map(ot=>new de(ot,()=>this.model,ti.event,le,Ot));for(let ot of this.renderers)this.disposables.add(ot);let ue;var qe,Ze;Ot.keyboardNavigationLabelProvider&&(ue=new De(this,Ot.keyboardNavigationLabelProvider,Ot.filter),Ot=Object.assign(Object.assign({},Ot),{filter:ue}),this.disposables.add(ue)),this.focus=new At(Ot.identityProvider),this.selection=new At(Ot.identityProvider),this.view=new _i(X,ae,Gt,this.renderers,this.focus,this.selection,Object.assign(Object.assign({},(qe=()=>this.model,(Ze=Ot)&&Object.assign(Object.assign({},Ze),{identityProvider:Ze.identityProvider&&{getId:ot=>Ze.identityProvider.getId(ot.element)},dnd:Ze.dnd&&new J(qe,Ze.dnd),multipleSelectionController:Ze.multipleSelectionController&&{isSelectionSingleChangeEvent:ot=>Ze.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},ot),{element:ot.element})),isSelectionRangeChangeEvent:ot=>Ze.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},ot),{element:ot.element}))},accessibilityProvider:Ze.accessibilityProvider&&Object.assign(Object.assign({},Ze.accessibilityProvider),{getSetSize(ot){let zt=qe(),Jt=zt.getNodeLocation(ot),xi=zt.getParentNodeLocation(Jt);return zt.getNode(xi).visibleChildrenCount},getPosInSet:ot=>ot.visibleChildIndex+1,isChecked:Ze.accessibilityProvider&&Ze.accessibilityProvider.isChecked?ot=>Ze.accessibilityProvider.isChecked(ot.element):void 0,getRole:Ze.accessibilityProvider&&Ze.accessibilityProvider.getRole?ot=>Ze.accessibilityProvider.getRole(ot.element):()=>"treeitem",getAriaLabel:ot=>Ze.accessibilityProvider.getAriaLabel(ot.element),getWidgetAriaLabel:()=>Ze.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:Ze.accessibilityProvider&&Ze.accessibilityProvider.getWidgetRole?()=>Ze.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:ot=>ot.depth,getActiveDescendantId:Ze.accessibilityProvider.getActiveDescendantId&&(ot=>Ze.accessibilityProvider.getActiveDescendantId(ot.element))}),keyboardNavigationLabelProvider:Ze.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},Ze.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:ot=>Ze.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ot.element)}),enableKeyboardNavigation:Ze.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(X,this.view,Ot),ti.input=this.model.onDidChangeCollapseState;let tt=E.b.forEach(this.model.onDidSplice,ot=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(ot),this.selection.onDidModelSplice(ot)})});if(tt(()=>null,null,this.disposables),ye.input=E.b.chain(E.b.any(tt,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{let ot=new Set;for(let zt of this.focus.getNodes())ot.add(zt);for(let zt of this.selection.getNodes())ot.add(zt);return[...ot.values()]}).event,Ot.keyboardSupport!==!1){let ot=E.b.chain(this.view.onKeyDown).filter(zt=>!Object(H.e)(zt.target)).map(zt=>new j.a(zt));ot.filter(zt=>zt.keyCode===15).on(this.onLeftArrow,this,this.disposables),ot.filter(zt=>zt.keyCode===17).on(this.onRightArrow,this,this.disposables),ot.filter(zt=>zt.keyCode===10).on(this.onSpace,this,this.disposables)}if(Ot.keyboardNavigationLabelProvider){let ot=Ot.keyboardNavigationDelegate||H.a;this.typeFilterController=new $e(this,this.model,this.view,ue,ot),this.focusNavigationFilter=zt=>this.typeFilterController.shouldAllowFocus(zt),this.disposables.add(this.typeFilterController)}this.styleElement=Object(h.v)(this.view.getHTMLElement()),Object(h.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===A.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return E.b.map(this.view.onMouseDblClick,pt)}get onPointer(){return E.b.map(this.view.onPointer,pt)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnlyOnDoubleClick(){var X;return(X=this._options.expandOnlyOnDoubleClick)!==null&&X!==void 0&&X}get expandOnlyOnTwistieClick(){return this._options.expandOnlyOnTwistieClick!==void 0&&this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(X={}){this._options=Object.assign(Object.assign({},this._options),X);for(let ae of this.renderers)ae.updateOptions(X);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation,smoothScrolling:this._options.smoothScrolling,horizontalScrolling:this._options.horizontalScrolling}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(h.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===A.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(X){this.view.scrollTop=X}domFocus(){this.view.domFocus()}layout(X,ae){this.view.layout(X,ae)}style(X){let ae="."+this.view.domId,Ge=[];X.treeIndentGuidesStroke&&(Ge.push(`.monaco-list${ae}:hover .monaco-tl-indent > .indent-guide, .monaco-list${ae}.always .monaco-tl-indent > .indent-guide { border-color: ${X.treeIndentGuidesStroke.transparent(.4)}; }`),Ge.push(`.monaco-list${ae} .monaco-tl-indent > .indent-guide.active { border-color: ${X.treeIndentGuidesStroke}; }`));let lt=Ge.join(` +`);lt!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=lt),this.view.style(X)}collapse(X,ae=!1){return this.model.setCollapsed(X,!0,ae)}expand(X,ae=!1){return this.model.setCollapsed(X,!1,ae)}isCollapsible(X){return this.model.isCollapsible(X)}setCollapsible(X,ae){return this.model.setCollapsible(X,ae)}isCollapsed(X){return this.model.isCollapsed(X)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(X,ae){let Ge=X.map(Ot=>this.model.getNode(Ot));this.selection.set(Ge,ae);let lt=X.map(Ot=>this.model.getListIndex(Ot)).filter(Ot=>Ot>-1);this.view.setSelection(lt,ae,!0)}getSelection(){return this.selection.get()}setFocus(X,ae){let Ge=X.map(Ot=>this.model.getNode(Ot));this.focus.set(Ge,ae);let lt=X.map(Ot=>this.model.getListIndex(Ot)).filter(Ot=>Ot>-1);this.view.setFocus(lt,ae,!0)}focusNext(X=1,ae=!1,Ge,lt=this.focusNavigationFilter){this.view.focusNext(X,ae,Ge,lt)}getFocus(){return this.focus.get()}reveal(X,ae){this.model.expandTo(X);let Ge=this.model.getListIndex(X);Ge!==-1&&this.view.reveal(Ge,ae)}getRelativeTop(X){let ae=this.model.getListIndex(X);return ae===-1?null:this.view.getRelativeTop(ae)}onLeftArrow(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge);if(!this.model.setCollapsed(lt,!0)){let Ot=this.model.getParentNodeLocation(lt);if(!Ot)return;let Gt=this.model.getListIndex(Ot);this.view.reveal(Gt),this.view.setFocus([Gt])}}onRightArrow(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge);if(!this.model.setCollapsed(lt,!1)){if(!Ge.children.some(ti=>ti.visible))return;let[Ot]=this.view.getFocus(),Gt=Ot+1;this.view.reveal(Gt),this.view.setFocus([Gt])}}onSpace(X){X.preventDefault(),X.stopPropagation();let ae=this.view.getFocusedElements();if(ae.length===0)return;let Ge=ae[0],lt=this.model.getNodeLocation(Ge),Ot=X.browserEvent.altKey;this.model.setCollapsed(lt,void 0,Ot)}dispose(){Object(f.f)(this.disposables),this.view.dispose()}}class Ni{constructor(X,ae,Ge={}){this.user=X,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new te(X,ae,null,Ge),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Ge.sorter&&(this.sorter={compare:(lt,Ot)=>Ge.sorter.compare(lt.element,Ot.element)}),this.identityProvider=Ge.identityProvider}setChildren(X,ae=g.a.empty(),Ge,lt){let Ot=this.getElementLocation(X);this._setChildren(Ot,this.preserveCollapseState(ae),Ge,lt)}_setChildren(X,ae=g.a.empty(),Ge,lt){let Ot=new Set,Gt=new Set;this.model.splice([...X,0],Number.MAX_VALUE,ae,ti=>{if(ti.element===null)return;let ye=ti;if(Ot.add(ye.element),this.nodes.set(ye.element,ye),this.identityProvider){let le=this.identityProvider.getId(ye.element).toString();Gt.add(le),this.nodesByIdentity.set(le,ye)}Ge&&Ge(ye)},ti=>{if(ti.element===null)return;let ye=ti;if(Ot.has(ye.element)||this.nodes.delete(ye.element),this.identityProvider){let le=this.identityProvider.getId(ye.element).toString();Gt.has(le)||this.nodesByIdentity.delete(le)}lt&<(ye)})}preserveCollapseState(X=g.a.empty()){return this.sorter&&(X=Object(O.p)([...X],this.sorter.compare.bind(this.sorter))),g.a.map(X,ae=>{let Ge=this.nodes.get(ae.element);if(!Ge&&this.identityProvider){let Gt=this.identityProvider.getId(ae.element).toString();Ge=this.nodesByIdentity.get(Gt)}if(!Ge)return Object.assign(Object.assign({},ae),{children:this.preserveCollapseState(ae.children)});let lt=typeof ae.collapsible=="boolean"?ae.collapsible:Ge.collapsible,Ot=ae.collapsed!==void 0?ae.collapsed:Ge.collapsed;return Object.assign(Object.assign({},ae),{collapsible:lt,collapsed:Ot,children:this.preserveCollapseState(ae.children)})})}rerender(X){let ae=this.getElementLocation(X);this.model.rerender(ae)}has(X){return this.nodes.has(X)}getListIndex(X){let ae=this.getElementLocation(X);return this.model.getListIndex(ae)}getListRenderCount(X){let ae=this.getElementLocation(X);return this.model.getListRenderCount(ae)}isCollapsible(X){let ae=this.getElementLocation(X);return this.model.isCollapsible(ae)}setCollapsible(X,ae){let Ge=this.getElementLocation(X);return this.model.setCollapsible(Ge,ae)}isCollapsed(X){let ae=this.getElementLocation(X);return this.model.isCollapsed(ae)}setCollapsed(X,ae,Ge){let lt=this.getElementLocation(X);return this.model.setCollapsed(lt,ae,Ge)}expandTo(X){let ae=this.getElementLocation(X);this.model.expandTo(ae)}refilter(){this.model.refilter()}getNode(X=null){if(X===null)return this.model.getNode(this.model.rootRef);let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return ae}getNodeLocation(X){return X.element}getParentNodeLocation(X){if(X===null)throw new ie(this.user,"Invalid getParentNodeLocation call");let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);let Ge=this.model.getNodeLocation(ae),lt=this.model.getParentNodeLocation(Ge);return this.model.getNode(lt).element}getElementLocation(X){if(X===null)return[];let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return this.model.getNodeLocation(ae)}}function pi(ft){return{element:{elements:[ft.element],incompressible:ft.incompressible||!1},children:g.a.map(g.a.from(ft.children),pi),collapsible:ft.collapsible,collapsed:ft.collapsed}}function et(ft){let X=[ft.element],ae=ft.incompressible||!1,Ge,lt;for(;[lt,Ge]=g.a.consume(g.a.from(ft.children),2),lt.length===1&&!(ft=lt[0]).incompressible;)X.push(ft.element);return{element:{elements:X,incompressible:ae},children:g.a.map(g.a.concat(lt,Ge),et),collapsible:ft.collapsible,collapsed:ft.collapsed}}function Wt(ft){return function X(ae,Ge=0){let lt;return lt=Ge<ae.element.elements.length-1?[X(ae,Ge+1)]:g.a.map(g.a.from(ae.children),Ot=>X(Ot,0)),Ge===0&&ae.element.incompressible?{element:ae.element.elements[Ge],children:lt,incompressible:!0,collapsible:ae.collapsible,collapsed:ae.collapsed}:{element:ae.element.elements[Ge],children:lt,collapsible:ae.collapsible,collapsed:ae.collapsed}}(ft,0)}class Li{constructor(X,ae,Ge={}){this.user=X,this.rootRef=null,this.nodes=new Map,this.model=new Ni(X,ae,Ge),this.enabled=Ge.compressionEnabled===void 0||Ge.compressionEnabled}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(X,ae=g.a.empty()){if(X===null){let ue=g.a.map(ae,this.enabled?et:pi);return void this._setChildren(null,ue)}let Ge=this.nodes.get(X);if(!Ge)throw new Error("Unknown compressed tree node");let lt=this.model.getNode(Ge),Ot=this.model.getParentNodeLocation(Ge),Gt=this.model.getNode(Ot),ti=function ue(qe,Ze,tt){return qe.element===Ze?Object.assign(Object.assign({},qe),{children:tt}):Object.assign(Object.assign({},qe),{children:g.a.map(g.a.from(qe.children),ot=>ue(ot,Ze,tt))})}(Wt(lt),X,ae),ye=(this.enabled?et:pi)(ti),le=Gt.children.map(ue=>ue===lt?ye:ue);this._setChildren(Gt.element,le)}setCompressionEnabled(X){if(X===this.enabled)return;this.enabled=X;let ae=this.model.getNode().children,Ge=g.a.map(ae,Wt),lt=g.a.map(Ge,X?et:pi);this._setChildren(null,lt)}_setChildren(X,ae){let Ge=new Set;this.model.setChildren(X,ae,lt=>{for(let Ot of lt.element.elements)Ge.add(Ot),this.nodes.set(Ot,lt.element)},lt=>{for(let Ot of lt.element.elements)Ge.has(Ot)||this.nodes.delete(Ot)})}has(X){return this.nodes.has(X)}getListIndex(X){let ae=this.getCompressedNode(X);return this.model.getListIndex(ae)}getListRenderCount(X){let ae=this.getCompressedNode(X);return this.model.getListRenderCount(ae)}getNode(X){if(X===void 0)return this.model.getNode();let ae=this.getCompressedNode(X);return this.model.getNode(ae)}getNodeLocation(X){let ae=this.model.getNodeLocation(X);return ae===null?null:ae.elements[ae.elements.length-1]}getParentNodeLocation(X){let ae=this.getCompressedNode(X),Ge=this.model.getParentNodeLocation(ae);return Ge===null?null:Ge.elements[Ge.elements.length-1]}isCollapsible(X){let ae=this.getCompressedNode(X);return this.model.isCollapsible(ae)}setCollapsible(X,ae){let Ge=this.getCompressedNode(X);return this.model.setCollapsible(Ge,ae)}isCollapsed(X){let ae=this.getCompressedNode(X);return this.model.isCollapsed(ae)}setCollapsed(X,ae,Ge){let lt=this.getCompressedNode(X);return this.model.setCollapsed(lt,ae,Ge)}expandTo(X){let ae=this.getCompressedNode(X);this.model.expandTo(ae)}rerender(X){let ae=this.getCompressedNode(X);this.model.rerender(ae)}refilter(){this.model.refilter()}getCompressedNode(X){if(X===null)return null;let ae=this.nodes.get(X);if(!ae)throw new ie(this.user,"Tree element not found: "+X);return ae}}let Ii=ft=>ft[ft.length-1];class Ai{constructor(X,ae){this.unwrapper=X,this.node=ae}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(X=>new Ai(this.unwrapper,X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Zi{constructor(X,ae,Ge={}){this.rootRef=null,this.elementMapper=Ge.elementMapper||Ii;let lt=Ot=>this.elementMapper(Ot.elements);this.nodeMapper=new U(Ot=>new Ai(lt,Ot)),this.model=new Li(X,function(Ot,Gt){return{splice(ti,ye,le){Gt.splice(ti,ye,le.map(ue=>Ot.map(ue)))},updateElementHeight(ti,ye){Gt.updateElementHeight(ti,ye)}}}(this.nodeMapper,ae),function(Ot,Gt){return Object.assign(Object.assign({},Gt),{sorter:Gt.sorter&&{compare:(ti,ye)=>Gt.sorter.compare(ti.elements[0],ye.elements[0])},identityProvider:Gt.identityProvider&&{getId:ti=>Gt.identityProvider.getId(Ot(ti))},filter:Gt.filter&&{filter:(ti,ye)=>Gt.filter.filter(Ot(ti),ye)}})}(lt,Ge))}get onDidSplice(){return E.b.map(this.model.onDidSplice,({insertedNodes:X,deletedNodes:ae})=>({insertedNodes:X.map(Ge=>this.nodeMapper.map(Ge)),deletedNodes:ae.map(Ge=>this.nodeMapper.map(Ge))}))}get onDidChangeCollapseState(){return E.b.map(this.model.onDidChangeCollapseState,({node:X,deep:ae})=>({node:this.nodeMapper.map(X),deep:ae}))}get onDidChangeRenderNodeCount(){return E.b.map(this.model.onDidChangeRenderNodeCount,X=>this.nodeMapper.map(X))}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}setCompressionEnabled(X){this.model.setCompressionEnabled(X)}has(X){return this.model.has(X)}getListIndex(X){return this.model.getListIndex(X)}getListRenderCount(X){return this.model.getListRenderCount(X)}getNode(X){return this.nodeMapper.map(this.model.getNode(X))}getNodeLocation(X){return X.element}getParentNodeLocation(X){return this.model.getParentNodeLocation(X)}isCollapsible(X){return this.model.isCollapsible(X)}setCollapsible(X,ae){return this.model.setCollapsible(X,ae)}isCollapsed(X){return this.model.isCollapsed(X)}setCollapsed(X,ae,Ge){return this.model.setCollapsed(X,ae,Ge)}expandTo(X){return this.model.expandTo(X)}rerender(X){return this.model.rerender(X)}refilter(){return this.model.refilter()}getCompressedTreeNode(X=null){return this.model.getNode(X)}}var Bi=r(98),Lt=function(ft,X,ae,Ge){var lt,Ot=arguments.length,Gt=Ot<3?X:Ge===null?Ge=Object.getOwnPropertyDescriptor(X,ae):Ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Gt=Reflect.decorate(ft,X,ae,Ge);else for(var ti=ft.length-1;ti>=0;ti--)(lt=ft[ti])&&(Gt=(Ot<3?lt(Gt):Ot>3?lt(X,ae,Gt):lt(X,ae))||Gt);return Ot>3&&Gt&&Object.defineProperty(X,ae,Gt),Gt};class Oi extends wt{constructor(X,ae,Ge,lt,Ot={}){super(X,ae,Ge,lt,Ot)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}rerender(X){X!==void 0?this.model.rerender(X):this.view.rerender()}hasElement(X){return this.model.has(X)}createModel(X,ae,Ge){return new Ni(X,ae,Ge)}}class gt{constructor(X,ae){this._compressedTreeNodeProvider=X,this.renderer=ae,this.templateId=ae.templateId,ae.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ae.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(X){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){let Ot=this.compressedTreeNodeProvider.getCompressedTreeNode(X.element);Ot.element.elements.length===1?(Ge.compressedTreeNode=void 0,this.renderer.renderElement(X,ae,Ge.data,lt)):(Ge.compressedTreeNode=Ot,this.renderer.renderCompressedElements(Ot,ae,Ge.data,lt))}disposeElement(X,ae,Ge,lt){Ge.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(Ge.compressedTreeNode,ae,Ge.data,lt):this.renderer.disposeElement&&this.renderer.disposeElement(X,ae,Ge.data,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.data)}renderTwistie(X,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(X,ae)}}Lt([Bi.a],gt.prototype,"compressedTreeNodeProvider",null);class vi extends Oi{constructor(X,ae,Ge,lt,Ot={}){let Gt=()=>this;super(X,ae,Ge,lt.map(ti=>new gt(Gt,ti)),function(ti,ye){return ye&&Object.assign(Object.assign({},ye),{keyboardNavigationLabelProvider:ye.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(le){let ue;try{ue=ti().getCompressedTreeNode(le)}catch(qe){return ye.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(le)}return ue.element.elements.length===1?ye.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(le):ye.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(ue.element.elements)}}})}(Gt,Ot))}setChildren(X,ae=g.a.empty()){this.model.setChildren(X,ae)}createModel(X,ae,Ge){return new Zi(X,ae,Ge)}updateOptions(X={}){super.updateOptions(X),X.compressionEnabled!==void 0&&this.model.setCompressionEnabled(X.compressionEnabled)}getCompressedTreeNode(X=null){return this.model.getCompressedTreeNode(X)}}var Rt=r(13),vt=function(ft,X,ae,Ge){return new(ae||(ae=Promise))(function(lt,Ot){function Gt(le){try{ye(Ge.next(le))}catch(ue){Ot(ue)}}function ti(le){try{ye(Ge.throw(le))}catch(ue){Ot(ue)}}function ye(le){var ue;le.done?lt(le.value):(ue=le.value,ue instanceof ae?ue:new ae(function(qe){qe(ue)})).then(Gt,ti)}ye((Ge=Ge.apply(ft,X||[])).next())})};function Ue(ft){return Object.assign(Object.assign({},ft),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ut(ft,X){return!!X.parent&&(X.parent===ft||ut(ft,X.parent))}class ze{constructor(X){this.node=X}get element(){return this.node.element.element}get children(){return this.node.children.map(X=>new ze(X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class st{constructor(X,ae,Ge){this.renderer=X,this.nodeMapper=ae,this.onDidChangeTwistieState=Ge,this.renderedNodes=new Map,this.templateId=X.templateId}renderTemplate(X){return{templateData:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){this.renderer.renderElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}renderTwistie(X,ae){return X.slow?Object(h.f)(ae,$.classNames):Object(h.R)(ae,$.classNames),!1}disposeElement(X,ae,Ge,lt){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}dispose(){this.renderedNodes.clear()}}function _t(ft){return{browserEvent:ft.browserEvent,elements:ft.elements.map(X=>X.element)}}function ri(ft){return{browserEvent:ft.browserEvent,element:ft.element&&ft.element.element,target:ft.target}}class li extends B.a{constructor(X){super(X.elements.map(ae=>ae.element)),this.data=X}}function gi(ft){return ft instanceof B.a?new li(ft):ft}class ki{constructor(X){this.dnd=X}getDragURI(X){return this.dnd.getDragURI(X.element)}getDragLabel(X,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(X.map(Ge=>Ge.element),ae)}onDragStart(X,ae){this.dnd.onDragStart&&this.dnd.onDragStart(gi(X),ae)}onDragOver(X,ae,Ge,lt,Ot=!0){return this.dnd.onDragOver(gi(X),ae&&ae.element,Ge,lt)}drop(X,ae,Ge,lt){this.dnd.drop(gi(X),ae&&ae.element,Ge,lt)}onDragEnd(X){this.dnd.onDragEnd&&this.dnd.onDragEnd(X)}}function Ri(ft){return ft&&Object.assign(Object.assign({},ft),{collapseByDefault:!0,identityProvider:ft.identityProvider&&{getId:X=>ft.identityProvider.getId(X.element)},dnd:ft.dnd&&new ki(ft.dnd),multipleSelectionController:ft.multipleSelectionController&&{isSelectionSingleChangeEvent:X=>ft.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},X),{element:X.element})),isSelectionRangeChangeEvent:X=>ft.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},X),{element:X.element}))},accessibilityProvider:ft.accessibilityProvider&&Object.assign(Object.assign({},ft.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:ft.accessibilityProvider.getRole?X=>ft.accessibilityProvider.getRole(X.element):()=>"treeitem",isChecked:ft.accessibilityProvider.isChecked?X=>{var ae;return!!((ae=ft.accessibilityProvider)===null||ae===void 0?void 0:ae.isChecked(X.element))}:void 0,getAriaLabel:X=>ft.accessibilityProvider.getAriaLabel(X.element),getWidgetAriaLabel:()=>ft.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:ft.accessibilityProvider.getWidgetRole?()=>ft.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:ft.accessibilityProvider.getAriaLevel&&(X=>ft.accessibilityProvider.getAriaLevel(X.element)),getActiveDescendantId:ft.accessibilityProvider.getActiveDescendantId&&(X=>ft.accessibilityProvider.getActiveDescendantId(X.element))}),filter:ft.filter&&{filter:(X,ae)=>ft.filter.filter(X.element,ae)},keyboardNavigationLabelProvider:ft.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},ft.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:X=>ft.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(X.element)}),sorter:void 0,expandOnlyOnTwistieClick:ft.expandOnlyOnTwistieClick===void 0?void 0:typeof ft.expandOnlyOnTwistieClick!="function"?ft.expandOnlyOnTwistieClick:X=>ft.expandOnlyOnTwistieClick(X.element),additionalScrollHeight:ft.additionalScrollHeight})}function $i(ft,X){X(ft),ft.children.forEach(ae=>$i(ae,X))}class Hi{constructor(X,ae,Ge,lt,Ot,Gt={}){this.user=X,this.dataSource=Ot,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new E.a,this._onDidChangeNodeSlowState=new E.a,this.nodeMapper=new U(ti=>new ze(ti)),this.disposables=new f.b,this.identityProvider=Gt.identityProvider,this.autoExpandSingleChildren=Gt.autoExpandSingleChildren!==void 0&&Gt.autoExpandSingleChildren,this.sorter=Gt.sorter,this.collapseByDefault=Gt.collapseByDefault,this.tree=this.createTree(X,ae,Ge,lt,Gt),this.root=Ue({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return E.b.map(this.tree.onDidChangeFocus,_t)}get onDidChangeSelection(){return E.b.map(this.tree.onDidChangeSelection,_t)}get onMouseDblClick(){return E.b.map(this.tree.onMouseDblClick,ri)}get onPointer(){return E.b.map(this.tree.onPointer,ri)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(X,ae,Ge,lt,Ot){let Gt=new Se(Ge),ti=lt.map(le=>new st(le,this.nodeMapper,this._onDidChangeNodeSlowState.event)),ye=Ri(Ot)||{};return new Oi(X,ae,Gt,ti,ye)}updateOptions(X={}){this.tree.updateOptions(X)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(X){this.tree.scrollTop=X}domFocus(){this.tree.domFocus()}layout(X,ae){this.tree.layout(X,ae)}style(X){this.tree.style(X)}getInput(){return this.root.element}setInput(X,ae){return vt(this,void 0,void 0,function*(){this.refreshPromises.forEach(lt=>lt.cancel()),this.refreshPromises.clear(),this.root.element=X;let Ge=ae&&{viewState:ae,focus:[],selection:[]};yield this._updateChildren(X,!0,!1,Ge),Ge&&(this.tree.setFocus(Ge.focus),this.tree.setSelection(Ge.selection)),ae&&typeof ae.scrollTop=="number"&&(this.scrollTop=ae.scrollTop)})}_updateChildren(X=this.root.element,ae=!0,Ge=!1,lt){return vt(this,void 0,void 0,function*(){if(this.root.element===void 0)throw new ie(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event));let Ot=this.getDataNode(X);if(yield this.refreshAndRenderNode(Ot,ae,lt),Ge)try{this.tree.rerender(Ot)}catch(Gt){}})}rerender(X){if(X===void 0||X===this.root.element)return void this.tree.rerender();let ae=this.getDataNode(X);this.tree.rerender(ae)}collapse(X,ae=!1){let Ge=this.getDataNode(X);return this.tree.collapse(Ge===this.root?null:Ge,ae)}expand(X,ae=!1){return vt(this,void 0,void 0,function*(){if(this.root.element===void 0)throw new ie(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event));let Ge=this.getDataNode(X);if(this.tree.hasElement(Ge)&&!this.tree.isCollapsible(Ge)||(Ge.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event)),Ge!==this.root&&!Ge.refreshPromise&&!this.tree.isCollapsed(Ge)))return!1;let lt=this.tree.expand(Ge===this.root?null:Ge,ae);return Ge.refreshPromise&&(yield this.root.refreshPromise,yield E.b.toPromise(this._onDidRender.event)),lt})}setSelection(X,ae){let Ge=X.map(lt=>this.getDataNode(lt));this.tree.setSelection(Ge,ae)}getSelection(){return this.tree.getSelection().map(X=>X.element)}setFocus(X,ae){let Ge=X.map(lt=>this.getDataNode(lt));this.tree.setFocus(Ge,ae)}getFocus(){return this.tree.getFocus().map(X=>X.element)}reveal(X,ae){this.tree.reveal(this.getDataNode(X),ae)}getDataNode(X){let ae=this.nodes.get(X===this.root.element?null:X);if(!ae)throw new ie(this.user,"Data tree node not found: "+X);return ae}refreshAndRenderNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){yield this.refreshNode(X,ae,Ge),this.render(X,Ge)})}refreshNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;return this.subTreeRefreshPromises.forEach((Ot,Gt)=>{!lt&&function(ti,ye){return ti===ye||ut(ti,ye)||ut(ye,ti)}(Gt,X)&&(lt=Ot.then(()=>this.refreshNode(X,ae,Ge)))}),lt||this.doRefreshSubTree(X,ae,Ge)})}doRefreshSubTree(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;X.refreshPromise=new Promise(Ot=>lt=Ot),this.subTreeRefreshPromises.set(X,X.refreshPromise),X.refreshPromise.finally(()=>{X.refreshPromise=void 0,this.subTreeRefreshPromises.delete(X)});try{let Ot=yield this.doRefreshNode(X,ae,Ge);X.stale=!1,yield Promise.all(Ot.map(Gt=>this.doRefreshSubTree(Gt,ae,Ge)))}finally{lt()}})}doRefreshNode(X,ae,Ge){return vt(this,void 0,void 0,function*(){let lt;if(X.hasChildren=!!this.dataSource.hasChildren(X.element),X.hasChildren){let Ot=Object(he.l)(800);Ot.then(()=>{X.slow=!0,this._onDidChangeNodeSlowState.fire(X)},Gt=>null),lt=this.doGetChildren(X).finally(()=>Ot.cancel())}else lt=Promise.resolve(g.a.empty());try{let Ot=yield lt;return this.setChildren(X,Ot,ae,Ge)}catch(Ot){if(X!==this.root&&this.tree.collapse(X===this.root?null:X),Object(Rt.d)(Ot))return[];throw Ot}finally{X.slow&&(X.slow=!1,this._onDidChangeNodeSlowState.fire(X))}})}doGetChildren(X){let ae=this.refreshPromises.get(X);return ae||(ae=Object(he.f)(()=>vt(this,void 0,void 0,function*(){let Ge=yield this.dataSource.getChildren(X.element);return this.processChildren(Ge)})),this.refreshPromises.set(X,ae),ae.finally(()=>{this.refreshPromises.delete(X)}))}_onDidChangeCollapseState({node:X,deep:ae}){X.element!==null&&!X.collapsed&&X.element.stale&&(ae?this.collapse(X.element.element):this.refreshAndRenderNode(X.element,!1).catch(Rt.e))}setChildren(X,ae,Ge,lt){let Ot=[...ae];if(X.children.length===0&&Ot.length===0)return[];let Gt=new Map,ti=new Map;for(let ue of X.children)if(Gt.set(ue.element,ue),this.identityProvider){let qe=this.tree.isCollapsed(ue);ti.set(ue.id,{node:ue,collapsed:qe})}let ye=[],le=Ot.map(ue=>{let qe=!!this.dataSource.hasChildren(ue);if(!this.identityProvider){let zt=Ue({element:ue,parent:X,hasChildren:qe});return qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(zt.collapsedByDefault=!1,ye.push(zt)),zt}let Ze=this.identityProvider.getId(ue).toString(),tt=ti.get(Ze);if(tt){let zt=tt.node;return Gt.delete(zt.element),this.nodes.delete(zt.element),this.nodes.set(ue,zt),zt.element=ue,zt.hasChildren=qe,Ge?tt.collapsed?(zt.children.forEach(Jt=>$i(Jt,xi=>this.nodes.delete(xi.element))),zt.children.splice(0,zt.children.length),zt.stale=!0):ye.push(zt):qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(zt.collapsedByDefault=!1,ye.push(zt)),zt}let ot=Ue({element:ue,parent:X,id:Ze,hasChildren:qe});return lt&<.viewState.focus&<.viewState.focus.indexOf(Ze)>-1&<.focus.push(ot),lt&<.viewState.selection&<.viewState.selection.indexOf(Ze)>-1&<.selection.push(ot),lt&<.viewState.expanded&<.viewState.expanded.indexOf(Ze)>-1?ye.push(ot):qe&&this.collapseByDefault&&!this.collapseByDefault(ue)&&(ot.collapsedByDefault=!1,ye.push(ot)),ot});for(let ue of Gt.values())$i(ue,qe=>this.nodes.delete(qe.element));for(let ue of le)this.nodes.set(ue.element,ue);return X.children.splice(0,X.children.length,...le),X!==this.root&&this.autoExpandSingleChildren&&le.length===1&&ye.length===0&&(le[0].collapsedByDefault=!1,ye.push(le[0])),ye}render(X,ae){let Ge=X.children.map(lt=>this.asTreeElement(lt,ae));this.tree.setChildren(X===this.root?null:X,Ge),X!==this.root&&this.tree.setCollapsible(X,X.hasChildren),this._onDidRender.fire()}asTreeElement(X,ae){if(X.stale)return{element:X,collapsible:X.hasChildren,collapsed:!0};let Ge;return Ge=!(ae&&ae.viewState.expanded&&X.id&&ae.viewState.expanded.indexOf(X.id)>-1)&&X.collapsedByDefault,X.collapsedByDefault=void 0,{element:X,children:X.hasChildren?g.a.map(X.children,lt=>this.asTreeElement(lt,ae)):[],collapsible:X.hasChildren,collapsed:Ge}}processChildren(X){return this.sorter&&(X=[...X].sort(this.sorter.compare.bind(this.sorter))),X}dispose(){this.disposables.dispose()}}class yi{constructor(X){this.node=X}get element(){return{elements:this.node.element.elements.map(X=>X.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(X=>new yi(X))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class kt{constructor(X,ae,Ge,lt){this.renderer=X,this.nodeMapper=ae,this.compressibleNodeMapperProvider=Ge,this.onDidChangeTwistieState=lt,this.renderedNodes=new Map,this.disposables=[],this.templateId=X.templateId}renderTemplate(X){return{templateData:this.renderer.renderTemplate(X)}}renderElement(X,ae,Ge,lt){this.renderer.renderElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}renderCompressedElements(X,ae,Ge,lt){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(X),ae,Ge.templateData,lt)}renderTwistie(X,ae){return X.slow?Object(h.f)(ae,$.classNames):Object(h.R)(ae,$.classNames),!1}disposeElement(X,ae,Ge,lt){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(X),ae,Ge.templateData,lt)}disposeCompressedElements(X,ae,Ge,lt){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(X),ae,Ge.templateData,lt)}disposeTemplate(X){this.renderer.disposeTemplate(X.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(f.f)(this.disposables)}}class Et extends Hi{constructor(X,ae,Ge,lt,Ot,Gt,ti={}){super(X,ae,Ge,Ot,Gt,ti),this.compressionDelegate=lt,this.compressibleNodeMapper=new U(ye=>new yi(ye)),this.filter=ti.filter}createTree(X,ae,Ge,lt,Ot){let Gt=new Se(Ge),ti=lt.map(le=>new kt(le,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),ye=function(le){let ue=le&&Ri(le);return ue&&Object.assign(Object.assign({},ue),{keyboardNavigationLabelProvider:ue.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},ue.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:qe=>le.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(qe.map(Ze=>Ze.element))})})}(Ot)||{};return new vi(X,ae,Gt,ti,ye)}asTreeElement(X,ae){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(X.element)},super.asTreeElement(X,ae))}updateOptions(X={}){this.tree.updateOptions(X)}render(X,ae){if(!this.identityProvider)return super.render(X,ae);let Ge=Ze=>this.identityProvider.getId(Ze).toString(),lt=Ze=>{let tt=new Set;for(let ot of Ze){let zt=this.tree.getCompressedTreeNode(ot===this.root?null:ot);if(zt.element)for(let Jt of zt.element.elements)tt.add(Ge(Jt.element))}return tt},Ot=lt(this.tree.getSelection()),Gt=lt(this.tree.getFocus());super.render(X,ae);let ti=this.getSelection(),ye=!1,le=this.getFocus(),ue=!1,qe=Ze=>{let tt=Ze.element;if(tt)for(let ot=0;ot<tt.elements.length;ot++){let zt=Ge(tt.elements[ot].element),Jt=tt.elements[tt.elements.length-1].element;Ot.has(zt)&&ti.indexOf(Jt)===-1&&(ti.push(Jt),ye=!0),Gt.has(zt)&&le.indexOf(Jt)===-1&&(le.push(Jt),ue=!0)}Ze.children.forEach(qe)};qe(this.tree.getCompressedTreeNode(X===this.root?null:X)),ye&&this.setSelection(ti),ue&&this.setFocus(le)}processChildren(X){return this.filter&&(X=g.a.filter(X,ae=>{let Ge=this.filter.filter(ae,1),lt=typeof(Ot=Ge)=="boolean"?Ot?1:0:xe(Ot)?Y(Ot.visibility):Y(Ot);var Ot;if(lt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return lt===1})),super.processChildren(X)}}class si extends wt{constructor(X,ae,Ge,lt,Ot,Gt={}){super(X,ae,Ge,lt,Gt),this.user=X,this.dataSource=Ot,this.identityProvider=Gt.identityProvider}createModel(X,ae,Ge){return new Ni(X,ae,Ge)}}var Si=r(80),Pi=function(ft,X,ae,Ge){var lt,Ot=arguments.length,Gt=Ot<3?X:Ge===null?Ge=Object.getOwnPropertyDescriptor(X,ae):Ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Gt=Reflect.decorate(ft,X,ae,Ge);else for(var ti=ft.length-1;ti>=0;ti--)(lt=ft[ti])&&(Gt=(Ot<3?lt(Gt):Ot>3?lt(X,ae,Gt):lt(X,ae))||Gt);return Ot>3&&Gt&&Object.defineProperty(X,ae,Gt),Gt},Wi=function(ft,X){return function(ae,Ge){X(ae,Ge,ft)}};let xn=Object(V.c)("listService"),un=class{constructor(ft){this._themeService=ft,this.disposables=new f.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(ft,X){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;let Ge=new H.b(Object(h.v)(),"");this.disposables.add(Object(T.b)(Ge,this._themeService))}if(this.lists.some(Ge=>Ge.widget===ft))throw new Error("Cannot register the same widget multiple times");let ae={widget:ft,extraContextKeys:X};return this.lists.push(ae),ft.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=ft),Object(f.e)(ft.onDidFocus(()=>this._lastFocusedWidget=ft),Object(f.h)(()=>this.lists.splice(this.lists.indexOf(ae),1)),ft.onDidDispose(()=>{this.lists=this.lists.filter(Ge=>Ge!==ae),this._lastFocusedWidget===ft&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};un=Pi([Wi(0,N.c)],un);let bn=new P.c("listFocus",!0),Fn=new P.c("listSupportsMultiselect",!0),Mn=P.a.and(bn,P.a.not("inputFocus")),Nn=new P.c("listHasSelectionOrFocus",!1),Hn=new P.c("listDoubleSelection",!1),Jn=new P.c("listMultiSelection",!1),br=new P.c("listSupportsKeyboardNavigation",!0),pn=new P.c("listAutomaticKeyboardNavigation",!0),Gn=!1;function rn(ft,X){let ae=ft.createScoped(X.getHTMLElement());return bn.bindTo(ae),ae}let dr="workbench.list.horizontalScrolling",Dn="workbench.tree.indent",On="workbench.list.smoothScrolling";function qt(ft){return ft.getValue("workbench.list.multiSelectModifier")==="alt"}class I extends f.a{constructor(X){super(),this.configurationService=X,this.useAltAsMultipleSelectionModifier=qt(X),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(X=>{X.affectsConfiguration("workbench.list.multiSelectModifier")&&(this.useAltAsMultipleSelectionModifier=qt(this.configurationService))}))}isSelectionSingleChangeEvent(X){return this.useAltAsMultipleSelectionModifier?X.browserEvent.altKey:Object(H.h)(X)}isSelectionRangeChangeEvent(X){return Object(H.g)(X)}}function ne(ft,X,ae){let Ge=new f.b,lt=Object.assign({},ft);if(ft.multipleSelectionSupport!==!1&&!ft.multipleSelectionController){let Ot=new I(X);lt.multipleSelectionController=Ot,Ge.add(Ot)}return lt.keyboardNavigationDelegate={mightProducePrintableCharacter:Ot=>ae.mightProducePrintableCharacter(Ot)},lt.smoothScrolling=X.getValue(On),[lt,Ge]}let _e=class extends H.c{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le){let ue=lt.horizontalScrolling!==void 0?lt.horizontalScrolling:ye.getValue(dr),[qe,Ze]=ne(lt,ye,le);super(ft,X,ae,Ge,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(T.d)(ti.getColorTheme(),T.e)),qe),{horizontalScrolling:ue})),this.disposables.add(Ze),this.contextKeyService=rn(Ot,this),this.themeService=ti,Fn.bindTo(this.contextKeyService).set(lt.multipleSelectionSupport!==!1),this.listHasSelectionOrFocus=Nn.bindTo(this.contextKeyService),this.listDoubleSelection=Hn.bindTo(this.contextKeyService),this.listMultiSelection=Jn.bindTo(this.contextKeyService),this.horizontalScrolling=lt.horizontalScrolling,this._useAltAsMultipleSelectionModifier=qt(ye),this.disposables.add(this.contextKeyService),this.disposables.add(Gt.register(this)),lt.overrideStyles&&this.updateStyles(lt.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let tt=this.getSelection(),ot=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(tt.length>0||ot.length>0),this.listMultiSelection.set(tt.length>1),this.listDoubleSelection.set(tt.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let tt=this.getSelection(),ot=this.getFocus();this.listHasSelectionOrFocus.set(tt.length>0||ot.length>0)})),this.disposables.add(ye.onDidChangeConfiguration(tt=>{tt.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ye));let ot={};if(tt.affectsConfiguration(dr)&&this.horizontalScrolling===void 0){let zt=ye.getValue(dr);ot=Object.assign(Object.assign({},ot),{horizontalScrolling:zt})}if(tt.affectsConfiguration(On)){let zt=ye.getValue(On);ot=Object.assign(Object.assign({},ot),{smoothScrolling:zt})}Object.keys(ot).length>0&&this.updateOptions(ot)}))}updateOptions(ft){super.updateOptions(ft),ft.overrideStyles&&this.updateStyles(ft.overrideStyles)}dispose(){super.dispose(),this._styler&&this._styler.dispose()}updateStyles(ft){this._styler&&this._styler.dispose(),this._styler=Object(T.b)(this,this.themeService,ft)}};_e=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a)],_e);let Fe=class extends class{constructor(ft,X,ae,Ge,lt={}){let Ot=()=>this.model,Gt=Ge.map(ti=>new W(ti,Ot));this.list=new H.c(ft,X,ae,Gt,function(ti,ye){return Object.assign(Object.assign({},ye),{accessibilityProvider:ye.accessibilityProvider&&new Q(ti,ye.accessibilityProvider)})}(Ot,lt))}updateOptions(ft){this.list.updateOptions(ft)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return E.b.map(this.list.onMouseDblClick,({element:ft,index:X,browserEvent:ae})=>({element:ft===void 0?void 0:this._model.get(ft),index:X,browserEvent:ae}))}get onPointer(){return E.b.map(this.list.onPointer,({element:ft,index:X,browserEvent:ae})=>({element:ft===void 0?void 0:this._model.get(ft),index:X,browserEvent:ae}))}get onDidChangeFocus(){return E.b.map(this.list.onDidChangeFocus,({elements:ft,indexes:X,browserEvent:ae})=>({elements:ft.map(Ge=>this._model.get(Ge)),indexes:X,browserEvent:ae}))}get onDidChangeSelection(){return E.b.map(this.list.onDidChangeSelection,({elements:ft,indexes:X,browserEvent:ae})=>({elements:ft.map(Ge=>this._model.get(Ge)),indexes:X,browserEvent:ae}))}get model(){return this._model}set model(ft){this._model=ft,this.list.splice(0,this.list.length,Object(O.s)(ft.length))}getFocus(){return this.list.getFocus()}setSelection(ft,X){this.list.setSelection(ft,X)}getSelection(){return this.list.getSelection()}style(ft){this.list.style(ft)}dispose(){this.list.dispose()}}{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le){let ue=lt.horizontalScrolling!==void 0?lt.horizontalScrolling:ye.getValue(dr),[qe,Ze]=ne(lt,ye,le);super(ft,X,ae,Ge,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(T.d)(ti.getColorTheme(),T.e)),qe),{horizontalScrolling:ue})),this.disposables=new f.b,this.disposables.add(Ze),this.contextKeyService=rn(Ot,this),this.horizontalScrolling=lt.horizontalScrolling,Fn.bindTo(this.contextKeyService).set(lt.multipleSelectionSupport!==!1),this._useAltAsMultipleSelectionModifier=qt(ye),this.disposables.add(this.contextKeyService),this.disposables.add(Gt.register(this)),lt.overrideStyles&&this.disposables.add(Object(T.b)(this,ti,lt.overrideStyles)),this.disposables.add(ye.onDidChangeConfiguration(tt=>{tt.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ye));let ot={};if(tt.affectsConfiguration(dr)&&this.horizontalScrolling===void 0){let zt=ye.getValue(dr);ot=Object.assign(Object.assign({},ot),{horizontalScrolling:zt})}if(tt.affectsConfiguration(On)){let zt=ye.getValue(On);ot=Object.assign(Object.assign({},ot),{smoothScrolling:zt})}Object.keys(ot).length>0&&this.updateOptions(ot)}))}dispose(){super.dispose(),this.disposables.dispose()}};Fe=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a)],Fe);class Xe extends f.a{constructor(X,ae){var Ge,lt;super(),this.widget=X,this._onDidOpen=new E.a,this.onDidOpen=this._onDidOpen.event,this.openOnFocus=(Ge=ae==null?void 0:ae.openOnFocus)!==null&&Ge!==void 0&&Ge,this._register(E.b.filter(this.widget.onDidChangeSelection,Ot=>Ot.browserEvent instanceof KeyboardEvent)(Ot=>this.onSelectionFromKeyboard(Ot))),this._register(this.widget.onPointer(Ot=>this.onPointer(Ot.browserEvent))),this._register(this.widget.onMouseDblClick(Ot=>this.onMouseDblClick(Ot.browserEvent))),this.openOnFocus&&this._register(E.b.filter(this.widget.onDidChangeFocus,Ot=>Ot.browserEvent instanceof KeyboardEvent)(Ot=>this.onFocusFromKeyboard(Ot))),typeof(ae==null?void 0:ae.openOnSingleClick)!="boolean"&&(ae==null?void 0:ae.configurationService)?(this.openOnSingleClick=(ae==null?void 0:ae.configurationService.getValue("workbench.list.openMode"))!=="doubleClick",this._register(ae==null?void 0:ae.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(ae==null?void 0:ae.configurationService.getValue("workbench.list.openMode"))!=="doubleClick"}))):this.openOnSingleClick=(lt=ae==null?void 0:ae.openOnSingleClick)===null||lt===void 0||lt}onFocusFromKeyboard(X){let ae=this.widget.getFocus();this.widget.setSelection(ae,X.browserEvent);let Ge=typeof X.browserEvent.preserveFocus!="boolean"||X.browserEvent.preserveFocus;this._open(Ge,!1,!1,X.browserEvent)}onSelectionFromKeyboard(X){if(X.elements.length!==1)return;let ae=typeof X.browserEvent.preserveFocus!="boolean"||X.browserEvent.preserveFocus;this._open(ae,!1,!1,X.browserEvent)}onPointer(X){if(!this.openOnSingleClick||X.detail===2)return;let ae=X.button===1,Ge=X.ctrlKey||X.metaKey||X.altKey;this._open(!0,ae,Ge,X)}onMouseDblClick(X){if(!X)return;let ae=X.ctrlKey||X.metaKey||X.altKey;this._open(!1,!0,ae,X)}_open(X,ae,Ge,lt){this._onDidOpen.fire({editorOptions:{preserveFocus:X,pinned:ae,revealIfVisible:!0},sideBySide:Ge,element:this.widget.getSelection()[0],browserEvent:lt})}}class rt extends Xe{constructor(X,ae){super(X,ae)}}function Mt(ft,X){let ae=!1;return Ge=>{if(ae)return ae=!1,!1;let lt=X.softDispatch(Ge,ft);return lt&<.enterChord?(ae=!0,!1):(ae=!1,!0)}}let Dt=class extends Oi{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le,ue){let{options:qe,getAutomaticKeyboardNavigation:Ze,disposable:tt}=wi(X,lt,Ot,ye,le,ue);super(ft,X,ae,Ge,qe),this.disposables.add(tt),this.internals=new Ti(this,lt,Ze,lt.overrideStyles,Ot,Gt,ti,ye,ue),this.disposables.add(this.internals)}};Dt=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a),Wi(10,Si.b)],Dt);let Tt=class extends vi{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le,ue){let{options:qe,getAutomaticKeyboardNavigation:Ze,disposable:tt}=wi(X,lt,Ot,ye,le,ue);super(ft,X,ae,Ge,qe),this.disposables.add(tt),this.internals=new Ti(this,lt,Ze,lt.overrideStyles,Ot,Gt,ti,ye,ue),this.disposables.add(this.internals)}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};Tt=Pi([Wi(5,P.b),Wi(6,xn),Wi(7,N.c),Wi(8,C.a),Wi(9,k.a),Wi(10,Si.b)],Tt);let Ht=class extends si{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le,ue,qe){let{options:Ze,getAutomaticKeyboardNavigation:tt,disposable:ot}=wi(X,Ot,Gt,le,ue,qe);super(ft,X,ae,Ge,lt,Ze),this.disposables.add(ot),this.internals=new Ti(this,Ot,tt,Ot.overrideStyles,Gt,ti,ye,le,qe),this.disposables.add(this.internals)}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};Ht=Pi([Wi(6,P.b),Wi(7,xn),Wi(8,N.c),Wi(9,C.a),Wi(10,k.a),Wi(11,Si.b)],Ht);let jt=class extends Hi{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le,ue,qe){let{options:Ze,getAutomaticKeyboardNavigation:tt,disposable:ot}=wi(X,Ot,Gt,le,ue,qe);super(ft,X,ae,Ge,lt,Ze),this.disposables.add(ot),this.internals=new Ti(this,Ot,tt,Ot.overrideStyles,Gt,ti,ye,le,qe),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(ft={}){super.updateOptions(ft),ft.overrideStyles&&this.internals.updateStyleOverrides(ft.overrideStyles)}};jt=Pi([Wi(6,P.b),Wi(7,xn),Wi(8,N.c),Wi(9,C.a),Wi(10,k.a),Wi(11,Si.b)],jt);let Kt=class extends Et{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye,le,ue,qe,Ze){let{options:tt,getAutomaticKeyboardNavigation:ot,disposable:zt}=wi(X,Gt,ti,ue,qe,Ze);super(ft,X,ae,Ge,lt,Ot,tt),this.disposables.add(zt),this.internals=new Ti(this,Gt,ot,Gt.overrideStyles,ti,ye,le,ue,Ze),this.disposables.add(this.internals)}};function wi(ft,X,ae,Ge,lt,Ot){br.bindTo(ae),Gn||(pn.bindTo(ae),Gn=!0);let Gt=()=>{let Ze=ae.getContextKeyValue("listAutomaticKeyboardNavigation");return Ze&&(Ze=Ge.getValue("workbench.list.automaticKeyboardNavigation")),Ze},ti=Ot.isScreenReaderOptimized()?"simple":Ge.getValue("workbench.list.keyboardNavigation"),ye=X.horizontalScrolling!==void 0?X.horizontalScrolling:Ge.getValue(dr),[le,ue]=ne(X,Ge,lt),qe=X.additionalScrollHeight;return{getAutomaticKeyboardNavigation:Gt,disposable:ue,options:Object.assign(Object.assign({keyboardSupport:!1},le),{indent:Ge.getValue(Dn),renderIndentGuides:Ge.getValue("workbench.tree.renderIndentGuides"),smoothScrolling:Ge.getValue(On),automaticKeyboardNavigation:Gt(),simpleKeyboardNavigation:ti==="simple",filterOnType:ti==="filter",horizontalScrolling:ye,keyboardNavigationEventFilter:Mt(ft,lt),additionalScrollHeight:qe,hideTwistiesOfChildlessElements:X.hideTwistiesOfChildlessElements,expandOnlyOnDoubleClick:Ge.getValue("workbench.list.openMode")==="doubleClick"})}}Kt=Pi([Wi(7,P.b),Wi(8,xn),Wi(9,N.c),Wi(10,C.a),Wi(11,k.a),Wi(12,Si.b)],Kt);let Ti=class{constructor(ft,X,ae,Ge,lt,Ot,Gt,ti,ye){this.tree=ft,this.themeService=Gt,this.disposables=[],this.contextKeyService=rn(lt,ft),Fn.bindTo(this.contextKeyService).set(X.multipleSelectionSupport!==!1),this.hasSelectionOrFocus=Nn.bindTo(this.contextKeyService),this.hasDoubleSelection=Hn.bindTo(this.contextKeyService),this.hasMultiSelection=Jn.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=qt(ti);let le=new Set;le.add("listAutomaticKeyboardNavigation");let ue=()=>{let qe=ye.isScreenReaderOptimized()?"simple":ti.getValue("workbench.list.keyboardNavigation");ft.updateOptions({simpleKeyboardNavigation:qe==="simple",filterOnType:qe==="filter"})};this.updateStyleOverrides(Ge),this.disposables.push(this.contextKeyService,Ot.register(ft),ft.onDidChangeSelection(()=>{let qe=ft.getSelection(),Ze=ft.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(qe.length>0||Ze.length>0),this.hasMultiSelection.set(qe.length>1),this.hasDoubleSelection.set(qe.length===2)})}),ft.onDidChangeFocus(()=>{let qe=ft.getSelection(),Ze=ft.getFocus();this.hasSelectionOrFocus.set(qe.length>0||Ze.length>0)}),ti.onDidChangeConfiguration(qe=>{let Ze={};if(qe.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=qt(ti)),qe.affectsConfiguration(Dn)){let tt=ti.getValue(Dn);Ze=Object.assign(Object.assign({},Ze),{indent:tt})}if(qe.affectsConfiguration("workbench.tree.renderIndentGuides")){let tt=ti.getValue("workbench.tree.renderIndentGuides");Ze=Object.assign(Object.assign({},Ze),{renderIndentGuides:tt})}if(qe.affectsConfiguration(On)){let tt=ti.getValue(On);Ze=Object.assign(Object.assign({},Ze),{smoothScrolling:tt})}if(qe.affectsConfiguration("workbench.list.keyboardNavigation")&&ue(),qe.affectsConfiguration("workbench.list.automaticKeyboardNavigation")&&(Ze=Object.assign(Object.assign({},Ze),{automaticKeyboardNavigation:ae()})),qe.affectsConfiguration(dr)&&X.horizontalScrolling===void 0){let tt=ti.getValue(dr);Ze=Object.assign(Object.assign({},Ze),{horizontalScrolling:tt})}qe.affectsConfiguration("workbench.list.openMode")&&(Ze=Object.assign(Object.assign({},Ze),{expandOnlyOnDoubleClick:ti.getValue("workbench.list.openMode")==="doubleClick"})),Object.keys(Ze).length>0&&ft.updateOptions(Ze)}),this.contextKeyService.onDidChangeContext(qe=>{qe.affectsSome(le)&&ft.updateOptions({automaticKeyboardNavigation:ae()})}),ye.onDidChangeScreenReaderOptimized(()=>ue())),this.navigator=new rt(ft,Object.assign({configurationService:ti},X)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateStyleOverrides(ft){Object(f.f)(this.styler),this.styler=ft?Object(T.b)(this.tree,this.themeService,ft):f.a.None}dispose(){this.disposables=Object(f.f)(this.disposables),Object(f.f)(this.styler),this.styler=void 0}};Ti=Pi([Wi(4,P.b),Wi(5,xn),Wi(6,N.c),Wi(7,C.a),Wi(8,Si.b)],Ti),l.a.as(S.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(y.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{"workbench.list.multiSelectModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(y.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(y.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(y.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(y.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},[dr]:{type:"boolean",default:!1,description:Object(y.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Dn]:{type:"number",default:8,minimum:0,maximum:40,description:Object(y.a)("tree indent setting","Controls tree indentation in pixels.")},"workbench.tree.renderIndentGuides":{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(y.a)("render tree indent guides","Controls whether the tree should render indent guides.")},[On]:{type:"boolean",default:!1,description:Object(y.a)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},"workbench.list.keyboardNavigation":{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(y.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(y.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(y.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(y.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},"workbench.list.automaticKeyboardNavigation":{type:"boolean",default:!0,markdownDescription:Object(y.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")}}})},function(Ie,w){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(h){typeof window=="object"&&(r=window)}Ie.exports=r},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(34),f=r(11);let O={clipboard:{writeText:f.g||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:f.g||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:(()=>{if(h.f){let H=navigator.userAgent.indexOf("Edge/"),E=parseInt(navigator.userAgent.substring(H+5,navigator.userAgent.indexOf(".",H)),10);if(!E||E>=12&&E<=16)return!1}return!0})()},keyboard:f.g||h.k?0:navigator.keyboard||h.j?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("themeService")},function(Ie,w,r){"use strict";(function(h){r.d(w,"a",function(){return P});var f,O,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((O={})[58]="%3A",O[47]="%2F",O[63]="%3F",O[35]="%23",O[91]="%5B",O[93]="%5D",O[64]="%40",O[33]="%21",O[36]="%24",O[38]="%26",O[39]="%27",O[40]="%28",O[41]="%29",O[42]="%2A",O[43]="%2B",O[44]="%2C",O[59]="%3B",O[61]="%3D",O[32]="%20",O);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,r(86))},function(Ie,w,r){"use strict";r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f});let h={ctrlCmd:!1,alt:!1};var f;(function(O){O[O.NONE=0]="NONE",O[O.FIRST=1]="FIRST",O[O.SECOND=2]="SECOND",O[O.LAST=3]="LAST"})(f||(f={}))},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return f}),r.d(w,"language",function(){return O});var h=r(95),f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:h.a.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:h.a.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:h.a.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:h.a.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},O={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},function(Ie,w,r){"use strict";function h(O){return O&&typeof O.id=="string"}r.d(w,"b",function(){return h}),r.d(w,"a",function(){return f});let f={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},function(Ie,w,r){"use strict";(function(h){r.d(w,"a",function(){return P});var f,O,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((O={})[58]="%3A",O[47]="%2F",O[63]="%3F",O[35]="%23",O[91]="%5B",O[93]="%5D",O[64]="%40",O[33]="%21",O[36]="%24",O[38]="%26",O[39]="%27",O[40]="%28",O[41]="%29",O[42]="%2A",O[43]="%2B",O[44]="%2C",O[59]="%3B",O[61]="%3D",O[32]="%20",O);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,r(86))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r(214);let h="monaco-mouse-cursor-text"},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r.d(w,"c",function(){return W}),r.d(w,"b",function(){return Q});var h=r(0),f=r(6),O=r(12),H=r(39),E=r(56);let ge=new class{constructor(){this._onDidChangeLanguages=new f.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(y){return this._languages.push(y),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let C=0,S=this._languages.length;C<S;C++)if(this._languages[C]===y)return void this._languages.splice(C,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}};E.a.add("editor.modesRegistry",ge);let W="plaintext",Q=new O.r(W,1);ge.registerLanguage({id:W,extensions:[".txt"],aliases:[h.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),H.a.register(Q,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h}),r.d(w,"b",function(){return f});class h{constructor(H){this._prefix=H,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}let f=new h("id#")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E}),r.d(w,"c",function(){return ge});var h=r(18),f=r(23),O=r(14);let H=Object(h.c)("IWorkspaceEditService");class E{constructor(y){this.metadata=y}static convert(y){return y.edits.map(C=>{if(S=C,Object(O.i)(S)&&f.a.isUri(S.resource)&&Object(O.i)(S.edit))return new ge(C.resource,C.edit,C.modelVersionId,C.metadata);var S;if(function(P){return Object(O.i)(P)&&(Boolean(P.newUri)||Boolean(P.oldUri))}(C))return new W(C.oldUri,C.newUri,C.options,C.metadata);throw new Error("Unsupported edit")})}}class ge extends E{constructor(y,C,S,P){super(P),this.resource=y,this.textEdit=C,this.versionId=S,this.metadata=P}}class W extends E{constructor(y,C,S,P){super(P),this.oldResource=y,this.newResource=C,this.options=S,this.metadata=P}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h});class h{constructor(...O){this._entries=new Map;for(let[H,E]of O)this.set(H,E)}set(O,H){let E=this._entries.get(O);return this._entries.set(O,H),E}has(O){return this._entries.has(O)}get(O){return this._entries.get(O)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(18);let f=Object(h.c)("undoRedoService");class O{constructor(E,ge){this.resource=E,this.elements=ge}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O}),r.d(w,"c",function(){return H}),r.d(w,"b",function(){return E});var h=r(71),f=r(8);let O="$(";function H(ge){let W=ge.indexOf(O);return W===-1?{text:ge}:function(Q,y){let C=[],S="";function P(j){if(j){S+=j;for(let ie of j)C.push(N)}}let V,k,l=-1,T="",N=0,b=y,g=Q.length;for(P(Q.substr(0,y));b<g;)V=Q[b],k=Q[b+1],V===O[0]&&k===O[1]?(l=b,P(T),T=O,b++):V===")"&&l!==-1?(N+=b-l+1,l=-1,T=""):l!==-1?/^[a-z0-9\-]$/i.test(V)?T+=V:(P(T),l=-1,T=""):P(V),b++;return P(T),{text:S,codiconOffsets:C}}(ge,W)}function E(ge,W,Q=!1){let{text:y,codiconOffsets:C}=W;if(!C||C.length===0)return Object(h.g)(ge,y,Q);let S=Object(f.K)(y," "),P=y.length-S.length,V=Object(h.g)(ge,S,Q);if(V)for(let k of V){let l=C[k.start+P]+P;k.start+=l,k.end+=l}return V}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});var h=r(18);let f=Object(h.c)("textResourceConfigurationService"),O=Object(h.c)("textResourcePropertiesService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return C}),r(246);var h=r(2),f=r(11),O=r(14),H=r(61),E=r(69),ge=r(6),W=r(1),Q=r(44);let y=new ge.a;class C extends h.a{constructor(P,V,k){super(),this._state=3,this._onDidEnablementChange=this._register(new ge.a),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new ge.a),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new ge.a),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new ge.a),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new ge.a),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new h.b),this.orthogonalEndSashDisposables=this._register(new h.b),this.el=Object(W.p)(P,Object(W.a)(".monaco-sash")),f.f&&Object(W.e)(this.el,"mac"),this._register(Object(Q.a)(this.el,"mousedown")(this.onMouseDown,this)),this._register(Object(Q.a)(this.el,"dblclick")(this.onMouseDoubleClick,this)),this._register(H.b.addTarget(this.el)),this._register(Object(Q.a)(this.el,H.a.Start)(this.onTouchStart,this)),typeof k.size=="number"?(this.size=k.size,k.orientation===0?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=4,this._register(y.event(l=>{this.size=l,this.layout()}))),this.hidden=!1,this.layoutProvider=V,this.orthogonalStartSash=k.orthogonalStartSash,this.orthogonalEndSash=k.orthogonalEndSash,this.orientation=k.orientation||0,this.orientation===1?(Object(W.e)(this.el,"horizontal"),Object(W.Q)(this.el,"vertical")):(Object(W.Q)(this.el,"horizontal"),Object(W.e)(this.el,"vertical")),Object(W.ab)(this.el,"debug",!1),this.layout()}get state(){return this._state}set state(P){this._state!==P&&(Object(W.ab)(this.el,"disabled",P===0),Object(W.ab)(this.el,"minimum",P===1),Object(W.ab)(this.el,"maximum",P===2),this._state=P,this._onDidEnablementChange.fire(P))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(P){this.orthogonalStartSashDisposables.clear(),P?(this.orthogonalStartSashDisposables.add(P.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(P.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=P}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(P){this.orthogonalEndSashDisposables.clear(),P?(this.orthogonalEndSashDisposables.add(P.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(P.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=P}onMouseDown(P){W.b.stop(P,!1);let V=!1;if(!P.__orthogonalSashEvent){let q=this.getOrthogonalSash(P);q&&(V=!0,P.__orthogonalSashEvent=!0,q.onMouseDown(P))}if(this.linkedSash&&!P.__linkedSashEvent&&(P.__linkedSashEvent=!0,this.linkedSash.onMouseDown(P)),!this.state)return;let k=[...Object(W.D)("iframe"),...Object(W.D)("webview")];for(let q of k)q.style.pointerEvents="none";let l=new E.a(P),T=l.posx,N=l.posy,b=l.altKey,g={startX:T,currentX:T,startY:N,currentY:N,altKey:b};Object(W.e)(this.el,"active"),this._onDidStart.fire(g);let j=Object(W.v)(this.el),ie=()=>{let q="";q=V?"all-scroll":this.orientation===1?this.state===1?"s-resize":this.state===2?"n-resize":f.f?"row-resize":"ns-resize":this.state===1?"e-resize":this.state===2?"w-resize":f.f?"col-resize":"ew-resize",j.innerHTML=`* { cursor: ${q} !important; }`},U=new h.b;ie(),V||this.onDidEnablementChange(ie,null,U),Object(Q.a)(window,"mousemove")(q=>{W.b.stop(q,!1);let B=new E.a(q),se={startX:T,currentX:B.posx,startY:N,currentY:B.posy,altKey:b};this._onDidChange.fire(se)},null,U),Object(Q.a)(window,"mouseup")(q=>{W.b.stop(q,!1),this.el.removeChild(j),Object(W.Q)(this.el,"active"),this._onDidEnd.fire(),U.dispose();for(let B of k)B.style.pointerEvents="auto"},null,U)}onMouseDoubleClick(P){let V=this.getOrthogonalSash(P);V&&V._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}onTouchStart(P){W.b.stop(P);let V=[],k=P.pageX,l=P.pageY,T=P.altKey;this._onDidStart.fire({startX:k,currentX:k,startY:l,currentY:l,altKey:T}),V.push(Object(W.i)(this.el,H.a.Change,N=>{O.h(N.pageX)&&O.h(N.pageY)&&this._onDidChange.fire({startX:k,currentX:N.pageX,startY:l,currentY:N.pageY,altKey:T})})),V.push(Object(W.i)(this.el,H.a.End,N=>{this._onDidEnd.fire(),Object(h.f)(V)}))}layout(){if(this.orientation===0){let P=this.layoutProvider;this.el.style.left=P.getVerticalSashLeft(this)-this.size/2+"px",P.getVerticalSashTop&&(this.el.style.top=P.getVerticalSashTop(this)+"px"),P.getVerticalSashHeight&&(this.el.style.height=P.getVerticalSashHeight(this)+"px")}else{let P=this.layoutProvider;this.el.style.top=P.getHorizontalSashTop(this)-this.size/2+"px",P.getHorizontalSashLeft&&(this.el.style.left=P.getHorizontalSashLeft(this)+"px"),P.getHorizontalSashWidth&&(this.el.style.width=P.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}onOrthogonalStartSashEnablementChange(P){Object(W.ab)(this.el,"orthogonal-start",P!==0)}onOrthogonalEndSashEnablementChange(P){Object(W.ab)(this.el,"orthogonal-end",P!==0)}getOrthogonalSash(P){if(this.orientation===0){if(P.offsetY<=this.size)return this.orthogonalStartSash;if(P.offsetY>=this.el.clientHeight-this.size)return this.orthogonalEndSash}else{if(P.offsetX<=this.size)return this.orthogonalStartSash;if(P.offsetX>=this.el.clientWidth-this.size)return this.orthogonalEndSash}}dispose(){super.dispose(),this.el.remove()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O}),r(251),r(255),r(257);var h=r(17);let f=new class{constructor(){this.onDidChange=h.c.onDidRegister}getCSS(){let H=[];for(let E of h.c.all)H.push(O(E));return H.join(` +`)}};function O(H){let E=H.definition;for(;E instanceof h.a;)E=E.definition;return`.codicon-${H.id}:before { content: '${E.character}'; }`}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return E});var h=r(8);class f{constructor(W,Q,y,C){this.startColumn=W,this.endColumn=Q,this.className=y,this.type=C}static _equals(W,Q){return W.startColumn===Q.startColumn&&W.endColumn===Q.endColumn&&W.className===Q.className&&W.type===Q.type}static equalsArr(W,Q){let y=W.length;if(y!==Q.length)return!1;for(let C=0;C<y;C++)if(!f._equals(W[C],Q[C]))return!1;return!0}static filter(W,Q,y,C){if(W.length===0)return[];let S=[],P=0;for(let V=0,k=W.length;V<k;V++){let l=W[V],T=l.range;if(T.endLineNumber<Q||T.startLineNumber>Q||T.isEmpty()&&(l.type===0||l.type===3))continue;let N=T.startLineNumber===Q?T.startColumn:y,b=T.endLineNumber===Q?T.endColumn:C;S[P++]=new f(N,b,l.inlineClassName,l.type)}return S}static _typeCompare(W,Q){let y=[2,0,1,3];return y[W]-y[Q]}static compare(W,Q){if(W.startColumn===Q.startColumn){if(W.endColumn===Q.endColumn){let y=f._typeCompare(W.type,Q.type);return y===0?W.className<Q.className?-1:W.className>Q.className?1:0:y}return W.endColumn-Q.endColumn}return W.startColumn-Q.startColumn}}class O{constructor(W,Q,y,C){this.startOffset=W,this.endOffset=Q,this.className=y,this.metadata=C}}class H{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(W){let Q=0;for(let y=0,C=W.length;y<C;y++)Q|=W[y];return Q}consumeLowerThan(W,Q,y){for(;this.count>0&&this.stopOffsets[0]<W;){let C=0;for(;C+1<this.count&&this.stopOffsets[C]===this.stopOffsets[C+1];)C++;y.push(new O(Q,this.stopOffsets[C],this.classNames.join(" "),H._metadata(this.metadata))),Q=this.stopOffsets[C]+1,this.stopOffsets.splice(0,C+1),this.classNames.splice(0,C+1),this.metadata.splice(0,C+1),this.count-=C+1}return this.count>0&&Q<W&&(y.push(new O(Q,W-1,this.classNames.join(" "),H._metadata(this.metadata))),Q=W),Q}insert(W,Q,y){if(this.count===0||this.stopOffsets[this.count-1]<=W)this.stopOffsets.push(W),this.classNames.push(Q),this.metadata.push(y);else for(let C=0;C<this.count;C++)if(this.stopOffsets[C]>=W){this.stopOffsets.splice(C,0,W),this.classNames.splice(C,0,Q),this.metadata.splice(C,0,y);break}this.count++}}class E{static normalize(W,Q){if(Q.length===0)return[];let y=[],C=new H,S=0;for(let P=0,V=Q.length;P<V;P++){let k=Q[P],l=k.startColumn,T=k.endColumn,N=k.className,b=k.type===1?2:k.type===2?4:0;if(l>1){let ie=W.charCodeAt(l-2);h.F(ie)&&l--}if(T>1){let ie=W.charCodeAt(T-2);h.F(ie)&&T--}let g=l-1,j=T-2;S=C.consumeLowerThan(g,S,y),C.count===0&&(S=g),C.insert(j,N,b)}return C.consumeLowerThan(1073741824,S,y),y}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H});var h=r(46),f=r(17),O=r(8);class H{constructor(ge,W){this.supportCodicons=W,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",ge.appendChild(this.domNode)}get element(){return this.domNode}set(ge,W=[],Q="",y){ge||(ge=""),y&&(ge=H.escapeNewLines(ge,W)),this.didEverRender&&this.text===ge&&this.title===Q&&h.e(this.highlights,W)||(Array.isArray(W)||(W=[]),this.text=ge,this.title=Q,this.highlights=W,this.render())}render(){let ge="",W=0;for(let Q of this.highlights){if(Q.end===Q.start)continue;if(W<Q.start){ge+="<span>";let C=this.text.substring(W,Q.start);ge+=this.supportCodicons?Object(f.f)(Object(O.u)(C)):Object(O.u)(C),ge+="</span>",W=Q.end}Q.extraClasses?ge+=`<span class="highlight ${Q.extraClasses}">`:ge+='<span class="highlight">';let y=this.text.substring(Q.start,Q.end);ge+=this.supportCodicons?Object(f.f)(Object(O.u)(y)):Object(O.u)(y),ge+="</span>",W=Q.end}if(W<this.text.length){ge+="<span>";let Q=this.text.substring(W);ge+=this.supportCodicons?Object(f.f)(Object(O.u)(Q)):Object(O.u)(Q),ge+="</span>"}this.domNode.innerHTML=ge,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(ge,W){let Q=0,y=0;return ge.replace(/\r\n|\r|\n/g,(C,S)=>{y=C===`\r +`?-1:0,S+=Q;for(let P of W)P.end<=S||(P.start>=S&&(P.start+=y),P.end>=S&&(P.end+=y));return Q+=y,"\u23CE"})}}},,function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(11);let f=h.b.performance&&typeof h.b.performance.now=="function";class O{constructor(E){this._highResolution=f&&E,this._startTime=this._now(),this._stopTime=-1}static create(E=!0){return new O(E)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?h.b.performance.now():new Date().getTime()}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("labelService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E});var h=r(11),f=r(135);let O=h.f?1.5:1.35;class H{constructor(W){this.zoomLevel=W.zoomLevel,this.fontFamily=String(W.fontFamily),this.fontWeight=String(W.fontWeight),this.fontSize=W.fontSize,this.fontFeatureSettings=W.fontFeatureSettings,this.lineHeight=0|W.lineHeight,this.letterSpacing=W.letterSpacing}static createFromValidatedSettings(W,Q,y){let C=W.get(35),S=W.get(39),P=W.get(38),V=W.get(37),k=W.get(51),l=W.get(48);return H._create(C,S,P,V,k,l,Q,y)}static _create(W,Q,y,C,S,P,V,k){S===0?S=Math.round(O*y):S<8&&(S=8);let l=1+(k?0:.1*f.a.getZoomLevel());return new H({zoomLevel:V,fontFamily:W,fontWeight:Q,fontSize:y*=l,fontFeatureSettings:C,lineHeight:S*=l,letterSpacing:P})}getId(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class E extends H{constructor(W,Q){super(W),this.isTrusted=Q,this.isMonospace=W.isMonospace,this.typicalHalfwidthCharacterWidth=W.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=W.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=W.canUseHalfwidthRightwardsArrow,this.spaceWidth=W.spaceWidth,this.middotWidth=W.middotWidth,this.wsmiddotWidth=W.wsmiddotWidth,this.maxDigitWidth=W.maxDigitWidth}equals(W){return this.fontFamily===W.fontFamily&&this.fontWeight===W.fontWeight&&this.fontSize===W.fontSize&&this.fontFeatureSettings===W.fontFeatureSettings&&this.lineHeight===W.lineHeight&&this.letterSpacing===W.letterSpacing&&this.typicalHalfwidthCharacterWidth===W.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===W.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===W.canUseHalfwidthRightwardsArrow&&this.spaceWidth===W.spaceWidth&&this.middotWidth===W.middotWidth&&this.wsmiddotWidth===W.wsmiddotWidth&&this.maxDigitWidth===W.maxDigitWidth}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return P}),r.d(w,"a",function(){return b}),r.d(w,"d",function(){return se}),r.d(w,"c",function(){return ke});var h=r(0),f=r(6),O=r(2),H=r(46),E=r(16),ge=r(26),W=r(135),Q=r(160),y=r(128),C=r(56),S=r(189);let P=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new f.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(xe){this._tabFocus!==xe&&(this._tabFocus=xe,this._onDidChangeTabFocus.fire(this._tabFocus))}},V=Object.hasOwnProperty;class k{constructor(){this._values=[]}_read(Y){return this._values[Y]}get(Y){return this._values[Y]}_write(Y,Z){this._values[Y]=Z}}class l{constructor(){this._values=[]}_read(Y){return this._values[Y]}_write(Y,Z){this._values[Y]=Z}}class T{static readOptions(Y){let Z=Y,te=new l;for(let he of ge.k){let Ce=he.name==="_never_"?void 0:Z[he.name];te._write(he.id,Ce)}return te}static validateOptions(Y){let Z=new ge.j;for(let te of ge.k)Z._write(te.id,te.validate(Y._read(te.id)));return Z}static computeOptions(Y,Z){let te=new k;for(let he of ge.k)te._write(he.id,he.compute(Z,te,Y._read(he.id)));return te}static _deepEquals(Y,Z){if(typeof Y!="object"||typeof Z!="object")return Y===Z;if(Array.isArray(Y)||Array.isArray(Z))return!(!Array.isArray(Y)||!Array.isArray(Z))&&E.g(Y,Z);for(let te in Y)if(!T._deepEquals(Y[te],Z[te]))return!1;return!0}static checkEquals(Y,Z){let te=[],he=!1;for(let Ce of ge.k){let Ae=!T._deepEquals(Y._read(Ce.id),Z._read(Ce.id));te[Ce.id]=Ae,Ae&&(he=!0)}return he?new ge.b(te):null}}function N(xe){let Y=H.c(xe);return function(Z){let te=Z.wordWrap;te===!0?Z.wordWrap="on":te===!1&&(Z.wordWrap="off");let he=Z.lineNumbers;he===!0?Z.lineNumbers="on":he===!1&&(Z.lineNumbers="off"),Z.autoClosingBrackets===!1&&(Z.autoClosingBrackets="never",Z.autoClosingQuotes="never",Z.autoSurround="never"),Z.cursorBlinking==="visible"&&(Z.cursorBlinking="solid");let Ce=Z.renderWhitespace;Ce===!0?Z.renderWhitespace="boundary":Ce===!1&&(Z.renderWhitespace="none");let Ae=Z.renderLineHighlight;Ae===!0?Z.renderLineHighlight="line":Ae===!1&&(Z.renderLineHighlight="none");let L=Z.acceptSuggestionOnEnter;L===!0?Z.acceptSuggestionOnEnter="on":L===!1&&(Z.acceptSuggestionOnEnter="off");let nt=Z.tabCompletion;nt===!1?Z.tabCompletion="off":nt===!0&&(Z.tabCompletion="onlySnippets");let ct=Z.suggest;if(ct&&typeof ct.filteredTypes=="object"&&ct.filteredTypes){let G={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(S.b)(G,z=>{let J=ct.filteredTypes[z.key];J===!1&&(ct[z.value]=J)})}let Ye=Z.hover;Ye===!0?Z.hover={enabled:!0}:Ye===!1&&(Z.hover={enabled:!1});let ht=Z.parameterHints;ht===!0?Z.parameterHints={enabled:!0}:ht===!1&&(Z.parameterHints={enabled:!1});let fe=Z.autoIndent;fe===!0?Z.autoIndent="full":fe===!1&&(Z.autoIndent="advanced");let $=Z.matchBrackets;$===!0?Z.matchBrackets="always":$===!1&&(Z.matchBrackets="never")}(Y),Y}class b extends O.a{constructor(Y,Z){super(),this._onDidChange=this._register(new f.a),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new f.a),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=Y,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new ge.a,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=N(Z),this._readOptions=T.readOptions(this._rawOptions),this._validatedOptions=T.validateOptions(this._readOptions),this._register(W.a.onDidChangeZoomLevel(te=>this._recomputeOptions())),this._register(P.onDidChangeTabFocus(te=>this._recomputeOptions()))}observeReferenceElement(Y){}dispose(){super.dispose()}_recomputeOptions(){let Y=this.options,Z=this._computeInternalOptions();if(Y){let te=T.checkEquals(Y,Z);if(te===null)return;this.options=Z,this._onDidChangeFast.fire(te),this._onDidChange.fire(te)}else this.options=Z}getRawOptions(){return this._rawOptions}_computeInternalOptions(){let Y=this._getEnvConfiguration(),Z=Q.a.createFromValidatedSettings(this._validatedOptions,Y.zoomLevel,this.isSimpleWidget),te={memory:this._computeOptionsMemory,outerWidth:Y.outerWidth,outerHeight:Y.outerHeight,fontInfo:this.readConfiguration(Z),extraEditorClassName:Y.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:Y.emptySelectionClipboard,pixelRatio:Y.pixelRatio,tabFocusMode:P.getTabFocusMode(),accessibilitySupport:Y.accessibilitySupport};return T.computeOptions(this._validatedOptions,te)}static _subsetEquals(Y,Z){for(let te in Z)if(V.call(Z,te)){let he=Z[te],Ce=Y[te];if(Ce===he)continue;if(Array.isArray(Ce)&&Array.isArray(he)){if(!E.g(Ce,he))return!1;continue}if(Ce&&typeof Ce=="object"&&he&&typeof he=="object"){if(!this._subsetEquals(Ce,he))return!1;continue}return!1}return!0}updateOptions(Y){if(Y===void 0)return;let Z=N(Y);b._subsetEquals(this._rawOptions,Z)||(this._rawOptions=H.g(this._rawOptions,Z||{}),this._readOptions=T.readOptions(this._rawOptions),this._validatedOptions=T.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(Y){this._isDominatedByLongLines=Y,this._recomputeOptions()}setMaxLineNumber(Y){let Z=b._digitCount(Y);this._lineNumbersDigitCount!==Z&&(this._lineNumbersDigitCount=Z,this._recomputeOptions())}setViewLineCount(Y){this._viewLineCount!==Y&&(this._viewLineCount=Y,this._recomputeOptions())}static _digitCount(Y){let Z=0;for(;Y;)Y=Math.floor(Y/10),Z++;return Z||1}}let g=Object.freeze({id:"editor",order:5,type:"object",title:h.a("editorConfigurationTitle","Editor"),scope:5}),j=C.a.as(y.a.Configuration),ie=Object.assign(Object.assign({},g),{properties:{"editor.tabSize":{type:"number",default:ge.d.tabSize,minimum:1,markdownDescription:h.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ge.d.insertSpaces,markdownDescription:h.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ge.d.detectIndentation,markdownDescription:h.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ge.d.trimAutoWhitespace,description:h.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ge.d.largeFileOptimizations,description:h.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:h.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[h.a("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),h.a("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),h.a("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:h.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:h.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:h.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:h.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:h.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:h.a("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:h.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:h.a("codeLens","Controls whether the editor shows CodeLens.")}}});for(let xe of ge.k){let Y=xe.schema;if(Y!==void 0)if((U=Y).type!==void 0||U.anyOf!==void 0)ie.properties["editor."+xe.name]=Y;else for(let Z in Y)V.call(Y,Z)&&(ie.properties[Z]=Y[Z])}var U;let q=null;function B(){return q===null&&(q=Object.create(null),Object.keys(ie.properties).forEach(xe=>{q[xe]=!0})),q}function se(xe){return B()["editor."+xe]||!1}function ke(xe){return B()["diffEditor."+xe]||!1}j.registerConfiguration(ie)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ie}),r.d(w,"b",function(){return se});var h=r(46),f=r(2),O=r(61),H=r(1),E=r(6),ge=r(44),W=r(105),Q=r(170),y=r(99);function C(ke,xe){let Y=[];for(let Z of xe){if(ke.start>=Z.range.end)continue;if(ke.end<Z.range.start)break;let te=y.a.intersect(ke,Z.range);y.a.isEmpty(te)||Y.push({range:te,size:Z.size})}return Y}function S({start:ke,end:xe},Y){return{start:ke+Y,end:xe+Y}}class P{constructor(){this.groups=[],this._size=0}splice(xe,Y,Z=[]){let te=Z.length-Y,he=C({start:0,end:xe},this.groups),Ce=C({start:xe+Y,end:Number.POSITIVE_INFINITY},this.groups).map(L=>({range:S(L.range,te),size:L.size})),Ae=Z.map((L,nt)=>({range:{start:xe+nt,end:xe+nt+1},size:L.size}));this.groups=function(...L){return function(nt){let ct=[],Ye=null;for(let ht of nt){let fe=ht.range.start,$=ht.range.end,G=ht.size;Ye&&G===Ye.size?Ye.range.end=$:(Ye={range:{start:fe,end:$},size:G},ct.push(Ye))}return ct}(L.reduce((nt,ct)=>nt.concat(ct),[]))}(he,Ae,Ce),this._size=this.groups.reduce((L,nt)=>L+nt.size*(nt.range.end-nt.range.start),0)}get count(){let xe=this.groups.length;return xe?this.groups[xe-1].range.end:0}get size(){return this._size}indexAt(xe){if(xe<0)return-1;let Y=0,Z=0;for(let te of this.groups){let he=te.range.end-te.range.start,Ce=Z+he*te.size;if(xe<Ce)return Y+Math.floor((xe-Z)/te.size);Y+=he,Z=Ce}return Y}indexAfter(xe){return Math.min(this.indexAt(xe)+1,this.count)}positionAt(xe){if(xe<0)return-1;let Y=0,Z=0;for(let te of this.groups){let he=te.range.end-te.range.start,Ce=Z+he;if(xe<Ce)return Y+(xe-Z)*te.size;Y+=he*te.size,Z=Ce}return-1}}class V{constructor(xe){this.renderers=xe,this.cache=new Map}alloc(xe){let Y=this.getTemplateCache(xe).pop();if(!Y){let Z=Object(H.a)(".monaco-list-row");Y={domNode:Z,templateId:xe,templateData:this.getRenderer(xe).renderTemplate(Z)}}return Y}release(xe){xe&&this.releaseRow(xe)}releaseRow(xe){let{domNode:Y,templateId:Z}=xe;Y&&(Object(H.Q)(Y,"scrolling"),function(te){try{te.parentElement&&te.parentElement.removeChild(te)}catch(he){}}(Y)),this.getTemplateCache(Z).push(xe)}getTemplateCache(xe){let Y=this.cache.get(xe);return Y||(Y=[],this.cache.set(xe,Y)),Y}dispose(){this.cache.forEach((xe,Y)=>{for(let Z of xe)this.getRenderer(Y).disposeTemplate(Z.templateData),Z.domNode=null,Z.templateData=null}),this.cache.clear()}getRenderer(xe){let Y=this.renderers.get(xe);if(!Y)throw new Error("No renderer found for "+xe);return Y}}var k=r(98),l=r(16),T=r(125),N=r(20),b=r(34),g=function(ke,xe,Y,Z){var te,he=arguments.length,Ce=he<3?xe:Z===null?Z=Object.getOwnPropertyDescriptor(xe,Y):Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(ke,xe,Y,Z);else for(var Ae=ke.length-1;Ae>=0;Ae--)(te=ke[Ae])&&(Ce=(he<3?te(Ce):he>3?te(xe,Y,Ce):te(xe,Y))||Ce);return he>3&&Ce&&Object.defineProperty(xe,Y,Ce),Ce};let j={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:ke=>[ke],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0};class ie{constructor(xe){this.elements=xe}update(){}getData(){return this.elements}}class U{constructor(xe){this.elements=xe}update(){}getData(){return this.elements}}class q{constructor(){this.types=[],this.files=[]}update(xe){if(xe.types&&this.types.splice(0,this.types.length,...xe.types),xe.files){this.files.splice(0,this.files.length);for(let Y=0;Y<xe.files.length;Y++){let Z=xe.files.item(Y);Z&&(Z.size||Z.type)&&this.files.push(Z)}}}getData(){return{types:this.types,files:this.files}}}class B{constructor(xe){(xe==null?void 0:xe.getSetSize)?this.getSetSize=xe.getSetSize.bind(xe):this.getSetSize=(Y,Z,te)=>te,(xe==null?void 0:xe.getPosInSet)?this.getPosInSet=xe.getPosInSet.bind(xe):this.getPosInSet=(Y,Z)=>Z+1,(xe==null?void 0:xe.getRole)?this.getRole=xe.getRole.bind(xe):this.getRole=Y=>"listitem",(xe==null?void 0:xe.isChecked)?this.isChecked=xe.isChecked.bind(xe):this.isChecked=Y=>{}}}class se{constructor(xe,Y,Z,te=j){if(this.virtualDelegate=Y,this.domId="list_id_"+ ++se.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new N.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=f.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=f.a.None,this.onDragLeaveTimeout=f.a.None,this.disposables=new f.b,this._onDidChangeContentHeight=new E.a,this._horizontalScrolling=!1,te.horizontalScrolling&&te.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new P;for(let he of Z)this.renderers.set(he.templateId,he);this.cache=this.disposables.add(new V(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",H.e(this.domNode,this.domId),this.domNode.tabIndex=0,H.ab(this.domNode,"mouse-support",typeof te.mouseSupport!="boolean"||te.mouseSupport),this._horizontalScrolling=Object(h.f)(te,he=>he.horizontalScrolling,j.horizontalScrolling),H.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=te.additionalScrollHeight===void 0?0:te.additionalScrollHeight,this.accessibilityProvider=new B(te.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Object(h.f)(te,he=>he.transformOptimization,j.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(O.b.addTarget(this.rowsContainer)),this.scrollable=new Q.a(Object(h.f)(te,he=>he.smoothScrolling,!1)?125:0,he=>H.Y(he)),this.scrollableElement=this.disposables.add(new W.c(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:1,vertical:Object(h.f)(te,he=>he.verticalScrollMode,j.verticalScrollMode),useShadows:Object(h.f)(te,he=>he.useShadows,j.useShadows)},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),xe.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(ge.a)(this.rowsContainer,O.a.Change)(this.onTouchChange,this,this.disposables),Object(ge.a)(this.scrollableElement.getDomNode(),"scroll")(he=>he.target.scrollTop=0,null,this.disposables),E.b.map(Object(ge.a)(this.domNode,"dragover"),he=>this.toDragEvent(he))(this.onDragOver,this,this.disposables),E.b.map(Object(ge.a)(this.domNode,"drop"),he=>this.toDragEvent(he))(this.onDrop,this,this.disposables),Object(ge.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(ge.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(h.f)(te,he=>he.setRowLineHeight,j.setRowLineHeight),this.setRowHeight=Object(h.f)(te,he=>he.setRowHeight,j.setRowHeight),this.supportDynamicHeights=Object(h.f)(te,he=>he.supportDynamicHeights,j.supportDynamicHeights),this.dnd=Object(h.f)(te,he=>he.dnd,j.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(xe){if(xe!==this._horizontalScrolling){if(xe&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=xe,H.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(let Y of this.items)this.measureItemWidth(Y);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:H.B(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(xe){xe.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=xe.additionalScrollHeight),xe.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(xe.smoothScrolling?125:0),xe.horizontalScrolling!==void 0&&(this.horizontalScrolling=xe.horizontalScrolling)}splice(xe,Y,Z=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(xe,Y,Z)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(xe,Y,Z=[]){let te=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),he={start:xe,end:xe+Y},Ce=y.a.intersect(te,he);for(let ee=Ce.start;ee<Ce.end;ee++)this.removeItemFromDOM(ee);let Ae={start:xe+Y,end:this.items.length},L=y.a.intersect(Ae,te),nt=y.a.relativeComplement(Ae,te),ct=Z.map(ee=>({id:String(this.itemId++),element:ee,templateId:this.virtualDelegate.getTemplateId(ee),size:this.virtualDelegate.getHeight(ee),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(ee),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:f.a.None})),Ye;xe===0&&Y>=this.items.length?(this.rangeMap=new P,this.rangeMap.splice(0,0,ct),this.items=ct,Ye=[]):(this.rangeMap.splice(xe,Y,ct),Ye=this.items.splice(xe,Y,...ct));let ht=Z.length-Y,fe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),$=S(L,ht),G=y.a.intersect(fe,$);for(let ee=G.start;ee<G.end;ee++)this.updateItemInDOM(this.items[ee],ee);let z=y.a.relativeComplement($,fe);for(let ee of z)for(let de=ee.start;de<ee.end;de++)this.removeItemFromDOM(de);let J=nt.map(ee=>S(ee,ht)),Se=[{start:xe,end:xe+Z.length},...J].map(ee=>y.a.intersect(fe,ee)),A=this.getNextToLastElement(Se);for(let ee of Se)for(let de=ee.start;de<ee.end;de++)this.insertItemInDOM(de,A);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),Ye.map(ee=>ee.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=H.Y(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let xe=0;for(let Y of this.items)Y.width!==void 0&&(xe=Math.max(xe,Y.width));this.scrollWidth=xe,this.scrollableElement.setScrollDimensions({scrollWidth:xe===0?0:xe+10})}rerender(){if(this.supportDynamicHeights){for(let xe of this.items)xe.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(xe){return this.items[xe].element}domElement(xe){let Y=this.items[xe].row;return Y&&Y.domNode}elementHeight(xe){return this.items[xe].size}elementTop(xe){return this.rangeMap.positionAt(xe)}indexAt(xe){return this.rangeMap.indexAt(xe)}indexAfter(xe){return this.rangeMap.indexAfter(xe)}layout(xe,Y){let Z={height:typeof xe=="number"?xe:H.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Z.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Z),Y!==void 0&&(this.renderWidth=Y,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof Y=="number"?Y:H.B(this.domNode)}))}render(xe,Y,Z,te,he,Ce=!1){let Ae=this.getRenderRange(Y,Z),L=y.a.relativeComplement(Ae,xe),nt=y.a.relativeComplement(xe,Ae),ct=this.getNextToLastElement(L);if(Ce){let Ye=y.a.intersect(xe,Ae);for(let ht=Ye.start;ht<Ye.end;ht++)this.updateItemInDOM(this.items[ht],ht)}for(let Ye of L)for(let ht=Ye.start;ht<Ye.end;ht++)this.insertItemInDOM(ht,ct);for(let Ye of nt)for(let ht=Ye.start;ht<Ye.end;ht++)this.removeItemFromDOM(ht);te!==void 0&&(this.rowsContainer.style.left=`-${te}px`),this.rowsContainer.style.top=`-${Y}px`,this.horizontalScrolling&&he!==void 0&&(this.rowsContainer.style.width=Math.max(he,this.renderWidth)+"px"),this.lastRenderTop=Y,this.lastRenderHeight=Z}insertItemInDOM(xe,Y){let Z=this.items[xe];if(!Z.row){Z.row=this.cache.alloc(Z.templateId);let Ce=this.accessibilityProvider.getRole(Z.element)||"listitem";Z.row.domNode.setAttribute("role",Ce);let Ae=this.accessibilityProvider.isChecked(Z.element);Ae!==void 0&&Z.row.domNode.setAttribute("aria-checked",String(!!Ae))}Z.row.domNode.parentElement||(Y?this.rowsContainer.insertBefore(Z.row.domNode,Y):this.rowsContainer.appendChild(Z.row.domNode)),this.updateItemInDOM(Z,xe);let te=this.renderers.get(Z.templateId);if(!te)throw new Error("No renderer found for template id "+Z.templateId);te&&te.renderElement(Z.element,xe,Z.row.templateData,Z.size);let he=this.dnd.getDragURI(Z.element);if(Z.dragStartDisposable.dispose(),Z.row.domNode.draggable=!!he,he){let Ce=Object(ge.a)(Z.row.domNode,"dragstart");Z.dragStartDisposable=Ce(Ae=>this.onDragStart(Z.element,he,Ae))}this.horizontalScrolling&&(this.measureItemWidth(Z),this.eventuallyUpdateScrollWidth())}measureItemWidth(xe){if(!xe.row||!xe.row.domNode)return;xe.row.domNode.style.width=b.h?"-moz-fit-content":"fit-content",xe.width=H.B(xe.row.domNode);let Y=window.getComputedStyle(xe.row.domNode);Y.paddingLeft&&(xe.width+=parseFloat(Y.paddingLeft)),Y.paddingRight&&(xe.width+=parseFloat(Y.paddingRight)),xe.row.domNode.style.width=""}updateItemInDOM(xe,Y){xe.row.domNode.style.top=this.elementTop(Y)+"px",this.setRowHeight&&(xe.row.domNode.style.height=xe.size+"px"),this.setRowLineHeight&&(xe.row.domNode.style.lineHeight=xe.size+"px"),xe.row.domNode.setAttribute("data-index",""+Y),xe.row.domNode.setAttribute("data-last-element",Y===this.length-1?"true":"false"),xe.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(xe.element,Y,this.length))),xe.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(xe.element,Y))),xe.row.domNode.setAttribute("id",this.getElementDomId(Y)),H.ab(xe.row.domNode,"drop-target",xe.dropTarget)}removeItemFromDOM(xe){let Y=this.items[xe];Y.dragStartDisposable.dispose();let Z=this.renderers.get(Y.templateId);Y.row&&Z&&Z.disposeElement&&Z.disposeElement(Y.element,xe,Y.row.templateData,Y.size),this.cache.release(Y.row),Y.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(xe){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:xe})}get scrollTop(){return this.getScrollTop()}set scrollTop(xe){this.setScrollTop(xe)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return E.b.map(Object(ge.a)(this.domNode,"click"),xe=>this.toMouseEvent(xe))}get onMouseDblClick(){return E.b.map(Object(ge.a)(this.domNode,"dblclick"),xe=>this.toMouseEvent(xe))}get onMouseMiddleClick(){return E.b.filter(E.b.map(Object(ge.a)(this.domNode,"auxclick"),xe=>this.toMouseEvent(xe)),xe=>xe.browserEvent.button===1)}get onMouseDown(){return E.b.map(Object(ge.a)(this.domNode,"mousedown"),xe=>this.toMouseEvent(xe))}get onContextMenu(){return E.b.map(Object(ge.a)(this.domNode,"contextmenu"),xe=>this.toMouseEvent(xe))}get onTouchStart(){return E.b.map(Object(ge.a)(this.domNode,"touchstart"),xe=>this.toTouchEvent(xe))}get onTap(){return E.b.map(Object(ge.a)(this.rowsContainer,O.a.Tap),xe=>this.toGestureEvent(xe))}toMouseEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toTouchEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toGestureEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.initialTarget||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}toDragEvent(xe){let Y=this.getItemIndexFromEventTarget(xe.target||null),Z=Y===void 0?void 0:this.items[Y];return{browserEvent:xe,index:Y,element:Z&&Z.element}}onScroll(xe){try{let Y=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(Y,xe.scrollTop,xe.height,xe.scrollLeft,xe.scrollWidth),this.supportDynamicHeights&&this._rerender(xe.scrollTop,xe.height)}catch(Y){throw console.error("Got bad scroll event:",xe),Y}}onTouchChange(xe){xe.preventDefault(),xe.stopPropagation(),this.scrollTop-=xe.translationY}onDragStart(xe,Y,Z){if(!Z.dataTransfer)return;let te=this.dnd.getDragElements(xe);if(Z.dataTransfer.effectAllowed="copyMove",Z.dataTransfer.setData(T.a.RESOURCES,JSON.stringify([Y])),Z.dataTransfer.setDragImage){let he;this.dnd.getDragLabel&&(he=this.dnd.getDragLabel(te,Z)),he===void 0&&(he=String(te.length));let Ce=H.a(".monaco-drag-image");Ce.textContent=he,document.body.appendChild(Ce),Z.dataTransfer.setDragImage(Ce,-10,-10),setTimeout(()=>document.body.removeChild(Ce),0)}this.currentDragData=new ie(te),T.c.CurrentDragAndDropData=new U(te),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Z)}onDragOver(xe){if(xe.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),T.c.CurrentDragAndDropData&&T.c.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(xe.browserEvent),!xe.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(T.c.CurrentDragAndDropData)this.currentDragData=T.c.CurrentDragAndDropData;else{if(!xe.browserEvent.dataTransfer.types)return!1;this.currentDragData=new q}let Y=this.dnd.onDragOver(this.currentDragData,xe.element,xe.index,xe.browserEvent);if(this.canDrop=typeof Y=="boolean"?Y:Y.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let Z;if(xe.browserEvent.dataTransfer.dropEffect=typeof Y!="boolean"&&Y.effect===0?"copy":"move",Z=typeof Y!="boolean"&&Y.feedback?Y.feedback:xe.index===void 0?[-1]:[xe.index],Z=Object(l.e)(Z).filter(Ce=>Ce>=-1&&Ce<this.length).sort((Ce,Ae)=>Ce-Ae),Z=Z[0]===-1?[-1]:Z,te=this.currentDragFeedback,he=Z,Array.isArray(te)&&Array.isArray(he)?Object(l.g)(te,he):te===he)return!0;var te,he;if(this.currentDragFeedback=Z,this.currentDragFeedbackDisposable.dispose(),Z[0]===-1)H.e(this.domNode,"drop-target"),H.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(f.h)(()=>{H.Q(this.domNode,"drop-target"),H.Q(this.rowsContainer,"drop-target")});else{for(let Ce of Z){let Ae=this.items[Ce];Ae.dropTarget=!0,Ae.row&&Ae.row.domNode&&H.e(Ae.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(f.h)(()=>{for(let Ce of Z){let Ae=this.items[Ce];Ae.dropTarget=!1,Ae.row&&Ae.row.domNode&&H.Q(Ae.row.domNode,"drop-target")}})}return!0}onDragLeave(){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(N.g)(()=>this.clearDragOverFeedback(),100)}onDrop(xe){if(!this.canDrop)return;let Y=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,T.c.CurrentDragAndDropData=void 0,Y&&xe.browserEvent.dataTransfer&&(xe.browserEvent.preventDefault(),Y.update(xe.browserEvent.dataTransfer),this.dnd.drop(Y,xe.element,xe.index,xe.browserEvent))}onDragEnd(xe){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,T.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(xe)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=f.a.None}setupDragAndDropScrollTopAnimation(xe){if(!this.dragOverAnimationDisposable){let Y=H.F(this.domNode).top;this.dragOverAnimationDisposable=H.o(this.animateDragAndDropScrollTop.bind(this,Y))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(N.g)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=xe.pageY}animateDragAndDropScrollTop(xe){if(this.dragOverMouseY===void 0)return;let Y=this.dragOverMouseY-xe,Z=this.renderHeight-35;Y<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(Y-35))):Y>Z&&(this.scrollTop+=Math.min(14,Math.floor(.3*(Y-Z))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(xe){let Y=this.scrollableElement.getDomNode(),Z=xe;for(;Z instanceof HTMLElement&&Z!==this.rowsContainer&&Y.contains(Z);){let te=Z.getAttribute("data-index");if(te){let he=Number(te);if(!isNaN(he))return he}Z=Z.parentElement}}getRenderRange(xe,Y){return{start:this.rangeMap.indexAt(xe),end:this.rangeMap.indexAfter(xe+Y-1)}}_rerender(xe,Y){let Z=this.getRenderRange(xe,Y),te,he;xe===this.elementTop(Z.start)?(te=Z.start,he=0):Z.end-Z.start>1&&(te=Z.start+1,he=this.elementTop(te)-xe);let Ce=0;for(;;){let Ae=this.getRenderRange(xe,Y),L=!1;for(let nt=Ae.start;nt<Ae.end;nt++){let ct=this.probeDynamicHeight(nt);ct!==0&&this.rangeMap.splice(nt,1,[this.items[nt]]),Ce+=ct,L=L||ct!==0}if(!L){Ce!==0&&this.eventuallyUpdateScrollDimensions();let nt=y.a.relativeComplement(Z,Ae);for(let Ye of nt)for(let ht=Ye.start;ht<Ye.end;ht++)this.items[ht].row&&this.removeItemFromDOM(ht);let ct=y.a.relativeComplement(Ae,Z);for(let Ye of ct)for(let ht=Ye.start;ht<Ye.end;ht++){let fe=ht+1,$=fe<this.items.length?this.items[fe].row:null,G=$?$.domNode:null;this.insertItemInDOM(ht,G)}for(let Ye=Ae.start;Ye<Ae.end;Ye++)this.items[Ye].row&&this.updateItemInDOM(this.items[Ye],Ye);return typeof te=="number"&&(this.scrollTop=this.elementTop(te)-he),void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(xe){let Y=this.items[xe];if(!Y.hasDynamicHeight||Y.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(Y.element))return 0;let Z=Y.size;if(!this.setRowHeight&&Y.row&&Y.row.domNode){let Ce=Y.row.domNode.offsetHeight;return Y.size=Ce,Y.lastDynamicHeightWidth=this.renderWidth,Ce-Z}let te=this.cache.alloc(Y.templateId);te.domNode.style.height="",this.rowsContainer.appendChild(te.domNode);let he=this.renderers.get(Y.templateId);return he&&(he.renderElement(Y.element,xe,te.templateData,void 0),he.disposeElement&&he.disposeElement(Y.element,xe,te.templateData,void 0)),Y.size=te.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(Y.element,Y.size),Y.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(te.domNode),this.cache.release(te),Y.size-Z}getNextToLastElement(xe){let Y=xe[xe.length-1];if(!Y)return null;let Z=this.items[Y.end];return Z&&Z.row?Z.row.domNode:null}getElementDomId(xe){return`${this.domId}_${xe}`}dispose(){if(this.items){for(let xe of this.items)if(xe.row){let Y=this.renderers.get(xe.row.templateId);Y&&Y.disposeTemplate(xe.row.templateData)}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(f.f)(this.disposables)}}se.InstanceCount=0,g([k.a],se.prototype,"onMouseClick",null),g([k.a],se.prototype,"onMouseDblClick",null),g([k.a],se.prototype,"onMouseMiddleClick",null),g([k.a],se.prototype,"onMouseDown",null),g([k.a],se.prototype,"onContextMenu",null),g([k.a],se.prototype,"onTouchStart",null),g([k.a],se.prototype,"onTap",null)},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h});class h{constructor(O,H=[],E=!1){this.ctor=O,this.staticArguments=H,this.supportsDelayedInstantiation=E}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ho}),r(208);var h=r(0),f=r(1),O=r(13),H=r(6),E=r(2),ge=r(45),W=r(87),Q=r(4),y=r(41),C=r(21),S=r(35),P=r(11),V=r(61),k=r(69),l=r(20),T=r(34),N=r(103);class b{constructor(i,a){this.x=i,this.y=a}toClientCoordinates(){return new g(this.x-f.d.scrollX,this.y-f.d.scrollY)}}class g{constructor(i,a){this.clientX=i,this.clientY=a}toPageCoordinates(){return new b(this.clientX+f.d.scrollX,this.clientY+f.d.scrollY)}}class j{constructor(i,a,_,R){this.x=i,this.y=a,this.width=_,this.height=R}}function ie(Zt){let i=f.C(Zt);return new j(i.left,i.top,i.width,i.height)}class U extends k.a{constructor(i,a){super(i),this.pos=new b(this.posx,this.posy),this.editorPos=ie(a)}}class q{constructor(i){this._editorViewDomNode=i}_create(i){return new U(i,this._editorViewDomNode)}onContextMenu(i,a){return f.i(i,"contextmenu",_=>{a(this._create(_))})}onMouseUp(i,a){return f.i(i,"mouseup",_=>{a(this._create(_))})}onMouseDown(i,a){return f.i(i,"mousedown",_=>{a(this._create(_))})}onMouseLeave(i,a){return f.j(i,_=>{a(this._create(_))})}onMouseMoveThrottled(i,a,_,R){return f.l(i,"mousemove",a,(K,we)=>_(K,this._create(we)),R)}}class B{constructor(i){this._editorViewDomNode=i}_create(i){return new U(i,this._editorViewDomNode)}onPointerUp(i,a){return f.i(i,"pointerup",_=>{a(this._create(_))})}onPointerDown(i,a){return f.i(i,"pointerdown",_=>{a(this._create(_))})}onPointerLeave(i,a){return f.k(i,_=>{a(this._create(_))})}onPointerMoveThrottled(i,a,_,R){return f.l(i,"pointermove",a,(K,we)=>_(K,this._create(we)),R)}}class se extends E.a{constructor(i){super(),this._editorViewDomNode=i,this._globalMouseMoveMonitor=this._register(new N.a),this._keydownListener=null}startMonitoring(i,a,_,R,K){this._keydownListener=f.n(document,"keydown",we=>{we.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0)},!0),this._globalMouseMoveMonitor.startMonitoring(i,a,(we,Pe)=>_(we,new U(Pe,this._editorViewDomNode)),R,()=>{this._keydownListener.dispose(),K()})}}class ke extends E.a{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onConfigurationChanged(i){return!1}onCursorStateChanged(i){return!1}onDecorationsChanged(i){return!1}onFlushed(i){return!1}onFocusChanged(i){return!1}onLanguageConfigurationChanged(i){return!1}onLineMappingChanged(i){return!1}onLinesChanged(i){return!1}onLinesDeleted(i){return!1}onLinesInserted(i){return!1}onRevealRangeRequest(i){return!1}onScrollChanged(i){return!1}onThemeChanged(i){return!1}onTokensChanged(i){return!1}onTokensColorsChanged(i){return!1}onZonesChanged(i){return!1}handleEvents(i){let a=!1;for(let _=0,R=i.length;_<R;_++){let K=i[_];switch(K.type){case 0:this.onConfigurationChanged(K)&&(a=!0);break;case 1:this.onCursorStateChanged(K)&&(a=!0);break;case 2:this.onDecorationsChanged(K)&&(a=!0);break;case 3:this.onFlushed(K)&&(a=!0);break;case 4:this.onFocusChanged(K)&&(a=!0);break;case 5:this.onLanguageConfigurationChanged(K)&&(a=!0);break;case 6:this.onLineMappingChanged(K)&&(a=!0);break;case 7:this.onLinesChanged(K)&&(a=!0);break;case 8:this.onLinesDeleted(K)&&(a=!0);break;case 9:this.onLinesInserted(K)&&(a=!0);break;case 10:this.onRevealRangeRequest(K)&&(a=!0);break;case 11:this.onScrollChanged(K)&&(a=!0);break;case 13:this.onTokensChanged(K)&&(a=!0);break;case 12:this.onThemeChanged(K)&&(a=!0);break;case 14:this.onTokensColorsChanged(K)&&(a=!0);break;case 15:this.onZonesChanged(K)&&(a=!0);break;default:console.info("View received unknown event: "),console.info(K)}}a&&(this._shouldRender=!0)}}class xe extends ke{constructor(i){super(),this._context=i,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class Y{static write(i,a){S.a,i.setAttribute("data-mprt",String(a))}static read(i){let a=i.getAttribute("data-mprt");return a===null?0:parseInt(a,10)}static collect(i,a){let _=[],R=0;for(;i&&i!==document.body&&i!==a;)i.nodeType===i.ELEMENT_NODE&&(_[R++]=this.read(i)),i=i.parentElement;let K=new Uint8Array(R);for(let we=0;we<R;we++)K[we]=_[R-we-1];return K}}class Z extends class{constructor(i,a){this._viewLayout=i,this.viewportData=a,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let _=this._viewLayout.getCurrentViewport();this.scrollTop=_.top,this.scrollLeft=_.left,this.viewportWidth=_.width,this.viewportHeight=_.height}getScrolledTopFromAbsoluteTop(i){return i-this.scrollTop}getVerticalOffsetForLineNumber(i){return this._viewLayout.getVerticalOffsetForLineNumber(i)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}{constructor(i,a,_){super(i,a),this._viewLines=_}linesVisibleRangesForRange(i,a){return this._viewLines.linesVisibleRangesForRange(i,a)}visibleRangeForPosition(i){return this._viewLines.visibleRangeForPosition(i)}}class te{constructor(i,a,_){this.outsideRenderedLine=i,this.lineNumber=a,this.ranges=_}}class he{constructor(i,a){this.left=Math.round(i),this.width=Math.round(a)}toString(){return`[${this.left},${this.width}]`}}class Ce{constructor(i,a){this.outsideRenderedLine=i,this.left=Math.round(a)}}class Ae{constructor(i,a){this.outsideRenderedLine=i,this.ranges=a}}class L{constructor(i,a){this.left=i,this.width=a}toString(){return`[${this.left},${this.width}]`}static compare(i,a){return i.left-a.left}}class nt{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(i,a){i.selectNodeContents(a)}static _readClientRects(i,a,_,R,K){let we=this._createRange();try{return we.setStart(i,a),we.setEnd(_,R),we.getClientRects()}catch(Pe){return null}finally{this._detachRange(we,K)}}static _mergeAdjacentRanges(i){if(i.length===1)return[new he(i[0].left,i[0].width)];i.sort(L.compare);let a=[],_=0,R=i[0].left,K=i[0].width;for(let we=1,Pe=i.length;we<Pe;we++){let Ve=i[we],Je=Ve.left,at=Ve.width;R+K+.9>=Je?K=Math.max(K,Je+at-R):(a[_++]=new he(R,K),R=Je,K=at)}return a[_++]=new he(R,K),a}static _createHorizontalRangesFromClientRects(i,a){if(!i||i.length===0)return null;let _=[];for(let R=0,K=i.length;R<K;R++){let we=i[R];_[R]=new L(Math.max(0,we.left-a),we.width)}return this._mergeAdjacentRanges(_)}static readHorizontalRanges(i,a,_,R,K,we,Pe){let Ve=i.children.length-1;if(0>Ve)return null;if((a=Math.min(Ve,Math.max(0,a)))===(R=Math.min(Ve,Math.max(0,R)))&&_===K&&_===0){let Bt=i.children[a].getClientRects();return this._createHorizontalRangesFromClientRects(Bt,we)}a!==R&&R>0&&K===0&&(R--,K=1073741824);let Je=i.children[a].firstChild,at=i.children[R].firstChild;if(Je&&at||(!Je&&_===0&&a>0&&(Je=i.children[a-1].firstChild,_=1073741824),!at&&K===0&&R>0&&(at=i.children[R-1].firstChild,K=1073741824)),!Je||!at)return null;_=Math.min(Je.textContent.length,Math.max(0,_)),K=Math.min(at.textContent.length,Math.max(0,K));let bt=this._readClientRects(Je,_,at,K,Pe);return this._createHorizontalRangesFromClientRects(bt,we)}}var ct=r(155),Ye=r(91),ht=r(19),fe=r(26);let $=!!P.g||!(P.d||T.h||T.j),G=!0,z=T.f;class J{constructor(i,a){this._domNode=i,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=a}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class Se{constructor(i,a){this.themeType=a;let _=i.options,R=_.get(36);this.renderWhitespace=_.get(80),this.renderControlCharacters=_.get(74),this.spaceWidth=R.spaceWidth,this.middotWidth=R.middotWidth,this.wsmiddotWidth=R.wsmiddotWidth,this.useMonospaceOptimizations=R.isMonospace&&!_.get(24),this.canUseHalfwidthRightwardsArrow=R.canUseHalfwidthRightwardsArrow,this.lineHeight=_.get(51),this.stopRenderingLineAfter=_.get(95),this.fontLigatures=_.get(37)}equals(i){return this.themeType===i.themeType&&this.renderWhitespace===i.renderWhitespace&&this.renderControlCharacters===i.renderControlCharacters&&this.spaceWidth===i.spaceWidth&&this.middotWidth===i.middotWidth&&this.wsmiddotWidth===i.wsmiddotWidth&&this.useMonospaceOptimizations===i.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===i.canUseHalfwidthRightwardsArrow&&this.lineHeight===i.lineHeight&&this.stopRenderingLineAfter===i.stopRenderingLineAfter&&this.fontLigatures===i.fontLigatures}}class A{constructor(i){this._options=i,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(i){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(S.b)(i)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(i){this._isMaybeInvalid=!0,this._options=i}onSelectionChanged(){return!(!z&&this._options.themeType!==ht.b&&this._options.renderWhitespace!=="selection")&&(this._isMaybeInvalid=!0,!0)}renderLine(i,a,_,R){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;let K=_.getViewLineRenderingData(i),we=this._options,Pe=ct.a.filter(K.inlineDecorations,i,K.minColumn,K.maxColumn),Ve=null;if(z||we.themeType===ht.b||this._options.renderWhitespace==="selection"){let Bt=_.selections;for(let Pt of Bt){if(Pt.endLineNumber<i||Pt.startLineNumber>i)continue;let ni=Pt.startLineNumber===i?Pt.startColumn:K.minColumn,Ci=Pt.endLineNumber===i?Pt.endColumn:K.maxColumn;ni<Ci&&(we.themeType===ht.b||this._options.renderWhitespace!=="selection"?Pe.push(new ct.a(ni,Ci,"inline-selected-text",0)):(Ve||(Ve=[]),Ve.push(new Ye.b(ni-1,Ci-1))))}}let Je=new Ye.c(we.useMonospaceOptimizations,we.canUseHalfwidthRightwardsArrow,K.content,K.continuesWithWrappedLine,K.isBasicASCII,K.containsRTL,K.minColumn-1,K.tokens,Pe,K.tabSize,K.startVisibleColumn,we.spaceWidth,we.middotWidth,we.wsmiddotWidth,we.stopRenderingLineAfter,we.renderWhitespace,we.renderControlCharacters,we.fontLigatures!==fe.e.OFF,Ve);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Je))return!1;R.appendASCIIString('<div style="top:'),R.appendASCIIString(String(a)),R.appendASCIIString("px;height:"),R.appendASCIIString(String(this._options.lineHeight)),R.appendASCIIString('px;" class="'),R.appendASCIIString(A.CLASS_NAME),R.appendASCIIString('">');let at=Object(Ye.d)(Je,R);R.appendASCIIString("</div>");let bt=null;return G&&$&&K.isBasicASCII&&we.useMonospaceOptimizations&&at.containsForeignElements===0&&K.content.length<300&&Je.lineTokens.getCount()<100&&(bt=new ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Je,at.characterMapping)),bt||(bt=$e(this._renderedViewLine?this._renderedViewLine.domNode:null,Je,at.characterMapping,at.containsRTL,at.containsForeignElements)),this._renderedViewLine=bt,!0}layoutLine(i,a){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(a),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof ee}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof ee?this._renderedViewLine.monospaceAssumptionsAreValid():G}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof ee&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(i,a,_){if(!this._renderedViewLine)return null;i|=0,a|=0,i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i)),a=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,a));let R=0|this._renderedViewLine.input.stopRenderingLineAfter,K=!1;R!==-1&&i>R+1&&a>R+1&&(K=!0),R!==-1&&i>R+1&&(i=R+1),R!==-1&&a>R+1&&(a=R+1);let we=this._renderedViewLine.getVisibleRangesForRange(i,a,_);return we&&we.length>0?new Ae(K,we):null}getColumnOfNodeOffset(i,a,_){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(i,a,_):1}}A.CLASS_NAME="view-line";class ee{constructor(i,a,_){this.domNode=i,this.input=a,this._characterMapping=_,this._charWidth=a.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return G;let i=this.getWidth(),a=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(i-a)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),G=!1),G}toSlowRenderedLine(){return $e(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(i,a,_){let R=this._getCharPosition(i),K=this._getCharPosition(a);return[new he(R,K-R)]}_getCharPosition(i){let a=this._characterMapping.getAbsoluteOffsets();return a.length===0?0:Math.round(this._charWidth*a[i-1])}getColumnOfNodeOffset(i,a,_){let R=a.textContent.length,K=-1;for(;a;)a=a.previousSibling,K++;return this._characterMapping.partDataToCharOffset(K,R,_)+1}}class de{constructor(i,a,_,R,K){if(this.domNode=i,this.input=a,this._characterMapping=_,this._isWhitespaceOnly=/^\s*$/.test(a.lineContent),this._containsForeignElements=K,this._cachedWidth=-1,this._pixelOffsetCache=null,!R||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let we=0,Pe=this._characterMapping.length;we<=Pe;we++)this._pixelOffsetCache[we]=-1}}_getReadingTarget(i){return i.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(i,a,_){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){let R=this._readPixelOffset(this.domNode,i,_);if(R===-1)return null;let K=this._readPixelOffset(this.domNode,a,_);return K===-1?null:[new he(R,K-R)]}return this._readVisibleRangesForRange(this.domNode,i,a,_)}_readVisibleRangesForRange(i,a,_,R){if(a===_){let K=this._readPixelOffset(i,a,R);return K===-1?null:[new he(K,0)]}return this._readRawVisibleRangesForRange(i,a,_,R)}_readPixelOffset(i,a,_){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();let R=this._getReadingTarget(i);return R.firstChild?R.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){let R=this._pixelOffsetCache[a];if(R!==-1)return R;let K=this._actualReadPixelOffset(i,a,_);return this._pixelOffsetCache[a]=K,K}return this._actualReadPixelOffset(i,a,_)}_actualReadPixelOffset(i,a,_){if(this._characterMapping.length===0){let Je=nt.readHorizontalRanges(this._getReadingTarget(i),0,0,0,0,_.clientRectDeltaLeft,_.endNode);return Je&&Je.length!==0?Je[0].left:-1}if(a===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();let R=this._characterMapping.charOffsetToPartData(a-1),K=Ye.a.getPartIndex(R),we=Ye.a.getCharIndex(R),Pe=nt.readHorizontalRanges(this._getReadingTarget(i),K,we,K,we,_.clientRectDeltaLeft,_.endNode);if(!Pe||Pe.length===0)return-1;let Ve=Pe[0].left;if(this.input.isBasicASCII){let Je=this._characterMapping.getAbsoluteOffsets(),at=Math.round(this.input.spaceWidth*Je[a-1]);if(Math.abs(at-Ve)<=1)return at}return Ve}_readRawVisibleRangesForRange(i,a,_,R){if(a===1&&_===this._characterMapping.length)return[new he(0,this.getWidth())];let K=this._characterMapping.charOffsetToPartData(a-1),we=Ye.a.getPartIndex(K),Pe=Ye.a.getCharIndex(K),Ve=this._characterMapping.charOffsetToPartData(_-1),Je=Ye.a.getPartIndex(Ve),at=Ye.a.getCharIndex(Ve);return nt.readHorizontalRanges(this._getReadingTarget(i),we,Pe,Je,at,R.clientRectDeltaLeft,R.endNode)}getColumnOfNodeOffset(i,a,_){let R=a.textContent.length,K=-1;for(;a;)a=a.previousSibling,K++;return this._characterMapping.partDataToCharOffset(K,R,_)+1}}class De extends de{_readVisibleRangesForRange(i,a,_,R){let K=super._readVisibleRangesForRange(i,a,_,R);if(!K||K.length===0||a===_||a===1&&_===this._characterMapping.length)return K;if(!this.input.containsRTL){let we=this._readPixelOffset(i,_,R);if(we!==-1){let Pe=K[K.length-1];Pe.left<we&&(Pe.width=we-Pe.left)}}return K}}let $e=T.l?pt:it;function pt(Zt,i,a,_,R){return new De(Zt,i,a,_,R)}function it(Zt,i,a,_,R){return new de(Zt,i,a,_,R)}var At=r(9),Nt=r(3),_i=r(22);class wt{constructor(i,a){this.lastViewCursorsRenderData=i,this.lastTextareaPosition=a}}class Ni{constructor(i,a,_=0,R=null,K=null,we=null){this.element=i,this.type=a,this.mouseColumn=_,this.position=R,!K&&R&&(K=new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column)),this.range=K,this.detail=we}static _typeToString(i){return i===1?"TEXTAREA":i===2?"GUTTER_GLYPH_MARGIN":i===3?"GUTTER_LINE_NUMBERS":i===4?"GUTTER_LINE_DECORATIONS":i===5?"GUTTER_VIEW_ZONE":i===6?"CONTENT_TEXT":i===7?"CONTENT_EMPTY":i===8?"CONTENT_VIEW_ZONE":i===9?"CONTENT_WIDGET":i===10?"OVERVIEW_RULER":i===11?"SCROLLBAR":i===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(i){return this._typeToString(i.type)+": "+i.position+" - "+i.range+" - "+i.detail}toString(){return Ni.toString(this)}}class pi{static isTextArea(i){return i.length===2&&i[0]===3&&i[1]===6}static isChildOfViewLines(i){return i.length>=4&&i[0]===3&&i[3]===7}static isStrictChildOfViewLines(i){return i.length>4&&i[0]===3&&i[3]===7}static isChildOfScrollableElement(i){return i.length>=2&&i[0]===3&&i[1]===5}static isChildOfMinimap(i){return i.length>=2&&i[0]===3&&i[1]===8}static isChildOfContentWidgets(i){return i.length>=4&&i[0]===3&&i[3]===1}static isChildOfOverflowingContentWidgets(i){return i.length>=1&&i[0]===2}static isChildOfOverlayWidgets(i){return i.length>=2&&i[0]===3&&i[1]===4}}class et{constructor(i,a,_){this.model=i.model;let R=i.configuration.options;this.layoutInfo=R.get(117),this.viewDomNode=a.viewDomNode,this.lineHeight=R.get(51),this.typicalHalfwidthCharacterWidth=R.get(36).typicalHalfwidthCharacterWidth,this.lastRenderData=_,this._context=i,this._viewHelper=a}getZoneAtCoord(i){return et.getZoneAtCoord(this._context,i)}static getZoneAtCoord(i,a){let _=i.viewLayout.getWhitespaceAtVerticalOffset(a);if(_){let R,K=_.verticalOffset+_.height/2,we=i.model.getLineCount(),Pe=null,Ve=null;return _.afterLineNumber!==we&&(Ve=new At.a(_.afterLineNumber+1,1)),_.afterLineNumber>0&&(Pe=new At.a(_.afterLineNumber,i.model.getLineMaxColumn(_.afterLineNumber))),R=Ve===null?Pe:Pe===null?Ve:a<K?Pe:Ve,{viewZoneId:_.id,afterLineNumber:_.afterLineNumber,positionBefore:Pe,positionAfter:Ve,position:R}}return null}getFullLineRangeAtCoord(i){if(this._context.viewLayout.isAfterLines(i)){let R=this._context.model.getLineCount(),K=this._context.model.getLineMaxColumn(R);return{range:new Nt.a(R,K,R,K),isAfterLines:!0}}let a=this._context.viewLayout.getLineNumberAtVerticalOffset(i),_=this._context.model.getLineMaxColumn(a);return{range:new Nt.a(a,1,a,_),isAfterLines:!1}}getLineNumberAtVerticalOffset(i){return this._context.viewLayout.getLineNumberAtVerticalOffset(i)}isAfterLines(i){return this._context.viewLayout.isAfterLines(i)}getVerticalOffsetForLineNumber(i){return this._context.viewLayout.getVerticalOffsetForLineNumber(i)}findAttribute(i,a){return et._findAttribute(i,a,this._viewHelper.viewDomNode)}static _findAttribute(i,a,_){for(;i&&i!==document.body;){if(i.hasAttribute&&i.hasAttribute(a))return i.getAttribute(a);if(i===_)return null;i=i.parentNode}return null}getLineWidth(i){return this._viewHelper.getLineWidth(i)}visibleRangeForPosition(i,a){return this._viewHelper.visibleRangeForPosition(i,a)}getPositionFromDOMInfo(i,a){return this._viewHelper.getPositionFromDOMInfo(i,a)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class Wt extends class{constructor(i,a,_){this.editorPos=a,this.pos=_,this.mouseVerticalOffset=Math.max(0,i.getCurrentScrollTop()+_.y-a.y),this.mouseContentHorizontalOffset=i.getCurrentScrollLeft()+_.x-a.x-i.layoutInfo.contentLeft,this.isInMarginArea=_.x-a.x<i.layoutInfo.contentLeft&&_.x-a.x>=i.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Ai._getMouseColumn(this.mouseContentHorizontalOffset,i.typicalHalfwidthCharacterWidth))}}{constructor(i,a,_,R){super(i,a,_),this._ctx=i,R?(this.target=R,this.targetPath=Y.collect(R,i.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} + target: ${this.target?this.target.outerHTML:null}`}fulfill(i,a=null,_=null,R=null){let K=this.mouseColumn;return a&&a.column<this._ctx.model.getLineMaxColumn(a.lineNumber)&&(K=_i.a.visibleColumnFromColumn(this._ctx.model.getLineContent(a.lineNumber),a.column,this._ctx.model.getTextModelOptions().tabSize)+1),new Ni(this.target,i,K,a,_,R)}withTarget(i){return new Wt(this._ctx,this.editorPos,this.pos,i)}}let Li={isAfterLines:!0};function Ii(Zt){return{isAfterLines:!1,horizontalDistanceToText:Zt}}class Ai{constructor(i,a){this._context=i,this._viewHelper=a}mouseTargetIsWidget(i){let a=i.target,_=Y.collect(a,this._viewHelper.viewDomNode);return!(!pi.isChildOfContentWidgets(_)&&!pi.isChildOfOverflowingContentWidgets(_))||!!pi.isChildOfOverlayWidgets(_)}createMouseTarget(i,a,_,R){let K=new et(this._context,this._viewHelper,i),we=new Wt(K,a,_,R);try{return Ai._createMouseTarget(K,we,!1)}catch(Pe){return we.fulfill(0)}}static _createMouseTarget(i,a,_){if(a.target===null){if(_)return a.fulfill(0);let we=Ai._doHitTest(i,a);return we.position?Ai.createMouseTargetFromHitTestPosition(i,a,we.position.lineNumber,we.position.column):this._createMouseTarget(i,a.withTarget(we.hitTarget),!0)}let R=a,K=null;return K=K||Ai._hitTestContentWidget(i,R),K=K||Ai._hitTestOverlayWidget(i,R),K=K||Ai._hitTestMinimap(i,R),K=K||Ai._hitTestScrollbarSlider(i,R),K=K||Ai._hitTestViewZone(i,R),K=K||Ai._hitTestMargin(i,R),K=K||Ai._hitTestViewCursor(i,R),K=K||Ai._hitTestTextArea(i,R),K=K||Ai._hitTestViewLines(i,R,_),K=K||Ai._hitTestScrollbar(i,R),K||a.fulfill(0)}static _hitTestContentWidget(i,a){if(pi.isChildOfContentWidgets(a.targetPath)||pi.isChildOfOverflowingContentWidgets(a.targetPath)){let _=i.findAttribute(a.target,"widgetId");return _?a.fulfill(9,null,null,_):a.fulfill(0)}return null}static _hitTestOverlayWidget(i,a){if(pi.isChildOfOverlayWidgets(a.targetPath)){let _=i.findAttribute(a.target,"widgetId");return _?a.fulfill(12,null,null,_):a.fulfill(0)}return null}static _hitTestViewCursor(i,a){if(a.target){let _=i.lastRenderData.lastViewCursorsRenderData;for(let R of _)if(a.target===R.domNode)return a.fulfill(6,R.position)}if(a.isInContentArea){let _=i.lastRenderData.lastViewCursorsRenderData,R=a.mouseContentHorizontalOffset,K=a.mouseVerticalOffset;for(let we of _){if(R<we.contentLeft||R>we.contentLeft+we.width)continue;let Pe=i.getVerticalOffsetForLineNumber(we.position.lineNumber);if(Pe<=K&&K<=Pe+we.height)return a.fulfill(6,we.position)}}return null}static _hitTestViewZone(i,a){let _=i.getZoneAtCoord(a.mouseVerticalOffset);if(_){let R=a.isInContentArea?8:5;return a.fulfill(R,_.position,null,_)}return null}static _hitTestTextArea(i,a){return pi.isTextArea(a.targetPath)?i.lastRenderData.lastTextareaPosition?a.fulfill(6,i.lastRenderData.lastTextareaPosition):a.fulfill(1,i.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(i,a){if(a.isInMarginArea){let _=i.getFullLineRangeAtCoord(a.mouseVerticalOffset),R=_.range.getStartPosition(),K=Math.abs(a.pos.x-a.editorPos.x),we={isAfterLines:_.isAfterLines,glyphMarginLeft:i.layoutInfo.glyphMarginLeft,glyphMarginWidth:i.layoutInfo.glyphMarginWidth,lineNumbersWidth:i.layoutInfo.lineNumbersWidth,offsetX:K};return K-=i.layoutInfo.glyphMarginLeft,K<=i.layoutInfo.glyphMarginWidth?a.fulfill(2,R,_.range,we):(K-=i.layoutInfo.glyphMarginWidth,K<=i.layoutInfo.lineNumbersWidth?a.fulfill(3,R,_.range,we):(K-=i.layoutInfo.lineNumbersWidth,a.fulfill(4,R,_.range,we)))}return null}static _hitTestViewLines(i,a,_){if(!pi.isChildOfViewLines(a.targetPath))return null;if(i.isAfterLines(a.mouseVerticalOffset)){let K=i.model.getLineCount(),we=i.model.getLineMaxColumn(K);return a.fulfill(7,new At.a(K,we),void 0,Li)}if(_){if(pi.isStrictChildOfViewLines(a.targetPath)){let K=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset);if(i.model.getLineLength(K)===0){let Pe=i.getLineWidth(K),Ve=Ii(a.mouseContentHorizontalOffset-Pe);return a.fulfill(7,new At.a(K,1),void 0,Ve)}let we=i.getLineWidth(K);if(a.mouseContentHorizontalOffset>=we){let Pe=Ii(a.mouseContentHorizontalOffset-we),Ve=new At.a(K,i.model.getLineMaxColumn(K));return a.fulfill(7,Ve,void 0,Pe)}}return a.fulfill(0)}let R=Ai._doHitTest(i,a);return R.position?Ai.createMouseTargetFromHitTestPosition(i,a,R.position.lineNumber,R.position.column):this._createMouseTarget(i,a.withTarget(R.hitTarget),!0)}static _hitTestMinimap(i,a){if(pi.isChildOfMinimap(a.targetPath)){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.model.getLineMaxColumn(_);return a.fulfill(11,new At.a(_,R))}return null}static _hitTestScrollbarSlider(i,a){if(pi.isChildOfScrollableElement(a.targetPath)&&a.target&&a.target.nodeType===1){let _=a.target.className;if(_&&/\b(slider|scrollbar)\b/.test(_)){let R=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),K=i.model.getLineMaxColumn(R);return a.fulfill(11,new At.a(R,K))}}return null}static _hitTestScrollbar(i,a){if(pi.isChildOfScrollableElement(a.targetPath)){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.model.getLineMaxColumn(_);return a.fulfill(11,new At.a(_,R))}return null}getMouseColumn(i,a){let _=this._context.configuration.options,R=_.get(117),K=this._context.viewLayout.getCurrentScrollLeft()+a.x-i.x-R.contentLeft;return Ai._getMouseColumn(K,_.get(36).typicalHalfwidthCharacterWidth)}static _getMouseColumn(i,a){return i<0?1:Math.round(i/a)+1}static createMouseTargetFromHitTestPosition(i,a,_,R){let K=new At.a(_,R),we=i.getLineWidth(_);if(a.mouseContentHorizontalOffset>we){if(T.f&&K.column===1){let bt=Ii(a.mouseContentHorizontalOffset-we);return a.fulfill(7,new At.a(_,i.model.getLineMaxColumn(_)),void 0,bt)}let at=Ii(a.mouseContentHorizontalOffset-we);return a.fulfill(7,K,void 0,at)}let Pe=i.visibleRangeForPosition(_,R);if(!Pe)return a.fulfill(0,K);let Ve=Pe.left;if(a.mouseContentHorizontalOffset===Ve)return a.fulfill(6,K);let Je=[];if(Je.push({offset:Pe.left,column:R}),R>1){let at=i.visibleRangeForPosition(_,R-1);at&&Je.push({offset:at.left,column:R-1})}if(R<i.model.getLineMaxColumn(_)){let at=i.visibleRangeForPosition(_,R+1);at&&Je.push({offset:at.left,column:R+1})}Je.sort((at,bt)=>at.offset-bt.offset);for(let at=1;at<Je.length;at++){let bt=Je[at-1],Bt=Je[at];if(bt.offset<=a.mouseContentHorizontalOffset&&a.mouseContentHorizontalOffset<=Bt.offset){let Pt=new Nt.a(_,bt.column,_,Bt.column);return a.fulfill(6,K,Pt)}}return a.fulfill(6,K)}static _doHitTestWithCaretRangeFromPoint(i,a){let _=i.getLineNumberAtVerticalOffset(a.mouseVerticalOffset),R=i.getVerticalOffsetForLineNumber(_)+Math.floor(i.lineHeight/2),K=a.pos.y+(R-a.mouseVerticalOffset);K<=a.editorPos.y&&(K=a.editorPos.y+1),K>=a.editorPos.y+i.layoutInfo.height&&(K=a.editorPos.y+i.layoutInfo.height-1);let we=new b(a.pos.x,K),Pe=this._actualDoHitTestWithCaretRangeFromPoint(i,we.toClientCoordinates());return Pe.position?Pe:this._actualDoHitTestWithCaretRangeFromPoint(i,a.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(i,a){let _=f.E(i.viewDomNode),R;if(R=_?_.caretRangeFromPoint===void 0?function(Pe,Ve,Je){let at=document.createRange(),bt=Pe.elementFromPoint(Ve,Je);if(bt!==null){for(;bt&&bt.firstChild&&bt.firstChild.nodeType!==bt.firstChild.TEXT_NODE;)bt=bt.lastChild;let Bt=bt.getBoundingClientRect(),Pt=window.getComputedStyle(bt,null).getPropertyValue("font"),ni=bt.innerText,Ci,Vi=Bt.left,Mi=0;if(Ve>Bt.left+Bt.width)Mi=ni.length;else{let zi=Zi.getInstance();for(let Yi=0;Yi<ni.length+1;Yi++){if(Ci=zi.getCharWidth(ni.charAt(Yi),Pt)/2,Vi+=Ci,Ve<Vi){Mi=Yi;break}Vi+=Ci}}at.setStart(bt.firstChild,Mi),at.setEnd(bt.firstChild,Mi)}return at}(_,a.clientX,a.clientY):_.caretRangeFromPoint(a.clientX,a.clientY):document.caretRangeFromPoint(a.clientX,a.clientY),!R||!R.startContainer)return{position:null,hitTarget:null};let K=R.startContainer,we=null;if(K.nodeType===K.TEXT_NODE){let Pe=K.parentNode,Ve=Pe?Pe.parentNode:null,Je=Ve?Ve.parentNode:null;if((Je&&Je.nodeType===Je.ELEMENT_NODE?Je.className:null)===A.CLASS_NAME)return{position:i.getPositionFromDOMInfo(Pe,R.startOffset),hitTarget:null};we=K.parentNode}else if(K.nodeType===K.ELEMENT_NODE){let Pe=K.parentNode,Ve=Pe?Pe.parentNode:null;if((Ve&&Ve.nodeType===Ve.ELEMENT_NODE?Ve.className:null)===A.CLASS_NAME)return{position:i.getPositionFromDOMInfo(K,K.textContent.length),hitTarget:null};we=K}return{position:null,hitTarget:we}}static _doHitTestWithCaretPositionFromPoint(i,a){let _=document.caretPositionFromPoint(a.clientX,a.clientY);if(_.offsetNode.nodeType===_.offsetNode.TEXT_NODE){let R=_.offsetNode.parentNode,K=R?R.parentNode:null,we=K?K.parentNode:null;return(we&&we.nodeType===we.ELEMENT_NODE?we.className:null)===A.CLASS_NAME?{position:i.getPositionFromDOMInfo(_.offsetNode.parentNode,_.offset),hitTarget:null}:{position:null,hitTarget:_.offsetNode.parentNode}}if(_.offsetNode.nodeType===_.offsetNode.ELEMENT_NODE){let R=_.offsetNode.parentNode;if((R&&R.nodeType===R.ELEMENT_NODE?R.className:null)===A.CLASS_NAME){let K=_.offsetNode.childNodes[Math.min(_.offset,_.offsetNode.childNodes.length-1)];if(K)return{position:i.getPositionFromDOMInfo(K,0),hitTarget:null}}}return{position:null,hitTarget:_.offsetNode}}static _doHitTestWithMoveToPoint(i,a){let _=null,R=null,K=document.body.createTextRange();try{K.moveToPoint(a.clientX,a.clientY)}catch(Je){return{position:null,hitTarget:null}}K.collapse(!0);let we=K?K.parentElement():null,Pe=we?we.parentNode:null,Ve=Pe?Pe.parentNode:null;if((Ve&&Ve.nodeType===Ve.ELEMENT_NODE?Ve.className:"")===A.CLASS_NAME){let Je=K.duplicate();Je.moveToElementText(we),Je.setEndPoint("EndToStart",K),_=i.getPositionFromDOMInfo(we,Je.text.length),Je.moveToElementText(i.viewDomNode)}else R=we;return K.moveToElementText(i.viewDomNode),{position:_,hitTarget:R}}static _doHitTest(i,a){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(i,a):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(i,a.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(i,a.pos.toClientCoordinates()):{position:null,hitTarget:null}}}class Zi{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return Zi._INSTANCE||(Zi._INSTANCE=new Zi),Zi._INSTANCE}getCharWidth(i,a){let _=i+a;if(this._cache[_])return this._cache[_];let R=this._canvas.getContext("2d");R.font=a;let K=R.measureText(i).width;return this._cache[_]=K,K}}Zi._INSTANCE=null;var Bi=r(135);function Lt(Zt){return function(i,a){let _=!1;return Zt&&(_=Zt.mouseTargetIsWidget(a)),_||a.preventDefault(),a}}class Oi extends ke{constructor(i,a,_){super(),this._context=i,this.viewController=a,this.viewHelper=_,this.mouseTargetFactory=new Ai(this._context,_),this._mouseDownOperation=this._register(new gt(this._context,this.viewController,this.viewHelper,(K,we)=>this._createMouseTarget(K,we),K=>this._getMouseColumn(K))),this.lastMouseLeaveTime=-1;let R=new q(this.viewHelper.viewDomNode);this._register(R.onContextMenu(this.viewHelper.viewDomNode,K=>this._onContextMenu(K,!0))),this._register(R.onMouseMoveThrottled(this.viewHelper.viewDomNode,K=>this._onMouseMove(K),Lt(this.mouseTargetFactory),Oi.MOUSE_MOVE_MINIMUM_TIME)),this._register(R.onMouseUp(this.viewHelper.viewDomNode,K=>this._onMouseUp(K))),this._register(R.onMouseLeave(this.viewHelper.viewDomNode,K=>this._onMouseLeave(K))),this._register(R.onMouseDown(this.viewHelper.viewDomNode,K=>this._onMouseDown(K))),this._register(f.i(this.viewHelper.viewDomNode,f.c.MOUSE_WHEEL,K=>{if(this.viewController.emitMouseWheel(K),!this._context.configuration.options.get(59))return;let we=new k.b(K);if(we.browserEvent.ctrlKey||we.browserEvent.metaKey){let Pe=Bi.a.getZoomLevel(),Ve=we.deltaY>0?1:-1;Bi.a.setZoomLevel(Pe+Ve),we.preventDefault(),we.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onCursorStateChanged(i){return this._mouseDownOperation.onCursorStateChanged(i),!1}onFocusChanged(i){return!1}onScrollChanged(i){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(i,a){let _=new g(i,a).toPageCoordinates(),R=ie(this.viewHelper.viewDomNode);return _.y<R.y||_.y>R.y+R.height||_.x<R.x||_.x>R.x+R.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),R,_,null)}_createMouseTarget(i,a){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i.editorPos,i.pos,a?i.target:null)}_getMouseColumn(i){return this.mouseTargetFactory.getMouseColumn(i.editorPos,i.pos)}_onContextMenu(i,a){this.viewController.emitContextMenu({event:i,target:this._createMouseTarget(i,a)})}_onMouseMove(i){this._mouseDownOperation.isActive()||i.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:i,target:this._createMouseTarget(i,!0)})}_onMouseLeave(i){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:i,target:null})}_onMouseUp(i){this.viewController.emitMouseUp({event:i,target:this._createMouseTarget(i,!0)})}_onMouseDown(i){let a=this._createMouseTarget(i,!0),_=a.type===6||a.type===7,R=a.type===2||a.type===3||a.type===4,K=a.type===3,we=this._context.configuration.options.get(90),Pe=a.type===8||a.type===5,Ve=a.type===9,Je=i.leftButton||i.middleButton;P.f&&i.leftButton&&i.ctrlKey&&(Je=!1);let at=()=>{i.preventDefault(),this.viewHelper.focusTextArea()};if(Je&&(_||K&&we))at(),this._mouseDownOperation.start(a.type,i);else if(R)i.preventDefault();else if(Pe){let bt=a.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(bt.viewZoneId)&&(at(),this._mouseDownOperation.start(a.type,i),i.preventDefault())}else Ve&&this.viewHelper.shouldSuppressMouseDownOnWidget(a.detail)&&(at(),i.preventDefault());this.viewController.emitMouseDown({event:i,target:a})}}Oi.MOUSE_MOVE_MINIMUM_TIME=100;class gt extends E.a{constructor(i,a,_,R,K){super(),this._context=i,this._viewController=a,this._viewHelper=_,this._createMouseTarget=R,this._getMouseColumn=K,this._mouseMoveMonitor=this._register(new se(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new l.e),this._mouseState=new vi,this._currentSelection=new C.a(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(i){this._lastMouseEvent=i,this._mouseState.setModifiers(i);let a=this._findMousePosition(i,!0);a&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:i,target:a}):this._dispatchMouse(a,!0))}start(i,a){this._lastMouseEvent=a,this._mouseState.setStartedOnLineNumbers(i===3),this._mouseState.setStartButtons(a),this._mouseState.setModifiers(a);let _=this._findMousePosition(a,!0);if(!_||!_.position)return;this._mouseState.trySetCount(a.detail,_.position),a.detail=this._mouseState.count;let R=this._context.configuration.options;if(!R.get(72)&&R.get(25)&&!R.get(13)&&!this._mouseState.altKey&&a.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&_.type===6&&_.position&&this._currentSelection.containsPosition(_.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(a.target,a.buttons,Lt(null),K=>this._onMouseDownThenMove(K),()=>{let K=this._findMousePosition(this._lastMouseEvent,!0);this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:K?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(_,a.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(a.target,a.buttons,Lt(null),K=>this._onMouseDownThenMove(K),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let i=this._findMousePosition(this._lastMouseEvent,!1);i&&(this._mouseState.isDragAndDrop||this._dispatchMouse(i,!0))},10)}onCursorStateChanged(i){this._currentSelection=i.selections[0]}_getPositionOutsideEditor(i){let a=i.editorPos,_=this._context.model,R=this._context.viewLayout,K=this._getMouseColumn(i);if(i.posy<a.y){let Pe=Math.max(R.getCurrentScrollTop()-(a.y-i.posy),0),Ve=et.getZoneAtCoord(this._context,Pe);if(Ve){let at=this._helpPositionJumpOverViewZone(Ve);if(at)return new Ni(null,13,K,at)}let Je=R.getLineNumberAtVerticalOffset(Pe);return new Ni(null,13,K,new At.a(Je,1))}if(i.posy>a.y+a.height){let Pe=R.getCurrentScrollTop()+(i.posy-a.y),Ve=et.getZoneAtCoord(this._context,Pe);if(Ve){let at=this._helpPositionJumpOverViewZone(Ve);if(at)return new Ni(null,13,K,at)}let Je=R.getLineNumberAtVerticalOffset(Pe);return new Ni(null,13,K,new At.a(Je,_.getLineMaxColumn(Je)))}let we=R.getLineNumberAtVerticalOffset(R.getCurrentScrollTop()+(i.posy-a.y));return i.posx<a.x?new Ni(null,13,K,new At.a(we,1)):i.posx>a.x+a.width?new Ni(null,13,K,new At.a(we,_.getLineMaxColumn(we))):null}_findMousePosition(i,a){let _=this._getPositionOutsideEditor(i);if(_)return _;let R=this._createMouseTarget(i,a);if(!R.position)return null;if(R.type===8||R.type===5){let K=this._helpPositionJumpOverViewZone(R.detail);if(K)return new Ni(R.element,R.type,R.mouseColumn,K,null,R.detail)}return R}_helpPositionJumpOverViewZone(i){let a=new At.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),_=i.positionBefore,R=i.positionAfter;return _&&R?_.isBefore(a)?_:R:null}_dispatchMouse(i,a){i.position&&this._viewController.dispatchMouse({position:i.position,mouseColumn:i.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:a,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class vi{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(i){this._altKey=i.altKey,this._ctrlKey=i.ctrlKey,this._metaKey=i.metaKey,this._shiftKey=i.shiftKey}setStartButtons(i){this._leftButton=i.leftButton,this._middleButton=i.middleButton}setStartedOnLineNumbers(i){this._startedOnLineNumbers=i}trySetCount(i,a){let _=new Date().getTime();_-this._lastSetMouseDownCountTime>vi.CLEAR_MOUSE_DOWN_COUNT_TIME&&(i=1),this._lastSetMouseDownCountTime=_,i>this._lastMouseDownCount+1&&(i=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(a)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=a,this._lastMouseDownCount=Math.min(i,this._lastMouseDownPositionEqualCount)}}vi.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Rt=r(138);function vt(Zt,i){let a={translationY:i.translationY,translationX:i.translationX};return Zt&&(a.translationY+=Zt.translationY,a.translationX+=Zt.translationX),a}class Ue extends Oi{constructor(i,a,_){super(i,a,_),this.viewHelper.linesContentDomNode.style.touchAction="none",this._installGestureHandlerTimeout=window.setTimeout(()=>{if(this._installGestureHandlerTimeout=-1,window.MSGesture){let R=new MSGesture,K=new MSGesture;R.target=this.viewHelper.linesContentDomNode,K.target=this.viewHelper.linesContentDomNode,this.viewHelper.linesContentDomNode.addEventListener("pointerdown",we=>{let Pe=we.pointerType;Pe!=="mouse"?Pe==="touch"?(this._lastPointerType="touch",R.addPointer(we.pointerId)):(this._lastPointerType="pen",K.addPointer(we.pointerId)):this._lastPointerType="mouse"}),this._register(f.l(this.viewHelper.linesContentDomNode,"MSGestureChange",we=>this._onGestureChange(we),vt)),this._register(f.i(this.viewHelper.linesContentDomNode,"MSGestureTap",we=>this._onCaptureGestureTap(we),!0))}},100),this._lastPointerType="mouse"}_onMouseDown(i){this._lastPointerType==="mouse"&&super._onMouseDown(i)}_onCaptureGestureTap(i){let a=new U(i,this.viewHelper.viewDomNode),_=this._createMouseTarget(a,!1);_.position&&this.viewController.moveTo(_.position),a.browserEvent.fromElement?(a.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(()=>{this.viewHelper.focusTextArea()})}_onGestureChange(i){this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}dispose(){window.clearTimeout(this._installGestureHandlerTimeout),super.dispose()}}class ut extends Oi{constructor(i,a,_){super(i,a,_),this._register(V.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Tap,K=>this.onTap(K))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Change,K=>this.onChange(K))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Contextmenu,K=>this._onContextMenu(new U(K,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(f.i(this.viewHelper.linesContentDomNode,"pointerdown",K=>{let we=K.pointerType;this._lastPointerType=we!=="mouse"?we==="touch"?"touch":"pen":"mouse"}));let R=new B(this.viewHelper.viewDomNode);this._register(R.onPointerMoveThrottled(this.viewHelper.viewDomNode,K=>this._onMouseMove(K),Lt(this.mouseTargetFactory),Oi.MOUSE_MOVE_MINIMUM_TIME)),this._register(R.onPointerUp(this.viewHelper.viewDomNode,K=>this._onMouseUp(K))),this._register(R.onPointerLeave(this.viewHelper.viewDomNode,K=>this._onMouseLeave(K))),this._register(R.onPointerDown(this.viewHelper.viewDomNode,K=>this._onMouseDown(K)))}onTap(i){if(!i.initialTarget||!this.viewHelper.linesContentDomNode.contains(i.initialTarget))return;i.preventDefault(),this.viewHelper.focusTextArea();let a=this._createMouseTarget(new U(i,this.viewHelper.viewDomNode),!1);a.position&&this.viewController.dispatchMouse({position:a.position,mouseColumn:a.position.column,startedOnLineNumbers:!1,mouseDownCount:i.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(i){this._lastPointerType==="touch"&&this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}_onMouseDown(i){i.target&&this.viewHelper.linesContentDomNode.contains(i.target)&&this._lastPointerType==="touch"||super._onMouseDown(i)}}class ze extends Oi{constructor(i,a,_){super(i,a,_),this._register(V.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Tap,R=>this.onTap(R))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Change,R=>this.onChange(R))),this._register(f.i(this.viewHelper.linesContentDomNode,V.a.Contextmenu,R=>this._onContextMenu(new U(R,this.viewHelper.viewDomNode),!1)))}onTap(i){i.preventDefault(),this.viewHelper.focusTextArea();let a=this._createMouseTarget(new U(i,this.viewHelper.viewDomNode),!1);a.position&&this.viewController.moveTo(a.position)}onChange(i){this._context.model.deltaScrollNow(-i.translationX,-i.translationY)}}class st extends E.a{constructor(i,a,_){super(),P.c&&Rt.a.pointerEvents?this.handler=this._register(new ut(i,a,_)):window.TouchEvent?this.handler=this._register(new ze(i,a,_)):window.navigator.pointerEnabled||window.PointerEvent?this.handler=this._register(new Ue(i,a,_)):this.handler=this._register(new Oi(i,a,_))}getTargetAtClientPoint(i,a){return this.handler.getTargetAtClientPoint(i,a)}}r(210);var _t=r(8),ri=r(167),li=r(127);r(212);class gi extends ke{}var ki=r(57);class Ri extends gi{constructor(i){super(),this._context=i,this._readConfig(),this._lastCursorModelPosition=new At.a(1,1),this._renderResult=null,this._context.addEventHandler(this)}_readConfig(){let i=this._context.configuration.options;this._lineHeight=i.get(51);let a=i.get(52);this._renderLineNumbers=a.renderType,this._renderCustomLineNumbers=a.renderFn,this._renderFinalNewline=i.get(76);let _=i.get(117);this._lineNumbersLeft=_.lineNumbersLeft,this._lineNumbersWidth=_.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return this._readConfig(),!0}onCursorStateChanged(i){let a=i.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(a),this._renderLineNumbers===2||this._renderLineNumbers===3}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getLineRenderLineNumber(i){let a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i,1));if(a.column!==1)return"";let _=a.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(_);if(this._renderLineNumbers===2){let R=Math.abs(this._lastCursorModelPosition.lineNumber-_);return R===0?'<span class="relative-current-line-number">'+_+"</span>":String(R)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===_||_%10==0?String(_):"":String(_)}prepareRender(i){if(this._renderLineNumbers===0)return void(this._renderResult=null);let a=P.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber,K='<div class="'+Ri.CLASS_NAME+a+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',we=this._context.model.getLineCount(),Pe=[];for(let Ve=_;Ve<=R;Ve++){let Je=Ve-_;if(!this._renderFinalNewline&&Ve===we&&this._context.model.getLineLength(Ve)===0){Pe[Je]="";continue}let at=this._getLineRenderLineNumber(Ve);Pe[Je]=at?K+at+"</div>":""}this._renderResult=Pe}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}Ri.CLASS_NAME="line-numbers",Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.k);a&&i.addRule(`.monaco-editor .line-numbers { color: ${a}; }`);let _=Zt.getColor(ki.b);_&&i.addRule(`.monaco-editor .current-line ~ .line-numbers { color: ${_}; }`)});class $i extends xe{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._canUseLayerHinting=!a.get(23),this._contentLeft=_.contentLeft,this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setClassName($i.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(S.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName($i.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._canUseLayerHinting=!a.get(23),this._contentLeft=_.contentLeft,this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollTopChanged}prepareRender(i){}render(i){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");let a=i.scrollTop-i.bigNumbersDelta;this._domNode.setTop(-a);let _=Math.min(i.scrollHeight,1e6);this._domNode.setHeight(_),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(_)}}$i.CLASS_NAME="glyph-margin",$i.OUTER_CLASS_NAME="margin";var Hi=r(117),yi=r(145);class kt{constructor(i,a,_){this.top=i,this.left=a,this.width=_}setWidth(i){return new kt(this.top,this.left,i)}}let Et=T.f||T.h;class si extends xe{constructor(i,a,_){super(i),this._primaryCursorPosition=new At.a(1,1),this._primaryCursorVisibleRange=null,this._viewController=a,this._viewHelper=_,this._scrollLeft=0,this._scrollTop=0;let R=this._context.configuration.options,K=R.get(117);this._setAccessibilityOptions(R),this._contentLeft=K.contentLeft,this._contentWidth=K.contentWidth,this._contentHeight=K.height,this._fontInfo=R.get(36),this._lineHeight=R.get(51),this._emptySelectionClipboard=R.get(26),this._copyWithSyntaxHighlighting=R.get(16),this._visibleTextArea=null,this._selections=[new C.a(1,1,1,1)],this._modelSelections=[new C.a(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(S.b)(document.createElement("textarea")),Y.write(this.textArea,6),this.textArea.setClassName("inputarea "+yi.a),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(R)),this.textArea.setAttribute("tabindex",String(R.get(102))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",h.a("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),P.h&&R.get(72)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(S.b)(document.createElement("div")),this.textAreaCover.setPosition("absolute");let we={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:Ve=>this._context.model.getLineMaxColumn(Ve),getValueInRange:(Ve,Je)=>this._context.model.getValueInRange(Ve,Je)},Pe={getDataToCopy:Ve=>{let Je=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,P.i),at=this._context.model.getEOL(),bt=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),Bt=Array.isArray(Je)?Je:null,Pt=Array.isArray(Je)?Je.join(at):Je,ni,Ci=null;if(Ve&&(ri.a.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&Pt.length<65536)){let Vi=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);Vi&&(ni=Vi.html,Ci=Vi.mode)}return{isFromEmptySelection:bt,multicursorText:Bt,text:Pt,html:ni,mode:Ci}},getScreenReaderContent:Ve=>{if(this._accessibilitySupport===1){if(P.f){let Je=this._selections[0];if(Je.isEmpty()){let at=Je.getStartPosition(),bt=this._getWordBeforePosition(at);if(bt.length===0&&(bt=this._getCharacterBeforePosition(at)),bt.length>0)return new li.b(bt,bt.length,bt.length,at,at)}}return li.b.EMPTY}return li.a.fromEditorSelection(Ve,we,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(Ve,Je,at)=>this._context.model.deduceModelPositionRelativeToViewPosition(Ve,Je,at)};this._textAreaInput=this._register(new ri.c(Pe,this.textArea)),this._register(this._textAreaInput.onKeyDown(Ve=>{this._viewController.emitKeyDown(Ve)})),this._register(this._textAreaInput.onKeyUp(Ve=>{this._viewController.emitKeyUp(Ve)})),this._register(this._textAreaInput.onPaste(Ve=>{let Je=!1,at=null,bt=null;Ve.metadata&&(Je=this._emptySelectionClipboard&&!!Ve.metadata.isFromEmptySelection,at=Ve.metadata.multicursorText!==void 0?Ve.metadata.multicursorText:null,bt=Ve.metadata.mode),this._viewController.paste(Ve.text,Je,at,bt)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(Ve=>{Ve.replaceCharCnt?this._viewController.replacePreviousChar(Ve.text,Ve.replaceCharCnt):this._viewController.type(Ve.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(Ve=>{this._viewController.setSelection(Ve)})),this._register(this._textAreaInput.onCompositionStart(Ve=>{let Je=this._selections[0].startLineNumber,at=this._selections[0].startColumn-(Ve.moveOneCharacterLeft?1:0);this._context.model.revealRange("keyboard",!0,new Nt.a(Je,at,Je,at),0,1);let bt=this._viewHelper.visibleRangeForPositionRelativeToEditor(Je,at);bt&&(this._visibleTextArea=new kt(this._context.viewLayout.getVerticalOffsetForLineNumber(Je),bt.left,Et?0:1),this._render()),this.textArea.setClassName(`inputarea ${yi.a} ime-input`),this._viewController.compositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(Ve=>{T.f?this._visibleTextArea=this._visibleTextArea.setWidth(0):this._visibleTextArea=this._visibleTextArea.setWidth(function(Je,at){let bt=document.createElement("canvas").getContext("2d");bt.font=(Bt=at,Pt="normal",ni=Bt.fontWeight,Ci=Bt.fontSize,Vi=Bt.lineHeight,Mi=Bt.fontFamily,`${Pt} normal ${ni} ${Ci}px / ${Vi}px ${Mi}`);var Bt,Pt,ni,Ci,Vi,Mi;let zi=bt.measureText(Je);return T.h?zi.width+2:zi.width}(Ve.data,this._fontInfo)),this._render()})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+yi.a),this._viewController.compositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getWordBeforePosition(i){let a=this._context.model.getLineContent(i.lineNumber),_=Object(Hi.a)(this._context.configuration.options.get(105)),R=i.column,K=0;for(;R>1;){let we=a.charCodeAt(R-2);if(_.get(we)!==0||K>50)return a.substring(R-1,i.column-1);K++,R--}return a.substring(0,i.column-1)}_getCharacterBeforePosition(i){if(i.column>1){let a=this._context.model.getLineContent(i.lineNumber).charAt(i.column-2);if(!_t.F(a.charCodeAt(0)))return a}return""}_getAriaLabel(i){return i.get(2)===1?h.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",P.d?"Shift+Alt+F1":"Alt+F1"):i.get(4)}_setAccessibilityOptions(i){this._accessibilitySupport=i.get(2);let a=i.get(3);this._accessibilitySupport===2&&a===fe.g.accessibilityPageSize.defaultValue?this._accessibilityPageSize=100:this._accessibilityPageSize=a}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._setAccessibilityOptions(a),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._contentHeight=_.height,this._fontInfo=a.get(36),this._lineHeight=a.get(51),this._emptySelectionClipboard=a.get(26),this._copyWithSyntaxHighlighting=a.get(16),this.textArea.setAttribute("aria-label",this._getAriaLabel(a)),this.textArea.setAttribute("tabindex",String(a.get(102))),P.h&&i.hasChanged(72)&&(a.get(72)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),i.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),this._modelSelections=i.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return this._scrollLeft=i.scrollLeft,this._scrollTop=i.scrollTop,!0}onZonesChanged(i){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(i){i.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",i.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),i.role&&this.textArea.setAttribute("role",i.role)}prepareRender(i){this._primaryCursorPosition=new At.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=i.visibleRangeForPosition(this._primaryCursorPosition)}render(i){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();let i=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(i<this._contentLeft||i>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();let a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;a<0||a>this._contentHeight?this._renderAtTopLeft():P.f?this._renderInsideEditor(this._primaryCursorPosition,a,i,Et?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,a,i,Et?0:1,Et?0:1)}_renderInsideEditor(i,a,_,R,K){this._lastRenderPosition=i;let we=this.textArea,Pe=this.textAreaCover;W.a.applyFontInfo(we,this._fontInfo),we.setTop(a),we.setLeft(_),we.setWidth(R),we.setHeight(K),Pe.setTop(0),Pe.setLeft(0),Pe.setWidth(0),Pe.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;let i=this.textArea,a=this.textAreaCover;if(W.a.applyFontInfo(i,this._fontInfo),i.setTop(0),i.setLeft(0),a.setTop(0),a.setLeft(0),Et)return i.setWidth(0),i.setHeight(0),a.setWidth(0),void a.setHeight(0);i.setWidth(1),i.setHeight(1),a.setWidth(1),a.setHeight(1);let _=this._context.configuration.options;_.get(42)?a.setClassName("monaco-editor-background textAreaCover "+$i.OUTER_CLASS_NAME):_.get(52).renderType!==0?a.setClassName("monaco-editor-background textAreaCover "+Ri.CLASS_NAME):a.setClassName("monaco-editor-background textAreaCover")}}var Si=r(107);class Pi{constructor(i,a,_,R){this.configuration=i,this.viewModel=a,this.userInputEvents=_,this.commandDelegate=R}paste(i,a,_,R){this.commandDelegate.paste(i,a,_,R)}type(i){this.commandDelegate.type(i)}replacePreviousChar(i,a){this.commandDelegate.replacePreviousChar(i,a)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(i){Si.b.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:i})}_validateViewColumn(i){let a=this.viewModel.getLineMinColumn(i.lineNumber);return i.column<a?new At.a(i.lineNumber,a):i}_hasMulticursorModifier(i){switch(this.configuration.options.get(61)){case"altKey":return i.altKey;case"ctrlKey":return i.ctrlKey;case"metaKey":return i.metaKey;default:return!1}}_hasNonMulticursorModifier(i){switch(this.configuration.options.get(61)){case"altKey":return i.ctrlKey||i.metaKey;case"ctrlKey":return i.altKey||i.metaKey;case"metaKey":return i.ctrlKey||i.altKey;default:return!1}}dispatchMouse(i){let a=this.configuration.options,_=P.d&&a.get(88),R=a.get(13);i.middleButton&&!_?this._columnSelect(i.position,i.mouseColumn,i.inSelectionMode):i.startedOnLineNumbers?this._hasMulticursorModifier(i)?i.inSelectionMode?this._lastCursorLineSelect(i.position):this._createCursor(i.position,!0):i.inSelectionMode?this._lineSelectDrag(i.position):this._lineSelect(i.position):i.mouseDownCount>=4?this._selectAll():i.mouseDownCount===3?this._hasMulticursorModifier(i)?i.inSelectionMode?this._lastCursorLineSelectDrag(i.position):this._lastCursorLineSelect(i.position):i.inSelectionMode?this._lineSelectDrag(i.position):this._lineSelect(i.position):i.mouseDownCount===2?this._hasMulticursorModifier(i)?this._lastCursorWordSelect(i.position):i.inSelectionMode?this._wordSelectDrag(i.position):this._wordSelect(i.position):this._hasMulticursorModifier(i)?this._hasNonMulticursorModifier(i)||(i.shiftKey?this._columnSelect(i.position,i.mouseColumn,!0):i.inSelectionMode?this._lastCursorMoveToSelect(i.position):this._createCursor(i.position,!1)):i.inSelectionMode?i.altKey||R?this._columnSelect(i.position,i.mouseColumn,!0):this._moveToSelect(i.position):this.moveTo(i.position)}_usualArgs(i){return i=this._validateViewColumn(i),{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i}}moveTo(i){Si.b.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_moveToSelect(i){Si.b.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_columnSelect(i,a,_){i=this._validateViewColumn(i),Si.b.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,mouseColumn:a,doColumnSelect:_})}_createCursor(i,a){i=this._validateViewColumn(i),Si.b.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,wholeLine:a})}_lastCursorMoveToSelect(i){Si.b.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_wordSelect(i){Si.b.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_wordSelectDrag(i){Si.b.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorWordSelect(i){Si.b.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lineSelect(i){Si.b.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lineSelectDrag(i){Si.b.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorLineSelect(i){Si.b.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_lastCursorLineSelectDrag(i){Si.b.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i))}_selectAll(){Si.b.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(i){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i)}emitKeyDown(i){this.userInputEvents.emitKeyDown(i)}emitKeyUp(i){this.userInputEvents.emitKeyUp(i)}emitContextMenu(i){this.userInputEvents.emitContextMenu(i)}emitMouseMove(i){this.userInputEvents.emitMouseMove(i)}emitMouseLeave(i){this.userInputEvents.emitMouseLeave(i)}emitMouseUp(i){this.userInputEvents.emitMouseUp(i)}emitMouseDown(i){this.userInputEvents.emitMouseDown(i)}emitMouseDrag(i){this.userInputEvents.emitMouseDrag(i)}emitMouseDrop(i){this.userInputEvents.emitMouseDrop(i)}emitMouseWheel(i){this.userInputEvents.emitMouseWheel(i)}}class Wi{constructor(i){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseWheel=null,this._coordinatesConverter=i}emitKeyDown(i){this.onKeyDown&&this.onKeyDown(i)}emitKeyUp(i){this.onKeyUp&&this.onKeyUp(i)}emitContextMenu(i){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(i))}emitMouseMove(i){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(i))}emitMouseLeave(i){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(i))}emitMouseDown(i){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(i))}emitMouseUp(i){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(i))}emitMouseDrag(i){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(i))}emitMouseDrop(i){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(i))}emitMouseWheel(i){this.onMouseWheel&&this.onMouseWheel(i)}_convertViewToModelMouseEvent(i){return i.target?{event:i.event,target:this._convertViewToModelMouseTarget(i.target)}:i}_convertViewToModelMouseTarget(i){return Wi.convertViewToModelMouseTarget(i,this._coordinatesConverter)}static convertViewToModelMouseTarget(i,a){return new xn(i.element,i.type,i.mouseColumn,i.position?a.convertViewPositionToModelPosition(i.position):null,i.range?a.convertViewRangeToModelRange(i.range):null,i.detail)}}class xn{constructor(i,a,_,R,K,we){this.element=i,this.type=a,this.mouseColumn=_,this.position=R,this.range=K,this.detail=we}toString(){return Ni.toString(this)}}var un=r(132);class bn{constructor(i){this._createLine=i,this._set(1,[])}flush(){this._set(1,[])}_set(i,a){this._lines=a,this._rendLineNumberStart=i}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(i){let a=i-this._rendLineNumberStart;if(a<0||a>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[a]}onLinesDeleted(i,a){if(this.getCount()===0)return null;let _=this.getStartLineNumber(),R=this.getEndLineNumber();if(a<_){let Pe=a-i+1;return this._rendLineNumberStart-=Pe,null}if(i>R)return null;let K=0,we=0;for(let Pe=_;Pe<=R;Pe++){let Ve=Pe-this._rendLineNumberStart;i<=Pe&&Pe<=a&&(we===0?(K=Ve,we=1):we++)}if(i<_){let Pe=0;Pe=a<_?a-i+1:_-i,this._rendLineNumberStart-=Pe}return this._lines.splice(K,we)}onLinesChanged(i,a){if(this.getCount()===0)return!1;let _=this.getStartLineNumber(),R=this.getEndLineNumber(),K=!1;for(let we=i;we<=a;we++)we>=_&&we<=R&&(this._lines[we-this._rendLineNumberStart].onContentChanged(),K=!0);return K}onLinesInserted(i,a){if(this.getCount()===0)return null;let _=a-i+1,R=this.getStartLineNumber(),K=this.getEndLineNumber();if(i<=R)return this._rendLineNumberStart+=_,null;if(i>K)return null;if(_+i>K)return this._lines.splice(i-this._rendLineNumberStart,K-i+1);let we=[];for(let bt=0;bt<_;bt++)we[bt]=this._createLine();let Pe=i-this._rendLineNumberStart,Ve=this._lines.slice(0,Pe),Je=this._lines.slice(Pe,this._lines.length-_),at=this._lines.slice(this._lines.length-_,this._lines.length);return this._lines=Ve.concat(we).concat(Je),at}onTokensChanged(i){if(this.getCount()===0)return!1;let a=this.getStartLineNumber(),_=this.getEndLineNumber(),R=!1;for(let K=0,we=i.length;K<we;K++){let Pe=i[K];if(Pe.toLineNumber<a||Pe.fromLineNumber>_)continue;let Ve=Math.max(a,Pe.fromLineNumber),Je=Math.min(_,Pe.toLineNumber);for(let at=Ve;at<=Je;at++){let bt=at-this._rendLineNumberStart;this._lines[bt].onTokensChanged(),R=!0}}return R}}class Fn{constructor(i){this._host=i,this.domNode=this._createDomNode(),this._linesCollection=new bn(()=>this._host.createVisibleLine())}_createDomNode(){let i=Object(S.b)(document.createElement("div"));return i.setClassName("view-layer"),i.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i}onConfigurationChanged(i){return!!i.hasChanged(117)}onFlushed(i){return this._linesCollection.flush(),!0}onLinesChanged(i){return this._linesCollection.onLinesChanged(i.fromLineNumber,i.toLineNumber)}onLinesDeleted(i){let a=this._linesCollection.onLinesDeleted(i.fromLineNumber,i.toLineNumber);if(a)for(let _=0,R=a.length;_<R;_++){let K=a[_].getDomNode();K&&this.domNode.domNode.removeChild(K)}return!0}onLinesInserted(i){let a=this._linesCollection.onLinesInserted(i.fromLineNumber,i.toLineNumber);if(a)for(let _=0,R=a.length;_<R;_++){let K=a[_].getDomNode();K&&this.domNode.domNode.removeChild(K)}return!0}onScrollChanged(i){return i.scrollTopChanged}onTokensChanged(i){return this._linesCollection.onTokensChanged(i.ranges)}onZonesChanged(i){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(i){return this._linesCollection.getLine(i)}renderLines(i){let a=this._linesCollection._get(),_=new Mn(this.domNode.domNode,this._host,i),R={rendLineNumberStart:a.rendLineNumberStart,lines:a.lines,linesLength:a.lines.length},K=_.render(R,i.startLineNumber,i.endLineNumber,i.relativeVerticalOffset);this._linesCollection._set(K.rendLineNumberStart,K.lines)}}class Mn{constructor(i,a,_){this.domNode=i,this.host=a,this.viewportData=_}render(i,a,_,R){let K={rendLineNumberStart:i.rendLineNumberStart,lines:i.lines.slice(0),linesLength:i.linesLength};if(K.rendLineNumberStart+K.linesLength-1<a||_<K.rendLineNumberStart){K.rendLineNumberStart=a,K.linesLength=_-a+1,K.lines=[];for(let we=a;we<=_;we++)K.lines[we-a]=this.host.createVisibleLine();return this._finishRendering(K,!0,R),K}if(this._renderUntouchedLines(K,Math.max(a-K.rendLineNumberStart,0),Math.min(_-K.rendLineNumberStart,K.linesLength-1),R,a),K.rendLineNumberStart>a){let we=a,Pe=Math.min(_,K.rendLineNumberStart-1);we<=Pe&&(this._insertLinesBefore(K,we,Pe,R,a),K.linesLength+=Pe-we+1)}else if(K.rendLineNumberStart<a){let we=Math.min(K.linesLength,a-K.rendLineNumberStart);we>0&&(this._removeLinesBefore(K,we),K.linesLength-=we)}if(K.rendLineNumberStart=a,K.rendLineNumberStart+K.linesLength-1<_){let we=K.rendLineNumberStart+K.linesLength,Pe=_;we<=Pe&&(this._insertLinesAfter(K,we,Pe,R,a),K.linesLength+=Pe-we+1)}else if(K.rendLineNumberStart+K.linesLength-1>_){let we=Math.max(0,_-K.rendLineNumberStart+1),Pe=K.linesLength-1-we+1;Pe>0&&(this._removeLinesAfter(K,Pe),K.linesLength-=Pe)}return this._finishRendering(K,!1,R),K}_renderUntouchedLines(i,a,_,R,K){let we=i.rendLineNumberStart,Pe=i.lines;for(let Ve=a;Ve<=_;Ve++){let Je=we+Ve;Pe[Ve].layoutLine(Je,R[Je-K])}}_insertLinesBefore(i,a,_,R,K){let we=[],Pe=0;for(let Ve=a;Ve<=_;Ve++)we[Pe++]=this.host.createVisibleLine();i.lines=we.concat(i.lines)}_removeLinesBefore(i,a){for(let _=0;_<a;_++){let R=i.lines[_].getDomNode();R&&this.domNode.removeChild(R)}i.lines.splice(0,a)}_insertLinesAfter(i,a,_,R,K){let we=[],Pe=0;for(let Ve=a;Ve<=_;Ve++)we[Pe++]=this.host.createVisibleLine();i.lines=i.lines.concat(we)}_removeLinesAfter(i,a){let _=i.linesLength-a;for(let R=0;R<a;R++){let K=i.lines[_+R].getDomNode();K&&this.domNode.removeChild(K)}i.lines.splice(_,a)}_finishRenderingNewLines(i,a,_,R){let K=this.domNode.lastChild;a||!K?this.domNode.innerHTML=_:K.insertAdjacentHTML("afterend",_);let we=this.domNode.lastChild;for(let Pe=i.linesLength-1;Pe>=0;Pe--){let Ve=i.lines[Pe];R[Pe]&&(Ve.setDomNode(we),we=we.previousSibling)}}_finishRenderingInvalidLines(i,a,_){let R=document.createElement("div");R.innerHTML=a;for(let K=0;K<i.linesLength;K++){let we=i.lines[K];if(_[K]){let Pe=R.firstChild,Ve=we.getDomNode();Ve.parentNode.replaceChild(Pe,Ve),we.setDomNode(Pe)}}}_finishRendering(i,a,_){let R=Mn._sb,K=i.linesLength,we=i.lines,Pe=i.rendLineNumberStart,Ve=[];{R.reset();let Je=!1;for(let at=0;at<K;at++){let bt=we[at];Ve[at]=!1,!bt.getDomNode()&&bt.renderLine(at+Pe,_[at],this.viewportData,R)&&(Ve[at]=!0,Je=!0)}Je&&this._finishRenderingNewLines(i,a,R.build(),Ve)}{R.reset();let Je=!1,at=[];for(let bt=0;bt<K;bt++){let Bt=we[bt];at[bt]=!1,!Ve[bt]&&Bt.renderLine(bt+Pe,_[bt],this.viewportData,R)&&(at[bt]=!0,Je=!0)}Je&&this._finishRenderingInvalidLines(i,R.build(),at)}}}Mn._sb=Object(un.a)(1e5);class Nn extends xe{constructor(i){super(i),this._visibleLines=new Fn(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let i=0,a=this._dynamicOverlays.length;i<a;i++)if(this._dynamicOverlays[i].shouldRender())return!0;return!1}dispose(){super.dispose();for(let i=0,a=this._dynamicOverlays.length;i<a;i++)this._dynamicOverlays[i].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new Hn(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(i){this._dynamicOverlays.push(i)}onConfigurationChanged(i){this._visibleLines.onConfigurationChanged(i);let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)this._visibleLines.getVisibleLine(R).onConfigurationChanged(i);return!0}onFlushed(i){return this._visibleLines.onFlushed(i)}onFocusChanged(i){return this._isFocused=i.isFocused,!0}onLinesChanged(i){return this._visibleLines.onLinesChanged(i)}onLinesDeleted(i){return this._visibleLines.onLinesDeleted(i)}onLinesInserted(i){return this._visibleLines.onLinesInserted(i)}onScrollChanged(i){return this._visibleLines.onScrollChanged(i)||!0}onTokensChanged(i){return this._visibleLines.onTokensChanged(i)}onZonesChanged(i){return this._visibleLines.onZonesChanged(i)}prepareRender(i){let a=this._dynamicOverlays.filter(_=>_.shouldRender());for(let _=0,R=a.length;_<R;_++){let K=a[_];K.prepareRender(i),K.onDidRender()}}render(i){this._viewOverlaysRender(i),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(i){this._visibleLines.renderLines(i.viewportData)}}class Hn{constructor(i,a){this._configuration=i,this._lineHeight=this._configuration.options.get(51),this._dynamicOverlays=a,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(i){this._domNode=Object(S.b)(i)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(i){this._lineHeight=this._configuration.options.get(51)}renderLine(i,a,_,R){let K="";for(let we=0,Pe=this._dynamicOverlays.length;we<Pe;we++)K+=this._dynamicOverlays[we].render(_.startLineNumber,i);return this._renderedContent!==K&&(this._renderedContent=K,R.appendASCIIString('<div style="position:absolute;top:'),R.appendASCIIString(String(a)),R.appendASCIIString("px;width:100%;height:"),R.appendASCIIString(String(this._lineHeight)),R.appendASCIIString('px;">'),R.appendASCIIString(K),R.appendASCIIString("</div>"),!0)}layoutLine(i,a){this._domNode&&(this._domNode.setTop(a),this._domNode.setHeight(this._lineHeight))}}class Jn extends Nn{constructor(i){super(i);let a=this._context.configuration.options.get(117);this._contentWidth=a.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._contentWidth=a.contentWidth,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollWidthChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i),this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth))}}class br extends Nn{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._contentLeft=_.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),W.a.applyFontInfo(this.domNode,a.get(36))}onConfigurationChanged(i){let a=this._context.configuration.options;W.a.applyFontInfo(this.domNode,a.get(36));let _=a.get(117);return this._contentLeft=_.contentLeft,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollHeightChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i);let a=Math.min(i.scrollHeight,1e6);this.domNode.setHeight(a),this.domNode.setWidth(this._contentLeft)}}class pn{constructor(i,a){this.top=i,this.left=a}}class Gn extends xe{constructor(i,a){super(i),this._viewDomNode=a,this._widgets={},this.domNode=Object(S.b)(document.createElement("div")),Y.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(S.b)(document.createElement("div")),Y.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onConfigurationChanged(i);return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLineMappingChanged(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onLineMappingChanged(i);return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return!0}onZonesChanged(i){return!0}addWidget(i){let a=new rn(this._context,this._viewDomNode,i);this._widgets[a.id]=a,a.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(a.domNode):this.domNode.appendChild(a.domNode),this.setShouldRender()}setWidgetPosition(i,a,_){this._widgets[i.getId()].setPosition(a,_),this.setShouldRender()}removeWidget(i){let a=i.getId();if(this._widgets.hasOwnProperty(a)){let _=this._widgets[a];delete this._widgets[a];let R=_.domNode.domNode;R.parentNode.removeChild(R),R.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(i){return!!this._widgets.hasOwnProperty(i)&&this._widgets[i].suppressMouseDown}onBeforeRender(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].onBeforeRender(i)}prepareRender(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].prepareRender(i)}render(i){let a=Object.keys(this._widgets);for(let _ of a)this._widgets[_].render(i)}}class rn{constructor(i,a,_){this._context=i,this._viewDomNode=a,this._actual=_,this.domNode=Object(S.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;let R=this._context.configuration.options,K=R.get(117);this._fixedOverflowWidgets=R.get(30),this._contentWidth=K.contentWidth,this._contentLeft=K.contentLeft,this._lineHeight=R.get(51),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(i){let a=this._context.configuration.options;if(this._lineHeight=a.get(51),i.hasChanged(117)){let _=a.get(117);this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(i){this._setPosition(this._range)}_setPosition(i){if(this._range=i,this._viewRange=null,this._range){let a=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(a.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(a.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(a))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(i,a){this._setPosition(i),this._preference=a,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(i,a,_,R,K){let we=i.top,Pe=we,Ve=a.top+this._lineHeight,Je=we-R,at=Pe>=R,bt=Ve,Bt=K.viewportHeight-Ve>=R,Pt=i.left,ni=a.left;return Pt+_>K.scrollLeft+K.viewportWidth&&(Pt=K.scrollLeft+K.viewportWidth-_),ni+_>K.scrollLeft+K.viewportWidth&&(ni=K.scrollLeft+K.viewportWidth-_),Pt<K.scrollLeft&&(Pt=K.scrollLeft),ni<K.scrollLeft&&(ni=K.scrollLeft),{fitsAbove:at,aboveTop:Je,aboveLeft:Pt,fitsBelow:Bt,belowTop:bt,belowLeft:ni}}_layoutHorizontalSegmentInPage(i,a,_,R){let K=Math.max(0,a.left-R),we=Math.min(a.left+a.width+R,i.width),Pe=a.left+_-f.d.scrollX;if(Pe+R>we){let Ve=Pe-(we-R);Pe-=Ve,_-=Ve}if(Pe<K){let Ve=Pe-K;Pe-=Ve,_-=Ve}return[_,Pe]}_layoutBoxInPage(i,a,_,R,K){let we=i.top-R,Pe=a.top+this._lineHeight,Ve=f.C(this._viewDomNode.domNode),Je=Ve.top+we-f.d.scrollY,at=Ve.top+Pe-f.d.scrollY,bt=f.y(document.body),[Bt,Pt]=this._layoutHorizontalSegmentInPage(bt,Ve,i.left-K.scrollLeft+this._contentLeft,_),[ni,Ci]=this._layoutHorizontalSegmentInPage(bt,Ve,a.left-K.scrollLeft+this._contentLeft,_),Vi=Je>=22,Mi=at+R<=bt.height-22;return this._fixedOverflowWidgets?{fitsAbove:Vi,aboveTop:Math.max(Je,22),aboveLeft:Pt,fitsBelow:Mi,belowTop:at,belowLeft:Ci}:{fitsAbove:Vi,aboveTop:we,aboveLeft:Bt,fitsBelow:Mi,belowTop:Pe,belowLeft:ni}}_prepareRenderWidgetAtExactPositionOverflowing(i){return new pn(i.top,i.left+this._contentLeft)}_getTopAndBottomLeft(i){if(!this._viewRange)return[null,null];let a=i.linesVisibleRangesForRange(this._viewRange,!1);if(!a||a.length===0)return[null,null];let _=a[0],R=a[0];for(let at of a)at.lineNumber<_.lineNumber&&(_=at),at.lineNumber>R.lineNumber&&(R=at);let K=1073741824;for(let at of _.ranges)at.left<K&&(K=at.left);let we=1073741824;for(let at of R.ranges)at.left<we&&(we=at.left);let Pe=i.getVerticalOffsetForLineNumber(_.lineNumber)-i.scrollTop,Ve=new pn(Pe,K),Je=i.getVerticalOffsetForLineNumber(R.lineNumber)-i.scrollTop;return[Ve,new pn(Je,we)]}_prepareRenderWidget(i){let[a,_]=this._getTopAndBottomLeft(i);if(!a||!_)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){let K=this.domNode.domNode;this._cachedDomNodeClientWidth=K.clientWidth,this._cachedDomNodeClientHeight=K.clientHeight}let R;if(R=this.allowEditorOverflow?this._layoutBoxInPage(a,_,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,i):this._layoutBoxInViewport(a,_,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,i),this._preference)for(let K=1;K<=2;K++)for(let we of this._preference)if(we===1){if(!R)return null;if(K===2||R.fitsAbove)return new pn(R.aboveTop,R.aboveLeft)}else{if(we!==2)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(a):a;if(!R)return null;if(K===2||R.fitsBelow)return new pn(R.belowTop,R.belowLeft)}return null}onBeforeRender(i){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<i.startLineNumber||this._viewRange.startLineNumber>i.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(i){this._renderData=this._prepareRenderWidget(i)}render(i){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+i.scrollTop-i.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))}}r(216);var dr=r(16);let Dn=!0;class On extends gi{constructor(i){super(),this._context=i;let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._renderLineHighlight=a.get(77),this._renderLineHightlightOnlyWhenFocus=a.get(78),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[],this._selections=[],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let i=!1,a=Dn?this._selections.slice(0,1):this._selections,_=a.map(K=>K.positionLineNumber);_.sort((K,we)=>K-we),dr.g(this._cursorLineNumbers,_)||(this._cursorLineNumbers=_,i=!0);let R=a.every(K=>K.isEmpty());return this._selectionIsEmpty!==R&&(this._selectionIsEmpty=R,i=!0),i}onThemeChanged(i){return this._readFromSelections()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._renderLineHighlight=a.get(77),this._renderLineHightlightOnlyWhenFocus=a.get(78),this._contentLeft=_.contentLeft,this._contentWidth=_.contentWidth,!0}onCursorStateChanged(i){return this._selections=i.selections,this._readFromSelections()}onFlushed(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollWidthChanged||i.scrollTopChanged}onZonesChanged(i){return!0}onFocusChanged(i){return!!this._renderLineHightlightOnlyWhenFocus&&(this._focused=i.isFocused,!0)}prepareRender(i){if(!this._shouldRenderThis())return void(this._renderData=null);let a=this._renderOne(i),_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,we=0,Pe=[];for(let Ve=_;Ve<=R;Ve++){let Je=Ve-_;for(;we<K&&this._cursorLineNumbers[we]<Ve;)we++;we<K&&this._cursorLineNumbers[we]===Ve?Pe[Je]=a:Pe[Je]=""}this._renderData=Pe}render(i,a){if(!this._renderData)return"";let _=a-i;return _>=this._renderData.length?"":this._renderData[_]}}class qt extends On{_renderOne(i){return`<div class="${"current-line"+(this._shouldRenderOther()?" current-line-both":"")}" style="width:${Math.max(i.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}class I extends On{_renderOne(i){return`<div class="${"current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"")}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}Object(ht.g)((Zt,i)=>{Dn=!1;let a=Zt.getColor(ki.i);if(a&&(i.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${a}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${a}; border: none; }`)),!a||a.isTransparent()||Zt.defines(ki.j)){let _=Zt.getColor(ki.j);_&&(Dn=!0,i.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${_}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${_}; }`),Zt.type==="hc"&&(i.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),i.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}),r(218);class ne extends gi{constructor(i){super(),this._context=i;let a=this._context.configuration.options;this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged||i.scrollWidthChanged}onZonesChanged(i){return!0}prepareRender(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let Ve=0,Je=a.length;Ve<Je;Ve++){let at=a[Ve];at.options.className&&(_[R++]=at)}_=_.sort((Ve,Je)=>{if(Ve.options.zIndex<Je.options.zIndex)return-1;if(Ve.options.zIndex>Je.options.zIndex)return 1;let at=Ve.options.className,bt=Je.options.className;return at<bt?-1:at>bt?1:Nt.a.compareRangesUsingStarts(Ve.range,Je.range)});let K=i.visibleRange.startLineNumber,we=i.visibleRange.endLineNumber,Pe=[];for(let Ve=K;Ve<=we;Ve++)Pe[Ve-K]="";this._renderWholeLineDecorations(i,_,Pe),this._renderNormalDecorations(i,_,Pe),this._renderResult=Pe}_renderWholeLineDecorations(i,a,_){let R=String(this._lineHeight),K=i.visibleRange.startLineNumber,we=i.visibleRange.endLineNumber;for(let Pe=0,Ve=a.length;Pe<Ve;Pe++){let Je=a[Pe];if(!Je.options.isWholeLine)continue;let at='<div class="cdr '+Je.options.className+'" style="left:0;width:100%;height:'+R+'px;"></div>',bt=Math.max(Je.range.startLineNumber,K),Bt=Math.min(Je.range.endLineNumber,we);for(let Pt=bt;Pt<=Bt;Pt++)_[Pt-K]+=at}}_renderNormalDecorations(i,a,_){let R=String(this._lineHeight),K=i.visibleRange.startLineNumber,we=null,Pe=!1,Ve=null;for(let Je=0,at=a.length;Je<at;Je++){let bt=a[Je];if(bt.options.isWholeLine)continue;let Bt=bt.options.className,Pt=Boolean(bt.options.showIfCollapsed),ni=bt.range;Pt&&ni.endColumn===1&&ni.endLineNumber!==ni.startLineNumber&&(ni=new Nt.a(ni.startLineNumber,ni.startColumn,ni.endLineNumber-1,this._context.model.getLineMaxColumn(ni.endLineNumber-1))),we===Bt&&Pe===Pt&&Nt.a.areIntersectingOrTouching(Ve,ni)?Ve=Nt.a.plusRange(Ve,ni):(we!==null&&this._renderNormalDecoration(i,Ve,we,Pe,R,K,_),we=Bt,Pe=Pt,Ve=ni)}we!==null&&this._renderNormalDecoration(i,Ve,we,Pe,R,K,_)}_renderNormalDecoration(i,a,_,R,K,we,Pe){let Ve=i.linesVisibleRangesForRange(a,_==="findMatch");if(Ve)for(let Je=0,at=Ve.length;Je<at;Je++){let bt=Ve[Je];if(bt.outsideRenderedLine)continue;let Bt=bt.lineNumber-we;if(R&&bt.ranges.length===1){let Pt=bt.ranges[0];Pt.width===0&&(bt.ranges[0]=new he(Pt.left,this._typicalHalfwidthCharacterWidth))}for(let Pt=0,ni=bt.ranges.length;Pt<ni;Pt++){let Ci=bt.ranges[Pt],Vi='<div class="cdr '+_+'" style="left:'+String(Ci.left)+"px;width:"+String(Ci.width)+"px;height:"+K+'px;"></div>';Pe[Bt]+=Vi}}}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}var _e=r(105);class Fe extends xe{constructor(i,a,_,R){super(i);let K=this._context.configuration.options,we=K.get(84),Pe=K.get(58),Ve=K.get(28),Je=K.get(87),at={listenOnDomNode:_.domNode,className:"editor-scrollable "+Object(ht.f)(i.theme.type),useShadows:!1,lazyRender:!0,vertical:we.vertical,horizontal:we.horizontal,verticalHasArrows:we.verticalHasArrows,horizontalHasArrows:we.horizontalHasArrows,verticalScrollbarSize:we.verticalScrollbarSize,verticalSliderSize:we.verticalSliderSize,horizontalScrollbarSize:we.horizontalScrollbarSize,horizontalSliderSize:we.horizontalSliderSize,handleMouseWheel:we.handleMouseWheel,alwaysConsumeMouseWheel:we.alwaysConsumeMouseWheel,arrowSize:we.arrowSize,mouseWheelScrollSensitivity:Pe,fastScrollSensitivity:Ve,scrollPredominantAxis:Je};this.scrollbar=this._register(new _e.c(a.domNode,at,this._context.viewLayout.getScrollable())),Y.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(S.b)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let bt=(Bt,Pt,ni)=>{let Ci={};if(Pt){let Vi=Bt.scrollTop;Vi&&(Ci.scrollTop=this._context.viewLayout.getCurrentScrollTop()+Vi,Bt.scrollTop=0)}if(ni){let Vi=Bt.scrollLeft;Vi&&(Ci.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+Vi,Bt.scrollLeft=0)}this._context.model.setScrollPosition(Ci,1)};this._register(f.i(_.domNode,"scroll",Bt=>bt(_.domNode,!0,!0))),this._register(f.i(a.domNode,"scroll",Bt=>bt(a.domNode,!0,!1))),this._register(f.i(R.domNode,"scroll",Bt=>bt(R.domNode,!0,!1))),this._register(f.i(this.scrollbarDomNode.domNode,"scroll",Bt=>bt(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let i=this._context.configuration.options,a=i.get(117);this.scrollbarDomNode.setLeft(a.contentLeft),i.get(56).side==="right"?this.scrollbarDomNode.setWidth(a.contentWidth+a.minimap.minimapWidth):this.scrollbarDomNode.setWidth(a.contentWidth),this.scrollbarDomNode.setHeight(a.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(i){this.scrollbar.delegateVerticalScrollbarMouseDown(i)}onConfigurationChanged(i){if(i.hasChanged(84)||i.hasChanged(58)||i.hasChanged(28)){let a=this._context.configuration.options,_=a.get(84),R=a.get(58),K=a.get(28),we=a.get(87),Pe={handleMouseWheel:_.handleMouseWheel,mouseWheelScrollSensitivity:R,fastScrollSensitivity:K,scrollPredominantAxis:we};this.scrollbar.updateOptions(Pe)}return i.hasChanged(117)&&this._setLayout(),!0}onScrollChanged(i){return!0}onThemeChanged(i){return this.scrollbar.updateClassName("editor-scrollable "+Object(ht.f)(this._context.theme.type)),!0}prepareRender(i){}render(i){this.scrollbar.renderNow()}}r(222);class Xe{constructor(i,a,_){this.startLineNumber=+i,this.endLineNumber=+a,this.className=String(_)}}class rt extends gi{_render(i,a,_){let R=[];for(let Pe=i;Pe<=a;Pe++)R[Pe-i]=[];if(_.length===0)return R;_.sort((Pe,Ve)=>Pe.className===Ve.className?Pe.startLineNumber===Ve.startLineNumber?Pe.endLineNumber-Ve.endLineNumber:Pe.startLineNumber-Ve.startLineNumber:Pe.className<Ve.className?-1:1);let K=null,we=0;for(let Pe=0,Ve=_.length;Pe<Ve;Pe++){let Je=_[Pe],at=Je.className,bt=Math.max(Je.startLineNumber,i)-i,Bt=Math.min(Je.endLineNumber,a)-i;K===at?(bt=Math.max(we+1,bt),we=Math.max(we,Bt)):(K=at,we=Bt);for(let Pt=bt;Pt<=we;Pt++)R[Pt].push(K)}return R}}class Mt extends rt{constructor(i){super(),this._context=i;let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._glyphMargin=a.get(42),this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._glyphMargin=a.get(42),this._glyphMarginLeft=_.glyphMarginLeft,this._glyphMarginWidth=_.glyphMarginWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.glyphMarginClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve))}return _}prepareRender(i){if(!this._glyphMargin)return void(this._renderResult=null);let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K=this._lineHeight.toString(),we='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+K+'px;"></div>',Pe=[];for(let Ve=a;Ve<=_;Ve++){let Je=Ve-a,at=R[Je];at.length===0?Pe[Je]="":Pe[Je]='<div class="cgmr codicon '+at.join(" ")+we}this._renderResult=Pe}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}r(224);class Dt extends gi{constructor(i){super(),this._context=i,this._primaryLineNumber=0;let a=this._context.configuration.options,_=a.get(118),R=a.get(36);this._lineHeight=a.get(51),this._spaceWidth=R.spaceWidth,this._enabled=a.get(75),this._activeIndentEnabled=a.get(45),this._maxIndentLeft=_.wrappingColumn===-1?-1:_.wrappingColumn*R.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(118),R=a.get(36);return this._lineHeight=a.get(51),this._spaceWidth=R.spaceWidth,this._enabled=a.get(75),this._activeIndentEnabled=a.get(45),this._maxIndentLeft=_.wrappingColumn===-1?-1:_.wrappingColumn*R.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){let a=i.selections[0],_=a.isEmpty()?a.positionLineNumber:0;return this._primaryLineNumber!==_&&(this._primaryLineNumber=_,!0)}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}onLanguageConfigurationChanged(i){return!0}prepareRender(i){if(!this._enabled)return void(this._renderResult=null);let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,{indentSize:R}=this._context.model.getTextModelOptions(),K=R*this._spaceWidth,we=i.scrollWidth,Pe=this._lineHeight,Ve=this._context.model.getLinesIndentGuides(a,_),Je=0,at=0,bt=0;if(this._activeIndentEnabled&&this._primaryLineNumber){let Pt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,a,_);Je=Pt.startLineNumber,at=Pt.endLineNumber,bt=Pt.indent}let Bt=[];for(let Pt=a;Pt<=_;Pt++){let ni=Je<=Pt&&Pt<=at,Ci=Pt-a,Vi=Ve[Ci],Mi="";if(Vi>=1){let zi=i.visibleRangeForPosition(new At.a(Pt,1)),Yi=zi?zi.left:0;for(let Gi=1;Gi<=Vi&&(Mi+=`<div class="${ni&&Gi===bt?"cigra":"cigr"}" style="left:${Yi}px;height:${Pe}px;width:${K}px"></div>`,Yi+=K,!(Yi>we||this._maxIndentLeft>0&&Yi>this._maxIndentLeft));Gi++);}Bt[Ci]=Mi}this._renderResult=Bt}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.h);a&&i.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${a} inset; }`);let _=Zt.getColor(ki.a)||a;_&&i.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${_} inset; }`)}),r(226);class Tt{constructor(){this._currentVisibleRange=new Nt.a(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(i){this._currentVisibleRange=i}}class Ht{constructor(i,a,_,R,K,we){this.lineNumber=i,this.startColumn=a,this.endColumn=_,this.startScrollTop=R,this.stopScrollTop=K,this.scrollType=we,this.type="range",this.minLineNumber=i,this.maxLineNumber=i}}class jt{constructor(i,a,_,R){this.selections=i,this.startScrollTop=a,this.stopScrollTop=_,this.scrollType=R,this.type="selections";let K=i[0].startLineNumber,we=i[0].endLineNumber;for(let Pe=1,Ve=i.length;Pe<Ve;Pe++){let Je=i[Pe];K=Math.min(K,Je.startLineNumber),we=Math.max(we,Je.endLineNumber)}this.minLineNumber=K,this.maxLineNumber=we}}class Kt extends xe{constructor(i,a){super(i),this._linesContent=a,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Fn(this),this.domNode=this._visibleLines.domNode;let _=this._context.configuration,R=this._context.configuration.options,K=R.get(36),we=R.get(118);this._lineHeight=R.get(51),this._typicalHalfwidthCharacterWidth=K.typicalHalfwidthCharacterWidth,this._isViewportWrapping=we.isViewportWrapping,this._revealHorizontalRightPadding=R.get(81),this._cursorSurroundingLines=R.get(20),this._cursorSurroundingLinesStyle=R.get(21),this._canUseLayerHinting=!R.get(23),this._viewLineOptions=new Se(_,this._context.theme.type),Y.write(this.domNode,7),this.domNode.setClassName("view-lines "+yi.a),W.a.applyFontInfo(this.domNode,K),this._maxLineWidth=0,this._asyncUpdateLineWidths=new l.d(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new l.d(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Tt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new A(this._viewLineOptions)}onConfigurationChanged(i){this._visibleLines.onConfigurationChanged(i),i.hasChanged(118)&&(this._maxLineWidth=0);let a=this._context.configuration.options,_=a.get(36),R=a.get(118);return this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._isViewportWrapping=R.isViewportWrapping,this._revealHorizontalRightPadding=a.get(81),this._cursorSurroundingLines=a.get(20),this._cursorSurroundingLinesStyle=a.get(21),this._canUseLayerHinting=!a.get(23),W.a.applyFontInfo(this.domNode,_),this._onOptionsMaybeChanged(),i.hasChanged(117)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){let i=this._context.configuration,a=new Se(i,this._context.theme.type);if(!this._viewLineOptions.equals(a)){this._viewLineOptions=a;let _=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++)this._visibleLines.getVisibleLine(K).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber(),R=!1;for(let K=a;K<=_;K++)R=this._visibleLines.getVisibleLine(K).onSelectionChanged()||R;return R}onDecorationsChanged(i){{let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)this._visibleLines.getVisibleLine(R).onDecorationsChanged()}return!0}onFlushed(i){let a=this._visibleLines.onFlushed(i);return this._maxLineWidth=0,a}onLinesChanged(i){return this._visibleLines.onLinesChanged(i)}onLinesDeleted(i){return this._visibleLines.onLinesDeleted(i)}onLinesInserted(i){return this._visibleLines.onLinesInserted(i)}onRevealRangeRequest(i){let a=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),i.source,i.range,i.selections,i.verticalType);if(a===-1)return!1;let _=this._context.viewLayout.validateScrollPosition({scrollTop:a});i.revealHorizontal?i.range&&i.range.startLineNumber!==i.range.endLineNumber?_={scrollTop:_.scrollTop,scrollLeft:0}:i.range?this._horizontalRevealRequest=new Ht(i.range.startLineNumber,i.range.startColumn,i.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),_.scrollTop,i.scrollType):i.selections&&i.selections.length>0&&(this._horizontalRevealRequest=new jt(i.selections,this._context.viewLayout.getCurrentScrollTop(),_.scrollTop,i.scrollType)):this._horizontalRevealRequest=null;let R=Math.abs(this._context.viewLayout.getCurrentScrollTop()-_.scrollTop)<=this._lineHeight?1:i.scrollType;return this._context.model.setScrollPosition(_,R),!0}onScrollChanged(i){if(this._horizontalRevealRequest&&i.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&i.scrollTopChanged){let a=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),_=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(i.scrollTop<a||i.scrollTop>_)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(i.scrollWidth),this._visibleLines.onScrollChanged(i)||!0}onTokensChanged(i){return this._visibleLines.onTokensChanged(i)}onZonesChanged(i){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(i)}onThemeChanged(i){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(i,a){let _=this._getViewLineDomNode(i);if(_===null)return null;let R=this._getLineNumberFor(_);if(R===-1||R<1||R>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(R)===1)return new At.a(R,1);let K=this._visibleLines.getStartLineNumber(),we=this._visibleLines.getEndLineNumber();if(R<K||R>we)return null;let Pe=this._visibleLines.getVisibleLine(R).getColumnOfNodeOffset(R,i,a),Ve=this._context.model.getLineMinColumn(R);return Pe<Ve&&(Pe=Ve),new At.a(R,Pe)}_getViewLineDomNode(i){for(;i&&i.nodeType===1;){if(i.className===A.CLASS_NAME)return i;i=i.parentElement}return null}_getLineNumberFor(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();for(let R=a;R<=_;R++)if(i===this._visibleLines.getVisibleLine(R).getDomNode())return R;return-1}getLineWidth(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber();return i<a||i>_?-1:this._visibleLines.getVisibleLine(i).getWidth()}linesVisibleRangesForRange(i,a){if(this.shouldRender())return null;let _=i.endLineNumber,R=Nt.a.intersectRanges(i,this._lastRenderedData.getCurrentVisibleRange());if(!R)return null;let K=[],we=0,Pe=new J(this.domNode.domNode,this._textRangeRestingSpot),Ve=0;a&&(Ve=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(R.startLineNumber,1)).lineNumber);let Je=this._visibleLines.getStartLineNumber(),at=this._visibleLines.getEndLineNumber();for(let bt=R.startLineNumber;bt<=R.endLineNumber;bt++){if(bt<Je||bt>at)continue;let Bt=bt===R.startLineNumber?R.startColumn:1,Pt=bt===R.endLineNumber?R.endColumn:this._context.model.getLineMaxColumn(bt),ni=this._visibleLines.getVisibleLine(bt).getVisibleRangesForRange(Bt,Pt,Pe);if(ni){if(a&&bt<_){let Ci=Ve;Ve=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new At.a(bt+1,1)).lineNumber,Ci!==Ve&&(ni.ranges[ni.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}K[we++]=new te(ni.outsideRenderedLine,bt,ni.ranges)}}return we===0?null:K}_visibleRangesForLineRange(i,a,_){return this.shouldRender()||i<this._visibleLines.getStartLineNumber()||i>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(i).getVisibleRangesForRange(a,_,new J(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(i){let a=this._visibleRangesForLineRange(i.lineNumber,i.column,i.column);return a?new Ce(a.outsideRenderedLine,a.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(i){let a=this._visibleLines.getStartLineNumber(),_=this._visibleLines.getEndLineNumber(),R=1,K=!0;for(let we=a;we<=_;we++){let Pe=this._visibleLines.getVisibleLine(we);!i||Pe.getWidthIsFast()?R=Math.max(R,Pe.getWidth()):K=!1}return K&&a===1&&_===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(R),K}_checkMonospaceFontAssumptions(){let i=-1,a=-1,_=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++){let we=this._visibleLines.getVisibleLine(K);if(we.needsMonospaceFontCheck()){let Pe=we.getWidth();Pe>a&&(a=Pe,i=K)}}if(i!==-1&&!this._visibleLines.getVisibleLine(i).monospaceAssumptionsAreValid())for(let K=_;K<=R;K++)this._visibleLines.getVisibleLine(K).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(i){if(this._visibleLines.renderLines(i),this._lastRenderedData.setCurrentVisibleRange(i.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){let _=this._horizontalRevealRequest;if(i.startLineNumber<=_.minLineNumber&&_.maxLineNumber<=i.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();let R=this._computeScrollLeftToReveal(_);R&&(this._isViewportWrapping||this._ensureMaxLineWidth(R.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:R.scrollLeft},_.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),P.d&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){let _=this._visibleLines.getStartLineNumber(),R=this._visibleLines.getEndLineNumber();for(let K=_;K<=R;K++)if(this._visibleLines.getVisibleLine(K).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");let a=this._context.viewLayout.getCurrentScrollTop()-i.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(i){let a=Math.ceil(i);this._maxLineWidth<a&&(this._maxLineWidth=a,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(i,a,_,R,K){let we=i.top,Pe=i.height,Ve=we+Pe,Je,at,bt;if(R&&R.length>0){let Pt=R[0].startLineNumber,ni=R[0].endLineNumber;for(let Ci=1,Vi=R.length;Ci<Vi;Ci++){let Mi=R[Ci];Pt=Math.min(Pt,Mi.startLineNumber),ni=Math.max(ni,Mi.endLineNumber)}Je=!1,at=this._context.viewLayout.getVerticalOffsetForLineNumber(Pt),bt=this._context.viewLayout.getVerticalOffsetForLineNumber(ni)+this._lineHeight}else{if(!_)return-1;Je=!0,at=this._context.viewLayout.getVerticalOffsetForLineNumber(_.startLineNumber),bt=this._context.viewLayout.getVerticalOffsetForLineNumber(_.endLineNumber)+this._lineHeight}if(!(a==="mouse"&&this._cursorSurroundingLinesStyle==="default")){let Pt=Math.min(Pe/this._lineHeight/2,this._cursorSurroundingLines);at-=Pt*this._lineHeight,bt+=Math.max(0,Pt-1)*this._lineHeight}let Bt;if(K!==0&&K!==4||(bt+=this._lineHeight),bt-at>Pe){if(!Je)return-1;Bt=at}else if(K===5||K===6)if(K===6&&we<=at&&bt<=Ve)Bt=we;else{let Pt=at-Math.max(5*this._lineHeight,.2*Pe),ni=bt-Pe;Bt=Math.max(ni,Pt)}else if(K===1||K===2)if(K===2&&we<=at&&bt<=Ve)Bt=we;else{let Pt=(at+bt)/2;Bt=Math.max(0,Pt-Pe/2)}else Bt=this._computeMinimumScrolling(we,Ve,at,bt,K===3,K===4);return Bt}_computeScrollLeftToReveal(i){let a=this._context.viewLayout.getCurrentViewport(),_=a.left,R=_+a.width,K=1073741824,we=0;if(i.type==="range"){let Pe=this._visibleRangesForLineRange(i.lineNumber,i.startColumn,i.endColumn);if(!Pe)return null;for(let Ve of Pe.ranges)K=Math.min(K,Ve.left),we=Math.max(we,Ve.left+Ve.width)}else for(let Pe of i.selections){if(Pe.startLineNumber!==Pe.endLineNumber)return null;let Ve=this._visibleRangesForLineRange(Pe.startLineNumber,Pe.startColumn,Pe.endColumn);if(!Ve)return null;for(let Je of Ve.ranges)K=Math.min(K,Je.left),we=Math.max(we,Je.left+Je.width)}return K=Math.max(0,K-Kt.HORIZONTAL_EXTRA_PX),we+=this._revealHorizontalRightPadding,i.type==="selections"&&we-K>a.width?null:{scrollLeft:this._computeMinimumScrolling(_,R,K,we),maxHorizontalOffset:we}}_computeMinimumScrolling(i,a,_,R,K,we){K=!!K,we=!!we;let Pe=(a|=0)-(i|=0);return(R|=0)-(_|=0)<Pe?K?_:we?Math.max(0,R-Pe):_<i?_:R>a?Math.max(0,R-Pe):i:_}}Kt.HORIZONTAL_EXTRA_PX=30,r(228);class wi extends rt{constructor(i){super(),this._context=i;let a=this._context.configuration.options.get(117);this._decorationsLeft=a.decorationsLeft,this._decorationsWidth=a.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._decorationsLeft=a.decorationsLeft,this._decorationsWidth=a.decorationsWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.linesDecorationsClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve));let Je=Pe.options.firstLineDecorationClassName;Je&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.startLineNumber,Je))}return _}prepareRender(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',we=[];for(let Pe=a;Pe<=_;Pe++){let Ve=Pe-a,Je=R[Ve],at="";for(let bt=0,Bt=Je.length;bt<Bt;bt++)at+='<div class="cldr '+Je[bt]+K;we[Ve]=at}this._renderResult=we}render(i,a){return this._renderResult?this._renderResult[a-i]:""}}r(230);class Ti extends rt{constructor(i){super(),this._context=i,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let a=i.getDecorationsInViewport(),_=[],R=0;for(let K=0,we=a.length;K<we;K++){let Pe=a[K],Ve=Pe.options.marginClassName;Ve&&(_[R++]=new Xe(Pe.range.startLineNumber,Pe.range.endLineNumber,Ve))}return _}prepareRender(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber,R=this._render(a,_,this._getDecorations(i)),K=[];for(let we=a;we<=_;we++){let Pe=we-a,Ve=R[Pe],Je="";for(let at=0,bt=Ve.length;at<bt;at++)Je+='<div class="cmdr '+Ve[at]+'" style=""></div>';K[Pe]=Je}this._renderResult=K}render(i,a){return this._renderResult?this._renderResult[a-i]:""}}r(232);class ft{constructor(i,a,_,R){this.r=ft._clamp(i),this.g=ft._clamp(a),this.b=ft._clamp(_),this.a=ft._clamp(R)}equals(i){return this.r===i.r&&this.g===i.g&&this.b===i.b&&this.a===i.a}static _clamp(i){return i<0?0:i>255?255:0|i}}ft.Empty=new ft(0,0,0,0);var X=r(12);class ae{constructor(){this._onDidChange=new H.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),X.C.onDidChange(i=>{i.changedColorMap&&this._updateColorMap()})}static getInstance(){return this._INSTANCE||(this._INSTANCE=new ae),this._INSTANCE}_updateColorMap(){let i=X.C.getColorMap();if(!i)return this._colors=[ft.Empty],void(this._backgroundIsLight=!0);this._colors=[ft.Empty];for(let _=1;_<i.length;_++){let R=i[_].rgba;this._colors[_]=new ft(R.r,R.g,R.b,Math.round(255*R.a))}let a=i[2].getRelativeLuminance();this._backgroundIsLight=a>=.5,this._onDidChange.fire(void 0)}getColor(i){return(i<1||i>=this._colors.length)&&(i=2),this._colors[i]}backgroundIsLight(){return this._backgroundIsLight}}ae._INSTANCE=null;var Ge=r(74),lt=r(5);let Ot=(()=>{let Zt=[];for(let i=32;i<=126;i++)Zt.push(i);return Zt.push(65533),Zt})();var Gt=r(36);class ti{constructor(i,a){this.scale=a,this.charDataNormal=ti.soften(i,.8),this.charDataLight=ti.soften(i,50/60)}static soften(i,a){let _=new Uint8ClampedArray(i.length);for(let R=0,K=i.length;R<K;R++)_[R]=Object(Gt.b)(i[R]*a);return _}renderChar(i,a,_,R,K,we,Pe,Ve,Je){let at=1*this.scale,bt=2*this.scale,Bt=Je?1:bt;if(a+at>i.width||_+Bt>i.height)return void console.warn("bad render request outside image data");let Pt=Ve?this.charDataLight:this.charDataNormal,ni=((qn,or)=>(qn-=32)<0||qn>96?or<=2?(qn+96)%96:95:qn)(R,Pe),Ci=4*i.width,Vi=we.r,Mi=we.g,zi=we.b,Yi=K.r-Vi,Gi=K.g-Mi,wn=K.b-zi,nn=i.data,Wn=ni*at*bt,An=_*Ci+4*a;for(let qn=0;qn<Bt;qn++){let or=An;for(let Un=0;Un<at;Un++){let Tr=Pt[Wn++]/255;nn[or++]=Vi+Yi*Tr,nn[or++]=Mi+Gi*Tr,nn[or++]=zi+wn*Tr,or++}An+=Ci}}blockRenderChar(i,a,_,R,K,we,Pe){let Ve=1*this.scale,Je=2*this.scale,at=Pe?1:Je;if(a+Ve>i.width||_+at>i.height)return void console.warn("bad render request outside image data");let bt=4*i.width,Bt=K.r,Pt=K.g,ni=K.b,Ci=Bt+.5*(R.r-Bt),Vi=Pt+.5*(R.g-Pt),Mi=ni+.5*(R.b-ni),zi=i.data,Yi=_*bt+4*a;for(let Gi=0;Gi<at;Gi++){let wn=Yi;for(let nn=0;nn<Ve;nn++)zi[wn++]=Ci,zi[wn++]=Vi,zi[wn++]=Mi,wn++;Yi+=bt}}}var ye=r(133);let le={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},ue=Zt=>{let i=new Uint8ClampedArray(Zt.length/2);for(let a=0;a<Zt.length;a+=2)i[a>>1]=le[Zt[a]]<<4|15&le[Zt[a+1]];return i},qe={1:Object(ye.a)(()=>ue("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(ye.a)(()=>ue("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class Ze{static create(i,a){if(this.lastCreated&&i===this.lastCreated.scale&&a===this.lastFontFamily)return this.lastCreated;let _;return _=qe[i]?new ti(qe[i](),i):Ze.createFromSampleData(Ze.createSampleData(a).data,i),this.lastFontFamily=a,this.lastCreated=_,_}static createSampleData(i){let a=document.createElement("canvas"),_=a.getContext("2d");a.style.height="16px",a.height=16,a.width=960,a.style.width="960px",_.fillStyle="#ffffff",_.font="bold 16px "+i,_.textBaseline="middle";let R=0;for(let K of Ot)_.fillText(String.fromCharCode(K),R,8),R+=10;return _.getImageData(0,0,960,16)}static createFromSampleData(i,a){if(i.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");let _=Ze._downsample(i,a);return new ti(_,a)}static _downsampleChar(i,a,_,R,K){let we=1*K,Pe=2*K,Ve=R,Je=0;for(let at=0;at<Pe;at++){let bt=at/Pe*16,Bt=(at+1)/Pe*16;for(let Pt=0;Pt<we;Pt++){let ni=Pt/we*10,Ci=(Pt+1)/we*10,Vi=0,Mi=0;for(let Yi=bt;Yi<Bt;Yi++){let Gi=a+3840*Math.floor(Yi),wn=1-(Yi-Math.floor(Yi));for(let nn=ni;nn<Ci;nn++){let Wn=1-(nn-Math.floor(nn)),An=Gi+4*Math.floor(nn),qn=Wn*wn;Mi+=qn,Vi+=i[An]*i[An+3]/255*qn}}let zi=Vi/Mi;Je=Math.max(Je,zi),_[Ve++]=Object(Gt.b)(zi)}}return Je}static _downsample(i,a){let _=2*a*1*a,R=96*_,K=new Uint8ClampedArray(R),we=0,Pe=0,Ve=0;for(let Je=0;Je<96;Je++)Ve=Math.max(Ve,this._downsampleChar(i,Pe,K,we,a)),we+=_,Pe+=40;if(Ve>0){let Je=255/Ve;for(let at=0;at<R;at++)K[at]*=Je}return K}}var tt=r(58);class ot{constructor(i,a,_){let R=i.options,K=R.get(115),we=R.get(117),Pe=we.minimap,Ve=R.get(36),Je=R.get(56);this.renderMinimap=Pe.renderMinimap,this.size=Je.size,this.minimapHeightIsEditorHeight=Pe.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=R.get(86),this.showSlider=Je.showSlider,this.pixelRatio=K,this.typicalHalfwidthCharacterWidth=Ve.typicalHalfwidthCharacterWidth,this.lineHeight=R.get(51),this.minimapLeft=Pe.minimapLeft,this.minimapWidth=Pe.minimapWidth,this.minimapHeight=we.height,this.canvasInnerWidth=Pe.minimapCanvasInnerWidth,this.canvasInnerHeight=Pe.minimapCanvasInnerHeight,this.canvasOuterWidth=Pe.minimapCanvasOuterWidth,this.canvasOuterHeight=Pe.minimapCanvasOuterHeight,this.isSampling=Pe.minimapIsSampling,this.editorHeight=we.height,this.fontScale=Pe.minimapScale,this.minimapLineHeight=Pe.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=Object(ye.a)(()=>Ze.create(this.fontScale,Ve.fontFamily)),this.backgroundColor=ot._getMinimapBackground(a,_)}static _getMinimapBackground(i,a){let _=i.getColor(lt.Mb);return _?new ft(_.rgba.r,_.rgba.g,_.rgba.b,_.rgba.a):a.getColor(2)}equals(i){return this.renderMinimap===i.renderMinimap&&this.size===i.size&&this.minimapHeightIsEditorHeight===i.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===i.scrollBeyondLastLine&&this.showSlider===i.showSlider&&this.pixelRatio===i.pixelRatio&&this.typicalHalfwidthCharacterWidth===i.typicalHalfwidthCharacterWidth&&this.lineHeight===i.lineHeight&&this.minimapLeft===i.minimapLeft&&this.minimapWidth===i.minimapWidth&&this.minimapHeight===i.minimapHeight&&this.canvasInnerWidth===i.canvasInnerWidth&&this.canvasInnerHeight===i.canvasInnerHeight&&this.canvasOuterWidth===i.canvasOuterWidth&&this.canvasOuterHeight===i.canvasOuterHeight&&this.isSampling===i.isSampling&&this.editorHeight===i.editorHeight&&this.fontScale===i.fontScale&&this.minimapLineHeight===i.minimapLineHeight&&this.minimapCharWidth===i.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(i.backgroundColor)}}class zt{constructor(i,a,_,R,K,we,Pe,Ve){this.scrollTop=i,this.scrollHeight=a,this.sliderNeeded=_,this._computedSliderRatio=R,this.sliderTop=K,this.sliderHeight=we,this.startLineNumber=Pe,this.endLineNumber=Ve}getDesiredScrollTopFromDelta(i){let a=this.sliderTop+i;return Math.round(a/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(i){return Math.round((i-this.sliderHeight/2)/this._computedSliderRatio)}static create(i,a,_,R,K,we,Pe,Ve,Je,at){let bt=i.pixelRatio,Bt=i.minimapLineHeight,Pt=Math.floor(i.canvasInnerHeight/Bt),ni=i.lineHeight;if(i.minimapHeightIsEditorHeight){let Gi=Pe*i.lineHeight+(i.scrollBeyondLastLine?R-i.lineHeight:0),wn=Math.max(1,Math.floor(R*R/Gi)),nn=Math.max(0,i.minimapHeight-wn),Wn=nn/(Je-R),An=Ve*Wn,qn=nn>0,or=Math.floor(i.canvasInnerHeight/i.minimapLineHeight);return new zt(Ve,Je,qn,Wn,An,wn,1,Math.min(we,or))}let Ci,Vi;if(K&&_!==we){let Gi=_-a+1;Ci=Math.floor(Gi*Bt/bt)}else{let Gi=R/ni;Ci=Math.floor(Gi*Bt/bt)}Vi=i.scrollBeyondLastLine?(we-1)*Bt/bt:Math.max(0,we*Bt/bt-Ci),Vi=Math.min(i.minimapHeight-Ci,Vi);let Mi=Vi/(Je-R),zi=Ve*Mi,Yi=0;if(i.scrollBeyondLastLine&&(Yi=R/ni-1),Pt>=we+Yi)return new zt(Ve,Je,Vi>0,Mi,zi,Ci,1,we);{let Gi=Math.max(1,Math.floor(a-zi*bt/Bt));at&&at.scrollHeight===Je&&(at.scrollTop>Ve&&(Gi=Math.min(Gi,at.startLineNumber)),at.scrollTop<Ve&&(Gi=Math.max(Gi,at.startLineNumber)));let wn=Math.min(we,Gi+Pt-1);return new zt(Ve,Je,!0,Mi,zi,Ci,Gi,wn)}}}class Jt{constructor(i){this.dy=i}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Jt.INVALID=new Jt(-1);class xi{constructor(i,a,_){this.renderedLayout=i,this._imageData=a,this._renderedLines=new bn(()=>Jt.INVALID),this._renderedLines._set(i.startLineNumber,_)}linesEquals(i){if(!this.scrollEquals(i))return!1;let a=this._renderedLines._get().lines;for(let _=0,R=a.length;_<R;_++)if(a[_].dy===-1)return!1;return!0}scrollEquals(i){return this.renderedLayout.startLineNumber===i.startLineNumber&&this.renderedLayout.endLineNumber===i.endLineNumber}_get(){let i=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:i.rendLineNumberStart,lines:i.lines}}onLinesChanged(i,a){return this._renderedLines.onLinesChanged(i,a)}onLinesDeleted(i,a){this._renderedLines.onLinesDeleted(i,a)}onLinesInserted(i,a){this._renderedLines.onLinesInserted(i,a)}onTokensChanged(i){return this._renderedLines.onTokensChanged(i)}}class Ei{constructor(i,a,_,R){this._backgroundFillData=Ei._createBackgroundFillData(a,_,R),this._buffers=[i.createImageData(a,_),i.createImageData(a,_)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;let i=this._buffers[this._lastUsedBuffer];return i.data.set(this._backgroundFillData),i}static _createBackgroundFillData(i,a,_){let R=_.r,K=_.g,we=_.b,Pe=new Uint8ClampedArray(i*a*4),Ve=0;for(let Je=0;Je<a;Je++)for(let at=0;at<i;at++)Pe[Ve]=R,Pe[Ve+1]=K,Pe[Ve+2]=we,Pe[Ve+3]=255,Ve+=4;return Pe}}class ai{constructor(i,a){this.samplingRatio=i,this.minimapLines=a}static compute(i,a,_){if(i.renderMinimap===0||!i.isSampling)return[null,[]];let R=i.pixelRatio,K=i.lineHeight,we=i.scrollBeyondLastLine,{minimapLineCount:Pe}=fe.f.computeContainedMinimapLineCount({viewLineCount:a,scrollBeyondLastLine:we,height:i.editorHeight,lineHeight:K,pixelRatio:R}),Ve=a/Pe,Je=Ve/2;if(!_||_.minimapLines.length===0){let zi=[];if(zi[0]=1,Pe>1){for(let Yi=0,Gi=Pe-1;Yi<Gi;Yi++)zi[Yi]=Math.round(Yi*Ve+Je);zi[Pe-1]=a}return[new ai(Ve,zi),[]]}let at=_.minimapLines,bt=at.length,Bt=[],Pt=0,ni=0,Ci=1,Vi=[],Mi=null;for(let zi=0;zi<Pe;zi++){let Yi=Math.max(Ci,Math.round(zi*Ve)),Gi=Math.max(Yi,Math.round((zi+1)*Ve));for(;Pt<bt&&at[Pt]<Yi;){if(Vi.length<10){let nn=Pt+1+ni;Mi&&Mi.type==="deleted"&&Mi._oldIndex===Pt-1?Mi.deleteToLineNumber++:(Mi={type:"deleted",_oldIndex:Pt,deleteFromLineNumber:nn,deleteToLineNumber:nn},Vi.push(Mi)),ni--}Pt++}let wn;if(Pt<bt&&at[Pt]<=Gi)wn=at[Pt],Pt++;else if(wn=zi===0?1:zi+1===Pe?a:Math.round(zi*Ve+Je),Vi.length<10){let nn=Pt+1+ni;Mi&&Mi.type==="inserted"&&Mi._i===zi-1?Mi.insertToLineNumber++:(Mi={type:"inserted",_i:zi,insertFromLineNumber:nn,insertToLineNumber:nn},Vi.push(Mi)),ni++}Bt[zi]=wn,Ci=wn}if(Vi.length<10)for(;Pt<bt;){let zi=Pt+1+ni;Mi&&Mi.type==="deleted"&&Mi._oldIndex===Pt-1?Mi.deleteToLineNumber++:(Mi={type:"deleted",_oldIndex:Pt,deleteFromLineNumber:zi,deleteToLineNumber:zi},Vi.push(Mi)),ni--,Pt++}else Vi=[{type:"flush"}];return[new ai(Ve,Bt),Vi]}modelLineToMinimapLine(i){return Math.min(this.minimapLines.length,Math.max(1,Math.round(i/this.samplingRatio)))}modelLineRangeToMinimapLineRange(i,a){let _=this.modelLineToMinimapLine(i)-1;for(;_>0&&this.minimapLines[_-1]>=i;)_--;let R=this.modelLineToMinimapLine(a)-1;for(;R+1<this.minimapLines.length&&this.minimapLines[R+1]<=a;)R++;if(_===R){let K=this.minimapLines[_];if(K<i||K>a)return null}return[_+1,R+1]}decorationLineRangeToMinimapLineRange(i,a){let _=this.modelLineToMinimapLine(i),R=this.modelLineToMinimapLine(a);return i!==a&&R===_&&(R===this.minimapLines.length?_>1&&_--:R++),[_,R]}onLinesDeleted(i){let a=i.toLineNumber-i.fromLineNumber+1,_=this.minimapLines.length,R=0;for(let K=this.minimapLines.length-1;K>=0&&!(this.minimapLines[K]<i.fromLineNumber);K--)this.minimapLines[K]<=i.toLineNumber?(this.minimapLines[K]=Math.max(1,i.fromLineNumber-1),_=Math.min(_,K),R=Math.max(R,K)):this.minimapLines[K]-=a;return[_,R]}onLinesInserted(i){let a=i.toLineNumber-i.fromLineNumber+1;for(let _=this.minimapLines.length-1;_>=0&&!(this.minimapLines[_]<i.fromLineNumber);_--)this.minimapLines[_]+=a}}class fi extends xe{constructor(i){super(i),this.tokensColorTracker=ae.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ot(this._context.configuration,this._context.theme,this.tokensColorTracker);let[a]=ai.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=a,this._shouldCheckSampling=!1,this._actual=new ui(i.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){let i=new ot(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(i)&&(this.options=i,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(i){return this._onOptionsMaybeChanged()}onCursorStateChanged(i){return this._selections=i.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(i){return!!i.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(i){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(i){if(this._samplingState){let a=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);return!!a&&this._actual.onLinesChanged(a[0],a[1])}return this._actual.onLinesChanged(i.fromLineNumber,i.toLineNumber)}onLinesDeleted(i){if(this._samplingState){let[a,_]=this._samplingState.onLinesDeleted(i);return a<=_&&this._actual.onLinesChanged(a+1,_+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(i.fromLineNumber,i.toLineNumber)}onLinesInserted(i){return this._samplingState?(this._samplingState.onLinesInserted(i),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(i.fromLineNumber,i.toLineNumber)}onScrollChanged(i){return this._actual.onScrollChanged()}onThemeChanged(i){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(i){if(this._samplingState){let a=[];for(let _ of i.ranges){let R=this._samplingState.modelLineRangeToMinimapLineRange(_.fromLineNumber,_.toLineNumber);R&&a.push({fromLineNumber:R[0],toLineNumber:R[1]})}return!!a.length&&this._actual.onTokensChanged(a)}return this._actual.onTokensChanged(i.ranges)}onTokensColorsChanged(i){return this._actual.onTokensColorsChanged()}onZonesChanged(i){return this._actual.onZonesChanged()}prepareRender(i){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(i){let a=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber;this._samplingState&&(a=this._samplingState.modelLineToMinimapLine(a),_=this._samplingState.modelLineToMinimapLine(_));let R={viewportContainsWhitespaceGaps:i.viewportData.whitespaceViewportData.length>0,scrollWidth:i.scrollWidth,scrollHeight:i.scrollHeight,viewportStartLineNumber:a,viewportEndLineNumber:_,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft,viewportWidth:i.viewportWidth,viewportHeight:i.viewportHeight};this._actual.render(R)}_recreateLineSampling(){this._minimapSelections=null;let i=Boolean(this._samplingState),[a,_]=ai.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=a,i&&this._samplingState)for(let R of _)switch(R.type){case"deleted":this._actual.onLinesDeleted(R.deleteFromLineNumber,R.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(R.insertFromLineNumber,R.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(i){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[i-1]):this._context.model.getLineContent(i)}getMinimapLinesRenderingData(i,a,_){if(this._samplingState){let R=[];for(let K=0,we=a-i+1;K<we;K++)_[K]?R[K]=this._context.model.getViewLineData(this._samplingState.minimapLines[i+K-1]):R[K]=null;return R}return this._context.model.getMinimapLinesRenderingData(i,a,_).data}getSelections(){if(this._minimapSelections===null)if(this._samplingState){this._minimapSelections=[];for(let i of this._selections){let[a,_]=this._samplingState.decorationLineRangeToMinimapLineRange(i.startLineNumber,i.endLineNumber);this._minimapSelections.push(new C.a(a,i.startColumn,_,i.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(i,a){let _;if(this._samplingState){let K=this._samplingState.minimapLines[i-1],we=this._samplingState.minimapLines[a-1];_=new Nt.a(K,1,we,this._context.model.getLineMaxColumn(we))}else _=new Nt.a(i,1,a,this._context.model.getLineMaxColumn(a));let R=this._context.model.getDecorationsInViewport(_);if(this._samplingState){let K=[];for(let we of R){if(!we.options.minimap)continue;let Pe=we.range,Ve=this._samplingState.modelLineToMinimapLine(Pe.startLineNumber),Je=this._samplingState.modelLineToMinimapLine(Pe.endLineNumber);K.push(new Ge.e(new Nt.a(Ve,Pe.startColumn,Je,Pe.endColumn),we.options))}return K}return R}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(i){this._samplingState&&(i=this._samplingState.minimapLines[i-1]),this._context.model.revealRange("mouse",!1,new Nt.a(i,1,i,1),1,0)}setScrollTop(i){this._context.model.setScrollPosition({scrollTop:i},1)}}class ui extends E.a{constructor(i,a){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=i,this._model=a,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(lt.Pb),this._domNode=Object(S.b)(document.createElement("div")),Y.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Object(S.b)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Object(S.b)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Object(S.b)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Object(S.b)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Object(S.b)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=f.n(this._domNode.domNode,"mousedown",_=>{if(_.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(_.leftButton&&this._lastRenderData){let Pe=f.C(this._slider.domNode),Ve=Pe.top+Pe.height/2;this._startSliderDragging(_.buttons,_.posx,Ve,_.posy,this._lastRenderData.renderedLayout)}return}let R=this._model.options.minimapLineHeight,K=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*_.browserEvent.offsetY,we=Math.floor(K/R)+this._lastRenderData.renderedLayout.startLineNumber;we=Math.min(we,this._model.getLineCount()),this._model.revealLineNumber(we)}),this._sliderMouseMoveMonitor=new N.a,this._sliderMouseDownListener=f.n(this._slider.domNode,"mousedown",_=>{_.preventDefault(),_.stopPropagation(),_.leftButton&&this._lastRenderData&&this._startSliderDragging(_.buttons,_.posx,_.posy,_.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=V.b.addTarget(this._domNode.domNode),this._sliderTouchStartListener=f.i(this._domNode.domNode,V.a.Start,_=>{_.preventDefault(),_.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(_))},{passive:!1}),this._sliderTouchMoveListener=f.i(this._domNode.domNode,V.a.Change,_=>{_.preventDefault(),_.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(_)},{passive:!1}),this._sliderTouchEndListener=f.n(this._domNode.domNode,V.a.End,_=>{_.preventDefault(),_.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(i,a,_,R,K){this._slider.toggleClassName("active",!0);let we=(Pe,Ve)=>{let Je=Math.abs(Ve-a);if(P.i&&Je>140)return void this._model.setScrollTop(K.scrollTop);let at=Pe-_;this._model.setScrollTop(K.getDesiredScrollTopFromDelta(at))};R!==_&&we(R,a),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,i,N.b,Pe=>we(Pe.posy,Pe.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(i){let a=this._domNode.domNode.getBoundingClientRect().top,_=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(i.pageY-a);this._model.setScrollTop(_)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return this._model.options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Ei(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(i,a){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(i,a)}onLinesDeleted(i,a){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(i,a),!0}onLinesInserted(i,a){return this._lastRenderData&&this._lastRenderData.onLinesInserted(i,a),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(lt.Pb),this._renderDecorations=!0,!0}onTokensChanged(i){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(i)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(i){if(this._model.options.renderMinimap===0)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);i.scrollLeft+i.viewportWidth>=i.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");let a=zt.create(this._model.options,i.viewportStartLineNumber,i.viewportEndLineNumber,i.viewportHeight,i.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),i.scrollTop,i.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(a.sliderNeeded?"block":"none"),this._slider.setTop(a.sliderTop),this._slider.setHeight(a.sliderHeight);let _=i.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,R=Math.min(this._model.options.minimapWidth,Math.round(_*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(R),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-R),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(a.sliderHeight),this.renderDecorations(a),this._lastRenderData=this.renderLines(a)}renderDecorations(i){if(this._renderDecorations){this._renderDecorations=!1;let a=this._model.getSelections(),_=this._model.getMinimapDecorationsInViewport(i.startLineNumber,i.endLineNumber),{canvasInnerWidth:R,canvasInnerHeight:K}=this._model.options,we=this._model.options.minimapLineHeight,Pe=this._model.options.minimapCharWidth,Ve=this._model.getOptions().tabSize,Je=this._decorationsCanvas.domNode.getContext("2d");Je.clearRect(0,0,R,K);let at=new Map;for(let bt=0;bt<a.length;bt++){let Bt=a[bt];for(let Pt=Bt.startLineNumber;Pt<=Bt.endLineNumber;Pt++)this.renderDecorationOnLine(Je,at,Bt,this._selectionColor,i,Pt,we,we,Ve,Pe)}for(let bt=0;bt<_.length;bt++){let Bt=_[bt];if(!Bt.options.minimap)continue;let Pt=Bt.options.minimap.getColor(this._theme);for(let ni=Bt.range.startLineNumber;ni<=Bt.range.endLineNumber;ni++)switch(Bt.options.minimap.position){case tt.c.Inline:this.renderDecorationOnLine(Je,at,Bt.range,Pt,i,ni,we,we,Ve,Pe);continue;case tt.c.Gutter:let Ci=(ni-i.startLineNumber)*we,Vi=2;this.renderDecoration(Je,Pt,Vi,Ci,2,we);continue}}}}renderDecorationOnLine(i,a,_,R,K,we,Pe,Ve,Je,at){let bt=(we-K.startLineNumber)*Ve;if(bt+Pe<0||bt>this._model.options.canvasInnerHeight)return;let Bt=a.get(we),Pt=!Bt;if(!Bt){let Gi=this._model.getLineContent(we);Bt=[fe.h];for(let wn=1;wn<Gi.length+1;wn++){let nn=Gi.charCodeAt(wn-1),Wn=nn===9?Je*at:_t.E(nn)?2*at:at;Bt[wn]=Bt[wn-1]+Wn}a.set(we,Bt)}let{startColumn:ni,endColumn:Ci,startLineNumber:Vi,endLineNumber:Mi}=_,zi=Vi===we?Bt[ni-1]:fe.h,Yi=Mi>we?Bt.length-1:Ci-1;if(Yi>0){let Gi=Bt[Yi]-zi||2;this.renderDecoration(i,R,zi,bt,Gi,Pe)}Pt&&this.renderLineHighlight(i,R,bt,Pe)}renderLineHighlight(i,a,_,R){i.fillStyle=a&&a.transparent(.5).toString()||"",i.fillRect(fe.h,_,i.canvas.width,R)}renderDecoration(i,a,_,R,K,we){i.fillStyle=a&&a.toString()||"",i.fillRect(_,R,K,we)}renderLines(i){let a=i.startLineNumber,_=i.endLineNumber,R=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(i)){let An=this._lastRenderData._get();return new xi(i,An.imageData,An.lines)}let K=this._getBuffer();if(!K)return null;let[we,Pe,Ve]=ui._renderUntouchedLines(K,a,_,R,this._lastRenderData),Je=this._model.getMinimapLinesRenderingData(a,_,Ve),at=this._model.getOptions().tabSize,bt=this._model.options.backgroundColor,Bt=this._model.tokensColorTracker,Pt=Bt.backgroundIsLight(),ni=this._model.options.renderMinimap,Ci=this._model.options.charRenderer(),Vi=this._model.options.fontScale,Mi=this._model.options.minimapCharWidth,zi=(ni===1?2:3)*Vi,Yi=R>zi?Math.floor((R-zi)/2):0,Gi=0,wn=[];for(let An=0,qn=_-a+1;An<qn;An++)Ve[An]&&ui._renderLine(K,bt,Pt,ni,Mi,Bt,Ci,Gi,Yi,at,Je[An],Vi,R),wn[An]=new Jt(Gi),Gi+=R;let nn=we===-1?0:we,Wn=(Pe===-1?K.height:Pe)-nn;return this._canvas.domNode.getContext("2d").putImageData(K,0,0,0,nn,K.width,Wn),new xi(i,K,wn)}static _renderUntouchedLines(i,a,_,R,K){let we=[];if(!K){for(let nn=0,Wn=_-a+1;nn<Wn;nn++)we[nn]=!0;return[-1,-1,we]}let Pe=K._get(),Ve=Pe.imageData.data,Je=Pe.rendLineNumberStart,at=Pe.lines,bt=at.length,Bt=i.width,Pt=i.data,ni=(_-a+1)*R*Bt*4,Ci=-1,Vi=-1,Mi=-1,zi=-1,Yi=-1,Gi=-1,wn=0;for(let nn=a;nn<=_;nn++){let Wn=nn-a,An=nn-Je,qn=An>=0&&An<bt?at[An].dy:-1;if(qn===-1){we[Wn]=!0,wn+=R;continue}let or=qn*Bt*4,Un=(qn+R)*Bt*4,Tr=wn*Bt*4,Or=(wn+R)*Bt*4;zi===or&&Gi===Tr?(zi=Un,Gi=Or):(Mi!==-1&&(Pt.set(Ve.subarray(Mi,zi),Yi),Ci===-1&&Mi===0&&Mi===Yi&&(Ci=zi),Vi===-1&&zi===ni&&Mi===Yi&&(Vi=Mi)),Mi=or,zi=Un,Yi=Tr,Gi=Or),we[Wn]=!1,wn+=R}return Mi!==-1&&(Pt.set(Ve.subarray(Mi,zi),Yi),Ci===-1&&Mi===0&&Mi===Yi&&(Ci=zi),Vi===-1&&zi===ni&&Mi===Yi&&(Vi=Mi)),[Ci===-1?-1:Ci/(4*Bt),Vi===-1?-1:Vi/(4*Bt),we]}static _renderLine(i,a,_,R,K,we,Pe,Ve,Je,at,bt,Bt,Pt){let ni=bt.content,Ci=bt.tokens,Vi=i.width-K,Mi=Pt===1,zi=fe.h,Yi=0,Gi=0;for(let wn=0,nn=Ci.getCount();wn<nn;wn++){let Wn=Ci.getEndOffset(wn),An=Ci.getForeground(wn),qn=we.getColor(An);for(;Yi<Wn;Yi++){if(zi>Vi)return;let or=ni.charCodeAt(Yi);if(or===9){let Un=at-(Yi+Gi)%at;Gi+=Un-1,zi+=Un*K}else if(or===32)zi+=K;else{let Un=_t.E(or)?2:1;for(let Tr=0;Tr<Un;Tr++)if(R===2?Pe.blockRenderChar(i,zi,Ve+Je,qn,a,_,Mi):Pe.renderChar(i,zi,Ve+Je,or,qn,a,Bt,_,Mi),zi+=K,zi>Vi)return}}}}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.Mb);a&&i.addRule(`.monaco-editor .minimap > canvas { opacity: ${a.rgba.a}; will-change: opacity; }`);let _=Zt.getColor(lt.Rb);_&&i.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${_}; }`);let R=Zt.getColor(lt.Sb);R&&i.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${R}; }`);let K=Zt.getColor(lt.Qb);K&&i.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${K}; }`);let we=Zt.getColor(lt.ic);we&&i.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${we} -6px 0 6px -6px inset; }`)}),r(234);class Te extends xe{constructor(i){super(i);let a=this._context.configuration.options.get(117);this._widgets={},this._verticalScrollbarWidth=a.verticalScrollbarWidth,this._minimapWidth=a.minimap.minimapWidth,this._horizontalScrollbarHeight=a.horizontalScrollbarHeight,this._editorHeight=a.height,this._editorWidth=a.width,this._domNode=Object(S.b)(document.createElement("div")),Y.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options.get(117);return this._verticalScrollbarWidth=a.verticalScrollbarWidth,this._minimapWidth=a.minimap.minimapWidth,this._horizontalScrollbarHeight=a.horizontalScrollbarHeight,this._editorHeight=a.height,this._editorWidth=a.width,!0}addWidget(i){let a=Object(S.b)(i.getDomNode());this._widgets[i.getId()]={widget:i,preference:null,domNode:a},a.setPosition("absolute"),a.setAttribute("widgetId",i.getId()),this._domNode.appendChild(a),this.setShouldRender()}setWidgetPosition(i,a){let _=this._widgets[i.getId()];return _.preference!==a&&(_.preference=a,this.setShouldRender(),!0)}removeWidget(i){let a=i.getId();if(this._widgets.hasOwnProperty(a)){let _=this._widgets[a].domNode.domNode;delete this._widgets[a],_.parentNode.removeChild(_),this.setShouldRender()}}_renderWidget(i){let a=i.domNode;if(i.preference!==null)if(i.preference===0)a.setTop(0),a.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(i.preference===1){let _=a.domNode.clientHeight;a.setTop(this._editorHeight-_-2*this._horizontalScrollbarHeight),a.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else i.preference===2&&(a.setTop(0),a.domNode.style.right="50%");else a.unsetTop()}prepareRender(i){}render(i){this._domNode.setWidth(this._editorWidth);let a=Object.keys(this._widgets);for(let _=0,R=a.length;_<R;_++){let K=a[_];this._renderWidget(this._widgets[K])}}}var Ee=r(15);class ve{constructor(i,a){let _=i.options;this.lineHeight=_.get(51),this.pixelRatio=_.get(115),this.overviewRulerLanes=_.get(65),this.renderBorder=_.get(64);let R=a.getColor(ki.m);this.borderColor=R?R.toString():null,this.hideCursor=_.get(44);let K=a.getColor(ki.g);this.cursorColor=K?K.transparent(.7).toString():null,this.themeType=a.type;let we=_.get(56),Pe=we.enabled,Ve=we.side,Je=Pe?a.getColor(ki.l)||X.C.getDefaultBackground():null;this.backgroundColor=Je===null||Ve==="left"?null:Ee.a.Format.CSS.formatHex(Je);let at=_.get(117).overviewRuler;this.top=at.top,this.right=at.right,this.domWidth=at.width,this.domHeight=at.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);let[bt,Bt]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=bt,this.w=Bt}_initLanes(i,a,_){let R=a-i;if(_>=3){let K=Math.floor(R/3),we=Math.floor(R/3),Pe=R-K-we,Ve=i+K;return[[0,i,Ve,i,i+K+Pe,i,Ve,i],[0,K,Pe,K+Pe,we,K+Pe+we,Pe+we,K+Pe+we]]}if(_===2){let K=Math.floor(R/2),we=R-K;return[[0,i,i,i,i+K,i,i,i],[0,K,K,K,we,K+we,K+we,K+we]]}return[[0,i,i,i,i,i,i,i],[0,R,R,R,R,R,R,R]]}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColor===i.cursorColor&&this.themeType===i.themeType&&this.backgroundColor===i.backgroundColor&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}}class Re extends xe{constructor(i){super(i),this._domNode=Object(S.b)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=X.C.onDidChange(a=>{a.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(i){let a=new ve(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(a))&&(this._settings=a,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,i&&this._render(),!0)}onConfigurationChanged(i){return this._updateSettings(!1)}onCursorStateChanged(i){this._cursorPositions=[];for(let a=0,_=i.selections.length;a<_;a++)this._cursorPositions[a]=i.selections[a].getPosition();return this._cursorPositions.sort(At.a.compare),!0}onDecorationsChanged(i){return!!i.affectsOverviewRuler}onFlushed(i){return!0}onScrollChanged(i){return i.scrollHeightChanged}onZonesChanged(i){return!0}onThemeChanged(i){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(i){}render(i){this._render()}_render(){if(this._settings.overviewRulerLanes===0)return void this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");let i=this._settings.canvasWidth,a=this._settings.canvasHeight,_=this._settings.lineHeight,R=this._context.viewLayout,K=a/this._context.viewLayout.getScrollHeight(),we=this._context.model.getAllOverviewRulerDecorations(this._context.theme),Pe=6*this._settings.pixelRatio|0,Ve=Pe/2|0,Je=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?Je.clearRect(0,0,i,a):(Je.fillStyle=this._settings.backgroundColor,Je.fillRect(0,0,i,a));let at=this._settings.x,bt=this._settings.w,Bt=Object.keys(we);Bt.sort();for(let Pt=0,ni=Bt.length;Pt<ni;Pt++){let Ci=Bt[Pt],Vi=we[Ci];Je.fillStyle=Ci;let Mi=0,zi=0,Yi=0;for(let Gi=0,wn=Vi.length;Gi<wn;Gi++){let nn=Vi[3*Gi],Wn=Vi[3*Gi+1],An=Vi[3*Gi+2],qn=R.getVerticalOffsetForLineNumber(Wn)*K|0,or=(R.getVerticalOffsetForLineNumber(An)+_)*K|0;if(or-qn<Pe){let Un=(qn+or)/2|0;Un<Ve?Un=Ve:Un+Ve>a&&(Un=a-Ve),qn=Un-Ve,or=Un+Ve}qn>Yi+1||nn!==Mi?(Gi!==0&&Je.fillRect(at[Mi],zi,bt[Mi],Yi-zi),Mi=nn,zi=qn,Yi=or):or>Yi&&(Yi=or)}Je.fillRect(at[Mi],zi,bt[Mi],Yi-zi)}if(!this._settings.hideCursor&&this._settings.cursorColor){let Pt=2*this._settings.pixelRatio|0,ni=Pt/2|0,Ci=this._settings.x[7],Vi=this._settings.w[7];Je.fillStyle=this._settings.cursorColor;let Mi=-100,zi=-100;for(let Yi=0,Gi=this._cursorPositions.length;Yi<Gi;Yi++){let wn=this._cursorPositions[Yi],nn=R.getVerticalOffsetForLineNumber(wn.lineNumber)*K|0;nn<ni?nn=ni:nn+ni>a&&(nn=a-ni);let Wn=nn-ni,An=Wn+Pt;Wn>zi+1?(Yi!==0&&Je.fillRect(Ci,Mi,Vi,zi-Mi),Mi=Wn,zi=An):An>zi&&(zi=An)}Je.fillRect(Ci,Mi,Vi,zi-Mi)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(Je.beginPath(),Je.lineWidth=1,Je.strokeStyle=this._settings.borderColor,Je.moveTo(0,0),Je.lineTo(0,a),Je.stroke(),Je.moveTo(0,0),Je.lineTo(i,0),Je.stroke())}}var We=r(168);class Be extends ke{constructor(i,a){super(),this._context=i;let _=this._context.configuration.options;this._domNode=Object(S.b)(document.createElement("canvas")),this._domNode.setClassName(a),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new We.b(R=>this._context.viewLayout.getVerticalOffsetForLineNumber(R)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(_.get(51)),this._zoneManager.setPixelRatio(_.get(115)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return i.hasChanged(51)&&(this._zoneManager.setLineHeight(a.get(51)),this._render()),i.hasChanged(115)&&(this._zoneManager.setPixelRatio(a.get(115)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(i){return this._render(),!0}onScrollChanged(i){return i.scrollHeightChanged&&(this._zoneManager.setOuterHeight(i.scrollHeight),this._render()),!0}onZonesChanged(i){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(i){this._domNode.setTop(i.top),this._domNode.setRight(i.right);let a=!1;a=this._zoneManager.setDOMWidth(i.width)||a,a=this._zoneManager.setDOMHeight(i.height)||a,a&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(i){this._zoneManager.setZones(i),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;let i=this._zoneManager.getCanvasWidth(),a=this._zoneManager.getCanvasHeight(),_=this._zoneManager.resolveColorZones(),R=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,i,a),_.length>0&&this._renderOneLane(K,_,R,i),!0}_renderOneLane(i,a,_,R){let K=0,we=0,Pe=0;for(let Ve of a){let Je=Ve.colorId,at=Ve.from,bt=Ve.to;Je!==K?(i.fillRect(0,we,R,Pe-we),K=Je,i.fillStyle=_[K],we=at,Pe=bt):Pe>=at?Pe=Math.max(Pe,bt):(i.fillRect(0,we,R,Pe-we),we=at,Pe=bt)}i.fillRect(0,we,R,Pe-we)}}r(236);class Le extends xe{constructor(i){super(i),this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];let a=this._context.configuration.options;this._rulers=a.get(83),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._rulers=a.get(83),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onScrollChanged(i){return i.scrollHeightChanged}prepareRender(i){}_ensureRulersCount(){let i=this._renderedRulers.length,a=this._rulers.length;if(i===a)return;if(i<a){let{tabSize:R}=this._context.model.getTextModelOptions(),K=R,we=a-i;for(;we>0;){let Pe=Object(S.b)(document.createElement("div"));Pe.setClassName("view-ruler"),Pe.setWidth(K),this.domNode.appendChild(Pe),this._renderedRulers.push(Pe),we--}return}let _=i-a;for(;_>0;){let R=this._renderedRulers.pop();this.domNode.removeChild(R),_--}}render(i){this._ensureRulersCount();for(let a=0,_=this._rulers.length;a<_;a++){let R=this._renderedRulers[a],K=this._rulers[a];R.setBoxShadow(K.color?`1px 0 0 0 ${K.color} inset`:""),R.setHeight(Math.min(i.scrollHeight,1e6)),R.setLeft(K.column*this._typicalHalfwidthCharacterWidth)}}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.n);a&&i.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${a} inset; }`)}),r(238);class Ke extends xe{constructor(i){super(i),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;let a=this._context.configuration.options.get(84);this._useShadows=a.useShadows,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){let i=this._useShadows&&this._scrollTop>0;return this._shouldShow!==i&&(this._shouldShow=i,!0)}getDomNode(){return this._domNode}_updateWidth(){let i=this._context.configuration.options.get(117);i.minimap.renderMinimap===0||i.minimap.minimapWidth>0&&i.minimap.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimap.minimapWidth-i.verticalScrollbarWidth}onConfigurationChanged(i){let a=this._context.configuration.options.get(84);return this._useShadows=a.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(i){return this._scrollTop=i.scrollTop,this._updateShouldShow()}prepareRender(i){}render(i){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.ic);a&&i.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${a} 0 6px 6px -6px inset; }`)}),r(240);class dt{constructor(i){this.left=i.left,this.width=i.width,this.startStyle=null,this.endStyle=null}}class yt{constructor(i,a){this.lineNumber=i,this.ranges=a}}function xt(Zt){return new dt(Zt)}function Xt(Zt){return new yt(Zt.lineNumber,Zt.ranges.map(xt))}let mi=T.f;class Yt extends gi{constructor(i){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=i;let a=this._context.configuration.options;this._lineHeight=a.get(51),this._roundedSelection=a.get(82),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let a=this._context.configuration.options;return this._lineHeight=a.get(51),this._roundedSelection=a.get(82),this._typicalHalfwidthCharacterWidth=a.get(36).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_visibleRangesHaveGaps(i){for(let a=0,_=i.length;a<_;a++)if(i[a].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(i,a,_){let R=this._typicalHalfwidthCharacterWidth/4,K=null,we=null;if(_&&_.length>0&&a.length>0){let Pe=a[0].lineNumber;if(Pe===i.startLineNumber)for(let Je=0;!K&&Je<_.length;Je++)_[Je].lineNumber===Pe&&(K=_[Je].ranges[0]);let Ve=a[a.length-1].lineNumber;if(Ve===i.endLineNumber)for(let Je=_.length-1;!we&&Je>=0;Je--)_[Je].lineNumber===Ve&&(we=_[Je].ranges[0]);K&&!K.startStyle&&(K=null),we&&!we.startStyle&&(we=null)}for(let Pe=0,Ve=a.length;Pe<Ve;Pe++){let Je=a[Pe].ranges[0],at=Je.left,bt=Je.left+Je.width,Bt={top:0,bottom:0},Pt={top:0,bottom:0};if(Pe>0){let ni=a[Pe-1].ranges[0].left,Ci=a[Pe-1].ranges[0].left+a[Pe-1].ranges[0].width;oi(at-ni)<R?Bt.top=2:at>ni&&(Bt.top=1),oi(bt-Ci)<R?Pt.top=2:ni<bt&&bt<Ci&&(Pt.top=1)}else K&&(Bt.top=K.startStyle.top,Pt.top=K.endStyle.top);if(Pe+1<Ve){let ni=a[Pe+1].ranges[0].left,Ci=a[Pe+1].ranges[0].left+a[Pe+1].ranges[0].width;oi(at-ni)<R?Bt.bottom=2:ni<at&&at<Ci&&(Bt.bottom=1),oi(bt-Ci)<R?Pt.bottom=2:bt<Ci&&(Pt.bottom=1)}else we&&(Bt.bottom=we.startStyle.bottom,Pt.bottom=we.endStyle.bottom);Je.startStyle=Bt,Je.endStyle=Pt}}_getVisibleRangesWithStyle(i,a,_){let R=(a.linesVisibleRangesForRange(i,!0)||[]).map(Xt),K=this._visibleRangesHaveGaps(R);return mi||K||!this._roundedSelection||this._enrichVisibleRangesWithStyle(a.visibleRange,R,_),R}_createSelectionPiece(i,a,_,R,K){return'<div class="cslr '+_+'" style="top:'+i.toString()+"px;left:"+R.toString()+"px;width:"+K.toString()+"px;height:"+a+'px;"></div>'}_actualRenderOneSelection(i,a,_,R){if(R.length===0)return;let K=!!R[0].ranges[0].startStyle,we=this._lineHeight.toString(),Pe=(this._lineHeight-1).toString(),Ve=R[0].lineNumber,Je=R[R.length-1].lineNumber;for(let at=0,bt=R.length;at<bt;at++){let Bt=R[at],Pt=Bt.lineNumber,ni=Pt-a,Ci=_&&(Pt===Je||Pt===Ve)?Pe:we,Vi=_&&Pt===Ve?1:0,Mi="",zi="";for(let Yi=0,Gi=Bt.ranges.length;Yi<Gi;Yi++){let wn=Bt.ranges[Yi];if(K){let Wn=wn.startStyle,An=wn.endStyle;if(Wn.top===1||Wn.bottom===1){Mi+=this._createSelectionPiece(Vi,Ci,Yt.SELECTION_CLASS_NAME,wn.left-Yt.ROUNDED_PIECE_WIDTH,Yt.ROUNDED_PIECE_WIDTH);let qn=Yt.EDITOR_BACKGROUND_CLASS_NAME;Wn.top===1&&(qn+=" "+Yt.SELECTION_TOP_RIGHT),Wn.bottom===1&&(qn+=" "+Yt.SELECTION_BOTTOM_RIGHT),Mi+=this._createSelectionPiece(Vi,Ci,qn,wn.left-Yt.ROUNDED_PIECE_WIDTH,Yt.ROUNDED_PIECE_WIDTH)}if(An.top===1||An.bottom===1){Mi+=this._createSelectionPiece(Vi,Ci,Yt.SELECTION_CLASS_NAME,wn.left+wn.width,Yt.ROUNDED_PIECE_WIDTH);let qn=Yt.EDITOR_BACKGROUND_CLASS_NAME;An.top===1&&(qn+=" "+Yt.SELECTION_TOP_LEFT),An.bottom===1&&(qn+=" "+Yt.SELECTION_BOTTOM_LEFT),Mi+=this._createSelectionPiece(Vi,Ci,qn,wn.left+wn.width,Yt.ROUNDED_PIECE_WIDTH)}}let nn=Yt.SELECTION_CLASS_NAME;if(K){let Wn=wn.startStyle,An=wn.endStyle;Wn.top===0&&(nn+=" "+Yt.SELECTION_TOP_LEFT),Wn.bottom===0&&(nn+=" "+Yt.SELECTION_BOTTOM_LEFT),An.top===0&&(nn+=" "+Yt.SELECTION_TOP_RIGHT),An.bottom===0&&(nn+=" "+Yt.SELECTION_BOTTOM_RIGHT)}zi+=this._createSelectionPiece(Vi,Ci,nn,wn.left,wn.width)}i[ni][0]+=Mi,i[ni][1]+=zi}}prepareRender(i){let a=[],_=i.visibleRange.startLineNumber,R=i.visibleRange.endLineNumber;for(let we=_;we<=R;we++)a[we-_]=["",""];let K=[];for(let we=0,Pe=this._selections.length;we<Pe;we++){let Ve=this._selections[we];if(Ve.isEmpty()){K[we]=null;continue}let Je=this._getVisibleRangesWithStyle(Ve,i,this._previousFrameVisibleRangesWithStyle[we]);K[we]=Je,this._actualRenderOneSelection(a,_,this._selections.length>1,Je)}this._previousFrameVisibleRangesWithStyle=K,this._renderResult=a.map(([we,Pe])=>we+Pe)}render(i,a){if(!this._renderResult)return"";let _=a-i;return _<0||_>=this._renderResult.length?"":this._renderResult[_]}}function oi(Zt){return Zt<0?-Zt:Zt}Yt.SELECTION_CLASS_NAME="selected-text",Yt.SELECTION_TOP_LEFT="top-left-radius",Yt.SELECTION_BOTTOM_LEFT="bottom-left-radius",Yt.SELECTION_TOP_RIGHT="top-right-radius",Yt.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Yt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Yt.ROUNDED_PIECE_WIDTH=10,Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.O);a&&i.addRule(`.monaco-editor .focused .selected-text { background-color: ${a}; }`);let _=Zt.getColor(lt.J);_&&i.addRule(`.monaco-editor .selected-text { background-color: ${_}; }`);let R=Zt.getColor(lt.P);R&&!R.isTransparent()&&i.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${R}; }`)}),r(242);class qi{constructor(i,a,_,R,K,we){this.top=i,this.left=a,this.width=_,this.height=R,this.textContent=K,this.textContentClassName=we}}class an{constructor(i){this._context=i;let a=this._context.configuration.options,_=a.get(36);this._cursorStyle=a.get(19),this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(a.get(22),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setClassName("cursor "+yi.a),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),W.a.applyFontInfo(this._domNode,_),this._domNode.setDisplay("none"),this._position=new At.a(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(36);return this._cursorStyle=a.get(19),this._lineHeight=a.get(51),this._typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(a.get(22),this._typicalHalfwidthCharacterWidth),W.a.applyFontInfo(this._domNode,_),!0}onCursorPositionChanged(i){return this._position=i,!0}_prepareRender(i){let a="";if(this._cursorStyle===fe.i.Line||this._cursorStyle===fe.i.LineThin){let Bt=i.visibleRangeForPosition(this._position);if(!Bt||Bt.outsideRenderedLine)return null;let Pt;if(this._cursorStyle===fe.i.Line){if(Pt=f.t(this._lineCursorWidth>0?this._lineCursorWidth:2),Pt>2){let Vi=this._context.model.getLineContent(this._position.lineNumber),Mi=_t.L(Vi,this._position.column-1);a=Vi.substr(this._position.column-1,Mi)}}else Pt=f.t(1);let ni=Bt.left;Pt>=2&&ni>=1&&(ni-=1);let Ci=i.getVerticalOffsetForLineNumber(this._position.lineNumber)-i.bigNumbersDelta;return new qi(Ci,ni,Pt,this._lineHeight,a,"")}let _=this._context.model.getLineContent(this._position.lineNumber),R=_t.L(_,this._position.column-1),K=i.linesVisibleRangesForRange(new Nt.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+R),!1);if(!K||K.length===0)return null;let we=K[0];if(we.outsideRenderedLine||we.ranges.length===0)return null;let Pe=we.ranges[0],Ve=Pe.width<1?this._typicalHalfwidthCharacterWidth:Pe.width,Je="";if(this._cursorStyle===fe.i.Block){let Bt=this._context.model.getViewLineData(this._position.lineNumber);a=_.substr(this._position.column-1,R);let Pt=Bt.tokens.findTokenIndexAtOffset(this._position.column-1);Je=Bt.tokens.getClassName(Pt)}let at=i.getVerticalOffsetForLineNumber(this._position.lineNumber)-i.bigNumbersDelta,bt=this._lineHeight;return this._cursorStyle!==fe.i.Underline&&this._cursorStyle!==fe.i.UnderlineThin||(at+=this._lineHeight-2,bt=2),new qi(at,Pe.left,Ve,bt,a,Je)}prepareRender(i){this._renderData=this._prepareRender(i)}render(i){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${yi.a} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class _n extends xe{constructor(i){super(i);let a=this._context.configuration.options;this._readOnly=a.get(72),this._cursorBlinking=a.get(17),this._cursorStyle=a.get(19),this._cursorSmoothCaretAnimation=a.get(18),this._selectionIsEmpty=!0,this._isVisible=!1,this._primaryCursor=new an(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(S.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new l.e,this._cursorFlatBlinkInterval=new l.c,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(i){let a=this._context.configuration.options;this._readOnly=a.get(72),this._cursorBlinking=a.get(17),this._cursorStyle=a.get(19),this._cursorSmoothCaretAnimation=a.get(18),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(i);for(let _=0,R=this._secondaryCursors.length;_<R;_++)this._secondaryCursors[_].onConfigurationChanged(i);return!0}_onCursorPositionChanged(i,a){if(this._primaryCursor.onCursorPositionChanged(i),this._updateBlinking(),this._secondaryCursors.length<a.length){let _=a.length-this._secondaryCursors.length;for(let R=0;R<_;R++){let K=new an(this._context);this._domNode.domNode.insertBefore(K.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(K)}}else if(this._secondaryCursors.length>a.length){let _=this._secondaryCursors.length-a.length;for(let R=0;R<_;R++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let _=0;_<a.length;_++)this._secondaryCursors[_].onCursorPositionChanged(a[_])}onCursorStateChanged(i){let a=[];for(let R=0,K=i.selections.length;R<K;R++)a[R]=i.selections[R].getPosition();this._onCursorPositionChanged(a[0],a.slice(1));let _=i.selections[0].isEmpty();return this._selectionIsEmpty!==_&&(this._selectionIsEmpty=_,this._updateDomClassName()),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onFocusChanged(i){return this._editorHasFocus=i.isFocused,this._updateBlinking(),!1}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return!0}onTokensChanged(i){let a=_=>{for(let R=0,K=i.ranges.length;R<K;R++)if(i.ranges[R].fromLineNumber<=_.lineNumber&&_.lineNumber<=i.ranges[R].toLineNumber)return!0;return!1};if(a(this._primaryCursor.getPosition()))return!0;for(let _ of this._secondaryCursors)if(a(_.getPosition()))return!0;return!1}onZonesChanged(i){return!0}_getCursorBlinking(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let i=this._getCursorBlinking(),a=i===0,_=i===5;a?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),a||_||(i===1?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},_n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},_n.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let i="cursors-layer";switch(this._selectionIsEmpty||(i+=" has-selection"),this._cursorStyle){case fe.i.Line:i+=" cursor-line-style";break;case fe.i.Block:i+=" cursor-block-style";break;case fe.i.Underline:i+=" cursor-underline-style";break;case fe.i.LineThin:i+=" cursor-line-thin-style";break;case fe.i.BlockOutline:i+=" cursor-block-outline-style";break;case fe.i.UnderlineThin:i+=" cursor-underline-thin-style";break;default:i+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:i+=" cursor-blink";break;case 2:i+=" cursor-smooth";break;case 3:i+=" cursor-phase";break;case 4:i+=" cursor-expand";break;case 5:i+=" cursor-solid";break;default:i+=" cursor-solid"}else i+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(i+=" cursor-smooth-caret-animation"),i}_show(){this._primaryCursor.show();for(let i=0,a=this._secondaryCursors.length;i<a;i++)this._secondaryCursors[i].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let i=0,a=this._secondaryCursors.length;i<a;i++)this._secondaryCursors[i].hide();this._isVisible=!1}prepareRender(i){this._primaryCursor.prepareRender(i);for(let a=0,_=this._secondaryCursors.length;a<_;a++)this._secondaryCursors[a].prepareRender(i)}render(i){let a=[],_=0,R=this._primaryCursor.render(i);R&&(a[_++]=R);for(let K=0,we=this._secondaryCursors.length;K<we;K++){let Pe=this._secondaryCursors[K].render(i);Pe&&(a[_++]=Pe)}this._renderData=a}getLastRenderData(){return this._renderData}}_n.BLINK_INTERVAL=500,Object(ht.g)((Zt,i)=>{let a=Zt.getColor(ki.g);if(a){let _=Zt.getColor(ki.f);_||(_=a.opposite()),i.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${a}; border-color: ${a}; color: ${_}; }`),Zt.type==="hc"&&i.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${_}; border-right: 1px solid ${_}; }`)}});let ei=()=>{throw new Error("Invalid change accessor")};class ii extends xe{constructor(i){super(i);let a=this._context.configuration.options,_=a.get(117);this._lineHeight=a.get(51),this._contentWidth=_.contentWidth,this._contentLeft=_.contentLeft,this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(S.b)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){let i=this._context.viewLayout.getWhitespaces(),a=new Map;for(let R of i)a.set(R.id,R);let _=!1;return this._context.model.changeWhitespace(R=>{let K=Object.keys(this._zones);for(let we=0,Pe=K.length;we<Pe;we++){let Ve=K[we],Je=this._zones[Ve],at=this._computeWhitespaceProps(Je.delegate),bt=a.get(Ve);!bt||bt.afterLineNumber===at.afterViewLineNumber&&bt.height===at.heightInPx||(R.changeOneWhitespace(Ve,at.afterViewLineNumber,at.heightInPx),this._safeCallOnComputedHeight(Je.delegate,at.heightInPx),_=!0)}}),_}onConfigurationChanged(i){let a=this._context.configuration.options,_=a.get(117);return this._lineHeight=a.get(51),this._contentWidth=_.contentWidth,this._contentLeft=_.contentLeft,i.hasChanged(51)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(i){return this._recomputeWhitespacesProps()}onLinesDeleted(i){return!0}onScrollChanged(i){return i.scrollTopChanged||i.scrollWidthChanged}onZonesChanged(i){return!0}onLinesInserted(i){return!0}_getZoneOrdinal(i){return i.afterColumn!==void 0?i.afterColumn:1e4}_computeWhitespaceProps(i){if(i.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(i),minWidthInPx:this._minWidthInPixels(i)};let a,_;if(i.afterColumn!==void 0)a=this._context.model.validateModelPosition({lineNumber:i.afterLineNumber,column:i.afterColumn});else{let we=this._context.model.validateModelPosition({lineNumber:i.afterLineNumber,column:1}).lineNumber;a=new At.a(we,this._context.model.getModelLineMaxColumn(we))}_=a.column===this._context.model.getModelLineMaxColumn(a.lineNumber)?this._context.model.validateModelPosition({lineNumber:a.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:a.lineNumber,column:a.column+1});let R=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(a),K=this._context.model.coordinatesConverter.modelPositionIsVisible(_);return{afterViewLineNumber:R.lineNumber,heightInPx:K?this._heightInPixels(i):0,minWidthInPx:this._minWidthInPixels(i)}}changeViewZones(i){let a=!1;return this._context.model.changeWhitespace(_=>{let R={addZone:K=>(a=!0,this._addZone(_,K)),removeZone:K=>{K&&(a=this._removeZone(_,K)||a)},layoutZone:K=>{K&&(a=this._layoutZone(_,K)||a)}};(function(K,we){try{K(we)}catch(Pe){Object(O.e)(Pe)}})(i,R),R.addZone=ei,R.removeZone=ei,R.layoutZone=ei}),a}_addZone(i,a){let _=this._computeWhitespaceProps(a),R={whitespaceId:i.insertWhitespace(_.afterViewLineNumber,this._getZoneOrdinal(a),_.heightInPx,_.minWidthInPx),delegate:a,isVisible:!1,domNode:Object(S.b)(a.domNode),marginDomNode:a.marginDomNode?Object(S.b)(a.marginDomNode):null};return this._safeCallOnComputedHeight(R.delegate,_.heightInPx),R.domNode.setPosition("absolute"),R.domNode.domNode.style.width="100%",R.domNode.setDisplay("none"),R.domNode.setAttribute("monaco-view-zone",R.whitespaceId),this.domNode.appendChild(R.domNode),R.marginDomNode&&(R.marginDomNode.setPosition("absolute"),R.marginDomNode.domNode.style.width="100%",R.marginDomNode.setDisplay("none"),R.marginDomNode.setAttribute("monaco-view-zone",R.whitespaceId),this.marginDomNode.appendChild(R.marginDomNode)),this._zones[R.whitespaceId]=R,this.setShouldRender(),R.whitespaceId}_removeZone(i,a){if(this._zones.hasOwnProperty(a)){let _=this._zones[a];return delete this._zones[a],i.removeWhitespace(_.whitespaceId),_.domNode.removeAttribute("monaco-visible-view-zone"),_.domNode.removeAttribute("monaco-view-zone"),_.domNode.domNode.parentNode.removeChild(_.domNode.domNode),_.marginDomNode&&(_.marginDomNode.removeAttribute("monaco-visible-view-zone"),_.marginDomNode.removeAttribute("monaco-view-zone"),_.marginDomNode.domNode.parentNode.removeChild(_.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(i,a){if(this._zones.hasOwnProperty(a)){let _=this._zones[a],R=this._computeWhitespaceProps(_.delegate);return i.changeOneWhitespace(_.whitespaceId,R.afterViewLineNumber,R.heightInPx),this._safeCallOnComputedHeight(_.delegate,R.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(i){if(this._zones.hasOwnProperty(i)){let a=this._zones[i];return Boolean(a.delegate.suppressMouseDown)}return!1}_heightInPixels(i){return typeof i.heightInPx=="number"?i.heightInPx:typeof i.heightInLines=="number"?this._lineHeight*i.heightInLines:this._lineHeight}_minWidthInPixels(i){return typeof i.minWidthInPx=="number"?i.minWidthInPx:0}_safeCallOnComputedHeight(i,a){if(typeof i.onComputedHeight=="function")try{i.onComputedHeight(a)}catch(_){Object(O.e)(_)}}_safeCallOnDomNodeTop(i,a){if(typeof i.onDomNodeTop=="function")try{i.onDomNodeTop(a)}catch(_){Object(O.e)(_)}}prepareRender(i){}render(i){let a=i.viewportData.whitespaceViewportData,_={},R=!1;for(let we=0,Pe=a.length;we<Pe;we++)_[a[we].id]=a[we],R=!0;let K=Object.keys(this._zones);for(let we=0,Pe=K.length;we<Pe;we++){let Ve=K[we],Je=this._zones[Ve],at=0,bt=0,Bt="none";_.hasOwnProperty(Ve)?(at=_[Ve].verticalOffset-i.bigNumbersDelta,bt=_[Ve].height,Bt="block",Je.isVisible||(Je.domNode.setAttribute("monaco-visible-view-zone","true"),Je.isVisible=!0),this._safeCallOnDomNodeTop(Je.delegate,i.getScrolledTopFromAbsoluteTop(_[Ve].verticalOffset))):(Je.isVisible&&(Je.domNode.removeAttribute("monaco-visible-view-zone"),Je.isVisible=!1),this._safeCallOnDomNodeTop(Je.delegate,i.getScrolledTopFromAbsoluteTop(-1e6))),Je.domNode.setTop(at),Je.domNode.setHeight(bt),Je.domNode.setDisplay(Bt),Je.marginDomNode&&(Je.marginDomNode.setTop(at),Je.marginDomNode.setHeight(bt),Je.marginDomNode.setDisplay(Bt))}R&&(this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}class bi{constructor(i){this._theme=i}get type(){return this._theme.type}update(i){this._theme=i}getColor(i){return this._theme.getColor(i)}}class ln{constructor(i,a,_){this.configuration=i,this.theme=new bi(a),this.model=_,this.viewLayout=_.viewLayout}addEventHandler(i){this.model.addViewEventHandler(i)}removeEventHandler(i){this.model.removeViewEventHandler(i)}}class mn{constructor(i,a,_,R){this.selections=i,this.startLineNumber=0|a.startLineNumber,this.endLineNumber=0|a.endLineNumber,this.relativeVerticalOffset=a.relativeVerticalOffset,this.bigNumbersDelta=0|a.bigNumbersDelta,this.whitespaceViewportData=_,this._model=R,this.visibleRange=new Nt.a(a.startLineNumber,this._model.getLineMinColumn(a.startLineNumber),a.endLineNumber,this._model.getLineMaxColumn(a.endLineNumber))}getViewLineRenderingData(i){return this._model.getViewLineRenderingData(this.visibleRange,i)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class sn extends ke{constructor(i,a,_,R,K,we){super(),this._selections=[new C.a(1,1,1,1)],this._renderAnimationFrame=null;let Pe=new Pi(a,R,K,i);this._context=new ln(a,_.getColorTheme(),R),this._context.addEventHandler(this),this._register(_.onDidColorThemeChange(Ci=>{this._context.theme.update(Ci),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new si(this._context,Pe,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(S.b)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(S.b)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(S.b)(document.createElement("div")),Y.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new Fe(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Kt(this._context,this._linesContent),this._viewZones=new ii(this._context),this._viewParts.push(this._viewZones);let Ve=new Re(this._context);this._viewParts.push(Ve);let Je=new Ke(this._context);this._viewParts.push(Je);let at=new Jn(this._context);this._viewParts.push(at),at.addDynamicOverlay(new qt(this._context)),at.addDynamicOverlay(new Yt(this._context)),at.addDynamicOverlay(new Dt(this._context)),at.addDynamicOverlay(new ne(this._context));let bt=new br(this._context);this._viewParts.push(bt),bt.addDynamicOverlay(new I(this._context)),bt.addDynamicOverlay(new Mt(this._context)),bt.addDynamicOverlay(new Ti(this._context)),bt.addDynamicOverlay(new wi(this._context)),bt.addDynamicOverlay(new Ri(this._context));let Bt=new $i(this._context);Bt.getDomNode().appendChild(this._viewZones.marginDomNode),Bt.getDomNode().appendChild(bt.getDomNode()),this._viewParts.push(Bt),this._contentWidgets=new Gn(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new _n(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Te(this._context),this._viewParts.push(this._overlayWidgets);let Pt=new Le(this._context);this._viewParts.push(Pt);let ni=new fi(this._context);if(this._viewParts.push(ni),Ve){let Ci=this._scrollbar.getOverviewRulerLayoutInfo();Ci.parent.insertBefore(Ve.getDomNode(),Ci.insertBefore)}this._linesContent.appendChild(at.getDomNode()),this._linesContent.appendChild(Pt.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(Bt.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(Je.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(ni.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),we?we.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new st(this._context,Pe,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},getLastRenderData:()=>{let i=this._viewCursors.getLastRenderData()||[],a=this._textAreaHandler.getLastRenderData();return new wt(i,a)},shouldSuppressMouseDownOnViewZone:i=>this._viewZones.shouldSuppressMouseDownOnViewZone(i),shouldSuppressMouseDownOnWidget:i=>this._contentWidgets.shouldSuppressMouseDownOnWidget(i),getPositionFromDOMInfo:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(i,a)),visibleRangeForPosition:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new At.a(i,a))),getLineWidth:i=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(i))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(i,a)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new At.a(i,a)))}}_applyLayout(){let i=this._context.configuration.options.get(117);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this._overflowGuardContainer.setWidth(i.width),this._overflowGuardContainer.setHeight(i.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){let i=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(114)+" "+Object(ht.f)(this._context.theme.type)+i}handleEvents(i){super.handleEvents(i),this._scheduleRender()}onConfigurationChanged(i){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(i){return this._selections=i.selections,!1}onFocusChanged(i){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(i){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let i=0,a=this._viewParts.length;i<a;i++)this._viewParts[i].dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=f.W(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){(function(i){try{i()}catch(a){Object(O.e)(a)}})(()=>this._actualRender())}_getViewPartsToRender(){let i=[],a=0;for(let _=0,R=this._viewParts.length;_<R;_++){let K=this._viewParts[_];K.shouldRender()&&(i[a++]=K)}return i}_actualRender(){if(!f.N(this.domNode.domNode))return;let i=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&i.length===0)return;let a=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(a.startLineNumber,a.endLineNumber,a.centeredLineNumber);let _=new mn(this._selections,a,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(_),this._viewLines.shouldRender()&&(this._viewLines.renderText(_),this._viewLines.onDidRender(),i=this._getViewPartsToRender());let R=new Z(this._context.viewLayout,_,this._viewLines);for(let K=0,we=i.length;K<we;K++)i[K].prepareRender(R);for(let K=0,we=i.length;K<we;K++){let Pe=i[K];Pe.render(R),Pe.onDidRender()}}delegateVerticalScrollbarMouseDown(i){this._scrollbar.delegateVerticalScrollbarMouseDown(i)}restoreState(i){this._context.model.setScrollPosition({scrollTop:i.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:i.scrollLeft},1)}getOffsetForColumn(i,a){let _=this._context.model.validateModelPosition({lineNumber:i,column:a}),R=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(_);this._flushAccumulatedAndRenderNow();let K=this._viewLines.visibleRangeForPosition(new At.a(R.lineNumber,R.column));return K?K.left:-1}getTargetAtClientPoint(i,a){let _=this._pointerHandler.getTargetAtClientPoint(i,a);return _?Wi.convertViewToModelMouseTarget(_,this._context.model.coordinatesConverter):null}createOverviewRuler(i){return new Be(this._context,i)}change(i){this._viewZones.changeViewZones(i),this._scheduleRender()}render(i,a){if(a){this._viewLines.forceShouldRender();for(let _=0,R=this._viewParts.length;_<R;_++)this._viewParts[_].forceShouldRender()}i?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(i){this._textAreaHandler.setAriaOptions(i)}addContentWidget(i){this._contentWidgets.addWidget(i.widget),this.layoutContentWidget(i),this._scheduleRender()}layoutContentWidget(i){let a=i.position&&i.position.range||null;if(a===null){let R=i.position?i.position.position:null;R!==null&&(a=new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column))}let _=i.position?i.position.preference:null;this._contentWidgets.setWidgetPosition(i.widget,a,_),this._scheduleRender()}removeContentWidget(i){this._contentWidgets.removeWidget(i.widget),this._scheduleRender()}addOverlayWidget(i){this._overlayWidgets.addWidget(i.widget),this.layoutOverlayWidget(i),this._scheduleRender()}layoutOverlayWidget(i){let a=i.position?i.position.preference:null;this._overlayWidgets.setWidgetPosition(i.widget,a)&&this._scheduleRender()}removeOverlayWidget(i){this._overlayWidgets.removeWidget(i.widget),this._scheduleRender()}}class gn{constructor(i){this._selTrackedRange=null,this._trackSelection=!0,this._setState(i,new _i.f(new Nt.a(1,1,1,1),0,new At.a(1,1),0),new _i.f(new Nt.a(1,1,1,1),0,new At.a(1,1),0))}dispose(i){this._removeTrackedRange(i)}startTrackingSelection(i){this._trackSelection=!0,this._updateTrackedRange(i)}stopTrackingSelection(i){this._trackSelection=!1,this._removeTrackedRange(i)}_updateTrackedRange(i){this._trackSelection&&(this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(i){this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _i.d(this.modelState,this.viewState)}readSelectionFromMarkers(i){let a=i.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new C.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn):new C.a(a.endLineNumber,a.endColumn,a.startLineNumber,a.startColumn)}ensureValidState(i){this._setState(i,this.modelState,this.viewState)}setState(i,a,_){this._setState(i,a,_)}_setState(i,a,_){if(a){let R=i.model.validateRange(a.selectionStart),K=a.selectionStart.equalsRange(R)?a.selectionStartLeftoverVisibleColumns:0,we=i.model.validatePosition(a.position),Pe=a.position.equals(we)?a.leftoverVisibleColumns:0;a=new _i.f(R,K,we,Pe)}else{if(!_)return;let R=i.model.validateRange(i.coordinatesConverter.convertViewRangeToModelRange(_.selectionStart)),K=i.model.validatePosition(i.coordinatesConverter.convertViewPositionToModelPosition(_.position));a=new _i.f(R,_.selectionStartLeftoverVisibleColumns,K,_.leftoverVisibleColumns)}if(_){let R=i.coordinatesConverter.validateViewRange(_.selectionStart,a.selectionStart),K=i.coordinatesConverter.validateViewPosition(_.position,a.position);_=new _i.f(R,a.selectionStartLeftoverVisibleColumns,K,a.leftoverVisibleColumns)}else{let R=i.coordinatesConverter.convertModelPositionToViewPosition(new At.a(a.selectionStart.startLineNumber,a.selectionStart.startColumn)),K=i.coordinatesConverter.convertModelPositionToViewPosition(new At.a(a.selectionStart.endLineNumber,a.selectionStart.endColumn)),we=new Nt.a(R.lineNumber,R.column,K.lineNumber,K.column),Pe=i.coordinatesConverter.convertModelPositionToViewPosition(a.position);_=new _i.f(we,a.selectionStartLeftoverVisibleColumns,Pe,a.leftoverVisibleColumns)}this.modelState=a,this.viewState=_,this._updateTrackedRange(i)}}class Sn{constructor(i){this.context=i,this.primaryCursor=new gn(i),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].stopTrackingSelection(this.context)}updateContext(i){this.context=i}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let i=0,a=this.secondaryCursors.length;i<a;i++)this.secondaryCursors[i].ensureValidState(this.context)}readSelectionFromMarkers(){let i=[];i[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].readSelectionFromMarkers(this.context);return i}getAll(){let i=[];i[0]=this.primaryCursor.asCursorState();for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].asCursorState();return i}getViewPositions(){let i=[];i[0]=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].viewState.position;return i}getTopMostViewPosition(){let i=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++){let R=this.secondaryCursors[a].viewState.position;R.isBefore(i)&&(i=R)}return i}getBottomMostViewPosition(){let i=this.primaryCursor.viewState.position;for(let a=0,_=this.secondaryCursors.length;a<_;a++){let R=this.secondaryCursors[a].viewState.position;i.isBeforeOrEqual(R)&&(i=R)}return i}getSelections(){let i=[];i[0]=this.primaryCursor.modelState.selection;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].modelState.selection;return i}getViewSelections(){let i=[];i[0]=this.primaryCursor.viewState.selection;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a].viewState.selection;return i}setSelections(i){this.setStates(_i.d.fromModelSelections(i))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(i){i!==null&&(this.primaryCursor.setState(this.context,i[0].modelState,i[0].viewState),this._setSecondaryStates(i.slice(1)))}_setSecondaryStates(i){let a=this.secondaryCursors.length,_=i.length;if(a<_){let R=_-a;for(let K=0;K<R;K++)this._addSecondaryCursor()}else if(a>_){let R=a-_;for(let K=0;K<R;K++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let R=0;R<_;R++)this.secondaryCursors[R].setState(this.context,i[R].modelState,i[R].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new gn(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex}_removeSecondaryCursor(i){this.lastAddedCursorIndex>=i+1&&this.lastAddedCursorIndex--,this.secondaryCursors[i].dispose(this.context),this.secondaryCursors.splice(i,1)}_getAll(){let i=[];i[0]=this.primaryCursor;for(let a=0,_=this.secondaryCursors.length;a<_;a++)i[a+1]=this.secondaryCursors[a];return i}normalize(){if(this.secondaryCursors.length===0)return;let i=this._getAll(),a=[];for(let _=0,R=i.length;_<R;_++)a.push({index:_,selection:i[_].modelState.selection});a.sort((_,R)=>_.selection.startLineNumber===R.selection.startLineNumber?_.selection.startColumn-R.selection.startColumn:_.selection.startLineNumber-R.selection.startLineNumber);for(let _=0;_<a.length-1;_++){let R=a[_],K=a[_+1],we=R.selection,Pe=K.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let Ve;if(Ve=Pe.isEmpty()||we.isEmpty()?Pe.getStartPosition().isBeforeOrEqual(we.getEndPosition()):Pe.getStartPosition().isBefore(we.getEndPosition()),Ve){let Je=R.index<K.index?_:_+1,at=R.index<K.index?_+1:_,bt=a[at].index,Bt=a[Je].index,Pt=a[at].selection,ni=a[Je].selection;if(!Pt.equalsSelection(ni)){let Ci=Pt.plusRange(ni),Vi=Pt.selectionStartLineNumber===Pt.startLineNumber&&Pt.selectionStartColumn===Pt.startColumn,Mi=ni.selectionStartLineNumber===ni.startLineNumber&&ni.selectionStartColumn===ni.startColumn,zi,Yi;bt===this.lastAddedCursorIndex?(zi=Vi,this.lastAddedCursorIndex=Bt):zi=Mi,Yi=zi?new C.a(Ci.startLineNumber,Ci.startColumn,Ci.endLineNumber,Ci.endColumn):new C.a(Ci.endLineNumber,Ci.endColumn,Ci.startLineNumber,Ci.startColumn),a[Je].selection=Yi;let Gi=_i.d.fromModelSelection(Yi);i[Bt].setState(this.context,Gi.modelState,Gi.viewState)}for(let Ci of a)Ci.index>bt&&Ci.index--;i.splice(bt,1),a.splice(at,1),this._removeSecondaryCursor(bt-1),_--}}}}var En=r(181),Xn=r(126);class Yn{constructor(i){this.type=0,this._source=i}hasChanged(i){return this._source.hasChanged(i)}}class Nr{constructor(i,a){this.type=1,this.selections=i,this.modelSelections=a}}class Ar{constructor(i){this.type=2,i?(this.affectsMinimap=i.affectsMinimap,this.affectsOverviewRuler=i.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class In{constructor(){this.type=3}}class Rn{constructor(i){this.type=4,this.isFocused=i}}class Qn{constructor(){this.type=5}}class _r{constructor(){this.type=6}}class Rr{constructor(i,a){this.type=7,this.fromLineNumber=i,this.toLineNumber=a}}class xr{constructor(i,a){this.type=8,this.fromLineNumber=i,this.toLineNumber=a}}class Sr{constructor(i,a){this.type=9,this.fromLineNumber=i,this.toLineNumber=a}}class ur{constructor(i,a,_,R,K,we){this.type=10,this.source=i,this.range=a,this.selections=_,this.verticalType=R,this.revealHorizontal=K,this.scrollType=we}}class Tn{constructor(i){this.type=11,this.scrollWidth=i.scrollWidth,this.scrollLeft=i.scrollLeft,this.scrollHeight=i.scrollHeight,this.scrollTop=i.scrollTop,this.scrollWidthChanged=i.scrollWidthChanged,this.scrollLeftChanged=i.scrollLeftChanged,this.scrollHeightChanged=i.scrollHeightChanged,this.scrollTopChanged=i.scrollTopChanged}}class Lr{constructor(){this.type=12}}class Ur{constructor(i){this.type=13,this.ranges=i}}class go{constructor(){this.type=14}}class vr{constructor(){this.type=15}}class ls extends E.a{constructor(){super(),this._onEvent=this._register(new H.a),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(i){this._addOutgoingEvent(i),this._emitOugoingEvents()}_addOutgoingEvent(i){for(let a=0,_=this._outgoingEvents.length;a<_;a++)if(this._outgoingEvents[a].kind===i.kind)return void(this._outgoingEvents[a]=this._outgoingEvents[a].merge(i));this._outgoingEvents.push(i)}_emitOugoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;let i=this._outgoingEvents.shift();i.isNoOp()||this._onEvent.fire(i)}}addViewEventHandler(i){for(let a=0,_=this._eventHandlers.length;a<_;a++)this._eventHandlers[a]===i&&console.warn("Detected duplicate listener in ViewEventDispatcher",i);this._eventHandlers.push(i)}removeViewEventHandler(i){for(let a=0;a<this._eventHandlers.length;a++)if(this._eventHandlers[a]===i){this._eventHandlers.splice(a,1);break}}beginEmitViewEvents(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Bo),this._collector}endEmitViewEvents(){if(this._collectorCnt--,this._collectorCnt===0){let i=this._collector.outgoingEvents,a=this._collector.viewEvents;this._collector=null;for(let _ of i)this._addOutgoingEvent(_);a.length>0&&this._emitMany(a)}this._emitOugoingEvents()}emitSingleViewEvent(i){try{this.beginEmitViewEvents().emitViewEvent(i)}finally{this.endEmitViewEvents()}}_emitMany(i){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(i):this._viewEventQueue=i,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){let i=this._viewEventQueue;this._viewEventQueue=null;let a=this._eventHandlers.slice(0);for(let _ of a)_.handleEvents(i)}}}class Bo{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(i){this.viewEvents.push(i)}emitOutgoingEvent(i){this.outgoingEvents.push(i)}}class Kn{constructor(i,a,_,R){this.kind=0,this._oldContentWidth=i,this._oldContentHeight=a,this.contentWidth=_,this.contentHeight=R,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(i){return i.kind!==0?this:new Kn(this._oldContentWidth,this._oldContentHeight,i.contentWidth,i.contentHeight)}}class lo{constructor(i,a){this.kind=1,this.oldHasFocus=i,this.hasFocus=a}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(i){return i.kind!==1?this:new lo(this.oldHasFocus,i.hasFocus)}}class kr{constructor(i,a,_,R,K,we,Pe,Ve){this.kind=2,this._oldScrollWidth=i,this._oldScrollLeft=a,this._oldScrollHeight=_,this._oldScrollTop=R,this.scrollWidth=K,this.scrollLeft=we,this.scrollHeight=Pe,this.scrollTop=Ve,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(i){return i.kind!==2?this:new kr(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,i.scrollWidth,i.scrollLeft,i.scrollHeight,i.scrollTop)}}class Lo{constructor(){this.kind=3}isNoOp(){return!1}merge(i){return this}}class jo{constructor(i,a,_,R,K,we,Pe){this.kind=5,this.oldSelections=i,this.selections=a,this.oldModelVersionId=_,this.modelVersionId=R,this.source=K,this.reason=we,this.reachedMaxCursorCount=Pe}static _selectionsAreEqual(i,a){if(!i&&!a)return!0;if(!i||!a)return!1;let _=i.length;if(_!==a.length)return!1;for(let R=0;R<_;R++)if(!i[R].equalsSelection(a[R]))return!1;return!0}isNoOp(){return jo._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(i){return i.kind!==5?this:new jo(this.oldSelections,i.selections,this.oldModelVersionId,i.modelVersionId,i.source,i.reason,this.reachedMaxCursorCount||i.reachedMaxCursorCount)}}class $r{constructor(){this.kind=4}isNoOp(){return!1}merge(i){return this}}class Cn{constructor(i,a){this.modelVersionId=i.getVersionId(),this.cursorState=a.getCursorStates()}equals(i){if(!i||this.modelVersionId!==i.modelVersionId||this.cursorState.length!==i.cursorState.length)return!1;for(let a=0,_=this.cursorState.length;a<_;a++)if(!this.cursorState[a].equals(i.cursorState[a]))return!1;return!0}}class Ir{constructor(i,a,_){this._model=i,this._autoClosedCharactersDecorations=a,this._autoClosedEnclosingDecorations=_}static getAllAutoClosedCharacters(i){let a=[];for(let _ of i)a=a.concat(_.getAutoClosedCharactersRanges());return a}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let i=[];for(let a=0;a<this._autoClosedCharactersDecorations.length;a++){let _=this._model.getDecorationRange(this._autoClosedCharactersDecorations[a]);_&&i.push(_)}return i}isValid(i){let a=[];for(let _=0;_<this._autoClosedEnclosingDecorations.length;_++){let R=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[_]);if(R&&(a.push(R),R.startLineNumber!==R.endLineNumber))return!1}a.sort(Nt.a.compareRangesUsingStarts),i.sort(Nt.a.compareRangesUsingStarts);for(let _=0;_<i.length;_++)if(_>=a.length||!a[_].strictContainsRange(i[_]))return!1;return!0}}class Dr extends E.a{constructor(i,a,_,R){super(),this._model=i,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=a,this._coordinatesConverter=_,this.context=new _i.c(this._model,this._coordinatesConverter,R),this._cursors=new Sn(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(E.f)(this._autoClosedActions),super.dispose()}updateConfiguration(i){this.context=new _i.c(this._model,this._coordinatesConverter,i),this._cursors.updateContext(this.context)}onLineMappingChanged(i){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(i,"viewModel",0,this.getCursorStates())}setHasFocus(i){this._hasFocus=i}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let i=this._cursors.getSelections();for(let a=0;a<this._autoClosedActions.length;a++){let _=this._autoClosedActions[a];_.isValid(i)||(_.dispose(),this._autoClosedActions.splice(a,1),a--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(i,a,_,R){let K=!1;R!==null&&R.length>Dr.MAX_CURSOR_COUNT&&(R=R.slice(0,Dr.MAX_CURSOR_COUNT),K=!0);let we=new Cn(this._model,this);return this._cursors.setStates(R),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(i,a,_,we,K)}setCursorColumnSelectData(i){this._columnSelectData=i}revealPrimary(i,a,_,R){let K=this._cursors.getViewPositions();if(K.length>1)this._emitCursorRevealRange(i,a,null,this._cursors.getViewSelections(),0,_,R);else{let we=K[0],Pe=new Nt.a(we.lineNumber,we.column,we.lineNumber,we.column);this._emitCursorRevealRange(i,a,Pe,null,0,_,R)}}_revealPrimaryCursor(i,a,_,R,K){let we=this._cursors.getViewPositions();if(we.length>1)this._emitCursorRevealRange(i,a,null,this._cursors.getViewSelections(),_,R,K);else{let Pe=we[0],Ve=new Nt.a(Pe.lineNumber,Pe.column,Pe.lineNumber,Pe.column);this._emitCursorRevealRange(i,a,Ve,null,_,R,K)}}_emitCursorRevealRange(i,a,_,R,K,we,Pe){i.emitViewEvent(new ur(a,_,R,K,we,Pe))}saveState(){let i=[],a=this._cursors.getSelections();for(let _=0,R=a.length;_<R;_++){let K=a[_];i.push({inSelectionMode:!K.isEmpty(),selectionStart:{lineNumber:K.selectionStartLineNumber,column:K.selectionStartColumn},position:{lineNumber:K.positionLineNumber,column:K.positionColumn}})}return i}restoreState(i,a){let _=[];for(let R=0,K=a.length;R<K;R++){let we=a[R],Pe=1,Ve=1;we.position&&we.position.lineNumber&&(Pe=we.position.lineNumber),we.position&&we.position.column&&(Ve=we.position.column);let Je=Pe,at=Ve;we.selectionStart&&we.selectionStart.lineNumber&&(Je=we.selectionStart.lineNumber),we.selectionStart&&we.selectionStart.column&&(at=we.selectionStart.column),_.push({selectionStartLineNumber:Je,selectionStartColumn:at,positionLineNumber:Pe,positionColumn:Ve})}this.setStates(i,"restoreState",0,_i.d.fromModelSelections(_)),this.revealPrimary(i,"restoreState",!0,1)}onModelContentChanged(i,a){if(this._knownModelVersionId=a.versionId,this._isHandling)return;let _=a.containsEvent(1);if(this._prevEditOperationType=0,_)this._cursors.dispose(),this._cursors=new Sn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(i,"model",1,null,!1);else if(this._hasFocus&&a.resultingSelection&&a.resultingSelection.length>0){let R=_i.d.fromModelSelections(a.resultingSelection);this.setStates(i,"modelChange",a.isUndoing?5:a.isRedoing?6:2,R)&&this._revealPrimaryCursor(i,"modelChange",0,!0,0)}else{let R=this._cursors.readSelectionFromMarkers();this.setStates(i,"modelChange",2,_i.d.fromModelSelections(R))}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;let i=this._cursors.getPrimaryCursor(),a=i.viewState.selectionStart.getStartPosition(),_=i.viewState.position;return{isReal:!1,fromViewLineNumber:a.lineNumber,fromViewVisualColumn:_i.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,a),toViewLineNumber:_.lineNumber,toViewVisualColumn:_i.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,_)}}getSelections(){return this._cursors.getSelections()}setSelections(i,a,_){this.setStates(i,a,0,_i.d.fromModelSelections(_))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(i){this._prevEditOperationType=i}_pushAutoClosedAction(i,a){let _=[],R=[];for(let Pe=0,Ve=i.length;Pe<Ve;Pe++)_.push({range:i[Pe],options:{inlineClassName:"auto-closed-character",stickiness:1}}),R.push({range:a[Pe],options:{stickiness:1}});let K=this._model.deltaDecorations([],_),we=this._model.deltaDecorations([],R);this._autoClosedActions.push(new Ir(this._model,K,we))}_executeEditOperation(i){if(!i)return;i.shouldPushStackElementBefore&&this._model.pushStackElement();let a=class{static executeCommands(_,R,K){let we={model:_,selectionsBefore:R,trackedRanges:[],trackedRangesDirection:[]},Pe=this._innerExecuteCommands(we,K);for(let Ve=0,Je=we.trackedRanges.length;Ve<Je;Ve++)we.model._setTrackedRange(we.trackedRanges[Ve],null,0);return Pe}static _innerExecuteCommands(_,R){if(this._arrayIsEmpty(R))return null;let K=this._getEditOperations(_,R);if(K.operations.length===0)return null;let we=K.operations,Pe=this._getLoserCursorMap(we);if(Pe.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let Ve=[];for(let bt=0,Bt=we.length;bt<Bt;bt++)Pe.hasOwnProperty(we[bt].identifier.major.toString())||Ve.push(we[bt]);K.hadTrackedEditOperation&&Ve.length>0&&(Ve[0]._isTracked=!0);let Je=_.model.pushEditOperations(_.selectionsBefore,Ve,bt=>{let Bt=[];for(let Ci=0;Ci<_.selectionsBefore.length;Ci++)Bt[Ci]=[];for(let Ci of bt)Ci.identifier&&Bt[Ci.identifier.major].push(Ci);let Pt=(Ci,Vi)=>Ci.identifier.minor-Vi.identifier.minor,ni=[];for(let Ci=0;Ci<_.selectionsBefore.length;Ci++)Bt[Ci].length>0?(Bt[Ci].sort(Pt),ni[Ci]=R[Ci].computeCursorState(_.model,{getInverseEditOperations:()=>Bt[Ci],getTrackedSelection:Vi=>{let Mi=parseInt(Vi,10),zi=_.model._getTrackedRange(_.trackedRanges[Mi]);return _.trackedRangesDirection[Mi]===0?new C.a(zi.startLineNumber,zi.startColumn,zi.endLineNumber,zi.endColumn):new C.a(zi.endLineNumber,zi.endColumn,zi.startLineNumber,zi.startColumn)}})):ni[Ci]=_.selectionsBefore[Ci];return ni});Je||(Je=_.selectionsBefore);let at=[];for(let bt in Pe)Pe.hasOwnProperty(bt)&&at.push(parseInt(bt,10));at.sort((bt,Bt)=>Bt-bt);for(let bt of at)Je.splice(bt,1);return Je}static _arrayIsEmpty(_){for(let R=0,K=_.length;R<K;R++)if(_[R])return!1;return!0}static _getEditOperations(_,R){let K=[],we=!1;for(let Pe=0,Ve=R.length;Pe<Ve;Pe++){let Je=R[Pe];if(Je){let at=this._getEditOperationsFromCommand(_,Pe,Je);K=K.concat(at.operations),we=we||at.hadTrackedEditOperation}}return{operations:K,hadTrackedEditOperation:we}}static _getEditOperationsFromCommand(_,R,K){let we=[],Pe=0,Ve=(bt,Bt,Pt=!1)=>{Nt.a.isEmpty(bt)&&Bt===""||we.push({identifier:{major:R,minor:Pe++},range:bt,text:Bt,forceMoveMarkers:Pt,isAutoWhitespaceEdit:K.insertsAutoWhitespace})},Je=!1,at={addEditOperation:Ve,addTrackedEditOperation:(bt,Bt,Pt)=>{Je=!0,Ve(bt,Bt,Pt)},trackSelection:(bt,Bt)=>{let Pt=C.a.liftSelection(bt),ni;if(Pt.isEmpty())if(typeof Bt=="boolean")ni=Bt?2:3;else{let Mi=_.model.getLineMaxColumn(Pt.startLineNumber);ni=Pt.startColumn===Mi?2:3}else ni=1;let Ci=_.trackedRanges.length,Vi=_.model._setTrackedRange(null,Pt,ni);return _.trackedRanges[Ci]=Vi,_.trackedRangesDirection[Ci]=Pt.getDirection(),Ci.toString()}};try{K.getEditOperations(_.model,at)}catch(bt){return Object(O.e)(bt),{operations:[],hadTrackedEditOperation:!1}}return{operations:we,hadTrackedEditOperation:Je}}static _getLoserCursorMap(_){(_=_.slice(0)).sort((K,we)=>-Nt.a.compareRangesUsingEnds(K.range,we.range));let R={};for(let K=1;K<_.length;K++){let we=_[K-1],Pe=_[K];if(Nt.a.getStartPosition(we.range).isBefore(Nt.a.getEndPosition(Pe.range))){let Ve;Ve=we.identifier.major>Pe.identifier.major?we.identifier.major:Pe.identifier.major,R[Ve.toString()]=!0;for(let Je=0;Je<_.length;Je++)_[Je].identifier.major===Ve&&(_.splice(Je,1),Je<K&&K--,Je--);K>0&&K--}}return R}}.executeCommands(this._model,this._cursors.getSelections(),i.commands);if(a){this._interpretCommandResult(a);let _=[],R=[];for(let K=0;K<i.commands.length;K++){let we=i.commands[K];we instanceof Xn.b&&we.enclosingRange&&we.closeCharacterRange&&(_.push(we.closeCharacterRange),R.push(we.enclosingRange))}_.length>0&&this._pushAutoClosedAction(_,R),this._prevEditOperationType=i.type}i.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(i){i&&i.length!==0||(i=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(i),this._cursors.normalize()}_emitStateChangedIfNecessary(i,a,_,R,K){let we=new Cn(this._model,this);if(we.equals(R))return!1;let Pe=this._cursors.getSelections(),Ve=this._cursors.getViewSelections();if(i.emitViewEvent(new Nr(Ve,Pe)),!R||R.cursorState.length!==we.cursorState.length||we.cursorState.some((Je,at)=>!Je.modelState.equals(R.cursorState[at].modelState))){let Je=R?R.cursorState.map(bt=>bt.modelState.selection):null,at=R?R.modelVersionId:0;i.emitOutgoingEvent(new jo(Je,Pe,at,we.modelVersionId,a||"keyboard",_,K))}return!0}_findAutoClosingPairs(i){if(!i.length)return null;let a=[];for(let _=0,R=i.length;_<R;_++){let K=i[_];if(!K.text||K.text.indexOf(` +`)>=0)return null;let we=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!we)return null;let Pe=we[1],Ve=this.context.cursorConfig.autoClosingPairsClose2.get(Pe);if(!Ve||Ve.length!==1)return null;let Je=Ve[0].open,at=K.text.length-we[2].length-1,bt=K.text.lastIndexOf(Je,at-1);if(bt===-1)return null;a.push([bt,at])}return a}executeEdits(i,a,_,R){let K=null;a==="snippet"&&(K=this._findAutoClosingPairs(_)),K&&(_[0]._isTracked=!0);let we=[],Pe=[],Ve=this._model.pushEditOperations(this.getSelections(),_,Je=>{if(K)for(let bt=0,Bt=K.length;bt<Bt;bt++){let[Pt,ni]=K[bt],Ci=Je[bt],Vi=Ci.range.startLineNumber,Mi=Ci.range.startColumn-1+Pt,zi=Ci.range.startColumn-1+ni;we.push(new Nt.a(Vi,zi+1,Vi,zi+2)),Pe.push(new Nt.a(Vi,Mi+1,Vi,zi+2))}let at=R(Je);return at&&(this._isHandling=!0),at});Ve&&(this._isHandling=!1,this.setSelections(i,a,Ve)),we.length>0&&this._pushAutoClosedAction(we,Pe)}_executeEdit(i,a,_,R=0){if(this.context.cursorConfig.readOnly)return;let K=new Cn(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),i()}catch(we){Object(O.e)(we)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(a,_,R,K,!1)&&this._revealPrimaryCursor(a,_,0,!0,0)}setIsDoingComposition(i){this._isDoingComposition=i}startComposition(i){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(i,a){this._executeEdit(()=>{if(a==="keyboard"){let _=Ir.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Xn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),_)),this._selectionsWhenCompositionStarted=null}},i,a)}type(i,a,_){this._executeEdit(()=>{if(_==="keyboard"){let R=a.length,K=0;for(;K<R;){let we=_t.L(a,K),Pe=a.substr(K,we),Ve=Ir.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Xn.a.typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),Ve,Pe)),K+=we}}else this._executeEditOperation(Xn.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),a))},i,_)}replacePreviousChar(i,a,_,R){this._executeEdit(()=>{this._executeEditOperation(Xn.a.replacePreviousChar(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),a,_))},i,R)}paste(i,a,_,R,K){this._executeEdit(()=>{this._executeEditOperation(Xn.a.paste(this.context.cursorConfig,this._model,this.getSelections(),a,_,R||[]))},i,K,4)}cut(i,a){this._executeEdit(()=>{this._executeEditOperation(En.a.cut(this.context.cursorConfig,this._model,this.getSelections()))},i,a)}executeCommand(i,a,_){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _i.e(0,[a],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,_)}executeCommands(i,a,_){this._executeEdit(()=>{this._executeEditOperation(new _i.e(0,a,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,_)}}Dr.MAX_CURSOR_COUNT=1e4;var fo=r(191),zn=r(143),er=r(7),bo=r(182),va=r(170);class es{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(i){this._hasPending=!0,this._inserts.push(i)}change(i){this._hasPending=!0,this._changes.push(i)}remove(i){this._hasPending=!0,this._removes.push(i)}mustCommit(){return this._hasPending}commit(i){if(!this._hasPending)return;let a=this._inserts,_=this._changes,R=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],i._commitPendingChanges(a,_,R)}}class Vo{constructor(i,a,_,R,K){this.id=i,this.afterLineNumber=a,this.ordinal=_,this.height=R,this.minWidth=K,this.prefixSum=0}}class No{constructor(i,a,_,R){this._instanceId=_t.R(++No.INSTANCE_COUNT),this._pendingChanges=new es,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=i,this._lineHeight=a,this._paddingTop=_,this._paddingBottom=R}static findInsertionIndex(i,a,_){let R=0,K=i.length;for(;R<K;){let we=R+K>>>1;a===i[we].afterLineNumber?_<i[we].ordinal?K=we:R=we+1:a<i[we].afterLineNumber?K=we:R=we+1}return R}setLineHeight(i){this._checkPendingChanges(),this._lineHeight=i}setPadding(i,a){this._paddingTop=i,this._paddingBottom=a}onFlushed(i){this._checkPendingChanges(),this._lineCount=i}changeWhitespace(i){let a=!1;try{i({insertWhitespace:(_,R,K,we)=>{a=!0,_|=0,R|=0,K|=0,we|=0;let Pe=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Vo(Pe,_,R,K,we)),Pe},changeOneWhitespace:(_,R,K)=>{a=!0,R|=0,K|=0,this._pendingChanges.change({id:_,newAfterLineNumber:R,newHeight:K})},removeWhitespace:_=>{a=!0,this._pendingChanges.remove({id:_})}})}finally{this._pendingChanges.commit(this)}return a}_commitPendingChanges(i,a,_){if((i.length>0||_.length>0)&&(this._minWidth=-1),i.length+a.length+_.length<=1){for(let Ve of i)this._insertWhitespace(Ve);for(let Ve of a)this._changeOneWhitespace(Ve.id,Ve.newAfterLineNumber,Ve.newHeight);for(let Ve of _){let Je=this._findWhitespaceIndex(Ve.id);Je!==-1&&this._removeWhitespace(Je)}return}let R=new Set;for(let Ve of _)R.add(Ve.id);let K=new Map;for(let Ve of a)K.set(Ve.id,Ve);let we=Ve=>{let Je=[];for(let at of Ve)if(!R.has(at.id)){if(K.has(at.id)){let bt=K.get(at.id);at.afterLineNumber=bt.newAfterLineNumber,at.height=bt.newHeight}Je.push(at)}return Je},Pe=we(this._arr).concat(we(i));Pe.sort((Ve,Je)=>Ve.afterLineNumber===Je.afterLineNumber?Ve.ordinal-Je.ordinal:Ve.afterLineNumber-Je.afterLineNumber),this._arr=Pe,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(i){let a=No.findInsertionIndex(this._arr,i.afterLineNumber,i.ordinal);this._arr.splice(a,0,i),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,a-1)}_findWhitespaceIndex(i){let a=this._arr;for(let _=0,R=a.length;_<R;_++)if(a[_].id===i)return _;return-1}_changeOneWhitespace(i,a,_){let R=this._findWhitespaceIndex(i);if(R!==-1&&(this._arr[R].height!==_&&(this._arr[R].height=_,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,R-1)),this._arr[R].afterLineNumber!==a)){let K=this._arr[R];this._removeWhitespace(R),K.afterLineNumber=a,this._insertWhitespace(K)}}_removeWhitespace(i){this._arr.splice(i,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)}onLinesDeleted(i,a){this._checkPendingChanges(),i|=0,a|=0,this._lineCount-=a-i+1;for(let _=0,R=this._arr.length;_<R;_++){let K=this._arr[_].afterLineNumber;i<=K&&K<=a?this._arr[_].afterLineNumber=i-1:K>a&&(this._arr[_].afterLineNumber-=a-i+1)}}onLinesInserted(i,a){this._checkPendingChanges(),i|=0,a|=0,this._lineCount+=a-i+1;for(let _=0,R=this._arr.length;_<R;_++)i<=this._arr[_].afterLineNumber&&(this._arr[_].afterLineNumber+=a-i+1)}getWhitespacesTotalHeight(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(i){this._checkPendingChanges(),i|=0;let a=Math.max(0,this._prefixSumValidIndex+1);a===0&&(this._arr[0].prefixSum=this._arr[0].height,a++);for(let _=a;_<=i;_++)this._arr[_].prefixSum=this._arr[_-1].prefixSum+this._arr[_].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,i),this._arr[i].prefixSum}getLinesTotalHeight(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(i){this._checkPendingChanges(),i|=0;let a=this._findLastWhitespaceBeforeLineNumber(i);return a===-1?0:this.getWhitespacesAccumulatedHeight(a)}_findLastWhitespaceBeforeLineNumber(i){i|=0;let a=this._arr,_=0,R=a.length-1;for(;_<=R;){let K=_+((R-_|0)/2|0)|0;if(a[K].afterLineNumber<i){if(K+1>=a.length||a[K+1].afterLineNumber>=i)return K;_=K+1|0}else R=K-1|0}return-1}_findFirstWhitespaceAfterLineNumber(i){i|=0;let a=this._findLastWhitespaceBeforeLineNumber(i)+1;return a<this._arr.length?a:-1}getFirstWhitespaceIndexAfterLineNumber(i){return this._checkPendingChanges(),i|=0,this._findFirstWhitespaceAfterLineNumber(i)}getVerticalOffsetForLineNumber(i){let a;return this._checkPendingChanges(),a=(i|=0)>1?this._lineHeight*(i-1):0,a+this.getWhitespaceAccumulatedHeightBeforeLineNumber(i)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let i=0;for(let a=0,_=this._arr.length;a<_;a++)i=Math.max(i,this._arr[a].minWidth);this._minWidth=i}return this._minWidth}isAfterLines(i){return this._checkPendingChanges(),i>this.getLinesTotalHeight()}getLineNumberAtOrAfterVerticalOffset(i){if(this._checkPendingChanges(),(i|=0)<0)return 1;let a=0|this._lineCount,_=this._lineHeight,R=1,K=a;for(;R<K;){let we=(R+K)/2|0,Pe=0|this.getVerticalOffsetForLineNumber(we);if(i>=Pe+_)R=we+1;else{if(i>=Pe)return we;K=we}}return R>a?a:R}getLinesViewportData(i,a){this._checkPendingChanges(),i|=0,a|=0;let _=this._lineHeight,R=0|this.getLineNumberAtOrAfterVerticalOffset(i),K=0|this.getVerticalOffsetForLineNumber(R),we=0|this._lineCount,Pe=0|this.getFirstWhitespaceIndexAfterLineNumber(R),Ve=0|this.getWhitespacesCount(),Je,at;Pe===-1?(Pe=Ve,at=we+1,Je=0):(at=0|this.getAfterLineNumberForWhitespaceIndex(Pe),Je=0|this.getHeightForWhitespaceIndex(Pe));let bt=K,Bt=bt,Pt=0;K>=5e5&&(Pt=5e5*Math.floor(K/5e5),Pt=Math.floor(Pt/_)*_,Bt-=Pt);let ni=[],Ci=i+(a-i)/2,Vi=-1;for(let Gi=R;Gi<=we;Gi++){if(Vi===-1){let wn=bt,nn=bt+_;(wn<=Ci&&Ci<nn||wn>Ci)&&(Vi=Gi)}for(bt+=_,ni[Gi-R]=Bt,Bt+=_;at===Gi;)Bt+=Je,bt+=Je,Pe++,Pe>=Ve?at=we+1:(at=0|this.getAfterLineNumberForWhitespaceIndex(Pe),Je=0|this.getHeightForWhitespaceIndex(Pe));if(bt>=a){we=Gi;break}}Vi===-1&&(Vi=we);let Mi=0|this.getVerticalOffsetForLineNumber(we),zi=R,Yi=we;return zi<Yi&&K<i&&zi++,zi<Yi&&Mi+_>a&&Yi--,{bigNumbersDelta:Pt,startLineNumber:R,endLineNumber:we,relativeVerticalOffset:ni,centeredLineNumber:Vi,completelyVisibleStartLineNumber:zi,completelyVisibleEndLineNumber:Yi}}getVerticalOffsetForWhitespaceIndex(i){this._checkPendingChanges(),i|=0;let a=this.getAfterLineNumberForWhitespaceIndex(i),_,R;return _=a>=1?this._lineHeight*a:0,R=i>0?this.getWhitespacesAccumulatedHeight(i-1):0,_+R+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(i){this._checkPendingChanges(),i|=0;let a=0,_=this.getWhitespacesCount()-1;if(_<0||i>=this.getVerticalOffsetForWhitespaceIndex(_)+this.getHeightForWhitespaceIndex(_))return-1;for(;a<_;){let R=Math.floor((a+_)/2),K=this.getVerticalOffsetForWhitespaceIndex(R);if(i>=K+this.getHeightForWhitespaceIndex(R))a=R+1;else{if(i>=K)return R;_=R}}return a}getWhitespaceAtVerticalOffset(i){this._checkPendingChanges(),i|=0;let a=this.getWhitespaceIndexAtOrAfterVerticallOffset(i);if(a<0||a>=this.getWhitespacesCount())return null;let _=this.getVerticalOffsetForWhitespaceIndex(a);if(_>i)return null;let R=this.getHeightForWhitespaceIndex(a);return{id:this.getIdForWhitespaceIndex(a),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(a),verticalOffset:_,height:R}}getWhitespaceViewportData(i,a){this._checkPendingChanges(),i|=0,a|=0;let _=this.getWhitespaceIndexAtOrAfterVerticallOffset(i),R=this.getWhitespacesCount()-1;if(_<0)return[];let K=[];for(let we=_;we<=R;we++){let Pe=this.getVerticalOffsetForWhitespaceIndex(we),Ve=this.getHeightForWhitespaceIndex(we);if(Pe>=a)break;K.push({id:this.getIdForWhitespaceIndex(we),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(we),verticalOffset:Pe,height:Ve})}return K}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].id}getAfterLineNumberForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].afterLineNumber}getHeightForWhitespaceIndex(i){return this._checkPendingChanges(),i|=0,this._arr[i].height}}No.INSTANCE_COUNT=0;class ts{constructor(i,a,_,R){(i|=0)<0&&(i=0),(a|=0)<0&&(a=0),(_|=0)<0&&(_=0),(R|=0)<0&&(R=0),this.width=i,this.contentWidth=a,this.scrollWidth=Math.max(i,a),this.height=_,this.contentHeight=R,this.scrollHeight=Math.max(_,R)}equals(i){return this.width===i.width&&this.contentWidth===i.contentWidth&&this.height===i.height&&this.contentHeight===i.contentHeight}}class na extends E.a{constructor(i,a){super(),this._onDidContentSizeChange=this._register(new H.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new ts(0,0,0,0),this._scrollable=this._register(new va.a(i,a)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(i){this._scrollable.setSmoothScrollDuration(i)}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}getScrollDimensions(){return this._dimensions}setScrollDimensions(i){if(this._dimensions.equals(i))return;let a=this._dimensions;this._dimensions=i,this._scrollable.setScrollDimensions({width:i.width,scrollWidth:i.scrollWidth,height:i.height,scrollHeight:i.scrollHeight},!0);let _=a.contentWidth!==i.contentWidth,R=a.contentHeight!==i.contentHeight;(_||R)&&this._onDidContentSizeChange.fire(new Kn(a.contentWidth,a.contentHeight,i.contentWidth,i.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(i){this._scrollable.setScrollPositionNow(i)}setScrollPositionSmooth(i){this._scrollable.setScrollPositionSmooth(i)}}class is extends E.a{constructor(i,a,_){super(),this._configuration=i;let R=this._configuration.options,K=R.get(117),we=R.get(66);this._linesLayout=new No(a,R.get(51),we.top,we.bottom),this._scrollable=this._register(new na(0,_)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new ts(K.contentWidth,0,K.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(94)?125:0)}onConfigurationChanged(i){let a=this._configuration.options;if(i.hasChanged(51)&&this._linesLayout.setLineHeight(a.get(51)),i.hasChanged(66)){let _=a.get(66);this._linesLayout.setPadding(_.top,_.bottom)}if(i.hasChanged(117)){let _=a.get(117),R=_.contentWidth,K=_.height,we=this._scrollable.getScrollDimensions(),Pe=we.contentWidth;this._scrollable.setScrollDimensions(new ts(R,we.contentWidth,K,this._getContentHeight(R,K,Pe)))}else this._updateHeight();i.hasChanged(94)&&this._configureSmoothScrollDuration()}onFlushed(i){this._linesLayout.onFlushed(i)}onLinesDeleted(i,a){this._linesLayout.onLinesDeleted(i,a)}onLinesInserted(i,a){this._linesLayout.onLinesInserted(i,a)}_getHorizontalScrollbarHeight(i,a){let _=this._configuration.options.get(84);return _.horizontal===2||i>=a?0:_.horizontalScrollbarSize}_getContentHeight(i,a,_){let R=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return R.get(86)?K+=a-R.get(51):K+=this._getHorizontalScrollbarHeight(i,_),K}_updateHeight(){let i=this._scrollable.getScrollDimensions(),a=i.width,_=i.height,R=i.contentWidth;this._scrollable.setScrollDimensions(new ts(a,i.contentWidth,_,this._getContentHeight(a,_,R)))}getCurrentViewport(){let i=this._scrollable.getScrollDimensions(),a=this._scrollable.getCurrentScrollPosition();return new Ge.f(a.scrollTop,a.scrollLeft,i.width,i.height)}getFutureViewport(){let i=this._scrollable.getScrollDimensions(),a=this._scrollable.getFutureScrollPosition();return new Ge.f(a.scrollTop,a.scrollLeft,i.width,i.height)}_computeContentWidth(i){let a=this._configuration.options,_=a.get(118),R=a.get(36);if(_.isViewportWrapping){let K=a.get(117),we=a.get(56);return i>K.contentWidth+R.typicalHalfwidthCharacterWidth&&we.enabled&&we.side==="right"?i+K.verticalScrollbarWidth:i}{let K=a.get(85)*R.typicalHalfwidthCharacterWidth,we=this._linesLayout.getWhitespaceMinWidth();return Math.max(i+K,we)}}setMaxLineWidth(i){let a=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ts(a.width,this._computeContentWidth(i),a.height,a.contentHeight)),this._updateHeight()}saveState(){let i=this._scrollable.getFutureScrollPosition(),a=i.scrollTop,_=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(a);return{scrollTop:a,scrollTopWithoutViewZones:a-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(_),scrollLeft:i.scrollLeft}}changeWhitespace(i){let a=this._linesLayout.changeWhitespace(i);return a&&this.onHeightMaybeChanged(),a}getVerticalOffsetForLineNumber(i){return this._linesLayout.getVerticalOffsetForLineNumber(i)}isAfterLines(i){return this._linesLayout.isAfterLines(i)}getLineNumberAtVerticalOffset(i){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i)}getWhitespaceAtVerticalOffset(i){return this._linesLayout.getWhitespaceAtVerticalOffset(i)}getLinesViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(i.top,i.top+i.height)}getLinesViewportDataAtScrollTop(i){let a=this._scrollable.getScrollDimensions();return i+a.height>a.scrollHeight&&(i=a.scrollHeight-a.height),i<0&&(i=0),this._linesLayout.getLinesViewportData(i,i+a.height)}getWhitespaceViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(i.top,i.top+i.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}setScrollPosition(i,a){a===1?this._scrollable.setScrollPositionNow(i):this._scrollable.setScrollPositionSmooth(i)}deltaScrollNow(i,a){let _=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:_.scrollLeft+i,scrollTop:_.scrollTop+a})}}var Uo=r(30),cs=r(101);class co{constructor(i,a){this.outputLineIndex=i,this.outputOffset=a}}class io{constructor(i,a,_){this.breakOffsets=i,this.breakOffsetsVisibleColumn=a,this.wrappedTextIndentLength=_}static getInputOffsetOfOutputPosition(i,a,_){return a===0?_:i[a-1]+_}static getOutputPositionOfInputOffset(i,a){let _=0,R=i.length-1,K=0,we=0;for(;_<=R;){K=_+(R-_)/2|0;let Pe=i[K];if(we=K>0?i[K-1]:0,a<we)R=K-1;else{if(!(a>=Pe))break;_=K+1}}return new co(K,a-we)}}class _o{constructor(i){this._lines=i}convertViewPositionToModelPosition(i){return this._lines.convertViewPositionToModelPosition(i.lineNumber,i.column)}convertViewRangeToModelRange(i){return this._lines.convertViewRangeToModelRange(i)}validateViewPosition(i,a){return this._lines.validateViewPosition(i.lineNumber,i.column,a)}validateViewRange(i,a){return this._lines.validateViewRange(i,a)}convertModelPositionToViewPosition(i){return this._lines.convertModelPositionToViewPosition(i.lineNumber,i.column)}convertModelRangeToViewRange(i){return this._lines.convertModelRangeToViewRange(i)}modelPositionIsVisible(i){return this._lines.modelPositionIsVisible(i.lineNumber,i.column)}}class wa{constructor(i){this._counts=i,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(i){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,i-1)}_ensureValid(){if(!this._isValid){for(let i=this._validEndIndex+1,a=this._counts.length;i<a;i++){let _=this._counts[i],R=i>0?this._modelToView[i-1]:0;this._modelToView[i]=R+_;for(let K=0;K<_;K++)this._viewToModel[R+K]=i}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}}changeValue(i,a){this._counts[i]!==a&&(this._counts[i]=a,this._invalidate(i))}removeValues(i,a){this._counts.splice(i,a),this._invalidate(i)}insertValues(i,a){this._counts=dr.a(this._counts,i,a),this._invalidate(i)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(i){return this._ensureValid(),this._modelToView[i]}getIndexOf(i){this._ensureValid();let a=this._viewToModel[i],_=a>0?this._modelToView[a-1]:0;return new cs.b(a,i-_)}}class Wr{constructor(i,a,_,R,K,we,Pe,Ve){this.model=i,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=a,this._monospaceLineBreaksComputerFactory=_,this.fontInfo=R,this.tabSize=K,this.wrappingStrategy=we,this.wrappingColumn=Pe,this.wrappingIndent=Ve,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new _o(this)}_constructLines(i,a){this.lines=[],i&&(this.hiddenAreasIds=[]);let _=this.model.getLinesContent(),R=_.length,K=this.createLineBreaksComputer();for(let Pt=0;Pt<R;Pt++)K.addRequest(_[Pt],a?a[Pt]:null);let we=K.finalize(),Pe=[],Ve=this.hiddenAreasIds.map(Pt=>this.model.getDecorationRange(Pt)).sort(Nt.a.compareRangesUsingStarts),Je=1,at=0,bt=-1,Bt=bt+1<Ve.length?at+1:R+2;for(let Pt=0;Pt<R;Pt++){let ni=Pt+1;ni===Bt&&(bt++,Je=Ve[bt].startLineNumber,at=Ve[bt].endLineNumber,Bt=bt+1<Ve.length?at+1:R+2);let Ci=ni>=Je&&ni<=at,Vi=wo(we[Pt],!Ci);Pe[Pt]=Vi.getViewLineCount(),this.lines[Pt]=Vi}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new wa(Pe)}getHiddenAreas(){return this.hiddenAreasIds.map(i=>this.model.getDecorationRange(i))}_reduceRanges(i){if(i.length===0)return[];let a=i.map(we=>this.model.validateRange(we)).sort(Nt.a.compareRangesUsingStarts),_=[],R=a[0].startLineNumber,K=a[0].endLineNumber;for(let we=1,Pe=a.length;we<Pe;we++){let Ve=a[we];Ve.startLineNumber>K+1?(_.push(new Nt.a(R,1,K,1)),R=Ve.startLineNumber,K=Ve.endLineNumber):Ve.endLineNumber>K&&(K=Ve.endLineNumber)}return _.push(new Nt.a(R,1,K,1)),_}setHiddenAreas(i){let a=this._reduceRanges(i),_=this.hiddenAreasIds.map(bt=>this.model.getDecorationRange(bt)).sort(Nt.a.compareRangesUsingStarts);if(a.length===_.length){let bt=!1;for(let Bt=0;Bt<a.length;Bt++)if(!a[Bt].equalsRange(_[Bt])){bt=!0;break}if(!bt)return!1}let R=[];for(let bt of a)R.push({range:bt,options:Uo.a.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,R);let K=a,we=1,Pe=0,Ve=-1,Je=Ve+1<K.length?Pe+1:this.lines.length+2,at=!1;for(let bt=0;bt<this.lines.length;bt++){let Bt=bt+1;Bt===Je&&(Ve++,we=K[Ve].startLineNumber,Pe=K[Ve].endLineNumber,Je=Ve+1<K.length?Pe+1:this.lines.length+2);let Pt=!1;if(Bt>=we&&Bt<=Pe?this.lines[bt].isVisible()&&(this.lines[bt]=this.lines[bt].setVisible(!1),Pt=!0):(at=!0,this.lines[bt].isVisible()||(this.lines[bt]=this.lines[bt].setVisible(!0),Pt=!0)),Pt){let ni=this.lines[bt].getViewLineCount();this.prefixSumComputer.changeValue(bt,ni)}}return at||this.setHiddenAreas([]),!0}modelPositionIsVisible(i,a){return!(i<1||i>this.lines.length)&&this.lines[i-1].isVisible()}setTabSize(i){return this.tabSize!==i&&(this.tabSize=i,this._constructLines(!1,null),!0)}setWrappingSettings(i,a,_,R){let K=this.fontInfo.equals(i),we=this.wrappingStrategy===a,Pe=this.wrappingColumn===_,Ve=this.wrappingIndent===R;if(K&&we&&Pe&&Ve)return!1;let Je=K&&we&&!Pe&&Ve;this.fontInfo=i,this.wrappingStrategy=a,this.wrappingColumn=_,this.wrappingIndent=R;let at=null;if(Je){at=[];for(let bt=0,Bt=this.lines.length;bt<Bt;bt++)at[bt]=this.lines[bt].getLineBreakData()}return this._constructLines(!1,at),!0}createLineBreaksComputer(){return(this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(i,a,_){if(i<=this._validModelVersionId)return null;let R=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,K=this.prefixSumComputer.getAccumulatedValue(_-1);return this.lines.splice(a-1,_-a+1),this.prefixSumComputer.removeValues(a-1,_-a+1),new xr(R,K)}onModelLinesInserted(i,a,_,R){if(i<=this._validModelVersionId)return null;let K=this.getHiddenAreas(),we=!1,Pe=new At.a(a,1);for(let Bt of K)if(Bt.containsPosition(Pe)){we=!0;break}let Ve=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,Je=0,at=[],bt=[];for(let Bt=0,Pt=R.length;Bt<Pt;Bt++){let ni=wo(R[Bt],!we);at.push(ni);let Ci=ni.getViewLineCount();Je+=Ci,bt[Bt]=Ci}return this.lines=this.lines.slice(0,a-1).concat(at).concat(this.lines.slice(a-1)),this.prefixSumComputer.insertValues(a-1,bt),new Sr(Ve,Ve+Je-1)}onModelLineChanged(i,a,_){if(i<=this._validModelVersionId)return[!1,null,null,null];let R=a-1,K=this.lines[R].getViewLineCount(),we=wo(_,this.lines[R].isVisible());this.lines[R]=we;let Pe=this.lines[R].getViewLineCount(),Ve=!1,Je=0,at=-1,bt=0,Bt=-1,Pt=0,ni=-1;return K>Pe?(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+Pe-1,Pt=at+1,ni=Pt+(K-Pe)-1,Ve=!0):K<Pe?(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+K-1,bt=at+1,Bt=bt+(Pe-K)-1,Ve=!0):(Je=a===1?1:this.prefixSumComputer.getAccumulatedValue(a-2)+1,at=Je+Pe-1),this.prefixSumComputer.changeValue(R,Pe),[Ve,Je<=at?new Rr(Je,at):null,bt<=Bt?new Sr(bt,Bt):null,Pt<=ni?new xr(Pt,ni):null]}acceptVersionId(i){this._validModelVersionId=i,this.lines.length!==1||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(i){if(i<1)return 1;let a=this.getViewLineCount();return i>a?a:0|i}getActiveIndentGuide(i,a,_){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a),_=this._toValidViewLineNumber(_);let R=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),K=this.convertViewPositionToModelPosition(a,this.getViewLineMinColumn(a)),we=this.convertViewPositionToModelPosition(_,this.getViewLineMinColumn(_)),Pe=this.model.getActiveIndentGuide(R.lineNumber,K.lineNumber,we.lineNumber),Ve=this.convertModelPositionToViewPosition(Pe.startLineNumber,1),Je=this.convertModelPositionToViewPosition(Pe.endLineNumber,this.model.getLineMaxColumn(Pe.endLineNumber));return{startLineNumber:Ve.lineNumber,endLineNumber:Je.lineNumber,indent:Pe.indent}}getViewLinesIndentGuides(i,a){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a);let _=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),R=this.convertViewPositionToModelPosition(a,this.getViewLineMaxColumn(a)),K=[],we=[],Pe=[],Ve=_.lineNumber-1,Je=R.lineNumber-1,at=null;for(let ni=Ve;ni<=Je;ni++){let Ci=this.lines[ni];if(Ci.isVisible()){let Vi=Ci.getViewLineNumberOfModelPosition(0,ni===Ve?_.column:1),Mi=Ci.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ni+1)),zi=Mi-Vi+1,Yi=0;zi>1&&Ci.getViewLineMinColumn(this.model,ni+1,Mi)===1&&(Yi=Vi===0?1:2),we.push(zi),Pe.push(Yi),at===null&&(at=new At.a(ni+1,0))}else at!==null&&(K=K.concat(this.model.getLinesIndentGuides(at.lineNumber,ni)),at=null)}at!==null&&(K=K.concat(this.model.getLinesIndentGuides(at.lineNumber,R.lineNumber)),at=null);let bt=a-i+1,Bt=new Array(bt),Pt=0;for(let ni=0,Ci=K.length;ni<Ci;ni++){let Vi,Mi=K[ni],zi=Math.min(bt-Pt,we[ni]),Yi=Pe[ni];Vi=Yi===2?0:Yi===1?1:zi;for(let Gi=0;Gi<zi;Gi++)Gi===Vi&&(Mi=0),Bt[Pt++]=Mi}return Bt}getViewLineContent(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineContent(this.model,_+1,R)}getViewLineLength(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineLength(this.model,_+1,R)}getViewLineMinColumn(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineMinColumn(this.model,_+1,R)}getViewLineMaxColumn(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineMaxColumn(this.model,_+1,R)}getViewLineData(i){i=this._toValidViewLineNumber(i);let a=this.prefixSumComputer.getIndexOf(i-1),_=a.index,R=a.remainder;return this.lines[_].getViewLineData(this.model,_+1,R)}getViewLinesData(i,a,_){i=this._toValidViewLineNumber(i),a=this._toValidViewLineNumber(a);let R=this.prefixSumComputer.getIndexOf(i-1),K=i,we=R.index,Pe=R.remainder,Ve=[];for(let Je=we,at=this.model.getLineCount();Je<at;Je++){let bt=this.lines[Je];if(!bt.isVisible())continue;let Bt=Je===we?Pe:0,Pt=bt.getViewLineCount()-Bt,ni=!1;K+Pt>a&&(ni=!0,Pt=a-K+1);let Ci=Bt+Pt;if(bt.getViewLinesData(this.model,Je+1,Bt,Ci,K-i,_,Ve),K+=Pt,ni)break}return Ve}validateViewPosition(i,a,_){i=this._toValidViewLineNumber(i);let R=this.prefixSumComputer.getIndexOf(i-1),K=R.index,we=R.remainder,Pe=this.lines[K],Ve=Pe.getViewLineMinColumn(this.model,K+1,we),Je=Pe.getViewLineMaxColumn(this.model,K+1,we);a<Ve&&(a=Ve),a>Je&&(a=Je);let at=Pe.getModelColumnOfViewPosition(we,a);return this.model.validatePosition(new At.a(K+1,at)).equals(_)?new At.a(i,a):this.convertModelPositionToViewPosition(_.lineNumber,_.column)}validateViewRange(i,a){let _=this.validateViewPosition(i.startLineNumber,i.startColumn,a.getStartPosition()),R=this.validateViewPosition(i.endLineNumber,i.endColumn,a.getEndPosition());return new Nt.a(_.lineNumber,_.column,R.lineNumber,R.column)}convertViewPositionToModelPosition(i,a){i=this._toValidViewLineNumber(i);let _=this.prefixSumComputer.getIndexOf(i-1),R=_.index,K=_.remainder,we=this.lines[R].getModelColumnOfViewPosition(K,a);return this.model.validatePosition(new At.a(R+1,we))}convertViewRangeToModelRange(i){let a=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),_=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);return new Nt.a(a.lineNumber,a.column,_.lineNumber,_.column)}convertModelPositionToViewPosition(i,a){let _=this.model.validatePosition(new At.a(i,a)),R=_.lineNumber,K=_.column,we=R-1,Pe=!1;for(;we>0&&!this.lines[we].isVisible();)we--,Pe=!0;if(we===0&&!this.lines[we].isVisible())return new At.a(1,1);let Ve=1+(we===0?0:this.prefixSumComputer.getAccumulatedValue(we-1)),Je;return Je=Pe?this.lines[we].getViewPositionOfModelPosition(Ve,this.model.getLineMaxColumn(we+1)):this.lines[R-1].getViewPositionOfModelPosition(Ve,K),Je}convertModelRangeToViewRange(i){let a=this.convertModelPositionToViewPosition(i.startLineNumber,i.startColumn),_=this.convertModelPositionToViewPosition(i.endLineNumber,i.endColumn);return i.startLineNumber===i.endLineNumber&&a.lineNumber!==_.lineNumber&&_.column===this.getViewLineMinColumn(_.lineNumber)?new Nt.a(a.lineNumber,a.column,_.lineNumber-1,this.getViewLineMaxColumn(_.lineNumber-1)):new Nt.a(a.lineNumber,a.column,_.lineNumber,_.column)}_getViewLineNumberForModelPosition(i,a){let _=i-1;if(this.lines[_].isVisible()){let K=1+(_===0?0:this.prefixSumComputer.getAccumulatedValue(_-1));return this.lines[_].getViewLineNumberOfModelPosition(K,a)}for(;_>0&&!this.lines[_].isVisible();)_--;if(_===0&&!this.lines[_].isVisible())return 1;let R=1+(_===0?0:this.prefixSumComputer.getAccumulatedValue(_-1));return this.lines[_].getViewLineNumberOfModelPosition(R,this.model.getLineMaxColumn(_+1))}getAllOverviewRulerDecorations(i,a,_){let R=this.model.getOverviewRulerDecorations(i,a),K=new no;for(let we of R){let Pe=we.options.overviewRuler,Ve=Pe?Pe.position:0;if(Ve===0)continue;let Je=Pe.getColor(_),at=this._getViewLineNumberForModelPosition(we.range.startLineNumber,we.range.startColumn),bt=this._getViewLineNumberForModelPosition(we.range.endLineNumber,we.range.endColumn);K.accept(Je,at,bt,Ve)}return K.result}getDecorationsInRange(i,a,_){let R=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),K=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);if(K.lineNumber-R.lineNumber<=i.endLineNumber-i.startLineNumber)return this.model.getDecorationsInRange(new Nt.a(R.lineNumber,1,K.lineNumber,K.column),a,_);let we=[],Pe=R.lineNumber-1,Ve=K.lineNumber-1,Je=null;for(let Pt=Pe;Pt<=Ve;Pt++)if(this.lines[Pt].isVisible())Je===null&&(Je=new At.a(Pt+1,Pt===Pe?R.column:1));else if(Je!==null){let ni=this.model.getLineMaxColumn(Pt);we=we.concat(this.model.getDecorationsInRange(new Nt.a(Je.lineNumber,Je.column,Pt,ni),a,_)),Je=null}Je!==null&&(we=we.concat(this.model.getDecorationsInRange(new Nt.a(Je.lineNumber,Je.column,K.lineNumber,K.column),a,_)),Je=null),we.sort((Pt,ni)=>{let Ci=Nt.a.compareRangesUsingStarts(Pt.range,ni.range);return Ci===0?Pt.id<ni.id?-1:Pt.id>ni.id?1:0:Ci});let at=[],bt=0,Bt=null;for(let Pt of we){let ni=Pt.id;Bt!==ni&&(Bt=ni,at[bt++]=Pt)}return at}}class Cs{constructor(){}isVisible(){return!0}setVisible(i){return i?this:Ho.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(i,a,_){return i.getLineContent(a)}getViewLineLength(i,a,_){return i.getLineLength(a)}getViewLineMinColumn(i,a,_){return i.getLineMinColumn(a)}getViewLineMaxColumn(i,a,_){return i.getLineMaxColumn(a)}getViewLineData(i,a,_){let R=i.getLineTokens(a),K=R.getLineContent();return new Ge.c(K,!1,1,K.length+1,0,R.inflate())}getViewLinesData(i,a,_,R,K,we,Pe){we[K]?Pe[K]=this.getViewLineData(i,a,0):Pe[K]=null}getModelColumnOfViewPosition(i,a){return a}getViewPositionOfModelPosition(i,a){return new At.a(i,a)}getViewLineNumberOfModelPosition(i,a){return i}}Cs.INSTANCE=new Cs;class Ho{constructor(){}isVisible(){return!1}setVisible(i){return i?Cs.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(i,a,_){throw new Error("Not supported")}getViewLineLength(i,a,_){throw new Error("Not supported")}getViewLineMinColumn(i,a,_){throw new Error("Not supported")}getViewLineMaxColumn(i,a,_){throw new Error("Not supported")}getViewLineData(i,a,_){throw new Error("Not supported")}getViewLinesData(i,a,_,R,K,we,Pe){throw new Error("Not supported")}getModelColumnOfViewPosition(i,a){throw new Error("Not supported")}getViewPositionOfModelPosition(i,a){throw new Error("Not supported")}getViewLineNumberOfModelPosition(i,a){throw new Error("Not supported")}}Ho.INSTANCE=new Ho;class ya{constructor(i,a){this._lineBreakData=i,this._isVisible=a}isVisible(){return this._isVisible}setVisible(i){return this._isVisible=i,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(i){return io.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i,0)}getInputEndOffsetOfOutputLineIndex(i,a,_){return _+1===this._lineBreakData.breakOffsets.length?i.getLineMaxColumn(a)-1:io.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,_+1,0)}getViewLineContent(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_),we=i.getValueInRange({startLineNumber:a,startColumn:R+1,endLineNumber:a,endColumn:K+1});return _>0&&(we=ds(this._lineBreakData.wrappedTextIndentLength)+we),we}getViewLineLength(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_)-R;return _>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K}getViewLineMinColumn(i,a,_){if(!this._isVisible)throw new Error("Not supported");return _>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(i,a,_){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(i,a,_).length+1}getViewLineData(i,a,_){if(!this._isVisible)throw new Error("Not supported");let R=this.getInputStartOffsetOfOutputLineIndex(_),K=this.getInputEndOffsetOfOutputLineIndex(i,a,_),we=i.getValueInRange({startLineNumber:a,startColumn:R+1,endLineNumber:a,endColumn:K+1});_>0&&(we=ds(this._lineBreakData.wrappedTextIndentLength)+we);let Pe=_>0?this._lineBreakData.wrappedTextIndentLength+1:1,Ve=we.length+1,Je=_+1<this.getViewLineCount(),at=0;_>0&&(at=this._lineBreakData.wrappedTextIndentLength);let bt=i.getLineTokens(a),Bt=_===0?0:this._lineBreakData.breakOffsetsVisibleColumn[_-1];return new Ge.c(we,Je,Pe,Ve,Bt,bt.sliceAndInflate(R,K,at))}getViewLinesData(i,a,_,R,K,we,Pe){if(!this._isVisible)throw new Error("Not supported");for(let Ve=_;Ve<R;Ve++){let Je=K+Ve-_;we[Je]?Pe[Je]=this.getViewLineData(i,a,Ve):Pe[Je]=null}}getModelColumnOfViewPosition(i,a){if(!this._isVisible)throw new Error("Not supported");let _=a-1;return i>0&&(_<this._lineBreakData.wrappedTextIndentLength?_=0:_-=this._lineBreakData.wrappedTextIndentLength),io.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i,_)+1}getViewPositionOfModelPosition(i,a){if(!this._isVisible)throw new Error("Not supported");let _=io.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,a-1),R=_.outputLineIndex,K=_.outputOffset+1;return R>0&&(K+=this._lineBreakData.wrappedTextIndentLength),new At.a(i+R,K)}getViewLineNumberOfModelPosition(i,a){if(!this._isVisible)throw new Error("Not supported");return i+io.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,a-1).outputLineIndex}}let vo=[""];function ds(Zt){if(Zt>=vo.length)for(let i=1;i<=Zt;i++)vo[i]=ra(i);return vo[Zt]}function ra(Zt){return new Array(Zt+1).join(" ")}function wo(Zt,i){return Zt===null?i?Cs.INSTANCE:Ho.INSTANCE:new ya(Zt,i)}class ns{constructor(i){this._lines=i}_validPosition(i){return this._lines.model.validatePosition(i)}_validRange(i){return this._lines.model.validateRange(i)}convertViewPositionToModelPosition(i){return this._validPosition(i)}convertViewRangeToModelRange(i){return this._validRange(i)}validateViewPosition(i,a){return this._validPosition(a)}validateViewRange(i,a){return this._validRange(a)}convertModelPositionToViewPosition(i){return this._validPosition(i)}convertModelRangeToViewRange(i){return this._validRange(i)}modelPositionIsVisible(i){let a=this._lines.model.getLineCount();return!(i.lineNumber<1||i.lineNumber>a)}}class Ui{constructor(i){this.model=i}dispose(){}createCoordinatesConverter(){return new ns(this)}getHiddenAreas(){return[]}setHiddenAreas(i){return!1}setTabSize(i){return!1}setWrappingSettings(i,a,_,R){return!1}createLineBreaksComputer(){let i=[];return{addRequest:(a,_)=>{i.push(null)},finalize:()=>i}}onModelFlushed(){}onModelLinesDeleted(i,a,_){return new xr(a,_)}onModelLinesInserted(i,a,_,R){return new Sr(a,_)}onModelLineChanged(i,a,_){return[!1,new Rr(a,a),null,null]}acceptVersionId(i){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(i,a,_){return{startLineNumber:i,endLineNumber:i,indent:0}}getViewLinesIndentGuides(i,a){let _=a-i+1,R=new Array(_);for(let K=0;K<_;K++)R[K]=0;return R}getViewLineContent(i){return this.model.getLineContent(i)}getViewLineLength(i){return this.model.getLineLength(i)}getViewLineMinColumn(i){return this.model.getLineMinColumn(i)}getViewLineMaxColumn(i){return this.model.getLineMaxColumn(i)}getViewLineData(i){let a=this.model.getLineTokens(i),_=a.getLineContent();return new Ge.c(_,!1,1,_.length+1,0,a.inflate())}getViewLinesData(i,a,_){let R=this.model.getLineCount();i=Math.min(Math.max(1,i),R),a=Math.min(Math.max(1,a),R);let K=[];for(let we=i;we<=a;we++){let Pe=we-i;_[Pe]||(K[Pe]=null),K[Pe]=this.getViewLineData(we)}return K}getAllOverviewRulerDecorations(i,a,_){let R=this.model.getOverviewRulerDecorations(i,a),K=new no;for(let we of R){let Pe=we.options.overviewRuler,Ve=Pe?Pe.position:0;if(Ve===0)continue;let Je=Pe.getColor(_),at=we.range.startLineNumber,bt=we.range.endLineNumber;K.accept(Je,at,bt,Ve)}return K.result}getDecorationsInRange(i,a,_){return this.model.getDecorationsInRange(i,a,_)}}class no{constructor(){this.result=Object.create(null)}accept(i,a,_,R){let K=this.result[i];if(K){let we=K[K.length-3],Pe=K[K.length-1];if(we===R&&Pe+1>=a)return void(_>Pe&&(K[K.length-1]=_));K.push(R,a,_)}else this.result[i]=[R,a,_]}}class xs{constructor(i,a,_,R,K){this.editorId=i,this.model=a,this.configuration=_,this._linesCollection=R,this._coordinatesConverter=K,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(i){let a=i.id,_=this._decorationsCache[a];if(!_){let R=i.range,K=i.options,we;if(K.isWholeLine){let Pe=this._coordinatesConverter.convertModelPositionToViewPosition(new At.a(R.startLineNumber,1)),Ve=this._coordinatesConverter.convertModelPositionToViewPosition(new At.a(R.endLineNumber,this.model.getLineMaxColumn(R.endLineNumber)));we=new Nt.a(Pe.lineNumber,Pe.column,Ve.lineNumber,Ve.column)}else we=this._coordinatesConverter.convertModelRangeToViewRange(R);_=new Ge.e(we,K),this._decorationsCache[a]=_}return _}getDecorationsViewportData(i){let a=this._cachedModelDecorationsResolver!==null;return a=a&&i.equalsRange(this._cachedModelDecorationsResolverViewRange),a||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(i),this._cachedModelDecorationsResolverViewRange=i),this._cachedModelDecorationsResolver}_getDecorationsViewportData(i){let a=this._linesCollection.getDecorationsInRange(i,this.editorId,Object(fe.l)(this.configuration.options)),_=i.startLineNumber,R=i.endLineNumber,K=[],we=0,Pe=[];for(let Ve=_;Ve<=R;Ve++)Pe[Ve-_]=[];for(let Ve=0,Je=a.length;Ve<Je;Ve++){let at=a[Ve],bt=at.options,Bt=this._getOrCreateViewModelDecoration(at),Pt=Bt.range;if(K[we++]=Bt,bt.inlineClassName){let ni=new Ge.a(Pt,bt.inlineClassName,bt.inlineClassNameAffectsLetterSpacing?3:0),Ci=Math.max(_,Pt.startLineNumber),Vi=Math.min(R,Pt.endLineNumber);for(let Mi=Ci;Mi<=Vi;Mi++)Pe[Mi-_].push(ni)}if(bt.beforeContentClassName&&_<=Pt.startLineNumber&&Pt.startLineNumber<=R){let ni=new Ge.a(new Nt.a(Pt.startLineNumber,Pt.startColumn,Pt.startLineNumber,Pt.startColumn),bt.beforeContentClassName,1);Pe[Pt.startLineNumber-_].push(ni)}if(bt.afterContentClassName&&_<=Pt.endLineNumber&&Pt.endLineNumber<=R){let ni=new Ge.a(new Nt.a(Pt.endLineNumber,Pt.endColumn,Pt.endLineNumber,Pt.endColumn),bt.afterContentClassName,2);Pe[Pt.endLineNumber-_].push(ni)}}return{decorations:K,inlineDecorations:Pe}}}class yo extends E.a{constructor(i,a,_,R,K,we){if(super(),this._editorId=i,this._configuration=a,this.model=_,this._eventDispatcher=new ls,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new l.d(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new l.d(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new Ui(this.model);else{let Pe=this._configuration.options,Ve=Pe.get(36),Je=Pe.get(112),at=Pe.get(118),bt=Pe.get(111);this._lines=new Wr(this.model,R,K,Ve,this.model.getOptions().tabSize,Je,at.wrappingColumn,bt)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Dr(_,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new is(this._configuration,this.getLineCount(),we)),this._register(this.viewLayout.onDidScroll(Pe=>{Pe.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Tn(Pe)),this._eventDispatcher.emitOutgoingEvent(new kr(Pe.oldScrollWidth,Pe.oldScrollLeft,Pe.oldScrollHeight,Pe.oldScrollTop,Pe.scrollWidth,Pe.scrollLeft,Pe.scrollHeight,Pe.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(Pe=>{this._eventDispatcher.emitOutgoingEvent(Pe)})),this._decorations=new xs(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(Pe=>{try{let Ve=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(Ve,Pe)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(ae.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new go)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}addViewEventHandler(i){this._eventDispatcher.addViewEventHandler(i)}removeViewEventHandler(i){this._eventDispatcher.removeViewEventHandler(i)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){let i=this.viewLayout.getLinesViewportData(),a=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i.startLineNumber,1)),_=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i.endLineNumber,1));this.model.tokenizeViewport(a.lineNumber,_.lineNumber)}setHasFocus(i){this._hasFocus=i,this._cursor.setHasFocus(i),this._eventDispatcher.emitSingleViewEvent(new Rn(i)),this._eventDispatcher.emitOutgoingEvent(new lo(!i,i))}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Lr)}_onConfigurationChanged(i,a){let _=null;if(this._viewportStartLine!==-1){let at=new At.a(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));_=this.coordinatesConverter.convertViewPositionToModelPosition(at)}let R=!1,K=this._configuration.options,we=K.get(36),Pe=K.get(112),Ve=K.get(118),Je=K.get(111);if(this._lines.setWrappingSettings(we,Pe,Ve.wrappingColumn,Je)&&(i.emitViewEvent(new In),i.emitViewEvent(new _r),i.emitViewEvent(new Ar(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(R=!0),this._updateConfigurationViewLineCount.schedule()),a.hasChanged(72)&&(this._decorations.reset(),i.emitViewEvent(new Ar(null))),i.emitViewEvent(new Yn(a)),this.viewLayout.onConfigurationChanged(a),R&&_){let at=this.coordinatesConverter.convertModelPositionToViewPosition(_),bt=this.viewLayout.getVerticalOffsetForLineNumber(at.lineNumber);this.viewLayout.setScrollPosition({scrollTop:bt+this._viewportStartLineDelta},1)}_i.b.shouldRecreate(a)&&(this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeRawContentFast(i=>{try{let a=this._eventDispatcher.beginEmitViewEvents(),_=!1,R=!1,K=i.changes,we=i.versionId,Pe=this._lines.createLineBreaksComputer();for(let at of K)switch(at.changeType){case 4:for(let bt of at.detail)Pe.addRequest(bt,null);break;case 2:Pe.addRequest(at.detail,null)}let Ve=Pe.finalize(),Je=0;for(let at of K)switch(at.changeType){case 1:this._lines.onModelFlushed(),a.emitViewEvent(new In),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),_=!0;break;case 3:{let bt=this._lines.onModelLinesDeleted(we,at.fromLineNumber,at.toLineNumber);bt!==null&&(a.emitViewEvent(bt),this.viewLayout.onLinesDeleted(bt.fromLineNumber,bt.toLineNumber)),_=!0;break}case 4:{let bt=Ve.slice(Je,Je+at.detail.length);Je+=at.detail.length;let Bt=this._lines.onModelLinesInserted(we,at.fromLineNumber,at.toLineNumber,bt);Bt!==null&&(a.emitViewEvent(Bt),this.viewLayout.onLinesInserted(Bt.fromLineNumber,Bt.toLineNumber)),_=!0;break}case 2:{let bt=Ve[Je];Je++;let[Bt,Pt,ni,Ci]=this._lines.onModelLineChanged(we,at.lineNumber,bt);R=Bt,Pt&&a.emitViewEvent(Pt),ni&&(a.emitViewEvent(ni),this.viewLayout.onLinesInserted(ni.fromLineNumber,ni.toLineNumber)),Ci&&(a.emitViewEvent(Ci),this.viewLayout.onLinesDeleted(Ci.fromLineNumber,Ci.toLineNumber));break}}this._lines.acceptVersionId(we),this.viewLayout.onHeightMaybeChanged(),!_&&R&&(a.emitViewEvent(new _r),a.emitViewEvent(new Ar(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){let a=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(a){let _=this.coordinatesConverter.convertModelPositionToViewPosition(a.getStartPosition()),R=this.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber);this.viewLayout.setScrollPosition({scrollTop:R+this._viewportStartLineDelta},1)}}try{let a=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(a,i)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(i=>{let a=[];for(let _=0,R=i.ranges.length;_<R;_++){let K=i.ranges[_],we=this.coordinatesConverter.convertModelPositionToViewPosition(new At.a(K.fromLineNumber,1)).lineNumber,Pe=this.coordinatesConverter.convertModelPositionToViewPosition(new At.a(K.toLineNumber,this.model.getLineMaxColumn(K.toLineNumber))).lineNumber;a[_]={fromLineNumber:we,toLineNumber:Pe}}this._eventDispatcher.emitSingleViewEvent(new Ur(a)),i.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(i=>{this._eventDispatcher.emitSingleViewEvent(new Qn),this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(i=>{this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(i=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{let a=this._eventDispatcher.beginEmitViewEvents();a.emitViewEvent(new In),a.emitViewEvent(new _r),a.emitViewEvent(new Ar(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _i.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(i=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Ar(i))}))}setHiddenAreas(i){try{let a=this._eventDispatcher.beginEmitViewEvents();this._lines.setHiddenAreas(i)&&(a.emitViewEvent(new In),a.emitViewEvent(new _r),a.emitViewEvent(new Ar(null)),this._cursor.onLineMappingChanged(a),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){let i=this._configuration.options.get(117),a=this._configuration.options.get(51),_=Math.max(20,Math.round(i.height/a)),R=this.viewLayout.getLinesViewportData(),K=Math.max(1,R.completelyVisibleStartLineNumber-_),we=Math.min(this.getLineCount(),R.completelyVisibleEndLineNumber+_);return this._toModelVisibleRanges(new Nt.a(K,this.getLineMinColumn(K),we,this.getLineMaxColumn(we)))}getVisibleRanges(){let i=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(i)}_toModelVisibleRanges(i){let a=this.coordinatesConverter.convertViewRangeToModelRange(i),_=this._lines.getHiddenAreas();if(_.length===0)return[a];let R=[],K=0,we=a.startLineNumber,Pe=a.startColumn,Ve=a.endLineNumber,Je=a.endColumn;for(let at=0,bt=_.length;at<bt;at++){let Bt=_[at].startLineNumber,Pt=_[at].endLineNumber;Pt<we||Bt>Ve||(we<Bt&&(R[K++]=new Nt.a(we,Pe,Bt-1,this.model.getLineMaxColumn(Bt-1))),we=Pt+1,Pe=1)}return(we<Ve||we===Ve&&Pe<Je)&&(R[K++]=new Nt.a(we,Pe,Ve,Je)),R}getCompletelyVisibleViewRange(){let i=this.viewLayout.getLinesViewportData(),a=i.completelyVisibleStartLineNumber,_=i.completelyVisibleEndLineNumber;return new Nt.a(a,this.getLineMinColumn(a),_,this.getLineMaxColumn(_))}getCompletelyVisibleViewRangeAtScrollTop(i){let a=this.viewLayout.getLinesViewportDataAtScrollTop(i),_=a.completelyVisibleStartLineNumber,R=a.completelyVisibleEndLineNumber;return new Nt.a(_,this.getLineMinColumn(_),R,this.getLineMaxColumn(R))}saveState(){let i=this.viewLayout.saveState(),a=i.scrollTop,_=this.viewLayout.getLineNumberAtVerticalOffset(a),R=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(_,this.getLineMinColumn(_))),K=this.viewLayout.getVerticalOffsetForLineNumber(_)-a;return{scrollLeft:i.scrollLeft,firstPosition:R,firstPositionDeltaTop:K}}reduceRestoreState(i){if(i.firstPosition===void 0)return this._reduceRestoreStateCompatibility(i);let a=this.model.validatePosition(i.firstPosition),_=this.coordinatesConverter.convertModelPositionToViewPosition(a),R=this.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber)-i.firstPositionDeltaTop;return{scrollLeft:i.scrollLeft,scrollTop:R}}_reduceRestoreStateCompatibility(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(i,a,_){this._viewportStartLine=i;let R=this.coordinatesConverter.convertViewPositionToModelPosition(new At.a(i,this.getLineMinColumn(i)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new Nt.a(R.lineNumber,R.column,R.lineNumber,R.column),1);let K=this.viewLayout.getVerticalOffsetForLineNumber(i),we=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=we-K}getActiveIndentGuide(i,a,_){return this._lines.getActiveIndentGuide(i,a,_)}getLinesIndentGuides(i,a){return this._lines.getViewLinesIndentGuides(i,a)}getLineContent(i){return this._lines.getViewLineContent(i)}getLineLength(i){return this._lines.getViewLineLength(i)}getLineMinColumn(i){return this._lines.getViewLineMinColumn(i)}getLineMaxColumn(i){return this._lines.getViewLineMaxColumn(i)}getLineFirstNonWhitespaceColumn(i){let a=_t.w(this.getLineContent(i));return a===-1?0:a+1}getLineLastNonWhitespaceColumn(i){let a=_t.J(this.getLineContent(i));return a===-1?0:a+2}getDecorationsInViewport(i){return this._decorations.getDecorationsViewportData(i).decorations}getViewLineRenderingData(i,a){let _=this.model.mightContainRTL(),R=this.model.mightContainNonBasicASCII(),K=this.getTabSize(),we=this._lines.getViewLineData(a),Pe=this._decorations.getDecorationsViewportData(i).inlineDecorations[a-i.startLineNumber];return new Ge.d(we.minColumn,we.maxColumn,we.content,we.continuesWithWrappedLine,_,R,we.tokens,Pe,K,we.startVisibleColumn)}getViewLineData(i){return this._lines.getViewLineData(i)}getMinimapLinesRenderingData(i,a,_){let R=this._lines.getViewLinesData(i,a,_);return new Ge.b(this.getTabSize(),R)}getAllOverviewRulerDecorations(i){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object(fe.l)(this._configuration.options),i)}invalidateOverviewRulerColorCache(){let i=this.model.getOverviewRulerDecorations();for(let a of i){let _=a.options.overviewRuler;_&&_.invalidateCachedColor()}}invalidateMinimapColorCache(){let i=this.model.getAllDecorations();for(let a of i){let _=a.options.minimap;_&&_.invalidateCachedColor()}}getValueInRange(i,a){let _=this.coordinatesConverter.convertViewRangeToModelRange(i);return this.model.getValueInRange(_,a)}getModelLineMaxColumn(i){return this.model.getLineMaxColumn(i)}validateModelPosition(i){return this.model.validatePosition(i)}validateModelRange(i){return this.model.validateRange(i)}deduceModelPositionRelativeToViewPosition(i,a,_){let R=this.coordinatesConverter.convertViewPositionToModelPosition(i);this.model.getEOL().length===2&&(a<0?a-=_:a+=_);let K=this.model.getOffsetAt(R)+a;return this.model.getPositionAt(K)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(i,a,_){let R=_?`\r +`:this.model.getEOL();(i=i.slice(0)).sort(Nt.a.compareRangesUsingStarts);let K=!1,we=!1;for(let Ve of i)Ve.isEmpty()?K=!0:we=!0;if(!we){if(!a)return"";let Ve=i.map(at=>at.startLineNumber),Je="";for(let at=0;at<Ve.length;at++)at>0&&Ve[at-1]===Ve[at]||(Je+=this.model.getLineContent(Ve[at])+R);return Je}if(K&&a){let Ve=[],Je=0;for(let at of i){let bt=at.startLineNumber;at.isEmpty()?bt!==Je&&Ve.push(this.model.getLineContent(bt)):Ve.push(this.model.getValueInRange(at,_?2:0)),Je=bt}return Ve.length===1?Ve[0]:Ve}let Pe=[];for(let Ve of i)Ve.isEmpty()||Pe.push(this.model.getValueInRange(Ve,_?2:0));return Pe.length===1?Pe[0]:Pe}getRichTextToCopy(i,a){let _=this.model.getLanguageIdentifier();if(_.id===1||i.length!==1)return null;let R=i[0];if(R.isEmpty()){if(!a)return null;let Ve=R.startLineNumber;R=new Nt.a(Ve,this.model.getLineMinColumn(Ve),Ve,this.model.getLineMaxColumn(Ve))}let K=this._configuration.options.get(36),we=this._getColorMap(),Pe=K.fontFamily===fe.c.fontFamily?K.fontFamily:`'${K.fontFamily}', ${fe.c.fontFamily}`;return{mode:_.language,html:`<div style="color: ${we[1]};background-color: ${we[2]};font-family: ${Pe};font-weight: ${K.fontWeight};font-size: ${K.fontSize}px;line-height: ${K.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(R,we)+"</div>"}}_getHTMLToCopy(i,a){let _=i.startLineNumber,R=i.startColumn,K=i.endLineNumber,we=i.endColumn,Pe=this.getTabSize(),Ve="";for(let Je=_;Je<=K;Je++){let at=this.model.getLineTokens(Je),bt=at.getLineContent(),Bt=Je===_?R-1:0,Pt=Je===K?we-1:bt.length;Ve+=bt===""?"<br>":Object(bo.a)(bt,at.inflate(),a,Bt,Pt,Pe,P.i)}return Ve}_getColorMap(){let i=X.C.getColorMap(),a=["#000000"];if(i)for(let _=1,R=i.length;_<R;_++)a[_]=Ee.a.Format.CSS.formatHex(i[_]);return a}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(i,a,_){this._withViewEventsCollector(R=>this._cursor.setStates(R,i,a,_))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}setCursorColumnSelectData(i){this._cursor.setCursorColumnSelectData(i)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(i){this._cursor.setPrevEditOperationType(i)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(i,a){this._withViewEventsCollector(_=>this._cursor.setSelections(_,i,a))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(i){this._withViewEventsCollector(a=>this._cursor.restoreState(a,i))}_executeCursorEdit(i){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new $r):this._withViewEventsCollector(i)}executeEdits(i,a,_){this._executeCursorEdit(R=>this._cursor.executeEdits(R,i,a,_))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(i=>this._cursor.startComposition(i))}endComposition(i){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(a=>this._cursor.endComposition(a,i))}type(i,a){this._executeCursorEdit(_=>this._cursor.type(_,i,a))}replacePreviousChar(i,a,_){this._executeCursorEdit(R=>this._cursor.replacePreviousChar(R,i,a,_))}paste(i,a,_,R){this._executeCursorEdit(K=>this._cursor.paste(K,i,a,_,R))}cut(i){this._executeCursorEdit(a=>this._cursor.cut(a,i))}executeCommand(i,a){this._executeCursorEdit(_=>this._cursor.executeCommand(_,i,a))}executeCommands(i,a){this._executeCursorEdit(_=>this._cursor.executeCommands(_,i,a))}revealPrimaryCursor(i,a){this._withViewEventsCollector(_=>this._cursor.revealPrimary(_,i,a,0))}revealTopMostCursor(i){let a=this._cursor.getTopMostViewPosition(),_=new Nt.a(a.lineNumber,a.column,a.lineNumber,a.column);this._withViewEventsCollector(R=>R.emitViewEvent(new ur(i,_,null,0,!0,0)))}revealBottomMostCursor(i){let a=this._cursor.getBottomMostViewPosition(),_=new Nt.a(a.lineNumber,a.column,a.lineNumber,a.column);this._withViewEventsCollector(R=>R.emitViewEvent(new ur(i,_,null,0,!0,0)))}revealRange(i,a,_,R,K){this._withViewEventsCollector(we=>we.emitViewEvent(new ur(i,_,null,R,a,K)))}getVerticalOffsetForLineNumber(i){return this.viewLayout.getVerticalOffsetForLineNumber(i)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(i,a){this.viewLayout.setScrollPosition({scrollTop:i},a)}setScrollPosition(i,a){this.viewLayout.setScrollPosition(i,a)}deltaScrollNow(i,a){this.viewLayout.deltaScrollNow(i,a)}changeWhitespace(i){this.viewLayout.changeWhitespace(i)&&(this._eventDispatcher.emitSingleViewEvent(new vr),this._eventDispatcher.emitOutgoingEvent(new Lo))}setMaxLineWidth(i){this.viewLayout.setMaxLineWidth(i)}_withViewEventsCollector(i){try{i(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}}var qo=r(27),Ss=r(10),hs=r(18),us=r(149),Ca=r(49),xa=r(80),ks=r(14),Io=r(76);class $o extends Io.a{constructor(i,a){super(0);for(let _=0;_<i.length;_++)this.set(i.charCodeAt(_),1);for(let _=0;_<a.length;_++)this.set(a.charCodeAt(_),2)}get(i){return i>=0&&i<256?this._asciiMap[i]:i>=12352&&i<=12543||i>=13312&&i<=19903||i>=19968&&i<=40959?3:this._map.get(i)||this._defaultValue}}let Vs=[],Es=[];class ps{constructor(i,a){this.classifier=new $o(i,a)}static create(i){return new ps(i.get(108),i.get(107))}createLineBreaksComputer(i,a,_,R){a|=0,_=+_;let K=[],we=[];return{addRequest:(Pe,Ve)=>{K.push(Pe),we.push(Ve)},finalize:()=>{let Pe=i.typicalFullwidthCharacterWidth/i.typicalHalfwidthCharacterWidth,Ve=[];for(let Je=0,at=K.length;Je<at;Je++){let bt=we[Je];Ve[Je]=bt?Us(this.classifier,bt,K[Je],a,_,Pe,R):Ko(this.classifier,K[Je],a,_,Pe,R)}return Vs.length=0,Es.length=0,Ve}}}}function Us(Zt,i,a,_,R,K,we){if(R===-1)return null;let Pe=a.length;if(Pe<=1)return null;let Ve=i.breakOffsets,Je=i.breakOffsetsVisibleColumn,at=gs(a,_,R,K,we),bt=R-at,Bt=Vs,Pt=Es,ni=0,Ci=0,Vi=0,Mi=R,zi=Ve.length,Yi=0;if(Yi>=0){let Gi=Math.abs(Je[Yi]-Mi);for(;Yi+1<zi;){let wn=Math.abs(Je[Yi+1]-Mi);if(wn>=Gi)break;Gi=wn,Yi++}}for(;Yi<zi;){let Gi=Yi<0?0:Ve[Yi],wn=Yi<0?0:Je[Yi];Ci>Gi&&(Gi=Ci,wn=Vi);let nn=0,Wn=0,An=0,qn=0;if(wn<=Mi){let Un=wn,Tr=Gi===0?0:a.charCodeAt(Gi-1),Or=Gi===0?0:Zt.get(Tr),zr=!0;for(let Br=Gi;Br<Pe;Br++){let qr=Br,Mr=a.charCodeAt(Br),Ro,Pr;if(_t.F(Mr)?(Br++,Ro=0,Pr=2):(Ro=Zt.get(Mr),Pr=rs(Mr,Un,_,K)),qr>Ci&&ms(Tr,Or,Mr,Ro)&&(nn=qr,Wn=Un),Un+=Pr,Un>Mi){qr>Ci?(An=qr,qn=Un-Pr):(An=Br+1,qn=Un),Un-Wn>bt&&(nn=0),zr=!1;break}Tr=Mr,Or=Ro}if(zr){ni>0&&(Bt[ni]=Ve[Ve.length-1],Pt[ni]=Je[Ve.length-1],ni++);break}}if(nn===0){let Un=wn,Tr=a.charCodeAt(Gi),Or=Zt.get(Tr),zr=!1;for(let Br=Gi-1;Br>=Ci;Br--){let qr=Br+1,Mr=a.charCodeAt(Br);if(Mr===9){zr=!0;break}let Ro,Pr;if(_t.G(Mr)?(Br--,Ro=0,Pr=2):(Ro=Zt.get(Mr),Pr=_t.E(Mr)?K:1),Un<=Mi){if(An===0&&(An=qr,qn=Un),Un<=Mi-bt)break;if(ms(Mr,Ro,Tr,Or)){nn=qr,Wn=Un;break}}Un-=Pr,Tr=Mr,Or=Ro}if(nn!==0){let Br=bt-(qn-Wn);if(Br<=_){let qr=a.charCodeAt(An),Mr;Mr=_t.F(qr)?2:rs(qr,qn,_,K),Br-Mr<0&&(nn=0)}}if(zr){Yi--;continue}}for(nn===0&&(nn=An,Wn=qn),Ci=nn,Bt[ni]=nn,Vi=Wn,Pt[ni]=Wn,ni++,Mi=Wn+bt;Yi<0||Yi<zi&&Je[Yi]<Wn;)Yi++;let or=Math.abs(Je[Yi]-Mi);for(;Yi+1<zi;){let Un=Math.abs(Je[Yi+1]-Mi);if(Un>=or)break;or=Un,Yi++}}return ni===0?null:(Bt.length=ni,Pt.length=ni,Vs=i.breakOffsets,Es=i.breakOffsetsVisibleColumn,i.breakOffsets=Bt,i.breakOffsetsVisibleColumn=Pt,i.wrappedTextIndentLength=at,i)}function Ko(Zt,i,a,_,R,K){if(_===-1)return null;let we=i.length;if(we<=1)return null;let Pe=gs(i,a,_,R,K),Ve=_-Pe,Je=[],at=[],bt=0,Bt=0,Pt=0,ni=_,Ci=i.charCodeAt(0),Vi=Zt.get(Ci),Mi=rs(Ci,0,a,R),zi=1;_t.F(Ci)&&(Mi+=1,Ci=i.charCodeAt(1),Vi=Zt.get(Ci),zi++);for(let Yi=zi;Yi<we;Yi++){let Gi=Yi,wn=i.charCodeAt(Yi),nn,Wn;_t.F(wn)?(Yi++,nn=0,Wn=2):(nn=Zt.get(wn),Wn=rs(wn,Mi,a,R)),ms(Ci,Vi,wn,nn)&&(Bt=Gi,Pt=Mi),Mi+=Wn,Mi>ni&&((Bt===0||Mi-Pt>Ve)&&(Bt=Gi,Pt=Mi-Wn),Je[bt]=Bt,at[bt]=Pt,bt++,ni=Pt+Ve,Bt=0),Ci=wn,Vi=nn}return bt===0?null:(Je[bt]=we,at[bt]=Mi,new io(Je,at,Pe))}function rs(Zt,i,a,_){return Zt===9?a-i%a:_t.E(Zt)?_:1}function Hs(Zt,i){return i-Zt%i}function ms(Zt,i,a,_){return a!==32&&(i===2||i===3&&_!==2||_===1||_===3&&i!==1)}function gs(Zt,i,a,_,R){let K=0;if(R!==0){let we=_t.w(Zt);if(we!==-1){for(let Ve=0;Ve<we;Ve++)K+=Zt.charCodeAt(Ve)===9?Hs(K,i):1;let Pe=R===3?2:R===2?1:0;for(let Ve=0;Ve<Pe;Ve++)K+=Hs(K,i);K+_>a&&(K=0)}}return K}class Do{static create(){return new Do}constructor(){}createLineBreaksComputer(i,a,_,R){a|=0,_=+_;let K=[];return{addRequest:(we,Pe)=>{K.push(we)},finalize:()=>function(we,Pe,Ve,Je,at){if(Je===-1){let nn=[];for(let Wn=0,An=we.length;Wn<An;Wn++)nn[Wn]=null;return nn}let bt=Math.round(Je*Pe.typicalHalfwidthCharacterWidth);at!==2&&at!==3||(at=1);let Bt=document.createElement("div");W.a.applyFontInfoSlow(Bt,Pe);let Pt=Object(un.a)(1e4),ni=[],Ci=[],Vi=[],Mi=[],zi=[];for(let nn=0;nn<we.length;nn++){let Wn=we[nn],An=0,qn=0,or=bt;if(at!==0)if(An=_t.w(Wn),An===-1)An=0;else{for(let zr=0;zr<An;zr++)qn+=Wn.charCodeAt(zr)===9?Ve-qn%Ve:1;let Or=Math.ceil(Pe.spaceWidth*qn);Or+Pe.typicalFullwidthCharacterWidth>bt?(An=0,qn=0):or=bt-Or}let Un=Wn.substr(An),Tr=Kr(Un,qn,Ve,or,Pt);ni[nn]=An,Ci[nn]=qn,Vi[nn]=Un,Mi[nn]=Tr[0],zi[nn]=Tr[1]}Bt.innerHTML=Pt.build(),Bt.style.position="absolute",Bt.style.top="10000",Bt.style.wordWrap="break-word",document.body.appendChild(Bt);let Yi=document.createRange(),Gi=Array.prototype.slice.call(Bt.children,0),wn=[];for(let nn=0;nn<we.length;nn++){let Wn=Gi[nn],An=ro(Yi,Wn,Vi[nn],Mi[nn]);if(An===null){wn[nn]=null;continue}let qn=ni[nn],or=Ci[nn],Un=zi[nn],Tr=[];for(let Or=0,zr=An.length;Or<zr;Or++)Tr[Or]=Un[An[Or]];if(qn!==0)for(let Or=0,zr=An.length;Or<zr;Or++)An[Or]+=qn;wn[nn]=new io(An,Tr,or)}return document.body.removeChild(Bt),wn}(K,i,a,_,R)}}}function Kr(Zt,i,a,_,R){R.appendASCIIString('<div style="width:'),R.appendASCIIString(String(_)),R.appendASCIIString('px;">');let K=Zt.length,we=i,Pe=0,Ve=[],Je=[],at=0<K?Zt.charCodeAt(0):0;R.appendASCIIString("<span>");for(let bt=0;bt<K;bt++){bt!==0&&bt%16384==0&&R.appendASCIIString("</span><span>"),Ve[bt]=Pe,Je[bt]=we;let Bt=at;at=bt+1<K?Zt.charCodeAt(bt+1):0;let Pt=1,ni=1;switch(Bt){case 9:Pt=a-we%a,ni=Pt;for(let Ci=1;Ci<=Pt;Ci++)Ci<Pt?R.write1(160):R.appendASCII(32);break;case 32:at===32?R.write1(160):R.appendASCII(32);break;case 60:R.appendASCIIString("<");break;case 62:R.appendASCIIString(">");break;case 38:R.appendASCIIString("&");break;case 0:R.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:R.write1(65533);break;default:_t.E(Bt)&&ni++,R.write1(Bt)}Pe+=Pt,we+=ni}return R.appendASCIIString("</span>"),Ve[Zt.length]=Pe,Je[Zt.length]=we,R.appendASCIIString("</div>"),[Ve,Je]}function ro(Zt,i,a,_){if(a.length<=1)return null;let R=Array.prototype.slice.call(i.children,0),K=[];try{(function we(Pe,Ve,Je,at,bt,Bt,Pt,ni){if(at===Bt||(bt=bt||Sa(Pe,Ve,Je[at],Je[at+1]),Pt=Pt||Sa(Pe,Ve,Je[Bt],Je[Bt+1]),Math.abs(bt[0].top-Pt[0].top)<=.1))return;if(at+1===Bt)return void ni.push(Bt);let Ci=at+(Bt-at)/2|0,Vi=Sa(Pe,Ve,Je[Ci],Je[Ci+1]);we(Pe,Ve,Je,at,bt,Ci,Vi,ni),we(Pe,Ve,Je,Ci,Vi,Bt,Pt,ni)})(Zt,R,_,0,null,a.length-1,null,K)}catch(we){return console.log(we),null}return K.length===0?null:(K.push(a.length),K)}function Sa(Zt,i,a,_){return Zt.setStart(i[a/16384|0].firstChild,a%16384),Zt.setEnd(i[_/16384|0].firstChild,_%16384),Zt.getClientRects()}var qs=r(129),Oo=function(Zt,i,a,_){var R,K=arguments.length,we=K<3?i:_===null?_=Object.getOwnPropertyDescriptor(i,a):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(Zt,i,a,_);else for(var Pe=Zt.length-1;Pe>=0;Pe--)(R=Zt[Pe])&&(we=(K<3?R(we):K>3?R(i,a,we):R(i,a))||we);return K>3&&we&&Object.defineProperty(i,a,we),we},Ao=function(Zt,i){return function(a,_){i(a,_,Zt)}};let $s=0;class ka{constructor(i,a,_,R,K){this.model=i,this.viewModel=a,this.view=_,this.hasRealView=R,this.listenersToRemove=K}dispose(){Object(E.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let ho=class Ud extends E.a{constructor(i,a,_,R,K,we,Pe,Ve,Je,at){let bt;super(),this._onDidDispose=this._register(new H.a),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new H.a),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new H.a),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new H.a),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new H.a),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new H.a),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new H.a),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new H.a),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new H.a),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new H.a),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new H.a),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new H.a),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Ks),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Ks),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new H.a),this.onWillType=this._onWillType.event,this._onDidType=this._register(new H.a),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new H.a),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new H.a),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new H.a),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new H.a),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new H.a),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new H.a),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new H.a),this.onMouseDrop=this._onMouseDrop.event,this._onContextMenu=this._register(new H.a),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new H.a),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new H.a),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new H.a),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new H.a),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new H.a),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new H.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new H.a),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new H.a),this.onDidChangeViewZones=this._onDidChangeViewZones.event,a=a||{},this._domElement=i,this._overflowWidgetsDomNode=a.overflowWidgetsDomNode,this._id=++$s,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=_.isSimpleWidget||!1,this._telemetryData=_.telemetryData,this._configuration=this._register(this._createConfiguration(a,at)),this._register(this._configuration.onDidChange(Bt=>{this._onDidChangeConfiguration.fire(Bt);let Pt=this._configuration.options;if(Bt.hasChanged(117)){let ni=Pt.get(117);this._onDidLayoutChange.fire(ni)}})),this._contextKeyService=this._register(Pe.createScoped(this._domElement)),this._notificationService=Je,this._codeEditorService=K,this._commandService=we,this._themeService=Ve,this._register(new Ts(this,this._contextKeyService)),this._register(new Xr(this,this._contextKeyService)),this._instantiationService=R.createChild(new us.a([Ss.b,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new oo(i),this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}),this._contentWidgets={},this._overlayWidgets={},bt=Array.isArray(_.contributions)?_.contributions:Q.d.getEditorContributions();for(let Bt of bt)try{let Pt=this._instantiationService.createInstance(Bt.ctor,this);this._contributions[Bt.id]=Pt}catch(Pt){Object(O.e)(Pt)}Q.d.getEditorActions().forEach(Bt=>{let Pt=new fo.a(Bt.id,Bt.label,Bt.alias,Object(ks.n)(Bt.precondition),()=>this._instantiationService.invokeFunction(ni=>Promise.resolve(Bt.runEditorCommand(ni,this,null))),this._contextKeyService);this._actions[Pt.id]=Pt}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(i,a){return new W.a(this.isSimpleWidget,i,this._domElement,a)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return zn.a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();let i=Object.keys(this._contributions);for(let a=0,_=i.length;a<_;a++){let R=i[a];this._contributions[R].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(i){return this._instantiationService.invokeFunction(i)}updateOptions(i){this._configuration.updateOptions(i)}getOptions(){return this._configuration.options}getOption(i){return this._configuration.options.get(i)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(i){return this._modelData?qs.a.getWordAtPosition(this._modelData.model,this._configuration.options.get(105),i):null}getValue(i=null){if(!this._modelData)return"";let a=!(!i||!i.preserveBOM),_=0;return i&&i.lineEnding&&i.lineEnding===` `?_=1:i&&i.lineEnding&&i.lineEnding===`\r -`&&(_=2),this._modelData.model.getValue(_,a)}setValue(i){this._modelData&&this._modelData.model.setValue(i)}getModel(){return this._modelData?this._modelData.model:null}setModel(i=null){let a=i;if(this._modelData===null&&a===null||this._modelData&&this._modelData.model===a)return;let _=this.hasTextFocus(),R=this._detachModel();this._attachModel(a),_&&this.hasModel()&&this.focus();let K={oldModelUrl:R?R.uri:null,newModelUrl:a?a.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(K),this._postDetachModelCleanup(R)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let i in this._decorationTypeSubtypes){let a=this._decorationTypeSubtypes[i];for(let _ in a)this._removeDecorationType(i+"-"+_)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(i,a,_){let R=i.model.validatePosition({lineNumber:a,column:_}),K=i.viewModel.coordinatesConverter.convertModelPositionToViewPosition(R);return i.viewModel.viewLayout.getVerticalOffsetForLineNumber(K.lineNumber)}getTopForLineNumber(i){return this._modelData?Ud._getVerticalOffsetForPosition(this._modelData,i,1):-1}getTopForPosition(i,a){return this._modelData?Ud._getVerticalOffsetForPosition(this._modelData,i,a):-1}setHiddenAreas(i){this._modelData&&this._modelData.viewModel.setHiddenAreas(i.map(a=>Nt.a.lift(a)))}getVisibleColumnFromPosition(i){if(!this._modelData)return i.column;let a=this._modelData.model.validatePosition(i),_=this._modelData.model.getOptions().tabSize;return _i.a.visibleColumnFromColumn(this._modelData.model.getLineContent(a.lineNumber),a.column,_)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(i){if(this._modelData){if(!At.a.isIPosition(i))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:i.lineNumber,selectionStartColumn:i.column,positionLineNumber:i.lineNumber,positionColumn:i.column}])}}_sendRevealRange(i,a,_,R){if(!this._modelData)return;if(!Nt.a.isIRange(i))throw new Error("Invalid arguments");let K=this._modelData.model.validateRange(i),we=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(K);this._modelData.viewModel.revealRange("api",_,we,a,R)}revealLine(i,a=0){this._revealLine(i,0,a)}revealLineInCenter(i,a=0){this._revealLine(i,1,a)}revealLineInCenterIfOutsideViewport(i,a=0){this._revealLine(i,2,a)}revealLineNearTop(i,a=0){this._revealLine(i,5,a)}_revealLine(i,a,_){if(typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i,1,i,1),a,!1,_)}revealPosition(i,a=0){this._revealPosition(i,0,!0,a)}revealPositionInCenter(i,a=0){this._revealPosition(i,1,!0,a)}revealPositionInCenterIfOutsideViewport(i,a=0){this._revealPosition(i,2,!0,a)}revealPositionNearTop(i,a=0){this._revealPosition(i,5,!0,a)}_revealPosition(i,a,_,R){if(!At.a.isIPosition(i))throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i.lineNumber,i.column,i.lineNumber,i.column),a,_,R)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(i){let a=C.a.isISelection(i),_=Nt.a.isIRange(i);if(!a&&!_)throw new Error("Invalid arguments");if(a)this._setSelectionImpl(i);else if(_){let R={selectionStartLineNumber:i.startLineNumber,selectionStartColumn:i.startColumn,positionLineNumber:i.endLineNumber,positionColumn:i.endColumn};this._setSelectionImpl(R)}}_setSelectionImpl(i){if(!this._modelData)return;let a=new C.a(i.selectionStartLineNumber,i.selectionStartColumn,i.positionLineNumber,i.positionColumn);this._modelData.viewModel.setSelections("api",[a])}revealLines(i,a,_=0){this._revealLines(i,a,0,_)}revealLinesInCenter(i,a,_=0){this._revealLines(i,a,1,_)}revealLinesInCenterIfOutsideViewport(i,a,_=0){this._revealLines(i,a,2,_)}revealLinesNearTop(i,a,_=0){this._revealLines(i,a,5,_)}_revealLines(i,a,_,R){if(typeof i!="number"||typeof a!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i,1,a,1),_,!1,R)}revealRange(i,a=0,_=!1,R=!0){this._revealRange(i,_?1:0,R,a)}revealRangeInCenter(i,a=0){this._revealRange(i,1,!0,a)}revealRangeInCenterIfOutsideViewport(i,a=0){this._revealRange(i,2,!0,a)}revealRangeNearTop(i,a=0){this._revealRange(i,5,!0,a)}revealRangeNearTopIfOutsideViewport(i,a=0){this._revealRange(i,6,!0,a)}revealRangeAtTop(i,a=0){this._revealRange(i,3,!0,a)}_revealRange(i,a,_,R){if(!Nt.a.isIRange(i))throw new Error("Invalid arguments");this._sendRevealRange(Nt.a.lift(i),a,_,R)}setSelections(i,a="api"){if(this._modelData){if(!i||i.length===0)throw new Error("Invalid arguments");for(let _=0,R=i.length;_<R;_++)if(!C.a.isISelection(i[_]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(a,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(i,a=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:i},a)}}setScrollTop(i,a=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:i},a)}}setScrollPosition(i,a=1){this._modelData&&this._modelData.viewModel.setScrollPosition(i,a)}saveViewState(){if(!this._modelData)return null;let i={},a=Object.keys(this._contributions);for(let _ of a){let R=this._contributions[_];typeof R.saveViewState=="function"&&(i[_]=R.saveViewState())}return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:i}}restoreViewState(i){if(!this._modelData||!this._modelData.hasRealView)return;let a=i;if(a&&a.cursorState&&a.viewState){let _=a.cursorState;Array.isArray(_)?this._modelData.viewModel.restoreCursorState(_):this._modelData.viewModel.restoreCursorState([_]);let R=a.contributionsState||{},K=Object.keys(this._contributions);for(let Pe=0,Ve=K.length;Pe<Ve;Pe++){let Je=K[Pe],at=this._contributions[Je];typeof at.restoreViewState=="function"&&at.restoreViewState(R[Je])}let we=this._modelData.viewModel.reduceRestoreState(a.viewState);this._modelData.view.restoreState(we)}}getContribution(i){return this._contributions[i]||null}getActions(){let i=[],a=Object.keys(this._actions);for(let _=0,R=a.length;_<R;_++){let K=a[_];i.push(this._actions[K])}return i}getSupportedActions(){let i=this.getActions();return i=i.filter(a=>a.isSupported()),i}getAction(i){return this._actions[i]||null}trigger(i,a,_){switch(_=_||{},a){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(i);case"type":{let K=_;return void this._type(i,K.text||"")}case"replacePreviousChar":{let K=_;return void this._replacePreviousChar(i,K.text||"",K.replaceCharCnt||0)}case"paste":{let K=_;return void this._paste(i,K.text||"",K.pasteOnNewLine||!1,K.multicursorText||null,K.mode||null)}case"cut":return void this._cut(i)}let R=this.getAction(a);R?Promise.resolve(R.run()).then(void 0,D.e):this._modelData&&this._triggerEditorCommand(i,a,_)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(i){this._modelData&&(this._modelData.viewModel.endComposition(i),this._onDidCompositionEnd.fire())}_type(i,a){this._modelData&&a.length!==0&&(i==="keyboard"&&this._onWillType.fire(a),this._modelData.viewModel.type(a,i),i==="keyboard"&&this._onDidType.fire(a))}_replacePreviousChar(i,a,_){this._modelData&&this._modelData.viewModel.replacePreviousChar(a,_,i)}_paste(i,a,_,R,K){if(!this._modelData||a.length===0)return;let we=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(a,_,R,i);let Pe=this._modelData.viewModel.getSelection().getStartPosition();i==="keyboard"&&this._onDidPaste.fire({range:new Nt.a(we.lineNumber,we.column,Pe.lineNumber,Pe.column),mode:K})}_cut(i){this._modelData&&this._modelData.viewModel.cut(i)}_triggerEditorCommand(i,a,_){let R=Q.d.getEditorCommand(a);return!!R&&((_=_||{}).source=i,this._instantiationService.invokeFunction(K=>{Promise.resolve(R.runEditorCommand(K,this,_)).then(void 0,D.e)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(72)&&(this._modelData.model.pushStackElement(),!0)}executeEdits(i,a,_){if(!this._modelData||this._configuration.options.get(72))return!1;let R;return R=_?Array.isArray(_)?()=>_:_:()=>null,this._modelData.viewModel.executeEdits(i,a,R),!0}executeCommand(i,a){this._modelData&&this._modelData.viewModel.executeCommand(a,i)}executeCommands(i,a){this._modelData&&this._modelData.viewModel.executeCommands(a,i)}changeDecorations(i){return this._modelData?this._modelData.model.changeDecorations(i,this._id):null}getLineDecorations(i){return this._modelData?this._modelData.model.getLineDecorations(i,this._id,Object(fe.l)(this._configuration.options)):null}deltaDecorations(i,a){return this._modelData?i.length===0&&a.length===0?i:this._modelData.model.deltaDecorations(i,a,this._id):[]}removeDecorations(i){let a=this._decorationTypeKeysToIds[i];a&&this.deltaDecorations(a,[]),this._decorationTypeKeysToIds.hasOwnProperty(i)&&delete this._decorationTypeKeysToIds[i],this._decorationTypeSubtypes.hasOwnProperty(i)&&delete this._decorationTypeSubtypes[i]}getLayoutInfo(){return this._configuration.options.get(117)}createOverviewRuler(i){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(i):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(i)}layout(i){this._configuration.observeReferenceElement(i),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(i){let a={widget:i,position:i.getPosition()};this._contentWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[i.getId()]=a,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(a)}layoutContentWidget(i){let a=i.getId();if(this._contentWidgets.hasOwnProperty(a)){let _=this._contentWidgets[a];_.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(_)}}removeContentWidget(i){let a=i.getId();if(this._contentWidgets.hasOwnProperty(a)){let _=this._contentWidgets[a];delete this._contentWidgets[a],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(_)}}addOverlayWidget(i){let a={widget:i,position:i.getPosition()};this._overlayWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[i.getId()]=a,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(a)}layoutOverlayWidget(i){let a=i.getId();if(this._overlayWidgets.hasOwnProperty(a)){let _=this._overlayWidgets[a];_.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(_)}}removeOverlayWidget(i){let a=i.getId();if(this._overlayWidgets.hasOwnProperty(a)){let _=this._overlayWidgets[a];delete this._overlayWidgets[a],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(_)}}changeViewZones(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(i)}getTargetAtClientPoint(i,a){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(i,a):null}getScrolledVisiblePosition(i){if(!this._modelData||!this._modelData.hasRealView)return null;let a=this._modelData.model.validatePosition(i),_=this._configuration.options,R=_.get(117);return{top:Ud._getVerticalOffsetForPosition(this._modelData,a.lineNumber,a.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(a.lineNumber,a.column)+R.glyphMarginWidth+R.lineNumbersWidth+R.decorationsWidth-this.getScrollLeft(),height:_.get(51)}}getOffsetForColumn(i,a){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(i,a):-1}render(i=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,i)}setAriaOptions(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(i)}applyFontInfo(i){W.a.applyFontInfoSlow(i,this._configuration.options.get(36))}_attachModel(i){if(!i)return void(this._modelData=null);let a=[];this._domElement.setAttribute("data-mode-id",i.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(i.isDominatedByLongLines()),this._configuration.setMaxLineNumber(i.getLineCount()),i.onBeforeAttached();let _=new yr(this._id,this._configuration,i,Or.create(),ps.create(this._configuration.options),we=>f.Y(we));a.push(i.onDidChangeDecorations(we=>this._onDidChangeModelDecorations.fire(we))),a.push(i.onDidChangeLanguage(we=>{this._domElement.setAttribute("data-mode-id",i.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(we)})),a.push(i.onDidChangeLanguageConfiguration(we=>this._onDidChangeModelLanguageConfiguration.fire(we))),a.push(i.onDidChangeContent(we=>this._onDidChangeModelContent.fire(we))),a.push(i.onDidChangeOptions(we=>this._onDidChangeModelOptions.fire(we))),a.push(i.onWillDispose(()=>this.setModel(null))),a.push(_.onEvent(we=>{switch(we.kind){case 0:this._onDidContentSizeChange.fire(we);break;case 1:this._editorTextFocus.setValue(we.hasFocus);break;case 2:this._onDidScrollChange.fire(we);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{we.reachedMaxCursorCount&&this._notificationService.warn(h.a("cursors.maximum","The number of cursors has been limited to {0}.",Do.MAX_CURSOR_COUNT));let Pe=[];for(let at=0,bt=we.selections.length;at<bt;at++)Pe[at]=we.selections[at].getPosition();let Ve={position:Pe[0],secondaryPositions:Pe.slice(1),reason:we.reason,source:we.source};this._onDidChangeCursorPosition.fire(Ve);let Je={selection:we.selections[0],secondarySelections:we.selections.slice(1),modelVersionId:we.modelVersionId,oldSelections:we.oldSelections,oldModelVersionId:we.oldModelVersionId,source:we.source,reason:we.reason};this._onDidChangeCursorSelection.fire(Je);break}}}));let[R,K]=this._createView(_);if(K){this._domElement.appendChild(R.domNode.domNode);let we=Object.keys(this._contentWidgets);for(let Pe=0,Ve=we.length;Pe<Ve;Pe++){let Je=we[Pe];R.addContentWidget(this._contentWidgets[Je])}we=Object.keys(this._overlayWidgets);for(let Pe=0,Ve=we.length;Pe<Ve;Pe++){let Je=we[Pe];R.addOverlayWidget(this._overlayWidgets[Je])}R.render(!1,!0),R.domNode.domNode.setAttribute("data-uri",i.uri.toString())}this._modelData=new ka(i,_,R,K,a)}_createView(i){let a;a=this.isSimpleWidget?{paste:(R,K,we,Pe)=>{this._paste("keyboard",R,K,we,Pe)},type:R=>{this._type("keyboard",R)},replacePreviousChar:(R,K)=>{this._replacePreviousChar("keyboard",R,K)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(R,K,we,Pe)=>{let Ve={text:R,pasteOnNewLine:K,multicursorText:we,mode:Pe};this._commandService.executeCommand("paste",Ve)},type:R=>{let K={text:R};this._commandService.executeCommand("type",K)},replacePreviousChar:(R,K)=>{let we={text:R,replaceCharCnt:K};this._commandService.executeCommand("replacePreviousChar",we)},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};let _=new Wi(i.coordinatesConverter);return _.onKeyDown=R=>this._onKeyDown.fire(R),_.onKeyUp=R=>this._onKeyUp.fire(R),_.onContextMenu=R=>this._onContextMenu.fire(R),_.onMouseMove=R=>this._onMouseMove.fire(R),_.onMouseLeave=R=>this._onMouseLeave.fire(R),_.onMouseDown=R=>this._onMouseDown.fire(R),_.onMouseUp=R=>this._onMouseUp.fire(R),_.onMouseDrag=R=>this._onMouseDrag.fire(R),_.onMouseDrop=R=>this._onMouseDrop.fire(R),_.onMouseWheel=R=>this._onMouseWheel.fire(R),[new sn(a,this._configuration,this._themeService,i,_,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(i){i&&i.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;let i=this._modelData.model,a=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),a&&this._domElement.contains(a)&&this._domElement.removeChild(a),i}_removeDecorationType(i){this._codeEditorService.removeDecorationType(i)}hasModel(){return this._modelData!==null}};hr=Dr([Ar(3,hs.a),Ar(4,y.a),Ar(5,qr.b),Ar(6,Ss.b),Ar(7,ht.c),Ar(8,Ca.a),Ar(9,xa.b)],hr);class Ks extends E.a{constructor(){super(),this._onDidChangeToTrue=this._register(new H.a),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new H.a),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(i){let a=i?2:1;this._value!==a&&(this._value=a,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class Ts extends E.a{constructor(i,a){super(),this._editor=i,a.createKey("editorId",i.getId()),this._editorSimpleInput=eo.a.editorSimpleInput.bindTo(a),this._editorFocus=eo.a.focus.bindTo(a),this._textInputFocus=eo.a.textInputFocus.bindTo(a),this._editorTextFocus=eo.a.editorTextFocus.bindTo(a),this._editorTabMovesFocus=eo.a.tabMovesFocus.bindTo(a),this._editorReadonly=eo.a.readOnly.bindTo(a),this._editorColumnSelection=eo.a.columnSelection.bindTo(a),this._hasMultipleSelections=eo.a.hasMultipleSelections.bindTo(a),this._hasNonEmptySelection=eo.a.hasNonEmptySelection.bindTo(a),this._canUndo=eo.a.canUndo.bindTo(a),this._canRedo=eo.a.canRedo.bindTo(a),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){let i=this._editor.getOptions();this._editorTabMovesFocus.set(i.get(116)),this._editorReadonly.set(i.get(72)),this._editorColumnSelection.set(i.get(13))}_updateFromSelection(){let i=this._editor.getSelections();i?(this._hasMultipleSelections.set(i.length>1),this._hasNonEmptySelection.set(i.some(a=>!a.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){let i=this._editor.getModel();this._canUndo.set(Boolean(i&&i.canUndo())),this._canRedo.set(Boolean(i&&i.canRedo()))}}class Qo extends E.a{constructor(i,a){super(),this._editor=i,this._contextKeyService=a,this._langId=eo.a.languageId.bindTo(a),this._hasCompletionItemProvider=eo.a.hasCompletionItemProvider.bindTo(a),this._hasCodeActionsProvider=eo.a.hasCodeActionsProvider.bindTo(a),this._hasCodeLensProvider=eo.a.hasCodeLensProvider.bindTo(a),this._hasDefinitionProvider=eo.a.hasDefinitionProvider.bindTo(a),this._hasDeclarationProvider=eo.a.hasDeclarationProvider.bindTo(a),this._hasImplementationProvider=eo.a.hasImplementationProvider.bindTo(a),this._hasTypeDefinitionProvider=eo.a.hasTypeDefinitionProvider.bindTo(a),this._hasHoverProvider=eo.a.hasHoverProvider.bindTo(a),this._hasDocumentHighlightProvider=eo.a.hasDocumentHighlightProvider.bindTo(a),this._hasDocumentSymbolProvider=eo.a.hasDocumentSymbolProvider.bindTo(a),this._hasReferenceProvider=eo.a.hasReferenceProvider.bindTo(a),this._hasRenameProvider=eo.a.hasRenameProvider.bindTo(a),this._hasSignatureHelpProvider=eo.a.hasSignatureHelpProvider.bindTo(a),this._hasDocumentFormattingProvider=eo.a.hasDocumentFormattingProvider.bindTo(a),this._hasDocumentSelectionFormattingProvider=eo.a.hasDocumentSelectionFormattingProvider.bindTo(a),this._hasMultipleDocumentFormattingProvider=eo.a.hasMultipleDocumentFormattingProvider.bindTo(a),this._hasMultipleDocumentSelectionFormattingProvider=eo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(a),this._isInWalkThrough=eo.a.isInWalkThroughSnippet.bindTo(a);let _=()=>this._update();this._register(i.onDidChangeModel(_)),this._register(i.onDidChangeModelLanguage(_)),this._register(X.d.onDidChange(_)),this._register(X.a.onDidChange(_)),this._register(X.b.onDidChange(_)),this._register(X.f.onDidChange(_)),this._register(X.e.onDidChange(_)),this._register(X.q.onDidChange(_)),this._register(X.D.onDidChange(_)),this._register(X.p.onDidChange(_)),this._register(X.i.onDidChange(_)),this._register(X.m.onDidChange(_)),this._register(X.v.onDidChange(_)),this._register(X.w.onDidChange(_)),this._register(X.g.onDidChange(_)),this._register(X.j.onDidChange(_)),this._register(X.y.onDidChange(_)),_()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){let i=this._editor.getModel();i?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(i.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(X.d.has(i)),this._hasCodeActionsProvider.set(X.a.has(i)),this._hasCodeLensProvider.set(X.b.has(i)),this._hasDefinitionProvider.set(X.f.has(i)),this._hasDeclarationProvider.set(X.e.has(i)),this._hasImplementationProvider.set(X.q.has(i)),this._hasTypeDefinitionProvider.set(X.D.has(i)),this._hasHoverProvider.set(X.p.has(i)),this._hasDocumentHighlightProvider.set(X.i.has(i)),this._hasDocumentSymbolProvider.set(X.m.has(i)),this._hasReferenceProvider.set(X.v.has(i)),this._hasRenameProvider.set(X.w.has(i)),this._hasSignatureHelpProvider.set(X.y.has(i)),this._hasDocumentFormattingProvider.set(X.g.has(i)||X.j.has(i)),this._hasDocumentSelectionFormattingProvider.set(X.j.has(i)),this._hasMultipleDocumentFormattingProvider.set(X.g.all(i).length+X.j.all(i).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(X.j.all(i).length>1),this._isInWalkThrough.set(i.uri.scheme===ge.b.walkThroughSnippet)}):this.reset()}}class sr extends E.a{constructor(i){super(),this._onChange=this._register(new H.a),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(f.bb(i)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}let ra=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Ls=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function qo(Zt){return ra+encodeURIComponent(Zt.toString())+Ls}let Ns=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ar=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.t);a&&i.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${a}; }`);let _=Zt.getColor(lt.u);_&&i.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${qo(_)}") repeat-x bottom left; }`);let R=Zt.getColor(lt.S);R&&i.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${R}; }`);let K=Zt.getColor(lt.T);K&&i.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${qo(K)}") repeat-x bottom left; }`);let we=Zt.getColor(lt.K);we&&i.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${we}; }`);let Pe=Zt.getColor(lt.L);Pe&&i.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${qo(Pe)}") repeat-x bottom left; }`);let Ve=Zt.getColor(lt.C);Ve&&i.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${Ve}; }`);let Je=Zt.getColor(lt.D);var at;Je&&i.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${at=Je,Ns+encodeURIComponent(at.toString())+ar}") no-repeat bottom left; }`);let bt=Zt.getColor(ki.p);bt&&i.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${bt.rgba.a}; }`);let Bt=Zt.getColor(ki.o);Bt&&i.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${Bt}; }`);let Pt=Zt.getColor(lt.B)||"inherit";i.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${Pt}}`)})},function(Ie,w,o){"use strict";o.d(w,"c",function(){return f}),o.d(w,"b",function(){return D}),o.d(w,"a",function(){return H});var h=o(1);function f(W,Q={}){let y=H(Q);return y.textContent=W,y}function D(W,Q={}){let y=H(Q);return function C(S,P,V){let k;if(P.type===2)k=document.createTextNode(P.content||"");else if(P.type===3)k=document.createElement("b");else if(P.type===4)k=document.createElement("i");else if(P.type===5&&V){let l=document.createElement("a");l.href="#",V.disposeables.add(h.n(l,"click",T=>{V.callback(String(P.index),T)})),k=l}else P.type===7?k=document.createElement("br"):P.type===1&&(k=S);k&&S!==k&&S.appendChild(k),k&&Array.isArray(P.children)&&P.children.forEach(l=>{C(k,l,V)})}(y,function(C){let S={type:1,children:[]},P=0,V=S,k=[],l=new E(C);for(;!l.eos();){let T=l.next(),N=T==="\\"&&ge(l.peek())!==0;if(N&&(T=l.next()),N||ge(T)===0||T!==l.peek())if(T===` -`)V.type===2&&(V=k.pop()),V.children.push({type:7});else if(V.type!==2){let b={type:2,content:T};V.children.push(b),k.push(V),V=b}else V.content+=T;else{l.advance(),V.type===2&&(V=k.pop());let b=ge(T);if(V.type===b||V.type===5&&b===6)V=k.pop();else{let g={type:b,children:[]};b===5&&(g.index=P,P++),V.children.push(g),k.push(V),V=g}}}return V.type===2&&(V=k.pop()),k.length,S}(W),Q.actionHandler),y}function H(W){let Q=W.inline?"span":"div",y=document.createElement(Q);return W.className&&(y.className=W.className),y}class E{constructor(Q){this.source=Q,this.index=0}eos(){return this.index>=this.source.length}next(){let Q=this.peek();return this.advance(),Q}peek(){return this.source[this.index]}advance(){this.index++}}function ge(W){switch(W){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E});var h=o(6),f=o(2),D=o(18);let H=Object(D.c)("IStorageKeysSyncRegistryService");class E extends f.a{constructor(){super(),this._storageKeys=new Map,this._onDidChangeStorageKeys=this._register(new h.a),this._register(Object(f.h)(()=>this._storageKeys.clear()))}get storageKeys(){return[...this._storageKeys.values()]}registerStorageKey(W){this._storageKeys.has(W.key)||(this._storageKeys.set(W.key,W),this._onDidChangeStorageKeys.fire(this.storageKeys))}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return P}),o.d(w,"b",function(){return V}),o.d(w,"c",function(){return k});var h=o(34),f=o(1),D=o(20),H=o(6),E=o(2),ge=o(11),W=o(8),Q=o(127),y=o(9),C=o(21),S=o(138);let P={forceCopyWithSyntaxHighlighting:!1};class V{constructor(){this._lastState=null}set(b,g){this._lastState={lastCopiedValue:b,data:g}}get(b){return this._lastState&&this._lastState.lastCopiedValue===b?this._lastState.data:(this._lastState=null,null)}}V.INSTANCE=new V;class k extends E.a{constructor(b,g){super(),this.textArea=g,this._onFocus=this._register(new H.a),this.onFocus=this._onFocus.event,this._onBlur=this._register(new H.a),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new H.a),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new H.a),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new H.a),this.onCut=this._onCut.event,this._onPaste=this._register(new H.a),this.onPaste=this._onPaste.event,this._onType=this._register(new H.a),this.onType=this._onType.event,this._onCompositionStart=this._register(new H.a),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new H.a),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new H.a),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new H.a),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=b,this._textArea=this._register(new T(g)),this._asyncTriggerCut=this._register(new D.d(()=>this._onCut.fire(),0)),this._textAreaState=Q.b.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let j=null;this._register(f.n(g.domNode,"keydown",B=>{(B.keyCode===109||this._isDoingComposition&&B.keyCode===1)&&B.stopPropagation(),B.equals(9)&&B.preventDefault(),j=B,this._onKeyDown.fire(B)})),this._register(f.n(g.domNode,"keyup",B=>{this._onKeyUp.fire(B)})),this._register(f.i(g.domNode,"compositionstart",B=>{if(this._isDoingComposition)return;this._isDoingComposition=!0;let se=!1;ge.f&&j&&j.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===B.data&&(j.code!=="ArrowRight"&&j.code!=="ArrowLeft"||(se=!0)),se?this._textAreaState=new Q.b(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new y.a(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition):h.f||this._setAndWriteTextAreaState("compositionstart",Q.b.EMPTY),this._onCompositionStart.fire({moveOneCharacterLeft:se})}));let ie=B=>{let se=this._textAreaState,ke=Q.b.readFromTextArea(this._textArea);return[ke,Q.b.deduceInput(se,ke,B)]},U=B=>{let se=this._textAreaState,ke=Q.b.selectedText(B);return[ke,{text:ke.value,replaceCharCnt:se.selectionEnd-se.selectionStart}]},q=B=>!(!h.f||B!=="ja");this._register(f.i(g.domNode,"compositionupdate",B=>{if(q(B.locale)){let[xe,Y]=ie(!1);return this._textAreaState=xe,this._onType.fire(Y),void this._onCompositionUpdate.fire(B)}let[se,ke]=U(B.data||"");this._textAreaState=se,this._onType.fire(ke),this._onCompositionUpdate.fire(B)})),this._register(f.i(g.domNode,"compositionend",B=>{if(this._isDoingComposition){if(q(B.locale)){let[se,ke]=ie(!1);this._textAreaState=se,this._onType.fire(ke)}else{let[se,ke]=U(B.data||"");this._textAreaState=se,this._onType.fire(ke)}(h.f||h.e)&&(this._textAreaState=Q.b.readFromTextArea(this._textArea)),this._isDoingComposition&&(this._isDoingComposition=!1,this._onCompositionEnd.fire())}})),this._register(f.i(g.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;let[B,se]=ie(ge.f);se.replaceCharCnt===0&&se.text.length===1&&W.F(se.text.charCodeAt(0))||(this._textAreaState=B,this._nextCommand===0?se.text!==""&&this._onType.fire(se):(se.text===""&&se.replaceCharCnt===0||this._firePaste(se.text,null),this._nextCommand=0))})),this._register(f.i(g.domNode,"cut",B=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(B),this._asyncTriggerCut.schedule()})),this._register(f.i(g.domNode,"copy",B=>{this._ensureClipboardGetsEditorSelection(B)})),this._register(f.i(g.domNode,"paste",B=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),l.canUseTextData(B)){let[se,ke]=l.getTextData(B);se!==""&&this._firePaste(se,ke)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",Q.b.EMPTY),this._nextCommand=1})),this._register(f.i(g.domNode,"focus",()=>{this._setHasFocus(!0)})),this._register(f.i(g.domNode,"blur",()=>{this._setHasFocus(!1)}))}_installSelectionChangeListener(){let b=0;return f.i(document,"selectionchange",g=>{if(!this._hasFocus||this._isDoingComposition||!h.e)return;let j=Date.now(),ie=j-b;if(b=j,ie<5)return;let U=j-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),U<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;let q=this._textArea.getValue();if(this._textAreaState.value!==q)return;let B=this._textArea.getSelectionStart(),se=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===B&&this._textAreaState.selectionEnd===se)return;let ke=this._textAreaState.deduceEditorPosition(B),xe=this._host.deduceModelPosition(ke[0],ke[1],ke[2]),Y=this._textAreaState.deduceEditorPosition(se),Z=this._host.deduceModelPosition(Y[0],Y[1],Y[2]),te=new C.a(xe.lineNumber,xe.column,Z.lineNumber,Z.column);this._onSelectionChangeRequest.fire(te)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){let b=f.E(this.textArea.domNode);b?this._setHasFocus(b.activeElement===this.textArea.domNode):f.N(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(b){this._hasFocus!==b&&(this._hasFocus=b,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(h.f?this._setAndWriteTextAreaState("focusgain",Q.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(b,g){this._hasFocus||(g=g.collapseSelection()),g.writeToTextArea(b,this._textArea,this._hasFocus),this._textAreaState=g}writeScreenReaderContent(b){this._isDoingComposition||this._setAndWriteTextAreaState(b,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(b){let g=this._host.getDataToCopy(l.canUseTextData(b)&&S.a.clipboard.richText),j={version:1,isFromEmptySelection:g.isFromEmptySelection,multicursorText:g.multicursorText,mode:g.mode};V.INSTANCE.set(h.h?g.text.replace(/\r\n/g,` -`):g.text,j),l.canUseTextData(b)?l.setTextData(b,g.text,g.html,j):this._setAndWriteTextAreaState("copy or cut",Q.b.selectedText(g.text))}_firePaste(b,g){g||(g=V.INSTANCE.get(b)),this._onPaste.fire({text:b,metadata:g})}}class l{static canUseTextData(b){return!!b.clipboardData||!!window.clipboardData}static getTextData(b){if(b.clipboardData){b.preventDefault();let g=b.clipboardData.getData("text/plain"),j=null,ie=b.clipboardData.getData("vscode-editor-data");if(typeof ie=="string")try{j=JSON.parse(ie),j.version!==1&&(j=null)}catch(U){}return[g,j]}if(window.clipboardData)return b.preventDefault(),[window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(b,g,j,ie){if(b.clipboardData)return b.clipboardData.setData("text/plain",g),typeof j=="string"&&b.clipboardData.setData("text/html",j),b.clipboardData.setData("vscode-editor-data",JSON.stringify(ie)),void b.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",g),void b.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class T extends E.a{constructor(b){super(),this._actual=b,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(b){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(b,g){let j=this._actual.domNode;j.value!==g&&(this.setIgnoreSelectionChangeTime("setValue"),j.value=g)}getSelectionStart(){return this._actual.domNode.selectionStart}getSelectionEnd(){return this._actual.domNode.selectionEnd}setSelectionRange(b,g,j){let ie=this._actual.domNode,U=null,q=f.E(ie);U=q?q.activeElement:document.activeElement;let B=U===ie,se=ie.selectionStart,ke=ie.selectionEnd;if(B&&se===g&&ke===j)h.h&&window.parent!==window&&ie.focus();else{if(B)return this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.setSelectionRange(g,j),void(h.h&&window.parent!==window&&ie.focus());try{let xe=f.X(ie);this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.focus(),ie.setSelectionRange(g,j),f.V(ie,xe)}catch(xe){}}}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f}),o.d(w,"b",function(){return D});class h{constructor(E,ge,W){this.from=0|E,this.to=0|ge,this.colorId=0|W}static compare(E,ge){return E.colorId===ge.colorId?E.from===ge.from?E.to-ge.to:E.from-ge.from:E.colorId-ge.colorId}}class f{constructor(E,ge,W){this.startLineNumber=E,this.endLineNumber=ge,this.color=W,this._colorZone=null}static compare(E,ge){return E.color===ge.color?E.startLineNumber===ge.startLineNumber?E.endLineNumber-ge.endLineNumber:E.startLineNumber-ge.startLineNumber:E.color<ge.color?-1:1}setColorZone(E){this._colorZone=E}getColorZones(){return this._colorZone}}class D{constructor(E){this._getVerticalOffsetForLine=E,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(E){this._zones=E,this._zones.sort(f.compare)}setLineHeight(E){return this._lineHeight!==E&&(this._lineHeight=E,this._colorZonesInvalid=!0,!0)}setPixelRatio(E){this._pixelRatio=E,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(E){return this._domWidth!==E&&(this._domWidth=E,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(E){return this._domHeight!==E&&(this._domHeight=E,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(E){return this._outerHeight!==E&&(this._outerHeight=E,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let E=this._colorZonesInvalid,ge=Math.floor(this._lineHeight),W=Math.floor(this.getCanvasHeight()),Q=W/Math.floor(this._outerHeight),y=Math.floor(4*this._pixelRatio/2),C=[];for(let S=0,P=this._zones.length;S<P;S++){let V=this._zones[S];if(!E){let ie=V.getColorZones();if(ie){C.push(ie);continue}}let k=Math.floor(Q*this._getVerticalOffsetForLine(V.startLineNumber)),l=Math.floor(Q*(this._getVerticalOffsetForLine(V.endLineNumber)+ge)),T=Math.floor((k+l)/2),N=l-T;N<y&&(N=y),T-N<0&&(T=N),T+N>W&&(T=W-N);let b=V.color,g=this._color2Id[b];g||(g=++this._lastAssignedId,this._color2Id[b]=g,this._id2Color[g]=b);let j=new h(T-N,T+N,g);V.setColorZone(j),C.push(j)}return this._colorZonesInvalid=!1,C.sort(h.compare),C}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return W});var h=o(23),f=o(51),D=o(18);o(78);let H=Object(D.c)("contextService");var E,ge;(function(Q){Q.isIWorkspace=function(y){return!(!y||typeof y!="object"||typeof y.id!="string"||!Array.isArray(y.folders))}})(E||(E={})),function(Q){Q.isIWorkspaceFolder=function(y){return!(!y||typeof y!="object"||!h.a.isUri(y.uri)||typeof y.name!="string"||typeof y.toResource!="function")}}(ge||(ge={}));class W{constructor(y,C){this.raw=C,this.uri=y.uri,this.index=y.index,this.name=y.name}toResource(y){return f.g(this.uri,y)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H});var h=o(6),f=o(2);class D{constructor(y,C,S,P,V,k){y|=0,C|=0,S|=0,P|=0,V|=0,k|=0,this.rawScrollLeft=S,this.rawScrollTop=k,y<0&&(y=0),S+y>C&&(S=C-y),S<0&&(S=0),P<0&&(P=0),k+P>V&&(k=V-P),k<0&&(k=0),this.width=y,this.scrollWidth=C,this.scrollLeft=S,this.height=P,this.scrollHeight=V,this.scrollTop=k}equals(y){return this.rawScrollLeft===y.rawScrollLeft&&this.rawScrollTop===y.rawScrollTop&&this.width===y.width&&this.scrollWidth===y.scrollWidth&&this.scrollLeft===y.scrollLeft&&this.height===y.height&&this.scrollHeight===y.scrollHeight&&this.scrollTop===y.scrollTop}withScrollDimensions(y,C){return new D(y.width!==void 0?y.width:this.width,y.scrollWidth!==void 0?y.scrollWidth:this.scrollWidth,C?this.rawScrollLeft:this.scrollLeft,y.height!==void 0?y.height:this.height,y.scrollHeight!==void 0?y.scrollHeight:this.scrollHeight,C?this.rawScrollTop:this.scrollTop)}withScrollPosition(y){return new D(this.width,this.scrollWidth,y.scrollLeft!==void 0?y.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,y.scrollTop!==void 0?y.scrollTop:this.rawScrollTop)}createScrollEvent(y){let C=this.width!==y.width,S=this.scrollWidth!==y.scrollWidth,P=this.scrollLeft!==y.scrollLeft,V=this.height!==y.height,k=this.scrollHeight!==y.scrollHeight,l=this.scrollTop!==y.scrollTop;return{oldWidth:y.width,oldScrollWidth:y.scrollWidth,oldScrollLeft:y.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:y.height,oldScrollHeight:y.scrollHeight,oldScrollTop:y.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:C,scrollWidthChanged:S,scrollLeftChanged:P,heightChanged:V,scrollHeightChanged:k,scrollTopChanged:l}}}class H extends f.a{constructor(y,C){super(),this._onScroll=this._register(new h.a),this.onScroll=this._onScroll.event,this._smoothScrollDuration=y,this._scheduleAtNextAnimationFrame=C,this._state=new D(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(y){this._smoothScrollDuration=y}validateScrollPosition(y){return this._state.withScrollPosition(y)}getScrollDimensions(){return this._state}setScrollDimensions(y,C){let S=this._state.withScrollDimensions(y,C);this._setState(S),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(y){let C=this._state.withScrollPosition(y);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(C)}setScrollPositionSmooth(y){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(y);if(this._smoothScrolling){y={scrollLeft:y.scrollLeft===void 0?this._smoothScrolling.to.scrollLeft:y.scrollLeft,scrollTop:y.scrollTop===void 0?this._smoothScrolling.to.scrollTop:y.scrollTop};let C=this._state.withScrollPosition(y);if(this._smoothScrolling.to.scrollLeft===C.scrollLeft&&this._smoothScrolling.to.scrollTop===C.scrollTop)return;let S=this._smoothScrolling.combine(this._state,C,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=S}else{let C=this._state.withScrollPosition(y);this._smoothScrolling=W.start(this._state,C,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;let y=this._smoothScrolling.tick(),C=this._state.withScrollPosition(y);return this._setState(C),this._smoothScrolling?y.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(y){let C=this._state;C.equals(y)||(this._state=y,this._onScroll.fire(this._state.createScrollEvent(C)))}}class E{constructor(y,C,S){this.scrollLeft=y,this.scrollTop=C,this.isDone=S}}function ge(Q,y){let C=y-Q;return function(S){return Q+C*(1-function(P){return Math.pow(P,3)}(1-S))}}class W{constructor(y,C,S,P){this.from=y,this.to=C,this.duration=P,this._startTime=S,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(y,C,S){if(Math.abs(y-C)>2.5*S){let l,T;return y<C?(l=y+.75*S,T=C-.75*S):(l=y-.75*S,T=C+.75*S),P=ge(y,l),V=ge(T,C),k=.33,function(N){return N<k?P(N/k):V((N-k)/(1-k))}}var P,V,k;return ge(y,C)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(y){this.to=y.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(y){let C=(y-this._startTime)/this.duration;if(C<1){let S=this.scrollLeft(C),P=this.scrollTop(C);return new E(S,P,!1)}return new E(this.to.scrollLeft,this.to.scrollTop,!0)}combine(y,C,S){return W.start(y,C,S)}static start(y,C,S){S+=10;let P=Date.now()-10;return new W(y,C,P,S)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("dialogService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return W}),o(269);var h=o(1),f=o(156),D=o(2),H=o(99),E=o(46);class ge{constructor(S){this._element=S}get element(){return this._element}set textContent(S){this.disposed||S===this._textContent||(this._textContent=S,this._element.textContent=S)}set className(S){this.disposed||S===this._className||(this._className=S,this._element.className=S)}set title(S){this.disposed||S===this._title||(this._title=S,this._title?this._element.title=S:this._element.removeAttribute("title"))}set empty(S){this.disposed||S===this._empty||(this._empty=S,this._element.style.marginLeft=S?"0":"")}dispose(){this.disposed=!0}}class W extends D.a{constructor(S,P){super(),this.domNode=this._register(new ge(h.p(S,h.a(".monaco-icon-label"))));let V=h.p(this.domNode.element,h.a(".monaco-icon-label-container")),k=h.p(V,h.a("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new ge(h.p(V,h.a("span.monaco-icon-description-container")))),(P==null?void 0:P.supportHighlights)?this.nameNode=new y(k,!!P.supportCodicons):this.nameNode=new Q(k),(P==null?void 0:P.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new f.a(h.p(this.descriptionContainer.element,h.a("span.label-description")),!!P.supportCodicons):this.descriptionNodeFactory=()=>this._register(new ge(h.p(this.descriptionContainer.element,h.a("span.label-description"))))}setLabel(S,P,V){let k=["monaco-icon-label"];V&&(V.extraClasses&&k.push(...V.extraClasses),V.italic&&k.push("italic"),V.strikethrough&&k.push("strikethrough")),this.domNode.className=k.join(" "),this.domNode.title=(V==null?void 0:V.title)||"",this.nameNode.setLabel(S,V),(P||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof f.a?(this.descriptionNode.set(P||"",V?V.descriptionMatches:void 0),(V==null?void 0:V.descriptionTitle)?this.descriptionNode.element.title=V.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=P||"",this.descriptionNode.title=(V==null?void 0:V.descriptionTitle)||"",this.descriptionNode.empty=!P))}}class Q{constructor(S){this.container=S,this.label=void 0,this.singleLabel=void 0}setLabel(S,P){if(this.label!==S||!Object(E.e)(this.options,P))if(this.label=S,this.options=P,typeof S=="string")this.singleLabel||(this.container.innerText="",h.Q(this.container,"multiple"),this.singleLabel=h.p(this.container,h.a("a.label-name",{id:P==null?void 0:P.domId}))),this.singleLabel.textContent=S;else{this.container.innerText="",h.e(this.container,"multiple"),this.singleLabel=void 0;for(let V=0;V<S.length;V++){let k=S[V],l=(P==null?void 0:P.domId)&&`${P==null?void 0:P.domId}_${V}`;h.p(this.container,h.a("a.label-name",{id:l,"data-icon-label-count":S.length,"data-icon-label-index":V,role:"treeitem"},k)),V<S.length-1&&h.p(this.container,h.a("span.label-separator",void 0,(P==null?void 0:P.separator)||"/"))}}}}class y{constructor(S,P){this.container=S,this.supportCodicons=P,this.label=void 0,this.singleLabel=void 0}setLabel(S,P){if(this.label!==S||!Object(E.e)(this.options,P))if(this.label=S,this.options=P,typeof S=="string")this.singleLabel||(this.container.innerText="",h.Q(this.container,"multiple"),this.singleLabel=new f.a(h.p(this.container,h.a("a.label-name",{id:P==null?void 0:P.domId})),this.supportCodicons)),this.singleLabel.set(S,P==null?void 0:P.matches,P==null?void 0:P.title,P==null?void 0:P.labelEscapeNewLines);else{this.container.innerText="",h.e(this.container,"multiple"),this.singleLabel=void 0;let V=(P==null?void 0:P.separator)||"/",k=function(l,T,N){if(!N)return;let b=0;return l.map(g=>{let j={start:b,end:b+g.length},ie=N.map(U=>H.a.intersect(j,U)).filter(U=>!H.a.isEmpty(U)).map(({start:U,end:q})=>({start:U-b,end:q-b}));return b=j.end+T.length,ie})}(S,V,P==null?void 0:P.matches);for(let l=0;l<S.length;l++){let T=S[l],N=k?k[l]:void 0,b=(P==null?void 0:P.domId)&&`${P==null?void 0:P.domId}_${l}`,g=h.a("a.label-name",{id:b,"data-icon-label-count":S.length,"data-icon-label-index":l,role:"treeitem"});new f.a(h.p(this.container,g),this.supportCodicons).set(T,N,P==null?void 0:P.title,P==null?void 0:P.labelEscapeNewLines),l<S.length-1&&h.p(g,h.a("span.label-separator",void 0,V))}}}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return T}),o.d(w,"a",function(){return N}),o(273);var h=o(0),f=o(1),D=o(165),H=o(66),E=o(116),ge=o(6),W=o(82),Q=o(16),y=o(46);class C{constructor(g,j=0,ie=g.length,U=j-1){this.items=g,this.start=j,this.end=ie,this.index=U}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class S{constructor(g=[],j=10){this._initialize(g),this._limit=j,this._onChange()}add(g){this._history.delete(g),this._history.add(g),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(g){return this._history.has(g)}_onChange(){this._reduceToLimit();let g=this._elements;this._navigator=new C(g,0,g.length,g.length)}_reduceToLimit(){let g=this._elements;g.length>this._limit&&this._initialize(g.slice(g.length-this._limit))}_currentPosition(){let g=this._navigator.current();return g?this._elements.indexOf(g):-1}_initialize(g){this._history=new Set;for(let j of g)this._history.add(j)}get _elements(){let g=[];return this._history.forEach(j=>g.push(j)),g}}var P=o(105),V=o(44);let k=f.a,l={inputBackground:Q.a.fromHex("#3C3C3C"),inputForeground:Q.a.fromHex("#CCCCCC"),inputValidationInfoBorder:Q.a.fromHex("#55AAFF"),inputValidationInfoBackground:Q.a.fromHex("#063B49"),inputValidationWarningBorder:Q.a.fromHex("#B89500"),inputValidationWarningBackground:Q.a.fromHex("#352A05"),inputValidationErrorBorder:Q.a.fromHex("#BE1100"),inputValidationErrorBackground:Q.a.fromHex("#5A1D1D")};class T extends W.a{constructor(g,j,ie){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new ge.a),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new ge.a),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=j,this.options=ie||Object.create(null),Object(y.g)(this.options,l,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=f.p(g,k(".monaco-inputbox.idle"));let U=this.options.flexibleHeight?"textarea":"input",q=f.p(this.element,k(".wrapper"));if(this.input=f.p(q,k(U+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=f.p(q,k("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new P.b(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),f.p(g,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(se=>this.input.scrollTop=se.scrollTop));let B=ge.b.filter(Object(V.a)(document,"selectionchange"),()=>{let se=document.getSelection();return(se==null?void 0:se.anchorNode)===q});this._register(B(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&this.setPlaceHolder(this.placeholder),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new E.a(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage()}onFocus(){this._showMessage()}setPlaceHolder(g){this.placeholder=g,this.input.setAttribute("placeholder",g),this.input.title=g}setAriaLabel(g){this.ariaLabel=g,g?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(g){this.input.value!==g&&(this.input.value=g,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:f.G(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(g=null){this.input.select(),g&&this.input.setSelectionRange(g.start,g.end)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return f.H(this.input)}set width(g){if(this.options.flexibleHeight&&this.options.flexibleWidth){let j=0;this.mirror&&(j=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)),this.input.style.width=g-j+"px"}else this.input.style.width=g+"px";this.mirror&&(this.mirror.style.width=g+"px")}set paddingRight(g){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${g}px)`:this.input.style.paddingRight=g+"px",this.mirror&&(this.mirror.style.paddingRight=g+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;let g=this.cachedContentHeight,j=this.cachedHeight,ie=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:g,height:j}),this.scrollableElement.setScrollPosition({scrollTop:ie})}showMessage(g,j){this.message=g,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(g.type));let ie=this.stylesForType(this.message.type);this.element.style.border=ie.border?"1px solid "+ie.border:"",(this.hasFocus()||j)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let g=null;return this.validation&&(g=this.validation(this.value),g?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(g)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!g}stylesForType(g){switch(g){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(g){switch(g){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let g,j,ie=()=>g.style.width=f.H(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:U=>{if(!this.message)return null;g=f.p(U,k(".monaco-inputbox-container")),ie();let q={inline:!0,className:"monaco-inputbox-message"},B=this.message.formatContent?Object(D.b)(this.message.content,q):Object(D.c)(this.message.content,q);B.classList.add(this.classForType(this.message.type));let se=this.stylesForType(this.message.type);return B.style.backgroundColor=se.background?se.background.toString():"",B.style.color=se.foreground?se.foreground.toString():"",B.style.border=se.border?"1px solid "+se.border:"",f.p(g,B),null},onHide:()=>{this.state="closed"},layout:ie}),j=this.message.type===3?h.a("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?h.a("alertWarningMessage","Warning: {0}",this.message.content):h.a("alertInfoMessage","Info: {0}",this.message.content),H.a(j),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;let g=this.value,j=g.charCodeAt(g.length-1)===10?" ":"";g+j?this.mirror.textContent=g+j:this.mirror.innerText="\xA0",this.layout()}style(g){this.inputBackground=g.inputBackground,this.inputForeground=g.inputForeground,this.inputBorder=g.inputBorder,this.inputValidationInfoBackground=g.inputValidationInfoBackground,this.inputValidationInfoForeground=g.inputValidationInfoForeground,this.inputValidationInfoBorder=g.inputValidationInfoBorder,this.inputValidationWarningBackground=g.inputValidationWarningBackground,this.inputValidationWarningForeground=g.inputValidationWarningForeground,this.inputValidationWarningBorder=g.inputValidationWarningBorder,this.inputValidationErrorBackground=g.inputValidationErrorBackground,this.inputValidationErrorForeground=g.inputValidationErrorForeground,this.inputValidationErrorBorder=g.inputValidationErrorBorder,this.applyStyles()}applyStyles(){let g=this.inputBackground?this.inputBackground.toString():"",j=this.inputForeground?this.inputForeground.toString():"",ie=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=g,this.element.style.color=j,this.input.style.backgroundColor="inherit",this.input.style.color=j,this.element.style.borderWidth=ie?"1px":"",this.element.style.borderStyle=ie?"solid":"",this.element.style.borderColor=ie}layout(){if(!this.mirror)return;let g=this.cachedContentHeight;this.cachedContentHeight=f.G(this.mirror),g!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(g){let j=this.inputElement,ie=j.selectionStart,U=j.selectionEnd,q=j.value;ie!==null&&U!==null&&(this.value=q.substr(0,ie)+g+q.substr(U),j.setSelectionRange(ie+1,ie+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class N extends T{constructor(g,j,ie){super(g,j,ie),this.history=new S(ie.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let g=this.getNextValue();g&&(g=g===this.value?this.getNextValue():g),g&&(this.value=g,H.c(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let g=this.getPreviousValue();g&&(g=g===this.value?this.getPreviousValue():g),g&&(this.value=g,H.c(this.value))}getCurrentValue(){let g=this.history.current();return g||(g=this.history.last(),this.history.next()),g}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},function(Ie,w,o){"use strict";function h(f,D){if(!f)throw new Error(D?`Assertion failed (${D})`:"Assertion Failed")}o.d(w,"a",function(){return h})},function(Ie,w,o){"use strict";o.d(w,"b",function(){return S}),o.d(w,"a",function(){return P});var h=o(0),f=o(13),D=o(21),H=o(23),E=o(180),ge=o(72);function W(V){return V.toString()}class Q{constructor(k,l,T,N,b,g,j){this.beforeVersionId=k,this.afterVersionId=l,this.beforeEOL=T,this.afterEOL=N,this.beforeCursorState=b,this.afterCursorState=g,this.changes=j}static create(k,l){let T=k.getAlternativeVersionId(),N=C(k);return new Q(T,T,N,N,l,l,[])}append(k,l,T,N,b){l.length>0&&(this.changes=Object(E.b)(this.changes,l)),this.afterEOL=T,this.afterVersionId=N,this.afterCursorState=b}static _writeSelectionsSize(k){return 4+16*(k?k.length:0)}static _writeSelections(k,l,T){if(ge.f(k,l?l.length:0,T),T+=4,l)for(let N of l)ge.f(k,N.selectionStartLineNumber,T),T+=4,ge.f(k,N.selectionStartColumn,T),T+=4,ge.f(k,N.positionLineNumber,T),T+=4,ge.f(k,N.positionColumn,T),T+=4;return T}static _readSelections(k,l,T){let N=ge.c(k,l);l+=4;for(let b=0;b<N;b++){let g=ge.c(k,l);l+=4;let j=ge.c(k,l);l+=4;let ie=ge.c(k,l);l+=4;let U=ge.c(k,l);l+=4,T.push(new D.a(g,j,ie,U))}return l}serialize(){let k=10+Q._writeSelectionsSize(this.beforeCursorState)+Q._writeSelectionsSize(this.afterCursorState)+4;for(let N of this.changes)k+=N.writeSize();let l=new Uint8Array(k),T=0;ge.f(l,this.beforeVersionId,T),T+=4,ge.f(l,this.afterVersionId,T),T+=4,ge.g(l,this.beforeEOL,T),T+=1,ge.g(l,this.afterEOL,T),T+=1,T=Q._writeSelections(l,this.beforeCursorState,T),T=Q._writeSelections(l,this.afterCursorState,T),ge.f(l,this.changes.length,T),T+=4;for(let N of this.changes)T=N.write(l,T);return l.buffer}static deserialize(k){let l=new Uint8Array(k),T=0,N=ge.c(l,T);T+=4;let b=ge.c(l,T);T+=4;let g=ge.d(l,T);T+=1;let j=ge.d(l,T);T+=1;let ie=[];T=Q._readSelections(l,T,ie);let U=[];T=Q._readSelections(l,T,U);let q=ge.c(l,T);T+=4;let B=[];for(let se=0;se<q;se++)T=E.a.read(l,T,B);return new Q(N,b,g,j,ie,U,B)}}class y{constructor(k,l){this.model=k,this._data=Q.create(k,l)}get type(){return 0}get resource(){return H.a.isUri(this.model)?this.model:this.model.uri}get label(){return h.a("edit","Typing")}toString(){return(this._data instanceof Q?this._data:Q.deserialize(this._data)).changes.map(k=>k.toString()).join(", ")}matchesResource(k){return(H.a.isUri(this.model)?this.model:this.model.uri).toString()===k.toString()}setModel(k){this.model=k}canAppend(k){return this.model===k&&this._data instanceof Q}append(k,l,T,N,b){this._data instanceof Q&&this._data.append(k,l,T,N,b)}close(){this._data instanceof Q&&(this._data=this._data.serialize())}undo(){if(H.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Q&&(this._data=this._data.serialize());let k=Q.deserialize(this._data);this.model._applyUndo(k.changes,k.beforeEOL,k.beforeVersionId,k.beforeCursorState)}redo(){if(H.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Q&&(this._data=this._data.serialize());let k=Q.deserialize(this._data);this.model._applyRedo(k.changes,k.afterEOL,k.afterVersionId,k.afterCursorState)}}function C(V){return V.getEOL()===` -`?0:1}function S(V){return!!V&&(V instanceof y||V instanceof class{constructor(k,l){this.type=1,this.label=k,this._isOpen=!0,this._editStackElementsArr=l.slice(0),this._editStackElementsMap=new Map;for(let T of this._editStackElementsArr){let N=W(T.resource);this._editStackElementsMap.set(N,T)}this._delegate=null}get resources(){return this._editStackElementsArr.map(k=>k.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(k){let l=W(k);return this._editStackElementsMap.has(l)}setModel(k){let l=W(H.a.isUri(k)?k:k.uri);this._editStackElementsMap.has(l)&&this._editStackElementsMap.get(l).setModel(k)}canAppend(k){if(!this._isOpen)return!1;let l=W(k.uri);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).canAppend(k):!1}append(k,l,T,N,b){let g=W(k.uri);this._editStackElementsMap.get(g).append(k,l,T,N,b)}close(){this._isOpen=!1}undo(){this._isOpen=!1;for(let k of this._editStackElementsArr)k.undo()}redo(){for(let k of this._editStackElementsArr)k.redo()}split(){return this._editStackElementsArr}})}class P{constructor(k,l){this._model=k,this._undoRedoService=l}pushStackElement(){let k=this._undoRedoService.getLastElement(this._model.uri);S(k)&&k.close()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(k){let l=this._undoRedoService.getLastElement(this._model.uri);if(S(l)&&l.canAppend(this._model))return l;let T=new y(this._model,k);return this._undoRedoService.pushElement(T),T}pushEOL(k){let l=this._getOrCreateEditStackElement(null);this._model.setEOL(k),l.append(this._model,[],C(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(k,l,T){let N=this._getOrCreateEditStackElement(k),b=this._model.applyEdits(l,!0),g=P._computeCursorState(T,b),j=b.map((ie,U)=>({index:U,textChange:ie.textChange}));return j.sort((ie,U)=>ie.textChange.oldPosition===U.textChange.oldPosition?ie.index-U.index:ie.textChange.oldPosition-U.textChange.oldPosition),N.append(this._model,j.map(ie=>ie.textChange),C(this._model),this._model.getAlternativeVersionId(),g),g}static _computeCursorState(k,l){try{return k?k(l):null}catch(T){return Object(f.e)(T),null}}}},function(Ie,w,o){"use strict";(function(h){o.d(w,"a",function(){return P});var f,D,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((D={})[58]="%3A",D[47]="%2F",D[63]="%3F",D[35]="%23",D[91]="%5B",D[93]="%5D",D[64]="%40",D[33]="%21",D[36]="%24",D[38]="%26",D[39]="%27",D[40]="%28",D[41]="%29",D[42]="%2A",D[43]="%2B",D[44]="%2C",D[59]="%3B",D[61]="%3D",D[32]="%20",D);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,o(86))},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H});let h=!1,f=null;function D(E){if(!E.parent||E.parent===E)return null;try{let ge=E.location,W=E.parent.location;if(ge.origin!=="null"&&W.origin!=="null"&&(ge.protocol!==W.protocol||ge.hostname!==W.hostname||ge.port!==W.port))return h=!0,null}catch(ge){return h=!0,null}return E.parent}class H{static getSameOriginWindowChain(){if(!f){f=[];let ge,W=window;do ge=D(W),ge?f.push({window:W,iframeElement:W.frameElement||null}):f.push({window:W,iframeElement:null}),W=ge;while(W)}return f.slice(0)}static hasDifferentOriginAncestor(){return f||this.getSameOriginWindowChain(),h}static getPositionOfChildWindowRelativeToAncestorWindow(ge,W){if(!W||ge===W)return{top:0,left:0};let Q=0,y=0,C=this.getSameOriginWindowChain();for(let S of C){if(Q+=S.window.scrollY,y+=S.window.scrollX,S.window===W||!S.iframeElement)break;let P=S.iframeElement.getBoundingClientRect();Q+=P.top,y+=P.left}return{top:Q,left:y}}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(72),f=o(23);function D(H){let E=JSON.parse(H);return E=function ge(W,Q=0){if(!W||Q>200)return W;if(typeof W=="object"){switch(W.$mid){case 1:return f.a.revive(W);case 2:return new RegExp(W.source,W.flags)}if(W instanceof h.a||W instanceof Uint8Array)return W;if(Array.isArray(W))for(let y=0;y<W.length;++y)W[y]=ge(W[y],Q+1);else for(let y in W)Object.hasOwnProperty.call(W,y)&&(W[y]=ge(W[y],Q+1))}return W}(E),E}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return D}),o.d(w,"a",function(){return H});var h=o(8),f=o(42);function D(E){return E.replace(/[\\/]/g,f.e.sep)}function H(E,ge,W,Q=f.h){if(E===ge)return!0;if(!E||!ge||ge.length>E.length)return!1;if(W){if(!Object(h.T)(E,ge))return!1;if(ge.length===E.length)return!0;let y=ge.length;return ge.charAt(ge.length-1)===Q&&y--,E.charAt(y)===Q}return ge.charAt(ge.length-1)!==Q&&(ge+=Q),E.indexOf(ge)===0}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D}),o.d(w,"b",function(){return H});var h=o(72),f=o(132);class D{constructor(W,Q,y,C){this.oldPosition=W,this.oldText=Q,this.newPosition=y,this.newText=C}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${this.newText}")`:this.newText.length===0?`(delete@${this.oldPosition} "${this.oldText}")`:`(replace@${this.oldPosition} "${this.oldText}" with "${this.newText}")`}static _writeStringSize(W){return 4+2*W.length}static _writeString(W,Q,y){let C=Q.length;h.f(W,C,y),y+=4;for(let S=0;S<C;S++)h.e(W,Q.charCodeAt(S),y),y+=2;return y}static _readString(W,Q){let y=h.c(W,Q);return Q+=4,Object(f.b)(W,Q,y)}writeSize(){return 8+D._writeStringSize(this.oldText)+D._writeStringSize(this.newText)}write(W,Q){return h.f(W,this.oldPosition,Q),Q+=4,h.f(W,this.newPosition,Q),Q+=4,Q=D._writeString(W,this.oldText,Q),Q=D._writeString(W,this.newText,Q)}static read(W,Q,y){let C=h.c(W,Q);Q+=4;let S=h.c(W,Q);Q+=4;let P=D._readString(W,Q);Q+=D._writeStringSize(P);let V=D._readString(W,Q);return Q+=D._writeStringSize(V),y.push(new D(C,P,S,V)),Q}}function H(ge,W){return ge===null||ge.length===0?W:new E(ge,W).compress()}class E{constructor(W,Q){this._prevEdits=W,this._currEdits=Q,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let W=0,Q=0,y=this._getPrev(W),C=this._getCurr(Q);for(;W<this._prevLen||Q<this._currLen;){if(y===null){this._acceptCurr(C),C=this._getCurr(++Q);continue}if(C===null){this._acceptPrev(y),y=this._getPrev(++W);continue}if(C.oldEnd<=y.newPosition){this._acceptCurr(C),C=this._getCurr(++Q);continue}if(y.newEnd<=C.oldPosition){this._acceptPrev(y),y=this._getPrev(++W);continue}if(C.oldPosition<y.newPosition){let[k,l]=E._splitCurr(C,y.newPosition-C.oldPosition);this._acceptCurr(k),C=l;continue}if(y.newPosition<C.oldPosition){let[k,l]=E._splitPrev(y,C.oldPosition-y.newPosition);this._acceptPrev(k),y=l;continue}let P,V;if(C.oldEnd===y.newEnd)P=y,V=C,y=this._getPrev(++W),C=this._getCurr(++Q);else if(C.oldEnd<y.newEnd){let[k,l]=E._splitPrev(y,C.oldLength);P=k,V=C,y=l,C=this._getCurr(++Q)}else{let[k,l]=E._splitCurr(C,y.newLength);P=y,V=k,y=this._getPrev(++W),C=l}this._result[this._resultLen++]=new D(P.oldPosition,P.oldText,V.newPosition,V.newText),this._prevDeltaOffset+=P.newLength-P.oldLength,this._currDeltaOffset+=V.newLength-V.oldLength}let S=E._merge(this._result);return E._removeNoOps(S)}_acceptCurr(W){this._result[this._resultLen++]=E._rebaseCurr(this._prevDeltaOffset,W),this._currDeltaOffset+=W.newLength-W.oldLength}_getCurr(W){return W<this._currLen?this._currEdits[W]:null}_acceptPrev(W){this._result[this._resultLen++]=E._rebasePrev(this._currDeltaOffset,W),this._prevDeltaOffset+=W.newLength-W.oldLength}_getPrev(W){return W<this._prevLen?this._prevEdits[W]:null}static _rebaseCurr(W,Q){return new D(Q.oldPosition-W,Q.oldText,Q.newPosition,Q.newText)}static _rebasePrev(W,Q){return new D(Q.oldPosition,Q.oldText,Q.newPosition+W,Q.newText)}static _splitPrev(W,Q){let y=W.newText.substr(0,Q),C=W.newText.substr(Q);return[new D(W.oldPosition,W.oldText,W.newPosition,y),new D(W.oldEnd,"",W.newPosition+Q,C)]}static _splitCurr(W,Q){let y=W.oldText.substr(0,Q),C=W.oldText.substr(Q);return[new D(W.oldPosition,y,W.newPosition,W.newText),new D(W.oldPosition+Q,C,W.newEnd,"")]}static _merge(W){if(W.length===0)return W;let Q=[],y=0,C=W[0];for(let S=1;S<W.length;S++){let P=W[S];C.oldEnd===P.oldPosition?C=new D(C.oldPosition,C.oldText+P.oldText,C.newPosition,C.newText+P.newText):(Q[y++]=C,C=P)}return Q[y++]=C,Q}static _removeNoOps(W){if(W.length===0)return W;let Q=[],y=0;for(let C=0;C<W.length;C++){let S=W[C];S.oldText!==S.newText&&(Q[y++]=S)}return Q}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge});var h=o(8),f=o(62),D=o(22),H=o(81),E=o(3);class ge{static deleteRight(Q,y,C,S){let P=[],V=Q!==3;for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T;if(N.isEmpty()){let b=T.getPosition(),g=H.a.right(y,C,b.lineNumber,b.column);N=new E.a(g.lineNumber,g.column,b.lineNumber,b.column)}N.isEmpty()?P[k]=null:(N.startLineNumber!==N.endLineNumber&&(V=!0),P[k]=new f.a(N,""))}return[V,P]}static _isAutoClosingPairDelete(Q,y,C){if(Q.autoClosingBrackets==="never"&&Q.autoClosingQuotes==="never")return!1;for(let S=0,P=C.length;S<P;S++){let V=C[S],k=V.getPosition();if(!V.isEmpty())return!1;let l=y.getLineContent(k.lineNumber),T=l[k.column-2],N=Q.autoClosingPairsOpen2.get(T);if(!N)return!1;if(Object(D.g)(T)){if(Q.autoClosingQuotes==="never")return!1}else if(Q.autoClosingBrackets==="never")return!1;let b=l[k.column-1],g=!1;for(let j of N)j.open===T&&j.close===b&&(g=!0);if(!g)return!1}return!0}static _runAutoClosingPairDelete(Q,y,C){let S=[];for(let P=0,V=C.length;P<V;P++){let k=C[P].getPosition(),l=new E.a(k.lineNumber,k.column-1,k.lineNumber,k.column+1);S[P]=new f.a(l,"")}return[!0,S]}static deleteLeft(Q,y,C,S){if(this._isAutoClosingPairDelete(y,C,S))return this._runAutoClosingPairDelete(y,C,S);let P=[],V=Q!==2;for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T;if(N.isEmpty()){let b=T.getPosition();if(y.useTabStops&&b.column>1){let g=C.getLineContent(b.lineNumber),j=h.w(g),ie=j===-1?g.length+1:j+1;if(b.column<=ie){let U=D.a.visibleColumnFromColumn2(y,C,b),q=D.a.prevIndentTabStop(U,y.indentSize),B=D.a.columnFromVisibleColumn2(y,C,b.lineNumber,q);N=new E.a(b.lineNumber,B,b.lineNumber,b.column)}else N=new E.a(b.lineNumber,b.column-1,b.lineNumber,b.column)}else{let g=H.a.left(y,C,b.lineNumber,b.column);N=new E.a(g.lineNumber,g.column,b.lineNumber,b.column)}}N.isEmpty()?P[k]=null:(N.startLineNumber!==N.endLineNumber&&(V=!0),P[k]=new f.a(N,""))}return[V,P]}static cut(Q,y,C){let S=[];for(let P=0,V=C.length;P<V;P++){let k=C[P];if(k.isEmpty())if(Q.emptySelectionClipboard){let l,T,N,b,g=k.getPosition();g.lineNumber<y.getLineCount()?(l=g.lineNumber,T=1,N=g.lineNumber+1,b=1):g.lineNumber>1?(l=g.lineNumber-1,T=y.getLineMaxColumn(g.lineNumber-1),N=g.lineNumber,b=y.getLineMaxColumn(g.lineNumber)):(l=g.lineNumber,T=1,N=g.lineNumber,b=y.getLineMaxColumn(g.lineNumber));let j=new E.a(l,T,N,b);j.isEmpty()?S[P]=null:S[P]=new f.a(j,"")}else S[P]=null;else S[P]=new f.a(k,"")}return new D.e(0,S,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},function(Ie,w,o){"use strict";o.d(w,"b",function(){return E}),o.d(w,"a",function(){return ge});var h=o(8),f=o(111),D=o(90);let H={getInitialState:()=>D.c,tokenize2:(W,Q,y)=>Object(D.e)(0,W,Q,y)};function E(W,Q=H){return function(y,C){let S='<div class="monaco-tokenized-source">',P=y.split(/\r\n|\r|\n/),V=C.getInitialState();for(let k=0,l=P.length;k<l;k++){let T=P[k];k>0&&(S+="<br/>");let N=C.tokenize2(T,V,0);f.a.convertToEndOffset(N.tokens,T.length);let b=new f.a(N.tokens,T).inflate(),g=0;for(let j=0,ie=b.getCount();j<ie;j++){let U=b.getClassName(j),q=b.getEndOffset(j);S+=`<span class="${U}">${h.u(T.substring(g,q))}</span>`,g=q}V=N.endState}return S+="</div>",S}(W,Q||H)}function ge(W,Q,y,C,S,P,V){let k="<div>",l=C,T=0;for(let N=0,b=Q.getCount();N<b;N++){let g=Q.getEndOffset(N);if(g<=C)continue;let j="";for(;l<g&&l<S;l++){let ie=W.charCodeAt(l);switch(ie){case 9:let U=P-(l+T)%P;for(T+=U-1;U>0;)j+=V?" ":" ",U--;break;case 60:j+="<";break;case 62:j+=">";break;case 38:j+="&";break;case 0:j+="�";break;case 65279:case 8232:case 8233:case 133:j+="\uFFFD";break;case 13:j+="​";break;case 32:j+=V?" ":" ";break;default:j+=String.fromCharCode(ie)}}if(k+=`<span style="${Q.getInlineStyle(N,y)}">${j}</span>`,g>S||l>=S)break}return k+="</div>",k}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return B}),o.d(w,"b",function(){return se}),o.d(w,"c",function(){return ke});var h=o(6),f=o(2),D=o(11),H=o(13),E=o(26),ge=o(30),W=o(12),Q=o(146),y=o(152),C=o(54),S=o(20),P=o(25),V=o(19),k=o(102),l=o(150),T=o(89),N=o(175),b=o(184),g=function(he,Ce,Ae,L){var nt,ct=arguments.length,Ye=ct<3?Ce:L===null?L=Object.getOwnPropertyDescriptor(Ce,Ae):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ye=Reflect.decorate(he,Ce,Ae,L);else for(var ht=he.length-1;ht>=0;ht--)(nt=he[ht])&&(Ye=(ct<3?nt(Ye):ct>3?nt(Ce,Ae,Ye):nt(Ce,Ae))||Ye);return ct>3&&Ye&&Object.defineProperty(Ce,Ae,Ye),Ye},j=function(he,Ce){return function(Ae,L){Ce(Ae,L,he)}};function ie(he){return he.toString()}class U{constructor(Ce,Ae,L){this._modelEventListeners=new f.b,this.model=Ce,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(Ce.onWillDispose(()=>Ae(Ce))),this._modelEventListeners.add(Ce.onDidChangeLanguage(nt=>L(Ce,nt)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(Ce){this._disposeLanguageSelection(),this._languageSelection=Ce,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(Ce.languageIdentifier)),this.model.setMode(Ce.languageIdentifier)}}let q=D.d||D.f?1:2,B=class Hd extends f.a{constructor(Ce,Ae,L,nt,ct){super(),this._configurationService=Ce,this._resourcePropertiesService=Ae,this._themeService=L,this._logService=nt,this._undoRedoService=ct,this._onModelAdded=this._register(new h.a),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new h.a),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new h.a),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new Y(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new xe(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(Ce,Ae){let L=E.d.tabSize;if(Ce.editor&&Ce.editor.tabSize!==void 0){let z=parseInt(Ce.editor.tabSize,10);isNaN(z)||(L=z),L<1&&(L=1)}let nt=L;if(Ce.editor&&Ce.editor.indentSize!==void 0&&Ce.editor.indentSize!=="tabSize"){let z=parseInt(Ce.editor.indentSize,10);isNaN(z)||(nt=z),nt<1&&(nt=1)}let ct=E.d.insertSpaces;Ce.editor&&Ce.editor.insertSpaces!==void 0&&(ct=Ce.editor.insertSpaces!=="false"&&Boolean(Ce.editor.insertSpaces));let Ye=q,ht=Ce.eol;ht===`\r +`&&(_=2),this._modelData.model.getValue(_,a)}setValue(i){this._modelData&&this._modelData.model.setValue(i)}getModel(){return this._modelData?this._modelData.model:null}setModel(i=null){let a=i;if(this._modelData===null&&a===null||this._modelData&&this._modelData.model===a)return;let _=this.hasTextFocus(),R=this._detachModel();this._attachModel(a),_&&this.hasModel()&&this.focus();let K={oldModelUrl:R?R.uri:null,newModelUrl:a?a.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(K),this._postDetachModelCleanup(R)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let i in this._decorationTypeSubtypes){let a=this._decorationTypeSubtypes[i];for(let _ in a)this._removeDecorationType(i+"-"+_)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(i,a,_){let R=i.model.validatePosition({lineNumber:a,column:_}),K=i.viewModel.coordinatesConverter.convertModelPositionToViewPosition(R);return i.viewModel.viewLayout.getVerticalOffsetForLineNumber(K.lineNumber)}getTopForLineNumber(i){return this._modelData?Ud._getVerticalOffsetForPosition(this._modelData,i,1):-1}getTopForPosition(i,a){return this._modelData?Ud._getVerticalOffsetForPosition(this._modelData,i,a):-1}setHiddenAreas(i){this._modelData&&this._modelData.viewModel.setHiddenAreas(i.map(a=>Nt.a.lift(a)))}getVisibleColumnFromPosition(i){if(!this._modelData)return i.column;let a=this._modelData.model.validatePosition(i),_=this._modelData.model.getOptions().tabSize;return _i.a.visibleColumnFromColumn(this._modelData.model.getLineContent(a.lineNumber),a.column,_)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(i){if(this._modelData){if(!At.a.isIPosition(i))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:i.lineNumber,selectionStartColumn:i.column,positionLineNumber:i.lineNumber,positionColumn:i.column}])}}_sendRevealRange(i,a,_,R){if(!this._modelData)return;if(!Nt.a.isIRange(i))throw new Error("Invalid arguments");let K=this._modelData.model.validateRange(i),we=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(K);this._modelData.viewModel.revealRange("api",_,we,a,R)}revealLine(i,a=0){this._revealLine(i,0,a)}revealLineInCenter(i,a=0){this._revealLine(i,1,a)}revealLineInCenterIfOutsideViewport(i,a=0){this._revealLine(i,2,a)}revealLineNearTop(i,a=0){this._revealLine(i,5,a)}_revealLine(i,a,_){if(typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i,1,i,1),a,!1,_)}revealPosition(i,a=0){this._revealPosition(i,0,!0,a)}revealPositionInCenter(i,a=0){this._revealPosition(i,1,!0,a)}revealPositionInCenterIfOutsideViewport(i,a=0){this._revealPosition(i,2,!0,a)}revealPositionNearTop(i,a=0){this._revealPosition(i,5,!0,a)}_revealPosition(i,a,_,R){if(!At.a.isIPosition(i))throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i.lineNumber,i.column,i.lineNumber,i.column),a,_,R)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(i){let a=C.a.isISelection(i),_=Nt.a.isIRange(i);if(!a&&!_)throw new Error("Invalid arguments");if(a)this._setSelectionImpl(i);else if(_){let R={selectionStartLineNumber:i.startLineNumber,selectionStartColumn:i.startColumn,positionLineNumber:i.endLineNumber,positionColumn:i.endColumn};this._setSelectionImpl(R)}}_setSelectionImpl(i){if(!this._modelData)return;let a=new C.a(i.selectionStartLineNumber,i.selectionStartColumn,i.positionLineNumber,i.positionColumn);this._modelData.viewModel.setSelections("api",[a])}revealLines(i,a,_=0){this._revealLines(i,a,0,_)}revealLinesInCenter(i,a,_=0){this._revealLines(i,a,1,_)}revealLinesInCenterIfOutsideViewport(i,a,_=0){this._revealLines(i,a,2,_)}revealLinesNearTop(i,a,_=0){this._revealLines(i,a,5,_)}_revealLines(i,a,_,R){if(typeof i!="number"||typeof a!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Nt.a(i,1,a,1),_,!1,R)}revealRange(i,a=0,_=!1,R=!0){this._revealRange(i,_?1:0,R,a)}revealRangeInCenter(i,a=0){this._revealRange(i,1,!0,a)}revealRangeInCenterIfOutsideViewport(i,a=0){this._revealRange(i,2,!0,a)}revealRangeNearTop(i,a=0){this._revealRange(i,5,!0,a)}revealRangeNearTopIfOutsideViewport(i,a=0){this._revealRange(i,6,!0,a)}revealRangeAtTop(i,a=0){this._revealRange(i,3,!0,a)}_revealRange(i,a,_,R){if(!Nt.a.isIRange(i))throw new Error("Invalid arguments");this._sendRevealRange(Nt.a.lift(i),a,_,R)}setSelections(i,a="api"){if(this._modelData){if(!i||i.length===0)throw new Error("Invalid arguments");for(let _=0,R=i.length;_<R;_++)if(!C.a.isISelection(i[_]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(a,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(i,a=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:i},a)}}setScrollTop(i,a=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:i},a)}}setScrollPosition(i,a=1){this._modelData&&this._modelData.viewModel.setScrollPosition(i,a)}saveViewState(){if(!this._modelData)return null;let i={},a=Object.keys(this._contributions);for(let _ of a){let R=this._contributions[_];typeof R.saveViewState=="function"&&(i[_]=R.saveViewState())}return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:i}}restoreViewState(i){if(!this._modelData||!this._modelData.hasRealView)return;let a=i;if(a&&a.cursorState&&a.viewState){let _=a.cursorState;Array.isArray(_)?this._modelData.viewModel.restoreCursorState(_):this._modelData.viewModel.restoreCursorState([_]);let R=a.contributionsState||{},K=Object.keys(this._contributions);for(let Pe=0,Ve=K.length;Pe<Ve;Pe++){let Je=K[Pe],at=this._contributions[Je];typeof at.restoreViewState=="function"&&at.restoreViewState(R[Je])}let we=this._modelData.viewModel.reduceRestoreState(a.viewState);this._modelData.view.restoreState(we)}}getContribution(i){return this._contributions[i]||null}getActions(){let i=[],a=Object.keys(this._actions);for(let _=0,R=a.length;_<R;_++){let K=a[_];i.push(this._actions[K])}return i}getSupportedActions(){let i=this.getActions();return i=i.filter(a=>a.isSupported()),i}getAction(i){return this._actions[i]||null}trigger(i,a,_){switch(_=_||{},a){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(i);case"type":{let K=_;return void this._type(i,K.text||"")}case"replacePreviousChar":{let K=_;return void this._replacePreviousChar(i,K.text||"",K.replaceCharCnt||0)}case"paste":{let K=_;return void this._paste(i,K.text||"",K.pasteOnNewLine||!1,K.multicursorText||null,K.mode||null)}case"cut":return void this._cut(i)}let R=this.getAction(a);R?Promise.resolve(R.run()).then(void 0,O.e):this._modelData&&this._triggerEditorCommand(i,a,_)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(i){this._modelData&&(this._modelData.viewModel.endComposition(i),this._onDidCompositionEnd.fire())}_type(i,a){this._modelData&&a.length!==0&&(i==="keyboard"&&this._onWillType.fire(a),this._modelData.viewModel.type(a,i),i==="keyboard"&&this._onDidType.fire(a))}_replacePreviousChar(i,a,_){this._modelData&&this._modelData.viewModel.replacePreviousChar(a,_,i)}_paste(i,a,_,R,K){if(!this._modelData||a.length===0)return;let we=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(a,_,R,i);let Pe=this._modelData.viewModel.getSelection().getStartPosition();i==="keyboard"&&this._onDidPaste.fire({range:new Nt.a(we.lineNumber,we.column,Pe.lineNumber,Pe.column),mode:K})}_cut(i){this._modelData&&this._modelData.viewModel.cut(i)}_triggerEditorCommand(i,a,_){let R=Q.d.getEditorCommand(a);return!!R&&((_=_||{}).source=i,this._instantiationService.invokeFunction(K=>{Promise.resolve(R.runEditorCommand(K,this,_)).then(void 0,O.e)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(72)&&(this._modelData.model.pushStackElement(),!0)}executeEdits(i,a,_){if(!this._modelData||this._configuration.options.get(72))return!1;let R;return R=_?Array.isArray(_)?()=>_:_:()=>null,this._modelData.viewModel.executeEdits(i,a,R),!0}executeCommand(i,a){this._modelData&&this._modelData.viewModel.executeCommand(a,i)}executeCommands(i,a){this._modelData&&this._modelData.viewModel.executeCommands(a,i)}changeDecorations(i){return this._modelData?this._modelData.model.changeDecorations(i,this._id):null}getLineDecorations(i){return this._modelData?this._modelData.model.getLineDecorations(i,this._id,Object(fe.l)(this._configuration.options)):null}deltaDecorations(i,a){return this._modelData?i.length===0&&a.length===0?i:this._modelData.model.deltaDecorations(i,a,this._id):[]}removeDecorations(i){let a=this._decorationTypeKeysToIds[i];a&&this.deltaDecorations(a,[]),this._decorationTypeKeysToIds.hasOwnProperty(i)&&delete this._decorationTypeKeysToIds[i],this._decorationTypeSubtypes.hasOwnProperty(i)&&delete this._decorationTypeSubtypes[i]}getLayoutInfo(){return this._configuration.options.get(117)}createOverviewRuler(i){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(i):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(i)}layout(i){this._configuration.observeReferenceElement(i),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(i){let a={widget:i,position:i.getPosition()};this._contentWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[i.getId()]=a,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(a)}layoutContentWidget(i){let a=i.getId();if(this._contentWidgets.hasOwnProperty(a)){let _=this._contentWidgets[a];_.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(_)}}removeContentWidget(i){let a=i.getId();if(this._contentWidgets.hasOwnProperty(a)){let _=this._contentWidgets[a];delete this._contentWidgets[a],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(_)}}addOverlayWidget(i){let a={widget:i,position:i.getPosition()};this._overlayWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[i.getId()]=a,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(a)}layoutOverlayWidget(i){let a=i.getId();if(this._overlayWidgets.hasOwnProperty(a)){let _=this._overlayWidgets[a];_.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(_)}}removeOverlayWidget(i){let a=i.getId();if(this._overlayWidgets.hasOwnProperty(a)){let _=this._overlayWidgets[a];delete this._overlayWidgets[a],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(_)}}changeViewZones(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(i)}getTargetAtClientPoint(i,a){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(i,a):null}getScrolledVisiblePosition(i){if(!this._modelData||!this._modelData.hasRealView)return null;let a=this._modelData.model.validatePosition(i),_=this._configuration.options,R=_.get(117);return{top:Ud._getVerticalOffsetForPosition(this._modelData,a.lineNumber,a.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(a.lineNumber,a.column)+R.glyphMarginWidth+R.lineNumbersWidth+R.decorationsWidth-this.getScrollLeft(),height:_.get(51)}}getOffsetForColumn(i,a){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(i,a):-1}render(i=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,i)}setAriaOptions(i){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(i)}applyFontInfo(i){W.a.applyFontInfoSlow(i,this._configuration.options.get(36))}_attachModel(i){if(!i)return void(this._modelData=null);let a=[];this._domElement.setAttribute("data-mode-id",i.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(i.isDominatedByLongLines()),this._configuration.setMaxLineNumber(i.getLineCount()),i.onBeforeAttached();let _=new yo(this._id,this._configuration,i,Do.create(),ps.create(this._configuration.options),we=>f.Y(we));a.push(i.onDidChangeDecorations(we=>this._onDidChangeModelDecorations.fire(we))),a.push(i.onDidChangeLanguage(we=>{this._domElement.setAttribute("data-mode-id",i.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(we)})),a.push(i.onDidChangeLanguageConfiguration(we=>this._onDidChangeModelLanguageConfiguration.fire(we))),a.push(i.onDidChangeContent(we=>this._onDidChangeModelContent.fire(we))),a.push(i.onDidChangeOptions(we=>this._onDidChangeModelOptions.fire(we))),a.push(i.onWillDispose(()=>this.setModel(null))),a.push(_.onEvent(we=>{switch(we.kind){case 0:this._onDidContentSizeChange.fire(we);break;case 1:this._editorTextFocus.setValue(we.hasFocus);break;case 2:this._onDidScrollChange.fire(we);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{we.reachedMaxCursorCount&&this._notificationService.warn(h.a("cursors.maximum","The number of cursors has been limited to {0}.",Dr.MAX_CURSOR_COUNT));let Pe=[];for(let at=0,bt=we.selections.length;at<bt;at++)Pe[at]=we.selections[at].getPosition();let Ve={position:Pe[0],secondaryPositions:Pe.slice(1),reason:we.reason,source:we.source};this._onDidChangeCursorPosition.fire(Ve);let Je={selection:we.selections[0],secondarySelections:we.selections.slice(1),modelVersionId:we.modelVersionId,oldSelections:we.oldSelections,oldModelVersionId:we.oldModelVersionId,source:we.source,reason:we.reason};this._onDidChangeCursorSelection.fire(Je);break}}}));let[R,K]=this._createView(_);if(K){this._domElement.appendChild(R.domNode.domNode);let we=Object.keys(this._contentWidgets);for(let Pe=0,Ve=we.length;Pe<Ve;Pe++){let Je=we[Pe];R.addContentWidget(this._contentWidgets[Je])}we=Object.keys(this._overlayWidgets);for(let Pe=0,Ve=we.length;Pe<Ve;Pe++){let Je=we[Pe];R.addOverlayWidget(this._overlayWidgets[Je])}R.render(!1,!0),R.domNode.domNode.setAttribute("data-uri",i.uri.toString())}this._modelData=new ka(i,_,R,K,a)}_createView(i){let a;a=this.isSimpleWidget?{paste:(R,K,we,Pe)=>{this._paste("keyboard",R,K,we,Pe)},type:R=>{this._type("keyboard",R)},replacePreviousChar:(R,K)=>{this._replacePreviousChar("keyboard",R,K)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(R,K,we,Pe)=>{let Ve={text:R,pasteOnNewLine:K,multicursorText:we,mode:Pe};this._commandService.executeCommand("paste",Ve)},type:R=>{let K={text:R};this._commandService.executeCommand("type",K)},replacePreviousChar:(R,K)=>{let we={text:R,replaceCharCnt:K};this._commandService.executeCommand("replacePreviousChar",we)},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};let _=new Wi(i.coordinatesConverter);return _.onKeyDown=R=>this._onKeyDown.fire(R),_.onKeyUp=R=>this._onKeyUp.fire(R),_.onContextMenu=R=>this._onContextMenu.fire(R),_.onMouseMove=R=>this._onMouseMove.fire(R),_.onMouseLeave=R=>this._onMouseLeave.fire(R),_.onMouseDown=R=>this._onMouseDown.fire(R),_.onMouseUp=R=>this._onMouseUp.fire(R),_.onMouseDrag=R=>this._onMouseDrag.fire(R),_.onMouseDrop=R=>this._onMouseDrop.fire(R),_.onMouseWheel=R=>this._onMouseWheel.fire(R),[new sn(a,this._configuration,this._themeService,i,_,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(i){i&&i.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;let i=this._modelData.model,a=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),a&&this._domElement.contains(a)&&this._domElement.removeChild(a),i}_removeDecorationType(i){this._codeEditorService.removeDecorationType(i)}hasModel(){return this._modelData!==null}};ho=Oo([Ao(3,hs.a),Ao(4,y.a),Ao(5,qo.b),Ao(6,Ss.b),Ao(7,ht.c),Ao(8,Ca.a),Ao(9,xa.b)],ho);class Ks extends E.a{constructor(){super(),this._onDidChangeToTrue=this._register(new H.a),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new H.a),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(i){let a=i?2:1;this._value!==a&&(this._value=a,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class Ts extends E.a{constructor(i,a){super(),this._editor=i,a.createKey("editorId",i.getId()),this._editorSimpleInput=er.a.editorSimpleInput.bindTo(a),this._editorFocus=er.a.focus.bindTo(a),this._textInputFocus=er.a.textInputFocus.bindTo(a),this._editorTextFocus=er.a.editorTextFocus.bindTo(a),this._editorTabMovesFocus=er.a.tabMovesFocus.bindTo(a),this._editorReadonly=er.a.readOnly.bindTo(a),this._editorColumnSelection=er.a.columnSelection.bindTo(a),this._hasMultipleSelections=er.a.hasMultipleSelections.bindTo(a),this._hasNonEmptySelection=er.a.hasNonEmptySelection.bindTo(a),this._canUndo=er.a.canUndo.bindTo(a),this._canRedo=er.a.canRedo.bindTo(a),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){let i=this._editor.getOptions();this._editorTabMovesFocus.set(i.get(116)),this._editorReadonly.set(i.get(72)),this._editorColumnSelection.set(i.get(13))}_updateFromSelection(){let i=this._editor.getSelections();i?(this._hasMultipleSelections.set(i.length>1),this._hasNonEmptySelection.set(i.some(a=>!a.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){let i=this._editor.getModel();this._canUndo.set(Boolean(i&&i.canUndo())),this._canRedo.set(Boolean(i&&i.canRedo()))}}class Xr extends E.a{constructor(i,a){super(),this._editor=i,this._contextKeyService=a,this._langId=er.a.languageId.bindTo(a),this._hasCompletionItemProvider=er.a.hasCompletionItemProvider.bindTo(a),this._hasCodeActionsProvider=er.a.hasCodeActionsProvider.bindTo(a),this._hasCodeLensProvider=er.a.hasCodeLensProvider.bindTo(a),this._hasDefinitionProvider=er.a.hasDefinitionProvider.bindTo(a),this._hasDeclarationProvider=er.a.hasDeclarationProvider.bindTo(a),this._hasImplementationProvider=er.a.hasImplementationProvider.bindTo(a),this._hasTypeDefinitionProvider=er.a.hasTypeDefinitionProvider.bindTo(a),this._hasHoverProvider=er.a.hasHoverProvider.bindTo(a),this._hasDocumentHighlightProvider=er.a.hasDocumentHighlightProvider.bindTo(a),this._hasDocumentSymbolProvider=er.a.hasDocumentSymbolProvider.bindTo(a),this._hasReferenceProvider=er.a.hasReferenceProvider.bindTo(a),this._hasRenameProvider=er.a.hasRenameProvider.bindTo(a),this._hasSignatureHelpProvider=er.a.hasSignatureHelpProvider.bindTo(a),this._hasDocumentFormattingProvider=er.a.hasDocumentFormattingProvider.bindTo(a),this._hasDocumentSelectionFormattingProvider=er.a.hasDocumentSelectionFormattingProvider.bindTo(a),this._hasMultipleDocumentFormattingProvider=er.a.hasMultipleDocumentFormattingProvider.bindTo(a),this._hasMultipleDocumentSelectionFormattingProvider=er.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(a),this._isInWalkThrough=er.a.isInWalkThroughSnippet.bindTo(a);let _=()=>this._update();this._register(i.onDidChangeModel(_)),this._register(i.onDidChangeModelLanguage(_)),this._register(X.d.onDidChange(_)),this._register(X.a.onDidChange(_)),this._register(X.b.onDidChange(_)),this._register(X.f.onDidChange(_)),this._register(X.e.onDidChange(_)),this._register(X.q.onDidChange(_)),this._register(X.D.onDidChange(_)),this._register(X.p.onDidChange(_)),this._register(X.i.onDidChange(_)),this._register(X.m.onDidChange(_)),this._register(X.v.onDidChange(_)),this._register(X.w.onDidChange(_)),this._register(X.g.onDidChange(_)),this._register(X.j.onDidChange(_)),this._register(X.y.onDidChange(_)),_()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){let i=this._editor.getModel();i?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(i.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(X.d.has(i)),this._hasCodeActionsProvider.set(X.a.has(i)),this._hasCodeLensProvider.set(X.b.has(i)),this._hasDefinitionProvider.set(X.f.has(i)),this._hasDeclarationProvider.set(X.e.has(i)),this._hasImplementationProvider.set(X.q.has(i)),this._hasTypeDefinitionProvider.set(X.D.has(i)),this._hasHoverProvider.set(X.p.has(i)),this._hasDocumentHighlightProvider.set(X.i.has(i)),this._hasDocumentSymbolProvider.set(X.m.has(i)),this._hasReferenceProvider.set(X.v.has(i)),this._hasRenameProvider.set(X.w.has(i)),this._hasSignatureHelpProvider.set(X.y.has(i)),this._hasDocumentFormattingProvider.set(X.g.has(i)||X.j.has(i)),this._hasDocumentSelectionFormattingProvider.set(X.j.has(i)),this._hasMultipleDocumentFormattingProvider.set(X.g.all(i).length+X.j.all(i).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(X.j.all(i).length>1),this._isInWalkThrough.set(i.uri.scheme===ge.b.walkThroughSnippet)}):this.reset()}}class oo extends E.a{constructor(i){super(),this._onChange=this._register(new H.a),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(f.bb(i)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}let oa=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Ls=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Hr(Zt){return oa+encodeURIComponent(Zt.toString())+Ls}let Ns=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),so=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(ht.g)((Zt,i)=>{let a=Zt.getColor(lt.t);a&&i.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${a}; }`);let _=Zt.getColor(lt.u);_&&i.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${Hr(_)}") repeat-x bottom left; }`);let R=Zt.getColor(lt.S);R&&i.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${R}; }`);let K=Zt.getColor(lt.T);K&&i.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Hr(K)}") repeat-x bottom left; }`);let we=Zt.getColor(lt.K);we&&i.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${we}; }`);let Pe=Zt.getColor(lt.L);Pe&&i.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${Hr(Pe)}") repeat-x bottom left; }`);let Ve=Zt.getColor(lt.C);Ve&&i.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${Ve}; }`);let Je=Zt.getColor(lt.D);var at;Je&&i.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${at=Je,Ns+encodeURIComponent(at.toString())+so}") no-repeat bottom left; }`);let bt=Zt.getColor(ki.p);bt&&i.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${bt.rgba.a}; }`);let Bt=Zt.getColor(ki.o);Bt&&i.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${Bt}; }`);let Pt=Zt.getColor(lt.B)||"inherit";i.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${Pt}}`)})},function(Ie,w,r){"use strict";r.d(w,"c",function(){return f}),r.d(w,"b",function(){return O}),r.d(w,"a",function(){return H});var h=r(1);function f(W,Q={}){let y=H(Q);return y.textContent=W,y}function O(W,Q={}){let y=H(Q);return function C(S,P,V){let k;if(P.type===2)k=document.createTextNode(P.content||"");else if(P.type===3)k=document.createElement("b");else if(P.type===4)k=document.createElement("i");else if(P.type===5&&V){let l=document.createElement("a");l.href="#",V.disposeables.add(h.n(l,"click",T=>{V.callback(String(P.index),T)})),k=l}else P.type===7?k=document.createElement("br"):P.type===1&&(k=S);k&&S!==k&&S.appendChild(k),k&&Array.isArray(P.children)&&P.children.forEach(l=>{C(k,l,V)})}(y,function(C){let S={type:1,children:[]},P=0,V=S,k=[],l=new E(C);for(;!l.eos();){let T=l.next(),N=T==="\\"&&ge(l.peek())!==0;if(N&&(T=l.next()),N||ge(T)===0||T!==l.peek())if(T===` +`)V.type===2&&(V=k.pop()),V.children.push({type:7});else if(V.type!==2){let b={type:2,content:T};V.children.push(b),k.push(V),V=b}else V.content+=T;else{l.advance(),V.type===2&&(V=k.pop());let b=ge(T);if(V.type===b||V.type===5&&b===6)V=k.pop();else{let g={type:b,children:[]};b===5&&(g.index=P,P++),V.children.push(g),k.push(V),V=g}}}return V.type===2&&(V=k.pop()),k.length,S}(W),Q.actionHandler),y}function H(W){let Q=W.inline?"span":"div",y=document.createElement(Q);return W.className&&(y.className=W.className),y}class E{constructor(Q){this.source=Q,this.index=0}eos(){return this.index>=this.source.length}next(){let Q=this.peek();return this.advance(),Q}peek(){return this.source[this.index]}advance(){this.index++}}function ge(W){switch(W){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E});var h=r(6),f=r(2),O=r(18);let H=Object(O.c)("IStorageKeysSyncRegistryService");class E extends f.a{constructor(){super(),this._storageKeys=new Map,this._onDidChangeStorageKeys=this._register(new h.a),this._register(Object(f.h)(()=>this._storageKeys.clear()))}get storageKeys(){return[...this._storageKeys.values()]}registerStorageKey(W){this._storageKeys.has(W.key)||(this._storageKeys.set(W.key,W),this._onDidChangeStorageKeys.fire(this.storageKeys))}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return P}),r.d(w,"b",function(){return V}),r.d(w,"c",function(){return k});var h=r(34),f=r(1),O=r(20),H=r(6),E=r(2),ge=r(11),W=r(8),Q=r(127),y=r(9),C=r(21),S=r(138);let P={forceCopyWithSyntaxHighlighting:!1};class V{constructor(){this._lastState=null}set(b,g){this._lastState={lastCopiedValue:b,data:g}}get(b){return this._lastState&&this._lastState.lastCopiedValue===b?this._lastState.data:(this._lastState=null,null)}}V.INSTANCE=new V;class k extends E.a{constructor(b,g){super(),this.textArea=g,this._onFocus=this._register(new H.a),this.onFocus=this._onFocus.event,this._onBlur=this._register(new H.a),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new H.a),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new H.a),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new H.a),this.onCut=this._onCut.event,this._onPaste=this._register(new H.a),this.onPaste=this._onPaste.event,this._onType=this._register(new H.a),this.onType=this._onType.event,this._onCompositionStart=this._register(new H.a),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new H.a),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new H.a),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new H.a),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=b,this._textArea=this._register(new T(g)),this._asyncTriggerCut=this._register(new O.d(()=>this._onCut.fire(),0)),this._textAreaState=Q.b.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let j=null;this._register(f.n(g.domNode,"keydown",B=>{(B.keyCode===109||this._isDoingComposition&&B.keyCode===1)&&B.stopPropagation(),B.equals(9)&&B.preventDefault(),j=B,this._onKeyDown.fire(B)})),this._register(f.n(g.domNode,"keyup",B=>{this._onKeyUp.fire(B)})),this._register(f.i(g.domNode,"compositionstart",B=>{if(this._isDoingComposition)return;this._isDoingComposition=!0;let se=!1;ge.f&&j&&j.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===B.data&&(j.code!=="ArrowRight"&&j.code!=="ArrowLeft"||(se=!0)),se?this._textAreaState=new Q.b(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new y.a(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition):h.f||this._setAndWriteTextAreaState("compositionstart",Q.b.EMPTY),this._onCompositionStart.fire({moveOneCharacterLeft:se})}));let ie=B=>{let se=this._textAreaState,ke=Q.b.readFromTextArea(this._textArea);return[ke,Q.b.deduceInput(se,ke,B)]},U=B=>{let se=this._textAreaState,ke=Q.b.selectedText(B);return[ke,{text:ke.value,replaceCharCnt:se.selectionEnd-se.selectionStart}]},q=B=>!(!h.f||B!=="ja");this._register(f.i(g.domNode,"compositionupdate",B=>{if(q(B.locale)){let[xe,Y]=ie(!1);return this._textAreaState=xe,this._onType.fire(Y),void this._onCompositionUpdate.fire(B)}let[se,ke]=U(B.data||"");this._textAreaState=se,this._onType.fire(ke),this._onCompositionUpdate.fire(B)})),this._register(f.i(g.domNode,"compositionend",B=>{if(this._isDoingComposition){if(q(B.locale)){let[se,ke]=ie(!1);this._textAreaState=se,this._onType.fire(ke)}else{let[se,ke]=U(B.data||"");this._textAreaState=se,this._onType.fire(ke)}(h.f||h.e)&&(this._textAreaState=Q.b.readFromTextArea(this._textArea)),this._isDoingComposition&&(this._isDoingComposition=!1,this._onCompositionEnd.fire())}})),this._register(f.i(g.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;let[B,se]=ie(ge.f);se.replaceCharCnt===0&&se.text.length===1&&W.F(se.text.charCodeAt(0))||(this._textAreaState=B,this._nextCommand===0?se.text!==""&&this._onType.fire(se):(se.text===""&&se.replaceCharCnt===0||this._firePaste(se.text,null),this._nextCommand=0))})),this._register(f.i(g.domNode,"cut",B=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(B),this._asyncTriggerCut.schedule()})),this._register(f.i(g.domNode,"copy",B=>{this._ensureClipboardGetsEditorSelection(B)})),this._register(f.i(g.domNode,"paste",B=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),l.canUseTextData(B)){let[se,ke]=l.getTextData(B);se!==""&&this._firePaste(se,ke)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",Q.b.EMPTY),this._nextCommand=1})),this._register(f.i(g.domNode,"focus",()=>{this._setHasFocus(!0)})),this._register(f.i(g.domNode,"blur",()=>{this._setHasFocus(!1)}))}_installSelectionChangeListener(){let b=0;return f.i(document,"selectionchange",g=>{if(!this._hasFocus||this._isDoingComposition||!h.e)return;let j=Date.now(),ie=j-b;if(b=j,ie<5)return;let U=j-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),U<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;let q=this._textArea.getValue();if(this._textAreaState.value!==q)return;let B=this._textArea.getSelectionStart(),se=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===B&&this._textAreaState.selectionEnd===se)return;let ke=this._textAreaState.deduceEditorPosition(B),xe=this._host.deduceModelPosition(ke[0],ke[1],ke[2]),Y=this._textAreaState.deduceEditorPosition(se),Z=this._host.deduceModelPosition(Y[0],Y[1],Y[2]),te=new C.a(xe.lineNumber,xe.column,Z.lineNumber,Z.column);this._onSelectionChangeRequest.fire(te)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){let b=f.E(this.textArea.domNode);b?this._setHasFocus(b.activeElement===this.textArea.domNode):f.N(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(b){this._hasFocus!==b&&(this._hasFocus=b,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(h.f?this._setAndWriteTextAreaState("focusgain",Q.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(b,g){this._hasFocus||(g=g.collapseSelection()),g.writeToTextArea(b,this._textArea,this._hasFocus),this._textAreaState=g}writeScreenReaderContent(b){this._isDoingComposition||this._setAndWriteTextAreaState(b,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(b){let g=this._host.getDataToCopy(l.canUseTextData(b)&&S.a.clipboard.richText),j={version:1,isFromEmptySelection:g.isFromEmptySelection,multicursorText:g.multicursorText,mode:g.mode};V.INSTANCE.set(h.h?g.text.replace(/\r\n/g,` +`):g.text,j),l.canUseTextData(b)?l.setTextData(b,g.text,g.html,j):this._setAndWriteTextAreaState("copy or cut",Q.b.selectedText(g.text))}_firePaste(b,g){g||(g=V.INSTANCE.get(b)),this._onPaste.fire({text:b,metadata:g})}}class l{static canUseTextData(b){return!!b.clipboardData||!!window.clipboardData}static getTextData(b){if(b.clipboardData){b.preventDefault();let g=b.clipboardData.getData("text/plain"),j=null,ie=b.clipboardData.getData("vscode-editor-data");if(typeof ie=="string")try{j=JSON.parse(ie),j.version!==1&&(j=null)}catch(U){}return[g,j]}if(window.clipboardData)return b.preventDefault(),[window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(b,g,j,ie){if(b.clipboardData)return b.clipboardData.setData("text/plain",g),typeof j=="string"&&b.clipboardData.setData("text/html",j),b.clipboardData.setData("vscode-editor-data",JSON.stringify(ie)),void b.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",g),void b.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class T extends E.a{constructor(b){super(),this._actual=b,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(b){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(b,g){let j=this._actual.domNode;j.value!==g&&(this.setIgnoreSelectionChangeTime("setValue"),j.value=g)}getSelectionStart(){return this._actual.domNode.selectionStart}getSelectionEnd(){return this._actual.domNode.selectionEnd}setSelectionRange(b,g,j){let ie=this._actual.domNode,U=null,q=f.E(ie);U=q?q.activeElement:document.activeElement;let B=U===ie,se=ie.selectionStart,ke=ie.selectionEnd;if(B&&se===g&&ke===j)h.h&&window.parent!==window&&ie.focus();else{if(B)return this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.setSelectionRange(g,j),void(h.h&&window.parent!==window&&ie.focus());try{let xe=f.X(ie);this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.focus(),ie.setSelectionRange(g,j),f.V(ie,xe)}catch(xe){}}}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f}),r.d(w,"b",function(){return O});class h{constructor(E,ge,W){this.from=0|E,this.to=0|ge,this.colorId=0|W}static compare(E,ge){return E.colorId===ge.colorId?E.from===ge.from?E.to-ge.to:E.from-ge.from:E.colorId-ge.colorId}}class f{constructor(E,ge,W){this.startLineNumber=E,this.endLineNumber=ge,this.color=W,this._colorZone=null}static compare(E,ge){return E.color===ge.color?E.startLineNumber===ge.startLineNumber?E.endLineNumber-ge.endLineNumber:E.startLineNumber-ge.startLineNumber:E.color<ge.color?-1:1}setColorZone(E){this._colorZone=E}getColorZones(){return this._colorZone}}class O{constructor(E){this._getVerticalOffsetForLine=E,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(E){this._zones=E,this._zones.sort(f.compare)}setLineHeight(E){return this._lineHeight!==E&&(this._lineHeight=E,this._colorZonesInvalid=!0,!0)}setPixelRatio(E){this._pixelRatio=E,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(E){return this._domWidth!==E&&(this._domWidth=E,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(E){return this._domHeight!==E&&(this._domHeight=E,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(E){return this._outerHeight!==E&&(this._outerHeight=E,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let E=this._colorZonesInvalid,ge=Math.floor(this._lineHeight),W=Math.floor(this.getCanvasHeight()),Q=W/Math.floor(this._outerHeight),y=Math.floor(4*this._pixelRatio/2),C=[];for(let S=0,P=this._zones.length;S<P;S++){let V=this._zones[S];if(!E){let ie=V.getColorZones();if(ie){C.push(ie);continue}}let k=Math.floor(Q*this._getVerticalOffsetForLine(V.startLineNumber)),l=Math.floor(Q*(this._getVerticalOffsetForLine(V.endLineNumber)+ge)),T=Math.floor((k+l)/2),N=l-T;N<y&&(N=y),T-N<0&&(T=N),T+N>W&&(T=W-N);let b=V.color,g=this._color2Id[b];g||(g=++this._lastAssignedId,this._color2Id[b]=g,this._id2Color[g]=b);let j=new h(T-N,T+N,g);V.setColorZone(j),C.push(j)}return this._colorZonesInvalid=!1,C.sort(h.compare),C}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return W});var h=r(23),f=r(51),O=r(18);r(78);let H=Object(O.c)("contextService");var E,ge;(function(Q){Q.isIWorkspace=function(y){return!(!y||typeof y!="object"||typeof y.id!="string"||!Array.isArray(y.folders))}})(E||(E={})),function(Q){Q.isIWorkspaceFolder=function(y){return!(!y||typeof y!="object"||!h.a.isUri(y.uri)||typeof y.name!="string"||typeof y.toResource!="function")}}(ge||(ge={}));class W{constructor(y,C){this.raw=C,this.uri=y.uri,this.index=y.index,this.name=y.name}toResource(y){return f.g(this.uri,y)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H});var h=r(6),f=r(2);class O{constructor(y,C,S,P,V,k){y|=0,C|=0,S|=0,P|=0,V|=0,k|=0,this.rawScrollLeft=S,this.rawScrollTop=k,y<0&&(y=0),S+y>C&&(S=C-y),S<0&&(S=0),P<0&&(P=0),k+P>V&&(k=V-P),k<0&&(k=0),this.width=y,this.scrollWidth=C,this.scrollLeft=S,this.height=P,this.scrollHeight=V,this.scrollTop=k}equals(y){return this.rawScrollLeft===y.rawScrollLeft&&this.rawScrollTop===y.rawScrollTop&&this.width===y.width&&this.scrollWidth===y.scrollWidth&&this.scrollLeft===y.scrollLeft&&this.height===y.height&&this.scrollHeight===y.scrollHeight&&this.scrollTop===y.scrollTop}withScrollDimensions(y,C){return new O(y.width!==void 0?y.width:this.width,y.scrollWidth!==void 0?y.scrollWidth:this.scrollWidth,C?this.rawScrollLeft:this.scrollLeft,y.height!==void 0?y.height:this.height,y.scrollHeight!==void 0?y.scrollHeight:this.scrollHeight,C?this.rawScrollTop:this.scrollTop)}withScrollPosition(y){return new O(this.width,this.scrollWidth,y.scrollLeft!==void 0?y.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,y.scrollTop!==void 0?y.scrollTop:this.rawScrollTop)}createScrollEvent(y){let C=this.width!==y.width,S=this.scrollWidth!==y.scrollWidth,P=this.scrollLeft!==y.scrollLeft,V=this.height!==y.height,k=this.scrollHeight!==y.scrollHeight,l=this.scrollTop!==y.scrollTop;return{oldWidth:y.width,oldScrollWidth:y.scrollWidth,oldScrollLeft:y.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:y.height,oldScrollHeight:y.scrollHeight,oldScrollTop:y.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:C,scrollWidthChanged:S,scrollLeftChanged:P,heightChanged:V,scrollHeightChanged:k,scrollTopChanged:l}}}class H extends f.a{constructor(y,C){super(),this._onScroll=this._register(new h.a),this.onScroll=this._onScroll.event,this._smoothScrollDuration=y,this._scheduleAtNextAnimationFrame=C,this._state=new O(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(y){this._smoothScrollDuration=y}validateScrollPosition(y){return this._state.withScrollPosition(y)}getScrollDimensions(){return this._state}setScrollDimensions(y,C){let S=this._state.withScrollDimensions(y,C);this._setState(S),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(y){let C=this._state.withScrollPosition(y);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(C)}setScrollPositionSmooth(y){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(y);if(this._smoothScrolling){y={scrollLeft:y.scrollLeft===void 0?this._smoothScrolling.to.scrollLeft:y.scrollLeft,scrollTop:y.scrollTop===void 0?this._smoothScrolling.to.scrollTop:y.scrollTop};let C=this._state.withScrollPosition(y);if(this._smoothScrolling.to.scrollLeft===C.scrollLeft&&this._smoothScrolling.to.scrollTop===C.scrollTop)return;let S=this._smoothScrolling.combine(this._state,C,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=S}else{let C=this._state.withScrollPosition(y);this._smoothScrolling=W.start(this._state,C,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;let y=this._smoothScrolling.tick(),C=this._state.withScrollPosition(y);return this._setState(C),this._smoothScrolling?y.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(y){let C=this._state;C.equals(y)||(this._state=y,this._onScroll.fire(this._state.createScrollEvent(C)))}}class E{constructor(y,C,S){this.scrollLeft=y,this.scrollTop=C,this.isDone=S}}function ge(Q,y){let C=y-Q;return function(S){return Q+C*(1-function(P){return Math.pow(P,3)}(1-S))}}class W{constructor(y,C,S,P){this.from=y,this.to=C,this.duration=P,this._startTime=S,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(y,C,S){if(Math.abs(y-C)>2.5*S){let l,T;return y<C?(l=y+.75*S,T=C-.75*S):(l=y-.75*S,T=C+.75*S),P=ge(y,l),V=ge(T,C),k=.33,function(N){return N<k?P(N/k):V((N-k)/(1-k))}}var P,V,k;return ge(y,C)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(y){this.to=y.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(y){let C=(y-this._startTime)/this.duration;if(C<1){let S=this.scrollLeft(C),P=this.scrollTop(C);return new E(S,P,!1)}return new E(this.to.scrollLeft,this.to.scrollTop,!0)}combine(y,C,S){return W.start(y,C,S)}static start(y,C,S){S+=10;let P=Date.now()-10;return new W(y,C,P,S)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("dialogService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return W}),r(269);var h=r(1),f=r(156),O=r(2),H=r(99),E=r(46);class ge{constructor(S){this._element=S}get element(){return this._element}set textContent(S){this.disposed||S===this._textContent||(this._textContent=S,this._element.textContent=S)}set className(S){this.disposed||S===this._className||(this._className=S,this._element.className=S)}set title(S){this.disposed||S===this._title||(this._title=S,this._title?this._element.title=S:this._element.removeAttribute("title"))}set empty(S){this.disposed||S===this._empty||(this._empty=S,this._element.style.marginLeft=S?"0":"")}dispose(){this.disposed=!0}}class W extends O.a{constructor(S,P){super(),this.domNode=this._register(new ge(h.p(S,h.a(".monaco-icon-label"))));let V=h.p(this.domNode.element,h.a(".monaco-icon-label-container")),k=h.p(V,h.a("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new ge(h.p(V,h.a("span.monaco-icon-description-container")))),(P==null?void 0:P.supportHighlights)?this.nameNode=new y(k,!!P.supportCodicons):this.nameNode=new Q(k),(P==null?void 0:P.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new f.a(h.p(this.descriptionContainer.element,h.a("span.label-description")),!!P.supportCodicons):this.descriptionNodeFactory=()=>this._register(new ge(h.p(this.descriptionContainer.element,h.a("span.label-description"))))}setLabel(S,P,V){let k=["monaco-icon-label"];V&&(V.extraClasses&&k.push(...V.extraClasses),V.italic&&k.push("italic"),V.strikethrough&&k.push("strikethrough")),this.domNode.className=k.join(" "),this.domNode.title=(V==null?void 0:V.title)||"",this.nameNode.setLabel(S,V),(P||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof f.a?(this.descriptionNode.set(P||"",V?V.descriptionMatches:void 0),(V==null?void 0:V.descriptionTitle)?this.descriptionNode.element.title=V.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=P||"",this.descriptionNode.title=(V==null?void 0:V.descriptionTitle)||"",this.descriptionNode.empty=!P))}}class Q{constructor(S){this.container=S,this.label=void 0,this.singleLabel=void 0}setLabel(S,P){if(this.label!==S||!Object(E.e)(this.options,P))if(this.label=S,this.options=P,typeof S=="string")this.singleLabel||(this.container.innerText="",h.Q(this.container,"multiple"),this.singleLabel=h.p(this.container,h.a("a.label-name",{id:P==null?void 0:P.domId}))),this.singleLabel.textContent=S;else{this.container.innerText="",h.e(this.container,"multiple"),this.singleLabel=void 0;for(let V=0;V<S.length;V++){let k=S[V],l=(P==null?void 0:P.domId)&&`${P==null?void 0:P.domId}_${V}`;h.p(this.container,h.a("a.label-name",{id:l,"data-icon-label-count":S.length,"data-icon-label-index":V,role:"treeitem"},k)),V<S.length-1&&h.p(this.container,h.a("span.label-separator",void 0,(P==null?void 0:P.separator)||"/"))}}}}class y{constructor(S,P){this.container=S,this.supportCodicons=P,this.label=void 0,this.singleLabel=void 0}setLabel(S,P){if(this.label!==S||!Object(E.e)(this.options,P))if(this.label=S,this.options=P,typeof S=="string")this.singleLabel||(this.container.innerText="",h.Q(this.container,"multiple"),this.singleLabel=new f.a(h.p(this.container,h.a("a.label-name",{id:P==null?void 0:P.domId})),this.supportCodicons)),this.singleLabel.set(S,P==null?void 0:P.matches,P==null?void 0:P.title,P==null?void 0:P.labelEscapeNewLines);else{this.container.innerText="",h.e(this.container,"multiple"),this.singleLabel=void 0;let V=(P==null?void 0:P.separator)||"/",k=function(l,T,N){if(!N)return;let b=0;return l.map(g=>{let j={start:b,end:b+g.length},ie=N.map(U=>H.a.intersect(j,U)).filter(U=>!H.a.isEmpty(U)).map(({start:U,end:q})=>({start:U-b,end:q-b}));return b=j.end+T.length,ie})}(S,V,P==null?void 0:P.matches);for(let l=0;l<S.length;l++){let T=S[l],N=k?k[l]:void 0,b=(P==null?void 0:P.domId)&&`${P==null?void 0:P.domId}_${l}`,g=h.a("a.label-name",{id:b,"data-icon-label-count":S.length,"data-icon-label-index":l,role:"treeitem"});new f.a(h.p(this.container,g),this.supportCodicons).set(T,N,P==null?void 0:P.title,P==null?void 0:P.labelEscapeNewLines),l<S.length-1&&h.p(g,h.a("span.label-separator",void 0,V))}}}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return T}),r.d(w,"a",function(){return N}),r(273);var h=r(0),f=r(1),O=r(165),H=r(66),E=r(116),ge=r(6),W=r(82),Q=r(15),y=r(46);class C{constructor(g,j=0,ie=g.length,U=j-1){this.items=g,this.start=j,this.end=ie,this.index=U}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class S{constructor(g=[],j=10){this._initialize(g),this._limit=j,this._onChange()}add(g){this._history.delete(g),this._history.add(g),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(g){return this._history.has(g)}_onChange(){this._reduceToLimit();let g=this._elements;this._navigator=new C(g,0,g.length,g.length)}_reduceToLimit(){let g=this._elements;g.length>this._limit&&this._initialize(g.slice(g.length-this._limit))}_currentPosition(){let g=this._navigator.current();return g?this._elements.indexOf(g):-1}_initialize(g){this._history=new Set;for(let j of g)this._history.add(j)}get _elements(){let g=[];return this._history.forEach(j=>g.push(j)),g}}var P=r(105),V=r(44);let k=f.a,l={inputBackground:Q.a.fromHex("#3C3C3C"),inputForeground:Q.a.fromHex("#CCCCCC"),inputValidationInfoBorder:Q.a.fromHex("#55AAFF"),inputValidationInfoBackground:Q.a.fromHex("#063B49"),inputValidationWarningBorder:Q.a.fromHex("#B89500"),inputValidationWarningBackground:Q.a.fromHex("#352A05"),inputValidationErrorBorder:Q.a.fromHex("#BE1100"),inputValidationErrorBackground:Q.a.fromHex("#5A1D1D")};class T extends W.a{constructor(g,j,ie){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new ge.a),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new ge.a),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=j,this.options=ie||Object.create(null),Object(y.g)(this.options,l,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=f.p(g,k(".monaco-inputbox.idle"));let U=this.options.flexibleHeight?"textarea":"input",q=f.p(this.element,k(".wrapper"));if(this.input=f.p(q,k(U+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=f.p(q,k("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new P.b(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),f.p(g,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(se=>this.input.scrollTop=se.scrollTop));let B=ge.b.filter(Object(V.a)(document,"selectionchange"),()=>{let se=document.getSelection();return(se==null?void 0:se.anchorNode)===q});this._register(B(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&this.setPlaceHolder(this.placeholder),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new E.a(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage()}onFocus(){this._showMessage()}setPlaceHolder(g){this.placeholder=g,this.input.setAttribute("placeholder",g),this.input.title=g}setAriaLabel(g){this.ariaLabel=g,g?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(g){this.input.value!==g&&(this.input.value=g,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:f.G(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(g=null){this.input.select(),g&&this.input.setSelectionRange(g.start,g.end)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return f.H(this.input)}set width(g){if(this.options.flexibleHeight&&this.options.flexibleWidth){let j=0;this.mirror&&(j=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)),this.input.style.width=g-j+"px"}else this.input.style.width=g+"px";this.mirror&&(this.mirror.style.width=g+"px")}set paddingRight(g){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${g}px)`:this.input.style.paddingRight=g+"px",this.mirror&&(this.mirror.style.paddingRight=g+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;let g=this.cachedContentHeight,j=this.cachedHeight,ie=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:g,height:j}),this.scrollableElement.setScrollPosition({scrollTop:ie})}showMessage(g,j){this.message=g,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(g.type));let ie=this.stylesForType(this.message.type);this.element.style.border=ie.border?"1px solid "+ie.border:"",(this.hasFocus()||j)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let g=null;return this.validation&&(g=this.validation(this.value),g?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(g)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!g}stylesForType(g){switch(g){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(g){switch(g){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let g,j,ie=()=>g.style.width=f.H(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:U=>{if(!this.message)return null;g=f.p(U,k(".monaco-inputbox-container")),ie();let q={inline:!0,className:"monaco-inputbox-message"},B=this.message.formatContent?Object(O.b)(this.message.content,q):Object(O.c)(this.message.content,q);B.classList.add(this.classForType(this.message.type));let se=this.stylesForType(this.message.type);return B.style.backgroundColor=se.background?se.background.toString():"",B.style.color=se.foreground?se.foreground.toString():"",B.style.border=se.border?"1px solid "+se.border:"",f.p(g,B),null},onHide:()=>{this.state="closed"},layout:ie}),j=this.message.type===3?h.a("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?h.a("alertWarningMessage","Warning: {0}",this.message.content):h.a("alertInfoMessage","Info: {0}",this.message.content),H.a(j),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;let g=this.value,j=g.charCodeAt(g.length-1)===10?" ":"";g+j?this.mirror.textContent=g+j:this.mirror.innerText="\xA0",this.layout()}style(g){this.inputBackground=g.inputBackground,this.inputForeground=g.inputForeground,this.inputBorder=g.inputBorder,this.inputValidationInfoBackground=g.inputValidationInfoBackground,this.inputValidationInfoForeground=g.inputValidationInfoForeground,this.inputValidationInfoBorder=g.inputValidationInfoBorder,this.inputValidationWarningBackground=g.inputValidationWarningBackground,this.inputValidationWarningForeground=g.inputValidationWarningForeground,this.inputValidationWarningBorder=g.inputValidationWarningBorder,this.inputValidationErrorBackground=g.inputValidationErrorBackground,this.inputValidationErrorForeground=g.inputValidationErrorForeground,this.inputValidationErrorBorder=g.inputValidationErrorBorder,this.applyStyles()}applyStyles(){let g=this.inputBackground?this.inputBackground.toString():"",j=this.inputForeground?this.inputForeground.toString():"",ie=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=g,this.element.style.color=j,this.input.style.backgroundColor="inherit",this.input.style.color=j,this.element.style.borderWidth=ie?"1px":"",this.element.style.borderStyle=ie?"solid":"",this.element.style.borderColor=ie}layout(){if(!this.mirror)return;let g=this.cachedContentHeight;this.cachedContentHeight=f.G(this.mirror),g!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(g){let j=this.inputElement,ie=j.selectionStart,U=j.selectionEnd,q=j.value;ie!==null&&U!==null&&(this.value=q.substr(0,ie)+g+q.substr(U),j.setSelectionRange(ie+1,ie+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class N extends T{constructor(g,j,ie){super(g,j,ie),this.history=new S(ie.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let g=this.getNextValue();g&&(g=g===this.value?this.getNextValue():g),g&&(this.value=g,H.c(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let g=this.getPreviousValue();g&&(g=g===this.value?this.getPreviousValue():g),g&&(this.value=g,H.c(this.value))}getCurrentValue(){let g=this.history.current();return g||(g=this.history.last(),this.history.next()),g}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},function(Ie,w,r){"use strict";function h(f,O){if(!f)throw new Error(O?`Assertion failed (${O})`:"Assertion Failed")}r.d(w,"a",function(){return h})},function(Ie,w,r){"use strict";r.d(w,"b",function(){return S}),r.d(w,"a",function(){return P});var h=r(0),f=r(13),O=r(21),H=r(23),E=r(180),ge=r(72);function W(V){return V.toString()}class Q{constructor(k,l,T,N,b,g,j){this.beforeVersionId=k,this.afterVersionId=l,this.beforeEOL=T,this.afterEOL=N,this.beforeCursorState=b,this.afterCursorState=g,this.changes=j}static create(k,l){let T=k.getAlternativeVersionId(),N=C(k);return new Q(T,T,N,N,l,l,[])}append(k,l,T,N,b){l.length>0&&(this.changes=Object(E.b)(this.changes,l)),this.afterEOL=T,this.afterVersionId=N,this.afterCursorState=b}static _writeSelectionsSize(k){return 4+16*(k?k.length:0)}static _writeSelections(k,l,T){if(ge.f(k,l?l.length:0,T),T+=4,l)for(let N of l)ge.f(k,N.selectionStartLineNumber,T),T+=4,ge.f(k,N.selectionStartColumn,T),T+=4,ge.f(k,N.positionLineNumber,T),T+=4,ge.f(k,N.positionColumn,T),T+=4;return T}static _readSelections(k,l,T){let N=ge.c(k,l);l+=4;for(let b=0;b<N;b++){let g=ge.c(k,l);l+=4;let j=ge.c(k,l);l+=4;let ie=ge.c(k,l);l+=4;let U=ge.c(k,l);l+=4,T.push(new O.a(g,j,ie,U))}return l}serialize(){let k=10+Q._writeSelectionsSize(this.beforeCursorState)+Q._writeSelectionsSize(this.afterCursorState)+4;for(let N of this.changes)k+=N.writeSize();let l=new Uint8Array(k),T=0;ge.f(l,this.beforeVersionId,T),T+=4,ge.f(l,this.afterVersionId,T),T+=4,ge.g(l,this.beforeEOL,T),T+=1,ge.g(l,this.afterEOL,T),T+=1,T=Q._writeSelections(l,this.beforeCursorState,T),T=Q._writeSelections(l,this.afterCursorState,T),ge.f(l,this.changes.length,T),T+=4;for(let N of this.changes)T=N.write(l,T);return l.buffer}static deserialize(k){let l=new Uint8Array(k),T=0,N=ge.c(l,T);T+=4;let b=ge.c(l,T);T+=4;let g=ge.d(l,T);T+=1;let j=ge.d(l,T);T+=1;let ie=[];T=Q._readSelections(l,T,ie);let U=[];T=Q._readSelections(l,T,U);let q=ge.c(l,T);T+=4;let B=[];for(let se=0;se<q;se++)T=E.a.read(l,T,B);return new Q(N,b,g,j,ie,U,B)}}class y{constructor(k,l){this.model=k,this._data=Q.create(k,l)}get type(){return 0}get resource(){return H.a.isUri(this.model)?this.model:this.model.uri}get label(){return h.a("edit","Typing")}toString(){return(this._data instanceof Q?this._data:Q.deserialize(this._data)).changes.map(k=>k.toString()).join(", ")}matchesResource(k){return(H.a.isUri(this.model)?this.model:this.model.uri).toString()===k.toString()}setModel(k){this.model=k}canAppend(k){return this.model===k&&this._data instanceof Q}append(k,l,T,N,b){this._data instanceof Q&&this._data.append(k,l,T,N,b)}close(){this._data instanceof Q&&(this._data=this._data.serialize())}undo(){if(H.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Q&&(this._data=this._data.serialize());let k=Q.deserialize(this._data);this.model._applyUndo(k.changes,k.beforeEOL,k.beforeVersionId,k.beforeCursorState)}redo(){if(H.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Q&&(this._data=this._data.serialize());let k=Q.deserialize(this._data);this.model._applyRedo(k.changes,k.afterEOL,k.afterVersionId,k.afterCursorState)}}function C(V){return V.getEOL()===` +`?0:1}function S(V){return!!V&&(V instanceof y||V instanceof class{constructor(k,l){this.type=1,this.label=k,this._isOpen=!0,this._editStackElementsArr=l.slice(0),this._editStackElementsMap=new Map;for(let T of this._editStackElementsArr){let N=W(T.resource);this._editStackElementsMap.set(N,T)}this._delegate=null}get resources(){return this._editStackElementsArr.map(k=>k.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(k){let l=W(k);return this._editStackElementsMap.has(l)}setModel(k){let l=W(H.a.isUri(k)?k:k.uri);this._editStackElementsMap.has(l)&&this._editStackElementsMap.get(l).setModel(k)}canAppend(k){if(!this._isOpen)return!1;let l=W(k.uri);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).canAppend(k):!1}append(k,l,T,N,b){let g=W(k.uri);this._editStackElementsMap.get(g).append(k,l,T,N,b)}close(){this._isOpen=!1}undo(){this._isOpen=!1;for(let k of this._editStackElementsArr)k.undo()}redo(){for(let k of this._editStackElementsArr)k.redo()}split(){return this._editStackElementsArr}})}class P{constructor(k,l){this._model=k,this._undoRedoService=l}pushStackElement(){let k=this._undoRedoService.getLastElement(this._model.uri);S(k)&&k.close()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(k){let l=this._undoRedoService.getLastElement(this._model.uri);if(S(l)&&l.canAppend(this._model))return l;let T=new y(this._model,k);return this._undoRedoService.pushElement(T),T}pushEOL(k){let l=this._getOrCreateEditStackElement(null);this._model.setEOL(k),l.append(this._model,[],C(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(k,l,T){let N=this._getOrCreateEditStackElement(k),b=this._model.applyEdits(l,!0),g=P._computeCursorState(T,b),j=b.map((ie,U)=>({index:U,textChange:ie.textChange}));return j.sort((ie,U)=>ie.textChange.oldPosition===U.textChange.oldPosition?ie.index-U.index:ie.textChange.oldPosition-U.textChange.oldPosition),N.append(this._model,j.map(ie=>ie.textChange),C(this._model),this._model.getAlternativeVersionId(),g),g}static _computeCursorState(k,l){try{return k?k(l):null}catch(T){return Object(f.e)(T),null}}}},function(Ie,w,r){"use strict";(function(h){r.d(w,"a",function(){return P});var f,O,H,E=(f=function(U,q){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,se){B.__proto__=se}||function(B,se){for(var ke in se)se.hasOwnProperty(ke)&&(B[ke]=se[ke])})(U,q)},function(U,q){function B(){this.constructor=U}f(U,q),U.prototype=q===null?Object.create(q):(B.prototype=q.prototype,new B)});if(typeof h=="object")H=h.platform==="win32";else if(typeof navigator=="object"){var ge=navigator.userAgent;H=ge.indexOf("Windows")>=0}var W=/^\w[\w\d+.-]*$/,Q=/^\//,y=/^\/\//,C="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function U(q,B,se,ke,xe,Y){Y===void 0&&(Y=!1),typeof q=="object"?(this.scheme=q.scheme||"",this.authority=q.authority||"",this.path=q.path||"",this.query=q.query||"",this.fragment=q.fragment||""):(this.scheme=function(Z,te){return Z||te?Z:"file"}(q,Y),this.authority=B||"",this.path=function(Z,te){switch(Z){case"https":case"http":case"file":te?te[0]!==C&&(te=C+te):te=C}return te}(this.scheme,se||""),this.query=ke||"",this.fragment=xe||"",function(Z,te){if(!Z.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Z.authority+'", path: "'+Z.path+'", query: "'+Z.query+'", fragment: "'+Z.fragment+'"}');if(Z.scheme&&!W.test(Z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!Q.test(Z.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(Z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,Y))}return U.isUri=function(q){return q instanceof U||!!q&&typeof q.authority=="string"&&typeof q.fragment=="string"&&typeof q.path=="string"&&typeof q.query=="string"&&typeof q.scheme=="string"&&typeof q.fsPath=="function"&&typeof q.with=="function"&&typeof q.toString=="function"},Object.defineProperty(U.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!0,configurable:!0}),U.prototype.with=function(q){if(!q)return this;var B=q.scheme,se=q.authority,ke=q.path,xe=q.query,Y=q.fragment;return B===void 0?B=this.scheme:B===null&&(B=""),se===void 0?se=this.authority:se===null&&(se=""),ke===void 0?ke=this.path:ke===null&&(ke=""),xe===void 0?xe=this.query:xe===null&&(xe=""),Y===void 0?Y=this.fragment:Y===null&&(Y=""),B===this.scheme&&se===this.authority&&ke===this.path&&xe===this.query&&Y===this.fragment?this:new k(B,se,ke,xe,Y)},U.parse=function(q,B){B===void 0&&(B=!1);var se=S.exec(q);return se?new k(se[2]||"",ie(se[4]||""),ie(se[5]||""),ie(se[7]||""),ie(se[9]||""),B):new k("","","","","")},U.file=function(q){var B="";if(H&&(q=q.replace(/\\/g,C)),q[0]===C&&q[1]===C){var se=q.indexOf(C,2);se===-1?(B=q.substring(2),q=C):(B=q.substring(2,se),q=q.substring(se)||C)}return new k("file",B,q,"","")},U.from=function(q){return new k(q.scheme,q.authority,q.path,q.query,q.fragment)},U.prototype.toString=function(q){return q===void 0&&(q=!1),g(this,q)},U.prototype.toJSON=function(){return this},U.revive=function(q){if(q){if(q instanceof U)return q;var B=new k(q);return B._formatted=q.external,B._fsPath=q._sep===V?q.fsPath:null,B}return q},U}(),V=H?1:void 0,k=function(U){function q(){var B=U!==null&&U.apply(this,arguments)||this;return B._formatted=null,B._fsPath=null,B}return E(q,U),Object.defineProperty(q.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),q.prototype.toString=function(B){return B===void 0&&(B=!1),B?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},q.prototype.toJSON=function(){var B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=V),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B},q}(P),l=((O={})[58]="%3A",O[47]="%2F",O[63]="%3F",O[35]="%23",O[91]="%5B",O[93]="%5D",O[64]="%40",O[33]="%21",O[36]="%24",O[38]="%26",O[39]="%27",O[40]="%28",O[41]="%29",O[42]="%2A",O[43]="%2B",O[44]="%2C",O[59]="%3B",O[61]="%3D",O[32]="%20",O);function T(U,q){for(var B=void 0,se=-1,ke=0;ke<U.length;ke++){var xe=U.charCodeAt(ke);if(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===45||xe===46||xe===95||xe===126||q&&xe===47)se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B!==void 0&&(B+=U.charAt(ke));else{B===void 0&&(B=U.substr(0,ke));var Y=l[xe];Y!==void 0?(se!==-1&&(B+=encodeURIComponent(U.substring(se,ke)),se=-1),B+=Y):se===-1&&(se=ke)}}return se!==-1&&(B+=encodeURIComponent(U.substring(se))),B!==void 0?B:U}function N(U){for(var q=void 0,B=0;B<U.length;B++){var se=U.charCodeAt(B);se===35||se===63?(q===void 0&&(q=U.substr(0,B)),q+=l[se]):q!==void 0&&(q+=U[B])}return q!==void 0?q:U}function b(U,q){var B;return B=U.authority&&U.path.length>1&&U.scheme==="file"?"//"+U.authority+U.path:U.path.charCodeAt(0)===47&&(U.path.charCodeAt(1)>=65&&U.path.charCodeAt(1)<=90||U.path.charCodeAt(1)>=97&&U.path.charCodeAt(1)<=122)&&U.path.charCodeAt(2)===58?q?U.path.substr(1):U.path[1].toLowerCase()+U.path.substr(2):U.path,H&&(B=B.replace(/\//g,"\\")),B}function g(U,q){var B=q?N:T,se="",ke=U.scheme,xe=U.authority,Y=U.path,Z=U.query,te=U.fragment;if(ke&&(se+=ke,se+=":"),(xe||ke==="file")&&(se+=C,se+=C),xe){var he=xe.indexOf("@");if(he!==-1){var Ce=xe.substr(0,he);xe=xe.substr(he+1),(he=Ce.indexOf(":"))===-1?se+=B(Ce,!1):(se+=B(Ce.substr(0,he),!1),se+=":",se+=B(Ce.substr(he+1),!1)),se+="@"}(he=(xe=xe.toLowerCase()).indexOf(":"))===-1?se+=B(xe,!1):(se+=B(xe.substr(0,he),!1),se+=xe.substr(he))}if(Y){if(Y.length>=3&&Y.charCodeAt(0)===47&&Y.charCodeAt(2)===58)(Ae=Y.charCodeAt(1))>=65&&Ae<=90&&(Y="/"+String.fromCharCode(Ae+32)+":"+Y.substr(3));else if(Y.length>=2&&Y.charCodeAt(1)===58){var Ae;(Ae=Y.charCodeAt(0))>=65&&Ae<=90&&(Y=String.fromCharCode(Ae+32)+":"+Y.substr(2))}se+=B(Y,!0)}return Z&&(se+="?",se+=B(Z,!1)),te&&(se+="#",se+=q?te:T(te,!1)),se}var j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ie(U){return U.match(j)?U.replace(j,function(q){return function B(se){try{return decodeURIComponent(se)}catch(ke){return se.length>3?se.substr(0,3)+B(se.substr(3)):se}}(q)}):U}}).call(this,r(86))},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H});let h=!1,f=null;function O(E){if(!E.parent||E.parent===E)return null;try{let ge=E.location,W=E.parent.location;if(ge.origin!=="null"&&W.origin!=="null"&&(ge.protocol!==W.protocol||ge.hostname!==W.hostname||ge.port!==W.port))return h=!0,null}catch(ge){return h=!0,null}return E.parent}class H{static getSameOriginWindowChain(){if(!f){f=[];let ge,W=window;do ge=O(W),ge?f.push({window:W,iframeElement:W.frameElement||null}):f.push({window:W,iframeElement:null}),W=ge;while(W)}return f.slice(0)}static hasDifferentOriginAncestor(){return f||this.getSameOriginWindowChain(),h}static getPositionOfChildWindowRelativeToAncestorWindow(ge,W){if(!W||ge===W)return{top:0,left:0};let Q=0,y=0,C=this.getSameOriginWindowChain();for(let S of C){if(Q+=S.window.scrollY,y+=S.window.scrollX,S.window===W||!S.iframeElement)break;let P=S.iframeElement.getBoundingClientRect();Q+=P.top,y+=P.left}return{top:Q,left:y}}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(72),f=r(23);function O(H){let E=JSON.parse(H);return E=function ge(W,Q=0){if(!W||Q>200)return W;if(typeof W=="object"){switch(W.$mid){case 1:return f.a.revive(W);case 2:return new RegExp(W.source,W.flags)}if(W instanceof h.a||W instanceof Uint8Array)return W;if(Array.isArray(W))for(let y=0;y<W.length;++y)W[y]=ge(W[y],Q+1);else for(let y in W)Object.hasOwnProperty.call(W,y)&&(W[y]=ge(W[y],Q+1))}return W}(E),E}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return O}),r.d(w,"a",function(){return H});var h=r(8),f=r(42);function O(E){return E.replace(/[\\/]/g,f.e.sep)}function H(E,ge,W,Q=f.h){if(E===ge)return!0;if(!E||!ge||ge.length>E.length)return!1;if(W){if(!Object(h.T)(E,ge))return!1;if(ge.length===E.length)return!0;let y=ge.length;return ge.charAt(ge.length-1)===Q&&y--,E.charAt(y)===Q}return ge.charAt(ge.length-1)!==Q&&(ge+=Q),E.indexOf(ge)===0}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O}),r.d(w,"b",function(){return H});var h=r(72),f=r(132);class O{constructor(W,Q,y,C){this.oldPosition=W,this.oldText=Q,this.newPosition=y,this.newText=C}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${this.newText}")`:this.newText.length===0?`(delete@${this.oldPosition} "${this.oldText}")`:`(replace@${this.oldPosition} "${this.oldText}" with "${this.newText}")`}static _writeStringSize(W){return 4+2*W.length}static _writeString(W,Q,y){let C=Q.length;h.f(W,C,y),y+=4;for(let S=0;S<C;S++)h.e(W,Q.charCodeAt(S),y),y+=2;return y}static _readString(W,Q){let y=h.c(W,Q);return Q+=4,Object(f.b)(W,Q,y)}writeSize(){return 8+O._writeStringSize(this.oldText)+O._writeStringSize(this.newText)}write(W,Q){return h.f(W,this.oldPosition,Q),Q+=4,h.f(W,this.newPosition,Q),Q+=4,Q=O._writeString(W,this.oldText,Q),Q=O._writeString(W,this.newText,Q)}static read(W,Q,y){let C=h.c(W,Q);Q+=4;let S=h.c(W,Q);Q+=4;let P=O._readString(W,Q);Q+=O._writeStringSize(P);let V=O._readString(W,Q);return Q+=O._writeStringSize(V),y.push(new O(C,P,S,V)),Q}}function H(ge,W){return ge===null||ge.length===0?W:new E(ge,W).compress()}class E{constructor(W,Q){this._prevEdits=W,this._currEdits=Q,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let W=0,Q=0,y=this._getPrev(W),C=this._getCurr(Q);for(;W<this._prevLen||Q<this._currLen;){if(y===null){this._acceptCurr(C),C=this._getCurr(++Q);continue}if(C===null){this._acceptPrev(y),y=this._getPrev(++W);continue}if(C.oldEnd<=y.newPosition){this._acceptCurr(C),C=this._getCurr(++Q);continue}if(y.newEnd<=C.oldPosition){this._acceptPrev(y),y=this._getPrev(++W);continue}if(C.oldPosition<y.newPosition){let[k,l]=E._splitCurr(C,y.newPosition-C.oldPosition);this._acceptCurr(k),C=l;continue}if(y.newPosition<C.oldPosition){let[k,l]=E._splitPrev(y,C.oldPosition-y.newPosition);this._acceptPrev(k),y=l;continue}let P,V;if(C.oldEnd===y.newEnd)P=y,V=C,y=this._getPrev(++W),C=this._getCurr(++Q);else if(C.oldEnd<y.newEnd){let[k,l]=E._splitPrev(y,C.oldLength);P=k,V=C,y=l,C=this._getCurr(++Q)}else{let[k,l]=E._splitCurr(C,y.newLength);P=y,V=k,y=this._getPrev(++W),C=l}this._result[this._resultLen++]=new O(P.oldPosition,P.oldText,V.newPosition,V.newText),this._prevDeltaOffset+=P.newLength-P.oldLength,this._currDeltaOffset+=V.newLength-V.oldLength}let S=E._merge(this._result);return E._removeNoOps(S)}_acceptCurr(W){this._result[this._resultLen++]=E._rebaseCurr(this._prevDeltaOffset,W),this._currDeltaOffset+=W.newLength-W.oldLength}_getCurr(W){return W<this._currLen?this._currEdits[W]:null}_acceptPrev(W){this._result[this._resultLen++]=E._rebasePrev(this._currDeltaOffset,W),this._prevDeltaOffset+=W.newLength-W.oldLength}_getPrev(W){return W<this._prevLen?this._prevEdits[W]:null}static _rebaseCurr(W,Q){return new O(Q.oldPosition-W,Q.oldText,Q.newPosition,Q.newText)}static _rebasePrev(W,Q){return new O(Q.oldPosition,Q.oldText,Q.newPosition+W,Q.newText)}static _splitPrev(W,Q){let y=W.newText.substr(0,Q),C=W.newText.substr(Q);return[new O(W.oldPosition,W.oldText,W.newPosition,y),new O(W.oldEnd,"",W.newPosition+Q,C)]}static _splitCurr(W,Q){let y=W.oldText.substr(0,Q),C=W.oldText.substr(Q);return[new O(W.oldPosition,y,W.newPosition,W.newText),new O(W.oldPosition+Q,C,W.newEnd,"")]}static _merge(W){if(W.length===0)return W;let Q=[],y=0,C=W[0];for(let S=1;S<W.length;S++){let P=W[S];C.oldEnd===P.oldPosition?C=new O(C.oldPosition,C.oldText+P.oldText,C.newPosition,C.newText+P.newText):(Q[y++]=C,C=P)}return Q[y++]=C,Q}static _removeNoOps(W){if(W.length===0)return W;let Q=[],y=0;for(let C=0;C<W.length;C++){let S=W[C];S.oldText!==S.newText&&(Q[y++]=S)}return Q}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge});var h=r(8),f=r(62),O=r(22),H=r(81),E=r(3);class ge{static deleteRight(Q,y,C,S){let P=[],V=Q!==3;for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T;if(N.isEmpty()){let b=T.getPosition(),g=H.a.right(y,C,b.lineNumber,b.column);N=new E.a(g.lineNumber,g.column,b.lineNumber,b.column)}N.isEmpty()?P[k]=null:(N.startLineNumber!==N.endLineNumber&&(V=!0),P[k]=new f.a(N,""))}return[V,P]}static _isAutoClosingPairDelete(Q,y,C){if(Q.autoClosingBrackets==="never"&&Q.autoClosingQuotes==="never")return!1;for(let S=0,P=C.length;S<P;S++){let V=C[S],k=V.getPosition();if(!V.isEmpty())return!1;let l=y.getLineContent(k.lineNumber),T=l[k.column-2],N=Q.autoClosingPairsOpen2.get(T);if(!N)return!1;if(Object(O.g)(T)){if(Q.autoClosingQuotes==="never")return!1}else if(Q.autoClosingBrackets==="never")return!1;let b=l[k.column-1],g=!1;for(let j of N)j.open===T&&j.close===b&&(g=!0);if(!g)return!1}return!0}static _runAutoClosingPairDelete(Q,y,C){let S=[];for(let P=0,V=C.length;P<V;P++){let k=C[P].getPosition(),l=new E.a(k.lineNumber,k.column-1,k.lineNumber,k.column+1);S[P]=new f.a(l,"")}return[!0,S]}static deleteLeft(Q,y,C,S){if(this._isAutoClosingPairDelete(y,C,S))return this._runAutoClosingPairDelete(y,C,S);let P=[],V=Q!==2;for(let k=0,l=S.length;k<l;k++){let T=S[k],N=T;if(N.isEmpty()){let b=T.getPosition();if(y.useTabStops&&b.column>1){let g=C.getLineContent(b.lineNumber),j=h.w(g),ie=j===-1?g.length+1:j+1;if(b.column<=ie){let U=O.a.visibleColumnFromColumn2(y,C,b),q=O.a.prevIndentTabStop(U,y.indentSize),B=O.a.columnFromVisibleColumn2(y,C,b.lineNumber,q);N=new E.a(b.lineNumber,B,b.lineNumber,b.column)}else N=new E.a(b.lineNumber,b.column-1,b.lineNumber,b.column)}else{let g=H.a.left(y,C,b.lineNumber,b.column);N=new E.a(g.lineNumber,g.column,b.lineNumber,b.column)}}N.isEmpty()?P[k]=null:(N.startLineNumber!==N.endLineNumber&&(V=!0),P[k]=new f.a(N,""))}return[V,P]}static cut(Q,y,C){let S=[];for(let P=0,V=C.length;P<V;P++){let k=C[P];if(k.isEmpty())if(Q.emptySelectionClipboard){let l,T,N,b,g=k.getPosition();g.lineNumber<y.getLineCount()?(l=g.lineNumber,T=1,N=g.lineNumber+1,b=1):g.lineNumber>1?(l=g.lineNumber-1,T=y.getLineMaxColumn(g.lineNumber-1),N=g.lineNumber,b=y.getLineMaxColumn(g.lineNumber)):(l=g.lineNumber,T=1,N=g.lineNumber,b=y.getLineMaxColumn(g.lineNumber));let j=new E.a(l,T,N,b);j.isEmpty()?S[P]=null:S[P]=new f.a(j,"")}else S[P]=null;else S[P]=new f.a(k,"")}return new O.e(0,S,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},function(Ie,w,r){"use strict";r.d(w,"b",function(){return E}),r.d(w,"a",function(){return ge});var h=r(8),f=r(111),O=r(90);let H={getInitialState:()=>O.c,tokenize2:(W,Q,y)=>Object(O.e)(0,W,Q,y)};function E(W,Q=H){return function(y,C){let S='<div class="monaco-tokenized-source">',P=y.split(/\r\n|\r|\n/),V=C.getInitialState();for(let k=0,l=P.length;k<l;k++){let T=P[k];k>0&&(S+="<br/>");let N=C.tokenize2(T,V,0);f.a.convertToEndOffset(N.tokens,T.length);let b=new f.a(N.tokens,T).inflate(),g=0;for(let j=0,ie=b.getCount();j<ie;j++){let U=b.getClassName(j),q=b.getEndOffset(j);S+=`<span class="${U}">${h.u(T.substring(g,q))}</span>`,g=q}V=N.endState}return S+="</div>",S}(W,Q||H)}function ge(W,Q,y,C,S,P,V){let k="<div>",l=C,T=0;for(let N=0,b=Q.getCount();N<b;N++){let g=Q.getEndOffset(N);if(g<=C)continue;let j="";for(;l<g&&l<S;l++){let ie=W.charCodeAt(l);switch(ie){case 9:let U=P-(l+T)%P;for(T+=U-1;U>0;)j+=V?" ":" ",U--;break;case 60:j+="<";break;case 62:j+=">";break;case 38:j+="&";break;case 0:j+="�";break;case 65279:case 8232:case 8233:case 133:j+="\uFFFD";break;case 13:j+="​";break;case 32:j+=V?" ":" ";break;default:j+=String.fromCharCode(ie)}}if(k+=`<span style="${Q.getInlineStyle(N,y)}">${j}</span>`,g>S||l>=S)break}return k+="</div>",k}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return B}),r.d(w,"b",function(){return se}),r.d(w,"c",function(){return ke});var h=r(6),f=r(2),O=r(11),H=r(13),E=r(26),ge=r(30),W=r(12),Q=r(146),y=r(152),C=r(54),S=r(20),P=r(25),V=r(19),k=r(102),l=r(150),T=r(89),N=r(175),b=r(184),g=function(he,Ce,Ae,L){var nt,ct=arguments.length,Ye=ct<3?Ce:L===null?L=Object.getOwnPropertyDescriptor(Ce,Ae):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ye=Reflect.decorate(he,Ce,Ae,L);else for(var ht=he.length-1;ht>=0;ht--)(nt=he[ht])&&(Ye=(ct<3?nt(Ye):ct>3?nt(Ce,Ae,Ye):nt(Ce,Ae))||Ye);return ct>3&&Ye&&Object.defineProperty(Ce,Ae,Ye),Ye},j=function(he,Ce){return function(Ae,L){Ce(Ae,L,he)}};function ie(he){return he.toString()}class U{constructor(Ce,Ae,L){this._modelEventListeners=new f.b,this.model=Ce,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(Ce.onWillDispose(()=>Ae(Ce))),this._modelEventListeners.add(Ce.onDidChangeLanguage(nt=>L(Ce,nt)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(Ce){this._disposeLanguageSelection(),this._languageSelection=Ce,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(Ce.languageIdentifier)),this.model.setMode(Ce.languageIdentifier)}}let q=O.d||O.f?1:2,B=class Hd extends f.a{constructor(Ce,Ae,L,nt,ct){super(),this._configurationService=Ce,this._resourcePropertiesService=Ae,this._themeService=L,this._logService=nt,this._undoRedoService=ct,this._onModelAdded=this._register(new h.a),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new h.a),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new h.a),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new Y(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new xe(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(Ce,Ae){let L=E.d.tabSize;if(Ce.editor&&Ce.editor.tabSize!==void 0){let z=parseInt(Ce.editor.tabSize,10);isNaN(z)||(L=z),L<1&&(L=1)}let nt=L;if(Ce.editor&&Ce.editor.indentSize!==void 0&&Ce.editor.indentSize!=="tabSize"){let z=parseInt(Ce.editor.indentSize,10);isNaN(z)||(nt=z),nt<1&&(nt=1)}let ct=E.d.insertSpaces;Ce.editor&&Ce.editor.insertSpaces!==void 0&&(ct=Ce.editor.insertSpaces!=="false"&&Boolean(Ce.editor.insertSpaces));let Ye=q,ht=Ce.eol;ht===`\r `?Ye=2:ht===` -`&&(Ye=1);let fe=E.d.trimAutoWhitespace;Ce.editor&&Ce.editor.trimAutoWhitespace!==void 0&&(fe=Ce.editor.trimAutoWhitespace!=="false"&&Boolean(Ce.editor.trimAutoWhitespace));let $=E.d.detectIndentation;Ce.editor&&Ce.editor.detectIndentation!==void 0&&($=Ce.editor.detectIndentation!=="false"&&Boolean(Ce.editor.detectIndentation));let G=E.d.largeFileOptimizations;return Ce.editor&&Ce.editor.largeFileOptimizations!==void 0&&(G=Ce.editor.largeFileOptimizations!=="false"&&Boolean(Ce.editor.largeFileOptimizations)),{isForSimpleWidget:Ae,tabSize:L,indentSize:nt,insertSpaces:ct,detectIndentation:$,defaultEOL:Ye,trimAutoWhitespace:fe,largeFileOptimizations:G}}_getEOL(Ce,Ae){if(Ce)return this._resourcePropertiesService.getEOL(Ce,Ae);let L=this._configurationService.getValue("files.eol",{overrideIdentifier:Ae});return L&&L!=="auto"?L:D.a===3||D.a===2?` +`&&(Ye=1);let fe=E.d.trimAutoWhitespace;Ce.editor&&Ce.editor.trimAutoWhitespace!==void 0&&(fe=Ce.editor.trimAutoWhitespace!=="false"&&Boolean(Ce.editor.trimAutoWhitespace));let $=E.d.detectIndentation;Ce.editor&&Ce.editor.detectIndentation!==void 0&&($=Ce.editor.detectIndentation!=="false"&&Boolean(Ce.editor.detectIndentation));let G=E.d.largeFileOptimizations;return Ce.editor&&Ce.editor.largeFileOptimizations!==void 0&&(G=Ce.editor.largeFileOptimizations!=="false"&&Boolean(Ce.editor.largeFileOptimizations)),{isForSimpleWidget:Ae,tabSize:L,indentSize:nt,insertSpaces:ct,detectIndentation:$,defaultEOL:Ye,trimAutoWhitespace:fe,largeFileOptimizations:G}}_getEOL(Ce,Ae){if(Ce)return this._resourcePropertiesService.getEOL(Ce,Ae);let L=this._configurationService.getValue("files.eol",{overrideIdentifier:Ae});return L&&L!=="auto"?L:O.a===3||O.a===2?` `:`\r -`}getCreationOptions(Ce,Ae,L){let nt=this._modelCreationOptionsByLanguageAndResource[Ce+Ae];if(!nt){let ct=this._configurationService.getValue("editor",{overrideIdentifier:Ce,resource:Ae}),Ye=this._getEOL(Ae,Ce);nt=Hd._readModelOptions({editor:ct,eol:Ye},L),this._modelCreationOptionsByLanguageAndResource[Ce+Ae]=nt}return nt}_updateModelOptions(){let Ce=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let Ae=Object.keys(this._models);for(let L=0,nt=Ae.length;L<nt;L++){let ct=Ae[L],Ye=this._models[ct],ht=Ye.model.getLanguageIdentifier().language,fe=Ye.model.uri,$=Ce[ht+fe],G=this.getCreationOptions(ht,fe,Ye.model.isForSimpleWidget);Hd._setModelOptionsForModel(Ye.model,G,$)}}static _setModelOptionsForModel(Ce,Ae,L){L&&L.defaultEOL!==Ae.defaultEOL&&Ce.getLineCount()===1&&Ce.setEOL(Ae.defaultEOL===1?0:1),L&&L.detectIndentation===Ae.detectIndentation&&L.insertSpaces===Ae.insertSpaces&&L.tabSize===Ae.tabSize&&L.indentSize===Ae.indentSize&&L.trimAutoWhitespace===Ae.trimAutoWhitespace||(Ae.detectIndentation?(Ce.detectIndentation(Ae.insertSpaces,Ae.tabSize),Ce.updateOptions({trimAutoWhitespace:Ae.trimAutoWhitespace})):Ce.updateOptions({insertSpaces:Ae.insertSpaces,tabSize:Ae.tabSize,indentSize:Ae.indentSize,trimAutoWhitespace:Ae.trimAutoWhitespace}))}_removeDisposedModel(Ce){let Ae=this._disposedModels.get(ie(Ce));return Ae&&(this._disposedModelsHeapSize-=Ae.heapSize),this._disposedModels.delete(ie(Ce)),Ae}_createModelData(Ce,Ae,L,nt){let ct=this.getCreationOptions(Ae.language,L,nt),Ye=new ge.b(Ce,ct,Ae,L,this._undoRedoService);if(L&&this._disposedModels.has(ie(L))){let $=this._removeDisposedModel(L),G=this._undoRedoService.getElements(L),z=function(J){let Se=new T.a,A=J.createSnapshot(),ee;for(;ee=A.read();)Se.update(ee);return Se.digest()}(Ye)===$.sha1;if(z||$.sharesUndoRedoStack){for(let J of G.past)Object(N.b)(J)&&J.matchesResource(L)&&J.setModel(Ye);for(let J of G.future)Object(N.b)(J)&&J.matchesResource(L)&&J.setModel(Ye);this._undoRedoService.setElementsValidFlag(L,!0,J=>Object(N.b)(J)&&J.matchesResource(L)),z&&(Ye._overwriteVersionId($.versionId),Ye._overwriteAlternativeVersionId($.alternativeVersionId),Ye._overwriteInitialUndoRedoSnapshot($.initialUndoRedoSnapshot))}else $.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot($.initialUndoRedoSnapshot)}let ht=ie(Ye.uri);if(this._models[ht])throw new Error("ModelService: Cannot add model because it already exists!");let fe=new U(Ye,$=>this._onWillDispose($),($,G)=>this._onDidChangeLanguage($,G));return this._models[ht]=fe,fe}createModel(Ce,Ae,L,nt=!1){let ct;return Ae?(ct=this._createModelData(Ce,Ae.languageIdentifier,L,nt),this.setMode(ct.model,Ae)):ct=this._createModelData(Ce,Q.b,L,nt),this._onModelAdded.fire(ct.model),ct.model}setMode(Ce,Ae){if(!Ae)return;let L=this._models[ie(Ce.uri)];L&&L.setLanguage(Ae)}getModels(){let Ce=[],Ae=Object.keys(this._models);for(let L=0,nt=Ae.length;L<nt;L++){let ct=Ae[L];Ce.push(this._models[ct].model)}return Ce}getModel(Ce){let Ae=ie(Ce),L=this._models[Ae];return L?L.model:null}getSemanticTokensProviderStyling(Ce){return this._semanticStyling.get(Ce)}_onWillDispose(Ce){let Ae=ie(Ce.uri),L=this._models[Ae];delete this._models[Ae],L.dispose(),delete this._modelCreationOptionsByLanguageAndResource[Ce.getLanguageIdentifier().language+Ce.uri],this._onModelRemoved.fire(Ce)}_onDidChangeLanguage(Ce,Ae){let L=Ae.oldLanguage,nt=Ce.getLanguageIdentifier().language,ct=this.getCreationOptions(L,Ce.uri,Ce.isForSimpleWidget),Ye=this.getCreationOptions(nt,Ce.uri,Ce.isForSimpleWidget);Hd._setModelOptionsForModel(Ce,Ye,ct),this._onModelModeChanged.fire({model:Ce,oldModeId:L})}};B=g([j(0,C.a),j(1,y.b),j(2,V.c),j(3,k.b),j(4,l.a)],B);let se="editor.semanticHighlighting";function ke(he,Ce,Ae){var L;let nt=(L=Ae.getValue(se,{overrideIdentifier:he.getLanguageIdentifier().language,resource:he.uri}))===null||L===void 0?void 0:L.enabled;return typeof nt=="boolean"?nt:Ce.getColorTheme().semanticHighlighting}class xe extends f.a{constructor(Ce,Ae,L,nt){super(),this._watchers=Object.create(null),this._semanticStyling=nt;let ct=fe=>{this._watchers[fe.uri.toString()]=new te(fe,Ae,this._semanticStyling)},Ye=(fe,$)=>{$.dispose(),delete this._watchers[fe.uri.toString()]},ht=()=>{for(let fe of Ce.getModels()){let $=this._watchers[fe.uri.toString()];ke(fe,Ae,L)?$||ct(fe):$&&Ye(fe,$)}};this._register(Ce.onModelAdded(fe=>{ke(fe,Ae,L)&&ct(fe)})),this._register(Ce.onModelRemoved(fe=>{let $=this._watchers[fe.uri.toString()];$&&Ye(fe,$)})),this._register(L.onDidChangeConfiguration(fe=>{fe.affectsConfiguration(se)&&ht()})),this._register(Ae.onDidColorThemeChange(ht))}}class Y extends f.a{constructor(Ce,Ae){super(),this._themeService=Ce,this._logService=Ae,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(Ce){return this._caches.has(Ce)||this._caches.set(Ce,new b.a(Ce.getLegend(),this._themeService,this._logService)),this._caches.get(Ce)}}class Z{constructor(Ce,Ae,L){this._provider=Ce,this.resultId=Ae,this.data=L}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class te extends f.a{constructor(Ce,Ae,L){super(),this._isDisposed=!1,this._model=Ce,this._semanticStyling=L,this._fetchDocumentSemanticTokens=this._register(new S.d(()=>this._fetchDocumentSemanticTokensNow(),300)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}));let nt=()=>{Object(f.f)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let ct of W.l.all(Ce))typeof ct.onDidChange=="function"&&this._documentProvidersChangeListeners.push(ct.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};nt(),this._register(W.l.onDidChange(()=>{nt(),this._fetchDocumentSemanticTokens.schedule()})),this._register(Ae.onDidColorThemeChange(ct=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;let Ce=this._getSemanticColoringProvider();if(!Ce)return;this._currentDocumentRequestCancellationTokenSource=new P.b;let Ae=[],L=this._model.onDidChangeContent(Ye=>{Ae.push(Ye)}),nt=this._semanticStyling.get(Ce),ct=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null;Promise.resolve(Ce.provideDocumentSemanticTokens(this._model,ct,this._currentDocumentRequestCancellationTokenSource.token)).then(Ye=>{this._currentDocumentRequestCancellationTokenSource=null,L.dispose(),this._setDocumentSemanticTokens(Ce,Ye||null,nt,Ae)},Ye=>{Ye&&typeof Ye.message=="string"&&Ye.message.indexOf("busy")!==-1||H.e(Ye),this._currentDocumentRequestCancellationTokenSource=null,L.dispose(),Ae.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _isSemanticTokens(Ce){return Ce&&!!Ce.data}static _isSemanticTokensEdits(Ce){return Ce&&Array.isArray(Ce.edits)}static _copy(Ce,Ae,L,nt,ct){for(let Ye=0;Ye<ct;Ye++)L[nt+Ye]=Ce[Ae+Ye]}_setDocumentSemanticTokens(Ce,Ae,L,nt){let ct=this._currentDocumentResponse;if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)Ce&&Ae&&Ce.releaseDocumentSemanticTokens(Ae.resultId);else if(Ce&&L)if(Ae){if(te._isSemanticTokensEdits(Ae)){if(!ct)return void this._model.setSemanticTokens(null,!0);if(Ae.edits.length===0)Ae={resultId:Ae.resultId,data:ct.data};else{let Ye=0;for(let z of Ae.edits)Ye+=(z.data?z.data.length:0)-z.deleteCount;let ht=ct.data,fe=new Uint32Array(ht.length+Ye),$=ht.length,G=fe.length;for(let z=Ae.edits.length-1;z>=0;z--){let J=Ae.edits[z],Se=$-(J.start+J.deleteCount);Se>0&&(te._copy(ht,$-Se,fe,G-Se,Se),G-=Se),J.data&&(te._copy(J.data,0,fe,G-J.data.length,J.data.length),G-=J.data.length),$=J.start}$>0&&te._copy(ht,0,fe,0,$),Ae={resultId:Ae.resultId,data:fe}}}if(te._isSemanticTokens(Ae)){this._currentDocumentResponse=new Z(Ce,Ae.resultId,Ae.data);let Ye=Object(b.b)(Ae,L,this._model.getLanguageIdentifier());if(nt.length>0){for(let ht of nt)for(let fe of Ye)for(let $ of ht.changes)fe.applyEdit($.range,$.text);this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}this._model.setSemanticTokens(Ye,!0)}else this._model.setSemanticTokens(null,!0)}else this._model.setSemanticTokens(null,!0);else this._model.setSemanticTokens(null,!1)}_getSemanticColoringProvider(){let Ce=W.l.ordered(this._model);return Ce.length>0?Ce[0]:null}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return H}),o.d(w,"b",function(){return E});var h=o(12),f=o(102),D=o(124);class H{constructor(y,C,S){this._legend=y,this._themeService=C,this._logService=S,this._hashTable=new W}getMetadata(y,C,S){let P=this._hashTable.get(y,C,S.id),V;if(P)V=P.metadata,this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${y} / ${C}: foreground ${h.B.getForeground(V)}, fontStyle ${h.B.getFontStyle(V).toString(2)}`);else{let k=this._legend.tokenTypes[y],l=[];if(k){let T=C;for(let b=0;T>0&&b<this._legend.tokenModifiers.length;b++)1&T&&l.push(this._legend.tokenModifiers[b]),T>>=1;T>0&&this._logService.getLevel()===f.c.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${C.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));let N=this._themeService.getColorTheme().getTokenStyleMetadata(k,l,S.language);N===void 0?V=2147483647:(V=0,N.italic!==void 0&&(V|=1|(N.italic?1:0)<<11),N.bold!==void 0&&(V|=2|(N.bold?2:0)<<11),N.underline!==void 0&&(V|=4|(N.underline?4:0)<<11),N.foreground&&(V|=8|N.foreground<<14),V===0&&(V=2147483647))}else this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${y} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),V=2147483647,k="not-in-legend";this._hashTable.add(y,C,S.id,V),this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${y} (${k}) / ${C} (${l.join(" ")}): foreground ${h.B.getForeground(V)}, fontStyle ${h.B.getFontStyle(V).toString(2)}`)}return V}}function E(Q,y,C){let S=Q.data,P=Q.data.length/5|0,V=Math.max(Math.ceil(P/1024),400),k=[],l=0,T=1,N=0;for(;l<P;){let b=l,g=Math.min(b+V,P);if(g<P){let B=g;for(;B-1>b&&S[5*B]===0;)B--;if(B-1===b){let se=g;for(;se+1<P&&S[5*se]===0;)se++;g=se}else g=B}let j=new Uint32Array(4*(g-b)),ie=0,U=0;for(;l<g;){let B=5*l,se=S[B],ke=S[B+1],xe=T+se,Y=se===0?N+ke:ke,Z=S[B+2],te=S[B+3],he=S[B+4],Ce=y.getMetadata(te,he,C);Ce!==2147483647&&(U===0&&(U=xe),j[ie]=xe-U,j[ie+1]=Y,j[ie+2]=Y+Z,j[ie+3]=Ce,ie+=4),T=xe,N=Y,l++}ie!==j.length&&(j=j.subarray(0,ie));let q=new D.a(U,new D.c(j));k.push(q)}return k}class ge{constructor(y,C,S,P){this.tokenTypeIndex=y,this.tokenModifierSet=C,this.languageId=S,this.metadata=P,this.next=null}}class W{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=W._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<W._SIZES.length?2/3*this._currentLength:0),this._elements=[],W._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(y,C){for(let S=0;S<C;S++)y[S]=null}_hash2(y,C){return(y<<5)-y+C|0}_hashFunc(y,C,S){return this._hash2(this._hash2(y,C),S)%this._currentLength}get(y,C,S){let P=this._hashFunc(y,C,S),V=this._elements[P];for(;V;){if(V.tokenTypeIndex===y&&V.tokenModifierSet===C&&V.languageId===S)return V;V=V.next}return null}add(y,C,S,P){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){let V=this._elements;this._currentLengthIndex++,this._currentLength=W._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<W._SIZES.length?2/3*this._currentLength:0),this._elements=[],W._nullOutEntries(this._elements,this._currentLength);for(let k of V){let l=k;for(;l;){let T=l.next;l.next=null,this._add(l),l=T}}}this._add(new ge(y,C,S,P))}_add(y){let C=this._hashFunc(y.tokenTypeIndex,y.tokenModifierSet,y.languageId);y.next=this._elements[C],this._elements[C]=y}}W._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},function(Ie,w,o){"use strict";o.d(w,"a",function(){return ge}),o(275);var h=o(1),f=o(8),D=o(16),H=o(46);let E={badgeBackground:D.a.fromHex("#4D4D4D"),badgeForeground:D.a.fromHex("#FFFFFF")};class ge{constructor(Q,y){this.count=0,this.options=y||Object.create(null),Object(H.g)(this.options,E,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(h.p)(Q,Object(h.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(Q){this.count=Q,this.render()}setTitleFormat(Q){this.titleFormat=Q,this.render()}render(){this.element.textContent=Object(f.x)(this.countFormat,this.count),this.element.title=Object(f.x)(this.titleFormat,this.count),this.applyStyles()}style(Q){this.badgeBackground=Q.badgeBackground,this.badgeForeground=Q.badgeForeground,this.badgeBorder=Q.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){let Q=this.badgeBackground?this.badgeBackground.toString():"",y=this.badgeForeground?this.badgeForeground.toString():"",C=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=Q,this.element.style.color=y,this.element.style.borderWidth=C?"1px":"",this.element.style.borderStyle=C?"solid":"",this.element.style.borderColor=C}}}},function(Ie,w,o){var h=o(32),f=o(268);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return q});var h=o(15),f=o(8),D=o(179),H=o(42),E=o(78),ge=o(20);let W=/\//g;function Q(se){switch(se){case 0:return"";case 1:return"[^/\\\\]*?";default:return"(?:[/\\\\]|[^/\\\\]+[/\\\\]|[/\\\\][^/\\\\]+)*?"}}function y(se,ke){if(!se)return[];let xe=[],Y=!1,Z=!1,te="";for(let he of se){switch(he){case ke:if(!Y&&!Z){xe.push(te),te="";continue}break;case"{":Y=!0;break;case"}":Y=!1;break;case"[":Z=!0;break;case"]":Z=!1}te+=he}return te&&xe.push(te),xe}let C=/^\*\*\/\*\.[\w\.-]+$/,S=/^\*\*\/([\w\.-]+)\/?$/,P=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,V=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,k=/^\*\*((\/[\w\.-]+)+)\/?$/,l=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new E.a(1e4),N=function(){return!1},b=function(){return null};function g(se,ke){if(!se)return b;let xe;xe=typeof se!="string"?se.pattern:se,xe=xe.trim();let Y=`${xe}_${!!ke.trimForExclusions}`,Z,te=T.get(Y);if(te)return j(te,se);if(C.test(xe)){let he=xe.substr(4);te=function(Ce,Ae){return typeof Ce=="string"&&Ce.endsWith(he)?xe:null}}else te=(Z=S.exec(ie(xe,ke)))?function(he,Ce){let Ae="/"+he,L="\\"+he,nt=function(Ye,ht){return typeof Ye!="string"?null:ht?ht===he?Ce:null:Ye===he||Ye.endsWith(Ae)||Ye.endsWith(L)?Ce:null},ct=[he];return nt.basenames=ct,nt.patterns=[Ce],nt.allBasenames=ct,nt}(Z[1],xe):(ke.trimForExclusions?V:P).test(xe)?function(he,Ce){let Ae=B(he.slice(1,-1).split(",").map(ht=>g(ht,Ce)).filter(ht=>ht!==b),he),L=Ae.length;if(!L)return b;if(L===1)return Ae[0];let nt=function(ht,fe){for(let $=0,G=Ae.length;$<G;$++)if(Ae[$](ht,fe))return he;return null},ct=h.i(Ae,ht=>!!ht.allBasenames);ct&&(nt.allBasenames=ct.allBasenames);let Ye=Ae.reduce((ht,fe)=>fe.allPaths?ht.concat(fe.allPaths):ht,[]);return Ye.length&&(nt.allPaths=Ye),nt}(xe,ke):(Z=k.exec(ie(xe,ke)))?U(Z[1].substr(1),xe,!0):(Z=l.exec(ie(xe,ke)))?U(Z[1],xe,!1):function(he){try{let Ce=new RegExp(`^${function Ae(L){if(!L)return"";let nt="",ct=y(L,"/");if(ct.every(Ye=>Ye==="**"))nt=".*";else{let Ye=!1;ct.forEach((ht,fe)=>{if(ht==="**")return void(Ye||(nt+=Q(2),Ye=!0));let $=!1,G="",z=!1,J="";for(let Se of ht)if(Se!=="}"&&$)G+=Se;else if(!z||Se==="]"&&J)switch(Se){case"{":$=!0;continue;case"[":z=!0;continue;case"}":nt+=`(?:${y(G,",").map(ee=>Ae(ee)).join("|")})`,$=!1,G="";break;case"]":nt+="["+J+"]",z=!1,J="";break;case"?":nt+="[^/\\\\]";continue;case"*":nt+=Q(1);continue;default:nt+=f.v(Se)}else{let A;A=Se==="-"?Se:Se!=="^"&&Se!=="!"||J?Se==="/"?"":f.v(Se):"^",J+=A}fe<ct.length-1&&(ct[fe+1]!=="**"||fe+2<ct.length)&&(nt+="[/\\\\]"),Ye=!1})}return nt}(he)}$`);return function(Ae){return Ce.lastIndex=0,typeof Ae=="string"&&Ce.test(Ae)?he:null}}catch(Ce){return b}}(xe);return T.set(Y,te),j(te,se)}function j(se,ke){return typeof ke=="string"?se:function(xe,Y){return D.a(xe,ke.base)?se(H.f(ke.base,xe),Y):null}}function ie(se,ke){return ke.trimForExclusions&&se.endsWith("/**")?se.substr(0,se.length-2):se}function U(se,ke,xe){let Y=H.h!==H.e.sep?se.replace(W,H.h):se,Z=H.h+Y,te=xe?function(he,Ce){return typeof he!="string"||he!==Y&&!he.endsWith(Z)?null:ke}:function(he,Ce){return typeof he=="string"&&he===Y?ke:null};return te.allPaths=[(xe?"*/":"./")+se],te}function q(se,ke,xe){return!(!se||typeof ke!="string")&&function(Y,Z={}){if(!Y)return N;if(typeof Y=="string"||function(te){let he=te;return he&&typeof he.base=="string"&&typeof he.pattern=="string"}(Y)){let te=g(Y,Z);if(te===b)return N;let he=function(Ce,Ae){return!!te(Ce,Ae)};return te.allBasenames&&(he.allBasenames=te.allBasenames),te.allPaths&&(he.allPaths=te.allPaths),he}return function(te,he){let Ce=B(Object.getOwnPropertyNames(te).map(Ye=>function(ht,fe,$){if(fe===!1)return b;let G=g(ht,$);if(G===b)return b;if(typeof fe=="boolean")return G;if(fe){let z=fe.when;if(typeof z=="string"){let J=(Se,A,ee,de)=>{if(!de||!G(Se,A))return null;let Oe=de(z.replace("$(basename)",ee));return Object(ge.i)(Oe)?Oe.then($e=>$e?ht:null):Oe?ht:null};return J.requiresSiblings=!0,J}}return G}(Ye,te[Ye],he)).filter(Ye=>Ye!==b)),Ae=Ce.length;if(!Ae)return b;if(!Ce.some(Ye=>!!Ye.requiresSiblings)){if(Ae===1)return Ce[0];let Ye=function($,G){for(let z=0,J=Ce.length;z<J;z++){let Se=Ce[z]($,G);if(Se)return Se}return null},ht=h.i(Ce,$=>!!$.allBasenames);ht&&(Ye.allBasenames=ht.allBasenames);let fe=Ce.reduce(($,G)=>G.allPaths?$.concat(G.allPaths):$,[]);return fe.length&&(Ye.allPaths=fe),Ye}let L=function(Ye,ht,fe){let $;for(let G=0,z=Ce.length;G<z;G++){let J=Ce[G];J.requiresSiblings&&fe&&(ht||(ht=H.a(Ye)),$||($=ht.substr(0,ht.length-H.c(Ye).length)));let Se=J(Ye,ht,$,fe);if(Se)return Se}return null},nt=h.i(Ce,Ye=>!!Ye.allBasenames);nt&&(L.allBasenames=nt.allBasenames);let ct=Ce.reduce((Ye,ht)=>ht.allPaths?Ye.concat(ht.allPaths):Ye,[]);return ct.length&&(L.allPaths=ct),L}(Y,Z)}(se)(ke,void 0,xe)}function B(se,ke){let xe=se.filter(Ce=>!!Ce.basenames);if(xe.length<2)return se;let Y=xe.reduce((Ce,Ae)=>{let L=Ae.basenames;return L?Ce.concat(L):Ce},[]),Z;if(ke){Z=[];for(let Ce=0,Ae=Y.length;Ce<Ae;Ce++)Z.push(ke)}else Z=xe.reduce((Ce,Ae)=>{let L=Ae.patterns;return L?Ce.concat(L):Ce},[]);let te=function(Ce,Ae){if(typeof Ce!="string")return null;if(!Ae){let nt;for(nt=Ce.length;nt>0;nt--){let ct=Ce.charCodeAt(nt-1);if(ct===47||ct===92)break}Ae=Ce.substr(nt)}let L=Y.indexOf(Ae);return L!==-1?Z[L]:null};te.basenames=Y,te.patterns=Z,te.allBasenames=Y;let he=se.filter(Ce=>!Ce.basenames);return he.push(te),he}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return D});var h=o(56),f=o(6);let D={JSONContribution:"base.contributions.json"},H=new class{constructor(){this._onDidChangeSchema=new f.a,this.schemasById={}}registerSchema(E,ge){var W;this.schemasById[W=E,W.length>0&&W.charAt(W.length-1)==="#"?W.substring(0,W.length-1):W]=ge,this._onDidChangeSchema.fire(E)}notifySchemaChanged(E){this._onDidChangeSchema.fire(E)}};h.a.add(D.JSONContribution,H)},function(Ie,w,o){"use strict";o.d(w,"b",function(){return f}),o.d(w,"a",function(){return D});let h=Object.prototype.hasOwnProperty;function f(H,E){for(let ge in H)if(h.call(H,ge)&&E({key:ge,value:H[ge]},function(){delete H[ge]})===!1)return}class D{constructor(){this.map=new Map}add(E,ge){let W=this.map.get(E);W||(W=new Set,this.map.set(E,W)),W.add(ge)}delete(E,ge){let W=this.map.get(E);W&&(W.delete(ge),W.size===0&&this.map.delete(E))}forEach(E,ge){let W=this.map.get(E);W&&W.forEach(ge)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(2);class f extends h.a{constructor(H,E,ge){super(),this.referenceDomElement=H,this.changeCallback=ge,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,E)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){typeof ResizeObserver!="undefined"?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(H=>{H&&H[0]&&H[0].contentRect?this.observe({width:H[0].contentRect.width,height:H[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):this.measureReferenceDomElementToken===-1&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.measureReferenceDomElementToken!==-1&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(H){this.measureReferenceDomElement(!0,H)}measureReferenceDomElement(H,E){let ge=0,W=0;E?(ge=E.width,W=E.height):this.referenceDomElement&&(ge=this.referenceDomElement.clientWidth,W=this.referenceDomElement.clientHeight),ge=Math.max(5,ge),W=Math.max(5,W),this.width===ge&&this.height===W||(this.width=ge,this.height=W,H&&this.changeCallback())}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return h});class h{constructor(D,H,E,ge,W,Q){this.id=D,this.label=H,this.alias=E,this._precondition=ge,this._run=W,this._contextKeyService=Q}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return f});var h=o(18);let f=Object(h.c)("markerDecorationsService")},function(Ie,w,o){"use strict";o.d(w,"a",function(){return W});var h=o(174),f=o(6),D=o(2),H=o(46),E=o(3);let ge={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class W extends D.a{constructor(y,C={}){super(),this._onDidUpdate=this._register(new f.a),this._editor=y,this._options=H.g(C,ge,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(S=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(S=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(y){this.ranges=[],y&&y.forEach(C=>{!this._options.ignoreCharChanges&&C.charChanges?C.charChanges.forEach(S=>{this.ranges.push({rhs:!0,range:new E.a(S.modifiedStartLineNumber,S.modifiedStartColumn,S.modifiedEndLineNumber,S.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new E.a(C.modifiedStartLineNumber,1,C.modifiedStartLineNumber,1)})}),this.ranges.sort((C,S)=>C.range.getStartPosition().isBeforeOrEqual(S.range.getStartPosition())?-1:S.range.getStartPosition().isBeforeOrEqual(C.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(y){let C=!1,S=this._editor.getPosition();if(S){for(let P=0,V=this.ranges.length;P<V&&!C;P++){let k=this.ranges[P].range;S.isBeforeOrEqual(k.getStartPosition())&&(this.nextIdx=P+(y?0:-1),C=!0)}C||(this.nextIdx=y?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(y,C){if(h.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(y):y?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let P=S.range.getStartPosition();this._editor.setPosition(P),this._editor.revealPositionInCenter(P,C)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(y=0){this._move(!0,y)}previous(y=0){this._move(!1,y)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},function(Ie,w,o){"use strict";o.d(w,"a",function(){return Li}),o(244);var h=o(0),f=o(1),D=o(35),H=o(153),E=o(20),ge=o(6),W=o(2),Q=o(46),y=o(87),C=o(88),S=o(41),P=o(164),V=(o(248),o(116)),k=o(105),l=o(60),T=o(4),N=o(26),b=o(111),g=o(9),j=o(57),ie=o(91),U=o(74),q=o(10),B=o(5),se=o(19),ke=o(17);class xe{constructor(ze,st,_t,oi){this.originalLineStart=ze,this.originalLineEnd=st,this.modifiedLineStart=_t,this.modifiedLineEnd=oi}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class Y{constructor(ze){this.entries=ze}}let Z=Object(ke.e)("diff-review-insert",ke.a.add),te=Object(ke.e)("diff-review-remove",ke.a.remove),he=Object(ke.e)("diff-review-close",ke.a.close);class Ce extends W.a{constructor(ze){super(),this._width=0,this._diffEditor=ze,this._isVisible=!1,this.shadow=Object(D.b)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(D.b)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new V.a(this.actionBarContainer.domNode)),this._actionBar.push(new l.a("diffreview.close",h.a("label.close","Close"),"close-diff-review "+he.classNames,!0,()=>(this.hide(),Promise.resolve(null))),{label:!1,icon:!0}),this.domNode=Object(D.b)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(D.b)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new k.a(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(ze.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(ze.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(f.n(this.domNode.domNode,"click",st=>{st.preventDefault();let _t=f.w(st.target,"diff-review-row");_t&&this._goToRow(_t)})),this._register(f.n(this.domNode.domNode,"keydown",st=>{(st.equals(18)||st.equals(2066)||st.equals(530))&&(st.preventDefault(),this._goToRow(this._getNextRow())),(st.equals(16)||st.equals(2064)||st.equals(528))&&(st.preventDefault(),this._goToRow(this._getPrevRow())),(st.equals(9)||st.equals(2057)||st.equals(521)||st.equals(1033))&&(st.preventDefault(),this.hide()),(st.equals(10)||st.equals(3))&&(st.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let ze=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let _t=-1;for(let oi=0,li=this._diffs.length;oi<li;oi++)if(this._diffs[oi]===this._currentDiff){_t=oi;break}ze=this._diffs.length+_t-1}else ze=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;ze%=this._diffs.length;let st=this._diffs[ze].entries;this._diffEditor.setPosition(new g.a(st[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:st[0].modifiedLineStart,endColumn:1073741824,endLineNumber:st[st.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let ze=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let _t=-1;for(let oi=0,li=this._diffs.length;oi<li;oi++)if(this._diffs[oi]===this._currentDiff){_t=oi;break}ze=_t+1}else ze=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;ze%=this._diffs.length;let st=this._diffs[ze].entries;this._diffEditor.setPosition(new g.a(st[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:st[0].modifiedLineStart,endColumn:1073741824,endLineNumber:st[st.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let ze=-1,st=this._getCurrentFocusedRow();if(st){let _t=parseInt(st.getAttribute("data-line"),10);isNaN(_t)||(ze=_t)}this.hide(),ze!==-1&&(this._diffEditor.setPosition(new g.a(ze,1)),this._diffEditor.revealPosition(new g.a(ze,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){let ze=this._getCurrentFocusedRow();return ze?ze.previousElementSibling?ze.previousElementSibling:ze:this._getFirstRow()}_getNextRow(){let ze=this._getCurrentFocusedRow();return ze?ze.nextElementSibling?ze.nextElementSibling:ze:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){let ze=document.activeElement;return ze&&/diff-review-row/.test(ze.className)?ze:null}_goToRow(ze){let st=this._getCurrentFocusedRow();ze.tabIndex=0,ze.focus(),st&&st!==ze&&(st.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(ze,st,_t){this._width=st,this.shadow.setTop(ze-6),this.shadow.setWidth(st),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(ze),this.domNode.setWidth(st),this.domNode.setHeight(_t),this._content.setHeight(_t),this._content.setWidth(st),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){let ze=this._diffEditor.getLineChanges();if(!ze||ze.length===0)return[];let st=this._diffEditor.getOriginalEditor().getModel(),_t=this._diffEditor.getModifiedEditor().getModel();return st&&_t?Ce._mergeAdjacent(ze,st.getLineCount(),_t.getLineCount()):[]}static _mergeAdjacent(ze,st,_t){if(!ze||ze.length===0)return[];let oi=[],li=0;for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i],kt=yi.originalStartLineNumber,Et=yi.originalEndLineNumber,si=yi.modifiedStartLineNumber,Si=yi.modifiedEndLineNumber,Pi=[],Wi=0;{let xn=Et===0?kt:kt-1,un=Si===0?si:si-1,bn=1,Fn=1;if($i>0){let Hn=ze[$i-1];bn=Hn.originalEndLineNumber===0?Hn.originalStartLineNumber+1:Hn.originalEndLineNumber+1,Fn=Hn.modifiedEndLineNumber===0?Hn.modifiedStartLineNumber+1:Hn.modifiedEndLineNumber+1}let Mn=xn-3+1,Nn=un-3+1;if(Mn<bn){let Hn=bn-Mn;Mn+=Hn,Nn+=Hn}if(Nn<Fn){let Hn=Fn-Nn;Mn+=Hn,Nn+=Hn}Pi[Wi++]=new xe(Mn,xn,Nn,un)}Et!==0&&(Pi[Wi++]=new xe(kt,Et,0,0)),Si!==0&&(Pi[Wi++]=new xe(0,0,si,Si));{let xn=Et===0?kt+1:Et+1,un=Si===0?si+1:Si+1,bn=st,Fn=_t;if($i+1<Hi){let Hn=ze[$i+1];bn=Hn.originalEndLineNumber===0?Hn.originalStartLineNumber:Hn.originalStartLineNumber-1,Fn=Hn.modifiedEndLineNumber===0?Hn.modifiedStartLineNumber:Hn.modifiedStartLineNumber-1}let Mn=xn+3-1,Nn=un+3-1;if(Mn>bn){let Hn=bn-Mn;Mn+=Hn,Nn+=Hn}if(Nn>Fn){let Hn=Fn-Nn;Mn+=Hn,Nn+=Hn}Pi[Wi++]=new xe(xn,Mn,un,Nn)}oi[li++]=new Y(Pi)}let gi=oi[0].entries,ki=[],Ri=0;for(let $i=1,Hi=oi.length;$i<Hi;$i++){let yi=oi[$i].entries,kt=gi[gi.length-1],Et=yi[0];kt.getType()===0&&Et.getType()===0&&Et.originalLineStart<=kt.originalLineEnd?(gi[gi.length-1]=new xe(kt.originalLineStart,Et.originalLineEnd,kt.modifiedLineStart,Et.modifiedLineEnd),gi=gi.concat(yi.slice(1))):(ki[Ri++]=new Y(gi),gi=yi)}return ki[Ri++]=new Y(gi),ki}_findDiffIndex(ze){let st=ze.lineNumber;for(let _t=0,oi=this._diffs.length;_t<oi;_t++){let li=this._diffs[_t].entries;if(st<=li[li.length-1].modifiedLineEnd)return _t}return 0}_render(){let ze=this._diffEditor.getOriginalEditor().getOptions(),st=this._diffEditor.getModifiedEditor().getOptions(),_t=this._diffEditor.getOriginalEditor().getModel(),oi=this._diffEditor.getModifiedEditor().getModel(),li=_t.getOptions(),gi=oi.getOptions();if(!this._isVisible||!_t||!oi)return f.s(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});let ki=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[ki]===this._currentDiff)return;this._currentDiff=this._diffs[ki];let Ri=this._diffs[ki].entries,$i=document.createElement("div");$i.className="diff-review-table",$i.setAttribute("role","list"),$i.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),y.a.applyFontInfoSlow($i,st.get(36));let Hi=0,yi=0,kt=0,Et=0;for(let Nn=0,Hn=Ri.length;Nn<Hn;Nn++){let Jn=Ri[Nn],_o=Jn.originalLineStart,pn=Jn.originalLineEnd,Gn=Jn.modifiedLineStart,on=Jn.modifiedLineEnd;_o!==0&&(Hi===0||_o<Hi)&&(Hi=_o),pn!==0&&(yi===0||pn>yi)&&(yi=pn),Gn!==0&&(kt===0||Gn<kt)&&(kt=Gn),on!==0&&(Et===0||on>Et)&&(Et=on)}let si=document.createElement("div");si.className="diff-review-row";let Si=document.createElement("div");Si.className="diff-review-cell diff-review-summary";let Pi=yi-Hi+1,Wi=Et-kt+1;Si.appendChild(document.createTextNode(`${ki+1}/${this._diffs.length}: @@ -${Hi},${Pi} +${kt},${Wi} @@`)),si.setAttribute("data-line",String(kt));let xn=Nn=>Nn===0?h.a("no_lines_changed","no lines changed"):Nn===1?h.a("one_line_changed","1 line changed"):h.a("more_lines_changed","{0} lines changed",Nn),un=xn(Pi),bn=xn(Wi);si.setAttribute("aria-label",h.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",ki+1,this._diffs.length,Hi,un,kt,bn)),si.appendChild(Si),si.setAttribute("role","listitem"),$i.appendChild(si);let Fn=st.get(51),Mn=kt;for(let Nn=0,Hn=Ri.length;Nn<Hn;Nn++){let Jn=Ri[Nn];Ce._renderSection($i,Jn,Mn,Fn,this._width,ze,_t,li,st,oi,gi),Jn.modifiedLineStart!==0&&(Mn=Jn.modifiedLineEnd)}f.s(this._content.domNode),this._content.domNode.appendChild($i),this.scrollbar.scanDomNode()}static _renderSection(ze,st,_t,oi,li,gi,ki,Ri,$i,Hi,yi){let kt=st.getType(),Et="diff-review-row",si="",Si=null;switch(kt){case 1:Et="diff-review-row line-insert",si=" char-insert",Si=Z;break;case 2:Et="diff-review-row line-delete",si=" char-delete",Si=te}let Pi=st.originalLineStart,Wi=st.originalLineEnd,xn=st.modifiedLineStart,un=st.modifiedLineEnd,bn=Math.max(un-xn,Wi-Pi),Fn=gi.get(117),Mn=Fn.glyphMarginWidth+Fn.lineNumbersWidth,Nn=$i.get(117),Hn=10+Nn.glyphMarginWidth+Nn.lineNumbersWidth;for(let Jn=0;Jn<=bn;Jn++){let _o=Pi===0?0:Pi+Jn,pn=xn===0?0:xn+Jn,Gn=document.createElement("div");Gn.style.minWidth=li+"px",Gn.className=Et,Gn.setAttribute("role","listitem"),pn!==0&&(_t=pn),Gn.setAttribute("data-line",String(_t));let on=document.createElement("div");on.className="diff-review-cell",on.style.height=oi+"px",Gn.appendChild(on);let ho=document.createElement("span");ho.style.width=Mn+"px",ho.style.minWidth=Mn+"px",ho.className="diff-review-line-number"+si,_o!==0?ho.appendChild(document.createTextNode(String(_o))):ho.innerText="\xA0",on.appendChild(ho);let On=document.createElement("span");On.style.width=Hn+"px",On.style.minWidth=Hn+"px",On.style.paddingRight="10px",On.className="diff-review-line-number"+si,pn!==0?On.appendChild(document.createTextNode(String(pn))):On.innerText="\xA0",on.appendChild(On);let Dn=document.createElement("span");if(Dn.className="diff-review-spacer",Si){let ne=document.createElement("span");ne.className=Si.classNames,ne.innerText="\xA0\xA0",Dn.appendChild(ne)}else Dn.innerText="\xA0\xA0";let qt;on.appendChild(Dn),pn!==0?(on.insertAdjacentHTML("beforeend",this._renderLine(Hi,$i,yi.tabSize,pn)),qt=Hi.getLineContent(pn)):(on.insertAdjacentHTML("beforeend",this._renderLine(ki,gi,Ri.tabSize,_o)),qt=ki.getLineContent(_o)),qt.length===0&&(qt=h.a("blankLine","blank"));let I="";switch(kt){case 0:I=_o===pn?h.a({key:"unchangedLine",comment:["The placholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",qt,_o):h.a("equalLine","{0} original line {1} modified line {2}",qt,_o,pn);break;case 1:I=h.a("insertLine","+ {0} modified line {1}",qt,pn);break;case 2:I=h.a("deleteLine","- {0} original line {1}",qt,_o)}Gn.setAttribute("aria-label",I),ze.appendChild(Gn)}}static _renderLine(ze,st,_t,oi){let li=ze.getLineContent(oi),gi=st.get(36),ki=new Uint32Array(2);ki[0]=li.length,ki[1]=16793600;let Ri=new b.a(ki,li),$i=U.d.isBasicASCII(li,ze.mightContainNonBasicASCII()),Hi=U.d.containsRTL(li,$i,ze.mightContainRTL());return Object(ie.e)(new ie.c(gi.isMonospace&&!st.get(24),gi.canUseHalfwidthRightwardsArrow,li,!1,$i,Hi,0,Ri,[],_t,0,gi.spaceWidth,gi.middotWidth,gi.wsmiddotWidth,st.get(95),st.get(80),st.get(74),st.get(37)!==N.e.OFF,null)).html}}Object(se.g)((ut,ze)=>{let st=ut.getColor(j.k);st&&ze.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${st}; }`);let _t=ut.getColor(B.ic);_t&&ze.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${_t} 0 -6px 6px -6px inset; }`)});class Ae extends T.b{constructor(){super({id:"editor.action.diffReview.next",label:h.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:q.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(ze,st){let _t=nt(ze);_t&&_t.diffReviewNext()}}class L extends T.b{constructor(){super({id:"editor.action.diffReview.prev",label:h.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:q.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(ze,st){let _t=nt(ze);_t&&_t.diffReviewPrev()}}function nt(ut){let ze=ut.get(S.a),st=ze.listDiffEditors(),_t=ze.getActiveCodeEditor();if(!_t)return null;for(let oi=0,li=st.length;oi<li;oi++){let gi=st[oi];if(gi.getModifiedEditor().getId()===_t.getId()||gi.getOriginalEditor().getId()===_t.getId())return gi}return null}Object(T.k)(Ae),Object(T.k)(L);var ct=o(3),Ye=o(132),ht=o(143),fe=o(30),$=o(96),G=o(168),z=o(155),J=o(18),Se=o(149),A=o(49),ee=o(84),de=function(ut,ze,st,_t){return new(st||(st=Promise))(function(oi,li){function gi($i){try{Ri(_t.next($i))}catch(Hi){li(Hi)}}function ki($i){try{Ri(_t.throw($i))}catch(Hi){li(Hi)}}function Ri($i){var Hi;$i.done?oi($i.value):(Hi=$i.value,Hi instanceof st?Hi:new st(function(yi){yi(Hi)})).then(gi,ki)}Ri((_t=_t.apply(ut,ze||[])).next())})};class Oe extends W.a{constructor(ze,st,_t,oi,li,gi){super(),this._viewZoneId=ze,this._marginDomNode=st,this.editor=_t,this.diff=oi,this._contextMenuService=li,this._clipboardService=gi,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=ke.a.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";let ki=_t.getOption(51),Ri=_t.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=ki+"px",this._diffActions.style.lineHeight=ki+"px",this._marginDomNode.appendChild(this._diffActions);let $i=[];$i.push(new l.a("diff.clipboard.copyDeletedContent",oi.originalEndLineNumber>oi.modifiedStartLineNumber?h.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):h.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>de(this,void 0,void 0,function*(){yield this._clipboardService.writeText(oi.originalContent.join(Ri)+Ri)})));let Hi=0,yi;oi.originalEndLineNumber>oi.modifiedStartLineNumber&&(yi=new l.a("diff.clipboard.copyDeletedLineContent",h.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",oi.originalStartLineNumber),void 0,!0,()=>de(this,void 0,void 0,function*(){yield this._clipboardService.writeText(oi.originalContent[Hi])})),$i.push(yi)),_t.getOption(72)||$i.push(new l.a("diff.inline.revertChange",h.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>de(this,void 0,void 0,function*(){if(oi.modifiedEndLineNumber===0){let Et=_t.getModel().getLineMaxColumn(oi.modifiedStartLineNumber);_t.executeEdits("diffEditor",[{range:new ct.a(oi.modifiedStartLineNumber,Et,oi.modifiedStartLineNumber,Et),text:Ri+oi.originalContent.join(Ri)}])}else{let Et=_t.getModel().getLineMaxColumn(oi.modifiedEndLineNumber);_t.executeEdits("diffEditor",[{range:new ct.a(oi.modifiedStartLineNumber,1,oi.modifiedEndLineNumber,Et),text:oi.originalContent.join(Ri)}])}})));let kt=(Et,si)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:Et,y:si}),getActions:()=>(yi&&(yi.label=h.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",oi.originalStartLineNumber+Hi)),$i),autoSelectFirstItem:!0})};this._register(f.n(this._diffActions,"mousedown",Et=>{let{top:si,height:Si}=f.C(this._diffActions),Pi=Math.floor(ki/3);Et.preventDefault(),kt(Et.posx,si+Si+Pi)})),this._register(_t.onMouseMove(Et=>{Et.target.type===8||Et.target.type===5?Et.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,Hi=this._updateLightBulbPosition(this._marginDomNode,Et.event.browserEvent.y,ki)):this.visibility=!1:this.visibility=!1})),this._register(_t.onMouseDown(Et=>{Et.event.rightButton&&(Et.target.type===8||Et.target.type===5)&&Et.target.detail.viewZoneId===this._viewZoneId&&(Et.event.preventDefault(),Hi=this._updateLightBulbPosition(this._marginDomNode,Et.event.browserEvent.y,ki),kt(Et.event.posx,Et.event.posy+ki))}))}get visibility(){return this._visibility}set visibility(ze){this._visibility!==ze&&(this._visibility=ze,this._diffActions.style.visibility=ze?"visible":"hidden")}_updateLightBulbPosition(ze,st,_t){let{top:oi}=f.C(ze),li=st-oi,gi=Math.floor(li/_t),ki=gi*_t;return this._diffActions.style.top=ki+"px",gi}}var $e=o(121),pt=o(13),it=o(83),At=o(190),Nt=o(145),_i=function(ut,ze,st,_t){var oi,li=arguments.length,gi=li<3?ze:_t===null?_t=Object.getOwnPropertyDescriptor(ze,st):_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")gi=Reflect.decorate(ut,ze,st,_t);else for(var ki=ut.length-1;ki>=0;ki--)(oi=ut[ki])&&(gi=(li<3?oi(gi):li>3?oi(ze,st,gi):oi(ze,st))||gi);return li>3&&gi&&Object.defineProperty(ze,st,gi),gi},wt=function(ut,ze){return function(st,_t){ze(st,_t,ut)}};class Ni{constructor(ze,st){this._contextMenuService=ze,this._clipboardService=st,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(ze){return ze.filter(st=>!this._zonesMap[String(st.id)])}clean(ze){this._zones.length>0&&ze.changeViewZones(st=>{for(let _t=0,oi=this._zones.length;_t<oi;_t++)st.removeZone(this._zones[_t])}),this._zones=[],this._zonesMap={},this._decorations=ze.deltaDecorations(this._decorations,[])}apply(ze,st,_t,oi){let li=oi?C.c.capture(ze):null;ze.changeViewZones(gi=>{for(let ki=0,Ri=this._zones.length;ki<Ri;ki++)gi.removeZone(this._zones[ki]);for(let ki=0,Ri=this.inlineDiffMargins.length;ki<Ri;ki++)this.inlineDiffMargins[ki].dispose();this._zones=[],this._zonesMap={},this.inlineDiffMargins=[];for(let ki=0,Ri=_t.zones.length;ki<Ri;ki++){let $i=_t.zones[ki];$i.suppressMouseDown=!0;let Hi=gi.addZone($i);this._zones.push(Hi),this._zonesMap[String(Hi)]=!0,_t.zones[ki].diff&&$i.marginDomNode&&($i.suppressMouseDown=!1,this.inlineDiffMargins.push(new Oe(Hi,$i.marginDomNode,ze,_t.zones[ki].diff,this._contextMenuService,this._clipboardService)))}}),li&&li.restore(ze),this._decorations=ze.deltaDecorations(this._decorations,_t.decorations),st&&st.setZones(_t.overviewZones)}}let pi=0,et=Object(ke.e)("diff-insert",ke.a.add),Wt=Object(ke.e)("diff-remove",ke.a.remove),Li=class lr extends W.a{constructor(ze,st,_t,oi,li,gi,ki,Ri,$i,Hi,yi){super(),this._editorProgressService=yi,this._onDidDispose=this._register(new ge.a),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new ge.a),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new ge.a),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=oi,this._codeEditorService=ki,this._contextKeyService=this._register(li.createScoped(ze)),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=Ri,this._notificationService=$i,this.id=++pi,this._state=0,this._updatingDiffProgress=null,this._domElement=ze,st=st||{},this._renderSideBySide=!0,st.renderSideBySide!==void 0&&(this._renderSideBySide=st.renderSideBySide),this._maxComputationTime=5e3,st.maxComputationTime!==void 0&&(this._maxComputationTime=st.maxComputationTime),this._ignoreTrimWhitespace=!0,st.ignoreTrimWhitespace!==void 0&&(this._ignoreTrimWhitespace=st.ignoreTrimWhitespace),this._renderIndicators=!0,st.renderIndicators!==void 0&&(this._renderIndicators=st.renderIndicators),this._originalIsEditable=!1,st.originalEditable!==void 0&&(this._originalIsEditable=Boolean(st.originalEditable)),this._originalCodeLens=!1,st.originalCodeLens!==void 0&&(this._originalCodeLens=Boolean(st.originalCodeLens)),this._modifiedCodeLens=!1,st.modifiedCodeLens!==void 0&&(this._modifiedCodeLens=Boolean(st.modifiedCodeLens)),this._updateDecorationsRunner=this._register(new E.d(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=lr._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(D.b)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(f.n(this._overviewDomElement,"mousedown",un=>{this.modifiedEditor.delegateVerticalScrollbarMouseDown(un)})),this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new Ni(Hi,_t),this._modifiedEditorState=new Ni(Hi,_t),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new At.a(this._containerDomElement,void 0,()=>this._onDidContainerSizeChanged())),st.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null;let kt=this._contextKeyService.createScoped(),Et=new Se.a;Et.set(q.b,kt);let si=gi.createChild(Et),Si=this._contextKeyService.createScoped(),Pi=new Se.a;Pi.set(q.b,Si);let Wi=gi.createChild(Pi);this.originalEditor=this._createLeftHandSideEditor(st,si,kt),this.modifiedEditor=this._createRightHandSideEditor(st,Wi,Si),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new Ce(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,st.enableSplitViewResizing!==void 0&&(this._enableSplitViewResizing=st.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new Di(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vi(this._createDataSource(),this._enableSplitViewResizing)),this._register(Ri.onDidColorThemeChange(un=>{this._strategy&&this._strategy.applyColors(un)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=lr._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));let xn=T.d.getDiffEditorContributions();for(let un of xn)try{this._register(gi.createInstance(un.ctor,this))}catch(bn){Object(pt.e)(bn)}this._codeEditorService.addDiffEditor(this)}_setState(ze){this._state!==ze&&(this._state=ze,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(ze,st){let _t="monaco-diff-editor monaco-editor-background ";return st&&(_t+="side-by-side "),_t+=Object(se.f)(ze.type),_t}_recreateOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()}_createLeftHandSideEditor(ze,st,_t){let oi=this._createInnerEditor(st,this._originalDomNode,this._adjustOptionsForLeftHandSide(ze,this._originalIsEditable,this._originalCodeLens));this._register(oi.onDidScrollChange(gi=>{this._isHandlingScrollEvent||(gi.scrollTopChanged||gi.scrollLeftChanged||gi.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.modifiedEditor.setScrollPosition({scrollLeft:gi.scrollLeft,scrollTop:gi.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(oi.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(oi.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));let li=_t.createKey("isInDiffLeftEditor",void 0);return this._register(oi.onDidFocusEditorWidget(()=>li.set(!0))),this._register(oi.onDidBlurEditorWidget(()=>li.set(!1))),this._register(oi.onDidContentSizeChange(gi=>{let ki=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+lr.ONE_OVERVIEW_WIDTH,Ri=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ri,contentWidth:ki,contentHeightChanged:gi.contentHeightChanged,contentWidthChanged:gi.contentWidthChanged})})),oi}_createRightHandSideEditor(ze,st,_t){let oi=this._createInnerEditor(st,this._modifiedDomNode,this._adjustOptionsForRightHandSide(ze,this._modifiedCodeLens));this._register(oi.onDidScrollChange(gi=>{this._isHandlingScrollEvent||(gi.scrollTopChanged||gi.scrollLeftChanged||gi.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.originalEditor.setScrollPosition({scrollLeft:gi.scrollLeft,scrollTop:gi.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(oi.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(oi.onDidChangeConfiguration(gi=>{gi.hasChanged(36)&&oi.getModel()&&this._onViewZonesChanged()})),this._register(oi.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(oi.onDidChangeModelOptions(gi=>{gi.tabSize&&this._updateDecorationsRunner.schedule()}));let li=_t.createKey("isInDiffRightEditor",void 0);return this._register(oi.onDidFocusEditorWidget(()=>li.set(!0))),this._register(oi.onDidBlurEditorWidget(()=>li.set(!1))),this._register(oi.onDidContentSizeChange(gi=>{let ki=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+lr.ONE_OVERVIEW_WIDTH,Ri=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ri,contentWidth:ki,contentHeightChanged:gi.contentHeightChanged,contentWidthChanged:gi.contentWidthChanged})})),oi}_createInnerEditor(ze,st,_t){return ze.createInstance(P.a,st,_t,{})}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this.id}getEditorType(){return ht.a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this.originalEditor}getModifiedEditor(){return this.modifiedEditor}updateOptions(ze){let st=!1;ze.renderSideBySide!==void 0&&this._renderSideBySide!==ze.renderSideBySide&&(this._renderSideBySide=ze.renderSideBySide,st=!0),ze.maxComputationTime!==void 0&&(this._maxComputationTime=ze.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let _t=!1;ze.ignoreTrimWhitespace!==void 0&&this._ignoreTrimWhitespace!==ze.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=ze.ignoreTrimWhitespace,_t=!0),ze.renderIndicators!==void 0&&this._renderIndicators!==ze.renderIndicators&&(this._renderIndicators=ze.renderIndicators,_t=!0),_t&&this._beginUpdateDecorations(),ze.originalEditable!==void 0&&(this._originalIsEditable=Boolean(ze.originalEditable)),ze.originalCodeLens!==void 0&&(this._originalCodeLens=Boolean(ze.originalCodeLens)),ze.modifiedCodeLens!==void 0&&(this._modifiedCodeLens=Boolean(ze.modifiedCodeLens)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(ze,this._modifiedCodeLens)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(ze,this._originalIsEditable,this._originalCodeLens)),ze.enableSplitViewResizing!==void 0&&(this._enableSplitViewResizing=ze.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),st&&(this._renderSideBySide?this._setStrategy(new Di(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vi(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=lr._getClassName(this._themeService.getColorTheme(),this._renderSideBySide))}getModel(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}}setModel(ze){if(ze&&(!ze.original||!ze.modified))throw new Error(ze.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(ze?ze.original:null),this.modifiedEditor.setModel(ze?ze.modified:null),this._updateDecorationsRunner.cancel(),ze&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),ze&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(ze){return this.modifiedEditor.getVisibleColumnFromPosition(ze)}getPosition(){return this.modifiedEditor.getPosition()}setPosition(ze){this.modifiedEditor.setPosition(ze)}revealLine(ze,st=0){this.modifiedEditor.revealLine(ze,st)}revealLineInCenter(ze,st=0){this.modifiedEditor.revealLineInCenter(ze,st)}revealLineInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealLineInCenterIfOutsideViewport(ze,st)}revealLineNearTop(ze,st=0){this.modifiedEditor.revealLineNearTop(ze,st)}revealPosition(ze,st=0){this.modifiedEditor.revealPosition(ze,st)}revealPositionInCenter(ze,st=0){this.modifiedEditor.revealPositionInCenter(ze,st)}revealPositionInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealPositionInCenterIfOutsideViewport(ze,st)}revealPositionNearTop(ze,st=0){this.modifiedEditor.revealPositionNearTop(ze,st)}getSelection(){return this.modifiedEditor.getSelection()}getSelections(){return this.modifiedEditor.getSelections()}setSelection(ze){this.modifiedEditor.setSelection(ze)}setSelections(ze){this.modifiedEditor.setSelections(ze)}revealLines(ze,st,_t=0){this.modifiedEditor.revealLines(ze,st,_t)}revealLinesInCenter(ze,st,_t=0){this.modifiedEditor.revealLinesInCenter(ze,st,_t)}revealLinesInCenterIfOutsideViewport(ze,st,_t=0){this.modifiedEditor.revealLinesInCenterIfOutsideViewport(ze,st,_t)}revealLinesNearTop(ze,st,_t=0){this.modifiedEditor.revealLinesNearTop(ze,st,_t)}revealRange(ze,st=0,_t=!1,oi=!0){this.modifiedEditor.revealRange(ze,st,_t,oi)}revealRangeInCenter(ze,st=0){this.modifiedEditor.revealRangeInCenter(ze,st)}revealRangeInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealRangeInCenterIfOutsideViewport(ze,st)}revealRangeNearTop(ze,st=0){this.modifiedEditor.revealRangeNearTop(ze,st)}revealRangeNearTopIfOutsideViewport(ze,st=0){this.modifiedEditor.revealRangeNearTopIfOutsideViewport(ze,st)}revealRangeAtTop(ze,st=0){this.modifiedEditor.revealRangeAtTop(ze,st)}getSupportedActions(){return this.modifiedEditor.getSupportedActions()}saveViewState(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}}restoreViewState(ze){if(ze.original&&ze.modified){let st=ze;this.originalEditor.restoreViewState(st.original),this.modifiedEditor.restoreViewState(st.modified)}}layout(ze){this._elementSizeObserver.observe(ze)}focus(){this.modifiedEditor.focus()}hasTextFocus(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()}trigger(ze,st,_t){this.modifiedEditor.trigger(ze,st,_t)}changeDecorations(ze){return this.modifiedEditor.changeDecorations(ze)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;let ze=this._elementSizeObserver.getHeight(),st=this._getReviewHeight(),_t=lr.ENTIRE_DIFF_OVERVIEW_WIDTH-2*lr.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:lr.ONE_OVERVIEW_WIDTH,right:_t+lr.ONE_OVERVIEW_WIDTH,height:ze-st}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:lr.ONE_OVERVIEW_WIDTH,height:ze-st}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),lr.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(ze,st){return!ze&&!st||!(!ze||!st)&&ze.toString()===st.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;let ze=this.originalEditor.getModel(),st=this.modifiedEditor.getModel();if(!ze||!st)return;this._diffComputationToken++;let _t=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(ze.uri,st.uri)?this._editorWorkerService.computeDiff(ze.uri,st.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(oi=>{_t===this._diffComputationToken&&ze===this.originalEditor.getModel()&&st===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=oi,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},oi=>{_t===this._diffComputationToken&&ze===this.originalEditor.getModel()&&st===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):lr._equals(ze.uri,this._lastOriginalWarning)&&lr._equals(st.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=ze.uri,this._lastModifiedWarning=st.uri,this._notificationService.warn(h.a("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)}_updateDecorations(){if(!(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler))return;let ze=this._diffComputationResult?this._diffComputationResult.changes:[],st=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),_t=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),oi=this._strategy.getEditorsDiffDecorations(ze,this._ignoreTrimWhitespace,this._renderIndicators,st,_t,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,oi.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,oi.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(ze){let st=Q.c(ze||{});return st.inDiffEditor=!0,st.wordWrap="off",st.wordWrapMinified=!1,st.automaticLayout=!1,st.scrollbar=st.scrollbar||{},st.scrollbar.vertical="visible",st.folding=!1,st.codeLens=!1,st.fixedOverflowWidgets=!0,st.overflowWidgetsDomNode=ze.overflowWidgetsDomNode,st.minimap||(st.minimap={}),st.minimap.enabled=!1,st}_adjustOptionsForLeftHandSide(ze,st,_t){let oi=this._adjustOptionsForSubEditor(ze);return _t&&(oi.codeLens=!0),oi.readOnly=!st,oi.extraEditorClassName="original-in-monaco-diff-editor",oi}_adjustOptionsForRightHandSide(ze,st){let _t=this._adjustOptionsForSubEditor(ze);return st&&(_t.codeLens=!0),_t.revealHorizontalRightPadding=N.g.revealHorizontalRightPadding.defaultValue+lr.ENTIRE_DIFF_OVERVIEW_WIDTH,_t.scrollbar.verticalHasArrows=!1,_t.extraEditorClassName="modified-in-monaco-diff-editor",_t}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){let ze=this._elementSizeObserver.getWidth(),st=this._elementSizeObserver.getHeight(),_t=this._getReviewHeight(),oi=this._strategy.layout();this._originalDomNode.style.width=oi+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=ze-oi+"px",this._modifiedDomNode.style.left=oi+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=st-_t+"px",this._overviewDomElement.style.width=lr.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=ze-lr.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(lr.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:oi,height:st-_t}),this.modifiedEditor.layout({width:ze-oi-lr.ENTIRE_DIFF_OVERVIEW_WIDTH,height:st-_t}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(st-_t,ze,_t),this._layoutOverviewViewport()}_layoutOverviewViewport(){let ze=this._computeOverviewViewport();ze?(this._overviewViewportDomElement.setTop(ze.top),this._overviewViewportDomElement.setHeight(ze.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){let ze=this.modifiedEditor.getLayoutInfo();if(!ze)return null;let st=this.modifiedEditor.getScrollTop(),_t=this.modifiedEditor.getScrollHeight(),oi=Math.max(0,ze.height),li=Math.max(0,oi-0),gi=_t>0?li/_t:0;return{height:Math.max(0,Math.floor(ze.height*gi)),top:Math.floor(st*gi)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this.originalEditor,getModifiedEditor:()=>this.modifiedEditor}}_setStrategy(ze){this._strategy&&this._strategy.dispose(),this._strategy=ze,ze.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(ze,st){let _t=this._diffComputationResult?this._diffComputationResult.changes:[];if(_t.length===0||ze<st(_t[0]))return null;let oi=0,li=_t.length-1;for(;oi<li;){let gi=Math.floor((oi+li)/2),ki=st(_t[gi]),Ri=gi+1<=li?st(_t[gi+1]):1073741824;ze<ki?li=gi-1:ze>=Ri?oi=gi+1:(oi=gi,li=gi)}return _t[oi]}_getEquivalentLineForOriginalLineNumber(ze){let st=this._getLineChangeAtOrBeforeLineNumber(ze,Ri=>Ri.originalStartLineNumber);if(!st)return ze;let _t=st.originalStartLineNumber+(st.originalEndLineNumber>0?-1:0),oi=st.modifiedStartLineNumber+(st.modifiedEndLineNumber>0?-1:0),li=st.originalEndLineNumber>0?st.originalEndLineNumber-st.originalStartLineNumber+1:0,gi=st.modifiedEndLineNumber>0?st.modifiedEndLineNumber-st.modifiedStartLineNumber+1:0,ki=ze-_t;return ki<=li?oi+Math.min(ki,gi):oi+gi-li+ki}_getEquivalentLineForModifiedLineNumber(ze){let st=this._getLineChangeAtOrBeforeLineNumber(ze,Ri=>Ri.modifiedStartLineNumber);if(!st)return ze;let _t=st.originalStartLineNumber+(st.originalEndLineNumber>0?-1:0),oi=st.modifiedStartLineNumber+(st.modifiedEndLineNumber>0?-1:0),li=st.originalEndLineNumber>0?st.originalEndLineNumber-st.originalStartLineNumber+1:0,gi=st.modifiedEndLineNumber>0?st.modifiedEndLineNumber-st.modifiedStartLineNumber+1:0,ki=ze-oi;return ki<=gi?_t+Math.min(ki,li):_t+li-gi+ki}getDiffLineInformationForOriginal(ze){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(ze)}:null}getDiffLineInformationForModified(ze){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(ze)}:null}};Li.ONE_OVERVIEW_WIDTH=15,Li.ENTIRE_DIFF_OVERVIEW_WIDTH=30,Li.UPDATE_DIFF_DECORATIONS_DELAY=200,Li=_i([wt(2,$e.a),wt(3,$.a),wt(4,q.b),wt(5,J.a),wt(6,S.a),wt(7,se.c),wt(8,A.a),wt(9,ee.a),wt(10,it.a)],Li);class Ii extends W.a{constructor(ze){super(),this._dataSource=ze,this._insertColor=null,this._removeColor=null}applyColors(ze){let st=(ze.getColor(B.n)||B.j).transparent(2),_t=(ze.getColor(B.p)||B.k).transparent(2),oi=!st.equals(this._insertColor)||!_t.equals(this._removeColor);return this._insertColor=st,this._removeColor=_t,oi}getEditorsDiffDecorations(ze,st,_t,oi,li,gi,ki){li=li.sort((yi,kt)=>yi.afterLineNumber-kt.afterLineNumber),oi=oi.sort((yi,kt)=>yi.afterLineNumber-kt.afterLineNumber);let Ri=this._getViewZones(ze,oi,li,gi,ki,_t),$i=this._getOriginalEditorDecorations(ze,st,_t,gi,ki),Hi=this._getModifiedEditorDecorations(ze,st,_t,gi,ki);return{original:{decorations:$i.decorations,overviewZones:$i.overviewZones,zones:Ri.original},modified:{decorations:Hi.decorations,overviewZones:Hi.overviewZones,zones:Ri.modified}}}}class Ai{constructor(ze){this._source=ze,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class Zi{constructor(ze,st,_t,oi,li){this.lineChanges=ze,this.originalForeignVZ=st,this.originalLineHeight=_t,this.modifiedForeignVZ=oi,this.modifiedLineHeight=li}getViewZones(){let ze=[],st=[],_t=0,oi=0,li=0,gi=0,ki=0,Ri=0,$i=(Et,si)=>Et.afterLineNumber-si.afterLineNumber,Hi=(Et,si)=>{if(si.domNode===null&&Et.length>0){let Si=Et[Et.length-1];if(Si.afterLineNumber===si.afterLineNumber&&Si.domNode===null)return void(Si.heightInLines+=si.heightInLines)}Et.push(si)},yi=new Ai(this.modifiedForeignVZ),kt=new Ai(this.originalForeignVZ);for(let Et=0,si=this.lineChanges.length;Et<=si;Et++){let Si=Et<si?this.lineChanges[Et]:null;Si!==null?(li=Si.originalStartLineNumber+(Si.originalEndLineNumber>0?-1:0),gi=Si.modifiedStartLineNumber+(Si.modifiedEndLineNumber>0?-1:0),oi=Si.originalEndLineNumber>0?Si.originalEndLineNumber-Si.originalStartLineNumber+1:0,_t=Si.modifiedEndLineNumber>0?Si.modifiedEndLineNumber-Si.modifiedStartLineNumber+1:0,ki=Math.max(Si.originalStartLineNumber,Si.originalEndLineNumber),Ri=Math.max(Si.modifiedStartLineNumber,Si.modifiedEndLineNumber)):(li+=1e7+oi,gi+=1e7+_t,ki=li,Ri=gi);let Pi=[],Wi=[];for(;yi.current&&yi.current.afterLineNumber<=Ri;){let bn;bn=yi.current.afterLineNumber<=gi?li-gi+yi.current.afterLineNumber:ki;let Fn=null;Si&&Si.modifiedStartLineNumber<=yi.current.afterLineNumber&&yi.current.afterLineNumber<=Si.modifiedEndLineNumber&&(Fn=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),Pi.push({afterLineNumber:bn,heightInLines:yi.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:Fn}),yi.advance()}for(;kt.current&&kt.current.afterLineNumber<=ki;){let bn;bn=kt.current.afterLineNumber<=li?gi-li+kt.current.afterLineNumber:Ri,Wi.push({afterLineNumber:bn,heightInLines:kt.current.height/this.originalLineHeight,domNode:null}),kt.advance()}if(Si!==null&&vt(Si)){let bn=this._produceOriginalFromDiff(Si,oi,_t);bn&&Pi.push(bn)}if(Si!==null&&Ue(Si)){let bn=this._produceModifiedFromDiff(Si,oi,_t);bn&&Wi.push(bn)}let xn=0,un=0;for(Pi=Pi.sort($i),Wi=Wi.sort($i);xn<Pi.length&&un<Wi.length;){let bn=Pi[xn],Fn=Wi[un],Mn=bn.afterLineNumber-li,Nn=Fn.afterLineNumber-gi;Mn<Nn?(Hi(ze,bn),xn++):Nn<Mn?(Hi(st,Fn),un++):bn.shouldNotShrink?(Hi(ze,bn),xn++):Fn.shouldNotShrink?(Hi(st,Fn),un++):bn.heightInLines>=Fn.heightInLines?(bn.heightInLines-=Fn.heightInLines,un++):(Fn.heightInLines-=bn.heightInLines,xn++)}for(;xn<Pi.length;)Hi(ze,Pi[xn]),xn++;for(;un<Wi.length;)Hi(st,Wi[un]),un++}return{original:Zi._ensureDomNodes(ze),modified:Zi._ensureDomNodes(st)}}static _ensureDomNodes(ze){return ze.map(st=>(st.domNode||(st.domNode=function(){let _t=document.createElement("div");return _t.className="diagonal-fill",_t}()),st))}}function Bi(ut,ze,st,_t,oi){return{range:new ct.a(ut,ze,st,_t),options:oi}}let Lt={charDelete:fe.a.register({className:"char-delete"}),charDeleteWholeLine:fe.a.register({className:"char-delete",isWholeLine:!0}),charInsert:fe.a.register({className:"char-insert"}),charInsertWholeLine:fe.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:fe.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:fe.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign "+et.classNames,marginClassName:"line-insert",isWholeLine:!0}),lineDelete:fe.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:fe.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign "+Wt.classNames,marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:fe.a.register({marginClassName:"line-delete"})};class Di extends Ii{constructor(ze,st){super(ze),this._disableSash=st===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new H.a(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this.onSashDragStart()),this._sash.onDidChange(_t=>this.onSashDrag(_t)),this._sash.onDidEnd(()=>this.onSashDragEnd()),this._sash.onDidReset(()=>this.onSashReset())}setEnableSplitViewResizing(ze){let st=ze===!1;this._disableSash!==st&&(this._disableSash=st,this._sash.state=this._disableSash?0:3)}layout(ze=this._sashRatio){let st=this._dataSource.getWidth()-Li.ENTIRE_DIFF_OVERVIEW_WIDTH,_t=Math.floor((ze||.5)*st),oi=Math.floor(.5*st);return _t=this._disableSash?oi:_t||oi,st>2*Di.MINIMUM_EDITOR_WIDTH?(_t<Di.MINIMUM_EDITOR_WIDTH&&(_t=Di.MINIMUM_EDITOR_WIDTH),_t>st-Di.MINIMUM_EDITOR_WIDTH&&(_t=st-Di.MINIMUM_EDITOR_WIDTH)):_t=oi,this._sashPosition!==_t&&(this._sashPosition=_t,this._sash.layout()),this._sashPosition}onSashDragStart(){this._startSashPosition=this._sashPosition}onSashDrag(ze){let st=this._dataSource.getWidth()-Li.ENTIRE_DIFF_OVERVIEW_WIDTH,_t=this.layout((this._startSashPosition+(ze.currentX-ze.startX))/st);this._sashRatio=_t/st,this._dataSource.relayoutEditors()}onSashDragEnd(){this._sash.layout()}onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(ze){return 0}getVerticalSashLeft(ze){return this._sashPosition}getVerticalSashHeight(ze){return this._dataSource.getHeight()}_getViewZones(ze,st,_t,oi,li){return new gt(ze,st,oi.getOption(51),_t,li.getOption(51)).getViewZones()}_getOriginalEditorDecorations(ze,st,_t,oi,li){let gi=String(this._removeColor),ki={decorations:[],overviewZones:[]},Ri=oi.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(Ue(yi)&&(ki.decorations.push({range:new ct.a(yi.originalStartLineNumber,1,yi.originalEndLineNumber,1073741824),options:_t?Lt.lineDeleteWithSign:Lt.lineDelete}),vt(yi)&&yi.charChanges||ki.decorations.push(Bi(yi.originalStartLineNumber,1,yi.originalEndLineNumber,1073741824,Lt.charDeleteWholeLine)),ki.overviewZones.push(new G.a(yi.originalStartLineNumber,yi.originalEndLineNumber,gi)),yi.charChanges))for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(Ue(si))if(st)for(let Si=si.originalStartLineNumber;Si<=si.originalEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.originalStartLineNumber?si.originalStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.originalEndLineNumber?si.originalEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charDelete))}else ki.decorations.push(Bi(si.originalStartLineNumber,si.originalStartColumn,si.originalEndLineNumber,si.originalEndColumn,Lt.charDelete))}}return ki}_getModifiedEditorDecorations(ze,st,_t,oi,li){let gi=String(this._insertColor),ki={decorations:[],overviewZones:[]},Ri=li.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(vt(yi)&&(ki.decorations.push({range:new ct.a(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824),options:_t?Lt.lineInsertWithSign:Lt.lineInsert}),Ue(yi)&&yi.charChanges||ki.decorations.push(Bi(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824,Lt.charInsertWholeLine)),ki.overviewZones.push(new G.a(yi.modifiedStartLineNumber,yi.modifiedEndLineNumber,gi)),yi.charChanges))for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(vt(si))if(st)for(let Si=si.modifiedStartLineNumber;Si<=si.modifiedEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.modifiedStartLineNumber?si.modifiedStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.modifiedEndLineNumber?si.modifiedEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charInsert))}else ki.decorations.push(Bi(si.modifiedStartLineNumber,si.modifiedStartColumn,si.modifiedEndLineNumber,si.modifiedEndColumn,Lt.charInsert))}}return ki}}Di.MINIMUM_EDITOR_WIDTH=100;class gt extends Zi{constructor(ze,st,_t,oi,li){super(ze,st,_t,oi,li)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(ze,st,_t){return _t>st?{afterLineNumber:Math.max(ze.originalStartLineNumber,ze.originalEndLineNumber),heightInLines:_t-st,domNode:null}:null}_produceModifiedFromDiff(ze,st,_t){return st>_t?{afterLineNumber:Math.max(ze.modifiedStartLineNumber,ze.modifiedEndLineNumber),heightInLines:st-_t,domNode:null}:null}}class vi extends Ii{constructor(ze,st){super(ze),this.decorationsLeft=ze.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(ze.getOriginalEditor().onDidLayoutChange(_t=>{this.decorationsLeft!==_t.decorationsLeft&&(this.decorationsLeft=_t.decorationsLeft,ze.relayoutEditors())}))}setEnableSplitViewResizing(ze){}_getViewZones(ze,st,_t,oi,li,gi){return new Rt(ze,st,_t,oi,li,gi).getViewZones()}_getOriginalEditorDecorations(ze,st,_t,oi,li){let gi=String(this._removeColor),ki={decorations:[],overviewZones:[]};for(let Ri=0,$i=ze.length;Ri<$i;Ri++){let Hi=ze[Ri];Ue(Hi)&&(ki.decorations.push({range:new ct.a(Hi.originalStartLineNumber,1,Hi.originalEndLineNumber,1073741824),options:Lt.lineDeleteMargin}),ki.overviewZones.push(new G.a(Hi.originalStartLineNumber,Hi.originalEndLineNumber,gi)))}return ki}_getModifiedEditorDecorations(ze,st,_t,oi,li){let gi=String(this._insertColor),ki={decorations:[],overviewZones:[]},Ri=li.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(vt(yi))if(ki.decorations.push({range:new ct.a(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824),options:_t?Lt.lineInsertWithSign:Lt.lineInsert}),ki.overviewZones.push(new G.a(yi.modifiedStartLineNumber,yi.modifiedEndLineNumber,gi)),yi.charChanges)for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(vt(si))if(st)for(let Si=si.modifiedStartLineNumber;Si<=si.modifiedEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.modifiedStartLineNumber?si.modifiedStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.modifiedEndLineNumber?si.modifiedEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charInsert))}else ki.decorations.push(Bi(si.modifiedStartLineNumber,si.modifiedStartColumn,si.modifiedEndLineNumber,si.modifiedEndColumn,Lt.charInsert))}else ki.decorations.push(Bi(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824,Lt.charInsertWholeLine))}return ki}layout(){return Math.max(5,this.decorationsLeft)}}class Rt extends Zi{constructor(ze,st,_t,oi,li,gi){super(ze,st,oi.getOption(51),_t,li.getOption(51)),this.originalModel=oi.getModel(),this.modifiedEditorOptions=li.getOptions(),this.modifiedEditorTabSize=li.getModel().getOptions().tabSize,this.renderIndicators=gi}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){let ze=document.createElement("div");return ze.className="inline-added-margin-view-zone",ze}_produceOriginalFromDiff(ze,st,_t){let oi=document.createElement("div");return oi.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(ze.originalStartLineNumber,ze.originalEndLineNumber),heightInLines:_t,domNode:document.createElement("div"),marginDomNode:oi}}_produceModifiedFromDiff(ze,st,_t){let oi=[];if(ze.charChanges)for(let Pi=0,Wi=ze.charChanges.length;Pi<Wi;Pi++){let xn=ze.charChanges[Pi];Ue(xn)&&oi.push(new U.a(new ct.a(xn.originalStartLineNumber,xn.originalStartColumn,xn.originalEndLineNumber,xn.originalEndColumn),"char-delete",0))}let li=Object(Ye.a)(1e4),gi=[],ki=this.modifiedEditorOptions.get(117),Ri=this.modifiedEditorOptions.get(36),$i=ki.decorationsWidth,Hi=this.modifiedEditorOptions.get(51),yi=Ri.typicalHalfwidthCharacterWidth,kt=0,Et=[];for(let Pi=ze.originalStartLineNumber;Pi<=ze.originalEndLineNumber;Pi++)if(kt=Math.max(kt,this._renderOriginalLine(Pi-ze.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,Pi,oi,li)),Et.push(this.originalModel.getLineContent(Pi)),this.renderIndicators){let Wi=Pi-ze.originalStartLineNumber;gi=gi.concat([`<div class="delete-sign ${Wt.classNames}" style="position:absolute;top:${Wi*Hi}px;width:${$i}px;height:${Hi}px;right:0;"></div>`])}kt+=this.modifiedEditorOptions.get(85);let si=document.createElement("div");si.className="view-lines line-delete "+Nt.a,si.innerHTML=li.build(),y.a.applyFontInfoSlow(si,Ri);let Si=document.createElement("div");return Si.className="inline-deleted-margin-view-zone",Si.innerHTML=gi.join(""),y.a.applyFontInfoSlow(Si,Ri),{shouldNotShrink:!0,afterLineNumber:ze.modifiedEndLineNumber===0?ze.modifiedStartLineNumber:ze.modifiedStartLineNumber-1,heightInLines:st,minWidthInPx:kt*yi,domNode:si,marginDomNode:Si,diff:{originalStartLineNumber:ze.originalStartLineNumber,originalEndLineNumber:ze.originalEndLineNumber,modifiedStartLineNumber:ze.modifiedStartLineNumber,modifiedEndLineNumber:ze.modifiedEndLineNumber,originalContent:Et}}}_renderOriginalLine(ze,st,_t,oi,li,gi,ki){let Ri=st.getLineTokens(li),$i=Ri.getLineContent(),Hi=_t.get(36),yi=z.a.filter(gi,li,1,$i.length+1);ki.appendASCIIString('<div class="view-line'),gi.length===0&&ki.appendASCIIString(" char-delete"),ki.appendASCIIString('" style="top:'),ki.appendASCIIString(String(ze*_t.get(51))),ki.appendASCIIString('px;width:1000000px;">');let kt=U.d.isBasicASCII($i,st.mightContainNonBasicASCII()),Et=U.d.containsRTL($i,kt,st.mightContainRTL()),si=Object(ie.d)(new ie.c(Hi.isMonospace&&!_t.get(24),Hi.canUseHalfwidthRightwardsArrow,$i,!1,kt,Et,0,Ri,yi,oi,0,Hi.spaceWidth,Hi.middotWidth,Hi.wsmiddotWidth,_t.get(95),_t.get(80),_t.get(74),_t.get(37)!==N.e.OFF,null),ki);ki.appendASCIIString("</div>");let Si=si.characterMapping.getAbsoluteOffsets();return Si.length>0?Si[Si.length-1]:0}}function vt(ut){return ut.modifiedEndLineNumber>0}function Ue(ut){return ut.originalEndLineNumber>0}Object(se.g)((ut,ze)=>{let st=ut.getColor(B.n);st&&(ze.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${st}; }`),ze.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${st}; }`),ze.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${st}; }`));let _t=ut.getColor(B.p);_t&&(ze.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${_t}; }`),ze.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${_t}; }`),ze.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${_t}; }`));let oi=ut.getColor(B.o);oi&&ze.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${ut.type==="hc"?"dashed":"solid"} ${oi}; }`);let li=ut.getColor(B.q);li&&ze.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${ut.type==="hc"?"dashed":"solid"} ${li}; }`);let gi=ut.getColor(B.ic);gi&&ze.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${gi}; }`);let ki=ut.getColor(B.l);ki&&ze.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${ki}; }`);let Ri=ut.getColor(B.kc);Ri&&ze.addRule(` +`}getCreationOptions(Ce,Ae,L){let nt=this._modelCreationOptionsByLanguageAndResource[Ce+Ae];if(!nt){let ct=this._configurationService.getValue("editor",{overrideIdentifier:Ce,resource:Ae}),Ye=this._getEOL(Ae,Ce);nt=Hd._readModelOptions({editor:ct,eol:Ye},L),this._modelCreationOptionsByLanguageAndResource[Ce+Ae]=nt}return nt}_updateModelOptions(){let Ce=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let Ae=Object.keys(this._models);for(let L=0,nt=Ae.length;L<nt;L++){let ct=Ae[L],Ye=this._models[ct],ht=Ye.model.getLanguageIdentifier().language,fe=Ye.model.uri,$=Ce[ht+fe],G=this.getCreationOptions(ht,fe,Ye.model.isForSimpleWidget);Hd._setModelOptionsForModel(Ye.model,G,$)}}static _setModelOptionsForModel(Ce,Ae,L){L&&L.defaultEOL!==Ae.defaultEOL&&Ce.getLineCount()===1&&Ce.setEOL(Ae.defaultEOL===1?0:1),L&&L.detectIndentation===Ae.detectIndentation&&L.insertSpaces===Ae.insertSpaces&&L.tabSize===Ae.tabSize&&L.indentSize===Ae.indentSize&&L.trimAutoWhitespace===Ae.trimAutoWhitespace||(Ae.detectIndentation?(Ce.detectIndentation(Ae.insertSpaces,Ae.tabSize),Ce.updateOptions({trimAutoWhitespace:Ae.trimAutoWhitespace})):Ce.updateOptions({insertSpaces:Ae.insertSpaces,tabSize:Ae.tabSize,indentSize:Ae.indentSize,trimAutoWhitespace:Ae.trimAutoWhitespace}))}_removeDisposedModel(Ce){let Ae=this._disposedModels.get(ie(Ce));return Ae&&(this._disposedModelsHeapSize-=Ae.heapSize),this._disposedModels.delete(ie(Ce)),Ae}_createModelData(Ce,Ae,L,nt){let ct=this.getCreationOptions(Ae.language,L,nt),Ye=new ge.b(Ce,ct,Ae,L,this._undoRedoService);if(L&&this._disposedModels.has(ie(L))){let $=this._removeDisposedModel(L),G=this._undoRedoService.getElements(L),z=function(J){let Se=new T.a,A=J.createSnapshot(),ee;for(;ee=A.read();)Se.update(ee);return Se.digest()}(Ye)===$.sha1;if(z||$.sharesUndoRedoStack){for(let J of G.past)Object(N.b)(J)&&J.matchesResource(L)&&J.setModel(Ye);for(let J of G.future)Object(N.b)(J)&&J.matchesResource(L)&&J.setModel(Ye);this._undoRedoService.setElementsValidFlag(L,!0,J=>Object(N.b)(J)&&J.matchesResource(L)),z&&(Ye._overwriteVersionId($.versionId),Ye._overwriteAlternativeVersionId($.alternativeVersionId),Ye._overwriteInitialUndoRedoSnapshot($.initialUndoRedoSnapshot))}else $.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot($.initialUndoRedoSnapshot)}let ht=ie(Ye.uri);if(this._models[ht])throw new Error("ModelService: Cannot add model because it already exists!");let fe=new U(Ye,$=>this._onWillDispose($),($,G)=>this._onDidChangeLanguage($,G));return this._models[ht]=fe,fe}createModel(Ce,Ae,L,nt=!1){let ct;return Ae?(ct=this._createModelData(Ce,Ae.languageIdentifier,L,nt),this.setMode(ct.model,Ae)):ct=this._createModelData(Ce,Q.b,L,nt),this._onModelAdded.fire(ct.model),ct.model}setMode(Ce,Ae){if(!Ae)return;let L=this._models[ie(Ce.uri)];L&&L.setLanguage(Ae)}getModels(){let Ce=[],Ae=Object.keys(this._models);for(let L=0,nt=Ae.length;L<nt;L++){let ct=Ae[L];Ce.push(this._models[ct].model)}return Ce}getModel(Ce){let Ae=ie(Ce),L=this._models[Ae];return L?L.model:null}getSemanticTokensProviderStyling(Ce){return this._semanticStyling.get(Ce)}_onWillDispose(Ce){let Ae=ie(Ce.uri),L=this._models[Ae];delete this._models[Ae],L.dispose(),delete this._modelCreationOptionsByLanguageAndResource[Ce.getLanguageIdentifier().language+Ce.uri],this._onModelRemoved.fire(Ce)}_onDidChangeLanguage(Ce,Ae){let L=Ae.oldLanguage,nt=Ce.getLanguageIdentifier().language,ct=this.getCreationOptions(L,Ce.uri,Ce.isForSimpleWidget),Ye=this.getCreationOptions(nt,Ce.uri,Ce.isForSimpleWidget);Hd._setModelOptionsForModel(Ce,Ye,ct),this._onModelModeChanged.fire({model:Ce,oldModeId:L})}};B=g([j(0,C.a),j(1,y.b),j(2,V.c),j(3,k.b),j(4,l.a)],B);let se="editor.semanticHighlighting";function ke(he,Ce,Ae){var L;let nt=(L=Ae.getValue(se,{overrideIdentifier:he.getLanguageIdentifier().language,resource:he.uri}))===null||L===void 0?void 0:L.enabled;return typeof nt=="boolean"?nt:Ce.getColorTheme().semanticHighlighting}class xe extends f.a{constructor(Ce,Ae,L,nt){super(),this._watchers=Object.create(null),this._semanticStyling=nt;let ct=fe=>{this._watchers[fe.uri.toString()]=new te(fe,Ae,this._semanticStyling)},Ye=(fe,$)=>{$.dispose(),delete this._watchers[fe.uri.toString()]},ht=()=>{for(let fe of Ce.getModels()){let $=this._watchers[fe.uri.toString()];ke(fe,Ae,L)?$||ct(fe):$&&Ye(fe,$)}};this._register(Ce.onModelAdded(fe=>{ke(fe,Ae,L)&&ct(fe)})),this._register(Ce.onModelRemoved(fe=>{let $=this._watchers[fe.uri.toString()];$&&Ye(fe,$)})),this._register(L.onDidChangeConfiguration(fe=>{fe.affectsConfiguration(se)&&ht()})),this._register(Ae.onDidColorThemeChange(ht))}}class Y extends f.a{constructor(Ce,Ae){super(),this._themeService=Ce,this._logService=Ae,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(Ce){return this._caches.has(Ce)||this._caches.set(Ce,new b.a(Ce.getLegend(),this._themeService,this._logService)),this._caches.get(Ce)}}class Z{constructor(Ce,Ae,L){this._provider=Ce,this.resultId=Ae,this.data=L}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class te extends f.a{constructor(Ce,Ae,L){super(),this._isDisposed=!1,this._model=Ce,this._semanticStyling=L,this._fetchDocumentSemanticTokens=this._register(new S.d(()=>this._fetchDocumentSemanticTokensNow(),300)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}));let nt=()=>{Object(f.f)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let ct of W.l.all(Ce))typeof ct.onDidChange=="function"&&this._documentProvidersChangeListeners.push(ct.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};nt(),this._register(W.l.onDidChange(()=>{nt(),this._fetchDocumentSemanticTokens.schedule()})),this._register(Ae.onDidColorThemeChange(ct=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;let Ce=this._getSemanticColoringProvider();if(!Ce)return;this._currentDocumentRequestCancellationTokenSource=new P.b;let Ae=[],L=this._model.onDidChangeContent(Ye=>{Ae.push(Ye)}),nt=this._semanticStyling.get(Ce),ct=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null;Promise.resolve(Ce.provideDocumentSemanticTokens(this._model,ct,this._currentDocumentRequestCancellationTokenSource.token)).then(Ye=>{this._currentDocumentRequestCancellationTokenSource=null,L.dispose(),this._setDocumentSemanticTokens(Ce,Ye||null,nt,Ae)},Ye=>{Ye&&typeof Ye.message=="string"&&Ye.message.indexOf("busy")!==-1||H.e(Ye),this._currentDocumentRequestCancellationTokenSource=null,L.dispose(),Ae.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _isSemanticTokens(Ce){return Ce&&!!Ce.data}static _isSemanticTokensEdits(Ce){return Ce&&Array.isArray(Ce.edits)}static _copy(Ce,Ae,L,nt,ct){for(let Ye=0;Ye<ct;Ye++)L[nt+Ye]=Ce[Ae+Ye]}_setDocumentSemanticTokens(Ce,Ae,L,nt){let ct=this._currentDocumentResponse;if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)Ce&&Ae&&Ce.releaseDocumentSemanticTokens(Ae.resultId);else if(Ce&&L)if(Ae){if(te._isSemanticTokensEdits(Ae)){if(!ct)return void this._model.setSemanticTokens(null,!0);if(Ae.edits.length===0)Ae={resultId:Ae.resultId,data:ct.data};else{let Ye=0;for(let z of Ae.edits)Ye+=(z.data?z.data.length:0)-z.deleteCount;let ht=ct.data,fe=new Uint32Array(ht.length+Ye),$=ht.length,G=fe.length;for(let z=Ae.edits.length-1;z>=0;z--){let J=Ae.edits[z],Se=$-(J.start+J.deleteCount);Se>0&&(te._copy(ht,$-Se,fe,G-Se,Se),G-=Se),J.data&&(te._copy(J.data,0,fe,G-J.data.length,J.data.length),G-=J.data.length),$=J.start}$>0&&te._copy(ht,0,fe,0,$),Ae={resultId:Ae.resultId,data:fe}}}if(te._isSemanticTokens(Ae)){this._currentDocumentResponse=new Z(Ce,Ae.resultId,Ae.data);let Ye=Object(b.b)(Ae,L,this._model.getLanguageIdentifier());if(nt.length>0){for(let ht of nt)for(let fe of Ye)for(let $ of ht.changes)fe.applyEdit($.range,$.text);this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}this._model.setSemanticTokens(Ye,!0)}else this._model.setSemanticTokens(null,!0)}else this._model.setSemanticTokens(null,!0);else this._model.setSemanticTokens(null,!1)}_getSemanticColoringProvider(){let Ce=W.l.ordered(this._model);return Ce.length>0?Ce[0]:null}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return H}),r.d(w,"b",function(){return E});var h=r(12),f=r(102),O=r(124);class H{constructor(y,C,S){this._legend=y,this._themeService=C,this._logService=S,this._hashTable=new W}getMetadata(y,C,S){let P=this._hashTable.get(y,C,S.id),V;if(P)V=P.metadata,this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${y} / ${C}: foreground ${h.B.getForeground(V)}, fontStyle ${h.B.getFontStyle(V).toString(2)}`);else{let k=this._legend.tokenTypes[y],l=[];if(k){let T=C;for(let b=0;T>0&&b<this._legend.tokenModifiers.length;b++)1&T&&l.push(this._legend.tokenModifiers[b]),T>>=1;T>0&&this._logService.getLevel()===f.c.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${C.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));let N=this._themeService.getColorTheme().getTokenStyleMetadata(k,l,S.language);N===void 0?V=2147483647:(V=0,N.italic!==void 0&&(V|=1|(N.italic?1:0)<<11),N.bold!==void 0&&(V|=2|(N.bold?2:0)<<11),N.underline!==void 0&&(V|=4|(N.underline?4:0)<<11),N.foreground&&(V|=8|N.foreground<<14),V===0&&(V=2147483647))}else this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${y} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),V=2147483647,k="not-in-legend";this._hashTable.add(y,C,S.id,V),this._logService.getLevel()===f.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${y} (${k}) / ${C} (${l.join(" ")}): foreground ${h.B.getForeground(V)}, fontStyle ${h.B.getFontStyle(V).toString(2)}`)}return V}}function E(Q,y,C){let S=Q.data,P=Q.data.length/5|0,V=Math.max(Math.ceil(P/1024),400),k=[],l=0,T=1,N=0;for(;l<P;){let b=l,g=Math.min(b+V,P);if(g<P){let B=g;for(;B-1>b&&S[5*B]===0;)B--;if(B-1===b){let se=g;for(;se+1<P&&S[5*se]===0;)se++;g=se}else g=B}let j=new Uint32Array(4*(g-b)),ie=0,U=0;for(;l<g;){let B=5*l,se=S[B],ke=S[B+1],xe=T+se,Y=se===0?N+ke:ke,Z=S[B+2],te=S[B+3],he=S[B+4],Ce=y.getMetadata(te,he,C);Ce!==2147483647&&(U===0&&(U=xe),j[ie]=xe-U,j[ie+1]=Y,j[ie+2]=Y+Z,j[ie+3]=Ce,ie+=4),T=xe,N=Y,l++}ie!==j.length&&(j=j.subarray(0,ie));let q=new O.a(U,new O.c(j));k.push(q)}return k}class ge{constructor(y,C,S,P){this.tokenTypeIndex=y,this.tokenModifierSet=C,this.languageId=S,this.metadata=P,this.next=null}}class W{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=W._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<W._SIZES.length?2/3*this._currentLength:0),this._elements=[],W._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(y,C){for(let S=0;S<C;S++)y[S]=null}_hash2(y,C){return(y<<5)-y+C|0}_hashFunc(y,C,S){return this._hash2(this._hash2(y,C),S)%this._currentLength}get(y,C,S){let P=this._hashFunc(y,C,S),V=this._elements[P];for(;V;){if(V.tokenTypeIndex===y&&V.tokenModifierSet===C&&V.languageId===S)return V;V=V.next}return null}add(y,C,S,P){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){let V=this._elements;this._currentLengthIndex++,this._currentLength=W._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<W._SIZES.length?2/3*this._currentLength:0),this._elements=[],W._nullOutEntries(this._elements,this._currentLength);for(let k of V){let l=k;for(;l;){let T=l.next;l.next=null,this._add(l),l=T}}}this._add(new ge(y,C,S,P))}_add(y){let C=this._hashFunc(y.tokenTypeIndex,y.tokenModifierSet,y.languageId);y.next=this._elements[C],this._elements[C]=y}}W._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},function(Ie,w,r){"use strict";r.d(w,"a",function(){return ge}),r(275);var h=r(1),f=r(8),O=r(15),H=r(46);let E={badgeBackground:O.a.fromHex("#4D4D4D"),badgeForeground:O.a.fromHex("#FFFFFF")};class ge{constructor(Q,y){this.count=0,this.options=y||Object.create(null),Object(H.g)(this.options,E,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(h.p)(Q,Object(h.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(Q){this.count=Q,this.render()}setTitleFormat(Q){this.titleFormat=Q,this.render()}render(){this.element.textContent=Object(f.x)(this.countFormat,this.count),this.element.title=Object(f.x)(this.titleFormat,this.count),this.applyStyles()}style(Q){this.badgeBackground=Q.badgeBackground,this.badgeForeground=Q.badgeForeground,this.badgeBorder=Q.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){let Q=this.badgeBackground?this.badgeBackground.toString():"",y=this.badgeForeground?this.badgeForeground.toString():"",C=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=Q,this.element.style.color=y,this.element.style.borderWidth=C?"1px":"",this.element.style.borderStyle=C?"solid":"",this.element.style.borderColor=C}}}},function(Ie,w,r){var h=r(32),f=r(268);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return q});var h=r(16),f=r(8),O=r(179),H=r(42),E=r(78),ge=r(20);let W=/\//g;function Q(se){switch(se){case 0:return"";case 1:return"[^/\\\\]*?";default:return"(?:[/\\\\]|[^/\\\\]+[/\\\\]|[/\\\\][^/\\\\]+)*?"}}function y(se,ke){if(!se)return[];let xe=[],Y=!1,Z=!1,te="";for(let he of se){switch(he){case ke:if(!Y&&!Z){xe.push(te),te="";continue}break;case"{":Y=!0;break;case"}":Y=!1;break;case"[":Z=!0;break;case"]":Z=!1}te+=he}return te&&xe.push(te),xe}let C=/^\*\*\/\*\.[\w\.-]+$/,S=/^\*\*\/([\w\.-]+)\/?$/,P=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,V=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,k=/^\*\*((\/[\w\.-]+)+)\/?$/,l=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new E.a(1e4),N=function(){return!1},b=function(){return null};function g(se,ke){if(!se)return b;let xe;xe=typeof se!="string"?se.pattern:se,xe=xe.trim();let Y=`${xe}_${!!ke.trimForExclusions}`,Z,te=T.get(Y);if(te)return j(te,se);if(C.test(xe)){let he=xe.substr(4);te=function(Ce,Ae){return typeof Ce=="string"&&Ce.endsWith(he)?xe:null}}else te=(Z=S.exec(ie(xe,ke)))?function(he,Ce){let Ae="/"+he,L="\\"+he,nt=function(Ye,ht){return typeof Ye!="string"?null:ht?ht===he?Ce:null:Ye===he||Ye.endsWith(Ae)||Ye.endsWith(L)?Ce:null},ct=[he];return nt.basenames=ct,nt.patterns=[Ce],nt.allBasenames=ct,nt}(Z[1],xe):(ke.trimForExclusions?V:P).test(xe)?function(he,Ce){let Ae=B(he.slice(1,-1).split(",").map(ht=>g(ht,Ce)).filter(ht=>ht!==b),he),L=Ae.length;if(!L)return b;if(L===1)return Ae[0];let nt=function(ht,fe){for(let $=0,G=Ae.length;$<G;$++)if(Ae[$](ht,fe))return he;return null},ct=h.i(Ae,ht=>!!ht.allBasenames);ct&&(nt.allBasenames=ct.allBasenames);let Ye=Ae.reduce((ht,fe)=>fe.allPaths?ht.concat(fe.allPaths):ht,[]);return Ye.length&&(nt.allPaths=Ye),nt}(xe,ke):(Z=k.exec(ie(xe,ke)))?U(Z[1].substr(1),xe,!0):(Z=l.exec(ie(xe,ke)))?U(Z[1],xe,!1):function(he){try{let Ce=new RegExp(`^${function Ae(L){if(!L)return"";let nt="",ct=y(L,"/");if(ct.every(Ye=>Ye==="**"))nt=".*";else{let Ye=!1;ct.forEach((ht,fe)=>{if(ht==="**")return void(Ye||(nt+=Q(2),Ye=!0));let $=!1,G="",z=!1,J="";for(let Se of ht)if(Se!=="}"&&$)G+=Se;else if(!z||Se==="]"&&J)switch(Se){case"{":$=!0;continue;case"[":z=!0;continue;case"}":nt+=`(?:${y(G,",").map(ee=>Ae(ee)).join("|")})`,$=!1,G="";break;case"]":nt+="["+J+"]",z=!1,J="";break;case"?":nt+="[^/\\\\]";continue;case"*":nt+=Q(1);continue;default:nt+=f.v(Se)}else{let A;A=Se==="-"?Se:Se!=="^"&&Se!=="!"||J?Se==="/"?"":f.v(Se):"^",J+=A}fe<ct.length-1&&(ct[fe+1]!=="**"||fe+2<ct.length)&&(nt+="[/\\\\]"),Ye=!1})}return nt}(he)}$`);return function(Ae){return Ce.lastIndex=0,typeof Ae=="string"&&Ce.test(Ae)?he:null}}catch(Ce){return b}}(xe);return T.set(Y,te),j(te,se)}function j(se,ke){return typeof ke=="string"?se:function(xe,Y){return O.a(xe,ke.base)?se(H.f(ke.base,xe),Y):null}}function ie(se,ke){return ke.trimForExclusions&&se.endsWith("/**")?se.substr(0,se.length-2):se}function U(se,ke,xe){let Y=H.h!==H.e.sep?se.replace(W,H.h):se,Z=H.h+Y,te=xe?function(he,Ce){return typeof he!="string"||he!==Y&&!he.endsWith(Z)?null:ke}:function(he,Ce){return typeof he=="string"&&he===Y?ke:null};return te.allPaths=[(xe?"*/":"./")+se],te}function q(se,ke,xe){return!(!se||typeof ke!="string")&&function(Y,Z={}){if(!Y)return N;if(typeof Y=="string"||function(te){let he=te;return he&&typeof he.base=="string"&&typeof he.pattern=="string"}(Y)){let te=g(Y,Z);if(te===b)return N;let he=function(Ce,Ae){return!!te(Ce,Ae)};return te.allBasenames&&(he.allBasenames=te.allBasenames),te.allPaths&&(he.allPaths=te.allPaths),he}return function(te,he){let Ce=B(Object.getOwnPropertyNames(te).map(Ye=>function(ht,fe,$){if(fe===!1)return b;let G=g(ht,$);if(G===b)return b;if(typeof fe=="boolean")return G;if(fe){let z=fe.when;if(typeof z=="string"){let J=(Se,A,ee,de)=>{if(!de||!G(Se,A))return null;let De=de(z.replace("$(basename)",ee));return Object(ge.i)(De)?De.then($e=>$e?ht:null):De?ht:null};return J.requiresSiblings=!0,J}}return G}(Ye,te[Ye],he)).filter(Ye=>Ye!==b)),Ae=Ce.length;if(!Ae)return b;if(!Ce.some(Ye=>!!Ye.requiresSiblings)){if(Ae===1)return Ce[0];let Ye=function($,G){for(let z=0,J=Ce.length;z<J;z++){let Se=Ce[z]($,G);if(Se)return Se}return null},ht=h.i(Ce,$=>!!$.allBasenames);ht&&(Ye.allBasenames=ht.allBasenames);let fe=Ce.reduce(($,G)=>G.allPaths?$.concat(G.allPaths):$,[]);return fe.length&&(Ye.allPaths=fe),Ye}let L=function(Ye,ht,fe){let $;for(let G=0,z=Ce.length;G<z;G++){let J=Ce[G];J.requiresSiblings&&fe&&(ht||(ht=H.a(Ye)),$||($=ht.substr(0,ht.length-H.c(Ye).length)));let Se=J(Ye,ht,$,fe);if(Se)return Se}return null},nt=h.i(Ce,Ye=>!!Ye.allBasenames);nt&&(L.allBasenames=nt.allBasenames);let ct=Ce.reduce((Ye,ht)=>ht.allPaths?Ye.concat(ht.allPaths):Ye,[]);return ct.length&&(L.allPaths=ct),L}(Y,Z)}(se)(ke,void 0,xe)}function B(se,ke){let xe=se.filter(Ce=>!!Ce.basenames);if(xe.length<2)return se;let Y=xe.reduce((Ce,Ae)=>{let L=Ae.basenames;return L?Ce.concat(L):Ce},[]),Z;if(ke){Z=[];for(let Ce=0,Ae=Y.length;Ce<Ae;Ce++)Z.push(ke)}else Z=xe.reduce((Ce,Ae)=>{let L=Ae.patterns;return L?Ce.concat(L):Ce},[]);let te=function(Ce,Ae){if(typeof Ce!="string")return null;if(!Ae){let nt;for(nt=Ce.length;nt>0;nt--){let ct=Ce.charCodeAt(nt-1);if(ct===47||ct===92)break}Ae=Ce.substr(nt)}let L=Y.indexOf(Ae);return L!==-1?Z[L]:null};te.basenames=Y,te.patterns=Z,te.allBasenames=Y;let he=se.filter(Ce=>!Ce.basenames);return he.push(te),he}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return O});var h=r(56),f=r(6);let O={JSONContribution:"base.contributions.json"},H=new class{constructor(){this._onDidChangeSchema=new f.a,this.schemasById={}}registerSchema(E,ge){var W;this.schemasById[W=E,W.length>0&&W.charAt(W.length-1)==="#"?W.substring(0,W.length-1):W]=ge,this._onDidChangeSchema.fire(E)}notifySchemaChanged(E){this._onDidChangeSchema.fire(E)}};h.a.add(O.JSONContribution,H)},function(Ie,w,r){"use strict";r.d(w,"b",function(){return f}),r.d(w,"a",function(){return O});let h=Object.prototype.hasOwnProperty;function f(H,E){for(let ge in H)if(h.call(H,ge)&&E({key:ge,value:H[ge]},function(){delete H[ge]})===!1)return}class O{constructor(){this.map=new Map}add(E,ge){let W=this.map.get(E);W||(W=new Set,this.map.set(E,W)),W.add(ge)}delete(E,ge){let W=this.map.get(E);W&&(W.delete(ge),W.size===0&&this.map.delete(E))}forEach(E,ge){let W=this.map.get(E);W&&W.forEach(ge)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(2);class f extends h.a{constructor(H,E,ge){super(),this.referenceDomElement=H,this.changeCallback=ge,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,E)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){typeof ResizeObserver!="undefined"?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(H=>{H&&H[0]&&H[0].contentRect?this.observe({width:H[0].contentRect.width,height:H[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):this.measureReferenceDomElementToken===-1&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.measureReferenceDomElementToken!==-1&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(H){this.measureReferenceDomElement(!0,H)}measureReferenceDomElement(H,E){let ge=0,W=0;E?(ge=E.width,W=E.height):this.referenceDomElement&&(ge=this.referenceDomElement.clientWidth,W=this.referenceDomElement.clientHeight),ge=Math.max(5,ge),W=Math.max(5,W),this.width===ge&&this.height===W||(this.width=ge,this.height=W,H&&this.changeCallback())}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return h});class h{constructor(O,H,E,ge,W,Q){this.id=O,this.label=H,this.alias=E,this._precondition=ge,this._run=W,this._contextKeyService=Q}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return f});var h=r(18);let f=Object(h.c)("markerDecorationsService")},function(Ie,w,r){"use strict";r.d(w,"a",function(){return W});var h=r(174),f=r(6),O=r(2),H=r(46),E=r(3);let ge={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class W extends O.a{constructor(y,C={}){super(),this._onDidUpdate=this._register(new f.a),this._editor=y,this._options=H.g(C,ge,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(S=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(S=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(y){this.ranges=[],y&&y.forEach(C=>{!this._options.ignoreCharChanges&&C.charChanges?C.charChanges.forEach(S=>{this.ranges.push({rhs:!0,range:new E.a(S.modifiedStartLineNumber,S.modifiedStartColumn,S.modifiedEndLineNumber,S.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new E.a(C.modifiedStartLineNumber,1,C.modifiedStartLineNumber,1)})}),this.ranges.sort((C,S)=>C.range.getStartPosition().isBeforeOrEqual(S.range.getStartPosition())?-1:S.range.getStartPosition().isBeforeOrEqual(C.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(y){let C=!1,S=this._editor.getPosition();if(S){for(let P=0,V=this.ranges.length;P<V&&!C;P++){let k=this.ranges[P].range;S.isBeforeOrEqual(k.getStartPosition())&&(this.nextIdx=P+(y?0:-1),C=!0)}C||(this.nextIdx=y?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(y,C){if(h.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(y):y?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let P=S.range.getStartPosition();this._editor.setPosition(P),this._editor.revealPositionInCenter(P,C)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(y=0){this._move(!0,y)}previous(y=0){this._move(!1,y)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},function(Ie,w,r){"use strict";r.d(w,"a",function(){return Li}),r(244);var h=r(0),f=r(1),O=r(35),H=r(153),E=r(20),ge=r(6),W=r(2),Q=r(46),y=r(87),C=r(88),S=r(41),P=r(164),V=(r(248),r(116)),k=r(105),l=r(60),T=r(4),N=r(26),b=r(111),g=r(9),j=r(57),ie=r(91),U=r(74),q=r(10),B=r(5),se=r(19),ke=r(17);class xe{constructor(ze,st,_t,ri){this.originalLineStart=ze,this.originalLineEnd=st,this.modifiedLineStart=_t,this.modifiedLineEnd=ri}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class Y{constructor(ze){this.entries=ze}}let Z=Object(ke.e)("diff-review-insert",ke.a.add),te=Object(ke.e)("diff-review-remove",ke.a.remove),he=Object(ke.e)("diff-review-close",ke.a.close);class Ce extends W.a{constructor(ze){super(),this._width=0,this._diffEditor=ze,this._isVisible=!1,this.shadow=Object(O.b)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(O.b)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new V.a(this.actionBarContainer.domNode)),this._actionBar.push(new l.a("diffreview.close",h.a("label.close","Close"),"close-diff-review "+he.classNames,!0,()=>(this.hide(),Promise.resolve(null))),{label:!1,icon:!0}),this.domNode=Object(O.b)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(O.b)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new k.a(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(ze.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(ze.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(f.n(this.domNode.domNode,"click",st=>{st.preventDefault();let _t=f.w(st.target,"diff-review-row");_t&&this._goToRow(_t)})),this._register(f.n(this.domNode.domNode,"keydown",st=>{(st.equals(18)||st.equals(2066)||st.equals(530))&&(st.preventDefault(),this._goToRow(this._getNextRow())),(st.equals(16)||st.equals(2064)||st.equals(528))&&(st.preventDefault(),this._goToRow(this._getPrevRow())),(st.equals(9)||st.equals(2057)||st.equals(521)||st.equals(1033))&&(st.preventDefault(),this.hide()),(st.equals(10)||st.equals(3))&&(st.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let ze=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let _t=-1;for(let ri=0,li=this._diffs.length;ri<li;ri++)if(this._diffs[ri]===this._currentDiff){_t=ri;break}ze=this._diffs.length+_t-1}else ze=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;ze%=this._diffs.length;let st=this._diffs[ze].entries;this._diffEditor.setPosition(new g.a(st[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:st[0].modifiedLineStart,endColumn:1073741824,endLineNumber:st[st.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let ze=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let _t=-1;for(let ri=0,li=this._diffs.length;ri<li;ri++)if(this._diffs[ri]===this._currentDiff){_t=ri;break}ze=_t+1}else ze=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;ze%=this._diffs.length;let st=this._diffs[ze].entries;this._diffEditor.setPosition(new g.a(st[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:st[0].modifiedLineStart,endColumn:1073741824,endLineNumber:st[st.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let ze=-1,st=this._getCurrentFocusedRow();if(st){let _t=parseInt(st.getAttribute("data-line"),10);isNaN(_t)||(ze=_t)}this.hide(),ze!==-1&&(this._diffEditor.setPosition(new g.a(ze,1)),this._diffEditor.revealPosition(new g.a(ze,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){let ze=this._getCurrentFocusedRow();return ze?ze.previousElementSibling?ze.previousElementSibling:ze:this._getFirstRow()}_getNextRow(){let ze=this._getCurrentFocusedRow();return ze?ze.nextElementSibling?ze.nextElementSibling:ze:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){let ze=document.activeElement;return ze&&/diff-review-row/.test(ze.className)?ze:null}_goToRow(ze){let st=this._getCurrentFocusedRow();ze.tabIndex=0,ze.focus(),st&&st!==ze&&(st.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(ze,st,_t){this._width=st,this.shadow.setTop(ze-6),this.shadow.setWidth(st),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(ze),this.domNode.setWidth(st),this.domNode.setHeight(_t),this._content.setHeight(_t),this._content.setWidth(st),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){let ze=this._diffEditor.getLineChanges();if(!ze||ze.length===0)return[];let st=this._diffEditor.getOriginalEditor().getModel(),_t=this._diffEditor.getModifiedEditor().getModel();return st&&_t?Ce._mergeAdjacent(ze,st.getLineCount(),_t.getLineCount()):[]}static _mergeAdjacent(ze,st,_t){if(!ze||ze.length===0)return[];let ri=[],li=0;for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i],kt=yi.originalStartLineNumber,Et=yi.originalEndLineNumber,si=yi.modifiedStartLineNumber,Si=yi.modifiedEndLineNumber,Pi=[],Wi=0;{let xn=Et===0?kt:kt-1,un=Si===0?si:si-1,bn=1,Fn=1;if($i>0){let Hn=ze[$i-1];bn=Hn.originalEndLineNumber===0?Hn.originalStartLineNumber+1:Hn.originalEndLineNumber+1,Fn=Hn.modifiedEndLineNumber===0?Hn.modifiedStartLineNumber+1:Hn.modifiedEndLineNumber+1}let Mn=xn-3+1,Nn=un-3+1;if(Mn<bn){let Hn=bn-Mn;Mn+=Hn,Nn+=Hn}if(Nn<Fn){let Hn=Fn-Nn;Mn+=Hn,Nn+=Hn}Pi[Wi++]=new xe(Mn,xn,Nn,un)}Et!==0&&(Pi[Wi++]=new xe(kt,Et,0,0)),Si!==0&&(Pi[Wi++]=new xe(0,0,si,Si));{let xn=Et===0?kt+1:Et+1,un=Si===0?si+1:Si+1,bn=st,Fn=_t;if($i+1<Hi){let Hn=ze[$i+1];bn=Hn.originalEndLineNumber===0?Hn.originalStartLineNumber:Hn.originalStartLineNumber-1,Fn=Hn.modifiedEndLineNumber===0?Hn.modifiedStartLineNumber:Hn.modifiedStartLineNumber-1}let Mn=xn+3-1,Nn=un+3-1;if(Mn>bn){let Hn=bn-Mn;Mn+=Hn,Nn+=Hn}if(Nn>Fn){let Hn=Fn-Nn;Mn+=Hn,Nn+=Hn}Pi[Wi++]=new xe(xn,Mn,un,Nn)}ri[li++]=new Y(Pi)}let gi=ri[0].entries,ki=[],Ri=0;for(let $i=1,Hi=ri.length;$i<Hi;$i++){let yi=ri[$i].entries,kt=gi[gi.length-1],Et=yi[0];kt.getType()===0&&Et.getType()===0&&Et.originalLineStart<=kt.originalLineEnd?(gi[gi.length-1]=new xe(kt.originalLineStart,Et.originalLineEnd,kt.modifiedLineStart,Et.modifiedLineEnd),gi=gi.concat(yi.slice(1))):(ki[Ri++]=new Y(gi),gi=yi)}return ki[Ri++]=new Y(gi),ki}_findDiffIndex(ze){let st=ze.lineNumber;for(let _t=0,ri=this._diffs.length;_t<ri;_t++){let li=this._diffs[_t].entries;if(st<=li[li.length-1].modifiedLineEnd)return _t}return 0}_render(){let ze=this._diffEditor.getOriginalEditor().getOptions(),st=this._diffEditor.getModifiedEditor().getOptions(),_t=this._diffEditor.getOriginalEditor().getModel(),ri=this._diffEditor.getModifiedEditor().getModel(),li=_t.getOptions(),gi=ri.getOptions();if(!this._isVisible||!_t||!ri)return f.s(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});let ki=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[ki]===this._currentDiff)return;this._currentDiff=this._diffs[ki];let Ri=this._diffs[ki].entries,$i=document.createElement("div");$i.className="diff-review-table",$i.setAttribute("role","list"),$i.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),y.a.applyFontInfoSlow($i,st.get(36));let Hi=0,yi=0,kt=0,Et=0;for(let Nn=0,Hn=Ri.length;Nn<Hn;Nn++){let Jn=Ri[Nn],br=Jn.originalLineStart,pn=Jn.originalLineEnd,Gn=Jn.modifiedLineStart,rn=Jn.modifiedLineEnd;br!==0&&(Hi===0||br<Hi)&&(Hi=br),pn!==0&&(yi===0||pn>yi)&&(yi=pn),Gn!==0&&(kt===0||Gn<kt)&&(kt=Gn),rn!==0&&(Et===0||rn>Et)&&(Et=rn)}let si=document.createElement("div");si.className="diff-review-row";let Si=document.createElement("div");Si.className="diff-review-cell diff-review-summary";let Pi=yi-Hi+1,Wi=Et-kt+1;Si.appendChild(document.createTextNode(`${ki+1}/${this._diffs.length}: @@ -${Hi},${Pi} +${kt},${Wi} @@`)),si.setAttribute("data-line",String(kt));let xn=Nn=>Nn===0?h.a("no_lines_changed","no lines changed"):Nn===1?h.a("one_line_changed","1 line changed"):h.a("more_lines_changed","{0} lines changed",Nn),un=xn(Pi),bn=xn(Wi);si.setAttribute("aria-label",h.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",ki+1,this._diffs.length,Hi,un,kt,bn)),si.appendChild(Si),si.setAttribute("role","listitem"),$i.appendChild(si);let Fn=st.get(51),Mn=kt;for(let Nn=0,Hn=Ri.length;Nn<Hn;Nn++){let Jn=Ri[Nn];Ce._renderSection($i,Jn,Mn,Fn,this._width,ze,_t,li,st,ri,gi),Jn.modifiedLineStart!==0&&(Mn=Jn.modifiedLineEnd)}f.s(this._content.domNode),this._content.domNode.appendChild($i),this.scrollbar.scanDomNode()}static _renderSection(ze,st,_t,ri,li,gi,ki,Ri,$i,Hi,yi){let kt=st.getType(),Et="diff-review-row",si="",Si=null;switch(kt){case 1:Et="diff-review-row line-insert",si=" char-insert",Si=Z;break;case 2:Et="diff-review-row line-delete",si=" char-delete",Si=te}let Pi=st.originalLineStart,Wi=st.originalLineEnd,xn=st.modifiedLineStart,un=st.modifiedLineEnd,bn=Math.max(un-xn,Wi-Pi),Fn=gi.get(117),Mn=Fn.glyphMarginWidth+Fn.lineNumbersWidth,Nn=$i.get(117),Hn=10+Nn.glyphMarginWidth+Nn.lineNumbersWidth;for(let Jn=0;Jn<=bn;Jn++){let br=Pi===0?0:Pi+Jn,pn=xn===0?0:xn+Jn,Gn=document.createElement("div");Gn.style.minWidth=li+"px",Gn.className=Et,Gn.setAttribute("role","listitem"),pn!==0&&(_t=pn),Gn.setAttribute("data-line",String(_t));let rn=document.createElement("div");rn.className="diff-review-cell",rn.style.height=ri+"px",Gn.appendChild(rn);let dr=document.createElement("span");dr.style.width=Mn+"px",dr.style.minWidth=Mn+"px",dr.className="diff-review-line-number"+si,br!==0?dr.appendChild(document.createTextNode(String(br))):dr.innerText="\xA0",rn.appendChild(dr);let Dn=document.createElement("span");Dn.style.width=Hn+"px",Dn.style.minWidth=Hn+"px",Dn.style.paddingRight="10px",Dn.className="diff-review-line-number"+si,pn!==0?Dn.appendChild(document.createTextNode(String(pn))):Dn.innerText="\xA0",rn.appendChild(Dn);let On=document.createElement("span");if(On.className="diff-review-spacer",Si){let ne=document.createElement("span");ne.className=Si.classNames,ne.innerText="\xA0\xA0",On.appendChild(ne)}else On.innerText="\xA0\xA0";let qt;rn.appendChild(On),pn!==0?(rn.insertAdjacentHTML("beforeend",this._renderLine(Hi,$i,yi.tabSize,pn)),qt=Hi.getLineContent(pn)):(rn.insertAdjacentHTML("beforeend",this._renderLine(ki,gi,Ri.tabSize,br)),qt=ki.getLineContent(br)),qt.length===0&&(qt=h.a("blankLine","blank"));let I="";switch(kt){case 0:I=br===pn?h.a({key:"unchangedLine",comment:["The placholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",qt,br):h.a("equalLine","{0} original line {1} modified line {2}",qt,br,pn);break;case 1:I=h.a("insertLine","+ {0} modified line {1}",qt,pn);break;case 2:I=h.a("deleteLine","- {0} original line {1}",qt,br)}Gn.setAttribute("aria-label",I),ze.appendChild(Gn)}}static _renderLine(ze,st,_t,ri){let li=ze.getLineContent(ri),gi=st.get(36),ki=new Uint32Array(2);ki[0]=li.length,ki[1]=16793600;let Ri=new b.a(ki,li),$i=U.d.isBasicASCII(li,ze.mightContainNonBasicASCII()),Hi=U.d.containsRTL(li,$i,ze.mightContainRTL());return Object(ie.e)(new ie.c(gi.isMonospace&&!st.get(24),gi.canUseHalfwidthRightwardsArrow,li,!1,$i,Hi,0,Ri,[],_t,0,gi.spaceWidth,gi.middotWidth,gi.wsmiddotWidth,st.get(95),st.get(80),st.get(74),st.get(37)!==N.e.OFF,null)).html}}Object(se.g)((ut,ze)=>{let st=ut.getColor(j.k);st&&ze.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${st}; }`);let _t=ut.getColor(B.ic);_t&&ze.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${_t} 0 -6px 6px -6px inset; }`)});class Ae extends T.b{constructor(){super({id:"editor.action.diffReview.next",label:h.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:q.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(ze,st){let _t=nt(ze);_t&&_t.diffReviewNext()}}class L extends T.b{constructor(){super({id:"editor.action.diffReview.prev",label:h.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:q.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(ze,st){let _t=nt(ze);_t&&_t.diffReviewPrev()}}function nt(ut){let ze=ut.get(S.a),st=ze.listDiffEditors(),_t=ze.getActiveCodeEditor();if(!_t)return null;for(let ri=0,li=st.length;ri<li;ri++){let gi=st[ri];if(gi.getModifiedEditor().getId()===_t.getId()||gi.getOriginalEditor().getId()===_t.getId())return gi}return null}Object(T.k)(Ae),Object(T.k)(L);var ct=r(3),Ye=r(132),ht=r(143),fe=r(30),$=r(96),G=r(168),z=r(155),J=r(18),Se=r(149),A=r(49),ee=r(84),de=function(ut,ze,st,_t){return new(st||(st=Promise))(function(ri,li){function gi($i){try{Ri(_t.next($i))}catch(Hi){li(Hi)}}function ki($i){try{Ri(_t.throw($i))}catch(Hi){li(Hi)}}function Ri($i){var Hi;$i.done?ri($i.value):(Hi=$i.value,Hi instanceof st?Hi:new st(function(yi){yi(Hi)})).then(gi,ki)}Ri((_t=_t.apply(ut,ze||[])).next())})};class De extends W.a{constructor(ze,st,_t,ri,li,gi){super(),this._viewZoneId=ze,this._marginDomNode=st,this.editor=_t,this.diff=ri,this._contextMenuService=li,this._clipboardService=gi,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=ke.a.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";let ki=_t.getOption(51),Ri=_t.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=ki+"px",this._diffActions.style.lineHeight=ki+"px",this._marginDomNode.appendChild(this._diffActions);let $i=[];$i.push(new l.a("diff.clipboard.copyDeletedContent",ri.originalEndLineNumber>ri.modifiedStartLineNumber?h.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):h.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>de(this,void 0,void 0,function*(){yield this._clipboardService.writeText(ri.originalContent.join(Ri)+Ri)})));let Hi=0,yi;ri.originalEndLineNumber>ri.modifiedStartLineNumber&&(yi=new l.a("diff.clipboard.copyDeletedLineContent",h.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",ri.originalStartLineNumber),void 0,!0,()=>de(this,void 0,void 0,function*(){yield this._clipboardService.writeText(ri.originalContent[Hi])})),$i.push(yi)),_t.getOption(72)||$i.push(new l.a("diff.inline.revertChange",h.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>de(this,void 0,void 0,function*(){if(ri.modifiedEndLineNumber===0){let Et=_t.getModel().getLineMaxColumn(ri.modifiedStartLineNumber);_t.executeEdits("diffEditor",[{range:new ct.a(ri.modifiedStartLineNumber,Et,ri.modifiedStartLineNumber,Et),text:Ri+ri.originalContent.join(Ri)}])}else{let Et=_t.getModel().getLineMaxColumn(ri.modifiedEndLineNumber);_t.executeEdits("diffEditor",[{range:new ct.a(ri.modifiedStartLineNumber,1,ri.modifiedEndLineNumber,Et),text:ri.originalContent.join(Ri)}])}})));let kt=(Et,si)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:Et,y:si}),getActions:()=>(yi&&(yi.label=h.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",ri.originalStartLineNumber+Hi)),$i),autoSelectFirstItem:!0})};this._register(f.n(this._diffActions,"mousedown",Et=>{let{top:si,height:Si}=f.C(this._diffActions),Pi=Math.floor(ki/3);Et.preventDefault(),kt(Et.posx,si+Si+Pi)})),this._register(_t.onMouseMove(Et=>{Et.target.type===8||Et.target.type===5?Et.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,Hi=this._updateLightBulbPosition(this._marginDomNode,Et.event.browserEvent.y,ki)):this.visibility=!1:this.visibility=!1})),this._register(_t.onMouseDown(Et=>{Et.event.rightButton&&(Et.target.type===8||Et.target.type===5)&&Et.target.detail.viewZoneId===this._viewZoneId&&(Et.event.preventDefault(),Hi=this._updateLightBulbPosition(this._marginDomNode,Et.event.browserEvent.y,ki),kt(Et.event.posx,Et.event.posy+ki))}))}get visibility(){return this._visibility}set visibility(ze){this._visibility!==ze&&(this._visibility=ze,this._diffActions.style.visibility=ze?"visible":"hidden")}_updateLightBulbPosition(ze,st,_t){let{top:ri}=f.C(ze),li=st-ri,gi=Math.floor(li/_t),ki=gi*_t;return this._diffActions.style.top=ki+"px",gi}}var $e=r(121),pt=r(13),it=r(83),At=r(190),Nt=r(145),_i=function(ut,ze,st,_t){var ri,li=arguments.length,gi=li<3?ze:_t===null?_t=Object.getOwnPropertyDescriptor(ze,st):_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")gi=Reflect.decorate(ut,ze,st,_t);else for(var ki=ut.length-1;ki>=0;ki--)(ri=ut[ki])&&(gi=(li<3?ri(gi):li>3?ri(ze,st,gi):ri(ze,st))||gi);return li>3&&gi&&Object.defineProperty(ze,st,gi),gi},wt=function(ut,ze){return function(st,_t){ze(st,_t,ut)}};class Ni{constructor(ze,st){this._contextMenuService=ze,this._clipboardService=st,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(ze){return ze.filter(st=>!this._zonesMap[String(st.id)])}clean(ze){this._zones.length>0&&ze.changeViewZones(st=>{for(let _t=0,ri=this._zones.length;_t<ri;_t++)st.removeZone(this._zones[_t])}),this._zones=[],this._zonesMap={},this._decorations=ze.deltaDecorations(this._decorations,[])}apply(ze,st,_t,ri){let li=ri?C.c.capture(ze):null;ze.changeViewZones(gi=>{for(let ki=0,Ri=this._zones.length;ki<Ri;ki++)gi.removeZone(this._zones[ki]);for(let ki=0,Ri=this.inlineDiffMargins.length;ki<Ri;ki++)this.inlineDiffMargins[ki].dispose();this._zones=[],this._zonesMap={},this.inlineDiffMargins=[];for(let ki=0,Ri=_t.zones.length;ki<Ri;ki++){let $i=_t.zones[ki];$i.suppressMouseDown=!0;let Hi=gi.addZone($i);this._zones.push(Hi),this._zonesMap[String(Hi)]=!0,_t.zones[ki].diff&&$i.marginDomNode&&($i.suppressMouseDown=!1,this.inlineDiffMargins.push(new De(Hi,$i.marginDomNode,ze,_t.zones[ki].diff,this._contextMenuService,this._clipboardService)))}}),li&&li.restore(ze),this._decorations=ze.deltaDecorations(this._decorations,_t.decorations),st&&st.setZones(_t.overviewZones)}}let pi=0,et=Object(ke.e)("diff-insert",ke.a.add),Wt=Object(ke.e)("diff-remove",ke.a.remove),Li=class ao extends W.a{constructor(ze,st,_t,ri,li,gi,ki,Ri,$i,Hi,yi){super(),this._editorProgressService=yi,this._onDidDispose=this._register(new ge.a),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new ge.a),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new ge.a),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=ri,this._codeEditorService=ki,this._contextKeyService=this._register(li.createScoped(ze)),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=Ri,this._notificationService=$i,this.id=++pi,this._state=0,this._updatingDiffProgress=null,this._domElement=ze,st=st||{},this._renderSideBySide=!0,st.renderSideBySide!==void 0&&(this._renderSideBySide=st.renderSideBySide),this._maxComputationTime=5e3,st.maxComputationTime!==void 0&&(this._maxComputationTime=st.maxComputationTime),this._ignoreTrimWhitespace=!0,st.ignoreTrimWhitespace!==void 0&&(this._ignoreTrimWhitespace=st.ignoreTrimWhitespace),this._renderIndicators=!0,st.renderIndicators!==void 0&&(this._renderIndicators=st.renderIndicators),this._originalIsEditable=!1,st.originalEditable!==void 0&&(this._originalIsEditable=Boolean(st.originalEditable)),this._originalCodeLens=!1,st.originalCodeLens!==void 0&&(this._originalCodeLens=Boolean(st.originalCodeLens)),this._modifiedCodeLens=!1,st.modifiedCodeLens!==void 0&&(this._modifiedCodeLens=Boolean(st.modifiedCodeLens)),this._updateDecorationsRunner=this._register(new E.d(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=ao._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(O.b)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(f.n(this._overviewDomElement,"mousedown",un=>{this.modifiedEditor.delegateVerticalScrollbarMouseDown(un)})),this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new Ni(Hi,_t),this._modifiedEditorState=new Ni(Hi,_t),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new At.a(this._containerDomElement,void 0,()=>this._onDidContainerSizeChanged())),st.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null;let kt=this._contextKeyService.createScoped(),Et=new Se.a;Et.set(q.b,kt);let si=gi.createChild(Et),Si=this._contextKeyService.createScoped(),Pi=new Se.a;Pi.set(q.b,Si);let Wi=gi.createChild(Pi);this.originalEditor=this._createLeftHandSideEditor(st,si,kt),this.modifiedEditor=this._createRightHandSideEditor(st,Wi,Si),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new Ce(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,st.enableSplitViewResizing!==void 0&&(this._enableSplitViewResizing=st.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new Oi(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vi(this._createDataSource(),this._enableSplitViewResizing)),this._register(Ri.onDidColorThemeChange(un=>{this._strategy&&this._strategy.applyColors(un)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=ao._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));let xn=T.d.getDiffEditorContributions();for(let un of xn)try{this._register(gi.createInstance(un.ctor,this))}catch(bn){Object(pt.e)(bn)}this._codeEditorService.addDiffEditor(this)}_setState(ze){this._state!==ze&&(this._state=ze,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(ze,st){let _t="monaco-diff-editor monaco-editor-background ";return st&&(_t+="side-by-side "),_t+=Object(se.f)(ze.type),_t}_recreateOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()}_createLeftHandSideEditor(ze,st,_t){let ri=this._createInnerEditor(st,this._originalDomNode,this._adjustOptionsForLeftHandSide(ze,this._originalIsEditable,this._originalCodeLens));this._register(ri.onDidScrollChange(gi=>{this._isHandlingScrollEvent||(gi.scrollTopChanged||gi.scrollLeftChanged||gi.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.modifiedEditor.setScrollPosition({scrollLeft:gi.scrollLeft,scrollTop:gi.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ri.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ri.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));let li=_t.createKey("isInDiffLeftEditor",void 0);return this._register(ri.onDidFocusEditorWidget(()=>li.set(!0))),this._register(ri.onDidBlurEditorWidget(()=>li.set(!1))),this._register(ri.onDidContentSizeChange(gi=>{let ki=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+ao.ONE_OVERVIEW_WIDTH,Ri=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ri,contentWidth:ki,contentHeightChanged:gi.contentHeightChanged,contentWidthChanged:gi.contentWidthChanged})})),ri}_createRightHandSideEditor(ze,st,_t){let ri=this._createInnerEditor(st,this._modifiedDomNode,this._adjustOptionsForRightHandSide(ze,this._modifiedCodeLens));this._register(ri.onDidScrollChange(gi=>{this._isHandlingScrollEvent||(gi.scrollTopChanged||gi.scrollLeftChanged||gi.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.originalEditor.setScrollPosition({scrollLeft:gi.scrollLeft,scrollTop:gi.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ri.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ri.onDidChangeConfiguration(gi=>{gi.hasChanged(36)&&ri.getModel()&&this._onViewZonesChanged()})),this._register(ri.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(ri.onDidChangeModelOptions(gi=>{gi.tabSize&&this._updateDecorationsRunner.schedule()}));let li=_t.createKey("isInDiffRightEditor",void 0);return this._register(ri.onDidFocusEditorWidget(()=>li.set(!0))),this._register(ri.onDidBlurEditorWidget(()=>li.set(!1))),this._register(ri.onDidContentSizeChange(gi=>{let ki=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+ao.ONE_OVERVIEW_WIDTH,Ri=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ri,contentWidth:ki,contentHeightChanged:gi.contentHeightChanged,contentWidthChanged:gi.contentWidthChanged})})),ri}_createInnerEditor(ze,st,_t){return ze.createInstance(P.a,st,_t,{})}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this.id}getEditorType(){return ht.a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this.originalEditor}getModifiedEditor(){return this.modifiedEditor}updateOptions(ze){let st=!1;ze.renderSideBySide!==void 0&&this._renderSideBySide!==ze.renderSideBySide&&(this._renderSideBySide=ze.renderSideBySide,st=!0),ze.maxComputationTime!==void 0&&(this._maxComputationTime=ze.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let _t=!1;ze.ignoreTrimWhitespace!==void 0&&this._ignoreTrimWhitespace!==ze.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=ze.ignoreTrimWhitespace,_t=!0),ze.renderIndicators!==void 0&&this._renderIndicators!==ze.renderIndicators&&(this._renderIndicators=ze.renderIndicators,_t=!0),_t&&this._beginUpdateDecorations(),ze.originalEditable!==void 0&&(this._originalIsEditable=Boolean(ze.originalEditable)),ze.originalCodeLens!==void 0&&(this._originalCodeLens=Boolean(ze.originalCodeLens)),ze.modifiedCodeLens!==void 0&&(this._modifiedCodeLens=Boolean(ze.modifiedCodeLens)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(ze,this._modifiedCodeLens)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(ze,this._originalIsEditable,this._originalCodeLens)),ze.enableSplitViewResizing!==void 0&&(this._enableSplitViewResizing=ze.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),st&&(this._renderSideBySide?this._setStrategy(new Oi(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vi(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=ao._getClassName(this._themeService.getColorTheme(),this._renderSideBySide))}getModel(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}}setModel(ze){if(ze&&(!ze.original||!ze.modified))throw new Error(ze.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(ze?ze.original:null),this.modifiedEditor.setModel(ze?ze.modified:null),this._updateDecorationsRunner.cancel(),ze&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),ze&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(ze){return this.modifiedEditor.getVisibleColumnFromPosition(ze)}getPosition(){return this.modifiedEditor.getPosition()}setPosition(ze){this.modifiedEditor.setPosition(ze)}revealLine(ze,st=0){this.modifiedEditor.revealLine(ze,st)}revealLineInCenter(ze,st=0){this.modifiedEditor.revealLineInCenter(ze,st)}revealLineInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealLineInCenterIfOutsideViewport(ze,st)}revealLineNearTop(ze,st=0){this.modifiedEditor.revealLineNearTop(ze,st)}revealPosition(ze,st=0){this.modifiedEditor.revealPosition(ze,st)}revealPositionInCenter(ze,st=0){this.modifiedEditor.revealPositionInCenter(ze,st)}revealPositionInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealPositionInCenterIfOutsideViewport(ze,st)}revealPositionNearTop(ze,st=0){this.modifiedEditor.revealPositionNearTop(ze,st)}getSelection(){return this.modifiedEditor.getSelection()}getSelections(){return this.modifiedEditor.getSelections()}setSelection(ze){this.modifiedEditor.setSelection(ze)}setSelections(ze){this.modifiedEditor.setSelections(ze)}revealLines(ze,st,_t=0){this.modifiedEditor.revealLines(ze,st,_t)}revealLinesInCenter(ze,st,_t=0){this.modifiedEditor.revealLinesInCenter(ze,st,_t)}revealLinesInCenterIfOutsideViewport(ze,st,_t=0){this.modifiedEditor.revealLinesInCenterIfOutsideViewport(ze,st,_t)}revealLinesNearTop(ze,st,_t=0){this.modifiedEditor.revealLinesNearTop(ze,st,_t)}revealRange(ze,st=0,_t=!1,ri=!0){this.modifiedEditor.revealRange(ze,st,_t,ri)}revealRangeInCenter(ze,st=0){this.modifiedEditor.revealRangeInCenter(ze,st)}revealRangeInCenterIfOutsideViewport(ze,st=0){this.modifiedEditor.revealRangeInCenterIfOutsideViewport(ze,st)}revealRangeNearTop(ze,st=0){this.modifiedEditor.revealRangeNearTop(ze,st)}revealRangeNearTopIfOutsideViewport(ze,st=0){this.modifiedEditor.revealRangeNearTopIfOutsideViewport(ze,st)}revealRangeAtTop(ze,st=0){this.modifiedEditor.revealRangeAtTop(ze,st)}getSupportedActions(){return this.modifiedEditor.getSupportedActions()}saveViewState(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}}restoreViewState(ze){if(ze.original&&ze.modified){let st=ze;this.originalEditor.restoreViewState(st.original),this.modifiedEditor.restoreViewState(st.modified)}}layout(ze){this._elementSizeObserver.observe(ze)}focus(){this.modifiedEditor.focus()}hasTextFocus(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()}trigger(ze,st,_t){this.modifiedEditor.trigger(ze,st,_t)}changeDecorations(ze){return this.modifiedEditor.changeDecorations(ze)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;let ze=this._elementSizeObserver.getHeight(),st=this._getReviewHeight(),_t=ao.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ao.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:ao.ONE_OVERVIEW_WIDTH,right:_t+ao.ONE_OVERVIEW_WIDTH,height:ze-st}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:ao.ONE_OVERVIEW_WIDTH,height:ze-st}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),ao.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(ze,st){return!ze&&!st||!(!ze||!st)&&ze.toString()===st.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;let ze=this.originalEditor.getModel(),st=this.modifiedEditor.getModel();if(!ze||!st)return;this._diffComputationToken++;let _t=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(ze.uri,st.uri)?this._editorWorkerService.computeDiff(ze.uri,st.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(ri=>{_t===this._diffComputationToken&&ze===this.originalEditor.getModel()&&st===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=ri,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},ri=>{_t===this._diffComputationToken&&ze===this.originalEditor.getModel()&&st===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):ao._equals(ze.uri,this._lastOriginalWarning)&&ao._equals(st.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=ze.uri,this._lastModifiedWarning=st.uri,this._notificationService.warn(h.a("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)}_updateDecorations(){if(!(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler))return;let ze=this._diffComputationResult?this._diffComputationResult.changes:[],st=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),_t=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),ri=this._strategy.getEditorsDiffDecorations(ze,this._ignoreTrimWhitespace,this._renderIndicators,st,_t,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,ri.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,ri.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(ze){let st=Q.c(ze||{});return st.inDiffEditor=!0,st.wordWrap="off",st.wordWrapMinified=!1,st.automaticLayout=!1,st.scrollbar=st.scrollbar||{},st.scrollbar.vertical="visible",st.folding=!1,st.codeLens=!1,st.fixedOverflowWidgets=!0,st.overflowWidgetsDomNode=ze.overflowWidgetsDomNode,st.minimap||(st.minimap={}),st.minimap.enabled=!1,st}_adjustOptionsForLeftHandSide(ze,st,_t){let ri=this._adjustOptionsForSubEditor(ze);return _t&&(ri.codeLens=!0),ri.readOnly=!st,ri.extraEditorClassName="original-in-monaco-diff-editor",ri}_adjustOptionsForRightHandSide(ze,st){let _t=this._adjustOptionsForSubEditor(ze);return st&&(_t.codeLens=!0),_t.revealHorizontalRightPadding=N.g.revealHorizontalRightPadding.defaultValue+ao.ENTIRE_DIFF_OVERVIEW_WIDTH,_t.scrollbar.verticalHasArrows=!1,_t.extraEditorClassName="modified-in-monaco-diff-editor",_t}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){let ze=this._elementSizeObserver.getWidth(),st=this._elementSizeObserver.getHeight(),_t=this._getReviewHeight(),ri=this._strategy.layout();this._originalDomNode.style.width=ri+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=ze-ri+"px",this._modifiedDomNode.style.left=ri+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=st-_t+"px",this._overviewDomElement.style.width=ao.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=ze-ao.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(ao.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:ri,height:st-_t}),this.modifiedEditor.layout({width:ze-ri-ao.ENTIRE_DIFF_OVERVIEW_WIDTH,height:st-_t}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(st-_t,ze,_t),this._layoutOverviewViewport()}_layoutOverviewViewport(){let ze=this._computeOverviewViewport();ze?(this._overviewViewportDomElement.setTop(ze.top),this._overviewViewportDomElement.setHeight(ze.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){let ze=this.modifiedEditor.getLayoutInfo();if(!ze)return null;let st=this.modifiedEditor.getScrollTop(),_t=this.modifiedEditor.getScrollHeight(),ri=Math.max(0,ze.height),li=Math.max(0,ri-0),gi=_t>0?li/_t:0;return{height:Math.max(0,Math.floor(ze.height*gi)),top:Math.floor(st*gi)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this.originalEditor,getModifiedEditor:()=>this.modifiedEditor}}_setStrategy(ze){this._strategy&&this._strategy.dispose(),this._strategy=ze,ze.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(ze,st){let _t=this._diffComputationResult?this._diffComputationResult.changes:[];if(_t.length===0||ze<st(_t[0]))return null;let ri=0,li=_t.length-1;for(;ri<li;){let gi=Math.floor((ri+li)/2),ki=st(_t[gi]),Ri=gi+1<=li?st(_t[gi+1]):1073741824;ze<ki?li=gi-1:ze>=Ri?ri=gi+1:(ri=gi,li=gi)}return _t[ri]}_getEquivalentLineForOriginalLineNumber(ze){let st=this._getLineChangeAtOrBeforeLineNumber(ze,Ri=>Ri.originalStartLineNumber);if(!st)return ze;let _t=st.originalStartLineNumber+(st.originalEndLineNumber>0?-1:0),ri=st.modifiedStartLineNumber+(st.modifiedEndLineNumber>0?-1:0),li=st.originalEndLineNumber>0?st.originalEndLineNumber-st.originalStartLineNumber+1:0,gi=st.modifiedEndLineNumber>0?st.modifiedEndLineNumber-st.modifiedStartLineNumber+1:0,ki=ze-_t;return ki<=li?ri+Math.min(ki,gi):ri+gi-li+ki}_getEquivalentLineForModifiedLineNumber(ze){let st=this._getLineChangeAtOrBeforeLineNumber(ze,Ri=>Ri.modifiedStartLineNumber);if(!st)return ze;let _t=st.originalStartLineNumber+(st.originalEndLineNumber>0?-1:0),ri=st.modifiedStartLineNumber+(st.modifiedEndLineNumber>0?-1:0),li=st.originalEndLineNumber>0?st.originalEndLineNumber-st.originalStartLineNumber+1:0,gi=st.modifiedEndLineNumber>0?st.modifiedEndLineNumber-st.modifiedStartLineNumber+1:0,ki=ze-ri;return ki<=gi?_t+Math.min(ki,li):_t+li-gi+ki}getDiffLineInformationForOriginal(ze){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(ze)}:null}getDiffLineInformationForModified(ze){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(ze)}:null}};Li.ONE_OVERVIEW_WIDTH=15,Li.ENTIRE_DIFF_OVERVIEW_WIDTH=30,Li.UPDATE_DIFF_DECORATIONS_DELAY=200,Li=_i([wt(2,$e.a),wt(3,$.a),wt(4,q.b),wt(5,J.a),wt(6,S.a),wt(7,se.c),wt(8,A.a),wt(9,ee.a),wt(10,it.a)],Li);class Ii extends W.a{constructor(ze){super(),this._dataSource=ze,this._insertColor=null,this._removeColor=null}applyColors(ze){let st=(ze.getColor(B.n)||B.j).transparent(2),_t=(ze.getColor(B.p)||B.k).transparent(2),ri=!st.equals(this._insertColor)||!_t.equals(this._removeColor);return this._insertColor=st,this._removeColor=_t,ri}getEditorsDiffDecorations(ze,st,_t,ri,li,gi,ki){li=li.sort((yi,kt)=>yi.afterLineNumber-kt.afterLineNumber),ri=ri.sort((yi,kt)=>yi.afterLineNumber-kt.afterLineNumber);let Ri=this._getViewZones(ze,ri,li,gi,ki,_t),$i=this._getOriginalEditorDecorations(ze,st,_t,gi,ki),Hi=this._getModifiedEditorDecorations(ze,st,_t,gi,ki);return{original:{decorations:$i.decorations,overviewZones:$i.overviewZones,zones:Ri.original},modified:{decorations:Hi.decorations,overviewZones:Hi.overviewZones,zones:Ri.modified}}}}class Ai{constructor(ze){this._source=ze,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class Zi{constructor(ze,st,_t,ri,li){this.lineChanges=ze,this.originalForeignVZ=st,this.originalLineHeight=_t,this.modifiedForeignVZ=ri,this.modifiedLineHeight=li}getViewZones(){let ze=[],st=[],_t=0,ri=0,li=0,gi=0,ki=0,Ri=0,$i=(Et,si)=>Et.afterLineNumber-si.afterLineNumber,Hi=(Et,si)=>{if(si.domNode===null&&Et.length>0){let Si=Et[Et.length-1];if(Si.afterLineNumber===si.afterLineNumber&&Si.domNode===null)return void(Si.heightInLines+=si.heightInLines)}Et.push(si)},yi=new Ai(this.modifiedForeignVZ),kt=new Ai(this.originalForeignVZ);for(let Et=0,si=this.lineChanges.length;Et<=si;Et++){let Si=Et<si?this.lineChanges[Et]:null;Si!==null?(li=Si.originalStartLineNumber+(Si.originalEndLineNumber>0?-1:0),gi=Si.modifiedStartLineNumber+(Si.modifiedEndLineNumber>0?-1:0),ri=Si.originalEndLineNumber>0?Si.originalEndLineNumber-Si.originalStartLineNumber+1:0,_t=Si.modifiedEndLineNumber>0?Si.modifiedEndLineNumber-Si.modifiedStartLineNumber+1:0,ki=Math.max(Si.originalStartLineNumber,Si.originalEndLineNumber),Ri=Math.max(Si.modifiedStartLineNumber,Si.modifiedEndLineNumber)):(li+=1e7+ri,gi+=1e7+_t,ki=li,Ri=gi);let Pi=[],Wi=[];for(;yi.current&&yi.current.afterLineNumber<=Ri;){let bn;bn=yi.current.afterLineNumber<=gi?li-gi+yi.current.afterLineNumber:ki;let Fn=null;Si&&Si.modifiedStartLineNumber<=yi.current.afterLineNumber&&yi.current.afterLineNumber<=Si.modifiedEndLineNumber&&(Fn=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),Pi.push({afterLineNumber:bn,heightInLines:yi.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:Fn}),yi.advance()}for(;kt.current&&kt.current.afterLineNumber<=ki;){let bn;bn=kt.current.afterLineNumber<=li?gi-li+kt.current.afterLineNumber:Ri,Wi.push({afterLineNumber:bn,heightInLines:kt.current.height/this.originalLineHeight,domNode:null}),kt.advance()}if(Si!==null&&vt(Si)){let bn=this._produceOriginalFromDiff(Si,ri,_t);bn&&Pi.push(bn)}if(Si!==null&&Ue(Si)){let bn=this._produceModifiedFromDiff(Si,ri,_t);bn&&Wi.push(bn)}let xn=0,un=0;for(Pi=Pi.sort($i),Wi=Wi.sort($i);xn<Pi.length&&un<Wi.length;){let bn=Pi[xn],Fn=Wi[un],Mn=bn.afterLineNumber-li,Nn=Fn.afterLineNumber-gi;Mn<Nn?(Hi(ze,bn),xn++):Nn<Mn?(Hi(st,Fn),un++):bn.shouldNotShrink?(Hi(ze,bn),xn++):Fn.shouldNotShrink?(Hi(st,Fn),un++):bn.heightInLines>=Fn.heightInLines?(bn.heightInLines-=Fn.heightInLines,un++):(Fn.heightInLines-=bn.heightInLines,xn++)}for(;xn<Pi.length;)Hi(ze,Pi[xn]),xn++;for(;un<Wi.length;)Hi(st,Wi[un]),un++}return{original:Zi._ensureDomNodes(ze),modified:Zi._ensureDomNodes(st)}}static _ensureDomNodes(ze){return ze.map(st=>(st.domNode||(st.domNode=function(){let _t=document.createElement("div");return _t.className="diagonal-fill",_t}()),st))}}function Bi(ut,ze,st,_t,ri){return{range:new ct.a(ut,ze,st,_t),options:ri}}let Lt={charDelete:fe.a.register({className:"char-delete"}),charDeleteWholeLine:fe.a.register({className:"char-delete",isWholeLine:!0}),charInsert:fe.a.register({className:"char-insert"}),charInsertWholeLine:fe.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:fe.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:fe.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign "+et.classNames,marginClassName:"line-insert",isWholeLine:!0}),lineDelete:fe.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:fe.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign "+Wt.classNames,marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:fe.a.register({marginClassName:"line-delete"})};class Oi extends Ii{constructor(ze,st){super(ze),this._disableSash=st===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new H.a(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this.onSashDragStart()),this._sash.onDidChange(_t=>this.onSashDrag(_t)),this._sash.onDidEnd(()=>this.onSashDragEnd()),this._sash.onDidReset(()=>this.onSashReset())}setEnableSplitViewResizing(ze){let st=ze===!1;this._disableSash!==st&&(this._disableSash=st,this._sash.state=this._disableSash?0:3)}layout(ze=this._sashRatio){let st=this._dataSource.getWidth()-Li.ENTIRE_DIFF_OVERVIEW_WIDTH,_t=Math.floor((ze||.5)*st),ri=Math.floor(.5*st);return _t=this._disableSash?ri:_t||ri,st>2*Oi.MINIMUM_EDITOR_WIDTH?(_t<Oi.MINIMUM_EDITOR_WIDTH&&(_t=Oi.MINIMUM_EDITOR_WIDTH),_t>st-Oi.MINIMUM_EDITOR_WIDTH&&(_t=st-Oi.MINIMUM_EDITOR_WIDTH)):_t=ri,this._sashPosition!==_t&&(this._sashPosition=_t,this._sash.layout()),this._sashPosition}onSashDragStart(){this._startSashPosition=this._sashPosition}onSashDrag(ze){let st=this._dataSource.getWidth()-Li.ENTIRE_DIFF_OVERVIEW_WIDTH,_t=this.layout((this._startSashPosition+(ze.currentX-ze.startX))/st);this._sashRatio=_t/st,this._dataSource.relayoutEditors()}onSashDragEnd(){this._sash.layout()}onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(ze){return 0}getVerticalSashLeft(ze){return this._sashPosition}getVerticalSashHeight(ze){return this._dataSource.getHeight()}_getViewZones(ze,st,_t,ri,li){return new gt(ze,st,ri.getOption(51),_t,li.getOption(51)).getViewZones()}_getOriginalEditorDecorations(ze,st,_t,ri,li){let gi=String(this._removeColor),ki={decorations:[],overviewZones:[]},Ri=ri.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(Ue(yi)&&(ki.decorations.push({range:new ct.a(yi.originalStartLineNumber,1,yi.originalEndLineNumber,1073741824),options:_t?Lt.lineDeleteWithSign:Lt.lineDelete}),vt(yi)&&yi.charChanges||ki.decorations.push(Bi(yi.originalStartLineNumber,1,yi.originalEndLineNumber,1073741824,Lt.charDeleteWholeLine)),ki.overviewZones.push(new G.a(yi.originalStartLineNumber,yi.originalEndLineNumber,gi)),yi.charChanges))for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(Ue(si))if(st)for(let Si=si.originalStartLineNumber;Si<=si.originalEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.originalStartLineNumber?si.originalStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.originalEndLineNumber?si.originalEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charDelete))}else ki.decorations.push(Bi(si.originalStartLineNumber,si.originalStartColumn,si.originalEndLineNumber,si.originalEndColumn,Lt.charDelete))}}return ki}_getModifiedEditorDecorations(ze,st,_t,ri,li){let gi=String(this._insertColor),ki={decorations:[],overviewZones:[]},Ri=li.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(vt(yi)&&(ki.decorations.push({range:new ct.a(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824),options:_t?Lt.lineInsertWithSign:Lt.lineInsert}),Ue(yi)&&yi.charChanges||ki.decorations.push(Bi(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824,Lt.charInsertWholeLine)),ki.overviewZones.push(new G.a(yi.modifiedStartLineNumber,yi.modifiedEndLineNumber,gi)),yi.charChanges))for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(vt(si))if(st)for(let Si=si.modifiedStartLineNumber;Si<=si.modifiedEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.modifiedStartLineNumber?si.modifiedStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.modifiedEndLineNumber?si.modifiedEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charInsert))}else ki.decorations.push(Bi(si.modifiedStartLineNumber,si.modifiedStartColumn,si.modifiedEndLineNumber,si.modifiedEndColumn,Lt.charInsert))}}return ki}}Oi.MINIMUM_EDITOR_WIDTH=100;class gt extends Zi{constructor(ze,st,_t,ri,li){super(ze,st,_t,ri,li)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(ze,st,_t){return _t>st?{afterLineNumber:Math.max(ze.originalStartLineNumber,ze.originalEndLineNumber),heightInLines:_t-st,domNode:null}:null}_produceModifiedFromDiff(ze,st,_t){return st>_t?{afterLineNumber:Math.max(ze.modifiedStartLineNumber,ze.modifiedEndLineNumber),heightInLines:st-_t,domNode:null}:null}}class vi extends Ii{constructor(ze,st){super(ze),this.decorationsLeft=ze.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(ze.getOriginalEditor().onDidLayoutChange(_t=>{this.decorationsLeft!==_t.decorationsLeft&&(this.decorationsLeft=_t.decorationsLeft,ze.relayoutEditors())}))}setEnableSplitViewResizing(ze){}_getViewZones(ze,st,_t,ri,li,gi){return new Rt(ze,st,_t,ri,li,gi).getViewZones()}_getOriginalEditorDecorations(ze,st,_t,ri,li){let gi=String(this._removeColor),ki={decorations:[],overviewZones:[]};for(let Ri=0,$i=ze.length;Ri<$i;Ri++){let Hi=ze[Ri];Ue(Hi)&&(ki.decorations.push({range:new ct.a(Hi.originalStartLineNumber,1,Hi.originalEndLineNumber,1073741824),options:Lt.lineDeleteMargin}),ki.overviewZones.push(new G.a(Hi.originalStartLineNumber,Hi.originalEndLineNumber,gi)))}return ki}_getModifiedEditorDecorations(ze,st,_t,ri,li){let gi=String(this._insertColor),ki={decorations:[],overviewZones:[]},Ri=li.getModel();for(let $i=0,Hi=ze.length;$i<Hi;$i++){let yi=ze[$i];if(vt(yi))if(ki.decorations.push({range:new ct.a(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824),options:_t?Lt.lineInsertWithSign:Lt.lineInsert}),ki.overviewZones.push(new G.a(yi.modifiedStartLineNumber,yi.modifiedEndLineNumber,gi)),yi.charChanges)for(let kt=0,Et=yi.charChanges.length;kt<Et;kt++){let si=yi.charChanges[kt];if(vt(si))if(st)for(let Si=si.modifiedStartLineNumber;Si<=si.modifiedEndLineNumber;Si++){let Pi,Wi;Pi=Si===si.modifiedStartLineNumber?si.modifiedStartColumn:Ri.getLineFirstNonWhitespaceColumn(Si),Wi=Si===si.modifiedEndLineNumber?si.modifiedEndColumn:Ri.getLineLastNonWhitespaceColumn(Si),ki.decorations.push(Bi(Si,Pi,Si,Wi,Lt.charInsert))}else ki.decorations.push(Bi(si.modifiedStartLineNumber,si.modifiedStartColumn,si.modifiedEndLineNumber,si.modifiedEndColumn,Lt.charInsert))}else ki.decorations.push(Bi(yi.modifiedStartLineNumber,1,yi.modifiedEndLineNumber,1073741824,Lt.charInsertWholeLine))}return ki}layout(){return Math.max(5,this.decorationsLeft)}}class Rt extends Zi{constructor(ze,st,_t,ri,li,gi){super(ze,st,ri.getOption(51),_t,li.getOption(51)),this.originalModel=ri.getModel(),this.modifiedEditorOptions=li.getOptions(),this.modifiedEditorTabSize=li.getModel().getOptions().tabSize,this.renderIndicators=gi}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){let ze=document.createElement("div");return ze.className="inline-added-margin-view-zone",ze}_produceOriginalFromDiff(ze,st,_t){let ri=document.createElement("div");return ri.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(ze.originalStartLineNumber,ze.originalEndLineNumber),heightInLines:_t,domNode:document.createElement("div"),marginDomNode:ri}}_produceModifiedFromDiff(ze,st,_t){let ri=[];if(ze.charChanges)for(let Pi=0,Wi=ze.charChanges.length;Pi<Wi;Pi++){let xn=ze.charChanges[Pi];Ue(xn)&&ri.push(new U.a(new ct.a(xn.originalStartLineNumber,xn.originalStartColumn,xn.originalEndLineNumber,xn.originalEndColumn),"char-delete",0))}let li=Object(Ye.a)(1e4),gi=[],ki=this.modifiedEditorOptions.get(117),Ri=this.modifiedEditorOptions.get(36),$i=ki.decorationsWidth,Hi=this.modifiedEditorOptions.get(51),yi=Ri.typicalHalfwidthCharacterWidth,kt=0,Et=[];for(let Pi=ze.originalStartLineNumber;Pi<=ze.originalEndLineNumber;Pi++)if(kt=Math.max(kt,this._renderOriginalLine(Pi-ze.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,Pi,ri,li)),Et.push(this.originalModel.getLineContent(Pi)),this.renderIndicators){let Wi=Pi-ze.originalStartLineNumber;gi=gi.concat([`<div class="delete-sign ${Wt.classNames}" style="position:absolute;top:${Wi*Hi}px;width:${$i}px;height:${Hi}px;right:0;"></div>`])}kt+=this.modifiedEditorOptions.get(85);let si=document.createElement("div");si.className="view-lines line-delete "+Nt.a,si.innerHTML=li.build(),y.a.applyFontInfoSlow(si,Ri);let Si=document.createElement("div");return Si.className="inline-deleted-margin-view-zone",Si.innerHTML=gi.join(""),y.a.applyFontInfoSlow(Si,Ri),{shouldNotShrink:!0,afterLineNumber:ze.modifiedEndLineNumber===0?ze.modifiedStartLineNumber:ze.modifiedStartLineNumber-1,heightInLines:st,minWidthInPx:kt*yi,domNode:si,marginDomNode:Si,diff:{originalStartLineNumber:ze.originalStartLineNumber,originalEndLineNumber:ze.originalEndLineNumber,modifiedStartLineNumber:ze.modifiedStartLineNumber,modifiedEndLineNumber:ze.modifiedEndLineNumber,originalContent:Et}}}_renderOriginalLine(ze,st,_t,ri,li,gi,ki){let Ri=st.getLineTokens(li),$i=Ri.getLineContent(),Hi=_t.get(36),yi=z.a.filter(gi,li,1,$i.length+1);ki.appendASCIIString('<div class="view-line'),gi.length===0&&ki.appendASCIIString(" char-delete"),ki.appendASCIIString('" style="top:'),ki.appendASCIIString(String(ze*_t.get(51))),ki.appendASCIIString('px;width:1000000px;">');let kt=U.d.isBasicASCII($i,st.mightContainNonBasicASCII()),Et=U.d.containsRTL($i,kt,st.mightContainRTL()),si=Object(ie.d)(new ie.c(Hi.isMonospace&&!_t.get(24),Hi.canUseHalfwidthRightwardsArrow,$i,!1,kt,Et,0,Ri,yi,ri,0,Hi.spaceWidth,Hi.middotWidth,Hi.wsmiddotWidth,_t.get(95),_t.get(80),_t.get(74),_t.get(37)!==N.e.OFF,null),ki);ki.appendASCIIString("</div>");let Si=si.characterMapping.getAbsoluteOffsets();return Si.length>0?Si[Si.length-1]:0}}function vt(ut){return ut.modifiedEndLineNumber>0}function Ue(ut){return ut.originalEndLineNumber>0}Object(se.g)((ut,ze)=>{let st=ut.getColor(B.n);st&&(ze.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${st}; }`),ze.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${st}; }`),ze.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${st}; }`));let _t=ut.getColor(B.p);_t&&(ze.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${_t}; }`),ze.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${_t}; }`),ze.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${_t}; }`));let ri=ut.getColor(B.o);ri&&ze.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${ut.type==="hc"?"dashed":"solid"} ${ri}; }`);let li=ut.getColor(B.q);li&&ze.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${ut.type==="hc"?"dashed":"solid"} ${li}; }`);let gi=ut.getColor(B.ic);gi&&ze.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${gi}; }`);let ki=ut.getColor(B.l);ki&&ze.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${ki}; }`);let Ri=ut.getColor(B.kc);Ri&&ze.addRule(` .monaco-diff-editor .diffViewport { background: ${Ri}; } @@ -1094,24 +1094,24 @@ ${Object(zn.b)(ks)} ); background-size: 8px 8px; } - `)})},function(Ie,w,o){Ie.exports=function(){"use strict";function h(gt,vi){for(var Rt=0;Rt<vi.length;Rt++){var vt=vi[Rt];vt.enumerable=vt.enumerable||!1,vt.configurable=!0,"value"in vt&&(vt.writable=!0),Object.defineProperty(gt,vt.key,vt)}}function f(gt,vi){(vi==null||vi>gt.length)&&(vi=gt.length);for(var Rt=0,vt=new Array(vi);Rt<vi;Rt++)vt[Rt]=gt[Rt];return vt}function D(gt,vi){var Rt;if(typeof Symbol=="undefined"||gt[Symbol.iterator]==null){if(Array.isArray(gt)||(Rt=function(Ue,ut){if(Ue){if(typeof Ue=="string")return f(Ue,ut);var ze=Object.prototype.toString.call(Ue).slice(8,-1);return ze==="Object"&&Ue.constructor&&(ze=Ue.constructor.name),ze==="Map"||ze==="Set"?Array.from(Ue):ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze)?f(Ue,ut):void 0}}(gt))||vi&>&&typeof gt.length=="number"){Rt&&(gt=Rt);var vt=0;return function(){return vt>=gt.length?{done:!0}:{done:!1,value:gt[vt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. + `)})},function(Ie,w,r){Ie.exports=function(){"use strict";function h(gt,vi){for(var Rt=0;Rt<vi.length;Rt++){var vt=vi[Rt];vt.enumerable=vt.enumerable||!1,vt.configurable=!0,"value"in vt&&(vt.writable=!0),Object.defineProperty(gt,vt.key,vt)}}function f(gt,vi){(vi==null||vi>gt.length)&&(vi=gt.length);for(var Rt=0,vt=new Array(vi);Rt<vi;Rt++)vt[Rt]=gt[Rt];return vt}function O(gt,vi){var Rt;if(typeof Symbol=="undefined"||gt[Symbol.iterator]==null){if(Array.isArray(gt)||(Rt=function(Ue,ut){if(Ue){if(typeof Ue=="string")return f(Ue,ut);var ze=Object.prototype.toString.call(Ue).slice(8,-1);return ze==="Object"&&Ue.constructor&&(ze=Ue.constructor.name),ze==="Map"||ze==="Set"?Array.from(Ue):ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze)?f(Ue,ut):void 0}}(gt))||vi&>&&typeof gt.length=="number"){Rt&&(gt=Rt);var vt=0;return function(){return vt>=gt.length?{done:!0}:{done:!1,value:gt[vt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(Rt=gt[Symbol.iterator]()).next.bind(Rt)}var H=function(gt,vi){return gt(vi={exports:{}},vi.exports),vi.exports}(function(gt){function vi(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}gt.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:vi,changeDefaults:function(Rt){gt.exports.defaults=Rt}}}),E=(H.defaults,H.getDefaults,H.changeDefaults,/[&<>"']/),ge=/[&<>"']/g,W=/[<>"']|&(?!#?\w+;)/,Q=/[<>"']|&(?!#?\w+;)/g,y={"&":"&","<":"<",">":">",'"':""","'":"'"},C=function(gt){return y[gt]},S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function P(gt){return gt.replace(S,function(vi,Rt){return(Rt=Rt.toLowerCase())==="colon"?":":Rt.charAt(0)==="#"?Rt.charAt(1)==="x"?String.fromCharCode(parseInt(Rt.substring(2),16)):String.fromCharCode(+Rt.substring(1)):""})}var V=/(^|[^\[])\^/g,k=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,T={},N=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(gt,vi){T[" "+gt]||(N.test(gt)?T[" "+gt]=gt+"/":T[" "+gt]=ie(gt,"/",!0));var Rt=(gt=T[" "+gt]).indexOf(":")===-1;return vi.substring(0,2)==="//"?Rt?vi:gt.replace(b,"$1")+vi:vi.charAt(0)==="/"?Rt?vi:gt.replace(g,"$1")+vi:gt+vi}function ie(gt,vi,Rt){var vt=gt.length;if(vt===0)return"";for(var Ue=0;Ue<vt;){var ut=gt.charAt(vt-Ue-1);if(ut!==vi||Rt){if(ut===vi||!Rt)break;Ue++}else Ue++}return gt.substr(0,vt-Ue)}var U=function(gt,vi){if(vi){if(E.test(gt))return gt.replace(ge,C)}else if(W.test(gt))return gt.replace(Q,C);return gt},q=P,B=function(gt,vi){gt=gt.source||gt,vi=vi||"";var Rt={replace:function(vt,Ue){return Ue=(Ue=Ue.source||Ue).replace(V,"$1"),gt=gt.replace(vt,Ue),Rt},getRegex:function(){return new RegExp(gt,vi)}};return Rt},se=function(gt,vi,Rt){if(gt){var vt;try{vt=decodeURIComponent(P(Rt)).replace(k,"").toLowerCase()}catch(Ue){return null}if(vt.indexOf("javascript:")===0||vt.indexOf("vbscript:")===0||vt.indexOf("data:")===0)return null}vi&&!l.test(Rt)&&(Rt=j(vi,Rt));try{Rt=encodeURI(Rt).replace(/%25/g,"%")}catch(Ue){return null}return Rt},ke={exec:function(){}},xe=function(gt){for(var vi,Rt,vt=1;vt<arguments.length;vt++)for(Rt in vi=arguments[vt])Object.prototype.hasOwnProperty.call(vi,Rt)&&(gt[Rt]=vi[Rt]);return gt},Y=function(gt,vi){var Rt=gt.replace(/\|/g,function(Ue,ut,ze){for(var st=!1,_t=ut;--_t>=0&&ze[_t]==="\\";)st=!st;return st?"|":" |"}).split(/ \|/),vt=0;if(Rt.length>vi)Rt.splice(vi);else for(;Rt.length<vi;)Rt.push("");for(;vt<Rt.length;vt++)Rt[vt]=Rt[vt].trim().replace(/\\\|/g,"|");return Rt},Z=ie,te=function(gt,vi){if(gt.indexOf(vi[1])===-1)return-1;for(var Rt=gt.length,vt=0,Ue=0;Ue<Rt;Ue++)if(gt[Ue]==="\\")Ue++;else if(gt[Ue]===vi[0])vt++;else if(gt[Ue]===vi[1]&&--vt<0)return Ue;return-1},he=function(gt){gt&>.sanitize&>.silent},Ce=H.defaults,Ae=Z,L=Y,nt=U,ct=te;function Ye(gt,vi,Rt){var vt=vi.href,Ue=vi.title?nt(vi.title):null,ut=gt[1].replace(/\\([\[\]])/g,"$1");return gt[0].charAt(0)!=="!"?{type:"link",raw:Rt,href:vt,title:Ue,text:ut}:{type:"image",raw:Rt,href:vt,title:Ue,text:nt(ut)}}var ht=function(){function gt(Rt){this.options=Rt||Ce}var vi=gt.prototype;return vi.space=function(Rt){var vt=this.rules.block.newline.exec(Rt);if(vt)return vt[0].length>1?{type:"space",raw:vt[0]}:{raw:` `}},vi.code=function(Rt,vt){var Ue=this.rules.block.code.exec(Rt);if(Ue){var ut=vt[vt.length-1];if(ut&&ut.type==="paragraph")return{raw:Ue[0],text:Ue[0].trimRight()};var ze=Ue[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ue[0],codeBlockStyle:"indented",text:this.options.pedantic?ze:Ae(ze,` -`)}}},vi.fences=function(Rt){var vt=this.rules.block.fences.exec(Rt);if(vt){var Ue=vt[0],ut=function(ze,st){var _t=ze.match(/^(\s+)(?:```)/);if(_t===null)return st;var oi=_t[1];return st.split(` -`).map(function(li){var gi=li.match(/^\s+/);return gi===null?li:gi[0].length>=oi.length?li.slice(oi.length):li}).join(` +`)}}},vi.fences=function(Rt){var vt=this.rules.block.fences.exec(Rt);if(vt){var Ue=vt[0],ut=function(ze,st){var _t=ze.match(/^(\s+)(?:```)/);if(_t===null)return st;var ri=_t[1];return st.split(` +`).map(function(li){var gi=li.match(/^\s+/);return gi===null?li:gi[0].length>=ri.length?li.slice(ri.length):li}).join(` `)}(Ue,vt[3]||"");return{type:"code",raw:Ue,lang:vt[2]?vt[2].trim():vt[2],text:ut}}},vi.heading=function(Rt){var vt=this.rules.block.heading.exec(Rt);if(vt)return{type:"heading",raw:vt[0],depth:vt[1].length,text:vt[2]}},vi.nptable=function(Rt){var vt=this.rules.block.nptable.exec(Rt);if(vt){var Ue={type:"table",header:L(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(` -`):[],raw:vt[0]};if(Ue.header.length===Ue.align.length){var ut,ze=Ue.align.length;for(ut=0;ut<ze;ut++)/^ *-+: *$/.test(Ue.align[ut])?Ue.align[ut]="right":/^ *:-+: *$/.test(Ue.align[ut])?Ue.align[ut]="center":/^ *:-+ *$/.test(Ue.align[ut])?Ue.align[ut]="left":Ue.align[ut]=null;for(ze=Ue.cells.length,ut=0;ut<ze;ut++)Ue.cells[ut]=L(Ue.cells[ut],Ue.header.length);return Ue}}},vi.hr=function(Rt){var vt=this.rules.block.hr.exec(Rt);if(vt)return{type:"hr",raw:vt[0]}},vi.blockquote=function(Rt){var vt=this.rules.block.blockquote.exec(Rt);if(vt){var Ue=vt[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:vt[0],text:Ue}}},vi.list=function(Rt){var vt=this.rules.block.list.exec(Rt);if(vt){for(var Ue,ut,ze,st,_t,oi,li,gi=vt[0],ki=vt[2],Ri=ki.length>1,$i=ki[ki.length-1]===")",Hi={type:"list",raw:gi,ordered:Ri,start:Ri?+ki.slice(0,-1):"",loose:!1,items:[]},yi=vt[0].match(this.rules.block.item),kt=!1,Et=yi.length,si=0;si<Et;si++)gi=Ue=yi[si],ut=Ue.length,~(Ue=Ue.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf(` +`):[],raw:vt[0]};if(Ue.header.length===Ue.align.length){var ut,ze=Ue.align.length;for(ut=0;ut<ze;ut++)/^ *-+: *$/.test(Ue.align[ut])?Ue.align[ut]="right":/^ *:-+: *$/.test(Ue.align[ut])?Ue.align[ut]="center":/^ *:-+ *$/.test(Ue.align[ut])?Ue.align[ut]="left":Ue.align[ut]=null;for(ze=Ue.cells.length,ut=0;ut<ze;ut++)Ue.cells[ut]=L(Ue.cells[ut],Ue.header.length);return Ue}}},vi.hr=function(Rt){var vt=this.rules.block.hr.exec(Rt);if(vt)return{type:"hr",raw:vt[0]}},vi.blockquote=function(Rt){var vt=this.rules.block.blockquote.exec(Rt);if(vt){var Ue=vt[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:vt[0],text:Ue}}},vi.list=function(Rt){var vt=this.rules.block.list.exec(Rt);if(vt){for(var Ue,ut,ze,st,_t,ri,li,gi=vt[0],ki=vt[2],Ri=ki.length>1,$i=ki[ki.length-1]===")",Hi={type:"list",raw:gi,ordered:Ri,start:Ri?+ki.slice(0,-1):"",loose:!1,items:[]},yi=vt[0].match(this.rules.block.item),kt=!1,Et=yi.length,si=0;si<Et;si++)gi=Ue=yi[si],ut=Ue.length,~(Ue=Ue.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf(` `)&&(ut-=Ue.length,Ue=this.options.pedantic?Ue.replace(/^ {1,4}/gm,""):Ue.replace(new RegExp("^ {1,"+ut+"}","gm"),"")),si!==Et-1&&(ze=this.rules.block.bullet.exec(yi[si+1])[0],(Ri?ze.length===1||!$i&&ze[ze.length-1]===")":ze.length>1||this.options.smartLists&&ze!==ki)&&(st=yi.slice(si+1).join(` `),Hi.raw=Hi.raw.substring(0,Hi.raw.length-st.length),si=Et-1)),_t=kt||/\n\n(?!\s*$)/.test(Ue),si!==Et-1&&(kt=Ue.charAt(Ue.length-1)===` -`,_t||(_t=kt)),_t&&(Hi.loose=!0),li=void 0,(oi=/^\[[ xX]\] /.test(Ue))&&(li=Ue[1]!==" ",Ue=Ue.replace(/^\[[ xX]\] +/,"")),Hi.items.push({type:"list_item",raw:gi,task:oi,checked:li,loose:_t,text:Ue});return Hi}},vi.html=function(Rt){var vt=this.rules.block.html.exec(Rt);if(vt)return{type:this.options.sanitize?"paragraph":"html",raw:vt[0],pre:!this.options.sanitizer&&(vt[1]==="pre"||vt[1]==="script"||vt[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(vt[0]):nt(vt[0]):vt[0]}},vi.def=function(Rt){var vt=this.rules.block.def.exec(Rt);if(vt)return vt[3]&&(vt[3]=vt[3].substring(1,vt[3].length-1)),{tag:vt[1].toLowerCase().replace(/\s+/g," "),raw:vt[0],href:vt[2],title:vt[3]}},vi.table=function(Rt){var vt=this.rules.block.table.exec(Rt);if(vt){var Ue={type:"table",header:L(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(` +`,_t||(_t=kt)),_t&&(Hi.loose=!0),li=void 0,(ri=/^\[[ xX]\] /.test(Ue))&&(li=Ue[1]!==" ",Ue=Ue.replace(/^\[[ xX]\] +/,"")),Hi.items.push({type:"list_item",raw:gi,task:ri,checked:li,loose:_t,text:Ue});return Hi}},vi.html=function(Rt){var vt=this.rules.block.html.exec(Rt);if(vt)return{type:this.options.sanitize?"paragraph":"html",raw:vt[0],pre:!this.options.sanitizer&&(vt[1]==="pre"||vt[1]==="script"||vt[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(vt[0]):nt(vt[0]):vt[0]}},vi.def=function(Rt){var vt=this.rules.block.def.exec(Rt);if(vt)return vt[3]&&(vt[3]=vt[3].substring(1,vt[3].length-1)),{tag:vt[1].toLowerCase().replace(/\s+/g," "),raw:vt[0],href:vt[2],title:vt[3]}},vi.table=function(Rt){var vt=this.rules.block.table.exec(Rt);if(vt){var Ue={type:"table",header:L(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(` `):[]};if(Ue.header.length===Ue.align.length){Ue.raw=vt[0];var ut,ze=Ue.align.length;for(ut=0;ut<ze;ut++)/^ *-+: *$/.test(Ue.align[ut])?Ue.align[ut]="right":/^ *:-+: *$/.test(Ue.align[ut])?Ue.align[ut]="center":/^ *:-+ *$/.test(Ue.align[ut])?Ue.align[ut]="left":Ue.align[ut]=null;for(ze=Ue.cells.length,ut=0;ut<ze;ut++)Ue.cells[ut]=L(Ue.cells[ut].replace(/^ *\| *| *\| *$/g,""),Ue.header.length);return Ue}}},vi.lheading=function(Rt){var vt=this.rules.block.lheading.exec(Rt);if(vt)return{type:"heading",raw:vt[0],depth:vt[2].charAt(0)==="="?1:2,text:vt[1]}},vi.paragraph=function(Rt){var vt=this.rules.block.paragraph.exec(Rt);if(vt)return{type:"paragraph",raw:vt[0],text:vt[1].charAt(vt[1].length-1)===` `?vt[1].slice(0,-1):vt[1]}},vi.text=function(Rt,vt){var Ue=this.rules.block.text.exec(Rt);if(Ue){var ut=vt[vt.length-1];return ut&&ut.type==="text"?{raw:Ue[0],text:Ue[0]}:{type:"text",raw:Ue[0],text:Ue[0]}}},vi.escape=function(Rt){var vt=this.rules.inline.escape.exec(Rt);if(vt)return{type:"escape",raw:vt[0],text:nt(vt[1])}},vi.tag=function(Rt,vt,Ue){var ut=this.rules.inline.tag.exec(Rt);if(ut)return!vt&&/^<a /i.test(ut[0])?vt=!0:vt&&/^<\/a>/i.test(ut[0])&&(vt=!1),!Ue&&/^<(pre|code|kbd|script)(\s|>)/i.test(ut[0])?Ue=!0:Ue&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ut[0])&&(Ue=!1),{type:this.options.sanitize?"text":"html",raw:ut[0],inLink:vt,inRawBlock:Ue,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ut[0]):nt(ut[0]):ut[0]}},vi.link=function(Rt){var vt=this.rules.inline.link.exec(Rt);if(vt){var Ue=ct(vt[2],"()");if(Ue>-1){var ut=(vt[0].indexOf("!")===0?5:4)+vt[1].length+Ue;vt[2]=vt[2].substring(0,Ue),vt[0]=vt[0].substring(0,ut).trim(),vt[3]=""}var ze=vt[2],st="";if(this.options.pedantic){var _t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ze);_t?(ze=_t[1],st=_t[3]):st=""}else st=vt[3]?vt[3].slice(1,-1):"";return Ye(vt,{href:(ze=ze.trim().replace(/^<([\s\S]*)>$/,"$1"))?ze.replace(this.rules.inline._escapes,"$1"):ze,title:st&&st.replace(this.rules.inline._escapes,"$1")},vt[0])}},vi.reflink=function(Rt,vt){var Ue;if((Ue=this.rules.inline.reflink.exec(Rt))||(Ue=this.rules.inline.nolink.exec(Rt))){var ut=(Ue[2]||Ue[1]).replace(/\s+/g," ");if(!(ut=vt[ut.toLowerCase()])||!ut.href){var ze=Ue[0].charAt(0);return{type:"text",raw:ze,text:ze}}return Ye(Ue,ut,Ue[0])}},vi.strong=function(Rt,vt,Ue){Ue===void 0&&(Ue="");var ut=this.rules.inline.strong.start.exec(Rt);if(ut&&(!ut[1]||ut[1]&&(Ue===""||this.rules.inline.punctuation.exec(Ue)))){vt=vt.slice(-1*Rt.length);var ze,st=ut[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(st.lastIndex=0;(ut=st.exec(vt))!=null;)if(ze=this.rules.inline.strong.middle.exec(vt.slice(0,ut.index+3)))return{type:"strong",raw:Rt.slice(0,ze[0].length),text:Rt.slice(2,ze[0].length-2)}}},vi.em=function(Rt,vt,Ue){Ue===void 0&&(Ue="");var ut=this.rules.inline.em.start.exec(Rt);if(ut&&(!ut[1]||ut[1]&&(Ue===""||this.rules.inline.punctuation.exec(Ue)))){vt=vt.slice(-1*Rt.length);var ze,st=ut[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(st.lastIndex=0;(ut=st.exec(vt))!=null;)if(ze=this.rules.inline.em.middle.exec(vt.slice(0,ut.index+2)))return{type:"em",raw:Rt.slice(0,ze[0].length),text:Rt.slice(1,ze[0].length-1)}}},vi.codespan=function(Rt){var vt=this.rules.inline.code.exec(Rt);if(vt){var Ue=vt[2].replace(/\n/g," "),ut=/[^ ]/.test(Ue),ze=Ue.startsWith(" ")&&Ue.endsWith(" ");return ut&&ze&&(Ue=Ue.substring(1,Ue.length-1)),Ue=nt(Ue,!0),{type:"codespan",raw:vt[0],text:Ue}}},vi.br=function(Rt){var vt=this.rules.inline.br.exec(Rt);if(vt)return{type:"br",raw:vt[0]}},vi.del=function(Rt){var vt=this.rules.inline.del.exec(Rt);if(vt)return{type:"del",raw:vt[0],text:vt[1]}},vi.autolink=function(Rt,vt){var Ue,ut,ze=this.rules.inline.autolink.exec(Rt);if(ze)return ut=ze[2]==="@"?"mailto:"+(Ue=nt(this.options.mangle?vt(ze[1]):ze[1])):Ue=nt(ze[1]),{type:"link",raw:ze[0],text:Ue,href:ut,tokens:[{type:"text",raw:Ue,text:Ue}]}},vi.url=function(Rt,vt){var Ue;if(Ue=this.rules.inline.url.exec(Rt)){var ut,ze;if(Ue[2]==="@")ze="mailto:"+(ut=nt(this.options.mangle?vt(Ue[0]):Ue[0]));else{var st;do st=Ue[0],Ue[0]=this.rules.inline._backpedal.exec(Ue[0])[0];while(st!==Ue[0]);ut=nt(Ue[0]),ze=Ue[1]==="www."?"http://"+ut:ut}return{type:"link",raw:Ue[0],text:ut,href:ze,tokens:[{type:"text",raw:ut,text:ut}]}}},vi.inlineText=function(Rt,vt,Ue){var ut,ze=this.rules.inline.text.exec(Rt);if(ze)return ut=vt?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):nt(ze[0]):ze[0]:nt(this.options.smartypants?Ue(ze[0]):ze[0]),{type:"text",raw:ze[0],text:ut}},gt}(),fe=ke,$=B,G=xe,z={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:fe,table:fe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};z.def=$(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}[.)])/,z.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,z.item=$(z.item,"gm").replace(/bull/g,z.bullet).getRegex(),z.list=$(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,z.html=$(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=$(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.blockquote=$(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=G({},z),z.gfm=G({},z.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),z.gfm.nptable=$(z.gfm.nptable).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.gfm.table=$(z.gfm.table).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.pedantic=G({},z.normal,{html:$(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:fe,paragraph:$(z.normal._paragraph).replace("hr",z.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fe,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};J.punctuation=$(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex(),J._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",J._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",J._comment=$(z._comment).replace("(?:-->|$)","-->").getRegex(),J.em.start=$(J.em.start).replace(/punctuation/g,J._punctuation).getRegex(),J.em.middle=$(J.em.middle).replace(/punctuation/g,J._punctuation).replace(/overlapSkip/g,J._overlapSkip).getRegex(),J.em.endAst=$(J.em.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.em.endUnd=$(J.em.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.start=$(J.strong.start).replace(/punctuation/g,J._punctuation).getRegex(),J.strong.middle=$(J.strong.middle).replace(/punctuation/g,J._punctuation).replace(/blockSkip/g,J._blockSkip).getRegex(),J.strong.endAst=$(J.strong.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.endUnd=$(J.strong.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.blockSkip=$(J._blockSkip,"g").getRegex(),J.overlapSkip=$(J._overlapSkip,"g").getRegex(),J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,J._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,J.autolink=$(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex(),J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,J.tag=$(J.tag).replace("comment",J._comment).replace("attribute",J._attribute).getRegex(),J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,J.link=$(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex(),J.reflink=$(J.reflink).replace("label",J._label).getRegex(),J.reflinkSearch=$(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex(),J.normal=G({},J),J.pedantic=G({},J.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:$(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()}),J.gfm=G({},J.normal,{escape:$(J.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),J.gfm.url=$(J.gfm.url,"i").replace("email",J.gfm._extended_email).getRegex(),J.breaks=G({},J.gfm,{br:$(J.br).replace("{2,}","*").getRegex(),text:$(J.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Se={block:z,inline:J},A=H.defaults,ee=Se.block,de=Se.inline;function Oe(gt){return gt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function $e(gt){var vi,Rt,vt="",Ue=gt.length;for(vi=0;vi<Ue;vi++)Rt=gt.charCodeAt(vi),Math.random()>.5&&(Rt="x"+Rt.toString(16)),vt+="&#"+Rt+";";return vt}var pt=function(){function gt(ut){this.tokens=[],this.tokens.links=Object.create(null),this.options=ut||A,this.options.tokenizer=this.options.tokenizer||new ht,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ze={block:ee.normal,inline:de.normal};this.options.pedantic?(ze.block=ee.pedantic,ze.inline=de.pedantic):this.options.gfm&&(ze.block=ee.gfm,this.options.breaks?ze.inline=de.breaks:ze.inline=de.gfm),this.tokenizer.rules=ze}gt.lex=function(ut,ze){return new gt(ze).lex(ut)};var vi,Rt,vt,Ue=gt.prototype;return Ue.lex=function(ut){return ut=ut.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(ut,this.tokens,!0),this.inline(this.tokens),this.tokens},Ue.blockTokens=function(ut,ze,st){var _t,oi,li,gi;for(ze===void 0&&(ze=[]),st===void 0&&(st=!0),ut=ut.replace(/^ +$/gm,"");ut;)if(_t=this.tokenizer.space(ut))ut=ut.substring(_t.raw.length),_t.type&&ze.push(_t);else if(_t=this.tokenizer.code(ut,ze))ut=ut.substring(_t.raw.length),_t.type?ze.push(_t):((gi=ze[ze.length-1]).raw+=` +]`).replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fe,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};J.punctuation=$(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex(),J._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",J._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",J._comment=$(z._comment).replace("(?:-->|$)","-->").getRegex(),J.em.start=$(J.em.start).replace(/punctuation/g,J._punctuation).getRegex(),J.em.middle=$(J.em.middle).replace(/punctuation/g,J._punctuation).replace(/overlapSkip/g,J._overlapSkip).getRegex(),J.em.endAst=$(J.em.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.em.endUnd=$(J.em.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.start=$(J.strong.start).replace(/punctuation/g,J._punctuation).getRegex(),J.strong.middle=$(J.strong.middle).replace(/punctuation/g,J._punctuation).replace(/blockSkip/g,J._blockSkip).getRegex(),J.strong.endAst=$(J.strong.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.endUnd=$(J.strong.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.blockSkip=$(J._blockSkip,"g").getRegex(),J.overlapSkip=$(J._overlapSkip,"g").getRegex(),J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,J._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,J.autolink=$(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex(),J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,J.tag=$(J.tag).replace("comment",J._comment).replace("attribute",J._attribute).getRegex(),J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,J.link=$(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex(),J.reflink=$(J.reflink).replace("label",J._label).getRegex(),J.reflinkSearch=$(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex(),J.normal=G({},J),J.pedantic=G({},J.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:$(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()}),J.gfm=G({},J.normal,{escape:$(J.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),J.gfm.url=$(J.gfm.url,"i").replace("email",J.gfm._extended_email).getRegex(),J.breaks=G({},J.gfm,{br:$(J.br).replace("{2,}","*").getRegex(),text:$(J.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Se={block:z,inline:J},A=H.defaults,ee=Se.block,de=Se.inline;function De(gt){return gt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function $e(gt){var vi,Rt,vt="",Ue=gt.length;for(vi=0;vi<Ue;vi++)Rt=gt.charCodeAt(vi),Math.random()>.5&&(Rt="x"+Rt.toString(16)),vt+="&#"+Rt+";";return vt}var pt=function(){function gt(ut){this.tokens=[],this.tokens.links=Object.create(null),this.options=ut||A,this.options.tokenizer=this.options.tokenizer||new ht,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ze={block:ee.normal,inline:de.normal};this.options.pedantic?(ze.block=ee.pedantic,ze.inline=de.pedantic):this.options.gfm&&(ze.block=ee.gfm,this.options.breaks?ze.inline=de.breaks:ze.inline=de.gfm),this.tokenizer.rules=ze}gt.lex=function(ut,ze){return new gt(ze).lex(ut)};var vi,Rt,vt,Ue=gt.prototype;return Ue.lex=function(ut){return ut=ut.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(ut,this.tokens,!0),this.inline(this.tokens),this.tokens},Ue.blockTokens=function(ut,ze,st){var _t,ri,li,gi;for(ze===void 0&&(ze=[]),st===void 0&&(st=!0),ut=ut.replace(/^ +$/gm,"");ut;)if(_t=this.tokenizer.space(ut))ut=ut.substring(_t.raw.length),_t.type&&ze.push(_t);else if(_t=this.tokenizer.code(ut,ze))ut=ut.substring(_t.raw.length),_t.type?ze.push(_t):((gi=ze[ze.length-1]).raw+=` `+_t.raw,gi.text+=` -`+_t.text);else if(_t=this.tokenizer.fences(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.heading(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.nptable(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.hr(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.blockquote(ut))ut=ut.substring(_t.raw.length),_t.tokens=this.blockTokens(_t.text,[],st),ze.push(_t);else if(_t=this.tokenizer.list(ut)){for(ut=ut.substring(_t.raw.length),li=_t.items.length,oi=0;oi<li;oi++)_t.items[oi].tokens=this.blockTokens(_t.items[oi].text,[],!1);ze.push(_t)}else if(_t=this.tokenizer.html(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(st&&(_t=this.tokenizer.def(ut)))ut=ut.substring(_t.raw.length),this.tokens.links[_t.tag]||(this.tokens.links[_t.tag]={href:_t.href,title:_t.title});else if(_t=this.tokenizer.table(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.lheading(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(st&&(_t=this.tokenizer.paragraph(ut)))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.text(ut,ze))ut=ut.substring(_t.raw.length),_t.type?ze.push(_t):((gi=ze[ze.length-1]).raw+=` +`+_t.text);else if(_t=this.tokenizer.fences(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.heading(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.nptable(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.hr(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.blockquote(ut))ut=ut.substring(_t.raw.length),_t.tokens=this.blockTokens(_t.text,[],st),ze.push(_t);else if(_t=this.tokenizer.list(ut)){for(ut=ut.substring(_t.raw.length),li=_t.items.length,ri=0;ri<li;ri++)_t.items[ri].tokens=this.blockTokens(_t.items[ri].text,[],!1);ze.push(_t)}else if(_t=this.tokenizer.html(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(st&&(_t=this.tokenizer.def(ut)))ut=ut.substring(_t.raw.length),this.tokens.links[_t.tag]||(this.tokens.links[_t.tag]={href:_t.href,title:_t.title});else if(_t=this.tokenizer.table(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.lheading(ut))ut=ut.substring(_t.raw.length),ze.push(_t);else if(st&&(_t=this.tokenizer.paragraph(ut)))ut=ut.substring(_t.raw.length),ze.push(_t);else if(_t=this.tokenizer.text(ut,ze))ut=ut.substring(_t.raw.length),_t.type?ze.push(_t):((gi=ze[ze.length-1]).raw+=` `+_t.raw,gi.text+=` -`+_t.text);else if(ut){var ki="Infinite loop on byte: "+ut.charCodeAt(0);if(this.options.silent){console.error(ki);break}throw new Error(ki)}return ze},Ue.inline=function(ut){var ze,st,_t,oi,li,gi,ki=ut.length;for(ze=0;ze<ki;ze++)switch((gi=ut[ze]).type){case"paragraph":case"text":case"heading":gi.tokens=[],this.inlineTokens(gi.text,gi.tokens);break;case"table":for(gi.tokens={header:[],cells:[]},oi=gi.header.length,st=0;st<oi;st++)gi.tokens.header[st]=[],this.inlineTokens(gi.header[st],gi.tokens.header[st]);for(oi=gi.cells.length,st=0;st<oi;st++)for(li=gi.cells[st],gi.tokens.cells[st]=[],_t=0;_t<li.length;_t++)gi.tokens.cells[st][_t]=[],this.inlineTokens(li[_t],gi.tokens.cells[st][_t]);break;case"blockquote":this.inline(gi.tokens);break;case"list":for(oi=gi.items.length,st=0;st<oi;st++)this.inline(gi.items[st].tokens)}return ut},Ue.inlineTokens=function(ut,ze,st,_t,oi){var li;ze===void 0&&(ze=[]),st===void 0&&(st=!1),_t===void 0&&(_t=!1),oi===void 0&&(oi="");var gi,ki=ut;if(this.tokens.links){var Ri=Object.keys(this.tokens.links);if(Ri.length>0)for(;(gi=this.tokenizer.rules.inline.reflinkSearch.exec(ki))!=null;)Ri.includes(gi[0].slice(gi[0].lastIndexOf("[")+1,-1))&&(ki=ki.slice(0,gi.index)+"["+"a".repeat(gi[0].length-2)+"]"+ki.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gi=this.tokenizer.rules.inline.blockSkip.exec(ki))!=null;)ki=ki.slice(0,gi.index)+"["+"a".repeat(gi[0].length-2)+"]"+ki.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ut;)if(li=this.tokenizer.escape(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.tag(ut,st,_t))ut=ut.substring(li.raw.length),st=li.inLink,_t=li.inRawBlock,ze.push(li);else if(li=this.tokenizer.link(ut))ut=ut.substring(li.raw.length),li.type==="link"&&(li.tokens=this.inlineTokens(li.text,[],!0,_t)),ze.push(li);else if(li=this.tokenizer.reflink(ut,this.tokens.links))ut=ut.substring(li.raw.length),li.type==="link"&&(li.tokens=this.inlineTokens(li.text,[],!0,_t)),ze.push(li);else if(li=this.tokenizer.strong(ut,ki,oi))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.em(ut,ki,oi))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.codespan(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.br(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.del(ut))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.autolink(ut,$e))ut=ut.substring(li.raw.length),ze.push(li);else if(st||!(li=this.tokenizer.url(ut,$e))){if(li=this.tokenizer.inlineText(ut,_t,Oe))ut=ut.substring(li.raw.length),oi=li.raw.slice(-1),ze.push(li);else if(ut){var $i="Infinite loop on byte: "+ut.charCodeAt(0);if(this.options.silent){console.error($i);break}throw new Error($i)}}else ut=ut.substring(li.raw.length),ze.push(li);return ze},vi=gt,vt=[{key:"rules",get:function(){return{block:ee,inline:de}}}],(Rt=null)&&h(vi.prototype,Rt),vt&&h(vi,vt),gt}(),it=H.defaults,At=se,Nt=U,_i=function(){function gt(Rt){this.options=Rt||it}var vi=gt.prototype;return vi.code=function(Rt,vt,Ue){var ut=(vt||"").match(/\S*/)[0];if(this.options.highlight){var ze=this.options.highlight(Rt,ut);ze!=null&&ze!==Rt&&(Ue=!0,Rt=ze)}return ut?'<pre><code class="'+this.options.langPrefix+Nt(ut,!0)+'">'+(Ue?Rt:Nt(Rt,!0))+`</code></pre> +`+_t.text);else if(ut){var ki="Infinite loop on byte: "+ut.charCodeAt(0);if(this.options.silent){console.error(ki);break}throw new Error(ki)}return ze},Ue.inline=function(ut){var ze,st,_t,ri,li,gi,ki=ut.length;for(ze=0;ze<ki;ze++)switch((gi=ut[ze]).type){case"paragraph":case"text":case"heading":gi.tokens=[],this.inlineTokens(gi.text,gi.tokens);break;case"table":for(gi.tokens={header:[],cells:[]},ri=gi.header.length,st=0;st<ri;st++)gi.tokens.header[st]=[],this.inlineTokens(gi.header[st],gi.tokens.header[st]);for(ri=gi.cells.length,st=0;st<ri;st++)for(li=gi.cells[st],gi.tokens.cells[st]=[],_t=0;_t<li.length;_t++)gi.tokens.cells[st][_t]=[],this.inlineTokens(li[_t],gi.tokens.cells[st][_t]);break;case"blockquote":this.inline(gi.tokens);break;case"list":for(ri=gi.items.length,st=0;st<ri;st++)this.inline(gi.items[st].tokens)}return ut},Ue.inlineTokens=function(ut,ze,st,_t,ri){var li;ze===void 0&&(ze=[]),st===void 0&&(st=!1),_t===void 0&&(_t=!1),ri===void 0&&(ri="");var gi,ki=ut;if(this.tokens.links){var Ri=Object.keys(this.tokens.links);if(Ri.length>0)for(;(gi=this.tokenizer.rules.inline.reflinkSearch.exec(ki))!=null;)Ri.includes(gi[0].slice(gi[0].lastIndexOf("[")+1,-1))&&(ki=ki.slice(0,gi.index)+"["+"a".repeat(gi[0].length-2)+"]"+ki.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gi=this.tokenizer.rules.inline.blockSkip.exec(ki))!=null;)ki=ki.slice(0,gi.index)+"["+"a".repeat(gi[0].length-2)+"]"+ki.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ut;)if(li=this.tokenizer.escape(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.tag(ut,st,_t))ut=ut.substring(li.raw.length),st=li.inLink,_t=li.inRawBlock,ze.push(li);else if(li=this.tokenizer.link(ut))ut=ut.substring(li.raw.length),li.type==="link"&&(li.tokens=this.inlineTokens(li.text,[],!0,_t)),ze.push(li);else if(li=this.tokenizer.reflink(ut,this.tokens.links))ut=ut.substring(li.raw.length),li.type==="link"&&(li.tokens=this.inlineTokens(li.text,[],!0,_t)),ze.push(li);else if(li=this.tokenizer.strong(ut,ki,ri))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.em(ut,ki,ri))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.codespan(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.br(ut))ut=ut.substring(li.raw.length),ze.push(li);else if(li=this.tokenizer.del(ut))ut=ut.substring(li.raw.length),li.tokens=this.inlineTokens(li.text,[],st,_t),ze.push(li);else if(li=this.tokenizer.autolink(ut,$e))ut=ut.substring(li.raw.length),ze.push(li);else if(st||!(li=this.tokenizer.url(ut,$e))){if(li=this.tokenizer.inlineText(ut,_t,De))ut=ut.substring(li.raw.length),ri=li.raw.slice(-1),ze.push(li);else if(ut){var $i="Infinite loop on byte: "+ut.charCodeAt(0);if(this.options.silent){console.error($i);break}throw new Error($i)}}else ut=ut.substring(li.raw.length),ze.push(li);return ze},vi=gt,vt=[{key:"rules",get:function(){return{block:ee,inline:de}}}],(Rt=null)&&h(vi.prototype,Rt),vt&&h(vi,vt),gt}(),it=H.defaults,At=se,Nt=U,_i=function(){function gt(Rt){this.options=Rt||it}var vi=gt.prototype;return vi.code=function(Rt,vt,Ue){var ut=(vt||"").match(/\S*/)[0];if(this.options.highlight){var ze=this.options.highlight(Rt,ut);ze!=null&&ze!==Rt&&(Ue=!0,Rt=ze)}return ut?'<pre><code class="'+this.options.langPrefix+Nt(ut,!0)+'">'+(Ue?Rt:Nt(Rt,!0))+`</code></pre> `:"<pre><code>"+(Ue?Rt:Nt(Rt,!0))+`</code></pre> `},vi.blockquote=function(Rt){return`<blockquote> `+Rt+`</blockquote> @@ -1130,3862 +1130,3862 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},vi.tablerow=function(Rt){return`<tr> `+Rt+`</tr> `},vi.tablecell=function(Rt,vt){var Ue=vt.header?"th":"td";return(vt.align?"<"+Ue+' align="'+vt.align+'">':"<"+Ue+">")+Rt+"</"+Ue+`> -`},vi.strong=function(Rt){return"<strong>"+Rt+"</strong>"},vi.em=function(Rt){return"<em>"+Rt+"</em>"},vi.codespan=function(Rt){return"<code>"+Rt+"</code>"},vi.br=function(){return this.options.xhtml?"<br/>":"<br>"},vi.del=function(Rt){return"<del>"+Rt+"</del>"},vi.link=function(Rt,vt,Ue){if((Rt=At(this.options.sanitize,this.options.baseUrl,Rt))===null)return Ue;var ut='<a href="'+Nt(Rt)+'"';return vt&&(ut+=' title="'+vt+'"'),ut+=">"+Ue+"</a>"},vi.image=function(Rt,vt,Ue){if((Rt=At(this.options.sanitize,this.options.baseUrl,Rt))===null)return Ue;var ut='<img src="'+Rt+'" alt="'+Ue+'"';return vt&&(ut+=' title="'+vt+'"'),ut+=this.options.xhtml?"/>":">"},vi.text=function(Rt){return Rt},gt}(),wt=function(){function gt(){}var vi=gt.prototype;return vi.strong=function(Rt){return Rt},vi.em=function(Rt){return Rt},vi.codespan=function(Rt){return Rt},vi.del=function(Rt){return Rt},vi.html=function(Rt){return Rt},vi.text=function(Rt){return Rt},vi.link=function(Rt,vt,Ue){return""+Ue},vi.image=function(Rt,vt,Ue){return""+Ue},vi.br=function(){return""},gt}(),Ni=function(){function gt(){this.seen={}}var vi=gt.prototype;return vi.serialize=function(Rt){return Rt.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},vi.getNextSafeSlug=function(Rt,vt){var Ue=Rt,ut=0;if(this.seen.hasOwnProperty(Ue)){ut=this.seen[Rt];do Ue=Rt+"-"+ ++ut;while(this.seen.hasOwnProperty(Ue))}return vt||(this.seen[Rt]=ut,this.seen[Ue]=0),Ue},vi.slug=function(Rt,vt){vt===void 0&&(vt={});var Ue=this.serialize(Rt);return this.getNextSafeSlug(Ue,vt.dryrun)},gt}(),pi=H.defaults,et=q,Wt=function(){function gt(Rt){this.options=Rt||pi,this.options.renderer=this.options.renderer||new _i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new wt,this.slugger=new Ni}gt.parse=function(Rt,vt){return new gt(vt).parse(Rt)};var vi=gt.prototype;return vi.parse=function(Rt,vt){vt===void 0&&(vt=!0);var Ue,ut,ze,st,_t,oi,li,gi,ki,Ri,$i,Hi,yi,kt,Et,si,Si,Pi,Wi="",xn=Rt.length;for(Ue=0;Ue<xn;Ue++)switch((Ri=Rt[Ue]).type){case"space":continue;case"hr":Wi+=this.renderer.hr();continue;case"heading":Wi+=this.renderer.heading(this.parseInline(Ri.tokens),Ri.depth,et(this.parseInline(Ri.tokens,this.textRenderer)),this.slugger);continue;case"code":Wi+=this.renderer.code(Ri.text,Ri.lang,Ri.escaped);continue;case"table":for(gi="",li="",st=Ri.header.length,ut=0;ut<st;ut++)li+=this.renderer.tablecell(this.parseInline(Ri.tokens.header[ut]),{header:!0,align:Ri.align[ut]});for(gi+=this.renderer.tablerow(li),ki="",st=Ri.cells.length,ut=0;ut<st;ut++){for(li="",_t=(oi=Ri.tokens.cells[ut]).length,ze=0;ze<_t;ze++)li+=this.renderer.tablecell(this.parseInline(oi[ze]),{header:!1,align:Ri.align[ze]});ki+=this.renderer.tablerow(li)}Wi+=this.renderer.table(gi,ki);continue;case"blockquote":ki=this.parse(Ri.tokens),Wi+=this.renderer.blockquote(ki);continue;case"list":for($i=Ri.ordered,Hi=Ri.start,yi=Ri.loose,st=Ri.items.length,ki="",ut=0;ut<st;ut++)si=(Et=Ri.items[ut]).checked,Si=Et.task,kt="",Et.task&&(Pi=this.renderer.checkbox(si),yi?Et.tokens.length>0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=Pi+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=Pi+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:Pi}):kt+=Pi),kt+=this.parse(Et.tokens,yi),ki+=this.renderer.listitem(kt,Si,si);Wi+=this.renderer.list(ki,$i,Hi);continue;case"html":Wi+=this.renderer.html(Ri.text);continue;case"paragraph":Wi+=this.renderer.paragraph(this.parseInline(Ri.tokens));continue;case"text":for(ki=Ri.tokens?this.parseInline(Ri.tokens):Ri.text;Ue+1<xn&&Rt[Ue+1].type==="text";)ki+=` -`+((Ri=Rt[++Ue]).tokens?this.parseInline(Ri.tokens):Ri.text);Wi+=vt?this.renderer.paragraph(ki):ki;continue;default:var un='Token with "'+Ri.type+'" type was not found.';if(this.options.silent)return void console.error(un);throw new Error(un)}return Wi},vi.parseInline=function(Rt,vt){vt=vt||this.renderer;var Ue,ut,ze="",st=Rt.length;for(Ue=0;Ue<st;Ue++)switch((ut=Rt[Ue]).type){case"escape":ze+=vt.text(ut.text);break;case"html":ze+=vt.html(ut.text);break;case"link":ze+=vt.link(ut.href,ut.title,this.parseInline(ut.tokens,vt));break;case"image":ze+=vt.image(ut.href,ut.title,ut.text);break;case"strong":ze+=vt.strong(this.parseInline(ut.tokens,vt));break;case"em":ze+=vt.em(this.parseInline(ut.tokens,vt));break;case"codespan":ze+=vt.codespan(ut.text);break;case"br":ze+=vt.br();break;case"del":ze+=vt.del(this.parseInline(ut.tokens,vt));break;case"text":ze+=vt.text(ut.text);break;default:var _t='Token with "'+ut.type+'" type was not found.';if(this.options.silent)return void console.error(_t);throw new Error(_t)}return ze},gt}(),Li=xe,Ii=he,Ai=U,Zi=H.getDefaults,Bi=H.changeDefaults,Lt=H.defaults;function Di(gt,vi,Rt){if(gt==null)throw new Error("marked(): input parameter is undefined or null");if(typeof gt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(gt)+", string expected");if(typeof vi=="function"&&(Rt=vi,vi=null),vi=Li({},Di.defaults,vi||{}),Ii(vi),Rt){var vt,Ue=vi.highlight;try{vt=pt.lex(gt,vi)}catch(_t){return Rt(_t)}var ut=function(_t){var oi;if(!_t)try{oi=Wt.parse(vt,vi)}catch(li){_t=li}return vi.highlight=Ue,_t?Rt(_t):Rt(null,oi)};if(!Ue||Ue.length<3||(delete vi.highlight,!vt.length))return ut();var ze=0;return Di.walkTokens(vt,function(_t){_t.type==="code"&&(ze++,setTimeout(function(){Ue(_t.text,_t.lang,function(oi,li){if(oi)return ut(oi);li!=null&&li!==_t.text&&(_t.text=li,_t.escaped=!0),--ze==0&&ut()})},0))}),void(ze===0&&ut())}try{var st=pt.lex(gt,vi);return vi.walkTokens&&Di.walkTokens(st,vi.walkTokens),Wt.parse(st,vi)}catch(_t){if(_t.message+=` -Please report this to https://github.com/markedjs/marked.`,vi.silent)return"<p>An error occurred:</p><pre>"+Ai(_t.message+"",!0)+"</pre>";throw _t}}return Di.options=Di.setOptions=function(gt){return Li(Di.defaults,gt),Bi(Di.defaults),Di},Di.getDefaults=Zi,Di.defaults=Lt,Di.use=function(gt){var vi=Li({},gt);if(gt.renderer&&function(){var vt=Di.defaults.renderer||new _i,Ue=function(ze){var st=vt[ze];vt[ze]=function(){for(var _t=arguments.length,oi=new Array(_t),li=0;li<_t;li++)oi[li]=arguments[li];var gi=gt.renderer[ze].apply(vt,oi);return gi===!1&&(gi=st.apply(vt,oi)),gi}};for(var ut in gt.renderer)Ue(ut);vi.renderer=vt}(),gt.tokenizer&&function(){var vt=Di.defaults.tokenizer||new ht,Ue=function(ze){var st=vt[ze];vt[ze]=function(){for(var _t=arguments.length,oi=new Array(_t),li=0;li<_t;li++)oi[li]=arguments[li];var gi=gt.tokenizer[ze].apply(vt,oi);return gi===!1&&(gi=st.apply(vt,oi)),gi}};for(var ut in gt.tokenizer)Ue(ut);vi.tokenizer=vt}(),gt.walkTokens){var Rt=Di.defaults.walkTokens;vi.walkTokens=function(vt){gt.walkTokens(vt),Rt&&Rt(vt)}}Di.setOptions(vi)},Di.walkTokens=function(gt,vi){for(var Rt,vt=D(gt);!(Rt=vt()).done;){var Ue=Rt.value;switch(vi(Ue),Ue.type){case"table":for(var ut,ze=D(Ue.tokens.header);!(ut=ze()).done;){var st=ut.value;Di.walkTokens(st,vi)}for(var _t,oi=D(Ue.tokens.cells);!(_t=oi()).done;)for(var li,gi=D(_t.value);!(li=gi()).done;){var ki=li.value;Di.walkTokens(ki,vi)}break;case"list":Di.walkTokens(Ue.items,vi);break;default:Ue.tokens&&Di.walkTokens(Ue.tokens,vi)}}},Di.Parser=Wt,Di.parser=Wt.parse,Di.Renderer=_i,Di.TextRenderer=wt,Di.Lexer=pt,Di.lexer=pt.lex,Di.Tokenizer=ht,Di.Slugger=Ni,Di.parse=Di,Di}()},function(Ie,w,o){var h=o(32),f=o(250);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){var h=o(32),f=o(263);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){var h=o(32),f=o(297);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){var h=o(32),f=o(304);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){var h=o(32),f=o(201);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - - -/* Default standalone editor fonts */ -.monaco-editor { - font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; - --monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace; -} - -.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label { - stroke-width: 1.2px; -} - -.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, -.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - stroke-width: 1.2px; -} - -.monaco-hover p { - margin: 0; -} - -/* The hc-black theme is already high contrast optimized */ -.monaco-editor.hc-black { - -ms-high-contrast-adjust: none; -} -/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */ -@media screen and (-ms-high-contrast:active) { - - /* current line highlight */ - .monaco-editor.vs .view-overlays .current-line, - .monaco-editor.vs-dark .view-overlays .current-line { - border-color: windowtext !important; - border-left: 0; - border-right: 0; - } - - /* view cursors */ - .monaco-editor.vs .cursor, - .monaco-editor.vs-dark .cursor { - background-color: windowtext !important; - } - /* dnd target */ - .monaco-editor.vs .dnd-target, - .monaco-editor.vs-dark .dnd-target { - border-color: windowtext !important; - } - - /* selected text background */ - .monaco-editor.vs .selected-text, - .monaco-editor.vs-dark .selected-text { - background-color: highlight !important; - } - - /* allow the text to have a transparent background. */ - .monaco-editor.vs .view-line, - .monaco-editor.vs-dark .view-line { - -ms-high-contrast-adjust: none; - } - - /* text color */ - .monaco-editor.vs .view-line span, - .monaco-editor.vs-dark .view-line span { - color: windowtext !important; - } - /* selected text color */ - .monaco-editor.vs .view-line span.inline-selected-text, - .monaco-editor.vs-dark .view-line span.inline-selected-text { - color: highlighttext !important; - } - - /* allow decorations */ - .monaco-editor.vs .view-overlays, - .monaco-editor.vs-dark .view-overlays { - -ms-high-contrast-adjust: none; - } - - /* various decorations */ - .monaco-editor.vs .selectionHighlight, - .monaco-editor.vs-dark .selectionHighlight, - .monaco-editor.vs .wordHighlight, - .monaco-editor.vs-dark .wordHighlight, - .monaco-editor.vs .wordHighlightStrong, - .monaco-editor.vs-dark .wordHighlightStrong, - .monaco-editor.vs .reference-decoration, - .monaco-editor.vs-dark .reference-decoration { - border: 2px dotted highlight !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .rangeHighlight, - .monaco-editor.vs-dark .rangeHighlight { - background: transparent !important; - border: 1px dotted activeborder !important; - box-sizing: border-box; - } - .monaco-editor.vs .bracket-match, - .monaco-editor.vs-dark .bracket-match { - border-color: windowtext !important; - background: transparent !important; - } - - /* find widget */ - .monaco-editor.vs .findMatch, - .monaco-editor.vs-dark .findMatch, - .monaco-editor.vs .currentFindMatch, - .monaco-editor.vs-dark .currentFindMatch { - border: 2px dotted activeborder !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .find-widget, - .monaco-editor.vs-dark .find-widget { - border: 1px solid windowtext; - } - - /* list - used by suggest widget */ - .monaco-editor.vs .monaco-list .monaco-list-row, - .monaco-editor.vs-dark .monaco-list .monaco-list-row { - -ms-high-contrast-adjust: none; - color: windowtext !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row.focused, - .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused { - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row:hover, - .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover { - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* scrollbars */ - .monaco-editor.vs .monaco-scrollable-element > .scrollbar, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar { - -ms-high-contrast-adjust: none; - background: background !important; - border: 1px solid windowtext; - box-sizing: border-box; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider { - background: windowtext !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover { - background: highlight !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { - background: highlight !important; - } - - /* overview ruler */ - .monaco-editor.vs .decorationsOverviewRuler, - .monaco-editor.vs-dark .decorationsOverviewRuler { - opacity: 0; - } - - /* minimap */ - .monaco-editor.vs .minimap, - .monaco-editor.vs-dark .minimap { - display: none; - } - - /* squiggles */ - .monaco-editor.vs .squiggly-d-error, - .monaco-editor.vs-dark .squiggly-d-error { - background: transparent !important; - border-bottom: 4px double #E47777; - } - .monaco-editor.vs .squiggly-c-warning, - .monaco-editor.vs-dark .squiggly-c-warning { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-b-info, - .monaco-editor.vs-dark .squiggly-b-info { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-a-hint, - .monaco-editor.vs-dark .squiggly-a-hint { - border-bottom: 4px double #6c6c6c; - } - - /* contextmenu */ - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - -ms-high-contrast-adjust: none; - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label { - -ms-high-contrast-adjust: none; - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* diff editor */ - .monaco-diff-editor.vs .diffOverviewRuler, - .monaco-diff-editor.vs-dark .diffOverviewRuler { - display: none; - } - .monaco-editor.vs .line-insert, - .monaco-editor.vs-dark .line-insert, - .monaco-editor.vs .line-delete, - .monaco-editor.vs-dark .line-delete { - background: transparent !important; - border: 1px solid highlight !important; - box-sizing: border-box; - } - .monaco-editor.vs .char-insert, - .monaco-editor.vs-dark .char-insert, - .monaco-editor.vs .char-delete, - .monaco-editor.vs-dark .char-delete { - background: transparent !important; - } -} - -/*.monaco-editor.vs [tabindex="0"]:focus { - outline: 1px solid rgba(0, 122, 204, 0.4); - outline-offset: -1px; - opacity: 1 !important; -} - -.monaco-editor.vs-dark [tabindex="0"]:focus { - outline: 1px solid rgba(14, 99, 156, 0.6); - outline-offset: -1px; - opacity: 1 !important; -}*/ -`,""]),Ie.exports=w},function(Ie,w,o){"use strict";(function(h){var f=o(203),D=o(204),H=o(205);function E(){return W.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ge(z,J){if(E()<J)throw new RangeError("Invalid typed array length");return W.TYPED_ARRAY_SUPPORT?(z=new Uint8Array(J)).__proto__=W.prototype:(z===null&&(z=new W(J)),z.length=J),z}function W(z,J,Se){if(!(W.TYPED_ARRAY_SUPPORT||this instanceof W))return new W(z,J,Se);if(typeof z=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return C(this,z)}return Q(this,z,J,Se)}function Q(z,J,Se,A){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?function(ee,de,Oe,$e){if(de.byteLength,Oe<0||de.byteLength<Oe)throw new RangeError("'offset' is out of bounds");if(de.byteLength<Oe+($e||0))throw new RangeError("'length' is out of bounds");return de=Oe===void 0&&$e===void 0?new Uint8Array(de):$e===void 0?new Uint8Array(de,Oe):new Uint8Array(de,Oe,$e),W.TYPED_ARRAY_SUPPORT?(ee=de).__proto__=W.prototype:ee=S(ee,de),ee}(z,J,Se,A):typeof J=="string"?function(ee,de,Oe){if(typeof Oe=="string"&&Oe!==""||(Oe="utf8"),!W.isEncoding(Oe))throw new TypeError('"encoding" must be a valid string encoding');var $e=0|V(de,Oe),pt=(ee=ge(ee,$e)).write(de,Oe);return pt!==$e&&(ee=ee.slice(0,pt)),ee}(z,J,Se):function(ee,de){if(W.isBuffer(de)){var Oe=0|P(de.length);return(ee=ge(ee,Oe)).length===0||de.copy(ee,0,0,Oe),ee}if(de){if(typeof ArrayBuffer!="undefined"&&de.buffer instanceof ArrayBuffer||"length"in de)return typeof de.length!="number"||($e=de.length)!=$e?ge(ee,0):S(ee,de);if(de.type==="Buffer"&&H(de.data))return S(ee,de.data)}var $e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(z,J)}function y(z){if(typeof z!="number")throw new TypeError('"size" argument must be a number');if(z<0)throw new RangeError('"size" argument must not be negative')}function C(z,J){if(y(J),z=ge(z,J<0?0:0|P(J)),!W.TYPED_ARRAY_SUPPORT)for(var Se=0;Se<J;++Se)z[Se]=0;return z}function S(z,J){var Se=J.length<0?0:0|P(J.length);z=ge(z,Se);for(var A=0;A<Se;A+=1)z[A]=255&J[A];return z}function P(z){if(z>=E())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E().toString(16)+" bytes");return 0|z}function V(z,J){if(W.isBuffer(z))return z.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(z)||z instanceof ArrayBuffer))return z.byteLength;typeof z!="string"&&(z=""+z);var Se=z.length;if(Se===0)return 0;for(var A=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Se;case"utf8":case"utf-8":case void 0:return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Se;case"hex":return Se>>>1;case"base64":return $(z).length;default:if(A)return fe(z).length;J=(""+J).toLowerCase(),A=!0}}function k(z,J,Se){var A=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((Se===void 0||Se>this.length)&&(Se=this.length),Se<=0)||(Se>>>=0)<=(J>>>=0))return"";for(z||(z="utf8");;)switch(z){case"hex":return Y(this,J,Se);case"utf8":case"utf-8":return se(this,J,Se);case"ascii":return ke(this,J,Se);case"latin1":case"binary":return xe(this,J,Se);case"base64":return B(this,J,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,J,Se);default:if(A)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),A=!0}}function l(z,J,Se){var A=z[J];z[J]=z[Se],z[Se]=A}function T(z,J,Se,A,ee){if(z.length===0)return-1;if(typeof Se=="string"?(A=Se,Se=0):Se>2147483647?Se=2147483647:Se<-2147483648&&(Se=-2147483648),Se=+Se,isNaN(Se)&&(Se=ee?0:z.length-1),Se<0&&(Se=z.length+Se),Se>=z.length){if(ee)return-1;Se=z.length-1}else if(Se<0){if(!ee)return-1;Se=0}if(typeof J=="string"&&(J=W.from(J,A)),W.isBuffer(J))return J.length===0?-1:N(z,J,Se,A,ee);if(typeof J=="number")return J&=255,W.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(z,J,Se):Uint8Array.prototype.lastIndexOf.call(z,J,Se):N(z,[J],Se,A,ee);throw new TypeError("val must be string, number or Buffer")}function N(z,J,Se,A,ee){var de,Oe=1,$e=z.length,pt=J.length;if(A!==void 0&&((A=String(A).toLowerCase())==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(z.length<2||J.length<2)return-1;Oe=2,$e/=2,pt/=2,Se/=2}function it(wt,Ni){return Oe===1?wt[Ni]:wt.readUInt16BE(Ni*Oe)}if(ee){var At=-1;for(de=Se;de<$e;de++)if(it(z,de)===it(J,At===-1?0:de-At)){if(At===-1&&(At=de),de-At+1===pt)return At*Oe}else At!==-1&&(de-=de-At),At=-1}else for(Se+pt>$e&&(Se=$e-pt),de=Se;de>=0;de--){for(var Nt=!0,_i=0;_i<pt;_i++)if(it(z,de+_i)!==it(J,_i)){Nt=!1;break}if(Nt)return de}return-1}function b(z,J,Se,A){Se=Number(Se)||0;var ee=z.length-Se;A?(A=Number(A))>ee&&(A=ee):A=ee;var de=J.length;if(de%2!=0)throw new TypeError("Invalid hex string");A>de/2&&(A=de/2);for(var Oe=0;Oe<A;++Oe){var $e=parseInt(J.substr(2*Oe,2),16);if(isNaN($e))return Oe;z[Se+Oe]=$e}return Oe}function g(z,J,Se,A){return G(fe(J,z.length-Se),z,Se,A)}function j(z,J,Se,A){return G(function(ee){for(var de=[],Oe=0;Oe<ee.length;++Oe)de.push(255&ee.charCodeAt(Oe));return de}(J),z,Se,A)}function ie(z,J,Se,A){return j(z,J,Se,A)}function U(z,J,Se,A){return G($(J),z,Se,A)}function q(z,J,Se,A){return G(function(ee,de){for(var Oe,$e,pt,it=[],At=0;At<ee.length&&!((de-=2)<0);++At)Oe=ee.charCodeAt(At),$e=Oe>>8,pt=Oe%256,it.push(pt),it.push($e);return it}(J,z.length-Se),z,Se,A)}function B(z,J,Se){return J===0&&Se===z.length?f.fromByteArray(z):f.fromByteArray(z.slice(J,Se))}function se(z,J,Se){Se=Math.min(z.length,Se);for(var A=[],ee=J;ee<Se;){var de,Oe,$e,pt,it=z[ee],At=null,Nt=it>239?4:it>223?3:it>191?2:1;if(ee+Nt<=Se)switch(Nt){case 1:it<128&&(At=it);break;case 2:(192&(de=z[ee+1]))==128&&(pt=(31&it)<<6|63&de)>127&&(At=pt);break;case 3:de=z[ee+1],Oe=z[ee+2],(192&de)==128&&(192&Oe)==128&&(pt=(15&it)<<12|(63&de)<<6|63&Oe)>2047&&(pt<55296||pt>57343)&&(At=pt);break;case 4:de=z[ee+1],Oe=z[ee+2],$e=z[ee+3],(192&de)==128&&(192&Oe)==128&&(192&$e)==128&&(pt=(15&it)<<18|(63&de)<<12|(63&Oe)<<6|63&$e)>65535&&pt<1114112&&(At=pt)}At===null?(At=65533,Nt=1):At>65535&&(At-=65536,A.push(At>>>10&1023|55296),At=56320|1023&At),A.push(At),ee+=Nt}return function(_i){var wt=_i.length;if(wt<=4096)return String.fromCharCode.apply(String,_i);for(var Ni="",pi=0;pi<wt;)Ni+=String.fromCharCode.apply(String,_i.slice(pi,pi+=4096));return Ni}(A)}w.Buffer=W,w.SlowBuffer=function(z){return+z!=z&&(z=0),W.alloc(+z)},w.INSPECT_MAX_BYTES=50,W.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.TYPED_ARRAY_SUPPORT:function(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch(J){return!1}}(),w.kMaxLength=E(),W.poolSize=8192,W._augment=function(z){return z.__proto__=W.prototype,z},W.from=function(z,J,Se){return Q(null,z,J,Se)},W.TYPED_ARRAY_SUPPORT&&(W.prototype.__proto__=Uint8Array.prototype,W.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&W[Symbol.species]===W&&Object.defineProperty(W,Symbol.species,{value:null,configurable:!0})),W.alloc=function(z,J,Se){return function(A,ee,de,Oe){return y(ee),ee<=0?ge(A,ee):de!==void 0?typeof Oe=="string"?ge(A,ee).fill(de,Oe):ge(A,ee).fill(de):ge(A,ee)}(null,z,J,Se)},W.allocUnsafe=function(z){return C(null,z)},W.allocUnsafeSlow=function(z){return C(null,z)},W.isBuffer=function(z){return!(z==null||!z._isBuffer)},W.compare=function(z,J){if(!W.isBuffer(z)||!W.isBuffer(J))throw new TypeError("Arguments must be Buffers");if(z===J)return 0;for(var Se=z.length,A=J.length,ee=0,de=Math.min(Se,A);ee<de;++ee)if(z[ee]!==J[ee]){Se=z[ee],A=J[ee];break}return Se<A?-1:A<Se?1:0},W.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},W.concat=function(z,J){if(!H(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return W.alloc(0);var Se;if(J===void 0)for(J=0,Se=0;Se<z.length;++Se)J+=z[Se].length;var A=W.allocUnsafe(J),ee=0;for(Se=0;Se<z.length;++Se){var de=z[Se];if(!W.isBuffer(de))throw new TypeError('"list" argument must be an Array of Buffers');de.copy(A,ee),ee+=de.length}return A},W.byteLength=V,W.prototype._isBuffer=!0,W.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;J<z;J+=2)l(this,J,J+1);return this},W.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var J=0;J<z;J+=4)l(this,J,J+3),l(this,J+1,J+2);return this},W.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var J=0;J<z;J+=8)l(this,J,J+7),l(this,J+1,J+6),l(this,J+2,J+5),l(this,J+3,J+4);return this},W.prototype.toString=function(){var z=0|this.length;return z===0?"":arguments.length===0?se(this,0,z):k.apply(this,arguments)},W.prototype.equals=function(z){if(!W.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z||W.compare(this,z)===0},W.prototype.inspect=function(){var z="",J=w.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,J).match(/.{2}/g).join(" "),this.length>J&&(z+=" ... ")),"<Buffer "+z+">"},W.prototype.compare=function(z,J,Se,A,ee){if(!W.isBuffer(z))throw new TypeError("Argument must be a Buffer");if(J===void 0&&(J=0),Se===void 0&&(Se=z?z.length:0),A===void 0&&(A=0),ee===void 0&&(ee=this.length),J<0||Se>z.length||A<0||ee>this.length)throw new RangeError("out of range index");if(A>=ee&&J>=Se)return 0;if(A>=ee)return-1;if(J>=Se)return 1;if(this===z)return 0;for(var de=(ee>>>=0)-(A>>>=0),Oe=(Se>>>=0)-(J>>>=0),$e=Math.min(de,Oe),pt=this.slice(A,ee),it=z.slice(J,Se),At=0;At<$e;++At)if(pt[At]!==it[At]){de=pt[At],Oe=it[At];break}return de<Oe?-1:Oe<de?1:0},W.prototype.includes=function(z,J,Se){return this.indexOf(z,J,Se)!==-1},W.prototype.indexOf=function(z,J,Se){return T(this,z,J,Se,!0)},W.prototype.lastIndexOf=function(z,J,Se){return T(this,z,J,Se,!1)},W.prototype.write=function(z,J,Se,A){if(J===void 0)A="utf8",Se=this.length,J=0;else if(Se===void 0&&typeof J=="string")A=J,Se=this.length,J=0;else{if(!isFinite(J))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");J|=0,isFinite(Se)?(Se|=0,A===void 0&&(A="utf8")):(A=Se,Se=void 0)}var ee=this.length-J;if((Se===void 0||Se>ee)&&(Se=ee),z.length>0&&(Se<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var de=!1;;)switch(A){case"hex":return b(this,z,J,Se);case"utf8":case"utf-8":return g(this,z,J,Se);case"ascii":return j(this,z,J,Se);case"latin1":case"binary":return ie(this,z,J,Se);case"base64":return U(this,z,J,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,z,J,Se);default:if(de)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),de=!0}},W.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(z,J,Se){var A="";Se=Math.min(z.length,Se);for(var ee=J;ee<Se;++ee)A+=String.fromCharCode(127&z[ee]);return A}function xe(z,J,Se){var A="";Se=Math.min(z.length,Se);for(var ee=J;ee<Se;++ee)A+=String.fromCharCode(z[ee]);return A}function Y(z,J,Se){var A=z.length;(!J||J<0)&&(J=0),(!Se||Se<0||Se>A)&&(Se=A);for(var ee="",de=J;de<Se;++de)ee+=ht(z[de]);return ee}function Z(z,J,Se){for(var A=z.slice(J,Se),ee="",de=0;de<A.length;de+=2)ee+=String.fromCharCode(A[de]+256*A[de+1]);return ee}function te(z,J,Se){if(z%1!=0||z<0)throw new RangeError("offset is not uint");if(z+J>Se)throw new RangeError("Trying to access beyond buffer length")}function he(z,J,Se,A,ee,de){if(!W.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>ee||J<de)throw new RangeError('"value" argument is out of bounds');if(Se+A>z.length)throw new RangeError("Index out of range")}function Ce(z,J,Se,A){J<0&&(J=65535+J+1);for(var ee=0,de=Math.min(z.length-Se,2);ee<de;++ee)z[Se+ee]=(J&255<<8*(A?ee:1-ee))>>>8*(A?ee:1-ee)}function Ae(z,J,Se,A){J<0&&(J=4294967295+J+1);for(var ee=0,de=Math.min(z.length-Se,4);ee<de;++ee)z[Se+ee]=J>>>8*(A?ee:3-ee)&255}function L(z,J,Se,A,ee,de){if(Se+A>z.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("Index out of range")}function nt(z,J,Se,A,ee){return ee||L(z,0,Se,4),D.write(z,J,Se,A,23,4),Se+4}function ct(z,J,Se,A,ee){return ee||L(z,0,Se,8),D.write(z,J,Se,A,52,8),Se+8}W.prototype.slice=function(z,J){var Se,A=this.length;if((z=~~z)<0?(z+=A)<0&&(z=0):z>A&&(z=A),(J=J===void 0?A:~~J)<0?(J+=A)<0&&(J=0):J>A&&(J=A),J<z&&(J=z),W.TYPED_ARRAY_SUPPORT)(Se=this.subarray(z,J)).__proto__=W.prototype;else{var ee=J-z;Se=new W(ee,void 0);for(var de=0;de<ee;++de)Se[de]=this[de+z]}return Se},W.prototype.readUIntLE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z],ee=1,de=0;++de<J&&(ee*=256);)A+=this[z+de]*ee;return A},W.prototype.readUIntBE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z+--J],ee=1;J>0&&(ee*=256);)A+=this[z+--J]*ee;return A},W.prototype.readUInt8=function(z,J){return J||te(z,1,this.length),this[z]},W.prototype.readUInt16LE=function(z,J){return J||te(z,2,this.length),this[z]|this[z+1]<<8},W.prototype.readUInt16BE=function(z,J){return J||te(z,2,this.length),this[z]<<8|this[z+1]},W.prototype.readUInt32LE=function(z,J){return J||te(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+16777216*this[z+3]},W.prototype.readUInt32BE=function(z,J){return J||te(z,4,this.length),16777216*this[z]+(this[z+1]<<16|this[z+2]<<8|this[z+3])},W.prototype.readIntLE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z],ee=1,de=0;++de<J&&(ee*=256);)A+=this[z+de]*ee;return A>=(ee*=128)&&(A-=Math.pow(2,8*J)),A},W.prototype.readIntBE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=J,ee=1,de=this[z+--A];A>0&&(ee*=256);)de+=this[z+--A]*ee;return de>=(ee*=128)&&(de-=Math.pow(2,8*J)),de},W.prototype.readInt8=function(z,J){return J||te(z,1,this.length),128&this[z]?-1*(255-this[z]+1):this[z]},W.prototype.readInt16LE=function(z,J){J||te(z,2,this.length);var Se=this[z]|this[z+1]<<8;return 32768&Se?4294901760|Se:Se},W.prototype.readInt16BE=function(z,J){J||te(z,2,this.length);var Se=this[z+1]|this[z]<<8;return 32768&Se?4294901760|Se:Se},W.prototype.readInt32LE=function(z,J){return J||te(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},W.prototype.readInt32BE=function(z,J){return J||te(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},W.prototype.readFloatLE=function(z,J){return J||te(z,4,this.length),D.read(this,z,!0,23,4)},W.prototype.readFloatBE=function(z,J){return J||te(z,4,this.length),D.read(this,z,!1,23,4)},W.prototype.readDoubleLE=function(z,J){return J||te(z,8,this.length),D.read(this,z,!0,52,8)},W.prototype.readDoubleBE=function(z,J){return J||te(z,8,this.length),D.read(this,z,!1,52,8)},W.prototype.writeUIntLE=function(z,J,Se,A){z=+z,J|=0,Se|=0,A||he(this,z,J,Se,Math.pow(2,8*Se)-1,0);var ee=1,de=0;for(this[J]=255&z;++de<Se&&(ee*=256);)this[J+de]=z/ee&255;return J+Se},W.prototype.writeUIntBE=function(z,J,Se,A){z=+z,J|=0,Se|=0,A||he(this,z,J,Se,Math.pow(2,8*Se)-1,0);var ee=Se-1,de=1;for(this[J+ee]=255&z;--ee>=0&&(de*=256);)this[J+ee]=z/de&255;return J+Se},W.prototype.writeUInt8=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,1,255,0),W.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[J]=255&z,J+1},W.prototype.writeUInt16LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,65535,0),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8):Ce(this,z,J,!0),J+2},W.prototype.writeUInt16BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,65535,0),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>8,this[J+1]=255&z):Ce(this,z,J,!1),J+2},W.prototype.writeUInt32LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,4294967295,0),W.TYPED_ARRAY_SUPPORT?(this[J+3]=z>>>24,this[J+2]=z>>>16,this[J+1]=z>>>8,this[J]=255&z):Ae(this,z,J,!0),J+4},W.prototype.writeUInt32BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,4294967295,0),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>24,this[J+1]=z>>>16,this[J+2]=z>>>8,this[J+3]=255&z):Ae(this,z,J,!1),J+4},W.prototype.writeIntLE=function(z,J,Se,A){if(z=+z,J|=0,!A){var ee=Math.pow(2,8*Se-1);he(this,z,J,Se,ee-1,-ee)}var de=0,Oe=1,$e=0;for(this[J]=255&z;++de<Se&&(Oe*=256);)z<0&&$e===0&&this[J+de-1]!==0&&($e=1),this[J+de]=(z/Oe>>0)-$e&255;return J+Se},W.prototype.writeIntBE=function(z,J,Se,A){if(z=+z,J|=0,!A){var ee=Math.pow(2,8*Se-1);he(this,z,J,Se,ee-1,-ee)}var de=Se-1,Oe=1,$e=0;for(this[J+de]=255&z;--de>=0&&(Oe*=256);)z<0&&$e===0&&this[J+de+1]!==0&&($e=1),this[J+de]=(z/Oe>>0)-$e&255;return J+Se},W.prototype.writeInt8=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,1,127,-128),W.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[J]=255&z,J+1},W.prototype.writeInt16LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,32767,-32768),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8):Ce(this,z,J,!0),J+2},W.prototype.writeInt16BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,32767,-32768),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>8,this[J+1]=255&z):Ce(this,z,J,!1),J+2},W.prototype.writeInt32LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,2147483647,-2147483648),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8,this[J+2]=z>>>16,this[J+3]=z>>>24):Ae(this,z,J,!0),J+4},W.prototype.writeInt32BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>24,this[J+1]=z>>>16,this[J+2]=z>>>8,this[J+3]=255&z):Ae(this,z,J,!1),J+4},W.prototype.writeFloatLE=function(z,J,Se){return nt(this,z,J,!0,Se)},W.prototype.writeFloatBE=function(z,J,Se){return nt(this,z,J,!1,Se)},W.prototype.writeDoubleLE=function(z,J,Se){return ct(this,z,J,!0,Se)},W.prototype.writeDoubleBE=function(z,J,Se){return ct(this,z,J,!1,Se)},W.prototype.copy=function(z,J,Se,A){if(Se||(Se=0),A||A===0||(A=this.length),J>=z.length&&(J=z.length),J||(J=0),A>0&&A<Se&&(A=Se),A===Se||z.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),z.length-J<A-Se&&(A=z.length-J+Se);var ee,de=A-Se;if(this===z&&Se<J&&J<A)for(ee=de-1;ee>=0;--ee)z[ee+J]=this[ee+Se];else if(de<1e3||!W.TYPED_ARRAY_SUPPORT)for(ee=0;ee<de;++ee)z[ee+J]=this[ee+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+de),J);return de},W.prototype.fill=function(z,J,Se,A){if(typeof z=="string"){if(typeof J=="string"?(A=J,J=0,Se=this.length):typeof Se=="string"&&(A=Se,Se=this.length),z.length===1){var ee=z.charCodeAt(0);ee<256&&(z=ee)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!W.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof z=="number"&&(z&=255);if(J<0||this.length<J||this.length<Se)throw new RangeError("Out of range index");if(Se<=J)return this;var de;if(J>>>=0,Se=Se===void 0?this.length:Se>>>0,z||(z=0),typeof z=="number")for(de=J;de<Se;++de)this[de]=z;else{var Oe=W.isBuffer(z)?z:fe(new W(z,A).toString()),$e=Oe.length;for(de=0;de<Se-J;++de)this[de+J]=Oe[de%$e]}return this};var Ye=/[^+\/0-9A-Za-z-_]/g;function ht(z){return z<16?"0"+z.toString(16):z.toString(16)}function fe(z,J){var Se;J=J||1/0;for(var A=z.length,ee=null,de=[],Oe=0;Oe<A;++Oe){if((Se=z.charCodeAt(Oe))>55295&&Se<57344){if(!ee){if(Se>56319){(J-=3)>-1&&de.push(239,191,189);continue}if(Oe+1===A){(J-=3)>-1&&de.push(239,191,189);continue}ee=Se;continue}if(Se<56320){(J-=3)>-1&&de.push(239,191,189),ee=Se;continue}Se=65536+(ee-55296<<10|Se-56320)}else ee&&(J-=3)>-1&&de.push(239,191,189);if(ee=null,Se<128){if((J-=1)<0)break;de.push(Se)}else if(Se<2048){if((J-=2)<0)break;de.push(Se>>6|192,63&Se|128)}else if(Se<65536){if((J-=3)<0)break;de.push(Se>>12|224,Se>>6&63|128,63&Se|128)}else{if(!(Se<1114112))throw new Error("Invalid code point");if((J-=4)<0)break;de.push(Se>>18|240,Se>>12&63|128,Se>>6&63|128,63&Se|128)}}return de}function $(z){return f.toByteArray(function(J){if((J=function(Se){return Se.trim?Se.trim():Se.replace(/^\s+|\s+$/g,"")}(J).replace(Ye,"")).length<2)return"";for(;J.length%4!=0;)J+="=";return J}(z))}function G(z,J,Se,A){for(var ee=0;ee<A&&!(ee+Se>=J.length||ee>=z.length);++ee)J[ee+Se]=z[ee];return ee}}).call(this,o(137))},function(Ie,w,o){"use strict";w.byteLength=function(y){var C=W(y),S=C[0],P=C[1];return 3*(S+P)/4-P},w.toByteArray=function(y){var C,S,P=W(y),V=P[0],k=P[1],l=new D(function(b,g,j){return 3*(g+j)/4-j}(0,V,k)),T=0,N=k>0?V-4:V;for(S=0;S<N;S+=4)C=f[y.charCodeAt(S)]<<18|f[y.charCodeAt(S+1)]<<12|f[y.charCodeAt(S+2)]<<6|f[y.charCodeAt(S+3)],l[T++]=C>>16&255,l[T++]=C>>8&255,l[T++]=255&C;return k===2&&(C=f[y.charCodeAt(S)]<<2|f[y.charCodeAt(S+1)]>>4,l[T++]=255&C),k===1&&(C=f[y.charCodeAt(S)]<<10|f[y.charCodeAt(S+1)]<<4|f[y.charCodeAt(S+2)]>>2,l[T++]=C>>8&255,l[T++]=255&C),l},w.fromByteArray=function(y){for(var C,S=y.length,P=S%3,V=[],k=0,l=S-P;k<l;k+=16383)V.push(Q(y,k,k+16383>l?l:k+16383));return P===1?(C=y[S-1],V.push(h[C>>2]+h[C<<4&63]+"==")):P===2&&(C=(y[S-2]<<8)+y[S-1],V.push(h[C>>10]+h[C>>4&63]+h[C<<2&63]+"=")),V.join("")};for(var h=[],f=[],D=typeof Uint8Array!="undefined"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,ge=H.length;E<ge;++E)h[E]=H[E],f[H.charCodeAt(E)]=E;function W(y){var C=y.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=y.indexOf("=");return S===-1&&(S=C),[S,S===C?0:4-S%4]}function Q(y,C,S){for(var P,V,k=[],l=C;l<S;l+=3)P=(y[l]<<16&16711680)+(y[l+1]<<8&65280)+(255&y[l+2]),k.push(h[(V=P)>>18&63]+h[V>>12&63]+h[V>>6&63]+h[63&V]);return k.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(Ie,w){w.read=function(o,h,f,D,H){var E,ge,W=8*H-D-1,Q=(1<<W)-1,y=Q>>1,C=-7,S=f?H-1:0,P=f?-1:1,V=o[h+S];for(S+=P,E=V&(1<<-C)-1,V>>=-C,C+=W;C>0;E=256*E+o[h+S],S+=P,C-=8);for(ge=E&(1<<-C)-1,E>>=-C,C+=D;C>0;ge=256*ge+o[h+S],S+=P,C-=8);if(E===0)E=1-y;else{if(E===Q)return ge?NaN:1/0*(V?-1:1);ge+=Math.pow(2,D),E-=y}return(V?-1:1)*ge*Math.pow(2,E-D)},w.write=function(o,h,f,D,H,E){var ge,W,Q,y=8*E-H-1,C=(1<<y)-1,S=C>>1,P=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,V=D?0:E-1,k=D?1:-1,l=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(W=isNaN(h)?1:0,ge=C):(ge=Math.floor(Math.log(h)/Math.LN2),h*(Q=Math.pow(2,-ge))<1&&(ge--,Q*=2),(h+=ge+S>=1?P/Q:P*Math.pow(2,1-S))*Q>=2&&(ge++,Q/=2),ge+S>=C?(W=0,ge=C):ge+S>=1?(W=(h*Q-1)*Math.pow(2,H),ge+=S):(W=h*Math.pow(2,S-1)*Math.pow(2,H),ge=0));H>=8;o[f+V]=255&W,V+=k,W/=256,H-=8);for(ge=ge<<H|W,y+=H;y>0;o[f+V]=255&ge,V+=k,ge/=256,y-=8);o[f+V-k]|=128*l}},function(Ie,w){var o={}.toString;Ie.exports=Array.isArray||function(h){return o.call(h)=="[object Array]"}},function(Ie,w,o){var h=o(32),f=o(207);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-aria-container { - position: absolute; /* try to hide from window but not from screen readers */ - left:-999em; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(209);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* -------------------- IE10 remove auto clear button -------------------- */ - -::-ms-clear { - display: none; -} - -/* All widgets */ -/* I am not a big fan of this rule */ -.monaco-editor .editor-widget input { - color: inherit; -} - -/* -------------------- Editor -------------------- */ - -.monaco-editor { - position: relative; - overflow: visible; - -webkit-text-size-adjust: 100%; -} - -/* -------------------- Misc -------------------- */ - -.monaco-editor .overflow-guard { - position: relative; - overflow: hidden; -} - -.monaco-editor .view-overlays { - position: absolute; - top: 0; -} - -/* -.monaco-editor .auto-closed-character { - opacity: 0.3; -} -*/ -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(211);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .inputarea { - min-width: 0; - min-height: 0; - margin: 0; - padding: 0; - position: absolute; - outline: none !important; - resize: none; - border: none; - overflow: hidden; - color: transparent; - background-color: transparent; -} -/*.monaco-editor .inputarea { - position: fixed !important; - width: 800px !important; - height: 500px !important; - top: initial !important; - left: initial !important; - bottom: 0 !important; - right: 0 !important; - color: black !important; - background: white !important; - line-height: 15px !important; - font-size: 14px !important; -}*/ -.monaco-editor .inputarea.ime-input { - z-index: 10; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(213);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .margin-view-overlays .line-numbers { - font-variant-numeric: tabular-nums; - position: absolute; - text-align: right; - display: inline-block; - vertical-align: middle; - box-sizing: border-box; - cursor: default; - height: 100%; -} - -.monaco-editor .relative-current-line-number { - text-align: left; - display: inline-block; - width: 100%; -} - -.monaco-editor .margin-view-overlays .line-numbers.lh-odd { - margin-top: 1px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(215);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-mouse-cursor-text { - cursor: text; -} - -/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */ -.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text, -.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text { - cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(217);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .view-overlays .current-line { - display: block; - position: absolute; - left: 0; - top: 0; - box-sizing: border-box; -} - -.monaco-editor .margin-view-overlays .current-line { - display: block; - position: absolute; - left: 0; - top: 0; - box-sizing: border-box; -} - -.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both { - border-right: 0; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(219);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* - Keeping name short for faster parsing. - cdr = core decorations rendering (div) -*/ -.monaco-editor .lines-content .cdr { - position: absolute; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(221);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* Arrows */ -.monaco-scrollable-element > .scrollbar > .scra { - cursor: pointer; - font-size: 11px !important; -} - -.monaco-scrollable-element > .visible { - opacity: 1; - - /* Background rule added for IE9 - to allow clicks on dom node */ - background:rgba(0,0,0,0); - - transition: opacity 100ms linear; -} -.monaco-scrollable-element > .invisible { - opacity: 0; - pointer-events: none; -} -.monaco-scrollable-element > .invisible.fade { - transition: opacity 800ms linear; -} - -/* Scrollable Content Inset Shadow */ -.monaco-scrollable-element > .shadow { - position: absolute; - display: none; -} -.monaco-scrollable-element > .shadow.top { - display: block; - top: 0; - left: 3px; - height: 3px; - width: 100%; - box-shadow: #DDD 0 6px 6px -6px inset; -} -.monaco-scrollable-element > .shadow.left { - display: block; - top: 3px; - left: 0; - height: 100%; - width: 3px; - box-shadow: #DDD 6px 0 6px -6px inset; -} -.monaco-scrollable-element > .shadow.top-left-corner { - display: block; - top: 0; - left: 0; - height: 3px; - width: 3px; -} -.monaco-scrollable-element > .shadow.top.left { - box-shadow: #DDD 6px 6px 6px -6px inset; -} - -/* ---------- Default Style ---------- */ - -.vs .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(100, 100, 100, .4); -} -.vs-dark .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(121, 121, 121, .4); -} -.hc-black .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(111, 195, 223, .6); -} - -.monaco-scrollable-element > .scrollbar > .slider:hover { - background: rgba(100, 100, 100, .7); -} -.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover { - background: rgba(111, 195, 223, .8); -} - -.monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(0, 0, 0, .6); -} -.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(191, 191, 191, .4); -} -.hc-black .monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(111, 195, 223, 1); -} - -.vs-dark .monaco-scrollable-element .shadow.top { - box-shadow: none; -} - -.vs-dark .monaco-scrollable-element .shadow.left { - box-shadow: #000 6px 0 6px -6px inset; -} - -.vs-dark .monaco-scrollable-element .shadow.top.left { - box-shadow: #000 6px 6px 6px -6px inset; -} - -.hc-black .monaco-scrollable-element .shadow.top { - box-shadow: none; -} - -.hc-black .monaco-scrollable-element .shadow.left { - box-shadow: none; -} - -.hc-black .monaco-scrollable-element .shadow.top.left { - box-shadow: none; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(223);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .glyph-margin { - position: absolute; - top: 0; -} - -/* - Keeping name short for faster parsing. - cgmr = core glyph margin rendering (div) -*/ -.monaco-editor .margin-view-overlays .cgmr { - position: absolute; - display: flex; - align-items: center; - justify-content: center; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(225);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* - Keeping name short for faster parsing. - cigr = core ident guides rendering (div) -*/ -.monaco-editor .lines-content .cigr { - position: absolute; -} -.monaco-editor .lines-content .cigra { - position: absolute; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(227);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* Uncomment to see lines flashing when they're painted */ -/*.monaco-editor .view-lines > .view-line { - background-color: none; - animation-name: flash-background; - animation-duration: 800ms; -} -@keyframes flash-background { - 0% { background-color: lightgreen; } - 100% { background-color: none } -}*/ - -.monaco-editor.no-user-select .lines-content, -.monaco-editor.no-user-select .view-line, -.monaco-editor.no-user-select .view-lines { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.monaco-editor .view-lines { - white-space: nowrap; -} - -.monaco-editor .view-line { - position: absolute; - width: 100%; -} - -.monaco-editor .mtkz { - display: inline-block; -} - -/* TODO@tokenization bootstrap fix */ -/*.monaco-editor .view-line > span > span { - float: none; - min-height: inherit; - margin-left: inherit; -}*/ -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(229);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -.monaco-editor .lines-decorations { - position: absolute; - top: 0; - background: white; -} - -/* - Keeping name short for faster parsing. - cldr = core lines decorations rendering (div) -*/ -.monaco-editor .margin-view-overlays .cldr { - position: absolute; - height: 100%; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(231);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* - Keeping name short for faster parsing. - cmdr = core margin decorations rendering (div) -*/ -.monaco-editor .margin-view-overlays .cmdr { - position: absolute; - left: 0; - width: 100%; - height: 100%; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(233);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* START cover the case that slider is visible on mouseover */ -.monaco-editor .minimap.slider-mouseover .minimap-slider { - opacity: 0; - transition: opacity 100ms linear; -} -.monaco-editor .minimap.slider-mouseover:hover .minimap-slider { - opacity: 1; -} -.monaco-editor .minimap.slider-mouseover .minimap-slider.active { - opacity: 1; -} -/* END cover the case that slider is visible on mouseover */ - -.monaco-editor .minimap-shadow-hidden { - position: absolute; - width: 0; -} -.monaco-editor .minimap-shadow-visible { - position: absolute; - left: -6px; - width: 6px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(235);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -.monaco-editor .overlayWidgets { - position: absolute; - top: 0; - left:0; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(237);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .view-ruler { - position: absolute; - top: 0; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(239);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .scroll-decoration { - position: absolute; - top: 0; - left: 0; - height: 6px; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(241);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* - Keeping name short for faster parsing. - cslr = core selections layer rendering (div) -*/ -.monaco-editor .lines-content .cslr { - position: absolute; -} - -.monaco-editor .top-left-radius { border-top-left-radius: 3px; } -.monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; } -.monaco-editor .top-right-radius { border-top-right-radius: 3px; } -.monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; } - -.monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; } -.monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; } -.monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; } -.monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; } -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(243);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -.monaco-editor .cursors-layer { - position: absolute; - top: 0; -} - -.monaco-editor .cursors-layer > .cursor { - position: absolute; - overflow: hidden; -} - -/* -- smooth-caret-animation -- */ -.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor { - transition: all 80ms; -} - -/* -- block-outline-style -- */ -.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor { - box-sizing: border-box; - background: transparent !important; - border-style: solid; - border-width: 1px; -} - -/* -- underline-style -- */ -.monaco-editor .cursors-layer.cursor-underline-style > .cursor { - border-bottom-width: 2px; - border-bottom-style: solid; - background: transparent !important; - box-sizing: border-box; -} - -/* -- underline-thin-style -- */ -.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor { - border-bottom-width: 1px; - border-bottom-style: solid; - background: transparent !important; - box-sizing: border-box; -} - -@keyframes monaco-cursor-smooth { - 0%, - 20% { - opacity: 1; - } - 60%, - 100% { - opacity: 0; - } -} - -@keyframes monaco-cursor-phase { - 0%, - 20% { - opacity: 1; - } - 90%, - 100% { - opacity: 0; - } -} - -@keyframes monaco-cursor-expand { - 0%, - 20% { - transform: scaleY(1); - } - 80%, - 100% { - transform: scaleY(0); - } -} - -.cursor-smooth { - animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate; -} - -.cursor-phase { - animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate; -} - -.cursor-expand > .cursor { - animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(245);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -/* ---------- DiffEditor ---------- */ - -.monaco-diff-editor .diffOverview { - z-index: 9; -} - -.monaco-diff-editor .diffOverview .diffViewport { - z-index: 10; -} - -/* colors not externalized: using transparancy on background */ -.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); } -.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); } - -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; } - -.monaco-scrollable-element.modified-in-monaco-diff-editor .slider { - z-index: 10; -} -.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); } -.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; } - -/* ---------- Diff ---------- */ - -.monaco-editor .insert-sign, -.monaco-diff-editor .insert-sign, -.monaco-editor .delete-sign, -.monaco-diff-editor .delete-sign { - font-size: 11px !important; - opacity: 0.7 !important; - display: flex !important; - align-items: center; -} -.monaco-editor.hc-black .insert-sign, -.monaco-diff-editor.hc-black .insert-sign, -.monaco-editor.hc-black .delete-sign, -.monaco-diff-editor.hc-black .delete-sign { - opacity: 1; -} - -.monaco-editor .inline-deleted-margin-view-zone { - text-align: right; -} -.monaco-editor .inline-added-margin-view-zone { - text-align: right; -} - -/* ---------- Inline Diff ---------- */ - -.monaco-editor .view-zones .view-lines .view-line span { - display: inline-block; -} - -.monaco-editor .margin-view-zones .lightbulb-glyph:hover { - cursor: pointer; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(247);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-sash { - position: absolute; - z-index: 35; - touch-action: none; -} - -.monaco-sash.disabled { - pointer-events: none; -} - -.monaco-sash.mac.vertical { - cursor: col-resize; -} - -.monaco-sash.vertical.minimum { - cursor: e-resize; -} - -.monaco-sash.vertical.maximum { - cursor: w-resize; -} - -.monaco-sash.mac.horizontal { - cursor: row-resize; -} - -.monaco-sash.horizontal.minimum { - cursor: s-resize; -} - -.monaco-sash.horizontal.maximum { - cursor: n-resize; -} - -.monaco-sash.disabled { - cursor: default !important; - pointer-events: none !important; -} - -/** Debug **/ - -.monaco-sash.debug { - background: cyan; -} - -.monaco-sash.debug.disabled { - background: rgba(0, 255, 255, 0.2); -} - -.monaco-sash.debug:not(.disabled).orthogonal-start::before, -.monaco-sash.debug:not(.disabled).orthogonal-end::after { - background: red; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(249);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-diff-editor .diff-review-line-number { - text-align: right; - display: inline-block; -} - -.monaco-diff-editor .diff-review { - position: absolute; - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.monaco-diff-editor .diff-review-summary { - padding-left: 10px; -} - -.monaco-diff-editor .diff-review-shadow { - position: absolute; -} - -.monaco-diff-editor .diff-review-row { - white-space: pre; -} - -.monaco-diff-editor .diff-review-table { - display: table; - min-width: 100%; -} - -.monaco-diff-editor .diff-review-row { - display: table-row; - width: 100%; -} - -.monaco-diff-editor .diff-review-spacer { - display: inline-block; - width: 10px; - vertical-align: middle; -} - -.monaco-diff-editor .diff-review-spacer > .codicon { - font-size: 9px !important; -} - -.monaco-diff-editor .diff-review-actions { - display: inline-block; - position: absolute; - right: 10px; - top: 2px; -} - -.monaco-diff-editor .diff-review-actions .action-label { - width: 16px; - height: 16px; - margin: 2px 0; -} -`,""]),Ie.exports=w},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-action-bar { - text-align: right; - white-space: nowrap; -} - -.monaco-action-bar .actions-container { - display: flex; - margin: 0 auto; - padding: 0; - width: 100%; - justify-content: flex-end; -} - -.monaco-action-bar.vertical .actions-container { - display: inline-block; -} - -.monaco-action-bar.reverse .actions-container { - flex-direction: row-reverse; -} - -.monaco-action-bar .action-item { - cursor: pointer; - display: inline-block; - transition: transform 50ms ease; - position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ -} - -.monaco-action-bar .action-item.disabled { - cursor: default; -} - -.monaco-action-bar.animated .action-item.active { - transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */ -} - -.monaco-action-bar .action-item .icon, -.monaco-action-bar .action-item .codicon { - display: inline-block; -} - -.monaco-action-bar .action-item .codicon { - display: flex; - align-items: center; -} - -.monaco-action-bar .action-label { - font-size: 11px; - margin-right: 4px; -} - -.monaco-action-bar .action-item.disabled .action-label, -.monaco-action-bar .action-item.disabled .action-label:hover { - opacity: 0.4; -} - -/* Vertical actions */ - -.monaco-action-bar.vertical { - text-align: left; -} - -.monaco-action-bar.vertical .action-item { - display: block; -} - -.monaco-action-bar.vertical .action-label.separator { - display: block; - border-bottom: 1px solid #bbb; - padding-top: 1px; - margin-left: .8em; - margin-right: .8em; -} - -.monaco-action-bar.animated.vertical .action-item.active { - transform: translate(5px, 0); -} - -.secondary-actions .monaco-action-bar .action-label { - margin-left: 6px; -} - -/* Action Items */ -.monaco-action-bar .action-item.select-container { - overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ - flex: 1; - max-width: 170px; - min-width: 60px; - display: flex; - align-items: center; - justify-content: center; - margin-right: 10px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(252);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){var h=o(33),f=o(253),D=o(254);w=h(!1);var H=f(D);w.push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -@font-face { - font-family: "codicon"; - src: url(`+H+`) format("truetype"); -} - -.codicon[class*='codicon-'] { - font: normal normal normal 16px/1 codicon; - display: inline-block; - text-decoration: none; - text-rendering: auto; - text-align: center; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -/* icon rules are dynamically created in codiconStyles */ -`,""]),Ie.exports=w},function(Ie,w,o){"use strict";Ie.exports=function(h,f){return f||(f={}),typeof(h=h&&h.__esModule?h.default:h)!="string"?h:(/^['"].*['"]$/.test(h)&&(h=h.slice(1,-1)),f.hash&&(h+=f.hash),/["'() \t\n]/.test(h)||f.needQuotes?'"'.concat(h.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):h)}},function(Ie,w,o){"use strict";o.r(w),w.default=o.p+"b3726f0165bf67ac68494ee7a1b9f6ce.ttf"},function(Ie,w,o){var h=o(32),f=o(256);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.codicon-wrench-subaction { - opacity: 0.5; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(258);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -@keyframes codicon-spin { - 100% { - transform:rotate(360deg); - } -} - -.codicon-animation-spin { - /* Use steps to throttle FPS to reduce CPU usage */ - animation: codicon-spin 1.5s steps(30) infinite; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(260);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.context-view .monaco-menu { - min-width: 130px; -} - -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(262);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.context-view { - position: absolute; - z-index: 2500; -} - -.context-view.fixed { - all: initial; - font-family: inherit; - font-size: 13px; - position: fixed; - z-index: 2500; - color: inherit; -} -`,""]),Ie.exports=w},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-list { - position: relative; - height: 100%; - width: 100%; - white-space: nowrap; -} - -.monaco-list.mouse-support { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.monaco-list > .monaco-scrollable-element { - height: 100%; -} - -.monaco-list-rows { - position: relative; - width: 100%; - height: 100%; -} - -.monaco-list.horizontal-scrolling .monaco-list-rows { - width: auto; - min-width: 100%; -} - -.monaco-list-row { - position: absolute; - box-sizing: border-box; - overflow: hidden; - width: 100%; -} - -.monaco-list.mouse-support .monaco-list-row { - cursor: pointer; - touch-action: none; -} - -/* for OS X ballistic scrolling */ -.monaco-list-row.scrolling { - display: none !important; -} - -/* Focus */ -.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple { - outline: 0 !important; -} - -.monaco-list:focus .monaco-list-row.selected .codicon { - color: inherit; -} - -/* Dnd */ -.monaco-drag-image { - display: inline-block; - padding: 1px 7px; - border-radius: 10px; - font-size: 12px; - position: absolute; -} - -/* Type filter */ - -.monaco-list-type-filter { - display: flex; - align-items: center; - position: absolute; - border-radius: 2px; - padding: 0px 3px; - max-width: calc(100% - 10px); - text-overflow: ellipsis; - overflow: hidden; - text-align: right; - box-sizing: border-box; - cursor: all-scroll; - font-size: 13px; - line-height: 18px; - height: 20px; - z-index: 1; - top: 4px; -} - -.monaco-list-type-filter.dragging { - transition: top 0.2s, left 0.2s; -} - -.monaco-list-type-filter.ne { - right: 4px; -} - -.monaco-list-type-filter.nw { - left: 4px; -} - -.monaco-list-type-filter > .controls { - display: flex; - align-items: center; - box-sizing: border-box; - transition: width 0.2s; - width: 0; -} - -.monaco-list-type-filter.dragging > .controls, -.monaco-list-type-filter:hover > .controls { - width: 36px; -} - -.monaco-list-type-filter > .controls > * { - border: none; - box-sizing: border-box; - -webkit-appearance: none; - -moz-appearance: none; - background: none; - width: 16px; - height: 16px; - flex-shrink: 0; - margin: 0; - padding: 0; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; -} - -.monaco-list-type-filter > .controls > .filter { - margin-left: 4px; -} - -.monaco-list-type-filter-message { - position: absolute; - box-sizing: border-box; - width: 100%; - height: 100%; - top: 0; - left: 0; - padding: 40px 1em 1em 1em; - text-align: center; - white-space: normal; - opacity: 0.7; - pointer-events: none; -} - -.monaco-list-type-filter-message:empty { - display: none; -} - -/* Electron */ - -.monaco-list-type-filter { - cursor: grab; -} - -.monaco-list-type-filter.dragging { - cursor: grabbing; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(265);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-tl-row { - display: flex; - height: 100%; - align-items: center; - position: relative; -} - -.monaco-tl-indent { - height: 100%; - position: absolute; - top: 0; - left: 16px; - pointer-events: none; -} - -.hide-arrows .monaco-tl-indent { - left: 12px; -} - -.monaco-tl-indent > .indent-guide { - display: inline-block; - box-sizing: border-box; - height: 100%; - border-left: 1px solid transparent; -} - -.monaco-tl-indent > .indent-guide { - transition: border-color 0.1s linear; -} - -.monaco-tl-twistie, -.monaco-tl-contents { - height: 100%; -} - -.monaco-tl-twistie { - font-size: 10px; - text-align: right; - padding-right: 6px; - flex-shrink: 0; - width: 16px; - display: flex !important; - align-items: center; - justify-content: center; - color: inherit !important; - transform: translateX(3px); -} - -.monaco-tl-contents { - flex: 1; - overflow: hidden; -} - -.monaco-tl-twistie.collapsed::before { - transform: rotate(-90deg); -} - -.monaco-tl-twistie.codicon-tree-item-loading::before { - /* Use steps to throttle FPS to reduce CPU usage */ - animation: codicon-spin 1.25s steps(30) infinite; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(267);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.quick-input-widget { - font-size: 13px; -} - -.quick-input-widget .monaco-highlighted-label .highlight, -.quick-input-widget .monaco-highlighted-label .highlight { - color: #0066BF; -} - -.vs-dark .quick-input-widget .monaco-highlighted-label .highlight, -.vs-dark .quick-input-widget .monaco-highlighted-label .highlight { - color: #0097fb; -} - -.hc-black .quick-input-widget .monaco-highlighted-label .highlight, -.hc-black .quick-input-widget .monaco-highlighted-label .highlight { - color: #F38518; -} -`,""]),Ie.exports=w},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.quick-input-widget { - position: absolute; - width: 600px; - z-index: 2000; - padding-bottom: 6px; - left: 50%; - margin-left: -300px; -} - -.quick-input-titlebar { - display: flex; -} - -.quick-input-left-action-bar { - display: flex; - margin-left: 4px; - flex: 1; -} - -.quick-input-left-action-bar.monaco-action-bar .actions-container { - justify-content: flex-start; -} - -.quick-input-title { - padding: 3px 0px; - text-align: center; -} - -.quick-input-right-action-bar { - display: flex; - margin-right: 4px; - flex: 1; -} - -.quick-input-titlebar .monaco-action-bar .action-label.codicon { - margin: 0; - width: 19px; - height: 100%; - background-position: center; - background-repeat: no-repeat; -} - -.quick-input-description { - margin: 6px; -} - -.quick-input-header { - display: flex; - padding: 6px 6px 0px 6px; - margin-bottom: -2px; -} - -.quick-input-widget.hidden-input .quick-input-header { - /* reduce margins and paddings when input box hidden */ - padding: 0; - margin-bottom: 0; -} - -.quick-input-and-message { - display: flex; - flex-direction: column; - flex-grow: 1; - position: relative; -} - -.quick-input-check-all { - align-self: center; - margin: 0; -} - -.quick-input-filter { - flex-grow: 1; - display: flex; - position: relative; -} - -.quick-input-box { - flex-grow: 1; -} - -.quick-input-widget.show-checkboxes .quick-input-box, -.quick-input-widget.show-checkboxes .quick-input-message { - margin-left: 5px; -} - -.quick-input-visible-count { - position: absolute; - left: -10000px; -} - -.quick-input-count { - align-self: center; - position: absolute; - right: 4px; - display: flex; - align-items: center; -} - -.quick-input-count .monaco-count-badge { - vertical-align: middle; - padding: 2px 4px; - border-radius: 2px; - min-height: auto; - line-height: normal; -} - -.quick-input-action { - margin-left: 6px; -} - -.quick-input-action .monaco-text-button { - font-size: 11px; - padding: 0 6px; - display: flex; - height: 100%; - align-items: center; -} - -.quick-input-message { - margin-top: -1px; - padding: 5px 5px 2px 5px; -} - -.quick-input-progress.monaco-progress-container { - position: relative; -} - -.quick-input-progress.monaco-progress-container, -.quick-input-progress.monaco-progress-container .progress-bit { - height: 2px; -} - -.quick-input-list { - line-height: 22px; - margin-top: 6px; -} - -.quick-input-widget.hidden-input .quick-input-list { - margin-top: 0; /* reduce margins when input box hidden */ -} - -.quick-input-list .monaco-list { - overflow: hidden; - max-height: calc(20 * 22px); -} - -.quick-input-list .quick-input-list-entry { - box-sizing: border-box; - overflow: hidden; - display: flex; - height: 100%; - padding: 0 6px; -} - -.quick-input-list .quick-input-list-entry.quick-input-list-separator-border { - border-top-width: 1px; - border-top-style: solid; -} - -.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border { - border-top-style: none; -} - -.quick-input-list .quick-input-list-label { - overflow: hidden; - display: flex; - height: 100%; - flex: 1; -} - -.quick-input-list .quick-input-list-checkbox { - align-self: center; - margin: 0; -} - -.quick-input-list .quick-input-list-rows { - overflow: hidden; - text-overflow: ellipsis; - display: flex; - flex-direction: column; - height: 100%; - flex: 1; - margin-left: 5px; -} - -.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows { - margin-left: 10px; -} - -.quick-input-widget .quick-input-list .quick-input-list-checkbox { - display: none; -} -.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox { - display: inline; -} - -.quick-input-list .quick-input-list-rows > .quick-input-list-row { - display: flex; - align-items: center; -} - -.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label, -.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container { - flex: 1; /* make sure the icon label grows within the row */ -} - -.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] { - vertical-align: sub; -} - -.quick-input-list .quick-input-list-rows .monaco-highlighted-label span { - opacity: 1; -} - -.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding { - margin-right: 8px; /* separate from the separator label or scrollbar if any */ -} - -.quick-input-list .quick-input-list-label-meta { - opacity: 0.7; - line-height: normal; - text-overflow: ellipsis; - overflow: hidden; -} - -.quick-input-list .monaco-highlighted-label .highlight { - font-weight: bold; -} - -.quick-input-list .quick-input-list-entry .quick-input-list-separator { - margin-right: 8px; /* separate from keybindings or actions */ -} - -.quick-input-list .quick-input-list-entry-action-bar { - display: flex; - flex: 0; - overflow: visible; -} - -.quick-input-list .quick-input-list-entry-action-bar .action-label { - /* - * By default, actions in the quick input action bar are hidden - * until hovered over them or selected. - */ - display: none; -} - -.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon { - margin: 0; - height: 100%; - padding: 0 2px; - vertical-align: middle; -} - -.quick-input-list .quick-input-list-entry-action-bar { - margin-top: 1px; -} - -.quick-input-list .quick-input-list-entry-action-bar { - margin-right: 4px; /* separate from scrollbar */ -} - -.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon { - margin-right: 4px; /* separate actions */ -} - -.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible, -.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label, -.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label { - display: flex; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(270);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* ---------- Icon label ---------- */ - -.monaco-icon-label { - display: flex; /* required for icons support :before rule */ - overflow: hidden; - text-overflow: ellipsis; -} - -.monaco-icon-label::before { - - /* svg icons rendered as background image */ - background-size: 16px; - background-position: left center; - background-repeat: no-repeat; - padding-right: 6px; - width: 16px; - height: 22px; - line-height: inherit !important; - display: inline-block; - - /* fonts icons */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - vertical-align: top; - - flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */ -} - -.monaco-icon-label > .monaco-icon-label-container { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - flex: 1; -} - -.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name { - color: inherit; - white-space: pre; /* enable to show labels that include multiple whitespaces */ -} - -.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator { - margin: 0 2px; - opacity: 0.5; -} - -.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description { - opacity: .7; - margin-left: 0.5em; - font-size: 0.9em; - white-space: pre; /* enable to show labels that include multiple whitespaces */ -} - -.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description { - opacity: .95; -} - -.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name, -.monaco-icon-label.italic > .monaco-icon-description-container > .label-description { - font-style: italic; -} - -.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name, -.monaco-icon-label.strikethrough > .monaco-icon-description-container > .label-description { - text-decoration: line-through; -} - -.monaco-icon-label::after { - opacity: 0.75; - font-size: 90%; - font-weight: 600; - padding: 0 16px 0 5px; - text-align: center; -} - -/* make sure selection color wins when a label is being selected */ -.monaco-list:focus .selected .monaco-icon-label, /* list */ -.monaco-list:focus .selected .monaco-icon-label::after -{ - color: inherit !important; -} - -.monaco-list-row.focused.selected .label-description, -.monaco-list-row.selected .label-description { - opacity: .8; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(272);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-keybinding { - display: flex; - align-items: center; - line-height: 10px; -} - -.monaco-keybinding > .monaco-keybinding-key { - display: inline-block; - border: solid 1px rgba(204, 204, 204, 0.4); - border-bottom-color: rgba(187, 187, 187, 0.4); - border-radius: 3px; - box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4); - background-color: rgba(221, 221, 221, 0.4); - vertical-align: middle; - color: #555; - font-size: 11px; - padding: 3px 5px; - margin: 0 2px; -} - -.monaco-keybinding > .monaco-keybinding-key:first-child { - margin-left: 0; -} - -.monaco-keybinding > .monaco-keybinding-key:last-child { - margin-right: 0; -} - -.hc-black .monaco-keybinding > .monaco-keybinding-key, -.vs-dark .monaco-keybinding > .monaco-keybinding-key { - background-color: rgba(128, 128, 128, 0.17); - color: #ccc; - border: solid 1px rgba(51, 51, 51, 0.6); - border-bottom-color: rgba(68, 68, 68, 0.6); - box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6); -} - -.monaco-keybinding > .monaco-keybinding-key-separator { - display: inline-block; -} - -.monaco-keybinding > .monaco-keybinding-key-chord-separator { - width: 6px; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(274);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-inputbox { - position: relative; - display: block; - padding: 0; - box-sizing: border-box; - - /* Customizable */ - font-size: inherit; -} - -.monaco-inputbox.idle { - border: 1px solid transparent; -} - -.monaco-inputbox > .wrapper > .input, -.monaco-inputbox > .wrapper > .mirror { - - /* Customizable */ - padding: 4px; -} - -.monaco-inputbox > .wrapper { - position: relative; - width: 100%; - height: 100%; -} - -.monaco-inputbox > .wrapper > .input { - display: inline-block; - box-sizing: border-box; - width: 100%; - height: 100%; - line-height: inherit; - border: none; - font-family: inherit; - font-size: inherit; - resize: none; - color: inherit; -} - -.monaco-inputbox > .wrapper > input { - text-overflow: ellipsis; -} - -.monaco-inputbox > .wrapper > textarea.input { - display: block; - -ms-overflow-style: none; /* IE 10+: hide scrollbars */ - scrollbar-width: none; /* Firefox: hide scrollbars */ - outline: none; -} - -.monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar { - display: none; /* Chrome + Safari: hide scrollbar */ -} - -.monaco-inputbox > .wrapper > textarea.input.empty { - white-space: nowrap; -} - -.monaco-inputbox > .wrapper > .mirror { - position: absolute; - display: inline-block; - width: 100%; - top: 0; - left: 0; - box-sizing: border-box; - white-space: pre-wrap; - visibility: hidden; - word-wrap: break-word; -} - -/* Context view */ - -.monaco-inputbox-container { - text-align: right; -} - -.monaco-inputbox-container .monaco-inputbox-message { - display: inline-block; - overflow: hidden; - text-align: left; - width: 100%; - box-sizing: border-box; - padding: 0.4em; - font-size: 12px; - line-height: 17px; - min-height: 34px; - margin-top: -1px; - word-wrap: break-word; -} - -/* Action bar support */ -.monaco-inputbox .monaco-action-bar { - position: absolute; - right: 2px; - top: 4px; -} - -.monaco-inputbox .monaco-action-bar .action-item { - margin-left: 2px; -} - -.monaco-inputbox .monaco-action-bar .action-item .codicon { - background-repeat: no-repeat; - width: 16px; - height: 16px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(276);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-count-badge { - padding: 3px 6px; - border-radius: 11px; - font-size: 11px; - min-width: 18px; - min-height: 18px; - line-height: 11px; - font-weight: normal; - text-align: center; - display: inline-block; - box-sizing: border-box; -} - -.monaco-count-badge.long { - padding: 2px 3px; - border-radius: 2px; - min-height: auto; - line-height: normal; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(278);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-progress-container { - width: 100%; - height: 5px; - overflow: hidden; /* keep progress bit in bounds */ -} - -.monaco-progress-container .progress-bit { - width: 2%; - height: 5px; - position: absolute; - left: 0; - display: none; -} - -.monaco-progress-container.active .progress-bit { - display: inherit; -} - -.monaco-progress-container.discrete .progress-bit { - left: 0; - transition: width 100ms linear; -} - -.monaco-progress-container.discrete.done .progress-bit { - width: 100%; -} - -.monaco-progress-container.infinite .progress-bit { - animation-name: progress; - animation-duration: 4s; - animation-iteration-count: infinite; - animation-timing-function: linear; - transform: translate3d(0px, 0px, 0px); -} - -/** - * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of - * that container. Since translateX is relative to the progress bit size, we have to multiple it with - * its relative size to the parent container: - * 50%: 50 * 50 = 2500% - * 100%: 50 * 100 - 50 (do not overflow): 4950% - */ -@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } } -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(280);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-text-button { - box-sizing: border-box; - display: flex; - width: 100%; - padding: 4px; - text-align: center; - cursor: pointer; - outline-offset: 2px !important; - justify-content: center; - align-items: center; -} - -.monaco-text-button:hover { - text-decoration: none !important; -} - -.monaco-button.disabled { - opacity: 0.4; - cursor: default; -} - -.monaco-button > .codicon { - margin: 0 0.2em; - color: inherit !important; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(282);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .selection-anchor { - background-color: #007ACC; - width: 2px !important; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(284);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .bracket-match { - box-sizing: border-box; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(286);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .monaco-editor-overlaymessage { - padding-bottom: 8px; - z-index: 10000; -} - -@keyframes fadeIn { - from { opacity: 0; } - to { opacity: 1; } -} -.monaco-editor .monaco-editor-overlaymessage.fadeIn { - animation: fadeIn 150ms ease-out; -} - -@keyframes fadeOut { - from { opacity: 1; } - to { opacity: 0; } -} -.monaco-editor .monaco-editor-overlaymessage.fadeOut { - animation: fadeOut 100ms ease-out; -} - -.monaco-editor .monaco-editor-overlaymessage .message { - padding: 1px 4px; -} - -.monaco-editor .monaco-editor-overlaymessage .anchor { - width: 0 !important; - height: 0 !important; - border-color: transparent; - border-style: solid; - z-index: 1000; - border-width: 8px; - position: absolute; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(288);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .lightbulb-glyph, -.monaco-editor .codicon-lightbulb { - display: flex; - align-items: center; - justify-content: center; - height: 16px; - width: 20px; - padding-left: 2px; -} - -.monaco-editor .lightbulb-glyph:hover, -.monaco-editor .codicon-lightbulb:hover { - cursor: pointer; - /* transform: scale(1.3, 1.3); */ -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(290);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .codelens-decoration { - overflow: hidden; - display: inline-block; - text-overflow: ellipsis; -} - -.monaco-editor .codelens-decoration > span, -.monaco-editor .codelens-decoration > a { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - white-space: nowrap; - vertical-align: sub; -} - -.monaco-editor .codelens-decoration > a { - text-decoration: none; -} - -.monaco-editor .codelens-decoration > a:hover { - cursor: pointer; -} - -.monaco-editor .codelens-decoration .codicon { - vertical-align: middle; - color: currentColor !important; -} - -.monaco-editor .codelens-decoration > a:hover .codicon::before { - cursor: pointer; -} - -@keyframes fadein { - 0% { opacity: 0; visibility: visible;} - 100% { opacity: 1; } -} - -.monaco-editor .codelens-decoration.fadein { - animation: fadein 0.1s linear; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(292);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor.vs .dnd-target { - border-right: 2px dotted black; - color: white; /* opposite of black */ -} -.monaco-editor.vs-dark .dnd-target { - border-right: 2px dotted #AEAFAD; - color: #51504f; /* opposite of #AEAFAD */ -} -.monaco-editor.hc-black .dnd-target { - border-right: 2px dotted #fff; - color: #000; /* opposite of #fff */ -} - -.monaco-editor.mouse-default .view-lines, -.monaco-editor.vs-dark.mac.mouse-default .view-lines, -.monaco-editor.hc-black.mac.mouse-default .view-lines { - cursor: default; -} -.monaco-editor.mouse-copy .view-lines, -.monaco-editor.vs-dark.mac.mouse-copy .view-lines, -.monaco-editor.hc-black.mac.mouse-copy .view-lines { - cursor: copy; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(294);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-custom-checkbox { - margin-left: 2px; - float: left; - cursor: pointer; - overflow: hidden; - opacity: 0.7; - width: 20px; - height: 20px; - border: 1px solid transparent; - padding: 1px; - box-sizing: border-box; - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.monaco-custom-checkbox:hover, -.monaco-custom-checkbox.checked { - opacity: 1; -} - -.hc-black .monaco-custom-checkbox { - background: none; -} - -.hc-black .monaco-custom-checkbox:hover { - background: none; -} - -.monaco-custom-checkbox.monaco-simple-checkbox { - height: 18px; - width: 18px; - border: 1px solid transparent; - border-radius: 3px; - margin-right: 9px; - margin-left: 0px; - padding: 0px; - opacity: 1; - background-size: 16px !important; -} - -/* hide check when unchecked */ -.monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before { - visibility: hidden;; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(296);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* Find widget */ -.monaco-editor .find-widget { - position: absolute; - z-index: 50; - height: 33px; - overflow: hidden; - line-height: 19px; - transition: transform 200ms linear; - padding: 0 4px; - box-sizing: border-box; - transform: translateY(calc(-100% - 10px)); /* shadow (10px) */ -} - -.monaco-editor .find-widget textarea { - margin: 0px; -} - -.monaco-editor .find-widget.hiddenEditor { - display: none; -} - -/* Find widget when replace is toggled on */ -.monaco-editor .find-widget.replaceToggled > .replace-part { - display: flex; -} - -.monaco-editor .find-widget.visible { - transform: translateY(0); -} - -.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { - outline: 1px solid -webkit-focus-ring-color; - outline-offset: -1px; -} - -.monaco-editor .find-widget .monaco-inputbox .input { - background-color: transparent; - min-height: 0; -} - -.monaco-editor .find-widget .monaco-findInput .input { - font-size: 13px; -} - -.monaco-editor .find-widget > .find-part, -.monaco-editor .find-widget > .replace-part { - margin: 4px 0 0 17px; - font-size: 12px; - display: flex; -} - -.monaco-editor .find-widget > .find-part .monaco-inputbox, -.monaco-editor .find-widget > .replace-part .monaco-inputbox { - min-height: 25px; -} - - -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror { - padding-right: 22px; -} - -.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input, -.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .mirror, -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input, -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror { - padding-top: 2px; - padding-bottom: 2px; -} - -.monaco-editor .find-widget > .find-part .find-actions { - height: 25px; - display: flex; - align-items: center; -} - -.monaco-editor .find-widget > .replace-part .replace-actions { - height: 25px; - display: flex; - align-items: center; -} - -.monaco-editor .find-widget .monaco-findInput { - vertical-align: middle; - display: flex; - flex:1; -} - -.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element { - /* Make sure textarea inherits the width correctly */ - width: 100%; -} - -.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical { - /* Hide vertical scrollbar */ - opacity: 0; -} - -.monaco-editor .find-widget .matchesCount { - display: flex; - flex: initial; - margin: 0 0 0 3px; - padding: 2px 0 0 2px; - height: 25px; - vertical-align: middle; - box-sizing: border-box; - text-align: center; - line-height: 23px; -} - -.monaco-editor .find-widget .button { - width: 20px; - height: 20px; - display: flex; - flex: initial; - margin-left: 3px; - background-position: center center; - background-repeat: no-repeat; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; -} - -.monaco-editor .find-widget .button.left { - margin-left: 0; - margin-right: 3px; -} - -.monaco-editor .find-widget .button.wide { - width: auto; - padding: 1px 6px; - top: -1px; -} - -.monaco-editor .find-widget .button.toggle { - position: absolute; - top: 0; - left: 3px; - width: 18px; - height: 100%; - box-sizing: border-box; -} - -.monaco-editor .find-widget .button.toggle.disabled { - display: none; -} - -.monaco-editor .find-widget .disabled { - opacity: 0.3; - cursor: default; -} - -.monaco-editor .find-widget > .replace-part { - display: none; -} - -.monaco-editor .find-widget > .replace-part > .monaco-findInput { - position: relative; - display: flex; - vertical-align: middle; - flex: auto; - flex-grow: 0; - flex-shrink: 0; -} - -.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls { - position: absolute; - top: 3px; - right: 2px; -} - -/* REDUCED */ -.monaco-editor .find-widget.reduced-find-widget .matchesCount { - display:none; -} - -/* NARROW (SMALLER THAN REDUCED) */ -.monaco-editor .find-widget.narrow-find-widget { - max-width: 257px !important; -} - -/* COLLAPSED (SMALLER THAN NARROW) */ -.monaco-editor .find-widget.collapsed-find-widget { - max-width: 170px !important; -} - -.monaco-editor .find-widget.collapsed-find-widget .button.previous, -.monaco-editor .find-widget.collapsed-find-widget .button.next, -.monaco-editor .find-widget.collapsed-find-widget .button.replace, -.monaco-editor .find-widget.collapsed-find-widget .button.replace-all, -.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls { - display:none; -} - -.monaco-editor .findMatch { - animation-duration: 0; - animation-name: inherit !important; -} - -.monaco-editor .find-widget .monaco-sash { - left: 0 !important; -} - -.monaco-editor.hc-black .find-widget .button:before { - position: relative; - top: 1px; - left: 2px; -} -`,""]),Ie.exports=w},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -/* ---------- Find input ---------- */ - -.monaco-findInput { - position: relative; -} - -.monaco-findInput .monaco-inputbox { - font-size: 13px; - width: 100%; -} - -.monaco-findInput > .controls { - position: absolute; - top: 3px; - right: 2px; -} - -.vs .monaco-findInput.disabled { - background-color: #E1E1E1; -} - -/* Theming */ -.vs-dark .monaco-findInput.disabled { - background-color: #333; -} - -/* Highlighting */ -.monaco-findInput.highlight-0 .controls { - animation: monaco-findInput-highlight-0 100ms linear 0s; -} -.monaco-findInput.highlight-1 .controls { - animation: monaco-findInput-highlight-1 100ms linear 0s; -} -.hc-black .monaco-findInput.highlight-0 .controls, -.vs-dark .monaco-findInput.highlight-0 .controls { - animation: monaco-findInput-highlight-dark-0 100ms linear 0s; -} -.hc-black .monaco-findInput.highlight-1 .controls, -.vs-dark .monaco-findInput.highlight-1 .controls { - animation: monaco-findInput-highlight-dark-1 100ms linear 0s; -} - -@keyframes monaco-findInput-highlight-0 { - 0% { background: rgba(253, 255, 0, 0.8); } - 100% { background: transparent; } -} -@keyframes monaco-findInput-highlight-1 { - 0% { background: rgba(253, 255, 0, 0.8); } - /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ - 99% { background: transparent; } -} - -@keyframes monaco-findInput-highlight-dark-0 { - 0% { background: rgba(255, 255, 255, 0.44); } - 100% { background: transparent; } -} -@keyframes monaco-findInput-highlight-dark-1 { - 0% { background: rgba(255, 255, 255, 0.44); } - /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ - 99% { background: transparent; } -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(299);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .margin-view-overlays .codicon-folding-expanded, -.monaco-editor .margin-view-overlays .codicon-folding-collapsed { - cursor: pointer; - opacity: 0; - transition: opacity 0.5s; - display: flex; - align-items: center; - justify-content: center; - font-size: 140%; - margin-left: 2px; -} - -.monaco-editor .margin-view-overlays:hover .codicon, -.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed, -.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons { - opacity: 1; -} - -.monaco-editor .inline-folded:after { - color: grey; - margin: 0.1em 0.2em 0 0.2em; - content: "\u22EF"; - display: inline; - line-height: 1em; - cursor: pointer; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(301);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .peekview-widget .head { - box-sizing: border-box; - display: flex; -} - -.monaco-editor .peekview-widget .head .peekview-title { - display: flex; - align-items: center; - font-size: 13px; - margin-left: 20px; - cursor: pointer; - min-width: 0; -} - -.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) { - font-size: 0.9em; - margin-left: 0.5em; -} - -.monaco-editor .peekview-widget .head .peekview-title .meta { - white-space: nowrap; -} - -.monaco-editor .peekview-widget .head .peekview-title .dirname { - white-space: nowrap; -} - -.monaco-editor .peekview-widget .head .peekview-title .filename { - overflow: hidden; - text-overflow: ellipsis; -} - -.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before { - content: '-'; - padding: 0 0.3em; -} - -.monaco-editor .peekview-widget .head .peekview-actions { - flex: 1; - text-align: right; - padding-right: 2px; -} - -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar { - display: inline-block; -} - -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar, -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container { - height: 100%; -} - -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item { - margin-left: 4px; -} - -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label { - width: 16px; - height: 100%; - margin: 0; - line-height: inherit; - background-repeat: no-repeat; - background-position: center center; -} - -.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.codicon { - margin: 0; -} - -.monaco-editor .peekview-widget > .body { - border-top: 1px solid; - position: relative; -} - -.monaco-editor .peekview-widget .head .peekview-title .codicon { - margin-right: 4px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(303);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -.monaco-editor .zone-widget { - position: absolute; - z-index: 10; -} - - -.monaco-editor .zone-widget .zone-widget-container { - border-top-style: solid; - border-bottom-style: solid; - border-top-width: 0; - border-bottom-width: 0; - position: relative; -} -`,""]),Ie.exports=w},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-dropdown { - height: 100%; - padding: 0; -} - -.monaco-dropdown > .dropdown-label { - cursor: pointer; - height: 100%; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(306);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* -- zone widget */ -.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget { - border-top-width: 1px; - border-bottom-width: 1px; -} - -.monaco-editor .reference-zone-widget .inline { - display: inline-block; - vertical-align: top; -} - -.monaco-editor .reference-zone-widget .messages { - height: 100%; - width: 100%; - text-align: center; - padding: 3em 0; -} - -.monaco-editor .reference-zone-widget .ref-tree { - line-height: 23px; -} - -.monaco-editor .reference-zone-widget .ref-tree .reference { - text-overflow: ellipsis; - overflow: hidden; -} - -.monaco-editor .reference-zone-widget .ref-tree .reference-file { - display: inline-flex; - width: 100%; - height: 100%; -} - -.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file { - color: inherit !important; -} - -.monaco-editor .reference-zone-widget .ref-tree .reference-file .count { - margin-right: 12px; - margin-left: auto; -} - -/* High Contrast Theming */ - -.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file { - font-weight: bold; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(308);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-split-view2 { - position: relative; - width: 100%; - height: 100%; -} - -.monaco-split-view2 > .sash-container { - position: absolute; - width: 100%; - height: 100%; - pointer-events: none; -} - -.monaco-split-view2 > .sash-container > .monaco-sash { - pointer-events: initial; -} - -.monaco-split-view2 > .split-view-container { - width: 100%; - height: 100%; - white-space: nowrap; - position: relative; -} - -.monaco-split-view2 > .split-view-container > .split-view-view { - white-space: initial; - position: absolute; -} - -.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) { - display: none; -} - -.monaco-split-view2.vertical > .split-view-container > .split-view-view { - width: 100%; -} - -.monaco-split-view2.horizontal > .split-view-container > .split-view-view { - height: 100%; -} - -.monaco-split-view2.separator-border > .split-view-container > .split-view-view:not(:first-child)::before { - content: ' '; - position: absolute; - top: 0; - left: 0; - z-index: 5; - pointer-events: none; - background-color: var(--separator-border); -} - -.monaco-split-view2.separator-border.horizontal > .split-view-container > .split-view-view:not(:first-child)::before { - height: 100%; - width: 1px; -} - -.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before { - height: 1px; - width: 100%; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(310);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .goto-definition-link { - text-decoration: underline; - cursor: pointer; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(312);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* marker zone */ - -.monaco-editor .peekview-widget .head .peekview-title .severity-icon { - display: inline-block; - vertical-align: text-top; - margin-right: 4px; -} - -.monaco-editor .marker-widget { - text-overflow: ellipsis; - white-space: nowrap; -} - -.monaco-editor .marker-widget > .stale { - opacity: 0.6; - font-style: italic; -} - -.monaco-editor .marker-widget .title { - display: inline-block; - padding-right: 5px; -} - -.monaco-editor .marker-widget .descriptioncontainer { - position: absolute; - white-space: pre; - user-select: text; - -webkit-user-select: text; - -ms-user-select: text; - padding: 8px 12px 0 20px; -} - -.monaco-editor .marker-widget .descriptioncontainer .message { - display: flex; - flex-direction: column; -} - -.monaco-editor .marker-widget .descriptioncontainer .message .details { - padding-left: 6px; -} - -.monaco-editor .marker-widget .descriptioncontainer .message .source, -.monaco-editor .marker-widget .descriptioncontainer .message span.code { - opacity: 0.6; -} - -.monaco-editor .marker-widget .descriptioncontainer .message a.code-link { - opacity: 0.6; - color: inherit; -} -.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before { - content: '('; -} -.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after { - content: ')'; -} -.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span { - text-decoration: underline; - /** Hack to force underline to show **/ - border-bottom: 1px solid transparent; - text-underline-position: under; -} - -.monaco-editor .marker-widget .descriptioncontainer .filename { - cursor: pointer; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(314);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.colorpicker-widget { - height: 190px; - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -.monaco-editor .colorpicker-hover:focus { - outline: none; -} - - -/* Header */ - -.colorpicker-header { - display: flex; - height: 24px; - position: relative; - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="); - background-size: 9px 9px; - image-rendering: pixelated; -} - -.colorpicker-header .picked-color { - width: 216px; - text-align: center; - line-height: 24px; - cursor: pointer; - color: white; - flex: 1; - text-align: center; -} - -.colorpicker-header .picked-color.light { - color: black; -} - -.colorpicker-header .original-color { - width: 74px; - z-index: inherit; - cursor: pointer; -} - - -/* Body */ - -.colorpicker-body { - display: flex; - padding: 8px; - position: relative; -} - -.colorpicker-body .saturation-wrap { - overflow: hidden; - height: 150px; - position: relative; - min-width: 220px; - flex: 1; -} - -.colorpicker-body .saturation-box { - height: 150px; - position: absolute; -} - -.colorpicker-body .saturation-selection { - width: 9px; - height: 9px; - margin: -5px 0 0 -5px; - border: 1px solid rgb(255, 255, 255); - border-radius: 100%; - box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8); - position: absolute; -} - -.colorpicker-body .strip { - width: 25px; - height: 150px; -} - -.colorpicker-body .hue-strip { - position: relative; - margin-left: 8px; - cursor: grab; - background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); -} - -.colorpicker-body .opacity-strip { - position: relative; - margin-left: 8px; - cursor: grab; - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="); - background-size: 9px 9px; - image-rendering: pixelated; -} - -.colorpicker-body .strip.grabbing { - cursor: grabbing; -} - -.colorpicker-body .slider { - position: absolute; - top: 0; - left: -2px; - width: calc(100% + 4px); - height: 4px; - box-sizing: border-box; - border: 1px solid rgba(255, 255, 255, 0.71); - box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85); -} - -.colorpicker-body .strip .overlay { - height: 150px; - pointer-events: none; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(316);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-hover { - cursor: default; - position: absolute; - overflow: hidden; - z-index: 50; - user-select: text; - -webkit-user-select: text; - -ms-user-select: text; - box-sizing: initial; - animation: fadein 100ms linear; - line-height: 1.5em; -} - -.monaco-hover.hidden { - display: none; -} - -.monaco-hover .hover-contents { - padding: 4px 8px; -} - -.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) { - max-width: 500px; - word-wrap: break-word; -} - -.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr { - /* This is a strange rule but it avoids https://github.com/microsoft/vscode/issues/96795, just 100vw on its own caused the actual hover width to increase */ - min-width: calc(100% + 100vw); -} - -.monaco-hover p, -.monaco-hover .code, -.monaco-hover ul { - margin: 8px 0; -} - -.monaco-hover code { - font-family: var(--monaco-monospace-font); -} - -.monaco-hover hr { - margin-top: 4px; - margin-bottom: -4px; - margin-left: -10px; - margin-right: -10px; - height: 1px; -} - -.monaco-hover p:first-child, -.monaco-hover .code:first-child, -.monaco-hover ul:first-child { - margin-top: 0; -} - -.monaco-hover p:last-child, -.monaco-hover .code:last-child, -.monaco-hover ul:last-child { - margin-bottom: 0; -} - -/* MarkupContent Layout */ -.monaco-hover ul { - padding-left: 20px; -} -.monaco-hover ol { - padding-left: 20px; -} - -.monaco-hover li > p { - margin-bottom: 0; -} - -.monaco-hover li > ul { - margin-top: 0; -} - -.monaco-hover code { - border-radius: 3px; - padding: 0 0.4em; -} - -.monaco-hover .monaco-tokenized-source { - white-space: pre-wrap; - word-break: break-all; -} - -.monaco-hover .hover-row.status-bar { - font-size: 12px; - line-height: 22px; -} - -.monaco-hover .hover-row.status-bar .actions { - display: flex; - padding: 0px 8px; -} - -.monaco-hover .hover-row.status-bar .actions .action-container { - margin-right: 16px; - cursor: pointer; -} - -.monaco-hover .hover-row.status-bar .actions .action-container .action .icon { - padding-right: 4px; -} - -.monaco-hover .markdown-hover .hover-contents .codicon { - color: inherit; - font-size: inherit; - vertical-align: middle; -} - -.monaco-hover .hover-contents a.code-link:before { - content: '('; -} -.monaco-hover .hover-contents a.code-link:after { - content: ')'; -} - -.monaco-hover .hover-contents a.code-link { - color: inherit; -} -.monaco-hover .hover-contents a.code-link > span { - text-decoration: underline; - /** Hack to force underline to show **/ - border-bottom: 1px solid transparent; - text-underline-position: under; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(318);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -.monaco-editor .detected-link, -.monaco-editor .detected-link-active { - text-decoration: underline; - text-underline-position: under; -} - -.monaco-editor .detected-link-active { - cursor: pointer; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(320);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .parameter-hints-widget { - z-index: 10; - display: flex; - flex-direction: column; - line-height: 1.5em; -} - -.monaco-editor .parameter-hints-widget > .wrapper { - max-width: 440px; - display: flex; - flex-direction: row; -} - -.monaco-editor .parameter-hints-widget.multiple { - min-height: 3.3em; - padding: 0; -} - -.monaco-editor .parameter-hints-widget.visible { - transition: left .05s ease-in-out; -} - -.monaco-editor .parameter-hints-widget p, -.monaco-editor .parameter-hints-widget ul { - margin: 8px 0; -} - -.monaco-editor .parameter-hints-widget .monaco-scrollable-element, -.monaco-editor .parameter-hints-widget .body { - display: flex; - flex: 1; - flex-direction: column; - min-height: 100%; -} - -.monaco-editor .parameter-hints-widget .signature { - padding: 4px 5px; -} - -.monaco-editor .parameter-hints-widget .docs { - padding: 0 10px 0 5px; - white-space: pre-wrap; -} - -.monaco-editor .parameter-hints-widget .docs.empty { - display: none; -} - -.monaco-editor .parameter-hints-widget .docs .markdown-docs { - white-space: initial; -} - -.monaco-editor .parameter-hints-widget .docs .markdown-docs code { - font-family: var(--monaco-monospace-font); -} - -.monaco-editor .parameter-hints-widget .docs .code { - white-space: pre-wrap; -} - -.monaco-editor .parameter-hints-widget .docs code { - border-radius: 3px; - padding: 0 0.4em; -} - -.monaco-editor .parameter-hints-widget .controls { - display: none; - flex-direction: column; - align-items: center; - min-width: 22px; - justify-content: flex-end; -} - -.monaco-editor .parameter-hints-widget.multiple .controls { - display: flex; - padding: 0 2px; -} - -.monaco-editor .parameter-hints-widget.multiple .button { - width: 16px; - height: 16px; - background-repeat: no-repeat; - cursor: pointer; -} - -.monaco-editor .parameter-hints-widget .button.previous { - bottom: 24px; -} - -.monaco-editor .parameter-hints-widget .overloads { - text-align: center; - height: 12px; - line-height: 12px; - opacity: 0.5; - font-family: var(--monaco-monospace-font); -} - -.monaco-editor .parameter-hints-widget .signature .parameter.active { - font-weight: bold; - text-decoration: underline; -} - -.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter { - font-weight: bold; - margin-right: 0.5em; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(322);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .on-type-rename-decoration { - border-left: 1px solid transparent; - /* So border can be transparent */ - background-clip: padding-box; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(324);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .rename-box { - z-index: 100; - color: inherit; -} - -.monaco-editor .rename-box.preview { - padding: 3px 3px 0 3px; -} - -.monaco-editor .rename-box .rename-input { - padding: 3px; - width: calc(100% - 6px); -} - -.monaco-editor .rename-box .rename-label { - display: none; - opacity: .8; -} - -.monaco-editor .rename-box.preview .rename-label { - display: inherit; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(326);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .snippet-placeholder { - min-width: 2px; - outline-style: solid; - outline-width: 1px; -} - -.monaco-editor .finish-snippet-placeholder { - outline-style: solid; - outline-width: 1px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(328);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* Suggest widget*/ -.monaco-editor .suggest-widget { - z-index: 40; -} - -/** Initial widths **/ - -.monaco-editor .suggest-widget { - width: 430px; -} - -.monaco-editor .suggest-widget > .message, -.monaco-editor .suggest-widget > .tree, -.monaco-editor .suggest-widget > .details { - width: 100%; - border-style: solid; - border-width: 1px; - box-sizing: border-box; -} - -.monaco-editor.hc-black .suggest-widget > .message, -.monaco-editor.hc-black .suggest-widget > .tree, -.monaco-editor.hc-black .suggest-widget > .details { - border-width: 2px; -} - -/** Adjust width when docs are expanded to the side **/ -.monaco-editor .suggest-widget.docs-side { - width: 660px; -} - -.monaco-editor .suggest-widget.docs-side > .tree, -.monaco-editor .suggest-widget.docs-side > .details { - width: 50%; - float: left; -} - -.monaco-editor .suggest-widget.docs-side.list-right > .tree, -.monaco-editor .suggest-widget.docs-side.list-right > .details { - float: right; -} - -/* MarkupContent Layout */ -.monaco-editor .suggest-widget > .details ul { - padding-left: 20px; -} -.monaco-editor .suggest-widget > .details ol { - padding-left: 20px; -} - -.monaco-editor .suggest-widget > .details p code { - font-family: var(--monaco-monospace-font); -} - -/* Styles for Message element for when widget is loading or is empty */ -.monaco-editor .suggest-widget > .message { - padding-left: 22px; -} - -/** Styles for the list element **/ -.monaco-editor .suggest-widget > .tree { - height: 100%; -} - -.monaco-editor .suggest-widget .monaco-list { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} - -/** Styles for each row in the list element **/ - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row { - display: flex; - -mox-box-sizing: border-box; - box-sizing: border-box; - padding-right: 10px; - background-repeat: no-repeat; - background-position: 2px 2px; - white-space: nowrap; - cursor: pointer; - touch-action: none; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents { - flex: 1; - height: 100%; - overflow: hidden; - padding-left: 2px; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main { - display: flex; - overflow: hidden; - text-overflow: ellipsis; - white-space: pre; - justify-content: space-between; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left, -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { - display: flex; -} - -.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight { - font-weight: bold; -} - -/** Status Bar **/ - -.monaco-editor .suggest-widget > .suggest-status-bar { - visibility: hidden; - - position: absolute; - left: 0; - - box-sizing: border-box; - - display: flex; - flex-flow: row nowrap; - justify-content: space-between; - - width: 100%; - - font-size: 80%; - - border-left-width: 1px; - border-left-style: solid; - border-right-width: 1px; - border-right-style: solid; - border-bottom-width: 1px; - border-bottom-style: solid; - - padding: 0 8px 0 4px; -} - -.monaco-editor .suggest-widget.list-right.docs-side > .suggest-status-bar { - left: auto; - right: 0; -} -.monaco-editor .suggest-widget.docs-side > .suggest-status-bar { - width: 50%; -} - -/** ReadMore Icon styles **/ - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close, -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before { - color: inherit; - opacity: 1; - font-size: 14px; - cursor: pointer; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close { - position: absolute; - top: 2px; - right: 2px; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover, -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover { - opacity: 1; -} - -/** signature, qualifier, type/details opacity **/ -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label, -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label, -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label { - opacity: 0.7; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label { - overflow: hidden; - text-overflow: ellipsis; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label { - margin-left: 4px; - opacity: 0.4; - font-size: 90%; - text-overflow: ellipsis; - overflow: hidden; - line-height: 17px; - align-self: center; -} - -/** Type Info and icon next to the label in the focused completion item **/ - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label { - margin-left: 0.8em; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source { - display: inline; -} - -/** Details: if using CompletionItem#details, show on focus **/ - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label, -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { - display: none; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { - display: inline; -} - -/** Details: if using CompletionItemLabel#details, always show **/ - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label, -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label { - display: inline; -} - -/** Ellipsis on hover **/ -.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { - width: calc(100% - 26px); -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left { - flex-shrink: 1; - flex-grow: 1; - overflow: hidden; -} -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label { - flex-shrink: 0; -} -.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label { - max-width: 100%; -} -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label { - flex-shrink: 1; -} -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { - overflow: hidden; - margin-left: 16px; - flex-shrink: 0; - max-width: 45%; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { - display: inline-block; - position: absolute; - right: 10px; - width: 18px; - height: 18px; - visibility: hidden; -} - -/** Do NOT display ReadMore when docs is side/below **/ -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, -.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { - display: none !important; -} - -/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/ -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore { - display: none; -} -/** Focused item can show ReadMore, but can't when docs is side/below **/ -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore { - display: inline-block; -} - -.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, -.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { - display: none; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore { - visibility: visible; -} - -/** Styles for each row in the list **/ - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated { - opacity: 0.66; - text-decoration: unset; -} -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container { - text-decoration: line-through; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before { - height: 100%; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon { - display: block; - height: 16px; - width: 16px; - margin-left: 2px; - background-repeat: no-repeat; - background-size: 80%; - background-position: center; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide { - display: none; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon { - display: flex; - align-items: center; - margin-right: 4px; -} - -.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon, -.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before { - display: none; -} - -.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan { - margin: 0 0 0 0.3em; - border: 0.1em solid #000; - width: 0.7em; - height: 0.7em; - display: inline-block; -} - -/** Styles for the docs of the completion item in focus **/ -.monaco-editor .suggest-widget .details { - display: flex; - flex-direction: column; - cursor: default; -} - -.monaco-editor .suggest-widget .details.no-docs { - display: none; -} - -.monaco-editor .suggest-widget.docs-below .details { - border-top-width: 0; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element { - flex: 1; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body { - position: absolute; - box-sizing: border-box; - height: 100%; - width: 100%; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .type { - flex: 2; - overflow: hidden; - text-overflow: ellipsis; - opacity: 0.7; - word-break: break-all; - margin: 0 24px 0 0; - padding: 4px 0 12px 5px; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs { - margin: 0; - padding: 4px 5px; - white-space: pre-wrap; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs { - padding: 0; - white-space: initial; - min-height: calc(1rem + 8px); -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div, -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) { - padding: 4px 5px; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child { - margin-top: 0; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child { - margin-bottom: 0; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs .code { - white-space: pre-wrap; - word-wrap: break-word; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon { - vertical-align: sub; -} - -.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > p:empty { - display: none; -} - -.monaco-editor .suggest-widget .details code { - border-radius: 3px; - padding: 0 0.4em; -} - - -/* replace/insert decorations */ - -.monaco-editor .suggest-insert-unexpected { - font-style: italic; -} - -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(330);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar { - visibility: visible; -} -.monaco-editor .suggest-widget.with-status-bar > .tree { - margin-bottom: 18px; -} - -.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label { - min-height: 18px; - opacity: 0.5; - color: inherit; -} - -.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label { - margin-right: 0; -} - -.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after { - content: ', '; - margin-right: 0.3em; -} - -.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, -.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore { - display: none; -} - -.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { - width: 100%; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(332);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label, -.monaco-list .monaco-list-row.focused.selected .outline-element-decoration { - /* make sure selection color wins when a label is being selected */ - color: inherit !important; -} - -.monaco-list .outline-element { - display: flex; - flex: 1; - flex-flow: row nowrap; - align-items: center; -} - -.monaco-list .outline-element .monaco-highlighted-label { - color: var(--outline-element-color); -} - -.monaco-list .outline-element .outline-element-decoration { - opacity: 0.75; - font-size: 90%; - font-weight: 600; - padding: 0 12px 0 5px; - margin-left: auto; - text-align: center; - color: var(--outline-element-color); -} - -.monaco-list .outline-element .outline-element-decoration.bubble { - font-family: codicon; - font-size: 14px; - opacity: 0.4; -} - -.monaco-list .outline-element .outline-element-icon { - margin-right: 4px; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(334);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-icon-label.deprecated { - text-decoration: line-through; - opacity: 0.66; -} -`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(336);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .accessibilityHelpWidget { - padding: 10px; - vertical-align: middle; - overflow: scroll; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(338);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .iPadShowKeyboard { - width: 58px; - min-width: 0; - height: 36px; - min-height: 0; - margin: 0; - padding: 0; - position: absolute; - resize: none; - overflow: hidden; - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat; - border: 4px solid #F6F6F6; - border-radius: 4px; -} - -.monaco-editor.vs-dark .iPadShowKeyboard { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat; - border: 4px solid #252526; -}`,""]),Ie.exports=w},function(Ie,w,o){var h=o(32),f=o(340);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var D={insert:"head",singleton:!1};h(f,D),Ie.exports=f.locals||{}},function(Ie,w,o){(w=o(33)(!1)).push([Ie.i,`/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .tokens-inspect-widget { - z-index: 50; - user-select: text; - -webkit-user-select: text; - -ms-user-select: text; - padding: 10px; -} - -.tokens-inspect-separator { - height: 1px; - border: 0; -} - -.monaco-editor .tokens-inspect-widget .tm-token { - font-family: var(--monaco-monospace-font); -} - -.monaco-editor .tokens-inspect-widget .tm-token-length { - font-weight: normal; - font-size: 60%; - float: right; -} - -.monaco-editor .tokens-inspect-widget .tm-metadata-table { - width: 100%; -} - -.monaco-editor .tokens-inspect-widget .tm-metadata-value { - font-family: var(--monaco-monospace-font); - text-align: right; -} - -.monaco-editor .tokens-inspect-widget .tm-token-type { - font-family: var(--monaco-monospace-font); -} -`,""]),Ie.exports=w},,function(Ie,w,o){"use strict";o.r(w),o.d(w,"CancellationTokenSource",function(){return ge.a}),o.d(w,"Emitter",function(){return ge.b}),o.d(w,"KeyCode",function(){return ge.c}),o.d(w,"KeyMod",function(){return ge.d}),o.d(w,"Position",function(){return ge.g}),o.d(w,"Range",function(){return ge.h}),o.d(w,"Selection",function(){return ge.i}),o.d(w,"SelectionDirection",function(){return ge.j}),o.d(w,"MarkerSeverity",function(){return ge.e}),o.d(w,"MarkerTag",function(){return ge.f}),o.d(w,"Uri",function(){return ge.l}),o.d(w,"Token",function(){return ge.k}),o.d(w,"editor",function(){return ge.m}),o.d(w,"languages",function(){return ge.n});var h,f,D,H,E,ge=o(108),W=o(29);(function(u){u[u.None=0]="None",u[u.CommonJS=1]="CommonJS",u[u.AMD=2]="AMD",u[u.UMD=3]="UMD",u[u.System=4]="System",u[u.ES2015=5]="ES2015",u[u.ESNext=99]="ESNext"})(h||(h={})),function(u){u[u.None=0]="None",u[u.Preserve=1]="Preserve",u[u.React=2]="React",u[u.ReactNative=3]="ReactNative"}(f||(f={})),function(u){u[u.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",u[u.LineFeed=1]="LineFeed"}(D||(D={})),function(u){u[u.ES3=0]="ES3",u[u.ES5=1]="ES5",u[u.ES2015=2]="ES2015",u[u.ES2016=3]="ES2016",u[u.ES2017=4]="ES2017",u[u.ES2018=5]="ES2018",u[u.ES2019=6]="ES2019",u[u.ES2020=7]="ES2020",u[u.ESNext=99]="ESNext",u[u.JSON=100]="JSON",u[u.Latest=99]="Latest"}(H||(H={})),function(u){u[u.Classic=1]="Classic",u[u.NodeJs=2]="NodeJs"}(E||(E={}));var Q=function(){function u(e,t,n){this._onDidChange=new W.a,this._onDidExtraLibsChange=new W.a,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),u.prototype.getExtraLibs=function(){return this._extraLibs},u.prototype.addExtraLib=function(e,t){var n,r=this;if(n=t===void 0?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var d=1;return this._removedExtraLibs[n]&&(d=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(d=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:d},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var m=r._extraLibs[n];m&&m.version===d&&(delete r._extraLibs[n],r._removedExtraLibs[n]=d,r._fireOnDidExtraLibsChangeSoon())}}},u.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var n=0,r=e;n<r.length;n++){var d=r[n],m=(t=d.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),d.content),O=1;this._removedExtraLibs[t]&&(O=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:m,version:O}}this._fireOnDidExtraLibsChangeSoon()},u.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=setTimeout(function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)},0))},u.prototype.getCompilerOptions=function(){return this._compilerOptions},u.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.setWorkerOptions=function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.setMaximumWorkerIdleTime=function(e){},u.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},u.prototype.getEagerModelSync=function(){return this._eagerModelSync},u}(),y=new Q({allowNonTsExtensions:!0,target:H.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1},{}),C=new Q({allowNonTsExtensions:!0,allowJs:!0,target:H.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1},{});function S(){return Promise.resolve().then(o.bind(null,412))}W.g.typescript={ModuleKind:h,JsxEmit:f,NewLineKind:D,ScriptTarget:H,ModuleResolutionKind:E,typescriptVersion:"4.0.3",typescriptDefaults:y,javascriptDefaults:C,getTypeScriptWorker:function(){return S().then(function(u){return u.getTypeScriptWorker()})},getJavaScriptWorker:function(){return S().then(function(u){return u.getJavaScriptWorker()})}},W.g.onLanguage("typescript",function(){return S().then(function(u){return u.setupTypeScript(y)})}),W.g.onLanguage("javascript",function(){return S().then(function(u){return u.setupJavaScript(C)})});var P=o(52),V=function(){function u(e,t,n){this._onDidChange=new P.a,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}(),k={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},l={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},T=new V("css",k,l),N=new V("scss",k,l),b=new V("less",k,l);function g(){return Promise.resolve().then(o.bind(null,414))}P.f.css={cssDefaults:T,lessDefaults:b,scssDefaults:N},P.f.onLanguage("less",function(){g().then(function(u){return u.setupMode(b)})}),P.f.onLanguage("scss",function(){g().then(function(u){return u.setupMode(N)})}),P.f.onLanguage("css",function(){g().then(function(u){return u.setupMode(T)})});var j=o(59),ie=new(function(){function u(e,t,n){this._onDidChange=new j.a,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});j.f.json={jsonDefaults:ie},j.f.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),j.f.onLanguage("json",function(){Promise.resolve().then(o.bind(null,413)).then(function(u){return u.setupMode(ie)})});var U=o(47),q=function(){function u(e,t,n){this._onDidChange=new U.a,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),u.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}(),B={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},se={format:B,suggest:{html5:!0}},ke={format:B,suggest:{html5:!0,razor:!0}};function xe(u){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:u===Y,documentFormattingEdits:u===Y,documentRangeFormattingEdits:u===Y}}var Y="html",Z=new q(Y,{format:B,suggest:{html5:!0,angular1:!0,ionic:!0}},xe(Y)),te=new q("handlebars",se,xe("handlebars")),he=new q("razor",ke,xe("razor"));function Ce(){return Promise.resolve().then(o.bind(null,415))}U.f.html={htmlDefaults:Z,razorDefaults:he,handlebarDefaults:te},U.f.onLanguage(Y,function(){Ce().then(function(u){return u.setupMode(Z)})}),U.f.onLanguage("handlebars",function(){Ce().then(function(u){return u.setupMode(te)})}),U.f.onLanguage("razor",function(){Ce().then(function(u){return u.setupMode(he)})});var Ae=o(95),L={},nt={},ct=function(){function u(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(n,r){t._lazyLoadPromiseResolve=n,t._lazyLoadPromiseReject=r})}return u.getOrCreate=function(e){return nt[e]||(nt[e]=new u(e)),nt[e]},u.prototype.whenLoaded=function(){return this._lazyLoadPromise},u.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,L[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},u}();function Ye(u){var e=u.id;L[e]=u,Ae.a.register(u);var t=ct.getOrCreate(e);Ae.a.setMonarchTokensProvider(e,t.whenLoaded().then(function(n){return n.language})),Ae.a.onLanguage(e,function(){t.load().then(function(n){Ae.a.setLanguageConfiguration(e,n.conf)})})}Ye({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return Promise.resolve().then(o.bind(null,347))}}),Ye({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return Promise.resolve().then(o.bind(null,348))}}),Ye({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return Promise.resolve().then(o.bind(null,349))}}),Ye({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return Promise.resolve().then(o.bind(null,350))}}),Ye({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return Promise.resolve().then(o.bind(null,351))}}),Ye({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return Promise.resolve().then(o.bind(null,352))}}),Ye({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return Promise.resolve().then(o.bind(null,353))}}),Ye({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return Promise.resolve().then(o.bind(null,354))}}),Ye({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return Promise.resolve().then(o.bind(null,354))}}),Ye({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return Promise.resolve().then(o.bind(null,355))}}),Ye({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return Promise.resolve().then(o.bind(null,356))}}),Ye({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return Promise.resolve().then(o.bind(null,357))}}),Ye({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return Promise.resolve().then(o.bind(null,358))}}),Ye({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return Promise.resolve().then(o.bind(null,359))}}),Ye({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return Promise.resolve().then(o.bind(null,360))}}),Ye({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return Promise.resolve().then(o.bind(null,361))}}),Ye({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return Promise.resolve().then(o.bind(null,362))}}),Ye({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return Promise.resolve().then(o.bind(null,363))}}),Ye({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return Promise.resolve().then(o.bind(null,364))}}),Ye({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return Promise.resolve().then(o.bind(null,365))}}),Ye({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return Promise.resolve().then(o.bind(null,366))}}),Ye({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return Promise.resolve().then(o.bind(null,367))}}),Ye({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return Promise.resolve().then(o.bind(null,368))}}),Ye({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return Promise.resolve().then(o.bind(null,369))}}),Ye({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return Promise.resolve().then(o.bind(null,370))}}),Ye({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return Promise.resolve().then(o.bind(null,371))}}),Ye({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return Promise.resolve().then(o.bind(null,372))}}),Ye({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return Promise.resolve().then(o.bind(null,373))}}),Ye({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return Promise.resolve().then(o.bind(null,374))}}),Ye({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return Promise.resolve().then(o.bind(null,375))}}),Ye({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return Promise.resolve().then(o.bind(null,376))}}),Ye({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return Promise.resolve().then(o.bind(null,377))}}),Ye({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return Promise.resolve().then(o.bind(null,378))}}),Ye({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return Promise.resolve().then(o.bind(null,379))}}),Ye({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return Promise.resolve().then(o.bind(null,380))}}),Ye({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return Promise.resolve().then(o.bind(null,381))}}),Ye({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return Promise.resolve().then(o.bind(null,382))}}),Ye({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return Promise.resolve().then(o.bind(null,383))}}),Ye({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return Promise.resolve().then(o.bind(null,384))}}),Ye({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return Promise.resolve().then(o.bind(null,385))}}),Ye({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return Promise.resolve().then(o.bind(null,386))}}),Ye({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return Promise.resolve().then(o.bind(null,387))}}),Ye({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return Promise.resolve().then(o.bind(null,388))}}),Ye({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return Promise.resolve().then(o.bind(null,389))}}),Ye({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return Promise.resolve().then(o.bind(null,390))}}),Ye({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return Promise.resolve().then(o.bind(null,391))}}),Ye({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return Promise.resolve().then(o.bind(null,392))}}),Ye({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return Promise.resolve().then(o.bind(null,393))}}),Ye({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return Promise.resolve().then(o.bind(null,394))}}),Ye({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return Promise.resolve().then(o.bind(null,395))}}),Ye({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return Promise.resolve().then(o.bind(null,396))}}),Ye({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return Promise.resolve().then(o.bind(null,397))}}),Ye({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return Promise.resolve().then(o.bind(null,398))}}),Ye({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return Promise.resolve().then(o.bind(null,399))}}),Ye({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return Promise.resolve().then(o.bind(null,400))}}),Ye({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return Promise.resolve().then(o.bind(null,401))}}),Ye({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return Promise.resolve().then(o.bind(null,402))}}),Ye({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return Promise.resolve().then(o.bind(null,403))}}),Ye({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return Promise.resolve().then(o.bind(null,404))}}),Ye({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return Promise.resolve().then(o.bind(null,405))}}),Ye({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return Promise.resolve().then(o.bind(null,406))}}),Ye({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return Promise.resolve().then(o.bind(null,406))}}),Ye({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return Promise.resolve().then(o.bind(null,407))}}),Ye({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return Promise.resolve().then(o.bind(null,408))}}),Ye({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return Promise.resolve().then(o.bind(null,142))}}),Ye({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return Promise.resolve().then(o.bind(null,409))}}),Ye({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return Promise.resolve().then(o.bind(null,410))}}),Ye({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return Promise.resolve().then(o.bind(null,411))}});var ht=o(107),fe=o(164),$=(o(194),o(193),o(281),o(4)),G=o(0),z=o(7),J=o(21),Se=o(43),A=o(10),ee=o(15),de=o(17),Oe=o(13);class $e{constructor(e="",t=!1){var n,r;if(this._value=e,typeof this._value!="string")throw Object(Oe.b)("value");typeof t=="boolean"?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=(n=t.isTrusted)!==null&&n!==void 0&&n,this._supportThemeIcons=(r=t.supportThemeIcons)!==null&&r!==void 0&&r)}get value(){return this._value}get isTrusted(){return this._isTrusted}get supportThemeIcons(){return this._supportThemeIcons}appendText(e){return this._value+=(this._supportThemeIcons?Object(de.b)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(/\n/g,` +`},vi.strong=function(Rt){return"<strong>"+Rt+"</strong>"},vi.em=function(Rt){return"<em>"+Rt+"</em>"},vi.codespan=function(Rt){return"<code>"+Rt+"</code>"},vi.br=function(){return this.options.xhtml?"<br/>":"<br>"},vi.del=function(Rt){return"<del>"+Rt+"</del>"},vi.link=function(Rt,vt,Ue){if((Rt=At(this.options.sanitize,this.options.baseUrl,Rt))===null)return Ue;var ut='<a href="'+Nt(Rt)+'"';return vt&&(ut+=' title="'+vt+'"'),ut+=">"+Ue+"</a>"},vi.image=function(Rt,vt,Ue){if((Rt=At(this.options.sanitize,this.options.baseUrl,Rt))===null)return Ue;var ut='<img src="'+Rt+'" alt="'+Ue+'"';return vt&&(ut+=' title="'+vt+'"'),ut+=this.options.xhtml?"/>":">"},vi.text=function(Rt){return Rt},gt}(),wt=function(){function gt(){}var vi=gt.prototype;return vi.strong=function(Rt){return Rt},vi.em=function(Rt){return Rt},vi.codespan=function(Rt){return Rt},vi.del=function(Rt){return Rt},vi.html=function(Rt){return Rt},vi.text=function(Rt){return Rt},vi.link=function(Rt,vt,Ue){return""+Ue},vi.image=function(Rt,vt,Ue){return""+Ue},vi.br=function(){return""},gt}(),Ni=function(){function gt(){this.seen={}}var vi=gt.prototype;return vi.serialize=function(Rt){return Rt.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},vi.getNextSafeSlug=function(Rt,vt){var Ue=Rt,ut=0;if(this.seen.hasOwnProperty(Ue)){ut=this.seen[Rt];do Ue=Rt+"-"+ ++ut;while(this.seen.hasOwnProperty(Ue))}return vt||(this.seen[Rt]=ut,this.seen[Ue]=0),Ue},vi.slug=function(Rt,vt){vt===void 0&&(vt={});var Ue=this.serialize(Rt);return this.getNextSafeSlug(Ue,vt.dryrun)},gt}(),pi=H.defaults,et=q,Wt=function(){function gt(Rt){this.options=Rt||pi,this.options.renderer=this.options.renderer||new _i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new wt,this.slugger=new Ni}gt.parse=function(Rt,vt){return new gt(vt).parse(Rt)};var vi=gt.prototype;return vi.parse=function(Rt,vt){vt===void 0&&(vt=!0);var Ue,ut,ze,st,_t,ri,li,gi,ki,Ri,$i,Hi,yi,kt,Et,si,Si,Pi,Wi="",xn=Rt.length;for(Ue=0;Ue<xn;Ue++)switch((Ri=Rt[Ue]).type){case"space":continue;case"hr":Wi+=this.renderer.hr();continue;case"heading":Wi+=this.renderer.heading(this.parseInline(Ri.tokens),Ri.depth,et(this.parseInline(Ri.tokens,this.textRenderer)),this.slugger);continue;case"code":Wi+=this.renderer.code(Ri.text,Ri.lang,Ri.escaped);continue;case"table":for(gi="",li="",st=Ri.header.length,ut=0;ut<st;ut++)li+=this.renderer.tablecell(this.parseInline(Ri.tokens.header[ut]),{header:!0,align:Ri.align[ut]});for(gi+=this.renderer.tablerow(li),ki="",st=Ri.cells.length,ut=0;ut<st;ut++){for(li="",_t=(ri=Ri.tokens.cells[ut]).length,ze=0;ze<_t;ze++)li+=this.renderer.tablecell(this.parseInline(ri[ze]),{header:!1,align:Ri.align[ze]});ki+=this.renderer.tablerow(li)}Wi+=this.renderer.table(gi,ki);continue;case"blockquote":ki=this.parse(Ri.tokens),Wi+=this.renderer.blockquote(ki);continue;case"list":for($i=Ri.ordered,Hi=Ri.start,yi=Ri.loose,st=Ri.items.length,ki="",ut=0;ut<st;ut++)si=(Et=Ri.items[ut]).checked,Si=Et.task,kt="",Et.task&&(Pi=this.renderer.checkbox(si),yi?Et.tokens.length>0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=Pi+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=Pi+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:Pi}):kt+=Pi),kt+=this.parse(Et.tokens,yi),ki+=this.renderer.listitem(kt,Si,si);Wi+=this.renderer.list(ki,$i,Hi);continue;case"html":Wi+=this.renderer.html(Ri.text);continue;case"paragraph":Wi+=this.renderer.paragraph(this.parseInline(Ri.tokens));continue;case"text":for(ki=Ri.tokens?this.parseInline(Ri.tokens):Ri.text;Ue+1<xn&&Rt[Ue+1].type==="text";)ki+=` +`+((Ri=Rt[++Ue]).tokens?this.parseInline(Ri.tokens):Ri.text);Wi+=vt?this.renderer.paragraph(ki):ki;continue;default:var un='Token with "'+Ri.type+'" type was not found.';if(this.options.silent)return void console.error(un);throw new Error(un)}return Wi},vi.parseInline=function(Rt,vt){vt=vt||this.renderer;var Ue,ut,ze="",st=Rt.length;for(Ue=0;Ue<st;Ue++)switch((ut=Rt[Ue]).type){case"escape":ze+=vt.text(ut.text);break;case"html":ze+=vt.html(ut.text);break;case"link":ze+=vt.link(ut.href,ut.title,this.parseInline(ut.tokens,vt));break;case"image":ze+=vt.image(ut.href,ut.title,ut.text);break;case"strong":ze+=vt.strong(this.parseInline(ut.tokens,vt));break;case"em":ze+=vt.em(this.parseInline(ut.tokens,vt));break;case"codespan":ze+=vt.codespan(ut.text);break;case"br":ze+=vt.br();break;case"del":ze+=vt.del(this.parseInline(ut.tokens,vt));break;case"text":ze+=vt.text(ut.text);break;default:var _t='Token with "'+ut.type+'" type was not found.';if(this.options.silent)return void console.error(_t);throw new Error(_t)}return ze},gt}(),Li=xe,Ii=he,Ai=U,Zi=H.getDefaults,Bi=H.changeDefaults,Lt=H.defaults;function Oi(gt,vi,Rt){if(gt==null)throw new Error("marked(): input parameter is undefined or null");if(typeof gt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(gt)+", string expected");if(typeof vi=="function"&&(Rt=vi,vi=null),vi=Li({},Oi.defaults,vi||{}),Ii(vi),Rt){var vt,Ue=vi.highlight;try{vt=pt.lex(gt,vi)}catch(_t){return Rt(_t)}var ut=function(_t){var ri;if(!_t)try{ri=Wt.parse(vt,vi)}catch(li){_t=li}return vi.highlight=Ue,_t?Rt(_t):Rt(null,ri)};if(!Ue||Ue.length<3||(delete vi.highlight,!vt.length))return ut();var ze=0;return Oi.walkTokens(vt,function(_t){_t.type==="code"&&(ze++,setTimeout(function(){Ue(_t.text,_t.lang,function(ri,li){if(ri)return ut(ri);li!=null&&li!==_t.text&&(_t.text=li,_t.escaped=!0),--ze==0&&ut()})},0))}),void(ze===0&&ut())}try{var st=pt.lex(gt,vi);return vi.walkTokens&&Oi.walkTokens(st,vi.walkTokens),Wt.parse(st,vi)}catch(_t){if(_t.message+=` +Please report this to https://github.com/markedjs/marked.`,vi.silent)return"<p>An error occurred:</p><pre>"+Ai(_t.message+"",!0)+"</pre>";throw _t}}return Oi.options=Oi.setOptions=function(gt){return Li(Oi.defaults,gt),Bi(Oi.defaults),Oi},Oi.getDefaults=Zi,Oi.defaults=Lt,Oi.use=function(gt){var vi=Li({},gt);if(gt.renderer&&function(){var vt=Oi.defaults.renderer||new _i,Ue=function(ze){var st=vt[ze];vt[ze]=function(){for(var _t=arguments.length,ri=new Array(_t),li=0;li<_t;li++)ri[li]=arguments[li];var gi=gt.renderer[ze].apply(vt,ri);return gi===!1&&(gi=st.apply(vt,ri)),gi}};for(var ut in gt.renderer)Ue(ut);vi.renderer=vt}(),gt.tokenizer&&function(){var vt=Oi.defaults.tokenizer||new ht,Ue=function(ze){var st=vt[ze];vt[ze]=function(){for(var _t=arguments.length,ri=new Array(_t),li=0;li<_t;li++)ri[li]=arguments[li];var gi=gt.tokenizer[ze].apply(vt,ri);return gi===!1&&(gi=st.apply(vt,ri)),gi}};for(var ut in gt.tokenizer)Ue(ut);vi.tokenizer=vt}(),gt.walkTokens){var Rt=Oi.defaults.walkTokens;vi.walkTokens=function(vt){gt.walkTokens(vt),Rt&&Rt(vt)}}Oi.setOptions(vi)},Oi.walkTokens=function(gt,vi){for(var Rt,vt=O(gt);!(Rt=vt()).done;){var Ue=Rt.value;switch(vi(Ue),Ue.type){case"table":for(var ut,ze=O(Ue.tokens.header);!(ut=ze()).done;){var st=ut.value;Oi.walkTokens(st,vi)}for(var _t,ri=O(Ue.tokens.cells);!(_t=ri()).done;)for(var li,gi=O(_t.value);!(li=gi()).done;){var ki=li.value;Oi.walkTokens(ki,vi)}break;case"list":Oi.walkTokens(Ue.items,vi);break;default:Ue.tokens&&Oi.walkTokens(Ue.tokens,vi)}}},Oi.Parser=Wt,Oi.parser=Wt.parse,Oi.Renderer=_i,Oi.TextRenderer=wt,Oi.Lexer=pt,Oi.lexer=pt.lex,Oi.Tokenizer=ht,Oi.Slugger=Ni,Oi.parse=Oi,Oi}()},function(Ie,w,r){var h=r(32),f=r(250);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){var h=r(32),f=r(263);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){var h=r(32),f=r(297);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){var h=r(32),f=r(304);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){var h=r(32),f=r(201);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +\r +/* Default standalone editor fonts */\r +.monaco-editor {\r + font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\r + --monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\r +}\r +\r +.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\r + stroke-width: 1.2px;\r +}\r +\r +.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r +.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r + stroke-width: 1.2px;\r +}\r +\r +.monaco-hover p {\r + margin: 0;\r +}\r +\r +/* The hc-black theme is already high contrast optimized */\r +.monaco-editor.hc-black {\r + -ms-high-contrast-adjust: none;\r +}\r +/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\r +@media screen and (-ms-high-contrast:active) {\r +\r + /* current line highlight */\r + .monaco-editor.vs .view-overlays .current-line,\r + .monaco-editor.vs-dark .view-overlays .current-line {\r + border-color: windowtext !important;\r + border-left: 0;\r + border-right: 0;\r + }\r +\r + /* view cursors */\r + .monaco-editor.vs .cursor,\r + .monaco-editor.vs-dark .cursor {\r + background-color: windowtext !important;\r + }\r + /* dnd target */\r + .monaco-editor.vs .dnd-target,\r + .monaco-editor.vs-dark .dnd-target {\r + border-color: windowtext !important;\r + }\r +\r + /* selected text background */\r + .monaco-editor.vs .selected-text,\r + .monaco-editor.vs-dark .selected-text {\r + background-color: highlight !important;\r + }\r +\r + /* allow the text to have a transparent background. */\r + .monaco-editor.vs .view-line,\r + .monaco-editor.vs-dark .view-line {\r + -ms-high-contrast-adjust: none;\r + }\r +\r + /* text color */\r + .monaco-editor.vs .view-line span,\r + .monaco-editor.vs-dark .view-line span {\r + color: windowtext !important;\r + }\r + /* selected text color */\r + .monaco-editor.vs .view-line span.inline-selected-text,\r + .monaco-editor.vs-dark .view-line span.inline-selected-text {\r + color: highlighttext !important;\r + }\r +\r + /* allow decorations */\r + .monaco-editor.vs .view-overlays,\r + .monaco-editor.vs-dark .view-overlays {\r + -ms-high-contrast-adjust: none;\r + }\r +\r + /* various decorations */\r + .monaco-editor.vs .selectionHighlight,\r + .monaco-editor.vs-dark .selectionHighlight,\r + .monaco-editor.vs .wordHighlight,\r + .monaco-editor.vs-dark .wordHighlight,\r + .monaco-editor.vs .wordHighlightStrong,\r + .monaco-editor.vs-dark .wordHighlightStrong,\r + .monaco-editor.vs .reference-decoration,\r + .monaco-editor.vs-dark .reference-decoration {\r + border: 2px dotted highlight !important;\r + background: transparent !important;\r + box-sizing: border-box;\r + }\r + .monaco-editor.vs .rangeHighlight,\r + .monaco-editor.vs-dark .rangeHighlight {\r + background: transparent !important;\r + border: 1px dotted activeborder !important;\r + box-sizing: border-box;\r + }\r + .monaco-editor.vs .bracket-match,\r + .monaco-editor.vs-dark .bracket-match {\r + border-color: windowtext !important;\r + background: transparent !important;\r + }\r +\r + /* find widget */\r + .monaco-editor.vs .findMatch,\r + .monaco-editor.vs-dark .findMatch,\r + .monaco-editor.vs .currentFindMatch,\r + .monaco-editor.vs-dark .currentFindMatch {\r + border: 2px dotted activeborder !important;\r + background: transparent !important;\r + box-sizing: border-box;\r + }\r + .monaco-editor.vs .find-widget,\r + .monaco-editor.vs-dark .find-widget {\r + border: 1px solid windowtext;\r + }\r +\r + /* list - used by suggest widget */\r + .monaco-editor.vs .monaco-list .monaco-list-row,\r + .monaco-editor.vs-dark .monaco-list .monaco-list-row {\r + -ms-high-contrast-adjust: none;\r + color: windowtext !important;\r + }\r + .monaco-editor.vs .monaco-list .monaco-list-row.focused,\r + .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\r + color: highlighttext !important;\r + background-color: highlight !important;\r + }\r + .monaco-editor.vs .monaco-list .monaco-list-row:hover,\r + .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\r + background: transparent !important;\r + border: 1px solid highlight;\r + box-sizing: border-box;\r + }\r +\r + /* scrollbars */\r + .monaco-editor.vs .monaco-scrollable-element > .scrollbar,\r + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\r + -ms-high-contrast-adjust: none;\r + background: background !important;\r + border: 1px solid windowtext;\r + box-sizing: border-box;\r + }\r + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\r + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r + background: windowtext !important;\r + }\r + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\r + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\r + background: highlight !important;\r + }\r + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\r + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r + background: highlight !important;\r + }\r +\r + /* overview ruler */\r + .monaco-editor.vs .decorationsOverviewRuler,\r + .monaco-editor.vs-dark .decorationsOverviewRuler {\r + opacity: 0;\r + }\r +\r + /* minimap */\r + .monaco-editor.vs .minimap,\r + .monaco-editor.vs-dark .minimap {\r + display: none;\r + }\r +\r + /* squiggles */\r + .monaco-editor.vs .squiggly-d-error,\r + .monaco-editor.vs-dark .squiggly-d-error {\r + background: transparent !important;\r + border-bottom: 4px double #E47777;\r + }\r + .monaco-editor.vs .squiggly-c-warning,\r + .monaco-editor.vs-dark .squiggly-c-warning {\r + border-bottom: 4px double #71B771;\r + }\r + .monaco-editor.vs .squiggly-b-info,\r + .monaco-editor.vs-dark .squiggly-b-info {\r + border-bottom: 4px double #71B771;\r + }\r + .monaco-editor.vs .squiggly-a-hint,\r + .monaco-editor.vs-dark .squiggly-a-hint {\r + border-bottom: 4px double #6c6c6c;\r + }\r +\r + /* contextmenu */\r + .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r + .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r + -ms-high-contrast-adjust: none;\r + color: highlighttext !important;\r + background-color: highlight !important;\r + }\r + .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\r + .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\r + -ms-high-contrast-adjust: none;\r + background: transparent !important;\r + border: 1px solid highlight;\r + box-sizing: border-box;\r + }\r +\r + /* diff editor */\r + .monaco-diff-editor.vs .diffOverviewRuler,\r + .monaco-diff-editor.vs-dark .diffOverviewRuler {\r + display: none;\r + }\r + .monaco-editor.vs .line-insert,\r + .monaco-editor.vs-dark .line-insert,\r + .monaco-editor.vs .line-delete,\r + .monaco-editor.vs-dark .line-delete {\r + background: transparent !important;\r + border: 1px solid highlight !important;\r + box-sizing: border-box;\r + }\r + .monaco-editor.vs .char-insert,\r + .monaco-editor.vs-dark .char-insert,\r + .monaco-editor.vs .char-delete,\r + .monaco-editor.vs-dark .char-delete {\r + background: transparent !important;\r + }\r +}\r +\r +/*.monaco-editor.vs [tabindex="0"]:focus {\r + outline: 1px solid rgba(0, 122, 204, 0.4);\r + outline-offset: -1px;\r + opacity: 1 !important;\r +}\r +\r +.monaco-editor.vs-dark [tabindex="0"]:focus {\r + outline: 1px solid rgba(14, 99, 156, 0.6);\r + outline-offset: -1px;\r + opacity: 1 !important;\r +}*/\r +`,""]),Ie.exports=w},function(Ie,w,r){"use strict";(function(h){var f=r(203),O=r(204),H=r(205);function E(){return W.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ge(z,J){if(E()<J)throw new RangeError("Invalid typed array length");return W.TYPED_ARRAY_SUPPORT?(z=new Uint8Array(J)).__proto__=W.prototype:(z===null&&(z=new W(J)),z.length=J),z}function W(z,J,Se){if(!(W.TYPED_ARRAY_SUPPORT||this instanceof W))return new W(z,J,Se);if(typeof z=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return C(this,z)}return Q(this,z,J,Se)}function Q(z,J,Se,A){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?function(ee,de,De,$e){if(de.byteLength,De<0||de.byteLength<De)throw new RangeError("'offset' is out of bounds");if(de.byteLength<De+($e||0))throw new RangeError("'length' is out of bounds");return de=De===void 0&&$e===void 0?new Uint8Array(de):$e===void 0?new Uint8Array(de,De):new Uint8Array(de,De,$e),W.TYPED_ARRAY_SUPPORT?(ee=de).__proto__=W.prototype:ee=S(ee,de),ee}(z,J,Se,A):typeof J=="string"?function(ee,de,De){if(typeof De=="string"&&De!==""||(De="utf8"),!W.isEncoding(De))throw new TypeError('"encoding" must be a valid string encoding');var $e=0|V(de,De),pt=(ee=ge(ee,$e)).write(de,De);return pt!==$e&&(ee=ee.slice(0,pt)),ee}(z,J,Se):function(ee,de){if(W.isBuffer(de)){var De=0|P(de.length);return(ee=ge(ee,De)).length===0||de.copy(ee,0,0,De),ee}if(de){if(typeof ArrayBuffer!="undefined"&&de.buffer instanceof ArrayBuffer||"length"in de)return typeof de.length!="number"||($e=de.length)!=$e?ge(ee,0):S(ee,de);if(de.type==="Buffer"&&H(de.data))return S(ee,de.data)}var $e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(z,J)}function y(z){if(typeof z!="number")throw new TypeError('"size" argument must be a number');if(z<0)throw new RangeError('"size" argument must not be negative')}function C(z,J){if(y(J),z=ge(z,J<0?0:0|P(J)),!W.TYPED_ARRAY_SUPPORT)for(var Se=0;Se<J;++Se)z[Se]=0;return z}function S(z,J){var Se=J.length<0?0:0|P(J.length);z=ge(z,Se);for(var A=0;A<Se;A+=1)z[A]=255&J[A];return z}function P(z){if(z>=E())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E().toString(16)+" bytes");return 0|z}function V(z,J){if(W.isBuffer(z))return z.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(z)||z instanceof ArrayBuffer))return z.byteLength;typeof z!="string"&&(z=""+z);var Se=z.length;if(Se===0)return 0;for(var A=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Se;case"utf8":case"utf-8":case void 0:return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Se;case"hex":return Se>>>1;case"base64":return $(z).length;default:if(A)return fe(z).length;J=(""+J).toLowerCase(),A=!0}}function k(z,J,Se){var A=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((Se===void 0||Se>this.length)&&(Se=this.length),Se<=0)||(Se>>>=0)<=(J>>>=0))return"";for(z||(z="utf8");;)switch(z){case"hex":return Y(this,J,Se);case"utf8":case"utf-8":return se(this,J,Se);case"ascii":return ke(this,J,Se);case"latin1":case"binary":return xe(this,J,Se);case"base64":return B(this,J,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,J,Se);default:if(A)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),A=!0}}function l(z,J,Se){var A=z[J];z[J]=z[Se],z[Se]=A}function T(z,J,Se,A,ee){if(z.length===0)return-1;if(typeof Se=="string"?(A=Se,Se=0):Se>2147483647?Se=2147483647:Se<-2147483648&&(Se=-2147483648),Se=+Se,isNaN(Se)&&(Se=ee?0:z.length-1),Se<0&&(Se=z.length+Se),Se>=z.length){if(ee)return-1;Se=z.length-1}else if(Se<0){if(!ee)return-1;Se=0}if(typeof J=="string"&&(J=W.from(J,A)),W.isBuffer(J))return J.length===0?-1:N(z,J,Se,A,ee);if(typeof J=="number")return J&=255,W.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(z,J,Se):Uint8Array.prototype.lastIndexOf.call(z,J,Se):N(z,[J],Se,A,ee);throw new TypeError("val must be string, number or Buffer")}function N(z,J,Se,A,ee){var de,De=1,$e=z.length,pt=J.length;if(A!==void 0&&((A=String(A).toLowerCase())==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(z.length<2||J.length<2)return-1;De=2,$e/=2,pt/=2,Se/=2}function it(wt,Ni){return De===1?wt[Ni]:wt.readUInt16BE(Ni*De)}if(ee){var At=-1;for(de=Se;de<$e;de++)if(it(z,de)===it(J,At===-1?0:de-At)){if(At===-1&&(At=de),de-At+1===pt)return At*De}else At!==-1&&(de-=de-At),At=-1}else for(Se+pt>$e&&(Se=$e-pt),de=Se;de>=0;de--){for(var Nt=!0,_i=0;_i<pt;_i++)if(it(z,de+_i)!==it(J,_i)){Nt=!1;break}if(Nt)return de}return-1}function b(z,J,Se,A){Se=Number(Se)||0;var ee=z.length-Se;A?(A=Number(A))>ee&&(A=ee):A=ee;var de=J.length;if(de%2!=0)throw new TypeError("Invalid hex string");A>de/2&&(A=de/2);for(var De=0;De<A;++De){var $e=parseInt(J.substr(2*De,2),16);if(isNaN($e))return De;z[Se+De]=$e}return De}function g(z,J,Se,A){return G(fe(J,z.length-Se),z,Se,A)}function j(z,J,Se,A){return G(function(ee){for(var de=[],De=0;De<ee.length;++De)de.push(255&ee.charCodeAt(De));return de}(J),z,Se,A)}function ie(z,J,Se,A){return j(z,J,Se,A)}function U(z,J,Se,A){return G($(J),z,Se,A)}function q(z,J,Se,A){return G(function(ee,de){for(var De,$e,pt,it=[],At=0;At<ee.length&&!((de-=2)<0);++At)De=ee.charCodeAt(At),$e=De>>8,pt=De%256,it.push(pt),it.push($e);return it}(J,z.length-Se),z,Se,A)}function B(z,J,Se){return J===0&&Se===z.length?f.fromByteArray(z):f.fromByteArray(z.slice(J,Se))}function se(z,J,Se){Se=Math.min(z.length,Se);for(var A=[],ee=J;ee<Se;){var de,De,$e,pt,it=z[ee],At=null,Nt=it>239?4:it>223?3:it>191?2:1;if(ee+Nt<=Se)switch(Nt){case 1:it<128&&(At=it);break;case 2:(192&(de=z[ee+1]))==128&&(pt=(31&it)<<6|63&de)>127&&(At=pt);break;case 3:de=z[ee+1],De=z[ee+2],(192&de)==128&&(192&De)==128&&(pt=(15&it)<<12|(63&de)<<6|63&De)>2047&&(pt<55296||pt>57343)&&(At=pt);break;case 4:de=z[ee+1],De=z[ee+2],$e=z[ee+3],(192&de)==128&&(192&De)==128&&(192&$e)==128&&(pt=(15&it)<<18|(63&de)<<12|(63&De)<<6|63&$e)>65535&&pt<1114112&&(At=pt)}At===null?(At=65533,Nt=1):At>65535&&(At-=65536,A.push(At>>>10&1023|55296),At=56320|1023&At),A.push(At),ee+=Nt}return function(_i){var wt=_i.length;if(wt<=4096)return String.fromCharCode.apply(String,_i);for(var Ni="",pi=0;pi<wt;)Ni+=String.fromCharCode.apply(String,_i.slice(pi,pi+=4096));return Ni}(A)}w.Buffer=W,w.SlowBuffer=function(z){return+z!=z&&(z=0),W.alloc(+z)},w.INSPECT_MAX_BYTES=50,W.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.TYPED_ARRAY_SUPPORT:function(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch(J){return!1}}(),w.kMaxLength=E(),W.poolSize=8192,W._augment=function(z){return z.__proto__=W.prototype,z},W.from=function(z,J,Se){return Q(null,z,J,Se)},W.TYPED_ARRAY_SUPPORT&&(W.prototype.__proto__=Uint8Array.prototype,W.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&W[Symbol.species]===W&&Object.defineProperty(W,Symbol.species,{value:null,configurable:!0})),W.alloc=function(z,J,Se){return function(A,ee,de,De){return y(ee),ee<=0?ge(A,ee):de!==void 0?typeof De=="string"?ge(A,ee).fill(de,De):ge(A,ee).fill(de):ge(A,ee)}(null,z,J,Se)},W.allocUnsafe=function(z){return C(null,z)},W.allocUnsafeSlow=function(z){return C(null,z)},W.isBuffer=function(z){return!(z==null||!z._isBuffer)},W.compare=function(z,J){if(!W.isBuffer(z)||!W.isBuffer(J))throw new TypeError("Arguments must be Buffers");if(z===J)return 0;for(var Se=z.length,A=J.length,ee=0,de=Math.min(Se,A);ee<de;++ee)if(z[ee]!==J[ee]){Se=z[ee],A=J[ee];break}return Se<A?-1:A<Se?1:0},W.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},W.concat=function(z,J){if(!H(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return W.alloc(0);var Se;if(J===void 0)for(J=0,Se=0;Se<z.length;++Se)J+=z[Se].length;var A=W.allocUnsafe(J),ee=0;for(Se=0;Se<z.length;++Se){var de=z[Se];if(!W.isBuffer(de))throw new TypeError('"list" argument must be an Array of Buffers');de.copy(A,ee),ee+=de.length}return A},W.byteLength=V,W.prototype._isBuffer=!0,W.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;J<z;J+=2)l(this,J,J+1);return this},W.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var J=0;J<z;J+=4)l(this,J,J+3),l(this,J+1,J+2);return this},W.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var J=0;J<z;J+=8)l(this,J,J+7),l(this,J+1,J+6),l(this,J+2,J+5),l(this,J+3,J+4);return this},W.prototype.toString=function(){var z=0|this.length;return z===0?"":arguments.length===0?se(this,0,z):k.apply(this,arguments)},W.prototype.equals=function(z){if(!W.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z||W.compare(this,z)===0},W.prototype.inspect=function(){var z="",J=w.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,J).match(/.{2}/g).join(" "),this.length>J&&(z+=" ... ")),"<Buffer "+z+">"},W.prototype.compare=function(z,J,Se,A,ee){if(!W.isBuffer(z))throw new TypeError("Argument must be a Buffer");if(J===void 0&&(J=0),Se===void 0&&(Se=z?z.length:0),A===void 0&&(A=0),ee===void 0&&(ee=this.length),J<0||Se>z.length||A<0||ee>this.length)throw new RangeError("out of range index");if(A>=ee&&J>=Se)return 0;if(A>=ee)return-1;if(J>=Se)return 1;if(this===z)return 0;for(var de=(ee>>>=0)-(A>>>=0),De=(Se>>>=0)-(J>>>=0),$e=Math.min(de,De),pt=this.slice(A,ee),it=z.slice(J,Se),At=0;At<$e;++At)if(pt[At]!==it[At]){de=pt[At],De=it[At];break}return de<De?-1:De<de?1:0},W.prototype.includes=function(z,J,Se){return this.indexOf(z,J,Se)!==-1},W.prototype.indexOf=function(z,J,Se){return T(this,z,J,Se,!0)},W.prototype.lastIndexOf=function(z,J,Se){return T(this,z,J,Se,!1)},W.prototype.write=function(z,J,Se,A){if(J===void 0)A="utf8",Se=this.length,J=0;else if(Se===void 0&&typeof J=="string")A=J,Se=this.length,J=0;else{if(!isFinite(J))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");J|=0,isFinite(Se)?(Se|=0,A===void 0&&(A="utf8")):(A=Se,Se=void 0)}var ee=this.length-J;if((Se===void 0||Se>ee)&&(Se=ee),z.length>0&&(Se<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var de=!1;;)switch(A){case"hex":return b(this,z,J,Se);case"utf8":case"utf-8":return g(this,z,J,Se);case"ascii":return j(this,z,J,Se);case"latin1":case"binary":return ie(this,z,J,Se);case"base64":return U(this,z,J,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,z,J,Se);default:if(de)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),de=!0}},W.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(z,J,Se){var A="";Se=Math.min(z.length,Se);for(var ee=J;ee<Se;++ee)A+=String.fromCharCode(127&z[ee]);return A}function xe(z,J,Se){var A="";Se=Math.min(z.length,Se);for(var ee=J;ee<Se;++ee)A+=String.fromCharCode(z[ee]);return A}function Y(z,J,Se){var A=z.length;(!J||J<0)&&(J=0),(!Se||Se<0||Se>A)&&(Se=A);for(var ee="",de=J;de<Se;++de)ee+=ht(z[de]);return ee}function Z(z,J,Se){for(var A=z.slice(J,Se),ee="",de=0;de<A.length;de+=2)ee+=String.fromCharCode(A[de]+256*A[de+1]);return ee}function te(z,J,Se){if(z%1!=0||z<0)throw new RangeError("offset is not uint");if(z+J>Se)throw new RangeError("Trying to access beyond buffer length")}function he(z,J,Se,A,ee,de){if(!W.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>ee||J<de)throw new RangeError('"value" argument is out of bounds');if(Se+A>z.length)throw new RangeError("Index out of range")}function Ce(z,J,Se,A){J<0&&(J=65535+J+1);for(var ee=0,de=Math.min(z.length-Se,2);ee<de;++ee)z[Se+ee]=(J&255<<8*(A?ee:1-ee))>>>8*(A?ee:1-ee)}function Ae(z,J,Se,A){J<0&&(J=4294967295+J+1);for(var ee=0,de=Math.min(z.length-Se,4);ee<de;++ee)z[Se+ee]=J>>>8*(A?ee:3-ee)&255}function L(z,J,Se,A,ee,de){if(Se+A>z.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("Index out of range")}function nt(z,J,Se,A,ee){return ee||L(z,0,Se,4),O.write(z,J,Se,A,23,4),Se+4}function ct(z,J,Se,A,ee){return ee||L(z,0,Se,8),O.write(z,J,Se,A,52,8),Se+8}W.prototype.slice=function(z,J){var Se,A=this.length;if((z=~~z)<0?(z+=A)<0&&(z=0):z>A&&(z=A),(J=J===void 0?A:~~J)<0?(J+=A)<0&&(J=0):J>A&&(J=A),J<z&&(J=z),W.TYPED_ARRAY_SUPPORT)(Se=this.subarray(z,J)).__proto__=W.prototype;else{var ee=J-z;Se=new W(ee,void 0);for(var de=0;de<ee;++de)Se[de]=this[de+z]}return Se},W.prototype.readUIntLE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z],ee=1,de=0;++de<J&&(ee*=256);)A+=this[z+de]*ee;return A},W.prototype.readUIntBE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z+--J],ee=1;J>0&&(ee*=256);)A+=this[z+--J]*ee;return A},W.prototype.readUInt8=function(z,J){return J||te(z,1,this.length),this[z]},W.prototype.readUInt16LE=function(z,J){return J||te(z,2,this.length),this[z]|this[z+1]<<8},W.prototype.readUInt16BE=function(z,J){return J||te(z,2,this.length),this[z]<<8|this[z+1]},W.prototype.readUInt32LE=function(z,J){return J||te(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+16777216*this[z+3]},W.prototype.readUInt32BE=function(z,J){return J||te(z,4,this.length),16777216*this[z]+(this[z+1]<<16|this[z+2]<<8|this[z+3])},W.prototype.readIntLE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=this[z],ee=1,de=0;++de<J&&(ee*=256);)A+=this[z+de]*ee;return A>=(ee*=128)&&(A-=Math.pow(2,8*J)),A},W.prototype.readIntBE=function(z,J,Se){z|=0,J|=0,Se||te(z,J,this.length);for(var A=J,ee=1,de=this[z+--A];A>0&&(ee*=256);)de+=this[z+--A]*ee;return de>=(ee*=128)&&(de-=Math.pow(2,8*J)),de},W.prototype.readInt8=function(z,J){return J||te(z,1,this.length),128&this[z]?-1*(255-this[z]+1):this[z]},W.prototype.readInt16LE=function(z,J){J||te(z,2,this.length);var Se=this[z]|this[z+1]<<8;return 32768&Se?4294901760|Se:Se},W.prototype.readInt16BE=function(z,J){J||te(z,2,this.length);var Se=this[z+1]|this[z]<<8;return 32768&Se?4294901760|Se:Se},W.prototype.readInt32LE=function(z,J){return J||te(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},W.prototype.readInt32BE=function(z,J){return J||te(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},W.prototype.readFloatLE=function(z,J){return J||te(z,4,this.length),O.read(this,z,!0,23,4)},W.prototype.readFloatBE=function(z,J){return J||te(z,4,this.length),O.read(this,z,!1,23,4)},W.prototype.readDoubleLE=function(z,J){return J||te(z,8,this.length),O.read(this,z,!0,52,8)},W.prototype.readDoubleBE=function(z,J){return J||te(z,8,this.length),O.read(this,z,!1,52,8)},W.prototype.writeUIntLE=function(z,J,Se,A){z=+z,J|=0,Se|=0,A||he(this,z,J,Se,Math.pow(2,8*Se)-1,0);var ee=1,de=0;for(this[J]=255&z;++de<Se&&(ee*=256);)this[J+de]=z/ee&255;return J+Se},W.prototype.writeUIntBE=function(z,J,Se,A){z=+z,J|=0,Se|=0,A||he(this,z,J,Se,Math.pow(2,8*Se)-1,0);var ee=Se-1,de=1;for(this[J+ee]=255&z;--ee>=0&&(de*=256);)this[J+ee]=z/de&255;return J+Se},W.prototype.writeUInt8=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,1,255,0),W.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[J]=255&z,J+1},W.prototype.writeUInt16LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,65535,0),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8):Ce(this,z,J,!0),J+2},W.prototype.writeUInt16BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,65535,0),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>8,this[J+1]=255&z):Ce(this,z,J,!1),J+2},W.prototype.writeUInt32LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,4294967295,0),W.TYPED_ARRAY_SUPPORT?(this[J+3]=z>>>24,this[J+2]=z>>>16,this[J+1]=z>>>8,this[J]=255&z):Ae(this,z,J,!0),J+4},W.prototype.writeUInt32BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,4294967295,0),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>24,this[J+1]=z>>>16,this[J+2]=z>>>8,this[J+3]=255&z):Ae(this,z,J,!1),J+4},W.prototype.writeIntLE=function(z,J,Se,A){if(z=+z,J|=0,!A){var ee=Math.pow(2,8*Se-1);he(this,z,J,Se,ee-1,-ee)}var de=0,De=1,$e=0;for(this[J]=255&z;++de<Se&&(De*=256);)z<0&&$e===0&&this[J+de-1]!==0&&($e=1),this[J+de]=(z/De>>0)-$e&255;return J+Se},W.prototype.writeIntBE=function(z,J,Se,A){if(z=+z,J|=0,!A){var ee=Math.pow(2,8*Se-1);he(this,z,J,Se,ee-1,-ee)}var de=Se-1,De=1,$e=0;for(this[J+de]=255&z;--de>=0&&(De*=256);)z<0&&$e===0&&this[J+de+1]!==0&&($e=1),this[J+de]=(z/De>>0)-$e&255;return J+Se},W.prototype.writeInt8=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,1,127,-128),W.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[J]=255&z,J+1},W.prototype.writeInt16LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,32767,-32768),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8):Ce(this,z,J,!0),J+2},W.prototype.writeInt16BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,2,32767,-32768),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>8,this[J+1]=255&z):Ce(this,z,J,!1),J+2},W.prototype.writeInt32LE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,2147483647,-2147483648),W.TYPED_ARRAY_SUPPORT?(this[J]=255&z,this[J+1]=z>>>8,this[J+2]=z>>>16,this[J+3]=z>>>24):Ae(this,z,J,!0),J+4},W.prototype.writeInt32BE=function(z,J,Se){return z=+z,J|=0,Se||he(this,z,J,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),W.TYPED_ARRAY_SUPPORT?(this[J]=z>>>24,this[J+1]=z>>>16,this[J+2]=z>>>8,this[J+3]=255&z):Ae(this,z,J,!1),J+4},W.prototype.writeFloatLE=function(z,J,Se){return nt(this,z,J,!0,Se)},W.prototype.writeFloatBE=function(z,J,Se){return nt(this,z,J,!1,Se)},W.prototype.writeDoubleLE=function(z,J,Se){return ct(this,z,J,!0,Se)},W.prototype.writeDoubleBE=function(z,J,Se){return ct(this,z,J,!1,Se)},W.prototype.copy=function(z,J,Se,A){if(Se||(Se=0),A||A===0||(A=this.length),J>=z.length&&(J=z.length),J||(J=0),A>0&&A<Se&&(A=Se),A===Se||z.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),z.length-J<A-Se&&(A=z.length-J+Se);var ee,de=A-Se;if(this===z&&Se<J&&J<A)for(ee=de-1;ee>=0;--ee)z[ee+J]=this[ee+Se];else if(de<1e3||!W.TYPED_ARRAY_SUPPORT)for(ee=0;ee<de;++ee)z[ee+J]=this[ee+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+de),J);return de},W.prototype.fill=function(z,J,Se,A){if(typeof z=="string"){if(typeof J=="string"?(A=J,J=0,Se=this.length):typeof Se=="string"&&(A=Se,Se=this.length),z.length===1){var ee=z.charCodeAt(0);ee<256&&(z=ee)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!W.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof z=="number"&&(z&=255);if(J<0||this.length<J||this.length<Se)throw new RangeError("Out of range index");if(Se<=J)return this;var de;if(J>>>=0,Se=Se===void 0?this.length:Se>>>0,z||(z=0),typeof z=="number")for(de=J;de<Se;++de)this[de]=z;else{var De=W.isBuffer(z)?z:fe(new W(z,A).toString()),$e=De.length;for(de=0;de<Se-J;++de)this[de+J]=De[de%$e]}return this};var Ye=/[^+\/0-9A-Za-z-_]/g;function ht(z){return z<16?"0"+z.toString(16):z.toString(16)}function fe(z,J){var Se;J=J||1/0;for(var A=z.length,ee=null,de=[],De=0;De<A;++De){if((Se=z.charCodeAt(De))>55295&&Se<57344){if(!ee){if(Se>56319){(J-=3)>-1&&de.push(239,191,189);continue}if(De+1===A){(J-=3)>-1&&de.push(239,191,189);continue}ee=Se;continue}if(Se<56320){(J-=3)>-1&&de.push(239,191,189),ee=Se;continue}Se=65536+(ee-55296<<10|Se-56320)}else ee&&(J-=3)>-1&&de.push(239,191,189);if(ee=null,Se<128){if((J-=1)<0)break;de.push(Se)}else if(Se<2048){if((J-=2)<0)break;de.push(Se>>6|192,63&Se|128)}else if(Se<65536){if((J-=3)<0)break;de.push(Se>>12|224,Se>>6&63|128,63&Se|128)}else{if(!(Se<1114112))throw new Error("Invalid code point");if((J-=4)<0)break;de.push(Se>>18|240,Se>>12&63|128,Se>>6&63|128,63&Se|128)}}return de}function $(z){return f.toByteArray(function(J){if((J=function(Se){return Se.trim?Se.trim():Se.replace(/^\s+|\s+$/g,"")}(J).replace(Ye,"")).length<2)return"";for(;J.length%4!=0;)J+="=";return J}(z))}function G(z,J,Se,A){for(var ee=0;ee<A&&!(ee+Se>=J.length||ee>=z.length);++ee)J[ee+Se]=z[ee];return ee}}).call(this,r(137))},function(Ie,w,r){"use strict";w.byteLength=function(y){var C=W(y),S=C[0],P=C[1];return 3*(S+P)/4-P},w.toByteArray=function(y){var C,S,P=W(y),V=P[0],k=P[1],l=new O(function(b,g,j){return 3*(g+j)/4-j}(0,V,k)),T=0,N=k>0?V-4:V;for(S=0;S<N;S+=4)C=f[y.charCodeAt(S)]<<18|f[y.charCodeAt(S+1)]<<12|f[y.charCodeAt(S+2)]<<6|f[y.charCodeAt(S+3)],l[T++]=C>>16&255,l[T++]=C>>8&255,l[T++]=255&C;return k===2&&(C=f[y.charCodeAt(S)]<<2|f[y.charCodeAt(S+1)]>>4,l[T++]=255&C),k===1&&(C=f[y.charCodeAt(S)]<<10|f[y.charCodeAt(S+1)]<<4|f[y.charCodeAt(S+2)]>>2,l[T++]=C>>8&255,l[T++]=255&C),l},w.fromByteArray=function(y){for(var C,S=y.length,P=S%3,V=[],k=0,l=S-P;k<l;k+=16383)V.push(Q(y,k,k+16383>l?l:k+16383));return P===1?(C=y[S-1],V.push(h[C>>2]+h[C<<4&63]+"==")):P===2&&(C=(y[S-2]<<8)+y[S-1],V.push(h[C>>10]+h[C>>4&63]+h[C<<2&63]+"=")),V.join("")};for(var h=[],f=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,ge=H.length;E<ge;++E)h[E]=H[E],f[H.charCodeAt(E)]=E;function W(y){var C=y.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=y.indexOf("=");return S===-1&&(S=C),[S,S===C?0:4-S%4]}function Q(y,C,S){for(var P,V,k=[],l=C;l<S;l+=3)P=(y[l]<<16&16711680)+(y[l+1]<<8&65280)+(255&y[l+2]),k.push(h[(V=P)>>18&63]+h[V>>12&63]+h[V>>6&63]+h[63&V]);return k.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(Ie,w){w.read=function(r,h,f,O,H){var E,ge,W=8*H-O-1,Q=(1<<W)-1,y=Q>>1,C=-7,S=f?H-1:0,P=f?-1:1,V=r[h+S];for(S+=P,E=V&(1<<-C)-1,V>>=-C,C+=W;C>0;E=256*E+r[h+S],S+=P,C-=8);for(ge=E&(1<<-C)-1,E>>=-C,C+=O;C>0;ge=256*ge+r[h+S],S+=P,C-=8);if(E===0)E=1-y;else{if(E===Q)return ge?NaN:1/0*(V?-1:1);ge+=Math.pow(2,O),E-=y}return(V?-1:1)*ge*Math.pow(2,E-O)},w.write=function(r,h,f,O,H,E){var ge,W,Q,y=8*E-H-1,C=(1<<y)-1,S=C>>1,P=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,V=O?0:E-1,k=O?1:-1,l=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(W=isNaN(h)?1:0,ge=C):(ge=Math.floor(Math.log(h)/Math.LN2),h*(Q=Math.pow(2,-ge))<1&&(ge--,Q*=2),(h+=ge+S>=1?P/Q:P*Math.pow(2,1-S))*Q>=2&&(ge++,Q/=2),ge+S>=C?(W=0,ge=C):ge+S>=1?(W=(h*Q-1)*Math.pow(2,H),ge+=S):(W=h*Math.pow(2,S-1)*Math.pow(2,H),ge=0));H>=8;r[f+V]=255&W,V+=k,W/=256,H-=8);for(ge=ge<<H|W,y+=H;y>0;r[f+V]=255&ge,V+=k,ge/=256,y-=8);r[f+V-k]|=128*l}},function(Ie,w){var r={}.toString;Ie.exports=Array.isArray||function(h){return r.call(h)=="[object Array]"}},function(Ie,w,r){var h=r(32),f=r(207);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-aria-container {\r + position: absolute; /* try to hide from window but not from screen readers */\r + left:-999em;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(209);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* -------------------- IE10 remove auto clear button -------------------- */\r +\r +::-ms-clear {\r + display: none;\r +}\r +\r +/* All widgets */\r +/* I am not a big fan of this rule */\r +.monaco-editor .editor-widget input {\r + color: inherit;\r +}\r +\r +/* -------------------- Editor -------------------- */\r +\r +.monaco-editor {\r + position: relative;\r + overflow: visible;\r + -webkit-text-size-adjust: 100%;\r +}\r +\r +/* -------------------- Misc -------------------- */\r +\r +.monaco-editor .overflow-guard {\r + position: relative;\r + overflow: hidden;\r +}\r +\r +.monaco-editor .view-overlays {\r + position: absolute;\r + top: 0;\r +}\r +\r +/*\r +.monaco-editor .auto-closed-character {\r + opacity: 0.3;\r +}\r +*/\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(211);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .inputarea {\r + min-width: 0;\r + min-height: 0;\r + margin: 0;\r + padding: 0;\r + position: absolute;\r + outline: none !important;\r + resize: none;\r + border: none;\r + overflow: hidden;\r + color: transparent;\r + background-color: transparent;\r +}\r +/*.monaco-editor .inputarea {\r + position: fixed !important;\r + width: 800px !important;\r + height: 500px !important;\r + top: initial !important;\r + left: initial !important;\r + bottom: 0 !important;\r + right: 0 !important;\r + color: black !important;\r + background: white !important;\r + line-height: 15px !important;\r + font-size: 14px !important;\r +}*/\r +.monaco-editor .inputarea.ime-input {\r + z-index: 10;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(213);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .margin-view-overlays .line-numbers {\r + font-variant-numeric: tabular-nums;\r + position: absolute;\r + text-align: right;\r + display: inline-block;\r + vertical-align: middle;\r + box-sizing: border-box;\r + cursor: default;\r + height: 100%;\r +}\r +\r +.monaco-editor .relative-current-line-number {\r + text-align: left;\r + display: inline-block;\r + width: 100%;\r +}\r +\r +.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\r + margin-top: 1px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(215);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-mouse-cursor-text {\r + cursor: text;\r +}\r +\r +/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */\r +.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text,\r +.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text {\r + cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(217);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .view-overlays .current-line {\r + display: block;\r + position: absolute;\r + left: 0;\r + top: 0;\r + box-sizing: border-box;\r +}\r +\r +.monaco-editor .margin-view-overlays .current-line {\r + display: block;\r + position: absolute;\r + left: 0;\r + top: 0;\r + box-sizing: border-box;\r +}\r +\r +.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\r + border-right: 0;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(219);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/*\r + Keeping name short for faster parsing.\r + cdr = core decorations rendering (div)\r +*/\r +.monaco-editor .lines-content .cdr {\r + position: absolute;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(221);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* Arrows */\r +.monaco-scrollable-element > .scrollbar > .scra {\r + cursor: pointer;\r + font-size: 11px !important;\r +}\r +\r +.monaco-scrollable-element > .visible {\r + opacity: 1;\r +\r + /* Background rule added for IE9 - to allow clicks on dom node */\r + background:rgba(0,0,0,0);\r +\r + transition: opacity 100ms linear;\r +}\r +.monaco-scrollable-element > .invisible {\r + opacity: 0;\r + pointer-events: none;\r +}\r +.monaco-scrollable-element > .invisible.fade {\r + transition: opacity 800ms linear;\r +}\r +\r +/* Scrollable Content Inset Shadow */\r +.monaco-scrollable-element > .shadow {\r + position: absolute;\r + display: none;\r +}\r +.monaco-scrollable-element > .shadow.top {\r + display: block;\r + top: 0;\r + left: 3px;\r + height: 3px;\r + width: 100%;\r + box-shadow: #DDD 0 6px 6px -6px inset;\r +}\r +.monaco-scrollable-element > .shadow.left {\r + display: block;\r + top: 3px;\r + left: 0;\r + height: 100%;\r + width: 3px;\r + box-shadow: #DDD 6px 0 6px -6px inset;\r +}\r +.monaco-scrollable-element > .shadow.top-left-corner {\r + display: block;\r + top: 0;\r + left: 0;\r + height: 3px;\r + width: 3px;\r +}\r +.monaco-scrollable-element > .shadow.top.left {\r + box-shadow: #DDD 6px 6px 6px -6px inset;\r +}\r +\r +/* ---------- Default Style ---------- */\r +\r +.vs .monaco-scrollable-element > .scrollbar > .slider {\r + background: rgba(100, 100, 100, .4);\r +}\r +.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r + background: rgba(121, 121, 121, .4);\r +}\r +.hc-black .monaco-scrollable-element > .scrollbar > .slider {\r + background: rgba(111, 195, 223, .6);\r +}\r +\r +.monaco-scrollable-element > .scrollbar > .slider:hover {\r + background: rgba(100, 100, 100, .7);\r +}\r +.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover {\r + background: rgba(111, 195, 223, .8);\r +}\r +\r +.monaco-scrollable-element > .scrollbar > .slider.active {\r + background: rgba(0, 0, 0, .6);\r +}\r +.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r + background: rgba(191, 191, 191, .4);\r +}\r +.hc-black .monaco-scrollable-element > .scrollbar > .slider.active {\r + background: rgba(111, 195, 223, 1);\r +}\r +\r +.vs-dark .monaco-scrollable-element .shadow.top {\r + box-shadow: none;\r +}\r +\r +.vs-dark .monaco-scrollable-element .shadow.left {\r + box-shadow: #000 6px 0 6px -6px inset;\r +}\r +\r +.vs-dark .monaco-scrollable-element .shadow.top.left {\r + box-shadow: #000 6px 6px 6px -6px inset;\r +}\r +\r +.hc-black .monaco-scrollable-element .shadow.top {\r + box-shadow: none;\r +}\r +\r +.hc-black .monaco-scrollable-element .shadow.left {\r + box-shadow: none;\r +}\r +\r +.hc-black .monaco-scrollable-element .shadow.top.left {\r + box-shadow: none;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(223);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .glyph-margin {\r + position: absolute;\r + top: 0;\r +}\r +\r +/*\r + Keeping name short for faster parsing.\r + cgmr = core glyph margin rendering (div)\r +*/\r +.monaco-editor .margin-view-overlays .cgmr {\r + position: absolute;\r + display: flex;\r + align-items: center;\r + justify-content: center;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(225);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/*\r + Keeping name short for faster parsing.\r + cigr = core ident guides rendering (div)\r +*/\r +.monaco-editor .lines-content .cigr {\r + position: absolute;\r +}\r +.monaco-editor .lines-content .cigra {\r + position: absolute;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(227);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* Uncomment to see lines flashing when they're painted */\r +/*.monaco-editor .view-lines > .view-line {\r + background-color: none;\r + animation-name: flash-background;\r + animation-duration: 800ms;\r +}\r +@keyframes flash-background {\r + 0% { background-color: lightgreen; }\r + 100% { background-color: none }\r +}*/\r +\r +.monaco-editor.no-user-select .lines-content,\r +.monaco-editor.no-user-select .view-line,\r +.monaco-editor.no-user-select .view-lines {\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +.monaco-editor .view-lines {\r + white-space: nowrap;\r +}\r +\r +.monaco-editor .view-line {\r + position: absolute;\r + width: 100%;\r +}\r +\r +.monaco-editor .mtkz {\r + display: inline-block;\r +}\r +\r +/* TODO@tokenization bootstrap fix */\r +/*.monaco-editor .view-line > span > span {\r + float: none;\r + min-height: inherit;\r + margin-left: inherit;\r +}*/\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(229);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +.monaco-editor .lines-decorations {\r + position: absolute;\r + top: 0;\r + background: white;\r +}\r +\r +/*\r + Keeping name short for faster parsing.\r + cldr = core lines decorations rendering (div)\r +*/\r +.monaco-editor .margin-view-overlays .cldr {\r + position: absolute;\r + height: 100%;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(231);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/*\r + Keeping name short for faster parsing.\r + cmdr = core margin decorations rendering (div)\r +*/\r +.monaco-editor .margin-view-overlays .cmdr {\r + position: absolute;\r + left: 0;\r + width: 100%;\r + height: 100%;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(233);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* START cover the case that slider is visible on mouseover */\r +.monaco-editor .minimap.slider-mouseover .minimap-slider {\r + opacity: 0;\r + transition: opacity 100ms linear;\r +}\r +.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\r + opacity: 1;\r +}\r +.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\r + opacity: 1;\r +}\r +/* END cover the case that slider is visible on mouseover */\r +\r +.monaco-editor .minimap-shadow-hidden {\r + position: absolute;\r + width: 0;\r +}\r +.monaco-editor .minimap-shadow-visible {\r + position: absolute;\r + left: -6px;\r + width: 6px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(235);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +.monaco-editor .overlayWidgets {\r + position: absolute;\r + top: 0;\r + left:0;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(237);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .view-ruler {\r + position: absolute;\r + top: 0;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(239);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .scroll-decoration {\r + position: absolute;\r + top: 0;\r + left: 0;\r + height: 6px;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(241);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/*\r + Keeping name short for faster parsing.\r + cslr = core selections layer rendering (div)\r +*/\r +.monaco-editor .lines-content .cslr {\r + position: absolute;\r +}\r +\r +.monaco-editor .top-left-radius { border-top-left-radius: 3px; }\r +.monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; }\r +.monaco-editor .top-right-radius { border-top-right-radius: 3px; }\r +.monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; }\r +\r +.monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; }\r +.monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; }\r +.monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; }\r +.monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; }\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(243);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +.monaco-editor .cursors-layer {\r + position: absolute;\r + top: 0;\r +}\r +\r +.monaco-editor .cursors-layer > .cursor {\r + position: absolute;\r + overflow: hidden;\r +}\r +\r +/* -- smooth-caret-animation -- */\r +.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor {\r + transition: all 80ms;\r +}\r +\r +/* -- block-outline-style -- */\r +.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\r + box-sizing: border-box;\r + background: transparent !important;\r + border-style: solid;\r + border-width: 1px;\r +}\r +\r +/* -- underline-style -- */\r +.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\r + border-bottom-width: 2px;\r + border-bottom-style: solid;\r + background: transparent !important;\r + box-sizing: border-box;\r +}\r +\r +/* -- underline-thin-style -- */\r +.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\r + border-bottom-width: 1px;\r + border-bottom-style: solid;\r + background: transparent !important;\r + box-sizing: border-box;\r +}\r +\r +@keyframes monaco-cursor-smooth {\r + 0%,\r + 20% {\r + opacity: 1;\r + }\r + 60%,\r + 100% {\r + opacity: 0;\r + }\r +}\r +\r +@keyframes monaco-cursor-phase {\r + 0%,\r + 20% {\r + opacity: 1;\r + }\r + 90%,\r + 100% {\r + opacity: 0;\r + }\r +}\r +\r +@keyframes monaco-cursor-expand {\r + 0%,\r + 20% {\r + transform: scaleY(1);\r + }\r + 80%,\r + 100% {\r + transform: scaleY(0);\r + }\r +}\r +\r +.cursor-smooth {\r + animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\r +}\r +\r +.cursor-phase {\r + animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\r +}\r +\r +.cursor-expand > .cursor {\r + animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(245);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +/* ---------- DiffEditor ---------- */\r +\r +.monaco-diff-editor .diffOverview {\r + z-index: 9;\r +}\r +\r +.monaco-diff-editor .diffOverview .diffViewport {\r + z-index: 10;\r +}\r +\r +/* colors not externalized: using transparancy on background */\r +.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); }\r +.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); }\r +\r +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); }\r +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); }\r +.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; }\r +\r +.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\r + z-index: 10;\r +}\r +.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); }\r +.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; }\r +\r +/* ---------- Diff ---------- */\r +\r +.monaco-editor .insert-sign,\r +.monaco-diff-editor .insert-sign,\r +.monaco-editor .delete-sign,\r +.monaco-diff-editor .delete-sign {\r + font-size: 11px !important;\r + opacity: 0.7 !important;\r + display: flex !important;\r + align-items: center;\r +}\r +.monaco-editor.hc-black .insert-sign,\r +.monaco-diff-editor.hc-black .insert-sign,\r +.monaco-editor.hc-black .delete-sign,\r +.monaco-diff-editor.hc-black .delete-sign {\r + opacity: 1;\r +}\r +\r +.monaco-editor .inline-deleted-margin-view-zone {\r + text-align: right;\r +}\r +.monaco-editor .inline-added-margin-view-zone {\r + text-align: right;\r +}\r +\r +/* ---------- Inline Diff ---------- */\r +\r +.monaco-editor .view-zones .view-lines .view-line span {\r + display: inline-block;\r +}\r +\r +.monaco-editor .margin-view-zones .lightbulb-glyph:hover {\r + cursor: pointer;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(247);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-sash {\r + position: absolute;\r + z-index: 35;\r + touch-action: none;\r +}\r +\r +.monaco-sash.disabled {\r + pointer-events: none;\r +}\r +\r +.monaco-sash.mac.vertical {\r + cursor: col-resize;\r +}\r +\r +.monaco-sash.vertical.minimum {\r + cursor: e-resize;\r +}\r +\r +.monaco-sash.vertical.maximum {\r + cursor: w-resize;\r +}\r +\r +.monaco-sash.mac.horizontal {\r + cursor: row-resize;\r +}\r +\r +.monaco-sash.horizontal.minimum {\r + cursor: s-resize;\r +}\r +\r +.monaco-sash.horizontal.maximum {\r + cursor: n-resize;\r +}\r +\r +.monaco-sash.disabled {\r + cursor: default !important;\r + pointer-events: none !important;\r +}\r +\r +/** Debug **/\r +\r +.monaco-sash.debug {\r + background: cyan;\r +}\r +\r +.monaco-sash.debug.disabled {\r + background: rgba(0, 255, 255, 0.2);\r +}\r +\r +.monaco-sash.debug:not(.disabled).orthogonal-start::before,\r +.monaco-sash.debug:not(.disabled).orthogonal-end::after {\r + background: red;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(249);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-diff-editor .diff-review-line-number {\r + text-align: right;\r + display: inline-block;\r +}\r +\r +.monaco-diff-editor .diff-review {\r + position: absolute;\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +.monaco-diff-editor .diff-review-summary {\r + padding-left: 10px;\r +}\r +\r +.monaco-diff-editor .diff-review-shadow {\r + position: absolute;\r +}\r +\r +.monaco-diff-editor .diff-review-row {\r + white-space: pre;\r +}\r +\r +.monaco-diff-editor .diff-review-table {\r + display: table;\r + min-width: 100%;\r +}\r +\r +.monaco-diff-editor .diff-review-row {\r + display: table-row;\r + width: 100%;\r +}\r +\r +.monaco-diff-editor .diff-review-spacer {\r + display: inline-block;\r + width: 10px;\r + vertical-align: middle;\r +}\r +\r +.monaco-diff-editor .diff-review-spacer > .codicon {\r + font-size: 9px !important;\r +}\r +\r +.monaco-diff-editor .diff-review-actions {\r + display: inline-block;\r + position: absolute;\r + right: 10px;\r + top: 2px;\r +}\r +\r +.monaco-diff-editor .diff-review-actions .action-label {\r + width: 16px;\r + height: 16px;\r + margin: 2px 0;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-action-bar {\r + text-align: right;\r + white-space: nowrap;\r +}\r +\r +.monaco-action-bar .actions-container {\r + display: flex;\r + margin: 0 auto;\r + padding: 0;\r + width: 100%;\r + justify-content: flex-end;\r +}\r +\r +.monaco-action-bar.vertical .actions-container {\r + display: inline-block;\r +}\r +\r +.monaco-action-bar.reverse .actions-container {\r + flex-direction: row-reverse;\r +}\r +\r +.monaco-action-bar .action-item {\r + cursor: pointer;\r + display: inline-block;\r + transition: transform 50ms ease;\r + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\r +}\r +\r +.monaco-action-bar .action-item.disabled {\r + cursor: default;\r +}\r +\r +.monaco-action-bar.animated .action-item.active {\r + transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */\r +}\r +\r +.monaco-action-bar .action-item .icon,\r +.monaco-action-bar .action-item .codicon {\r + display: inline-block;\r +}\r +\r +.monaco-action-bar .action-item .codicon {\r + display: flex;\r + align-items: center;\r +}\r +\r +.monaco-action-bar .action-label {\r + font-size: 11px;\r + margin-right: 4px;\r +}\r +\r +.monaco-action-bar .action-item.disabled .action-label,\r +.monaco-action-bar .action-item.disabled .action-label:hover {\r + opacity: 0.4;\r +}\r +\r +/* Vertical actions */\r +\r +.monaco-action-bar.vertical {\r + text-align: left;\r +}\r +\r +.monaco-action-bar.vertical .action-item {\r + display: block;\r +}\r +\r +.monaco-action-bar.vertical .action-label.separator {\r + display: block;\r + border-bottom: 1px solid #bbb;\r + padding-top: 1px;\r + margin-left: .8em;\r + margin-right: .8em;\r +}\r +\r +.monaco-action-bar.animated.vertical .action-item.active {\r + transform: translate(5px, 0);\r +}\r +\r +.secondary-actions .monaco-action-bar .action-label {\r + margin-left: 6px;\r +}\r +\r +/* Action Items */\r +.monaco-action-bar .action-item.select-container {\r + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\r + flex: 1;\r + max-width: 170px;\r + min-width: 60px;\r + display: flex;\r + align-items: center;\r + justify-content: center;\r + margin-right: 10px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(252);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){var h=r(33),f=r(253),O=r(254);w=h(!1);var H=f(O);w.push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +@font-face {\r + font-family: "codicon";\r + src: url(`+H+`) format("truetype");\r +}\r +\r +.codicon[class*='codicon-'] {\r + font: normal normal normal 16px/1 codicon;\r + display: inline-block;\r + text-decoration: none;\r + text-rendering: auto;\r + text-align: center;\r + -webkit-font-smoothing: antialiased;\r + -moz-osx-font-smoothing: grayscale;\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +/* icon rules are dynamically created in codiconStyles */\r +`,""]),Ie.exports=w},function(Ie,w,r){"use strict";Ie.exports=function(h,f){return f||(f={}),typeof(h=h&&h.__esModule?h.default:h)!="string"?h:(/^['"].*['"]$/.test(h)&&(h=h.slice(1,-1)),f.hash&&(h+=f.hash),/["'() \t\n]/.test(h)||f.needQuotes?'"'.concat(h.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):h)}},function(Ie,w,r){"use strict";r.r(w),w.default=r.p+"b3726f0165bf67ac68494ee7a1b9f6ce.ttf"},function(Ie,w,r){var h=r(32),f=r(256);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.codicon-wrench-subaction {\r + opacity: 0.5;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(258);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +@keyframes codicon-spin {\r + 100% {\r + transform:rotate(360deg);\r + }\r +}\r +\r +.codicon-animation-spin {\r + /* Use steps to throttle FPS to reduce CPU usage */\r + animation: codicon-spin 1.5s steps(30) infinite;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(260);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.context-view .monaco-menu {\r + min-width: 130px;\r +}\r +\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(262);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.context-view {\r + position: absolute;\r + z-index: 2500;\r +}\r +\r +.context-view.fixed {\r + all: initial;\r + font-family: inherit;\r + font-size: 13px;\r + position: fixed;\r + z-index: 2500;\r + color: inherit;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-list {\r + position: relative;\r + height: 100%;\r + width: 100%;\r + white-space: nowrap;\r +}\r +\r +.monaco-list.mouse-support {\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +.monaco-list > .monaco-scrollable-element {\r + height: 100%;\r +}\r +\r +.monaco-list-rows {\r + position: relative;\r + width: 100%;\r + height: 100%;\r +}\r +\r +.monaco-list.horizontal-scrolling .monaco-list-rows {\r + width: auto;\r + min-width: 100%;\r +}\r +\r +.monaco-list-row {\r + position: absolute;\r + box-sizing: border-box;\r + overflow: hidden;\r + width: 100%;\r +}\r +\r +.monaco-list.mouse-support .monaco-list-row {\r + cursor: pointer;\r + touch-action: none;\r +}\r +\r +/* for OS X ballistic scrolling */\r +.monaco-list-row.scrolling {\r + display: none !important;\r +}\r +\r +/* Focus */\r +.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple {\r + outline: 0 !important;\r +}\r +\r +.monaco-list:focus .monaco-list-row.selected .codicon {\r + color: inherit;\r +}\r +\r +/* Dnd */\r +.monaco-drag-image {\r + display: inline-block;\r + padding: 1px 7px;\r + border-radius: 10px;\r + font-size: 12px;\r + position: absolute;\r +}\r +\r +/* Type filter */\r +\r +.monaco-list-type-filter {\r + display: flex;\r + align-items: center;\r + position: absolute;\r + border-radius: 2px;\r + padding: 0px 3px;\r + max-width: calc(100% - 10px);\r + text-overflow: ellipsis;\r + overflow: hidden;\r + text-align: right;\r + box-sizing: border-box;\r + cursor: all-scroll;\r + font-size: 13px;\r + line-height: 18px;\r + height: 20px;\r + z-index: 1;\r + top: 4px;\r +}\r +\r +.monaco-list-type-filter.dragging {\r + transition: top 0.2s, left 0.2s;\r +}\r +\r +.monaco-list-type-filter.ne {\r + right: 4px;\r +}\r +\r +.monaco-list-type-filter.nw {\r + left: 4px;\r +}\r +\r +.monaco-list-type-filter > .controls {\r + display: flex;\r + align-items: center;\r + box-sizing: border-box;\r + transition: width 0.2s;\r + width: 0;\r +}\r +\r +.monaco-list-type-filter.dragging > .controls,\r +.monaco-list-type-filter:hover > .controls {\r + width: 36px;\r +}\r +\r +.monaco-list-type-filter > .controls > * {\r + border: none;\r + box-sizing: border-box;\r + -webkit-appearance: none;\r + -moz-appearance: none;\r + background: none;\r + width: 16px;\r + height: 16px;\r + flex-shrink: 0;\r + margin: 0;\r + padding: 0;\r + display: flex;\r + align-items: center;\r + justify-content: center;\r + cursor: pointer;\r +}\r +\r +.monaco-list-type-filter > .controls > .filter {\r + margin-left: 4px;\r +}\r +\r +.monaco-list-type-filter-message {\r + position: absolute;\r + box-sizing: border-box;\r + width: 100%;\r + height: 100%;\r + top: 0;\r + left: 0;\r + padding: 40px 1em 1em 1em;\r + text-align: center;\r + white-space: normal;\r + opacity: 0.7;\r + pointer-events: none;\r +}\r +\r +.monaco-list-type-filter-message:empty {\r + display: none;\r +}\r +\r +/* Electron */\r +\r +.monaco-list-type-filter {\r + cursor: grab;\r +}\r +\r +.monaco-list-type-filter.dragging {\r + cursor: grabbing;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(265);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-tl-row {\r + display: flex;\r + height: 100%;\r + align-items: center;\r + position: relative;\r +}\r +\r +.monaco-tl-indent {\r + height: 100%;\r + position: absolute;\r + top: 0;\r + left: 16px;\r + pointer-events: none;\r +}\r +\r +.hide-arrows .monaco-tl-indent {\r + left: 12px;\r +}\r +\r +.monaco-tl-indent > .indent-guide {\r + display: inline-block;\r + box-sizing: border-box;\r + height: 100%;\r + border-left: 1px solid transparent;\r +}\r +\r +.monaco-tl-indent > .indent-guide {\r + transition: border-color 0.1s linear;\r +}\r +\r +.monaco-tl-twistie,\r +.monaco-tl-contents {\r + height: 100%;\r +}\r +\r +.monaco-tl-twistie {\r + font-size: 10px;\r + text-align: right;\r + padding-right: 6px;\r + flex-shrink: 0;\r + width: 16px;\r + display: flex !important;\r + align-items: center;\r + justify-content: center;\r + color: inherit !important;\r + transform: translateX(3px);\r +}\r +\r +.monaco-tl-contents {\r + flex: 1;\r + overflow: hidden;\r +}\r +\r +.monaco-tl-twistie.collapsed::before {\r + transform: rotate(-90deg);\r +}\r +\r +.monaco-tl-twistie.codicon-tree-item-loading::before {\r + /* Use steps to throttle FPS to reduce CPU usage */\r + animation: codicon-spin 1.25s steps(30) infinite;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(267);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.quick-input-widget {\r + font-size: 13px;\r +}\r +\r +.quick-input-widget .monaco-highlighted-label .highlight,\r +.quick-input-widget .monaco-highlighted-label .highlight {\r + color: #0066BF;\r +}\r +\r +.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\r +.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\r + color: #0097fb;\r +}\r +\r +.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\r +.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\r + color: #F38518;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.quick-input-widget {\r + position: absolute;\r + width: 600px;\r + z-index: 2000;\r + padding-bottom: 6px;\r + left: 50%;\r + margin-left: -300px;\r +}\r +\r +.quick-input-titlebar {\r + display: flex;\r +}\r +\r +.quick-input-left-action-bar {\r + display: flex;\r + margin-left: 4px;\r + flex: 1;\r +}\r +\r +.quick-input-left-action-bar.monaco-action-bar .actions-container {\r + justify-content: flex-start;\r +}\r +\r +.quick-input-title {\r + padding: 3px 0px;\r + text-align: center;\r +}\r +\r +.quick-input-right-action-bar {\r + display: flex;\r + margin-right: 4px;\r + flex: 1;\r +}\r +\r +.quick-input-titlebar .monaco-action-bar .action-label.codicon {\r + margin: 0;\r + width: 19px;\r + height: 100%;\r + background-position: center;\r + background-repeat: no-repeat;\r +}\r +\r +.quick-input-description {\r + margin: 6px;\r +}\r +\r +.quick-input-header {\r + display: flex;\r + padding: 6px 6px 0px 6px;\r + margin-bottom: -2px;\r +}\r +\r +.quick-input-widget.hidden-input .quick-input-header {\r + /* reduce margins and paddings when input box hidden */\r + padding: 0;\r + margin-bottom: 0;\r +}\r +\r +.quick-input-and-message {\r + display: flex;\r + flex-direction: column;\r + flex-grow: 1;\r + position: relative;\r +}\r +\r +.quick-input-check-all {\r + align-self: center;\r + margin: 0;\r +}\r +\r +.quick-input-filter {\r + flex-grow: 1;\r + display: flex;\r + position: relative;\r +}\r +\r +.quick-input-box {\r + flex-grow: 1;\r +}\r +\r +.quick-input-widget.show-checkboxes .quick-input-box,\r +.quick-input-widget.show-checkboxes .quick-input-message {\r + margin-left: 5px;\r +}\r +\r +.quick-input-visible-count {\r + position: absolute;\r + left: -10000px;\r +}\r +\r +.quick-input-count {\r + align-self: center;\r + position: absolute;\r + right: 4px;\r + display: flex;\r + align-items: center;\r +}\r +\r +.quick-input-count .monaco-count-badge {\r + vertical-align: middle;\r + padding: 2px 4px;\r + border-radius: 2px;\r + min-height: auto;\r + line-height: normal;\r +}\r +\r +.quick-input-action {\r + margin-left: 6px;\r +}\r +\r +.quick-input-action .monaco-text-button {\r + font-size: 11px;\r + padding: 0 6px;\r + display: flex;\r + height: 100%;\r + align-items: center;\r +}\r +\r +.quick-input-message {\r + margin-top: -1px;\r + padding: 5px 5px 2px 5px;\r +}\r +\r +.quick-input-progress.monaco-progress-container {\r + position: relative;\r +}\r +\r +.quick-input-progress.monaco-progress-container,\r +.quick-input-progress.monaco-progress-container .progress-bit {\r + height: 2px;\r +}\r +\r +.quick-input-list {\r + line-height: 22px;\r + margin-top: 6px;\r +}\r +\r +.quick-input-widget.hidden-input .quick-input-list {\r + margin-top: 0; /* reduce margins when input box hidden */\r +}\r +\r +.quick-input-list .monaco-list {\r + overflow: hidden;\r + max-height: calc(20 * 22px);\r +}\r +\r +.quick-input-list .quick-input-list-entry {\r + box-sizing: border-box;\r + overflow: hidden;\r + display: flex;\r + height: 100%;\r + padding: 0 6px;\r +}\r +\r +.quick-input-list .quick-input-list-entry.quick-input-list-separator-border {\r + border-top-width: 1px;\r + border-top-style: solid;\r +}\r +\r +.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border {\r + border-top-style: none;\r +}\r +\r +.quick-input-list .quick-input-list-label {\r + overflow: hidden;\r + display: flex;\r + height: 100%;\r + flex: 1;\r +}\r +\r +.quick-input-list .quick-input-list-checkbox {\r + align-self: center;\r + margin: 0;\r +}\r +\r +.quick-input-list .quick-input-list-rows {\r + overflow: hidden;\r + text-overflow: ellipsis;\r + display: flex;\r + flex-direction: column;\r + height: 100%;\r + flex: 1;\r + margin-left: 5px;\r +}\r +\r +.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows {\r + margin-left: 10px;\r +}\r +\r +.quick-input-widget .quick-input-list .quick-input-list-checkbox {\r + display: none;\r +}\r +.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox {\r + display: inline;\r +}\r +\r +.quick-input-list .quick-input-list-rows > .quick-input-list-row {\r + display: flex;\r + align-items: center;\r +}\r +\r +.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label,\r +.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container {\r + flex: 1; /* make sure the icon label grows within the row */\r +}\r +\r +.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] {\r + vertical-align: sub;\r +}\r +\r +.quick-input-list .quick-input-list-rows .monaco-highlighted-label span {\r + opacity: 1;\r +}\r +\r +.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {\r + margin-right: 8px; /* separate from the separator label or scrollbar if any */\r +}\r +\r +.quick-input-list .quick-input-list-label-meta {\r + opacity: 0.7;\r + line-height: normal;\r + text-overflow: ellipsis;\r + overflow: hidden;\r +}\r +\r +.quick-input-list .monaco-highlighted-label .highlight {\r + font-weight: bold;\r +}\r +\r +.quick-input-list .quick-input-list-entry .quick-input-list-separator {\r + margin-right: 8px; /* separate from keybindings or actions */\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar {\r + display: flex;\r + flex: 0;\r + overflow: visible;\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar .action-label {\r + /*\r + * By default, actions in the quick input action bar are hidden\r + * until hovered over them or selected.\r + */\r + display: none;\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\r + margin: 0;\r + height: 100%;\r + padding: 0 2px;\r + vertical-align: middle;\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar {\r + margin-top: 1px;\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar {\r + margin-right: 4px; /* separate from scrollbar */\r +}\r +\r +.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\r + margin-right: 4px; /* separate actions */\r +}\r +\r +.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,\r +.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,\r +.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label {\r + display: flex;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(270);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* ---------- Icon label ---------- */\r +\r +.monaco-icon-label {\r + display: flex; /* required for icons support :before rule */\r + overflow: hidden;\r + text-overflow: ellipsis;\r +}\r +\r +.monaco-icon-label::before {\r +\r + /* svg icons rendered as background image */\r + background-size: 16px;\r + background-position: left center;\r + background-repeat: no-repeat;\r + padding-right: 6px;\r + width: 16px;\r + height: 22px;\r + line-height: inherit !important;\r + display: inline-block;\r +\r + /* fonts icons */\r + -webkit-font-smoothing: antialiased;\r + -moz-osx-font-smoothing: grayscale;\r + vertical-align: top;\r +\r + flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */\r +}\r +\r +.monaco-icon-label > .monaco-icon-label-container {\r + min-width: 0;\r + overflow: hidden;\r + text-overflow: ellipsis;\r + flex: 1;\r +}\r +\r +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\r + color: inherit;\r + white-space: pre; /* enable to show labels that include multiple whitespaces */\r +}\r +\r +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\r + margin: 0 2px;\r + opacity: 0.5;\r +}\r +\r +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r + opacity: .7;\r + margin-left: 0.5em;\r + font-size: 0.9em;\r + white-space: pre; /* enable to show labels that include multiple whitespaces */\r +}\r +\r +.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r + opacity: .95;\r +}\r +\r +.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r +.monaco-icon-label.italic > .monaco-icon-description-container > .label-description {\r + font-style: italic;\r +}\r +\r +.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r +.monaco-icon-label.strikethrough > .monaco-icon-description-container > .label-description {\r + text-decoration: line-through;\r +}\r +\r +.monaco-icon-label::after {\r + opacity: 0.75;\r + font-size: 90%;\r + font-weight: 600;\r + padding: 0 16px 0 5px;\r + text-align: center;\r +}\r +\r +/* make sure selection color wins when a label is being selected */\r +.monaco-list:focus .selected .monaco-icon-label, /* list */\r +.monaco-list:focus .selected .monaco-icon-label::after\r +{\r + color: inherit !important;\r +}\r +\r +.monaco-list-row.focused.selected .label-description,\r +.monaco-list-row.selected .label-description {\r + opacity: .8;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(272);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-keybinding {\r + display: flex;\r + align-items: center;\r + line-height: 10px;\r +}\r +\r +.monaco-keybinding > .monaco-keybinding-key {\r + display: inline-block;\r + border: solid 1px rgba(204, 204, 204, 0.4);\r + border-bottom-color: rgba(187, 187, 187, 0.4);\r + border-radius: 3px;\r + box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\r + background-color: rgba(221, 221, 221, 0.4);\r + vertical-align: middle;\r + color: #555;\r + font-size: 11px;\r + padding: 3px 5px;\r + margin: 0 2px;\r +}\r +\r +.monaco-keybinding > .monaco-keybinding-key:first-child {\r + margin-left: 0;\r +}\r +\r +.monaco-keybinding > .monaco-keybinding-key:last-child {\r + margin-right: 0;\r +}\r +\r +.hc-black .monaco-keybinding > .monaco-keybinding-key,\r +.vs-dark .monaco-keybinding > .monaco-keybinding-key {\r + background-color: rgba(128, 128, 128, 0.17);\r + color: #ccc;\r + border: solid 1px rgba(51, 51, 51, 0.6);\r + border-bottom-color: rgba(68, 68, 68, 0.6);\r + box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\r +}\r +\r +.monaco-keybinding > .monaco-keybinding-key-separator {\r + display: inline-block;\r +}\r +\r +.monaco-keybinding > .monaco-keybinding-key-chord-separator {\r + width: 6px;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(274);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-inputbox {\r + position: relative;\r + display: block;\r + padding: 0;\r + box-sizing: border-box;\r +\r + /* Customizable */\r + font-size: inherit;\r +}\r +\r +.monaco-inputbox.idle {\r + border: 1px solid transparent;\r +}\r +\r +.monaco-inputbox > .wrapper > .input,\r +.monaco-inputbox > .wrapper > .mirror {\r +\r + /* Customizable */\r + padding: 4px;\r +}\r +\r +.monaco-inputbox > .wrapper {\r + position: relative;\r + width: 100%;\r + height: 100%;\r +}\r +\r +.monaco-inputbox > .wrapper > .input {\r + display: inline-block;\r + box-sizing: border-box;\r + width: 100%;\r + height: 100%;\r + line-height: inherit;\r + border: none;\r + font-family: inherit;\r + font-size: inherit;\r + resize: none;\r + color: inherit;\r +}\r +\r +.monaco-inputbox > .wrapper > input {\r + text-overflow: ellipsis;\r +}\r +\r +.monaco-inputbox > .wrapper > textarea.input {\r + display: block;\r + -ms-overflow-style: none; /* IE 10+: hide scrollbars */\r + scrollbar-width: none; /* Firefox: hide scrollbars */\r + outline: none;\r +}\r +\r +.monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar {\r + display: none; /* Chrome + Safari: hide scrollbar */\r +}\r +\r +.monaco-inputbox > .wrapper > textarea.input.empty {\r + white-space: nowrap;\r +}\r +\r +.monaco-inputbox > .wrapper > .mirror {\r + position: absolute;\r + display: inline-block;\r + width: 100%;\r + top: 0;\r + left: 0;\r + box-sizing: border-box;\r + white-space: pre-wrap;\r + visibility: hidden;\r + word-wrap: break-word;\r +}\r +\r +/* Context view */\r +\r +.monaco-inputbox-container {\r + text-align: right;\r +}\r +\r +.monaco-inputbox-container .monaco-inputbox-message {\r + display: inline-block;\r + overflow: hidden;\r + text-align: left;\r + width: 100%;\r + box-sizing: border-box;\r + padding: 0.4em;\r + font-size: 12px;\r + line-height: 17px;\r + min-height: 34px;\r + margin-top: -1px;\r + word-wrap: break-word;\r +}\r +\r +/* Action bar support */\r +.monaco-inputbox .monaco-action-bar {\r + position: absolute;\r + right: 2px;\r + top: 4px;\r +}\r +\r +.monaco-inputbox .monaco-action-bar .action-item {\r + margin-left: 2px;\r +}\r +\r +.monaco-inputbox .monaco-action-bar .action-item .codicon {\r + background-repeat: no-repeat;\r + width: 16px;\r + height: 16px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(276);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-count-badge {\r + padding: 3px 6px;\r + border-radius: 11px;\r + font-size: 11px;\r + min-width: 18px;\r + min-height: 18px;\r + line-height: 11px;\r + font-weight: normal;\r + text-align: center;\r + display: inline-block;\r + box-sizing: border-box;\r +}\r +\r +.monaco-count-badge.long {\r + padding: 2px 3px;\r + border-radius: 2px;\r + min-height: auto;\r + line-height: normal;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(278);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-progress-container {\r + width: 100%;\r + height: 5px;\r + overflow: hidden; /* keep progress bit in bounds */\r +}\r +\r +.monaco-progress-container .progress-bit {\r + width: 2%;\r + height: 5px;\r + position: absolute;\r + left: 0;\r + display: none;\r +}\r +\r +.monaco-progress-container.active .progress-bit {\r + display: inherit;\r +}\r +\r +.monaco-progress-container.discrete .progress-bit {\r + left: 0;\r + transition: width 100ms linear;\r +}\r +\r +.monaco-progress-container.discrete.done .progress-bit {\r + width: 100%;\r +}\r +\r +.monaco-progress-container.infinite .progress-bit {\r + animation-name: progress;\r + animation-duration: 4s;\r + animation-iteration-count: infinite;\r + animation-timing-function: linear;\r + transform: translate3d(0px, 0px, 0px);\r +}\r +\r +/**\r + * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\r + * that container. Since translateX is relative to the progress bit size, we have to multiple it with\r + * its relative size to the parent container:\r + * 50%: 50 * 50 = 2500%\r + * 100%: 50 * 100 - 50 (do not overflow): 4950%\r + */\r +@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } }\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(280);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-text-button {\r + box-sizing: border-box;\r + display: flex;\r + width: 100%;\r + padding: 4px;\r + text-align: center;\r + cursor: pointer;\r + outline-offset: 2px !important;\r + justify-content: center;\r + align-items: center;\r +}\r +\r +.monaco-text-button:hover {\r + text-decoration: none !important;\r +}\r +\r +.monaco-button.disabled {\r + opacity: 0.4;\r + cursor: default;\r +}\r +\r +.monaco-button > .codicon {\r + margin: 0 0.2em;\r + color: inherit !important;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(282);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .selection-anchor {\r + background-color: #007ACC;\r + width: 2px !important;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(284);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .bracket-match {\r + box-sizing: border-box;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(286);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .monaco-editor-overlaymessage {\r + padding-bottom: 8px;\r + z-index: 10000;\r +}\r +\r +@keyframes fadeIn {\r + from { opacity: 0; }\r + to { opacity: 1; }\r +}\r +.monaco-editor .monaco-editor-overlaymessage.fadeIn {\r + animation: fadeIn 150ms ease-out;\r +}\r +\r +@keyframes fadeOut {\r + from { opacity: 1; }\r + to { opacity: 0; }\r +}\r +.monaco-editor .monaco-editor-overlaymessage.fadeOut {\r + animation: fadeOut 100ms ease-out;\r +}\r +\r +.monaco-editor .monaco-editor-overlaymessage .message {\r + padding: 1px 4px;\r +}\r +\r +.monaco-editor .monaco-editor-overlaymessage .anchor {\r + width: 0 !important;\r + height: 0 !important;\r + border-color: transparent;\r + border-style: solid;\r + z-index: 1000;\r + border-width: 8px;\r + position: absolute;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(288);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .lightbulb-glyph,\r +.monaco-editor .codicon-lightbulb {\r + display: flex;\r + align-items: center;\r + justify-content: center;\r + height: 16px;\r + width: 20px;\r + padding-left: 2px;\r +}\r +\r +.monaco-editor .lightbulb-glyph:hover,\r +.monaco-editor .codicon-lightbulb:hover {\r + cursor: pointer;\r + /* transform: scale(1.3, 1.3); */\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(290);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .codelens-decoration {\r + overflow: hidden;\r + display: inline-block;\r + text-overflow: ellipsis;\r +}\r +\r +.monaco-editor .codelens-decoration > span,\r +.monaco-editor .codelens-decoration > a {\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r + white-space: nowrap;\r + vertical-align: sub;\r +}\r +\r +.monaco-editor .codelens-decoration > a {\r + text-decoration: none;\r +}\r +\r +.monaco-editor .codelens-decoration > a:hover {\r + cursor: pointer;\r +}\r +\r +.monaco-editor .codelens-decoration .codicon {\r + vertical-align: middle;\r + color: currentColor !important;\r +}\r +\r +.monaco-editor .codelens-decoration > a:hover .codicon::before {\r + cursor: pointer;\r +}\r +\r +@keyframes fadein {\r + 0% { opacity: 0; visibility: visible;}\r + 100% { opacity: 1; }\r +}\r +\r +.monaco-editor .codelens-decoration.fadein {\r + animation: fadein 0.1s linear;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(292);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor.vs .dnd-target {\r + border-right: 2px dotted black;\r + color: white; /* opposite of black */\r +}\r +.monaco-editor.vs-dark .dnd-target {\r + border-right: 2px dotted #AEAFAD;\r + color: #51504f; /* opposite of #AEAFAD */\r +}\r +.monaco-editor.hc-black .dnd-target {\r + border-right: 2px dotted #fff;\r + color: #000; /* opposite of #fff */\r +}\r +\r +.monaco-editor.mouse-default .view-lines,\r +.monaco-editor.vs-dark.mac.mouse-default .view-lines,\r +.monaco-editor.hc-black.mac.mouse-default .view-lines {\r + cursor: default;\r +}\r +.monaco-editor.mouse-copy .view-lines,\r +.monaco-editor.vs-dark.mac.mouse-copy .view-lines,\r +.monaco-editor.hc-black.mac.mouse-copy .view-lines {\r + cursor: copy;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(294);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-custom-checkbox {\r + margin-left: 2px;\r + float: left;\r + cursor: pointer;\r + overflow: hidden;\r + opacity: 0.7;\r + width: 20px;\r + height: 20px;\r + border: 1px solid transparent;\r + padding: 1px;\r + box-sizing: border-box;\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +.monaco-custom-checkbox:hover,\r +.monaco-custom-checkbox.checked {\r + opacity: 1;\r +}\r +\r +.hc-black .monaco-custom-checkbox {\r + background: none;\r +}\r +\r +.hc-black .monaco-custom-checkbox:hover {\r + background: none;\r +}\r +\r +.monaco-custom-checkbox.monaco-simple-checkbox {\r + height: 18px;\r + width: 18px;\r + border: 1px solid transparent;\r + border-radius: 3px;\r + margin-right: 9px;\r + margin-left: 0px;\r + padding: 0px;\r + opacity: 1;\r + background-size: 16px !important;\r +}\r +\r +/* hide check when unchecked */\r +.monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before {\r + visibility: hidden;;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(296);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* Find widget */\r +.monaco-editor .find-widget {\r + position: absolute;\r + z-index: 50;\r + height: 33px;\r + overflow: hidden;\r + line-height: 19px;\r + transition: transform 200ms linear;\r + padding: 0 4px;\r + box-sizing: border-box;\r + transform: translateY(calc(-100% - 10px)); /* shadow (10px) */\r +}\r +\r +.monaco-editor .find-widget textarea {\r + margin: 0px;\r +}\r +\r +.monaco-editor .find-widget.hiddenEditor {\r + display: none;\r +}\r +\r +/* Find widget when replace is toggled on */\r +.monaco-editor .find-widget.replaceToggled > .replace-part {\r + display: flex;\r +}\r +\r +.monaco-editor .find-widget.visible {\r + transform: translateY(0);\r +}\r +\r +.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {\r + outline: 1px solid -webkit-focus-ring-color;\r + outline-offset: -1px;\r +}\r +\r +.monaco-editor .find-widget .monaco-inputbox .input {\r + background-color: transparent;\r + min-height: 0;\r +}\r +\r +.monaco-editor .find-widget .monaco-findInput .input {\r + font-size: 13px;\r +}\r +\r +.monaco-editor .find-widget > .find-part,\r +.monaco-editor .find-widget > .replace-part {\r + margin: 4px 0 0 17px;\r + font-size: 12px;\r + display: flex;\r +}\r +\r +.monaco-editor .find-widget > .find-part .monaco-inputbox,\r +.monaco-editor .find-widget > .replace-part .monaco-inputbox {\r + min-height: 25px;\r +}\r +\r +\r +.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\r + padding-right: 22px;\r +}\r +\r +.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\r +.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .mirror,\r +.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input,\r +.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror {\r + padding-top: 2px;\r + padding-bottom: 2px;\r +}\r +\r +.monaco-editor .find-widget > .find-part .find-actions {\r + height: 25px;\r + display: flex;\r + align-items: center;\r +}\r +\r +.monaco-editor .find-widget > .replace-part .replace-actions {\r + height: 25px;\r + display: flex;\r + align-items: center;\r +}\r +\r +.monaco-editor .find-widget .monaco-findInput {\r + vertical-align: middle;\r + display: flex;\r + flex:1;\r +}\r +\r +.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {\r + /* Make sure textarea inherits the width correctly */\r + width: 100%;\r +}\r +\r +.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {\r + /* Hide vertical scrollbar */\r + opacity: 0;\r +}\r +\r +.monaco-editor .find-widget .matchesCount {\r + display: flex;\r + flex: initial;\r + margin: 0 0 0 3px;\r + padding: 2px 0 0 2px;\r + height: 25px;\r + vertical-align: middle;\r + box-sizing: border-box;\r + text-align: center;\r + line-height: 23px;\r +}\r +\r +.monaco-editor .find-widget .button {\r + width: 20px;\r + height: 20px;\r + display: flex;\r + flex: initial;\r + margin-left: 3px;\r + background-position: center center;\r + background-repeat: no-repeat;\r + cursor: pointer;\r + display: flex;\r + align-items: center;\r + justify-content: center;\r +}\r +\r +.monaco-editor .find-widget .button.left {\r + margin-left: 0;\r + margin-right: 3px;\r +}\r +\r +.monaco-editor .find-widget .button.wide {\r + width: auto;\r + padding: 1px 6px;\r + top: -1px;\r +}\r +\r +.monaco-editor .find-widget .button.toggle {\r + position: absolute;\r + top: 0;\r + left: 3px;\r + width: 18px;\r + height: 100%;\r + box-sizing: border-box;\r +}\r +\r +.monaco-editor .find-widget .button.toggle.disabled {\r + display: none;\r +}\r +\r +.monaco-editor .find-widget .disabled {\r + opacity: 0.3;\r + cursor: default;\r +}\r +\r +.monaco-editor .find-widget > .replace-part {\r + display: none;\r +}\r +\r +.monaco-editor .find-widget > .replace-part > .monaco-findInput {\r + position: relative;\r + display: flex;\r + vertical-align: middle;\r + flex: auto;\r + flex-grow: 0;\r + flex-shrink: 0;\r +}\r +\r +.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {\r + position: absolute;\r + top: 3px;\r + right: 2px;\r +}\r +\r +/* REDUCED */\r +.monaco-editor .find-widget.reduced-find-widget .matchesCount {\r + display:none;\r +}\r +\r +/* NARROW (SMALLER THAN REDUCED) */\r +.monaco-editor .find-widget.narrow-find-widget {\r + max-width: 257px !important;\r +}\r +\r +/* COLLAPSED (SMALLER THAN NARROW) */\r +.monaco-editor .find-widget.collapsed-find-widget {\r + max-width: 170px !important;\r +}\r +\r +.monaco-editor .find-widget.collapsed-find-widget .button.previous,\r +.monaco-editor .find-widget.collapsed-find-widget .button.next,\r +.monaco-editor .find-widget.collapsed-find-widget .button.replace,\r +.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\r +.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\r + display:none;\r +}\r +\r +.monaco-editor .findMatch {\r + animation-duration: 0;\r + animation-name: inherit !important;\r +}\r +\r +.monaco-editor .find-widget .monaco-sash {\r + left: 0 !important;\r +}\r +\r +.monaco-editor.hc-black .find-widget .button:before {\r + position: relative;\r + top: 1px;\r + left: 2px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +/* ---------- Find input ---------- */\r +\r +.monaco-findInput {\r + position: relative;\r +}\r +\r +.monaco-findInput .monaco-inputbox {\r + font-size: 13px;\r + width: 100%;\r +}\r +\r +.monaco-findInput > .controls {\r + position: absolute;\r + top: 3px;\r + right: 2px;\r +}\r +\r +.vs .monaco-findInput.disabled {\r + background-color: #E1E1E1;\r +}\r +\r +/* Theming */\r +.vs-dark .monaco-findInput.disabled {\r + background-color: #333;\r +}\r +\r +/* Highlighting */\r +.monaco-findInput.highlight-0 .controls {\r + animation: monaco-findInput-highlight-0 100ms linear 0s;\r +}\r +.monaco-findInput.highlight-1 .controls {\r + animation: monaco-findInput-highlight-1 100ms linear 0s;\r +}\r +.hc-black .monaco-findInput.highlight-0 .controls,\r +.vs-dark .monaco-findInput.highlight-0 .controls {\r + animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\r +}\r +.hc-black .monaco-findInput.highlight-1 .controls,\r +.vs-dark .monaco-findInput.highlight-1 .controls {\r + animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\r +}\r +\r +@keyframes monaco-findInput-highlight-0 {\r + 0% { background: rgba(253, 255, 0, 0.8); }\r + 100% { background: transparent; }\r +}\r +@keyframes monaco-findInput-highlight-1 {\r + 0% { background: rgba(253, 255, 0, 0.8); }\r + /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r + 99% { background: transparent; }\r +}\r +\r +@keyframes monaco-findInput-highlight-dark-0 {\r + 0% { background: rgba(255, 255, 255, 0.44); }\r + 100% { background: transparent; }\r +}\r +@keyframes monaco-findInput-highlight-dark-1 {\r + 0% { background: rgba(255, 255, 255, 0.44); }\r + /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r + 99% { background: transparent; }\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(299);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .margin-view-overlays .codicon-folding-expanded,\r +.monaco-editor .margin-view-overlays .codicon-folding-collapsed {\r + cursor: pointer;\r + opacity: 0;\r + transition: opacity 0.5s;\r + display: flex;\r + align-items: center;\r + justify-content: center;\r + font-size: 140%;\r + margin-left: 2px;\r +}\r +\r +.monaco-editor .margin-view-overlays:hover .codicon,\r +.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,\r +.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons {\r + opacity: 1;\r +}\r +\r +.monaco-editor .inline-folded:after {\r + color: grey;\r + margin: 0.1em 0.2em 0 0.2em;\r + content: "\u22EF";\r + display: inline;\r + line-height: 1em;\r + cursor: pointer;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(301);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .peekview-widget .head {\r + box-sizing: border-box;\r + display: flex;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title {\r + display: flex;\r + align-items: center;\r + font-size: 13px;\r + margin-left: 20px;\r + cursor: pointer;\r + min-width: 0;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\r + font-size: 0.9em;\r + margin-left: 0.5em;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .meta {\r + white-space: nowrap;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .dirname {\r + white-space: nowrap;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .filename {\r + overflow: hidden;\r + text-overflow: ellipsis;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before {\r + content: '-';\r + padding: 0 0.3em;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions {\r + flex: 1;\r + text-align: right;\r + padding-right: 2px;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\r + display: inline-block;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\r + height: 100%;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item {\r + margin-left: 4px;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label {\r + width: 16px;\r + height: 100%;\r + margin: 0;\r + line-height: inherit;\r + background-repeat: no-repeat;\r + background-position: center center;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.codicon {\r + margin: 0;\r +}\r +\r +.monaco-editor .peekview-widget > .body {\r + border-top: 1px solid;\r + position: relative;\r +}\r +\r +.monaco-editor .peekview-widget .head .peekview-title .codicon {\r + margin-right: 4px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(303);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +.monaco-editor .zone-widget {\r + position: absolute;\r + z-index: 10;\r +}\r +\r +\r +.monaco-editor .zone-widget .zone-widget-container {\r + border-top-style: solid;\r + border-bottom-style: solid;\r + border-top-width: 0;\r + border-bottom-width: 0;\r + position: relative;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-dropdown {\r + height: 100%;\r + padding: 0;\r +}\r +\r +.monaco-dropdown > .dropdown-label {\r + cursor: pointer;\r + height: 100%;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(306);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* -- zone widget */\r +.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\r + border-top-width: 1px;\r + border-bottom-width: 1px;\r +}\r +\r +.monaco-editor .reference-zone-widget .inline {\r + display: inline-block;\r + vertical-align: top;\r +}\r +\r +.monaco-editor .reference-zone-widget .messages {\r + height: 100%;\r + width: 100%;\r + text-align: center;\r + padding: 3em 0;\r +}\r +\r +.monaco-editor .reference-zone-widget .ref-tree {\r + line-height: 23px;\r +}\r +\r +.monaco-editor .reference-zone-widget .ref-tree .reference {\r + text-overflow: ellipsis;\r + overflow: hidden;\r +}\r +\r +.monaco-editor .reference-zone-widget .ref-tree .reference-file {\r + display: inline-flex;\r + width: 100%;\r + height: 100%;\r +}\r +\r +.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file {\r + color: inherit !important;\r +}\r +\r +.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\r + margin-right: 12px;\r + margin-left: auto;\r +}\r +\r +/* High Contrast Theming */\r +\r +.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {\r + font-weight: bold;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(308);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-split-view2 {\r + position: relative;\r + width: 100%;\r + height: 100%;\r +}\r +\r +.monaco-split-view2 > .sash-container {\r + position: absolute;\r + width: 100%;\r + height: 100%;\r + pointer-events: none;\r +}\r +\r +.monaco-split-view2 > .sash-container > .monaco-sash {\r + pointer-events: initial;\r +}\r +\r +.monaco-split-view2 > .split-view-container {\r + width: 100%;\r + height: 100%;\r + white-space: nowrap;\r + position: relative;\r +}\r +\r +.monaco-split-view2 > .split-view-container > .split-view-view {\r + white-space: initial;\r + position: absolute;\r +}\r +\r +.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) {\r + display: none;\r +}\r +\r +.monaco-split-view2.vertical > .split-view-container > .split-view-view {\r + width: 100%;\r +}\r +\r +.monaco-split-view2.horizontal > .split-view-container > .split-view-view {\r + height: 100%;\r +}\r +\r +.monaco-split-view2.separator-border > .split-view-container > .split-view-view:not(:first-child)::before {\r + content: ' ';\r + position: absolute;\r + top: 0;\r + left: 0;\r + z-index: 5;\r + pointer-events: none;\r + background-color: var(--separator-border);\r +}\r +\r +.monaco-split-view2.separator-border.horizontal > .split-view-container > .split-view-view:not(:first-child)::before {\r + height: 100%;\r + width: 1px;\r +}\r +\r +.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before {\r + height: 1px;\r + width: 100%;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(310);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .goto-definition-link {\r + text-decoration: underline;\r + cursor: pointer;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(312);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* marker zone */\r +\r +.monaco-editor .peekview-widget .head .peekview-title .severity-icon {\r + display: inline-block;\r + vertical-align: text-top;\r + margin-right: 4px;\r +}\r +\r +.monaco-editor .marker-widget {\r + text-overflow: ellipsis;\r + white-space: nowrap;\r +}\r +\r +.monaco-editor .marker-widget > .stale {\r + opacity: 0.6;\r + font-style: italic;\r +}\r +\r +.monaco-editor .marker-widget .title {\r + display: inline-block;\r + padding-right: 5px;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer {\r + position: absolute;\r + white-space: pre;\r + user-select: text;\r + -webkit-user-select: text;\r + -ms-user-select: text;\r + padding: 8px 12px 0 20px;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer .message {\r + display: flex;\r + flex-direction: column;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer .message .details {\r + padding-left: 6px;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer .message .source,\r +.monaco-editor .marker-widget .descriptioncontainer .message span.code {\r + opacity: 0.6;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link {\r + opacity: 0.6;\r + color: inherit;\r +}\r +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {\r + content: '(';\r +}\r +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {\r + content: ')';\r +}\r +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {\r + text-decoration: underline;\r + /** Hack to force underline to show **/\r + border-bottom: 1px solid transparent;\r + text-underline-position: under;\r +}\r +\r +.monaco-editor .marker-widget .descriptioncontainer .filename {\r + cursor: pointer;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(314);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.colorpicker-widget {\r + height: 190px;\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +.monaco-editor .colorpicker-hover:focus {\r + outline: none;\r +}\r +\r +\r +/* Header */\r +\r +.colorpicker-header {\r + display: flex;\r + height: 24px;\r + position: relative;\r + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r + background-size: 9px 9px;\r + image-rendering: pixelated;\r +}\r +\r +.colorpicker-header .picked-color {\r + width: 216px;\r + text-align: center;\r + line-height: 24px;\r + cursor: pointer;\r + color: white;\r + flex: 1;\r + text-align: center;\r +}\r +\r +.colorpicker-header .picked-color.light {\r + color: black;\r +}\r +\r +.colorpicker-header .original-color {\r + width: 74px;\r + z-index: inherit;\r + cursor: pointer;\r +}\r +\r +\r +/* Body */\r +\r +.colorpicker-body {\r + display: flex;\r + padding: 8px;\r + position: relative;\r +}\r +\r +.colorpicker-body .saturation-wrap {\r + overflow: hidden;\r + height: 150px;\r + position: relative;\r + min-width: 220px;\r + flex: 1;\r +}\r +\r +.colorpicker-body .saturation-box {\r + height: 150px;\r + position: absolute;\r +}\r +\r +.colorpicker-body .saturation-selection {\r + width: 9px;\r + height: 9px;\r + margin: -5px 0 0 -5px;\r + border: 1px solid rgb(255, 255, 255);\r + border-radius: 100%;\r + box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\r + position: absolute;\r +}\r +\r +.colorpicker-body .strip {\r + width: 25px;\r + height: 150px;\r +}\r +\r +.colorpicker-body .hue-strip {\r + position: relative;\r + margin-left: 8px;\r + cursor: grab;\r + background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\r +}\r +\r +.colorpicker-body .opacity-strip {\r + position: relative;\r + margin-left: 8px;\r + cursor: grab;\r + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r + background-size: 9px 9px;\r + image-rendering: pixelated;\r +}\r +\r +.colorpicker-body .strip.grabbing {\r + cursor: grabbing;\r +}\r +\r +.colorpicker-body .slider {\r + position: absolute;\r + top: 0;\r + left: -2px;\r + width: calc(100% + 4px);\r + height: 4px;\r + box-sizing: border-box;\r + border: 1px solid rgba(255, 255, 255, 0.71);\r + box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\r +}\r +\r +.colorpicker-body .strip .overlay {\r + height: 150px;\r + pointer-events: none;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(316);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-hover {\r + cursor: default;\r + position: absolute;\r + overflow: hidden;\r + z-index: 50;\r + user-select: text;\r + -webkit-user-select: text;\r + -ms-user-select: text;\r + box-sizing: initial;\r + animation: fadein 100ms linear;\r + line-height: 1.5em;\r +}\r +\r +.monaco-hover.hidden {\r + display: none;\r +}\r +\r +.monaco-hover .hover-contents {\r + padding: 4px 8px;\r +}\r +\r +.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\r + max-width: 500px;\r + word-wrap: break-word;\r +}\r +\r +.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\r + /* This is a strange rule but it avoids https://github.com/microsoft/vscode/issues/96795, just 100vw on its own caused the actual hover width to increase */\r + min-width: calc(100% + 100vw);\r +}\r +\r +.monaco-hover p,\r +.monaco-hover .code,\r +.monaco-hover ul {\r + margin: 8px 0;\r +}\r +\r +.monaco-hover code {\r + font-family: var(--monaco-monospace-font);\r +}\r +\r +.monaco-hover hr {\r + margin-top: 4px;\r + margin-bottom: -4px;\r + margin-left: -10px;\r + margin-right: -10px;\r + height: 1px;\r +}\r +\r +.monaco-hover p:first-child,\r +.monaco-hover .code:first-child,\r +.monaco-hover ul:first-child {\r + margin-top: 0;\r +}\r +\r +.monaco-hover p:last-child,\r +.monaco-hover .code:last-child,\r +.monaco-hover ul:last-child {\r + margin-bottom: 0;\r +}\r +\r +/* MarkupContent Layout */\r +.monaco-hover ul {\r + padding-left: 20px;\r +}\r +.monaco-hover ol {\r + padding-left: 20px;\r +}\r +\r +.monaco-hover li > p {\r + margin-bottom: 0;\r +}\r +\r +.monaco-hover li > ul {\r + margin-top: 0;\r +}\r +\r +.monaco-hover code {\r + border-radius: 3px;\r + padding: 0 0.4em;\r +}\r +\r +.monaco-hover .monaco-tokenized-source {\r + white-space: pre-wrap;\r + word-break: break-all;\r +}\r +\r +.monaco-hover .hover-row.status-bar {\r + font-size: 12px;\r + line-height: 22px;\r +}\r +\r +.monaco-hover .hover-row.status-bar .actions {\r + display: flex;\r + padding: 0px 8px;\r +}\r +\r +.monaco-hover .hover-row.status-bar .actions .action-container {\r + margin-right: 16px;\r + cursor: pointer;\r +}\r +\r +.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\r + padding-right: 4px;\r +}\r +\r +.monaco-hover .markdown-hover .hover-contents .codicon {\r + color: inherit;\r + font-size: inherit;\r + vertical-align: middle;\r +}\r +\r +.monaco-hover .hover-contents a.code-link:before {\r + content: '(';\r +}\r +.monaco-hover .hover-contents a.code-link:after {\r + content: ')';\r +}\r +\r +.monaco-hover .hover-contents a.code-link {\r + color: inherit;\r +}\r +.monaco-hover .hover-contents a.code-link > span {\r + text-decoration: underline;\r + /** Hack to force underline to show **/\r + border-bottom: 1px solid transparent;\r + text-underline-position: under;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(318);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +.monaco-editor .detected-link,\r +.monaco-editor .detected-link-active {\r + text-decoration: underline;\r + text-underline-position: under;\r +}\r +\r +.monaco-editor .detected-link-active {\r + cursor: pointer;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(320);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .parameter-hints-widget {\r + z-index: 10;\r + display: flex;\r + flex-direction: column;\r + line-height: 1.5em;\r +}\r +\r +.monaco-editor .parameter-hints-widget > .wrapper {\r + max-width: 440px;\r + display: flex;\r + flex-direction: row;\r +}\r +\r +.monaco-editor .parameter-hints-widget.multiple {\r + min-height: 3.3em;\r + padding: 0;\r +}\r +\r +.monaco-editor .parameter-hints-widget.visible {\r + transition: left .05s ease-in-out;\r +}\r +\r +.monaco-editor .parameter-hints-widget p,\r +.monaco-editor .parameter-hints-widget ul {\r + margin: 8px 0;\r +}\r +\r +.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\r +.monaco-editor .parameter-hints-widget .body {\r + display: flex;\r + flex: 1;\r + flex-direction: column;\r + min-height: 100%;\r +}\r +\r +.monaco-editor .parameter-hints-widget .signature {\r + padding: 4px 5px;\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs {\r + padding: 0 10px 0 5px;\r + white-space: pre-wrap;\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs.empty {\r + display: none;\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs .markdown-docs {\r + white-space: initial;\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs .markdown-docs code {\r + font-family: var(--monaco-monospace-font);\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs .code {\r + white-space: pre-wrap;\r +}\r +\r +.monaco-editor .parameter-hints-widget .docs code {\r + border-radius: 3px;\r + padding: 0 0.4em;\r +}\r +\r +.monaco-editor .parameter-hints-widget .controls {\r + display: none;\r + flex-direction: column;\r + align-items: center;\r + min-width: 22px;\r + justify-content: flex-end;\r +}\r +\r +.monaco-editor .parameter-hints-widget.multiple .controls {\r + display: flex;\r + padding: 0 2px;\r +}\r +\r +.monaco-editor .parameter-hints-widget.multiple .button {\r + width: 16px;\r + height: 16px;\r + background-repeat: no-repeat;\r + cursor: pointer;\r +}\r +\r +.monaco-editor .parameter-hints-widget .button.previous {\r + bottom: 24px;\r +}\r +\r +.monaco-editor .parameter-hints-widget .overloads {\r + text-align: center;\r + height: 12px;\r + line-height: 12px;\r + opacity: 0.5;\r + font-family: var(--monaco-monospace-font);\r +}\r +\r +.monaco-editor .parameter-hints-widget .signature .parameter.active {\r + font-weight: bold;\r + text-decoration: underline;\r +}\r +\r +.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\r + font-weight: bold;\r + margin-right: 0.5em;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(322);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .on-type-rename-decoration {\r + border-left: 1px solid transparent;\r + /* So border can be transparent */\r + background-clip: padding-box;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(324);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .rename-box {\r + z-index: 100;\r + color: inherit;\r +}\r +\r +.monaco-editor .rename-box.preview {\r + padding: 3px 3px 0 3px;\r +}\r +\r +.monaco-editor .rename-box .rename-input {\r + padding: 3px;\r + width: calc(100% - 6px);\r +}\r +\r +.monaco-editor .rename-box .rename-label {\r + display: none;\r + opacity: .8;\r +}\r +\r +.monaco-editor .rename-box.preview .rename-label {\r + display: inherit;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(326);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .snippet-placeholder {\r + min-width: 2px;\r + outline-style: solid;\r + outline-width: 1px;\r +}\r +\r +.monaco-editor .finish-snippet-placeholder {\r + outline-style: solid;\r + outline-width: 1px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(328);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +/* Suggest widget*/\r +.monaco-editor .suggest-widget {\r + z-index: 40;\r +}\r +\r +/** Initial widths **/\r +\r +.monaco-editor .suggest-widget {\r + width: 430px;\r +}\r +\r +.monaco-editor .suggest-widget > .message,\r +.monaco-editor .suggest-widget > .tree,\r +.monaco-editor .suggest-widget > .details {\r + width: 100%;\r + border-style: solid;\r + border-width: 1px;\r + box-sizing: border-box;\r +}\r +\r +.monaco-editor.hc-black .suggest-widget > .message,\r +.monaco-editor.hc-black .suggest-widget > .tree,\r +.monaco-editor.hc-black .suggest-widget > .details {\r + border-width: 2px;\r +}\r +\r +/** Adjust width when docs are expanded to the side **/\r +.monaco-editor .suggest-widget.docs-side {\r + width: 660px;\r +}\r +\r +.monaco-editor .suggest-widget.docs-side > .tree,\r +.monaco-editor .suggest-widget.docs-side > .details {\r + width: 50%;\r + float: left;\r +}\r +\r +.monaco-editor .suggest-widget.docs-side.list-right > .tree,\r +.monaco-editor .suggest-widget.docs-side.list-right > .details {\r + float: right;\r +}\r +\r +/* MarkupContent Layout */\r +.monaco-editor .suggest-widget > .details ul {\r + padding-left: 20px;\r +}\r +.monaco-editor .suggest-widget > .details ol {\r + padding-left: 20px;\r +}\r +\r +.monaco-editor .suggest-widget > .details p code {\r + font-family: var(--monaco-monospace-font);\r +}\r +\r +/* Styles for Message element for when widget is loading or is empty */\r +.monaco-editor .suggest-widget > .message {\r + padding-left: 22px;\r +}\r +\r +/** Styles for the list element **/\r +.monaco-editor .suggest-widget > .tree {\r + height: 100%;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list {\r + user-select: none;\r + -webkit-user-select: none;\r + -ms-user-select: none;\r +}\r +\r +/** Styles for each row in the list element **/\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row {\r + display: flex;\r + -mox-box-sizing: border-box;\r + box-sizing: border-box;\r + padding-right: 10px;\r + background-repeat: no-repeat;\r + background-position: 2px 2px;\r + white-space: nowrap;\r + cursor: pointer;\r + touch-action: none;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents {\r + flex: 1;\r + height: 100%;\r + overflow: hidden;\r + padding-left: 2px;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main {\r + display: flex;\r + overflow: hidden;\r + text-overflow: ellipsis;\r + white-space: pre;\r + justify-content: space-between;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left,\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\r + display: flex;\r +}\r +\r +.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight {\r + font-weight: bold;\r +}\r +\r +/** Status Bar **/\r +\r +.monaco-editor .suggest-widget > .suggest-status-bar {\r + visibility: hidden;\r +\r + position: absolute;\r + left: 0;\r +\r + box-sizing: border-box;\r +\r + display: flex;\r + flex-flow: row nowrap;\r + justify-content: space-between;\r +\r + width: 100%;\r +\r + font-size: 80%;\r +\r + border-left-width: 1px;\r + border-left-style: solid;\r + border-right-width: 1px;\r + border-right-style: solid;\r + border-bottom-width: 1px;\r + border-bottom-style: solid;\r +\r + padding: 0 8px 0 4px;\r +}\r +\r +.monaco-editor .suggest-widget.list-right.docs-side > .suggest-status-bar {\r + left: auto;\r + right: 0;\r +}\r +.monaco-editor .suggest-widget.docs-side > .suggest-status-bar {\r + width: 50%;\r +}\r +\r +/** ReadMore Icon styles **/\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close,\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before {\r + color: inherit;\r + opacity: 1;\r + font-size: 14px;\r + cursor: pointer;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close {\r + position: absolute;\r + top: 2px;\r + right: 2px;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover,\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover {\r + opacity: 1;\r +}\r +\r +/** signature, qualifier, type/details opacity **/\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label,\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label,\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\r + opacity: 0.7;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label {\r + overflow: hidden;\r + text-overflow: ellipsis;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label {\r + margin-left: 4px;\r + opacity: 0.4;\r + font-size: 90%;\r + text-overflow: ellipsis;\r + overflow: hidden;\r + line-height: 17px;\r + align-self: center;\r +}\r +\r +/** Type Info and icon next to the label in the focused completion item **/\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\r + margin-left: 0.8em;\r + overflow: hidden;\r + text-overflow: ellipsis;\r + white-space: nowrap;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source {\r + display: inline;\r +}\r +\r +/** Details: if using CompletionItem#details, show on focus **/\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label,\r +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\r + display: inline;\r +}\r +\r +/** Details: if using CompletionItemLabel#details, always show **/\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label,\r +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label {\r + display: inline;\r +}\r +\r +/** Ellipsis on hover **/\r +.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\r + width: calc(100% - 26px);\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {\r + flex-shrink: 1;\r + flex-grow: 1;\r + overflow: hidden;\r +}\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label {\r + flex-shrink: 0;\r +}\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label {\r + max-width: 100%;\r +}\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label {\r + flex-shrink: 1;\r +}\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\r + overflow: hidden;\r + margin-left: 16px;\r + flex-shrink: 0;\r + max-width: 45%;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r + display: inline-block;\r + position: absolute;\r + right: 10px;\r + width: 18px;\r + height: 18px;\r + visibility: hidden;\r +}\r +\r +/** Do NOT display ReadMore when docs is side/below **/\r +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r + display: none !important;\r +}\r +\r +/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore {\r + display: none;\r +}\r +/** Focused item can show ReadMore, but can't when docs is side/below **/\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\r + display: inline-block;\r +}\r +\r +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore {\r + visibility: visible;\r +}\r +\r +/** Styles for each row in the list **/\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated {\r + opacity: 0.66;\r + text-decoration: unset;\r +}\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container {\r + text-decoration: line-through;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before {\r + height: 100%;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon {\r + display: block;\r + height: 16px;\r + width: 16px;\r + margin-left: 2px;\r + background-repeat: no-repeat;\r + background-size: 80%;\r + background-position: center;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon {\r + display: flex;\r + align-items: center;\r + margin-right: 4px;\r +}\r +\r +.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,\r +.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan {\r + margin: 0 0 0 0.3em;\r + border: 0.1em solid #000;\r + width: 0.7em;\r + height: 0.7em;\r + display: inline-block;\r +}\r +\r +/** Styles for the docs of the completion item in focus **/\r +.monaco-editor .suggest-widget .details {\r + display: flex;\r + flex-direction: column;\r + cursor: default;\r +}\r +\r +.monaco-editor .suggest-widget .details.no-docs {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget.docs-below .details {\r + border-top-width: 0;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element {\r + flex: 1;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body {\r + position: absolute;\r + box-sizing: border-box;\r + height: 100%;\r + width: 100%;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .type {\r + flex: 2;\r + overflow: hidden;\r + text-overflow: ellipsis;\r + opacity: 0.7;\r + word-break: break-all;\r + margin: 0 24px 0 0;\r + padding: 4px 0 12px 5px;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs {\r + margin: 0;\r + padding: 4px 5px;\r + white-space: pre-wrap;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs {\r + padding: 0;\r + white-space: initial;\r + min-height: calc(1rem + 8px);\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div,\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) {\r + padding: 4px 5px;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child {\r + margin-top: 0;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child {\r + margin-bottom: 0;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs .code {\r + white-space: pre-wrap;\r + word-wrap: break-word;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon {\r + vertical-align: sub;\r +}\r +\r +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > p:empty {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget .details code {\r + border-radius: 3px;\r + padding: 0 0.4em;\r +}\r +\r +\r +/* replace/insert decorations */\r +\r +.monaco-editor .suggest-insert-unexpected {\r + font-style: italic;\r +}\r +\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(330);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar {\r + visibility: visible;\r +}\r +.monaco-editor .suggest-widget.with-status-bar > .tree {\r + margin-bottom: 18px;\r +}\r +\r +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label {\r + min-height: 18px;\r + opacity: 0.5;\r + color: inherit;\r +}\r +\r +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label {\r + margin-right: 0;\r +}\r +\r +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after {\r + content: ', ';\r + margin-right: 0.3em;\r +}\r +\r +.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\r +.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\r + display: none;\r +}\r +\r +.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\r + width: 100%;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(332);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label,\r +.monaco-list .monaco-list-row.focused.selected .outline-element-decoration {\r + /* make sure selection color wins when a label is being selected */\r + color: inherit !important;\r +}\r +\r +.monaco-list .outline-element {\r + display: flex;\r + flex: 1;\r + flex-flow: row nowrap;\r + align-items: center;\r +}\r +\r +.monaco-list .outline-element .monaco-highlighted-label {\r + color: var(--outline-element-color);\r +}\r +\r +.monaco-list .outline-element .outline-element-decoration {\r + opacity: 0.75;\r + font-size: 90%;\r + font-weight: 600;\r + padding: 0 12px 0 5px;\r + margin-left: auto;\r + text-align: center;\r + color: var(--outline-element-color);\r +}\r +\r +.monaco-list .outline-element .outline-element-decoration.bubble {\r + font-family: codicon;\r + font-size: 14px;\r + opacity: 0.4;\r +}\r +\r +.monaco-list .outline-element .outline-element-icon {\r + margin-right: 4px;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(334);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-icon-label.deprecated {\r + text-decoration: line-through;\r + opacity: 0.66;\r +}\r +`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(336);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .accessibilityHelpWidget {\r + padding: 10px;\r + vertical-align: middle;\r + overflow: scroll;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(338);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .iPadShowKeyboard {\r + width: 58px;\r + min-width: 0;\r + height: 36px;\r + min-height: 0;\r + margin: 0;\r + padding: 0;\r + position: absolute;\r + resize: none;\r + overflow: hidden;\r + background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiM0MjQyNDIiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r + border: 4px solid #F6F6F6;\r + border-radius: 4px;\r +}\r +\r +.monaco-editor.vs-dark .iPadShowKeyboard {\r + background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiNDNUM1QzUiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r + border: 4px solid #252526;\r +}`,""]),Ie.exports=w},function(Ie,w,r){var h=r(32),f=r(340);typeof(f=f.__esModule?f.default:f)=="string"&&(f=[[Ie.i,f,""]]);var O={insert:"head",singleton:!1};h(f,O),Ie.exports=f.locals||{}},function(Ie,w,r){(w=r(33)(!1)).push([Ie.i,`/*---------------------------------------------------------------------------------------------\r + * Copyright (c) Microsoft Corporation. All rights reserved.\r + * Licensed under the MIT License. See License.txt in the project root for license information.\r + *--------------------------------------------------------------------------------------------*/\r +\r +.monaco-editor .tokens-inspect-widget {\r + z-index: 50;\r + user-select: text;\r + -webkit-user-select: text;\r + -ms-user-select: text;\r + padding: 10px;\r +}\r +\r +.tokens-inspect-separator {\r + height: 1px;\r + border: 0;\r +}\r +\r +.monaco-editor .tokens-inspect-widget .tm-token {\r + font-family: var(--monaco-monospace-font);\r +}\r +\r +.monaco-editor .tokens-inspect-widget .tm-token-length {\r + font-weight: normal;\r + font-size: 60%;\r + float: right;\r +}\r +\r +.monaco-editor .tokens-inspect-widget .tm-metadata-table {\r + width: 100%;\r +}\r +\r +.monaco-editor .tokens-inspect-widget .tm-metadata-value {\r + font-family: var(--monaco-monospace-font);\r + text-align: right;\r +}\r +\r +.monaco-editor .tokens-inspect-widget .tm-token-type {\r + font-family: var(--monaco-monospace-font);\r +}\r +`,""]),Ie.exports=w},,function(Ie,w,r){"use strict";r.r(w),r.d(w,"CancellationTokenSource",function(){return ge.a}),r.d(w,"Emitter",function(){return ge.b}),r.d(w,"KeyCode",function(){return ge.c}),r.d(w,"KeyMod",function(){return ge.d}),r.d(w,"Position",function(){return ge.g}),r.d(w,"Range",function(){return ge.h}),r.d(w,"Selection",function(){return ge.i}),r.d(w,"SelectionDirection",function(){return ge.j}),r.d(w,"MarkerSeverity",function(){return ge.e}),r.d(w,"MarkerTag",function(){return ge.f}),r.d(w,"Uri",function(){return ge.l}),r.d(w,"Token",function(){return ge.k}),r.d(w,"editor",function(){return ge.m}),r.d(w,"languages",function(){return ge.n});var h,f,O,H,E,ge=r(108),W=r(29);(function(u){u[u.None=0]="None",u[u.CommonJS=1]="CommonJS",u[u.AMD=2]="AMD",u[u.UMD=3]="UMD",u[u.System=4]="System",u[u.ES2015=5]="ES2015",u[u.ESNext=99]="ESNext"})(h||(h={})),function(u){u[u.None=0]="None",u[u.Preserve=1]="Preserve",u[u.React=2]="React",u[u.ReactNative=3]="ReactNative"}(f||(f={})),function(u){u[u.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",u[u.LineFeed=1]="LineFeed"}(O||(O={})),function(u){u[u.ES3=0]="ES3",u[u.ES5=1]="ES5",u[u.ES2015=2]="ES2015",u[u.ES2016=3]="ES2016",u[u.ES2017=4]="ES2017",u[u.ES2018=5]="ES2018",u[u.ES2019=6]="ES2019",u[u.ES2020=7]="ES2020",u[u.ESNext=99]="ESNext",u[u.JSON=100]="JSON",u[u.Latest=99]="Latest"}(H||(H={})),function(u){u[u.Classic=1]="Classic",u[u.NodeJs=2]="NodeJs"}(E||(E={}));var Q=function(){function u(e,t,n){this._onDidChange=new W.a,this._onDidExtraLibsChange=new W.a,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),u.prototype.getExtraLibs=function(){return this._extraLibs},u.prototype.addExtraLib=function(e,t){var n,o=this;if(n=t===void 0?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var d=1;return this._removedExtraLibs[n]&&(d=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(d=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:d},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var m=o._extraLibs[n];m&&m.version===d&&(delete o._extraLibs[n],o._removedExtraLibs[n]=d,o._fireOnDidExtraLibsChangeSoon())}}},u.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var n=0,o=e;n<o.length;n++){var d=o[n],m=(t=d.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),d.content),D=1;this._removedExtraLibs[t]&&(D=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:m,version:D}}this._fireOnDidExtraLibsChangeSoon()},u.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=setTimeout(function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)},0))},u.prototype.getCompilerOptions=function(){return this._compilerOptions},u.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.setWorkerOptions=function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},u.prototype.setMaximumWorkerIdleTime=function(e){},u.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},u.prototype.getEagerModelSync=function(){return this._eagerModelSync},u}(),y=new Q({allowNonTsExtensions:!0,target:H.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1},{}),C=new Q({allowNonTsExtensions:!0,allowJs:!0,target:H.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1},{});function S(){return Promise.resolve().then(r.bind(null,412))}W.g.typescript={ModuleKind:h,JsxEmit:f,NewLineKind:O,ScriptTarget:H,ModuleResolutionKind:E,typescriptVersion:"4.0.3",typescriptDefaults:y,javascriptDefaults:C,getTypeScriptWorker:function(){return S().then(function(u){return u.getTypeScriptWorker()})},getJavaScriptWorker:function(){return S().then(function(u){return u.getJavaScriptWorker()})}},W.g.onLanguage("typescript",function(){return S().then(function(u){return u.setupTypeScript(y)})}),W.g.onLanguage("javascript",function(){return S().then(function(u){return u.setupJavaScript(C)})});var P=r(52),V=function(){function u(e,t,n){this._onDidChange=new P.a,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}(),k={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},l={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},T=new V("css",k,l),N=new V("scss",k,l),b=new V("less",k,l);function g(){return Promise.resolve().then(r.bind(null,414))}P.f.css={cssDefaults:T,lessDefaults:b,scssDefaults:N},P.f.onLanguage("less",function(){g().then(function(u){return u.setupMode(b)})}),P.f.onLanguage("scss",function(){g().then(function(u){return u.setupMode(N)})}),P.f.onLanguage("css",function(){g().then(function(u){return u.setupMode(T)})});var j=r(59),ie=new(function(){function u(e,t,n){this._onDidChange=new j.a,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),u.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});j.f.json={jsonDefaults:ie},j.f.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),j.f.onLanguage("json",function(){Promise.resolve().then(r.bind(null,413)).then(function(u){return u.setupMode(ie)})});var U=r(47),q=function(){function u(e,t,n){this._onDidChange=new U.a,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),u.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},u}(),B={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},se={format:B,suggest:{html5:!0}},ke={format:B,suggest:{html5:!0,razor:!0}};function xe(u){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:u===Y,documentFormattingEdits:u===Y,documentRangeFormattingEdits:u===Y}}var Y="html",Z=new q(Y,{format:B,suggest:{html5:!0,angular1:!0,ionic:!0}},xe(Y)),te=new q("handlebars",se,xe("handlebars")),he=new q("razor",ke,xe("razor"));function Ce(){return Promise.resolve().then(r.bind(null,415))}U.f.html={htmlDefaults:Z,razorDefaults:he,handlebarDefaults:te},U.f.onLanguage(Y,function(){Ce().then(function(u){return u.setupMode(Z)})}),U.f.onLanguage("handlebars",function(){Ce().then(function(u){return u.setupMode(te)})}),U.f.onLanguage("razor",function(){Ce().then(function(u){return u.setupMode(he)})});var Ae=r(95),L={},nt={},ct=function(){function u(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(n,o){t._lazyLoadPromiseResolve=n,t._lazyLoadPromiseReject=o})}return u.getOrCreate=function(e){return nt[e]||(nt[e]=new u(e)),nt[e]},u.prototype.whenLoaded=function(){return this._lazyLoadPromise},u.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,L[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},u}();function Ye(u){var e=u.id;L[e]=u,Ae.a.register(u);var t=ct.getOrCreate(e);Ae.a.setMonarchTokensProvider(e,t.whenLoaded().then(function(n){return n.language})),Ae.a.onLanguage(e,function(){t.load().then(function(n){Ae.a.setLanguageConfiguration(e,n.conf)})})}Ye({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return Promise.resolve().then(r.bind(null,347))}}),Ye({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return Promise.resolve().then(r.bind(null,348))}}),Ye({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return Promise.resolve().then(r.bind(null,349))}}),Ye({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return Promise.resolve().then(r.bind(null,350))}}),Ye({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return Promise.resolve().then(r.bind(null,351))}}),Ye({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return Promise.resolve().then(r.bind(null,352))}}),Ye({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return Promise.resolve().then(r.bind(null,353))}}),Ye({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return Promise.resolve().then(r.bind(null,354))}}),Ye({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return Promise.resolve().then(r.bind(null,354))}}),Ye({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return Promise.resolve().then(r.bind(null,355))}}),Ye({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return Promise.resolve().then(r.bind(null,356))}}),Ye({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return Promise.resolve().then(r.bind(null,357))}}),Ye({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return Promise.resolve().then(r.bind(null,358))}}),Ye({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return Promise.resolve().then(r.bind(null,359))}}),Ye({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return Promise.resolve().then(r.bind(null,360))}}),Ye({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return Promise.resolve().then(r.bind(null,361))}}),Ye({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return Promise.resolve().then(r.bind(null,362))}}),Ye({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return Promise.resolve().then(r.bind(null,363))}}),Ye({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return Promise.resolve().then(r.bind(null,364))}}),Ye({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return Promise.resolve().then(r.bind(null,365))}}),Ye({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return Promise.resolve().then(r.bind(null,366))}}),Ye({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return Promise.resolve().then(r.bind(null,367))}}),Ye({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return Promise.resolve().then(r.bind(null,368))}}),Ye({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return Promise.resolve().then(r.bind(null,369))}}),Ye({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return Promise.resolve().then(r.bind(null,370))}}),Ye({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return Promise.resolve().then(r.bind(null,371))}}),Ye({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return Promise.resolve().then(r.bind(null,372))}}),Ye({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return Promise.resolve().then(r.bind(null,373))}}),Ye({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return Promise.resolve().then(r.bind(null,374))}}),Ye({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return Promise.resolve().then(r.bind(null,375))}}),Ye({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return Promise.resolve().then(r.bind(null,376))}}),Ye({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return Promise.resolve().then(r.bind(null,377))}}),Ye({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return Promise.resolve().then(r.bind(null,378))}}),Ye({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return Promise.resolve().then(r.bind(null,379))}}),Ye({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return Promise.resolve().then(r.bind(null,380))}}),Ye({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return Promise.resolve().then(r.bind(null,381))}}),Ye({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return Promise.resolve().then(r.bind(null,382))}}),Ye({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return Promise.resolve().then(r.bind(null,383))}}),Ye({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return Promise.resolve().then(r.bind(null,384))}}),Ye({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return Promise.resolve().then(r.bind(null,385))}}),Ye({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return Promise.resolve().then(r.bind(null,386))}}),Ye({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return Promise.resolve().then(r.bind(null,387))}}),Ye({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return Promise.resolve().then(r.bind(null,388))}}),Ye({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return Promise.resolve().then(r.bind(null,389))}}),Ye({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return Promise.resolve().then(r.bind(null,390))}}),Ye({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return Promise.resolve().then(r.bind(null,391))}}),Ye({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return Promise.resolve().then(r.bind(null,392))}}),Ye({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return Promise.resolve().then(r.bind(null,393))}}),Ye({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return Promise.resolve().then(r.bind(null,394))}}),Ye({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return Promise.resolve().then(r.bind(null,395))}}),Ye({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return Promise.resolve().then(r.bind(null,396))}}),Ye({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return Promise.resolve().then(r.bind(null,397))}}),Ye({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return Promise.resolve().then(r.bind(null,398))}}),Ye({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return Promise.resolve().then(r.bind(null,399))}}),Ye({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return Promise.resolve().then(r.bind(null,400))}}),Ye({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return Promise.resolve().then(r.bind(null,401))}}),Ye({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return Promise.resolve().then(r.bind(null,402))}}),Ye({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return Promise.resolve().then(r.bind(null,403))}}),Ye({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return Promise.resolve().then(r.bind(null,404))}}),Ye({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return Promise.resolve().then(r.bind(null,405))}}),Ye({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return Promise.resolve().then(r.bind(null,406))}}),Ye({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return Promise.resolve().then(r.bind(null,406))}}),Ye({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return Promise.resolve().then(r.bind(null,407))}}),Ye({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return Promise.resolve().then(r.bind(null,408))}}),Ye({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return Promise.resolve().then(r.bind(null,142))}}),Ye({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return Promise.resolve().then(r.bind(null,409))}}),Ye({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return Promise.resolve().then(r.bind(null,410))}}),Ye({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return Promise.resolve().then(r.bind(null,411))}});var ht=r(107),fe=r(164),$=(r(194),r(193),r(281),r(4)),G=r(0),z=r(7),J=r(21),Se=r(43),A=r(10),ee=r(16),de=r(17),De=r(13);class $e{constructor(e="",t=!1){var n,o;if(this._value=e,typeof this._value!="string")throw Object(De.b)("value");typeof t=="boolean"?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=(n=t.isTrusted)!==null&&n!==void 0&&n,this._supportThemeIcons=(o=t.supportThemeIcons)!==null&&o!==void 0&&o)}get value(){return this._value}get isTrusted(){return this._isTrusted}get supportThemeIcons(){return this._supportThemeIcons}appendText(e){return this._value+=(this._supportThemeIcons?Object(de.b)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(/\n/g,` `),this}appendMarkdown(e){return this._value+=e,this}appendCodeblock(e,t){return this._value+="\n```",this._value+=e,this._value+=` -`,this._value+=t,this._value+="\n```\n",this}}function pt(u){return it(u)?!u.value:!Array.isArray(u)||u.every(pt)}function it(u){return u instanceof $e||!(!u||typeof u!="object")&&!(typeof u.value!="string"||typeof u.isTrusted!="boolean"&&u.isTrusted!==void 0||typeof u.supportThemeIcons!="boolean"&&u.supportThemeIcons!==void 0)}function At(u,e){return u===e||!(!u||!e)&&u.value===e.value&&u.isTrusted===e.isTrusted&&u.supportThemeIcons===e.supportThemeIcons}function Nt(u){return u&&u.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}var _i=o(66),wt=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ni=function(u,e){return function(t,n){e(t,n,u)}},pi=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let et=new A.c("selectionAnchorSet",!1),Wt=class tm{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=et.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(tm.ID)}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:J.a.fromPositions(e,e),options:{stickiness:1,hoverMessage:new $e().appendText(Object(G.a)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(_i.a)(Object(G.a)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(J.a.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Wt.ID="editor.contrib.selectionAnchorController",Wt=wt([Ni(1,A.b)],Wt);class Li extends $.b{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(G.a)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2080),weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).setSelectionAnchor()})}}class Ii extends $.b{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(G.a)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:et})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).goToSelectionAnchor()})}}class Ai extends $.b{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(G.a)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:et,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2089),weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).selectFromAnchorToCursor()})}}class Zi extends $.b{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(G.a)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:et,kbOpts:{kbExpr:z.a.editorTextFocus,primary:9,weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).cancelSelectionAnchor()})}}Object($.m)(Wt.ID,Wt),Object($.k)(Li),Object($.k)(Ii),Object($.k)(Ai),Object($.k)(Zi),o(283);var Bi=o(20),Lt=o(2),Di=o(9),gt=o(3),vi=o(58),Rt=o(30),vt=o(57),Ue=o(5),ut=o(19),ze=o(24);let st=Object(Ue.gc)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},G.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _t extends $.b{constructor(){super({id:"editor.action.jumpToBracket",label:G.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3160,weight:100}})}run(e,t){let n=gi.get(t);n&&n.jumpToBracket()}}class oi extends $.b{constructor(){super({id:"editor.action.selectToBracket",label:G.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){let r=gi.get(t);if(!r)return;let d=!0;n&&n.selectBrackets===!1&&(d=!1),r.selectToBracket(d)}}class li{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class gi extends Lt.a{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Bi.d(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(55),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(55)&&(this._matchBrackets=this._editor.getOption(55),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(e){return e.getContribution(gi.ID)}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{let r=n.getStartPosition(),d=e.matchBracket(r),m=null;if(d)d[0].containsPosition(r)?m=d[1].getStartPosition():d[1].containsPosition(r)&&(m=d[0].getStartPosition());else{let O=e.findEnclosingBrackets(r);if(O)m=O[0].getStartPosition();else{let re=e.findNextBracket(r);re&&re.range&&(m=re.range.getStartPosition())}}return m?new J.a(m.lineNumber,m.column,m.lineNumber,m.column):new J.a(r.lineNumber,r.column,r.lineNumber,r.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let d=r.getStartPosition(),m=t.matchBracket(d);if(!m&&(m=t.findEnclosingBrackets(d),!m)){let oe=t.findNextBracket(d);oe&&oe.range&&(m=t.matchBracket(oe.range.getStartPosition()))}let O=null,re=null;if(m){m.sort(gt.a.compareRangesUsingStarts);let[oe,ce]=m;O=e?oe.getStartPosition():oe.getEndPosition(),re=e?ce.getEndPosition():ce.getStartPosition()}O&&re&&n.push(new J.a(O.lineNumber,O.column,re.lineNumber,re.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);let e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);let t=this._editor.getModel(),n=t.getVersionId(),r=[];this._lastVersionId===n&&(r=this._lastBracketsData);let d=[],m=0;for(let Me=0,Ct=e.length;Me<Ct;Me++){let Ut=e[Me];Ut.isEmpty()&&(d[m++]=Ut.getStartPosition())}d.length>1&&d.sort(Di.a.compare);let O=[],re=0,oe=0,ce=r.length;for(let Me=0,Ct=d.length;Me<Ct;Me++){let Ut=d[Me];for(;oe<ce&&r[oe].position.isBefore(Ut);)oe++;if(oe<ce&&r[oe].position.equals(Ut))O[re++]=r[oe];else{let St=t.matchBracket(Ut),di=gi._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;St||this._matchBrackets!=="always"||(St=t.findEnclosingBrackets(Ut,20),di=gi._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),O[re++]=new li(Ut,St,di)}}this._lastBracketsData=O,this._lastVersionId=n}}gi.ID="editor.contrib.bracketMatchingController",gi._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Rt.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(ut.h)(st),position:vi.d.Center}}),gi._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Rt.a.register({stickiness:1,className:"bracket-match"}),Object($.m)(gi.ID,gi),Object($.k)(oi),Object($.k)(_t),Object(ut.g)((u,e)=>{let t=u.getColor(vt.c);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);let n=u.getColor(vt.d);n&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${n}; }`)}),ze.d.appendMenuItem(ze.b.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:G.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class ki{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,d=this._selection.endColumn;if((!this._isMovingLeft||r!==1)&&(this._isMovingLeft||d!==e.getLineMaxColumn(n)))if(this._isMovingLeft){let m=new gt.a(n,r-1,n,r),O=e.getValueInRange(m);t.addEditOperation(m,null),t.addEditOperation(new gt.a(n,d,n,d),O)}else{let m=new gt.a(n,d,n,d+1),O=e.getValueInRange(m);t.addEditOperation(m,null),t.addEditOperation(new gt.a(n,r,n,r),O)}}computeCursorState(e,t){return this._isMovingLeft?new J.a(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new J.a(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Ri extends $.b{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let d of r)n.push(new ki(d,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}Object($.k)(class extends Ri{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:G.a("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:z.a.writable})}}),Object($.k)(class extends Ri{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:G.a("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:z.a.writable})}});var $i=o(62),Hi=o(81);class yi extends $.b{constructor(){super({id:"editor.action.transposeLetters",label:G.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],d=t.getSelections();for(let m of d){if(!m.isEmpty())continue;let O=m.startLineNumber,re=m.startColumn,oe=n.getLineMaxColumn(O);if(O===1&&(re===1||re===2&&oe===2))continue;let ce=re===oe?m.getPosition():Hi.a.rightPosition(n,m.getPosition().lineNumber,m.getPosition().column),Me=Hi.a.leftPosition(n,ce.lineNumber,ce.column),Ct=Hi.a.leftPosition(n,Me.lineNumber,Me.column),Ut=n.getValueInRange(gt.a.fromPositions(Ct,Me)),St=n.getValueInRange(gt.a.fromPositions(Me,ce)),di=gt.a.fromPositions(Ct,ce);r.push(new $i.a(di,St+Ut))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}}Object($.k)(yi);var kt=o(34),Et=o(11),si=o(167),Si=o(41),Pi=o(121),Wi=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let xn=Et.g||document.queryCommandSupported("cut"),un=Et.g||document.queryCommandSupported("copy"),bn=un&&!kt.f,Fn=!kt.h||document.queryCommandSupported("paste");function Mn(u){return u.register(),u}let Nn=xn?Mn(new $.e({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Et.g?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.cutLabel","Cut"),when:z.a.writable,order:1},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.cutLabel","Cut"),order:1}]})):void 0,Hn=un?Mn(new $.e({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Et.g?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.copyLabel","Copy"),order:1}]})):void 0,Jn=Fn?Mn(new $.e({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Et.g?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.pasteLabel","Paste"),when:z.a.writable,order:3},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.pasteLabel","Paste"),order:1}]})):void 0;class _o extends $.b{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:G.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(26)&&t.getSelection().isEmpty()||(si.a.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),si.a.forceCopyWithSyntaxHighlighting=!1)}}function pn(u,e){u&&(u.addImplementation(1e4,(t,n)=>{let r=t.get(Si.a).getFocusedCodeEditor();if(r&&r.hasTextFocus()){let d=r.getOption(26),m=r.getSelection();return m&&m.isEmpty()&&!d||document.execCommand(e),!0}return!1}),u.addImplementation(0,(t,n)=>(document.execCommand(e),!0)))}pn(Nn,"cut"),pn(Hn,"copy"),Jn&&(Jn.addImplementation(1e4,(u,e)=>{let t=u.get(Si.a),n=u.get(Pi.a),r=t.getFocusedCodeEditor();return r&&r.hasTextFocus()?!(!document.execCommand("paste")&&Et.h)||(Wi(void 0,void 0,void 0,function*(){let d=yield n.readText();if(d!==""){let m=si.b.INSTANCE.get(d),O=!1,re=null,oe=null;m&&(O=r.getOption(26)&&!!m.isFromEmptySelection,re=m.multicursorText!==void 0?m.multicursorText:null,oe=m.mode),r.trigger("keyboard","paste",{text:d,pasteOnNewLine:O,multicursorText:re,mode:oe})}}),!0):!1}),Jn.addImplementation(0,(u,e)=>(document.execCommand("paste"),!0))),bn&&Object($.k)(_o);class Gn{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var on=o(8),ho=o(148),On=o(25),Dn=o(23),qt=o(88),I=o(12),ne=o(64);class _e{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||Object(on.S)(e.value,this.value+_e.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new _e(this.value+_e.sep+e)}}function Fe(u,e,t){return!!e.contains(u)&&(!t||!e.contains(t))}_e.sep=".",_e.None=new _e("@@none@@"),_e.Empty=new _e(""),_e.QuickFix=new _e("quickfix"),_e.Refactor=new _e("refactor"),_e.Source=new _e("source"),_e.SourceOrganizeImports=_e.Source.append("organizeImports"),_e.SourceFixAll=_e.Source.append("fixAll");class Xe{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return e&&typeof e=="object"?new Xe(Xe.getKindFromUser(e,t.kind),Xe.getApplyFromUser(e,t.apply),Xe.getPreferredUser(e)):new Xe(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new _e(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"&&e.preferred}}var ot=o(83),Mt=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class Ot extends Lt.a{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=Object(ee.p)([...e],Ot.codeActionsComparator),this.validActions=this.allActions.filter(r=>!r.disabled)}static codeActionsComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Object(ee.o)(e.diagnostics)?Object(ee.o)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(ee.o)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(e=>!!e.kind&&_e.QuickFix.contains(new _e(e.kind))&&!!e.isPreferred)}}let Tt={actions:[],documentation:void 0};function Ht(u,e,t,n,r){var d;let m=t.filter||{},O={only:(d=m.include)===null||d===void 0?void 0:d.value,trigger:t.type},re=new qt.d(u,r),oe=function(Ut,St){return I.a.all(Ut).filter(di=>!di.providedCodeActionKinds||di.providedCodeActionKinds.some(hi=>function(ji,Ji){return!(ji.include&&!ji.include.intersects(Ji))&&(!ji.excludes||!ji.excludes.some(dn=>Fe(Ji,dn,ji.include)))&&!(!ji.includeSourceActions&&_e.Source.contains(Ji))}(St,new _e(hi))))}(u,m),ce=new Lt.b,Me=oe.map(Ut=>Mt(this,void 0,void 0,function*(){try{n.report(Ut);let St=yield Ut.provideCodeActions(u,e,O,re.token);if(St&&ce.add(St),re.token.isCancellationRequested)return Tt;let di=((St==null?void 0:St.actions)||[]).filter(hi=>hi&&function(ji,Ji){let dn=Ji.kind?new _e(Ji.kind):void 0;return!!(!ji.include||dn&&ji.include.contains(dn))&&!(ji.excludes&&dn&&ji.excludes.some(Ki=>Fe(dn,Ki,ji.include)))&&!(!ji.includeSourceActions&&dn&&_e.Source.contains(dn))&&!(ji.onlyIncludePreferredActions&&!Ji.isPreferred)}(m,hi));return{actions:di,documentation:function(hi,ji,Ji){if(!hi.documentation)return;let dn=hi.documentation.map(Ki=>({kind:new _e(Ki.kind),command:Ki.command}));if(Ji){let Ki;for(let yn of dn)yn.kind.contains(Ji)&&(Ki?Ki.kind.contains(yn.kind)&&(Ki=yn):Ki=yn);if(Ki)return Ki==null?void 0:Ki.command}for(let Ki of ji)if(Ki.kind){for(let yn of dn)if(yn.kind.contains(new _e(Ki.kind)))return yn.command}}(Ut,di,m.include)}}catch(St){if(Object(Oe.d)(St))throw St;return Object(Oe.f)(St),Tt}})),Ct=I.a.onDidChange(()=>{let Ut=I.a.all(u);Object(ee.g)(Ut,oe)||re.cancel()});return Promise.all(Me).then(Ut=>{let St=Object(ee.l)(Ut.map(hi=>hi.actions)),di=Object(ee.d)(Ut.map(hi=>hi.documentation));return new Ot(St,di,ce)}).finally(()=>{Ct.dispose(),re.dispose()})}Object($.o)("_executeCodeActionProvider",function(u,e){return Mt(this,void 0,void 0,function*(){let{resource:t,rangeOrSelection:n,kind:r}=e;if(!(t instanceof Dn.a))throw Object(Oe.b)();let d=u.get(ne.a).getModel(t);if(!d)throw Object(Oe.b)();let m=J.a.isISelection(n)?J.a.liftSelection(n):gt.a.isIRange(n)?d.validateRange(n):void 0;if(!m)throw Object(Oe.b)();let O=yield Ht(d,m,{type:2,filter:{includeSourceActions:!0,include:r&&r.value?new _e(r.value):void 0}},ot.b.None,On.a.None);return setTimeout(()=>O.dispose(),100),O.validActions})}),o(285);var jt=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Kt=function(u,e){return function(t,n){e(t,n,u)}};let wi=class Zh extends Lt.a{constructor(e,t){super(),this._messageWidget=this._register(new Lt.d),this._messageListeners=this._register(new Lt.b),this._editor=e,this._visible=Zh.MESSAGE_VISIBLE.bindTo(t),this._register(this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}static get(e){return e.getContribution(Zh.ID)}dispose(){super.dispose(),this._visible.reset()}showMessage(e,t){let n;Object(_i.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new ft(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new Bi.e(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(r=>{r.target.position&&(n?n.containsPosition(r.target.position)||this.closeMessage():n=new gt.a(t.lineNumber-3,1,r.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(ft.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(G.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};wi.ID="editor.contrib.messageController",wi.MESSAGE_VISIBLE=new A.c("messageVisible",!1),wi=jt([Kt(1,A.b)],wi);let Ti=$.c.bindToContribution(wi.get);Object($.l)(new Ti({id:"leaveEditorMessage",precondition:wi.MESSAGE_VISIBLE,handler:u=>u.closeMessage(),kbOpts:{weight:130,primary:9}}));class ft{constructor(e,{lineNumber:t,column:n},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");let d=document.createElement("div");d.classList.add("message"),d.textContent=r,this._domNode.appendChild(d);let m=document.createElement("div");m.classList.add("anchor"),this._domNode.appendChild(m),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t,n=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}}Object($.m)(wi.ID,wi),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.mb);if(t){let d=u.type===ut.b?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${d}px solid ${t}; }`)}let n=u.getColor(Ue.lb);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${n}; }`);let r=u.getColor(Ue.nb);r&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${r}; }`)});var X=o(18),ae=o(1),Ge=o(60),lt=o(84),Dt=o(50),Gt=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ti=function(u,e){return function(t,n){e(t,n,u)}},ye=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class le extends Ge.a{constructor(e,t){super(e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t),this.action=e}}let ue=class extends Lt.a{constructor(u,e,t,n){super(),this._editor=u,this._delegate=e,this._contextMenuService=t,this._visible=!1,this._showingActions=this._register(new Lt.d),this._keybindingResolver=new qe({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(u,e,t,n){return ye(this,void 0,void 0,function*(){let r=n.includeDisabledActions?e.allActions:e.validActions;if(!r.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(Oe.a)();this._visible=!0,this._showingActions.value=e;let d=this.getMenuActions(u,r,e.documentation),m=Di.a.isIPosition(t)?this._toCoords(t):t||{x:0,y:0},O=this._keybindingResolver.getResolver();this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>m,getActions:()=>d,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:re=>re instanceof le?O(re.action):void 0})})}getMenuActions(u,e,t){var n,r;let d=oe=>new le(oe,()=>this._delegate.onSelectCodeAction(oe)),m=e.map(d),O=[...t],re=this._editor.getModel();if(re&&m.length)for(let oe of I.a.all(re))oe._getAdditionalMenuItems&&O.push(...oe._getAdditionalMenuItems({trigger:u.type,only:(r=(n=u.filter)===null||n===void 0?void 0:n.include)===null||r===void 0?void 0:r.value},e));return O.length&&m.push(new Ge.c,...O.map(oe=>d({title:oe.title,command:oe}))),m}_toCoords(u){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(u,1),this._editor.render();let e=this._editor.getScrolledVisiblePosition(u),t=Object(ae.C)(this._editor.getDomNode());return{x:t.left+e.left,y:t.top+e.top+e.height}}};ue=Gt([ti(2,lt.a),ti(3,Dt.a)],ue);class qe{constructor(e){this._keybindingProvider=e}getResolver(){let e=new Gn(()=>this._keybindingProvider.getKeybindings().filter(t=>qe.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command==="editor.action.organizeImports"?n={kind:_e.SourceOrganizeImports.value}:t.command==="editor.action.fixAll"&&(n={kind:_e.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Xe.fromUser(n,{kind:_e.None,apply:"never"}))}));return t=>{if(t.kind){let n=this.bestKeybindingForCodeAction(t,e.getValue());return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let n=new _e(e.kind);return t.filter(r=>r.kind.contains(n)).filter(r=>!r.preferred||e.isPreferred).reduceRight((r,d)=>r?r.kind.contains(d.kind)?d:r:d,void 0)}}qe.codeActionCommands=["editor.action.refactor","editor.action.codeAction","editor.action.sourceAction","editor.action.organizeImports","editor.action.fixAll"];var Ze,tt=o(103),rt=o(6),zt=(o(287),o(61)),Jt=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},xi=function(u,e){return function(t,n){e(t,n,u)}};(function(u){u.Hidden={type:0},u.Showing=class{constructor(e,t,n,r){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=r,this.type=1}}})(Ze||(Ze={}));let Ei=class im extends Lt.a{constructor(e,t,n,r){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=r,this._onClick=this._register(new rt.a),this.onClick=this._onClick.event,this._state=Ze.Hidden,this._domNode=document.createElement("div"),this._domNode.className=de.a.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(d=>{let m=this._editor.getModel();(this.state.type!==1||!m||this.state.editorPosition.lineNumber>=m.getLineCount())&&this.hide()})),zt.b.ignoreTarget(this._domNode),this._register(ae.m(this._domNode,d=>{if(this.state.type!==1)return;this._editor.focus(),d.preventDefault();let{top:m,height:O}=ae.C(this._domNode),re=this._editor.getOption(51),oe=Math.floor(re/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(oe+=re),this._onClick.fire({x:d.posx,y:m+O+oe,actions:this.state.actions,trigger:this.state.trigger})})),this._register(ae.i(this._domNode,"mouseenter",d=>{if((1&d.buttons)!=1)return;this.hide();let m=new tt.a;m.startMonitoring(d.target,d.buttons,tt.b,()=>{},()=>{m.dispose()})})),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(49)&&!this._editor.getOption(49).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();let r=this._editor.getOptions();if(!r.get(49).enabled)return this.hide();let d=this._editor.getModel();if(!d)return this.hide();let{lineNumber:m,column:O}=d.validatePosition(n),re=d.getOptions().tabSize,oe=r.get(36),ce=d.getLineContent(m),Me=Rt.b.computeIndentLevel(ce,re),Ct=St=>St>2&&this._editor.getTopForLineNumber(St)===this._editor.getTopForLineNumber(St-1),Ut=m;if(!(oe.spaceWidth*Me>22))if(m>1&&!Ct(m-1))Ut-=1;else if(Ct(m+1)){if(O*oe.spaceWidth<22)return this.hide()}else Ut+=1;this.state=new Ze.Showing(e,t,n,{position:{lineNumber:Ut,column:1},preference:im._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ze.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){ae.R(this._domNode,de.a.lightBulb.classNames),ae.f(this._domNode,de.a.lightbulbAutofix.classNames);let t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t)return void(this.title=G.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",t.getLabel()))}ae.R(this._domNode,de.a.lightbulbAutofix.classNames),ae.f(this._domNode,de.a.lightBulb.classNames);let e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?G.a("quickFixWithKb","Show Fixes ({0})",e.getLabel()):G.a("quickFix","Show Fixes")}set title(e){this._domNode.title=e}};Ei._posPref=[0],Ei=Jt([xi(3,Dt.a)],Ei),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.N);t&&e.addRule(` +`,this._value+=t,this._value+="\n```\n",this}}function pt(u){return it(u)?!u.value:!Array.isArray(u)||u.every(pt)}function it(u){return u instanceof $e||!(!u||typeof u!="object")&&!(typeof u.value!="string"||typeof u.isTrusted!="boolean"&&u.isTrusted!==void 0||typeof u.supportThemeIcons!="boolean"&&u.supportThemeIcons!==void 0)}function At(u,e){return u===e||!(!u||!e)&&u.value===e.value&&u.isTrusted===e.isTrusted&&u.supportThemeIcons===e.supportThemeIcons}function Nt(u){return u&&u.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}var _i=r(66),wt=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ni=function(u,e){return function(t,n){e(t,n,u)}},pi=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let et=new A.c("selectionAnchorSet",!1),Wt=class tm{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=et.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(tm.ID)}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:J.a.fromPositions(e,e),options:{stickiness:1,hoverMessage:new $e().appendText(Object(G.a)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(_i.a)(Object(G.a)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(J.a.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Wt.ID="editor.contrib.selectionAnchorController",Wt=wt([Ni(1,A.b)],Wt);class Li extends $.b{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(G.a)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2080),weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).setSelectionAnchor()})}}class Ii extends $.b{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(G.a)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:et})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).goToSelectionAnchor()})}}class Ai extends $.b{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(G.a)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:et,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2089),weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).selectFromAnchorToCursor()})}}class Zi extends $.b{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(G.a)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:et,kbOpts:{kbExpr:z.a.editorTextFocus,primary:9,weight:100}})}run(e,t){return pi(this,void 0,void 0,function*(){Wt.get(t).cancelSelectionAnchor()})}}Object($.m)(Wt.ID,Wt),Object($.k)(Li),Object($.k)(Ii),Object($.k)(Ai),Object($.k)(Zi),r(283);var Bi=r(20),Lt=r(2),Oi=r(9),gt=r(3),vi=r(58),Rt=r(30),vt=r(57),Ue=r(5),ut=r(19),ze=r(24);let st=Object(Ue.gc)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},G.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _t extends $.b{constructor(){super({id:"editor.action.jumpToBracket",label:G.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3160,weight:100}})}run(e,t){let n=gi.get(t);n&&n.jumpToBracket()}}class ri extends $.b{constructor(){super({id:"editor.action.selectToBracket",label:G.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){let o=gi.get(t);if(!o)return;let d=!0;n&&n.selectBrackets===!1&&(d=!1),o.selectToBracket(d)}}class li{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class gi extends Lt.a{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Bi.d(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(55),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(55)&&(this._matchBrackets=this._editor.getOption(55),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(e){return e.getContribution(gi.ID)}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{let o=n.getStartPosition(),d=e.matchBracket(o),m=null;if(d)d[0].containsPosition(o)?m=d[1].getStartPosition():d[1].containsPosition(o)&&(m=d[0].getStartPosition());else{let D=e.findEnclosingBrackets(o);if(D)m=D[0].getStartPosition();else{let oe=e.findNextBracket(o);oe&&oe.range&&(m=oe.range.getStartPosition())}}return m?new J.a(m.lineNumber,m.column,m.lineNumber,m.column):new J.a(o.lineNumber,o.column,o.lineNumber,o.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(o=>{let d=o.getStartPosition(),m=t.matchBracket(d);if(!m&&(m=t.findEnclosingBrackets(d),!m)){let re=t.findNextBracket(d);re&&re.range&&(m=t.matchBracket(re.range.getStartPosition()))}let D=null,oe=null;if(m){m.sort(gt.a.compareRangesUsingStarts);let[re,ce]=m;D=e?re.getStartPosition():re.getEndPosition(),oe=e?ce.getEndPosition():ce.getStartPosition()}D&&oe&&n.push(new J.a(D.lineNumber,D.column,oe.lineNumber,oe.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let o=n.brackets;o&&(e[t++]={range:o[0],options:n.options},e[t++]={range:o[1],options:n.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);let e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);let t=this._editor.getModel(),n=t.getVersionId(),o=[];this._lastVersionId===n&&(o=this._lastBracketsData);let d=[],m=0;for(let Me=0,Ct=e.length;Me<Ct;Me++){let Ut=e[Me];Ut.isEmpty()&&(d[m++]=Ut.getStartPosition())}d.length>1&&d.sort(Oi.a.compare);let D=[],oe=0,re=0,ce=o.length;for(let Me=0,Ct=d.length;Me<Ct;Me++){let Ut=d[Me];for(;re<ce&&o[re].position.isBefore(Ut);)re++;if(re<ce&&o[re].position.equals(Ut))D[oe++]=o[re];else{let St=t.matchBracket(Ut),di=gi._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;St||this._matchBrackets!=="always"||(St=t.findEnclosingBrackets(Ut,20),di=gi._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),D[oe++]=new li(Ut,St,di)}}this._lastBracketsData=D,this._lastVersionId=n}}gi.ID="editor.contrib.bracketMatchingController",gi._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Rt.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(ut.h)(st),position:vi.d.Center}}),gi._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Rt.a.register({stickiness:1,className:"bracket-match"}),Object($.m)(gi.ID,gi),Object($.k)(ri),Object($.k)(_t),Object(ut.g)((u,e)=>{let t=u.getColor(vt.c);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);let n=u.getColor(vt.d);n&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${n}; }`)}),ze.d.appendMenuItem(ze.b.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:G.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class ki{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,o=this._selection.startColumn,d=this._selection.endColumn;if((!this._isMovingLeft||o!==1)&&(this._isMovingLeft||d!==e.getLineMaxColumn(n)))if(this._isMovingLeft){let m=new gt.a(n,o-1,n,o),D=e.getValueInRange(m);t.addEditOperation(m,null),t.addEditOperation(new gt.a(n,d,n,d),D)}else{let m=new gt.a(n,d,n,d+1),D=e.getValueInRange(m);t.addEditOperation(m,null),t.addEditOperation(new gt.a(n,o,n,o),D)}}computeCursorState(e,t){return this._isMovingLeft?new J.a(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new J.a(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Ri extends $.b{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],o=t.getSelections();for(let d of o)n.push(new ki(d,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}Object($.k)(class extends Ri{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:G.a("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:z.a.writable})}}),Object($.k)(class extends Ri{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:G.a("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:z.a.writable})}});var $i=r(62),Hi=r(81);class yi extends $.b{constructor(){super({id:"editor.action.transposeLetters",label:G.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),o=[],d=t.getSelections();for(let m of d){if(!m.isEmpty())continue;let D=m.startLineNumber,oe=m.startColumn,re=n.getLineMaxColumn(D);if(D===1&&(oe===1||oe===2&&re===2))continue;let ce=oe===re?m.getPosition():Hi.a.rightPosition(n,m.getPosition().lineNumber,m.getPosition().column),Me=Hi.a.leftPosition(n,ce.lineNumber,ce.column),Ct=Hi.a.leftPosition(n,Me.lineNumber,Me.column),Ut=n.getValueInRange(gt.a.fromPositions(Ct,Me)),St=n.getValueInRange(gt.a.fromPositions(Me,ce)),di=gt.a.fromPositions(Ct,ce);o.push(new $i.a(di,St+Ut))}o.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop())}}Object($.k)(yi);var kt=r(34),Et=r(11),si=r(167),Si=r(41),Pi=r(121),Wi=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let xn=Et.g||document.queryCommandSupported("cut"),un=Et.g||document.queryCommandSupported("copy"),bn=un&&!kt.f,Fn=!kt.h||document.queryCommandSupported("paste");function Mn(u){return u.register(),u}let Nn=xn?Mn(new $.e({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Et.g?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.cutLabel","Cut"),when:z.a.writable,order:1},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.cutLabel","Cut"),order:1}]})):void 0,Hn=un?Mn(new $.e({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Et.g?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.copyLabel","Copy"),order:1}]})):void 0,Jn=Fn?Mn(new $.e({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Et.g?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ze.b.MenubarEditMenu,group:"2_ccp",title:G.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3},{menuId:ze.b.EditorContext,group:"9_cutcopypaste",title:G.a("actions.clipboard.pasteLabel","Paste"),when:z.a.writable,order:3},{menuId:ze.b.CommandPalette,group:"",title:G.a("actions.clipboard.pasteLabel","Paste"),order:1}]})):void 0;class br extends $.b{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:G.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(26)&&t.getSelection().isEmpty()||(si.a.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),si.a.forceCopyWithSyntaxHighlighting=!1)}}function pn(u,e){u&&(u.addImplementation(1e4,(t,n)=>{let o=t.get(Si.a).getFocusedCodeEditor();if(o&&o.hasTextFocus()){let d=o.getOption(26),m=o.getSelection();return m&&m.isEmpty()&&!d||document.execCommand(e),!0}return!1}),u.addImplementation(0,(t,n)=>(document.execCommand(e),!0)))}pn(Nn,"cut"),pn(Hn,"copy"),Jn&&(Jn.addImplementation(1e4,(u,e)=>{let t=u.get(Si.a),n=u.get(Pi.a),o=t.getFocusedCodeEditor();return o&&o.hasTextFocus()?!(!document.execCommand("paste")&&Et.h)||(Wi(void 0,void 0,void 0,function*(){let d=yield n.readText();if(d!==""){let m=si.b.INSTANCE.get(d),D=!1,oe=null,re=null;m&&(D=o.getOption(26)&&!!m.isFromEmptySelection,oe=m.multicursorText!==void 0?m.multicursorText:null,re=m.mode),o.trigger("keyboard","paste",{text:d,pasteOnNewLine:D,multicursorText:oe,mode:re})}}),!0):!1}),Jn.addImplementation(0,(u,e)=>(document.execCommand("paste"),!0))),bn&&Object($.k)(br);class Gn{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var rn=r(8),dr=r(148),Dn=r(25),On=r(23),qt=r(88),I=r(12),ne=r(64);class _e{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||Object(rn.S)(e.value,this.value+_e.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new _e(this.value+_e.sep+e)}}function Fe(u,e,t){return!!e.contains(u)&&(!t||!e.contains(t))}_e.sep=".",_e.None=new _e("@@none@@"),_e.Empty=new _e(""),_e.QuickFix=new _e("quickfix"),_e.Refactor=new _e("refactor"),_e.Source=new _e("source"),_e.SourceOrganizeImports=_e.Source.append("organizeImports"),_e.SourceFixAll=_e.Source.append("fixAll");class Xe{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return e&&typeof e=="object"?new Xe(Xe.getKindFromUser(e,t.kind),Xe.getApplyFromUser(e,t.apply),Xe.getPreferredUser(e)):new Xe(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new _e(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"&&e.preferred}}var rt=r(83),Mt=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class Dt extends Lt.a{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=Object(ee.p)([...e],Dt.codeActionsComparator),this.validActions=this.allActions.filter(o=>!o.disabled)}static codeActionsComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Object(ee.o)(e.diagnostics)?Object(ee.o)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(ee.o)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(e=>!!e.kind&&_e.QuickFix.contains(new _e(e.kind))&&!!e.isPreferred)}}let Tt={actions:[],documentation:void 0};function Ht(u,e,t,n,o){var d;let m=t.filter||{},D={only:(d=m.include)===null||d===void 0?void 0:d.value,trigger:t.type},oe=new qt.d(u,o),re=function(Ut,St){return I.a.all(Ut).filter(di=>!di.providedCodeActionKinds||di.providedCodeActionKinds.some(hi=>function(ji,Ji){return!(ji.include&&!ji.include.intersects(Ji))&&(!ji.excludes||!ji.excludes.some(dn=>Fe(Ji,dn,ji.include)))&&!(!ji.includeSourceActions&&_e.Source.contains(Ji))}(St,new _e(hi))))}(u,m),ce=new Lt.b,Me=re.map(Ut=>Mt(this,void 0,void 0,function*(){try{n.report(Ut);let St=yield Ut.provideCodeActions(u,e,D,oe.token);if(St&&ce.add(St),oe.token.isCancellationRequested)return Tt;let di=((St==null?void 0:St.actions)||[]).filter(hi=>hi&&function(ji,Ji){let dn=Ji.kind?new _e(Ji.kind):void 0;return!!(!ji.include||dn&&ji.include.contains(dn))&&!(ji.excludes&&dn&&ji.excludes.some(Ki=>Fe(dn,Ki,ji.include)))&&!(!ji.includeSourceActions&&dn&&_e.Source.contains(dn))&&!(ji.onlyIncludePreferredActions&&!Ji.isPreferred)}(m,hi));return{actions:di,documentation:function(hi,ji,Ji){if(!hi.documentation)return;let dn=hi.documentation.map(Ki=>({kind:new _e(Ki.kind),command:Ki.command}));if(Ji){let Ki;for(let yn of dn)yn.kind.contains(Ji)&&(Ki?Ki.kind.contains(yn.kind)&&(Ki=yn):Ki=yn);if(Ki)return Ki==null?void 0:Ki.command}for(let Ki of ji)if(Ki.kind){for(let yn of dn)if(yn.kind.contains(new _e(Ki.kind)))return yn.command}}(Ut,di,m.include)}}catch(St){if(Object(De.d)(St))throw St;return Object(De.f)(St),Tt}})),Ct=I.a.onDidChange(()=>{let Ut=I.a.all(u);Object(ee.g)(Ut,re)||oe.cancel()});return Promise.all(Me).then(Ut=>{let St=Object(ee.l)(Ut.map(hi=>hi.actions)),di=Object(ee.d)(Ut.map(hi=>hi.documentation));return new Dt(St,di,ce)}).finally(()=>{Ct.dispose(),oe.dispose()})}Object($.o)("_executeCodeActionProvider",function(u,e){return Mt(this,void 0,void 0,function*(){let{resource:t,rangeOrSelection:n,kind:o}=e;if(!(t instanceof On.a))throw Object(De.b)();let d=u.get(ne.a).getModel(t);if(!d)throw Object(De.b)();let m=J.a.isISelection(n)?J.a.liftSelection(n):gt.a.isIRange(n)?d.validateRange(n):void 0;if(!m)throw Object(De.b)();let D=yield Ht(d,m,{type:2,filter:{includeSourceActions:!0,include:o&&o.value?new _e(o.value):void 0}},rt.b.None,Dn.a.None);return setTimeout(()=>D.dispose(),100),D.validActions})}),r(285);var jt=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Kt=function(u,e){return function(t,n){e(t,n,u)}};let wi=class Zh extends Lt.a{constructor(e,t){super(),this._messageWidget=this._register(new Lt.d),this._messageListeners=this._register(new Lt.b),this._editor=e,this._visible=Zh.MESSAGE_VISIBLE.bindTo(t),this._register(this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}static get(e){return e.getContribution(Zh.ID)}dispose(){super.dispose(),this._visible.reset()}showMessage(e,t){let n;Object(_i.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new ft(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new Bi.e(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(o=>{o.target.position&&(n?n.containsPosition(o.target.position)||this.closeMessage():n=new gt.a(t.lineNumber-3,1,o.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(ft.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(G.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};wi.ID="editor.contrib.messageController",wi.MESSAGE_VISIBLE=new A.c("messageVisible",!1),wi=jt([Kt(1,A.b)],wi);let Ti=$.c.bindToContribution(wi.get);Object($.l)(new Ti({id:"leaveEditorMessage",precondition:wi.MESSAGE_VISIBLE,handler:u=>u.closeMessage(),kbOpts:{weight:130,primary:9}}));class ft{constructor(e,{lineNumber:t,column:n},o){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");let d=document.createElement("div");d.classList.add("message"),d.textContent=o,this._domNode.appendChild(d);let m=document.createElement("div");m.classList.add("anchor"),this._domNode.appendChild(m),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t,n=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}}Object($.m)(wi.ID,wi),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.mb);if(t){let d=u.type===ut.b?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${d}px solid ${t}; }`)}let n=u.getColor(Ue.lb);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${n}; }`);let o=u.getColor(Ue.nb);o&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${o}; }`)});var X=r(18),ae=r(1),Ge=r(60),lt=r(84),Ot=r(50),Gt=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ti=function(u,e){return function(t,n){e(t,n,u)}},ye=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class le extends Ge.a{constructor(e,t){super(e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t),this.action=e}}let ue=class extends Lt.a{constructor(u,e,t,n){super(),this._editor=u,this._delegate=e,this._contextMenuService=t,this._visible=!1,this._showingActions=this._register(new Lt.d),this._keybindingResolver=new qe({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(u,e,t,n){return ye(this,void 0,void 0,function*(){let o=n.includeDisabledActions?e.allActions:e.validActions;if(!o.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(De.a)();this._visible=!0,this._showingActions.value=e;let d=this.getMenuActions(u,o,e.documentation),m=Oi.a.isIPosition(t)?this._toCoords(t):t||{x:0,y:0},D=this._keybindingResolver.getResolver();this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>m,getActions:()=>d,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:oe=>oe instanceof le?D(oe.action):void 0})})}getMenuActions(u,e,t){var n,o;let d=re=>new le(re,()=>this._delegate.onSelectCodeAction(re)),m=e.map(d),D=[...t],oe=this._editor.getModel();if(oe&&m.length)for(let re of I.a.all(oe))re._getAdditionalMenuItems&&D.push(...re._getAdditionalMenuItems({trigger:u.type,only:(o=(n=u.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},e));return D.length&&m.push(new Ge.c,...D.map(re=>d({title:re.title,command:re}))),m}_toCoords(u){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(u,1),this._editor.render();let e=this._editor.getScrolledVisiblePosition(u),t=Object(ae.C)(this._editor.getDomNode());return{x:t.left+e.left,y:t.top+e.top+e.height}}};ue=Gt([ti(2,lt.a),ti(3,Ot.a)],ue);class qe{constructor(e){this._keybindingProvider=e}getResolver(){let e=new Gn(()=>this._keybindingProvider.getKeybindings().filter(t=>qe.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command==="editor.action.organizeImports"?n={kind:_e.SourceOrganizeImports.value}:t.command==="editor.action.fixAll"&&(n={kind:_e.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Xe.fromUser(n,{kind:_e.None,apply:"never"}))}));return t=>{if(t.kind){let n=this.bestKeybindingForCodeAction(t,e.getValue());return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let n=new _e(e.kind);return t.filter(o=>o.kind.contains(n)).filter(o=>!o.preferred||e.isPreferred).reduceRight((o,d)=>o?o.kind.contains(d.kind)?d:o:d,void 0)}}qe.codeActionCommands=["editor.action.refactor","editor.action.codeAction","editor.action.sourceAction","editor.action.organizeImports","editor.action.fixAll"];var Ze,tt=r(103),ot=r(6),zt=(r(287),r(61)),Jt=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},xi=function(u,e){return function(t,n){e(t,n,u)}};(function(u){u.Hidden={type:0},u.Showing=class{constructor(e,t,n,o){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=o,this.type=1}}})(Ze||(Ze={}));let Ei=class im extends Lt.a{constructor(e,t,n,o){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=o,this._onClick=this._register(new ot.a),this.onClick=this._onClick.event,this._state=Ze.Hidden,this._domNode=document.createElement("div"),this._domNode.className=de.a.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(d=>{let m=this._editor.getModel();(this.state.type!==1||!m||this.state.editorPosition.lineNumber>=m.getLineCount())&&this.hide()})),zt.b.ignoreTarget(this._domNode),this._register(ae.m(this._domNode,d=>{if(this.state.type!==1)return;this._editor.focus(),d.preventDefault();let{top:m,height:D}=ae.C(this._domNode),oe=this._editor.getOption(51),re=Math.floor(oe/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(re+=oe),this._onClick.fire({x:d.posx,y:m+D+re,actions:this.state.actions,trigger:this.state.trigger})})),this._register(ae.i(this._domNode,"mouseenter",d=>{if((1&d.buttons)!=1)return;this.hide();let m=new tt.a;m.startMonitoring(d.target,d.buttons,tt.b,()=>{},()=>{m.dispose()})})),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(49)&&!this._editor.getOption(49).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();let o=this._editor.getOptions();if(!o.get(49).enabled)return this.hide();let d=this._editor.getModel();if(!d)return this.hide();let{lineNumber:m,column:D}=d.validatePosition(n),oe=d.getOptions().tabSize,re=o.get(36),ce=d.getLineContent(m),Me=Rt.b.computeIndentLevel(ce,oe),Ct=St=>St>2&&this._editor.getTopForLineNumber(St)===this._editor.getTopForLineNumber(St-1),Ut=m;if(!(re.spaceWidth*Me>22))if(m>1&&!Ct(m-1))Ut-=1;else if(Ct(m+1)){if(D*re.spaceWidth<22)return this.hide()}else Ut+=1;this.state=new Ze.Showing(e,t,n,{position:{lineNumber:Ut,column:1},preference:im._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ze.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){ae.R(this._domNode,de.a.lightBulb.classNames),ae.f(this._domNode,de.a.lightbulbAutofix.classNames);let t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t)return void(this.title=G.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",t.getLabel()))}ae.R(this._domNode,de.a.lightbulbAutofix.classNames),ae.f(this._domNode,de.a.lightBulb.classNames);let e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?G.a("quickFixWithKb","Show Fixes ({0})",e.getLabel()):G.a("quickFix","Show Fixes")}set title(e){this._domNode.title=e}};Ei._posPref=[0],Ei=Jt([xi(3,Ot.a)],Ei),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.N);t&&e.addRule(` .monaco-editor .contentWidgets ${de.a.lightBulb.cssSelector} { color: ${t}; }`);let n=u.getColor(Ue.M);n&&e.addRule(` .monaco-editor .contentWidgets ${de.a.lightbulbAutofix.cssSelector} { color: ${n}; - }`)});var ai=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},fi=function(u,e){return function(t,n){e(t,n,u)}},ui=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Te=class extends Lt.a{constructor(u,e,t,n,r){super(),this._editor=u,this.delegate=n,this._activeCodeActions=this._register(new Lt.d),this._codeActionWidget=new Gn(()=>this._register(r.createInstance(ue,this._editor,{onSelectCodeAction:d=>ui(this,void 0,void 0,function*(){this.delegate.applyCodeAction(d,!0)})}))),this._lightBulbWidget=new Gn(()=>{let d=this._register(r.createInstance(Ei,this._editor,e,t));return this._register(d.onClick(m=>this.showCodeActionList(m.trigger,m.actions,m,{includeDisabledActions:!1}))),d})}update(u){var e,t,n;return ui(this,void 0,void 0,function*(){if(u.type!==1)return void((e=this._lightBulbWidget.rawValue)===null||e===void 0||e.hide());let r;try{r=yield u.actions}catch(d){return void Object(Oe.e)(d)}if(this._lightBulbWidget.getValue().update(r,u.trigger,u.position),u.trigger.type===2){if((t=u.trigger.filter)===null||t===void 0?void 0:t.include){let m=this.tryGetValidActionToApply(u.trigger,r);if(m){try{yield this.delegate.applyCodeAction(m,!1)}finally{r.dispose()}return}if(u.trigger.context){let O=this.getInvalidActionThatWouldHaveBeenApplied(u.trigger,r);if(O&&O.disabled)return wi.get(this._editor).showMessage(O.disabled,u.trigger.context.position),void r.dispose()}}let d=!!((n=u.trigger.filter)===null||n===void 0?void 0:n.include);if(u.trigger.context&&(!r.allActions.length||!d&&!r.validActions.length))return wi.get(this._editor).showMessage(u.trigger.context.notAvailableMessage,u.trigger.context.position),this._activeCodeActions.value=r,void r.dispose();this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(u.trigger,r,u.position,{includeDisabledActions:d})}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r})}getInvalidActionThatWouldHaveBeenApplied(u,e){if(e.allActions.length)return u.autoApply==="first"&&e.validActions.length===0||u.autoApply==="ifSingle"&&e.allActions.length===1?e.allActions.find(t=>t.disabled):void 0}tryGetValidActionToApply(u,e){if(e.validActions.length)return u.autoApply==="first"&&e.validActions.length>0||u.autoApply==="ifSingle"&&e.validActions.length===1?e.validActions[0]:void 0}showCodeActionList(u,e,t,n){return ui(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(u,e,t,n)})}};Te=ai([fi(4,X.a)],Te);var Ee=o(27),ve=o(63),Re=o(49),We=o(120),Be=o(51);let Le=new A.c("supportedCodeAction","");class Ke extends Lt.a{constructor(e,t,n,r=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=r,this._autoTriggerTimer=this._register(new Bi.e),this._register(this._markerService.onMarkerChanged(d=>this._onMarkerChanges(d))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(n=>Object(Be.f)(n,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_getRangeOfMarker(e){let t=this._editor.getModel();if(t)for(let n of this._markerService.read({resource:t.uri})){let r=t.validateRange(n);if(gt.a.intersectRanges(r,e))return gt.a.lift(r)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&e.type===1){let{lineNumber:r,column:d}=n.getPosition(),m=t.getLineContent(r);if(m.length===0)return;if(d===1){if(/\s/.test(m[0]))return}else if(d===t.getLineMaxColumn(r)){if(/\s/.test(m[m.length-1]))return}else if(/\s/.test(m[d-2])&&/\s/.test(m[d-1]))return}return n}_createEventAndSignalChange(e,t){let n=this._editor.getModel();if(!t||!n)return void this._signalChange(void 0);let r=this._getRangeOfMarker(t),d=r?r.getStartPosition():t.getStartPosition(),m={trigger:e,selection:t,position:d};return this._signalChange(m),m}}var dt;(function(u){u.Empty={type:0},u.Triggered=class{constructor(e,t,n,r){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=r,this.type=1}}})(dt||(dt={}));class yt extends Lt.a{constructor(e,t,n,r){super(),this._editor=e,this._markerService=t,this._progressService=r,this._codeActionOracle=this._register(new Lt.d),this._state=dt.Empty,this._onDidChangeState=this._register(new rt.a),this.onDidChangeState=this._onDidChangeState.event,this._supportedCodeActions=Le.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(I.a.onDidChange(()=>this._update())),this._update()}dispose(){super.dispose(),this.setState(dt.Empty,!0)}_update(){this._codeActionOracle.value=void 0,this.setState(dt.Empty);let e=this._editor.getModel();if(e&&I.a.has(e)&&!this._editor.getOption(72)){let t=[];for(let n of I.a.all(e))Array.isArray(n.providedCodeActionKinds)&&t.push(...n.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new Ke(this._editor,this._markerService,n=>{var r;if(!n)return void this.setState(dt.Empty);let d=Object(Bi.f)(m=>Ht(e,n.selection,n.trigger,ot.b.None,m));n.trigger.type===2&&((r=this._progressService)===null||r===void 0||r.showWhile(d,250)),this.setState(new dt.Triggered(n.trigger,n.selection,n.position,d))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))}}var xt=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Xt=function(u,e){return function(t,n){e(t,n,u)}},mi=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Yt(u){return A.a.regex(Le.keys()[0],new RegExp("(\\s|^)"+Object(on.v)(u.value)+"\\b"))}let ri={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:G.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:G.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[G.a("args.schema.apply.first","Always apply the first returned code action."),G.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),G.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:G.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},qi=class nm extends Lt.a{constructor(e,t,n,r,d){super(),this._instantiationService=d,this._editor=e,this._model=this._register(new yt(this._editor,t,n,r)),this._register(this._model.onDidChangeState(m=>this.update(m))),this._ui=new Gn(()=>this._register(new Te(e,ei.Id,gn.Id,{applyCodeAction:(m,O)=>mi(this,void 0,void 0,function*(){try{yield this._applyCodeAction(m)}finally{O&&this._trigger({type:1,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(nm.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,n){if(!this._editor.hasModel())return;wi.get(this._editor).closeMessage();let r=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:r}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(an,e,this._editor)}};function an(u,e,t){return mi(this,void 0,void 0,function*(){let n=u.get(ho.a),r=u.get(Ee.b),d=u.get(We.a),m=u.get(Re.a);if(d.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.title,codeActionKind:e.kind,codeActionIsPreferred:!!e.isPreferred}),e.edit&&(yield n.apply(ho.b.convert(e.edit),{editor:t,label:e.title})),e.command)try{yield r.executeCommand(e.command.id,...e.command.arguments||[])}catch(O){let re=function(oe){return typeof oe=="string"?oe:oe instanceof Error&&typeof oe.message=="string"?oe.message:void 0}(O);m.error(typeof re=="string"?re:G.a("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function _n(u,e,t,n){if(u.hasModel()){let r=qi.get(u);r&&r.manualTriggerAtCurrentPosition(e,t,n)}}qi.ID="editor.contrib.quickFixController",qi=xt([Xt(1,ve.b),Xt(2,A.b),Xt(3,ot.a),Xt(4,X.a)],qi);class ei extends $.b{constructor(){super({id:ei.Id,label:G.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2132,weight:100}})}run(e,t){return _n(t,G.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}ei.Id="editor.action.quickFix";class ii extends $.c{constructor(){super({id:"editor.action.codeAction",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:ri}]}})}runEditorCommand(e,t,n){let r=Xe.fromUser(n,{kind:_e.Empty,apply:"ifSingle"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?G.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):G.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):r.preferred?G.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):G.a("editor.action.codeAction.noneMessage","No code actions available"),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}class bi extends $.b{constructor(){super({id:"editor.action.refactor",label:G.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:A.a.and(z.a.writable,Yt(_e.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:ri}]}})}run(e,t,n){let r=Xe.fromUser(n,{kind:_e.Refactor,apply:"never"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?G.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):G.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):r.preferred?G.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):G.a("editor.action.refactor.noneMessage","No refactorings available"),{include:_e.Refactor.contains(r.kind)?r.kind:_e.None,onlyIncludePreferredActions:r.preferred},r.apply)}}class ln extends $.b{constructor(){super({id:"editor.action.sourceAction",label:G.a("source.label","Source Action..."),alias:"Source Action...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:A.a.and(z.a.writable,Yt(_e.Source))},description:{description:"Source Action...",args:[{name:"args",schema:ri}]}})}run(e,t,n){let r=Xe.fromUser(n,{kind:_e.Source,apply:"never"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?G.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):G.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):r.preferred?G.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):G.a("editor.action.source.noneMessage","No source actions available"),{include:_e.Source.contains(r.kind)?r.kind:_e.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}class mn extends $.b{constructor(){super({id:"editor.action.organizeImports",label:G.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:A.a.and(z.a.writable,Yt(_e.SourceOrganizeImports)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1581,weight:100}})}run(e,t){return _n(t,G.a("editor.action.organize.noneMessage","No organize imports action available"),{include:_e.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class sn extends $.b{constructor(){super({id:"editor.action.fixAll",label:G.a("fixAll.label","Fix All"),alias:"Fix All",precondition:A.a.and(z.a.writable,Yt(_e.SourceFixAll))})}run(e,t){return _n(t,G.a("fixAll.noneMessage","No fix all action available"),{include:_e.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class gn extends $.b{constructor(){super({id:gn.Id,label:G.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:A.a.and(z.a.writable,Yt(_e.QuickFix)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return _n(t,G.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_e.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}gn.Id="editor.action.autoFix",Object($.m)(qi.ID,qi),Object($.k)(ei),Object($.k)(bi),Object($.k)(ln),Object($.k)(mn),Object($.k)(gn),Object($.k)(sn),Object($.l)(new ii);class Sn{constructor(){this.lenses=[],this._disposables=new Lt.b}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(let n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function En(u,e){let t=I.b.ordered(u),n=new Map,r=new Sn,d=t.map((m,O)=>(n.set(m,O),Promise.resolve(m.provideCodeLenses(u,e)).then(re=>re&&r.add(re,m)).catch(Oe.f)));return Promise.all(d).then(()=>(r.lenses=Object(ee.p)(r.lenses,(m,O)=>m.symbol.range.startLineNumber<O.symbol.range.startLineNumber?-1:m.symbol.range.startLineNumber>O.symbol.range.startLineNumber?1:n.get(m.provider)<n.get(O.provider)?-1:n.get(m.provider)>n.get(O.provider)?1:m.symbol.range.startColumn<O.symbol.range.startColumn?-1:m.symbol.range.startColumn>O.symbol.range.startColumn?1:0),r))}Object($.o)("_executeCodeLensProvider",function(u,e){let{resource:t,itemResolveCount:n}=e;if(!(t instanceof Dn.a))throw Object(Oe.b)();let r=u.get(ne.a).getModel(t);if(!r)throw Object(Oe.b)();let d=[],m=new Lt.b;return En(r,On.a.None).then(O=>{m.add(O);let re=[];for(let oe of O.lenses)n===void 0||Boolean(oe.symbol.command)?d.push(oe.symbol):n-- >0&&oe.provider.resolveCodeLens&&re.push(Promise.resolve(oe.provider.resolveCodeLens(r,oe.symbol,On.a.None)).then(ce=>d.push(ce||oe.symbol)));return Promise.all(re)}).then(()=>d).finally(()=>{setTimeout(()=>m.dispose(),100)})}),o(289);class Xn{constructor(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}}class Yn{constructor(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+Yn._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}withCommands(e,t){this._commands.clear();let n="",r=!1;for(let d=0;d<e.length;d++){let m=e[d];if(m&&(r=!0,m.command)){let O=Object(de.f)(Object(on.u)(m.command.title));m.command.id?(n+=`<a id=${d}>${O}</a>`,this._commands.set(String(d),m.command)):n+=`<span>${O}</span>`,d+1<e.length&&(n+="<span> | </span>")}}r?(n||(n="\xA0"),this._domNode.innerHTML=n,this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){let t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}Yn._idPool=0;class Io{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let n=0,r=t.length;n<r;n++)this._addDecorationsCallbacks[n](t[n])}}class Ro{constructor(e,t,n,r,d,m){let O;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];let re=[];this._data.forEach((oe,ce)=>{oe.symbol.command&&re.push(oe.symbol),r.addDecoration({range:oe.symbol.range,options:Rt.a.EMPTY},Me=>this._decorationIds[ce]=Me),O=O?gt.a.plusRange(O,oe.symbol.range):gt.a.lift(oe.symbol.range)}),this._viewZone=new Xn(O.startLineNumber-1,m),this._viewZoneId=d.addZone(this._viewZone),re.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(re,!1))}_createContentWidgetIfNecessary(){this._contentWidget||(this._contentWidget=new Yn(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let n=this._editor.getModel().getDecorationRange(e),r=this._data[t].symbol;return!(!n||gt.a.isEmpty(r.range)!==n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((n,r)=>{t.addDecoration({range:n.symbol.range,options:Rt.a.EMPTY},d=>this._decorationIds[r]=d)})}computeIfNecessary(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let t=0;t<this._decorationIds.length;t++){let n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){let n=e[t];if(n){let{symbol:r}=this._data[t];r.command=n.command||r.command}}}getCommand(e){var t;return(t=this._contentWidget)===null||t===void 0?void 0:t.getCommand(e)}getLineNumber(){let e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){let t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}getItems(){return this._data}}Object(ut.g)((u,e)=>{let t=u.getColor(vt.e);t&&(e.addRule(`.monaco-editor .codelens-decoration { color: ${t}; }`),e.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${t}; }`));let n=u.getColor(Ue.r);n&&(e.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${n} !important; }`),e.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${n} !important; }`))});var In=o(115),Rn=o(78),Qn=o(97),vo=o(133),Mo=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},So=function(u,e){return function(t,n){e(t,n,u)}};let ko=Object(X.c)("ICodeLensCache");class po{constructor(e,t){this.lineCount=e,this.data=t}}let Tn=class{constructor(u){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Rn.a(20,.75),Object(Bi.k)(()=>u.remove("codelens/cache",1));let e="codelens/cache2",t=u.get(e,1,"{}");this._deserialize(t),Object(vo.a)(u.onWillSaveState)(n=>{n.reason===Qn.c.SHUTDOWN&&u.store(e,this._serialize(),1)})}put(u,e){let t=e.lenses.map(d=>{var m;return{range:d.symbol.range,command:d.symbol.command&&{id:"",title:(m=d.symbol.command)===null||m===void 0?void 0:m.title}}}),n=new Sn;n.add({lenses:t,dispose:()=>{}},this._fakeProvider);let r=new po(u.getLineCount(),n);this._cache.set(u.uri.toString(),r)}get(u){let e=this._cache.get(u.uri.toString());return e&&e.lineCount===u.getLineCount()?e.data:void 0}delete(u){this._cache.delete(u.uri.toString())}_serialize(){let u=Object.create(null);for(let[e,t]of this._cache){let n=new Set;for(let r of t.data.lenses)n.add(r.symbol.range.startLineNumber);u[e]={lineCount:t.lineCount,lines:[...n.values()]}}return JSON.stringify(u)}_deserialize(u){try{let e=JSON.parse(u);for(let t in e){let n=e[t],r=[];for(let m of n.lines)r.push({range:new gt.a(m,1,m,11)});let d=new Sn;d.add({lenses:r,dispose(){}},this._fakeProvider),this._cache.set(t,new po(n.lineCount,d))}}catch(e){}}};Tn=Mo([So(0,Qn.a)],Tn),Object(In.b)(ko,Tn);var No=o(89),Ho=o(110),gr=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},wo=function(u,e){return function(t,n){e(t,n,u)}},ls=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Br=class{constructor(u,e,t,n){this._editor=u,this._commandService=e,this._notificationService=t,this._codeLensCache=n,this._globalToDispose=new Lt.b,this._localToDispose=new Lt.b,this._lenses=[],this._oldCodeLensModels=new Lt.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeConfiguration(()=>{let r=this._isEnabled;this._isEnabled=this._editor.getOption(11),r!==this._isEnabled&&this._onModelChange()})),this._globalToDispose.add(I.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(36)&&this._updateLensStyle()})),this._onModelChange(),this._styleClassName="_"+Object(No.b)(this._editor.getId()).toString(16),this._styleElement=ae.v(ae.O(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(Lt.f)(this._currentCodeLensModel)}_updateLensStyle(){let u=this._editor.getOptions(),e=u.get(36),t=u.get(51),n=Math.round(1.1*t),r=Math.round(.9*e.fontSize),d=` - .monaco-editor .codelens-decoration.${this._styleClassName} { height: ${n}px; line-height: ${t}px; font-size: ${r}px; padding-right: ${Math.round(.45*e.fontSize)}px;} - .monaco-editor .codelens-decoration.${this._styleClassName} > a > .codicon { line-height: ${t}px; font-size: ${r}px; } - `;this._styleElement.textContent=d}_localDispose(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(Lt.f)(this._currentCodeLensModel)}_onModelChange(){this._localDispose();let u=this._editor.getModel();if(!u||!this._isEnabled)return;let e=this._codeLensCache.get(u);if(e&&this._renderCodeLensSymbols(e),!I.b.has(u))return void(e&&this._localToDispose.add(Object(Bi.g)(()=>{let r=this._codeLensCache.get(u);e===r&&(this._codeLensCache.delete(u),this._onModelChange())},3e4)));for(let r of I.b.all(u))if(typeof r.onDidChange=="function"){let d=r.onDidChange(()=>n.schedule());this._localToDispose.add(d)}let t=this._detectVisibleLenses=new Bi.d(()=>this._onViewportChanged(),250),n=new Bi.d(()=>{let r=++this._modelChangeCounter;this._currentFindCodeLensSymbolsPromise&&this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=Object(Bi.f)(d=>En(u,d)),this._currentFindCodeLensSymbolsPromise.then(d=>{r===this._modelChangeCounter&&(this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=d,this._codeLensCache.put(u,d),this._renderCodeLensSymbols(d),t.schedule())},Oe.e)},250);this._localToDispose.add(n),this._localToDispose.add(t),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(r=>{this._editor.changeViewZones(d=>{let m=[],O=-1;this._lenses.forEach(oe=>{oe.isValid()&&O!==oe.getLineNumber()?(oe.update(d),O=oe.getLineNumber()):m.push(oe)});let re=new Io;m.forEach(oe=>{oe.dispose(re,d),this._lenses.splice(this._lenses.indexOf(oe),1)}),re.commit(r)})}),t.schedule(),n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(r=>{r.scrollTopChanged&&this._lenses.length>0&&t.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{t.schedule()})),this._localToDispose.add(Object(Lt.h)(()=>{if(this._editor.getModel()){let r=qt.c.capture(this._editor);this._editor.changeDecorations(d=>{this._editor.changeViewZones(m=>{this._disposeAllLenses(d,m)})}),r.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(r=>{if(r.target.type!==9)return;let d=r.target.element;if((d==null?void 0:d.tagName)==="SPAN"&&(d=d.parentElement),(d==null?void 0:d.tagName)==="A")for(let m of this._lenses){let O=m.getCommand(d);if(O){this._commandService.executeCommand(O.id,...O.arguments||[]).catch(re=>this._notificationService.error(re));break}}})),n.schedule()}_disposeAllLenses(u,e){let t=new Io;for(let n of this._lenses)n.dispose(t,e);u&&t.commit(u),this._lenses=[]}_renderCodeLensSymbols(u){if(!this._editor.hasModel())return;let e,t=this._editor.getModel().getLineCount(),n=[];for(let d of u.lenses){let m=d.symbol.range.startLineNumber;m<1||m>t||(e&&e[e.length-1].symbol.range.startLineNumber===m?e.push(d):(e=[d],n.push(e)))}let r=qt.c.capture(this._editor);this._editor.changeDecorations(d=>{this._editor.changeViewZones(m=>{let O=new Io,re=0,oe=0;for(;oe<n.length&&re<this._lenses.length;){let ce=n[oe][0].symbol.range.startLineNumber,Me=this._lenses[re].getLineNumber();Me<ce?(this._lenses[re].dispose(O,m),this._lenses.splice(re,1)):Me===ce?(this._lenses[re].updateCodeLensSymbols(n[oe],O),oe++,re++):(this._lenses.splice(re,0,new Ro(n[oe],this._editor,this._styleClassName,O,m,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),re++,oe++)}for(;re<this._lenses.length;)this._lenses[re].dispose(O,m),this._lenses.splice(re,1);for(;oe<n.length;)this._lenses.push(new Ro(n[oe],this._editor,this._styleClassName,O,m,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),oe++;O.commit(d)})}),r.restore(this._editor)}_onViewportChanged(){this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);let u=this._editor.getModel();if(!u)return;let e=[],t=[];if(this._lenses.forEach(r=>{let d=r.computeIfNecessary(u);d&&(e.push(d),t.push(r))}),e.length===0)return;let n=Object(Bi.f)(r=>{let d=e.map((m,O)=>{let re=new Array(m.length),oe=m.map((ce,Me)=>ce.symbol.command||typeof ce.provider.resolveCodeLens!="function"?(re[Me]=ce.symbol,Promise.resolve(void 0)):Promise.resolve(ce.provider.resolveCodeLens(u,ce.symbol,r)).then(Ct=>{re[Me]=Ct},Oe.f));return Promise.all(oe).then(()=>{r.isCancellationRequested||t[O].isDisposed()||t[O].updateCommands(re)})});return Promise.all(d)});this._currentResolveCodeLensSymbolsPromise=n,this._currentResolveCodeLensSymbolsPromise.then(()=>{this._currentCodeLensModel&&this._codeLensCache.put(u,this._currentCodeLensModel),this._oldCodeLensModels.clear(),n===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)},r=>{Object(Oe.e)(r),n===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)})}getLenses(){return this._lenses}};Br.ID="css.editor.codeLens",Br=gr([wo(1,Ee.b),wo(2,Re.a),wo(3,ko)],Br),Object($.m)(Br.ID,Br),Object($.k)(class extends $.b{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:z.a.hasCodeLensProvider,label:Object(G.a)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(u,e){return ls(this,void 0,void 0,function*(){if(!e.hasModel())return;let t=u.get(Ho.a),n=u.get(Ee.b),r=u.get(Re.a),d=e.getSelection().positionLineNumber,m=e.getContribution(Br.ID),O=[];for(let oe of m.getLenses())if(oe.getLineNumber()===d)for(let ce of oe.getItems()){let{command:Me}=ce.symbol;Me&&O.push({label:Me.title,command:Me})}if(O.length===0)return;let re=yield t.pick(O,{canPickMany:!1});if(re)try{yield n.executeCommand(re.command.id,...re.command.arguments||[])}catch(oe){r.error(oe)}})}});var Kn=o(16);function cr(u,e,t,n){return Promise.resolve(t.provideColorPresentations(u,e,n))}Object($.o)("_executeDocumentColorProvider",function(u,e){let{resource:t}=e;if(!(t instanceof Dn.a))throw Object(Oe.b)();let n=u.get(ne.a).getModel(t);if(!n)throw Object(Oe.b)();let r=[],d=I.c.ordered(n).reverse().map(m=>Promise.resolve(m.provideDocumentColors(n,On.a.None)).then(O=>{if(Array.isArray(O))for(let re of O)r.push({range:re.range,color:[re.color.red,re.color.green,re.color.blue,re.color.alpha]})}));return Promise.all(d).then(()=>r)}),Object($.o)("_executeColorPresentationProvider",function(u,e){let{resource:t,color:n,range:r}=e;if(!(t instanceof Dn.a&&Array.isArray(n)&&n.length===4&>.a.isIRange(r)))throw Object(Oe.b)();let[d,m,O,re]=n,oe=u.get(ne.a).getModel(t);if(!oe)throw Object(Oe.b)();let ce={range:r,color:{red:d,green:m,blue:O,alpha:re}},Me=[],Ct=I.c.ordered(oe).reverse().map(Ut=>Promise.resolve(Ut.provideColorPresentations(oe,ce,On.a.None)).then(St=>{Array.isArray(St)&&Me.push(...St)}));return Promise.all(Ct).then(()=>Me)});var Eo=o(54),Lr=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},jr=function(u,e){return function(t,n){e(t,n,u)}};let Ko=class om extends Lt.a{constructor(e,t,n){super(),this._editor=e,this._codeEditorService=t,this._configurationService=n,this._localToDispose=this._register(new Lt.b),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel(r=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(r=>this.onModelChanged())),this._register(I.c.onDidChange(r=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(r=>{let d=this._isEnabled;this._isEnabled=this.isEnabled(),d!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){let r=n.colorDecorators;if(r&&r.enable!==void 0&&!r.enable)return r.enable}return this._editor.getOption(12)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;let e=this._editor.getModel();e&&I.c.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(t=>{this._timeoutTimer||(this._timeoutTimer=new Bi.e,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},om.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(Bi.f)(e=>{let t=this._editor.getModel();return t?function(n,r){let d=[],m=I.c.ordered(n).reverse().map(O=>Promise.resolve(O.provideDocumentColors(n,r)).then(re=>{if(Array.isArray(re))for(let oe of re)d.push({colorInfo:oe,provider:O})}));return Promise.all(m).then(()=>d)}(t,e):Promise.resolve([])}),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe.e)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(n=>({range:{startLineNumber:n.colorInfo.range.startLineNumber,startColumn:n.colorInfo.range.startColumn,endLineNumber:n.colorInfo.range.endLineNumber,endColumn:n.colorInfo.range.endColumn},options:Rt.a.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,r)=>this._colorDatas.set(n,e[r]))}updateColorDecorators(e){let t=[],n={};for(let r=0;r<e.length&&t.length<500;r++){let{red:d,green:m,blue:O,alpha:re}=e[r].colorInfo.color,oe=new Kn.c(Math.round(255*d),Math.round(255*m),Math.round(255*O),re),ce=Object(No.b)(`rgba(${oe.r},${oe.g},${oe.b},${oe.a})`).toString(16),Me=`rgba(${oe.r}, ${oe.g}, ${oe.b}, ${oe.a})`,Ct="colorBox-"+ce;this._decorationsTypes.has(Ct)||n[Ct]||this._codeEditorService.registerDecorationType(Ct,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:Me},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),n[Ct]=!0,t.push({range:{startLineNumber:e[r].colorInfo.range.startLineNumber,startColumn:e[r].colorInfo.range.startColumn,endLineNumber:e[r].colorInfo.range.endLineNumber,endColumn:e[r].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(Ct,!0)})}this._decorationsTypes.forEach(r=>{n[r]||this._codeEditorService.removeDecorationType(r)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(e=>{this._codeEditorService.removeDecorationType(e)})}getColorData(e){let t=this._editor.getModel();if(!t)return null;let n=t.getDecorationsInRange(gt.a.fromPositions(e,e)).filter(r=>this._colorDatas.has(r.id));return n.length===0?null:this._colorDatas.get(n[0].id)}};Ko.ID="editor.contrib.colorDetector",Ko.RECOMPUTE_TIME=1e3,Ko=Lr([jr(1,Si.a),jr(2,Eo.a)],Ko),Object($.m)(Ko.ID,Ko);var Cn=o(70),Oo=o(39);class Do{constructor(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;let r=t.length;if(n+r>e.length)return!1;for(let d=0;d<r;d++){let m=e.charCodeAt(n+d),O=t.charCodeAt(d);if(m!==O&&!(m>=65&&m<=90&&m+32===O||O>=65&&O<=90&&O+32===m))return!1}return!0}_createOperationsForBlockComment(e,t,n,r,d,m){let O=e.startLineNumber,re=e.startColumn,oe=e.endLineNumber,ce=e.endColumn,Me=d.getLineContent(O),Ct=d.getLineContent(oe),Ut,St=Me.lastIndexOf(t,re-1+t.length),di=Ct.indexOf(n,ce-1-n.length);if(St!==-1&&di!==-1)if(O===oe)Me.substring(St+t.length,di).indexOf(n)>=0&&(St=-1,di=-1);else{let hi=Me.substring(St+t.length),ji=Ct.substring(0,di);(hi.indexOf(n)>=0||ji.indexOf(n)>=0)&&(St=-1,di=-1)}St!==-1&&di!==-1?(r&&St+t.length<Me.length&&Me.charCodeAt(St+t.length)===32&&(t+=" "),r&&di>0&&Ct.charCodeAt(di-1)===32&&(n=" "+n,di-=1),Ut=Do._createRemoveBlockCommentOperations(new gt.a(O,St+t.length+1,oe,di+1),t,n)):(Ut=Do._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=Ut.length===1?n:null);for(let hi of Ut)m.addTrackedEditOperation(hi.range,hi.text)}static _createRemoveBlockCommentOperations(e,t,n){let r=[];return gt.a.isEmpty(e)?r.push(Cn.a.delete(new gt.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(r.push(Cn.a.delete(new gt.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),r.push(Cn.a.delete(new gt.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),r}static _createAddBlockCommentOperations(e,t,n,r){let d=[];return gt.a.isEmpty(e)?d.push(Cn.a.replace(new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(d.push(Cn.a.insert(new Di.a(e.startLineNumber,e.startColumn),t+(r?" ":""))),d.push(Cn.a.insert(new Di.a(e.endLineNumber,e.endColumn),(r?" ":"")+n))),d}getEditOperations(e,t){let n=this._selection.startLineNumber,r=this._selection.startColumn;e.tokenizeIfCheap(n);let d=e.getLanguageIdAtPosition(n,r),m=Oo.a.getComments(d);m&&m.blockCommentStartToken&&m.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,m.blockCommentStartToken,m.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let n=t.getInverseEditOperations();if(n.length===2){let r=n[0],d=n[1];return new J.a(r.range.endLineNumber,r.range.endColumn,d.range.startLineNumber,d.range.startColumn)}{let r=n[0].range,d=this._usedEndToken?-this._usedEndToken.length-1:0;return new J.a(r.endLineNumber,r.endColumn+d,r.endLineNumber,r.endColumn+d)}}}class fr{constructor(e,t,n,r,d){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=r,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=d}static _gatherPreflightCommentStrings(e,t,n){e.tokenizeIfCheap(t);let r=e.getLanguageIdAtPosition(t,1),d=Oo.a.getComments(r),m=d?d.lineCommentToken:null;if(!m)return null;let O=[];for(let re=0,oe=n-t+1;re<oe;re++)O[re]={ignore:!1,commentStr:m,commentStrOffset:0,commentStrLength:m.length};return O}static _analyzeLines(e,t,n,r,d,m){let O,re=!0;O=e===0||e!==1;for(let oe=0,ce=r.length;oe<ce;oe++){let Me=r[oe],Ct=d+oe,Ut=n.getLineContent(Ct),St=on.w(Ut);if(St!==-1){if(re=!1,Me.ignore=!1,Me.commentStrOffset=St,O&&!Do._haystackHasNeedleAtOffset(Ut,Me.commentStr,St)&&(e===0?O=!1:e===1||(Me.ignore=!0)),O&&t){let di=St+Me.commentStrLength;di<Ut.length&&Ut.charCodeAt(di)===32&&(Me.commentStrLength+=1)}}else Me.ignore=m,Me.commentStrOffset=Ut.length}if(e===0&&re){O=!1;for(let oe=0,ce=r.length;oe<ce;oe++)r[oe].ignore=!1}return{supported:!0,shouldRemoveComments:O,lines:r}}static _gatherPreflightData(e,t,n,r,d,m){let O=fr._gatherPreflightCommentStrings(n,r,d);return O===null?{supported:!1}:fr._analyzeLines(e,t,n,O,r,m)}_executeLineComments(e,t,n,r){let d;n.shouldRemoveComments?d=fr._createRemoveLineCommentsOperations(n.lines,r.startLineNumber):(fr._normalizeInsertionPoint(e,n.lines,r.startLineNumber,this._tabSize),d=this._createAddLineCommentsOperations(n.lines,r.startLineNumber));let m=new Di.a(r.positionLineNumber,r.positionColumn);for(let O=0,re=d.length;O<re;O++)t.addEditOperation(d[O].range,d[O].text),gt.a.isEmpty(d[O].range)&>.a.getStartPosition(d[O].range).equals(m)&&e.getLineContent(m.lineNumber).length+1===m.column&&(this._deltaColumn=(d[O].text||"").length);this._selectionId=t.trackSelection(r)}_attemptRemoveBlockComment(e,t,n,r){let d=t.startLineNumber,m=t.endLineNumber,O=r.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),re=e.getLineContent(d).lastIndexOf(n,O-1),oe=e.getLineContent(m).indexOf(r,t.endColumn-1-n.length);return re!==-1&&oe===-1&&(oe=e.getLineContent(d).indexOf(r,re+n.length),m=d),re===-1&&oe!==-1&&(re=e.getLineContent(m).lastIndexOf(n,oe),d=m),!t.isEmpty()||re!==-1&&oe!==-1||(re=e.getLineContent(d).indexOf(n),re!==-1&&(oe=e.getLineContent(d).indexOf(r,re+n.length))),re!==-1&&e.getLineContent(d).charCodeAt(re+n.length)===32&&(n+=" "),oe!==-1&&e.getLineContent(m).charCodeAt(oe-1)===32&&(r=" "+r,oe-=1),re!==-1&&oe!==-1?Do._createRemoveBlockCommentOperations(new gt.a(d,re+n.length+1,m,oe+1),n,r):null}_executeBlockComment(e,t,n){e.tokenizeIfCheap(n.startLineNumber);let r=e.getLanguageIdAtPosition(n.startLineNumber,1),d=Oo.a.getComments(r);if(!d||!d.blockCommentStartToken||!d.blockCommentEndToken)return;let m=d.blockCommentStartToken,O=d.blockCommentEndToken,re=this._attemptRemoveBlockComment(e,n,m,O);if(!re){if(n.isEmpty()){let oe=e.getLineContent(n.startLineNumber),ce=on.w(oe);ce===-1&&(ce=oe.length),re=Do._createAddBlockCommentOperations(new gt.a(n.startLineNumber,ce+1,n.startLineNumber,oe.length+1),m,O,this._insertSpace)}else re=Do._createAddBlockCommentOperations(new gt.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),m,O,this._insertSpace);re.length===1&&(this._deltaColumn=m.length+1)}this._selectionId=t.trackSelection(n);for(let oe of re)t.addEditOperation(oe.range,oe.text)}getEditOperations(e,t){let n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let r=fr._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber,this._ignoreEmptyLines);return r.supported?this._executeLineComments(e,t,r,n):this._executeBlockComment(e,t,n)}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new J.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){let n=[];for(let r=0,d=e.length;r<d;r++){let m=e[r];m.ignore||n.push(Cn.a.delete(new gt.a(t+r,m.commentStrOffset+1,t+r,m.commentStrOffset+m.commentStrLength+1)))}return n}_createAddLineCommentsOperations(e,t){let n=[],r=this._insertSpace?" ":"";for(let d=0,m=e.length;d<m;d++){let O=e[d];O.ignore||n.push(Cn.a.insert(new Di.a(t+d,O.commentStrOffset+1),O.commentStr+r))}return n}static nextVisibleColumn(e,t,n,r){return n?e+(t-e%t):e+r}static _normalizeInsertionPoint(e,t,n,r){let d,m,O=1073741824;for(let re=0,oe=t.length;re<oe;re++){if(t[re].ignore)continue;let ce=e.getLineContent(n+re),Me=0;for(let Ct=0,Ut=t[re].commentStrOffset;Me<O&&Ct<Ut;Ct++)Me=fr.nextVisibleColumn(Me,r,ce.charCodeAt(Ct)===9,1);Me<O&&(O=Me)}O=Math.floor(O/r)*r;for(let re=0,oe=t.length;re<oe;re++){if(t[re].ignore)continue;let ce=e.getLineContent(n+re),Me=0;for(d=0,m=t[re].commentStrOffset;Me<O&&d<m;d++)Me=fr.nextVisibleColumn(Me,r,ce.charCodeAt(d)===9,1);t[re].commentStrOffset=Me>O?d-1:d}}}class zn extends $.b{constructor(e,t){super(t),this._type=e}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],d=t.getSelections(),m=n.getOptions(),O=t.getOption(14);for(let re of d)r.push(new fr(re,m.tabSize,this._type,O.insertSpace,O.ignoreEmptyLines));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class eo extends $.b{constructor(){super({id:"editor.action.blockComment",label:G.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"5_insert",title:G.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){if(!t.hasModel())return;let n=t.getOption(14),r=[],d=t.getSelections();for(let m of d)r.push(new Do(m,n.insertSpace));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}Object($.k)(class extends zn{constructor(){super(0,{id:"editor.action.commentLine",label:G.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"5_insert",title:G.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),Object($.k)(class extends zn{constructor(){super(1,{id:"editor.action.addCommentLine",label:G.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2081),weight:100}})}}),Object($.k)(class extends zn{constructor(){super(2,{id:"editor.action.removeCommentLine",label:G.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2099),weight:100}})}}),Object($.k)(eo);var br=o(123),va=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},es=function(u,e){return function(t,n){e(t,n,u)}};let Vr=class rm{constructor(e,t,n,r,d,m){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=r,this._keybindingService=d,this._menuService=m,this._toDispose=new Lt.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(O=>this._onContextMenu(O))),this._toDispose.add(this._editor.onMouseWheel(O=>{if(this._contextMenuIsBeingShownCount>0){let re=this._contextViewService.getContextViewElement(),oe=O.srcElement;oe.shadowRoot&&ae.E(re)===oe.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(O=>{O.keyCode===58&&(O.preventDefault(),O.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(rm.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(15))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(e.target.type===12||(e.event.preventDefault(),e.target.type!==6&&e.target.type!==7&&e.target.type!==1))return;if(this._editor.focus(),e.target.position){let n=!1;for(let r of this._editor.getSelections())if(r.containsPosition(e.target.position)){n=!0;break}n||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(15)||!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();let t=this._getMenuActions(this._editor.getModel(),ze.b.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let n=[],r=this._menuService.createMenu(t,this._contextKeyService),d=r.getActions({arg:e.uri});r.dispose();for(let m of d){let[,O]=m,re=0;for(let oe of O)if(oe instanceof ze.e){let ce=this._getMenuActions(e,oe.item.submenu);ce.length>0&&(n.push(new Ge.d(oe.id,oe.label,ce)),re++)}else n.push(oe),re++;re&&n.push(new Ge.c)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let n=this._editor.getOption(46);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),d=ae.C(this._editor.getDomNode()),m=d.left+r.left,O=d.top+r.top+r.height;t={x:m,y:O}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>t,getActions:()=>e,getActionViewItem:r=>{let d=this._keybindingFor(r);if(d)return new br.a(r,r,{label:!0,keybinding:d.getLabel(),isMenu:!0});let m=r;return typeof m.getActionViewItem=="function"?m.getActionViewItem():new br.a(r,r,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:r=>this._keybindingFor(r),onHide:r=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:n})}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Vr.ID="editor.contrib.contextmenu",Vr=va([es(1,lt.a),es(2,lt.b),es(3,A.b),es(4,Dt.a),es(5,ze.a)],Vr);class Nr extends $.b{constructor(){super({id:"editor.action.showContextMenu",label:G.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1092,weight:100}})}run(e,t){Vr.get(t).showContextMenu()}}Object($.m)(Vr.ID,Vr),Object($.k)(Nr);class ts{constructor(e){this.selections=e}equals(e){let t=this.selections.length;if(t!==e.selections.length)return!1;for(let n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0}}class na{constructor(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n}}class is extends Lt.a{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;let n=new ts(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n)||(this._undoStack.push(new na(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(is.ID)}cursorUndo(){this._editor.hasModel()&&this._undoStack.length!==0&&(this._redoStack.push(new na(new ts(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&this._redoStack.length!==0&&(this._undoStack.push(new na(new ts(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}is.ID="editor.contrib.cursorUndoRedoController";class Ur extends $.b{constructor(){super({id:"cursorUndo",label:G.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2099,weight:100}})}run(e,t,n){is.get(t).cursorUndo()}}class cs extends $.b{constructor(){super({id:"cursorRedo",label:G.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){is.get(t).cursorRedo()}}Object($.m)(is.ID,is),Object($.k)(Ur),Object($.k)(cs),o(291);class dr{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){let n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new gt.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new J.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new J.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function nr(u){return Et.f?u.altKey:u.ctrlKey}class _r extends Lt.a{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(nr(e)&&(this._modifierPressed=!0),this._mouseDown&&nr(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(nr(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_r.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(this._dragSelection===null){let n=(this._editor.getSelections()||[]).filter(r=>t.position&&r.containsPosition(t.position));if(n.length!==1)return;this._dragSelection=n[0]}nr(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new Di.a(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let n=null;if(e.event.shiftKey){let r=this._editor.getSelection();if(r){let{selectionStartLineNumber:d,selectionStartColumn:m}=r;n=[new J.a(d,m,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(r=>r.containsPosition(t)?new J.a(t.lineNumber,t.column,t.lineNumber,t.column):r);this._editor.setSelections(n||[],"mouse")}else(!this._dragSelection.containsPosition(t)||(nr(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_r.ID,new dr(this._dragSelection,t,nr(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){let t=[{range:new gt.a(e.lineNumber,e.column,e.lineNumber,e.column),options:_r._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_r.ID="editor.contrib.dragAndDrop",_r.TRIGGER_KEY_VALUE=Et.f?6:5,_r._DECORATION_OPTIONS=Rt.a.register({className:"dnd-target"}),Object($.m)(_r.ID,_r);var wa=o(106);class zo{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(let n of t){let r=n.options;if(r===zo._FIND_MATCH_DECORATION||r===zo._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(n.id)}return 0}setCurrentFindMatch(e){let t=null,n=0;if(e)for(let r=0,d=this._decorations.length;r<d;r++){let m=this._editor.getModel().getDecorationRange(this._decorations[r]);if(e.equalsRange(m)){t=this._decorations[r],n=r+1;break}}return this._highlightedDecorationId===null&&t===null||this._editor.changeDecorations(r=>{if(this._highlightedDecorationId!==null&&(r.changeDecorationOptions(this._highlightedDecorationId,zo._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,r.changeDecorationOptions(this._highlightedDecorationId,zo._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(r.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let d=this._editor.getModel().getDecorationRange(t);if(d.startLineNumber!==d.endLineNumber&&d.endColumn===1){let m=d.endLineNumber-1,O=this._editor.getModel().getLineMaxColumn(m);d=new gt.a(d.startLineNumber,d.startColumn,m,O)}this._rangeHighlightDecorationId=r.addDecoration(d,zo._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let r=zo._FIND_MATCH_DECORATION,d=[];if(e.length>1e3){r=zo._FIND_MATCH_NO_OVERVIEW_DECORATION;let O=this._editor.getModel().getLineCount(),re=this._editor.getLayoutInfo().height/O,oe=Math.max(2,Math.ceil(3/re)),ce=e[0].range.startLineNumber,Me=e[0].range.endLineNumber;for(let Ct=1,Ut=e.length;Ct<Ut;Ct++){let St=e[Ct].range;Me+oe>=St.startLineNumber?St.endLineNumber>Me&&(Me=St.endLineNumber):(d.push({range:new gt.a(ce,1,Me,1),options:zo._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),ce=St.startLineNumber,Me=St.endLineNumber)}d.push({range:new gt.a(ce,1,Me,1),options:zo._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let m=new Array(e.length);for(let O=0,re=e.length;O<re;O++)m[O]={range:e[O].range,options:r};this._decorations=n.deltaDecorations(this._decorations,m),this._overviewRulerApproximateDecorations=n.deltaDecorations(this._overviewRulerApproximateDecorations,d),this._rangeHighlightDecorationId&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(O=>n.removeDecoration(O)),this._findScopeDecorationIds=[]),(t==null?void 0:t.length)&&(this._findScopeDecorationIds=t.map(O=>n.addDecoration(O,zo._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(r&&!(r.endLineNumber>e.lineNumber)&&(r.endLineNumber<e.lineNumber||!(r.endColumn>e.column)))return r}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,n=this._decorations.length;t<n;t++){let r=this._decorations[t],d=this._editor.getModel().getDecorationRange(r);if(d&&!(d.startLineNumber<e.lineNumber)&&(d.startLineNumber>e.lineNumber||!(d.startColumn<e.column)))return d}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}zo._CURRENT_FIND_MATCH_DECORATION=Rt.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center},minimap:{color:Object(ut.h)(Ue.Ob),position:vi.c.Inline}}),zo._FIND_MATCH_DECORATION=Rt.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center},minimap:{color:Object(ut.h)(Ue.Ob),position:vi.c.Inline}}),zo._FIND_MATCH_NO_OVERVIEW_DECORATION=Rt.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),zo._FIND_MATCH_ONLY_OVERVIEW_DECORATION=Rt.a.register({stickiness:1,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center}}),zo._RANGE_HIGHLIGHT_DECORATION=Rt.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),zo._FIND_SCOPE_DECORATION=Rt.a.register({className:"findScope",isWholeLine:!0});class Cs{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let n=[];for(let m=0;m<this._ranges.length;m++)n.push({range:this._ranges[m],text:this._replaceStrings[m]});n.sort((m,O)=>gt.a.compareRangesUsingStarts(m.range,O.range));let r=[],d=n[0];for(let m=1;m<n.length;m++)d.range.endLineNumber===n[m].range.startLineNumber&&d.range.endColumn===n[m].range.startColumn?(d.range=d.range.plusRange(n[m].range),d.text=d.text+n[m].text):(r.push(d),d=n[m]);r.push(d);for(let m of r)t.addEditOperation(m.range,m.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function Hr(u,e){if(u&&u[0]!==""){let t=ya(u,e,"-"),n=ya(u,e,"_");return t&&!n?vr(u,e,"-"):!t&&n?vr(u,e,"_"):u[0].toUpperCase()===u[0]?e.toUpperCase():u[0].toLowerCase()===u[0]?e.toLowerCase():on.o(u[0][0])&&e.length>0?e[0].toUpperCase()+e.substr(1):e}return e}function ya(u,e,t){return u[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&u[0].split(t).length===e.split(t).length}function vr(u,e,t){let n=e.split(t),r=u[0].split(t),d="";return n.forEach((m,O)=>{d+=Hr([r[O]],m)+t}),d.slice(0,-1)}class ds{constructor(e){this.staticValue=e,this.kind=0}}class oa{constructor(e){this.pieces=e,this.kind=1}}class wr{constructor(e){e&&e.length!==0?e.length===1&&e[0].staticValue!==null?this._state=new ds(e[0].staticValue):this._state=new oa(e):this._state=new ds("")}static fromStaticValue(e){return new wr([ns.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Hr(e,this._state.staticValue):this._state.staticValue;let n="";for(let r=0,d=this._state.pieces.length;r<d;r++){let m=this._state.pieces[r];if(m.staticValue!==null){n+=m.staticValue;continue}let O=wr._substitute(m.matchIndex,e);if(m.caseOps!==null&&m.caseOps.length>0){let re=[],oe=m.caseOps.length,ce=0;for(let Me=0,Ct=O.length;Me<Ct;Me++){if(ce>=oe){re.push(O.slice(Me));break}switch(m.caseOps[ce]){case"U":re.push(O[Me].toUpperCase());break;case"u":re.push(O[Me].toUpperCase()),ce++;break;case"L":re.push(O[Me].toLowerCase());break;case"l":re.push(O[Me].toLowerCase()),ce++;break;default:re.push(O[Me])}}O=re.join("")}n+=O}return n}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let n="";for(;e>0;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n}}class ns{constructor(e,t,n){this.staticValue=e,this.matchIndex=t,n&&n.length!==0?this.caseOps=n.slice(0):this.caseOps=null}static staticValue(e){return new ns(e,-1,null)}static caseOps(e,t){return new ns(null,e,t)}}class Ui{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){e.length!==0&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=ns.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=ns.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=ns.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new wr(this._result)}}let or=new A.c("findWidgetVisible",!1),xs=new A.c("findInputFocussed",!1),yr=new A.c("replaceInputFocussed",!1),qr={primary:545,mac:{primary:2593}},Ss={primary:565,mac:{primary:2613}},hs={primary:560,mac:{primary:2608}},us={primary:554,mac:{primary:2602}},Ca="actions.find",xa="actions.findWithSelection",ks="editor.action.nextMatchFindAction",Ir="editor.action.previousMatchFindAction",$r="editor.action.nextSelectionMatchFindAction",Vs="editor.action.previousSelectionMatchFindAction",Es="editor.action.startFindReplaceAction",ps="closeFindWidget",Us="toggleFindCaseSensitive",Kr="toggleFindWholeWord",os="toggleFindRegex",Hs="toggleFindInSelection",ms="editor.action.replaceOne",gs="editor.action.replaceAll",Or="editor.action.selectAllMatches";class Go{constructor(e,t){this._toDispose=new Lt.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new Bi.e,this._decorations=new zo(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new Bi.d(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(n=>{n.reason!==3&&n.reason!==5&&n.reason!==6||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(n=>{this._ignoreModelContentChanged||(n.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(n=>this._onStateChanged(n))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(Lt.f)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let n=null;t!==void 0?t!==null&&(n=Array.isArray(t)?t:[t]):n=this._decorations.getFindScopes(),n!==null&&(n=n.map(O=>{if(O.startLineNumber!==O.endLineNumber){let re=O.endLineNumber;return O.endColumn===1&&(re-=1),new gt.a(O.startLineNumber,1,re,this._editor.getModel().getLineMaxColumn(re))}return O}));let r=this._findMatches(n,!1,19999);this._decorations.set(r,n);let d=this._editor.getSelection(),m=this._decorations.getCurrentMatchesPosition(d);if(m===0&&r.length>0){let O=Object(ee.h)(r.map(re=>re.range),re=>gt.a.compareRangesUsingStarts(re,d)>=0);m=O>0?O-1+1:m}this._state.changeMatchInfo(m,this._decorations.getCount(),void 0),e&&this._editor.getOption(29).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:r}=e,d=this._editor.getModel();return t||r===1?(n===1?n=d.getLineCount():n--,r=d.getLineMaxColumn(n)):r--,new Di.a(n,r)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let ce=this._decorations.matchAfterPosition(e);return void(ce&&this._setCurrentFindMatch(ce))}if(this._decorations.getCount()<19999){let ce=this._decorations.matchBeforePosition(e);return ce&&ce.isEmpty()&&ce.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),ce=this._decorations.matchBeforePosition(e)),void(ce&&this._setCurrentFindMatch(ce))}if(this._cannotFind())return;let n=this._decorations.getFindScope(),r=Go._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getEndPosition()),e.isBefore(r.getStartPosition())&&(e=r.getEndPosition());let{lineNumber:d,column:m}=e,O=this._editor.getModel(),re=new Di.a(d,m),oe=O.findPreviousMatch(this._state.searchString,re,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1);return oe&&oe.range.isEmpty()&&oe.range.getStartPosition().equals(re)&&(re=this._prevSearchPosition(re),oe=O.findPreviousMatch(this._state.searchString,re,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1)),oe?t||r.containsRange(oe.range)?void this._setCurrentFindMatch(oe.range):this._moveToPrevMatch(oe.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:r}=e,d=this._editor.getModel();return t||r===d.getLineMaxColumn(n)?(n===d.getLineCount()?n=1:n++,r=1):r++,new Di.a(n,r)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let n=this._decorations.matchBeforePosition(e);return void(n&&this._setCurrentFindMatch(n))}if(this._decorations.getCount()<19999){let n=this._decorations.matchAfterPosition(e);return n&&n.isEmpty()&&n.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),n=this._decorations.matchAfterPosition(e)),void(n&&this._setCurrentFindMatch(n))}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,n,r=!1){if(this._cannotFind())return null;let d=this._decorations.getFindScope(),m=Go._getSearchRange(this._editor.getModel(),d);m.getEndPosition().isBefore(e)&&(e=m.getStartPosition()),e.isBefore(m.getStartPosition())&&(e=m.getStartPosition());let{lineNumber:O,column:re}=e,oe=this._editor.getModel(),ce=new Di.a(O,re),Me=oe.findNextMatch(this._state.searchString,ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t);return n&&Me&&Me.range.isEmpty()&&Me.range.getStartPosition().equals(ce)&&(ce=this._nextSearchPosition(ce),Me=oe.findNextMatch(this._state.searchString,ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t)),Me?r||m.containsRange(Me.range)?Me:this._getNextMatch(Me.range.getEndPosition(),t,n,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||e.length===0)return new wr(null);let t=[],n=new Ui(e);for(let r=0,d=e.length;r<d;r++){let m=e.charCodeAt(r);if(m!==92){if(m===36){if(r++,r>=d)break;let O=e.charCodeAt(r);if(O===36){n.emitUnchanged(r-1),n.emitStatic("$",r+1);continue}if(O===48||O===38){n.emitUnchanged(r-1),n.emitMatchIndex(0,r+1,t),t.length=0;continue}if(49<=O&&O<=57){let re=O-48;if(r+1<d){let oe=e.charCodeAt(r+1);if(48<=oe&&oe<=57){r++,re=10*re+(oe-48),n.emitUnchanged(r-2),n.emitMatchIndex(re,r+1,t),t.length=0;continue}}n.emitUnchanged(r-1),n.emitMatchIndex(re,r+1,t),t.length=0;continue}}}else{if(r++,r>=d)break;let O=e.charCodeAt(r);switch(O){case 92:n.emitUnchanged(r-1),n.emitStatic("\\",r+1);break;case 110:n.emitUnchanged(r-1),n.emitStatic(` -`,r+1);break;case 116:n.emitUnchanged(r-1),n.emitStatic(" ",r+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(r-1),n.emitStatic("",r+1),t.push(String.fromCharCode(O))}}}return n.finalize()}(this._state.replaceString):wr.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){let r=e.buildReplaceString(n.matches,this._state.preserveCase),d=new $i.a(t,r);this._executeEditorCommand("replace",d),this._decorations.setStartPosition(new Di.a(t.startLineNumber,t.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}_findMatches(e,t,n){let r=(e||[null]).map(d=>Go._getSearchRange(this._editor.getModel(),d));return this._editor.getModel().findMatches(this._state.searchString,r,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t,n)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let e=new wa.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let ce="mu";t.ignoreCase&&(ce+="i"),t.global&&(ce+="g"),t=new RegExp(t.source,ce)}let n=this._editor.getModel(),r=n.getValue(1),d=n.getFullModelRange(),m=this._getReplacePattern(),O,re=this._state.preserveCase;O=m.hasReplacementPatterns||re?r.replace(t,function(){return m.buildReplaceString(arguments,re)}):r.replace(t,m.buildReplaceString(null,re));let oe=new $i.b(d,O,this._editor.getSelection());this._executeEditorCommand("replaceAll",oe)}_regularReplaceAll(e){let t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[];for(let m=0,O=n.length;m<O;m++)r[m]=t.buildReplaceString(n[m].matches,this._state.preserveCase);let d=new Cs(this._editor.getSelection(),n.map(m=>m.range),r);this._executeEditorCommand("replaceAll",d)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(r=>new J.a(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn)),n=this._editor.getSelection();for(let r=0,d=t.length;r<d;r++)if(t[r].equalsRange(n)){t=[n].concat(t.slice(0,r)).concat(t.slice(r+1));break}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}o(293);var rr=o(82);let Sa={inputActiveOptionBorder:Kn.a.fromHex("#007ACC00"),inputActiveOptionForeground:Kn.a.fromHex("#FFFFFF"),inputActiveOptionBackground:Kn.a.fromHex("#0E639C50")};class qs extends rr.a{constructor(e){super(),this._onChange=this._register(new rt.a),this.onChange=this._onChange.event,this._onKeyDown=this._register(new rt.a),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},Sa),e),this._checked=this._opts.isChecked;let t=["monaco-custom-checkbox"];this._opts.icon?t.push(this._opts.icon.classNames):t.push("codicon"),this._opts.actionClassName&&t.push(this._opts.actionClassName),t.push(this._checked?"checked":"unchecked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.className=t.join(" "),this.domNode.tabIndex=0,this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,n=>{this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3)return this.checked=!this._checked,this._onChange.fire(!0),void n.preventDefault();this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))}disable(){ae.T(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))}}let Dr=G.a("caseDescription","Match Case"),Ar=G.a("wordsDescription","Match Whole Word"),$s=G.a("regexDescription","Use Regular Expression");class ka extends qs{constructor(e){super({icon:de.a.caseSensitive,title:Dr+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class hr extends qs{constructor(e){super({icon:de.a.wholeWord,title:Ar+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Ks extends qs{constructor(e){super({icon:de.a.regex,title:$s+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Ts extends rr.a{constructor(e,t,n,r){super(),this._hideSoon=this._register(new Bi.d(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=n,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let d=r.getColorTheme().getColor(Ue.db),m=r.getColorTheme().getColor(Ue.eb),O=r.getColorTheme().getColor(Ue.cb);this.caseSensitive=this._register(new ka({appendTitle:this._keybindingLabelFor(Us),isChecked:this._state.matchCase,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:O})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new hr({appendTitle:this._keybindingLabelFor(Kr),isChecked:this._state.wholeWord,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:O})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Ks({appendTitle:this._keybindingLabelFor(os),isChecked:this._state.isRegex,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:O})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(re=>{let oe=!1;re.isRegex&&(this.regex.checked=this._state.isRegex,oe=!0),re.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,oe=!0),re.matchCase&&(this.caseSensitive.checked=this._state.matchCase,oe=!0),!this._state.isRevealed&&oe&&this._revealTemporarily()})),this._register(ae.j(this._domNode,re=>this._onMouseOut())),this._register(ae.i(this._domNode,"mouseover",re=>this._onMouseOver())),this._applyTheme(r.getColorTheme()),this._register(r.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Ts.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(Ue.db),inputActiveOptionForeground:e.getColor(Ue.eb),inputActiveOptionBackground:e.getColor(Ue.cb)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}function Qo(u,e){return u===1||u!==2&&e}Ts.ID="editor.contrib.findOptionsWidget",Object(ut.g)((u,e)=>{let t=u.getColor(Ue.U);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);let n=u.getColor(Ue.W);n&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${n}; }`);let r=u.getColor(Ue.uc);r&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ${r}; }`);let d=u.getColor(Ue.h);d&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${d}; }`)});class sr extends Lt.a{constructor(){super(),this._onFindReplaceStateChange=this._register(new rt.a),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Qo(this._isRegexOverride,this._isRegex)}get wholeWord(){return Qo(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Qo(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Qo(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,n){let r={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},d=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,d=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,d=!0),n!==void 0&&(gt.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,r.currentMatch=!0,d=!0)),d&&this._onFindReplaceStateChange.fire(r)}change(e,t,n=!0){var r;let d={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},m=!1,O=this.isRegex,re=this.wholeWord,oe=this.matchCase,ce=this.preserveCase;e.searchString!==void 0&&this._searchString!==e.searchString&&(this._searchString=e.searchString,d.searchString=!0,m=!0),e.replaceString!==void 0&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,d.replaceString=!0,m=!0),e.isRevealed!==void 0&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,d.isRevealed=!0,m=!0),e.isReplaceRevealed!==void 0&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,d.isReplaceRevealed=!0,m=!0),e.isRegex!==void 0&&(this._isRegex=e.isRegex),e.wholeWord!==void 0&&(this._wholeWord=e.wholeWord),e.matchCase!==void 0&&(this._matchCase=e.matchCase),e.preserveCase!==void 0&&(this._preserveCase=e.preserveCase),e.searchScope!==void 0&&(((r=e.searchScope)===null||r===void 0?void 0:r.every(Me=>{var Ct;return(Ct=this._searchScope)===null||Ct===void 0?void 0:Ct.some(Ut=>!gt.a.equalsRange(Ut,Me))}))||(this._searchScope=e.searchScope,d.searchScope=!0,m=!0)),e.loop!==void 0&&this._loop!==e.loop&&(this._loop=e.loop,d.loop=!0,m=!0),this._isRegexOverride=e.isRegexOverride!==void 0?e.isRegexOverride:0,this._wholeWordOverride=e.wholeWordOverride!==void 0?e.wholeWordOverride:0,this._matchCaseOverride=e.matchCaseOverride!==void 0?e.matchCaseOverride:0,this._preserveCaseOverride=e.preserveCaseOverride!==void 0?e.preserveCaseOverride:0,O!==this.isRegex&&(m=!0,d.isRegex=!0),re!==this.wholeWord&&(m=!0,d.wholeWord=!0),oe!==this.matchCase&&(m=!0,d.matchCase=!0),ce!==this.preserveCase&&(m=!0,d.preserveCase=!0),m&&this._onFindReplaceStateChange.fire(d)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=19999}}o(295);var ra=o(153),Ls=(o(198),o(173));let qo=G.a("defaultLabel","input");class Ns extends rr.a{constructor(e,t,n,r){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this._onDidOptionChange=this._register(new rt.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new rt.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new rt.a),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new rt.a),this._onKeyUp=this._register(new rt.a),this._onCaseSensitiveKeyDown=this._register(new rt.a),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new rt.a),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=r.placeholder||"",this.validation=r.validation,this.label=r.label||qo,this.inputActiveOptionBorder=r.inputActiveOptionBorder,this.inputActiveOptionForeground=r.inputActiveOptionForeground,this.inputActiveOptionBackground=r.inputActiveOptionBackground,this.inputBackground=r.inputBackground,this.inputForeground=r.inputForeground,this.inputBorder=r.inputBorder,this.inputValidationInfoBorder=r.inputValidationInfoBorder,this.inputValidationInfoBackground=r.inputValidationInfoBackground,this.inputValidationInfoForeground=r.inputValidationInfoForeground,this.inputValidationWarningBorder=r.inputValidationWarningBorder,this.inputValidationWarningBackground=r.inputValidationWarningBackground,this.inputValidationWarningForeground=r.inputValidationWarningForeground,this.inputValidationErrorBorder=r.inputValidationErrorBorder,this.inputValidationErrorBackground=r.inputValidationErrorBackground,this.inputValidationErrorForeground=r.inputValidationErrorForeground;let d=r.appendCaseSensitiveLabel||"",m=r.appendWholeWordsLabel||"",O=r.appendRegexLabel||"",re=r.history||[],oe=!!r.flexibleHeight,ce=!!r.flexibleWidth,Me=r.flexibleMaxHeight;this.domNode=document.createElement("div"),ae.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Ls.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:re,flexibleHeight:oe,flexibleWidth:ce,flexibleMaxHeight:Me})),this.regex=this._register(new Ks({appendTitle:O,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(St=>{this._onRegexKeyDown.fire(St)})),this.wholeWords=this._register(new hr({appendTitle:m,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new ka({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(St=>{this._onCaseSensitiveKeyDown.fire(St)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let Ct=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,St=>{if(St.equals(15)||St.equals(17)||St.equals(9)){let di=Ct.indexOf(document.activeElement);if(di>=0){let hi=-1;St.equals(17)?hi=(di+1)%Ct.length:St.equals(15)&&(hi=di===0?Ct.length-1:di-1),St.equals(9)?Ct[di].blur():hi>=0&&Ct[hi].focus(),ae.b.stop(St,!0)}}});let Ut=document.createElement("div");Ut.className="controls",Ut.style.display=this._showOptionButtons?"block":"none",Ut.appendChild(this.caseSensitive.domNode),Ut.appendChild(this.wholeWords.domNode),Ut.appendChild(this.regex.domNode),this.domNode.appendChild(Ut),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,St=>this._onKeyDown.fire(St)),this.onkeyup(this.inputBox.inputElement,St=>this._onKeyUp.fire(St)),this.oninput(this.inputBox.inputElement,St=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,St=>this._onMouseDown.fire(St))}enable(){ae.Q(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){ae.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){ae.Q(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ae.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}var ar=o(92);let Zt=G.a("defaultLabel","input"),i=G.a("label.preserveCaseCheckbox","Preserve Case");class a extends qs{constructor(e){super({icon:de.a.preserveCase,title:i+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class _ extends rr.a{constructor(e,t,n,r){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new rt.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new rt.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new rt.a),this._onInput=this._register(new rt.a),this._onKeyUp=this._register(new rt.a),this._onPreserveCaseKeyDown=this._register(new rt.a),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=r.placeholder||"",this.validation=r.validation,this.label=r.label||Zt,this.inputActiveOptionBorder=r.inputActiveOptionBorder,this.inputActiveOptionForeground=r.inputActiveOptionForeground,this.inputActiveOptionBackground=r.inputActiveOptionBackground,this.inputBackground=r.inputBackground,this.inputForeground=r.inputForeground,this.inputBorder=r.inputBorder,this.inputValidationInfoBorder=r.inputValidationInfoBorder,this.inputValidationInfoBackground=r.inputValidationInfoBackground,this.inputValidationInfoForeground=r.inputValidationInfoForeground,this.inputValidationWarningBorder=r.inputValidationWarningBorder,this.inputValidationWarningBackground=r.inputValidationWarningBackground,this.inputValidationWarningForeground=r.inputValidationWarningForeground,this.inputValidationErrorBorder=r.inputValidationErrorBorder,this.inputValidationErrorBackground=r.inputValidationErrorBackground,this.inputValidationErrorForeground=r.inputValidationErrorForeground;let d=r.history||[],m=!!r.flexibleHeight,O=!!r.flexibleWidth,re=r.flexibleMaxHeight;this.domNode=document.createElement("div"),ae.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Ls.a(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:d,flexibleHeight:m,flexibleWidth:O,flexibleMaxHeight:re})),this.preserveCase=this._register(new a({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(Me=>{this._onDidOptionChange.fire(Me),!Me&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(Me=>{this._onPreserveCaseKeyDown.fire(Me)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let oe=[this.preserveCase.domNode];this.onkeydown(this.domNode,Me=>{if(Me.equals(15)||Me.equals(17)||Me.equals(9)){let Ct=oe.indexOf(document.activeElement);if(Ct>=0){let Ut=-1;Me.equals(17)?Ut=(Ct+1)%oe.length:Me.equals(15)&&(Ut=Ct===0?oe.length-1:Ct-1),Me.equals(9)?oe[Ct].blur():Ut>=0&&oe[Ut].focus(),ae.b.stop(Me,!0)}}});let ce=document.createElement("div");ce.className="controls",ce.style.display=this._showOptionButtons?"block":"none",ce.appendChild(this.preserveCase.domNode),this.domNode.appendChild(ce),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,Me=>this._onKeyDown.fire(Me)),this.onkeyup(this.inputBox.inputElement,Me=>this._onKeyUp.fire(Me)),this.oninput(this.inputBox.inputElement,Me=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,Me=>this._onMouseDown.fire(Me))}enable(){ae.Q(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){ae.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var R=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},K=function(u,e){return function(t,n){e(t,n,u)}};function we(u,e){return u.getContext(document.activeElement).getValue(e)}function Pe(u,e){let t=function(n,r){return n.createScoped(r.target)}(u,e);return function(n,r,d){new A.c(d,r).bindTo(n)}(t,e,"historyNavigationWidget"),{scopedContextKeyService:t,historyNavigationEnablement:new A.c("historyNavigationEnabled",!0).bindTo(t)}}let Ve=class extends Ns{constructor(u,e,t,n,r=!1){super(u,e,r,t),this._register(Pe(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Ve=R([K(3,A.b)],Ve);let Je=class extends _{constructor(u,e,t,n,r=!1){super(u,e,r,t),this._register(Pe(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Je=R([K(3,A.b)],Je),ar.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:A.a.and(A.a.has("historyNavigationWidget"),A.a.equals("historyNavigationEnabled",!0)),primary:16,secondary:[528],handler:(u,e)=>{let t=we(u.get(A.b),"historyNavigationWidget");t&&t.historyNavigator.showPreviousValue()}}),ar.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:A.a.and(A.a.has("historyNavigationWidget"),A.a.equals("historyNavigationEnabled",!0)),primary:18,secondary:[530],handler:(u,e)=>{let t=we(u.get(A.b),"historyNavigationWidget");t&&t.historyNavigator.showNextValue()}});var at=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let bt=Object(de.e)("find-selection",de.a.selection),Bt=Object(de.e)("find-collapsed",de.a.chevronRight),Pt=Object(de.e)("find-expanded",de.a.chevronDown),ni=Object(de.e)("find-close",de.a.close),Ci=Object(de.e)("find-replace",de.a.replace),Vi=Object(de.e)("find-replace-all",de.a.replaceAll),Mi=Object(de.e)("find-previous-match",de.a.arrowUp),zi=Object(de.e)("find-next-match",de.a.arrowDown),Yi=G.a("label.find","Find"),Gi=G.a("placeholder.find","Find"),wn=G.a("label.previousMatchButton","Previous match"),nn=G.a("label.nextMatchButton","Next match"),Wn=G.a("label.toggleSelectionFind","Find in selection"),An=G.a("label.closeButton","Close"),qn=G.a("label.replace","Replace"),ro=G.a("placeholder.replace","Replace"),Un=G.a("label.replaceButton","Replace"),Lo=G.a("label.replaceAllButton","Replace All"),Ao=G.a("label.toggleReplaceButton","Toggle Replace mode"),Bo=G.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),jo=G.a("label.matchesLocation","{0} of {1}"),$o=G.a("label.noResults","No results"),Po=69,Rr=Et.f?256:2048;class Fo{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Gr(u,e,t){let n=!!e.match(/\n/);t&&n&&t.selectionStart>0&&u.stopPropagation()}function Is(u,e,t){let n=!!e.match(/\n/);t&&n&&t.selectionEnd<t.value.length&&u.stopPropagation()}class Gs extends rr.a{constructor(e,t,n,r,d,m,O,re,oe,ce){super(),this._cachedHeight=null,this._codeEditor=e,this._controller=t,this._state=n,this._contextViewProvider=r,this._keybindingService=d,this._contextKeyService=m,this._storageService=re,this._notificationService=oe,ce.registerStorageKey({key:"ctrlEnterReplaceAll.windows.donotask",version:1}),this._ctrlEnterReplaceAllWarningPrompted=!!re.getBoolean("ctrlEnterReplaceAll.windows.donotask",0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new Bi.a(500),this._register(Object(Lt.h)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(Me=>this._onStateChanged(Me))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(Me=>{if(Me.hasChanged(72)&&(this._codeEditor.getOption(72)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),Me.hasChanged(117)&&this._tryUpdateWidgetWidth(),Me.hasChanged(2)&&this.updateAccessibilitySupport(),Me.hasChanged(29)){let Ct=this._codeEditor.getOption(29).addExtraSpaceOnTop;Ct&&!this._viewZone&&(this._viewZone=new Fo(0),this._showViewZone()),!Ct&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>at(this,void 0,void 0,function*(){if(this._isVisible){let Me=yield this._controller.getGlobalBufferTerm();Me&&Me!==this._state.searchString&&(this._state.change({searchString:Me},!0),this._findInput.select())}}))),this._findInputFocused=xs.bindTo(m),this._findFocusTracker=this._register(ae.bb(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=yr.bindTo(m),this._replaceFocusTracker=this._register(ae.bb(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(29).addExtraSpaceOnTop&&(this._viewZone=new Fo(0)),this._applyTheme(O.getColorTheme()),this._register(O.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(Me=>{Me.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return Gs.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(72)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ae.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;ae.ab(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Po+"px",this._state.matchesCount>=19999?this._matchesCount.title=Bo:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");let n=String(this._state.matchesPosition);n==="0"&&(n="?"),e=on.x(jo,n,t)}else e=$o;this._matchesCount.appendChild(document.createTextNode(e)),Object(_i.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Po=Math.max(Po,this._matchesCount.clientWidth)}_getAriaLabel(e,t,n){if(e===$o)return n===""?G.a("ariaSearchNoResultEmpty","{0} found",e):G.a("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){let r=G.a("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),d=this._codeEditor.getModel();return d&&t.startLineNumber<=d.getLineCount()&&t.startLineNumber>=1?`${d.getLineContent(t.startLineNumber)}, ${r}`:r}return G.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),ae.ab(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let n=!this._codeEditor.getOption(72);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}_reveal(){if(!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(29).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":let n=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=n}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(()=>{ae.e(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","false")},0),setTimeout(()=>{this._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(29).seedSearchStringFromSelection&&e){let n=this._codeEditor.getDomNode();if(n){let r=ae.C(n),d=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),m=r.left+(d?d.left:0),O=d?d.top:0;if(this._viewZone&&O<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);let re=ae.F(this._domNode).left;m>re&&(t=!1);let oe=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());r.left+(oe?oe.left:0)>re&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ae.Q(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(){if(!this._codeEditor.getOption(29).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;let e=this._viewZone;this._viewZoneId===void 0&&e&&this._codeEditor.changeViewZones(t=>{e.heightInPx=this._getHeight(),this._viewZoneId=t.addZone(e),this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+e.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(29).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Fo(0));let t=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){let r=this._getHeight();if(r===t.heightInPx)return;let d=r-t.heightInPx;return t.heightInPx=r,n.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+d))}{let r=this._getHeight();if(r-=this._codeEditor.getOption(66).top,r<=0)return;t.heightInPx=r,this._viewZoneId=n.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(Ue.db),inputActiveOptionBackground:e.getColor(Ue.cb),inputActiveOptionForeground:e.getColor(Ue.eb),inputBackground:e.getColor(Ue.fb),inputForeground:e.getColor(Ue.hb),inputBorder:e.getColor(Ue.gb),inputValidationInfoBackground:e.getColor(Ue.lb),inputValidationInfoForeground:e.getColor(Ue.nb),inputValidationInfoBorder:e.getColor(Ue.mb),inputValidationWarningBackground:e.getColor(Ue.ob),inputValidationWarningForeground:e.getColor(Ue.qb),inputValidationWarningBorder:e.getColor(Ue.pb),inputValidationErrorBackground:e.getColor(Ue.ib),inputValidationErrorForeground:e.getColor(Ue.kb),inputValidationErrorBorder:e.getColor(Ue.jb)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!ae.N(this._domNode))return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void ae.e(this._domNode,"hiddenEditor");ae.I(this._domNode,"hiddenEditor")&&ae.Q(this._domNode,"hiddenEditor");let t=e.width,n=e.minimap.minimapWidth,r=!1,d=!1,m=!1;if(this._resized&&ae.H(this._domNode)>419)return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=ae.H(this._findInput.domNode));if(447+n>=t&&(d=!0),447+n-Po>=t&&(m=!0),447+n-Po>=t+50&&(r=!0),ae.ab(this._domNode,"collapsed-find-widget",r),ae.ab(this._domNode,"narrow-find-widget",m),ae.ab(this._domNode,"reduced-find-widget",d),m||r||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();let O=this._findInput.inputBox.element.clientWidth;O>0&&(this._replaceInput.width=O)}else this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){let e=this._getHeight();return(this._cachedHeight===null||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));let n=this._state.currentMatch;return t.startLineNumber===t.endLineNumber||gt.a.equalsRange(t,n)?null:t}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Rr)?(this._findInput.inputBox.insertAtCursor(` -`),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Gr(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Is(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Rr)?(Et.i&&Et.g&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(G.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store("ctrlEnterReplaceAll.windows.donotask",!0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Gr(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Is(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new Ve(null,this._contextViewProvider,{width:221,label:Yi,placeholder:Gi,appendCaseSensitiveLabel:this._keybindingLabelFor(Us),appendWholeWordsLabel:this._keybindingLabelFor(Kr),appendRegexLabel:this._keybindingLabelFor(os),validation:m=>{if(m.length===0||!this._findInput.getRegex())return null;try{return new RegExp(m,"gu"),null}catch(O){return{content:O.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(m=>this._onFindInputKeyDown(m))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(m=>{m.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),m.preventDefault())})),this._register(this._findInput.onRegexKeyDown(m=>{m.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),m.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(m=>{this._tryUpdateHeight()&&this._showViewZone()})),Et.d&&this._register(this._findInput.onMouseDown(m=>this._onFindInputMouseDown(m))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new sa({label:wn+this._keybindingLabelFor(Ir),className:Mi.classNames,onTrigger:()=>{this._codeEditor.getAction(Ir).run().then(void 0,Oe.e)}})),this._nextBtn=this._register(new sa({label:nn+this._keybindingLabelFor(ks),className:zi.classNames,onTrigger:()=>{this._codeEditor.getAction(ks).run().then(void 0,Oe.e)}}));let e=document.createElement("div");e.className="find-part",e.appendChild(this._findInput.domNode);let t=document.createElement("div");t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new qs({icon:bt,title:Wn+this._keybindingLabelFor(Hs),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let m=this._codeEditor.getSelections();m.map(O=>(O.endColumn===1&&O.endLineNumber>O.startLineNumber&&(O=O.setEndPosition(O.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(O.endLineNumber-1))),O.isEmpty()?null:O)).filter(O=>!!O),m.length&&this._state.change({searchScope:m},!0)}}else this._state.change({searchScope:null},!0)})),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new sa({label:An+this._keybindingLabelFor(ps),className:ni.classNames,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:m=>{m.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),m.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Je(null,void 0,{label:qn,placeholder:ro,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(m=>this._onReplaceInputKeyDown(m))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(m=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(m=>{m.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),m.preventDefault())})),this._replaceBtn=this._register(new sa({label:Un+this._keybindingLabelFor(ms),className:Ci.classNames,onTrigger:()=>{this._controller.replace()},onKeyDown:m=>{m.equals(1026)&&(this._closeBtn.focus(),m.preventDefault())}})),this._replaceAllBtn=this._register(new sa({label:Lo+this._keybindingLabelFor(gs),className:Vi.classNames,onTrigger:()=>{this._controller.replaceAll()}}));let n=document.createElement("div");n.className="replace-part",n.appendChild(this._replaceInput.domNode);let r=document.createElement("div");r.className="replace-actions",n.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new sa({label:Ao,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(n),this._resizeSash=new ra.a(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let d=419;this._register(this._resizeSash.onDidStart(()=>{d=ae.H(this._domNode)})),this._register(this._resizeSash.onDidChange(m=>{this._resized=!0;let O=d+m.startX-m.currentX;O<419||O>(parseFloat(ae.z(this._domNode).maxWidth)||0)||(this._domNode.style.width=O+"px",this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let m=ae.H(this._domNode);if(m<419)return;let O=419;if(!this._resized||m===419){let re=this._codeEditor.getLayoutInfo();O=re.width-28-re.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=O+"px",this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){let e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(e!==2)}}Gs.ID="editor.contrib.findWidget";class sa extends rr.a{constructor(e){super(),this._opts=e,this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className="button "+this._opts.className,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,t=>{this._opts.onTrigger(),t.preventDefault()}),this.onkeydown(this._domNode,t=>{if(t.equals(10)||t.equals(3))return this._opts.onTrigger(),void t.preventDefault();this._opts.onKeyDown&&this._opts.onKeyDown(t)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){ae.ab(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(ae.R(this._domNode,Bt.classNames),ae.f(this._domNode,Pt.classNames)):(ae.R(this._domNode,Pt.classNames),ae.f(this._domNode,Bt.classNames))}}Object(ut.g)((u,e)=>{let t=(Ct,Ut)=>{Ut&&e.addRule(`.monaco-editor ${Ct} { background-color: ${Ut}; }`)};t(".findMatch",u.getColor(Ue.x)),t(".currentFindMatch",u.getColor(Ue.v)),t(".findScope",u.getColor(Ue.z)),t(".find-widget",u.getColor(Ue.U));let n=u.getColor(Ue.uc);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 2px 8px ${n}; }`);let r=u.getColor(Ue.y);r&&e.addRule(`.monaco-editor .findMatch { border: 1px ${u.type==="hc"?"dotted":"solid"} ${r}; box-sizing: border-box; }`);let d=u.getColor(Ue.w);d&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${d}; padding: 1px; box-sizing: border-box; }`);let m=u.getColor(Ue.A);m&&e.addRule(`.monaco-editor .findScope { border: 1px ${u.type==="hc"?"dashed":"solid"} ${m}; }`);let O=u.getColor(Ue.h);O&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${O}; }`);let re=u.getColor(Ue.W);re&&e.addRule(`.monaco-editor .find-widget { color: ${re}; }`);let oe=u.getColor(Ue.Y);oe&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${oe}; }`);let ce=u.getColor(Ue.X);if(ce)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${ce}; }`);else{let Ct=u.getColor(Ue.V);Ct&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${Ct}; }`)}let Me=u.getColor(Ue.Z);Me&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${Me}; }`)});var gl=o(166),Kl=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Mr=function(u,e){return function(t,n){e(t,n,u)}},Os=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Ua(u){if(!u.hasModel())return null;let e=u.getSelection();if(e.startLineNumber===e.endLineNumber){if(e.isEmpty()){let t=u.getConfiguredWordAtPosition(e.getStartPosition());if(t)return t.word}else if(u.getModel().getValueLengthInRange(e)<524288)return u.getModel().getValueInRange(e)}return null}let ur=class sm extends Lt.a{constructor(e,t,n,r){super(),this._editor=e,this._findWidgetVisible=or.bindTo(t),this._contextKeyService=t,this._storageService=n,this._clipboardService=r,this._updateHistoryDelayer=new Bi.a(500),this._state=this._register(new sr),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let d=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),d&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(29).loop})}))}static get(e){return e.getContribution(sm.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!xs.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=on.v(e)),this._state.change({searchString:e},!1)}highlightFindOptions(){}_start(e){return Os(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let t={isRevealed:!0};if(e.seedSearchStringFromSelection){let n=Ua(this._editor);n&&(this._state.isRegex?t.searchString=on.v(n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(t.searchString=n)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(r=>!r.isEmpty())&&(t.searchScope=n)}t.loop=e.loop,this._state.change(t,!1),this._model||(this._model=new Go(this._editor,this._state))})}start(e){return this._start(e)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return Os(this,void 0,void 0,function*(){return this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ur.ID="editor.contrib.findController",ur=Kl([Mr(1,A.b),Mr(2,Qn.a),Mr(3,Pi.a)],ur);let Ea=class extends ur{constructor(u,e,t,n,r,d,m,O,re){super(u,t,m,re),this._contextViewService=e,this._keybindingService=n,this._themeService=r,this._notificationService=d,this._storageKeysSyncRegistryService=O,this._widget=null,this._findOptionsWidget=null}_start(u){let e=Object.create(null,{_start:{get:()=>super._start}});return Os(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let t=this._editor.getSelection(),n=!1;switch(this._editor.getOption(29).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!t&&t.startLineNumber!==t.endLineNumber}u.updateSearchScope=n,yield e._start.call(this,u),this._widget&&(u.shouldFocus===2?this._widget.focusReplaceInput():u.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Gs(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._storageKeysSyncRegistryService)),this._findOptionsWidget=this._register(new Ts(this._editor,this._state,this._keybindingService,this._themeService))}};Ea=Kl([Mr(1,lt.b),Mr(2,A.b),Mr(3,Dt.a),Mr(4,ut.c),Mr(5,Re.a),Mr(6,Qn.a),Mr(7,gl.a),Mr(8,Pi.a)],Ea);class fs extends $.f{constructor(){super({id:Ca,label:G.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"3_find",title:G.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})}run(e,t){return Os(this,void 0,void 0,function*(){let n=ur.get(t);n&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(29).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))})}}class fl extends $.b{constructor(){super({id:xa,label:G.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return Os(this,void 0,void 0,function*(){let n=ur.get(t);n&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),n.setGlobalBufferTerm(n.getState().searchString))})}}class Ta extends $.b{run(e,t){return Os(this,void 0,void 0,function*(){let n=ur.get(t);n&&!this._run(n)&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(n))})}}class Yr extends $.b{run(e,t){return Os(this,void 0,void 0,function*(){let n=ur.get(t);if(!n)return;let r=Ua(t);r&&n.setSearchString(r),this._run(n)||(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(n))})}}class bl extends $.f{constructor(){super({id:Es,label:G.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"3_find",title:G.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})}run(e,t){return Os(this,void 0,void 0,function*(){if(!t.hasModel()||t.getOption(72))return;let n=ur.get(t),r=t.getSelection(),d=n.isFindInputFocused(),m=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&t.getOption(29).seedSearchStringFromSelection&&!d,O=d||m?2:1;n&&(yield n.start({forceRevealReplace:!0,seedSearchStringFromSelection:m,seedSearchStringFromGlobalClipboard:t.getOption(29).seedSearchStringFromSelection,shouldFocus:O,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))})}}Object($.m)(ur.ID,Ea);let Cr=new fs;Object($.r)(Cr),Object($.k)(fl),Object($.k)(class extends Ta{constructor(){super({id:ks,label:G.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:ks,label:G.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.focus,xs),primary:3,weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:Ir,label:G.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})}_run(u){return u.moveToPrevMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:Ir,label:G.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.focus,xs),primary:1027,weight:100}})}_run(u){return u.moveToPrevMatch()}}),Object($.k)(class extends Yr{constructor(){super({id:$r,label:G.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2109,weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Yr{constructor(){super({id:Vs,label:G.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:3133,weight:100}})}_run(u){return u.moveToPrevMatch()}});let _l=new bl;Object($.r)(_l);let so=$.c.bindToContribution(ur.get);Object($.l)(new so({id:ps,precondition:or,handler:u=>u.closeFindWidget(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.l)(new so({id:Us,precondition:void 0,handler:u=>u.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:qr.primary,mac:qr.mac,win:qr.win,linux:qr.linux}})),Object($.l)(new so({id:Kr,precondition:void 0,handler:u=>u.toggleWholeWords(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:Ss.primary,mac:Ss.mac,win:Ss.win,linux:Ss.linux}})),Object($.l)(new so({id:os,precondition:void 0,handler:u=>u.toggleRegex(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:hs.primary,mac:hs.mac,win:hs.win,linux:hs.linux}})),Object($.l)(new so({id:Hs,precondition:void 0,handler:u=>u.toggleSearchScope(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:us.primary,mac:us.mac,win:us.win,linux:us.linux}})),Object($.l)(new so({id:ms,precondition:or,handler:u=>u.replace(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:3094}})),Object($.l)(new so({id:ms,precondition:or,handler:u=>u.replace(),kbOpts:{weight:105,kbExpr:A.a.and(z.a.focus,yr),primary:3}})),Object($.l)(new so({id:gs,precondition:or,handler:u=>u.replaceAll(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:2563}})),Object($.l)(new so({id:gs,precondition:or,handler:u=>u.replaceAll(),kbOpts:{weight:105,kbExpr:A.a.and(z.a.focus,yr),primary:void 0,mac:{primary:2051}}})),Object($.l)(new so({id:Or,precondition:or,handler:u=>u.selectAllMatches(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:515}})),o(298);var to=o(14);class aa{constructor(e,t,n){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(n,r)=>{let d=e[e.length-1];return this.getStartLineNumber(d)<=n&&this.getEndLineNumber(d)>=r};for(let n=0,r=this._startIndexes.length;n<r;n++){let d=this._startIndexes[n],m=this._endIndexes[n];if(d>16777215||m>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;e.length>0&&!t(d,m);)e.pop();let O=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=d+((255&O)<<24),this._endIndexes[n]=m+((65280&O)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return 16777215&this._startIndexes[e]}getEndLineNumber(e){return 16777215&this._endIndexes[e]}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){let t=e/32|0,n=e%32;return(this._collapseStates[t]&1<<n)!=0}setCollapsed(e,t){let n=e/32|0,r=e%32,d=this._collapseStates[n];this._collapseStates[n]=t?d|1<<r:d&~(1<<r)}toRegion(e){return new Gl(this,e)}getParentIndex(e){this.ensureParentIndices();let t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return t===65535?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,n=this._startIndexes.length;if(n===0)return-1;for(;t<n;){let r=Math.floor((t+n)/2);e<this.getStartLineNumber(r)?n=r:t=r+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);t!==-1;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}}class Gl{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class Yl{constructor(e,t){this._updateEventEmitter=new rt.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new aa(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(e){if(!e.length)return;e=e.sort((n,r)=>n.regionIndex-r.regionIndex);let t={};this._decorationProvider.changeDecorations(n=>{let r=0,d=-1,m=-1,O=re=>{for(;r<re;){let oe=this._regions.getEndLineNumber(r),ce=this._regions.isCollapsed(r);oe<=d&&n.changeDecorationOptions(this._editorDecorationIds[r],this._decorationProvider.getDecorationOption(ce,oe<=m)),ce&&oe>m&&(m=oe),r++}};for(let re of e){let oe=re.regionIndex,ce=this._editorDecorationIds[oe];if(ce&&!t[ce]){t[ce]=!0,O(oe);let Me=!this._regions.isCollapsed(oe);this._regions.setCollapsed(oe,Me),d=Math.max(d,this._regions.getEndLineNumber(oe))}}O(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){let n=[],r=-1,d=(ce,Me)=>{let Ct=e.getStartLineNumber(ce),Ut=e.getEndLineNumber(ce);Me&&((hi,ji)=>{for(let Ji of t)if(hi<Ji&&Ji<=ji)return!0;return!1})(Ct,Ut)&&(Me=!1),e.setCollapsed(ce,Me);let St=this._textModel.getLineMaxColumn(Ct),di={startLineNumber:Ct,startColumn:St,endLineNumber:Ct,endColumn:St};n.push({range:di,options:this._decorationProvider.getDecorationOption(Me,Ut<=r)}),Me&&Ut>r&&(r=Ut)},m=0,O=()=>{for(;m<this._regions.length;){let ce=this._regions.isCollapsed(m);if(m++,ce)return m-1}return-1},re=0,oe=O();for(;oe!==-1&&re<e.length;){let ce=this._textModel.getDecorationRange(this._editorDecorationIds[oe]);if(ce){let Me=ce.startLineNumber;if(this._textModel.getLineMaxColumn(Me)===ce.startColumn)for(;re<e.length;){let Ct=e.getStartLineNumber(re);if(!(Me>=Ct))break;d(re,Me===Ct),re++}}oe=O()}for(;re<e.length;)d(re,!1),re++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,n),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})}getMemento(){let e=[];for(let t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){let n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){let r=n.startLineNumber,d=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:r,endLineNumber:d})}}if(e.length>0)return e}applyMemento(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let r=this.getRegionAtLine(n.startLineNumber);r&&!r.isCollapsed&&t.push(r)}this.toggleCollapseState(t)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){let n=[];if(this._regions){let r=this._regions.findRange(e),d=1;for(;r>=0;){let m=this._regions.toRegion(r);t&&!t(m,d)||n.push(m),d++,r=m.parentIndex}}return n}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let n=[],r=e?e.regionIndex+1:0,d=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let m=[];for(let O=r,re=this._regions.length;O<re;O++){let oe=this._regions.toRegion(O);if(!(this._regions.getStartLineNumber(O)<d))break;for(;m.length>0&&!oe.containedBy(m[m.length-1]);)m.pop();m.push(oe),t(oe,m.length)&&n.push(oe)}}else for(let m=r,O=this._regions.length;m<O;m++){let re=this._regions.toRegion(m);if(!(this._regions.getStartLineNumber(m)<d))break;t&&!t(re)||n.push(re)}return n}}function bs(u,e,t=Number.MAX_VALUE,n){let r=[];if(n&&n.length>0)for(let d of n){let m=u.getRegionAtLine(d);if(m&&(m.isCollapsed!==e&&r.push(m),t>1)){let O=u.getRegionsInside(m,(re,oe)=>re.isCollapsed!==e&&oe<t);r.push(...O)}}else{let d=u.getRegionsInside(null,(m,O)=>m.isCollapsed!==e&&O<t);r.push(...d)}u.toggleCollapseState(r)}function Ha(u,e,t,n){let r=[];for(let d of n){let m=u.getAllRegionsAtLine(d,(O,re)=>O.isCollapsed!==e&&re<=t);r.push(...m)}u.toggleCollapseState(r)}function La(u,e,t){let n=u.textModel,r=u.regions,d=[];for(let m=r.length-1;m>=0;m--)if(t!==r.isCollapsed(m)){let O=r.getStartLineNumber(m);e.test(n.getLineContent(O))&&d.push(r.toRegion(m))}u.toggleCollapseState(d)}function Na(u,e,t){let n=u.regions,r=[];for(let d=n.length-1;d>=0;d--)t!==n.isCollapsed(d)&&e===n.getType(d)&&r.push(n.toRegion(d));u.toggleCollapseState(r)}let la=Object(de.e)("folding-expanded",de.a.chevronDown),vl=Object(de.e)("folding-collapsed",de.a.chevronRight);class xr{constructor(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(e,t){return t?xr.HIDDEN_RANGE_DECORATION:e?this.showFoldingHighlights?xr.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:xr.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?xr.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:xr.EXPANDED_VISUAL_DECORATION}deltaDecorations(e,t){return this.editor.deltaDecorations(e,t)}changeDecorations(e){return this.editor.changeDecorations(e)}}xr.COLLAPSED_VISUAL_DECORATION=Rt.a.register({stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:vl.classNames}),xr.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=Rt.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:vl.classNames}),xr.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=Rt.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:la.classNames}),xr.EXPANDED_VISUAL_DECORATION=Rt.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+la.classNames}),xr.HIDDEN_RANGE_DECORATION=Rt.a.register({stickiness:1});class Zl{constructor(e){this._updateEventEmitter=new rt.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1,t=[],n=0,r=0,d=Number.MAX_VALUE,m=-1,O=this._foldingModel.regions;for(;n<O.length;n++){if(!O.isCollapsed(n))continue;let re=O.getStartLineNumber(n)+1,oe=O.getEndLineNumber(n);d<=re&&oe<=m||(!e&&r<this._hiddenRanges.length&&this._hiddenRanges[r].startLineNumber===re&&this._hiddenRanges[r].endLineNumber===oe?(t.push(this._hiddenRanges[r]),r++):(e=!0,t.push(new gt.a(re,1,oe,1))),d=re,m=oe)}(e||r<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyMemento(e){if(!Array.isArray(e)||e.length===0)return!1;let t=[];for(let n of e){if(!n.startLineNumber||!n.endLineNumber)return!1;t.push(new gt.a(n.startLineNumber+1,1,n.endLineNumber,1))}return this.applyHiddenRanges(t),!0}getMemento(){return this._hiddenRanges.map(e=>({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return Xi(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,n=this._foldingModel.textModel,r=null,d=m=>(r&&function(O,re){return O>=re.startLineNumber&&O<=re.endLineNumber}(m,r)||(r=Xi(this._hiddenRanges,m)),r?r.startLineNumber-1:null);for(let m=0,O=e.length;m<O;m++){let re=e[m],oe=d(re.startLineNumber);oe&&(re=re.setStartPosition(oe,n.getLineMaxColumn(oe)),t=!0);let ce=d(re.endLineNumber);ce&&(re=re.setEndPosition(ce,n.getLineMaxColumn(ce)),t=!0),e[m]=re}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function Xi(u,e){let t=Object(ee.h)(u,n=>e<n.startLineNumber)-1;return t>=0&&u[t].endLineNumber>=e?u[t]:null}class wl{constructor(e){this.editorModel=e,this.id="indent"}dispose(){}compute(e){let t=Oo.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,r=t&&t.markers;return Promise.resolve(function(d,m,O,re=5e3){let oe=d.getOptions().tabSize,ce=new Xl(re),Me;O&&(Me=new RegExp(`(${O.start.source})|(?:${O.end.source})`));let Ct=[],Ut=d.getLineCount()+1;Ct.push({indent:-1,endAbove:Ut,line:Ut});for(let St=d.getLineCount();St>0;St--){let di,hi=d.getLineContent(St),ji=Rt.b.computeIndentLevel(hi,oe),Ji=Ct[Ct.length-1];if(ji!==-1){if(Me&&(di=hi.match(Me))){if(!di[1]){Ct.push({indent:-2,endAbove:St,line:St});continue}{let dn=Ct.length-1;for(;dn>0&&Ct[dn].indent!==-2;)dn--;if(dn>0){Ct.length=dn+1,Ji=Ct[dn],ce.insertFirst(St,Ji.line,ji),Ji.line=St,Ji.indent=ji,Ji.endAbove=St;continue}}}if(Ji.indent>ji){do Ct.pop(),Ji=Ct[Ct.length-1];while(Ji.indent>ji);let dn=Ji.endAbove-1;dn-St>=1&&ce.insertFirst(St,dn,ji)}Ji.indent===ji?Ji.endAbove=St:Ct.push({indent:ji,endAbove:St,line:St})}else m&&(Ji.endAbove=St)}return ce.toIndentRanges(d)}(this.editorModel,n,r))}}class Xl{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>16777215||t>16777215)return;let r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){if(this._length<=this._foldingRangesLimit){let t=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let r=this._length-1,d=0;r>=0;r--,d++)t[d]=this._startIndexes[r],n[d]=this._endIndexes[r];return new aa(t,n)}{let t=0,n=this._indentOccurrences.length;for(let O=0;O<this._indentOccurrences.length;O++){let re=this._indentOccurrences[O];if(re){if(re+t>this._foldingRangesLimit){n=O;break}t+=re}}let r=e.getOptions().tabSize,d=new Uint32Array(this._foldingRangesLimit),m=new Uint32Array(this._foldingRangesLimit);for(let O=this._length-1,re=0;O>=0;O--){let oe=this._startIndexes[O],ce=e.getLineContent(oe),Me=Rt.b.computeIndentLevel(ce,r);(Me<n||Me===n&&t++<this._foldingRangesLimit)&&(d[re]=oe,m[re]=this._endIndexes[O],re++)}return new aa(d,m)}}}let Ia={};class Oa{constructor(e,t,n=5e3){this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax"}compute(e){return function(t,n,r){let d=null,m=t.map((O,re)=>Promise.resolve(O.provideFoldingRanges(n,Ia,r)).then(oe=>{if(!r.isCancellationRequested&&Array.isArray(oe)){Array.isArray(d)||(d=[]);let ce=n.getLineCount();for(let Me of oe)Me.start>0&&Me.end>Me.start&&Me.end<=ce&&d.push({start:Me.start,end:Me.end,rank:re,kind:Me.kind})}},Oe.f));return Promise.all(m).then(O=>d)}(this.providers,this.editorModel,e).then(t=>t?Cl(t,this.limit):null)}dispose(){}}class yl{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,r){if(e>16777215||t>16777215)return;let d=this._length;this._startIndexes[d]=e,this._endIndexes[d]=t,this._nestingLevels[d]=r,this._types[d]=n,this._length++,r<30&&(this._nestingLevelCounts[r]=(this._nestingLevelCounts[r]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new aa(e,t,this._types)}{let e=0,t=this._nestingLevelCounts.length;for(let m=0;m<this._nestingLevelCounts.length;m++){let O=this._nestingLevelCounts[m];if(O){if(O+e>this._foldingRangesLimit){t=m;break}e+=O}}let n=new Uint32Array(this._foldingRangesLimit),r=new Uint32Array(this._foldingRangesLimit),d=[];for(let m=0,O=0;m<this._length;m++){let re=this._nestingLevels[m];(re<t||re===t&&e++<this._foldingRangesLimit)&&(n[O]=this._startIndexes[m],r[O]=this._endIndexes[m],d[O]=this._types[m],O++)}return new aa(n,r,d)}}}function Cl(u,e){let t=u.sort((m,O)=>{let re=m.start-O.start;return re===0&&(re=m.rank-O.rank),re}),n=new yl(e),r,d=[];for(let m of t)if(r){if(m.start>r.start)if(m.end<=r.end)d.push(r),r=m,n.add(m.start,m.end,m.kind&&m.kind.value,d.length);else{if(m.start>r.end){do r=d.pop();while(r&&m.start>r.end);r&&d.push(r),r=m}n.add(m.start,m.end,m.kind&&m.kind.value,d.length)}}else r=m,n.add(m.start,m.end,m.kind&&m.kind.value,d.length);return n.toIndentRanges()}class Ql{constructor(e,t,n,r){if(this.editorModel=e,this.id="init",t.length){let d=m=>({range:{startLineNumber:m.startLineNumber,startColumn:0,endLineNumber:m.endLineNumber,endColumn:e.getLineLength(m.endLineNumber)},options:{stickiness:1}});this.decorationIds=e.deltaDecorations([],t.map(d)),this.timeout=setTimeout(n,r)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){let t=[];if(this.decorationIds)for(let n of this.decorationIds){let r=this.editorModel.getDecorationRange(n);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1})}return Promise.resolve(Cl(t,Number.MAX_VALUE))}}var xl=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},qa=function(u,e){return function(t,n){e(t,n,u)}};let pr=new A.c("foldingEnabled",!1),Ds=class am extends Lt.a{constructor(e,t){super(),this.contextKeyService=t,this.localToDispose=this._register(new Lt.b),this.editor=e;let n=this.editor.getOptions();this._isEnabled=n.get(31),this._useFoldingProviders=n.get(32)!=="indentation",this._unfoldOnClickAfterEndOfLine=n.get(34),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new xr(e),this.foldingDecorationProvider.autoHideFoldingControls=n.get(91)==="mouseover",this.foldingDecorationProvider.showFoldingHighlights=n.get(33),this.foldingEnabled=pr.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(r=>{if(r.hasChanged(31)&&(this._isEnabled=this.editor.getOptions().get(31),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),r.hasChanged(91)||r.hasChanged(33)){let d=this.editor.getOptions();this.foldingDecorationProvider.autoHideFoldingControls=d.get(91)==="mouseover",this.foldingDecorationProvider.showFoldingHighlights=d.get(33),this.onModelContentChanged()}r.hasChanged(32)&&(this._useFoldingProviders=this.editor.getOptions().get(32)!=="indentation",this.onFoldingStrategyChanged()),r.hasChanged(34)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(34))})),this.onModelChanged()}static get(e){return e.getContribution(am.ID)}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}}restoreViewState(e){let t=this.editor.getModel();if(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel||!e||!e.collapsedRegions||e.lineCount!==t.getLineCount())return;e.provider!=="syntax"&&e.provider!=="init"||(this.foldingStateMemento=e);let n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){let r=this.getFoldingModel();r&&r.then(d=>{d&&d.applyMemento(n)}).then(void 0,Oe.e)}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this.foldingModel=new Yl(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Zl(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Bi.a(200),this.cursorChangedScheduler=new Bi.d(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(I.o.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(t=>this.onEditorMouseDown(t))),this.localToDispose.add(this.editor.onMouseUp(t=>this.onEditorMouseUp(t))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new wl(e),this._useFoldingProviders&&this.foldingModel){let t=I.o.ordered(this.foldingModel.textModel);if(t.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new Ql(e,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4);t.length>0&&(this.rangeProvider=new Oa(e,t))}return this.foldingStateMemento=null,this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{let e=this.foldingModel;if(!e)return null;let t=this.foldingRegionPromise=Object(Bi.f)(n=>this.getRangeProvider(e.textModel).compute(n));return t.then(n=>{if(n&&t===this.foldingRegionPromise){let r=this.editor.getSelections(),d=r?r.map(m=>m.startLineNumber):[];e.update(n,d)}return e})}).then(void 0,e=>(Object(Oe.e)(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length){let t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let n=this.editor.getSelections();if(n&&n.length>0){let r=[];for(let d of n){let m=d.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(m)&&r.push(...t.getAllRegionsAtLine(m,O=>O.isCollapsed&&m>O.startLineNumber))}r.length&&(t.toggleCollapseState(r),this.reveal(n[0].getPosition()))}}}).then(void 0,Oe.e)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,n=!1;switch(e.target.type){case 4:let r=e.target.detail,d=e.target.element.offsetLeft;if(r.offsetX-d<5)return;n=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){let m=this.editor.getModel();if(m&&t.startColumn===m.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}onEditorMouseUp(e){let t=this.getFoldingModel();if(!t||!this.mouseDownInfo||!e.target)return;let n=this.mouseDownInfo.lineNumber,r=this.mouseDownInfo.iconClicked,d=e.target.range;if(d&&d.startLineNumber===n){if(r){if(e.target.type!==4)return}else{let m=this.editor.getModel();if(!m||d.startColumn!==m.getLineMaxColumn(n))return}t.then(m=>{if(m){let O=m.getRegionAtLine(n);if(O&&O.startLineNumber===n){let re=O.isCollapsed;if(r||re){let oe=[],ce=e.event.middleButton||e.event.shiftKey;if(ce)for(let Me of m.getRegionsInside(O))Me.isCollapsed===re&&oe.push(Me);!re&&ce&&oe.length!==0||oe.push(O),m.toggleCollapseState(oe),this.reveal({lineNumber:n,column:1})}}}}).then(void 0,Oe.e)}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};Ds.ID="editor.contrib.folding",Ds=xl([qa(1,A.b)],Ds);class er extends $.b{runEditorCommand(e,t,n){let r=Ds.get(t);if(!r)return;let d=r.getFoldingModel();return d?(this.reportTelemetry(e,t),d.then(m=>{if(m){this.invoke(r,m,t,n);let O=t.getSelection();O&&r.reveal(O.getStartPosition())}})):void 0}getSelectedLines(e){let t=e.getSelections();return t?t.map(n=>n.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(n=>n+1):this.getSelectedLines(t)}run(e,t){}}function $a(u){if(!to.k(u)){if(!to.i(u))return!1;let e=u;if(!to.k(e.levels)&&!to.h(e.levels)||!to.k(e.direction)&&!to.j(e.direction)||!(to.k(e.selectionLines)||to.e(e.selectionLines)&&e.selectionLines.every(to.h)))return!1}return!0}class As extends er{getFoldingLevel(){return parseInt(this.id.substr(As.ID_PREFIX.length))}invoke(e,t,n){(function(r,d,m,O){let re=r.getRegionsInside(null,(oe,ce)=>ce===d&&oe.isCollapsed!==m&&!O.some(Me=>oe.containsLine(Me)));r.toggleCollapseState(re)})(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}}As.ID_PREFIX="editor.foldLevel",As.ID=u=>As.ID_PREFIX+u,Object($.m)(Ds.ID,Ds),Object($.k)(class extends er{constructor(){super({id:"editor.unfold",label:G.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: + }`)});var ai=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},fi=function(u,e){return function(t,n){e(t,n,u)}},ui=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Te=class extends Lt.a{constructor(u,e,t,n,o){super(),this._editor=u,this.delegate=n,this._activeCodeActions=this._register(new Lt.d),this._codeActionWidget=new Gn(()=>this._register(o.createInstance(ue,this._editor,{onSelectCodeAction:d=>ui(this,void 0,void 0,function*(){this.delegate.applyCodeAction(d,!0)})}))),this._lightBulbWidget=new Gn(()=>{let d=this._register(o.createInstance(Ei,this._editor,e,t));return this._register(d.onClick(m=>this.showCodeActionList(m.trigger,m.actions,m,{includeDisabledActions:!1}))),d})}update(u){var e,t,n;return ui(this,void 0,void 0,function*(){if(u.type!==1)return void((e=this._lightBulbWidget.rawValue)===null||e===void 0||e.hide());let o;try{o=yield u.actions}catch(d){return void Object(De.e)(d)}if(this._lightBulbWidget.getValue().update(o,u.trigger,u.position),u.trigger.type===2){if((t=u.trigger.filter)===null||t===void 0?void 0:t.include){let m=this.tryGetValidActionToApply(u.trigger,o);if(m){try{yield this.delegate.applyCodeAction(m,!1)}finally{o.dispose()}return}if(u.trigger.context){let D=this.getInvalidActionThatWouldHaveBeenApplied(u.trigger,o);if(D&&D.disabled)return wi.get(this._editor).showMessage(D.disabled,u.trigger.context.position),void o.dispose()}}let d=!!((n=u.trigger.filter)===null||n===void 0?void 0:n.include);if(u.trigger.context&&(!o.allActions.length||!d&&!o.validActions.length))return wi.get(this._editor).showMessage(u.trigger.context.notAvailableMessage,u.trigger.context.position),this._activeCodeActions.value=o,void o.dispose();this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(u.trigger,o,u.position,{includeDisabledActions:d})}else this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o})}getInvalidActionThatWouldHaveBeenApplied(u,e){if(e.allActions.length)return u.autoApply==="first"&&e.validActions.length===0||u.autoApply==="ifSingle"&&e.allActions.length===1?e.allActions.find(t=>t.disabled):void 0}tryGetValidActionToApply(u,e){if(e.validActions.length)return u.autoApply==="first"&&e.validActions.length>0||u.autoApply==="ifSingle"&&e.validActions.length===1?e.validActions[0]:void 0}showCodeActionList(u,e,t,n){return ui(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(u,e,t,n)})}};Te=ai([fi(4,X.a)],Te);var Ee=r(27),ve=r(63),Re=r(49),We=r(120),Be=r(51);let Le=new A.c("supportedCodeAction","");class Ke extends Lt.a{constructor(e,t,n,o=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=o,this._autoTriggerTimer=this._register(new Bi.e),this._register(this._markerService.onMarkerChanged(d=>this._onMarkerChanges(d))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(n=>Object(Be.f)(n,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_getRangeOfMarker(e){let t=this._editor.getModel();if(t)for(let n of this._markerService.read({resource:t.uri})){let o=t.validateRange(n);if(gt.a.intersectRanges(o,e))return gt.a.lift(o)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&e.type===1){let{lineNumber:o,column:d}=n.getPosition(),m=t.getLineContent(o);if(m.length===0)return;if(d===1){if(/\s/.test(m[0]))return}else if(d===t.getLineMaxColumn(o)){if(/\s/.test(m[m.length-1]))return}else if(/\s/.test(m[d-2])&&/\s/.test(m[d-1]))return}return n}_createEventAndSignalChange(e,t){let n=this._editor.getModel();if(!t||!n)return void this._signalChange(void 0);let o=this._getRangeOfMarker(t),d=o?o.getStartPosition():t.getStartPosition(),m={trigger:e,selection:t,position:d};return this._signalChange(m),m}}var dt;(function(u){u.Empty={type:0},u.Triggered=class{constructor(e,t,n,o){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=o,this.type=1}}})(dt||(dt={}));class yt extends Lt.a{constructor(e,t,n,o){super(),this._editor=e,this._markerService=t,this._progressService=o,this._codeActionOracle=this._register(new Lt.d),this._state=dt.Empty,this._onDidChangeState=this._register(new ot.a),this.onDidChangeState=this._onDidChangeState.event,this._supportedCodeActions=Le.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(I.a.onDidChange(()=>this._update())),this._update()}dispose(){super.dispose(),this.setState(dt.Empty,!0)}_update(){this._codeActionOracle.value=void 0,this.setState(dt.Empty);let e=this._editor.getModel();if(e&&I.a.has(e)&&!this._editor.getOption(72)){let t=[];for(let n of I.a.all(e))Array.isArray(n.providedCodeActionKinds)&&t.push(...n.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new Ke(this._editor,this._markerService,n=>{var o;if(!n)return void this.setState(dt.Empty);let d=Object(Bi.f)(m=>Ht(e,n.selection,n.trigger,rt.b.None,m));n.trigger.type===2&&((o=this._progressService)===null||o===void 0||o.showWhile(d,250)),this.setState(new dt.Triggered(n.trigger,n.selection,n.position,d))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))}}var xt=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Xt=function(u,e){return function(t,n){e(t,n,u)}},mi=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Yt(u){return A.a.regex(Le.keys()[0],new RegExp("(\\s|^)"+Object(rn.v)(u.value)+"\\b"))}let oi={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:G.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:G.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[G.a("args.schema.apply.first","Always apply the first returned code action."),G.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),G.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:G.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},qi=class nm extends Lt.a{constructor(e,t,n,o,d){super(),this._instantiationService=d,this._editor=e,this._model=this._register(new yt(this._editor,t,n,o)),this._register(this._model.onDidChangeState(m=>this.update(m))),this._ui=new Gn(()=>this._register(new Te(e,ei.Id,gn.Id,{applyCodeAction:(m,D)=>mi(this,void 0,void 0,function*(){try{yield this._applyCodeAction(m)}finally{D&&this._trigger({type:1,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(nm.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,n){if(!this._editor.hasModel())return;wi.get(this._editor).closeMessage();let o=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:o}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(an,e,this._editor)}};function an(u,e,t){return mi(this,void 0,void 0,function*(){let n=u.get(dr.a),o=u.get(Ee.b),d=u.get(We.a),m=u.get(Re.a);if(d.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.title,codeActionKind:e.kind,codeActionIsPreferred:!!e.isPreferred}),e.edit&&(yield n.apply(dr.b.convert(e.edit),{editor:t,label:e.title})),e.command)try{yield o.executeCommand(e.command.id,...e.command.arguments||[])}catch(D){let oe=function(re){return typeof re=="string"?re:re instanceof Error&&typeof re.message=="string"?re.message:void 0}(D);m.error(typeof oe=="string"?oe:G.a("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function _n(u,e,t,n){if(u.hasModel()){let o=qi.get(u);o&&o.manualTriggerAtCurrentPosition(e,t,n)}}qi.ID="editor.contrib.quickFixController",qi=xt([Xt(1,ve.b),Xt(2,A.b),Xt(3,rt.a),Xt(4,X.a)],qi);class ei extends $.b{constructor(){super({id:ei.Id,label:G.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2132,weight:100}})}run(e,t){return _n(t,G.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}ei.Id="editor.action.quickFix";class ii extends $.c{constructor(){super({id:"editor.action.codeAction",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:oi}]}})}runEditorCommand(e,t,n){let o=Xe.fromUser(n,{kind:_e.Empty,apply:"ifSingle"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?o.preferred?G.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):G.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):o.preferred?G.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):G.a("editor.action.codeAction.noneMessage","No code actions available"),{include:o.kind,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)}}class bi extends $.b{constructor(){super({id:"editor.action.refactor",label:G.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:A.a.and(z.a.writable,Yt(_e.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:oi}]}})}run(e,t,n){let o=Xe.fromUser(n,{kind:_e.Refactor,apply:"never"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?o.preferred?G.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):G.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):o.preferred?G.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):G.a("editor.action.refactor.noneMessage","No refactorings available"),{include:_e.Refactor.contains(o.kind)?o.kind:_e.None,onlyIncludePreferredActions:o.preferred},o.apply)}}class ln extends $.b{constructor(){super({id:"editor.action.sourceAction",label:G.a("source.label","Source Action..."),alias:"Source Action...",precondition:A.a.and(z.a.writable,z.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:A.a.and(z.a.writable,Yt(_e.Source))},description:{description:"Source Action...",args:[{name:"args",schema:oi}]}})}run(e,t,n){let o=Xe.fromUser(n,{kind:_e.Source,apply:"never"});return _n(t,typeof(n==null?void 0:n.kind)=="string"?o.preferred?G.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):G.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):o.preferred?G.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):G.a("editor.action.source.noneMessage","No source actions available"),{include:_e.Source.contains(o.kind)?o.kind:_e.None,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)}}class mn extends $.b{constructor(){super({id:"editor.action.organizeImports",label:G.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:A.a.and(z.a.writable,Yt(_e.SourceOrganizeImports)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1581,weight:100}})}run(e,t){return _n(t,G.a("editor.action.organize.noneMessage","No organize imports action available"),{include:_e.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class sn extends $.b{constructor(){super({id:"editor.action.fixAll",label:G.a("fixAll.label","Fix All"),alias:"Fix All",precondition:A.a.and(z.a.writable,Yt(_e.SourceFixAll))})}run(e,t){return _n(t,G.a("fixAll.noneMessage","No fix all action available"),{include:_e.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class gn extends $.b{constructor(){super({id:gn.Id,label:G.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:A.a.and(z.a.writable,Yt(_e.QuickFix)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return _n(t,G.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_e.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}gn.Id="editor.action.autoFix",Object($.m)(qi.ID,qi),Object($.k)(ei),Object($.k)(bi),Object($.k)(ln),Object($.k)(mn),Object($.k)(gn),Object($.k)(sn),Object($.l)(new ii);class Sn{constructor(){this.lenses=[],this._disposables=new Lt.b}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(let n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function En(u,e){let t=I.b.ordered(u),n=new Map,o=new Sn,d=t.map((m,D)=>(n.set(m,D),Promise.resolve(m.provideCodeLenses(u,e)).then(oe=>oe&&o.add(oe,m)).catch(De.f)));return Promise.all(d).then(()=>(o.lenses=Object(ee.p)(o.lenses,(m,D)=>m.symbol.range.startLineNumber<D.symbol.range.startLineNumber?-1:m.symbol.range.startLineNumber>D.symbol.range.startLineNumber?1:n.get(m.provider)<n.get(D.provider)?-1:n.get(m.provider)>n.get(D.provider)?1:m.symbol.range.startColumn<D.symbol.range.startColumn?-1:m.symbol.range.startColumn>D.symbol.range.startColumn?1:0),o))}Object($.o)("_executeCodeLensProvider",function(u,e){let{resource:t,itemResolveCount:n}=e;if(!(t instanceof On.a))throw Object(De.b)();let o=u.get(ne.a).getModel(t);if(!o)throw Object(De.b)();let d=[],m=new Lt.b;return En(o,Dn.a.None).then(D=>{m.add(D);let oe=[];for(let re of D.lenses)n===void 0||Boolean(re.symbol.command)?d.push(re.symbol):n-- >0&&re.provider.resolveCodeLens&&oe.push(Promise.resolve(re.provider.resolveCodeLens(o,re.symbol,Dn.a.None)).then(ce=>d.push(ce||re.symbol)));return Promise.all(oe)}).then(()=>d).finally(()=>{setTimeout(()=>m.dispose(),100)})}),r(289);class Xn{constructor(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}}class Yn{constructor(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+Yn._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}withCommands(e,t){this._commands.clear();let n="",o=!1;for(let d=0;d<e.length;d++){let m=e[d];if(m&&(o=!0,m.command)){let D=Object(de.f)(Object(rn.u)(m.command.title));m.command.id?(n+=`<a id=${d}>${D}</a>`,this._commands.set(String(d),m.command)):n+=`<span>${D}</span>`,d+1<e.length&&(n+="<span> | </span>")}}o?(n||(n="\xA0"),this._domNode.innerHTML=n,this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){let t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}Yn._idPool=0;class Nr{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let n=0,o=t.length;n<o;n++)this._addDecorationsCallbacks[n](t[n])}}class Ar{constructor(e,t,n,o,d,m){let D;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];let oe=[];this._data.forEach((re,ce)=>{re.symbol.command&&oe.push(re.symbol),o.addDecoration({range:re.symbol.range,options:Rt.a.EMPTY},Me=>this._decorationIds[ce]=Me),D=D?gt.a.plusRange(D,re.symbol.range):gt.a.lift(re.symbol.range)}),this._viewZone=new Xn(D.startLineNumber-1,m),this._viewZoneId=d.addZone(this._viewZone),oe.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(oe,!1))}_createContentWidgetIfNecessary(){this._contentWidget||(this._contentWidget=new Yn(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let n=this._editor.getModel().getDecorationRange(e),o=this._data[t].symbol;return!(!n||gt.a.isEmpty(o.range)!==n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((n,o)=>{t.addDecoration({range:n.symbol.range,options:Rt.a.EMPTY},d=>this._decorationIds[o]=d)})}computeIfNecessary(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let t=0;t<this._decorationIds.length;t++){let n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){let n=e[t];if(n){let{symbol:o}=this._data[t];o.command=n.command||o.command}}}getCommand(e){var t;return(t=this._contentWidget)===null||t===void 0?void 0:t.getCommand(e)}getLineNumber(){let e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){let t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}getItems(){return this._data}}Object(ut.g)((u,e)=>{let t=u.getColor(vt.e);t&&(e.addRule(`.monaco-editor .codelens-decoration { color: ${t}; }`),e.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${t}; }`));let n=u.getColor(Ue.r);n&&(e.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${n} !important; }`),e.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${n} !important; }`))});var In=r(115),Rn=r(78),Qn=r(97),_r=r(133),Rr=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},xr=function(u,e){return function(t,n){e(t,n,u)}};let Sr=Object(X.c)("ICodeLensCache");class ur{constructor(e,t){this.lineCount=e,this.data=t}}let Tn=class{constructor(u){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Rn.a(20,.75),Object(Bi.k)(()=>u.remove("codelens/cache",1));let e="codelens/cache2",t=u.get(e,1,"{}");this._deserialize(t),Object(_r.a)(u.onWillSaveState)(n=>{n.reason===Qn.c.SHUTDOWN&&u.store(e,this._serialize(),1)})}put(u,e){let t=e.lenses.map(d=>{var m;return{range:d.symbol.range,command:d.symbol.command&&{id:"",title:(m=d.symbol.command)===null||m===void 0?void 0:m.title}}}),n=new Sn;n.add({lenses:t,dispose:()=>{}},this._fakeProvider);let o=new ur(u.getLineCount(),n);this._cache.set(u.uri.toString(),o)}get(u){let e=this._cache.get(u.uri.toString());return e&&e.lineCount===u.getLineCount()?e.data:void 0}delete(u){this._cache.delete(u.uri.toString())}_serialize(){let u=Object.create(null);for(let[e,t]of this._cache){let n=new Set;for(let o of t.data.lenses)n.add(o.symbol.range.startLineNumber);u[e]={lineCount:t.lineCount,lines:[...n.values()]}}return JSON.stringify(u)}_deserialize(u){try{let e=JSON.parse(u);for(let t in e){let n=e[t],o=[];for(let m of n.lines)o.push({range:new gt.a(m,1,m,11)});let d=new Sn;d.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(t,new ur(n.lineCount,d))}}catch(e){}}};Tn=Rr([xr(0,Qn.a)],Tn),Object(In.b)(Sr,Tn);var Lr=r(89),Ur=r(110),go=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},vr=function(u,e){return function(t,n){e(t,n,u)}},ls=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Bo=class{constructor(u,e,t,n){this._editor=u,this._commandService=e,this._notificationService=t,this._codeLensCache=n,this._globalToDispose=new Lt.b,this._localToDispose=new Lt.b,this._lenses=[],this._oldCodeLensModels=new Lt.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeConfiguration(()=>{let o=this._isEnabled;this._isEnabled=this._editor.getOption(11),o!==this._isEnabled&&this._onModelChange()})),this._globalToDispose.add(I.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(36)&&this._updateLensStyle()})),this._onModelChange(),this._styleClassName="_"+Object(Lr.b)(this._editor.getId()).toString(16),this._styleElement=ae.v(ae.O(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(Lt.f)(this._currentCodeLensModel)}_updateLensStyle(){let u=this._editor.getOptions(),e=u.get(36),t=u.get(51),n=Math.round(1.1*t),o=Math.round(.9*e.fontSize),d=` + .monaco-editor .codelens-decoration.${this._styleClassName} { height: ${n}px; line-height: ${t}px; font-size: ${o}px; padding-right: ${Math.round(.45*e.fontSize)}px;} + .monaco-editor .codelens-decoration.${this._styleClassName} > a > .codicon { line-height: ${t}px; font-size: ${o}px; } + `;this._styleElement.textContent=d}_localDispose(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(Lt.f)(this._currentCodeLensModel)}_onModelChange(){this._localDispose();let u=this._editor.getModel();if(!u||!this._isEnabled)return;let e=this._codeLensCache.get(u);if(e&&this._renderCodeLensSymbols(e),!I.b.has(u))return void(e&&this._localToDispose.add(Object(Bi.g)(()=>{let o=this._codeLensCache.get(u);e===o&&(this._codeLensCache.delete(u),this._onModelChange())},3e4)));for(let o of I.b.all(u))if(typeof o.onDidChange=="function"){let d=o.onDidChange(()=>n.schedule());this._localToDispose.add(d)}let t=this._detectVisibleLenses=new Bi.d(()=>this._onViewportChanged(),250),n=new Bi.d(()=>{let o=++this._modelChangeCounter;this._currentFindCodeLensSymbolsPromise&&this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=Object(Bi.f)(d=>En(u,d)),this._currentFindCodeLensSymbolsPromise.then(d=>{o===this._modelChangeCounter&&(this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=d,this._codeLensCache.put(u,d),this._renderCodeLensSymbols(d),t.schedule())},De.e)},250);this._localToDispose.add(n),this._localToDispose.add(t),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(o=>{this._editor.changeViewZones(d=>{let m=[],D=-1;this._lenses.forEach(re=>{re.isValid()&&D!==re.getLineNumber()?(re.update(d),D=re.getLineNumber()):m.push(re)});let oe=new Nr;m.forEach(re=>{re.dispose(oe,d),this._lenses.splice(this._lenses.indexOf(re),1)}),oe.commit(o)})}),t.schedule(),n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(o=>{o.scrollTopChanged&&this._lenses.length>0&&t.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{t.schedule()})),this._localToDispose.add(Object(Lt.h)(()=>{if(this._editor.getModel()){let o=qt.c.capture(this._editor);this._editor.changeDecorations(d=>{this._editor.changeViewZones(m=>{this._disposeAllLenses(d,m)})}),o.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(o=>{if(o.target.type!==9)return;let d=o.target.element;if((d==null?void 0:d.tagName)==="SPAN"&&(d=d.parentElement),(d==null?void 0:d.tagName)==="A")for(let m of this._lenses){let D=m.getCommand(d);if(D){this._commandService.executeCommand(D.id,...D.arguments||[]).catch(oe=>this._notificationService.error(oe));break}}})),n.schedule()}_disposeAllLenses(u,e){let t=new Nr;for(let n of this._lenses)n.dispose(t,e);u&&t.commit(u),this._lenses=[]}_renderCodeLensSymbols(u){if(!this._editor.hasModel())return;let e,t=this._editor.getModel().getLineCount(),n=[];for(let d of u.lenses){let m=d.symbol.range.startLineNumber;m<1||m>t||(e&&e[e.length-1].symbol.range.startLineNumber===m?e.push(d):(e=[d],n.push(e)))}let o=qt.c.capture(this._editor);this._editor.changeDecorations(d=>{this._editor.changeViewZones(m=>{let D=new Nr,oe=0,re=0;for(;re<n.length&&oe<this._lenses.length;){let ce=n[re][0].symbol.range.startLineNumber,Me=this._lenses[oe].getLineNumber();Me<ce?(this._lenses[oe].dispose(D,m),this._lenses.splice(oe,1)):Me===ce?(this._lenses[oe].updateCodeLensSymbols(n[re],D),re++,oe++):(this._lenses.splice(oe,0,new Ar(n[re],this._editor,this._styleClassName,D,m,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),oe++,re++)}for(;oe<this._lenses.length;)this._lenses[oe].dispose(D,m),this._lenses.splice(oe,1);for(;re<n.length;)this._lenses.push(new Ar(n[re],this._editor,this._styleClassName,D,m,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),re++;D.commit(d)})}),o.restore(this._editor)}_onViewportChanged(){this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);let u=this._editor.getModel();if(!u)return;let e=[],t=[];if(this._lenses.forEach(o=>{let d=o.computeIfNecessary(u);d&&(e.push(d),t.push(o))}),e.length===0)return;let n=Object(Bi.f)(o=>{let d=e.map((m,D)=>{let oe=new Array(m.length),re=m.map((ce,Me)=>ce.symbol.command||typeof ce.provider.resolveCodeLens!="function"?(oe[Me]=ce.symbol,Promise.resolve(void 0)):Promise.resolve(ce.provider.resolveCodeLens(u,ce.symbol,o)).then(Ct=>{oe[Me]=Ct},De.f));return Promise.all(re).then(()=>{o.isCancellationRequested||t[D].isDisposed()||t[D].updateCommands(oe)})});return Promise.all(d)});this._currentResolveCodeLensSymbolsPromise=n,this._currentResolveCodeLensSymbolsPromise.then(()=>{this._currentCodeLensModel&&this._codeLensCache.put(u,this._currentCodeLensModel),this._oldCodeLensModels.clear(),n===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)},o=>{Object(De.e)(o),n===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)})}getLenses(){return this._lenses}};Bo.ID="css.editor.codeLens",Bo=go([vr(1,Ee.b),vr(2,Re.a),vr(3,Sr)],Bo),Object($.m)(Bo.ID,Bo),Object($.k)(class extends $.b{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:z.a.hasCodeLensProvider,label:Object(G.a)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(u,e){return ls(this,void 0,void 0,function*(){if(!e.hasModel())return;let t=u.get(Ur.a),n=u.get(Ee.b),o=u.get(Re.a),d=e.getSelection().positionLineNumber,m=e.getContribution(Bo.ID),D=[];for(let re of m.getLenses())if(re.getLineNumber()===d)for(let ce of re.getItems()){let{command:Me}=ce.symbol;Me&&D.push({label:Me.title,command:Me})}if(D.length===0)return;let oe=yield t.pick(D,{canPickMany:!1});if(oe)try{yield n.executeCommand(oe.command.id,...oe.command.arguments||[])}catch(re){o.error(re)}})}});var Kn=r(15);function lo(u,e,t,n){return Promise.resolve(t.provideColorPresentations(u,e,n))}Object($.o)("_executeDocumentColorProvider",function(u,e){let{resource:t}=e;if(!(t instanceof On.a))throw Object(De.b)();let n=u.get(ne.a).getModel(t);if(!n)throw Object(De.b)();let o=[],d=I.c.ordered(n).reverse().map(m=>Promise.resolve(m.provideDocumentColors(n,Dn.a.None)).then(D=>{if(Array.isArray(D))for(let oe of D)o.push({range:oe.range,color:[oe.color.red,oe.color.green,oe.color.blue,oe.color.alpha]})}));return Promise.all(d).then(()=>o)}),Object($.o)("_executeColorPresentationProvider",function(u,e){let{resource:t,color:n,range:o}=e;if(!(t instanceof On.a&&Array.isArray(n)&&n.length===4&>.a.isIRange(o)))throw Object(De.b)();let[d,m,D,oe]=n,re=u.get(ne.a).getModel(t);if(!re)throw Object(De.b)();let ce={range:o,color:{red:d,green:m,blue:D,alpha:oe}},Me=[],Ct=I.c.ordered(re).reverse().map(Ut=>Promise.resolve(Ut.provideColorPresentations(re,ce,Dn.a.None)).then(St=>{Array.isArray(St)&&Me.push(...St)}));return Promise.all(Ct).then(()=>Me)});var kr=r(54),Lo=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},jo=function(u,e){return function(t,n){e(t,n,u)}};let $r=class rm extends Lt.a{constructor(e,t,n){super(),this._editor=e,this._codeEditorService=t,this._configurationService=n,this._localToDispose=this._register(new Lt.b),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel(o=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(o=>this.onModelChanged())),this._register(I.c.onDidChange(o=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(o=>{let d=this._isEnabled;this._isEnabled=this.isEnabled(),d!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){let o=n.colorDecorators;if(o&&o.enable!==void 0&&!o.enable)return o.enable}return this._editor.getOption(12)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;let e=this._editor.getModel();e&&I.c.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(t=>{this._timeoutTimer||(this._timeoutTimer=new Bi.e,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},rm.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(Bi.f)(e=>{let t=this._editor.getModel();return t?function(n,o){let d=[],m=I.c.ordered(n).reverse().map(D=>Promise.resolve(D.provideDocumentColors(n,o)).then(oe=>{if(Array.isArray(oe))for(let re of oe)d.push({colorInfo:re,provider:D})}));return Promise.all(m).then(()=>d)}(t,e):Promise.resolve([])}),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},De.e)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(n=>({range:{startLineNumber:n.colorInfo.range.startLineNumber,startColumn:n.colorInfo.range.startColumn,endLineNumber:n.colorInfo.range.endLineNumber,endColumn:n.colorInfo.range.endColumn},options:Rt.a.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,o)=>this._colorDatas.set(n,e[o]))}updateColorDecorators(e){let t=[],n={};for(let o=0;o<e.length&&t.length<500;o++){let{red:d,green:m,blue:D,alpha:oe}=e[o].colorInfo.color,re=new Kn.c(Math.round(255*d),Math.round(255*m),Math.round(255*D),oe),ce=Object(Lr.b)(`rgba(${re.r},${re.g},${re.b},${re.a})`).toString(16),Me=`rgba(${re.r}, ${re.g}, ${re.b}, ${re.a})`,Ct="colorBox-"+ce;this._decorationsTypes.has(Ct)||n[Ct]||this._codeEditorService.registerDecorationType(Ct,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:Me},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),n[Ct]=!0,t.push({range:{startLineNumber:e[o].colorInfo.range.startLineNumber,startColumn:e[o].colorInfo.range.startColumn,endLineNumber:e[o].colorInfo.range.endLineNumber,endColumn:e[o].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(Ct,!0)})}this._decorationsTypes.forEach(o=>{n[o]||this._codeEditorService.removeDecorationType(o)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(e=>{this._codeEditorService.removeDecorationType(e)})}getColorData(e){let t=this._editor.getModel();if(!t)return null;let n=t.getDecorationsInRange(gt.a.fromPositions(e,e)).filter(o=>this._colorDatas.has(o.id));return n.length===0?null:this._colorDatas.get(n[0].id)}};$r.ID="editor.contrib.colorDetector",$r.RECOMPUTE_TIME=1e3,$r=Lo([jo(1,Si.a),jo(2,kr.a)],$r),Object($.m)($r.ID,$r);var Cn=r(70),Ir=r(39);class Dr{constructor(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;let o=t.length;if(n+o>e.length)return!1;for(let d=0;d<o;d++){let m=e.charCodeAt(n+d),D=t.charCodeAt(d);if(m!==D&&!(m>=65&&m<=90&&m+32===D||D>=65&&D<=90&&D+32===m))return!1}return!0}_createOperationsForBlockComment(e,t,n,o,d,m){let D=e.startLineNumber,oe=e.startColumn,re=e.endLineNumber,ce=e.endColumn,Me=d.getLineContent(D),Ct=d.getLineContent(re),Ut,St=Me.lastIndexOf(t,oe-1+t.length),di=Ct.indexOf(n,ce-1-n.length);if(St!==-1&&di!==-1)if(D===re)Me.substring(St+t.length,di).indexOf(n)>=0&&(St=-1,di=-1);else{let hi=Me.substring(St+t.length),ji=Ct.substring(0,di);(hi.indexOf(n)>=0||ji.indexOf(n)>=0)&&(St=-1,di=-1)}St!==-1&&di!==-1?(o&&St+t.length<Me.length&&Me.charCodeAt(St+t.length)===32&&(t+=" "),o&&di>0&&Ct.charCodeAt(di-1)===32&&(n=" "+n,di-=1),Ut=Dr._createRemoveBlockCommentOperations(new gt.a(D,St+t.length+1,re,di+1),t,n)):(Ut=Dr._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=Ut.length===1?n:null);for(let hi of Ut)m.addTrackedEditOperation(hi.range,hi.text)}static _createRemoveBlockCommentOperations(e,t,n){let o=[];return gt.a.isEmpty(e)?o.push(Cn.a.delete(new gt.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(o.push(Cn.a.delete(new gt.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),o.push(Cn.a.delete(new gt.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),o}static _createAddBlockCommentOperations(e,t,n,o){let d=[];return gt.a.isEmpty(e)?d.push(Cn.a.replace(new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(d.push(Cn.a.insert(new Oi.a(e.startLineNumber,e.startColumn),t+(o?" ":""))),d.push(Cn.a.insert(new Oi.a(e.endLineNumber,e.endColumn),(o?" ":"")+n))),d}getEditOperations(e,t){let n=this._selection.startLineNumber,o=this._selection.startColumn;e.tokenizeIfCheap(n);let d=e.getLanguageIdAtPosition(n,o),m=Ir.a.getComments(d);m&&m.blockCommentStartToken&&m.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,m.blockCommentStartToken,m.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let n=t.getInverseEditOperations();if(n.length===2){let o=n[0],d=n[1];return new J.a(o.range.endLineNumber,o.range.endColumn,d.range.startLineNumber,d.range.startColumn)}{let o=n[0].range,d=this._usedEndToken?-this._usedEndToken.length-1:0;return new J.a(o.endLineNumber,o.endColumn+d,o.endLineNumber,o.endColumn+d)}}}class fo{constructor(e,t,n,o,d){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=d}static _gatherPreflightCommentStrings(e,t,n){e.tokenizeIfCheap(t);let o=e.getLanguageIdAtPosition(t,1),d=Ir.a.getComments(o),m=d?d.lineCommentToken:null;if(!m)return null;let D=[];for(let oe=0,re=n-t+1;oe<re;oe++)D[oe]={ignore:!1,commentStr:m,commentStrOffset:0,commentStrLength:m.length};return D}static _analyzeLines(e,t,n,o,d,m){let D,oe=!0;D=e===0||e!==1;for(let re=0,ce=o.length;re<ce;re++){let Me=o[re],Ct=d+re,Ut=n.getLineContent(Ct),St=rn.w(Ut);if(St!==-1){if(oe=!1,Me.ignore=!1,Me.commentStrOffset=St,D&&!Dr._haystackHasNeedleAtOffset(Ut,Me.commentStr,St)&&(e===0?D=!1:e===1||(Me.ignore=!0)),D&&t){let di=St+Me.commentStrLength;di<Ut.length&&Ut.charCodeAt(di)===32&&(Me.commentStrLength+=1)}}else Me.ignore=m,Me.commentStrOffset=Ut.length}if(e===0&&oe){D=!1;for(let re=0,ce=o.length;re<ce;re++)o[re].ignore=!1}return{supported:!0,shouldRemoveComments:D,lines:o}}static _gatherPreflightData(e,t,n,o,d,m){let D=fo._gatherPreflightCommentStrings(n,o,d);return D===null?{supported:!1}:fo._analyzeLines(e,t,n,D,o,m)}_executeLineComments(e,t,n,o){let d;n.shouldRemoveComments?d=fo._createRemoveLineCommentsOperations(n.lines,o.startLineNumber):(fo._normalizeInsertionPoint(e,n.lines,o.startLineNumber,this._tabSize),d=this._createAddLineCommentsOperations(n.lines,o.startLineNumber));let m=new Oi.a(o.positionLineNumber,o.positionColumn);for(let D=0,oe=d.length;D<oe;D++)t.addEditOperation(d[D].range,d[D].text),gt.a.isEmpty(d[D].range)&>.a.getStartPosition(d[D].range).equals(m)&&e.getLineContent(m.lineNumber).length+1===m.column&&(this._deltaColumn=(d[D].text||"").length);this._selectionId=t.trackSelection(o)}_attemptRemoveBlockComment(e,t,n,o){let d=t.startLineNumber,m=t.endLineNumber,D=o.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),oe=e.getLineContent(d).lastIndexOf(n,D-1),re=e.getLineContent(m).indexOf(o,t.endColumn-1-n.length);return oe!==-1&&re===-1&&(re=e.getLineContent(d).indexOf(o,oe+n.length),m=d),oe===-1&&re!==-1&&(oe=e.getLineContent(m).lastIndexOf(n,re),d=m),!t.isEmpty()||oe!==-1&&re!==-1||(oe=e.getLineContent(d).indexOf(n),oe!==-1&&(re=e.getLineContent(d).indexOf(o,oe+n.length))),oe!==-1&&e.getLineContent(d).charCodeAt(oe+n.length)===32&&(n+=" "),re!==-1&&e.getLineContent(m).charCodeAt(re-1)===32&&(o=" "+o,re-=1),oe!==-1&&re!==-1?Dr._createRemoveBlockCommentOperations(new gt.a(d,oe+n.length+1,m,re+1),n,o):null}_executeBlockComment(e,t,n){e.tokenizeIfCheap(n.startLineNumber);let o=e.getLanguageIdAtPosition(n.startLineNumber,1),d=Ir.a.getComments(o);if(!d||!d.blockCommentStartToken||!d.blockCommentEndToken)return;let m=d.blockCommentStartToken,D=d.blockCommentEndToken,oe=this._attemptRemoveBlockComment(e,n,m,D);if(!oe){if(n.isEmpty()){let re=e.getLineContent(n.startLineNumber),ce=rn.w(re);ce===-1&&(ce=re.length),oe=Dr._createAddBlockCommentOperations(new gt.a(n.startLineNumber,ce+1,n.startLineNumber,re.length+1),m,D,this._insertSpace)}else oe=Dr._createAddBlockCommentOperations(new gt.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),m,D,this._insertSpace);oe.length===1&&(this._deltaColumn=m.length+1)}this._selectionId=t.trackSelection(n);for(let re of oe)t.addEditOperation(re.range,re.text)}getEditOperations(e,t){let n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let o=fo._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber,this._ignoreEmptyLines);return o.supported?this._executeLineComments(e,t,o,n):this._executeBlockComment(e,t,n)}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new J.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){let n=[];for(let o=0,d=e.length;o<d;o++){let m=e[o];m.ignore||n.push(Cn.a.delete(new gt.a(t+o,m.commentStrOffset+1,t+o,m.commentStrOffset+m.commentStrLength+1)))}return n}_createAddLineCommentsOperations(e,t){let n=[],o=this._insertSpace?" ":"";for(let d=0,m=e.length;d<m;d++){let D=e[d];D.ignore||n.push(Cn.a.insert(new Oi.a(t+d,D.commentStrOffset+1),D.commentStr+o))}return n}static nextVisibleColumn(e,t,n,o){return n?e+(t-e%t):e+o}static _normalizeInsertionPoint(e,t,n,o){let d,m,D=1073741824;for(let oe=0,re=t.length;oe<re;oe++){if(t[oe].ignore)continue;let ce=e.getLineContent(n+oe),Me=0;for(let Ct=0,Ut=t[oe].commentStrOffset;Me<D&&Ct<Ut;Ct++)Me=fo.nextVisibleColumn(Me,o,ce.charCodeAt(Ct)===9,1);Me<D&&(D=Me)}D=Math.floor(D/o)*o;for(let oe=0,re=t.length;oe<re;oe++){if(t[oe].ignore)continue;let ce=e.getLineContent(n+oe),Me=0;for(d=0,m=t[oe].commentStrOffset;Me<D&&d<m;d++)Me=fo.nextVisibleColumn(Me,o,ce.charCodeAt(d)===9,1);t[oe].commentStrOffset=Me>D?d-1:d}}}class zn extends $.b{constructor(e,t){super(t),this._type=e}run(e,t){if(!t.hasModel())return;let n=t.getModel(),o=[],d=t.getSelections(),m=n.getOptions(),D=t.getOption(14);for(let oe of d)o.push(new fo(oe,m.tabSize,this._type,D.insertSpace,D.ignoreEmptyLines));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class er extends $.b{constructor(){super({id:"editor.action.blockComment",label:G.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"5_insert",title:G.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){if(!t.hasModel())return;let n=t.getOption(14),o=[],d=t.getSelections();for(let m of d)o.push(new Dr(m,n.insertSpace));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}Object($.k)(class extends zn{constructor(){super(0,{id:"editor.action.commentLine",label:G.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"5_insert",title:G.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),Object($.k)(class extends zn{constructor(){super(1,{id:"editor.action.addCommentLine",label:G.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2081),weight:100}})}}),Object($.k)(class extends zn{constructor(){super(2,{id:"editor.action.removeCommentLine",label:G.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2099),weight:100}})}}),Object($.k)(er);var bo=r(123),va=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},es=function(u,e){return function(t,n){e(t,n,u)}};let Vo=class om{constructor(e,t,n,o,d,m){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=o,this._keybindingService=d,this._menuService=m,this._toDispose=new Lt.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(D=>this._onContextMenu(D))),this._toDispose.add(this._editor.onMouseWheel(D=>{if(this._contextMenuIsBeingShownCount>0){let oe=this._contextViewService.getContextViewElement(),re=D.srcElement;re.shadowRoot&&ae.E(oe)===re.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(D=>{D.keyCode===58&&(D.preventDefault(),D.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(om.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(15))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(e.target.type===12||(e.event.preventDefault(),e.target.type!==6&&e.target.type!==7&&e.target.type!==1))return;if(this._editor.focus(),e.target.position){let n=!1;for(let o of this._editor.getSelections())if(o.containsPosition(e.target.position)){n=!0;break}n||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(15)||!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();let t=this._getMenuActions(this._editor.getModel(),ze.b.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let n=[],o=this._menuService.createMenu(t,this._contextKeyService),d=o.getActions({arg:e.uri});o.dispose();for(let m of d){let[,D]=m,oe=0;for(let re of D)if(re instanceof ze.e){let ce=this._getMenuActions(e,re.item.submenu);ce.length>0&&(n.push(new Ge.d(re.id,re.label,ce)),oe++)}else n.push(re),oe++;oe&&n.push(new Ge.c)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let n=this._editor.getOption(46);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let o=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),d=ae.C(this._editor.getDomNode()),m=d.left+o.left,D=d.top+o.top+o.height;t={x:m,y:D}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>t,getActions:()=>e,getActionViewItem:o=>{let d=this._keybindingFor(o);if(d)return new bo.a(o,o,{label:!0,keybinding:d.getLabel(),isMenu:!0});let m=o;return typeof m.getActionViewItem=="function"?m.getActionViewItem():new bo.a(o,o,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:o=>this._keybindingFor(o),onHide:o=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:n})}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Vo.ID="editor.contrib.contextmenu",Vo=va([es(1,lt.a),es(2,lt.b),es(3,A.b),es(4,Ot.a),es(5,ze.a)],Vo);class No extends $.b{constructor(){super({id:"editor.action.showContextMenu",label:G.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1092,weight:100}})}run(e,t){Vo.get(t).showContextMenu()}}Object($.m)(Vo.ID,Vo),Object($.k)(No);class ts{constructor(e){this.selections=e}equals(e){let t=this.selections.length;if(t!==e.selections.length)return!1;for(let n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0}}class na{constructor(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n}}class is extends Lt.a{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;let n=new ts(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n)||(this._undoStack.push(new na(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(is.ID)}cursorUndo(){this._editor.hasModel()&&this._undoStack.length!==0&&(this._redoStack.push(new na(new ts(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&this._redoStack.length!==0&&(this._undoStack.push(new na(new ts(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}is.ID="editor.contrib.cursorUndoRedoController";class Uo extends $.b{constructor(){super({id:"cursorUndo",label:G.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2099,weight:100}})}run(e,t,n){is.get(t).cursorUndo()}}class cs extends $.b{constructor(){super({id:"cursorRedo",label:G.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){is.get(t).cursorRedo()}}Object($.m)(is.ID,is),Object($.k)(Uo),Object($.k)(cs),r(291);class co{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){let n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new gt.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new J.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new J.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new J.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function io(u){return Et.f?u.altKey:u.ctrlKey}class _o extends Lt.a{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(io(e)&&(this._modifierPressed=!0),this._mouseDown&&io(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(io(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_o.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(this._dragSelection===null){let n=(this._editor.getSelections()||[]).filter(o=>t.position&&o.containsPosition(t.position));if(n.length!==1)return;this._dragSelection=n[0]}io(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new Oi.a(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let n=null;if(e.event.shiftKey){let o=this._editor.getSelection();if(o){let{selectionStartLineNumber:d,selectionStartColumn:m}=o;n=[new J.a(d,m,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(o=>o.containsPosition(t)?new J.a(t.lineNumber,t.column,t.lineNumber,t.column):o);this._editor.setSelections(n||[],"mouse")}else(!this._dragSelection.containsPosition(t)||(io(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_o.ID,new co(this._dragSelection,t,io(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){let t=[{range:new gt.a(e.lineNumber,e.column,e.lineNumber,e.column),options:_o._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_o.ID="editor.contrib.dragAndDrop",_o.TRIGGER_KEY_VALUE=Et.f?6:5,_o._DECORATION_OPTIONS=Rt.a.register({className:"dnd-target"}),Object($.m)(_o.ID,_o);var wa=r(106);class Wr{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(let n of t){let o=n.options;if(o===Wr._FIND_MATCH_DECORATION||o===Wr._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(n.id)}return 0}setCurrentFindMatch(e){let t=null,n=0;if(e)for(let o=0,d=this._decorations.length;o<d;o++){let m=this._editor.getModel().getDecorationRange(this._decorations[o]);if(e.equalsRange(m)){t=this._decorations[o],n=o+1;break}}return this._highlightedDecorationId===null&&t===null||this._editor.changeDecorations(o=>{if(this._highlightedDecorationId!==null&&(o.changeDecorationOptions(this._highlightedDecorationId,Wr._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,o.changeDecorationOptions(this._highlightedDecorationId,Wr._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(o.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let d=this._editor.getModel().getDecorationRange(t);if(d.startLineNumber!==d.endLineNumber&&d.endColumn===1){let m=d.endLineNumber-1,D=this._editor.getModel().getLineMaxColumn(m);d=new gt.a(d.startLineNumber,d.startColumn,m,D)}this._rangeHighlightDecorationId=o.addDecoration(d,Wr._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let o=Wr._FIND_MATCH_DECORATION,d=[];if(e.length>1e3){o=Wr._FIND_MATCH_NO_OVERVIEW_DECORATION;let D=this._editor.getModel().getLineCount(),oe=this._editor.getLayoutInfo().height/D,re=Math.max(2,Math.ceil(3/oe)),ce=e[0].range.startLineNumber,Me=e[0].range.endLineNumber;for(let Ct=1,Ut=e.length;Ct<Ut;Ct++){let St=e[Ct].range;Me+re>=St.startLineNumber?St.endLineNumber>Me&&(Me=St.endLineNumber):(d.push({range:new gt.a(ce,1,Me,1),options:Wr._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),ce=St.startLineNumber,Me=St.endLineNumber)}d.push({range:new gt.a(ce,1,Me,1),options:Wr._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let m=new Array(e.length);for(let D=0,oe=e.length;D<oe;D++)m[D]={range:e[D].range,options:o};this._decorations=n.deltaDecorations(this._decorations,m),this._overviewRulerApproximateDecorations=n.deltaDecorations(this._overviewRulerApproximateDecorations,d),this._rangeHighlightDecorationId&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(D=>n.removeDecoration(D)),this._findScopeDecorationIds=[]),(t==null?void 0:t.length)&&(this._findScopeDecorationIds=t.map(D=>n.addDecoration(D,Wr._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],o=this._editor.getModel().getDecorationRange(n);if(o&&!(o.endLineNumber>e.lineNumber)&&(o.endLineNumber<e.lineNumber||!(o.endColumn>e.column)))return o}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,n=this._decorations.length;t<n;t++){let o=this._decorations[t],d=this._editor.getModel().getDecorationRange(o);if(d&&!(d.startLineNumber<e.lineNumber)&&(d.startLineNumber>e.lineNumber||!(d.startColumn<e.column)))return d}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}Wr._CURRENT_FIND_MATCH_DECORATION=Rt.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center},minimap:{color:Object(ut.h)(Ue.Ob),position:vi.c.Inline}}),Wr._FIND_MATCH_DECORATION=Rt.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center},minimap:{color:Object(ut.h)(Ue.Ob),position:vi.c.Inline}}),Wr._FIND_MATCH_NO_OVERVIEW_DECORATION=Rt.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),Wr._FIND_MATCH_ONLY_OVERVIEW_DECORATION=Rt.a.register({stickiness:1,overviewRuler:{color:Object(ut.h)(Ue.Vb),position:vi.d.Center}}),Wr._RANGE_HIGHLIGHT_DECORATION=Rt.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),Wr._FIND_SCOPE_DECORATION=Rt.a.register({className:"findScope",isWholeLine:!0});class Cs{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let n=[];for(let m=0;m<this._ranges.length;m++)n.push({range:this._ranges[m],text:this._replaceStrings[m]});n.sort((m,D)=>gt.a.compareRangesUsingStarts(m.range,D.range));let o=[],d=n[0];for(let m=1;m<n.length;m++)d.range.endLineNumber===n[m].range.startLineNumber&&d.range.endColumn===n[m].range.startColumn?(d.range=d.range.plusRange(n[m].range),d.text=d.text+n[m].text):(o.push(d),d=n[m]);o.push(d);for(let m of o)t.addEditOperation(m.range,m.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function Ho(u,e){if(u&&u[0]!==""){let t=ya(u,e,"-"),n=ya(u,e,"_");return t&&!n?vo(u,e,"-"):!t&&n?vo(u,e,"_"):u[0].toUpperCase()===u[0]?e.toUpperCase():u[0].toLowerCase()===u[0]?e.toLowerCase():rn.o(u[0][0])&&e.length>0?e[0].toUpperCase()+e.substr(1):e}return e}function ya(u,e,t){return u[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&u[0].split(t).length===e.split(t).length}function vo(u,e,t){let n=e.split(t),o=u[0].split(t),d="";return n.forEach((m,D)=>{d+=Ho([o[D]],m)+t}),d.slice(0,-1)}class ds{constructor(e){this.staticValue=e,this.kind=0}}class ra{constructor(e){this.pieces=e,this.kind=1}}class wo{constructor(e){e&&e.length!==0?e.length===1&&e[0].staticValue!==null?this._state=new ds(e[0].staticValue):this._state=new ra(e):this._state=new ds("")}static fromStaticValue(e){return new wo([ns.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Ho(e,this._state.staticValue):this._state.staticValue;let n="";for(let o=0,d=this._state.pieces.length;o<d;o++){let m=this._state.pieces[o];if(m.staticValue!==null){n+=m.staticValue;continue}let D=wo._substitute(m.matchIndex,e);if(m.caseOps!==null&&m.caseOps.length>0){let oe=[],re=m.caseOps.length,ce=0;for(let Me=0,Ct=D.length;Me<Ct;Me++){if(ce>=re){oe.push(D.slice(Me));break}switch(m.caseOps[ce]){case"U":oe.push(D[Me].toUpperCase());break;case"u":oe.push(D[Me].toUpperCase()),ce++;break;case"L":oe.push(D[Me].toLowerCase());break;case"l":oe.push(D[Me].toLowerCase()),ce++;break;default:oe.push(D[Me])}}D=oe.join("")}n+=D}return n}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let n="";for(;e>0;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n}}class ns{constructor(e,t,n){this.staticValue=e,this.matchIndex=t,n&&n.length!==0?this.caseOps=n.slice(0):this.caseOps=null}static staticValue(e){return new ns(e,-1,null)}static caseOps(e,t){return new ns(null,e,t)}}class Ui{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){e.length!==0&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=ns.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=ns.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=ns.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new wo(this._result)}}let no=new A.c("findWidgetVisible",!1),xs=new A.c("findInputFocussed",!1),yo=new A.c("replaceInputFocussed",!1),qo={primary:545,mac:{primary:2593}},Ss={primary:565,mac:{primary:2613}},hs={primary:560,mac:{primary:2608}},us={primary:554,mac:{primary:2602}},Ca="actions.find",xa="actions.findWithSelection",ks="editor.action.nextMatchFindAction",Io="editor.action.previousMatchFindAction",$o="editor.action.nextSelectionMatchFindAction",Vs="editor.action.previousSelectionMatchFindAction",Es="editor.action.startFindReplaceAction",ps="closeFindWidget",Us="toggleFindCaseSensitive",Ko="toggleFindWholeWord",rs="toggleFindRegex",Hs="toggleFindInSelection",ms="editor.action.replaceOne",gs="editor.action.replaceAll",Do="editor.action.selectAllMatches";class Kr{constructor(e,t){this._toDispose=new Lt.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new Bi.e,this._decorations=new Wr(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new Bi.d(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(n=>{n.reason!==3&&n.reason!==5&&n.reason!==6||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(n=>{this._ignoreModelContentChanged||(n.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(n=>this._onStateChanged(n))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(Lt.f)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let n=null;t!==void 0?t!==null&&(n=Array.isArray(t)?t:[t]):n=this._decorations.getFindScopes(),n!==null&&(n=n.map(D=>{if(D.startLineNumber!==D.endLineNumber){let oe=D.endLineNumber;return D.endColumn===1&&(oe-=1),new gt.a(D.startLineNumber,1,oe,this._editor.getModel().getLineMaxColumn(oe))}return D}));let o=this._findMatches(n,!1,19999);this._decorations.set(o,n);let d=this._editor.getSelection(),m=this._decorations.getCurrentMatchesPosition(d);if(m===0&&o.length>0){let D=Object(ee.h)(o.map(oe=>oe.range),oe=>gt.a.compareRangesUsingStarts(oe,d)>=0);m=D>0?D-1+1:m}this._state.changeMatchInfo(m,this._decorations.getCount(),void 0),e&&this._editor.getOption(29).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:o}=e,d=this._editor.getModel();return t||o===1?(n===1?n=d.getLineCount():n--,o=d.getLineMaxColumn(n)):o--,new Oi.a(n,o)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let ce=this._decorations.matchAfterPosition(e);return void(ce&&this._setCurrentFindMatch(ce))}if(this._decorations.getCount()<19999){let ce=this._decorations.matchBeforePosition(e);return ce&&ce.isEmpty()&&ce.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),ce=this._decorations.matchBeforePosition(e)),void(ce&&this._setCurrentFindMatch(ce))}if(this._cannotFind())return;let n=this._decorations.getFindScope(),o=Kr._getSearchRange(this._editor.getModel(),n);o.getEndPosition().isBefore(e)&&(e=o.getEndPosition()),e.isBefore(o.getStartPosition())&&(e=o.getEndPosition());let{lineNumber:d,column:m}=e,D=this._editor.getModel(),oe=new Oi.a(d,m),re=D.findPreviousMatch(this._state.searchString,oe,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1);return re&&re.range.isEmpty()&&re.range.getStartPosition().equals(oe)&&(oe=this._prevSearchPosition(oe),re=D.findPreviousMatch(this._state.searchString,oe,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1)),re?t||o.containsRange(re.range)?void this._setCurrentFindMatch(re.range):this._moveToPrevMatch(re.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:o}=e,d=this._editor.getModel();return t||o===d.getLineMaxColumn(n)?(n===d.getLineCount()?n=1:n++,o=1):o++,new Oi.a(n,o)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let n=this._decorations.matchBeforePosition(e);return void(n&&this._setCurrentFindMatch(n))}if(this._decorations.getCount()<19999){let n=this._decorations.matchAfterPosition(e);return n&&n.isEmpty()&&n.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),n=this._decorations.matchAfterPosition(e)),void(n&&this._setCurrentFindMatch(n))}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,n,o=!1){if(this._cannotFind())return null;let d=this._decorations.getFindScope(),m=Kr._getSearchRange(this._editor.getModel(),d);m.getEndPosition().isBefore(e)&&(e=m.getStartPosition()),e.isBefore(m.getStartPosition())&&(e=m.getStartPosition());let{lineNumber:D,column:oe}=e,re=this._editor.getModel(),ce=new Oi.a(D,oe),Me=re.findNextMatch(this._state.searchString,ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t);return n&&Me&&Me.range.isEmpty()&&Me.range.getStartPosition().equals(ce)&&(ce=this._nextSearchPosition(ce),Me=re.findNextMatch(this._state.searchString,ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t)),Me?o||m.containsRange(Me.range)?Me:this._getNextMatch(Me.range.getEndPosition(),t,n,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||e.length===0)return new wo(null);let t=[],n=new Ui(e);for(let o=0,d=e.length;o<d;o++){let m=e.charCodeAt(o);if(m!==92){if(m===36){if(o++,o>=d)break;let D=e.charCodeAt(o);if(D===36){n.emitUnchanged(o-1),n.emitStatic("$",o+1);continue}if(D===48||D===38){n.emitUnchanged(o-1),n.emitMatchIndex(0,o+1,t),t.length=0;continue}if(49<=D&&D<=57){let oe=D-48;if(o+1<d){let re=e.charCodeAt(o+1);if(48<=re&&re<=57){o++,oe=10*oe+(re-48),n.emitUnchanged(o-2),n.emitMatchIndex(oe,o+1,t),t.length=0;continue}}n.emitUnchanged(o-1),n.emitMatchIndex(oe,o+1,t),t.length=0;continue}}}else{if(o++,o>=d)break;let D=e.charCodeAt(o);switch(D){case 92:n.emitUnchanged(o-1),n.emitStatic("\\",o+1);break;case 110:n.emitUnchanged(o-1),n.emitStatic(` +`,o+1);break;case 116:n.emitUnchanged(o-1),n.emitStatic(" ",o+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(o-1),n.emitStatic("",o+1),t.push(String.fromCharCode(D))}}}return n.finalize()}(this._state.replaceString):wo.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){let o=e.buildReplaceString(n.matches,this._state.preserveCase),d=new $i.a(t,o);this._executeEditorCommand("replace",d),this._decorations.setStartPosition(new Oi.a(t.startLineNumber,t.startColumn+o.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}_findMatches(e,t,n){let o=(e||[null]).map(d=>Kr._getSearchRange(this._editor.getModel(),d));return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t,n)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let e=new wa.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let ce="mu";t.ignoreCase&&(ce+="i"),t.global&&(ce+="g"),t=new RegExp(t.source,ce)}let n=this._editor.getModel(),o=n.getValue(1),d=n.getFullModelRange(),m=this._getReplacePattern(),D,oe=this._state.preserveCase;D=m.hasReplacementPatterns||oe?o.replace(t,function(){return m.buildReplaceString(arguments,oe)}):o.replace(t,m.buildReplaceString(null,oe));let re=new $i.b(d,D,this._editor.getSelection());this._executeEditorCommand("replaceAll",re)}_regularReplaceAll(e){let t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),o=[];for(let m=0,D=n.length;m<D;m++)o[m]=t.buildReplaceString(n[m].matches,this._state.preserveCase);let d=new Cs(this._editor.getSelection(),n.map(m=>m.range),o);this._executeEditorCommand("replaceAll",d)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(o=>new J.a(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,d=t.length;o<d;o++)if(t[o].equalsRange(n)){t=[n].concat(t.slice(0,o)).concat(t.slice(o+1));break}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}r(293);var ro=r(82);let Sa={inputActiveOptionBorder:Kn.a.fromHex("#007ACC00"),inputActiveOptionForeground:Kn.a.fromHex("#FFFFFF"),inputActiveOptionBackground:Kn.a.fromHex("#0E639C50")};class qs extends ro.a{constructor(e){super(),this._onChange=this._register(new ot.a),this.onChange=this._onChange.event,this._onKeyDown=this._register(new ot.a),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},Sa),e),this._checked=this._opts.isChecked;let t=["monaco-custom-checkbox"];this._opts.icon?t.push(this._opts.icon.classNames):t.push("codicon"),this._opts.actionClassName&&t.push(this._opts.actionClassName),t.push(this._checked?"checked":"unchecked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.className=t.join(" "),this.domNode.tabIndex=0,this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,n=>{this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3)return this.checked=!this._checked,this._onChange.fire(!0),void n.preventDefault();this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))}disable(){ae.T(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))}}let Oo=G.a("caseDescription","Match Case"),Ao=G.a("wordsDescription","Match Whole Word"),$s=G.a("regexDescription","Use Regular Expression");class ka extends qs{constructor(e){super({icon:de.a.caseSensitive,title:Oo+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ho extends qs{constructor(e){super({icon:de.a.wholeWord,title:Ao+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Ks extends qs{constructor(e){super({icon:de.a.regex,title:$s+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Ts extends ro.a{constructor(e,t,n,o){super(),this._hideSoon=this._register(new Bi.d(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=n,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let d=o.getColorTheme().getColor(Ue.db),m=o.getColorTheme().getColor(Ue.eb),D=o.getColorTheme().getColor(Ue.cb);this.caseSensitive=this._register(new ka({appendTitle:this._keybindingLabelFor(Us),isChecked:this._state.matchCase,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:D})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new ho({appendTitle:this._keybindingLabelFor(Ko),isChecked:this._state.wholeWord,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:D})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Ks({appendTitle:this._keybindingLabelFor(rs),isChecked:this._state.isRegex,inputActiveOptionBorder:d,inputActiveOptionForeground:m,inputActiveOptionBackground:D})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(oe=>{let re=!1;oe.isRegex&&(this.regex.checked=this._state.isRegex,re=!0),oe.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,re=!0),oe.matchCase&&(this.caseSensitive.checked=this._state.matchCase,re=!0),!this._state.isRevealed&&re&&this._revealTemporarily()})),this._register(ae.j(this._domNode,oe=>this._onMouseOut())),this._register(ae.i(this._domNode,"mouseover",oe=>this._onMouseOver())),this._applyTheme(o.getColorTheme()),this._register(o.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Ts.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(Ue.db),inputActiveOptionForeground:e.getColor(Ue.eb),inputActiveOptionBackground:e.getColor(Ue.cb)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}function Xr(u,e){return u===1||u!==2&&e}Ts.ID="editor.contrib.findOptionsWidget",Object(ut.g)((u,e)=>{let t=u.getColor(Ue.U);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);let n=u.getColor(Ue.W);n&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${n}; }`);let o=u.getColor(Ue.uc);o&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ${o}; }`);let d=u.getColor(Ue.h);d&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${d}; }`)});class oo extends Lt.a{constructor(){super(),this._onFindReplaceStateChange=this._register(new ot.a),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Xr(this._isRegexOverride,this._isRegex)}get wholeWord(){return Xr(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Xr(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Xr(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,n){let o={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},d=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,o.matchesPosition=!0,d=!0),this._matchesCount!==t&&(this._matchesCount=t,o.matchesCount=!0,d=!0),n!==void 0&&(gt.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,o.currentMatch=!0,d=!0)),d&&this._onFindReplaceStateChange.fire(o)}change(e,t,n=!0){var o;let d={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},m=!1,D=this.isRegex,oe=this.wholeWord,re=this.matchCase,ce=this.preserveCase;e.searchString!==void 0&&this._searchString!==e.searchString&&(this._searchString=e.searchString,d.searchString=!0,m=!0),e.replaceString!==void 0&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,d.replaceString=!0,m=!0),e.isRevealed!==void 0&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,d.isRevealed=!0,m=!0),e.isReplaceRevealed!==void 0&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,d.isReplaceRevealed=!0,m=!0),e.isRegex!==void 0&&(this._isRegex=e.isRegex),e.wholeWord!==void 0&&(this._wholeWord=e.wholeWord),e.matchCase!==void 0&&(this._matchCase=e.matchCase),e.preserveCase!==void 0&&(this._preserveCase=e.preserveCase),e.searchScope!==void 0&&(((o=e.searchScope)===null||o===void 0?void 0:o.every(Me=>{var Ct;return(Ct=this._searchScope)===null||Ct===void 0?void 0:Ct.some(Ut=>!gt.a.equalsRange(Ut,Me))}))||(this._searchScope=e.searchScope,d.searchScope=!0,m=!0)),e.loop!==void 0&&this._loop!==e.loop&&(this._loop=e.loop,d.loop=!0,m=!0),this._isRegexOverride=e.isRegexOverride!==void 0?e.isRegexOverride:0,this._wholeWordOverride=e.wholeWordOverride!==void 0?e.wholeWordOverride:0,this._matchCaseOverride=e.matchCaseOverride!==void 0?e.matchCaseOverride:0,this._preserveCaseOverride=e.preserveCaseOverride!==void 0?e.preserveCaseOverride:0,D!==this.isRegex&&(m=!0,d.isRegex=!0),oe!==this.wholeWord&&(m=!0,d.wholeWord=!0),re!==this.matchCase&&(m=!0,d.matchCase=!0),ce!==this.preserveCase&&(m=!0,d.preserveCase=!0),m&&this._onFindReplaceStateChange.fire(d)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=19999}}r(295);var oa=r(153),Ls=(r(198),r(173));let Hr=G.a("defaultLabel","input");class Ns extends ro.a{constructor(e,t,n,o){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this._onDidOptionChange=this._register(new ot.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new ot.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new ot.a),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new ot.a),this._onKeyUp=this._register(new ot.a),this._onCaseSensitiveKeyDown=this._register(new ot.a),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new ot.a),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=o.placeholder||"",this.validation=o.validation,this.label=o.label||Hr,this.inputActiveOptionBorder=o.inputActiveOptionBorder,this.inputActiveOptionForeground=o.inputActiveOptionForeground,this.inputActiveOptionBackground=o.inputActiveOptionBackground,this.inputBackground=o.inputBackground,this.inputForeground=o.inputForeground,this.inputBorder=o.inputBorder,this.inputValidationInfoBorder=o.inputValidationInfoBorder,this.inputValidationInfoBackground=o.inputValidationInfoBackground,this.inputValidationInfoForeground=o.inputValidationInfoForeground,this.inputValidationWarningBorder=o.inputValidationWarningBorder,this.inputValidationWarningBackground=o.inputValidationWarningBackground,this.inputValidationWarningForeground=o.inputValidationWarningForeground,this.inputValidationErrorBorder=o.inputValidationErrorBorder,this.inputValidationErrorBackground=o.inputValidationErrorBackground,this.inputValidationErrorForeground=o.inputValidationErrorForeground;let d=o.appendCaseSensitiveLabel||"",m=o.appendWholeWordsLabel||"",D=o.appendRegexLabel||"",oe=o.history||[],re=!!o.flexibleHeight,ce=!!o.flexibleWidth,Me=o.flexibleMaxHeight;this.domNode=document.createElement("div"),ae.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Ls.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:oe,flexibleHeight:re,flexibleWidth:ce,flexibleMaxHeight:Me})),this.regex=this._register(new Ks({appendTitle:D,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(St=>{this._onRegexKeyDown.fire(St)})),this.wholeWords=this._register(new ho({appendTitle:m,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new ka({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(St=>{this._onDidOptionChange.fire(St),!St&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(St=>{this._onCaseSensitiveKeyDown.fire(St)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let Ct=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,St=>{if(St.equals(15)||St.equals(17)||St.equals(9)){let di=Ct.indexOf(document.activeElement);if(di>=0){let hi=-1;St.equals(17)?hi=(di+1)%Ct.length:St.equals(15)&&(hi=di===0?Ct.length-1:di-1),St.equals(9)?Ct[di].blur():hi>=0&&Ct[hi].focus(),ae.b.stop(St,!0)}}});let Ut=document.createElement("div");Ut.className="controls",Ut.style.display=this._showOptionButtons?"block":"none",Ut.appendChild(this.caseSensitive.domNode),Ut.appendChild(this.wholeWords.domNode),Ut.appendChild(this.regex.domNode),this.domNode.appendChild(Ut),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,St=>this._onKeyDown.fire(St)),this.onkeyup(this.inputBox.inputElement,St=>this._onKeyUp.fire(St)),this.oninput(this.inputBox.inputElement,St=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,St=>this._onMouseDown.fire(St))}enable(){ae.Q(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){ae.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){ae.Q(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ae.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}var so=r(92);let Zt=G.a("defaultLabel","input"),i=G.a("label.preserveCaseCheckbox","Preserve Case");class a extends qs{constructor(e){super({icon:de.a.preserveCase,title:i+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class _ extends ro.a{constructor(e,t,n,o){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new ot.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new ot.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new ot.a),this._onInput=this._register(new ot.a),this._onKeyUp=this._register(new ot.a),this._onPreserveCaseKeyDown=this._register(new ot.a),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=o.placeholder||"",this.validation=o.validation,this.label=o.label||Zt,this.inputActiveOptionBorder=o.inputActiveOptionBorder,this.inputActiveOptionForeground=o.inputActiveOptionForeground,this.inputActiveOptionBackground=o.inputActiveOptionBackground,this.inputBackground=o.inputBackground,this.inputForeground=o.inputForeground,this.inputBorder=o.inputBorder,this.inputValidationInfoBorder=o.inputValidationInfoBorder,this.inputValidationInfoBackground=o.inputValidationInfoBackground,this.inputValidationInfoForeground=o.inputValidationInfoForeground,this.inputValidationWarningBorder=o.inputValidationWarningBorder,this.inputValidationWarningBackground=o.inputValidationWarningBackground,this.inputValidationWarningForeground=o.inputValidationWarningForeground,this.inputValidationErrorBorder=o.inputValidationErrorBorder,this.inputValidationErrorBackground=o.inputValidationErrorBackground,this.inputValidationErrorForeground=o.inputValidationErrorForeground;let d=o.history||[],m=!!o.flexibleHeight,D=!!o.flexibleWidth,oe=o.flexibleMaxHeight;this.domNode=document.createElement("div"),ae.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Ls.a(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:d,flexibleHeight:m,flexibleWidth:D,flexibleMaxHeight:oe})),this.preserveCase=this._register(new a({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(Me=>{this._onDidOptionChange.fire(Me),!Me&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(Me=>{this._onPreserveCaseKeyDown.fire(Me)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let re=[this.preserveCase.domNode];this.onkeydown(this.domNode,Me=>{if(Me.equals(15)||Me.equals(17)||Me.equals(9)){let Ct=re.indexOf(document.activeElement);if(Ct>=0){let Ut=-1;Me.equals(17)?Ut=(Ct+1)%re.length:Me.equals(15)&&(Ut=Ct===0?re.length-1:Ct-1),Me.equals(9)?re[Ct].blur():Ut>=0&&re[Ut].focus(),ae.b.stop(Me,!0)}}});let ce=document.createElement("div");ce.className="controls",ce.style.display=this._showOptionButtons?"block":"none",ce.appendChild(this.preserveCase.domNode),this.domNode.appendChild(ce),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,Me=>this._onKeyDown.fire(Me)),this.onkeyup(this.inputBox.inputElement,Me=>this._onKeyUp.fire(Me)),this.oninput(this.inputBox.inputElement,Me=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,Me=>this._onMouseDown.fire(Me))}enable(){ae.Q(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){ae.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var R=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},K=function(u,e){return function(t,n){e(t,n,u)}};function we(u,e){return u.getContext(document.activeElement).getValue(e)}function Pe(u,e){let t=function(n,o){return n.createScoped(o.target)}(u,e);return function(n,o,d){new A.c(d,o).bindTo(n)}(t,e,"historyNavigationWidget"),{scopedContextKeyService:t,historyNavigationEnablement:new A.c("historyNavigationEnabled",!0).bindTo(t)}}let Ve=class extends Ns{constructor(u,e,t,n,o=!1){super(u,e,o,t),this._register(Pe(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Ve=R([K(3,A.b)],Ve);let Je=class extends _{constructor(u,e,t,n,o=!1){super(u,e,o,t),this._register(Pe(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Je=R([K(3,A.b)],Je),so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:A.a.and(A.a.has("historyNavigationWidget"),A.a.equals("historyNavigationEnabled",!0)),primary:16,secondary:[528],handler:(u,e)=>{let t=we(u.get(A.b),"historyNavigationWidget");t&&t.historyNavigator.showPreviousValue()}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:A.a.and(A.a.has("historyNavigationWidget"),A.a.equals("historyNavigationEnabled",!0)),primary:18,secondary:[530],handler:(u,e)=>{let t=we(u.get(A.b),"historyNavigationWidget");t&&t.historyNavigator.showNextValue()}});var at=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let bt=Object(de.e)("find-selection",de.a.selection),Bt=Object(de.e)("find-collapsed",de.a.chevronRight),Pt=Object(de.e)("find-expanded",de.a.chevronDown),ni=Object(de.e)("find-close",de.a.close),Ci=Object(de.e)("find-replace",de.a.replace),Vi=Object(de.e)("find-replace-all",de.a.replaceAll),Mi=Object(de.e)("find-previous-match",de.a.arrowUp),zi=Object(de.e)("find-next-match",de.a.arrowDown),Yi=G.a("label.find","Find"),Gi=G.a("placeholder.find","Find"),wn=G.a("label.previousMatchButton","Previous match"),nn=G.a("label.nextMatchButton","Next match"),Wn=G.a("label.toggleSelectionFind","Find in selection"),An=G.a("label.closeButton","Close"),qn=G.a("label.replace","Replace"),or=G.a("placeholder.replace","Replace"),Un=G.a("label.replaceButton","Replace"),Tr=G.a("label.replaceAllButton","Replace All"),Or=G.a("label.toggleReplaceButton","Toggle Replace mode"),zr=G.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),Br=G.a("label.matchesLocation","{0} of {1}"),qr=G.a("label.noResults","No results"),Mr=69,Ro=Et.f?256:2048;class Pr{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Go(u,e,t){let n=!!e.match(/\n/);t&&n&&t.selectionStart>0&&u.stopPropagation()}function Is(u,e,t){let n=!!e.match(/\n/);t&&n&&t.selectionEnd<t.value.length&&u.stopPropagation()}class Gs extends ro.a{constructor(e,t,n,o,d,m,D,oe,re,ce){super(),this._cachedHeight=null,this._codeEditor=e,this._controller=t,this._state=n,this._contextViewProvider=o,this._keybindingService=d,this._contextKeyService=m,this._storageService=oe,this._notificationService=re,ce.registerStorageKey({key:"ctrlEnterReplaceAll.windows.donotask",version:1}),this._ctrlEnterReplaceAllWarningPrompted=!!oe.getBoolean("ctrlEnterReplaceAll.windows.donotask",0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new Bi.a(500),this._register(Object(Lt.h)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(Me=>this._onStateChanged(Me))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(Me=>{if(Me.hasChanged(72)&&(this._codeEditor.getOption(72)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),Me.hasChanged(117)&&this._tryUpdateWidgetWidth(),Me.hasChanged(2)&&this.updateAccessibilitySupport(),Me.hasChanged(29)){let Ct=this._codeEditor.getOption(29).addExtraSpaceOnTop;Ct&&!this._viewZone&&(this._viewZone=new Pr(0),this._showViewZone()),!Ct&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>at(this,void 0,void 0,function*(){if(this._isVisible){let Me=yield this._controller.getGlobalBufferTerm();Me&&Me!==this._state.searchString&&(this._state.change({searchString:Me},!0),this._findInput.select())}}))),this._findInputFocused=xs.bindTo(m),this._findFocusTracker=this._register(ae.bb(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=yo.bindTo(m),this._replaceFocusTracker=this._register(ae.bb(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(29).addExtraSpaceOnTop&&(this._viewZone=new Pr(0)),this._applyTheme(D.getColorTheme()),this._register(D.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(Me=>{Me.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return Gs.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(72)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ae.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;ae.ab(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Mr+"px",this._state.matchesCount>=19999?this._matchesCount.title=zr:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");let n=String(this._state.matchesPosition);n==="0"&&(n="?"),e=rn.x(Br,n,t)}else e=qr;this._matchesCount.appendChild(document.createTextNode(e)),Object(_i.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Mr=Math.max(Mr,this._matchesCount.clientWidth)}_getAriaLabel(e,t,n){if(e===qr)return n===""?G.a("ariaSearchNoResultEmpty","{0} found",e):G.a("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){let o=G.a("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),d=this._codeEditor.getModel();return d&&t.startLineNumber<=d.getLineCount()&&t.startLineNumber>=1?`${d.getLineContent(t.startLineNumber)}, ${o}`:o}return G.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),ae.ab(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let n=!this._codeEditor.getOption(72);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}_reveal(){if(!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(29).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":let n=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=n}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(()=>{ae.e(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","false")},0),setTimeout(()=>{this._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(29).seedSearchStringFromSelection&&e){let n=this._codeEditor.getDomNode();if(n){let o=ae.C(n),d=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),m=o.left+(d?d.left:0),D=d?d.top:0;if(this._viewZone&&D<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);let oe=ae.F(this._domNode).left;m>oe&&(t=!1);let re=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());o.left+(re?re.left:0)>oe&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ae.Q(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(){if(!this._codeEditor.getOption(29).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;let e=this._viewZone;this._viewZoneId===void 0&&e&&this._codeEditor.changeViewZones(t=>{e.heightInPx=this._getHeight(),this._viewZoneId=t.addZone(e),this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+e.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(29).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Pr(0));let t=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){let o=this._getHeight();if(o===t.heightInPx)return;let d=o-t.heightInPx;return t.heightInPx=o,n.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+d))}{let o=this._getHeight();if(o-=this._codeEditor.getOption(66).top,o<=0)return;t.heightInPx=o,this._viewZoneId=n.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(Ue.db),inputActiveOptionBackground:e.getColor(Ue.cb),inputActiveOptionForeground:e.getColor(Ue.eb),inputBackground:e.getColor(Ue.fb),inputForeground:e.getColor(Ue.hb),inputBorder:e.getColor(Ue.gb),inputValidationInfoBackground:e.getColor(Ue.lb),inputValidationInfoForeground:e.getColor(Ue.nb),inputValidationInfoBorder:e.getColor(Ue.mb),inputValidationWarningBackground:e.getColor(Ue.ob),inputValidationWarningForeground:e.getColor(Ue.qb),inputValidationWarningBorder:e.getColor(Ue.pb),inputValidationErrorBackground:e.getColor(Ue.ib),inputValidationErrorForeground:e.getColor(Ue.kb),inputValidationErrorBorder:e.getColor(Ue.jb)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!ae.N(this._domNode))return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void ae.e(this._domNode,"hiddenEditor");ae.I(this._domNode,"hiddenEditor")&&ae.Q(this._domNode,"hiddenEditor");let t=e.width,n=e.minimap.minimapWidth,o=!1,d=!1,m=!1;if(this._resized&&ae.H(this._domNode)>419)return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=ae.H(this._findInput.domNode));if(447+n>=t&&(d=!0),447+n-Mr>=t&&(m=!0),447+n-Mr>=t+50&&(o=!0),ae.ab(this._domNode,"collapsed-find-widget",o),ae.ab(this._domNode,"narrow-find-widget",m),ae.ab(this._domNode,"reduced-find-widget",d),m||o||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();let D=this._findInput.inputBox.element.clientWidth;D>0&&(this._replaceInput.width=D)}else this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){let e=this._getHeight();return(this._cachedHeight===null||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));let n=this._state.currentMatch;return t.startLineNumber===t.endLineNumber||gt.a.equalsRange(t,n)?null:t}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Ro)?(this._findInput.inputBox.insertAtCursor(` +`),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Go(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Is(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Ro)?(Et.i&&Et.g&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(G.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store("ctrlEnterReplaceAll.windows.donotask",!0,0)),this._replaceInput.inputBox.insertAtCursor(` +`),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Go(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Is(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new Ve(null,this._contextViewProvider,{width:221,label:Yi,placeholder:Gi,appendCaseSensitiveLabel:this._keybindingLabelFor(Us),appendWholeWordsLabel:this._keybindingLabelFor(Ko),appendRegexLabel:this._keybindingLabelFor(rs),validation:m=>{if(m.length===0||!this._findInput.getRegex())return null;try{return new RegExp(m,"gu"),null}catch(D){return{content:D.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(m=>this._onFindInputKeyDown(m))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(m=>{m.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),m.preventDefault())})),this._register(this._findInput.onRegexKeyDown(m=>{m.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),m.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(m=>{this._tryUpdateHeight()&&this._showViewZone()})),Et.d&&this._register(this._findInput.onMouseDown(m=>this._onFindInputMouseDown(m))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new sa({label:wn+this._keybindingLabelFor(Io),className:Mi.classNames,onTrigger:()=>{this._codeEditor.getAction(Io).run().then(void 0,De.e)}})),this._nextBtn=this._register(new sa({label:nn+this._keybindingLabelFor(ks),className:zi.classNames,onTrigger:()=>{this._codeEditor.getAction(ks).run().then(void 0,De.e)}}));let e=document.createElement("div");e.className="find-part",e.appendChild(this._findInput.domNode);let t=document.createElement("div");t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new qs({icon:bt,title:Wn+this._keybindingLabelFor(Hs),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let m=this._codeEditor.getSelections();m.map(D=>(D.endColumn===1&&D.endLineNumber>D.startLineNumber&&(D=D.setEndPosition(D.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(D.endLineNumber-1))),D.isEmpty()?null:D)).filter(D=>!!D),m.length&&this._state.change({searchScope:m},!0)}}else this._state.change({searchScope:null},!0)})),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new sa({label:An+this._keybindingLabelFor(ps),className:ni.classNames,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:m=>{m.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),m.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Je(null,void 0,{label:qn,placeholder:or,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(m=>this._onReplaceInputKeyDown(m))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(m=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(m=>{m.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),m.preventDefault())})),this._replaceBtn=this._register(new sa({label:Un+this._keybindingLabelFor(ms),className:Ci.classNames,onTrigger:()=>{this._controller.replace()},onKeyDown:m=>{m.equals(1026)&&(this._closeBtn.focus(),m.preventDefault())}})),this._replaceAllBtn=this._register(new sa({label:Tr+this._keybindingLabelFor(gs),className:Vi.classNames,onTrigger:()=>{this._controller.replaceAll()}}));let n=document.createElement("div");n.className="replace-part",n.appendChild(this._replaceInput.domNode);let o=document.createElement("div");o.className="replace-actions",n.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new sa({label:Or,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(n),this._resizeSash=new oa.a(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let d=419;this._register(this._resizeSash.onDidStart(()=>{d=ae.H(this._domNode)})),this._register(this._resizeSash.onDidChange(m=>{this._resized=!0;let D=d+m.startX-m.currentX;D<419||D>(parseFloat(ae.z(this._domNode).maxWidth)||0)||(this._domNode.style.width=D+"px",this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let m=ae.H(this._domNode);if(m<419)return;let D=419;if(!this._resized||m===419){let oe=this._codeEditor.getLayoutInfo();D=oe.width-28-oe.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=D+"px",this._isReplaceVisible&&(this._replaceInput.width=ae.H(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){let e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(e!==2)}}Gs.ID="editor.contrib.findWidget";class sa extends ro.a{constructor(e){super(),this._opts=e,this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className="button "+this._opts.className,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,t=>{this._opts.onTrigger(),t.preventDefault()}),this.onkeydown(this._domNode,t=>{if(t.equals(10)||t.equals(3))return this._opts.onTrigger(),void t.preventDefault();this._opts.onKeyDown&&this._opts.onKeyDown(t)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){ae.ab(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(ae.R(this._domNode,Bt.classNames),ae.f(this._domNode,Pt.classNames)):(ae.R(this._domNode,Pt.classNames),ae.f(this._domNode,Bt.classNames))}}Object(ut.g)((u,e)=>{let t=(Ct,Ut)=>{Ut&&e.addRule(`.monaco-editor ${Ct} { background-color: ${Ut}; }`)};t(".findMatch",u.getColor(Ue.x)),t(".currentFindMatch",u.getColor(Ue.v)),t(".findScope",u.getColor(Ue.z)),t(".find-widget",u.getColor(Ue.U));let n=u.getColor(Ue.uc);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 2px 8px ${n}; }`);let o=u.getColor(Ue.y);o&&e.addRule(`.monaco-editor .findMatch { border: 1px ${u.type==="hc"?"dotted":"solid"} ${o}; box-sizing: border-box; }`);let d=u.getColor(Ue.w);d&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${d}; padding: 1px; box-sizing: border-box; }`);let m=u.getColor(Ue.A);m&&e.addRule(`.monaco-editor .findScope { border: 1px ${u.type==="hc"?"dashed":"solid"} ${m}; }`);let D=u.getColor(Ue.h);D&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${D}; }`);let oe=u.getColor(Ue.W);oe&&e.addRule(`.monaco-editor .find-widget { color: ${oe}; }`);let re=u.getColor(Ue.Y);re&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${re}; }`);let ce=u.getColor(Ue.X);if(ce)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${ce}; }`);else{let Ct=u.getColor(Ue.V);Ct&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${Ct}; }`)}let Me=u.getColor(Ue.Z);Me&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${Me}; }`)});var gl=r(166),Kl=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Mo=function(u,e){return function(t,n){e(t,n,u)}},Ds=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Ua(u){if(!u.hasModel())return null;let e=u.getSelection();if(e.startLineNumber===e.endLineNumber){if(e.isEmpty()){let t=u.getConfiguredWordAtPosition(e.getStartPosition());if(t)return t.word}else if(u.getModel().getValueLengthInRange(e)<524288)return u.getModel().getValueInRange(e)}return null}let uo=class sm extends Lt.a{constructor(e,t,n,o){super(),this._editor=e,this._findWidgetVisible=no.bindTo(t),this._contextKeyService=t,this._storageService=n,this._clipboardService=o,this._updateHistoryDelayer=new Bi.a(500),this._state=this._register(new oo),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let d=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),d&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(29).loop})}))}static get(e){return e.getContribution(sm.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!xs.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=rn.v(e)),this._state.change({searchString:e},!1)}highlightFindOptions(){}_start(e){return Ds(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let t={isRevealed:!0};if(e.seedSearchStringFromSelection){let n=Ua(this._editor);n&&(this._state.isRegex?t.searchString=rn.v(n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(t.searchString=n)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(t.searchScope=n)}t.loop=e.loop,this._state.change(t,!1),this._model||(this._model=new Kr(this._editor,this._state))})}start(e){return this._start(e)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return Ds(this,void 0,void 0,function*(){return this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};uo.ID="editor.contrib.findController",uo=Kl([Mo(1,A.b),Mo(2,Qn.a),Mo(3,Pi.a)],uo);let Ea=class extends uo{constructor(u,e,t,n,o,d,m,D,oe){super(u,t,m,oe),this._contextViewService=e,this._keybindingService=n,this._themeService=o,this._notificationService=d,this._storageKeysSyncRegistryService=D,this._widget=null,this._findOptionsWidget=null}_start(u){let e=Object.create(null,{_start:{get:()=>super._start}});return Ds(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let t=this._editor.getSelection(),n=!1;switch(this._editor.getOption(29).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!t&&t.startLineNumber!==t.endLineNumber}u.updateSearchScope=n,yield e._start.call(this,u),this._widget&&(u.shouldFocus===2?this._widget.focusReplaceInput():u.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Gs(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._storageKeysSyncRegistryService)),this._findOptionsWidget=this._register(new Ts(this._editor,this._state,this._keybindingService,this._themeService))}};Ea=Kl([Mo(1,lt.b),Mo(2,A.b),Mo(3,Ot.a),Mo(4,ut.c),Mo(5,Re.a),Mo(6,Qn.a),Mo(7,gl.a),Mo(8,Pi.a)],Ea);class fs extends $.f{constructor(){super({id:Ca,label:G.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"3_find",title:G.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})}run(e,t){return Ds(this,void 0,void 0,function*(){let n=uo.get(t);n&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(29).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))})}}class fl extends $.b{constructor(){super({id:xa,label:G.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return Ds(this,void 0,void 0,function*(){let n=uo.get(t);n&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),n.setGlobalBufferTerm(n.getState().searchString))})}}class Ta extends $.b{run(e,t){return Ds(this,void 0,void 0,function*(){let n=uo.get(t);n&&!this._run(n)&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(n))})}}class Yo extends $.b{run(e,t){return Ds(this,void 0,void 0,function*(){let n=uo.get(t);if(!n)return;let o=Ua(t);o&&n.setSearchString(o),this._run(n)||(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(n))})}}class bl extends $.f{constructor(){super({id:Es,label:G.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ze.b.MenubarEditMenu,group:"3_find",title:G.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})}run(e,t){return Ds(this,void 0,void 0,function*(){if(!t.hasModel()||t.getOption(72))return;let n=uo.get(t),o=t.getSelection(),d=n.isFindInputFocused(),m=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&t.getOption(29).seedSearchStringFromSelection&&!d,D=d||m?2:1;n&&(yield n.start({forceRevealReplace:!0,seedSearchStringFromSelection:m,seedSearchStringFromGlobalClipboard:t.getOption(29).seedSearchStringFromSelection,shouldFocus:D,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))})}}Object($.m)(uo.ID,Ea);let Co=new fs;Object($.r)(Co),Object($.k)(fl),Object($.k)(class extends Ta{constructor(){super({id:ks,label:G.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:ks,label:G.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.focus,xs),primary:3,weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:Io,label:G.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})}_run(u){return u.moveToPrevMatch()}}),Object($.k)(class extends Ta{constructor(){super({id:Io,label:G.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.focus,xs),primary:1027,weight:100}})}_run(u){return u.moveToPrevMatch()}}),Object($.k)(class extends Yo{constructor(){super({id:$o,label:G.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2109,weight:100}})}_run(u){return u.moveToNextMatch()}}),Object($.k)(class extends Yo{constructor(){super({id:Vs,label:G.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:3133,weight:100}})}_run(u){return u.moveToPrevMatch()}});let _l=new bl;Object($.r)(_l);let sr=$.c.bindToContribution(uo.get);Object($.l)(new sr({id:ps,precondition:no,handler:u=>u.closeFindWidget(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.l)(new sr({id:Us,precondition:void 0,handler:u=>u.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:qo.primary,mac:qo.mac,win:qo.win,linux:qo.linux}})),Object($.l)(new sr({id:Ko,precondition:void 0,handler:u=>u.toggleWholeWords(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:Ss.primary,mac:Ss.mac,win:Ss.win,linux:Ss.linux}})),Object($.l)(new sr({id:rs,precondition:void 0,handler:u=>u.toggleRegex(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:hs.primary,mac:hs.mac,win:hs.win,linux:hs.linux}})),Object($.l)(new sr({id:Hs,precondition:void 0,handler:u=>u.toggleSearchScope(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:us.primary,mac:us.mac,win:us.win,linux:us.linux}})),Object($.l)(new sr({id:ms,precondition:no,handler:u=>u.replace(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:3094}})),Object($.l)(new sr({id:ms,precondition:no,handler:u=>u.replace(),kbOpts:{weight:105,kbExpr:A.a.and(z.a.focus,yo),primary:3}})),Object($.l)(new sr({id:gs,precondition:no,handler:u=>u.replaceAll(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:2563}})),Object($.l)(new sr({id:gs,precondition:no,handler:u=>u.replaceAll(),kbOpts:{weight:105,kbExpr:A.a.and(z.a.focus,yo),primary:void 0,mac:{primary:2051}}})),Object($.l)(new sr({id:Do,precondition:no,handler:u=>u.selectAllMatches(),kbOpts:{weight:105,kbExpr:z.a.focus,primary:515}})),r(298);var tr=r(14);class aa{constructor(e,t,n){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(n,o)=>{let d=e[e.length-1];return this.getStartLineNumber(d)<=n&&this.getEndLineNumber(d)>=o};for(let n=0,o=this._startIndexes.length;n<o;n++){let d=this._startIndexes[n],m=this._endIndexes[n];if(d>16777215||m>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;e.length>0&&!t(d,m);)e.pop();let D=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=d+((255&D)<<24),this._endIndexes[n]=m+((65280&D)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return 16777215&this._startIndexes[e]}getEndLineNumber(e){return 16777215&this._endIndexes[e]}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){let t=e/32|0,n=e%32;return(this._collapseStates[t]&1<<n)!=0}setCollapsed(e,t){let n=e/32|0,o=e%32,d=this._collapseStates[n];this._collapseStates[n]=t?d|1<<o:d&~(1<<o)}toRegion(e){return new Gl(this,e)}getParentIndex(e){this.ensureParentIndices();let t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return t===65535?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,n=this._startIndexes.length;if(n===0)return-1;for(;t<n;){let o=Math.floor((t+n)/2);e<this.getStartLineNumber(o)?n=o:t=o+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);t!==-1;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}}class Gl{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class Yl{constructor(e,t){this._updateEventEmitter=new ot.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new aa(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(e){if(!e.length)return;e=e.sort((n,o)=>n.regionIndex-o.regionIndex);let t={};this._decorationProvider.changeDecorations(n=>{let o=0,d=-1,m=-1,D=oe=>{for(;o<oe;){let re=this._regions.getEndLineNumber(o),ce=this._regions.isCollapsed(o);re<=d&&n.changeDecorationOptions(this._editorDecorationIds[o],this._decorationProvider.getDecorationOption(ce,re<=m)),ce&&re>m&&(m=re),o++}};for(let oe of e){let re=oe.regionIndex,ce=this._editorDecorationIds[re];if(ce&&!t[ce]){t[ce]=!0,D(re);let Me=!this._regions.isCollapsed(re);this._regions.setCollapsed(re,Me),d=Math.max(d,this._regions.getEndLineNumber(re))}}D(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){let n=[],o=-1,d=(ce,Me)=>{let Ct=e.getStartLineNumber(ce),Ut=e.getEndLineNumber(ce);Me&&((hi,ji)=>{for(let Ji of t)if(hi<Ji&&Ji<=ji)return!0;return!1})(Ct,Ut)&&(Me=!1),e.setCollapsed(ce,Me);let St=this._textModel.getLineMaxColumn(Ct),di={startLineNumber:Ct,startColumn:St,endLineNumber:Ct,endColumn:St};n.push({range:di,options:this._decorationProvider.getDecorationOption(Me,Ut<=o)}),Me&&Ut>o&&(o=Ut)},m=0,D=()=>{for(;m<this._regions.length;){let ce=this._regions.isCollapsed(m);if(m++,ce)return m-1}return-1},oe=0,re=D();for(;re!==-1&&oe<e.length;){let ce=this._textModel.getDecorationRange(this._editorDecorationIds[re]);if(ce){let Me=ce.startLineNumber;if(this._textModel.getLineMaxColumn(Me)===ce.startColumn)for(;oe<e.length;){let Ct=e.getStartLineNumber(oe);if(!(Me>=Ct))break;d(oe,Me===Ct),oe++}}re=D()}for(;oe<e.length;)d(oe,!1),oe++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,n),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})}getMemento(){let e=[];for(let t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){let n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){let o=n.startLineNumber,d=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:o,endLineNumber:d})}}if(e.length>0)return e}applyMemento(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let o=this.getRegionAtLine(n.startLineNumber);o&&!o.isCollapsed&&t.push(o)}this.toggleCollapseState(t)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){let n=[];if(this._regions){let o=this._regions.findRange(e),d=1;for(;o>=0;){let m=this._regions.toRegion(o);t&&!t(m,d)||n.push(m),d++,o=m.parentIndex}}return n}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let n=[],o=e?e.regionIndex+1:0,d=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let m=[];for(let D=o,oe=this._regions.length;D<oe;D++){let re=this._regions.toRegion(D);if(!(this._regions.getStartLineNumber(D)<d))break;for(;m.length>0&&!re.containedBy(m[m.length-1]);)m.pop();m.push(re),t(re,m.length)&&n.push(re)}}else for(let m=o,D=this._regions.length;m<D;m++){let oe=this._regions.toRegion(m);if(!(this._regions.getStartLineNumber(m)<d))break;t&&!t(oe)||n.push(oe)}return n}}function bs(u,e,t=Number.MAX_VALUE,n){let o=[];if(n&&n.length>0)for(let d of n){let m=u.getRegionAtLine(d);if(m&&(m.isCollapsed!==e&&o.push(m),t>1)){let D=u.getRegionsInside(m,(oe,re)=>oe.isCollapsed!==e&&re<t);o.push(...D)}}else{let d=u.getRegionsInside(null,(m,D)=>m.isCollapsed!==e&&D<t);o.push(...d)}u.toggleCollapseState(o)}function Ha(u,e,t,n){let o=[];for(let d of n){let m=u.getAllRegionsAtLine(d,(D,oe)=>D.isCollapsed!==e&&oe<=t);o.push(...m)}u.toggleCollapseState(o)}function La(u,e,t){let n=u.textModel,o=u.regions,d=[];for(let m=o.length-1;m>=0;m--)if(t!==o.isCollapsed(m)){let D=o.getStartLineNumber(m);e.test(n.getLineContent(D))&&d.push(o.toRegion(m))}u.toggleCollapseState(d)}function Na(u,e,t){let n=u.regions,o=[];for(let d=n.length-1;d>=0;d--)t!==n.isCollapsed(d)&&e===n.getType(d)&&o.push(n.toRegion(d));u.toggleCollapseState(o)}let la=Object(de.e)("folding-expanded",de.a.chevronDown),vl=Object(de.e)("folding-collapsed",de.a.chevronRight);class xo{constructor(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(e,t){return t?xo.HIDDEN_RANGE_DECORATION:e?this.showFoldingHighlights?xo.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:xo.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?xo.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:xo.EXPANDED_VISUAL_DECORATION}deltaDecorations(e,t){return this.editor.deltaDecorations(e,t)}changeDecorations(e){return this.editor.changeDecorations(e)}}xo.COLLAPSED_VISUAL_DECORATION=Rt.a.register({stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:vl.classNames}),xo.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=Rt.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:vl.classNames}),xo.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=Rt.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:la.classNames}),xo.EXPANDED_VISUAL_DECORATION=Rt.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+la.classNames}),xo.HIDDEN_RANGE_DECORATION=Rt.a.register({stickiness:1});class Zl{constructor(e){this._updateEventEmitter=new ot.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1,t=[],n=0,o=0,d=Number.MAX_VALUE,m=-1,D=this._foldingModel.regions;for(;n<D.length;n++){if(!D.isCollapsed(n))continue;let oe=D.getStartLineNumber(n)+1,re=D.getEndLineNumber(n);d<=oe&&re<=m||(!e&&o<this._hiddenRanges.length&&this._hiddenRanges[o].startLineNumber===oe&&this._hiddenRanges[o].endLineNumber===re?(t.push(this._hiddenRanges[o]),o++):(e=!0,t.push(new gt.a(oe,1,re,1))),d=oe,m=re)}(e||o<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyMemento(e){if(!Array.isArray(e)||e.length===0)return!1;let t=[];for(let n of e){if(!n.startLineNumber||!n.endLineNumber)return!1;t.push(new gt.a(n.startLineNumber+1,1,n.endLineNumber,1))}return this.applyHiddenRanges(t),!0}getMemento(){return this._hiddenRanges.map(e=>({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return Xi(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,n=this._foldingModel.textModel,o=null,d=m=>(o&&function(D,oe){return D>=oe.startLineNumber&&D<=oe.endLineNumber}(m,o)||(o=Xi(this._hiddenRanges,m)),o?o.startLineNumber-1:null);for(let m=0,D=e.length;m<D;m++){let oe=e[m],re=d(oe.startLineNumber);re&&(oe=oe.setStartPosition(re,n.getLineMaxColumn(re)),t=!0);let ce=d(oe.endLineNumber);ce&&(oe=oe.setEndPosition(ce,n.getLineMaxColumn(ce)),t=!0),e[m]=oe}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function Xi(u,e){let t=Object(ee.h)(u,n=>e<n.startLineNumber)-1;return t>=0&&u[t].endLineNumber>=e?u[t]:null}class wl{constructor(e){this.editorModel=e,this.id="indent"}dispose(){}compute(e){let t=Ir.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,o=t&&t.markers;return Promise.resolve(function(d,m,D,oe=5e3){let re=d.getOptions().tabSize,ce=new Xl(oe),Me;D&&(Me=new RegExp(`(${D.start.source})|(?:${D.end.source})`));let Ct=[],Ut=d.getLineCount()+1;Ct.push({indent:-1,endAbove:Ut,line:Ut});for(let St=d.getLineCount();St>0;St--){let di,hi=d.getLineContent(St),ji=Rt.b.computeIndentLevel(hi,re),Ji=Ct[Ct.length-1];if(ji!==-1){if(Me&&(di=hi.match(Me))){if(!di[1]){Ct.push({indent:-2,endAbove:St,line:St});continue}{let dn=Ct.length-1;for(;dn>0&&Ct[dn].indent!==-2;)dn--;if(dn>0){Ct.length=dn+1,Ji=Ct[dn],ce.insertFirst(St,Ji.line,ji),Ji.line=St,Ji.indent=ji,Ji.endAbove=St;continue}}}if(Ji.indent>ji){do Ct.pop(),Ji=Ct[Ct.length-1];while(Ji.indent>ji);let dn=Ji.endAbove-1;dn-St>=1&&ce.insertFirst(St,dn,ji)}Ji.indent===ji?Ji.endAbove=St:Ct.push({indent:ji,endAbove:St,line:St})}else m&&(Ji.endAbove=St)}return ce.toIndentRanges(d)}(this.editorModel,n,o))}}class Xl{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>16777215||t>16777215)return;let o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){if(this._length<=this._foldingRangesLimit){let t=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let o=this._length-1,d=0;o>=0;o--,d++)t[d]=this._startIndexes[o],n[d]=this._endIndexes[o];return new aa(t,n)}{let t=0,n=this._indentOccurrences.length;for(let D=0;D<this._indentOccurrences.length;D++){let oe=this._indentOccurrences[D];if(oe){if(oe+t>this._foldingRangesLimit){n=D;break}t+=oe}}let o=e.getOptions().tabSize,d=new Uint32Array(this._foldingRangesLimit),m=new Uint32Array(this._foldingRangesLimit);for(let D=this._length-1,oe=0;D>=0;D--){let re=this._startIndexes[D],ce=e.getLineContent(re),Me=Rt.b.computeIndentLevel(ce,o);(Me<n||Me===n&&t++<this._foldingRangesLimit)&&(d[oe]=re,m[oe]=this._endIndexes[D],oe++)}return new aa(d,m)}}}let Ia={};class Da{constructor(e,t,n=5e3){this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax"}compute(e){return function(t,n,o){let d=null,m=t.map((D,oe)=>Promise.resolve(D.provideFoldingRanges(n,Ia,o)).then(re=>{if(!o.isCancellationRequested&&Array.isArray(re)){Array.isArray(d)||(d=[]);let ce=n.getLineCount();for(let Me of re)Me.start>0&&Me.end>Me.start&&Me.end<=ce&&d.push({start:Me.start,end:Me.end,rank:oe,kind:Me.kind})}},De.f));return Promise.all(m).then(D=>d)}(this.providers,this.editorModel,e).then(t=>t?Cl(t,this.limit):null)}dispose(){}}class yl{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,o){if(e>16777215||t>16777215)return;let d=this._length;this._startIndexes[d]=e,this._endIndexes[d]=t,this._nestingLevels[d]=o,this._types[d]=n,this._length++,o<30&&(this._nestingLevelCounts[o]=(this._nestingLevelCounts[o]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new aa(e,t,this._types)}{let e=0,t=this._nestingLevelCounts.length;for(let m=0;m<this._nestingLevelCounts.length;m++){let D=this._nestingLevelCounts[m];if(D){if(D+e>this._foldingRangesLimit){t=m;break}e+=D}}let n=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit),d=[];for(let m=0,D=0;m<this._length;m++){let oe=this._nestingLevels[m];(oe<t||oe===t&&e++<this._foldingRangesLimit)&&(n[D]=this._startIndexes[m],o[D]=this._endIndexes[m],d[D]=this._types[m],D++)}return new aa(n,o,d)}}}function Cl(u,e){let t=u.sort((m,D)=>{let oe=m.start-D.start;return oe===0&&(oe=m.rank-D.rank),oe}),n=new yl(e),o,d=[];for(let m of t)if(o){if(m.start>o.start)if(m.end<=o.end)d.push(o),o=m,n.add(m.start,m.end,m.kind&&m.kind.value,d.length);else{if(m.start>o.end){do o=d.pop();while(o&&m.start>o.end);o&&d.push(o),o=m}n.add(m.start,m.end,m.kind&&m.kind.value,d.length)}}else o=m,n.add(m.start,m.end,m.kind&&m.kind.value,d.length);return n.toIndentRanges()}class Ql{constructor(e,t,n,o){if(this.editorModel=e,this.id="init",t.length){let d=m=>({range:{startLineNumber:m.startLineNumber,startColumn:0,endLineNumber:m.endLineNumber,endColumn:e.getLineLength(m.endLineNumber)},options:{stickiness:1}});this.decorationIds=e.deltaDecorations([],t.map(d)),this.timeout=setTimeout(n,o)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){let t=[];if(this.decorationIds)for(let n of this.decorationIds){let o=this.editorModel.getDecorationRange(n);o&&t.push({start:o.startLineNumber,end:o.endLineNumber,rank:1})}return Promise.resolve(Cl(t,Number.MAX_VALUE))}}var xl=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},qa=function(u,e){return function(t,n){e(t,n,u)}};let po=new A.c("foldingEnabled",!1),Os=class am extends Lt.a{constructor(e,t){super(),this.contextKeyService=t,this.localToDispose=this._register(new Lt.b),this.editor=e;let n=this.editor.getOptions();this._isEnabled=n.get(31),this._useFoldingProviders=n.get(32)!=="indentation",this._unfoldOnClickAfterEndOfLine=n.get(34),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new xo(e),this.foldingDecorationProvider.autoHideFoldingControls=n.get(91)==="mouseover",this.foldingDecorationProvider.showFoldingHighlights=n.get(33),this.foldingEnabled=po.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(o=>{if(o.hasChanged(31)&&(this._isEnabled=this.editor.getOptions().get(31),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),o.hasChanged(91)||o.hasChanged(33)){let d=this.editor.getOptions();this.foldingDecorationProvider.autoHideFoldingControls=d.get(91)==="mouseover",this.foldingDecorationProvider.showFoldingHighlights=d.get(33),this.onModelContentChanged()}o.hasChanged(32)&&(this._useFoldingProviders=this.editor.getOptions().get(32)!=="indentation",this.onFoldingStrategyChanged()),o.hasChanged(34)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(34))})),this.onModelChanged()}static get(e){return e.getContribution(am.ID)}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}}restoreViewState(e){let t=this.editor.getModel();if(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel||!e||!e.collapsedRegions||e.lineCount!==t.getLineCount())return;e.provider!=="syntax"&&e.provider!=="init"||(this.foldingStateMemento=e);let n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){let o=this.getFoldingModel();o&&o.then(d=>{d&&d.applyMemento(n)}).then(void 0,De.e)}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this.foldingModel=new Yl(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Zl(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Bi.a(200),this.cursorChangedScheduler=new Bi.d(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(I.o.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(t=>this.onEditorMouseDown(t))),this.localToDispose.add(this.editor.onMouseUp(t=>this.onEditorMouseUp(t))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new wl(e),this._useFoldingProviders&&this.foldingModel){let t=I.o.ordered(this.foldingModel.textModel);if(t.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new Ql(e,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4);t.length>0&&(this.rangeProvider=new Da(e,t))}return this.foldingStateMemento=null,this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{let e=this.foldingModel;if(!e)return null;let t=this.foldingRegionPromise=Object(Bi.f)(n=>this.getRangeProvider(e.textModel).compute(n));return t.then(n=>{if(n&&t===this.foldingRegionPromise){let o=this.editor.getSelections(),d=o?o.map(m=>m.startLineNumber):[];e.update(n,d)}return e})}).then(void 0,e=>(Object(De.e)(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length){let t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let n=this.editor.getSelections();if(n&&n.length>0){let o=[];for(let d of n){let m=d.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(m)&&o.push(...t.getAllRegionsAtLine(m,D=>D.isCollapsed&&m>D.startLineNumber))}o.length&&(t.toggleCollapseState(o),this.reveal(n[0].getPosition()))}}}).then(void 0,De.e)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,n=!1;switch(e.target.type){case 4:let o=e.target.detail,d=e.target.element.offsetLeft;if(o.offsetX-d<5)return;n=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){let m=this.editor.getModel();if(m&&t.startColumn===m.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}onEditorMouseUp(e){let t=this.getFoldingModel();if(!t||!this.mouseDownInfo||!e.target)return;let n=this.mouseDownInfo.lineNumber,o=this.mouseDownInfo.iconClicked,d=e.target.range;if(d&&d.startLineNumber===n){if(o){if(e.target.type!==4)return}else{let m=this.editor.getModel();if(!m||d.startColumn!==m.getLineMaxColumn(n))return}t.then(m=>{if(m){let D=m.getRegionAtLine(n);if(D&&D.startLineNumber===n){let oe=D.isCollapsed;if(o||oe){let re=[],ce=e.event.middleButton||e.event.shiftKey;if(ce)for(let Me of m.getRegionsInside(D))Me.isCollapsed===oe&&re.push(Me);!oe&&ce&&re.length!==0||re.push(D),m.toggleCollapseState(re),this.reveal({lineNumber:n,column:1})}}}}).then(void 0,De.e)}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};Os.ID="editor.contrib.folding",Os=xl([qa(1,A.b)],Os);class Jr extends $.b{runEditorCommand(e,t,n){let o=Os.get(t);if(!o)return;let d=o.getFoldingModel();return d?(this.reportTelemetry(e,t),d.then(m=>{if(m){this.invoke(o,m,t,n);let D=t.getSelection();D&&o.reveal(D.getStartPosition())}})):void 0}getSelectedLines(e){let t=e.getSelections();return t?t.map(n=>n.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(n=>n+1):this.getSelectedLines(t)}run(e,t){}}function $a(u){if(!tr.k(u)){if(!tr.i(u))return!1;let e=u;if(!tr.k(e.levels)&&!tr.h(e.levels)||!tr.k(e.direction)&&!tr.j(e.direction)||!(tr.k(e.selectionLines)||tr.e(e.selectionLines)&&e.selectionLines.every(tr.h)))return!1}return!0}class As extends Jr{getFoldingLevel(){return parseInt(this.id.substr(As.ID_PREFIX.length))}invoke(e,t,n){(function(o,d,m,D){let oe=o.getRegionsInside(null,(re,ce)=>ce===d&&re.isCollapsed!==m&&!D.some(Me=>re.containsLine(Me)));o.toggleCollapseState(oe)})(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}}As.ID_PREFIX="editor.foldLevel",As.ID=u=>As.ID_PREFIX+u,Object($.m)(Os.ID,Os),Object($.k)(class extends Jr{constructor(){super({id:"editor.unfold",label:G.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to unfold. If not set, defaults to 1. * 'direction': If 'up', unfold given number of levels up otherwise unfolds down. * 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used. - `,constraint:$a,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(u,e,t,n){let r=n&&n.levels||1,d=this.getLineNumbers(n,t);n&&n.direction==="up"?Ha(e,!1,r,d):bs(e,!1,r,d)}}),Object($.k)(class extends er{constructor(){super({id:"editor.unfoldRecursively",label:G.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2137),weight:100}})}invoke(u,e,t,n){bs(e,!1,Number.MAX_VALUE,this.getSelectedLines(t))}}),Object($.k)(class extends er{constructor(){super({id:"editor.fold",label:G.a("foldAction.label","Fold"),alias:"Fold",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: + `,constraint:$a,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(u,e,t,n){let o=n&&n.levels||1,d=this.getLineNumbers(n,t);n&&n.direction==="up"?Ha(e,!1,o,d):bs(e,!1,o,d)}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.unfoldRecursively",label:G.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2137),weight:100}})}invoke(u,e,t,n){bs(e,!1,Number.MAX_VALUE,this.getSelectedLines(t))}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.fold",label:G.a("foldAction.label","Fold"),alias:"Fold",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to fold. * 'direction': If 'up', folds given number of levels up otherwise folds down. * 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used. If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead. - `,constraint:$a,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(u,e,t,n){let r=this.getLineNumbers(n,t),d=n&&n.levels,m=n&&n.direction;typeof d!="number"&&typeof m!="string"?function(O,re,oe){let ce=[];for(let Me of oe){let Ct=O.getAllRegionsAtLine(Me,Ut=>Ut.isCollapsed!==re);Ct.length>0&&ce.push(Ct[0])}O.toggleCollapseState(ce)}(e,!0,r):m==="up"?Ha(e,!0,d||1,r):bs(e,!0,d||1,r)}}),Object($.k)(class extends er{constructor(){super({id:"editor.foldRecursively",label:G.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2135),weight:100}})}invoke(u,e,t){let n=this.getSelectedLines(t);bs(e,!0,Number.MAX_VALUE,n)}}),Object($.k)(class extends er{constructor(){super({id:"editor.foldAll",label:G.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2069),weight:100}})}invoke(u,e,t){bs(e,!0)}}),Object($.k)(class extends er{constructor(){super({id:"editor.unfoldAll",label:G.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2088),weight:100}})}invoke(u,e,t){bs(e,!1)}}),Object($.k)(class extends er{constructor(){super({id:"editor.foldAllBlockComments",label:G.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2133),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Comment.value,!0);else{let n=t.getModel();if(!n)return;let r=Oo.a.getComments(n.getLanguageIdentifier().id);r&&r.blockCommentStartToken&&La(e,new RegExp("^\\s*"+Object(on.v)(r.blockCommentStartToken)),!0)}}}),Object($.k)(class extends er{constructor(){super({id:"editor.foldAllMarkerRegions",label:G.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2077),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Region.value,!0);else{let n=t.getModel();if(!n)return;let r=Oo.a.getFoldingRules(n.getLanguageIdentifier().id);r&&r.markers&&r.markers.start&&La(e,new RegExp(r.markers.start),!0)}}}),Object($.k)(class extends er{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:G.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2078),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Region.value,!1);else{let n=t.getModel();if(!n)return;let r=Oo.a.getFoldingRules(n.getLanguageIdentifier().id);r&&r.markers&&r.markers.start&&La(e,new RegExp(r.markers.start),!1)}}}),Object($.k)(class extends er{constructor(){super({id:"editor.toggleFold",label:G.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2090),weight:100}})}invoke(u,e,t){(function(n,r,d){let m=[];for(let O of d){let re=n.getRegionAtLine(O);if(re){let oe=!re.isCollapsed;if(m.push(re),r>1){let ce=n.getRegionsInside(re,(Me,Ct)=>Me.isCollapsed!==oe&&Ct<r);m.push(...ce)}}}n.toggleCollapseState(m)})(e,1,this.getSelectedLines(t))}});for(let u=1;u<=7;u++)Object($.n)(new As({id:As.ID(u),label:G.a("foldLevelAction.label","Fold Level {0}",u),alias:"Fold Level "+u,precondition:pr,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2048|21+u),weight:100}}));let Ys=Object(Ue.gc)("editor.foldBackground",{light:Object(Ue.sc)(Ue.O,.3),dark:Object(Ue.sc)(Ue.O,.3),hc:null},G.a("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),Bn=Object(Ue.gc)("editorGutter.foldingControlForeground",{dark:Ue.bb,light:Ue.bb,hc:Ue.bb},G.a("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(ut.g)((u,e)=>{let t=u.getColor(Ys);t&&e.addRule(`.monaco-editor .folded-background { background-color: ${t}; }`);let n=u.getColor(Bn);n&&e.addRule(` + `,constraint:$a,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(u,e,t,n){let o=this.getLineNumbers(n,t),d=n&&n.levels,m=n&&n.direction;typeof d!="number"&&typeof m!="string"?function(D,oe,re){let ce=[];for(let Me of re){let Ct=D.getAllRegionsAtLine(Me,Ut=>Ut.isCollapsed!==oe);Ct.length>0&&ce.push(Ct[0])}D.toggleCollapseState(ce)}(e,!0,o):m==="up"?Ha(e,!0,d||1,o):bs(e,!0,d||1,o)}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.foldRecursively",label:G.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2135),weight:100}})}invoke(u,e,t){let n=this.getSelectedLines(t);bs(e,!0,Number.MAX_VALUE,n)}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.foldAll",label:G.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2069),weight:100}})}invoke(u,e,t){bs(e,!0)}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.unfoldAll",label:G.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2088),weight:100}})}invoke(u,e,t){bs(e,!1)}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.foldAllBlockComments",label:G.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2133),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Comment.value,!0);else{let n=t.getModel();if(!n)return;let o=Ir.a.getComments(n.getLanguageIdentifier().id);o&&o.blockCommentStartToken&&La(e,new RegExp("^\\s*"+Object(rn.v)(o.blockCommentStartToken)),!0)}}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.foldAllMarkerRegions",label:G.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2077),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Region.value,!0);else{let n=t.getModel();if(!n)return;let o=Ir.a.getFoldingRules(n.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&La(e,new RegExp(o.markers.start),!0)}}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:G.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2078),weight:100}})}invoke(u,e,t){if(e.regions.hasTypes())Na(e,I.n.Region.value,!1);else{let n=t.getModel();if(!n)return;let o=Ir.a.getFoldingRules(n.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&La(e,new RegExp(o.markers.start),!1)}}}),Object($.k)(class extends Jr{constructor(){super({id:"editor.toggleFold",label:G.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2090),weight:100}})}invoke(u,e,t){(function(n,o,d){let m=[];for(let D of d){let oe=n.getRegionAtLine(D);if(oe){let re=!oe.isCollapsed;if(m.push(oe),o>1){let ce=n.getRegionsInside(oe,(Me,Ct)=>Me.isCollapsed!==re&&Ct<o);m.push(...ce)}}}n.toggleCollapseState(m)})(e,1,this.getSelectedLines(t))}});for(let u=1;u<=7;u++)Object($.n)(new As({id:As.ID(u),label:G.a("foldLevelAction.label","Fold Level {0}",u),alias:"Fold Level "+u,precondition:po,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2048|21+u),weight:100}}));let Ys=Object(Ue.gc)("editor.foldBackground",{light:Object(Ue.sc)(Ue.O,.3),dark:Object(Ue.sc)(Ue.O,.3),hc:null},G.a("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),Bn=Object(Ue.gc)("editorGutter.foldingControlForeground",{dark:Ue.bb,light:Ue.bb,hc:Ue.bb},G.a("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(ut.g)((u,e)=>{let t=u.getColor(Ys);t&&e.addRule(`.monaco-editor .folded-background { background-color: ${t}; }`);let n=u.getColor(Bn);n&&e.addRule(` .monaco-editor .cldr${la.cssSelector}, .monaco-editor .cldr${vl.cssSelector} { color: ${n} !important; } - `)});var Zs=o(135);class ca extends $.b{constructor(){super({id:"editor.action.fontZoomIn",label:G.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(Zs.a.getZoomLevel()+1)}}class Da extends $.b{constructor(){super({id:"editor.action.fontZoomOut",label:G.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(Zs.a.getZoomLevel()-1)}}class ao extends $.b{constructor(){super({id:"editor.action.fontZoomReset",label:G.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(0)}}Object($.k)(ca),Object($.k)(Da),Object($.k)(ao);var Xs=o(76),Rs=o(96),Zr=o(112);class Qs{static _handleEolEdits(e,t){let n,r=[];for(let d of t)typeof d.eol=="number"&&(n=d.eol),d.range&&typeof d.text=="string"&&r.push(d);return typeof n=="number"&&e.hasModel()&&e.getModel().pushEOL(n),r}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let n=e.getModel(),r=n.validateRange(t.range);return n.getFullModelRange().equalsRange(r)}static execute(e,t,n){n&&e.pushUndoStop();let r=Qs._handleEolEdits(e,t);r.length===1&&Qs._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map(d=>Cn.a.replace(gt.a.lift(d.range),d.text))):e.executeEdits("formatEditsCommand",r.map(d=>Cn.a.replaceMove(gt.a.lift(d.range),d.text))),n&&e.pushUndoStop()}}class Aa{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Sl=o(53),Ka=o(37),Js=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Ga(u){if(!(u=u.filter(r=>r.range)).length)return;let{range:e}=u[0];for(let r=1;r<u.length;r++)e=gt.a.plusRange(e,u[r].range);let{startLineNumber:t,endLineNumber:n}=e;t===n?u.length===1?Object(_i.a)(G.a("hint11","Made 1 formatting edit on line {0}",t)):Object(_i.a)(G.a("hintn1","Made {0} formatting edits on line {1}",u.length,t)):u.length===1?Object(_i.a)(G.a("hint1n","Made 1 formatting edit between lines {0} and {1}",t,n)):Object(_i.a)(G.a("hintnn","Made {0} formatting edits between lines {1} and {2}",u.length,t,n))}function Jl(u){let e=[],t=new Set,n=I.g.ordered(u);for(let d of n)e.push(d),d.extensionId&&t.add(Aa.toKey(d.extensionId));let r=I.j.ordered(u);for(let d of r){if(d.extensionId){if(t.has(Aa.toKey(d.extensionId)))continue;t.add(Aa.toKey(d.extensionId))}e.push({displayName:d.displayName,extensionId:d.extensionId,provideDocumentFormattingEdits:(m,O,re)=>d.provideDocumentRangeFormattingEdits(m,m.getFullModelRange(),O,re)})}return e}class ea{static select(e,t,n){return Js(this,void 0,void 0,function*(){if(e.length===0)return;let r=Ka.a.first(ea._selectors);return r?yield r(e,t,n):e[0]})}}function Ya(u,e,t,n,r,d){return Js(this,void 0,void 0,function*(){let m=u.get(X.a),O=Object(Zr.b)(e)?e.getModel():e,re=I.j.ordered(O),oe=yield ea.select(re,O,n);oe&&(r.report(oe),yield m.invokeFunction(Nc,oe,e,t,d))})}function Nc(u,e,t,n,r){return Js(this,void 0,void 0,function*(){let d=u.get(Rs.a),m,O;Object(Zr.b)(t)?(m=t.getModel(),O=new qt.b(t,5,void 0,r)):(m=t,O=new qt.d(t,r));let re=[],oe=0;for(let Me of Object(ee.b)(n).sort(gt.a.compareRangesUsingStarts))oe>0&>.a.areIntersectingOrTouching(re[oe-1],Me)?re[oe-1]=gt.a.fromPositions(re[oe-1].getStartPosition(),Me.getEndPosition()):oe=re.push(Me);let ce=[];for(let Me of re)try{let Ct=yield e.provideDocumentRangeFormattingEdits(m,Me,m.getFormattingOptions(),O.token),Ut=yield d.computeMoreMinimalEdits(m.uri,Ct);if(Ut&&ce.push(...Ut),O.token.isCancellationRequested)return!0}finally{O.dispose()}if(ce.length===0)return!1;if(Object(Zr.b)(t))Qs.execute(t,ce,!0),Ga(ce),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{let[{range:Me}]=ce,Ct=new J.a(Me.startLineNumber,Me.startColumn,Me.endLineNumber,Me.endColumn);m.pushEditOperations([Ct],ce.map(Ut=>({text:Ut.text,range:gt.a.lift(Ut.range),forceMoveMarkers:!0})),Ut=>{for(let{range:St}of Ut)if(gt.a.areIntersectingOrTouching(St,Ct))return[new J.a(St.startLineNumber,St.startColumn,St.endLineNumber,St.endColumn)];return null})}return!0})}function Ic(u,e,t,n,r){return Js(this,void 0,void 0,function*(){let d=u.get(X.a),m=Object(Zr.b)(e)?e.getModel():e,O=Jl(m),re=yield ea.select(O,m,t);re&&(n.report(re),yield d.invokeFunction(Oc,re,e,t,r))})}function Oc(u,e,t,n,r){return Js(this,void 0,void 0,function*(){let d=u.get(Rs.a),m,O,re;Object(Zr.b)(t)?(m=t.getModel(),O=new qt.b(t,5,void 0,r)):(m=t,O=new qt.d(t,r));try{let oe=yield e.provideDocumentFormattingEdits(m,m.getFormattingOptions(),O.token);if(re=yield d.computeMoreMinimalEdits(m.uri,oe),O.token.isCancellationRequested)return!0}finally{O.dispose()}if(!re||re.length===0)return!1;if(Object(Zr.b)(t))Qs.execute(t,re,n!==2),n!==2&&(Ga(re),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{let[{range:oe}]=re,ce=new J.a(oe.startLineNumber,oe.startColumn,oe.endLineNumber,oe.endColumn);m.pushEditOperations([ce],re.map(Me=>({text:Me.text,range:gt.a.lift(Me.range),forceMoveMarkers:!0})),Me=>{for(let{range:Ct}of Me)if(gt.a.areIntersectingOrTouching(Ct,ce))return[new J.a(Ct.startLineNumber,Ct.startColumn,Ct.endLineNumber,Ct.endColumn)];return null})}return!0})}function x(u,e,t,n,r){let d=I.t.ordered(e);return d.length===0||d[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(d[0].provideOnTypeFormattingEdits(e,t,n,r,On.a.None)).catch(Oe.f).then(m=>u.computeMoreMinimalEdits(e.uri,m))}ea._selectors=new Sl.a,Ee.a.registerCommand("_executeFormatRangeProvider",function(u,...e){let[t,n,r]=e;Object(to.b)(Dn.a.isUri(t)),Object(to.b)(gt.a.isIRange(n));let d=u.get(ne.a).getModel(t);if(!d)throw Object(Oe.b)("resource");return function(m,O,re,oe,ce){return Js(this,void 0,void 0,function*(){let Me=I.j.ordered(O);for(let Ct of Me){let Ut=yield Promise.resolve(Ct.provideDocumentRangeFormattingEdits(O,re,oe,ce)).catch(Oe.f);if(Object(ee.o)(Ut))return yield m.computeMoreMinimalEdits(O.uri,Ut)}})}(u.get(Rs.a),d,gt.a.lift(n),r,On.a.None)}),Ee.a.registerCommand("_executeFormatDocumentProvider",function(u,...e){let[t,n]=e;Object(to.b)(Dn.a.isUri(t));let r=u.get(ne.a).getModel(t);if(!r)throw Object(Oe.b)("resource");return function(d,m,O,re){return Js(this,void 0,void 0,function*(){let oe=Jl(m);for(let ce of oe){let Me=yield Promise.resolve(ce.provideDocumentFormattingEdits(m,O,re)).catch(Oe.f);if(Object(ee.o)(Me))return yield d.computeMoreMinimalEdits(m.uri,Me)}})}(u.get(Rs.a),r,n,On.a.None)}),Ee.a.registerCommand("_executeFormatOnTypeProvider",function(u,...e){let[t,n,r,d]=e;Object(to.b)(Dn.a.isUri(t)),Object(to.b)(Di.a.isIPosition(n)),Object(to.b)(typeof r=="string");let m=u.get(ne.a).getModel(t);if(!m)throw Object(Oe.b)("resource");return x(u.get(Rs.a),m,Di.a.lift(n),r,d)});var c=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},p=function(u,e){return function(t,n){e(t,n,u)}},F=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let pe=class{constructor(u,e){this._workerService=e,this._callOnDispose=new Lt.b,this._callOnModel=new Lt.b,this._editor=u,this._callOnDispose.add(u.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(u.onDidChangeModel(()=>this._update())),this._callOnDispose.add(u.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(I.t.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!this._editor.getOption(41)||!this._editor.hasModel())return;let u=this._editor.getModel(),[e]=I.t.ordered(u);if(!e||!e.autoFormatTriggerCharacters)return;let t=new Xs.b;for(let n of e.autoFormatTriggerCharacters)t.add(n.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(n=>{let r=n.charCodeAt(n.length-1);t.has(r)&&this._trigger(String.fromCharCode(r))}))}_trigger(u){if(!this._editor.hasModel()||this._editor.getSelections().length>1)return;let e=this._editor.getModel(),t=this._editor.getPosition(),n=!1,r=this._editor.onDidChangeModelContent(d=>{if(d.isFlush)return n=!0,void r.dispose();for(let m=0,O=d.changes.length;m<O;m++)if(d.changes[m].range.endLineNumber<=t.lineNumber)return n=!0,void r.dispose()});x(this._workerService,e,t,u,e.getFormattingOptions()).then(d=>{r.dispose(),n||Object(ee.o)(d)&&(Qs.execute(this._editor,d,!0),Ga(d))},d=>{throw r.dispose(),d})}};pe.ID="editor.contrib.autoFormat",pe=c([p(1,Rs.a)],pe);let He=class{constructor(u,e){this.editor=u,this._instantiationService=e,this._callOnDispose=new Lt.b,this._callOnModel=new Lt.b,this._callOnDispose.add(u.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(u.onDidChangeModel(()=>this._update())),this._callOnDispose.add(u.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(I.j.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(40)&&this.editor.hasModel()&&I.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:u})=>this._trigger(u)))}_trigger(u){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(Ya,this.editor,u,2,ot.b.None,On.a.None).catch(Oe.e))}};He.ID="editor.contrib.formatOnPaste",He=c([p(1,X.a)],He);class Qe extends $.b{constructor(){super({id:"editor.action.formatDocument",label:G.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:A.a.and(z.a.notInCompositeEditor,z.a.writable,z.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:A.a.and(z.a.editorTextFocus,z.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:z.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})}run(e,t){return F(this,void 0,void 0,function*(){if(t.hasModel()){let n=e.get(X.a);yield e.get(ot.a).showWhile(n.invokeFunction(Ic,t,1,ot.b.None,On.a.None),250)}})}}class Vt extends $.b{constructor(){super({id:"editor.action.formatSelection",label:G.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:A.a.and(z.a.writable,z.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:A.a.and(z.a.editorTextFocus,z.a.hasDocumentSelectionFormattingProvider),primary:Object(Se.a)(2089,2084),weight:100},contextMenuOpts:{when:A.a.and(z.a.hasDocumentSelectionFormattingProvider,z.a.hasNonEmptySelection),group:"1_modification",order:1.31}})}run(e,t){return F(this,void 0,void 0,function*(){if(!t.hasModel())return;let n=e.get(X.a),r=t.getModel(),d=t.getSelections().map(O=>O.isEmpty()?new gt.a(O.startLineNumber,1,O.startLineNumber,r.getLineMaxColumn(O.startLineNumber)):O);yield e.get(ot.a).showWhile(n.invokeFunction(Ya,t,d,1,ot.b.None,On.a.None),250)})}}Object($.m)(pe.ID,pe),Object($.m)(He.ID,He),Object($.k)(Qe),Object($.k)(Vt),Ee.a.registerCommand("editor.action.format",u=>F(void 0,void 0,void 0,function*(){let e=u.get(Si.a).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=u.get(Ee.b);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}));var $t=o(122),ci=o(118);class Ft{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let n;typeof e=="string"?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,t.children.get(n)!==void 0&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let r=n;for(let d=0;t.children.get(r)!==void 0;d++)r=`${n}_${d}`;return r}static empty(e){return e.children.size===0}}class Fi extends Ft{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}}class cn extends Ft{constructor(e,t,n,r){super(),this.id=e,this.parent=t,this.label=n,this.order=r,this.children=new Map}}class vn extends Ft{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t){let n=this._keys.for(e,!0),r=vn._requests.get(n);if(!r){let d=new On.b;r={promiseCnt:0,source:d,promise:vn._create(e,d.token),model:void 0},vn._requests.set(n,r);let m=Date.now();r.promise.then(()=>{let O=this._keys.for(e,!1),re=this._requestDurations.get(O);re||(re=new ci.a,this._requestDurations.set(O,re)),re.update(Date.now()-m)})}return r.model?Promise.resolve(r.model):(r.promiseCnt+=1,t.onCancellationRequested(()=>{--r.promiseCnt==0&&(r.source.cancel(),vn._requests.delete(n))}),new Promise((d,m)=>{r.promise.then(O=>{r.model=O,d(O)},O=>{vn._requests.delete(n),m(O)})}))}static _create(e,t){let n=new On.b(t),r=new vn(e.uri),d=I.m.ordered(e),m=d.map((re,oe)=>{var ce;let Me=Ft.findId("provider_"+oe,r),Ct=new cn(Me,r,(ce=re.displayName)!==null&&ce!==void 0?ce:"Unknown Outline Provider",oe);return Promise.resolve(re.provideDocumentSymbols(e,n.token)).then(Ut=>{for(let St of Ut||[])vn._makeOutlineElement(St,Ct);return Ct},Ut=>(Object(Oe.f)(Ut),Ct)).then(Ut=>{Ft.empty(Ut)?Ut.remove():r._groups.set(Me,Ut)})}),O=I.m.onDidChange(()=>{let re=I.m.ordered(e);Object(ee.g)(re,d)||n.cancel()});return Promise.all(m).then(()=>n.token.isCancellationRequested&&!t.isCancellationRequested?vn._create(e,t):r._compact()).finally(()=>{O.dispose()})}static _makeOutlineElement(e,t){let n=Ft.findId(e,t),r=new Fi(n,t,e);if(e.children)for(let d of e.children)vn._makeOutlineElement(d,r);t.children.set(r.id,r)}_compact(){let e=0;for(let[t,n]of this._groups)n.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=Ka.a.first(this._groups.values());for(let[,n]of t.children)n.parent=this,this.children.set(n.id,n)}return this}}vn._requestDurations=new Rn.a(50,.7),vn._requests=new Rn.a(9,.75),vn._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(u,e){return`${u.id}/${e?u.getVersionId():""}/${this._hash(I.m.all(u))}`}_hash(u){let e="";for(let t of u){let n=this._data.get(t);n===void 0&&(n=this._counter++,this._data.set(t,n)),e+=n}return e}};var rn=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Pn(u,e,t){return rn(this,void 0,void 0,function*(){let n=yield vn.create(u,t),r=[];for(let m of n.children.values())m instanceof Fi?r.push(m.symbol):r.push(...Ka.a.map(m.children.values(),O=>O.symbol));let d=[];return t.isCancellationRequested?d:(e?function m(O,re,oe){for(let ce of re)O.push({kind:ce.kind,tags:ce.tags,name:ce.name,detail:ce.detail,containerName:ce.containerName||oe,range:ce.range,selectionRange:ce.selectionRange,children:void 0}),ce.children&&m(O,ce.children,ce.name)}(d,r,""):d=r,d.sort(jn))})}function jn(u,e){return gt.a.compareRangesUsingStarts(u.range,e.range)}Ee.a.registerCommand("_executeDocumentSymbolProvider",function(u,...e){return rn(this,void 0,void 0,function*(){let[t]=e;Object(to.b)(Dn.a.isUri(t));let n=u.get(ne.a).getModel(t);if(n)return Pn(n,!1,On.a.None);let r=yield u.get($t.a).createModelReference(t);try{return yield Pn(r.object.textEditorModel,!1,On.a.None)}finally{r.dispose()}})}),o(300);var Vn=o(116),Ln=o(46),mo=o(80),yo=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},fo=function(u,e){return function(t,n){e(t,n,u)}};let To=class extends fe.a{constructor(u,e,t,n,r,d,m,O,re,oe){super(u,Object.assign(Object.assign({},t.getRawOptions()),{overflowWidgetsDomNode:t.getOverflowWidgetsDomNode()}),{},n,r,d,m,O,re,oe),this._parentEditor=t,this._overwriteOptions=e,super.updateOptions(this._overwriteOptions),this._register(t.onDidChangeConfiguration(ce=>this._onParentConfigurationChanged(ce)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(u){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(u){Ln.g(this._overwriteOptions,u,!0),super.updateOptions(this._overwriteOptions)}};To=yo([fo(3,X.a),fo(4,Si.a),fo(5,Ee.b),fo(6,A.b),fo(7,ut.c),fo(8,Re.a),fo(9,mo.b)],To),o(302);var Co=o(147);let Wo=new Kn.a(new Kn.c(0,122,204)),Sr={showArrow:!0,showFrame:!0,className:"",frameColor:Wo,arrowColor:Wo,keepEditorSelection:!1};class _s{constructor(e,t,n,r,d,m){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=r,this._onDomNodeTop=d,this._onComputedHeight=m}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Ra{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class rs{constructor(e){this._editor=e,this._ruleName=rs._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),ae.P(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){ae.P(this._ruleName),ae.u(".monaco-editor "+this._ruleName,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:gt.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}rs._IdGenerator=new Co.a(".arrow-decoration-");var tr=o(44),da=(o(199),o(67));class ec extends Ge.b{constructor(e,t){super(),this._onDidChangeVisibility=new rt.a,this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(ae.p)(e,Object(ae.a)(".monaco-dropdown")),this._label=Object(ae.p)(this._element,Object(ae.a)(".dropdown-label"));let n=t.labelRenderer;n||(n=d=>(d.textContent=t.label||"",null));for(let d of[ae.c.CLICK,ae.c.MOUSE_DOWN,zt.a.Tap])this._register(Object(ae.i)(this.element,d,m=>ae.b.stop(m,!0)));for(let d of[ae.c.MOUSE_DOWN,zt.a.Tap])this._register(Object(ae.i)(this._label,d,m=>{m instanceof MouseEvent&&m.detail>1||(this.visible?this.hide():this.show())}));this._register(Object(ae.i)(this._label,ae.c.KEY_UP,d=>{let m=new da.a(d);(m.equals(3)||m.equals(10))&&(ae.b.stop(d,!0),this.visible?this.hide():this.show())}));let r=n(this._label);r&&this._register(r),this._register(zt.b.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class ta extends ec{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),Object(ae.e)(this.element,"active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),Object(ae.Q)(this.element,"active")}}class Pr extends br.b{constructor(e,t,n,r={}){super(null,e,r),this.options=r,this._onDidChangeVisibility=this._register(new rt.a),this.menuActionsOrProvider=t,this.contextMenuProvider=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){let t={contextMenuProvider:this.contextMenuProvider,labelRenderer:n=>{this.element=Object(ae.p)(n,Object(ae.a)("a.action-label"));let r=this.options.classNames?Object(ee.b)(this.options.classNames):[];return r.find(d=>d==="icon")||r.push("codicon"),Object(ae.f)(this.element,...r),this.element.tabIndex=0,this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild};if(Array.isArray(this.menuActionsOrProvider)?t.actions=this.menuActionsOrProvider:t.actionProvider=this.menuActionsOrProvider,this.dropdownMenu=this._register(new ta(e,t)),this._register(this.dropdownMenu.onDidChangeVisibility(n=>{var r;(r=this.element)===null||r===void 0||r.setAttribute("aria-expanded",""+n),this._onDidChangeVisibility.fire(n)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){let n=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return n.options.anchorAlignmentProvider()}})}}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}}var Za=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ma=function(u,e){return function(t,n){e(t,n,u)}};class ha extends rt.a{constructor(e){super(),this._subscriptions=new Lt.b,this._isPressed=!1,this._suppressAltKeyUp=!1,this._subscriptions.add(Object(tr.a)(document.body,"keydown")(t=>{this.isPressed=t.altKey||(Et.i||Et.d)&&t.shiftKey})),this._subscriptions.add(Object(tr.a)(document.body,"keyup")(t=>{this.isPressed&&this._suppressAltKeyUp&&t.preventDefault(),this._suppressAltKeyUp=!1,this.isPressed=!1})),this._subscriptions.add(Object(tr.a)(document.body,"mouseleave")(t=>this.isPressed=!1)),this._subscriptions.add(Object(tr.a)(document.body,"blur")(t=>this.isPressed=!1)),this._subscriptions.add(e.onDidContextMenu(()=>this.isPressed=!1))}get isPressed(){return this._isPressed}set isPressed(e){this._isPressed=e,this.fire(this._isPressed)}suppressAltKeyUp(){this._suppressAltKeyUp=!0}static getInstance(e){return ha.instance||(ha.instance=new ha(e)),ha.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function ua(u,e,t,n){let r=u.getActions(e);return function(d,m,O,re=oe=>oe==="navigation"){for(let oe of d){let[ce,Me]=oe;if(O&&(Me=Me.map(Ct=>Ct instanceof ze.c&&Ct.alt?Ct.alt:Ct)),re(ce))(Array.isArray(m)?m:m.primary).unshift(...Me);else{let Ct=Array.isArray(m)?m:m.secondary;Ct.length>0&&Ct.push(new Ge.c),Ct.push(...Me)}}}(r,t,!1,n),function(d){let m=new Lt.b;for(let[,O]of d)for(let re of O)m.add(re);return m}(r)}let kl=new Co.a("menu-item-action-item-icon-"),Ms=new Map,Pa=class extends br.a{constructor(u,e,t,n){super(void 0,u,{icon:!(!u.class&&!u.item.icon),label:!u.class&&!u.item.icon}),this._action=u,this._keybindingService=e,this._notificationService=t,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new Lt.d),this._altKey=ha.getInstance(n)}get _commandAction(){return this._wantsAltCommand&&this._action.alt||this._action}onClick(u){u.preventDefault(),u.stopPropagation(),this._altKey.isPressed&&this._altKey.suppressAltKeyUp(),this.actionRunner.run(this._commandAction,this._context).then(void 0,e=>this._notificationService.error(e))}render(u){super.render(u),this._updateItemClass(this._action.item);let e=!1,t=this._altKey.isPressed,n=()=>{let r=e&&t;r!==this._wantsAltCommand&&(this._wantsAltCommand=r,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._action.alt&&this._register(this._altKey.event(r=>{t=r,n()})),this._register(Object(tr.a)(u,"mouseleave")(r=>{e=!1,n()})),this._register(Object(tr.a)(u,"mouseenter")(r=>{e=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){let u=this._keybindingService.lookupKeybinding(this._commandAction.id),e=u&&u.getLabel(),t=this._commandAction.tooltip||this._commandAction.label;this.label.title=e?Object(G.a)("titleAndKb","{0} ({1})",t,e):t}}updateClass(){this.options.icon&&(this._commandAction!==this._action?this._action.alt&&this._updateItemClass(this._action.alt.item):this._action.alt&&this._updateItemClass(this._action.item))}_updateItemClass(u){var e,t;this._itemClassDispose.value=void 0;let n=this._commandAction.checked&&((e=u.toggled)===null||e===void 0?void 0:e.icon)?u.toggled.icon:u.icon;if(ut.e.isThemeIcon(n)){let r=ut.e.asClassName(n);this.label&&r&&(Object(ae.f)(this.label,r),this._itemClassDispose.value=Object(Lt.h)(()=>{this.label&&Object(ae.R)(this.label,r)}))}else if(n){let r;if((t=n.dark)===null||t===void 0?void 0:t.scheme){let d=n.dark.toString();Ms.has(d)?r=Ms.get(d):(r=kl.nextId(),Object(ae.u)(".icon."+r,"background-image: "+Object(ae.q)(n.light||n.dark)),Object(ae.u)(`.vs-dark .icon.${r}, .hc-black .icon.${r}`,"background-image: "+Object(ae.q)(n.dark)),Ms.set(d,r)),this.label&&(Object(ae.f)(this.label,"icon",r),this._itemClassDispose.value=Object(Lt.h)(()=>{this.label&&Object(ae.R)(this.label,"icon",r)}))}}}};Pa=Za([Ma(1,Dt.a),Ma(2,Re.a),Ma(3,lt.a)],Pa);let Xa=class extends Pr{constructor(u,e,t){var n;let r=[];if(u.item.icon){if(ut.e.isThemeIcon(u.item.icon))r.push(ut.e.asClassName(u.item.icon));else if((n=u.item.icon.dark)===null||n===void 0?void 0:n.scheme){let d=u.item.icon.dark.toString();if(Ms.has(d))r.push("icon",Ms.get(d));else{let m=kl.nextId();r.push("icon",m),Object(ae.u)(".icon."+m,"background-image: "+Object(ae.q)(u.item.icon.light||u.item.icon.dark)),Object(ae.u)(`.vs-dark .icon.${m}, .hc-black .icon.${m}`,"background-image: "+Object(ae.q)(u.item.icon.dark)),Ms.set(d,m)}}}super(u,u.actions,t,{classNames:r})}};Xa=Za([Ma(1,Re.a),Ma(2,lt.a)],Xa);var tc=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},El=function(u,e){return function(t,n){e(t,n,u)}};let Qa=Object(X.c)("IPeekViewService");var Jo,Ja;Object(In.b)(Qa,class{constructor(){this._widgets=new Map}addExclusiveWidget(u,e){let t=this._widgets.get(u);t&&(t.listener.dispose(),t.widget.dispose()),this._widgets.set(u,{widget:e,listener:e.onDidClose(()=>{let n=this._widgets.get(u);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(u))})})}}),(Ja=Jo||(Jo={})).inPeekEditor=new A.c("inReferenceSearchEditor",!0),Ja.notInPeekEditor=Ja.inPeekEditor.toNegated();let pa=class{constructor(u,e){u instanceof To&&Jo.inPeekEditor.bindTo(e)}dispose(){}};pa.ID="editor.contrib.referenceController",pa=tc([El(1,A.b)],pa),Object($.m)(pa.ID,pa);let Tl={headerBackgroundColor:Kn.a.white,primaryHeadingColor:Kn.a.fromHex("#333333"),secondaryHeadingColor:Kn.a.fromHex("#6c6c6cb3")},el=class extends class{constructor(u,e={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new Lt.b,this.container=null,this._isShowing=!1,this.editor=u,this.options=Ln.c(e),Ln.g(this.options,Sr,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(t=>{let n=this._getWidth(t);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(t)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new rs(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(u){u.frameColor&&(this.options.frameColor=u.frameColor),u.arrowColor&&(this.options.arrowColor=u.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let u=this.options.frameColor.toString();this.container.style.borderTopColor=u,this.container.style.borderBottomColor=u}if(this._arrow&&this.options.arrowColor){let u=this.options.arrowColor.toString();this._arrow.color=u}}_getWidth(u){return u.width-u.minimap.minimapWidth-u.verticalScrollbarWidth}_getLeft(u){return u.minimap.minimapWidth>0&&u.minimap.minimapLeft===0?u.minimap.minimapWidth:0}_onViewZoneTop(u){this.domNode.style.top=u+"px"}_onViewZoneHeight(u){if(this.domNode.style.height=u+"px",this.container){let e=u-this._decoratingElementsHeight();this.container.style.height=e+"px";let t=this.editor.getLayoutInfo();this._doLayout(e,this._getWidth(t))}this._resizeSash&&this._resizeSash.layout()}get position(){let[u]=this._positionMarkerId;if(!u)return;let e=this.editor.getModel();if(!e)return;let t=e.getDecorationRange(u);return t?t.getStartPosition():void 0}show(u,e){let t=gt.a.isIRange(u)?gt.a.lift(u):gt.a.fromPositions(u);this._isShowing=!0,this._showImpl(t,e),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:t,options:Rt.a.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let u=this.editor.getOption(51),e=0;return this.options.showArrow&&(e+=2*Math.round(u/3)),this.options.showFrame&&(e+=2*Math.round(u/9)),e}_showImpl(u,e){let t=u.getStartPosition(),n=this.editor.getLayoutInfo(),r=this._getWidth(n);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(n)+"px";let d=document.createElement("div");d.style.overflow="hidden";let m=this.editor.getOption(51),O=Math.max(12,this.editor.getLayoutInfo().height/m*.8);e=Math.min(e,O);let re=0,oe=0;if(this._arrow&&this.options.showArrow&&(re=Math.round(m/3),this._arrow.height=re,this._arrow.show(t)),this.options.showFrame&&(oe=Math.round(m/9)),this.editor.changeViewZones(Ct=>{this._viewZone&&Ct.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new _s(d,t.lineNumber,t.column,e,Ut=>this._onViewZoneTop(Ut),Ut=>this._onViewZoneHeight(Ut)),this._viewZone.id=Ct.addZone(this._viewZone),this._overlayWidget=new Ra("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let Ct=this.options.frameWidth?this.options.frameWidth:oe;this.container.style.borderTopWidth=Ct+"px",this.container.style.borderBottomWidth=Ct+"px"}let ce=e*m-this._decoratingElementsHeight();this.container&&(this.container.style.top=re+"px",this.container.style.height=ce+"px",this.container.style.overflow="hidden"),this._doLayout(ce,r),this.options.keepEditorSelection||this.editor.setSelection(u);let Me=this.editor.getModel();if(Me){let Ct=u.endLineNumber+1;Ct<=Me.getLineCount()?this.revealLine(Ct,!1):this.revealLine(Me.getLineCount(),!0)}}revealLine(u,e){e?this.editor.revealLineInCenter(u,0):this.editor.revealLine(u,0)}setCssClass(u,e){this.container&&(e&&this.container.classList.remove(e),ae.e(this.container,u))}_onWidth(u){}_doLayout(u,e){}_relayout(u){this._viewZone&&this._viewZone.heightInLines!==u&&this.editor.changeViewZones(e=>{this._viewZone&&(this._viewZone.heightInLines=u,e.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;let u;this._resizeSash=this._disposables.add(new ra.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(e=>{this._viewZone&&(u={startY:e.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{u=void 0})),this._disposables.add(this._resizeSash.onDidChange(e=>{if(u){let t=(e.currentY-u.startY)/this.editor.getOption(51),n=t<0?Math.ceil(t):Math.floor(t),r=u.heightInLines+n;r>5&&r<35&&this._relayout(r)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let u=this.editor.getLayoutInfo();return u.width-u.minimap.minimapWidth}}{constructor(u,e,t){super(u,e),this.instantiationService=t,this._onDidClose=new rt.a,this.onDidClose=this._onDidClose.event,Ln.g(this.options,Tl,!1)}dispose(){super.dispose(),this._onDidClose.fire(this)}style(u){let e=this.options;u.headerBackgroundColor&&(e.headerBackgroundColor=u.headerBackgroundColor),u.primaryHeadingColor&&(e.primaryHeadingColor=u.primaryHeadingColor),u.secondaryHeadingColor&&(e.secondaryHeadingColor=u.secondaryHeadingColor),super.style(u)}_applyStyles(){super._applyStyles();let u=this.options;this._headElement&&u.headerBackgroundColor&&(this._headElement.style.backgroundColor=u.headerBackgroundColor.toString()),this._primaryHeading&&u.primaryHeadingColor&&(this._primaryHeading.style.color=u.primaryHeadingColor.toString()),this._secondaryHeading&&u.secondaryHeadingColor&&(this._secondaryHeading.style.color=u.secondaryHeadingColor.toString()),this._bodyElement&&u.frameColor&&(this._bodyElement.style.borderColor=u.frameColor.toString())}_fillContainer(u){this.setCssClass("peekview-widget"),this._headElement=ae.a(".head"),this._bodyElement=ae.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),u.appendChild(this._headElement),u.appendChild(this._bodyElement)}_fillHead(u,e){let t=ae.a(".peekview-title");ae.p(this._headElement,t),ae.n(t,"click",d=>this._onTitleClick(d)),this._fillTitleIcon(t),this._primaryHeading=ae.a("span.filename"),this._secondaryHeading=ae.a("span.dirname"),this._metaHeading=ae.a("span.meta"),ae.p(t,this._primaryHeading,this._secondaryHeading,this._metaHeading);let n=ae.a(".peekview-actions");ae.p(this._headElement,n);let r=this._getActionBarOptions();this._actionbarWidget=new Vn.a(n,r),this._disposables.add(this._actionbarWidget),e||this._actionbarWidget.push(new Ge.a("peekview.close",G.a("label.close","Close"),de.a.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(u){}_getActionBarOptions(){return{actionViewItemProvider:u=>u instanceof ze.c?this.instantiationService.createInstance(Pa,u):u instanceof ze.e?this.instantiationService.createInstance(Xa,u):void 0}}_onTitleClick(u){}setTitle(u,e){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=u,this._primaryHeading.setAttribute("aria-label",u),e?this._secondaryHeading.innerText=e:ae.s(this._secondaryHeading))}setMetaTitle(u){this._metaHeading&&(u?(this._metaHeading.innerText=u,ae.Z(this._metaHeading)):ae.K(this._metaHeading))}_doLayout(u,e){if(!this._isShowing&&u<0)return void this.dispose();let t=Math.ceil(1.2*this.editor.getOption(51)),n=Math.round(u-(t+2));this._doLayoutHead(t,e),this._doLayoutBody(n,e)}_doLayoutHead(u,e){this._headElement&&(this._headElement.style.height=u+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(u,e){this._bodyElement&&(this._bodyElement.style.height=u+"px")}};el=tc([El(2,X.a)],el);let kr=Object(Ue.gc)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},G.a("peekViewTitleBackground","Background color of the peek view title area.")),Vo=Object(Ue.gc)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},G.a("peekViewTitleForeground","Color of the peek view title.")),Ll=Object(Ue.gc)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},G.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Fr=Object(Ue.gc)("peekView.border",{dark:"#007acc",light:"#007acc",hc:Ue.h},G.a("peekViewBorder","Color of the peek view borders and arrow.")),vs=Object(Ue.gc)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:Kn.a.black},G.a("peekViewResultsBackground","Background color of the peek view result list.")),Ps=Object(Ue.gc)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:Kn.a.white},G.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Qd=Object(Ue.gc)("peekViewResult.fileForeground",{dark:Kn.a.white,light:"#1E1E1E",hc:Kn.a.white},G.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Jd=Object(Ue.gc)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},G.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),eh=Object(Ue.gc)("peekViewResult.selectionForeground",{dark:Kn.a.white,light:"#6C6C6C",hc:Kn.a.white},G.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ic=Object(Ue.gc)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:Kn.a.black},G.a("peekViewEditorBackground","Background color of the peek view editor.")),th=Object(Ue.gc)("peekViewEditorGutter.background",{dark:ic,light:ic,hc:ic},G.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),ih=Object(Ue.gc)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},G.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),nh=Object(Ue.gc)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},G.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),oh=Object(Ue.gc)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:Ue.b},G.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var rh=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class ma{constructor(e,t,n,r,d){this.isProviderFirst=e,this.parent=t,this.uri=n,this._range=r,this._rangeCallback=d,this.id=Co.b.nextId()}get range(){return this._range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){return Object(G.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(Be.b)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class me{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let n=this._modelReference.object.textEditorModel;if(!n)return;let{startLineNumber:r,startColumn:d,endLineNumber:m,endColumn:O}=e,re=n.getWordUntilPosition({lineNumber:r,column:d-t}),oe=new gt.a(r,re.startColumn,r,d),ce=new gt.a(m,O,m,1073741824),Me=n.getValueInRange(oe).replace(/^\s+/,""),Ct=n.getValueInRange(e);return{value:Me+Ct+n.getValueInRange(ce).replace(/\s+$/,""),highlight:{start:Me.length,end:Me.length+Ct.length}}}}class s{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Rn.b}dispose(){Object(Lt.f)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?Object(G.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(Be.b)(this.uri),this.uri.fsPath):Object(G.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(Be.b)(this.uri),this.uri.fsPath)}resolve(e){return rh(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new me(n))}catch(n){Object(Oe.e)(n)}return this})}}class v{constructor(e,t){this._disposables=new Lt.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new rt.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[n]=e,r;e.sort(v._compareReferences);for(let d of e)if(r&&Be.e.isEqual(r.uri,d.uri,!0)||(r=new s(this,d.uri),this.groups.push(r)),r.children.length===0||v._compareReferences(d,r.children[r.children.length-1])!==0){let m=new ma(n===d,r,d.uri,d.targetSelectionRange||d.range,O=>this._onDidChangeReferenceRange.fire(O));this.references.push(m),r.children.push(m)}}dispose(){Object(Lt.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new v(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?Object(G.a)("aria.result.0","No results found"):this.references.length===1?Object(G.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(G.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(G.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:n}=e,r=n.children.indexOf(e),d=n.children.length,m=n.parent.groups.length;return m===1||t&&r+1<d||!t&&r>0?(r=t?(r+1)%d:(r+d-1)%d,n.children[r]):(r=n.parent.groups.indexOf(n),t?(r=(r+1)%m,n.parent.groups[r].children[0]):(r=(r+m-1)%m,n.parent.groups[r].children[n.parent.groups[r].children.length-1]))}nearestReference(e,t){let n=this.references.map((r,d)=>({idx:d,prefixLen:on.d(r.uri.toString(),e.toString()),offsetDist:100*Math.abs(r.range.startLineNumber-t.lineNumber)+Math.abs(r.range.startColumn-t.column)})).sort((r,d)=>r.prefixLen>d.prefixLen?-1:r.prefixLen<d.prefixLen?1:r.offsetDist<d.offsetDist?-1:r.offsetDist>d.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(let n of this.references)if(n.uri.toString()===e.toString()&>.a.containsPosition(n.range,t))return n}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Be.e.compare(e.uri,t.uri)||gt.a.compareRangesUsingStarts(e.range,t.range)}}o(305);var M=o(45),be=o(172),Ne=o(185),De=o(159),je=o(93),mt=o(42);function It(u,e,t){if(typeof u=="string"&&(u=Dn.a.file(u)),t){let r=t.getWorkspaceFolder(u);if(r){let d=t.getWorkspace().folders.length>1,m;if(m=Object(Be.f)(r.uri,u)?"":Object(Be.j)(r.uri,u),d){let O=r.name?r.name:Object(Be.b)(r.uri);m=m?O+" \u2022 "+m:O}return m}}if(u.scheme!==M.b.file&&u.scheme!==M.b.untitled)return u.with({query:null,fragment:null}).toString(!0);if(Oi(u.fsPath))return Object(mt.d)(en(u.fsPath));let n=Object(mt.d)(u.fsPath);return!Et.i&&(e==null?void 0:e.userHome)&&(n=function(r,d){if(Et.i||!r||!d)return r;let m=tn.original===d?tn.normalized:void 0;return m||(m=`${Object(on.Q)(d,mt.e.sep)}${mt.e.sep}`,tn={original:d,normalized:m}),(Et.d?r.startsWith(m):Object(on.T)(r,m))&&(r="~/"+r.substr(m.length)),r}(n,e.userHome.fsPath)),n}function Qt(u){if(!u)return;typeof u=="string"&&(u=Dn.a.file(u));let e=Object(Be.b)(u)||(u.scheme===M.b.file?u.fsPath:u.path);return Oi(e)?en(e):e}function Oi(u){return!(!Et.i||!u||u[1]!==":")}function en(u){return Oi(u)?u.charAt(0).toUpperCase()+u.slice(1):u}let tn=Object.create(null);var kn=o(71),no=o(156),lo=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},uo=function(u,e){return function(t,n){e(t,n,u)}};let oo=class{constructor(u){this._resolverService=u}hasChildren(u){return u instanceof v||u instanceof s}getChildren(u){if(u instanceof v)return u.groups;if(u instanceof s)return u.resolve(this._resolverService).then(e=>e.children);throw new Error("bad tree")}};oo=lo([uo(0,$t.a)],oo);class io{getHeight(){return 23}getTemplateId(e){return e instanceof s?Er.id:Zn.id}}let mr=class{constructor(u){this._keybindingService=u}getKeyboardNavigationLabel(u){var e;if(u instanceof ma){let t=(e=u.parent.getPreview(u))===null||e===void 0?void 0:e.preview(u.range);if(t)return t.value}return Object(Be.b)(u.uri)}};mr=lo([uo(0,Dt.a)],mr);class Fa{getId(e){return e instanceof ma?e.id:e.uri}}let Yo=class extends Lt.a{constructor(u,e,t){super(),this._uriLabel=e;let n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new be.a(n,{supportHighlights:!0})),this.badge=new Ne.a(ae.p(n,ae.a(".count"))),this._register(Object(je.a)(this.badge,t)),u.appendChild(n)}set(u,e){let t=Object(Be.d)(u.uri);this.file.setLabel(Qt(u.uri),this._uriLabel.getUriLabel(t,{relative:!0}),{title:this._uriLabel.getUriLabel(u.uri),matches:e});let n=u.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(Object(G.a)("referencesCount","{0} references",n)):this.badge.setTitleFormat(Object(G.a)("referenceCount","{0} reference",n))}};Yo=lo([uo(1,De.a),uo(2,ut.c)],Yo);let Er=class lm{constructor(e){this._instantiationService=e,this.templateId=lm.id}renderTemplate(e){return this._instantiationService.createInstance(Yo,e)}renderElement(e,t,n){n.set(e.element,Object(kn.c)(e.filterData))}disposeTemplate(e){e.dispose()}};Er.id="FileReferencesRenderer",Er=lo([uo(0,X.a)],Er);class go{constructor(e){this.label=new no.a(e,!1)}set(e,t){var n;let r=(n=e.parent.getPreview(e))===null||n===void 0?void 0:n.preview(e.range);if(r&&r.value){let{value:d,highlight:m}=r;t&&!kn.a.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(d,Object(kn.c)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(d,[m]))}else this.label.set(`${Object(Be.b)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Zn{constructor(){this.templateId=Zn.id}renderTemplate(e){return new go(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}Zn.id="OneReferenceRenderer";class Zo{getWidgetAriaLabel(){return Object(G.a)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var ws=o(136);o(307);let tl={separatorBorder:Kn.a.transparent};class ou{constructor(e,t,n,r){this.container=e,this.view=t,this.disposable=r,this._cachedVisibleSize=void 0,typeof n=="number"?(this._size=n,this._cachedVisibleSize=void 0,ae.e(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return this._cachedVisibleSize===void 0}setVisible(e,t){e!==this.visible&&(e?(this.size=Object(ci.b)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),ae.ab(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class Tm extends ou{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class Lm extends ou{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}var Wa,nd;(function(u){u[u.Idle=0]="Idle",u[u.Busy=1]="Busy"})(Wa||(Wa={})),function(u){u.Distribute={type:"distribute"},u.Split=function(e){return{type:"split",index:e}},u.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(nd||(nd={}));class Nm extends Lt.a{constructor(e,t={}){super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Wa.Idle,this._onDidSashChange=this._register(new rt.a),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new rt.a),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=to.k(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!to.k(t.proportionalLayout)||!!t.proportionalLayout,this.el=document.createElement("div"),ae.e(this.el,"monaco-split-view2"),ae.e(this.el,this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=ae.p(this.el,ae.a(".sash-container")),this.viewContainer=ae.p(this.el,ae.a(".split-view-container")),this.style(t.styles||tl),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((n,r)=>{let d=to.k(n.visible)||n.visible?n.size:{type:"invisible",cachedVisibleSize:n.size},m=n.view;this.doAddView(m,d,r,!0)}),this.contentSize=this.viewItems.reduce((n,r)=>n+r.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(let t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(let t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(ae.Q(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(ae.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,n=this.viewItems.length,r){this.doAddView(e,t,n,r)}layout(e,t){let n=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let r=0;r<this.viewItems.length;r++){let d=this.viewItems[r];d.size=Object(ci.b)(Math.round(this.proportions[r]*e),d.minimumSize,d.maximumSize)}else{let r=Object(ee.s)(this.viewItems.length),d=r.filter(O=>this.viewItems[O].priority===1),m=r.filter(O=>this.viewItems[O].priority===2);this.resize(this.viewItems.length-1,e-n,void 0,d,m)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:n}){for(let O of this.viewItems)O.enabled=!1;let r=Object(ee.j)(this.sashItems,O=>O.sash===e),d=Object(Lt.e)(Object(tr.a)(document.body,"keydown")(O=>m(this.sashDragState.current,O.altKey)),Object(tr.a)(document.body,"keyup")(()=>m(this.sashDragState.current,!1))),m=(O,re)=>{let oe=this.viewItems.map(St=>St.size),ce,Me,Ct=Number.NEGATIVE_INFINITY,Ut=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(re=!re),re)if(r===this.sashItems.length-1){let St=this.viewItems[r];Ct=(St.minimumSize-St.size)/2,Ut=(St.maximumSize-St.size)/2}else{let St=this.viewItems[r+1];Ct=(St.size-St.maximumSize)/2,Ut=(St.size-St.minimumSize)/2}if(!re){let St=Object(ee.s)(r,-1),di=Object(ee.s)(r+1,this.viewItems.length),hi=St.reduce((fn,$n)=>fn+(this.viewItems[$n].minimumSize-oe[$n]),0),ji=St.reduce((fn,$n)=>fn+(this.viewItems[$n].viewMaximumSize-oe[$n]),0),Ji=di.length===0?Number.POSITIVE_INFINITY:di.reduce((fn,$n)=>fn+(oe[$n]-this.viewItems[$n].minimumSize),0),dn=di.length===0?Number.NEGATIVE_INFINITY:di.reduce((fn,$n)=>fn+(oe[$n]-this.viewItems[$n].viewMaximumSize),0),Ki=Math.max(hi,dn),yn=Math.min(Ji,ji),hn=this.findFirstSnapIndex(St),Qi=this.findFirstSnapIndex(di);if(typeof hn=="number"){let fn=this.viewItems[hn],$n=Math.floor(fn.viewMinimumSize/2);ce={index:hn,limitDelta:fn.visible?Ki-$n:Ki+$n,size:fn.size}}if(typeof Qi=="number"){let fn=this.viewItems[Qi],$n=Math.floor(fn.viewMinimumSize/2);Me={index:Qi,limitDelta:fn.visible?yn+$n:yn-$n,size:fn.size}}}this.sashDragState={start:O,current:O,index:r,sizes:oe,minDelta:Ct,maxDelta:Ut,alt:re,snapBefore:ce,snapAfter:Me,disposable:d}};m(t,n)}onSashChange({current:e}){let{index:t,start:n,sizes:r,alt:d,minDelta:m,maxDelta:O,snapBefore:re,snapAfter:oe}=this.sashDragState;this.sashDragState.current=e;let ce=e-n,Me=this.resize(t,ce,r,void 0,void 0,m,O,re,oe);if(d){let Ct=t===this.sashItems.length-1,Ut=this.viewItems.map(dn=>dn.size),St=Ct?t:t+1,di=this.viewItems[St],hi=di.size-di.maximumSize,ji=di.size-di.minimumSize,Ji=Ct?t-1:t+1;this.resize(Ji,-Me,Ut,void 0,void 0,hi,ji)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(let t of this.viewItems)t.enabled=!0}onViewChange(e,t){let n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=Object(ci.b)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}resizeView(e,t){if(this.state!==Wa.Idle)throw new Error("Cant modify splitview");if(this.state=Wa.Busy,e<0||e>=this.viewItems.length)return;let n=Object(ee.s)(this.viewItems.length).filter(O=>O!==e),r=[...n.filter(O=>this.viewItems[O].priority===1),e],d=n.filter(O=>this.viewItems[O].priority===2),m=this.viewItems[e];t=Math.round(t),t=Object(ci.b)(t,m.minimumSize,Math.min(m.maximumSize,this.size)),m.size=t,this.relayout(r,d),this.state=Wa.Idle}distributeViewSizes(){let e=[],t=0;for(let O of this.viewItems)O.maximumSize-O.minimumSize>0&&(e.push(O),t+=O.size);let n=Math.floor(t/e.length);for(let O of e)O.size=Object(ci.b)(n,O.minimumSize,O.maximumSize);let r=Object(ee.s)(this.viewItems.length),d=r.filter(O=>this.viewItems[O].priority===1),m=r.filter(O=>this.viewItems[O].priority===2);this.relayout(d,m)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,n=this.viewItems.length,r){if(this.state!==Wa.Idle)throw new Error("Cant modify splitview");this.state=Wa.Busy;let d=ae.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(d):this.viewContainer.insertBefore(d,this.viewContainer.children.item(n));let m=e.onDidChange(Ct=>this.onViewChange(ce,Ct)),O=Object(Lt.h)(()=>this.viewContainer.removeChild(d)),re=Object(Lt.e)(m,O),oe;oe=typeof t=="number"?t:t.type==="split"?this.getViewSize(t.index)/2:t.type==="invisible"?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;let ce=this.orientation===0?new Tm(d,e,oe,re):new Lm(d,e,oe,re);if(this.viewItems.splice(n,0,ce),this.viewItems.length>1){let Ct=this.orientation===0?new ra.a(this.sashContainer,{getHorizontalSashTop:Ki=>this.getSashPosition(Ki)},{orientation:1,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}):new ra.a(this.sashContainer,{getVerticalSashLeft:Ki=>this.getSashPosition(Ki)},{orientation:0,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Ut=this.orientation===0?Ki=>({sash:Ct,start:Ki.startY,current:Ki.currentY,alt:Ki.altKey}):Ki=>({sash:Ct,start:Ki.startX,current:Ki.currentX,alt:Ki.altKey}),St=rt.b.map(Ct.onDidStart,Ut)(this.onSashStart,this),di=rt.b.map(Ct.onDidChange,Ut)(this.onSashChange,this),hi=rt.b.map(Ct.onDidEnd,()=>Object(ee.j)(this.sashItems,Ki=>Ki.sash===Ct))(this.onSashEnd,this),ji=Ct.onDidReset(()=>{let Ki=Object(ee.j)(this.sashItems,$n=>$n.sash===Ct),yn=Object(ee.s)(Ki,-1),hn=Object(ee.s)(Ki+1,this.viewItems.length),Qi=this.findFirstSnapIndex(yn),fn=this.findFirstSnapIndex(hn);(typeof Qi!="number"||this.viewItems[Qi].visible)&&(typeof fn!="number"||this.viewItems[fn].visible)&&this._onDidSashReset.fire(Ki)}),Ji=Object(Lt.e)(St,di,hi,ji,Ct),dn={sash:Ct,disposable:Ji};this.sashItems.splice(n-1,0,dn)}let Me;d.appendChild(e.element),typeof t!="number"&&t.type==="split"&&(Me=[t.index]),r||this.relayout([n],Me),this.state=Wa.Idle,r||typeof t=="number"||t.type!=="distribute"||this.distributeViewSizes()}relayout(e,t){let n=this.viewItems.reduce((r,d)=>r+d.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,n=this.viewItems.map(ce=>ce.size),r,d,m=Number.NEGATIVE_INFINITY,O=Number.POSITIVE_INFINITY,re,oe){if(e<0||e>=this.viewItems.length)return 0;let ce=Object(ee.s)(e,-1),Me=Object(ee.s)(e+1,this.viewItems.length);if(d)for(let Qi of d)Object(ee.r)(ce,Qi),Object(ee.r)(Me,Qi);if(r)for(let Qi of r)Object(ee.q)(ce,Qi),Object(ee.q)(Me,Qi);let Ct=ce.map(Qi=>this.viewItems[Qi]),Ut=ce.map(Qi=>n[Qi]),St=Me.map(Qi=>this.viewItems[Qi]),di=Me.map(Qi=>n[Qi]),hi=ce.reduce((Qi,fn)=>Qi+(this.viewItems[fn].minimumSize-n[fn]),0),ji=ce.reduce((Qi,fn)=>Qi+(this.viewItems[fn].maximumSize-n[fn]),0),Ji=Me.length===0?Number.POSITIVE_INFINITY:Me.reduce((Qi,fn)=>Qi+(n[fn]-this.viewItems[fn].minimumSize),0),dn=Me.length===0?Number.NEGATIVE_INFINITY:Me.reduce((Qi,fn)=>Qi+(n[fn]-this.viewItems[fn].maximumSize),0),Ki=Math.max(hi,dn,m),yn=Math.min(Ji,ji,O),hn=!1;if(re){let Qi=this.viewItems[re.index],fn=t>=re.limitDelta;hn=fn!==Qi.visible,Qi.setVisible(fn,re.size)}if(!hn&&oe){let Qi=this.viewItems[oe.index],fn=t<oe.limitDelta;hn=fn!==Qi.visible,Qi.setVisible(fn,oe.size)}if(hn)return this.resize(e,t,n,r,d,m,O);for(let Qi=0,fn=t=Object(ci.b)(t,Ki,yn);Qi<Ct.length;Qi++){let $n=Ct[Qi],bo=Object(ci.b)(Ut[Qi]+fn,$n.minimumSize,$n.maximumSize);fn-=bo-Ut[Qi],$n.size=bo}for(let Qi=0,fn=t;Qi<St.length;Qi++){let $n=St[Qi],bo=Object(ci.b)(di[Qi]-fn,$n.minimumSize,$n.maximumSize);fn+=bo-di[Qi],$n.size=bo}return t}distributeEmptySpace(e){let t=this.viewItems.reduce((O,re)=>O+re.size,0),n=this.size-t,r=Object(ee.s)(this.viewItems.length-1,-1),d=r.filter(O=>this.viewItems[O].priority===1),m=r.filter(O=>this.viewItems[O].priority===2);for(let O of m)Object(ee.r)(r,O);for(let O of d)Object(ee.q)(r,O);typeof e=="number"&&Object(ee.q)(r,e);for(let O=0;n!==0&&O<r.length;O++){let re=this.viewItems[r[O]],oe=Object(ci.b)(re.size+n,re.minimumSize,re.maximumSize);n-=oe-re.size,re.size=oe}}layoutViews(){this.contentSize=this.viewItems.reduce((t,n)=>t+n.size,0);let e=0;for(let t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement()}updateSashEnablement(){let e=!1,t=this.viewItems.map(re=>e=re.size-re.minimumSize>0||e);e=!1;let n=this.viewItems.map(re=>e=re.maximumSize-re.size>0||e),r=[...this.viewItems].reverse();e=!1;let d=r.map(re=>e=re.size-re.minimumSize>0||e).reverse();e=!1;let m=r.map(re=>e=re.maximumSize-re.size>0||e).reverse(),O=0;for(let re=0;re<this.sashItems.length;re++){let{sash:oe}=this.sashItems[re];O+=this.viewItems[re].size;let ce=!(t[re]&&m[re+1]),Me=!(n[re]&&d[re+1]);if(ce&&Me){let Ct=Object(ee.s)(re,-1),Ut=Object(ee.s)(re+1,this.viewItems.length),St=this.findFirstSnapIndex(Ct),di=this.findFirstSnapIndex(Ut),hi=typeof St=="number"&&!this.viewItems[St].visible,ji=typeof di=="number"&&!this.viewItems[di].visible;hi&&d[re]&&(O>0||this.startSnappingEnabled)?oe.state=1:ji&&t[re]&&(O<this.contentSize||this.endSnappingEnabled)?oe.state=2:oe.state=0}else oe.state=ce&&!Me?1:!ce&&Me?2:3}}getSashPosition(e){let t=0;for(let n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}findFirstSnapIndex(e){for(let t of e){let n=this.viewItems[t];if(n.visible&&n.snap)return t}for(let t of e){let n=this.viewItems[t];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach(e=>e.dispose()),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}var Im=o(150),Om=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Nl=function(u,e){return function(t,n){e(t,n,u)}},ru=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class od{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Lt.b,this._callOnModelChange=new Lt.b,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));let t=[],n=[];for(let d=0,m=e.children.length;d<m;d++){let O=e.children[d];this._decorationIgnoreSet.has(O.id)||O.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:O.range,options:od.DecorationOptions}),n.push(d))}let r=this._editor.deltaDecorations([],t);for(let d=0;d<r.length;d++)this._decorations.set(r[d],e.children[n[d]])}_onDecorationChanged(){let e=[],t=this._editor.getModel();if(t){for(let[n,r]of this._decorations){let d=t.getDecorationRange(n);if(!d)continue;let m=!1;gt.a.equalsRange(d,r.range)||((gt.a.spansMultipleLines(d)||r.range.endColumn-r.range.startColumn!=d.endColumn-d.startColumn)&&(m=!0),m?(this._decorationIgnoreSet.add(r.id),e.push(n)):r.range=d)}for(let n=0,r=e.length;n<r;n++)this._decorations.delete(e[n]);this._editor.deltaDecorations(e,[])}}removeDecorations(){this._editor.deltaDecorations([...this._decorations.keys()],[]),this._decorations.clear()}}od.DecorationOptions=Rt.a.register({stickiness:1,className:"reference-decoration"});class Dm extends ws.c{}let sh=class extends el{constructor(u,e,t,n,r,d,m,O,re,oe){super(u,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0},d),this._defaultTreeKeyboardSupport=e,this.layoutData=t,this._textModelResolverService=r,this._instantiationService=d,this._peekViewService=m,this._uriLabel=O,this._undoRedoService=re,this._keybindingService=oe,this._disposeOnNewModel=new Lt.b,this._callOnDispose=new Lt.b,this._onDidSelectReference=new rt.a,this.onDidSelectReference=this._onDidSelectReference.event,this._dim={height:0,width:0},this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(u,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(Lt.f)(this._preview),Object(Lt.f)(this._previewNotAvailableMessage),Object(Lt.f)(this._tree),Object(Lt.f)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(u){let e=u.getColor(Fr)||Kn.a.transparent;this.style({arrowColor:e,frameColor:e,headerBackgroundColor:u.getColor(kr)||Kn.a.transparent,primaryHeadingColor:u.getColor(Vo),secondaryHeadingColor:u.getColor(Ll)})}show(u){this.editor.revealRangeInCenterIfOutsideViewport(u,0),super.show(u,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(u){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:u.ctrlKey||u.metaKey||u.altKey?"side":"open",source:"title"})}_fillBody(u){this.setCssClass("reference-zone-widget"),this._messageContainer=ae.p(u,ae.a("div.messages")),ae.K(this._messageContainer),this._splitView=new Nm(u,{orientation:1}),this._previewContainer=ae.p(u,ae.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(To,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),ae.K(this._previewContainer),this._previewNotAvailableMessage=new Rt.b(G.a("missingPreviewMessage","no preview available"),Rt.b.DEFAULT_CREATION_OPTIONS,null,null,this._undoRedoService),this._treeContainer=ae.p(u,ae.a("div.ref-tree.inline"));let e={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Zo,keyboardNavigationLabelProvider:this._instantiationService.createInstance(mr),identityProvider:new Fa,openOnSingleClick:!0,openOnFocus:!0,overrideStyles:{listBackground:vs}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(ae.n(this._treeContainer,"keydown",n=>{n.equals(9)&&(this._keybindingService.dispatchEvent(n,n.target),n.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(Dm,"ReferencesWidget",this._treeContainer,new io,[this._instantiationService.createInstance(Er),this._instantiationService.createInstance(Zn)],this._instantiationService.createInstance(oo),e),this._splitView.addView({onDidChange:rt.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:n=>{this._preview.layout({height:this._dim.height,width:n})}},nd.Distribute),this._splitView.addView({onDidChange:rt.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:n=>{this._treeContainer.style.height=this._dim.height+"px",this._treeContainer.style.width=n+"px",this._tree.layout(this._dim.height,n)}},nd.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let t=(n,r)=>{n instanceof ma&&(r==="show"&&this._revealReference(n,!1),this._onDidSelectReference.fire({element:n,kind:r,source:"tree"}))};this._tree.onDidOpen(n=>{n.sideBySide?t(n.element,"side"):n.editorOptions.pinned?t(n.element,"goto"):t(n.element,"show")}),ae.K(this._treeContainer)}_onWidth(u){this._dim&&this._doLayoutBody(this._dim.height,u)}_doLayoutBody(u,e){super._doLayoutBody(u,e),this._dim={height:u,width:e},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(e),this._splitView.resizeView(0,e*this.layoutData.ratio)}setSelection(u){return this._revealReference(u,!0).then(()=>{this._model&&(this._tree.setSelection([u]),this._tree.setFocus([u]))})}setModel(u){return this._disposeOnNewModel.clear(),this._model=u,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=G.a("noResults","No results"),ae.Z(this._messageContainer),Promise.resolve(void 0)):(ae.K(this._messageContainer),this._decorationsManager=new od(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(u=>this._tree.rerender(u))),this._disposeOnNewModel.add(this._preview.onMouseDown(u=>{let{event:e,target:t}=u;if(e.detail!==2)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:t.range},kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),ae.Z(this._treeContainer),ae.Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){let[u]=this._tree.getFocus();return u instanceof ma?u:u instanceof s&&u.children.length>0?u.children[0]:void 0}revealReference(u){return ru(this,void 0,void 0,function*(){yield this._revealReference(u,!1),this._onDidSelectReference.fire({element:u,kind:"goto",source:"tree"})})}_revealReference(u,e){return ru(this,void 0,void 0,function*(){if(this._revealedReference===u)return;this._revealedReference=u,u.uri.scheme!==M.b.inMemory?this.setTitle(Object(Be.c)(u.uri),this._uriLabel.getUriLabel(Object(Be.d)(u.uri))):this.setTitle(G.a("peekView.alternateTitle","References"));let t=this._textModelResolverService.createModelReference(u.uri);this._tree.getInput()===u.parent||(e&&this._tree.reveal(u.parent),yield this._tree.expand(u.parent)),this._tree.reveal(u);let n=yield t;if(!this._model)return void n.dispose();Object(Lt.f)(this._previewModelReference);let r=n.object;if(r){let d=this._preview.getModel()===r.textEditorModel?0:1,m=gt.a.lift(u.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(r.textEditorModel),this._preview.setSelection(m),this._preview.revealRangeInCenter(m,d)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};sh=Om([Nl(3,ut.c),Nl(4,$t.a),Nl(5,X.a),Nl(6,Qa),Nl(7,De.a),Nl(8,Im.a),Nl(9,Dt.a)],sh),Object(ut.g)((u,e)=>{let t=u.getColor(ih);t&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${t}; }`);let n=u.getColor(nh);n&&e.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${n}; }`);let r=u.getColor(oh);r&&e.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${r}; box-sizing: border-box; }`);let d=u.getColor(Ue.b);d&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${d}; box-sizing: border-box; }`);let m=u.getColor(vs);m&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${m}; }`);let O=u.getColor(Ps);O&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${O}; }`);let re=u.getColor(Qd);re&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${re}; }`);let oe=u.getColor(Jd);oe&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${oe}; }`);let ce=u.getColor(eh);ce&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${ce} !important; }`);let Me=u.getColor(ic);Me&&e.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input { background-color: ${Me};}`);let Ct=u.getColor(th);Ct&&e.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin { background-color: ${Ct};}`)});var Am=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},nc=function(u,e){return function(t,n){e(t,n,u)}},su=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Il=new A.c("referenceSearchVisible",!1),il=class Xh{constructor(e,t,n,r,d,m,O,re){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=r,this._notificationService=d,this._instantiationService=m,this._storageService=O,this._configurationService=re,this._disposables=new Lt.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Il.bindTo(n)}static get(e){return e.getContribution(Xh.ID)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(Lt.f)(this._widget),Object(Lt.f)(this._model),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let r;if(this._widget&&(r=this._widget.position),this.closeWidget(),r&&e.containsPosition(r))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let d=class{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(O){let re,oe;try{let ce=JSON.parse(O);re=ce.ratio,oe=ce.heightInLines}catch(ce){}return{ratio:re||.7,heightInLines:oe||18}}}.fromJSON(this._storageService.get("peekViewLayout",0,"{}"));this._widget=this._instantiationService.createInstance(sh,this._editor,this._defaultTreeKeyboardSupport,d),this._widget.setTitle(G.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store("peekViewLayout",JSON.stringify(this._widget.layoutData),0),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(O=>{let{element:re,kind:oe}=O;if(re)switch(oe){case"open":O.source==="editor"&&this._configurationService.getValue("editor.stablePeek")||this.openReference(re,!1);break;case"side":this.openReference(re,!0);break;case"goto":n?this._gotoReference(re):this.openReference(re,!1)}}));let m=++this._requestIdPool;t.then(O=>{if(m===this._requestIdPool&&this._widget)return this._model&&this._model.dispose(),this._model=O,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(G.a("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let re=this._editor.getModel().uri,oe=new Di.a(e.startLineNumber,e.startColumn),ce=this._model.nearestReference(re,oe);if(ce)return this._widget.setSelection(ce).then(()=>{this._widget&&this._editor.getOption(68)==="editor"&&this._widget.focusOnPreviewEditor()})}})},O=>{this._notificationService.error(O)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return su(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;let r=this._model.nextOrPreviousReference(n,e),d=this._editor.hasTextFocus(),m=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(r),yield this._gotoReference(r),d?this._editor.focus():this._widget&&m&&this._widget.focusOnPreviewEditor()})}revealReference(e){return su(this,void 0,void 0,function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))})}closeWidget(e=!0){Object(Lt.f)(this._widget),Object(Lt.f)(this._model),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;let t=gt.a.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t}},this._editor).then(n=>{var r;if(this._ignoreModelChangeEvent=!1,n&&this._widget)if(this._editor===n)this._widget.show(t),this._widget.focusOnReferenceTree();else{let d=Xh.get(n),m=this._model.clone();this.closeWidget(),n.focus(),d.toggleWidget(t,Object(Bi.f)(O=>Promise.resolve(m)),(r=this._peekMode)!==null&&r!==void 0&&r)}else this.closeWidget()},n=>{this._ignoreModelChangeEvent=!1,Object(Oe.e)(n)})}openReference(e,t){t||this.closeWidget();let{uri:n,range:r}=e;this._editorService.openCodeEditor({resource:n,options:{selection:r}},this._editor,t)}};function Ol(u,e){let t=function(r){let d=r.get(Si.a).getFocusedCodeEditor();return d instanceof To?d.getParentEditor():d}(u);if(!t)return;let n=il.get(t);n&&e(n)}il.ID="editor.contrib.referencesController",il=Am([nc(2,A.b),nc(3,Si.a),nc(4,Re.a),nc(5,X.a),nc(6,Qn.a),nc(7,Eo.a)],il),ar.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(Se.a)(2089,60),when:A.a.or(Il,Jo.inPeekEditor),handler(u){Ol(u,e=>{e.changeFocusBetweenPreviewAndReferences()})}}),ar.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:A.a.or(Il,Jo.inPeekEditor),handler(u){Ol(u,e=>{e.goToNextOrPreviousReference(!0)})}}),ar.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:A.a.or(Il,Jo.inPeekEditor),handler(u){Ol(u,e=>{e.goToNextOrPreviousReference(!1)})}}),Ee.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ee.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ee.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ee.a.registerCommand("closeReferenceSearch",u=>Ol(u,e=>e.closeWidget())),ar.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:A.a.and(Jo.inPeekEditor,A.a.not("config.editor.stablePeek"))}),ar.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:A.a.and(Il,A.a.not("config.editor.stablePeek"))}),ar.a.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:A.a.and(Il,ws.e),handler(u){var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Ol(u,n=>n.revealReference(t[0]))}}),ar.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:A.a.and(Il,ws.e),handler(u){var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Ol(u,n=>n.openReference(t[0],!0))}}),Ee.a.registerCommand("openReference",u=>{var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Ol(u,n=>n.openReference(t[0],!1))});var Rm=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Dc(u,e,t,n){let r=t.ordered(u).map(d=>Promise.resolve(n(d,u,e)).then(void 0,m=>{Object(Oe.f)(m)}));return Promise.all(r).then(d=>{let m=[];for(let O of d)Array.isArray(O)?m.push(...O):O&&m.push(O);return m})}function ah(u,e,t){return Dc(u,e,I.f,(n,r,d)=>n.provideDefinition(r,d,t))}function au(u,e,t){return Dc(u,e,I.e,(n,r,d)=>n.provideDeclaration(r,d,t))}function lu(u,e,t){return Dc(u,e,I.q,(n,r,d)=>n.provideImplementation(r,d,t))}function cu(u,e,t){return Dc(u,e,I.D,(n,r,d)=>n.provideTypeDefinition(r,d,t))}function rd(u,e,t,n){return Dc(u,e,I.v,(r,d,m)=>Rm(this,void 0,void 0,function*(){let O=yield r.provideReferences(d,m,{includeDeclaration:!0},n);if(!t||!O||O.length!==2)return O;let re=yield r.provideReferences(d,m,{includeDeclaration:!1},n);return re&&re.length===1?re:O}))}Object($.p)("_executeDefinitionProvider",(u,e)=>ah(u,e,On.a.None)),Object($.p)("_executeDeclarationProvider",(u,e)=>au(u,e,On.a.None)),Object($.p)("_executeImplementationProvider",(u,e)=>lu(u,e,On.a.None)),Object($.p)("_executeTypeDefinitionProvider",(u,e)=>cu(u,e,On.a.None)),Object($.p)("_executeReferenceProvider",(u,e)=>rd(u,e,!1,On.a.None));var du=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ac=function(u,e){return function(t,n){e(t,n,u)}};let lh=new A.c("hasSymbols",!1),sd=Object(X.c)("ISymbolNavigationService"),ch=class{constructor(u,e,t,n){this._editorService=e,this._notificationService=t,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=lh.bindTo(u)}reset(){this._ctxHasSymbols.reset(),Object(Lt.f)(this._currentState),Object(Lt.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1}put(u){let e=u.parent.parent;if(e.references.length<=1)return void this.reset();this._currentModel=e,this._currentIdx=e.references.indexOf(u),this._ctxHasSymbols.set(!0),this._showMessage();let t=new dh(this._editorService),n=t.onDidChange(r=>{if(this._ignoreEditorChange)return;let d=this._editorService.getActiveCodeEditor();if(!d)return;let m=d.getModel(),O=d.getPosition();if(!m||!O)return;let re=!1,oe=!1;for(let ce of e.references)if(Object(Be.f)(ce.uri,m.uri))re=!0,oe=oe||gt.a.containsPosition(ce.range,O);else if(re)break;re&&oe||this.reset()});this._currentState=Object(Lt.e)(t,n)}revealNext(u){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let e=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:e.uri,options:{selection:gt.a.collapseToStart(e.range),selectionRevealType:3}},u).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){Object(Lt.f)(this._currentMessage);let u=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),e=u?Object(G.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,u.getLabel()):Object(G.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(e)}};ch=du([Ac(0,A.b),Ac(1,Si.a),Ac(2,Re.a),Ac(3,Dt.a)],ch),Object(In.b)(sd,ch,!0),Object($.l)(new class extends $.c{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:lh,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,e){return u.get(sd).revealNext(e)}}),ar.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:lh,primary:9,handler(u){u.get(sd).reset()}});let dh=class{constructor(u){this._listener=new Map,this._disposables=new Lt.b,this._onDidChange=new rt.a,this.onDidChange=this._onDidChange.event,this._disposables.add(u.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(u.onCodeEditorAdd(this._onDidAddEditor,this)),u.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(Lt.f)(this._listener.values())}_onDidAddEditor(u){this._listener.set(u,Object(Lt.e)(u.onDidChangeCursorPosition(e=>this._onDidChange.fire({editor:u})),u.onDidChangeModelContent(e=>this._onDidChange.fire({editor:u}))))}_onDidRemoveEditor(u){Object(Lt.f)(this._listener.get(u)),this._listener.delete(u)}};dh=du([Ac(0,Si.a)],dh);var hu,uu,pu,mu,gu,fu,bu,_u,Fs=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};ze.d.appendMenuItem(ze.b.EditorContext,{submenu:ze.b.EditorContextPeek,title:G.a("peek.submenu","Peek"),group:"navigation",order:100});class oc extends $.b{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);let n=e.get(Re.a),r=e.get(Si.a),d=e.get(ot.a),m=e.get(sd),O=t.getModel(),re=t.getPosition(),oe=new qt.b(t,5),ce=Object(Bi.j)(this._getLocationModel(O,re,oe.token),oe.token).then(Me=>Fs(this,void 0,void 0,function*(){if(!Me||oe.token.isCancellationRequested)return;let Ct;if(Object(_i.a)(Me.ariaMessage),Me.referenceAt(O.uri,re)){let St=this._getAlternativeCommand(t);St!==this.id&&(Ct=t.getAction(St))}let Ut=Me.references.length;if(Ut===0){if(!this._configuration.muteMessage){let St=O.getWordAtPosition(re);wi.get(t).showMessage(this._getNoResultFoundMessage(St),re)}}else{if(Ut!==1||!Ct)return this._onResult(r,m,t,Me);Ct.run()}}),Me=>{n.error(Me)}).finally(()=>{oe.dispose()});return d.showWhile(ce,250),ce}_onResult(e,t,n,r){return Fs(this,void 0,void 0,function*(){let d=this._getGoToPreference(n);if(n instanceof To||!(this._configuration.openInPeek||d==="peek"&&r.references.length>1)){let m=r.firstReference(),O=r.references.length>1&&d==="gotoAndPeek",re=yield this._openReference(n,e,m,this._configuration.openToSide,!O);O&&re?this._openInPeek(re,r):r.dispose(),d==="goto"&&t.put(m)}else this._openInPeek(n,r)})}_openReference(e,t,n,r,d){return Fs(this,void 0,void 0,function*(){let m;Object(I.G)(n)&&(m=n.targetSelectionRange),m||(m=n.range);let O=yield t.openCodeEditor({resource:n.uri,options:{selection:gt.a.collapseToStart(m),selectionRevealType:3}},e,r);if(O){if(d){let re=O.getModel(),oe=O.deltaDecorations([],[{range:m,options:{className:"symbolHighlight"}}]);setTimeout(()=>{O.getModel()===re&&O.deltaDecorations(oe,[])},350)}return O}})}_openInPeek(e,t){let n=il.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(Bi.f)(r=>Promise.resolve(t)),this._configuration.openInPeek):t.dispose()}}class ad extends oc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield ah(e,t,n),G.a("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("noResultWord","No definition found for '{0}'",e.word):G.a("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleDefinitions}}let vu=Et.h&&!kt.k?2118:70;Object($.k)(((hu=class Qh extends ad{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qh.id,label:G.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:A.a.and(z.a.hasDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:vu,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:2,title:G.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}}),Ee.a.registerCommandAlias("editor.action.goToDeclaration",Qh.id)}}).id="editor.action.revealDefinition",hu)),Object($.k)(((uu=class Jh extends ad{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Jh.id,label:G.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:A.a.and(z.a.hasDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,vu),weight:100}}),Ee.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Jh.id)}}).id="editor.action.revealDefinitionAside",uu)),Object($.k)(((pu=class eu extends ad{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:eu.id,label:G.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:A.a.and(z.a.hasDefinitionProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:2}}),Ee.a.registerCommandAlias("editor.action.previewDeclaration",eu.id)}}).id="editor.action.peekDefinition",pu));class wu extends oc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield au(e,t,n),G.a("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("decl.noResultWord","No declaration found for '{0}'",e.word):G.a("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(43).multipleDeclarations}}Object($.k)(((mu=class cm extends wu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cm.id,label:G.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:A.a.and(z.a.hasDeclarationProvider,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:G.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})}_getNoResultFoundMessage(e){return e&&e.word?G.a("decl.noResultWord","No declaration found for '{0}'",e.word):G.a("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",mu)),Object($.k)(class extends wu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:G.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:A.a.and(z.a.hasDeclarationProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:3}})}});class yu extends oc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield cu(e,t,n),G.a("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):G.a("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleTypeDefinitions}}Object($.k)(((gu=class dm extends yu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:dm.ID,label:G.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:A.a.and(z.a.hasTypeDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:G.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})}}).ID="editor.action.goToTypeDefinition",gu)),Object($.k)(((fu=class hm extends yu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hm.ID,label:G.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:A.a.and(z.a.hasTypeDefinitionProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",fu));class Cu extends oc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield lu(e,t,n),G.a("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):G.a("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(43).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(43).multipleImplementations}}Object($.k)(((bu=class um extends Cu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:um.ID,label:G.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:A.a.and(z.a.hasImplementationProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:4,title:G.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",bu)),Object($.k)(((_u=class pm extends Cu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:pm.ID,label:G.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:A.a.and(z.a.hasImplementationProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",_u));class xu extends oc{_getNoResultFoundMessage(e){return e?G.a("references.no","No references found for '{0}'",e.word):G.a("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(43).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(43).multipleReferences}}Object($.k)(class extends xu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:G.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:A.a.and(z.a.hasReferenceProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:5,title:G.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})}_getLocationModel(u,e,t){return Fs(this,void 0,void 0,function*(){return new v(yield rd(u,e,!0,t),G.a("ref.title","References"))})}}),Object($.k)(class extends xu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:G.a("references.action.label","Peek References"),alias:"Peek References",precondition:A.a.and(z.a.hasReferenceProvider,Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(u,e,t){return Fs(this,void 0,void 0,function*(){return new v(yield rd(u,e,!1,t),G.a("ref.title","References"))})}});class Mm extends oc{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",label:G.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:A.a.and(Jo.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(this._references,G.a("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&G.a("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(43).multipleReferences}_getAlternativeCommand(){return""}}Ee.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Dn.a},{name:"position",description:"The position at which to start",constraint:Di.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(u,e,t,n,r,d,m)=>Fs(void 0,void 0,void 0,function*(){Object(to.b)(Dn.a.isUri(e)),Object(to.b)(Di.a.isIPosition(t)),Object(to.b)(Array.isArray(n)),Object(to.b)(r===void 0||typeof r=="string"),Object(to.b)(m===void 0||typeof m=="boolean");let O=u.get(Si.a),re=yield O.openCodeEditor({resource:e},O.getFocusedCodeEditor());if(Object(Zr.b)(re))return re.setPosition(t),re.revealPositionInCenterIfOutsideViewport(t,0),re.invokeWithinContext(oe=>{let ce=new class extends Mm{_getNoResultFoundMessage(Me){return d||super._getNoResultFoundMessage(Me)}}({muteMessage:!Boolean(d),openInPeek:Boolean(m),openToSide:!1},n,r);oe.get(X.a).invokeFunction(ce.run.bind(ce),re)})})}),Ee.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Dn.a},{name:"position",description:"The position at which to start",constraint:Di.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(u,e,t,n,r)=>Fs(void 0,void 0,void 0,function*(){u.get(Ee.b).executeCommand("editor.action.goToLocations",e,t,n,r,void 0,!0)})}),Ee.a.registerCommand({id:"editor.action.findReferences",handler:(u,e,t)=>{Object(to.b)(Dn.a.isUri(e)),Object(to.b)(Di.a.isIPosition(t));let n=u.get(Si.a);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(r=>{if(!Object(Zr.b)(r)||!r.hasModel())return;let d=il.get(r);if(!d)return;let m=Object(Bi.f)(re=>rd(r.getModel(),Di.a.lift(t),!1,re).then(oe=>new v(oe,G.a("ref.title","References")))),O=new gt.a(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(d.toggleWidget(O,m,!1))})}}),Ee.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),o(309);var nl=o(109);function hh(u,e){return!!u[e]}class uh{constructor(e,t){this.target=e.target,this.hasTriggerModifier=hh(e.event,t.triggerModifier),this.hasSideBySideModifier=hh(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class Su{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=hh(e,t.triggerModifier)}}class ld{constructor(e,t,n,r){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=r}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ku(u){return u==="altKey"?Et.f?new ld(57,"metaKey",6,"altKey"):new ld(5,"ctrlKey",6,"altKey"):Et.f?new ld(6,"altKey",57,"metaKey"):new ld(6,"altKey",5,"ctrlKey")}class Eu extends Lt.a{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new rt.a),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new rt.a),this.onExecute=this._onExecute.event,this._onCancel=this._register(new rt.a),this.onCancel=this._onCancel.event,this._editor=e,this._opts=ku(this._editor.getOption(61)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(61)){let n=ku(this._editor.getOption(61));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(t=>this._onEditorMouseMove(new uh(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new uh(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new uh(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new Su(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new Su(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){let t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Pm=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Tu=function(u,e){return function(t,n){e(t,n,u)}};let Dl=class ed{constructor(e,t,n){this.textModelResolverService=t,this.modeService=n,this.toUnhook=new Lt.b,this.toUnhookForKeyboard=new Lt.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let r=new Eu(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown(([d,m])=>{this.startFindDefinitionFromMouse(d,Object(to.n)(m))})),this.toUnhook.add(r.onExecute(d=>{this.isEnabled(d)&&this.gotoDefinition(d.target.position,d.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},m=>{this.removeLinkDecorations(),Object(Oe.e)(m)})})),this.toUnhook.add(r.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(ed.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();let n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();let n=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!n)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return Promise.resolve(0);this.currentWordAtPosition=n;let r=new qt.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(Bi.f)(d=>this.findDefinition(e,d)),this.previousPromise.then(d=>{if(d&&d.length&&r.validate(this.editor))if(d.length>1)this.addDecoration(new gt.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),new $e().appendText(G.a("multipleResults","Click to show {0} definitions.",d.length)));else{let m=d[0];if(!m.uri)return;this.textModelResolverService.createModelReference(m.uri).then(O=>{if(!O.object||!O.object.textEditorModel)return void O.dispose();let{object:{textEditorModel:re}}=O,{startLineNumber:oe}=m.range;if(oe<1||oe>re.getLineCount())return void O.dispose();let ce=this.getPreviewValue(re,oe,m),Me;Me=m.originSelectionRange?gt.a.lift(m.originSelectionRange):new gt.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);let Ct=this.modeService.getModeIdByFilepathOrFirstLine(re.uri);this.addDecoration(Me,new $e().appendCodeblock(Ct||"",ce)),O.dispose()})}else this.removeLinkDecorations()}).then(void 0,Oe.e)}getPreviewValue(e,t,n){let r=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(e,t);return r.endLineNumber-r.startLineNumber>=ed.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,r)}stripIndentationFromPreviewRange(e,t,n){let r=e.getLineFirstNonWhitespaceColumn(t);for(let d=t+1;d<n.endLineNumber;d++){let m=e.getLineFirstNonWhitespaceColumn(d);r=Math.min(r,m)}return e.getValueInRange(n).replace(new RegExp(`^\\s{${r-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){let n=e.getLineFirstNonWhitespaceColumn(t),r=Math.min(e.getLineCount(),t+ed.MAX_SOURCE_PREVIEW_LINES),d=t+1;for(;d<r&&n!==e.getLineFirstNonWhitespaceColumn(d);d++);return new gt.a(t,1,d+1,1)}getPreviewRangeBasedOnBrackets(e,t){let n=Math.min(e.getLineCount(),t+ed.MAX_SOURCE_PREVIEW_LINES),r=[],d=!0,m=e.findNextBracket(new Di.a(t,1));for(;m!==null;){if(r.length===0)r.push(m);else{let ce=r[r.length-1];if(ce.open[0]===m.open[0]&&ce.isOpen&&!m.isOpen?r.pop():r.push(m),r.length===0){if(!d)return new gt.a(t,1,m.range.endLineNumber+1,1);d=!1}}let O=e.getLineMaxColumn(t),re=m.range.endLineNumber,oe=m.range.endColumn;if(O===m.range.endColumn&&(re++,oe=1),re>n)return new gt.a(t,1,n+1,1);m=e.findNextBracket(new Di.a(re,oe))}return new gt.a(t,1,n+1,1)}addDecoration(e,t){let n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&e.target.type===6&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&I.f.has(this.editor.getModel())}findDefinition(e,t){let n=this.editor.getModel();return n?ah(n,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(n=>{let r=!t&&this.editor.getOption(69)&&!this.isInPeekEditor(n);return new ad({openToSide:t,openInPeek:r,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(n,this.editor)})}isInPeekEditor(e){let t=e.get(A.b);return Jo.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Dl.ID="editor.contrib.gotodefinitionatposition",Dl.MAX_SOURCE_PREVIEW_LINES=8,Dl=Pm([Tu(1,$t.a),Tu(2,nl.a)],Dl),Object($.m)(Dl.ID,Dl),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.r);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)}),o(311);var ph,cd=o(105),dd=o(68);(ph||(ph={})).className=function(u){switch(u){case dd.a.Ignore:return"severity-ignore "+de.a.info.classNames;case dd.a.Info:return de.a.info.classNames;case dd.a.Warning:return de.a.warning.classNames;case dd.a.Error:return de.a.error.classNames;default:return""}},Object(ut.g)((u,e)=>{let t=u.getColor(Ue.Zb);if(t){let d=de.a.error.cssSelector;e.addRule(` + `)});var Zs=r(135);class ca extends $.b{constructor(){super({id:"editor.action.fontZoomIn",label:G.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(Zs.a.getZoomLevel()+1)}}class Oa extends $.b{constructor(){super({id:"editor.action.fontZoomOut",label:G.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(Zs.a.getZoomLevel()-1)}}class ar extends $.b{constructor(){super({id:"editor.action.fontZoomReset",label:G.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){Zs.a.setZoomLevel(0)}}Object($.k)(ca),Object($.k)(Oa),Object($.k)(ar);var Xs=r(76),Rs=r(96),Zo=r(112);class Qs{static _handleEolEdits(e,t){let n,o=[];for(let d of t)typeof d.eol=="number"&&(n=d.eol),d.range&&typeof d.text=="string"&&o.push(d);return typeof n=="number"&&e.hasModel()&&e.getModel().pushEOL(n),o}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let n=e.getModel(),o=n.validateRange(t.range);return n.getFullModelRange().equalsRange(o)}static execute(e,t,n){n&&e.pushUndoStop();let o=Qs._handleEolEdits(e,t);o.length===1&&Qs._isFullModelReplaceEdit(e,o[0])?e.executeEdits("formatEditsCommand",o.map(d=>Cn.a.replace(gt.a.lift(d.range),d.text))):e.executeEdits("formatEditsCommand",o.map(d=>Cn.a.replaceMove(gt.a.lift(d.range),d.text))),n&&e.pushUndoStop()}}class Aa{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Sl=r(53),Ka=r(37),Js=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Ga(u){if(!(u=u.filter(o=>o.range)).length)return;let{range:e}=u[0];for(let o=1;o<u.length;o++)e=gt.a.plusRange(e,u[o].range);let{startLineNumber:t,endLineNumber:n}=e;t===n?u.length===1?Object(_i.a)(G.a("hint11","Made 1 formatting edit on line {0}",t)):Object(_i.a)(G.a("hintn1","Made {0} formatting edits on line {1}",u.length,t)):u.length===1?Object(_i.a)(G.a("hint1n","Made 1 formatting edit between lines {0} and {1}",t,n)):Object(_i.a)(G.a("hintnn","Made {0} formatting edits between lines {1} and {2}",u.length,t,n))}function Jl(u){let e=[],t=new Set,n=I.g.ordered(u);for(let d of n)e.push(d),d.extensionId&&t.add(Aa.toKey(d.extensionId));let o=I.j.ordered(u);for(let d of o){if(d.extensionId){if(t.has(Aa.toKey(d.extensionId)))continue;t.add(Aa.toKey(d.extensionId))}e.push({displayName:d.displayName,extensionId:d.extensionId,provideDocumentFormattingEdits:(m,D,oe)=>d.provideDocumentRangeFormattingEdits(m,m.getFullModelRange(),D,oe)})}return e}class ea{static select(e,t,n){return Js(this,void 0,void 0,function*(){if(e.length===0)return;let o=Ka.a.first(ea._selectors);return o?yield o(e,t,n):e[0]})}}function Ya(u,e,t,n,o,d){return Js(this,void 0,void 0,function*(){let m=u.get(X.a),D=Object(Zo.b)(e)?e.getModel():e,oe=I.j.ordered(D),re=yield ea.select(oe,D,n);re&&(o.report(re),yield m.invokeFunction(Nc,re,e,t,d))})}function Nc(u,e,t,n,o){return Js(this,void 0,void 0,function*(){let d=u.get(Rs.a),m,D;Object(Zo.b)(t)?(m=t.getModel(),D=new qt.b(t,5,void 0,o)):(m=t,D=new qt.d(t,o));let oe=[],re=0;for(let Me of Object(ee.b)(n).sort(gt.a.compareRangesUsingStarts))re>0&>.a.areIntersectingOrTouching(oe[re-1],Me)?oe[re-1]=gt.a.fromPositions(oe[re-1].getStartPosition(),Me.getEndPosition()):re=oe.push(Me);let ce=[];for(let Me of oe)try{let Ct=yield e.provideDocumentRangeFormattingEdits(m,Me,m.getFormattingOptions(),D.token),Ut=yield d.computeMoreMinimalEdits(m.uri,Ct);if(Ut&&ce.push(...Ut),D.token.isCancellationRequested)return!0}finally{D.dispose()}if(ce.length===0)return!1;if(Object(Zo.b)(t))Qs.execute(t,ce,!0),Ga(ce),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{let[{range:Me}]=ce,Ct=new J.a(Me.startLineNumber,Me.startColumn,Me.endLineNumber,Me.endColumn);m.pushEditOperations([Ct],ce.map(Ut=>({text:Ut.text,range:gt.a.lift(Ut.range),forceMoveMarkers:!0})),Ut=>{for(let{range:St}of Ut)if(gt.a.areIntersectingOrTouching(St,Ct))return[new J.a(St.startLineNumber,St.startColumn,St.endLineNumber,St.endColumn)];return null})}return!0})}function Ic(u,e,t,n,o){return Js(this,void 0,void 0,function*(){let d=u.get(X.a),m=Object(Zo.b)(e)?e.getModel():e,D=Jl(m),oe=yield ea.select(D,m,t);oe&&(n.report(oe),yield d.invokeFunction(Dc,oe,e,t,o))})}function Dc(u,e,t,n,o){return Js(this,void 0,void 0,function*(){let d=u.get(Rs.a),m,D,oe;Object(Zo.b)(t)?(m=t.getModel(),D=new qt.b(t,5,void 0,o)):(m=t,D=new qt.d(t,o));try{let re=yield e.provideDocumentFormattingEdits(m,m.getFormattingOptions(),D.token);if(oe=yield d.computeMoreMinimalEdits(m.uri,re),D.token.isCancellationRequested)return!0}finally{D.dispose()}if(!oe||oe.length===0)return!1;if(Object(Zo.b)(t))Qs.execute(t,oe,n!==2),n!==2&&(Ga(oe),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{let[{range:re}]=oe,ce=new J.a(re.startLineNumber,re.startColumn,re.endLineNumber,re.endColumn);m.pushEditOperations([ce],oe.map(Me=>({text:Me.text,range:gt.a.lift(Me.range),forceMoveMarkers:!0})),Me=>{for(let{range:Ct}of Me)if(gt.a.areIntersectingOrTouching(Ct,ce))return[new J.a(Ct.startLineNumber,Ct.startColumn,Ct.endLineNumber,Ct.endColumn)];return null})}return!0})}function x(u,e,t,n,o){let d=I.t.ordered(e);return d.length===0||d[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(d[0].provideOnTypeFormattingEdits(e,t,n,o,Dn.a.None)).catch(De.f).then(m=>u.computeMoreMinimalEdits(e.uri,m))}ea._selectors=new Sl.a,Ee.a.registerCommand("_executeFormatRangeProvider",function(u,...e){let[t,n,o]=e;Object(tr.b)(On.a.isUri(t)),Object(tr.b)(gt.a.isIRange(n));let d=u.get(ne.a).getModel(t);if(!d)throw Object(De.b)("resource");return function(m,D,oe,re,ce){return Js(this,void 0,void 0,function*(){let Me=I.j.ordered(D);for(let Ct of Me){let Ut=yield Promise.resolve(Ct.provideDocumentRangeFormattingEdits(D,oe,re,ce)).catch(De.f);if(Object(ee.o)(Ut))return yield m.computeMoreMinimalEdits(D.uri,Ut)}})}(u.get(Rs.a),d,gt.a.lift(n),o,Dn.a.None)}),Ee.a.registerCommand("_executeFormatDocumentProvider",function(u,...e){let[t,n]=e;Object(tr.b)(On.a.isUri(t));let o=u.get(ne.a).getModel(t);if(!o)throw Object(De.b)("resource");return function(d,m,D,oe){return Js(this,void 0,void 0,function*(){let re=Jl(m);for(let ce of re){let Me=yield Promise.resolve(ce.provideDocumentFormattingEdits(m,D,oe)).catch(De.f);if(Object(ee.o)(Me))return yield d.computeMoreMinimalEdits(m.uri,Me)}})}(u.get(Rs.a),o,n,Dn.a.None)}),Ee.a.registerCommand("_executeFormatOnTypeProvider",function(u,...e){let[t,n,o,d]=e;Object(tr.b)(On.a.isUri(t)),Object(tr.b)(Oi.a.isIPosition(n)),Object(tr.b)(typeof o=="string");let m=u.get(ne.a).getModel(t);if(!m)throw Object(De.b)("resource");return x(u.get(Rs.a),m,Oi.a.lift(n),o,d)});var c=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},p=function(u,e){return function(t,n){e(t,n,u)}},F=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let pe=class{constructor(u,e){this._workerService=e,this._callOnDispose=new Lt.b,this._callOnModel=new Lt.b,this._editor=u,this._callOnDispose.add(u.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(u.onDidChangeModel(()=>this._update())),this._callOnDispose.add(u.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(I.t.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!this._editor.getOption(41)||!this._editor.hasModel())return;let u=this._editor.getModel(),[e]=I.t.ordered(u);if(!e||!e.autoFormatTriggerCharacters)return;let t=new Xs.b;for(let n of e.autoFormatTriggerCharacters)t.add(n.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(n=>{let o=n.charCodeAt(n.length-1);t.has(o)&&this._trigger(String.fromCharCode(o))}))}_trigger(u){if(!this._editor.hasModel()||this._editor.getSelections().length>1)return;let e=this._editor.getModel(),t=this._editor.getPosition(),n=!1,o=this._editor.onDidChangeModelContent(d=>{if(d.isFlush)return n=!0,void o.dispose();for(let m=0,D=d.changes.length;m<D;m++)if(d.changes[m].range.endLineNumber<=t.lineNumber)return n=!0,void o.dispose()});x(this._workerService,e,t,u,e.getFormattingOptions()).then(d=>{o.dispose(),n||Object(ee.o)(d)&&(Qs.execute(this._editor,d,!0),Ga(d))},d=>{throw o.dispose(),d})}};pe.ID="editor.contrib.autoFormat",pe=c([p(1,Rs.a)],pe);let He=class{constructor(u,e){this.editor=u,this._instantiationService=e,this._callOnDispose=new Lt.b,this._callOnModel=new Lt.b,this._callOnDispose.add(u.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(u.onDidChangeModel(()=>this._update())),this._callOnDispose.add(u.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(I.j.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(40)&&this.editor.hasModel()&&I.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:u})=>this._trigger(u)))}_trigger(u){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(Ya,this.editor,u,2,rt.b.None,Dn.a.None).catch(De.e))}};He.ID="editor.contrib.formatOnPaste",He=c([p(1,X.a)],He);class Qe extends $.b{constructor(){super({id:"editor.action.formatDocument",label:G.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:A.a.and(z.a.notInCompositeEditor,z.a.writable,z.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:A.a.and(z.a.editorTextFocus,z.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:z.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})}run(e,t){return F(this,void 0,void 0,function*(){if(t.hasModel()){let n=e.get(X.a);yield e.get(rt.a).showWhile(n.invokeFunction(Ic,t,1,rt.b.None,Dn.a.None),250)}})}}class Vt extends $.b{constructor(){super({id:"editor.action.formatSelection",label:G.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:A.a.and(z.a.writable,z.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:A.a.and(z.a.editorTextFocus,z.a.hasDocumentSelectionFormattingProvider),primary:Object(Se.a)(2089,2084),weight:100},contextMenuOpts:{when:A.a.and(z.a.hasDocumentSelectionFormattingProvider,z.a.hasNonEmptySelection),group:"1_modification",order:1.31}})}run(e,t){return F(this,void 0,void 0,function*(){if(!t.hasModel())return;let n=e.get(X.a),o=t.getModel(),d=t.getSelections().map(D=>D.isEmpty()?new gt.a(D.startLineNumber,1,D.startLineNumber,o.getLineMaxColumn(D.startLineNumber)):D);yield e.get(rt.a).showWhile(n.invokeFunction(Ya,t,d,1,rt.b.None,Dn.a.None),250)})}}Object($.m)(pe.ID,pe),Object($.m)(He.ID,He),Object($.k)(Qe),Object($.k)(Vt),Ee.a.registerCommand("editor.action.format",u=>F(void 0,void 0,void 0,function*(){let e=u.get(Si.a).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=u.get(Ee.b);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}));var $t=r(122),ci=r(118);class Ft{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let n;typeof e=="string"?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,t.children.get(n)!==void 0&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let o=n;for(let d=0;t.children.get(o)!==void 0;d++)o=`${n}_${d}`;return o}static empty(e){return e.children.size===0}}class Fi extends Ft{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}}class cn extends Ft{constructor(e,t,n,o){super(),this.id=e,this.parent=t,this.label=n,this.order=o,this.children=new Map}}class vn extends Ft{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t){let n=this._keys.for(e,!0),o=vn._requests.get(n);if(!o){let d=new Dn.b;o={promiseCnt:0,source:d,promise:vn._create(e,d.token),model:void 0},vn._requests.set(n,o);let m=Date.now();o.promise.then(()=>{let D=this._keys.for(e,!1),oe=this._requestDurations.get(D);oe||(oe=new ci.a,this._requestDurations.set(D,oe)),oe.update(Date.now()-m)})}return o.model?Promise.resolve(o.model):(o.promiseCnt+=1,t.onCancellationRequested(()=>{--o.promiseCnt==0&&(o.source.cancel(),vn._requests.delete(n))}),new Promise((d,m)=>{o.promise.then(D=>{o.model=D,d(D)},D=>{vn._requests.delete(n),m(D)})}))}static _create(e,t){let n=new Dn.b(t),o=new vn(e.uri),d=I.m.ordered(e),m=d.map((oe,re)=>{var ce;let Me=Ft.findId("provider_"+re,o),Ct=new cn(Me,o,(ce=oe.displayName)!==null&&ce!==void 0?ce:"Unknown Outline Provider",re);return Promise.resolve(oe.provideDocumentSymbols(e,n.token)).then(Ut=>{for(let St of Ut||[])vn._makeOutlineElement(St,Ct);return Ct},Ut=>(Object(De.f)(Ut),Ct)).then(Ut=>{Ft.empty(Ut)?Ut.remove():o._groups.set(Me,Ut)})}),D=I.m.onDidChange(()=>{let oe=I.m.ordered(e);Object(ee.g)(oe,d)||n.cancel()});return Promise.all(m).then(()=>n.token.isCancellationRequested&&!t.isCancellationRequested?vn._create(e,t):o._compact()).finally(()=>{D.dispose()})}static _makeOutlineElement(e,t){let n=Ft.findId(e,t),o=new Fi(n,t,e);if(e.children)for(let d of e.children)vn._makeOutlineElement(d,o);t.children.set(o.id,o)}_compact(){let e=0;for(let[t,n]of this._groups)n.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=Ka.a.first(this._groups.values());for(let[,n]of t.children)n.parent=this,this.children.set(n.id,n)}return this}}vn._requestDurations=new Rn.a(50,.7),vn._requests=new Rn.a(9,.75),vn._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(u,e){return`${u.id}/${e?u.getVersionId():""}/${this._hash(I.m.all(u))}`}_hash(u){let e="";for(let t of u){let n=this._data.get(t);n===void 0&&(n=this._counter++,this._data.set(t,n)),e+=n}return e}};var on=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Pn(u,e,t){return on(this,void 0,void 0,function*(){let n=yield vn.create(u,t),o=[];for(let m of n.children.values())m instanceof Fi?o.push(m.symbol):o.push(...Ka.a.map(m.children.values(),D=>D.symbol));let d=[];return t.isCancellationRequested?d:(e?function m(D,oe,re){for(let ce of oe)D.push({kind:ce.kind,tags:ce.tags,name:ce.name,detail:ce.detail,containerName:ce.containerName||re,range:ce.range,selectionRange:ce.selectionRange,children:void 0}),ce.children&&m(D,ce.children,ce.name)}(d,o,""):d=o,d.sort(jn))})}function jn(u,e){return gt.a.compareRangesUsingStarts(u.range,e.range)}Ee.a.registerCommand("_executeDocumentSymbolProvider",function(u,...e){return on(this,void 0,void 0,function*(){let[t]=e;Object(tr.b)(On.a.isUri(t));let n=u.get(ne.a).getModel(t);if(n)return Pn(n,!1,Dn.a.None);let o=yield u.get($t.a).createModelReference(t);try{return yield Pn(o.object.textEditorModel,!1,Dn.a.None)}finally{o.dispose()}})}),r(300);var Vn=r(116),Ln=r(46),pr=r(80),wr=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},gr=function(u,e){return function(t,n){e(t,n,u)}};let Er=class extends fe.a{constructor(u,e,t,n,o,d,m,D,oe,re){super(u,Object.assign(Object.assign({},t.getRawOptions()),{overflowWidgetsDomNode:t.getOverflowWidgetsDomNode()}),{},n,o,d,m,D,oe,re),this._parentEditor=t,this._overwriteOptions=e,super.updateOptions(this._overwriteOptions),this._register(t.onDidChangeConfiguration(ce=>this._onParentConfigurationChanged(ce)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(u){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(u){Ln.g(this._overwriteOptions,u,!0),super.updateOptions(this._overwriteOptions)}};Er=wr([gr(3,X.a),gr(4,Si.a),gr(5,Ee.b),gr(6,A.b),gr(7,ut.c),gr(8,Re.a),gr(9,pr.b)],Er),r(302);var yr=r(147);let Fr=new Kn.a(new Kn.c(0,122,204)),So={showArrow:!0,showFrame:!0,className:"",frameColor:Fr,arrowColor:Fr,keepEditorSelection:!1};class _s{constructor(e,t,n,o,d,m){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=o,this._onDomNodeTop=d,this._onComputedHeight=m}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Ra{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class os{constructor(e){this._editor=e,this._ruleName=os._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),ae.P(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){ae.P(this._ruleName),ae.u(".monaco-editor "+this._ruleName,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:gt.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}os._IdGenerator=new yr.a(".arrow-decoration-");var eo=r(44),da=(r(199),r(67));class ec extends Ge.b{constructor(e,t){super(),this._onDidChangeVisibility=new ot.a,this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(ae.p)(e,Object(ae.a)(".monaco-dropdown")),this._label=Object(ae.p)(this._element,Object(ae.a)(".dropdown-label"));let n=t.labelRenderer;n||(n=d=>(d.textContent=t.label||"",null));for(let d of[ae.c.CLICK,ae.c.MOUSE_DOWN,zt.a.Tap])this._register(Object(ae.i)(this.element,d,m=>ae.b.stop(m,!0)));for(let d of[ae.c.MOUSE_DOWN,zt.a.Tap])this._register(Object(ae.i)(this._label,d,m=>{m instanceof MouseEvent&&m.detail>1||(this.visible?this.hide():this.show())}));this._register(Object(ae.i)(this._label,ae.c.KEY_UP,d=>{let m=new da.a(d);(m.equals(3)||m.equals(10))&&(ae.b.stop(d,!0),this.visible?this.hide():this.show())}));let o=n(this._label);o&&this._register(o),this._register(zt.b.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class ta extends ec{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),Object(ae.e)(this.element,"active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),Object(ae.Q)(this.element,"active")}}class Po extends bo.b{constructor(e,t,n,o={}){super(null,e,o),this.options=o,this._onDidChangeVisibility=this._register(new ot.a),this.menuActionsOrProvider=t,this.contextMenuProvider=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){let t={contextMenuProvider:this.contextMenuProvider,labelRenderer:n=>{this.element=Object(ae.p)(n,Object(ae.a)("a.action-label"));let o=this.options.classNames?Object(ee.b)(this.options.classNames):[];return o.find(d=>d==="icon")||o.push("codicon"),Object(ae.f)(this.element,...o),this.element.tabIndex=0,this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild};if(Array.isArray(this.menuActionsOrProvider)?t.actions=this.menuActionsOrProvider:t.actionProvider=this.menuActionsOrProvider,this.dropdownMenu=this._register(new ta(e,t)),this._register(this.dropdownMenu.onDidChangeVisibility(n=>{var o;(o=this.element)===null||o===void 0||o.setAttribute("aria-expanded",""+n),this._onDidChangeVisibility.fire(n)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){let n=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return n.options.anchorAlignmentProvider()}})}}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}}var Za=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ma=function(u,e){return function(t,n){e(t,n,u)}};class ha extends ot.a{constructor(e){super(),this._subscriptions=new Lt.b,this._isPressed=!1,this._suppressAltKeyUp=!1,this._subscriptions.add(Object(eo.a)(document.body,"keydown")(t=>{this.isPressed=t.altKey||(Et.i||Et.d)&&t.shiftKey})),this._subscriptions.add(Object(eo.a)(document.body,"keyup")(t=>{this.isPressed&&this._suppressAltKeyUp&&t.preventDefault(),this._suppressAltKeyUp=!1,this.isPressed=!1})),this._subscriptions.add(Object(eo.a)(document.body,"mouseleave")(t=>this.isPressed=!1)),this._subscriptions.add(Object(eo.a)(document.body,"blur")(t=>this.isPressed=!1)),this._subscriptions.add(e.onDidContextMenu(()=>this.isPressed=!1))}get isPressed(){return this._isPressed}set isPressed(e){this._isPressed=e,this.fire(this._isPressed)}suppressAltKeyUp(){this._suppressAltKeyUp=!0}static getInstance(e){return ha.instance||(ha.instance=new ha(e)),ha.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function ua(u,e,t,n){let o=u.getActions(e);return function(d,m,D,oe=re=>re==="navigation"){for(let re of d){let[ce,Me]=re;if(D&&(Me=Me.map(Ct=>Ct instanceof ze.c&&Ct.alt?Ct.alt:Ct)),oe(ce))(Array.isArray(m)?m:m.primary).unshift(...Me);else{let Ct=Array.isArray(m)?m:m.secondary;Ct.length>0&&Ct.push(new Ge.c),Ct.push(...Me)}}}(o,t,!1,n),function(d){let m=new Lt.b;for(let[,D]of d)for(let oe of D)m.add(oe);return m}(o)}let kl=new yr.a("menu-item-action-item-icon-"),Ms=new Map,Pa=class extends bo.a{constructor(u,e,t,n){super(void 0,u,{icon:!(!u.class&&!u.item.icon),label:!u.class&&!u.item.icon}),this._action=u,this._keybindingService=e,this._notificationService=t,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new Lt.d),this._altKey=ha.getInstance(n)}get _commandAction(){return this._wantsAltCommand&&this._action.alt||this._action}onClick(u){u.preventDefault(),u.stopPropagation(),this._altKey.isPressed&&this._altKey.suppressAltKeyUp(),this.actionRunner.run(this._commandAction,this._context).then(void 0,e=>this._notificationService.error(e))}render(u){super.render(u),this._updateItemClass(this._action.item);let e=!1,t=this._altKey.isPressed,n=()=>{let o=e&&t;o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._action.alt&&this._register(this._altKey.event(o=>{t=o,n()})),this._register(Object(eo.a)(u,"mouseleave")(o=>{e=!1,n()})),this._register(Object(eo.a)(u,"mouseenter")(o=>{e=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){let u=this._keybindingService.lookupKeybinding(this._commandAction.id),e=u&&u.getLabel(),t=this._commandAction.tooltip||this._commandAction.label;this.label.title=e?Object(G.a)("titleAndKb","{0} ({1})",t,e):t}}updateClass(){this.options.icon&&(this._commandAction!==this._action?this._action.alt&&this._updateItemClass(this._action.alt.item):this._action.alt&&this._updateItemClass(this._action.item))}_updateItemClass(u){var e,t;this._itemClassDispose.value=void 0;let n=this._commandAction.checked&&((e=u.toggled)===null||e===void 0?void 0:e.icon)?u.toggled.icon:u.icon;if(ut.e.isThemeIcon(n)){let o=ut.e.asClassName(n);this.label&&o&&(Object(ae.f)(this.label,o),this._itemClassDispose.value=Object(Lt.h)(()=>{this.label&&Object(ae.R)(this.label,o)}))}else if(n){let o;if((t=n.dark)===null||t===void 0?void 0:t.scheme){let d=n.dark.toString();Ms.has(d)?o=Ms.get(d):(o=kl.nextId(),Object(ae.u)(".icon."+o,"background-image: "+Object(ae.q)(n.light||n.dark)),Object(ae.u)(`.vs-dark .icon.${o}, .hc-black .icon.${o}`,"background-image: "+Object(ae.q)(n.dark)),Ms.set(d,o)),this.label&&(Object(ae.f)(this.label,"icon",o),this._itemClassDispose.value=Object(Lt.h)(()=>{this.label&&Object(ae.R)(this.label,"icon",o)}))}}}};Pa=Za([Ma(1,Ot.a),Ma(2,Re.a),Ma(3,lt.a)],Pa);let Xa=class extends Po{constructor(u,e,t){var n;let o=[];if(u.item.icon){if(ut.e.isThemeIcon(u.item.icon))o.push(ut.e.asClassName(u.item.icon));else if((n=u.item.icon.dark)===null||n===void 0?void 0:n.scheme){let d=u.item.icon.dark.toString();if(Ms.has(d))o.push("icon",Ms.get(d));else{let m=kl.nextId();o.push("icon",m),Object(ae.u)(".icon."+m,"background-image: "+Object(ae.q)(u.item.icon.light||u.item.icon.dark)),Object(ae.u)(`.vs-dark .icon.${m}, .hc-black .icon.${m}`,"background-image: "+Object(ae.q)(u.item.icon.dark)),Ms.set(d,m)}}}super(u,u.actions,t,{classNames:o})}};Xa=Za([Ma(1,Re.a),Ma(2,lt.a)],Xa);var tc=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},El=function(u,e){return function(t,n){e(t,n,u)}};let Qa=Object(X.c)("IPeekViewService");var Qr,Ja;Object(In.b)(Qa,class{constructor(){this._widgets=new Map}addExclusiveWidget(u,e){let t=this._widgets.get(u);t&&(t.listener.dispose(),t.widget.dispose()),this._widgets.set(u,{widget:e,listener:e.onDidClose(()=>{let n=this._widgets.get(u);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(u))})})}}),(Ja=Qr||(Qr={})).inPeekEditor=new A.c("inReferenceSearchEditor",!0),Ja.notInPeekEditor=Ja.inPeekEditor.toNegated();let pa=class{constructor(u,e){u instanceof Er&&Qr.inPeekEditor.bindTo(e)}dispose(){}};pa.ID="editor.contrib.referenceController",pa=tc([El(1,A.b)],pa),Object($.m)(pa.ID,pa);let Tl={headerBackgroundColor:Kn.a.white,primaryHeadingColor:Kn.a.fromHex("#333333"),secondaryHeadingColor:Kn.a.fromHex("#6c6c6cb3")},el=class extends class{constructor(u,e={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new Lt.b,this.container=null,this._isShowing=!1,this.editor=u,this.options=Ln.c(e),Ln.g(this.options,So,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(t=>{let n=this._getWidth(t);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(t)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new os(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(u){u.frameColor&&(this.options.frameColor=u.frameColor),u.arrowColor&&(this.options.arrowColor=u.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let u=this.options.frameColor.toString();this.container.style.borderTopColor=u,this.container.style.borderBottomColor=u}if(this._arrow&&this.options.arrowColor){let u=this.options.arrowColor.toString();this._arrow.color=u}}_getWidth(u){return u.width-u.minimap.minimapWidth-u.verticalScrollbarWidth}_getLeft(u){return u.minimap.minimapWidth>0&&u.minimap.minimapLeft===0?u.minimap.minimapWidth:0}_onViewZoneTop(u){this.domNode.style.top=u+"px"}_onViewZoneHeight(u){if(this.domNode.style.height=u+"px",this.container){let e=u-this._decoratingElementsHeight();this.container.style.height=e+"px";let t=this.editor.getLayoutInfo();this._doLayout(e,this._getWidth(t))}this._resizeSash&&this._resizeSash.layout()}get position(){let[u]=this._positionMarkerId;if(!u)return;let e=this.editor.getModel();if(!e)return;let t=e.getDecorationRange(u);return t?t.getStartPosition():void 0}show(u,e){let t=gt.a.isIRange(u)?gt.a.lift(u):gt.a.fromPositions(u);this._isShowing=!0,this._showImpl(t,e),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:t,options:Rt.a.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let u=this.editor.getOption(51),e=0;return this.options.showArrow&&(e+=2*Math.round(u/3)),this.options.showFrame&&(e+=2*Math.round(u/9)),e}_showImpl(u,e){let t=u.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=o+"px",this.domNode.style.left=this._getLeft(n)+"px";let d=document.createElement("div");d.style.overflow="hidden";let m=this.editor.getOption(51),D=Math.max(12,this.editor.getLayoutInfo().height/m*.8);e=Math.min(e,D);let oe=0,re=0;if(this._arrow&&this.options.showArrow&&(oe=Math.round(m/3),this._arrow.height=oe,this._arrow.show(t)),this.options.showFrame&&(re=Math.round(m/9)),this.editor.changeViewZones(Ct=>{this._viewZone&&Ct.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new _s(d,t.lineNumber,t.column,e,Ut=>this._onViewZoneTop(Ut),Ut=>this._onViewZoneHeight(Ut)),this._viewZone.id=Ct.addZone(this._viewZone),this._overlayWidget=new Ra("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let Ct=this.options.frameWidth?this.options.frameWidth:re;this.container.style.borderTopWidth=Ct+"px",this.container.style.borderBottomWidth=Ct+"px"}let ce=e*m-this._decoratingElementsHeight();this.container&&(this.container.style.top=oe+"px",this.container.style.height=ce+"px",this.container.style.overflow="hidden"),this._doLayout(ce,o),this.options.keepEditorSelection||this.editor.setSelection(u);let Me=this.editor.getModel();if(Me){let Ct=u.endLineNumber+1;Ct<=Me.getLineCount()?this.revealLine(Ct,!1):this.revealLine(Me.getLineCount(),!0)}}revealLine(u,e){e?this.editor.revealLineInCenter(u,0):this.editor.revealLine(u,0)}setCssClass(u,e){this.container&&(e&&this.container.classList.remove(e),ae.e(this.container,u))}_onWidth(u){}_doLayout(u,e){}_relayout(u){this._viewZone&&this._viewZone.heightInLines!==u&&this.editor.changeViewZones(e=>{this._viewZone&&(this._viewZone.heightInLines=u,e.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;let u;this._resizeSash=this._disposables.add(new oa.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(e=>{this._viewZone&&(u={startY:e.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{u=void 0})),this._disposables.add(this._resizeSash.onDidChange(e=>{if(u){let t=(e.currentY-u.startY)/this.editor.getOption(51),n=t<0?Math.ceil(t):Math.floor(t),o=u.heightInLines+n;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let u=this.editor.getLayoutInfo();return u.width-u.minimap.minimapWidth}}{constructor(u,e,t){super(u,e),this.instantiationService=t,this._onDidClose=new ot.a,this.onDidClose=this._onDidClose.event,Ln.g(this.options,Tl,!1)}dispose(){super.dispose(),this._onDidClose.fire(this)}style(u){let e=this.options;u.headerBackgroundColor&&(e.headerBackgroundColor=u.headerBackgroundColor),u.primaryHeadingColor&&(e.primaryHeadingColor=u.primaryHeadingColor),u.secondaryHeadingColor&&(e.secondaryHeadingColor=u.secondaryHeadingColor),super.style(u)}_applyStyles(){super._applyStyles();let u=this.options;this._headElement&&u.headerBackgroundColor&&(this._headElement.style.backgroundColor=u.headerBackgroundColor.toString()),this._primaryHeading&&u.primaryHeadingColor&&(this._primaryHeading.style.color=u.primaryHeadingColor.toString()),this._secondaryHeading&&u.secondaryHeadingColor&&(this._secondaryHeading.style.color=u.secondaryHeadingColor.toString()),this._bodyElement&&u.frameColor&&(this._bodyElement.style.borderColor=u.frameColor.toString())}_fillContainer(u){this.setCssClass("peekview-widget"),this._headElement=ae.a(".head"),this._bodyElement=ae.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),u.appendChild(this._headElement),u.appendChild(this._bodyElement)}_fillHead(u,e){let t=ae.a(".peekview-title");ae.p(this._headElement,t),ae.n(t,"click",d=>this._onTitleClick(d)),this._fillTitleIcon(t),this._primaryHeading=ae.a("span.filename"),this._secondaryHeading=ae.a("span.dirname"),this._metaHeading=ae.a("span.meta"),ae.p(t,this._primaryHeading,this._secondaryHeading,this._metaHeading);let n=ae.a(".peekview-actions");ae.p(this._headElement,n);let o=this._getActionBarOptions();this._actionbarWidget=new Vn.a(n,o),this._disposables.add(this._actionbarWidget),e||this._actionbarWidget.push(new Ge.a("peekview.close",G.a("label.close","Close"),de.a.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(u){}_getActionBarOptions(){return{actionViewItemProvider:u=>u instanceof ze.c?this.instantiationService.createInstance(Pa,u):u instanceof ze.e?this.instantiationService.createInstance(Xa,u):void 0}}_onTitleClick(u){}setTitle(u,e){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=u,this._primaryHeading.setAttribute("aria-label",u),e?this._secondaryHeading.innerText=e:ae.s(this._secondaryHeading))}setMetaTitle(u){this._metaHeading&&(u?(this._metaHeading.innerText=u,ae.Z(this._metaHeading)):ae.K(this._metaHeading))}_doLayout(u,e){if(!this._isShowing&&u<0)return void this.dispose();let t=Math.ceil(1.2*this.editor.getOption(51)),n=Math.round(u-(t+2));this._doLayoutHead(t,e),this._doLayoutBody(n,e)}_doLayoutHead(u,e){this._headElement&&(this._headElement.style.height=u+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(u,e){this._bodyElement&&(this._bodyElement.style.height=u+"px")}};el=tc([El(2,X.a)],el);let ko=Object(Ue.gc)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},G.a("peekViewTitleBackground","Background color of the peek view title area.")),jr=Object(Ue.gc)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},G.a("peekViewTitleForeground","Color of the peek view title.")),Ll=Object(Ue.gc)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},G.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Fo=Object(Ue.gc)("peekView.border",{dark:"#007acc",light:"#007acc",hc:Ue.h},G.a("peekViewBorder","Color of the peek view borders and arrow.")),vs=Object(Ue.gc)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:Kn.a.black},G.a("peekViewResultsBackground","Background color of the peek view result list.")),Ps=Object(Ue.gc)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:Kn.a.white},G.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Qd=Object(Ue.gc)("peekViewResult.fileForeground",{dark:Kn.a.white,light:"#1E1E1E",hc:Kn.a.white},G.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Jd=Object(Ue.gc)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},G.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),eh=Object(Ue.gc)("peekViewResult.selectionForeground",{dark:Kn.a.white,light:"#6C6C6C",hc:Kn.a.white},G.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ic=Object(Ue.gc)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:Kn.a.black},G.a("peekViewEditorBackground","Background color of the peek view editor.")),th=Object(Ue.gc)("peekViewEditorGutter.background",{dark:ic,light:ic,hc:ic},G.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),ih=Object(Ue.gc)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},G.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),nh=Object(Ue.gc)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},G.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),rh=Object(Ue.gc)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:Ue.b},G.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var oh=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class ma{constructor(e,t,n,o,d){this.isProviderFirst=e,this.parent=t,this.uri=n,this._range=o,this._rangeCallback=d,this.id=yr.b.nextId()}get range(){return this._range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){return Object(G.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(Be.b)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class me{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let n=this._modelReference.object.textEditorModel;if(!n)return;let{startLineNumber:o,startColumn:d,endLineNumber:m,endColumn:D}=e,oe=n.getWordUntilPosition({lineNumber:o,column:d-t}),re=new gt.a(o,oe.startColumn,o,d),ce=new gt.a(m,D,m,1073741824),Me=n.getValueInRange(re).replace(/^\s+/,""),Ct=n.getValueInRange(e);return{value:Me+Ct+n.getValueInRange(ce).replace(/\s+$/,""),highlight:{start:Me.length,end:Me.length+Ct.length}}}}class s{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Rn.b}dispose(){Object(Lt.f)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?Object(G.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(Be.b)(this.uri),this.uri.fsPath):Object(G.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(Be.b)(this.uri),this.uri.fsPath)}resolve(e){return oh(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new me(n))}catch(n){Object(De.e)(n)}return this})}}class v{constructor(e,t){this._disposables=new Lt.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new ot.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[n]=e,o;e.sort(v._compareReferences);for(let d of e)if(o&&Be.e.isEqual(o.uri,d.uri,!0)||(o=new s(this,d.uri),this.groups.push(o)),o.children.length===0||v._compareReferences(d,o.children[o.children.length-1])!==0){let m=new ma(n===d,o,d.uri,d.targetSelectionRange||d.range,D=>this._onDidChangeReferenceRange.fire(D));this.references.push(m),o.children.push(m)}}dispose(){Object(Lt.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new v(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?Object(G.a)("aria.result.0","No results found"):this.references.length===1?Object(G.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(G.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(G.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:n}=e,o=n.children.indexOf(e),d=n.children.length,m=n.parent.groups.length;return m===1||t&&o+1<d||!t&&o>0?(o=t?(o+1)%d:(o+d-1)%d,n.children[o]):(o=n.parent.groups.indexOf(n),t?(o=(o+1)%m,n.parent.groups[o].children[0]):(o=(o+m-1)%m,n.parent.groups[o].children[n.parent.groups[o].children.length-1]))}nearestReference(e,t){let n=this.references.map((o,d)=>({idx:d,prefixLen:rn.d(o.uri.toString(),e.toString()),offsetDist:100*Math.abs(o.range.startLineNumber-t.lineNumber)+Math.abs(o.range.startColumn-t.column)})).sort((o,d)=>o.prefixLen>d.prefixLen?-1:o.prefixLen<d.prefixLen?1:o.offsetDist<d.offsetDist?-1:o.offsetDist>d.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(let n of this.references)if(n.uri.toString()===e.toString()&>.a.containsPosition(n.range,t))return n}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Be.e.compare(e.uri,t.uri)||gt.a.compareRangesUsingStarts(e.range,t.range)}}r(305);var M=r(45),be=r(172),Ne=r(185),Oe=r(159),je=r(93),mt=r(42);function It(u,e,t){if(typeof u=="string"&&(u=On.a.file(u)),t){let o=t.getWorkspaceFolder(u);if(o){let d=t.getWorkspace().folders.length>1,m;if(m=Object(Be.f)(o.uri,u)?"":Object(Be.j)(o.uri,u),d){let D=o.name?o.name:Object(Be.b)(o.uri);m=m?D+" \u2022 "+m:D}return m}}if(u.scheme!==M.b.file&&u.scheme!==M.b.untitled)return u.with({query:null,fragment:null}).toString(!0);if(Di(u.fsPath))return Object(mt.d)(en(u.fsPath));let n=Object(mt.d)(u.fsPath);return!Et.i&&(e==null?void 0:e.userHome)&&(n=function(o,d){if(Et.i||!o||!d)return o;let m=tn.original===d?tn.normalized:void 0;return m||(m=`${Object(rn.Q)(d,mt.e.sep)}${mt.e.sep}`,tn={original:d,normalized:m}),(Et.d?o.startsWith(m):Object(rn.T)(o,m))&&(o="~/"+o.substr(m.length)),o}(n,e.userHome.fsPath)),n}function Qt(u){if(!u)return;typeof u=="string"&&(u=On.a.file(u));let e=Object(Be.b)(u)||(u.scheme===M.b.file?u.fsPath:u.path);return Di(e)?en(e):e}function Di(u){return!(!Et.i||!u||u[1]!==":")}function en(u){return Di(u)?u.charAt(0).toUpperCase()+u.slice(1):u}let tn=Object.create(null);var kn=r(71),nr=r(156),lr=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},hr=function(u,e){return function(t,n){e(t,n,u)}};let rr=class{constructor(u){this._resolverService=u}hasChildren(u){return u instanceof v||u instanceof s}getChildren(u){if(u instanceof v)return u.groups;if(u instanceof s)return u.resolve(this._resolverService).then(e=>e.children);throw new Error("bad tree")}};rr=lr([hr(0,$t.a)],rr);class ir{getHeight(){return 23}getTemplateId(e){return e instanceof s?Eo.id:Zn.id}}let mo=class{constructor(u){this._keybindingService=u}getKeyboardNavigationLabel(u){var e;if(u instanceof ma){let t=(e=u.parent.getPreview(u))===null||e===void 0?void 0:e.preview(u.range);if(t)return t.value}return Object(Be.b)(u.uri)}};mo=lr([hr(0,Ot.a)],mo);class Fa{getId(e){return e instanceof ma?e.id:e.uri}}let Gr=class extends Lt.a{constructor(u,e,t){super(),this._uriLabel=e;let n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new be.a(n,{supportHighlights:!0})),this.badge=new Ne.a(ae.p(n,ae.a(".count"))),this._register(Object(je.a)(this.badge,t)),u.appendChild(n)}set(u,e){let t=Object(Be.d)(u.uri);this.file.setLabel(Qt(u.uri),this._uriLabel.getUriLabel(t,{relative:!0}),{title:this._uriLabel.getUriLabel(u.uri),matches:e});let n=u.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(Object(G.a)("referencesCount","{0} references",n)):this.badge.setTitleFormat(Object(G.a)("referenceCount","{0} reference",n))}};Gr=lr([hr(1,Oe.a),hr(2,ut.c)],Gr);let Eo=class lm{constructor(e){this._instantiationService=e,this.templateId=lm.id}renderTemplate(e){return this._instantiationService.createInstance(Gr,e)}renderElement(e,t,n){n.set(e.element,Object(kn.c)(e.filterData))}disposeTemplate(e){e.dispose()}};Eo.id="FileReferencesRenderer",Eo=lr([hr(0,X.a)],Eo);class mr{constructor(e){this.label=new nr.a(e,!1)}set(e,t){var n;let o=(n=e.parent.getPreview(e))===null||n===void 0?void 0:n.preview(e.range);if(o&&o.value){let{value:d,highlight:m}=o;t&&!kn.a.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(d,Object(kn.c)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(d,[m]))}else this.label.set(`${Object(Be.b)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Zn{constructor(){this.templateId=Zn.id}renderTemplate(e){return new mr(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}Zn.id="OneReferenceRenderer";class Yr{getWidgetAriaLabel(){return Object(G.a)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var ws=r(136);r(307);let tl={separatorBorder:Kn.a.transparent};class ru{constructor(e,t,n,o){this.container=e,this.view=t,this.disposable=o,this._cachedVisibleSize=void 0,typeof n=="number"?(this._size=n,this._cachedVisibleSize=void 0,ae.e(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return this._cachedVisibleSize===void 0}setVisible(e,t){e!==this.visible&&(e?(this.size=Object(ci.b)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),ae.ab(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class Tm extends ru{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class Lm extends ru{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}var Wa,nd;(function(u){u[u.Idle=0]="Idle",u[u.Busy=1]="Busy"})(Wa||(Wa={})),function(u){u.Distribute={type:"distribute"},u.Split=function(e){return{type:"split",index:e}},u.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(nd||(nd={}));class Nm extends Lt.a{constructor(e,t={}){super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Wa.Idle,this._onDidSashChange=this._register(new ot.a),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new ot.a),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=tr.k(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!tr.k(t.proportionalLayout)||!!t.proportionalLayout,this.el=document.createElement("div"),ae.e(this.el,"monaco-split-view2"),ae.e(this.el,this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=ae.p(this.el,ae.a(".sash-container")),this.viewContainer=ae.p(this.el,ae.a(".split-view-container")),this.style(t.styles||tl),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((n,o)=>{let d=tr.k(n.visible)||n.visible?n.size:{type:"invisible",cachedVisibleSize:n.size},m=n.view;this.doAddView(m,d,o,!0)}),this.contentSize=this.viewItems.reduce((n,o)=>n+o.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(let t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(let t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(ae.Q(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(ae.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,n=this.viewItems.length,o){this.doAddView(e,t,n,o)}layout(e,t){let n=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let o=0;o<this.viewItems.length;o++){let d=this.viewItems[o];d.size=Object(ci.b)(Math.round(this.proportions[o]*e),d.minimumSize,d.maximumSize)}else{let o=Object(ee.s)(this.viewItems.length),d=o.filter(D=>this.viewItems[D].priority===1),m=o.filter(D=>this.viewItems[D].priority===2);this.resize(this.viewItems.length-1,e-n,void 0,d,m)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:n}){for(let D of this.viewItems)D.enabled=!1;let o=Object(ee.j)(this.sashItems,D=>D.sash===e),d=Object(Lt.e)(Object(eo.a)(document.body,"keydown")(D=>m(this.sashDragState.current,D.altKey)),Object(eo.a)(document.body,"keyup")(()=>m(this.sashDragState.current,!1))),m=(D,oe)=>{let re=this.viewItems.map(St=>St.size),ce,Me,Ct=Number.NEGATIVE_INFINITY,Ut=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(oe=!oe),oe)if(o===this.sashItems.length-1){let St=this.viewItems[o];Ct=(St.minimumSize-St.size)/2,Ut=(St.maximumSize-St.size)/2}else{let St=this.viewItems[o+1];Ct=(St.size-St.maximumSize)/2,Ut=(St.size-St.minimumSize)/2}if(!oe){let St=Object(ee.s)(o,-1),di=Object(ee.s)(o+1,this.viewItems.length),hi=St.reduce((fn,$n)=>fn+(this.viewItems[$n].minimumSize-re[$n]),0),ji=St.reduce((fn,$n)=>fn+(this.viewItems[$n].viewMaximumSize-re[$n]),0),Ji=di.length===0?Number.POSITIVE_INFINITY:di.reduce((fn,$n)=>fn+(re[$n]-this.viewItems[$n].minimumSize),0),dn=di.length===0?Number.NEGATIVE_INFINITY:di.reduce((fn,$n)=>fn+(re[$n]-this.viewItems[$n].viewMaximumSize),0),Ki=Math.max(hi,dn),yn=Math.min(Ji,ji),hn=this.findFirstSnapIndex(St),Qi=this.findFirstSnapIndex(di);if(typeof hn=="number"){let fn=this.viewItems[hn],$n=Math.floor(fn.viewMinimumSize/2);ce={index:hn,limitDelta:fn.visible?Ki-$n:Ki+$n,size:fn.size}}if(typeof Qi=="number"){let fn=this.viewItems[Qi],$n=Math.floor(fn.viewMinimumSize/2);Me={index:Qi,limitDelta:fn.visible?yn+$n:yn-$n,size:fn.size}}}this.sashDragState={start:D,current:D,index:o,sizes:re,minDelta:Ct,maxDelta:Ut,alt:oe,snapBefore:ce,snapAfter:Me,disposable:d}};m(t,n)}onSashChange({current:e}){let{index:t,start:n,sizes:o,alt:d,minDelta:m,maxDelta:D,snapBefore:oe,snapAfter:re}=this.sashDragState;this.sashDragState.current=e;let ce=e-n,Me=this.resize(t,ce,o,void 0,void 0,m,D,oe,re);if(d){let Ct=t===this.sashItems.length-1,Ut=this.viewItems.map(dn=>dn.size),St=Ct?t:t+1,di=this.viewItems[St],hi=di.size-di.maximumSize,ji=di.size-di.minimumSize,Ji=Ct?t-1:t+1;this.resize(Ji,-Me,Ut,void 0,void 0,hi,ji)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(let t of this.viewItems)t.enabled=!0}onViewChange(e,t){let n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=Object(ci.b)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}resizeView(e,t){if(this.state!==Wa.Idle)throw new Error("Cant modify splitview");if(this.state=Wa.Busy,e<0||e>=this.viewItems.length)return;let n=Object(ee.s)(this.viewItems.length).filter(D=>D!==e),o=[...n.filter(D=>this.viewItems[D].priority===1),e],d=n.filter(D=>this.viewItems[D].priority===2),m=this.viewItems[e];t=Math.round(t),t=Object(ci.b)(t,m.minimumSize,Math.min(m.maximumSize,this.size)),m.size=t,this.relayout(o,d),this.state=Wa.Idle}distributeViewSizes(){let e=[],t=0;for(let D of this.viewItems)D.maximumSize-D.minimumSize>0&&(e.push(D),t+=D.size);let n=Math.floor(t/e.length);for(let D of e)D.size=Object(ci.b)(n,D.minimumSize,D.maximumSize);let o=Object(ee.s)(this.viewItems.length),d=o.filter(D=>this.viewItems[D].priority===1),m=o.filter(D=>this.viewItems[D].priority===2);this.relayout(d,m)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,n=this.viewItems.length,o){if(this.state!==Wa.Idle)throw new Error("Cant modify splitview");this.state=Wa.Busy;let d=ae.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(d):this.viewContainer.insertBefore(d,this.viewContainer.children.item(n));let m=e.onDidChange(Ct=>this.onViewChange(ce,Ct)),D=Object(Lt.h)(()=>this.viewContainer.removeChild(d)),oe=Object(Lt.e)(m,D),re;re=typeof t=="number"?t:t.type==="split"?this.getViewSize(t.index)/2:t.type==="invisible"?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;let ce=this.orientation===0?new Tm(d,e,re,oe):new Lm(d,e,re,oe);if(this.viewItems.splice(n,0,ce),this.viewItems.length>1){let Ct=this.orientation===0?new oa.a(this.sashContainer,{getHorizontalSashTop:Ki=>this.getSashPosition(Ki)},{orientation:1,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}):new oa.a(this.sashContainer,{getVerticalSashLeft:Ki=>this.getSashPosition(Ki)},{orientation:0,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Ut=this.orientation===0?Ki=>({sash:Ct,start:Ki.startY,current:Ki.currentY,alt:Ki.altKey}):Ki=>({sash:Ct,start:Ki.startX,current:Ki.currentX,alt:Ki.altKey}),St=ot.b.map(Ct.onDidStart,Ut)(this.onSashStart,this),di=ot.b.map(Ct.onDidChange,Ut)(this.onSashChange,this),hi=ot.b.map(Ct.onDidEnd,()=>Object(ee.j)(this.sashItems,Ki=>Ki.sash===Ct))(this.onSashEnd,this),ji=Ct.onDidReset(()=>{let Ki=Object(ee.j)(this.sashItems,$n=>$n.sash===Ct),yn=Object(ee.s)(Ki,-1),hn=Object(ee.s)(Ki+1,this.viewItems.length),Qi=this.findFirstSnapIndex(yn),fn=this.findFirstSnapIndex(hn);(typeof Qi!="number"||this.viewItems[Qi].visible)&&(typeof fn!="number"||this.viewItems[fn].visible)&&this._onDidSashReset.fire(Ki)}),Ji=Object(Lt.e)(St,di,hi,ji,Ct),dn={sash:Ct,disposable:Ji};this.sashItems.splice(n-1,0,dn)}let Me;d.appendChild(e.element),typeof t!="number"&&t.type==="split"&&(Me=[t.index]),o||this.relayout([n],Me),this.state=Wa.Idle,o||typeof t=="number"||t.type!=="distribute"||this.distributeViewSizes()}relayout(e,t){let n=this.viewItems.reduce((o,d)=>o+d.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,n=this.viewItems.map(ce=>ce.size),o,d,m=Number.NEGATIVE_INFINITY,D=Number.POSITIVE_INFINITY,oe,re){if(e<0||e>=this.viewItems.length)return 0;let ce=Object(ee.s)(e,-1),Me=Object(ee.s)(e+1,this.viewItems.length);if(d)for(let Qi of d)Object(ee.r)(ce,Qi),Object(ee.r)(Me,Qi);if(o)for(let Qi of o)Object(ee.q)(ce,Qi),Object(ee.q)(Me,Qi);let Ct=ce.map(Qi=>this.viewItems[Qi]),Ut=ce.map(Qi=>n[Qi]),St=Me.map(Qi=>this.viewItems[Qi]),di=Me.map(Qi=>n[Qi]),hi=ce.reduce((Qi,fn)=>Qi+(this.viewItems[fn].minimumSize-n[fn]),0),ji=ce.reduce((Qi,fn)=>Qi+(this.viewItems[fn].maximumSize-n[fn]),0),Ji=Me.length===0?Number.POSITIVE_INFINITY:Me.reduce((Qi,fn)=>Qi+(n[fn]-this.viewItems[fn].minimumSize),0),dn=Me.length===0?Number.NEGATIVE_INFINITY:Me.reduce((Qi,fn)=>Qi+(n[fn]-this.viewItems[fn].maximumSize),0),Ki=Math.max(hi,dn,m),yn=Math.min(Ji,ji,D),hn=!1;if(oe){let Qi=this.viewItems[oe.index],fn=t>=oe.limitDelta;hn=fn!==Qi.visible,Qi.setVisible(fn,oe.size)}if(!hn&&re){let Qi=this.viewItems[re.index],fn=t<re.limitDelta;hn=fn!==Qi.visible,Qi.setVisible(fn,re.size)}if(hn)return this.resize(e,t,n,o,d,m,D);for(let Qi=0,fn=t=Object(ci.b)(t,Ki,yn);Qi<Ct.length;Qi++){let $n=Ct[Qi],fr=Object(ci.b)(Ut[Qi]+fn,$n.minimumSize,$n.maximumSize);fn-=fr-Ut[Qi],$n.size=fr}for(let Qi=0,fn=t;Qi<St.length;Qi++){let $n=St[Qi],fr=Object(ci.b)(di[Qi]-fn,$n.minimumSize,$n.maximumSize);fn+=fr-di[Qi],$n.size=fr}return t}distributeEmptySpace(e){let t=this.viewItems.reduce((D,oe)=>D+oe.size,0),n=this.size-t,o=Object(ee.s)(this.viewItems.length-1,-1),d=o.filter(D=>this.viewItems[D].priority===1),m=o.filter(D=>this.viewItems[D].priority===2);for(let D of m)Object(ee.r)(o,D);for(let D of d)Object(ee.q)(o,D);typeof e=="number"&&Object(ee.q)(o,e);for(let D=0;n!==0&&D<o.length;D++){let oe=this.viewItems[o[D]],re=Object(ci.b)(oe.size+n,oe.minimumSize,oe.maximumSize);n-=re-oe.size,oe.size=re}}layoutViews(){this.contentSize=this.viewItems.reduce((t,n)=>t+n.size,0);let e=0;for(let t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement()}updateSashEnablement(){let e=!1,t=this.viewItems.map(oe=>e=oe.size-oe.minimumSize>0||e);e=!1;let n=this.viewItems.map(oe=>e=oe.maximumSize-oe.size>0||e),o=[...this.viewItems].reverse();e=!1;let d=o.map(oe=>e=oe.size-oe.minimumSize>0||e).reverse();e=!1;let m=o.map(oe=>e=oe.maximumSize-oe.size>0||e).reverse(),D=0;for(let oe=0;oe<this.sashItems.length;oe++){let{sash:re}=this.sashItems[oe];D+=this.viewItems[oe].size;let ce=!(t[oe]&&m[oe+1]),Me=!(n[oe]&&d[oe+1]);if(ce&&Me){let Ct=Object(ee.s)(oe,-1),Ut=Object(ee.s)(oe+1,this.viewItems.length),St=this.findFirstSnapIndex(Ct),di=this.findFirstSnapIndex(Ut),hi=typeof St=="number"&&!this.viewItems[St].visible,ji=typeof di=="number"&&!this.viewItems[di].visible;hi&&d[oe]&&(D>0||this.startSnappingEnabled)?re.state=1:ji&&t[oe]&&(D<this.contentSize||this.endSnappingEnabled)?re.state=2:re.state=0}else re.state=ce&&!Me?1:!ce&&Me?2:3}}getSashPosition(e){let t=0;for(let n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}findFirstSnapIndex(e){for(let t of e){let n=this.viewItems[t];if(n.visible&&n.snap)return t}for(let t of e){let n=this.viewItems[t];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach(e=>e.dispose()),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}var Im=r(150),Dm=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Nl=function(u,e){return function(t,n){e(t,n,u)}},ou=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class rd{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Lt.b,this._callOnModelChange=new Lt.b,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));let t=[],n=[];for(let d=0,m=e.children.length;d<m;d++){let D=e.children[d];this._decorationIgnoreSet.has(D.id)||D.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:D.range,options:rd.DecorationOptions}),n.push(d))}let o=this._editor.deltaDecorations([],t);for(let d=0;d<o.length;d++)this._decorations.set(o[d],e.children[n[d]])}_onDecorationChanged(){let e=[],t=this._editor.getModel();if(t){for(let[n,o]of this._decorations){let d=t.getDecorationRange(n);if(!d)continue;let m=!1;gt.a.equalsRange(d,o.range)||((gt.a.spansMultipleLines(d)||o.range.endColumn-o.range.startColumn!=d.endColumn-d.startColumn)&&(m=!0),m?(this._decorationIgnoreSet.add(o.id),e.push(n)):o.range=d)}for(let n=0,o=e.length;n<o;n++)this._decorations.delete(e[n]);this._editor.deltaDecorations(e,[])}}removeDecorations(){this._editor.deltaDecorations([...this._decorations.keys()],[]),this._decorations.clear()}}rd.DecorationOptions=Rt.a.register({stickiness:1,className:"reference-decoration"});class Om extends ws.c{}let sh=class extends el{constructor(u,e,t,n,o,d,m,D,oe,re){super(u,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0},d),this._defaultTreeKeyboardSupport=e,this.layoutData=t,this._textModelResolverService=o,this._instantiationService=d,this._peekViewService=m,this._uriLabel=D,this._undoRedoService=oe,this._keybindingService=re,this._disposeOnNewModel=new Lt.b,this._callOnDispose=new Lt.b,this._onDidSelectReference=new ot.a,this.onDidSelectReference=this._onDidSelectReference.event,this._dim={height:0,width:0},this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(u,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(Lt.f)(this._preview),Object(Lt.f)(this._previewNotAvailableMessage),Object(Lt.f)(this._tree),Object(Lt.f)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(u){let e=u.getColor(Fo)||Kn.a.transparent;this.style({arrowColor:e,frameColor:e,headerBackgroundColor:u.getColor(ko)||Kn.a.transparent,primaryHeadingColor:u.getColor(jr),secondaryHeadingColor:u.getColor(Ll)})}show(u){this.editor.revealRangeInCenterIfOutsideViewport(u,0),super.show(u,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(u){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:u.ctrlKey||u.metaKey||u.altKey?"side":"open",source:"title"})}_fillBody(u){this.setCssClass("reference-zone-widget"),this._messageContainer=ae.p(u,ae.a("div.messages")),ae.K(this._messageContainer),this._splitView=new Nm(u,{orientation:1}),this._previewContainer=ae.p(u,ae.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(Er,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),ae.K(this._previewContainer),this._previewNotAvailableMessage=new Rt.b(G.a("missingPreviewMessage","no preview available"),Rt.b.DEFAULT_CREATION_OPTIONS,null,null,this._undoRedoService),this._treeContainer=ae.p(u,ae.a("div.ref-tree.inline"));let e={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Yr,keyboardNavigationLabelProvider:this._instantiationService.createInstance(mo),identityProvider:new Fa,openOnSingleClick:!0,openOnFocus:!0,overrideStyles:{listBackground:vs}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(ae.n(this._treeContainer,"keydown",n=>{n.equals(9)&&(this._keybindingService.dispatchEvent(n,n.target),n.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(Om,"ReferencesWidget",this._treeContainer,new ir,[this._instantiationService.createInstance(Eo),this._instantiationService.createInstance(Zn)],this._instantiationService.createInstance(rr),e),this._splitView.addView({onDidChange:ot.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:n=>{this._preview.layout({height:this._dim.height,width:n})}},nd.Distribute),this._splitView.addView({onDidChange:ot.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:n=>{this._treeContainer.style.height=this._dim.height+"px",this._treeContainer.style.width=n+"px",this._tree.layout(this._dim.height,n)}},nd.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let t=(n,o)=>{n instanceof ma&&(o==="show"&&this._revealReference(n,!1),this._onDidSelectReference.fire({element:n,kind:o,source:"tree"}))};this._tree.onDidOpen(n=>{n.sideBySide?t(n.element,"side"):n.editorOptions.pinned?t(n.element,"goto"):t(n.element,"show")}),ae.K(this._treeContainer)}_onWidth(u){this._dim&&this._doLayoutBody(this._dim.height,u)}_doLayoutBody(u,e){super._doLayoutBody(u,e),this._dim={height:u,width:e},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(e),this._splitView.resizeView(0,e*this.layoutData.ratio)}setSelection(u){return this._revealReference(u,!0).then(()=>{this._model&&(this._tree.setSelection([u]),this._tree.setFocus([u]))})}setModel(u){return this._disposeOnNewModel.clear(),this._model=u,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=G.a("noResults","No results"),ae.Z(this._messageContainer),Promise.resolve(void 0)):(ae.K(this._messageContainer),this._decorationsManager=new rd(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(u=>this._tree.rerender(u))),this._disposeOnNewModel.add(this._preview.onMouseDown(u=>{let{event:e,target:t}=u;if(e.detail!==2)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:t.range},kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),ae.Z(this._treeContainer),ae.Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){let[u]=this._tree.getFocus();return u instanceof ma?u:u instanceof s&&u.children.length>0?u.children[0]:void 0}revealReference(u){return ou(this,void 0,void 0,function*(){yield this._revealReference(u,!1),this._onDidSelectReference.fire({element:u,kind:"goto",source:"tree"})})}_revealReference(u,e){return ou(this,void 0,void 0,function*(){if(this._revealedReference===u)return;this._revealedReference=u,u.uri.scheme!==M.b.inMemory?this.setTitle(Object(Be.c)(u.uri),this._uriLabel.getUriLabel(Object(Be.d)(u.uri))):this.setTitle(G.a("peekView.alternateTitle","References"));let t=this._textModelResolverService.createModelReference(u.uri);this._tree.getInput()===u.parent||(e&&this._tree.reveal(u.parent),yield this._tree.expand(u.parent)),this._tree.reveal(u);let n=yield t;if(!this._model)return void n.dispose();Object(Lt.f)(this._previewModelReference);let o=n.object;if(o){let d=this._preview.getModel()===o.textEditorModel?0:1,m=gt.a.lift(u.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(m),this._preview.revealRangeInCenter(m,d)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};sh=Dm([Nl(3,ut.c),Nl(4,$t.a),Nl(5,X.a),Nl(6,Qa),Nl(7,Oe.a),Nl(8,Im.a),Nl(9,Ot.a)],sh),Object(ut.g)((u,e)=>{let t=u.getColor(ih);t&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${t}; }`);let n=u.getColor(nh);n&&e.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${n}; }`);let o=u.getColor(rh);o&&e.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${o}; box-sizing: border-box; }`);let d=u.getColor(Ue.b);d&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${d}; box-sizing: border-box; }`);let m=u.getColor(vs);m&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${m}; }`);let D=u.getColor(Ps);D&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${D}; }`);let oe=u.getColor(Qd);oe&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${oe}; }`);let re=u.getColor(Jd);re&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${re}; }`);let ce=u.getColor(eh);ce&&e.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${ce} !important; }`);let Me=u.getColor(ic);Me&&e.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input { background-color: ${Me};}`);let Ct=u.getColor(th);Ct&&e.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin { background-color: ${Ct};}`)});var Am=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},nc=function(u,e){return function(t,n){e(t,n,u)}},su=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Il=new A.c("referenceSearchVisible",!1),il=class Xh{constructor(e,t,n,o,d,m,D,oe){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=o,this._notificationService=d,this._instantiationService=m,this._storageService=D,this._configurationService=oe,this._disposables=new Lt.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Il.bindTo(n)}static get(e){return e.getContribution(Xh.ID)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(Lt.f)(this._widget),Object(Lt.f)(this._model),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let o;if(this._widget&&(o=this._widget.position),this.closeWidget(),o&&e.containsPosition(o))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let d=class{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(D){let oe,re;try{let ce=JSON.parse(D);oe=ce.ratio,re=ce.heightInLines}catch(ce){}return{ratio:oe||.7,heightInLines:re||18}}}.fromJSON(this._storageService.get("peekViewLayout",0,"{}"));this._widget=this._instantiationService.createInstance(sh,this._editor,this._defaultTreeKeyboardSupport,d),this._widget.setTitle(G.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store("peekViewLayout",JSON.stringify(this._widget.layoutData),0),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(D=>{let{element:oe,kind:re}=D;if(oe)switch(re){case"open":D.source==="editor"&&this._configurationService.getValue("editor.stablePeek")||this.openReference(oe,!1);break;case"side":this.openReference(oe,!0);break;case"goto":n?this._gotoReference(oe):this.openReference(oe,!1)}}));let m=++this._requestIdPool;t.then(D=>{if(m===this._requestIdPool&&this._widget)return this._model&&this._model.dispose(),this._model=D,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(G.a("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let oe=this._editor.getModel().uri,re=new Oi.a(e.startLineNumber,e.startColumn),ce=this._model.nearestReference(oe,re);if(ce)return this._widget.setSelection(ce).then(()=>{this._widget&&this._editor.getOption(68)==="editor"&&this._widget.focusOnPreviewEditor()})}})},D=>{this._notificationService.error(D)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return su(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;let o=this._model.nextOrPreviousReference(n,e),d=this._editor.hasTextFocus(),m=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(o),yield this._gotoReference(o),d?this._editor.focus():this._widget&&m&&this._widget.focusOnPreviewEditor()})}revealReference(e){return su(this,void 0,void 0,function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))})}closeWidget(e=!0){Object(Lt.f)(this._widget),Object(Lt.f)(this._model),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;let t=gt.a.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t}},this._editor).then(n=>{var o;if(this._ignoreModelChangeEvent=!1,n&&this._widget)if(this._editor===n)this._widget.show(t),this._widget.focusOnReferenceTree();else{let d=Xh.get(n),m=this._model.clone();this.closeWidget(),n.focus(),d.toggleWidget(t,Object(Bi.f)(D=>Promise.resolve(m)),(o=this._peekMode)!==null&&o!==void 0&&o)}else this.closeWidget()},n=>{this._ignoreModelChangeEvent=!1,Object(De.e)(n)})}openReference(e,t){t||this.closeWidget();let{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o}},this._editor,t)}};function Dl(u,e){let t=function(o){let d=o.get(Si.a).getFocusedCodeEditor();return d instanceof Er?d.getParentEditor():d}(u);if(!t)return;let n=il.get(t);n&&e(n)}il.ID="editor.contrib.referencesController",il=Am([nc(2,A.b),nc(3,Si.a),nc(4,Re.a),nc(5,X.a),nc(6,Qn.a),nc(7,kr.a)],il),so.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(Se.a)(2089,60),when:A.a.or(Il,Qr.inPeekEditor),handler(u){Dl(u,e=>{e.changeFocusBetweenPreviewAndReferences()})}}),so.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:A.a.or(Il,Qr.inPeekEditor),handler(u){Dl(u,e=>{e.goToNextOrPreviousReference(!0)})}}),so.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:A.a.or(Il,Qr.inPeekEditor),handler(u){Dl(u,e=>{e.goToNextOrPreviousReference(!1)})}}),Ee.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ee.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ee.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ee.a.registerCommand("closeReferenceSearch",u=>Dl(u,e=>e.closeWidget())),so.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:A.a.and(Qr.inPeekEditor,A.a.not("config.editor.stablePeek"))}),so.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:A.a.and(Il,A.a.not("config.editor.stablePeek"))}),so.a.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:A.a.and(Il,ws.e),handler(u){var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Dl(u,n=>n.revealReference(t[0]))}}),so.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:A.a.and(Il,ws.e),handler(u){var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Dl(u,n=>n.openReference(t[0],!0))}}),Ee.a.registerCommand("openReference",u=>{var e;let t=(e=u.get(ws.a).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(t)&&t[0]instanceof ma&&Dl(u,n=>n.openReference(t[0],!1))});var Rm=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Oc(u,e,t,n){let o=t.ordered(u).map(d=>Promise.resolve(n(d,u,e)).then(void 0,m=>{Object(De.f)(m)}));return Promise.all(o).then(d=>{let m=[];for(let D of d)Array.isArray(D)?m.push(...D):D&&m.push(D);return m})}function ah(u,e,t){return Oc(u,e,I.f,(n,o,d)=>n.provideDefinition(o,d,t))}function au(u,e,t){return Oc(u,e,I.e,(n,o,d)=>n.provideDeclaration(o,d,t))}function lu(u,e,t){return Oc(u,e,I.q,(n,o,d)=>n.provideImplementation(o,d,t))}function cu(u,e,t){return Oc(u,e,I.D,(n,o,d)=>n.provideTypeDefinition(o,d,t))}function od(u,e,t,n){return Oc(u,e,I.v,(o,d,m)=>Rm(this,void 0,void 0,function*(){let D=yield o.provideReferences(d,m,{includeDeclaration:!0},n);if(!t||!D||D.length!==2)return D;let oe=yield o.provideReferences(d,m,{includeDeclaration:!1},n);return oe&&oe.length===1?oe:D}))}Object($.p)("_executeDefinitionProvider",(u,e)=>ah(u,e,Dn.a.None)),Object($.p)("_executeDeclarationProvider",(u,e)=>au(u,e,Dn.a.None)),Object($.p)("_executeImplementationProvider",(u,e)=>lu(u,e,Dn.a.None)),Object($.p)("_executeTypeDefinitionProvider",(u,e)=>cu(u,e,Dn.a.None)),Object($.p)("_executeReferenceProvider",(u,e)=>od(u,e,!1,Dn.a.None));var du=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ac=function(u,e){return function(t,n){e(t,n,u)}};let lh=new A.c("hasSymbols",!1),sd=Object(X.c)("ISymbolNavigationService"),ch=class{constructor(u,e,t,n){this._editorService=e,this._notificationService=t,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=lh.bindTo(u)}reset(){this._ctxHasSymbols.reset(),Object(Lt.f)(this._currentState),Object(Lt.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1}put(u){let e=u.parent.parent;if(e.references.length<=1)return void this.reset();this._currentModel=e,this._currentIdx=e.references.indexOf(u),this._ctxHasSymbols.set(!0),this._showMessage();let t=new dh(this._editorService),n=t.onDidChange(o=>{if(this._ignoreEditorChange)return;let d=this._editorService.getActiveCodeEditor();if(!d)return;let m=d.getModel(),D=d.getPosition();if(!m||!D)return;let oe=!1,re=!1;for(let ce of e.references)if(Object(Be.f)(ce.uri,m.uri))oe=!0,re=re||gt.a.containsPosition(ce.range,D);else if(oe)break;oe&&re||this.reset()});this._currentState=Object(Lt.e)(t,n)}revealNext(u){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let e=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:e.uri,options:{selection:gt.a.collapseToStart(e.range),selectionRevealType:3}},u).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){Object(Lt.f)(this._currentMessage);let u=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),e=u?Object(G.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,u.getLabel()):Object(G.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(e)}};ch=du([Ac(0,A.b),Ac(1,Si.a),Ac(2,Re.a),Ac(3,Ot.a)],ch),Object(In.b)(sd,ch,!0),Object($.l)(new class extends $.c{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:lh,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,e){return u.get(sd).revealNext(e)}}),so.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:lh,primary:9,handler(u){u.get(sd).reset()}});let dh=class{constructor(u){this._listener=new Map,this._disposables=new Lt.b,this._onDidChange=new ot.a,this.onDidChange=this._onDidChange.event,this._disposables.add(u.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(u.onCodeEditorAdd(this._onDidAddEditor,this)),u.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(Lt.f)(this._listener.values())}_onDidAddEditor(u){this._listener.set(u,Object(Lt.e)(u.onDidChangeCursorPosition(e=>this._onDidChange.fire({editor:u})),u.onDidChangeModelContent(e=>this._onDidChange.fire({editor:u}))))}_onDidRemoveEditor(u){Object(Lt.f)(this._listener.get(u)),this._listener.delete(u)}};dh=du([Ac(0,Si.a)],dh);var hu,uu,pu,mu,gu,fu,bu,_u,Fs=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};ze.d.appendMenuItem(ze.b.EditorContext,{submenu:ze.b.EditorContextPeek,title:G.a("peek.submenu","Peek"),group:"navigation",order:100});class rc extends $.b{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);let n=e.get(Re.a),o=e.get(Si.a),d=e.get(rt.a),m=e.get(sd),D=t.getModel(),oe=t.getPosition(),re=new qt.b(t,5),ce=Object(Bi.j)(this._getLocationModel(D,oe,re.token),re.token).then(Me=>Fs(this,void 0,void 0,function*(){if(!Me||re.token.isCancellationRequested)return;let Ct;if(Object(_i.a)(Me.ariaMessage),Me.referenceAt(D.uri,oe)){let St=this._getAlternativeCommand(t);St!==this.id&&(Ct=t.getAction(St))}let Ut=Me.references.length;if(Ut===0){if(!this._configuration.muteMessage){let St=D.getWordAtPosition(oe);wi.get(t).showMessage(this._getNoResultFoundMessage(St),oe)}}else{if(Ut!==1||!Ct)return this._onResult(o,m,t,Me);Ct.run()}}),Me=>{n.error(Me)}).finally(()=>{re.dispose()});return d.showWhile(ce,250),ce}_onResult(e,t,n,o){return Fs(this,void 0,void 0,function*(){let d=this._getGoToPreference(n);if(n instanceof Er||!(this._configuration.openInPeek||d==="peek"&&o.references.length>1)){let m=o.firstReference(),D=o.references.length>1&&d==="gotoAndPeek",oe=yield this._openReference(n,e,m,this._configuration.openToSide,!D);D&&oe?this._openInPeek(oe,o):o.dispose(),d==="goto"&&t.put(m)}else this._openInPeek(n,o)})}_openReference(e,t,n,o,d){return Fs(this,void 0,void 0,function*(){let m;Object(I.G)(n)&&(m=n.targetSelectionRange),m||(m=n.range);let D=yield t.openCodeEditor({resource:n.uri,options:{selection:gt.a.collapseToStart(m),selectionRevealType:3}},e,o);if(D){if(d){let oe=D.getModel(),re=D.deltaDecorations([],[{range:m,options:{className:"symbolHighlight"}}]);setTimeout(()=>{D.getModel()===oe&&D.deltaDecorations(re,[])},350)}return D}})}_openInPeek(e,t){let n=il.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(Bi.f)(o=>Promise.resolve(t)),this._configuration.openInPeek):t.dispose()}}class ad extends rc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield ah(e,t,n),G.a("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("noResultWord","No definition found for '{0}'",e.word):G.a("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleDefinitions}}let vu=Et.h&&!kt.k?2118:70;Object($.k)(((hu=class Qh extends ad{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qh.id,label:G.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:A.a.and(z.a.hasDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:vu,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:2,title:G.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}}),Ee.a.registerCommandAlias("editor.action.goToDeclaration",Qh.id)}}).id="editor.action.revealDefinition",hu)),Object($.k)(((uu=class Jh extends ad{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Jh.id,label:G.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:A.a.and(z.a.hasDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,vu),weight:100}}),Ee.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Jh.id)}}).id="editor.action.revealDefinitionAside",uu)),Object($.k)(((pu=class eu extends ad{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:eu.id,label:G.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:A.a.and(z.a.hasDefinitionProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:2}}),Ee.a.registerCommandAlias("editor.action.previewDeclaration",eu.id)}}).id="editor.action.peekDefinition",pu));class wu extends rc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield au(e,t,n),G.a("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("decl.noResultWord","No declaration found for '{0}'",e.word):G.a("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(43).multipleDeclarations}}Object($.k)(((mu=class cm extends wu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cm.id,label:G.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:A.a.and(z.a.hasDeclarationProvider,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:G.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})}_getNoResultFoundMessage(e){return e&&e.word?G.a("decl.noResultWord","No declaration found for '{0}'",e.word):G.a("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",mu)),Object($.k)(class extends wu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:G.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:A.a.and(z.a.hasDeclarationProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:3}})}});class yu extends rc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield cu(e,t,n),G.a("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):G.a("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleTypeDefinitions}}Object($.k)(((gu=class dm extends yu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:dm.ID,label:G.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:A.a.and(z.a.hasTypeDefinitionProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:G.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})}}).ID="editor.action.goToTypeDefinition",gu)),Object($.k)(((fu=class hm extends yu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hm.ID,label:G.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:A.a.and(z.a.hasTypeDefinitionProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",fu));class Cu extends rc{_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(yield lu(e,t,n),G.a("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?G.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):G.a("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(43).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(43).multipleImplementations}}Object($.k)(((bu=class um extends Cu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:um.ID,label:G.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:A.a.and(z.a.hasImplementationProvider,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:4,title:G.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",bu)),Object($.k)(((_u=class pm extends Cu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:pm.ID,label:G.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:A.a.and(z.a.hasImplementationProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",_u));class xu extends rc{_getNoResultFoundMessage(e){return e?G.a("references.no","No references found for '{0}'",e.word):G.a("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(43).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(43).multipleReferences}}Object($.k)(class extends xu{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:G.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:A.a.and(z.a.hasReferenceProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:ze.b.MenubarGoMenu,group:"4_symbol_nav",order:5,title:G.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})}_getLocationModel(u,e,t){return Fs(this,void 0,void 0,function*(){return new v(yield od(u,e,!0,t),G.a("ref.title","References"))})}}),Object($.k)(class extends xu{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:G.a("references.action.label","Peek References"),alias:"Peek References",precondition:A.a.and(z.a.hasReferenceProvider,Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:ze.b.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(u,e,t){return Fs(this,void 0,void 0,function*(){return new v(yield od(u,e,!1,t),G.a("ref.title","References"))})}});class Mm extends rc{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",label:G.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:A.a.and(Qr.notInPeekEditor,z.a.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n){return Fs(this,void 0,void 0,function*(){return new v(this._references,G.a("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&G.a("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(43).multipleReferences}_getAlternativeCommand(){return""}}Ee.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:On.a},{name:"position",description:"The position at which to start",constraint:Oi.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(u,e,t,n,o,d,m)=>Fs(void 0,void 0,void 0,function*(){Object(tr.b)(On.a.isUri(e)),Object(tr.b)(Oi.a.isIPosition(t)),Object(tr.b)(Array.isArray(n)),Object(tr.b)(o===void 0||typeof o=="string"),Object(tr.b)(m===void 0||typeof m=="boolean");let D=u.get(Si.a),oe=yield D.openCodeEditor({resource:e},D.getFocusedCodeEditor());if(Object(Zo.b)(oe))return oe.setPosition(t),oe.revealPositionInCenterIfOutsideViewport(t,0),oe.invokeWithinContext(re=>{let ce=new class extends Mm{_getNoResultFoundMessage(Me){return d||super._getNoResultFoundMessage(Me)}}({muteMessage:!Boolean(d),openInPeek:Boolean(m),openToSide:!1},n,o);re.get(X.a).invokeFunction(ce.run.bind(ce),oe)})})}),Ee.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:On.a},{name:"position",description:"The position at which to start",constraint:Oi.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(u,e,t,n,o)=>Fs(void 0,void 0,void 0,function*(){u.get(Ee.b).executeCommand("editor.action.goToLocations",e,t,n,o,void 0,!0)})}),Ee.a.registerCommand({id:"editor.action.findReferences",handler:(u,e,t)=>{Object(tr.b)(On.a.isUri(e)),Object(tr.b)(Oi.a.isIPosition(t));let n=u.get(Si.a);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(o=>{if(!Object(Zo.b)(o)||!o.hasModel())return;let d=il.get(o);if(!d)return;let m=Object(Bi.f)(oe=>od(o.getModel(),Oi.a.lift(t),!1,oe).then(re=>new v(re,G.a("ref.title","References")))),D=new gt.a(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(d.toggleWidget(D,m,!1))})}}),Ee.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),r(309);var nl=r(109);function hh(u,e){return!!u[e]}class uh{constructor(e,t){this.target=e.target,this.hasTriggerModifier=hh(e.event,t.triggerModifier),this.hasSideBySideModifier=hh(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class Su{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=hh(e,t.triggerModifier)}}class ld{constructor(e,t,n,o){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=o}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ku(u){return u==="altKey"?Et.f?new ld(57,"metaKey",6,"altKey"):new ld(5,"ctrlKey",6,"altKey"):Et.f?new ld(6,"altKey",57,"metaKey"):new ld(6,"altKey",5,"ctrlKey")}class Eu extends Lt.a{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new ot.a),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new ot.a),this.onExecute=this._onExecute.event,this._onCancel=this._register(new ot.a),this.onCancel=this._onCancel.event,this._editor=e,this._opts=ku(this._editor.getOption(61)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(61)){let n=ku(this._editor.getOption(61));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(t=>this._onEditorMouseMove(new uh(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new uh(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new uh(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new Su(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new Su(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){let t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Pm=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Tu=function(u,e){return function(t,n){e(t,n,u)}};let Ol=class ed{constructor(e,t,n){this.textModelResolverService=t,this.modeService=n,this.toUnhook=new Lt.b,this.toUnhookForKeyboard=new Lt.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let o=new Eu(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([d,m])=>{this.startFindDefinitionFromMouse(d,Object(tr.n)(m))})),this.toUnhook.add(o.onExecute(d=>{this.isEnabled(d)&&this.gotoDefinition(d.target.position,d.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},m=>{this.removeLinkDecorations(),Object(De.e)(m)})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(ed.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();let n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();let n=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!n)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return Promise.resolve(0);this.currentWordAtPosition=n;let o=new qt.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(Bi.f)(d=>this.findDefinition(e,d)),this.previousPromise.then(d=>{if(d&&d.length&&o.validate(this.editor))if(d.length>1)this.addDecoration(new gt.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),new $e().appendText(G.a("multipleResults","Click to show {0} definitions.",d.length)));else{let m=d[0];if(!m.uri)return;this.textModelResolverService.createModelReference(m.uri).then(D=>{if(!D.object||!D.object.textEditorModel)return void D.dispose();let{object:{textEditorModel:oe}}=D,{startLineNumber:re}=m.range;if(re<1||re>oe.getLineCount())return void D.dispose();let ce=this.getPreviewValue(oe,re,m),Me;Me=m.originSelectionRange?gt.a.lift(m.originSelectionRange):new gt.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);let Ct=this.modeService.getModeIdByFilepathOrFirstLine(oe.uri);this.addDecoration(Me,new $e().appendCodeblock(Ct||"",ce)),D.dispose()})}else this.removeLinkDecorations()}).then(void 0,De.e)}getPreviewValue(e,t,n){let o=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(e,t);return o.endLineNumber-o.startLineNumber>=ed.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,o)}stripIndentationFromPreviewRange(e,t,n){let o=e.getLineFirstNonWhitespaceColumn(t);for(let d=t+1;d<n.endLineNumber;d++){let m=e.getLineFirstNonWhitespaceColumn(d);o=Math.min(o,m)}return e.getValueInRange(n).replace(new RegExp(`^\\s{${o-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){let n=e.getLineFirstNonWhitespaceColumn(t),o=Math.min(e.getLineCount(),t+ed.MAX_SOURCE_PREVIEW_LINES),d=t+1;for(;d<o&&n!==e.getLineFirstNonWhitespaceColumn(d);d++);return new gt.a(t,1,d+1,1)}getPreviewRangeBasedOnBrackets(e,t){let n=Math.min(e.getLineCount(),t+ed.MAX_SOURCE_PREVIEW_LINES),o=[],d=!0,m=e.findNextBracket(new Oi.a(t,1));for(;m!==null;){if(o.length===0)o.push(m);else{let ce=o[o.length-1];if(ce.open[0]===m.open[0]&&ce.isOpen&&!m.isOpen?o.pop():o.push(m),o.length===0){if(!d)return new gt.a(t,1,m.range.endLineNumber+1,1);d=!1}}let D=e.getLineMaxColumn(t),oe=m.range.endLineNumber,re=m.range.endColumn;if(D===m.range.endColumn&&(oe++,re=1),oe>n)return new gt.a(t,1,n+1,1);m=e.findNextBracket(new Oi.a(oe,re))}return new gt.a(t,1,n+1,1)}addDecoration(e,t){let n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&e.target.type===6&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&I.f.has(this.editor.getModel())}findDefinition(e,t){let n=this.editor.getModel();return n?ah(n,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(n=>{let o=!t&&this.editor.getOption(69)&&!this.isInPeekEditor(n);return new ad({openToSide:t,openInPeek:o,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(n,this.editor)})}isInPeekEditor(e){let t=e.get(A.b);return Qr.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Ol.ID="editor.contrib.gotodefinitionatposition",Ol.MAX_SOURCE_PREVIEW_LINES=8,Ol=Pm([Tu(1,$t.a),Tu(2,nl.a)],Ol),Object($.m)(Ol.ID,Ol),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.r);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)}),r(311);var ph,cd=r(105),dd=r(68);(ph||(ph={})).className=function(u){switch(u){case dd.a.Ignore:return"severity-ignore "+de.a.info.classNames;case dd.a.Info:return de.a.info.classNames;case dd.a.Warning:return de.a.warning.classNames;case dd.a.Error:return de.a.error.classNames;default:return""}},Object(ut.g)((u,e)=>{let t=u.getColor(Ue.Zb);if(t){let d=de.a.error.cssSelector;e.addRule(` .monaco-editor .zone-widget ${d}, .markers-panel .marker-icon${d}, .extensions-viewlet > .extensions ${d} { @@ -4998,69 +4998,70 @@ Please report this to https://github.com/markedjs/marked.`,vi.silent)return"<p>A .extension-editor ${d} { color: ${n}; } - `)}let r=u.getColor(Ue.ac);if(r){let d=de.a.info.cssSelector;e.addRule(` + `)}let o=u.getColor(Ue.ac);if(o){let d=de.a.info.cssSelector;e.addRule(` .monaco-editor .zone-widget ${d}, .markers-panel .marker-icon${d}, .extensions-viewlet > .extensions ${d}, .extension-editor ${d} { - color: ${r}; + color: ${o}; } - `)}});var ga=o(79),Fm=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Rc=function(u,e){return function(t,n){e(t,n,u)}};class Wm{constructor(e,t,n,r){this._openerService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Lt.b,this._editor=t;let d=document.createElement("div");d.className="descriptioncontainer",this._messageBlock=document.createElement("div"),ae.e(this._messageBlock,"message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),d.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),d.appendChild(this._relatedBlock),this._disposables.add(ae.n(this._relatedBlock,"click",m=>{m.preventDefault();let O=this._relatedDiagnostics.get(m.target);O&&n(O)})),this._scrollable=new cd.b(d,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(m=>{d.style.left=`-${m.scrollLeft}px`,d.style.top=`-${m.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(Lt.f)(this._disposables)}update(e){let{source:t,message:n,relatedInformation:r,code:d}=e,m=((t==null?void 0:t.length)||0)+"()".length;d&&(m+=typeof d=="string"?d.length:d.value.length);let O=n.split(/\r\n|\r|\n/g);this._lines=O.length,this._longestLineLength=0;for(let Ct of O)this._longestLineLength=Math.max(Ct.length+m,this._longestLineLength);ae.s(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let re=this._messageBlock;for(let Ct of O)re=document.createElement("div"),re.innerText=Ct,Ct===""&&(re.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(re);if(t||d){let Ct=document.createElement("span");if(ae.e(Ct,"details"),re.appendChild(Ct),t){let Ut=document.createElement("span");Ut.innerText=t,ae.e(Ut,"source"),Ct.appendChild(Ut)}if(d)if(typeof d=="string"){let Ut=document.createElement("span");Ut.innerText=`(${d})`,ae.e(Ut,"code"),Ct.appendChild(Ut)}else this._codeLink=ae.a("a.code-link"),this._codeLink.setAttribute("href",""+d.target.toString()),this._codeLink.onclick=Ut=>{this._openerService.open(d.target),Ut.preventDefault(),Ut.stopPropagation()},ae.p(this._codeLink,ae.a("span")).innerText=d.value,Ct.appendChild(this._codeLink)}if(ae.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(ee.o)(r)){let Ct=this._relatedBlock.appendChild(document.createElement("div"));Ct.style.paddingTop=Math.floor(.66*this._editor.getOption(51))+"px",this._lines+=1;for(let Ut of r){let St=document.createElement("div"),di=document.createElement("a");ae.e(di,"filename"),di.innerText=`${Qt(Ut.resource)}(${Ut.startLineNumber}, ${Ut.startColumn}): `,di.title=It(Ut.resource,void 0),this._relatedDiagnostics.set(di,Ut);let hi=document.createElement("span");hi.innerText=Ut.message,St.appendChild(di),St.appendChild(hi),this._lines+=1,Ct.appendChild(St)}}let oe=this._editor.getOption(36),ce=Math.ceil(oe.typicalFullwidthCharacterWidth*this._longestLineLength*.75),Me=oe.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:ce,scrollHeight:Me})}layout(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case ve.c.Error:t=G.a("Error","Error");break;case ve.c.Warning:t=G.a("Warning","Warning");break;case ve.c.Info:t=G.a("Info","Info");break;case ve.c.Hint:t=G.a("Hint","Hint")}let n=G.a("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),r=this._editor.getModel();return r&&e.startLineNumber<=r.getLineCount()&&e.startLineNumber>=1&&(n=`${r.getLineContent(e.startLineNumber)}, ${n}`),n}}let rc=class mm extends el{constructor(e,t,n,r,d,m){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0},d),this._themeService=t,this._openerService=n,this._menuService=r,this._contextKeyService=m,this._callOnDispose=new Lt.b,this._onDidSelectRelatedInformation=new rt.a,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=ve.c.Warning,this._backgroundColor=Kn.a.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Vm);let t=zm;this._severity===ve.c.Warning?t=Bm:this._severity===ve.c.Info&&(t=jm);let n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(Vo),secondaryHeadingColor:e.getColor(Ll)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onDidBeforeRun(r=>this.editor.focus()));let t=[],n=this._menuService.createMenu(mm.TitleMenu,this._contextKeyService);ua(n,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=ae.p(e,ae.a(""))}_getActionBarOptions(){return Object.assign(Object.assign({},super._getActionBarOptions()),{orientation:0})}_fillBody(e){this._parentContainer=e,ae.e(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wm(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let r=gt.a.lift(e),d=this.editor.getPosition(),m=d&&r.containsPosition(d)?d:r.getStartPosition();super.show(m,this.computeRequiredHeight());let O=this.editor.getModel();if(O){let re=n>1?G.a("problems","{0} of {1} problems",t,n):G.a("change","{0} of {1} problem",t,n);this.setTitle(Object(Be.b)(O.uri),re)}this._icon.className="codicon "+ph.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionNearTop(m,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};rc.TitleMenu=new ze.b("gotoErrorTitleMenu"),rc=Fm([Rc(1,ut.c),Rc(2,ga.a),Rc(3,ze.a),Rc(4,X.a),Rc(5,A.b)],rc);let mh=Object(Ue.Ub)(Ue.u,Ue.t),gh=Object(Ue.Ub)(Ue.T,Ue.S),fh=Object(Ue.Ub)(Ue.L,Ue.K),zm=Object(Ue.gc)("editorMarkerNavigationError.background",{dark:mh,light:mh,hc:mh},G.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),Bm=Object(Ue.gc)("editorMarkerNavigationWarning.background",{dark:gh,light:gh,hc:gh},G.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),jm=Object(Ue.gc)("editorMarkerNavigationInfo.background",{dark:fh,light:fh,hc:fh},G.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Vm=Object(Ue.gc)("editorMarkerNavigation.background",{dark:"#2D2D30",light:Kn.a.white,hc:"#0C141F"},G.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(ut.g)((u,e)=>{let t=u.getColor(Ue.rc);t&&(e.addRule(`.monaco-editor .marker-widget a { color: ${t}; }`),e.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${t}; }`))});var Lu=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Nu=function(u,e){return function(t,n){e(t,n,u)}};class Iu{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let bh=class gm{constructor(e,t){this._markerService=t,this._onDidChange=new rt.a,this.onDidChange=this._onDidChange.event,this._dispoables=new Lt.b,this._markers=[],this._nextIdx=-1,Dn.a.isUri(e)?this._resourceFilter=r=>r.toString()===e.toString():e&&(this._resourceFilter=e);let n=()=>{this._markers=this._markerService.read({resource:Dn.a.isUri(e)?e:void 0,severities:ve.c.Error|ve.c.Warning|ve.c.Info}),typeof e=="function"&&(this._markers=this._markers.filter(r=>this._resourceFilter(r.resource))),this._markers.sort(gm._compareMarker)};n(),this._dispoables.add(t.onMarkerChanged(r=>{this._resourceFilter&&!r.some(d=>this._resourceFilter(d))||(n(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new Iu(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let r=!1,d=this._markers.findIndex(m=>m.resource.toString()===e.uri.toString());d<0&&(d=Object(ee.c)(this._markers,{resource:e.uri},(m,O)=>Object(on.f)(m.resource.toString(),O.resource.toString())),d<0&&(d=~d));for(let m=d;m<this._markers.length;m++){let O=gt.a.lift(this._markers[m]);if(O.isEmpty()){let re=e.getWordAtPosition(O.getStartPosition());re&&(O=new gt.a(O.startLineNumber,re.startColumn,O.startLineNumber,re.endColumn))}if(t&&(O.containsPosition(t)||t.isBeforeOrEqual(O.getStartPosition()))){this._nextIdx=m,r=!0;break}if(this._markers[m].resource.toString()!==e.uri.toString())break}r||(this._nextIdx=n?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,n){if(this._markers.length===0)return!1;let r=this._nextIdx;return this._nextIdx===-1?this._initIdx(t,n,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),r!==this._nextIdx}find(e,t){let n=this._markers.findIndex(r=>r.resource.toString()===e.toString());if(!(n<0)){for(;n<this._markers.length;n++)if(gt.a.containsPosition(this._markers[n],t))return new Iu(this._markers[n],n+1,this._markers.length)}}static _compareMarker(e,t){let n=Object(on.f)(e.resource.toString(),t.resource.toString());return n===0&&(n=ve.c.compare(e.severity,t.severity)),n===0&&(n=gt.a.compareRangesUsingStarts(e,t)),n}};bh=Lu([Nu(1,ve.b)],bh);let Ou=Object(X.c)("IMarkerNavigationService"),_h=class{constructor(u){this._markerService=u,this._provider=new Sl.a}getMarkerList(u){for(let e of this._provider){let t=e.getMarkerList(u);if(t)return t}return new bh(u,this._markerService)}};_h=Lu([Nu(0,ve.b)],_h),Object(In.b)(Ou,_h,!0);var Um=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},hd=function(u,e){return function(t,n){e(t,n,u)}},Du=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let ol=class qd{constructor(e,t,n,r,d){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=r,this._instantiationService=d,this._sessionDispoables=new Lt.b,this._editor=e,this._widgetVisible=Au.bindTo(this._contextKeyService)}static get(e){return e.getContribution(qd.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(rc,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(n=>{var r,d,m;((r=this._model)===null||r===void 0?void 0:r.selected)&>.a.containsPosition((d=this._model)===null||d===void 0?void 0:d.selected.marker,n.position)||(m=this._model)===null||m===void 0||m.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let n=this._model.find(this._editor.getModel().uri,this._widget.position);n?this._widget.updateMarker(n.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(n=>{this._editorService.openCodeEditor({resource:n.resource,options:{pinned:!0,revealIfOpened:!0,selection:gt.a.lift(n).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Di.a(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){return Du(this,void 0,void 0,function*(){if(this._editor.hasModel()){let n=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(n.move(e,this._editor.getModel(),this._editor.getPosition()),!n.selected)return;if(n.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let r=yield this._editorService.openCodeEditor({resource:n.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:n.selected.marker}},this._editor);r&&(qd.get(r).close(),qd.get(r).nagivate(e,t))}else this._widget.showAtMarker(n.selected.marker,n.selected.index,n.selected.total)}})}};ol.ID="editor.contrib.markerController",ol=Um([hd(1,Ou),hd(2,A.b),hd(3,Si.a),hd(4,X.a)],ol);class ud extends $.b{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){return Du(this,void 0,void 0,function*(){t.hasModel()&&ol.get(t).nagivate(this._next,this._multiFile)})}}class za extends ud{constructor(){super(!0,!1,{id:za.ID,label:za.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:578,weight:100},menuOpts:{menuId:rc.TitleMenu,title:za.LABEL,icon:Object(de.e)("marker-navigation-next",de.a.chevronDown),group:"navigation",order:1}})}}za.ID="editor.action.marker.next",za.LABEL=G.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class sc extends ud{constructor(){super(!1,!1,{id:sc.ID,label:sc.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1602,weight:100},menuOpts:{menuId:rc.TitleMenu,title:za.LABEL,icon:Object(de.e)("marker-navigation-previous",de.a.chevronUp),group:"navigation",order:2}})}}sc.ID="editor.action.marker.prev",sc.LABEL=G.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),Object($.m)(ol.ID,ol),Object($.k)(za),Object($.k)(sc),Object($.k)(class extends ud{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:G.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:66,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,title:G.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),Object($.k)(class extends ud{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:G.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1090,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,title:G.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});let Au=new A.c("markersNavigationVisible",!1),Hm=$.c.bindToContribution(ol.get);Object($.l)(new Hm({id:"closeMarkersNavigation",precondition:Au,handler:u=>u.close(),kbOpts:{weight:150,kbExpr:z.a.focus,primary:9,secondary:[1033]}}));class qm{constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new rt.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new rt.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new rt.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}o(313);let fa=ae.a;class $m extends Lt.a{constructor(e,t,n){super(),this.model=t,this.domNode=fa(".colorpicker-header"),ae.p(e,this.domNode),this.pickedColorNode=ae.p(this.domNode,fa(".picked-color"));let r=ae.p(this.domNode,fa(".original-color"));r.style.backgroundColor=Kn.a.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(Ue.E)||Kn.a.white,this._register(Object(ut.g)((d,m)=>{this.backgroundColor=d.getColor(Ue.E)||Kn.a.white})),this._register(ae.i(this.pickedColorNode,ae.c.CLICK,()=>this.model.selectNextColorPresentation())),this._register(ae.i(r,ae.c.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=Kn.a.Format.CSS.format(t.color)||"",ae.ab(this.pickedColorNode,"light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=Kn.a.Format.CSS.format(e)||"",ae.ab(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class Km extends Lt.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this.domNode=fa(".colorpicker-body"),ae.p(e,this.domNode),this.saturationBox=new Gm(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Ym(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Zm(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let n=this.model.color.hsva;this.model.color=new Kn.a(new Kn.b(n.h,e,t,n.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new Kn.a(new Kn.b(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,n=360*(1-e);this.model.color=new Kn.a(new Kn.b(n===360?0:n,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Gm extends Lt.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new rt.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new rt.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=fa(".saturation-wrap"),ae.p(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",ae.p(this.domNode,this.canvas),this.selection=fa(".saturation-selection"),ae.p(this.domNode,this.selection),this.layout(),this._register(ae.g(this.domNode,r=>this.onMouseDown(r))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new tt.a);let t=ae.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,tt.b,r=>this.onDidChangePosition(r.posx-t.left,r.posy-t.top),()=>null);let n=ae.h(document,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let n=Math.max(0,Math.min(1,e/this.width)),r=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,r),this._onDidChange.fire({s:n,v:r})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new Kn.a(new Kn.b(e.h,1,1,1)),n=this.canvas.getContext("2d"),r=n.createLinearGradient(0,0,this.canvas.width,0);r.addColorStop(0,"rgba(255, 255, 255, 1)"),r.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),r.addColorStop(1,"rgba(255, 255, 255, 0)");let d=n.createLinearGradient(0,0,0,this.canvas.height);d.addColorStop(0,"rgba(0, 0, 0, 0)"),d.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=Kn.a.Format.CSS.format(t),n.fill(),n.fillStyle=r,n.fill(),n.fillStyle=d,n.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Ru extends Lt.a{constructor(e,t){super(),this.model=t,this._onDidChange=new rt.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new rt.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=ae.p(e,fa(".strip")),this.overlay=ae.p(this.domNode,fa(".overlay")),this.slider=ae.p(this.domNode,fa(".slider")),this.slider.style.top="0px",this._register(ae.g(this.domNode,n=>this.onMouseDown(n))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){let t=this._register(new tt.a),n=ae.C(this.domNode);ae.e(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,tt.b,d=>this.onDidChangeTop(d.posy-n.top),()=>null);let r=ae.h(document,()=>{this._onColorFlushed.fire(),r.dispose(),t.stopMonitoring(!0),ae.Q(this.domNode,"grabbing")},!0)}onDidChangeTop(e){let t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class Ym extends Ru{constructor(e,t){super(e,t),ae.e(this.domNode,"opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){let{r:t,g:n,b:r}=e.rgba,d=new Kn.a(new Kn.c(t,n,r,1)),m=new Kn.a(new Kn.c(t,n,r,0));this.overlay.style.background=`linear-gradient(to bottom, ${d} 0%, ${m} 100%)`}getValue(e){return e.hsva.a}}class Zm extends Ru{constructor(e,t){super(e,t),ae.e(this.domNode,"hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Xm extends rr.a{constructor(e,t,n,r){super(),this.model=t,this.pixelRatio=n,this._register(Object(kt.n)(()=>this.layout()));let d=fa(".colorpicker-widget");e.appendChild(d);let m=new $m(d,this.model,r);this.body=new Km(d,this.model,this.pixelRatio),this._register(m),this._register(this.body)}layout(){this.body.layout()}}function Mu(u,e,t){let n=I.p.ordered(u).map(r=>Promise.resolve(r.provideHover(u,e,t)).then(d=>d&&function(m){let O=m.range!==void 0,re=m.contents!==void 0&&m.contents&&m.contents.length>0;return O&&re}(d)?d:void 0,d=>{Object(Oe.f)(d)}));return Promise.all(n).then(ee.d)}Object($.p)("_executeHoverProvider",(u,e)=>Mu(u,e,On.a.None));class Pu{constructor(e,t,n,r,d){this._computer=e,this._state=0,this._hoverTime=d,this._firstWaitScheduler=new Bi.d(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new Bi.d(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new Bi.d(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=r}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(Bi.f)(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):Object(Oe.e)(e)}_onProgress(e){this._progressCallback(e)}start(e){if(e===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}o(315);let pd=ae.a;class Qm extends Lt.a{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new cd.a(this.contentsDomNode,{})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class Jm extends rr.a{constructor(e,t,n,r){super(),this._hoverVisibleKey=n,this._keybindingService=r,this.allowEditorOverflow=!0,this._hover=this._register(new Qm),this._id=e,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this.onkeydown(this._hover.containerDomNode,d=>{d.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(36)&&this.updateFont()})),this._editor.onDidLayoutChange(d=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,ae.ab(this._hover.containerDomNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}showAt(e,t,n){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._hover.containerDomNode.focus()}hide(){this.isVisible&&(setTimeout(()=>{this.isVisible||this._hoverVisibleKey.set(!1)},0),this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())}getPosition(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}dispose(){this._editor.removeContentWidget(this),super.dispose()}updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_renderAction(e,t){let n=this._keybindingService.lookupKeybinding(t.commandId);return function(r,d,m){let O=ae.p(r,pd("div.action-container")),re=ae.p(O,pd("a.action"));return re.setAttribute("href","#"),re.setAttribute("role","button"),d.iconClass&&ae.p(re,pd("span.icon."+d.iconClass)),ae.p(re,pd("span")).textContent=m?`${d.label} (${m})`:d.label,ae.i(O,ae.c.CLICK,oe=>{oe.stopPropagation(),oe.preventDefault(),d.run(O)})}(e,t,n?n.getLabel():null)}layout(){let e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:n}=this._editor.getOption(36);this._hover.contentsDomNode.style.fontSize=t+"px",this._hover.contentsDomNode.style.lineHeight=n+"px",this._hover.contentsDomNode.style.maxHeight=e+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}}class eg extends rr.a{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(36)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,ae.ab(this._domNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);let t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),r=this._editor.getScrollTop(),d=this._editor.getOption(51),m=n-r-(this._domNode.clientHeight-d)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(m),0)+"px"}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){[...Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),...Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()}}var Fu=o(165),Wu=o(195);let zu;(function u(e,t,n){function r(O,re){if(!t[O]){if(!e[O]){if(d)return d(O,!0);var oe=new Error("Cannot find module '"+O+"'");throw oe.code="MODULE_NOT_FOUND",oe}var ce=t[O]={exports:{}};e[O][0].call(ce.exports,function(Me){return r(e[O][1][Me]||Me)},ce,ce.exports,u,e,t,n)}return t[O].exports}for(var d=!1,m=0;m<n.length;m++)r(n[m]);return r})({1:[function(u,e,t){var n=u("./toMap");e.exports={uris:n(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(u,e,t){e.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(u,e,t){var n=u("./toMap");e.exports={voids:n(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(u,e,t){u("he");var n=u("assignment"),r=u("./parser"),d=u("./sanitizer"),m=u("./defaults");function O(re,oe,ce){var Me=[],Ct=ce===!0?oe:n({},m,oe),Ut=d(Me,Ct);return r(re,Ut),Me.join("")}O.defaults=m,e.exports=O,zu=O},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(u,e,t){e.exports=function(n){return typeof n=="string"?n.toLowerCase():n}},{}],6:[function(u,e,t){e.exports=function n(r){for(var d,m,O=Array.prototype.slice.call(arguments,1);O.length;)for(m in d=O.shift())d.hasOwnProperty(m)&&(Object.prototype.toString.call(r[m])==="[object Object]"?r[m]=n(r[m],d[m]):r[m]=d[m]);return r}},{}],7:[function(u,e,t){var n=u("he"),r=u("./lowercase"),d=(u("./attributes"),u("./elements")),m=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,O=/^<\s*\/\s*([\w:-]+)[^>]*>/,re=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,oe=/^</,ce=/^<\s*\//;e.exports=function(Me,Ct){for(var Ut,St=function(){var Ki=[];return Ki.lastItem=function(){return Ki[Ki.length-1]},Ki}(),di=Me;Me;)hi();function hi(){Ut=!0,function(){Me.substr(0,4)==="<!--"?(yn=Me.indexOf("-->"))>=0&&(Ct.comment&&Ct.comment(Me.substring(4,yn)),Me=Me.substring(yn+3),Ut=!1):ce.test(Me)?ji(O,dn):oe.test(Me)&&ji(m,Ji);var yn;(function(){if(!!Ut){var hn,Qi=Me.indexOf("<");Qi>=0?(hn=Me.substring(0,Qi),Me=Me.substring(Qi)):(hn=Me,Me=""),Ct.chars&&Ct.chars(hn)}})()}();var Ki=Me===di;di=Me,Ki&&(Me="")}function ji(Ki,yn){var hn=Me.match(Ki);hn&&(Me=Me.substring(hn[0].length),hn[0].replace(Ki,yn),Ut=!1)}function Ji(Ki,yn,hn,Qi){var fn={},$n=r(yn),bo=d.voids[$n]||!!Qi;hn.replace(re,function(zr,Xo,Tr,Qc,Jc){fn[Xo]=Tr===void 0&&Qc===void 0&&Jc===void 0?void 0:n.decode(Tr||Qc||Jc||"")}),bo||St.push($n),Ct.start&&Ct.start($n,fn,bo)}function dn(Ki,yn){var hn,Qi=0,fn=r(yn);if(fn)for(Qi=St.length-1;Qi>=0&&St[Qi]!==fn;Qi--);if(Qi>=0){for(hn=St.length-1;hn>=Qi;hn--)Ct.end&&Ct.end(St[hn]);St.length=Qi}}dn()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(u,e,t){var n=u("he"),r=u("./lowercase"),d=u("./attributes"),m=u("./elements");e.exports=function(O,re){var oe,ce=re||{};return St(),{start:function(di,hi,ji){var Ji=r(di);if(oe.ignoring||(ce.allowedTags||[]).indexOf(Ji)===-1||ce.filter&&!ce.filter({tag:Ji,attrs:hi}))return void Ct(Ji);Me("<"),Me(Ji),Object.keys(hi).forEach(function(dn){var Ki=hi[dn],yn=(ce.allowedClasses||{})[Ji]||[],hn=(ce.allowedAttributes||{})[Ji]||[];hn=hn.concat((ce.allowedAttributes||{})["*"]||[]);var Qi=r(dn);(Qi==="class"&&hn.indexOf(Qi)===-1?(Ki=Ki.split(" ").filter(function(fn){return yn&&yn.indexOf(fn)!==-1}).join(" ").trim()).length:hn.indexOf(Qi)!==-1&&(d.uris[Qi]!==!0||function(fn){var $n=fn[0];if($n==="#"||$n==="/")return!0;var bo=fn.indexOf(":");if(bo===-1)return!0;var zr=fn.indexOf("?");if(zr!==-1&&bo>zr)return!0;var Xo=fn.indexOf("#");return Xo!==-1&&bo>Xo?!0:ce.allowedSchemes.some(function(Tr){return fn.indexOf(Tr+":")===0})}(Ki)))&&(Me(" "),Me(dn),typeof Ki=="string"&&(Me('="'),Me(n.encode(Ki)),Me('"')))}),Me(ji?"/>":">")},end:function(di){var hi=r(di);(ce.allowedTags||[]).indexOf(hi)!==-1&&oe.ignoring===!1?(Me("</"),Me(hi),Me(">")):Ut(hi)},chars:function(di){oe.ignoring===!1&&Me(ce.transformText?ce.transformText(di):di)}};function Me(di){O.push(di)}function Ct(di){m.voids[di]||(oe.ignoring===!1?oe={ignoring:di,depth:1}:oe.ignoring===di&&oe.depth++)}function Ut(di){oe.ignoring===di&&--oe.depth<=0&&St()}function St(){oe={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(u,e,t){var n={"&":"&","<":"<",">":">",'"':""","'":"'"},r={"&":"&","<":"<",">":">",""":'"',"'":"'"},d=/(&|<|>|"|')/g,m=/[&<>"']/g;function O(Me){return n[Me]}function re(Me){return r[Me]}function oe(Me){return Me==null?"":String(Me).replace(m,O)}function ce(Me){return Me==null?"":String(Me).replace(d,re)}oe.options=ce.options={},e.exports={encode:oe,escape:oe,decode:ce,unescape:ce,version:"1.0.0-browser"}},{}],10:[function(u,e,t){function n(r,d){return r[d]=!0,r}e.exports=function(r){return r.reduce(n,{})}},{}]},{},[4]);var tg=zu,ig=o(178),ng=o(69);function og(u,e={},t={}){var n;let r=Object(Fu.a)(e),d=function(St){let di;try{di=Object(ig.a)(decodeURIComponent(St))}catch(hi){}return di?(di=Object(Ln.b)(di,hi=>u.uris&&u.uris[hi]?Dn.a.revive(u.uris[hi]):void 0),encodeURIComponent(JSON.stringify(di))):St},m=function(St,di){let hi=u.uris&&u.uris[St];if(!hi)return St;let ji=Dn.a.revive(hi);return Dn.a.parse(St).toString()===ji.toString()?St:di?ae.r(ji).toString(!0):(ji.query&&(ji=ji.with({query:d(ji.query)})),ji.toString())},O,re=new Promise(St=>O=St),oe=new Wu.Renderer;oe.image=(St,di,hi)=>{let ji=[],Ji=[];if(St){({href:St,dimensions:ji}=function(dn){let Ki=[],yn=dn.split("|").map(Qi=>Qi.trim());dn=yn[0];let hn=yn[1];if(hn){let Qi=/height=(\d+)/.exec(hn),fn=/width=(\d+)/.exec(hn),$n=Qi?Qi[1]:"",bo=fn?fn[1]:"",zr=isFinite(parseInt(bo)),Xo=isFinite(parseInt($n));zr&&Ki.push(`width="${bo}"`),Xo&&Ki.push(`height="${$n}"`)}return{href:dn,dimensions:Ki}}(St)),St=m(St,!0);try{let dn=Dn.a.parse(St);e.baseUrl&&dn.scheme===M.b.file&&(St=Object(Be.k)(e.baseUrl,St).toString())}catch(dn){}Ji.push(`src="${St}"`)}return hi&&Ji.push(`alt="${hi}"`),di&&Ji.push(`title="${di}"`),ji.length&&(Ji=Ji.concat(ji)),"<img "+Ji.join(" ")+">"},oe.link=(St,di,hi)=>(St===hi&&(hi=Nt(hi)),St=m(St,!1),e.baseUrl&&(/^\w[\w\d+.-]*:/.test(St)||(St=Object(Be.k)(e.baseUrl,St).toString())),di=Nt(di),!(St=Nt(St))||St.match(/^data:|javascript:/i)||St.match(/^command:/i)&&!u.isTrusted||St.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?hi:`<a href="#" data-href="${St=St.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${di||St}">${hi}</a>`),oe.paragraph=St=>`<p>${u.supportThemeIcons?Object(de.f)(St):St}</p>`,e.codeBlockRenderer&&(oe.code=(St,di)=>{let hi=e.codeBlockRenderer(di,St),ji=Co.b.nextId(),Ji=Promise.all([hi,re]).then(dn=>{let Ki=dn[0],yn=r.querySelector(`div[data-code="${ji}"]`);yn&&(yn.innerHTML=Ki)}).catch(dn=>{});return e.codeBlockRenderCallback&&Ji.then(e.codeBlockRenderCallback),`<div class="code" data-code="${ji}">${Object(on.u)(St)}</div>`});let ce=e.actionHandler;ce&&[ae.c.CLICK,ae.c.AUXCLICK].forEach(St=>{ce.disposeables.add(ae.i(r,St,di=>{let hi=new ng.a(di);if(!hi.leftButton&&!hi.middleButton)return;let ji=hi.target;if(ji.tagName==="A"||(ji=ji.parentElement,ji&&ji.tagName==="A"))try{let Ji=ji.dataset.href;Ji&&ce.callback(Ji,hi)}catch(Ji){Object(Oe.e)(Ji)}finally{hi.preventDefault()}}))}),t.sanitizer=St=>(u.isTrusted?St.match(/^(<span[^<]+>)|(<\/\s*span>)$/):void 0)?St:"",t.sanitize=!0,t.renderer=oe;let Me=[M.b.http,M.b.https,M.b.mailto,M.b.data,M.b.file,M.b.vscodeRemote,M.b.vscodeRemoteResource];u.isTrusted&&Me.push(M.b.command);let Ct=(n=u.value)!==null&&n!==void 0?n:"";Ct.length>1e5&&(Ct=Ct.substr(0,1e5)+"\u2026");let Ut=Wu.parse(u.supportThemeIcons?Object(de.d)(Ct):Ct,t);return r.innerHTML=tg(Ut,{allowedSchemes:Me,allowedTags:["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter:function(St){return St.tag!=="span"||!u.isTrusted||Object.keys(St.attrs).length!==1||(St.attrs.style?!!St.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!!St.attrs.class&&!!St.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-animation-[a-z\-]+)?$/))}}),O(),r}var Bu=o(182),rg=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ju=function(u,e){return function(t,n){e(t,n,u)}};let ac=class extends Lt.a{constructor(u,e,t=ga.b){super(),this._editor=u,this._modeService=e,this._openerService=t,this._onDidRenderCodeBlock=this._register(new rt.a),this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}getOptions(u){return{codeBlockRenderer:(e,t)=>{let n=null;if(e)n=this._modeService.getModeIdForLanguageName(e);else{let r=this._editor.getModel();r&&(n=r.getLanguageIdentifier().language)}return this._modeService.triggerMode(n||""),Promise.resolve(!0).then(r=>{let d=I.C.getPromise(n||"");return d?d.then(m=>Object(Bu.b)(t,m)):Object(Bu.b)(t,void 0)}).then(r=>`<span style="font-family: ${this._editor.getOption(36).fontFamily}">${r}</span>`)},codeBlockRenderCallback:()=>this._onDidRenderCodeBlock.fire(),actionHandler:{callback:e=>{this._openerService.open(e,{fromUserGesture:!0}).catch(Oe.e)},disposeables:u}}}render(u){let e=new Lt.b,t;return t=u?og(u,this.getOptions(e)):document.createElement("span"),{element:t,dispose:()=>e.dispose()}}};ac=rg([ju(1,nl.a),ju(2,Object(X.d)(ga.a))],ac);let Wr=ae.a;class lc{constructor(e,t,n){this.range=e,this.color=t,this.provider=n}}class cc{constructor(e,t){this.range=e,this.marker=t}}class sg{constructor(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}setRange(e){this._range=e,this._result=[]}clearResult(){this._result=[]}computeAsync(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);let t=this._editor.getModel();return I.p.has(t)?Mu(t,new Di.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])}computeSync(){if(!this._editor.hasModel()||!this._range)return[];let e=this._editor.getModel(),t=this._range.startLineNumber;if(t>this._editor.getModel().getLineCount())return[];let n=Ko.get(this._editor),r=e.getLineMaxColumn(t),d=this._editor.getLineDecorations(t),m=!1,O=this._range,re=d.map(oe=>{let ce=oe.range.startLineNumber===t?oe.range.startColumn:1,Me=oe.range.endLineNumber===t?oe.range.endColumn:r;if(ce>O.startColumn||O.endColumn>Me)return null;let Ct=new gt.a(O.startLineNumber,ce,O.startLineNumber,Me),Ut=this._markerDecorationsService.getMarker(e,oe);if(Ut)return new cc(Ct,Ut);let St=n.getColorData(oe.range.getStartPosition());if(!m&&St){m=!0;let{color:di,range:hi}=St.colorInfo;return new lc(hi,di,St.provider)}return pt(oe.options.hoverMessage)?null:{contents:oe.options.hoverMessage?Object(ee.b)(oe.options.hoverMessage):[],range:Ct}});return Object(ee.d)(re)}onResult(e,t){this._result=t?e.concat(this._result.sort((n,r)=>n instanceof lc?-1:r instanceof lc?1:0)):this._result.concat(e)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){return this._result.slice(0).concat([this._getLoadingMessage()])}_getLoadingMessage(){return{range:this._range,contents:[new $e().appendText(G.a("modesContentHover.loading","Loading..."))]}}}let Vu={type:2,filter:{include:_e.QuickFix}};class rl extends Jm{constructor(e,t,n,r,d,m,O=ga.b){super(rl.ID,e,t,r),this._themeService=d,this._modeService=m,this._openerService=O,this.renderDisposable=this._register(new Lt.d),this._messages=[],this._lastRange=null,this._computer=new sg(this._editor,n),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new Pu(this._computer,re=>this._withResult(re,!0),null,re=>this._withResult(re,!1),this._editor.getOption(46).delay),this._register(ae.n(this.getDomNode(),ae.c.FOCUS,()=>{this._colorPicker&&ae.e(this.getDomNode(),"colorpicker-hover")})),this._register(ae.n(this.getDomNode(),ae.c.BLUR,()=>{ae.Q(this.getDomNode(),"colorpicker-hover")})),this._register(e.onDidChangeConfiguration(re=>{this._hoverOperation.setHoverTime(this._editor.getOption(46).delay)})),this._register(I.C.onDidChange(re=>{this.isVisible&&this._lastRange&&this._messages.length>0&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastRange,this._messages))}))}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAt(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){let r=[];for(let d=0,m=this._messages.length;d<m;d++){let O=this._messages[d],re=O.range;re&&re.startColumn<=e.startColumn&&re.endColumn>=e.endColumn&&r.push(O)}if(r.length>0){if(function(d,m){if(!d&&m||d&&!m||d.length!==m.length)return!1;for(let oe=0;oe<d.length;oe++){let ce=d[oe],Me=m[oe];if(ce instanceof cc&&Me instanceof cc)return ve.a.makeKey(ce.marker)===ve.a.makeKey(Me.marker);if(ce instanceof lc||Me instanceof lc||ce instanceof cc||Me instanceof cc||(O=ce.contents,re=Me.contents,!(!O&&!re||O&&re&&(Array.isArray(O)&&Array.isArray(re)?Object(ee.g)(O,re,At):it(O)&&it(re)&&At(O,re)))))return!1}var O,re;return!0}(r,this._messages))return;this._renderMessages(e,r)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}}hide(){this._lastRange=null,this._hoverOperation.cancel(),super.hide(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}_withResult(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()}_renderMessages(e,t){this.renderDisposable.dispose(),this._colorPicker=null;let n=1073741824,r=t[0].range?gt.a.lift(t[0].range):null,d=document.createDocumentFragment(),m=!0,O=!1,re=new Lt.b,oe=[];if(t.forEach(ce=>{if(ce.range)if(n=Math.min(n,ce.range.startColumn),r=r?gt.a.plusRange(r,ce.range):gt.a.lift(ce.range),ce instanceof lc){O=!0;let{red:Me,green:Ct,blue:Ut,alpha:St}=ce.color,di=new Kn.c(Math.round(255*Me),Math.round(255*Ct),Math.round(255*Ut),St),hi=new Kn.a(di);if(!this._editor.hasModel())return;let ji=this._editor.getModel(),Ji=new gt.a(ce.range.startLineNumber,ce.range.startColumn,ce.range.endLineNumber,ce.range.endColumn),dn={range:ce.range,color:ce.color},Ki=new qm(hi,[],0),yn=new Xm(d,Ki,this._editor.getOption(115),this._themeService);cr(ji,dn,ce.provider,On.a.None).then(hn=>{if(Ki.colorPresentations=hn||[],!this._editor.hasModel())return;let Qi=this._editor.getModel().getValueInRange(ce.range);Ki.guessColorPresentation(hi,Qi);let fn=()=>{let Xo,Tr;Ki.presentation.textEdit?(Xo=[Ki.presentation.textEdit],Tr=new gt.a(Ki.presentation.textEdit.range.startLineNumber,Ki.presentation.textEdit.range.startColumn,Ki.presentation.textEdit.range.endLineNumber,Ki.presentation.textEdit.range.endColumn),Tr=Tr.setEndPosition(Tr.endLineNumber,Tr.startColumn+Ki.presentation.textEdit.text.length)):(Xo=[{identifier:null,range:Ji,text:Ki.presentation.label,forceMoveMarkers:!1}],Tr=Ji.setEndPosition(Ji.endLineNumber,Ji.startColumn+Ki.presentation.label.length)),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",Xo),Ki.presentation.additionalTextEdits&&(Xo=[...Ki.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",Xo),this.hide()),this._editor.pushUndoStop(),Ji=Tr},$n=Xo=>cr(ji,{range:Ji,color:{red:Xo.rgba.r/255,green:Xo.rgba.g/255,blue:Xo.rgba.b/255,alpha:Xo.rgba.a}},ce.provider,On.a.None).then(Tr=>{Ki.colorPresentations=Tr||[]}),bo=Ki.onColorFlushed(Xo=>{$n(Xo).then(fn)}),zr=Ki.onDidChangeColor($n);this._colorPicker=yn,this.showAt(Ji.getStartPosition(),Ji,this._shouldFocus),this.updateContents(d),this._colorPicker.layout(),this.renderDisposable.value=Object(Lt.e)(bo,zr,yn,re)})}else ce instanceof cc?(oe.push(ce),m=!1):ce.contents.filter(Me=>!pt(Me)).forEach(Me=>{let Ct=Wr("div.hover-row.markdown-hover"),Ut=ae.p(Ct,Wr("div.hover-contents")),St=re.add(new ac(this._editor,this._modeService,this._openerService));re.add(St.onDidRenderCodeBlock(()=>{Ut.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));let di=re.add(St.render(Me));Ut.appendChild(di.element),d.appendChild(Ct),m=!1})}),oe.length){oe.forEach(Me=>d.appendChild(this.renderMarkerHover(Me)));let ce=oe.length===1?oe[0]:oe.sort((Me,Ct)=>ve.c.compare(Me.marker.severity,Ct.marker.severity))[0];d.appendChild(this.renderMarkerStatusbar(ce))}O||m||(this.showAt(new Di.a(e.startLineNumber,n),r,this._shouldFocus),this.updateContents(d)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,r?[{range:r,options:rl._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}renderMarkerHover(e){let t=Wr("div.hover-row"),n=ae.p(t,Wr("div.marker.hover-contents")),{source:r,message:d,code:m,relatedInformation:O}=e.marker;this._editor.applyFontInfo(n);let re=ae.p(n,Wr("span"));if(re.style.whiteSpace="pre-wrap",re.innerText=d,r||m)if(m&&typeof m!="string"){let oe=Wr("span");r&&(ae.p(oe,Wr("span")).innerText=r),this._codeLink=ae.p(oe,Wr("a.code-link")),this._codeLink.setAttribute("href",m.target.toString()),this._codeLink.onclick=Me=>{this._openerService.open(m.target),Me.preventDefault(),Me.stopPropagation()},ae.p(this._codeLink,Wr("span")).innerText=m.value;let ce=ae.p(n,oe);ce.style.opacity="0.6",ce.style.paddingLeft="6px"}else{let oe=ae.p(n,Wr("span"));oe.style.opacity="0.6",oe.style.paddingLeft="6px",oe.innerText=r&&m?`${r}(${m})`:r||`(${m})`}if(Object(ee.o)(O))for(let{message:oe,resource:ce,startLineNumber:Me,startColumn:Ct}of O){let Ut=ae.p(n,Wr("div"));Ut.style.marginTop="8px";let St=ae.p(Ut,Wr("a"));St.innerText=`${Object(Be.b)(ce)}(${Me}, ${Ct}): `,St.style.cursor="pointer",St.onclick=hi=>{hi.stopPropagation(),hi.preventDefault(),this._openerService&&this._openerService.open(ce.with({fragment:`${Me},${Ct}`}),{fromUserGesture:!0}).catch(Oe.e)};let di=ae.p(Ut,Wr("span"));di.innerText=oe,this._editor.applyFontInfo(di)}return t}renderMarkerStatusbar(e){let t=Wr("div.hover-row.status-bar"),n=new Lt.b,r=ae.p(t,Wr("div.actions"));if(e.marker.severity!==ve.c.Error&&e.marker.severity!==ve.c.Warning&&e.marker.severity!==ve.c.Info||n.add(this._renderAction(r,{label:G.a("peek problem","Peek Problem"),commandId:za.ID,run:()=>{this.hide(),ol.get(this._editor).showAtMarker(e.marker),this._editor.focus()}})),!this._editor.getOption(72)){let d=ae.p(r,Wr("div"));d.style.opacity="0",d.style.transition="opacity 0.2s",setTimeout(()=>d.style.opacity="1",200),d.textContent=G.a("checkingForQuickFixes","Checking for quick fixes..."),n.add(Object(Lt.h)(()=>d.remove()));let m=this.getCodeActions(e.marker);n.add(Object(Lt.h)(()=>m.cancel())),m.then(O=>{if(d.style.transition="",d.style.opacity="1",!O.validActions.length)return O.dispose(),void(d.textContent=G.a("noQuickFixes","No quick fixes available"));d.remove();let re=!1;n.add(Object(Lt.h)(()=>{re||O.dispose()})),n.add(this._renderAction(r,{label:G.a("quick fixes","Quick Fix..."),commandId:ei.Id,run:oe=>{re=!0;let ce=qi.get(this._editor),Me=ae.C(oe);this.hide(),ce.showCodeActions(Vu,O,{x:Me.left+6,y:Me.top+Me.height+6})}}))})}return this.renderDisposable.value=n,t}getCodeActions(e){return Object(Bi.f)(t=>Ht(this._editor.getModel(),new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),Vu,ot.b.None,t))}}rl.ID="editor.contrib.modesContentHoverWidget",rl._DECORATION_OPTIONS=Rt.a.register({className:"hoverHighlight"}),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.rc);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${t}; }`)});class ag{constructor(e){this._editor=e,this._lineNumber=-1,this._result=[]}setLineNumber(e){this._lineNumber=e,this._result=[]}clearResult(){this._result=[]}computeSync(){let e=r=>({value:r}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(let r of t){if(!r.options.glyphMarginClassName)continue;let d=r.options.glyphMarginHoverMessage;d&&!pt(d)&&n.push(...Object(ee.b)(d).map(e))}return n}onResult(e,t){this._result=this._result.concat(e)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class Al extends eg{constructor(e,t,n=ga.b){super(Al.ID,e),this._renderDisposeables=this._register(new Lt.b),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new ac(this._editor,t,n)),this._computer=new ag(this._editor),this._hoverOperation=new Pu(this._computer,r=>this._withResult(r),void 0,r=>this._withResult(r),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();let n=document.createDocumentFragment();for(let r of t){let d=this._markdownRenderer.render(r.value);this._renderDisposeables.add(d),n.appendChild(Object(ae.a)("div.hover-row",void 0,d.element))}this.updateContents(n),this.showAt(e)}}Al.ID="editor.contrib.modesGlyphHoverWidget";var lg=o(192),cg=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},dc=function(u,e){return function(t,n){e(t,n,u)}};let Rl=class fm{constructor(e,t,n,r,d,m,O){this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=r,this._keybindingService=d,this._themeService=m,this._toUnhook=new Lt.b,this._contentWidget=new Lt.d,this._glyphWidget=new Lt.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(re=>{re.hasChanged(46)&&(this._hideWidgets(),this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=z.a.hoverVisible.bindTo(O)}get contentWidget(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value}get glyphWidget(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value}static get(e){return e.getContribution(fm.ID)}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(46);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(n=>this._onEditorMouseDown(n))),this._toUnhook.add(this._editor.onMouseUp(n=>this._onEditorMouseUp(n))),this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(n=>this._onEditorScrollChanged(n)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;let t=e.target.type;t!==9||e.target.detail!==rl.ID?t===12&&e.target.detail===Al.ID||(t!==12&&e.target.detail!==Al.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){let t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&t===9&&e.target.detail===rl.ID||this._isHoverSticky&&t===12&&e.target.detail===Al.ID)){if(t===7){let n=this._editor.getOption(36).typicalHalfwidthCharacterWidth/2,r=e.target.detail;r&&!r.isAfterLines&&typeof r.horizontalDistanceToText=="number"&&r.horizontalDistanceToText<n&&(t=6)}t===6?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):t===2?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())}_createHoverWidgets(){this._contentWidget.value=new rl(this._editor,this._hoverVisibleKey,this._markerDecorationsService,this._keybindingService,this._themeService,this._modeService,this._openerService),this._glyphWidget.value=new Al(this._editor,this._modeService,this._openerService)}showContentHover(e,t,n){this.contentWidget.startShowingAt(e,t,n)}dispose(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()}};Rl.ID="editor.contrib.hover",Rl=cg([dc(1,ga.a),dc(2,nl.a),dc(3,lg.a),dc(4,Dt.a),dc(5,ut.c),dc(6,A.b)],Rl);class dg extends $.b{constructor(){super({id:"editor.action.showHover",label:G.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;let n=Rl.get(t);if(!n)return;let r=t.getPosition(),d=new gt.a(r.lineNumber,r.column,r.lineNumber,r.column),m=t.getOption(2)===2;n.showContentHover(d,1,m)}}class hg extends $.b{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:G.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let n=Rl.get(t);if(!n)return;let r=t.getPosition();if(!r)return;let d=new gt.a(r.lineNumber,r.column,r.lineNumber,r.column),m=Dl.get(t).startFindDefinitionFromCursor(r);m?m.then(()=>{n.showContentHover(d,1,!0)}):n.showContentHover(d,1,!0)}}Object($.m)(Rl.ID,Rl),Object($.k)(dg),Object($.k)(hg),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.H);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${n}; }`);let r=u.getColor(Ue.F);r&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${r}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${r.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${r.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${r.transparent(.5)}; }`));let d=u.getColor(Ue.rc);d&&e.addRule(`.monaco-editor .monaco-hover a { color: ${d}; }`);let m=u.getColor(Ue.G);m&&e.addRule(`.monaco-editor .monaco-hover { color: ${m}; }`);let O=u.getColor(Ue.I);O&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${O}; }`);let re=u.getColor(Ue.qc);re&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${re}; }`)});var hc=o(130);function Xr(u,e){let t=0;for(let n=0;n<u.length;n++)u.charAt(n)===" "?t+=e:t++;return t}function Mc(u,e,t){u=u<0?0:u;let n="";if(!t){let r=Math.floor(u/e);u%=e;for(let d=0;d<r;d++)n+=" "}for(let r=0;r<u;r++)n+=" ";return n}function Uu(u,e,t,n){if(u.getLineCount()===1&&u.getLineMaxColumn(1)===1)return[];let r=Oo.a.getIndentationRules(u.getLanguageIdentifier().id);if(!r)return[];for(t=Math.min(t,u.getLineCount());e<=t&&r.unIndentedLinePattern;){let di=u.getLineContent(e);if(!r.unIndentedLinePattern.test(di))break;e++}if(e>t-1)return[];let{tabSize:d,indentSize:m,insertSpaces:O}=u.getOptions(),re=(di,hi)=>(hi=hi||1,hc.a.shiftIndent(di,di.length+hi,d,m,O)),oe=(di,hi)=>(hi=hi||1,hc.a.unshiftIndent(di,di.length+hi,d,m,O)),ce,Me=[],Ct=u.getLineContent(e),Ut=Ct;if(n!=null){ce=n;let di=on.z(Ct);Ut=ce+Ct.substring(di.length),r.decreaseIndentPattern&&r.decreaseIndentPattern.test(Ut)&&(ce=oe(ce),Ut=ce+Ct.substring(di.length)),Ct!==Ut&&Me.push(Cn.a.replace(new J.a(e,1,e,di.length+1),Rt.b.normalizeIndentation(ce,m,O)))}else ce=on.z(Ct);let St=ce;r.increaseIndentPattern&&r.increaseIndentPattern.test(Ut)?(St=re(St),ce=re(ce)):r.indentNextLinePattern&&r.indentNextLinePattern.test(Ut)&&(St=re(St));for(let di=++e;di<=t;di++){let hi=u.getLineContent(di),ji=on.z(hi),Ji=St+hi.substring(ji.length);r.decreaseIndentPattern&&r.decreaseIndentPattern.test(Ji)&&(St=oe(St),ce=oe(ce)),ji!==St&&Me.push(Cn.a.replace(new J.a(di,1,di,ji.length+1),Rt.b.normalizeIndentation(St,m,O))),r.unIndentedLinePattern&&r.unIndentedLinePattern.test(hi)||(r.increaseIndentPattern&&r.increaseIndentPattern.test(Ji)?(ce=re(ce),St=ce):St=r.indentNextLinePattern&&r.indentNextLinePattern.test(Ji)?re(St):ce)}return Me}class md extends $.b{constructor(){super({id:md.ID,label:G.a("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=n.getOptions(),d=t.getSelection();if(!d)return;let m=new gg(d,r.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}md.ID="editor.action.indentationToSpaces";class gd extends $.b{constructor(){super({id:gd.ID,label:G.a("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=n.getOptions(),d=t.getSelection();if(!d)return;let m=new fg(d,r.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}gd.ID="editor.action.indentationToTabs";class Hu extends $.b{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){let n=e.get(Ho.a),r=e.get(ne.a),d=t.getModel();if(!d)return;let m=r.getCreationOptions(d.getLanguageIdentifier().language,d.uri,d.isForSimpleWidget),O=[1,2,3,4,5,6,7,8].map(oe=>({id:oe.toString(),label:oe.toString(),description:oe===m.tabSize?G.a("configuredTabSize","Configured Tab Size"):void 0})),re=Math.min(d.getOptions().tabSize-1,7);setTimeout(()=>{n.pick(O,{placeHolder:G.a({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:O[re]}).then(oe=>{oe&&d&&!d.isDisposed()&&d.updateOptions({tabSize:parseInt(oe.label,10),insertSpaces:this.insertSpaces})})},50)}}class fd extends Hu{constructor(){super(!1,{id:fd.ID,label:G.a("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}fd.ID="editor.action.indentUsingTabs";class bd extends Hu{constructor(){super(!0,{id:bd.ID,label:G.a("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}bd.ID="editor.action.indentUsingSpaces";class _d extends $.b{constructor(){super({id:_d.ID,label:G.a("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let n=e.get(ne.a),r=t.getModel();if(!r)return;let d=n.getCreationOptions(r.getLanguageIdentifier().language,r.uri,r.isForSimpleWidget);r.detectIndentation(d.insertSpaces,d.tabSize)}}_d.ID="editor.action.detectIndentation";class ug extends $.b{constructor(){super({id:"editor.action.reindentlines",label:G.a("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=Uu(n,1,n.getLineCount());r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class pg extends $.b{constructor(){super({id:"editor.action.reindentselectedlines",label:G.a("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=t.getSelections();if(r===null)return;let d=[];for(let m of r){let O=m.startLineNumber,re=m.endLineNumber;if(O!==re&&m.endColumn===1&&re--,O===1){if(O===re)continue}else O--;let oe=Uu(n,O,re);d.push(...oe)}d.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,d),t.pushUndoStop())}}class mg{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let n of e)n.range&&typeof n.text=="string"&&this._edits.push(n)}getEditOperations(e,t){for(let r of this._edits)t.addEditOperation(gt.a.lift(r.range),r.text);let n=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class vh{constructor(e){this.callOnDispose=new Lt.b,this.callOnModel=new Lt.b,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(8)<4||this.editor.getOption(40)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let n=this.editor.getModel();if(!n||!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;let r=this.editor.getOption(8),{tabSize:d,indentSize:m,insertSpaces:O}=n.getOptions();this.editor.pushUndoStop();let re=[],oe={shiftIndent:St=>hc.a.shiftIndent(St,St.length+1,d,m,O),unshiftIndent:St=>hc.a.unshiftIndent(St,St.length+1,d,m,O)},ce=e.startLineNumber;for(;ce<=e.endLineNumber&&this.shouldIgnoreLine(n,ce);)ce++;if(ce>e.endLineNumber)return;let Me=n.getLineContent(ce);if(!/\S/.test(Me.substring(0,e.startColumn-1))){let St=Oo.a.getGoodIndentForLine(r,n,n.getLanguageIdentifier().id,ce,oe);if(St!==null){let di=on.z(Me),hi=Xr(St,d);if(hi!==Xr(di,d)){let ji=Mc(hi,d,O);re.push({range:new gt.a(ce,1,ce,di.length+1),text:ji}),Me=ji+Me.substr(di.length)}else{let ji=Oo.a.getIndentMetadata(n,ce);if(ji===0||ji===8)return}}}let Ct=ce;for(;ce<e.endLineNumber&&!/\S/.test(n.getLineContent(ce+1));)ce++;if(ce!==e.endLineNumber){let St={getLineTokens:hi=>n.getLineTokens(hi),getLanguageIdentifier:()=>n.getLanguageIdentifier(),getLanguageIdAtPosition:(hi,ji)=>n.getLanguageIdAtPosition(hi,ji),getLineContent:hi=>hi===Ct?Me:n.getLineContent(hi)},di=Oo.a.getGoodIndentForLine(r,St,n.getLanguageIdentifier().id,ce+1,oe);if(di!==null){let hi=Xr(di,d),ji=Xr(on.z(n.getLineContent(ce+1)),d);if(hi!==ji){let Ji=hi-ji;for(let dn=ce+1;dn<=e.endLineNumber;dn++){let Ki=n.getLineContent(dn),yn=on.z(Ki),hn=Mc(Xr(yn,d)+Ji,d,O);hn!==yn&&re.push({range:new gt.a(dn,1,dn,yn.length+1),text:hn})}}}}let Ut=new mg(re,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",Ut),this.editor.pushUndoStop()}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(n===0)return!0;let r=e.getLineTokens(t);if(r.getCount()>0){let d=r.findTokenIndexAtOffset(n);if(d>=0&&r.getStandardTokenType(d)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function qu(u,e,t,n){if(u.getLineCount()===1&&u.getLineMaxColumn(1)===1)return;let r="";for(let m=0;m<t;m++)r+=" ";let d=new RegExp(r,"gi");for(let m=1,O=u.getLineCount();m<=O;m++){let re=u.getLineFirstNonWhitespaceColumn(m);if(re===0&&(re=u.getLineMaxColumn(m)),re===1)continue;let oe=new gt.a(m,1,m,re),ce=u.getValueInRange(oe),Me=n?ce.replace(/\t/gi,r):ce.replace(d," ");e.addEditOperation(oe,Me)}}vh.ID="editor.contrib.autoIndentOnPaste";class gg{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),qu(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class fg{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),qu(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object($.m)(vh.ID,vh),Object($.k)(md),Object($.k)(gd),Object($.k)(fd),Object($.k)(bd),Object($.k)(_d),Object($.k)(ug),Object($.k)(pg);class bg{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new J.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new J.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var _g=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},vg=function(u,e){return function(t,n){e(t,n,u)}};let sl=class tu{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(e){return e.getContribution(tu.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();let n=this.editor.getSelection(),r=this.editor.getModel();if(!r||!n)return;let d=n;if(d.startLineNumber!==d.endLineNumber)return;let m=new qt.a(this.editor,5),O=r.uri;return this.editorWorkerService.canNavigateValueSet(O)?(this.currentRequest=Object(Bi.f)(re=>this.editorWorkerService.navigateValueSet(O,d,t)),this.currentRequest.then(re=>{if(!re||!re.range||!re.value||!m.validate(this.editor))return;let oe=gt.a.lift(re.range),ce=re.range,Me=re.value.length-(d.endColumn-d.startColumn);ce={startLineNumber:ce.startLineNumber,startColumn:ce.startColumn,endLineNumber:ce.endLineNumber,endColumn:ce.startColumn+re.value.length},Me>1&&(d=new J.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn+Me-1));let Ct=new bg(oe,d,re.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,Ct),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:ce,options:tu.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(Bi.l)(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(Oe.e)}).catch(Oe.e)):Promise.resolve(void 0)}};sl.ID="editor.contrib.inPlaceReplaceController",sl.DECORATION=Rt.a.register({className:"valueSetReplacement"}),sl=_g([vg(1,Rs.a)],sl);class wg extends $.b{constructor(){super({id:"editor.action.inPlaceReplace.up",label:G.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3154,weight:100}})}run(e,t){let n=sl.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}class yg extends $.b{constructor(){super({id:"editor.action.inPlaceReplace.down",label:G.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3156,weight:100}})}run(e,t){let n=sl.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}Object($.m)(sl.ID,sl),Object($.k)(wg),Object($.k)(yg),Object(ut.g)((u,e)=>{let t=u.getColor(vt.d);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class Cg{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let n=function(r,d){d.sort((ce,Me)=>ce.lineNumber===Me.lineNumber?ce.column-Me.column:ce.lineNumber-Me.lineNumber);for(let ce=d.length-2;ce>=0;ce--)d[ce].lineNumber===d[ce+1].lineNumber&&d.splice(ce,1);let m=[],O=0,re=0,oe=d.length;for(let ce=1,Me=r.getLineCount();ce<=Me;ce++){let Ct=r.getLineContent(ce),Ut=Ct.length+1,St=0;if(re<oe&&d[re].lineNumber===ce&&(St=d[re].column,re++,St===Ut)||Ct.length===0)continue;let di=on.J(Ct),hi=0;if(di===-1)hi=1;else{if(di===Ct.length-1)continue;hi=di+2}hi=Math.max(St,hi),m[O++]=Cn.a.delete(new gt.a(ce,hi,ce,Ut))}return m}(e,this._cursors);for(let r=0,d=n.length;r<d;r++){let m=n[r];t.addEditOperation(m.range,m.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var wh=o(126);class $u{constructor(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let r=[];for(let m=n.startLineNumber;m<=n.endLineNumber;m++)r.push(e.getLineContent(m));let d=r.join(` + `)}});var ga=r(79),Fm=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Rc=function(u,e){return function(t,n){e(t,n,u)}};class Wm{constructor(e,t,n,o){this._openerService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Lt.b,this._editor=t;let d=document.createElement("div");d.className="descriptioncontainer",this._messageBlock=document.createElement("div"),ae.e(this._messageBlock,"message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),d.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),d.appendChild(this._relatedBlock),this._disposables.add(ae.n(this._relatedBlock,"click",m=>{m.preventDefault();let D=this._relatedDiagnostics.get(m.target);D&&n(D)})),this._scrollable=new cd.b(d,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(m=>{d.style.left=`-${m.scrollLeft}px`,d.style.top=`-${m.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(Lt.f)(this._disposables)}update(e){let{source:t,message:n,relatedInformation:o,code:d}=e,m=((t==null?void 0:t.length)||0)+"()".length;d&&(m+=typeof d=="string"?d.length:d.value.length);let D=n.split(/\r\n|\r|\n/g);this._lines=D.length,this._longestLineLength=0;for(let Ct of D)this._longestLineLength=Math.max(Ct.length+m,this._longestLineLength);ae.s(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let oe=this._messageBlock;for(let Ct of D)oe=document.createElement("div"),oe.innerText=Ct,Ct===""&&(oe.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(oe);if(t||d){let Ct=document.createElement("span");if(ae.e(Ct,"details"),oe.appendChild(Ct),t){let Ut=document.createElement("span");Ut.innerText=t,ae.e(Ut,"source"),Ct.appendChild(Ut)}if(d)if(typeof d=="string"){let Ut=document.createElement("span");Ut.innerText=`(${d})`,ae.e(Ut,"code"),Ct.appendChild(Ut)}else this._codeLink=ae.a("a.code-link"),this._codeLink.setAttribute("href",""+d.target.toString()),this._codeLink.onclick=Ut=>{this._openerService.open(d.target),Ut.preventDefault(),Ut.stopPropagation()},ae.p(this._codeLink,ae.a("span")).innerText=d.value,Ct.appendChild(this._codeLink)}if(ae.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(ee.o)(o)){let Ct=this._relatedBlock.appendChild(document.createElement("div"));Ct.style.paddingTop=Math.floor(.66*this._editor.getOption(51))+"px",this._lines+=1;for(let Ut of o){let St=document.createElement("div"),di=document.createElement("a");ae.e(di,"filename"),di.innerText=`${Qt(Ut.resource)}(${Ut.startLineNumber}, ${Ut.startColumn}): `,di.title=It(Ut.resource,void 0),this._relatedDiagnostics.set(di,Ut);let hi=document.createElement("span");hi.innerText=Ut.message,St.appendChild(di),St.appendChild(hi),this._lines+=1,Ct.appendChild(St)}}let re=this._editor.getOption(36),ce=Math.ceil(re.typicalFullwidthCharacterWidth*this._longestLineLength*.75),Me=re.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:ce,scrollHeight:Me})}layout(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case ve.c.Error:t=G.a("Error","Error");break;case ve.c.Warning:t=G.a("Warning","Warning");break;case ve.c.Info:t=G.a("Info","Info");break;case ve.c.Hint:t=G.a("Hint","Hint")}let n=G.a("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),o=this._editor.getModel();return o&&e.startLineNumber<=o.getLineCount()&&e.startLineNumber>=1&&(n=`${o.getLineContent(e.startLineNumber)}, ${n}`),n}}let oc=class mm extends el{constructor(e,t,n,o,d,m){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0},d),this._themeService=t,this._openerService=n,this._menuService=o,this._contextKeyService=m,this._callOnDispose=new Lt.b,this._onDidSelectRelatedInformation=new ot.a,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=ve.c.Warning,this._backgroundColor=Kn.a.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Vm);let t=zm;this._severity===ve.c.Warning?t=Bm:this._severity===ve.c.Info&&(t=jm);let n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(jr),secondaryHeadingColor:e.getColor(Ll)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onDidBeforeRun(o=>this.editor.focus()));let t=[],n=this._menuService.createMenu(mm.TitleMenu,this._contextKeyService);ua(n,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=ae.p(e,ae.a(""))}_getActionBarOptions(){return Object.assign(Object.assign({},super._getActionBarOptions()),{orientation:0})}_fillBody(e){this._parentContainer=e,ae.e(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wm(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let o=gt.a.lift(e),d=this.editor.getPosition(),m=d&&o.containsPosition(d)?d:o.getStartPosition();super.show(m,this.computeRequiredHeight());let D=this.editor.getModel();if(D){let oe=n>1?G.a("problems","{0} of {1} problems",t,n):G.a("change","{0} of {1} problem",t,n);this.setTitle(Object(Be.b)(D.uri),oe)}this._icon.className="codicon "+ph.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionNearTop(m,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};oc.TitleMenu=new ze.b("gotoErrorTitleMenu"),oc=Fm([Rc(1,ut.c),Rc(2,ga.a),Rc(3,ze.a),Rc(4,X.a),Rc(5,A.b)],oc);let mh=Object(Ue.Ub)(Ue.u,Ue.t),gh=Object(Ue.Ub)(Ue.T,Ue.S),fh=Object(Ue.Ub)(Ue.L,Ue.K),zm=Object(Ue.gc)("editorMarkerNavigationError.background",{dark:mh,light:mh,hc:mh},G.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),Bm=Object(Ue.gc)("editorMarkerNavigationWarning.background",{dark:gh,light:gh,hc:gh},G.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),jm=Object(Ue.gc)("editorMarkerNavigationInfo.background",{dark:fh,light:fh,hc:fh},G.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Vm=Object(Ue.gc)("editorMarkerNavigation.background",{dark:"#2D2D30",light:Kn.a.white,hc:"#0C141F"},G.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(ut.g)((u,e)=>{let t=u.getColor(Ue.rc);t&&(e.addRule(`.monaco-editor .marker-widget a { color: ${t}; }`),e.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${t}; }`))});var Lu=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Nu=function(u,e){return function(t,n){e(t,n,u)}};class Iu{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let bh=class gm{constructor(e,t){this._markerService=t,this._onDidChange=new ot.a,this.onDidChange=this._onDidChange.event,this._dispoables=new Lt.b,this._markers=[],this._nextIdx=-1,On.a.isUri(e)?this._resourceFilter=o=>o.toString()===e.toString():e&&(this._resourceFilter=e);let n=()=>{this._markers=this._markerService.read({resource:On.a.isUri(e)?e:void 0,severities:ve.c.Error|ve.c.Warning|ve.c.Info}),typeof e=="function"&&(this._markers=this._markers.filter(o=>this._resourceFilter(o.resource))),this._markers.sort(gm._compareMarker)};n(),this._dispoables.add(t.onMarkerChanged(o=>{this._resourceFilter&&!o.some(d=>this._resourceFilter(d))||(n(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new Iu(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let o=!1,d=this._markers.findIndex(m=>m.resource.toString()===e.uri.toString());d<0&&(d=Object(ee.c)(this._markers,{resource:e.uri},(m,D)=>Object(rn.f)(m.resource.toString(),D.resource.toString())),d<0&&(d=~d));for(let m=d;m<this._markers.length;m++){let D=gt.a.lift(this._markers[m]);if(D.isEmpty()){let oe=e.getWordAtPosition(D.getStartPosition());oe&&(D=new gt.a(D.startLineNumber,oe.startColumn,D.startLineNumber,oe.endColumn))}if(t&&(D.containsPosition(t)||t.isBeforeOrEqual(D.getStartPosition()))){this._nextIdx=m,o=!0;break}if(this._markers[m].resource.toString()!==e.uri.toString())break}o||(this._nextIdx=n?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,n){if(this._markers.length===0)return!1;let o=this._nextIdx;return this._nextIdx===-1?this._initIdx(t,n,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),o!==this._nextIdx}find(e,t){let n=this._markers.findIndex(o=>o.resource.toString()===e.toString());if(!(n<0)){for(;n<this._markers.length;n++)if(gt.a.containsPosition(this._markers[n],t))return new Iu(this._markers[n],n+1,this._markers.length)}}static _compareMarker(e,t){let n=Object(rn.f)(e.resource.toString(),t.resource.toString());return n===0&&(n=ve.c.compare(e.severity,t.severity)),n===0&&(n=gt.a.compareRangesUsingStarts(e,t)),n}};bh=Lu([Nu(1,ve.b)],bh);let Du=Object(X.c)("IMarkerNavigationService"),_h=class{constructor(u){this._markerService=u,this._provider=new Sl.a}getMarkerList(u){for(let e of this._provider){let t=e.getMarkerList(u);if(t)return t}return new bh(u,this._markerService)}};_h=Lu([Nu(0,ve.b)],_h),Object(In.b)(Du,_h,!0);var Um=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},hd=function(u,e){return function(t,n){e(t,n,u)}},Ou=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let rl=class qd{constructor(e,t,n,o,d){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=o,this._instantiationService=d,this._sessionDispoables=new Lt.b,this._editor=e,this._widgetVisible=Au.bindTo(this._contextKeyService)}static get(e){return e.getContribution(qd.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(oc,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(n=>{var o,d,m;((o=this._model)===null||o===void 0?void 0:o.selected)&>.a.containsPosition((d=this._model)===null||d===void 0?void 0:d.selected.marker,n.position)||(m=this._model)===null||m===void 0||m.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let n=this._model.find(this._editor.getModel().uri,this._widget.position);n?this._widget.updateMarker(n.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(n=>{this._editorService.openCodeEditor({resource:n.resource,options:{pinned:!0,revealIfOpened:!0,selection:gt.a.lift(n).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Oi.a(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){return Ou(this,void 0,void 0,function*(){if(this._editor.hasModel()){let n=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(n.move(e,this._editor.getModel(),this._editor.getPosition()),!n.selected)return;if(n.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let o=yield this._editorService.openCodeEditor({resource:n.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:n.selected.marker}},this._editor);o&&(qd.get(o).close(),qd.get(o).nagivate(e,t))}else this._widget.showAtMarker(n.selected.marker,n.selected.index,n.selected.total)}})}};rl.ID="editor.contrib.markerController",rl=Um([hd(1,Du),hd(2,A.b),hd(3,Si.a),hd(4,X.a)],rl);class ud extends $.b{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){return Ou(this,void 0,void 0,function*(){t.hasModel()&&rl.get(t).nagivate(this._next,this._multiFile)})}}class za extends ud{constructor(){super(!0,!1,{id:za.ID,label:za.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:578,weight:100},menuOpts:{menuId:oc.TitleMenu,title:za.LABEL,icon:Object(de.e)("marker-navigation-next",de.a.chevronDown),group:"navigation",order:1}})}}za.ID="editor.action.marker.next",za.LABEL=G.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class sc extends ud{constructor(){super(!1,!1,{id:sc.ID,label:sc.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1602,weight:100},menuOpts:{menuId:oc.TitleMenu,title:za.LABEL,icon:Object(de.e)("marker-navigation-previous",de.a.chevronUp),group:"navigation",order:2}})}}sc.ID="editor.action.marker.prev",sc.LABEL=G.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),Object($.m)(rl.ID,rl),Object($.k)(za),Object($.k)(sc),Object($.k)(class extends ud{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:G.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:66,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,title:G.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),Object($.k)(class extends ud{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:G.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1090,weight:100},menuOpts:{menuId:ze.b.MenubarGoMenu,title:G.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});let Au=new A.c("markersNavigationVisible",!1),Hm=$.c.bindToContribution(rl.get);Object($.l)(new Hm({id:"closeMarkersNavigation",precondition:Au,handler:u=>u.close(),kbOpts:{weight:150,kbExpr:z.a.focus,primary:9,secondary:[1033]}}));class qm{constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new ot.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new ot.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new ot.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}r(313);let fa=ae.a;class $m extends Lt.a{constructor(e,t,n){super(),this.model=t,this.domNode=fa(".colorpicker-header"),ae.p(e,this.domNode),this.pickedColorNode=ae.p(this.domNode,fa(".picked-color"));let o=ae.p(this.domNode,fa(".original-color"));o.style.backgroundColor=Kn.a.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(Ue.E)||Kn.a.white,this._register(Object(ut.g)((d,m)=>{this.backgroundColor=d.getColor(Ue.E)||Kn.a.white})),this._register(ae.i(this.pickedColorNode,ae.c.CLICK,()=>this.model.selectNextColorPresentation())),this._register(ae.i(o,ae.c.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=Kn.a.Format.CSS.format(t.color)||"",ae.ab(this.pickedColorNode,"light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=Kn.a.Format.CSS.format(e)||"",ae.ab(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class Km extends Lt.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this.domNode=fa(".colorpicker-body"),ae.p(e,this.domNode),this.saturationBox=new Gm(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Ym(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Zm(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let n=this.model.color.hsva;this.model.color=new Kn.a(new Kn.b(n.h,e,t,n.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new Kn.a(new Kn.b(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,n=360*(1-e);this.model.color=new Kn.a(new Kn.b(n===360?0:n,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Gm extends Lt.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new ot.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ot.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=fa(".saturation-wrap"),ae.p(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",ae.p(this.domNode,this.canvas),this.selection=fa(".saturation-selection"),ae.p(this.domNode,this.selection),this.layout(),this._register(ae.g(this.domNode,o=>this.onMouseDown(o))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new tt.a);let t=ae.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,tt.b,o=>this.onDidChangePosition(o.posx-t.left,o.posy-t.top),()=>null);let n=ae.h(document,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let n=Math.max(0,Math.min(1,e/this.width)),o=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,o),this._onDidChange.fire({s:n,v:o})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new Kn.a(new Kn.b(e.h,1,1,1)),n=this.canvas.getContext("2d"),o=n.createLinearGradient(0,0,this.canvas.width,0);o.addColorStop(0,"rgba(255, 255, 255, 1)"),o.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),o.addColorStop(1,"rgba(255, 255, 255, 0)");let d=n.createLinearGradient(0,0,0,this.canvas.height);d.addColorStop(0,"rgba(0, 0, 0, 0)"),d.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=Kn.a.Format.CSS.format(t),n.fill(),n.fillStyle=o,n.fill(),n.fillStyle=d,n.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Ru extends Lt.a{constructor(e,t){super(),this.model=t,this._onDidChange=new ot.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ot.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=ae.p(e,fa(".strip")),this.overlay=ae.p(this.domNode,fa(".overlay")),this.slider=ae.p(this.domNode,fa(".slider")),this.slider.style.top="0px",this._register(ae.g(this.domNode,n=>this.onMouseDown(n))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){let t=this._register(new tt.a),n=ae.C(this.domNode);ae.e(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,tt.b,d=>this.onDidChangeTop(d.posy-n.top),()=>null);let o=ae.h(document,()=>{this._onColorFlushed.fire(),o.dispose(),t.stopMonitoring(!0),ae.Q(this.domNode,"grabbing")},!0)}onDidChangeTop(e){let t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class Ym extends Ru{constructor(e,t){super(e,t),ae.e(this.domNode,"opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){let{r:t,g:n,b:o}=e.rgba,d=new Kn.a(new Kn.c(t,n,o,1)),m=new Kn.a(new Kn.c(t,n,o,0));this.overlay.style.background=`linear-gradient(to bottom, ${d} 0%, ${m} 100%)`}getValue(e){return e.hsva.a}}class Zm extends Ru{constructor(e,t){super(e,t),ae.e(this.domNode,"hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Xm extends ro.a{constructor(e,t,n,o){super(),this.model=t,this.pixelRatio=n,this._register(Object(kt.n)(()=>this.layout()));let d=fa(".colorpicker-widget");e.appendChild(d);let m=new $m(d,this.model,o);this.body=new Km(d,this.model,this.pixelRatio),this._register(m),this._register(this.body)}layout(){this.body.layout()}}function Mu(u,e,t){let n=I.p.ordered(u).map(o=>Promise.resolve(o.provideHover(u,e,t)).then(d=>d&&function(m){let D=m.range!==void 0,oe=m.contents!==void 0&&m.contents&&m.contents.length>0;return D&&oe}(d)?d:void 0,d=>{Object(De.f)(d)}));return Promise.all(n).then(ee.d)}Object($.p)("_executeHoverProvider",(u,e)=>Mu(u,e,Dn.a.None));class Pu{constructor(e,t,n,o,d){this._computer=e,this._state=0,this._hoverTime=d,this._firstWaitScheduler=new Bi.d(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new Bi.d(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new Bi.d(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=o}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(Bi.f)(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):Object(De.e)(e)}_onProgress(e){this._progressCallback(e)}start(e){if(e===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}r(315);let pd=ae.a;class Qm extends Lt.a{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new cd.a(this.contentsDomNode,{})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class Jm extends ro.a{constructor(e,t,n,o){super(),this._hoverVisibleKey=n,this._keybindingService=o,this.allowEditorOverflow=!0,this._hover=this._register(new Qm),this._id=e,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this.onkeydown(this._hover.containerDomNode,d=>{d.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(36)&&this.updateFont()})),this._editor.onDidLayoutChange(d=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,ae.ab(this._hover.containerDomNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}showAt(e,t,n){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._hover.containerDomNode.focus()}hide(){this.isVisible&&(setTimeout(()=>{this.isVisible||this._hoverVisibleKey.set(!1)},0),this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())}getPosition(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}dispose(){this._editor.removeContentWidget(this),super.dispose()}updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_renderAction(e,t){let n=this._keybindingService.lookupKeybinding(t.commandId);return function(o,d,m){let D=ae.p(o,pd("div.action-container")),oe=ae.p(D,pd("a.action"));return oe.setAttribute("href","#"),oe.setAttribute("role","button"),d.iconClass&&ae.p(oe,pd("span.icon."+d.iconClass)),ae.p(oe,pd("span")).textContent=m?`${d.label} (${m})`:d.label,ae.i(D,ae.c.CLICK,re=>{re.stopPropagation(),re.preventDefault(),d.run(D)})}(e,t,n?n.getLabel():null)}layout(){let e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:n}=this._editor.getOption(36);this._hover.contentsDomNode.style.fontSize=t+"px",this._hover.contentsDomNode.style.lineHeight=n+"px",this._hover.contentsDomNode.style.maxHeight=e+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}}class eg extends ro.a{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(36)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,ae.ab(this._domNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);let t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),o=this._editor.getScrollTop(),d=this._editor.getOption(51),m=n-o-(this._domNode.clientHeight-d)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(m),0)+"px"}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){[...Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),...Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()}}var Fu=r(165),Wu=r(195);let zu;(function u(e,t,n){function o(D,oe){if(!t[D]){if(!e[D]){if(d)return d(D,!0);var re=new Error("Cannot find module '"+D+"'");throw re.code="MODULE_NOT_FOUND",re}var ce=t[D]={exports:{}};e[D][0].call(ce.exports,function(Me){return o(e[D][1][Me]||Me)},ce,ce.exports,u,e,t,n)}return t[D].exports}for(var d=!1,m=0;m<n.length;m++)o(n[m]);return o})({1:[function(u,e,t){var n=u("./toMap");e.exports={uris:n(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(u,e,t){e.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(u,e,t){var n=u("./toMap");e.exports={voids:n(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(u,e,t){u("he");var n=u("assignment"),o=u("./parser"),d=u("./sanitizer"),m=u("./defaults");function D(oe,re,ce){var Me=[],Ct=ce===!0?re:n({},m,re),Ut=d(Me,Ct);return o(oe,Ut),Me.join("")}D.defaults=m,e.exports=D,zu=D},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(u,e,t){e.exports=function(n){return typeof n=="string"?n.toLowerCase():n}},{}],6:[function(u,e,t){e.exports=function n(o){for(var d,m,D=Array.prototype.slice.call(arguments,1);D.length;)for(m in d=D.shift())d.hasOwnProperty(m)&&(Object.prototype.toString.call(o[m])==="[object Object]"?o[m]=n(o[m],d[m]):o[m]=d[m]);return o}},{}],7:[function(u,e,t){var n=u("he"),o=u("./lowercase"),d=(u("./attributes"),u("./elements")),m=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,D=/^<\s*\/\s*([\w:-]+)[^>]*>/,oe=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,re=/^</,ce=/^<\s*\//;e.exports=function(Me,Ct){for(var Ut,St=function(){var Ki=[];return Ki.lastItem=function(){return Ki[Ki.length-1]},Ki}(),di=Me;Me;)hi();function hi(){Ut=!0,function(){Me.substr(0,4)==="<!--"?(yn=Me.indexOf("-->"))>=0&&(Ct.comment&&Ct.comment(Me.substring(4,yn)),Me=Me.substring(yn+3),Ut=!1):ce.test(Me)?ji(D,dn):re.test(Me)&&ji(m,Ji);var yn;(function(){if(!!Ut){var hn,Qi=Me.indexOf("<");Qi>=0?(hn=Me.substring(0,Qi),Me=Me.substring(Qi)):(hn=Me,Me=""),Ct.chars&&Ct.chars(hn)}})()}();var Ki=Me===di;di=Me,Ki&&(Me="")}function ji(Ki,yn){var hn=Me.match(Ki);hn&&(Me=Me.substring(hn[0].length),hn[0].replace(Ki,yn),Ut=!1)}function Ji(Ki,yn,hn,Qi){var fn={},$n=o(yn),fr=d.voids[$n]||!!Qi;hn.replace(oe,function(zo,Zr,To,Qc,Jc){fn[Zr]=To===void 0&&Qc===void 0&&Jc===void 0?void 0:n.decode(To||Qc||Jc||"")}),fr||St.push($n),Ct.start&&Ct.start($n,fn,fr)}function dn(Ki,yn){var hn,Qi=0,fn=o(yn);if(fn)for(Qi=St.length-1;Qi>=0&&St[Qi]!==fn;Qi--);if(Qi>=0){for(hn=St.length-1;hn>=Qi;hn--)Ct.end&&Ct.end(St[hn]);St.length=Qi}}dn()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(u,e,t){var n=u("he"),o=u("./lowercase"),d=u("./attributes"),m=u("./elements");e.exports=function(D,oe){var re,ce=oe||{};return St(),{start:function(di,hi,ji){var Ji=o(di);if(re.ignoring||(ce.allowedTags||[]).indexOf(Ji)===-1||ce.filter&&!ce.filter({tag:Ji,attrs:hi}))return void Ct(Ji);Me("<"),Me(Ji),Object.keys(hi).forEach(function(dn){var Ki=hi[dn],yn=(ce.allowedClasses||{})[Ji]||[],hn=(ce.allowedAttributes||{})[Ji]||[];hn=hn.concat((ce.allowedAttributes||{})["*"]||[]);var Qi=o(dn);(Qi==="class"&&hn.indexOf(Qi)===-1?(Ki=Ki.split(" ").filter(function(fn){return yn&&yn.indexOf(fn)!==-1}).join(" ").trim()).length:hn.indexOf(Qi)!==-1&&(d.uris[Qi]!==!0||function(fn){var $n=fn[0];if($n==="#"||$n==="/")return!0;var fr=fn.indexOf(":");if(fr===-1)return!0;var zo=fn.indexOf("?");if(zo!==-1&&fr>zo)return!0;var Zr=fn.indexOf("#");return Zr!==-1&&fr>Zr?!0:ce.allowedSchemes.some(function(To){return fn.indexOf(To+":")===0})}(Ki)))&&(Me(" "),Me(dn),typeof Ki=="string"&&(Me('="'),Me(n.encode(Ki)),Me('"')))}),Me(ji?"/>":">")},end:function(di){var hi=o(di);(ce.allowedTags||[]).indexOf(hi)!==-1&&re.ignoring===!1?(Me("</"),Me(hi),Me(">")):Ut(hi)},chars:function(di){re.ignoring===!1&&Me(ce.transformText?ce.transformText(di):di)}};function Me(di){D.push(di)}function Ct(di){m.voids[di]||(re.ignoring===!1?re={ignoring:di,depth:1}:re.ignoring===di&&re.depth++)}function Ut(di){re.ignoring===di&&--re.depth<=0&&St()}function St(){re={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(u,e,t){var n={"&":"&","<":"<",">":">",'"':""","'":"'"},o={"&":"&","<":"<",">":">",""":'"',"'":"'"},d=/(&|<|>|"|')/g,m=/[&<>"']/g;function D(Me){return n[Me]}function oe(Me){return o[Me]}function re(Me){return Me==null?"":String(Me).replace(m,D)}function ce(Me){return Me==null?"":String(Me).replace(d,oe)}re.options=ce.options={},e.exports={encode:re,escape:re,decode:ce,unescape:ce,version:"1.0.0-browser"}},{}],10:[function(u,e,t){function n(o,d){return o[d]=!0,o}e.exports=function(o){return o.reduce(n,{})}},{}]},{},[4]);var tg=zu,ig=r(178),ng=r(69);function rg(u,e={},t={}){var n;let o=Object(Fu.a)(e),d=function(St){let di;try{di=Object(ig.a)(decodeURIComponent(St))}catch(hi){}return di?(di=Object(Ln.b)(di,hi=>u.uris&&u.uris[hi]?On.a.revive(u.uris[hi]):void 0),encodeURIComponent(JSON.stringify(di))):St},m=function(St,di){let hi=u.uris&&u.uris[St];if(!hi)return St;let ji=On.a.revive(hi);return On.a.parse(St).toString()===ji.toString()?St:di?ae.r(ji).toString(!0):(ji.query&&(ji=ji.with({query:d(ji.query)})),ji.toString())},D,oe=new Promise(St=>D=St),re=new Wu.Renderer;re.image=(St,di,hi)=>{let ji=[],Ji=[];if(St){({href:St,dimensions:ji}=function(dn){let Ki=[],yn=dn.split("|").map(Qi=>Qi.trim());dn=yn[0];let hn=yn[1];if(hn){let Qi=/height=(\d+)/.exec(hn),fn=/width=(\d+)/.exec(hn),$n=Qi?Qi[1]:"",fr=fn?fn[1]:"",zo=isFinite(parseInt(fr)),Zr=isFinite(parseInt($n));zo&&Ki.push(`width="${fr}"`),Zr&&Ki.push(`height="${$n}"`)}return{href:dn,dimensions:Ki}}(St)),St=m(St,!0);try{let dn=On.a.parse(St);e.baseUrl&&dn.scheme===M.b.file&&(St=Object(Be.k)(e.baseUrl,St).toString())}catch(dn){}Ji.push(`src="${St}"`)}return hi&&Ji.push(`alt="${hi}"`),di&&Ji.push(`title="${di}"`),ji.length&&(Ji=Ji.concat(ji)),"<img "+Ji.join(" ")+">"},re.link=(St,di,hi)=>(St===hi&&(hi=Nt(hi)),St=m(St,!1),e.baseUrl&&(/^\w[\w\d+.-]*:/.test(St)||(St=Object(Be.k)(e.baseUrl,St).toString())),di=Nt(di),!(St=Nt(St))||St.match(/^data:|javascript:/i)||St.match(/^command:/i)&&!u.isTrusted||St.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?hi:`<a href="#" data-href="${St=St.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${di||St}">${hi}</a>`),re.paragraph=St=>`<p>${u.supportThemeIcons?Object(de.f)(St):St}</p>`,e.codeBlockRenderer&&(re.code=(St,di)=>{let hi=e.codeBlockRenderer(di,St),ji=yr.b.nextId(),Ji=Promise.all([hi,oe]).then(dn=>{let Ki=dn[0],yn=o.querySelector(`div[data-code="${ji}"]`);yn&&(yn.innerHTML=Ki)}).catch(dn=>{});return e.codeBlockRenderCallback&&Ji.then(e.codeBlockRenderCallback),`<div class="code" data-code="${ji}">${Object(rn.u)(St)}</div>`});let ce=e.actionHandler;ce&&[ae.c.CLICK,ae.c.AUXCLICK].forEach(St=>{ce.disposeables.add(ae.i(o,St,di=>{let hi=new ng.a(di);if(!hi.leftButton&&!hi.middleButton)return;let ji=hi.target;if(ji.tagName==="A"||(ji=ji.parentElement,ji&&ji.tagName==="A"))try{let Ji=ji.dataset.href;Ji&&ce.callback(Ji,hi)}catch(Ji){Object(De.e)(Ji)}finally{hi.preventDefault()}}))}),t.sanitizer=St=>(u.isTrusted?St.match(/^(<span[^<]+>)|(<\/\s*span>)$/):void 0)?St:"",t.sanitize=!0,t.renderer=re;let Me=[M.b.http,M.b.https,M.b.mailto,M.b.data,M.b.file,M.b.vscodeRemote,M.b.vscodeRemoteResource];u.isTrusted&&Me.push(M.b.command);let Ct=(n=u.value)!==null&&n!==void 0?n:"";Ct.length>1e5&&(Ct=Ct.substr(0,1e5)+"\u2026");let Ut=Wu.parse(u.supportThemeIcons?Object(de.d)(Ct):Ct,t);return o.innerHTML=tg(Ut,{allowedSchemes:Me,allowedTags:["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter:function(St){return St.tag!=="span"||!u.isTrusted||Object.keys(St.attrs).length!==1||(St.attrs.style?!!St.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!!St.attrs.class&&!!St.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-animation-[a-z\-]+)?$/))}}),D(),o}var Bu=r(182),og=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ju=function(u,e){return function(t,n){e(t,n,u)}};let ac=class extends Lt.a{constructor(u,e,t=ga.b){super(),this._editor=u,this._modeService=e,this._openerService=t,this._onDidRenderCodeBlock=this._register(new ot.a),this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}getOptions(u){return{codeBlockRenderer:(e,t)=>{let n=null;if(e)n=this._modeService.getModeIdForLanguageName(e);else{let o=this._editor.getModel();o&&(n=o.getLanguageIdentifier().language)}return this._modeService.triggerMode(n||""),Promise.resolve(!0).then(o=>{let d=I.C.getPromise(n||"");return d?d.then(m=>Object(Bu.b)(t,m)):Object(Bu.b)(t,void 0)}).then(o=>`<span style="font-family: ${this._editor.getOption(36).fontFamily}">${o}</span>`)},codeBlockRenderCallback:()=>this._onDidRenderCodeBlock.fire(),actionHandler:{callback:e=>{this._openerService.open(e,{fromUserGesture:!0}).catch(De.e)},disposeables:u}}}render(u){let e=new Lt.b,t;return t=u?rg(u,this.getOptions(e)):document.createElement("span"),{element:t,dispose:()=>e.dispose()}}};ac=og([ju(1,nl.a),ju(2,Object(X.d)(ga.a))],ac);let Wo=ae.a;class lc{constructor(e,t,n){this.range=e,this.color=t,this.provider=n}}class cc{constructor(e,t){this.range=e,this.marker=t}}class sg{constructor(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}setRange(e){this._range=e,this._result=[]}clearResult(){this._result=[]}computeAsync(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);let t=this._editor.getModel();return I.p.has(t)?Mu(t,new Oi.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])}computeSync(){if(!this._editor.hasModel()||!this._range)return[];let e=this._editor.getModel(),t=this._range.startLineNumber;if(t>this._editor.getModel().getLineCount())return[];let n=$r.get(this._editor),o=e.getLineMaxColumn(t),d=this._editor.getLineDecorations(t),m=!1,D=this._range,oe=d.map(re=>{let ce=re.range.startLineNumber===t?re.range.startColumn:1,Me=re.range.endLineNumber===t?re.range.endColumn:o;if(ce>D.startColumn||D.endColumn>Me)return null;let Ct=new gt.a(D.startLineNumber,ce,D.startLineNumber,Me),Ut=this._markerDecorationsService.getMarker(e,re);if(Ut)return new cc(Ct,Ut);let St=n.getColorData(re.range.getStartPosition());if(!m&&St){m=!0;let{color:di,range:hi}=St.colorInfo;return new lc(hi,di,St.provider)}return pt(re.options.hoverMessage)?null:{contents:re.options.hoverMessage?Object(ee.b)(re.options.hoverMessage):[],range:Ct}});return Object(ee.d)(oe)}onResult(e,t){this._result=t?e.concat(this._result.sort((n,o)=>n instanceof lc?-1:o instanceof lc?1:0)):this._result.concat(e)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){return this._result.slice(0).concat([this._getLoadingMessage()])}_getLoadingMessage(){return{range:this._range,contents:[new $e().appendText(G.a("modesContentHover.loading","Loading..."))]}}}let Vu={type:2,filter:{include:_e.QuickFix}};class ol extends Jm{constructor(e,t,n,o,d,m,D=ga.b){super(ol.ID,e,t,o),this._themeService=d,this._modeService=m,this._openerService=D,this.renderDisposable=this._register(new Lt.d),this._messages=[],this._lastRange=null,this._computer=new sg(this._editor,n),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new Pu(this._computer,oe=>this._withResult(oe,!0),null,oe=>this._withResult(oe,!1),this._editor.getOption(46).delay),this._register(ae.n(this.getDomNode(),ae.c.FOCUS,()=>{this._colorPicker&&ae.e(this.getDomNode(),"colorpicker-hover")})),this._register(ae.n(this.getDomNode(),ae.c.BLUR,()=>{ae.Q(this.getDomNode(),"colorpicker-hover")})),this._register(e.onDidChangeConfiguration(oe=>{this._hoverOperation.setHoverTime(this._editor.getOption(46).delay)})),this._register(I.C.onDidChange(oe=>{this.isVisible&&this._lastRange&&this._messages.length>0&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastRange,this._messages))}))}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAt(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){let o=[];for(let d=0,m=this._messages.length;d<m;d++){let D=this._messages[d],oe=D.range;oe&&oe.startColumn<=e.startColumn&&oe.endColumn>=e.endColumn&&o.push(D)}if(o.length>0){if(function(d,m){if(!d&&m||d&&!m||d.length!==m.length)return!1;for(let re=0;re<d.length;re++){let ce=d[re],Me=m[re];if(ce instanceof cc&&Me instanceof cc)return ve.a.makeKey(ce.marker)===ve.a.makeKey(Me.marker);if(ce instanceof lc||Me instanceof lc||ce instanceof cc||Me instanceof cc||(D=ce.contents,oe=Me.contents,!(!D&&!oe||D&&oe&&(Array.isArray(D)&&Array.isArray(oe)?Object(ee.g)(D,oe,At):it(D)&&it(oe)&&At(D,oe)))))return!1}var D,oe;return!0}(o,this._messages))return;this._renderMessages(e,o)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}}hide(){this._lastRange=null,this._hoverOperation.cancel(),super.hide(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}_withResult(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()}_renderMessages(e,t){this.renderDisposable.dispose(),this._colorPicker=null;let n=1073741824,o=t[0].range?gt.a.lift(t[0].range):null,d=document.createDocumentFragment(),m=!0,D=!1,oe=new Lt.b,re=[];if(t.forEach(ce=>{if(ce.range)if(n=Math.min(n,ce.range.startColumn),o=o?gt.a.plusRange(o,ce.range):gt.a.lift(ce.range),ce instanceof lc){D=!0;let{red:Me,green:Ct,blue:Ut,alpha:St}=ce.color,di=new Kn.c(Math.round(255*Me),Math.round(255*Ct),Math.round(255*Ut),St),hi=new Kn.a(di);if(!this._editor.hasModel())return;let ji=this._editor.getModel(),Ji=new gt.a(ce.range.startLineNumber,ce.range.startColumn,ce.range.endLineNumber,ce.range.endColumn),dn={range:ce.range,color:ce.color},Ki=new qm(hi,[],0),yn=new Xm(d,Ki,this._editor.getOption(115),this._themeService);lo(ji,dn,ce.provider,Dn.a.None).then(hn=>{if(Ki.colorPresentations=hn||[],!this._editor.hasModel())return;let Qi=this._editor.getModel().getValueInRange(ce.range);Ki.guessColorPresentation(hi,Qi);let fn=()=>{let Zr,To;Ki.presentation.textEdit?(Zr=[Ki.presentation.textEdit],To=new gt.a(Ki.presentation.textEdit.range.startLineNumber,Ki.presentation.textEdit.range.startColumn,Ki.presentation.textEdit.range.endLineNumber,Ki.presentation.textEdit.range.endColumn),To=To.setEndPosition(To.endLineNumber,To.startColumn+Ki.presentation.textEdit.text.length)):(Zr=[{identifier:null,range:Ji,text:Ki.presentation.label,forceMoveMarkers:!1}],To=Ji.setEndPosition(Ji.endLineNumber,Ji.startColumn+Ki.presentation.label.length)),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",Zr),Ki.presentation.additionalTextEdits&&(Zr=[...Ki.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",Zr),this.hide()),this._editor.pushUndoStop(),Ji=To},$n=Zr=>lo(ji,{range:Ji,color:{red:Zr.rgba.r/255,green:Zr.rgba.g/255,blue:Zr.rgba.b/255,alpha:Zr.rgba.a}},ce.provider,Dn.a.None).then(To=>{Ki.colorPresentations=To||[]}),fr=Ki.onColorFlushed(Zr=>{$n(Zr).then(fn)}),zo=Ki.onDidChangeColor($n);this._colorPicker=yn,this.showAt(Ji.getStartPosition(),Ji,this._shouldFocus),this.updateContents(d),this._colorPicker.layout(),this.renderDisposable.value=Object(Lt.e)(fr,zo,yn,oe)})}else ce instanceof cc?(re.push(ce),m=!1):ce.contents.filter(Me=>!pt(Me)).forEach(Me=>{let Ct=Wo("div.hover-row.markdown-hover"),Ut=ae.p(Ct,Wo("div.hover-contents")),St=oe.add(new ac(this._editor,this._modeService,this._openerService));oe.add(St.onDidRenderCodeBlock(()=>{Ut.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));let di=oe.add(St.render(Me));Ut.appendChild(di.element),d.appendChild(Ct),m=!1})}),re.length){re.forEach(Me=>d.appendChild(this.renderMarkerHover(Me)));let ce=re.length===1?re[0]:re.sort((Me,Ct)=>ve.c.compare(Me.marker.severity,Ct.marker.severity))[0];d.appendChild(this.renderMarkerStatusbar(ce))}D||m||(this.showAt(new Oi.a(e.startLineNumber,n),o,this._shouldFocus),this.updateContents(d)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,o?[{range:o,options:ol._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}renderMarkerHover(e){let t=Wo("div.hover-row"),n=ae.p(t,Wo("div.marker.hover-contents")),{source:o,message:d,code:m,relatedInformation:D}=e.marker;this._editor.applyFontInfo(n);let oe=ae.p(n,Wo("span"));if(oe.style.whiteSpace="pre-wrap",oe.innerText=d,o||m)if(m&&typeof m!="string"){let re=Wo("span");o&&(ae.p(re,Wo("span")).innerText=o),this._codeLink=ae.p(re,Wo("a.code-link")),this._codeLink.setAttribute("href",m.target.toString()),this._codeLink.onclick=Me=>{this._openerService.open(m.target),Me.preventDefault(),Me.stopPropagation()},ae.p(this._codeLink,Wo("span")).innerText=m.value;let ce=ae.p(n,re);ce.style.opacity="0.6",ce.style.paddingLeft="6px"}else{let re=ae.p(n,Wo("span"));re.style.opacity="0.6",re.style.paddingLeft="6px",re.innerText=o&&m?`${o}(${m})`:o||`(${m})`}if(Object(ee.o)(D))for(let{message:re,resource:ce,startLineNumber:Me,startColumn:Ct}of D){let Ut=ae.p(n,Wo("div"));Ut.style.marginTop="8px";let St=ae.p(Ut,Wo("a"));St.innerText=`${Object(Be.b)(ce)}(${Me}, ${Ct}): `,St.style.cursor="pointer",St.onclick=hi=>{hi.stopPropagation(),hi.preventDefault(),this._openerService&&this._openerService.open(ce.with({fragment:`${Me},${Ct}`}),{fromUserGesture:!0}).catch(De.e)};let di=ae.p(Ut,Wo("span"));di.innerText=re,this._editor.applyFontInfo(di)}return t}renderMarkerStatusbar(e){let t=Wo("div.hover-row.status-bar"),n=new Lt.b,o=ae.p(t,Wo("div.actions"));if(e.marker.severity!==ve.c.Error&&e.marker.severity!==ve.c.Warning&&e.marker.severity!==ve.c.Info||n.add(this._renderAction(o,{label:G.a("peek problem","Peek Problem"),commandId:za.ID,run:()=>{this.hide(),rl.get(this._editor).showAtMarker(e.marker),this._editor.focus()}})),!this._editor.getOption(72)){let d=ae.p(o,Wo("div"));d.style.opacity="0",d.style.transition="opacity 0.2s",setTimeout(()=>d.style.opacity="1",200),d.textContent=G.a("checkingForQuickFixes","Checking for quick fixes..."),n.add(Object(Lt.h)(()=>d.remove()));let m=this.getCodeActions(e.marker);n.add(Object(Lt.h)(()=>m.cancel())),m.then(D=>{if(d.style.transition="",d.style.opacity="1",!D.validActions.length)return D.dispose(),void(d.textContent=G.a("noQuickFixes","No quick fixes available"));d.remove();let oe=!1;n.add(Object(Lt.h)(()=>{oe||D.dispose()})),n.add(this._renderAction(o,{label:G.a("quick fixes","Quick Fix..."),commandId:ei.Id,run:re=>{oe=!0;let ce=qi.get(this._editor),Me=ae.C(re);this.hide(),ce.showCodeActions(Vu,D,{x:Me.left+6,y:Me.top+Me.height+6})}}))})}return this.renderDisposable.value=n,t}getCodeActions(e){return Object(Bi.f)(t=>Ht(this._editor.getModel(),new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),Vu,rt.b.None,t))}}ol.ID="editor.contrib.modesContentHoverWidget",ol._DECORATION_OPTIONS=Rt.a.register({className:"hoverHighlight"}),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.rc);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${t}; }`)});class ag{constructor(e){this._editor=e,this._lineNumber=-1,this._result=[]}setLineNumber(e){this._lineNumber=e,this._result=[]}clearResult(){this._result=[]}computeSync(){let e=o=>({value:o}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(let o of t){if(!o.options.glyphMarginClassName)continue;let d=o.options.glyphMarginHoverMessage;d&&!pt(d)&&n.push(...Object(ee.b)(d).map(e))}return n}onResult(e,t){this._result=this._result.concat(e)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class Al extends eg{constructor(e,t,n=ga.b){super(Al.ID,e),this._renderDisposeables=this._register(new Lt.b),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new ac(this._editor,t,n)),this._computer=new ag(this._editor),this._hoverOperation=new Pu(this._computer,o=>this._withResult(o),void 0,o=>this._withResult(o),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();let n=document.createDocumentFragment();for(let o of t){let d=this._markdownRenderer.render(o.value);this._renderDisposeables.add(d),n.appendChild(Object(ae.a)("div.hover-row",void 0,d.element))}this.updateContents(n),this.showAt(e)}}Al.ID="editor.contrib.modesGlyphHoverWidget";var lg=r(192),cg=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},dc=function(u,e){return function(t,n){e(t,n,u)}};let Rl=class fm{constructor(e,t,n,o,d,m,D){this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=o,this._keybindingService=d,this._themeService=m,this._toUnhook=new Lt.b,this._contentWidget=new Lt.d,this._glyphWidget=new Lt.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(oe=>{oe.hasChanged(46)&&(this._hideWidgets(),this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=z.a.hoverVisible.bindTo(D)}get contentWidget(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value}get glyphWidget(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value}static get(e){return e.getContribution(fm.ID)}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(46);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(n=>this._onEditorMouseDown(n))),this._toUnhook.add(this._editor.onMouseUp(n=>this._onEditorMouseUp(n))),this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(n=>this._onEditorScrollChanged(n)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;let t=e.target.type;t!==9||e.target.detail!==ol.ID?t===12&&e.target.detail===Al.ID||(t!==12&&e.target.detail!==Al.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){let t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&t===9&&e.target.detail===ol.ID||this._isHoverSticky&&t===12&&e.target.detail===Al.ID)){if(t===7){let n=this._editor.getOption(36).typicalHalfwidthCharacterWidth/2,o=e.target.detail;o&&!o.isAfterLines&&typeof o.horizontalDistanceToText=="number"&&o.horizontalDistanceToText<n&&(t=6)}t===6?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):t===2?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())}_createHoverWidgets(){this._contentWidget.value=new ol(this._editor,this._hoverVisibleKey,this._markerDecorationsService,this._keybindingService,this._themeService,this._modeService,this._openerService),this._glyphWidget.value=new Al(this._editor,this._modeService,this._openerService)}showContentHover(e,t,n){this.contentWidget.startShowingAt(e,t,n)}dispose(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()}};Rl.ID="editor.contrib.hover",Rl=cg([dc(1,ga.a),dc(2,nl.a),dc(3,lg.a),dc(4,Ot.a),dc(5,ut.c),dc(6,A.b)],Rl);class dg extends $.b{constructor(){super({id:"editor.action.showHover",label:G.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;let n=Rl.get(t);if(!n)return;let o=t.getPosition(),d=new gt.a(o.lineNumber,o.column,o.lineNumber,o.column),m=t.getOption(2)===2;n.showContentHover(d,1,m)}}class hg extends $.b{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:G.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let n=Rl.get(t);if(!n)return;let o=t.getPosition();if(!o)return;let d=new gt.a(o.lineNumber,o.column,o.lineNumber,o.column),m=Ol.get(t).startFindDefinitionFromCursor(o);m?m.then(()=>{n.showContentHover(d,1,!0)}):n.showContentHover(d,1,!0)}}Object($.m)(Rl.ID,Rl),Object($.k)(dg),Object($.k)(hg),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.H);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${n}; }`);let o=u.getColor(Ue.F);o&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${o}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${o.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${o.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${o.transparent(.5)}; }`));let d=u.getColor(Ue.rc);d&&e.addRule(`.monaco-editor .monaco-hover a { color: ${d}; }`);let m=u.getColor(Ue.G);m&&e.addRule(`.monaco-editor .monaco-hover { color: ${m}; }`);let D=u.getColor(Ue.I);D&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${D}; }`);let oe=u.getColor(Ue.qc);oe&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${oe}; }`)});var hc=r(130);function Xo(u,e){let t=0;for(let n=0;n<u.length;n++)u.charAt(n)===" "?t+=e:t++;return t}function Mc(u,e,t){u=u<0?0:u;let n="";if(!t){let o=Math.floor(u/e);u%=e;for(let d=0;d<o;d++)n+=" "}for(let o=0;o<u;o++)n+=" ";return n}function Uu(u,e,t,n){if(u.getLineCount()===1&&u.getLineMaxColumn(1)===1)return[];let o=Ir.a.getIndentationRules(u.getLanguageIdentifier().id);if(!o)return[];for(t=Math.min(t,u.getLineCount());e<=t&&o.unIndentedLinePattern;){let di=u.getLineContent(e);if(!o.unIndentedLinePattern.test(di))break;e++}if(e>t-1)return[];let{tabSize:d,indentSize:m,insertSpaces:D}=u.getOptions(),oe=(di,hi)=>(hi=hi||1,hc.a.shiftIndent(di,di.length+hi,d,m,D)),re=(di,hi)=>(hi=hi||1,hc.a.unshiftIndent(di,di.length+hi,d,m,D)),ce,Me=[],Ct=u.getLineContent(e),Ut=Ct;if(n!=null){ce=n;let di=rn.z(Ct);Ut=ce+Ct.substring(di.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(Ut)&&(ce=re(ce),Ut=ce+Ct.substring(di.length)),Ct!==Ut&&Me.push(Cn.a.replace(new J.a(e,1,e,di.length+1),Rt.b.normalizeIndentation(ce,m,D)))}else ce=rn.z(Ct);let St=ce;o.increaseIndentPattern&&o.increaseIndentPattern.test(Ut)?(St=oe(St),ce=oe(ce)):o.indentNextLinePattern&&o.indentNextLinePattern.test(Ut)&&(St=oe(St));for(let di=++e;di<=t;di++){let hi=u.getLineContent(di),ji=rn.z(hi),Ji=St+hi.substring(ji.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(Ji)&&(St=re(St),ce=re(ce)),ji!==St&&Me.push(Cn.a.replace(new J.a(di,1,di,ji.length+1),Rt.b.normalizeIndentation(St,m,D))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(hi)||(o.increaseIndentPattern&&o.increaseIndentPattern.test(Ji)?(ce=oe(ce),St=ce):St=o.indentNextLinePattern&&o.indentNextLinePattern.test(Ji)?oe(St):ce)}return Me}class md extends $.b{constructor(){super({id:md.ID,label:G.a("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let o=n.getOptions(),d=t.getSelection();if(!d)return;let m=new gg(d,o.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}md.ID="editor.action.indentationToSpaces";class gd extends $.b{constructor(){super({id:gd.ID,label:G.a("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let o=n.getOptions(),d=t.getSelection();if(!d)return;let m=new fg(d,o.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}gd.ID="editor.action.indentationToTabs";class Hu extends $.b{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){let n=e.get(Ur.a),o=e.get(ne.a),d=t.getModel();if(!d)return;let m=o.getCreationOptions(d.getLanguageIdentifier().language,d.uri,d.isForSimpleWidget),D=[1,2,3,4,5,6,7,8].map(re=>({id:re.toString(),label:re.toString(),description:re===m.tabSize?G.a("configuredTabSize","Configured Tab Size"):void 0})),oe=Math.min(d.getOptions().tabSize-1,7);setTimeout(()=>{n.pick(D,{placeHolder:G.a({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:D[oe]}).then(re=>{re&&d&&!d.isDisposed()&&d.updateOptions({tabSize:parseInt(re.label,10),insertSpaces:this.insertSpaces})})},50)}}class fd extends Hu{constructor(){super(!1,{id:fd.ID,label:G.a("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}fd.ID="editor.action.indentUsingTabs";class bd extends Hu{constructor(){super(!0,{id:bd.ID,label:G.a("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}bd.ID="editor.action.indentUsingSpaces";class _d extends $.b{constructor(){super({id:_d.ID,label:G.a("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let n=e.get(ne.a),o=t.getModel();if(!o)return;let d=n.getCreationOptions(o.getLanguageIdentifier().language,o.uri,o.isForSimpleWidget);o.detectIndentation(d.insertSpaces,d.tabSize)}}_d.ID="editor.action.detectIndentation";class ug extends $.b{constructor(){super({id:"editor.action.reindentlines",label:G.a("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let o=Uu(n,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class pg extends $.b{constructor(){super({id:"editor.action.reindentselectedlines",label:G.a("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:z.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let o=t.getSelections();if(o===null)return;let d=[];for(let m of o){let D=m.startLineNumber,oe=m.endLineNumber;if(D!==oe&&m.endColumn===1&&oe--,D===1){if(D===oe)continue}else D--;let re=Uu(n,D,oe);d.push(...re)}d.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,d),t.pushUndoStop())}}class mg{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let n of e)n.range&&typeof n.text=="string"&&this._edits.push(n)}getEditOperations(e,t){for(let o of this._edits)t.addEditOperation(gt.a.lift(o.range),o.text);let n=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class vh{constructor(e){this.callOnDispose=new Lt.b,this.callOnModel=new Lt.b,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(8)<4||this.editor.getOption(40)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let n=this.editor.getModel();if(!n||!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;let o=this.editor.getOption(8),{tabSize:d,indentSize:m,insertSpaces:D}=n.getOptions();this.editor.pushUndoStop();let oe=[],re={shiftIndent:St=>hc.a.shiftIndent(St,St.length+1,d,m,D),unshiftIndent:St=>hc.a.unshiftIndent(St,St.length+1,d,m,D)},ce=e.startLineNumber;for(;ce<=e.endLineNumber&&this.shouldIgnoreLine(n,ce);)ce++;if(ce>e.endLineNumber)return;let Me=n.getLineContent(ce);if(!/\S/.test(Me.substring(0,e.startColumn-1))){let St=Ir.a.getGoodIndentForLine(o,n,n.getLanguageIdentifier().id,ce,re);if(St!==null){let di=rn.z(Me),hi=Xo(St,d);if(hi!==Xo(di,d)){let ji=Mc(hi,d,D);oe.push({range:new gt.a(ce,1,ce,di.length+1),text:ji}),Me=ji+Me.substr(di.length)}else{let ji=Ir.a.getIndentMetadata(n,ce);if(ji===0||ji===8)return}}}let Ct=ce;for(;ce<e.endLineNumber&&!/\S/.test(n.getLineContent(ce+1));)ce++;if(ce!==e.endLineNumber){let St={getLineTokens:hi=>n.getLineTokens(hi),getLanguageIdentifier:()=>n.getLanguageIdentifier(),getLanguageIdAtPosition:(hi,ji)=>n.getLanguageIdAtPosition(hi,ji),getLineContent:hi=>hi===Ct?Me:n.getLineContent(hi)},di=Ir.a.getGoodIndentForLine(o,St,n.getLanguageIdentifier().id,ce+1,re);if(di!==null){let hi=Xo(di,d),ji=Xo(rn.z(n.getLineContent(ce+1)),d);if(hi!==ji){let Ji=hi-ji;for(let dn=ce+1;dn<=e.endLineNumber;dn++){let Ki=n.getLineContent(dn),yn=rn.z(Ki),hn=Mc(Xo(yn,d)+Ji,d,D);hn!==yn&&oe.push({range:new gt.a(dn,1,dn,yn.length+1),text:hn})}}}}let Ut=new mg(oe,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",Ut),this.editor.pushUndoStop()}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(n===0)return!0;let o=e.getLineTokens(t);if(o.getCount()>0){let d=o.findTokenIndexAtOffset(n);if(d>=0&&o.getStandardTokenType(d)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function qu(u,e,t,n){if(u.getLineCount()===1&&u.getLineMaxColumn(1)===1)return;let o="";for(let m=0;m<t;m++)o+=" ";let d=new RegExp(o,"gi");for(let m=1,D=u.getLineCount();m<=D;m++){let oe=u.getLineFirstNonWhitespaceColumn(m);if(oe===0&&(oe=u.getLineMaxColumn(m)),oe===1)continue;let re=new gt.a(m,1,m,oe),ce=u.getValueInRange(re),Me=n?ce.replace(/\t/gi,o):ce.replace(d," ");e.addEditOperation(re,Me)}}vh.ID="editor.contrib.autoIndentOnPaste";class gg{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),qu(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class fg{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),qu(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object($.m)(vh.ID,vh),Object($.k)(md),Object($.k)(gd),Object($.k)(fd),Object($.k)(bd),Object($.k)(_d),Object($.k)(ug),Object($.k)(pg);class bg{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new J.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new J.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var _g=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},vg=function(u,e){return function(t,n){e(t,n,u)}};let sl=class tu{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(e){return e.getContribution(tu.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();let n=this.editor.getSelection(),o=this.editor.getModel();if(!o||!n)return;let d=n;if(d.startLineNumber!==d.endLineNumber)return;let m=new qt.a(this.editor,5),D=o.uri;return this.editorWorkerService.canNavigateValueSet(D)?(this.currentRequest=Object(Bi.f)(oe=>this.editorWorkerService.navigateValueSet(D,d,t)),this.currentRequest.then(oe=>{if(!oe||!oe.range||!oe.value||!m.validate(this.editor))return;let re=gt.a.lift(oe.range),ce=oe.range,Me=oe.value.length-(d.endColumn-d.startColumn);ce={startLineNumber:ce.startLineNumber,startColumn:ce.startColumn,endLineNumber:ce.endLineNumber,endColumn:ce.startColumn+oe.value.length},Me>1&&(d=new J.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn+Me-1));let Ct=new bg(re,d,oe.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,Ct),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:ce,options:tu.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(Bi.l)(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(De.e)}).catch(De.e)):Promise.resolve(void 0)}};sl.ID="editor.contrib.inPlaceReplaceController",sl.DECORATION=Rt.a.register({className:"valueSetReplacement"}),sl=_g([vg(1,Rs.a)],sl);class wg extends $.b{constructor(){super({id:"editor.action.inPlaceReplace.up",label:G.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3154,weight:100}})}run(e,t){let n=sl.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}class yg extends $.b{constructor(){super({id:"editor.action.inPlaceReplace.down",label:G.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3156,weight:100}})}run(e,t){let n=sl.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}Object($.m)(sl.ID,sl),Object($.k)(wg),Object($.k)(yg),Object(ut.g)((u,e)=>{let t=u.getColor(vt.d);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class Cg{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let n=function(o,d){d.sort((ce,Me)=>ce.lineNumber===Me.lineNumber?ce.column-Me.column:ce.lineNumber-Me.lineNumber);for(let ce=d.length-2;ce>=0;ce--)d[ce].lineNumber===d[ce+1].lineNumber&&d.splice(ce,1);let m=[],D=0,oe=0,re=d.length;for(let ce=1,Me=o.getLineCount();ce<=Me;ce++){let Ct=o.getLineContent(ce),Ut=Ct.length+1,St=0;if(oe<re&&d[oe].lineNumber===ce&&(St=d[oe].column,oe++,St===Ut)||Ct.length===0)continue;let di=rn.J(Ct),hi=0;if(di===-1)hi=1;else{if(di===Ct.length-1)continue;hi=di+2}hi=Math.max(St,hi),m[D++]=Cn.a.delete(new gt.a(ce,hi,ce,Ut))}return m}(e,this._cursors);for(let o=0,d=n.length;o<d;o++){let m=n[o];t.addEditOperation(m.range,m.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var wh=r(126);class $u{constructor(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let o=[];for(let m=n.startLineNumber;m<=n.endLineNumber;m++)o.push(e.getLineContent(m));let d=o.join(` `);d===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new gt.a(n.startLineNumber,1,n.startLineNumber,1),d+` `):t.addEditOperation(new gt.a(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),` -`+d),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let r=n.startLineNumber,d=n.startColumn,m=n.endLineNumber,O=n.endColumn;this._startLineNumberDelta!==0&&(r+=this._startLineNumberDelta,d=1),this._endLineNumberDelta!==0&&(m+=this._endLineNumberDelta,O=1),n=J.a.createWithDirection(r,d,m,O,this._selectionDirection)}return n}}var vd=o(75);class xg{constructor(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&this._selection.startLineNumber===1)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&r.endColumn===1&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));let{tabSize:d,indentSize:m,insertSpaces:O}=e.getOptions(),re=this.buildIndentConverter(d,m,O),oe={getLineTokens:ce=>e.getLineTokens(ce),getLanguageIdentifier:()=>e.getLanguageIdentifier(),getLanguageIdAtPosition:(ce,Me)=>e.getLanguageIdAtPosition(ce,Me),getLineContent:null};if(r.startLineNumber===r.endLineNumber&&e.getLineMaxColumn(r.startLineNumber)===1){let ce=r.startLineNumber,Me=this._isMovingDown?ce+1:ce-1;e.getLineMaxColumn(Me)===1?t.addEditOperation(new gt.a(1,1,1,1),null):(t.addEditOperation(new gt.a(ce,1,ce,1),e.getLineContent(Me)),t.addEditOperation(new gt.a(Me,1,Me,e.getLineMaxColumn(Me)),null)),r=new J.a(Me,1,Me,1)}else{let ce,Me;if(this._isMovingDown){ce=r.endLineNumber+1,Me=e.getLineContent(ce),t.addEditOperation(new gt.a(ce-1,e.getLineMaxColumn(ce-1),ce,e.getLineMaxColumn(ce)),null);let Ct=Me;if(this.shouldAutoIndent(e,r)){let Ut=this.matchEnterRule(e,re,d,ce,r.startLineNumber-1);if(Ut!==null)Ct=Mc(Ut+Xr(on.z(e.getLineContent(ce)),d),d,O)+this.trimLeft(Me);else{oe.getLineContent=hi=>hi===r.startLineNumber?e.getLineContent(ce):e.getLineContent(hi);let di=Oo.a.getGoodIndentForLine(this._autoIndent,oe,e.getLanguageIdAtPosition(ce,1),r.startLineNumber,re);if(di!==null){let hi=on.z(e.getLineContent(ce)),ji=Xr(di,d);ji!==Xr(hi,d)&&(Ct=Mc(ji,d,O)+this.trimLeft(Me))}}t.addEditOperation(new gt.a(r.startLineNumber,1,r.startLineNumber,1),Ct+` -`);let St=this.matchEnterRule(e,re,d,r.startLineNumber,r.startLineNumber,Ct);if(St!==null)St!==0&&this.getIndentEditsOfMovingBlock(e,t,r,d,O,St);else{oe.getLineContent=hi=>hi===r.startLineNumber?Ct:hi>=r.startLineNumber+1&&hi<=r.endLineNumber+1?e.getLineContent(hi-1):e.getLineContent(hi);let di=Oo.a.getGoodIndentForLine(this._autoIndent,oe,e.getLanguageIdAtPosition(ce,1),r.startLineNumber+1,re);if(di!==null){let hi=on.z(e.getLineContent(r.startLineNumber)),ji=Xr(di,d),Ji=Xr(hi,d);if(ji!==Ji){let dn=ji-Ji;this.getIndentEditsOfMovingBlock(e,t,r,d,O,dn)}}}}else t.addEditOperation(new gt.a(r.startLineNumber,1,r.startLineNumber,1),Ct+` -`)}else if(ce=r.startLineNumber-1,Me=e.getLineContent(ce),t.addEditOperation(new gt.a(ce,1,ce+1,1),null),t.addEditOperation(new gt.a(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),` -`+Me),this.shouldAutoIndent(e,r)){oe.getLineContent=Ut=>Ut===ce?e.getLineContent(r.startLineNumber):e.getLineContent(Ut);let Ct=this.matchEnterRule(e,re,d,r.startLineNumber,r.startLineNumber-2);if(Ct!==null)Ct!==0&&this.getIndentEditsOfMovingBlock(e,t,r,d,O,Ct);else{let Ut=Oo.a.getGoodIndentForLine(this._autoIndent,oe,e.getLanguageIdAtPosition(r.startLineNumber,1),ce,re);if(Ut!==null){let St=on.z(e.getLineContent(r.startLineNumber)),di=Xr(Ut,d),hi=Xr(St,d);if(di!==hi){let ji=di-hi;this.getIndentEditsOfMovingBlock(e,t,r,d,O,ji)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,n){return{shiftIndent:r=>hc.a.shiftIndent(r,r.length+1,e,t,n),unshiftIndent:r=>hc.a.unshiftIndent(r,r.length+1,e,t,n)}}matchEnterRule(e,t,n,r,d,m){let O=d;for(;O>=1;){let ce;if(ce=O===d&&m!==void 0?m:e.getLineContent(O),on.J(ce)>=0)break;O--}if(O<1||r>e.getLineCount())return null;let re=e.getLineMaxColumn(O),oe=Oo.a.getEnterAction(this._autoIndent,e,new gt.a(O,re,O,re));if(oe){let ce=oe.indentation;oe.indentAction===vd.a.None||oe.indentAction===vd.a.Indent?ce=oe.indentation+oe.appendText:oe.indentAction===vd.a.IndentOutdent?ce=oe.indentation:oe.indentAction===vd.a.Outdent&&(ce=t.unshiftIndent(oe.indentation)+oe.appendText);let Me=e.getLineContent(r);if(this.trimLeft(Me).indexOf(this.trimLeft(ce))>=0){let Ct=on.z(e.getLineContent(r)),Ut=on.z(ce),St=Oo.a.getIndentMetadata(e,r);return St!==null&&2&St&&(Ut=t.unshiftIndent(Ut)),Xr(Ut,n)-Xr(Ct,n)}}return null}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.isCheapToTokenize(t.startLineNumber))return!1;let n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&Oo.a.getIndentRulesSupport(n)!==null}getIndentEditsOfMovingBlock(e,t,n,r,d,m){for(let O=n.startLineNumber;O<=n.endLineNumber;O++){let re=e.getLineContent(O),oe=on.z(re),ce=Mc(Xr(oe,r)+m,r,d);ce!==oe&&(t.addEditOperation(new gt.a(O,1,O,oe.length+1),ce),O===n.endLineNumber&&n.endColumn<=oe.length+1&&ce===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n}}class al{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return al._COLLATOR||(al._COLLATOR=new Intl.Collator),al._COLLATOR}getEditOperations(e,t){let n=function(r,d,m){let O=Ku(r,d,m);return O?Cn.a.replace(new gt.a(O.startLineNumber,1,O.endLineNumber,r.getLineMaxColumn(O.endLineNumber)),O.after.join(` -`)):null}(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,n){if(e===null)return!1;let r=Ku(e,t,n);if(!r)return!1;for(let d=0,m=r.before.length;d<m;d++)if(r.before[d]!==r.after[d])return!0;return!1}}function Ku(u,e,t){let n=e.startLineNumber,r=e.endLineNumber;if(e.endColumn===1&&r--,n>=r)return null;let d=[];for(let O=n;O<=r;O++)d.push(u.getLineContent(O));let m=d.slice(0);return m.sort(al.getCollator().compare),t===!0&&(m=m.reverse()),{startLineNumber:n,endLineNumber:r,before:d,after:m}}al._COLLATOR=null;class Gu extends $.b{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let n=t.getSelections().map((m,O)=>({selection:m,index:O,ignore:!1}));n.sort((m,O)=>gt.a.compareRangesUsingStarts(m.selection,O.selection));let r=n[0];for(let m=1;m<n.length;m++){let O=n[m];r.selection.endLineNumber===O.selection.startLineNumber&&(r.index<O.index?O.ignore=!0:(r.ignore=!0,r=O))}let d=[];for(let m of n)m.ignore||d.push(new $u(m.selection,this.down));t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}}class Sg extends $.b{constructor(){super({id:"editor.action.duplicateSelection",label:G.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:z.a.writable,menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,n){if(!t.hasModel())return;let r=[],d=t.getSelections(),m=t.getModel();for(let O of d)if(O.isEmpty())r.push(new $u(O,!0));else{let re=new J.a(O.endLineNumber,O.endColumn,O.endLineNumber,O.endColumn);r.push(new $i.c(re,m.getValueInRange(O)))}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class Yu extends $.b{constructor(e,t){super(t),this.down=e}run(e,t){let n=[],r=t.getSelections()||[],d=t.getOption(8);for(let m of r)n.push(new xg(m,this.down,d));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class Zu extends $.b{constructor(e,t){super(t),this.descending=e}run(e,t){let n=t.getSelections()||[];for(let d of n)if(!al.canRun(t.getModel(),d,this.descending))return;let r=[];for(let d=0,m=n.length;d<m;d++)r[d]=new al(n[d],this.descending);t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class wd extends $.b{constructor(){super({id:wd.ID,label:G.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2102),weight:100}})}run(e,t,n){let r=[];n.reason==="auto-save"&&(r=(t.getSelections()||[]).map(O=>new Di.a(O.positionLineNumber,O.positionColumn)));let d=t.getSelection();if(d===null)return;let m=new Cg(d,r);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop()}}wd.ID="editor.action.trimTrailingWhitespace";class kg extends $.b{constructor(){super({id:"editor.action.deleteLines",label:G.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let n=this._getLinesToRemove(t),r=t.getModel();if(r.getLineCount()===1&&r.getLineMaxColumn(1)===1)return;let d=0,m=[],O=[];for(let re=0,oe=n.length;re<oe;re++){let ce=n[re],Me=ce.startLineNumber,Ct=ce.endLineNumber,Ut=1,St=r.getLineMaxColumn(Ct);Ct<r.getLineCount()?(Ct+=1,St=1):Me>1&&(Me-=1,Ut=r.getLineMaxColumn(Me)),m.push(Cn.a.replace(new J.a(Me,Ut,Ct,St),"")),O.push(new J.a(Me-d,ce.positionColumn,Me-d,ce.positionColumn)),d+=ce.endLineNumber-ce.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,m,O),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(d=>{let m=d.endLineNumber;return d.startLineNumber<d.endLineNumber&&d.endColumn===1&&(m-=1),{startLineNumber:d.startLineNumber,selectionStartColumn:d.selectionStartColumn,endLineNumber:m,positionColumn:d.positionColumn}});t.sort((d,m)=>d.startLineNumber===m.startLineNumber?d.endLineNumber-m.endLineNumber:d.startLineNumber-m.startLineNumber);let n=[],r=t[0];for(let d=1;d<t.length;d++)r.endLineNumber+1>=t[d].startLineNumber?r.endLineNumber=t[d].endLineNumber:(n.push(r),r=t[d]);return n.push(r),n}}class Eg extends $.b{constructor(){super({id:"editor.action.indentLines",label:G.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2137,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class Tg extends $.b{constructor(){super({id:"editor.action.outdentLines",label:G.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2135,weight:100}})}run(e,t){ht.a.Outdent.runEditorCommand(e,t,null)}}class Lg extends $.b{constructor(){super({id:"editor.action.insertLineBefore",label:G.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3075,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}}class Ng extends $.b{constructor(){super({id:"editor.action.insertLineAfter",label:G.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2051,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}}class Xu extends $.b{run(e,t){if(!t.hasModel())return;let n=t.getSelection(),r=this._getRangesToDelete(t),d=[];for(let re=0,oe=r.length-1;re<oe;re++){let ce=r[re],Me=r[re+1];gt.a.intersectRanges(ce,Me)===null?d.push(ce):r[re+1]=gt.a.plusRange(ce,Me)}d.push(r[r.length-1]);let m=this._getEndCursorState(n,d),O=d.map(re=>Cn.a.replace(re,""));t.pushUndoStop(),t.executeEdits(this.id,O,m),t.pushUndoStop()}}class Ig extends $.b{constructor(){super({id:"editor.action.joinLines",label:G.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getSelection();if(r===null)return;n.sort(gt.a.compareRangesUsingStarts);let d=[],m=n.reduce((Ct,Ut)=>Ct.isEmpty()?Ct.endLineNumber===Ut.startLineNumber?(r.equalsSelection(Ct)&&(r=Ut),Ut):Ut.startLineNumber>Ct.endLineNumber+1?(d.push(Ct),Ut):new J.a(Ct.startLineNumber,Ct.startColumn,Ut.endLineNumber,Ut.endColumn):Ut.startLineNumber>Ct.endLineNumber?(d.push(Ct),Ut):new J.a(Ct.startLineNumber,Ct.startColumn,Ut.endLineNumber,Ut.endColumn));d.push(m);let O=t.getModel();if(O===null)return;let re=[],oe=[],ce=r,Me=0;for(let Ct=0,Ut=d.length;Ct<Ut;Ct++){let St,di,hi=d[Ct],ji=hi.startLineNumber,Ji=1,dn=0,Ki=O.getLineContent(hi.endLineNumber).length-hi.endColumn;if(hi.isEmpty()||hi.startLineNumber===hi.endLineNumber){let Qi=hi.getStartPosition();Qi.lineNumber<O.getLineCount()?(St=ji+1,di=O.getLineMaxColumn(St)):(St=Qi.lineNumber,di=O.getLineMaxColumn(Qi.lineNumber))}else St=hi.endLineNumber,di=O.getLineMaxColumn(St);let yn=O.getLineContent(ji);for(let Qi=ji+1;Qi<=St;Qi++){let fn=O.getLineContent(Qi),$n=O.getLineFirstNonWhitespaceColumn(Qi);if($n>=1){let bo=!0;yn===""&&(bo=!1),!bo||yn.charAt(yn.length-1)!==" "&&yn.charAt(yn.length-1)!==" "||(bo=!1,yn=yn.replace(/[\s\uFEFF\xA0]+$/g," "));let zr=fn.substr($n-1);yn+=(bo?" ":"")+zr,dn=bo?zr.length+1:zr.length}else dn=0}let hn=new gt.a(ji,Ji,St,di);if(!hn.isEmpty()){let Qi;hi.isEmpty()?(re.push(Cn.a.replace(hn,yn)),Qi=new J.a(hn.startLineNumber-Me,yn.length-dn+1,ji-Me,yn.length-dn+1)):hi.startLineNumber===hi.endLineNumber?(re.push(Cn.a.replace(hn,yn)),Qi=new J.a(hi.startLineNumber-Me,hi.startColumn,hi.endLineNumber-Me,hi.endColumn)):(re.push(Cn.a.replace(hn,yn)),Qi=new J.a(hi.startLineNumber-Me,hi.startColumn,hi.startLineNumber-Me,yn.length-Ki)),gt.a.intersectRanges(hn,r)!==null?ce=Qi:oe.push(Qi)}Me+=hn.endLineNumber-hn.startLineNumber}oe.unshift(ce),t.pushUndoStop(),t.executeEdits(this.id,re,oe),t.pushUndoStop()}}class Og extends $.b{constructor(){super({id:"editor.action.transpose",label:G.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:z.a.writable})}run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getModel();if(r===null)return;let d=[];for(let m=0,O=n.length;m<O;m++){let re=n[m];if(!re.isEmpty())continue;let oe=re.getStartPosition(),ce=r.getLineMaxColumn(oe.lineNumber);if(oe.column>=ce){if(oe.lineNumber===r.getLineCount())continue;let Me=new gt.a(oe.lineNumber,Math.max(1,oe.column-1),oe.lineNumber+1,1),Ct=r.getValueInRange(Me).split("").reverse().join("");d.push(new $i.a(new J.a(oe.lineNumber,Math.max(1,oe.column-1),oe.lineNumber+1,1),Ct))}else{let Me=new gt.a(oe.lineNumber,Math.max(1,oe.column-1),oe.lineNumber,oe.column+1),Ct=r.getValueInRange(Me).split("").reverse().join("");d.push(new $i.b(Me,Ct,new J.a(oe.lineNumber,oe.column+1,oe.lineNumber,oe.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}}class yh extends $.b{run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getModel();if(r===null)return;let d=t.getOption(105),m=[];for(let O=0,re=n.length;O<re;O++){let oe=n[O];if(oe.isEmpty()){let ce=oe.getStartPosition(),Me=t.getConfiguredWordAtPosition(ce);if(!Me)continue;let Ct=new gt.a(ce.lineNumber,Me.startColumn,ce.lineNumber,Me.endColumn),Ut=r.getValueInRange(Ct);m.push(new $i.b(Ct,this._modifyText(Ut,d),new J.a(ce.lineNumber,ce.column,ce.lineNumber,ce.column)))}else{let ce=r.getValueInRange(oe);m.push(new $i.b(oe,this._modifyText(ce,d),oe))}}t.pushUndoStop(),t.executeCommands(this.id,m),t.pushUndoStop()}}Object($.k)(class extends Gu{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:G.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Object($.k)(class extends Gu{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:G.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Object($.k)(Sg),Object($.k)(class extends Yu{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:G.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Object($.k)(class extends Yu{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:G.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Object($.k)(class extends Zu{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:G.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:z.a.writable})}}),Object($.k)(class extends Zu{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:G.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:z.a.writable})}}),Object($.k)(wd),Object($.k)(kg),Object($.k)(Eg),Object($.k)(Tg),Object($.k)(Lg),Object($.k)(Ng),Object($.k)(class extends Xu{constructor(){super({id:"deleteAllLeft",label:G.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(u,e){let t=null,n=[],r=0;return e.forEach(d=>{let m;if(d.endColumn===1&&r>0){let O=d.startLineNumber-r;m=new J.a(O,d.startColumn,O,d.startColumn)}else m=new J.a(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn);r+=d.endLineNumber-d.startLineNumber,d.intersectRanges(u)?t=m:n.push(m)}),t&&n.unshift(t),n}_getRangesToDelete(u){let e=u.getSelections();if(e===null)return[];let t=e,n=u.getModel();return n===null?[]:(t.sort(gt.a.compareRangesUsingStarts),t=t.map(r=>{if(r.isEmpty()){if(r.startColumn===1){let d=Math.max(1,r.startLineNumber-1),m=r.startLineNumber===1?1:n.getLineContent(d).length+1;return new gt.a(d,m,r.startLineNumber,1)}return new gt.a(r.startLineNumber,1,r.startLineNumber,r.startColumn)}return new gt.a(r.startLineNumber,1,r.endLineNumber,r.endColumn)}),t)}}),Object($.k)(class extends Xu{constructor(){super({id:"deleteAllRight",label:G.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(u,e){let t=null,n=[];for(let r=0,d=e.length,m=0;r<d;r++){let O=e[r],re=new J.a(O.startLineNumber-m,O.startColumn,O.startLineNumber-m,O.startColumn);O.intersectRanges(u)?t=re:n.push(re)}return t&&n.unshift(t),n}_getRangesToDelete(u){let e=u.getModel();if(e===null)return[];let t=u.getSelections();if(t===null)return[];let n=t.map(r=>{if(r.isEmpty()){let d=e.getLineMaxColumn(r.startLineNumber);return r.startColumn===d?new gt.a(r.startLineNumber,r.startColumn,r.startLineNumber+1,1):new gt.a(r.startLineNumber,r.startColumn,r.startLineNumber,d)}return r});return n.sort(gt.a.compareRangesUsingStarts),n}}),Object($.k)(Ig),Object($.k)(Og),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToUppercase",label:G.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:z.a.writable})}_modifyText(u,e){return u.toLocaleUpperCase()}}),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToLowercase",label:G.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:z.a.writable})}_modifyText(u,e){return u.toLocaleLowerCase()}}),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToTitlecase",label:G.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:z.a.writable})}_modifyText(u,e){let t=(`\r - `+e).split(""),n="",r=!0;for(let d=0;d<u.length;d++){let m=u[d];t.indexOf(m)>=0?(r=!0,n+=m):r?(r=!1,n+=m.toLocaleUpperCase()):n+=m.toLocaleLowerCase()}return n}}),o(317);var Qu=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class Dg{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return Qu(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}}class yd extends Lt.a{constructor(e){super();let t=[];for(let[n,r]of e){let d=n.links.map(m=>new Dg(m,r));t=yd._union(t,d),Object(Lt.g)(n)&&this._register(n)}this.links=t}static _union(e,t){let n,r,d,m,O=[];for(n=0,d=0,r=e.length,m=t.length;n<r&&d<m;){let re=e[n],oe=t[d];if(gt.a.areIntersectingOrTouching(re.range,oe.range)){n++;continue}gt.a.compareRangesUsingStarts(re.range,oe.range)<0?(O.push(re),n++):(O.push(oe),d++)}for(;n<r;n++)O.push(e[n]);for(;d<m;d++)O.push(t[d]);return O}}function Ju(u,e){let t=[],n=I.s.ordered(u).reverse().map((r,d)=>Promise.resolve(r.provideLinks(u,e)).then(m=>{m&&(t[d]=[m,r])},Oe.f));return Promise.all(n).then(()=>{let r=new yd(Object(ee.d)(t));return e.isCancellationRequested?(r.dispose(),new yd([])):r})}Ee.a.registerCommand("_executeLinkProvider",(u,...e)=>Qu(void 0,void 0,void 0,function*(){let[t]=e;if(!(t instanceof Dn.a))return[];let n=u.get(ne.a).getModel(t);if(!n)return[];let r=yield Ju(n,On.a.None);if(!r)return[];let d=r.links.slice(0);return r.dispose(),d}));var Ag=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ep=function(u,e){return function(t,n){e(t,n,u)}},Rg=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let tp={general:Rt.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:Rt.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class uc{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:uc._getOptions(e,t,!1)}}static _getOptions(e,t,n){let r=Object.assign({},n?tp.active:tp.general);return r.hoverMessage=function(d,m){let O=d.url&&/^command:/i.test(d.url.toString()),re=d.tooltip?d.tooltip:O?G.a("links.navigate.executeCmd","Execute command"):G.a("links.navigate.follow","Follow link"),oe=m?Et.f?G.a("links.navigate.kb.meta.mac","cmd + click"):G.a("links.navigate.kb.meta","ctrl + click"):Et.f?G.a("links.navigate.kb.alt.mac","option + click"):G.a("links.navigate.kb.alt","alt + click");return d.url?new $e("",!0).appendMarkdown(`[${re}](${d.url.toString()}) (${oe})`):new $e().appendText(`${re} (${oe})`)}(e,t),r}activate(e,t){e.changeDecorationOptions(this.decorationId,uc._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,uc._getOptions(this.link,t,!1))}}let Ml=class iu{constructor(e,t,n){this.listenersToRemove=new Lt.b,this.editor=e,this.openerService=t,this.notificationService=n;let r=new Eu(e);this.listenersToRemove.add(r),this.listenersToRemove.add(r.onMouseMoveOrRelevantKeyDown(([d,m])=>{this._onEditorMouseMove(d,m)})),this.listenersToRemove.add(r.onExecute(d=>{this.onEditorMouseUp(d)})),this.listenersToRemove.add(r.onCancel(d=>{this.cleanUpActiveLinkDecoration()})),this.enabled=e.getOption(54),this.listenersToRemove.add(e.onDidChangeConfiguration(d=>{let m=e.getOption(54);this.enabled!==m&&(this.enabled=m,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(d=>this.onChange())),this.listenersToRemove.add(e.onDidChangeModel(d=>this.onModelChanged())),this.listenersToRemove.add(e.onDidChangeModelLanguage(d=>this.onModelModeChanged())),this.listenersToRemove.add(I.s.onDidChange(d=>this.onModelModeChanged())),this.timeout=new Bi.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(e){return e.getContribution(iu.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),iu.RECOMPUTE_TIME)}beginCompute(){return Rg(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.enabled)return;let e=this.editor.getModel();if(I.s.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Bi.f(t=>Ju(e,t));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(t){Object(Oe.e)(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(61)==="altKey",n=[],r=Object.keys(this.currentOccurrences);for(let O=0,re=r.length;O<re;O++){let oe=r[O],ce=this.currentOccurrences[oe];n.push(ce.decorationId)}let d=[];if(e)for(let O of e)d.push(uc.decoration(O,t));let m=this.editor.deltaDecorations(n,d);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let O=0,re=m.length;O<re;O++){let oe=new uc(e[O],m[O]);this.currentOccurrences[oe.decorationId]=oe}}_onEditorMouseMove(e,t){let n=this.editor.getOption(61)==="altKey";if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();let r=this.getLinkOccurrence(e.target.position);r&&this.editor.changeDecorations(d=>{r.activate(d,n),this.activeLinkDecorationId=r.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(61)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(n=>{t.deactivate(n,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,n=!1){if(!this.openerService)return;let{link:r}=e;r.resolve(On.a.None).then(d=>{if(typeof d=="string"&&this.editor.hasModel()){let m=this.editor.getModel().uri;if(m.scheme===M.b.file&&on.S(d,"file:")){let O=Dn.a.parse(d);if(O.scheme===M.b.file){let re=Be.i(O),oe=null;on.S(re,"/./")?oe="."+re.substr(1):on.S(re,"//./")&&(oe="."+re.substr(2)),oe&&(d=Be.g(m,oe))}}}return this.openerService.open(d,{openToSide:t,fromUserGesture:n})},d=>{let m=d instanceof Error?d.message:d;m==="invalid"?this.notificationService.warn(G.a("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):m==="missing"?this.notificationService.warn(G.a("missing.url","Failed to open this link because its target is missing.")):Object(Oe.e)(d)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let n of t){let r=this.currentOccurrences[n.id];if(r)return r}return null}isEnabled(e,t){return Boolean(e.target.type===6&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};Ml.ID="editor.linkDetector",Ml.RECOMPUTE_TIME=1e3,Ml=Ag([ep(1,ga.a),ep(2,Re.a)],Ml);class Mg extends $.b{constructor(){super({id:"editor.action.openLink",label:G.a("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let n=Ml.get(t);if(!n||!t.hasModel())return;let r=t.getSelections();for(let d of r){let m=n.getLinkOccurrence(d.getEndPosition());m&&n.openLinkOccurrence(m,!1)}}}Object($.m)(Ml.ID,Ml),Object($.k)(Mg),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.r);t&&e.addRule(`.monaco-editor .detected-link-active { color: ${t} !important; }`)});var ip=o(85);class Pg extends $.b{constructor(){super({id:"editor.action.insertCursorAbove",label:G.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,n){if(!t.hasModel())return;let r=n&&n.logicalLine===!0,d=t._getViewModel();d.cursorConfig.readOnly||(d.pushStackElement(),d.setCursorStates(n.source,3,ip.b.addCursorUp(d,d.getCursorStates(),r)),d.revealTopMostCursor(n.source))}}class Fg extends $.b{constructor(){super({id:"editor.action.insertCursorBelow",label:G.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,n){if(!t.hasModel())return;let r=n&&n.logicalLine===!0,d=t._getViewModel();d.cursorConfig.readOnly||(d.pushStackElement(),d.setCursorStates(n.source,3,ip.b.addCursorDown(d,d.getCursorStates(),r)),d.revealBottomMostCursor(n.source))}}class Wg extends $.b{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:G.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,n){if(!e.isEmpty()){for(let r=e.startLineNumber;r<e.endLineNumber;r++){let d=t.getLineMaxColumn(r);n.push(new J.a(r,d,r,d))}e.endColumn>1&&n.push(new J.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=t.getSelections(),d=[];r.forEach(m=>this.getCursorsForSelection(m,n,d)),d.length>0&&t.setSelections(d)}}class zg extends $.b{constructor(){super({id:"editor.action.addCursorsToBottom",label:G.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),r=t.getModel().getLineCount(),d=[];for(let m=n[0].startLineNumber;m<=r;m++)d.push(new J.a(m,n[0].startColumn,m,n[0].endColumn));d.length>0&&t.setSelections(d)}}class Bg extends $.b{constructor(){super({id:"editor.action.addCursorsToTop",label:G.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),r=[];for(let d=n[0].startLineNumber;d>=1;d--)r.push(new J.a(d,n[0].startColumn,d,n[0].endColumn));r.length>0&&t.setSelections(r)}}class Cd{constructor(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}}class Pc{constructor(e,t,n,r,d,m,O){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=r,this.wholeWord=d,this.matchCase=m,this.currentMatch=O}static create(e,t){if(!e.hasModel())return null;let n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new Pc(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let r,d,m=!1,O=e.getSelections();O.length===1&&O[0].isEmpty()?(m=!0,r=!0,d=!0):(r=n.wholeWord,d=n.matchCase);let re=e.getSelection(),oe,ce=null;if(re.isEmpty()){let Me=e.getConfiguredWordAtPosition(re.getStartPosition());if(!Me)return null;oe=Me.word,ce=new J.a(re.startLineNumber,Me.startColumn,re.startLineNumber,Me.endColumn)}else oe=e.getModel().getValueInRange(re).replace(/\r\n/g,` -`);return new Pc(e,t,m,oe,r,d,ce)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let r=this.currentMatch;return this.currentMatch=null,r}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new J.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let r=this.currentMatch;return this.currentMatch=null,r}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new J.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1,1073741824)):[]}}class Pl extends Lt.a{constructor(e){super(),this._sessionDispose=this._register(new Lt.b),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(Pl.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=Pc.create(this._editor,e);if(!t)return;this._session=t;let n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(r=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(r=>{(r.matchCase||r.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){let e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new J.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!op(this._editor.getModel(),t,n)){let r=this._editor.getModel(),d=[];for(let m=0,O=t.length;m<O;m++)d[m]=this._expandEmptyToWord(r,t[m]);return void this._editor.setSelections(d)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(105):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){let r=n.searchScope,d=[];t.forEach(m=>{r.forEach(O=>{m.range.endLineNumber<=O.endLineNumber&&m.range.startLineNumber>=O.startLineNumber&&d.push(m)})}),t=d}if(t.length>0){let r=this._editor.getSelection();for(let d=0,m=t.length;d<m;d++){let O=t[d];if(O.range.intersectRanges(r)){t[d]=t[0],t[0]=O;break}}this._setSelections(t.map(d=>new J.a(d.range.startLineNumber,d.range.startColumn,d.range.endLineNumber,d.range.endColumn)))}}}Pl.ID="editor.contrib.multiCursorController";class pc extends $.b{run(e,t){let n=Pl.get(t);if(!n)return;let r=ur.get(t);r&&this._run(n,r)}}class np{constructor(e,t,n,r){this.searchText=e,this.matchCase=t,this.wordSeparators=n,this.modelVersionId=r}static softEquals(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators&&e.modelVersionId===t.modelVersionId}}class Ba extends Lt.a{constructor(e){super(),this.editor=e,this._isEnabled=e.getOption(89),this.decorations=[],this.updateSoon=this._register(new Bi.d(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(89)})),this._register(e.onDidChangeCursorSelection(t=>{this._isEnabled&&(t.selection.isEmpty()?t.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(t=>{this._setState(null)})),this._register(e.onDidChangeModelContent(t=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(ur.get(e).getState().onFindReplaceStateChange(t=>{this._update()}))}_update(){this._setState(Ba._createState(this._isEnabled,this.editor))}static _createState(e,t){if(!e||!t.hasModel())return null;let n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let r=Pl.get(t);if(!r)return null;let d=ur.get(t);if(!d)return null;let m=r.getSession(d);if(!m){let oe=t.getSelections();if(oe.length>1){let ce=d.getState().matchCase;if(!op(t.getModel(),oe,ce))return null}m=Pc.create(t,d)}if(!m||m.currentMatch||/^[ \t]+$/.test(m.searchText)||m.searchText.length>200)return null;let O=d.getState(),re=O.matchCase;if(O.isRevealed){let oe=O.searchString;re||(oe=oe.toLowerCase());let ce=m.searchText;if(re||(ce=ce.toLowerCase()),oe===ce&&m.matchCase===O.matchCase&&m.wholeWord===O.wholeWord&&!O.isRegex)return null}return new np(m.searchText,m.matchCase,m.wholeWord?t.getOption(105):null,t.getModel().getVersionId())}_setState(e){if(np.softEquals(this.state,e))return void(this.state=e);if(this.state=e,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let n=I.i.has(t)&&this.editor.getOption(63),r=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(re=>re.range);r.sort(gt.a.compareRangesUsingStarts);let d=this.editor.getSelections();d.sort(gt.a.compareRangesUsingStarts);let m=[];for(let re=0,oe=0,ce=r.length,Me=d.length;re<ce;){let Ct=r[re];if(oe>=Me)m.push(Ct),re++;else{let Ut=gt.a.compareRangesUsingStarts(Ct,d[oe]);Ut<0?(!d[oe].isEmpty()&>.a.areIntersecting(Ct,d[oe])||m.push(Ct),re++):(Ut>0||re++,oe++)}}let O=m.map(re=>({range:re,options:n?Ba._SELECTION_HIGHLIGHT:Ba._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,O)}dispose(){this._setState(null),super.dispose()}}function op(u,e,t){let n=rp(u,e[0],!t);for(let r=1,d=e.length;r<d;r++){let m=e[r];if(m.isEmpty()||n!==rp(u,m,!t))return!1}return!0}function rp(u,e,t){let n=u.getValueInRange(e);return t?n.toLowerCase():n}Ba.ID="editor.contrib.selectionHighlighter",Ba._SELECTION_HIGHLIGHT_OVERVIEW=Rt.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(ut.h)(Ue.Wb),position:vi.d.Center}}),Ba._SELECTION_HIGHLIGHT=Rt.a.register({stickiness:1,className:"selectionHighlight"}),Object($.m)(Pl.ID,Pl),Object($.m)(Ba.ID,Ba),Object($.k)(Pg),Object($.k)(Fg),Object($.k)(Wg),Object($.k)(class extends pc{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:G.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2082,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(u,e){u.addSelectionToNextFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:G.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(u,e){u.addSelectionToPreviousFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:G.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:Object(Se.a)(2089,2082),weight:100}})}_run(u,e){u.moveSelectionToNextFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:G.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(u,e){u.moveSelectionToPreviousFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.selectHighlights",label:G.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:3114,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(u,e){u.selectAll(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.changeAll",label:G.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:A.a.and(z.a.writable,z.a.editorTextFocus),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(u,e){u.selectAll(e)}}),Object($.k)(zg),Object($.k)(Bg),o(319);var jg=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Fl={Visible:new A.c("parameterHintsVisible",!1),MultipleSignatures:new A.c("parameterHintsMultipleSignatures",!1)};function sp(u,e,t,n){let r=I.y.ordered(u);return Object(Bi.h)(r.map(d=>()=>Promise.resolve(d.provideSignatureHelp(u,e,n,t)).catch(m=>Object(Oe.f)(m))))}Object($.j)("_executeSignatureHelpProvider",(u,e,t)=>jg(void 0,void 0,void 0,function*(){let n=yield sp(u,e,{triggerKind:I.z.Invoke,isRetrigger:!1,triggerCharacter:t.triggerCharacter},On.a.None);if(n)return setTimeout(()=>n.dispose(),0),n.value}));var ll,Vg=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};(function(u){u.Default={type:0},u.Pending=class{constructor(e){this.request=e,this.type=2}},u.Active=class{constructor(e){this.hints=e,this.type=1}}})(ll||(ll={}));class xd extends Lt.a{constructor(e,t=xd.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new rt.a),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=ll.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Lt.d),this.triggerChars=new Xs.b,this.retriggerChars=new Xs.b,this.triggerId=0,this.editor=e,this.throttledDelayer=new Bi.a(t),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(I.y.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=ll.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let n=this.editor.getModel();if(!n||!I.y.has(n))return;let r=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(r),t).catch(Oe.e)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e==e-1,r=this.editor.getOption(67).cycle;!(e<2||n)||r?this.updateActiveSignature(n&&r?0:t+1):this.cancel()}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t===0,r=this.editor.getOption(67).cycle;!(e<2||n)||r?this.updateActiveSignature(n&&r?e-1:t-1):this.cancel()}updateActiveSignature(e){this.state.type===1&&(this.state=new ll.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return Vg(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,n=this.state.type===1?this.state.hints:void 0;if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let r=this._pendingTriggers.reduce(Ug);this._pendingTriggers=[];let d={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;let m=this.editor.getModel(),O=this.editor.getPosition();this.state=new ll.Pending(Object(Bi.f)(re=>sp(m,O,d,re)));try{let re=yield this.state.request;return e!==this.triggerId?(re==null||re.dispose(),!1):re&&re.value.signatures&&re.value.signatures.length!==0?(this.state=new ll.Active(re.value),this._lastSignatureHelpResult.value=re,this._onChangedHints.fire(this.state.hints),!0):(re==null||re.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(re){return e===this.triggerId&&(this.state=ll.Default),Object(Oe.e)(re),!1}})}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new Xs.b,this.retriggerChars=new Xs.b;let e=this.editor.getModel();if(e)for(let t of I.y.ordered(e)){for(let n of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(n.charCodeAt(0)),this.retriggerChars.add(n.charCodeAt(0));for(let n of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(n.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:I.z.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:I.z.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:I.z.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(67).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function Ug(u,e){switch(e.triggerKind){case I.z.Invoke:return e;case I.z.ContentChange:return u;case I.z.TriggerCharacter:default:return e}}xd.DEFAULT_DELAY=120;var Hg=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ch=function(u,e){return function(t,n){e(t,n,u)}};let ss=ae.a,qg=Object(de.e)("parameter-hints-next",de.a.chevronDown),$g=Object(de.e)("parameter-hints-previous",de.a.chevronUp),Sd=class bm extends Lt.a{constructor(e,t,n,r){super(),this.editor=e,this.renderDisposeables=this._register(new Lt.b),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new ac(e,r,n)),this.model=this._register(new xd(e)),this.keyVisible=Fl.Visible.bindTo(t),this.keyMultipleSignatures=Fl.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(d=>{d?(this.show(),this.render(d)):this.hide()}))}createParamaterHintDOMNodes(){let e=ss(".editor-widget.parameter-hints-widget"),t=ae.p(e,ss(".wrapper"));t.tabIndex=-1;let n=ae.p(t,ss(".controls")),r=ae.p(n,ss(".button"+$g.cssSelector)),d=ae.p(n,ss(".overloads")),m=ae.p(n,ss(".button"+qg.cssSelector)),O=Object(tr.b)(Object(tr.a)(r,"click"));this._register(O(this.previous,this));let re=Object(tr.b)(Object(tr.a)(m,"click"));this._register(re(this.next,this));let oe=ss(".body"),ce=new cd.a(oe,{});this._register(ce),t.appendChild(ce.getDomNode());let Me=ae.p(oe,ss(".signature")),Ct=ae.p(oe,ss(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:Me,overloads:d,docs:Ct,scrollbar:ce},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(St=>{this.visible&&this.editor.layoutContentWidget(this)}));let Ut=()=>{if(!this.domNodes)return;let St=this.editor.getOption(36);this.domNodes.element.style.fontSize=St.fontSize+"px"};Ut(),this._register(rt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(St=>St.hasChanged(36)).on(Ut,null)),this._register(this.editor.onDidLayoutChange(St=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&ae.e(this.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&ae.Q(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;let n=e.signatures.length>1;ae.ab(this.domNodes.element,"multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let r=e.signatures[e.activeSignature];if(!r)return;let d=ae.p(this.domNodes.signature,ss(".code")),m=this.editor.getOption(36);d.style.fontSize=m.fontSize+"px",d.style.fontFamily=m.fontFamily;let O=r.parameters.length>0,re=(t=r.activeParameter)!==null&&t!==void 0?t:e.activeParameter;O?this.renderParameters(d,r,re):ae.p(d,ss("span")).textContent=r.label;let oe=r.parameters[re];if(oe==null?void 0:oe.documentation){let Me=ss("span.documentation");if(typeof oe.documentation=="string")Me.textContent=oe.documentation;else{let Ct=this.renderDisposeables.add(this.markdownRenderer.render(oe.documentation));ae.e(Ct.element,"markdown-docs"),Me.appendChild(Ct.element)}ae.p(this.domNodes.docs,ss("p",{},Me))}if(r.documentation!==void 0)if(typeof r.documentation=="string")ae.p(this.domNodes.docs,ss("p",{},r.documentation));else{let Me=this.renderDisposeables.add(this.markdownRenderer.render(r.documentation));ae.e(Me.element,"markdown-docs"),ae.p(this.domNodes.docs,Me.element)}let ce=this.hasDocs(r,oe);if(ae.ab(this.domNodes.signature,"has-docs",ce),ae.ab(this.domNodes.docs,"empty",!ce),this.domNodes.overloads.textContent=Object(on.M)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,oe){let Me=this.getParameterLabel(r,re);this.announcedLabel!==Me&&(_i.a(G.a("hint","{0}, hint",Me)),this.announcedLabel=Me)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Object(to.a)(t.documentation).length>0)||!!(t&&typeof t.documentation=="object"&&Object(to.a)(t.documentation).value.length>0)||!!(e.documentation&&typeof e.documentation=="string"&&Object(to.a)(e.documentation).length>0)||!!(e.documentation&&typeof e.documentation=="object"&&Object(to.a)(e.documentation.value).length>0)}renderParameters(e,t,n){let[r,d]=this.getParameterLabelOffsets(t,n),m=document.createElement("span");m.textContent=t.label.substring(0,r);let O=document.createElement("span");O.textContent=t.label.substring(r,d),O.className="parameter active";let re=document.createElement("span");re.textContent=t.label.substring(d),ae.p(e,m,O,re)}getParameterLabel(e,t){let n=e.parameters[t];return Array.isArray(n.label)?e.label.substring(n.label[0],n.label[1]):n.label}getParameterLabelOffsets(e,t){let n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;{let r=e.label.lastIndexOf(n.label);return r>=0?[r,r+n.label.length]:[0,0]}}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element}getId(){return bm.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;let e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=e;let t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}};Sd.ID="editor.widget.parameterHintsWidget",Sd=Hg([Ch(1,A.b),Ch(2,ga.a),Ch(3,nl.a)],Sd),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.F);if(t){let O=u.type===ut.b?2:1;e.addRule(`.monaco-editor .parameter-hints-widget { border: ${O}px solid ${t}; }`),e.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${t.transparent(.5)}; }`)}let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${n}; }`);let r=u.getColor(Ue.rc);r&&e.addRule(`.monaco-editor .parameter-hints-widget a { color: ${r}; }`);let d=u.getColor(Ue.G);d&&e.addRule(`.monaco-editor .parameter-hints-widget { color: ${d}; }`);let m=u.getColor(Ue.qc);m&&e.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${m}; }`)});var Kg=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Gg=function(u,e){return function(t,n){e(t,n,u)}};let Wl=class _m extends Lt.a{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(Sd,this.editor))}static get(e){return e.getContribution(_m.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};Wl.ID="editor.controller.parameterHints",Wl=Kg([Gg(1,X.a)],Wl);class Yg extends $.b{constructor(){super({id:"editor.action.triggerParameterHints",label:G.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:z.a.hasSignatureHelpProvider,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3082,weight:100}})}run(e,t){let n=Wl.get(t);n&&n.trigger({triggerKind:I.z.Invoke})}}Object($.m)(Wl.ID,Wl),Object($.k)(Yg);let xh=$.c.bindToContribution(Wl.get);Object($.l)(new xh({id:"closeParameterHints",precondition:Fl.Visible,handler:u=>u.cancel(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.l)(new xh({id:"showPrevParameterHint",precondition:A.a.and(Fl.Visible,Fl.MultipleSignatures),handler:u=>u.previous(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object($.l)(new xh({id:"showNextParameterHint",precondition:A.a.and(Fl.Visible,Fl.MultipleSignatures),handler:u=>u.next(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}})),o(321);var Zg=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Xg=function(u,e){return function(t,n){e(t,n,u)}},ap=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let lp=new A.c("onTypeRenameInputVisible",!1),cl=class nu extends Lt.a{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new Lt.b),this._editor=e,this._enabled=!1,this._visibleContextKey=lp.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new Lt.b),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(73)&&this.reinitialize()})),this._register(I.u.onDidChange(()=>this.reinitialize())),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize())),this.reinitialize()}static get(e){return e.getContribution(nu.ID)}reinitialize(){let e=this._editor.getModel(),t=e!==null&&this._editor.getOption(73)&&I.u.has(e);if(t===this._enabled||(this._enabled=t,this.clearRanges(),this._localToDispose.clear(),!t||e===null))return;this._languageWordPattern=Oo.a.getWordDefinition(e.getLanguageIdentifier().id),this._localToDispose.add(e.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=Oo.a.getWordDefinition(e.getLanguageIdentifier().id)}));let n=new Bi.a(this._debounceDuration),r=()=>{this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),this._debounceDuration)},d=new Bi.a(0),m=O=>{this._rangeSyncTriggerPromise=d.trigger(()=>this._syncRanges(O))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{r()})),this._localToDispose.add(this._editor.onDidChangeModelContent(O=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let re=e.getDecorationRange(this._currentDecorations[0]);if(re&&O.changes.every(oe=>re.intersectRanges(oe.range)))return void m(this._currentDecorations)}r()})),this._localToDispose.add({dispose:()=>{n.cancel(),d.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||e.length===0)return;let t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();let r=t.getValueInRange(n);if(this._currentWordPattern){let m=r.match(this._currentWordPattern);if((m?m[0].length:0)!==r.length)return this.clearRanges()}let d=[];for(let m=1,O=e.length;m<O;m++){let re=t.getDecorationRange(e[m]);if(re)if(re.startLineNumber!==re.endLineNumber)d.push({range:re,text:r});else{let oe=t.getValueInRange(re),ce=r,Me=re.startColumn,Ct=re.endColumn,Ut=on.d(oe,ce);Me+=Ut,oe=oe.substr(Ut),ce=ce.substr(Ut);let St=on.e(oe,ce);Ct-=St,oe=oe.substr(0,oe.length-St),ce=ce.substr(0,ce.length-St),Me===Ct&&ce.length===0||d.push({range:new gt.a(re.startLineNumber,Me,re.endLineNumber,Ct),text:ce})}}if(d.length!==0)try{this._ignoreChangeEvent=!0;let m=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("onTypeRename",d),this._editor._getViewModel().setPrevEditOperationType(m)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,[]),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(e=!1){return ap(this,void 0,void 0,function*(){if(!this._editor.hasModel())return void this.clearRanges();let t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();let n=this._editor.getModel(),r=n.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===r){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){let m=n.getDecorationRange(this._currentDecorations[0]);if(m&&m.containsPosition(t))return}}this._currentRequestPosition=t,this._currentRequestModelVersion=r;let d=Object(Bi.f)(m=>ap(this,void 0,void 0,function*(){try{let O=yield cp(n,t,m);if(d!==this._currentRequest||(this._currentRequest=null,r!==n.getVersionId()))return;let re=[];(O==null?void 0:O.ranges)&&(re=O.ranges),this._currentWordPattern=(O==null?void 0:O.wordPattern)||this._languageWordPattern;let oe=!1;for(let Me=0,Ct=re.length;Me<Ct;Me++)if(gt.a.containsPosition(re[Me],t)){if(oe=!0,Me!==0){let Ut=re[Me];re.splice(Me,1),re.unshift(Ut)}break}if(!oe)return void this.clearRanges();let ce=re.map(Me=>({range:Me,options:nu.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,ce)}catch(O){Object(Oe.d)(O)||Object(Oe.e)(O),this._currentRequest!==d&&this._currentRequest||this.clearRanges()}}));return this._currentRequest=d,d})}};cl.ID="editor.contrib.onTypeRename",cl.DECORATION=Rt.a.register({stickiness:0,className:"on-type-rename-decoration"}),cl=Zg([Xg(1,A.b)],cl);class Qg extends $.b{constructor(){super({id:"editor.action.onTypeRename",label:G.a("onTypeRename.label","On Type Rename Symbol"),alias:"On Type Rename Symbol",precondition:A.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let n=e.get(Si.a),[r,d]=Array.isArray(t)&&t||[void 0,void 0];return Dn.a.isUri(r)&&Di.a.isIPosition(d)?n.openCodeEditor({resource:r},n.getActiveCodeEditor()).then(m=>{m&&(m.setPosition(d),m.invokeWithinContext(O=>(this.reportTelemetry(O,m),this.run(O,m))))},Oe.e):super.runCommand(e,t)}run(e,t){let n=cl.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}let Jg=$.c.bindToContribution(cl.get);function cp(u,e,t){let n=I.u.ordered(u);return Object(Bi.h)(n.map(r=>()=>Promise.resolve(r.provideOnTypeRenameRanges(u,e,t)).then(d=>{if(d)return{ranges:d.ranges,wordPattern:d.wordPattern||r.wordPattern}},d=>{Object(Oe.f)(d)})),r=>!!r&&ee.o(r==null?void 0:r.ranges))}Object($.l)(new Jg({id:"cancelOnTypeRenameInput",precondition:lp,handler:u=>u.clearRanges(),kbOpts:{kbExpr:z.a.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));let ef=Object(Ue.gc)("editor.onTypeRenameBackground",{dark:Kn.a.fromHex("#f00").transparent(.3),light:Kn.a.fromHex("#f00").transparent(.3),hc:Kn.a.fromHex("#f00").transparent(.3)},G.a("editorOnTypeRenameBackground","Background color when the editor auto renames on type."));Object(ut.g)((u,e)=>{let t=u.getColor(ef);t&&e.addRule(`.monaco-editor .on-type-rename-decoration { background: ${t}; border-left-color: ${t}; }`)}),Object($.p)("_executeRenameOnTypeProvider",(u,e)=>cp(u,e,On.a.None)),Object($.m)(cl.ID,cl),Object($.k)(Qg),o(323);var tf=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Sh=function(u,e){return function(t,n){e(t,n,u)}};let kd=new A.c("renameInputVisible",!1),kh=class{constructor(u,e,t,n,r){this._editor=u,this._acceptKeybindings=e,this._themeService=t,this._keybindingService=n,this._disposables=new Lt.b,this.allowEditorOverflow=!0,this._visibleContextKey=kd.bindTo(r),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(36)&&this._updateFont()})),this._disposables.add(t.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(G.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);let u=()=>{var e,t;let[n,r]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=Object(G.a)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(e=this._keybindingService.lookupKeybinding(n))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(r))===null||t===void 0?void 0:t.getLabel())};u(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(u)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(u){var e,t,n,r;if(!this._input||!this._domNode)return;let d=u.getColor(Ue.uc);this._domNode.style.backgroundColor=String((e=u.getColor(Ue.U))!==null&&e!==void 0?e:""),this._domNode.style.boxShadow=d?" 0 2px 8px "+d:"",this._domNode.style.color=String((t=u.getColor(Ue.hb))!==null&&t!==void 0?t:""),this._input.style.backgroundColor=String((n=u.getColor(Ue.fb))!==null&&n!==void 0?n:"");let m=u.getColor(Ue.gb);this._input.style.borderWidth=m?"1px":"0px",this._input.style.borderStyle=m?"solid":"none",this._input.style.borderColor=(r=m==null?void 0:m.toString())!==null&&r!==void 0?r:"none"}_updateFont(){if(!this._input||!this._label)return;let u=this._editor.getOption(36);this._input.style.fontFamily=u.fontFamily,this._input.style.fontWeight=u.fontWeight,this._input.style.fontSize=u.fontSize+"px",this._label.style.fontSize=.8*u.fontSize+"px"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}acceptInput(u){this._currentAcceptInput&&this._currentAcceptInput(u)}cancelInput(u){this._currentCancelInput&&this._currentCancelInput(u)}getInput(u,e,t,n,r,d){this._domNode.classList.toggle("preview",r),this._position=new Di.a(u.startLineNumber,u.startColumn),this._input.value=e,this._input.setAttribute("selectionStart",t.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max(1.1*(u.endColumn-u.startColumn),20);let m=new Lt.b;return new Promise(O=>{this._currentCancelInput=re=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,O(re),!0),this._currentAcceptInput=re=>{this._input.value.trim().length!==0&&this._input.value!==e?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,O({newName:this._input.value,wantsPreview:r&&re})):this.cancelInput(!0)},d.onCancellationRequested(()=>this.cancelInput(!0)),m.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{m.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};kh=tf([Sh(2,ut.c),Sh(3,Dt.a),Sh(4,A.b)],kh);var Eh=o(102),mc=o(56),nf=o(128),of=o(152),rf=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},gc=function(u,e){return function(t,n){e(t,n,u)}},fc=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class dp{constructor(e,t){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=I.w.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return fc(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){let r=this._providers[this._providerRenameIdx];if(!r.resolveRenameLocation)break;let d=yield r.resolveRenameLocation(this.model,this.position,e);if(d){if(!d.rejectReason)return d;t.push(d.rejectReason)}}let n=this.model.getWordAtPosition(this.position);return n?{range:new gt.a(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word,rejectReason:t.length>0?t.join(` +`+d),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let o=n.startLineNumber,d=n.startColumn,m=n.endLineNumber,D=n.endColumn;this._startLineNumberDelta!==0&&(o+=this._startLineNumberDelta,d=1),this._endLineNumberDelta!==0&&(m+=this._endLineNumberDelta,D=1),n=J.a.createWithDirection(o,d,m,D,this._selectionDirection)}return n}}var vd=r(75);class xg{constructor(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&this._selection.startLineNumber===1)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let o=this._selection;o.startLineNumber<o.endLineNumber&&o.endColumn===1&&(this._moveEndPositionDown=!0,o=o.setEndPosition(o.endLineNumber-1,e.getLineMaxColumn(o.endLineNumber-1)));let{tabSize:d,indentSize:m,insertSpaces:D}=e.getOptions(),oe=this.buildIndentConverter(d,m,D),re={getLineTokens:ce=>e.getLineTokens(ce),getLanguageIdentifier:()=>e.getLanguageIdentifier(),getLanguageIdAtPosition:(ce,Me)=>e.getLanguageIdAtPosition(ce,Me),getLineContent:null};if(o.startLineNumber===o.endLineNumber&&e.getLineMaxColumn(o.startLineNumber)===1){let ce=o.startLineNumber,Me=this._isMovingDown?ce+1:ce-1;e.getLineMaxColumn(Me)===1?t.addEditOperation(new gt.a(1,1,1,1),null):(t.addEditOperation(new gt.a(ce,1,ce,1),e.getLineContent(Me)),t.addEditOperation(new gt.a(Me,1,Me,e.getLineMaxColumn(Me)),null)),o=new J.a(Me,1,Me,1)}else{let ce,Me;if(this._isMovingDown){ce=o.endLineNumber+1,Me=e.getLineContent(ce),t.addEditOperation(new gt.a(ce-1,e.getLineMaxColumn(ce-1),ce,e.getLineMaxColumn(ce)),null);let Ct=Me;if(this.shouldAutoIndent(e,o)){let Ut=this.matchEnterRule(e,oe,d,ce,o.startLineNumber-1);if(Ut!==null)Ct=Mc(Ut+Xo(rn.z(e.getLineContent(ce)),d),d,D)+this.trimLeft(Me);else{re.getLineContent=hi=>hi===o.startLineNumber?e.getLineContent(ce):e.getLineContent(hi);let di=Ir.a.getGoodIndentForLine(this._autoIndent,re,e.getLanguageIdAtPosition(ce,1),o.startLineNumber,oe);if(di!==null){let hi=rn.z(e.getLineContent(ce)),ji=Xo(di,d);ji!==Xo(hi,d)&&(Ct=Mc(ji,d,D)+this.trimLeft(Me))}}t.addEditOperation(new gt.a(o.startLineNumber,1,o.startLineNumber,1),Ct+` +`);let St=this.matchEnterRule(e,oe,d,o.startLineNumber,o.startLineNumber,Ct);if(St!==null)St!==0&&this.getIndentEditsOfMovingBlock(e,t,o,d,D,St);else{re.getLineContent=hi=>hi===o.startLineNumber?Ct:hi>=o.startLineNumber+1&&hi<=o.endLineNumber+1?e.getLineContent(hi-1):e.getLineContent(hi);let di=Ir.a.getGoodIndentForLine(this._autoIndent,re,e.getLanguageIdAtPosition(ce,1),o.startLineNumber+1,oe);if(di!==null){let hi=rn.z(e.getLineContent(o.startLineNumber)),ji=Xo(di,d),Ji=Xo(hi,d);if(ji!==Ji){let dn=ji-Ji;this.getIndentEditsOfMovingBlock(e,t,o,d,D,dn)}}}}else t.addEditOperation(new gt.a(o.startLineNumber,1,o.startLineNumber,1),Ct+` +`)}else if(ce=o.startLineNumber-1,Me=e.getLineContent(ce),t.addEditOperation(new gt.a(ce,1,ce+1,1),null),t.addEditOperation(new gt.a(o.endLineNumber,e.getLineMaxColumn(o.endLineNumber),o.endLineNumber,e.getLineMaxColumn(o.endLineNumber)),` +`+Me),this.shouldAutoIndent(e,o)){re.getLineContent=Ut=>Ut===ce?e.getLineContent(o.startLineNumber):e.getLineContent(Ut);let Ct=this.matchEnterRule(e,oe,d,o.startLineNumber,o.startLineNumber-2);if(Ct!==null)Ct!==0&&this.getIndentEditsOfMovingBlock(e,t,o,d,D,Ct);else{let Ut=Ir.a.getGoodIndentForLine(this._autoIndent,re,e.getLanguageIdAtPosition(o.startLineNumber,1),ce,oe);if(Ut!==null){let St=rn.z(e.getLineContent(o.startLineNumber)),di=Xo(Ut,d),hi=Xo(St,d);if(di!==hi){let ji=di-hi;this.getIndentEditsOfMovingBlock(e,t,o,d,D,ji)}}}}}this._selectionId=t.trackSelection(o)}buildIndentConverter(e,t,n){return{shiftIndent:o=>hc.a.shiftIndent(o,o.length+1,e,t,n),unshiftIndent:o=>hc.a.unshiftIndent(o,o.length+1,e,t,n)}}matchEnterRule(e,t,n,o,d,m){let D=d;for(;D>=1;){let ce;if(ce=D===d&&m!==void 0?m:e.getLineContent(D),rn.J(ce)>=0)break;D--}if(D<1||o>e.getLineCount())return null;let oe=e.getLineMaxColumn(D),re=Ir.a.getEnterAction(this._autoIndent,e,new gt.a(D,oe,D,oe));if(re){let ce=re.indentation;re.indentAction===vd.a.None||re.indentAction===vd.a.Indent?ce=re.indentation+re.appendText:re.indentAction===vd.a.IndentOutdent?ce=re.indentation:re.indentAction===vd.a.Outdent&&(ce=t.unshiftIndent(re.indentation)+re.appendText);let Me=e.getLineContent(o);if(this.trimLeft(Me).indexOf(this.trimLeft(ce))>=0){let Ct=rn.z(e.getLineContent(o)),Ut=rn.z(ce),St=Ir.a.getIndentMetadata(e,o);return St!==null&&2&St&&(Ut=t.unshiftIndent(Ut)),Xo(Ut,n)-Xo(Ct,n)}}return null}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.isCheapToTokenize(t.startLineNumber))return!1;let n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&Ir.a.getIndentRulesSupport(n)!==null}getIndentEditsOfMovingBlock(e,t,n,o,d,m){for(let D=n.startLineNumber;D<=n.endLineNumber;D++){let oe=e.getLineContent(D),re=rn.z(oe),ce=Mc(Xo(re,o)+m,o,d);ce!==re&&(t.addEditOperation(new gt.a(D,1,D,re.length+1),ce),D===n.endLineNumber&&n.endColumn<=re.length+1&&ce===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n}}class al{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return al._COLLATOR||(al._COLLATOR=new Intl.Collator),al._COLLATOR}getEditOperations(e,t){let n=function(o,d,m){let D=Ku(o,d,m);return D?Cn.a.replace(new gt.a(D.startLineNumber,1,D.endLineNumber,o.getLineMaxColumn(D.endLineNumber)),D.after.join(` +`)):null}(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,n){if(e===null)return!1;let o=Ku(e,t,n);if(!o)return!1;for(let d=0,m=o.before.length;d<m;d++)if(o.before[d]!==o.after[d])return!0;return!1}}function Ku(u,e,t){let n=e.startLineNumber,o=e.endLineNumber;if(e.endColumn===1&&o--,n>=o)return null;let d=[];for(let D=n;D<=o;D++)d.push(u.getLineContent(D));let m=d.slice(0);return m.sort(al.getCollator().compare),t===!0&&(m=m.reverse()),{startLineNumber:n,endLineNumber:o,before:d,after:m}}al._COLLATOR=null;class Gu extends $.b{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let n=t.getSelections().map((m,D)=>({selection:m,index:D,ignore:!1}));n.sort((m,D)=>gt.a.compareRangesUsingStarts(m.selection,D.selection));let o=n[0];for(let m=1;m<n.length;m++){let D=n[m];o.selection.endLineNumber===D.selection.startLineNumber&&(o.index<D.index?D.ignore=!0:(o.ignore=!0,o=D))}let d=[];for(let m of n)m.ignore||d.push(new $u(m.selection,this.down));t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}}class Sg extends $.b{constructor(){super({id:"editor.action.duplicateSelection",label:G.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:z.a.writable,menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,n){if(!t.hasModel())return;let o=[],d=t.getSelections(),m=t.getModel();for(let D of d)if(D.isEmpty())o.push(new $u(D,!0));else{let oe=new J.a(D.endLineNumber,D.endColumn,D.endLineNumber,D.endColumn);o.push(new $i.c(oe,m.getValueInRange(D)))}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class Yu extends $.b{constructor(e,t){super(t),this.down=e}run(e,t){let n=[],o=t.getSelections()||[],d=t.getOption(8);for(let m of o)n.push(new xg(m,this.down,d));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class Zu extends $.b{constructor(e,t){super(t),this.descending=e}run(e,t){let n=t.getSelections()||[];for(let d of n)if(!al.canRun(t.getModel(),d,this.descending))return;let o=[];for(let d=0,m=n.length;d<m;d++)o[d]=new al(n[d],this.descending);t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class wd extends $.b{constructor(){super({id:wd.ID,label:G.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:Object(Se.a)(2089,2102),weight:100}})}run(e,t,n){let o=[];n.reason==="auto-save"&&(o=(t.getSelections()||[]).map(D=>new Oi.a(D.positionLineNumber,D.positionColumn)));let d=t.getSelection();if(d===null)return;let m=new Cg(d,o);t.pushUndoStop(),t.executeCommands(this.id,[m]),t.pushUndoStop()}}wd.ID="editor.action.trimTrailingWhitespace";class kg extends $.b{constructor(){super({id:"editor.action.deleteLines",label:G.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let n=this._getLinesToRemove(t),o=t.getModel();if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let d=0,m=[],D=[];for(let oe=0,re=n.length;oe<re;oe++){let ce=n[oe],Me=ce.startLineNumber,Ct=ce.endLineNumber,Ut=1,St=o.getLineMaxColumn(Ct);Ct<o.getLineCount()?(Ct+=1,St=1):Me>1&&(Me-=1,Ut=o.getLineMaxColumn(Me)),m.push(Cn.a.replace(new J.a(Me,Ut,Ct,St),"")),D.push(new J.a(Me-d,ce.positionColumn,Me-d,ce.positionColumn)),d+=ce.endLineNumber-ce.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,m,D),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(d=>{let m=d.endLineNumber;return d.startLineNumber<d.endLineNumber&&d.endColumn===1&&(m-=1),{startLineNumber:d.startLineNumber,selectionStartColumn:d.selectionStartColumn,endLineNumber:m,positionColumn:d.positionColumn}});t.sort((d,m)=>d.startLineNumber===m.startLineNumber?d.endLineNumber-m.endLineNumber:d.startLineNumber-m.startLineNumber);let n=[],o=t[0];for(let d=1;d<t.length;d++)o.endLineNumber+1>=t[d].startLineNumber?o.endLineNumber=t[d].endLineNumber:(n.push(o),o=t[d]);return n.push(o),n}}class Eg extends $.b{constructor(){super({id:"editor.action.indentLines",label:G.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2137,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class Tg extends $.b{constructor(){super({id:"editor.action.outdentLines",label:G.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2135,weight:100}})}run(e,t){ht.a.Outdent.runEditorCommand(e,t,null)}}class Lg extends $.b{constructor(){super({id:"editor.action.insertLineBefore",label:G.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3075,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}}class Ng extends $.b{constructor(){super({id:"editor.action.insertLineAfter",label:G.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2051,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,wh.a.lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}}class Xu extends $.b{run(e,t){if(!t.hasModel())return;let n=t.getSelection(),o=this._getRangesToDelete(t),d=[];for(let oe=0,re=o.length-1;oe<re;oe++){let ce=o[oe],Me=o[oe+1];gt.a.intersectRanges(ce,Me)===null?d.push(ce):o[oe+1]=gt.a.plusRange(ce,Me)}d.push(o[o.length-1]);let m=this._getEndCursorState(n,d),D=d.map(oe=>Cn.a.replace(oe,""));t.pushUndoStop(),t.executeEdits(this.id,D,m),t.pushUndoStop()}}class Ig extends $.b{constructor(){super({id:"editor.action.joinLines",label:G.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let n=t.getSelections();if(n===null)return;let o=t.getSelection();if(o===null)return;n.sort(gt.a.compareRangesUsingStarts);let d=[],m=n.reduce((Ct,Ut)=>Ct.isEmpty()?Ct.endLineNumber===Ut.startLineNumber?(o.equalsSelection(Ct)&&(o=Ut),Ut):Ut.startLineNumber>Ct.endLineNumber+1?(d.push(Ct),Ut):new J.a(Ct.startLineNumber,Ct.startColumn,Ut.endLineNumber,Ut.endColumn):Ut.startLineNumber>Ct.endLineNumber?(d.push(Ct),Ut):new J.a(Ct.startLineNumber,Ct.startColumn,Ut.endLineNumber,Ut.endColumn));d.push(m);let D=t.getModel();if(D===null)return;let oe=[],re=[],ce=o,Me=0;for(let Ct=0,Ut=d.length;Ct<Ut;Ct++){let St,di,hi=d[Ct],ji=hi.startLineNumber,Ji=1,dn=0,Ki=D.getLineContent(hi.endLineNumber).length-hi.endColumn;if(hi.isEmpty()||hi.startLineNumber===hi.endLineNumber){let Qi=hi.getStartPosition();Qi.lineNumber<D.getLineCount()?(St=ji+1,di=D.getLineMaxColumn(St)):(St=Qi.lineNumber,di=D.getLineMaxColumn(Qi.lineNumber))}else St=hi.endLineNumber,di=D.getLineMaxColumn(St);let yn=D.getLineContent(ji);for(let Qi=ji+1;Qi<=St;Qi++){let fn=D.getLineContent(Qi),$n=D.getLineFirstNonWhitespaceColumn(Qi);if($n>=1){let fr=!0;yn===""&&(fr=!1),!fr||yn.charAt(yn.length-1)!==" "&&yn.charAt(yn.length-1)!==" "||(fr=!1,yn=yn.replace(/[\s\uFEFF\xA0]+$/g," "));let zo=fn.substr($n-1);yn+=(fr?" ":"")+zo,dn=fr?zo.length+1:zo.length}else dn=0}let hn=new gt.a(ji,Ji,St,di);if(!hn.isEmpty()){let Qi;hi.isEmpty()?(oe.push(Cn.a.replace(hn,yn)),Qi=new J.a(hn.startLineNumber-Me,yn.length-dn+1,ji-Me,yn.length-dn+1)):hi.startLineNumber===hi.endLineNumber?(oe.push(Cn.a.replace(hn,yn)),Qi=new J.a(hi.startLineNumber-Me,hi.startColumn,hi.endLineNumber-Me,hi.endColumn)):(oe.push(Cn.a.replace(hn,yn)),Qi=new J.a(hi.startLineNumber-Me,hi.startColumn,hi.startLineNumber-Me,yn.length-Ki)),gt.a.intersectRanges(hn,o)!==null?ce=Qi:re.push(Qi)}Me+=hn.endLineNumber-hn.startLineNumber}re.unshift(ce),t.pushUndoStop(),t.executeEdits(this.id,oe,re),t.pushUndoStop()}}class Dg extends $.b{constructor(){super({id:"editor.action.transpose",label:G.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:z.a.writable})}run(e,t){let n=t.getSelections();if(n===null)return;let o=t.getModel();if(o===null)return;let d=[];for(let m=0,D=n.length;m<D;m++){let oe=n[m];if(!oe.isEmpty())continue;let re=oe.getStartPosition(),ce=o.getLineMaxColumn(re.lineNumber);if(re.column>=ce){if(re.lineNumber===o.getLineCount())continue;let Me=new gt.a(re.lineNumber,Math.max(1,re.column-1),re.lineNumber+1,1),Ct=o.getValueInRange(Me).split("").reverse().join("");d.push(new $i.a(new J.a(re.lineNumber,Math.max(1,re.column-1),re.lineNumber+1,1),Ct))}else{let Me=new gt.a(re.lineNumber,Math.max(1,re.column-1),re.lineNumber,re.column+1),Ct=o.getValueInRange(Me).split("").reverse().join("");d.push(new $i.b(Me,Ct,new J.a(re.lineNumber,re.column+1,re.lineNumber,re.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}}class yh extends $.b{run(e,t){let n=t.getSelections();if(n===null)return;let o=t.getModel();if(o===null)return;let d=t.getOption(105),m=[];for(let D=0,oe=n.length;D<oe;D++){let re=n[D];if(re.isEmpty()){let ce=re.getStartPosition(),Me=t.getConfiguredWordAtPosition(ce);if(!Me)continue;let Ct=new gt.a(ce.lineNumber,Me.startColumn,ce.lineNumber,Me.endColumn),Ut=o.getValueInRange(Ct);m.push(new $i.b(Ct,this._modifyText(Ut,d),new J.a(ce.lineNumber,ce.column,ce.lineNumber,ce.column)))}else{let ce=o.getValueInRange(re);m.push(new $i.b(re,this._modifyText(ce,d),re))}}t.pushUndoStop(),t.executeCommands(this.id,m),t.pushUndoStop()}}Object($.k)(class extends Gu{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:G.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Object($.k)(class extends Gu{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:G.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Object($.k)(Sg),Object($.k)(class extends Yu{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:G.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Object($.k)(class extends Yu{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:G.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:z.a.writable,kbOpts:{kbExpr:z.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"2_line",title:G.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Object($.k)(class extends Zu{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:G.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:z.a.writable})}}),Object($.k)(class extends Zu{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:G.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:z.a.writable})}}),Object($.k)(wd),Object($.k)(kg),Object($.k)(Eg),Object($.k)(Tg),Object($.k)(Lg),Object($.k)(Ng),Object($.k)(class extends Xu{constructor(){super({id:"deleteAllLeft",label:G.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(u,e){let t=null,n=[],o=0;return e.forEach(d=>{let m;if(d.endColumn===1&&o>0){let D=d.startLineNumber-o;m=new J.a(D,d.startColumn,D,d.startColumn)}else m=new J.a(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn);o+=d.endLineNumber-d.startLineNumber,d.intersectRanges(u)?t=m:n.push(m)}),t&&n.unshift(t),n}_getRangesToDelete(u){let e=u.getSelections();if(e===null)return[];let t=e,n=u.getModel();return n===null?[]:(t.sort(gt.a.compareRangesUsingStarts),t=t.map(o=>{if(o.isEmpty()){if(o.startColumn===1){let d=Math.max(1,o.startLineNumber-1),m=o.startLineNumber===1?1:n.getLineContent(d).length+1;return new gt.a(d,m,o.startLineNumber,1)}return new gt.a(o.startLineNumber,1,o.startLineNumber,o.startColumn)}return new gt.a(o.startLineNumber,1,o.endLineNumber,o.endColumn)}),t)}}),Object($.k)(class extends Xu{constructor(){super({id:"deleteAllRight",label:G.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(u,e){let t=null,n=[];for(let o=0,d=e.length,m=0;o<d;o++){let D=e[o],oe=new J.a(D.startLineNumber-m,D.startColumn,D.startLineNumber-m,D.startColumn);D.intersectRanges(u)?t=oe:n.push(oe)}return t&&n.unshift(t),n}_getRangesToDelete(u){let e=u.getModel();if(e===null)return[];let t=u.getSelections();if(t===null)return[];let n=t.map(o=>{if(o.isEmpty()){let d=e.getLineMaxColumn(o.startLineNumber);return o.startColumn===d?new gt.a(o.startLineNumber,o.startColumn,o.startLineNumber+1,1):new gt.a(o.startLineNumber,o.startColumn,o.startLineNumber,d)}return o});return n.sort(gt.a.compareRangesUsingStarts),n}}),Object($.k)(Ig),Object($.k)(Dg),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToUppercase",label:G.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:z.a.writable})}_modifyText(u,e){return u.toLocaleUpperCase()}}),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToLowercase",label:G.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:z.a.writable})}_modifyText(u,e){return u.toLocaleLowerCase()}}),Object($.k)(class extends yh{constructor(){super({id:"editor.action.transformToTitlecase",label:G.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:z.a.writable})}_modifyText(u,e){let t=(`\r + `+e).split(""),n="",o=!0;for(let d=0;d<u.length;d++){let m=u[d];t.indexOf(m)>=0?(o=!0,n+=m):o?(o=!1,n+=m.toLocaleUpperCase()):n+=m.toLocaleLowerCase()}return n}}),r(317);var Qu=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class Og{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return Qu(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}}class yd extends Lt.a{constructor(e){super();let t=[];for(let[n,o]of e){let d=n.links.map(m=>new Og(m,o));t=yd._union(t,d),Object(Lt.g)(n)&&this._register(n)}this.links=t}static _union(e,t){let n,o,d,m,D=[];for(n=0,d=0,o=e.length,m=t.length;n<o&&d<m;){let oe=e[n],re=t[d];if(gt.a.areIntersectingOrTouching(oe.range,re.range)){n++;continue}gt.a.compareRangesUsingStarts(oe.range,re.range)<0?(D.push(oe),n++):(D.push(re),d++)}for(;n<o;n++)D.push(e[n]);for(;d<m;d++)D.push(t[d]);return D}}function Ju(u,e){let t=[],n=I.s.ordered(u).reverse().map((o,d)=>Promise.resolve(o.provideLinks(u,e)).then(m=>{m&&(t[d]=[m,o])},De.f));return Promise.all(n).then(()=>{let o=new yd(Object(ee.d)(t));return e.isCancellationRequested?(o.dispose(),new yd([])):o})}Ee.a.registerCommand("_executeLinkProvider",(u,...e)=>Qu(void 0,void 0,void 0,function*(){let[t]=e;if(!(t instanceof On.a))return[];let n=u.get(ne.a).getModel(t);if(!n)return[];let o=yield Ju(n,Dn.a.None);if(!o)return[];let d=o.links.slice(0);return o.dispose(),d}));var Ag=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ep=function(u,e){return function(t,n){e(t,n,u)}},Rg=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let tp={general:Rt.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:Rt.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class uc{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:uc._getOptions(e,t,!1)}}static _getOptions(e,t,n){let o=Object.assign({},n?tp.active:tp.general);return o.hoverMessage=function(d,m){let D=d.url&&/^command:/i.test(d.url.toString()),oe=d.tooltip?d.tooltip:D?G.a("links.navigate.executeCmd","Execute command"):G.a("links.navigate.follow","Follow link"),re=m?Et.f?G.a("links.navigate.kb.meta.mac","cmd + click"):G.a("links.navigate.kb.meta","ctrl + click"):Et.f?G.a("links.navigate.kb.alt.mac","option + click"):G.a("links.navigate.kb.alt","alt + click");return d.url?new $e("",!0).appendMarkdown(`[${oe}](${d.url.toString()}) (${re})`):new $e().appendText(`${oe} (${re})`)}(e,t),o}activate(e,t){e.changeDecorationOptions(this.decorationId,uc._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,uc._getOptions(this.link,t,!1))}}let Ml=class iu{constructor(e,t,n){this.listenersToRemove=new Lt.b,this.editor=e,this.openerService=t,this.notificationService=n;let o=new Eu(e);this.listenersToRemove.add(o),this.listenersToRemove.add(o.onMouseMoveOrRelevantKeyDown(([d,m])=>{this._onEditorMouseMove(d,m)})),this.listenersToRemove.add(o.onExecute(d=>{this.onEditorMouseUp(d)})),this.listenersToRemove.add(o.onCancel(d=>{this.cleanUpActiveLinkDecoration()})),this.enabled=e.getOption(54),this.listenersToRemove.add(e.onDidChangeConfiguration(d=>{let m=e.getOption(54);this.enabled!==m&&(this.enabled=m,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(d=>this.onChange())),this.listenersToRemove.add(e.onDidChangeModel(d=>this.onModelChanged())),this.listenersToRemove.add(e.onDidChangeModelLanguage(d=>this.onModelModeChanged())),this.listenersToRemove.add(I.s.onDidChange(d=>this.onModelModeChanged())),this.timeout=new Bi.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(e){return e.getContribution(iu.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),iu.RECOMPUTE_TIME)}beginCompute(){return Rg(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.enabled)return;let e=this.editor.getModel();if(I.s.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Bi.f(t=>Ju(e,t));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(t){Object(De.e)(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(61)==="altKey",n=[],o=Object.keys(this.currentOccurrences);for(let D=0,oe=o.length;D<oe;D++){let re=o[D],ce=this.currentOccurrences[re];n.push(ce.decorationId)}let d=[];if(e)for(let D of e)d.push(uc.decoration(D,t));let m=this.editor.deltaDecorations(n,d);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let D=0,oe=m.length;D<oe;D++){let re=new uc(e[D],m[D]);this.currentOccurrences[re.decorationId]=re}}_onEditorMouseMove(e,t){let n=this.editor.getOption(61)==="altKey";if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();let o=this.getLinkOccurrence(e.target.position);o&&this.editor.changeDecorations(d=>{o.activate(d,n),this.activeLinkDecorationId=o.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(61)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(n=>{t.deactivate(n,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,n=!1){if(!this.openerService)return;let{link:o}=e;o.resolve(Dn.a.None).then(d=>{if(typeof d=="string"&&this.editor.hasModel()){let m=this.editor.getModel().uri;if(m.scheme===M.b.file&&rn.S(d,"file:")){let D=On.a.parse(d);if(D.scheme===M.b.file){let oe=Be.i(D),re=null;rn.S(oe,"/./")?re="."+oe.substr(1):rn.S(oe,"//./")&&(re="."+oe.substr(2)),re&&(d=Be.g(m,re))}}}return this.openerService.open(d,{openToSide:t,fromUserGesture:n})},d=>{let m=d instanceof Error?d.message:d;m==="invalid"?this.notificationService.warn(G.a("invalid.url","Failed to open this link because it is not well-formed: {0}",o.url.toString())):m==="missing"?this.notificationService.warn(G.a("missing.url","Failed to open this link because its target is missing.")):Object(De.e)(d)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let n of t){let o=this.currentOccurrences[n.id];if(o)return o}return null}isEnabled(e,t){return Boolean(e.target.type===6&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};Ml.ID="editor.linkDetector",Ml.RECOMPUTE_TIME=1e3,Ml=Ag([ep(1,ga.a),ep(2,Re.a)],Ml);class Mg extends $.b{constructor(){super({id:"editor.action.openLink",label:G.a("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let n=Ml.get(t);if(!n||!t.hasModel())return;let o=t.getSelections();for(let d of o){let m=n.getLinkOccurrence(d.getEndPosition());m&&n.openLinkOccurrence(m,!1)}}}Object($.m)(Ml.ID,Ml),Object($.k)(Mg),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.r);t&&e.addRule(`.monaco-editor .detected-link-active { color: ${t} !important; }`)});var ip=r(85);class Pg extends $.b{constructor(){super({id:"editor.action.insertCursorAbove",label:G.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,n){if(!t.hasModel())return;let o=n&&n.logicalLine===!0,d=t._getViewModel();d.cursorConfig.readOnly||(d.pushStackElement(),d.setCursorStates(n.source,3,ip.b.addCursorUp(d,d.getCursorStates(),o)),d.revealTopMostCursor(n.source))}}class Fg extends $.b{constructor(){super({id:"editor.action.insertCursorBelow",label:G.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,n){if(!t.hasModel())return;let o=n&&n.logicalLine===!0,d=t._getViewModel();d.cursorConfig.readOnly||(d.pushStackElement(),d.setCursorStates(n.source,3,ip.b.addCursorDown(d,d.getCursorStates(),o)),d.revealBottomMostCursor(n.source))}}class Wg extends $.b{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:G.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,n){if(!e.isEmpty()){for(let o=e.startLineNumber;o<e.endLineNumber;o++){let d=t.getLineMaxColumn(o);n.push(new J.a(o,d,o,d))}e.endColumn>1&&n.push(new J.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let n=t.getModel(),o=t.getSelections(),d=[];o.forEach(m=>this.getCursorsForSelection(m,n,d)),d.length>0&&t.setSelections(d)}}class zg extends $.b{constructor(){super({id:"editor.action.addCursorsToBottom",label:G.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),o=t.getModel().getLineCount(),d=[];for(let m=n[0].startLineNumber;m<=o;m++)d.push(new J.a(m,n[0].startColumn,m,n[0].endColumn));d.length>0&&t.setSelections(d)}}class Bg extends $.b{constructor(){super({id:"editor.action.addCursorsToTop",label:G.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),o=[];for(let d=n[0].startLineNumber;d>=1;d--)o.push(new J.a(d,n[0].startColumn,d,n[0].endColumn));o.length>0&&t.setSelections(o)}}class Cd{constructor(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}}class Pc{constructor(e,t,n,o,d,m,D){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=o,this.wholeWord=d,this.matchCase=m,this.currentMatch=D}static create(e,t){if(!e.hasModel())return null;let n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new Pc(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let o,d,m=!1,D=e.getSelections();D.length===1&&D[0].isEmpty()?(m=!0,o=!0,d=!0):(o=n.wholeWord,d=n.matchCase);let oe=e.getSelection(),re,ce=null;if(oe.isEmpty()){let Me=e.getConfiguredWordAtPosition(oe.getStartPosition());if(!Me)return null;re=Me.word,ce=new J.a(oe.startLineNumber,Me.startColumn,oe.startLineNumber,Me.endColumn)}else re=e.getModel().getValueInRange(oe).replace(/\r\n/g,` +`);return new Pc(e,t,m,re,o,d,ce)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let o=this.currentMatch;return this.currentMatch=null,o}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new J.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Cd(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let o=this.currentMatch;return this.currentMatch=null,o}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new J.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1,1073741824)):[]}}class Pl extends Lt.a{constructor(e){super(),this._sessionDispose=this._register(new Lt.b),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(Pl.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=Pc.create(this._editor,e);if(!t)return;this._session=t;let n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(o=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(o=>{(o.matchCase||o.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){let e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new J.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!rp(this._editor.getModel(),t,n)){let o=this._editor.getModel(),d=[];for(let m=0,D=t.length;m<D;m++)d[m]=this._expandEmptyToWord(o,t[m]);return void this._editor.setSelections(d)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(105):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){let o=n.searchScope,d=[];t.forEach(m=>{o.forEach(D=>{m.range.endLineNumber<=D.endLineNumber&&m.range.startLineNumber>=D.startLineNumber&&d.push(m)})}),t=d}if(t.length>0){let o=this._editor.getSelection();for(let d=0,m=t.length;d<m;d++){let D=t[d];if(D.range.intersectRanges(o)){t[d]=t[0],t[0]=D;break}}this._setSelections(t.map(d=>new J.a(d.range.startLineNumber,d.range.startColumn,d.range.endLineNumber,d.range.endColumn)))}}}Pl.ID="editor.contrib.multiCursorController";class pc extends $.b{run(e,t){let n=Pl.get(t);if(!n)return;let o=uo.get(t);o&&this._run(n,o)}}class np{constructor(e,t,n,o){this.searchText=e,this.matchCase=t,this.wordSeparators=n,this.modelVersionId=o}static softEquals(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators&&e.modelVersionId===t.modelVersionId}}class Ba extends Lt.a{constructor(e){super(),this.editor=e,this._isEnabled=e.getOption(89),this.decorations=[],this.updateSoon=this._register(new Bi.d(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(89)})),this._register(e.onDidChangeCursorSelection(t=>{this._isEnabled&&(t.selection.isEmpty()?t.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(t=>{this._setState(null)})),this._register(e.onDidChangeModelContent(t=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(uo.get(e).getState().onFindReplaceStateChange(t=>{this._update()}))}_update(){this._setState(Ba._createState(this._isEnabled,this.editor))}static _createState(e,t){if(!e||!t.hasModel())return null;let n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let o=Pl.get(t);if(!o)return null;let d=uo.get(t);if(!d)return null;let m=o.getSession(d);if(!m){let re=t.getSelections();if(re.length>1){let ce=d.getState().matchCase;if(!rp(t.getModel(),re,ce))return null}m=Pc.create(t,d)}if(!m||m.currentMatch||/^[ \t]+$/.test(m.searchText)||m.searchText.length>200)return null;let D=d.getState(),oe=D.matchCase;if(D.isRevealed){let re=D.searchString;oe||(re=re.toLowerCase());let ce=m.searchText;if(oe||(ce=ce.toLowerCase()),re===ce&&m.matchCase===D.matchCase&&m.wholeWord===D.wholeWord&&!D.isRegex)return null}return new np(m.searchText,m.matchCase,m.wholeWord?t.getOption(105):null,t.getModel().getVersionId())}_setState(e){if(np.softEquals(this.state,e))return void(this.state=e);if(this.state=e,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let n=I.i.has(t)&&this.editor.getOption(63),o=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(oe=>oe.range);o.sort(gt.a.compareRangesUsingStarts);let d=this.editor.getSelections();d.sort(gt.a.compareRangesUsingStarts);let m=[];for(let oe=0,re=0,ce=o.length,Me=d.length;oe<ce;){let Ct=o[oe];if(re>=Me)m.push(Ct),oe++;else{let Ut=gt.a.compareRangesUsingStarts(Ct,d[re]);Ut<0?(!d[re].isEmpty()&>.a.areIntersecting(Ct,d[re])||m.push(Ct),oe++):(Ut>0||oe++,re++)}}let D=m.map(oe=>({range:oe,options:n?Ba._SELECTION_HIGHLIGHT:Ba._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,D)}dispose(){this._setState(null),super.dispose()}}function rp(u,e,t){let n=op(u,e[0],!t);for(let o=1,d=e.length;o<d;o++){let m=e[o];if(m.isEmpty()||n!==op(u,m,!t))return!1}return!0}function op(u,e,t){let n=u.getValueInRange(e);return t?n.toLowerCase():n}Ba.ID="editor.contrib.selectionHighlighter",Ba._SELECTION_HIGHLIGHT_OVERVIEW=Rt.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(ut.h)(Ue.Wb),position:vi.d.Center}}),Ba._SELECTION_HIGHLIGHT=Rt.a.register({stickiness:1,className:"selectionHighlight"}),Object($.m)(Pl.ID,Pl),Object($.m)(Ba.ID,Ba),Object($.k)(Pg),Object($.k)(Fg),Object($.k)(Wg),Object($.k)(class extends pc{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:G.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2082,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(u,e){u.addSelectionToNextFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:G.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(u,e){u.addSelectionToPreviousFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:G.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:Object(Se.a)(2089,2082),weight:100}})}_run(u,e){u.moveSelectionToNextFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:G.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(u,e){u.moveSelectionToPreviousFindMatch(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.selectHighlights",label:G.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:3114,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:G.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(u,e){u.selectAll(e)}}),Object($.k)(class extends pc{constructor(){super({id:"editor.action.changeAll",label:G.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:A.a.and(z.a.writable,z.a.editorTextFocus),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(u,e){u.selectAll(e)}}),Object($.k)(zg),Object($.k)(Bg),r(319);var jg=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Fl={Visible:new A.c("parameterHintsVisible",!1),MultipleSignatures:new A.c("parameterHintsMultipleSignatures",!1)};function sp(u,e,t,n){let o=I.y.ordered(u);return Object(Bi.h)(o.map(d=>()=>Promise.resolve(d.provideSignatureHelp(u,e,n,t)).catch(m=>Object(De.f)(m))))}Object($.j)("_executeSignatureHelpProvider",(u,e,t)=>jg(void 0,void 0,void 0,function*(){let n=yield sp(u,e,{triggerKind:I.z.Invoke,isRetrigger:!1,triggerCharacter:t.triggerCharacter},Dn.a.None);if(n)return setTimeout(()=>n.dispose(),0),n.value}));var ll,Vg=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};(function(u){u.Default={type:0},u.Pending=class{constructor(e){this.request=e,this.type=2}},u.Active=class{constructor(e){this.hints=e,this.type=1}}})(ll||(ll={}));class xd extends Lt.a{constructor(e,t=xd.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new ot.a),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=ll.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Lt.d),this.triggerChars=new Xs.b,this.retriggerChars=new Xs.b,this.triggerId=0,this.editor=e,this.throttledDelayer=new Bi.a(t),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(I.y.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=ll.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let n=this.editor.getModel();if(!n||!I.y.has(n))return;let o=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(o),t).catch(De.e)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e==e-1,o=this.editor.getOption(67).cycle;!(e<2||n)||o?this.updateActiveSignature(n&&o?0:t+1):this.cancel()}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t===0,o=this.editor.getOption(67).cycle;!(e<2||n)||o?this.updateActiveSignature(n&&o?e-1:t-1):this.cancel()}updateActiveSignature(e){this.state.type===1&&(this.state=new ll.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return Vg(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,n=this.state.type===1?this.state.hints:void 0;if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let o=this._pendingTriggers.reduce(Ug);this._pendingTriggers=[];let d={triggerKind:o.triggerKind,triggerCharacter:o.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;let m=this.editor.getModel(),D=this.editor.getPosition();this.state=new ll.Pending(Object(Bi.f)(oe=>sp(m,D,d,oe)));try{let oe=yield this.state.request;return e!==this.triggerId?(oe==null||oe.dispose(),!1):oe&&oe.value.signatures&&oe.value.signatures.length!==0?(this.state=new ll.Active(oe.value),this._lastSignatureHelpResult.value=oe,this._onChangedHints.fire(this.state.hints),!0):(oe==null||oe.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(oe){return e===this.triggerId&&(this.state=ll.Default),Object(De.e)(oe),!1}})}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new Xs.b,this.retriggerChars=new Xs.b;let e=this.editor.getModel();if(e)for(let t of I.y.ordered(e)){for(let n of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(n.charCodeAt(0)),this.retriggerChars.add(n.charCodeAt(0));for(let n of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(n.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:I.z.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:I.z.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:I.z.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(67).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function Ug(u,e){switch(e.triggerKind){case I.z.Invoke:return e;case I.z.ContentChange:return u;case I.z.TriggerCharacter:default:return e}}xd.DEFAULT_DELAY=120;var Hg=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ch=function(u,e){return function(t,n){e(t,n,u)}};let ss=ae.a,qg=Object(de.e)("parameter-hints-next",de.a.chevronDown),$g=Object(de.e)("parameter-hints-previous",de.a.chevronUp),Sd=class bm extends Lt.a{constructor(e,t,n,o){super(),this.editor=e,this.renderDisposeables=this._register(new Lt.b),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new ac(e,o,n)),this.model=this._register(new xd(e)),this.keyVisible=Fl.Visible.bindTo(t),this.keyMultipleSignatures=Fl.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(d=>{d?(this.show(),this.render(d)):this.hide()}))}createParamaterHintDOMNodes(){let e=ss(".editor-widget.parameter-hints-widget"),t=ae.p(e,ss(".wrapper"));t.tabIndex=-1;let n=ae.p(t,ss(".controls")),o=ae.p(n,ss(".button"+$g.cssSelector)),d=ae.p(n,ss(".overloads")),m=ae.p(n,ss(".button"+qg.cssSelector)),D=Object(eo.b)(Object(eo.a)(o,"click"));this._register(D(this.previous,this));let oe=Object(eo.b)(Object(eo.a)(m,"click"));this._register(oe(this.next,this));let re=ss(".body"),ce=new cd.a(re,{});this._register(ce),t.appendChild(ce.getDomNode());let Me=ae.p(re,ss(".signature")),Ct=ae.p(re,ss(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:Me,overloads:d,docs:Ct,scrollbar:ce},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(St=>{this.visible&&this.editor.layoutContentWidget(this)}));let Ut=()=>{if(!this.domNodes)return;let St=this.editor.getOption(36);this.domNodes.element.style.fontSize=St.fontSize+"px"};Ut(),this._register(ot.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(St=>St.hasChanged(36)).on(Ut,null)),this._register(this.editor.onDidLayoutChange(St=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&ae.e(this.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&ae.Q(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;let n=e.signatures.length>1;ae.ab(this.domNodes.element,"multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let o=e.signatures[e.activeSignature];if(!o)return;let d=ae.p(this.domNodes.signature,ss(".code")),m=this.editor.getOption(36);d.style.fontSize=m.fontSize+"px",d.style.fontFamily=m.fontFamily;let D=o.parameters.length>0,oe=(t=o.activeParameter)!==null&&t!==void 0?t:e.activeParameter;D?this.renderParameters(d,o,oe):ae.p(d,ss("span")).textContent=o.label;let re=o.parameters[oe];if(re==null?void 0:re.documentation){let Me=ss("span.documentation");if(typeof re.documentation=="string")Me.textContent=re.documentation;else{let Ct=this.renderDisposeables.add(this.markdownRenderer.render(re.documentation));ae.e(Ct.element,"markdown-docs"),Me.appendChild(Ct.element)}ae.p(this.domNodes.docs,ss("p",{},Me))}if(o.documentation!==void 0)if(typeof o.documentation=="string")ae.p(this.domNodes.docs,ss("p",{},o.documentation));else{let Me=this.renderDisposeables.add(this.markdownRenderer.render(o.documentation));ae.e(Me.element,"markdown-docs"),ae.p(this.domNodes.docs,Me.element)}let ce=this.hasDocs(o,re);if(ae.ab(this.domNodes.signature,"has-docs",ce),ae.ab(this.domNodes.docs,"empty",!ce),this.domNodes.overloads.textContent=Object(rn.M)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,re){let Me=this.getParameterLabel(o,oe);this.announcedLabel!==Me&&(_i.a(G.a("hint","{0}, hint",Me)),this.announcedLabel=Me)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Object(tr.a)(t.documentation).length>0)||!!(t&&typeof t.documentation=="object"&&Object(tr.a)(t.documentation).value.length>0)||!!(e.documentation&&typeof e.documentation=="string"&&Object(tr.a)(e.documentation).length>0)||!!(e.documentation&&typeof e.documentation=="object"&&Object(tr.a)(e.documentation.value).length>0)}renderParameters(e,t,n){let[o,d]=this.getParameterLabelOffsets(t,n),m=document.createElement("span");m.textContent=t.label.substring(0,o);let D=document.createElement("span");D.textContent=t.label.substring(o,d),D.className="parameter active";let oe=document.createElement("span");oe.textContent=t.label.substring(d),ae.p(e,m,D,oe)}getParameterLabel(e,t){let n=e.parameters[t];return Array.isArray(n.label)?e.label.substring(n.label[0],n.label[1]):n.label}getParameterLabelOffsets(e,t){let n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;{let o=e.label.lastIndexOf(n.label);return o>=0?[o,o+n.label.length]:[0,0]}}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element}getId(){return bm.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;let e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=e;let t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}};Sd.ID="editor.widget.parameterHintsWidget",Sd=Hg([Ch(1,A.b),Ch(2,ga.a),Ch(3,nl.a)],Sd),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.F);if(t){let D=u.type===ut.b?2:1;e.addRule(`.monaco-editor .parameter-hints-widget { border: ${D}px solid ${t}; }`),e.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${t.transparent(.5)}; }`)}let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${n}; }`);let o=u.getColor(Ue.rc);o&&e.addRule(`.monaco-editor .parameter-hints-widget a { color: ${o}; }`);let d=u.getColor(Ue.G);d&&e.addRule(`.monaco-editor .parameter-hints-widget { color: ${d}; }`);let m=u.getColor(Ue.qc);m&&e.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${m}; }`)});var Kg=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Gg=function(u,e){return function(t,n){e(t,n,u)}};let Wl=class _m extends Lt.a{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(Sd,this.editor))}static get(e){return e.getContribution(_m.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};Wl.ID="editor.controller.parameterHints",Wl=Kg([Gg(1,X.a)],Wl);class Yg extends $.b{constructor(){super({id:"editor.action.triggerParameterHints",label:G.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:z.a.hasSignatureHelpProvider,kbOpts:{kbExpr:z.a.editorTextFocus,primary:3082,weight:100}})}run(e,t){let n=Wl.get(t);n&&n.trigger({triggerKind:I.z.Invoke})}}Object($.m)(Wl.ID,Wl),Object($.k)(Yg);let xh=$.c.bindToContribution(Wl.get);Object($.l)(new xh({id:"closeParameterHints",precondition:Fl.Visible,handler:u=>u.cancel(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.l)(new xh({id:"showPrevParameterHint",precondition:A.a.and(Fl.Visible,Fl.MultipleSignatures),handler:u=>u.previous(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object($.l)(new xh({id:"showNextParameterHint",precondition:A.a.and(Fl.Visible,Fl.MultipleSignatures),handler:u=>u.next(),kbOpts:{weight:175,kbExpr:z.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}})),r(321);var Zg=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Xg=function(u,e){return function(t,n){e(t,n,u)}},ap=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let lp=new A.c("onTypeRenameInputVisible",!1),cl=class nu extends Lt.a{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new Lt.b),this._editor=e,this._enabled=!1,this._visibleContextKey=lp.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new Lt.b),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(73)&&this.reinitialize()})),this._register(I.u.onDidChange(()=>this.reinitialize())),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize())),this.reinitialize()}static get(e){return e.getContribution(nu.ID)}reinitialize(){let e=this._editor.getModel(),t=e!==null&&this._editor.getOption(73)&&I.u.has(e);if(t===this._enabled||(this._enabled=t,this.clearRanges(),this._localToDispose.clear(),!t||e===null))return;this._languageWordPattern=Ir.a.getWordDefinition(e.getLanguageIdentifier().id),this._localToDispose.add(e.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=Ir.a.getWordDefinition(e.getLanguageIdentifier().id)}));let n=new Bi.a(this._debounceDuration),o=()=>{this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),this._debounceDuration)},d=new Bi.a(0),m=D=>{this._rangeSyncTriggerPromise=d.trigger(()=>this._syncRanges(D))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{o()})),this._localToDispose.add(this._editor.onDidChangeModelContent(D=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let oe=e.getDecorationRange(this._currentDecorations[0]);if(oe&&D.changes.every(re=>oe.intersectRanges(re.range)))return void m(this._currentDecorations)}o()})),this._localToDispose.add({dispose:()=>{n.cancel(),d.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||e.length===0)return;let t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();let o=t.getValueInRange(n);if(this._currentWordPattern){let m=o.match(this._currentWordPattern);if((m?m[0].length:0)!==o.length)return this.clearRanges()}let d=[];for(let m=1,D=e.length;m<D;m++){let oe=t.getDecorationRange(e[m]);if(oe)if(oe.startLineNumber!==oe.endLineNumber)d.push({range:oe,text:o});else{let re=t.getValueInRange(oe),ce=o,Me=oe.startColumn,Ct=oe.endColumn,Ut=rn.d(re,ce);Me+=Ut,re=re.substr(Ut),ce=ce.substr(Ut);let St=rn.e(re,ce);Ct-=St,re=re.substr(0,re.length-St),ce=ce.substr(0,ce.length-St),Me===Ct&&ce.length===0||d.push({range:new gt.a(oe.startLineNumber,Me,oe.endLineNumber,Ct),text:ce})}}if(d.length!==0)try{this._ignoreChangeEvent=!0;let m=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("onTypeRename",d),this._editor._getViewModel().setPrevEditOperationType(m)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,[]),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(e=!1){return ap(this,void 0,void 0,function*(){if(!this._editor.hasModel())return void this.clearRanges();let t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();let n=this._editor.getModel(),o=n.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){let m=n.getDecorationRange(this._currentDecorations[0]);if(m&&m.containsPosition(t))return}}this._currentRequestPosition=t,this._currentRequestModelVersion=o;let d=Object(Bi.f)(m=>ap(this,void 0,void 0,function*(){try{let D=yield cp(n,t,m);if(d!==this._currentRequest||(this._currentRequest=null,o!==n.getVersionId()))return;let oe=[];(D==null?void 0:D.ranges)&&(oe=D.ranges),this._currentWordPattern=(D==null?void 0:D.wordPattern)||this._languageWordPattern;let re=!1;for(let Me=0,Ct=oe.length;Me<Ct;Me++)if(gt.a.containsPosition(oe[Me],t)){if(re=!0,Me!==0){let Ut=oe[Me];oe.splice(Me,1),oe.unshift(Ut)}break}if(!re)return void this.clearRanges();let ce=oe.map(Me=>({range:Me,options:nu.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,ce)}catch(D){Object(De.d)(D)||Object(De.e)(D),this._currentRequest!==d&&this._currentRequest||this.clearRanges()}}));return this._currentRequest=d,d})}};cl.ID="editor.contrib.onTypeRename",cl.DECORATION=Rt.a.register({stickiness:0,className:"on-type-rename-decoration"}),cl=Zg([Xg(1,A.b)],cl);class Qg extends $.b{constructor(){super({id:"editor.action.onTypeRename",label:G.a("onTypeRename.label","On Type Rename Symbol"),alias:"On Type Rename Symbol",precondition:A.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let n=e.get(Si.a),[o,d]=Array.isArray(t)&&t||[void 0,void 0];return On.a.isUri(o)&&Oi.a.isIPosition(d)?n.openCodeEditor({resource:o},n.getActiveCodeEditor()).then(m=>{m&&(m.setPosition(d),m.invokeWithinContext(D=>(this.reportTelemetry(D,m),this.run(D,m))))},De.e):super.runCommand(e,t)}run(e,t){let n=cl.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}let Jg=$.c.bindToContribution(cl.get);function cp(u,e,t){let n=I.u.ordered(u);return Object(Bi.h)(n.map(o=>()=>Promise.resolve(o.provideOnTypeRenameRanges(u,e,t)).then(d=>{if(d)return{ranges:d.ranges,wordPattern:d.wordPattern||o.wordPattern}},d=>{Object(De.f)(d)})),o=>!!o&&ee.o(o==null?void 0:o.ranges))}Object($.l)(new Jg({id:"cancelOnTypeRenameInput",precondition:lp,handler:u=>u.clearRanges(),kbOpts:{kbExpr:z.a.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));let ef=Object(Ue.gc)("editor.onTypeRenameBackground",{dark:Kn.a.fromHex("#f00").transparent(.3),light:Kn.a.fromHex("#f00").transparent(.3),hc:Kn.a.fromHex("#f00").transparent(.3)},G.a("editorOnTypeRenameBackground","Background color when the editor auto renames on type."));Object(ut.g)((u,e)=>{let t=u.getColor(ef);t&&e.addRule(`.monaco-editor .on-type-rename-decoration { background: ${t}; border-left-color: ${t}; }`)}),Object($.p)("_executeRenameOnTypeProvider",(u,e)=>cp(u,e,Dn.a.None)),Object($.m)(cl.ID,cl),Object($.k)(Qg),r(323);var tf=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Sh=function(u,e){return function(t,n){e(t,n,u)}};let kd=new A.c("renameInputVisible",!1),kh=class{constructor(u,e,t,n,o){this._editor=u,this._acceptKeybindings=e,this._themeService=t,this._keybindingService=n,this._disposables=new Lt.b,this.allowEditorOverflow=!0,this._visibleContextKey=kd.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(36)&&this._updateFont()})),this._disposables.add(t.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(G.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);let u=()=>{var e,t;let[n,o]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=Object(G.a)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(e=this._keybindingService.lookupKeybinding(n))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(o))===null||t===void 0?void 0:t.getLabel())};u(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(u)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(u){var e,t,n,o;if(!this._input||!this._domNode)return;let d=u.getColor(Ue.uc);this._domNode.style.backgroundColor=String((e=u.getColor(Ue.U))!==null&&e!==void 0?e:""),this._domNode.style.boxShadow=d?" 0 2px 8px "+d:"",this._domNode.style.color=String((t=u.getColor(Ue.hb))!==null&&t!==void 0?t:""),this._input.style.backgroundColor=String((n=u.getColor(Ue.fb))!==null&&n!==void 0?n:"");let m=u.getColor(Ue.gb);this._input.style.borderWidth=m?"1px":"0px",this._input.style.borderStyle=m?"solid":"none",this._input.style.borderColor=(o=m==null?void 0:m.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;let u=this._editor.getOption(36);this._input.style.fontFamily=u.fontFamily,this._input.style.fontWeight=u.fontWeight,this._input.style.fontSize=u.fontSize+"px",this._label.style.fontSize=.8*u.fontSize+"px"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}acceptInput(u){this._currentAcceptInput&&this._currentAcceptInput(u)}cancelInput(u){this._currentCancelInput&&this._currentCancelInput(u)}getInput(u,e,t,n,o,d){this._domNode.classList.toggle("preview",o),this._position=new Oi.a(u.startLineNumber,u.startColumn),this._input.value=e,this._input.setAttribute("selectionStart",t.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max(1.1*(u.endColumn-u.startColumn),20);let m=new Lt.b;return new Promise(D=>{this._currentCancelInput=oe=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,D(oe),!0),this._currentAcceptInput=oe=>{this._input.value.trim().length!==0&&this._input.value!==e?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,D({newName:this._input.value,wantsPreview:o&&oe})):this.cancelInput(!0)},d.onCancellationRequested(()=>this.cancelInput(!0)),m.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{m.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};kh=tf([Sh(2,ut.c),Sh(3,Ot.a),Sh(4,A.b)],kh);var Eh=r(102),mc=r(56),nf=r(128),rf=r(152),of=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},gc=function(u,e){return function(t,n){e(t,n,u)}},fc=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class dp{constructor(e,t){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=I.w.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return fc(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){let o=this._providers[this._providerRenameIdx];if(!o.resolveRenameLocation)break;let d=yield o.resolveRenameLocation(this.model,this.position,e);if(d){if(!d.rejectReason)return d;t.push(d.rejectReason)}}let n=this.model.getWordAtPosition(this.position);return n?{range:new gt.a(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word,rejectReason:t.length>0?t.join(` `):void 0}:{range:gt.a.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` -`):void 0}})}provideRenameEdits(e,t){return fc(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,n,r){return fc(this,void 0,void 0,function*(){let d=this._providers[t];if(!d)return{edits:[],rejectReason:n.join(` -`)};let m=yield d.provideRenameEdits(this.model,this.position,e,r);return m?m.rejectReason?this._provideRenameEdits(e,t+1,n.concat(m.rejectReason),r):m:this._provideRenameEdits(e,t+1,n.concat(G.a("no result","No result.")),r)})}}let zl=class vm{constructor(e,t,n,r,d,m,O){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=r,this._progressService=d,this._logService=m,this._configService=O,this._dispoableStore=new Lt.b,this._cts=new On.b,this._renameInputField=this._dispoableStore.add(new Bi.b(()=>this._dispoableStore.add(this._instaService.createInstance(kh,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(vm.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return fc(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;let e=this.editor.getPosition(),t=new dp(this.editor.getModel(),e);if(!t.hasProvider())return;let n;this._cts=new qt.b(this.editor,5);try{let ce=t.resolveRenameLocation(this._cts.token);this._progressService.showWhile(ce,250),n=yield ce}catch(ce){return void wi.get(this.editor).showMessage(ce||G.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e)}if(!n)return;if(n.rejectReason)return void wi.get(this.editor).showMessage(n.rejectReason,e);if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qt.b(this.editor,5,n.range);let r=this.editor.getSelection(),d=0,m=n.text.length;gt.a.isEmpty(r)||gt.a.spansMultipleLines(r)||!gt.a.containsRange(n.range,r)||(d=Math.max(0,r.startColumn-n.range.startColumn),m=Math.min(n.range.endColumn,r.endColumn)-n.range.startColumn);let O=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),re=yield this._renameInputField.value.getInput(n.range,n.text,d,m,O,this._cts.token);if(typeof re=="boolean")return void(re&&this.editor.focus());this.editor.focus();let oe=Object(Bi.j)(t.provideRenameEdits(re.newName,this._cts.token),this._cts.token).then(ce=>fc(this,void 0,void 0,function*(){ce&&this.editor.hasModel()&&(ce.rejectReason?this._notificationService.info(ce.rejectReason):this._bulkEditService.apply(ho.b.convert(ce),{editor:this.editor,showPreview:re.wantsPreview,label:G.a("label","Renaming '{0}'",n==null?void 0:n.text),quotableLabel:G.a("quotableLabel","Renaming {0}",n==null?void 0:n.text)}).then(Me=>{Me.ariaSummary&&Object(_i.a)(G.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,re.newName,Me.ariaSummary))}).catch(Me=>{this._notificationService.error(G.a("rename.failedApply","Rename failed to apply edits")),this._logService.error(Me)}))}),ce=>{this._notificationService.error(G.a("rename.failed","Rename failed to compute edits")),this._logService.error(ce)});return this._progressService.showWhile(oe,250),oe})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};zl.ID="editor.contrib.renameController",zl=rf([gc(1,X.a),gc(2,Re.a),gc(3,ho.a),gc(4,ot.a),gc(5,Eh.b),gc(6,of.a)],zl);class sf extends $.b{constructor(){super({id:"editor.action.rename",label:G.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:A.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let n=e.get(Si.a),[r,d]=Array.isArray(t)&&t||[void 0,void 0];return Dn.a.isUri(r)&&Di.a.isIPosition(d)?n.openCodeEditor({resource:r},n.getActiveCodeEditor()).then(m=>{m&&(m.setPosition(d),m.invokeWithinContext(O=>(this.reportTelemetry(O,m),this.run(O,m))))},Oe.e):super.runCommand(e,t)}run(e,t){let n=zl.get(t);return n?n.run():Promise.resolve()}}Object($.m)(zl.ID,zl),Object($.k)(sf);let Th=$.c.bindToContribution(zl.get);Object($.l)(new Th({id:"acceptRenameInput",precondition:kd,handler:u=>u.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:z.a.focus,primary:3}})),Object($.l)(new Th({id:"acceptRenameInputWithPreview",precondition:A.a.and(kd,A.a.has("config.editor.rename.enablePreview")),handler:u=>u.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:z.a.focus,primary:1027}})),Object($.l)(new Th({id:"cancelRenameInput",precondition:kd,handler:u=>u.cancelRenameInput(),kbOpts:{weight:199,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.p)("_executeDocumentRenameProvider",function(u,e,...t){let[n]=t;return Object(to.b)(typeof n=="string"),function(r,d,m){return fc(this,void 0,void 0,function*(){let O=new dp(r,d),re=yield O.resolveRenameLocation(On.a.None);return(re==null?void 0:re.rejectReason)?{edits:[],rejectReason:re.rejectReason}:O.provideRenameEdits(m,On.a.None)})}(u,e,n)}),mc.a.as(nf.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:G.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var af=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class as{provideSelectionRanges(e,t){return af(this,void 0,void 0,function*(){let n=[];for(let r of t){let d=[];n.push(d);let m=new Map;yield new Promise(O=>as._bracketsRightYield(O,0,e,r,m)),yield new Promise(O=>as._bracketsLeftYield(O,0,e,r,m,d))}return n})}static _bracketsRightYield(e,t,n,r,d){let m=new Map,O=Date.now();for(;;){if(t>=as._maxRounds){e();break}if(!r){e();break}let re=n.findNextBracket(r);if(!re){e();break}if(Date.now()-O>as._maxDuration){setTimeout(()=>as._bracketsRightYield(e,t+1,n,r,d));break}let oe=re.close[0];if(re.isOpen){let ce=m.has(oe)?m.get(oe):0;m.set(oe,ce+1)}else{let ce=m.has(oe)?m.get(oe):0;if(ce-=1,m.set(oe,Math.max(0,ce)),ce<0){let Me=d.get(oe);Me||(Me=new Sl.a,d.set(oe,Me)),Me.push(re.range)}}r=re.range.getEndPosition()}}static _bracketsLeftYield(e,t,n,r,d,m){let O=new Map,re=Date.now();for(;;){if(t>=as._maxRounds&&d.size===0){e();break}if(!r){e();break}let oe=n.findPrevBracket(r);if(!oe){e();break}if(Date.now()-re>as._maxDuration){setTimeout(()=>as._bracketsLeftYield(e,t+1,n,r,d,m));break}let ce=oe.close[0];if(oe.isOpen){let Me=O.has(ce)?O.get(ce):0;if(Me-=1,O.set(ce,Math.max(0,Me)),Me<0){let Ct=d.get(ce);if(Ct){let Ut=Ct.shift();Ct.size===0&&d.delete(ce);let St=gt.a.fromPositions(oe.range.getEndPosition(),Ut.getStartPosition()),di=gt.a.fromPositions(oe.range.getStartPosition(),Ut.getEndPosition());m.push({range:St}),m.push({range:di}),as._addBracketLeading(n,di,m)}}}else{let Me=O.has(ce)?O.get(ce):0;O.set(ce,Me+1)}r=oe.range.getStartPosition()}}static _addBracketLeading(e,t,n){if(t.startLineNumber===t.endLineNumber)return;let r=t.startLineNumber,d=e.getLineFirstNonWhitespaceColumn(r);d!==0&&d!==t.startColumn&&(n.push({range:gt.a.fromPositions(new Di.a(r,d),t.getEndPosition())}),n.push({range:gt.a.fromPositions(new Di.a(r,1),t.getEndPosition())}));let m=r-1;if(m>0){let O=e.getLineFirstNonWhitespaceColumn(m);O===t.startColumn&&O!==e.getLineLastNonWhitespaceColumn(m)&&(n.push({range:gt.a.fromPositions(new Di.a(m,O),t.getEndPosition())}),n.push({range:gt.a.fromPositions(new Di.a(m,1),t.getEndPosition())}))}}}as._maxDuration=30,as._maxRounds=2;var lf=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class Lh{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let n=new Lh(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n}}class bc{constructor(e){this._ignoreSelection=!1,this._editor=e}static get(e){return e.getContribution(bc.ID)}dispose(){Object(Lt.f)(this._selectionListener)}run(e){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),n=this._editor.getModel();if(!I.x.has(n))return;let r=Promise.resolve(void 0);return this._state||(r=up(n,t.map(d=>d.getPosition()),On.a.None).then(d=>{if(ee.o(d)&&d.length===t.length&&this._editor.hasModel()&&ee.g(this._editor.getSelections(),t,(m,O)=>m.equalsSelection(O))){for(let m=0;m<d.length;m++)d[m]=d[m].filter(O=>O.containsPosition(t[m].getStartPosition())&&O.containsPosition(t[m].getEndPosition())),d[m].unshift(t[m]);this._state=d.map(m=>new Lh(0,m)),Object(Lt.f)(this._selectionListener),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(Object(Lt.f)(this._selectionListener),this._state=void 0)})}})),r.then(()=>{if(!this._state)return;this._state=this._state.map(m=>m.mov(e));let d=this._state.map(m=>J.a.fromPositions(m.ranges[m.index].getStartPosition(),m.ranges[m.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(d)}finally{this._ignoreSelection=!1}})}}bc.ID="editor.contrib.smartSelectController";class hp extends $.b{constructor(e,t){super(t),this._forward=e}run(e,t){return lf(this,void 0,void 0,function*(){let n=bc.get(t);n&&(yield n.run(this._forward))})}}Ee.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");function up(u,e,t){let n=I.x.all(u);n.length===1&&n.unshift(new as);let r=[],d=[];for(let m of n)r.push(Promise.resolve(m.provideSelectionRanges(u,e,t)).then(O=>{if(ee.o(O)&&O.length===e.length)for(let re=0;re<e.length;re++){d[re]||(d[re]=[]);for(let oe of O[re])gt.a.isIRange(oe.range)&>.a.containsPosition(oe.range,e[re])&&d[re].push(gt.a.lift(oe.range))}},Oe.f));return Promise.all(r).then(()=>d.map(m=>{if(m.length===0)return[];m.sort((ce,Me)=>Di.a.isBefore(ce.getStartPosition(),Me.getStartPosition())?1:Di.a.isBefore(Me.getStartPosition(),ce.getStartPosition())||Di.a.isBefore(ce.getEndPosition(),Me.getEndPosition())?-1:Di.a.isBefore(Me.getEndPosition(),ce.getEndPosition())?1:0);let O,re=[];for(let ce of m)(!O||gt.a.containsRange(ce,O)&&!gt.a.equalsRange(ce,O))&&(re.push(ce),O=ce);let oe=[re[0]];for(let ce=1;ce<re.length;ce++){let Me=re[ce-1],Ct=re[ce];if(Ct.startLineNumber!==Me.startLineNumber||Ct.endLineNumber!==Me.endLineNumber){let Ut=new gt.a(Me.startLineNumber,u.getLineFirstNonWhitespaceColumn(Me.startLineNumber),Me.endLineNumber,u.getLineLastNonWhitespaceColumn(Me.endLineNumber));Ut.containsRange(Me)&&!Ut.equalsRange(Me)&&Ct.containsRange(Ut)&&!Ct.equalsRange(Ut)&&oe.push(Ut);let St=new gt.a(Me.startLineNumber,1,Me.endLineNumber,u.getLineMaxColumn(Me.endLineNumber));St.containsRange(Me)&&!St.equalsRange(Ut)&&Ct.containsRange(St)&&!Ct.equalsRange(St)&&oe.push(St)}oe.push(Ct)}return oe}))}Object($.m)(bc.ID,bc),Object($.k)(class extends hp{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:G.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"1_basic",title:G.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),Object($.k)(class extends hp{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:G.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"1_basic",title:G.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),I.x.register("*",new class{provideSelectionRanges(u,e){let t=[];for(let n of e){let r=[];t.push(r),this._addInWordRanges(r,u,n),this._addWordRanges(r,u,n),this._addWhitespaceLine(r,u,n),r.push({range:u.getFullModelRange()})}return t}_addInWordRanges(u,e,t){let n=e.getWordAtPosition(t);if(!n)return;let{word:r,startColumn:d}=n,m=t.column-d,O=m,re=m,oe=0;for(;O>=0;O--){let ce=r.charCodeAt(O);if(O!==m&&(ce===95||ce===45)||Object(on.H)(ce)&&Object(on.I)(oe))break;oe=ce}for(O+=1;re<r.length;re++){let ce=r.charCodeAt(re);if(Object(on.I)(ce)&&Object(on.H)(oe)||ce===95||ce===45)break;oe=ce}O<re&&u.push({range:new gt.a(t.lineNumber,d+O,t.lineNumber,d+re)})}_addWordRanges(u,e,t){let n=e.getWordAtPosition(t);n&&u.push({range:new gt.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn)})}_addWhitespaceLine(u,e,t){e.getLineLength(t.lineNumber)>0&&e.getLineFirstNonWhitespaceColumn(t.lineNumber)===0&&e.getLineLastNonWhitespaceColumn(t.lineNumber)===0&&u.push({range:new gt.a(t.lineNumber,1,t.lineNumber,e.getLineMaxColumn(t.lineNumber))})}}),Object($.q)("_executeSelectionRangeProvider",function(u,...e){let[t]=e;return up(u,t,On.a.None)});class Ws{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,n=0,r=this.value.charCodeAt(t);if(e=Ws._table[r],typeof e=="number")return this.pos+=1,{type:e,pos:t,len:1};if(Ws.isDigitCharacter(r)){e=8;do n+=1,r=this.value.charCodeAt(t+n);while(Ws.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}if(Ws.isVariableCharacter(r)){e=9;do r=this.value.charCodeAt(t+ ++n);while(Ws.isVariableCharacter(r)||Ws.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}e=10;do n+=1,r=this.value.charCodeAt(t+n);while(!isNaN(r)&&Ws._table[r]===void 0&&!Ws.isDigitCharacter(r)&&!Ws.isVariableCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}}Ws._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class _c{constructor(){this._children=[]}appendChild(e){return e instanceof Qr&&this._children[this._children.length-1]instanceof Qr?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,r=n.children.indexOf(e),d=n.children.slice(0);d.splice(r,1,...t),n._children=d,function m(O,re){for(let oe of O)oe.parent=re,m(oe.children,oe)}(t,n)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Ed)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Qr extends _c{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Qr(this.value)}}class pp extends _c{}class zs extends pp{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Fc?this._children[0]:void 0}clone(){let e=new zs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Fc extends _c{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Qr&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new Fc;return this.options.forEach(e.appendChild,e),e}}class Nh extends _c{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,n=!1,r=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(d=>d instanceof ia&&Boolean(d.elseValue))&&(r=this._replace([])),r}_replace(e){let t="";for(let n of this._children)if(n instanceof ia){let r=e[n.index]||"";r=n.resolve(r),t+=r}else t+=n.toString();return t}toString(){return""}clone(){let e=new Nh;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class ia extends _c{constructor(e,t,n,r){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:Boolean(e)||typeof this.elseValue!="string"?e||"":this.elseValue}_toPascalCase(e){let t=e.match(/[a-z]+/gi);return t?t.map(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}).join(""):e}clone(){return new ia(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Wc extends pp{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0&&(this._children=[new Qr(t)],!0)}clone(){let e=new Wc(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function mp(u,e){let t=[...u];for(;t.length>0;){let n=t.shift();if(!e(n))break;t.unshift(...n.children)}}class Ed extends _c{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk(function(n){return n instanceof zs&&(t.push(n),e=!e||e.index<n.index?n:e),!0}),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(r=>r===e?(n=!0,!1):(t+=r.len(),!0)),n?t:-1}fullLen(e){let t=0;return mp([e],n=>(t+=n.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof zs&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Wc&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new Ed;return this._children=this.children.map(t=>t.clone()),e}walk(e){mp(this.children,e)}}class Ih{constructor(){this._scanner=new Ws,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){this._scanner.text(e),this._token=this._scanner.next();let r=new Ed;for(;this._parse(r););let d=new Map,m=[],O=0;r.walk(re=>(re instanceof zs&&(O+=1,re.isFinalTabstop?d.set(0,void 0):!d.has(re.index)&&re.children.length>0?d.set(re.index,re.children):m.push(re)),!0));for(let re of m){let oe=d.get(re.index);if(oe){let ce=new zs(re.index);ce.transform=re.transform;for(let Me of oe)ce.appendChild(Me.clone());r.replace(re,[ce])}}return n||(n=O>0&&t),!d.has(0)&&n&&r.appendChild(new zs(0)),r}_accept(e,t){if(e===void 0||this._token.type===e){let n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let r=this._scanner.next();if(r.type!==0&&r.type!==4&&r.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Qr(t)),!0)}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new zs(Number(t)):new Wc(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let r=new zs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Qr("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else{if(!(r.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);{let d=new Fc;for(;;){if(this._parseChoiceElement(d)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(d),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}}}_parseChoiceElement(e){let t=this._token,n=[];for(;this._token.type!==2&&this._token.type!==7;){let r;if(r=(r=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:this._accept(void 0,!0),!r)return this._backTo(t),!1;n.push(r)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new Qr(n.join(""))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let r=new Wc(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Qr("${"+t+":")),r.children.forEach(e.appendChild,e),!0}}_parseTransform(e){let t=new Nh,n="",r="";for(;!this._accept(6);){let d;if(d=this._accept(5,!0))d=this._accept(6,!0)||d,n+=d;else{if(this._token.type===14)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);){let d;if(d=this._accept(5,!0))d=this._accept(5,!0)||this._accept(6,!0)||d,t.appendChild(new Qr(d));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(this._token.type===14)return!1;r+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,r)}catch(d){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let r=this._accept(8,!0);if(!r)return this._backTo(t),!1;if(!n)return e.appendChild(new ia(Number(r))),!0;if(this._accept(4))return e.appendChild(new ia(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let d=this._accept(9,!0);return d&&this._accept(4)?(e.appendChild(new ia(Number(r),d)),!0):(this._backTo(t),!1)}if(this._accept(11)){let d=this._until(4);if(d)return e.appendChild(new ia(Number(r),void 0,d,void 0)),!0}else if(this._accept(12)){let d=this._until(4);if(d)return e.appendChild(new ia(Number(r),void 0,void 0,d)),!0}else if(this._accept(13)){let d=this._until(1);if(d){let m=this._until(4);if(m)return e.appendChild(new ia(Number(r),void 0,d,m)),!0}}else{let d=this._until(4);if(d)return e.appendChild(new ia(Number(r),void 0,void 0,d)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14&&(e.appendChild(new Qr(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}var zc=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let co={Visible:new A.c("suggestWidgetVisible",!1),DetailsVisible:new A.c("suggestWidgetDetailsVisible",!1),MultipleSuggestions:new A.c("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new A.c("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new A.c("acceptSuggestionOnEnter",!0),HasInsertAndReplaceRange:new A.c("suggestionHasInsertAndReplaceRange",!1),CanResolve:new A.c("suggestionCanResolve",!1)},dl=new ze.b("suggestWidgetStatusBar");class cf{constructor(e,t,n,r){this.position=e,this.completion=t,this.container=n,this.provider=r,this.isInvalid=!1,this.score=kn.a.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),gt.a.isIRange(t.range)?(this.editStart=new Di.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Di.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Di.a(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||gt.a.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Di.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Di.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Di.a(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||gt.a.spansMultipleLines(t.range.insert)||gt.a.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof r.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return zc(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._isResolved=!0,t.dispose()},n=>{Object(Oe.d)(n)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Td{constructor(e=2,t=new Set,n=new Set){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}}Td.default=new Td;class df{constructor(e,t,n){this.items=e,this.needsClipboard=t,this.dispoables=n}}function gp(u,e,t=Td.default,n={triggerKind:0},r=On.a.None){return zc(this,void 0,void 0,function*(){e=e.clone();let d=u.getWordAtPosition(e),m=d?new gt.a(e.lineNumber,d.startColumn,e.lineNumber,d.endColumn):gt.a.fromPositions(e),O={replace:m,insert:m.setEndPosition(e.lineNumber,e.column)},re=[],oe=new Lt.b,ce=!1,Me=(Ut,St)=>{if(St){for(let di of St.suggestions)t.kindFilter.has(di.kind)||(di.range||(di.range=O),di.sortText||(di.sortText=typeof di.label=="string"?di.label:di.label.name),!ce&&di.insertTextRules&&4&di.insertTextRules&&(ce=Ih.guessNeedsClipboard(di.insertText)),re.push(new cf(e,di,St,Ut)));Object(Lt.g)(St)&&oe.add(St)}},Ct=(()=>zc(this,void 0,void 0,function*(){}))();for(let Ut of I.d.orderedGroups(u)){let St=re.length;if(yield Promise.all(Ut.map(di=>zc(this,void 0,void 0,function*(){if(!(t.providerFilter.size>0)||t.providerFilter.has(di))try{let hi=yield di.provideCompletionItems(u,e,n,r);Me(di,hi)}catch(hi){Object(Oe.f)(hi)}}))),St!==re.length||r.isCancellationRequested)break}return yield Ct,r.isCancellationRequested?(oe.dispose(),Promise.reject(Object(Oe.a)())):new df(re.sort(fp(t.snippetSortOrder)),ce,oe)})}function Oh(u,e){if(u.sortTextLow&&e.sortTextLow){if(u.sortTextLow<e.sortTextLow)return-1;if(u.sortTextLow>e.sortTextLow)return 1}return u.completion.label<e.completion.label?-1:u.completion.label>e.completion.label?1:u.completion.kind-e.completion.kind}let Ld=new Map;function fp(u){return Ld.get(u)}Ld.set(0,function(u,e){if(u.completion.kind!==e.completion.kind){if(u.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return Oh(u,e)}),Ld.set(2,function(u,e){if(u.completion.kind!==e.completion.kind){if(u.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Oh(u,e)}),Ld.set(1,Oh),Object($.j)("_executeCompletionItemProvider",(u,e,t)=>zc(void 0,void 0,void 0,function*(){let n={incomplete:!1,suggestions:[]},r=[],d=t.maxItemsToResolve||0,m=yield gp(u,e);for(let O of m.items)r.length<d&&r.push(O.resolve(On.a.None)),n.incomplete=n.incomplete||O.container.incomplete,n.suggestions.push(O.completion);try{return yield Promise.all(r),n}finally{setTimeout(()=>m.dispoables.dispose(),100)}}));let Dh=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){let u={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,u}};I.d.register("*",Dh),o(325);var hf=o(169);function bp(u){return u instanceof Dn.a}class uf{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let n=t.resolve(e);if(n!==void 0)return n}}}class pf{constructor(e,t,n,r){this._model=e,this._selection=t,this._selectionIdx=n,this._overtypingCapturer=r}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let n=this._model.getValueInRange(this._selection)||void 0,r=this._selection.startLineNumber!==this._selection.endLineNumber;if(!n&&this._overtypingCapturer){let d=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);d&&(n=d.value,r=d.multiline)}if(n&&r&&e.snippet){let d=this._model.getLineContent(this._selection.startLineNumber),m=Object(on.z)(d,0,this._selection.startColumn-1),O=m;e.snippet.walk(oe=>oe!==e&&(oe instanceof Qr&&(O=Object(on.z)(oe.value.split(/\r\n|\r|\n/).pop())),!0));let re=Object(on.d)(O,m);n=n.replace(/(\r\n|\r|\n)(.*)/g,(oe,ce,Me)=>`${ce}${O.substr(re)}${Me}`)}return n}if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let n=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return n&&n.word||void 0}return t==="TM_LINE_INDEX"?String(this._selection.positionLineNumber-1):t==="TM_LINE_NUMBER"?String(this._selection.positionLineNumber):void 0}}class mf{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return mt.a(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let n=mt.a(this._model.uri.fsPath),r=n.lastIndexOf(".");return r<=0?n:n.slice(0,r)}return t==="TM_DIRECTORY"&&this._labelService?mt.b(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(Be.d)(this._model.uri)):t==="TM_FILEPATH"&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0}}class gf{constructor(e,t,n,r){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=r}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let n=t.split(/\r\n|\n|\r/).filter(r=>!Object(on.D)(r));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}}class ff{constructor(e,t){this._model=e,this._selection=t}resolve(e){let{name:t}=e,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),r=Oo.a.getComments(n);if(r)return t==="LINE_COMMENT"?r.lineCommentToken||void 0:t==="BLOCK_COMMENT_START"?r.blockCommentStartToken||void 0:t==="BLOCK_COMMENT_END"&&r.blockCommentEndToken||void 0}}class ba{resolve(e){let{name:t}=e;return t==="CURRENT_YEAR"?String(new Date().getFullYear()):t==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):t==="CURRENT_MONTH"?String(new Date().getMonth().valueOf()+1).padStart(2,"0"):t==="CURRENT_DATE"?String(new Date().getDate().valueOf()).padStart(2,"0"):t==="CURRENT_HOUR"?String(new Date().getHours().valueOf()).padStart(2,"0"):t==="CURRENT_MINUTE"?String(new Date().getMinutes().valueOf()).padStart(2,"0"):t==="CURRENT_SECOND"?String(new Date().getSeconds().valueOf()).padStart(2,"0"):t==="CURRENT_DAY_NAME"?ba.dayNames[new Date().getDay()]:t==="CURRENT_DAY_NAME_SHORT"?ba.dayNamesShort[new Date().getDay()]:t==="CURRENT_MONTH_NAME"?ba.monthNames[new Date().getMonth()]:t==="CURRENT_MONTH_NAME_SHORT"?ba.monthNamesShort[new Date().getMonth()]:t==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0}}ba.dayNames=[G.a("Sunday","Sunday"),G.a("Monday","Monday"),G.a("Tuesday","Tuesday"),G.a("Wednesday","Wednesday"),G.a("Thursday","Thursday"),G.a("Friday","Friday"),G.a("Saturday","Saturday")],ba.dayNamesShort=[G.a("SundayShort","Sun"),G.a("MondayShort","Mon"),G.a("TuesdayShort","Tue"),G.a("WednesdayShort","Wed"),G.a("ThursdayShort","Thu"),G.a("FridayShort","Fri"),G.a("SaturdayShort","Sat")],ba.monthNames=[G.a("January","January"),G.a("February","February"),G.a("March","March"),G.a("April","April"),G.a("May","May"),G.a("June","June"),G.a("July","July"),G.a("August","August"),G.a("September","September"),G.a("October","October"),G.a("November","November"),G.a("December","December")],ba.monthNamesShort=[G.a("JanuaryShort","Jan"),G.a("FebruaryShort","Feb"),G.a("MarchShort","Mar"),G.a("AprilShort","Apr"),G.a("MayShort","May"),G.a("JuneShort","Jun"),G.a("JulyShort","Jul"),G.a("AugustShort","Aug"),G.a("SeptemberShort","Sep"),G.a("OctoberShort","Oct"),G.a("NovemberShort","Nov"),G.a("DecemberShort","Dec")];class bf{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=function(n){return n.configuration?{configPath:n.configuration,id:n.id}:n.folders.length===1?n.folders[0].uri:void 0}(this._workspaceService.getWorkspace());return t?e.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(t):e.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if(bp(e))return mt.a(e.path);let t=mt.a(e.configPath.path);return t.endsWith("code-workspace")&&(t=t.substr(0,t.length-"code-workspace".length-1)),t}_resoveWorkspacePath(e){if(bp(e))return en(e.fsPath);let t=mt.a(e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?en(n):"/"}}class _f{resolve(e){let{name:t}=e;return t==="RANDOM"?Math.random().toString().slice(-6):t==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0}}Object(ut.g)((u,e)=>{function t(n){let r=u.getColor(n);return r?r.toString():"transparent"}e.addRule(`.monaco-editor .snippet-placeholder { background-color: ${t(Ue.oc)}; outline-color: ${t(Ue.pc)}; }`),e.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${t(Ue.mc)}; outline-color: ${t(Ue.nc)}; }`)});class Bs{constructor(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(ee.m)(t.placeholders,zs.compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let n of this._snippet.placeholders){let r=this._snippet.offset(n),d=this._snippet.fullLen(n),m=gt.a.fromPositions(e.getPositionAt(this._offset+r),e.getPositionAt(this._offset+r+d)),O=n.isFinalTabstop?Bs._decor.inactiveFinal:Bs._decor.inactive,re=t.addDecoration(m,O);this._placeholderDecorations.set(n,re)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let r=[];for(let d of this._placeholderGroups[this._placeholderGroupsIdx])if(d.transform){let m=this._placeholderDecorations.get(d),O=this._editor.getModel().getDecorationRange(m),re=this._editor.getModel().getValueInRange(O);r.push(Cn.a.replaceMove(O,d.transform.resolve(re)))}r.length>0&&this._editor.executeEdits("snippet.placeholderTransform",r)}let t=!1;e===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):e===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);let n=this._editor.getModel().changeDecorations(r=>{let d=new Set,m=[];for(let O of this._placeholderGroups[this._placeholderGroupsIdx]){let re=this._placeholderDecorations.get(O),oe=this._editor.getModel().getDecorationRange(re);m.push(new J.a(oe.startLineNumber,oe.startColumn,oe.endLineNumber,oe.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(O),r.changeDecorationOptions(re,O.isFinalTabstop?Bs._decor.activeFinal:Bs._decor.active),d.add(O);for(let ce of this._snippet.enclosingPlaceholders(O)){let Me=this._placeholderDecorations.get(ce);r.changeDecorationOptions(Me,ce.isFinalTabstop?Bs._decor.activeFinal:Bs._decor.active),d.add(ce)}}for(let[O,re]of this._placeholderDecorations)d.has(O)||r.changeDecorationOptions(re,O.isFinalTabstop?Bs._decor.inactiveFinal:Bs._decor.inactive);return m});return t?this.move(e):n??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof zs){let n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let n;for(let r of t){if(r.isFinalTabstop)break;n||(n=[],e.set(r.index,n));let d=this._placeholderDecorations.get(r),m=this._editor.getModel().getDecorationRange(d);if(!m){e.delete(r.index);break}n.push(m)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(n=>{for(let r of this._placeholderGroups[this._placeholderGroupsIdx]){let d=e.shift();console.assert(!d._placeholderDecorations);let m=d._snippet.placeholderInfo.last.index;for(let re of d._snippet.placeholderInfo.all)re.isFinalTabstop?re.index=r.index+(m+1)/this._nestingLevel:re.index=r.index+re.index/this._nestingLevel;this._snippet.replace(r,d._snippet.children);let O=this._placeholderDecorations.get(r);n.removeDecoration(O),this._placeholderDecorations.delete(r);for(let re of d._snippet.placeholders){let oe=d._snippet.offset(re),ce=d._snippet.fullLen(re),Me=gt.a.fromPositions(t.getPositionAt(d._offset+oe),t.getPositionAt(d._offset+oe+ce)),Ct=n.addDecoration(Me,Bs._decor.inactive);this._placeholderDecorations.set(re,Ct)}}this._placeholderGroups=Object(ee.m)(this._snippet.placeholders,zs.compareByIndex)})}}Bs._decor={active:Rt.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:Rt.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:Rt.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Rt.a.register({stickiness:1,className:"finish-snippet-placeholder"})};let _p={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class ja{constructor(e,t,n=_p){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}static adjustWhitespace(e,t,n,r,d){let m=e.getLineContent(t.lineNumber),O=Object(on.z)(m,0,t.column-1);n.walk(re=>{if(re instanceof Qr&&!(re.parent instanceof Fc)){let oe=re.value.split(/\r\n|\r|\n/);if(r)for(let ce=1;ce<oe.length;ce++){let Me=Object(on.z)(oe[ce]);oe[ce]=e.normalizeIndentation(O+Me)+oe[ce].substr(Me.length)}if(d){let ce=oe.join(e.getEOL());ce!==re.value&&re.parent.replace(re,[new Qr(ce)])}}return!0})}static adjustSelection(e,t,n,r){if(n!==0||r!==0){let{positionLineNumber:d,positionColumn:m}=t,O=m-n,re=m+r,oe=e.validateRange({startLineNumber:d,startColumn:O,endLineNumber:d,endColumn:re});t=J.a.createWithDirection(oe.startLineNumber,oe.startColumn,oe.endLineNumber,oe.endColumn,t.getDirection())}return t}static createEditsAndSnippets(e,t,n,r,d,m,O,re){let oe=[],ce=[];if(!e.hasModel())return{edits:oe,snippets:ce};let Me=e.getModel(),Ct=e.invokeWithinContext(Ki=>Ki.get(hf.a,X.d)),Ut=e.invokeWithinContext(Ki=>new mf(Ki.get(De.a,X.d),Me)),St=()=>O,di=0,hi=Me.getValueInRange(ja.adjustSelection(Me,e.getSelection(),n,0)),ji=Me.getValueInRange(ja.adjustSelection(Me,e.getSelection(),0,r)),Ji=Me.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),dn=e.getSelections().map((Ki,yn)=>({selection:Ki,idx:yn})).sort((Ki,yn)=>gt.a.compareRangesUsingStarts(Ki.selection,yn.selection));for(let{selection:Ki,idx:yn}of dn){let hn=ja.adjustSelection(Me,Ki,n,0),Qi=ja.adjustSelection(Me,Ki,0,r);hi!==Me.getValueInRange(hn)&&(hn=Ki),ji!==Me.getValueInRange(Qi)&&(Qi=Ki);let fn=Ki.setStartPosition(hn.startLineNumber,hn.startColumn).setEndPosition(Qi.endLineNumber,Qi.endColumn),$n=new Ih().parse(t,!0,d),bo=fn.getStartPosition();ja.adjustWhitespace(Me,bo,$n,m||yn>0&&Ji!==Me.getLineFirstNonWhitespaceColumn(Ki.positionLineNumber),!0),$n.resolveVariables(new uf([Ut,new gf(St,yn,dn.length,e.getOption(62)==="spread"),new pf(Me,Ki,yn,re),new ff(Me,Ki),new ba,new bf(Ct),new _f]));let zr=Me.getOffsetAt(bo)+di;di+=$n.toString().length-Me.getValueLengthInRange(fn),oe[yn]=Cn.a.replace(fn,$n.toString()),oe[yn].identifier={major:yn,minor:0},ce[yn]=new Bs(e,$n,zr)}return{edits:oe,snippets:ce}}dispose(){Object(Lt.f)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=ja.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=t,this._editor.executeEdits("snippet",e,n=>this._snippets[0].hasPlaceholder?this._move(!0):n.filter(r=>!!r.identifier).map(r=>J.a.fromPositions(r.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=_p){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:n,snippets:r}=ja.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",n,d=>{for(let m of this._snippets)m.merge(r);return console.assert(r.length===0),this._snippets[0].hasPlaceholder?this._move(void 0):d.filter(m=>!!m.identifier).map(m=>J.a.fromPositions(m.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let n of this._snippets){let r=n.move(e);t.push(...r)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;let e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;let t=new Map;for(let n of this._snippets){let r=n.computePossibleSelections();if(t.size===0)for(let[d,m]of r){m.sort(gt.a.compareRangesUsingStarts);for(let O of e)if(m[0].containsRange(O)){t.set(d,[]);break}}if(t.size===0)return!1;t.forEach((d,m)=>{d.push(...r.get(m))})}e.sort(gt.a.compareRangesUsingStarts);for(let[n,r]of t)if(r.length===e.length){r.sort(gt.a.compareRangesUsingStarts);for(let d=0;d<r.length;d++)r[d].containsRange(e[d])||t.delete(n)}else t.delete(n);return t.size>0}}var vf=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},vp=function(u,e){return function(t,n){e(t,n,u)}};let wp={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},ir=class td{constructor(e,t,n){this._editor=e,this._logService=t,this._snippetListener=new Lt.b,this._modelVersionId=-1,this._inSnippet=td.InSnippetMode.bindTo(n),this._hasNextTabstop=td.HasNextTabstop.bindTo(n),this._hasPrevTabstop=td.HasPrevTabstop.bindTo(n)}static get(e){return e.getContribution(td.ID)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(Lt.f)(this._session),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,t===void 0?wp:Object.assign(Object.assign({},wp),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ja(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(n=>n.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);let{choice:e}=this._session;var t,n;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(d=>J.a.fromPositions(d.getStartPosition())));let[r]=e.options;t=this._editor,n=e.options.map((d,m)=>({kind:13,label:d.value,insertText:d.value,sortText:"a".repeat(m+1),range:gt.a.fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,r.value.length))})),setTimeout(()=>{Dh.onlyOnceSuggestions.push(...n),t.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(Dh))},0)}}else this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(Lt.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};ir.ID="snippetController2",ir.InSnippetMode=new A.c("inSnippetMode",!1),ir.HasNextTabstop=new A.c("hasNextTabstop",!1),ir.HasPrevTabstop=new A.c("hasPrevTabstop",!1),ir=vf([vp(1,Eh.b),vp(2,A.b)],ir),Object($.m)(ir.ID,ir);let Nd=$.c.bindToContribution(ir.get);Object($.l)(new Nd({id:"jumpToNextSnippetPlaceholder",precondition:A.a.and(ir.InSnippetMode,ir.HasNextTabstop),handler:u=>u.next(),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:2}})),Object($.l)(new Nd({id:"jumpToPrevSnippetPlaceholder",precondition:A.a.and(ir.InSnippetMode,ir.HasPrevTabstop),handler:u=>u.prev(),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:1026}})),Object($.l)(new Nd({id:"leaveSnippet",precondition:ir.InSnippetMode,handler:u=>u.cancel(!0),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1033]}})),Object($.l)(new Nd({id:"acceptSnippet",precondition:ir.InSnippetMode,handler:u=>u.finish()}));var wf=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ah=function(u,e){return function(t,n){e(t,n,u)}};class Rh{constructor(e){this.name=e}select(e,t,n){if(n.length===0)return 0;let r=n[0].score[0];for(let d=0;d<n.length;d++){let{score:m,completion:O}=n[d];if(m[0]!==r)break;if(O.preselect)return d}return 0}}class yp extends Rh{constructor(){super("first")}memorize(e,t,n){}toJSON(){}fromJSON(){}}let Bc=class $d{constructor(e,t,n){this._storageService=e,this._modeService=t,this._configService=n,this._disposables=new Lt.b,this._persistSoon=new Bi.d(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(r=>{r.reason===Qn.c.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}select(e,t,n){return this._withStrategy(e,t).select(e,t,n)}_withStrategy(e,t){var n,r;let d=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:(n=this._modeService.getLanguageIdentifier(e.getLanguageIdAtPosition(t.lineNumber,t.column)))===null||n===void 0?void 0:n.language,resource:e.uri});if(((r=this._strategy)===null||r===void 0?void 0:r.name)!==d){this._saveState();let m=$d._strategyCtors.get(d)||yp;this._strategy=new m;try{let O=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,re=this._storageService.get(`${$d._storagePrefix}/${d}`,O);re&&this._strategy.fromJSON(JSON.parse(re))}catch(O){}}return this._strategy}_saveState(){if(this._strategy){let e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${$d._storagePrefix}/${this._strategy.name}`,t,e)}}};Bc._strategyCtors=new Map([["recentlyUsedByPrefix",class extends Rh{constructor(){super("recentlyUsedByPrefix"),this._trie=Rn.c.forStrings(),this._seq=0}memorize(u,e,t){let{word:n}=u.getWordUntilPosition(e),r=`${u.getLanguageIdentifier().language}/${n}`;this._trie.set(r,{type:t.completion.kind,insertText:t.completion.insertText,touch:this._seq++})}select(u,e,t){let{word:n}=u.getWordUntilPosition(e);if(!n)return super.select(u,e,t);let r=`${u.getLanguageIdentifier().language}/${n}`,d=this._trie.get(r);if(d||(d=this._trie.findSubstr(r)),d)for(let m=0;m<t.length;m++){let{kind:O,insertText:re}=t[m].completion;if(O===d.type&&re===d.insertText)return m}return super.select(u,e,t)}toJSON(){let u=[];return this._trie.forEach((e,t)=>u.push([t,e])),u.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),u.slice(0,200)}fromJSON(u){if(this._trie.clear(),u.length>0){this._seq=u[0][1].touch+1;for(let[e,t]of u)t.type=typeof t.type=="number"?t.type:Object(I.E)(t.type),this._trie.set(e,t)}}}],["recentlyUsed",class extends Rh{constructor(){super("recentlyUsed"),this._cache=new Rn.a(300,.66),this._seq=0}memorize(u,e,t){let{label:n}=t.completion,r=`${u.getLanguageIdentifier().language}/${n}`;this._cache.set(r,{touch:this._seq++,type:t.completion.kind,insertText:t.completion.insertText})}select(u,e,t){if(t.length===0)return 0;let n=u.getLineContent(e.lineNumber).substr(e.column-10,e.column-1);if(/\s$/.test(n))return super.select(u,e,t);let r=t[0].score[0],d=-1,m=-1,O=-1;for(let re=0;re<t.length&&t[re].score[0]===r;re++){let oe=`${u.getLanguageIdentifier().language}/${t[re].completion.label}`,ce=this._cache.peek(oe);if(ce&&ce.touch>O&&ce.type===t[re].completion.kind&&ce.insertText===t[re].completion.insertText&&(O=ce.touch,m=re),t[re].completion.preselect&&d===-1)return re}return m!==-1?m:d!==-1?d:0}toJSON(){return this._cache.toJSON()}fromJSON(u){this._cache.clear();for(let[e,t]of u)t.touch=0,t.type=typeof t.type=="number"?t.type:Object(I.E)(t.type),this._cache.set(e,t);this._seq=this._cache.size}}],["first",yp]]),Bc._storagePrefix="suggest/memories",Bc=wf([Ah(0,Qn.a),Ah(1,nl.a),Ah(2,Eo.a)],Bc);let Cp=Object(X.c)("ISuggestMemories");Object(In.b)(Cp,Bc,!0);var yf=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Cf=function(u,e){return function(t,n){e(t,n,u)}};let Bl=class Kd{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Kd.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),Object(Lt.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},n){if(e.items.length===0)return void this.reset();Kd._moveIndex(!0,e,t)!==t?(this._acceptNext=n,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,n){let r=n;for(;r=(r+t.items.length+(e?1:-1))%t.items.length,r!==n&&t.items[r].completion.additionalTextEdits;);return r}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Kd._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Bl.OtherSuggestions=new A.c("hasOtherSuggestions",!1),Bl=yf([Cf(1,A.b)],Bl);class jl{constructor(e,t,n,r,d,m,O){this.clipboardText=O,this._snippetCompareFn=jl._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=r,this._options=d,this._refilterKind=1,this._lineContext=n,m==="top"?this._snippetCompareFn=jl._compareCompletionItemsSnippetsUp:m==="bottom"&&(this._snippetCompareFn=jl._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._allProvider}get incomplete(){return this._ensureCachedState(),this._isIncomplete}adopt(e){let t=[];for(let n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._isIncomplete=new Set,this._allProvider=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};let{leadingLineContent:e,characterCountDelta:t}=this._lineContext,n="",r="",d=this._refilterKind===1?this._items:this._filteredItems,m=[],O=!this._options.filterGraceful||d.length>2e3?kn.d:kn.e;for(let re=0;re<d.length;re++){let oe=d[re];if(oe.isInvalid)continue;oe.container.incomplete&&this._isIncomplete.add(oe.provider),this._allProvider.add(oe.provider);let ce=oe.position.column-oe.editStart.column,Me=ce+t-(oe.position.column-this._column);if(n.length!==Me&&(n=Me===0?"":e.slice(-Me),r=n.toLowerCase()),oe.word=n,Me===0)oe.score=kn.a.Default;else{let Ct=0;for(;Ct<ce;){let St=n.charCodeAt(Ct);if(St!==32&&St!==9)break;Ct+=1}let Ut=typeof oe.completion.label=="string"?oe.completion.label:oe.completion.label.name;if(Ct>=Me)oe.score=kn.a.Default;else if(typeof oe.completion.filterText=="string"){let St=O(n,r,Ct,oe.completion.filterText,oe.filterTextLow,0,!1);if(!St)continue;Object(on.g)(oe.completion.filterText,Ut)===0?oe.score=St:(oe.score=Object(kn.b)(n,r,Ct,Ut,oe.labelLow,0),oe.score[0]=St[0])}else{let St=O(n,r,Ct,Ut,oe.labelLow,0,!1);if(!St)continue;oe.score=St}}switch(oe.idx=re,oe.distance=this._wordDistance.distance(oe.position,oe.completion),m.push(oe),this._stats.suggestionCount++,oe.completion.kind){case 27:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=m.sort(this._snippetCompareFn),this._refilterKind=0}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return jl._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return jl._compareCompletionItems(e,t)}}var xf=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class _a{static create(e,t){return xf(this,void 0,void 0,function*(){if(!t.getOption(96).localityBonus||!t.hasModel())return _a.None;let n=t.getModel(),r=t.getPosition();if(!e.canComputeWordRanges(n.uri))return _a.None;let[d]=yield new as().provideSelectionRanges(n,[r]);if(d.length===0)return _a.None;let m=yield e.computeWordRanges(n.uri,d[0].range);if(!m)return _a.None;let O=n.getWordUntilPosition(r);return delete m[O.word],new class extends _a{distance(re,oe){if(!r.equals(t.getPosition()))return 0;if(oe.kind===17)return 2<<20;let ce=typeof oe.label=="string"?oe.label:oe.label.name,Me=m[ce];if(Object(ee.n)(Me))return 2<<20;let Ct=Object(ee.c)(Me,gt.a.fromPositions(re),gt.a.compareRangesUsingStarts),Ut=Ct>=0?Me[Ct]:Me[Math.max(0,~Ct-1)],St=d.length;for(let di of d){if(!gt.a.containsRange(di.range,Ut))break;St-=1}return St}}})}}_a.None=new class extends _a{distance(){return 0}};var Sf=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class jc{constructor(e,t,n,r){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=r}static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);let r=t.getWordAtPosition(n);return!!r&&r.endColumn===n.column&&!!isNaN(Number(r.word))}}class Mh{constructor(e,t,n){this._editor=e,this._editorWorkerService=t,this._clipboardService=n,this._toDispose=new Lt.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new Lt.b,this._triggerQuickSuggest=new Bi.e,this._state=0,this._completionDisposables=new Lt.b,this._onDidCancel=new rt.a,this._onDidTrigger=new rt.a,this._onDidSuggest=new rt.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new J.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(I.d.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{this._onCursorChange(d)}));let r=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{r=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{r=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{r||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(Lt.f)(this._triggerCharacterListener),Object(Lt.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(71),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(72)||!this._editor.hasModel()||!this._editor.getOption(99))return;let e=new Map;for(let n of I.d.all(this._editor.getModel()))for(let r of n.triggerCharacters||[]){let d=e.get(r);d||(d=new Set,d.add(void 0),e.set(r,d)),d.add(n)}let t=n=>{var r;if(!n){let O=this._editor.getPosition();n=this._editor.getModel().getLineContent(O.lineNumber).substr(0,O.column-1)}let d="";Object(on.G)(n.charCodeAt(n.length-1))?Object(on.F)(n.charCodeAt(n.length-2))&&(d=n.substr(n.length-2)):d=n.charAt(n.length-1);let m=e.get(d);if(m){let O=(r=this._completionModel)===null||r===void 0?void 0:r.adopt(m);this.trigger({auto:!0,shy:!1,triggerCharacter:d},Boolean(this._completionModel),m,O)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(t))}get state(){return this._state}cancel(e=!1){this._state!==0&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._state!==0&&(this._editor.hasModel()&&I.d.has(this._editor.getModel())?this.trigger({auto:this._state===2,shy:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0||e.source!=="keyboard"&&e.source!=="deleteLeft")this.cancel();else if(I.d.has(t)&&this._state===0){if(this._editor.getOption(70)===!1||!n.containsRange(this._currentSelection)&&!n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition())||this._editor.getOption(96).snippetsPreventQuickSuggestions&&ir.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._state!==0||!jc.shouldAutoTrigger(this._editor)||!this._editor.hasModel())return;let r=this._editor.getModel(),d=this._editor.getPosition(),m=this._editor.getOption(70);if(m!==!1){if(m!==!0){r.tokenizeIfCheap(d.lineNumber);let O=r.getLineTokens(d.lineNumber),re=O.getStandardTokenType(O.findTokenIndexAtOffset(Math.max(d.column-1-1,0)));if(!(m.other&&re===0||m.comments&&re===1||m.strings&&re===2))return}this.trigger({auto:!0,shy:!1})}},this._quickSuggestDelay)}}_refilterCompletionItems(){Promise.resolve().then(()=>{if(this._state===0||!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getPosition(),n=new jc(e,t,this._state===2,!1);this._onNewContext(n)})}trigger(e,t=!1,n,r){var d;if(!this._editor.hasModel())return;let m=this._editor.getModel(),O=e.auto,re=new jc(m,this._editor.getPosition(),O,e.shy);this.cancel(t),this._state=O?2:1,this._onDidTrigger.fire({auto:O,shy:e.shy,position:this._editor.getPosition()}),this._context=re;let oe={triggerKind:(d=e.triggerKind)!==null&&d!==void 0?d:0};e.triggerCharacter&&(oe={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new On.b;let ce=this._editor.getOption(93),Me=1;switch(ce){case"top":Me=0;break;case"bottom":Me=2}let Ct=Mh._createItemKindFilter(this._editor),Ut=_a.create(this._editorWorkerService,this._editor),St=gp(m,this._editor.getPosition(),new Td(Me,Ct,n),oe,this._requestToken.token);Promise.all([St,Ut]).then(([di,hi])=>Sf(this,void 0,void 0,function*(){if(Object(Lt.f)(this._requestToken),this._state===0||!this._editor.hasModel())return;let ji;(di.needsClipboard||Object(ee.o)(r))&&(ji=yield this._clipboardService.readText());let Ji=this._editor.getModel(),dn=di.items;if(Object(ee.o)(r)){let yn=fp(Me);dn=dn.concat(r).sort(yn)}let Ki=new jc(Ji,this._editor.getPosition(),O,e.shy);this._completionModel=new jl(dn,this._context.column,{leadingLineContent:Ki.leadingLineContent,characterCountDelta:Ki.column-this._context.column},hi,this._editor.getOption(96),this._editor.getOption(93),ji),this._completionDisposables.add(di.dispoables),this._onNewContext(Ki)})).catch(Oe.e)}static _createItemKindFilter(e){let t=new Set;e.getOption(93)==="none"&&t.add(27);let n=e.getOption(96);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),t}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.leadingWord.word.length!==0&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){let t=new Set(I.d.all(this._editor.getModel()));this._completionModel.allProvider.forEach(r=>t.delete(r));let n=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,t,n)}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&e.leadingWord.word.length!==0){let{incomplete:t}=this._completionModel,n=this._completionModel.adopt(t);this.trigger({auto:this._state===2,shy:!1,triggerKind:2},!0,t,n)}else{let t=this._completionModel.lineContext,n=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){if(jc.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=t,n=this._completionModel.items.length>0,n&&e.leadingWord.word.length===0)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:n})}}else this.cancel()}}o(327),o(329),o(154),o(331),o(333);let kf=Object(Ue.gc)("symbolIcon.arrayForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ef=Object(Ue.gc)("symbolIcon.booleanForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tf=Object(Ue.gc)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lf=Object(Ue.gc)("symbolIcon.colorForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Nf=Object(Ue.gc)("symbolIcon.constantForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),If=Object(Ue.gc)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Of=Object(Ue.gc)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Df=Object(Ue.gc)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Af=Object(Ue.gc)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rf=Object(Ue.gc)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mf=Object(Ue.gc)("symbolIcon.fileForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pf=Object(Ue.gc)("symbolIcon.folderForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ff=Object(Ue.gc)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Wf=Object(Ue.gc)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zf=Object(Ue.gc)("symbolIcon.keyForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Bf=Object(Ue.gc)("symbolIcon.keywordForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),jf=Object(Ue.gc)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vf=Object(Ue.gc)("symbolIcon.moduleForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Uf=Object(Ue.gc)("symbolIcon.namespaceForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Hf=Object(Ue.gc)("symbolIcon.nullForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),qf=Object(Ue.gc)("symbolIcon.numberForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$f=Object(Ue.gc)("symbolIcon.objectForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kf=Object(Ue.gc)("symbolIcon.operatorForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gf=Object(Ue.gc)("symbolIcon.packageForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Yf=Object(Ue.gc)("symbolIcon.propertyForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Zf=Object(Ue.gc)("symbolIcon.referenceForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Xf=Object(Ue.gc)("symbolIcon.snippetForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qf=Object(Ue.gc)("symbolIcon.stringForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jf=Object(Ue.gc)("symbolIcon.structForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),eb=Object(Ue.gc)("symbolIcon.textForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tb=Object(Ue.gc)("symbolIcon.typeParameterForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib=Object(Ue.gc)("symbolIcon.unitForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nb=Object(Ue.gc)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(ut.g)((u,e)=>{let t=u.getColor(kf);t&&e.addRule(`${de.a.symbolArray.cssSelector} { color: ${t}; }`);let n=u.getColor(Ef);n&&e.addRule(`${de.a.symbolBoolean.cssSelector} { color: ${n}; }`);let r=u.getColor(Tf);r&&e.addRule(`${de.a.symbolClass.cssSelector} { color: ${r}; }`);let d=u.getColor(jf);d&&e.addRule(`${de.a.symbolMethod.cssSelector} { color: ${d}; }`);let m=u.getColor(Lf);m&&e.addRule(`${de.a.symbolColor.cssSelector} { color: ${m}; }`);let O=u.getColor(Nf);O&&e.addRule(`${de.a.symbolConstant.cssSelector} { color: ${O}; }`);let re=u.getColor(If);re&&e.addRule(`${de.a.symbolConstructor.cssSelector} { color: ${re}; }`);let oe=u.getColor(Of);oe&&e.addRule(` - ${de.a.symbolValue.cssSelector},${de.a.symbolEnum.cssSelector} { color: ${oe}; }`);let ce=u.getColor(Df);ce&&e.addRule(`${de.a.symbolEnumMember.cssSelector} { color: ${ce}; }`);let Me=u.getColor(Af);Me&&e.addRule(`${de.a.symbolEvent.cssSelector} { color: ${Me}; }`);let Ct=u.getColor(Rf);Ct&&e.addRule(`${de.a.symbolField.cssSelector} { color: ${Ct}; }`);let Ut=u.getColor(Mf);Ut&&e.addRule(`${de.a.symbolFile.cssSelector} { color: ${Ut}; }`);let St=u.getColor(Pf);St&&e.addRule(`${de.a.symbolFolder.cssSelector} { color: ${St}; }`);let di=u.getColor(Ff);di&&e.addRule(`${de.a.symbolFunction.cssSelector} { color: ${di}; }`);let hi=u.getColor(Wf);hi&&e.addRule(`${de.a.symbolInterface.cssSelector} { color: ${hi}; }`);let ji=u.getColor(zf);ji&&e.addRule(`${de.a.symbolKey.cssSelector} { color: ${ji}; }`);let Ji=u.getColor(Bf);Ji&&e.addRule(`${de.a.symbolKeyword.cssSelector} { color: ${Ji}; }`);let dn=u.getColor(Vf);dn&&e.addRule(`${de.a.symbolModule.cssSelector} { color: ${dn}; }`);let Ki=u.getColor(Uf);Ki&&e.addRule(`${de.a.symbolNamespace.cssSelector} { color: ${Ki}; }`);let yn=u.getColor(Hf);yn&&e.addRule(`${de.a.symbolNull.cssSelector} { color: ${yn}; }`);let hn=u.getColor(qf);hn&&e.addRule(`${de.a.symbolNumber.cssSelector} { color: ${hn}; }`);let Qi=u.getColor($f);Qi&&e.addRule(`${de.a.symbolObject.cssSelector} { color: ${Qi}; }`);let fn=u.getColor(Kf);fn&&e.addRule(`${de.a.symbolOperator.cssSelector} { color: ${fn}; }`);let $n=u.getColor(Gf);$n&&e.addRule(`${de.a.symbolPackage.cssSelector} { color: ${$n}; }`);let bo=u.getColor(Yf);bo&&e.addRule(`${de.a.symbolProperty.cssSelector} { color: ${bo}; }`);let zr=u.getColor(Zf);zr&&e.addRule(`${de.a.symbolReference.cssSelector} { color: ${zr}; }`);let Xo=u.getColor(Xf);Xo&&e.addRule(`${de.a.symbolSnippet.cssSelector} { color: ${Xo}; }`);let Tr=u.getColor(Qf);Tr&&e.addRule(`${de.a.symbolString.cssSelector} { color: ${Tr}; }`);let Qc=u.getColor(Jf);Qc&&e.addRule(`${de.a.symbolStruct.cssSelector} { color: ${Qc}; }`);let Jc=u.getColor(eb);Jc&&e.addRule(`${de.a.symbolText.cssSelector} { color: ${Jc}; }`);let Xp=u.getColor(tb);Xp&&e.addRule(`${de.a.symbolTypeParameter.cssSelector} { color: ${Xp}; }`);let Qp=u.getColor(ib);Qp&&e.addRule(`${de.a.symbolUnit.cssSelector} { color: ${Qp}; }`);let Jp=u.getColor(nb);Jp&&e.addRule(`${de.a.symbolVariable.cssSelector} { color: ${Jp}; }`)});var Va,ob=o(113),rb=o(146);function Id(u,e,t,n){let r=n===Va.ROOT_FOLDER?["rootfolder-icon"]:n===Va.FOLDER?["folder-icon"]:["file-icon"];if(t){let d;if(t.scheme===M.b.data?d=Be.a.parseMetaData(t).get(Be.a.META_DATA_LABEL):d=xp(Object(Be.c)(t).toLowerCase()),n===Va.FOLDER)r.push(d+"-name-folder-icon");else{if(d){r.push(d+"-name-file-icon");let O=d.split(".");for(let re=1;re<O.length;re++)r.push(O.slice(re).join(".")+"-ext-file-icon");r.push("ext-file-icon")}let m=function(O,re,oe){if(!oe)return null;let ce=null;if(oe.scheme===M.b.data){let Me=Be.a.parseMetaData(oe).get(Be.a.META_DATA_MIME);Me&&(ce=re.getModeId(Me))}else{let Me=O.getModel(oe);Me&&(ce=Me.getModeId())}return ce&&ce!==rb.c?ce:re.getModeIdByFilepathOrFirstLine(oe)}(u,e,t);m&&r.push(xp(m)+"-lang-file-icon")}}return r}function xp(u){return u.replace(/\s/g,"\\$&")}(function(u){u[u.FILE=0]="FILE",u[u.FOLDER=1]="FOLDER",u[u.ROOT_FOLDER=2]="ROOT_FOLDER"})(Va||(Va={}));var Sp=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},js=function(u,e){return function(t,n){e(t,n,u)}},sb=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let ab=Object(de.e)("suggest-more-info",de.a.chevronRight),lb=Object(Ue.gc)("editorSuggestWidget.background",{dark:Ue.U,light:Ue.U,hc:Ue.U},G.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),cb=Object(Ue.gc)("editorSuggestWidget.border",{dark:Ue.V,light:Ue.V,hc:Ue.V},G.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),db=Object(Ue.gc)("editorSuggestWidget.foreground",{dark:Ue.B,light:Ue.B,hc:Ue.B},G.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),hb=Object(Ue.gc)("editorSuggestWidget.selectedBackground",{dark:Ue.xb,light:Ue.xb,hc:Ue.xb},G.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),ub=Object(Ue.gc)("editorSuggestWidget.highlightForeground",{dark:Ue.zb,light:Ue.zb,hc:Ue.zb},G.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),kp=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function Vc(u){if(!u)return!1;let e=u.completion;return!!e.documentation||e.detail&&e.detail!==e.label}function Ep(u){return"suggest-aria-id:"+u}let Ph=class{constructor(u,e,t,n,r,d){this.widget=u,this.editor=e,this.triggerKeybindingLabel=t,this._modelService=n,this._modeService=r,this._themeService=d}get templateId(){return"suggestion"}renderTemplate(u){let e=Object.create(null);e.disposables=new Lt.b,e.root=u,e.root.classList.add("show-file-icons"),e.icon=Object(ae.p)(u,Object(ae.a)(".icon")),e.colorspan=Object(ae.p)(e.icon,Object(ae.a)("span.colorspan"));let t=Object(ae.p)(u,Object(ae.a)(".contents")),n=Object(ae.p)(t,Object(ae.a)(".main"));e.iconContainer=Object(ae.p)(n,Object(ae.a)(".icon-label.codicon")),e.left=Object(ae.p)(n,Object(ae.a)("span.left")),e.right=Object(ae.p)(n,Object(ae.a)("span.right")),e.iconLabel=new be.a(e.left,{supportHighlights:!0,supportCodicons:!0}),e.disposables.add(e.iconLabel),e.parametersLabel=Object(ae.p)(e.left,Object(ae.a)("span.signature-label")),e.qualifierLabel=Object(ae.p)(e.left,Object(ae.a)("span.qualifier-label")),e.detailsLabel=Object(ae.p)(e.right,Object(ae.a)("span.details-label")),e.readMore=Object(ae.p)(e.right,Object(ae.a)("span.readMore"+ab.cssSelector)),e.readMore.title=G.a("readMore","Read More ({0})",this.triggerKeybindingLabel);let r=()=>{let d=this.editor.getOptions(),m=d.get(36),O=m.fontFamily,re=m.fontFeatureSettings,oe=d.get(97)||m.fontSize,ce=d.get(98)||m.lineHeight,Me=m.fontWeight,Ct=oe+"px",Ut=ce+"px";e.root.style.fontSize=Ct,e.root.style.fontWeight=Me,n.style.fontFamily=O,n.style.fontFeatureSettings=re,n.style.lineHeight=Ut,e.icon.style.height=Ut,e.icon.style.width=Ut,e.readMore.style.height=Ut,e.readMore.style.width=Ut};return r(),e.disposables.add(rt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(d=>d.hasChanged(36)||d.hasChanged(97)||d.hasChanged(98)).on(r,null)),e}renderElement(u,e,t){let n=t,r=u.completion,d=typeof r.label=="string"?r.label:r.label.name;n.root.id=Ep(e),n.colorspan.style.backgroundColor="";let m={labelEscapeNewLines:!0,matches:Object(kn.c)(u.score)},O=[];if(r.kind===19&&function(re,oe){let ce=typeof re.completion.label=="string"?re.completion.label:re.completion.label.name;return ce.match(kp)?(oe[0]=ce,!0):!(typeof re.completion.documentation!="string"||!re.completion.documentation.match(kp))&&(oe[0]=re.completion.documentation,!0)}(u,O))n.icon.className="icon customcolor",n.iconContainer.className="icon hide",n.colorspan.style.backgroundColor=O[0];else if(r.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){n.icon.className="icon hide",n.iconContainer.className="icon hide";let re=Id(this._modelService,this._modeService,Dn.a.from({scheme:"fake",path:d}),Va.FILE),oe=Id(this._modelService,this._modeService,Dn.a.from({scheme:"fake",path:r.detail}),Va.FILE);m.extraClasses=re.length>oe.length?re:oe}else r.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(n.icon.className="icon hide",n.iconContainer.className="icon hide",m.extraClasses=Object(ee.l)([Id(this._modelService,this._modeService,Dn.a.from({scheme:"fake",path:d}),Va.FOLDER),Id(this._modelService,this._modeService,Dn.a.from({scheme:"fake",path:r.detail}),Va.FOLDER)])):(n.icon.className="icon hide",n.iconContainer.className="",Object(ae.f)(n.iconContainer,"suggest-icon "+Object(I.F)(r.kind)));r.tags&&r.tags.indexOf(1)>=0&&(m.extraClasses=(m.extraClasses||[]).concat(["deprecated"]),m.matches=[]),n.iconLabel.setLabel(d,void 0,m),typeof r.label=="string"?(n.parametersLabel.textContent="",n.qualifierLabel.textContent="",n.detailsLabel.textContent=(r.detail||"").replace(/\n.*$/m,""),n.root.classList.add("string-label")):(n.parametersLabel.textContent=(r.label.parameters||"").replace(/\n.*$/m,""),n.qualifierLabel.textContent=(r.label.qualifier||"").replace(/\n.*$/m,""),n.detailsLabel.textContent=(r.label.type||"").replace(/\n.*$/m,""),n.root.classList.remove("string-label")),Vc(u)?(n.right.classList.add("can-expand-details"),Object(ae.Z)(n.readMore),n.readMore.onmousedown=re=>{re.stopPropagation(),re.preventDefault()},n.readMore.onclick=re=>{re.stopPropagation(),re.preventDefault(),this.widget.toggleDetails()}):(n.right.classList.remove("can-expand-details"),Object(ae.K)(n.readMore),n.readMore.onmousedown=null,n.readMore.onclick=null)}disposeTemplate(u){u.disposables.dispose()}};Ph=Sp([js(3,ne.a),js(4,nl.a),js(5,ut.c)],Ph);class pb{constructor(e,t,n,r,d){this.widget=t,this.editor=n,this.markdownRenderer=r,this.kbToggleDetails=d,this.borderWidth=1,this.disposables=new Lt.b,this.el=Object(ae.p)(e,Object(ae.a)(".details")),this.disposables.add(Object(Lt.h)(()=>e.removeChild(this.el))),this.body=Object(ae.a)(".body"),this.scrollbar=new cd.a(this.body,{}),Object(ae.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(ae.p)(this.body,Object(ae.a)(".header")),this.close=Object(ae.p)(this.header,Object(ae.a)("span"+de.a.close.cssSelector)),this.close.title=G.a("readLess","Read Less ({0})",this.kbToggleDetails),this.type=Object(ae.p)(this.header,Object(ae.a)("p.type")),this.docs=Object(ae.p)(this.body,Object(ae.a)("p.docs")),this.configureFont(),rt.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(m=>m.hasChanged(36)).on(this.configureFont,this,this.disposables),r.onDidRenderCodeBlock(()=>this.scrollbar.scanDomNode(),this,this.disposables)}get element(){return this.el}renderLoading(){this.type.textContent=G.a("loading","Loading..."),this.docs.textContent=""}renderItem(e,t){Object(Lt.f)(this.renderDisposeable),this.renderDisposeable=void 0;let{documentation:n,detail:r}=e.completion;if(t){let d="";d+=`score: ${e.score[0]}${e.word?`, compared '${e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label}' with '${e.word}'`:" (no prefix)"} +`):void 0}})}provideRenameEdits(e,t){return fc(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,n,o){return fc(this,void 0,void 0,function*(){let d=this._providers[t];if(!d)return{edits:[],rejectReason:n.join(` +`)};let m=yield d.provideRenameEdits(this.model,this.position,e,o);return m?m.rejectReason?this._provideRenameEdits(e,t+1,n.concat(m.rejectReason),o):m:this._provideRenameEdits(e,t+1,n.concat(G.a("no result","No result.")),o)})}}let zl=class vm{constructor(e,t,n,o,d,m,D){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=o,this._progressService=d,this._logService=m,this._configService=D,this._dispoableStore=new Lt.b,this._cts=new Dn.b,this._renameInputField=this._dispoableStore.add(new Bi.b(()=>this._dispoableStore.add(this._instaService.createInstance(kh,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(vm.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return fc(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;let e=this.editor.getPosition(),t=new dp(this.editor.getModel(),e);if(!t.hasProvider())return;let n;this._cts=new qt.b(this.editor,5);try{let ce=t.resolveRenameLocation(this._cts.token);this._progressService.showWhile(ce,250),n=yield ce}catch(ce){return void wi.get(this.editor).showMessage(ce||G.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e)}if(!n)return;if(n.rejectReason)return void wi.get(this.editor).showMessage(n.rejectReason,e);if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qt.b(this.editor,5,n.range);let o=this.editor.getSelection(),d=0,m=n.text.length;gt.a.isEmpty(o)||gt.a.spansMultipleLines(o)||!gt.a.containsRange(n.range,o)||(d=Math.max(0,o.startColumn-n.range.startColumn),m=Math.min(n.range.endColumn,o.endColumn)-n.range.startColumn);let D=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),oe=yield this._renameInputField.value.getInput(n.range,n.text,d,m,D,this._cts.token);if(typeof oe=="boolean")return void(oe&&this.editor.focus());this.editor.focus();let re=Object(Bi.j)(t.provideRenameEdits(oe.newName,this._cts.token),this._cts.token).then(ce=>fc(this,void 0,void 0,function*(){ce&&this.editor.hasModel()&&(ce.rejectReason?this._notificationService.info(ce.rejectReason):this._bulkEditService.apply(dr.b.convert(ce),{editor:this.editor,showPreview:oe.wantsPreview,label:G.a("label","Renaming '{0}'",n==null?void 0:n.text),quotableLabel:G.a("quotableLabel","Renaming {0}",n==null?void 0:n.text)}).then(Me=>{Me.ariaSummary&&Object(_i.a)(G.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,oe.newName,Me.ariaSummary))}).catch(Me=>{this._notificationService.error(G.a("rename.failedApply","Rename failed to apply edits")),this._logService.error(Me)}))}),ce=>{this._notificationService.error(G.a("rename.failed","Rename failed to compute edits")),this._logService.error(ce)});return this._progressService.showWhile(re,250),re})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};zl.ID="editor.contrib.renameController",zl=of([gc(1,X.a),gc(2,Re.a),gc(3,dr.a),gc(4,rt.a),gc(5,Eh.b),gc(6,rf.a)],zl);class sf extends $.b{constructor(){super({id:"editor.action.rename",label:G.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:A.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let n=e.get(Si.a),[o,d]=Array.isArray(t)&&t||[void 0,void 0];return On.a.isUri(o)&&Oi.a.isIPosition(d)?n.openCodeEditor({resource:o},n.getActiveCodeEditor()).then(m=>{m&&(m.setPosition(d),m.invokeWithinContext(D=>(this.reportTelemetry(D,m),this.run(D,m))))},De.e):super.runCommand(e,t)}run(e,t){let n=zl.get(t);return n?n.run():Promise.resolve()}}Object($.m)(zl.ID,zl),Object($.k)(sf);let Th=$.c.bindToContribution(zl.get);Object($.l)(new Th({id:"acceptRenameInput",precondition:kd,handler:u=>u.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:z.a.focus,primary:3}})),Object($.l)(new Th({id:"acceptRenameInputWithPreview",precondition:A.a.and(kd,A.a.has("config.editor.rename.enablePreview")),handler:u=>u.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:z.a.focus,primary:1027}})),Object($.l)(new Th({id:"cancelRenameInput",precondition:kd,handler:u=>u.cancelRenameInput(),kbOpts:{weight:199,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object($.p)("_executeDocumentRenameProvider",function(u,e,...t){let[n]=t;return Object(tr.b)(typeof n=="string"),function(o,d,m){return fc(this,void 0,void 0,function*(){let D=new dp(o,d),oe=yield D.resolveRenameLocation(Dn.a.None);return(oe==null?void 0:oe.rejectReason)?{edits:[],rejectReason:oe.rejectReason}:D.provideRenameEdits(m,Dn.a.None)})}(u,e,n)}),mc.a.as(nf.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:G.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var af=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class as{provideSelectionRanges(e,t){return af(this,void 0,void 0,function*(){let n=[];for(let o of t){let d=[];n.push(d);let m=new Map;yield new Promise(D=>as._bracketsRightYield(D,0,e,o,m)),yield new Promise(D=>as._bracketsLeftYield(D,0,e,o,m,d))}return n})}static _bracketsRightYield(e,t,n,o,d){let m=new Map,D=Date.now();for(;;){if(t>=as._maxRounds){e();break}if(!o){e();break}let oe=n.findNextBracket(o);if(!oe){e();break}if(Date.now()-D>as._maxDuration){setTimeout(()=>as._bracketsRightYield(e,t+1,n,o,d));break}let re=oe.close[0];if(oe.isOpen){let ce=m.has(re)?m.get(re):0;m.set(re,ce+1)}else{let ce=m.has(re)?m.get(re):0;if(ce-=1,m.set(re,Math.max(0,ce)),ce<0){let Me=d.get(re);Me||(Me=new Sl.a,d.set(re,Me)),Me.push(oe.range)}}o=oe.range.getEndPosition()}}static _bracketsLeftYield(e,t,n,o,d,m){let D=new Map,oe=Date.now();for(;;){if(t>=as._maxRounds&&d.size===0){e();break}if(!o){e();break}let re=n.findPrevBracket(o);if(!re){e();break}if(Date.now()-oe>as._maxDuration){setTimeout(()=>as._bracketsLeftYield(e,t+1,n,o,d,m));break}let ce=re.close[0];if(re.isOpen){let Me=D.has(ce)?D.get(ce):0;if(Me-=1,D.set(ce,Math.max(0,Me)),Me<0){let Ct=d.get(ce);if(Ct){let Ut=Ct.shift();Ct.size===0&&d.delete(ce);let St=gt.a.fromPositions(re.range.getEndPosition(),Ut.getStartPosition()),di=gt.a.fromPositions(re.range.getStartPosition(),Ut.getEndPosition());m.push({range:St}),m.push({range:di}),as._addBracketLeading(n,di,m)}}}else{let Me=D.has(ce)?D.get(ce):0;D.set(ce,Me+1)}o=re.range.getStartPosition()}}static _addBracketLeading(e,t,n){if(t.startLineNumber===t.endLineNumber)return;let o=t.startLineNumber,d=e.getLineFirstNonWhitespaceColumn(o);d!==0&&d!==t.startColumn&&(n.push({range:gt.a.fromPositions(new Oi.a(o,d),t.getEndPosition())}),n.push({range:gt.a.fromPositions(new Oi.a(o,1),t.getEndPosition())}));let m=o-1;if(m>0){let D=e.getLineFirstNonWhitespaceColumn(m);D===t.startColumn&&D!==e.getLineLastNonWhitespaceColumn(m)&&(n.push({range:gt.a.fromPositions(new Oi.a(m,D),t.getEndPosition())}),n.push({range:gt.a.fromPositions(new Oi.a(m,1),t.getEndPosition())}))}}}as._maxDuration=30,as._maxRounds=2;var lf=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class Lh{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let n=new Lh(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n}}class bc{constructor(e){this._ignoreSelection=!1,this._editor=e}static get(e){return e.getContribution(bc.ID)}dispose(){Object(Lt.f)(this._selectionListener)}run(e){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),n=this._editor.getModel();if(!I.x.has(n))return;let o=Promise.resolve(void 0);return this._state||(o=up(n,t.map(d=>d.getPosition()),Dn.a.None).then(d=>{if(ee.o(d)&&d.length===t.length&&this._editor.hasModel()&&ee.g(this._editor.getSelections(),t,(m,D)=>m.equalsSelection(D))){for(let m=0;m<d.length;m++)d[m]=d[m].filter(D=>D.containsPosition(t[m].getStartPosition())&&D.containsPosition(t[m].getEndPosition())),d[m].unshift(t[m]);this._state=d.map(m=>new Lh(0,m)),Object(Lt.f)(this._selectionListener),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(Object(Lt.f)(this._selectionListener),this._state=void 0)})}})),o.then(()=>{if(!this._state)return;this._state=this._state.map(m=>m.mov(e));let d=this._state.map(m=>J.a.fromPositions(m.ranges[m.index].getStartPosition(),m.ranges[m.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(d)}finally{this._ignoreSelection=!1}})}}bc.ID="editor.contrib.smartSelectController";class hp extends $.b{constructor(e,t){super(t),this._forward=e}run(e,t){return lf(this,void 0,void 0,function*(){let n=bc.get(t);n&&(yield n.run(this._forward))})}}Ee.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");function up(u,e,t){let n=I.x.all(u);n.length===1&&n.unshift(new as);let o=[],d=[];for(let m of n)o.push(Promise.resolve(m.provideSelectionRanges(u,e,t)).then(D=>{if(ee.o(D)&&D.length===e.length)for(let oe=0;oe<e.length;oe++){d[oe]||(d[oe]=[]);for(let re of D[oe])gt.a.isIRange(re.range)&>.a.containsPosition(re.range,e[oe])&&d[oe].push(gt.a.lift(re.range))}},De.f));return Promise.all(o).then(()=>d.map(m=>{if(m.length===0)return[];m.sort((ce,Me)=>Oi.a.isBefore(ce.getStartPosition(),Me.getStartPosition())?1:Oi.a.isBefore(Me.getStartPosition(),ce.getStartPosition())||Oi.a.isBefore(ce.getEndPosition(),Me.getEndPosition())?-1:Oi.a.isBefore(Me.getEndPosition(),ce.getEndPosition())?1:0);let D,oe=[];for(let ce of m)(!D||gt.a.containsRange(ce,D)&&!gt.a.equalsRange(ce,D))&&(oe.push(ce),D=ce);let re=[oe[0]];for(let ce=1;ce<oe.length;ce++){let Me=oe[ce-1],Ct=oe[ce];if(Ct.startLineNumber!==Me.startLineNumber||Ct.endLineNumber!==Me.endLineNumber){let Ut=new gt.a(Me.startLineNumber,u.getLineFirstNonWhitespaceColumn(Me.startLineNumber),Me.endLineNumber,u.getLineLastNonWhitespaceColumn(Me.endLineNumber));Ut.containsRange(Me)&&!Ut.equalsRange(Me)&&Ct.containsRange(Ut)&&!Ct.equalsRange(Ut)&&re.push(Ut);let St=new gt.a(Me.startLineNumber,1,Me.endLineNumber,u.getLineMaxColumn(Me.endLineNumber));St.containsRange(Me)&&!St.equalsRange(Ut)&&Ct.containsRange(St)&&!Ct.equalsRange(St)&&re.push(St)}re.push(Ct)}return re}))}Object($.m)(bc.ID,bc),Object($.k)(class extends hp{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:G.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"1_basic",title:G.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),Object($.k)(class extends hp{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:G.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"1_basic",title:G.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),I.x.register("*",new class{provideSelectionRanges(u,e){let t=[];for(let n of e){let o=[];t.push(o),this._addInWordRanges(o,u,n),this._addWordRanges(o,u,n),this._addWhitespaceLine(o,u,n),o.push({range:u.getFullModelRange()})}return t}_addInWordRanges(u,e,t){let n=e.getWordAtPosition(t);if(!n)return;let{word:o,startColumn:d}=n,m=t.column-d,D=m,oe=m,re=0;for(;D>=0;D--){let ce=o.charCodeAt(D);if(D!==m&&(ce===95||ce===45)||Object(rn.H)(ce)&&Object(rn.I)(re))break;re=ce}for(D+=1;oe<o.length;oe++){let ce=o.charCodeAt(oe);if(Object(rn.I)(ce)&&Object(rn.H)(re)||ce===95||ce===45)break;re=ce}D<oe&&u.push({range:new gt.a(t.lineNumber,d+D,t.lineNumber,d+oe)})}_addWordRanges(u,e,t){let n=e.getWordAtPosition(t);n&&u.push({range:new gt.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn)})}_addWhitespaceLine(u,e,t){e.getLineLength(t.lineNumber)>0&&e.getLineFirstNonWhitespaceColumn(t.lineNumber)===0&&e.getLineLastNonWhitespaceColumn(t.lineNumber)===0&&u.push({range:new gt.a(t.lineNumber,1,t.lineNumber,e.getLineMaxColumn(t.lineNumber))})}}),Object($.q)("_executeSelectionRangeProvider",function(u,...e){let[t]=e;return up(u,t,Dn.a.None)});class Ws{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,n=0,o=this.value.charCodeAt(t);if(e=Ws._table[o],typeof e=="number")return this.pos+=1,{type:e,pos:t,len:1};if(Ws.isDigitCharacter(o)){e=8;do n+=1,o=this.value.charCodeAt(t+n);while(Ws.isDigitCharacter(o));return this.pos+=n,{type:e,pos:t,len:n}}if(Ws.isVariableCharacter(o)){e=9;do o=this.value.charCodeAt(t+ ++n);while(Ws.isVariableCharacter(o)||Ws.isDigitCharacter(o));return this.pos+=n,{type:e,pos:t,len:n}}e=10;do n+=1,o=this.value.charCodeAt(t+n);while(!isNaN(o)&&Ws._table[o]===void 0&&!Ws.isDigitCharacter(o)&&!Ws.isVariableCharacter(o));return this.pos+=n,{type:e,pos:t,len:n}}}Ws._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class _c{constructor(){this._children=[]}appendChild(e){return e instanceof Qo&&this._children[this._children.length-1]instanceof Qo?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,o=n.children.indexOf(e),d=n.children.slice(0);d.splice(o,1,...t),n._children=d,function m(D,oe){for(let re of D)re.parent=oe,m(re.children,re)}(t,n)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Ed)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Qo extends _c{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Qo(this.value)}}class pp extends _c{}class zs extends pp{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Fc?this._children[0]:void 0}clone(){let e=new zs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Fc extends _c{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Qo&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new Fc;return this.options.forEach(e.appendChild,e),e}}class Nh extends _c{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,n=!1,o=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(d=>d instanceof ia&&Boolean(d.elseValue))&&(o=this._replace([])),o}_replace(e){let t="";for(let n of this._children)if(n instanceof ia){let o=e[n.index]||"";o=n.resolve(o),t+=o}else t+=n.toString();return t}toString(){return""}clone(){let e=new Nh;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class ia extends _c{constructor(e,t,n,o){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=o}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:Boolean(e)||typeof this.elseValue!="string"?e||"":this.elseValue}_toPascalCase(e){let t=e.match(/[a-z]+/gi);return t?t.map(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}).join(""):e}clone(){return new ia(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Wc extends pp{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0&&(this._children=[new Qo(t)],!0)}clone(){let e=new Wc(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function mp(u,e){let t=[...u];for(;t.length>0;){let n=t.shift();if(!e(n))break;t.unshift(...n.children)}}class Ed extends _c{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk(function(n){return n instanceof zs&&(t.push(n),e=!e||e.index<n.index?n:e),!0}),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(o=>o===e?(n=!0,!1):(t+=o.len(),!0)),n?t:-1}fullLen(e){let t=0;return mp([e],n=>(t+=n.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof zs&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Wc&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new Ed;return this._children=this.children.map(t=>t.clone()),e}walk(e){mp(this.children,e)}}class Ih{constructor(){this._scanner=new Ws,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){this._scanner.text(e),this._token=this._scanner.next();let o=new Ed;for(;this._parse(o););let d=new Map,m=[],D=0;o.walk(oe=>(oe instanceof zs&&(D+=1,oe.isFinalTabstop?d.set(0,void 0):!d.has(oe.index)&&oe.children.length>0?d.set(oe.index,oe.children):m.push(oe)),!0));for(let oe of m){let re=d.get(oe.index);if(re){let ce=new zs(oe.index);ce.transform=oe.transform;for(let Me of re)ce.appendChild(Me.clone());o.replace(oe,[ce])}}return n||(n=D>0&&t),!d.has(0)&&n&&o.appendChild(new zs(0)),o}_accept(e,t){if(e===void 0||this._token.type===e){let n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let o=this._scanner.next();if(o.type!==0&&o.type!==4&&o.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Qo(t)),!0)}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new zs(Number(t)):new Wc(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let o=new zs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Qo("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else{if(!(o.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);{let d=new Fc;for(;;){if(this._parseChoiceElement(d)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(d),this._accept(4)))return e.appendChild(o),!0}return this._backTo(n),!1}}}}_parseChoiceElement(e){let t=this._token,n=[];for(;this._token.type!==2&&this._token.type!==7;){let o;if(o=(o=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||o:this._accept(void 0,!0),!o)return this._backTo(t),!1;n.push(o)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new Qo(n.join(""))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let o=new Wc(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Qo("${"+t+":")),o.children.forEach(e.appendChild,e),!0}}_parseTransform(e){let t=new Nh,n="",o="";for(;!this._accept(6);){let d;if(d=this._accept(5,!0))d=this._accept(6,!0)||d,n+=d;else{if(this._token.type===14)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);){let d;if(d=this._accept(5,!0))d=this._accept(5,!0)||this._accept(6,!0)||d,t.appendChild(new Qo(d));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(this._token.type===14)return!1;o+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,o)}catch(d){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let o=this._accept(8,!0);if(!o)return this._backTo(t),!1;if(!n)return e.appendChild(new ia(Number(o))),!0;if(this._accept(4))return e.appendChild(new ia(Number(o))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let d=this._accept(9,!0);return d&&this._accept(4)?(e.appendChild(new ia(Number(o),d)),!0):(this._backTo(t),!1)}if(this._accept(11)){let d=this._until(4);if(d)return e.appendChild(new ia(Number(o),void 0,d,void 0)),!0}else if(this._accept(12)){let d=this._until(4);if(d)return e.appendChild(new ia(Number(o),void 0,void 0,d)),!0}else if(this._accept(13)){let d=this._until(1);if(d){let m=this._until(4);if(m)return e.appendChild(new ia(Number(o),void 0,d,m)),!0}}else{let d=this._until(4);if(d)return e.appendChild(new ia(Number(o),void 0,void 0,d)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14&&(e.appendChild(new Qo(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}var zc=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let cr={Visible:new A.c("suggestWidgetVisible",!1),DetailsVisible:new A.c("suggestWidgetDetailsVisible",!1),MultipleSuggestions:new A.c("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new A.c("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new A.c("acceptSuggestionOnEnter",!0),HasInsertAndReplaceRange:new A.c("suggestionHasInsertAndReplaceRange",!1),CanResolve:new A.c("suggestionCanResolve",!1)},dl=new ze.b("suggestWidgetStatusBar");class cf{constructor(e,t,n,o){this.position=e,this.completion=t,this.container=n,this.provider=o,this.isInvalid=!1,this.score=kn.a.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),gt.a.isIRange(t.range)?(this.editStart=new Oi.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Oi.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Oi.a(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||gt.a.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Oi.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Oi.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Oi.a(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||gt.a.spansMultipleLines(t.range.insert)||gt.a.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof o.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return zc(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._isResolved=!0,t.dispose()},n=>{Object(De.d)(n)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Td{constructor(e=2,t=new Set,n=new Set){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}}Td.default=new Td;class df{constructor(e,t,n){this.items=e,this.needsClipboard=t,this.dispoables=n}}function gp(u,e,t=Td.default,n={triggerKind:0},o=Dn.a.None){return zc(this,void 0,void 0,function*(){e=e.clone();let d=u.getWordAtPosition(e),m=d?new gt.a(e.lineNumber,d.startColumn,e.lineNumber,d.endColumn):gt.a.fromPositions(e),D={replace:m,insert:m.setEndPosition(e.lineNumber,e.column)},oe=[],re=new Lt.b,ce=!1,Me=(Ut,St)=>{if(St){for(let di of St.suggestions)t.kindFilter.has(di.kind)||(di.range||(di.range=D),di.sortText||(di.sortText=typeof di.label=="string"?di.label:di.label.name),!ce&&di.insertTextRules&&4&di.insertTextRules&&(ce=Ih.guessNeedsClipboard(di.insertText)),oe.push(new cf(e,di,St,Ut)));Object(Lt.g)(St)&&re.add(St)}},Ct=(()=>zc(this,void 0,void 0,function*(){}))();for(let Ut of I.d.orderedGroups(u)){let St=oe.length;if(yield Promise.all(Ut.map(di=>zc(this,void 0,void 0,function*(){if(!(t.providerFilter.size>0)||t.providerFilter.has(di))try{let hi=yield di.provideCompletionItems(u,e,n,o);Me(di,hi)}catch(hi){Object(De.f)(hi)}}))),St!==oe.length||o.isCancellationRequested)break}return yield Ct,o.isCancellationRequested?(re.dispose(),Promise.reject(Object(De.a)())):new df(oe.sort(fp(t.snippetSortOrder)),ce,re)})}function Dh(u,e){if(u.sortTextLow&&e.sortTextLow){if(u.sortTextLow<e.sortTextLow)return-1;if(u.sortTextLow>e.sortTextLow)return 1}return u.completion.label<e.completion.label?-1:u.completion.label>e.completion.label?1:u.completion.kind-e.completion.kind}let Ld=new Map;function fp(u){return Ld.get(u)}Ld.set(0,function(u,e){if(u.completion.kind!==e.completion.kind){if(u.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return Dh(u,e)}),Ld.set(2,function(u,e){if(u.completion.kind!==e.completion.kind){if(u.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Dh(u,e)}),Ld.set(1,Dh),Object($.j)("_executeCompletionItemProvider",(u,e,t)=>zc(void 0,void 0,void 0,function*(){let n={incomplete:!1,suggestions:[]},o=[],d=t.maxItemsToResolve||0,m=yield gp(u,e);for(let D of m.items)o.length<d&&o.push(D.resolve(Dn.a.None)),n.incomplete=n.incomplete||D.container.incomplete,n.suggestions.push(D.completion);try{return yield Promise.all(o),n}finally{setTimeout(()=>m.dispoables.dispose(),100)}}));let Oh=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){let u={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,u}};I.d.register("*",Oh),r(325);var hf=r(169);function bp(u){return u instanceof On.a}class uf{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let n=t.resolve(e);if(n!==void 0)return n}}}class pf{constructor(e,t,n,o){this._model=e,this._selection=t,this._selectionIdx=n,this._overtypingCapturer=o}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let n=this._model.getValueInRange(this._selection)||void 0,o=this._selection.startLineNumber!==this._selection.endLineNumber;if(!n&&this._overtypingCapturer){let d=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);d&&(n=d.value,o=d.multiline)}if(n&&o&&e.snippet){let d=this._model.getLineContent(this._selection.startLineNumber),m=Object(rn.z)(d,0,this._selection.startColumn-1),D=m;e.snippet.walk(re=>re!==e&&(re instanceof Qo&&(D=Object(rn.z)(re.value.split(/\r\n|\r|\n/).pop())),!0));let oe=Object(rn.d)(D,m);n=n.replace(/(\r\n|\r|\n)(.*)/g,(re,ce,Me)=>`${ce}${D.substr(oe)}${Me}`)}return n}if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let n=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return n&&n.word||void 0}return t==="TM_LINE_INDEX"?String(this._selection.positionLineNumber-1):t==="TM_LINE_NUMBER"?String(this._selection.positionLineNumber):void 0}}class mf{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return mt.a(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let n=mt.a(this._model.uri.fsPath),o=n.lastIndexOf(".");return o<=0?n:n.slice(0,o)}return t==="TM_DIRECTORY"&&this._labelService?mt.b(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(Be.d)(this._model.uri)):t==="TM_FILEPATH"&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0}}class gf{constructor(e,t,n,o){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=o}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let n=t.split(/\r\n|\n|\r/).filter(o=>!Object(rn.D)(o));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}}class ff{constructor(e,t){this._model=e,this._selection=t}resolve(e){let{name:t}=e,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),o=Ir.a.getComments(n);if(o)return t==="LINE_COMMENT"?o.lineCommentToken||void 0:t==="BLOCK_COMMENT_START"?o.blockCommentStartToken||void 0:t==="BLOCK_COMMENT_END"&&o.blockCommentEndToken||void 0}}class ba{resolve(e){let{name:t}=e;return t==="CURRENT_YEAR"?String(new Date().getFullYear()):t==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):t==="CURRENT_MONTH"?String(new Date().getMonth().valueOf()+1).padStart(2,"0"):t==="CURRENT_DATE"?String(new Date().getDate().valueOf()).padStart(2,"0"):t==="CURRENT_HOUR"?String(new Date().getHours().valueOf()).padStart(2,"0"):t==="CURRENT_MINUTE"?String(new Date().getMinutes().valueOf()).padStart(2,"0"):t==="CURRENT_SECOND"?String(new Date().getSeconds().valueOf()).padStart(2,"0"):t==="CURRENT_DAY_NAME"?ba.dayNames[new Date().getDay()]:t==="CURRENT_DAY_NAME_SHORT"?ba.dayNamesShort[new Date().getDay()]:t==="CURRENT_MONTH_NAME"?ba.monthNames[new Date().getMonth()]:t==="CURRENT_MONTH_NAME_SHORT"?ba.monthNamesShort[new Date().getMonth()]:t==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0}}ba.dayNames=[G.a("Sunday","Sunday"),G.a("Monday","Monday"),G.a("Tuesday","Tuesday"),G.a("Wednesday","Wednesday"),G.a("Thursday","Thursday"),G.a("Friday","Friday"),G.a("Saturday","Saturday")],ba.dayNamesShort=[G.a("SundayShort","Sun"),G.a("MondayShort","Mon"),G.a("TuesdayShort","Tue"),G.a("WednesdayShort","Wed"),G.a("ThursdayShort","Thu"),G.a("FridayShort","Fri"),G.a("SaturdayShort","Sat")],ba.monthNames=[G.a("January","January"),G.a("February","February"),G.a("March","March"),G.a("April","April"),G.a("May","May"),G.a("June","June"),G.a("July","July"),G.a("August","August"),G.a("September","September"),G.a("October","October"),G.a("November","November"),G.a("December","December")],ba.monthNamesShort=[G.a("JanuaryShort","Jan"),G.a("FebruaryShort","Feb"),G.a("MarchShort","Mar"),G.a("AprilShort","Apr"),G.a("MayShort","May"),G.a("JuneShort","Jun"),G.a("JulyShort","Jul"),G.a("AugustShort","Aug"),G.a("SeptemberShort","Sep"),G.a("OctoberShort","Oct"),G.a("NovemberShort","Nov"),G.a("DecemberShort","Dec")];class bf{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=function(n){return n.configuration?{configPath:n.configuration,id:n.id}:n.folders.length===1?n.folders[0].uri:void 0}(this._workspaceService.getWorkspace());return t?e.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(t):e.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if(bp(e))return mt.a(e.path);let t=mt.a(e.configPath.path);return t.endsWith("code-workspace")&&(t=t.substr(0,t.length-"code-workspace".length-1)),t}_resoveWorkspacePath(e){if(bp(e))return en(e.fsPath);let t=mt.a(e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?en(n):"/"}}class _f{resolve(e){let{name:t}=e;return t==="RANDOM"?Math.random().toString().slice(-6):t==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0}}Object(ut.g)((u,e)=>{function t(n){let o=u.getColor(n);return o?o.toString():"transparent"}e.addRule(`.monaco-editor .snippet-placeholder { background-color: ${t(Ue.oc)}; outline-color: ${t(Ue.pc)}; }`),e.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${t(Ue.mc)}; outline-color: ${t(Ue.nc)}; }`)});class Bs{constructor(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(ee.m)(t.placeholders,zs.compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let n of this._snippet.placeholders){let o=this._snippet.offset(n),d=this._snippet.fullLen(n),m=gt.a.fromPositions(e.getPositionAt(this._offset+o),e.getPositionAt(this._offset+o+d)),D=n.isFinalTabstop?Bs._decor.inactiveFinal:Bs._decor.inactive,oe=t.addDecoration(m,D);this._placeholderDecorations.set(n,oe)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let o=[];for(let d of this._placeholderGroups[this._placeholderGroupsIdx])if(d.transform){let m=this._placeholderDecorations.get(d),D=this._editor.getModel().getDecorationRange(m),oe=this._editor.getModel().getValueInRange(D);o.push(Cn.a.replaceMove(D,d.transform.resolve(oe)))}o.length>0&&this._editor.executeEdits("snippet.placeholderTransform",o)}let t=!1;e===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):e===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);let n=this._editor.getModel().changeDecorations(o=>{let d=new Set,m=[];for(let D of this._placeholderGroups[this._placeholderGroupsIdx]){let oe=this._placeholderDecorations.get(D),re=this._editor.getModel().getDecorationRange(oe);m.push(new J.a(re.startLineNumber,re.startColumn,re.endLineNumber,re.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(D),o.changeDecorationOptions(oe,D.isFinalTabstop?Bs._decor.activeFinal:Bs._decor.active),d.add(D);for(let ce of this._snippet.enclosingPlaceholders(D)){let Me=this._placeholderDecorations.get(ce);o.changeDecorationOptions(Me,ce.isFinalTabstop?Bs._decor.activeFinal:Bs._decor.active),d.add(ce)}}for(let[D,oe]of this._placeholderDecorations)d.has(D)||o.changeDecorationOptions(oe,D.isFinalTabstop?Bs._decor.inactiveFinal:Bs._decor.inactive);return m});return t?this.move(e):n??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof zs){let n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let n;for(let o of t){if(o.isFinalTabstop)break;n||(n=[],e.set(o.index,n));let d=this._placeholderDecorations.get(o),m=this._editor.getModel().getDecorationRange(d);if(!m){e.delete(o.index);break}n.push(m)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(n=>{for(let o of this._placeholderGroups[this._placeholderGroupsIdx]){let d=e.shift();console.assert(!d._placeholderDecorations);let m=d._snippet.placeholderInfo.last.index;for(let oe of d._snippet.placeholderInfo.all)oe.isFinalTabstop?oe.index=o.index+(m+1)/this._nestingLevel:oe.index=o.index+oe.index/this._nestingLevel;this._snippet.replace(o,d._snippet.children);let D=this._placeholderDecorations.get(o);n.removeDecoration(D),this._placeholderDecorations.delete(o);for(let oe of d._snippet.placeholders){let re=d._snippet.offset(oe),ce=d._snippet.fullLen(oe),Me=gt.a.fromPositions(t.getPositionAt(d._offset+re),t.getPositionAt(d._offset+re+ce)),Ct=n.addDecoration(Me,Bs._decor.inactive);this._placeholderDecorations.set(oe,Ct)}}this._placeholderGroups=Object(ee.m)(this._snippet.placeholders,zs.compareByIndex)})}}Bs._decor={active:Rt.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:Rt.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:Rt.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Rt.a.register({stickiness:1,className:"finish-snippet-placeholder"})};let _p={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class ja{constructor(e,t,n=_p){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}static adjustWhitespace(e,t,n,o,d){let m=e.getLineContent(t.lineNumber),D=Object(rn.z)(m,0,t.column-1);n.walk(oe=>{if(oe instanceof Qo&&!(oe.parent instanceof Fc)){let re=oe.value.split(/\r\n|\r|\n/);if(o)for(let ce=1;ce<re.length;ce++){let Me=Object(rn.z)(re[ce]);re[ce]=e.normalizeIndentation(D+Me)+re[ce].substr(Me.length)}if(d){let ce=re.join(e.getEOL());ce!==oe.value&&oe.parent.replace(oe,[new Qo(ce)])}}return!0})}static adjustSelection(e,t,n,o){if(n!==0||o!==0){let{positionLineNumber:d,positionColumn:m}=t,D=m-n,oe=m+o,re=e.validateRange({startLineNumber:d,startColumn:D,endLineNumber:d,endColumn:oe});t=J.a.createWithDirection(re.startLineNumber,re.startColumn,re.endLineNumber,re.endColumn,t.getDirection())}return t}static createEditsAndSnippets(e,t,n,o,d,m,D,oe){let re=[],ce=[];if(!e.hasModel())return{edits:re,snippets:ce};let Me=e.getModel(),Ct=e.invokeWithinContext(Ki=>Ki.get(hf.a,X.d)),Ut=e.invokeWithinContext(Ki=>new mf(Ki.get(Oe.a,X.d),Me)),St=()=>D,di=0,hi=Me.getValueInRange(ja.adjustSelection(Me,e.getSelection(),n,0)),ji=Me.getValueInRange(ja.adjustSelection(Me,e.getSelection(),0,o)),Ji=Me.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),dn=e.getSelections().map((Ki,yn)=>({selection:Ki,idx:yn})).sort((Ki,yn)=>gt.a.compareRangesUsingStarts(Ki.selection,yn.selection));for(let{selection:Ki,idx:yn}of dn){let hn=ja.adjustSelection(Me,Ki,n,0),Qi=ja.adjustSelection(Me,Ki,0,o);hi!==Me.getValueInRange(hn)&&(hn=Ki),ji!==Me.getValueInRange(Qi)&&(Qi=Ki);let fn=Ki.setStartPosition(hn.startLineNumber,hn.startColumn).setEndPosition(Qi.endLineNumber,Qi.endColumn),$n=new Ih().parse(t,!0,d),fr=fn.getStartPosition();ja.adjustWhitespace(Me,fr,$n,m||yn>0&&Ji!==Me.getLineFirstNonWhitespaceColumn(Ki.positionLineNumber),!0),$n.resolveVariables(new uf([Ut,new gf(St,yn,dn.length,e.getOption(62)==="spread"),new pf(Me,Ki,yn,oe),new ff(Me,Ki),new ba,new bf(Ct),new _f]));let zo=Me.getOffsetAt(fr)+di;di+=$n.toString().length-Me.getValueLengthInRange(fn),re[yn]=Cn.a.replace(fn,$n.toString()),re[yn].identifier={major:yn,minor:0},ce[yn]=new Bs(e,$n,zo)}return{edits:re,snippets:ce}}dispose(){Object(Lt.f)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=ja.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=t,this._editor.executeEdits("snippet",e,n=>this._snippets[0].hasPlaceholder?this._move(!0):n.filter(o=>!!o.identifier).map(o=>J.a.fromPositions(o.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=_p){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:n,snippets:o}=ja.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",n,d=>{for(let m of this._snippets)m.merge(o);return console.assert(o.length===0),this._snippets[0].hasPlaceholder?this._move(void 0):d.filter(m=>!!m.identifier).map(m=>J.a.fromPositions(m.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let n of this._snippets){let o=n.move(e);t.push(...o)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;let e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;let t=new Map;for(let n of this._snippets){let o=n.computePossibleSelections();if(t.size===0)for(let[d,m]of o){m.sort(gt.a.compareRangesUsingStarts);for(let D of e)if(m[0].containsRange(D)){t.set(d,[]);break}}if(t.size===0)return!1;t.forEach((d,m)=>{d.push(...o.get(m))})}e.sort(gt.a.compareRangesUsingStarts);for(let[n,o]of t)if(o.length===e.length){o.sort(gt.a.compareRangesUsingStarts);for(let d=0;d<o.length;d++)o[d].containsRange(e[d])||t.delete(n)}else t.delete(n);return t.size>0}}var vf=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},vp=function(u,e){return function(t,n){e(t,n,u)}};let wp={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},to=class td{constructor(e,t,n){this._editor=e,this._logService=t,this._snippetListener=new Lt.b,this._modelVersionId=-1,this._inSnippet=td.InSnippetMode.bindTo(n),this._hasNextTabstop=td.HasNextTabstop.bindTo(n),this._hasPrevTabstop=td.HasPrevTabstop.bindTo(n)}static get(e){return e.getContribution(td.ID)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(Lt.f)(this._session),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,t===void 0?wp:Object.assign(Object.assign({},wp),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ja(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(n=>n.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);let{choice:e}=this._session;var t,n;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(d=>J.a.fromPositions(d.getStartPosition())));let[o]=e.options;t=this._editor,n=e.options.map((d,m)=>({kind:13,label:d.value,insertText:d.value,sortText:"a".repeat(m+1),range:gt.a.fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,o.value.length))})),setTimeout(()=>{Oh.onlyOnceSuggestions.push(...n),t.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(Oh))},0)}}else this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(Lt.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};to.ID="snippetController2",to.InSnippetMode=new A.c("inSnippetMode",!1),to.HasNextTabstop=new A.c("hasNextTabstop",!1),to.HasPrevTabstop=new A.c("hasPrevTabstop",!1),to=vf([vp(1,Eh.b),vp(2,A.b)],to),Object($.m)(to.ID,to);let Nd=$.c.bindToContribution(to.get);Object($.l)(new Nd({id:"jumpToNextSnippetPlaceholder",precondition:A.a.and(to.InSnippetMode,to.HasNextTabstop),handler:u=>u.next(),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:2}})),Object($.l)(new Nd({id:"jumpToPrevSnippetPlaceholder",precondition:A.a.and(to.InSnippetMode,to.HasPrevTabstop),handler:u=>u.prev(),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:1026}})),Object($.l)(new Nd({id:"leaveSnippet",precondition:to.InSnippetMode,handler:u=>u.cancel(!0),kbOpts:{weight:130,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1033]}})),Object($.l)(new Nd({id:"acceptSnippet",precondition:to.InSnippetMode,handler:u=>u.finish()}));var wf=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ah=function(u,e){return function(t,n){e(t,n,u)}};class Rh{constructor(e){this.name=e}select(e,t,n){if(n.length===0)return 0;let o=n[0].score[0];for(let d=0;d<n.length;d++){let{score:m,completion:D}=n[d];if(m[0]!==o)break;if(D.preselect)return d}return 0}}class yp extends Rh{constructor(){super("first")}memorize(e,t,n){}toJSON(){}fromJSON(){}}let Bc=class $d{constructor(e,t,n){this._storageService=e,this._modeService=t,this._configService=n,this._disposables=new Lt.b,this._persistSoon=new Bi.d(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(o=>{o.reason===Qn.c.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}select(e,t,n){return this._withStrategy(e,t).select(e,t,n)}_withStrategy(e,t){var n,o;let d=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:(n=this._modeService.getLanguageIdentifier(e.getLanguageIdAtPosition(t.lineNumber,t.column)))===null||n===void 0?void 0:n.language,resource:e.uri});if(((o=this._strategy)===null||o===void 0?void 0:o.name)!==d){this._saveState();let m=$d._strategyCtors.get(d)||yp;this._strategy=new m;try{let D=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,oe=this._storageService.get(`${$d._storagePrefix}/${d}`,D);oe&&this._strategy.fromJSON(JSON.parse(oe))}catch(D){}}return this._strategy}_saveState(){if(this._strategy){let e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${$d._storagePrefix}/${this._strategy.name}`,t,e)}}};Bc._strategyCtors=new Map([["recentlyUsedByPrefix",class extends Rh{constructor(){super("recentlyUsedByPrefix"),this._trie=Rn.c.forStrings(),this._seq=0}memorize(u,e,t){let{word:n}=u.getWordUntilPosition(e),o=`${u.getLanguageIdentifier().language}/${n}`;this._trie.set(o,{type:t.completion.kind,insertText:t.completion.insertText,touch:this._seq++})}select(u,e,t){let{word:n}=u.getWordUntilPosition(e);if(!n)return super.select(u,e,t);let o=`${u.getLanguageIdentifier().language}/${n}`,d=this._trie.get(o);if(d||(d=this._trie.findSubstr(o)),d)for(let m=0;m<t.length;m++){let{kind:D,insertText:oe}=t[m].completion;if(D===d.type&&oe===d.insertText)return m}return super.select(u,e,t)}toJSON(){let u=[];return this._trie.forEach((e,t)=>u.push([t,e])),u.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),u.slice(0,200)}fromJSON(u){if(this._trie.clear(),u.length>0){this._seq=u[0][1].touch+1;for(let[e,t]of u)t.type=typeof t.type=="number"?t.type:Object(I.E)(t.type),this._trie.set(e,t)}}}],["recentlyUsed",class extends Rh{constructor(){super("recentlyUsed"),this._cache=new Rn.a(300,.66),this._seq=0}memorize(u,e,t){let{label:n}=t.completion,o=`${u.getLanguageIdentifier().language}/${n}`;this._cache.set(o,{touch:this._seq++,type:t.completion.kind,insertText:t.completion.insertText})}select(u,e,t){if(t.length===0)return 0;let n=u.getLineContent(e.lineNumber).substr(e.column-10,e.column-1);if(/\s$/.test(n))return super.select(u,e,t);let o=t[0].score[0],d=-1,m=-1,D=-1;for(let oe=0;oe<t.length&&t[oe].score[0]===o;oe++){let re=`${u.getLanguageIdentifier().language}/${t[oe].completion.label}`,ce=this._cache.peek(re);if(ce&&ce.touch>D&&ce.type===t[oe].completion.kind&&ce.insertText===t[oe].completion.insertText&&(D=ce.touch,m=oe),t[oe].completion.preselect&&d===-1)return oe}return m!==-1?m:d!==-1?d:0}toJSON(){return this._cache.toJSON()}fromJSON(u){this._cache.clear();for(let[e,t]of u)t.touch=0,t.type=typeof t.type=="number"?t.type:Object(I.E)(t.type),this._cache.set(e,t);this._seq=this._cache.size}}],["first",yp]]),Bc._storagePrefix="suggest/memories",Bc=wf([Ah(0,Qn.a),Ah(1,nl.a),Ah(2,kr.a)],Bc);let Cp=Object(X.c)("ISuggestMemories");Object(In.b)(Cp,Bc,!0);var yf=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Cf=function(u,e){return function(t,n){e(t,n,u)}};let Bl=class Kd{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Kd.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),Object(Lt.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},n){if(e.items.length===0)return void this.reset();Kd._moveIndex(!0,e,t)!==t?(this._acceptNext=n,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,n){let o=n;for(;o=(o+t.items.length+(e?1:-1))%t.items.length,o!==n&&t.items[o].completion.additionalTextEdits;);return o}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Kd._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Bl.OtherSuggestions=new A.c("hasOtherSuggestions",!1),Bl=yf([Cf(1,A.b)],Bl);class jl{constructor(e,t,n,o,d,m,D){this.clipboardText=D,this._snippetCompareFn=jl._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=o,this._options=d,this._refilterKind=1,this._lineContext=n,m==="top"?this._snippetCompareFn=jl._compareCompletionItemsSnippetsUp:m==="bottom"&&(this._snippetCompareFn=jl._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._allProvider}get incomplete(){return this._ensureCachedState(),this._isIncomplete}adopt(e){let t=[];for(let n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._isIncomplete=new Set,this._allProvider=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};let{leadingLineContent:e,characterCountDelta:t}=this._lineContext,n="",o="",d=this._refilterKind===1?this._items:this._filteredItems,m=[],D=!this._options.filterGraceful||d.length>2e3?kn.d:kn.e;for(let oe=0;oe<d.length;oe++){let re=d[oe];if(re.isInvalid)continue;re.container.incomplete&&this._isIncomplete.add(re.provider),this._allProvider.add(re.provider);let ce=re.position.column-re.editStart.column,Me=ce+t-(re.position.column-this._column);if(n.length!==Me&&(n=Me===0?"":e.slice(-Me),o=n.toLowerCase()),re.word=n,Me===0)re.score=kn.a.Default;else{let Ct=0;for(;Ct<ce;){let St=n.charCodeAt(Ct);if(St!==32&&St!==9)break;Ct+=1}let Ut=typeof re.completion.label=="string"?re.completion.label:re.completion.label.name;if(Ct>=Me)re.score=kn.a.Default;else if(typeof re.completion.filterText=="string"){let St=D(n,o,Ct,re.completion.filterText,re.filterTextLow,0,!1);if(!St)continue;Object(rn.g)(re.completion.filterText,Ut)===0?re.score=St:(re.score=Object(kn.b)(n,o,Ct,Ut,re.labelLow,0),re.score[0]=St[0])}else{let St=D(n,o,Ct,Ut,re.labelLow,0,!1);if(!St)continue;re.score=St}}switch(re.idx=oe,re.distance=this._wordDistance.distance(re.position,re.completion),m.push(re),this._stats.suggestionCount++,re.completion.kind){case 27:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=m.sort(this._snippetCompareFn),this._refilterKind=0}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return jl._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return jl._compareCompletionItems(e,t)}}var xf=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class _a{static create(e,t){return xf(this,void 0,void 0,function*(){if(!t.getOption(96).localityBonus||!t.hasModel())return _a.None;let n=t.getModel(),o=t.getPosition();if(!e.canComputeWordRanges(n.uri))return _a.None;let[d]=yield new as().provideSelectionRanges(n,[o]);if(d.length===0)return _a.None;let m=yield e.computeWordRanges(n.uri,d[0].range);if(!m)return _a.None;let D=n.getWordUntilPosition(o);return delete m[D.word],new class extends _a{distance(oe,re){if(!o.equals(t.getPosition()))return 0;if(re.kind===17)return 2<<20;let ce=typeof re.label=="string"?re.label:re.label.name,Me=m[ce];if(Object(ee.n)(Me))return 2<<20;let Ct=Object(ee.c)(Me,gt.a.fromPositions(oe),gt.a.compareRangesUsingStarts),Ut=Ct>=0?Me[Ct]:Me[Math.max(0,~Ct-1)],St=d.length;for(let di of d){if(!gt.a.containsRange(di.range,Ut))break;St-=1}return St}}})}}_a.None=new class extends _a{distance(){return 0}};var Sf=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class jc{constructor(e,t,n,o){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=o}static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);let o=t.getWordAtPosition(n);return!!o&&o.endColumn===n.column&&!!isNaN(Number(o.word))}}class Mh{constructor(e,t,n){this._editor=e,this._editorWorkerService=t,this._clipboardService=n,this._toDispose=new Lt.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new Lt.b,this._triggerQuickSuggest=new Bi.e,this._state=0,this._completionDisposables=new Lt.b,this._onDidCancel=new ot.a,this._onDidTrigger=new ot.a,this._onDidSuggest=new ot.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new J.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(I.d.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{this._onCursorChange(d)}));let o=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{o=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{o=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{o||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(Lt.f)(this._triggerCharacterListener),Object(Lt.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(71),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(72)||!this._editor.hasModel()||!this._editor.getOption(99))return;let e=new Map;for(let n of I.d.all(this._editor.getModel()))for(let o of n.triggerCharacters||[]){let d=e.get(o);d||(d=new Set,d.add(void 0),e.set(o,d)),d.add(n)}let t=n=>{if(!n){let m=this._editor.getPosition();n=this._editor.getModel().getLineContent(m.lineNumber).substr(0,m.column-1)}let o="";Object(rn.G)(n.charCodeAt(n.length-1))?Object(rn.F)(n.charCodeAt(n.length-2))&&(o=n.substr(n.length-2)):o=n.charAt(n.length-1);let d=e.get(o);if(d){let m=this._completionModel?{items:this._completionModel.adopt(d),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,triggerCharacter:o},Boolean(this._completionModel),d,m)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(t))}get state(){return this._state}cancel(e=!1){this._state!==0&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._state!==0&&(this._editor.hasModel()&&I.d.has(this._editor.getModel())?this.trigger({auto:this._state===2,shy:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0||e.source!=="keyboard"&&e.source!=="deleteLeft")this.cancel();else if(I.d.has(t)&&this._state===0){if(this._editor.getOption(70)===!1||!n.containsRange(this._currentSelection)&&!n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition())||this._editor.getOption(96).snippetsPreventQuickSuggestions&&to.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._state!==0||!jc.shouldAutoTrigger(this._editor)||!this._editor.hasModel())return;let o=this._editor.getModel(),d=this._editor.getPosition(),m=this._editor.getOption(70);if(m!==!1){if(m!==!0){o.tokenizeIfCheap(d.lineNumber);let D=o.getLineTokens(d.lineNumber),oe=D.getStandardTokenType(D.findTokenIndexAtOffset(Math.max(d.column-1-1,0)));if(!(m.other&&oe===0||m.comments&&oe===1||m.strings&&oe===2))return}this.trigger({auto:!0,shy:!1})}},this._quickSuggestDelay)}}_refilterCompletionItems(){Promise.resolve().then(()=>{if(this._state===0||!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getPosition(),n=new jc(e,t,this._state===2,!1);this._onNewContext(n)})}trigger(e,t=!1,n,o){var d;if(!this._editor.hasModel())return;let m=this._editor.getModel(),D=e.auto,oe=new jc(m,this._editor.getPosition(),D,e.shy);this.cancel(t),this._state=D?2:1,this._onDidTrigger.fire({auto:D,shy:e.shy,position:this._editor.getPosition()}),this._context=oe;let re={triggerKind:(d=e.triggerKind)!==null&&d!==void 0?d:0};e.triggerCharacter&&(re={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Dn.b;let ce=this._editor.getOption(93),Me=1;switch(ce){case"top":Me=0;break;case"bottom":Me=2}let Ct=Mh._createItemKindFilter(this._editor),Ut=_a.create(this._editorWorkerService,this._editor),St=gp(m,this._editor.getPosition(),new Td(Me,Ct,n),re,this._requestToken.token);Promise.all([St,Ut]).then(([di,hi])=>Sf(this,void 0,void 0,function*(){if(Object(Lt.f)(this._requestToken),this._state===0||!this._editor.hasModel())return;let ji=o==null?void 0:o.clipboardText;!ji&&di.needsClipboard&&(ji=yield this._clipboardService.readText());let Ji=this._editor.getModel(),dn=di.items;if(o){let yn=fp(Me);dn=dn.concat(o.items).sort(yn)}let Ki=new jc(Ji,this._editor.getPosition(),D,e.shy);this._completionModel=new jl(dn,this._context.column,{leadingLineContent:Ki.leadingLineContent,characterCountDelta:Ki.column-this._context.column},hi,this._editor.getOption(96),this._editor.getOption(93),ji),this._completionDisposables.add(di.dispoables),this._onNewContext(Ki)})).catch(De.e)}static _createItemKindFilter(e){let t=new Set;e.getOption(93)==="none"&&t.add(27);let n=e.getOption(96);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),t}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.leadingWord.word.length!==0&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){let t=new Set(I.d.all(this._editor.getModel()));this._completionModel.allProvider.forEach(o=>t.delete(o));let n=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,t,{items:n,clipboardText:this._completionModel.clipboardText})}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&e.leadingWord.word.length!==0){let{incomplete:t}=this._completionModel,n=this._completionModel.adopt(t);this.trigger({auto:this._state===2,shy:!1,triggerKind:2},!0,t,{items:n,clipboardText:this._completionModel.clipboardText})}else{let t=this._completionModel.lineContext,n=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){if(jc.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=t,n=this._completionModel.items.length>0,n&&e.leadingWord.word.length===0)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:n})}}else this.cancel()}}r(327),r(329),r(154),r(331),r(333);let kf=Object(Ue.gc)("symbolIcon.arrayForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ef=Object(Ue.gc)("symbolIcon.booleanForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tf=Object(Ue.gc)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lf=Object(Ue.gc)("symbolIcon.colorForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Nf=Object(Ue.gc)("symbolIcon.constantForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),If=Object(Ue.gc)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Df=Object(Ue.gc)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Of=Object(Ue.gc)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Af=Object(Ue.gc)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(G.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rf=Object(Ue.gc)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mf=Object(Ue.gc)("symbolIcon.fileForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pf=Object(Ue.gc)("symbolIcon.folderForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ff=Object(Ue.gc)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Wf=Object(Ue.gc)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zf=Object(Ue.gc)("symbolIcon.keyForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Bf=Object(Ue.gc)("symbolIcon.keywordForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),jf=Object(Ue.gc)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(G.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vf=Object(Ue.gc)("symbolIcon.moduleForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Uf=Object(Ue.gc)("symbolIcon.namespaceForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Hf=Object(Ue.gc)("symbolIcon.nullForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),qf=Object(Ue.gc)("symbolIcon.numberForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$f=Object(Ue.gc)("symbolIcon.objectForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kf=Object(Ue.gc)("symbolIcon.operatorForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gf=Object(Ue.gc)("symbolIcon.packageForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Yf=Object(Ue.gc)("symbolIcon.propertyForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Zf=Object(Ue.gc)("symbolIcon.referenceForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Xf=Object(Ue.gc)("symbolIcon.snippetForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qf=Object(Ue.gc)("symbolIcon.stringForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jf=Object(Ue.gc)("symbolIcon.structForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),eb=Object(Ue.gc)("symbolIcon.textForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tb=Object(Ue.gc)("symbolIcon.typeParameterForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib=Object(Ue.gc)("symbolIcon.unitForeground",{dark:Ue.ab,light:Ue.ab,hc:Ue.ab},Object(G.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nb=Object(Ue.gc)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(G.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(ut.g)((u,e)=>{let t=u.getColor(kf);t&&e.addRule(`${de.a.symbolArray.cssSelector} { color: ${t}; }`);let n=u.getColor(Ef);n&&e.addRule(`${de.a.symbolBoolean.cssSelector} { color: ${n}; }`);let o=u.getColor(Tf);o&&e.addRule(`${de.a.symbolClass.cssSelector} { color: ${o}; }`);let d=u.getColor(jf);d&&e.addRule(`${de.a.symbolMethod.cssSelector} { color: ${d}; }`);let m=u.getColor(Lf);m&&e.addRule(`${de.a.symbolColor.cssSelector} { color: ${m}; }`);let D=u.getColor(Nf);D&&e.addRule(`${de.a.symbolConstant.cssSelector} { color: ${D}; }`);let oe=u.getColor(If);oe&&e.addRule(`${de.a.symbolConstructor.cssSelector} { color: ${oe}; }`);let re=u.getColor(Df);re&&e.addRule(` + ${de.a.symbolValue.cssSelector},${de.a.symbolEnum.cssSelector} { color: ${re}; }`);let ce=u.getColor(Of);ce&&e.addRule(`${de.a.symbolEnumMember.cssSelector} { color: ${ce}; }`);let Me=u.getColor(Af);Me&&e.addRule(`${de.a.symbolEvent.cssSelector} { color: ${Me}; }`);let Ct=u.getColor(Rf);Ct&&e.addRule(`${de.a.symbolField.cssSelector} { color: ${Ct}; }`);let Ut=u.getColor(Mf);Ut&&e.addRule(`${de.a.symbolFile.cssSelector} { color: ${Ut}; }`);let St=u.getColor(Pf);St&&e.addRule(`${de.a.symbolFolder.cssSelector} { color: ${St}; }`);let di=u.getColor(Ff);di&&e.addRule(`${de.a.symbolFunction.cssSelector} { color: ${di}; }`);let hi=u.getColor(Wf);hi&&e.addRule(`${de.a.symbolInterface.cssSelector} { color: ${hi}; }`);let ji=u.getColor(zf);ji&&e.addRule(`${de.a.symbolKey.cssSelector} { color: ${ji}; }`);let Ji=u.getColor(Bf);Ji&&e.addRule(`${de.a.symbolKeyword.cssSelector} { color: ${Ji}; }`);let dn=u.getColor(Vf);dn&&e.addRule(`${de.a.symbolModule.cssSelector} { color: ${dn}; }`);let Ki=u.getColor(Uf);Ki&&e.addRule(`${de.a.symbolNamespace.cssSelector} { color: ${Ki}; }`);let yn=u.getColor(Hf);yn&&e.addRule(`${de.a.symbolNull.cssSelector} { color: ${yn}; }`);let hn=u.getColor(qf);hn&&e.addRule(`${de.a.symbolNumber.cssSelector} { color: ${hn}; }`);let Qi=u.getColor($f);Qi&&e.addRule(`${de.a.symbolObject.cssSelector} { color: ${Qi}; }`);let fn=u.getColor(Kf);fn&&e.addRule(`${de.a.symbolOperator.cssSelector} { color: ${fn}; }`);let $n=u.getColor(Gf);$n&&e.addRule(`${de.a.symbolPackage.cssSelector} { color: ${$n}; }`);let fr=u.getColor(Yf);fr&&e.addRule(`${de.a.symbolProperty.cssSelector} { color: ${fr}; }`);let zo=u.getColor(Zf);zo&&e.addRule(`${de.a.symbolReference.cssSelector} { color: ${zo}; }`);let Zr=u.getColor(Xf);Zr&&e.addRule(`${de.a.symbolSnippet.cssSelector} { color: ${Zr}; }`);let To=u.getColor(Qf);To&&e.addRule(`${de.a.symbolString.cssSelector} { color: ${To}; }`);let Qc=u.getColor(Jf);Qc&&e.addRule(`${de.a.symbolStruct.cssSelector} { color: ${Qc}; }`);let Jc=u.getColor(eb);Jc&&e.addRule(`${de.a.symbolText.cssSelector} { color: ${Jc}; }`);let Xp=u.getColor(tb);Xp&&e.addRule(`${de.a.symbolTypeParameter.cssSelector} { color: ${Xp}; }`);let Qp=u.getColor(ib);Qp&&e.addRule(`${de.a.symbolUnit.cssSelector} { color: ${Qp}; }`);let Jp=u.getColor(nb);Jp&&e.addRule(`${de.a.symbolVariable.cssSelector} { color: ${Jp}; }`)});var Va,rb=r(113),ob=r(146);function Id(u,e,t,n){let o=n===Va.ROOT_FOLDER?["rootfolder-icon"]:n===Va.FOLDER?["folder-icon"]:["file-icon"];if(t){let d;if(t.scheme===M.b.data?d=Be.a.parseMetaData(t).get(Be.a.META_DATA_LABEL):d=xp(Object(Be.c)(t).toLowerCase()),n===Va.FOLDER)o.push(d+"-name-folder-icon");else{if(d){o.push(d+"-name-file-icon");let D=d.split(".");for(let oe=1;oe<D.length;oe++)o.push(D.slice(oe).join(".")+"-ext-file-icon");o.push("ext-file-icon")}let m=function(D,oe,re){if(!re)return null;let ce=null;if(re.scheme===M.b.data){let Me=Be.a.parseMetaData(re).get(Be.a.META_DATA_MIME);Me&&(ce=oe.getModeId(Me))}else{let Me=D.getModel(re);Me&&(ce=Me.getModeId())}return ce&&ce!==ob.c?ce:oe.getModeIdByFilepathOrFirstLine(re)}(u,e,t);m&&o.push(xp(m)+"-lang-file-icon")}}return o}function xp(u){return u.replace(/\s/g,"\\$&")}(function(u){u[u.FILE=0]="FILE",u[u.FOLDER=1]="FOLDER",u[u.ROOT_FOLDER=2]="ROOT_FOLDER"})(Va||(Va={}));var Sp=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},js=function(u,e){return function(t,n){e(t,n,u)}},sb=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let ab=Object(de.e)("suggest-more-info",de.a.chevronRight),lb=Object(Ue.gc)("editorSuggestWidget.background",{dark:Ue.U,light:Ue.U,hc:Ue.U},G.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),cb=Object(Ue.gc)("editorSuggestWidget.border",{dark:Ue.V,light:Ue.V,hc:Ue.V},G.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),db=Object(Ue.gc)("editorSuggestWidget.foreground",{dark:Ue.B,light:Ue.B,hc:Ue.B},G.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),hb=Object(Ue.gc)("editorSuggestWidget.selectedBackground",{dark:Ue.xb,light:Ue.xb,hc:Ue.xb},G.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),ub=Object(Ue.gc)("editorSuggestWidget.highlightForeground",{dark:Ue.zb,light:Ue.zb,hc:Ue.zb},G.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),kp=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function Vc(u){if(!u)return!1;let e=u.completion;return!!e.documentation||e.detail&&e.detail!==e.label}function Ep(u){return"suggest-aria-id:"+u}let Ph=class{constructor(u,e,t,n,o,d){this.widget=u,this.editor=e,this.triggerKeybindingLabel=t,this._modelService=n,this._modeService=o,this._themeService=d}get templateId(){return"suggestion"}renderTemplate(u){let e=Object.create(null);e.disposables=new Lt.b,e.root=u,e.root.classList.add("show-file-icons"),e.icon=Object(ae.p)(u,Object(ae.a)(".icon")),e.colorspan=Object(ae.p)(e.icon,Object(ae.a)("span.colorspan"));let t=Object(ae.p)(u,Object(ae.a)(".contents")),n=Object(ae.p)(t,Object(ae.a)(".main"));e.iconContainer=Object(ae.p)(n,Object(ae.a)(".icon-label.codicon")),e.left=Object(ae.p)(n,Object(ae.a)("span.left")),e.right=Object(ae.p)(n,Object(ae.a)("span.right")),e.iconLabel=new be.a(e.left,{supportHighlights:!0,supportCodicons:!0}),e.disposables.add(e.iconLabel),e.parametersLabel=Object(ae.p)(e.left,Object(ae.a)("span.signature-label")),e.qualifierLabel=Object(ae.p)(e.left,Object(ae.a)("span.qualifier-label")),e.detailsLabel=Object(ae.p)(e.right,Object(ae.a)("span.details-label")),e.readMore=Object(ae.p)(e.right,Object(ae.a)("span.readMore"+ab.cssSelector)),e.readMore.title=G.a("readMore","Read More ({0})",this.triggerKeybindingLabel);let o=()=>{let d=this.editor.getOptions(),m=d.get(36),D=m.fontFamily,oe=m.fontFeatureSettings,re=d.get(97)||m.fontSize,ce=d.get(98)||m.lineHeight,Me=m.fontWeight,Ct=re+"px",Ut=ce+"px";e.root.style.fontSize=Ct,e.root.style.fontWeight=Me,n.style.fontFamily=D,n.style.fontFeatureSettings=oe,n.style.lineHeight=Ut,e.icon.style.height=Ut,e.icon.style.width=Ut,e.readMore.style.height=Ut,e.readMore.style.width=Ut};return o(),e.disposables.add(ot.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(d=>d.hasChanged(36)||d.hasChanged(97)||d.hasChanged(98)).on(o,null)),e}renderElement(u,e,t){let n=t,o=u.completion,d=typeof o.label=="string"?o.label:o.label.name;n.root.id=Ep(e),n.colorspan.style.backgroundColor="";let m={labelEscapeNewLines:!0,matches:Object(kn.c)(u.score)},D=[];if(o.kind===19&&function(oe,re){let ce=typeof oe.completion.label=="string"?oe.completion.label:oe.completion.label.name;return ce.match(kp)?(re[0]=ce,!0):!(typeof oe.completion.documentation!="string"||!oe.completion.documentation.match(kp))&&(re[0]=oe.completion.documentation,!0)}(u,D))n.icon.className="icon customcolor",n.iconContainer.className="icon hide",n.colorspan.style.backgroundColor=D[0];else if(o.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){n.icon.className="icon hide",n.iconContainer.className="icon hide";let oe=Id(this._modelService,this._modeService,On.a.from({scheme:"fake",path:d}),Va.FILE),re=Id(this._modelService,this._modeService,On.a.from({scheme:"fake",path:o.detail}),Va.FILE);m.extraClasses=oe.length>re.length?oe:re}else o.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(n.icon.className="icon hide",n.iconContainer.className="icon hide",m.extraClasses=Object(ee.l)([Id(this._modelService,this._modeService,On.a.from({scheme:"fake",path:d}),Va.FOLDER),Id(this._modelService,this._modeService,On.a.from({scheme:"fake",path:o.detail}),Va.FOLDER)])):(n.icon.className="icon hide",n.iconContainer.className="",Object(ae.f)(n.iconContainer,"suggest-icon "+Object(I.F)(o.kind)));o.tags&&o.tags.indexOf(1)>=0&&(m.extraClasses=(m.extraClasses||[]).concat(["deprecated"]),m.matches=[]),n.iconLabel.setLabel(d,void 0,m),typeof o.label=="string"?(n.parametersLabel.textContent="",n.qualifierLabel.textContent="",n.detailsLabel.textContent=(o.detail||"").replace(/\n.*$/m,""),n.root.classList.add("string-label")):(n.parametersLabel.textContent=(o.label.parameters||"").replace(/\n.*$/m,""),n.qualifierLabel.textContent=(o.label.qualifier||"").replace(/\n.*$/m,""),n.detailsLabel.textContent=(o.label.type||"").replace(/\n.*$/m,""),n.root.classList.remove("string-label")),Vc(u)?(n.right.classList.add("can-expand-details"),Object(ae.Z)(n.readMore),n.readMore.onmousedown=oe=>{oe.stopPropagation(),oe.preventDefault()},n.readMore.onclick=oe=>{oe.stopPropagation(),oe.preventDefault(),this.widget.toggleDetails()}):(n.right.classList.remove("can-expand-details"),Object(ae.K)(n.readMore),n.readMore.onmousedown=null,n.readMore.onclick=null)}disposeTemplate(u){u.disposables.dispose()}};Ph=Sp([js(3,ne.a),js(4,nl.a),js(5,ut.c)],Ph);class pb{constructor(e,t,n,o,d){this.widget=t,this.editor=n,this.markdownRenderer=o,this.kbToggleDetails=d,this.borderWidth=1,this.disposables=new Lt.b,this.el=Object(ae.p)(e,Object(ae.a)(".details")),this.disposables.add(Object(Lt.h)(()=>e.removeChild(this.el))),this.body=Object(ae.a)(".body"),this.scrollbar=new cd.a(this.body,{}),Object(ae.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(ae.p)(this.body,Object(ae.a)(".header")),this.close=Object(ae.p)(this.header,Object(ae.a)("span"+de.a.close.cssSelector)),this.close.title=G.a("readLess","Read Less ({0})",this.kbToggleDetails),this.type=Object(ae.p)(this.header,Object(ae.a)("p.type")),this.docs=Object(ae.p)(this.body,Object(ae.a)("p.docs")),this.configureFont(),ot.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(m=>m.hasChanged(36)).on(this.configureFont,this,this.disposables),o.onDidRenderCodeBlock(()=>this.scrollbar.scanDomNode(),this,this.disposables)}get element(){return this.el}renderLoading(){this.type.textContent=G.a("loading","Loading..."),this.docs.textContent=""}renderItem(e,t){Object(Lt.f)(this.renderDisposeable),this.renderDisposeable=void 0;let{documentation:n,detail:o}=e.completion;if(t){let d="";d+=`score: ${e.score[0]}${e.word?`, compared '${e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label}' with '${e.word}'`:" (no prefix)"} `,d+=`distance: ${e.distance}, see localityBonus-setting `,d+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"} -`,n=new $e().appendCodeblock("empty",d),r="Provider: "+e.provider._debugDisplayName}if(!t&&!Vc(e))return this.type.textContent="",this.docs.textContent="",void this.el.classList.add("no-docs");if(this.el.classList.remove("no-docs"),typeof n=="string")this.docs.classList.remove("markdown-docs"),this.docs.textContent=n;else{this.docs.classList.add("markdown-docs"),this.docs.innerText="";let d=this.markdownRenderer.render(n);this.renderDisposeable=d,this.docs.appendChild(d.element)}r?(this.type.innerText=r.length>1e5?r.substr(0,1e5)+"\u2026":r,Object(ae.Z)(this.type)):(this.type.innerText="",Object(ae.K)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=d=>{d.preventDefault(),d.stopPropagation()},this.close.onclick=d=>{d.preventDefault(),d.stopPropagation(),this.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()}scrollDown(e=8){this.body.scrollTop+=e}scrollUp(e=8){this.body.scrollTop-=e}scrollTop(){this.body.scrollTop=0}scrollBottom(){this.body.scrollTop=this.body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}setBorderWidth(e){this.borderWidth=e}configureFont(){let e=this.editor.getOptions(),t=e.get(36),n=t.fontFamily,r=e.get(97)||t.fontSize,d=e.get(98)||t.lineHeight,m=t.fontWeight,O=r+"px",re=d+"px";this.el.style.fontSize=O,this.el.style.fontWeight=m,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=re,this.close.style.width=re}dispose(){this.disposables.dispose(),Object(Lt.f)(this.renderDisposeable),this.renderDisposeable=void 0}}let vc=class Gd{constructor(e,t,n,r,d,m,O,re,oe,ce){var Me,Ct;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=0,this.isAddedAsContentWidget=!1,this.isAuto=!1,this.loadingTimeout=Lt.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new Bi.e,this.toDispose=new Lt.b,this.onDidSelectEmitter=new rt.a,this.onDidFocusEmitter=new rt.a,this.onDidHideEmitter=new rt.a,this.onDidShowEmitter=new rt.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new rt.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;let Ut=this.toDispose.add(new ac(e,O,re)),St=(Ct=(Me=n.lookupKeybinding("toggleSuggestionDetails"))===null||Me===void 0?void 0:Me.getLabel())!==null&&Ct!==void 0?Ct:"";this.isAuto=!1,this.focusedItem=null,this.storageService=m,this.element=Object(ae.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(ae.i)(this.element,"click",hn=>{hn.target===this.element&&this.hideWidget()})),this.messageElement=Object(ae.p)(this.element,Object(ae.a)(".message")),this.listElement=Object(ae.p)(this.element,Object(ae.a)(".tree"));let di=()=>this.element.classList.toggle("with-status-bar",this.editor.getOption(96).statusBar.visible);di(),this.statusBarElement=Object(ae.p)(this.element,Object(ae.a)(".suggest-status-bar"));let hi=hn=>{let Qi=n.lookupKeybindings(hn.id);return new class extends br.a{constructor(){super(void 0,hn,{label:!0,icon:!1})}updateLabel(){if(Object(ee.n)(Qi)||!this.label)return super.updateLabel();let{label:fn}=this.getAction();this.label.textContent=/{\d}/.test(fn)?on.x(this.getAction().label,Qi[0].getLabel()):`${this.getAction().label} (${Qi[0].getLabel()})`}}},ji=new Vn.a(this.statusBarElement,{actionViewItemProvider:hi}),Ji=new Vn.a(this.statusBarElement,{actionViewItemProvider:hi}),dn=oe.createMenu(dl,r);this.toDispose.add(dn.onDidChange(()=>(()=>{let hn=[],Qi=[];for(let[fn,$n]of dn.getActions())fn==="left"?hn.push(...$n):Qi.push(...$n);ji.clear(),ji.push(hn),Ji.clear(),Ji.push(Qi)})())),this.toDispose.add(dn),this.details=ce.createInstance(pb,this.element,this,this.editor,Ut,St);let Ki=()=>this.element.classList.toggle("no-icons",!this.editor.getOption(96).showIcons);Ki();let yn=ce.createInstance(Ph,this,this.editor,St);this.list=new ob.c("SuggestWidget",this.listElement,this,[yn],{useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:hn=>{let Qi=typeof hn.completion.label=="string"?hn.completion.label:hn.completion.label.name;if(hn.isResolved&&this.expandDocsSettingFromStorage()){let{documentation:fn,detail:$n}=hn.completion,bo=on.x("{0}{1}",$n||"",fn?typeof fn=="string"?fn:fn.value:"");return G.a("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",Qi,bo)}return Qi},getWidgetAriaLabel:()=>G.a("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this.toDispose.add(Object(je.b)(this.list,d,{listInactiveFocusBackground:hb,listInactiveFocusOutline:Ue.b})),this.toDispose.add(d.onDidColorThemeChange(hn=>this.onThemeChange(hn))),this.toDispose.add(e.onDidLayoutChange(()=>this.onEditorLayoutChange())),this.toDispose.add(this.list.onMouseDown(hn=>this.onListMouseDownOrTap(hn))),this.toDispose.add(this.list.onTap(hn=>this.onListMouseDownOrTap(hn))),this.toDispose.add(this.list.onDidChangeSelection(hn=>this.onListSelection(hn))),this.toDispose.add(this.list.onDidChangeFocus(hn=>this.onListFocus(hn))),this.toDispose.add(this.editor.onDidChangeCursorSelection(()=>this.onCursorSelectionChanged())),this.toDispose.add(this.editor.onDidChangeConfiguration(hn=>{hn.hasChanged(96)&&(di(),Ki())})),this.ctxSuggestWidgetVisible=co.Visible.bindTo(r),this.ctxSuggestWidgetDetailsVisible=co.DetailsVisible.bindTo(r),this.ctxSuggestWidgetMultipleSuggestions=co.MultipleSuggestions.bindTo(r),this.onThemeChange(d.getColorTheme()),this.toDispose.add(Object(ae.n)(this.details.element,"keydown",hn=>{this._onDetailsKeydown.fire(hn)})),this.toDispose.add(this.editor.onMouseDown(hn=>this.onEditorMouseDown(hn)))}onEditorMouseDown(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()}onCursorSelectionChanged(){this.state!==0&&this.editor.layoutContentWidget(this)}onEditorLayoutChange(){this.state!==3&&this.state!==5||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()}onListMouseDownOrTap(e){e.element!==void 0&&e.index!==void 0&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))}onListSelection(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])}select(e,t){let n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())}onThemeChange(e){let t=e.getColor(lb);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());let n=e.getColor(cb);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());let r=e.getColor(Ue.Z);r&&(this.detailsFocusBorderColor=r.toString()),this.details.setBorderWidth(e.type==="hc"?2:1)}onListFocus(e){if(this.ignoreFocusEvents)return;if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(!this.completionModel)return;let t=e.elements[0],n=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,t!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=t,this.list.reveal(n),this.currentSuggestionDetails=Object(Bi.f)(r=>sb(this,void 0,void 0,function*(){let d=Object(Bi.g)(()=>this.showDetails(!0),250);r.onCancellationRequested(()=>d.dispose());let m=yield t.resolve(r);return d.dispose(),m})),this.currentSuggestionDetails.then(()=>{n>=this.list.length||t!==this.list.element(n)||(this.ignoreFocusEvents=!0,this.list.splice(n,1,[t]),this.list.setFocus([n]),this.ignoreFocusEvents=!1,this.expandDocsSettingFromStorage()?this.showDetails(!1):this.element.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Ep(n)}))}).catch(Oe.e)),this.onDidFocusEmitter.fire({item:t,index:n,model:this.completionModel})}setState(e){if(!this.element)return;this.isAddedAsContentWidget||e===0||(this.isAddedAsContentWidget=!0,this.editor.addContentWidget(this));let t=this.state!==e;switch(this.state=e,this.element.classList.toggle("frozen",e===4),e){case 0:Object(ae.K)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,t&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Gd.LOADING_MESSAGE,Object(ae.K)(this.listElement,this.details.element,this.statusBarElement),Object(ae.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Gd.NO_SUGGESTIONS_MESSAGE,Object(ae.K)(this.listElement,this.details.element,this.statusBarElement),Object(ae.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(ae.K)(this.messageElement),Object(ae.Z)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(ae.K)(this.messageElement),Object(ae.Z)(this.listElement),this.show();break;case 5:Object(ae.K)(this.messageElement),Object(ae.Z)(this.details.element,this.listElement,this.statusBarElement),this.show()}}showTriggered(e,t){this.state===0&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(Bi.g)(()=>this.setState(1),t)))}showSuggestions(e,t,n,r){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&this.state!==2&&this.state!==0)return void this.setState(4);let d=this.completionModel.items.length,m=d===0;if(this.ctxSuggestWidgetMultipleSuggestions.set(d>1),m)r?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){let{stats:O}=this.completionModel;O.wasAutomaticallyTriggered=!!r,this.telemetryService.publicLog("suggestWidget",Object.assign({},O))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}selectNextPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}}selectNext(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}}selectLast(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}}selectPreviousPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}}selectPrevious(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}}selectFirst(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}}getFocusedItem(){if(this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}}toggleDetailsFocus(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")}toggleDetails(){if(Vc(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.ctxSuggestWidgetDetailsVisible.set(!1),this.updateExpandDocsSetting(!1),Object(ae.K)(this.details.element),this.element.classList.remove("docs-side","doc-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.ctxSuggestWidgetDetailsVisible.set(!0),this.updateExpandDocsSetting(!0),this.showDetails(!1),this.telemetryService.publicLog2("suggestWidget:expandDetails")}}showDetails(e){e||this.expandSideOrBelow(),Object(ae.Z)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()}toggleExplainMode(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))}show(){let e=this.updateListHeight();e!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=e),this.ctxSuggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(()=>{this.element.classList.add("visible"),this.onDidShowEmitter.fire(this)},100)}hide(){this.editor.layoutContentWidget(this),this.ctxSuggestWidgetVisible.reset(),this.ctxSuggestWidgetMultipleSuggestions.reset(),this.element.classList.remove("visible")}hideWidget(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)}getPosition(){if(this.state===0)return null;let e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}}getDomNode(){return this.element}getId(){return Gd.ID}isFrozen(){return this.state===4}updateListHeight(){let e=0;if(this.state===2||this.state===1)e=this.unfocusedHeight;else{let t=this.list.contentHeight/this.unfocusedHeight,{maxVisibleSuggestions:n}=this.editor.getOption(96);e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e}adjustDocsPosition(){if(!this.editor.hasModel())return;let e=this.editor.getOption(51),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(ae.C)(this.editor.getDomNode()),r=n.left+t.left,d=n.top+t.top+t.height,m=Object(ae.C)(this.element),O=m.left,re=m.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<re&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=re,O<r-this.listWidth?this.element.classList.add("list-right"):this.element.classList.remove("list-right"),this.element.classList.contains("docs-side")&&d-e>re&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}expandSideOrBelow(){if(!Vc(this.focusedItem)&&this.firstFocusInCurrentList)return void this.element.classList.remove("docs-side","docs-below");let e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(this.element.classList.add("docs-below"),this.element.classList.remove("docs-side")):Vc(this.focusedItem)&&(this.element.classList.add("docs-side"),this.element.classList.remove("docs-below"))}get maxWidgetHeight(){return this.unfocusedHeight*this.editor.getOption(96).maxVisibleSuggestions}get unfocusedHeight(){let e=this.editor.getOptions();return e.get(98)||e.get(36).lineHeight}getHeight(e){return this.unfocusedHeight}getTemplateId(e){return"suggestion"}expandDocsSettingFromStorage(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)}updateExpandDocsSetting(e){this.storageService.store("expandSuggestionDocs",e,0)}dispose(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose(),this.editor.removeContentWidget(this)}};vc.ID="editor.widget.suggestWidget",vc.LOADING_MESSAGE=G.a("suggestWidget.loading","Loading..."),vc.NO_SUGGESTIONS_MESSAGE=G.a("suggestWidget.noSuggestions","No suggestions."),vc=Sp([js(1,We.a),js(2,Dt.a),js(3,A.b),js(4,ut.c),js(5,Qn.a),js(6,nl.a),js(7,ga.a),js(8,ze.a),js(9,X.a)],vc),Object(ut.g)((u,e)=>{let t=u.getColor(ub);t&&e.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${t}; }`);let n=u.getColor(db);n&&e.addRule(`.monaco-editor .suggest-widget { color: ${n}; }`);let r=u.getColor(Ue.rc);r&&e.addRule(`.monaco-editor .suggest-widget a { color: ${r}; }`);let d=u.getColor(Ue.qc);d&&e.addRule(`.monaco-editor .suggest-widget code { background-color: ${d}; }`)});var mb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},gb=function(u,e){return function(t,n){e(t,n,u)}};let Uc=class wm extends Lt.a{constructor(e,t){super(),this._editor=e,this._enabled=!1,this._ckAtEnd=wm.AtEnd.bindTo(t),this._register(this._editor.onDidChangeConfiguration(n=>n.hasChanged(101)&&this._update())),this._update()}dispose(){super.dispose(),Object(Lt.f)(this._selectionListener),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(101)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);let n=this._editor.getModel(),r=this._editor.getSelection(),d=n.getWordAtPosition(r.getStartPosition());d?this._ckAtEnd.set(d.endColumn===r.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};Uc.AtEnd=new A.c("atEndOfWord",!1),Uc=mb([gb(1,A.b)],Uc);class fb{constructor(e,t,n){this._disposables=new Lt.b,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(r=>{if(this._active&&!t.isFrozen()){let d=r.charCodeAt(r.length-1);this._active.acceptCharacters.has(d)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Object(ee.o)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;let t=new Xs.b;for(let n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class Od{constructor(e,t){this._disposables=new Lt.b,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty||!e.hasModel())return;let n=e.getSelections(),r=n.length,d=!1;for(let O=0;O<r;O++)if(!n[O].isEmpty()){d=!0;break}if(!d)return;this._lastOvertyped=[];let m=e.getModel();for(let O=0;O<r;O++){let re=n[O];if(m.getValueLengthInRange(re)>Od._maxSelectionLength)return;this._lastOvertyped[O]={value:m.getValueInRange(re),multiline:re.startLineNumber!==re.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(n=>{this._empty||(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}Od._maxSelectionLength=51200;var Tp=o(158),bb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Vl=function(u,e){return function(t,n){e(t,n,u)}};class _b{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let n=e.getOffsetAt(t),r=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:gt.a.fromPositions(t,r),options:{stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Ul=class ym{constructor(e,t,n,r,d,m,O,re){this._memoryService=n,this._commandService=r,this._contextKeyService=d,this._instantiationService=m,this._logService=O,this._lineSuffix=new Lt.d,this._toDispose=new Lt.b,this.editor=e,this.model=new Mh(this.editor,t,re),this.widget=this._toDispose.add(new Bi.b(()=>{let Me=this._instantiationService.createInstance(vc,this.editor);this._toDispose.add(Me),this._toDispose.add(Me.onDidSelect(hi=>this._insertSuggestion(hi,0),this));let Ct=new fb(this.editor,Me,hi=>this._insertSuggestion(hi,2));this._toDispose.add(Ct),this._toDispose.add(this.model.onDidSuggest(hi=>{hi.completionModel.items.length===0&&Ct.reset()}));let Ut=co.MakesTextEdit.bindTo(this._contextKeyService),St=co.HasInsertAndReplaceRange.bindTo(this._contextKeyService),di=co.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(Lt.h)(()=>{Ut.reset(),St.reset(),di.reset()})),this._toDispose.add(Me.onDidFocus(({item:hi})=>{let ji=this.editor.getPosition(),Ji=hi.editStart.column,dn=ji.column,Ki=!0;this.editor.getOption(1)!=="smart"||this.model.state!==2||hi.completion.command||hi.completion.additionalTextEdits||4&hi.completion.insertTextRules||dn-Ji!==hi.completion.insertText.length||(Ki=this.editor.getModel().getValueInRange({startLineNumber:ji.lineNumber,startColumn:Ji,endLineNumber:ji.lineNumber,endColumn:dn})!==hi.completion.insertText),Ut.set(Ki),St.set(!Di.a.equals(hi.editInsertEnd,hi.editReplaceEnd)),di.set(Boolean(hi.provider.resolveCompletionItem)||Boolean(hi.completion.documentation)||hi.completion.detail!==hi.completion.label)})),this._toDispose.add(Me.onDetailsKeyDown(hi=>{hi.toKeybinding().equals(new Se.e(!0,!1,!1,!1,33))||Et.f&&hi.toKeybinding().equals(new Se.e(!1,!1,!1,!0,33))?hi.stopPropagation():hi.toKeybinding().isModifierKey()||this.editor.focus()})),Me})),this._overtypingCapturer=this._toDispose.add(new Bi.b(()=>this._toDispose.add(new Od(this.editor,this.model)))),this._alternatives=this._toDispose.add(new Bi.b(()=>this._toDispose.add(new Bl(this.editor,this._contextKeyService)))),this._toDispose.add(m.createInstance(Uc,e)),this._toDispose.add(this.model.onDidTrigger(Me=>{this.widget.value.showTriggered(Me.auto,Me.shy?250:50),this._lineSuffix.value=new _b(this.editor.getModel(),Me.position)})),this._toDispose.add(this.model.onDidSuggest(Me=>{if(!Me.shy){let Ct=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),Me.completionModel.items);this.widget.value.showSuggestions(Me.completionModel,Ct,Me.isFrozen,Me.auto)}})),this._toDispose.add(this.model.onDidCancel(Me=>{Me.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let oe=co.AcceptSuggestionsOnEnter.bindTo(d),ce=()=>{let Me=this.editor.getOption(1);oe.set(Me==="on"||Me==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>ce())),ce()}static get(e){return e.getContribution(ym.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;let n=this.editor.getModel(),r=n.getAlternativeVersionId(),{item:d}=e,m=[],O=new On.b;1&t||this.editor.pushUndoStop();let re=this.getOverwriteInfo(d,Boolean(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),d),Array.isArray(d.completion.additionalTextEdits)){let ce=qt.c.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",d.completion.additionalTextEdits.map(Me=>Cn.a.replace(gt.a.lift(Me.range),Me.text))),ce.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d.isResolved){let ce=new Tp.a(!0),Me,Ct=n.onDidChangeContent(hi=>{if(hi.isFlush)return O.cancel(),void Ct.dispose();for(let ji of hi.changes){let Ji=gt.a.getEndPosition(ji.range);Me&&!Di.a.isBefore(Ji,Me)||(Me=Ji)}}),Ut=t;t|=2;let St=!1,di=this.editor.onWillType(()=>{di.dispose(),St=!0,2&Ut||this.editor.pushUndoStop()});m.push(d.resolve(O.token).then(()=>{if(!d.completion.additionalTextEdits||O.token.isCancellationRequested||Me&&d.completion.additionalTextEdits.some(ji=>Di.a.isBefore(Me,gt.a.getStartPosition(ji.range))))return!1;St&&this.editor.pushUndoStop();let hi=qt.c.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",d.completion.additionalTextEdits.map(ji=>Cn.a.replace(gt.a.lift(ji.range),ji.text))),hi.restoreRelativeVerticalPositionOfCursor(this.editor),!St&&2&Ut||this.editor.pushUndoStop(),!0}).then(hi=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",ce.elapsed(),hi),Ct.dispose(),di.dispose()}))}let{insertText:oe}=d.completion;4&d.completion.insertTextRules||(oe=Ih.escape(oe)),ir.get(this.editor).insert(oe,{overwriteBefore:re.overwriteBefore,overwriteAfter:re.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&d.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),d.completion.command?d.completion.command.id===Hc.id?this.model.trigger({auto:!0,shy:!1},!0):(m.push(this._commandService.executeCommand(d.completion.command.id,...d.completion.command.arguments?[...d.completion.command.arguments]:[]).catch(Oe.e)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,ce=>{for(O.cancel();n.canUndo();){r!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(ce,3|(8&t?8:0));break}}),this._alertCompletionItem(d),Promise.all(m).finally(()=>{this.model.clear(),O.dispose()})}getOverwriteInfo(e,t){Object(to.b)(this.editor.hasModel());let n=this.editor.getOption(96).insertMode==="replace";t&&(n=!n);let r=e.position.column-e.editStart.column,d=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:r+(this.editor.getPosition().column-e.position.column),overwriteAfter:d+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem({completion:e}){let t=typeof e.label=="string"?e.label:e.label.name;if(Object(ee.o)(e.additionalTextEdits)){let n=G.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",t,e.additionalTextEdits.length);Object(_i.a)(n)}}triggerSuggest(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),n=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},r=d=>{if(4&d.completion.insertTextRules||d.completion.additionalTextEdits)return!0;let m=this.editor.getPosition(),O=d.editStart.column,re=m.column;return re-O!==d.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:m.lineNumber,startColumn:O,endLineNumber:m.lineNumber,endColumn:re})!==d.completion.insertText};rt.b.once(this.model.onDidTrigger)(d=>{let m=[];rt.b.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(Lt.f)(m),n()},void 0,m),this.model.onDidSuggest(({completionModel:O})=>{if(Object(Lt.f)(m),O.items.length===0)return void n();let re=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),O.items),oe=O.items[re];r(oe)?(this.editor.pushUndoStop(),this._insertSuggestion({index:re,item:oe,model:O},7)):n()},void 0,m)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(t.lineNumber,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let n=this.widget.value.getFocusedItem(),r=0;e&&(r|=4),t&&(r|=8),this._insertSuggestion(n,r)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}};Ul.ID="editor.contrib.suggestController",Ul=bb([Vl(1,Rs.a),Vl(2,Cp),Vl(3,Ee.b),Vl(4,A.b),Vl(5,X.a),Vl(6,Eh.b),Vl(7,Pi.a)],Ul);class Hc extends $.b{constructor(){super({id:Hc.id,label:G.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:A.a.and(z.a.writable,z.a.hasCompletionItemProvider),kbOpts:{kbExpr:z.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})}run(e,t){let n=Ul.get(t);n&&n.triggerSuggest()}}Hc.id="editor.action.triggerSuggest",Object($.m)(Ul.ID,Ul),Object($.k)(Hc);let Jr=$.c.bindToContribution(Ul.get);Object($.l)(new Jr({id:"acceptSelectedSuggestion",precondition:co.Visible,handler(u){u.acceptSelectedSuggestion(!0,!1)}})),ar.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:A.a.and(co.Visible,z.a.textInputFocus),primary:2,weight:190}),ar.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:A.a.and(co.Visible,z.a.textInputFocus,co.AcceptSuggestionsOnEnter,co.MakesTextEdit),primary:3,weight:190}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.accept",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:co.HasInsertAndReplaceRange.toNegated()}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:A.a.and(co.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","insert"))}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},group:"left",order:1,when:A.a.and(co.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","replace"))}),Object($.l)(new Jr({id:"acceptAlternativeSelectedSuggestion",precondition:A.a.and(co.Visible,z.a.textInputFocus),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:1027,secondary:[1026]},handler(u){u.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:dl,group:"left",order:2,when:A.a.and(co.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","insert")),title:G.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},{menuId:dl,group:"left",order:2,when:A.a.and(co.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","replace")),title:G.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")}]})),Ee.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object($.l)(new Jr({id:"hideSuggestWidget",precondition:co.Visible,handler:u=>u.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:9,secondary:[1033]}})),Object($.l)(new Jr({id:"selectNextSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object($.l)(new Jr({id:"selectNextPageSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:12,secondary:[2060]}})),Object($.l)(new Jr({id:"selectLastSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectLastSuggestion()})),Object($.l)(new Jr({id:"selectPrevSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object($.l)(new Jr({id:"selectPrevPageSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:11,secondary:[2059]}})),Object($.l)(new Jr({id:"selectFirstSuggestion",precondition:A.a.and(co.Visible,co.MultipleSuggestions),handler:u=>u.selectFirstSuggestion()})),Object($.l)(new Jr({id:"toggleSuggestionDetails",precondition:co.Visible,handler:u=>u.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:dl,group:"right",order:1,when:A.a.and(co.DetailsVisible,co.CanResolve),title:G.a("detail.more","show less")},{menuId:dl,group:"right",order:1,when:A.a.and(co.DetailsVisible.toNegated(),co.CanResolve),title:G.a("detail.less","show more")}]})),Object($.l)(new Jr({id:"toggleExplainMode",precondition:co.Visible,handler:u=>u.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object($.l)(new Jr({id:"toggleSuggestionFocus",precondition:co.Visible,handler:u=>u.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object($.l)(new Jr({id:"insertBestCompletion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Uc.AtEnd,co.Visible.toNegated(),Bl.OtherSuggestions.toNegated(),ir.InSnippetMode.toNegated()),handler:(u,e)=>{u.triggerSuggestAndAcceptBest(Object(to.i)(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object($.l)(new Jr({id:"insertNextSuggestion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Bl.OtherSuggestions,co.Visible.toNegated(),ir.InSnippetMode.toNegated()),handler:u=>u.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2}})),Object($.l)(new Jr({id:"insertPrevSuggestion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Bl.OtherSuggestions,co.Visible.toNegated(),ir.InSnippetMode.toNegated()),handler:u=>u.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:1026}}));class vb extends $.b{constructor(){super({id:"editor.action.forceRetokenize",label:G.a("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getModel();n.resetTokenization();let r=new Tp.a(!0);n.forceTokenization(n.getLineCount()),r.stop(),console.log("tokenization took "+r.elapsed())}}Object($.k)(vb);var Lp=o(161);class wc extends $.b{constructor(){super({id:wc.ID,label:G.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){let n=!Lp.b.getTabFocusMode();Lp.b.setTabFocusMode(n),n?Object(_i.a)(G.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(_i.a)(G.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}wc.ID="editor.action.toggleTabFocusMode",Object($.k)(wc);var wb=o(171),yb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Np=function(u,e){return function(t,n){e(t,n,u)}},Cb=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let qc=class extends Lt.a{constructor(u,e,t){super(),this._editor=u,this._dialogService=e,this._codeEditorService=t,this._config=this._editor.getOption(103),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(103)&&(this._config=this._editor.getOption(103),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return Cb(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let u=this._editor.getModel();if(!!u.mightContainUnusualLineTerminators()&&function(e,t){return e.getModelProperty(t.uri,"ignoreUnusualLineTerminators")}(this._codeEditorService,u)!==!0&&!this._editor.getOption(72)){if(this._config==="auto")return void u.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:G.a("unusualLineTerminators.title","Unusual Line Terminators"),message:G.a("unusualLineTerminators.message","Detected unusual line terminators"),detail:G.a("unusualLineTerminators.detail","This file contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`."),primaryButton:G.a("unusualLineTerminators.fix","Fix this file"),secondaryButton:G.a("unusualLineTerminators.ignore","Ignore problem for this file")})).confirmed?u.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,"ignoreUnusualLineTerminators",n)}(this._codeEditorService,u,!0)}})}};qc.ID="editor.contrib.unusualLineTerminatorsDetector",qc=yb([Np(1,wb.a),Np(2,Si.a)],qc),Object($.m)(qc.ID,qc);var xb=o(184),Ip=o(183),Sb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Fh=function(u,e){return function(t,n){e(t,n,u)}};let $c=class Cm extends Lt.a{constructor(e,t,n,r){super(),this._modelService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._tokenizeViewport=new Bi.d(()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(d=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(I.k.onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(d=>{d.affectsConfiguration(Ip.b)&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}static _getSemanticColoringProvider(e){let t=I.k.ordered(e);return t.length>0?t[0]:null}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;let e=this._editor.getModel();if(e.hasSemanticTokens()||!Object(Ip.c)(e,this._themeService,this._configurationService))return;let t=Cm._getSemanticColoringProvider(e);if(!t)return;let n=this._modelService.getSemanticTokensProviderStyling(t),r=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(r.map(d=>this._requestRange(e,d,t,n)))}_requestRange(e,t,n,r){let d=e.getVersionId(),m=Object(Bi.f)(O=>Promise.resolve(n.provideDocumentRangeSemanticTokens(e,t,O)));return m.then(O=>{O&&!e.isDisposed()&&e.getVersionId()===d&&e.setPartialSemanticTokens(t,Object(xb.b)(O,r,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(m),()=>this._removeOutstandingRequest(m)),m}};$c.ID="editor.contrib.viewportSemanticTokens",$c=Sb([Fh(1,ne.a),Fh(2,ut.c),Fh(3,Eo.a)],$c),Object($.m)($c.ID,$c);var kb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Eb=function(u,e){return function(t,n){e(t,n,u)}};let Tb=Object(Ue.gc)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},G.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Lb=Object(Ue.gc)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},G.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Nb=Object(Ue.gc)("editor.wordHighlightBorder",{light:null,dark:null,hc:Ue.b},G.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),Ib=Object(Ue.gc)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Ue.b},G.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),Ob=Object(Ue.gc)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},G.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Db=Object(Ue.gc)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},G.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Dd=new A.c("hasWordHighlights",!1);function Op(u,e,t){let n=I.i.ordered(u);return Object(Bi.h)(n.map(r=>()=>Promise.resolve(r.provideDocumentHighlights(u,e,t)).then(void 0,Oe.f)),ee.o)}class Dp{constructor(e,t,n){this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(Bi.f)(r=>this._compute(e,t,n,r))}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new gt.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){let r=t.startLineNumber,d=t.startColumn,m=t.endColumn,O=this._getCurrentWordRange(e,t),re=Boolean(this._wordRange&&this._wordRange.equalsRange(O));for(let oe=0,ce=n.length;!re&&oe<ce;oe++){let Me=e.getDecorationRange(n[oe]);Me&&Me.startLineNumber===r&&Me.startColumn<=d&&Me.endColumn>=m&&(re=!0)}return re}cancel(){this.result.cancel()}}class Ab extends Dp{_compute(e,t,n,r){return Op(e,t.getPosition(),r).then(d=>d||[])}}class Rb extends Dp{constructor(e,t,n){super(e,t,n),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,n,r){return Object(Bi.l)(250,r).then(()=>{if(!t.isEmpty())return[];let d=e.getWordAtPosition(t.getPosition());return!d||d.word.length>1e3?[]:e.findMatches(d.word,!0,!1,!0,n,!1).map(m=>({range:m.range,kind:I.h.Text}))})}isValid(e,t,n){let r=t.isEmpty();return this._selectionIsEmpty===r&&super.isValid(e,t,n)}}Object($.p)("_executeDocumentHighlights",(u,e)=>Op(u,e,On.a.None));class yc{constructor(e,t){this.toUnhook=new Lt.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=Dd.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(63),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{let r=this.editor.getOption(63);this.occurrencesHighlight!==r&&(this.occurrencesHighlight=r,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this._decorationIds.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return ee.d(this._decorationIds.map(e=>this.model.getDecorationRange(e)).sort(gt.a.compareRangesUsingStarts))}moveNext(){let e=this._getSortedHighlights(),t=(ee.j(e,r=>r.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let d=this.editor.getModel().getLineContent(n.startLineNumber);Object(_i.a)(`${d}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(ee.j(e,r=>r.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let d=this.editor.getModel().getLineContent(n.startLineNumber);Object(_i.a)(`${d}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&e.reason===3?this._run():this._stopAll()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();let t=e.startColumn,n=e.endColumn,r=this._getWord();if(!r||r.startColumn>t||r.endColumn<n)return void this._stopAll();let d=this.workerRequest&&this.workerRequest.isValid(this.model,e,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),d)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();let oe=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(m=this.model,O=this.editor.getSelection(),re=this.editor.getOption(105),I.i.has(m)?new Ab(m,O,re):new Rb(m,O,re)),this.workerRequest.result.then(ce=>{oe===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=ce||[],this._beginRenderDecorations())},Oe.e)}var m,O,re}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:yc._getDecorationOptions(t.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===I.h.Write?this._WRITE_OPTIONS:e===I.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}yc._WRITE_OPTIONS=Rt.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(ut.h)(Db),position:vi.d.Center}}),yc._TEXT_OPTIONS=Rt.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(ut.h)(Ue.Wb),position:vi.d.Center}}),yc._REGULAR_OPTIONS=Rt.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(ut.h)(Ob),position:vi.d.Center}});let Hl=class xm extends Lt.a{constructor(e,t){super(),this.wordHighlighter=null;let n=()=>{e.hasModel()&&(this.wordHighlighter=new yc(e,t))};this._register(e.onDidChangeModel(r=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(xm.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};Hl.ID="editor.contrib.wordHighlighter",Hl=kb([Eb(1,A.b)],Hl);class Ap extends $.b{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=Hl.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}}class Mb extends $.b{constructor(){super({id:"editor.action.wordHighlight.trigger",label:G.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Dd.toNegated(),kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,weight:100}})}run(e,t,n){let r=Hl.get(t);r&&r.restoreViewState(!0)}}Object($.m)(Hl.ID,Hl),Object($.k)(class extends Ap{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:G.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Dd,kbOpts:{kbExpr:z.a.editorTextFocus,primary:65,weight:100}})}}),Object($.k)(class extends Ap{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:G.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Dd,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1089,weight:100}})}}),Object($.k)(Mb),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.Q);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));let n=u.getColor(Tb);n&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${n}; }`);let r=u.getColor(Lb);r&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${r}; }`);let d=u.getColor(Ue.R);d&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${u.type==="hc"?"dotted":"solid"} ${d}; box-sizing: border-box; }`);let m=u.getColor(Nb);m&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${u.type==="hc"?"dashed":"solid"} ${m}; box-sizing: border-box; }`);let O=u.getColor(Ib);O&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${u.type==="hc"?"dashed":"solid"} ${O}; box-sizing: border-box; }`)});var Pb=o(22),hl=o(129),Cc=o(117),Ad=o(26);class Rd extends $.c{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=Object(Cc.a)(t.getOption(105)),d=t.getModel(),m=t.getSelections().map(O=>{let re=new Di.a(O.positionLineNumber,O.positionColumn),oe=this._move(r,d,re,this._wordNavigationType);return this._moveTo(O,oe,this._inSelectionMode)});if(d.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",0,m.map(O=>Pb.d.fromModelSelection(O))),m.length===1){let O=new Di.a(m[0].positionLineNumber,m[0].positionColumn);t.revealPosition(O,0)}}_moveTo(e,t,n){return n?new J.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new J.a(t.lineNumber,t.column,t.lineNumber,t.column)}}class ul extends Rd{_move(e,t,n,r){return hl.a.moveWordLeft(e,t,n,r)}}class pl extends Rd{_move(e,t,n,r){return hl.a.moveWordRight(e,t,n,r)}}class Md extends $.c{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=Object(Cc.a)(t.getOption(105)),d=t.getModel(),m=t.getSelections().map(O=>{let re=this._delete(r,d,O,this._whitespaceHeuristics,this._wordNavigationType);return new $i.a(re,"")});t.pushUndoStop(),t.executeCommands(this.id,m),t.pushUndoStop()}}class Wh extends Md{_delete(e,t,n,r,d){return hl.a.deleteWordLeft(e,t,n,r,d)||new gt.a(1,1,1,1)}}class zh extends Md{_delete(e,t,n,r,d){let m=hl.a.deleteWordRight(e,t,n,r,d);if(m)return m;let O=t.getLineCount(),re=t.getLineMaxColumn(O);return new gt.a(O,re,O,re)}}Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,mo.a),win:{primary:2063},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,mo.a),win:{primary:3087},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,mo.a),win:{primary:2065},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,mo.a),win:{primary:3089},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:z.a.writable})}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:z.a.writable})}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:z.a.writable})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:z.a.writable})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}});class Rp extends Rd{_move(e,t,n,r){return hl.b.moveWordPartLeft(e,t,n)}}Ee.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft"),Ee.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class Mp extends Rd{_move(e,t,n,r){return hl.b.moveWordPartRight(e,t,n)}}Object($.l)(new class extends Md{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(u,e,t,n,r){return hl.b.deleteWordPartLeft(u,e,t,n)||new gt.a(1,1,1,1)}}),Object($.l)(new class extends Md{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(u,e,t,n,r){let d=hl.b.deleteWordPartRight(u,e,t,n);if(d)return d;let m=e.getLineCount(),O=e.getLineMaxColumn(m);return new gt.a(m,O,m,O)}}),Object($.l)(new class extends Rp{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),Object($.l)(new class extends Rp{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),Object($.l)(new class extends Mp{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),Object($.l)(new class extends Mp{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}});var xo=o(55),Pp=(o(335),o(35)),Fp=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Pd=function(u,e){return function(t,n){e(t,n,u)}};let Wp=new A.c("accessibilityHelpWidgetVisible",!1),ql=class Sm extends Lt.a{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(xc,this._editor))}static get(e){return e.getContribution(Sm.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};ql.ID="editor.contrib.accessibilityHelpController",ql=Fp([Pd(1,X.a)],ql);let xc=class Yd extends rr.a{constructor(e,t,n,r){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=r,this._editor=e,this._isVisibleKey=Wp.bindTo(this._contextKeyService),this._domNode=Object(Pp.b)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(Pp.b)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ae.n(this._contentDomNode.domNode,"keydown",d=>{if(this._isVisible&&(d.equals(2083)&&(Object(_i.a)(xo.a.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),ae.s(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),d.preventDefault(),d.stopPropagation()),d.equals(2086))){Object(_i.a)(xo.a.openingDocs);let m=this._editor.getRawOptions().accessibilityHelpUrl;m===void 0&&(m="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(Dn.a.parse(m)),d.preventDefault(),d.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Yd.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,n){let r=this._keybindingService.lookupKeybinding(e);return r?on.x(t,r.getAriaLabel()):on.x(n,e)}_buildContent(){let e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){let m=this._editor.getModel();m&&t.forEach(O=>{n+=m.getValueLengthInRange(O)})}let r=function(m,O){return m&&m.length!==0?m.length===1?O?on.x(xo.a.singleSelectionRange,m[0].positionLineNumber,m[0].positionColumn,O):on.x(xo.a.singleSelection,m[0].positionLineNumber,m[0].positionColumn):O?on.x(xo.a.multiSelectionRange,m.length,O):m.length>0?on.x(xo.a.multiSelection,m.length):"":xo.a.noSelection}(t,n);e.get(47)?e.get(72)?r+=xo.a.readonlyDiffEditor:r+=xo.a.editableDiffEditor:e.get(72)?r+=xo.a.readonlyEditor:r+=xo.a.editableEditor;let d=Et.f?xo.a.changeConfigToOnMac:xo.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:r+=` +`,n=new $e().appendCodeblock("empty",d),o="Provider: "+e.provider._debugDisplayName}if(!t&&!Vc(e))return this.type.textContent="",this.docs.textContent="",void this.el.classList.add("no-docs");if(this.el.classList.remove("no-docs"),typeof n=="string")this.docs.classList.remove("markdown-docs"),this.docs.textContent=n;else{this.docs.classList.add("markdown-docs"),this.docs.innerText="";let d=this.markdownRenderer.render(n);this.renderDisposeable=d,this.docs.appendChild(d.element)}o?(this.type.innerText=o.length>1e5?o.substr(0,1e5)+"\u2026":o,Object(ae.Z)(this.type)):(this.type.innerText="",Object(ae.K)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=d=>{d.preventDefault(),d.stopPropagation()},this.close.onclick=d=>{d.preventDefault(),d.stopPropagation(),this.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()}scrollDown(e=8){this.body.scrollTop+=e}scrollUp(e=8){this.body.scrollTop-=e}scrollTop(){this.body.scrollTop=0}scrollBottom(){this.body.scrollTop=this.body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}setBorderWidth(e){this.borderWidth=e}configureFont(){let e=this.editor.getOptions(),t=e.get(36),n=t.fontFamily,o=e.get(97)||t.fontSize,d=e.get(98)||t.lineHeight,m=t.fontWeight,D=o+"px",oe=d+"px";this.el.style.fontSize=D,this.el.style.fontWeight=m,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=oe,this.close.style.width=oe}dispose(){this.disposables.dispose(),Object(Lt.f)(this.renderDisposeable),this.renderDisposeable=void 0}}let vc=class Gd{constructor(e,t,n,o,d,m,D,oe,re,ce){var Me,Ct;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=0,this.isAddedAsContentWidget=!1,this.isAuto=!1,this.loadingTimeout=Lt.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new Bi.e,this.toDispose=new Lt.b,this.onDidSelectEmitter=new ot.a,this.onDidFocusEmitter=new ot.a,this.onDidHideEmitter=new ot.a,this.onDidShowEmitter=new ot.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new ot.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;let Ut=this.toDispose.add(new ac(e,D,oe)),St=(Ct=(Me=n.lookupKeybinding("toggleSuggestionDetails"))===null||Me===void 0?void 0:Me.getLabel())!==null&&Ct!==void 0?Ct:"";this.isAuto=!1,this.focusedItem=null,this.storageService=m,this.element=Object(ae.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(ae.i)(this.element,"click",hn=>{hn.target===this.element&&this.hideWidget()})),this.messageElement=Object(ae.p)(this.element,Object(ae.a)(".message")),this.listElement=Object(ae.p)(this.element,Object(ae.a)(".tree"));let di=()=>this.element.classList.toggle("with-status-bar",this.editor.getOption(96).statusBar.visible);di(),this.statusBarElement=Object(ae.p)(this.element,Object(ae.a)(".suggest-status-bar"));let hi=hn=>{let Qi=n.lookupKeybindings(hn.id);return new class extends bo.a{constructor(){super(void 0,hn,{label:!0,icon:!1})}updateLabel(){if(Object(ee.n)(Qi)||!this.label)return super.updateLabel();let{label:fn}=this.getAction();this.label.textContent=/{\d}/.test(fn)?rn.x(this.getAction().label,Qi[0].getLabel()):`${this.getAction().label} (${Qi[0].getLabel()})`}}},ji=new Vn.a(this.statusBarElement,{actionViewItemProvider:hi}),Ji=new Vn.a(this.statusBarElement,{actionViewItemProvider:hi}),dn=re.createMenu(dl,o);this.toDispose.add(dn.onDidChange(()=>(()=>{let hn=[],Qi=[];for(let[fn,$n]of dn.getActions())fn==="left"?hn.push(...$n):Qi.push(...$n);ji.clear(),ji.push(hn),Ji.clear(),Ji.push(Qi)})())),this.toDispose.add(dn),this.details=ce.createInstance(pb,this.element,this,this.editor,Ut,St);let Ki=()=>this.element.classList.toggle("no-icons",!this.editor.getOption(96).showIcons);Ki();let yn=ce.createInstance(Ph,this,this.editor,St);this.list=new rb.c("SuggestWidget",this.listElement,this,[yn],{useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:hn=>{let Qi=typeof hn.completion.label=="string"?hn.completion.label:hn.completion.label.name;if(hn.isResolved&&this.expandDocsSettingFromStorage()){let{documentation:fn,detail:$n}=hn.completion,fr=rn.x("{0}{1}",$n||"",fn?typeof fn=="string"?fn:fn.value:"");return G.a("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",Qi,fr)}return Qi},getWidgetAriaLabel:()=>G.a("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this.toDispose.add(Object(je.b)(this.list,d,{listInactiveFocusBackground:hb,listInactiveFocusOutline:Ue.b})),this.toDispose.add(d.onDidColorThemeChange(hn=>this.onThemeChange(hn))),this.toDispose.add(e.onDidLayoutChange(()=>this.onEditorLayoutChange())),this.toDispose.add(this.list.onMouseDown(hn=>this.onListMouseDownOrTap(hn))),this.toDispose.add(this.list.onTap(hn=>this.onListMouseDownOrTap(hn))),this.toDispose.add(this.list.onDidChangeSelection(hn=>this.onListSelection(hn))),this.toDispose.add(this.list.onDidChangeFocus(hn=>this.onListFocus(hn))),this.toDispose.add(this.editor.onDidChangeCursorSelection(()=>this.onCursorSelectionChanged())),this.toDispose.add(this.editor.onDidChangeConfiguration(hn=>{hn.hasChanged(96)&&(di(),Ki())})),this.ctxSuggestWidgetVisible=cr.Visible.bindTo(o),this.ctxSuggestWidgetDetailsVisible=cr.DetailsVisible.bindTo(o),this.ctxSuggestWidgetMultipleSuggestions=cr.MultipleSuggestions.bindTo(o),this.onThemeChange(d.getColorTheme()),this.toDispose.add(Object(ae.n)(this.details.element,"keydown",hn=>{this._onDetailsKeydown.fire(hn)})),this.toDispose.add(this.editor.onMouseDown(hn=>this.onEditorMouseDown(hn)))}onEditorMouseDown(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()}onCursorSelectionChanged(){this.state!==0&&this.editor.layoutContentWidget(this)}onEditorLayoutChange(){this.state!==3&&this.state!==5||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()}onListMouseDownOrTap(e){e.element!==void 0&&e.index!==void 0&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))}onListSelection(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])}select(e,t){let n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())}onThemeChange(e){let t=e.getColor(lb);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());let n=e.getColor(cb);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());let o=e.getColor(Ue.Z);o&&(this.detailsFocusBorderColor=o.toString()),this.details.setBorderWidth(e.type==="hc"?2:1)}onListFocus(e){if(this.ignoreFocusEvents)return;if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(!this.completionModel)return;let t=e.elements[0],n=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,t!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=t,this.list.reveal(n),this.currentSuggestionDetails=Object(Bi.f)(o=>sb(this,void 0,void 0,function*(){let d=Object(Bi.g)(()=>this.showDetails(!0),250);o.onCancellationRequested(()=>d.dispose());let m=yield t.resolve(o);return d.dispose(),m})),this.currentSuggestionDetails.then(()=>{n>=this.list.length||t!==this.list.element(n)||(this.ignoreFocusEvents=!0,this.list.splice(n,1,[t]),this.list.setFocus([n]),this.ignoreFocusEvents=!1,this.expandDocsSettingFromStorage()?this.showDetails(!1):this.element.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Ep(n)}))}).catch(De.e)),this.onDidFocusEmitter.fire({item:t,index:n,model:this.completionModel})}setState(e){if(!this.element)return;this.isAddedAsContentWidget||e===0||(this.isAddedAsContentWidget=!0,this.editor.addContentWidget(this));let t=this.state!==e;switch(this.state=e,this.element.classList.toggle("frozen",e===4),e){case 0:Object(ae.K)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,t&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Gd.LOADING_MESSAGE,Object(ae.K)(this.listElement,this.details.element,this.statusBarElement),Object(ae.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Gd.NO_SUGGESTIONS_MESSAGE,Object(ae.K)(this.listElement,this.details.element,this.statusBarElement),Object(ae.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(ae.K)(this.messageElement),Object(ae.Z)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(ae.K)(this.messageElement),Object(ae.Z)(this.listElement),this.show();break;case 5:Object(ae.K)(this.messageElement),Object(ae.Z)(this.details.element,this.listElement,this.statusBarElement),this.show()}}showTriggered(e,t){this.state===0&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(Bi.g)(()=>this.setState(1),t)))}showSuggestions(e,t,n,o){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&this.state!==2&&this.state!==0)return void this.setState(4);let d=this.completionModel.items.length,m=d===0;if(this.ctxSuggestWidgetMultipleSuggestions.set(d>1),m)o?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){let{stats:D}=this.completionModel;D.wasAutomaticallyTriggered=!!o,this.telemetryService.publicLog("suggestWidget",Object.assign({},D))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}selectNextPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}}selectNext(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}}selectLast(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}}selectPreviousPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}}selectPrevious(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}}selectFirst(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}}getFocusedItem(){if(this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}}toggleDetailsFocus(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")}toggleDetails(){if(Vc(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.ctxSuggestWidgetDetailsVisible.set(!1),this.updateExpandDocsSetting(!1),Object(ae.K)(this.details.element),this.element.classList.remove("docs-side","doc-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.ctxSuggestWidgetDetailsVisible.set(!0),this.updateExpandDocsSetting(!0),this.showDetails(!1),this.telemetryService.publicLog2("suggestWidget:expandDetails")}}showDetails(e){e||this.expandSideOrBelow(),Object(ae.Z)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()}toggleExplainMode(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))}show(){let e=this.updateListHeight();e!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=e),this.ctxSuggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(()=>{this.element.classList.add("visible"),this.onDidShowEmitter.fire(this)},100)}hide(){this.editor.layoutContentWidget(this),this.ctxSuggestWidgetVisible.reset(),this.ctxSuggestWidgetMultipleSuggestions.reset(),this.element.classList.remove("visible")}hideWidget(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)}getPosition(){if(this.state===0)return null;let e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}}getDomNode(){return this.element}getId(){return Gd.ID}isFrozen(){return this.state===4}updateListHeight(){let e=0;if(this.state===2||this.state===1)e=this.unfocusedHeight;else{let t=this.list.contentHeight/this.unfocusedHeight,{maxVisibleSuggestions:n}=this.editor.getOption(96);e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e}adjustDocsPosition(){if(!this.editor.hasModel())return;let e=this.editor.getOption(51),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(ae.C)(this.editor.getDomNode()),o=n.left+t.left,d=n.top+t.top+t.height,m=Object(ae.C)(this.element),D=m.left,oe=m.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<oe&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=oe,D<o-this.listWidth?this.element.classList.add("list-right"):this.element.classList.remove("list-right"),this.element.classList.contains("docs-side")&&d-e>oe&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}expandSideOrBelow(){if(!Vc(this.focusedItem)&&this.firstFocusInCurrentList)return void this.element.classList.remove("docs-side","docs-below");let e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(this.element.classList.add("docs-below"),this.element.classList.remove("docs-side")):Vc(this.focusedItem)&&(this.element.classList.add("docs-side"),this.element.classList.remove("docs-below"))}get maxWidgetHeight(){return this.unfocusedHeight*this.editor.getOption(96).maxVisibleSuggestions}get unfocusedHeight(){let e=this.editor.getOptions();return e.get(98)||e.get(36).lineHeight}getHeight(e){return this.unfocusedHeight}getTemplateId(e){return"suggestion"}expandDocsSettingFromStorage(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)}updateExpandDocsSetting(e){this.storageService.store("expandSuggestionDocs",e,0)}dispose(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose(),this.editor.removeContentWidget(this)}};vc.ID="editor.widget.suggestWidget",vc.LOADING_MESSAGE=G.a("suggestWidget.loading","Loading..."),vc.NO_SUGGESTIONS_MESSAGE=G.a("suggestWidget.noSuggestions","No suggestions."),vc=Sp([js(1,We.a),js(2,Ot.a),js(3,A.b),js(4,ut.c),js(5,Qn.a),js(6,nl.a),js(7,ga.a),js(8,ze.a),js(9,X.a)],vc),Object(ut.g)((u,e)=>{let t=u.getColor(ub);t&&e.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${t}; }`);let n=u.getColor(db);n&&e.addRule(`.monaco-editor .suggest-widget { color: ${n}; }`);let o=u.getColor(Ue.rc);o&&e.addRule(`.monaco-editor .suggest-widget a { color: ${o}; }`);let d=u.getColor(Ue.qc);d&&e.addRule(`.monaco-editor .suggest-widget code { background-color: ${d}; }`)});var mb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},gb=function(u,e){return function(t,n){e(t,n,u)}};let Uc=class wm extends Lt.a{constructor(e,t){super(),this._editor=e,this._enabled=!1,this._ckAtEnd=wm.AtEnd.bindTo(t),this._register(this._editor.onDidChangeConfiguration(n=>n.hasChanged(101)&&this._update())),this._update()}dispose(){super.dispose(),Object(Lt.f)(this._selectionListener),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(101)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);let n=this._editor.getModel(),o=this._editor.getSelection(),d=n.getWordAtPosition(o.getStartPosition());d?this._ckAtEnd.set(d.endColumn===o.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};Uc.AtEnd=new A.c("atEndOfWord",!1),Uc=mb([gb(1,A.b)],Uc);class fb{constructor(e,t,n){this._disposables=new Lt.b,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(o=>{if(this._active&&!t.isFrozen()){let d=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(d)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Object(ee.o)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;let t=new Xs.b;for(let n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class Dd{constructor(e,t){this._disposables=new Lt.b,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty||!e.hasModel())return;let n=e.getSelections(),o=n.length,d=!1;for(let D=0;D<o;D++)if(!n[D].isEmpty()){d=!0;break}if(!d)return;this._lastOvertyped=[];let m=e.getModel();for(let D=0;D<o;D++){let oe=n[D];if(m.getValueLengthInRange(oe)>Dd._maxSelectionLength)return;this._lastOvertyped[D]={value:m.getValueInRange(oe),multiline:oe.startLineNumber!==oe.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(n=>{this._empty||(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}Dd._maxSelectionLength=51200;var Tp=r(158),bb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Vl=function(u,e){return function(t,n){e(t,n,u)}};class _b{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let n=e.getOffsetAt(t),o=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:gt.a.fromPositions(t,o),options:{stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Ul=class ym{constructor(e,t,n,o,d,m,D,oe){this._memoryService=n,this._commandService=o,this._contextKeyService=d,this._instantiationService=m,this._logService=D,this._lineSuffix=new Lt.d,this._toDispose=new Lt.b,this.editor=e,this.model=new Mh(this.editor,t,oe),this.widget=this._toDispose.add(new Bi.b(()=>{let Me=this._instantiationService.createInstance(vc,this.editor);this._toDispose.add(Me),this._toDispose.add(Me.onDidSelect(hi=>this._insertSuggestion(hi,0),this));let Ct=new fb(this.editor,Me,hi=>this._insertSuggestion(hi,2));this._toDispose.add(Ct),this._toDispose.add(this.model.onDidSuggest(hi=>{hi.completionModel.items.length===0&&Ct.reset()}));let Ut=cr.MakesTextEdit.bindTo(this._contextKeyService),St=cr.HasInsertAndReplaceRange.bindTo(this._contextKeyService),di=cr.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(Lt.h)(()=>{Ut.reset(),St.reset(),di.reset()})),this._toDispose.add(Me.onDidFocus(({item:hi})=>{let ji=this.editor.getPosition(),Ji=hi.editStart.column,dn=ji.column,Ki=!0;this.editor.getOption(1)!=="smart"||this.model.state!==2||hi.completion.command||hi.completion.additionalTextEdits||4&hi.completion.insertTextRules||dn-Ji!==hi.completion.insertText.length||(Ki=this.editor.getModel().getValueInRange({startLineNumber:ji.lineNumber,startColumn:Ji,endLineNumber:ji.lineNumber,endColumn:dn})!==hi.completion.insertText),Ut.set(Ki),St.set(!Oi.a.equals(hi.editInsertEnd,hi.editReplaceEnd)),di.set(Boolean(hi.provider.resolveCompletionItem)||Boolean(hi.completion.documentation)||hi.completion.detail!==hi.completion.label)})),this._toDispose.add(Me.onDetailsKeyDown(hi=>{hi.toKeybinding().equals(new Se.e(!0,!1,!1,!1,33))||Et.f&&hi.toKeybinding().equals(new Se.e(!1,!1,!1,!0,33))?hi.stopPropagation():hi.toKeybinding().isModifierKey()||this.editor.focus()})),Me})),this._overtypingCapturer=this._toDispose.add(new Bi.b(()=>this._toDispose.add(new Dd(this.editor,this.model)))),this._alternatives=this._toDispose.add(new Bi.b(()=>this._toDispose.add(new Bl(this.editor,this._contextKeyService)))),this._toDispose.add(m.createInstance(Uc,e)),this._toDispose.add(this.model.onDidTrigger(Me=>{this.widget.value.showTriggered(Me.auto,Me.shy?250:50),this._lineSuffix.value=new _b(this.editor.getModel(),Me.position)})),this._toDispose.add(this.model.onDidSuggest(Me=>{if(!Me.shy){let Ct=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),Me.completionModel.items);this.widget.value.showSuggestions(Me.completionModel,Ct,Me.isFrozen,Me.auto)}})),this._toDispose.add(this.model.onDidCancel(Me=>{Me.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let re=cr.AcceptSuggestionsOnEnter.bindTo(d),ce=()=>{let Me=this.editor.getOption(1);re.set(Me==="on"||Me==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>ce())),ce()}static get(e){return e.getContribution(ym.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;let n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:d}=e,m=[],D=new Dn.b;1&t||this.editor.pushUndoStop();let oe=this.getOverwriteInfo(d,Boolean(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),d),Array.isArray(d.completion.additionalTextEdits)){let ce=qt.c.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",d.completion.additionalTextEdits.map(Me=>Cn.a.replace(gt.a.lift(Me.range),Me.text))),ce.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d.isResolved){let ce=new Tp.a(!0),Me,Ct=n.onDidChangeContent(hi=>{if(hi.isFlush)return D.cancel(),void Ct.dispose();for(let ji of hi.changes){let Ji=gt.a.getEndPosition(ji.range);Me&&!Oi.a.isBefore(Ji,Me)||(Me=Ji)}}),Ut=t;t|=2;let St=!1,di=this.editor.onWillType(()=>{di.dispose(),St=!0,2&Ut||this.editor.pushUndoStop()});m.push(d.resolve(D.token).then(()=>{if(!d.completion.additionalTextEdits||D.token.isCancellationRequested||Me&&d.completion.additionalTextEdits.some(ji=>Oi.a.isBefore(Me,gt.a.getStartPosition(ji.range))))return!1;St&&this.editor.pushUndoStop();let hi=qt.c.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",d.completion.additionalTextEdits.map(ji=>Cn.a.replace(gt.a.lift(ji.range),ji.text))),hi.restoreRelativeVerticalPositionOfCursor(this.editor),!St&&2&Ut||this.editor.pushUndoStop(),!0}).then(hi=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",ce.elapsed(),hi),Ct.dispose(),di.dispose()}))}let{insertText:re}=d.completion;4&d.completion.insertTextRules||(re=Ih.escape(re)),to.get(this.editor).insert(re,{overwriteBefore:oe.overwriteBefore,overwriteAfter:oe.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&d.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),d.completion.command?d.completion.command.id===Hc.id?this.model.trigger({auto:!0,shy:!1},!0):(m.push(this._commandService.executeCommand(d.completion.command.id,...d.completion.command.arguments?[...d.completion.command.arguments]:[]).catch(De.e)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,ce=>{for(D.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(ce,3|(8&t?8:0));break}}),this._alertCompletionItem(d),Promise.all(m).finally(()=>{this.model.clear(),D.dispose()})}getOverwriteInfo(e,t){Object(tr.b)(this.editor.hasModel());let n=this.editor.getOption(96).insertMode==="replace";t&&(n=!n);let o=e.position.column-e.editStart.column,d=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:o+(this.editor.getPosition().column-e.position.column),overwriteAfter:d+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem({completion:e}){let t=typeof e.label=="string"?e.label:e.label.name;if(Object(ee.o)(e.additionalTextEdits)){let n=G.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",t,e.additionalTextEdits.length);Object(_i.a)(n)}}triggerSuggest(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),n=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},o=d=>{if(4&d.completion.insertTextRules||d.completion.additionalTextEdits)return!0;let m=this.editor.getPosition(),D=d.editStart.column,oe=m.column;return oe-D!==d.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:m.lineNumber,startColumn:D,endLineNumber:m.lineNumber,endColumn:oe})!==d.completion.insertText};ot.b.once(this.model.onDidTrigger)(d=>{let m=[];ot.b.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(Lt.f)(m),n()},void 0,m),this.model.onDidSuggest(({completionModel:D})=>{if(Object(Lt.f)(m),D.items.length===0)return void n();let oe=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),D.items),re=D.items[oe];o(re)?(this.editor.pushUndoStop(),this._insertSuggestion({index:oe,item:re,model:D},7)):n()},void 0,m)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(t.lineNumber,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let n=this.widget.value.getFocusedItem(),o=0;e&&(o|=4),t&&(o|=8),this._insertSuggestion(n,o)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}};Ul.ID="editor.contrib.suggestController",Ul=bb([Vl(1,Rs.a),Vl(2,Cp),Vl(3,Ee.b),Vl(4,A.b),Vl(5,X.a),Vl(6,Eh.b),Vl(7,Pi.a)],Ul);class Hc extends $.b{constructor(){super({id:Hc.id,label:G.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:A.a.and(z.a.writable,z.a.hasCompletionItemProvider),kbOpts:{kbExpr:z.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})}run(e,t){let n=Ul.get(t);n&&n.triggerSuggest()}}Hc.id="editor.action.triggerSuggest",Object($.m)(Ul.ID,Ul),Object($.k)(Hc);let Jo=$.c.bindToContribution(Ul.get);Object($.l)(new Jo({id:"acceptSelectedSuggestion",precondition:cr.Visible,handler(u){u.acceptSelectedSuggestion(!0,!1)}})),so.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:A.a.and(cr.Visible,z.a.textInputFocus),primary:2,weight:190}),so.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:A.a.and(cr.Visible,z.a.textInputFocus,cr.AcceptSuggestionsOnEnter,cr.MakesTextEdit),primary:3,weight:190}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.accept",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:cr.HasInsertAndReplaceRange.toNegated()}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:A.a.and(cr.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","insert"))}),ze.d.appendMenuItem(dl,{command:{id:"acceptSelectedSuggestion",title:G.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},group:"left",order:1,when:A.a.and(cr.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","replace"))}),Object($.l)(new Jo({id:"acceptAlternativeSelectedSuggestion",precondition:A.a.and(cr.Visible,z.a.textInputFocus),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:1027,secondary:[1026]},handler(u){u.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:dl,group:"left",order:2,when:A.a.and(cr.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","insert")),title:G.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},{menuId:dl,group:"left",order:2,when:A.a.and(cr.HasInsertAndReplaceRange,A.a.equals("config.editor.suggest.insertMode","replace")),title:G.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")}]})),Ee.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object($.l)(new Jo({id:"hideSuggestWidget",precondition:cr.Visible,handler:u=>u.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:9,secondary:[1033]}})),Object($.l)(new Jo({id:"selectNextSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object($.l)(new Jo({id:"selectNextPageSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:12,secondary:[2060]}})),Object($.l)(new Jo({id:"selectLastSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectLastSuggestion()})),Object($.l)(new Jo({id:"selectPrevSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object($.l)(new Jo({id:"selectPrevPageSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:11,secondary:[2059]}})),Object($.l)(new Jo({id:"selectFirstSuggestion",precondition:A.a.and(cr.Visible,cr.MultipleSuggestions),handler:u=>u.selectFirstSuggestion()})),Object($.l)(new Jo({id:"toggleSuggestionDetails",precondition:cr.Visible,handler:u=>u.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:dl,group:"right",order:1,when:A.a.and(cr.DetailsVisible,cr.CanResolve),title:G.a("detail.more","show less")},{menuId:dl,group:"right",order:1,when:A.a.and(cr.DetailsVisible.toNegated(),cr.CanResolve),title:G.a("detail.less","show more")}]})),Object($.l)(new Jo({id:"toggleExplainMode",precondition:cr.Visible,handler:u=>u.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object($.l)(new Jo({id:"toggleSuggestionFocus",precondition:cr.Visible,handler:u=>u.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object($.l)(new Jo({id:"insertBestCompletion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Uc.AtEnd,cr.Visible.toNegated(),Bl.OtherSuggestions.toNegated(),to.InSnippetMode.toNegated()),handler:(u,e)=>{u.triggerSuggestAndAcceptBest(Object(tr.i)(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object($.l)(new Jo({id:"insertNextSuggestion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Bl.OtherSuggestions,cr.Visible.toNegated(),to.InSnippetMode.toNegated()),handler:u=>u.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:2}})),Object($.l)(new Jo({id:"insertPrevSuggestion",precondition:A.a.and(z.a.textInputFocus,A.a.equals("config.editor.tabCompletion","on"),Bl.OtherSuggestions,cr.Visible.toNegated(),to.InSnippetMode.toNegated()),handler:u=>u.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:z.a.textInputFocus,primary:1026}}));class vb extends $.b{constructor(){super({id:"editor.action.forceRetokenize",label:G.a("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getModel();n.resetTokenization();let o=new Tp.a(!0);n.forceTokenization(n.getLineCount()),o.stop(),console.log("tokenization took "+o.elapsed())}}Object($.k)(vb);var Lp=r(161);class wc extends $.b{constructor(){super({id:wc.ID,label:G.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){let n=!Lp.b.getTabFocusMode();Lp.b.setTabFocusMode(n),n?Object(_i.a)(G.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(_i.a)(G.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}wc.ID="editor.action.toggleTabFocusMode",Object($.k)(wc);var wb=r(171),yb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Np=function(u,e){return function(t,n){e(t,n,u)}},Cb=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let qc=class extends Lt.a{constructor(u,e,t){super(),this._editor=u,this._dialogService=e,this._codeEditorService=t,this._config=this._editor.getOption(103),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(103)&&(this._config=this._editor.getOption(103),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return Cb(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let u=this._editor.getModel();if(!!u.mightContainUnusualLineTerminators()&&function(e,t){return e.getModelProperty(t.uri,"ignoreUnusualLineTerminators")}(this._codeEditorService,u)!==!0&&!this._editor.getOption(72)){if(this._config==="auto")return void u.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:G.a("unusualLineTerminators.title","Unusual Line Terminators"),message:G.a("unusualLineTerminators.message","Detected unusual line terminators"),detail:G.a("unusualLineTerminators.detail","This file contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`."),primaryButton:G.a("unusualLineTerminators.fix","Fix this file"),secondaryButton:G.a("unusualLineTerminators.ignore","Ignore problem for this file")})).confirmed?u.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,"ignoreUnusualLineTerminators",n)}(this._codeEditorService,u,!0)}})}};qc.ID="editor.contrib.unusualLineTerminatorsDetector",qc=yb([Np(1,wb.a),Np(2,Si.a)],qc),Object($.m)(qc.ID,qc);var xb=r(184),Ip=r(183),Sb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Fh=function(u,e){return function(t,n){e(t,n,u)}};let $c=class Cm extends Lt.a{constructor(e,t,n,o){super(),this._modelService=t,this._themeService=n,this._configurationService=o,this._editor=e,this._tokenizeViewport=new Bi.d(()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(d=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(I.k.onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(d=>{d.affectsConfiguration(Ip.b)&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}static _getSemanticColoringProvider(e){let t=I.k.ordered(e);return t.length>0?t[0]:null}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;let e=this._editor.getModel();if(e.hasSemanticTokens()||!Object(Ip.c)(e,this._themeService,this._configurationService))return;let t=Cm._getSemanticColoringProvider(e);if(!t)return;let n=this._modelService.getSemanticTokensProviderStyling(t),o=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(o.map(d=>this._requestRange(e,d,t,n)))}_requestRange(e,t,n,o){let d=e.getVersionId(),m=Object(Bi.f)(D=>Promise.resolve(n.provideDocumentRangeSemanticTokens(e,t,D)));return m.then(D=>{D&&!e.isDisposed()&&e.getVersionId()===d&&e.setPartialSemanticTokens(t,Object(xb.b)(D,o,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(m),()=>this._removeOutstandingRequest(m)),m}};$c.ID="editor.contrib.viewportSemanticTokens",$c=Sb([Fh(1,ne.a),Fh(2,ut.c),Fh(3,kr.a)],$c),Object($.m)($c.ID,$c);var kb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Eb=function(u,e){return function(t,n){e(t,n,u)}};let Tb=Object(Ue.gc)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},G.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Lb=Object(Ue.gc)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},G.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Nb=Object(Ue.gc)("editor.wordHighlightBorder",{light:null,dark:null,hc:Ue.b},G.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),Ib=Object(Ue.gc)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Ue.b},G.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),Db=Object(Ue.gc)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},G.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ob=Object(Ue.gc)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},G.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Od=new A.c("hasWordHighlights",!1);function Dp(u,e,t){let n=I.i.ordered(u);return Object(Bi.h)(n.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(u,e,t)).then(void 0,De.f)),ee.o)}class Op{constructor(e,t,n){this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(Bi.f)(o=>this._compute(e,t,n,o))}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new gt.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){let o=t.startLineNumber,d=t.startColumn,m=t.endColumn,D=this._getCurrentWordRange(e,t),oe=Boolean(this._wordRange&&this._wordRange.equalsRange(D));for(let re=0,ce=n.length;!oe&&re<ce;re++){let Me=e.getDecorationRange(n[re]);Me&&Me.startLineNumber===o&&Me.startColumn<=d&&Me.endColumn>=m&&(oe=!0)}return oe}cancel(){this.result.cancel()}}class Ab extends Op{_compute(e,t,n,o){return Dp(e,t.getPosition(),o).then(d=>d||[])}}class Rb extends Op{constructor(e,t,n){super(e,t,n),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,n,o){return Object(Bi.l)(250,o).then(()=>{if(!t.isEmpty())return[];let d=e.getWordAtPosition(t.getPosition());return!d||d.word.length>1e3?[]:e.findMatches(d.word,!0,!1,!0,n,!1).map(m=>({range:m.range,kind:I.h.Text}))})}isValid(e,t,n){let o=t.isEmpty();return this._selectionIsEmpty===o&&super.isValid(e,t,n)}}Object($.p)("_executeDocumentHighlights",(u,e)=>Dp(u,e,Dn.a.None));class yc{constructor(e,t){this.toUnhook=new Lt.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=Od.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(63),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{let o=this.editor.getOption(63);this.occurrencesHighlight!==o&&(this.occurrencesHighlight=o,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this._decorationIds.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return ee.d(this._decorationIds.map(e=>this.model.getDecorationRange(e)).sort(gt.a.compareRangesUsingStarts))}moveNext(){let e=this._getSortedHighlights(),t=(ee.j(e,o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let d=this.editor.getModel().getLineContent(n.startLineNumber);Object(_i.a)(`${d}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(ee.j(e,o=>o.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let d=this.editor.getModel().getLineContent(n.startLineNumber);Object(_i.a)(`${d}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&e.reason===3?this._run():this._stopAll()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();let t=e.startColumn,n=e.endColumn,o=this._getWord();if(!o||o.startColumn>t||o.endColumn<n)return void this._stopAll();let d=this.workerRequest&&this.workerRequest.isValid(this.model,e,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),d)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();let re=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(m=this.model,D=this.editor.getSelection(),oe=this.editor.getOption(105),I.i.has(m)?new Ab(m,D,oe):new Rb(m,D,oe)),this.workerRequest.result.then(ce=>{re===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=ce||[],this._beginRenderDecorations())},De.e)}var m,D,oe}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:yc._getDecorationOptions(t.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===I.h.Write?this._WRITE_OPTIONS:e===I.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}yc._WRITE_OPTIONS=Rt.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(ut.h)(Ob),position:vi.d.Center}}),yc._TEXT_OPTIONS=Rt.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(ut.h)(Ue.Wb),position:vi.d.Center}}),yc._REGULAR_OPTIONS=Rt.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(ut.h)(Db),position:vi.d.Center}});let Hl=class xm extends Lt.a{constructor(e,t){super(),this.wordHighlighter=null;let n=()=>{e.hasModel()&&(this.wordHighlighter=new yc(e,t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(xm.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};Hl.ID="editor.contrib.wordHighlighter",Hl=kb([Eb(1,A.b)],Hl);class Ap extends $.b{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=Hl.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}}class Mb extends $.b{constructor(){super({id:"editor.action.wordHighlight.trigger",label:G.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Od.toNegated(),kbOpts:{kbExpr:z.a.editorTextFocus,primary:0,weight:100}})}run(e,t,n){let o=Hl.get(t);o&&o.restoreViewState(!0)}}Object($.m)(Hl.ID,Hl),Object($.k)(class extends Ap{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:G.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Od,kbOpts:{kbExpr:z.a.editorTextFocus,primary:65,weight:100}})}}),Object($.k)(class extends Ap{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:G.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Od,kbOpts:{kbExpr:z.a.editorTextFocus,primary:1089,weight:100}})}}),Object($.k)(Mb),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.Q);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));let n=u.getColor(Tb);n&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${n}; }`);let o=u.getColor(Lb);o&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${o}; }`);let d=u.getColor(Ue.R);d&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${u.type==="hc"?"dotted":"solid"} ${d}; box-sizing: border-box; }`);let m=u.getColor(Nb);m&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${u.type==="hc"?"dashed":"solid"} ${m}; box-sizing: border-box; }`);let D=u.getColor(Ib);D&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${u.type==="hc"?"dashed":"solid"} ${D}; box-sizing: border-box; }`)});var Pb=r(22),hl=r(129),Cc=r(117),Ad=r(26);class Rd extends $.c{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let o=Object(Cc.a)(t.getOption(105)),d=t.getModel(),m=t.getSelections().map(D=>{let oe=new Oi.a(D.positionLineNumber,D.positionColumn),re=this._move(o,d,oe,this._wordNavigationType);return this._moveTo(D,re,this._inSelectionMode)});if(d.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",0,m.map(D=>Pb.d.fromModelSelection(D))),m.length===1){let D=new Oi.a(m[0].positionLineNumber,m[0].positionColumn);t.revealPosition(D,0)}}_moveTo(e,t,n){return n?new J.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new J.a(t.lineNumber,t.column,t.lineNumber,t.column)}}class ul extends Rd{_move(e,t,n,o){return hl.a.moveWordLeft(e,t,n,o)}}class pl extends Rd{_move(e,t,n,o){return hl.a.moveWordRight(e,t,n,o)}}class Md extends $.c{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let o=Object(Cc.a)(t.getOption(105)),d=t.getModel(),m=t.getSelections().map(D=>{let oe=this._delete(o,d,D,this._whitespaceHeuristics,this._wordNavigationType);return new $i.a(oe,"")});t.pushUndoStop(),t.executeCommands(this.id,m),t.pushUndoStop()}}class Wh extends Md{_delete(e,t,n,o,d){return hl.a.deleteWordLeft(e,t,n,o,d)||new gt.a(1,1,1,1)}}class zh extends Md{_delete(e,t,n,o,d){let m=hl.a.deleteWordRight(e,t,n,o,d);if(m)return m;let D=t.getLineCount(),oe=t.getLineMaxColumn(D);return new gt.a(D,oe,D,oe)}}Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,pr.a),win:{primary:2063},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends ul{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,pr.a),win:{primary:3087},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,pr.a),win:{primary:2065},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends pl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:A.a.and(z.a.textInputFocus,pr.a),win:{primary:3089},weight:101}})}_move(u,e,t,n){return super._move(Object(Cc.a)(Ad.g.wordSeparators.defaultValue),e,t,n)}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:z.a.writable})}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:z.a.writable})}}),Object($.l)(new class extends Wh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:z.a.writable})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:z.a.writable})}}),Object($.l)(new class extends zh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}});class Rp extends Rd{_move(e,t,n,o){return hl.b.moveWordPartLeft(e,t,n)}}Ee.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft"),Ee.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class Mp extends Rd{_move(e,t,n,o){return hl.b.moveWordPartRight(e,t,n)}}Object($.l)(new class extends Md{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(u,e,t,n,o){return hl.b.deleteWordPartLeft(u,e,t,n)||new gt.a(1,1,1,1)}}),Object($.l)(new class extends Md{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:z.a.writable,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(u,e,t,n,o){let d=hl.b.deleteWordPartRight(u,e,t,n);if(d)return d;let m=e.getLineCount(),D=e.getLineMaxColumn(m);return new gt.a(m,D,m,D)}}),Object($.l)(new class extends Rp{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),Object($.l)(new class extends Rp{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),Object($.l)(new class extends Mp{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),Object($.l)(new class extends Mp{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}});var Cr=r(55),Pp=(r(335),r(35)),Fp=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Pd=function(u,e){return function(t,n){e(t,n,u)}};let Wp=new A.c("accessibilityHelpWidgetVisible",!1),ql=class Sm extends Lt.a{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(xc,this._editor))}static get(e){return e.getContribution(Sm.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};ql.ID="editor.contrib.accessibilityHelpController",ql=Fp([Pd(1,X.a)],ql);let xc=class Yd extends ro.a{constructor(e,t,n,o){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=o,this._editor=e,this._isVisibleKey=Wp.bindTo(this._contextKeyService),this._domNode=Object(Pp.b)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(Pp.b)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ae.n(this._contentDomNode.domNode,"keydown",d=>{if(this._isVisible&&(d.equals(2083)&&(Object(_i.a)(Cr.a.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),ae.s(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),d.preventDefault(),d.stopPropagation()),d.equals(2086))){Object(_i.a)(Cr.a.openingDocs);let m=this._editor.getRawOptions().accessibilityHelpUrl;m===void 0&&(m="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(On.a.parse(m)),d.preventDefault(),d.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Yd.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,n){let o=this._keybindingService.lookupKeybinding(e);return o?rn.x(t,o.getAriaLabel()):rn.x(n,e)}_buildContent(){let e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){let m=this._editor.getModel();m&&t.forEach(D=>{n+=m.getValueLengthInRange(D)})}let o=function(m,D){return m&&m.length!==0?m.length===1?D?rn.x(Cr.a.singleSelectionRange,m[0].positionLineNumber,m[0].positionColumn,D):rn.x(Cr.a.singleSelection,m[0].positionLineNumber,m[0].positionColumn):D?rn.x(Cr.a.multiSelectionRange,m.length,D):m.length>0?rn.x(Cr.a.multiSelection,m.length):"":Cr.a.noSelection}(t,n);e.get(47)?e.get(72)?o+=Cr.a.readonlyDiffEditor:o+=Cr.a.editableDiffEditor:e.get(72)?o+=Cr.a.readonlyEditor:o+=Cr.a.editableEditor;let d=Et.f?Cr.a.changeConfigToOnMac:Cr.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:o+=` - - `+d;break;case 2:r+=` + - `+d;break;case 2:o+=` - - `+xo.a.auto_on;break;case 1:r+=` + - `+Cr.a.auto_on;break;case 1:o+=` - - `+xo.a.auto_off,r+=" "+d}e.get(116)?r+=` + - `+Cr.a.auto_off,o+=" "+d}e.get(116)?o+=` - - `+this._descriptionForCommand(wc.ID,xo.a.tabFocusModeOnMsg,xo.a.tabFocusModeOnMsgNoKb):r+=` + - `+this._descriptionForCommand(wc.ID,Cr.a.tabFocusModeOnMsg,Cr.a.tabFocusModeOnMsgNoKb):o+=` - - `+this._descriptionForCommand(wc.ID,xo.a.tabFocusModeOffMsg,xo.a.tabFocusModeOffMsgNoKb),r+=` + - `+this._descriptionForCommand(wc.ID,Cr.a.tabFocusModeOffMsg,Cr.a.tabFocusModeOffMsgNoKb),o+=` - - `+(Et.f?xo.a.openDocMac:xo.a.openDocWinLinux),r+=` + - `+(Et.f?Cr.a.openDocMac:Cr.a.openDocWinLinux),o+=` -`+xo.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(Fu.b)(r)),this._contentDomNode.domNode.setAttribute("aria-label",r)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,ae.s(this._contentDomNode.domNode),this._editor.focus())}_layout(){let e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(Yd.WIDTH,e.width-40)),n=Math.max(5,Math.min(Yd.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);let r=Math.round((e.height-n)/2);this._domNode.setTop(r);let d=Math.round((e.width-t)/2);this._domNode.setLeft(d)}};xc.ID="editor.contrib.accessibilityHelpWidget",xc.WIDTH=500,xc.HEIGHT=300,xc=Fp([Pd(1,A.b),Pd(2,Dt.a),Pd(3,ga.a)],xc);class Fb extends $.b{constructor(){super({id:"editor.action.showAccessibilityHelp",label:xo.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let n=ql.get(t);n&&n.show()}}Object($.m)(ql.ID,ql),Object($.k)(Fb);let Wb=$.c.bindToContribution(ql.get);Object($.l)(new Wb({id:"closeAccessibilityHelp",precondition:Wp,handler:u=>u.hide(),kbOpts:{weight:200,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.U);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);let n=u.getColor(Ue.W);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${n}; }`);let r=u.getColor(Ue.uc);r&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${r}; }`);let d=u.getColor(Ue.h);d&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${d}; }`)}),o(337);class Bh extends Lt.a{constructor(e){super(),this.editor=e,this.widget=null,kt.i&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(72);!this.widget&&e?this.widget=new Fd(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Bh.ID="editor.contrib.iPadShowKeyboard";class Fd extends Lt.a{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(ae.i(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(ae.i(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Fd.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Fd.ID="editor.contrib.ShowKeyboardWidget",Object($.m)(Bh.ID,Bh),o(339);var jh=o(90),zp=o(139),zb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Bp=function(u,e){return function(t,n){e(t,n,u)}};let Sc=class km extends Lt.a{constructor(e,t,n){super(),this._editor=e,this._modeService=n,this._widget=null,this._register(this._editor.onDidChangeModel(r=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(r=>this.stop())),this._register(I.C.onDidChange(r=>this.stop())),this._register(this._editor.onKeyUp(r=>r.keyCode===9&&this.stop()))}static get(e){return e.getContribution(km.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new Wd(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Sc.ID="editor.contrib.inspectTokens",Sc=zb([Bp(1,zp.a),Bp(2,nl.a)],Sc);class Bb extends $.b{constructor(){super({id:"editor.action.inspectTokens",label:xo.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let n=Sc.get(t);n&&n.launch()}}class Wd extends Lt.a{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(n){return I.C.get(n.language)||{getInitialState:()=>jh.c,tokenize:(d,m,O)=>Object(jh.d)(n.language,d,m,O),tokenize2:(d,m,O)=>Object(jh.e)(n.id,d,m,O)}}(this._model.getLanguageIdentifier()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(n=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Wd._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let re=t.tokens1.length-1;re>=0;re--){let oe=t.tokens1[re];if(e.column-1>=oe.offset){n=re;break}}let r=0;for(let re=t.tokens2.length>>>1;re>=0;re--)if(e.column-1>=t.tokens2[re<<1]){r=re;break}let d=this._model.getLineContent(e.lineNumber),m="";if(n<t.tokens1.length){let re=t.tokens1[n].offset,oe=n+1<t.tokens1.length?t.tokens1[n+1].offset:d.length;m=d.substring(re,oe)}Object(ae.U)(this._domNode,Object(ae.a)("h2.tm-token",void 0,function(re){let oe="";for(let ce=0,Me=re.length;ce<Me;ce++){let Ct=re.charCodeAt(ce);switch(Ct){case 9:oe+="\u2192";break;case 32:oe+="\xB7";break;default:oe+=String.fromCharCode(Ct)}}return oe}(m),Object(ae.a)("span.tm-token-length",void 0,`${m.length} ${m.length===1?"char":"chars"}`))),Object(ae.p)(this._domNode,Object(ae.a)("hr.tokens-inspect-separator",{style:"clear:both"}));let O=1+(r<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(r<<1)]):null;Object(ae.p)(this._domNode,Object(ae.a)("table.tm-metadata-table",void 0,Object(ae.a)("tbody",void 0,Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"language"),Object(ae.a)("td.tm-metadata-value",void 0,""+(O?O.languageIdentifier.language:"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"token type"),Object(ae.a)("td.tm-metadata-value",void 0,""+(O?this._tokenTypeToString(O.tokenType):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"font style"),Object(ae.a)("td.tm-metadata-value",void 0,""+(O?this._fontStyleToString(O.fontStyle):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"foreground"),Object(ae.a)("td.tm-metadata-value",void 0,""+(O?Kn.a.Format.CSS.formatHex(O.foreground):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"background"),Object(ae.a)("td.tm-metadata-value",void 0,""+(O?Kn.a.Format.CSS.formatHex(O.background):"-?-")))))),Object(ae.p)(this._domNode,Object(ae.a)("hr.tokens-inspect-separator")),n<t.tokens1.length&&Object(ae.p)(this._domNode,Object(ae.a)("span.tm-token-type",void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=I.C.getColorMap(),n=I.B.getLanguageId(e),r=I.B.getTokenType(e),d=I.B.getFontStyle(e),m=I.B.getForeground(e),O=I.B.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:r,fontStyle:d,foreground:t[m],background:t[O]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),t.length===0&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),r=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:r.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}Wd._ID="editor.contrib.inspectTokensWidget",Object($.m)(Sc.ID,Sc),Object($.k)(Bb),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.F);if(t){let d=u.type===ut.b?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${d}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${n}; }`);let r=u.getColor(Ue.G);r&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${r}; }`)});var Kc=o(134),jb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Vb=function(u,e){return function(t,n){e(t,n,u)}};let zd=class Zd{constructor(e){this.quickInputService=e,this.registry=mc.a.as(Kc.b.Quickaccess)}provide(e){let t=new Lt.b;t.add(e.onDidAccept(()=>{let[d]=e.selectedItems;d&&this.quickInputService.quickAccess.show(d.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(d=>{let m=this.registry.getQuickAccessProvider(d.substr(Zd.PREFIX.length));m&&m.prefix&&m.prefix!==Zd.PREFIX&&this.quickInputService.quickAccess.show(m.prefix,{preserveValue:!0})}));let{editorProviders:n,globalProviders:r}=this.getQuickAccessProviders();return e.items=n.length===0||r.length===0?[...n.length===0?r:n]:[{label:Object(G.a)("globalCommands","global commands"),type:"separator"},...r,{label:Object(G.a)("editorCommands","editor commands"),type:"separator"},...n],t}getQuickAccessProviders(){let e=[],t=[];for(let n of this.registry.getQuickAccessProviders().sort((r,d)=>r.prefix.localeCompare(d.prefix)))if(n.prefix!==Zd.PREFIX)for(let r of n.helpEntries){let d=r.prefix||n.prefix,m=d||"\u2026";(r.needsEditor?t:e).push({prefix:d,label:m,ariaLabel:Object(G.a)("helpPickAriaLabel","{0}, {1}",m,r.description),description:r.description})}return{editorProviders:t,globalProviders:e}}};zd.PREFIX="?",zd=jb([Vb(0,Ho.a)],zd),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:zd,prefix:"",helpEntries:[{description:xo.e.helpQuickAccessActionLabel,needsEditor:!0}]});class jp{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;let r=new Lt.b;e.canAcceptInBackground=!!((n=this.options)===null||n===void 0?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let d=r.add(new Lt.d);return d.value=this.doProvide(e,t),r.add(this.onDidActiveTextEditorControlChange(()=>{d.value=void 0,d.value=this.doProvide(e,t)})),r}doProvide(e,t){let n=new Lt.b,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){let d=Object(Zr.a)(r);if(d){let m=Object(to.n)(r.saveViewState());n.add(d.onDidChangeCursorPosition(()=>{m=Object(to.n)(r.saveViewState())})),n.add(Object(vo.a)(t.onCancellationRequested)(()=>{m&&r===this.activeTextEditorControl&&r.restoreViewState(m)}))}n.add(Object(Lt.h)(()=>this.clearDecorations(r))),n.add(this.provideWithTextEditor(r,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation(e,t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(Zr.c)(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(n=>{let r=[];this.rangeHighlightDecorationId&&(r.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),r.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let d=[{range:t,options:{className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{overviewRuler:{color:Object(ut.h)(vt.s),position:vi.d.Full}}}],[m,O]=n.deltaDecorations(r,d);this.rangeHighlightDecorationId={rangeHighlightId:m,overviewRulerDecorationId:O}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(n=>{n.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Bd extends jp{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=Object(G.a)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,Lt.a.None}provideWithTextEditor(e,t,n){let r=new Lt.b;r.add(t.onDidAccept(O=>{let[re]=t.selectedItems;if(re){if(!this.isValidLineNumber(e,re.lineNumber))return;this.gotoLocation(e,{range:this.toRange(re.lineNumber,re.column),keyMods:t.keyMods,preserveFocus:O.inBackground}),O.inBackground||t.hide()}}));let d=()=>{let O=this.parsePosition(e,t.value.trim().substr(Bd.PREFIX.length)),re=this.getPickLabel(e,O.lineNumber,O.column);if(t.items=[{lineNumber:O.lineNumber,column:O.column,label:re}],t.ariaLabel=re,!this.isValidLineNumber(e,O.lineNumber))return void this.clearDecorations(e);let oe=this.toRange(O.lineNumber,O.column);e.revealRangeInCenter(oe,0),this.addDecorations(e,oe)};d(),r.add(t.onDidChangeValue(()=>d()));let m=Object(Zr.a)(e);return m&&m.getOptions().get(52).renderType===2&&(m.updateOptions({lineNumbers:"on"}),r.add(Object(Lt.h)(()=>m.updateOptions({lineNumbers:"relative"})))),r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=t.split(/,|:|#/).map(d=>parseInt(d,10)).filter(d=>!isNaN(d)),r=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:r+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?Object(G.a)("gotoLineColumnLabel","Go to line {0} and column {1}.",t,n):Object(G.a)("gotoLineLabel","Go to line {0}.",t);let r=e.getPosition()||{lineNumber:1,column:1},d=this.lineCount(e);return d>1?Object(G.a)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",r.lineNumber,r.column,d):Object(G.a)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",r.lineNumber,r.column)}isValidLineNumber(e,t){return!(!t||typeof t!="number")&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,n){if(!n||typeof n!="number")return!1;let r=this.getModel(e);if(!r)return!1;let d={lineNumber:t,column:n};return r.validatePosition(d).equals(d)}lineCount(e){var t,n;return(n=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&n!==void 0?n:0}}Bd.PREFIX=":";var Ub=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Hb=function(u,e){return function(t,n){e(t,n,u)}};let Gc=class extends Bd{constructor(u){super(),this.editorService=u,this.onDidActiveTextEditorControlChange=rt.b.None}get activeTextEditorControl(){return Object(to.n)(this.editorService.getFocusedCodeEditor())}};Gc=Ub([Hb(0,Si.a)],Gc),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:Gc,prefix:Gc.PREFIX,helpEntries:[{description:xo.b.gotoLineActionLabel,needsEditor:!0}]});class qb extends $.b{constructor(){super({id:"editor.action.gotoLine",label:xo.b.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(Ho.a).quickAccess.show(Gc.PREFIX)}}Object($.k)(qb);let Vp=[void 0,[]];function Vh(u,e,t=0,n=0){let r=e;return r.values&&r.values.length>1?function(d,m,O,re){let oe=0,ce=[];for(let Me of m){let[Ct,Ut]=Up(d,Me,O,re);if(typeof Ct!="number")return Vp;oe+=Ct,ce.push(...Ut)}return[oe,$b(ce)]}(u,r.values,t,n):Up(u,e,t,n)}function Up(u,e,t,n){let r=Object(kn.d)(e.original,e.originalLowercase,t,u,u.toLowerCase(),n,!0);return r?[r[0],Object(kn.c)(r)]:Vp}function $b(u){let e=u.sort((r,d)=>r.start-d.start),t=[],n;for(let r of e)n&&Kb(n,r)?(n.start=Math.min(n.start,r.start),n.end=Math.max(n.end,r.end)):(n=r,t.push(r));return t}function Kb(u,e){return!(u.end<e.start)&&!(e.end<u.start)}function Uh(u){typeof u!="string"&&(u="");let e=u.toLowerCase(),{pathNormalized:t,normalized:n,normalizedLowercase:r}=Hp(u),d=t.indexOf(mt.h)>=0,m,O=u.split(" ");if(O.length>1)for(let re of O){let{pathNormalized:oe,normalized:ce,normalizedLowercase:Me}=Hp(re);ce&&(m||(m=[]),m.push({original:re,originalLowercase:re.toLowerCase(),pathNormalized:oe,normalized:ce,normalizedLowercase:Me}))}return{original:u,originalLowercase:e,pathNormalized:t,normalized:n,normalizedLowercase:r,values:m,containsPathSeparator:d}}function Hp(u){let e;e=Et.i?u.replace(/\//g,mt.h):u.replace(/\\/g,mt.h);let t=Object(on.V)(e).replace(/\s/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function qp(u){return Array.isArray(u)?Uh(u.map(e=>e.original).join(" ")):Uh(u.original)}var Yc=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};class ys extends jp{constructor(e=Object.create(null)){super(e),this.options=e,e.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(G.a)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),Lt.a.None}provideWithTextEditor(e,t,n){let r=this.getModel(e);return r?I.m.has(r)?this.doProvideWithEditorSymbols(e,r,t,n):this.doProvideWithoutEditorSymbols(e,r,t,n):Lt.a.None}doProvideWithoutEditorSymbols(e,t,n,r){let d=new Lt.b;return this.provideLabelPick(n,Object(G.a)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{Yc(this,void 0,void 0,function*(){(yield this.waitForLanguageSymbolRegistry(t,d))&&!r.isCancellationRequested&&d.add(this.doProvideWithEditorSymbols(e,t,n,r))})})(),d}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Yc(this,void 0,void 0,function*(){if(I.m.has(e))return!0;let n,r=new Promise(m=>n=m),d=t.add(I.m.onDidChange(()=>{I.m.has(e)&&(d.dispose(),n(!0))}));return t.add(Object(Lt.h)(()=>n(!1))),r})}doProvideWithEditorSymbols(e,t,n,r){let d=new Lt.b;d.add(n.onDidAccept(ce=>{let[Me]=n.selectedItems;Me&&Me.range&&(this.gotoLocation(e,{range:Me.range.selection,keyMods:n.keyMods,preserveFocus:ce.inBackground}),ce.inBackground||n.hide())})),d.add(n.onDidTriggerItemButton(({item:ce})=>{ce&&ce.range&&(this.gotoLocation(e,{range:ce.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let m=this.getDocumentSymbols(t,!0,r),O,re=()=>Yc(this,void 0,void 0,function*(){O==null||O.dispose(!0),n.busy=!1,O=new On.b(r),n.busy=!0;try{let ce=Uh(n.value.substr(ys.PREFIX.length).trim()),Me=yield this.doGetSymbolPicks(m,ce,void 0,O.token);if(r.isCancellationRequested)return;Me.length>0?n.items=Me:ce.original.length>0?this.provideLabelPick(n,Object(G.a)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,Object(G.a)("noSymbolResults","No editor symbols"))}finally{r.isCancellationRequested||(n.busy=!1)}});d.add(n.onDidChangeValue(()=>re())),re();let oe=!0;return d.add(n.onDidChangeActive(()=>{let[ce]=n.activeItems;if(ce&&ce.range){if(oe)return void(oe=!1);e.revealRangeInCenter(ce.range.selection,0),this.addDecorations(e,ce.range.decoration)}})),d}doGetSymbolPicks(e,t,n,r){return Yc(this,void 0,void 0,function*(){let d=yield e;if(r.isCancellationRequested)return[];let m=t.original.indexOf(ys.SCOPE_PREFIX)===0,O=m?1:0,re,oe;t.values&&t.values.length>1?(re=qp(t.values[0]),oe=qp(t.values.slice(1))):re=t;let ce=[];for(let Ut=0;Ut<d.length;Ut++){let St=d[Ut],di=Object(on.W)(St.name),hi=`$(symbol-${I.A.toString(St.kind)||"property"}) ${di}`,ji=hi.length-di.length,Ji=St.containerName;(n==null?void 0:n.extraContainerLabel)&&(Ji=Ji?`${n.extraContainerLabel} \u2022 ${Ji}`:n.extraContainerLabel);let dn,Ki,yn,hn;if(t.original.length>O){let fn=!1;if(re!==t&&([dn,Ki]=Vh(hi,Object.assign(Object.assign({},t),{values:void 0}),O,ji),typeof dn=="number"&&(fn=!0)),typeof dn!="number"&&([dn,Ki]=Vh(hi,re,O,ji),typeof dn!="number"))continue;if(!fn&&oe){if(Ji&&oe.original.length>0&&([yn,hn]=Vh(Ji,oe)),typeof yn!="number")continue;typeof dn=="number"&&(dn+=yn)}}let Qi=St.tags&&St.tags.indexOf(1)>=0;ce.push({index:Ut,kind:St.kind,score:dn,label:hi,ariaLabel:di,description:Ji,highlights:Qi?void 0:{label:Ki,description:hn},range:{selection:gt.a.collapseToStart(St.selectionRange),decoration:St.range},strikethrough:Qi,buttons:(()=>{var fn,$n;let bo=((fn=this.options)===null||fn===void 0?void 0:fn.openSideBySideDirection)?($n=this.options)===null||$n===void 0?void 0:$n.openSideBySideDirection():void 0;if(bo)return[{iconClass:bo==="right"?de.a.splitHorizontal.classNames:de.a.splitVertical.classNames,tooltip:bo==="right"?Object(G.a)("openToSide","Open to the Side"):Object(G.a)("openToBottom","Open to the Bottom")}]})()})}let Me=ce.sort((Ut,St)=>m?this.compareByKindAndScore(Ut,St):this.compareByScore(Ut,St)),Ct=[];if(m){let hi=function(){St&&typeof Ut=="number"&&di>0&&(St.label=Object(on.x)(qh[Ut]||Hh,di))},Ut,St,di=0;for(let ji of Me)Ut!==ji.kind?(hi(),Ut=ji.kind,di=1,St={type:"separator"},Ct.push(St)):di++,Ct.push(ji);hi()}else Me.length>0&&(Ct=[{label:Object(G.a)("symbols","symbols ({0})",ce.length),type:"separator"},...Me]);return Ct})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){let n=qh[e.kind]||Hh,r=qh[t.kind]||Hh,d=n.localeCompare(r);return d===0?this.compareByScore(e,t):d}getDocumentSymbols(e,t,n){return Yc(this,void 0,void 0,function*(){let r=yield vn.create(e,n);if(n.isCancellationRequested)return[];let d=[];for(let O of r.children.values())O instanceof Fi?d.push(O.symbol):d.push(...Ka.a.map(O.children.values(),re=>re.symbol));let m=[];return t?this.flattenDocumentSymbols(m,d,""):m=d,m.sort((O,re)=>gt.a.compareRangesUsingStarts(O.range,re.range))})}flattenDocumentSymbols(e,t,n){for(let r of t)e.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||n,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&this.flattenDocumentSymbols(e,r.children,r.name)}}ys.PREFIX="@",ys.SCOPE_PREFIX=":",ys.PREFIX_BY_CATEGORY=`${ys.PREFIX}${ys.SCOPE_PREFIX}`;let Hh=Object(G.a)("property","properties ({0})"),qh={5:Object(G.a)("method","methods ({0})"),11:Object(G.a)("function","functions ({0})"),8:Object(G.a)("_constructor","constructors ({0})"),12:Object(G.a)("variable","variables ({0})"),4:Object(G.a)("class","classes ({0})"),22:Object(G.a)("struct","structs ({0})"),23:Object(G.a)("event","events ({0})"),24:Object(G.a)("operator","operators ({0})"),10:Object(G.a)("interface","interfaces ({0})"),2:Object(G.a)("namespace","namespaces ({0})"),3:Object(G.a)("package","packages ({0})"),25:Object(G.a)("typeParameter","type parameters ({0})"),1:Object(G.a)("modules","modules ({0})"),6:Object(G.a)("property","properties ({0})"),9:Object(G.a)("enum","enumerations ({0})"),21:Object(G.a)("enumMember","enumeration members ({0})"),14:Object(G.a)("string","strings ({0})"),0:Object(G.a)("file","files ({0})"),17:Object(G.a)("array","arrays ({0})"),15:Object(G.a)("number","numbers ({0})"),16:Object(G.a)("boolean","booleans ({0})"),18:Object(G.a)("object","objects ({0})"),19:Object(G.a)("key","keys ({0})"),7:Object(G.a)("field","fields ({0})"),13:Object(G.a)("constant","constants ({0})")};var Gb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Yb=function(u,e){return function(t,n){e(t,n,u)}};let $h=class extends ys{constructor(u){super(),this.editorService=u,this.onDidActiveTextEditorControlChange=rt.b.None}get activeTextEditorControl(){return Object(to.n)(this.editorService.getFocusedCodeEditor())}};$h=Gb([Yb(0,Si.a)],$h),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:$h,prefix:ys.PREFIX,helpEntries:[{description:xo.f.quickOutlineActionLabel,prefix:ys.PREFIX,needsEditor:!0},{description:xo.f.quickOutlineByCategoryActionLabel,prefix:ys.PREFIX_BY_CATEGORY,needsEditor:!0}]});class Zb extends $.b{constructor(){super({id:"editor.action.quickOutline",label:xo.f.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:z.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:z.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(Ho.a).quickAccess.show(ys.PREFIX)}}Object($.k)(Zb);var kc,jd=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};function Kh(u){let e=u;return Array.isArray(e.items)}(function(u){u[u.NO_ACTION=0]="NO_ACTION",u[u.CLOSE_PICKER=1]="CLOSE_PICKER",u[u.REFRESH_PICKER=2]="REFRESH_PICKER",u[u.REMOVE_ITEM=3]="REMOVE_ITEM"})(kc||(kc={}));class Vd extends Lt.a{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var n;let r=new Lt.b;e.canAcceptInBackground=!!((n=this.options)===null||n===void 0?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let d,m=r.add(new Lt.d),O=()=>jd(this,void 0,void 0,function*(){let re=m.value=new Lt.b;d==null||d.dispose(!0),e.busy=!1,d=new On.b(t);let oe=d.token,ce=e.value.substr(this.prefix.length).trim(),Me=this.getPicks(ce,re,oe),Ct=(Ut,St)=>{var di;let hi,ji;if(Kh(Ut)?(hi=Ut.items,ji=Ut.active):hi=Ut,hi.length===0){if(St)return!1;ce.length>0&&((di=this.options)===null||di===void 0?void 0:di.noResultsPick)&&(hi=[this.options.noResultsPick])}return e.items=hi,ji&&(e.activeItems=[ji]),!0};if(Me!==null)if(function(Ut){let St=Ut;return!!St.picks&&St.additionalPicks instanceof Promise}(Me)){let Ut=!1,St=!1;yield Promise.all([(()=>jd(this,void 0,void 0,function*(){yield Object(Bi.l)(Vd.FAST_PICKS_RACE_DELAY),oe.isCancellationRequested||St||(Ut=Ct(Me.picks,!0))}))(),(()=>jd(this,void 0,void 0,function*(){e.busy=!0;try{let di=yield Me.additionalPicks;if(oe.isCancellationRequested)return;let hi,ji,Ji;Kh(Me.picks)?(hi=Me.picks.items,Ji=Me.picks.active):hi=Me.picks;let dn;if(Kh(di)?(ji=di.items,dn=di.active):ji=di,ji.length>0||!Ut){let Ki;if(!Ji&&!dn){let yn=e.activeItems[0];yn&&hi.indexOf(yn)!==-1&&(Ki=yn)}Ct({items:[...hi,...ji],active:Ji||dn||Ki})}}finally{oe.isCancellationRequested||(e.busy=!1),St=!0}}))()])}else if(Me instanceof Promise){e.busy=!0;try{let Ut=yield Me;if(oe.isCancellationRequested)return;Ct(Ut)}finally{oe.isCancellationRequested||(e.busy=!1)}}else Ct(Me)});return r.add(e.onDidChangeValue(()=>O())),O(),r.add(e.onDidAccept(re=>{let[oe]=e.selectedItems;typeof(oe==null?void 0:oe.accept)=="function"&&(re.inBackground||e.hide(),oe.accept(e.keyMods,re))})),r.add(e.onDidTriggerItemButton(({button:re,item:oe})=>jd(this,void 0,void 0,function*(){var ce,Me;if(typeof oe.trigger=="function"){let Ct=(Me=(ce=oe.buttons)===null||ce===void 0?void 0:ce.indexOf(re))!==null&&Me!==void 0?Me:-1;if(Ct>=0){let Ut=oe.trigger(Ct,e.keyMods),St=typeof Ut=="number"?Ut:yield Ut;if(t.isCancellationRequested)return;switch(St){case kc.NO_ACTION:break;case kc.CLOSE_PICKER:e.hide();break;case kc.REFRESH_PICKER:O();break;case kc.REMOVE_ITEM:let di=e.items.indexOf(oe);if(di!==-1){let hi=e.items.slice();hi.splice(di,1),e.items=hi}}}}}))),r}}function Gh(u,e){return e&&(u.stack||u.stacktrace)?G.a("stackTrace.format","{0}: {1}",Kp(u),$p(u.stack)||$p(u.stacktrace)):Kp(u)}function $p(u){return Array.isArray(u)?u.join(` -`):u}function Kp(u){return typeof u.code=="string"&&typeof u.errno=="number"&&typeof u.syscall=="string"?G.a("nodeExceptionMessage","A system error occurred ({0})",u.message):u.message||G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Gp(u=null,e=!1){if(!u)return G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(u)){let t=ee.d(u),n=Gp(t[0],e);return t.length>1?G.a("error.moreErrors","{0} ({1} errors in total)",n,t.length):n}if(to.j(u))return u;if(u.detail){let t=u.detail;if(t.error)return Gh(t.error,e);if(t.exception)return Gh(t.exception,e)}return u.stack?Gh(u,e):u.message?u.message:G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}Vd.FAST_PICKS_RACE_DELAY=200;var Yp=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ml=function(u,e){return function(t,n){e(t,n,u)}},Zp=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Zc=class Xd extends Vd{constructor(e,t,n,r,d,m){super(Xd.PREFIX,e),this.options=e,this.instantiationService=t,this.keybindingService=n,this.commandService=r,this.telemetryService=d,this.notificationService=m,this.commandsHistory=this._register(this.instantiationService.createInstance($l))}getPicks(e,t,n){return Zp(this,void 0,void 0,function*(){let r=yield this.getCommandPicks(t,n);if(n.isCancellationRequested)return[];let d=[];for(let oe of r){let ce=Object(to.n)(Xd.WORD_FILTER(e,oe.label)),Me=oe.commandAlias?Object(to.n)(Xd.WORD_FILTER(e,oe.commandAlias)):void 0;ce||Me?(oe.highlights={label:ce,detail:this.options.showAlias?Me:void 0},d.push(oe)):e===oe.commandId&&d.push(oe)}let m=new Map;for(let oe of d){let ce=m.get(oe.label);ce?(oe.description=oe.commandId,ce.description=ce.commandId):m.set(oe.label,oe)}d.sort((oe,ce)=>{let Me=this.commandsHistory.peek(oe.commandId),Ct=this.commandsHistory.peek(ce.commandId);return Me&&Ct?Me>Ct?-1:1:Me?-1:Ct?1:oe.label.localeCompare(ce.label)});let O=[],re=!1;for(let oe=0;oe<d.length;oe++){let ce=d[oe],Me=this.keybindingService.lookupKeybinding(ce.commandId),Ct=Me?Object(G.a)("commandPickAriaLabelWithKeybinding","{0}, {1}",ce.label,Me.getAriaLabel()):ce.label;oe===0&&this.commandsHistory.peek(ce.commandId)&&(O.push({type:"separator",label:Object(G.a)("recentlyUsed","recently used")}),re=!0),oe!==0&&re&&!this.commandsHistory.peek(ce.commandId)&&(O.push({type:"separator",label:Object(G.a)("morecCommands","other commands")}),re=!1),O.push(Object.assign(Object.assign({},ce),{ariaLabel:Ct,detail:this.options.showAlias&&ce.commandAlias!==ce.label?ce.commandAlias:void 0,keybinding:Me,accept:()=>Zp(this,void 0,void 0,function*(){this.commandsHistory.push(ce.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:ce.commandId,from:"quick open"});try{yield this.commandService.executeCommand(ce.commandId)}catch(Ut){Object(Oe.d)(Ut)||this.notificationService.error(Object(G.a)("canNotRun","Command '{0}' resulted in an error ({1})",ce.label,Gp(Ut)))}})}))}return O})}};Zc.PREFIX=">",Zc.WORD_FILTER=Object(kn.j)(kn.h,kn.i,kn.f),Zc=Yp([ml(1,X.a),ml(2,Dt.a),ml(3,Ee.b),ml(4,We.a),ml(5,Re.a)],Zc);let $l=class Uo extends Lt.a{constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,n.registerStorageKey({key:Uo.PREF_KEY_CACHE,version:1}),n.registerStorageKey({key:Uo.PREF_KEY_COUNTER,version:1}),this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Uo.getConfiguredCommandHistoryLength(this.configurationService),Uo.cache&&Uo.cache.limit!==this.configuredCommandsHistoryLength&&(Uo.cache.limit=this.configuredCommandsHistoryLength,Uo.saveState(this.storageService))}load(){let e=this.storageService.get(Uo.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(r){}let n=Uo.cache=new Rn.a(this.configuredCommandsHistoryLength,1);if(t){let r;r=t.usesLRU?t.entries:t.entries.sort((d,m)=>d.value-m.value),r.forEach(d=>n.set(d.key,d.value))}Uo.counter=this.storageService.getNumber(Uo.PREF_KEY_COUNTER,0,Uo.counter)}push(e){Uo.cache&&(Uo.cache.set(e,Uo.counter++),Uo.saveState(this.storageService))}peek(e){var t;return(t=Uo.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Uo.cache)return;let t={usesLRU:!0,entries:[]};Uo.cache.forEach((n,r)=>t.entries.push({key:r,value:n})),e.store(Uo.PREF_KEY_CACHE,JSON.stringify(t),0),e.store(Uo.PREF_KEY_COUNTER,Uo.counter,0)}static getConfiguredCommandHistoryLength(e){var t,n;let r=(n=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||n===void 0?void 0:n.history;return typeof r=="number"?r:Uo.DEFAULT_COMMANDS_HISTORY_LENGTH}};$l.DEFAULT_COMMANDS_HISTORY_LENGTH=50,$l.PREF_KEY_CACHE="commandPalette.mru.cache",$l.PREF_KEY_COUNTER="commandPalette.mru.counter",$l.counter=1,$l=Yp([ml(0,Qn.a),ml(1,Eo.a),ml(2,gl.a)],$l);class Xb extends Zc{constructor(e,t,n,r,d,m){super(e,t,n,r,d,m)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:Object(de.h)(n.label)||n.id});return t}}var Qb=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ec=function(u,e){return function(t,n){e(t,n,u)}},Jb=function(u,e,t,n){return new(t||(t=Promise))(function(r,d){function m(oe){try{re(n.next(oe))}catch(ce){d(ce)}}function O(oe){try{re(n.throw(oe))}catch(ce){d(ce)}}function re(oe){var ce;oe.done?r(oe.value):(ce=oe.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,O)}re((n=n.apply(u,e||[])).next())})};let Xc=class extends Xb{constructor(u,e,t,n,r,d){super({showAlias:!1},u,t,n,r,d),this.codeEditorService=e}get activeTextEditorControl(){return Object(to.n)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return Jb(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};Xc=Qb([Ec(0,X.a),Ec(1,Si.a),Ec(2,Dt.a),Ec(3,Ee.b),Ec(4,We.a),Ec(5,Re.a)],Xc),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:Xc,prefix:Xc.PREFIX,helpEntries:[{description:xo.d.quickCommandHelp,needsEditor:!0}]});class e_ extends $.b{constructor(){super({id:"editor.action.quickCommand",label:xo.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(Ho.a).quickAccess.show(Xc.PREFIX)}}Object($.k)(e_);var t_=function(u,e,t,n){var r,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var O=u.length-1;O>=0;O--)(r=u[O])&&(m=(d<3?r(m):d>3?r(e,t,m):r(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Tc=function(u,e){return function(t,n){e(t,n,u)}};let Yh=class extends il{constructor(u,e,t,n,r,d,m){super(!0,u,e,t,n,r,d,m)}};Yh=t_([Tc(1,A.b),Tc(2,Si.a),Tc(3,Re.a),Tc(4,X.a),Tc(5,Qn.a),Tc(6,Eo.a)],Yh),Object($.m)(il.ID,Yh);class i_ extends $.b{constructor(){super({id:"editor.action.toggleHighContrast",label:xo.i.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(zp.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getColorTheme().themeName,n.setTheme("hc-black"))}}Object($.k)(i_)},,,,,function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},f={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","node","nodes","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","non-unicode","non-unique","no-scrolling","no-sign","no-title","no-topofpage","no-zero","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","condense","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","insert","ipow","line_exists","line_index","lines","log","log10","match","matches","nmax","nmin","numofchar","repeat","replace","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","translate","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","table","hashed","index","sorted","standard","accp","char","clnt","cuky","curr","dats","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","tims","unit","df16_scl","df34_scl","prec","varc","abap_bool","space","me","syst","sy","screen"],operators:[" +"," -","/","*","**","div","mod","=","#","@","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","and","equiv","not","or"," < "," > ","<=",">=","<>","><","=<","=>","between","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","in","le","lt","na","nb","ne","np","ns"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_$][\w-$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@operators":"operator","@default":"identifier"}}],[/<[\w]+>/,"identifier"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return D});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach(function(H){f.push(H),f.push(H.toUpperCase()),f.push(function(E){return E.charAt(0).toUpperCase()+E.substr(1)}(H))});var D={defaultToken:"",tokenPostfix:".apex",keywords:f,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"}},f={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","begin","Bytes","Crypto","Current","else","end","failwith","false","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","Set","set","sender","source","String","then","true","type","with"],typeKeywords:["int","unit","string","tz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[],autoClosingPairs:[],surroundingPairs:[]},f={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".css",ws:`[ +`+Cr.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(Fu.b)(o)),this._contentDomNode.domNode.setAttribute("aria-label",o)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,ae.s(this._contentDomNode.domNode),this._editor.focus())}_layout(){let e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(Yd.WIDTH,e.width-40)),n=Math.max(5,Math.min(Yd.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);let o=Math.round((e.height-n)/2);this._domNode.setTop(o);let d=Math.round((e.width-t)/2);this._domNode.setLeft(d)}};xc.ID="editor.contrib.accessibilityHelpWidget",xc.WIDTH=500,xc.HEIGHT=300,xc=Fp([Pd(1,A.b),Pd(2,Ot.a),Pd(3,ga.a)],xc);class Fb extends $.b{constructor(){super({id:"editor.action.showAccessibilityHelp",label:Cr.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let n=ql.get(t);n&&n.show()}}Object($.m)(ql.ID,ql),Object($.k)(Fb);let Wb=$.c.bindToContribution(ql.get);Object($.l)(new Wb({id:"closeAccessibilityHelp",precondition:Wp,handler:u=>u.hide(),kbOpts:{weight:200,kbExpr:z.a.focus,primary:9,secondary:[1033]}})),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.U);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);let n=u.getColor(Ue.W);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${n}; }`);let o=u.getColor(Ue.uc);o&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${o}; }`);let d=u.getColor(Ue.h);d&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${d}; }`)}),r(337);class Bh extends Lt.a{constructor(e){super(),this.editor=e,this.widget=null,kt.i&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(72);!this.widget&&e?this.widget=new Fd(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Bh.ID="editor.contrib.iPadShowKeyboard";class Fd extends Lt.a{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(ae.i(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(ae.i(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Fd.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Fd.ID="editor.contrib.ShowKeyboardWidget",Object($.m)(Bh.ID,Bh),r(339);var jh=r(90),zp=r(139),zb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Bp=function(u,e){return function(t,n){e(t,n,u)}};let Sc=class km extends Lt.a{constructor(e,t,n){super(),this._editor=e,this._modeService=n,this._widget=null,this._register(this._editor.onDidChangeModel(o=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(o=>this.stop())),this._register(I.C.onDidChange(o=>this.stop())),this._register(this._editor.onKeyUp(o=>o.keyCode===9&&this.stop()))}static get(e){return e.getContribution(km.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new Wd(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Sc.ID="editor.contrib.inspectTokens",Sc=zb([Bp(1,zp.a),Bp(2,nl.a)],Sc);class Bb extends $.b{constructor(){super({id:"editor.action.inspectTokens",label:Cr.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let n=Sc.get(t);n&&n.launch()}}class Wd extends Lt.a{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(n){return I.C.get(n.language)||{getInitialState:()=>jh.c,tokenize:(d,m,D)=>Object(jh.d)(n.language,d,m,D),tokenize2:(d,m,D)=>Object(jh.e)(n.id,d,m,D)}}(this._model.getLanguageIdentifier()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(n=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Wd._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let oe=t.tokens1.length-1;oe>=0;oe--){let re=t.tokens1[oe];if(e.column-1>=re.offset){n=oe;break}}let o=0;for(let oe=t.tokens2.length>>>1;oe>=0;oe--)if(e.column-1>=t.tokens2[oe<<1]){o=oe;break}let d=this._model.getLineContent(e.lineNumber),m="";if(n<t.tokens1.length){let oe=t.tokens1[n].offset,re=n+1<t.tokens1.length?t.tokens1[n+1].offset:d.length;m=d.substring(oe,re)}Object(ae.U)(this._domNode,Object(ae.a)("h2.tm-token",void 0,function(oe){let re="";for(let ce=0,Me=oe.length;ce<Me;ce++){let Ct=oe.charCodeAt(ce);switch(Ct){case 9:re+="\u2192";break;case 32:re+="\xB7";break;default:re+=String.fromCharCode(Ct)}}return re}(m),Object(ae.a)("span.tm-token-length",void 0,`${m.length} ${m.length===1?"char":"chars"}`))),Object(ae.p)(this._domNode,Object(ae.a)("hr.tokens-inspect-separator",{style:"clear:both"}));let D=1+(o<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(o<<1)]):null;Object(ae.p)(this._domNode,Object(ae.a)("table.tm-metadata-table",void 0,Object(ae.a)("tbody",void 0,Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"language"),Object(ae.a)("td.tm-metadata-value",void 0,""+(D?D.languageIdentifier.language:"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"token type"),Object(ae.a)("td.tm-metadata-value",void 0,""+(D?this._tokenTypeToString(D.tokenType):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"font style"),Object(ae.a)("td.tm-metadata-value",void 0,""+(D?this._fontStyleToString(D.fontStyle):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"foreground"),Object(ae.a)("td.tm-metadata-value",void 0,""+(D?Kn.a.Format.CSS.formatHex(D.foreground):"-?-"))),Object(ae.a)("tr",void 0,Object(ae.a)("td.tm-metadata-key",void 0,"background"),Object(ae.a)("td.tm-metadata-value",void 0,""+(D?Kn.a.Format.CSS.formatHex(D.background):"-?-")))))),Object(ae.p)(this._domNode,Object(ae.a)("hr.tokens-inspect-separator")),n<t.tokens1.length&&Object(ae.p)(this._domNode,Object(ae.a)("span.tm-token-type",void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=I.C.getColorMap(),n=I.B.getLanguageId(e),o=I.B.getTokenType(e),d=I.B.getFontStyle(e),m=I.B.getForeground(e),D=I.B.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:o,fontStyle:d,foreground:t[m],background:t[D]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),t.length===0&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),o=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:o.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}Wd._ID="editor.contrib.inspectTokensWidget",Object($.m)(Sc.ID,Sc),Object($.k)(Bb),Object(ut.g)((u,e)=>{let t=u.getColor(Ue.F);if(t){let d=u.type===ut.b?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${d}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}let n=u.getColor(Ue.E);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${n}; }`);let o=u.getColor(Ue.G);o&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${o}; }`)});var Kc=r(134),jb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Vb=function(u,e){return function(t,n){e(t,n,u)}};let zd=class Zd{constructor(e){this.quickInputService=e,this.registry=mc.a.as(Kc.b.Quickaccess)}provide(e){let t=new Lt.b;t.add(e.onDidAccept(()=>{let[d]=e.selectedItems;d&&this.quickInputService.quickAccess.show(d.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(d=>{let m=this.registry.getQuickAccessProvider(d.substr(Zd.PREFIX.length));m&&m.prefix&&m.prefix!==Zd.PREFIX&&this.quickInputService.quickAccess.show(m.prefix,{preserveValue:!0})}));let{editorProviders:n,globalProviders:o}=this.getQuickAccessProviders();return e.items=n.length===0||o.length===0?[...n.length===0?o:n]:[{label:Object(G.a)("globalCommands","global commands"),type:"separator"},...o,{label:Object(G.a)("editorCommands","editor commands"),type:"separator"},...n],t}getQuickAccessProviders(){let e=[],t=[];for(let n of this.registry.getQuickAccessProviders().sort((o,d)=>o.prefix.localeCompare(d.prefix)))if(n.prefix!==Zd.PREFIX)for(let o of n.helpEntries){let d=o.prefix||n.prefix,m=d||"\u2026";(o.needsEditor?t:e).push({prefix:d,label:m,ariaLabel:Object(G.a)("helpPickAriaLabel","{0}, {1}",m,o.description),description:o.description})}return{editorProviders:t,globalProviders:e}}};zd.PREFIX="?",zd=jb([Vb(0,Ur.a)],zd),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:zd,prefix:"",helpEntries:[{description:Cr.e.helpQuickAccessActionLabel,needsEditor:!0}]});class jp{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;let o=new Lt.b;e.canAcceptInBackground=!!((n=this.options)===null||n===void 0?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let d=o.add(new Lt.d);return d.value=this.doProvide(e,t),o.add(this.onDidActiveTextEditorControlChange(()=>{d.value=void 0,d.value=this.doProvide(e,t)})),o}doProvide(e,t){let n=new Lt.b,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){let d=Object(Zo.a)(o);if(d){let m=Object(tr.n)(o.saveViewState());n.add(d.onDidChangeCursorPosition(()=>{m=Object(tr.n)(o.saveViewState())})),n.add(Object(_r.a)(t.onCancellationRequested)(()=>{m&&o===this.activeTextEditorControl&&o.restoreViewState(m)}))}n.add(Object(Lt.h)(()=>this.clearDecorations(o))),n.add(this.provideWithTextEditor(o,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation(e,t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(Zo.c)(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(n=>{let o=[];this.rangeHighlightDecorationId&&(o.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),o.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let d=[{range:t,options:{className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{overviewRuler:{color:Object(ut.h)(vt.s),position:vi.d.Full}}}],[m,D]=n.deltaDecorations(o,d);this.rangeHighlightDecorationId={rangeHighlightId:m,overviewRulerDecorationId:D}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(n=>{n.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Bd extends jp{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=Object(G.a)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,Lt.a.None}provideWithTextEditor(e,t,n){let o=new Lt.b;o.add(t.onDidAccept(D=>{let[oe]=t.selectedItems;if(oe){if(!this.isValidLineNumber(e,oe.lineNumber))return;this.gotoLocation(e,{range:this.toRange(oe.lineNumber,oe.column),keyMods:t.keyMods,preserveFocus:D.inBackground}),D.inBackground||t.hide()}}));let d=()=>{let D=this.parsePosition(e,t.value.trim().substr(Bd.PREFIX.length)),oe=this.getPickLabel(e,D.lineNumber,D.column);if(t.items=[{lineNumber:D.lineNumber,column:D.column,label:oe}],t.ariaLabel=oe,!this.isValidLineNumber(e,D.lineNumber))return void this.clearDecorations(e);let re=this.toRange(D.lineNumber,D.column);e.revealRangeInCenter(re,0),this.addDecorations(e,re)};d(),o.add(t.onDidChangeValue(()=>d()));let m=Object(Zo.a)(e);return m&&m.getOptions().get(52).renderType===2&&(m.updateOptions({lineNumbers:"on"}),o.add(Object(Lt.h)(()=>m.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=t.split(/,|:|#/).map(d=>parseInt(d,10)).filter(d=>!isNaN(d)),o=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:o+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?Object(G.a)("gotoLineColumnLabel","Go to line {0} and column {1}.",t,n):Object(G.a)("gotoLineLabel","Go to line {0}.",t);let o=e.getPosition()||{lineNumber:1,column:1},d=this.lineCount(e);return d>1?Object(G.a)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",o.lineNumber,o.column,d):Object(G.a)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",o.lineNumber,o.column)}isValidLineNumber(e,t){return!(!t||typeof t!="number")&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,n){if(!n||typeof n!="number")return!1;let o=this.getModel(e);if(!o)return!1;let d={lineNumber:t,column:n};return o.validatePosition(d).equals(d)}lineCount(e){var t,n;return(n=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&n!==void 0?n:0}}Bd.PREFIX=":";var Ub=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Hb=function(u,e){return function(t,n){e(t,n,u)}};let Gc=class extends Bd{constructor(u){super(),this.editorService=u,this.onDidActiveTextEditorControlChange=ot.b.None}get activeTextEditorControl(){return Object(tr.n)(this.editorService.getFocusedCodeEditor())}};Gc=Ub([Hb(0,Si.a)],Gc),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:Gc,prefix:Gc.PREFIX,helpEntries:[{description:Cr.b.gotoLineActionLabel,needsEditor:!0}]});class qb extends $.b{constructor(){super({id:"editor.action.gotoLine",label:Cr.b.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(Ur.a).quickAccess.show(Gc.PREFIX)}}Object($.k)(qb);let Vp=[void 0,[]];function Vh(u,e,t=0,n=0){let o=e;return o.values&&o.values.length>1?function(d,m,D,oe){let re=0,ce=[];for(let Me of m){let[Ct,Ut]=Up(d,Me,D,oe);if(typeof Ct!="number")return Vp;re+=Ct,ce.push(...Ut)}return[re,$b(ce)]}(u,o.values,t,n):Up(u,e,t,n)}function Up(u,e,t,n){let o=Object(kn.d)(e.original,e.originalLowercase,t,u,u.toLowerCase(),n,!0);return o?[o[0],Object(kn.c)(o)]:Vp}function $b(u){let e=u.sort((o,d)=>o.start-d.start),t=[],n;for(let o of e)n&&Kb(n,o)?(n.start=Math.min(n.start,o.start),n.end=Math.max(n.end,o.end)):(n=o,t.push(o));return t}function Kb(u,e){return!(u.end<e.start)&&!(e.end<u.start)}function Uh(u){typeof u!="string"&&(u="");let e=u.toLowerCase(),{pathNormalized:t,normalized:n,normalizedLowercase:o}=Hp(u),d=t.indexOf(mt.h)>=0,m,D=u.split(" ");if(D.length>1)for(let oe of D){let{pathNormalized:re,normalized:ce,normalizedLowercase:Me}=Hp(oe);ce&&(m||(m=[]),m.push({original:oe,originalLowercase:oe.toLowerCase(),pathNormalized:re,normalized:ce,normalizedLowercase:Me}))}return{original:u,originalLowercase:e,pathNormalized:t,normalized:n,normalizedLowercase:o,values:m,containsPathSeparator:d}}function Hp(u){let e;e=Et.i?u.replace(/\//g,mt.h):u.replace(/\\/g,mt.h);let t=Object(rn.V)(e).replace(/\s/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function qp(u){return Array.isArray(u)?Uh(u.map(e=>e.original).join(" ")):Uh(u.original)}var Yc=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};class ys extends jp{constructor(e=Object.create(null)){super(e),this.options=e,e.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(G.a)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),Lt.a.None}provideWithTextEditor(e,t,n){let o=this.getModel(e);return o?I.m.has(o)?this.doProvideWithEditorSymbols(e,o,t,n):this.doProvideWithoutEditorSymbols(e,o,t,n):Lt.a.None}doProvideWithoutEditorSymbols(e,t,n,o){let d=new Lt.b;return this.provideLabelPick(n,Object(G.a)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{Yc(this,void 0,void 0,function*(){(yield this.waitForLanguageSymbolRegistry(t,d))&&!o.isCancellationRequested&&d.add(this.doProvideWithEditorSymbols(e,t,n,o))})})(),d}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Yc(this,void 0,void 0,function*(){if(I.m.has(e))return!0;let n,o=new Promise(m=>n=m),d=t.add(I.m.onDidChange(()=>{I.m.has(e)&&(d.dispose(),n(!0))}));return t.add(Object(Lt.h)(()=>n(!1))),o})}doProvideWithEditorSymbols(e,t,n,o){let d=new Lt.b;d.add(n.onDidAccept(ce=>{let[Me]=n.selectedItems;Me&&Me.range&&(this.gotoLocation(e,{range:Me.range.selection,keyMods:n.keyMods,preserveFocus:ce.inBackground}),ce.inBackground||n.hide())})),d.add(n.onDidTriggerItemButton(({item:ce})=>{ce&&ce.range&&(this.gotoLocation(e,{range:ce.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let m=this.getDocumentSymbols(t,!0,o),D,oe=()=>Yc(this,void 0,void 0,function*(){D==null||D.dispose(!0),n.busy=!1,D=new Dn.b(o),n.busy=!0;try{let ce=Uh(n.value.substr(ys.PREFIX.length).trim()),Me=yield this.doGetSymbolPicks(m,ce,void 0,D.token);if(o.isCancellationRequested)return;Me.length>0?n.items=Me:ce.original.length>0?this.provideLabelPick(n,Object(G.a)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,Object(G.a)("noSymbolResults","No editor symbols"))}finally{o.isCancellationRequested||(n.busy=!1)}});d.add(n.onDidChangeValue(()=>oe())),oe();let re=!0;return d.add(n.onDidChangeActive(()=>{let[ce]=n.activeItems;if(ce&&ce.range){if(re)return void(re=!1);e.revealRangeInCenter(ce.range.selection,0),this.addDecorations(e,ce.range.decoration)}})),d}doGetSymbolPicks(e,t,n,o){return Yc(this,void 0,void 0,function*(){let d=yield e;if(o.isCancellationRequested)return[];let m=t.original.indexOf(ys.SCOPE_PREFIX)===0,D=m?1:0,oe,re;t.values&&t.values.length>1?(oe=qp(t.values[0]),re=qp(t.values.slice(1))):oe=t;let ce=[];for(let Ut=0;Ut<d.length;Ut++){let St=d[Ut],di=Object(rn.W)(St.name),hi=`$(symbol-${I.A.toString(St.kind)||"property"}) ${di}`,ji=hi.length-di.length,Ji=St.containerName;(n==null?void 0:n.extraContainerLabel)&&(Ji=Ji?`${n.extraContainerLabel} \u2022 ${Ji}`:n.extraContainerLabel);let dn,Ki,yn,hn;if(t.original.length>D){let fn=!1;if(oe!==t&&([dn,Ki]=Vh(hi,Object.assign(Object.assign({},t),{values:void 0}),D,ji),typeof dn=="number"&&(fn=!0)),typeof dn!="number"&&([dn,Ki]=Vh(hi,oe,D,ji),typeof dn!="number"))continue;if(!fn&&re){if(Ji&&re.original.length>0&&([yn,hn]=Vh(Ji,re)),typeof yn!="number")continue;typeof dn=="number"&&(dn+=yn)}}let Qi=St.tags&&St.tags.indexOf(1)>=0;ce.push({index:Ut,kind:St.kind,score:dn,label:hi,ariaLabel:di,description:Ji,highlights:Qi?void 0:{label:Ki,description:hn},range:{selection:gt.a.collapseToStart(St.selectionRange),decoration:St.range},strikethrough:Qi,buttons:(()=>{var fn,$n;let fr=((fn=this.options)===null||fn===void 0?void 0:fn.openSideBySideDirection)?($n=this.options)===null||$n===void 0?void 0:$n.openSideBySideDirection():void 0;if(fr)return[{iconClass:fr==="right"?de.a.splitHorizontal.classNames:de.a.splitVertical.classNames,tooltip:fr==="right"?Object(G.a)("openToSide","Open to the Side"):Object(G.a)("openToBottom","Open to the Bottom")}]})()})}let Me=ce.sort((Ut,St)=>m?this.compareByKindAndScore(Ut,St):this.compareByScore(Ut,St)),Ct=[];if(m){let hi=function(){St&&typeof Ut=="number"&&di>0&&(St.label=Object(rn.x)(qh[Ut]||Hh,di))},Ut,St,di=0;for(let ji of Me)Ut!==ji.kind?(hi(),Ut=ji.kind,di=1,St={type:"separator"},Ct.push(St)):di++,Ct.push(ji);hi()}else Me.length>0&&(Ct=[{label:Object(G.a)("symbols","symbols ({0})",ce.length),type:"separator"},...Me]);return Ct})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){let n=qh[e.kind]||Hh,o=qh[t.kind]||Hh,d=n.localeCompare(o);return d===0?this.compareByScore(e,t):d}getDocumentSymbols(e,t,n){return Yc(this,void 0,void 0,function*(){let o=yield vn.create(e,n);if(n.isCancellationRequested)return[];let d=[];for(let D of o.children.values())D instanceof Fi?d.push(D.symbol):d.push(...Ka.a.map(D.children.values(),oe=>oe.symbol));let m=[];return t?this.flattenDocumentSymbols(m,d,""):m=d,m.sort((D,oe)=>gt.a.compareRangesUsingStarts(D.range,oe.range))})}flattenDocumentSymbols(e,t,n){for(let o of t)e.push({kind:o.kind,tags:o.tags,name:o.name,detail:o.detail,containerName:o.containerName||n,range:o.range,selectionRange:o.selectionRange,children:void 0}),o.children&&this.flattenDocumentSymbols(e,o.children,o.name)}}ys.PREFIX="@",ys.SCOPE_PREFIX=":",ys.PREFIX_BY_CATEGORY=`${ys.PREFIX}${ys.SCOPE_PREFIX}`;let Hh=Object(G.a)("property","properties ({0})"),qh={5:Object(G.a)("method","methods ({0})"),11:Object(G.a)("function","functions ({0})"),8:Object(G.a)("_constructor","constructors ({0})"),12:Object(G.a)("variable","variables ({0})"),4:Object(G.a)("class","classes ({0})"),22:Object(G.a)("struct","structs ({0})"),23:Object(G.a)("event","events ({0})"),24:Object(G.a)("operator","operators ({0})"),10:Object(G.a)("interface","interfaces ({0})"),2:Object(G.a)("namespace","namespaces ({0})"),3:Object(G.a)("package","packages ({0})"),25:Object(G.a)("typeParameter","type parameters ({0})"),1:Object(G.a)("modules","modules ({0})"),6:Object(G.a)("property","properties ({0})"),9:Object(G.a)("enum","enumerations ({0})"),21:Object(G.a)("enumMember","enumeration members ({0})"),14:Object(G.a)("string","strings ({0})"),0:Object(G.a)("file","files ({0})"),17:Object(G.a)("array","arrays ({0})"),15:Object(G.a)("number","numbers ({0})"),16:Object(G.a)("boolean","booleans ({0})"),18:Object(G.a)("object","objects ({0})"),19:Object(G.a)("key","keys ({0})"),7:Object(G.a)("field","fields ({0})"),13:Object(G.a)("constant","constants ({0})")};var Gb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Yb=function(u,e){return function(t,n){e(t,n,u)}};let $h=class extends ys{constructor(u){super(),this.editorService=u,this.onDidActiveTextEditorControlChange=ot.b.None}get activeTextEditorControl(){return Object(tr.n)(this.editorService.getFocusedCodeEditor())}};$h=Gb([Yb(0,Si.a)],$h),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:$h,prefix:ys.PREFIX,helpEntries:[{description:Cr.f.quickOutlineActionLabel,prefix:ys.PREFIX,needsEditor:!0},{description:Cr.f.quickOutlineByCategoryActionLabel,prefix:ys.PREFIX_BY_CATEGORY,needsEditor:!0}]});class Zb extends $.b{constructor(){super({id:"editor.action.quickOutline",label:Cr.f.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:z.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:z.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(Ur.a).quickAccess.show(ys.PREFIX)}}Object($.k)(Zb);var kc,jd=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};function Kh(u){let e=u;return Array.isArray(e.items)}(function(u){u[u.NO_ACTION=0]="NO_ACTION",u[u.CLOSE_PICKER=1]="CLOSE_PICKER",u[u.REFRESH_PICKER=2]="REFRESH_PICKER",u[u.REMOVE_ITEM=3]="REMOVE_ITEM"})(kc||(kc={}));class Vd extends Lt.a{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var n;let o=new Lt.b;e.canAcceptInBackground=!!((n=this.options)===null||n===void 0?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let d,m=o.add(new Lt.d),D=()=>jd(this,void 0,void 0,function*(){let oe=m.value=new Lt.b;d==null||d.dispose(!0),e.busy=!1,d=new Dn.b(t);let re=d.token,ce=e.value.substr(this.prefix.length).trim(),Me=this.getPicks(ce,oe,re),Ct=(Ut,St)=>{var di;let hi,ji;if(Kh(Ut)?(hi=Ut.items,ji=Ut.active):hi=Ut,hi.length===0){if(St)return!1;ce.length>0&&((di=this.options)===null||di===void 0?void 0:di.noResultsPick)&&(hi=[this.options.noResultsPick])}return e.items=hi,ji&&(e.activeItems=[ji]),!0};if(Me!==null)if(function(Ut){let St=Ut;return!!St.picks&&St.additionalPicks instanceof Promise}(Me)){let Ut=!1,St=!1;yield Promise.all([(()=>jd(this,void 0,void 0,function*(){yield Object(Bi.l)(Vd.FAST_PICKS_RACE_DELAY),re.isCancellationRequested||St||(Ut=Ct(Me.picks,!0))}))(),(()=>jd(this,void 0,void 0,function*(){e.busy=!0;try{let di=yield Me.additionalPicks;if(re.isCancellationRequested)return;let hi,ji,Ji;Kh(Me.picks)?(hi=Me.picks.items,Ji=Me.picks.active):hi=Me.picks;let dn;if(Kh(di)?(ji=di.items,dn=di.active):ji=di,ji.length>0||!Ut){let Ki;if(!Ji&&!dn){let yn=e.activeItems[0];yn&&hi.indexOf(yn)!==-1&&(Ki=yn)}Ct({items:[...hi,...ji],active:Ji||dn||Ki})}}finally{re.isCancellationRequested||(e.busy=!1),St=!0}}))()])}else if(Me instanceof Promise){e.busy=!0;try{let Ut=yield Me;if(re.isCancellationRequested)return;Ct(Ut)}finally{re.isCancellationRequested||(e.busy=!1)}}else Ct(Me)});return o.add(e.onDidChangeValue(()=>D())),D(),o.add(e.onDidAccept(oe=>{let[re]=e.selectedItems;typeof(re==null?void 0:re.accept)=="function"&&(oe.inBackground||e.hide(),re.accept(e.keyMods,oe))})),o.add(e.onDidTriggerItemButton(({button:oe,item:re})=>jd(this,void 0,void 0,function*(){var ce,Me;if(typeof re.trigger=="function"){let Ct=(Me=(ce=re.buttons)===null||ce===void 0?void 0:ce.indexOf(oe))!==null&&Me!==void 0?Me:-1;if(Ct>=0){let Ut=re.trigger(Ct,e.keyMods),St=typeof Ut=="number"?Ut:yield Ut;if(t.isCancellationRequested)return;switch(St){case kc.NO_ACTION:break;case kc.CLOSE_PICKER:e.hide();break;case kc.REFRESH_PICKER:D();break;case kc.REMOVE_ITEM:let di=e.items.indexOf(re);if(di!==-1){let hi=e.items.slice();hi.splice(di,1),e.items=hi}}}}}))),o}}function Gh(u,e){return e&&(u.stack||u.stacktrace)?G.a("stackTrace.format","{0}: {1}",Kp(u),$p(u.stack)||$p(u.stacktrace)):Kp(u)}function $p(u){return Array.isArray(u)?u.join(` +`):u}function Kp(u){return typeof u.code=="string"&&typeof u.errno=="number"&&typeof u.syscall=="string"?G.a("nodeExceptionMessage","A system error occurred ({0})",u.message):u.message||G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Gp(u=null,e=!1){if(!u)return G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(u)){let t=ee.d(u),n=Gp(t[0],e);return t.length>1?G.a("error.moreErrors","{0} ({1} errors in total)",n,t.length):n}if(tr.j(u))return u;if(u.detail){let t=u.detail;if(t.error)return Gh(t.error,e);if(t.exception)return Gh(t.exception,e)}return u.stack?Gh(u,e):u.message?u.message:G.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}Vd.FAST_PICKS_RACE_DELAY=200;var Yp=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},ml=function(u,e){return function(t,n){e(t,n,u)}},Zp=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Zc=class Xd extends Vd{constructor(e,t,n,o,d,m){super(Xd.PREFIX,e),this.options=e,this.instantiationService=t,this.keybindingService=n,this.commandService=o,this.telemetryService=d,this.notificationService=m,this.commandsHistory=this._register(this.instantiationService.createInstance($l))}getPicks(e,t,n){return Zp(this,void 0,void 0,function*(){let o=yield this.getCommandPicks(t,n);if(n.isCancellationRequested)return[];let d=[];for(let re of o){let ce=Object(tr.n)(Xd.WORD_FILTER(e,re.label)),Me=re.commandAlias?Object(tr.n)(Xd.WORD_FILTER(e,re.commandAlias)):void 0;ce||Me?(re.highlights={label:ce,detail:this.options.showAlias?Me:void 0},d.push(re)):e===re.commandId&&d.push(re)}let m=new Map;for(let re of d){let ce=m.get(re.label);ce?(re.description=re.commandId,ce.description=ce.commandId):m.set(re.label,re)}d.sort((re,ce)=>{let Me=this.commandsHistory.peek(re.commandId),Ct=this.commandsHistory.peek(ce.commandId);return Me&&Ct?Me>Ct?-1:1:Me?-1:Ct?1:re.label.localeCompare(ce.label)});let D=[],oe=!1;for(let re=0;re<d.length;re++){let ce=d[re],Me=this.keybindingService.lookupKeybinding(ce.commandId),Ct=Me?Object(G.a)("commandPickAriaLabelWithKeybinding","{0}, {1}",ce.label,Me.getAriaLabel()):ce.label;re===0&&this.commandsHistory.peek(ce.commandId)&&(D.push({type:"separator",label:Object(G.a)("recentlyUsed","recently used")}),oe=!0),re!==0&&oe&&!this.commandsHistory.peek(ce.commandId)&&(D.push({type:"separator",label:Object(G.a)("morecCommands","other commands")}),oe=!1),D.push(Object.assign(Object.assign({},ce),{ariaLabel:Ct,detail:this.options.showAlias&&ce.commandAlias!==ce.label?ce.commandAlias:void 0,keybinding:Me,accept:()=>Zp(this,void 0,void 0,function*(){this.commandsHistory.push(ce.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:ce.commandId,from:"quick open"});try{yield this.commandService.executeCommand(ce.commandId)}catch(Ut){Object(De.d)(Ut)||this.notificationService.error(Object(G.a)("canNotRun","Command '{0}' resulted in an error ({1})",ce.label,Gp(Ut)))}})}))}return D})}};Zc.PREFIX=">",Zc.WORD_FILTER=Object(kn.j)(kn.h,kn.i,kn.f),Zc=Yp([ml(1,X.a),ml(2,Ot.a),ml(3,Ee.b),ml(4,We.a),ml(5,Re.a)],Zc);let $l=class Vr extends Lt.a{constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,n.registerStorageKey({key:Vr.PREF_KEY_CACHE,version:1}),n.registerStorageKey({key:Vr.PREF_KEY_COUNTER,version:1}),this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Vr.getConfiguredCommandHistoryLength(this.configurationService),Vr.cache&&Vr.cache.limit!==this.configuredCommandsHistoryLength&&(Vr.cache.limit=this.configuredCommandsHistoryLength,Vr.saveState(this.storageService))}load(){let e=this.storageService.get(Vr.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(o){}let n=Vr.cache=new Rn.a(this.configuredCommandsHistoryLength,1);if(t){let o;o=t.usesLRU?t.entries:t.entries.sort((d,m)=>d.value-m.value),o.forEach(d=>n.set(d.key,d.value))}Vr.counter=this.storageService.getNumber(Vr.PREF_KEY_COUNTER,0,Vr.counter)}push(e){Vr.cache&&(Vr.cache.set(e,Vr.counter++),Vr.saveState(this.storageService))}peek(e){var t;return(t=Vr.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Vr.cache)return;let t={usesLRU:!0,entries:[]};Vr.cache.forEach((n,o)=>t.entries.push({key:o,value:n})),e.store(Vr.PREF_KEY_CACHE,JSON.stringify(t),0),e.store(Vr.PREF_KEY_COUNTER,Vr.counter,0)}static getConfiguredCommandHistoryLength(e){var t,n;let o=(n=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||n===void 0?void 0:n.history;return typeof o=="number"?o:Vr.DEFAULT_COMMANDS_HISTORY_LENGTH}};$l.DEFAULT_COMMANDS_HISTORY_LENGTH=50,$l.PREF_KEY_CACHE="commandPalette.mru.cache",$l.PREF_KEY_COUNTER="commandPalette.mru.counter",$l.counter=1,$l=Yp([ml(0,Qn.a),ml(1,kr.a),ml(2,gl.a)],$l);class Xb extends Zc{constructor(e,t,n,o,d,m){super(e,t,n,o,d,m)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:Object(de.h)(n.label)||n.id});return t}}var Qb=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Ec=function(u,e){return function(t,n){e(t,n,u)}},Jb=function(u,e,t,n){return new(t||(t=Promise))(function(o,d){function m(re){try{oe(n.next(re))}catch(ce){d(ce)}}function D(re){try{oe(n.throw(re))}catch(ce){d(ce)}}function oe(re){var ce;re.done?o(re.value):(ce=re.value,ce instanceof t?ce:new t(function(Me){Me(ce)})).then(m,D)}oe((n=n.apply(u,e||[])).next())})};let Xc=class extends Xb{constructor(u,e,t,n,o,d){super({showAlias:!1},u,t,n,o,d),this.codeEditorService=e}get activeTextEditorControl(){return Object(tr.n)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return Jb(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};Xc=Qb([Ec(0,X.a),Ec(1,Si.a),Ec(2,Ot.a),Ec(3,Ee.b),Ec(4,We.a),Ec(5,Re.a)],Xc),mc.a.as(Kc.b.Quickaccess).registerQuickAccessProvider({ctor:Xc,prefix:Xc.PREFIX,helpEntries:[{description:Cr.d.quickCommandHelp,needsEditor:!0}]});class e_ extends $.b{constructor(){super({id:"editor.action.quickCommand",label:Cr.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(Ur.a).quickAccess.show(Xc.PREFIX)}}Object($.k)(e_);var t_=function(u,e,t,n){var o,d=arguments.length,m=d<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,e,t,n);else for(var D=u.length-1;D>=0;D--)(o=u[D])&&(m=(d<3?o(m):d>3?o(e,t,m):o(e,t))||m);return d>3&&m&&Object.defineProperty(e,t,m),m},Tc=function(u,e){return function(t,n){e(t,n,u)}};let Yh=class extends il{constructor(u,e,t,n,o,d,m){super(!0,u,e,t,n,o,d,m)}};Yh=t_([Tc(1,A.b),Tc(2,Si.a),Tc(3,Re.a),Tc(4,X.a),Tc(5,Qn.a),Tc(6,kr.a)],Yh),Object($.m)(il.ID,Yh);class i_ extends $.b{constructor(){super({id:"editor.action.toggleHighContrast",label:Cr.i.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(zp.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getColorTheme().themeName,n.setTheme("hc-black"))}}Object($.k)(i_)},,,,,function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},f={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","node","nodes","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","non-unicode","non-unique","no-scrolling","no-sign","no-title","no-topofpage","no-zero","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","condense","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","insert","ipow","line_exists","line_index","lines","log","log10","match","matches","nmax","nmin","numofchar","repeat","replace","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","translate","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","table","hashed","index","sorted","standard","accp","char","clnt","cuky","curr","dats","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","tims","unit","df16_scl","df34_scl","prec","varc","abap_bool","space","me","syst","sy","screen"],operators:[" +"," -","/","*","**","div","mod","=","#","@","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","and","equiv","not","or"," < "," > ","<=",">=","<>","><","=<","=>","between","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","in","le","lt","na","nb","ne","np","ns"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_$][\w-$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@operators":"operator","@default":"identifier"}}],[/<[\w]+>/,"identifier"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return O});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach(function(H){f.push(H),f.push(H.toUpperCase()),f.push(function(E){return E.charAt(0).toUpperCase()+E.substr(1)}(H))});var O={defaultToken:"",tokenPostfix:".apex",keywords:f,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"}},f={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","begin","Bytes","Crypto","Current","else","end","failwith","false","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","Set","set","sender","source","String","then","true","type","with"],typeKeywords:["int","unit","string","tz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[],autoClosingPairs:[],surroundingPairs:[]},f={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".css",ws:`[ \r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r -]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},f={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},f={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},f={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return D}),o.d(w,"language",function(){return H});var h=o(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],D={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}]},H={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return D}),o.d(w,"language",function(){return H});var h=o(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],D={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},H={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return f}),o.d(w,"language",function(){return D});var h=o(142),f=h.conf,D={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:h.language.operators,symbols:h.language.symbols,escapes:h.language.escapes,digits:h.language.digits,octaldigits:h.language.octaldigits,binarydigits:h.language.binarydigits,hexdigits:h.language.hexdigits,regexpctl:h.language.regexpctl,regexpesc:h.language.regexpesc,tokenizer:h.language.tokenizer}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03C0","\u212F","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xF7","\u2208","\u2209","\u220B","\u220C","\u2218","\u221A","\u221B","\u2229","\u222A","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228A","\u228B","\u22BB"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},[`[^)\r -]+`,"string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},f={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},f={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"variable.source",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".msdax",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["VAR","RETURN","NOT","EVALUATE","DATATABLE","ORDER","BY","START","AT","DEFINE","MEASURE","ASC","DESC","IN","BOOLEAN","DOUBLE","INTEGER","DATETIME","CURRENCY","STRING"],functions:["CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","DATEADD","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","FIRSTDATE","FIRSTNONBLANK","LASTDATE","LASTNONBLANK","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","PARALLELPERIOD","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","SAMEPERIODLASTYEAR","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","TOTALMTD","TOTALQTD","TOTALYTD","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CROSSFILTER","CROSSJOIN","CURRENTGROUP","DATATABLE","DETAILROWS","DISTINCT","EARLIER","EARLIEST","EXCEPT","FILTER","FILTERS","GENERATE","GENERATEALL","GROUPBY","IGNORE","INTERSECT","ISONORAFTER","KEEPFILTERS","LOOKUPVALUE","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","RELATED","RELATEDTABLE","ROLLUP","ROLLUPADDISSUBTOTAL","ROLLUPGROUP","ROLLUPISSUBTOTAL","ROW","SAMPLE","SELECTCOLUMNS","SUBSTITUTEWITHINDEX","SUMMARIZE","SUMMARIZECOLUMNS","TOPN","TREATAS","UNION","USERELATIONSHIP","VALUES","SUM","SUMX","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","AVERAGE","AVERAGEA","AVERAGEX","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","DISTINCTCOUNT","DIVIDE","GEOMEAN","GEOMEANX","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MIN","MINA","MINX","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PRODUCT","PRODUCTX","RANK.EQ","RANKX","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","VAR.P","VAR.S","VARX.P","VARX.S","XIRR","XNPV","DATE","DATEDIFF","DATEVALUE","DAY","EDATE","EOMONTH","HOUR","MINUTE","MONTH","NOW","SECOND","TIME","TIMEVALUE","TODAY","WEEKDAY","WEEKNUM","YEAR","YEARFRAC","CONTAINS","CONTAINSROW","CUSTOMDATA","ERROR","HASONEFILTER","HASONEVALUE","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISSUBTOTAL","ISTEXT","USERNAME","USERPRINCIPALNAME","AND","FALSE","IF","IFERROR","NOT","OR","SWITCH","TRUE","ABS","ACOS","ACOSH","ACOT","ACOTH","ASIN","ASINH","ATAN","ATANH","BETA.DIST","BETA.INV","CEILING","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","COMBIN","COMBINA","CONFIDENCE.NORM","CONFIDENCE.T","COS","COSH","COT","COTH","CURRENCY","DEGREES","EVEN","EXP","EXPON.DIST","FACT","FLOOR","GCD","INT","ISO.CEILING","LCM","LN","LOG","LOG10","MOD","MROUND","ODD","PERMUT","PI","POISSON.DIST","POWER","QUOTIENT","RADIANS","RAND","RANDBETWEEN","ROUND","ROUNDDOWN","ROUNDUP","SIGN","SIN","SINH","SQRT","SQRTPI","TAN","TANH","TRUNC","BLANK","CONCATENATE","CONCATENATEX","EXACT","FIND","FIXED","FORMAT","LEFT","LEN","LOWER","MID","REPLACE","REPT","RIGHT","SEARCH","SUBSTITUTE","TRIM","UNICHAR","UNICODE","UPPER","VALUE"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[({})]/,"@brackets"],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":"keyword","@functions":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ACCOUNT","ACTION","ADD","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCHANGE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GLOBAL","GRANT","GRANTS","GROUP","GROUP_REPLICATION","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","ISOLATION","ISSUER","ITERATE","JOIN","JSON","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_VERSION","MASTER_USER","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NEVER","NEW","NEXT","NO","NODEGROUP","NONBLOCKING","NONE","NO_WAIT","NO_WRITE_TO_BINLOG","NUMBER","NUMERIC","NVARCHAR","OFFSET","OLD_PASSWORD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OPTIONS","OR","ORDER","OUT","OUTER","OUTFILE","OWNER","PACK_KEYS","PAGE","PARSER","PARSE_GCOL_EXPR","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PROCEDURE","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANGE","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","REDOFILE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","RESET","RESIGNAL","RESTORE","RESTRICT","RESUME","RETURN","RETURNED_SQLSTATE","RETURNS","REVERSE","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VIEW","VIRTUAL","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CURDATE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAST_INSERT_ID","LCASE","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROUND","ROW_COUNT","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LongFromGeoHash","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SymDifference","ST_Touches","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},f={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["A","ABORT","ABS","ABSENT","ABSOLUTE","ACCESS","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALLOCATE","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARE","ARRAY","ARRAY_AGG","ARRAY_MAX_CARDINALITY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTRIBUTE","ATTRIBUTES","AUTHORIZATION","AVG","BACKWARD","BASE64","BEFORE","BEGIN","BEGIN_FRAME","BEGIN_PARTITION","BERNOULLI","BETWEEN","BIGINT","BINARY","BIT","BIT_LENGTH","BLOB","BLOCKED","BOM","BOOLEAN","BOTH","BREADTH","BY","C","CACHE","CALL","CALLED","CARDINALITY","CASCADE","CASCADED","CASE","CAST","CATALOG","CATALOG_NAME","CEIL","CEILING","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHARACTERS","CHARACTER_LENGTH","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CHAR_LENGTH","CHECK","CHECKPOINT","CLASS","CLASS_ORIGIN","CLOB","CLOSE","CLUSTER","COALESCE","COBOL","COLLATE","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLLECT","COLUMN","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONDITION","CONDITION_NUMBER","CONFIGURATION","CONFLICT","CONNECT","CONNECTION","CONNECTION_NAME","CONSTRAINT","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTAINS","CONTENT","CONTINUE","CONTROL","CONVERSION","CONVERT","COPY","CORR","CORRESPONDING","COST","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CSV","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_ROW","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATALINK","DATE","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DAY","DB","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DEPENDS","DEPTH","DEREF","DERIVED","DESC","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DICTIONARY","DISABLE","DISCARD","DISCONNECT","DISPATCH","DISTINCT","DLNEWCOPY","DLPREVIOUSCOPY","DLURLCOMPLETE","DLURLCOMPLETEONLY","DLURLCOMPLETEWRITE","DLURLPATH","DLURLPATHONLY","DLURLPATHWRITE","DLURLSCHEME","DLURLSERVER","DLVALUE","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","DYNAMIC","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EACH","ELEMENT","ELSE","EMPTY","ENABLE","ENCODING","ENCRYPTED","END","END-EXEC","END_FRAME","END_PARTITION","ENFORCED","ENUM","EQUALS","ESCAPE","EVENT","EVERY","EXCEPT","EXCEPTION","EXCLUDE","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXP","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILE","FILTER","FINAL","FIRST","FIRST_VALUE","FLAG","FLOAT","FLOOR","FOLLOWING","FOR","FORCE","FOREIGN","FORTRAN","FORWARD","FOUND","FRAME_ROW","FREE","FREEZE","FROM","FS","FULL","FUNCTION","FUNCTIONS","FUSION","G","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HEX","HIERARCHY","HOLD","HOUR","ID","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMEDIATELY","IMMUTABLE","IMPLEMENTATION","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INDENT","INDEX","INDEXES","INDICATOR","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTANCE","INSTANTIABLE","INSTEAD","INT","INTEGER","INTEGRITY","INTERSECT","INTERSECTION","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","K","KEY","KEY_MEMBER","KEY_TYPE","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAKPROOF","LEAST","LEFT","LENGTH","LEVEL","LIBRARY","LIKE","LIKE_REGEX","LIMIT","LINK","LISTEN","LN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKED","LOGGED","LOWER","M","MAP","MAPPING","MATCH","MATCHED","MATERIALIZED","MAX","MAXVALUE","MAX_CARDINALITY","MEMBER","MERGE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","METHOD","MIN","MINUTE","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MORE","MOVE","MULTISET","MUMPS","NAME","NAMES","NAMESPACE","NATIONAL","NATURAL","NCHAR","NCLOB","NESTING","NEW","NEXT","NFC","NFD","NFKC","NFKD","NIL","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NTH_VALUE","NTILE","NULL","NULLABLE","NULLIF","NULLS","NUMBER","NUMERIC","OBJECT","OCCURRENCES_REGEX","OCTETS","OCTET_LENGTH","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPEN","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDERING","ORDINALITY","OTHERS","OUT","OUTER","OUTPUT","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","P","PAD","PARALLEL","PARAMETER","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARSER","PARTIAL","PARTITION","PASCAL","PASSING","PASSTHROUGH","PASSWORD","PATH","PERCENT","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PERIOD","PERMISSION","PLACING","PLANS","PLI","POLICY","PORTION","POSITION","POSITION_REGEX","POWER","PRECEDES","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","PUBLIC","QUOTE","RANGE","RANK","READ","READS","REAL","REASSIGN","RECHECK","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","REQUIRING","RESET","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW","ROWS","ROW_COUNT","ROW_NUMBER","RULE","SAVEPOINT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SCROLL","SEARCH","SECOND","SECTION","SECURITY","SELECT","SELECTIVE","SELF","SENSITIVE","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SIZE","SKIP","SMALLINT","SNAPSHOT","SOME","SOURCE","SPACE","SPECIFIC","SPECIFICTYPE","SPECIFIC_NAME","SQL","SQLCODE","SQLERROR","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","STABLE","STANDALONE","START","STATE","STATEMENT","STATIC","STATISTICS","STDDEV_POP","STDDEV_SAMP","STDIN","STDOUT","STORAGE","STRICT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUCCEEDS","SUM","SYMMETRIC","SYSID","SYSTEM","SYSTEM_TIME","SYSTEM_USER","T","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TABLE_NAME","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOKEN","TOP_LEVEL_COUNT","TRAILING","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNDER","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLINK","UNLISTEN","UNLOGGED","UNNAMED","UNNEST","UNTIL","UNTYPED","UPDATE","UPPER","URI","USAGE","USER","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VALUE_OF","VARBINARY","VARCHAR","VARIADIC","VARYING","VAR_POP","VAR_SAMP","VERBOSE","VERSION","VERSIONING","VIEW","VIEWS","VOLATILE","WHEN","WHENEVER","WHERE","WHITESPACE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLAGG","XMLATTRIBUTES","XMLBINARY","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDECLARATION","XMLDOCUMENT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLITERATE","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSCHEMA","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","YEAR","YES","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acos","acosd","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","atan","atan2","atan2d","atand","avg","bit","bit_and","bit_length","bit_or","bool_and","bool_or","bound_box","box","brin_summarize_new_values","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","date_part","date_trunc","decode","degrees","dense_rank","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","family","first_value","floor","format","format_type","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lead","least","left","length","line","ln","localtime","localtimestamp","log","lower","lower_inc","lower_inf","lpad","lseg","ltrim","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","max","md5","min","mod","mode","netmask","network","nextval","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_merge","rank","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","shobj_description","sign","sin","sind","split_part","sprintf","sqrt","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","strip","strpos","substr","substring","sum","table_to_xml","table_to_xml_and_xmlschema","tan","tand","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},f={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},f={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},f={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return f}),o.d(w,"language",function(){return D});var h=o(95),f={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:h.a.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},D={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".r",roxygen:["@param","@return","@name","@rdname","@examples","@include","@docType","@S3method","@TODO","@aliases","@alias","@assignee","@author","@callGraphDepth","@callGraph","@callGraphPrimitives","@concept","@exportClass","@exportMethod","@exportPattern","@export","@formals","@format","@importClassesFrom","@importFrom","@importMethodsFrom","@import","@keywords","@method","@nord","@note","@references","@seealso","@setClass","@slot","@source","@title","@usage"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN ","NA_integer_","NA_real_","NA_complex_","NA_character_ ","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return D}),o.d(w,"language",function(){return H});var h=o(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],D={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}]},H={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},f={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,alphanumericsplus:/[A-Za-z0-9-_+:.]/,simpleRefNameWithoutBq:/(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefName(?:\s@simpleRefName)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},f={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","box","break","const","continue","crate","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".scss",ws:`[ +]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},f={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},f={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},f={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return O}),r.d(w,"language",function(){return H});var h=r(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],O={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}]},H={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return O}),r.d(w,"language",function(){return H});var h=r(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],O={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},H={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return f}),r.d(w,"language",function(){return O});var h=r(142),f=h.conf,O={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:h.language.operators,symbols:h.language.symbols,escapes:h.language.escapes,digits:h.language.digits,octaldigits:h.language.octaldigits,binarydigits:h.language.binarydigits,hexdigits:h.language.hexdigits,regexpctl:h.language.regexpctl,regexpesc:h.language.regexpesc,tokenizer:h.language.tokenizer}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03C0","\u212F","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xF7","\u2208","\u2209","\u220B","\u220C","\u2218","\u221A","\u221B","\u2229","\u222A","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228A","\u228B","\u22BB"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},f={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},f={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"variable.source",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".msdax",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["VAR","RETURN","NOT","EVALUATE","DATATABLE","ORDER","BY","START","AT","DEFINE","MEASURE","ASC","DESC","IN","BOOLEAN","DOUBLE","INTEGER","DATETIME","CURRENCY","STRING"],functions:["CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","DATEADD","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","FIRSTDATE","FIRSTNONBLANK","LASTDATE","LASTNONBLANK","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","PARALLELPERIOD","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","SAMEPERIODLASTYEAR","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","TOTALMTD","TOTALQTD","TOTALYTD","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CROSSFILTER","CROSSJOIN","CURRENTGROUP","DATATABLE","DETAILROWS","DISTINCT","EARLIER","EARLIEST","EXCEPT","FILTER","FILTERS","GENERATE","GENERATEALL","GROUPBY","IGNORE","INTERSECT","ISONORAFTER","KEEPFILTERS","LOOKUPVALUE","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","RELATED","RELATEDTABLE","ROLLUP","ROLLUPADDISSUBTOTAL","ROLLUPGROUP","ROLLUPISSUBTOTAL","ROW","SAMPLE","SELECTCOLUMNS","SUBSTITUTEWITHINDEX","SUMMARIZE","SUMMARIZECOLUMNS","TOPN","TREATAS","UNION","USERELATIONSHIP","VALUES","SUM","SUMX","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","AVERAGE","AVERAGEA","AVERAGEX","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","DISTINCTCOUNT","DIVIDE","GEOMEAN","GEOMEANX","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MIN","MINA","MINX","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PRODUCT","PRODUCTX","RANK.EQ","RANKX","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","VAR.P","VAR.S","VARX.P","VARX.S","XIRR","XNPV","DATE","DATEDIFF","DATEVALUE","DAY","EDATE","EOMONTH","HOUR","MINUTE","MONTH","NOW","SECOND","TIME","TIMEVALUE","TODAY","WEEKDAY","WEEKNUM","YEAR","YEARFRAC","CONTAINS","CONTAINSROW","CUSTOMDATA","ERROR","HASONEFILTER","HASONEVALUE","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISSUBTOTAL","ISTEXT","USERNAME","USERPRINCIPALNAME","AND","FALSE","IF","IFERROR","NOT","OR","SWITCH","TRUE","ABS","ACOS","ACOSH","ACOT","ACOTH","ASIN","ASINH","ATAN","ATANH","BETA.DIST","BETA.INV","CEILING","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","COMBIN","COMBINA","CONFIDENCE.NORM","CONFIDENCE.T","COS","COSH","COT","COTH","CURRENCY","DEGREES","EVEN","EXP","EXPON.DIST","FACT","FLOOR","GCD","INT","ISO.CEILING","LCM","LN","LOG","LOG10","MOD","MROUND","ODD","PERMUT","PI","POISSON.DIST","POWER","QUOTIENT","RADIANS","RAND","RANDBETWEEN","ROUND","ROUNDDOWN","ROUNDUP","SIGN","SIN","SINH","SQRT","SQRTPI","TAN","TANH","TRUNC","BLANK","CONCATENATE","CONCATENATEX","EXACT","FIND","FIXED","FORMAT","LEFT","LEN","LOWER","MID","REPLACE","REPT","RIGHT","SEARCH","SUBSTITUTE","TRIM","UNICHAR","UNICODE","UPPER","VALUE"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[({})]/,"@brackets"],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":"keyword","@functions":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ACCOUNT","ACTION","ADD","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCHANGE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GLOBAL","GRANT","GRANTS","GROUP","GROUP_REPLICATION","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","ISOLATION","ISSUER","ITERATE","JOIN","JSON","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_RETRY_COUNT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_VERSION","MASTER_USER","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NEVER","NEW","NEXT","NO","NODEGROUP","NONBLOCKING","NONE","NO_WAIT","NO_WRITE_TO_BINLOG","NUMBER","NUMERIC","NVARCHAR","OFFSET","OLD_PASSWORD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OPTIONS","OR","ORDER","OUT","OUTER","OUTFILE","OWNER","PACK_KEYS","PAGE","PARSER","PARSE_GCOL_EXPR","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PROCEDURE","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANGE","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","REDOFILE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","RESET","RESIGNAL","RESTORE","RESTRICT","RESUME","RETURN","RETURNED_SQLSTATE","RETURNS","REVERSE","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VIEW","VIRTUAL","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CURDATE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAST_INSERT_ID","LCASE","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROUND","ROW_COUNT","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LongFromGeoHash","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SymDifference","ST_Touches","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},f={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["A","ABORT","ABS","ABSENT","ABSOLUTE","ACCESS","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALLOCATE","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARE","ARRAY","ARRAY_AGG","ARRAY_MAX_CARDINALITY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTRIBUTE","ATTRIBUTES","AUTHORIZATION","AVG","BACKWARD","BASE64","BEFORE","BEGIN","BEGIN_FRAME","BEGIN_PARTITION","BERNOULLI","BETWEEN","BIGINT","BINARY","BIT","BIT_LENGTH","BLOB","BLOCKED","BOM","BOOLEAN","BOTH","BREADTH","BY","C","CACHE","CALL","CALLED","CARDINALITY","CASCADE","CASCADED","CASE","CAST","CATALOG","CATALOG_NAME","CEIL","CEILING","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHARACTERS","CHARACTER_LENGTH","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CHAR_LENGTH","CHECK","CHECKPOINT","CLASS","CLASS_ORIGIN","CLOB","CLOSE","CLUSTER","COALESCE","COBOL","COLLATE","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLLECT","COLUMN","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONDITION","CONDITION_NUMBER","CONFIGURATION","CONFLICT","CONNECT","CONNECTION","CONNECTION_NAME","CONSTRAINT","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTAINS","CONTENT","CONTINUE","CONTROL","CONVERSION","CONVERT","COPY","CORR","CORRESPONDING","COST","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CSV","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_ROW","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATALINK","DATE","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DAY","DB","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DEPENDS","DEPTH","DEREF","DERIVED","DESC","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DICTIONARY","DISABLE","DISCARD","DISCONNECT","DISPATCH","DISTINCT","DLNEWCOPY","DLPREVIOUSCOPY","DLURLCOMPLETE","DLURLCOMPLETEONLY","DLURLCOMPLETEWRITE","DLURLPATH","DLURLPATHONLY","DLURLPATHWRITE","DLURLSCHEME","DLURLSERVER","DLVALUE","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","DYNAMIC","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EACH","ELEMENT","ELSE","EMPTY","ENABLE","ENCODING","ENCRYPTED","END","END-EXEC","END_FRAME","END_PARTITION","ENFORCED","ENUM","EQUALS","ESCAPE","EVENT","EVERY","EXCEPT","EXCEPTION","EXCLUDE","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXP","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILE","FILTER","FINAL","FIRST","FIRST_VALUE","FLAG","FLOAT","FLOOR","FOLLOWING","FOR","FORCE","FOREIGN","FORTRAN","FORWARD","FOUND","FRAME_ROW","FREE","FREEZE","FROM","FS","FULL","FUNCTION","FUNCTIONS","FUSION","G","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HEX","HIERARCHY","HOLD","HOUR","ID","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMEDIATELY","IMMUTABLE","IMPLEMENTATION","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INDENT","INDEX","INDEXES","INDICATOR","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTANCE","INSTANTIABLE","INSTEAD","INT","INTEGER","INTEGRITY","INTERSECT","INTERSECTION","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","K","KEY","KEY_MEMBER","KEY_TYPE","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAKPROOF","LEAST","LEFT","LENGTH","LEVEL","LIBRARY","LIKE","LIKE_REGEX","LIMIT","LINK","LISTEN","LN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKED","LOGGED","LOWER","M","MAP","MAPPING","MATCH","MATCHED","MATERIALIZED","MAX","MAXVALUE","MAX_CARDINALITY","MEMBER","MERGE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","METHOD","MIN","MINUTE","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MORE","MOVE","MULTISET","MUMPS","NAME","NAMES","NAMESPACE","NATIONAL","NATURAL","NCHAR","NCLOB","NESTING","NEW","NEXT","NFC","NFD","NFKC","NFKD","NIL","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NTH_VALUE","NTILE","NULL","NULLABLE","NULLIF","NULLS","NUMBER","NUMERIC","OBJECT","OCCURRENCES_REGEX","OCTETS","OCTET_LENGTH","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPEN","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDERING","ORDINALITY","OTHERS","OUT","OUTER","OUTPUT","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","P","PAD","PARALLEL","PARAMETER","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARSER","PARTIAL","PARTITION","PASCAL","PASSING","PASSTHROUGH","PASSWORD","PATH","PERCENT","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PERIOD","PERMISSION","PLACING","PLANS","PLI","POLICY","PORTION","POSITION","POSITION_REGEX","POWER","PRECEDES","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","PUBLIC","QUOTE","RANGE","RANK","READ","READS","REAL","REASSIGN","RECHECK","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","REQUIRING","RESET","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW","ROWS","ROW_COUNT","ROW_NUMBER","RULE","SAVEPOINT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SCROLL","SEARCH","SECOND","SECTION","SECURITY","SELECT","SELECTIVE","SELF","SENSITIVE","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SIZE","SKIP","SMALLINT","SNAPSHOT","SOME","SOURCE","SPACE","SPECIFIC","SPECIFICTYPE","SPECIFIC_NAME","SQL","SQLCODE","SQLERROR","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","STABLE","STANDALONE","START","STATE","STATEMENT","STATIC","STATISTICS","STDDEV_POP","STDDEV_SAMP","STDIN","STDOUT","STORAGE","STRICT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUCCEEDS","SUM","SYMMETRIC","SYSID","SYSTEM","SYSTEM_TIME","SYSTEM_USER","T","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TABLE_NAME","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOKEN","TOP_LEVEL_COUNT","TRAILING","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNDER","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLINK","UNLISTEN","UNLOGGED","UNNAMED","UNNEST","UNTIL","UNTYPED","UPDATE","UPPER","URI","USAGE","USER","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VALUE_OF","VARBINARY","VARCHAR","VARIADIC","VARYING","VAR_POP","VAR_SAMP","VERBOSE","VERSION","VERSIONING","VIEW","VIEWS","VOLATILE","WHEN","WHENEVER","WHERE","WHITESPACE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLAGG","XMLATTRIBUTES","XMLBINARY","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDECLARATION","XMLDOCUMENT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLITERATE","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSCHEMA","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","YEAR","YES","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acos","acosd","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","atan","atan2","atan2d","atand","avg","bit","bit_and","bit_length","bit_or","bool_and","bool_or","bound_box","box","brin_summarize_new_values","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","date_part","date_trunc","decode","degrees","dense_rank","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","family","first_value","floor","format","format_type","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lead","least","left","length","line","ln","localtime","localtimestamp","log","lower","lower_inc","lower_inf","lpad","lseg","ltrim","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","max","md5","min","mod","mode","netmask","network","nextval","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_merge","rank","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","shobj_description","sign","sin","sind","split_part","sprintf","sqrt","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","strip","strpos","substr","substring","sum","table_to_xml","table_to_xml_and_xmlschema","tan","tand","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},f={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},f={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},f={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return f}),r.d(w,"language",function(){return O});var h=r(95),f={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$"),action:{indentAction:h.a.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},O={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".r",roxygen:["@param","@return","@name","@rdname","@examples","@include","@docType","@S3method","@TODO","@aliases","@alias","@assignee","@author","@callGraphDepth","@callGraph","@callGraphPrimitives","@concept","@exportClass","@exportMethod","@exportPattern","@export","@formals","@format","@importClassesFrom","@importFrom","@importMethodsFrom","@import","@keywords","@method","@nord","@note","@references","@seealso","@setClass","@slot","@source","@title","@usage"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN ","NA_integer_","NA_real_","NA_complex_","NA_character_ ","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return O}),r.d(w,"language",function(){return H});var h=r(95),f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],O={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.a.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+f.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:h.a.IndentAction.Indent}}]},H={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},f={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,alphanumericsplus:/[A-Za-z0-9-_+:.]/,simpleRefNameWithoutBq:/(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefName(?:\s@simpleRefName)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},f={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","box","break","const","continue","crate","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},f={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},f={defaultToken:"",tokenPostfix:".scss",ws:`[ \r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},[`[^)\r -]+`,"string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/-+\w+/,"attribute.name"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},f={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=><!~?:&|+\-*\/\^%#]+/,escapes:/%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,identifier:/(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,systemcall:/[$][a-zA-Z0-9_]+/,timeunits:/s|ms|us|ns|ps|fs/,tokenizer:{root:[[/^(\s*)(@identifier)/,["",{cases:{"@builtin_gates":{token:"keyword.$2",next:"@module_instance"},"@keywords":{token:"keyword.$2"},"@default":{token:"identifier",next:"@module_instance"}}}]],[/^\s*`include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*`\s*\w+/,"keyword"],{include:"@identifier_or_keyword"},{include:"@whitespace"},[/\(\*.*\*\)/,"annotation"],[/@systemcall/,"variable.predefined"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},f={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},f={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"conf",function(){return h}),o.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},f={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+$/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"setupTypeScript",function(){return L}),o.d(w,"setupJavaScript",function(){return nt}),o.d(w,"getJavaScriptWorker",function(){return ct}),o.d(w,"getTypeScriptWorker",function(){return Ye});var h,f,D=o(29),H=function(fe,$,G,z){return new(G||(G=Promise))(function(J,Se){function A(Oe){try{de(z.next(Oe))}catch($e){Se($e)}}function ee(Oe){try{de(z.throw(Oe))}catch($e){Se($e)}}function de(Oe){var $e;Oe.done?J(Oe.value):($e=Oe.value,$e instanceof G?$e:new G(function(pt){pt($e)})).then(A,ee)}de((z=z.apply(fe,$||[])).next())})},E=function(fe,$){var G,z,J,Se,A={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Se={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function ee(de){return function(Oe){return function($e){if(G)throw new TypeError("Generator is already executing.");for(;A;)try{if(G=1,z&&(J=2&$e[0]?z.return:$e[0]?z.throw||((J=z.return)&&J.call(z),0):z.next)&&!(J=J.call(z,$e[1])).done)return J;switch(z=0,J&&($e=[2&$e[0],J.value]),$e[0]){case 0:case 1:J=$e;break;case 4:return A.label++,{value:$e[1],done:!1};case 5:A.label++,z=$e[1],$e=[0];continue;case 7:$e=A.ops.pop(),A.trys.pop();continue;default:if(J=A.trys,!((J=J.length>0&&J[J.length-1])||$e[0]!==6&&$e[0]!==2)){A=0;continue}if($e[0]===3&&(!J||$e[1]>J[0]&&$e[1]<J[3])){A.label=$e[1];break}if($e[0]===6&&A.label<J[1]){A.label=J[1],J=$e;break}if(J&&A.label<J[2]){A.label=J[2],A.ops.push($e);break}J[2]&&A.ops.pop(),A.trys.pop();continue}$e=$.call(fe,A)}catch(pt){$e=[6,pt],z=0}finally{G=J=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([de,Oe])}}},ge=function(){function fe($,G){var z=this;this._modeId=$,this._defaults=G,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(function(){return z._stopWorker()}),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(function(){return z._updateExtraLibs()})}return fe.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},fe.prototype.dispose=function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()},fe.prototype._updateExtraLibs=function(){return H(this,void 0,void 0,function(){var $,G;return E(this,function(z){switch(z.label){case 0:return this._worker?($=++this._updateExtraLibsToken,[4,this._worker.getProxy()]):[2];case 1:return G=z.sent(),this._updateExtraLibsToken!==$?[2]:(G.updateExtraLibs(this._defaults.getExtraLibs()),[2])}})})},fe.prototype._getClient=function(){var $=this;if(!this._client){this._worker=D.f.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath}});var G=this._worker.getProxy();this._defaults.getEagerModelSync()&&(G=G.then(function(z){return $._worker?$._worker.withSyncedResources(D.f.getModels().filter(function(J){return J.getModeId()===$._modeId}).map(function(J){return J.uri})):z})),this._client=G}return this._client},fe.prototype.getLanguageServiceWorker=function(){for(var $,G=this,z=[],J=0;J<arguments.length;J++)z[J]=arguments[J];return this._getClient().then(function(Se){$=Se}).then(function(Se){if(G._worker)return G._worker.withSyncedResources(z)}).then(function(Se){return $})},fe}(),W={"lib.d.ts":!0,"lib.dom.d.ts":!0,"lib.dom.iterable.d.ts":!0,"lib.es2015.collection.d.ts":!0,"lib.es2015.core.d.ts":!0,"lib.es2015.d.ts":!0,"lib.es2015.generator.d.ts":!0,"lib.es2015.iterable.d.ts":!0,"lib.es2015.promise.d.ts":!0,"lib.es2015.proxy.d.ts":!0,"lib.es2015.reflect.d.ts":!0,"lib.es2015.symbol.d.ts":!0,"lib.es2015.symbol.wellknown.d.ts":!0,"lib.es2016.array.include.d.ts":!0,"lib.es2016.d.ts":!0,"lib.es2016.full.d.ts":!0,"lib.es2017.d.ts":!0,"lib.es2017.full.d.ts":!0,"lib.es2017.intl.d.ts":!0,"lib.es2017.object.d.ts":!0,"lib.es2017.sharedmemory.d.ts":!0,"lib.es2017.string.d.ts":!0,"lib.es2017.typedarrays.d.ts":!0,"lib.es2018.asyncgenerator.d.ts":!0,"lib.es2018.asynciterable.d.ts":!0,"lib.es2018.d.ts":!0,"lib.es2018.full.d.ts":!0,"lib.es2018.intl.d.ts":!0,"lib.es2018.promise.d.ts":!0,"lib.es2018.regexp.d.ts":!0,"lib.es2019.array.d.ts":!0,"lib.es2019.d.ts":!0,"lib.es2019.full.d.ts":!0,"lib.es2019.object.d.ts":!0,"lib.es2019.string.d.ts":!0,"lib.es2019.symbol.d.ts":!0,"lib.es2020.bigint.d.ts":!0,"lib.es2020.d.ts":!0,"lib.es2020.full.d.ts":!0,"lib.es2020.intl.d.ts":!0,"lib.es2020.promise.d.ts":!0,"lib.es2020.string.d.ts":!0,"lib.es2020.symbol.wellknown.d.ts":!0,"lib.es5.d.ts":!0,"lib.es6.d.ts":!0,"lib.esnext.d.ts":!0,"lib.esnext.full.d.ts":!0,"lib.esnext.intl.d.ts":!0,"lib.esnext.promise.d.ts":!0,"lib.esnext.string.d.ts":!0,"lib.scripthost.d.ts":!0,"lib.webworker.d.ts":!0,"lib.webworker.importscripts.d.ts":!0},Q=(h=function(fe,$){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,z){G.__proto__=z}||function(G,z){for(var J in z)Object.prototype.hasOwnProperty.call(z,J)&&(G[J]=z[J])})(fe,$)},function(fe,$){function G(){this.constructor=fe}h(fe,$),fe.prototype=$===null?Object.create($):(G.prototype=$.prototype,new G)}),y=function(fe,$,G,z){return new(G||(G=Promise))(function(J,Se){function A(Oe){try{de(z.next(Oe))}catch($e){Se($e)}}function ee(Oe){try{de(z.throw(Oe))}catch($e){Se($e)}}function de(Oe){var $e;Oe.done?J(Oe.value):($e=Oe.value,$e instanceof G?$e:new G(function(pt){pt($e)})).then(A,ee)}de((z=z.apply(fe,$||[])).next())})},C=function(fe,$){var G,z,J,Se,A={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Se={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function ee(de){return function(Oe){return function($e){if(G)throw new TypeError("Generator is already executing.");for(;A;)try{if(G=1,z&&(J=2&$e[0]?z.return:$e[0]?z.throw||((J=z.return)&&J.call(z),0):z.next)&&!(J=J.call(z,$e[1])).done)return J;switch(z=0,J&&($e=[2&$e[0],J.value]),$e[0]){case 0:case 1:J=$e;break;case 4:return A.label++,{value:$e[1],done:!1};case 5:A.label++,z=$e[1],$e=[0];continue;case 7:$e=A.ops.pop(),A.trys.pop();continue;default:if(J=A.trys,!((J=J.length>0&&J[J.length-1])||$e[0]!==6&&$e[0]!==2)){A=0;continue}if($e[0]===3&&(!J||$e[1]>J[0]&&$e[1]<J[3])){A.label=$e[1];break}if($e[0]===6&&A.label<J[1]){A.label=J[1],J=$e;break}if(J&&A.label<J[2]){A.label=J[2],A.ops.push($e);break}J[2]&&A.ops.pop(),A.trys.pop();continue}$e=$.call(fe,A)}catch(pt){$e=[6,pt],z=0}finally{G=J=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([de,Oe])}}};function S(fe,$,G){if(G===void 0&&(G=0),typeof fe=="string")return fe;if(fe===void 0)return"";var z="";if(G){z+=$;for(var J=0;J<G;J++)z+=" "}if(z+=fe.messageText,G++,fe.next)for(var Se=0,A=fe.next;Se<A.length;Se++)z+=S(A[Se],$,G);return z}function P(fe){return fe?fe.map(function($){return $.text}).join(""):""}(function(fe){fe[fe.None=0]="None",fe[fe.Block=1]="Block",fe[fe.Smart=2]="Smart"})(f||(f={}));var V,k=function(){function fe($){this._worker=$}return fe.prototype._textSpanToRange=function($,G){var z=$.getPositionAt(G.start),J=$.getPositionAt(G.start+G.length);return{startLineNumber:z.lineNumber,startColumn:z.column,endLineNumber:J.lineNumber,endColumn:J.column}},fe}(),l=function(){function fe($){this._worker=$,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}return fe.prototype.isLibFile=function($){return!!$&&$.path.indexOf("/lib.")===0&&!!W[$.path.slice(1)]},fe.prototype.getOrCreateModel=function($){var G=D.f.getModel($);return G||(this.isLibFile($)&&this._hasFetchedLibFiles?D.f.createModel(this._libFiles[$.path.slice(1)],"javascript",$):null)},fe.prototype._containsLibFile=function($){for(var G=0,z=$;G<z.length;G++){var J=z[G];if(this.isLibFile(J))return!0}return!1},fe.prototype.fetchLibFilesIfNecessary=function($){return y(this,void 0,void 0,function(){return C(this,function(G){switch(G.label){case 0:return this._containsLibFile($)?[4,this._fetchLibFiles()]:[2];case 1:return G.sent(),[2]}})})},fe.prototype._fetchLibFiles=function(){var $=this;return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(function(G){return G.getLibFiles()}).then(function(G){$._hasFetchedLibFiles=!0,$._libFiles=G})),this._fetchLibFilesPromise},fe}();(function(fe){fe[fe.Warning=0]="Warning",fe[fe.Error=1]="Error",fe[fe.Suggestion=2]="Suggestion",fe[fe.Message=3]="Message"})(V||(V={}));var T=function(fe){function $(G,z,J,Se){var A=fe.call(this,Se)||this;A._libFiles=G,A._defaults=z,A._selector=J,A._disposables=[],A._listener=Object.create(null);var ee=function($e){if($e.getModeId()===J){var pt,it=$e.onDidChangeContent(function(){clearTimeout(pt),pt=setTimeout(function(){return A._doValidate($e)},500)});A._listener[$e.uri.toString()]={dispose:function(){it.dispose(),clearTimeout(pt)}},A._doValidate($e)}},de=function($e){D.f.setModelMarkers($e,A._selector,[]);var pt=$e.uri.toString();A._listener[pt]&&(A._listener[pt].dispose(),delete A._listener[pt])};A._disposables.push(D.f.onDidCreateModel(ee)),A._disposables.push(D.f.onWillDisposeModel(de)),A._disposables.push(D.f.onDidChangeModelLanguage(function($e){de($e.model),ee($e.model)})),A._disposables.push({dispose:function(){for(var $e=0,pt=D.f.getModels();$e<pt.length;$e++){var it=pt[$e];de(it)}}});var Oe=function(){for(var $e=0,pt=D.f.getModels();$e<pt.length;$e++){var it=pt[$e];de(it),ee(it)}};return A._disposables.push(A._defaults.onDidChange(Oe)),A._disposables.push(A._defaults.onDidExtraLibsChange(Oe)),D.f.getModels().forEach(ee),A}return Q($,fe),$.prototype.dispose=function(){this._disposables.forEach(function(G){return G&&G.dispose()}),this._disposables=[]},$.prototype._doValidate=function(G){return y(this,void 0,void 0,function(){var z,J,Se,A,ee,de,Oe,$e,pt,it=this;return C(this,function(At){switch(At.label){case 0:return[4,this._worker(G.uri)];case 1:return z=At.sent(),G.isDisposed()?[2]:(J=[],Se=this._defaults.getDiagnosticsOptions(),A=Se.noSyntaxValidation,ee=Se.noSemanticValidation,de=Se.noSuggestionDiagnostics,A||J.push(z.getSyntacticDiagnostics(G.uri.toString())),ee||J.push(z.getSemanticDiagnostics(G.uri.toString())),de||J.push(z.getSuggestionDiagnostics(G.uri.toString())),[4,Promise.all(J)]);case 2:return!(Oe=At.sent())||G.isDisposed()?[2]:($e=Oe.reduce(function(Nt,_i){return _i.concat(Nt)},[]).filter(function(Nt){return(it._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(Nt.code)===-1}),pt=$e.map(function(Nt){return Nt.relatedInformation||[]}).reduce(function(Nt,_i){return _i.concat(Nt)},[]).map(function(Nt){return Nt.file?D.e.parse(Nt.file.fileName):null}),[4,this._libFiles.fetchLibFilesIfNecessary(pt)]);case 3:return At.sent(),G.isDisposed()?[2]:(D.f.setModelMarkers(G,this._selector,$e.map(function(Nt){return it._convertDiagnostics(G,Nt)})),[2])}})})},$.prototype._convertDiagnostics=function(G,z){var J=z.start||0,Se=z.length||1,A=G.getPositionAt(J),ee=A.lineNumber,de=A.column,Oe=G.getPositionAt(J+Se),$e=Oe.lineNumber,pt=Oe.column,it=[];return z.reportsUnnecessary&&it.push(D.c.Unnecessary),z.reportsDeprecated&&it.push(D.c.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(z.category),startLineNumber:ee,startColumn:de,endLineNumber:$e,endColumn:pt,message:S(z.messageText,` -`),code:z.code.toString(),tags:it,relatedInformation:this._convertRelatedInformation(G,z.relatedInformation)}},$.prototype._convertRelatedInformation=function(G,z){var J=this;if(z){var Se=[];return z.forEach(function(A){var ee=G;if(A.file){var de=D.e.parse(A.file.fileName);ee=J._libFiles.getOrCreateModel(de)}if(ee){var Oe=A.start||0,$e=A.length||1,pt=ee.getPositionAt(Oe),it=pt.lineNumber,At=pt.column,Nt=ee.getPositionAt(Oe+$e),_i=Nt.lineNumber,wt=Nt.column;Se.push({resource:ee.uri,startLineNumber:it,startColumn:At,endLineNumber:_i,endColumn:wt,message:S(A.messageText,` -`)})}}),Se}},$.prototype._tsDiagnosticCategoryToMarkerSeverity=function(G){switch(G){case V.Error:return D.b.Error;case V.Message:return D.b.Info;case V.Warning:return D.b.Warning;case V.Suggestion:return D.b.Hint}return D.b.Info},$}(k),N=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),Object.defineProperty($.prototype,"triggerCharacters",{get:function(){return["."]},enumerable:!1,configurable:!0}),$.prototype.provideCompletionItems=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,Oe,$e;return C(this,function(pt){switch(pt.label){case 0:return A=G.getWordUntilPosition(z),ee=new D.d(z.lineNumber,A.startColumn,z.lineNumber,A.endColumn),de=G.uri,Oe=G.getOffsetAt(z),[4,this._worker(de)];case 1:return[4,pt.sent().getCompletionsAtPosition(de.toString(),Oe)];case 2:return!($e=pt.sent())||G.isDisposed()?[2]:[2,{suggestions:$e.entries.map(function(it){var At,Nt=ee;if(it.replacementSpan){var _i=G.getPositionAt(it.replacementSpan.start),wt=G.getPositionAt(it.replacementSpan.start+it.replacementSpan.length);Nt=new D.d(_i.lineNumber,_i.column,wt.lineNumber,wt.column)}var Ni=[];return((At=it.kindModifiers)===null||At===void 0?void 0:At.indexOf("deprecated"))!==-1&&Ni.push(D.g.CompletionItemTag.Deprecated),{uri:de,position:z,offset:Oe,range:Nt,label:it.name,insertText:it.name,sortText:it.sortText,kind:$.convertKind(it.kind),tags:Ni}})}]}})})},$.prototype.resolveCompletionItem=function(G,z){return y(this,void 0,void 0,function(){var J,Se,A,ee,de;return C(this,function(Oe){switch(Oe.label){case 0:return Se=(J=G).uri,A=J.position,ee=J.offset,[4,this._worker(Se)];case 1:return[4,Oe.sent().getCompletionEntryDetails(Se.toString(),ee,J.label)];case 2:return(de=Oe.sent())?[2,{uri:Se,position:A,label:de.name,kind:$.convertKind(de.kind),detail:P(de.displayParts),documentation:{value:$.createDocumentationString(de)}}]:[2,J]}})})},$.convertKind=function(G){switch(G){case se.primitiveType:case se.keyword:return D.g.CompletionItemKind.Keyword;case se.variable:case se.localVariable:return D.g.CompletionItemKind.Variable;case se.memberVariable:case se.memberGetAccessor:case se.memberSetAccessor:return D.g.CompletionItemKind.Field;case se.function:case se.memberFunction:case se.constructSignature:case se.callSignature:case se.indexSignature:return D.g.CompletionItemKind.Function;case se.enum:return D.g.CompletionItemKind.Enum;case se.module:return D.g.CompletionItemKind.Module;case se.class:return D.g.CompletionItemKind.Class;case se.interface:return D.g.CompletionItemKind.Interface;case se.warning:return D.g.CompletionItemKind.File}return D.g.CompletionItemKind.Property},$.createDocumentationString=function(G){var z=P(G.documentation);if(G.tags)for(var J=0,Se=G.tags;J<Se.length;J++)z+=` +]+`,"string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/-+\w+/,"attribute.name"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},f={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},f={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=><!~?:&|+\-*\/\^%#]+/,escapes:/%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,identifier:/(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,systemcall:/[$][a-zA-Z0-9_]+/,timeunits:/s|ms|us|ns|ps|fs/,tokenizer:{root:[[/^(\s*)(@identifier)/,["",{cases:{"@builtin_gates":{token:"keyword.$2",next:"@module_instance"},"@keywords":{token:"keyword.$2"},"@default":{token:"identifier",next:"@module_instance"}}}]],[/^\s*`include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*`\s*\w+/,"keyword"],{include:"@identifier_or_keyword"},{include:"@whitespace"},[/\(\*.*\*\)/,"annotation"],[/@systemcall/,"variable.predefined"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},f={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},f={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},f={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},f={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"conf",function(){return h}),r.d(w,"language",function(){return f});var h={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},f={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+$/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"setupTypeScript",function(){return L}),r.d(w,"setupJavaScript",function(){return nt}),r.d(w,"getJavaScriptWorker",function(){return ct}),r.d(w,"getTypeScriptWorker",function(){return Ye});var h,f,O=r(29),H=function(fe,$,G,z){return new(G||(G=Promise))(function(J,Se){function A(De){try{de(z.next(De))}catch($e){Se($e)}}function ee(De){try{de(z.throw(De))}catch($e){Se($e)}}function de(De){var $e;De.done?J(De.value):($e=De.value,$e instanceof G?$e:new G(function(pt){pt($e)})).then(A,ee)}de((z=z.apply(fe,$||[])).next())})},E=function(fe,$){var G,z,J,Se,A={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Se={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function ee(de){return function(De){return function($e){if(G)throw new TypeError("Generator is already executing.");for(;A;)try{if(G=1,z&&(J=2&$e[0]?z.return:$e[0]?z.throw||((J=z.return)&&J.call(z),0):z.next)&&!(J=J.call(z,$e[1])).done)return J;switch(z=0,J&&($e=[2&$e[0],J.value]),$e[0]){case 0:case 1:J=$e;break;case 4:return A.label++,{value:$e[1],done:!1};case 5:A.label++,z=$e[1],$e=[0];continue;case 7:$e=A.ops.pop(),A.trys.pop();continue;default:if(J=A.trys,!((J=J.length>0&&J[J.length-1])||$e[0]!==6&&$e[0]!==2)){A=0;continue}if($e[0]===3&&(!J||$e[1]>J[0]&&$e[1]<J[3])){A.label=$e[1];break}if($e[0]===6&&A.label<J[1]){A.label=J[1],J=$e;break}if(J&&A.label<J[2]){A.label=J[2],A.ops.push($e);break}J[2]&&A.ops.pop(),A.trys.pop();continue}$e=$.call(fe,A)}catch(pt){$e=[6,pt],z=0}finally{G=J=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([de,De])}}},ge=function(){function fe($,G){var z=this;this._modeId=$,this._defaults=G,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(function(){return z._stopWorker()}),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(function(){return z._updateExtraLibs()})}return fe.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},fe.prototype.dispose=function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()},fe.prototype._updateExtraLibs=function(){return H(this,void 0,void 0,function(){var $,G;return E(this,function(z){switch(z.label){case 0:return this._worker?($=++this._updateExtraLibsToken,[4,this._worker.getProxy()]):[2];case 1:return G=z.sent(),this._updateExtraLibsToken!==$?[2]:(G.updateExtraLibs(this._defaults.getExtraLibs()),[2])}})})},fe.prototype._getClient=function(){var $=this;if(!this._client){this._worker=O.f.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath}});var G=this._worker.getProxy();this._defaults.getEagerModelSync()&&(G=G.then(function(z){return $._worker?$._worker.withSyncedResources(O.f.getModels().filter(function(J){return J.getModeId()===$._modeId}).map(function(J){return J.uri})):z})),this._client=G}return this._client},fe.prototype.getLanguageServiceWorker=function(){for(var $,G=this,z=[],J=0;J<arguments.length;J++)z[J]=arguments[J];return this._getClient().then(function(Se){$=Se}).then(function(Se){if(G._worker)return G._worker.withSyncedResources(z)}).then(function(Se){return $})},fe}(),W={"lib.d.ts":!0,"lib.dom.d.ts":!0,"lib.dom.iterable.d.ts":!0,"lib.es2015.collection.d.ts":!0,"lib.es2015.core.d.ts":!0,"lib.es2015.d.ts":!0,"lib.es2015.generator.d.ts":!0,"lib.es2015.iterable.d.ts":!0,"lib.es2015.promise.d.ts":!0,"lib.es2015.proxy.d.ts":!0,"lib.es2015.reflect.d.ts":!0,"lib.es2015.symbol.d.ts":!0,"lib.es2015.symbol.wellknown.d.ts":!0,"lib.es2016.array.include.d.ts":!0,"lib.es2016.d.ts":!0,"lib.es2016.full.d.ts":!0,"lib.es2017.d.ts":!0,"lib.es2017.full.d.ts":!0,"lib.es2017.intl.d.ts":!0,"lib.es2017.object.d.ts":!0,"lib.es2017.sharedmemory.d.ts":!0,"lib.es2017.string.d.ts":!0,"lib.es2017.typedarrays.d.ts":!0,"lib.es2018.asyncgenerator.d.ts":!0,"lib.es2018.asynciterable.d.ts":!0,"lib.es2018.d.ts":!0,"lib.es2018.full.d.ts":!0,"lib.es2018.intl.d.ts":!0,"lib.es2018.promise.d.ts":!0,"lib.es2018.regexp.d.ts":!0,"lib.es2019.array.d.ts":!0,"lib.es2019.d.ts":!0,"lib.es2019.full.d.ts":!0,"lib.es2019.object.d.ts":!0,"lib.es2019.string.d.ts":!0,"lib.es2019.symbol.d.ts":!0,"lib.es2020.bigint.d.ts":!0,"lib.es2020.d.ts":!0,"lib.es2020.full.d.ts":!0,"lib.es2020.intl.d.ts":!0,"lib.es2020.promise.d.ts":!0,"lib.es2020.string.d.ts":!0,"lib.es2020.symbol.wellknown.d.ts":!0,"lib.es5.d.ts":!0,"lib.es6.d.ts":!0,"lib.esnext.d.ts":!0,"lib.esnext.full.d.ts":!0,"lib.esnext.intl.d.ts":!0,"lib.esnext.promise.d.ts":!0,"lib.esnext.string.d.ts":!0,"lib.scripthost.d.ts":!0,"lib.webworker.d.ts":!0,"lib.webworker.importscripts.d.ts":!0},Q=(h=function(fe,$){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,z){G.__proto__=z}||function(G,z){for(var J in z)Object.prototype.hasOwnProperty.call(z,J)&&(G[J]=z[J])})(fe,$)},function(fe,$){function G(){this.constructor=fe}h(fe,$),fe.prototype=$===null?Object.create($):(G.prototype=$.prototype,new G)}),y=function(fe,$,G,z){return new(G||(G=Promise))(function(J,Se){function A(De){try{de(z.next(De))}catch($e){Se($e)}}function ee(De){try{de(z.throw(De))}catch($e){Se($e)}}function de(De){var $e;De.done?J(De.value):($e=De.value,$e instanceof G?$e:new G(function(pt){pt($e)})).then(A,ee)}de((z=z.apply(fe,$||[])).next())})},C=function(fe,$){var G,z,J,Se,A={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Se={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function ee(de){return function(De){return function($e){if(G)throw new TypeError("Generator is already executing.");for(;A;)try{if(G=1,z&&(J=2&$e[0]?z.return:$e[0]?z.throw||((J=z.return)&&J.call(z),0):z.next)&&!(J=J.call(z,$e[1])).done)return J;switch(z=0,J&&($e=[2&$e[0],J.value]),$e[0]){case 0:case 1:J=$e;break;case 4:return A.label++,{value:$e[1],done:!1};case 5:A.label++,z=$e[1],$e=[0];continue;case 7:$e=A.ops.pop(),A.trys.pop();continue;default:if(J=A.trys,!((J=J.length>0&&J[J.length-1])||$e[0]!==6&&$e[0]!==2)){A=0;continue}if($e[0]===3&&(!J||$e[1]>J[0]&&$e[1]<J[3])){A.label=$e[1];break}if($e[0]===6&&A.label<J[1]){A.label=J[1],J=$e;break}if(J&&A.label<J[2]){A.label=J[2],A.ops.push($e);break}J[2]&&A.ops.pop(),A.trys.pop();continue}$e=$.call(fe,A)}catch(pt){$e=[6,pt],z=0}finally{G=J=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([de,De])}}};function S(fe,$,G){if(G===void 0&&(G=0),typeof fe=="string")return fe;if(fe===void 0)return"";var z="";if(G){z+=$;for(var J=0;J<G;J++)z+=" "}if(z+=fe.messageText,G++,fe.next)for(var Se=0,A=fe.next;Se<A.length;Se++)z+=S(A[Se],$,G);return z}function P(fe){return fe?fe.map(function($){return $.text}).join(""):""}(function(fe){fe[fe.None=0]="None",fe[fe.Block=1]="Block",fe[fe.Smart=2]="Smart"})(f||(f={}));var V,k=function(){function fe($){this._worker=$}return fe.prototype._textSpanToRange=function($,G){var z=$.getPositionAt(G.start),J=$.getPositionAt(G.start+G.length);return{startLineNumber:z.lineNumber,startColumn:z.column,endLineNumber:J.lineNumber,endColumn:J.column}},fe}(),l=function(){function fe($){this._worker=$,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}return fe.prototype.isLibFile=function($){return!!$&&$.path.indexOf("/lib.")===0&&!!W[$.path.slice(1)]},fe.prototype.getOrCreateModel=function($){var G=O.f.getModel($);return G||(this.isLibFile($)&&this._hasFetchedLibFiles?O.f.createModel(this._libFiles[$.path.slice(1)],"javascript",$):null)},fe.prototype._containsLibFile=function($){for(var G=0,z=$;G<z.length;G++){var J=z[G];if(this.isLibFile(J))return!0}return!1},fe.prototype.fetchLibFilesIfNecessary=function($){return y(this,void 0,void 0,function(){return C(this,function(G){switch(G.label){case 0:return this._containsLibFile($)?[4,this._fetchLibFiles()]:[2];case 1:return G.sent(),[2]}})})},fe.prototype._fetchLibFiles=function(){var $=this;return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(function(G){return G.getLibFiles()}).then(function(G){$._hasFetchedLibFiles=!0,$._libFiles=G})),this._fetchLibFilesPromise},fe}();(function(fe){fe[fe.Warning=0]="Warning",fe[fe.Error=1]="Error",fe[fe.Suggestion=2]="Suggestion",fe[fe.Message=3]="Message"})(V||(V={}));var T=function(fe){function $(G,z,J,Se){var A=fe.call(this,Se)||this;A._libFiles=G,A._defaults=z,A._selector=J,A._disposables=[],A._listener=Object.create(null);var ee=function($e){if($e.getModeId()===J){var pt,it=$e.onDidChangeContent(function(){clearTimeout(pt),pt=setTimeout(function(){return A._doValidate($e)},500)});A._listener[$e.uri.toString()]={dispose:function(){it.dispose(),clearTimeout(pt)}},A._doValidate($e)}},de=function($e){O.f.setModelMarkers($e,A._selector,[]);var pt=$e.uri.toString();A._listener[pt]&&(A._listener[pt].dispose(),delete A._listener[pt])};A._disposables.push(O.f.onDidCreateModel(ee)),A._disposables.push(O.f.onWillDisposeModel(de)),A._disposables.push(O.f.onDidChangeModelLanguage(function($e){de($e.model),ee($e.model)})),A._disposables.push({dispose:function(){for(var $e=0,pt=O.f.getModels();$e<pt.length;$e++){var it=pt[$e];de(it)}}});var De=function(){for(var $e=0,pt=O.f.getModels();$e<pt.length;$e++){var it=pt[$e];de(it),ee(it)}};return A._disposables.push(A._defaults.onDidChange(De)),A._disposables.push(A._defaults.onDidExtraLibsChange(De)),O.f.getModels().forEach(ee),A}return Q($,fe),$.prototype.dispose=function(){this._disposables.forEach(function(G){return G&&G.dispose()}),this._disposables=[]},$.prototype._doValidate=function(G){return y(this,void 0,void 0,function(){var z,J,Se,A,ee,de,De,$e,pt,it=this;return C(this,function(At){switch(At.label){case 0:return[4,this._worker(G.uri)];case 1:return z=At.sent(),G.isDisposed()?[2]:(J=[],Se=this._defaults.getDiagnosticsOptions(),A=Se.noSyntaxValidation,ee=Se.noSemanticValidation,de=Se.noSuggestionDiagnostics,A||J.push(z.getSyntacticDiagnostics(G.uri.toString())),ee||J.push(z.getSemanticDiagnostics(G.uri.toString())),de||J.push(z.getSuggestionDiagnostics(G.uri.toString())),[4,Promise.all(J)]);case 2:return!(De=At.sent())||G.isDisposed()?[2]:($e=De.reduce(function(Nt,_i){return _i.concat(Nt)},[]).filter(function(Nt){return(it._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(Nt.code)===-1}),pt=$e.map(function(Nt){return Nt.relatedInformation||[]}).reduce(function(Nt,_i){return _i.concat(Nt)},[]).map(function(Nt){return Nt.file?O.e.parse(Nt.file.fileName):null}),[4,this._libFiles.fetchLibFilesIfNecessary(pt)]);case 3:return At.sent(),G.isDisposed()?[2]:(O.f.setModelMarkers(G,this._selector,$e.map(function(Nt){return it._convertDiagnostics(G,Nt)})),[2])}})})},$.prototype._convertDiagnostics=function(G,z){var J=z.start||0,Se=z.length||1,A=G.getPositionAt(J),ee=A.lineNumber,de=A.column,De=G.getPositionAt(J+Se),$e=De.lineNumber,pt=De.column,it=[];return z.reportsUnnecessary&&it.push(O.c.Unnecessary),z.reportsDeprecated&&it.push(O.c.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(z.category),startLineNumber:ee,startColumn:de,endLineNumber:$e,endColumn:pt,message:S(z.messageText,` +`),code:z.code.toString(),tags:it,relatedInformation:this._convertRelatedInformation(G,z.relatedInformation)}},$.prototype._convertRelatedInformation=function(G,z){var J=this;if(z){var Se=[];return z.forEach(function(A){var ee=G;if(A.file){var de=O.e.parse(A.file.fileName);ee=J._libFiles.getOrCreateModel(de)}if(ee){var De=A.start||0,$e=A.length||1,pt=ee.getPositionAt(De),it=pt.lineNumber,At=pt.column,Nt=ee.getPositionAt(De+$e),_i=Nt.lineNumber,wt=Nt.column;Se.push({resource:ee.uri,startLineNumber:it,startColumn:At,endLineNumber:_i,endColumn:wt,message:S(A.messageText,` +`)})}}),Se}},$.prototype._tsDiagnosticCategoryToMarkerSeverity=function(G){switch(G){case V.Error:return O.b.Error;case V.Message:return O.b.Info;case V.Warning:return O.b.Warning;case V.Suggestion:return O.b.Hint}return O.b.Info},$}(k),N=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),Object.defineProperty($.prototype,"triggerCharacters",{get:function(){return["."]},enumerable:!1,configurable:!0}),$.prototype.provideCompletionItems=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,De,$e;return C(this,function(pt){switch(pt.label){case 0:return A=G.getWordUntilPosition(z),ee=new O.d(z.lineNumber,A.startColumn,z.lineNumber,A.endColumn),de=G.uri,De=G.getOffsetAt(z),[4,this._worker(de)];case 1:return[4,pt.sent().getCompletionsAtPosition(de.toString(),De)];case 2:return!($e=pt.sent())||G.isDisposed()?[2]:[2,{suggestions:$e.entries.map(function(it){var At,Nt=ee;if(it.replacementSpan){var _i=G.getPositionAt(it.replacementSpan.start),wt=G.getPositionAt(it.replacementSpan.start+it.replacementSpan.length);Nt=new O.d(_i.lineNumber,_i.column,wt.lineNumber,wt.column)}var Ni=[];return((At=it.kindModifiers)===null||At===void 0?void 0:At.indexOf("deprecated"))!==-1&&Ni.push(O.g.CompletionItemTag.Deprecated),{uri:de,position:z,offset:De,range:Nt,label:it.name,insertText:it.name,sortText:it.sortText,kind:$.convertKind(it.kind),tags:Ni}})}]}})})},$.prototype.resolveCompletionItem=function(G,z){return y(this,void 0,void 0,function(){var J,Se,A,ee,de;return C(this,function(De){switch(De.label){case 0:return Se=(J=G).uri,A=J.position,ee=J.offset,[4,this._worker(Se)];case 1:return[4,De.sent().getCompletionEntryDetails(Se.toString(),ee,J.label)];case 2:return(de=De.sent())?[2,{uri:Se,position:A,label:de.name,kind:$.convertKind(de.kind),detail:P(de.displayParts),documentation:{value:$.createDocumentationString(de)}}]:[2,J]}})})},$.convertKind=function(G){switch(G){case se.primitiveType:case se.keyword:return O.g.CompletionItemKind.Keyword;case se.variable:case se.localVariable:return O.g.CompletionItemKind.Variable;case se.memberVariable:case se.memberGetAccessor:case se.memberSetAccessor:return O.g.CompletionItemKind.Field;case se.function:case se.memberFunction:case se.constructSignature:case se.callSignature:case se.indexSignature:return O.g.CompletionItemKind.Function;case se.enum:return O.g.CompletionItemKind.Enum;case se.module:return O.g.CompletionItemKind.Module;case se.class:return O.g.CompletionItemKind.Class;case se.interface:return O.g.CompletionItemKind.Interface;case se.warning:return O.g.CompletionItemKind.File}return O.g.CompletionItemKind.Property},$.createDocumentationString=function(G){var z=P(G.documentation);if(G.tags)for(var J=0,Se=G.tags;J<Se.length;J++)z+=` -`+b(Se[J]);return z},$}(k);function b(fe){var $="*@"+fe.name+"*";if(fe.name==="param"&&fe.text){var G=fe.text.split(" "),z=G[0],J=G.slice(1);$+="`"+z+"`",J.length>0&&($+=" \u2014 "+J.join(" "))}else fe.text&&($+=" \u2014 "+fe.text);return $}var g=function(fe){function $(){var G=fe!==null&&fe.apply(this,arguments)||this;return G.signatureHelpTriggerCharacters=["(",","],G}return Q($,fe),$.prototype.provideSignatureHelp=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de;return C(this,function(Oe){switch(Oe.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,Oe.sent().getSignatureHelpItems(Se.toString(),A)];case 2:return!(ee=Oe.sent())||G.isDisposed()?[2]:(de={activeSignature:ee.selectedItemIndex,activeParameter:ee.argumentIndex,signatures:[]},ee.items.forEach(function($e){var pt={label:"",parameters:[]};pt.documentation={value:P($e.documentation)},pt.label+=P($e.prefixDisplayParts),$e.parameters.forEach(function(it,At,Nt){var _i=P(it.displayParts),wt={label:_i,documentation:{value:P(it.documentation)}};pt.label+=_i,pt.parameters.push(wt),At<Nt.length-1&&(pt.label+=P($e.separatorDisplayParts))}),pt.label+=P($e.suffixDisplayParts),de.signatures.push(pt)}),[2,{value:de,dispose:function(){}}])}})})},$}(k),j=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideHover=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de,Oe,$e;return C(this,function(pt){switch(pt.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,pt.sent().getQuickInfoAtPosition(Se.toString(),A)];case 2:return!(ee=pt.sent())||G.isDisposed()?[2]:(de=P(ee.documentation),Oe=ee.tags?ee.tags.map(function(it){return b(it)}).join(` +`+b(Se[J]);return z},$}(k);function b(fe){var $="*@"+fe.name+"*";if(fe.name==="param"&&fe.text){var G=fe.text.split(" "),z=G[0],J=G.slice(1);$+="`"+z+"`",J.length>0&&($+=" \u2014 "+J.join(" "))}else fe.text&&($+=" \u2014 "+fe.text);return $}var g=function(fe){function $(){var G=fe!==null&&fe.apply(this,arguments)||this;return G.signatureHelpTriggerCharacters=["(",","],G}return Q($,fe),$.prototype.provideSignatureHelp=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de;return C(this,function(De){switch(De.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,De.sent().getSignatureHelpItems(Se.toString(),A)];case 2:return!(ee=De.sent())||G.isDisposed()?[2]:(de={activeSignature:ee.selectedItemIndex,activeParameter:ee.argumentIndex,signatures:[]},ee.items.forEach(function($e){var pt={label:"",parameters:[]};pt.documentation={value:P($e.documentation)},pt.label+=P($e.prefixDisplayParts),$e.parameters.forEach(function(it,At,Nt){var _i=P(it.displayParts),wt={label:_i,documentation:{value:P(it.documentation)}};pt.label+=_i,pt.parameters.push(wt),At<Nt.length-1&&(pt.label+=P($e.separatorDisplayParts))}),pt.label+=P($e.suffixDisplayParts),de.signatures.push(pt)}),[2,{value:de,dispose:function(){}}])}})})},$}(k),j=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideHover=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de,De,$e;return C(this,function(pt){switch(pt.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,pt.sent().getQuickInfoAtPosition(Se.toString(),A)];case 2:return!(ee=pt.sent())||G.isDisposed()?[2]:(de=P(ee.documentation),De=ee.tags?ee.tags.map(function(it){return b(it)}).join(` -`):"",$e=P(ee.displayParts),[2,{range:this._textSpanToRange(G,ee.textSpan),contents:[{value:"```typescript\n"+$e+"\n```\n"},{value:de+(Oe?` +`):"",$e=P(ee.displayParts),[2,{range:this._textSpanToRange(G,ee.textSpan),contents:[{value:"```typescript\n"+$e+"\n```\n"},{value:de+(De?` -`+Oe:"")}]}])}})})},$}(k),ie=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentHighlights=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de=this;return C(this,function(Oe){switch(Oe.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,Oe.sent().getOccurrencesAtPosition(Se.toString(),A)];case 2:return!(ee=Oe.sent())||G.isDisposed()?[2]:[2,ee.map(function($e){return{range:de._textSpanToRange(G,$e.textSpan),kind:$e.isWriteAccess?D.g.DocumentHighlightKind.Write:D.g.DocumentHighlightKind.Text}})]}})})},$}(k),U=function(fe){function $(G,z){var J=fe.call(this,z)||this;return J._libFiles=G,J}return Q($,fe),$.prototype.provideDefinition=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de,Oe,$e,pt,it,At;return C(this,function(Nt){switch(Nt.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,Nt.sent().getDefinitionAtPosition(Se.toString(),A)];case 2:return!(ee=Nt.sent())||G.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(ee.map(function(_i){return D.e.parse(_i.fileName)}))];case 3:if(Nt.sent(),G.isDisposed())return[2];for(de=[],Oe=0,$e=ee;Oe<$e.length;Oe++)pt=$e[Oe],it=D.e.parse(pt.fileName),(At=this._libFiles.getOrCreateModel(it))&&de.push({uri:it,range:this._textSpanToRange(At,pt.textSpan)});return[2,de]}})})},$}(k),q=function(fe){function $(G,z){var J=fe.call(this,z)||this;return J._libFiles=G,J}return Q($,fe),$.prototype.provideReferences=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,Oe,$e,pt,it,At,Nt;return C(this,function(_i){switch(_i.label){case 0:return A=G.uri,ee=G.getOffsetAt(z),[4,this._worker(A)];case 1:return[4,_i.sent().getReferencesAtPosition(A.toString(),ee)];case 2:return!(de=_i.sent())||G.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(de.map(function(wt){return D.e.parse(wt.fileName)}))];case 3:if(_i.sent(),G.isDisposed())return[2];for(Oe=[],$e=0,pt=de;$e<pt.length;$e++)it=pt[$e],At=D.e.parse(it.fileName),(Nt=this._libFiles.getOrCreateModel(At))&&Oe.push({uri:At,range:this._textSpanToRange(Nt,it.textSpan)});return[2,Oe]}})})},$}(k),B=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentSymbols=function(G,z){return y(this,void 0,void 0,function(){var J,Se,A,ee,de=this;return C(this,function(Oe){switch(Oe.label){case 0:return J=G.uri,[4,this._worker(J)];case 1:return[4,Oe.sent().getNavigationBarItems(J.toString())];case 2:return!(Se=Oe.sent())||G.isDisposed()?[2]:(A=function($e,pt,it){var At={name:pt.text,detail:"",kind:ke[pt.kind]||D.g.SymbolKind.Variable,range:de._textSpanToRange(G,pt.spans[0]),selectionRange:de._textSpanToRange(G,pt.spans[0]),tags:[],containerName:it};if(pt.childItems&&pt.childItems.length>0)for(var Nt=0,_i=pt.childItems;Nt<_i.length;Nt++){var wt=_i[Nt];A($e,wt,At.name)}$e.push(At)},ee=[],Se.forEach(function($e){return A(ee,$e)}),[2,ee])}})})},$}(k),se=function(){function fe(){}return fe.unknown="",fe.keyword="keyword",fe.script="script",fe.module="module",fe.class="class",fe.interface="interface",fe.type="type",fe.enum="enum",fe.variable="var",fe.localVariable="local var",fe.function="function",fe.localFunction="local function",fe.memberFunction="method",fe.memberGetAccessor="getter",fe.memberSetAccessor="setter",fe.memberVariable="property",fe.constructorImplementation="constructor",fe.callSignature="call",fe.indexSignature="index",fe.constructSignature="construct",fe.parameter="parameter",fe.typeParameter="type parameter",fe.primitiveType="primitive type",fe.label="label",fe.alias="alias",fe.const="const",fe.let="let",fe.warning="warning",fe}(),ke=Object.create(null);ke[se.module]=D.g.SymbolKind.Module,ke[se.class]=D.g.SymbolKind.Class,ke[se.enum]=D.g.SymbolKind.Enum,ke[se.interface]=D.g.SymbolKind.Interface,ke[se.memberFunction]=D.g.SymbolKind.Method,ke[se.memberVariable]=D.g.SymbolKind.Property,ke[se.memberGetAccessor]=D.g.SymbolKind.Property,ke[se.memberSetAccessor]=D.g.SymbolKind.Property,ke[se.variable]=D.g.SymbolKind.Variable,ke[se.const]=D.g.SymbolKind.Variable,ke[se.localVariable]=D.g.SymbolKind.Variable,ke[se.variable]=D.g.SymbolKind.Variable,ke[se.function]=D.g.SymbolKind.Function,ke[se.localFunction]=D.g.SymbolKind.Function;var xe,Y,Z=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$._convertOptions=function(G){return{ConvertTabsToSpaces:G.insertSpaces,TabSize:G.tabSize,IndentSize:G.tabSize,IndentStyle:f.Smart,NewLineCharacter:` -`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}},$.prototype._convertTextChanges=function(G,z){return{text:z.newText,range:this._textSpanToRange(G,z.span)}},$}(k),te=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentRangeFormattingEdits=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,Oe,$e=this;return C(this,function(pt){switch(pt.label){case 0:return A=G.uri,ee=G.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),de=G.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn}),[4,this._worker(A)];case 1:return[4,pt.sent().getFormattingEditsForRange(A.toString(),ee,de,Z._convertOptions(J))];case 2:return!(Oe=pt.sent())||G.isDisposed()?[2]:[2,Oe.map(function(it){return $e._convertTextChanges(G,it)})]}})})},$}(Z),he=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),Object.defineProperty($.prototype,"autoFormatTriggerCharacters",{get:function(){return[";","}",` -`]},enumerable:!1,configurable:!0}),$.prototype.provideOnTypeFormattingEdits=function(G,z,J,Se,A){return y(this,void 0,void 0,function(){var ee,de,Oe,$e=this;return C(this,function(pt){switch(pt.label){case 0:return ee=G.uri,de=G.getOffsetAt(z),[4,this._worker(ee)];case 1:return[4,pt.sent().getFormattingEditsAfterKeystroke(ee.toString(),de,J,Z._convertOptions(Se))];case 2:return!(Oe=pt.sent())||G.isDisposed()?[2]:[2,Oe.map(function(it){return $e._convertTextChanges(G,it)})]}})})},$}(Z),Ce=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideCodeActions=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,Oe,$e,pt,it=this;return C(this,function(At){switch(At.label){case 0:return A=G.uri,ee=G.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),de=G.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn}),Oe=Z._convertOptions(G.getOptions()),$e=J.markers.filter(function(Nt){return Nt.code}).map(function(Nt){return Nt.code}).map(Number),[4,this._worker(A)];case 1:return[4,At.sent().getCodeFixesAtPosition(A.toString(),ee,de,$e,Oe)];case 2:return!(pt=At.sent())||G.isDisposed()?[2,{actions:[],dispose:function(){}}]:[2,{actions:pt.filter(function(Nt){return Nt.changes.filter(function(_i){return _i.isNewFile}).length===0}).map(function(Nt){return it._tsCodeFixActionToMonacoCodeAction(G,J,Nt)}),dispose:function(){}}]}})})},$.prototype._tsCodeFixActionToMonacoCodeAction=function(G,z,J){for(var Se=[],A=0,ee=J.changes;A<ee.length;A++)for(var de=0,Oe=ee[A].textChanges;de<Oe.length;de++){var $e=Oe[de];Se.push({resource:G.uri,edit:{range:this._textSpanToRange(G,$e.span),text:$e.newText}})}return{title:J.description,edit:{edits:Se},diagnostics:z.markers,kind:"quickfix"}},$}(Z),Ae=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideRenameEdits=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,Oe,$e,pt,it,At,Nt,_i;return C(this,function(wt){switch(wt.label){case 0:return A=G.uri,ee=A.toString(),de=G.getOffsetAt(z),[4,this._worker(A)];case 1:return[4,(Oe=wt.sent()).getRenameInfo(ee,de,{allowRenameOfImportPath:!1})];case 2:if(($e=wt.sent()).canRename===!1)return[2,{edits:[],rejectReason:$e.localizedErrorMessage}];if($e.fileToRename!==void 0)throw new Error("Renaming files is not supported.");return[4,Oe.findRenameLocations(ee,de,!1,!1,!1)];case 3:if(!(pt=wt.sent())||G.isDisposed())return[2];for(it=[],At=0,Nt=pt;At<Nt.length;At++)_i=Nt[At],it.push({resource:D.e.parse(_i.fileName),edit:{range:this._textSpanToRange(G,_i.textSpan),text:J}});return[2,{edits:it}]}})})},$}(k);function L(fe){Y=ht(fe,"typescript")}function nt(fe){xe=ht(fe,"javascript")}function ct(){return new Promise(function(fe,$){if(!xe)return $("JavaScript not registered!");fe(xe)})}function Ye(){return new Promise(function(fe,$){if(!Y)return $("TypeScript not registered!");fe(Y)})}function ht(fe,$){var G=new ge($,fe),z=function(){for(var Se=[],A=0;A<arguments.length;A++)Se[A]=arguments[A];return G.getLanguageServiceWorker.apply(G,Se)},J=new l(z);return D.g.registerCompletionItemProvider($,new N(z)),D.g.registerSignatureHelpProvider($,new g(z)),D.g.registerHoverProvider($,new j(z)),D.g.registerDocumentHighlightProvider($,new ie(z)),D.g.registerDefinitionProvider($,new U(J,z)),D.g.registerReferenceProvider($,new q(J,z)),D.g.registerDocumentSymbolProvider($,new B(z)),D.g.registerDocumentRangeFormattingEditProvider($,new te(z)),D.g.registerOnTypeFormattingEditProvider($,new he(z)),D.g.registerCodeActionProvider($,new Ce(z)),D.g.registerRenameProvider($,new Ae(z)),new T(J,fe,$,z),z}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"setupMode",function(){return xe});var h=o(59),f=function(){function he(Ce){var Ae=this;this._defaults=Ce,this._worker=null,this._idleCheckInterval=setInterval(function(){return Ae._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return Ae._stopWorker()})}return he.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},he.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},he.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},he.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},he.prototype.getLanguageServiceWorker=function(){for(var Ce,Ae=this,L=[],nt=0;nt<arguments.length;nt++)L[nt]=arguments[nt];return this._getClient().then(function(ct){Ce=ct}).then(function(ct){return Ae._worker.withSyncedResources(L)}).then(function(ct){return Ce})},he}(),D=o(38),H=function(){function he(Ce,Ae,L){var nt=this;this._languageId=Ce,this._worker=Ae,this._disposables=[],this._listener=Object.create(null);var ct=function(ht){var fe,$=ht.getModeId();$===nt._languageId&&(nt._listener[ht.uri.toString()]=ht.onDidChangeContent(function(){clearTimeout(fe),fe=setTimeout(function(){return nt._doValidate(ht.uri,$)},500)}),nt._doValidate(ht.uri,$))},Ye=function(ht){h.e.setModelMarkers(ht,nt._languageId,[]);var fe=ht.uri.toString(),$=nt._listener[fe];$&&($.dispose(),delete nt._listener[fe])};this._disposables.push(h.e.onDidCreateModel(ct)),this._disposables.push(h.e.onWillDisposeModel(function(ht){Ye(ht),nt._resetSchema(ht.uri)})),this._disposables.push(h.e.onDidChangeModelLanguage(function(ht){Ye(ht.model),ct(ht.model),nt._resetSchema(ht.model.uri)})),this._disposables.push(L.onDidChange(function(ht){h.e.getModels().forEach(function(fe){fe.getModeId()===nt._languageId&&(Ye(fe),ct(fe))})})),this._disposables.push({dispose:function(){for(var ht in h.e.getModels().forEach(Ye),nt._listener)nt._listener[ht].dispose()}}),h.e.getModels().forEach(ct)}return he.prototype.dispose=function(){this._disposables.forEach(function(Ce){return Ce&&Ce.dispose()}),this._disposables=[]},he.prototype._resetSchema=function(Ce){this._worker().then(function(Ae){Ae.resetSchema(Ce.toString())})},he.prototype._doValidate=function(Ce,Ae){this._worker(Ce).then(function(L){return L.doValidation(Ce.toString()).then(function(nt){var ct=nt.map(function(ht){return $=typeof(fe=ht).code=="number"?String(fe.code):fe.code,{severity:E(fe.severity),startLineNumber:fe.range.start.line+1,startColumn:fe.range.start.character+1,endLineNumber:fe.range.end.line+1,endColumn:fe.range.end.character+1,message:fe.message,code:$,source:fe.source};var fe,$}),Ye=h.e.getModel(Ce);Ye&&Ye.getModeId()===Ae&&h.e.setModelMarkers(Ye,Ae,ct)})}).then(void 0,function(L){console.error(L)})},he}();function E(he){switch(he){case D.b.Error:return h.b.Error;case D.b.Warning:return h.b.Warning;case D.b.Information:return h.b.Info;case D.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(he){if(he)return{character:he.column-1,line:he.lineNumber-1}}function W(he){if(he)return{start:{line:he.startLineNumber-1,character:he.startColumn-1},end:{line:he.endLineNumber-1,character:he.endColumn-1}}}function Q(he){if(he)return new h.c(he.start.line+1,he.start.character+1,he.end.line+1,he.end.character+1)}function y(he){var Ce=h.f.CompletionItemKind;switch(he){case D.a.Text:return Ce.Text;case D.a.Method:return Ce.Method;case D.a.Function:return Ce.Function;case D.a.Constructor:return Ce.Constructor;case D.a.Field:return Ce.Field;case D.a.Variable:return Ce.Variable;case D.a.Class:return Ce.Class;case D.a.Interface:return Ce.Interface;case D.a.Module:return Ce.Module;case D.a.Property:return Ce.Property;case D.a.Unit:return Ce.Unit;case D.a.Value:return Ce.Value;case D.a.Enum:return Ce.Enum;case D.a.Keyword:return Ce.Keyword;case D.a.Snippet:return Ce.Snippet;case D.a.Color:return Ce.Color;case D.a.File:return Ce.File;case D.a.Reference:return Ce.Reference}return Ce.Property}function C(he){if(he)return{range:Q(he.range),text:he.newText}}var S=function(){function he(Ce){this._worker=Ce}return Object.defineProperty(he.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),he.prototype.provideCompletionItems=function(Ce,Ae,L,nt){var ct=Ce.uri;return this._worker(ct).then(function(Ye){return Ye.doComplete(ct.toString(),ge(Ae))}).then(function(Ye){if(Ye){var ht=Ce.getWordUntilPosition(Ae),fe=new h.c(Ae.lineNumber,ht.startColumn,Ae.lineNumber,ht.endColumn),$=Ye.items.map(function(G){var z,J={label:G.label,insertText:G.insertText||G.label,sortText:G.sortText,filterText:G.filterText,documentation:G.documentation,detail:G.detail,range:fe,kind:y(G.kind)};return G.textEdit&&((z=G.textEdit).insert!==void 0&&z.replace!==void 0?J.range={insert:Q(G.textEdit.insert),replace:Q(G.textEdit.replace)}:J.range=Q(G.textEdit.range),J.insertText=G.textEdit.newText),G.additionalTextEdits&&(J.additionalTextEdits=G.additionalTextEdits.map(C)),G.insertTextFormat===D.d.Snippet&&(J.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),J});return{isIncomplete:Ye.isIncomplete,suggestions:$}}})},he}();function P(he){return typeof he=="string"?{value:he}:(Ce=he)&&typeof Ce=="object"&&typeof Ce.kind=="string"?he.kind==="plaintext"?{value:he.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:he.value}:{value:"```"+he.language+` -`+he.value+"\n```\n"};var Ce}function V(he){if(he)return Array.isArray(he)?he.map(P):[P(he)]}var k=function(){function he(Ce){this._worker=Ce}return he.prototype.provideHover=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.doHover(nt.toString(),ge(Ae))}).then(function(ct){if(ct)return{range:Q(ct.range),contents:V(ct.contents)}})},he}();function l(he){var Ce=h.f.SymbolKind;switch(he){case D.e.File:return Ce.Array;case D.e.Module:return Ce.Module;case D.e.Namespace:return Ce.Namespace;case D.e.Package:return Ce.Package;case D.e.Class:return Ce.Class;case D.e.Method:return Ce.Method;case D.e.Property:return Ce.Property;case D.e.Field:return Ce.Field;case D.e.Constructor:return Ce.Constructor;case D.e.Enum:return Ce.Enum;case D.e.Interface:return Ce.Interface;case D.e.Function:return Ce.Function;case D.e.Variable:return Ce.Variable;case D.e.Constant:return Ce.Constant;case D.e.String:return Ce.String;case D.e.Number:return Ce.Number;case D.e.Boolean:return Ce.Boolean;case D.e.Array:return Ce.Array}return Ce.Function}var T=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentSymbols=function(Ce,Ae){var L=Ce.uri;return this._worker(L).then(function(nt){return nt.findDocumentSymbols(L.toString())}).then(function(nt){if(nt)return nt.map(function(ct){return{name:ct.name,detail:"",containerName:ct.containerName,kind:l(ct.kind),range:Q(ct.location.range),selectionRange:Q(ct.location.range),tags:[]}})})},he}();function N(he){return{tabSize:he.tabSize,insertSpaces:he.insertSpaces}}var b=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentFormattingEdits=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.format(nt.toString(),null,N(Ae)).then(function(Ye){if(Ye&&Ye.length!==0)return Ye.map(C)})})},he}(),g=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentRangeFormattingEdits=function(Ce,Ae,L,nt){var ct=Ce.uri;return this._worker(ct).then(function(Ye){return Ye.format(ct.toString(),W(Ae),N(L)).then(function(ht){if(ht&&ht.length!==0)return ht.map(C)})})},he}(),j=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentColors=function(Ce,Ae){var L=Ce.uri;return this._worker(L).then(function(nt){return nt.findDocumentColors(L.toString())}).then(function(nt){if(nt)return nt.map(function(ct){return{color:ct.color,range:Q(ct.range)}})})},he.prototype.provideColorPresentations=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getColorPresentations(nt.toString(),Ae.color,W(Ae.range))}).then(function(ct){if(ct)return ct.map(function(Ye){var ht={label:Ye.label};return Ye.textEdit&&(ht.textEdit=C(Ye.textEdit)),Ye.additionalTextEdits&&(ht.additionalTextEdits=Ye.additionalTextEdits.map(C)),ht})})},he}(),ie=function(){function he(Ce){this._worker=Ce}return he.prototype.provideFoldingRanges=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getFoldingRanges(nt.toString(),Ae)}).then(function(ct){if(ct)return ct.map(function(Ye){var ht={start:Ye.startLine+1,end:Ye.endLine+1};return Ye.kind!==void 0&&(ht.kind=function(fe){switch(fe){case D.c.Comment:return h.f.FoldingRangeKind.Comment;case D.c.Imports:return h.f.FoldingRangeKind.Imports;case D.c.Region:return h.f.FoldingRangeKind.Region}}(Ye.kind)),ht})})},he}(),U=function(){function he(Ce){this._worker=Ce}return he.prototype.provideSelectionRanges=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getSelectionRanges(nt.toString(),Ae.map(ge))}).then(function(ct){if(ct)return ct.map(function(Ye){for(var ht=[];Ye;)ht.push({range:Q(Ye.range)}),Ye=Ye.parent;return ht})})},he}(),q=o(65);function B(he){return{getInitialState:function(){return new ke(null,null,!1,null)},tokenize:function(Ce,Ae,L,nt){return function(ct,Ye,ht,fe,$){fe===void 0&&(fe=0);var G=0,z=!1;switch(ht.scanError){case 2:Ye='"'+Ye,G=1;break;case 1:Ye="/*"+Ye,G=2}for(var J=q.a(Ye),Se=ht.lastWasColon,A=ht.parents,ee={tokens:[],endState:ht.clone()};;){var de=fe+J.getPosition(),Oe="",$e=J.scan();if($e===17)break;if(de===fe+J.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+Ye.substr(J.getPosition(),3));switch(z&&(de-=G),z=G>0,$e){case 1:A=se.push(A,0),Oe="delimiter.bracket.json",Se=!1;break;case 2:A=se.pop(A),Oe="delimiter.bracket.json",Se=!1;break;case 3:A=se.push(A,1),Oe="delimiter.array.json",Se=!1;break;case 4:A=se.pop(A),Oe="delimiter.array.json",Se=!1;break;case 6:Oe="delimiter.colon.json",Se=!0;break;case 5:Oe="delimiter.comma.json",Se=!1;break;case 8:case 9:case 7:Oe="keyword.json",Se=!1;break;case 10:var pt=(A?A.type:0)===1;Oe=Se||pt?"string.value.json":"string.key.json",Se=!1;break;case 11:Oe="number.json",Se=!1}if(ct)switch($e){case 12:Oe="comment.line.json";break;case 13:Oe="comment.block.json"}ee.endState=new ke(ht.getStateData(),J.getTokenError(),Se,A),ee.tokens.push({startIndex:de,scopes:Oe})}return ee}(he,Ce,Ae,L)}}}var se=function(){function he(Ce,Ae){this.parent=Ce,this.type=Ae}return he.pop=function(Ce){return Ce?Ce.parent:null},he.push=function(Ce,Ae){return new he(Ce,Ae)},he.equals=function(Ce,Ae){if(!Ce&&!Ae)return!0;if(!Ce||!Ae)return!1;for(;Ce&&Ae;){if(Ce===Ae)return!0;if(Ce.type!==Ae.type)return!1;Ce=Ce.parent,Ae=Ae.parent}return!0},he}(),ke=function(){function he(Ce,Ae,L,nt){this._state=Ce,this.scanError=Ae,this.lastWasColon=L,this.parents=nt}return he.prototype.clone=function(){return new he(this._state,this.scanError,this.lastWasColon,this.parents)},he.prototype.equals=function(Ce){return Ce===this||!!(Ce&&Ce instanceof he)&&this.scanError===Ce.scanError&&this.lastWasColon===Ce.lastWasColon&&se.equals(this.parents,Ce.parents)},he.prototype.getStateData=function(){return this._state},he.prototype.setStateData=function(Ce){this._state=Ce},he}();function xe(he){var Ce=[],Ae=[],L=new f(he);Ce.push(L);var nt=function(){for(var ht=[],fe=0;fe<arguments.length;fe++)ht[fe]=arguments[fe];return L.getLanguageServiceWorker.apply(L,ht)};function ct(){var ht=he.languageId,fe=he.modeConfiguration;Z(Ae),fe.documentFormattingEdits&&Ae.push(h.f.registerDocumentFormattingEditProvider(ht,new b(nt))),fe.documentRangeFormattingEdits&&Ae.push(h.f.registerDocumentRangeFormattingEditProvider(ht,new g(nt))),fe.completionItems&&Ae.push(h.f.registerCompletionItemProvider(ht,new S(nt))),fe.hovers&&Ae.push(h.f.registerHoverProvider(ht,new k(nt))),fe.documentSymbols&&Ae.push(h.f.registerDocumentSymbolProvider(ht,new T(nt))),fe.tokens&&Ae.push(h.f.setTokensProvider(ht,B(!0))),fe.colors&&Ae.push(h.f.registerColorProvider(ht,new j(nt))),fe.foldingRanges&&Ae.push(h.f.registerFoldingRangeProvider(ht,new ie(nt))),fe.diagnostics&&Ae.push(new H(ht,nt,he)),fe.selectionRanges&&Ae.push(h.f.registerSelectionRangeProvider(ht,new U(nt)))}ct(),Ce.push(h.f.setLanguageConfiguration(he.languageId,te));var Ye=he.modeConfiguration;return he.onDidChange(function(ht){ht.modeConfiguration!==Ye&&(Ye=ht.modeConfiguration,ct())}),Ce.push(Y(Ae)),Y(Ce)}function Y(he){return{dispose:function(){return Z(he)}}}function Z(he){for(;he.length;)he.pop().dispose()}var te={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"setupMode",function(){return se});var h=o(52),f=function(){function Y(Z){var te=this;this._defaults=Z,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return te._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return te._stopWorker()})}return Y.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},Y.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},Y.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},Y.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},Y.prototype.getLanguageServiceWorker=function(){for(var Z,te=this,he=[],Ce=0;Ce<arguments.length;Ce++)he[Ce]=arguments[Ce];return this._getClient().then(function(Ae){Z=Ae}).then(function(Ae){return te._worker.withSyncedResources(he)}).then(function(Ae){return Z})},Y}(),D=o(48),H=function(){function Y(Z,te,he){var Ce=this;this._languageId=Z,this._worker=te,this._disposables=[],this._listener=Object.create(null);var Ae=function(nt){var ct,Ye=nt.getModeId();Ye===Ce._languageId&&(Ce._listener[nt.uri.toString()]=nt.onDidChangeContent(function(){window.clearTimeout(ct),ct=window.setTimeout(function(){return Ce._doValidate(nt.uri,Ye)},500)}),Ce._doValidate(nt.uri,Ye))},L=function(nt){h.e.setModelMarkers(nt,Ce._languageId,[]);var ct=nt.uri.toString(),Ye=Ce._listener[ct];Ye&&(Ye.dispose(),delete Ce._listener[ct])};this._disposables.push(h.e.onDidCreateModel(Ae)),this._disposables.push(h.e.onWillDisposeModel(L)),this._disposables.push(h.e.onDidChangeModelLanguage(function(nt){L(nt.model),Ae(nt.model)})),he.onDidChange(function(nt){h.e.getModels().forEach(function(ct){ct.getModeId()===Ce._languageId&&(L(ct),Ae(ct))})}),this._disposables.push({dispose:function(){for(var nt in Ce._listener)Ce._listener[nt].dispose()}}),h.e.getModels().forEach(Ae)}return Y.prototype.dispose=function(){this._disposables.forEach(function(Z){return Z&&Z.dispose()}),this._disposables=[]},Y.prototype._doValidate=function(Z,te){this._worker(Z).then(function(he){return he.doValidation(Z.toString())}).then(function(he){var Ce=he.map(function(L){return ct=typeof(nt=L).code=="number"?String(nt.code):nt.code,{severity:E(nt.severity),startLineNumber:nt.range.start.line+1,startColumn:nt.range.start.character+1,endLineNumber:nt.range.end.line+1,endColumn:nt.range.end.character+1,message:nt.message,code:ct,source:nt.source};var nt,ct}),Ae=h.e.getModel(Z);Ae.getModeId()===te&&h.e.setModelMarkers(Ae,te,Ce)}).then(void 0,function(he){console.error(he)})},Y}();function E(Y){switch(Y){case D.b.Error:return h.b.Error;case D.b.Warning:return h.b.Warning;case D.b.Information:return h.b.Info;case D.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(Y){if(Y)return{character:Y.column-1,line:Y.lineNumber-1}}function W(Y){if(Y)return new h.c(Y.start.line+1,Y.start.character+1,Y.end.line+1,Y.end.character+1)}function Q(Y){var Z=h.f.CompletionItemKind;switch(Y){case D.a.Text:return Z.Text;case D.a.Method:return Z.Method;case D.a.Function:return Z.Function;case D.a.Constructor:return Z.Constructor;case D.a.Field:return Z.Field;case D.a.Variable:return Z.Variable;case D.a.Class:return Z.Class;case D.a.Interface:return Z.Interface;case D.a.Module:return Z.Module;case D.a.Property:return Z.Property;case D.a.Unit:return Z.Unit;case D.a.Value:return Z.Value;case D.a.Enum:return Z.Enum;case D.a.Keyword:return Z.Keyword;case D.a.Snippet:return Z.Snippet;case D.a.Color:return Z.Color;case D.a.File:return Z.File;case D.a.Reference:return Z.Reference}return Z.Property}function y(Y){if(Y)return{range:W(Y.range),text:Y.newText}}var C=function(){function Y(Z){this._worker=Z}return Object.defineProperty(Y.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),Y.prototype.provideCompletionItems=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.doComplete(Ae.toString(),ge(te))}).then(function(L){if(L){var nt=Z.getWordUntilPosition(te),ct=new h.c(te.lineNumber,nt.startColumn,te.lineNumber,nt.endColumn),Ye=L.items.map(function(ht){var fe,$={label:ht.label,insertText:ht.insertText||ht.label,sortText:ht.sortText,filterText:ht.filterText,documentation:ht.documentation,detail:ht.detail,range:ct,kind:Q(ht.kind)};return ht.textEdit&&((fe=ht.textEdit).insert!==void 0&&fe.replace!==void 0?$.range={insert:W(ht.textEdit.insert),replace:W(ht.textEdit.replace)}:$.range=W(ht.textEdit.range),$.insertText=ht.textEdit.newText),ht.additionalTextEdits&&($.additionalTextEdits=ht.additionalTextEdits.map(y)),ht.insertTextFormat===D.e.Snippet&&($.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),$});return{isIncomplete:L.isIncomplete,suggestions:Ye}}})},Y}();function S(Y){return typeof Y=="string"?{value:Y}:(Z=Y)&&typeof Z=="object"&&typeof Z.kind=="string"?Y.kind==="plaintext"?{value:Y.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:Y.value}:{value:"```"+Y.language+` -`+Y.value+"\n```\n"};var Z}function P(Y){if(Y)return Array.isArray(Y)?Y.map(S):[S(Y)]}var V=function(){function Y(Z){this._worker=Z}return Y.prototype.provideHover=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.doHover(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return{range:W(Ae.range),contents:P(Ae.contents)}})},Y}();function k(Y){switch(Y){case D.c.Read:return h.f.DocumentHighlightKind.Read;case D.c.Write:return h.f.DocumentHighlightKind.Write;case D.c.Text:return h.f.DocumentHighlightKind.Text}return h.f.DocumentHighlightKind.Text}var l=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentHighlights=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentHighlights(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return Ae.map(function(L){return{range:W(L.range),kind:k(L.kind)}})})},Y}();function T(Y){return{uri:h.d.parse(Y.uri),range:W(Y.range)}}var N=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDefinition=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.findDefinition(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return[T(Ae)]})},Y}(),b=function(){function Y(Z){this._worker=Z}return Y.prototype.provideReferences=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.findReferences(Ae.toString(),ge(te))}).then(function(L){if(L)return L.map(T)})},Y}(),g=function(){function Y(Z){this._worker=Z}return Y.prototype.provideRenameEdits=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.doRename(Ae.toString(),ge(te),he)}).then(function(L){return function(nt){if(nt&&nt.changes){var ct=[];for(var Ye in nt.changes)for(var ht=h.d.parse(Ye),fe=0,$=nt.changes[Ye];fe<$.length;fe++){var G=$[fe];ct.push({resource:ht,edit:{range:W(G.range),text:G.newText}})}return{edits:ct}}}(L)})},Y}();function j(Y){var Z=h.f.SymbolKind;switch(Y){case D.f.File:return Z.Array;case D.f.Module:return Z.Module;case D.f.Namespace:return Z.Namespace;case D.f.Package:return Z.Package;case D.f.Class:return Z.Class;case D.f.Method:return Z.Method;case D.f.Property:return Z.Property;case D.f.Field:return Z.Field;case D.f.Constructor:return Z.Constructor;case D.f.Enum:return Z.Enum;case D.f.Interface:return Z.Interface;case D.f.Function:return Z.Function;case D.f.Variable:return Z.Variable;case D.f.Constant:return Z.Constant;case D.f.String:return Z.String;case D.f.Number:return Z.Number;case D.f.Boolean:return Z.Boolean;case D.f.Array:return Z.Array}return Z.Function}var ie=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentSymbols=function(Z,te){var he=Z.uri;return this._worker(he).then(function(Ce){return Ce.findDocumentSymbols(he.toString())}).then(function(Ce){if(Ce)return Ce.map(function(Ae){return{name:Ae.name,detail:"",containerName:Ae.containerName,kind:j(Ae.kind),tags:[],range:W(Ae.location.range),selectionRange:W(Ae.location.range)}})})},Y}(),U=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentColors=function(Z,te){var he=Z.uri;return this._worker(he).then(function(Ce){return Ce.findDocumentColors(he.toString())}).then(function(Ce){if(Ce)return Ce.map(function(Ae){return{color:Ae.color,range:W(Ae.range)}})})},Y.prototype.provideColorPresentations=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getColorPresentations(Ce.toString(),te.color,function(L){if(L)return{start:{line:L.startLineNumber-1,character:L.startColumn-1},end:{line:L.endLineNumber-1,character:L.endColumn-1}}}(te.range))}).then(function(Ae){if(Ae)return Ae.map(function(L){var nt={label:L.label};return L.textEdit&&(nt.textEdit=y(L.textEdit)),L.additionalTextEdits&&(nt.additionalTextEdits=L.additionalTextEdits.map(y)),nt})})},Y}(),q=function(){function Y(Z){this._worker=Z}return Y.prototype.provideFoldingRanges=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getFoldingRanges(Ce.toString(),te)}).then(function(Ae){if(Ae)return Ae.map(function(L){var nt={start:L.startLine+1,end:L.endLine+1};return L.kind!==void 0&&(nt.kind=function(ct){switch(ct){case D.d.Comment:return h.f.FoldingRangeKind.Comment;case D.d.Imports:return h.f.FoldingRangeKind.Imports;case D.d.Region:return h.f.FoldingRangeKind.Region}}(L.kind)),nt})})},Y}(),B=function(){function Y(Z){this._worker=Z}return Y.prototype.provideSelectionRanges=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getSelectionRanges(Ce.toString(),te.map(ge))}).then(function(Ae){if(Ae)return Ae.map(function(L){for(var nt=[];L;)nt.push({range:W(L.range)}),L=L.parent;return nt})})},Y}();function se(Y){var Z=[],te=[],he=new f(Y);Z.push(he);var Ce,Ae,L=function(){for(var nt=[],ct=0;ct<arguments.length;ct++)nt[ct]=arguments[ct];return he.getLanguageServiceWorker.apply(he,nt)};return Ce=Y.languageId,Ae=Y.modeConfiguration,xe(te),Ae.completionItems&&te.push(h.f.registerCompletionItemProvider(Ce,new C(L))),Ae.hovers&&te.push(h.f.registerHoverProvider(Ce,new V(L))),Ae.documentHighlights&&te.push(h.f.registerDocumentHighlightProvider(Ce,new l(L))),Ae.definitions&&te.push(h.f.registerDefinitionProvider(Ce,new N(L))),Ae.references&&te.push(h.f.registerReferenceProvider(Ce,new b(L))),Ae.documentSymbols&&te.push(h.f.registerDocumentSymbolProvider(Ce,new ie(L))),Ae.rename&&te.push(h.f.registerRenameProvider(Ce,new g(L))),Ae.colors&&te.push(h.f.registerColorProvider(Ce,new U(L))),Ae.foldingRanges&&te.push(h.f.registerFoldingRangeProvider(Ce,new q(L))),Ae.diagnostics&&te.push(new H(Ce,L,Y)),Ae.selectionRanges&&te.push(h.f.registerSelectionRangeProvider(Ce,new B(L))),Z.push(ke(te)),ke(Z)}function ke(Y){return{dispose:function(){return xe(Y)}}}function xe(Y){for(;Y.length;)Y.pop().dispose()}},function(Ie,w,o){"use strict";o.r(w),o.d(w,"setupMode1",function(){return se}),o.d(w,"setupMode",function(){return ke});var h=o(47),f=function(){function Z(te){var he=this;this._defaults=te,this._worker=null,this._idleCheckInterval=setInterval(function(){return he._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return he._stopWorker()})}return Z.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},Z.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},Z.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},Z.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},Z.prototype.getLanguageServiceWorker=function(){for(var te,he=this,Ce=[],Ae=0;Ae<arguments.length;Ae++)Ce[Ae]=arguments[Ae];return this._getClient().then(function(L){te=L}).then(function(L){return he._worker.withSyncedResources(Ce)}).then(function(L){return te})},Z}(),D=o(31),H=function(){function Z(te,he,Ce){var Ae=this;this._languageId=te,this._worker=he,this._disposables=[],this._listener=Object.create(null);var L=function(ct){var Ye,ht=ct.getModeId();ht===Ae._languageId&&(Ae._listener[ct.uri.toString()]=ct.onDidChangeContent(function(){clearTimeout(Ye),Ye=setTimeout(function(){return Ae._doValidate(ct.uri,ht)},500)}),Ae._doValidate(ct.uri,ht))},nt=function(ct){h.e.setModelMarkers(ct,Ae._languageId,[]);var Ye=ct.uri.toString(),ht=Ae._listener[Ye];ht&&(ht.dispose(),delete Ae._listener[Ye])};this._disposables.push(h.e.onDidCreateModel(L)),this._disposables.push(h.e.onWillDisposeModel(function(ct){nt(ct)})),this._disposables.push(h.e.onDidChangeModelLanguage(function(ct){nt(ct.model),L(ct.model)})),this._disposables.push(Ce.onDidChange(function(ct){h.e.getModels().forEach(function(Ye){Ye.getModeId()===Ae._languageId&&(nt(Ye),L(Ye))})})),this._disposables.push({dispose:function(){for(var ct in Ae._listener)Ae._listener[ct].dispose()}}),h.e.getModels().forEach(L)}return Z.prototype.dispose=function(){this._disposables.forEach(function(te){return te&&te.dispose()}),this._disposables=[]},Z.prototype._doValidate=function(te,he){this._worker(te).then(function(Ce){return Ce.doValidation(te.toString()).then(function(Ae){var L=Ae.map(function(nt){return Ye=typeof(ct=nt).code=="number"?String(ct.code):ct.code,{severity:E(ct.severity),startLineNumber:ct.range.start.line+1,startColumn:ct.range.start.character+1,endLineNumber:ct.range.end.line+1,endColumn:ct.range.end.character+1,message:ct.message,code:Ye,source:ct.source};var ct,Ye});h.e.setModelMarkers(h.e.getModel(te),he,L)})}).then(void 0,function(Ce){console.error(Ce)})},Z}();function E(Z){switch(Z){case D.b.Error:return h.b.Error;case D.b.Warning:return h.b.Warning;case D.b.Information:return h.b.Info;case D.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(Z){if(Z)return{character:Z.column-1,line:Z.lineNumber-1}}function W(Z){if(Z)return new h.c(Z.start.line+1,Z.start.character+1,Z.end.line+1,Z.end.character+1)}function Q(Z){var te=h.f.CompletionItemKind;switch(Z){case D.a.Text:return te.Text;case D.a.Method:return te.Method;case D.a.Function:return te.Function;case D.a.Constructor:return te.Constructor;case D.a.Field:return te.Field;case D.a.Variable:return te.Variable;case D.a.Class:return te.Class;case D.a.Interface:return te.Interface;case D.a.Module:return te.Module;case D.a.Property:return te.Property;case D.a.Unit:return te.Unit;case D.a.Value:return te.Value;case D.a.Enum:return te.Enum;case D.a.Keyword:return te.Keyword;case D.a.Snippet:return te.Snippet;case D.a.Color:return te.Color;case D.a.File:return te.File;case D.a.Reference:return te.Reference}return te.Property}function y(Z){if(Z)return{range:W(Z.range),text:Z.newText}}var C=function(){function Z(te){this._worker=te}return Object.defineProperty(Z.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),Z.prototype.provideCompletionItems=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.doComplete(L.toString(),ge(he))}).then(function(nt){if(nt){var ct=te.getWordUntilPosition(he),Ye=new h.c(he.lineNumber,ct.startColumn,he.lineNumber,ct.endColumn),ht=nt.items.map(function(fe){var $,G={label:fe.label,insertText:fe.insertText||fe.label,sortText:fe.sortText,filterText:fe.filterText,documentation:fe.documentation,detail:fe.detail,range:Ye,kind:Q(fe.kind)};return fe.textEdit&&(($=fe.textEdit).insert!==void 0&&$.replace!==void 0?G.range={insert:W(fe.textEdit.insert),replace:W(fe.textEdit.replace)}:G.range=W(fe.textEdit.range),G.insertText=fe.textEdit.newText),fe.additionalTextEdits&&(G.additionalTextEdits=fe.additionalTextEdits.map(y)),fe.insertTextFormat===D.e.Snippet&&(G.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),G});return{isIncomplete:nt.isIncomplete,suggestions:ht}}})},Z}();function S(Z){return typeof Z=="string"?{value:Z}:(te=Z)&&typeof te=="object"&&typeof te.kind=="string"?Z.kind==="plaintext"?{value:Z.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:Z.value}:{value:"```"+Z.language+` -`+Z.value+"\n```\n"};var te}function P(Z){if(Z)return Array.isArray(Z)?Z.map(S):[S(Z)]}var V=function(){function Z(te){this._worker=te}return Z.prototype.provideHover=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.doHover(Ae.toString(),ge(he))}).then(function(L){if(L)return{range:W(L.range),contents:P(L.contents)}})},Z}();function k(Z){var te=h.f.DocumentHighlightKind;switch(Z){case D.c.Read:return te.Read;case D.c.Write:return te.Write;case D.c.Text:return te.Text}return te.Text}var l=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentHighlights=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.findDocumentHighlights(Ae.toString(),ge(he))}).then(function(L){if(L)return L.map(function(nt){return{range:W(nt.range),kind:k(nt.kind)}})})},Z}();function T(Z){var te=h.f.SymbolKind;switch(Z){case D.f.File:return te.Array;case D.f.Module:return te.Module;case D.f.Namespace:return te.Namespace;case D.f.Package:return te.Package;case D.f.Class:return te.Class;case D.f.Method:return te.Method;case D.f.Property:return te.Property;case D.f.Field:return te.Field;case D.f.Constructor:return te.Constructor;case D.f.Enum:return te.Enum;case D.f.Interface:return te.Interface;case D.f.Function:return te.Function;case D.f.Variable:return te.Variable;case D.f.Constant:return te.Constant;case D.f.String:return te.String;case D.f.Number:return te.Number;case D.f.Boolean:return te.Boolean;case D.f.Array:return te.Array}return te.Function}var N=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentSymbols=function(te,he){var Ce=te.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentSymbols(Ce.toString())}).then(function(Ae){if(Ae)return Ae.map(function(L){return{name:L.name,detail:"",containerName:L.containerName,kind:T(L.kind),tags:[],range:W(L.location.range),selectionRange:W(L.location.range)}})})},Z}(),b=function(){function Z(te){this._worker=te}return Z.prototype.provideLinks=function(te,he){var Ce=te.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentLinks(Ce.toString())}).then(function(Ae){if(Ae)return{links:Ae.map(function(L){return{range:W(L.range),url:L.target}})}})},Z}();function g(Z){return{tabSize:Z.tabSize,insertSpaces:Z.insertSpaces}}var j=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentFormattingEdits=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.format(Ae.toString(),null,g(he)).then(function(nt){if(nt&&nt.length!==0)return nt.map(y)})})},Z}(),ie=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentRangeFormattingEdits=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.format(L.toString(),function(ct){if(ct)return{start:ge(ct.getStartPosition()),end:ge(ct.getEndPosition())}}(he),g(Ce)).then(function(ct){if(ct&&ct.length!==0)return ct.map(y)})})},Z}(),U=function(){function Z(te){this._worker=te}return Z.prototype.provideRenameEdits=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.doRename(L.toString(),ge(he),Ce)}).then(function(nt){return function(ct){if(!(!ct||!ct.changes)){var Ye=[];for(var ht in ct.changes)for(var fe=h.d.parse(ht),$=0,G=ct.changes[ht];$<G.length;$++){var z=G[$];Ye.push({resource:fe,edit:{range:W(z.range),text:z.newText}})}return{edits:Ye}}}(nt)})},Z}(),q=function(){function Z(te){this._worker=te}return Z.prototype.provideFoldingRanges=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.getFoldingRanges(Ae.toString(),he)}).then(function(L){if(L)return L.map(function(nt){var ct={start:nt.startLine+1,end:nt.endLine+1};return nt.kind!==void 0&&(ct.kind=function(Ye){switch(Ye){case D.d.Comment:return h.f.FoldingRangeKind.Comment;case D.d.Imports:return h.f.FoldingRangeKind.Imports;case D.d.Region:return h.f.FoldingRangeKind.Region}}(nt.kind)),ct})})},Z}(),B=function(){function Z(te){this._worker=te}return Z.prototype.provideSelectionRanges=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.getSelectionRanges(Ae.toString(),he.map(ge))}).then(function(L){if(L)return L.map(function(nt){for(var ct=[];nt;)ct.push({range:W(nt.range)}),nt=nt.parent;return ct})})},Z}();function se(Z){var te=new f(Z),he=function(){for(var Ae=[],L=0;L<arguments.length;L++)Ae[L]=arguments[L];return te.getLanguageServiceWorker.apply(te,Ae)},Ce=Z.languageId;h.f.registerCompletionItemProvider(Ce,new C(he)),h.f.registerHoverProvider(Ce,new V(he)),h.f.registerDocumentHighlightProvider(Ce,new l(he)),h.f.registerLinkProvider(Ce,new b(he)),h.f.registerFoldingRangeProvider(Ce,new q(he)),h.f.registerDocumentSymbolProvider(Ce,new N(he)),h.f.registerSelectionRangeProvider(Ce,new B(he)),h.f.registerRenameProvider(Ce,new U(he)),Ce==="html"&&(h.f.registerDocumentFormattingEditProvider(Ce,new j(he)),h.f.registerDocumentRangeFormattingEditProvider(Ce,new ie(he)),new H(Ce,he,Z))}function ke(Z){var te=[],he=[],Ce=new f(Z);te.push(Ce);var Ae,L,nt=function(){for(var ct=[],Ye=0;Ye<arguments.length;Ye++)ct[Ye]=arguments[Ye];return Ce.getLanguageServiceWorker.apply(Ce,ct)};return Ae=Z.languageId,L=Z.modeConfiguration,Y(he),L.completionItems&&he.push(h.f.registerCompletionItemProvider(Ae,new C(nt))),L.hovers&&he.push(h.f.registerHoverProvider(Ae,new V(nt))),L.documentHighlights&&he.push(h.f.registerDocumentHighlightProvider(Ae,new l(nt))),L.links&&he.push(h.f.registerLinkProvider(Ae,new b(nt))),L.documentSymbols&&he.push(h.f.registerDocumentSymbolProvider(Ae,new N(nt))),L.rename&&he.push(h.f.registerRenameProvider(Ae,new U(nt))),L.foldingRanges&&he.push(h.f.registerFoldingRangeProvider(Ae,new q(nt))),L.selectionRanges&&he.push(h.f.registerSelectionRangeProvider(Ae,new B(nt))),L.documentFormattingEdits&&he.push(h.f.registerDocumentFormattingEditProvider(Ae,new j(nt))),L.documentRangeFormattingEdits&&he.push(h.f.registerDocumentRangeFormattingEditProvider(Ae,new ie(nt))),L.diagnostics&&he.push(new H(Ae,nt,Z)),te.push(xe(he)),xe(te)}function xe(Z){return{dispose:function(){return Y(Z)}}}function Y(Z){for(;Z.length;)Z.pop().dispose()}}]);var id=new URL("monaco/workers/",import.meta.url);self.MonacoEnvironment={getWorkerUrl:function(Ie,w){switch(w){case"json":return`${id}json.worker.js`;case"css":return`${id}css.worker.js`;case"html":return`${id}html.worker.js`;case"typescript":case"javascript":return`${id}ts.worker.js`;default:return`${id}editor.worker.js`}}};var Em=class extends HTMLElement{static get observedAttributes(){return["src","value"]}attributeChangedCallback(w,o,h){!this.__initialized||o!==h&&(this[w]=h)}get src(){return this.getAttribute("src")}set src(w){this.setAttribute("src",w),this.setSrc()}get value(){return this.editor.getValue()}set value(w){this.editor.setValue(w)}get tabSize(){return this.editor.getModel()._options.tabSize}set tabSize(w){this.editor.getModel().updateOptions({tabSize:w})}constructor(){super();this.__initialized=!1,this.editor=null}async connectedCallback(){if(this.style.display="block",this.id||(this.id="editor"),this.style.width||(this.style.width="100%"),this.style.height||(this.style.height="100%"),this.hasAttribute("config")){let w=await this.fetchConfig(this.getAttribute("config"));this.editor=monaco.editor.create(document.getElementById(this.id),w)}else this.editor=monaco.editor.create(document.getElementById(this.id),{language:this.getAttribute("language"),theme:"vs-dark",automaticLayout:!0,lineNumbersMinChars:3,mouseWheelZoom:!0,fontSize:this.getAttribute("font-size"),minimap:{enabled:!this.hasAttribute("no-minimap")},wordWrap:this.hasAttribute("word-wrap"),wrappingIndent:this.getAttribute("wrap-indent")});this.hasAttribute("tab-size")&&(this.tabSize=this.getAttribute("tab-size")),this.hasAttribute("src")&&this.setSrc(),this.__initialized=!0}async setSrc(){let w=this.getAttribute("src"),o=await this.fetchSrc(w);this.editor.setValue(o)}async fetchSrc(w){return(await fetch(w)).text()}async fetchConfig(w){return(await fetch(w)).json()}};customElements.define("wc-monaco-editor",Em);export{Em as WCMonacoEditor}; +`+De:"")}]}])}})})},$}(k),ie=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentHighlights=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de=this;return C(this,function(De){switch(De.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,De.sent().getOccurrencesAtPosition(Se.toString(),A)];case 2:return!(ee=De.sent())||G.isDisposed()?[2]:[2,ee.map(function($e){return{range:de._textSpanToRange(G,$e.textSpan),kind:$e.isWriteAccess?O.g.DocumentHighlightKind.Write:O.g.DocumentHighlightKind.Text}})]}})})},$}(k),U=function(fe){function $(G,z){var J=fe.call(this,z)||this;return J._libFiles=G,J}return Q($,fe),$.prototype.provideDefinition=function(G,z,J){return y(this,void 0,void 0,function(){var Se,A,ee,de,De,$e,pt,it,At;return C(this,function(Nt){switch(Nt.label){case 0:return Se=G.uri,A=G.getOffsetAt(z),[4,this._worker(Se)];case 1:return[4,Nt.sent().getDefinitionAtPosition(Se.toString(),A)];case 2:return!(ee=Nt.sent())||G.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(ee.map(function(_i){return O.e.parse(_i.fileName)}))];case 3:if(Nt.sent(),G.isDisposed())return[2];for(de=[],De=0,$e=ee;De<$e.length;De++)pt=$e[De],it=O.e.parse(pt.fileName),(At=this._libFiles.getOrCreateModel(it))&&de.push({uri:it,range:this._textSpanToRange(At,pt.textSpan)});return[2,de]}})})},$}(k),q=function(fe){function $(G,z){var J=fe.call(this,z)||this;return J._libFiles=G,J}return Q($,fe),$.prototype.provideReferences=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,De,$e,pt,it,At,Nt;return C(this,function(_i){switch(_i.label){case 0:return A=G.uri,ee=G.getOffsetAt(z),[4,this._worker(A)];case 1:return[4,_i.sent().getReferencesAtPosition(A.toString(),ee)];case 2:return!(de=_i.sent())||G.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(de.map(function(wt){return O.e.parse(wt.fileName)}))];case 3:if(_i.sent(),G.isDisposed())return[2];for(De=[],$e=0,pt=de;$e<pt.length;$e++)it=pt[$e],At=O.e.parse(it.fileName),(Nt=this._libFiles.getOrCreateModel(At))&&De.push({uri:At,range:this._textSpanToRange(Nt,it.textSpan)});return[2,De]}})})},$}(k),B=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentSymbols=function(G,z){return y(this,void 0,void 0,function(){var J,Se,A,ee,de=this;return C(this,function(De){switch(De.label){case 0:return J=G.uri,[4,this._worker(J)];case 1:return[4,De.sent().getNavigationBarItems(J.toString())];case 2:return!(Se=De.sent())||G.isDisposed()?[2]:(A=function($e,pt,it){var At={name:pt.text,detail:"",kind:ke[pt.kind]||O.g.SymbolKind.Variable,range:de._textSpanToRange(G,pt.spans[0]),selectionRange:de._textSpanToRange(G,pt.spans[0]),tags:[],containerName:it};if(pt.childItems&&pt.childItems.length>0)for(var Nt=0,_i=pt.childItems;Nt<_i.length;Nt++){var wt=_i[Nt];A($e,wt,At.name)}$e.push(At)},ee=[],Se.forEach(function($e){return A(ee,$e)}),[2,ee])}})})},$}(k),se=function(){function fe(){}return fe.unknown="",fe.keyword="keyword",fe.script="script",fe.module="module",fe.class="class",fe.interface="interface",fe.type="type",fe.enum="enum",fe.variable="var",fe.localVariable="local var",fe.function="function",fe.localFunction="local function",fe.memberFunction="method",fe.memberGetAccessor="getter",fe.memberSetAccessor="setter",fe.memberVariable="property",fe.constructorImplementation="constructor",fe.callSignature="call",fe.indexSignature="index",fe.constructSignature="construct",fe.parameter="parameter",fe.typeParameter="type parameter",fe.primitiveType="primitive type",fe.label="label",fe.alias="alias",fe.const="const",fe.let="let",fe.warning="warning",fe}(),ke=Object.create(null);ke[se.module]=O.g.SymbolKind.Module,ke[se.class]=O.g.SymbolKind.Class,ke[se.enum]=O.g.SymbolKind.Enum,ke[se.interface]=O.g.SymbolKind.Interface,ke[se.memberFunction]=O.g.SymbolKind.Method,ke[se.memberVariable]=O.g.SymbolKind.Property,ke[se.memberGetAccessor]=O.g.SymbolKind.Property,ke[se.memberSetAccessor]=O.g.SymbolKind.Property,ke[se.variable]=O.g.SymbolKind.Variable,ke[se.const]=O.g.SymbolKind.Variable,ke[se.localVariable]=O.g.SymbolKind.Variable,ke[se.variable]=O.g.SymbolKind.Variable,ke[se.function]=O.g.SymbolKind.Function,ke[se.localFunction]=O.g.SymbolKind.Function;var xe,Y,Z=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$._convertOptions=function(G){return{ConvertTabsToSpaces:G.insertSpaces,TabSize:G.tabSize,IndentSize:G.tabSize,IndentStyle:f.Smart,NewLineCharacter:` +`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}},$.prototype._convertTextChanges=function(G,z){return{text:z.newText,range:this._textSpanToRange(G,z.span)}},$}(k),te=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideDocumentRangeFormattingEdits=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,De,$e=this;return C(this,function(pt){switch(pt.label){case 0:return A=G.uri,ee=G.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),de=G.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn}),[4,this._worker(A)];case 1:return[4,pt.sent().getFormattingEditsForRange(A.toString(),ee,de,Z._convertOptions(J))];case 2:return!(De=pt.sent())||G.isDisposed()?[2]:[2,De.map(function(it){return $e._convertTextChanges(G,it)})]}})})},$}(Z),he=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),Object.defineProperty($.prototype,"autoFormatTriggerCharacters",{get:function(){return[";","}",` +`]},enumerable:!1,configurable:!0}),$.prototype.provideOnTypeFormattingEdits=function(G,z,J,Se,A){return y(this,void 0,void 0,function(){var ee,de,De,$e=this;return C(this,function(pt){switch(pt.label){case 0:return ee=G.uri,de=G.getOffsetAt(z),[4,this._worker(ee)];case 1:return[4,pt.sent().getFormattingEditsAfterKeystroke(ee.toString(),de,J,Z._convertOptions(Se))];case 2:return!(De=pt.sent())||G.isDisposed()?[2]:[2,De.map(function(it){return $e._convertTextChanges(G,it)})]}})})},$}(Z),Ce=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideCodeActions=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,De,$e,pt,it=this;return C(this,function(At){switch(At.label){case 0:return A=G.uri,ee=G.getOffsetAt({lineNumber:z.startLineNumber,column:z.startColumn}),de=G.getOffsetAt({lineNumber:z.endLineNumber,column:z.endColumn}),De=Z._convertOptions(G.getOptions()),$e=J.markers.filter(function(Nt){return Nt.code}).map(function(Nt){return Nt.code}).map(Number),[4,this._worker(A)];case 1:return[4,At.sent().getCodeFixesAtPosition(A.toString(),ee,de,$e,De)];case 2:return!(pt=At.sent())||G.isDisposed()?[2,{actions:[],dispose:function(){}}]:[2,{actions:pt.filter(function(Nt){return Nt.changes.filter(function(_i){return _i.isNewFile}).length===0}).map(function(Nt){return it._tsCodeFixActionToMonacoCodeAction(G,J,Nt)}),dispose:function(){}}]}})})},$.prototype._tsCodeFixActionToMonacoCodeAction=function(G,z,J){for(var Se=[],A=0,ee=J.changes;A<ee.length;A++)for(var de=0,De=ee[A].textChanges;de<De.length;de++){var $e=De[de];Se.push({resource:G.uri,edit:{range:this._textSpanToRange(G,$e.span),text:$e.newText}})}return{title:J.description,edit:{edits:Se},diagnostics:z.markers,kind:"quickfix"}},$}(Z),Ae=function(fe){function $(){return fe!==null&&fe.apply(this,arguments)||this}return Q($,fe),$.prototype.provideRenameEdits=function(G,z,J,Se){return y(this,void 0,void 0,function(){var A,ee,de,De,$e,pt,it,At,Nt,_i;return C(this,function(wt){switch(wt.label){case 0:return A=G.uri,ee=A.toString(),de=G.getOffsetAt(z),[4,this._worker(A)];case 1:return[4,(De=wt.sent()).getRenameInfo(ee,de,{allowRenameOfImportPath:!1})];case 2:if(($e=wt.sent()).canRename===!1)return[2,{edits:[],rejectReason:$e.localizedErrorMessage}];if($e.fileToRename!==void 0)throw new Error("Renaming files is not supported.");return[4,De.findRenameLocations(ee,de,!1,!1,!1)];case 3:if(!(pt=wt.sent())||G.isDisposed())return[2];for(it=[],At=0,Nt=pt;At<Nt.length;At++)_i=Nt[At],it.push({resource:O.e.parse(_i.fileName),edit:{range:this._textSpanToRange(G,_i.textSpan),text:J}});return[2,{edits:it}]}})})},$}(k);function L(fe){Y=ht(fe,"typescript")}function nt(fe){xe=ht(fe,"javascript")}function ct(){return new Promise(function(fe,$){if(!xe)return $("JavaScript not registered!");fe(xe)})}function Ye(){return new Promise(function(fe,$){if(!Y)return $("TypeScript not registered!");fe(Y)})}function ht(fe,$){var G=new ge($,fe),z=function(){for(var Se=[],A=0;A<arguments.length;A++)Se[A]=arguments[A];return G.getLanguageServiceWorker.apply(G,Se)},J=new l(z);return O.g.registerCompletionItemProvider($,new N(z)),O.g.registerSignatureHelpProvider($,new g(z)),O.g.registerHoverProvider($,new j(z)),O.g.registerDocumentHighlightProvider($,new ie(z)),O.g.registerDefinitionProvider($,new U(J,z)),O.g.registerReferenceProvider($,new q(J,z)),O.g.registerDocumentSymbolProvider($,new B(z)),O.g.registerDocumentRangeFormattingEditProvider($,new te(z)),O.g.registerOnTypeFormattingEditProvider($,new he(z)),O.g.registerCodeActionProvider($,new Ce(z)),O.g.registerRenameProvider($,new Ae(z)),new T(J,fe,$,z),z}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"setupMode",function(){return xe});var h=r(59),f=function(){function he(Ce){var Ae=this;this._defaults=Ce,this._worker=null,this._idleCheckInterval=setInterval(function(){return Ae._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return Ae._stopWorker()})}return he.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},he.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},he.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},he.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},he.prototype.getLanguageServiceWorker=function(){for(var Ce,Ae=this,L=[],nt=0;nt<arguments.length;nt++)L[nt]=arguments[nt];return this._getClient().then(function(ct){Ce=ct}).then(function(ct){return Ae._worker.withSyncedResources(L)}).then(function(ct){return Ce})},he}(),O=r(38),H=function(){function he(Ce,Ae,L){var nt=this;this._languageId=Ce,this._worker=Ae,this._disposables=[],this._listener=Object.create(null);var ct=function(ht){var fe,$=ht.getModeId();$===nt._languageId&&(nt._listener[ht.uri.toString()]=ht.onDidChangeContent(function(){clearTimeout(fe),fe=setTimeout(function(){return nt._doValidate(ht.uri,$)},500)}),nt._doValidate(ht.uri,$))},Ye=function(ht){h.e.setModelMarkers(ht,nt._languageId,[]);var fe=ht.uri.toString(),$=nt._listener[fe];$&&($.dispose(),delete nt._listener[fe])};this._disposables.push(h.e.onDidCreateModel(ct)),this._disposables.push(h.e.onWillDisposeModel(function(ht){Ye(ht),nt._resetSchema(ht.uri)})),this._disposables.push(h.e.onDidChangeModelLanguage(function(ht){Ye(ht.model),ct(ht.model),nt._resetSchema(ht.model.uri)})),this._disposables.push(L.onDidChange(function(ht){h.e.getModels().forEach(function(fe){fe.getModeId()===nt._languageId&&(Ye(fe),ct(fe))})})),this._disposables.push({dispose:function(){for(var ht in h.e.getModels().forEach(Ye),nt._listener)nt._listener[ht].dispose()}}),h.e.getModels().forEach(ct)}return he.prototype.dispose=function(){this._disposables.forEach(function(Ce){return Ce&&Ce.dispose()}),this._disposables=[]},he.prototype._resetSchema=function(Ce){this._worker().then(function(Ae){Ae.resetSchema(Ce.toString())})},he.prototype._doValidate=function(Ce,Ae){this._worker(Ce).then(function(L){return L.doValidation(Ce.toString()).then(function(nt){var ct=nt.map(function(ht){return $=typeof(fe=ht).code=="number"?String(fe.code):fe.code,{severity:E(fe.severity),startLineNumber:fe.range.start.line+1,startColumn:fe.range.start.character+1,endLineNumber:fe.range.end.line+1,endColumn:fe.range.end.character+1,message:fe.message,code:$,source:fe.source};var fe,$}),Ye=h.e.getModel(Ce);Ye&&Ye.getModeId()===Ae&&h.e.setModelMarkers(Ye,Ae,ct)})}).then(void 0,function(L){console.error(L)})},he}();function E(he){switch(he){case O.b.Error:return h.b.Error;case O.b.Warning:return h.b.Warning;case O.b.Information:return h.b.Info;case O.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(he){if(he)return{character:he.column-1,line:he.lineNumber-1}}function W(he){if(he)return{start:{line:he.startLineNumber-1,character:he.startColumn-1},end:{line:he.endLineNumber-1,character:he.endColumn-1}}}function Q(he){if(he)return new h.c(he.start.line+1,he.start.character+1,he.end.line+1,he.end.character+1)}function y(he){var Ce=h.f.CompletionItemKind;switch(he){case O.a.Text:return Ce.Text;case O.a.Method:return Ce.Method;case O.a.Function:return Ce.Function;case O.a.Constructor:return Ce.Constructor;case O.a.Field:return Ce.Field;case O.a.Variable:return Ce.Variable;case O.a.Class:return Ce.Class;case O.a.Interface:return Ce.Interface;case O.a.Module:return Ce.Module;case O.a.Property:return Ce.Property;case O.a.Unit:return Ce.Unit;case O.a.Value:return Ce.Value;case O.a.Enum:return Ce.Enum;case O.a.Keyword:return Ce.Keyword;case O.a.Snippet:return Ce.Snippet;case O.a.Color:return Ce.Color;case O.a.File:return Ce.File;case O.a.Reference:return Ce.Reference}return Ce.Property}function C(he){if(he)return{range:Q(he.range),text:he.newText}}var S=function(){function he(Ce){this._worker=Ce}return Object.defineProperty(he.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),he.prototype.provideCompletionItems=function(Ce,Ae,L,nt){var ct=Ce.uri;return this._worker(ct).then(function(Ye){return Ye.doComplete(ct.toString(),ge(Ae))}).then(function(Ye){if(Ye){var ht=Ce.getWordUntilPosition(Ae),fe=new h.c(Ae.lineNumber,ht.startColumn,Ae.lineNumber,ht.endColumn),$=Ye.items.map(function(G){var z,J={label:G.label,insertText:G.insertText||G.label,sortText:G.sortText,filterText:G.filterText,documentation:G.documentation,detail:G.detail,range:fe,kind:y(G.kind)};return G.textEdit&&((z=G.textEdit).insert!==void 0&&z.replace!==void 0?J.range={insert:Q(G.textEdit.insert),replace:Q(G.textEdit.replace)}:J.range=Q(G.textEdit.range),J.insertText=G.textEdit.newText),G.additionalTextEdits&&(J.additionalTextEdits=G.additionalTextEdits.map(C)),G.insertTextFormat===O.d.Snippet&&(J.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),J});return{isIncomplete:Ye.isIncomplete,suggestions:$}}})},he}();function P(he){return typeof he=="string"?{value:he}:(Ce=he)&&typeof Ce=="object"&&typeof Ce.kind=="string"?he.kind==="plaintext"?{value:he.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:he.value}:{value:"```"+he.language+` +`+he.value+"\n```\n"};var Ce}function V(he){if(he)return Array.isArray(he)?he.map(P):[P(he)]}var k=function(){function he(Ce){this._worker=Ce}return he.prototype.provideHover=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.doHover(nt.toString(),ge(Ae))}).then(function(ct){if(ct)return{range:Q(ct.range),contents:V(ct.contents)}})},he}();function l(he){var Ce=h.f.SymbolKind;switch(he){case O.e.File:return Ce.Array;case O.e.Module:return Ce.Module;case O.e.Namespace:return Ce.Namespace;case O.e.Package:return Ce.Package;case O.e.Class:return Ce.Class;case O.e.Method:return Ce.Method;case O.e.Property:return Ce.Property;case O.e.Field:return Ce.Field;case O.e.Constructor:return Ce.Constructor;case O.e.Enum:return Ce.Enum;case O.e.Interface:return Ce.Interface;case O.e.Function:return Ce.Function;case O.e.Variable:return Ce.Variable;case O.e.Constant:return Ce.Constant;case O.e.String:return Ce.String;case O.e.Number:return Ce.Number;case O.e.Boolean:return Ce.Boolean;case O.e.Array:return Ce.Array}return Ce.Function}var T=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentSymbols=function(Ce,Ae){var L=Ce.uri;return this._worker(L).then(function(nt){return nt.findDocumentSymbols(L.toString())}).then(function(nt){if(nt)return nt.map(function(ct){return{name:ct.name,detail:"",containerName:ct.containerName,kind:l(ct.kind),range:Q(ct.location.range),selectionRange:Q(ct.location.range),tags:[]}})})},he}();function N(he){return{tabSize:he.tabSize,insertSpaces:he.insertSpaces}}var b=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentFormattingEdits=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.format(nt.toString(),null,N(Ae)).then(function(Ye){if(Ye&&Ye.length!==0)return Ye.map(C)})})},he}(),g=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentRangeFormattingEdits=function(Ce,Ae,L,nt){var ct=Ce.uri;return this._worker(ct).then(function(Ye){return Ye.format(ct.toString(),W(Ae),N(L)).then(function(ht){if(ht&&ht.length!==0)return ht.map(C)})})},he}(),j=function(){function he(Ce){this._worker=Ce}return he.prototype.provideDocumentColors=function(Ce,Ae){var L=Ce.uri;return this._worker(L).then(function(nt){return nt.findDocumentColors(L.toString())}).then(function(nt){if(nt)return nt.map(function(ct){return{color:ct.color,range:Q(ct.range)}})})},he.prototype.provideColorPresentations=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getColorPresentations(nt.toString(),Ae.color,W(Ae.range))}).then(function(ct){if(ct)return ct.map(function(Ye){var ht={label:Ye.label};return Ye.textEdit&&(ht.textEdit=C(Ye.textEdit)),Ye.additionalTextEdits&&(ht.additionalTextEdits=Ye.additionalTextEdits.map(C)),ht})})},he}(),ie=function(){function he(Ce){this._worker=Ce}return he.prototype.provideFoldingRanges=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getFoldingRanges(nt.toString(),Ae)}).then(function(ct){if(ct)return ct.map(function(Ye){var ht={start:Ye.startLine+1,end:Ye.endLine+1};return Ye.kind!==void 0&&(ht.kind=function(fe){switch(fe){case O.c.Comment:return h.f.FoldingRangeKind.Comment;case O.c.Imports:return h.f.FoldingRangeKind.Imports;case O.c.Region:return h.f.FoldingRangeKind.Region}}(Ye.kind)),ht})})},he}(),U=function(){function he(Ce){this._worker=Ce}return he.prototype.provideSelectionRanges=function(Ce,Ae,L){var nt=Ce.uri;return this._worker(nt).then(function(ct){return ct.getSelectionRanges(nt.toString(),Ae.map(ge))}).then(function(ct){if(ct)return ct.map(function(Ye){for(var ht=[];Ye;)ht.push({range:Q(Ye.range)}),Ye=Ye.parent;return ht})})},he}(),q=r(65);function B(he){return{getInitialState:function(){return new ke(null,null,!1,null)},tokenize:function(Ce,Ae,L,nt){return function(ct,Ye,ht,fe,$){fe===void 0&&(fe=0);var G=0,z=!1;switch(ht.scanError){case 2:Ye='"'+Ye,G=1;break;case 1:Ye="/*"+Ye,G=2}for(var J=q.a(Ye),Se=ht.lastWasColon,A=ht.parents,ee={tokens:[],endState:ht.clone()};;){var de=fe+J.getPosition(),De="",$e=J.scan();if($e===17)break;if(de===fe+J.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+Ye.substr(J.getPosition(),3));switch(z&&(de-=G),z=G>0,$e){case 1:A=se.push(A,0),De="delimiter.bracket.json",Se=!1;break;case 2:A=se.pop(A),De="delimiter.bracket.json",Se=!1;break;case 3:A=se.push(A,1),De="delimiter.array.json",Se=!1;break;case 4:A=se.pop(A),De="delimiter.array.json",Se=!1;break;case 6:De="delimiter.colon.json",Se=!0;break;case 5:De="delimiter.comma.json",Se=!1;break;case 8:case 9:case 7:De="keyword.json",Se=!1;break;case 10:var pt=(A?A.type:0)===1;De=Se||pt?"string.value.json":"string.key.json",Se=!1;break;case 11:De="number.json",Se=!1}if(ct)switch($e){case 12:De="comment.line.json";break;case 13:De="comment.block.json"}ee.endState=new ke(ht.getStateData(),J.getTokenError(),Se,A),ee.tokens.push({startIndex:de,scopes:De})}return ee}(he,Ce,Ae,L)}}}var se=function(){function he(Ce,Ae){this.parent=Ce,this.type=Ae}return he.pop=function(Ce){return Ce?Ce.parent:null},he.push=function(Ce,Ae){return new he(Ce,Ae)},he.equals=function(Ce,Ae){if(!Ce&&!Ae)return!0;if(!Ce||!Ae)return!1;for(;Ce&&Ae;){if(Ce===Ae)return!0;if(Ce.type!==Ae.type)return!1;Ce=Ce.parent,Ae=Ae.parent}return!0},he}(),ke=function(){function he(Ce,Ae,L,nt){this._state=Ce,this.scanError=Ae,this.lastWasColon=L,this.parents=nt}return he.prototype.clone=function(){return new he(this._state,this.scanError,this.lastWasColon,this.parents)},he.prototype.equals=function(Ce){return Ce===this||!!(Ce&&Ce instanceof he)&&this.scanError===Ce.scanError&&this.lastWasColon===Ce.lastWasColon&&se.equals(this.parents,Ce.parents)},he.prototype.getStateData=function(){return this._state},he.prototype.setStateData=function(Ce){this._state=Ce},he}();function xe(he){var Ce=[],Ae=[],L=new f(he);Ce.push(L);var nt=function(){for(var ht=[],fe=0;fe<arguments.length;fe++)ht[fe]=arguments[fe];return L.getLanguageServiceWorker.apply(L,ht)};function ct(){var ht=he.languageId,fe=he.modeConfiguration;Z(Ae),fe.documentFormattingEdits&&Ae.push(h.f.registerDocumentFormattingEditProvider(ht,new b(nt))),fe.documentRangeFormattingEdits&&Ae.push(h.f.registerDocumentRangeFormattingEditProvider(ht,new g(nt))),fe.completionItems&&Ae.push(h.f.registerCompletionItemProvider(ht,new S(nt))),fe.hovers&&Ae.push(h.f.registerHoverProvider(ht,new k(nt))),fe.documentSymbols&&Ae.push(h.f.registerDocumentSymbolProvider(ht,new T(nt))),fe.tokens&&Ae.push(h.f.setTokensProvider(ht,B(!0))),fe.colors&&Ae.push(h.f.registerColorProvider(ht,new j(nt))),fe.foldingRanges&&Ae.push(h.f.registerFoldingRangeProvider(ht,new ie(nt))),fe.diagnostics&&Ae.push(new H(ht,nt,he)),fe.selectionRanges&&Ae.push(h.f.registerSelectionRangeProvider(ht,new U(nt)))}ct(),Ce.push(h.f.setLanguageConfiguration(he.languageId,te));var Ye=he.modeConfiguration;return he.onDidChange(function(ht){ht.modeConfiguration!==Ye&&(Ye=ht.modeConfiguration,ct())}),Ce.push(Y(Ae)),Y(Ce)}function Y(he){return{dispose:function(){return Z(he)}}}function Z(he){for(;he.length;)he.pop().dispose()}var te={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"setupMode",function(){return se});var h=r(52),f=function(){function Y(Z){var te=this;this._defaults=Z,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return te._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return te._stopWorker()})}return Y.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},Y.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},Y.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},Y.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},Y.prototype.getLanguageServiceWorker=function(){for(var Z,te=this,he=[],Ce=0;Ce<arguments.length;Ce++)he[Ce]=arguments[Ce];return this._getClient().then(function(Ae){Z=Ae}).then(function(Ae){return te._worker.withSyncedResources(he)}).then(function(Ae){return Z})},Y}(),O=r(48),H=function(){function Y(Z,te,he){var Ce=this;this._languageId=Z,this._worker=te,this._disposables=[],this._listener=Object.create(null);var Ae=function(nt){var ct,Ye=nt.getModeId();Ye===Ce._languageId&&(Ce._listener[nt.uri.toString()]=nt.onDidChangeContent(function(){window.clearTimeout(ct),ct=window.setTimeout(function(){return Ce._doValidate(nt.uri,Ye)},500)}),Ce._doValidate(nt.uri,Ye))},L=function(nt){h.e.setModelMarkers(nt,Ce._languageId,[]);var ct=nt.uri.toString(),Ye=Ce._listener[ct];Ye&&(Ye.dispose(),delete Ce._listener[ct])};this._disposables.push(h.e.onDidCreateModel(Ae)),this._disposables.push(h.e.onWillDisposeModel(L)),this._disposables.push(h.e.onDidChangeModelLanguage(function(nt){L(nt.model),Ae(nt.model)})),he.onDidChange(function(nt){h.e.getModels().forEach(function(ct){ct.getModeId()===Ce._languageId&&(L(ct),Ae(ct))})}),this._disposables.push({dispose:function(){for(var nt in Ce._listener)Ce._listener[nt].dispose()}}),h.e.getModels().forEach(Ae)}return Y.prototype.dispose=function(){this._disposables.forEach(function(Z){return Z&&Z.dispose()}),this._disposables=[]},Y.prototype._doValidate=function(Z,te){this._worker(Z).then(function(he){return he.doValidation(Z.toString())}).then(function(he){var Ce=he.map(function(L){return ct=typeof(nt=L).code=="number"?String(nt.code):nt.code,{severity:E(nt.severity),startLineNumber:nt.range.start.line+1,startColumn:nt.range.start.character+1,endLineNumber:nt.range.end.line+1,endColumn:nt.range.end.character+1,message:nt.message,code:ct,source:nt.source};var nt,ct}),Ae=h.e.getModel(Z);Ae.getModeId()===te&&h.e.setModelMarkers(Ae,te,Ce)}).then(void 0,function(he){console.error(he)})},Y}();function E(Y){switch(Y){case O.b.Error:return h.b.Error;case O.b.Warning:return h.b.Warning;case O.b.Information:return h.b.Info;case O.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(Y){if(Y)return{character:Y.column-1,line:Y.lineNumber-1}}function W(Y){if(Y)return new h.c(Y.start.line+1,Y.start.character+1,Y.end.line+1,Y.end.character+1)}function Q(Y){var Z=h.f.CompletionItemKind;switch(Y){case O.a.Text:return Z.Text;case O.a.Method:return Z.Method;case O.a.Function:return Z.Function;case O.a.Constructor:return Z.Constructor;case O.a.Field:return Z.Field;case O.a.Variable:return Z.Variable;case O.a.Class:return Z.Class;case O.a.Interface:return Z.Interface;case O.a.Module:return Z.Module;case O.a.Property:return Z.Property;case O.a.Unit:return Z.Unit;case O.a.Value:return Z.Value;case O.a.Enum:return Z.Enum;case O.a.Keyword:return Z.Keyword;case O.a.Snippet:return Z.Snippet;case O.a.Color:return Z.Color;case O.a.File:return Z.File;case O.a.Reference:return Z.Reference}return Z.Property}function y(Y){if(Y)return{range:W(Y.range),text:Y.newText}}var C=function(){function Y(Z){this._worker=Z}return Object.defineProperty(Y.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),Y.prototype.provideCompletionItems=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.doComplete(Ae.toString(),ge(te))}).then(function(L){if(L){var nt=Z.getWordUntilPosition(te),ct=new h.c(te.lineNumber,nt.startColumn,te.lineNumber,nt.endColumn),Ye=L.items.map(function(ht){var fe,$={label:ht.label,insertText:ht.insertText||ht.label,sortText:ht.sortText,filterText:ht.filterText,documentation:ht.documentation,detail:ht.detail,range:ct,kind:Q(ht.kind)};return ht.textEdit&&((fe=ht.textEdit).insert!==void 0&&fe.replace!==void 0?$.range={insert:W(ht.textEdit.insert),replace:W(ht.textEdit.replace)}:$.range=W(ht.textEdit.range),$.insertText=ht.textEdit.newText),ht.additionalTextEdits&&($.additionalTextEdits=ht.additionalTextEdits.map(y)),ht.insertTextFormat===O.e.Snippet&&($.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),$});return{isIncomplete:L.isIncomplete,suggestions:Ye}}})},Y}();function S(Y){return typeof Y=="string"?{value:Y}:(Z=Y)&&typeof Z=="object"&&typeof Z.kind=="string"?Y.kind==="plaintext"?{value:Y.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:Y.value}:{value:"```"+Y.language+` +`+Y.value+"\n```\n"};var Z}function P(Y){if(Y)return Array.isArray(Y)?Y.map(S):[S(Y)]}var V=function(){function Y(Z){this._worker=Z}return Y.prototype.provideHover=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.doHover(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return{range:W(Ae.range),contents:P(Ae.contents)}})},Y}();function k(Y){switch(Y){case O.c.Read:return h.f.DocumentHighlightKind.Read;case O.c.Write:return h.f.DocumentHighlightKind.Write;case O.c.Text:return h.f.DocumentHighlightKind.Text}return h.f.DocumentHighlightKind.Text}var l=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentHighlights=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentHighlights(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return Ae.map(function(L){return{range:W(L.range),kind:k(L.kind)}})})},Y}();function T(Y){return{uri:h.d.parse(Y.uri),range:W(Y.range)}}var N=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDefinition=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.findDefinition(Ce.toString(),ge(te))}).then(function(Ae){if(Ae)return[T(Ae)]})},Y}(),b=function(){function Y(Z){this._worker=Z}return Y.prototype.provideReferences=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.findReferences(Ae.toString(),ge(te))}).then(function(L){if(L)return L.map(T)})},Y}(),g=function(){function Y(Z){this._worker=Z}return Y.prototype.provideRenameEdits=function(Z,te,he,Ce){var Ae=Z.uri;return this._worker(Ae).then(function(L){return L.doRename(Ae.toString(),ge(te),he)}).then(function(L){return function(nt){if(nt&&nt.changes){var ct=[];for(var Ye in nt.changes)for(var ht=h.d.parse(Ye),fe=0,$=nt.changes[Ye];fe<$.length;fe++){var G=$[fe];ct.push({resource:ht,edit:{range:W(G.range),text:G.newText}})}return{edits:ct}}}(L)})},Y}();function j(Y){var Z=h.f.SymbolKind;switch(Y){case O.f.File:return Z.Array;case O.f.Module:return Z.Module;case O.f.Namespace:return Z.Namespace;case O.f.Package:return Z.Package;case O.f.Class:return Z.Class;case O.f.Method:return Z.Method;case O.f.Property:return Z.Property;case O.f.Field:return Z.Field;case O.f.Constructor:return Z.Constructor;case O.f.Enum:return Z.Enum;case O.f.Interface:return Z.Interface;case O.f.Function:return Z.Function;case O.f.Variable:return Z.Variable;case O.f.Constant:return Z.Constant;case O.f.String:return Z.String;case O.f.Number:return Z.Number;case O.f.Boolean:return Z.Boolean;case O.f.Array:return Z.Array}return Z.Function}var ie=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentSymbols=function(Z,te){var he=Z.uri;return this._worker(he).then(function(Ce){return Ce.findDocumentSymbols(he.toString())}).then(function(Ce){if(Ce)return Ce.map(function(Ae){return{name:Ae.name,detail:"",containerName:Ae.containerName,kind:j(Ae.kind),tags:[],range:W(Ae.location.range),selectionRange:W(Ae.location.range)}})})},Y}(),U=function(){function Y(Z){this._worker=Z}return Y.prototype.provideDocumentColors=function(Z,te){var he=Z.uri;return this._worker(he).then(function(Ce){return Ce.findDocumentColors(he.toString())}).then(function(Ce){if(Ce)return Ce.map(function(Ae){return{color:Ae.color,range:W(Ae.range)}})})},Y.prototype.provideColorPresentations=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getColorPresentations(Ce.toString(),te.color,function(L){if(L)return{start:{line:L.startLineNumber-1,character:L.startColumn-1},end:{line:L.endLineNumber-1,character:L.endColumn-1}}}(te.range))}).then(function(Ae){if(Ae)return Ae.map(function(L){var nt={label:L.label};return L.textEdit&&(nt.textEdit=y(L.textEdit)),L.additionalTextEdits&&(nt.additionalTextEdits=L.additionalTextEdits.map(y)),nt})})},Y}(),q=function(){function Y(Z){this._worker=Z}return Y.prototype.provideFoldingRanges=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getFoldingRanges(Ce.toString(),te)}).then(function(Ae){if(Ae)return Ae.map(function(L){var nt={start:L.startLine+1,end:L.endLine+1};return L.kind!==void 0&&(nt.kind=function(ct){switch(ct){case O.d.Comment:return h.f.FoldingRangeKind.Comment;case O.d.Imports:return h.f.FoldingRangeKind.Imports;case O.d.Region:return h.f.FoldingRangeKind.Region}}(L.kind)),nt})})},Y}(),B=function(){function Y(Z){this._worker=Z}return Y.prototype.provideSelectionRanges=function(Z,te,he){var Ce=Z.uri;return this._worker(Ce).then(function(Ae){return Ae.getSelectionRanges(Ce.toString(),te.map(ge))}).then(function(Ae){if(Ae)return Ae.map(function(L){for(var nt=[];L;)nt.push({range:W(L.range)}),L=L.parent;return nt})})},Y}();function se(Y){var Z=[],te=[],he=new f(Y);Z.push(he);var Ce,Ae,L=function(){for(var nt=[],ct=0;ct<arguments.length;ct++)nt[ct]=arguments[ct];return he.getLanguageServiceWorker.apply(he,nt)};return Ce=Y.languageId,Ae=Y.modeConfiguration,xe(te),Ae.completionItems&&te.push(h.f.registerCompletionItemProvider(Ce,new C(L))),Ae.hovers&&te.push(h.f.registerHoverProvider(Ce,new V(L))),Ae.documentHighlights&&te.push(h.f.registerDocumentHighlightProvider(Ce,new l(L))),Ae.definitions&&te.push(h.f.registerDefinitionProvider(Ce,new N(L))),Ae.references&&te.push(h.f.registerReferenceProvider(Ce,new b(L))),Ae.documentSymbols&&te.push(h.f.registerDocumentSymbolProvider(Ce,new ie(L))),Ae.rename&&te.push(h.f.registerRenameProvider(Ce,new g(L))),Ae.colors&&te.push(h.f.registerColorProvider(Ce,new U(L))),Ae.foldingRanges&&te.push(h.f.registerFoldingRangeProvider(Ce,new q(L))),Ae.diagnostics&&te.push(new H(Ce,L,Y)),Ae.selectionRanges&&te.push(h.f.registerSelectionRangeProvider(Ce,new B(L))),Z.push(ke(te)),ke(Z)}function ke(Y){return{dispose:function(){return xe(Y)}}}function xe(Y){for(;Y.length;)Y.pop().dispose()}},function(Ie,w,r){"use strict";r.r(w),r.d(w,"setupMode1",function(){return se}),r.d(w,"setupMode",function(){return ke});var h=r(47),f=function(){function Z(te){var he=this;this._defaults=te,this._worker=null,this._idleCheckInterval=setInterval(function(){return he._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return he._stopWorker()})}return Z.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},Z.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},Z.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},Z.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h.e.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},Z.prototype.getLanguageServiceWorker=function(){for(var te,he=this,Ce=[],Ae=0;Ae<arguments.length;Ae++)Ce[Ae]=arguments[Ae];return this._getClient().then(function(L){te=L}).then(function(L){return he._worker.withSyncedResources(Ce)}).then(function(L){return te})},Z}(),O=r(31),H=function(){function Z(te,he,Ce){var Ae=this;this._languageId=te,this._worker=he,this._disposables=[],this._listener=Object.create(null);var L=function(ct){var Ye,ht=ct.getModeId();ht===Ae._languageId&&(Ae._listener[ct.uri.toString()]=ct.onDidChangeContent(function(){clearTimeout(Ye),Ye=setTimeout(function(){return Ae._doValidate(ct.uri,ht)},500)}),Ae._doValidate(ct.uri,ht))},nt=function(ct){h.e.setModelMarkers(ct,Ae._languageId,[]);var Ye=ct.uri.toString(),ht=Ae._listener[Ye];ht&&(ht.dispose(),delete Ae._listener[Ye])};this._disposables.push(h.e.onDidCreateModel(L)),this._disposables.push(h.e.onWillDisposeModel(function(ct){nt(ct)})),this._disposables.push(h.e.onDidChangeModelLanguage(function(ct){nt(ct.model),L(ct.model)})),this._disposables.push(Ce.onDidChange(function(ct){h.e.getModels().forEach(function(Ye){Ye.getModeId()===Ae._languageId&&(nt(Ye),L(Ye))})})),this._disposables.push({dispose:function(){for(var ct in Ae._listener)Ae._listener[ct].dispose()}}),h.e.getModels().forEach(L)}return Z.prototype.dispose=function(){this._disposables.forEach(function(te){return te&&te.dispose()}),this._disposables=[]},Z.prototype._doValidate=function(te,he){this._worker(te).then(function(Ce){return Ce.doValidation(te.toString()).then(function(Ae){var L=Ae.map(function(nt){return Ye=typeof(ct=nt).code=="number"?String(ct.code):ct.code,{severity:E(ct.severity),startLineNumber:ct.range.start.line+1,startColumn:ct.range.start.character+1,endLineNumber:ct.range.end.line+1,endColumn:ct.range.end.character+1,message:ct.message,code:Ye,source:ct.source};var ct,Ye});h.e.setModelMarkers(h.e.getModel(te),he,L)})}).then(void 0,function(Ce){console.error(Ce)})},Z}();function E(Z){switch(Z){case O.b.Error:return h.b.Error;case O.b.Warning:return h.b.Warning;case O.b.Information:return h.b.Info;case O.b.Hint:return h.b.Hint;default:return h.b.Info}}function ge(Z){if(Z)return{character:Z.column-1,line:Z.lineNumber-1}}function W(Z){if(Z)return new h.c(Z.start.line+1,Z.start.character+1,Z.end.line+1,Z.end.character+1)}function Q(Z){var te=h.f.CompletionItemKind;switch(Z){case O.a.Text:return te.Text;case O.a.Method:return te.Method;case O.a.Function:return te.Function;case O.a.Constructor:return te.Constructor;case O.a.Field:return te.Field;case O.a.Variable:return te.Variable;case O.a.Class:return te.Class;case O.a.Interface:return te.Interface;case O.a.Module:return te.Module;case O.a.Property:return te.Property;case O.a.Unit:return te.Unit;case O.a.Value:return te.Value;case O.a.Enum:return te.Enum;case O.a.Keyword:return te.Keyword;case O.a.Snippet:return te.Snippet;case O.a.Color:return te.Color;case O.a.File:return te.File;case O.a.Reference:return te.Reference}return te.Property}function y(Z){if(Z)return{range:W(Z.range),text:Z.newText}}var C=function(){function Z(te){this._worker=te}return Object.defineProperty(Z.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),Z.prototype.provideCompletionItems=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.doComplete(L.toString(),ge(he))}).then(function(nt){if(nt){var ct=te.getWordUntilPosition(he),Ye=new h.c(he.lineNumber,ct.startColumn,he.lineNumber,ct.endColumn),ht=nt.items.map(function(fe){var $,G={label:fe.label,insertText:fe.insertText||fe.label,sortText:fe.sortText,filterText:fe.filterText,documentation:fe.documentation,detail:fe.detail,range:Ye,kind:Q(fe.kind)};return fe.textEdit&&(($=fe.textEdit).insert!==void 0&&$.replace!==void 0?G.range={insert:W(fe.textEdit.insert),replace:W(fe.textEdit.replace)}:G.range=W(fe.textEdit.range),G.insertText=fe.textEdit.newText),fe.additionalTextEdits&&(G.additionalTextEdits=fe.additionalTextEdits.map(y)),fe.insertTextFormat===O.e.Snippet&&(G.insertTextRules=h.f.CompletionItemInsertTextRule.InsertAsSnippet),G});return{isIncomplete:nt.isIncomplete,suggestions:ht}}})},Z}();function S(Z){return typeof Z=="string"?{value:Z}:(te=Z)&&typeof te=="object"&&typeof te.kind=="string"?Z.kind==="plaintext"?{value:Z.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:Z.value}:{value:"```"+Z.language+` +`+Z.value+"\n```\n"};var te}function P(Z){if(Z)return Array.isArray(Z)?Z.map(S):[S(Z)]}var V=function(){function Z(te){this._worker=te}return Z.prototype.provideHover=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.doHover(Ae.toString(),ge(he))}).then(function(L){if(L)return{range:W(L.range),contents:P(L.contents)}})},Z}();function k(Z){var te=h.f.DocumentHighlightKind;switch(Z){case O.c.Read:return te.Read;case O.c.Write:return te.Write;case O.c.Text:return te.Text}return te.Text}var l=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentHighlights=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.findDocumentHighlights(Ae.toString(),ge(he))}).then(function(L){if(L)return L.map(function(nt){return{range:W(nt.range),kind:k(nt.kind)}})})},Z}();function T(Z){var te=h.f.SymbolKind;switch(Z){case O.f.File:return te.Array;case O.f.Module:return te.Module;case O.f.Namespace:return te.Namespace;case O.f.Package:return te.Package;case O.f.Class:return te.Class;case O.f.Method:return te.Method;case O.f.Property:return te.Property;case O.f.Field:return te.Field;case O.f.Constructor:return te.Constructor;case O.f.Enum:return te.Enum;case O.f.Interface:return te.Interface;case O.f.Function:return te.Function;case O.f.Variable:return te.Variable;case O.f.Constant:return te.Constant;case O.f.String:return te.String;case O.f.Number:return te.Number;case O.f.Boolean:return te.Boolean;case O.f.Array:return te.Array}return te.Function}var N=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentSymbols=function(te,he){var Ce=te.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentSymbols(Ce.toString())}).then(function(Ae){if(Ae)return Ae.map(function(L){return{name:L.name,detail:"",containerName:L.containerName,kind:T(L.kind),tags:[],range:W(L.location.range),selectionRange:W(L.location.range)}})})},Z}(),b=function(){function Z(te){this._worker=te}return Z.prototype.provideLinks=function(te,he){var Ce=te.uri;return this._worker(Ce).then(function(Ae){return Ae.findDocumentLinks(Ce.toString())}).then(function(Ae){if(Ae)return{links:Ae.map(function(L){return{range:W(L.range),url:L.target}})}})},Z}();function g(Z){return{tabSize:Z.tabSize,insertSpaces:Z.insertSpaces}}var j=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentFormattingEdits=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.format(Ae.toString(),null,g(he)).then(function(nt){if(nt&&nt.length!==0)return nt.map(y)})})},Z}(),ie=function(){function Z(te){this._worker=te}return Z.prototype.provideDocumentRangeFormattingEdits=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.format(L.toString(),function(ct){if(ct)return{start:ge(ct.getStartPosition()),end:ge(ct.getEndPosition())}}(he),g(Ce)).then(function(ct){if(ct&&ct.length!==0)return ct.map(y)})})},Z}(),U=function(){function Z(te){this._worker=te}return Z.prototype.provideRenameEdits=function(te,he,Ce,Ae){var L=te.uri;return this._worker(L).then(function(nt){return nt.doRename(L.toString(),ge(he),Ce)}).then(function(nt){return function(ct){if(!(!ct||!ct.changes)){var Ye=[];for(var ht in ct.changes)for(var fe=h.d.parse(ht),$=0,G=ct.changes[ht];$<G.length;$++){var z=G[$];Ye.push({resource:fe,edit:{range:W(z.range),text:z.newText}})}return{edits:Ye}}}(nt)})},Z}(),q=function(){function Z(te){this._worker=te}return Z.prototype.provideFoldingRanges=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.getFoldingRanges(Ae.toString(),he)}).then(function(L){if(L)return L.map(function(nt){var ct={start:nt.startLine+1,end:nt.endLine+1};return nt.kind!==void 0&&(ct.kind=function(Ye){switch(Ye){case O.d.Comment:return h.f.FoldingRangeKind.Comment;case O.d.Imports:return h.f.FoldingRangeKind.Imports;case O.d.Region:return h.f.FoldingRangeKind.Region}}(nt.kind)),ct})})},Z}(),B=function(){function Z(te){this._worker=te}return Z.prototype.provideSelectionRanges=function(te,he,Ce){var Ae=te.uri;return this._worker(Ae).then(function(L){return L.getSelectionRanges(Ae.toString(),he.map(ge))}).then(function(L){if(L)return L.map(function(nt){for(var ct=[];nt;)ct.push({range:W(nt.range)}),nt=nt.parent;return ct})})},Z}();function se(Z){var te=new f(Z),he=function(){for(var Ae=[],L=0;L<arguments.length;L++)Ae[L]=arguments[L];return te.getLanguageServiceWorker.apply(te,Ae)},Ce=Z.languageId;h.f.registerCompletionItemProvider(Ce,new C(he)),h.f.registerHoverProvider(Ce,new V(he)),h.f.registerDocumentHighlightProvider(Ce,new l(he)),h.f.registerLinkProvider(Ce,new b(he)),h.f.registerFoldingRangeProvider(Ce,new q(he)),h.f.registerDocumentSymbolProvider(Ce,new N(he)),h.f.registerSelectionRangeProvider(Ce,new B(he)),h.f.registerRenameProvider(Ce,new U(he)),Ce==="html"&&(h.f.registerDocumentFormattingEditProvider(Ce,new j(he)),h.f.registerDocumentRangeFormattingEditProvider(Ce,new ie(he)),new H(Ce,he,Z))}function ke(Z){var te=[],he=[],Ce=new f(Z);te.push(Ce);var Ae,L,nt=function(){for(var ct=[],Ye=0;Ye<arguments.length;Ye++)ct[Ye]=arguments[Ye];return Ce.getLanguageServiceWorker.apply(Ce,ct)};return Ae=Z.languageId,L=Z.modeConfiguration,Y(he),L.completionItems&&he.push(h.f.registerCompletionItemProvider(Ae,new C(nt))),L.hovers&&he.push(h.f.registerHoverProvider(Ae,new V(nt))),L.documentHighlights&&he.push(h.f.registerDocumentHighlightProvider(Ae,new l(nt))),L.links&&he.push(h.f.registerLinkProvider(Ae,new b(nt))),L.documentSymbols&&he.push(h.f.registerDocumentSymbolProvider(Ae,new N(nt))),L.rename&&he.push(h.f.registerRenameProvider(Ae,new U(nt))),L.foldingRanges&&he.push(h.f.registerFoldingRangeProvider(Ae,new q(nt))),L.selectionRanges&&he.push(h.f.registerSelectionRangeProvider(Ae,new B(nt))),L.documentFormattingEdits&&he.push(h.f.registerDocumentFormattingEditProvider(Ae,new j(nt))),L.documentRangeFormattingEdits&&he.push(h.f.registerDocumentRangeFormattingEditProvider(Ae,new ie(nt))),L.diagnostics&&he.push(new H(Ae,nt,Z)),te.push(xe(he)),xe(te)}function xe(Z){return{dispose:function(){return Y(Z)}}}function Y(Z){for(;Z.length;)Z.pop().dispose()}}]);var id=new URL("monaco/workers/",import.meta.url);self.MonacoEnvironment={getWorkerUrl:function(Ie,w){switch(w){case"json":return`${id}json.worker.js`;case"css":return`${id}css.worker.js`;case"html":return`${id}html.worker.js`;case"typescript":case"javascript":return`${id}ts.worker.js`;default:return`${id}editor.worker.js`}}};var Em=class extends HTMLElement{static get observedAttributes(){return["src","value"]}attributeChangedCallback(w,r,h){!this.__initialized||r!==h&&(this[w]=h)}get src(){return this.getAttribute("src")}set src(w){this.setAttribute("src",w),this.setSrc()}get value(){return this.editor.getValue()}set value(w){this.editor.setValue(w)}get tabSize(){return this.editor.getModel()._options.tabSize}set tabSize(w){this.editor.getModel().updateOptions({tabSize:w})}constructor(){super();this.__initialized=!1,this.editor=null}async connectedCallback(){if(this.style.display="block",this.id||(this.id="editor"),this.style.width||(this.style.width="100%"),this.style.height||(this.style.height="100%"),this.hasAttribute("config")){let w=await this.fetchConfig(this.getAttribute("config"));this.editor=monaco.editor.create(document.getElementById(this.id),w)}else this.editor=monaco.editor.create(document.getElementById(this.id),{language:this.getAttribute("language"),theme:"vs-dark",automaticLayout:!0,lineNumbersMinChars:3,mouseWheelZoom:!0,fontSize:this.getAttribute("font-size"),minimap:{enabled:!this.hasAttribute("no-minimap")},wordWrap:this.hasAttribute("word-wrap"),wrappingIndent:this.getAttribute("wrap-indent")});this.hasAttribute("tab-size")&&(this.tabSize=this.getAttribute("tab-size")),this.hasAttribute("src")&&this.setSrc(),this.__initialized=!0}async setSrc(){let w=this.getAttribute("src"),r=await this.fetchSrc(w);this.editor.setValue(r)}async fetchSrc(w){return(await fetch(w)).text()}async fetchConfig(w){return(await fetch(w)).json()}};customElements.define("wc-monaco-editor",Em);export{Em as WCMonacoEditor}; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ /*!--------------------------------------------------------------------------------------------- * Copyright (C) David Owens II, owensd.io. All rights reserved. *--------------------------------------------------------------------------------------------*/ diff --git a/package.json b/package.json index a6d6f85..ed2d829 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "devDependencies": { "esmtk": "^0.5.6", - "monaco-editor-es": "^0.21.3" + "monaco-editor-es": "^0.30.1" }, "standard": { "ignore": [